@nocobase/client 0.7.6-alpha.2 → 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 (235) hide show
  1. package/es/acl/ACLShortcut.d.ts +2 -0
  2. package/es/acl/ACLShortcut.js +31 -2
  3. package/es/api-client/APIClient.d.ts +1 -0
  4. package/es/api-client/APIClient.js +6 -1
  5. package/es/application/Application.d.ts +3 -1
  6. package/es/application/Application.js +131 -39
  7. package/es/block-provider/BlockProvider.js +12 -1
  8. package/es/block-provider/CalendarBlockProvider.d.ts +1 -0
  9. package/es/block-provider/CalendarBlockProvider.js +6 -3
  10. package/es/block-provider/TableSelectorProvider.js +21 -6
  11. package/es/block-provider/hooks/index.d.ts +6 -0
  12. package/es/block-provider/hooks/index.js +485 -115
  13. package/es/collection-manager/CollectionManagerProvider.js +26 -45
  14. package/es/collection-manager/CollectionManagerShortcut.d.ts +2 -0
  15. package/es/collection-manager/CollectionManagerShortcut.js +38 -3
  16. package/es/collection-manager/Configuration/AddFieldAction.d.ts +5 -1
  17. package/es/collection-manager/Configuration/AddFieldAction.js +44 -13
  18. package/es/collection-manager/Configuration/EditFieldAction.d.ts +1 -0
  19. package/es/collection-manager/Configuration/EditFieldAction.js +24 -11
  20. package/es/collection-manager/Configuration/index.d.ts +2 -0
  21. package/es/collection-manager/Configuration/index.js +2 -0
  22. package/es/collection-manager/Configuration/schemas/collectionFields.js +2 -2
  23. package/es/collection-manager/index.d.ts +1 -0
  24. package/es/collection-manager/index.js +2 -1
  25. package/es/collection-manager/interfaces/index.d.ts +1 -0
  26. package/es/collection-manager/interfaces/index.js +1 -0
  27. package/es/collection-manager/interfaces/json.d.ts +2 -0
  28. package/es/collection-manager/interfaces/json.js +48 -0
  29. package/es/collection-manager/interfaces/m2o.js +3 -3
  30. package/es/collection-manager/interfaces/o2m.js +5 -6
  31. package/es/collection-manager/interfaces/o2o.js +5 -5
  32. package/es/collection-manager/interfaces/properties/index.d.ts +14 -0
  33. package/es/collection-manager/interfaces/properties/index.js +23 -0
  34. package/es/collection-manager/interfaces/sequence.js +13 -9
  35. package/es/index.d.ts +1 -0
  36. package/es/index.js +1 -0
  37. package/es/locale/en_US.d.ts +14 -1
  38. package/es/locale/en_US.js +15 -2
  39. package/es/locale/ja_JP.d.ts +2 -1
  40. package/es/locale/ja_JP.js +2 -1
  41. package/es/locale/ru_RU.d.ts +2 -1
  42. package/es/locale/ru_RU.js +2 -1
  43. package/es/locale/tr_TR.d.ts +1 -1
  44. package/es/locale/tr_TR.js +1 -1
  45. package/es/locale/zh_CN.d.ts +40 -1
  46. package/es/locale/zh_CN.js +41 -2
  47. package/es/plugin-manager/PluginManager.js +35 -23
  48. package/es/pm/PluginManagerLink.d.ts +2 -0
  49. package/es/pm/PluginManagerLink.js +111 -0
  50. package/es/pm/index.d.ts +4 -0
  51. package/es/pm/index.js +422 -0
  52. package/es/route-switch/antd/admin-layout/index.js +1 -1
  53. package/es/schema-component/antd/action/Action.Designer.js +35 -12
  54. package/es/schema-component/antd/action/Action.Modal.js +4 -2
  55. package/es/schema-component/antd/action/Action.js +3 -3
  56. package/es/schema-component/antd/action/context.d.ts +2 -0
  57. package/es/schema-component/antd/action/hooks.d.ts +1 -0
  58. package/es/schema-component/antd/calendar/Calendar.Designer.js +19 -6
  59. package/es/schema-component/antd/calendar/Calendar.js +23 -2
  60. package/es/schema-component/antd/calendar/Title.js +18 -3
  61. package/es/schema-component/antd/calendar/components/Header.d.ts +10 -0
  62. package/es/schema-component/antd/calendar/components/Header.js +43 -0
  63. package/es/schema-component/antd/calendar/style.less +53 -9
  64. package/es/schema-component/antd/calendar/types.d.ts +6 -0
  65. package/es/schema-component/antd/calendar/utils.d.ts +2 -0
  66. package/es/schema-component/antd/calendar/utils.js +7 -0
  67. package/es/schema-component/antd/checkbox/Checkbox.js +13 -4
  68. package/es/schema-component/antd/formula-input/FormulaInput.js +28 -37
  69. package/es/schema-component/antd/input/Input.d.ts +1 -0
  70. package/es/schema-component/antd/input/Input.js +2 -0
  71. package/es/schema-component/antd/input/Json.d.ts +6 -0
  72. package/es/schema-component/antd/input/Json.js +41 -0
  73. package/es/schema-component/antd/input/ReadPretty.d.ts +3 -0
  74. package/es/schema-component/antd/input/ReadPretty.js +15 -0
  75. package/es/schema-component/antd/input/index.d.ts +1 -0
  76. package/es/schema-component/antd/input/index.js +2 -1
  77. package/es/schema-component/antd/markdown/Markdown.Void.js +5 -2
  78. package/es/schema-component/antd/radio/Radio.js +2 -1
  79. package/es/schema-component/antd/select/ReadPretty.js +2 -1
  80. package/es/schema-component/antd/table-v2/TableSelectorDesigner.js +16 -2
  81. package/es/schema-component/antd/upload/Upload.js +2 -1
  82. package/es/schema-component/antd/upload/shared.js +5 -6
  83. package/es/schema-component/antd/upload/type.d.ts +2 -0
  84. package/es/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +1 -0
  85. package/es/schema-initializer/buttons/BulkEditFormItemInitializers.js +50 -0
  86. package/es/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +1 -0
  87. package/es/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.js +35 -0
  88. package/es/schema-initializer/buttons/FormActionInitializers.d.ts +132 -0
  89. package/es/schema-initializer/buttons/FormActionInitializers.js +118 -0
  90. package/es/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
  91. package/es/schema-initializer/buttons/TabPaneInitializers.js +13 -0
  92. package/es/schema-initializer/buttons/TableActionInitializers.d.ts +56 -2
  93. package/es/schema-initializer/buttons/TableActionInitializers.js +45 -0
  94. package/es/schema-initializer/buttons/index.d.ts +2 -0
  95. package/es/schema-initializer/buttons/index.js +2 -0
  96. package/es/schema-initializer/components/BulkEditField.d.ts +7 -0
  97. package/es/schema-initializer/components/BulkEditField.js +187 -0
  98. package/es/schema-initializer/components/index.d.ts +1 -0
  99. package/es/schema-initializer/components/index.js +2 -1
  100. package/es/schema-initializer/items/BlockInitializer.js +8 -8
  101. package/es/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +1 -0
  102. package/es/schema-initializer/items/BulkEditSubmitActionInitializer.js +24 -0
  103. package/es/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +1 -0
  104. package/es/schema-initializer/items/CreateFormBulkEditBlockInitializer.js +103 -0
  105. package/es/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +1 -0
  106. package/es/schema-initializer/items/CustomizeBulkEditActionInitializer.js +61 -0
  107. package/es/schema-initializer/items/index.d.ts +3 -0
  108. package/es/schema-initializer/items/index.js +3 -0
  109. package/es/schema-initializer/utils.d.ts +1 -0
  110. package/es/schema-initializer/utils.js +67 -12
  111. package/es/schema-settings/SchemaSettings.d.ts +6 -0
  112. package/es/schema-settings/SchemaSettings.js +4 -1
  113. package/es/schema-templates/BlockTemplatePage.d.ts +1 -0
  114. package/es/schema-templates/BlockTemplatePage.js +7 -0
  115. package/es/schema-templates/SchemaTemplateShortcut.js +1 -1
  116. package/es/system-settings/SystemSettingsShortcut.d.ts +2 -0
  117. package/es/system-settings/SystemSettingsShortcut.js +134 -5
  118. package/lib/acl/ACLShortcut.d.ts +2 -0
  119. package/lib/acl/ACLShortcut.js +41 -4
  120. package/lib/api-client/APIClient.d.ts +1 -0
  121. package/lib/api-client/APIClient.js +6 -1
  122. package/lib/application/Application.d.ts +3 -1
  123. package/lib/application/Application.js +139 -39
  124. package/lib/block-provider/BlockProvider.js +11 -0
  125. package/lib/block-provider/CalendarBlockProvider.d.ts +1 -0
  126. package/lib/block-provider/CalendarBlockProvider.js +6 -3
  127. package/lib/block-provider/TableSelectorProvider.js +21 -6
  128. package/lib/block-provider/hooks/index.d.ts +6 -0
  129. package/lib/block-provider/hooks/index.js +496 -115
  130. package/lib/collection-manager/CollectionManagerProvider.js +28 -47
  131. package/lib/collection-manager/CollectionManagerShortcut.d.ts +2 -0
  132. package/lib/collection-manager/CollectionManagerShortcut.js +47 -4
  133. package/lib/collection-manager/Configuration/AddFieldAction.d.ts +5 -1
  134. package/lib/collection-manager/Configuration/AddFieldAction.js +48 -12
  135. package/lib/collection-manager/Configuration/EditFieldAction.d.ts +1 -0
  136. package/lib/collection-manager/Configuration/EditFieldAction.js +26 -10
  137. package/lib/collection-manager/Configuration/index.d.ts +2 -0
  138. package/lib/collection-manager/Configuration/index.js +26 -0
  139. package/lib/collection-manager/Configuration/schemas/collectionFields.js +2 -2
  140. package/lib/collection-manager/index.d.ts +1 -0
  141. package/lib/collection-manager/index.js +14 -0
  142. package/lib/collection-manager/interfaces/index.d.ts +1 -0
  143. package/lib/collection-manager/interfaces/index.js +13 -0
  144. package/lib/collection-manager/interfaces/json.d.ts +2 -0
  145. package/lib/collection-manager/interfaces/json.js +58 -0
  146. package/lib/collection-manager/interfaces/m2o.js +2 -2
  147. package/lib/collection-manager/interfaces/o2m.js +4 -5
  148. package/lib/collection-manager/interfaces/o2o.js +4 -4
  149. package/lib/collection-manager/interfaces/properties/index.d.ts +14 -0
  150. package/lib/collection-manager/interfaces/properties/index.js +25 -1
  151. package/lib/collection-manager/interfaces/sequence.js +13 -9
  152. package/lib/index.d.ts +1 -0
  153. package/lib/index.js +13 -0
  154. package/lib/locale/en_US.d.ts +14 -1
  155. package/lib/locale/en_US.js +15 -2
  156. package/lib/locale/ja_JP.d.ts +2 -1
  157. package/lib/locale/ja_JP.js +2 -1
  158. package/lib/locale/ru_RU.d.ts +2 -1
  159. package/lib/locale/ru_RU.js +2 -1
  160. package/lib/locale/tr_TR.d.ts +1 -1
  161. package/lib/locale/tr_TR.js +1 -1
  162. package/lib/locale/zh_CN.d.ts +40 -1
  163. package/lib/locale/zh_CN.js +41 -2
  164. package/lib/plugin-manager/PluginManager.js +33 -21
  165. package/lib/pm/PluginManagerLink.d.ts +2 -0
  166. package/lib/pm/PluginManagerLink.js +138 -0
  167. package/lib/pm/index.d.ts +4 -0
  168. package/lib/pm/index.js +474 -0
  169. package/lib/route-switch/antd/admin-layout/index.js +1 -1
  170. package/lib/schema-component/antd/action/Action.Designer.js +35 -12
  171. package/lib/schema-component/antd/action/Action.Modal.js +4 -2
  172. package/lib/schema-component/antd/action/Action.js +3 -3
  173. package/lib/schema-component/antd/action/context.d.ts +2 -0
  174. package/lib/schema-component/antd/action/hooks.d.ts +1 -0
  175. package/lib/schema-component/antd/calendar/Calendar.Designer.js +19 -6
  176. package/lib/schema-component/antd/calendar/Calendar.js +24 -2
  177. package/lib/schema-component/antd/calendar/Title.js +18 -2
  178. package/lib/schema-component/antd/calendar/components/Header.d.ts +10 -0
  179. package/lib/schema-component/antd/calendar/components/Header.js +57 -0
  180. package/lib/schema-component/antd/calendar/style.less +53 -9
  181. package/lib/schema-component/antd/calendar/types.d.ts +6 -0
  182. package/lib/schema-component/antd/calendar/utils.d.ts +2 -0
  183. package/lib/schema-component/antd/calendar/utils.js +18 -2
  184. package/lib/schema-component/antd/checkbox/Checkbox.js +13 -4
  185. package/lib/schema-component/antd/formula-input/FormulaInput.js +28 -37
  186. package/lib/schema-component/antd/input/Input.d.ts +1 -0
  187. package/lib/schema-component/antd/input/Input.js +3 -0
  188. package/lib/schema-component/antd/input/Json.d.ts +6 -0
  189. package/lib/schema-component/antd/input/Json.js +53 -0
  190. package/lib/schema-component/antd/input/ReadPretty.d.ts +3 -0
  191. package/lib/schema-component/antd/input/ReadPretty.js +16 -0
  192. package/lib/schema-component/antd/input/index.d.ts +1 -0
  193. package/lib/schema-component/antd/input/index.js +13 -0
  194. package/lib/schema-component/antd/markdown/Markdown.Void.js +8 -2
  195. package/lib/schema-component/antd/radio/Radio.js +2 -1
  196. package/lib/schema-component/antd/select/ReadPretty.js +2 -1
  197. package/lib/schema-component/antd/table-v2/TableSelectorDesigner.js +17 -2
  198. package/lib/schema-component/antd/upload/Upload.js +2 -1
  199. package/lib/schema-component/antd/upload/shared.js +4 -5
  200. package/lib/schema-component/antd/upload/type.d.ts +2 -0
  201. package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.d.ts +1 -0
  202. package/lib/schema-initializer/buttons/BulkEditFormItemInitializers.js +66 -0
  203. package/lib/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.d.ts +1 -0
  204. package/lib/schema-initializer/buttons/CreateFormBulkEditBlockInitializers.js +50 -0
  205. package/lib/schema-initializer/buttons/FormActionInitializers.d.ts +132 -0
  206. package/lib/schema-initializer/buttons/FormActionInitializers.js +121 -2
  207. package/lib/schema-initializer/buttons/TabPaneInitializers.d.ts +1 -0
  208. package/lib/schema-initializer/buttons/TabPaneInitializers.js +18 -2
  209. package/lib/schema-initializer/buttons/TableActionInitializers.d.ts +56 -2
  210. package/lib/schema-initializer/buttons/TableActionInitializers.js +45 -0
  211. package/lib/schema-initializer/buttons/index.d.ts +2 -0
  212. package/lib/schema-initializer/buttons/index.js +26 -0
  213. package/lib/schema-initializer/components/BulkEditField.d.ts +7 -0
  214. package/lib/schema-initializer/components/BulkEditField.js +210 -0
  215. package/lib/schema-initializer/components/index.d.ts +1 -0
  216. package/lib/schema-initializer/components/index.js +13 -0
  217. package/lib/schema-initializer/items/BlockInitializer.js +8 -7
  218. package/lib/schema-initializer/items/BulkEditSubmitActionInitializer.d.ts +1 -0
  219. package/lib/schema-initializer/items/BulkEditSubmitActionInitializer.js +37 -0
  220. package/lib/schema-initializer/items/CreateFormBulkEditBlockInitializer.d.ts +1 -0
  221. package/lib/schema-initializer/items/CreateFormBulkEditBlockInitializer.js +121 -0
  222. package/lib/schema-initializer/items/CustomizeBulkEditActionInitializer.d.ts +1 -0
  223. package/lib/schema-initializer/items/CustomizeBulkEditActionInitializer.js +74 -0
  224. package/lib/schema-initializer/items/index.d.ts +3 -0
  225. package/lib/schema-initializer/items/index.js +39 -0
  226. package/lib/schema-initializer/utils.d.ts +1 -0
  227. package/lib/schema-initializer/utils.js +71 -13
  228. package/lib/schema-settings/SchemaSettings.d.ts +6 -0
  229. package/lib/schema-settings/SchemaSettings.js +3 -0
  230. package/lib/schema-templates/BlockTemplatePage.d.ts +1 -0
  231. package/lib/schema-templates/BlockTemplatePage.js +12 -2
  232. package/lib/schema-templates/SchemaTemplateShortcut.js +1 -1
  233. package/lib/system-settings/SystemSettingsShortcut.d.ts +2 -0
  234. package/lib/system-settings/SystemSettingsShortcut.js +145 -7
  235. package/package.json +5 -4
