dtable-ui-component 7.0.13 → 7.0.15

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 (308) hide show
  1. package/lib/ActionSheet/index.js +58 -49
  2. package/lib/ActivityIndicator/index.js +17 -16
  3. package/lib/AsyncUserSelect/index.js +20 -46
  4. package/lib/AsyncUserSelect/user-item.js +6 -5
  5. package/lib/AutoNumberFormatter/index.js +4 -3
  6. package/lib/Badge/index.js +27 -29
  7. package/lib/ButtonFormatter/index.js +8 -6
  8. package/lib/CTimeFormatter/index.js +4 -3
  9. package/lib/CheckboxEditor/index.js +16 -13
  10. package/lib/CheckboxEditor/mb-editor.js +20 -9
  11. package/lib/CheckboxEditor/pc-editor.js +24 -12
  12. package/lib/CheckboxFormatter/index.js +5 -4
  13. package/lib/CollaboratorEditor/index.js +17 -14
  14. package/lib/CollaboratorEditor/mb-editor/index.js +19 -11
  15. package/lib/CollaboratorEditor/pc-editor/index.js +35 -26
  16. package/lib/CollaboratorFormatter/index.js +10 -8
  17. package/lib/CollaboratorItem/index.js +5 -4
  18. package/lib/CollapsibleSettingLayout/index.js +8 -10
  19. package/lib/Comment/body/comment.js +19 -11
  20. package/lib/Comment/body/index.js +8 -8
  21. package/lib/Comment/footer/btns/index.js +7 -4
  22. package/lib/Comment/footer/index.js +21 -10
  23. package/lib/Comment/footer/input/index.js +55 -34
  24. package/lib/Comment/footer/input/participant/index.js +6 -5
  25. package/lib/Comment/footer/participants/index.js +5 -4
  26. package/lib/Comment/footer/participants/participant/index.js +3 -1
  27. package/lib/Comment/footer/participants/participant-select/index.js +26 -10
  28. package/lib/Comment/index.js +57 -39
  29. package/lib/Comment/utils/utilities.js +22 -16
  30. package/lib/CreatorFormatter/index.js +8 -6
  31. package/lib/DTableColorPicker/ColorPickerPortal/index.js +26 -28
  32. package/lib/DTableColorPicker/index.js +53 -67
  33. package/lib/DTableColorPicker/utils.js +7 -5
  34. package/lib/DTableColumnIcon/index.js +7 -6
  35. package/lib/DTableCommonAddTool/index.js +10 -8
  36. package/lib/DTableCustomFooter/index.js +3 -1
  37. package/lib/DTableCustomizeSearchInput/index.js +41 -26
  38. package/lib/DTableCustomizeSelect/index.js +24 -19
  39. package/lib/DTableDropdownItem/index.js +28 -24
  40. package/lib/DTableDropdownMenu/index.js +17 -14
  41. package/lib/DTableEmptyTip/index.js +5 -4
  42. package/lib/DTableFiltersPopover/index.js +42 -27
  43. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +3 -1
  44. package/lib/DTableFiltersPopover/utils/index.js +114 -64
  45. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +9 -8
  46. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +13 -16
  47. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +15 -18
  48. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +14 -8
  49. package/lib/DTableFiltersPopover/widgets/filter-group.js +57 -36
  50. package/lib/DTableFiltersPopover/widgets/filter-item.js +165 -106
  51. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +162 -137
  52. package/lib/DTableFiltersPopover/widgets/rate-item.js +25 -20
  53. package/lib/DTableIcon/index.js +11 -10
  54. package/lib/DTableIcon/svg-icon.js +11 -9
  55. package/lib/DTableModalHeader/index.js +7 -7
  56. package/lib/DTablePopover/index.js +16 -12
  57. package/lib/DTableRadio/index.js +9 -10
  58. package/lib/DTableRadioGroup/index.js +20 -11
  59. package/lib/DTableSearchInput/index.js +29 -19
  60. package/lib/DTableSelect/dtable-select-label.js +6 -7
  61. package/lib/DTableSelect/index.js +26 -25
  62. package/lib/DTableSelect/select-dropdown-indicator/index.js +3 -1
  63. package/lib/DTableSelect/utils.js +83 -47
  64. package/lib/DTableSubDropdownMenu/index.js +16 -12
  65. package/lib/DTableSubDropdownToggle/index.js +16 -17
  66. package/lib/DTableSwitch/index.js +11 -12
  67. package/lib/DTableToolTip/index.js +12 -11
  68. package/lib/DateEditor/index.js +28 -30
  69. package/lib/DateEditor/mb-editor/index.js +31 -18
  70. package/lib/DateEditor/pc-editor.js +46 -27
  71. package/lib/DateFormatter/index.js +5 -4
  72. package/lib/DatePicker/index.js +15 -9
  73. package/lib/DatePicker/utils.js +7 -5
  74. package/lib/DeleteTip/index.js +6 -5
  75. package/lib/DepartmentMultipleSelectEditor/index.js +26 -28
  76. package/lib/DepartmentSelectFilter/index.js +13 -8
  77. package/lib/DepartmentSingleSelectEditor/index.js +16 -13
  78. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +49 -50
  79. package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +64 -42
  80. package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +19 -13
  81. package/lib/DepartmentSingleSelectFormatter/index.js +6 -4
  82. package/lib/DigitalSignEditor/index.js +16 -13
  83. package/lib/DigitalSignEditor/mb-editor/index.js +24 -16
  84. package/lib/DigitalSignEditor/pc-editor/index.js +31 -23
  85. package/lib/DigitalSignEditor/service.js +5 -3
  86. package/lib/DigitalSignEditor/signature-board/index.js +10 -7
  87. package/lib/DigitalSignEditor/utils.js +4 -2
  88. package/lib/DigitalSignFormatter/index.js +15 -12
  89. package/lib/DigitalSignFormatter/utils.js +6 -5
  90. package/lib/Drawer/index.js +3 -2
  91. package/lib/DurationEditor/index.js +31 -21
  92. package/lib/DurationFormatter/index.js +5 -4
  93. package/lib/EditEditorButton/index.js +3 -1
  94. package/lib/EmailFormatter/index.js +4 -3
  95. package/lib/FieldDisplaySetting/field-item.js +13 -13
  96. package/lib/FieldDisplaySetting/index.js +20 -20
  97. package/lib/FileEditor/files-previewer/index.js +16 -13
  98. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +20 -12
  99. package/lib/FileEditor/files-previewer/mb-previewer/index.js +8 -7
  100. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +4 -3
  101. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +6 -5
  102. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +24 -17
  103. package/lib/FileEditor/files-previewer/pc-previewer/index.js +57 -29
  104. package/lib/FileEditor/index.js +16 -13
  105. package/lib/FileEditor/mb-editor/index.js +20 -28
  106. package/lib/FileEditor/pc-editor/addition-previewer/index.js +4 -2
  107. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +31 -17
  108. package/lib/FileEditor/pc-editor/index.js +30 -22
  109. package/lib/FileFormatter/index.js +20 -27
  110. package/lib/FileItemFormatter/index.js +10 -7
  111. package/lib/FileUploader/index.js +46 -29
  112. package/lib/FormulaFormatter/index.js +44 -24
  113. package/lib/GeolocationEditor/index.js +32 -27
  114. package/lib/GeolocationEditor/map-editor-utils.js +23 -21
  115. package/lib/GeolocationEditor/mb-editor/country-editor.js +14 -17
  116. package/lib/GeolocationEditor/mb-editor/index.js +28 -22
  117. package/lib/GeolocationEditor/mb-editor/location-editor.js +15 -18
  118. package/lib/GeolocationEditor/mb-editor/map-editor/index.js +77 -47
  119. package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +89 -50
  120. package/lib/GeolocationEditor/mb-editor/province-city-editor.js +14 -17
  121. package/lib/GeolocationEditor/mb-editor/province-editor.js +14 -17
  122. package/lib/GeolocationEditor/pc-editor/country-editor.js +25 -12
  123. package/lib/GeolocationEditor/pc-editor/index.js +41 -27
  124. package/lib/GeolocationEditor/pc-editor/location-editor.js +33 -28
  125. package/lib/GeolocationEditor/pc-editor/map-editor/index.js +67 -43
  126. package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +69 -42
  127. package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +86 -42
  128. package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +85 -39
  129. package/lib/GeolocationEditor/pc-editor/province-city-editor.js +26 -20
  130. package/lib/GeolocationEditor/pc-editor/province-editor.js +15 -8
  131. package/lib/GeolocationEditor/pc-editor/selector-header-item.js +6 -5
  132. package/lib/GeolocationEditor/pc-editor/selector-list.js +8 -7
  133. package/lib/GeolocationFormatter/index.js +5 -4
  134. package/lib/HtmlLongTextFormatter/index.js +13 -5
  135. package/lib/Icon/index.js +13 -15
  136. package/lib/Icon/load-sprite.js +13 -2
  137. package/lib/IconButton/index.js +12 -13
  138. package/lib/ImageEditor/images-previewer/image-preview/index.js +22 -13
  139. package/lib/ImageEditor/images-previewer/index.js +9 -3
  140. package/lib/ImageEditor/index.js +16 -13
  141. package/lib/ImageEditor/mb-editor/index.js +20 -28
  142. package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +6 -2
  143. package/lib/ImageEditor/pc-editor/addition-previewer/index.js +5 -3
  144. package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +26 -12
  145. package/lib/ImageEditor/pc-editor/images-previewer/index.js +10 -4
  146. package/lib/ImageEditor/pc-editor/index.js +16 -11
  147. package/lib/ImageFormatter/images-lazy-load.js +11 -19
  148. package/lib/ImageFormatter/index.js +14 -12
  149. package/lib/ImagePreviewerLightbox/index.js +15 -19
  150. package/lib/ImageThumbnail/index.js +15 -12
  151. package/lib/InputItem/custom-input.js +55 -35
  152. package/lib/InputItem/custom-keyboard.js +42 -42
  153. package/lib/InputItem/index.js +82 -63
  154. package/lib/InputItem/input.js +9 -11
  155. package/lib/LastModifierFormatter/index.js +8 -6
  156. package/lib/LinkEditor/index.js +53 -33
  157. package/lib/LinkEditor/link-editor-option.js +4 -3
  158. package/lib/LinkEditor/mb-popover/index.js +22 -9
  159. package/lib/LinkEditor/pc-popover/index.js +13 -7
  160. package/lib/LinkFormatter/index.js +37 -21
  161. package/lib/List/index.js +17 -19
  162. package/lib/List/list-item.js +59 -55
  163. package/lib/LongTextFormatter/index.js +5 -4
  164. package/lib/MBEditorHeader/index.js +9 -8
  165. package/lib/MTimeFormatter/index.js +4 -3
  166. package/lib/MobileFullScreenPage/body/index.js +6 -4
  167. package/lib/MobileFullScreenPage/header/index.js +10 -8
  168. package/lib/MobileFullScreenPage/index.js +12 -14
  169. package/lib/MobileModal/index.js +7 -8
  170. package/lib/MobileOperationSheet/index.js +8 -7
  171. package/lib/MobileSelector/empty/index.js +3 -1
  172. package/lib/MobileSelector/index.js +7 -5
  173. package/lib/MobileSelector/option/index.js +5 -3
  174. package/lib/MobileSelector/options/index.css +0 -4
  175. package/lib/MobileSelector/options/index.js +3 -1
  176. package/lib/MobileSelector/search/index.js +5 -3
  177. package/lib/MobileUpload/index.js +5 -4
  178. package/lib/Modal/alert.js +2 -2
  179. package/lib/Modal/modal.js +28 -30
  180. package/lib/Modal/prompt.js +14 -14
  181. package/lib/MultipleSelectEditor/index.js +7 -7
  182. package/lib/MultipleSelectFormatter/index.js +9 -7
  183. package/lib/NotificationPopover/index.js +5 -4
  184. package/lib/NumberEditor/index.js +21 -12
  185. package/lib/NumberFormatter/index.js +5 -4
  186. package/lib/PhoneNumberLink/index.js +5 -3
  187. package/lib/Picker/AbstractPicker.js +35 -33
  188. package/lib/Popover/index.js +9 -11
  189. package/lib/Popover/item.js +22 -24
  190. package/lib/Progress/index.js +18 -17
  191. package/lib/Radio/Radio.js +17 -15
  192. package/lib/Radio/RadioItem.js +23 -19
  193. package/lib/RateFormatter/index.js +15 -15
  194. package/lib/RoleStatusEditor/index.js +18 -19
  195. package/lib/RowExpand/index.js +7 -6
  196. package/lib/RowExpandDialog/body/index.js +57 -40
  197. package/lib/RowExpandDialog/column-content/index.js +10 -6
  198. package/lib/RowExpandDialog/header/index.js +12 -9
  199. package/lib/RowExpandDialog/index.js +59 -63
  200. package/lib/RowExpandEditor/add-btn/index.js +7 -6
  201. package/lib/RowExpandEditor/checkbox-editor/index.js +7 -6
  202. package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +5 -4
  203. package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +10 -8
  204. package/lib/RowExpandEditor/collaborator-editor/index.js +7 -6
  205. package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +33 -22
  206. package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +40 -26
  207. package/lib/RowExpandEditor/date-editor/index.js +7 -6
  208. package/lib/RowExpandEditor/date-editor/mb-editor.js +18 -12
  209. package/lib/RowExpandEditor/date-editor/pc-editor.js +20 -15
  210. package/lib/RowExpandEditor/department-editor/index.js +7 -6
  211. package/lib/RowExpandEditor/department-editor/mb-editor.js +11 -16
  212. package/lib/RowExpandEditor/department-editor/pc-editor.js +14 -19
  213. package/lib/RowExpandEditor/digital-sign-editor/index.js +7 -6
  214. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +38 -24
  215. package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +39 -25
  216. package/lib/RowExpandEditor/duration-editor/index.js +7 -6
  217. package/lib/RowExpandEditor/duration-editor/mb-editor.js +17 -10
  218. package/lib/RowExpandEditor/duration-editor/pc-editor.js +19 -13
  219. package/lib/RowExpandEditor/email-editor/index.js +7 -6
  220. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +20 -10
  221. package/lib/RowExpandEditor/email-editor/pc-editor/index.js +25 -14
  222. package/lib/RowExpandEditor/file-editor/index.js +7 -6
  223. package/lib/RowExpandEditor/file-editor/mb-editor/index.js +31 -18
  224. package/lib/RowExpandEditor/file-editor/pc-editor/index.js +23 -16
  225. package/lib/RowExpandEditor/geolocation-editor/index.js +7 -6
  226. package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +29 -17
  227. package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +26 -13
  228. package/lib/RowExpandEditor/image-editor/index.js +7 -6
  229. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +26 -16
  230. package/lib/RowExpandEditor/image-editor/pc-editor/index.js +24 -14
  231. package/lib/RowExpandEditor/index.js +16 -11
  232. package/lib/RowExpandEditor/long-text-editor/index.js +7 -6
  233. package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +18 -17
  234. package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +16 -10
  235. package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +23 -16
  236. package/lib/RowExpandEditor/multiple-select-editor/index.js +7 -6
  237. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +20 -12
  238. package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +38 -27
  239. package/lib/RowExpandEditor/number-editor/index.js +7 -6
  240. package/lib/RowExpandEditor/number-editor/mb-editor/index.js +14 -8
  241. package/lib/RowExpandEditor/number-editor/pc-editor.js +20 -13
  242. package/lib/RowExpandEditor/rate-editor/index.js +7 -6
  243. package/lib/RowExpandEditor/rate-editor/mb-editor.js +26 -13
  244. package/lib/RowExpandEditor/rate-editor/pc-editor.js +41 -25
  245. package/lib/RowExpandEditor/single-select-editor/index.js +7 -6
  246. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +32 -21
  247. package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +37 -25
  248. package/lib/RowExpandEditor/text-editor/index.js +7 -6
  249. package/lib/RowExpandEditor/text-editor/mb-editor/index.js +5 -4
  250. package/lib/RowExpandEditor/text-editor/pc-editor/index.js +26 -15
  251. package/lib/RowExpandEditor/url-editor/index.js +7 -6
  252. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +15 -7
  253. package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -11
  254. package/lib/RowExpandFormatter/department-formatter/index.js +6 -3
  255. package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +4 -2
  256. package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +4 -2
  257. package/lib/RowExpandFormatter/email-formatter/index.js +8 -5
  258. package/lib/RowExpandFormatter/file-formatter/index.js +9 -8
  259. package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +14 -12
  260. package/lib/RowExpandFormatter/formula-formatter/index.js +51 -30
  261. package/lib/RowExpandFormatter/image-formatter/index.js +11 -9
  262. package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +10 -9
  263. package/lib/RowExpandFormatter/index.js +52 -34
  264. package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +15 -9
  265. package/lib/RowExpandFormatter/link-formatter/index.js +25 -17
  266. package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +5 -3
  267. package/lib/RowExpandFormatter/rate-formatter/index.js +14 -13
  268. package/lib/RowExpandFormatter/text/index.js +5 -4
  269. package/lib/RowExpandFormatter/url-formatter/index.js +9 -6
  270. package/lib/RowExpandView/body/index.js +43 -32
  271. package/lib/RowExpandView/column-content/index.js +7 -3
  272. package/lib/RowExpandView/index.js +52 -53
  273. package/lib/SelectItem/index.js +7 -5
  274. package/lib/SelectOptionGroup/index.js +40 -30
  275. package/lib/SelectedDepartments/index.js +12 -10
  276. package/lib/SimpleLongTextFormatter/index.js +18 -12
  277. package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +4 -3
  278. package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +21 -12
  279. package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +4 -3
  280. package/lib/SingleSelectEditor/index.js +7 -7
  281. package/lib/SingleSelectFormatter/index.js +9 -8
  282. package/lib/TabBar/Tab.js +26 -24
  283. package/lib/TabBar/index.js +28 -24
  284. package/lib/Tabs/index.js +13 -10
  285. package/lib/TextEditor/index.js +23 -14
  286. package/lib/TextFormatter/index.js +4 -3
  287. package/lib/TextareaItem/index.js +53 -48
  288. package/lib/Toast/index.js +9 -8
  289. package/lib/UrlFormatter/index.js +4 -3
  290. package/lib/common/editor-base.js +12 -7
  291. package/lib/formatterConfig/index.js +3 -3
  292. package/lib/hooks/common-hooks.js +4 -2
  293. package/lib/select-editor/index.js +16 -13
  294. package/lib/select-editor/mb-editor/index.js +28 -17
  295. package/lib/select-editor/pc-editor/index.js +47 -32
  296. package/lib/toaster/alert.js +8 -7
  297. package/lib/toaster/toast.js +4 -3
  298. package/lib/toaster/toastManager.js +13 -13
  299. package/lib/toaster/toaster.js +12 -9
  300. package/lib/utils/cell.js +11 -8
  301. package/lib/utils/class.js +3 -3
  302. package/lib/utils/column-utils.js +14 -8
  303. package/lib/utils/departments.js +6 -5
  304. package/lib/utils/getLocale.js +11 -5
  305. package/lib/utils/object-utils.js +5 -4
  306. package/lib/utils/url.js +29 -22
  307. package/lib/utils/utils.js +6 -2
  308. package/package.json +2 -2
