@tachybase/client 0.23.35 → 0.23.41

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 (66) hide show
  1. package/es/application/schema-initializer/components/SchemaInitializerButton.mjs +1 -1
  2. package/es/built-in/admin-layout/AdminLayout.mjs +15 -1
  3. package/es/built-in/index.mjs +0 -5
  4. package/es/collection-manager/interfaces/properties/index.mjs +1 -1
  5. package/es/index.d.ts +0 -1
  6. package/es/index.mjs +0 -1
  7. package/es/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +1 -1
  8. package/es/modules/actions/view-edit-popup/PopupActionInitializer.mjs +1 -1
  9. package/es/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +1 -1
  10. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +1 -1
  11. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +12 -12
  12. package/es/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +2 -2
  13. package/es/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +2 -2
  14. package/es/modules/dialog/__e2e__/templatesOfBug.mjs +9 -9
  15. package/es/schema-component/antd/association-field/schema.mjs +1 -1
  16. package/es/schema-component/antd/menu/AdminMenu.mjs +5 -1
  17. package/es/schema-component/antd/menu/AdminMenu.style.mjs +3 -3
  18. package/es/schema-component/antd/menu/Menu.Designer.d.ts +1 -0
  19. package/es/schema-component/antd/menu/Menu.Designer.mjs +4 -3
  20. package/es/schema-component/antd/menu/Menu.mjs +24 -30
  21. package/es/schema-component/antd/menu/Menu.styles.mjs +4 -2
  22. package/es/schema-component/antd/menu/MenuAdd.d.ts +1 -0
  23. package/es/schema-component/antd/menu/MenuAdd.mjs +18 -0
  24. package/es/schema-component/antd/menu/MenuSearchAdd.d.ts +7 -0
  25. package/es/schema-component/antd/menu/MenuSearchAdd.mjs +41 -0
  26. package/es/schema-component/antd/menu/MenuSearchAdd.style.d.ts +3 -0
  27. package/es/schema-component/antd/menu/MenuSearchAdd.style.mjs +25 -0
  28. package/es/schema-component/common/sortable-item/SortableItem.d.ts +1 -0
  29. package/es/schema-initializer/SchemaInitializerPlugin.mjs +1 -0
  30. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
  31. package/es/schema-initializer/buttons/TabPaneInitializers.mjs +9 -1
  32. package/lib/application/schema-initializer/components/SchemaInitializerButton.js +1 -1
  33. package/lib/built-in/admin-layout/AdminLayout.js +15 -1
  34. package/lib/built-in/index.js +99 -110
  35. package/lib/collection-manager/interfaces/properties/index.js +1 -1
  36. package/lib/index.js +71 -86
  37. package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.js +1 -1
  38. package/lib/modules/actions/view-edit-popup/PopupActionInitializer.js +1 -1
  39. package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.js +1 -1
  40. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.js +1 -1
  41. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.js +12 -12
  42. package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.js +2 -2
  43. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.js +2 -2
  44. package/lib/modules/dialog/__e2e__/templatesOfBug.js +9 -9
  45. package/lib/schema-component/antd/association-field/schema.js +1 -1
  46. package/lib/schema-component/antd/menu/AdminMenu.js +5 -1
  47. package/lib/schema-component/antd/menu/AdminMenu.style.js +3 -3
  48. package/lib/schema-component/antd/menu/Menu.Designer.js +4 -2
  49. package/lib/schema-component/antd/menu/Menu.js +24 -30
  50. package/lib/schema-component/antd/menu/Menu.styles.js +4 -2
  51. package/lib/{built-in/assistant/context.js → schema-component/antd/menu/MenuAdd.js} +18 -6
  52. package/lib/schema-component/antd/menu/{MenuSearch.js → MenuSearchAdd.js} +30 -21
  53. package/lib/schema-component/antd/menu/MenuSearchAdd.style.js +59 -0
  54. package/lib/schema-initializer/SchemaInitializerPlugin.js +1 -0
  55. package/lib/schema-initializer/buttons/TabPaneInitializers.js +9 -0
  56. package/package.json +7 -7
  57. package/es/built-in/assistant/Assistant.provider.d.ts +0 -3
  58. package/es/built-in/assistant/Assistant.provider.mjs +0 -28
  59. package/es/built-in/assistant/context.d.ts +0 -3
  60. package/es/built-in/assistant/context.mjs +0 -6
  61. package/es/built-in/assistant/index.d.ts +0 -6
  62. package/es/built-in/assistant/index.mjs +0 -9
  63. package/es/schema-component/antd/menu/MenuSearch.d.ts +0 -5
  64. package/es/schema-component/antd/menu/MenuSearch.mjs +0 -32
  65. package/lib/built-in/assistant/Assistant.provider.js +0 -62
  66. package/lib/built-in/assistant/index.js +0 -94
