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
@@ -1,13 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
5
  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 _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
11
9
  var _react = _interopRequireWildcard(require("react"));
12
10
  var _reactstrap = require("reactstrap");
13
11
  var _reactColor = require("react-color");
@@ -30,46 +28,25 @@ const RGB_COLORS_MAP = {
30
28
  };
31
29
  const LOCAL_STORAGE_KEY = 'dtable-color-picker';
32
30
  const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
33
- let onToggle = _ref.onToggle,
34
- popoverStyle = _ref.popoverStyle,
35
- _ref$color = _ref.color,
36
- color = _ref$color === void 0 ? '#ffffff' : _ref$color,
37
- defaultColors = _ref.defaultColors,
38
- useProtal = _ref.useProtal,
39
- target = _ref.target,
40
- scrollContainerId = _ref.scrollContainerId,
41
- _ref$throttleDelay = _ref.throttleDelay,
42
- throttleDelay = _ref$throttleDelay === void 0 ? 20 : _ref$throttleDelay,
43
- onSubmit = _ref.onSubmit;
31
+ let {
32
+ onToggle,
33
+ popoverStyle,
34
+ color = '#ffffff',
35
+ defaultColors,
36
+ useProtal,
37
+ target,
38
+ scrollContainerId,
39
+ throttleDelay = 20,
40
+ onSubmit
41
+ } = _ref;
44
42
  const initialRgbaColor = (0, _utils.hexToRgba)(color);
45
- const _useState = (0, _react.useState)(initialRgbaColor),
46
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
47
- value = _useState2[0],
48
- setValue = _useState2[1];
49
- const _useState3 = (0, _react.useState)((0, _utils.getInitialHexVal)(color)),
50
- _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
51
- hexVal = _useState4[0],
52
- setHexVal = _useState4[1];
53
- const _useState5 = (0, _react.useState)((0, _utils.toPercentage)(initialRgbaColor.a)),
54
- _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
55
- alphaVal = _useState6[0],
56
- setAlphaVal = _useState6[1];
57
- const _useState7 = (0, _react.useState)(initialRgbaColor.r),
58
- _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
59
- redVal = _useState8[0],
60
- setRedVal = _useState8[1];
61
- const _useState9 = (0, _react.useState)(initialRgbaColor.g),
62
- _useState0 = (0, _slicedToArray2.default)(_useState9, 2),
63
- greenVal = _useState0[0],
64
- setGreenVal = _useState0[1];
65
- const _useState1 = (0, _react.useState)(initialRgbaColor.b),
66
- _useState10 = (0, _slicedToArray2.default)(_useState1, 2),
67
- blueVal = _useState10[0],
68
- setBlueVal = _useState10[1];
69
- const _useState11 = (0, _react.useState)(COLOR_PICKER_MODE.HEX),
70
- _useState12 = (0, _slicedToArray2.default)(_useState11, 2),
71
- colorMode = _useState12[0],
72
- setColorMode = _useState12[1]; // hex or rgb
43
+ const [value, setValue] = (0, _react.useState)(initialRgbaColor);
44
+ const [hexVal, setHexVal] = (0, _react.useState)((0, _utils.getInitialHexVal)(color));
45
+ const [alphaVal, setAlphaVal] = (0, _react.useState)((0, _utils.toPercentage)(initialRgbaColor.a));
46
+ const [redVal, setRedVal] = (0, _react.useState)(initialRgbaColor.r);
47
+ const [greenVal, setGreenVal] = (0, _react.useState)(initialRgbaColor.g);
48
+ const [blueVal, setBlueVal] = (0, _react.useState)(initialRgbaColor.b);
49
+ const [colorMode, setColorMode] = (0, _react.useState)(COLOR_PICKER_MODE.HEX); // hex or rgb
73
50
  const colorPickerRef = (0, _react.useRef)(null);
74
51
  let currentUsedColors = [];
75
52
  const currentUsedColorsStr = window.localStorage.getItem(LOCAL_STORAGE_KEY);
@@ -92,10 +69,12 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
92
69
  rgba.a = Math.round(rgba.a * 100) / 100;
93
70
  const transferedHex = (0, _utils.rgbaToHex)(rgba);
94
71
  const hexVal = transferedHex.substring(1, 7);
