@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.
Files changed (28) hide show
  1. package/es/collection-manager/interfaces/properties/index.mjs +1 -1
  2. package/es/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +1 -1
  3. package/es/modules/actions/view-edit-popup/PopupActionInitializer.mjs +1 -1
  4. package/es/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +1 -1
  5. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +1 -1
  6. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +12 -12
  7. package/es/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +2 -2
  8. package/es/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +2 -2
  9. package/es/modules/dialog/__e2e__/templatesOfBug.mjs +9 -9
  10. package/es/schema-component/antd/association-field/schema.mjs +1 -1
  11. package/es/schema-component/antd/menu/Menu.styles.mjs +4 -2
  12. package/es/schema-initializer/SchemaInitializerPlugin.mjs +1 -0
  13. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
  14. package/es/schema-initializer/buttons/TabPaneInitializers.mjs +9 -1
  15. package/lib/collection-manager/interfaces/properties/index.js +1 -1
  16. package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.js +1 -1
  17. package/lib/modules/actions/view-edit-popup/PopupActionInitializer.js +1 -1
  18. package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.js +1 -1
  19. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.js +1 -1
  20. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.js +12 -12
  21. package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.js +2 -2
  22. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.js +2 -2
  23. package/lib/modules/dialog/__e2e__/templatesOfBug.js +9 -9
  24. package/lib/schema-component/antd/association-field/schema.js +1 -1
  25. package/lib/schema-component/antd/menu/Menu.styles.js +4 -2
  26. package/lib/schema-initializer/SchemaInitializerPlugin.js +1 -0
  27. package/lib/schema-initializer/buttons/TabPaneInitializers.js +9 -0
  28. package/package.json +7 -7
@@ -459,7 +459,7 @@ const recordPickerViewer = {
459
459
  type: 'void',
460
460
  'x-component': 'Tabs',
461
461
  'x-component-props': {},
462
- 'x-initializer': 'TabPaneInitializers',
462
+ 'x-initializer': 'popup:addTab',
463
463
  properties: {
464
464
  tab1: {
465
465
  type: 'void',
@@ -155,7 +155,7 @@ const disassociatePage = {
155
155
  type: 'void',
156
156
  'x-component': 'Tabs',
157
157
  'x-component-props': {},
158
- 'x-initializer': 'TabPaneInitializers',
158
+ 'x-initializer': 'popup:addTab',
159
159
  properties: {
160
160
  tab1: {
161
161
  _isJSONSchemaObject: true,
@@ -26,7 +26,7 @@ const PopupActionInitializer = (props)=>{
26
26
  type: 'void',
27
27
  'x-component': 'Tabs',
28
28
  'x-component-props': {},
29
- 'x-initializer': 'TabPaneInitializers',
29
+ 'x-initializer': 'popup:addTab',
30
30
  properties: {
31
31
  tab1: {
32
32
  type: 'void',
@@ -26,7 +26,7 @@ const UpdateActionInitializer = (props)=>{
26
26
  type: 'void',
27
27
  'x-component': 'Tabs',
28
28
  'x-component-props': {},
29
- 'x-initializer': 'TabPaneInitializers',
29
+ 'x-initializer': 'popup:addTab',
30
30
  properties: {
31
31
  tab1: {
32
32
  type: 'void',
@@ -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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
2040
+ 'x-initializer': 'popup:addTab',
2041
2041
  properties: {
2042
2042
  tab1: {
2043
2043
  _isJSONSchemaObject: true,
@@ -97,7 +97,7 @@ const schema_rslib_entry_ = {
97
97
  type: 'void',
98
98
  'x-component': 'Tabs',
99
99
  'x-component-props': {},
100
- 'x-initializer': 'TabPaneInitializers',
100
+ 'x-initializer': 'popup:addTab',
101
101
  properties: {
102
102
  tab1: {
103
103
  type: 'void',
@@ -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: var(--colorPrimaryText);\n\n /* 使用 clip-path 裁剪为梯形 */\n clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);\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 "
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 };
@@ -501,7 +501,7 @@ const recordPickerViewer = {
501
501
  type: 'void',
502
502
  'x-component': 'Tabs',
503
503
  'x-component-props': {},
504
- 'x-initializer': 'TabPaneInitializers',
504
+ 'x-initializer': 'popup:addTab',
505
505
  properties: {
506
506
  tab1: {
507
507
  type: 'void',
@@ -187,7 +187,7 @@ const disassociatePage = {
187
187
  type: 'void',
188
188
  'x-component': 'Tabs',
189
189
  'x-component-props': {},
190
- 'x-initializer': 'TabPaneInitializers',
190
+ 'x-initializer': 'popup:addTab',
191
191
  properties: {
192
192
  tab1: {
193
193
  _isJSONSchemaObject: true,
@@ -56,7 +56,7 @@ const PopupActionInitializer = (props)=>{
56
56
  type: 'void',
57
57
  'x-component': 'Tabs',
58
58
  'x-component-props': {},
59
- 'x-initializer': 'TabPaneInitializers',
59
+ 'x-initializer': 'popup:addTab',
60
60
  properties: {
61
61
  tab1: {
62
62
  type: 'void',
@@ -56,7 +56,7 @@ const UpdateActionInitializer = (props)=>{
56
56
  type: 'void',
57
57
  'x-component': 'Tabs',
58
58
  'x-component-props': {},
59
- 'x-initializer': 'TabPaneInitializers',
59
+ 'x-initializer': 'popup:addTab',
60
60
  properties: {
61
61
  tab1: {
62
62
  type: 'void',
@@ -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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
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': 'TabPaneInitializers',
2075
+ 'x-initializer': 'popup:addTab',
2076
2076
  properties: {
2077
2077
  tab1: {
2078
2078
  _isJSONSchemaObject: true,
@@ -129,7 +129,7 @@ const __WEBPACK_DEFAULT_EXPORT__ = {
129
129
  type: 'void',
130
130
  'x-component': 'Tabs',
131
131
  'x-component-props': {},
132
- 'x-initializer': 'TabPaneInitializers',
132
+ 'x-initializer': 'popup:addTab',
133
133
  properties: {
134
134
  tab1: {
135
135
  type: 'void',
@@ -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: var(--colorPrimaryText);\n\n /* 使用 clip-path 裁剪为梯形 */\n clip-path: polygon(0 0, 100% 15%, 100% 85%, 0 100%);\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 "
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.40",
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.40",
68
- "@tachybase/evaluators": "0.23.40",
69
- "@tachybase/requirejs": "0.23.40",
70
- "@tachybase/schema": "0.23.40",
71
- "@tachybase/utils": "0.23.40",
72
- "@tachybase/sdk": "0.23.40"
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",