@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.
Files changed (148) hide show
  1. package/es/application/CustomRouterContextProvider.mjs +1 -2
  2. package/es/application/components/AppComponent.mjs +1 -3
  3. package/es/block-provider/hooks/index.mjs +1 -1
  4. package/es/built-in/acl/Configuration/schemas/scopes.mjs +4 -5
  5. package/es/built-in/dynamic-page/DynamicPage.mjs +16 -33
  6. package/es/built-in/dynamic-page/utils.d.ts +1 -2
  7. package/es/built-in/dynamic-page/utils.mjs +0 -3
  8. package/es/built-in/page-style/CustomAdminHeader.mjs +2 -2
  9. package/es/built-in/page-style/PageStyle.provider.d.ts +2 -7
  10. package/es/built-in/page-style/PageStyle.provider.mjs +3 -8
  11. package/es/built-in/page-style/TabContent.mjs +5 -7
  12. package/es/built-in/page-style/usePageStyle.d.ts +1 -1
  13. package/es/built-in/page-style/usePageStyle.mjs +1 -1
  14. package/es/built-in/page-style/useTabSettings.d.ts +3 -4
  15. package/es/built-in/page-style/useTabSettings.mjs +7 -8
  16. package/es/built-in/quick-access/PopupActionSchemaInitializerItem.mjs +2 -2
  17. package/es/collection-manager/Configuration/components/Summary.mjs +3 -3
  18. package/es/flag-provider/FlagProvider.d.ts +1 -0
  19. package/es/flag-provider/hooks/useFlag.mjs +1 -1
  20. package/es/modules/actions/add-child/CreateChildInitializer.mjs +2 -2
  21. package/es/modules/actions/add-new/CreateActionInitializer.mjs +2 -2
  22. package/es/modules/actions/add-record/CustomizeAddRecordActionInitializer.mjs +2 -2
  23. package/es/modules/actions/associate/AssociateActionInitializer.mjs +1 -2
  24. package/es/modules/actions/submit/createSubmitActionSettings.mjs +3 -6
  25. package/es/modules/actions/view-edit-popup/PopupActionInitializer.mjs +2 -2
  26. package/es/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +2 -2
  27. package/es/modules/actions/view-edit-popup/ViewActionInitializer.mjs +2 -2
  28. package/es/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.mjs +2 -2
  29. package/es/modules/fields/component/Picker/recordPickerComponentFieldSettings.mjs +2 -2
  30. package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +2 -2
  31. package/es/schema-component/antd/action/Action.Container.mjs +5 -26
  32. package/es/schema-component/antd/action/Action.Designer.mjs +3 -14
  33. package/es/schema-component/antd/action/Action.Page.mjs +1 -1
  34. package/es/schema-component/antd/action/Action.mjs +11 -56
  35. package/es/schema-component/antd/action/context.d.ts +1 -9
  36. package/es/schema-component/antd/action/context.mjs +1 -10
  37. package/es/schema-component/antd/action/hooks.d.ts +1 -2
  38. package/es/schema-component/antd/action/hooks.mjs +2 -2
  39. package/es/schema-component/antd/association-field/FileManager.mjs +2 -2
  40. package/es/schema-component/antd/association-field/InternalDrawerSubTable.mjs +2 -2
  41. package/es/schema-component/antd/association-field/InternalPicker.mjs +2 -2
  42. package/es/schema-component/antd/association-field/InternalTag.mjs +2 -2
  43. package/es/schema-component/antd/association-field/InternalViewer.mjs +2 -2
  44. package/es/schema-component/antd/association-field/SubTable.mjs +2 -2
  45. package/es/schema-component/antd/color-select/ColorSelect.mjs +3 -3
  46. package/es/schema-component/antd/date-picker/util.d.ts +13 -0
  47. package/es/schema-component/antd/date-picker/util.mjs +14 -1
  48. package/es/schema-component/antd/form-item/FormItem.Settings.mjs +2 -3
  49. package/es/schema-component/antd/markdown/Markdown.mjs +4 -4
  50. package/es/schema-component/antd/page/Page.mjs +22 -27
  51. package/es/schema-component/antd/password/utils.d.ts +1 -1
  52. package/es/schema-component/antd/record-picker/InputRecordPicker.mjs +2 -2
  53. package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.mjs +2 -2
  54. package/es/schema-initializer/items/SelectActionInitializer.mjs +2 -2
  55. package/es/schema-items/OpenModeSchemaItems.mjs +16 -37
  56. package/es/schema-settings/SchemaSettingsDefaultValue.mjs +3 -2
  57. package/es/schema-settings/VariableInput/hooks/index.d.ts +1 -0
  58. package/es/schema-settings/VariableInput/hooks/index.mjs +1 -0
  59. package/es/schema-settings/VariableInput/hooks/useExactDateVariable.d.ts +93 -0
  60. package/es/schema-settings/VariableInput/hooks/useExactDateVariable.mjs +75 -0
  61. package/es/schema-settings/VariableInput/hooks/useVariableOptions.mjs +11 -1
  62. package/es/schema-templates/schemas/uiSchemaTemplates.mjs +1 -1
  63. package/es/user/ChangePassword.mjs +109 -6
  64. package/es/user/index.d.ts +1 -0
  65. package/es/user/index.mjs +2 -0
  66. package/es/variables/hooks/useBuiltinVariables.mjs +8 -2
  67. package/lib/application/CustomRouterContextProvider.js +1 -2
  68. package/lib/application/components/AppComponent.js +1 -3
  69. package/lib/block-provider/hooks/index.js +7 -7
  70. package/lib/built-in/acl/Configuration/MenuItemsProvider.js +2 -2
  71. package/lib/built-in/acl/Configuration/schemas/scopes.js +3 -4
  72. package/lib/built-in/attachment-preview/previewers/file-sheet.js +2 -2
  73. package/lib/built-in/dynamic-page/DynamicPage.js +14 -31
  74. package/lib/built-in/dynamic-page/utils.js +0 -3
  75. package/lib/built-in/page-style/CustomAdminHeader.js +2 -2
  76. package/lib/built-in/page-style/PageStyle.provider.js +2 -10
  77. package/lib/built-in/page-style/TabContent.js +4 -6
  78. package/lib/built-in/page-style/usePageStyle.js +1 -1
  79. package/lib/built-in/page-style/useTabSettings.js +7 -8
  80. package/lib/built-in/pm/index.js +1 -1
  81. package/lib/built-in/quick-access/PopupActionSchemaInitializerItem.js +1 -1
  82. package/lib/collection-manager/Configuration/components/Summary.js +3 -3
  83. package/lib/collection-manager/index.js +17 -17
  84. package/lib/flag-provider/hooks/useFlag.js +1 -1
  85. package/lib/icon/Icon.js +2 -2
  86. package/lib/locale/en_US.js +0 -1
  87. package/lib/locale/zh-CN.js +5 -0
  88. package/lib/modules/actions/add-child/CreateChildInitializer.js +2 -2
  89. package/lib/modules/actions/add-new/CreateActionInitializer.js +2 -2
  90. package/lib/modules/actions/add-record/CustomizeAddRecordActionInitializer.js +2 -2
  91. package/lib/modules/actions/associate/AssociateActionInitializer.js +1 -2
  92. package/lib/modules/actions/submit/createSubmitActionSettings.js +2 -5
  93. package/lib/modules/actions/view-edit-popup/PopupActionInitializer.js +2 -2
  94. package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.js +2 -2
  95. package/lib/modules/actions/view-edit-popup/ViewActionInitializer.js +2 -2
  96. package/lib/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.js +1 -1
  97. package/lib/modules/fields/component/Picker/recordPickerComponentFieldSettings.js +1 -1
  98. package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +1 -1
  99. package/lib/schema-component/antd/action/Action.Container.js +6 -27
  100. package/lib/schema-component/antd/action/Action.Designer.js +2 -13
  101. package/lib/schema-component/antd/action/Action.Modal.js +2 -2
  102. package/lib/schema-component/antd/action/Action.Page.js +1 -1
  103. package/lib/schema-component/antd/action/Action.Sheet.js +2 -2
  104. package/lib/schema-component/antd/action/Action.js +10 -55
  105. package/lib/schema-component/antd/action/context.js +1 -13
  106. package/lib/schema-component/antd/action/hooks.js +1 -1
  107. package/lib/schema-component/antd/association-field/FileManager.js +1 -1
  108. package/lib/schema-component/antd/association-field/InternalDrawerSubTable.js +1 -1
  109. package/lib/schema-component/antd/association-field/InternalPicker.js +1 -1
  110. package/lib/schema-component/antd/association-field/InternalTag.js +1 -1
  111. package/lib/schema-component/antd/association-field/InternalViewer.js +1 -1
  112. package/lib/schema-component/antd/association-field/SubTable.js +1 -1
  113. package/lib/schema-component/antd/color-select/ColorSelect.js +4 -4
  114. package/lib/schema-component/antd/date-picker/util.js +16 -0
  115. package/lib/schema-component/antd/form-item/FormItem.Settings.js +2 -3
  116. package/lib/schema-component/antd/form-tab/index.js +2 -2
  117. package/lib/schema-component/antd/form-v2/index.js +2 -2
  118. package/lib/schema-component/antd/markdown/Markdown.js +5 -5
  119. package/lib/schema-component/antd/page/Page.js +21 -26
  120. package/lib/schema-component/antd/record-picker/InputRecordPicker.js +1 -1
  121. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +1 -1
  122. package/lib/schema-component/antd/scroll-area/ScrollArea.js +2 -2
  123. package/lib/schema-component/antd/table-v2/index.js +3 -3
  124. package/lib/schema-component/antd/upload/shared.js +4 -4
  125. package/lib/schema-initializer/items/SelectActionInitializer.js +2 -2
  126. package/lib/schema-items/OpenModeSchemaItems.js +15 -36
  127. package/lib/schema-settings/SchemaSettingsDefaultValue.js +3 -2
  128. package/lib/schema-settings/VariableInput/hooks/index.js +9 -0
  129. package/lib/schema-settings/VariableInput/hooks/useExactDateVariable.js +112 -0
  130. package/lib/schema-settings/VariableInput/hooks/useVariableOptions.js +11 -1
  131. package/lib/schema-templates/schemas/uiSchemaTemplates.js +1 -1
  132. package/lib/user/ChangePassword.js +118 -5
  133. package/lib/user/index.js +24 -4
  134. package/lib/variables/VariablesProvider.js +2 -2
  135. package/lib/variables/hooks/useBuiltinVariables.js +7 -1
  136. package/package.json +10 -10
  137. package/es/built-in/dynamic-page/DynamicPage.context.d.ts +0 -0
  138. package/es/built-in/dynamic-page/DynamicPage.context.mjs +0 -0
  139. package/es/built-in/dynamic-page/DynamicPage.style.d.ts +0 -3
  140. package/es/built-in/dynamic-page/DynamicPage.style.mjs +0 -26
  141. package/es/built-in/dynamic-page/PageNavBar.d.ts +0 -3
  142. package/es/built-in/dynamic-page/PageNavBar.mjs +0 -47
  143. package/es/built-in/dynamic-page/PageNavBar.style.d.ts +0 -3
  144. package/es/built-in/dynamic-page/PageNavBar.style.mjs +0 -25
  145. package/lib/built-in/dynamic-page/DynamicPage.context.js +0 -5
  146. package/lib/built-in/dynamic-page/DynamicPage.style.js +0 -60
  147. package/lib/built-in/dynamic-page/PageNavBar.js +0 -81
  148. 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.18",
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.2.0",
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.18",
70
- "@tachybase/evaluators": "1.3.18",
71
- "@tachybase/requirejs": "1.3.18",
72
- "@tachybase/schema": "1.3.18",
73
- "@tachybase/utils": "1.3.18",
74
- "@tachybase/sdk": "1.3.18"
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.13",
79
+ "@types/lodash": "^4.17.20",
80
80
  "@types/markdown-it": "12.2.3",
81
- "@types/react-big-calendar": "^1.16.0"
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,3 +0,0 @@
1
- export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
- 'dynamic-page': import("antd-style").SerializedStyles;
3
- }>;
@@ -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,3 +0,0 @@
1
- export declare const PageNavBar: ({ uid }: {
2
- uid: string;
3
- }) => import("react/jsx-runtime").JSX.Element;
@@ -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,3 +0,0 @@
1
- export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
- 'page-nav-bar': import("antd-style").SerializedStyles;
3
- }>;
@@ -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,5 +0,0 @@
1
- var __webpack_exports__ = {};
2
- for(var __webpack_i__ in __webpack_exports__)exports[__webpack_i__] = __webpack_exports__[__webpack_i__];
3
- Object.defineProperty(exports, '__esModule', {
4
- value: true
5
- });
@@ -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
- });