dtable-ui-component 7.0.13 → 7.0.15

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (308) hide show
  1. package/lib/ActionSheet/index.js +58 -49
  2. package/lib/ActivityIndicator/index.js +17 -16
  3. package/lib/AsyncUserSelect/index.js +20 -46
  4. package/lib/AsyncUserSelect/user-item.js +6 -5
  5. package/lib/AutoNumberFormatter/index.js +4 -3
  6. package/lib/Badge/index.js +27 -29
  7. package/lib/ButtonFormatter/index.js +8 -6
  8. package/lib/CTimeFormatter/index.js +4 -3
  9. package/lib/CheckboxEditor/index.js +16 -13
  10. package/lib/CheckboxEditor/mb-editor.js +20 -9
  11. package/lib/CheckboxEditor/pc-editor.js +24 -12
  12. package/lib/CheckboxFormatter/index.js +5 -4
  13. package/lib/CollaboratorEditor/index.js +17 -14
  14. package/lib/CollaboratorEditor/mb-editor/index.js +19 -11
  15. package/lib/CollaboratorEditor/pc-editor/index.js +35 -26
  16. package/lib/CollaboratorFormatter/index.js +10 -8
  17. package/lib/CollaboratorItem/index.js +5 -4
  18. package/lib/CollapsibleSettingLayout/index.js +8 -10
  19. package/lib/Comment/body/comment.js +19 -11
  20. package/lib/Comment/body/index.js +8 -8
  21. package/lib/Comment/footer/btns/index.js +7 -4
  22. package/lib/Comment/footer/index.js +21 -10
  23. package/lib/Comment/footer/input/index.js +55 -34
  24. package/lib/Comment/footer/input/participant/index.js +6 -5
  25. package/lib/Comment/footer/participants/index.js +5 -4
  26. package/lib/Comment/footer/participants/participant/index.js +3 -1
  27. package/lib/Comment/footer/participants/participant-select/index.js +26 -10
  28. package/lib/Comment/index.js +57 -39
  29. package/lib/Comment/utils/utilities.js +22 -16
  30. package/lib/CreatorFormatter/index.js +8 -6
  31. package/lib/DTableColorPicker/ColorPickerPortal/index.js +26 -28
  32. package/lib/DTableColorPicker/index.js +53 -67
  33. package/lib/DTableColorPicker/utils.js +7 -5
  34. package/lib/DTableColumnIcon/index.js +7 -6
  35. package/lib/DTableCommonAddTool/index.js +10 -8
  36. package/lib/DTableCustomFooter/index.js +3 -1
  37. package/lib/DTableCustomizeSearchInput/index.js +41 -26
  38. package/lib/DTableCustomizeSelect/index.js +24 -19
  39. package/lib/DTableDropdownItem/index.js +28 -24
  40. package/lib/DTableDropdownMenu/index.js +17 -14
  41. package/lib/DTableEmptyTip/index.js +5 -4
  42. package/lib/DTableFiltersPopover/index.js +42 -27
  43. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +3 -1
  44. package/lib/DTableFiltersPopover/utils/index.js +114 -64
  45. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +9 -8
  46. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +13 -16
  47. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +15 -18
  48. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +14 -8
  49. package/lib/DTableFiltersPopover/widgets/filter-group.js +57 -36
  50. package/lib/DTableFiltersPopover/widgets/filter-item.js +165 -106
  51. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +162 -137
  52. package/lib/DTableFiltersPopover/widgets/rate-item.js +25 -20
  53. package/lib/DTableIcon/index.js +11 -10
  54. package/lib/DTableIcon/svg-icon.js +11 -9
  55. package/lib/DTableModalHeader/index.js +7 -7
  56. package/lib/DTablePopover/index.js +16 -12
  57. package/lib/DTableRadio/index.js +9 -10
  58. package/lib/DTableRadioGroup/index.js +20 -11
  59. package/lib/DTableSearchInput/index.js +29 -19
  60. package/lib/DTableSelect/dtable-select-label.js +6 -7
  61. package/lib/DTableSelect/index.js +26 -25
  62. package/lib/DTableSelect/select-dropdown-indicator/index.js +3 -1
  63. package/lib/DTableSelect/utils.js +83 -47
  64. package/lib/DTableSubDropdownMenu/index.js +16 -12
  65. package/lib/DTableSubDropdownToggle/index.js +16 -17
  66. package/lib/DTableSwitch/index.js +11 -12
  67. package/lib/DTableToolTip/index.js +12 -11
  68. package/lib/DateEditor/index.js +28 -30
  69. package/lib/DateEditor/mb-editor/index.js +31 -18
  70. package/lib/DateEditor/pc-editor.js +46 -27
  71. package/lib/DateFormatter/index.js +5 -4
  72. package/lib/DatePicker/index.js +15 -9
  73. package/lib/DatePicker/utils.js +7 -5
  74. package/lib/DeleteTip/index.js +6 -5
  75. package/lib/DepartmentMultipleSelectEditor/index.js +26 -28
  76. package/lib/DepartmentSelectFilter/index.js +13 -8
  77. package/lib/DepartmentSingleSelectEditor/index.js +16 -13
  78. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +49 -50
  79. package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +64 -42
  80. package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +19 -13
  81. package/lib/DepartmentSingleSelectFormatter/index.js +6 -4
  82. package/lib/DigitalSignEditor/index.js +16 -13
  83. package/lib/DigitalSignEditor/mb-editor/index.js +24 -16
  84. package/lib/DigitalSignEditor/pc-editor/index.js +31 -23
  85. package/lib/DigitalSignEditor/service.js +5 -3
  86. package/lib/DigitalSignEditor/signature-board/index.js +10 -7
  87. package/lib/DigitalSignEditor/utils.js +4 -2
  88. package/lib/DigitalSignFormatter/index.js +15 -12
  89. package/lib/DigitalSignFormatter/utils.js +6 -5
  90. package/lib/Drawer/index.js +3 -2
  91. package/lib/DurationEditor/index.js +31 -21
  92. package/lib/DurationFormatter/index.js +5 -4
  93. package/lib/EditEditorButton/index.js +3 -1
  94. package/lib/EmailFormatter/index.js +4 -3
  95. package/lib/FieldDisplaySetting/field-item.js +13 -13
  96. package/lib/FieldDisplaySetting/index.js +20 -20
  97. package/lib/FileEditor/files-previewer/index.js +16 -13
  98. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +20 -12
  99. package/lib/FileEditor/files-previewer/mb-previewer/index.js +8 -7
  100. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +4 -3
  101. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +6 -5
  102. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +24 -17
  103. package/lib/FileEditor/files-previewer/pc-previewer/index.js +57 -29
  104. package/lib/FileEditor/index.js +16 -13
  105. package/lib/FileEditor/mb-editor/index.js +20 -28
  106. package/lib/FileEditor/pc-editor/addition-previewer/index.js +4 -2
  107. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +31 -17
  108. package/lib/FileEditor/pc-editor/index.js +30 -22
  109. package/lib/FileFormatter/index.js +20 -27
  110. package/lib/FileItemFormatter/index.js +10 -7
  111. package/lib/FileUploader/index.js +46 -29
  112. package/lib/FormulaFormatter/index.js +44 -24
  113. package/lib/GeolocationEditor/index.js +32 -27
  114. package/lib/GeolocationEditor/map-editor-utils.js +23 -21
  115. package/lib/GeolocationEditor/mb-editor/country-editor.js +14 -17
  116. package/lib/GeolocationEditor/mb-editor/index.js +28 -22
  117. package/lib/GeolocationEditor/mb-editor/location-editor.js +15 -18
  118. package/lib/GeolocationEditor/mb-editor/map-editor/index.js +77 -47
  119. package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +89 -50
  120. package/lib/GeolocationEditor/mb-editor/province-city-editor.js +14 -17
  121. package/lib/GeolocationEditor/mb-editor/province-editor.js +14 -17
  122. package/lib/GeolocationEditor/pc-editor/country-editor.js +25 -12
  123. package/lib/GeolocationEditor/pc-editor/index.js +41 -27
  124. package/lib/GeolocationEditor/pc-editor/location-editor.js +33 -28
  125. package/lib/GeolocationEditor/pc-editor/map-editor/index.js +67 -43
  126. package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +69 -42
  127. package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +86 -42
  128. package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +85 -39
  129. package/lib/GeolocationEditor/pc-editor/province-city-editor.js +26 -20
  130. package/lib/GeolocationEditor/pc-editor/province-editor.js +15 -8
  131. package/lib/GeolocationEditor/pc-editor/selector-header-item.js +6 -5
  132. package/lib/GeolocationEditor/pc-editor/selector-list.js +8 -7
  133. package/lib/GeolocationFormatter/index.js +5 -4
  134. package/lib/HtmlLongTextFormatter/index.js +13 -5
  135. package/lib/Icon/index.js +13 -15
  136. package/lib/Icon/load-sprite.js +13 -2
  137. package/lib/IconButton/index.js +12 -13
  138. package/lib/ImageEditor/images-previewer/image-preview/index.js +22 -13
  139. package/lib/ImageEditor/images-previewer/index.js +9 -3
  140. package/lib/ImageEditor/index.js +16 -13
  141. package/lib/ImageEditor/mb-editor/index.js +20 -28
  142. package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +6 -2
  143. package/lib/ImageEditor/pc-editor/addition-previewer/index.js +5 -3
  144. package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +26 -12
  145. package/lib/ImageEditor/pc-editor/images-previewer/index.js +10 -4
  146. package/lib/ImageEditor/pc-editor/index.js +16 -11
  147. package/lib/ImageFormatter/images-lazy-load.js +11 -19
  148. package/lib/ImageFormatter/index.js +14 -12
  149. package/lib/ImagePreviewerLightbox/index.js +15 -19
  150. package/lib/ImageThumbnail/index.js +15 -12
  151. package/lib/InputItem/custom-input.js +55 -35
  152. package/lib/InputItem/custom-keyboard.js +42 -42
  153. package/lib/InputItem/index.js +82 -63
  154. package/lib/InputItem/input.js +9 -11
  155. package/lib/LastModifierFormatter/index.js +8 -6
  156. package/lib/LinkEditor/index.js +53 -33
  157. package/lib/LinkEditor/link-editor-option.js +4 -3
  158. package/lib/LinkEditor/mb-popover/index.js +22 -9
  159. package/lib/LinkEditor/pc-popover/index.js +13 -7
  160. package/lib/LinkFormatter/index.js +37 -21
  161. package/lib/List/index.js +17 -19
  162. package/lib/List/list-item.js +59 -55
  163. package/lib/LongTextFormatter/index.js +5 -4
  164. package/lib/MBEditorHeader/index.js +9 -8
  165. package/lib/MTimeFormatter/index.js +4 -3
  166. package/lib/MobileFullScreenPage/body/index.js +6 -4
  167. package/lib/MobileFullScreenPage/header/index.js +10 -8
  168. package/lib/MobileFullScreenPage/index.js +12 -14
  169. package/lib/MobileModal/index.js +7 -8
  170. package/lib/MobileOperationSheet/index.js +8 -7
  171. package/lib/MobileSelector/empty/index.js +3 -1
  172. package/lib/MobileSelector/index.js +7 -5
  173. package/lib/MobileSelector/option/index.js +5 -3
  174. package/lib/MobileSelector/options/index.css +0 -4
  175. package/lib/MobileSelector/options/index.js +3 -1
  176. package/lib/MobileSelector/search/index.js +5 -3
  177. package/lib/MobileUpload/index.js +5 -4
  178. package/lib/Modal/alert.js +2 -2
  179. package/lib/Modal/modal.js +28 -30
  180. package/lib/Modal/prompt.js +14 -14
  181. package/lib/MultipleSelectEditor/index.js +7 -7
  182. package/lib/MultipleSelectFormatter/index.js +9 -7
  183. package/lib/NotificationPopover/index.js +5 -4
  184. package/lib/NumberEditor/index.js +21 -12
  185. package/lib/NumberFormatter/index.js +5 -4
  186. package/lib/PhoneNumberLink/index.js +5 -3
  187. package/lib/Picker/AbstractPicker.js +35 -33
  188. package/lib/Popover/index.js +9 -11
  189. package/lib/Popover/item.js +22 -24
  190. package/lib/Progress/index.js +18 -17
  191. package/lib/Radio/Radio.js +17 -15
  192. package/lib/Radio/RadioItem.js +23 -19
  193. package/lib/RateFormatter/index.js +15 -15
  194. package/lib/RoleStatusEditor/index.js +18 -19
  195. package/lib/RowExpand/index.js +7 -6
  196. package/lib/RowExpandDialog/body/index.js +57 -40
  197. package/lib/RowExpandDialog/column-content/index.js +10 -6
  198. package/lib/RowExpandDialog/header/index.js +12 -9
  199. package/lib/RowExpandDialog/index.js +59 -63
  200. package/lib/RowExpandEditor/add-btn/index.js +7 -6
  201. package/lib/RowExpandEditor/checkbox-editor/index.js +7 -6
  202. package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +5 -4
  203. package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +10 -8
  204. package/lib/RowExpandEditor/collaborator-editor/index.js +7 -6
  205. package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +33 -22
  206. package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +40 -26
  207. package/lib/RowExpandEditor/date-editor/index.js +7 -6
  208. package/lib/RowExpandEditor/date-editor/mb-editor.js +18 -12
  209. package/lib/RowExpandEditor/date-editor/pc-editor.js +20 -15
  210. package/lib/RowExpandEditor/department-editor/index.js +7 -6
  211. package/lib/RowExpandEditor/department-editor/mb-editor.js +11 -16
  212. package/lib/RowExpandEditor/department-editor/pc-editor.js +14 -19
  213. package/lib/RowExpandEditor/digital-sign-editor/index.js +7 -6
  214. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +38 -24
  215. package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +39 -25
  216. package/lib/RowExpandEditor/duration-editor/index.js +7 -6
  217. package/lib/RowExpandEditor/duration-editor/mb-editor.js +17 -10
  218. package/lib/RowExpandEditor/duration-editor/pc-editor.js +19 -13
  219. package/lib/RowExpandEditor/email-editor/index.js +7 -6
  220. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +20 -10
  221. package/lib/RowExpandEditor/email-editor/pc-editor/index.js +25 -14
  222. package/lib/RowExpandEditor/file-editor/index.js +7 -6
  223. package/lib/RowExpandEditor/file-editor/mb-editor/index.js +31 -18
  224. package/lib/RowExpandEditor/file-editor/pc-editor/index.js +23 -16
  225. package/lib/RowExpandEditor/geolocation-editor/index.js +7 -6
  226. package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +29 -17
  227. package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +26 -13
  228. package/lib/RowExpandEditor/image-editor/index.js +7 -6
  229. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +26 -16
  230. package/lib/RowExpandEditor/image-editor/pc-editor/index.js +24 -14
  231. package/lib/RowExpandEditor/index.js +16 -11
  232. package/lib/RowExpandEditor/long-text-editor/index.js +7 -6
  233. package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +18 -17
  234. package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +16 -10
  235. package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +23 -16
  236. package/lib/RowExpandEditor/multiple-select-editor/index.js +7 -6
  237. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +20 -12
  238. package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +38 -27
  239. package/lib/RowExpandEditor/number-editor/index.js +7 -6
  240. package/lib/RowExpandEditor/number-editor/mb-editor/index.js +14 -8
  241. package/lib/RowExpandEditor/number-editor/pc-editor.js +20 -13
  242. package/lib/RowExpandEditor/rate-editor/index.js +7 -6
  243. package/lib/RowExpandEditor/rate-editor/mb-editor.js +26 -13
  244. package/lib/RowExpandEditor/rate-editor/pc-editor.js +41 -25
  245. package/lib/RowExpandEditor/single-select-editor/index.js +7 -6
  246. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +32 -21
  247. package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +37 -25
  248. package/lib/RowExpandEditor/text-editor/index.js +7 -6
  249. package/lib/RowExpandEditor/text-editor/mb-editor/index.js +5 -4
  250. package/lib/RowExpandEditor/text-editor/pc-editor/index.js +26 -15
  251. package/lib/RowExpandEditor/url-editor/index.js +7 -6
  252. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +15 -7
  253. package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -11
  254. package/lib/RowExpandFormatter/department-formatter/index.js +6 -3
  255. package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +4 -2
  256. package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +4 -2
  257. package/lib/RowExpandFormatter/email-formatter/index.js +8 -5
  258. package/lib/RowExpandFormatter/file-formatter/index.js +9 -8
  259. package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +14 -12
  260. package/lib/RowExpandFormatter/formula-formatter/index.js +51 -30
  261. package/lib/RowExpandFormatter/image-formatter/index.js +11 -9
  262. package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +10 -9
  263. package/lib/RowExpandFormatter/index.js +52 -34
  264. package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +15 -9
  265. package/lib/RowExpandFormatter/link-formatter/index.js +25 -17
  266. package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +5 -3
  267. package/lib/RowExpandFormatter/rate-formatter/index.js +14 -13
  268. package/lib/RowExpandFormatter/text/index.js +5 -4
  269. package/lib/RowExpandFormatter/url-formatter/index.js +9 -6
  270. package/lib/RowExpandView/body/index.js +43 -32
  271. package/lib/RowExpandView/column-content/index.js +7 -3
  272. package/lib/RowExpandView/index.js +52 -53
  273. package/lib/SelectItem/index.js +7 -5
  274. package/lib/SelectOptionGroup/index.js +40 -30
  275. package/lib/SelectedDepartments/index.js +12 -10
  276. package/lib/SimpleLongTextFormatter/index.js +18 -12
  277. package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +4 -3
  278. package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +21 -12
  279. package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +4 -3
  280. package/lib/SingleSelectEditor/index.js +7 -7
  281. package/lib/SingleSelectFormatter/index.js +9 -8
  282. package/lib/TabBar/Tab.js +26 -24
  283. package/lib/TabBar/index.js +28 -24
  284. package/lib/Tabs/index.js +13 -10
  285. package/lib/TextEditor/index.js +23 -14
  286. package/lib/TextFormatter/index.js +4 -3
  287. package/lib/TextareaItem/index.js +53 -48
  288. package/lib/Toast/index.js +9 -8
  289. package/lib/UrlFormatter/index.js +4 -3
  290. package/lib/common/editor-base.js +12 -7
  291. package/lib/formatterConfig/index.js +3 -3
  292. package/lib/hooks/common-hooks.js +4 -2
  293. package/lib/select-editor/index.js +16 -13
  294. package/lib/select-editor/mb-editor/index.js +28 -17
  295. package/lib/select-editor/pc-editor/index.js +47 -32
  296. package/lib/toaster/alert.js +8 -7
  297. package/lib/toaster/toast.js +4 -3
  298. package/lib/toaster/toastManager.js +13 -13
  299. package/lib/toaster/toaster.js +12 -9
  300. package/lib/utils/cell.js +11 -8
  301. package/lib/utils/class.js +3 -3
  302. package/lib/utils/column-utils.js +14 -8
  303. package/lib/utils/departments.js +6 -5
  304. package/lib/utils/getLocale.js +11 -5
  305. package/lib/utils/object-utils.js +5 -4
  306. package/lib/utils/url.js +29 -22
  307. package/lib/utils/utils.js +6 -2
  308. package/package.json +2 -2
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
9
  var _react = _interopRequireWildcard(require("react"));
