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.
- package/lib/ActionSheet/index.js +94 -68
- package/lib/ActivityIndicator/index.js +36 -28
- package/lib/AsyncUserSelect/index.css +122 -0
- package/lib/AsyncUserSelect/index.js +260 -0
- package/lib/AsyncUserSelect/user-item.js +55 -0
- package/lib/AutoNumberFormatter/index.js +5 -3
- package/lib/Badge/index.js +12 -8
- package/lib/ButtonFormatter/index.js +15 -10
- package/lib/CTimeFormatter/index.js +5 -3
- package/lib/CheckboxEditor/index.js +22 -13
- package/lib/CheckboxEditor/mb-editor.js +7 -5
- package/lib/CheckboxEditor/pc-editor.js +7 -5
- package/lib/CheckboxFormatter/index.js +7 -5
- package/lib/CollaboratorEditor/index.js +24 -15
- package/lib/CollaboratorEditor/mb-editor/index.js +19 -13
- package/lib/CollaboratorEditor/pc-editor/index.js +50 -42
- package/lib/CollaboratorFormatter/index.js +8 -7
- package/lib/CollaboratorItem/index.js +21 -16
- package/lib/CollapsibleSettingLayout/index.js +17 -12
- package/lib/Comment/body/comment.js +78 -62
- package/lib/Comment/body/index.js +14 -11
- package/lib/Comment/footer/btns/index.js +68 -53
- package/lib/Comment/footer/index.js +29 -27
- package/lib/Comment/footer/input/index.js +44 -39
- package/lib/Comment/footer/input/participant/index.js +18 -13
- package/lib/Comment/footer/participants/index.js +31 -28
- package/lib/Comment/footer/participants/participant/index.js +18 -15
- package/lib/Comment/footer/participants/participant-select/index.js +66 -55
- package/lib/Comment/index.js +33 -28
- package/lib/CreatorFormatter/index.js +8 -7
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +5 -3
- package/lib/DTableColorPicker/index.js +135 -99
- package/lib/DTableCommonAddTool/index.js +10 -7
- package/lib/DTableCustomFooter/index.js +5 -3
- package/lib/DTableCustomizeCollaboratorSelect/index.js +38 -32
- package/lib/DTableCustomizeSelect/index.js +51 -44
- package/lib/DTableEmptyTip/index.js +20 -16
- package/lib/DTableFiltersPopover/index.js +71 -61
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +74 -57
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +64 -49
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +49 -41
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +57 -47
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +35 -31
- package/lib/DTableFiltersPopover/widgets/filter-group.js +38 -32
- package/lib/DTableFiltersPopover/widgets/filter-item.js +125 -106
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +18 -17
- package/lib/DTableFiltersPopover/widgets/rate-item.js +12 -9
- package/lib/DTableGroupSelect/index.js +52 -44
- package/lib/DTableGroupSelect/option.js +5 -3
- package/lib/DTableGroupSelect/select-option-group.js +31 -25
- package/lib/DTableModalHeader/index.js +13 -9
- package/lib/DTablePopover/index.js +9 -6
- package/lib/DTableRadio/index.js +20 -17
- package/lib/DTableRadioGroup/index.js +21 -18
- package/lib/DTableSearchInput/index.js +22 -18
- package/lib/DTableSelect/dtable-select-label.js +12 -7
- package/lib/DTableSelect/index.js +2 -1
- package/lib/DTableSelect/utils.js +34 -20
- package/lib/DTableSwitch/index.js +25 -17
- package/lib/DateEditor/index.js +25 -16
- package/lib/DateEditor/mb-editor/index.js +90 -68
- package/lib/DateEditor/pc-editor.js +38 -34
- package/lib/DateFormatter/index.js +5 -3
- package/lib/DeleteTip/index.js +29 -20
- package/lib/DepartmentMultipleSelectEditor/index.js +57 -49
- package/lib/DepartmentSelectFilter/index.js +8 -1
- package/lib/DepartmentSingleSelectEditor/index.js +22 -13
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +75 -55
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +78 -61
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +14 -11
- package/lib/DepartmentSingleSelectFormatter/index.js +13 -9
- package/lib/DigitalSignEditor/index.js +22 -13
- package/lib/DigitalSignEditor/mb-editor/index.js +39 -24
- package/lib/DigitalSignEditor/pc-editor/index.js +44 -30
- package/lib/DigitalSignEditor/signature-board/index.js +19 -15
- package/lib/DigitalSignFormatter/index.js +23 -19
- package/lib/Drawer/index.js +4 -1
- package/lib/DurationEditor/index.js +2 -1
- package/lib/DurationFormatter/index.js +5 -3
- package/lib/EditEditorButton/index.js +5 -3
- package/lib/EmailEditor/index.js +2 -1
- package/lib/EmailFormatter/index.js +5 -3
- package/lib/FieldDisplaySetting/field-item.js +25 -19
- package/lib/FieldDisplaySetting/index.js +47 -38
- package/lib/FileEditor/files-previewer/index.js +22 -13
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +43 -28
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +24 -21
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +30 -24
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +13 -11
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +81 -63
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +81 -65
- package/lib/FileEditor/index.js +22 -13
- package/lib/FileEditor/mb-editor/index.js +43 -31
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +27 -20
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +107 -81
- package/lib/FileEditor/pc-editor/index.js +46 -36
- package/lib/FileFormatter/index.js +40 -36
- package/lib/FileItemFormatter/index.js +2 -1
- package/lib/FileUploader/index.js +22 -20
- package/lib/FormulaFormatter/index.js +21 -14
- package/lib/GeolocationEditor/index.js +28 -19
- package/lib/GeolocationEditor/mb-editor/country-editor.js +42 -27
- package/lib/GeolocationEditor/mb-editor/index.js +22 -14
- package/lib/GeolocationEditor/mb-editor/location-editor.js +54 -34
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +102 -74
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +144 -110
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +42 -27
- package/lib/GeolocationEditor/mb-editor/province-editor.js +42 -27
- package/lib/GeolocationEditor/pc-editor/country-editor.js +37 -30
- package/lib/GeolocationEditor/pc-editor/index.js +26 -17
- package/lib/GeolocationEditor/pc-editor/location-editor.js +121 -95
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +99 -74
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +99 -76
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +119 -91
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +102 -82
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +89 -69
- package/lib/GeolocationEditor/pc-editor/province-editor.js +30 -25
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +9 -5
- package/lib/GeolocationEditor/pc-editor/selector-list.js +15 -13
- package/lib/GeolocationFormatter/index.js +5 -3
- package/lib/HtmlLongTextFormatter/index.js +2 -1
- package/lib/Icon/index.js +8 -5
- package/lib/IconButton/index.js +9 -6
- package/lib/ImageEditor/images-previewer/image-preview/index.js +52 -44
- package/lib/ImageEditor/images-previewer/index.js +35 -32
- package/lib/ImageEditor/index.js +22 -13
- package/lib/ImageEditor/mb-editor/index.js +43 -31
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +19 -15
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +32 -24
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +101 -76
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +33 -30
- package/lib/ImageEditor/pc-editor/index.js +44 -32
- package/lib/ImageFormatter/images-lazy-load.js +12 -10
- package/lib/ImageFormatter/index.js +40 -34
- package/lib/ImagePreviewerLightbox/index.js +12 -8
- package/lib/ImageThumbnail/index.js +46 -38
- package/lib/InputItem/custom-input.js +23 -18
- package/lib/InputItem/custom-keyboard.js +65 -44
- package/lib/InputItem/index.js +66 -56
- package/lib/InputItem/input.js +5 -3
- package/lib/LastModifierFormatter/index.js +8 -7
- package/lib/LinkEditor/index.js +38 -32
- package/lib/LinkEditor/link-editor-option.js +25 -20
- package/lib/LinkEditor/mb-popover/index.js +53 -41
- package/lib/LinkEditor/pc-popover/index.js +41 -33
- package/lib/LinkFormatter/index.js +13 -10
- package/lib/List/index.js +15 -9
- package/lib/List/list-item.js +32 -23
- package/lib/Loading/index.js +2 -1
- package/lib/LongTextFormatter/index.js +3 -2
- package/lib/MBEditorHeader/index.js +19 -14
- package/lib/MTimeFormatter/index.js +5 -3
- package/lib/MobileFullScreenPage/body/index.js +5 -3
- package/lib/MobileFullScreenPage/header/index.js +21 -16
- package/lib/MobileFullScreenPage/index.js +11 -8
- package/lib/MobileModal/index.js +6 -3
- package/lib/MobileOperationSheet/index.js +28 -18
- package/lib/MobileSelector/empty/index.js +5 -3
- package/lib/MobileSelector/index.js +18 -12
- package/lib/MobileSelector/option/index.js +17 -12
- package/lib/MobileSelector/options/index.js +5 -3
- package/lib/MobileSelector/search/index.js +10 -8
- package/lib/MobileUpload/index.js +87 -67
- package/lib/Modal/alert.js +8 -5
- package/lib/Modal/modal.js +19 -15
- package/lib/Modal/operation.js +2 -1
- package/lib/Modal/prompt.js +74 -54
- package/lib/MultipleSelectEditor/index.js +4 -2
- package/lib/MultipleSelectFormatter/index.js +8 -7
- package/lib/NotificationPopover/index.js +43 -32
- package/lib/NumberEditor/index.js +2 -1
- package/lib/NumberFormatter/index.js +5 -3
- package/lib/Picker/AbstractPicker.js +26 -22
- package/lib/Picker/index.js +2 -1
- package/lib/Popover/index.js +8 -5
- package/lib/Popover/item.js +22 -15
- package/lib/Progress/index.js +12 -10
- package/lib/Radio/Radio.js +11 -7
- package/lib/Radio/RadioItem.js +9 -3
- package/lib/RateFormatter/index.js +7 -6
- package/lib/RoleStatusEditor/index.js +36 -31
- package/lib/RowExpand/index.js +16 -9
- package/lib/RowExpandDialog/body/index.js +52 -41
- package/lib/RowExpandDialog/column-content/index.js +34 -25
- package/lib/RowExpandDialog/header/index.js +28 -21
- package/lib/RowExpandDialog/index.js +40 -27
- package/lib/RowExpandEditor/add-btn/index.js +16 -9
- package/lib/RowExpandEditor/add-btn/mb-add-btn/index.js +5 -3
- package/lib/RowExpandEditor/add-btn/pc-add-btn/index.js +8 -5
- package/lib/RowExpandEditor/checkbox-editor/index.js +16 -9
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +10 -8
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +2 -1
- package/lib/RowExpandEditor/collaborator-editor/index.js +16 -9
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +52 -47
- package/lib/RowExpandEditor/date-editor/index.js +16 -9
- package/lib/RowExpandEditor/date-editor/mb-editor.js +20 -15
- package/lib/RowExpandEditor/date-editor/pc-editor.js +24 -21
- package/lib/RowExpandEditor/department-editor/index.js +16 -9
- package/lib/RowExpandEditor/department-editor/mb-editor.js +27 -22
- package/lib/RowExpandEditor/department-editor/pc-editor.js +35 -29
- package/lib/RowExpandEditor/digital-sign-editor/index.js +16 -9
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +19 -16
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +34 -32
- package/lib/RowExpandEditor/duration-editor/index.js +16 -9
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +15 -12
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +17 -13
- package/lib/RowExpandEditor/email-editor/index.js +16 -9
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +20 -18
- package/lib/RowExpandEditor/file-editor/index.js +16 -9
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +21 -16
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +22 -20
- package/lib/RowExpandEditor/geolocation-editor/index.js +16 -9
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +12 -9
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +20 -17
- package/lib/RowExpandEditor/image-editor/index.js +16 -9
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +21 -16
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +29 -25
- package/lib/RowExpandEditor/index.js +4 -2
- package/lib/RowExpandEditor/long-text-editor/index.js +16 -9
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +27 -16
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +19 -16
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +22 -18
- package/lib/RowExpandEditor/multiple-select-editor/index.js +16 -9
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +26 -23
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +81 -67
- package/lib/RowExpandEditor/number-editor/index.js +16 -9
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +10 -7
- package/lib/RowExpandEditor/number-editor/pc-editor.js +6 -4
- package/lib/RowExpandEditor/rate-editor/index.js +16 -9
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +10 -8
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +11 -9
- package/lib/RowExpandEditor/right-angle/index.js +8 -6
- package/lib/RowExpandEditor/single-select-editor/index.js +16 -9
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +30 -23
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +42 -34
- package/lib/RowExpandEditor/text-editor/index.js +16 -9
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +11 -9
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +16 -12
- package/lib/RowExpandEditor/url-editor/index.js +16 -9
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +19 -17
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +20 -18
- package/lib/RowExpandFormatter/department-formatter/index.js +14 -5
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -1
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +15 -11
- package/lib/RowExpandFormatter/email-formatter/index.js +11 -8
- package/lib/RowExpandFormatter/file-formatter/index.js +15 -14
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +43 -36
- package/lib/RowExpandFormatter/formula-formatter/index.js +37 -29
- package/lib/RowExpandFormatter/image-formatter/index.js +30 -27
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +47 -39
- package/lib/RowExpandFormatter/index.js +131 -114
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +2 -1
- package/lib/RowExpandFormatter/link-formatter/index.js +70 -67
- package/lib/RowExpandFormatter/rate-formatter/index.js +7 -6
- package/lib/RowExpandFormatter/url-formatter/index.js +11 -8
- package/lib/RowExpandView/body/index.js +38 -32
- package/lib/RowExpandView/column-content/index.js +10 -5
- package/lib/RowExpandView/index.js +27 -16
- package/lib/SelectItem/index.js +16 -12
- package/lib/SelectOptionGroup/index.js +39 -32
- package/lib/SelectOptionGroup/option.js +5 -3
- package/lib/SelectedDepartments/index.js +54 -44
- package/lib/SimpleLongTextFormatter/index.js +39 -30
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +11 -8
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -2
- package/lib/SingleSelectEditor/index.js +4 -2
- package/lib/SingleSelectFormatter/index.js +6 -4
- package/lib/SvgIcon/index.js +4 -1
- package/lib/TabBar/Tab.js +27 -20
- package/lib/TabBar/index.js +25 -21
- package/lib/Tabs/index.js +8 -5
- package/lib/TextEditor/index.js +21 -18
- package/lib/TextFormatter/index.js +5 -3
- package/lib/TextareaItem/index.js +35 -26
- package/lib/Toast/index.js +16 -10
- package/lib/UploadProgress/index.js +2 -1
- package/lib/UrlEditor/index.js +2 -1
- package/lib/UrlFormatter/index.js +5 -3
- package/lib/formatterConfig/base-formatter-config.js +24 -23
- package/lib/formatterConfig/index.js +3 -2
- package/lib/index.js +7 -0
- package/lib/locales/de.json +5 -1
- package/lib/locales/en.json +5 -1
- package/lib/locales/es.json +6 -2
- package/lib/locales/fr.json +5 -1
- package/lib/locales/pt.json +5 -1
- package/lib/locales/ru.json +5 -1
- package/lib/locales/zh-CN.json +5 -1
- package/lib/select-editor/index.js +22 -13
- package/lib/select-editor/mb-editor/index.js +22 -16
- package/lib/select-editor/pc-editor/index.js +74 -60
- package/lib/toaster/alert.js +25 -16
- package/lib/toaster/toast.js +27 -23
- package/lib/toaster/toastManager.js +16 -13
- package/lib/toaster/toaster.js +2 -1
- 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__*/
|
|
354
|
-
className: "w-100 h-100 d-flex align-items-center justify-content-center"
|
|
355
|
-
|
|
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__*/
|
|
358
|
-
className: "dtable-ui-geolocation-map-editor-error-message d-flex justify-content-center align-items-center w-100 h-100"
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
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__*/
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
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__*/
|
|
521
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
|
|
503
522
|
className: "dtable-ui-mobile-geolocation-map-editor",
|
|
504
|
-
onClose: this.onClose
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
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__*/
|
|
334
|
-
className: "dtable-ui-mobile-map-selection-editor-search-results"
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
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__*/
|
|
359
|
-
className: "dtable-ui-mobile-geolocation-map-editor-label"
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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__*/
|
|
369
|
-
className: "dtable-ui-mobile-geolocation-map-editor-label-address-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
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
|
-
|
|
379
|
-
|
|
380
|
-
|
|
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__*/
|
|
403
|
-
className: "w-100 h-100 d-flex align-items-center justify-content-center"
|
|
404
|
-
|
|
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__*/
|
|
407
|
-
className: "dtable-ui-geolocation-map-editor-error-message d-flex justify-content-center align-items-center w-100 h-100"
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
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__*/
|
|
414
|
-
className: "dtable-ui-geolocation-map-editor-error-message d-flex justify-content-center align-items-center w-100 h-100"
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
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__*/
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
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__*/
|
|
548
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
|
|
521
549
|
className: "dtable-ui-mobile-geolocation-map-selection-editor",
|
|
522
|
-
onClose: this.onClose
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
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__*/
|
|
50
|
-
onToggle: onToggle
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
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;
|