@nocobase/client 0.7.7-alpha.1 → 0.8.0-alpha.4

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 (229) hide show
  1. package/es/acl/ACLShortcut.d.ts +2 -0
  2. package/es/acl/ACLShortcut.js +31 -2
  3. package/es/application/Application.d.ts +3 -1
  4. package/es/application/Application.js +131 -39
  5. package/es/block-provider/CalendarBlockProvider.d.ts +1 -0
  6. package/es/block-provider/CalendarBlockProvider.js +6 -3
  7. package/es/block-provider/TableSelectorProvider.js +21 -6
  8. package/es/block-provider/hooks/index.d.ts +6 -0
  9. package/es/block-provider/hooks/index.js +485 -115
  10. package/es/collection-manager/CollectionManagerProvider.js +26 -45
  11. package/es/collection-manager/CollectionManagerShortcut.d.ts +2 -0
  12. package/es/collection-manager/CollectionManagerShortcut.js +38 -3
  13. package/es/collection-manager/Configuration/AddFieldAction.d.ts +5 -1
  14. package/es/collection-manager/Configuration/AddFieldAction.js +44 -13
  15. package/es/collection-manager/Configuration/EditFieldAction.d.ts +1 -0
  16. package/es/collection-manager/Configuration/EditFieldAction.js +24 -11
  17. package/es/collection-manager/Configuration/index.d.ts +2 -0
  18. package/es/collection-manager/Configuration/index.js +2 -0
  19. package/es/collection-manager/Configuration/schemas/collectionFields.js +2 -2
  20. package/es/collection-manager/index.d.ts +1 -0
  21. package/es/collection-manager/index.js +2 -1
  22. package/es/collection-manager/interfaces/index.d.ts +1 -0
  23. package/es/collection-manager/interfaces/index.js +1 -0
  24. package/es/collection-manager/interfaces/json.d.ts +2 -0
  25. package/es/collection-manager/interfaces/json.js +48 -0
  26. package/es/collection-manager/interfaces/m2o.js +3 -3
  27. package/es/collection-manager/interfaces/o2m.js +5 -6
  28. package/es/collection-manager/interfaces/o2o.js +5 -5
  29. package/es/collection-manager/interfaces/properties/index.d.ts +14 -0
  30. package/es/collection-manager/interfaces/properties/index.js +23 -0
  31. package/es/collection-manager/interfaces/sequence.js +13 -9
  32. package/es/index.d.ts +1 -0
  33. package/es/index.js +1 -0
  34. package/es/locale/en_US.d.ts +13 -1
  35. package/es/locale/en_US.js +14 -2
  36. package/es/locale/ja_JP.d.ts +1 -1
  37. package/es/locale/ja_JP.js +1 -1
  38. package/es/locale/ru_RU.d.ts +1 -1
  39. package/es/locale/ru_RU.js +1 -1
  40. package/es/locale/tr_TR.d.ts +1 -1
  41. package/es/locale/tr_TR.js +1 -1
  42. package/es/locale/zh_CN.d.ts +39 -1
  43. package/es/locale/zh_CN.js +40 -2
  44. package/es/plugin-manager/PluginManager.js +35 -23
  45. package/es/pm/PluginManagerLink.d.ts +2 -0
  46. package/es/pm/PluginManagerLink.js +111 -0
  47. package/es/pm/index.d.ts +4 -0
  48. package/es/pm/index.js +422 -0
  49. package/es/route-switch/antd/admin-layout/index.js +1 -1
  50. package/es/schema-component/antd/action/Action.Designer.js +35 -12
  51. package/es/schema-component/antd/action/Action.Modal.js +4 -2
  52. package/es/schema-component/antd/action/Action.js +3 -3
  53. package/es/schema-component/antd/action/context.d.ts +2 -0
  54. package/es/schema-component/antd/action/hooks.d.ts +1 -0
  55. package/es/schema-component/antd/calendar/Calendar.Designer.js +19 -6
  56. package/es/schema-component/antd/calendar/Calendar.js +23 -2
  57. package/es/schema-component/antd/calendar/Title.js +18 -3
  58. package/es/schema-component/antd/calendar/components/Header.d.ts +10 -0
  59. package/es/schema-component/antd/calendar/components/Header.js +43 -0
  60. package/es/schema-component/antd/calendar/style.less +53 -9
  61. package/es/schema-component/antd/calendar/types.d.ts +6 -0
  62. package/es/schema-component/antd/calendar/utils.d.ts +2 -0
  63. package/es/schema-component/antd/calendar/utils.js +7 -0
  64. package/es/schema-component/antd/checkbox/Checkbox.js +13 -4
  65. package/es/schema-component/antd/formula-input/FormulaInput.js +28 -37
  66. package/es/schema-component/antd/input/Input.d.ts +1 -0
  67. package/es/schema-component/antd/input/Input.js +2 -0
  68. package/es/schema-component/antd/input/Json.d.ts +6 -0
  69. package/es/schema-component/antd/input/Json.js +41 -0
  70. package/es/schema-component/antd/input/ReadPretty.d.ts +3 -0
  71. package/es/schema-component/antd/input/ReadPretty.js +15 -0
  72. package/es/schema-component/antd/input/index.d.ts +1 -0
  73. package/es/schema-component/antd/input/index.js +2 -1
  74. package/es/schema-component/antd/markdown/Markdown.Void.js +5 -2
  75. package/es/schema-component/antd/radio/Radio.js +2 -1
  76. package/es/schema-component/antd/select/ReadPretty.js +2 -1
  77. package/es/schema-component/antd/table-v2/TableSelectorDesigner.js +16 -2
  78. package/es/schema-component/antd/upload/Upload.js +2 -1
  79. package/es/schema-component/antd/upload/shared.js +5 -6
  80. package/es/schema-component/antd/upload/type.d.ts +2 -0
  81. package/es/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +1 -0
  82. package/es/schema-initializer/buttons/BulkEditFormItemInitializers.js +50 -0
  83. package/es/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +1 -0
  84. package/es/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.js +35 -0
  85. package/es/schema-initializer/buttons/FormActionInitializers.d.ts +132 -0
  86. package/es/schema-initializer/buttons/FormActionInitializers.js +118 -0
  87. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
  88. package/es/schema-initializer/buttons/TabPaneInitializers.js +13 -0
  89. package/es/schema-initializer/buttons/TableActionInitializers.d.ts +56 -2
  90. package/es/schema-initializer/buttons/TableActionInitializers.js +45 -0
  91. package/es/schema-initializer/buttons/index.d.ts +2 -0
  92. package/es/schema-initializer/buttons/index.js +2 -0
  93. package/es/schema-initializer/components/BulkEditField.d.ts +7 -0
  94. package/es/schema-initializer/components/BulkEditField.js +187 -0
  95. package/es/schema-initializer/components/index.d.ts +1 -0
  96. package/es/schema-initializer/components/index.js +2 -1
  97. package/es/schema-initializer/items/BlockInitializer.js +8 -8
  98. package/es/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +1 -0
  99. package/es/schema-initializer/items/BulkEditSubmitActionInitializer.js +24 -0
  100. package/es/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +1 -0
  101. package/es/schema-initializer/items/CreateFormBulkEditBlockInitializer.js +103 -0
  102. package/es/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +1 -0
  103. package/es/schema-initializer/items/CustomizeBulkEditActionInitializer.js +61 -0
  104. package/es/schema-initializer/items/index.d.ts +3 -0
  105. package/es/schema-initializer/items/index.js +3 -0
  106. package/es/schema-initializer/utils.d.ts +1 -0
  107. package/es/schema-initializer/utils.js +67 -12
  108. package/es/schema-settings/SchemaSettings.d.ts +6 -0
  109. package/es/schema-settings/SchemaSettings.js +4 -1
  110. package/es/schema-templates/BlockTemplatePage.d.ts +1 -0
  111. package/es/schema-templates/BlockTemplatePage.js +7 -0
  112. package/es/schema-templates/SchemaTemplateShortcut.js +1 -1
  113. package/es/system-settings/SystemSettingsShortcut.d.ts +2 -0
  114. package/es/system-settings/SystemSettingsShortcut.js +134 -5
  115. package/lib/acl/ACLShortcut.d.ts +2 -0
  116. package/lib/acl/ACLShortcut.js +41 -4
  117. package/lib/application/Application.d.ts +3 -1
  118. package/lib/application/Application.js +139 -39
  119. package/lib/block-provider/CalendarBlockProvider.d.ts +1 -0
  120. package/lib/block-provider/CalendarBlockProvider.js +6 -3
  121. package/lib/block-provider/TableSelectorProvider.js +21 -6
  122. package/lib/block-provider/hooks/index.d.ts +6 -0
  123. package/lib/block-provider/hooks/index.js +496 -115
  124. package/lib/collection-manager/CollectionManagerProvider.js +28 -47
  125. package/lib/collection-manager/CollectionManagerShortcut.d.ts +2 -0
  126. package/lib/collection-manager/CollectionManagerShortcut.js +47 -4
  127. package/lib/collection-manager/Configuration/AddFieldAction.d.ts +5 -1
  128. package/lib/collection-manager/Configuration/AddFieldAction.js +48 -12
  129. package/lib/collection-manager/Configuration/EditFieldAction.d.ts +1 -0
  130. package/lib/collection-manager/Configuration/EditFieldAction.js +26 -10
  131. package/lib/collection-manager/Configuration/index.d.ts +2 -0
  132. package/lib/collection-manager/Configuration/index.js +26 -0
  133. package/lib/collection-manager/Configuration/schemas/collectionFields.js +2 -2
  134. package/lib/collection-manager/index.d.ts +1 -0
  135. package/lib/collection-manager/index.js +14 -0
  136. package/lib/collection-manager/interfaces/index.d.ts +1 -0
  137. package/lib/collection-manager/interfaces/index.js +13 -0
  138. package/lib/collection-manager/interfaces/json.d.ts +2 -0
  139. package/lib/collection-manager/interfaces/json.js +58 -0
  140. package/lib/collection-manager/interfaces/m2o.js +2 -2
  141. package/lib/collection-manager/interfaces/o2m.js +4 -5
  142. package/lib/collection-manager/interfaces/o2o.js +4 -4
  143. package/lib/collection-manager/interfaces/properties/index.d.ts +14 -0
  144. package/lib/collection-manager/interfaces/properties/index.js +25 -1
  145. package/lib/collection-manager/interfaces/sequence.js +13 -9
  146. package/lib/index.d.ts +1 -0
  147. package/lib/index.js +13 -0
  148. package/lib/locale/en_US.d.ts +13 -1
  149. package/lib/locale/en_US.js +14 -2
  150. package/lib/locale/ja_JP.d.ts +1 -1
  151. package/lib/locale/ja_JP.js +1 -1
  152. package/lib/locale/ru_RU.d.ts +1 -1
  153. package/lib/locale/ru_RU.js +1 -1
  154. package/lib/locale/tr_TR.d.ts +1 -1
  155. package/lib/locale/tr_TR.js +1 -1
  156. package/lib/locale/zh_CN.d.ts +39 -1
  157. package/lib/locale/zh_CN.js +40 -2
  158. package/lib/plugin-manager/PluginManager.js +33 -21
  159. package/lib/pm/PluginManagerLink.d.ts +2 -0
  160. package/lib/pm/PluginManagerLink.js +138 -0
  161. package/lib/pm/index.d.ts +4 -0
  162. package/lib/pm/index.js +474 -0
  163. package/lib/route-switch/antd/admin-layout/index.js +1 -1
  164. package/lib/schema-component/antd/action/Action.Designer.js +35 -12
  165. package/lib/schema-component/antd/action/Action.Modal.js +4 -2
  166. package/lib/schema-component/antd/action/Action.js +3 -3
  167. package/lib/schema-component/antd/action/context.d.ts +2 -0
  168. package/lib/schema-component/antd/action/hooks.d.ts +1 -0
  169. package/lib/schema-component/antd/calendar/Calendar.Designer.js +19 -6
  170. package/lib/schema-component/antd/calendar/Calendar.js +24 -2
  171. package/lib/schema-component/antd/calendar/Title.js +18 -2
  172. package/lib/schema-component/antd/calendar/components/Header.d.ts +10 -0
  173. package/lib/schema-component/antd/calendar/components/Header.js +57 -0
  174. package/lib/schema-component/antd/calendar/style.less +53 -9
  175. package/lib/schema-component/antd/calendar/types.d.ts +6 -0
  176. package/lib/schema-component/antd/calendar/utils.d.ts +2 -0
  177. package/lib/schema-component/antd/calendar/utils.js +18 -2
  178. package/lib/schema-component/antd/checkbox/Checkbox.js +13 -4
  179. package/lib/schema-component/antd/formula-input/FormulaInput.js +28 -37
  180. package/lib/schema-component/antd/input/Input.d.ts +1 -0
  181. package/lib/schema-component/antd/input/Input.js +3 -0
  182. package/lib/schema-component/antd/input/Json.d.ts +6 -0
  183. package/lib/schema-component/antd/input/Json.js +53 -0
  184. package/lib/schema-component/antd/input/ReadPretty.d.ts +3 -0
  185. package/lib/schema-component/antd/input/ReadPretty.js +16 -0
  186. package/lib/schema-component/antd/input/index.d.ts +1 -0
  187. package/lib/schema-component/antd/input/index.js +13 -0
  188. package/lib/schema-component/antd/markdown/Markdown.Void.js +8 -2
  189. package/lib/schema-component/antd/radio/Radio.js +2 -1
  190. package/lib/schema-component/antd/select/ReadPretty.js +2 -1
  191. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +17 -2
  192. package/lib/schema-component/antd/upload/Upload.js +2 -1
  193. package/lib/schema-component/antd/upload/shared.js +4 -5
  194. package/lib/schema-component/antd/upload/type.d.ts +2 -0
  195. package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +1 -0
  196. package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.js +66 -0
  197. package/lib/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +1 -0
  198. package/lib/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.js +50 -0
  199. package/lib/schema-initializer/buttons/FormActionInitializers.d.ts +132 -0
  200. package/lib/schema-initializer/buttons/FormActionInitializers.js +121 -2
  201. package/lib/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
  202. package/lib/schema-initializer/buttons/TabPaneInitializers.js +18 -2
  203. package/lib/schema-initializer/buttons/TableActionInitializers.d.ts +56 -2
  204. package/lib/schema-initializer/buttons/TableActionInitializers.js +45 -0
  205. package/lib/schema-initializer/buttons/index.d.ts +2 -0
  206. package/lib/schema-initializer/buttons/index.js +26 -0
  207. package/lib/schema-initializer/components/BulkEditField.d.ts +7 -0
  208. package/lib/schema-initializer/components/BulkEditField.js +210 -0
  209. package/lib/schema-initializer/components/index.d.ts +1 -0
  210. package/lib/schema-initializer/components/index.js +13 -0
  211. package/lib/schema-initializer/items/BlockInitializer.js +8 -7
  212. package/lib/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +1 -0
  213. package/lib/schema-initializer/items/BulkEditSubmitActionInitializer.js +37 -0
  214. package/lib/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +1 -0
  215. package/lib/schema-initializer/items/CreateFormBulkEditBlockInitializer.js +121 -0
  216. package/lib/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +1 -0
  217. package/lib/schema-initializer/items/CustomizeBulkEditActionInitializer.js +74 -0
  218. package/lib/schema-initializer/items/index.d.ts +3 -0
  219. package/lib/schema-initializer/items/index.js +39 -0
  220. package/lib/schema-initializer/utils.d.ts +1 -0
  221. package/lib/schema-initializer/utils.js +71 -13
  222. package/lib/schema-settings/SchemaSettings.d.ts +6 -0
  223. package/lib/schema-settings/SchemaSettings.js +3 -0
  224. package/lib/schema-templates/BlockTemplatePage.d.ts +1 -0
  225. package/lib/schema-templates/BlockTemplatePage.js +12 -2
  226. package/lib/schema-templates/SchemaTemplateShortcut.js +1 -1
  227. package/lib/system-settings/SystemSettingsShortcut.d.ts +2 -0
  228. package/lib/system-settings/SystemSettingsShortcut.js +145 -7
  229. package/package.json +5 -4
