@tachybase/client 0.23.22 → 0.23.40

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 (203) hide show
  1. package/es/application/schema-initializer/components/SchemaInitializerButton.mjs +1 -1
  2. package/es/application/schema-initializer/components/SchemaInitializerChildren.mjs +1 -1
  3. package/es/built-in/admin-layout/AdminLayout.mjs +15 -1
  4. package/es/built-in/admin-layout/InternalAdminLayout.mjs +4 -2
  5. package/es/built-in/admin-layout/MenuEditor.mjs +2 -2
  6. package/es/built-in/admin-layout/style.d.ts +1 -1
  7. package/es/built-in/admin-layout/style.mjs +4 -4
  8. package/es/built-in/attachment-preview/previewers/file-pdf.mjs +4 -2
  9. package/es/built-in/context-menu/ContextMenu.provider.d.ts +1 -0
  10. package/es/built-in/context-menu/ContextMenu.provider.mjs +29 -1
  11. package/es/built-in/context-menu/index.mjs +1 -0
  12. package/es/built-in/index.mjs +44 -10
  13. package/es/built-in/page-style/TabHeader.d.ts +1 -1
  14. package/es/built-in/page-style/TabHeader.mjs +26 -33
  15. package/es/built-in/page-style/TabHeader.style.d.ts +4 -0
  16. package/es/built-in/page-style/TabHeader.style.mjs +35 -0
  17. package/es/built-in/pinned-list/PinnedPluginListProvider.d.ts +3 -1
  18. package/es/built-in/pinned-list/PinnedPluginListProvider.mjs +5 -4
  19. package/es/built-in/scroll-assistant/useJoystick.mjs +3 -1
  20. package/es/built-in/setting-layout/SettingLayout.mjs +10 -1
  21. package/es/built-in/{assistant/calculator → setting-layout}/style.d.ts +1 -1
  22. package/es/built-in/setting-layout/style.mjs +25 -0
  23. package/es/collection-manager/action-hooks.d.ts +1 -4
  24. package/es/collection-manager/action-hooks.mjs +39 -11
  25. package/es/icon/preloaded.mjs +4 -4
  26. package/es/index.d.ts +0 -1
  27. package/es/index.mjs +0 -1
  28. package/es/modules/actions/associate/AssociateActionInitializer.d.ts +1 -0
  29. package/es/modules/actions/associate/AssociateActionInitializer.mjs +71 -0
  30. package/es/modules/actions/associate/AssociateActionProvider.d.ts +7 -0
  31. package/es/modules/actions/associate/AssociateActionProvider.mjs +82 -0
  32. package/es/modules/actions/associate/AssociateActionSettings.d.ts +2 -0
  33. package/es/modules/actions/associate/AssociateActionSettings.mjs +57 -0
  34. package/es/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.mjs +2 -1
  35. package/es/modules/blocks/data-blocks/form/RecordFormBlockInitializer.mjs +21 -14
  36. package/es/modules/blocks/data-blocks/form/createEditFormBlockUISchema.d.ts +1 -2
  37. package/es/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.mjs +2 -1
  38. package/es/modules/blocks/data-blocks/list/listBlockSettings.mjs +2 -1
  39. package/es/modules/blocks/data-blocks/table/TableActionInitializers.mjs +15 -0
  40. package/es/modules/blocks/data-blocks/table/tableBlockSettings.mjs +2 -1
  41. package/es/modules/blocks/data-blocks/table/tableColumnSettings.mjs +2 -2
  42. package/es/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.mjs +2 -1
  43. package/es/modules/fields/component/Cascader/cascaderComponentFieldSettings.mjs +2 -1
  44. package/es/modules/fields/component/Radio/radioComponentFieldSettings.mjs +4 -0
  45. package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +16 -2
  46. package/es/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.mjs +2 -1
  47. package/es/modules/menu/GroupItem.mjs +5 -1
  48. package/es/modules/menu/LinkMenuItem.mjs +7 -3
  49. package/es/modules/menu/PageMenuItem.mjs +5 -1
  50. package/es/modules/menu/UploadMenuItem.d.ts +1 -0
  51. package/es/modules/menu/UploadMenuItem.mjs +81 -0
  52. package/es/modules/menu/menuItemInitializer.d.ts +0 -4
  53. package/es/modules/menu/menuItemInitializer.mjs +3 -23
  54. package/es/schema-component/antd/action/Action.Designer.mjs +4 -1
  55. package/es/schema-component/antd/association-select/AssociationSelect.mjs +4 -2
  56. package/es/schema-component/antd/checkbox/Checkbox.mjs +11 -6
  57. package/es/schema-component/antd/date-picker/DatePicker.mjs +4 -0
  58. package/es/schema-component/antd/form-item/FormItem.Settings.d.ts +2 -0
  59. package/es/schema-component/antd/form-item/FormItem.Settings.mjs +14 -1
  60. package/es/schema-component/antd/form-v2/Form.Settings.mjs +2 -1
  61. package/es/schema-component/antd/grid-card/GridCard.Designer.mjs +2 -1
  62. package/es/schema-component/antd/list/List.Designer.mjs +2 -1
  63. package/es/schema-component/antd/menu/AdminMenu.d.ts +1 -0
  64. package/es/schema-component/antd/menu/AdminMenu.mjs +75 -0
  65. package/es/schema-component/antd/menu/AdminMenu.style.d.ts +4 -0
  66. package/es/schema-component/antd/menu/AdminMenu.style.mjs +36 -0
  67. package/es/schema-component/antd/menu/Menu.Designer.d.ts +2 -1
  68. package/es/schema-component/antd/menu/Menu.Designer.mjs +62 -42
  69. package/es/schema-component/antd/menu/Menu.mjs +124 -163
  70. package/es/schema-component/antd/menu/Menu.styles.d.ts +1 -2
  71. package/es/schema-component/antd/menu/Menu.styles.mjs +8 -20
  72. package/es/schema-component/antd/menu/MenuAdd.d.ts +1 -0
  73. package/es/schema-component/antd/menu/MenuAdd.mjs +18 -0
  74. package/es/schema-component/antd/menu/MenuSearchAdd.d.ts +7 -0
  75. package/es/schema-component/antd/menu/MenuSearchAdd.mjs +41 -0
  76. package/es/schema-component/antd/menu/MenuSearchAdd.style.d.ts +3 -0
  77. package/es/schema-component/antd/menu/MenuSearchAdd.style.mjs +25 -0
  78. package/es/schema-component/antd/menu/tools.d.ts +9 -0
  79. package/es/schema-component/antd/menu/tools.mjs +36 -0
  80. package/es/schema-component/antd/scroll-area/ScrollArea.mjs +0 -17
  81. package/es/schema-component/antd/select/Select.d.ts +3 -13
  82. package/es/schema-component/antd/select/Select.mjs +33 -2
  83. package/es/schema-component/antd/table/Table.Void.Designer.mjs +2 -1
  84. package/es/schema-component/antd/table-v2/TableBlockDesigner.mjs +2 -1
  85. package/es/schema-component/antd/table-v2/TableSelectorDesigner.mjs +2 -1
  86. package/es/schema-component/common/dnd-context/index.d.ts +1 -2
  87. package/es/schema-component/common/sortable-item/DragHandleMenu.d.ts +1 -0
  88. package/es/schema-component/common/sortable-item/DragHandleMenu.mjs +78 -0
  89. package/es/schema-component/common/sortable-item/DragHandleMenu.style.d.ts +3 -0
  90. package/es/schema-component/common/sortable-item/DragHandleMenu.style.mjs +25 -0
  91. package/es/schema-component/common/sortable-item/SortableItem.d.ts +1 -0
  92. package/es/schema-initializer/SchemaInitializerPlugin.mjs +5 -2
  93. package/es/schema-initializer/utils.mjs +9 -7
  94. package/es/schema-settings/GeneralSchemaDesigner.d.ts +2 -1
  95. package/es/schema-settings/GeneralSchemaDesigner.mjs +9 -1
  96. package/es/schema-settings/SchemaSettings.d.ts +3 -1
  97. package/es/schema-settings/SchemaSettings.mjs +16 -4
  98. package/es/schema-settings/SchemaSettingsPlugin.mjs +2 -0
  99. package/es/schema-settings/SchemaSettingsSortingRule.mjs +2 -1
  100. package/es/schema-settings/styles.mjs +2 -2
  101. package/lib/application/schema-initializer/components/SchemaInitializerButton.js +1 -1
  102. package/lib/application/schema-initializer/components/SchemaInitializerChildren.js +1 -1
  103. package/lib/built-in/admin-layout/AdminLayout.js +15 -1
  104. package/lib/built-in/admin-layout/InternalAdminLayout.js +4 -2
  105. package/lib/built-in/admin-layout/MenuEditor.js +2 -2
  106. package/lib/built-in/admin-layout/style.js +4 -4
  107. package/lib/built-in/attachment-preview/previewers/file-pdf.js +4 -2
  108. package/lib/built-in/context-menu/ContextMenu.provider.js +29 -0
  109. package/lib/built-in/context-menu/index.js +1 -0
  110. package/lib/built-in/index.js +142 -114
  111. package/lib/built-in/page-style/TabHeader.js +26 -33
  112. package/lib/built-in/page-style/TabHeader.style.js +69 -0
  113. package/lib/built-in/pinned-list/PinnedPluginListProvider.js +5 -4
  114. package/lib/built-in/scroll-assistant/useJoystick.js +17 -1
  115. package/lib/built-in/setting-layout/SettingLayout.js +10 -1
  116. package/lib/built-in/{assistant/context.js → setting-layout/style.js} +24 -5
  117. package/lib/collection-manager/action-hooks.js +39 -11
  118. package/lib/icon/preloaded.js +4 -4
  119. package/lib/index.js +71 -86
  120. package/lib/locale/en_US.js +8 -0
  121. package/lib/locale/zh-CN.js +8 -0
  122. package/lib/modules/actions/associate/AssociateActionInitializer.js +105 -0
  123. package/lib/modules/actions/associate/AssociateActionProvider.js +116 -0
  124. package/lib/modules/actions/associate/AssociateActionSettings.js +91 -0
  125. package/lib/modules/blocks/data-blocks/details-multi/detailsWithPaginationSettings.js +2 -1
  126. package/lib/modules/blocks/data-blocks/form/RecordFormBlockInitializer.js +21 -14
  127. package/lib/modules/blocks/data-blocks/grid-card/gridCardBlockSettings.js +2 -1
  128. package/lib/modules/blocks/data-blocks/list/listBlockSettings.js +2 -1
  129. package/lib/modules/blocks/data-blocks/table/TableActionInitializers.js +15 -0
  130. package/lib/modules/blocks/data-blocks/table/tableBlockSettings.js +2 -1
  131. package/lib/modules/blocks/data-blocks/table/tableColumnSettings.js +2 -2
  132. package/lib/modules/blocks/data-blocks/table-selector/tableSelectorBlockSettings.js +2 -1
  133. package/lib/modules/fields/component/Cascader/cascaderComponentFieldSettings.js +2 -1
  134. package/lib/modules/fields/component/Radio/radioComponentFieldSettings.js +4 -0
  135. package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +16 -2
  136. package/lib/modules/fields/component/SubTable/subTablePopoverComponentFieldSettings.js +2 -1
  137. package/lib/modules/menu/GroupItem.js +5 -1
  138. package/lib/modules/menu/LinkMenuItem.js +7 -3
  139. package/lib/modules/menu/PageMenuItem.js +5 -1
  140. package/lib/modules/menu/UploadMenuItem.js +115 -0
  141. package/lib/modules/menu/menuItemInitializer.js +2 -23
  142. package/lib/schema-component/antd/action/Action.Designer.js +4 -1
  143. package/lib/schema-component/antd/association-select/AssociationSelect.js +4 -2
  144. package/lib/schema-component/antd/checkbox/Checkbox.js +11 -6
  145. package/lib/schema-component/antd/date-picker/DatePicker.js +4 -0
  146. package/lib/schema-component/antd/form-item/FormItem.Settings.js +16 -1
  147. package/lib/schema-component/antd/form-v2/Form.Settings.js +2 -1
  148. package/lib/schema-component/antd/grid-card/GridCard.Designer.js +2 -1
  149. package/lib/schema-component/antd/list/List.Designer.js +2 -1
  150. package/lib/schema-component/antd/menu/AdminMenu.js +109 -0
  151. package/lib/schema-component/antd/menu/AdminMenu.style.js +70 -0
  152. package/lib/schema-component/antd/menu/Menu.Designer.js +62 -41
  153. package/lib/schema-component/antd/menu/Menu.js +124 -163
  154. package/lib/schema-component/antd/menu/Menu.styles.js +8 -20
  155. package/lib/{built-in/assistant/calculator/CalculatorDisplay.js → schema-component/antd/menu/MenuAdd.js} +14 -17
  156. package/lib/schema-component/antd/menu/MenuSearchAdd.js +89 -0
  157. package/lib/schema-component/antd/menu/MenuSearchAdd.style.js +59 -0
  158. package/lib/schema-component/antd/menu/tools.js +72 -0
  159. package/lib/schema-component/antd/scroll-area/ScrollArea.js +0 -17
  160. package/lib/schema-component/antd/select/Select.js +33 -2
  161. package/lib/schema-component/antd/table/Table.Void.Designer.js +2 -1
  162. package/lib/schema-component/antd/table-v2/TableBlockDesigner.js +2 -1
  163. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +2 -1
  164. package/lib/schema-component/common/sortable-item/DragHandleMenu.js +112 -0
  165. package/lib/schema-component/common/sortable-item/DragHandleMenu.style.js +59 -0
  166. package/lib/schema-initializer/SchemaInitializerPlugin.js +5 -2
  167. package/lib/schema-initializer/utils.js +9 -7
  168. package/lib/schema-settings/GeneralSchemaDesigner.js +9 -1
  169. package/lib/schema-settings/SchemaSettings.js +16 -4
  170. package/lib/schema-settings/SchemaSettingsPlugin.js +2 -0
  171. package/lib/schema-settings/SchemaSettingsSortingRule.js +2 -1
  172. package/lib/schema-settings/styles.js +2 -2
  173. package/package.json +8 -7
  174. package/es/built-in/assistant/Assistant.provider.d.ts +0 -9
  175. package/es/built-in/assistant/Assistant.provider.mjs +0 -125
  176. package/es/built-in/assistant/calculator/AutoScalingText.d.ts +0 -3
  177. package/es/built-in/assistant/calculator/AutoScalingText.mjs +0 -33
  178. package/es/built-in/assistant/calculator/Calculator.d.ts +0 -2
  179. package/es/built-in/assistant/calculator/Calculator.mjs +0 -235
  180. package/es/built-in/assistant/calculator/CalculatorDisplay.d.ts +0 -4
  181. package/es/built-in/assistant/calculator/CalculatorDisplay.mjs +0 -21
  182. package/es/built-in/assistant/calculator/CalculatorKey.d.ts +0 -5
  183. package/es/built-in/assistant/calculator/CalculatorKey.mjs +0 -11
  184. package/es/built-in/assistant/calculator/CalculatorProvider.d.ts +0 -10
  185. package/es/built-in/assistant/calculator/CalculatorProvider.mjs +0 -29
  186. package/es/built-in/assistant/calculator/Draggable.d.ts +0 -8
  187. package/es/built-in/assistant/calculator/Draggable.mjs +0 -54
  188. package/es/built-in/assistant/calculator/style.mjs +0 -25
  189. package/es/built-in/assistant/context.d.ts +0 -3
  190. package/es/built-in/assistant/context.mjs +0 -6
  191. package/es/built-in/assistant/index.d.ts +0 -7
  192. package/es/built-in/assistant/index.mjs +0 -16
  193. package/es/built-in/assistant/search-and-jump/index.d.ts +0 -16
  194. package/es/built-in/assistant/search-and-jump/index.mjs +0 -59
  195. package/lib/built-in/assistant/Assistant.provider.js +0 -161
  196. package/lib/built-in/assistant/calculator/AutoScalingText.js +0 -67
  197. package/lib/built-in/assistant/calculator/Calculator.js +0 -283
  198. package/lib/built-in/assistant/calculator/CalculatorKey.js +0 -45
  199. package/lib/built-in/assistant/calculator/CalculatorProvider.js +0 -65
  200. package/lib/built-in/assistant/calculator/Draggable.js +0 -102
  201. package/lib/built-in/assistant/calculator/style.js +0 -59
  202. package/lib/built-in/assistant/index.js +0 -107
  203. package/lib/built-in/assistant/search-and-jump/index.js +0 -96