@@ -0,0 +1,111 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+
3
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
4
+
5
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
6
+
7
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
+
9
+ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
10
+
11
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
+
13
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+
15
+ import { AppstoreAddOutlined, SettingOutlined } from '@ant-design/icons';
16
+ import { uid } from '@formily/shared';
17
+ import { Dropdown, Menu } from 'antd';
18
+ import React, { useState } from 'react';
19
+ import { useTranslation } from 'react-i18next';
20
+ import { useHistory } from 'react-router-dom';
21
+ import { PluginManager } from '../plugin-manager';
22
+ import { ActionContext } from '../schema-component';
23
+ var schema = {
24
+ type: 'object',
25
+ properties: _defineProperty({}, uid(), {
26
+ 'x-component': 'Action.Drawer',
27
+ type: 'void',
28
+ title: '{{t("Collections & Fields")}}',
29
+ properties: {
30
+ configuration: {
31
+ 'x-component': 'ConfigurationTable'
32
+ }
33
+ }
34
+ })
35
+ };
36
+ export var PluginManagerLink = function PluginManagerLink() {
37
+ var _useState = useState(false),
38
+ _useState2 = _slicedToArray(_useState, 2),
39
+ visible = _useState2[0],
40
+ setVisible = _useState2[1];
41
+
42
+ var _useTranslation = useTranslation(),
43
+ t = _useTranslation.t;
44
+
45
+ var history = useHistory();
46
+ return /*#__PURE__*/React.createElement(ActionContext.Provider, {
47
+ value: {
48
+ visible: visible,
49
+ setVisible: setVisible
50
+ }
51
+ }, /*#__PURE__*/React.createElement(PluginManager.Toolbar.Item, {
52
+ icon: /*#__PURE__*/React.createElement(AppstoreAddOutlined, null),
53
+ title: t('Plugin manager'),
54
+ onClick: function onClick() {
55
+ history.push('/admin/pm/list');
56
+ }
57
+ }));
58
+ };
59
+ export var SettingsCenterDropdown = function SettingsCenterDropdown() {
60
+ var _useState3 = useState(false),
61
+ _useState4 = _slicedToArray(_useState3, 2),
62
+ visible = _useState4[0],
63
+ setVisible = _useState4[1];
64
+
65
+ var _useTranslation2 = useTranslation(),
66
+ t = _useTranslation2.t;
67
+
68
+ var history = useHistory();
69
+ var items = [{
70
+ title: t('Collections & Fields'),
71
+ path: 'collection-manager/collections'
72
+ }, {
73
+ title: t('Roles & Permissions'),
74
+ path: 'acl/roles'
75
+ }, {
76
+ title: t('File storages'),
77
+ path: 'file-manager/storages'
78
+ }, {
79
+ title: t('System settings'),
80
+ path: 'system-settings/system-settings'
81
+ }, {
82
+ title: t('Workflow'),
83
+ path: 'workflow/workflows'
84
+ }, {
85
+ title: t('Graph Collections'),
86
+ path: 'graph/collections'
87
+ }];
88
+ return /*#__PURE__*/React.createElement(ActionContext.Provider, {
89
+ value: {
90
+ visible: visible,
91
+ setVisible: setVisible
92
+ }
93
+ }, /*#__PURE__*/React.createElement(Dropdown, {
94
+ overlay: /*#__PURE__*/React.createElement(Menu, null, /*#__PURE__*/React.createElement(Menu.ItemGroup, {
95
+ title: t('Bookmark')
96
+ }, items.map(function (item) {
97
+ return /*#__PURE__*/React.createElement(Menu.Item, {
98
+ onClick: function onClick() {
99
+ history.push('/admin/settings/' + item.path);
100
+ },
101
+ key: item.path
102
+ }, item.title);
103
+ })), /*#__PURE__*/React.createElement(Menu.Divider, null), /*#__PURE__*/React.createElement(Menu.Item, {
104
+ onClick: function onClick() {
105
+ history.push('/admin/settings');
106
+ }
107
+ }, t('Settings center')))
108
+ }, /*#__PURE__*/React.createElement(PluginManager.Toolbar.Item, {
109
+ icon: /*#__PURE__*/React.createElement(SettingOutlined, null)
110
+ })));
111
+ };
@@ -0,0 +1,4 @@
1
+ export declare const SettingsCenterProvider: (props: any) => JSX.Element;
2
+ export declare const PMProvider: (props: any) => JSX.Element;
3
+ export default PMProvider;
4
+ export * from './PluginManagerLink';
package/es/pm/index.js ADDED
@@ -0,0 +1,422 @@
1
+ var _excluded = ["routes"];
2
+
3
+ var _templateObject, _templateObject2, _templateObject3, _templateObject4;
4
+
5
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
6
+
7
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
8
+
9
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
10
+
11
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
12
+
13
+ function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
+
15
+ function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
16
+
17
+ function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) { try { var info = gen[key](arg); var value = info.value; } catch (error) { reject(error); return; } if (info.done) { resolve(value); } else { Promise.resolve(value).then(_next, _throw); } }
18
+
19
+ function _asyncToGenerator(fn) { return function () { var self = this, args = arguments; return new Promise(function (resolve, reject) { var gen = fn.apply(self, args); function _next(value) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value); } function _throw(err) { asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err); } _next(undefined); }); }; }
20
+
21
+ import { DeleteOutlined, SettingOutlined } from '@ant-design/icons';
22
+ import { css } from '@emotion/css';
23
+ import { Avatar, Card, Layout, Menu, message, PageHeader, Popconfirm, Spin, Switch, Tabs } from 'antd';
24
+ import React, { createContext, useContext, useMemo } from 'react';
25
+ import { useTranslation } from 'react-i18next';
26
+ import { Redirect, useHistory, useRouteMatch } from 'react-router-dom';
27
+ import { ACLPane } from '../acl';
28
+ import { useAPIClient, useRequest } from '../api-client';
29
+ import { CollectionManagerPane } from '../collection-manager';
30
+ import { useDocumentTitle } from '../document-title';
31
+ import { Icon } from '../icon';
32
+ import { RouteSwitchContext } from '../route-switch';
33
+ import { useCompile } from '../schema-component';
34
+ import { BlockTemplatesPane } from '../schema-templates';
35
+ import { SystemSettingsPane } from '../system-settings';
36
+ var SettingsCenterContext = /*#__PURE__*/createContext({});
37
+
38
+ var PluginCard = function PluginCard(props) {
39
+ var history = useHistory();
40
+ var _props$data = props.data,
41
+ data = _props$data === void 0 ? {} : _props$data;
42
+ var api = useAPIClient();
43
+
44
+ var _useTranslation = useTranslation(),
45
+ t = _useTranslation.t;
46
+
47
+ return /*#__PURE__*/React.createElement(Card, {
48
+ bordered: false,
49
+ style: {
50
+ width: 'calc(20% - 24px)',
51
+ marginRight: 24,
52
+ marginBottom: 24
53
+ },
54
+ actions: [data.enabled ? /*#__PURE__*/React.createElement(SettingOutlined, {
55
+ onClick: function onClick() {
56
+ history.push("/admin/settings/".concat(data.name));
57
+ }
58
+ }) : null, /*#__PURE__*/React.createElement(Popconfirm, {
59
+ title: t('Are you sure to delete this plugin?'),
60
+ onConfirm: function () {
61
+ var _onConfirm = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
62
+ return regeneratorRuntime.wrap(function _callee$(_context) {
63
+ while (1) {
64
+ switch (_context.prev = _context.next) {
65
+ case 0:
66
+ _context.next = 2;
67
+ return api.request({
68
+ url: "pm:remove/".concat(data.name)
69
+ });
70
+
71
+ case 2:
72
+ message.success(t('插件删除成功'));
73
+ window.location.reload();
74
+
75
+ case 4:
76
+ case "end":
77
+ return _context.stop();
78
+ }
79
+ }
80
+ }, _callee);
81
+ }));
82
+
83
+ function onConfirm() {
84
+ return _onConfirm.apply(this, arguments);
85
+ }
86
+
87
+ return onConfirm;
88
+ }(),
89
+ onCancel: function onCancel() {},
90
+ okText: t('Yes'),
91
+ cancelText: t('No')
92
+ }, /*#__PURE__*/React.createElement(DeleteOutlined, null)), /*#__PURE__*/React.createElement(Switch, {
93
+ size: 'small',
94
+ onChange: function () {
95
+ var _onChange = _asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee2(checked) {
96
+ return regeneratorRuntime.wrap(function _callee2$(_context2) {
97
+ while (1) {
98
+ switch (_context2.prev = _context2.next) {
99
+ case 0:
100
+ _context2.next = 2;
101
+ return api.request({
102
+ url: "pm:".concat(checked ? 'enable' : 'disable', "/").concat(data.name)
103
+ });
104
+
105
+ case 2:
106
+ message.success(checked ? t('插件激活成功') : t('插件禁用成功'));
107
+ window.location.reload();
108
+
109
+ case 4:
110
+ case "end":
111
+ return _context2.stop();
112
+ }
113
+ }
114
+ }, _callee2);
115
+ }));
116
+
117
+ function onChange(_x) {
118
+ return _onChange.apply(this, arguments);
119
+ }
120
+
121
+ return onChange;
122
+ }(),
123
+ defaultChecked: data.enabled
124
+ })].filter(Boolean)
125
+ }, /*#__PURE__*/React.createElement(Card.Meta, {
126
+ className: css(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .ant-card-meta-avatar {\n margin-top: 8px;\n .ant-avatar {\n border-radius: 2px;\n }\n }\n "]))),
127
+ avatar: /*#__PURE__*/React.createElement(Avatar, null),
128
+ description: data.description,
129
+ title: /*#__PURE__*/React.createElement("span", null, data.name, /*#__PURE__*/React.createElement("span", {
130
+ className: css(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n display: block;\n color: rgba(0, 0, 0, 0.45);\n font-weight: normal;\n font-size: 13px;\n // margin-left: 8px;\n "])))
131
+ }, data.version))
132
+ }));
133
+ };
134
+
135
+ var BuiltInPluginCard = function BuiltInPluginCard(props) {
136
+ var data = props.data;
137
+ return /*#__PURE__*/React.createElement(Card, {
138
+ bordered: false,
139
+ style: {
140
+ width: 'calc(20% - 24px)',
141
+ marginRight: 24,
142
+ marginBottom: 24
143
+ }
144
+ }, /*#__PURE__*/React.createElement(Card.Meta, {
145
+ className: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n .ant-card-meta-avatar {\n margin-top: 8px;\n .ant-avatar {\n border-radius: 2px;\n }\n }\n "]))),
146
+ avatar: /*#__PURE__*/React.createElement(Avatar, null),
147
+ description: data.description,
148
+ title: /*#__PURE__*/React.createElement("span", null, data.name, /*#__PURE__*/React.createElement("span", {
149
+ className: css(_templateObject4 || (_templateObject4 = _taggedTemplateLiteral(["\n display: block;\n color: rgba(0, 0, 0, 0.45);\n font-weight: normal;\n font-size: 13px;\n // margin-left: 8px;\n "])))
150
+ }, data.version))
151
+ }));
152
+ };
153
+
154
+ var LocalPlugins = function LocalPlugins() {
155
+ var _data$data;
156
+
157
+ var _useRequest = useRequest({
158
+ url: 'applicationPlugins:list',
159
+ params: {
160
+ filter: {
161
+ 'builtIn.$isFalsy': true
162
+ },
163
+ sort: 'name'
164
+ }
165
+ }),
166
+ data = _useRequest.data,
167
+ loading = _useRequest.loading;
168
+
169
+ if (loading) {
170
+ return /*#__PURE__*/React.createElement(Spin, null);
171
+ }
172
+
173
+ return /*#__PURE__*/React.createElement(React.Fragment, null, data === null || data === void 0 ? void 0 : (_data$data = data.data) === null || _data$data === void 0 ? void 0 : _data$data.map(function (item) {
174
+ return /*#__PURE__*/React.createElement(PluginCard, {
175
+ data: item
176
+ });
177
+ }));
178
+ };
179
+
180
+ var BuiltinPlugins = function BuiltinPlugins() {
181
+ var _data$data2;
182
+
183
+ var _useRequest2 = useRequest({
184
+ url: 'applicationPlugins:list',
185
+ params: {
186
+ filter: {
187
+ 'builtIn.$isTruly': true
188
+ },
189
+ sort: 'name'
190
+ }
191
+ }),
192
+ data = _useRequest2.data,
193
+ loading = _useRequest2.loading;
194
+
195
+ if (loading) {
196
+ return /*#__PURE__*/React.createElement(Spin, null);
197
+ }
198
+
199
+ return /*#__PURE__*/React.createElement(React.Fragment, null, data === null || data === void 0 ? void 0 : (_data$data2 = data.data) === null || _data$data2 === void 0 ? void 0 : _data$data2.map(function (item) {
200
+ return /*#__PURE__*/React.createElement(BuiltInPluginCard, {
201
+ data: item
202
+ });
203
+ }));
204
+ };
205
+
206
+ var MarketplacePlugins = function MarketplacePlugins() {
207
+ var _useTranslation2 = useTranslation(),
208
+ t = _useTranslation2.t;
209
+
210
+ return /*#__PURE__*/React.createElement("div", {
211
+ style: {
212
+ fontSize: 18
213
+ }
214
+ }, t('Coming soon...'));
215
+ };
216
+
217
+ var PluginList = function PluginList(props) {
218
+ var match = useRouteMatch();
219
+ var history = useHistory();
220
+
221
+ var _ref = match.params || {},
222
+ _ref$tabName = _ref.tabName,
223
+ tabName = _ref$tabName === void 0 ? 'local' : _ref$tabName;
224
+
225
+ var _useDocumentTitle = useDocumentTitle(),
226
+ setTitle = _useDocumentTitle.setTitle;
227
+
228
+ var _useTranslation3 = useTranslation(),
229
+ t = _useTranslation3.t;
230
+
231
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(PageHeader, {
232
+ ghost: false,
233
+ title: t('Plugin manager'),
234
+ footer: /*#__PURE__*/React.createElement(Tabs, {
235
+ activeKey: tabName,
236
+ onChange: function onChange(activeKey) {
237
+ history.push("/admin/pm/list/".concat(activeKey));
238
+ }
239
+ }, /*#__PURE__*/React.createElement(Tabs.TabPane, {
240
+ tab: t('Local'),
241
+ key: 'local'
242
+ }), /*#__PURE__*/React.createElement(Tabs.TabPane, {
243
+ tab: t('Built-in'),
244
+ key: 'built-in'
245
+ }), /*#__PURE__*/React.createElement(Tabs.TabPane, {
246
+ tab: t('Marketplace'),
247
+ key: 'marketplace'
248
+ }))
249
+ }), /*#__PURE__*/React.createElement("div", {
250
+ style: {
251
+ margin: 24,
252
+ display: 'flex',
253
+ flexFlow: 'row wrap'
254
+ }
255
+ }, /*#__PURE__*/React.createElement({
256
+ local: LocalPlugins,
257
+ 'built-in': BuiltinPlugins,
258
+ marketplace: MarketplacePlugins
259
+ }[tabName])));
260
+ };
261
+
262
+ var settings = {
263
+ acl: {
264
+ title: '{{t("ACL")}}',
265
+ icon: 'LockOutlined',
266
+ tabs: {
267
+ roles: {
268
+ title: '{{t("Roles & Permissions")}}',
269
+ component: ACLPane
270
+ }
271
+ }
272
+ },
273
+ 'block-templates': {
274
+ title: '{{t("Block templates")}}',
275
+ icon: 'LayoutOutlined',
276
+ tabs: {
277
+ list: {
278
+ title: '{{t("Block templates")}}',
279
+ component: BlockTemplatesPane
280
+ }
281
+ }
282
+ },
283
+ 'collection-manager': {
284
+ icon: 'DatabaseOutlined',
285
+ title: '{{t("Collection manager")}}',
286
+ tabs: {
287
+ collections: {
288
+ title: '{{t("Collections & Fields")}}',
289
+ component: CollectionManagerPane
290
+ }
291
+ }
292
+ },
293
+ 'system-settings': {
294
+ icon: 'SettingOutlined',
295
+ title: '{{t("System settings")}}',
296
+ tabs: {
297
+ 'system-settings': {
298
+ title: '{{t("System settings")}}',
299
+ component: SystemSettingsPane
300
+ }
301
+ }
302
+ }
303
+ };
304
+
305
+ var SettingsCenter = function SettingsCenter(props) {
306
+ var _items$pluginName3, _items$pluginName3$ta, _items$pluginName3$ta2, _items$pluginName4, _items$pluginName5;
307
+
308
+ var match = useRouteMatch();
309
+ var history = useHistory();
310
+ var items = useContext(SettingsCenterContext);
311
+ var compile = useCompile();
312
+ var firstUri = useMemo(function () {
313
+ var _items$pluginName;
314
+
315
+ var keys = Object.keys(items).sort();
316
+ var pluginName = keys.shift();
317
+ var tabName = Object.keys((items === null || items === void 0 ? void 0 : (_items$pluginName = items[pluginName]) === null || _items$pluginName === void 0 ? void 0 : _items$pluginName.tabs) || {}).shift();
318
+ return "/admin/settings/".concat(pluginName, "/").concat(tabName);
319
+ }, [items]);
320
+
321
+ var _ref2 = match.params || {},
322
+ pluginName = _ref2.pluginName,
323
+ tabName = _ref2.tabName;
324
+
325
+ if (!pluginName) {
326
+ return /*#__PURE__*/React.createElement(Redirect, {
327
+ to: firstUri
328
+ });
329
+ }
330
+
331
+ if (!items[pluginName]) {
332
+ return /*#__PURE__*/React.createElement(Redirect, {
333
+ to: firstUri
334
+ });
335
+ }
336
+
337
+ if (!tabName) {
338
+ var _items$pluginName2;
339
+
340
+ var firstTabName = Object.keys((_items$pluginName2 = items[pluginName]) === null || _items$pluginName2 === void 0 ? void 0 : _items$pluginName2.tabs).shift();
341
+ return /*#__PURE__*/React.createElement(Redirect, {
342
+ to: "/admin/settings/".concat(pluginName, "/").concat(firstTabName)
343
+ });
344
+ }
345
+
346
+ var component = (_items$pluginName3 = items[pluginName]) === null || _items$pluginName3 === void 0 ? void 0 : (_items$pluginName3$ta = _items$pluginName3.tabs) === null || _items$pluginName3$ta === void 0 ? void 0 : (_items$pluginName3$ta2 = _items$pluginName3$ta[tabName]) === null || _items$pluginName3$ta2 === void 0 ? void 0 : _items$pluginName3$ta2.component;
347
+ return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Layout, null, /*#__PURE__*/React.createElement(Layout.Sider, {
348
+ theme: 'light'
349
+ }, /*#__PURE__*/React.createElement(Menu, {
350
+ selectedKeys: [pluginName],
351
+ style: {
352
+ height: 'calc(100vh - 46px)'
353
+ }
354
+ }, Object.keys(items).sort().map(function (key) {
355
+ var item = items[key];
356
+ var tabKey = Object.keys(item.tabs).shift();
357
+ return /*#__PURE__*/React.createElement(Menu.Item, {
358
+ key: key,
359
+ icon: item.icon ? /*#__PURE__*/React.createElement(Icon, {
360
+ type: item.icon
361
+ }) : null,
362
+ onClick: function onClick() {
363
+ history.push("/admin/settings/".concat(key, "/").concat(tabKey));
364
+ }
365
+ }, compile(item.title));
366
+ }))), /*#__PURE__*/React.createElement(Layout.Content, null, /*#__PURE__*/React.createElement(PageHeader, {
367
+ ghost: false,
368
+ title: compile((_items$pluginName4 = items[pluginName]) === null || _items$pluginName4 === void 0 ? void 0 : _items$pluginName4.title),
369
+ footer: /*#__PURE__*/React.createElement(Tabs, {
370
+ activeKey: tabName,
371
+ onChange: function onChange(activeKey) {
372
+ history.push("/admin/settings/".concat(pluginName, "/").concat(activeKey));
373
+ }
374
+ }, Object.keys((_items$pluginName5 = items[pluginName]) === null || _items$pluginName5 === void 0 ? void 0 : _items$pluginName5.tabs).map(function (tabKey) {
375
+ var _items$pluginName$tab;
376
+
377
+ var tab = (_items$pluginName$tab = items[pluginName].tabs) === null || _items$pluginName$tab === void 0 ? void 0 : _items$pluginName$tab[tabKey];
378
+ return /*#__PURE__*/React.createElement(Tabs.TabPane, {
379
+ tab: compile(tab === null || tab === void 0 ? void 0 : tab.title),
380
+ key: tabKey
381
+ });
382
+ }))
383
+ }), /*#__PURE__*/React.createElement("div", {
384
+ style: {
385
+ margin: 24
386
+ }
387
+ }, component && /*#__PURE__*/React.createElement(component)))));
388
+ };
389
+
390
+ export var SettingsCenterProvider = function SettingsCenterProvider(props) {
391
+ var _props$settings = props.settings,
392
+ settings = _props$settings === void 0 ? {} : _props$settings;
393
+ var items = useContext(SettingsCenterContext);
394
+ return /*#__PURE__*/React.createElement(SettingsCenterContext.Provider, {
395
+ value: _objectSpread(_objectSpread({}, items), settings)
396
+ }, props.children);
397
+ };
398
+ export var PMProvider = function PMProvider(props) {
399
+ var _useContext = useContext(RouteSwitchContext),
400
+ routes = _useContext.routes,
401
+ others = _objectWithoutProperties(_useContext, _excluded);
402
+
403
+ routes[1].routes.unshift({
404
+ type: 'route',
405
+ path: '/admin/pm/list/:tabName?',
406
+ component: PluginList
407
+ }, {
408
+ type: 'route',
409
+ path: '/admin/settings/:pluginName?/:tabName?',
410
+ component: SettingsCenter,
411
+ uiSchemaUid: routes[1].uiSchemaUid
412
+ });
413
+ return /*#__PURE__*/React.createElement(SettingsCenterProvider, {
414
+ settings: settings
415
+ }, /*#__PURE__*/React.createElement(RouteSwitchContext.Provider, {
416
+ value: _objectSpread(_objectSpread({}, others), {}, {
417
+ routes: routes
418
+ })
419
+ }, props.children));
420
+ };
421
+ export default PMProvider;
422
+ export * from './PluginManagerLink';
@@ -206,7 +206,7 @@ var InternalAdminLayout = function InternalAdminLayout(props) {
206
206
  theme: 'light',
207
207
  ref: sideMenuRef
208
208
  }), /*#__PURE__*/React.createElement(Layout.Content, {
209
- className: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n min-height: calc(100vh - 46px);\n position: relative;\n padding-bottom: 70px;\n > div {\n position: relative;\n z-index: 1;\n }\n .ant-layout-footer {\n position: absolute;\n bottom: 0;\n text-align: center;\n width: 100%;\n z-index: 0;\n }\n "])))
209
+ className: css(_templateObject3 || (_templateObject3 = _taggedTemplateLiteral(["\n min-height: calc(100vh - 46px);\n padding-bottom: 42px;\n position: relative;\n // padding-bottom: 70px;\n > div {\n position: relative;\n // z-index: 1;\n }\n .ant-layout-footer {\n position: absolute;\n bottom: 0;\n text-align: center;\n width: 100%;\n z-index: 0;\n padding: 10px 50px;\n }\n "])))
210
210
  }, service.contentLoading ? /*#__PURE__*/React.createElement(Spin, null) : props.children, /*#__PURE__*/React.createElement(Layout.Footer, null, /*#__PURE__*/React.createElement(PoweredBy, null)))));