@@ -394,3 +394,135 @@ export declare const UpdateFormActionInitializers: {
394
394
  })[];
395
395
  })[];
396
396
  };
397
+ export declare const BulkEditFormActionInitializers: {
398
+ title: string;
399
+ icon: string;
400
+ items: ({
401
+ type: string;
402
+ title: string;
403
+ children: {
404
+ type: string;
405
+ title: string;
406
+ component: string;
407
+ schema: {
408
+ 'x-action-settings': {};
409
+ };
410
+ }[];
411
+ } | {
412
+ type: string;
413
+ title?: undefined;
414
+ children?: undefined;
415
+ } | {
416
+ type: string;
417
+ title: string;
418
+ children: ({
419
+ type: string;
420
+ title: string;
421
+ component: string;
422
+ schema: {
423
+ type: string;
424
+ title: string;
425
+ 'x-action': string;
426
+ 'x-designer': string;
427
+ 'x-component': string;
428
+ 'x-component-props': {
429
+ openMode: string;
430
+ useProps?: undefined;
431
+ };
432
+ properties: {
433
+ drawer: {
434
+ type: string;
435
+ title: string;
436
+ 'x-component': string;
437
+ 'x-component-props': {
438
+ className: string;
439
+ };
440
+ properties: {
441
+ tabs: {
442
+ type: string;
443
+ 'x-component': string;
444
+ 'x-component-props': {};
445
+ 'x-initializer': string;
446
+ properties: {
447
+ tab1: {
448
+ type: string;
449
+ title: string;
450
+ 'x-component': string;
451
+ 'x-designer': string;
452
+ 'x-component-props': {};
453
+ properties: {
454
+ grid: {
455
+ type: string;
456
+ 'x-component': string;
457
+ 'x-initializer': string;
458
+ properties: {};
459
+ };
460
+ };
461
+ };
462
+ };
463
+ };
464
+ };
465
+ };
466
+ };
467
+ 'x-designer-props'?: undefined;
468
+ 'x-action-settings'?: undefined;
469
+ };
470
+ } | {
471
+ type: string;
472
+ title: string;
473
+ component: string;
474
+ schema: {
475
+ title: string;
476
+ 'x-component': string;
477
+ 'x-action': string;
478
+ 'x-designer': string;
479
+ 'x-designer-props': {
480
+ modalTip: string;
481
+ };
482
+ 'x-action-settings': {
483
+ assignedValues: {};
484
+ skipValidator: boolean;
485
+ onSuccess: {
486
+ manualClose: boolean;
487
+ redirecting: boolean;
488
+ successMessage: string;
489
+ };
490
+ requestSettings?: undefined;
491
+ };
492
+ 'x-component-props': {
493
+ useProps: string;
494
+ openMode?: undefined;
495
+ };
496
+ type?: undefined;
497
+ properties?: undefined;
498
+ };
499
+ } | {
500
+ type: string;
501
+ title: string;
502
+ component: string;
503
+ schema: {
504
+ title: string;
505
+ 'x-component': string;
506
+ 'x-action': string;
507
+ 'x-designer': string;
508
+ 'x-action-settings': {
509
+ requestSettings: {};
510
+ skipValidator: boolean;
511
+ onSuccess: {
512
+ manualClose: boolean;
513
+ redirecting: boolean;
514
+ successMessage: string;
515
+ };
516
+ assignedValues?: undefined;
517
+ };
518
+ 'x-component-props': {
519
+ useProps: string;
520
+ openMode?: undefined;
521
+ };
522
+ type?: undefined;
523
+ properties?: undefined;
524
+ 'x-designer-props'?: undefined;
525
+ };
526
+ })[];
527
+ })[];
528
+ };
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.UpdateFormActionInitializers = exports.FormActionInitializers = exports.CreateFormActionInitializers = void 0;
6
+ exports.UpdateFormActionInitializers = exports.FormActionInitializers = exports.CreateFormActionInitializers = exports.BulkEditFormActionInitializers = void 0;
7
7
  // 表单的操作配置