@@ -9,7 +9,9 @@ var _react = _interopRequireDefault(require("react"));
9
9
  require("./index.css");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  const Options = _ref => {
12
- let children = _ref.children;
12
+ let {
13
+ children
14
+ } = _ref;
13
15
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
14
16
  className: "dtable-ui-mobile-selector-options",
15
17
  children: children
@@ -10,9 +10,11 @@ var _DTableSearchInput = _interopRequireDefault(require("../../DTableSearchInput
10
10
  require("./index.css");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  const Search = _ref => {
13
- let value = _ref.value,
14
- placeholder = _ref.placeholder,
15
- onChange = _ref.onChange;
13
+ let {
14
+ value,
15
+ placeholder,
16
+ onChange
17
+ } = _ref;
16
18
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
17
19
  className: "dtable-ui-mobile-selector-search",
18
20
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
@@ -12,10 +12,11 @@ var _lang = require("../lang");
12
12
  require("./index.css");
13
13
  var _jsxRuntime = require("react/jsx-runtime");
14
14
  const MobileUpload = _ref => {
15
- let _ref$type = _ref.type,
16
- type = _ref$type === void 0 ? 'file' : _ref$type,
17
- onChange = _ref.onChange,
18
- onClose = _ref.onClose;
15
+ let {
16
+ type = 'file',
17
+ onChange,
18
+ onClose
19
+ } = _ref;
19
20
  const actionSheet = (0, _react.useRef)(_ActionSheet.default);
20
21
  const imageRef = (0, _react.useRef)(null);
21
22
  const fileRef = (0, _react.useRef)(null);
@@ -59,7 +59,7 @@ function alert(title, message) {
59
59
  if (!/iPhone|iPod|iPad/i.test(navigator.userAgent)) {
60
60
  return;
61
61
  }
62
- const pNode = (0, _closest.default)(e.target, ".".concat(prefixCls, "-footer"));
62
+ const pNode = (0, _closest.default)(e.target, `.${prefixCls}-footer`);
63
63
  if (!pNode) {
64
64
  e.preventDefault();
65
65
  }
@@ -78,7 +78,7 @@ function alert(title, message) {
78
78
  onTouchStart: onWrapTouchStart
79
79
  },
80
80
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
81
- className: "".concat(prefixCls, "-alert-content"),
81
+ className: `${prefixCls}-alert-content`,
82
82
  children: message
83
83
  })
84
84
  }));
@@ -1,19 +1,16 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
3
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = exports.ModalComponent = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
9
  var _classnames = _interopRequireDefault(require("classnames"));
12
10
  var React = _interopRequireWildcard(require("react"));
13
11
  var _rmcDialog = _interopRequireDefault(require("rmc-dialog"));
14
12
  var _rmcFeedback = _interopRequireDefault(require("rmc-feedback"));
15
13
  var _jsxRuntime = require("react/jsx-runtime");
16
- const _excluded = ["prefixCls", "className", "wrapClassName", "transitionName", "maskTransitionName", "style", "platform", "footer", "operation", "animated", "transparent", "popup", "animationType"];
17
14
  class ModalComponent extends React.Component {}
18
15
  exports.ModalComponent = ModalComponent;
19
16
  class Modal extends ModalComponent {
@@ -39,9 +36,9 @@ class Modal extends ModalComponent {
39
36
  }
40
37
  };
41
38
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcFeedback.default, {
42
- activeClassName: "".concat(prefixCls, "-button-active"),
39
+ activeClassName: `${prefixCls}-button-active`,
43
40
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
44
- className: "".concat(prefixCls, "-button"),
41
+ className: `${prefixCls}-button`,
45
42
  role: "button",
46
43
  style: buttonStyle,
47
44
  onClick: onClickFn,
@@ -50,23 +47,23 @@ class Modal extends ModalComponent {
50
47
  }, i);
51
48
  }