11
10
  var _reactResponsive = _interopRequireDefault(require("react-responsive"));
12
11
  var _pcEditor = _interopRequireDefault(require("./pc-editor"));
@@ -16,14 +15,16 @@ const RowExpandEmailEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
16
15
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
17
16
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
18
17
  query: "(min-width: 768px)",
19
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
18
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
19
+ ...props,
20
20
  ref: ref
21
- }))
21
+ })
22
22
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
23
23
  query: "(max-width: 768px)",
24
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
24
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
25
+ ...props,
25
26
  ref: ref
26
- }))
27
+ })
27
28
  })]
28
29
  });
29
30
  });
@@ -12,7 +12,9 @@ class RowExpandMBEmailEditor extends _react.default.Component {
12
12
  constructor(props) {
13
13
  super(props);
14
14
  this.onBlur = () => {
15
- const onCommit = this.props.onCommit;
15
+ const {
16
+ onCommit
17
+ } = this.props;
16
18
  const updated = this.state.value.trim();
17
19
  onCommit(updated);
18
20
  };
@@ -30,21 +32,27 @@ class RowExpandMBEmailEditor extends _react.default.Component {
30
32
  e.stopPropagation();
31
33
  };
32
34
  this.onOpenEmailLink = () => {
33
- const value = this.state.value;
35
+ const {
36
+ value
37
+ } = this.state;
34
38
  let newValue = value.trim();
35
- window.location.href = "mailto:".concat(newValue);
39
+ window.location.href = `mailto:${newValue}`;
36
40
  };
37
- const row = props.row,
38
- column = props.column,
39
- valueKey = props.valueKey;
41
+ const {
42
+ row,
43
+ column,
44
+ valueKey
45
+ } = props;
40
46
  this.state = {
41
47
  value: row[column[valueKey]] || ''
42
48
  };
43
49
  }
44
50
  UNSAFE_componentWillReceiveProps(nextProps) {
45
- const column = nextProps.column,
46
- row = nextProps.row,
47
- valueKey = nextProps.valueKey;
51
+ const {
52
+ column,
53
+ row,
54
+ valueKey
55
+ } = nextProps;
48
56
  if (row._id !== this.props.row._id) {
49
57
  this.setState({
50
58
  value: row[column[valueKey]] || ''
@@ -52,7 +60,9 @@ class RowExpandMBEmailEditor extends _react.default.Component {
52
60
  }
53
61
  }
54
62
  render() {
55
- const value = this.state.value;
63
+ const {
64
+ value
65
+ } = this.state;
56
66
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
57
67
  className: "dtable-ui-mobile-row-expand-input-editor-container position-relative dtable-ui-mobile-row-expand-url-editor-container",
58
68
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
@@ -24,7 +24,9 @@ class RowExpandPCEmailEditor extends _react.default.Component {
24
24
  }, 1);
25
25
  };
26
26
  this.onBlur = () => {
27
- const onCommit = this.props.onCommit;
27
+ const {
28
+ onCommit
29
+ } = this.props;
28
30
  const updated = this.state.value.trim();
29
31
  onCommit(updated);
30
32
  };
@@ -50,22 +52,27 @@ class RowExpandPCEmailEditor extends _react.default.Component {
50
52
  this.blurInput();
51
53
  return;
52
54
  }
53
- const _event$currentTarget = event.currentTarget,
54
- selectionStart = _event$currentTarget.selectionStart,
55
- selectionEnd = _event$currentTarget.selectionEnd,
56
- value = _event$currentTarget.value;
55
+ const {
56
+ selectionStart,
57
+ selectionEnd,
58
+ value
59
+ } = event.currentTarget;
57
60
  if (event.keyCode === _constants.KeyCodes.ChineseInputMethod || event.keyCode === _constants.KeyCodes.LeftArrow && selectionStart === 0 || event.keyCode === _constants.KeyCodes.RightArrow && selectionEnd === value.length) {
58
61
  event.stopPropagation();
59
62
  }
60
63
  };
61
64
  this.onOpenEmailLink = () => {
62
- const value = this.state.value;
65
+ const {
66
+ value
67
+ } = this.state;
63
68
  let newValue = value.trim();
64
- window.location.href = "mailto:".concat(newValue);
69
+ window.location.href = `mailto:${newValue}`;
65
70
  };
66
- const row = props.row,
67
- column = props.column,
68
- valueKey = props.valueKey;
71
+ const {
72
+ row,
73
+ column,
74
+ valueKey
75
+ } = props;
69
76
  this.state = {
70
77
  value: row[column[valueKey]] || ''
71
78
  };
@@ -76,9 +83,11 @@ class RowExpandPCEmailEditor extends _react.default.Component {
76
83
  }
77
84
  }
78
85
  UNSAFE_componentWillReceiveProps(nextProps) {
79
- const column = nextProps.column,
80
- row = nextProps.row,
81
- valueKey = nextProps.valueKey;
86
+ const {
87
+ column,
88
+ row,
89
+ valueKey
90
+ } = nextProps;
82
91
  if (row._id !== this.props.row._id) {
83
92
  this.setState({
84
93
  value: row[column[valueKey]] || ''
@@ -91,7 +100,9 @@ class RowExpandPCEmailEditor extends _react.default.Component {
91
100
  }
92
101
  }
93
102
  render() {
94
- let value = this.state.value;
103
+ let {
104
+ value
105
+ } = this.state;
95
106
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
96
107
  className: "dtable-ui-row-expand-url-editor",
97
108
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
9
  var _react = _interopRequireWildcard(require("react"));
11
10
  var _reactResponsive = _interopRequireDefault(require("react-responsive"));
12
11
  var _pcEditor = _interopRequireDefault(require("./pc-editor"));
@@ -16,14 +15,16 @@ const RowExpandFileEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
16
15
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
17
16
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
18
17
  query: "(min-width: 768px)",
19
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
18
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
19
+ ...props,
20
20
  ref: ref
21
- }))
21
+ })
22
22
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
23
23
  query: "(max-width: 768px)",
