@tachybase/client 0.23.40 → 0.23.47

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 (114) hide show
  1. package/es/application/WebSocketClient.mjs +1 -1
  2. package/es/application/schema-settings/SchemaSettingsDefaults.mjs +10 -15
  3. package/es/block-provider/hooks/index.mjs +26 -7
  4. package/es/built-in/acl/Configuration/RolesResourcesActions.d.ts +1 -1
  5. package/es/built-in/acl/Configuration/StrategyActions.d.ts +1 -1
  6. package/es/collection-manager/interfaces/properties/index.mjs +1 -1
  7. package/es/data-source/collection-field/CollectionField.d.ts +1 -1
  8. package/es/data-source/data-source/DataSource.d.ts +3 -0
  9. package/es/modules/actions/disassociate/__e2e__/templatesOfPage.mjs +1 -1
  10. package/es/modules/actions/view-edit-popup/PopupActionInitializer.mjs +1 -1
  11. package/es/modules/actions/view-edit-popup/UpdateActionInitializer.mjs +1 -1
  12. package/es/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.mjs +1 -1
  13. package/es/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.mjs +1 -1
  14. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.mjs +1 -1
  15. package/es/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.mjs +12 -12
  16. package/es/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.mjs +1 -1
  17. package/es/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.mjs +1 -1
  18. package/es/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.mjs +2 -2
  19. package/es/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.mjs +1 -1
  20. package/es/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.mjs +2 -2
  21. package/es/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.mjs +1 -1
  22. package/es/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.mjs +1 -1
  23. package/es/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.mjs +1 -1
  24. package/es/modules/dialog/__e2e__/templatesOfBug.mjs +9 -9
  25. package/es/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.d.ts +2 -0
  26. package/es/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.mjs +65 -0
  27. package/es/modules/fields/component/Select/selectComponentFieldSettings.d.ts +30 -0
  28. package/es/modules/fields/component/Select/selectComponentFieldSettings.mjs +62 -6
  29. package/es/schema-component/antd/action/Action.Designer.mjs +5 -7
  30. package/es/schema-component/antd/association-cascader/AssociationCascader.d.ts +1 -1
  31. package/es/schema-component/antd/association-cascader/AssociationCascader.mjs +1 -1
  32. package/es/schema-component/antd/association-field/AssociationSelect.d.ts +1 -1
  33. package/es/schema-component/antd/association-field/Editable.mjs +1 -1
  34. package/es/schema-component/antd/association-field/FileManager.d.ts +1 -1
  35. package/es/schema-component/antd/association-field/InternalCascader.mjs +2 -2
  36. package/es/schema-component/antd/association-field/InternalViewer.mjs +59 -4
  37. package/es/schema-component/antd/association-field/ReadPretty.mjs +2 -1
  38. package/es/schema-component/antd/association-field/SubTabs/InternalCollapse.mjs +2 -2
  39. package/es/schema-component/antd/association-field/schema.mjs +1 -1
  40. package/es/schema-component/antd/auto-complete/AutoComplete.d.ts +1 -1
  41. package/es/schema-component/antd/auto-complete/AutoComplete.mjs +1 -1
  42. package/es/schema-component/antd/cascader/Cascader.d.ts +1 -1
  43. package/es/schema-component/antd/checkbox/Checkbox.d.ts +1 -1
  44. package/es/schema-component/antd/collection-select/CollectionSelect.d.ts +5 -5
  45. package/es/schema-component/antd/color-picker/ColorPicker.d.ts +1 -1
  46. package/es/schema-component/antd/color-select/ColorSelect.d.ts +1 -1
  47. package/es/schema-component/antd/cron/CronSet.d.ts +1 -1
  48. package/es/schema-component/antd/custom-cascader/CustomCascader.d.ts +1 -1
  49. package/es/schema-component/antd/filter/FilterGroup.d.ts +1 -1
  50. package/es/schema-component/antd/form-item/FormItem.Settings.mjs +83 -2
  51. package/es/schema-component/antd/icon-picker/IconPicker.d.ts +1 -1
  52. package/es/schema-component/antd/menu/Menu.styles.mjs +4 -2
  53. package/es/schema-component/antd/nanoIDInput/NanoIDInput.d.ts +1 -1
  54. package/es/schema-component/antd/password/Password.d.ts +1 -1
  55. package/es/schema-component/antd/percent/Percent.d.ts +1 -1
  56. package/es/schema-component/antd/preview/Preview.d.ts +1 -1
  57. package/es/schema-component/antd/remote-select/RemoteSelect.d.ts +4 -4
  58. package/es/schema-component/antd/remote-select/RemoteSelect.mjs +7 -5
  59. package/es/schema-component/antd/rich-text/RichText.d.ts +1 -1
  60. package/es/schema-component/antd/select/FormulaSelect.mjs +3 -3
  61. package/es/schema-component/antd/select/Select.mjs +3 -1
  62. package/es/schema-component/antd/unixTimestamp/UnixTimestamp.d.ts +1 -1
  63. package/es/schema-component/antd/variable/TextArea.mjs +3 -1
  64. package/es/schema-component/antd/variable/Variable.d.ts +5 -5
  65. package/es/schema-component/hooks/useFieldModeOptions.mjs +8 -0
  66. package/es/schema-initializer/SchemaInitializerPlugin.mjs +1 -0
  67. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
  68. package/es/schema-initializer/buttons/TabPaneInitializers.mjs +9 -1
  69. package/es/schema-settings/DateFormat/ExpiresRadio.d.ts +1 -1
  70. package/es/schema-settings/EditFormulaTitleField.mjs +7 -2
  71. package/es/schema-settings/SchemaSettingsPlugin.mjs +2 -0
  72. package/lib/application/WebSocketClient.js +1 -1
  73. package/lib/application/schema-settings/SchemaSettingsDefaults.js +10 -15
  74. package/lib/block-provider/hooks/index.js +26 -7
  75. package/lib/collection-manager/interfaces/properties/index.js +1 -1
  76. package/lib/modules/actions/disassociate/__e2e__/templatesOfPage.js +1 -1
  77. package/lib/modules/actions/view-edit-popup/PopupActionInitializer.js +1 -1
  78. package/lib/modules/actions/view-edit-popup/UpdateActionInitializer.js +1 -1
  79. package/lib/modules/blocks/data-blocks/details-multi/__tests__/createDetailsBlockWithPagingUISchema.test.js +1 -1
  80. package/lib/modules/blocks/data-blocks/details-single/__tests__/createDetailsBlockWithoutPagingUISchema.test.js +1 -1
  81. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/schemaSettings.test.js +1 -1
  82. package/lib/modules/blocks/data-blocks/form/__e2e__/form-create/templatesOfBug.js +12 -12
  83. package/lib/modules/blocks/data-blocks/form/__tests__/createCreateFormBlockUISchema.test.js +1 -1
  84. package/lib/modules/blocks/data-blocks/form/__tests__/createEditFormBlockUISchema.test.js +1 -1
  85. package/lib/modules/blocks/data-blocks/table/__e2e__/templatesOfBug.js +2 -2
  86. package/lib/modules/blocks/data-blocks/table/__tests__/createTableBLockSchema.test.js +1 -1
  87. package/lib/modules/blocks/data-blocks/table-selector/__e2e__/templatesOfBug.js +2 -2
  88. package/lib/modules/blocks/data-blocks/table-selector/__tests__/createTableSelectorSchema.test.js +1 -1
  89. package/lib/modules/blocks/filter-blocks/collapse/__tests__/createCollapseBlockSchema.test.js +1 -1
  90. package/lib/modules/blocks/filter-blocks/form/__tests__/createFilterFormBlockSchema.test.js +1 -1
  91. package/lib/modules/dialog/__e2e__/templatesOfBug.js +9 -9
  92. package/lib/modules/fields/component/CustomTitle/customTitleComponentFieldSettings.js +99 -0
  93. package/lib/modules/fields/component/Select/selectComponentFieldSettings.js +69 -6
  94. package/lib/schema-component/antd/action/Action.Designer.js +5 -7
  95. package/lib/schema-component/antd/association-cascader/AssociationCascader.js +1 -1
  96. package/lib/schema-component/antd/association-field/Editable.js +1 -1
  97. package/lib/schema-component/antd/association-field/InternalCascader.js +2 -2
  98. package/lib/schema-component/antd/association-field/InternalViewer.js +59 -4
  99. package/lib/schema-component/antd/association-field/ReadPretty.js +2 -1
  100. package/lib/schema-component/antd/association-field/SubTabs/InternalCollapse.js +2 -2
  101. package/lib/schema-component/antd/association-field/schema.js +1 -1
  102. package/lib/schema-component/antd/auto-complete/AutoComplete.js +1 -1
  103. package/lib/schema-component/antd/form-item/FormItem.Settings.js +83 -2
  104. package/lib/schema-component/antd/menu/Menu.styles.js +4 -2
  105. package/lib/schema-component/antd/remote-select/RemoteSelect.js +7 -5
  106. package/lib/schema-component/antd/select/FormulaSelect.js +3 -3
  107. package/lib/schema-component/antd/select/Select.js +3 -1
  108. package/lib/schema-component/antd/variable/TextArea.js +3 -1
  109. package/lib/schema-component/hooks/useFieldModeOptions.js +8 -0
  110. package/lib/schema-initializer/SchemaInitializerPlugin.js +1 -0
  111. package/lib/schema-initializer/buttons/TabPaneInitializers.js +9 -0
  112. package/lib/schema-settings/EditFormulaTitleField.js +7 -2
  113. package/lib/schema-settings/SchemaSettingsPlugin.js +2 -0
  114. package/package.json +8 -8
