@teamix/pro 1.5.3 → 1.5.4-beta.0

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 (291) hide show
  1. package/dist/pro.css +1 -1
  2. package/dist/pro.js +20239 -19807
  3. package/dist/pro.min.css +1 -1
  4. package/dist/pro.min.js +1 -1
  5. package/dist/pro.min.js.LICENSE.txt +2 -6
  6. package/es/actions/base.js +8 -21
  7. package/es/actions/dialog-component.js +2 -9
  8. package/es/actions/dialog-form.js +37 -75
  9. package/es/actions/dialog-info.js +1 -5
  10. package/es/actions/dialog.js +57 -95
  11. package/es/actions/index.d.ts +2 -0
  12. package/es/actions/index.js +70 -156
  13. package/es/actions/link.js +3 -5
  14. package/es/actions/quick.js +0 -6
  15. package/es/actions/request.js +12 -27
  16. package/es/actions/utils.js +1 -9
  17. package/es/card/card-container.js +0 -5
  18. package/es/card/divider.js +0 -5
  19. package/es/card/index.js +56 -95
  20. package/es/card/selectable.js +4 -13
  21. package/es/card/tab.js +1 -10
  22. package/es/card/utils.js +0 -2
  23. package/es/form/Components/Editable/index.js +16 -55
  24. package/es/form/Components/FormGroup/index.d.ts +1 -0
  25. package/es/form/Components/FormGroup/index.js +7 -22
  26. package/es/form/Components/LightFilter/index.js +15 -35
  27. package/es/form/Components/ProField/index.js +2 -14
  28. package/es/form/Components/ProField/mapDateFormat.js +2 -28
  29. package/es/form/Components/Text/index.d.ts +1 -0
  30. package/es/form/Components/Text/index.js +2 -11
  31. package/es/form/Filter/AdvancedFilter.js +11 -26
  32. package/es/form/Filter/Layout.js +11 -24
  33. package/es/form/Filter/LightFilter.js +13 -24
  34. package/es/form/Filter/SimpleFilter.js +7 -21
  35. package/es/form/Filter/index.js +106 -171
  36. package/es/form/Filter/index2.js +11 -28
  37. package/es/form/Filter/useBindUrl.js +18 -46
  38. package/es/form/Filter/useSpecialProps.js +8 -13
  39. package/es/form/ProForm/addCascadeEffect.js +10 -32
  40. package/es/form/ProForm/customComponent.js +0 -5
  41. package/es/form/ProForm/index.js +23 -34
  42. package/es/form/ProForm/useAutoLayout.js +21 -42
  43. package/es/form/ProForm/useAutoSubmit.js +3 -8
  44. package/es/form/ProForm/useFieldRequest.js +0 -5
  45. package/es/form/ProForm/useFormDisplayValues.js +12 -28
  46. package/es/form/ProForm/useInitialRequest.js +0 -5
  47. package/es/form/SchemaForm/adapterComponent.js +0 -3
  48. package/es/form/SchemaForm/adapterDecorator.d.ts +1 -1
  49. package/es/form/SchemaForm/adapterDecorator.js +0 -8
  50. package/es/form/SchemaForm/adapterType.js +0 -2
  51. package/es/form/SchemaForm/index.js +78 -114
  52. package/es/form/SchemaForm/initializeArrayCards.js +0 -6
  53. package/es/form/SchemaForm/initializeArrayCollapse.js +0 -6
  54. package/es/form/SchemaForm/initializeArrayItems.js +2 -9
  55. package/es/form/SchemaForm/initializeArrayTable.js +21 -34
  56. package/es/form/SchemaForm/initializeDataSource.js +2 -6
  57. package/es/form/SchemaForm/initializeFormButton.js +14 -31
  58. package/es/form/SchemaForm/initializeFormCollapse.js +8 -18
  59. package/es/form/SchemaForm/initializeFormGroup.js +10 -20
  60. package/es/form/SchemaForm/initializeFormStep.js +11 -23
  61. package/es/form/SchemaForm/initializeFormTab.js +10 -20
  62. package/es/form/SchemaForm/initializeReactions.js +9 -33
  63. package/es/form/SchemaForm/initializeRequest.js +2 -16
  64. package/es/form/SchemaForm/initializeRules.js +4 -22
  65. package/es/form/SchemaForm/initializeSelectTable.js +7 -33
  66. package/es/form/SchemaForm/reactions.js +19 -34
  67. package/es/form/docs/ActionResponse.d.ts +1 -0
  68. package/es/form/index.d.ts +9 -9
  69. package/es/form/index.js +0 -9
  70. package/es/form/typing.d.ts +6 -4
  71. package/es/form/utils.d.ts +1 -1
  72. package/es/form/utils.js +4 -49
  73. package/es/form/warning.js +2 -7
  74. package/es/index-without-icon.js +4 -3
  75. package/es/index.d.ts +1 -1
  76. package/es/index.js +7 -8
  77. package/es/info/components/InfoGroup/index.js +21 -32
  78. package/es/info/components/InfoValueItem/index.js +66 -119
  79. package/es/info/components/ProInfoItem/index.js +13 -21
  80. package/es/info/components/baseInfo/index.js +14 -26
  81. package/es/info/components/headerInfo/index.js +8 -20
  82. package/es/info/components/tableInfo/index.js +20 -50
  83. package/es/info/index.js +53 -82
  84. package/es/info/utils/index.js +0 -11
  85. package/es/nocode/configurators/common.js +5 -6
  86. package/es/nocode/configurators/index.js +2 -3
  87. package/es/nocode/index.js +6 -6
  88. package/es/nocode/pages/editor.js +5 -9
  89. package/es/nocode/pages/index.js +4 -4
  90. package/es/nocode/pages/playground.js +18 -35
  91. package/es/nocode/pages/renderer.js +9 -42
  92. package/es/nocode/playground.js +10 -23
  93. package/es/page-header/index.d.ts +2 -2
  94. package/es/page-header/index.js +39 -75
  95. package/es/sidebar/components/sidebar-container/index.js +41 -72
  96. package/es/sidebar/components/tree/index.js +88 -144
  97. package/es/sidebar/components/tree-node/components/HoverTooltip/index.js +11 -26
  98. package/es/sidebar/components/tree-node/components/IconAction/index.js +9 -35
  99. package/es/sidebar/components/tree-node/components/IconSwitch/index.js +12 -25
  100. package/es/sidebar/components/tree-node/index.js +41 -83
  101. package/es/sidebar/index.js +69 -94
  102. package/es/sidebar/utils/action-ref.js +2 -7
  103. package/es/sidebar/utils/index.d.ts +5 -2
  104. package/es/sidebar/utils/index.js +41 -98
  105. package/es/table/components/CardView/index.js +62 -149
  106. package/es/table/components/Filter/index.js +42 -83
  107. package/es/table/components/Layout/index.js +25 -45
  108. package/es/table/components/LoadMore/index.js +15 -34
  109. package/es/table/components/Pagination/index.js +25 -58
  110. package/es/table/components/QuickAction/index.js +3 -11
  111. package/es/table/components/ToolBar/CardSwitch.js +6 -17
  112. package/es/table/components/ToolBar/DensityIcon.js +18 -31
  113. package/es/table/components/ToolBar/FilterColumnIcon.js +50 -106
  114. package/es/table/components/ToolBar/FullScreenIcon.js +2 -6
  115. package/es/table/components/ToolBar/Fullscreen.js +19 -35
  116. package/es/table/components/ToolBar/RefreshIcon.js +2 -5
  117. package/es/table/components/ToolBar/index.js +23 -45
  118. package/es/table/index.js +226 -399
  119. package/es/table/utils/columnRender.d.ts +1 -1
  120. package/es/table/utils/columnRender.js +32 -76
  121. package/es/table/utils/genProColumnToColumn.js +5 -14
  122. package/es/table/utils/index.js +14 -47
  123. package/es/table/utils/pureColumnRender.js +21 -53
  124. package/es/table/utils/pureGenProColumnToColumn.d.ts +1 -1
  125. package/es/table/utils/pureGenProColumnToColumn.js +2 -10
  126. package/es/table/utils/useTableSelection.js +6 -33
  127. package/es/templates/List/index.js +2 -9
  128. package/es/timeline/ProTimeLineItem/index.js +24 -64
  129. package/es/timeline/index.js +8 -22
  130. package/es/timeline/typing.d.ts +1 -0
  131. package/es/utils/message.d.ts +2 -2
  132. package/es/utils/message.js +0 -5
  133. package/es/utils/useRealHistory.d.ts +8 -0
  134. package/es/utils/useRealHistory.js +23 -0
  135. package/lib/actions/base.js +8 -24
  136. package/lib/actions/confirm.js +0 -5
  137. package/lib/actions/danger-confirm.js +0 -5
  138. package/lib/actions/danger-pop-confirm.js +0 -4
  139. package/lib/actions/dialog-component.js +2 -15
  140. package/lib/actions/dialog-form.js +36 -88
  141. package/lib/actions/dialog-info.js +1 -10
  142. package/lib/actions/dialog-table.js +0 -5
  143. package/lib/actions/dialog.js +55 -111
  144. package/lib/actions/drawer-form.js +0 -3
  145. package/lib/actions/drawer-info.js +0 -3
  146. package/lib/actions/drawer-table.js +0 -3
  147. package/lib/actions/drawer.js +0 -4
  148. package/lib/actions/error.js +0 -5
  149. package/lib/actions/index.d.ts +2 -0
  150. package/lib/actions/index.js +70 -186
  151. package/lib/actions/link.js +3 -10
  152. package/lib/actions/notice.js +0 -5
  153. package/lib/actions/pop-confirm.js +0 -5
  154. package/lib/actions/quick.js +0 -13
  155. package/lib/actions/request.js +10 -32
  156. package/lib/actions/utils.js +1 -9
  157. package/lib/card/card-container.js +0 -9
  158. package/lib/card/divider.js +0 -7
  159. package/lib/card/index.js +56 -122
  160. package/lib/card/selectable.js +4 -20
  161. package/lib/card/tab.js +1 -14
  162. package/lib/card/utils.js +0 -6
  163. package/lib/field/index.js +0 -6
  164. package/lib/form/Components/Editable/index.js +15 -65
  165. package/lib/form/Components/FormGroup/index.d.ts +1 -0
  166. package/lib/form/Components/FormGroup/index.js +7 -28
  167. package/lib/form/Components/LightFilter/index.js +15 -47
  168. package/lib/form/Components/ProField/index.js +2 -21
  169. package/lib/form/Components/ProField/mapDateFormat.js +2 -32
  170. package/lib/form/Components/Text/index.d.ts +1 -0
  171. package/lib/form/Components/Text/index.js +2 -16
  172. package/lib/form/Filter/AdvancedFilter.js +11 -34
  173. package/lib/form/Filter/Layout.js +11 -33
  174. package/lib/form/Filter/LightFilter.js +13 -32
  175. package/lib/form/Filter/SimpleFilter.js +5 -27
  176. package/lib/form/Filter/index.js +105 -191
  177. package/lib/form/Filter/index2.js +11 -38
  178. package/lib/form/Filter/useBindUrl.js +18 -50
  179. package/lib/form/Filter/useSpecialProps.js +6 -13
  180. package/lib/form/ProForm/addCascadeEffect.js +10 -35
  181. package/lib/form/ProForm/customComponent.js +0 -8
  182. package/lib/form/ProForm/index.js +23 -57
  183. package/lib/form/ProForm/useAutoLayout.js +21 -45
  184. package/lib/form/ProForm/useAutoSubmit.js +3 -10
  185. package/lib/form/ProForm/useFieldRequest.js +0 -8
  186. package/lib/form/ProForm/useFormDisplayValues.js +12 -34
  187. package/lib/form/ProForm/useInitialRequest.js +0 -6
  188. package/lib/form/SchemaForm/adapterComponent.js +0 -6
  189. package/lib/form/SchemaForm/adapterDecorator.d.ts +1 -1
  190. package/lib/form/SchemaForm/adapterDecorator.js +0 -12
  191. package/lib/form/SchemaForm/adapterType.js +0 -5
  192. package/lib/form/SchemaForm/index.js +78 -144
  193. package/lib/form/SchemaForm/initializeArrayCards.js +0 -7
  194. package/lib/form/SchemaForm/initializeArrayCollapse.js +0 -7
  195. package/lib/form/SchemaForm/initializeArrayItems.js +2 -10
  196. package/lib/form/SchemaForm/initializeArrayTable.js +21 -34
  197. package/lib/form/SchemaForm/initializeDataSource.js +2 -8
  198. package/lib/form/SchemaForm/initializeFormButton.js +14 -32
  199. package/lib/form/SchemaForm/initializeFormCollapse.js +8 -18
  200. package/lib/form/SchemaForm/initializeFormGroup.js +10 -20
  201. package/lib/form/SchemaForm/initializeFormStep.js +11 -23
  202. package/lib/form/SchemaForm/initializeFormTab.js +10 -20
  203. package/lib/form/SchemaForm/initializeReactions.js +9 -37
  204. package/lib/form/SchemaForm/initializeRequest.js +2 -18
  205. package/lib/form/SchemaForm/initializeRules.js +4 -24
  206. package/lib/form/SchemaForm/initializeSelectTable.js +7 -36
  207. package/lib/form/SchemaForm/reactions.js +17 -37
  208. package/lib/form/docs/ActionResponse.d.ts +1 -0
  209. package/lib/form/docs/ActionResponse.js +0 -5
  210. package/lib/form/index.d.ts +9 -9
  211. package/lib/form/index.js +0 -25
  212. package/lib/form/typing.d.ts +6 -4
  213. package/lib/form/utils.d.ts +1 -1
  214. package/lib/form/utils.js +4 -61
  215. package/lib/form/warning.js +2 -8
  216. package/lib/hooks/index.js +0 -5
  217. package/lib/index-without-icon.js +2 -36
  218. package/lib/index.d.ts +1 -1
  219. package/lib/index.js +1 -39
  220. package/lib/info/components/InfoGroup/index.js +21 -42
  221. package/lib/info/components/InfoValueItem/index.js +66 -134
  222. package/lib/info/components/ProInfoItem/index.js +13 -29
  223. package/lib/info/components/baseInfo/index.js +14 -38
  224. package/lib/info/components/headerInfo/index.js +8 -31
  225. package/lib/info/components/tableInfo/index.js +20 -62
  226. package/lib/info/index.js +53 -97
  227. package/lib/info/utils/index.js +0 -19
  228. package/lib/info/utils/utils.js +0 -1
  229. package/lib/nocode/configurators/PageHeader.js +0 -2
  230. package/lib/nocode/configurators/ProTable.js +0 -2
  231. package/lib/nocode/configurators/common.js +5 -10
  232. package/lib/nocode/configurators/index.js +2 -10
  233. package/lib/nocode/configurators/map.js +0 -5
  234. package/lib/nocode/index.js +0 -11
  235. package/lib/nocode/pages/editor.js +5 -19
  236. package/lib/nocode/pages/index.js +2 -9
  237. package/lib/nocode/pages/playground.js +18 -52
  238. package/lib/nocode/pages/renderer.js +9 -53
  239. package/lib/nocode/playground.js +10 -35
  240. package/lib/page-container/index.js +0 -6
  241. package/lib/page-header/index.d.ts +2 -2
  242. package/lib/page-header/index.js +38 -88
  243. package/lib/sidebar/components/sidebar-container/index.js +41 -84
  244. package/lib/sidebar/components/tree/index.js +88 -158
  245. package/lib/sidebar/components/tree-node/components/HoverTooltip/index.js +11 -34
  246. package/lib/sidebar/components/tree-node/components/IconAction/index.js +9 -46
  247. package/lib/sidebar/components/tree-node/components/IconSwitch/index.js +12 -35
  248. package/lib/sidebar/components/tree-node/index.js +41 -99
  249. package/lib/sidebar/index.js +69 -112
  250. package/lib/sidebar/utils/action-ref.js +2 -8
  251. package/lib/sidebar/utils/index.d.ts +5 -2
  252. package/lib/sidebar/utils/index.js +41 -106
  253. package/lib/skeleton/index.js +0 -6
  254. package/lib/table/components/CardView/index.js +62 -161
  255. package/lib/table/components/EmptyContent/index.js +0 -6
  256. package/lib/table/components/Filter/index.js +42 -93
  257. package/lib/table/components/Layout/index.js +25 -58
  258. package/lib/table/components/LoadMore/index.js +15 -44
  259. package/lib/table/components/Pagination/index.js +25 -68
  260. package/lib/table/components/QuickAction/index.js +3 -15
  261. package/lib/table/components/ToolBar/CardSwitch.js +6 -28
  262. package/lib/table/components/ToolBar/DensityIcon.js +18 -42
  263. package/lib/table/components/ToolBar/FilterColumnIcon.js +50 -118
  264. package/lib/table/components/ToolBar/FullScreenIcon.js +3 -13
  265. package/lib/table/components/ToolBar/Fullscreen.js +19 -42
  266. package/lib/table/components/ToolBar/RefreshIcon.js +3 -12
  267. package/lib/table/components/ToolBar/index.js +23 -63
  268. package/lib/table/index.js +226 -423
  269. package/lib/table/utils/columnRender.d.ts +1 -1
  270. package/lib/table/utils/columnRender.js +32 -89
  271. package/lib/table/utils/genProColumnToColumn.js +5 -19
  272. package/lib/table/utils/getTableProps.js +0 -2
  273. package/lib/table/utils/getTableSortIcons.js +0 -5
  274. package/lib/table/utils/index.js +12 -55
  275. package/lib/table/utils/pureColumnRender.js +21 -64
  276. package/lib/table/utils/pureGenProColumnToColumn.d.ts +1 -1
  277. package/lib/table/utils/pureGenProColumnToColumn.js +2 -11
  278. package/lib/table/utils/useTableSelection.js +6 -35
  279. package/lib/templates/Detail/index.js +0 -5
  280. package/lib/templates/Form/index.js +0 -5
  281. package/lib/templates/List/index.js +2 -19
  282. package/lib/templates/index.js +0 -6
  283. package/lib/timeline/ProTimeLineItem/index.js +24 -75
  284. package/lib/timeline/index.js +8 -33
  285. package/lib/timeline/typing.d.ts +1 -0
  286. package/lib/utils/index.js +0 -6
  287. package/lib/utils/message.d.ts +2 -2
  288. package/lib/utils/message.js +0 -10
  289. package/lib/utils/useRealHistory.d.ts +8 -0
  290. package/lib/utils/useRealHistory.js +32 -0
  291. package/package.json +1 -1
