@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/client",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.20",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -59,26 +59,26 @@
|
|
|
59
59
|
"react-quill": "^2.0.0",
|
|
60
60
|
"react-router": "6.28.1",
|
|
61
61
|
"react-router-dom": "6.28.1",
|
|
62
|
-
"react-svg": "^16.
|
|
62
|
+
"react-svg": "^16.3.0",
|
|
63
63
|
"react-to-print": "^2.15.1",
|
|
64
64
|
"react-transition-group": "^4.4.5",
|
|
65
65
|
"react-zoom-pan-pinch": "^3.6.1",
|
|
66
66
|
"sanitize-html": "2.17.0",
|
|
67
67
|
"use-deep-compare-effect": "^1.8.1",
|
|
68
68
|
"xlsx": "0.18.5",
|
|
69
|
-
"@tachybase/components": "1.3.
|
|
70
|
-
"@tachybase/evaluators": "1.3.
|
|
71
|
-
"@tachybase/requirejs": "1.3.
|
|
72
|
-
"@tachybase/schema": "1.3.
|
|
73
|
-
"@tachybase/
|
|
74
|
-
"@tachybase/
|
|
69
|
+
"@tachybase/components": "1.3.20",
|
|
70
|
+
"@tachybase/evaluators": "1.3.20",
|
|
71
|
+
"@tachybase/requirejs": "1.3.20",
|
|
72
|
+
"@tachybase/schema": "1.3.20",
|
|
73
|
+
"@tachybase/sdk": "1.3.20",
|
|
74
|
+
"@tachybase/utils": "1.3.20"
|
|
75
75
|
},
|
|
76
76
|
"devDependencies": {
|
|
77
77
|
"@testing-library/react": "^16.2.0",
|
|
78
78
|
"@types/flat": "^5.0.5",
|
|
79
|
-
"@types/lodash": "^4.17.
|
|
79
|
+
"@types/lodash": "^4.17.20",
|
|
80
80
|
"@types/markdown-it": "12.2.3",
|
|
81
|
-
"@types/react-big-calendar": "^1.16.
|
|
81
|
+
"@types/react-big-calendar": "^1.16.2"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"react": ">=18.0.0",
|
|
File without changes
|
|
File without changes
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { createStyles } from "antd-style";
|
|
2
|
-
function _tagged_template_literal(strings, raw) {
|
|
3
|
-
if (!raw) raw = strings.slice(0);
|
|
4
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
5
|
-
raw: {
|
|
6
|
-
value: Object.freeze(raw)
|
|
7
|
-
}
|
|
8
|
-
}));
|
|
9
|
-
}
|
|
10
|
-
function _templateObject() {
|
|
11
|
-
const data = _tagged_template_literal([
|
|
12
|
-
"\n display: flex;\n flex-direction: column;\n /* height: 100vh; */\n .page-content {\n /* height: 90%; */\n margin: ",
|
|
13
|
-
"px;\n overflow: hidden;\n\n .ant-card-body {\n position: relative;\n height: 90vh;\n overflow: hidden;\n .ant-formily-layout {\n height: 100%;\n .ant-tb-grid {\n height: 70vh;\n overflow-x: hidden;\n overflow-y: scroll;\n margin-bottom: 200px;\n }\n }\n }\n }\n "
|
|
14
|
-
]);
|
|
15
|
-
_templateObject = function() {
|
|
16
|
-
return data;
|
|
17
|
-
};
|
|
18
|
-
return data;
|
|
19
|
-
}
|
|
20
|
-
const useStyles = createStyles((param)=>{
|
|
21
|
-
let { css, token } = param;
|
|
22
|
-
return {
|
|
23
|
-
'dynamic-page': css(_templateObject(), token.paddingContentHorizontal)
|
|
24
|
-
};
|
|
25
|
-
});
|
|
26
|
-
export { useStyles };
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo } from "react";
|
|
3
|
-
import { ArrowLeftOutlined } from "@ant-design/icons";
|
|
4
|
-
import { Typography } from "antd";
|
|
5
|
-
import { useNavigate } from "react-router-dom";
|
|
6
|
-
import { useRequest } from "../../api-client/index.mjs";
|
|
7
|
-
import { useCompile } from "../../schema-component/index.mjs";
|
|
8
|
-
import { useDocumentTitle } from "../document-title/index.mjs";
|
|
9
|
-
import { useStyles } from "./PageNavBar.style.mjs";
|
|
10
|
-
const { Title } = Typography;
|
|
11
|
-
const PageNavBar = (param)=>{
|
|
12
|
-
let { uid } = param;
|
|
13
|
-
var _data_data;
|
|
14
|
-
const compile = useCompile();
|
|
15
|
-
const navigate = useNavigate();
|
|
16
|
-
const { data } = useRequest({
|
|
17
|
-
url: "/uiSchemas:getJsonSchema/".concat(uid)
|
|
18
|
-
});
|
|
19
|
-
const currentTitle = null == data ? void 0 : null == (_data_data = data.data) ? void 0 : _data_data.title;
|
|
20
|
-
const { styles } = useStyles();
|
|
21
|
-
const { title: documentTitle } = useDocumentTitle();
|
|
22
|
-
const title = useMemo(()=>compile(currentTitle || documentTitle), [
|
|
23
|
-
currentTitle,
|
|
24
|
-
documentTitle
|
|
25
|
-
]);
|
|
26
|
-
const handleBack = ()=>{
|
|
27
|
-
navigate(-1);
|
|
28
|
-
};
|
|
29
|
-
return /*#__PURE__*/ jsx("div", {
|
|
30
|
-
className: styles['page-nav-bar'],
|
|
31
|
-
children: /*#__PURE__*/ jsxs("div", {
|
|
32
|
-
className: "nav-title",
|
|
33
|
-
onClick: handleBack,
|
|
34
|
-
children: [
|
|
35
|
-
/*#__PURE__*/ jsx(ArrowLeftOutlined, {}),
|
|
36
|
-
/*#__PURE__*/ jsx(Title, {
|
|
37
|
-
level: 4,
|
|
38
|
-
style: {
|
|
39
|
-
margin: 0
|
|
40
|
-
},
|
|
41
|
-
children: title
|
|
42
|
-
})
|
|
43
|
-
]
|
|
44
|
-
})
|
|
45
|
-
});
|
|
46
|
-
};
|
|
47
|
-
export { PageNavBar };
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { createStyles } from "antd-style";
|
|
2
|
-
function _tagged_template_literal(strings, raw) {
|
|
3
|
-
if (!raw) raw = strings.slice(0);
|
|
4
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
5
|
-
raw: {
|
|
6
|
-
value: Object.freeze(raw)
|
|
7
|
-
}
|
|
8
|
-
}));
|
|
9
|
-
}
|
|
10
|
-
function _templateObject() {
|
|
11
|
-
const data = _tagged_template_literal([
|
|
12
|
-
"\n position: sticky;\n top: 0;\n z-index: 1000;\n background: #fff;\n padding: 16px 24px;\n border-bottom: 1px solid #f0f0f0;\n\n .nav-title {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 12px;\n font-size: 16px;\n color: #000;\n cursor: pointer;\n }\n "
|
|
13
|
-
]);
|
|
14
|
-
_templateObject = function() {
|
|
15
|
-
return data;
|
|
16
|
-
};
|
|
17
|
-
return data;
|
|
18
|
-
}
|
|
19
|
-
const useStyles = createStyles((param)=>{
|
|
20
|
-
let { css } = param;
|
|
21
|
-
return {
|
|
22
|
-
'page-nav-bar': css(_templateObject())
|
|
23
|
-
};
|
|
24
|
-
});
|
|
25
|
-
export { useStyles };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (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 = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
useStyles: ()=>useStyles
|
|
28
|
-
});
|
|
29
|
-
const external_antd_style_namespaceObject = require("antd-style");
|
|
30
|
-
function _tagged_template_literal(strings, raw) {
|
|
31
|
-
if (!raw) raw = strings.slice(0);
|
|
32
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
33
|
-
raw: {
|
|
34
|
-
value: Object.freeze(raw)
|
|
35
|
-
}
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
function _templateObject() {
|
|
39
|
-
const data = _tagged_template_literal([
|
|
40
|
-
"\n display: flex;\n flex-direction: column;\n /* height: 100vh; */\n .page-content {\n /* height: 90%; */\n margin: ",
|
|
41
|
-
"px;\n overflow: hidden;\n\n .ant-card-body {\n position: relative;\n height: 90vh;\n overflow: hidden;\n .ant-formily-layout {\n height: 100%;\n .ant-tb-grid {\n height: 70vh;\n overflow-x: hidden;\n overflow-y: scroll;\n margin-bottom: 200px;\n }\n }\n }\n }\n "
|
|
42
|
-
]);
|
|
43
|
-
_templateObject = function() {
|
|
44
|
-
return data;
|
|
45
|
-
};
|
|
46
|
-
return data;
|
|
47
|
-
}
|
|
48
|
-
const useStyles = (0, external_antd_style_namespaceObject.createStyles)((param)=>{
|
|
49
|
-
let { css, token } = param;
|
|
50
|
-
return {
|
|
51
|
-
'dynamic-page': css(_templateObject(), token.paddingContentHorizontal)
|
|
52
|
-
};
|
|
53
|
-
});
|
|
54
|
-
exports.useStyles = __webpack_exports__.useStyles;
|
|
55
|
-
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
56
|
-
"useStyles"
|
|
57
|
-
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
58
|
-
Object.defineProperty(exports, '__esModule', {
|
|
59
|
-
value: true
|
|
60
|
-
});
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (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 = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
PageNavBar: ()=>PageNavBar
|
|
28
|
-
});
|
|
29
|
-
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
-
const external_react_namespaceObject = require("react");
|
|
31
|
-
const icons_namespaceObject = require("@ant-design/icons");
|
|
32
|
-
const external_antd_namespaceObject = require("antd");
|
|
33
|
-
const external_react_router_dom_namespaceObject = require("react-router-dom");
|
|
34
|
-
const index_js_namespaceObject = require("../../api-client/index.js");
|
|
35
|
-
const external_schema_component_index_js_namespaceObject = require("../../schema-component/index.js");
|
|
36
|
-
const external_document_title_index_js_namespaceObject = require("../document-title/index.js");
|
|
37
|
-
const external_PageNavBar_style_js_namespaceObject = require("./PageNavBar.style.js");
|
|
38
|
-
const { Title } = external_antd_namespaceObject.Typography;
|
|
39
|
-
const PageNavBar = (param)=>{
|
|
40
|
-
let { uid } = param;
|
|
41
|
-
var _data_data;
|
|
42
|
-
const compile = (0, external_schema_component_index_js_namespaceObject.useCompile)();
|
|
43
|
-
const navigate = (0, external_react_router_dom_namespaceObject.useNavigate)();
|
|
44
|
-
const { data } = (0, index_js_namespaceObject.useRequest)({
|
|
45
|
-
url: "/uiSchemas:getJsonSchema/".concat(uid)
|
|
46
|
-
});
|
|
47
|
-
const currentTitle = null == data ? void 0 : null == (_data_data = data.data) ? void 0 : _data_data.title;
|
|
48
|
-
const { styles } = (0, external_PageNavBar_style_js_namespaceObject.useStyles)();
|
|
49
|
-
const { title: documentTitle } = (0, external_document_title_index_js_namespaceObject.useDocumentTitle)();
|
|
50
|
-
const title = (0, external_react_namespaceObject.useMemo)(()=>compile(currentTitle || documentTitle), [
|
|
51
|
-
currentTitle,
|
|
52
|
-
documentTitle
|
|
53
|
-
]);
|
|
54
|
-
const handleBack = ()=>{
|
|
55
|
-
navigate(-1);
|
|
56
|
-
};
|
|
57
|
-
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
58
|
-
className: styles['page-nav-bar'],
|
|
59
|
-
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
60
|
-
className: "nav-title",
|
|
61
|
-
onClick: handleBack,
|
|
62
|
-
children: [
|
|
63
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.ArrowLeftOutlined, {}),
|
|
64
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Title, {
|
|
65
|
-
level: 4,
|
|
66
|
-
style: {
|
|
67
|
-
margin: 0
|
|
68
|
-
},
|
|
69
|
-
children: title
|
|
70
|
-
})
|
|
71
|
-
]
|
|
72
|
-
})
|
|
73
|
-
});
|
|
74
|
-
};
|
|
75
|
-
exports.PageNavBar = __webpack_exports__.PageNavBar;
|
|
76
|
-
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
77
|
-
"PageNavBar"
|
|
78
|
-
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
79
|
-
Object.defineProperty(exports, '__esModule', {
|
|
80
|
-
value: true
|
|
81
|
-
});
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __webpack_require__ = {};
|
|
3
|
-
(()=>{
|
|
4
|
-
__webpack_require__.d = (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 = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
-
})();
|
|
14
|
-
(()=>{
|
|
15
|
-
__webpack_require__.r = (exports1)=>{
|
|
16
|
-
if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
-
value: 'Module'
|
|
18
|
-
});
|
|
19
|
-
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
-
value: true
|
|
21
|
-
});
|
|
22
|
-
};
|
|
23
|
-
})();
|
|
24
|
-
var __webpack_exports__ = {};
|
|
25
|
-
__webpack_require__.r(__webpack_exports__);
|
|
26
|
-
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
useStyles: ()=>useStyles
|
|
28
|
-
});
|
|
29
|
-
const external_antd_style_namespaceObject = require("antd-style");
|
|
30
|
-
function _tagged_template_literal(strings, raw) {
|
|
31
|
-
if (!raw) raw = strings.slice(0);
|
|
32
|
-
return Object.freeze(Object.defineProperties(strings, {
|
|
33
|
-
raw: {
|
|
34
|
-
value: Object.freeze(raw)
|
|
35
|
-
}
|
|
36
|
-
}));
|
|
37
|
-
}
|
|
38
|
-
function _templateObject() {
|
|
39
|
-
const data = _tagged_template_literal([
|
|
40
|
-
"\n position: sticky;\n top: 0;\n z-index: 1000;\n background: #fff;\n padding: 16px 24px;\n border-bottom: 1px solid #f0f0f0;\n\n .nav-title {\n display: flex;\n flex-direction: row;\n align-items: center;\n gap: 12px;\n font-size: 16px;\n color: #000;\n cursor: pointer;\n }\n "
|
|
41
|
-
]);
|
|
42
|
-
_templateObject = function() {
|
|
43
|
-
return data;
|
|
44
|
-
};
|
|
45
|
-
return data;
|
|
46
|
-
}
|
|
47
|
-
const useStyles = (0, external_antd_style_namespaceObject.createStyles)((param)=>{
|
|
48
|
-
let { css } = param;
|
|
49
|
-
return {
|
|
50
|
-
'page-nav-bar': css(_templateObject())
|
|
51
|
-
};
|
|
52
|
-
});
|
|
53
|
-
exports.useStyles = __webpack_exports__.useStyles;
|
|
54
|
-
for(var __webpack_i__ in __webpack_exports__)if (-1 === [
|
|
55
|
-
"useStyles"
|
|
56
|
-
].indexOf(__webpack_i__)) exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
|
|
57
|
-
Object.defineProperty(exports, '__esModule', {
|
|
58
|
-
value: true
|
|
59
|
-
});
|