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
|
@@ -15,6 +15,7 @@ var _cell = require("../../../utils/cell");
|
|
|
15
15
|
var _mapEditorUtils = require("../../map-editor-utils");
|
|
16
16
|
var _largeEditor = _interopRequireDefault(require("./large-editor"));
|
|
17
17
|
var _lang = require("../../../lang");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
class MapSelectionEditor extends _react.Component {
|
|
19
20
|
constructor(props) {
|
|
20
21
|
super(props);
|
|
@@ -322,19 +323,22 @@ class MapSelectionEditor extends _react.Component {
|
|
|
322
323
|
searchResults
|
|
323
324
|
} = this.state;
|
|
324
325
|
if (searchResults.length === 0) return null;
|
|
325
|
-
return /*#__PURE__*/
|
|
326
|
-
className: "search-results-container"
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
326
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
327
|
+
className: "search-results-container",
|
|
328
|
+
children: searchResults.map((result, index) => {
|
|
329
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
330
|
+
className: "search-result-item",
|
|
331
|
+
onClick: this.onClickSelection.bind(this, result),
|
|
332
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
333
|
+
className: "search-result-item-title",
|
|
334
|
+
children: result.title || ''
|
|
335
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
336
|
+
className: "search-result-item-address",
|
|
337
|
+
children: result.address || ''
|
|
338
|
+
})]
|
|
339
|
+
}, index);
|
|
340
|
+
})
|
|
341
|
+
});
|
|
338
342
|
};
|
|
339
343
|
const _value = this.getInitValue();
|
|
340
344
|
this.readOnly = props.readOnly;
|
|
@@ -377,88 +381,112 @@ class MapSelectionEditor extends _react.Component {
|
|
|
377
381
|
isShowLargeEditor
|
|
378
382
|
} = this.state;
|
|
379
383
|
if (isShowLargeEditor) {
|
|
380
|
-
return /*#__PURE__*/
|
|
384
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_largeEditor.default, {
|
|
385
|
+
...this.props,
|
|
381
386
|
toggleFullScreen: this.toggleFullScreen
|
|
382
|
-
})
|
|
387
|
+
});
|
|
383
388
|
}
|
|
384
389
|
if (this.mapType === _mapEditorUtils.MAP_TYPES.G_MAP || this.mapType === _mapEditorUtils.MAP_TYPES.M_MAP) {
|
|
385
|
-
return /*#__PURE__*/
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
390
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
391
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
392
|
+
className: "dtable-ui-geolocation-map-editor-header",
|
|
393
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
394
|
+
className: "dtable-ui-geolocation-map-editor-logo",
|
|
395
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
396
|
+
className: "dtable-font dtable-icon-location"
|
|
397
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
398
|
+
className: "ml-2 dtable-ui-geolocation-map-editor-title",
|
|
399
|
+
children: (0, _lang.getLocale)('Address')
|
|
400
|
+
})]
|
|
401
|
+
})
|
|
402
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
403
|
+
className: "dtable-ui-geolocation-map-editor no-support-tip",
|
|
404
|
+
children: (0, _lang.getLocale)('This_map_type_currently_does_not_support_map_point_selection')
|
|
405
|
+
})]
|
|
406
|
+
});
|
|
396
407
|
}
|
|
397
|
-
return /*#__PURE__*/
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
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
|
-
|
|
408
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
409
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
410
|
+
className: "dtable-ui-geolocation-map-editor-header",
|
|
411
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
412
|
+
className: "dtable-ui-geolocation-map-editor-logo",
|
|
413
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
414
|
+
className: "dtable-font dtable-icon-location"
|
|
415
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
416
|
+
className: "ml-2 dtable-ui-geolocation-map-editor-title",
|
|
417
|
+
children: (0, _lang.getLocale)('Address')
|
|
418
|
+
})]
|
|
419
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
420
|
+
className: "dtable-ui-geolocation-map-editor-screen dtable-font dtable-icon-full-screen",
|
|
421
|
+
onClick: this.toggleFullScreen
|
|
422
|
+
})]
|
|
423
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
424
|
+
className: "dtable-ui-geolocation-map-editor selection-editor",
|
|
425
|
+
children: [!this.readOnly && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
426
|
+
className: "map-editor-header",
|
|
427
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
428
|
+
className: "search-tables-container d-flex",
|
|
429
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
430
|
+
type: "text",
|
|
431
|
+
value: inputValue,
|
|
432
|
+
onKeyDown: this.onKeyDown,
|
|
433
|
+
onChange: this.onChange,
|
|
434
|
+
className: "form-control selection-input",
|
|
435
|
+
placeholder: (0, _lang.getLocale)('Please_enter_the_address'),
|
|
436
|
+
autoFocus: true
|
|
437
|
+
}), inputValue && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
438
|
+
className: "clear-search-numerical dtable-font dtable-icon-x-",
|
|
439
|
+
onClick: this.clearSearchNumerical
|
|
440
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
441
|
+
className: "dtable-ui-geolocation-search-selection-editor",
|
|
442
|
+
onClick: this.onSearch,
|
|
443
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
444
|
+
className: "dtable-font dtable-icon-search"
|
|
445
|
+
})
|
|
446
|
+
})]
|
|
447
|
+
})
|
|
448
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
449
|
+
className: this.readOnly ? 'geolocation-map-selection-read-only-container' : 'geolocation-map-selection-container',
|
|
450
|
+
children: [this.mapType && isLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {}), !this.mapType && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
451
|
+
className: "dtable-ui-geolocation-map-editor-error-message d-flex justify-content-center mt-9",
|
|
452
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
453
|
+
className: "alert-danger",
|
|
454
|
+
children: (0, _lang.getLocale)('The_map_plugin_is_not_properly_configured_contact_the_administrator')
|
|
455
|
+
})
|
|
456
|
+
}), !isLoading && this.mapType && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
457
|
+
className: "w-100 h-100",
|
|
458
|
+
ref: ref => this.ref = ref,
|
|
459
|
+
id: "geolocation-map-selection-container"
|
|
460
|
+
})]
|
|
461
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
462
|
+
className: "geolocation-map-controller",
|
|
463
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
464
|
+
className: "dtable-ui-geolocation-locate-control",
|
|
465
|
+
onClick: this.onLocateCurrentPosition,
|
|
466
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
467
|
+
className: "dtable-font dtable-icon-current-location"
|
|
468
|
+
})
|
|
469
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
470
|
+
className: "dtable-ui-geolocation-zoom-control",
|
|
471
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
472
|
+
className: "dtable-ui-geolocation-zoom-control-btn",
|
|
473
|
+
onClick: this.onZoomIn,
|
|
474
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
475
|
+
"aria-hidden": "true",
|
|
476
|
+
className: "dtable-font dtable-icon-enlarge"
|
|
477
|
+
})
|
|
478
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
479
|
+
className: "dtable-ui-geolocation-zoom-control-btn",
|
|
480
|
+
onClick: this.onZoomOut,
|
|
481
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
482
|
+
"aria-hidden": "true",
|
|
483
|
+
className: "dtable-font dtable-icon-narrow"
|
|
484
|
+
})
|
|
485
|
+
})]
|
|
486
|
+
})]
|
|
487
|
+
}), this.renderSearchResults()]
|
|
488
|
+
})]
|
|
489
|
+
});
|
|
462
490
|
}
|
|
463
491
|
}
|
|
464
492
|
var _default = exports.default = MapSelectionEditor;
|
|
@@ -15,6 +15,7 @@ var _cell = require("../../../../utils/cell");
|
|
|
15
15
|
var _mapEditorUtils = require("../../../map-editor-utils");
|
|
16
16
|
var _lang = require("../../../../lang");
|
|
17
17
|
require("./index.css");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
class LargeMapSelectionEditorDialog extends _react.default.Component {
|
|
19
20
|
constructor(props) {
|
|
20
21
|
super(props);
|
|
@@ -250,19 +251,22 @@ class LargeMapSelectionEditorDialog extends _react.default.Component {
|
|
|
250
251
|
searchResults
|
|
251
252
|
} = this.state;
|
|
252
253
|
if (searchResults.length === 0) return null;
|
|
253
|
-
return /*#__PURE__*/
|
|
254
|
-
className: "search-results-container"
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
254
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
255
|
+
className: "search-results-container",
|
|
256
|
+
children: searchResults.map((result, index) => {
|
|
257
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
258
|
+
className: "search-result-item",
|
|
259
|
+
onClick: this.onClickSelection.bind(this, result),
|
|
260
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
261
|
+
className: "search-result-item-title",
|
|
262
|
+
children: result.title || ''
|
|
263
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
264
|
+
className: "search-result-item-address",
|
|
265
|
+
children: result.address || ''
|
|
266
|
+
})]
|
|
267
|
+
}, index);
|
|
268
|
+
})
|
|
269
|
+
});
|
|
266
270
|
};
|
|
267
271
|
this.handlerClick = e => {
|
|
268
272
|
e.nativeEvent.stopImmediatePropagation();
|
|
@@ -370,78 +374,94 @@ class LargeMapSelectionEditorDialog extends _react.default.Component {
|
|
|
370
374
|
isLoading,
|
|
371
375
|
inputValue
|
|
372
376
|
} = this.state;
|
|
373
|
-
return /*#__PURE__*/
|
|
377
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_reactstrap.Modal, {
|
|
374
378
|
size: "lg",
|
|
375
379
|
isOpen: true,
|
|
376
380
|
toggle: this.toggle,
|
|
377
|
-
className: "dtable-ui-large-map-editor-dialog"
|
|
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
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
381
|
+
className: "dtable-ui-large-map-editor-dialog",
|
|
382
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
383
|
+
className: "dtable-ui-geolocation-map-editor-header",
|
|
384
|
+
onClick: this.handlerClick,
|
|
385
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
386
|
+
className: "dtable-ui-geolocation-map-editor-logo",
|
|
387
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
388
|
+
className: "dtable-font dtable-icon-location"
|
|
389
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
390
|
+
className: "ml-2 dtable-ui-geolocation-map-editor-title",
|
|
391
|
+
children: (0, _lang.getLocale)('Address')
|
|
392
|
+
})]
|
|
393
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
394
|
+
className: "dtable-ui-geolocation-map-editor-screen dtable-font dtable-icon-full-screen",
|
|
395
|
+
onClick: this.toggle
|
|
396
|
+
})]
|
|
397
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
398
|
+
className: "dtable-ui-geolocation-map-editor-large selection-editor-large",
|
|
399
|
+
onClick: this.handlerClick,
|
|
400
|
+
children: [!this.readOnly && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
401
|
+
className: "map-editor-header",
|
|
402
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
403
|
+
className: "search-tables-container d-flex",
|
|
404
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
405
|
+
type: "text",
|
|
406
|
+
value: inputValue,
|
|
407
|
+
onChange: this.onChange,
|
|
408
|
+
onKeyDown: this.onKeyDown,
|
|
409
|
+
className: "form-control selection-input-large",
|
|
410
|
+
placeholder: (0, _lang.getLocale)('Please_enter_the_address'),
|
|
411
|
+
autoFocus: true
|
|
412
|
+
}), inputValue && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
413
|
+
className: "clear-search-numerical dtable-font dtable-icon-x-",
|
|
414
|
+
onClick: this.clearSearchNumerical
|
|
415
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
416
|
+
className: "dtable-ui-geolocation-search-selection-editor",
|
|
417
|
+
onClick: this.onSearch,
|
|
418
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
419
|
+
className: "dtable-font dtable-icon-search"
|
|
420
|
+
})
|
|
421
|
+
})]
|
|
422
|
+
})
|
|
423
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
424
|
+
className: this.readOnly ? 'geolocation-map-read-only-container' : 'geolocation-map-container-large',
|
|
425
|
+
children: [this.mapType && isLoading && /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {}), !this.mapType && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
426
|
+
className: "dtable-ui-geolocation-map-editor-error-message d-flex justify-content-center mt-9",
|
|
427
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
428
|
+
className: "alert-danger",
|
|
429
|
+
children: (0, _lang.getLocale)('The_map_plugin_is_not_properly_configured_contact_the_administrator')
|
|
430
|
+
})
|
|
431
|
+
}), !isLoading && this.mapType && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
432
|
+
className: "w-100 h-100",
|
|
433
|
+
ref: ref => this.ref = ref,
|
|
434
|
+
id: "geolocation-map-selection-container-large"
|
|
435
|
+
})]
|
|
436
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
437
|
+
className: "geolocation-map-controller",
|
|
438
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
439
|
+
className: "dtable-ui-geolocation-locate-control",
|
|
440
|
+
onClick: this.onLocateCurrentPosition,
|
|
441
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
442
|
+
className: "dtable-font dtable-icon-current-location"
|
|
443
|
+
})
|
|
444
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
445
|
+
className: "dtable-ui-geolocation-zoom-control",
|
|
446
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
447
|
+
className: "dtable-ui-geolocation-zoom-control-btn",
|
|
448
|
+
onClick: this.onZoomIn,
|
|
449
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
450
|
+
"aria-hidden": "true",
|
|
451
|
+
className: "dtable-font dtable-icon-enlarge"
|
|
452
|
+
})
|
|
453
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
454
|
+
className: "dtable-ui-geolocation-zoom-control-btn",
|
|
455
|
+
onClick: this.onZoomOut,
|
|
456
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
457
|
+
"aria-hidden": "true",
|
|
458
|
+
className: "dtable-font dtable-icon-narrow"
|
|
459
|
+
})
|
|
460
|
+
})]
|
|
461
|
+
})]
|
|
462
|
+
}), this.renderSearchResults()]
|
|
463
|
+
})]
|
|
464
|
+
});
|
|
445
465
|
}
|
|
446
466
|
}
|
|
447
467
|
var _default = exports.default = LargeMapSelectionEditorDialog;
|