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
@@ -16,6 +16,7 @@ var _lang = require("../../../lang");
16
16
  var _Loading = _interopRequireDefault(require("../../../Loading"));
17
17
  var _objectUtils = _interopRequireDefault(require("../../../utils/object-utils"));
18
18
  require("./index.css");
19
+ var _jsxRuntime = require("react/jsx-runtime");
19
20
  const {
20
21
  Header,
21
22
  Body
@@ -350,75 +351,93 @@ class MapEditor extends _react.default.Component {
350
351
  mode,
351
352
  value: lng_lat
352
353
  } = this.state;
353
- if (isLoading) return /*#__PURE__*/_react.default.createElement("div", {
354
- className: "w-100 h-100 d-flex align-items-center justify-content-center"
355
- }, /*#__PURE__*/_react.default.createElement(_Loading.default, null));
354
+ if (isLoading) return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
355
+ className: "w-100 h-100 d-flex align-items-center justify-content-center",
356
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {})
357
+ });
356
358
  if (!this.mapType) {
357
- return /*#__PURE__*/_react.default.createElement("div", {
358
- className: "dtable-ui-geolocation-map-editor-error-message d-flex justify-content-center align-items-center w-100 h-100"
359
- }, /*#__PURE__*/_react.default.createElement("span", {
360
- className: "alert-danger"
361
- }, (0, _lang.getLocale)('The_map_plugin_is_not_properly_configured_contact_the_administrator')));
359
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
360
+ className: "dtable-ui-geolocation-map-editor-error-message d-flex justify-content-center align-items-center w-100 h-100",
361
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
362
+ className: "alert-danger",
363
+ children: (0, _lang.getLocale)('The_map_plugin_is_not_properly_configured_contact_the_administrator')
364
+ })
365
+ });
362
366
  }
363
367
  const isEdit = mode === 'edit';
364
368
  const lat = lng_lat && !(0, _dtableUtils.isEmpty)(lng_lat.lat) ? lng_lat.lat : '';
365
369
  const lng = lng_lat && !(0, _dtableUtils.isEmpty)(lng_lat.lng) ? lng_lat.lng : '';