@@ -18,53 +18,29 @@ exports.ProActionGroup = ProActionGroup;
18
18
  exports.default = exports.ProActionMenuButton = void 0;
19
19
  exports.registerActionHandler = registerActionHandler;
20
20
  exports.useAction = useAction;
21
-
22
21
  var _react = _interopRequireDefault(require("react"));
23
-
24
22
  var _classnames = _interopRequireDefault(require("classnames"));
25
-
26
23
  var _components = require("@alicloudfe/components");
27
-
28
24
  var _icon = _interopRequireDefault(require("@teamix/icon"));
29
-
30
25
  var _utils = require("@teamix/utils");
31
-
32
26
  var _link = require("./link");
33
-
34
27
  var _request = require("./request");
35
-
36
28
  var _dialog = require("./dialog");
37
-
38
29
  var _confirm = require("./confirm");
39
-
40
30
  var _dangerConfirm = require("./danger-confirm");
41
-
42
31
  var _notice = require("./notice");
43
-
44
32
  var _error = require("./error");
45
-
46
33
  var _dialogForm = require("./dialog-form");
47
-
48
34
  var _dialogTable = require("./dialog-table");
49
-
50
35
  var _dialogInfo = require("./dialog-info");
51
-
52
36
  var _drawer = require("./drawer");