95
- const r = rgba.r,
96
- g = rgba.g,
97
- b = rgba.b,
98
- a = rgba.a;
72
+ const {
73
+ r,
74
+ g,
75
+ b,
76
+ a
77
+ } = rgba;
99
78
  setAlphaVal((0, _utils.toPercentage)(a));
100
79
  updateValue(rgba);
101
80
  if (colorMode === COLOR_PICKER_MODE.HEX) {
@@ -111,9 +90,11 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
111
90
  if (colorMode === COLOR_PICKER_MODE.HEX) {
112
91
  newMode = COLOR_PICKER_MODE.RGBA;
113
92
  const rgba = (0, _utils.hexToRgba)(color);
114
- const r = rgba.r,
115
- g = rgba.g,
116
- b = rgba.b;
93
+ const {
94
+ r,
95
+ g,
96
+ b
97
+ } = rgba;
117
98
  setRedVal(r);
118
99
  setGreenVal(g);
119
100
  setBlueVal(b);
@@ -140,10 +121,11 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
140
121
  newHexVal = newHexVal.split('').map(char => char + char).join('');
141
122
  }
142
123
  setHexVal(newHexVal);
143
- const _hexToRgba = (0, _utils.hexToRgba)(newHexVal),
144
- r = _hexToRgba.r,
145
- g = _hexToRgba.g,
146
- b = _hexToRgba.b;
124
+ const {
125
+ r,
126
+ g,
127
+ b
128
+ } = (0, _utils.hexToRgba)(newHexVal);
147
129
  const newValue = {
148
130
  r,
149
131
  g,
@@ -197,9 +179,10 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
197
179
  setSpecColor(value[specColor]);
198
180
  return;
199
181
  }
200
- const newValue = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, value), {}, {
182
+ const newValue = {
183
+ ...value,
201
184
  [specColor]: val
202
- });
185
+ };
203
186
  updateValue(newValue);
204
187
  };
205
188
  const updateValue = newValue => {
@@ -212,9 +195,10 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
212
195
  setAlphaVal((0, _utils.toPercentage)(value.a));
213
196
  return;
214
197
  }
215
- const newValue = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, value), {}, {
198
+ const newValue = {
199
+ ...value,
216
200
  a: parseFloat(alphaVal) / 100
217
- });
201
+ };
218
202
  updateValue(newValue);
219
203
  };
220
204
  const onKeyDown = (event, callBack) => {
@@ -226,10 +210,12 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
226
210
  };
227
211
  const onSelectDefaultColor = color => {
228
212
  const rgba = (0, _utils.hexToRgba)(color);
229
- const r = rgba.r,
230
- g = rgba.g,
231
- b = rgba.b,
232
- a = rgba.a;
213
+ const {
214
+ r,
215
+ g,
216
+ b,
217
+ a
218
+ } = rgba;
233
219
  const alphaVal = (0, _utils.toPercentage)(a);
234
220
  if (colorMode === COLOR_PICKER_MODE.RGBA) {
235
221
  setRedVal(r);
@@ -260,18 +246,18 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
260
246
  children: colors.map((color, index) => {
261
247
  const isLight = (0, _utils.isLightColor)(color);
262
248
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
263
- className: "color-item mr-2 ".concat(isLight ? '' : 'dark'),
249
+ className: `color-item mr-2 ${isLight ? '' : 'dark'}`,
264
250
  onClick: () => onSelectDefaultColor(color),
265
251
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
266
252
  className: "colorinput-color d-flex align-items-center justify-content-center",
267
253
  style: {
268
254
  backgroundColor: color
269
255
  },
270
- children: color === "".concat((0, _utils.rgbaToHex)(value)) && alphaVal === 100 && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
256
+ children: color === `${(0, _utils.rgbaToHex)(value)}` && alphaVal === 100 && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
271
257
  className: "dtable-icon-color-check dtable-font dtable-icon-check-mark"
272
258
  })
273
259
  })
274
- }, "default-color-".concat(index));
260
+ }, `default-color-${index}`);
275
261
  })
276
262
  })]
277
263
  });
@@ -285,7 +271,7 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
285
271
  color: value,
286
272
  onChange: onChangeChromePicker
287
273
  }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