366
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
367
- className: "dtable-ui-mobile-geolocation-map-editor-input-container"
368
- }, /*#__PURE__*/_react.default.createElement("div", {
369
- className: "view-subtitle"
370
- }, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Latitude_abbr'))), /*#__PURE__*/_react.default.createElement(_InputItem.default, {
371
- type: "text",
372
- className: "dtable-ui-mobile-geolocation-map-editor-input",
373
- style: {
374
- marginTop: 0
375
- },
376
- value: lat,
377
- editable: isEdit,
378
- onBlur: this.onBlur,
379
- onChange: this.handleLatitudeChange,
380
- placeholder: (0, _lang.getLocale)('Latitude')
381
- }), /*#__PURE__*/_react.default.createElement("div", {
382
- className: "view-subtitle"
383
- }, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Longitude_abbr'))), /*#__PURE__*/_react.default.createElement(_InputItem.default, {
384
- type: "text",
385
- className: "dtable-ui-mobile-geolocation-map-editor-input",
386
- style: {
387
- marginTop: 0
388
- },
389
- value: lng,
390
- editable: isEdit,
391
- onBlur: this.onBlur,
392
- onChange: this.handleLongitudeChange,
393
- placeholder: (0, _lang.getLocale)('Longitude')
394
- })), /*#__PURE__*/_react.default.createElement("div", {
395
- className: "dtable-ui-mobile-geolocation-map-editor-map"
396
- }, /*#__PURE__*/_react.default.createElement("div", {
397
- className: "w-100 h-100",
398
- ref: ref => this.ref = ref,
399
- id: "dtable-ui-mobile-geolocation-map-container"
400
- }), /*#__PURE__*/_react.default.createElement("div", {
401
- className: "dtable-ui-geolocation-map-controller"
402
- }, /*#__PURE__*/_react.default.createElement("div", {
403
- className: "dtable-ui-geolocation-locate-control",
404
- onClick: this.onLocateCurrentPosition
405
- }, /*#__PURE__*/_react.default.createElement("i", {
406
- className: "dtable-font dtable-icon-current-location"
407
- })), /*#__PURE__*/_react.default.createElement("div", {
408
- className: "dtable-ui-geolocation-zoom-control"
409
- }, /*#__PURE__*/_react.default.createElement("div", {
410
- className: "dtable-ui-geolocation-zoom-control-btn",
411
- onClick: this.onZoomIn
412
- }, /*#__PURE__*/_react.default.createElement("i", {
413
- "aria-hidden": "true",
414
- className: "dtable-font dtable-icon-enlarge"
415
- })), /*#__PURE__*/_react.default.createElement("div", {
416
- className: "dtable-ui-geolocation-zoom-control-btn",
417
- onClick: this.onZoomOut
418
- }, /*#__PURE__*/_react.default.createElement("i", {
419
- "aria-hidden": "true",
420
- className: "dtable-font dtable-icon-narrow"
421
- }))))));
370
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
371
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
372
+ className: "dtable-ui-mobile-geolocation-map-editor-input-container",
373
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
374
+ className: "view-subtitle",
375
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
376
+ children: (0, _lang.getLocale)('Latitude_abbr')
377
+ })
378
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputItem.default, {
379
+ type: "text",
380
+ className: "dtable-ui-mobile-geolocation-map-editor-input",
381
+ style: {
382
+ marginTop: 0
383
+ },
384
+ value: lat,
385
+ editable: isEdit,
386
+ onBlur: this.onBlur,
387
+ onChange: this.handleLatitudeChange,
388
+ placeholder: (0, _lang.getLocale)('Latitude')
389
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
390
+ className: "view-subtitle",
391
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
392
+ children: (0, _lang.getLocale)('Longitude_abbr')
393
+ })
394
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputItem.default, {
395
+ type: "text",
396
+ className: "dtable-ui-mobile-geolocation-map-editor-input",
397
+ style: {
398
+ marginTop: 0
399
+ },
400
+ value: lng,
401
+ editable: isEdit,
402
+ onBlur: this.onBlur,
403
+ onChange: this.handleLongitudeChange,
404
+ placeholder: (0, _lang.getLocale)('Longitude')
405
+ })]
406
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
407
+ className: "dtable-ui-mobile-geolocation-map-editor-map",
408
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
409
+ className: "w-100 h-100",
410
+ ref: ref => this.ref = ref,
411
+ id: "dtable-ui-mobile-geolocation-map-container"
412
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
413
+ className: "dtable-ui-geolocation-map-controller",
414
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
415
+ className: "dtable-ui-geolocation-locate-control",
416
+ onClick: this.onLocateCurrentPosition,
417
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
418
+ className: "dtable-font dtable-icon-current-location"
419
+ })
420
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
421
+ className: "dtable-ui-geolocation-zoom-control",
422
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
423
+ className: "dtable-ui-geolocation-zoom-control-btn",
424
+ onClick: this.onZoomIn,
425
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
426
+ "aria-hidden": "true",
427
+ className: "dtable-font dtable-icon-enlarge"
428
+ })
429
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
430
+ className: "dtable-ui-geolocation-zoom-control-btn",
431
+ onClick: this.onZoomOut,
432
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
433
+ "aria-hidden": "true",
434
+ className: "dtable-font dtable-icon-narrow"
435
+ })
436
+ })]
437
+ })]
438
+ })]
439
+ })]
440
+ });
422
441
  };