8
8
  var FormActionInitializers = {
9
9
  title: '{{t("Configure actions")}}',
@@ -361,4 +361,123 @@ var UpdateFormActionInitializers = {
361
361
  }]
362
362
  }]
363
363
  };
364
- exports.UpdateFormActionInitializers = UpdateFormActionInitializers;
364
+ exports.UpdateFormActionInitializers = UpdateFormActionInitializers;
365
+ var BulkEditFormActionInitializers = {
366
+ title: '{{t("Configure actions")}}',
367
+ icon: 'SettingOutlined',
368
+ items: [{
369
+ type: 'itemGroup',
370
+ title: '{{t("Enable actions")}}',
371
+ children: [{
372
+ type: 'item',
373
+ title: '{{t("Submit")}}',
374
+ component: 'BulkEditSubmitActionInitializer',
375
+ schema: {
376
+ 'x-action-settings': {}
377
+ }
378
+ }]
379
+ }, {
380
+ type: 'divider'
381
+ }, {
382
+ type: 'subMenu',
383
+ title: '{{t("Customize")}}',
384
+ children: [{
385
+ type: 'item',
386
+ title: '{{t("Popup")}}',
387
+ component: 'CustomizeActionInitializer',
388
+ schema: {
389
+ type: 'void',
390
+ title: '{{ t("Popup") }}',
391
+ 'x-action': 'customize:popup',
392
+ 'x-designer': 'Action.Designer',
393
+ 'x-component': 'Action',
394
+ 'x-component-props': {
395
+ openMode: 'drawer'
396
+ },
397
+ properties: {
398
+ drawer: {
399
+ type: 'void',
400
+ title: '{{ t("Popup") }}',
401
+ 'x-component': 'Action.Container',
402
+ 'x-component-props': {
403
+ className: 'nb-action-popup'
404
+ },
405
+ properties: {
406
+ tabs: {
407
+ type: 'void',
408
+ 'x-component': 'Tabs',
409
+ 'x-component-props': {},
410
+ 'x-initializer': 'TabPaneInitializers',
411
+ properties: {
412
+ tab1: {
413
+ type: 'void',
414
+ title: '{{t("Details")}}',
415
+ 'x-component': 'Tabs.TabPane',
416
+ 'x-designer': 'Tabs.Designer',
417
+ 'x-component-props': {},
418
+ properties: {
419
+ grid: {
420
+ type: 'void',
421
+ 'x-component': 'Grid',
422
+ 'x-initializer': 'RecordBlockInitializers',
423
+ properties: {}
424
+ }
425
+ }
426
+ }
427
+ }
428
+ }
429
+ }
430
+ }
431
+ }
432
+ }
433
+ }, {
434
+ type: 'item',
435
+ title: '{{t("Save record")}}',
436
+ component: 'CustomizeActionInitializer',
437
+ schema: {
438
+ title: '{{ t("Save") }}',
439
+ 'x-component': 'Action',
440
+ 'x-action': 'customize:save',
441
+ 'x-designer': 'Action.Designer',
442
+ 'x-designer-props': {
443
+ modalTip: '{{ t("When the button is clicked, the following fields will be assigned and saved together with the fields in the form. If there are overlapping fields, the value here will overwrite the value in the form.") }}'
444
+ },
445
+ 'x-action-settings': {
446
+ assignedValues: {},
447
+ skipValidator: false,
448
+ onSuccess: {
449
+ manualClose: true,
450
+ redirecting: false,
451
+ successMessage: '{{t("Saved successfully")}}'
452
+ }
453
+ },
454
+ 'x-component-props': {
455
+ useProps: '{{ useUpdateActionProps }}'
456
+ }
457
+ }
458
+ }, {
459
+ type: 'item',
460
+ title: '{{t("Custom request")}}',
461
+ component: 'CustomizeActionInitializer',
462
+ schema: {
463
+ title: '{{ t("Custom request") }}',
464
+ 'x-component': 'Action',
465
+ 'x-action': 'customize:form:request',
466
+ 'x-designer': 'Action.Designer',
467
+ 'x-action-settings': {
468
+ requestSettings: {},
469
+ skipValidator: false,
470
+ onSuccess: {
471
+ manualClose: false,
472
+ redirecting: false,
473
+ successMessage: '{{t("Request success")}}'
474
+ }
475
+ },
476
+ 'x-component-props': {
477
+ useProps: '{{ useCustomizeRequestActionProps }}'
478
+ }
479
+ }
480
+ }]
481
+ }]
482
+ };
483
+ exports.BulkEditFormActionInitializers = BulkEditFormActionInitializers;
@@ -1,2 +1,3 @@
1
1
  export declare const TabPaneInitializers: (props?: any) => JSX.Element;