@@ -0,0 +1 @@
1
+ export declare const MenuAdd: (props: any) => import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "../../../index.mjs";
3
+ import * as __WEBPACK_EXTERNAL_MODULE__schema_settings_SchemaSettings_mjs__ from "../../../schema-settings/SchemaSettings.mjs";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__Menu_Designer_mjs__ from "./Menu.Designer.mjs";
5
+ const MenuAdd = (props)=>{
6
+ const { dn } = props;
7
+ const { getAriaLabel } = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.useGetAriaLabelOfDesigner)();
8
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__schema_settings_SchemaSettings_mjs__.SchemaSettingsDropdown, {
9
+ title: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.Icon, {
10
+ type: "PlusOutlined",
11
+ "aria-label": getAriaLabel('add-menu')
12
+ }),
13
+ children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__Menu_Designer_mjs__.InsertMenuItemsGroup, {
14
+ dn: dn
15
+ })
16
+ });
17
+ };
18
+ export { MenuAdd };
@@ -0,0 +1,7 @@
1
+ interface MenuSearchProps {
2
+ setSearchMenuTitle: (title: string) => void;
3
+ designable: boolean;
4
+ dn?: any;
5
+ }
6
+ export declare const MenuSearchAdd: (props: MenuSearchProps) => import("react/jsx-runtime").JSX.Element;
7
+ export {};
@@ -0,0 +1,41 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
2
+ import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
3
+ import * as __WEBPACK_EXTERNAL_MODULE_lodash__ from "lodash";
4
+ import * as __WEBPACK_EXTERNAL_MODULE__index_mjs__ from "../../../index.mjs";
5
+ import * as __WEBPACK_EXTERNAL_MODULE__MenuAdd_mjs__ from "./MenuAdd.mjs";
6
+ import * as __WEBPACK_EXTERNAL_MODULE__MenuSearchAdd_style_mjs__ from "./MenuSearchAdd.style.mjs";
7
+ const MenuSearchAdd = (props)=>{
8
+ const { designable, dn, setSearchMenuTitle } = props;
9
+ const { t } = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.useTranslation)();
10
+ const { styles } = (0, __WEBPACK_EXTERNAL_MODULE__MenuSearchAdd_style_mjs__.useStyles)();
11
+ const handleChange = __WEBPACK_EXTERNAL_MODULE_lodash__["default"].debounce((event)=>{
12
+ event.stopPropagation();
13
+ const searchValue = event.target.value.trim();
14
+ setSearchMenuTitle(searchValue);
15
+ }, 500);
16
+ const handleSearch = (value, event)=>{
17
+ event.stopPropagation();
18
+ __WEBPACK_EXTERNAL_MODULE_lodash__["default"].debounce(setSearchMenuTitle, 500)(value.trim());
19
+ };
20
+ return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
21
+ className: styles.menuSearchAdd,
22
+ children: [
23
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.Input.Search, {
24
+ allowClear: true,
25
+ placeholder: t('search Menu'),
26
+ prefix: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.Icon, {
27
+ type: "SearchOutlined"
28
+ }),
29
+ onChange: handleChange,
30
+ onSearch: handleSearch
31
+ }),
32
+ /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)("div", {
33
+ className: "menu-add-wrapper",
34
+ children: designable && /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__MenuAdd_mjs__.MenuAdd, {
35
+ dn: dn
36
+ })
37
+ })
38
+ ]
39
+ });
40
+ };
41
+ export { MenuSearchAdd };
@@ -0,0 +1,3 @@
1
+ export declare const useStyles: (props?: unknown) => import("antd-style").ReturnStyles<{
2
+ menuSearchAdd: import("antd-style").SerializedStyles;
3
+ }>;
@@ -0,0 +1,25 @@
1
+ import * as __WEBPACK_EXTERNAL_MODULE_antd_style__ 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 /* NOTE: 这里的样式是为了让搜索框的样式, 避免上层 antd 写死的 padding-left: 24px 的影响 */\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n\n /* NOTE: 放这三个样式是为了提升选择器优先级, 覆盖掉 antd 的默认样式 */\n .ant-input-outlined.ant-input-outlined.ant-input-outlined {\n background-color: #f9f9f9;\n border-radius: 5px;\n border: none;\n box-shadow: none;\n }\n\n /* 移除 antd 默认的后置搜索图标 */\n .ant-input-group-addon {\n display: none;\n }\n\n .menu-add-wrapper {\n .ant-dropdown-trigger {\n display: grid;\n place-items: center;\n\n width: 30px;\n /* 这里是为了和前边元素保持对齐, antd 组件写死了高度 */\n height: 28px;\n\n cursor: pointer;\n\n :hover,\n :active {\n border-radius: 5px;\n color: #ffffff;\n background-color: #f4f4f4;\n }\n }\n }\n "
13
+ ]);
14
+ _templateObject = function() {
15
+ return data;
16
+ };
17
+ return data;
18
+ }
19
+ const useStyles = (0, __WEBPACK_EXTERNAL_MODULE_antd_style__.createStyles)((param)=>{
20
+ let { css, token } = param;
21
+ return {
22
+ menuSearchAdd: css(_templateObject())
23
+ };
24
+ });
25
+ export { useStyles };
@@ -9,6 +9,7 @@ interface SortableItemProps extends HTMLAttributes<HTMLDivElement> {
9
9
  schema?: Schema;
10
10
  removeParentsIfNoChildren?: boolean;
11
11
  ref?: React.Ref<any>;
12
+ overStyle?: object;
12
13
  }