211
211
  };
212
212
 
@@ -56,7 +56,7 @@ var MenuGroup = function MenuGroup(props) {
56
56
  };
57
57
 
58
58
  export var ActionDesigner = function ActionDesigner(props) {
59
- var _fieldSchema$xCompon, _fieldSchema$xCompon2, _fieldSchema$xCompon3, _fieldSchema$xCompon4, _fieldSchema$xAction, _fieldSchema$xAction2, _fieldSchema$xAction3, _fieldSchema$xAction4, _fieldSchema$xAction5, _fieldSchema$xAction6, _fieldSchema$xAction7, _fieldSchema$xAction8, _fieldSchema$xAction9;
59
+ var _fieldSchema$xCompon, _fieldSchema$xCompon2, _fieldSchema$xCompon3, _fieldSchema$xCompon4, _fieldSchema$xAction, _fieldSchema$xAction2, _fieldSchema$xAction3, _fieldSchema$xAction4, _fieldSchema$xAction5, _fieldSchema$xAction6, _fieldSchema$xAction7, _fieldSchema$xAction8, _fieldSchema$xAction9, _fieldSchema$xAction10;
60
60
 
61
61
  var modalTip = props.modalTip,
62
62
  restProps = _objectWithoutProperties(props, _excluded);
@@ -72,6 +72,7 @@ export var ActionDesigner = function ActionDesigner(props) {
72
72
 
73
73
  var compile = useCompile();
74
74
  var isPopupAction = ['create', 'update', 'view', 'customize:popup'].includes(fieldSchema['x-action'] || '');
75
+ var isUpdateModePopupAction = ['customize:bulkUpdate', 'customize:bulkEdit'].includes(fieldSchema['x-action']);
75
76
  var context = useActionContext();
76
77
 
77
78
  var _useState = useState(),
@@ -180,12 +181,32 @@ export var ActionDesigner = function ActionDesigner(props) {
180
181
  });
181
182
  dn.refresh();
182
183
  }
