@tachybase/client 1.3.18 → 1.3.19

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 (104) 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/modules/actions/add-child/CreateChildInitializer.mjs +2 -2
  18. package/es/modules/actions/add-new/CreateActionInitializer.mjs +2 -2
  19. package/es/modules/actions/add-record/CustomizeAddRecordActionInitializer.mjs +2 -2
  20. package/es/modules/actions/associate/AssociateActionInitializer.mjs +1 -2
  21. package/es/modules/actions/submit/createSubmitActionSettings.mjs +3 -6
  22. package/es/modules/actions/view-edit-popup/PopupActionInitializer.mjs +2 -2
  23. package/es/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +2 -2
  24. package/es/modules/actions/view-edit-popup/ViewActionInitializer.mjs +2 -2
  25. package/es/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.mjs +2 -2
  26. package/es/modules/fields/component/Picker/recordPickerComponentFieldSettings.mjs +2 -2
  27. package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +2 -2
  28. package/es/schema-component/antd/action/Action.Container.mjs +5 -26
  29. package/es/schema-component/antd/action/Action.Designer.mjs +3 -14
  30. package/es/schema-component/antd/action/Action.Page.mjs +1 -1
  31. package/es/schema-component/antd/action/Action.mjs +11 -56
  32. package/es/schema-component/antd/action/context.d.ts +1 -9
  33. package/es/schema-component/antd/action/context.mjs +1 -10
  34. package/es/schema-component/antd/action/hooks.d.ts +1 -2
  35. package/es/schema-component/antd/action/hooks.mjs +2 -2
  36. package/es/schema-component/antd/association-field/FileManager.mjs +2 -2
  37. package/es/schema-component/antd/association-field/InternalDrawerSubTable.mjs +2 -2
  38. package/es/schema-component/antd/association-field/InternalPicker.mjs +2 -2
  39. package/es/schema-component/antd/association-field/InternalTag.mjs +2 -2
  40. package/es/schema-component/antd/association-field/InternalViewer.mjs +2 -2
  41. package/es/schema-component/antd/association-field/SubTable.mjs +2 -2
  42. package/es/schema-component/antd/form-item/FormItem.Settings.mjs +2 -3
  43. package/es/schema-component/antd/page/Page.mjs +22 -27
  44. package/es/schema-component/antd/record-picker/InputRecordPicker.mjs +2 -2
  45. package/es/schema-component/antd/record-picker/ReadPrettyRecordPicker.mjs +2 -2
  46. package/es/schema-initializer/items/SelectActionInitializer.mjs +2 -2
  47. package/es/schema-items/OpenModeSchemaItems.mjs +16 -37
  48. package/es/schema-templates/schemas/uiSchemaTemplates.mjs +1 -1
  49. package/lib/application/CustomRouterContextProvider.js +1 -2
  50. package/lib/application/components/AppComponent.js +1 -3
  51. package/lib/block-provider/hooks/index.js +3 -3
  52. package/lib/built-in/acl/Configuration/schemas/scopes.js +3 -4
  53. package/lib/built-in/dynamic-page/DynamicPage.js +14 -31
  54. package/lib/built-in/dynamic-page/utils.js +0 -3
  55. package/lib/built-in/page-style/CustomAdminHeader.js +2 -2
  56. package/lib/built-in/page-style/PageStyle.provider.js +2 -10
  57. package/lib/built-in/page-style/TabContent.js +4 -6
  58. package/lib/built-in/page-style/usePageStyle.js +1 -1
  59. package/lib/built-in/page-style/useTabSettings.js +7 -8
  60. package/lib/built-in/quick-access/PopupActionSchemaInitializerItem.js +1 -1
  61. package/lib/locale/en_US.js +0 -1
  62. package/lib/modules/actions/add-child/CreateChildInitializer.js +2 -2
  63. package/lib/modules/actions/add-new/CreateActionInitializer.js +2 -2
  64. package/lib/modules/actions/add-record/CustomizeAddRecordActionInitializer.js +2 -2
  65. package/lib/modules/actions/associate/AssociateActionInitializer.js +1 -2
  66. package/lib/modules/actions/submit/createSubmitActionSettings.js +2 -5
  67. package/lib/modules/actions/view-edit-popup/PopupActionInitializer.js +2 -2
  68. package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.js +2 -2
  69. package/lib/modules/actions/view-edit-popup/ViewActionInitializer.js +2 -2
  70. package/lib/modules/fields/component/DrawerSubTable/drawerSubTableComponentFieldSettings.js +1 -1
  71. package/lib/modules/fields/component/Picker/recordPickerComponentFieldSettings.js +1 -1
  72. package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +1 -1
  73. package/lib/schema-component/antd/action/Action.Container.js +4 -25
  74. package/lib/schema-component/antd/action/Action.Designer.js +2 -13
  75. package/lib/schema-component/antd/action/Action.Page.js +1 -1
  76. package/lib/schema-component/antd/action/Action.js +10 -55
  77. package/lib/schema-component/antd/action/context.js +1 -13
  78. package/lib/schema-component/antd/action/hooks.js +1 -1
  79. package/lib/schema-component/antd/association-field/FileManager.js +1 -1
  80. package/lib/schema-component/antd/association-field/InternalDrawerSubTable.js +1 -1
  81. package/lib/schema-component/antd/association-field/InternalPicker.js +1 -1
  82. package/lib/schema-component/antd/association-field/InternalTag.js +1 -1
  83. package/lib/schema-component/antd/association-field/InternalViewer.js +1 -1
  84. package/lib/schema-component/antd/association-field/SubTable.js +1 -1
  85. package/lib/schema-component/antd/form-item/FormItem.Settings.js +2 -3
  86. package/lib/schema-component/antd/page/Page.js +21 -26
  87. package/lib/schema-component/antd/record-picker/InputRecordPicker.js +1 -1
  88. package/lib/schema-component/antd/record-picker/ReadPrettyRecordPicker.js +1 -1
  89. package/lib/schema-initializer/items/SelectActionInitializer.js +2 -2
  90. package/lib/schema-items/OpenModeSchemaItems.js +15 -36
  91. package/lib/schema-templates/schemas/uiSchemaTemplates.js +1 -1
  92. package/package.json +7 -7
  93. package/es/built-in/dynamic-page/DynamicPage.context.d.ts +0 -0
  94. package/es/built-in/dynamic-page/DynamicPage.context.mjs +0 -0
  95. package/es/built-in/dynamic-page/DynamicPage.style.d.ts +0 -3
  96. package/es/built-in/dynamic-page/DynamicPage.style.mjs +0 -26
  97. package/es/built-in/dynamic-page/PageNavBar.d.ts +0 -3
  98. package/es/built-in/dynamic-page/PageNavBar.mjs +0 -47
  99. package/es/built-in/dynamic-page/PageNavBar.style.d.ts +0 -3
  100. package/es/built-in/dynamic-page/PageNavBar.style.mjs +0 -25
  101. package/lib/built-in/dynamic-page/DynamicPage.context.js +0 -5
  102. package/lib/built-in/dynamic-page/DynamicPage.style.js +0 -60
  103. package/lib/built-in/dynamic-page/PageNavBar.js +0 -81
  104. package/lib/built-in/dynamic-page/PageNavBar.style.js +0 -59