423
442
  const _value = props.value || {
424
443
  lng: '',
@@ -499,17 +518,26 @@ class MapEditor extends _react.default.Component {
499
518
  mode
500
519
  } = this.state;
501
520
  const isEdit = mode === 'edit';
502
- return /*#__PURE__*/_react.default.createElement(_MobileFullScreenPage.default, {
521
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
503
522
  className: "dtable-ui-mobile-geolocation-map-editor",
504
- onClose: this.onClose
505
- }, /*#__PURE__*/_react.default.createElement(Header, {
506
- onLeftClick: this.onLeftClick,
507
- onRightClick: this.onRightClick
508
- }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, isEdit ? (0, _lang.getLocale)('Cancel') : (0, _lang.getLocale)('Close')), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, column.name), /*#__PURE__*/_react.default.createElement("span", {
509
- style: {
510
- color: '#f09f3f'
511
- }
512
- }, isEdit ? (0, _lang.getLocale)('Submit') : (0, _lang.getLocale)('Edit'))), /*#__PURE__*/_react.default.createElement(Body, null, this.renderMap()));
523
+ onClose: this.onClose,
524
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
525
+ onLeftClick: this.onLeftClick,
526
+ onRightClick: this.onRightClick,
527
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
528
+ children: isEdit ? (0, _lang.getLocale)('Cancel') : (0, _lang.getLocale)('Close')
529
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
530
+ children: column.name
531
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
532
+ style: {
533
+ color: '#f09f3f'
534
+ },
535
+ children: isEdit ? (0, _lang.getLocale)('Submit') : (0, _lang.getLocale)('Edit')
536
+ })]
537
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, {
538
+ children: this.renderMap()
539
+ })]
540
+ });
513
541
  }
514
542
  }
515
543
  var _default = exports.default = MapEditor;
@@ -16,6 +16,7 @@ var _cell = require("../../../utils/cell");
16
16
  var _lang = require("../../../lang");
17
17
  var _Loading = _interopRequireDefault(require("../../../Loading"));
18
18
  require("./index.css");
19
+ var _jsxRuntime = require("react/jsx-runtime");
19
20
  const {
20
21
  Header,
21
22
  Body
@@ -330,19 +331,22 @@ class MapSelectionEditor extends _react.default.Component {
330
331
  searchResults
331
332
  } = this.state;
332
333
  if (searchResults.length === 0) return null;
333
- return /*#__PURE__*/_react.default.createElement("div", {
334
- className: "dtable-ui-mobile-map-selection-editor-search-results"
335
- }, searchResults.map((result, index) => {
336
- return /*#__PURE__*/_react.default.createElement("div", {
337
- className: "dtable-ui-mobile-map-selection-editor-search-result",
338
- key: index,
339
- onClick: this.onClickSelection.bind(this, result)
340
- }, /*#__PURE__*/_react.default.createElement("span", {
341
- className: "dtable-ui-mobile-map-selection-editor-search-result-title"
342
- }, result.title || ''), /*#__PURE__*/_react.default.createElement("span", {
343
- className: "dtable-ui-mobile-map-selection-editor-search-result-address"
344
- }, result.address || ''));
345
- }));
334
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
335
+ className: "dtable-ui-mobile-map-selection-editor-search-results",
336
+ children: searchResults.map((result, index) => {
337
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
338
+ className: "dtable-ui-mobile-map-selection-editor-search-result",
339
+ onClick: this.onClickSelection.bind(this, result),
340
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
341
+ className: "dtable-ui-mobile-map-selection-editor-search-result-title",
342
+ children: result.title || ''
343
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
344
+ className: "dtable-ui-mobile-map-selection-editor-search-result-address",
345
+ children: result.address || ''
346
+ })]
347
+ }, index);
348
+ })
349
+ });
346
350
  };
