dtable-ui-component 6.0.49 → 6.0.50

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 (298) hide show
  1. package/lib/ActionSheet/index.js +94 -68
  2. package/lib/ActivityIndicator/index.js +36 -28
  3. package/lib/AsyncUserSelect/index.css +122 -0
  4. package/lib/AsyncUserSelect/index.js +260 -0
  5. package/lib/AsyncUserSelect/user-item.js +55 -0
  6. package/lib/AutoNumberFormatter/index.js +5 -3
  7. package/lib/Badge/index.js +12 -8
  8. package/lib/ButtonFormatter/index.js +15 -10
  9. package/lib/CTimeFormatter/index.js +5 -3
  10. package/lib/CheckboxEditor/index.js +22 -13
  11. package/lib/CheckboxEditor/mb-editor.js +7 -5
  12. package/lib/CheckboxEditor/pc-editor.js +7 -5
  13. package/lib/CheckboxFormatter/index.js +7 -5
  14. package/lib/CollaboratorEditor/index.js +24 -15
  15. package/lib/CollaboratorEditor/mb-editor/index.js +19 -13
  16. package/lib/CollaboratorEditor/pc-editor/index.js +50 -42
  17. package/lib/CollaboratorFormatter/index.js +8 -7
  18. package/lib/CollaboratorItem/index.js +21 -16
  19. package/lib/CollapsibleSettingLayout/index.js +17 -12
  20. package/lib/Comment/body/comment.js +78 -62
  21. package/lib/Comment/body/index.js +14 -11
  22. package/lib/Comment/footer/btns/index.js +68 -53
  23. package/lib/Comment/footer/index.js +29 -27
  24. package/lib/Comment/footer/input/index.js +44 -39
  25. package/lib/Comment/footer/input/participant/index.js +18 -13
  26. package/lib/Comment/footer/participants/index.js +31 -28
  27. package/lib/Comment/footer/participants/participant/index.js +18 -15
  28. package/lib/Comment/footer/participants/participant-select/index.js +66 -55
  29. package/lib/Comment/index.js +33 -28
  30. package/lib/CreatorFormatter/index.js +8 -7
  31. package/lib/DTableColorPicker/ColorPickerPortal/index.js +5 -3
  32. package/lib/DTableColorPicker/index.js +135 -99
  33. package/lib/DTableCommonAddTool/index.js +10 -7
  34. package/lib/DTableCustomFooter/index.js +5 -3
  35. package/lib/DTableCustomizeCollaboratorSelect/index.js +38 -32
  36. package/lib/DTableCustomizeSelect/index.js +51 -44
  37. package/lib/DTableEmptyTip/index.js +20 -16
  38. package/lib/DTableFiltersPopover/index.js +71 -61
  39. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +74 -57
  40. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +64 -49
  41. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +49 -41
  42. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +57 -47
  43. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +35 -31
  44. package/lib/DTableFiltersPopover/widgets/filter-group.js +38 -32
  45. package/lib/DTableFiltersPopover/widgets/filter-item.js +125 -106
  46. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +18 -17
  47. package/lib/DTableFiltersPopover/widgets/rate-item.js +12 -9
  48. package/lib/DTableGroupSelect/index.js +52 -44
  49. package/lib/DTableGroupSelect/option.js +5 -3
  50. package/lib/DTableGroupSelect/select-option-group.js +31 -25
  51. package/lib/DTableModalHeader/index.js +13 -9
  52. package/lib/DTablePopover/index.js +9 -6
  53. package/lib/DTableRadio/index.js +20 -17
  54. package/lib/DTableRadioGroup/index.js +21 -18
  55. package/lib/DTableSearchInput/index.js +22 -18
  56. package/lib/DTableSelect/dtable-select-label.js +12 -7
  57. package/lib/DTableSelect/index.js +2 -1
  58. package/lib/DTableSelect/utils.js +34 -20
  59. package/lib/DTableSwitch/index.js +25 -17
  60. package/lib/DateEditor/index.js +25 -16
  61. package/lib/DateEditor/mb-editor/index.js +90 -68
  62. package/lib/DateEditor/pc-editor.js +38 -34
  63. package/lib/DateFormatter/index.js +5 -3
  64. package/lib/DeleteTip/index.js +29 -20
  65. package/lib/DepartmentMultipleSelectEditor/index.js +57 -49
  66. package/lib/DepartmentSelectFilter/index.js +8 -1
  67. package/lib/DepartmentSingleSelectEditor/index.js +22 -13
  68. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +75 -55
  69. package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +78 -61
  70. package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +14 -11
  71. package/lib/DepartmentSingleSelectFormatter/index.js +13 -9
  72. package/lib/DigitalSignEditor/index.js +22 -13
  73. package/lib/DigitalSignEditor/mb-editor/index.js +39 -24
  74. package/lib/DigitalSignEditor/pc-editor/index.js +44 -30
  75. package/lib/DigitalSignEditor/signature-board/index.js +19 -15
  76. package/lib/DigitalSignFormatter/index.js +23 -19
  77. package/lib/Drawer/index.js +4 -1
  78. package/lib/DurationEditor/index.js +2 -1
  79. package/lib/DurationFormatter/index.js +5 -3
  80. package/lib/EditEditorButton/index.js +5 -3
  81. package/lib/EmailEditor/index.js +2 -1
  82. package/lib/EmailFormatter/index.js +5 -3
  83. package/lib/FieldDisplaySetting/field-item.js +25 -19
  84. package/lib/FieldDisplaySetting/index.js +47 -38
  85. package/lib/FileEditor/files-previewer/index.js +22 -13
  86. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +43 -28
  87. package/lib/FileEditor/files-previewer/mb-previewer/index.js +24 -21
  88. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +30 -24
  89. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +13 -11
  90. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +81 -63
  91. package/lib/FileEditor/files-previewer/pc-previewer/index.js +81 -65
  92. package/lib/FileEditor/index.js +22 -13
  93. package/lib/FileEditor/mb-editor/index.js +43 -31
  94. package/lib/FileEditor/pc-editor/addition-previewer/index.js +27 -20
  95. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +107 -81
  96. package/lib/FileEditor/pc-editor/index.js +46 -36
  97. package/lib/FileFormatter/index.js +40 -36
  98. package/lib/FileItemFormatter/index.js +2 -1
  99. package/lib/FileUploader/index.js +22 -20
  100. package/lib/FormulaFormatter/index.js +21 -14
  101. package/lib/GeolocationEditor/index.js +28 -19
  102. package/lib/GeolocationEditor/mb-editor/country-editor.js +42 -27
  103. package/lib/GeolocationEditor/mb-editor/index.js +22 -14
  104. package/lib/GeolocationEditor/mb-editor/location-editor.js +54 -34
  105. package/lib/GeolocationEditor/mb-editor/map-editor/index.js +102 -74
  106. package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +144 -110
  107. package/lib/GeolocationEditor/mb-editor/province-city-editor.js +42 -27
  108. package/lib/GeolocationEditor/mb-editor/province-editor.js +42 -27
  109. package/lib/GeolocationEditor/pc-editor/country-editor.js +37 -30
  110. package/lib/GeolocationEditor/pc-editor/index.js +26 -17
  111. package/lib/GeolocationEditor/pc-editor/location-editor.js +121 -95
  112. package/lib/GeolocationEditor/pc-editor/map-editor/index.js +99 -74
  113. package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +99 -76
  114. package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +119 -91
  115. package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +102 -82
  116. package/lib/GeolocationEditor/pc-editor/province-city-editor.js +89 -69
  117. package/lib/GeolocationEditor/pc-editor/province-editor.js +30 -25
  118. package/lib/GeolocationEditor/pc-editor/selector-header-item.js +9 -5
  119. package/lib/GeolocationEditor/pc-editor/selector-list.js +15 -13
  120. package/lib/GeolocationFormatter/index.js +5 -3
  121. package/lib/HtmlLongTextFormatter/index.js +2 -1
  122. package/lib/Icon/index.js +8 -5
  123. package/lib/IconButton/index.js +9 -6
  124. package/lib/ImageEditor/images-previewer/image-preview/index.js +52 -44
  125. package/lib/ImageEditor/images-previewer/index.js +35 -32
  126. package/lib/ImageEditor/index.js +22 -13
  127. package/lib/ImageEditor/mb-editor/index.js +43 -31
  128. package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +19 -15
  129. package/lib/ImageEditor/pc-editor/addition-previewer/index.js +32 -24
  130. package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +101 -76
  131. package/lib/ImageEditor/pc-editor/images-previewer/index.js +33 -30
  132. package/lib/ImageEditor/pc-editor/index.js +44 -32
  133. package/lib/ImageFormatter/images-lazy-load.js +12 -10
  134. package/lib/ImageFormatter/index.js +40 -34
  135. package/lib/ImagePreviewerLightbox/index.js +12 -8
  136. package/lib/ImageThumbnail/index.js +46 -38
  137. package/lib/InputItem/custom-input.js +23 -18
  138. package/lib/InputItem/custom-keyboard.js +65 -44
  139. package/lib/InputItem/index.js +66 -56
  140. package/lib/InputItem/input.js +5 -3
  141. package/lib/LastModifierFormatter/index.js +8 -7
  142. package/lib/LinkEditor/index.js +38 -32
  143. package/lib/LinkEditor/link-editor-option.js +25 -20
  144. package/lib/LinkEditor/mb-popover/index.js +53 -41
  145. package/lib/LinkEditor/pc-popover/index.js +41 -33
  146. package/lib/LinkFormatter/index.js +13 -10
  147. package/lib/List/index.js +15 -9
  148. package/lib/List/list-item.js +32 -23
  149. package/lib/Loading/index.js +2 -1
  150. package/lib/LongTextFormatter/index.js +3 -2
  151. package/lib/MBEditorHeader/index.js +19 -14
  152. package/lib/MTimeFormatter/index.js +5 -3
  153. package/lib/MobileFullScreenPage/body/index.js +5 -3
  154. package/lib/MobileFullScreenPage/header/index.js +21 -16
  155. package/lib/MobileFullScreenPage/index.js +11 -8
  156. package/lib/MobileModal/index.js +6 -3
  157. package/lib/MobileOperationSheet/index.js +28 -18
  158. package/lib/MobileSelector/empty/index.js +5 -3
  159. package/lib/MobileSelector/index.js +18 -12
  160. package/lib/MobileSelector/option/index.js +17 -12
  161. package/lib/MobileSelector/options/index.js +5 -3
  162. package/lib/MobileSelector/search/index.js +10 -8
  163. package/lib/MobileUpload/index.js +87 -67
  164. package/lib/Modal/alert.js +8 -5
  165. package/lib/Modal/modal.js +19 -15
  166. package/lib/Modal/operation.js +2 -1
  167. package/lib/Modal/prompt.js +74 -54
  168. package/lib/MultipleSelectEditor/index.js +4 -2
  169. package/lib/MultipleSelectFormatter/index.js +8 -7
  170. package/lib/NotificationPopover/index.js +43 -32
  171. package/lib/NumberEditor/index.js +2 -1
  172. package/lib/NumberFormatter/index.js +5 -3
  173. package/lib/Picker/AbstractPicker.js +26 -22
  174. package/lib/Picker/index.js +2 -1
  175. package/lib/Popover/index.js +8 -5
  176. package/lib/Popover/item.js +22 -15
  177. package/lib/Progress/index.js +12 -10
  178. package/lib/Radio/Radio.js +11 -7
  179. package/lib/Radio/RadioItem.js +9 -3
  180. package/lib/RateFormatter/index.js +7 -6
  181. package/lib/RoleStatusEditor/index.js +36 -31
  182. package/lib/RowExpand/index.js +16 -9
  183. package/lib/RowExpandDialog/body/index.js +52 -41
  184. package/lib/RowExpandDialog/column-content/index.js +34 -25
  185. package/lib/RowExpandDialog/header/index.js +28 -21
  186. package/lib/RowExpandDialog/index.js +40 -27
  187. package/lib/RowExpandEditor/add-btn/index.js +16 -9
  188. package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +5 -3
  189. package/lib/RowExpandEditor/add-btn/pc-add-btn/index.js +8 -5
  190. package/lib/RowExpandEditor/checkbox-editor/index.js +16 -9
  191. package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +10 -8
  192. package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +2 -1
  193. package/lib/RowExpandEditor/collaborator-editor/index.js +16 -9
  194. package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +19 -17
  195. package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +52 -47
  196. package/lib/RowExpandEditor/date-editor/index.js +16 -9
  197. package/lib/RowExpandEditor/date-editor/mb-editor.js +20 -15
  198. package/lib/RowExpandEditor/date-editor/pc-editor.js +24 -21
  199. package/lib/RowExpandEditor/department-editor/index.js +16 -9
  200. package/lib/RowExpandEditor/department-editor/mb-editor.js +27 -22
  201. package/lib/RowExpandEditor/department-editor/pc-editor.js +35 -29
  202. package/lib/RowExpandEditor/digital-sign-editor/index.js +16 -9
  203. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +19 -16
  204. package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +34 -32
  205. package/lib/RowExpandEditor/duration-editor/index.js +16 -9
  206. package/lib/RowExpandEditor/duration-editor/mb-editor.js +15 -12
  207. package/lib/RowExpandEditor/duration-editor/pc-editor.js +17 -13
  208. package/lib/RowExpandEditor/email-editor/index.js +16 -9
  209. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +19 -17
  210. package/lib/RowExpandEditor/email-editor/pc-editor/index.js +20 -18
  211. package/lib/RowExpandEditor/file-editor/index.js +16 -9
  212. package/lib/RowExpandEditor/file-editor/mb-editor/index.js +21 -16
  213. package/lib/RowExpandEditor/file-editor/pc-editor/index.js +22 -20
  214. package/lib/RowExpandEditor/geolocation-editor/index.js +16 -9
  215. package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +12 -9
  216. package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +20 -17
  217. package/lib/RowExpandEditor/image-editor/index.js +16 -9
  218. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +21 -16
  219. package/lib/RowExpandEditor/image-editor/pc-editor/index.js +29 -25
  220. package/lib/RowExpandEditor/index.js +4 -2
  221. package/lib/RowExpandEditor/long-text-editor/index.js +16 -9
  222. package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +27 -16
  223. package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +19 -16
  224. package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +22 -18
  225. package/lib/RowExpandEditor/multiple-select-editor/index.js +16 -9
  226. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +26 -23
  227. package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +81 -67
  228. package/lib/RowExpandEditor/number-editor/index.js +16 -9
  229. package/lib/RowExpandEditor/number-editor/mb-editor/index.js +10 -7
  230. package/lib/RowExpandEditor/number-editor/pc-editor.js +6 -4
  231. package/lib/RowExpandEditor/rate-editor/index.js +16 -9
  232. package/lib/RowExpandEditor/rate-editor/mb-editor.js +10 -8
  233. package/lib/RowExpandEditor/rate-editor/pc-editor.js +11 -9
  234. package/lib/RowExpandEditor/right-angle/index.js +8 -6
  235. package/lib/RowExpandEditor/single-select-editor/index.js +16 -9
  236. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +30 -23
  237. package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +42 -34
  238. package/lib/RowExpandEditor/text-editor/index.js +16 -9
  239. package/lib/RowExpandEditor/text-editor/mb-editor/index.js +11 -9
  240. package/lib/RowExpandEditor/text-editor/pc-editor/index.js +16 -12
  241. package/lib/RowExpandEditor/url-editor/index.js +16 -9
  242. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +19 -17
  243. package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -18
  244. package/lib/RowExpandFormatter/department-formatter/index.js +14 -5
  245. package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -1
  246. package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +15 -11
  247. package/lib/RowExpandFormatter/email-formatter/index.js +11 -8
  248. package/lib/RowExpandFormatter/file-formatter/index.js +15 -14
  249. package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +43 -36
  250. package/lib/RowExpandFormatter/formula-formatter/index.js +37 -29
  251. package/lib/RowExpandFormatter/image-formatter/index.js +30 -27
  252. package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +47 -39
  253. package/lib/RowExpandFormatter/index.js +131 -114
  254. package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +2 -1
  255. package/lib/RowExpandFormatter/link-formatter/index.js +70 -67
  256. package/lib/RowExpandFormatter/rate-formatter/index.js +7 -6
  257. package/lib/RowExpandFormatter/url-formatter/index.js +11 -8
  258. package/lib/RowExpandView/body/index.js +38 -32
  259. package/lib/RowExpandView/column-content/index.js +10 -5
  260. package/lib/RowExpandView/index.js +27 -16
  261. package/lib/SelectItem/index.js +16 -12
  262. package/lib/SelectOptionGroup/index.js +39 -32
  263. package/lib/SelectOptionGroup/option.js +5 -3
  264. package/lib/SelectedDepartments/index.js +54 -44
  265. package/lib/SimpleLongTextFormatter/index.js +39 -30
  266. package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +11 -8
  267. package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -2
  268. package/lib/SingleSelectEditor/index.js +4 -2
  269. package/lib/SingleSelectFormatter/index.js +6 -4
  270. package/lib/SvgIcon/index.js +4 -1
  271. package/lib/TabBar/Tab.js +27 -20
  272. package/lib/TabBar/index.js +25 -21
  273. package/lib/Tabs/index.js +8 -5
  274. package/lib/TextEditor/index.js +21 -18
  275. package/lib/TextFormatter/index.js +5 -3
  276. package/lib/TextareaItem/index.js +35 -26
  277. package/lib/Toast/index.js +16 -10
  278. package/lib/UploadProgress/index.js +2 -1
  279. package/lib/UrlEditor/index.js +2 -1
  280. package/lib/UrlFormatter/index.js +5 -3
  281. package/lib/formatterConfig/base-formatter-config.js +24 -23
  282. package/lib/formatterConfig/index.js +3 -2
  283. package/lib/index.js +7 -0
  284. package/lib/locales/de.json +5 -1
  285. package/lib/locales/en.json +5 -1
  286. package/lib/locales/es.json +6 -2
  287. package/lib/locales/fr.json +5 -1
  288. package/lib/locales/pt.json +5 -1
  289. package/lib/locales/ru.json +5 -1
  290. package/lib/locales/zh-CN.json +5 -1
  291. package/lib/select-editor/index.js +22 -13
  292. package/lib/select-editor/mb-editor/index.js +22 -16
  293. package/lib/select-editor/pc-editor/index.js +74 -60
  294. package/lib/toaster/alert.js +25 -16
  295. package/lib/toaster/toast.js +27 -23
  296. package/lib/toaster/toastManager.js +16 -13
  297. package/lib/toaster/toaster.js +2 -1
  298. package/package.json +2 -2
@@ -8,6 +8,7 @@ exports.default = void 0;
8
8
  var _react = _interopRequireDefault(require("react"));
9
9
  var _classnames = _interopRequireDefault(require("classnames"));
10
10
  require("./index.css");
11
+ var _jsxRuntime = require("react/jsx-runtime");
11
12
  class CollaboratorItem extends _react.default.Component {
12
13
  constructor() {
13
14
  super(...arguments);
@@ -23,23 +24,27 @@ class CollaboratorItem extends _react.default.Component {
23
24
  collaborator,
24
25
  enableDeleteCollaborator
25
26
  } = this.props;
26
- return /*#__PURE__*/_react.default.createElement("div", {
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
27
28
  title: collaborator.name,
28
- className: (0, _classnames.default)('dtable-ui collaborator-item', className)
29
- }, /*#__PURE__*/_react.default.createElement("span", {
30
- className: "collaborator-avatar"
31
- }, /*#__PURE__*/_react.default.createElement("img", {
32
- className: "collaborator-avatar-icon",
33
- alt: collaborator.name,
34
- src: collaborator.avatar_url
35
- })), /*#__PURE__*/_react.default.createElement("span", {
36
- className: "collaborator-name"
37
- }, collaborator.name), enableDeleteCollaborator && /*#__PURE__*/_react.default.createElement("span", {
38
- className: "collaborator-remove",
39
- onClick: this.onDeleteCollaborator
40
- }, /*#__PURE__*/_react.default.createElement("i", {
41
- className: "dtable-font dtable-icon-fork-number"
42
- })));
29
+ className: (0, _classnames.default)('dtable-ui collaborator-item', className),
30
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
31
+ className: "collaborator-avatar",
32
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
33
+ className: "collaborator-avatar-icon",
34
+ alt: collaborator.name,
35
+ src: collaborator.avatar_url
36
+ })
37
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
38
+ className: "collaborator-name",
39
+ children: collaborator.name
40
+ }), enableDeleteCollaborator && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
41
+ className: "collaborator-remove",
42
+ onClick: this.onDeleteCollaborator,
43
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
44
+ className: "dtable-font dtable-icon-fork-number"
45
+ })
46
+ })]
47
+ });
43
48
  }
44
49
  }
45
50
  CollaboratorItem.defaultProps = {
@@ -9,6 +9,7 @@ exports.default = void 0;
9
9
  var _react = _interopRequireWildcard(require("react"));
10
10
  var _classnames = _interopRequireDefault(require("classnames"));
11
11
  require("./index.css");
12
+ var _jsxRuntime = require("react/jsx-runtime");
12
13
  const CollapsibleSettingLayout = props => {
13
14
  const {
14
15
  className,
@@ -16,17 +17,21 @@ const CollapsibleSettingLayout = props => {
16
17
  children
17
18
  } = props;
18
19
  const [isShowSettings, setIsShowSettings] = (0, _react.useState)(true);
19
- return /*#__PURE__*/_react.default.createElement("div", {
20
- className: (0, _classnames.default)('collapsible-setting-layout', className)
21
- }, /*#__PURE__*/_react.default.createElement("div", {
22
- className: "collapsible-setting-layout-header seatable-collapse-header w-100 d-flex align-items-center",
23
- onClick: () => setIsShowSettings(!isShowSettings)
24
- }, /*#__PURE__*/_react.default.createElement("span", {
25
- className: "collapsible-setting-layout-title"
26
- }, title), /*#__PURE__*/_react.default.createElement("i", {
27
- className: "dtable-font dtable-icon-right".concat(isShowSettings ? ' dtable-icon-spin' : '')
28
- })), isShowSettings && /*#__PURE__*/_react.default.createElement("div", {
29
- className: "collapsible-setting-layout-body mt-3 pl-2"
30
- }, children || ''));
20
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
21
+ className: (0, _classnames.default)('collapsible-setting-layout', className),
22
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
23
+ className: "collapsible-setting-layout-header seatable-collapse-header w-100 d-flex align-items-center",
24
+ onClick: () => setIsShowSettings(!isShowSettings),
25
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
26
+ className: "collapsible-setting-layout-title",
27
+ children: title
28
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
29
+ className: "dtable-font dtable-icon-right".concat(isShowSettings ? ' dtable-icon-spin' : '')
30
+ })]
31
+ }), isShowSettings && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
32
+ className: "collapsible-setting-layout-body mt-3 pl-2",
33
+ children: children || ''
34
+ })]
35
+ });
31
36
  };
32
37
  var _default = exports.default = CollapsibleSettingLayout;
@@ -11,6 +11,7 @@ var _reactstrap = require("reactstrap");
11
11
  var _seafileEditor = require("@seafile/seafile-editor");
12
12
  var _ImagePreviewerLightbox = _interopRequireDefault(require("../../ImagePreviewerLightbox"));
13
13
  var _lang = require("../../lang");
14
+ var _jsxRuntime = require("react/jsx-runtime");
14
15
  class Comment extends _react.PureComponent {
15
16
  constructor(props) {
16
17
  super(props);
@@ -83,17 +84,22 @@ class Comment extends _react.PureComponent {
83
84
  collaborators
84
85
  } = this.props;
85
86
  let authorInfo = Array.isArray(collaborators) && collaborators.find(collaborator => comment.author === collaborator.email);
86
- return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("img", {
87
- className: "avatar",
88
- src: authorInfo.avatar_url,
89
- alt: ""
90
- }), /*#__PURE__*/_react.default.createElement("div", {
91
- className: "reviewer-info"
92
- }, /*#__PURE__*/_react.default.createElement("div", {
93
- className: "reviewer-name"
94
- }, authorInfo.name), /*#__PURE__*/_react.default.createElement("div", {
95
- className: "review-time"
96
- }, comment.create_at)));
87
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
88
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
89
+ className: "avatar",
90
+ src: authorInfo.avatar_url,
91
+ alt: ""
92
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
93
+ className: "reviewer-info",
94
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
95
+ className: "reviewer-name",
96
+ children: authorInfo.name
97
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
98
+ className: "review-time",
99
+ children: comment.create_at
100
+ })]
101
+ })]
102
+ });
97
103
  };
98
104
  this.onCommentClick = e => {
99
105
  // click participant link, page shouldn't jump
@@ -133,58 +139,68 @@ class Comment extends _react.PureComponent {
133
139
  const moreOperationsText = (0, _lang.getLocale)('More_operations');
134
140
  if (!this.isCommentUserExist(comment)) return null;
135
141
  const isShowDropdownMenu = comment.author === username || !comment.resolved;
136
- return /*#__PURE__*/_react.default.createElement("div", {
142
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
137
143
  className: "dtable-ui-comment-container ".concat(comment.resolved ? 'dtable-ui-comment-container-resolved' : ''),
138
- id: comment.id
139
- }, /*#__PURE__*/_react.default.createElement("div", {
140
- className: "dtable-ui-comment-info"
141
- }, this.renderInfo(comment), isShowDropdownMenu && /*#__PURE__*/_react.default.createElement(_reactstrap.Dropdown, {
142
- isOpen: this.state.dropdownOpen,
143
- size: "sm",
144
- className: "dtable-ui-comments-dropdown",
145
- toggle: this.toggleDropDownMenu
146
- }, /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownToggle, {
147
- className: "dtable-ui-comments-dropdown-btn",
148
- role: "button",
149
- "data-toggle": "dropdown",
150
- title: moreOperationsText,
151
- "aria-label": moreOperationsText,
152
- "aria-expanded": this.state.dropdownOpen
153
- }, /*#__PURE__*/_react.default.createElement("i", {
154
- className: "dtable-font dtable-icon-more-level",
155
- title: moreOperationsText,
156
- "aria-label": moreOperationsText
157
- })), /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownMenu, {
158
- className: "dtable-dropdown-menu dropdown-menu dtable-ui-comment-dropdown-list"
159
- }, !comment.resolved && onResolve && /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownItem, {
160
- onClick: event => onResolve(event, comment.id)
161
- }, /*#__PURE__*/_react.default.createElement("span", {
162
- className: "comment-icon dtable-font dtable-icon-mark mr-2"
163
- }), /*#__PURE__*/_react.default.createElement("span", {
164
- className: "comment-text"
165
- }, (0, _lang.getLocale)('Mark_as_resolved'))), comment.author === username && onDelete && /*#__PURE__*/_react.default.createElement(_reactstrap.DropdownItem, {
166
- onClick: event => onDelete(event, comment.id)
167
- }, /*#__PURE__*/_react.default.createElement("span", {
168
- className: "comment-icon dtable-font dtable-icon-delete mr-2"
169
- }), /*#__PURE__*/_react.default.createElement("span", {
170
- className: "comment-text"
171
- }, (0, _lang.getLocale)('Delete')))))), /*#__PURE__*/_react.default.createElement("div", {
172
- className: "dtable-ui-comment-content",
173
- onClick: e => this.onCommentClick(e)
174
- }, /*#__PURE__*/_react.default.createElement("div", {
175
- className: "dtable-ui-comment-content-container",
176
- ref: ref => this.commentContentRef = ref,
177
- onClick: this.handleImageZoom,
178
- dangerouslySetInnerHTML: {
179
- __html: this.state.commentContent
180
- }
181
- })), this.state.isShowLargeImage && /*#__PURE__*/_react.default.createElement(_ImagePreviewerLightbox.default, {
182
- imageItems: this.state.imageUrlList,
183
- imageIndex: this.state.largeImageIndex,
184
- closeImagePopup: this.hideLargeImage,
185
- moveToPrevImage: this.movePrev,
186
- moveToNextImage: this.moveNext
187
- }));
144
+ id: comment.id,
145
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
146
+ className: "dtable-ui-comment-info",
147
+ children: [this.renderInfo(comment), isShowDropdownMenu && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Dropdown, {
148
+ isOpen: this.state.dropdownOpen,
149
+ size: "sm",
150
+ className: "dtable-ui-comments-dropdown",
151
+ toggle: this.toggleDropDownMenu,
152
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.DropdownToggle, {
153
+ className: "dtable-ui-comments-dropdown-btn",
154
+ role: "button",
155
+ "data-toggle": "dropdown",
156
+ title: moreOperationsText,
157
+ "aria-label": moreOperationsText,
158
+ "aria-expanded": this.state.dropdownOpen,
159
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
160
+ className: "dtable-font dtable-icon-more-level",
161
+ title: moreOperationsText,
162
+ "aria-label": moreOperationsText
163
+ })
164
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.DropdownMenu, {
165
+ className: "dtable-dropdown-menu dropdown-menu dtable-ui-comment-dropdown-list",
166
+ children: [!comment.resolved && onResolve && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.DropdownItem, {
167
+ onClick: event => onResolve(event, comment.id),
168
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
169
+ className: "comment-icon dtable-font dtable-icon-mark mr-2"
170
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
171
+ className: "comment-text",
172
+ children: (0, _lang.getLocale)('Mark_as_resolved')
173
+ })]
174
+ }), comment.author === username && onDelete && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.DropdownItem, {
175
+ onClick: event => onDelete(event, comment.id),
176
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
177
+ className: "comment-icon dtable-font dtable-icon-delete mr-2"
178
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
179
+ className: "comment-text",
180
+ children: (0, _lang.getLocale)('Delete')
181
+ })]
182
+ })]
183
+ })]
184
+ })]
185
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
186
+ className: "dtable-ui-comment-content",
187
+ onClick: e => this.onCommentClick(e),
188
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
189
+ className: "dtable-ui-comment-content-container",
190
+ ref: ref => this.commentContentRef = ref,
191
+ onClick: this.handleImageZoom,
192
+ dangerouslySetInnerHTML: {
193
+ __html: this.state.commentContent
194
+ }
195
+ })
196
+ }), this.state.isShowLargeImage && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImagePreviewerLightbox.default, {
197
+ imageItems: this.state.imageUrlList,
198
+ imageIndex: this.state.largeImageIndex,
199
+ closeImagePopup: this.hideLargeImage,
200
+ moveToPrevImage: this.movePrev,
201
+ moveToNextImage: this.moveNext
202
+ })]
203
+ });
188
204
  }
189
205
  }
190
206
  var _default = exports.default = Comment;
@@ -9,6 +9,7 @@ var _react = _interopRequireDefault(require("react"));
9
9
  var _lang = require("../../lang");
10
10
  var _comment = _interopRequireDefault(require("./comment"));
11
11
  require("./index.css");
12
+ var _jsxRuntime = require("react/jsx-runtime");
12
13
  const Body = _ref => {
13
14
  let {
14
15
  comments,
@@ -16,17 +17,19 @@ const Body = _ref => {
16
17
  ...props
17
18
  } = _ref;
18
19
  if (comments.length === 0) {
19
- return /*#__PURE__*/_react.default.createElement("div", {
20
- className: "dtable-ui-comments-empty"
21
- }, (0, _lang.getLocale)('No_comment_yet'));
20
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
21
+ className: "dtable-ui-comments-empty",
22
+ children: (0, _lang.getLocale)('No_comment_yet')
23
+ });
22
24
  }
23
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, comments.map((comment, index) => {
24
- return /*#__PURE__*/_react.default.createElement(_comment.default, Object.assign({
25
- key: comment.id
26
- }, props, {
27
- comment: comment,
28
- isScrollBottom: index === comments.length - 1 && isFirstLoading
29
- }));
30
- }));
25
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
26
+ children: comments.map((comment, index) => {
27
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_comment.default, {
28
+ ...props,
29
+ comment: comment,
30
+ isScrollBottom: index === comments.length - 1 && isFirstLoading
31
+ }, comment.id);
32
+ })
33
+ });
31
34
  };
32
35
  var _default = exports.default = Body;
@@ -13,6 +13,7 @@ var _DTablePopover = _interopRequireDefault(require("../../../DTablePopover"));
13
13
  var _Loading = _interopRequireDefault(require("../../../Loading"));
14
14
  var _lang = require("../../../lang");
15
15
  require("./index.css");
16
+ var _jsxRuntime = require("react/jsx-runtime");
16
17
  class Btns extends _react.default.Component {
17
18
  constructor(props) {
18
19
  super(props);
@@ -42,25 +43,29 @@ class Btns extends _react.default.Component {
42
43
  const {
43
44
  collaborators
44
45
  } = this.props;
45
- return /*#__PURE__*/_react.default.createElement("div", {
46
- className: "comment-popover-list"
47
- }, collaborators.map(participant => {
48
- return /*#__PURE__*/_react.default.createElement("div", {
49
- key: participant.email,
50
- className: "comment-participant-item",
51
- onClick: this.onChangeInputValue.bind(this, participant)
52
- }, /*#__PURE__*/_react.default.createElement("div", {
53
- className: "comment-participant-container"
54
- }, /*#__PURE__*/_react.default.createElement("div", {
55
- className: "comment-participant text-truncate"
56
- }, /*#__PURE__*/_react.default.createElement("img", {
57
- className: "comment-dtable-ui-participant-avatar ml-2",
58
- alt: participant.name,
59
- src: participant.avatar_url
60
- }), /*#__PURE__*/_react.default.createElement("span", {
61
- className: "comment-participant-name text-truncate"
62
- }, participant.name))));
63
- }));
46
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
47
+ className: "comment-popover-list",
48
+ children: collaborators.map(participant => {
49
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
50
+ className: "comment-participant-item",
51
+ onClick: this.onChangeInputValue.bind(this, participant),
52
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
53
+ className: "comment-participant-container",
54
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
55
+ className: "comment-participant text-truncate",
56
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
57
+ className: "comment-dtable-ui-participant-avatar ml-2",
58
+ alt: participant.name,
59
+ src: participant.avatar_url
60
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
61
+ className: "comment-participant-name text-truncate",
62
+ children: participant.name
63
+ })]
64
+ })
65
+ })
66
+ }, participant.email);
67
+ })
68
+ });
64
69
  };
65
70
  this.state = {
66
71
  isShowPopover: false
@@ -74,40 +79,50 @@ class Btns extends _react.default.Component {
74
79
  isAdding,
75
80
  canUpdateParticipants
76
81
  } = this.props;
77
- return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
78
- className: "dtable-ui-comment-input-btns"
79
- }, /*#__PURE__*/_react.default.createElement("div", {
80
- className: "d-flex justify-content-between dtable-ui-comment-input-btns-container"
81
- }, /*#__PURE__*/_react.default.createElement("div", {
82
- className: "dtable-ui-comment-input-btns-content",
83
- ref: ref => this.toolRef = ref
84
- }, /*#__PURE__*/_react.default.createElement(_FileUploader.default, {
85
- uploadType: "image",
86
- className: "dtable-ui-comment-image-upload",
87
- onFileUploadSuccess: this.onFileUploadSuccess,
88
- uploadFile: this.props.uploadFile
89
- }, /*#__PURE__*/_react.default.createElement("span", {
90
- "aria-hidden": "true",
91
- className: "dtable-font dtable-icon-picture-linear"
92
- })), canUpdateParticipants && /*#__PURE__*/_react.default.createElement("span", {
93
- className: "dtable-ui-comment-collaborator-tip",
94
- onClick: this.onHandleCollaboratorTip
95
- }, "@")), isAdding ? /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
96
- className: "dtable-ui-comment-submit",
97
- color: "primary",
98
- size: "sm",
99
- disabled: true
100
- }, /*#__PURE__*/_react.default.createElement(_Loading.default, null)) : /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
101
- className: "dtable-ui-comment-submit",
102
- color: "primary",
103
- size: "sm",
104
- onClick: this.onSubmit,
105
- tabIndex: -1
106
- }, (0, _lang.getLocale)('Submit')))), this.state.isShowPopover && /*#__PURE__*/_react.default.createElement(_DTablePopover.default, {
107
- target: this.toolRef,
108
- hideDTablePopover: this.onHideCollaboratorTip,
109
- hideDTablePopoverWithEsc: this.onHideCollaboratorTip
110
- }, this.getCollaboratorContent()));
82
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
83
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
84
+ className: "dtable-ui-comment-input-btns",
85
+ children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
86
+ className: "d-flex justify-content-between dtable-ui-comment-input-btns-container",
87
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
88
+ className: "dtable-ui-comment-input-btns-content",
89
+ ref: ref => this.toolRef = ref,
90
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_FileUploader.default, {
91
+ uploadType: "image",
92
+ className: "dtable-ui-comment-image-upload",
93
+ onFileUploadSuccess: this.onFileUploadSuccess,
94
+ uploadFile: this.props.uploadFile,
95
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
96
+ "aria-hidden": "true",
97
+ className: "dtable-font dtable-icon-picture-linear"
98
+ })
99
+ }), canUpdateParticipants && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
100
+ className: "dtable-ui-comment-collaborator-tip",
101
+ onClick: this.onHandleCollaboratorTip,
102
+ children: "@"
103
+ })]
104
+ }), isAdding ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
105
+ className: "dtable-ui-comment-submit",
106
+ color: "primary",
107
+ size: "sm",
108
+ disabled: true,
109
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {})
110
+ }) : /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
111
+ className: "dtable-ui-comment-submit",
112
+ color: "primary",
113
+ size: "sm",
114
+ onClick: this.onSubmit,
115
+ tabIndex: -1,
116
+ children: (0, _lang.getLocale)('Submit')
117
+ })]
118
+ })
119
+ }), this.state.isShowPopover && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTablePopover.default, {
120
+ target: this.toolRef,
121
+ hideDTablePopover: this.onHideCollaboratorTip,
122
+ hideDTablePopoverWithEsc: this.onHideCollaboratorTip,
123
+ children: this.getCollaboratorContent()
124
+ })]
125
+ });
111
126
  }
112
127
  }
113
128
  var _default = exports.default = Btns;
@@ -12,6 +12,7 @@ var _participants = _interopRequireDefault(require("./participants"));
12
12
  var _input = _interopRequireDefault(require("./input"));
13
13
  var _btns = _interopRequireDefault(require("./btns"));
14
14
  require("./index.css");
15
+ var _jsxRuntime = require("react/jsx-runtime");
15
16
  class Footer extends _react.default.Component {
16
17
  constructor(_props) {
17
18
  super(_props);
@@ -137,33 +138,34 @@ class Footer extends _react.default.Component {
137
138
  collaborators
138
139
  } = this.props;
139
140
  const canUpdateParticipants = Boolean(this.props.onChangeParticipants);
140
- return /*#__PURE__*/_react.default.createElement("div", {
141
- className: "dtable-ui-comments-footer"
142
- }, /*#__PURE__*/_react.default.createElement(_participants.default, {
143
- canUpdate: canUpdateParticipants,
144
- participants: participants,
145
- collaborators: collaborators,
146
- showIconTip: true,
147
- onChange: this.updateParticipants
148
- }), /*#__PURE__*/_react.default.createElement(_input.default, {
149
- ref: ref => this.commentInputRef = ref,
150
- collaborators: collaborators,
151
- onSubmit: this.onSubmit,
152
- uploadFile: this.props.uploadFile,
153
- addParticipant: this.addParticipant,
154
- onInputFocus: this.props.onInputFocus,
155
- onInputBlur: this.props.onInputBlur,
156
- autoFocusInput: this.props.autoFocusInput,
157
- canUpdateParticipants: canUpdateParticipants
158
- }), /*#__PURE__*/_react.default.createElement(_btns.default, {
159
- isAdding: isAdding,
160
- canUpdateParticipants: canUpdateParticipants,
161
- collaborators: collaborators,
162
- uploadFile: this.props.uploadFile,
163
- onInsertElement: this.onInsertElement,
164
- onSubmit: this.onSubmit,
165
- addParticipant: this.addParticipant
166
- }));
141
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
142
+ className: "dtable-ui-comments-footer",
143
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_participants.default, {
144
+ canUpdate: canUpdateParticipants,
145
+ participants: participants,
146
+ collaborators: collaborators,
147
+ showIconTip: true,
148
+ onChange: this.updateParticipants
149
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_input.default, {
150
+ ref: ref => this.commentInputRef = ref,
151
+ collaborators: collaborators,
152
+ onSubmit: this.onSubmit,
153
+ uploadFile: this.props.uploadFile,
154
+ addParticipant: this.addParticipant,
155
+ onInputFocus: this.props.onInputFocus,
156
+ onInputBlur: this.props.onInputBlur,
157
+ autoFocusInput: this.props.autoFocusInput,
158
+ canUpdateParticipants: canUpdateParticipants
159
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_btns.default, {
160
+ isAdding: isAdding,
161
+ canUpdateParticipants: canUpdateParticipants,
162
+ collaborators: collaborators,
163
+ uploadFile: this.props.uploadFile,
164
+ onInsertElement: this.onInsertElement,
165
+ onSubmit: this.onSubmit,
166
+ addParticipant: this.addParticipant
167
+ })]
168
+ });
167
169
  }
168
170
  }
169
171
  var _default = exports.default = Footer;
@@ -18,6 +18,7 @@ var _hotkey = require("../../../utils/hotkey");
18
18
  var _participant = _interopRequireDefault(require("./participant"));
19
19
  var _lang = require("../../../lang");
20
20
  require("./index.css");
21
+ var _jsxRuntime = require("react/jsx-runtime");
21
22
  const FONT_SIZE_WIDTH = 15;
22
23
  const PADDING_WIDTH = 9;
23
24
  const LINE_HEIGHT = 22;
@@ -404,45 +405,49 @@ class Input extends _react.default.Component {
404
405
  filteredCollaborators,
405
406
  activeCollaboratorIndex
406
407
  } = this.state;
407
- return /*#__PURE__*/_react.default.createElement(_react.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
408
- className: (0, _classnames.default)('dtable-ui-comment-input', {
409
- 'dtable-ui-comment-input-archive': !(api !== null && api !== void 0 && api.add)
410
- }),
411
- ref: ref => this.commentRef = ref,
412
- onKeyDown: this.onKeyDown,
413
- onFocus: this.onFocus,
414
- onBlur: this.onBlur,
415
- onKeyUp: this.onKeyUp,
416
- onMouseUp: this.onMouseUp,
417
- onPaste: this.onPaste,
418
- placeholder: (0, _lang.getLocale)('Add_comment'),
419
- onClick: this.handleImageZoom,
420
- tabIndex: -1,
421
- contentEditable: true
422
- }), filteredCollaborators.length > 0 && /*#__PURE__*/_react.default.createElement(_ModalPortal.default, null, /*#__PURE__*/_react.default.createElement("div", {
423
- className: "dtable-ui-comment-caret-list",
424
- ref: ref => this.commentPopoverRef = ref
425
- }, filteredCollaborators.map((participant, i) => {
426
- return /*#__PURE__*/_react.default.createElement(_participant.default, {
427
- key: participant.email,
428
- index: i,
429
- activeIndex: activeCollaboratorIndex,
430
- participant: participant,
431
- setScrollTop: this.setScrollTop,
432
- onSelect: this.onSelectCollaborator.bind(this, participant)
433
- });
434
- }))), largeImageIndex > -1 && /*#__PURE__*/_react.default.createElement(_ImagePreviewerLightbox.default, {
435
- imageItems: imageUrlList,
436
- imageIndex: this.state.largeImageIndex,
437
- closeImagePopup: this.hideLargeImage,
438
- moveToPrevImage: this.movePrev,
439
- moveToNextImage: this.moveNext
440
- }), /*#__PURE__*/_react.default.createElement(_FileUploader.default, {
441
- className: "dtable-ui-comment-paste-uploader",
442
- ref: ref => this.uploaderFileRef = ref,
443
- onFileUploadSuccess: this.onFileUploadSuccess,
444
- uploadFile: this.props.uploadFile
445
- }));
408
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
409
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
410
+ className: (0, _classnames.default)('dtable-ui-comment-input', {
411
+ 'dtable-ui-comment-input-archive': !(api !== null && api !== void 0 && api.add)
412
+ }),
413
+ ref: ref => this.commentRef = ref,
414
+ onKeyDown: this.onKeyDown,
415
+ onFocus: this.onFocus,
416
+ onBlur: this.onBlur,
417
+ onKeyUp: this.onKeyUp,
418
+ onMouseUp: this.onMouseUp,
419
+ onPaste: this.onPaste,
420
+ placeholder: (0, _lang.getLocale)('Add_comment'),
421
+ onClick: this.handleImageZoom,
422
+ tabIndex: -1,
423
+ contentEditable: true
424
+ }), filteredCollaborators.length > 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalPortal.default, {
425
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
426
+ className: "dtable-ui-comment-caret-list",
427
+ ref: ref => this.commentPopoverRef = ref,
428
+ children: filteredCollaborators.map((participant, i) => {
429
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)(_participant.default, {
430
+ index: i,
431
+ activeIndex: activeCollaboratorIndex,
432
+ participant: participant,
433
+ setScrollTop: this.setScrollTop,
434
+ onSelect: this.onSelectCollaborator.bind(this, participant)
435
+ }, participant.email);
436
+ })
437
+ })
438
+ }), largeImageIndex > -1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImagePreviewerLightbox.default, {
439
+ imageItems: imageUrlList,
440
+ imageIndex: this.state.largeImageIndex,
441
+ closeImagePopup: this.hideLargeImage,
442
+ moveToPrevImage: this.movePrev,
443
+ moveToNextImage: this.moveNext
444
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_FileUploader.default, {
445
+ className: "dtable-ui-comment-paste-uploader",
446
+ ref: ref => this.uploaderFileRef = ref,
447
+ onFileUploadSuccess: this.onFileUploadSuccess,
448
+ uploadFile: this.props.uploadFile
449
+ })]
450
+ });
446
451
  }
447
452
  }
448
453
  var _default = exports.default = Input;