"use strict";
var __webpack_exports__ = {};
const external_createTableBlockUISchema_js_namespaceObject = require("../createTableBlockUISchema.js");
vi.mock('@tachybase/schema', ()=>({
        uid: ()=>'mocked-uid'
    }));
describe('createTableBLockSchemaV2', ()=>{
    it('should create a default table block schema with minimum options', ()=>{
        const options = {
            dataSource: 'abc',
            collectionName: 'users',
            association: 'users.roles',
            rowKey: 'rowKey'
        };
        const schema = (0, external_createTableBlockUISchema_js_namespaceObject.createTableBlockUISchema)(options);
        expect(schema).toMatchInlineSnapshot('\n      {\n        "properties": {\n          "actions": {\n            "properties": {},\n            "type": "void",\n            "x-component": "ActionBar",\n            "x-component-props": {\n              "style": {\n                "marginBottom": "var(--tb-spacing)",\n              },\n            },\n            "x-initializer": "table:configureActions",\n          },\n          "mocked-uid": {\n            "properties": {\n              "actions": {\n                "properties": {\n                  "mocked-uid": {\n                    "type": "void",\n                    "x-component": "Space",\n                    "x-component-props": {\n                      "split": "|",\n                    },\n                    "x-decorator": "DndContext",\n                  },\n                },\n                "title": "{{ t("Actions") }}",\n                "type": "void",\n                "x-action-column": "actions",\n                "x-component": "TableV2.Column",\n                "x-decorator": "TableV2.Column.ActionBar",\n                "x-designer": "TableV2.ActionColumnDesigner",\n                "x-initializer": "table:configureItemActions",\n              },\n            },\n            "type": "array",\n            "x-component": "TableV2",\n            "x-component-props": {\n              "rowKey": "id",\n              "rowSelection": {\n                "type": "checkbox",\n              },\n            },\n            "x-initializer": "table:configureColumns",\n            "x-use-component-props": "useTableBlockProps",\n          },\n        },\n        "type": "void",\n        "x-acl-action": "users:list",\n        "x-component": "CardItem",\n        "x-decorator": "TableBlockProvider",\n        "x-decorator-props": {\n          "action": "list",\n          "association": "users.roles",\n          "collection": "users",\n          "dataSource": "abc",\n          "dragSort": false,\n          "params": {\n            "pageSize": 20,\n          },\n          "rowKey": "rowKey",\n          "showIndex": true,\n        },\n        "x-filter-targets": [],\n        "x-settings": "blockSettings:table",\n        "x-toolbar": "BlockSchemaToolbar",\n        "x-use-decorator-props": "useTableBlockDecoratorProps",\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
});