2
2
  export declare const TabPaneInitializersForCreateFormBlock: () => JSX.Element;
3
+ export declare const TabPaneInitializersForBulkEditFormBlock: () => JSX.Element;
@@ -3,7 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- exports.TabPaneInitializersForCreateFormBlock = exports.TabPaneInitializers = void 0;
6
+ exports.TabPaneInitializersForCreateFormBlock = exports.TabPaneInitializersForBulkEditFormBlock = exports.TabPaneInitializers = void 0;
7
7
 
8
8
  var _react = require("@formily/react");
9
9
 
@@ -30,6 +30,14 @@ var TabPaneInitializers = function TabPaneInitializers(props) {
30
30
  var form = (0, _react.useForm)();
31
31
  var ctx = (0, _.useActionContext)();
32
32
  var index = (0, _.useRecordIndex)();
33
+ var initializer = 'RecordBlockInitializers';
34
+
35
+ if (props.isCreate || index === null) {
36
+ initializer = 'CreateFormBlockInitializers';
37
+ } else if (props.isBulkEdit) {
38
+ initializer = 'CreateFormBulkEditBlockInitializers';
39
+ }
40
+
33
41
  return {
34
42
  run: function run() {
35
43
  return _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
@@ -173,4 +181,12 @@ var TabPaneInitializersForCreateFormBlock = function TabPaneInitializersForCreat
173
181
  });
174
182
  };
