dtable-ui-component 6.0.125 → 6.0.126

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 (288) hide show
  1. package/lib/ActionSheet/index.js +14 -16
  2. package/lib/ActivityIndicator/index.js +7 -8
  3. package/lib/AsyncUserSelect/index.css +5 -0
  4. package/lib/AsyncUserSelect/index.js +40 -19
  5. package/lib/AsyncUserSelect/user-item.js +5 -6
  6. package/lib/AutoNumberFormatter/index.js +3 -4
  7. package/lib/Badge/index.js +9 -11
  8. package/lib/ButtonFormatter/index.js +6 -8
  9. package/lib/CTimeFormatter/index.js +3 -4
  10. package/lib/CheckboxEditor/index.js +1 -3
  11. package/lib/CheckboxEditor/mb-editor.js +9 -20
  12. package/lib/CheckboxEditor/pc-editor.js +12 -24
  13. package/lib/CheckboxFormatter/index.js +4 -5
  14. package/lib/CollaboratorEditor/index.js +2 -4
  15. package/lib/CollaboratorEditor/mb-editor/index.js +11 -19
  16. package/lib/CollaboratorEditor/pc-editor/index.js +25 -34
  17. package/lib/CollaboratorFormatter/index.js +8 -10
  18. package/lib/CollaboratorItem/index.js +4 -5
  19. package/lib/CollapsibleSettingLayout/index.js +9 -7
  20. package/lib/Comment/body/comment.js +10 -18
  21. package/lib/Comment/body/index.js +2 -4
  22. package/lib/Comment/footer/btns/index.js +4 -7
  23. package/lib/Comment/footer/index.js +9 -20
  24. package/lib/Comment/footer/input/index.js +29 -50
  25. package/lib/Comment/footer/input/participant/index.js +4 -5
  26. package/lib/Comment/footer/participants/index.js +4 -5
  27. package/lib/Comment/footer/participants/participant/index.js +1 -3
  28. package/lib/Comment/footer/participants/participant-select/index.js +8 -24
  29. package/lib/Comment/index.js +39 -57
  30. package/lib/Comment/utils/utilities.js +15 -21
  31. package/lib/CreatorFormatter/index.js +6 -8
  32. package/lib/DTableColorPicker/ColorPickerPortal/index.js +23 -19
  33. package/lib/DTableColorPicker/index.css +0 -2
  34. package/lib/DTableColorPicker/index.js +56 -41
  35. package/lib/DTableColorPicker/utils.js +4 -6
  36. package/lib/DTableColumnIcon/index.js +6 -7
  37. package/lib/DTableCommonAddTool/index.css +1 -3
  38. package/lib/DTableCommonAddTool/index.js +6 -8
  39. package/lib/DTableCustomFooter/index.css +1 -3
  40. package/lib/DTableCustomFooter/index.js +1 -3
  41. package/lib/DTableCustomizeCollaboratorSelect/index.js +17 -20
  42. package/lib/DTableCustomizeSelect/index.js +19 -24
  43. package/lib/DTableDropdownItem/index.js +16 -18
  44. package/lib/DTableDropdownMenu/index.js +8 -10
  45. package/lib/DTableEmptyTip/index.js +4 -5
  46. package/lib/DTableFiltersPopover/index.css +0 -2
  47. package/lib/DTableFiltersPopover/index.js +26 -41
  48. package/lib/DTableFiltersPopover/utils/filter-item-utils.js +1 -3
  49. package/lib/DTableFiltersPopover/utils/index.js +63 -113
  50. package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +8 -9
  51. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +16 -13
  52. package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +18 -15
  53. package/lib/DTableFiltersPopover/widgets/filter-calendar.js +8 -14
  54. package/lib/DTableFiltersPopover/widgets/filter-group.js +34 -55
  55. package/lib/DTableFiltersPopover/widgets/filter-item.js +107 -170
  56. package/lib/DTableFiltersPopover/widgets/filter-list/index.js +136 -161
  57. package/lib/DTableFiltersPopover/widgets/rate-item.js +15 -20
  58. package/lib/DTableGroupSelect/index.js +11 -15
  59. package/lib/DTableGroupSelect/select-option-group.js +23 -32
  60. package/lib/DTableIcon/index.js +6 -7
  61. package/lib/DTableIcon/svg-icon.js +5 -7
  62. package/lib/DTableModalHeader/index.js +1 -3
  63. package/lib/DTablePopover/index.js +13 -16
  64. package/lib/DTableRadio/index.js +10 -9
  65. package/lib/DTableRadioGroup/index.js +8 -17
  66. package/lib/DTableSearchInput/index.js +19 -29
  67. package/lib/DTableSelect/dtable-select-label.js +6 -5
  68. package/lib/DTableSelect/index.js +21 -22
  69. package/lib/DTableSelect/utils.js +7 -15
  70. package/lib/DTableSubDropdownMenu/index.js +8 -10
  71. package/lib/DTableSubDropdownToggle/index.js +12 -12
  72. package/lib/DTableSwitch/index.css +0 -1
  73. package/lib/DTableSwitch/index.js +12 -11
  74. package/lib/DTableToolTip/index.js +7 -8
  75. package/lib/DateEditor/index.js +20 -15
  76. package/lib/DateEditor/mb-editor/index.js +18 -31
  77. package/lib/DateEditor/pc-editor.js +26 -45
  78. package/lib/DateFormatter/index.js +4 -5
  79. package/lib/DatePicker/index.js +9 -15
  80. package/lib/DatePicker/utils.js +1 -3
  81. package/lib/DeleteTip/index.js +5 -6
  82. package/lib/DepartmentMultipleSelectEditor/index.js +25 -23
  83. package/lib/DepartmentSelectFilter/index.js +6 -8
  84. package/lib/DepartmentSingleSelectEditor/index.js +1 -3
  85. package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +48 -47
  86. package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +36 -58
  87. package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +13 -19
  88. package/lib/DepartmentSingleSelectFormatter/index.js +4 -6
  89. package/lib/DigitalSignEditor/index.js +1 -3
  90. package/lib/DigitalSignEditor/mb-editor/index.js +12 -20
  91. package/lib/DigitalSignEditor/pc-editor/index.js +17 -24
  92. package/lib/DigitalSignEditor/service.js +2 -4
  93. package/lib/DigitalSignEditor/signature-board/index.js +5 -8
  94. package/lib/DigitalSignEditor/utils.js +2 -4
  95. package/lib/DigitalSignFormatter/index.js +12 -15
  96. package/lib/DigitalSignFormatter/utils.js +4 -5
  97. package/lib/DurationEditor/index.js +21 -31
  98. package/lib/DurationFormatter/index.js +4 -5
  99. package/lib/EditEditorButton/index.js +1 -3
  100. package/lib/EmailFormatter/index.js +3 -4
  101. package/lib/FieldDisplaySetting/field-item.js +12 -12
  102. package/lib/FieldDisplaySetting/index.js +11 -9
  103. package/lib/FileEditor/files-previewer/index.js +1 -3
  104. package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +10 -18
  105. package/lib/FileEditor/files-previewer/mb-previewer/index.js +7 -8
  106. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +3 -4
  107. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +5 -6
  108. package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +14 -21
  109. package/lib/FileEditor/files-previewer/pc-previewer/index.js +29 -57
  110. package/lib/FileEditor/index.js +1 -3
  111. package/lib/FileEditor/mb-editor/index.js +28 -20
  112. package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -3
  113. package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +11 -25
  114. package/lib/FileEditor/pc-editor/index.js +19 -27
  115. package/lib/FileFormatter/index.js +26 -19
  116. package/lib/FileItemFormatter/index.js +6 -9
  117. package/lib/FileUploader/index.js +28 -45
  118. package/lib/FormulaFormatter/index.js +15 -29
  119. package/lib/GeolocationEditor/index.js +11 -12
  120. package/lib/GeolocationEditor/map-editor-utils.js +17 -15
  121. package/lib/GeolocationEditor/mb-editor/country-editor.js +17 -14
  122. package/lib/GeolocationEditor/mb-editor/index.js +4 -6
  123. package/lib/GeolocationEditor/mb-editor/location-editor.js +18 -15
  124. package/lib/GeolocationEditor/mb-editor/map-editor/index.js +41 -68
  125. package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +50 -89
  126. package/lib/GeolocationEditor/mb-editor/province-city-editor.js +17 -14
  127. package/lib/GeolocationEditor/mb-editor/province-editor.js +17 -14
  128. package/lib/GeolocationEditor/pc-editor/country-editor.js +10 -23
  129. package/lib/GeolocationEditor/pc-editor/index.js +12 -20
  130. package/lib/GeolocationEditor/pc-editor/location-editor.js +26 -31
  131. package/lib/GeolocationEditor/pc-editor/map-editor/index.js +34 -54
  132. package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +36 -60
  133. package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +35 -62
  134. package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +36 -65
  135. package/lib/GeolocationEditor/pc-editor/province-city-editor.js +19 -25
  136. package/lib/GeolocationEditor/pc-editor/province-editor.js +6 -13
  137. package/lib/GeolocationEditor/pc-editor/selector-header-item.js +5 -6
  138. package/lib/GeolocationEditor/pc-editor/selector-list.js +6 -7
  139. package/lib/GeolocationFormatter/index.js +4 -5
  140. package/lib/HtmlLongTextFormatter/index.js +4 -12
  141. package/lib/Icon/index.js +3 -5
  142. package/lib/IconButton/index.js +4 -6
  143. package/lib/ImageEditor/images-previewer/image-preview/index.js +12 -21
  144. package/lib/ImageEditor/images-previewer/index.js +3 -9
  145. package/lib/ImageEditor/index.js +1 -3
  146. package/lib/ImageEditor/mb-editor/index.js +28 -20
  147. package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +2 -6
  148. package/lib/ImageEditor/pc-editor/addition-previewer/index.js +1 -3
  149. package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +7 -21
  150. package/lib/ImageEditor/pc-editor/images-previewer/index.js +3 -9
  151. package/lib/ImageEditor/pc-editor/index.js +11 -16
  152. package/lib/ImageFormatter/images-lazy-load.js +19 -11
  153. package/lib/ImageFormatter/index.js +11 -13
  154. package/lib/ImagePreviewerLightbox/index.js +15 -13
  155. package/lib/ImageThumbnail/index.js +10 -13
  156. package/lib/InputItem/custom-input.js +26 -46
  157. package/lib/InputItem/custom-keyboard.js +15 -18
  158. package/lib/InputItem/index.js +34 -50
  159. package/lib/InputItem/input.js +2 -4
  160. package/lib/LastModifierFormatter/index.js +6 -8
  161. package/lib/LinkEditor/index.js +33 -53
  162. package/lib/LinkEditor/link-editor-option.js +3 -4
  163. package/lib/LinkEditor/mb-popover/index.js +9 -22
  164. package/lib/LinkEditor/pc-popover/index.js +5 -10
  165. package/lib/LinkFormatter/index.js +21 -37
  166. package/lib/List/index.js +6 -8
  167. package/lib/List/list-item.js +22 -28
  168. package/lib/LongTextFormatter/index.js +4 -5
  169. package/lib/MBEditorHeader/index.js +7 -8
  170. package/lib/MTimeFormatter/index.js +3 -4
  171. package/lib/MobileFullScreenPage/body/index.js +3 -5
  172. package/lib/MobileFullScreenPage/header/index.js +4 -6
  173. package/lib/MobileFullScreenPage/index.js +13 -11
  174. package/lib/MobileModal/index.js +1 -3
  175. package/lib/MobileOperationSheet/index.js +7 -8
  176. package/lib/MobileSelector/empty/index.js +1 -3
  177. package/lib/MobileSelector/index.js +5 -7
  178. package/lib/MobileSelector/option/index.js +3 -5
  179. package/lib/MobileSelector/options/index.js +1 -3
  180. package/lib/MobileSelector/search/index.js +3 -5
  181. package/lib/MobileUpload/index.js +4 -5
  182. package/lib/Modal/modal.js +14 -15
  183. package/lib/Modal/prompt.js +4 -4
  184. package/lib/MultipleSelectEditor/index.js +1 -3
  185. package/lib/MultipleSelectFormatter/index.js +6 -8
  186. package/lib/NotificationPopover/index.css +1 -6
  187. package/lib/NotificationPopover/index.js +6 -7
  188. package/lib/NumberEditor/index.js +12 -21
  189. package/lib/NumberFormatter/index.js +4 -5
  190. package/lib/PhoneNumberLink/index.js +2 -4
  191. package/lib/Picker/AbstractPicker.js +23 -27
  192. package/lib/Popover/index.js +3 -4
  193. package/lib/Popover/item.js +7 -9
  194. package/lib/Progress/index.js +9 -8
  195. package/lib/Radio/Radio.js +4 -8
  196. package/lib/Radio/RadioItem.js +8 -12
  197. package/lib/RateFormatter/index.js +13 -13
  198. package/lib/RoleStatusEditor/index.js +18 -17
  199. package/lib/RowExpandDialog/body/index.js +32 -49
  200. package/lib/RowExpandDialog/column-content/index.js +5 -9
  201. package/lib/RowExpandDialog/header/index.js +6 -8
  202. package/lib/RowExpandDialog/index.js +49 -34
  203. package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +4 -5
  204. package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +8 -10
  205. package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +22 -33
  206. package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +26 -40
  207. package/lib/RowExpandEditor/date-editor/mb-editor.js +12 -18
  208. package/lib/RowExpandEditor/date-editor/pc-editor.js +15 -20
  209. package/lib/RowExpandEditor/department-editor/mb-editor.js +16 -11
  210. package/lib/RowExpandEditor/department-editor/pc-editor.js +19 -14
  211. package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +20 -34
  212. package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +21 -35
  213. package/lib/RowExpandEditor/duration-editor/mb-editor.js +10 -17
  214. package/lib/RowExpandEditor/duration-editor/pc-editor.js +13 -19
  215. package/lib/RowExpandEditor/email-editor/mb-editor/index.js +9 -19
  216. package/lib/RowExpandEditor/email-editor/pc-editor/index.js +13 -24
  217. package/lib/RowExpandEditor/file-editor/mb-editor/index.js +18 -31
  218. package/lib/RowExpandEditor/file-editor/pc-editor/index.js +16 -23
  219. package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +17 -29
  220. package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +13 -26
  221. package/lib/RowExpandEditor/image-editor/mb-editor/index.js +15 -25
  222. package/lib/RowExpandEditor/image-editor/pc-editor/index.js +13 -23
  223. package/lib/RowExpandEditor/index.js +4 -8
  224. package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +17 -18
  225. package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +10 -16
  226. package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +16 -23
  227. package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +11 -19
  228. package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +22 -33
  229. package/lib/RowExpandEditor/number-editor/mb-editor/index.js +8 -14
  230. package/lib/RowExpandEditor/number-editor/pc-editor.js +13 -20
  231. package/lib/RowExpandEditor/rate-editor/mb-editor.js +12 -25
  232. package/lib/RowExpandEditor/rate-editor/pc-editor.js +20 -36
  233. package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +17 -28
  234. package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +22 -34
  235. package/lib/RowExpandEditor/text-editor/mb-editor/index.js +4 -5
  236. package/lib/RowExpandEditor/text-editor/pc-editor/index.js +15 -26
  237. package/lib/RowExpandEditor/url-editor/mb-editor/index.js +5 -13
  238. package/lib/RowExpandEditor/url-editor/pc-editor/index.js +9 -18
  239. package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -4
  240. package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +2 -4
  241. package/lib/RowExpandFormatter/email-formatter/index.js +4 -7
  242. package/lib/RowExpandFormatter/file-formatter/index.js +8 -9
  243. package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +10 -12
  244. package/lib/RowExpandFormatter/formula-formatter/index.js +19 -34
  245. package/lib/RowExpandFormatter/image-formatter/index.js +9 -11
  246. package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +7 -8
  247. package/lib/RowExpandFormatter/index.js +27 -41
  248. package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +8 -14
  249. package/lib/RowExpandFormatter/link-formatter/index.js +11 -19
  250. package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +3 -5
  251. package/lib/RowExpandFormatter/rate-formatter/index.js +11 -12
  252. package/lib/RowExpandFormatter/text/index.js +4 -5
  253. package/lib/RowExpandFormatter/url-formatter/index.js +4 -7
  254. package/lib/RowExpandView/body/index.js +22 -35
  255. package/lib/RowExpandView/column-content/index.js +3 -7
  256. package/lib/RowExpandView/index.js +42 -30
  257. package/lib/SelectItem/index.js +5 -7
  258. package/lib/SelectOptionGroup/index.css +3 -3
  259. package/lib/SelectOptionGroup/index.js +31 -40
  260. package/lib/SelectedDepartments/index.js +7 -9
  261. package/lib/SimpleLongTextFormatter/index.js +10 -16
  262. package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +3 -4
  263. package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +12 -21
  264. package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -4
  265. package/lib/SingleSelectEditor/index.js +1 -3
  266. package/lib/SingleSelectFormatter/index.js +8 -9
  267. package/lib/TabBar/Tab.js +14 -16
  268. package/lib/TabBar/index.js +18 -21
  269. package/lib/Tabs/index.js +1 -3
  270. package/lib/TextEditor/index.js +14 -23
  271. package/lib/TextFormatter/index.js +3 -4
  272. package/lib/TextareaItem/index.js +19 -26
  273. package/lib/Toast/index.js +3 -4
  274. package/lib/UrlFormatter/index.js +3 -4
  275. package/lib/common/editor-base.js +7 -12
  276. package/lib/hooks/common-hooks.js +2 -4
  277. package/lib/select-editor/index.js +1 -3
  278. package/lib/select-editor/mb-editor/index.js +17 -28
  279. package/lib/select-editor/pc-editor/index.js +27 -42
  280. package/lib/toaster/alert.js +6 -7
  281. package/lib/toaster/toast.js +2 -3
  282. package/lib/toaster/toastManager.js +2 -4
  283. package/lib/utils/cell.js +8 -11
  284. package/lib/utils/column-utils.js +8 -14
  285. package/lib/utils/departments.js +1 -3
  286. package/lib/utils/url.js +24 -31
  287. package/lib/utils/utils.js +2 -6
  288. package/package.json +8 -8