183
- }), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction === void 0 ? void 0 : _fieldSchema$xAction.assignedValues) && /*#__PURE__*/React.createElement(SchemaSettings.ActionModalItem, {
184
+ }), isUpdateModePopupAction && /*#__PURE__*/React.createElement(SchemaSettings.SelectItem, {
185
+ title: t('Data will be updated'),
186
+ options: [{
187
+ label: t('Selected'),
188
+ value: 'selected'
189
+ }, {
190
+ label: t('All'),
191
+ value: 'all'
192
+ }],
193
+ value: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction === void 0 ? void 0 : _fieldSchema$xAction['updateMode'],
194
+ onChange: function onChange(value) {
195
+ fieldSchema['x-action-settings']['updateMode'] = value;
196
+ dn.emit('patch', {
197
+ schema: {
198
+ 'x-uid': fieldSchema['x-uid'],
199
+ 'x-action-settings': fieldSchema['x-action-settings']
200
+ }
201
+ });
202
+ dn.refresh();
203
+ }
204
+ }), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction2 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction2 === void 0 ? void 0 : _fieldSchema$xAction2.assignedValues) && /*#__PURE__*/React.createElement(SchemaSettings.ActionModalItem, {
184
205
  title: t('Assign field values'),
185
206
  initialSchema: initialSchema,
186
- initialValues: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction2 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction2 === void 0 ? void 0 : _fieldSchema$xAction2.assignedValues,
207
+ initialValues: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction3 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction3 === void 0 ? void 0 : _fieldSchema$xAction3.assignedValues,
187
208
  modalTip: tips[actionType],
188
- uid: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction3 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction3 === void 0 ? void 0 : _fieldSchema$xAction3.schemaUid,
209
+ uid: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction4 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction4 === void 0 ? void 0 : _fieldSchema$xAction4.schemaUid,
189
210
  onSubmit: function onSubmit(assignedValues) {
190
211
  var _schema2;
191
212
 
@@ -195,10 +216,10 @@ export var ActionDesigner = function ActionDesigner(props) {
195
216
  });
196
217
  dn.refresh();
197
218
  }
198
- }), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction4 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction4 === void 0 ? void 0 : _fieldSchema$xAction4.requestSettings) && /*#__PURE__*/React.createElement(SchemaSettings.ActionModalItem, {
219
+ }), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction5 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction5 === void 0 ? void 0 : _fieldSchema$xAction5.requestSettings) && /*#__PURE__*/React.createElement(SchemaSettings.ActionModalItem, {
199
220
  title: t('Request settings'),
200
221
  schema: requestSettingsSchema,
201
- initialValues: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction5 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction5 === void 0 ? void 0 : _fieldSchema$xAction5.requestSettings,
222
+ initialValues: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction6 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction6 === void 0 ? void 0 : _fieldSchema$xAction6.requestSettings,
202
223
  onSubmit: function onSubmit(requestSettings) {
203
224
  var _schema3;
204
225
 
@@ -208,9 +229,9 @@ export var ActionDesigner = function ActionDesigner(props) {
208
229
  });
209
230
  dn.refresh();
210
231
  }
211
- }), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction6 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction6 === void 0 ? void 0 : _fieldSchema$xAction6.skipValidator) && /*#__PURE__*/React.createElement(SchemaSettings.SwitchItem, {
232
+ }), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction7 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction7 === void 0 ? void 0 : _fieldSchema$xAction7.skipValidator) && /*#__PURE__*/React.createElement(SchemaSettings.SwitchItem, {
212
233
  title: t('Skip required validation'),
213
- checked: !!(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction7 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction7 === void 0 ? void 0 : _fieldSchema$xAction7.skipValidator),
234
+ checked: !!(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction8 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction8 === void 0 ? void 0 : _fieldSchema$xAction8.skipValidator),
214
235
  onChange: function onChange(value) {
215
236
  var _schema4;
216
237
 
@@ -219,21 +240,23 @@ export var ActionDesigner = function ActionDesigner(props) {
219
240
  schema: (_schema4 = {}, _defineProperty(_schema4, 'x-uid', fieldSchema['x-uid']), _defineProperty(_schema4, 'x-action-settings', _objectSpread({}, fieldSchema['x-action-settings'])), _schema4)
220
241
  });
221
242
  }
222
- }), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction8 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction8 === void 0 ? void 0 : _fieldSchema$xAction8['onSuccess']) && /*#__PURE__*/React.createElement(SchemaSettings.ModalItem, {
243
+ }), isValid(fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction9 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction9 === void 0 ? void 0 : _fieldSchema$xAction9['onSuccess']) && /*#__PURE__*/React.createElement(SchemaSettings.ModalItem, {
223
244
  title: {
224
245
  'customize:save': t('After successful save'),
225
246
  'customize:update': t('After successful update'),
226
247
  'customize:table:request': t('After successful request'),
227
- 'customize:form:request': t('After successful request')
248
+ 'customize:form:request': t('After successful request'),
249
+ 'customize:bulkUpdate': t('After successful bulk update')
228
250
  }[actionType],
229
- initialValues: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction9 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction9 === void 0 ? void 0 : _fieldSchema$xAction9['onSuccess'],
251
+ initialValues: fieldSchema === null || fieldSchema === void 0 ? void 0 : (_fieldSchema$xAction10 = fieldSchema['x-action-settings']) === null || _fieldSchema$xAction10 === void 0 ? void 0 : _fieldSchema$xAction10['onSuccess'],
230
252
  schema: {
231
253
  type: 'object',
232
254
  title: {
233
255
  'customize:save': t('After successful save'),
234
256
  'customize:update': t('After successful update'),
235
257
  'customize:table:request': t('After successful request'),
236
- 'customize:form:request': t('After successful request')
258
+ 'customize:form:request': t('After successful request'),
259
+ 'customize:bulkUpdate': t('After successful bulk update')
237
260
  }[actionType],
238
261
  properties: {
239
262
  successMessage: {