@@ -28,14 +28,11 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  SchemaSettingOpenModeSchemaItems: ()=>SchemaSettingOpenModeSchemaItems
29
29
  });
30
30
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
- const external_react_namespaceObject = require("react");
31
+ require("react");
32
32
  const schema_namespaceObject = require("@tachybase/schema");
33
33
  const external_antd_namespaceObject = require("antd");
34
34
  const external_react_i18next_namespaceObject = require("react-i18next");
35
35
  const index_js_namespaceObject = require("../application/index.js");
36
- const external_block_provider_index_js_namespaceObject = require("../block-provider/index.js");
37
- const PageStyle_provider_js_namespaceObject = require("../built-in/page-style/PageStyle.provider.js");
38
- const usePageStyle_js_namespaceObject = require("../built-in/page-style/usePageStyle.js");
39
36
  const external_schema_component_index_js_namespaceObject = require("../schema-component/index.js");
40
37
  const external_schema_settings_index_js_namespaceObject = require("../schema-settings/index.js");
41
38
  const SchemaInitializerOpenModeSchemaItems = (options)=>{
@@ -45,16 +42,7 @@ const SchemaInitializerOpenModeSchemaItems = (options)=>{
45
42
  const field = (0, schema_namespaceObject.useField)();
46
43
  const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
47
44
  const { dn } = (0, external_schema_component_index_js_namespaceObject.useDesignable)();
48
- const isMobile = (0, external_block_provider_index_js_namespaceObject.useIsMobile)();
49
- const pageStyle = (0, usePageStyle_js_namespaceObject.usePageStyle)();
50
- const defaultOpenMode = (0, external_react_namespaceObject.useMemo)(()=>{
51
- if (isMobile || pageStyle === PageStyle_provider_js_namespaceObject.PageStyle.TAB_STYLE) return external_schema_component_index_js_namespaceObject.OpenMode.PAGE;
52
- return external_schema_component_index_js_namespaceObject.OpenMode.DRAWER_MODE;
53
- }, [
54
- isMobile,
55
- pageStyle
56
- ]);
57
- const openModeValue = (null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops['openMode']) || defaultOpenMode;
45
+ const openModeValue = (null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops['openMode']) || 'drawer';
58
46
  var _fieldSchema_xcomponentprops_openSize;
59
47
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
60
48
  children: [
@@ -63,11 +51,11 @@ const SchemaInitializerOpenModeSchemaItems = (options)=>{
63
51
  options: [
64
52
  {
65
53
  label: t('Drawer'),
66
- value: external_schema_component_index_js_namespaceObject.OpenMode.DRAWER_MODE
54
+ value: 'drawer'
67
55
  },
68
56
  {
69
57
  label: t('Dialog'),
70
- value: external_schema_component_index_js_namespaceObject.OpenMode.MODAL
58
+ value: 'modal'
71
59
  }
72
60
  ],
73
61
  value: openModeValue,
@@ -87,8 +75,8 @@ const SchemaInitializerOpenModeSchemaItems = (options)=>{
87
75
  }
88
76
  }) : null,
89
77
  openSize && [
90
- external_schema_component_index_js_namespaceObject.OpenMode.MODAL,
91
- external_schema_component_index_js_namespaceObject.OpenMode.DRAWER_MODE
78
+ 'modal',
79
+ 'drawer'
92
80
  ].includes(openModeValue) ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.SchemaInitializerItem, {
93
81
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
94
82
  style: {
@@ -115,7 +103,7 @@ const SchemaInitializerOpenModeSchemaItems = (options)=>{
115
103
  value: 'large'
116
104
  }
117
105
  ],
118
- value: null != (_fieldSchema_xcomponentprops_openSize = null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops1 = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops1['openSize']) ? _fieldSchema_xcomponentprops_openSize : (null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops2 = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops2['openMode']) === external_schema_component_index_js_namespaceObject.OpenMode.MODAL ? 'large' : 'middle',
106
+ value: null != (_fieldSchema_xcomponentprops_openSize = null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops1 = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops1['openSize']) ? _fieldSchema_xcomponentprops_openSize : (null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops2 = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops2['openMode']) == 'modal' ? 'large' : 'middle',
119
107
  onChange: (value)=>{
120
108
  field.componentProps.openSize = value;
121
109
  const schema = {
@@ -147,16 +135,7 @@ const SchemaSettingOpenModeSchemaItems = (options)=>{
147
135
  const field = (0, schema_namespaceObject.useField)();
148
136
  const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
149
137
  const { dn } = (0, external_schema_component_index_js_namespaceObject.useDesignable)();
150
- const pageStyle = (0, usePageStyle_js_namespaceObject.usePageStyle)();
151
- const isMobile = (0, external_block_provider_index_js_namespaceObject.useIsMobile)();
152
- const defaultOpenMode = (0, external_react_namespaceObject.useMemo)(()=>{
153
- if (isMobile || pageStyle === PageStyle_provider_js_namespaceObject.PageStyle.TAB_STYLE) return external_schema_component_index_js_namespaceObject.OpenMode.PAGE;
154
- return external_schema_component_index_js_namespaceObject.OpenMode.DRAWER_MODE;
155
- }, [
156
- isMobile,
157
- pageStyle
158
- ]);
159
- const openModeValue = (null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops['openMode']) || defaultOpenMode;
138
+ const openModeValue = (null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops['openMode']) || 'drawer';
160
139
  var _fieldSchema_xcomponentprops_openSize;
161
140
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(jsx_runtime_namespaceObject.Fragment, {
162
141
  children: [
@@ -165,19 +144,19 @@ const SchemaSettingOpenModeSchemaItems = (options)=>{
165
144
  options: [
166
145
  {
167
146
  label: t('Drawer'),
168
- value: external_schema_component_index_js_namespaceObject.OpenMode.DRAWER_MODE
147
+ value: 'drawer'
169
148
  },
170
149
  {
171
150
  label: t('Dialog'),
172
- value: external_schema_component_index_js_namespaceObject.OpenMode.MODAL
151
+ value: 'modal'
173
152
  },
174
153
  {
175
154
  label: t('Sheet'),
176
- value: external_schema_component_index_js_namespaceObject.OpenMode.SHEET
155
+ value: 'sheet'
177
156
  },
178
157
  {
179
158
  label: t('Page'),
180
- value: external_schema_component_index_js_namespaceObject.OpenMode.PAGE
159
+ value: 'page'
181
160
  }
182
161
  ],
183
162
  value: openModeValue,
@@ -197,8 +176,8 @@ const SchemaSettingOpenModeSchemaItems = (options)=>{
197
176
  }
198
177
  }) : null,
199
178
  openSize && [
200
- external_schema_component_index_js_namespaceObject.OpenMode.MODAL,
201
- external_schema_component_index_js_namespaceObject.OpenMode.DRAWER_MODE
179
+ 'modal',
180
+ 'drawer'
202
181
  ].includes(openModeValue) ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_schema_settings_index_js_namespaceObject.SchemaSettingsSelectItem, {
203
182
  title: t('Popup size'),
204
183
  options: [
@@ -215,7 +194,7 @@ const SchemaSettingOpenModeSchemaItems = (options)=>{
215
194
  value: 'large'
216
195
  }
217
196
  ],
218
- value: null != (_fieldSchema_xcomponentprops_openSize = null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops1 = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops1['openSize']) ? _fieldSchema_xcomponentprops_openSize : (null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops2 = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops2['openMode']) === external_schema_component_index_js_namespaceObject.OpenMode.MODAL ? 'large' : 'middle',
197
+ value: null != (_fieldSchema_xcomponentprops_openSize = null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops1 = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops1['openSize']) ? _fieldSchema_xcomponentprops_openSize : (null == fieldSchema ? void 0 : null == (_fieldSchema_xcomponentprops2 = fieldSchema['x-component-props']) ? void 0 : _fieldSchema_xcomponentprops2['openMode']) == 'modal' ? 'large' : 'middle',
219
198
  onChange: (value)=>{
220
199
  field.componentProps.openSize = value;
221
200
  const schema = {
@@ -136,7 +136,7 @@ const uiSchemaTemplatesSchema = {
136
136
  'x-action': 'update',
137
137
  'x-component': 'Action.Link',
138
138
  'x-component-props': {
139
- openMode: 'drawer-mode',
139
+ openMode: 'drawer',
140
140
  icon: 'EditOutlined'
141
141
  },
142
142
  properties: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tachybase/client",
3
- "version": "1.3.18",
3
+ "version": "1.3.19",
4
4
  "license": "Apache-2.0",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.mjs",
@@ -66,12 +66,12 @@
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/requirejs": "1.3.19",
70
+ "@tachybase/components": "1.3.19",
71
+ "@tachybase/schema": "1.3.19",
72
+ "@tachybase/evaluators": "1.3.19",
73
+ "@tachybase/sdk": "1.3.19",
74
+ "@tachybase/utils": "1.3.19"
75
75
  },
76
76
  "devDependencies": {
77
77
  "@testing-library/react": "^16.2.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
- });