import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
import "react";
import * as __WEBPACK_EXTERNAL_MODULE__application_Plugin_mjs__ from "../../application/Plugin.mjs";
import * as __WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__ from "../../data-source/index.mjs";
class PluginBuiltInCollections extends __WEBPACK_EXTERNAL_MODULE__application_Plugin_mjs__.Plugin {
    async load() {
        this.app.use(BuiltInCollectionsProvider);
    }
}
const collection = {
    name: 'test-test',
    title: 'TestTest',
    fields: [
        {
            type: 'string',
            name: 'name',
            interface: 'input',
            uiSchema: {
                title: 'Name',
                type: 'string',
                'x-component': 'Input',
                required: true
            }
        },
        {
            type: 'boolean',
            name: 'enabled',
            interface: 'radioGroup',
            uiSchema: {
                title: 'Enabled',
                type: 'string',
                required: true,
                enum: [
                    {
                        label: 'On',
                        value: true
                    },
                    {
                        label: 'Off',
                        value: false
                    }
                ],
                'x-component': 'Radio.Group',
                'x-decorator': 'FormItem',
                default: false
            }
        }
    ]
};
const BuiltInCollectionsProvider = (param)=>{
    let { children } = param;
    return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__data_source_index_mjs__.ExtendCollectionsProvider, {
        collections: [
            collection
        ],
        children: children
    });
};
export { PluginBuiltInCollections, collection };