347
351
  this.renderLabel = () => {
348
352
  const {
@@ -355,42 +359,51 @@ class MapSelectionEditor extends _react.default.Component {
355
359
  } = selectedSelection;
356
360
  const tagContent = Array.isArray(tag) && tag.length > 0 ? tag[0] : '';
357
361
  if (title) {
358
- return /*#__PURE__*/_react.default.createElement("div", {
359
- className: "dtable-ui-mobile-geolocation-map-editor-label"
360
- }, /*#__PURE__*/_react.default.createElement("span", {
361
- className: "dtable-ui-mobile-geolocation-map-editor-label-title",
362
- title: title
363
- }, title), tagContent && /*#__PURE__*/_react.default.createElement("span", {
364
- className: "dtable-ui-mobile-geolocation-map-editor-label-tag"
365
- }, tagContent), /*#__PURE__*/_react.default.createElement("span", {
362
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
363
+ className: "dtable-ui-mobile-geolocation-map-editor-label",
364
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
365
+ className: "dtable-ui-mobile-geolocation-map-editor-label-title",
366
+ title: title,
367
+ children: title
368
+ }), tagContent && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
369
+ className: "dtable-ui-mobile-geolocation-map-editor-label-tag",
370
+ children: tagContent
371
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
372
+ className: "dtable-font dtable-icon-x",
373
+ onClick: this.onCloseLabel
374
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
375
+ className: "dtable-ui-mobile-geolocation-map-editor-label-address-tip",
376
+ children: (0, _lang.getLocale)('Address')
377
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
378
+ className: "dtable-ui-mobile-geolocation-map-editor-label-address",
379
+ title: address,
380
+ children: address
381
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
382
+ className: "dtable-ui-mobile-geolocation-map-editor-label-btn",
383
+ color: "primary",
384
+ size: "sm",
385
+ onClick: this.onFillIn,
386
+ children: (0, _lang.getLocale)('Fill_in')
387
+ })]
388
+ });
389
+ }
390
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
391
+ className: "dtable-ui-mobile-geolocation-map-editor-label simple",
392
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
366
393
  className: "dtable-font dtable-icon-x",
367
394
  onClick: this.onCloseLabel
368
- }), /*#__PURE__*/_react.default.createElement("span", {
369
- className: "dtable-ui-mobile-geolocation-map-editor-label-address-tip"
370
- }, (0, _lang.getLocale)('Address')), /*#__PURE__*/_react.default.createElement("span", {
371
- className: "dtable-ui-mobile-geolocation-map-editor-label-address",
372
- title: address
373
- }, address), /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
374
- className: "dtable-ui-mobile-geolocation-map-editor-label-btn",
395
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
396
+ className: "dtable-ui-mobile-geolocation-map-editor-label-address text-truncate simple",
397
+ title: address,
398
+ children: address
399
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
400
+ className: "dtable-ui-mobile-geolocation-map-editor-label-btn simple",
375
401
  color: "primary",
376
402
  size: "sm",
377
- onClick: this.onFillIn
378
- }, (0, _lang.getLocale)('Fill_in')));
379
- }
380
- return /*#__PURE__*/_react.default.createElement("div", {
381
- className: "dtable-ui-mobile-geolocation-map-editor-label simple"
382
- }, /*#__PURE__*/_react.default.createElement("span", {
383
- className: "dtable-font dtable-icon-x",
384
- onClick: this.onCloseLabel
385
- }), /*#__PURE__*/_react.default.createElement("span", {
386
- className: "dtable-ui-mobile-geolocation-map-editor-label-address text-truncate simple",
387
- title: address
388
- }, address), /*#__PURE__*/_react.default.createElement(_reactstrap.Button, {
389
- className: "dtable-ui-mobile-geolocation-map-editor-label-btn simple",
390
- color: "primary",
391
- size: "sm",
392
- onClick: this.onFillIn
393
- }, (0, _lang.getLocale)('Fill_in')));
403
+ onClick: this.onFillIn,
404
+ children: (0, _lang.getLocale)('Fill_in')
405
+ })]
406
+ });
394
407
  };