53
-
54
37
  var _drawerForm = require("./drawer-form");
55
-
56
38
  var _drawerTable = require("./drawer-table");
57
-
58
39
  var _drawerInfo = require("./drawer-info");
59
-
60
40
  var _popConfirm = require("./pop-confirm");
61
-
62
41
  var _dangerPopConfirm = require("./danger-pop-confirm");
63
-
64
42
  require("./index.scss");
65
-
66
43
  var _quick = require("./quick");
67
-
68
44
  Object.keys(_quick).forEach(function (key) {
69
45
  if (key === "default" || key === "__esModule") return;
70
46
  if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
@@ -77,162 +53,122 @@ Object.keys(_quick).forEach(function (key) {
77
53
  });
78
54
  });
79
55
  var _excluded = ["type"],
80
- _excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "disabled", "onClick", "tooltip", "disabledTooltip", "tooltipProps", "data-teamix-spm"],
81
- _excluded3 = ["loading"],
82
- _excluded4 = ["icon", "iconSize", "label", "actions", "children", "context", "type", "className", "noArrow"],
83
- _excluded5 = ["context", "text"],
84
- _excluded6 = ["key", "actions"],
85
- _excluded7 = ["key", "config"],
86
- _excluded8 = ["type", "divider", "max", "moreText", "more", "context", "actions", "className", "data-teamix-spm"];
87
-
56
+ _excluded2 = ["config", "icon", "iconSize", "type", "context", "children", "visible", "disabled", "onClick", "tooltip", "disabledTooltip", "tooltipProps", "data-teamix-spm"],
57
+ _excluded3 = ["loading"],
58
+ _excluded4 = ["icon", "iconSize", "label", "actions", "children", "context", "type", "className", "noArrow"],
59
+ _excluded5 = ["context", "text"],
60
+ _excluded6 = ["key", "actions"],
61
+ _excluded7 = ["key", "config"],
62
+ _excluded8 = ["type", "divider", "max", "moreText", "more", "context", "actions", "className", "data-teamix-spm"];
88
63
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
89
-
90
64
  function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