52
49
  render() {
53
- const _this$props = this.props,
54
- prefixCls = _this$props.prefixCls,
55
- className = _this$props.className,
56
- wrapClassName = _this$props.wrapClassName,
57
- transitionName = _this$props.transitionName,
58
- maskTransitionName = _this$props.maskTransitionName,
59
- style = _this$props.style,
60
- platform = _this$props.platform,
61
- _this$props$footer = _this$props.footer,
62
- footer = _this$props$footer === void 0 ? [] : _this$props$footer,
63
- operation = _this$props.operation,
64
- animated = _this$props.animated,
65
- transparent = _this$props.transparent,
66
- popup = _this$props.popup,
67
- animationType = _this$props.animationType,
68
- restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
69
- const btnGroupClass = (0, _classnames.default)("".concat(prefixCls, "-button-group-").concat(footer.length === 2 && !operation ? 'h' : 'v'), "".concat(prefixCls, "-button-group-").concat(operation ? 'operation' : 'normal'));
50
+ const {
51
+ prefixCls,
52
+ className,
53
+ wrapClassName,
54
+ transitionName,
55
+ maskTransitionName,
56
+ style,
57
+ platform,
58
+ footer = [],
59
+ operation,
60
+ animated,
61
+ transparent,
62
+ popup,
63
+ animationType,
64
+ ...restProps
65
+ } = this.props;
66
+ const btnGroupClass = (0, _classnames.default)(`${prefixCls}-button-group-${footer.length === 2 && !operation ? 'h' : 'v'}`, `${prefixCls}-button-group-${operation ? 'operation' : 'normal'}`);
70
67
  const footerDom = footer.length ? /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
71
68
  className: btnGroupClass,
72
69
  role: "group",
@@ -89,15 +86,16 @@ class Modal extends ModalComponent {
89
86
  }
90
87
  }
