@tachybase/client 0.23.48 → 1.0.6
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 +6 -0
- package/es/application/Application.mjs +19 -0
- package/es/application/CustomRouterContextProvider.d.ts +54 -0
- package/es/application/CustomRouterContextProvider.mjs +209 -0
- package/es/application/RouterManager.d.ts +8 -3
- package/es/application/RouterManager.mjs +48 -15
- package/es/application/hooks/index.d.ts +1 -0
- package/es/application/hooks/index.mjs +1 -0
- package/es/application/hooks/useGlobalVariable.d.ts +1 -0
- package/es/application/hooks/useGlobalVariable.mjs +18 -0
- package/es/application/schema-initializer/context/index.d.ts +1 -1
- package/es/application/schema-settings/hooks/index.d.ts +1 -1
- package/es/application/schema-settings/hooks/index.mjs +6 -8
- package/es/block-provider/hooks/index.d.ts +2 -0
- package/es/block-provider/hooks/index.mjs +29 -22
- 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 +8 -0
- package/es/built-in/locale/LocalePlugin.mjs +5 -1
- package/es/built-in/page-style/PageStyle.provider.mjs +2 -2
- package/es/built-in/system-settings/SystemSettingsProvider.d.ts +2 -3
- package/es/built-in/system-settings/SystemSettingsProvider.mjs +4 -3
- package/es/built-in/system-settings/SystemSettingsShortcut.mjs +11 -8
- package/es/collection-manager/Configuration/AddCollectionAction.mjs +12 -2
- package/es/collection-manager/Configuration/ImportXlsx/ImportXlsxMetaAction.d.ts +2 -0
- package/es/collection-manager/Configuration/ImportXlsx/ImportXlsxMetaAction.mjs +255 -0
- package/es/collection-manager/Configuration/ImportXlsx/XlsxCollectionSchema.d.ts +89 -0
- package/es/collection-manager/Configuration/ImportXlsx/XlsxCollectionSchema.mjs +96 -0
- package/es/collection-manager/Configuration/ImportXlsx/XlsxEditFieldAction.d.ts +3 -0
- package/es/collection-manager/Configuration/ImportXlsx/XlsxEditFieldAction.mjs +47 -0
- package/es/collection-manager/Configuration/ImportXlsx/setUpdateXlsxCollectionField.d.ts +3 -0
- package/es/collection-manager/Configuration/ImportXlsx/setUpdateXlsxCollectionField.mjs +44 -0
- package/es/collection-manager/Configuration/ImportXlsx/xlsxFieldsConfigure.d.ts +1 -0
- package/es/collection-manager/Configuration/ImportXlsx/xlsxFieldsConfigure.mjs +380 -0
- package/es/collection-manager/Configuration/ImportXlsx/xlsxFormValueContextProvider.d.ts +8 -0
- package/es/collection-manager/Configuration/ImportXlsx/xlsxFormValueContextProvider.mjs +4 -0
- package/es/collection-manager/Configuration/ImportXlsx/xlsxImportAction.d.ts +1 -0
- package/es/collection-manager/Configuration/ImportXlsx/xlsxImportAction.mjs +187 -0
- package/es/collection-manager/Configuration/ImportXlsx/xlsxPreviewTable.d.ts +1 -0
- package/es/collection-manager/Configuration/ImportXlsx/xlsxPreviewTable.mjs +30 -0
- package/es/collection-manager/collectionPlugin.mjs +3 -1
- package/es/collection-manager/templates/import.mjs +1 -1
- package/es/collection-manager/templates/sql.d.ts +1 -1
- package/es/collection-manager/templates/view.d.ts +1 -1
- package/es/collection-manager/templates/xlsx.d.ts +11 -0
- package/es/collection-manager/templates/xlsx.mjs +19 -0
- 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 +6 -4
- 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/Radio/radioComponentFieldSettings.mjs +0 -4
- 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 +43 -5
- package/es/schema-component/antd/action/Action.Modal.mjs +19 -31
- package/es/schema-component/antd/action/Action.Modal.style.d.ts +4 -0
- package/es/schema-component/antd/action/Action.Modal.style.mjs +35 -0
- package/es/schema-component/antd/action/Action.mjs +1 -3
- package/es/schema-component/antd/action/utils.d.ts +1 -1
- package/es/schema-component/antd/action/utils.mjs +70 -70
- package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +2 -1
- package/es/schema-component/antd/checkbox/Checkbox.mjs +9 -2
- 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.d.ts +1 -5
- package/es/schema-component/antd/page/Page.mjs +235 -144
- package/es/schema-component/antd/page/Page.style.d.ts +5 -0
- package/es/schema-component/antd/page/Page.style.mjs +45 -0
- package/es/schema-component/antd/page/PageDesigner.d.ts +3 -0
- package/es/schema-component/antd/page/PageDesigner.mjs +28 -0
- package/es/schema-component/antd/page/PageTabDesigner.d.ts +0 -3
- package/es/schema-component/antd/page/PageTabDesigner.mjs +3 -50
- package/es/schema-component/antd/page/style.d.ts +1 -1
- package/es/schema-component/antd/page/style.mjs +3 -13
- package/es/schema-component/antd/password/Password.d.ts +1 -1
- package/es/schema-component/antd/password/utils.d.ts +1 -1
- package/es/schema-component/antd/scroll-area/ScrollArea.d.ts +1 -1
- package/es/schema-component/antd/scroll-area/ScrollArea.mjs +2 -1
- package/es/schema-component/antd/variable/TextArea.mjs +1 -1
- package/es/schema-component/antd/variable/TextAreaWithGlobalScope.d.ts +13 -0
- package/es/schema-component/antd/variable/TextAreaWithGlobalScope.mjs +59 -0
- package/es/schema-component/antd/variable/index.d.ts +1 -0
- package/es/schema-component/antd/variable/index.mjs +3 -0
- 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 +19 -0
- package/lib/application/CustomRouterContextProvider.js +276 -0
- package/lib/application/RouterManager.js +49 -15
- package/lib/application/hooks/index.js +9 -0
- package/lib/application/hooks/useGlobalVariable.js +52 -0
- package/lib/application/schema-initializer/hooks/index.js +2 -2
- package/lib/application/schema-settings/hooks/index.js +6 -8
- package/lib/block-provider/hooks/index.js +80 -59
- 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 +8 -0
- package/lib/built-in/locale/LocalePlugin.js +5 -1
- package/lib/built-in/page-style/PageStyle.provider.js +2 -2
- package/lib/built-in/system-settings/SystemSettingsProvider.js +4 -3
- package/lib/built-in/system-settings/SystemSettingsShortcut.js +11 -8
- package/lib/collection-manager/Configuration/AddCollectionAction.js +12 -2
- package/lib/collection-manager/Configuration/ImportXlsx/ImportXlsxMetaAction.js +304 -0
- package/lib/collection-manager/Configuration/ImportXlsx/XlsxCollectionSchema.js +130 -0
- package/lib/collection-manager/Configuration/ImportXlsx/XlsxEditFieldAction.js +81 -0
- package/lib/collection-manager/Configuration/ImportXlsx/setUpdateXlsxCollectionField.js +78 -0
- package/lib/collection-manager/Configuration/ImportXlsx/xlsxFieldsConfigure.js +414 -0
- package/lib/collection-manager/Configuration/ImportXlsx/xlsxFormValueContextProvider.js +53 -0
- package/lib/collection-manager/Configuration/ImportXlsx/xlsxImportAction.js +235 -0
- package/lib/collection-manager/Configuration/ImportXlsx/xlsxPreviewTable.js +64 -0
- package/lib/collection-manager/collectionPlugin.js +3 -1
- package/lib/collection-manager/templates/import.js +1 -1
- package/lib/collection-manager/templates/xlsx.js +53 -0
- 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 +1 -0
- package/lib/locale/zh-CN.js +14 -2
- 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 +6 -4
- 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/Radio/radioComponentFieldSettings.js +0 -4
- 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 +43 -5
- package/lib/schema-component/antd/action/Action.Modal.js +19 -31
- package/lib/schema-component/antd/action/Action.Modal.style.js +69 -0
- package/lib/schema-component/antd/action/Action.js +1 -3
- package/lib/schema-component/antd/action/utils.js +70 -70
- package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +2 -1
- package/lib/schema-component/antd/checkbox/Checkbox.js +9 -2
- 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 +235 -144
- package/lib/schema-component/antd/page/Page.style.js +79 -0
- package/lib/schema-component/antd/page/PageDesigner.js +62 -0
- package/lib/schema-component/antd/page/PageTabDesigner.js +2 -50
- package/lib/schema-component/antd/page/style.js +3 -13
- package/lib/schema-component/antd/scroll-area/ScrollArea.js +2 -1
- package/lib/schema-component/antd/variable/TextArea.js +1 -1
- package/lib/schema-component/antd/variable/TextAreaWithGlobalScope.js +94 -0
- package/lib/schema-component/antd/variable/index.js +13 -1
- 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
|
@@ -0,0 +1,235 @@
|
|
|
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
|
+
XlsxEditFieldAction: ()=>XlsxEditFieldAction
|
|
43
|
+
});
|
|
44
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
45
|
+
const external_react_namespaceObject = require("react");
|
|
46
|
+
const components_namespaceObject = require("@tachybase/components");
|
|
47
|
+
const schema_namespaceObject = require("@tachybase/schema");
|
|
48
|
+
const external_lodash_namespaceObject = require("lodash");
|
|
49
|
+
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
50
|
+
const index_js_namespaceObject = require("../../../api-client/index.js");
|
|
51
|
+
const external_record_provider_index_js_namespaceObject = require("../../../record-provider/index.js");
|
|
52
|
+
const external_schema_component_index_js_namespaceObject = require("../../../schema-component/index.js");
|
|
53
|
+
const external_action_hooks_js_namespaceObject = require("../../action-hooks.js");
|
|
54
|
+
const external_hooks_index_js_namespaceObject = require("../../hooks/index.js");
|
|
55
|
+
const useDialect_js_namespaceObject = require("../../hooks/useDialect.js");
|
|
56
|
+
var useDialect_js_default = /*#__PURE__*/ __webpack_require__.n(useDialect_js_namespaceObject);
|
|
57
|
+
const external_components_index_js_namespaceObject = require("../components/index.js");
|
|
58
|
+
const external_setUpdateXlsxCollectionField_js_namespaceObject = require("./setUpdateXlsxCollectionField.js");
|
|
59
|
+
const XlsxEditFieldAction = (props)=>{
|
|
60
|
+
const { scope, getContainer, record, parentItem: parentRecord, children, handleUiSchemaChange, ...otherProps } = props;
|
|
61
|
+
const { getInterface, collections, getCollection } = (0, external_hooks_index_js_namespaceObject.useCollectionManager_deprecated)();
|
|
62
|
+
const [visible, setVisible] = (0, external_react_namespaceObject.useState)(false);
|
|
63
|
+
const [schema, setSchema] = (0, external_react_namespaceObject.useState)({});
|
|
64
|
+
(0, index_js_namespaceObject.useAPIClient)();
|
|
65
|
+
const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
|
|
66
|
+
const compile = (0, external_schema_component_index_js_namespaceObject.useCompile)();
|
|
67
|
+
const [data, setData] = (0, external_react_namespaceObject.useState)({
|
|
68
|
+
record
|
|
69
|
+
});
|
|
70
|
+
const { isDialect } = useDialect_js_default()();
|
|
71
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_record_provider_index_js_namespaceObject.RecordProvider, {
|
|
72
|
+
record: record,
|
|
73
|
+
parent: parentRecord,
|
|
74
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(external_schema_component_index_js_namespaceObject.ActionContextProvider, {
|
|
75
|
+
value: {
|
|
76
|
+
visible,
|
|
77
|
+
setVisible
|
|
78
|
+
},
|
|
79
|
+
children: [
|
|
80
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("a", {
|
|
81
|
+
...otherProps,
|
|
82
|
+
onClick: async ()=>{
|
|
83
|
+
setData(record);
|
|
84
|
+
const interfaceConf = getInterface(record.interface);
|
|
85
|
+
const defaultValues = (0, external_lodash_namespaceObject.cloneDeep)(record) || {};
|
|
86
|
+
if (!(null == defaultValues ? void 0 : defaultValues.reverseField)) {
|
|
87
|
+
var _interfaceConf_default;
|
|
88
|
+
defaultValues.autoCreateReverseField = false;
|
|
89
|
+
defaultValues.reverseField = null == interfaceConf ? void 0 : null === (_interfaceConf_default = interfaceConf.default) || void 0 === _interfaceConf_default ? void 0 : _interfaceConf_default.reverseField;
|
|
90
|
+
(0, external_lodash_namespaceObject.set)(defaultValues.reverseField, 'name', record.name);
|
|
91
|
+
(0, external_lodash_namespaceObject.set)(defaultValues, 'uiSchema.title', record.uiSchema.title);
|
|
92
|
+
}
|
|
93
|
+
const schema = getSchema({
|
|
94
|
+
...interfaceConf,
|
|
95
|
+
default: defaultValues
|
|
96
|
+
}, record, compile, getContainer);
|
|
97
|
+
setSchema(schema);
|
|
98
|
+
setVisible(true);
|
|
99
|
+
},
|
|
100
|
+
children: children || t('Edit')
|
|
101
|
+
}),
|
|
102
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_component_index_js_namespaceObject.SchemaComponent, {
|
|
103
|
+
schema: schema,
|
|
104
|
+
components: {
|
|
105
|
+
...external_components_index_js_namespaceObject,
|
|
106
|
+
ArrayTable: components_namespaceObject.ArrayTable
|
|
107
|
+
},
|
|
108
|
+
scope: {
|
|
109
|
+
getContainer,
|
|
110
|
+
useCancelAction: external_action_hooks_js_namespaceObject.useCancelAction,
|
|
111
|
+
showReverseFieldConfig: !(null == data ? void 0 : data.reverseField),
|
|
112
|
+
isDialect,
|
|
113
|
+
setUpdateXlsxCollectionField: external_setUpdateXlsxCollectionField_js_namespaceObject.setUpdateXlsxCollectionField,
|
|
114
|
+
disabledJSONB: true,
|
|
115
|
+
createMainOnly: true,
|
|
116
|
+
...scope
|
|
117
|
+
}
|
|
118
|
+
})
|
|
119
|
+
]
|
|
120
|
+
})
|
|
121
|
+
});
|
|
122
|
+
};
|
|
123
|
+
const getSchema = (schema, record, compile, getContainer)=>{
|
|
124
|
+
if (!schema) return;
|
|
125
|
+
const properties = (0, external_lodash_namespaceObject.cloneDeep)(schema.properties);
|
|
126
|
+
if (null == properties ? void 0 : properties.name) properties.name['x-disabled'] = true;
|
|
127
|
+
if (true === schema.hasDefaultValue) {
|
|
128
|
+
properties['defaultValue'] = (0, external_lodash_namespaceObject.cloneDeep)(schema.default) || {};
|
|
129
|
+
properties.defaultValue.required = false;
|
|
130
|
+
properties['defaultValue']['title'] = compile('{{ t("Default value") }}');
|
|
131
|
+
properties['defaultValue']['x-decorator'] = 'FormItem';
|
|
132
|
+
properties['defaultValue']['x-reactions'] = [
|
|
133
|
+
{
|
|
134
|
+
dependencies: [
|
|
135
|
+
'uiSchema.x-component-props.gmt',
|
|
136
|
+
'uiSchema.x-component-props.showTime',
|
|
137
|
+
'uiSchema.x-component-props.dateFormat',
|
|
138
|
+
'uiSchema.x-component-props.timeFormat'
|
|
139
|
+
],
|
|
140
|
+
fulfill: {
|
|
141
|
+
state: {
|
|
142
|
+
componentProps: {
|
|
143
|
+
gmt: '{{$deps[0]}}',
|
|
144
|
+
showTime: '{{$deps[1]}}',
|
|
145
|
+
dateFormat: '{{$deps[2]}}',
|
|
146
|
+
timeFormat: '{{$deps[3]}}'
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
dependencies: [
|
|
153
|
+
'primaryKey',
|
|
154
|
+
'unique',
|
|
155
|
+
'autoIncrement'
|
|
156
|
+
],
|
|
157
|
+
when: '{{$deps[0]||$deps[1]||$deps[2]}}',
|
|
158
|
+
fulfill: {
|
|
159
|
+
state: {
|
|
160
|
+
hidden: true,
|
|
161
|
+
value: void 0
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
otherwise: {
|
|
165
|
+
state: {
|
|
166
|
+
hidden: false
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
];
|
|
171
|
+
}
|
|
172
|
+
return {
|
|
173
|
+
type: 'object',
|
|
174
|
+
properties: {
|
|
175
|
+
[(0, schema_namespaceObject.uid)()]: {
|
|
176
|
+
type: 'void',
|
|
177
|
+
'x-component': 'Action.Drawer',
|
|
178
|
+
'x-component-props': {
|
|
179
|
+
getContainer: getContainer
|
|
180
|
+
},
|
|
181
|
+
'x-decorator': 'Form',
|
|
182
|
+
'x-decorator-props': {
|
|
183
|
+
useValues (options) {
|
|
184
|
+
return (0, index_js_namespaceObject.useRequest)(()=>Promise.resolve({
|
|
185
|
+
data: (0, external_lodash_namespaceObject.cloneDeep)((0, external_lodash_namespaceObject.omit)(schema.default, [
|
|
186
|
+
'uiSchema.rawTitle'
|
|
187
|
+
]))
|
|
188
|
+
}), options);
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
title: "".concat(compile(record.uiSchema.title), " - ").concat(compile('{{ t("Edit field") }}')),
|
|
192
|
+
properties: {
|
|
193
|
+
summary: {
|
|
194
|
+
type: 'void',
|
|
195
|
+
'x-component': 'FieldSummary',
|
|
196
|
+
'x-component-props': {
|
|
197
|
+
schemaKey: schema.name
|
|
198
|
+
}
|
|
199
|
+
},
|
|
200
|
+
...properties,
|
|
201
|
+
description: {
|
|
202
|
+
type: 'string',
|
|
203
|
+
title: '{{t("Description")}}',
|
|
204
|
+
'x-decorator': 'FormItem',
|
|
205
|
+
'x-component': 'Input.TextArea'
|
|
206
|
+
},
|
|
207
|
+
footer: {
|
|
208
|
+
type: 'void',
|
|
209
|
+
'x-component': 'Action.Drawer.Footer',
|
|
210
|
+
properties: {
|
|
211
|
+
action1: {
|
|
212
|
+
title: '{{ t("Cancel") }}',
|
|
213
|
+
'x-component': 'Action',
|
|
214
|
+
'x-use-component-props': 'useCancelActionProps'
|
|
215
|
+
},
|
|
216
|
+
action2: {
|
|
217
|
+
title: '{{ t("Submit") }}',
|
|
218
|
+
'x-component': 'Action',
|
|
219
|
+
'x-component-props': {
|
|
220
|
+
type: 'primary'
|
|
221
|
+
},
|
|
222
|
+
'x-use-component-props': 'setUpdateXlsxCollectionField'
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
var __webpack_export_target__ = exports;
|
|
232
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
233
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
234
|
+
value: true
|
|
235
|
+
});
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = function(obj, prop) {
|
|
13
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.r = function(exports1) {
|
|
18
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
26
|
+
var __webpack_exports__ = {};
|
|
27
|
+
__webpack_require__.r(__webpack_exports__);
|
|
28
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
29
|
+
xlsxPreviewTable: ()=>xlsxPreviewTable
|
|
30
|
+
});
|
|
31
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
|
+
const schema_namespaceObject = require("@tachybase/schema");
|
|
33
|
+
const external_antd_namespaceObject = require("antd");
|
|
34
|
+
const external_react_i18next_namespaceObject = require("react-i18next");
|
|
35
|
+
const xlsxPreviewTable = (0, schema_namespaceObject.observer)((props)=>{
|
|
36
|
+
const { filedata } = props;
|
|
37
|
+
const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
|
|
38
|
+
const previewTablecolumns = filedata.fields.map((field)=>({
|
|
39
|
+
title: field.uiSchema.title,
|
|
40
|
+
dataIndex: field.name,
|
|
41
|
+
key: field.name,
|
|
42
|
+
render: (text)=>text,
|
|
43
|
+
width: 200
|
|
44
|
+
}));
|
|
45
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Table, {
|
|
46
|
+
bordered: true,
|
|
47
|
+
size: "small",
|
|
48
|
+
columns: previewTablecolumns,
|
|
49
|
+
dataSource: filedata.data,
|
|
50
|
+
scroll: {
|
|
51
|
+
y: 300,
|
|
52
|
+
x: 'max-content'
|
|
53
|
+
},
|
|
54
|
+
pagination: false,
|
|
55
|
+
rowKey: "name"
|
|
56
|
+
});
|
|
57
|
+
}, {
|
|
58
|
+
displayName: 'PreviewTable'
|
|
59
|
+
});
|
|
60
|
+
var __webpack_export_target__ = exports;
|
|
61
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
62
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
63
|
+
value: true
|
|
64
|
+
});
|
|
@@ -34,6 +34,7 @@ const DataSourceManager_js_namespaceObject = require("../data-source/data-source
|
|
|
34
34
|
const index_js_namespaceObject = require("./interfaces/index.js");
|
|
35
35
|
const InheritanceCollectionMixin_js_namespaceObject = require("./mixins/InheritanceCollectionMixin.js");
|
|
36
36
|
const external_templates_index_js_namespaceObject = require("./templates/index.js");
|
|
37
|
+
const xlsx_js_namespaceObject = require("./templates/xlsx.js");
|
|
37
38
|
class MainDataSource extends DataSource_js_namespaceObject.DataSource {
|
|
38
39
|
async getDataSource() {
|
|
39
40
|
var _service_data;
|
|
@@ -152,7 +153,8 @@ class CollectionPlugin extends Plugin_js_namespaceObject.Plugin {
|
|
|
152
153
|
external_templates_index_js_namespaceObject.SqlCollectionTemplate,
|
|
153
154
|
external_templates_index_js_namespaceObject.TreeCollectionTemplate,
|
|
154
155
|
external_templates_index_js_namespaceObject.ViewCollectionTemplate,
|
|
155
|
-
external_templates_index_js_namespaceObject.ImportCollectionTemplate
|
|
156
|
+
external_templates_index_js_namespaceObject.ImportCollectionTemplate,
|
|
157
|
+
xlsx_js_namespaceObject.ImportXlsxTemplate
|
|
156
158
|
]);
|
|
157
159
|
}
|
|
158
160
|
}
|
|
@@ -41,7 +41,7 @@ function _define_property(obj, key, value) {
|
|
|
41
41
|
}
|
|
42
42
|
class ImportCollectionTemplate extends CollectionTemplate_js_namespaceObject.CollectionTemplate {
|
|
43
43
|
constructor(...args){
|
|
44
|
-
super(...args), _define_property(this, "name", 'import'), _define_property(this, "title", '{{t("Import collection")}}'), _define_property(this, "order", 5), _define_property(this, "color", 'blue'), _define_property(this, "divider", true), _define_property(this, "default", {
|
|
44
|
+
super(...args), _define_property(this, "name", 'import'), _define_property(this, "title", '{{t("Import json collection")}}'), _define_property(this, "order", 5), _define_property(this, "color", 'blue'), _define_property(this, "divider", true), _define_property(this, "default", {
|
|
45
45
|
fields: []
|
|
46
46
|
});
|
|
47
47
|
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = function(exports1, definition) {
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = function(obj, prop) {
|
|
13
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
14
|
+
};
|
|
15
|
+
})();
|
|
16
|
+
(()=>{
|
|
17
|
+
__webpack_require__.r = function(exports1) {
|
|
18
|
+
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
19
|
+
value: 'Module'
|
|
20
|
+
});
|
|
21
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
22
|
+
value: true
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
})();
|
|
26
|
+
var __webpack_exports__ = {};
|
|
27
|
+
__webpack_require__.r(__webpack_exports__);
|
|
28
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
29
|
+
ImportXlsxTemplate: ()=>ImportXlsxTemplate
|
|
30
|
+
});
|
|
31
|
+
const CollectionTemplate_js_namespaceObject = require("../../data-source/collection-template/CollectionTemplate.js");
|
|
32
|
+
function _define_property(obj, key, value) {
|
|
33
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
34
|
+
value: value,
|
|
35
|
+
enumerable: true,
|
|
36
|
+
configurable: true,
|
|
37
|
+
writable: true
|
|
38
|
+
});
|
|
39
|
+
else obj[key] = value;
|
|
40
|
+
return obj;
|
|
41
|
+
}
|
|
42
|
+
class ImportXlsxTemplate extends CollectionTemplate_js_namespaceObject.CollectionTemplate {
|
|
43
|
+
constructor(...args){
|
|
44
|
+
super(...args), _define_property(this, "name", 'importXlsx'), _define_property(this, "title", '{{t("Import xlsx collection")}}'), _define_property(this, "order", 6), _define_property(this, "color", 'blue'), _define_property(this, "divider", false), _define_property(this, "default", {
|
|
45
|
+
fields: []
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
var __webpack_export_target__ = exports;
|
|
50
|
+
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
51
|
+
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
|
|
52
|
+
value: true
|
|
53
|
+
});
|
|
@@ -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', {
|
package/lib/locale/en_US.js
CHANGED
|
@@ -768,6 +768,7 @@ module.exports = {
|
|
|
768
768
|
"Table OID(Inheritance)": "Table OID(Inheritance)",
|
|
769
769
|
"Table selected records": "Table selected records",
|
|
770
770
|
"Tablet device": "Tablet device",
|
|
771
|
+
"TachyBase Team": "TachyBase Team",
|
|
771
772
|
Tag: "Tag",
|
|
772
773
|
"Tag color field": "Tag color field",
|
|
773
774
|
Target: "Target",
|
package/lib/locale/zh-CN.js
CHANGED
|
@@ -67,6 +67,7 @@ module.exports = {
|
|
|
67
67
|
"After successful submission": "\u63D0\u4EA4\u6210\u529F\u540E",
|
|
68
68
|
"After successful update": "\u66F4\u65B0\u6210\u529F\u540E",
|
|
69
69
|
Agenda: "\u5217\u8868",
|
|
70
|
+
Align: "\u5BF9\u9F50\u65B9\u5F0F",
|
|
70
71
|
All: "\u6240\u6709",
|
|
71
72
|
"All collections": "\u5168\u90E8\u6570\u636E\u8868",
|
|
72
73
|
"All collections use general action permissions by default; permission configured individually will override the default one.": "\u6240\u6709\u6570\u636E\u8868\u90FD\u9ED8\u8BA4\u4F7F\u7528\u901A\u7528\u6570\u636E\u64CD\u4F5C\u6743\u9650\uFF1B\u540C\u65F6\uFF0C\u53EF\u4EE5\u9488\u5BF9\u6BCF\u4E2A\u6570\u636E\u8868\u5355\u72EC\u914D\u7F6E\u6743\u9650\u3002",
|
|
@@ -154,6 +155,7 @@ module.exports = {
|
|
|
154
155
|
Cascader: "\u7EA7\u8054\u9009\u62E9",
|
|
155
156
|
Categories: "\u6570\u636E\u8868\u7C7B\u522B",
|
|
156
157
|
"Category name": "\u5206\u7C7B\u540D\u79F0",
|
|
158
|
+
Center: "\u5C45\u4E2D",
|
|
157
159
|
"Chang on Parent": "\u9009\u62E9\u7236\u7EA7",
|
|
158
160
|
"Change password": "\u4FEE\u6539\u5BC6\u7801",
|
|
159
161
|
"Changed to": "\u4FEE\u6539\u4E3A",
|
|
@@ -173,6 +175,7 @@ module.exports = {
|
|
|
173
175
|
"Clear cache": "\u6E05\u9664\u7F13\u5B58",
|
|
174
176
|
"Click on the right to select variables \u2192": "\u70B9\u51FB\u53F3\u4FA7\u9009\u62E9\u53D8\u91CF \u2192",
|
|
175
177
|
"Click or drag file to this area to upload": "\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20",
|
|
178
|
+
"Click to select": "\u70B9\u9009\u6A21\u5F0F",
|
|
176
179
|
Close: "\u5173\u95ED",
|
|
177
180
|
Collapse: "\u6298\u53E0\u9762\u677F",
|
|
178
181
|
"Collapse all": "\u5168\u90E8\u6536\u8D77",
|
|
@@ -212,6 +215,7 @@ module.exports = {
|
|
|
212
215
|
Constant: "\u5E38\u91CF",
|
|
213
216
|
"Constant value": "\u9759\u6001\u503C",
|
|
214
217
|
"Convert reference to duplicate": "\u6A21\u677F\u5F15\u7528\u8F6C\u4E3A\u590D\u5236",
|
|
218
|
+
"Converted to": "\u8F6C\u6362\u6210",
|
|
215
219
|
"Copy into the form and continue to fill in": "\u590D\u5236\u5230\u8868\u5355\u5E76\u7EE7\u7EED\u586B\u5199",
|
|
216
220
|
Create: "\u4EC5\u65B0\u589E",
|
|
217
221
|
"Create an account": "\u6CE8\u518C\u8D26\u53F7",
|
|
@@ -391,6 +395,7 @@ module.exports = {
|
|
|
391
395
|
"Enable link": "\u542F\u7528\u94FE\u63A5",
|
|
392
396
|
"Enable page header": "\u542F\u7528\u9875\u7709",
|
|
393
397
|
"Enable page tabs": "\u542F\u7528\u9875\u9762\u9009\u9879\u5361",
|
|
398
|
+
"Enable quick create": "\u542F\u7528\u5FEB\u901F\u521B\u5EFA",
|
|
394
399
|
Enabled: "\u542F\u7528",
|
|
395
400
|
"Enabled languages": "\u542F\u7528\u7684\u8BED\u8A00",
|
|
396
401
|
"End date field": "\u7ED3\u675F\u65E5\u671F\u5B57\u6BB5",
|
|
@@ -413,7 +418,7 @@ module.exports = {
|
|
|
413
418
|
"Field collection": "\u9009\u62E9\u6570\u636E",
|
|
414
419
|
"Field component": "\u5B57\u6BB5\u7EC4\u4EF6",
|
|
415
420
|
"Field display name": "\u5B57\u6BB5\u540D\u79F0",
|
|
416
|
-
"Field interface": "\
|
|
421
|
+
"Field interface": "UI\u7C7B\u578B",
|
|
417
422
|
"Field mode": "\u5B57\u6BB5\u7EC4\u4EF6",
|
|
418
423
|
"Field name": "\u5B57\u6BB5\u6807\u8BC6",
|
|
419
424
|
"Field permission": "\u5B57\u6BB5\u6743\u9650",
|
|
@@ -482,6 +487,8 @@ module.exports = {
|
|
|
482
487
|
ImageSearch: "\u56FE\u7247\u641C\u7D22",
|
|
483
488
|
Import: "\u5BFC\u5165",
|
|
484
489
|
"Import collection": "\u5BFC\u5165\u6570\u636E\u8868",
|
|
490
|
+
"Import json collection": "\u5BFC\u5165json\u6570\u636E\u8868",
|
|
491
|
+
"Import xlsx collection": "\u5BFC\u5165xlsx\u6570\u636E\u8868",
|
|
485
492
|
"Importable fields": "\u53EF\u5BFC\u5165\u5B57\u6BB5",
|
|
486
493
|
"In configuration": "\u914D\u7F6E\u4E2D",
|
|
487
494
|
Index: "\u7D22\u5F15",
|
|
@@ -527,6 +534,7 @@ module.exports = {
|
|
|
527
534
|
"Last week": "\u4E0A\u5468",
|
|
528
535
|
"Last year": "\u53BB\u5E74",
|
|
529
536
|
"Leave it blank, unless you need a custom intermediate table": "\u9ED8\u8BA4\u7559\u7A7A\uFF0C\u9664\u975E\u4F60\u9700\u8981\u4E00\u4E2A\u81EA\u5B9A\u4E49\u7684\u4E2D\u95F4\u8868",
|
|
537
|
+
Left: "\u5DE6\u5BF9\u9F50",
|
|
530
538
|
Length: "\u957F\u5EA6",
|
|
531
539
|
License: "\u8BB8\u53EF\u8BC1",
|
|
532
540
|
Lime: "\u9752\u67E0",
|
|
@@ -764,6 +772,7 @@ module.exports = {
|
|
|
764
772
|
"Retry after {{count}} seconds": "{{count}} \u79D2\u540E\u91CD\u8BD5",
|
|
765
773
|
"Return to the main application": "\u8FD4\u56DE\u4E3B\u5E94\u7528",
|
|
766
774
|
"Rich Text": "\u5BCC\u6587\u672C",
|
|
775
|
+
Right: "\u53F3\u5BF9\u9F50",
|
|
767
776
|
"Role UID": "\u89D2\u8272\u6807\u8BC6",
|
|
768
777
|
"Role display name": "\u89D2\u8272\u540D\u79F0",
|
|
769
778
|
"Role name": "\u89D2\u8272\u540D\u79F0",
|
|
@@ -787,7 +796,7 @@ module.exports = {
|
|
|
787
796
|
"Search plugin": "\u641C\u7D22\u63D2\u4EF6",
|
|
788
797
|
Second: "\u79D2",
|
|
789
798
|
"Secondary confirmation": "\u4E8C\u6B21\u786E\u8BA4",
|
|
790
|
-
Security: "\
|
|
799
|
+
Security: "\u5B89\u5168",
|
|
791
800
|
Select: "\u9009\u62E9",
|
|
792
801
|
"Select a variable": "\u9009\u62E9\u53D8\u91CF",
|
|
793
802
|
"Select all": "\u5168\u9009",
|
|
@@ -807,6 +816,8 @@ module.exports = {
|
|
|
807
816
|
"Selector mode": "\u9009\u62E9\u5668\u6A21\u5F0F",
|
|
808
817
|
"Send code": "\u53D1\u9001\u9A8C\u8BC1\u7801",
|
|
809
818
|
Separator: "\u5206\u9694\u7B26",
|
|
819
|
+
"Set Quick Add Parent Tabs": "\u8BBE\u7F6E\u5FEB\u901F\u6DFB\u52A0\u7236\u7EA7\u9009\u9879",
|
|
820
|
+
"Set Quick Add Tabs": "\u8BBE\u7F6E\u5FEB\u901F\u6DFB\u52A0\u9009\u9879",
|
|
810
821
|
"Set data loading mode": "\u8BBE\u7F6E\u6570\u636E\u52A0\u8F7D\u65B9\u5F0F",
|
|
811
822
|
"Set default sorting rules": "\u8BBE\u7F6E\u6392\u5E8F\u89C4\u5219",
|
|
812
823
|
"Set default value": "\u8BBE\u7F6E\u9ED8\u8BA4\u503C",
|
|
@@ -890,6 +901,7 @@ module.exports = {
|
|
|
890
901
|
"Table OID(Inheritance)": "\u6570\u636E\u8868 OID(\u7EE7\u627F)",
|
|
891
902
|
"Table selected records": "\u8868\u683C\u4E2D\u9009\u4E2D\u7684\u8BB0\u5F55",
|
|
892
903
|
"Tablet device": "\u5E73\u677F\u8BBE\u5907",
|
|
904
|
+
"TachyBase Team": "\u4E0A\u6D77\u9053\u6709\u4E91\u7F51\u7EDC\u79D1\u6280\u6709\u9650\u516C\u53F8 \u7248\u6743\u6240\u6709\uFF5C\u6CAAICP\u59072023024678\u53F7",
|
|
893
905
|
Tag: "\u6807\u7B7E",
|
|
894
906
|
"Tag color field": "\u6807\u7B7E\u989C\u8272\u5B57\u6BB5",
|
|
895
907
|
Target: "\u76EE\u6807",
|
|
@@ -28,6 +28,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
28
28
|
__webpack_require__.d(__webpack_exports__, {
|
|
29
29
|
deleteActionSettings: ()=>deleteActionSettings
|
|
30
30
|
});
|
|
31
|
+
const schema_namespaceObject = require("@tachybase/schema");
|
|
31
32
|
const index_js_namespaceObject = require("../../../application/index.js");
|
|
32
33
|
const SchemaSettings_js_namespaceObject = require("../../../application/schema-settings/SchemaSettings.js");
|
|
33
34
|
const external_collection_manager_index_js_namespaceObject = require("../../../collection-manager/index.js");
|
|
@@ -60,6 +61,15 @@ const deleteActionSettings = new SchemaSettings_js_namespaceObject.SchemaSetting
|
|
|
60
61
|
name: 'secondConFirm',
|
|
61
62
|
Component: Action_Designer_js_namespaceObject.SecondConFirm
|
|
62
63
|
},
|
|
64
|
+
{
|
|
65
|
+
name: 'workflowConfig',
|
|
66
|
+
Component: Action_Designer_js_namespaceObject.WorkflowConfig,
|
|
67
|
+
useVisible () {
|
|
68
|
+
var _fieldSchema_xactionsettings;
|
|
69
|
+
const fieldSchema = (0, schema_namespaceObject.useFieldSchema)();
|
|
70
|
+
return (0, schema_namespaceObject.isValid)(null == fieldSchema ? void 0 : null === (_fieldSchema_xactionsettings = fieldSchema['x-action-settings']) || void 0 === _fieldSchema_xactionsettings ? void 0 : _fieldSchema_xactionsettings.triggerWorkflows);
|
|
71
|
+
}
|
|
72
|
+
},
|
|
63
73
|
{
|
|
64
74
|
name: 'delete',
|
|
65
75
|
type: 'remove'
|
|
@@ -294,7 +294,7 @@ const FilterItemCustomSettings = new SchemaSettings_js_namespaceObject.SchemaSet
|
|
|
294
294
|
}
|
|
295
295
|
},
|
|
296
296
|
onSubmit (param) {
|
|
297
|
-
let { default: { value } } = param;
|
|
297
|
+
let { default: { value = null } } = param;
|
|
298
298
|
field.setValue(value);
|
|
299
299
|
fieldSchema['default'] = value;
|
|
300
300
|
fieldSchema['x-component-props']['defaultValue'] = value;
|