175
183
 
176
- exports.TabPaneInitializersForCreateFormBlock = TabPaneInitializersForCreateFormBlock;
184
+ exports.TabPaneInitializersForCreateFormBlock = TabPaneInitializersForCreateFormBlock;
185
+
186
+ var TabPaneInitializersForBulkEditFormBlock = function TabPaneInitializersForBulkEditFormBlock() {
187
+ return /*#__PURE__*/_react2.default.createElement(TabPaneInitializers, {
188
+ isBulkEdit: true
189
+ });
190
+ };
191
+
192
+ exports.TabPaneInitializersForBulkEditFormBlock = TabPaneInitializersForBulkEditFormBlock;
@@ -4,7 +4,7 @@ export declare const TableActionInitializers: {
4
4
  style: {
5
5
  marginLeft: number;
6
6
  };
7
- items: {
7
+ items: ({
8
8
  type: string;
9
9
  title: string;
10
10
  children: ({
@@ -28,5 +28,59 @@ export declare const TableActionInitializers: {
28
28
  };
29
29
  };
30
30
  })[];
31
- }[];
31
+ } | {
32
+ type: string;
33
+ title?: undefined;
34
+ children?: undefined;
35
+ } | {
36
+ type: string;
37
+ title: string;
38
+ children: ({
39
+ type: string;
40
+ title: string;
41
+ component: string;
42
+ schema: {
43
+ type: string;
44
+ title: string;
45
+ 'x-component': string;
46
+ 'x-align': string;
47
+ 'x-decorator': string;
48
+ 'x-acl-action-props': {
49
+ skipScopeCheck: boolean;
50
+ };
51
+ 'x-action': string;
52
+ 'x-designer': string;
53
+ 'x-action-settings': {
54
+ assignedValues: {};
55
+ updateMode: string;
56
+ onSuccess: {
57
+ manualClose: boolean;
58
+ redirecting: boolean;
59
+ successMessage: string;
60
+ };
61
+ };
62
+ 'x-component-props': {
63
+ useProps: string;
64
+ };
65
+ };
66
+ } | {
67
+ type: string;
68
+ title: string;
69
+ component: string;
70
+ schema: {
71
+ 'x-align': string;
72
+ 'x-decorator': string;
73
+ 'x-acl-action-props': {
74
+ skipScopeCheck: boolean;
75
+ };
76
+ type?: undefined;
77
+ title?: undefined;
78
+ 'x-component'?: undefined;
79
+ 'x-action'?: undefined;
80
+ 'x-designer'?: undefined;
81
+ 'x-action-settings'?: undefined;
82
+ 'x-component-props'?: undefined;
83
+ };
84
+ })[];
85
+ })[];
32
86
  };
