"use strict";
var __webpack_exports__ = {};
const external_createDetailsWithPaginationUISchema_js_namespaceObject = require("../createDetailsWithPaginationUISchema.js");
vi.mock('@tachybase/schema', ()=>({
        uid: vi.fn().mockReturnValue('mocked-uid')
    }));
describe('createDetailsBlockWithPaginationUISchema', ()=>{
    it('should return the correct schema', ()=>{
        const schema = (0, external_createDetailsWithPaginationUISchema_js_namespaceObject.createDetailsWithPaginationUISchema)({
            collectionName: 'users',
            dataSource: 'users',
            rowKey: 'id'
        });
        expect(schema).toMatchInlineSnapshot('\n      {\n        "properties": {\n          "mocked-uid": {\n            "properties": {\n              "grid": {\n                "properties": {},\n                "type": "void",\n                "x-component": "Grid",\n                "x-initializer": "details:configureFields",\n              },\n              "mocked-uid": {\n                "properties": {},\n                "type": "void",\n                "x-component": "ActionBar",\n                "x-component-props": {\n                  "style": {\n                    "marginBottom": 24,\n                  },\n                },\n                "x-initializer": "details:configureActions",\n              },\n              "pagination": {\n                "type": "void",\n                "x-component": "Pagination",\n                "x-use-component-props": "useDetailsPaginationProps",\n              },\n            },\n            "type": "void",\n            "x-component": "Details",\n            "x-read-pretty": true,\n            "x-use-component-props": "useDetailsWithPaginationProps",\n          },\n        },\n        "type": "void",\n        "x-acl-action": "users:view",\n        "x-component": "CardItem",\n        "x-decorator": "DetailsBlockProvider",\n        "x-decorator-props": {\n          "action": "list",\n          "association": undefined,\n          "collection": "users",\n          "dataSource": "users",\n          "params": {\n            "pageSize": 1,\n          },\n          "readPretty": true,\n        },\n        "x-settings": "blockSettings:detailsWithPagination",\n        "x-toolbar": "BlockSchemaToolbar",\n        "x-use-decorator-props": "useDetailsWithPaginationDecoratorProps",\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
});