91
88
  const wrapCls = (0, _classnames.default)(wrapClassName, {
92
- ["".concat(prefixCls, "-wrap-popup")]: popup
89
+ [`${prefixCls}-wrap-popup`]: popup
93
90
  });
94
91
  const cls = (0, _classnames.default)(className, {
95
- ["".concat(prefixCls, "-transparent")]: transparent,
96
- ["".concat(prefixCls, "-popup")]: popup,
97
- ["".concat(prefixCls, "-popup-").concat(animationType)]: popup && animationType,
98
- ["".concat(prefixCls, "-android")]: platform === 'android'
92
+ [`${prefixCls}-transparent`]: transparent,
93
+ [`${prefixCls}-popup`]: popup,
94
+ [`${prefixCls}-popup-${animationType}`]: popup && animationType,
95
+ [`${prefixCls}-android`]: platform === 'android'
99
96
  });
100
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcDialog.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, restProps), {}, {
97
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcDialog.default, {
98
+ ...restProps,
101
99
  prefixCls: prefixCls,
102
100
  className: cls,
103
101
  wrapClassName: wrapCls,
@@ -105,7 +103,7 @@ class Modal extends ModalComponent {
105
103
  maskTransitionName: maskTransitionName || maskTransName,
106
104
  style: style,
107
105
  footer: footerDom
108
- }));
106
+ });
109
107
  }
