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
@@ -15,9 +15,10 @@ class PCCheckboxEditor extends _react.Component {
15
15
  constructor(props) {
16
16
  super(props);
17
17
  this.onKeyDown = event => {
18
- const _this$props = this.props,
19
- isEditorShow = _this$props.isEditorShow,
20
- readOnly = _this$props.readOnly;
18
+ const {
19
+ isEditorShow,
20
+ readOnly
21
+ } = this.props;
21
22
  if (event.keyCode === _constants.KeyCodes.Enter && isEditorShow && !readOnly) {
22
23
  this.setState({
23
24
  value: !this.state.value
@@ -25,7 +26,9 @@ class PCCheckboxEditor extends _react.Component {
25
26
  }
26
27
  };
27
28
  this.getValue = () => {
28
- const value = this.state.value;
29
+ const {
30
+ value
31
+ } = this.state;
29
32
  return value;
30
33
  };
31
34
  this.updateValue = value => {
@@ -37,14 +40,18 @@ class PCCheckboxEditor extends _react.Component {
37
40
  });
38
41
  };
39
42
  this.onChangeCheckboxValue = event => {
40
- const readOnly = this.props.readOnly;
43
+ const {
44
+ readOnly
45
+ } = this.props;
41
46
  if (readOnly) return;
42
47
  if (event) {
43
48
  event.stopPropagation();
44
49
  event.nativeEvent.stopImmediatePropagation();
45
50
  event.persist();
46
51
  }
47
- const value = this.state.value;
52
+ const {
53
+ value
54
+ } = this.state;
48
55
  const newValue = !value;
49
56
  this.setState({
50
57
  value: newValue
@@ -75,7 +82,9 @@ class PCCheckboxEditor extends _react.Component {
75
82
  document.removeEventListener('keydown', this.onKeyDown);
76
83
  }
77
84
  componentDidUpdate(prevProps) {
78
- const value = this.props.value;
85
+ const {
86
+ value
87
+ } = this.props;
79
88
  if (value !== prevProps.value) {
80
89
  this.setState({
81
90
  value
@@ -84,11 +93,14 @@ class PCCheckboxEditor extends _react.Component {
84
93
  }
85
94
  render() {
86
95
  var _column$data;
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;
96
+ const {
97
+ className,
98
+ style,
99
+ column
100
+ } = this.props;
101
+ const {
102
+ value
103
+ } = this.state;
92
104
  let checkboxStyle = column === null || column === void 0 ? void 0 : (_column$data = column.data) === null || _column$data === void 0 ? void 0 : _column$data.checkbox_style;
93
105
  if (!checkboxStyle || Object.keys(checkboxStyle).length < 2) {
94
106
  checkboxStyle = _constants.DEFAULT_CHECKBOX_MARK_STYLE;
@@ -26,10 +26,11 @@ class CheckboxFormatter extends _react.default.PureComponent {
26
26
  };
27
27
  }
28
28
  render() {
29
- let _this$props = this.props,
30
- value = _this$props.value,
31
- containerClassName = _this$props.containerClassName,
32
- checkboxStyle = _this$props.checkboxStyle;
29
+ let {
30
+ value,
31
+ containerClassName,
32
+ checkboxStyle
33
+ } = this.props;
33
34
  if (!checkboxStyle || !('type' in checkboxStyle && 'color' in checkboxStyle)) {
34
35
  checkboxStyle = _constants.DEFAULT_CHECKBOX_MARK_STYLE;
35
36
  }
@@ -6,41 +6,44 @@ 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 _reactResponsive = _interopRequireDefault(require("react-responsive"));
13
11
  var _pcEditor = _interopRequireDefault(require("./pc-editor"));
14
12
  var _mbEditor = _interopRequireDefault(require("./mb-editor"));
15
13
  require("./index.css");
16
14
  var _jsxRuntime = require("react/jsx-runtime");
17
- const _excluded = ["isMobile", "value"];
18
15
  const CollaboratorEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
19
- let isMobile = _ref.isMobile,
20
- oldValue = _ref.value,
21
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
16
+ let {
17
+ isMobile,
18
+ value: oldValue,
19
+ ...props
20
+ } = _ref;
22
21
  const value = Array.isArray(oldValue) ? oldValue : [];
23
- if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
22
+ if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
23
+ ...props,
24
24
  value: value,
25
25
  ref: ref
26
- }));
27
- if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
26
+ });
27
+ if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
28
+ ...props,
28
29
  value: value,
29
30
  ref: ref
30
- }));
31
+ });
31
32
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
32
33
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
33
34
  query: "(min-width: 768px)",
34
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
35
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
36
+ ...props,
35
37
  value: value,
36
38
  ref: ref
37
- }))
39
+ })
38
40
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
39
41
  query: "(max-width: 768px)",
40
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
42
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
43
+ ...props,
41
44
  value: value,
42
45
  ref: ref
43
- }))
46
+ })
44
47
  })]
45
48
  });
46
49
  });
@@ -12,10 +12,12 @@ 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 Search = _MobileSelector.default.Search,
16
- Option = _MobileSelector.default.Option,
17
- Options = _MobileSelector.default.Options,
18
- Empty = _MobileSelector.default.Empty;
15
+ const {
16
+ Search,
17
+ Option,
18
+ Options,
19
+ Empty
20
+ } = _MobileSelector.default;
19
21
  class MBCollaboratorEditor extends _react.default.Component {
20
22
  constructor(props) {
21
23
  super(props);
@@ -24,7 +26,9 @@ class MBCollaboratorEditor extends _react.default.Component {
24
26
  this.props.onClose();
25
27
  };
26
28
  this.onChangeSearch = newValue => {
27
- let searchVal = this.state.searchVal;
29
+ let {
30
+ searchVal
31
+ } = this.state;
28
32
  if (searchVal === newValue) return;
29
33
  this.setState({
30
34
  searchVal: newValue
@@ -34,8 +38,9 @@ class MBCollaboratorEditor extends _react.default.Component {
34
38
  this.props.onCommit(collaborator);
35
39
  };
36
40
  this.renderCollaborators = collaborators => {
37
- const _this$props$value = this.props.value,
38
- value = _this$props$value === void 0 ? [] : _this$props$value;
41
+ const {
42
+ value = []
43
+ } = this.props;
39
44
  return collaborators.map(collaborator => {
40
45
  const isSelected = value.includes(collaborator.email);
41
46
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(Option, {
@@ -59,10 +64,13 @@ class MBCollaboratorEditor extends _react.default.Component {
59
64
  window.removeEventListener('popstate', this.handleHistoryBack, false);
60
65
  }
61
66
  render() {
62
- const _this$props = this.props,
63
- column = _this$props.column,
64
- collaborators = _this$props.collaborators;
65
- const searchVal = this.state.searchVal;
67
+ const {
68
+ column,
69
+ collaborators
70
+ } = this.props;
71
+ const {
72
+ searchVal
73
+ } = this.state;
66
74
  const displayCollaborators = searchVal ? (0, _dtableUtils.searchCollaborators)(collaborators, searchVal) : collaborators;
67
75
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileSelector.default, {
68
76
  onClose: this.props.onClose,
@@ -21,7 +21,9 @@ 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 collaborators = this.props.collaborators;
24
+ const {
25
+ collaborators
26
+ } = this.props;
25
27
  this.filteredCollaborators = (0, _dtableUtils.searchCollaborators)(collaborators, newSearchValue);
26
28
  this.setState({
27
29
  highlightIndex: this.filteredCollaborators.length > 0 ? 0 : -1,
@@ -32,7 +34,9 @@ class PCCollaboratorEditor extends _react.default.Component {
32
34
  this.props.onCommit(collaborator);
33
35
  };
34
36
  this.getFilterCollaborator = () => {
35
- const collaborators = this.props.collaborators;
37
+ const {
38
+ collaborators
39
+ } = this.props;
36
40
  const searchValue = this.state.searchValue.toLowerCase();
37
41
  if (!searchValue) return collaborators;
38
42
  return (0, _dtableUtils.searchCollaborators)(collaborators, searchValue);
@@ -73,10 +77,11 @@ class PCCollaboratorEditor extends _react.default.Component {
73
77
  this.onUpArrow = e => {
74
78
  e.preventDefault();
75
79
  e.stopPropagation();
76
- let _this$state = this.state,
77
- highlightIndex = _this$state.highlightIndex,
78
- maxItemNum = _this$state.maxItemNum,
79
- itemHeight = _this$state.itemHeight;
80
+ let {
81
+ highlightIndex,
82
+ maxItemNum,
83
+ itemHeight
84
+ } = this.state;
80
85
  if (highlightIndex > 0) {
81
86
  this.setState({
82
87
  highlightIndex: highlightIndex - 1
@@ -96,10 +101,11 @@ class PCCollaboratorEditor extends _react.default.Component {
96
101
  this.onDownArrow = e => {
97
102
  e.preventDefault();
98
103
  e.stopPropagation();
99
- let _this$state2 = this.state,
100
- highlightIndex = _this$state2.highlightIndex,
101
- maxItemNum = _this$state2.maxItemNum,
102
- itemHeight = _this$state2.itemHeight;
104
+ let {
105
+ highlightIndex,
106
+ maxItemNum,
107
+ itemHeight
108
+ } = this.state;
103
109
  if (highlightIndex < this.filteredCollaborators.length - 1) {
104
110
  this.setState({
105
111
  highlightIndex: highlightIndex + 1
@@ -119,11 +125,12 @@ class PCCollaboratorEditor extends _react.default.Component {
119
125
  this.onEsc = e => {
120
126
  e.preventDefault();
121
127
  e.stopPropagation();
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;
128
+ const {
129
+ isInModal,
130
+ value,
131
+ onCommitCancel,
132
+ onClose
133
+ } = this.props;
127
134
  if (isInModal) {
128
135
  onClose && onClose();
129
136
  return;
@@ -165,10 +172,11 @@ class PCCollaboratorEditor extends _react.default.Component {
165
172
  }
166
173
  }
167
174
  if (!this.props.isInModal && this.ref) {
168
- const _this$ref$getBounding = this.ref.getBoundingClientRect(),
169
- bottom = _this$ref$getBounding.bottom;
175
+ const {
176
+ bottom
177
+ } = this.ref.getBoundingClientRect();
170
178
  if (bottom > window.innerHeight) {
171
- this.ref.style.top = "".concat(window.innerHeight - bottom, "px");
179
+ this.ref.style.top = `${window.innerHeight - bottom}px`;
172
180
  }
173
181
  }
174
182
  if (this.container && this.collaboratorItem) {
@@ -190,14 +198,15 @@ class PCCollaboratorEditor extends _react.default.Component {
190
198
  document.removeEventListener('keydown', this.onHotKey, true);
191
199
  }
192
200
  render() {
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;
201
+ const {
202
+ searchValue,
203
+ highlightIndex
204
+ } = this.state;
205
+ const {
206
+ isInModal,
207
+ value = [],
208
+ target
209
+ } = this.props;
201
210
  const dom = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
202
211
  className: "dtable-ui-editor-container dtable-ui-collaborator-editor-container",
203
212
  ref: ref => this.ref = ref,
@@ -20,11 +20,12 @@ class CollaboratorFormatter extends _react.default.PureComponent {
20
20
  constructor() {
21
21
  super(...arguments);
22
22
  this.getCollaborators = () => {
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;
23
+ let {
24
+ value,
25
+ collaborators,
26
+ enableDeleteCollaborator,
27
+ onDeleteCollaborator
28
+ } = this.props;
28
29
  if (!Array.isArray(value)) {
29
30
  value = [value];
30
31
  }
@@ -45,9 +46,10 @@ class CollaboratorFormatter extends _react.default.PureComponent {
45
46
  };
46
47
  }
47
48
  render() {
48
- const _this$props2 = this.props,
49
- containerClassName = _this$props2.containerClassName,
50
- value = _this$props2.value;
49
+ const {
50
+ containerClassName,
51
+ value
52
+ } = this.props;
51
53
  const classname = (0, _classnames.default)('dtable-ui cell-formatter-container collaborator-formatter', containerClassName);
52
54
  if (!value || Array.isArray(value) && value.length === 0) {
53
55
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -19,10 +19,11 @@ class CollaboratorItem extends _react.default.Component {
19
19
  };
20
20
  }
21
21
  render() {
22
- const _this$props = this.props,
23
- className = _this$props.className,
24
- collaborator = _this$props.collaborator,
25
- enableDeleteCollaborator = _this$props.enableDeleteCollaborator;
22
+ const {
23
+ className,
24
+ collaborator,
25
+ enableDeleteCollaborator
26
+ } = this.props;
26
27
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
27
28
  title: collaborator.name,
28
29
  className: (0, _classnames.default)('dtable-ui collaborator-item', className),
@@ -1,24 +1,22 @@
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 _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/slicedToArray"));
10
9
  var _react = _interopRequireWildcard(require("react"));
11
10
  var _classnames = _interopRequireDefault(require("classnames"));
12
11
  require("./index.css");
13
12
  var _jsxRuntime = require("react/jsx-runtime");
14
13
  const CollapsibleSettingLayout = props => {
15
- const className = props.className,
16
- title = props.title,
17
- children = props.children;
18
- const _useState = (0, _react.useState)(true),
19
- _useState2 = (0, _slicedToArray2.default)(_useState, 2),
20
- isShowSettings = _useState2[0],
21
- setIsShowSettings = _useState2[1];
14
+ const {
15
+ className,
16
+ title,
17
+ children
18
+ } = props;
19
+ const [isShowSettings, setIsShowSettings] = (0, _react.useState)(true);
22
20
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
23
21
  className: (0, _classnames.default)('collapsible-setting-layout', className),
24
22
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
@@ -30,7 +28,7 @@ const CollapsibleSettingLayout = props => {
30
28
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
31
29
  className: "seatable-icon-btn",
32
30
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
33
- className: "dtable-font dtable-icon-right".concat(isShowSettings ? ' dtable-icon-spin' : '')
31
+ className: `dtable-font dtable-icon-right${isShowSettings ? ' dtable-icon-spin' : ''}`
34
32
  })
35
33
  })]
36
34
  }), isShowSettings && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -28,9 +28,10 @@ class Comment extends _react.PureComponent {
28
28
  const mdString = mdFile.replaceAll('&amp;', '&');
29
29
  _seafileEditor.processor.process(mdString).then(result => {
30
30
  let commentContent = String(result);
31
- let _this$props = this.props,
32
- isScrollBottom = _this$props.isScrollBottom,
33
- onScrollBottom = _this$props.onScrollBottom;
31
+ let {
32
+ isScrollBottom,
33
+ onScrollBottom
34
+ } = this.props;
34
35
  this.setState({
35
36
  commentContent: commentContent
36
37
  });
@@ -75,11 +76,15 @@ class Comment extends _react.PureComponent {
75
76
  });
76
77
  };
77
78
  this.isCommentUserExist = commentItem => {
78
- const collaborators = this.props.collaborators;
79
+ const {
80
+ collaborators
81
+ } = this.props;
79
82
  return !!collaborators.find(collaborator => collaborator.email === commentItem.author);
80
83
  };
81
84
  this.renderInfo = comment => {
82
- const collaborators = this.props.collaborators;
85
+ const {
86
+ collaborators
87
+ } = this.props;
83
88
  let authorInfo = Array.isArray(collaborators) && collaborators.find(collaborator => comment.author === collaborator.email);
84
89
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
85
90
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
@@ -125,16 +130,19 @@ class Comment extends _react.PureComponent {
125
130
  }
126
131
  }
127
132
  render() {
128
- const _this$props2 = this.props,
129
- comment = _this$props2.comment,
130
- onResolve = _this$props2.onResolve,
131
- onDelete = _this$props2.onDelete;
132
- const username = window.dtable.username;
133
+ const {
134
+ comment,
135
+ onResolve,
136
+ onDelete
137
+ } = this.props;
138
+ const {
139
+ username
140
+ } = window.dtable;
133
141
  const moreOperationsText = (0, _lang.getLocale)('More_operations');
134
142
  if (!this.isCommentUserExist(comment)) return null;
135
143
  const isShowDropdownMenu = comment.author === username || !comment.resolved;
136
144
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
137
- className: "dtable-ui-comment-container ".concat(comment.resolved ? 'dtable-ui-comment-container-resolved' : ''),
145
+ className: `dtable-ui-comment-container ${comment.resolved ? 'dtable-ui-comment-container-resolved' : ''}`,
138
146
  id: comment.id,
139
147
  children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
140
148
  className: "dtable-ui-comment-info",
@@ -5,18 +5,17 @@ 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
- var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectWithoutProperties"));
10
8
  var _react = _interopRequireDefault(require("react"));
11
9
  var _lang = require("../../lang");
12
10
  var _comment = _interopRequireDefault(require("./comment"));
13
11
  require("./index.css");
14
12
  var _jsxRuntime = require("react/jsx-runtime");
15
- const _excluded = ["comments", "isFirstLoading"];
16
13
  const Body = _ref => {
17
- let comments = _ref.comments,
18
- isFirstLoading = _ref.isFirstLoading,
19
- props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
14
+ let {
15
+ comments,
16
+ isFirstLoading,
17
+ ...props
18
+ } = _ref;
20
19
  if (comments.length === 0) {
21
20
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
22
21
  className: "dtable-ui-comments-empty",
@@ -25,10 +24,11 @@ const Body = _ref => {
25
24
  }
26
25
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
27
26
  children: comments.map((comment, index) => {
28
- return /*#__PURE__*/(0, _jsxRuntime.jsx)(_comment.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_comment.default, {
28
+ ...props,
29
29
  comment: comment,
30
30
  isScrollBottom: index === comments.length - 1 && isFirstLoading
31
- }), comment.id);
31
+ }, comment.id);
32
32
  })
33
33
  });
34
34
  };
@@ -40,7 +40,9 @@ class Btns extends _react.default.Component {
40
40
  this.props.onInsertElement(uploadFileMessage.url, 'image');
41
41
  };
42
42
  this.getCollaboratorContent = () => {
43
- const collaborators = this.props.collaborators;
43
+ const {
44
+ collaborators
45
+ } = this.props;
44
46
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
45
47
  className: "comment-popover-list",
46
48
  children: collaborators.map(participant => {
@@ -73,9 +75,10 @@ class Btns extends _react.default.Component {
73
75
  return nextProps.isAdding !== this.props.isAdding || nextState.isShowPopover !== this.state.isShowPopover;
74
76
  }
75
77
  render() {
76
- const _this$props = this.props,
77
- isAdding = _this$props.isAdding,
78
- canUpdateParticipants = _this$props.canUpdateParticipants;
78
+ const {
79
+ isAdding,
80
+ canUpdateParticipants
81
+ } = this.props;
79
82
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
80
83
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
81
84
  className: "dtable-ui-comment-input-btns",
@@ -17,8 +17,10 @@ class Footer extends _react.default.Component {
17
17
  constructor(_props) {
18
18
  super(_props);
19
19
  this.initParticipants = props => {
20
- const row = props.row,
21
- collaborators = props.collaborators;
20
+ const {
21
+ row,
22
+ collaborators
23
+ } = props;
22
24
  if (row._participants && Array.isArray(row._participants)) {
23
25
  let rowParticipants = row._participants.filter(Boolean);
24
26
  rowParticipants = rowParticipants.filter(participant => {
@@ -43,8 +45,12 @@ class Footer extends _react.default.Component {
43
45
  };
44
46
  this.addParticipant = email => {
45
47
  if (!email) return;
46
- const participants = this.state.participants;
47
- const collaborators = this.props.collaborators;
48
+ const {
49
+ participants
50
+ } = this.state;
51
+ const {
52
+ collaborators
53
+ } = this.props;
48
54
  const isExist = participants.some(participant => participant.email === email);
49
55
  if (isExist) return;
50
56
  let newParticipantList = participants.slice(0);
@@ -58,7 +64,7 @@ class Footer extends _react.default.Component {
58
64
  let start = 0;
59
65
  let newValue = '';
60
66
  while ((match = regex.exec(value)) !== null) {
61
- let notificationName = "".concat(match[1]);
67
+ let notificationName = `${match[1]}`;
62
68
  let substr = value.substring(start, match.index);
63
69
  start = regex.lastIndex;
64
70
  newValue += substr + notificationName;
@@ -100,7 +106,9 @@ class Footer extends _react.default.Component {
100
106
  const comment = this.convertComment(commentValue);
101
107
  if (!comment.trim()) return;
102
108
  this.addComment(comment);
103
- const username = window.dtable.username;
109
+ const {
110
+ username
111
+ } = window.dtable;
104
112
  this.addParticipant(username);
105
113
  };
106
114
  this.onInsertElement = (content, nodeType) => {
@@ -122,10 +130,13 @@ class Footer extends _react.default.Component {
122
130
  }
123
131
  }
124
132
  render() {
125
- const _this$state = this.state,
126
- isAdding = _this$state.isAdding,
127
- participants = _this$state.participants;
128
- const collaborators = this.props.collaborators;
133
+ const {
134
+ isAdding,
135
+ participants
136
+ } = this.state;
137
+ const {
138
+ collaborators
139
+ } = this.props;
129
140
  const canUpdateParticipants = Boolean(this.props.onChangeParticipants);
130
141
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
131
142
  className: "dtable-ui-comments-footer",