import { CodeMirror } from "@tego/client";
import { Plugin } from "../../application/Plugin.mjs";
import { actionSettings } from "./action/index.mjs";
import { useFilterActionProps } from "./filter/useFilterActionProps.mjs";
import { formV1Settings } from "./form/index.mjs";
import { filterFormItemSettings, formItemSettings } from "./form-item/index.mjs";
import { formDetailsSettings, formSettings, readPrettyFormSettings } from "./form-v2/index.mjs";
import { pageSettings, pageTabSettings } from "./page/index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__index_mjs_6e7aec25__ from "./index.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__common_index_mjs_af2a4306__ from "../common/index.mjs";
class AntdSchemaComponentPlugin extends Plugin {
    async load() {
        this.addComponents();
        this.addScopes();
        this.addSchemaSettings();
    }
    addComponents() {
        this.app.addComponents({
            ...__WEBPACK_EXTERNAL_MODULE__index_mjs_6e7aec25__,
            ...__WEBPACK_EXTERNAL_MODULE__common_index_mjs_af2a4306__,
            CodeMirror: CodeMirror
        });
    }
    addScopes() {
        this.app.addScopes({
            useFilterActionProps: useFilterActionProps
        });
    }
    addSchemaSettings() {
        this.app.schemaSettingsManager.add(pageSettings);
        this.app.schemaSettingsManager.add(pageTabSettings);
        this.app.schemaSettingsManager.add(formItemSettings);
        this.app.schemaSettingsManager.add(filterFormItemSettings);
        this.app.schemaSettingsManager.add(formV1Settings);
        this.app.schemaSettingsManager.add(formSettings);
        this.app.schemaSettingsManager.add(readPrettyFormSettings);
        this.app.schemaSettingsManager.add(formDetailsSettings);
        this.app.schemaSettingsManager.add(actionSettings);
    }
}
export { AntdSchemaComponentPlugin };
