@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.
- package/es/application/schema-initializer/components/SchemaInitializerButton.mjs +1 -1
- package/es/built-in/admin-layout/AdminLayout.mjs +15 -1
- package/es/built-in/index.mjs +0 -5
- package/es/collection-manager/interfaces/properties/index.mjs +1 -1
- package/es/index.d.ts +0 -1
- package/es/index.mjs +0 -1
- package/es/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +1 -1
- package/es/modules/actions/view-edit-popup/PopupActionInitializer.mjs +1 -1
- package/es/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +1 -1
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +1 -1
- package/es/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +12 -12
- package/es/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +2 -2
- package/es/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +2 -2
- package/es/modules/dialog/__e2e__/templatesOfBug.mjs +9 -9
- package/es/schema-component/antd/association-field/schema.mjs +1 -1
- package/es/schema-component/antd/menu/AdminMenu.mjs +5 -1
- package/es/schema-component/antd/menu/AdminMenu.style.mjs +3 -3
- package/es/schema-component/antd/menu/Menu.Designer.d.ts +1 -0
- package/es/schema-component/antd/menu/Menu.Designer.mjs +4 -3
- package/es/schema-component/antd/menu/Menu.mjs +24 -30
- package/es/schema-component/antd/menu/Menu.styles.mjs +4 -2
- package/es/schema-component/antd/menu/MenuAdd.d.ts +1 -0
- package/es/schema-component/antd/menu/MenuAdd.mjs +18 -0
- package/es/schema-component/antd/menu/MenuSearchAdd.d.ts +7 -0
- package/es/schema-component/antd/menu/MenuSearchAdd.mjs +41 -0
- package/es/schema-component/antd/menu/MenuSearchAdd.style.d.ts +3 -0
- package/es/schema-component/antd/menu/MenuSearchAdd.style.mjs +25 -0
- package/es/schema-component/common/sortable-item/SortableItem.d.ts +1 -0
- package/es/schema-initializer/SchemaInitializerPlugin.mjs +1 -0
- package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
- package/es/schema-initializer/buttons/TabPaneInitializers.mjs +9 -1
- package/lib/application/schema-initializer/components/SchemaInitializerButton.js +1 -1
- package/lib/built-in/admin-layout/AdminLayout.js +15 -1
- package/lib/built-in/index.js +99 -110
- package/lib/collection-manager/interfaces/properties/index.js +1 -1
- package/lib/index.js +71 -86
- package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.js +1 -1
- package/lib/modules/actions/view-edit-popup/PopupActionInitializer.js +1 -1
- package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.js +1 -1
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.js +1 -1
- package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.js +12 -12
- package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.js +2 -2
- package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.js +2 -2
- package/lib/modules/dialog/__e2e__/templatesOfBug.js +9 -9
- package/lib/schema-component/antd/association-field/schema.js +1 -1
- package/lib/schema-component/antd/menu/AdminMenu.js +5 -1
- package/lib/schema-component/antd/menu/AdminMenu.style.js +3 -3
- package/lib/schema-component/antd/menu/Menu.Designer.js +4 -2
- package/lib/schema-component/antd/menu/Menu.js +24 -30
- package/lib/schema-component/antd/menu/Menu.styles.js +4 -2
- package/lib/{built-in/assistant/context.js → schema-component/antd/menu/MenuAdd.js} +18 -6
- package/lib/schema-component/antd/menu/{MenuSearch.js → MenuSearchAdd.js} +30 -21
- package/lib/schema-component/antd/menu/MenuSearchAdd.style.js +59 -0
- package/lib/schema-initializer/SchemaInitializerPlugin.js +1 -0
- package/lib/schema-initializer/buttons/TabPaneInitializers.js +9 -0
- package/package.json +7 -7
- package/es/built-in/assistant/Assistant.provider.d.ts +0 -3
- package/es/built-in/assistant/Assistant.provider.mjs +0 -28
- package/es/built-in/assistant/context.d.ts +0 -3
- package/es/built-in/assistant/context.mjs +0 -6
- package/es/built-in/assistant/index.d.ts +0 -6
- package/es/built-in/assistant/index.mjs +0 -9
- package/es/schema-component/antd/menu/MenuSearch.d.ts +0 -5
- package/es/schema-component/antd/menu/MenuSearch.mjs +0 -32
- package/lib/built-in/assistant/Assistant.provider.js +0 -62
- package/lib/built-in/assistant/index.js +0 -94
|
@@ -28,7 +28,7 @@ const SchemaInitializerButton = /*#__PURE__*/ __WEBPACK_EXTERNAL_MODULE_react__[
|
|
|
28
28
|
textOverflow: 'ellipsis',
|
|
29
29
|
whiteSpace: 'nowrap',
|
|
30
30
|
display: 'inline-block',
|
|
31
|
-
width:
|
|
31
|
+
width: '100%',
|
|
32
32
|
verticalAlign: 'bottom'
|
|
33
33
|
},
|
|
34
34
|
children: compile(options.title)
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
|
|
2
|
-
import "
|
|
2
|
+
import * as __WEBPACK_EXTERNAL_MODULE__ant_design_icons__ from "@ant-design/icons";
|
|
3
|
+
import * as __WEBPACK_EXTERNAL_MODULE_antd__ from "antd";
|
|
4
|
+
import * as __WEBPACK_EXTERNAL_MODULE__pinned_list_index_mjs__ from "../pinned-list/index.mjs";
|
|
3
5
|
import * as __WEBPACK_EXTERNAL_MODULE__AdminProvider_mjs__ from "./AdminProvider.mjs";
|
|
4
6
|
import * as __WEBPACK_EXTERNAL_MODULE__InternalAdminLayout_mjs__ from "./InternalAdminLayout.mjs";
|
|
5
7
|
import * as __WEBPACK_EXTERNAL_MODULE__NoticeArea_mjs__ from "./NoticeArea.mjs";
|
|
@@ -8,6 +10,18 @@ const AdminLayout = (props)=>/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_j
|
|
|
8
10
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__NoticeArea_mjs__.NoticeArea, {}),
|
|
9
11
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__InternalAdminLayout_mjs__.InternalAdminLayout, {
|
|
10
12
|
...props
|
|
13
|
+
}),
|
|
14
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE_antd__.FloatButton.Group, {
|
|
15
|
+
trigger: "click",
|
|
16
|
+
type: "default",
|
|
17
|
+
style: {
|
|
18
|
+
right: 24,
|
|
19
|
+
zIndex: 1250
|
|
20
|
+
},
|
|
21
|
+
icon: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__ant_design_icons__.ToolOutlined, {}),
|
|
22
|
+
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__pinned_list_index_mjs__.PinnedPluginList, {
|
|
23
|
+
belongToFilter: "hoverbutton"
|
|
24
|
+
})
|
|
11
25
|
})
|
|
12
26
|
]
|
|
13
27
|
});
|
package/es/built-in/index.mjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__ from "react/jsx-runtime";
|
|
2
|
-
import "react";
|
|
3
2
|
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_schema__ from "@tachybase/schema";
|
|
4
3
|
import * as __WEBPACK_EXTERNAL_MODULE__tachybase_sdk__ from "@tachybase/sdk";
|
|
5
4
|
import * as __WEBPACK_EXTERNAL_MODULE__ant_design_icons__ from "@ant-design/icons";
|
|
@@ -25,7 +24,6 @@ import * as __WEBPACK_EXTERNAL_MODULE__user_index_mjs__ from "../user/index.mjs"
|
|
|
25
24
|
import * as __WEBPACK_EXTERNAL_MODULE__acl_ACLPlugin_mjs__ from "./acl/ACLPlugin.mjs";
|
|
26
25
|
import * as __WEBPACK_EXTERNAL_MODULE__admin_layout_AdminLayoutPlugin_mjs__ from "./admin-layout/AdminLayoutPlugin.mjs";
|
|
27
26
|
import * as __WEBPACK_EXTERNAL_MODULE__admin_layout_components_WelcomeCard_mjs__ from "./admin-layout/components/WelcomeCard.mjs";
|
|
28
|
-
import * as __WEBPACK_EXTERNAL_MODULE__assistant_index_mjs__ from "./assistant/index.mjs";
|
|
29
27
|
import * as __WEBPACK_EXTERNAL_MODULE__attachment_preview_index_mjs__ from "./attachment-preview/index.mjs";
|
|
30
28
|
import * as __WEBPACK_EXTERNAL_MODULE__block_schema_component_index_mjs__ from "./block-schema-component/index.mjs";
|
|
31
29
|
import * as __WEBPACK_EXTERNAL_MODULE__context_menu_index_mjs__ from "./context-menu/index.mjs";
|
|
@@ -462,9 +460,6 @@ class BuiltInPlugin extends __WEBPACK_EXTERNAL_MODULE__application_Plugin_mjs__.
|
|
|
462
460
|
await this.app.pm.add(__WEBPACK_EXTERNAL_MODULE__context_menu_index_mjs__.PluginContextMenu, {
|
|
463
461
|
name: 'context-menu'
|
|
464
462
|
});
|
|
465
|
-
await this.app.pm.add(__WEBPACK_EXTERNAL_MODULE__assistant_index_mjs__.PluginAssistant, {
|
|
466
|
-
name: 'assistant'
|
|
467
|
-
});
|
|
468
463
|
await this.app.pm.add(__WEBPACK_EXTERNAL_MODULE__user_settings_index_mjs__.UserSettingsPlugin, {
|
|
469
464
|
name: 'user-settings'
|
|
470
465
|
});
|
package/es/index.d.ts
CHANGED
|
@@ -18,7 +18,6 @@ export * from './i18n';
|
|
|
18
18
|
export * from './icon';
|
|
19
19
|
export { default as locale } from './locale';
|
|
20
20
|
export * from './built-in';
|
|
21
|
-
export * from './built-in/assistant';
|
|
22
21
|
export * from './built-in/pinned-list';
|
|
23
22
|
export * from './built-in/pm';
|
|
24
23
|
export * from './powered-by';
|
package/es/index.mjs
CHANGED
|
@@ -21,7 +21,6 @@ export * from "./hooks/index.mjs";
|
|
|
21
21
|
export * from "./i18n/index.mjs";
|
|
22
22
|
export * from "./icon/index.mjs";
|
|
23
23
|
export * from "./built-in/index.mjs";
|
|
24
|
-
export * from "./built-in/assistant/index.mjs";
|
|
25
24
|
export * from "./built-in/pinned-list/index.mjs";
|
|
26
25
|
export * from "./built-in/pm/index.mjs";
|
|
27
26
|
export * from "./powered-by/index.mjs";
|
|
@@ -1058,7 +1058,7 @@ __WEBPACK_EXTERNAL_MODULE__tachybase_test_e2e__.test.describe('creation form blo
|
|
|
1058
1058
|
type: 'void',
|
|
1059
1059
|
'x-component': 'Tabs',
|
|
1060
1060
|
'x-component-props': {},
|
|
1061
|
-
'x-initializer': '
|
|
1061
|
+
'x-initializer': 'popup:addTab',
|
|
1062
1062
|
properties: {
|
|
1063
1063
|
tab1: {
|
|
1064
1064
|
_isJSONSchemaObject: true,
|
|
@@ -423,7 +423,7 @@ const T2174 = {
|
|
|
423
423
|
type: 'void',
|
|
424
424
|
'x-component': 'Tabs',
|
|
425
425
|
'x-component-props': {},
|
|
426
|
-
'x-initializer': '
|
|
426
|
+
'x-initializer': 'popup:addTab',
|
|
427
427
|
'x-index': 1,
|
|
428
428
|
properties: {
|
|
429
429
|
tab1: {
|
|
@@ -706,7 +706,7 @@ const T2174 = {
|
|
|
706
706
|
type: 'void',
|
|
707
707
|
'x-component': 'Tabs',
|
|
708
708
|
'x-component-props': {},
|
|
709
|
-
'x-initializer': '
|
|
709
|
+
'x-initializer': 'popup:addTab',
|
|
710
710
|
'x-index': 1,
|
|
711
711
|
properties: {
|
|
712
712
|
tab1: {
|
|
@@ -1010,7 +1010,7 @@ const T2614 = {
|
|
|
1010
1010
|
type: 'void',
|
|
1011
1011
|
'x-component': 'Tabs',
|
|
1012
1012
|
'x-component-props': {},
|
|
1013
|
-
'x-initializer': '
|
|
1013
|
+
'x-initializer': 'popup:addTab',
|
|
1014
1014
|
properties: {
|
|
1015
1015
|
tab1: {
|
|
1016
1016
|
_isJSONSchemaObject: true,
|
|
@@ -1307,7 +1307,7 @@ const T2614 = {
|
|
|
1307
1307
|
type: 'void',
|
|
1308
1308
|
'x-component': 'Tabs',
|
|
1309
1309
|
'x-component-props': {},
|
|
1310
|
-
'x-initializer': '
|
|
1310
|
+
'x-initializer': 'popup:addTab',
|
|
1311
1311
|
properties: {
|
|
1312
1312
|
tab1: {
|
|
1313
1313
|
_isJSONSchemaObject: true,
|
|
@@ -2562,7 +2562,7 @@ const T2615 = {
|
|
|
2562
2562
|
type: 'void',
|
|
2563
2563
|
'x-component': 'Tabs',
|
|
2564
2564
|
'x-component-props': {},
|
|
2565
|
-
'x-initializer': '
|
|
2565
|
+
'x-initializer': 'popup:addTab',
|
|
2566
2566
|
properties: {
|
|
2567
2567
|
tab1: {
|
|
2568
2568
|
_isJSONSchemaObject: true,
|
|
@@ -2804,7 +2804,7 @@ const T2615 = {
|
|
|
2804
2804
|
type: 'void',
|
|
2805
2805
|
'x-component': 'Tabs',
|
|
2806
2806
|
'x-component-props': {},
|
|
2807
|
-
'x-initializer': '
|
|
2807
|
+
'x-initializer': 'popup:addTab',
|
|
2808
2808
|
properties: {
|
|
2809
2809
|
tab1: {
|
|
2810
2810
|
_isJSONSchemaObject: true,
|
|
@@ -3395,7 +3395,7 @@ const T2845 = {
|
|
|
3395
3395
|
type: 'void',
|
|
3396
3396
|
'x-component': 'Tabs',
|
|
3397
3397
|
'x-component-props': {},
|
|
3398
|
-
'x-initializer': '
|
|
3398
|
+
'x-initializer': 'popup:addTab',
|
|
3399
3399
|
properties: {
|
|
3400
3400
|
tab1: {
|
|
3401
3401
|
_isJSONSchemaObject: true,
|
|
@@ -3471,7 +3471,7 @@ const T2845 = {
|
|
|
3471
3471
|
type: 'void',
|
|
3472
3472
|
'x-component': 'Tabs',
|
|
3473
3473
|
'x-component-props': {},
|
|
3474
|
-
'x-initializer': '
|
|
3474
|
+
'x-initializer': 'popup:addTab',
|
|
3475
3475
|
properties: {
|
|
3476
3476
|
tab1: {
|
|
3477
3477
|
_isJSONSchemaObject: true,
|
|
@@ -3740,7 +3740,7 @@ const T2845 = {
|
|
|
3740
3740
|
type: 'void',
|
|
3741
3741
|
'x-component': 'Tabs',
|
|
3742
3742
|
'x-component-props': {},
|
|
3743
|
-
'x-initializer': '
|
|
3743
|
+
'x-initializer': 'popup:addTab',
|
|
3744
3744
|
'x-index': 1,
|
|
3745
3745
|
properties: {
|
|
3746
3746
|
tab1: {
|
|
@@ -4079,7 +4079,7 @@ const T2845 = {
|
|
|
4079
4079
|
type: 'void',
|
|
4080
4080
|
'x-component': 'Tabs',
|
|
4081
4081
|
'x-component-props': {},
|
|
4082
|
-
'x-initializer': '
|
|
4082
|
+
'x-initializer': 'popup:addTab',
|
|
4083
4083
|
'x-index': 1,
|
|
4084
4084
|
properties: {
|
|
4085
4085
|
tab1: {
|
|
@@ -4544,7 +4544,7 @@ const T2200 = {
|
|
|
4544
4544
|
type: 'void',
|
|
4545
4545
|
'x-component': 'Tabs',
|
|
4546
4546
|
'x-component-props': {},
|
|
4547
|
-
'x-initializer': '
|
|
4547
|
+
'x-initializer': 'popup:addTab',
|
|
4548
4548
|
properties: {
|
|
4549
4549
|
tab1: {
|
|
4550
4550
|
_isJSONSchemaObject: true,
|
|
@@ -5562,7 +5562,7 @@ const T3529 = {
|
|
|
5562
5562
|
type: 'void',
|
|
5563
5563
|
'x-component': 'Tabs',
|
|
5564
5564
|
'x-component-props': {},
|
|
5565
|
-
'x-initializer': '
|
|
5565
|
+
'x-initializer': 'popup:addTab',
|
|
5566
5566
|
properties: {
|
|
5567
5567
|
tab1: {
|
|
5568
5568
|
_isJSONSchemaObject: true,
|
|
@@ -456,7 +456,7 @@ const T2187 = {
|
|
|
456
456
|
type: 'void',
|
|
457
457
|
'x-component': 'Tabs',
|
|
458
458
|
'x-component-props': {},
|
|
459
|
-
'x-initializer': '
|
|
459
|
+
'x-initializer': 'popup:addTab',
|
|
460
460
|
properties: {
|
|
461
461
|
tab1: {
|
|
462
462
|
_isJSONSchemaObject: true,
|
|
@@ -850,7 +850,7 @@ const T3686 = {
|
|
|
850
850
|
type: 'void',
|
|
851
851
|
'x-component': 'Tabs',
|
|
852
852
|
'x-component-props': {},
|
|
853
|
-
'x-initializer': '
|
|
853
|
+
'x-initializer': 'popup:addTab',
|
|
854
854
|
properties: {
|
|
855
855
|
tab1: {
|
|
856
856
|
_isJSONSchemaObject: true,
|
|
@@ -148,7 +148,7 @@ const tableSelectorDataScopeVariable = {
|
|
|
148
148
|
type: 'void',
|
|
149
149
|
'x-component': 'Tabs',
|
|
150
150
|
'x-component-props': {},
|
|
151
|
-
'x-initializer': '
|
|
151
|
+
'x-initializer': 'popup:addTab',
|
|
152
152
|
properties: {
|
|
153
153
|
tab1: {
|
|
154
154
|
_isJSONSchemaObject: true,
|
|
@@ -380,7 +380,7 @@ const tableSelectorDataScopeVariable = {
|
|
|
380
380
|
type: 'void',
|
|
381
381
|
'x-component': 'Tabs',
|
|
382
382
|
'x-component-props': {},
|
|
383
|
-
'x-initializer': '
|
|
383
|
+
'x-initializer': 'popup:addTab',
|
|
384
384
|
properties: {
|
|
385
385
|
tab1: {
|
|
386
386
|
_isJSONSchemaObject: true,
|
|
@@ -144,7 +144,7 @@ const T2797 = {
|
|
|
144
144
|
type: 'void',
|
|
145
145
|
'x-component': 'Tabs',
|
|
146
146
|
'x-component-props': {},
|
|
147
|
-
'x-initializer': '
|
|
147
|
+
'x-initializer': 'popup:addTab',
|
|
148
148
|
'x-index': 1,
|
|
149
149
|
properties: {
|
|
150
150
|
tab1: {
|
|
@@ -267,7 +267,7 @@ const T2797 = {
|
|
|
267
267
|
type: 'void',
|
|
268
268
|
'x-component': 'Tabs',
|
|
269
269
|
'x-component-props': {},
|
|
270
|
-
'x-initializer': '
|
|
270
|
+
'x-initializer': 'popup:addTab',
|
|
271
271
|
'x-index': 1,
|
|
272
272
|
properties: {
|
|
273
273
|
tab1: {
|
|
@@ -660,7 +660,7 @@ const T2838 = {
|
|
|
660
660
|
type: 'void',
|
|
661
661
|
'x-component': 'Tabs',
|
|
662
662
|
'x-component-props': {},
|
|
663
|
-
'x-initializer': '
|
|
663
|
+
'x-initializer': 'popup:addTab',
|
|
664
664
|
'x-index': 1,
|
|
665
665
|
properties: {
|
|
666
666
|
tab1: {
|
|
@@ -773,7 +773,7 @@ const T2838 = {
|
|
|
773
773
|
type: 'void',
|
|
774
774
|
'x-component': 'Tabs',
|
|
775
775
|
'x-component-props': {},
|
|
776
|
-
'x-initializer': '
|
|
776
|
+
'x-initializer': 'popup:addTab',
|
|
777
777
|
'x-index': 1,
|
|
778
778
|
properties: {
|
|
779
779
|
tab1: {
|
|
@@ -886,7 +886,7 @@ const T2838 = {
|
|
|
886
886
|
type: 'void',
|
|
887
887
|
'x-component': 'Tabs',
|
|
888
888
|
'x-component-props': {},
|
|
889
|
-
'x-initializer': '
|
|
889
|
+
'x-initializer': 'popup:addTab',
|
|
890
890
|
'x-index': 1,
|
|
891
891
|
properties: {
|
|
892
892
|
tab1: {
|
|
@@ -1344,7 +1344,7 @@ const tableWithRoles = {
|
|
|
1344
1344
|
type: 'void',
|
|
1345
1345
|
'x-component': 'Tabs',
|
|
1346
1346
|
'x-component-props': {},
|
|
1347
|
-
'x-initializer': '
|
|
1347
|
+
'x-initializer': 'popup:addTab',
|
|
1348
1348
|
properties: {
|
|
1349
1349
|
tab1: {
|
|
1350
1350
|
_isJSONSchemaObject: true,
|
|
@@ -1558,7 +1558,7 @@ const tableWithUsers = {
|
|
|
1558
1558
|
type: 'void',
|
|
1559
1559
|
'x-component': 'Tabs',
|
|
1560
1560
|
'x-component-props': {},
|
|
1561
|
-
'x-initializer': '
|
|
1561
|
+
'x-initializer': 'popup:addTab',
|
|
1562
1562
|
properties: {
|
|
1563
1563
|
tab1: {
|
|
1564
1564
|
_isJSONSchemaObject: true,
|
|
@@ -1805,7 +1805,7 @@ const tableWithInherit = {
|
|
|
1805
1805
|
type: 'void',
|
|
1806
1806
|
'x-component': 'Tabs',
|
|
1807
1807
|
'x-component-props': {},
|
|
1808
|
-
'x-initializer': '
|
|
1808
|
+
'x-initializer': 'popup:addTab',
|
|
1809
1809
|
properties: {
|
|
1810
1810
|
tab1: {
|
|
1811
1811
|
_isJSONSchemaObject: true,
|
|
@@ -2037,7 +2037,7 @@ const tableWithInheritWithoutAssociation = {
|
|
|
2037
2037
|
type: 'void',
|
|
2038
2038
|
'x-component': 'Tabs',
|
|
2039
2039
|
'x-component-props': {},
|
|
2040
|
-
'x-initializer': '
|
|
2040
|
+
'x-initializer': 'popup:addTab',
|
|
2041
2041
|
properties: {
|
|
2042
2042
|
tab1: {
|
|
2043
2043
|
_isJSONSchemaObject: true,
|
|
@@ -31,14 +31,18 @@ const AdminMenuCard = (props)=>{
|
|
|
31
31
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__tachybase_schema__.FieldContext.Provider, {
|
|
32
32
|
value: field,
|
|
33
33
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.SortableItem, {
|
|
34
|
+
className: "card-wrapper",
|
|
34
35
|
role: "button",
|
|
35
36
|
"aria-label": t(field.title),
|
|
36
37
|
removeParentsIfNoChildren: false,
|
|
38
|
+
overStyle: {
|
|
39
|
+
background: 'transparent'
|
|
40
|
+
},
|
|
37
41
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE__common_sortable_item_DragHandleMenu_mjs__.DragHandleMenu, {
|
|
38
42
|
className: "drag-handle-menu",
|
|
39
43
|
isAdminMenu: true,
|
|
40
44
|
children: [
|
|
41
|
-
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("
|
|
45
|
+
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("div", {
|
|
42
46
|
className: "field-link",
|
|
43
47
|
role: "button",
|
|
44
48
|
"aria-label": t(field.title),
|
|
@@ -9,7 +9,7 @@ function _tagged_template_literal(strings, raw) {
|
|
|
9
9
|
}
|
|
10
10
|
function _templateObject() {
|
|
11
11
|
const data = _tagged_template_literal([
|
|
12
|
-
"\n border: none;\n border-radius: 8px 8px 8px 8px;\n background: #ffffff;\n box-shadow:\n 0px 4px 8px 0px rgba(0, 5, 26, 0.15),\n 0px 0px 8px 0px rgba(0, 5, 26, 0.05);\n\n .ant-card-body {\n display: grid;\n grid-template-columns: repeat(3, 1fr);\n justify-items: center;\n gap: 10px;\n grid-row-gap: 10px;\n }\n\n .ant-card-body::before {\n display: none;\n }\n "
|
|
12
|
+
"\n border: none;\n border-radius: 8px 8px 8px 8px;\n background: #ffffff;\n box-shadow:\n 0px 4px 8px 0px rgba(0, 5, 26, 0.15),\n 0px 0px 8px 0px rgba(0, 5, 26, 0.05);\n\n .ant-card-body {\n display: grid;\n grid-template-columns: repeat(3, minmax(120px, 1fr));\n justify-items: center;\n gap: 10px;\n grid-row-gap: 10px;\n }\n\n .ant-card-body::before {\n display: none;\n }\n "
|
|
13
13
|
]);
|
|
14
14
|
_templateObject = function() {
|
|
15
15
|
return data;
|
|
@@ -18,8 +18,8 @@ function _templateObject() {
|
|
|
18
18
|
}
|
|
19
19
|
function _templateObject1() {
|
|
20
20
|
const data = _tagged_template_literal([
|
|
21
|
-
"\n &.ant-card-grid {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 100%;\n height:
|
|
22
|
-
";\n }\n\n .tb-sortable-designer {\n width: 100%;\n height: 5rem;\n }\n\n .
|
|
21
|
+
"\n &.ant-card-grid {\n position: relative;\n display: flex;\n justify-content: center;\n align-items: center;\n\n width: 100%;\n height: 100%;\n padding: 12px;\n color: inherit;\n border-radius: 8px;\n border: none;\n box-shadow: none;\n\n &:focus,\n &:active {\n background-color: #f4f4f4;\n }\n &:hover {\n border-radius: 8px;\n background-color: #f4f4f4;\n box-shadow: none;\n cursor: pointer;\n }\n\n .card-wrapper {\n width: 100%;\n height: 100%;\n background-color: transparent;\n border: none;\n }\n\n .drag-handle-menu {\n width: 100%;\n height: 100%;\n border-radius: 8px;\n border: none;\n }\n\n .ant-btn-icon {\n font-size: 1.2rem;\n text-align: center;\n }\n }\n\n &.ant-card-grid .ant-btn {\n display: grid;\n place-items: center;\n align-items: end;\n\n width: 100%;\n border: none;\n box-shadow: none;\n }\n\n .field-link {\n display: grid;\n place-items: center;\n\n width: 100%;\n height: 100%;\n padding: 0;\n border: none;\n border-radius: 8px;\n background-color: transparent;\n box-shadow: none;\n\n color: inherit;\n }\n\n .icon-wrapper {\n font-size: 1.2rem;\n text-align: center;\n margin-bottom: 0.3rem;\n }\n\n .field-title {\n text-align: center;\n vertical-align: middle;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n font-size: ",
|
|
22
|
+
";\n }\n\n .tb-sortable-designer {\n width: 100%;\n height: 5rem;\n }\n\n .general-schema-designer {\n position: absolute;\n left: 0;\n bottom: 0;\n\n display: flex;\n flex-direction: row;\n justify-content: center;\n align-items: center;\n\n width: 100%;\n height: 45%;\n border-radius: 1px 1px 8px 8px;\n background: rgba(0, 0, 0, 0.5);\n visibility: hidden;\n }\n\n &.ant-card-grid:hover .general-schema-designer {\n visibility: visible;\n }\n\n .general-schema-designer .anticon-menu {\n padding: 1px;\n border-radius: 2px;\n background-color: #ffffff;\n color: #2f2f2f;\n }\n "
|
|
23
23
|
]);
|
|
24
24
|
_templateObject1 = function() {
|
|
25
25
|
return data;
|
|
@@ -31,9 +31,9 @@ const findMenuSchema = (fieldSchema)=>{
|
|
|
31
31
|
parent = parent.parent;
|
|
32
32
|
}
|
|
33
33
|
};
|
|
34
|
-
const InsertMenuItemsGroup = ()=>{
|
|
34
|
+
const InsertMenuItemsGroup = (props)=>{
|
|
35
35
|
const { t } = (0, __WEBPACK_EXTERNAL_MODULE_react_i18next__.useTranslation)();
|
|
36
|
-
const
|
|
36
|
+
const designable = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.useDesignable)();
|
|
37
37
|
const api = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.useAPIClient)();
|
|
38
38
|
const serverHooks = [
|
|
39
39
|
{
|
|
@@ -46,6 +46,7 @@ const InsertMenuItemsGroup = ()=>{
|
|
|
46
46
|
}
|
|
47
47
|
];
|
|
48
48
|
const insertPosition = 'beforeEnd';
|
|
49
|
+
const dn = props.dn || designable.dn;
|
|
49
50
|
return /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.SchemaSettingsItemGroup, {
|
|
50
51
|
children: [
|
|
51
52
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__index_mjs__.SchemaSettingsModalItem, {
|
|
@@ -451,4 +452,4 @@ const MenuDesigner = (props)=>{
|
|
|
451
452
|
]
|
|
452
453
|
});
|
|
453
454
|
};
|
|
454
|
-
export { MenuDesigner };
|
|
455
|
+
export { InsertMenuItemsGroup, MenuDesigner };
|
|
@@ -14,7 +14,7 @@ import * as __WEBPACK_EXTERNAL_MODULE__AdminMenu_mjs__ from "./AdminMenu.mjs";
|
|
|
14
14
|
import * as __WEBPACK_EXTERNAL_MODULE__locale_mjs__ from "./locale.mjs";
|
|
15
15
|
import * as __WEBPACK_EXTERNAL_MODULE__Menu_Designer_mjs__ from "./Menu.Designer.mjs";
|
|
16
16
|
import * as __WEBPACK_EXTERNAL_MODULE__Menu_styles_mjs__ from "./Menu.styles.mjs";
|
|
17
|
-
import * as
|
|
17
|
+
import * as __WEBPACK_EXTERNAL_MODULE__MenuSearchAdd_mjs__ from "./MenuSearchAdd.mjs";
|
|
18
18
|
import * as __WEBPACK_EXTERNAL_MODULE__tools_mjs__ from "./tools.mjs";
|
|
19
19
|
import * as __WEBPACK_EXTERNAL_MODULE__util_mjs__ from "./util.mjs";
|
|
20
20
|
function _tagged_template_literal(strings, raw) {
|
|
@@ -35,7 +35,7 @@ function _templateObject() {
|
|
|
35
35
|
return data;
|
|
36
36
|
}
|
|
37
37
|
const HeaderMenu = (param)=>{
|
|
38
|
-
let { others, schema, mode, onSelect, setLoading, setDefaultSelectedKeys,
|
|
38
|
+
let { others, schema, mode, onSelect, setLoading, setDefaultSelectedKeys, designable, render, children } = param;
|
|
39
39
|
const { Component, getMenuItems } = (0, __WEBPACK_EXTERNAL_MODULE__hooks_useMenuItem_mjs__.useMenuItem)();
|
|
40
40
|
const { token } = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.useToken)();
|
|
41
41
|
const { styles } = (0, __WEBPACK_EXTERNAL_MODULE__Menu_styles_mjs__.useStyles)();
|
|
@@ -154,37 +154,27 @@ const SideMenu = (param)=>{
|
|
|
154
154
|
schema: newSideMenuSchema,
|
|
155
155
|
onlyRenderProperties: true
|
|
156
156
|
}, (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.uid)()));
|
|
157
|
-
|
|
157
|
+
{
|
|
158
|
+
const dn = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.createDesignable)({
|
|
159
|
+
t,
|
|
160
|
+
api,
|
|
161
|
+
refresh,
|
|
162
|
+
current: sideMenuSchemaRef.current
|
|
163
|
+
});
|
|
164
|
+
dn.loadAPIClientEvents();
|
|
158
165
|
const searchMenu = {
|
|
159
166
|
key: 'x-menu-search',
|
|
160
167
|
disabled: true,
|
|
161
|
-
label: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(
|
|
162
|
-
|
|
168
|
+
label: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsx)(__WEBPACK_EXTERNAL_MODULE__MenuSearchAdd_mjs__.MenuSearchAdd, {
|
|
169
|
+
designable: designable,
|
|
170
|
+
setSearchMenuTitle: setSearchMenuTitle,
|
|
171
|
+
dn: dn
|
|
163
172
|
}),
|
|
164
173
|
order: -10,
|
|
165
174
|
notdelete: true
|
|
166
175
|
};
|
|
167
176
|
result.push(searchMenu);
|
|
168
177
|
}
|
|
169
|
-
if (designable) result.push({
|
|
170
|
-
key: 'x-designer-button',
|
|
171
|
-
disabled: true,
|
|
172
|
-
label: render({
|
|
173
|
-
'data-testid': 'schema-initializer-Menu-side',
|
|
174
|
-
insert: (s)=>{
|
|
175
|
-
const dn = (0, __WEBPACK_EXTERNAL_MODULE__index_mjs__.createDesignable)({
|
|
176
|
-
t,
|
|
177
|
-
api,
|
|
178
|
-
refresh,
|
|
179
|
-
current: sideMenuSchemaRef.current
|
|
180
|
-
});
|
|
181
|
-
dn.loadAPIClientEvents();
|
|
182
|
-
dn.insertAdjacent('beforeEnd', s);
|
|
183
|
-
}
|
|
184
|
-
}),
|
|
185
|
-
order: -1,
|
|
186
|
-
notdelete: true
|
|
187
|
-
});
|
|
188
178
|
return result;
|
|
189
179
|
}, [
|
|
190
180
|
getMenuItems,
|
|
@@ -252,9 +242,7 @@ const Menu = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)((props)
|
|
|
252
242
|
});
|
|
253
243
|
const sensors = (0, __WEBPACK_EXTERNAL_MODULE__dnd_kit_core__.useSensors)((0, __WEBPACK_EXTERNAL_MODULE__dnd_kit_core__.useSensor)(__WEBPACK_EXTERNAL_MODULE__dnd_kit_core__.PointerSensor, {
|
|
254
244
|
activationConstraint: {
|
|
255
|
-
distance:
|
|
256
|
-
delay: 300,
|
|
257
|
-
tolerance: 5
|
|
245
|
+
distance: 5
|
|
258
246
|
}
|
|
259
247
|
}));
|
|
260
248
|
const sideMenuSchema = (0, __WEBPACK_EXTERNAL_MODULE_react__.useMemo)(()=>{
|
|
@@ -312,9 +300,6 @@ const Menu = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)((props)
|
|
|
312
300
|
onSelect: onSelect,
|
|
313
301
|
setLoading: setLoading,
|
|
314
302
|
setDefaultSelectedKeys: setDefaultSelectedKeys,
|
|
315
|
-
defaultSelectedKeys: defaultSelectedKeys,
|
|
316
|
-
defaultOpenKeys: defaultOpenKeys,
|
|
317
|
-
selectedKeys: selectedKeys,
|
|
318
303
|
designable: designable,
|
|
319
304
|
render: render,
|
|
320
305
|
children: children
|
|
@@ -370,6 +355,9 @@ Menu.Item = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)((props)=
|
|
|
370
355
|
"aria-label": t(field.title),
|
|
371
356
|
className: styles.designerCss,
|
|
372
357
|
removeParentsIfNoChildren: false,
|
|
358
|
+
overStyle: {
|
|
359
|
+
background: 'transparent'
|
|
360
|
+
},
|
|
373
361
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE__common_sortable_item_DragHandleMenu_mjs__.DragHandleMenu, {
|
|
374
362
|
children: [
|
|
375
363
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("span", {
|
|
@@ -441,6 +429,9 @@ Menu.URL = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)((props)=>
|
|
|
441
429
|
className: styles.designerCss,
|
|
442
430
|
removeParentsIfNoChildren: false,
|
|
443
431
|
"aria-label": t(field.title),
|
|
432
|
+
overStyle: {
|
|
433
|
+
background: 'transparent'
|
|
434
|
+
},
|
|
444
435
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE__common_sortable_item_DragHandleMenu_mjs__.DragHandleMenu, {
|
|
445
436
|
children: [
|
|
446
437
|
/*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)("span", {
|
|
@@ -509,6 +500,9 @@ Menu.SubMenu = (0, __WEBPACK_EXTERNAL_MODULE__tachybase_schema__.observer)((prop
|
|
|
509
500
|
className: styles.subMenuDesignerCss,
|
|
510
501
|
removeParentsIfNoChildren: false,
|
|
511
502
|
"aria-label": t(field.title),
|
|
503
|
+
overStyle: {
|
|
504
|
+
background: 'transparent'
|
|
505
|
+
},
|
|
512
506
|
children: /*#__PURE__*/ (0, __WEBPACK_EXTERNAL_MODULE_react_jsx_runtime__.jsxs)(__WEBPACK_EXTERNAL_MODULE__common_sortable_item_DragHandleMenu_mjs__.DragHandleMenu, {
|
|
513
507
|
name: schema.name,
|
|
514
508
|
isSubMenu: true,
|
|
@@ -27,7 +27,9 @@ function _templateObject1() {
|
|
|
27
27
|
}
|
|
28
28
|
function _templateObject2() {
|
|
29
29
|
const data = _tagged_template_literal([
|
|
30
|
-
"\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n\n .ant-menu-submenu.ant-menu-submenu-inline .ant-menu-submenu-title {\n position: relative;\n ::before {\n content: '';\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 3px;\n height: 50%;\n background-color:
|
|
30
|
+
"\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n\n .ant-menu-submenu.ant-menu-submenu-inline .ant-menu-submenu-title {\n position: relative;\n ::before {\n content: '';\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n width: 3px;\n height: 50%;\n background-color: ",
|
|
31
|
+
";\n\n /* 使用 clip-path 裁剪为梯形 */\n clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);\n }\n }\n\n .ant-menu-submenu.ant-menu-submenu-inline.ant-menu-submenu-open > .ant-menu-submenu-title {\n ::before {\n background-color: ",
|
|
32
|
+
";\n }\n }\n\n .ant-menu-item,\n .ant-menu-submenu-title {\n padding-inline-end: 10px;\n }\n\n .ant-menu-submenu-title {\n .ant-menu-title-content {\n > div {\n > .general-schema-designer {\n right: 6px !important;\n }\n > span.anticon {\n margin-right: 10px;\n }\n }\n }\n }\n "
|
|
31
33
|
]);
|
|
32
34
|
_templateObject2 = function() {
|
|
33
35
|
return data;
|
|
@@ -57,7 +59,7 @@ const useStyles = (0, __WEBPACK_EXTERNAL_MODULE_antd_style__.createStyles)((para
|
|
|
57
59
|
return {
|
|
58
60
|
subMenuDesignerCss: css(_templateObject()),
|
|
59
61
|
designerCss: css(_templateObject1()),
|
|
60
|
-
sideMenuClass: css(_templateObject2()),
|
|
62
|
+
sideMenuClass: css(_templateObject2(), token.colorBorder, token.colorPrimaryText),
|
|
61
63
|
menuItemClass: css(_templateObject3()),
|
|
62
64
|
headerMenuClass: css(_templateObject4())
|
|
63
65
|
};
|