395
408
  this.renderMap = () => {
396
409
  const {
@@ -399,68 +412,83 @@ class MapSelectionEditor extends _react.default.Component {
399
412
  isShowSearchView,
400
413
  isShowLabel
401
414
  } = this.state;
402
- if (isLoading) return /*#__PURE__*/_react.default.createElement("div", {
403
- className: "w-100 h-100 d-flex align-items-center justify-content-center"
404
- }, /*#__PURE__*/_react.default.createElement(_Loading.default, null));
415
+ if (isLoading) return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
416
+ className: "w-100 h-100 d-flex align-items-center justify-content-center",
417
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {})
418
+ });
405
419
  if (!this.mapType) {
406
- return /*#__PURE__*/_react.default.createElement("div", {
407
- className: "dtable-ui-geolocation-map-editor-error-message d-flex justify-content-center align-items-center w-100 h-100"
408
- }, /*#__PURE__*/_react.default.createElement("span", {
409
- className: "alert-danger"
410
- }, (0, _lang.getLocale)('The_map_plugin_is_not_properly_configured_contact_the_administrator')));
420
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
421
+ className: "dtable-ui-geolocation-map-editor-error-message d-flex justify-content-center align-items-center w-100 h-100",
422
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
423
+ className: "alert-danger",
424
+ children: (0, _lang.getLocale)('The_map_plugin_is_not_properly_configured_contact_the_administrator')
425
+ })
426
+ });
411
427
  }
412
428
  if (this.mapType !== _mapEditorUtils.MAP_TYPES.B_MAP) {
413
- return /*#__PURE__*/_react.default.createElement("div", {
414
- className: "dtable-ui-geolocation-map-editor-error-message d-flex justify-content-center align-items-center w-100 h-100"
415
- }, /*#__PURE__*/_react.default.createElement("span", {
416
- className: "alert-danger"
417
- }, (0, _lang.getLocale)('This_map_type_currently_does_not_support_map_point_selection')));
429
+ return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
430
+ className: "dtable-ui-geolocation-map-editor-error-message d-flex justify-content-center align-items-center w-100 h-100",
431
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
432
+ className: "alert-danger",
433
+ children: (0, _lang.getLocale)('This_map_type_currently_does_not_support_map_point_selection')
434
+ })
435
+ });
418
436
  }