24
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
24
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
25
+ ...props,
25
26
  ref: ref
26
- }))
27
+ })
27
28
  })]
28
29
  });
29
30
  });
@@ -32,17 +32,24 @@ class RowExpandMBFileEditor extends _react.default.Component {
32
32
  this.props.onCommit(value);
33
33
  };
34
34
  this.deleteFile = index => {
35
- const value = this.state.value;
35
+ const {
36
+ value
37
+ } = this.state;
36
38
  const newValue = value.slice(0);
37
39
  newValue.splice(index, 1);
38
40
  this.onCommit(newValue);
39
41
  };
40
42
  this.renderFiles = () => {
41
- const value = this.state.value;
42
- const config = this.props.config;
43
+ const {
44
+ value
45
+ } = this.state;
46
+ const {
47
+ config
48
+ } = this.props;
43
49
  return value.map((file, index) => {
44
- const _getFileThumbnailInfo = (0, _url.getFileThumbnailInfo)(file),
45
- fileIconUrl = _getFileThumbnailInfo.fileIconUrl;
50
+ const {
51
+ fileIconUrl
52
+ } = (0, _url.getFileThumbnailInfo)(file);
46
53
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageThumbnail.default, {
47
54
  src: fileIconUrl,
48
55
  name: file.name,
@@ -55,9 +62,11 @@ class RowExpandMBFileEditor extends _react.default.Component {
55
62
  }, 'file-' + index);
56
63
  });
57
64
  };