@@ -55,6 +55,51 @@ var TableActionInitializers = {
55
55
  }
56
56
  }
57
57
  }]
58
+ }, {
59
+ type: 'divider'
60
+ }, {
61
+ type: 'subMenu',
62
+ title: '{{t("Customize")}}',
63
+ children: [{
64
+ type: 'item',
65
+ title: '{{t("Bulk update")}}',
66
+ component: 'CustomizeActionInitializer',
67
+ schema: {
68
+ type: 'void',
69
+ title: '{{ t("Bulk update") }}',
70
+ 'x-component': 'Action',
71
+ 'x-align': 'right',
72
+ 'x-decorator': 'ACLActionProvider',
73
+ 'x-acl-action-props': {
74
+ skipScopeCheck: true
75
+ },
76
+ 'x-action': 'customize:bulkUpdate',
77
+ 'x-designer': 'Action.Designer',
78
+ 'x-action-settings': {
79
+ assignedValues: {},
80
+ updateMode: 'selected',
81
+ onSuccess: {
82
+ manualClose: true,
83
+ redirecting: false,
84
+ successMessage: '{{t("Updated successfully")}}'
85
+ }
86
+ },
87
+ 'x-component-props': {
88
+ useProps: '{{ useCustomizeBulkUpdateActionProps }}'
89
+ }
90
+ }
91
+ }, {
92
+ type: 'item',
93
+ title: '{{t("Bulk edit")}}',
94
+ component: 'CustomizeBulkEditActionInitializer',
95
+ schema: {
96
+ 'x-align': 'right',
97
+ 'x-decorator': 'ACLActionProvider',
98
+ 'x-acl-action-props': {
99
+ skipScopeCheck: true
100
+ }
101
+ }
102
+ }]
58
103
  }]