13
14
  export declare const SortableItem: React.MemoExoticComponent<import("@tachybase/schema").ReactFC<SortableItemProps & {
14
15
  ref?: React.Ref<any>;
@@ -124,6 +124,7 @@ class SchemaInitializerPlugin extends __WEBPACK_EXTERNAL_MODULE__application_Plu
124
124
  this.app.schemaInitializerManager.add(__WEBPACK_EXTERNAL_MODULE__buttons_index_mjs__.tabPaneInitializersForRecordBlock);
125
125
  this.app.schemaInitializerManager.add(__WEBPACK_EXTERNAL_MODULE__buttons_index_mjs__.tabPaneInitializersForBulkEditFormBlock);
126
126
  this.app.schemaInitializerManager.add(__WEBPACK_EXTERNAL_MODULE__modules_menu_menuItemInitializer_mjs__.menuItemInitializer);
127
+ this.app.schemaInitializerManager.add(__WEBPACK_EXTERNAL_MODULE__buttons_index_mjs__.tabPaneInitializers);
127
128
  }
128
129
  }
129
130
  export { SchemaInitializerPlugin };
@@ -6,6 +6,7 @@ export declare const TabPaneInitializersForBulkEditFormBlock: (props: any) => im
6
6
  * @deprecated
7
7
  */
8
8
  export declare const tabPaneInitializers_deprecated: SchemaInitializer<any, {}>;
9
+ export declare const tabPaneInitializers: SchemaInitializer<any, {}>;
9
10
  /**
10
11
  * @deprecated
11
12
  */
@@ -144,11 +144,19 @@ const TabPaneInitializersForBulkEditFormBlock = (props)=>/*#__PURE__*/ (0, __WEB
144
144
  ...props,
145
145
  isBulkEdit: true
146
146
  });
147
+ const commonOptions = {
148
+ Component: TabPaneInitializers,
149
+ popover: false
150
+ };
147
151
  const tabPaneInitializers_deprecated = new __WEBPACK_EXTERNAL_MODULE__application_schema_initializer_SchemaInitializer_mjs__.SchemaInitializer({
148
152
  name: 'TabPaneInitializers',
149
153
  Component: TabPaneInitializers,
150
154
  popover: false
151
155
  });
156
+ const tabPaneInitializers = new __WEBPACK_EXTERNAL_MODULE__application_schema_initializer_SchemaInitializer_mjs__.SchemaInitializer({
157
+ name: 'popup:addTab',
158
+ ...commonOptions
159
+ });
152
160
  const tabPaneInitializersForRecordBlock = new __WEBPACK_EXTERNAL_MODULE__application_schema_initializer_SchemaInitializer_mjs__.SchemaInitializer({
153
161
  name: 'TabPaneInitializersForCreateFormBlock',
154
162
  Component: TabPaneInitializersForCreateFormBlock,
@@ -159,4 +167,4 @@ const tabPaneInitializersForBulkEditFormBlock = new __WEBPACK_EXTERNAL_MODULE__a
159
167
  Component: TabPaneInitializersForBulkEditFormBlock,
160
168
  popover: false
161
169
  });