@@ -27,10 +27,9 @@ class FileUploader extends _react.default.Component {
27
27
  this.uploadFileRef.click();
28
28
  };
29
29
  this.onDragEnter = e => {
30
- const {
31
- isSupportDragDrop,
32
- updateParentTips
33
- } = this.props;
30
+ const _this$props = this.props,
31
+ isSupportDragDrop = _this$props.isSupportDragDrop,
32
+ updateParentTips = _this$props.updateParentTips;
34
33
  if (isSupportDragDrop) {
35
34
  e.preventDefault();
36
35
  this.enteredCounter++;
@@ -40,19 +39,16 @@ class FileUploader extends _react.default.Component {
40
39
  }
41
40
  };
42
41
  this.onDragOver = e => {
43
- const {
44
- isSupportDragDrop
45
- } = this.props;
42
+ const isSupportDragDrop = this.props.isSupportDragDrop;
46
43
  if (isSupportDragDrop) {
47
44
  e.stopPropagation();
48
45
  e.preventDefault();
49
46
  }
50
47
  };
51
48
  this.onDragLeave = e => {
52
- const {
53
- isSupportDragDrop,
54
- updateParentTips
55
- } = this.props;
49
+ const _this$props2 = this.props,
50
+ isSupportDragDrop = _this$props2.isSupportDragDrop,
51
+ updateParentTips = _this$props2.updateParentTips;
56
52
  if (isSupportDragDrop) {
57
53
  this.enteredCounter--;
58
54
  if (this.enteredCounter === 0) {
@@ -61,11 +57,10 @@ class FileUploader extends _react.default.Component {
61
57
  }
62
58
  };
63
59
  this.onDrop = event => {
64
- const {
65
- isSupportDragDrop,
66
- updateParentTips,
67
- onCellTipShow
68
- } = this.props;
60
+ const _this$props3 = this.props,
61
+ isSupportDragDrop = _this$props3.isSupportDragDrop,
62
+ updateParentTips = _this$props3.updateParentTips,
63
+ onCellTipShow = _this$props3.onCellTipShow;
69
64
  if (isSupportDragDrop) {
70
65
  this.enteredCounter = 0;
71
66
  updateParentTips(false);
@@ -79,9 +74,7 @@ class FileUploader extends _react.default.Component {
79
74
  }
80
75
  };
81
76
  this.onPaste = event => {
82
- const {
83
- isSupportPaste
84
- } = this.props;
77
+ const isSupportPaste = this.props.isSupportPaste;
85
78
  if (isSupportPaste) {
86
79
  event.stopPropagation();
87
80
  let cliperData = (0, _getEventTransfer.default)(event);
@@ -92,19 +85,17 @@ class FileUploader extends _react.default.Component {
92
85
  }
93
86
  };
94
87
  this.onMouseEnter = () => {
95
- const {
96
- updateParentTips,
97
- uploadType
98
- } = this.props;
88
+ const _this$props4 = this.props,
89
+ updateParentTips = _this$props4.updateParentTips,
90
+ uploadType = _this$props4.uploadType;
99
91
  if (uploadType === 'image') {
100
92
  if (updateParentTips) updateParentTips(true, uploadType);
101
93
  }
102
94
  };
103
95
  this.onMouseLeave = () => {
104
- const {
105
- updateParentTips,
106
- uploadType
107
- } = this.props;
96
+ const _this$props5 = this.props,
97
+ updateParentTips = _this$props5.updateParentTips,
98
+ uploadType = _this$props5.uploadType;
108
99
  if (uploadType === 'image') {
109
100
  if (updateParentTips) updateParentTips(false, uploadType);
110
101
  }
@@ -115,11 +106,10 @@ class FileUploader extends _react.default.Component {
115
106
  this.handleFilesChange = function (files) {
116
107
  let isPasteUpload = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
117
108
  const _this = _this2;
118
- const {
119
- uploadType,
120
- updateUploadFileList,
121
- onCellTipShow
122
- } = _this2.props;
109
+ const _this2$props = _this2.props,
110
+ uploadType = _this2$props.uploadType,
111
+ updateUploadFileList = _this2$props.updateUploadFileList,
112
+ onCellTipShow = _this2$props.onCellTipShow;
123
113
  let uploadFileList = [];
124
114
  let dealFileCnt = 0;
125
115
  let allFileLen = files.length;
@@ -197,9 +187,7 @@ class FileUploader extends _react.default.Component {
197
187
  });
198
188
  };
199
189
  this.handleFileChange = (fileMessage, callback) => {
200
- const {
201
- onFileUploadFailed
202
- } = this.props;
190
+ const onFileUploadFailed = this.props.onFileUploadFailed;
203
191
  this.uploadFile(fileMessage).then(res => {
204
192
  const data = res;
205
193
  this.uploadFileMessage({
@@ -220,10 +208,9 @@ class FileUploader extends _react.default.Component {
220
208
  });
221
209
  };
222
210
  this.uploadFileMessage = _ref => {
223
- let {
224
- data = {},
225
- fileMessage
226
- } = _ref;
211
+ let _ref$data = _ref.data,
212
+ data = _ref$data === void 0 ? {} : _ref$data,
213
+ fileMessage = _ref.fileMessage;
227
214
  fileMessage.name = data.name;
228
215
  fileMessage.isUploading = false;
229
216
  fileMessage.size = data.size;
@@ -239,9 +226,7 @@ class FileUploader extends _react.default.Component {
239
226
  this.handleFileChange(fileMessage);
240
227
  };
241
228
  this.onUploadProgress = (event, fileMessage) => {
242
- const {
243
- onFileUploadProgress
244
- } = this.props;
229
+ const onFileUploadProgress = this.props.onFileUploadProgress;
245
230
  let uploadPercent = Math.floor(event.loaded / event.total * 100);
246
231
  fileMessage.percent = uploadPercent;
247
232
  if (onFileUploadProgress) onFileUploadProgress(fileMessage);
@@ -256,9 +241,7 @@ class FileUploader extends _react.default.Component {
256
241
  };
257
242
  }
258
243
  render() {
259
- const {
260
- uploadType
261
- } = this.props;
244
+ const uploadType = this.props.uploadType;
262
245
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
263
246
  onDragEnter: this.onDragEnter,
264
247
  onDragOver: this.onDragOver,
@@ -32,9 +32,7 @@ class FormulaFormatter extends _react.default.Component {
32
32
  }
33
33
  };
34
34
  this.renderCellValue = (cellValue, resultType) => {
35
- const {
36
- containerClassName
37
- } = this.props;
35
+ const containerClassName = this.props.containerClassName;
38
36
  const gridCellClassName = this.getGridCellClassName(resultType);
39
37
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
40
38
  className: "dtable-ui cell-formatter-container formula-formatter ".concat(containerClassName, " ").concat(gridCellClassName),
@@ -47,18 +45,13 @@ class FormulaFormatter extends _react.default.Component {
47
45
  return this.renderCellValue(errorValue, resultType);
48
46
  };
49
47
  this.renderOtherColumnFormatter = () => {
50
- const {
51
- value,
52
- column,
53
- collaborators
54
- } = this.props;
55
- const {
56
- data: columnData
57
- } = column;
58
- const {
59
- array_type,
60
- array_data
61
- } = columnData;
48
+ const _this$props = this.props,
49
+ value = _this$props.value,
50
+ column = _this$props.column,
51
+ collaborators = _this$props.collaborators;
52
+ const columnData = column.data;
53
+ const array_type = columnData.array_type,
54
+ array_data = columnData.array_data;
62
55
  if (!array_type || array_type === _dtableUtils.CellType.LINK) {
63
56
  return null;
64
57
  }
@@ -89,9 +82,7 @@ class FormulaFormatter extends _react.default.Component {
89
82
  switch (array_type) {
90
83
  case _dtableUtils.CellType.DURATION:
91
84
  {
92
- const {
93
- duration_format
94
- } = array_data;
85
+ const duration_format = array_data.duration_format;
95
86
  return {
96
87
  format: duration_format
97
88
  };
@@ -122,19 +113,14 @@ class FormulaFormatter extends _react.default.Component {
122
113
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextFormatter.default, (0, _objectSpread2.default)({}, formatterProps));
123
114
  }
124
115
  render() {
125
- const {
126
- column,
127
- collaborators
128
- } = this.props;
129
- const {
130
- data
131
- } = column;
116
+ const _this$props2 = this.props,
117
+ column = _this$props2.column,
118
+ collaborators = _this$props2.collaborators;
119
+ const data = column.data;
132
120
  let value = this.props.value;
133
121
  if (!data || !value && value !== 0 && value !== false) return null;
134
- const {
135
- array_type,
136
- result_type: resultType
137
- } = data;
122
+ const array_type = data.array_type,
123
+ resultType = data.result_type;
138
124
  if (_dtableUtils.DISPLAY_INTERNAL_ERRORS.includes(value)) {
139
125
  return this.renderInternalErrorValue(value, resultType);
140
126
  }
@@ -15,10 +15,8 @@ var _mbEditor = _interopRequireDefault(require("./mb-editor"));
15
15
  var _jsxRuntime = require("react/jsx-runtime");
16
16
  const _excluded = ["isMobile", "config"];
17
17
  const GeolocationEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
18
- let {
19
- isMobile,
20
- config: propsConfig
21
- } = _ref,
18
+ let isMobile = _ref.isMobile,
19
+ propsConfig = _ref.config,
22
20
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
23
21
  const config = (0, _react.useMemo)(() => {
24
22
  var _window;
@@ -29,10 +27,11 @@ const GeolocationEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
29
27
  if ((_window2 = window) !== null && _window2 !== void 0 && (_window2$app = _window2.app) !== null && _window2$app !== void 0 && _window2$app.location) return new Promise((resolve, reject) => {
30
28
  resolve(window.app.location);
31
29
  });
32
- const {
33
- server = '',
34
- mediaUrl = ''
35
- } = config || {};
30
+ const _ref2 = config || {},
31
+ _ref2$server = _ref2.server,
32
+ server = _ref2$server === void 0 ? '' : _ref2$server,
33
+ _ref2$mediaUrl = _ref2.mediaUrl,
34
+ mediaUrl = _ref2$mediaUrl === void 0 ? '' : _ref2$mediaUrl;
36
35
  return fetch("".concat(server).concat(mediaUrl, "geo-data/cn-location.json").replaceAll('//', '/')).then(res => {
37
36
  // get locations from server
38
37
  return res.json();
@@ -50,10 +49,10 @@ const GeolocationEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
50
49
  if (lang !== 'cn' && window.app.countryListEn) return new Promise((resolve, reject) => {
51
50
  resolve(window.app.countryListEn);
52
51
  });
53
- const {
54
- mediaUrl = '',
55
- server = ''
56
- } = config;
52
+ const _config$mediaUrl = config.mediaUrl,
53
+ mediaUrl = _config$mediaUrl === void 0 ? '' : _config$mediaUrl,
54
+ _config$server = config.server,
55
+ server = _config$server === void 0 ? '' : _config$server;
57
56
  const geoFileName = lang === 'cn' ? 'cn-region-location' : 'en-region-location';
58
57
  return fetch("".concat(server).concat(mediaUrl, "geo-data/").concat(geoFileName, ".json").replaceAll('//', '/')).then(res => {
59
58
  return res.json();
@@ -30,16 +30,19 @@ const MINE_MAP_ONLINE_SERVICE = {
30
30
  const getMineMapUrl = function () {
31
31
  var _window;
32
32
  let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
33
- const {
34
- dtableMineMapCustomConfig = {}
35
- } = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (_window = window) === null || _window === void 0 ? void 0 : _window.dtable), config);
36
- const {
37
- domain_url = '',
38
- data_domain_url = '',
39
- server_domain_url = '',
40
- sprite_url = '',
41
- service_url = ''
42
- } = dtableMineMapCustomConfig;
33
+ const _window$dtable$config = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (_window = window) === null || _window === void 0 ? void 0 : _window.dtable), config),
34
+ _window$dtable$config2 = _window$dtable$config.dtableMineMapCustomConfig,
35
+ dtableMineMapCustomConfig = _window$dtable$config2 === void 0 ? {} : _window$dtable$config2;
36
+ const _dtableMineMapCustomC = dtableMineMapCustomConfig.domain_url,
37
+ domain_url = _dtableMineMapCustomC === void 0 ? '' : _dtableMineMapCustomC,
38
+ _dtableMineMapCustomC2 = dtableMineMapCustomConfig.data_domain_url,
39
+ data_domain_url = _dtableMineMapCustomC2 === void 0 ? '' : _dtableMineMapCustomC2,
40
+ _dtableMineMapCustomC3 = dtableMineMapCustomConfig.server_domain_url,
41
+ server_domain_url = _dtableMineMapCustomC3 === void 0 ? '' : _dtableMineMapCustomC3,
42
+ _dtableMineMapCustomC4 = dtableMineMapCustomConfig.sprite_url,
43
+ sprite_url = _dtableMineMapCustomC4 === void 0 ? '' : _dtableMineMapCustomC4,
44
+ _dtableMineMapCustomC5 = dtableMineMapCustomConfig.service_url,
45
+ service_url = _dtableMineMapCustomC5 === void 0 ? '' : _dtableMineMapCustomC5;
43
46
  return {
44
47
  domainUrl: domain_url || MINE_MAP_ONLINE_SERVICE.DOMAIN_URL,
45
48
  dataDomainUrl: data_domain_url || MINE_MAP_ONLINE_SERVICE.DATA_DOMAIN_URL,
@@ -72,11 +75,10 @@ exports.getInitCenter = getInitCenter;
72
75
  const getMapInfo = function () {
73
76
  var _window2;
74
77
  let config = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
75
- const {
76
- dtableBaiduMapKey: baiduMapKey,
77
- dtableGoogleMapKey: googleMapKey,
78
- dtableMineMapKey: mineMapKey
79
- } = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.dtable), config);
78
+ const _window$dtable$config3 = (0, _objectSpread2.default)((0, _objectSpread2.default)({}, (_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.dtable), config),
79
+ baiduMapKey = _window$dtable$config3.dtableBaiduMapKey,
80
+ googleMapKey = _window$dtable$config3.dtableGoogleMapKey,
81
+ mineMapKey = _window$dtable$config3.dtableMineMapKey;
80
82
  let mapType;
81
83
  let mapKey;
82
84
  if (baiduMapKey) {
@@ -1,31 +1,34 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
3
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").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"));
9
10
  var _react = _interopRequireWildcard(require("react"));
10
11
  var _Picker = _interopRequireDefault(require("../../Picker"));
11
12
  var _List = _interopRequireDefault(require("../../List"));
12
13
  var _MobileFullScreenPage = _interopRequireDefault(require("../../MobileFullScreenPage"));
13
14
  var _lang = require("../../lang");
14
15
  var _jsxRuntime = require("react/jsx-runtime");
15
- const {
16
- Header,
17
- Body
18
- } = _MobileFullScreenPage.default;
16
+ const Header = _MobileFullScreenPage.default.Header,
17
+ Body = _MobileFullScreenPage.default.Body;
19
18
  const CountryEditor = _ref => {
20
- let {
21
- column,
22
- value: oldValue,
23
- getData,
24
- onToggle,
25
- onCommit
26
- } = _ref;
27
- const [value, setValue] = (0, _react.useState)([]);
28
- const [isLoading, setLoading] = (0, _react.useState)(true);
19
+ let column = _ref.column,
20
+ oldValue = _ref.value,
21
+ getData = _ref.getData,
22
+ onToggle = _ref.onToggle,
23
+ onCommit = _ref.onCommit;
24
+ const _useState = (0, _react.useState)([]),
25
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
26
+ value = _useState2[0],
27
+ setValue = _useState2[1];
28
+ const _useState3 = (0, _react.useState)(true),
29
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
30
+ isLoading = _useState4[0],
31
+ setLoading = _useState4[1];
29
32
  const locations = (0, _react.useRef)([]);
30
33
  (0, _react.useEffect)(() => {
31
34
  getData().then(data => {
@@ -55,12 +55,10 @@ const transCountryData = data => {
55
55
  return _data;
56
56
  };
57
57
  const MBGeolocationEditor = _ref => {
58
- let {
59
- column,
60
- config,
61
- getLocationData,
62
- getCountryData
63
- } = _ref,
58
+ let column = _ref.column,
59
+ config = _ref.config,
60
+ getLocationData = _ref.getLocationData,
61
+ getCountryData = _ref.getCountryData,
64
62
  props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
65
63
  const format = (0, _react.useMemo)(() => {
66
64
  let data = column.data || {};
@@ -1,11 +1,12 @@
1
1
  "use strict";
2
2
 
3
- var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
4
3
  var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
4
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").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"));
9
10
  var _react = _interopRequireWildcard(require("react"));
10
11
  var _InputItem = _interopRequireDefault(require("../../InputItem"));
11
12
  var _Picker = _interopRequireDefault(require("../../Picker"));
@@ -14,25 +15,27 @@ var _MobileFullScreenPage = _interopRequireDefault(require("../../MobileFullScre
14
15
  var _lang = require("../../lang");
15
16
  var _objectUtils = _interopRequireDefault(require("../../utils/object-utils"));
16
17
  var _jsxRuntime = require("react/jsx-runtime");
17
- const {
18
- Header,
19
- Body
20
- } = _MobileFullScreenPage.default;
18
+ const Header = _MobileFullScreenPage.default.Header,
19
+ Body = _MobileFullScreenPage.default.Body;
21
20
  const LocationEditor = _ref => {
22
- let {
23
- isShowDetails,
24
- column,
25
- value: oldValue,
26
- getData,
27
- onToggle,
28
- onCommit
29
- } = _ref;
21
+ let isShowDetails = _ref.isShowDetails,
22
+ column = _ref.column,
23
+ oldValue = _ref.value,
24
+ getData = _ref.getData,
25
+ onToggle = _ref.onToggle,
26
+ onCommit = _ref.onCommit;
30
27
  let initValue = [(oldValue === null || oldValue === void 0 ? void 0 : oldValue.province) || '', (oldValue === null || oldValue === void 0 ? void 0 : oldValue.city) || '', (oldValue === null || oldValue === void 0 ? void 0 : oldValue.district) || ''];
31
28
  if (isShowDetails) {
32
29
  initValue.push((oldValue === null || oldValue === void 0 ? void 0 : oldValue.detail) || '');
33
30
  }
34
- const [value, setValue] = (0, _react.useState)(initValue);
35
- const [isLoading, setLoading] = (0, _react.useState)(true);
31
+ const _useState = (0, _react.useState)(initValue),
32
+ _useState2 = (0, _slicedToArray2.default)(_useState, 2),
33
+ value = _useState2[0],
34
+ setValue = _useState2[1];
35
+ const _useState3 = (0, _react.useState)(true),
36
+ _useState4 = (0, _slicedToArray2.default)(_useState3, 2),
37
+ isLoading = _useState4[0],
38
+ setLoading = _useState4[1];
36
39
  const locations = (0, _react.useRef)([]);
37
40
  (0, _react.useEffect)(() => {
38
41
  getData().then(data => {
@@ -18,23 +18,20 @@ var _Loading = _interopRequireDefault(require("../../../Loading"));
18
18
  var _objectUtils = _interopRequireDefault(require("../../../utils/object-utils"));
19
19
  require("./index.css");
20
20
  var _jsxRuntime = require("react/jsx-runtime");
21
- const {
22
- Header,
23
- Body
24
- } = _MobileFullScreenPage.default;
21
+ const Header = _MobileFullScreenPage.default.Header,
22
+ Body = _MobileFullScreenPage.default.Body;
25
23
  class MapEditor extends _react.default.Component {
26
24
  constructor(props) {
27
25
  super(props);
28
26
  this.loadMineMapCallBack = () => {
29
27
  if (!this.timer) {
30
28
  this.timer = setTimeout(() => {
31
- const {
32
- domainUrl,
33
- dataDomainUrl,
34
- serverDomainUrl,
35
- spriteUrl,
36
- serviceUrl
37
- } = (0, _mapEditorUtils.getMineMapUrl)();
29
+ const _getMineMapUrl = (0, _mapEditorUtils.getMineMapUrl)(),
30
+ domainUrl = _getMineMapUrl.domainUrl,
31
+ dataDomainUrl = _getMineMapUrl.dataDomainUrl,
32
+ serverDomainUrl = _getMineMapUrl.serverDomainUrl,
33
+ spriteUrl = _getMineMapUrl.spriteUrl,
34
+ serviceUrl = _getMineMapUrl.serviceUrl;
38
35
  window.minemap.domainUrl = domainUrl;
39
36
  window.minemap.dataDomainUrl = dataDomainUrl;
40
37
  window.minemap.serverDomainUrl = serverDomainUrl;
@@ -62,14 +59,11 @@ class MapEditor extends _react.default.Component {
62
59
  minZoom: 3,
63
60
  projection: 'MERCATOR'
64
61
  });
65
- let {
66
- lng,
67
- lat,
68
- zoom
69
- } = (0, _mapEditorUtils.getInitCenter)();
70
- const {
71
- value
72
- } = this.state;
62
+ let _getInitCenter = (0, _mapEditorUtils.getInitCenter)(),
63
+ lng = _getInitCenter.lng,
64
+ lat = _getInitCenter.lat,
65
+ zoom = _getInitCenter.zoom;
66
+ const value = this.state.value;
73
67
  if ((0, _cell.isValidPosition)(value.lng, value.lat)) {
74
68
  lng = value.lng;
75
69
  lat = value.lat;
@@ -93,14 +87,11 @@ class MapEditor extends _react.default.Component {
93
87
  if (!window.BMap.Map) return;
94
88
  setTimeout(() => {
95
89
  this.map = new window.BMap.Map('dtable-ui-mobile-geolocation-map-container');
96
- let {
97
- lng,
98
- lat,
99
- zoom
100
- } = (0, _mapEditorUtils.getInitCenter)();
101
- const {
102
- value
103
- } = this.state;
90
+ let _getInitCenter2 = (0, _mapEditorUtils.getInitCenter)(),
91
+ lng = _getInitCenter2.lng,
92
+ lat = _getInitCenter2.lat,
93
+ zoom = _getInitCenter2.zoom;
94
+ const value = this.state.value;
104
95
  if ((0, _cell.isValidPosition)(value.lng, value.lat)) {
105
96
  lng = value.lng;
106
97
  lat = value.lat;
@@ -137,11 +128,10 @@ class MapEditor extends _react.default.Component {
137
128
  isLoading: false
138
129
  }, () => {
139
130
  setTimeout(() => {
140
- let {
141
- lng,
142
- lat,
143
- zoom
144
- } = (0, _mapEditorUtils.getInitCenter)();
131
+ let _getInitCenter3 = (0, _mapEditorUtils.getInitCenter)(),
132
+ lng = _getInitCenter3.lng,
133
+ lat = _getInitCenter3.lat,
134
+ zoom = _getInitCenter3.zoom;
145
135
  this.map = new window.google.maps.Map(this.ref, {
146
136
  zoom,
147
137
  center: {
@@ -155,9 +145,7 @@ class MapEditor extends _react.default.Component {
155
145
  rotateControl: false,
156
146
  fullscreenControl: false
157
147
  });
158
- const {
159
- value
160
- } = this.state;
148
+ const value = this.state.value;
161
149
  if (value.lng && value.lat) {
162
150
  lng = value.lng;
163
151
  lat = value.lat;
@@ -243,16 +231,13 @@ class MapEditor extends _react.default.Component {
243
231
  });
244
232
  };
245
233
  this.onSubmit = () => {
246
- const {
247
- value
248
- } = this.state;
234
+ const value = this.state.value;
249
235
  if (!_objectUtils.default.isSameObject(value, this.props.value)) {
250
236
  this.props.onCommit(value);
251
237
  }
252
- const {
253
- lng,
254
- lat
255
- } = (0, _dtableUtils.normalizeMapPoint)(value);
238
+ const _normalizeMapPoint = (0, _dtableUtils.normalizeMapPoint)(value),
239
+ lng = _normalizeMapPoint.lng,
240
+ lat = _normalizeMapPoint.lat;
256
241
  const newValue = !(0, _dtableUtils.isNumber)(lng) || !(0, _dtableUtils.isNumber)(lat) ? null : value;
257
242
  this.props.onCommit(newValue);
258
243
  this.onClose();
@@ -292,9 +277,7 @@ class MapEditor extends _react.default.Component {
292
277
  this.props.onToggle();
293
278
  };
294
279
  this.onBlur = () => {
295
- const {
296
- value
297
- } = this.state;
280
+ const value = this.state.value;
298
281
  const numericValue = (0, _dtableUtils.normalizeMapPoint)(value);
299
282
  this.setState({
300
283
  value: numericValue
@@ -323,10 +306,8 @@ class MapEditor extends _react.default.Component {
323
306
  });
324
307
  };
325
308
  this.rerenderMapMarker = _ref => {
326
- let {
327
- lng,
328
- lat
329
- } = _ref;
309
+ let lng = _ref.lng,
310
+ lat = _ref.lat;
330
311
  if (!(0, _dtableUtils.isNumber)(lng) || !(0, _dtableUtils.isNumber)(lat)) {
331
312
  return;
332
313
  }
@@ -343,11 +324,10 @@ class MapEditor extends _react.default.Component {
343
324
  this.addMarkerByPosition(lng, lat);
344
325
  };
345
326
  this.renderMap = () => {
346
- const {
347
- isLoading,
348
- mode,
349
- value: lng_lat
350
- } = this.state;
327
+ const _this$state = this.state,
328
+ isLoading = _this$state.isLoading,
329
+ mode = _this$state.mode,
330
+ lng_lat = _this$state.value;
351
331
  if (isLoading) return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
352
332
  className: "w-100 h-100 d-flex align-items-center justify-content-center",
353
333
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {})
@@ -440,17 +420,14 @@ class MapEditor extends _react.default.Component {
440
420
  lng: '',
441
421
  lat: ''
442
422
  };
443
- const {
444
- mapType,
445
- mapKey
446
- } = (0, _mapEditorUtils.getMapInfo)(props.config);
423
+ const _getMapInfo = (0, _mapEditorUtils.getMapInfo)(props.config),
424
+ mapType = _getMapInfo.mapType,
425
+ mapKey = _getMapInfo.mapKey;
447
426
  this.mapType = mapType;
448
427
  this.mapKey = mapKey;
449
428
  this.map = null;
450
- const {
451
- lng: _lng,
452
- lat: _lat
453
- } = _value;
429
+ const _lng = _value.lng,
430
+ _lat = _value.lat;
454
431
  this.state = {
455
432
  mode: (0, _cell.isValidPosition)(_lng, _lat) ? 'preview' : 'edit',
456
433
  isLoading: true,
@@ -508,12 +485,8 @@ class MapEditor extends _react.default.Component {
508
485
  this.map = null;
509
486
  }
510
487
  render() {
511
- const {
512
- column
513
- } = this.props;
514
- const {
515
- mode
516
- } = this.state;
488
+ const column = this.props.column;
489
+ const mode = this.state.mode;
517
490
  const isEdit = mode === 'edit';
518
491
  return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
519
492
  className: "dtable-ui-mobile-geolocation-map-editor",