59
104
  };
60
105
  exports.TableActionInitializers = TableActionInitializers;
@@ -1,6 +1,8 @@
1
1
  export * from './BlockInitializers';
2
+ export * from './BulkEditFormItemInitializers';
2
3
  export * from './CalendarActionInitializers';
3
4
  export * from './CreateFormBlockInitializers';
5
+ export * from './CreateFormBulkEditBlockInitializers';
4
6
  export * from './CustomFormItemInitializers';
5
7
  export * from './DetailsActionInitializers';
6
8
  export * from './FormActionInitializers';
@@ -17,6 +17,19 @@ Object.keys(_BlockInitializers).forEach(function (key) {
17
17
  });
18
18
  });
19
19
 
20
+ var _BulkEditFormItemInitializers = require("./BulkEditFormItemInitializers");
21
+
22
+ Object.keys(_BulkEditFormItemInitializers).forEach(function (key) {
23
+ if (key === "default" || key === "__esModule") return;
24
+ if (key in exports && exports[key] === _BulkEditFormItemInitializers[key]) return;
25
+ Object.defineProperty(exports, key, {
26
+ enumerable: true,
27
+ get: function get() {
28
+ return _BulkEditFormItemInitializers[key];
29
+ }
30
+ });
31
+ });
32
+
20
33
  var _CalendarActionInitializers = require("./CalendarActionInitializers");