@@ -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,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var __webpack_exports__ = {};
3
3
  const external_createCreateFormBlockUISchema_js_namespaceObject = require("../createCreateFormBlockUISchema.js");
4
- vi.mock('@formily/shared', ()=>({
4
+ vi.mock('@tachybase/schema', ()=>({
5
5
  uid: ()=>'mocked-uid'
6
6
  }));
7
7
  describe('createCreateFormBlockUISchema', ()=>{
@@ -2,7 +2,7 @@
2
2
  var __webpack_exports__ = {};
3
3
  const external_vitest_namespaceObject = require("vitest");
4
4
  const external_createEditFormBlockUISchema_js_namespaceObject = require("../createEditFormBlockUISchema.js");
5
- external_vitest_namespaceObject.vi.mock('@formily/shared', ()=>({
5
+ external_vitest_namespaceObject.vi.mock('@tachybase/schema', ()=>({
6
6
  uid: ()=>'uniqueId'
7
7
  }));
8
8
  describe('createEditFormBlockUISchema', ()=>{
@@ -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,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var __webpack_exports__ = {};
3
3
  const external_createTableBlockUISchema_js_namespaceObject = require("../createTableBlockUISchema.js");
4
- vi.mock('@formily/shared', ()=>({
4
+ vi.mock('@tachybase/schema', ()=>({
5
5
  uid: ()=>'mocked-uid'
6
6
  }));
7
7
  describe('createTableBLockSchemaV2', ()=>{
@@ -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,
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var __webpack_exports__ = {};
3
3
  const external_createTableSelectorUISchema_js_namespaceObject = require("../createTableSelectorUISchema.js");
4
- vi.mock('@formily/shared', ()=>({
4
+ vi.mock('@tachybase/schema', ()=>({
5
5
  uid: ()=>'mocked-uid'
6
6
  }));
7
7
  describe('createTableSelectorSchema', ()=>{
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var __webpack_exports__ = {};
3
3
  const external_createFilterCollapseBlockSchema_js_namespaceObject = require("../createFilterCollapseBlockSchema.js");
4
- vi.mock('@formily/shared', ()=>({
4
+ vi.mock('@tachybase/schema', ()=>({
5
5
  uid: vi.fn().mockReturnValue('mocked-uid')
6
6
  }));
7
7
  describe('createCollapseBlockSchema', ()=>{
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  var __webpack_exports__ = {};
3
3
  const external_createFilterFormBlockSchema_js_namespaceObject = require("../createFilterFormBlockSchema.js");
4
- vi.mock('@formily/shared', ()=>({
4
+ vi.mock('@tachybase/schema', ()=>({
5
5
  uid: ()=>'mocked-uid'
6
6
  }));
7
7
  describe('createFilterFormBlockSchema', ()=>{
@@ -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,
@@ -0,0 +1,99 @@
1
+ "use strict";
2
+ var __webpack_require__ = {};
3
+ (()=>{
4
+ __webpack_require__.d = function(exports1, definition) {
5
+ for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
6
+ enumerable: true,
7
+ get: definition[key]
8
+ });
9
+ };
10
+ })();
11
+ (()=>{
12
+ __webpack_require__.o = function(obj, prop) {
13
+ return Object.prototype.hasOwnProperty.call(obj, prop);
14
+ };
15
+ })();
16
+ (()=>{
17
+ __webpack_require__.r = function(exports1) {
18
+ if ('undefined' != typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
19
+ value: 'Module'
20
+ });
21
+ Object.defineProperty(exports1, '__esModule', {
22
+ value: true
23
+ });
24
+ };
25
+ })();
26
+ var __webpack_exports__ = {};
27
+ __webpack_require__.r(__webpack_exports__);
28
+ __webpack_require__.d(__webpack_exports__, {
29
+ CustomTitleComponentFieldSettings: ()=>CustomTitleComponentFieldSettings
30
+ });
31
+ const SchemaSettings_js_namespaceObject = require("../../../../application/schema-settings/SchemaSettings.js");
32
+ const FormItem_Settings_js_namespaceObject = require("../../../../schema-component/antd/form-item/FormItem.Settings.js");
33
+ const Table_Column_Decorator_js_namespaceObject = require("../../../../schema-component/antd/table-v2/Table.Column.Decorator.js");
34
+ const useIsShowMultipleSwitch_js_namespaceObject = require("../../../../schema-settings/hooks/useIsShowMultipleSwitch.js");
35
+ const selectComponentFieldSettings_js_namespaceObject = require("../Select/selectComponentFieldSettings.js");
36
+ const CustomTitleComponentFieldSettings = new SchemaSettings_js_namespaceObject.SchemaSettings({
37
+ name: 'fieldSettings:component:CustomTitle',
38
+ items: [
39
+ {
40
+ ...selectComponentFieldSettings_js_namespaceObject.fieldComponent,
41
+ useVisible: FormItem_Settings_js_namespaceObject.useIsMuiltipleAble
42
+ },
43
+ {
44
+ ...selectComponentFieldSettings_js_namespaceObject.CustomTitle,
45
+ useVisible: FormItem_Settings_js_namespaceObject.useIsMuiltipleAble
46
+ },
47
+ {
48
+ ...selectComponentFieldSettings_js_namespaceObject.setTheDataScope,
49
+ useVisible () {
50
+ const isSelectFieldMode = (0, FormItem_Settings_js_namespaceObject.useIsSelectFieldMode)();
51
+ const isFieldReadPretty = (0, FormItem_Settings_js_namespaceObject.useIsFieldReadPretty)();
52
+ return isSelectFieldMode && !isFieldReadPretty;
53
+ }
54
+ },
55
+ {
56
+ ...selectComponentFieldSettings_js_namespaceObject.setDefaultSortingRules,
57
+ useComponentProps () {
58
+ const { fieldSchema } = (0, Table_Column_Decorator_js_namespaceObject.useColumnSchema)();
59
+ return {
60
+ fieldSchema
61
+ };
62
+ },
63
+ useVisible () {
64
+ const isSelectFieldMode = (0, FormItem_Settings_js_namespaceObject.useIsSelectFieldMode)();
65
+ const isFieldReadPretty = (0, FormItem_Settings_js_namespaceObject.useIsFieldReadPretty)();
66
+ return isSelectFieldMode && !isFieldReadPretty;
67
+ }
68
+ },
69
+ {
70
+ ...selectComponentFieldSettings_js_namespaceObject.quickCreate,
71
+ useVisible () {
72
+ const isAssociationField = (0, FormItem_Settings_js_namespaceObject.useIsAssociationField)();
73
+ const readPretty = (0, FormItem_Settings_js_namespaceObject.useIsFieldReadPretty)();
74
+ const { fieldSchema } = (0, Table_Column_Decorator_js_namespaceObject.useColumnSchema)();
75
+ return isAssociationField && !fieldSchema && !readPretty;
76
+ }
77
+ },
78
+ {
79
+ ...selectComponentFieldSettings_js_namespaceObject.allowMultiple,
80
+ useVisible () {
81
+ const isAssociationField = (0, FormItem_Settings_js_namespaceObject.useIsAssociationField)();
82
+ const IsShowMultipleSwitch = (0, useIsShowMultipleSwitch_js_namespaceObject.useIsShowMultipleSwitch)();
83
+ return isAssociationField && IsShowMultipleSwitch();
84
+ }
85
+ },
86
+ {
87
+ ...selectComponentFieldSettings_js_namespaceObject.enableLink,
88
+ useVisible () {
89
+ const readPretty = (0, FormItem_Settings_js_namespaceObject.useIsFieldReadPretty)();
90
+ return (0, FormItem_Settings_js_namespaceObject.useIsAssociationField)() && readPretty;
91
+ }
92
+ }
93
+ ]
94
+ });
95
+ var __webpack_export_target__ = exports;
96
+ for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
97
+ if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
98
+ value: true
99
+ });
@@ -39,8 +39,15 @@ var __webpack_require__ = {};
39
39
  var __webpack_exports__ = {};
40
40
  __webpack_require__.r(__webpack_exports__);
41
41
  __webpack_require__.d(__webpack_exports__, {
42
+ allowMultiple: ()=>allowMultiple,
43
+ fieldComponent: ()=>fieldComponent,
44
+ quickCreate: ()=>quickCreate,
45
+ setDefaultSortingRules: ()=>setDefaultSortingRules,
46
+ titleField: ()=>titleField,
47
+ CustomTitle: ()=>CustomTitle,
48
+ enableLink: ()=>enableLink,
42
49
  selectComponentFieldSettings: ()=>selectComponentFieldSettings,
43
- allowMultiple: ()=>allowMultiple
50
+ setTheDataScope: ()=>setTheDataScope
44
51
  });
45
52
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
46
53
  require("react");
@@ -370,6 +377,67 @@ const fieldComponent = {
370
377
  };
371
378
  }
372
379
  };
380
+ const CustomTitle = {
381
+ name: 'customTitle',
382
+ type: 'modal',
383
+ useComponentProps () {
384
+ var _fieldSchema_xcomponentprops_fieldNames, _fieldSchema_xcomponentprops;
385
+ const schema = (0, schema_namespaceObject.useFieldSchema)();
386
+ const { fieldSchema: tableColumnSchema } = (0, Table_Column_Decorator_js_namespaceObject.useColumnSchema)();
387
+ const fieldSchema = tableColumnSchema || schema;
388
+ const { t } = (0, external_react_i18next_namespaceObject.useTranslation)();
389
+ const { dn } = (0, external_schema_component_index_js_namespaceObject.useDesignable)();
390
+ const options = (0, external_schema_settings_index_js_namespaceObject.useFormulaTitleOptions)();
391
+ const def = null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : null === (_fieldSchema_xcomponentprops_fieldNames = _fieldSchema_xcomponentprops.fieldNames) || void 0 === _fieldSchema_xcomponentprops_fieldNames ? void 0 : _fieldSchema_xcomponentprops_fieldNames.formula;
392
+ const field = (0, schema_namespaceObject.useField)();
393
+ return {
394
+ title: t('Custom option label'),
395
+ schema: {
396
+ type: 'object',
397
+ title: t('Custom option label'),
398
+ properties: {
399
+ formula: {
400
+ required: true,
401
+ 'x-decorator': 'FormItem',
402
+ 'x-component': 'Variable.TextArea',
403
+ 'x-component-props': {
404
+ scope: options
405
+ },
406
+ default: def
407
+ }
408
+ }
409
+ },
410
+ onSubmit: (param)=>{
411
+ let { formula } = param;
412
+ if (formula) {
413
+ var _fieldSchema_xcomponentprops, _field_componentProps;
414
+ const componentProps = {
415
+ ...fieldSchema['x-component-props'],
416
+ fieldNames: {
417
+ ...null === (_fieldSchema_xcomponentprops = fieldSchema['x-component-props']) || void 0 === _fieldSchema_xcomponentprops ? void 0 : _fieldSchema_xcomponentprops['fieldNames'],
418
+ formula
419
+ }
420
+ };
421
+ field.componentProps = {
422
+ ...field.componentProps,
423
+ fieldNames: {
424
+ ...null === (_field_componentProps = field.componentProps) || void 0 === _field_componentProps ? void 0 : _field_componentProps.fieldNames,
425
+ formula
426
+ }
427
+ };
428
+ fieldSchema['x-component-props'] = componentProps;
429
+ dn.emit('patch', {
430
+ schema: {
431
+ 'x-uid': fieldSchema['x-uid'],
432
+ 'x-component-props': componentProps
433
+ }
434
+ });
435
+ }
436
+ dn.refresh();
437
+ }
438
+ };
439
+ }
440
+ };
373
441
  const selectComponentFieldSettings = new SchemaSettings_js_namespaceObject.SchemaSettings({
374
442
  name: 'fieldSettings:component:Select',
375
443
  items: [
@@ -426,11 +494,6 @@ const selectComponentFieldSettings = new SchemaSettings_js_namespaceObject.Schem
426
494
  const readPretty = (0, FormItem_Settings_js_namespaceObject.useIsFieldReadPretty)();
427
495
  return (0, FormItem_Settings_js_namespaceObject.useIsAssociationField)() && readPretty;
428
496
  }
429
- },
430
- {
431
- name: 'formulatitleField',
432
- Component: external_schema_settings_index_js_namespaceObject.EditFormulaTitleField,
433
- useVisible: external_schema_settings_index_js_namespaceObject.useFormulaTitleVisible
434
497
  }
435
498
  ]
436
499
  });
@@ -301,7 +301,7 @@ function WorkflowSelectComponent(param) {
301
301
  const [workflowCollection, setWorkflowCollection] = (0, external_react_namespaceObject.useState)((0, external_collection_manager_index_js_namespaceObject.joinCollectionName)(dataSourceKey, baseCollection.name));
302
302
  const compile = (0, external_index_js_namespaceObject.useCompile)();
303
303
  const workflowPlugin = (0, hooks_index_js_namespaceObject.usePlugin)('workflow');
304
- const workflowTypes = (0, external_react_namespaceObject.useMemo)(()=>workflowPlugin.getTriggersOptions().filter((item)=>'function' == typeof item.options.isActionTriggerable || true === item.options.isActionTriggerable).map((item)=>item.value), [
304
+ (0, external_react_namespaceObject.useMemo)(()=>workflowPlugin.getTriggersOptions().filter((item)=>'function' == typeof item.options.isActionTriggerable || true === item.options.isActionTriggerable).map((item)=>item.value), [
305
305
  workflowPlugin
306
306
  ]);
307
307
  (0, schema_namespaceObject.useFormEffects)(()=>{
@@ -354,13 +354,11 @@ function WorkflowSelectComponent(param) {
354
354
  action: 'list',
355
355
  params: {
356
356
  filter: {
357
- type: workflowTypes,
358
- enabled: true,
357
+ type: void 0 === props.filterType ? void 0 : props.filterType,
358
+ enabled: void 0 === props.filterEnabled || props.filterEnabled,
359
359
  'config.collection': noCollection ? void 0 : workflowCollection,
360
- sync: props.parentSync ? props.parentSync : void 0,
361
- key: props.parentKey ? {
362
- $ne: props.parentKey
363
- } : void 0
360
+ sync: void 0 === props.filterSync ? void 0 : props.filterSync,
361
+ key: void 0 === props.filterKey ? void 0 : props.filterKey
364
362
  }
365
363
  }
366
364
  },
@@ -49,7 +49,7 @@ const AssociationCascader = (0, schema_namespaceObject.connect)((props)=>{
49
49
  fields: [
50
50
  titleField
51
51
  ],
52
- pageSize: 99999,
52
+ paginate: false,
53
53
  filter: (null == props ? void 0 : null === (_props_params = props.params) || void 0 === _props_params ? void 0 : _props_params.filter) ? {
54
54
  ...null == props ? void 0 : null === (_props_params1 = props.params) || void 0 === _props_params1 ? void 0 : _props_params1.filter
55
55
  } : {}
@@ -114,7 +114,7 @@ const EditableAssociationField = (0, schema_namespaceObject.observer)((props)=>{
114
114
  'PopoverNester' === currentMode && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_InternalPopoverNester_js_namespaceObject.InternaPopoverNester, {
115
115
  ...props
116
116
  }),
117
- 'Select' === currentMode && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AssociationSelect, {
117
+ ('Select' === currentMode || 'CustomTitle' === currentMode) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AssociationSelect, {
118
118
  ...props
119
119
  }),
120
120
  'SubTable' === currentMode && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_InternalSubTable_js_namespaceObject.InternalSubTable, {
@@ -122,7 +122,7 @@ const Cascade = (0, schema_namespaceObject.connect)((props)=>{
122
122
  onDropdownVisibleChange(true);
123
123
  setSelectedOptions(defaultData);
124
124
  } else resource.list({
125
- pageSize: 9999,
125
+ paginate: false,
126
126
  filter: propsValue.id ? {
127
127
  id: {
128
128
  $eq: propsValue.id
@@ -148,7 +148,7 @@ const Cascade = (0, schema_namespaceObject.connect)((props)=>{
148
148
  const handleGetOptions = async ()=>{
149
149
  var _response_data;
150
150
  const response = await resource.list({
151
- pageSize: 9999,
151
+ paginate: false,
152
152
  filter: (0, utils_js_namespaceObject.mergeFilter)([
153
153
  fieldFilter,
154
154
  filter