110
108
  }
111
109
  exports.default = Modal;
@@ -17,7 +17,7 @@ function prompt(title, message, callbackOrActions) {
17
17
  let placeholders = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : ['', ''];
18
18
  let platform = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : 'ios';
19
19
  let closed = false;
20
- defaultValue = typeof defaultValue === 'string' ? defaultValue : typeof defaultValue === 'number' ? "".concat(defaultValue) : '';
20
+ defaultValue = typeof defaultValue === 'string' ? defaultValue : typeof defaultValue === 'number' ? `${defaultValue}` : '';
21
21
  if (!callbackOrActions) {
22
22
  // console.log('Must specify callbackOrActions');
23
23
  return {
@@ -61,9 +61,9 @@ function prompt(title, message, callbackOrActions) {
61
61
  switch (type) {
62
62
  case 'login-password':
63
63
  inputDom = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
64
- className: "".concat(prefixCls, "-input-container"),
64
+ className: `${prefixCls}-input-container`,
65
65
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
66
- className: "".concat(prefixCls, "-input"),
66
+ className: `${prefixCls}-input`,
67
67
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
68
68
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
69
69
  type: "text",
@@ -76,7 +76,7 @@ function prompt(title, message, callbackOrActions) {
76
76
  })
77
77
  })
78
78
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
79
- className: "".concat(prefixCls, "-input"),
79
+ className: `${prefixCls}-input`,
80
80
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
81
81
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
82
82
  type: "password",
@@ -92,9 +92,9 @@ function prompt(title, message, callbackOrActions) {
92
92
  break;
93
93
  case 'secure-text':
94
94
  inputDom = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
95
- className: "".concat(prefixCls, "-input-container"),
95
+ className: `${prefixCls}-input-container`,
96
96
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
97
- className: "".concat(prefixCls, "-input"),
97
+ className: `${prefixCls}-input`,
98
98
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
99
99
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
100
100
  type: "password",
@@ -112,9 +112,9 @@ function prompt(title, message, callbackOrActions) {
112
112
  case 'default':
113
113
  default:
114
114
  inputDom = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
115
- className: "".concat(prefixCls, "-input-container"),
115
+ className: `${prefixCls}-input-container`,
116
116
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
117
- className: "".concat(prefixCls, "-input"),
117
+ className: `${prefixCls}-input`,
118
118
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("label", {
119
119
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
120
120
  type: "text",
@@ -147,10 +147,10 @@ function prompt(title, message, callbackOrActions) {
147
147
  if (typeof callback !== 'function') {
148
148
  return;
149
149
  }
150
- const _data$text = data.text,
151
- text = _data$text === void 0 ? '' : _data$text,
152
- _data$password = data.password,
153
- password = _data$password === void 0 ? '' : _data$password;
150
+ const {
151
+ text = '',
152
+ password = ''
153
+ } = data;
154
154
  const callbackArgs = type === 'login-password' ? [text, password] : type === 'secure-text' ? [password] : [text];
155
155
  return callback(...callbackArgs);
156
156
  }
@@ -200,7 +200,7 @@ function prompt(title, message, callbackOrActions) {
200
200
  if (!/iPhone|iPod|iPad/i.test(navigator.userAgent)) {
201
201
  return;
202
202
  }
203
- const pNode = (0, _closest.default)(e.target, ".".concat(prefixCls, "-content"));
203
+ const pNode = (0, _closest.default)(e.target, `.${prefixCls}-content`);
204
204
  if (!pNode) {
205
205
  e.preventDefault();
206
206
  }
@@ -220,7 +220,7 @@ function prompt(title, message, callbackOrActions) {
220
220
  onTouchStart: onWrapTouchStart
221
221
  },
222
222
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
223
- className: "".concat(prefixCls, "-propmt-content"),
223
+ className: `${prefixCls}-propmt-content`,
224
224
  children: content
225
225
  })
226
226
  }));
@@ -6,19 +6,19 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
9
  var _react = _interopRequireWildcard(require("react"));
12
10
  var _selectEditor = _interopRequireDefault(require("../select-editor"));
13
11
  var _jsxRuntime = require("react/jsx-runtime");
14
- const _excluded = ["value"];
15
12
  const MultipleSelectEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
16
- let oldValue = _ref.value,
17
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
13
+ let {
14
+ value: oldValue,
15
+ ...props
16
+ } = _ref;
18
17
  const value = oldValue ? Array.isArray(oldValue) ? oldValue : [oldValue] : [];
19
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
18
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectEditor.default, {
19
+ ...props,
20
20
  value: value,
21
21
  ref: ref
22
- }));
22
+ });
23
23
  });
24
24
  var _default = exports.default = MultipleSelectEditor;
@@ -14,23 +14,25 @@ class MultipleSelectFormatter extends _react.default.PureComponent {
14
14
  constructor() {
15
15
  super(...arguments);
16
16
  this.getOptions = () => {
17
- const _this$props = this.props,
18
- value = _this$props.value,
19
- options = _this$props.options;
17
+ const {
18
+ value,
19
+ options
20
+ } = this.props;
20
21
  if (!Array.isArray(value) || !Array.isArray(options)) return [];
21
22
  let selectedOptions = options.filter(option => value.includes(option.id) || value.includes(option.name));
22
23
  if (selectedOptions.length === 0) return [];
23
24
  return selectedOptions.map(option => {
24
25
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.default, {
25
26
  option: option
26
- }, "multiple-".concat(option.id));
27
+ }, `multiple-${option.id}`);
27
28
  });
28
29
  };
29
30
  }
30
31
  render() {
31
- let _this$props2 = this.props,
32
- value = _this$props2.value,
33
- containerClassName = _this$props2.containerClassName;
32
+ let {
33
+ value,
34
+ containerClassName
35
+ } = this.props;
34
36
  let classname = (0, _classnames.default)('dtable-ui cell-formatter-container multiple-select-formatter', containerClassName);
35
37
  if (!value || Array.isArray(value) && value.length === 0) {
36
38
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -43,10 +43,11 @@ class NotificationPopover extends _react.default.Component {
43
43
  document.removeEventListener('mousedown', this.onMouseDown);
44
44
  }
45
45
  render() {
46
- const _this$props = this.props,
47
- headerText = _this$props.headerText,
48
- bodyText = _this$props.bodyText,
49
- footerText = _this$props.footerText;
46
+ const {
47
+ headerText,
48
+ bodyText,
49
+ footerText
50
+ } = this.props;
50
51
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
51
52
  className: "notification-wrapper",
52
53
  target: "notification-popover",
@@ -14,7 +14,9 @@ class NumberEditor extends _react.default.Component {
14
14
  constructor(props) {
15
15
  super(props);
16
16
  this.onChange = event => {
17
- const data = this.props.column.data; // data maybe 'null'
17
+ const {
18
+ data
19
+ } = this.props.column; // data maybe 'null'
18
20
  const format = data && data.format ? data.format : _dtableUtils.DEFAULT_NUMBER_FORMAT;
19
21
  let currency_symbol = null;
20
22
  if (data && data.format === 'custom_currency') {
@@ -33,10 +35,11 @@ class NumberEditor extends _react.default.Component {
33
35
  });
34
36
  };
35
37
  this.onKeyDown = event => {
36
- let _event$currentTarget = event.currentTarget,
37
- selectionStart = _event$currentTarget.selectionStart,
38
- selectionEnd = _event$currentTarget.selectionEnd,
39
- value = _event$currentTarget.value;
38
+ let {
39
+ selectionStart,
40
+ selectionEnd,
41
+ value
42
+ } = event.currentTarget;
40
43
  if (event.keyCode === _constants.KeyCodes.Enter || event.keyCode === _constants.KeyCodes.Esc) {
41
44
  event.preventDefault();
42
45
  this.onBlur();
@@ -47,7 +50,9 @@ class NumberEditor extends _react.default.Component {
47
50
  };
48
51
  this.getValue = () => {
49
52
  const value = this.getInputNode().value;
50
- const column = this.props.column;
53
+ const {
54
+ column
55
+ } = this.props;
51
56
  return (0, _dtableUtils.formatStringToNumber)(value, column.data);
52
57
  };
53
58
  this.getInputNode = () => {
@@ -78,18 +83,22 @@ class NumberEditor extends _react.default.Component {
78
83
  if (this.props.isInModal) {
79
84
  this.input.focus();
80
85
  }
81
- const _this$props$column$da = this.props.column.data,
82
- data = _this$props$column$da === void 0 ? {} : _this$props$column$da;
83
- let value = this.state.value;
86
+ const {
87
+ data = {}
88
+ } = this.props.column;
89
+ let {
90
+ value
91
+ } = this.state;
84
92
  value = (0, _dtableUtils.getNumberDisplayString)(value, data) || '';
85
93
  this.setState({
86
94
  value
87
95
  });
88
96
  }
89
97
  render() {
90
- const _this$props = this.props,
91
- isInModal = _this$props.isInModal,
92
- readOnly = _this$props.readOnly;
98
+ const {
99
+ isInModal,
100
+ readOnly
101
+ } = this.props;
93
102
  let style = isInModal ? {
94
103
  textAlign: 'left',
95
104
  width: '320px'
@@ -12,10 +12,11 @@ require("./index.css");
12
12
  var _jsxRuntime = require("react/jsx-runtime");
13
13
  class NumberFormatter extends _react.default.Component {
14
14
  render() {
15
- let _this$props = this.props,
16
- number = _this$props.value,
17
- data = _this$props.data,
18
- containerClassName = _this$props.containerClassName;
15
+ let {
16
+ value: number,
17
+ data,
18
+ containerClassName
19
+ } = this.props;
19
20
  let classname = (0, _classnames.default)('dtable-ui cell-formatter-container number-formatter', containerClassName);
20
21
  if (number || number === 0) {
21
22
  number = (0, _dtableUtils.getNumberDisplayString)(number, data);
@@ -9,11 +9,13 @@ var _classnames = _interopRequireDefault(require("classnames"));
9
9
  var _DTableIcon = _interopRequireDefault(require("../DTableIcon"));
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  const PhoneNumberLink = _ref => {
12
- let phoneNumber = _ref.phoneNumber,
13
- className = _ref.className;
12
+ let {
13
+ phoneNumber,
14
+ className
15
+ } = _ref;
14
16
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
15
17
  className: (0, _classnames.default)(className),
16
- href: "tel:".concat(typeof phoneNumber === 'string' ? phoneNumber.trim() : ''),
18
+ href: `tel:${typeof phoneNumber === 'string' ? phoneNumber.trim() : ''}`,
17
19
  tabIndex: 0,
18
20
  "aria-label": "",
19
21
  target: "_blank",
@@ -1,14 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
3
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
9
  exports.getDefaultProps = getDefaultProps;
10
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
11
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
12
10
  var _arrayTreeFilter = _interopRequireDefault(require("array-tree-filter"));
13
11
  var React = _interopRequireWildcard(require("react"));
14
12
  var _Cascader = _interopRequireDefault(require("rmc-cascader/lib/Cascader"));
@@ -17,8 +15,8 @@ var _MultiPicker = _interopRequireDefault(require("rmc-picker/lib/MultiPicker"))
17
15
  var _Picker = _interopRequireDefault(require("rmc-picker/lib/Picker"));
18
16
  var _getLocale = require("../utils/getLocale");
19
17
  var _jsxRuntime = require("react/jsx-runtime");
20
- const _excluded = ["children", "value", "popupPrefixCls", "itemStyle", "indicatorStyle", "okText", "dismissText", "extra", "cascade", "prefixCls", "pickerPrefixCls", "data", "cols", "onOk"];
21
18
  /* tslint:disable:jsx-no-multiline-js */
19
+
22
20
  function getDefaultProps() {
23
21
  const defaultFormat = values => {
24
22
  // label is JSX.Element or other
@@ -44,7 +42,9 @@ class AbstractPicker extends React.Component {
44
42
  this.getSel = () => {
45
43
  const value = this.props.value || [];
46
44
  let treeChildren;
47
- const data = this.props.data;
45
+ const {
46
+ data
47
+ } = this.props;
48
48
  if (this.props.cascade) {
49
49
  treeChildren = (0, _arrayTreeFilter.default)(data, (c, level) => {
50
50
  return c.value === value[level];
@@ -59,11 +59,12 @@ class AbstractPicker extends React.Component {
59
59
  }));
60
60
  };
61
61
  this.getPickerCol = () => {
62
- const _this$props = this.props,
63
- data = _this$props.data,
64
- pickerPrefixCls = _this$props.pickerPrefixCls,
65
- itemStyle = _this$props.itemStyle,
66
- indicatorStyle = _this$props.indicatorStyle;
62
+ const {
63
+ data,
64
+ pickerPrefixCls,
65
+ itemStyle,
66
+ indicatorStyle
67
+ } = this.props;
67
68
  return data.map((col, index) => {
68
69
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Picker.default, {
69
70
  prefixCls: pickerPrefixCls,
@@ -125,23 +126,23 @@ class AbstractPicker extends React.Component {
125
126
  };
126
127
  }
127
128
  render() {
128
- const _this$props2 = this.props,
129
- children = _this$props2.children,
130
- _this$props2$value = _this$props2.value,
131
- value = _this$props2$value === void 0 ? [] : _this$props2$value,
132
- popupPrefixCls = _this$props2.popupPrefixCls,
133
- itemStyle = _this$props2.itemStyle,
134
- indicatorStyle = _this$props2.indicatorStyle,
135
- okText = _this$props2.okText,
136
- dismissText = _this$props2.dismissText,
137
- extra = _this$props2.extra,
138
- cascade = _this$props2.cascade,
139
- prefixCls = _this$props2.prefixCls,
140
- pickerPrefixCls = _this$props2.pickerPrefixCls,
141
- data = _this$props2.data,
142
- cols = _this$props2.cols,
143
- onOk = _this$props2.onOk,
144
- restProps = (0, _objectWithoutProperties2.default)(_this$props2, _excluded);
129
+ const {
130
+ children,
131
+ value = [],
132
+ popupPrefixCls,
133
+ itemStyle,
134
+ indicatorStyle,
135
+ okText,
136
+ dismissText,
137
+ extra,
138
+ cascade,
139
+ prefixCls,
140
+ pickerPrefixCls,
141
+ data,
142
+ cols,
143
+ onOk,
144
+ ...restProps
145
+ } = this.props;
145
146
 
146
147
  // tslint:disable-next-line:variable-name
147
148
  const _locale = (0, _getLocale.getComponentLocale)(this.props, this.context, 'Picker', () => require('./locale/zh_CN'));
@@ -173,20 +174,21 @@ class AbstractPicker extends React.Component {
173
174
  pickerValueChangeProp: 'onValueChange'
174
175
  };
175
176
  }
176
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Popup.default, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({
177
- cascader: cascader
178
- }, this.popupProps), restProps), {}, {
177
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Popup.default, {
178
+ cascader: cascader,
179
+ ...this.popupProps,
180
+ ...restProps,
179
181
  prefixCls: popupPrefixCls,
180
182
  value: value,
181
183
  dismissText: dismissText || _locale.dismissText,
182
- okText: okText || _locale.okText
183
- }, popupMoreProps), {}, {
184
+ okText: okText || _locale.okText,
185
+ ...popupMoreProps,
184
186
  ref: this.fixOnOk,
185
187
  onVisibleChange: this.onVisibleChange,
186
188
  children: children && typeof children !== 'string' && /*#__PURE__*/React.isValidElement(children) && /*#__PURE__*/React.cloneElement(children, {
187
189
  extra: this.getSel() || extra || _locale.extra
188
190
  })
189
- }));
191
+ });
190
192
  }
191
193
  }
192
194
  exports.default = AbstractPicker;
@@ -6,14 +6,11 @@ Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
11
9
  var React = _interopRequireWildcard(require("react"));
12
10
  var _rmcTooltip = _interopRequireDefault(require("rmc-tooltip"));
13
11
  var _item = _interopRequireDefault(require("./item"));
14
12
  require("./style/index.css");
15
13
  var _jsxRuntime = require("react/jsx-runtime");
16
- const _excluded = ["overlay", "onSelect"];
17
14
  function recursiveCloneChildren(children) {
18
15
  let cb = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : (ch, _) => ch;
19
16
  return React.Children.map(children, (child, index) => {
@@ -26,11 +23,11 @@ function recursiveCloneChildren(children) {
26
23
  }
27
24
  class Popover extends React.Component {
28
25
  render() {
29
- const _this$props = this.props,
30
- overlay = _this$props.overlay,
31
- _this$props$onSelect = _this$props.onSelect,
32
- onSelect = _this$props$onSelect === void 0 ? () => {} : _this$props$onSelect,
33
- restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
26
+ const {
27
+ overlay,
28
+ onSelect = () => {},
29
+ ...restProps
30
+ } = this.props;
34
31
  const overlayNode = recursiveCloneChildren(overlay, (child, index) => {
35
32
  const extraProps = {
36
33
  firstItem: false
@@ -45,12 +42,13 @@ class Popover extends React.Component {
45
42
  return child;
46
43
  });
47
44
  const wrapperNode = /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
48
- className: "".concat(this.props.prefixCls, "-inner-wrapper"),
45
+ className: `${this.props.prefixCls}-inner-wrapper`,
49
46
  children: overlayNode
50
47
  });
51
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcTooltip.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, restProps), {}, {
48
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_rmcTooltip.default, {
49
+ ...restProps,
52
50
  overlay: wrapperNode
53
- }));
51
+ });
54
52
  }
55
53
  }
56
54
  exports.default = Popover;