162
- export { TabPaneInitializers, TabPaneInitializersForBulkEditFormBlock, TabPaneInitializersForCreateFormBlock, tabPaneInitializersForBulkEditFormBlock, tabPaneInitializersForRecordBlock, tabPaneInitializers_deprecated };
170
+ export { TabPaneInitializers, TabPaneInitializersForBulkEditFormBlock, TabPaneInitializersForCreateFormBlock, tabPaneInitializers, tabPaneInitializersForBulkEditFormBlock, tabPaneInitializersForRecordBlock, tabPaneInitializers_deprecated };
@@ -72,7 +72,7 @@ const SchemaInitializerButton = /*#__PURE__*/ external_react_default().memo((pro
72
72
  textOverflow: 'ellipsis',
73
73
  whiteSpace: 'nowrap',
74
74
  display: 'inline-block',
75
- width: options.icon ? 'calc(100% - 14px)' : '100%',
75
+ width: '100%',
76
76
  verticalAlign: 'bottom'
77
77
  },
78
78
  children: compile(options.title)
@@ -29,7 +29,9 @@ __webpack_require__.d(__webpack_exports__, {
29
29
  AdminLayout: ()=>AdminLayout
30
30
  });
31
31
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
32
- require("react");
32
+ const icons_namespaceObject = require("@ant-design/icons");
33
+ const external_antd_namespaceObject = require("antd");
34
+ const index_js_namespaceObject = require("../pinned-list/index.js");
33
35
  const external_AdminProvider_js_namespaceObject = require("./AdminProvider.js");
34
36
  const external_InternalAdminLayout_js_namespaceObject = require("./InternalAdminLayout.js");
35
37
  const external_NoticeArea_js_namespaceObject = require("./NoticeArea.js");
@@ -38,6 +40,18 @@ const AdminLayout = (props)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)
38
40
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_NoticeArea_js_namespaceObject.NoticeArea, {}),
39
41
  /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_InternalAdminLayout_js_namespaceObject.InternalAdminLayout, {
40
42
  ...props
43
+ }),
44
+ /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_antd_namespaceObject.FloatButton.Group, {
45
+ trigger: "click",
46
+ type: "default",
47
+ style: {
48
+ right: 24,
49
+ zIndex: 1250
50
+ },
51
+ icon: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(icons_namespaceObject.ToolOutlined, {}),
52
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(index_js_namespaceObject.PinnedPluginList, {
53
+ belongToFilter: "hoverbutton"
54
+ })
41
55
  })
42
56
  ]
43
57
  });
@@ -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: {
@@ -644,58 +636,55 @@ class BuiltInPlugin extends _application_Plugin__WEBPACK_IMPORTED_MODULE_13__.Pl
644
636
  }
645
637
  }
646
638
  });
647
- 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, {
648
640
  name: 'schema-component'
649
641
  });
650
- 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, {
651
643
  name: 'schema-initializer'
652
644
  });
653
- 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, {
654
646
  name: 'schema-settings'
655
647
  });
656
- 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, {
657
649
  name: 'block-schema-component'
658
650
  });
659
- 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, {
660
652
  name: 'antd-schema-component'
661
653
  });
662
- 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, {
663
655
  name: 'builtin-acl'
664
656
  });
665
- 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, {
666
658
  name: 'remote-document-title'
667
659
  });
668
- await this.app.pm.add(_pm__WEBPACK_IMPORTED_MODULE_36__.PMPlugin, {
660
+ await this.app.pm.add(_pm__WEBPACK_IMPORTED_MODULE_34__.PMPlugin, {
669
661
  name: 'builtin-pm'
670
662
  });
671
- 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, {
672
664
  name: 'builtin-collection'
673
665
  });
674
- 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, {
675
667
  name: 'context-menu'
676
668
  });
677
- await this.app.pm.add(_assistant__WEBPACK_IMPORTED_MODULE_27__.PluginAssistant, {
678
- name: 'assistant'
679
- });
680
- 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, {
681
670
  name: 'user-settings'
682
671
  });
683
- 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, {
684
673
  name: 'attachment-preview'
685
674
  });
686
- 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, {
687
676
  name: 'page-style'
688
677
  });
689
- 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, {
690
679
  name: 'quick-access'
691
680
  });
692
- 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, {
693
682
  name: 'scroll-assistant'
694
683
  });
695
- 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, {
696
685
  name: 'dynamic-page'
697
686
  });
698
- 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, {
699
688
  name: 'system-version'
700
689
  });
701
690
  }