@@ -51,9 +51,6 @@ var __webpack_modules__ = {
51
51
  "./admin-layout": function(module) {
52
52
  module.exports = require("./admin-layout/index.js");
53
53
  },
54
- "./assistant": function(module) {
55
- module.exports = require("./assistant/index.js");
56
- },
57
54
  "./attachment-preview": function(module) {
58
55
  module.exports = require("./attachment-preview/index.js");
59
56
  },
@@ -120,9 +117,6 @@ var __webpack_modules__ = {
120
117
  "antd-style": function(module) {
121
118
  module.exports = require("antd-style");
122
119
  },
123
- react: function(module) {
124
- module.exports = require("react");
125
- },
126
120
  "react-i18next": function(module) {
127
121
  module.exports = require("react-i18next");
128
122
  },
@@ -183,10 +177,10 @@ var __webpack_exports__ = {};
183
177
  __webpack_require__.r(__webpack_exports__);
184
178
  __webpack_require__.d(__webpack_exports__, {
185
179
  AdminLayout: function() {
186
- return _admin_layout__WEBPACK_IMPORTED_MODULE_42__.AdminLayout;
180
+ return _admin_layout__WEBPACK_IMPORTED_MODULE_40__.AdminLayout;
187
181
  },
188
182
  AdminProvider: function() {
189
- return _admin_layout__WEBPACK_IMPORTED_MODULE_42__.AdminProvider;
183
+ return _admin_layout__WEBPACK_IMPORTED_MODULE_40__.AdminProvider;
190
184
  },
191
185
  AppNotFound: function() {
192
186
  return AppNotFound;
@@ -195,55 +189,53 @@ __webpack_require__.d(__webpack_exports__, {
195
189
  return BuiltInPlugin;
196
190
  },
197
191
  NoticeArea: function() {
198
- return _admin_layout__WEBPACK_IMPORTED_MODULE_42__.NoticeArea;
192
+ return _admin_layout__WEBPACK_IMPORTED_MODULE_40__.NoticeArea;
199
193
  }
200
194
  });
201
195
  var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__("react/jsx-runtime");
202
- __webpack_require__("react");
203
- var _tachybase_schema__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("@tachybase/schema");
204
- var _tachybase_sdk__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("@tachybase/sdk");
205
- var _ant_design_icons__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("@ant-design/icons");
206
- var _emotion_css__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("@emotion/css");
207
- var _lottiefiles_dotlottie_react__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("@lottiefiles/dotlottie-react");
208
- var antd__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("antd");
209
- var antd_style__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("antd-style");
210
- var react_i18next__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("react-i18next");
211
- var react_router_dom__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("react-router-dom");
212
- var _api_client__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("../api-client");
213
- var _application__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../application");
214
- var _application_Plugin__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../application/Plugin");
215
- var _block_provider_PageLayout__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../block-provider/PageLayout");
216
- var _collection_manager__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../collection-manager");
217
- var _route_switch__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../route-switch");
218
- var _schema_component__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("../schema-component");
219
- var _schema_component_antd_error_fallback__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("../schema-component/antd/error-fallback");
220
- var _schema_initializer__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("../schema-initializer");
221
- var _schema_initializer_SchemaInitializerPlugin__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("../schema-initializer/SchemaInitializerPlugin");
222
- var _schema_settings__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("../schema-settings");
223
- var _schema_templates__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("../schema-templates");
224
- var _user__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__("../user");
225
- var _acl_ACLPlugin__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__("./acl/ACLPlugin");
226
- var _admin_layout_AdminLayoutPlugin__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__("./admin-layout/AdminLayoutPlugin");
227
- var _admin_layout_components_WelcomeCard__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__("./admin-layout/components/WelcomeCard");
228
- var _assistant__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__("./assistant");
229
- var _attachment_preview__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__("./attachment-preview");
230
- var _block_schema_component__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__("./block-schema-component");
231
- var _context_menu__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__("./context-menu");
232
- var _document_title__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__("./document-title");
233
- var _dynamic_page__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__("./dynamic-page");
234
- var _locale_LocalePlugin__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__("./locale/LocalePlugin");
235
- var _page_style__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__("./page-style");
236
- var _pinned_list_PluginPinnedList__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__("./pinned-list/PluginPinnedList");
237
- var _pm__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__("./pm");
238
- var _quick_access__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__("./quick-access");
239
- var _scroll_assistant__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__("./scroll-assistant");
240
- var _system_settings__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__("./system-settings");
241
- var _system_version__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__("./system-version");
242
- var _user_settings__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__("./user-settings");
243
- var _admin_layout__WEBPACK_IMPORTED_MODULE_42__ = __webpack_require__("./admin-layout");
244
- var _context_menu_useContextMenu__WEBPACK_IMPORTED_MODULE_43__ = __webpack_require__("./context-menu/useContextMenu");
196
+ var _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__("@tachybase/schema");
197
+ var _tachybase_sdk__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__("@tachybase/sdk");
198
+ var _ant_design_icons__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__("@ant-design/icons");
199
+ var _emotion_css__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__("@emotion/css");
200
+ var _lottiefiles_dotlottie_react__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__("@lottiefiles/dotlottie-react");
201
+ var antd__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__("antd");
202
+ var antd_style__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__("antd-style");
203
+ var react_i18next__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__("react-i18next");
204
+ var react_router_dom__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__("react-router-dom");
205
+ var _api_client__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__("../api-client");
206
+ var _application__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__("../application");
207
+ var _application_Plugin__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__("../application/Plugin");
208
+ var _block_provider_PageLayout__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__("../block-provider/PageLayout");
209
+ var _collection_manager__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__("../collection-manager");
210
+ var _route_switch__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__("../route-switch");
211
+ var _schema_component__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__("../schema-component");
212
+ var _schema_component_antd_error_fallback__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__("../schema-component/antd/error-fallback");
213
+ var _schema_initializer__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__("../schema-initializer");
214
+ var _schema_initializer_SchemaInitializerPlugin__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__("../schema-initializer/SchemaInitializerPlugin");
215
+ var _schema_settings__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__("../schema-settings");
216
+ var _schema_templates__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__("../schema-templates");
217
+ var _user__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__("../user");
218
+ var _acl_ACLPlugin__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__("./acl/ACLPlugin");
219
+ var _admin_layout_AdminLayoutPlugin__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__("./admin-layout/AdminLayoutPlugin");
220
+ var _admin_layout_components_WelcomeCard__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__("./admin-layout/components/WelcomeCard");
221
+ var _attachment_preview__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__("./attachment-preview");
222
+ var _block_schema_component__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__("./block-schema-component");
223
+ var _context_menu__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__("./context-menu");
224
+ var _document_title__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__("./document-title");
225
+ var _dynamic_page__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__("./dynamic-page");
226
+ var _locale_LocalePlugin__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__("./locale/LocalePlugin");
227
+ var _page_style__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__("./page-style");
228
+ var _pinned_list_PluginPinnedList__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__("./pinned-list/PluginPinnedList");
229
+ var _pm__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__("./pm");
230
+ var _quick_access__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__("./quick-access");
231
+ var _scroll_assistant__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__("./scroll-assistant");
232
+ var _system_settings__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__("./system-settings");
233
+ var _system_version__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__("./system-version");
234
+ var _user_settings__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__("./user-settings");
235
+ var _admin_layout__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__("./admin-layout");
236
+ var _context_menu_useContextMenu__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__("./context-menu/useContextMenu");
245
237
  var __WEBPACK_REEXPORT_OBJECT__ = {};
246
- for(var __WEBPACK_IMPORT_KEY__ in _context_menu_useContextMenu__WEBPACK_IMPORTED_MODULE_43__)if ([
238
+ for(var __WEBPACK_IMPORT_KEY__ in _context_menu_useContextMenu__WEBPACK_IMPORTED_MODULE_41__)if ([
247
239
  "AdminProvider",
248
240
  "BuiltInPlugin",
249
241
  "NoticeArea",
@@ -251,7 +243,7 @@ for(var __WEBPACK_IMPORT_KEY__ in _context_menu_useContextMenu__WEBPACK_IMPORTED
251
243
  "AppNotFound",
252
244
  "default"
253
245
  ].indexOf(__WEBPACK_IMPORT_KEY__) < 0) __WEBPACK_REEXPORT_OBJECT__[__WEBPACK_IMPORT_KEY__] = (function(key) {
254
- return _context_menu_useContextMenu__WEBPACK_IMPORTED_MODULE_43__[key];
246
+ return _context_menu_useContextMenu__WEBPACK_IMPORTED_MODULE_41__[key];
255
247
  }).bind(0, __WEBPACK_IMPORT_KEY__);
256
248
  __webpack_require__.d(__webpack_exports__, __WEBPACK_REEXPORT_OBJECT__);
257
249
  function _tagged_template_literal(strings, raw) {
@@ -281,8 +273,8 @@ function _templateObject1() {
281
273
  return data;
282
274
  }
283
275
  const AppSpin = ()=>/*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
284
- className: (0, _emotion_css__WEBPACK_IMPORTED_MODULE_5__.css)(_templateObject()),
285
- children: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_lottiefiles_dotlottie_react__WEBPACK_IMPORTED_MODULE_6__.DotLottieReact, {
276
+ className: (0, _emotion_css__WEBPACK_IMPORTED_MODULE_4__.css)(_templateObject()),
277
+ children: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_lottiefiles_dotlottie_react__WEBPACK_IMPORTED_MODULE_5__.DotLottieReact, {
286
278
  style: {
287
279
  width: '100%',
288
280
  maxWidth: '640px'
@@ -292,7 +284,7 @@ const AppSpin = ()=>/*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE
292
284
  autoplay: true
293
285
  })
294
286
  });
295
- const useStyles = (0, antd_style__WEBPACK_IMPORTED_MODULE_8__.createStyles)((param)=>{
287
+ const useStyles = (0, antd_style__WEBPACK_IMPORTED_MODULE_7__.createStyles)((param)=>{
296
288
  let { css } = param;
297
289
  return {
298
290
  modal: css(_templateObject1())
@@ -300,17 +292,17 @@ const useStyles = (0, antd_style__WEBPACK_IMPORTED_MODULE_8__.createStyles)((par
300
292
  });
301
293
  const useErrorProps = (app, error)=>{
302
294
  var _error_response_data_errors, _error_response_data, _error_response;
303
- const api = (0, _api_client__WEBPACK_IMPORTED_MODULE_11__.useAPIClient)();
295
+ const api = (0, _api_client__WEBPACK_IMPORTED_MODULE_10__.useAPIClient)();
304
296
  if (!error) return {};
305
297
  const err = (null == error ? void 0 : null === (_error_response = error.response) || void 0 === _error_response ? void 0 : null === (_error_response_data = _error_response.data) || void 0 === _error_response_data ? void 0 : null === (_error_response_data_errors = _error_response_data.errors) || void 0 === _error_response_data_errors ? void 0 : _error_response_data_errors[0]) || error;
306
- const subApp = (0, _tachybase_sdk__WEBPACK_IMPORTED_MODULE_3__.getSubAppName)(app.getPublicPath());
298
+ const subApp = (0, _tachybase_sdk__WEBPACK_IMPORTED_MODULE_2__.getSubAppName)(app.getPublicPath());
307
299
  switch(err.code){
308
300
  case 'USER_HAS_NO_ROLES_ERR':
309
301
  return {
310
302
  title: app.i18n.t('Permission denied'),
311
303
  subTitle: err.message,
312
304
  extra: [
313
- /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_7__.Button, {
305
+ /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_6__.Button, {
314
306
  type: "primary",
315
307
  onClick: ()=>{
316
308
  api.auth.setToken(null);
@@ -318,7 +310,7 @@ const useErrorProps = (app, error)=>{
318
310
  },
319
311
  children: app.i18n.t('Sign in with another account')
320
312
  }, "try"),
321
- subApp ? /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_7__.Button, {
313
+ subApp ? /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_6__.Button, {
322
314
  onClick: ()=>window.location.href = '/admin',
323
315
  children: app.i18n.t('Return to the main application')
324
316
  }, "back") : null
@@ -328,18 +320,18 @@ const useErrorProps = (app, error)=>{
328
320
  return {};
329
321
  }
330
322
  };
331
- const AppError = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_2__.observer)((param)=>{
323
+ const AppError = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.observer)((param)=>{
332
324
  let { app, error } = param;
333
325
  const props = useErrorProps(app, error);
334
326
  const { styles } = useStyles();
335
327
  return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
336
- children: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_7__.Result, {
328
+ children: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_6__.Result, {
337
329
  className: styles.modal,
338
330
  status: "error",
339
331
  title: app.i18n.t('App error'),
340
332
  subTitle: app.i18n.t(null == error ? void 0 : error.message),
341
333
  extra: [
342
- /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_7__.Button, {
334
+ /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_6__.Button, {
343
335
  type: "primary",
344
336
  onClick: ()=>window.location.reload(),
345
337
  children: app.i18n.t('Try again')
@@ -354,7 +346,7 @@ const AppError = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_2__.observer)((p
354
346
  const getProps = (app)=>{
355
347
  if (app.ws.serverDown) return {
356
348
  status: 'error',
357
- icon: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_4__.DisconnectOutlined, {}),
349
+ icon: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_3__.DisconnectOutlined, {}),
358
350
  title: "You're offline",
359
351
  subTitle: 'Please check the server status or network connection status'
360
352
  };
@@ -371,7 +363,7 @@ const getProps = (app)=>{
371
363
  var _app_error1;
372
364
  return {
373
365
  status: 'info',
374
- icon: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_4__.LoadingOutlined, {}),
366
+ icon: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_3__.LoadingOutlined, {}),
375
367
  title: 'App initializing',
376
368
  subTitle: null === (_app_error1 = app.error) || void 0 === _app_error1 ? void 0 : _app_error1.message
377
369
  };
@@ -412,7 +404,7 @@ const getProps = (app)=>{
412
404
  var _app_error_command, _app_error6, _app_error7, _app_error_command1, _app_error8;
413
405
  const props = {
414
406
  status: 'info',
415
- icon: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_4__.LoadingOutlined, {}),
407
+ icon: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(_ant_design_icons__WEBPACK_IMPORTED_MODULE_3__.LoadingOutlined, {}),
416
408
  title: null === (_app_error6 = app.error) || void 0 === _app_error6 ? void 0 : null === (_app_error_command = _app_error6.command) || void 0 === _app_error_command ? void 0 : _app_error_command.name,
417
409
  subTitle: null === (_app_error7 = app.error) || void 0 === _app_error7 ? void 0 : _app_error7.message
418
410
  };
@@ -452,12 +444,12 @@ const getProps = (app)=>{
452
444
  }
453
445
  return {};
454
446
  };
455
- const AppMaintaining = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_2__.observer)((param)=>{
447
+ const AppMaintaining = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.observer)((param)=>{
456
448
  let { app } = param;
457
449
  const { icon, status, title, subTitle } = getProps(app);
458
450
  const { styles } = useStyles();
459
451
  return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)("div", {
460
- children: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_7__.Result, {
452
+ children: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_6__.Result, {
461
453
  className: styles.modal,
462
454
  icon: icon,
463
455
  status: status,
@@ -468,30 +460,30 @@ const AppMaintaining = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_2__.observ
468
460
  }, {
469
461
  displayName: 'AppMaintaining'
470
462
  });
471
- const AppMaintainingDialog = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_2__.observer)((param)=>{
463
+ const AppMaintainingDialog = (0, _tachybase_schema__WEBPACK_IMPORTED_MODULE_1__.observer)((param)=>{
472
464
  let { app } = param;
473
465
  const { icon, status, title, subTitle } = getProps(app);
474
466
  const manager = app.noticeManager;
475
- manager.status(app.i18n.t(title) + app.i18n.t(subTitle), _application__WEBPACK_IMPORTED_MODULE_12__.NoticeLevel.INFO);
467
+ manager.status(app.i18n.t(title) + ' ' + app.i18n.t(subTitle), _application__WEBPACK_IMPORTED_MODULE_11__.NoticeLevel.INFO);
476
468
  return null;
477
469
  }, {
478
470
  displayName: 'AppMaintainingDialog'
479
471
  });
480
472
  const AppNotFound = ()=>{
481
- const { t } = (0, react_i18next__WEBPACK_IMPORTED_MODULE_9__.useTranslation)();
482
- const app = (0, _application__WEBPACK_IMPORTED_MODULE_12__.useApp)();
483
- return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_7__.Result, {
473
+ const { t } = (0, react_i18next__WEBPACK_IMPORTED_MODULE_8__.useTranslation)();
474
+ const app = (0, _application__WEBPACK_IMPORTED_MODULE_11__.useApp)();
475
+ return /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_6__.Result, {
484
476
  status: "404",
485
477
  title: "404",
486
478
  subTitle: t('Sorry, the page you visited does not exist.'),
487
- extra: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_7__.Button, {
479
+ extra: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(antd__WEBPACK_IMPORTED_MODULE_6__.Button, {
488
480
  onClick: ()=>location.href = app.adminUrl,
489
481
  type: "primary",
490
482
  children: t('Back Home')
491
483
  })
492
484
  });
493
485
  };
494
- class BuiltInPlugin extends _application_Plugin__WEBPACK_IMPORTED_MODULE_13__.Plugin {
486
+ class BuiltInPlugin extends _application_Plugin__WEBPACK_IMPORTED_MODULE_12__.Plugin {
495
487
  async afterAdd() {
496
488
  this.app.addComponents({
497
489
  AppSpin,
@@ -505,8 +497,8 @@ class BuiltInPlugin extends _application_Plugin__WEBPACK_IMPORTED_MODULE_13__.Pl
505
497
  async load() {
506
498
  this.addComponents();
507
499
  this.addRoutes();
508
- this.app.use(_user__WEBPACK_IMPORTED_MODULE_23__.CurrentUserProvider);
509
- this.app.use(_user__WEBPACK_IMPORTED_MODULE_23__.CurrentUserSettingsMenuProvider);
500
+ this.app.use(_user__WEBPACK_IMPORTED_MODULE_22__.CurrentUserProvider);
501
+ this.app.use(_user__WEBPACK_IMPORTED_MODULE_22__.CurrentUserSettingsMenuProvider);
510
502
  this.addSystemSettingGroups();
511
503
  }
512
504
  addSystemSettingGroups() {
@@ -534,7 +526,7 @@ class BuiltInPlugin extends _application_Plugin__WEBPACK_IMPORTED_MODULE_13__.Pl
534
526
  addRoutes() {
535
527
  this.router.add('root', {
536
528
  path: '/',
537
- element: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_10__.Navigate, {
529
+ element: /*#__PURE__*/ (0, react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__.jsx)(react_router_dom__WEBPACK_IMPORTED_MODULE_9__.Navigate, {
538
530
  replace: true,
539
531
  to: "/admin"
540
532
  })
@@ -554,26 +546,26 @@ class BuiltInPlugin extends _application_Plugin__WEBPACK_IMPORTED_MODULE_13__.Pl
554
546
  }
555
547
  addComponents() {
556
548
  this.app.addComponents({
557
- ErrorFallback: _schema_component_antd_error_fallback__WEBPACK_IMPORTED_MODULE_18__.ErrorFallback,
558
- RouteSchemaComponent: _route_switch__WEBPACK_IMPORTED_MODULE_16__.RouteSchemaComponent,
559
- BlockTemplatePage: _schema_templates__WEBPACK_IMPORTED_MODULE_22__.BlockTemplatePage,
560
- BlockTemplateDetails: _schema_templates__WEBPACK_IMPORTED_MODULE_22__.BlockTemplateDetails,
561
- WelcomeCard: _admin_layout_components_WelcomeCard__WEBPACK_IMPORTED_MODULE_26__.WelcomeCard,
562
- PageLayout: _block_provider_PageLayout__WEBPACK_IMPORTED_MODULE_14__.PageLayout
549
+ ErrorFallback: _schema_component_antd_error_fallback__WEBPACK_IMPORTED_MODULE_17__.ErrorFallback,
550
+ RouteSchemaComponent: _route_switch__WEBPACK_IMPORTED_MODULE_15__.RouteSchemaComponent,
551
+ BlockTemplatePage: _schema_templates__WEBPACK_IMPORTED_MODULE_21__.BlockTemplatePage,
552
+ BlockTemplateDetails: _schema_templates__WEBPACK_IMPORTED_MODULE_21__.BlockTemplateDetails,
553
+ WelcomeCard: _admin_layout_components_WelcomeCard__WEBPACK_IMPORTED_MODULE_25__.WelcomeCard,
554
+ PageLayout: _block_provider_PageLayout__WEBPACK_IMPORTED_MODULE_13__.PageLayout
563
555
  });
564
556
  }
565
557
  async addPlugins() {
566
- await this.app.pm.add(_schema_initializer__WEBPACK_IMPORTED_MODULE_19__.AssociationFilterPlugin);
567
- await this.app.pm.add(_locale_LocalePlugin__WEBPACK_IMPORTED_MODULE_33__.LocalePlugin, {
558
+ await this.app.pm.add(_schema_initializer__WEBPACK_IMPORTED_MODULE_18__.AssociationFilterPlugin);
559
+ await this.app.pm.add(_locale_LocalePlugin__WEBPACK_IMPORTED_MODULE_31__.LocalePlugin, {
568
560
  name: 'builtin-locale'
569
561
  });
570
- await this.app.pm.add(_admin_layout_AdminLayoutPlugin__WEBPACK_IMPORTED_MODULE_25__.AdminLayoutPlugin, {
562
+ await this.app.pm.add(_admin_layout_AdminLayoutPlugin__WEBPACK_IMPORTED_MODULE_24__.AdminLayoutPlugin, {
571
563
  name: 'admin-layout'
572
564
  });
573
- await this.app.pm.add(_system_settings__WEBPACK_IMPORTED_MODULE_39__.SystemSettingsPlugin, {
565
+ await this.app.pm.add(_system_settings__WEBPACK_IMPORTED_MODULE_37__.SystemSettingsPlugin, {
574
566
  name: 'system-setting'
575
567
  });
576
- await this.app.pm.add(_pinned_list_PluginPinnedList__WEBPACK_IMPORTED_MODULE_35__.PluginPinnedList, {
568
+ await this.app.pm.add(_pinned_list_PluginPinnedList__WEBPACK_IMPORTED_MODULE_33__.PluginPinnedList, {
577
569
  name: 'pinned-list',
578
570
  config: {
579
571
  items: {
@@ -581,82 +573,118 @@ class BuiltInPlugin extends _application_Plugin__WEBPACK_IMPORTED_MODULE_13__.Pl
581
573
  order: 50,
582
574
  component: 'DesignableSwitch',
583
575
  pin: true,
584
- snippet: 'ui.*'
576
+ snippet: 'ui.*',
577
+ belongTo: 'pinnedmenu'
585
578
  },
586
579
  wf: {
587
580
  order: 100,
588
581
  component: 'WorkflowLink',
589
582
  pin: true,
590
- snippet: 'pm.*'
583
+ snippet: 'pm.*',
584
+ belongTo: 'pinnedmenu'
591
585
  },
592
586
  ds: {
593
587
  order: 200,
594
588
  component: 'DatasourceLink',
595
589
  pin: true,
596
- snippet: 'pm.*'
590
+ snippet: 'pm.*',
591
+ belongTo: 'pinnedmenu'
597
592
  },
598
593
  sc: {
599
594
  order: 400,
600
595
  component: 'SettingsCenterDropdown',
601
596
  pin: true,
602
597
  snippet: 'pm.*',
603
- isPublic: true
598
+ isPublic: true,
599
+ belongTo: 'pinnedmenu'
600
+ },
601
+ ca: {
602
+ order: 300,
603
+ component: 'CalculatorButton',
604
+ pin: true,
605
+ isPublic: true,
606
+ belongTo: 'hoverbutton'
607
+ },
608
+ cm: {
609
+ order: 90,
610
+ component: 'ContextMenuButton',
611
+ pin: true,
612
+ isPublic: true,
613
+ belongTo: 'hoverbutton'
614
+ },
615
+ db: {
616
+ order: 60,
617
+ component: 'DesignableButton',
618
+ pin: true,
619
+ snippet: 'ui.*',
620
+ belongTo: 'hoverbutton'
621
+ },
622
+ saj: {
623
+ order: 30,
624
+ component: 'SearchAndJumpButton',
625
+ pin: true,
626
+ snippet: 'pm.*',
627
+ belongTo: 'hoverbutton'
628
+ },
629
+ ai: {
630
+ order: 330,
631
+ component: 'AIChatButton',
632
+ pin: true,
633
+ isPublic: true,
634
+ belongTo: 'hoverbutton'
604
635
  }
605
636
  }
606
637
  }
607
638
  });
608
- await this.app.pm.add(_schema_component__WEBPACK_IMPORTED_MODULE_17__.SchemaComponentPlugin, {
639
+ await this.app.pm.add(_schema_component__WEBPACK_IMPORTED_MODULE_16__.SchemaComponentPlugin, {
609
640
  name: 'schema-component'
610
641
  });
611
- await this.app.pm.add(_schema_initializer_SchemaInitializerPlugin__WEBPACK_IMPORTED_MODULE_20__.SchemaInitializerPlugin, {
642
+ await this.app.pm.add(_schema_initializer_SchemaInitializerPlugin__WEBPACK_IMPORTED_MODULE_19__.SchemaInitializerPlugin, {
612
643
  name: 'schema-initializer'
613
644
  });
614
- await this.app.pm.add(_schema_settings__WEBPACK_IMPORTED_MODULE_21__.SchemaSettingsPlugin, {
645
+ await this.app.pm.add(_schema_settings__WEBPACK_IMPORTED_MODULE_20__.SchemaSettingsPlugin, {
615
646
  name: 'schema-settings'
616
647
  });
617
- await this.app.pm.add(_block_schema_component__WEBPACK_IMPORTED_MODULE_29__.PluginBlockSchemaComponent, {
648
+ await this.app.pm.add(_block_schema_component__WEBPACK_IMPORTED_MODULE_27__.PluginBlockSchemaComponent, {
618
649
  name: 'block-schema-component'
619
650
  });
620
- await this.app.pm.add(_schema_component__WEBPACK_IMPORTED_MODULE_17__.AntdSchemaComponentPlugin, {
651
+ await this.app.pm.add(_schema_component__WEBPACK_IMPORTED_MODULE_16__.AntdSchemaComponentPlugin, {
621
652
  name: 'antd-schema-component'
622
653
  });
623
- await this.app.pm.add(_acl_ACLPlugin__WEBPACK_IMPORTED_MODULE_24__.ACLPlugin, {
654
+ await this.app.pm.add(_acl_ACLPlugin__WEBPACK_IMPORTED_MODULE_23__.ACLPlugin, {
624
655
  name: 'builtin-acl'
625
656
  });
626
- await this.app.pm.add(_document_title__WEBPACK_IMPORTED_MODULE_31__.RemoteDocumentTitlePlugin, {
657
+ await this.app.pm.add(_document_title__WEBPACK_IMPORTED_MODULE_29__.RemoteDocumentTitlePlugin, {
627
658
  name: 'remote-document-title'
628
659
  });
629
- await this.app.pm.add(_pm__WEBPACK_IMPORTED_MODULE_36__.PMPlugin, {
660
+ await this.app.pm.add(_pm__WEBPACK_IMPORTED_MODULE_34__.PMPlugin, {
630
661
  name: 'builtin-pm'
631
662
  });
632
- await this.app.pm.add(_collection_manager__WEBPACK_IMPORTED_MODULE_15__.CollectionPlugin, {
663
+ await this.app.pm.add(_collection_manager__WEBPACK_IMPORTED_MODULE_14__.CollectionPlugin, {
633
664
  name: 'builtin-collection'
634
665
  });
635
- await this.app.pm.add(_context_menu__WEBPACK_IMPORTED_MODULE_30__.PluginContextMenu, {
666
+ await this.app.pm.add(_context_menu__WEBPACK_IMPORTED_MODULE_28__.PluginContextMenu, {
636
667
  name: 'context-menu'
637
668
  });
638
- await this.app.pm.add(_assistant__WEBPACK_IMPORTED_MODULE_27__.PluginAssistant, {
639
- name: 'assistant'
640
- });
641
- await this.app.pm.add(_user_settings__WEBPACK_IMPORTED_MODULE_41__.UserSettingsPlugin, {
669
+ await this.app.pm.add(_user_settings__WEBPACK_IMPORTED_MODULE_39__.UserSettingsPlugin, {
642
670
  name: 'user-settings'
643
671
  });
644
- await this.app.pm.add(_attachment_preview__WEBPACK_IMPORTED_MODULE_28__.AttachmentPreviewPlugin, {
672
+ await this.app.pm.add(_attachment_preview__WEBPACK_IMPORTED_MODULE_26__.AttachmentPreviewPlugin, {
645
673
  name: 'attachment-preview'
646
674
  });
647
- await this.app.pm.add(_page_style__WEBPACK_IMPORTED_MODULE_34__.PluginPageStyle, {
675
+ await this.app.pm.add(_page_style__WEBPACK_IMPORTED_MODULE_32__.PluginPageStyle, {
648
676
  name: 'page-style'
649
677
  });
650
- await this.app.pm.add(_quick_access__WEBPACK_IMPORTED_MODULE_37__.QuickAccessPlugin, {
678
+ await this.app.pm.add(_quick_access__WEBPACK_IMPORTED_MODULE_35__.QuickAccessPlugin, {
651
679
  name: 'quick-access'
652
680
  });
653
- await this.app.pm.add(_scroll_assistant__WEBPACK_IMPORTED_MODULE_38__.ScrollAssistantPlugin, {
681
+ await this.app.pm.add(_scroll_assistant__WEBPACK_IMPORTED_MODULE_36__.ScrollAssistantPlugin, {
654
682
  name: 'scroll-assistant'
655
683
  });
656
- await this.app.pm.add(_dynamic_page__WEBPACK_IMPORTED_MODULE_32__.PluginDynamicPage, {
684
+ await this.app.pm.add(_dynamic_page__WEBPACK_IMPORTED_MODULE_30__.PluginDynamicPage, {
657
685
  name: 'dynamic-page'
658
686
  });
659
- await this.app.pm.add(_system_version__WEBPACK_IMPORTED_MODULE_40__.PluginSystemVersion, {
687
+ await this.app.pm.add(_system_version__WEBPACK_IMPORTED_MODULE_38__.PluginSystemVersion, {
660
688
  name: 'system-version'
661
689
  });
662
690
  }
@@ -52,6 +52,7 @@ const external_react_router_namespaceObject = require("react-router");
52
52
  const external_react_router_dom_namespaceObject = require("react-router-dom");
53
53
  const index_js_namespaceObject = require("../../icon/index.js");
54
54
  const external_PageStyle_provider_js_namespaceObject = require("./PageStyle.provider.js");
55
+ const external_TabHeader_style_js_namespaceObject = require("./TabHeader.style.js");
55
56
  function _tagged_template_literal(strings, raw) {
56
57
  if (!raw) raw = strings.slice(0);
57
58
  return Object.freeze(Object.defineProperties(strings, {
@@ -61,41 +62,29 @@ function _tagged_template_literal(strings, raw) {
61
62
  }));
62
63
  }
63
64
  function _templateObject() {
64
- const data = _tagged_template_literal([
65
- "\n margin: 6px 2px;\n align-items: center;\n background-image: none;\n background: rgba(0, 0, 0, 0.04);\n border-radius: 6px;\n border: 1px solid transparent;\n color: rgba(255, 255, 255, 0.88);\n cursor: pointer;\n display: inline-flex;\n font-size: 14px;\n font-weight: 400;\n gap: 8px;\n height: 32px;\n justify-content: center;\n line-height: 1.5714285714285714;\n outline: none;\n padding: 4px 15px;\n position: relative;\n text-align: center;\n touch-action: manipulation;\n transition: all 0.1s cubic-bezier(0.645, 0.045, 0.355, 1);\n user-select: none;\n white-space: nowrap;\n "
66
- ]);
67
- _templateObject = function() {
68
- return data;
69
- };
70
- return data;
71
- }
72
- function _templateObject1() {
73
- const data = _tagged_template_literal([
74
- "\n background: transparent;\n "
75
- ]);
76
- _templateObject1 = function() {
77
- return data;
78
- };
79
- return data;
80
- }
81
- function _templateObject2() {
82
65
  const data = _tagged_template_literal([
83
66
  "\n color: rgba(255, 255, 255, 0.88);\n "
84
67
  ]);
85
- _templateObject2 = function() {
68
+ _templateObject = function() {
86
69
  return data;
87
70
  };
88
71
  return data;
89
72
  }
90
73
  const Tag = (param)=>{
91
74
  let { onClick, onClose, children, active } = param;
75
+ const { styles } = (0, external_TabHeader_style_js_namespaceObject.useStyles)();
92
76
  return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("span", {
93
77
  onClick: onClick,
94
- className: external_classnames_default()((0, css_namespaceObject.css)(_templateObject()), active ? '' : (0, css_namespaceObject.css)(_templateObject1())),
78
+ className: external_classnames_default()(styles.tabHeader, {
79
+ active
80
+ }),
95
81
  children: [
96
- children,
82
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
83
+ className: "tab-text",
84
+ children: children
85
+ }),
97
86
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.Button, {
98
- className: (0, css_namespaceObject.css)(_templateObject2()),
87
+ className: (0, css_namespaceObject.css)(_templateObject()),
99
88
  type: "text",
100
89
  onClick: onClose,
101
90
  icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.Icon, {
@@ -110,17 +99,21 @@ const TabHeader = ()=>{
110
99
  const location = (0, external_react_router_dom_namespaceObject.useLocation)();
111
100
  const { items, setItems } = (0, external_react_namespaceObject.useContext)(external_PageStyle_provider_js_namespaceObject.PageStyleContext);
112
101
  const targetKey = location.pathname;
113
- return items.map((item)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Tag, {
114
- active: item.key === targetKey,
115
- onClick: ()=>{
116
- navigate(item.key);
117
- },
118
- onClose: (e)=>{
119
- e.stopPropagation();
120
- setItems((items)=>items.filter((i)=>i.key !== item.key));
121
- },
122
- children: item.label
123
- }, item.key));
102
+ const { styles } = (0, external_TabHeader_style_js_namespaceObject.useStyles)();
103
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
104
+ className: styles.tabWrapper,
105
+ children: items.map((item)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Tag, {
106
+ active: item.key === targetKey,
107
+ onClick: ()=>{
108
+ navigate(item.key);
109
+ },
110
+ onClose: (e)=>{
111
+ e.stopPropagation();
112
+ setItems((items)=>items.filter((i)=>i.key !== item.key));
113
+ },
114
+ children: item.label
115
+ }, item.key))
116
+ });
124
117
  };
125
118
  var __webpack_export_target__ = exports;
126
119
  for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];