419
- return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, this.canSelectPosition && /*#__PURE__*/_react.default.createElement("div", {
420
- className: "dtable-ui-mobile-geolocation-map-editor-input-container"
421
- }, /*#__PURE__*/_react.default.createElement(_InputItem.default, {
422
- type: "text",
423
- className: "dtable-ui-mobile-geolocation-map-editor-input",
424
- style: {
425
- marginTop: 0
426
- },
427
- value: inputValue,
428
- onChange: this.onChange,
429
- clear: true,
430
- placeholder: (0, _lang.getLocale)('Please_enter_the_address')
431
- }), /*#__PURE__*/_react.default.createElement("div", {
432
- className: "dtable-ui-mobile-geolocation-map-editor-search-btn",
433
- onClick: this.onSearch
434
- }, /*#__PURE__*/_react.default.createElement("i", {
435
- className: "dtable-font dtable-icon-search"
436
- }))), /*#__PURE__*/_react.default.createElement("div", {
437
- className: "dtable-ui-mobile-geolocation-map-editor-map"
438
- }, /*#__PURE__*/_react.default.createElement("div", {
439
- className: "w-100 h-100",
440
- ref: ref => this.ref = ref,
441
- id: "dtable-ui-mobile-geolocation-map-container"
442
- }), /*#__PURE__*/_react.default.createElement("div", {
443
- className: "dtable-ui-geolocation-map-controller"
444
- }, /*#__PURE__*/_react.default.createElement("div", {
445
- className: "dtable-ui-geolocation-locate-control",
446
- onClick: this.onLocateCurrentPosition
447
- }, /*#__PURE__*/_react.default.createElement("i", {
448
- className: "dtable-font dtable-icon-current-location"
449
- })), /*#__PURE__*/_react.default.createElement("div", {
450
- className: "dtable-ui-geolocation-zoom-control"
451
- }, /*#__PURE__*/_react.default.createElement("div", {
452
- className: "dtable-ui-geolocation-zoom-control-btn",
453
- onClick: this.onZoomIn
454
- }, /*#__PURE__*/_react.default.createElement("i", {
455
- "aria-hidden": "true",
456
- className: "dtable-font dtable-icon-enlarge"
457
- })), /*#__PURE__*/_react.default.createElement("div", {
458
- className: "dtable-ui-geolocation-zoom-control-btn",
459
- onClick: this.onZoomOut
460
- }, /*#__PURE__*/_react.default.createElement("i", {
461
- "aria-hidden": "true",
462
- className: "dtable-font dtable-icon-narrow"
463
- })))), isShowSearchView && this.renderSearchResult()), isShowLabel && this.renderLabel());
437
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
438
+ children: [this.canSelectPosition && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
439
+ className: "dtable-ui-mobile-geolocation-map-editor-input-container",
440
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_InputItem.default, {
441
+ type: "text",
442
+ className: "dtable-ui-mobile-geolocation-map-editor-input",
443
+ style: {
444
+ marginTop: 0
445
+ },
446
+ value: inputValue,
447
+ onChange: this.onChange,
448
+ clear: true,
449
+ placeholder: (0, _lang.getLocale)('Please_enter_the_address')
450
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
451
+ className: "dtable-ui-mobile-geolocation-map-editor-search-btn",
452
+ onClick: this.onSearch,
453
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
454
+ className: "dtable-font dtable-icon-search"
455
+ })
456
+ })]
457
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
458
+ className: "dtable-ui-mobile-geolocation-map-editor-map",
459
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
460
+ className: "w-100 h-100",
461
+ ref: ref => this.ref = ref,
462
+ id: "dtable-ui-mobile-geolocation-map-container"
463
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
464
+ className: "dtable-ui-geolocation-map-controller",
465
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
466
+ className: "dtable-ui-geolocation-locate-control",
467
+ onClick: this.onLocateCurrentPosition,
468
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
469
+ className: "dtable-font dtable-icon-current-location"
470
+ })
471
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
472
+ className: "dtable-ui-geolocation-zoom-control",
473
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
474
+ className: "dtable-ui-geolocation-zoom-control-btn",
475
+ onClick: this.onZoomIn,
476
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
477
+ "aria-hidden": "true",
478
+ className: "dtable-font dtable-icon-enlarge"
479
+ })
480
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
481
+ className: "dtable-ui-geolocation-zoom-control-btn",
482
+ onClick: this.onZoomOut,
483
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
484
+ "aria-hidden": "true",
485
+ className: "dtable-font dtable-icon-narrow"
486
+ })
487
+ })]
488
+ })]
489
+ }), isShowSearchView && this.renderSearchResult()]
490
+ }), isShowLabel && this.renderLabel()]
491
+ });
464
492
  };
465
493
  const {
466
494
  value: _value,
@@ -517,14 +545,20 @@ class MapSelectionEditor extends _react.default.Component {
517
545
  const {
518
546
  column
519
547
  } = this.props;
520
- return /*#__PURE__*/_react.default.createElement(_MobileFullScreenPage.default, {
548
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
521
549
  className: "dtable-ui-mobile-geolocation-map-selection-editor",
522
- onClose: this.onClose
523
- }, /*#__PURE__*/_react.default.createElement(Header, {
524
- onLeftClick: this.onClose
525
- }, /*#__PURE__*/_react.default.createElement("i", {
526
- className: "dtable-font dtable-icon-return"
527
- }), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, column.name)), /*#__PURE__*/_react.default.createElement(Body, null, this.renderMap()));
550
+ onClose: this.onClose,
551
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
552
+ onLeftClick: this.onClose,
553
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
554
+ className: "dtable-font dtable-icon-return"
555
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
556
+ children: column.name
557
+ })]
558
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(Body, {
559
+ children: this.renderMap()
560
+ })]
561
+ });
528
562
  }
529
563
  }
530
564
  var _default = exports.default = MapSelectionEditor;
