@tachybase/client 0.23.58 → 1.0.18
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/es/api-client/APIClient.d.ts +5 -2
- package/es/api-client/APIClient.mjs +93 -49
- package/es/api-client/hooks/useRequest.d.ts +2 -0
- package/es/application/Application.d.ts +3 -0
- package/es/application/Application.mjs +11 -0
- package/es/application/CustomRouterContextProvider.d.ts +54 -0
- package/es/application/CustomRouterContextProvider.mjs +209 -0
- package/es/application/NoticesManager.d.ts +12 -3
- package/es/application/NoticesManager.mjs +27 -3
- package/es/application/RouterManager.d.ts +8 -3
- package/es/application/RouterManager.mjs +48 -15
- package/es/application/schema-initializer/context/index.d.ts +1 -1
- package/es/block-provider/hooks/index.d.ts +2 -0
- package/es/block-provider/hooks/index.mjs +25 -21
- package/es/built-in/context-menu/ContextMenu.provider.mjs +6 -6
- package/es/built-in/context-menu/ContextMenuItemsProps.d.ts +4 -4
- package/es/built-in/context-menu/ContextMenuItemsProps.mjs +6 -6
- package/es/built-in/context-menu/index.mjs +1 -1
- package/es/built-in/context-menu/useContextMenu.d.ts +2 -2
- package/es/built-in/index.mjs +5 -0
- package/es/built-in/page-style/PageStyle.provider.mjs +2 -2
- package/es/built-in/pm/PluginManager.mjs +45 -45
- package/es/collection-manager/interfaces/email.d.ts +0 -1
- package/es/collection-manager/interfaces/input.d.ts +0 -2
- package/es/collection-manager/interfaces/integer.d.ts +0 -2
- package/es/collection-manager/interfaces/number.d.ts +0 -1
- package/es/collection-manager/interfaces/password.d.ts +0 -1
- package/es/collection-manager/interfaces/percent.d.ts +0 -1
- package/es/collection-manager/interfaces/phone.d.ts +0 -1
- package/es/collection-manager/interfaces/properties/index.d.ts +0 -2
- package/es/collection-manager/interfaces/properties/index.mjs +0 -2
- package/es/collection-manager/templates/sql.d.ts +1 -1
- package/es/collection-manager/templates/view.d.ts +1 -1
- package/es/data-source/collection-field-interface/CollectionFieldInterface.d.ts +1 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterface.mjs +18 -0
- package/es/data-source/collection-field-interface/CollectionFieldInterfaceManager.d.ts +8 -1
- package/es/data-source/collection-field-interface/CollectionFieldInterfaceManager.mjs +20 -0
- package/es/data-source/commonsSettingsItem/fieldComponent.mjs +3 -1
- package/es/data-source/data-source/DataSource.d.ts +1 -1
- package/es/filter-provider/utils.mjs +6 -0
- package/es/i18n/i18n.mjs +7 -12
- package/es/modules/actions/delete/deleteActionSettings.mjs +10 -0
- package/es/modules/blocks/data-blocks/form/FilterItemCustomSettings.mjs +1 -1
- package/es/modules/blocks/data-blocks/form/fieldSettingsFormItem.mjs +9 -4
- package/es/modules/blocks/data-blocks/table/hooks/useTableBlockProps.mjs +2 -2
- package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +4 -0
- package/es/modules/blocks/data-blocks/table/tableColumnSettings.mjs +44 -0
- package/es/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.mjs +4 -0
- package/es/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.mjs +9 -0
- package/es/modules/fields/component/SubTable/secondLevelSelect.d.ts +11 -0
- package/es/modules/fields/component/SubTable/secondLevelSelect.mjs +102 -0
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.d.ts +79 -41
- package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +103 -100
- package/es/powered-by/index.mjs +4 -7
- package/es/schema-component/antd/action/Action.Designer.mjs +38 -3
- package/es/schema-component/antd/action/Action.Modal.mjs +0 -1
- package/es/schema-component/antd/action/Action.mjs +1 -3
- package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +2 -1
- package/es/schema-component/antd/checkbox/Checkbox.mjs +6 -4
- package/es/schema-component/antd/index.d.ts +1 -0
- package/es/schema-component/antd/index.mjs +1 -0
- package/es/schema-component/antd/media-card/MediaCard.d.ts +11 -0
- package/es/schema-component/antd/media-card/MediaCard.mjs +35 -0
- package/es/schema-component/antd/media-card/index.d.ts +1 -0
- package/es/schema-component/antd/media-card/index.mjs +1 -0
- package/es/schema-component/antd/media-card/style.d.ts +3 -0
- package/es/schema-component/antd/media-card/style.mjs +25 -0
- package/es/schema-component/antd/page/Page.mjs +34 -24
- package/es/schema-component/antd/password/utils.d.ts +1 -1
- package/es/schema-component/common/dnd-context/index.mjs +1 -7
- package/es/schema-component/common/sortable-item/DragHandlePageTab.d.ts +1 -0
- package/es/schema-component/common/sortable-item/DragHandlePageTab.mjs +71 -0
- package/es/schema-component/common/sortable-item/DragHandlePageTab.style.d.ts +3 -0
- package/es/schema-component/common/sortable-item/DragHandlePageTab.style.mjs +25 -0
- package/es/schema-items/GeneralSettings.mjs +5 -0
- package/es/schema-settings/EditCustomDefaultValue.mjs +1 -1
- package/es/schema-settings/SchemaSettings.mjs +1 -1
- package/es/schema-settings/SchemaSettingsDefaultValue.mjs +2 -0
- package/es/schema-settings/utils/createModalSettingsItem.d.ts +26 -0
- package/es/schema-settings/utils/createModalSettingsItem.mjs +46 -0
- package/es/schema-settings/utils/createSelectSettingsItem.d.ts +25 -0
- package/es/schema-settings/utils/createSelectSettingsItem.mjs +40 -0
- package/es/schema-settings/utils/createSwitchSettingsItem.d.ts +21 -0
- package/es/schema-settings/utils/createSwitchSettingsItem.mjs +38 -0
- package/es/schema-settings/utils/createTextSettingsItem.d.ts +9 -0
- package/es/schema-settings/utils/createTextSettingsItem.mjs +21 -0
- package/es/schema-settings/utils/index.d.ts +4 -0
- package/es/schema-settings/utils/index.mjs +4 -0
- package/es/schema-settings/utils/util.d.ts +12 -0
- package/es/schema-settings/utils/util.mjs +24 -0
- package/es/user/CurrentUserProvider.mjs +6 -3
- package/lib/api-client/APIClient.js +93 -49
- package/lib/application/Application.js +11 -0
- package/lib/application/CustomRouterContextProvider.js +276 -0
- package/lib/application/NoticesManager.js +27 -3
- package/lib/application/RouterManager.js +49 -15
- package/lib/block-provider/hooks/index.js +76 -58
- package/lib/built-in/context-menu/ContextMenu.provider.js +6 -6
- package/lib/built-in/context-menu/ContextMenuItemsProps.js +6 -6
- package/lib/built-in/context-menu/index.js +1 -1
- package/lib/built-in/index.js +5 -0
- package/lib/built-in/page-style/PageStyle.provider.js +2 -2
- package/lib/built-in/pm/PluginManager.js +45 -45
- package/lib/collection-manager/interfaces/properties/index.js +0 -2
- package/lib/data-source/collection-field-interface/CollectionFieldInterface.js +18 -0
- package/lib/data-source/collection-field-interface/CollectionFieldInterfaceManager.js +20 -0
- package/lib/data-source/commonsSettingsItem/fieldComponent.js +3 -1
- package/lib/filter-provider/utils.js +6 -0
- package/lib/i18n/i18n.js +7 -12
- package/lib/locale/en_US.js +4 -0
- package/lib/locale/zh-CN.js +13 -1
- package/lib/modules/actions/delete/deleteActionSettings.js +10 -0
- package/lib/modules/blocks/data-blocks/form/FilterItemCustomSettings.js +1 -1
- package/lib/modules/blocks/data-blocks/form/fieldSettingsFormItem.js +9 -4
- package/lib/modules/blocks/data-blocks/table/hooks/useTableBlockProps.js +2 -2
- package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +4 -0
- package/lib/modules/blocks/data-blocks/table/tableColumnSettings.js +44 -0
- package/lib/modules/blocks/filter-blocks/collapse/filterCollapseItemFieldSettings.js +4 -0
- package/lib/modules/blocks/filter-blocks/form/filterFormItemFieldSettings.js +9 -0
- package/lib/modules/fields/component/SubTable/secondLevelSelect.js +136 -0
- package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +104 -103
- package/lib/powered-by/index.js +4 -7
- package/lib/schema-component/antd/action/Action.Designer.js +38 -3
- package/lib/schema-component/antd/action/Action.Modal.js +0 -1
- package/lib/schema-component/antd/action/Action.js +1 -3
- package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +2 -1
- package/lib/schema-component/antd/checkbox/Checkbox.js +6 -4
- package/lib/schema-component/antd/index.js +18 -4
- package/lib/schema-component/antd/media-card/MediaCard.js +69 -0
- package/lib/schema-component/antd/media-card/index.js +65 -0
- package/lib/schema-component/antd/media-card/style.js +59 -0
- package/lib/schema-component/antd/page/Page.js +34 -24
- package/lib/schema-component/common/dnd-context/index.js +1 -7
- package/lib/schema-component/common/sortable-item/DragHandlePageTab.js +105 -0
- package/lib/schema-component/common/sortable-item/DragHandlePageTab.style.js +59 -0
- package/lib/schema-items/GeneralSettings.js +5 -0
- package/lib/schema-settings/EditCustomDefaultValue.js +1 -1
- package/lib/schema-settings/SchemaSettings.js +1 -1
- package/lib/schema-settings/SchemaSettingsDefaultValue.js +2 -0
- package/lib/schema-settings/utils/createModalSettingsItem.js +94 -0
- package/lib/schema-settings/utils/createSelectSettingsItem.js +88 -0
- package/lib/schema-settings/utils/createSwitchSettingsItem.js +86 -0
- package/lib/schema-settings/utils/createTextSettingsItem.js +55 -0
- package/lib/schema-settings/utils/index.js +92 -0
- package/lib/schema-settings/utils/util.js +74 -0
- package/lib/user/CurrentUserProvider.js +6 -3
- package/package.json +7 -7
|
@@ -15,7 +15,7 @@ var __webpack_modules__ = {
|
|
|
15
15
|
"../../filter-provider/utils": function(module) {
|
|
16
16
|
module.exports = require("../../filter-provider/utils.js");
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"../../": function(module) {
|
|
19
19
|
module.exports = require("../../index.js");
|
|
20
20
|
},
|
|
21
21
|
"../../record-provider": function(module) {
|
|
@@ -143,9 +143,15 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
143
143
|
findFilterTargets: function() {
|
|
144
144
|
return findFilterTargets;
|
|
145
145
|
},
|
|
146
|
+
getAfterWorkflows: function() {
|
|
147
|
+
return getAfterWorkflows;
|
|
148
|
+
},
|
|
146
149
|
getAssociationPath: function() {
|
|
147
150
|
return getAssociationPath;
|
|
148
151
|
},
|
|
152
|
+
getBeforeWorkflows: function() {
|
|
153
|
+
return getBeforeWorkflows;
|
|
154
|
+
},
|
|
149
155
|
getFormValues: function() {
|
|
150
156
|
return getFormValues;
|
|
151
157
|
},
|
|
@@ -229,7 +235,7 @@ var lodash_omit__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/ __webpack_r
|
|
|
229
235
|
var react_i18next__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("react-i18next");
|
|
230
236
|
var react_router_dom__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("react-router-dom");
|
|
231
237
|
var react_to_print__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("react-to-print");
|
|
232
|
-
var ___WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("
|
|
238
|
+
var ___WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("../../");
|
|
233
239
|
var _api_client__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("../../api-client");
|
|
234
240
|
var _built_in_dynamic_page_utils__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../built-in/dynamic-page/utils");
|
|
235
241
|
var _collection_manager__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../collection-manager");
|
|
@@ -250,30 +256,32 @@ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
|
250
256
|
for(var __WEBPACK_IMPORT_KEY__ in _useFormActiveFields__WEBPACK_IMPORTED_MODULE_26__)if ([
|
|
251
257
|
"useAssociationCreateActionProps",
|
|
252
258
|
"useFilterBlockActionProps",
|
|
259
|
+
"getAfterWorkflows",
|
|
253
260
|
"findFilterTargets",
|
|
254
261
|
"useResetBlockActionProps",
|
|
255
|
-
"getAssociationPath",
|
|
256
262
|
"useInsertSchema",
|
|
257
|
-
"
|
|
258
|
-
"
|
|
263
|
+
"useAssociationFilterBlockProps",
|
|
264
|
+
"getAssociationPath",
|
|
259
265
|
"updateFilterTargets",
|
|
260
266
|
"useUpdateActionProps",
|
|
261
267
|
"getFormValues",
|
|
262
268
|
"useDisassociateActionProps",
|
|
269
|
+
"useAssociationNames",
|
|
263
270
|
"useDetailPrintActionProps",
|
|
271
|
+
"default",
|
|
264
272
|
"useCustomizeRequestActionProps",
|
|
265
273
|
"useCancelActionProps",
|
|
266
274
|
"useOptionalFieldList",
|
|
267
|
-
"useCollectValuesToSubmit",
|
|
268
275
|
"useCreateActionProps",
|
|
269
|
-
"
|
|
276
|
+
"useCollectValuesToSubmit",
|
|
277
|
+
"getBeforeWorkflows",
|
|
270
278
|
"useCustomizeUpdateActionProps",
|
|
271
|
-
"
|
|
279
|
+
"useRemoveActionProps",
|
|
272
280
|
"useDestroyActionProps",
|
|
273
|
-
"
|
|
281
|
+
"useRefreshActionProps",
|
|
274
282
|
"useBulkDestroyActionProps",
|
|
275
|
-
"
|
|
276
|
-
"
|
|
283
|
+
"useDetailsPaginationProps",
|
|
284
|
+
"useAssociationFilterProps"
|
|
277
285
|
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
278
286
|
return _useFormActiveFields__WEBPACK_IMPORTED_MODULE_26__[key];
|
|
279
287
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
@@ -283,30 +291,32 @@ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
|
283
291
|
for(var __WEBPACK_IMPORT_KEY__ in _useParsedFilter__WEBPACK_IMPORTED_MODULE_27__)if ([
|
|
284
292
|
"useAssociationCreateActionProps",
|
|
285
293
|
"useFilterBlockActionProps",
|
|
294
|
+
"getAfterWorkflows",
|
|
286
295
|
"findFilterTargets",
|
|
287
296
|
"useResetBlockActionProps",
|
|
288
|
-
"useBulkDestroyActionProps",
|
|
289
297
|
"useInsertSchema",
|
|
290
|
-
"
|
|
291
|
-
"
|
|
298
|
+
"useRefreshActionProps",
|
|
299
|
+
"useBulkDestroyActionProps",
|
|
292
300
|
"updateFilterTargets",
|
|
293
301
|
"useUpdateActionProps",
|
|
294
302
|
"getFormValues",
|
|
295
303
|
"useDisassociateActionProps",
|
|
304
|
+
"useDetailsPaginationProps",
|
|
296
305
|
"useDetailPrintActionProps",
|
|
306
|
+
"useAssociationFilterProps",
|
|
297
307
|
"useCustomizeRequestActionProps",
|
|
298
308
|
"useCancelActionProps",
|
|
299
309
|
"useOptionalFieldList",
|
|
300
|
-
"
|
|
310
|
+
"useCreateActionProps",
|
|
301
311
|
"useAssociationNames",
|
|
302
312
|
"default",
|
|
303
|
-
"
|
|
304
|
-
"
|
|
313
|
+
"useCollectValuesToSubmit",
|
|
314
|
+
"getBeforeWorkflows",
|
|
305
315
|
"useCustomizeUpdateActionProps",
|
|
306
|
-
"
|
|
316
|
+
"useRemoveActionProps",
|
|
307
317
|
"useDestroyActionProps",
|
|
308
|
-
"
|
|
309
|
-
"
|
|
318
|
+
"useAssociationFilterBlockProps",
|
|
319
|
+
"getAssociationPath"
|
|
310
320
|
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
311
321
|
return _useParsedFilter__WEBPACK_IMPORTED_MODULE_27__[key];
|
|
312
322
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
@@ -316,30 +326,32 @@ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
|
316
326
|
for(var __WEBPACK_IMPORT_KEY__ in _useDataBlockSourceId__WEBPACK_IMPORTED_MODULE_28__)if ([
|
|
317
327
|
"useAssociationCreateActionProps",
|
|
318
328
|
"useFilterBlockActionProps",
|
|
329
|
+
"getAfterWorkflows",
|
|
319
330
|
"findFilterTargets",
|
|
320
331
|
"useResetBlockActionProps",
|
|
321
|
-
"useBulkDestroyActionProps",
|
|
322
332
|
"useInsertSchema",
|
|
323
|
-
"
|
|
324
|
-
"
|
|
333
|
+
"useRefreshActionProps",
|
|
334
|
+
"useBulkDestroyActionProps",
|
|
325
335
|
"updateFilterTargets",
|
|
326
336
|
"useUpdateActionProps",
|
|
327
337
|
"getFormValues",
|
|
328
338
|
"useDisassociateActionProps",
|
|
339
|
+
"useDetailsPaginationProps",
|
|
329
340
|
"useDetailPrintActionProps",
|
|
341
|
+
"useAssociationFilterProps",
|
|
330
342
|
"useCustomizeRequestActionProps",
|
|
331
343
|
"useCancelActionProps",
|
|
332
344
|
"useOptionalFieldList",
|
|
333
|
-
"
|
|
345
|
+
"useCreateActionProps",
|
|
334
346
|
"useAssociationNames",
|
|
335
347
|
"default",
|
|
336
|
-
"
|
|
337
|
-
"
|
|
348
|
+
"useCollectValuesToSubmit",
|
|
349
|
+
"getBeforeWorkflows",
|
|
338
350
|
"useCustomizeUpdateActionProps",
|
|
339
|
-
"
|
|
351
|
+
"useRemoveActionProps",
|
|
340
352
|
"useDestroyActionProps",
|
|
341
|
-
"
|
|
342
|
-
"
|
|
353
|
+
"useAssociationFilterBlockProps",
|
|
354
|
+
"getAssociationPath"
|
|
343
355
|
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
344
356
|
return _useDataBlockSourceId__WEBPACK_IMPORTED_MODULE_28__[key];
|
|
345
357
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
@@ -349,30 +361,32 @@ var __WEBPACK_REEXPORT_OBJECT__ = {};
|
|
|
349
361
|
for(var __WEBPACK_IMPORT_KEY__ in _useIsMobile__WEBPACK_IMPORTED_MODULE_29__)if ([
|
|
350
362
|
"useAssociationCreateActionProps",
|
|
351
363
|
"useFilterBlockActionProps",
|
|
364
|
+
"getAfterWorkflows",
|
|
352
365
|
"findFilterTargets",
|
|
353
366
|
"useResetBlockActionProps",
|
|
354
|
-
"useBulkDestroyActionProps",
|
|
355
367
|
"useInsertSchema",
|
|
356
|
-
"
|
|
357
|
-
"
|
|
368
|
+
"useRefreshActionProps",
|
|
369
|
+
"useBulkDestroyActionProps",
|
|
358
370
|
"updateFilterTargets",
|
|
359
371
|
"useUpdateActionProps",
|
|
360
372
|
"getFormValues",
|
|
361
373
|
"useDisassociateActionProps",
|
|
374
|
+
"useDetailsPaginationProps",
|
|
362
375
|
"useDetailPrintActionProps",
|
|
376
|
+
"useAssociationFilterProps",
|
|
363
377
|
"useCustomizeRequestActionProps",
|
|
364
378
|
"useCancelActionProps",
|
|
365
379
|
"useOptionalFieldList",
|
|
366
|
-
"
|
|
380
|
+
"useCreateActionProps",
|
|
367
381
|
"useAssociationNames",
|
|
368
382
|
"default",
|
|
369
|
-
"
|
|
370
|
-
"
|
|
383
|
+
"useCollectValuesToSubmit",
|
|
384
|
+
"getBeforeWorkflows",
|
|
371
385
|
"useCustomizeUpdateActionProps",
|
|
372
|
-
"
|
|
386
|
+
"useRemoveActionProps",
|
|
373
387
|
"useDestroyActionProps",
|
|
374
|
-
"
|
|
375
|
-
"
|
|
388
|
+
"useAssociationFilterBlockProps",
|
|
389
|
+
"getAssociationPath"
|
|
376
390
|
].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
|
|
377
391
|
return _useIsMobile__WEBPACK_IMPORTED_MODULE_29__[key];
|
|
378
392
|
}).bind(0, __WEBPACK_IMPORT_KEY__);
|
|
@@ -545,6 +559,20 @@ const useJumpDetails = ()=>{
|
|
|
545
559
|
})));
|
|
546
560
|
};
|
|
547
561
|
};
|
|
562
|
+
function getAfterWorkflows(triggerWorkflows) {
|
|
563
|
+
if (!(null == triggerWorkflows ? void 0 : triggerWorkflows.length)) return;
|
|
564
|
+
return triggerWorkflows.filter((row)=>row && 'before' !== row.order).map((row)=>[
|
|
565
|
+
row.workflowKey,
|
|
566
|
+
row.context
|
|
567
|
+
].join('!')).join(',');
|
|
568
|
+
}
|
|
569
|
+
function getBeforeWorkflows(triggerWorkflows) {
|
|
570
|
+
if (!(null == triggerWorkflows ? void 0 : triggerWorkflows.length)) return;
|
|
571
|
+
return triggerWorkflows.filter((row)=>row && 'before' === row.order).map((row)=>[
|
|
572
|
+
row.workflowKey,
|
|
573
|
+
row.context
|
|
574
|
+
].join('!')).join(',');
|
|
575
|
+
}
|
|
548
576
|
const useCreateActionProps = ()=>{
|
|
549
577
|
var _actionField_componentProps_filterKeys;
|
|
550
578
|
const record = (0, ___WEBPACK_IMPORTED_MODULE_10__.useCollectionRecord)();
|
|
@@ -574,10 +602,8 @@ const useCreateActionProps = ()=>{
|
|
|
574
602
|
const data = await resource[action]({
|
|
575
603
|
values: await collectValues(),
|
|
576
604
|
filterKeys: filterKeys,
|
|
577
|
-
triggerWorkflows: (
|
|
578
|
-
|
|
579
|
-
row.context
|
|
580
|
-
].filter(Boolean).join('!')).join(',') : void 0,
|
|
605
|
+
triggerWorkflows: getAfterWorkflows(triggerWorkflows),
|
|
606
|
+
beforeWorkflows: getBeforeWorkflows(triggerWorkflows),
|
|
581
607
|
updateAssociationValues
|
|
582
608
|
});
|
|
583
609
|
actionField.data.loading = false;
|
|
@@ -685,10 +711,8 @@ const useAssociationCreateActionProps = ()=>{
|
|
|
685
711
|
...assignedValues
|
|
686
712
|
},
|
|
687
713
|
filterKeys: filterKeys,
|
|
688
|
-
triggerWorkflows: (
|
|
689
|
-
|
|
690
|
-
row.context
|
|
691
|
-
].filter(Boolean).join('!')).join(',') : void 0
|
|
714
|
+
triggerWorkflows: getAfterWorkflows(triggerWorkflows),
|
|
715
|
+
beforeWorkflows: getBeforeWorkflows(triggerWorkflows)
|
|
692
716
|
});
|
|
693
717
|
actionField.data.loading = false;
|
|
694
718
|
actionField.data.data = data;
|
|
@@ -863,10 +887,8 @@ const useCustomizeUpdateActionProps = ()=>{
|
|
|
863
887
|
values: {
|
|
864
888
|
...assignedValues
|
|
865
889
|
},
|
|
866
|
-
triggerWorkflows: (
|
|
867
|
-
|
|
868
|
-
row.context
|
|
869
|
-
].filter(Boolean).join('!')).join(',') : void 0
|
|
890
|
+
triggerWorkflows: getAfterWorkflows(triggerWorkflows),
|
|
891
|
+
beforeWorkflows: getBeforeWorkflows(triggerWorkflows)
|
|
870
892
|
});
|
|
871
893
|
null == service || null === (_service_refresh = service.refresh) || void 0 === _service_refresh || _service_refresh.call(service);
|
|
872
894
|
if (!(resource instanceof _TableFieldProvider__WEBPACK_IMPORTED_MODULE_25__.TableFieldResource)) {
|
|
@@ -1056,10 +1078,8 @@ const useUpdateActionProps = ()=>{
|
|
|
1056
1078
|
values: isDeltaChanged ? filterValues(rawValues) : rawValues,
|
|
1057
1079
|
...data,
|
|
1058
1080
|
updateAssociationValues,
|
|
1059
|
-
triggerWorkflows: (
|
|
1060
|
-
|
|
1061
|
-
row.context
|
|
1062
|
-
].filter(Boolean).join('!')).join(',') : void 0
|
|
1081
|
+
triggerWorkflows: getAfterWorkflows(triggerWorkflows),
|
|
1082
|
+
beforeWorkflows: getBeforeWorkflows(triggerWorkflows)
|
|
1063
1083
|
});
|
|
1064
1084
|
actionField.data.loading = false;
|
|
1065
1085
|
null == __parent || null === (__parent_service = __parent.service) || void 0 === __parent_service || null === (__parent_service_refresh = __parent_service.refresh) || void 0 === __parent_service_refresh || __parent_service_refresh.call(__parent_service);
|
|
@@ -1101,10 +1121,8 @@ const useDestroyActionProps = ()=>{
|
|
|
1101
1121
|
const { triggerWorkflows } = null !== (_actionSchema_xactionsettings = null == actionSchema ? void 0 : actionSchema['x-action-settings']) && void 0 !== _actionSchema_xactionsettings ? _actionSchema_xactionsettings : {};
|
|
1102
1122
|
await resource.destroy({
|
|
1103
1123
|
filterByTk,
|
|
1104
|
-
triggerWorkflows: (
|
|
1105
|
-
|
|
1106
|
-
row.context
|
|
1107
|
-
].filter(Boolean).join('!')).join(',') : void 0,
|
|
1124
|
+
triggerWorkflows: getAfterWorkflows(triggerWorkflows),
|
|
1125
|
+
beforeWorkflows: getBeforeWorkflows(triggerWorkflows),
|
|
1108
1126
|
...data
|
|
1109
1127
|
});
|
|
1110
1128
|
const { count = 0, page = 0, pageSize = 0 } = (null == service ? void 0 : null === (_service_data = service.data) || void 0 === _service_data ? void 0 : _service_data.meta) || {};
|
|
@@ -39,7 +39,7 @@ const external_schema_component_index_js_namespaceObject = require("../../schema
|
|
|
39
39
|
const external_pinned_list_index_js_namespaceObject = require("../pinned-list/index.js");
|
|
40
40
|
const external_useContextMenu_js_namespaceObject = require("./useContextMenu.js");
|
|
41
41
|
const STORAGE_KEYS = {
|
|
42
|
-
|
|
42
|
+
SHOW_SCROLL_AREA: 'show-scroll-area',
|
|
43
43
|
CONTEXT_MENU_ENABLED: 'context-menu-enabled'
|
|
44
44
|
};
|
|
45
45
|
const ContextMenuProvider = (param)=>{
|
|
@@ -47,7 +47,7 @@ const ContextMenuProvider = (param)=>{
|
|
|
47
47
|
const [enable, setEnable] = (0, external_ahooks_namespaceObject.useLocalStorageState)(STORAGE_KEYS.CONTEXT_MENU_ENABLED, {
|
|
48
48
|
defaultValue: true
|
|
49
49
|
});
|
|
50
|
-
const [
|
|
50
|
+
const [showScrollArea, setShowScrollArea] = (0, external_ahooks_namespaceObject.useLocalStorageState)(STORAGE_KEYS.SHOW_SCROLL_AREA, {
|
|
51
51
|
defaultValue: false
|
|
52
52
|
});
|
|
53
53
|
const contextItems = (0, index_js_namespaceObject.useApp)().pluginContextMenu.get();
|
|
@@ -61,8 +61,8 @@ const ContextMenuProvider = (param)=>{
|
|
|
61
61
|
const { actionProps, title, icon } = item.useLoadMethod({
|
|
62
62
|
enable,
|
|
63
63
|
setEnable,
|
|
64
|
-
|
|
65
|
-
|
|
64
|
+
showScrollArea,
|
|
65
|
+
setShowScrollArea,
|
|
66
66
|
position
|
|
67
67
|
});
|
|
68
68
|
items.push({
|
|
@@ -76,8 +76,8 @@ const ContextMenuProvider = (param)=>{
|
|
|
76
76
|
value: {
|
|
77
77
|
contextMenuEnabled: enable,
|
|
78
78
|
setContextMenuEnable: setEnable,
|
|
79
|
-
|
|
80
|
-
|
|
79
|
+
showScrollArea,
|
|
80
|
+
setShowScrollArea,
|
|
81
81
|
position
|
|
82
82
|
},
|
|
83
83
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Dropdown, {
|
|
@@ -28,7 +28,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28
28
|
__webpack_require__.d(__webpack_exports__, {
|
|
29
29
|
fullScreen: ()=>fullScreen,
|
|
30
30
|
disableRightMenu: ()=>disableRightMenu,
|
|
31
|
-
|
|
31
|
+
showScrollArea: ()=>ContextMenuItemsProps_rslib_entry_showScrollArea,
|
|
32
32
|
designerMode: ()=>designerMode
|
|
33
33
|
});
|
|
34
34
|
const client_namespaceObject = require("@tachybase/utils/client");
|
|
@@ -82,17 +82,17 @@ const disableRightMenu = {
|
|
|
82
82
|
};
|
|
83
83
|
}
|
|
84
84
|
};
|
|
85
|
-
const
|
|
86
|
-
name: '
|
|
85
|
+
const ContextMenuItemsProps_rslib_entry_showScrollArea = {
|
|
86
|
+
name: 'showScrollArea',
|
|
87
87
|
sort: 3,
|
|
88
88
|
useLoadMethod: (param)=>{
|
|
89
|
-
let {
|
|
89
|
+
let { showScrollArea, setShowScrollArea } = param;
|
|
90
90
|
const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
|
|
91
91
|
return {
|
|
92
|
-
title:
|
|
92
|
+
title: showScrollArea ? t('Hidden scroll area') : t('Show scroll area'),
|
|
93
93
|
actionProps: {
|
|
94
94
|
onClick: ()=>{
|
|
95
|
-
|
|
95
|
+
setShowScrollArea(!showScrollArea);
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
};
|
|
@@ -43,7 +43,7 @@ class PluginContextMenu extends Plugin_js_namespaceObject.Plugin {
|
|
|
43
43
|
this.app.pluginContextMenu.add(external_ContextMenuItemsProps_js_namespaceObject.designerMode.name, external_ContextMenuItemsProps_js_namespaceObject.designerMode);
|
|
44
44
|
this.app.pluginContextMenu.add(external_ContextMenuItemsProps_js_namespaceObject.fullScreen.name, external_ContextMenuItemsProps_js_namespaceObject.fullScreen);
|
|
45
45
|
this.app.pluginContextMenu.add(external_ContextMenuItemsProps_js_namespaceObject.disableRightMenu.name, external_ContextMenuItemsProps_js_namespaceObject.disableRightMenu);
|
|
46
|
-
this.app.pluginContextMenu.add(external_ContextMenuItemsProps_js_namespaceObject.
|
|
46
|
+
this.app.pluginContextMenu.add(external_ContextMenuItemsProps_js_namespaceObject.showScrollArea.name, external_ContextMenuItemsProps_js_namespaceObject.showScrollArea);
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
49
|
var __webpack_export_target__ = exports;
|
package/lib/built-in/index.js
CHANGED
|
@@ -520,6 +520,11 @@ class BuiltInPlugin extends _application_Plugin__WEBPACK_IMPORTED_MODULE_12__.Pl
|
|
|
520
520
|
icon: 'BlockOutlined',
|
|
521
521
|
sort: -30
|
|
522
522
|
});
|
|
523
|
+
this.app.systemSettingsManager.add('security', {
|
|
524
|
+
title: this.t('Security'),
|
|
525
|
+
icon: 'SafetyOutlined',
|
|
526
|
+
sort: -20
|
|
527
|
+
});
|
|
523
528
|
this.app.systemSettingsManager.add('system-services', {
|
|
524
529
|
title: this.t('System Services'),
|
|
525
530
|
icon: 'CloudServerOutlined',
|
|
@@ -38,7 +38,7 @@ const PageStyleContext = /*#__PURE__*/ (0, external_react_namespaceObject.create
|
|
|
38
38
|
});
|
|
39
39
|
const PageStyleProvider = (param)=>{
|
|
40
40
|
let { children } = param;
|
|
41
|
-
var _currentUser_data_data_systemSettings;
|
|
41
|
+
var _currentUser_data_data_systemSettings, _currentUser_data_data, _currentUser_data;
|
|
42
42
|
const currentUser = (0, index_js_namespaceObject.useCurrentUserContext)();
|
|
43
43
|
const tabItem = (0, external_useTabSettings_js_namespaceObject.useTabSettings)();
|
|
44
44
|
const [items, setItems] = (0, external_react_namespaceObject.useState)([]);
|
|
@@ -53,7 +53,7 @@ const PageStyleProvider = (param)=>{
|
|
|
53
53
|
]);
|
|
54
54
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(PageStyleContext.Provider, {
|
|
55
55
|
value: {
|
|
56
|
-
style: (null === (
|
|
56
|
+
style: (null == currentUser ? void 0 : null === (_currentUser_data = currentUser.data) || void 0 === _currentUser_data ? void 0 : null === (_currentUser_data_data = _currentUser_data.data) || void 0 === _currentUser_data_data ? void 0 : null === (_currentUser_data_data_systemSettings = _currentUser_data_data.systemSettings) || void 0 === _currentUser_data_data_systemSettings ? void 0 : _currentUser_data_data_systemSettings.pageStyle) || 'classical',
|
|
57
57
|
items,
|
|
58
58
|
setItems
|
|
59
59
|
},
|
|
@@ -83,51 +83,6 @@ const PluginDescription = (param)=>{
|
|
|
83
83
|
children: record.isCompatible ? description : external_i18n_index_js_namespaceObject.i18n.t('Plugin dependencies check failed')
|
|
84
84
|
});
|
|
85
85
|
};
|
|
86
|
-
const columns = [
|
|
87
|
-
{
|
|
88
|
-
title: external_i18n_index_js_namespaceObject.i18n.t('Name'),
|
|
89
|
-
dataIndex: 'name',
|
|
90
|
-
key: 'name',
|
|
91
|
-
render: (_, param)=>{
|
|
92
|
-
let { displayName, name, packageName } = param;
|
|
93
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
94
|
-
children: displayName || name || packageName
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
},
|
|
98
|
-
{
|
|
99
|
-
title: external_i18n_index_js_namespaceObject.i18n.t('Keywords'),
|
|
100
|
-
dataIndex: 'keywords',
|
|
101
|
-
key: 'keywords',
|
|
102
|
-
render: (keywords)=>null == keywords ? void 0 : keywords.map((keyword)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Tag, {
|
|
103
|
-
children: external_i18n_index_js_namespaceObject.i18n.t(keyword)
|
|
104
|
-
}, keyword))
|
|
105
|
-
},
|
|
106
|
-
{
|
|
107
|
-
title: external_i18n_index_js_namespaceObject.i18n.t('Description'),
|
|
108
|
-
dataIndex: 'description',
|
|
109
|
-
key: 'description',
|
|
110
|
-
render: (description, record)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(PluginDescription, {
|
|
111
|
-
description: description,
|
|
112
|
-
record: record
|
|
113
|
-
})
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
title: external_i18n_index_js_namespaceObject.i18n.t('Action'),
|
|
117
|
-
key: 'action',
|
|
118
|
-
render: (_, record)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_antd_namespaceObject.Space, {
|
|
119
|
-
size: "middle",
|
|
120
|
-
children: [
|
|
121
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ViewAction, {
|
|
122
|
-
record: record
|
|
123
|
-
}),
|
|
124
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_PluginCard_js_namespaceObject.SwitchAction, {
|
|
125
|
-
...record
|
|
126
|
-
})
|
|
127
|
-
]
|
|
128
|
-
})
|
|
129
|
-
}
|
|
130
|
-
];
|
|
131
86
|
const LocalPlugins = ()=>{
|
|
132
87
|
const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
|
|
133
88
|
const { theme } = (0, external_style_js_namespaceObject.useStyles)();
|
|
@@ -137,6 +92,51 @@ const LocalPlugins = ()=>{
|
|
|
137
92
|
const [searchValue, setSearchValue] = (0, external_react_namespaceObject.useState)('');
|
|
138
93
|
const [enabled, setEnabled] = (0, external_react_namespaceObject.useState)('all');
|
|
139
94
|
const [keywords, setKeywords] = (0, external_react_namespaceObject.useState)([]);
|
|
95
|
+
const columns = (0, external_react_namespaceObject.useMemo)(()=>[
|
|
96
|
+
{
|
|
97
|
+
title: t('Name'),
|
|
98
|
+
dataIndex: 'name',
|
|
99
|
+
key: 'name',
|
|
100
|
+
render: (_, param)=>{
|
|
101
|
+
let { displayName, name, packageName } = param;
|
|
102
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
103
|
+
children: displayName || name || packageName
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
},
|
|
107
|
+
{
|
|
108
|
+
title: t('Keywords'),
|
|
109
|
+
dataIndex: 'keywords',
|
|
110
|
+
key: 'keywords',
|
|
111
|
+
render: (keywords)=>null == keywords ? void 0 : keywords.map((keyword)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Tag, {
|
|
112
|
+
children: t(keyword)
|
|
113
|
+
}, keyword))
|
|
114
|
+
},
|
|
115
|
+
{
|
|
116
|
+
title: t('Description'),
|
|
117
|
+
dataIndex: 'description',
|
|
118
|
+
key: 'description',
|
|
119
|
+
render: (description, record)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(PluginDescription, {
|
|
120
|
+
description: description,
|
|
121
|
+
record: record
|
|
122
|
+
})
|
|
123
|
+
},
|
|
124
|
+
{
|
|
125
|
+
title: t('Action'),
|
|
126
|
+
key: 'action',
|
|
127
|
+
render: (_, record)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_antd_namespaceObject.Space, {
|
|
128
|
+
size: "middle",
|
|
129
|
+
children: [
|
|
130
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ViewAction, {
|
|
131
|
+
record: record
|
|
132
|
+
}),
|
|
133
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_PluginCard_js_namespaceObject.SwitchAction, {
|
|
134
|
+
...record
|
|
135
|
+
})
|
|
136
|
+
]
|
|
137
|
+
})
|
|
138
|
+
}
|
|
139
|
+
], []);
|
|
140
140
|
const filteredList = ((null == data ? void 0 : data.data) || []).filter((data)=>{
|
|
141
141
|
var _data_description;
|
|
142
142
|
return (0, client_namespaceObject.fuzzysearch)(searchValue, data.name) || (0, client_namespaceObject.fuzzysearch)(searchValue, data.packageName) || (0, client_namespaceObject.fuzzysearch)(searchValue, null !== (_data_description = data.description) && void 0 !== _data_description ? _data_description : '') || (0, client_namespaceObject.fuzzysearch)(searchValue, data.displayName);
|
|
@@ -133,7 +133,6 @@ const unique = {
|
|
|
133
133
|
'x-content': '{{t("Unique")}}',
|
|
134
134
|
'x-decorator': 'FormItem',
|
|
135
135
|
'x-component': 'Checkbox',
|
|
136
|
-
'x-disabled': '{{ !createMainOnly }}',
|
|
137
136
|
'x-reactions': [
|
|
138
137
|
{
|
|
139
138
|
dependencies: [
|
|
@@ -153,7 +152,6 @@ const primaryKey = {
|
|
|
153
152
|
'x-content': '{{t("Primary")}}',
|
|
154
153
|
'x-decorator': 'FormItem',
|
|
155
154
|
'x-component': 'Checkbox',
|
|
156
|
-
'x-disabled': '{{ !createMainOnly }}',
|
|
157
155
|
'x-reactions': [
|
|
158
156
|
{
|
|
159
157
|
dependencies: [
|
|
@@ -41,6 +41,24 @@ function _define_property(obj, key, value) {
|
|
|
41
41
|
return obj;
|
|
42
42
|
}
|
|
43
43
|
class CollectionFieldInterface {
|
|
44
|
+
addComponentOption(componentOption) {
|
|
45
|
+
if (!this.componentOptions) {
|
|
46
|
+
var _this_default_uiSchema, _this_default, _this_default_uiSchema1, _this_default1;
|
|
47
|
+
this.componentOptions = [];
|
|
48
|
+
const xComponent = null === (_this_default = this.default) || void 0 === _this_default ? void 0 : null === (_this_default_uiSchema = _this_default.uiSchema) || void 0 === _this_default_uiSchema ? void 0 : _this_default_uiSchema['x-component'];
|
|
49
|
+
const componentProps = null === (_this_default1 = this.default) || void 0 === _this_default1 ? void 0 : null === (_this_default_uiSchema1 = _this_default1.uiSchema) || void 0 === _this_default_uiSchema1 ? void 0 : _this_default_uiSchema1['x-component-props'];
|
|
50
|
+
if (xComponent) this.componentOptions = [
|
|
51
|
+
{
|
|
52
|
+
label: xComponent.split('.').pop(),
|
|
53
|
+
value: xComponent,
|
|
54
|
+
useProps () {
|
|
55
|
+
return componentProps || {};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
this.componentOptions.push(componentOption);
|
|
61
|
+
}
|
|
44
62
|
constructor(collectionFieldInterfaceManager){
|
|
45
63
|
_define_property(this, "collectionFieldInterfaceManager", void 0);
|
|
46
64
|
_define_property(this, "name", void 0);
|
|
@@ -46,6 +46,12 @@ class CollectionFieldInterfaceManager {
|
|
|
46
46
|
const newCollectionFieldInterfaces = fieldInterfaceClasses.reduce((acc, Interface)=>{
|
|
47
47
|
const instance = new Interface(this);
|
|
48
48
|
acc[instance.name] = instance;
|
|
49
|
+
if (Array.isArray(this.actionList[instance.name])) {
|
|
50
|
+
this.actionList[instance.name].forEach((item)=>{
|
|
51
|
+
instance[item.type](item.data);
|
|
52
|
+
});
|
|
53
|
+
this.actionList[instance.name] = void 0;
|
|
54
|
+
}
|
|
49
55
|
return acc;
|
|
50
56
|
}, {});
|
|
51
57
|
Object.assign(this.collectionFieldInterfaceInstances, newCollectionFieldInterfaces);
|
|
@@ -77,13 +83,27 @@ class CollectionFieldInterfaceManager {
|
|
|
77
83
|
getFieldInterfaceGroup(name) {
|
|
78
84
|
return this.collectionFieldGroups[name];
|
|
79
85
|
}
|
|
86
|
+
addFieldInterfaceComponentOption(interfaceName, componentOption) {
|
|
87
|
+
const fieldInterface = this.getFieldInterface(interfaceName);
|
|
88
|
+
if (!fieldInterface) {
|
|
89
|
+
if (!this.actionList[interfaceName]) this.actionList[interfaceName] = [];
|
|
90
|
+
this.actionList[interfaceName].push({
|
|
91
|
+
type: 'addComponentOption',
|
|
92
|
+
data: componentOption
|
|
93
|
+
});
|
|
94
|
+
return;
|
|
95
|
+
}
|
|
96
|
+
fieldInterface.addComponentOption(componentOption);
|
|
97
|
+
}
|
|
80
98
|
constructor(fieldInterfaceClasses, fieldInterfaceGroups, dataSourceManager){
|
|
81
99
|
_define_property(this, "dataSourceManager", void 0);
|
|
82
100
|
_define_property(this, "collectionFieldInterfaceInstances", void 0);
|
|
83
101
|
_define_property(this, "collectionFieldGroups", void 0);
|
|
102
|
+
_define_property(this, "actionList", void 0);
|
|
84
103
|
this.dataSourceManager = dataSourceManager;
|
|
85
104
|
this.collectionFieldInterfaceInstances = {};
|
|
86
105
|
this.collectionFieldGroups = {};
|
|
106
|
+
this.actionList = {};
|
|
87
107
|
this.addFieldInterfaces(fieldInterfaceClasses);
|
|
88
108
|
this.addFieldInterfaceGroups(fieldInterfaceGroups);
|
|
89
109
|
}
|
|
@@ -86,14 +86,16 @@ const fieldComponentSettingsItem = {
|
|
|
86
86
|
component,
|
|
87
87
|
...(null == componentOptions ? void 0 : null === (_componentOptions_useProps = componentOptions.useProps) || void 0 === _componentOptions_useProps ? void 0 : _componentOptions_useProps.call(componentOptions)) || {}
|
|
88
88
|
};
|
|
89
|
-
external_lodash_default().set(fieldSchema, 'x-component-props', componentProps);
|
|
90
89
|
field.componentProps = componentProps;
|
|
90
|
+
field.component = component;
|
|
91
|
+
external_lodash_default().set(fieldSchema, 'x-component-props', componentProps);
|
|
91
92
|
dn.emit('patch', {
|
|
92
93
|
schema: {
|
|
93
94
|
['x-uid']: fieldSchema['x-uid'],
|
|
94
95
|
'x-component-props': componentProps
|
|
95
96
|
}
|
|
96
97
|
});
|
|
98
|
+
dn.refresh();
|
|
97
99
|
}
|
|
98
100
|
};
|
|
99
101
|
}
|
|
@@ -144,6 +144,12 @@ const transformToFilter = (values, fieldSchema, getCollectionJoinField, collecti
|
|
|
144
144
|
$isFalsy: true
|
|
145
145
|
}
|
|
146
146
|
};
|
|
147
|
+
} else if ('$dateBetween' === operators[key]) {
|
|
148
|
+
if (Array.isArray(value)) for(const index in value){
|
|
149
|
+
if (!!value[index]) {
|
|
150
|
+
if ('string' != typeof value[index] && !(value[index] instanceof Date)) value[index] = (0, client_namespaceObject.dayjs)(value[index]).toISOString();
|
|
151
|
+
}
|
|
152
|
+
}
|
|
147
153
|
}
|
|
148
154
|
return {
|
|
149
155
|
[key]: {
|
package/lib/i18n/i18n.js
CHANGED
|
@@ -56,18 +56,13 @@ const resources = {};
|
|
|
56
56
|
Object.keys(index_js_default()).forEach((lang)=>{
|
|
57
57
|
resources[lang] = index_js_default()[lang].resources;
|
|
58
58
|
});
|
|
59
|
-
if ('undefined' != typeof localStorage) {
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
});
|
|
67
|
-
i18n.on('languageChanged', (lng)=>{
|
|
68
|
-
localStorage.setItem('TACHYBASE_LOCALE', lng);
|
|
69
|
-
});
|
|
70
|
-
}
|
|
59
|
+
if ('undefined' != typeof localStorage) i18n.use(external_react_i18next_namespaceObject.initReactI18next).init({
|
|
60
|
+
lng: localStorage.getItem('TACHYBASE_LOCALE') || 'en-US',
|
|
61
|
+
defaultNS: 'core',
|
|
62
|
+
resources: {},
|
|
63
|
+
keySeparator: false,
|
|
64
|
+
nsSeparator: false
|
|
65
|
+
});
|
|
71
66
|
var __webpack_export_target__ = exports;
|
|
72
67
|
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
73
68
|
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|