@tachybase/client 1.3.7 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +7 -7
- package/es/api-client/__tests__/APIClient.test.mjs +0 -55
- package/es/api-client/demos/demo1.mjs +0 -32
- package/es/api-client/demos/demo2.mjs +0 -31
- package/es/api-client/demos/demo3.mjs +0 -74
- package/es/application/__tests__/Application.test.mjs +0 -481
- package/es/application/__tests__/Plugin.test.mjs +0 -197
- package/es/application/__tests__/PluginSettingsManager.test.mjs +0 -156
- package/es/application/__tests__/RouterManager.test.mjs +0 -311
- package/es/application/__tests__/SchemaInitializer.test.mjs +0 -163
- package/es/application/__tests__/SchemaToolbar.test.mjs +0 -143
- package/es/application/__tests__/hoc/withDynamicSchemaProps.test.mjs +0 -187
- package/es/application/__tests__/hooks.test.mjs +0 -85
- package/es/application/__tests__/utils/remotePlugins.test.mjs +0 -318
- package/es/application/__tests__/utils.test.mjs +0 -99
- package/es/application/demos/demo1.mjs +0 -110
- package/es/application/demos/demo2.mjs +0 -126
- package/es/application/demos/demo3.mjs +0 -11
- package/es/collection-manager/demos/demo2.mjs +0 -106
- package/es/collection-manager/demos/demo3.mjs +0 -76
- package/es/collection-manager/demos/demo4.mjs +0 -168
- package/es/collection-manager/demos/demo5.mjs +0 -152
- package/es/collection-manager/interfaces/__tests__/json.mjs +0 -40
- package/es/data-source/__tests__/collection/AssociationProvider.test.mjs +0 -113
- package/es/data-source/__tests__/collection/Collection.test.mjs +0 -297
- package/es/data-source/__tests__/collection/CollectionManager.test.mjs +0 -297
- package/es/data-source/__tests__/collection/CollectionManagerProvider.test.mjs +0 -114
- package/es/data-source/__tests__/collection/CollectionProvider.test.mjs +0 -106
- package/es/data-source/__tests__/collection/ExtendCollectionsProvider.test.mjs +0 -87
- package/es/data-source/__tests__/collection-field/CollectionField.test.mjs +0 -67
- package/es/data-source/__tests__/collection-field/CollectionFieldProvider.test.mjs +0 -51
- package/es/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.mjs +0 -162
- package/es/data-source/__tests__/collection-record/CollectionRecord.test.mjs +0 -21
- package/es/data-source/__tests__/collection-record/CollectionRecordProvider.test.mjs +0 -253
- package/es/data-source/__tests__/collection-record/isNewRecord.test.mjs +0 -45
- package/es/data-source/__tests__/collection-template/CollectionTemplateManager.test.mjs +0 -123
- package/es/data-source/__tests__/components/CollectionDeletedPlaceholder.test.mjs +0 -43
- package/es/data-source/__tests__/data-block/DataBlockProvider.test.mjs +0 -114
- package/es/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.mjs +0 -88
- package/es/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.mjs +0 -139
- package/es/data-source/__tests__/data-block/data-block-demos/collection-form-create.mjs +0 -109
- package/es/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.mjs +0 -174
- package/es/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.mjs +0 -138
- package/es/data-source/__tests__/data-block/data-block-demos/collection-table-list.mjs +0 -94
- package/es/data-source/__tests__/data-block/data-block-demos/createApp.mjs +0 -55
- package/es/data-source/__tests__/data-source/CollectionDataSourceProvider.test.mjs +0 -35
- package/es/data-source/__tests__/data-source/DataSource.test.mjs +0 -75
- package/es/data-source/__tests__/data-source/DataSourceManager.test.mjs +0 -166
- package/es/data-source/__tests__/data-source/DataSourceManagerProvider.test.mjs +0 -30
- package/es/data-source/__tests__/data-source/DataSourceProvider.test.mjs +0 -79
- package/es/data-source/__tests__/utils.test.mjs +0 -55
- package/es/filter-provider/__tests__/transformToFilter.mjs +0 -65
- package/es/filter-provider/__tests__/useFilter.mjs +0 -41
- package/es/filter-provider/__tests__/utiles.test.mjs +0 -265
- package/es/flag-provider/__tests__/flag-provider.test.mjs +0 -19
- package/es/icon/__tests__/icon.test.mjs +0 -25
- package/es/icon/demos/antd-icon.mjs +0 -7
- package/es/icon/demos/custom-icon.mjs +0 -16
- package/es/icon/demos/iconfont.mjs +0 -10
- package/es/icon/demos/register-icon.mjs +0 -23
- package/es/modules/actions/disassociate/__e2e__/disassociate.test.mjs +0 -39
- package/es/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +0 -383
- package/es/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.mjs +0 -112
- package/es/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.mjs +0 -72
- package/es/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.mjs +0 -14
- package/es/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.mjs +0 -98
- package/es/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.mjs +0 -24
- package/es/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.mjs +0 -14
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.mjs +0 -14
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.mjs +0 -26
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.mjs +0 -168
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.mjs +0 -28
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.mjs +0 -141
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +0 -1254
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +0 -6002
- package/es/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.mjs +0 -16
- package/es/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.mjs +0 -212
- package/es/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.mjs +0 -19
- package/es/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.mjs +0 -18
- package/es/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.mjs +0 -220
- package/es/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.mjs +0 -48
- package/es/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.mjs +0 -26
- package/es/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.mjs +0 -211
- package/es/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.mjs +0 -23
- package/es/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.mjs +0 -24
- package/es/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.mjs +0 -9
- package/es/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.mjs +0 -33
- package/es/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.mjs +0 -19
- package/es/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.mjs +0 -31
- package/es/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.mjs +0 -419
- package/es/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.mjs +0 -869
- package/es/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +0 -934
- package/es/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.mjs +0 -42
- package/es/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.mjs +0 -16
- package/es/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.mjs +0 -159
- package/es/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.mjs +0 -146
- package/es/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +0 -692
- package/es/modules/blocks/data-blocks/table-selector/__e2e__/utils.mjs +0 -12
- package/es/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.mjs +0 -14
- package/es/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.mjs +0 -59
- package/es/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.mjs +0 -62
- package/es/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.mjs +0 -40
- package/es/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.mjs +0 -115
- package/es/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.mjs +0 -98
- package/es/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.mjs +0 -23
- package/es/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.mjs +0 -10
- package/es/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.mjs +0 -33
- package/es/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/dialog/__e2e__/schemaInitializer.test.mjs +0 -388
- package/es/modules/dialog/__e2e__/schemaSettings.test.mjs +0 -59
- package/es/modules/dialog/__e2e__/templatesOfBug.mjs +0 -2122
- package/es/modules/dialog/__e2e__/zIndex.test.mjs +0 -35
- package/es/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.mjs +0 -74
- package/es/modules/fields/component/DatePicker/__e2e__/utils.mjs +0 -323
- package/es/modules/menu/__e2e__/dragAndDrop.test.mjs +0 -27
- package/es/modules/menu/__e2e__/schemaInitializer.test.mjs +0 -101
- package/es/modules/menu/__e2e__/schemaSettings.test.mjs +0 -347
- package/es/modules/menu/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/page/__e2e__/blockInitializers.test.mjs +0 -17
- package/es/modules/page/__e2e__/dragAndDrop.test.mjs +0 -16
- package/es/modules/page/__e2e__/schemaInitailizer.test.mjs +0 -15
- package/es/modules/page/__e2e__/schemaSettings.test.mjs +0 -134
- package/es/modules/page/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/plugin-manager/__e2e__/pluginManager.test.mjs +0 -113
- package/es/modules/plugin-manager/__e2e__/templatesOfBug.mjs +0 -0
- package/es/modules/user-center/__e2e__/settings.test.mjs +0 -12
- package/es/schema-component/antd/action/__tests__/action.test.mjs +0 -116
- package/es/schema-component/antd/action/demos/demo1.mjs +0 -70
- package/es/schema-component/antd/action/demos/demo2.mjs +0 -75
- package/es/schema-component/antd/action/demos/demo3.mjs +0 -127
- package/es/schema-component/antd/action/demos/demo4.mjs +0 -58
- package/es/schema-component/antd/action/demos/demo5.mjs +0 -211
- package/es/schema-component/antd/action/demos/demo6.mjs +0 -95
- package/es/schema-component/antd/association-select/__tests__/association-select.test.mjs +0 -16
- package/es/schema-component/antd/association-select/demos/demo1.mjs +0 -55
- package/es/schema-component/antd/block-item/__tests__/block-item.test.mjs +0 -14
- package/es/schema-component/antd/block-item/demos/demo1.mjs +0 -60
- package/es/schema-component/antd/card-item/__tests__/card-item.test.mjs +0 -11
- package/es/schema-component/antd/card-item/demos/demo1.mjs +0 -31
- package/es/schema-component/antd/cascader/__tests__/cascader.test.mjs +0 -29
- package/es/schema-component/antd/cascader/demos/demo1.mjs +0 -82
- package/es/schema-component/antd/cascader/demos/demo2.mjs +0 -115
- package/es/schema-component/antd/checkbox/__tests__/checkbox.test.mjs +0 -40
- package/es/schema-component/antd/checkbox/demos/checkbox.group.mjs +0 -54
- package/es/schema-component/antd/checkbox/demos/checkbox.mjs +0 -40
- package/es/schema-component/antd/collection-select/__tests__/collection-select.test.mjs +0 -16
- package/es/schema-component/antd/collection-select/demos/demo1.mjs +0 -36
- package/es/schema-component/antd/color-picker/demos/demo1.mjs +0 -49
- package/es/schema-component/antd/color-select/__tests__/color-select.test.mjs +0 -16
- package/es/schema-component/antd/color-select/demos/demo1.mjs +0 -40
- package/es/schema-component/antd/cron/__tests__/cron-set.test.mjs +0 -30
- package/es/schema-component/antd/cron/demos/demo1.mjs +0 -32
- package/es/schema-component/antd/cron/demos/demo2.mjs +0 -51
- package/es/schema-component/antd/date-picker/__tests__/date-picker.test.mjs +0 -178
- package/es/schema-component/antd/date-picker/__tests__/getDateRanges.test.mjs +0 -110
- package/es/schema-component/antd/date-picker/__tests__/mapDatePicker.test.mjs +0 -200
- package/es/schema-component/antd/date-picker/__tests__/mapRangePicker.test.mjs +0 -59
- package/es/schema-component/antd/date-picker/__tests__/util.test.mjs +0 -166
- package/es/schema-component/antd/date-picker/demos/demo1.mjs +0 -57
- package/es/schema-component/antd/date-picker/demos/demo10.mjs +0 -61
- package/es/schema-component/antd/date-picker/demos/demo11.mjs +0 -65
- package/es/schema-component/antd/date-picker/demos/demo2.mjs +0 -60
- package/es/schema-component/antd/date-picker/demos/demo3.mjs +0 -58
- package/es/schema-component/antd/date-picker/demos/demo4.mjs +0 -72
- package/es/schema-component/antd/date-picker/demos/demo5.mjs +0 -71
- package/es/schema-component/antd/date-picker/demos/demo6.mjs +0 -71
- package/es/schema-component/antd/date-picker/demos/demo7.mjs +0 -61
- package/es/schema-component/antd/date-picker/demos/demo8.mjs +0 -61
- package/es/schema-component/antd/date-picker/demos/demo9.mjs +0 -61
- package/es/schema-component/antd/details/__tests__/details.test.mjs +0 -10
- package/es/schema-component/antd/details/demos/demo1.mjs +0 -42
- package/es/schema-component/antd/error-fallback/__tests__/error-fallback.test.mjs +0 -17
- package/es/schema-component/antd/error-fallback/demos/demo1.mjs +0 -13
- package/es/schema-component/antd/filter/__tests__/filter.test.mjs +0 -113
- package/es/schema-component/antd/filter/demos/demo2.mjs +0 -129
- package/es/schema-component/antd/filter/demos/demo3.mjs +0 -196
- package/es/schema-component/antd/filter/demos/demo4.mjs +0 -184
- package/es/schema-component/antd/filter/demos/demo5.mjs +0 -131
- package/es/schema-component/antd/filter/demos/demo6.mjs +0 -118
- package/es/schema-component/antd/form/__tests__/form.test.mjs +0 -113
- package/es/schema-component/antd/form/demos/apiClient.mjs +0 -17
- package/es/schema-component/antd/form/demos/demo1.mjs +0 -73
- package/es/schema-component/antd/form/demos/demo2.mjs +0 -73
- package/es/schema-component/antd/form/demos/demo3.mjs +0 -72
- package/es/schema-component/antd/form/demos/demo4.mjs +0 -80
- package/es/schema-component/antd/form/demos/demo5.mjs +0 -114
- package/es/schema-component/antd/form/demos/demo6.mjs +0 -71
- package/es/schema-component/antd/form/demos/demo7.mjs +0 -75
- package/es/schema-component/antd/form/demos/demo8.mjs +0 -86
- package/es/schema-component/antd/form-item/__tests__/form-item.test.mjs +0 -12
- package/es/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.mjs +0 -27
- package/es/schema-component/antd/form-item/__tests__/utils.test.mjs +0 -65
- package/es/schema-component/antd/form-item/demos/demo1.mjs +0 -37
- package/es/schema-component/antd/form-v2/__tests__/form-v2.test.mjs +0 -47
- package/es/schema-component/antd/form-v2/demos/collections.mjs +0 -1565
- package/es/schema-component/antd/form-v2/demos/demo1.mjs +0 -108
- package/es/schema-component/antd/form-v2/demos/demo2.mjs +0 -131
- package/es/schema-component/antd/form-v2/demos/demo3.mjs +0 -117
- package/es/schema-component/antd/grid/__tests__/grid.test.mjs +0 -26
- package/es/schema-component/antd/grid/demos/demo1.mjs +0 -194
- package/es/schema-component/antd/grid/demos/demo2.mjs +0 -97
- package/es/schema-component/antd/grid/demos/demo3.mjs +0 -83
- package/es/schema-component/antd/grid-card/__tests__/grid-card.test.mjs +0 -9
- package/es/schema-component/antd/grid-card/demos/demo1.mjs +0 -6
- package/es/schema-component/antd/icon-picker/__tests__/icon-picker.test.mjs +0 -25
- package/es/schema-component/antd/icon-picker/demos/icon-picker.mjs +0 -40
- package/es/schema-component/antd/input/__tests__/Input.test.mjs +0 -115
- package/es/schema-component/antd/input/demos/input.mjs +0 -40
- package/es/schema-component/antd/input/demos/json.mjs +0 -46
- package/es/schema-component/antd/input/demos/textarea.mjs +0 -68
- package/es/schema-component/antd/input/demos/url.mjs +0 -42
- package/es/schema-component/antd/input-number/__tests__/input-number.test.mjs +0 -116
- package/es/schema-component/antd/input-number/demos/addonBefore&addonAfter.mjs +0 -48
- package/es/schema-component/antd/input-number/demos/highPrecisionDecimals.mjs +0 -50
- package/es/schema-component/antd/input-number/demos/inputNumber.mjs +0 -40
- package/es/schema-component/antd/list/__tests__/list.test.mjs +0 -9
- package/es/schema-component/antd/list/demos/demo1.mjs +0 -6
- package/es/schema-component/antd/markdown/__tests__/markdown.test.mjs +0 -27
- package/es/schema-component/antd/markdown/demos/demo1.mjs +0 -40
- package/es/schema-component/antd/markdown/demos/demo2.mjs +0 -51
- package/es/schema-component/antd/menu/__tests__/menu.test.mjs +0 -38
- package/es/schema-component/antd/menu/demos/demo1.mjs +0 -93
- package/es/schema-component/antd/menu/demos/demo2.mjs +0 -96
- package/es/schema-component/antd/menu/demos/demo3.mjs +0 -135
- package/es/schema-component/antd/page/__tests__/page.test.mjs +0 -18
- package/es/schema-component/antd/page/demos/demo1.mjs +0 -38
- package/es/schema-component/antd/password/__tests__/password.test.mjs +0 -28
- package/es/schema-component/antd/password/__tests__/utils.test.mjs +0 -21
- package/es/schema-component/antd/password/demos/demo1.mjs +0 -40
- package/es/schema-component/antd/password/demos/demo2.mjs +0 -43
- package/es/schema-component/antd/percent/__tests__/percent.test.mjs +0 -16
- package/es/schema-component/antd/percent/demos/percent.mjs +0 -40
- package/es/schema-component/antd/preview/__tests__/preview.test.mjs +0 -11
- package/es/schema-component/antd/preview/demos/demo1.mjs +0 -81
- package/es/schema-component/antd/radio/__tests__/radio.test.mjs +0 -43
- package/es/schema-component/antd/radio/demos/demo1.mjs +0 -40
- package/es/schema-component/antd/radio/demos/demo2.mjs +0 -52
- package/es/schema-component/antd/radio/demos/demo3.mjs +0 -54
- package/es/schema-component/antd/record-picker/__tests__/record-picker.test.mjs +0 -27
- package/es/schema-component/antd/record-picker/demos/demo1.mjs +0 -175
- package/es/schema-component/antd/record-picker/demos/mockData.mjs +0 -211
- package/es/schema-component/antd/remote-select/__tests__/remote-select.test.mjs +0 -16
- package/es/schema-component/antd/remote-select/demos/demo1.mjs +0 -55
- package/es/schema-component/antd/rich-text/__tests__/rich-text.test.mjs +0 -13
- package/es/schema-component/antd/rich-text/demos/demo1.mjs +0 -41
- package/es/schema-component/antd/select/__tests__/select.test.mjs +0 -41
- package/es/schema-component/antd/select/__tests__/utils.test.mjs +0 -129
- package/es/schema-component/antd/select/demos/demo1.mjs +0 -72
- package/es/schema-component/antd/select/demos/demo2.mjs +0 -76
- package/es/schema-component/antd/select/demos/demo3.mjs +0 -84
- package/es/schema-component/antd/table/__tests__/table.test.mjs +0 -21
- package/es/schema-component/antd/table/demos/demo1.mjs +0 -63
- package/es/schema-component/antd/table/demos/demo2.mjs +0 -63
- package/es/schema-component/antd/table/demos/demo3.mjs +0 -63
- package/es/schema-component/antd/table/demos/demo4.mjs +0 -217
- package/es/schema-component/antd/table-v2/__tests__/table-v2.test.mjs +0 -13
- package/es/schema-component/antd/table-v2/demos/collections.mjs +0 -1560
- package/es/schema-component/antd/table-v2/demos/demo1.mjs +0 -220
- package/es/schema-component/antd/table-v2/demos/demo2.mjs +0 -117
- package/es/schema-component/antd/tabs/__tests__/tabs.test.mjs +0 -14
- package/es/schema-component/antd/tabs/demos/demo1.mjs +0 -67
- package/es/schema-component/antd/time-picker/__tests__/time-picker.test.mjs +0 -45
- package/es/schema-component/antd/time-picker/demos/demo1.mjs +0 -40
- package/es/schema-component/antd/time-picker/demos/demo2.mjs +0 -40
- package/es/schema-component/antd/tree-select/__tests__/tree-select.test.mjs +0 -14
- package/es/schema-component/antd/tree-select/demos/demo1.mjs +0 -84
- package/es/schema-component/antd/upload/__tests__/upload.test.mjs +0 -13
- package/es/schema-component/antd/upload/demos/apiClient.mjs +0 -43
- package/es/schema-component/antd/upload/demos/demo1.mjs +0 -48
- package/es/schema-component/antd/upload/demos/demo2.mjs +0 -115
- package/es/schema-component/antd/variable/__tests__/variable.test.mjs +0 -45
- package/es/schema-component/antd/variable/demos/demo1.mjs +0 -44
- package/es/schema-component/antd/variable/demos/demo2.mjs +0 -44
- package/es/schema-component/antd/variable/demos/demo3.mjs +0 -44
- package/es/schema-component/demos/demo1.mjs +0 -89
- package/es/schema-component/demos/demo2.mjs +0 -23
- package/es/schema-component/demos/demo3.mjs +0 -24
- package/es/schema-component/demos/demo4.mjs +0 -24
- package/es/schema-component/hooks/__tests__/designable.test.mjs +0 -548
- package/es/schema-component/hooks/__tests__/splitWrapSchema.test.mjs +0 -89
- package/es/schema-initializer/demos/basic.mjs +0 -62
- package/es/schema-initializer/demos/build-type.mjs +0 -83
- package/es/schema-initializer/demos/custom-button.mjs +0 -94
- package/es/schema-initializer/demos/custom-items-component.mjs +0 -100
- package/es/schema-initializer/demos/dynamic-visible-children.mjs +0 -81
- package/es/schema-initializer/demos/insert-schema-action.mjs +0 -92
- package/es/schema-initializer/demos/insert-schema-basic.mjs +0 -112
- package/es/schema-initializer/demos/insert-schema-form-item.mjs +0 -136
- package/es/schema-initializer/demos/nested-items.mjs +0 -148
- package/es/schema-settings/demos/basic.mjs +0 -60
- package/es/schema-settings/demos/built-type.mjs +0 -142
- package/es/schema-settings/demos/custom-component.mjs +0 -42
- package/es/schema-settings/demos/demo3.mjs +0 -100
- package/es/schema-settings/demos/schema-basic.mjs +0 -64
- package/es/user/__tests__/current-user-settings-menu-provider.test.mjs +0 -36
- package/es/variables/__tests__/useVariables.test.mjs +0 -406
- package/es/variables/__tests__/utils/filterEmptyValues.test.mjs +0 -46
- package/es/variables/__tests__/utils/getPath.test.mjs +0 -4
- package/es/variables/__tests__/utils/getVariableName.test.mjs +0 -4
- package/es/variables/__tests__/utils/isVariable.test.mjs +0 -22
- package/es/variables/__tests__/utils/transformVariableValue.test.mjs +0 -136
- package/es/variables/__tests__/utils/uniq.test.mjs +0 -77
- package/lib/api-client/__tests__/APIClient.test.js +0 -90
- package/lib/api-client/demos/demo1.js +0 -80
- package/lib/api-client/demos/demo2.js +0 -79
- package/lib/api-client/demos/demo3.js +0 -122
- package/lib/application/__tests__/Application.test.js +0 -517
- package/lib/application/__tests__/Plugin.test.js +0 -233
- package/lib/application/__tests__/PluginSettingsManager.test.js +0 -192
- package/lib/application/__tests__/RouterManager.test.js +0 -347
- package/lib/application/__tests__/SchemaInitializer.test.js +0 -170
- package/lib/application/__tests__/SchemaToolbar.test.js +0 -150
- package/lib/application/__tests__/hoc/withDynamicSchemaProps.test.js +0 -194
- package/lib/application/__tests__/hooks.test.js +0 -92
- package/lib/application/__tests__/utils/remotePlugins.test.js +0 -325
- package/lib/application/__tests__/utils.test.js +0 -106
- package/lib/application/demos/demo1.js +0 -144
- package/lib/application/demos/demo2.js +0 -160
- package/lib/application/demos/demo3.js +0 -46
- package/lib/collection-manager/demos/demo2.js +0 -140
- package/lib/collection-manager/demos/demo3.js +0 -124
- package/lib/collection-manager/demos/demo4.js +0 -202
- package/lib/collection-manager/demos/demo5.js +0 -186
- package/lib/collection-manager/interfaces/__tests__/json.js +0 -47
- package/lib/data-source/__tests__/collection/AssociationProvider.test.js +0 -120
- package/lib/data-source/__tests__/collection/Collection.test.js +0 -304
- package/lib/data-source/__tests__/collection/CollectionManager.test.js +0 -304
- package/lib/data-source/__tests__/collection/CollectionManagerProvider.test.js +0 -121
- package/lib/data-source/__tests__/collection/CollectionProvider.test.js +0 -113
- package/lib/data-source/__tests__/collection/ExtendCollectionsProvider.test.js +0 -94
- package/lib/data-source/__tests__/collection-field/CollectionField.test.js +0 -74
- package/lib/data-source/__tests__/collection-field/CollectionFieldProvider.test.js +0 -58
- package/lib/data-source/__tests__/collection-field-interface/CollectionFieldInterfaceManager.test.js +0 -169
- package/lib/data-source/__tests__/collection-record/CollectionRecord.test.js +0 -28
- package/lib/data-source/__tests__/collection-record/CollectionRecordProvider.test.js +0 -260
- package/lib/data-source/__tests__/collection-record/isNewRecord.test.js +0 -52
- package/lib/data-source/__tests__/collection-template/CollectionTemplateManager.test.js +0 -130
- package/lib/data-source/__tests__/components/CollectionDeletedPlaceholder.test.js +0 -50
- package/lib/data-source/__tests__/data-block/DataBlockProvider.test.js +0 -154
- package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-parent-record.js +0 -122
- package/lib/data-source/__tests__/data-block/data-block-demos/association-table-list-and-source-id.js +0 -187
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-create.js +0 -143
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-get-and-update.js +0 -222
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-form-record-and-update.js +0 -172
- package/lib/data-source/__tests__/data-block/data-block-demos/collection-table-list.js +0 -128
- package/lib/data-source/__tests__/data-block/data-block-demos/createApp.js +0 -103
- package/lib/data-source/__tests__/data-source/CollectionDataSourceProvider.test.js +0 -42
- package/lib/data-source/__tests__/data-source/DataSource.test.js +0 -82
- package/lib/data-source/__tests__/data-source/DataSourceManager.test.js +0 -173
- package/lib/data-source/__tests__/data-source/DataSourceManagerProvider.test.js +0 -37
- package/lib/data-source/__tests__/data-source/DataSourceProvider.test.js +0 -86
- package/lib/data-source/__tests__/utils.test.js +0 -62
- package/lib/filter-provider/__tests__/transformToFilter.js +0 -72
- package/lib/filter-provider/__tests__/useFilter.js +0 -48
- package/lib/filter-provider/__tests__/utiles.test.js +0 -272
- package/lib/flag-provider/__tests__/flag-provider.test.js +0 -26
- package/lib/icon/__tests__/icon.test.js +0 -63
- package/lib/icon/demos/antd-icon.js +0 -41
- package/lib/icon/demos/custom-icon.js +0 -50
- package/lib/icon/demos/iconfont.js +0 -44
- package/lib/icon/demos/register-icon.js +0 -57
- package/lib/modules/actions/disassociate/__e2e__/disassociate.test.js +0 -46
- package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.js +0 -419
- package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaInitializer.test.js +0 -119
- package/lib/modules/blocks/data-blocks/details-multi/__e2e__/schemaSettings.test.js +0 -79
- package/lib/modules/blocks/data-blocks/details-multi/__e2e__/templatesOfBug.js +0 -6
- package/lib/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.js +0 -21
- package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaInitializer.test.js +0 -105
- package/lib/modules/blocks/data-blocks/details-single/__e2e__/schemaSettings.test.js +0 -31
- package/lib/modules/blocks/data-blocks/details-single/__e2e__/templatesOfBug.js +0 -6
- package/lib/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.js +0 -21
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/associationForm.test.js +0 -21
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/dragAndDrop.test.js +0 -33
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadAssociationFields.test.js +0 -175
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/lazyLoadVariables.test.js +0 -35
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaInitializer.test.js +0 -148
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.js +0 -1261
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.js +0 -6047
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaInitializer.test.js +0 -23
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/schemaSettings.test.js +0 -219
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-edit/templatesOfBug.js +0 -6
- package/lib/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.js +0 -26
- package/lib/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.js +0 -25
- package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaInitializer.test.js +0 -227
- package/lib/modules/blocks/data-blocks/grid-card/__e2e__/schemaSettings.test.js +0 -55
- package/lib/modules/blocks/data-blocks/grid-card/__e2e__/templatesOfBug.js +0 -6
- package/lib/modules/blocks/data-blocks/grid-card/__tests__/createGridCardBlockSchema.test.js +0 -33
- package/lib/modules/blocks/data-blocks/list/__e2e__/schemaInitializer.test.js +0 -218
- package/lib/modules/blocks/data-blocks/list/__e2e__/schemaSettings.test.js +0 -30
- package/lib/modules/blocks/data-blocks/list/__e2e__/templatesOfBug.js +0 -6
- package/lib/modules/blocks/data-blocks/list/__tests__/createListBlockSchema.test.js +0 -31
- package/lib/modules/blocks/data-blocks/table/__e2e__/actions/duplicate.test.js +0 -16
- package/lib/modules/blocks/data-blocks/table/__e2e__/actions/filter.test.js +0 -40
- package/lib/modules/blocks/data-blocks/table/__e2e__/checkboxForTableRow.test.js +0 -26
- package/lib/modules/blocks/data-blocks/table/__e2e__/dragAndDrop.test.js +0 -38
- package/lib/modules/blocks/data-blocks/table/__e2e__/schemaInitializer.test.js +0 -426
- package/lib/modules/blocks/data-blocks/table/__e2e__/schemaSettings.test.js +0 -876
- package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.js +0 -979
- package/lib/modules/blocks/data-blocks/table/__e2e__/tree/schemaSettings.test.js +0 -49
- package/lib/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.js +0 -23
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaInitializer.test.js +0 -166
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/schemaSettings.test.js +0 -153
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.js +0 -728
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/utils.js +0 -46
- package/lib/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.js +0 -21
- package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaInitializer.test.js +0 -66
- package/lib/modules/blocks/filter-blocks/collapse/__e2e__/schemaSettings.test.js +0 -69
- package/lib/modules/blocks/filter-blocks/collapse/__e2e__/templatesOfBug.js +0 -6
- package/lib/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.js +0 -47
- package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaInitializer.test.js +0 -122
- package/lib/modules/blocks/filter-blocks/form/__e2e__/schemaSettings.test.js +0 -105
- package/lib/modules/blocks/filter-blocks/form/__e2e__/templatesOfBug.js +0 -6
- package/lib/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.js +0 -30
- package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaInitializer.test.js +0 -17
- package/lib/modules/blocks/other-blocks/markdown/__e2e__/schemaSettings.test.js +0 -40
- package/lib/modules/blocks/other-blocks/markdown/__e2e__/templatesOfBug.js +0 -6
- package/lib/modules/dialog/__e2e__/schemaInitializer.test.js +0 -395
- package/lib/modules/dialog/__e2e__/schemaSettings.test.js +0 -66
- package/lib/modules/dialog/__e2e__/templatesOfBug.js +0 -2161
- package/lib/modules/dialog/__e2e__/zIndex.test.js +0 -42
- package/lib/modules/fields/component/DatePicker/__e2e__/schemaSettings.test.js +0 -109
- package/lib/modules/fields/component/DatePicker/__e2e__/utils.js +0 -358
- package/lib/modules/menu/__e2e__/dragAndDrop.test.js +0 -34
- package/lib/modules/menu/__e2e__/schemaInitializer.test.js +0 -108
- package/lib/modules/menu/__e2e__/schemaSettings.test.js +0 -354
- package/lib/modules/menu/__e2e__/templatesOfBug.js +0 -6
- package/lib/modules/page/__e2e__/blockInitializers.test.js +0 -24
- package/lib/modules/page/__e2e__/dragAndDrop.test.js +0 -23
- package/lib/modules/page/__e2e__/schemaInitailizer.test.js +0 -22
- package/lib/modules/page/__e2e__/schemaSettings.test.js +0 -141
- package/lib/modules/page/__e2e__/templatesOfBug.js +0 -6
- package/lib/modules/plugin-manager/__e2e__/pluginManager.test.js +0 -120
- package/lib/modules/plugin-manager/__e2e__/templatesOfBug.js +0 -6
- package/lib/modules/user-center/__e2e__/settings.test.js +0 -19
- package/lib/schema-component/antd/action/__tests__/action.test.js +0 -154
- package/lib/schema-component/antd/action/demos/demo1.js +0 -104
- package/lib/schema-component/antd/action/demos/demo2.js +0 -109
- package/lib/schema-component/antd/action/demos/demo3.js +0 -175
- package/lib/schema-component/antd/action/demos/demo4.js +0 -92
- package/lib/schema-component/antd/action/demos/demo5.js +0 -245
- package/lib/schema-component/antd/action/demos/demo6.js +0 -129
- package/lib/schema-component/antd/association-select/__tests__/association-select.test.js +0 -51
- package/lib/schema-component/antd/association-select/demos/demo1.js +0 -89
- package/lib/schema-component/antd/block-item/__tests__/block-item.test.js +0 -49
- package/lib/schema-component/antd/block-item/demos/demo1.js +0 -94
- package/lib/schema-component/antd/card-item/__tests__/card-item.test.js +0 -46
- package/lib/schema-component/antd/card-item/demos/demo1.js +0 -65
- package/lib/schema-component/antd/cascader/__tests__/cascader.test.js +0 -65
- package/lib/schema-component/antd/cascader/demos/demo1.js +0 -116
- package/lib/schema-component/antd/cascader/demos/demo2.js +0 -163
- package/lib/schema-component/antd/checkbox/__tests__/checkbox.test.js +0 -76
- package/lib/schema-component/antd/checkbox/demos/checkbox.group.js +0 -88
- package/lib/schema-component/antd/checkbox/demos/checkbox.js +0 -74
- package/lib/schema-component/antd/collection-select/__tests__/collection-select.test.js +0 -51
- package/lib/schema-component/antd/collection-select/demos/demo1.js +0 -70
- package/lib/schema-component/antd/color-picker/demos/demo1.js +0 -83
- package/lib/schema-component/antd/color-select/__tests__/color-select.test.js +0 -51
- package/lib/schema-component/antd/color-select/demos/demo1.js +0 -74
- package/lib/schema-component/antd/cron/__tests__/cron-set.test.js +0 -66
- package/lib/schema-component/antd/cron/demos/demo1.js +0 -66
- package/lib/schema-component/antd/cron/demos/demo2.js +0 -85
- package/lib/schema-component/antd/date-picker/__tests__/date-picker.test.js +0 -222
- package/lib/schema-component/antd/date-picker/__tests__/getDateRanges.test.js +0 -145
- package/lib/schema-component/antd/date-picker/__tests__/mapDatePicker.test.js +0 -235
- package/lib/schema-component/antd/date-picker/__tests__/mapRangePicker.test.js +0 -94
- package/lib/schema-component/antd/date-picker/__tests__/util.test.js +0 -201
- package/lib/schema-component/antd/date-picker/demos/demo1.js +0 -91
- package/lib/schema-component/antd/date-picker/demos/demo10.js +0 -95
- package/lib/schema-component/antd/date-picker/demos/demo11.js +0 -99
- package/lib/schema-component/antd/date-picker/demos/demo2.js +0 -94
- package/lib/schema-component/antd/date-picker/demos/demo3.js +0 -92
- package/lib/schema-component/antd/date-picker/demos/demo4.js +0 -120
- package/lib/schema-component/antd/date-picker/demos/demo5.js +0 -119
- package/lib/schema-component/antd/date-picker/demos/demo6.js +0 -119
- package/lib/schema-component/antd/date-picker/demos/demo7.js +0 -95
- package/lib/schema-component/antd/date-picker/demos/demo8.js +0 -95
- package/lib/schema-component/antd/date-picker/demos/demo9.js +0 -95
- package/lib/schema-component/antd/details/__tests__/details.test.js +0 -45
- package/lib/schema-component/antd/details/demos/demo1.js +0 -76
- package/lib/schema-component/antd/error-fallback/__tests__/error-fallback.test.js +0 -52
- package/lib/schema-component/antd/error-fallback/demos/demo1.js +0 -47
- package/lib/schema-component/antd/filter/__tests__/filter.test.js +0 -152
- package/lib/schema-component/antd/filter/demos/demo2.js +0 -163
- package/lib/schema-component/antd/filter/demos/demo3.js +0 -230
- package/lib/schema-component/antd/filter/demos/demo4.js +0 -218
- package/lib/schema-component/antd/filter/demos/demo5.js +0 -165
- package/lib/schema-component/antd/filter/demos/demo6.js +0 -152
- package/lib/schema-component/antd/form/__tests__/form.test.js +0 -155
- package/lib/schema-component/antd/form/demos/apiClient.js +0 -65
- package/lib/schema-component/antd/form/demos/demo1.js +0 -107
- package/lib/schema-component/antd/form/demos/demo2.js +0 -107
- package/lib/schema-component/antd/form/demos/demo3.js +0 -106
- package/lib/schema-component/antd/form/demos/demo4.js +0 -114
- package/lib/schema-component/antd/form/demos/demo5.js +0 -148
- package/lib/schema-component/antd/form/demos/demo6.js +0 -105
- package/lib/schema-component/antd/form/demos/demo7.js +0 -109
- package/lib/schema-component/antd/form/demos/demo8.js +0 -120
- package/lib/schema-component/antd/form-item/__tests__/form-item.test.js +0 -47
- package/lib/schema-component/antd/form-item/__tests__/hooks/useSpecialCase.test.js +0 -34
- package/lib/schema-component/antd/form-item/__tests__/utils.test.js +0 -72
- package/lib/schema-component/antd/form-item/demos/demo1.js +0 -71
- package/lib/schema-component/antd/form-v2/__tests__/form-v2.test.js +0 -84
- package/lib/schema-component/antd/form-v2/demos/collections.js +0 -1601
- package/lib/schema-component/antd/form-v2/demos/demo1.js +0 -156
- package/lib/schema-component/antd/form-v2/demos/demo2.js +0 -179
- package/lib/schema-component/antd/form-v2/demos/demo3.js +0 -165
- package/lib/schema-component/antd/grid/__tests__/grid.test.js +0 -63
- package/lib/schema-component/antd/grid/demos/demo1.js +0 -228
- package/lib/schema-component/antd/grid/demos/demo2.js +0 -131
- package/lib/schema-component/antd/grid/demos/demo3.js +0 -118
- package/lib/schema-component/antd/grid-card/__tests__/grid-card.test.js +0 -44
- package/lib/schema-component/antd/grid-card/demos/demo1.js +0 -40
- package/lib/schema-component/antd/icon-picker/__tests__/icon-picker.test.js +0 -60
- package/lib/schema-component/antd/icon-picker/demos/icon-picker.js +0 -74
- package/lib/schema-component/antd/input/__tests__/Input.test.js +0 -153
- package/lib/schema-component/antd/input/demos/input.js +0 -74
- package/lib/schema-component/antd/input/demos/json.js +0 -80
- package/lib/schema-component/antd/input/demos/textarea.js +0 -102
- package/lib/schema-component/antd/input/demos/url.js +0 -76
- package/lib/schema-component/antd/input-number/__tests__/input-number.test.js +0 -153
- package/lib/schema-component/antd/input-number/demos/addonBefore&addonAfter.js +0 -82
- package/lib/schema-component/antd/input-number/demos/highPrecisionDecimals.js +0 -84
- package/lib/schema-component/antd/input-number/demos/inputNumber.js +0 -74
- package/lib/schema-component/antd/list/__tests__/list.test.js +0 -44
- package/lib/schema-component/antd/list/demos/demo1.js +0 -40
- package/lib/schema-component/antd/markdown/__tests__/markdown.test.js +0 -63
- package/lib/schema-component/antd/markdown/demos/demo1.js +0 -74
- package/lib/schema-component/antd/markdown/demos/demo2.js +0 -85
- package/lib/schema-component/antd/menu/__tests__/menu.test.js +0 -75
- package/lib/schema-component/antd/menu/demos/demo1.js +0 -127
- package/lib/schema-component/antd/menu/demos/demo2.js +0 -130
- package/lib/schema-component/antd/menu/demos/demo3.js +0 -169
- package/lib/schema-component/antd/page/__tests__/page.test.js +0 -53
- package/lib/schema-component/antd/page/demos/demo1.js +0 -72
- package/lib/schema-component/antd/password/__tests__/password.test.js +0 -64
- package/lib/schema-component/antd/password/__tests__/utils.test.js +0 -28
- package/lib/schema-component/antd/password/demos/demo1.js +0 -74
- package/lib/schema-component/antd/password/demos/demo2.js +0 -77
- package/lib/schema-component/antd/percent/__tests__/percent.test.js +0 -51
- package/lib/schema-component/antd/percent/demos/percent.js +0 -74
- package/lib/schema-component/antd/preview/__tests__/preview.test.js +0 -46
- package/lib/schema-component/antd/preview/demos/demo1.js +0 -129
- package/lib/schema-component/antd/radio/__tests__/radio.test.js +0 -80
- package/lib/schema-component/antd/radio/demos/demo1.js +0 -74
- package/lib/schema-component/antd/radio/demos/demo2.js +0 -86
- package/lib/schema-component/antd/radio/demos/demo3.js +0 -88
- package/lib/schema-component/antd/record-picker/__tests__/record-picker.test.js +0 -62
- package/lib/schema-component/antd/record-picker/demos/demo1.js +0 -223
- package/lib/schema-component/antd/record-picker/demos/mockData.js +0 -247
- package/lib/schema-component/antd/remote-select/__tests__/remote-select.test.js +0 -51
- package/lib/schema-component/antd/remote-select/demos/demo1.js +0 -89
- package/lib/schema-component/antd/rich-text/__tests__/rich-text.test.js +0 -48
- package/lib/schema-component/antd/rich-text/demos/demo1.js +0 -75
- package/lib/schema-component/antd/select/__tests__/select.test.js +0 -78
- package/lib/schema-component/antd/select/__tests__/utils.test.js +0 -136
- package/lib/schema-component/antd/select/demos/demo1.js +0 -106
- package/lib/schema-component/antd/select/demos/demo2.js +0 -110
- package/lib/schema-component/antd/select/demos/demo3.js +0 -118
- package/lib/schema-component/antd/table/__tests__/table.test.js +0 -59
- package/lib/schema-component/antd/table/demos/demo1.js +0 -97
- package/lib/schema-component/antd/table/demos/demo2.js +0 -97
- package/lib/schema-component/antd/table/demos/demo3.js +0 -97
- package/lib/schema-component/antd/table/demos/demo4.js +0 -251
- package/lib/schema-component/antd/table-v2/__tests__/table-v2.test.js +0 -49
- package/lib/schema-component/antd/table-v2/demos/collections.js +0 -1596
- package/lib/schema-component/antd/table-v2/demos/demo1.js +0 -268
- package/lib/schema-component/antd/table-v2/demos/demo2.js +0 -151
- package/lib/schema-component/antd/tabs/__tests__/tabs.test.js +0 -49
- package/lib/schema-component/antd/tabs/demos/demo1.js +0 -101
- package/lib/schema-component/antd/time-picker/__tests__/time-picker.test.js +0 -81
- package/lib/schema-component/antd/time-picker/demos/demo1.js +0 -74
- package/lib/schema-component/antd/time-picker/demos/demo2.js +0 -74
- package/lib/schema-component/antd/tree-select/__tests__/tree-select.test.js +0 -49
- package/lib/schema-component/antd/tree-select/demos/demo1.js +0 -118
- package/lib/schema-component/antd/upload/__tests__/upload.test.js +0 -49
- package/lib/schema-component/antd/upload/demos/apiClient.js +0 -77
- package/lib/schema-component/antd/upload/demos/demo1.js +0 -96
- package/lib/schema-component/antd/upload/demos/demo2.js +0 -163
- package/lib/schema-component/antd/variable/__tests__/variable.test.js +0 -82
- package/lib/schema-component/antd/variable/demos/demo1.js +0 -78
- package/lib/schema-component/antd/variable/demos/demo2.js +0 -78
- package/lib/schema-component/antd/variable/demos/demo3.js +0 -78
- package/lib/schema-component/demos/demo1.js +0 -123
- package/lib/schema-component/demos/demo2.js +0 -57
- package/lib/schema-component/demos/demo3.js +0 -58
- package/lib/schema-component/demos/demo4.js +0 -58
- package/lib/schema-component/hooks/__tests__/designable.test.js +0 -555
- package/lib/schema-component/hooks/__tests__/splitWrapSchema.test.js +0 -96
- package/lib/schema-initializer/demos/basic.js +0 -96
- package/lib/schema-initializer/demos/build-type.js +0 -117
- package/lib/schema-initializer/demos/custom-button.js +0 -128
- package/lib/schema-initializer/demos/custom-items-component.js +0 -134
- package/lib/schema-initializer/demos/dynamic-visible-children.js +0 -115
- package/lib/schema-initializer/demos/insert-schema-action.js +0 -126
- package/lib/schema-initializer/demos/insert-schema-basic.js +0 -146
- package/lib/schema-initializer/demos/insert-schema-form-item.js +0 -170
- package/lib/schema-initializer/demos/nested-items.js +0 -182
- package/lib/schema-settings/demos/basic.js +0 -94
- package/lib/schema-settings/demos/built-type.js +0 -176
- package/lib/schema-settings/demos/custom-component.js +0 -76
- package/lib/schema-settings/demos/demo3.js +0 -134
- package/lib/schema-settings/demos/schema-basic.js +0 -98
- package/lib/user/__tests__/current-user-settings-menu-provider.test.js +0 -43
- package/lib/variables/__tests__/useVariables.test.js +0 -442
- package/lib/variables/__tests__/utils/filterEmptyValues.test.js +0 -53
- package/lib/variables/__tests__/utils/getPath.test.js +0 -11
- package/lib/variables/__tests__/utils/getVariableName.test.js +0 -11
- package/lib/variables/__tests__/utils/isVariable.test.js +0 -29
- package/lib/variables/__tests__/utils/transformVariableValue.test.js +0 -143
- package/lib/variables/__tests__/utils/uniq.test.js +0 -84
|
@@ -1,103 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.n = function(module) {
|
|
5
|
-
var getter = module && module.__esModule ? function() {
|
|
6
|
-
return module['default'];
|
|
7
|
-
} : function() {
|
|
8
|
-
return module;
|
|
9
|
-
};
|
|
10
|
-
__webpack_require__.d(getter, {
|
|
11
|
-
a: getter
|
|
12
|
-
});
|
|
13
|
-
return getter;
|
|
14
|
-
};
|
|
15
|
-
})();
|
|
16
|
-
(()=>{
|
|
17
|
-
__webpack_require__.d = function(exports1, definition) {
|
|
18
|
-
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: definition[key]
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
(()=>{
|
|
25
|
-
__webpack_require__.o = function(obj, prop) {
|
|
26
|
-
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
27
|
-
};
|
|
28
|
-
})();
|
|
29
|
-
(()=>{
|
|
30
|
-
__webpack_require__.r = function(exports1) {
|
|
31
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
32
|
-
value: 'Module'
|
|
33
|
-
});
|
|
34
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
35
|
-
value: true
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
})();
|
|
39
|
-
var __webpack_exports__ = {};
|
|
40
|
-
__webpack_require__.r(__webpack_exports__);
|
|
41
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
42
|
-
createApp: ()=>createApp
|
|
43
|
-
});
|
|
44
|
-
const client_namespaceObject = require("@tachybase/client");
|
|
45
|
-
const external_axios_mock_adapter_namespaceObject = require("axios-mock-adapter");
|
|
46
|
-
var external_axios_mock_adapter_default = /*#__PURE__*/ __webpack_require__.n(external_axios_mock_adapter_namespaceObject);
|
|
47
|
-
var collections_namespaceObject = JSON.parse('[{"key":"h7b9i8khc3q","name":"users","inherit":false,"hidden":false,"description":null,"category":[],"namespace":"users.users","duplicator":{"dumpable":"optional","with":"rolesUsers"},"sortable":"sort","model":"UserModel","createdBy":true,"updatedBy":true,"logging":true,"from":"db2cm","title":"{{t(\\"Users\\")}}","rawTitle":"{{t(\\"Users\\")}}","fields":[{"uiSchema":{"type":"number","title":"{{t(\\"ID\\")}}","x-component":"InputNumber","x-read-pretty":true,"rawTitle":"{{t(\\"ID\\")}}"},"key":"ffp1f2sula0","name":"id","type":"bigInt","interface":"id","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"autoIncrement":true,"primaryKey":true,"allowNull":false},{"uiSchema":{"type":"string","title":"{{t(\\"Nickname\\")}}","x-component":"Input","rawTitle":"{{t(\\"Nickname\\")}}"},"key":"vrv7yjue90g","name":"nickname","type":"string","interface":"input","description":null,"collectionName":"users","parentKey":null,"reverseKey":null},{"uiSchema":{"type":"string","title":"{{t(\\"Username\\")}}","x-component":"Input","x-validator":{"username":true},"required":true,"rawTitle":"{{t(\\"Username\\")}}"},"key":"2ccs6evyrub","name":"username","type":"string","interface":"input","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"unique":true},{"uiSchema":{"type":"string","title":"{{t(\\"Email\\")}}","x-component":"Input","x-validator":"email","required":true,"rawTitle":"{{t(\\"Email\\")}}"},"key":"rrskwjl5wt1","name":"email","type":"string","interface":"email","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"unique":true},{"key":"t09bauwm0wb","name":"roles","type":"belongsToMany","interface":"m2m","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"target":"roles","foreignKey":"userId","otherKey":"roleName","onDelete":"CASCADE","sourceKey":"id","targetKey":"name","through":"rolesUsers","uiSchema":{"type":"array","title":"{{t(\\"Roles\\")}}","x-component":"AssociationField","x-component-props":{"multiple":true,"fieldNames":{"label":"title","value":"name"}}}},{"key":"1pz0art9mt7","name":"f_n2fu6hvprct","type":"string","interface":"select","description":null,"collectionName":"t_vwpds9fs4xs","parentKey":null,"reverseKey":null,"uiSchema":{"enum":[{"value":"test1","label":"test1"},{"value":"test2","label":"test2"}],"type":"string","x-component":"Select","title":"test"}}]},{"key":"pqnenvqrzxr","name":"roles","inherit":false,"hidden":false,"description":null,"category":[],"namespace":"acl.acl","duplicator":{"dumpable":"required","with":"uiSchemas"},"autoGenId":false,"model":"RoleModel","filterTargetKey":"name","sortable":true,"from":"db2cm","title":"{{t(\\"Roles\\")}}","rawTitle":"{{t(\\"Roles\\")}}","fields":[{"uiSchema":{"type":"string","title":"{{t(\\"Role UID\\")}}","x-component":"Input","rawTitle":"{{t(\\"Role UID\\")}}"},"key":"jbz9m80bxmp","name":"name","type":"uid","interface":"input","description":null,"collectionName":"roles","parentKey":null,"reverseKey":null,"prefix":"r_","primaryKey":true},{"uiSchema":{"type":"string","title":"{{t(\\"Role name\\")}}","x-component":"Input","rawTitle":"{{t(\\"Role name\\")}}"},"key":"faywtz4sf3u","name":"title","type":"string","interface":"input","description":null,"collectionName":"roles","parentKey":null,"reverseKey":null,"unique":true,"translation":true},{"key":"1enkovm9sye","name":"description","type":"string","interface":null,"description":null,"collectionName":"roles","parentKey":null,"reverseKey":null}]}]');
|
|
48
|
-
function createApp(Demo) {
|
|
49
|
-
let options = arguments.length > 1 && void 0 !== arguments[1] ? arguments[1] : {}, mocks = arguments.length > 2 ? arguments[2] : void 0;
|
|
50
|
-
class MyPlugin extends client_namespaceObject.Plugin {
|
|
51
|
-
async load() {
|
|
52
|
-
this.app.dataSourceManager.addDataSource(client_namespaceObject.LocalDataSource, {
|
|
53
|
-
key: client_namespaceObject.DEFAULT_DATA_SOURCE_KEY,
|
|
54
|
-
displayName: client_namespaceObject.DEFAULT_DATA_SOURCE_TITLE,
|
|
55
|
-
collections: collections_namespaceObject
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
const app = new client_namespaceObject.Application({
|
|
60
|
-
apiClient: {
|
|
61
|
-
baseURL: 'http://localhost:8000'
|
|
62
|
-
},
|
|
63
|
-
providers: [
|
|
64
|
-
Demo
|
|
65
|
-
],
|
|
66
|
-
...options,
|
|
67
|
-
components: {
|
|
68
|
-
...options.components,
|
|
69
|
-
DataBlockProvider: client_namespaceObject.DataBlockProvider,
|
|
70
|
-
CardItem: client_namespaceObject.CardItem
|
|
71
|
-
},
|
|
72
|
-
plugins: [
|
|
73
|
-
client_namespaceObject.CollectionPlugin,
|
|
74
|
-
MyPlugin
|
|
75
|
-
],
|
|
76
|
-
designable: true
|
|
77
|
-
});
|
|
78
|
-
const mock = new (external_axios_mock_adapter_default())(app.apiClient.axios);
|
|
79
|
-
Object.entries(mocks).forEach((param)=>{
|
|
80
|
-
let [url, data] = param;
|
|
81
|
-
mock.onGet(url).reply(async (config)=>{
|
|
82
|
-
const res = 'function' == typeof data ? data(config) : data;
|
|
83
|
-
return [
|
|
84
|
-
200,
|
|
85
|
-
res
|
|
86
|
-
];
|
|
87
|
-
});
|
|
88
|
-
mock.onPost(url).reply(async (config)=>{
|
|
89
|
-
const res = 'function' == typeof data ? data(config) : data;
|
|
90
|
-
return [
|
|
91
|
-
200,
|
|
92
|
-
res
|
|
93
|
-
];
|
|
94
|
-
});
|
|
95
|
-
});
|
|
96
|
-
const Root = app.getRootComponent();
|
|
97
|
-
return Root;
|
|
98
|
-
}
|
|
99
|
-
var __webpack_export_target__ = exports;
|
|
100
|
-
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
101
|
-
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
102
|
-
value: true
|
|
103
|
-
});
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_exports__ = {};
|
|
3
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
4
|
-
require("react");
|
|
5
|
-
const client_namespaceObject = require("@tachybase/client");
|
|
6
|
-
const test_client_namespaceObject = require("@tachybase/test/client");
|
|
7
|
-
const DataSourceApplicationProvider_js_namespaceObject = require("../../components/DataSourceApplicationProvider.js");
|
|
8
|
-
const DataSourceProvider_js_namespaceObject = require("../../data-source/DataSourceProvider.js");
|
|
9
|
-
describe('CollectionDataSourceProvider', ()=>{
|
|
10
|
-
test('should work', ()=>{
|
|
11
|
-
const app = new client_namespaceObject.Application({
|
|
12
|
-
dataSourceManager: {
|
|
13
|
-
dataSources: [
|
|
14
|
-
{
|
|
15
|
-
key: 'a',
|
|
16
|
-
displayName: 'a'
|
|
17
|
-
}
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
const Demo = ()=>{
|
|
22
|
-
const name = (0, DataSourceProvider_js_namespaceObject.useDataSourceKey)();
|
|
23
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
24
|
-
"data-testid": "content",
|
|
25
|
-
children: name
|
|
26
|
-
});
|
|
27
|
-
};
|
|
28
|
-
(0, test_client_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DataSourceApplicationProvider_js_namespaceObject.DataSourceApplicationProvider, {
|
|
29
|
-
dataSourceManager: app.dataSourceManager,
|
|
30
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(DataSourceProvider_js_namespaceObject.DataSourceProvider, {
|
|
31
|
-
dataSource: 'a',
|
|
32
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Demo, {})
|
|
33
|
-
})
|
|
34
|
-
}));
|
|
35
|
-
expect(test_client_namespaceObject.screen.getByTestId('content')).toHaveTextContent('a');
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
var __webpack_export_target__ = exports;
|
|
39
|
-
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
40
|
-
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
41
|
-
value: true
|
|
42
|
-
});
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_exports__ = {};
|
|
3
|
-
const client_namespaceObject = require("@tachybase/client");
|
|
4
|
-
describe('DataSource', ()=>{
|
|
5
|
-
let dataSource;
|
|
6
|
-
let app;
|
|
7
|
-
const collections = [
|
|
8
|
-
{
|
|
9
|
-
name: 'a'
|
|
10
|
-
}
|
|
11
|
-
];
|
|
12
|
-
const newDisplayName = 'new display name';
|
|
13
|
-
const dataSourceOptions = {
|
|
14
|
-
key: 'test',
|
|
15
|
-
displayName: 'Test Data Source',
|
|
16
|
-
status: 'loading'
|
|
17
|
-
};
|
|
18
|
-
beforeEach(()=>{
|
|
19
|
-
app = new client_namespaceObject.Application({});
|
|
20
|
-
class TestDataSource extends client_namespaceObject.DataSource {
|
|
21
|
-
async getDataSource() {
|
|
22
|
-
return {
|
|
23
|
-
displayName: newDisplayName,
|
|
24
|
-
collections: collections
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
app.dataSourceManager.addDataSource(TestDataSource, dataSourceOptions);
|
|
29
|
-
dataSource = app.dataSourceManager.getDataSource('test');
|
|
30
|
-
});
|
|
31
|
-
it('initializes with the correct options', ()=>{
|
|
32
|
-
expect(dataSource.getOptions()).toEqual(dataSourceOptions);
|
|
33
|
-
expect(dataSource.app).toBe(app);
|
|
34
|
-
expect(dataSource.key).toBe(dataSourceOptions.key);
|
|
35
|
-
expect(dataSource.displayName).toBe(dataSourceOptions.displayName);
|
|
36
|
-
expect(dataSource.key).toBe(dataSourceOptions.key);
|
|
37
|
-
expect(dataSource.status).toBe(dataSourceOptions.status);
|
|
38
|
-
expect(dataSource.errorMessage).toBe(dataSourceOptions.errorMessage);
|
|
39
|
-
expect(dataSource.collections).toEqual([]);
|
|
40
|
-
});
|
|
41
|
-
it('getOption() returns the correct value', ()=>{
|
|
42
|
-
expect(dataSource.getOption('displayName')).toBe(dataSourceOptions.displayName);
|
|
43
|
-
});
|
|
44
|
-
it('sets new options correctly', ()=>{
|
|
45
|
-
dataSource.setOptions({
|
|
46
|
-
displayName: 'New Display Name'
|
|
47
|
-
});
|
|
48
|
-
expect(dataSource.displayName).toBe('New Display Name');
|
|
49
|
-
});
|
|
50
|
-
it('can add and call reload callbacks', async ()=>{
|
|
51
|
-
const callback = vitest.fn();
|
|
52
|
-
dataSource.addReloadCallback(callback);
|
|
53
|
-
await dataSource.reload();
|
|
54
|
-
expect(callback).toHaveBeenCalled();
|
|
55
|
-
});
|
|
56
|
-
it('does not add the same reload callback twice', ()=>{
|
|
57
|
-
const callback = vitest.fn();
|
|
58
|
-
dataSource.addReloadCallback(callback);
|
|
59
|
-
dataSource.addReloadCallback(callback);
|
|
60
|
-
expect(dataSource['reloadCallbacks'].length).toBe(1);
|
|
61
|
-
});
|
|
62
|
-
it('can remove reload callbacks', ()=>{
|
|
63
|
-
const callback = vitest.fn();
|
|
64
|
-
dataSource.addReloadCallback(callback);
|
|
65
|
-
dataSource.removeReloadCallback(callback);
|
|
66
|
-
expect(dataSource['reloadCallbacks'].length).toBe(0);
|
|
67
|
-
});
|
|
68
|
-
it('updates collections and calls callbacks on reload', async ()=>{
|
|
69
|
-
const callback = vitest.fn();
|
|
70
|
-
dataSource.addReloadCallback(callback);
|
|
71
|
-
await dataSource.reload();
|
|
72
|
-
expect(dataSource.collections.length).toBe(collections.length);
|
|
73
|
-
expect(dataSource.displayName).toBe(newDisplayName);
|
|
74
|
-
expect(callback).toHaveBeenCalledWith(collections);
|
|
75
|
-
expect(dataSource.collectionManager.getCollection('a')).toBeTruthy();
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
var __webpack_export_target__ = exports;
|
|
79
|
-
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
80
|
-
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
81
|
-
value: true
|
|
82
|
-
});
|
|
@@ -1,173 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_exports__ = {};
|
|
3
|
-
const client_namespaceObject = require("@tachybase/client");
|
|
4
|
-
var collections_namespaceObject = JSON.parse('[{"key":"h7b9i8khc3q","name":"users","inherit":false,"hidden":false,"description":null,"category":[],"namespace":"users.users","duplicator":{"dumpable":"optional","with":"rolesUsers"},"sortable":"sort","model":"UserModel","createdBy":true,"updatedBy":true,"logging":true,"from":"db2cm","title":"{{t(\\"Users\\")}}","rawTitle":"{{t(\\"Users\\")}}","fields":[{"uiSchema":{"type":"number","title":"{{t(\\"ID\\")}}","x-component":"InputNumber","x-read-pretty":true,"rawTitle":"{{t(\\"ID\\")}}"},"key":"ffp1f2sula0","name":"id","type":"bigInt","interface":"id","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"autoIncrement":true,"primaryKey":true,"allowNull":false},{"uiSchema":{"type":"string","title":"{{t(\\"Nickname\\")}}","x-component":"Input","rawTitle":"{{t(\\"Nickname\\")}}"},"key":"vrv7yjue90g","name":"nickname","type":"string","interface":"input","description":null,"collectionName":"users","parentKey":null,"reverseKey":null},{"uiSchema":{"type":"string","title":"{{t(\\"Username\\")}}","x-component":"Input","x-validator":{"username":true},"required":true,"rawTitle":"{{t(\\"Username\\")}}"},"key":"2ccs6evyrub","name":"username","type":"string","interface":"input","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"unique":true},{"uiSchema":{"type":"string","title":"{{t(\\"Email\\")}}","x-component":"Input","x-validator":"email","required":true,"rawTitle":"{{t(\\"Email\\")}}"},"key":"rrskwjl5wt1","name":"email","type":"string","interface":"email","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"unique":true},{"key":"t09bauwm0wb","name":"roles","type":"belongsToMany","interface":"m2m","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"target":"roles","foreignKey":"userId","otherKey":"roleName","onDelete":"CASCADE","sourceKey":"id","targetKey":"name","through":"rolesUsers","uiSchema":{"type":"array","title":"{{t(\\"Roles\\")}}","x-component":"AssociationField","x-component-props":{"multiple":true,"fieldNames":{"label":"title","value":"name"}}}},{"key":"1pz0art9mt7","name":"f_n2fu6hvprct","type":"string","interface":"select","description":null,"collectionName":"t_vwpds9fs4xs","parentKey":null,"reverseKey":null,"uiSchema":{"enum":[{"value":"test1","label":"test1"},{"value":"test2","label":"test2"}],"type":"string","x-component":"Select","title":"test"}}]},{"key":"pqnenvqrzxr","name":"roles","inherit":false,"hidden":false,"description":null,"category":[],"namespace":"acl.acl","duplicator":{"dumpable":"required","with":"uiSchemas"},"autoGenId":false,"model":"RoleModel","filterTargetKey":"name","sortable":true,"from":"db2cm","title":"{{t(\\"Roles\\")}}","rawTitle":"{{t(\\"Roles\\")}}","fields":[{"uiSchema":{"type":"string","title":"{{t(\\"Role UID\\")}}","x-component":"Input","rawTitle":"{{t(\\"Role UID\\")}}"},"key":"jbz9m80bxmp","name":"name","type":"uid","interface":"input","description":null,"collectionName":"roles","parentKey":null,"reverseKey":null,"prefix":"r_","primaryKey":true},{"uiSchema":{"type":"string","title":"{{t(\\"Role name\\")}}","x-component":"Input","rawTitle":"{{t(\\"Role name\\")}}"},"key":"faywtz4sf3u","name":"title","type":"string","interface":"input","description":null,"collectionName":"roles","parentKey":null,"reverseKey":null,"unique":true,"translation":true},{"key":"1enkovm9sye","name":"description","type":"string","interface":null,"description":null,"collectionName":"roles","parentKey":null,"reverseKey":null}]}]');
|
|
5
|
-
describe('DataSourceManager', ()=>{
|
|
6
|
-
describe('mixins', ()=>{
|
|
7
|
-
test('init should work', ()=>{
|
|
8
|
-
class DemoCollectionMixin extends client_namespaceObject.Collection {
|
|
9
|
-
a() {
|
|
10
|
-
return 'test-' + this.name;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
13
|
-
const app = new client_namespaceObject.Application({
|
|
14
|
-
dataSourceManager: {
|
|
15
|
-
collections: collections_namespaceObject,
|
|
16
|
-
collectionMixins: [
|
|
17
|
-
DemoCollectionMixin
|
|
18
|
-
]
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
const user = app.getCollectionManager().getCollection('users');
|
|
22
|
-
expect(user.a()).toBe('test-users');
|
|
23
|
-
});
|
|
24
|
-
test('plugin should work', async ()=>{
|
|
25
|
-
class DemoCollectionMixin extends client_namespaceObject.Collection {
|
|
26
|
-
b() {
|
|
27
|
-
return 'test-' + this.name;
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
class MyPlugin extends client_namespaceObject.Plugin {
|
|
31
|
-
async load() {
|
|
32
|
-
this.app.getCollectionManager().addCollections(collections_namespaceObject);
|
|
33
|
-
this.app.dataSourceManager.addCollectionMixins([
|
|
34
|
-
DemoCollectionMixin
|
|
35
|
-
]);
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
const app = new client_namespaceObject.Application({
|
|
39
|
-
plugins: [
|
|
40
|
-
MyPlugin
|
|
41
|
-
]
|
|
42
|
-
});
|
|
43
|
-
await app.load();
|
|
44
|
-
const user = app.getCollectionManager().getCollection('users');
|
|
45
|
-
expect(user.b()).toBe('test-users');
|
|
46
|
-
});
|
|
47
|
-
test('multiple mixins should work', ()=>{
|
|
48
|
-
class DemoCollectionMixin1 extends client_namespaceObject.Collection {
|
|
49
|
-
c() {
|
|
50
|
-
return 'test1-' + this.name;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
class DemoCollectionMixin2 extends client_namespaceObject.Collection {
|
|
54
|
-
d() {
|
|
55
|
-
return 'test2-' + this.name;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
const app = new client_namespaceObject.Application({
|
|
59
|
-
dataSourceManager: {
|
|
60
|
-
collections: collections_namespaceObject,
|
|
61
|
-
collectionMixins: [
|
|
62
|
-
DemoCollectionMixin1,
|
|
63
|
-
DemoCollectionMixin2
|
|
64
|
-
]
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
const user = app.getCollectionManager().getCollection('users');
|
|
68
|
-
expect(user.c()).toBe('test1-users');
|
|
69
|
-
expect(user.d()).toBe('test2-users');
|
|
70
|
-
});
|
|
71
|
-
test('after add mixins, collection should be re-instantiated', ()=>{
|
|
72
|
-
class DemoCollectionMixin extends client_namespaceObject.Collection {
|
|
73
|
-
e() {
|
|
74
|
-
return 'test-' + this.name;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
const app = new client_namespaceObject.Application({
|
|
78
|
-
dataSourceManager: {
|
|
79
|
-
collections: collections_namespaceObject
|
|
80
|
-
}
|
|
81
|
-
});
|
|
82
|
-
const user = app.getCollectionManager().getCollection('users');
|
|
83
|
-
expect(user.e).toBeUndefined();
|
|
84
|
-
app.dataSourceManager.addCollectionMixins([
|
|
85
|
-
DemoCollectionMixin
|
|
86
|
-
]);
|
|
87
|
-
const user2 = app.getCollectionManager().getCollection('users');
|
|
88
|
-
expect(user2.e()).toBe('test-users');
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
describe('getAllCollections', ()=>{
|
|
92
|
-
test('getAllCollections() should work', ()=>{
|
|
93
|
-
const app = new client_namespaceObject.Application({
|
|
94
|
-
dataSourceManager: {
|
|
95
|
-
dataSources: [
|
|
96
|
-
{
|
|
97
|
-
key: 'a',
|
|
98
|
-
displayName: 'a'
|
|
99
|
-
}
|
|
100
|
-
]
|
|
101
|
-
}
|
|
102
|
-
});
|
|
103
|
-
app.getCollectionManager().addCollections(collections_namespaceObject);
|
|
104
|
-
app.getCollectionManager('a').addCollections([
|
|
105
|
-
collections_namespaceObject["0"]
|
|
106
|
-
]);
|
|
107
|
-
const allCollections = app.dataSourceManager.getAllCollections();
|
|
108
|
-
expect(allCollections.length).toBe(2);
|
|
109
|
-
expect(allCollections[0].key).toBe(client_namespaceObject.DEFAULT_DATA_SOURCE_KEY);
|
|
110
|
-
expect(allCollections[1].key).toBe('a');
|
|
111
|
-
expect(allCollections[0].collections.length).toBe(2);
|
|
112
|
-
expect(allCollections[1].collections.length).toBe(1);
|
|
113
|
-
});
|
|
114
|
-
});
|
|
115
|
-
describe('addDataSource', ()=>{
|
|
116
|
-
test('should add a data source', ()=>{
|
|
117
|
-
const app = new client_namespaceObject.Application();
|
|
118
|
-
const dataSourceManager = app.dataSourceManager;
|
|
119
|
-
expect(dataSourceManager.getDataSources()).toHaveLength(1);
|
|
120
|
-
const dataSource = dataSourceManager.addDataSource(client_namespaceObject.LocalDataSource, {
|
|
121
|
-
key: 'test',
|
|
122
|
-
displayName: 'Test'
|
|
123
|
-
});
|
|
124
|
-
expect(dataSourceManager.getDataSources()).toHaveLength(2);
|
|
125
|
-
expect(dataSourceManager.getDataSource('test')).toBe(dataSource);
|
|
126
|
-
});
|
|
127
|
-
});
|
|
128
|
-
describe('removeDataSources', ()=>{
|
|
129
|
-
test('should remove data sources', ()=>{
|
|
130
|
-
const app = new client_namespaceObject.Application();
|
|
131
|
-
const dataSourceManager = app.dataSourceManager;
|
|
132
|
-
dataSourceManager.addDataSource(client_namespaceObject.LocalDataSource, {
|
|
133
|
-
key: 'test1',
|
|
134
|
-
displayName: 'Test 1'
|
|
135
|
-
});
|
|
136
|
-
dataSourceManager.addDataSource(client_namespaceObject.LocalDataSource, {
|
|
137
|
-
key: 'test2',
|
|
138
|
-
displayName: 'Test 2'
|
|
139
|
-
});
|
|
140
|
-
expect(dataSourceManager.getDataSources()).toHaveLength(3);
|
|
141
|
-
dataSourceManager.removeDataSources([
|
|
142
|
-
'test1'
|
|
143
|
-
]);
|
|
144
|
-
expect(dataSourceManager.getDataSources()).toHaveLength(2);
|
|
145
|
-
expect(dataSourceManager.getDataSource('test1')).toBeUndefined();
|
|
146
|
-
expect(dataSourceManager.getDataSource('test2')).toBeDefined();
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
describe('reload', ()=>{
|
|
150
|
-
test('should reload data sources', async ()=>{
|
|
151
|
-
const app = new client_namespaceObject.Application();
|
|
152
|
-
const dataSourceManager = app.dataSourceManager;
|
|
153
|
-
const dataSource1 = dataSourceManager.addDataSource(client_namespaceObject.LocalDataSource, {
|
|
154
|
-
key: 'test1',
|
|
155
|
-
displayName: 'Test 1'
|
|
156
|
-
});
|
|
157
|
-
const dataSource2 = dataSourceManager.addDataSource(client_namespaceObject.LocalDataSource, {
|
|
158
|
-
key: 'test2',
|
|
159
|
-
displayName: 'Test 2'
|
|
160
|
-
});
|
|
161
|
-
const reloadSpy1 = vitest.spyOn(dataSource1, 'reload');
|
|
162
|
-
const reloadSpy2 = vitest.spyOn(dataSource2, 'reload');
|
|
163
|
-
await dataSourceManager.reload();
|
|
164
|
-
expect(reloadSpy1).toHaveBeenCalledTimes(1);
|
|
165
|
-
expect(reloadSpy2).toHaveBeenCalledTimes(1);
|
|
166
|
-
});
|
|
167
|
-
});
|
|
168
|
-
});
|
|
169
|
-
var __webpack_export_target__ = exports;
|
|
170
|
-
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
171
|
-
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
172
|
-
value: true
|
|
173
|
-
});
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_exports__ = {};
|
|
3
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
4
|
-
require("react");
|
|
5
|
-
const client_namespaceObject = require("@tachybase/client");
|
|
6
|
-
const react_namespaceObject = require("@testing-library/react");
|
|
7
|
-
describe('DataSourceManagerProvider', ()=>{
|
|
8
|
-
test('should render children', ()=>{
|
|
9
|
-
const dataSourceManager = {};
|
|
10
|
-
const { getByText } = (0, react_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.DataSourceManagerProvider, {
|
|
11
|
-
dataSourceManager: dataSourceManager,
|
|
12
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
13
|
-
children: "Test Children"
|
|
14
|
-
})
|
|
15
|
-
}));
|
|
16
|
-
expect(getByText('Test Children')).toBeInTheDocument();
|
|
17
|
-
});
|
|
18
|
-
});
|
|
19
|
-
describe('useDataSourceManager', ()=>{
|
|
20
|
-
test('should return the data source manager', ()=>{
|
|
21
|
-
const dataSourceManager = {};
|
|
22
|
-
const TestComponent = ()=>{
|
|
23
|
-
const manager = (0, client_namespaceObject.useDataSourceManager)();
|
|
24
|
-
expect(manager).toBe(dataSourceManager);
|
|
25
|
-
return null;
|
|
26
|
-
};
|
|
27
|
-
(0, react_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.DataSourceManagerProvider, {
|
|
28
|
-
dataSourceManager: dataSourceManager,
|
|
29
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TestComponent, {})
|
|
30
|
-
}));
|
|
31
|
-
});
|
|
32
|
-
});
|
|
33
|
-
var __webpack_export_target__ = exports;
|
|
34
|
-
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
35
|
-
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
36
|
-
value: true
|
|
37
|
-
});
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_exports__ = {};
|
|
3
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
4
|
-
require("react");
|
|
5
|
-
const client_namespaceObject = require("@tachybase/client");
|
|
6
|
-
const test_client_namespaceObject = require("@tachybase/test/client");
|
|
7
|
-
const AppSchemaComponentProvider_js_namespaceObject = require("../../../application/AppSchemaComponentProvider.js");
|
|
8
|
-
const DataSourceProvider_js_namespaceObject = require("../../data-source/DataSourceProvider.js");
|
|
9
|
-
describe('DataSourceProvider', ()=>{
|
|
10
|
-
function renderComponent(dataSource, status) {
|
|
11
|
-
const app = new client_namespaceObject.Application({
|
|
12
|
-
dataSourceManager: {
|
|
13
|
-
collections: [
|
|
14
|
-
{
|
|
15
|
-
name: 'a'
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const Demo = ()=>{
|
|
21
|
-
const dataSourceKey = (0, DataSourceProvider_js_namespaceObject.useDataSourceKey)();
|
|
22
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
23
|
-
"data-testid": "demo",
|
|
24
|
-
children: dataSourceKey
|
|
25
|
-
});
|
|
26
|
-
};
|
|
27
|
-
const dataSourceOptions = {
|
|
28
|
-
key: 'test',
|
|
29
|
-
displayName: 'Test',
|
|
30
|
-
status: status
|
|
31
|
-
};
|
|
32
|
-
class TestDataSource extends client_namespaceObject.DataSource {
|
|
33
|
-
async getDataSource() {
|
|
34
|
-
return dataSourceOptions;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
app.dataSourceManager.addDataSource(TestDataSource, dataSourceOptions);
|
|
38
|
-
const schema = {
|
|
39
|
-
name: 'root',
|
|
40
|
-
type: 'void',
|
|
41
|
-
'x-decorator': 'DataSourceProvider',
|
|
42
|
-
'x-decorator-props': {
|
|
43
|
-
dataSource
|
|
44
|
-
},
|
|
45
|
-
'x-component': 'Demo'
|
|
46
|
-
};
|
|
47
|
-
(0, test_client_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AppSchemaComponentProvider_js_namespaceObject.AppSchemaComponentProvider, {
|
|
48
|
-
designable: true,
|
|
49
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.DataSourceManagerProvider, {
|
|
50
|
-
dataSourceManager: app.dataSourceManager,
|
|
51
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(client_namespaceObject.SchemaComponent, {
|
|
52
|
-
schema: schema,
|
|
53
|
-
components: {
|
|
54
|
-
Demo,
|
|
55
|
-
DataSourceProvider: DataSourceProvider_js_namespaceObject.DataSourceProvider
|
|
56
|
-
}
|
|
57
|
-
})
|
|
58
|
-
})
|
|
59
|
-
}));
|
|
60
|
-
}
|
|
61
|
-
it('should render default dataSource', ()=>{
|
|
62
|
-
renderComponent();
|
|
63
|
-
expect(test_client_namespaceObject.screen.getByTestId('demo')).toHaveTextContent(client_namespaceObject.DEFAULT_DATA_SOURCE_KEY);
|
|
64
|
-
});
|
|
65
|
-
it('should render children when data source is available', ()=>{
|
|
66
|
-
renderComponent('test');
|
|
67
|
-
expect(test_client_namespaceObject.screen.getByTestId('demo')).toHaveTextContent('test');
|
|
68
|
-
});
|
|
69
|
-
it('should render error state when data source is not found', ()=>{
|
|
70
|
-
renderComponent('non-existent');
|
|
71
|
-
expect(document.querySelector('.ant-result')).toBeInTheDocument();
|
|
72
|
-
});
|
|
73
|
-
it('should render loading state when data source is loading', ()=>{
|
|
74
|
-
renderComponent('test', 'loading');
|
|
75
|
-
expect(test_client_namespaceObject.screen.getByText('Test data source loading...')).toBeInTheDocument();
|
|
76
|
-
});
|
|
77
|
-
it('should render error state when data source loading fails', ()=>{
|
|
78
|
-
renderComponent('test', 'loading-failed');
|
|
79
|
-
expect(test_client_namespaceObject.screen.getByText('DataSource "Test" loading failed')).toBeInTheDocument();
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
var __webpack_export_target__ = exports;
|
|
83
|
-
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
84
|
-
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
85
|
-
value: true
|
|
86
|
-
});
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_exports__ = {};
|
|
3
|
-
const client_namespaceObject = require("@tachybase/client");
|
|
4
|
-
var collections_namespaceObject = JSON.parse('[{"key":"h7b9i8khc3q","name":"users","inherit":false,"hidden":false,"description":null,"category":[],"namespace":"users.users","duplicator":{"dumpable":"optional","with":"rolesUsers"},"sortable":"sort","model":"UserModel","createdBy":true,"updatedBy":true,"logging":true,"from":"db2cm","title":"{{t(\\"Users\\")}}","rawTitle":"{{t(\\"Users\\")}}","fields":[{"uiSchema":{"type":"number","title":"{{t(\\"ID\\")}}","x-component":"InputNumber","x-read-pretty":true,"rawTitle":"{{t(\\"ID\\")}}"},"key":"ffp1f2sula0","name":"id","type":"bigInt","interface":"id","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"autoIncrement":true,"primaryKey":true,"allowNull":false},{"uiSchema":{"type":"string","title":"{{t(\\"Nickname\\")}}","x-component":"Input","rawTitle":"{{t(\\"Nickname\\")}}"},"key":"vrv7yjue90g","name":"nickname","type":"string","interface":"input","description":null,"collectionName":"users","parentKey":null,"reverseKey":null},{"uiSchema":{"type":"string","title":"{{t(\\"Username\\")}}","x-component":"Input","x-validator":{"username":true},"required":true,"rawTitle":"{{t(\\"Username\\")}}"},"key":"2ccs6evyrub","name":"username","type":"string","interface":"input","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"unique":true},{"uiSchema":{"type":"string","title":"{{t(\\"Email\\")}}","x-component":"Input","x-validator":"email","required":true,"rawTitle":"{{t(\\"Email\\")}}"},"key":"rrskwjl5wt1","name":"email","type":"string","interface":"email","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"unique":true},{"key":"t09bauwm0wb","name":"roles","type":"belongsToMany","interface":"m2m","description":null,"collectionName":"users","parentKey":null,"reverseKey":null,"target":"roles","foreignKey":"userId","otherKey":"roleName","onDelete":"CASCADE","sourceKey":"id","targetKey":"name","through":"rolesUsers","uiSchema":{"type":"array","title":"{{t(\\"Roles\\")}}","x-component":"AssociationField","x-component-props":{"multiple":true,"fieldNames":{"label":"title","value":"name"}}}},{"key":"1pz0art9mt7","name":"f_n2fu6hvprct","type":"string","interface":"select","description":null,"collectionName":"t_vwpds9fs4xs","parentKey":null,"reverseKey":null,"uiSchema":{"enum":[{"value":"test1","label":"test1"},{"value":"test2","label":"test2"}],"type":"string","x-component":"Select","title":"test"}}]},{"key":"pqnenvqrzxr","name":"roles","inherit":false,"hidden":false,"description":null,"category":[],"namespace":"acl.acl","duplicator":{"dumpable":"required","with":"uiSchemas"},"autoGenId":false,"model":"RoleModel","filterTargetKey":"name","sortable":true,"from":"db2cm","title":"{{t(\\"Roles\\")}}","rawTitle":"{{t(\\"Roles\\")}}","fields":[{"uiSchema":{"type":"string","title":"{{t(\\"Role UID\\")}}","x-component":"Input","rawTitle":"{{t(\\"Role UID\\")}}"},"key":"jbz9m80bxmp","name":"name","type":"uid","interface":"input","description":null,"collectionName":"roles","parentKey":null,"reverseKey":null,"prefix":"r_","primaryKey":true},{"uiSchema":{"type":"string","title":"{{t(\\"Role name\\")}}","x-component":"Input","rawTitle":"{{t(\\"Role name\\")}}"},"key":"faywtz4sf3u","name":"title","type":"string","interface":"input","description":null,"collectionName":"roles","parentKey":null,"reverseKey":null,"unique":true,"translation":true},{"key":"1enkovm9sye","name":"description","type":"string","interface":null,"description":null,"collectionName":"roles","parentKey":null,"reverseKey":null}]}]');
|
|
5
|
-
function _define_property(obj, key, value) {
|
|
6
|
-
if (key in obj) Object.defineProperty(obj, key, {
|
|
7
|
-
value: value,
|
|
8
|
-
enumerable: true,
|
|
9
|
-
configurable: true,
|
|
10
|
-
writable: true
|
|
11
|
-
});
|
|
12
|
-
else obj[key] = value;
|
|
13
|
-
return obj;
|
|
14
|
-
}
|
|
15
|
-
describe('utils', ()=>{
|
|
16
|
-
describe('isTitleField', ()=>{
|
|
17
|
-
class Demo1FieldInterface extends client_namespaceObject.CollectionFieldInterface {
|
|
18
|
-
constructor(...args){
|
|
19
|
-
super(...args), _define_property(this, "name", 'demo1'), _define_property(this, "titleUsable", false);
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
class Demo2FieldInterface extends client_namespaceObject.CollectionFieldInterface {
|
|
23
|
-
constructor(...args){
|
|
24
|
-
super(...args), _define_property(this, "name", 'demo2'), _define_property(this, "titleUsable", true);
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
const dm = new client_namespaceObject.Application({
|
|
28
|
-
dataSourceManager: {
|
|
29
|
-
collections: collections_namespaceObject,
|
|
30
|
-
fieldInterfaces: [
|
|
31
|
-
Demo1FieldInterface,
|
|
32
|
-
Demo2FieldInterface
|
|
33
|
-
]
|
|
34
|
-
}
|
|
35
|
-
}).dataSourceManager;
|
|
36
|
-
it('should return false when field is foreign key', ()=>{
|
|
37
|
-
const field = {
|
|
38
|
-
isForeignKey: true
|
|
39
|
-
};
|
|
40
|
-
expect((0, client_namespaceObject.isTitleField)(dm, field)).toBeFalsy();
|
|
41
|
-
});
|
|
42
|
-
it('should return false when field interface is not title usable', ()=>{
|
|
43
|
-
const field = {
|
|
44
|
-
isForeignKey: false,
|
|
45
|
-
interface: 'demo1'
|
|
46
|
-
};
|
|
47
|
-
expect((0, client_namespaceObject.isTitleField)(dm, field)).toBeFalsy();
|
|
48
|
-
});
|
|
49
|
-
it('should return true when field is not foreign key and field interface is title usable', ()=>{
|
|
50
|
-
const field = {
|
|
51
|
-
isForeignKey: false,
|
|
52
|
-
interface: 'demo2'
|
|
53
|
-
};
|
|
54
|
-
expect((0, client_namespaceObject.isTitleField)(dm, field)).toBeTruthy();
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
});
|
|
58
|
-
var __webpack_export_target__ = exports;
|
|
59
|
-
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
60
|
-
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
61
|
-
value: true
|
|
62
|
-
});
|