@tachybase/client 1.3.18 → 1.3.20
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/application/CustomRouterContextProvider.mjs +1 -2
- package/es/application/components/AppComponent.mjs +1 -3
- package/es/block-provider/hooks/index.mjs +1 -1
- package/es/built-in/acl/Configuration/schemas/scopes.mjs +4 -5
- package/es/built-in/dynamic-page/DynamicPage.mjs +16 -33
- package/es/built-in/dynamic-page/utils.d.ts +1 -2
- package/es/built-in/dynamic-page/utils.mjs +0 -3
- package/es/built-in/page-style/CustomAdminHeader.mjs +2 -2
- package/es/built-in/page-style/PageStyle.provider.d.ts +2 -7
- package/es/built-in/page-style/PageStyle.provider.mjs +3 -8
- package/es/built-in/page-style/TabContent.mjs +5 -7
- package/es/built-in/page-style/usePageStyle.d.ts +1 -1
- package/es/built-in/page-style/usePageStyle.mjs +1 -1
- package/es/built-in/page-style/useTabSettings.d.ts +3 -4
- package/es/built-in/page-style/useTabSettings.mjs +7 -8
- package/es/built-in/quick-access/PopupActionSchemaInitializerItem.mjs +2 -2
- package/es/collection-manager/Configuration/components/Summary.mjs +3 -3
- package/es/flag-provider/FlagProvider.d.ts +1 -0
- package/es/flag-provider/hooks/useFlag.mjs +1 -1
- package/es/modules/actions/add-child/CreateChildInitializer.mjs +2 -2
- package/es/modules/actions/add-new/CreateActionInitializer.mjs +2 -2
- package/es/modules/actions/add-record/CustomizeAddRecordActionInitializer.mjs +2 -2
- package/es/modules/actions/associate/AssociateActionInitializer.mjs +1 -2
- package/es/modules/actions/submit/createSubmitActionSettings.mjs +3 -6
- package/es/modules/actions/view-edit-popup/PopupActionInitializer.mjs +2 -2
- package/es/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +2 -2
- package/es/modules/actions/view-edit-popup/ViewActionInitializer.mjs +2 -2
- package/es/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.mjs +2 -2
- package/es/modules/fields/component/Picker/recordPickerComponentFieldSettings.mjs +2 -2
- package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +2 -2
- package/es/schema-component/antd/action/Action.Container.mjs +5 -26
- package/es/schema-component/antd/action/Action.Designer.mjs +3 -14
- package/es/schema-component/antd/action/Action.Page.mjs +1 -1
- package/es/schema-component/antd/action/Action.mjs +11 -56
- package/es/schema-component/antd/action/context.d.ts +1 -9
- package/es/schema-component/antd/action/context.mjs +1 -10
- package/es/schema-component/antd/action/hooks.d.ts +1 -2
- package/es/schema-component/antd/action/hooks.mjs +2 -2
- package/es/schema-component/antd/association-field/FileManager.mjs +2 -2
- package/es/schema-component/antd/association-field/InternalDrawerSubTable.mjs +2 -2
- package/es/schema-component/antd/association-field/InternalPicker.mjs +2 -2
- package/es/schema-component/antd/association-field/InternalTag.mjs +2 -2
- package/es/schema-component/antd/association-field/InternalViewer.mjs +2 -2
- package/es/schema-component/antd/association-field/SubTable.mjs +2 -2
- package/es/schema-component/antd/color-select/ColorSelect.mjs +3 -3
- package/es/schema-component/antd/date-picker/util.d.ts +13 -0
- package/es/schema-component/antd/date-picker/util.mjs +14 -1
- package/es/schema-component/antd/form-item/FormItem.Settings.mjs +2 -3
- package/es/schema-component/antd/markdown/Markdown.mjs +4 -4
- package/es/schema-component/antd/page/Page.mjs +22 -27
- package/es/schema-component/antd/password/utils.d.ts +1 -1
- package/es/schema-component/antd/record-picker/InputRecordPicker.mjs +2 -2
- package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.mjs +2 -2
- package/es/schema-initializer/items/SelectActionInitializer.mjs +2 -2
- package/es/schema-items/OpenModeSchemaItems.mjs +16 -37
- package/es/schema-settings/SchemaSettingsDefaultValue.mjs +3 -2
- package/es/schema-settings/VariableInput/hooks/index.d.ts +1 -0
- package/es/schema-settings/VariableInput/hooks/index.mjs +1 -0
- package/es/schema-settings/VariableInput/hooks/useExactDateVariable.d.ts +93 -0
- package/es/schema-settings/VariableInput/hooks/useExactDateVariable.mjs +75 -0
- package/es/schema-settings/VariableInput/hooks/useVariableOptions.mjs +11 -1
- package/es/schema-templates/schemas/uiSchemaTemplates.mjs +1 -1
- package/es/user/ChangePassword.mjs +109 -6
- package/es/user/index.d.ts +1 -0
- package/es/user/index.mjs +2 -0
- package/es/variables/hooks/useBuiltinVariables.mjs +8 -2
- package/lib/application/CustomRouterContextProvider.js +1 -2
- package/lib/application/components/AppComponent.js +1 -3
- package/lib/block-provider/hooks/index.js +7 -7
- package/lib/built-in/acl/Configuration/MenuItemsProvider.js +2 -2
- package/lib/built-in/acl/Configuration/schemas/scopes.js +3 -4
- package/lib/built-in/attachment-preview/previewers/file-sheet.js +2 -2
- package/lib/built-in/dynamic-page/DynamicPage.js +14 -31
- package/lib/built-in/dynamic-page/utils.js +0 -3
- package/lib/built-in/page-style/CustomAdminHeader.js +2 -2
- package/lib/built-in/page-style/PageStyle.provider.js +2 -10
- package/lib/built-in/page-style/TabContent.js +4 -6
- package/lib/built-in/page-style/usePageStyle.js +1 -1
- package/lib/built-in/page-style/useTabSettings.js +7 -8
- package/lib/built-in/pm/index.js +1 -1
- package/lib/built-in/quick-access/PopupActionSchemaInitializerItem.js +1 -1
- package/lib/collection-manager/Configuration/components/Summary.js +3 -3
- package/lib/collection-manager/index.js +17 -17
- package/lib/flag-provider/hooks/useFlag.js +1 -1
- package/lib/icon/Icon.js +2 -2
- package/lib/locale/en_US.js +0 -1
- package/lib/locale/zh-CN.js +5 -0
- package/lib/modules/actions/add-child/CreateChildInitializer.js +2 -2
- package/lib/modules/actions/add-new/CreateActionInitializer.js +2 -2
- package/lib/modules/actions/add-record/CustomizeAddRecordActionInitializer.js +2 -2
- package/lib/modules/actions/associate/AssociateActionInitializer.js +1 -2
- package/lib/modules/actions/submit/createSubmitActionSettings.js +2 -5
- package/lib/modules/actions/view-edit-popup/PopupActionInitializer.js +2 -2
- package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.js +2 -2
- package/lib/modules/actions/view-edit-popup/ViewActionInitializer.js +2 -2
- package/lib/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.js +1 -1
- package/lib/modules/fields/component/Picker/recordPickerComponentFieldSettings.js +1 -1
- package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +1 -1
- package/lib/schema-component/antd/action/Action.Container.js +6 -27
- package/lib/schema-component/antd/action/Action.Designer.js +2 -13
- package/lib/schema-component/antd/action/Action.Modal.js +2 -2
- package/lib/schema-component/antd/action/Action.Page.js +1 -1
- package/lib/schema-component/antd/action/Action.Sheet.js +2 -2
- package/lib/schema-component/antd/action/Action.js +10 -55
- package/lib/schema-component/antd/action/context.js +1 -13
- package/lib/schema-component/antd/action/hooks.js +1 -1
- package/lib/schema-component/antd/association-field/FileManager.js +1 -1
- package/lib/schema-component/antd/association-field/InternalDrawerSubTable.js +1 -1
- package/lib/schema-component/antd/association-field/InternalPicker.js +1 -1
- package/lib/schema-component/antd/association-field/InternalTag.js +1 -1
- package/lib/schema-component/antd/association-field/InternalViewer.js +1 -1
- package/lib/schema-component/antd/association-field/SubTable.js +1 -1
- package/lib/schema-component/antd/color-select/ColorSelect.js +4 -4
- package/lib/schema-component/antd/date-picker/util.js +16 -0
- package/lib/schema-component/antd/form-item/FormItem.Settings.js +2 -3
- package/lib/schema-component/antd/form-tab/index.js +2 -2
- package/lib/schema-component/antd/form-v2/index.js +2 -2
- package/lib/schema-component/antd/markdown/Markdown.js +5 -5
- package/lib/schema-component/antd/page/Page.js +21 -26
- package/lib/schema-component/antd/record-picker/InputRecordPicker.js +1 -1
- package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +1 -1
- package/lib/schema-component/antd/scroll-area/ScrollArea.js +2 -2
- package/lib/schema-component/antd/table-v2/index.js +3 -3
- package/lib/schema-component/antd/upload/shared.js +4 -4
- package/lib/schema-initializer/items/SelectActionInitializer.js +2 -2
- package/lib/schema-items/OpenModeSchemaItems.js +15 -36
- package/lib/schema-settings/SchemaSettingsDefaultValue.js +3 -2
- package/lib/schema-settings/VariableInput/hooks/index.js +9 -0
- package/lib/schema-settings/VariableInput/hooks/useExactDateVariable.js +112 -0
- package/lib/schema-settings/VariableInput/hooks/useVariableOptions.js +11 -1
- package/lib/schema-templates/schemas/uiSchemaTemplates.js +1 -1
- package/lib/user/ChangePassword.js +118 -5
- package/lib/user/index.js +24 -4
- package/lib/variables/VariablesProvider.js +2 -2
- package/lib/variables/hooks/useBuiltinVariables.js +7 -1
- package/package.json +10 -10
- package/es/built-in/dynamic-page/DynamicPage.context.d.ts +0 -0
- package/es/built-in/dynamic-page/DynamicPage.context.mjs +0 -0
- package/es/built-in/dynamic-page/DynamicPage.style.d.ts +0 -3
- package/es/built-in/dynamic-page/DynamicPage.style.mjs +0 -26
- package/es/built-in/dynamic-page/PageNavBar.d.ts +0 -3
- package/es/built-in/dynamic-page/PageNavBar.mjs +0 -47
- package/es/built-in/dynamic-page/PageNavBar.style.d.ts +0 -3
- package/es/built-in/dynamic-page/PageNavBar.style.mjs +0 -25
- package/lib/built-in/dynamic-page/DynamicPage.context.js +0 -5
- package/lib/built-in/dynamic-page/DynamicPage.style.js +0 -60
- package/lib/built-in/dynamic-page/PageNavBar.js +0 -81
- package/lib/built-in/dynamic-page/PageNavBar.style.js +0 -59
|
@@ -59,7 +59,6 @@ var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_
|
|
|
59
59
|
const external_lodash_namespaceObject = require("lodash");
|
|
60
60
|
var external_lodash_default = /*#__PURE__*/ __webpack_require__.n(external_lodash_namespaceObject);
|
|
61
61
|
const external_react_router_dom_namespaceObject = require("react-router-dom");
|
|
62
|
-
const index_js_namespaceObject = require("../schema-component/index.js");
|
|
63
62
|
const NavigateNoUpdateContext = /*#__PURE__*/ external_react_default().createContext(null);
|
|
64
63
|
NavigateNoUpdateContext.displayName = 'NavigateNoUpdateContext';
|
|
65
64
|
const LocationNoUpdateContext = /*#__PURE__*/ external_react_default().createContext(null);
|
|
@@ -95,7 +94,7 @@ const IsSubPageClosedByPageMenuProvider = (param)=>{
|
|
|
95
94
|
const [fieldSchema, setFieldSchema] = (0, external_react_namespaceObject.useState)(null);
|
|
96
95
|
const isSubPageClosedByPageMenu = (0, external_react_namespaceObject.useCallback)(()=>{
|
|
97
96
|
var _fieldSchema_xcomponentprops, _prevParamsRef_current_;
|
|
98
|
-
const result = external_lodash_default().isEmpty(params['*']) && (null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops.openMode) ===
|
|
97
|
+
const result = external_lodash_default().isEmpty(params['*']) && (null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops.openMode) === 'page' && !!(null == (_prevParamsRef_current_ = prevParamsRef.current['*']) ? void 0 : _prevParamsRef_current_.includes(fieldSchema['x-uid']));
|
|
99
98
|
prevParamsRef.current = params;
|
|
100
99
|
return result;
|
|
101
100
|
}, [
|
|
@@ -74,9 +74,7 @@ const AppComponent = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
74
74
|
app.renderComponent('AppMain')
|
|
75
75
|
]
|
|
76
76
|
}),
|
|
77
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_click_to_react_component_namespaceObject.ClickToComponent, {
|
|
78
|
-
editor: process.env.REACT_APP_CLICK_TO_COMPONENT_EDITOR || 'vscode'
|
|
79
|
-
})
|
|
77
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_click_to_react_component_namespaceObject.ClickToComponent, {})
|
|
80
78
|
]
|
|
81
79
|
});
|
|
82
80
|
}, {
|
|
@@ -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) {
|
|
@@ -182,7 +182,7 @@ var __webpack_exports__ = {};
|
|
|
182
182
|
var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("react-i18next");
|
|
183
183
|
var react_router_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("react-router-dom");
|
|
184
184
|
var react_to_print__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("react-to-print");
|
|
185
|
-
var ___WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("
|
|
185
|
+
var ___WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("../..");
|
|
186
186
|
var _api_client__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../../api-client");
|
|
187
187
|
var _built_in_dynamic_page_utils__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../../built-in/dynamic-page/utils");
|
|
188
188
|
var _collection_manager__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../../collection-manager");
|
|
@@ -214,6 +214,7 @@ var __webpack_exports__ = {};
|
|
|
214
214
|
"useInsertSchema",
|
|
215
215
|
"getAssociationPath",
|
|
216
216
|
"useAssociationNames",
|
|
217
|
+
"default",
|
|
217
218
|
"getBeforeWorkflows",
|
|
218
219
|
"useCustomizeRequestActionProps",
|
|
219
220
|
"getFormValues",
|
|
@@ -225,7 +226,6 @@ var __webpack_exports__ = {};
|
|
|
225
226
|
"useAssociationCreateActionProps",
|
|
226
227
|
"useRefreshActionProps",
|
|
227
228
|
"useUpdateActionProps",
|
|
228
|
-
"default",
|
|
229
229
|
"useResetBlockActionProps",
|
|
230
230
|
"useDestroyActionProps",
|
|
231
231
|
"useOptionalFieldList",
|
|
@@ -250,6 +250,7 @@ var __webpack_exports__ = {};
|
|
|
250
250
|
"useInsertSchema",
|
|
251
251
|
"getAssociationPath",
|
|
252
252
|
"useAssociationNames",
|
|
253
|
+
"default",
|
|
253
254
|
"getBeforeWorkflows",
|
|
254
255
|
"useCustomizeRequestActionProps",
|
|
255
256
|
"getFormValues",
|
|
@@ -261,7 +262,6 @@ var __webpack_exports__ = {};
|
|
|
261
262
|
"useAssociationCreateActionProps",
|
|
262
263
|
"useRefreshActionProps",
|
|
263
264
|
"useUpdateActionProps",
|
|
264
|
-
"default",
|
|
265
265
|
"useResetBlockActionProps",
|
|
266
266
|
"useDestroyActionProps",
|
|
267
267
|
"useOptionalFieldList",
|
|
@@ -286,6 +286,7 @@ var __webpack_exports__ = {};
|
|
|
286
286
|
"useInsertSchema",
|
|
287
287
|
"getAssociationPath",
|
|
288
288
|
"useAssociationNames",
|
|
289
|
+
"default",
|
|
289
290
|
"getBeforeWorkflows",
|
|
290
291
|
"useCustomizeRequestActionProps",
|
|
291
292
|
"getFormValues",
|
|
@@ -297,7 +298,6 @@ var __webpack_exports__ = {};
|
|
|
297
298
|
"useAssociationCreateActionProps",
|
|
298
299
|
"useRefreshActionProps",
|
|
299
300
|
"useUpdateActionProps",
|
|
300
|
-
"default",
|
|
301
301
|
"useResetBlockActionProps",
|
|
302
302
|
"useDestroyActionProps",
|
|
303
303
|
"useOptionalFieldList",
|
|
@@ -322,6 +322,7 @@ var __webpack_exports__ = {};
|
|
|
322
322
|
"useInsertSchema",
|
|
323
323
|
"getAssociationPath",
|
|
324
324
|
"useAssociationNames",
|
|
325
|
+
"default",
|
|
325
326
|
"getBeforeWorkflows",
|
|
326
327
|
"useCustomizeRequestActionProps",
|
|
327
328
|
"getFormValues",
|
|
@@ -333,7 +334,6 @@ var __webpack_exports__ = {};
|
|
|
333
334
|
"useAssociationCreateActionProps",
|
|
334
335
|
"useRefreshActionProps",
|
|
335
336
|
"useUpdateActionProps",
|
|
336
|
-
"default",
|
|
337
337
|
"useResetBlockActionProps",
|
|
338
338
|
"useDestroyActionProps",
|
|
339
339
|
"useOptionalFieldList",
|
|
@@ -525,7 +525,7 @@ var __webpack_exports__ = {};
|
|
|
525
525
|
if (s['x-component'] === pageDetailsViewer) return s;
|
|
526
526
|
return buf;
|
|
527
527
|
});
|
|
528
|
-
if (targetSchema) navigate("
|
|
528
|
+
if (targetSchema) navigate("../".concat(targetSchema['x-uid'], "/").concat(_built_in_dynamic_page_utils__WEBPACK_IMPORTED_MODULE_13__.PathHandler.getInstance().toWildcardPath({
|
|
529
529
|
collection: collection.name,
|
|
530
530
|
filterByTk
|
|
531
531
|
})));
|
|
@@ -25,8 +25,8 @@ var __webpack_exports__ = {};
|
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
MenuItemsProvider: ()=>MenuItemsProvider,
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
useMenuItems: ()=>useMenuItems,
|
|
29
|
+
toItems: ()=>toItems
|
|
30
30
|
});
|
|
31
31
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
32
32
|
const external_react_namespaceObject = require("react");
|
|
@@ -56,8 +56,7 @@ const useFormBlockProps = ()=>{
|
|
|
56
56
|
resourceName: name
|
|
57
57
|
});
|
|
58
58
|
}, [
|
|
59
|
-
name
|
|
60
|
-
ctx.form
|
|
59
|
+
name
|
|
61
60
|
]);
|
|
62
61
|
return {
|
|
63
62
|
form: ctx.form
|
|
@@ -134,7 +133,7 @@ const scopesSchema = {
|
|
|
134
133
|
'x-component': 'Action',
|
|
135
134
|
'x-component-props': {
|
|
136
135
|
icon: 'PlusOutlined',
|
|
137
|
-
openMode:
|
|
136
|
+
openMode: 'drawer',
|
|
138
137
|
type: 'primary'
|
|
139
138
|
},
|
|
140
139
|
properties: {
|
|
@@ -258,7 +257,7 @@ const scopesSchema = {
|
|
|
258
257
|
'x-decorator': 'ACLActionProvider',
|
|
259
258
|
'x-component': 'Action.Link',
|
|
260
259
|
'x-component-props': {
|
|
261
|
-
openMode:
|
|
260
|
+
openMode: 'drawer',
|
|
262
261
|
icon: 'EditOutlined'
|
|
263
262
|
},
|
|
264
263
|
properties: {
|
|
@@ -33,9 +33,9 @@ var __webpack_require__ = {};
|
|
|
33
33
|
var __webpack_exports__ = {};
|
|
34
34
|
__webpack_require__.r(__webpack_exports__);
|
|
35
35
|
__webpack_require__.d(__webpack_exports__, {
|
|
36
|
-
fileXLS: ()=>fileXLS,
|
|
37
36
|
fileXLSX: ()=>fileXLSX,
|
|
38
|
-
fileCSV: ()=>fileCSV
|
|
37
|
+
fileCSV: ()=>fileCSV,
|
|
38
|
+
fileXLS: ()=>fileXLS
|
|
39
39
|
});
|
|
40
40
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
41
41
|
const external_react_namespaceObject = require("react");
|
|
@@ -27,56 +27,39 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
DynamicPage: ()=>DynamicPage
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
|
|
30
|
+
require("react");
|
|
31
31
|
const external_react_router_dom_namespaceObject = require("react-router-dom");
|
|
32
32
|
const external_index_js_namespaceObject = require("../index.js");
|
|
33
33
|
const index_js_namespaceObject = require("../../data-source/index.js");
|
|
34
34
|
const external_record_provider_index_js_namespaceObject = require("../../record-provider/index.js");
|
|
35
35
|
const external_schema_component_index_js_namespaceObject = require("../../schema-component/index.js");
|
|
36
|
-
const external_DynamicPage_style_js_namespaceObject = require("./DynamicPage.style.js");
|
|
37
|
-
const external_PageNavBar_js_namespaceObject = require("./PageNavBar.js");
|
|
38
36
|
const external_utils_js_namespaceObject = require("./utils.js");
|
|
39
37
|
const DynamicPage = ()=>{
|
|
40
|
-
const { styles } = (0, external_DynamicPage_style_js_namespaceObject.useStyles)();
|
|
41
38
|
const params = (0, external_react_router_dom_namespaceObject.useParams)();
|
|
42
|
-
|
|
43
|
-
if (!pathParams) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_component_index_js_namespaceObject.RemoteSchemaComponent, {
|
|
39
|
+
if (!params['*']) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_component_index_js_namespaceObject.RemoteSchemaComponent, {
|
|
44
40
|
uid: params.name,
|
|
45
41
|
onlyRenderProperties: true
|
|
46
42
|
});
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
43
|
+
{
|
|
44
|
+
const path = external_utils_js_namespaceObject.PathHandler.getInstance().parse(params['*'], params.name);
|
|
45
|
+
if (!path) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_index_js_namespaceObject.AppNotFound, {});
|
|
46
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.DataBlockProvider, {
|
|
51
47
|
params: {
|
|
52
|
-
filterByTk:
|
|
48
|
+
filterByTk: path.filterByTk
|
|
53
49
|
},
|
|
54
50
|
action: "get",
|
|
55
|
-
collection:
|
|
51
|
+
collection: path.collection,
|
|
56
52
|
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_record_provider_index_js_namespaceObject.RecordContext_deprecated.Provider, {
|
|
57
53
|
value: {
|
|
58
|
-
id:
|
|
54
|
+
id: path.filterByTk
|
|
59
55
|
},
|
|
60
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
},
|
|
64
|
-
children: [
|
|
65
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_PageNavBar_js_namespaceObject.PageNavBar, {
|
|
66
|
-
uid: pathParams.sub
|
|
67
|
-
}),
|
|
68
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Card, {
|
|
69
|
-
className: "page-content",
|
|
70
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_component_index_js_namespaceObject.RemoteSchemaComponent, {
|
|
71
|
-
uid: pathParams.sub,
|
|
72
|
-
onlyRenderProperties: true
|
|
73
|
-
})
|
|
74
|
-
})
|
|
75
|
-
]
|
|
56
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_component_index_js_namespaceObject.RemoteSchemaComponent, {
|
|
57
|
+
uid: params.name,
|
|
58
|
+
onlyRenderProperties: true
|
|
76
59
|
})
|
|
77
60
|
})
|
|
78
|
-
})
|
|
79
|
-
}
|
|
61
|
+
});
|
|
62
|
+
}
|
|
80
63
|
};
|
|
81
64
|
exports.DynamicPage = __webpack_exports__.DynamicPage;
|
|
82
65
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
@@ -27,12 +27,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
27
27
|
CustomAdminHeader: ()=>CustomAdminHeader
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
|
|
30
|
+
require("react");
|
|
31
31
|
const external_TabHeader_js_namespaceObject = require("./TabHeader.js");
|
|
32
32
|
const external_usePageStyle_js_namespaceObject = require("./usePageStyle.js");
|
|
33
33
|
const CustomAdminHeader = ()=>{
|
|
34
34
|
const pageStyle = (0, external_usePageStyle_js_namespaceObject.usePageStyle)();
|
|
35
|
-
return
|
|
35
|
+
return 'tab' === pageStyle ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_TabHeader_js_namespaceObject.TabHeader, {}) : null;
|
|
36
36
|
};
|
|
37
37
|
exports.CustomAdminHeader = __webpack_exports__.CustomAdminHeader;
|
|
38
38
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
@@ -24,7 +24,6 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
PageStyle: ()=>PageStyle_provider_PageStyle,
|
|
28
27
|
PageStyleContext: ()=>PageStyleContext,
|
|
29
28
|
PageStyleProvider: ()=>PageStyleProvider
|
|
30
29
|
});
|
|
@@ -32,13 +31,8 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
32
31
|
const external_react_namespaceObject = require("react");
|
|
33
32
|
const index_js_namespaceObject = require("../../user/index.js");
|
|
34
33
|
const external_useTabSettings_js_namespaceObject = require("./useTabSettings.js");
|
|
35
|
-
var PageStyle_provider_PageStyle = /*#__PURE__*/ function(PageStyle) {
|
|
36
|
-
PageStyle["CLASSICAL"] = "classical";
|
|
37
|
-
PageStyle["TAB_STYLE"] = "tab-style";
|
|
38
|
-
return PageStyle;
|
|
39
|
-
}({});
|
|
40
34
|
const PageStyleContext = /*#__PURE__*/ (0, external_react_namespaceObject.createContext)({
|
|
41
|
-
|
|
35
|
+
style: 'classical'
|
|
42
36
|
});
|
|
43
37
|
const PageStyleProvider = (param)=>{
|
|
44
38
|
let { children } = param;
|
|
@@ -57,18 +51,16 @@ const PageStyleProvider = (param)=>{
|
|
|
57
51
|
]);
|
|
58
52
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(PageStyleContext.Provider, {
|
|
59
53
|
value: {
|
|
60
|
-
|
|
54
|
+
style: (null == currentUser ? void 0 : null == (_currentUser_data = currentUser.data) ? void 0 : null == (_currentUser_data_data = _currentUser_data.data) ? void 0 : null == (_currentUser_data_data_systemSettings = _currentUser_data_data.systemSettings) ? void 0 : _currentUser_data_data_systemSettings.pageStyle) || 'classical',
|
|
61
55
|
items,
|
|
62
56
|
setItems
|
|
63
57
|
},
|
|
64
58
|
children: children
|
|
65
59
|
});
|
|
66
60
|
};
|
|
67
|
-
exports.PageStyle = __webpack_exports__.PageStyle;
|
|
68
61
|
exports.PageStyleContext = __webpack_exports__.PageStyleContext;
|
|
69
62
|
exports.PageStyleProvider = __webpack_exports__.PageStyleProvider;
|
|
70
63
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
71
|
-
"PageStyle",
|
|
72
64
|
"PageStyleContext",
|
|
73
65
|
"PageStyleProvider"
|
|
74
66
|
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
@@ -32,7 +32,6 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
|
32
32
|
const external_react_namespaceObject = require("react");
|
|
33
33
|
const css_namespaceObject = require("@emotion/css");
|
|
34
34
|
const external_react_router_dom_namespaceObject = require("react-router-dom");
|
|
35
|
-
const external_index_js_namespaceObject = require("../../index.js");
|
|
36
35
|
const index_js_namespaceObject = require("../document-title/index.js");
|
|
37
36
|
const external_PageStyle_provider_js_namespaceObject = require("./PageStyle.provider.js");
|
|
38
37
|
const external_usePageStyle_js_namespaceObject = require("./usePageStyle.js");
|
|
@@ -61,21 +60,20 @@ const TabContentInternal = (param)=>{
|
|
|
61
60
|
}, item.key));
|
|
62
61
|
};
|
|
63
62
|
const TabContent = ()=>{
|
|
64
|
-
const { t } = (0, external_index_js_namespaceObject.useTranslation)();
|
|
65
63
|
const { title, setTitle } = (0, index_js_namespaceObject.useDocumentTitle)();
|
|
66
64
|
const location = (0, external_react_router_dom_namespaceObject.useLocation)();
|
|
67
65
|
const { items, setItems } = (0, external_react_namespaceObject.useContext)(external_PageStyle_provider_js_namespaceObject.PageStyleContext);
|
|
68
66
|
const targetKey = location.pathname;
|
|
69
67
|
const outlet = (0, external_react_router_dom_namespaceObject.useOutlet)();
|
|
70
68
|
(0, external_react_namespaceObject.useEffect)(()=>{
|
|
71
|
-
if (targetKey) {
|
|
69
|
+
if (targetKey && title) {
|
|
72
70
|
const targetItem = items.find((value)=>value.key === targetKey);
|
|
73
|
-
if (targetItem) setTitle(
|
|
71
|
+
if (targetItem) setTitle(targetItem.label);
|
|
74
72
|
else setItems([
|
|
75
73
|
...items,
|
|
76
74
|
{
|
|
77
75
|
key: targetKey,
|
|
78
|
-
label: title
|
|
76
|
+
label: title,
|
|
79
77
|
children: outlet
|
|
80
78
|
}
|
|
81
79
|
]);
|
|
@@ -92,7 +90,7 @@ const TabContent = ()=>{
|
|
|
92
90
|
const CustomAdminContent = ()=>{
|
|
93
91
|
const params = (0, external_react_router_dom_namespaceObject.useParams)();
|
|
94
92
|
const pageStyle = (0, external_usePageStyle_js_namespaceObject.usePageStyle)();
|
|
95
|
-
return params.name &&
|
|
93
|
+
return params.name && 'tab' === pageStyle ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(TabContent, {}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_react_router_dom_namespaceObject.Outlet, {});
|
|
96
94
|
};
|
|
97
95
|
exports.CustomAdminContent = __webpack_exports__.CustomAdminContent;
|
|
98
96
|
exports.TabContent = __webpack_exports__.TabContent;
|
|
@@ -28,7 +28,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
28
28
|
});
|
|
29
29
|
const external_react_namespaceObject = require("react");
|
|
30
30
|
const external_PageStyle_provider_js_namespaceObject = require("./PageStyle.provider.js");
|
|
31
|
-
const usePageStyle = ()=>(0, external_react_namespaceObject.useContext)(external_PageStyle_provider_js_namespaceObject.PageStyleContext).
|
|
31
|
+
const usePageStyle = ()=>(0, external_react_namespaceObject.useContext)(external_PageStyle_provider_js_namespaceObject.PageStyleContext).style;
|
|
32
32
|
exports.usePageStyle = __webpack_exports__.usePageStyle;
|
|
33
33
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
34
34
|
"usePageStyle"
|
|
@@ -35,10 +35,9 @@ const external_react_i18next_namespaceObject = require("react-i18next");
|
|
|
35
35
|
const index_js_namespaceObject = require("../../api-client/index.js");
|
|
36
36
|
const external_common_index_js_namespaceObject = require("../../common/index.js");
|
|
37
37
|
const external_user_index_js_namespaceObject = require("../../user/index.js");
|
|
38
|
-
const external_PageStyle_provider_js_namespaceObject = require("./PageStyle.provider.js");
|
|
39
38
|
const useTabSettings = ()=>({
|
|
40
|
-
key:
|
|
41
|
-
eventKey:
|
|
39
|
+
key: 'tab',
|
|
40
|
+
eventKey: 'tab',
|
|
42
41
|
label: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Label, {})
|
|
43
42
|
});
|
|
44
43
|
function Label() {
|
|
@@ -48,15 +47,15 @@ function Label() {
|
|
|
48
47
|
const currentUser = (0, external_user_index_js_namespaceObject.useCurrentUserContext)();
|
|
49
48
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_common_index_js_namespaceObject.SelectWithTitle, {
|
|
50
49
|
title: t('Page style'),
|
|
51
|
-
defaultValue: (null == (_currentUser_data_data_systemSettings = currentUser.data.data.systemSettings) ? void 0 : _currentUser_data_data_systemSettings.pageStyle) ||
|
|
50
|
+
defaultValue: (null == (_currentUser_data_data_systemSettings = currentUser.data.data.systemSettings) ? void 0 : _currentUser_data_data_systemSettings.pageStyle) || 'classical',
|
|
52
51
|
options: [
|
|
53
52
|
{
|
|
54
53
|
label: t('classical'),
|
|
55
|
-
value:
|
|
54
|
+
value: 'classical'
|
|
56
55
|
},
|
|
57
56
|
{
|
|
58
57
|
label: t('tabs'),
|
|
59
|
-
value:
|
|
58
|
+
value: 'tab'
|
|
60
59
|
}
|
|
61
60
|
],
|
|
62
61
|
onChange: updateUserPageStyle
|
|
@@ -72,7 +71,7 @@ function useUpdatePageStyleSettings() {
|
|
|
72
71
|
await api.resource('users').updateProfile({
|
|
73
72
|
values: {
|
|
74
73
|
systemSettings: {
|
|
75
|
-
...currentUser.data.data.systemSettings,
|
|
74
|
+
...currentUser.data.data.systemSettings || {},
|
|
76
75
|
pageStyle
|
|
77
76
|
}
|
|
78
77
|
}
|
|
@@ -81,7 +80,7 @@ function useUpdatePageStyleSettings() {
|
|
|
81
80
|
data: {
|
|
82
81
|
...currentUser.data.data,
|
|
83
82
|
systemSettings: {
|
|
84
|
-
...currentUser.data.data.systemSettings,
|
|
83
|
+
...currentUser.data.data.systemSettings || {},
|
|
85
84
|
pageStyle
|
|
86
85
|
}
|
|
87
86
|
}
|
package/lib/built-in/pm/index.js
CHANGED
|
@@ -24,9 +24,9 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
default: ()=>pm,
|
|
28
27
|
PMPlugin: ()=>PMPlugin,
|
|
29
28
|
SettingsCenterDropdown: ()=>SettingsCenterDropdown_js_namespaceObject.SettingsCenterDropdown,
|
|
29
|
+
default: ()=>pm,
|
|
30
30
|
PluginManager: ()=>external_PluginManager_js_namespaceObject.PluginManager,
|
|
31
31
|
AdminSettingsLayout: ()=>AdminSettings_js_namespaceObject.AdminSettingsLayout,
|
|
32
32
|
SettingsCenterContext: ()=>AdminSettings_js_namespaceObject.SettingsCenterContext
|
|
@@ -103,7 +103,7 @@ function QuickAccessPopupActionSchemaInitializerItem(props) {
|
|
|
103
103
|
icon: values.icon,
|
|
104
104
|
iconColor: values.iconColor,
|
|
105
105
|
refreshDataBlockRequest: false,
|
|
106
|
-
openMode:
|
|
106
|
+
openMode: 'drawer'
|
|
107
107
|
},
|
|
108
108
|
properties: {
|
|
109
109
|
drawer: {
|
|
@@ -24,7 +24,7 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
default: ()=>
|
|
27
|
+
default: ()=>Summary
|
|
28
28
|
});
|
|
29
29
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
30
|
const external_react_namespaceObject = require("react");
|
|
@@ -32,7 +32,7 @@ const schema_namespaceObject = require("@tachybase/schema");
|
|
|
32
32
|
const external_antd_namespaceObject = require("antd");
|
|
33
33
|
const external_antd_style_namespaceObject = require("antd-style");
|
|
34
34
|
const index_js_namespaceObject = require("../../../schema-component/index.js");
|
|
35
|
-
const
|
|
35
|
+
const Summary_Summary = (0, schema_namespaceObject.observer)((props)=>{
|
|
36
36
|
const { schema, label } = props;
|
|
37
37
|
const compile = (0, index_js_namespaceObject.useCompile)();
|
|
38
38
|
const token = (0, external_antd_style_namespaceObject.useAntdToken)();
|
|
@@ -85,7 +85,7 @@ const Summary = (0, schema_namespaceObject.observer)((props)=>{
|
|
|
85
85
|
}, {
|
|
86
86
|
displayName: 'Summary'
|
|
87
87
|
});
|
|
88
|
-
const
|
|
88
|
+
const Summary = Summary_Summary;
|
|
89
89
|
exports["default"] = __webpack_exports__["default"];
|
|
90
90
|
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
91
91
|
"default"
|