dtable-ui-component 6.0.1140-oal.3 → 7.0.0-iam.2

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 (299) hide show
  1. package/lib/ActionSheet/index.js +14 -16
  2. package/lib/ActivityIndicator/index.js +7 -8
  3. package/lib/AsyncUserSelect/index.css +5 -0
  4. package/lib/AsyncUserSelect/index.js +40 -19
  5. package/lib/AsyncUserSelect/user-item.js +5 -6
  6. package/lib/AutoNumberFormatter/index.js +3 -4
  7. package/lib/Badge/index.js +9 -11
  8. package/lib/ButtonFormatter/index.js +6 -8
  9. package/lib/CTimeFormatter/index.js +3 -4
  10. package/lib/CheckboxEditor/index.js +1 -3
  11. package/lib/CheckboxEditor/mb-editor.js +9 -20
  12. package/lib/CheckboxEditor/pc-editor.js +12 -24
  13. package/lib/CheckboxFormatter/index.js +4 -5
  14. package/lib/CollaboratorEditor/index.js +2 -4
  15. package/lib/CollaboratorEditor/mb-editor/index.js +11 -19
  16. package/lib/CollaboratorEditor/pc-editor/index.js +25 -34
  17. package/lib/CollaboratorFormatter/index.js +8 -10
  18. package/lib/CollaboratorItem/index.js +4 -5
  19. package/lib/CollapsibleSettingLayout/index.js +9 -7
  20. package/lib/Comment/body/comment.js +24 -34
  21. package/lib/Comment/body/index.js +2 -4
  22. package/lib/Comment/footer/btns/index.js +4 -7
  23. package/lib/Comment/footer/index.js +9 -20
  24. package/lib/Comment/footer/input/index.js +29 -50
  25. package/lib/Comment/footer/input/participant/index.js +4 -5
  26. package/lib/Comment/footer/participants/index.js +6 -11
  27. package/lib/Comment/footer/participants/participant/index.js +4 -9
  28. package/lib/Comment/footer/participants/participant-select/index.js +9 -25
  29. package/lib/Comment/index.js +39 -57
  30. package/lib/Comment/utils/utilities.js +15 -21
  31. package/lib/CreatorFormatter/index.js +6 -8
  32. package/lib/DTableColorPicker/ColorPickerPortal/index.js +23 -19
  33. package/lib/DTableColorPicker/index.css +0 -2
  34. package/lib/DTableColorPicker/index.js +56 -41
  35. package/lib/DTableColorPicker/utils.js +4 -6
  36. package/lib/DTableColumnIcon/index.js +6 -7
  37. package/lib/DTableCommonAddTool/index.css +1 -3
  38. package/lib/DTableCommonAddTool/index.js +6 -8
  39. package/lib/DTableCustomFooter/index.css +1 -3
  40. package/lib/DTableCustomFooter/index.js +1 -3
  41. package/lib/DTableCustomizeCollaboratorSelect/index.js +17 -20
  42. package/lib/DTableCustomizeSelect/index.js +19 -24
  43. package/lib/DTableDropdownItem/index.js +90 -0
  44. package/lib/DTableDropdownMenu/index.js +47 -0
  45. package/lib/DTableEmptyTip/index.js +4 -5
  46. package/lib/DTableFiltersPopover/index.css +0 -2
  47. package/lib/DTableFiltersPopover/index.js +26 -41
  48. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +1 -3
  49. package/lib/DTableFiltersPopover/utils/index.js +63 -113
  50. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +8 -9
  51. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +16 -13
  52. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +18 -15
  53. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +8 -14
  54. package/lib/DTableFiltersPopover/widgets/filter-group.js +34 -55
  55. package/lib/DTableFiltersPopover/widgets/filter-item.js +110 -174
  56. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +136 -161
  57. package/lib/DTableFiltersPopover/widgets/rate-item.js +17 -22
  58. package/lib/DTableGroupSelect/index.js +11 -15
  59. package/lib/DTableGroupSelect/select-option-group.js +23 -32
  60. package/lib/DTableIcon/index.js +6 -7
  61. package/lib/DTableIcon/svg-icon.js +5 -7
  62. package/lib/DTableModalHeader/index.js +1 -3
  63. package/lib/DTablePopover/index.js +13 -16
  64. package/lib/DTableRadio/index.js +10 -9
  65. package/lib/DTableRadioGroup/index.js +8 -17
  66. package/lib/DTableSearchInput/index.js +19 -29
  67. package/lib/DTableSelect/dtable-select-label.js +6 -5
  68. package/lib/DTableSelect/index.js +32 -25
  69. package/lib/DTableSelect/utils.js +7 -15
  70. package/lib/DTableSubDropdownMenu/index.js +48 -0
  71. package/lib/DTableSubDropdownToggle/index.js +54 -0
  72. package/lib/DTableSwitch/index.css +0 -1
  73. package/lib/DTableSwitch/index.js +12 -11
  74. package/lib/DTableToolTip/index.css +45 -0
  75. package/lib/DTableToolTip/index.js +67 -0
  76. package/lib/DateEditor/index.js +20 -15
  77. package/lib/DateEditor/mb-editor/index.js +18 -31
  78. package/lib/DateEditor/pc-editor.js +26 -45
  79. package/lib/DateFormatter/index.js +4 -5
  80. package/lib/DatePicker/index.js +9 -15
  81. package/lib/DatePicker/utils.js +1 -3
  82. package/lib/DeleteTip/index.js +5 -6
  83. package/lib/DepartmentMultipleSelectEditor/index.js +25 -23
  84. package/lib/DepartmentSelectFilter/index.js +6 -8
  85. package/lib/DepartmentSingleSelectEditor/index.js +1 -3
  86. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +48 -47
  87. package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +36 -58
  88. package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +13 -19
  89. package/lib/DepartmentSingleSelectFormatter/index.js +4 -6
  90. package/lib/DigitalSignEditor/index.js +1 -3
  91. package/lib/DigitalSignEditor/mb-editor/index.js +12 -20
  92. package/lib/DigitalSignEditor/pc-editor/index.js +17 -24
  93. package/lib/DigitalSignEditor/service.js +2 -4
  94. package/lib/DigitalSignEditor/signature-board/index.js +5 -8
  95. package/lib/DigitalSignEditor/utils.js +2 -4
  96. package/lib/DigitalSignFormatter/index.js +12 -15
  97. package/lib/DigitalSignFormatter/utils.js +4 -5
  98. package/lib/DurationEditor/index.js +21 -31
  99. package/lib/DurationFormatter/index.js +4 -5
  100. package/lib/EditEditorButton/index.js +1 -3
  101. package/lib/EmailFormatter/index.js +3 -4
  102. package/lib/FieldDisplaySetting/field-item.js +12 -12
  103. package/lib/FieldDisplaySetting/index.js +11 -9
  104. package/lib/FileEditor/files-previewer/index.js +1 -3
  105. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +10 -18
  106. package/lib/FileEditor/files-previewer/mb-previewer/index.js +7 -8
  107. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +16 -14
  108. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +5 -6
  109. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +17 -32
  110. package/lib/FileEditor/files-previewer/pc-previewer/index.js +29 -57
  111. package/lib/FileEditor/index.js +1 -3
  112. package/lib/FileEditor/mb-editor/index.js +28 -20
  113. package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -3
  114. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +13 -34
  115. package/lib/FileEditor/pc-editor/index.js +19 -27
  116. package/lib/FileFormatter/index.js +26 -19
  117. package/lib/FileItemFormatter/index.js +6 -9
  118. package/lib/FileUploader/index.js +28 -45
  119. package/lib/FormulaFormatter/index.js +15 -29
  120. package/lib/GeolocationEditor/index.js +11 -12
  121. package/lib/GeolocationEditor/map-editor-utils.js +17 -15
  122. package/lib/GeolocationEditor/mb-editor/country-editor.js +17 -14
  123. package/lib/GeolocationEditor/mb-editor/index.js +4 -6
  124. package/lib/GeolocationEditor/mb-editor/location-editor.js +18 -15
  125. package/lib/GeolocationEditor/mb-editor/map-editor/index.js +41 -68
  126. package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +50 -89
  127. package/lib/GeolocationEditor/mb-editor/province-city-editor.js +17 -14
  128. package/lib/GeolocationEditor/mb-editor/province-editor.js +17 -14
  129. package/lib/GeolocationEditor/pc-editor/country-editor.js +10 -23
  130. package/lib/GeolocationEditor/pc-editor/index.js +12 -20
  131. package/lib/GeolocationEditor/pc-editor/location-editor.js +26 -31
  132. package/lib/GeolocationEditor/pc-editor/map-editor/index.js +34 -54
  133. package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +36 -60
  134. package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +35 -62
  135. package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +36 -65
  136. package/lib/GeolocationEditor/pc-editor/province-city-editor.js +19 -25
  137. package/lib/GeolocationEditor/pc-editor/province-editor.js +6 -13
  138. package/lib/GeolocationEditor/pc-editor/selector-header-item.js +5 -6
  139. package/lib/GeolocationEditor/pc-editor/selector-list.js +6 -7
  140. package/lib/GeolocationFormatter/index.js +4 -5
  141. package/lib/HtmlLongTextFormatter/index.js +4 -12
  142. package/lib/Icon/index.js +3 -5
  143. package/lib/IconButton/index.js +4 -6
  144. package/lib/ImageEditor/images-previewer/image-preview/index.js +14 -31
  145. package/lib/ImageEditor/images-previewer/index.js +3 -9
  146. package/lib/ImageEditor/index.js +1 -3
  147. package/lib/ImageEditor/mb-editor/index.js +28 -20
  148. package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +2 -6
  149. package/lib/ImageEditor/pc-editor/addition-previewer/index.js +1 -3
  150. package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +7 -21
  151. package/lib/ImageEditor/pc-editor/images-previewer/index.js +3 -9
  152. package/lib/ImageEditor/pc-editor/index.js +11 -16
  153. package/lib/ImageFormatter/images-lazy-load.js +19 -11
  154. package/lib/ImageFormatter/index.js +11 -13
  155. package/lib/ImagePreviewerLightbox/index.js +33 -16
  156. package/lib/ImageThumbnail/index.js +13 -29
  157. package/lib/InputItem/custom-input.js +26 -46
  158. package/lib/InputItem/custom-keyboard.js +15 -18
  159. package/lib/InputItem/index.js +34 -50
  160. package/lib/InputItem/input.js +2 -4
  161. package/lib/LastModifierFormatter/index.js +6 -8
  162. package/lib/LinkEditor/index.js +33 -53
  163. package/lib/LinkEditor/link-editor-option.js +3 -4
  164. package/lib/LinkEditor/mb-popover/index.js +9 -22
  165. package/lib/LinkEditor/pc-popover/index.js +5 -10
  166. package/lib/LinkFormatter/index.js +21 -37
  167. package/lib/List/index.js +6 -8
  168. package/lib/List/list-item.js +22 -28
  169. package/lib/LongTextFormatter/index.js +4 -5
  170. package/lib/MBEditorHeader/index.js +7 -8
  171. package/lib/MTimeFormatter/index.js +3 -4
  172. package/lib/MobileFullScreenPage/body/index.js +3 -5
  173. package/lib/MobileFullScreenPage/header/index.js +4 -6
  174. package/lib/MobileFullScreenPage/index.js +13 -11
  175. package/lib/MobileModal/index.js +1 -3
  176. package/lib/MobileOperationSheet/index.js +7 -8
  177. package/lib/MobileSelector/empty/index.js +1 -3
  178. package/lib/MobileSelector/index.js +5 -7
  179. package/lib/MobileSelector/option/index.js +3 -5
  180. package/lib/MobileSelector/options/index.js +1 -3
  181. package/lib/MobileSelector/search/index.js +3 -5
  182. package/lib/MobileUpload/index.js +4 -5
  183. package/lib/Modal/modal.js +14 -15
  184. package/lib/Modal/prompt.js +4 -4
  185. package/lib/MultipleSelectEditor/index.js +1 -3
  186. package/lib/MultipleSelectFormatter/index.js +6 -8
  187. package/lib/NotificationPopover/index.css +1 -6
  188. package/lib/NotificationPopover/index.js +6 -7
  189. package/lib/NumberEditor/index.js +12 -21
  190. package/lib/NumberFormatter/index.js +4 -5
  191. package/lib/PhoneNumberLink/index.js +2 -4
  192. package/lib/Picker/AbstractPicker.js +23 -27
  193. package/lib/Popover/index.js +3 -4
  194. package/lib/Popover/item.js +7 -9
  195. package/lib/Progress/index.js +9 -8
  196. package/lib/Radio/Radio.js +4 -8
  197. package/lib/Radio/RadioItem.js +8 -12
  198. package/lib/RateFormatter/index.js +13 -13
  199. package/lib/RoleStatusEditor/index.css +0 -35
  200. package/lib/RoleStatusEditor/index.js +40 -27
  201. package/lib/RowExpandDialog/body/index.js +32 -49
  202. package/lib/RowExpandDialog/column-content/index.js +7 -13
  203. package/lib/RowExpandDialog/header/index.js +6 -8
  204. package/lib/RowExpandDialog/index.js +49 -34
  205. package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +4 -5
  206. package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +8 -10
  207. package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +22 -33
  208. package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +26 -40
  209. package/lib/RowExpandEditor/date-editor/mb-editor.js +12 -18
  210. package/lib/RowExpandEditor/date-editor/pc-editor.js +15 -20
  211. package/lib/RowExpandEditor/department-editor/mb-editor.js +16 -11
  212. package/lib/RowExpandEditor/department-editor/pc-editor.js +19 -14
  213. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +20 -34
  214. package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +21 -35
  215. package/lib/RowExpandEditor/duration-editor/mb-editor.js +10 -17
  216. package/lib/RowExpandEditor/duration-editor/pc-editor.js +13 -19
  217. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +9 -19
  218. package/lib/RowExpandEditor/email-editor/pc-editor/index.js +13 -24
  219. package/lib/RowExpandEditor/file-editor/mb-editor/index.js +18 -31
  220. package/lib/RowExpandEditor/file-editor/pc-editor/index.js +16 -23
  221. package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +17 -29
  222. package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +13 -26
  223. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +15 -25
  224. package/lib/RowExpandEditor/image-editor/pc-editor/index.js +13 -23
  225. package/lib/RowExpandEditor/index.js +4 -8
  226. package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +17 -18
  227. package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +10 -16
  228. package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +16 -23
  229. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +11 -19
  230. package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +22 -33
  231. package/lib/RowExpandEditor/number-editor/mb-editor/index.js +8 -14
  232. package/lib/RowExpandEditor/number-editor/pc-editor.js +13 -20
  233. package/lib/RowExpandEditor/rate-editor/mb-editor.js +12 -25
  234. package/lib/RowExpandEditor/rate-editor/pc-editor.js +20 -36
  235. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +17 -28
  236. package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +22 -34
  237. package/lib/RowExpandEditor/text-editor/mb-editor/index.js +4 -5
  238. package/lib/RowExpandEditor/text-editor/pc-editor/index.js +15 -26
  239. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +5 -13
  240. package/lib/RowExpandEditor/url-editor/pc-editor/index.js +9 -18
  241. package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -4
  242. package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +2 -4
  243. package/lib/RowExpandFormatter/email-formatter/index.js +4 -7
  244. package/lib/RowExpandFormatter/file-formatter/index.js +8 -9
  245. package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +12 -27
  246. package/lib/RowExpandFormatter/formula-formatter/index.js +19 -34
  247. package/lib/RowExpandFormatter/image-formatter/index.js +9 -11
  248. package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +9 -23
  249. package/lib/RowExpandFormatter/index.js +27 -41
  250. package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +8 -14
  251. package/lib/RowExpandFormatter/link-formatter/index.js +11 -19
  252. package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +3 -5
  253. package/lib/RowExpandFormatter/rate-formatter/index.js +11 -12
  254. package/lib/RowExpandFormatter/text/index.js +4 -5
  255. package/lib/RowExpandFormatter/url-formatter/index.js +4 -7
  256. package/lib/RowExpandView/body/index.js +22 -35
  257. package/lib/RowExpandView/column-content/index.js +3 -7
  258. package/lib/RowExpandView/index.js +42 -30
  259. package/lib/SelectItem/index.js +5 -7
  260. package/lib/SelectOptionGroup/index.css +3 -3
  261. package/lib/SelectOptionGroup/index.js +31 -40
  262. package/lib/SelectedDepartments/index.js +7 -9
  263. package/lib/SimpleLongTextFormatter/index.js +10 -16
  264. package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +3 -4
  265. package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +12 -21
  266. package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -4
  267. package/lib/SingleSelectEditor/index.js +1 -3
  268. package/lib/SingleSelectFormatter/index.js +8 -9
  269. package/lib/TabBar/Tab.js +14 -16
  270. package/lib/TabBar/index.js +18 -21
  271. package/lib/Tabs/index.js +1 -3
  272. package/lib/TextEditor/index.js +14 -23
  273. package/lib/TextFormatter/index.js +3 -4
  274. package/lib/TextareaItem/index.js +19 -26
  275. package/lib/Toast/index.js +3 -4
  276. package/lib/UrlFormatter/index.js +3 -4
  277. package/lib/assets/icons/check-mark.svg +3 -0
  278. package/lib/common/editor-base.js +7 -12
  279. package/lib/hooks/common-hooks.js +2 -4
  280. package/lib/index.js +35 -0
  281. package/lib/locales/de.json +2 -0
  282. package/lib/locales/en.json +2 -0
  283. package/lib/locales/es.json +2 -0
  284. package/lib/locales/fr.json +2 -0
  285. package/lib/locales/pt.json +2 -0
  286. package/lib/locales/ru.json +2 -0
  287. package/lib/locales/zh-CN.json +2 -0
  288. package/lib/select-editor/index.js +1 -3
  289. package/lib/select-editor/mb-editor/index.js +17 -28
  290. package/lib/select-editor/pc-editor/index.js +27 -42
  291. package/lib/toaster/alert.js +6 -7
  292. package/lib/toaster/toast.js +2 -3
  293. package/lib/toaster/toastManager.js +2 -4
  294. package/lib/utils/cell.js +8 -11
  295. package/lib/utils/column-utils.js +8 -14
  296. package/lib/utils/departments.js +1 -3
  297. package/lib/utils/url.js +24 -31
  298. package/lib/utils/utils.js +2 -6
  299. package/package.json +10 -10