58
- const column = props.column,
59
- row = props.row,
60
- valueKey = props.valueKey;
65
+ const {
66
+ column,
67
+ row,
68
+ valueKey
69
+ } = props;
61
70
  this.state = {
62
71
  isShowEditor: false,
63
72
  value: row[column[valueKey]] || []
@@ -65,9 +74,11 @@ class RowExpandMBFileEditor extends _react.default.Component {
65
74
  this.openEditorMode = null;
66
75
  }
67
76
  UNSAFE_componentWillReceiveProps(nextProps) {
68
- const column = nextProps.column,
69
- row = nextProps.row,
70
- valueKey = nextProps.valueKey;
77
+ const {
78
+ column,
79
+ row,
80
+ valueKey
81
+ } = nextProps;
71
82
  if (row._id !== this.props.row._id) {
72
83
  this.setState({
73
84
  value: row[column[valueKey]] || [],
@@ -76,13 +87,15 @@ class RowExpandMBFileEditor extends _react.default.Component {
76
87
  }
77
88
  }
78
89
  render() {
79
- const _this$props = this.props,
80
- column = _this$props.column,
81
- config = _this$props.config,
82
- uploadFile = _this$props.uploadFile;
83
- const _this$state = this.state,
84
- isShowEditor = _this$state.isShowEditor,
85
- value = _this$state.value;
90
+ const {
91
+ column,
92
+ config,
93
+ uploadFile
94
+ } = this.props;
95
+ const {
96
+ isShowEditor,
97
+ value
98
+ } = this.state;
86
99
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
87
100
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
88
101
  className: "dtable-ui-mobile-row-expand-image position-relative",
@@ -45,11 +45,14 @@ class RowExpandPCFileEditor extends _react.default.Component {
45
45
  this.props.onCommit(value);
46
46
  };
47
47
  this.deleteFile = index => {
48
- const _this$props = this.props,
49
- column = _this$props.column,
50
- row = _this$props.row,
51
- onCommit = _this$props.onCommit;
52
- let fileContainer = this.state.fileContainer;
48
+ const {
49
+ column,
50
+ row,
51
+ onCommit
52
+ } = this.props;
53
+ let {
54
+ fileContainer
55
+ } = this.state;
53
56
  let value = fileContainer || row[column.key];
54
57
  let updatedValue = value.slice(0);
55
58
  updatedValue.splice(index, 1);
@@ -72,9 +75,11 @@ class RowExpandPCFileEditor extends _react.default.Component {
72
75
  document.addEventListener('keydown', this.onKeyDown);
73
76
  }
74
77
  UNSAFE_componentWillReceiveProps(nextProps) {
75
- const column = nextProps.column,
76
- row = nextProps.row,
77
- valueKey = nextProps.valueKey;
78
+ const {
79
+ column,
80
+ row,
81
+ valueKey
82
+ } = nextProps;
78
83
  if (row._id !== this.props.row._id) {
79
84
  this.setState({
80
85
  fileContainer: row[column[valueKey]] || [],
@@ -97,17 +102,19 @@ class RowExpandPCFileEditor extends _react.default.Component {
97
102
  }
98
103
  render() {
99
104
  let fileArr = [];
100
- const _this$props2 = this.props,
101
- column = _this$props2.column,
102
- row = _this$props2.row,
103
- config = _this$props2.config,
104
- valueKey = _this$props2.valueKey,
105
- isEditorFocus = _this$props2.isEditorFocus;
105
+ const {
106
+ column,
107
+ row,
108
+ config,
109
+ valueKey,
110
+ isEditorFocus
111
+ } = this.props;
106
112
  let value = this.state.fileContainer !== null ? this.state.fileContainer : row[column[valueKey]];
107
113
  if (value && value.length > 0) {
108
114
  fileArr = value.map((file, index) => {
109
- const _getFileThumbnailInfo = (0, _url.getFileThumbnailInfo)(file),
110
- fileIconUrl = _getFileThumbnailInfo.fileIconUrl;
115
+ const {
116
+ fileIconUrl
117
+ } = (0, _url.getFileThumbnailInfo)(file);
111
118
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageThumbnail.default, {
112
119
  src: fileIconUrl,
113
120
  name: file.name,
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
9
  var _react = _interopRequireWildcard(require("react"));
11
10
  var _reactResponsive = _interopRequireDefault(require("react-responsive"));
12
11
  var _pcEditor = _interopRequireDefault(require("./pc-editor"));
@@ -16,14 +15,16 @@ const RowExpandGeolocationEditor = /*#__PURE__*/(0, _react.forwardRef)((props, r
16
15
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
17
16
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
18
17
  query: "(min-width: 768px)",
19
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
18
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
19
+ ...props,
20
20
  ref: ref
21
- }))
21
+ })
22
22
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
23
23
  query: "(max-width: 768px)",
24
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
24
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
25
+ ...props,
25
26
  ref: ref
26
- }))
27
+ })
27
28
  })]
28
29
  });
29
30
  });
