@tachybase/client 0.23.40 → 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/collection-manager/interfaces/properties/index.mjs +1 -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/Menu.styles.mjs +4 -2
- 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/collection-manager/interfaces/properties/index.js +1 -1
- 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/Menu.styles.js +4 -2
- package/lib/schema-initializer/SchemaInitializerPlugin.js +1 -0
- package/lib/schema-initializer/buttons/TabPaneInitializers.js +9 -0
- package/package.json +7 -7
|
@@ -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,
|
|
@@ -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
|
};
|
|
@@ -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 };
|
|
@@ -1060,7 +1060,7 @@ e2e_namespaceObject.test.describe('creation form block schema settings', ()=>{
|
|
|
1060
1060
|
type: 'void',
|
|
1061
1061
|
'x-component': 'Tabs',
|
|
1062
1062
|
'x-component-props': {},
|
|
1063
|
-
'x-initializer': '
|
|
1063
|
+
'x-initializer': 'popup:addTab',
|
|
1064
1064
|
properties: {
|
|
1065
1065
|
tab1: {
|
|
1066
1066
|
_isJSONSchemaObject: true,
|
|
@@ -464,7 +464,7 @@ const T2174 = {
|
|
|
464
464
|
type: 'void',
|
|
465
465
|
'x-component': 'Tabs',
|
|
466
466
|
'x-component-props': {},
|
|
467
|
-
'x-initializer': '
|
|
467
|
+
'x-initializer': 'popup:addTab',
|
|
468
468
|
'x-index': 1,
|
|
469
469
|
properties: {
|
|
470
470
|
tab1: {
|
|
@@ -747,7 +747,7 @@ const T2174 = {
|
|
|
747
747
|
type: 'void',
|
|
748
748
|
'x-component': 'Tabs',
|
|
749
749
|
'x-component-props': {},
|
|
750
|
-
'x-initializer': '
|
|
750
|
+
'x-initializer': 'popup:addTab',
|
|
751
751
|
'x-index': 1,
|
|
752
752
|
properties: {
|
|
753
753
|
tab1: {
|
|
@@ -1051,7 +1051,7 @@ const T2614 = {
|
|
|
1051
1051
|
type: 'void',
|
|
1052
1052
|
'x-component': 'Tabs',
|
|
1053
1053
|
'x-component-props': {},
|
|
1054
|
-
'x-initializer': '
|
|
1054
|
+
'x-initializer': 'popup:addTab',
|
|
1055
1055
|
properties: {
|
|
1056
1056
|
tab1: {
|
|
1057
1057
|
_isJSONSchemaObject: true,
|
|
@@ -1348,7 +1348,7 @@ const T2614 = {
|
|
|
1348
1348
|
type: 'void',
|
|
1349
1349
|
'x-component': 'Tabs',
|
|
1350
1350
|
'x-component-props': {},
|
|
1351
|
-
'x-initializer': '
|
|
1351
|
+
'x-initializer': 'popup:addTab',
|
|
1352
1352
|
properties: {
|
|
1353
1353
|
tab1: {
|
|
1354
1354
|
_isJSONSchemaObject: true,
|
|
@@ -2603,7 +2603,7 @@ const T2615 = {
|
|
|
2603
2603
|
type: 'void',
|
|
2604
2604
|
'x-component': 'Tabs',
|
|
2605
2605
|
'x-component-props': {},
|
|
2606
|
-
'x-initializer': '
|
|
2606
|
+
'x-initializer': 'popup:addTab',
|
|
2607
2607
|
properties: {
|
|
2608
2608
|
tab1: {
|
|
2609
2609
|
_isJSONSchemaObject: true,
|
|
@@ -2845,7 +2845,7 @@ const T2615 = {
|
|
|
2845
2845
|
type: 'void',
|
|
2846
2846
|
'x-component': 'Tabs',
|
|
2847
2847
|
'x-component-props': {},
|
|
2848
|
-
'x-initializer': '
|
|
2848
|
+
'x-initializer': 'popup:addTab',
|
|
2849
2849
|
properties: {
|
|
2850
2850
|
tab1: {
|
|
2851
2851
|
_isJSONSchemaObject: true,
|
|
@@ -3436,7 +3436,7 @@ const T2845 = {
|
|
|
3436
3436
|
type: 'void',
|
|
3437
3437
|
'x-component': 'Tabs',
|
|
3438
3438
|
'x-component-props': {},
|
|
3439
|
-
'x-initializer': '
|
|
3439
|
+
'x-initializer': 'popup:addTab',
|
|
3440
3440
|
properties: {
|
|
3441
3441
|
tab1: {
|
|
3442
3442
|
_isJSONSchemaObject: true,
|
|
@@ -3512,7 +3512,7 @@ const T2845 = {
|
|
|
3512
3512
|
type: 'void',
|
|
3513
3513
|
'x-component': 'Tabs',
|
|
3514
3514
|
'x-component-props': {},
|
|
3515
|
-
'x-initializer': '
|
|
3515
|
+
'x-initializer': 'popup:addTab',
|
|
3516
3516
|
properties: {
|
|
3517
3517
|
tab1: {
|
|
3518
3518
|
_isJSONSchemaObject: true,
|
|
@@ -3781,7 +3781,7 @@ const T2845 = {
|
|
|
3781
3781
|
type: 'void',
|
|
3782
3782
|
'x-component': 'Tabs',
|
|
3783
3783
|
'x-component-props': {},
|
|
3784
|
-
'x-initializer': '
|
|
3784
|
+
'x-initializer': 'popup:addTab',
|
|
3785
3785
|
'x-index': 1,
|
|
3786
3786
|
properties: {
|
|
3787
3787
|
tab1: {
|
|
@@ -4120,7 +4120,7 @@ const T2845 = {
|
|
|
4120
4120
|
type: 'void',
|
|
4121
4121
|
'x-component': 'Tabs',
|
|
4122
4122
|
'x-component-props': {},
|
|
4123
|
-
'x-initializer': '
|
|
4123
|
+
'x-initializer': 'popup:addTab',
|
|
4124
4124
|
'x-index': 1,
|
|
4125
4125
|
properties: {
|
|
4126
4126
|
tab1: {
|
|
@@ -4585,7 +4585,7 @@ const T2200 = {
|
|
|
4585
4585
|
type: 'void',
|
|
4586
4586
|
'x-component': 'Tabs',
|
|
4587
4587
|
'x-component-props': {},
|
|
4588
|
-
'x-initializer': '
|
|
4588
|
+
'x-initializer': 'popup:addTab',
|
|
4589
4589
|
properties: {
|
|
4590
4590
|
tab1: {
|
|
4591
4591
|
_isJSONSchemaObject: true,
|
|
@@ -5603,7 +5603,7 @@ const T3529 = {
|
|
|
5603
5603
|
type: 'void',
|
|
5604
5604
|
'x-component': 'Tabs',
|
|
5605
5605
|
'x-component-props': {},
|
|
5606
|
-
'x-initializer': '
|
|
5606
|
+
'x-initializer': 'popup:addTab',
|
|
5607
5607
|
properties: {
|
|
5608
5608
|
tab1: {
|
|
5609
5609
|
_isJSONSchemaObject: true,
|
|
@@ -497,7 +497,7 @@ const T2187 = {
|
|
|
497
497
|
type: 'void',
|
|
498
498
|
'x-component': 'Tabs',
|
|
499
499
|
'x-component-props': {},
|
|
500
|
-
'x-initializer': '
|
|
500
|
+
'x-initializer': 'popup:addTab',
|
|
501
501
|
properties: {
|
|
502
502
|
tab1: {
|
|
503
503
|
_isJSONSchemaObject: true,
|
|
@@ -891,7 +891,7 @@ const T3686 = {
|
|
|
891
891
|
type: 'void',
|
|
892
892
|
'x-component': 'Tabs',
|
|
893
893
|
'x-component-props': {},
|
|
894
|
-
'x-initializer': '
|
|
894
|
+
'x-initializer': 'popup:addTab',
|
|
895
895
|
properties: {
|
|
896
896
|
tab1: {
|
|
897
897
|
_isJSONSchemaObject: true,
|
|
@@ -180,7 +180,7 @@ const tableSelectorDataScopeVariable = {
|
|
|
180
180
|
type: 'void',
|
|
181
181
|
'x-component': 'Tabs',
|
|
182
182
|
'x-component-props': {},
|
|
183
|
-
'x-initializer': '
|
|
183
|
+
'x-initializer': 'popup:addTab',
|
|
184
184
|
properties: {
|
|
185
185
|
tab1: {
|
|
186
186
|
_isJSONSchemaObject: true,
|
|
@@ -412,7 +412,7 @@ const tableSelectorDataScopeVariable = {
|
|
|
412
412
|
type: 'void',
|
|
413
413
|
'x-component': 'Tabs',
|
|
414
414
|
'x-component-props': {},
|
|
415
|
-
'x-initializer': '
|
|
415
|
+
'x-initializer': 'popup:addTab',
|
|
416
416
|
properties: {
|
|
417
417
|
tab1: {
|
|
418
418
|
_isJSONSchemaObject: true,
|
|
@@ -179,7 +179,7 @@ const T2797 = {
|
|
|
179
179
|
type: 'void',
|
|
180
180
|
'x-component': 'Tabs',
|
|
181
181
|
'x-component-props': {},
|
|
182
|
-
'x-initializer': '
|
|
182
|
+
'x-initializer': 'popup:addTab',
|
|
183
183
|
'x-index': 1,
|
|
184
184
|
properties: {
|
|
185
185
|
tab1: {
|
|
@@ -302,7 +302,7 @@ const T2797 = {
|
|
|
302
302
|
type: 'void',
|
|
303
303
|
'x-component': 'Tabs',
|
|
304
304
|
'x-component-props': {},
|
|
305
|
-
'x-initializer': '
|
|
305
|
+
'x-initializer': 'popup:addTab',
|
|
306
306
|
'x-index': 1,
|
|
307
307
|
properties: {
|
|
308
308
|
tab1: {
|
|
@@ -695,7 +695,7 @@ const T2838 = {
|
|
|
695
695
|
type: 'void',
|
|
696
696
|
'x-component': 'Tabs',
|
|
697
697
|
'x-component-props': {},
|
|
698
|
-
'x-initializer': '
|
|
698
|
+
'x-initializer': 'popup:addTab',
|
|
699
699
|
'x-index': 1,
|
|
700
700
|
properties: {
|
|
701
701
|
tab1: {
|
|
@@ -808,7 +808,7 @@ const T2838 = {
|
|
|
808
808
|
type: 'void',
|
|
809
809
|
'x-component': 'Tabs',
|
|
810
810
|
'x-component-props': {},
|
|
811
|
-
'x-initializer': '
|
|
811
|
+
'x-initializer': 'popup:addTab',
|
|
812
812
|
'x-index': 1,
|
|
813
813
|
properties: {
|
|
814
814
|
tab1: {
|
|
@@ -921,7 +921,7 @@ const T2838 = {
|
|
|
921
921
|
type: 'void',
|
|
922
922
|
'x-component': 'Tabs',
|
|
923
923
|
'x-component-props': {},
|
|
924
|
-
'x-initializer': '
|
|
924
|
+
'x-initializer': 'popup:addTab',
|
|
925
925
|
'x-index': 1,
|
|
926
926
|
properties: {
|
|
927
927
|
tab1: {
|
|
@@ -1379,7 +1379,7 @@ const tableWithRoles = {
|
|
|
1379
1379
|
type: 'void',
|
|
1380
1380
|
'x-component': 'Tabs',
|
|
1381
1381
|
'x-component-props': {},
|
|
1382
|
-
'x-initializer': '
|
|
1382
|
+
'x-initializer': 'popup:addTab',
|
|
1383
1383
|
properties: {
|
|
1384
1384
|
tab1: {
|
|
1385
1385
|
_isJSONSchemaObject: true,
|
|
@@ -1593,7 +1593,7 @@ const tableWithUsers = {
|
|
|
1593
1593
|
type: 'void',
|
|
1594
1594
|
'x-component': 'Tabs',
|
|
1595
1595
|
'x-component-props': {},
|
|
1596
|
-
'x-initializer': '
|
|
1596
|
+
'x-initializer': 'popup:addTab',
|
|
1597
1597
|
properties: {
|
|
1598
1598
|
tab1: {
|
|
1599
1599
|
_isJSONSchemaObject: true,
|
|
@@ -1840,7 +1840,7 @@ const tableWithInherit = {
|
|
|
1840
1840
|
type: 'void',
|
|
1841
1841
|
'x-component': 'Tabs',
|
|
1842
1842
|
'x-component-props': {},
|
|
1843
|
-
'x-initializer': '
|
|
1843
|
+
'x-initializer': 'popup:addTab',
|
|
1844
1844
|
properties: {
|
|
1845
1845
|
tab1: {
|
|
1846
1846
|
_isJSONSchemaObject: true,
|
|
@@ -2072,7 +2072,7 @@ const tableWithInheritWithoutAssociation = {
|
|
|
2072
2072
|
type: 'void',
|
|
2073
2073
|
'x-component': 'Tabs',
|
|
2074
2074
|
'x-component-props': {},
|
|
2075
|
-
'x-initializer': '
|
|
2075
|
+
'x-initializer': 'popup:addTab',
|
|
2076
2076
|
properties: {
|
|
2077
2077
|
tab1: {
|
|
2078
2078
|
_isJSONSchemaObject: true,
|
|
@@ -57,7 +57,9 @@ function _templateObject1() {
|
|
|
57
57
|
}
|
|
58
58
|
function _templateObject2() {
|
|
59
59
|
const data = _tagged_template_literal([
|
|
60
|
-
"\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:
|
|
60
|
+
"\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: ",
|
|
61
|
+
";\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: ",
|
|
62
|
+
";\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 "
|
|
61
63
|
]);
|
|
62
64
|
_templateObject2 = function() {
|
|
63
65
|
return data;
|
|
@@ -87,7 +89,7 @@ const useStyles = (0, external_antd_style_namespaceObject.createStyles)((param)=
|
|
|
87
89
|
return {
|
|
88
90
|
subMenuDesignerCss: css(_templateObject()),
|
|
89
91
|
designerCss: css(_templateObject1()),
|
|
90
|
-
sideMenuClass: css(_templateObject2()),
|
|
92
|
+
sideMenuClass: css(_templateObject2(), token.colorBorder, token.colorPrimaryText),
|
|
91
93
|
menuItemClass: css(_templateObject3()),
|
|
92
94
|
headerMenuClass: css(_templateObject4())
|
|
93
95
|
};
|
|
@@ -154,6 +154,7 @@ class SchemaInitializerPlugin extends Plugin_js_namespaceObject.Plugin {
|
|
|
154
154
|
this.app.schemaInitializerManager.add(external_buttons_index_js_namespaceObject.tabPaneInitializersForRecordBlock);
|
|
155
155
|
this.app.schemaInitializerManager.add(external_buttons_index_js_namespaceObject.tabPaneInitializersForBulkEditFormBlock);
|
|
156
156
|
this.app.schemaInitializerManager.add(menuItemInitializer_js_namespaceObject.menuItemInitializer);
|
|
157
|
+
this.app.schemaInitializerManager.add(external_buttons_index_js_namespaceObject.tabPaneInitializers);
|
|
157
158
|
}
|
|
158
159
|
}
|
|
159
160
|
var __webpack_export_target__ = exports;
|
|
@@ -26,6 +26,7 @@ var __webpack_require__ = {};
|
|
|
26
26
|
var __webpack_exports__ = {};
|
|
27
27
|
__webpack_require__.r(__webpack_exports__);
|
|
28
28
|
__webpack_require__.d(__webpack_exports__, {
|
|
29
|
+
tabPaneInitializers: ()=>tabPaneInitializers,
|
|
29
30
|
tabPaneInitializersForRecordBlock: ()=>tabPaneInitializersForRecordBlock,
|
|
30
31
|
tabPaneInitializers_deprecated: ()=>tabPaneInitializers_deprecated,
|
|
31
32
|
TabPaneInitializersForCreateFormBlock: ()=>TabPaneInitializersForCreateFormBlock,
|
|
@@ -179,11 +180,19 @@ const TabPaneInitializersForBulkEditFormBlock = (props)=>/*#__PURE__*/ (0, jsx_r
|
|
|
179
180
|
...props,
|
|
180
181
|
isBulkEdit: true
|
|
181
182
|
});
|
|
183
|
+
const commonOptions = {
|
|
184
|
+
Component: TabPaneInitializers,
|
|
185
|
+
popover: false
|
|
186
|
+
};
|
|
182
187
|
const tabPaneInitializers_deprecated = new SchemaInitializer_js_namespaceObject.SchemaInitializer({
|
|
183
188
|
name: 'TabPaneInitializers',
|
|
184
189
|
Component: TabPaneInitializers,
|
|
185
190
|
popover: false
|
|
186
191
|
});
|
|
192
|
+
const tabPaneInitializers = new SchemaInitializer_js_namespaceObject.SchemaInitializer({
|
|
193
|
+
name: 'popup:addTab',
|
|
194
|
+
...commonOptions
|
|
195
|
+
});
|
|
187
196
|
const tabPaneInitializersForRecordBlock = new SchemaInitializer_js_namespaceObject.SchemaInitializer({
|
|
188
197
|
name: 'TabPaneInitializersForCreateFormBlock',
|
|
189
198
|
Component: TabPaneInitializersForCreateFormBlock,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tachybase/client",
|
|
3
|
-
"version": "0.23.
|
|
3
|
+
"version": "0.23.41",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.mjs",
|
|
@@ -64,12 +64,12 @@
|
|
|
64
64
|
"react-zoom-pan-pinch": "^3.6.1",
|
|
65
65
|
"sanitize-html": "2.14.0",
|
|
66
66
|
"use-deep-compare-effect": "^1.8.1",
|
|
67
|
-
"@tachybase/components": "0.23.
|
|
68
|
-
"@tachybase/evaluators": "0.23.
|
|
69
|
-
"@tachybase/requirejs": "0.23.
|
|
70
|
-
"@tachybase/
|
|
71
|
-
"@tachybase/utils": "0.23.
|
|
72
|
-
"@tachybase/
|
|
67
|
+
"@tachybase/components": "0.23.41",
|
|
68
|
+
"@tachybase/evaluators": "0.23.41",
|
|
69
|
+
"@tachybase/requirejs": "0.23.41",
|
|
70
|
+
"@tachybase/sdk": "0.23.41",
|
|
71
|
+
"@tachybase/utils": "0.23.41",
|
|
72
|
+
"@tachybase/schema": "0.23.41"
|
|
73
73
|
},
|
|
74
74
|
"devDependencies": {
|
|
75
75
|
"@testing-library/react": "^14.3.1",
|