"use strict";
var __webpack_exports__ = {};
const external_createFilterFormBlockSchema_js_namespaceObject = require("../createFilterFormBlockSchema.js");
vi.mock('@tachybase/schema', ()=>({
        uid: ()=>'mocked-uid'
    }));
describe('createFilterFormBlockSchema', ()=>{
    test('should return the correct schema', ()=>{
        const schema = (0, external_createFilterFormBlockSchema_js_namespaceObject.createFilterFormBlockSchema)({
            collectionName: 'myCollection',
            dataSource: 'myDataSource',
            templateSchema: {
                type: 'string'
            }
        });
        expect(schema).toMatchInlineSnapshot('\n      {\n        "properties": {\n          "mocked-uid": {\n            "properties": {\n              "grid": {\n                "type": "string",\n              },\n              "mocked-uid": {\n                "type": "void",\n                "x-component": "ActionBar",\n                "x-component-props": {\n                  "layout": "one-column",\n                  "style": {\n                    "float": "right",\n                  },\n                },\n                "x-initializer": "filterForm:configureActions",\n              },\n            },\n            "type": "void",\n            "x-component": "FormV2",\n            "x-use-component-props": "useFilterFormBlockProps",\n          },\n        },\n        "type": "void",\n        "x-component": "CardItem",\n        "x-decorator": "FilterFormBlockProvider",\n        "x-decorator-props": {\n          "collection": "myCollection",\n          "dataSource": "myDataSource",\n        },\n        "x-filter-operators": {},\n        "x-filter-targets": [],\n        "x-settings": "blockSettings:filterForm",\n        "x-toolbar": "BlockSchemaToolbar",\n        "x-use-decorator-props": "useFilterFormBlockDecoratorProps",\n      }\n    ');
    });
    test('should return the correct schema without templateSchema', ()=>{
        const schema = (0, external_createFilterFormBlockSchema_js_namespaceObject.createFilterFormBlockSchema)({
            collectionName: 'myCollection',
            dataSource: 'myDataSource'
        });
        expect(schema).toMatchInlineSnapshot('\n      {\n        "properties": {\n          "mocked-uid": {\n            "properties": {\n              "grid": {\n                "type": "void",\n                "x-component": "Grid",\n                "x-initializer": "filterForm:configureFields",\n              },\n              "mocked-uid": {\n                "type": "void",\n                "x-component": "ActionBar",\n                "x-component-props": {\n                  "layout": "one-column",\n                  "style": {\n                    "float": "right",\n                  },\n                },\n                "x-initializer": "filterForm:configureActions",\n              },\n            },\n            "type": "void",\n            "x-component": "FormV2",\n            "x-use-component-props": "useFilterFormBlockProps",\n          },\n        },\n        "type": "void",\n        "x-component": "CardItem",\n        "x-decorator": "FilterFormBlockProvider",\n        "x-decorator-props": {\n          "collection": "myCollection",\n          "dataSource": "myDataSource",\n        },\n        "x-filter-operators": {},\n        "x-filter-targets": [],\n        "x-settings": "blockSettings:filterForm",\n        "x-toolbar": "BlockSchemaToolbar",\n        "x-use-decorator-props": "useFilterFormBlockDecoratorProps",\n      }\n    ');
    });
});
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