21
34
 
22
35
  Object.keys(_CalendarActionInitializers).forEach(function (key) {
@@ -43,6 +56,19 @@ Object.keys(_CreateFormBlockInitializers).forEach(function (key) {
43
56
  });
44
57
  });
45
58
 
59
+ var _CreateFormBulkEditBlockInitializers = require("./CreateFormBulkEditBlockInitializers");
60
+
61
+ Object.keys(_CreateFormBulkEditBlockInitializers).forEach(function (key) {
62
+ if (key === "default" || key === "__esModule") return;
63
+ if (key in exports && exports[key] === _CreateFormBulkEditBlockInitializers[key]) return;
64
+ Object.defineProperty(exports, key, {
65
+ enumerable: true,
66
+ get: function get() {
67
+ return _CreateFormBulkEditBlockInitializers[key];
68
+ }
69
+ });
70
+ });
71
+
46
72
  var _CustomFormItemInitializers = require("./CustomFormItemInitializers");
47
73
 
48
74
  Object.keys(_CustomFormItemInitializers).forEach(function (key) {
@@ -0,0 +1,7 @@
1
+ export declare enum BulkEditFormItemValueType {
2
+ RemainsTheSame = 1,
3
+ ChangedTo = 2,
4
+ Clear = 3,
5
+ AddAttach = 4
6
+ }
7
+ export declare const BulkEditField: (props: any) => JSX.Element;