@@ -28,13 +28,12 @@ function createActionSheet(flag, config, callback) {
28
28
  prefixCls: 'am-action-sheet',
29
29
  cancelButtonText: '取消'
30
30
  }, config);
31
- const {
32
- prefixCls,
33
- className,
34
- transitionName,
35
- maskTransitionName,
36
- maskClosable = true
37
- } = props;
31
+ const prefixCls = props.prefixCls,
32
+ className = props.className,
33
+ transitionName = props.transitionName,
34
+ maskTransitionName = props.maskTransitionName,
35
+ _props$maskClosable = props.maskClosable,
36
+ maskClosable = _props$maskClosable === void 0 ? true : _props$maskClosable;
38
37
  const div = document.createElement('div');
39
38
  document.body.appendChild(div);
40
39
  const root = (0, _client.createRoot)(div);
@@ -62,15 +61,14 @@ function createActionSheet(flag, config, callback) {
62
61
  close();
63
62
  }
64
63
  }
65
- const {
66
- title,
67
- message,
68
- options,
69
- destructiveButtonIndex,
70
- cancelButtonIndex,
71
- cancelButtonText,
72
- badges = []
73
- } = props;
64
+ const title = props.title,
65
+ message = props.message,
66
+ options = props.options,
67
+ destructiveButtonIndex = props.destructiveButtonIndex,
68
+ cancelButtonIndex = props.cancelButtonIndex,
69
+ cancelButtonText = props.cancelButtonText,
70
+ _props$badges = props.badges,
71
+ badges = _props$badges === void 0 ? [] : _props$badges;
74
72
  const titleMsg = [title ? /*#__PURE__*/(0, _jsxRuntime.jsx)("h3", {
75
73
  className: "".concat(prefixCls, "-title"),
76
74
  children: title
@@ -14,14 +14,13 @@ var _jsxRuntime = require("react/jsx-runtime");
14
14
 
15
15
  class ActivityIndicator extends React.Component {
16
16
  render() {
17
- const {
18
- prefixCls,
19
- className,
20
- animating,
21
- toast,
22
- size,
23
- text
24
- } = this.props;
17
+ const _this$props = this.props,
18
+ prefixCls = _this$props.prefixCls,
19
+ className = _this$props.className,
20
+ animating = _this$props.animating,
21
+ toast = _this$props.toast,
22
+ size = _this$props.size,
23
+ text = _this$props.text;
25
24
  const wrapClass = (0, _classnames.default)(prefixCls, className, {
26
25
  ["".concat(prefixCls, "-lg")]: size === 'large',
27
26
  ["".concat(prefixCls, "-sm")]: size === 'small',
@@ -12,6 +12,11 @@
12
12
  .dtable-ui-user-select-popover .popover {
13
13
  width: 385px;
14
14
  max-width: 385px;
15
+ background: var(--bs-popover-bg);
16
+ border: 1px solid var(--bs-border-secondary-color);
17
+ border-radius: 4px;
18
+ box-shadow: var(--bs-border-secondary-shadow);
19
+ margin-top: -4px;
15
20
  }
16
21
 
17
22
  .dtable-ui-user-select-container {
@@ -5,6 +5,7 @@ Object.defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.default = void 0;
8
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
8
9
  var _react = require("react");
9
10
  var _classnames = _interopRequireDefault(require("classnames"));
10
11
  var _reactstrap = require("reactstrap");
@@ -16,22 +17,43 @@ var _keyCodes = _interopRequireDefault(require("../constants/key-codes"));
16
17
  require("./index.css");
17
18
  var _jsxRuntime = require("react/jsx-runtime");
18
19
  const AsyncUserSelect = _ref => {
19
- let {
20
- className,
21
- emptyPlaceholder = '',
22
- searchPlaceholder = '',
23
- isMulti = true,
24
- enableShowIDInOrgWhenSearchUser = false,
25
- selectedUsers = [],
26
- loadOptions,
27
- modifySelectedUsers
28
- } = _ref;
29
- const [isPopoverOpen, setIsPopoverOpen] = (0, _react.useState)(false);
30
- const [searchValue, setSearchValue] = (0, _react.useState)('');
31
- const [searchedUsers, setSearchedUsers] = (0, _react.useState)([]);
32
- const [highlightIndex, setHighlightIndex] = (0, _react.useState)(-1);
33
- const [maxItemNum, setMaxItemNum] = (0, _react.useState)(0);
34
- const [itemHeight, setItemHeight] = (0, _react.useState)(0);
20
+ let className = _ref.className,
21
+ _ref$emptyPlaceholder = _ref.emptyPlaceholder,
22
+ emptyPlaceholder = _ref$emptyPlaceholder === void 0 ? '' : _ref$emptyPlaceholder,
23
+ _ref$searchPlaceholde = _ref.searchPlaceholder,
24
+ searchPlaceholder = _ref$searchPlaceholde === void 0 ? '' : _ref$searchPlaceholde,
25
+ _ref$isMulti = _ref.isMulti,
26
+ isMulti = _ref$isMulti === void 0 ? true : _ref$isMulti,
27
+ _ref$enableShowIDInOr = _ref.enableShowIDInOrgWhenSearchUser,
28
+ enableShowIDInOrgWhenSearchUser = _ref$enableShowIDInOr === void 0 ? false : _ref$enableShowIDInOr,
29
+ _ref$selectedUsers = _ref.selectedUsers,
30
+ selectedUsers = _ref$selectedUsers === void 0 ? [] : _ref$selectedUsers,
31
+ loadOptions = _ref.loadOptions,
32
+ modifySelectedUsers = _ref.modifySelectedUsers;
33
+ const _useState = (0, _react.useState)(false),
34
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
35
+ isPopoverOpen = _useState2[0],
36
+ setIsPopoverOpen = _useState2[1];
37
+ const _useState3 = (0, _react.useState)(''),
38
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
39
+ searchValue = _useState4[0],
40
+ setSearchValue = _useState4[1];
41
+ const _useState5 = (0, _react.useState)([]),
42
+ _useState6 = (0, _slicedToArray2.default)(_useState5, 2),
43
+ searchedUsers = _useState6[0],
44
+ setSearchedUsers = _useState6[1];
45
+ const _useState7 = (0, _react.useState)(-1),
46
+ _useState8 = (0, _slicedToArray2.default)(_useState7, 2),
47
+ highlightIndex = _useState8[0],
48
+ setHighlightIndex = _useState8[1];
49
+ const _useState9 = (0, _react.useState)(0),
50
+ _useState0 = (0, _slicedToArray2.default)(_useState9, 2),
51
+ maxItemNum = _useState0[0],
52
+ setMaxItemNum = _useState0[1];
53
+ const _useState1 = (0, _react.useState)(0),
54
+ _useState10 = (0, _slicedToArray2.default)(_useState1, 2),
55
+ itemHeight = _useState10[0],
56
+ setItemHeight = _useState10[1];
35
57
  const selectorRef = (0, _react.useRef)(null);
36
58
  const userSelectContainerRef = (0, _react.useRef)(null);
37
59
  const userListContainerRef = (0, _react.useRef)(null);
@@ -165,9 +187,8 @@ const AsyncUserSelect = _ref => {
165
187
  }, [onEnter, onUpArrow, onDownArrow, onEsc]);
166
188
  (0, _react.useEffect)(() => {
167
189
  if (userSelectContainerRef.current) {
168
- const {
169
- bottom
170
- } = userSelectContainerRef.current.getBoundingClientRect();
190
+ const _userSelectContainerR = userSelectContainerRef.current.getBoundingClientRect(),
191
+ bottom = _userSelectContainerR.bottom;
171
192
  if (bottom > window.innerHeight) {
172
193
  userSelectContainerRef.current.style.top = "".concat(window.innerHeight - bottom, "px");
173
194
  }
@@ -10,12 +10,11 @@ var _classnames = _interopRequireDefault(require("classnames"));
10
10
  var _lang = require("../lang");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  const UserItem = _ref => {
13
- let {
14
- className,
15
- user,
16
- deleteUser,
17
- enableShowIDInOrgWhenSearchUser = false
18
- } = _ref;
13
+ let className = _ref.className,
14
+ user = _ref.user,
15
+ deleteUser = _ref.deleteUser,
16
+ _ref$enableShowIDInOr = _ref.enableShowIDInOrgWhenSearchUser,
17
+ enableShowIDInOrgWhenSearchUser = _ref$enableShowIDInOr === void 0 ? false : _ref$enableShowIDInOr;
19
18
  const name = (0, _react.useMemo)(() => (user === null || user === void 0 ? void 0 : user.name) || '', [user]);
20
19
  const avatarUrl = (0, _react.useMemo)(() => (user === null || user === void 0 ? void 0 : user.avatar_url) || '', [user]);
21
20
  const idInOrg = (0, _react.useMemo)(() => (user === null || user === void 0 ? void 0 : user.id_in_org) || '', [user]);
@@ -11,10 +11,9 @@ require("./index.css");
11
11
  var _jsxRuntime = require("react/jsx-runtime");
12
12
  class AutoNumberFormatter extends _react.default.Component {
13
13
  render() {
14
- const {
15
- containerClassName,
16
- value
17
- } = this.props;
14
+ const _this$props = this.props,
15
+ containerClassName = _this$props.containerClassName,
16
+ value = _this$props.value;
18
17
  let classname = (0, _classnames.default)('dtable-ui cell-formatter-container auto-number-formatter', containerClassName);
19
18
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
20
19
  title: value,
@@ -17,17 +17,15 @@ class Badge extends React.Component {
17
17
  render() {
18
18
  // tslint:disable:prefer-const
19
19
  let _this$props = this.props,
20
- {
21
- className,
22
- prefixCls,
23
- children,
24
- text,
25
- size,
26
- overflowCount,
27
- dot,
28
- corner,
29
- hot
30
- } = _this$props,
20
+ className = _this$props.className,
21
+ prefixCls = _this$props.prefixCls,
22
+ children = _this$props.children,
23
+ text = _this$props.text,
24
+ size = _this$props.size,
25
+ overflowCount = _this$props.overflowCount,
26
+ dot = _this$props.dot,
27
+ corner = _this$props.corner,
28
+ hot = _this$props.hot,
31
29
  restProps = (0, _objectWithoutProperties2.default)(_this$props, _excluded);
32
30
  // eslint-disable-next-line no-self-assign
33
31
  overflowCount = overflowCount;
@@ -21,14 +21,12 @@ class ButtonFormatter extends _react.default.Component {
21
21
  };
22
22
  }
23
23
  render() {
24
- let {
25
- data,
26
- containerClassName
27
- } = this.props;
28
- const {
29
- button_color,
30
- button_name
31
- } = data || {};
24
+ let _this$props = this.props,
25
+ data = _this$props.data,
26
+ containerClassName = _this$props.containerClassName;
27
+ const _ref = data || {},
28
+ button_color = _ref.button_color,
29
+ button_name = _ref.button_name;
32
30
  const colorObj = _dtableUtils.SELECT_OPTION_COLORS.find(item => item.COLOR === button_color) || _dtableUtils.SELECT_OPTION_COLORS[0];
33
31
  const color = colorObj.TEXT_COLOR === WHITE ? WHITE : '#666666';
34
32
  const btnStyle = {
@@ -18,10 +18,9 @@ class CTimeFormatter extends _react.default.Component {
18
18
  };
19
19
  }
20
20
  render() {
21
- let {
22
- value: date,
23
- containerClassName
24
- } = this.props;
21
+ let _this$props = this.props,
22
+ date = _this$props.value,
23
+ containerClassName = _this$props.containerClassName;
25
24
  let classname = (0, _classnames.default)('dtable-ui cell-formatter-container ctime-formatter', containerClassName);
26
25
  if (date) {
27
26
  date = this.formatDate(date);
@@ -16,9 +16,7 @@ require("./index.css");
16
16
  var _jsxRuntime = require("react/jsx-runtime");
17
17
  const _excluded = ["isMobile"];
18
18
  const CheckboxEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
19
- let {
20
- isMobile
21
- } = _ref,
19
+ let isMobile = _ref.isMobile,
22
20
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
23
21
  if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
24
22
  ref: ref
@@ -15,9 +15,7 @@ class MBCheckboxEditor extends _react.Component {
15
15
  constructor(props) {
16
16
  super(props);
17
17
  this.getValue = () => {
18
- const {
19
- value
20
- } = this.state;
18
+ const value = this.state.value;
21
19
  return value;
22
20
  };
23
21
  this.updateValue = value => {
@@ -29,18 +27,14 @@ class MBCheckboxEditor extends _react.Component {
29
27
  });
30
28
  };
31
29
  this.onChangeCheckboxValue = event => {
32
- const {
33
- readOnly
34
- } = this.props;
30
+ const readOnly = this.props.readOnly;
35
31
  if (readOnly) return;
36
32
  if (event) {
37
33
  event.stopPropagation();
38
34
  event.nativeEvent.stopImmediatePropagation();
39
35
  event.persist();
40
36
  }
41
- const {
42
- value
43
- } = this.state;
37
+ const value = this.state.value;
44
38
  const newValue = !value;
45
39
  this.setState({
46
40
  value: newValue
@@ -63,9 +57,7 @@ class MBCheckboxEditor extends _react.Component {
63
57
  };
64
58
  }
65
59
  componentDidUpdate(prevProps) {
66
- const {
67
- value
68
- } = this.props;
60
+ const value = this.props.value;
69
61
  if (value !== prevProps.value) {
70
62
  this.setState({
71
63
  value
@@ -74,14 +66,11 @@ class MBCheckboxEditor extends _react.Component {
74
66
  }
75
67
  render() {
76
68
  var _column$data;
77
- const {
78
- className,
79
- style,
80
- column
81
- } = this.props;
82
- const {
83
- value
84
- } = this.state;
69
+ const _this$props = this.props,
70
+ className = _this$props.className,
71
+ style = _this$props.style,
72
+ column = _this$props.column;
73
+ const value = this.state.value;
85
74
  let checkboxStyle = column === null || column === void 0 ? void 0 : (_column$data = column.data) === null || _column$data === void 0 ? void 0 : _column$data.checkbox_style;
86
75
  if (!checkboxStyle || Object.keys(checkboxStyle).length < 2) {
87
76
  checkboxStyle = _constants.DEFAULT_CHECKBOX_MARK_STYLE;
@@ -15,10 +15,9 @@ class PCCheckboxEditor extends _react.Component {
15
15
  constructor(props) {
16
16
  super(props);
17
17
  this.onKeyDown = event => {
18
- const {
19
- isEditorShow,
20
- readOnly
21
- } = this.props;
18
+ const _this$props = this.props,
19
+ isEditorShow = _this$props.isEditorShow,
20
+ readOnly = _this$props.readOnly;
22
21
  if (event.keyCode === _constants.KeyCodes.Enter && isEditorShow && !readOnly) {
23
22
  this.setState({
24
23
  value: !this.state.value
@@ -26,9 +25,7 @@ class PCCheckboxEditor extends _react.Component {
26
25
  }
27
26
  };
28
27
  this.getValue = () => {
29
- const {
30
- value
31
- } = this.state;
28
+ const value = this.state.value;
32
29
  return value;
33
30
  };
34
31
  this.updateValue = value => {
@@ -40,18 +37,14 @@ class PCCheckboxEditor extends _react.Component {
40
37
  });
41
38
  };
42
39
  this.onChangeCheckboxValue = event => {
43
- const {
44
- readOnly
45
- } = this.props;
40
+ const readOnly = this.props.readOnly;
46
41
  if (readOnly) return;
47
42
  if (event) {
48
43
  event.stopPropagation();
49
44
  event.nativeEvent.stopImmediatePropagation();
50
45
  event.persist();
51
46
  }
52
- const {
53
- value
54
- } = this.state;
47
+ const value = this.state.value;
55
48
  const newValue = !value;
56
49
  this.setState({
57
50
  value: newValue
@@ -82,9 +75,7 @@ class PCCheckboxEditor extends _react.Component {
82
75
  document.removeEventListener('keydown', this.onKeyDown);
83
76
  }
84
77
  componentDidUpdate(prevProps) {
85
- const {
86
- value
87
- } = this.props;
78
+ const value = this.props.value;
88
79
  if (value !== prevProps.value) {
89
80
  this.setState({
90
81
  value
@@ -93,14 +84,11 @@ class PCCheckboxEditor extends _react.Component {
93
84
  }
94
85
  render() {
95
86
  var _column$data;
96
- const {
97
- className,
98
- style,
99
- column
100
- } = this.props;
101
- const {
102
- value
103
- } = this.state;
87
+ const _this$props2 = this.props,
88
+ className = _this$props2.className,
89
+ style = _this$props2.style,
90
+ column = _this$props2.column;
91
+ const value = this.state.value;
104
92
  let checkboxStyle = column === null || column === void 0 ? void 0 : (_column$data = column.data) === null || _column$data === void 0 ? void 0 : _column$data.checkbox_style;
105
93
  if (!checkboxStyle || Object.keys(checkboxStyle).length < 2) {
106
94
  checkboxStyle = _constants.DEFAULT_CHECKBOX_MARK_STYLE;
@@ -26,11 +26,10 @@ class CheckboxFormatter extends _react.default.PureComponent {
26
26
  };
27
27
  }
28
28
  render() {
29
- let {
30
- value,
31
- containerClassName,
32
- checkboxStyle
33
- } = this.props;
29
+ let _this$props = this.props,
30
+ value = _this$props.value,
31
+ containerClassName = _this$props.containerClassName,
32
+ checkboxStyle = _this$props.checkboxStyle;
34
33
  if (!checkboxStyle || !('type' in checkboxStyle && 'color' in checkboxStyle)) {
35
34
  checkboxStyle = _constants.DEFAULT_CHECKBOX_MARK_STYLE;
36
35
  }
@@ -16,10 +16,8 @@ require("./index.css");
16
16
  var _jsxRuntime = require("react/jsx-runtime");
17
17
  const _excluded = ["isMobile", "value"];
18
18
  const CollaboratorEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
19
- let {
20
- isMobile,
21
- value: oldValue
22
- } = _ref,
19
+ let isMobile = _ref.isMobile,
20
+ oldValue = _ref.value,
23
21
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
24
22
  const value = Array.isArray(oldValue) ? oldValue : [];
25
23
  if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
@@ -12,12 +12,10 @@ var _lang = require("../../lang");
12
12
  var _CollaboratorItem = _interopRequireDefault(require("../../CollaboratorItem"));
13
13
  require("./index.css");
14
14
  var _jsxRuntime = require("react/jsx-runtime");
15
- const {
16
- Search,
17
- Option,
18
- Options,
19
- Empty
20
- } = _MobileSelector.default;
15
+ const Search = _MobileSelector.default.Search,
16
+ Option = _MobileSelector.default.Option,
17
+ Options = _MobileSelector.default.Options,
18
+ Empty = _MobileSelector.default.Empty;
21
19
  class MBCollaboratorEditor extends _react.default.Component {
22
20
  constructor(props) {
23
21
  super(props);
@@ -26,9 +24,7 @@ class MBCollaboratorEditor extends _react.default.Component {
26
24
  this.props.onClose();
27
25
  };
28
26
  this.onChangeSearch = newValue => {
29
- let {
30
- searchVal
31
- } = this.state;
27
+ let searchVal = this.state.searchVal;
32
28
  if (searchVal === newValue) return;
33
29
  this.setState({
34
30
  searchVal: newValue
@@ -38,9 +34,8 @@ class MBCollaboratorEditor extends _react.default.Component {
38
34
  this.props.onCommit(collaborator);
39
35
  };
40
36
  this.renderCollaborators = collaborators => {
41
- const {
42
- value = []
43
- } = this.props;
37
+ const _this$props$value = this.props.value,
38
+ value = _this$props$value === void 0 ? [] : _this$props$value;
44
39
  return collaborators.map(collaborator => {
45
40
  const isSelected = value.includes(collaborator.email);
46
41
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Option, {
@@ -64,13 +59,10 @@ class MBCollaboratorEditor extends _react.default.Component {
64
59
  window.removeEventListener('popstate', this.handleHistoryBack, false);
65
60
  }
66
61
  render() {
67
- const {
68
- column,
69
- collaborators
70
- } = this.props;
71
- const {
72
- searchVal
73
- } = this.state;
62
+ const _this$props = this.props,
63
+ column = _this$props.column,
64
+ collaborators = _this$props.collaborators;
65
+ const searchVal = this.state.searchVal;
74
66
  const displayCollaborators = searchVal ? (0, _dtableUtils.searchCollaborators)(collaborators, searchVal) : collaborators;
75
67
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileSelector.default, {
76
68
  onClose: this.props.onClose,
@@ -21,9 +21,7 @@ class PCCollaboratorEditor extends _react.default.Component {
21
21
  super(props);
22
22
  this.onValueChanged = newSearchValue => {
23
23
  if (newSearchValue === this.state.searchValue) return;
24
- const {
25
- collaborators
26
- } = this.props;
24
+ const collaborators = this.props.collaborators;
27
25
  this.filteredCollaborators = (0, _dtableUtils.searchCollaborators)(collaborators, newSearchValue);
28
26
  this.setState({
29
27
  highlightIndex: this.filteredCollaborators.length > 0 ? 0 : -1,
@@ -34,9 +32,7 @@ class PCCollaboratorEditor extends _react.default.Component {
34
32
  this.props.onCommit(collaborator);
35
33
  };
36
34
  this.getFilterCollaborator = () => {
37
- const {
38
- collaborators
39
- } = this.props;
35
+ const collaborators = this.props.collaborators;
40
36
  const searchValue = this.state.searchValue.toLowerCase();
41
37
  if (!searchValue) return collaborators;
42
38
  return (0, _dtableUtils.searchCollaborators)(collaborators, searchValue);
@@ -77,11 +73,10 @@ class PCCollaboratorEditor extends _react.default.Component {
77
73
  this.onUpArrow = e => {
78
74
  e.preventDefault();
79
75
  e.stopPropagation();
80
- let {
81
- highlightIndex,
82
- maxItemNum,
83
- itemHeight
84
- } = this.state;
76
+ let _this$state = this.state,
77
+ highlightIndex = _this$state.highlightIndex,
78
+ maxItemNum = _this$state.maxItemNum,
79
+ itemHeight = _this$state.itemHeight;
85
80
  if (highlightIndex > 0) {
86
81
  this.setState({
87
82
  highlightIndex: highlightIndex - 1
@@ -101,11 +96,10 @@ class PCCollaboratorEditor extends _react.default.Component {
101
96
  this.onDownArrow = e => {
102
97
  e.preventDefault();
103
98
  e.stopPropagation();
104
- let {
105
- highlightIndex,
106
- maxItemNum,
107
- itemHeight
108
- } = this.state;
99
+ let _this$state2 = this.state,
100
+ highlightIndex = _this$state2.highlightIndex,
101
+ maxItemNum = _this$state2.maxItemNum,
102
+ itemHeight = _this$state2.itemHeight;
109
103
  if (highlightIndex < this.filteredCollaborators.length - 1) {
110
104
  this.setState({
111
105
  highlightIndex: highlightIndex + 1
@@ -125,12 +119,11 @@ class PCCollaboratorEditor extends _react.default.Component {
125
119
  this.onEsc = e => {
126
120
  e.preventDefault();
127
121
  e.stopPropagation();
128
- const {
129
- isInModal,
130
- value,
131
- onCommitCancel,
132
- onClose
133
- } = this.props;
122
+ const _this$props = this.props,
123
+ isInModal = _this$props.isInModal,
124
+ value = _this$props.value,
125
+ onCommitCancel = _this$props.onCommitCancel,
126
+ onClose = _this$props.onClose;
134
127
  if (isInModal) {
135
128
  onClose && onClose();
136
129
  return;
@@ -172,9 +165,8 @@ class PCCollaboratorEditor extends _react.default.Component {
172
165
  }
173
166
  }
174
167
  if (!this.props.isInModal && this.ref) {
175
- const {
176
- bottom
177
- } = this.ref.getBoundingClientRect();
168
+ const _this$ref$getBounding = this.ref.getBoundingClientRect(),
169
+ bottom = _this$ref$getBounding.bottom;
178
170
  if (bottom > window.innerHeight) {
179
171
  this.ref.style.top = "".concat(window.innerHeight - bottom, "px");
180
172
  }
@@ -198,15 +190,14 @@ class PCCollaboratorEditor extends _react.default.Component {
198
190
  document.removeEventListener('keydown', this.onHotKey, true);
199
191
  }
200
192
  render() {
201
- const {
202
- searchValue,
203
- highlightIndex
204
- } = this.state;
205
- const {
206
- isInModal,
207
- value = [],
208
- target
209
- } = this.props;
193
+ const _this$state3 = this.state,
194
+ searchValue = _this$state3.searchValue,
195
+ highlightIndex = _this$state3.highlightIndex;
196
+ const _this$props2 = this.props,
197
+ isInModal = _this$props2.isInModal,
198
+ _this$props2$value = _this$props2.value,
199
+ value = _this$props2$value === void 0 ? [] : _this$props2$value,
200
+ target = _this$props2.target;
210
201
  const dom = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
211
202
  className: "dtable-ui-editor-container dtable-ui-collaborator-editor-container",
212
203
  ref: ref => this.ref = ref,
@@ -20,12 +20,11 @@ class CollaboratorFormatter extends _react.default.PureComponent {
20
20
  constructor() {
21
21
  super(...arguments);
22
22
  this.getCollaborators = () => {
23
- let {
24
- value,
25
- collaborators,
26
- enableDeleteCollaborator,
27
- onDeleteCollaborator
28
- } = this.props;
23
+ let _this$props = this.props,
24
+ value = _this$props.value,
25
+ collaborators = _this$props.collaborators,
26
+ enableDeleteCollaborator = _this$props.enableDeleteCollaborator,
27
+ onDeleteCollaborator = _this$props.onDeleteCollaborator;
29
28
  if (!Array.isArray(value)) {
30
29
  value = [value];
31
30
  }
@@ -46,10 +45,9 @@ class CollaboratorFormatter extends _react.default.PureComponent {
46
45
  };
47
46
  }
48
47
  render() {
49
- const {
50
- containerClassName,
51
- value
52
- } = this.props;
48
+ const _this$props2 = this.props,
49
+ containerClassName = _this$props2.containerClassName,
50
+ value = _this$props2.value;
53
51
  const classname = (0, _classnames.default)('dtable-ui cell-formatter-container collaborator-formatter', containerClassName);
54
52
  if (!value || Array.isArray(value) && value.length === 0) {
55
53
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -19,11 +19,10 @@ class CollaboratorItem extends _react.default.Component {
19
19
  };
20
20
  }
21
21
  render() {
22
- const {
23
- className,
24
- collaborator,
25
- enableDeleteCollaborator
26
- } = this.props;
22
+ const _this$props = this.props,
23
+ className = _this$props.className,
24
+ collaborator = _this$props.collaborator,
25
+ enableDeleteCollaborator = _this$props.enableDeleteCollaborator;
27
26
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
28
27
  title: collaborator.name,
29
28
  className: (0, _classnames.default)('dtable-ui collaborator-item', className),