288
- className: "color-setting d-flex align-items-center ".concat(colorMode),
274
+ className: `color-setting d-flex align-items-center ${colorMode}`,
289
275
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
290
276
  className: "mode-btn d-flex",
291
277
  onClick: onChangeMode,
@@ -359,7 +345,7 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
359
345
  children: currentUsedColors.map((color, index) => {
360
346
  const isLight = (0, _utils.isLightColor)(color);
361
347
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
362
- className: "color-item mr-2 ".concat(isLight ? '' : 'dark'),
348
+ className: `color-item mr-2 ${isLight ? '' : 'dark'}`,
363
349
  onClick: () => onSelectDefaultColor(color),
364
350
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
365
351
  className: "colorinput-color d-flex align-items-center justify-content-center",
@@ -367,7 +353,7 @@ const DTableColorPicker = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
367
353
  backgroundColor: color
368
354
  }
369
355
  })
370
- }, "default-color-".concat(index));
356
+ }, `default-color-${index}`);
371
357
  })
372
358
  }) : /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
373
359
  className: "blank-placeholder d-flex align-items-center justify-content-center",
@@ -43,16 +43,18 @@ const rgbaToHex = function (color) {
43
43
  let isNeedPrefix = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : true;
44
44
  let isNeedAlpha = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : true;
45
45
  if (hexRegex.test(color)) return color;
46
- const r = color.r,
47
- g = color.g,
48
- b = color.b,
49
- a = color.a;
46
+ const {
47
+ r,
48
+ g,
49
+ b,
50
+ a
51
+ } = color;
50
52
  const toHex = value => {
51
53
  const hex = value.toString(16);
52
54
  return hex.length === 1 ? '0' + hex : hex;
53
55
  };
54
56
  const alpha = a !== undefined && a !== 1 ? toHex(Math.round(a * 255)) : '';
55
- return "".concat(isNeedPrefix ? '#' : '').concat(toHex(r)).concat(toHex(g)).concat(toHex(b)).concat(isNeedAlpha ? alpha : '');
57
+ return `${isNeedPrefix ? '#' : ''}${toHex(r)}${toHex(g)}${toHex(b)}${isNeedAlpha ? alpha : ''}`;
56
58
  };
57
59
  exports.rgbaToHex = rgbaToHex;
58
60
  const isLightColor = color => {
@@ -45,12 +45,13 @@ const COLUMN_DISPLAY_TYPE_ICON_CONFIG = {
45
45
  }
46
46
  };