@@ -11,6 +11,7 @@ var _Picker = _interopRequireDefault(require("../../Picker"));
11
11
  var _List = _interopRequireDefault(require("../../List"));
12
12
  var _MobileFullScreenPage = _interopRequireDefault(require("../../MobileFullScreenPage"));
13
13
  var _lang = require("../../lang");
14
+ var _jsxRuntime = require("react/jsx-runtime");
14
15
  const {
15
16
  Header,
16
17
  Body
@@ -46,32 +47,46 @@ const ProvinceCityEditor = _ref => {
46
47
  }
47
48
  onToggle();
48
49
  }, [value, oldValue, onCommit, onToggle]);
49
- return /*#__PURE__*/_react.default.createElement(_MobileFullScreenPage.default, {
50
- onToggle: onToggle
51
- }, /*#__PURE__*/_react.default.createElement(Header, {
52
- onLeftClick: onToggle,
53
- onRightClick: onSubmit
54
- }, /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, (0, _lang.getLocale)('Cancel')), /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, column.name), /*#__PURE__*/_react.default.createElement("span", {
55
- style: {
56
- color: '#f09f3f'
57
- }
58
- }, (0, _lang.getLocale)('Submit'))), /*#__PURE__*/_react.default.createElement(Body, null, /*#__PURE__*/_react.default.createElement("div", {
59
- className: "dtable-ui-mobile-row-expand-subtitle"
60
- }, /*#__PURE__*/_react.default.createElement("span", null, (0, _lang.getLocale)('Address_information'))), /*#__PURE__*/_react.default.createElement(_Picker.default, {
61
- className: "dtable-ui-mobile-geolocation-editor-picker",
62
- data: isLoading ? [] : locations.current,
63
- value: value,
64
- format: "",
65
- onChange: onValueChange,
66
- cascade: true,
67
- title: (0, _lang.getLocale)('Address_information'),
68
- extra: (0, _lang.getLocale)('Select_location'),
69
- onOk: e => onValueChange(e),
70
- okText: (0, _lang.getLocale)('Done'),
71
- dismissText: (0, _lang.getLocale)('Cancel'),
72
- cols: 2
73
- }, /*#__PURE__*/_react.default.createElement(_List.default.Item, {
74
- arrow: "horizontal"
75
- }, value.join(' ') || (0, _lang.getLocale)('Select_location')))));
50
+ return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
51
+ onToggle: onToggle,
52
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
53
+ onLeftClick: onToggle,
54
+ onRightClick: onSubmit,
55
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
56
+ children: (0, _lang.getLocale)('Cancel')
57
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
58
+ children: column.name
59
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
60
+ style: {
61
+ color: '#f09f3f'
62
+ },
63
+ children: (0, _lang.getLocale)('Submit')
64
+ })]
65
+ }), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Body, {
66
+ children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
67
+ className: "dtable-ui-mobile-row-expand-subtitle",
68
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
69
+ children: (0, _lang.getLocale)('Address_information')
70
+ })
71
+ }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Picker.default, {
72
+ className: "dtable-ui-mobile-geolocation-editor-picker",
73
+ data: isLoading ? [] : locations.current,
74
+ value: value,
75
+ format: "",
76
+ onChange: onValueChange,
77
+ cascade: true,
78
+ title: (0, _lang.getLocale)('Address_information'),
79
+ extra: (0, _lang.getLocale)('Select_location'),
80
+ onOk: e => onValueChange(e),
81
+ okText: (0, _lang.getLocale)('Done'),
82
+ dismissText: (0, _lang.getLocale)('Cancel'),
83
+ cols: 2,
84
+ children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_List.default.Item, {
85
+ arrow: "horizontal",
86
+ children: value.join(' ') || (0, _lang.getLocale)('Select_location')
87
+ })
88
+ })]
89
+ })]
90
+ });
76
91
  };
77
92
  var _default = exports.default = ProvinceCityEditor;