@@ -31,11 +31,14 @@ class RowExpandMBGeolocationEditor extends _react.default.Component {
31
31
  this.props.onCommit(value);
32
32
  };
33
33
  this.getLocationInfo = value => {
34
- const _this$props = this.props,
35
- column = _this$props.column,
36
- config = _this$props.config;
37
- const dtableBaiduMapKey = config.dtableBaiduMapKey,
38
- dtableMineMapKey = config.dtableMineMapKey;
34
+ const {
35
+ column,
36
+ config
37
+ } = this.props;
38
+ const {
39
+ dtableBaiduMapKey,
40
+ dtableMineMapKey
41
+ } = config;
39
42
  const isBaiduMap = !!(dtableBaiduMapKey || dtableMineMapKey);
40
43
  return (0, _dtableUtils.getGeolocationDisplayString)(value, column.data, {
41
44
  isBaiduMap,
@@ -43,7 +46,9 @@ class RowExpandMBGeolocationEditor extends _react.default.Component {
43
46
  });
44
47
  };
45
48
  this.renderGeoLocation = () => {
46
- const value = this.state.value;
49
+ const {
50
+ value
51
+ } = this.state;
47
52
  const text = (0, _dtableUtils.isEmptyObject)(value) ? (0, _lang.getLocale)('Edit_Location') : this.getLocationInfo(value);
48
53
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_addBtn.default, {
49
54
  onClick: this.openEditor,
@@ -51,18 +56,22 @@ class RowExpandMBGeolocationEditor extends _react.default.Component {
51
56
  className: "py-4"
52
57
  });
53
58
  };
54
- const row = props.row,
55
- _column = props.column,
56
- valueKey = props.valueKey;
59
+ const {
60
+ row,
61
+ column: _column,
62
+ valueKey
63
+ } = props;
57
64
  this.state = {
58
65
  isShowEditor: false,
59
66
  value: row[_column[valueKey]] || {}
60
67
  };
61
68
  }