47
47
  const DTableColumnIcon = _ref => {
48
- let column = _ref.column,
49
- color = _ref.color,
50
- className = _ref.className,
51
- _ref$ariaHidden = _ref.ariaHidden,
52
- ariaHidden = _ref$ariaHidden === void 0 ? false : _ref$ariaHidden,
53
- getSvg = _ref.getSvg;
48
+ let {
49
+ column,
50
+ color,
51
+ className,
52
+ ariaHidden = false,
53
+ getSvg
54
+ } = _ref;
54
55
  const columnType = column === null || column === void 0 ? void 0 : column.type;
55
56
  if (!columnType) return null;
56
57
  const columnDisplayType = (0, _dtableUtils.getColumnDisplayType)(column);
@@ -9,18 +9,20 @@ var _react = _interopRequireDefault(require("react"));
9
9
  require("./index.css");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  function DTableCommonAddTool(_ref) {
12
- let callBack = _ref.callBack,
13
- footerName = _ref.footerName,
14
- className = _ref.className,
15
- addIconClassName = _ref.addIconClassName,
16
- hideIcon = _ref.hideIcon,
17
- style = _ref.style;
12
+ let {
13
+ callBack,
14
+ footerName,
15
+ className,
16
+ addIconClassName,
17
+ hideIcon,
18
+ style
19
+ } = _ref;
18
20
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
19
- className: "dtable-ui add-item-btn ".concat(className ? className : ''),
21
+ className: `dtable-ui add-item-btn ${className ? className : ''}`,
20
22
  style: style,
21
23
  onClick: e => callBack(e),
22
24
  children: [!hideIcon && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
23
- className: "dtable-font dtable-icon-add-table ".concat(addIconClassName || '')
25
+ className: `dtable-font dtable-icon-add-table ${addIconClassName || ''}`
24
26
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
25
27
  className: "add-new-option text-truncate",
26
28
  children: footerName
@@ -10,7 +10,9 @@ require("./index.css");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  // DTableCustomFooter is used in geolocation editor and digital sign editor
12
12
  const DTableCustomFooter = _ref => {
13
- let children = _ref.children;
13
+ let {
14
+ children
15
+ } = _ref;
14
16
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
15
17
  className: "dtable-custom-footer",
16
18
  children: children
@@ -9,6 +9,8 @@ exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
  var _DTableIcon = _interopRequireDefault(require("../DTableIcon"));
12
+ var _lang = require("../lang");
13
+ var _DTableToolTip = _interopRequireDefault(require("../DTableToolTip"));
12
14
  require("./index.css");
13
15
  var _jsxRuntime = require("react/jsx-runtime");
14
16
  class DTableCustomizeSearchInput extends _react.Component {
@@ -23,10 +25,10 @@ class DTableCustomizeSearchInput extends _react.Component {
23
25
  this.timer = null;
24
26
  };
25
27
  this.scheduleSearchChange = searchValue => {
26
- const _this$props = this.props,
27
- onChange = _this$props.onChange,
28
- _this$props$wait = _this$props.wait,
29
- wait = _this$props$wait === void 0 ? 100 : _this$props$wait;
28
+ const {
29
+ onChange,
30
+ wait = 100
31
+ } = this.props;
30
32
  this.timer = setTimeout(() => {
31
33
  this.timer = null;
32
34
  onChange(searchValue.trim());
@@ -47,7 +49,9 @@ class DTableCustomizeSearchInput extends _react.Component {
47
49
  };
48
50
  this.clearSearch = event => {
49
51
  event && event.stopPropagation && event.stopPropagation();
50
- const clearValue = this.props.clearValue;
52
+ const {
53
+ clearValue
54
+ } = this.props;
51
55
  this.clearChangeTimer();
52
56
  this.setState({
53
57
  searchValue: ''
@@ -64,18 +68,28 @@ class DTableCustomizeSearchInput extends _react.Component {
64
68
  }
65
69
  };
66
70
  this.renderClear = () => {
67
- const _this$props2 = this.props,
68
- isClearable = _this$props2.isClearable,
69
- clearClassName = _this$props2.clearClassName;
70
- const searchValue = this.state.searchValue;
71
+ const {
72
+ isClearable,
73
+ clearClassName
74
+ } = this.props;
75
+ const {
76
+ searchValue
77
+ } = this.state;
71
78
  if (!isClearable || !searchValue) return null;
72
- return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
73
- className: (0, _classnames.default)('clear-icon-x', clearClassName),
74
- onClick: this.clearSearch,
75
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
76
- symbol: "close",
77
- color: "var(--bs-icon-color)"
78
- })
79
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
80
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
81
+ className: (0, _classnames.default)('clear-icon-x', clearClassName),
82
+ onClick: this.clearSearch,
83
+ id: "customize-search-clear",
84
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
85
+ symbol: "close",
86
+ color: "var(--bs-icon-color)"
87
+ })
88
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableToolTip.default, {
89
+ placement: "bottom",
90
+ target: "customize-search-clear",
91
+ children: (0, _lang.getLocale)('Clear')
92
+ })]
79
93
  });
80
94
  };
81
95
  this.state = {
@@ -105,16 +119,17 @@ class DTableCustomizeSearchInput extends _react.Component {
105
119
  this.inputRef = null;
106
120
  }
107
121
  render() {
108
- const _this$props3 = this.props,
109
- placeholder = _this$props3.placeholder,
110
- autoFocus = _this$props3.autoFocus,
111
- className = _this$props3.className,
112
- onKeyDown = _this$props3.onKeyDown,
113
- _this$props3$disabled = _this$props3.disabled,
114
- disabled = _this$props3$disabled === void 0 ? false : _this$props3$disabled,
115
- _this$props3$style = _this$props3.style,
116
- style = _this$props3$style === void 0 ? {} : _this$props3$style;
117
- const searchValue = this.state.searchValue;
122
+ const {
123
+ placeholder,
124
+ autoFocus,
125
+ className,
126
+ onKeyDown,
127
+ disabled = false,
128
+ style = {}
129
+ } = this.props;
130
+ const {
131
+ searchValue
132
+ } = this.state;
118
133
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
119
134
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
120
135
  type: "text",
@@ -54,20 +54,24 @@ class DTableCustomizeSelect extends _react.Component {
54
54
  };
55
55
  this.getSelectedOptionTop = () => {
56
56
  if (!this.selector) return 38;
57
- const _this$selector$getBou = this.selector.getBoundingClientRect(),
58
- height = _this$selector$getBou.height;
57
+ const {
58
+ height
59
+ } = this.selector.getBoundingClientRect();
59
60
  return height;
60
61
  };
61
62
  this.getFilterOptions = searchValue => {
62
- const _this$props = this.props,
63
- options = _this$props.options,
64
- searchable = _this$props.searchable;
63
+ const {
64
+ options,
65
+ searchable
66
+ } = this.props;
65
67
  if (!searchable) return options || [];
66
68
  const validSearchVal = searchValue.trim().toLowerCase();
67
69
  if (!validSearchVal) return options || [];
68
70
  return options.filter(option => {
69
- const value = option.value,
70
- name = option.name;
71
+ const {
72
+ value,
73
+ name
74
+ } = option;
71
75
  if (typeof name === 'string') {
72
76
  return name.toLowerCase().indexOf(validSearchVal) > -1;
73
77
  }
@@ -94,18 +98,19 @@ class DTableCustomizeSelect extends _react.Component {
94
98
  document.removeEventListener('mousedown', this.handleDocumentMouseDown, true);
95
99
  }
96
100
  render() {
97
- let _this$props2 = this.props,
98
- className = _this$props2.className,
99
- value = _this$props2.value,
100
- options = _this$props2.options,
101
- placeholder = _this$props2.placeholder,
102
- searchable = _this$props2.searchable,
103
- searchPlaceholder = _this$props2.searchPlaceholder,
104
- noOptionsPlaceholder = _this$props2.noOptionsPlaceholder,
105
- isLocked = _this$props2.isLocked,
106
- isInModal = _this$props2.isInModal,
107
- addOptionAble = _this$props2.addOptionAble,
108
- component = _this$props2.component;
101
+ let {
102
+ className,
103
+ value,
104
+ options,
105
+ placeholder,
106
+ searchable,
107
+ searchPlaceholder,
108
+ noOptionsPlaceholder,
109
+ isLocked,
110
+ isInModal,
111
+ addOptionAble,
112
+ component
113
+ } = this.props;
109
114
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
110
115
  ref: node => this.selector = node,
111
116
  className: (0, _classnames.default)('seatable-customize-select custom-select', {
@@ -5,7 +5,6 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
9
8
  var _react = _interopRequireDefault(require("react"));
10
9
  var _classnames = _interopRequireDefault(require("classnames"));
11
10
  var _reactstrap = require("reactstrap");
@@ -13,27 +12,30 @@ var _DTableToolTip = _interopRequireDefault(require("../DTableToolTip"));
13
12
  var _svgIcon = _interopRequireDefault(require("../DTableIcon/svg-icon"));
14
13
  var _jsxRuntime = require("react/jsx-runtime");
15
14
  const DTableDropdownItem = _ref => {
16
- let className = _ref.className,
17
- divider = _ref.divider,
18
- id = _ref.id,
19
- toggle = _ref.toggle,
20
- disabled = _ref.disabled,
21
- tooltip = _ref.tooltip,
22
- itemProps = _ref.itemProps,
23
- showChecked = _ref.showChecked,
24
- checked = _ref.checked,
25
- leftSlotContent = _ref.leftSlotContent,
26
- rightSlotContent = _ref.rightSlotContent,
27
- icon = _ref.icon,
28
- content = _ref.content,
29
- onClick = _ref.onClick,
30
- style = _ref.style,
31
- tabIndex = _ref.tabIndex;
15
+ let {
16
+ className,
17
+ divider,
18
+ id,
19
+ toggle,
20
+ disabled,
21
+ tooltip,
22
+ itemProps,
23
+ showChecked,
24
+ checked,
25
+ leftSlotContent,
26
+ rightSlotContent,
27
+ icon,
28
+ content,
29
+ onClick,
30
+ style,
31
+ tabIndex
32
+ } = _ref;
32
33
  if (divider) {
33
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.DropdownItem, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, itemProps), {}, {
34
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.DropdownItem, {
35
+ ...itemProps,
34
36
  divider: true,
35
37
  className: className
36
- }));
38
+ });
37
39
  }
38
40
  const renderedIcon = () => {
39
41
  if (!icon || ! /*#__PURE__*/_react.default.isValidElement(icon)) return null;
@@ -42,7 +44,9 @@ const DTableDropdownItem = _ref => {
42
44
  'aria-hidden': 'true'
43
45
  });
44
46
  };
45
- let customItemProps = (0, _objectSpread2.default)({}, itemProps);
47
+ let customItemProps = {
48
+ ...itemProps
49
+ };
46
50
  if (typeof onClick === 'function') {
47
51
  customItemProps.onClick = onClick;
48
52
  }
@@ -55,11 +59,11 @@ const DTableDropdownItem = _ref => {
55
59
  if (typeof tabIndex === 'number') {
56
60
  customItemProps.tabIndex = tabIndex;
57
61
  }
58
- return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.DropdownItem, (0, _objectSpread2.default)((0, _objectSpread2.default)({
62
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.DropdownItem, {
59
63
  className: className,
60
64
  disabled: disabled,
61
- id: id
62
- }, customItemProps), {}, {
65
+ id: id,
66
+ ...customItemProps,
63
67
  children: [(leftSlotContent || showChecked) && /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
64
68
  className: "dtable-dropdown-item-left-slot",
65
69
  children: [checked && /*#__PURE__*/(0, _jsxRuntime.jsx)(_svgIcon.default, {
@@ -85,6 +89,6 @@ const DTableDropdownItem = _ref => {
85
89
  }],
86
90
  children: tooltip
87
91
  })]
88
- }));
92
+ });
89
93
  };
90
94
  var _default = exports.default = DTableDropdownItem;
@@ -5,20 +5,23 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
9
8
  var _reactstrap = require("reactstrap");
10
9
  var _classnames = _interopRequireDefault(require("classnames"));
11
10
  var _jsxRuntime = require("react/jsx-runtime");
12
11
  const DTableDropdownMenu = _ref => {
13
- let id = _ref.id,
14
- className = _ref.className,
15
- container = _ref.container,
16
- modifiers = _ref.modifiers,
17
- flip = _ref.flip,
18
- style = _ref.style,
19
- menuProps = _ref.menuProps,
20
- children = _ref.children;
21
- let customMenuProps = (0, _objectSpread2.default)({}, menuProps);
12
+ let {
13
+ id,
14
+ className,
15
+ container,
16
+ modifiers,
17
+ flip,
18
+ style,
19
+ menuProps,
20
+ children
21
+ } = _ref;
22
+ let customMenuProps = {
23
+ ...menuProps
24
+ };
22
25
  customMenuProps.modifiers = [{
23
26
  name: 'preventOverflow',
24
27
  options: {
@@ -37,11 +40,11 @@ const DTableDropdownMenu = _ref => {
37
40
  if (typeof flip === 'boolean') {
38
41
  customMenuProps.flip = flip;
39
42
  }
40
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.DropdownMenu, (0, _objectSpread2.default)((0, _objectSpread2.default)({
43
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.DropdownMenu, {
41
44
  id: id,
42
- className: (0, _classnames.default)('dtable-dropdown-menu', className)
43
- }, customMenuProps), {}, {
45
+ className: (0, _classnames.default)('dtable-dropdown-menu', className),
46
+ ...customMenuProps,
44
47
  children: children
45
- }));
48
+ });
46
49
  };
47
50
  var _default = exports.default = DTableDropdownMenu;
@@ -10,10 +10,11 @@ require("./index.css");
10
10
  var _jsxRuntime = require("react/jsx-runtime");
11
11
  class DTableEmptyTip extends _react.default.Component {
12
12
  render() {
13
- const _this$props = this.props,
14
- text = _this$props.text,
15
- title = _this$props.title,
16
- type = _this$props.type;
13
+ const {
14
+ text,
15
+ title,
16
+ type
17
+ } = this.props;
17
18
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
18
19
  className: "empty-tip",
19
20
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {