import { SchemaInitializer } from "../../../../application/schema-initializer/SchemaInitializer.mjs";
import { FilterAssociatedFields, FilterParentCollectionFields } from "../../../../schema-initializer/buttons/FormItemInitializers.mjs";
import { gridRowColWrap, useFilterFormItemInitializerFields } from "../../../../schema-initializer/utils.mjs";
const filterFormItemInitializers = new SchemaInitializer({
    name: 'filterForm:configureFields',
    wrap: gridRowColWrap,
    icon: 'SettingOutlined',
    title: '{{t("Configure fields")}}',
    items: [
        {
            type: 'subMenu',
            name: 'displayFields',
            title: '{{t("Display fields")}}',
            useChildren: useFilterFormItemInitializerFields
        },
        {
            name: 'parentCollectionFields',
            Component: FilterParentCollectionFields
        },
        {
            name: 'associationFields',
            Component: FilterAssociatedFields
        },
        {
            name: 'divider',
            type: 'divider'
        },
        {
            title: '{{t("Add text")}}',
            Component: 'MarkdownFormItemInitializer',
            name: 'addText'
        },
        {
            title: '{{t("Custom filter field")}}',
            name: 'custom',
            type: 'item',
            Component: 'FilterFormItemCustom'
        }
    ]
});
export { filterFormItemInitializers };