62
69
  UNSAFE_componentWillReceiveProps(nextProps) {
63
- const column = nextProps.column,
64
- row = nextProps.row,
65
- valueKey = nextProps.valueKey;
70
+ const {
71
+ column,
72
+ row,
73
+ valueKey
74
+ } = nextProps;
66
75
  if (row._id !== this.props.row._id) {
67
76
  this.setState({
68
77
  value: row[column[valueKey]] || {},
@@ -71,11 +80,14 @@ class RowExpandMBGeolocationEditor extends _react.default.Component {
71
80
  }
72
81
  }
73
82
  render() {
74
- const _this$props2 = this.props,
75
- column = _this$props2.column,
76
- row = _this$props2.row,
77
- config = _this$props2.config;
78
- const value = this.state.value;
83
+ const {
84
+ column,
85
+ row,
86
+ config
87
+ } = this.props;
88
+ const {
89
+ value
90
+ } = this.state;
79
91
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
80
92
  children: [this.renderGeoLocation(), this.state.isShowEditor && /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeolocationEditor.default, {
81
93
  column: column,
@@ -69,8 +69,12 @@ class RowExpandPCGeolocationEditor extends _react.default.Component {
69
69
  });
70
70
  };
71
71
  this.renderGeoLocation = () => {
72
- let isEditorFocus = this.props.isEditorFocus;
73
- let value = this.state.value;
72
+ let {
73
+ isEditorFocus
74
+ } = this.props;
75
+ let {
76
+ value
77
+ } = this.state;
74
78
  if (!(0, _dtableUtils.isEmptyObject)(value)) {
75
79
  const displayContent = this.getLocationInfo(value);
76
80
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
@@ -93,14 +97,18 @@ class RowExpandPCGeolocationEditor extends _react.default.Component {
93
97
  });
94
98
  };
95
99
  this.getLocationInfo = value => {
96
- const column = this.props.column;
100
+ const {
101
+ column
102
+ } = this.props;
97
103
  return (0, _dtableUtils.getGeolocationDisplayString)(value, column.data, {
98
104
  hyphen: ' '
99
105
  });
100
106
  };
101
- const row = props.row,
102
- _column = props.column,
103
- valueKey = props.valueKey;
107
+ const {
108
+ row,
109
+ column: _column,
110
+ valueKey
111
+ } = props;
104
112
  this.state = {
105
113
  isShowEditor: false,
106
114
  value: row[_column[valueKey]] || {}
@@ -113,9 +121,11 @@ class RowExpandPCGeolocationEditor extends _react.default.Component {
113
121
  document.addEventListener('keydown', this.onKeyDown);
114
122
  }
115
123
  UNSAFE_componentWillReceiveProps(nextProps) {
116
- const column = nextProps.column,
117
- row = nextProps.row,
118
- valueKey = nextProps.valueKey;
124
+ const {
125
+ column,
126
+ row,
127
+ valueKey
128
+ } = nextProps;
119
129
  if (row._id !== this.props.row._id) {
120
130
  this.setState({
121
131
  value: row[column[valueKey]] || {},
@@ -138,10 +148,13 @@ class RowExpandPCGeolocationEditor extends _react.default.Component {
138
148
  document.removeEventListener('keydown', this.onKeyDown);
139
149
  }
140
150
  render() {
141
- const _this$props = this.props,
142
- column = _this$props.column,
143
- config = _this$props.config;
144
- const value = this.state.value;
151
+ const {
152
+ column,
153
+ config
154
+ } = this.props;
155
+ const {
156
+ value
157
+ } = this.state;
145
158
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
146
159
  ref: ref => this.editorContainer = ref,
147
160
  className: "mt-2",
@@ -1,12 +1,11 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
+ var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
5
5
  Object.defineProperty(exports, "__esModule", {
6
6
  value: true
7
7
  });
8
8
  exports.default = void 0;
9
- var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/objectSpread2"));
10
9
  var _react = _interopRequireWildcard(require("react"));
11
10
  var _reactResponsive = _interopRequireDefault(require("react-responsive"));
12
11
  var _pcEditor = _interopRequireDefault(require("./pc-editor"));
@@ -16,14 +15,16 @@ const RowExpandImageEditor = /*#__PURE__*/(0, _react.forwardRef)((props, ref) =>
16
15
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
17
16
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
18
17
  query: "(min-width: 768px)",
19
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
18
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
19
+ ...props,
20
20
  ref: ref
21
- }))
21
+ })
22
22
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
23
23
  query: "(max-width: 768px)",
24
- children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, props), {}, {
24
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
25
+ ...props,
25
26
  ref: ref
26
- }))
27
+ })
27
28
  })]
28
29
  });
29
30
  });
@@ -41,8 +41,12 @@ class RowExpandMBImageEditor extends _react.default.Component {
41
41
  this.props.onCommit(updatedValue);
42
42
  };
43
43
  this.renderImages = () => {
44
- const value = this.state.value;
45
- const config = this.props.config;
44
+ const {
45
+ value
46
+ } = this.state;
47
+ const {
48
+ config
49
+ } = this.props;
46
50
  return value.map((src, index) => {
47
51
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageThumbnail.default, {
48
52
  index: index,
@@ -51,21 +55,25 @@ class RowExpandMBImageEditor extends _react.default.Component {
51
55
  config: config,
52
56
  onClick: this.toggleEditor,
53
57
  deleteImage: this.deleteImage
54
- }, "image-".concat(index));
58
+ }, `image-${index}`);
55
59
  });
56
60
  };
57
- const column = props.column,
58
- row = props.row,
59
- valueKey = props.valueKey;
61
+ const {
62
+ column,
63
+ row,
64
+ valueKey
65
+ } = props;
60
66
  this.state = {
61
67
  isShowEditor: false,
62
68
  value: row[column[valueKey]] || []
63
69
  };
64
70
  }
65
71
  UNSAFE_componentWillReceiveProps(nextProps) {
66
- const column = nextProps.column,
67
- row = nextProps.row,
68
- valueKey = nextProps.valueKey;
72
+ const {
73
+ column,
74
+ row,
75
+ valueKey
76
+ } = nextProps;
69
77
  if (row._id !== this.props.row._id) {
70
78
  this.setState({
71
79
  value: row[column[valueKey]] || [],
@@ -74,13 +82,15 @@ class RowExpandMBImageEditor extends _react.default.Component {
74
82
  }
75
83
  }
76
84
  render() {
77
- const _this$props = this.props,
78
- column = _this$props.column,
79
- config = _this$props.config,
80
- uploadFile = _this$props.uploadFile;
81
- const _this$state = this.state,
82
- isShowEditor = _this$state.isShowEditor,
83
- value = _this$state.value;
85
+ const {
86
+ column,
87
+ config,
88
+ uploadFile
89
+ } = this.props;
90
+ const {
91
+ isShowEditor,
92
+ value
93
+ } = this.state;
84
94
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
85
95
  children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
86
96
  className: "dtable-ui-mobile-row-expand-image position-relative",