import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
const createCollapseBlockSchema = (options)=>{
    const { collectionName, dataSource, blockType } = options;
    return {
        type: 'void',
        'x-decorator': 'AssociationFilter.Provider',
        'x-use-decorator-props': 'useCollapseBlockDecoratorProps',
        'x-decorator-props': {
            collection: collectionName,
            dataSource,
            blockType,
            associationFilterStyle: {
                width: '100%'
            },
            name: 'filter-collapse'
        },
        'x-toolbar': 'BlockSchemaToolbar',
        'x-settings': 'blockSettings:filterCollapse',
        'x-component': 'CardItem',
        'x-filter-targets': [],
        properties: {
            [(0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)()]: {
                type: 'void',
                'x-action': 'associateFilter',
                'x-initializer': 'filterCollapse:configureFields',
                'x-component': 'AssociationFilter'
            }
        }
    };
};
export { createCollapseBlockSchema };