91
-
92
65
  function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
93
-
94
66
  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); }
95
-
96
67
  function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
97
-
98
68
  function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
99
-
100
69
  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; }
101
-
102
70
  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; }
103
-
104
71
  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; }
105
-
106
72
  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; }
107
-
108
73
  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; }
109
-
110
74
  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; }
111
-
112
75
  var RegistedActions = new Map();
113
-
114
76
  function registerActionHandler(id, extendActionId, defaultConfig) {
115
77
  RegistedActions.set(id, {
116
78
  extendActionId: extendActionId,
117
79
  defaultConfig: defaultConfig
118
80
  });
119
81
  }
120
-
121
82
  function useAction(config, context) {
122
83
  if (!config) {
123
84
  return {};
124
85
  }
125
-
126
86
  var type = config.type,
127
- others = _objectWithoutProperties(config, _excluded);
128
-
87
+ others = _objectWithoutProperties(config, _excluded);
129
88
  if (type === 'request') {
130
89
  return (0, _request.useRequestAction)(others, context);
131
90
  }
132
-
133
91
  if (type === 'link') {
134
92
  return (0, _link.useLinkAction)(others, context);
135
93
  }
136
-
137
94
  if (type === 'dialog') {
138
95
  return (0, _dialog.useDialogAction)(others, context);
139
96
  }
140
-
141
97
  if (type === 'confirm') {
142
98
  return (0, _confirm.useConfirmAction)(others, context);
143
99
  }
144
-
145
100
  if (type === 'danger-confirm') {
146
101
  return (0, _dangerConfirm.useDangerConfirmAction)(others, context);
147
102
  }
148
-
149
103
  if (type === 'notice') {
150
104
  return (0, _notice.useNoticeAction)(others, context);
151
105
  }
152
-
153
106
  if (type === 'error') {
154
107
  return (0, _error.useErrorAction)(others, context);
155
108
  }
156
-
157
109
  if (type === 'dialog-form') {
158
110
  return (0, _dialogForm.useDialogFormAction)(others, context);
159
111
  }
160
-
161
112
  if (type === 'dialog-table') {
162
113
  return (0, _dialogTable.useDialogTableAction)(others, context);
163
114
  }
164
-
165
115
  if (type === 'dialog-info') {
166
116
  return (0, _dialogInfo.useDialogInfoAction)(others, context);
167
117
  }
168
-
169
118
  if (type === 'drawer') {
170
119
  return (0, _drawer.useDrawerAction)(others, context);
171
120
  }
172
-
173
121
  if (type === 'drawer-form') {
174
122
  return (0, _drawerForm.useDrawerFormAction)(others, context);
175
123
  }
176
-
177
124
  if (type === 'drawer-table') {
178
125
  return (0, _drawerTable.useDrawerTableAction)(others, context);
179
126
  }
180
-
181
127
  if (type === 'drawer-info') {
182
128
  return (0, _drawerInfo.useDrawerInfoAction)(others, context);
183
129
  }
184
-
185
130
  if (type === 'pop-confirm') {
186
131
  return (0, _popConfirm.usePopConfirmAction)(others, context);
187
132
  }
188
-
189
133
  if (type === 'danger-pop-confirm') {
190
134
  return (0, _dangerPopConfirm.useDangerPopConfirmAction)(others, context);
191
135
  }
192
-
193
136
  var registedAction = RegistedActions.get(type);
194
-
195
137
  if (!registedAction) {
196
138
  return {};
197
139
  }
198
-
199
140
  return useAction(_objectSpread(_objectSpread({
200
141
  type: registedAction.extendActionId
201
142
  }, registedAction.defaultConfig), others), context);
202
143
  }
203
-
204
144
  var buttonContent = function buttonContent(content, iconType, iconSize, context) {
205
145
  var renderedContent = typeof content === 'function' ? content(context) : content;
206
-
207
146
  if (!iconType) {
208
147
  return renderedContent;
209
148
  }
210
-
211
149
  return [/*#__PURE__*/_react.default.createElement(_icon.default, {
212
150
  type: iconType,
213
151
  size: iconSize,
214
152
  key: "teamix-button-icon"
215
153
  }), renderedContent];
216
154
  };
217
-
218
155
  var ProActionButton = function ProActionButton(props) {
219
156
  var config = props.config,
220
- icon = props.icon,
221
- _props$iconSize = props.iconSize,
222
- iconSize = _props$iconSize === void 0 ? 'medium' : _props$iconSize,
223
- _props$type = props.type,
224
- type = _props$type === void 0 ? 'primary' : _props$type,
225
- context = props.context,
226
- children = props.children,
227
- visible = props.visible,
228
- disabled = props.disabled,
229
- _onClick = props.onClick,
230
- tooltip = props.tooltip,
231
- disabledTooltip = props.disabledTooltip,
232
- tooltipProps = props.tooltipProps,
233
- dataTeamixSpm = props['data-teamix-spm'],
234
- others = _objectWithoutProperties(props, _excluded2);
235
-
157
+ icon = props.icon,
158
+ _props$iconSize = props.iconSize,
159
+ iconSize = _props$iconSize === void 0 ? 'medium' : _props$iconSize,
160
+ _props$type = props.type,
161
+ type = _props$type === void 0 ? 'primary' : _props$type,
162
+ context = props.context,
163
+ children = props.children,
164
+ visible = props.visible,
165
+ disabled = props.disabled,
166
+ _onClick = props.onClick,
167
+ tooltip = props.tooltip,
168
+ disabledTooltip = props.disabledTooltip,
169
+ tooltipProps = props.tooltipProps,
170
+ dataTeamixSpm = props['data-teamix-spm'],
171
+ others = _objectWithoutProperties(props, _excluded2);
236
172
  var actionProps = useAction(config, context);
237
173
  var buttonProps = _onClick ? _objectSpread(_objectSpread(_objectSpread({
238
174
  disabled: disabled
@@ -243,21 +179,17 @@ var ProActionButton = function ProActionButton(props) {
243
179
  }) : _objectSpread(_objectSpread({
244
180
  disabled: disabled
245
181
  }, actionProps), others);
246
-
247
182
  if (dataTeamixSpm) {
248
183
  buttonProps['data-teamix-spm'] = dataTeamixSpm;
249
184
  }
250
-
251
185
  var content = /*#__PURE__*/_react.default.createElement(_components.Button, _objectSpread({
252
186
  type: type
253
187
  }, buttonProps), buttonContent(children, icon, iconSize, context));
254
-
255
188
  var baseToolTipProps = _objectSpread({
256
189
  triggerType: 'hover',
257
190
  align: 't',
258
191
  trigger: content
259
192
  }, tooltipProps);
260
-
261
193
  if (tooltip || disabledTooltip) {
262
194
  if (tooltip && !disabledTooltip) {
263
195
  if (!disabled) {
@@ -272,25 +204,22 @@ var ProActionButton = function ProActionButton(props) {
272
204
  content = /*#__PURE__*/_react.default.createElement(_components.Balloon.Tooltip, _objectSpread({}, baseToolTipProps), showToolTip);
273
205
  }
274
206
  }
275
-
276
207
  return content;
277
208
  };
278
-
279
209
  exports.ProActionButton = ProActionButton;
280
-
281
210
  var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
282
211
  var action = props.action,
283
- context = props.context,
284
- dataTeamixSpm = props['data-teamix-spm'];
212
+ context = props.context,
213
+ dataTeamixSpm = props['data-teamix-spm'];
285
214
  var config = action.config,
286
- btnContext = action.context,
287
- _onClick2 = action.onClick,
288
- children = action.children,
289
- icon = action.icon,
290
- disabled = action.disabled,
291
- tooltip = action.tooltip,
292
- disabledTooltip = action.disabledTooltip,
293
- tooltipProps = action.tooltipProps;
215
+ btnContext = action.context,
216
+ _onClick2 = action.onClick,
217
+ children = action.children,
218
+ icon = action.icon,
219
+ disabled = action.disabled,
220
+ tooltip = action.tooltip,
221
+ disabledTooltip = action.disabledTooltip,
222
+ tooltipProps = action.tooltipProps;
294
223
  var basePrefix = (0, _utils.usePrefixCls)('', {
295
224
  base: true
296
225
  });
@@ -298,29 +227,23 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
298
227
  var menuItemActionConfig = Object.assign({}, config, {
299
228
  trigger: 'onClick'
300
229
  });
301
-
302
230
  var _useAction = useAction(menuItemActionConfig, btnContext || context),
303
- loading = _useAction.loading,
304
- menuItemProps = _objectWithoutProperties(_useAction, _excluded3);
305
-
231
+ loading = _useAction.loading,
232
+ menuItemProps = _objectWithoutProperties(_useAction, _excluded3);
306
233
  var buttonProps = disabled ? {} : _onClick2 ? _objectSpread(_objectSpread({}, menuItemProps), {}, {
307
234
  onClick: function onClick(e) {
308
235
  return _onClick2(e, context);
309
236
  }
310
237
  }) : _objectSpread({}, menuItemProps);
311
-
312
238
  if (dataTeamixSpm) {
313
239
  buttonProps['data-teamix-spm'] = dataTeamixSpm;
314
240
  }
315
-
316
241
  var content = buttonContent(children, icon, undefined, context);
317
-
318
242
  var baseToolTipProps = _objectSpread({
319
243
  triggerType: 'hover',
320
244
  align: 't',
321
245
  trigger: content
322
246
  }, tooltipProps);
323
-
324
247
  if (tooltip || disabledTooltip) {
325
248
  if (tooltip && !disabledTooltip) {
326
249
  if (!disabled) {
@@ -335,21 +258,17 @@ var ProActionMenuButtonItem = function ProActionMenuButtonItem(props) {
335
258
  content = /*#__PURE__*/_react.default.createElement(_components.Balloon.Tooltip, _objectSpread({}, baseToolTipProps), showToolTip);
336
259
  }
337
260
  }
338
-
339
261
  return /*#__PURE__*/_react.default.createElement("div", _objectSpread({
340
262
  className: (0, _classnames.default)(_defineProperty({}, basePrefix('disabled'), disabled), basePrefix('menu-item'), prefixCls('menu-item'))
341
263
  }, buttonProps), content);
342
264
  };
343
-
344
265
  function renderCommonActionButtonMenuItem(action, key, context, dataTeamixSpm) {
345
266
  if (action.type === 'divider') {
346
267
  return /*#__PURE__*/_react.default.createElement(_components.Menu.Divider, {
347
268
  key: key
348
269
  });
349
270
  }
350
-
351
271
  var menuBtn = action;
352
-
353
272
  if (menuBtn.actions && menuBtn.actions.length && menuBtn.disabled !== true) {
354
273
  return /*#__PURE__*/_react.default.createElement(_components.Menu.SubMenu, {
355
274
  key: key,
@@ -358,7 +277,6 @@ function renderCommonActionButtonMenuItem(action, key, context, dataTeamixSpm) {
358
277
  return renderCommonActionButtonMenuItem(a, a.key, context, a['data-teamix-spm']);
359
278
  }));
360
279
  }
361
-
362
280
  return /*#__PURE__*/_react.default.createElement(ProActionMenuButtonItem, {
363
281
  key: key,
364
282
  action: action,
@@ -366,20 +284,18 @@ function renderCommonActionButtonMenuItem(action, key, context, dataTeamixSpm) {
366
284
  "data-teamix-spm": "".concat(dataTeamixSpm, "-").concat(key)
367
285
  });
368
286
  }
369
-
370
287
  var ProActionMenuButton = function ProActionMenuButton(props) {
371
288
  var icon = props.icon,
372
- iconSize = props.iconSize,
373
- label = props.label,
374
- actions = props.actions,
375
- children = props.children,
376
- context = props.context,
377
- _props$type2 = props.type,
378
- type = _props$type2 === void 0 ? 'primary' : _props$type2,
379
- className = props.className,
380
- noArrow = props.noArrow,
381
- others = _objectWithoutProperties(props, _excluded4);
382
-
289
+ iconSize = props.iconSize,
290
+ label = props.label,
291
+ actions = props.actions,
292
+ children = props.children,
293
+ context = props.context,
294
+ _props$type2 = props.type,
295
+ type = _props$type2 === void 0 ? 'primary' : _props$type2,
296
+ className = props.className,
297
+ noArrow = props.noArrow,
298
+ others = _objectWithoutProperties(props, _excluded4);
383
299
  return /*#__PURE__*/_react.default.createElement(_components.MenuButton, _objectSpread({
384
300
  popupTriggerType: "hover",
385
301
  autoWidth: false,
@@ -398,40 +314,33 @@ var ProActionMenuButton = function ProActionMenuButton(props) {
398
314
  }, others), actions.map(function (action, i) {
399
315
  return renderCommonActionButtonMenuItem(action, action.key || i, context, others === null || others === void 0 ? void 0 : others['data-teamix-spm']);
400
316
  }));
401
- }; // 超出 max,则折叠起来
402
-
403
-
317
+ };
318
+ // 超出 max,则折叠起来
404
319
  exports.ProActionMenuButton = ProActionMenuButton;
405
-
406
320
  function foldExtraActions(actions, max, moreConfig) {
407
321
  if (actions.length <= max) {
408
322
  return actions;
409
323
  }
410
-
411
324
  return [].concat(_toConsumableArray(actions.slice(0, max - 1)), [_objectSpread(_objectSpread({
412
325
  key: '__teamix_pro_action_group_more_btn'
413
326
  }, moreConfig), {}, {
414
327
  actions: actions.slice(max - 1)
415
328
  })]);
416
- } // 如果 actions 数量超过了 max,则把第 max 个和剩余超出部分折叠起来成为一个 menu
329
+ }
330
+ // 如果 actions 数量超过了 max,则把第 max 个和剩余超出部分折叠起来成为一个 menu
417
331
  // divider 不计数
418
-
419
-
420
332
  function formatGroupActions(actions, max, moreConfig) {
421
333
  var MAX = max < 1 ? MAX_ACTTIONS : max;
422
334
  var count = 0;
423
335
  var index = 0;
424
-
425
336
  for (; index < actions.length && count < MAX; index++) {
426
337
  if (actions[index].type !== 'divider') {
427
338
  count += 1;
428
339
  }
429
340
  }
430
-
431
341
  return foldExtraActions(actions, Math.max(index, MAX), moreConfig);
432
- } // 渲染一个 button 或者 menu button
433
-
434
-
342
+ }
343
+ // 渲染一个 button 或者 menu button
435
344
  function renderCommonActionButton(button, context, isTypeText, dataTeamixSpm) {
436
345
  if (button.type === 'divider') {
437
346
  return /*#__PURE__*/_react.default.createElement(_components.Divider, {
@@ -439,27 +348,21 @@ function renderCommonActionButton(button, context, isTypeText, dataTeamixSpm) {
439
348
  direction: "ver"
440
349
  });
441
350
  }
442
-
443
351
  var buttonContext = button.context,
444
- text = button.text,
445
- others = _objectWithoutProperties(button, _excluded5);
446
-
352
+ text = button.text,
353
+ others = _objectWithoutProperties(button, _excluded5);
447
354
  var buttonProps = _objectSpread({
448
355
  context: Object.assign({}, context, buttonContext),
449
356
  text: text || isTypeText
450
357
  }, others);
451
-
452
358
  if (dataTeamixSpm) {
453
359
  buttonProps['data-teamix-spm'] = dataTeamixSpm;
454
360
  }
455
-
456
361
  if (!button.actions) {
457
362
  return /*#__PURE__*/_react.default.createElement(ProActionButton, _objectSpread({}, buttonProps));
458
363
  }
459
-
460
364
  return /*#__PURE__*/_react.default.createElement(ProActionMenuButton, _objectSpread({}, buttonProps));
461
365
  }
462
-
463
366
  function getDefaultMoreButton(type, more) {
464
367
  var defaultConfig = type === 'button' ? {
465
368
  children: (0, _utils.getMessage)('more')
@@ -468,38 +371,29 @@ function getDefaultMoreButton(type, more) {
468
371
  autoWidth: false,
469
372
  noArrow: true
470
373
  };
471
-
472
374
  if (!more) {
473
375
  return defaultConfig;
474
376
  }
475
-
476
377
  var moreConfig = typeof more === 'string' ? {
477
378
  children: more
478
379
  } : more;
479
-
480
380
  if (type === 'button') {
481
381
  return Object.assign(defaultConfig, moreConfig);
482
382
  }
483
-
484
383
  return moreConfig;
485
384
  }
486
-
487
385
  var MAX_ACTTIONS = 4;
488
-
489
386
  function getKey(index, key) {
490
387
  if (key !== undefined) {
491
388
  return key;
492
389
  }
493
-
494
390
  return "__teamix_pro_action_key_".concat(index);
495
391
  }
496
-
497
392
  function getActionConfig(action, index, context) {
498
393
  if (action.actions) {
499
394
  var _key = action.key,
500
- actions = action.actions,
501
- _others = _objectWithoutProperties(action, _excluded6);
502
-
395
+ actions = action.actions,
396
+ _others = _objectWithoutProperties(action, _excluded6);
503
397
  return _objectSpread({
504
398
  key: getKey(index, _key),
505
399
  actions: actions.map(function (a, j) {
@@ -509,33 +403,29 @@ function getActionConfig(action, index, context) {
509
403
  })
510
404
  }, (0, _utils.getTargetValue)(_others, context));
511
405
  }
512
-
513
406
  var key = action.key,
514
- config = action.config,
515
- others = _objectWithoutProperties(action, _excluded7);
516
-
407
+ config = action.config,
408
+ others = _objectWithoutProperties(action, _excluded7);
517
409
  return _objectSpread({
518
410
  key: getKey(index, key),
519
411
  config: config
520
412
  }, (0, _utils.getTargetValue)(others, context));
521
413
  }
522
-
523
414
  function ProActionGroup(props) {
524
415
  var _props$type3 = props.type,
525
- type = _props$type3 === void 0 ? 'button' : _props$type3,
526
- _props$divider = props.divider,
527
- divider = _props$divider === void 0 ? true : _props$divider,
528
- _props$max = props.max,
529
- max = _props$max === void 0 ? MAX_ACTTIONS : _props$max,
530
- moreText = props.moreText,
531
- more = props.more,
532
- context = props.context,
533
- _props$actions = props.actions,
534
- actions = _props$actions === void 0 ? [] : _props$actions,
535
- className = props.className,
536
- dataTeamixSpm = props['data-teamix-spm'],
537
- containerProps = _objectWithoutProperties(props, _excluded8);
538
-
416
+ type = _props$type3 === void 0 ? 'button' : _props$type3,
417
+ _props$divider = props.divider,
418
+ divider = _props$divider === void 0 ? true : _props$divider,
419
+ _props$max = props.max,
420
+ max = _props$max === void 0 ? MAX_ACTTIONS : _props$max,
421
+ moreText = props.moreText,
422
+ more = props.more,
423
+ context = props.context,
424
+ _props$actions = props.actions,
425
+ actions = _props$actions === void 0 ? [] : _props$actions,
426
+ className = props.className,
427
+ dataTeamixSpm = props['data-teamix-spm'],
428
+ containerProps = _objectWithoutProperties(props, _excluded8);
539
429
  var isTypeText = type === 'text';
540
430
  var filteredActions = actions.map(function (action, index) {
541
431
  return getActionConfig(action, index, context);
@@ -549,7 +439,6 @@ function ProActionGroup(props) {
549
439
  })
550
440
  }, containerProps), formatedActions.map(function (actionBtn, i) {
551
441
  var isLastOne = i === formatedActions.length - 1;
552
-
553
442
  if (dataTeamixSpm) {
554
443
  return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
555
444
  key: actionBtn.key
@@ -563,14 +452,11 @@ function ProActionGroup(props) {
563
452
  }));
564
453
  }));
565
454
  }
566
-
567
455
  var ProAction = function ProAction(props) {
568
456
  return renderCommonActionButton(props);
569
457
  };
570
-
571
458
  var _default = ProAction;
572
459
  exports.default = _default;
573
-
574
460
  /**
575
461
  * @deprecated 建议使用 ProActionGroup 代替
576
462
  */
@@ -578,13 +464,11 @@ var ActionGroup = ProActionGroup;
578
464
  /**
579
465
  * @deprecated 建议使用 ProActionButton 代替
580
466
  */
581
-
582
467
  exports.ActionGroup = ActionGroup;
583
468
  var ActionButton = ProActionButton;
584
469
  /**
585
470
  * @deprecated 建议使用 ProActionMenuButton 代替
586
471
  */
587
-
588
472
  exports.ActionButton = ActionButton;
589
473
  var ActionMenuButton = ProActionMenuButton;
590
474
  exports.ActionMenuButton = ActionMenuButton;
@@ -5,26 +5,19 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  exports.useLinkAction = useLinkAction;
8
-
9
8
  var _utils = require("@teamix/utils");
10
-
11
- var _reactRouterDom = require("react-router-dom");
12
-
9
+ var _useRealHistory = _interopRequireDefault(require("../utils/useRealHistory"));
13
10
  var _base = require("./base");
14
-
11
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
12
  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; }
16
-
17
13
  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; }
18
-
19
14
  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; }
20
-
21
15
  function useLinkAction(action, actionContext) {
22
- var history = (0, _reactRouterDom.useHistory)();
16
+ var history = (0, _useRealHistory.default)();
23
17
  return _objectSpread({}, (0, _base.eventHandler)(action, actionContext, function (context) {
24
18
  var linkAction = (0, _utils.getTargetValue)(action, context);
25
19
  (0, _utils.goToLink)(linkAction, history);
26
20
  }));
27
21
  }
28
-
29
22
  var _default = useLinkAction;
30
23
  exports.default = _default;
@@ -5,13 +5,9 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  exports.useNoticeAction = useNoticeAction;
8
-
9
8
  var _utils = require("@teamix/utils");
10
-
11
9
  var _dialog = _interopRequireDefault(require("./dialog"));
12
-
13
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
-
15
11
  function useNoticeAction(action, context) {
16
12
  return (0, _dialog.default)((0, _utils.deepMerge)({
17
13
  dialogQuickShowType: 'confirm',
@@ -20,6 +16,5 @@ function useNoticeAction(action, context) {
20
16
  }
21
17
  }, action), context);
22
18
  }
23
-
24
19
  var _default = useNoticeAction;
25
20
  exports.default = _default;
@@ -5,19 +5,14 @@ Object.defineProperty(exports, "__esModule", {
5
5
  });
6
6
  exports.default = void 0;
7
7
  exports.usePopConfirmAction = usePopConfirmAction;
8
-
9
8
  var _utils = require("@teamix/utils");
10
-
11
9
  var _dialog = _interopRequireDefault(require("./dialog"));
12
-
13
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
14
-
15
11
  function usePopConfirmAction(action, context) {
16
12
  return (0, _dialog.default)((0, _utils.deepMerge)({
17
13
  dialogType: 'pop',
18
14
  align: 'br'
19
15
  }, action), context);
20
16
  }
21
-
22
17
  var _default = usePopConfirmAction;
23
18
  exports.default = _default;