dtable-ui-component 5.3.1-beta6 → 5.3.2
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/CheckboxEditor/index.css +20 -3
- package/lib/CheckboxEditor/index.js +35 -98
- package/lib/CheckboxFormatter/index.js +9 -6
- package/lib/CollaboratorEditor/index.css +35 -12
- package/lib/CollaboratorEditor/index.js +212 -18
- package/lib/CollaboratorEditor/{mb-collaborator-editor → mb-collaborator-editor-popover}/index.js +29 -26
- package/lib/CollaboratorEditor/pc-collaborator-editor-popover/index.js +97 -0
- package/lib/CollaboratorItem/index.css +1 -1
- package/lib/CollaboratorItem/index.js +2 -6
- package/lib/DTableFiltersPopover/utils/index.js +7 -1
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +2 -2
- package/lib/DTableGroupSelect/select-option-group.css +17 -17
- package/lib/DTableGroupSelect/select-option-group.js +1 -1
- package/lib/DTableSelect/index.js +1 -3
- package/lib/DateEditor/index.js +51 -14
- package/lib/DateEditor/pc-date-editor-popover.js +12 -145
- package/lib/Department-editor/department-single-select.js +1 -1
- package/lib/Department-editor/index.js +4 -3
- package/lib/DepartmentSingleSelectFormatter/index.js +1 -2
- package/lib/FileEditor/index.js +11 -258
- package/lib/FileEditor/pc-files-addition/index.js +1 -0
- package/lib/FileEditor/pc-files-addition/pc-file-uploaded-item.js +1 -0
- package/lib/FileEditor/pc-files-preview/index.js +1 -0
- package/lib/FileEditor/pc-files-preview/pc-file-item-preview.js +1 -0
- package/lib/FileItemFormatter/assets/file/192/excel.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/file.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/music.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/pdf.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/pic.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/ppt.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/txt.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/video.png +0 -0
- package/lib/FileItemFormatter/assets/file/192/word.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/excel.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/file.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/music.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/pdf.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/pic.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/ppt.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/txt.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/video.png +0 -0
- package/lib/FileItemFormatter/assets/file/24/word.png +0 -0
- package/lib/FileItemFormatter/assets/folder/folder-192.png +0 -0
- package/lib/FileItemFormatter/assets/folder/folder-24.png +0 -0
- package/lib/FileItemFormatter/index.js +20 -19
- package/lib/FileItemFormatter/utils.js +99 -0
- package/lib/FileUploader/index.js +14 -268
- package/lib/FormulaFormatter/index.js +1 -2
- package/lib/FormulaFormatter/utils.js +31 -0
- package/lib/LinkEditor/pc-link-editor-popover/index.js +1 -1
- package/lib/MultipleSelectEditor/index.css +9 -0
- package/lib/MultipleSelectEditor/index.js +177 -16
- package/lib/NumberEditor/index.js +77 -64
- package/lib/{RowExpandFormatter/RowExpandEmailFormatter → RowExpandEmailFormatter}/index.css +1 -1
- package/lib/{RowExpandFormatter/RowExpandEmailFormatter → RowExpandEmailFormatter}/index.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/index.css +6 -6
- package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/index.js +1 -3
- package/lib/{RowExpandFormatter/RowExpandFileFormatter → RowExpandFileFormatter}/row-expand-file-item-formatter.js +11 -10
- package/lib/RowExpandFormatter/index.css +1 -27
- package/lib/RowExpandFormatter/index.js +100 -83
- package/lib/{RowExpandFormatter/RowExpandFormulaFormatter → RowExpandFormulaFormatter}/index.js +10 -11
- package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/index.css +6 -6
- package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/index.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandImageFormatter → RowExpandImageFormatter}/row-expand-image-item-formatter.js +3 -3
- package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/collaborator-item-formatter.js +1 -1
- package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/index.js +6 -6
- package/lib/RowExpandLinkFormatter/utils.js +71 -0
- package/lib/{RowExpandFormatter/RowExpandRateFormatter → RowExpandRateFormatter}/index.css +1 -1
- package/lib/RowExpandUrlFormatter/index.css +1 -0
- package/lib/{RowExpandFormatter/RowExpandUrlFormatter → RowExpandUrlFormatter}/index.js +3 -4
- package/lib/SingleSelectEditor/index.css +14 -0
- package/lib/SingleSelectEditor/index.js +156 -16
- package/lib/TextEditor/index.js +42 -113
- package/lib/constants/index.js +2 -34
- package/lib/css/cell-editor.css +2 -18
- package/lib/index.js +46 -74
- package/lib/lang/index.js +16 -19
- package/lib/locals/de.js +103 -0
- package/lib/locals/en.js +104 -0
- package/lib/locals/es.js +103 -0
- package/lib/locals/fr.js +103 -0
- package/lib/locals/pt.js +103 -0
- package/lib/locals/ru.js +103 -0
- package/lib/locals/zh-CN.js +104 -0
- package/lib/select-editor/index.js +6 -6
- package/lib/select-editor/{mb-select-editor → mb-select-editor-popover}/index.js +3 -3
- package/lib/select-editor/pc-select-editor-popover/index.css +71 -0
- package/lib/select-editor/pc-select-editor-popover/index.js +122 -0
- package/lib/utils/editor-utils.js +6 -1
- package/lib/utils/url.js +8 -121
- package/lib/utils/utils.js +2 -145
- package/package.json +2 -3
- package/lib/CollaboratorEditor/pc-collaborator-editor/index.js +0 -257
- package/lib/Comment/body/comment.js +0 -190
- package/lib/Comment/body/index.css +0 -95
- package/lib/Comment/body/index.js +0 -32
- package/lib/Comment/footer/btns/index.css +0 -40
- package/lib/Comment/footer/btns/index.js +0 -113
- package/lib/Comment/footer/index.css +0 -157
- package/lib/Comment/footer/index.js +0 -170
- package/lib/Comment/footer/input/index.css +0 -52
- package/lib/Comment/footer/input/index.js +0 -448
- package/lib/Comment/footer/input/participant/index.css +0 -0
- package/lib/Comment/footer/input/participant/index.js +0 -53
- package/lib/Comment/footer/participants/index.css +0 -22
- package/lib/Comment/footer/participants/index.js +0 -68
- package/lib/Comment/footer/participants/participant/index.css +0 -5
- package/lib/Comment/footer/participants/participant/index.js +0 -32
- package/lib/Comment/footer/participants/participant-select/index.css +0 -104
- package/lib/Comment/footer/participants/participant-select/index.js +0 -182
- package/lib/Comment/index.css +0 -19
- package/lib/Comment/index.js +0 -305
- package/lib/Comment/model.js +0 -25
- package/lib/Comment/utils/common.js +0 -62
- package/lib/Comment/utils/index.js +0 -27
- package/lib/Comment/utils/utilities.js +0 -176
- package/lib/DeleteTip/index.js +0 -50
- package/lib/DigitalSignEditor/constants.js +0 -7
- package/lib/DigitalSignEditor/index.css +0 -69
- package/lib/DigitalSignEditor/index.js +0 -182
- package/lib/DigitalSignEditor/service.js +0 -38
- package/lib/DigitalSignEditor/signature-board/index.css +0 -35
- package/lib/DigitalSignEditor/signature-board/index.js +0 -135
- package/lib/DigitalSignEditor/signature-board/signature-tool.js +0 -396
- package/lib/DigitalSignEditor/utils.js +0 -29
- package/lib/DurationEditor/index.js +0 -111
- package/lib/EmailEditor/index.js +0 -59
- package/lib/FileEditor/addition-previewer/index.css +0 -1
- package/lib/FileEditor/addition-previewer/index.js +0 -52
- package/lib/FileEditor/addition-previewer/local-file-addition/index.css +0 -1
- package/lib/FileEditor/addition-previewer/local-file-addition/index.js +0 -252
- package/lib/FileEditor/constants.js +0 -7
- package/lib/FileEditor/files-previewer/file-previewer/dropdown-menu.js +0 -74
- package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.css +0 -5
- package/lib/FileEditor/files-previewer/file-previewer/file-name-editor/index.js +0 -77
- package/lib/FileEditor/files-previewer/file-previewer/index.css +0 -88
- package/lib/FileEditor/files-previewer/file-previewer/index.js +0 -167
- package/lib/FileEditor/files-previewer/index.css +0 -56
- package/lib/FileEditor/files-previewer/index.js +0 -277
- package/lib/FileEditor/index.css +0 -6
- package/lib/FileEditor/utils.js +0 -22
- package/lib/FileUploader/index.css +0 -9
- package/lib/GeolocationEditor/country-editor.js +0 -319
- package/lib/GeolocationEditor/index.css +0 -641
- package/lib/GeolocationEditor/index.js +0 -241
- package/lib/GeolocationEditor/location-editor.js +0 -368
- package/lib/GeolocationEditor/map-editor/index.js +0 -456
- package/lib/GeolocationEditor/map-editor/large-editor/index.css +0 -137
- package/lib/GeolocationEditor/map-editor/large-editor/index.js +0 -461
- package/lib/GeolocationEditor/map-editor-utils.js +0 -153
- package/lib/GeolocationEditor/map-selection-editor/index.js +0 -455
- package/lib/GeolocationEditor/map-selection-editor/large-editor/index.css +0 -1
- package/lib/GeolocationEditor/map-selection-editor/large-editor/index.js +0 -447
- package/lib/GeolocationEditor/parse-geolocation.js +0 -282
- package/lib/GeolocationEditor/province-city-editor.js +0 -292
- package/lib/GeolocationEditor/province-editor.js +0 -226
- package/lib/GeolocationEditor/selector-header-item.js +0 -28
- package/lib/GeolocationEditor/selector-list.js +0 -33
- package/lib/GeolocationEditor/with-ref.js +0 -27
- package/lib/ImageEditor/addition-previewer/image-link/index.css +0 -45
- package/lib/ImageEditor/addition-previewer/image-link/index.js +0 -73
- package/lib/ImageEditor/addition-previewer/index.css +0 -106
- package/lib/ImageEditor/addition-previewer/index.js +0 -63
- package/lib/ImageEditor/addition-previewer/local-image-addition/index.css +0 -125
- package/lib/ImageEditor/addition-previewer/local-image-addition/index.js +0 -254
- package/lib/ImageEditor/constants.js +0 -7
- package/lib/ImageEditor/images-previewer/image-preview/index.css +0 -59
- package/lib/ImageEditor/images-previewer/image-preview/index.js +0 -155
- package/lib/ImageEditor/images-previewer/index.css +0 -18
- package/lib/ImageEditor/images-previewer/index.js +0 -140
- package/lib/ImageEditor/index.css +0 -24
- package/lib/ImageEditor/index.js +0 -194
- package/lib/ImageThumbnail/index.css +0 -20
- package/lib/ImageThumbnail/index.js +0 -136
- package/lib/RowExpandDialog/body/index.css +0 -21
- package/lib/RowExpandDialog/body/index.js +0 -262
- package/lib/RowExpandDialog/column-content/index.css +0 -44
- package/lib/RowExpandDialog/column-content/index.js +0 -50
- package/lib/RowExpandDialog/header/index.css +0 -31
- package/lib/RowExpandDialog/header/index.js +0 -55
- package/lib/RowExpandDialog/index.css +0 -24
- package/lib/RowExpandDialog/index.js +0 -252
- package/lib/RowExpandEditor/RowExpandAddBtn/index.css +0 -22
- package/lib/RowExpandEditor/RowExpandAddBtn/index.js +0 -24
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.css +0 -18
- package/lib/RowExpandEditor/RowExpandCheckboxEditor/index.js +0 -43
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.css +0 -5
- package/lib/RowExpandEditor/RowExpandCollaboratorEditor/index.js +0 -232
- package/lib/RowExpandEditor/RowExpandDateEditor/index.js +0 -130
- package/lib/RowExpandEditor/RowExpandDepartmentEditor/index.js +0 -129
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.css +0 -13
- package/lib/RowExpandEditor/RowExpandDigitalSignEditor/index.js +0 -208
- package/lib/RowExpandEditor/RowExpandDurationEditor/index.js +0 -105
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.css +0 -2
- package/lib/RowExpandEditor/RowExpandEmailEditor/index.js +0 -125
- package/lib/RowExpandEditor/RowExpandFileEditor/index.css +0 -1
- package/lib/RowExpandEditor/RowExpandFileEditor/index.js +0 -146
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.css +0 -17
- package/lib/RowExpandEditor/RowExpandGeolocationEditor/index.js +0 -165
- package/lib/RowExpandEditor/RowExpandImageEditor/index.css +0 -6
- package/lib/RowExpandEditor/RowExpandImageEditor/index.js +0 -170
- package/lib/RowExpandEditor/RowExpandLongTextEditor/index.css +0 -6
- package/lib/RowExpandEditor/RowExpandLongTextEditor/index.js +0 -123
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.css +0 -44
- package/lib/RowExpandEditor/RowExpandMultipleSelectEditor/index.js +0 -224
- package/lib/RowExpandEditor/RowExpandNumberEditor/index.js +0 -105
- package/lib/RowExpandEditor/RowExpandRateEditor/index.css +0 -13
- package/lib/RowExpandEditor/RowExpandRateEditor/index.js +0 -152
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.css +0 -58
- package/lib/RowExpandEditor/RowExpandSingleSelectorEditor/index.js +0 -192
- package/lib/RowExpandEditor/RowExpandTextEditor/index.css +0 -4
- package/lib/RowExpandEditor/RowExpandTextEditor/index.js +0 -127
- package/lib/RowExpandEditor/RowExpandUrlEditor/index.css +0 -31
- package/lib/RowExpandEditor/RowExpandUrlEditor/index.js +0 -130
- package/lib/RowExpandEditor/constants.js +0 -44
- package/lib/RowExpandEditor/index.css +0 -0
- package/lib/RowExpandEditor/index.js +0 -32
- package/lib/RowExpandFormatter/RowExpandDepartmentFormatter/index.js +0 -27
- package/lib/RowExpandFormatter/RowExpandUrlFormatter/index.css +0 -1
- package/lib/RowExpandFormatter/constants.js +0 -60
- package/lib/UploadProgress/index.js +0 -38
- package/lib/UrlEditor/index.js +0 -62
- package/lib/common/editor-base.js +0 -53
- package/lib/constants/file.js +0 -96
- package/lib/constants/key-codes.js +0 -109
- package/lib/hooks/index.js +0 -16
- package/lib/locales/de.json +0 -167
- package/lib/locales/en.json +0 -167
- package/lib/locales/es.json +0 -167
- package/lib/locales/fr.json +0 -167
- package/lib/locales/pt.json +0 -167
- package/lib/locales/ru.json +0 -167
- package/lib/locales/zh-CN.json +0 -167
- package/lib/select-editor/pc-select-editor/index.css +0 -85
- package/lib/select-editor/pc-select-editor/index.js +0 -290
- package/lib/utils/cell-comparer.js +0 -35
- package/lib/utils/cell.js +0 -55
- package/lib/utils/column-utils.js +0 -25
- package/lib/utils/get-event-transfer.js +0 -75
- package/lib/utils/hotkey.js +0 -37
- package/lib/utils/object-utils.js +0 -61
- /package/lib/CollaboratorEditor/{mb-collaborator-editor → mb-collaborator-editor-popover}/index.css +0 -0
- /package/lib/CollaboratorEditor/{pc-collaborator-editor → pc-collaborator-editor-popover}/index.css +0 -0
- /package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/index.css +0 -0
- /package/lib/{RowExpandFormatter/RowExpandLinkFormatter → RowExpandLinkFormatter}/value-display-utils.js +0 -0
- /package/lib/{RowExpandFormatter/RowExpandRateFormatter → RowExpandRateFormatter}/index.js +0 -0
- /package/lib/select-editor/{mb-select-editor → mb-select-editor-popover}/index.css +0 -0
|
@@ -1,456 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _toaster = _interopRequireDefault(require("../../toaster"));
|
|
11
|
-
var _Loading = _interopRequireDefault(require("../../Loading"));
|
|
12
|
-
var _constants = require("../../constants");
|
|
13
|
-
var _cell = require("../../utils/cell");
|
|
14
|
-
var _mapEditorUtils = require("../map-editor-utils");
|
|
15
|
-
var _largeEditor = _interopRequireDefault(require("./large-editor"));
|
|
16
|
-
var _lang = require("../../lang");
|
|
17
|
-
class MapEditor extends _react.Component {
|
|
18
|
-
constructor(props) {
|
|
19
|
-
super(props);
|
|
20
|
-
this.loadMineMapCallBack = () => {
|
|
21
|
-
if (!this.timer) {
|
|
22
|
-
this.timer = setTimeout(() => {
|
|
23
|
-
const {
|
|
24
|
-
domainUrl,
|
|
25
|
-
dataDomainUrl,
|
|
26
|
-
serverDomainUrl,
|
|
27
|
-
spriteUrl,
|
|
28
|
-
serviceUrl
|
|
29
|
-
} = (0, _mapEditorUtils.getMineMapUrl)();
|
|
30
|
-
window.minemap.domainUrl = domainUrl;
|
|
31
|
-
window.minemap.dataDomainUrl = dataDomainUrl;
|
|
32
|
-
window.minemap.serverDomainUrl = serverDomainUrl;
|
|
33
|
-
window.minemap.spriteUrl = spriteUrl;
|
|
34
|
-
window.minemap.serviceUrl = serviceUrl;
|
|
35
|
-
window.minemap.key = this.mapKey;
|
|
36
|
-
window.minemap.solution = 11001;
|
|
37
|
-
this.renderMineMap();
|
|
38
|
-
clearTimeout(this.timer);
|
|
39
|
-
this.timer = null;
|
|
40
|
-
}, 1000);
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
this.renderMineMap = () => {
|
|
44
|
-
this.setState({
|
|
45
|
-
isLoading: false
|
|
46
|
-
}, () => {
|
|
47
|
-
if (!window.minemap.key) return;
|
|
48
|
-
this.map = new window.minemap.Map({
|
|
49
|
-
container: 'geolocation-map-container',
|
|
50
|
-
style: 'https://service.minedata.cn/map/solu/style/11001',
|
|
51
|
-
pitch: 0,
|
|
52
|
-
maxZoom: 17,
|
|
53
|
-
minZoom: 3,
|
|
54
|
-
projection: 'MERCATOR'
|
|
55
|
-
});
|
|
56
|
-
let {
|
|
57
|
-
lng,
|
|
58
|
-
lat,
|
|
59
|
-
zoom
|
|
60
|
-
} = (0, _mapEditorUtils.getInitCenter)();
|
|
61
|
-
const {
|
|
62
|
-
value
|
|
63
|
-
} = this.state;
|
|
64
|
-
if ((0, _cell.isValidPosition)(value.lng, value.lat)) {
|
|
65
|
-
lng = value.lng;
|
|
66
|
-
lat = value.lat;
|
|
67
|
-
this.addMarkerByPosition(lng, lat);
|
|
68
|
-
}
|
|
69
|
-
this.map.setCenter([lng, lat]);
|
|
70
|
-
this.map.setZoom(zoom);
|
|
71
|
-
if (this.readOnly) return;
|
|
72
|
-
this.map.on('mousedown', event => {
|
|
73
|
-
const point = event.lngLat;
|
|
74
|
-
this.setValue(point);
|
|
75
|
-
this.addMarkerByPosition(point.lng, point.lat);
|
|
76
|
-
});
|
|
77
|
-
});
|
|
78
|
-
};
|
|
79
|
-
this.renderBaiduMap = () => {
|
|
80
|
-
this.setState({
|
|
81
|
-
isLoading: false
|
|
82
|
-
}, () => {
|
|
83
|
-
if (!window.BMap.Map) return;
|
|
84
|
-
this.map = new window.BMap.Map('geolocation-map-container', {
|
|
85
|
-
enableMapClick: false
|
|
86
|
-
});
|
|
87
|
-
let {
|
|
88
|
-
lng,
|
|
89
|
-
lat,
|
|
90
|
-
zoom
|
|
91
|
-
} = (0, _mapEditorUtils.getInitCenter)();
|
|
92
|
-
const {
|
|
93
|
-
value
|
|
94
|
-
} = this.state;
|
|
95
|
-
if ((0, _cell.isValidPosition)(value.lng, value.lat)) {
|
|
96
|
-
lng = value.lng;
|
|
97
|
-
lat = value.lat;
|
|
98
|
-
this.addMarkerByPosition(lng, lat);
|
|
99
|
-
}
|
|
100
|
-
let point = new window.BMap.Point(lng, lat);
|
|
101
|
-
this.map.centerAndZoom(point, zoom);
|
|
102
|
-
this.map.enableScrollWheelZoom(true);
|
|
103
|
-
if (this.readOnly) return;
|
|
104
|
-
this.map.addEventListener('mousedown', event => {
|
|
105
|
-
const point = event.point;
|
|
106
|
-
this.setValue(point);
|
|
107
|
-
this.addMarkerByPosition(point.lng, point.lat);
|
|
108
|
-
});
|
|
109
|
-
});
|
|
110
|
-
};
|
|
111
|
-
this.geolocationCallback = (error, point) => {
|
|
112
|
-
if (!error) {
|
|
113
|
-
this.setValue({
|
|
114
|
-
...point
|
|
115
|
-
});
|
|
116
|
-
this.addMarkerByPosition(point.lng, point.lat);
|
|
117
|
-
if (this.mapType === _mapEditorUtils.MAP_TYPES.G_MAP) {
|
|
118
|
-
this.map.setCenter({
|
|
119
|
-
lng: point.lng,
|
|
120
|
-
lat: point.lat
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
} else {
|
|
124
|
-
_toaster.default.danger((0, _lang.getLocale)('Positioning_failed'));
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
this.renderGoogleMap = () => {
|
|
128
|
-
this.setState({
|
|
129
|
-
isLoading: false
|
|
130
|
-
}, () => {
|
|
131
|
-
let {
|
|
132
|
-
lng,
|
|
133
|
-
lat,
|
|
134
|
-
zoom
|
|
135
|
-
} = (0, _mapEditorUtils.getInitCenter)();
|
|
136
|
-
this.map = new window.google.maps.Map(this.ref, {
|
|
137
|
-
zoom,
|
|
138
|
-
center: {
|
|
139
|
-
lng,
|
|
140
|
-
lat
|
|
141
|
-
},
|
|
142
|
-
zoomControl: false,
|
|
143
|
-
mapTypeControl: false,
|
|
144
|
-
scaleControl: false,
|
|
145
|
-
streetViewControl: false,
|
|
146
|
-
rotateControl: false,
|
|
147
|
-
fullscreenControl: false
|
|
148
|
-
});
|
|
149
|
-
const {
|
|
150
|
-
value
|
|
151
|
-
} = this.state;
|
|
152
|
-
if (value.lng && value.lat) {
|
|
153
|
-
lng = value.lng;
|
|
154
|
-
lat = value.lat;
|
|
155
|
-
this.addMarkerByPosition(lng, lat);
|
|
156
|
-
}
|
|
157
|
-
this.map.setCenter({
|
|
158
|
-
lng,
|
|
159
|
-
lat
|
|
160
|
-
});
|
|
161
|
-
this.map.addListener('mousedown', event => {
|
|
162
|
-
const lng = event.latLng.lng();
|
|
163
|
-
const lat = event.latLng.lat();
|
|
164
|
-
const point = {
|
|
165
|
-
lng,
|
|
166
|
-
lat
|
|
167
|
-
};
|
|
168
|
-
this.setValue(point);
|
|
169
|
-
this.addMarkerByPosition(lng, lat);
|
|
170
|
-
});
|
|
171
|
-
});
|
|
172
|
-
};
|
|
173
|
-
this.setValue = point => {
|
|
174
|
-
this.setState({
|
|
175
|
-
value: {
|
|
176
|
-
lng: point.lng,
|
|
177
|
-
lat: point.lat
|
|
178
|
-
},
|
|
179
|
-
inputValue: _mapEditorUtils.DOMESTIC_MAP_TYPE.includes(this.mapType) ? "".concat(point.lng, ", ").concat(point.lat) : "".concat(point.lat, ", ").concat(point.lng)
|
|
180
|
-
}, () => {
|
|
181
|
-
this.props.setValue(this.state.value);
|
|
182
|
-
});
|
|
183
|
-
};
|
|
184
|
-
this.addMarkerByPosition = (lng, lat) => {
|
|
185
|
-
if (this.mapType === _mapEditorUtils.MAP_TYPES.B_MAP) {
|
|
186
|
-
let point = new window.BMap.Point(lng, lat);
|
|
187
|
-
const marker = new window.BMap.Marker(point, {
|
|
188
|
-
offset: new window.BMap.Size(-2, -5)
|
|
189
|
-
});
|
|
190
|
-
this.map && this.map.clearOverlays();
|
|
191
|
-
this.map && this.map.addOverlay(marker);
|
|
192
|
-
} else if (this.mapType === _mapEditorUtils.MAP_TYPES.G_MAP) {
|
|
193
|
-
if (!this.googleMarker) {
|
|
194
|
-
this.googleMarker = new window.google.maps.Marker({
|
|
195
|
-
position: {
|
|
196
|
-
lng,
|
|
197
|
-
lat
|
|
198
|
-
},
|
|
199
|
-
map: this.map
|
|
200
|
-
});
|
|
201
|
-
return;
|
|
202
|
-
}
|
|
203
|
-
this.googleMarker.setPosition({
|
|
204
|
-
lng,
|
|
205
|
-
lat
|
|
206
|
-
});
|
|
207
|
-
} else if (this.mapType === _mapEditorUtils.MAP_TYPES.M_MAP) {
|
|
208
|
-
if (!this.mineMapMarker) {
|
|
209
|
-
this.mineMapMarker = new window.minemap.Marker({
|
|
210
|
-
draggable: false,
|
|
211
|
-
anchor: 'top-left',
|
|
212
|
-
color: 'red',
|
|
213
|
-
rotation: 0,
|
|
214
|
-
pitchAlignment: 'map',
|
|
215
|
-
rotationAlignment: 'map',
|
|
216
|
-
scale: 0.8
|
|
217
|
-
}).setLngLat({
|
|
218
|
-
lng,
|
|
219
|
-
lat
|
|
220
|
-
}).addTo(this.map);
|
|
221
|
-
} else {
|
|
222
|
-
this.mineMapMarker.setLngLat({
|
|
223
|
-
lng,
|
|
224
|
-
lat
|
|
225
|
-
});
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
};
|
|
229
|
-
this.toggleFullScreen = event => {
|
|
230
|
-
event.preventDefault();
|
|
231
|
-
event.stopPropagation();
|
|
232
|
-
event.nativeEvent.stopImmediatePropagation();
|
|
233
|
-
const {
|
|
234
|
-
value
|
|
235
|
-
} = this.state;
|
|
236
|
-
this.props.setValue(value);
|
|
237
|
-
this.setState({
|
|
238
|
-
isShowLargeEditor: !this.state.isShowLargeEditor
|
|
239
|
-
});
|
|
240
|
-
};
|
|
241
|
-
this.clearSearchNumerical = () => {
|
|
242
|
-
this.setState({
|
|
243
|
-
inputValue: '',
|
|
244
|
-
value: {}
|
|
245
|
-
});
|
|
246
|
-
};
|
|
247
|
-
this.onSubmit = () => {
|
|
248
|
-
const {
|
|
249
|
-
value
|
|
250
|
-
} = this.state;
|
|
251
|
-
this.props.setValue(value);
|
|
252
|
-
this.props.onSubmit();
|
|
253
|
-
};
|
|
254
|
-
this.onChange = e => {
|
|
255
|
-
const inputValue = e.target.value;
|
|
256
|
-
this.setState({
|
|
257
|
-
inputValue
|
|
258
|
-
});
|
|
259
|
-
const enSplitCodeIndex = inputValue.indexOf(',');
|
|
260
|
-
const cnSplitCodeIndex = inputValue.indexOf(',');
|
|
261
|
-
if (enSplitCodeIndex > 0 || cnSplitCodeIndex > 0) {
|
|
262
|
-
let lng;
|
|
263
|
-
let lat;
|
|
264
|
-
const splitCodeIndex = enSplitCodeIndex > 0 ? enSplitCodeIndex : cnSplitCodeIndex;
|
|
265
|
-
if (this.mapType === _mapEditorUtils.MAP_TYPES.G_MAP) {
|
|
266
|
-
lat = parseFloat(inputValue.slice(0, splitCodeIndex).trim());
|
|
267
|
-
lng = parseFloat(inputValue.slice(splitCodeIndex + 1).trim());
|
|
268
|
-
} else {
|
|
269
|
-
lng = parseFloat(inputValue.slice(0, splitCodeIndex).trim());
|
|
270
|
-
lat = parseFloat(inputValue.slice(splitCodeIndex + 1).trim());
|
|
271
|
-
}
|
|
272
|
-
if (!Number.isNaN(lng) && !Number.isNaN(lat)) {
|
|
273
|
-
this.setState({
|
|
274
|
-
value: {
|
|
275
|
-
lng,
|
|
276
|
-
lat
|
|
277
|
-
}
|
|
278
|
-
});
|
|
279
|
-
if (this.map) {
|
|
280
|
-
if (this.mapType === _mapEditorUtils.MAP_TYPES.G_MAP || this.mapType === _mapEditorUtils.MAP_TYPES.M_MAP) {
|
|
281
|
-
this.map.setCenter({
|
|
282
|
-
lng,
|
|
283
|
-
lat
|
|
284
|
-
});
|
|
285
|
-
} else {
|
|
286
|
-
this.map.setCenter(new window.BMap.Point(lng, lat));
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
this.addMarkerByPosition(lng, lat);
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
};
|
|
293
|
-
this.onKeyDown = event => {
|
|
294
|
-
event.stopPropagation();
|
|
295
|
-
event.nativeEvent.stopImmediatePropagation();
|
|
296
|
-
if (event.keyCode === _constants.KeyCodes.Enter) {
|
|
297
|
-
this.onSubmit();
|
|
298
|
-
}
|
|
299
|
-
};
|
|
300
|
-
this.onZoomIn = () => {
|
|
301
|
-
if (!this.map) return;
|
|
302
|
-
const currentZoom = this.map.getZoom();
|
|
303
|
-
this.map.setZoom(currentZoom + 1);
|
|
304
|
-
};
|
|
305
|
-
this.onZoomOut = () => {
|
|
306
|
-
if (!this.map) return;
|
|
307
|
-
const currentZoom = this.map.getZoom();
|
|
308
|
-
this.map.setZoom(currentZoom - 1);
|
|
309
|
-
};
|
|
310
|
-
this.onLocateCurrentPosition = () => {
|
|
311
|
-
(0, _mapEditorUtils.locateCurrentPosition)(this.map, this.mapType, this.geolocationCallback);
|
|
312
|
-
};
|
|
313
|
-
const _value = props.value || {};
|
|
314
|
-
const {
|
|
315
|
-
mapType,
|
|
316
|
-
mapKey
|
|
317
|
-
} = (0, _mapEditorUtils.getMapInfo)(props.config);
|
|
318
|
-
this.mapType = mapType;
|
|
319
|
-
this.mapKey = mapKey;
|
|
320
|
-
this.readOnly = props.readOnly;
|
|
321
|
-
const {
|
|
322
|
-
lng: _lng,
|
|
323
|
-
lat: _lat
|
|
324
|
-
} = _value;
|
|
325
|
-
const _inputValue = (0, _cell.isValidPosition)(_lng, _lat) ? _mapEditorUtils.DOMESTIC_MAP_TYPE.includes(this.mapType) ? "".concat(_lng, ", ").concat(_lat) : "".concat(_lat, ", ").concat(_lng) : '';
|
|
326
|
-
this.map = null;
|
|
327
|
-
this.state = {
|
|
328
|
-
isLoading: true,
|
|
329
|
-
value: props.value,
|
|
330
|
-
inputValue: _inputValue,
|
|
331
|
-
isShowLargeEditor: false
|
|
332
|
-
};
|
|
333
|
-
}
|
|
334
|
-
componentDidMount() {
|
|
335
|
-
if (this.mapType === _mapEditorUtils.MAP_TYPES.B_MAP) {
|
|
336
|
-
if (!window.BMap) {
|
|
337
|
-
window.renderBaiduMap = () => this.renderBaiduMap();
|
|
338
|
-
(0, _mapEditorUtils.loadMapSource)(this.mapType, this.mapKey);
|
|
339
|
-
} else {
|
|
340
|
-
this.renderBaiduMap();
|
|
341
|
-
}
|
|
342
|
-
return;
|
|
343
|
-
} else if (this.mapType === _mapEditorUtils.MAP_TYPES.G_MAP) {
|
|
344
|
-
if (!window.google) {
|
|
345
|
-
window.renderGoogleMap = () => this.renderGoogleMap();
|
|
346
|
-
(0, _mapEditorUtils.loadMapSource)(this.mapType, this.mapKey);
|
|
347
|
-
} else {
|
|
348
|
-
this.renderGoogleMap();
|
|
349
|
-
}
|
|
350
|
-
return;
|
|
351
|
-
} else if (this.mapType === _mapEditorUtils.MAP_TYPES.M_MAP) {
|
|
352
|
-
if (!window.minemap) {
|
|
353
|
-
(0, _mapEditorUtils.loadMapSource)(this.mapType, this.mapKey, this.loadMineMapCallBack);
|
|
354
|
-
} else {
|
|
355
|
-
this.renderMineMap();
|
|
356
|
-
}
|
|
357
|
-
return;
|
|
358
|
-
}
|
|
359
|
-
}
|
|
360
|
-
componentWillUnmount() {
|
|
361
|
-
let center = {};
|
|
362
|
-
if (this.map && _mapEditorUtils.DOMESTIC_MAP_TYPE.includes(this.mapType)) {
|
|
363
|
-
center.zoom = this.map.getZoom();
|
|
364
|
-
let coordinate = this.map.getCenter();
|
|
365
|
-
center.lng = coordinate.lng;
|
|
366
|
-
center.lat = coordinate.lat;
|
|
367
|
-
this.mineMapMarker = null;
|
|
368
|
-
} else if (this.map && this.mapType === _mapEditorUtils.MAP_TYPES.G_MAP) {
|
|
369
|
-
let zoom = this.map.getZoom();
|
|
370
|
-
let coordinate = this.map.getCenter();
|
|
371
|
-
center.zoom = zoom;
|
|
372
|
-
center.lat = coordinate.lat();
|
|
373
|
-
center.lng = coordinate.lng();
|
|
374
|
-
this.googleMarker = null;
|
|
375
|
-
}
|
|
376
|
-
localStorage.setItem('geolocation-map-center', JSON.stringify(center));
|
|
377
|
-
this.map = null;
|
|
378
|
-
this.props.toggleLargeMap && this.props.toggleLargeMap(false);
|
|
379
|
-
}
|
|
380
|
-
render() {
|
|
381
|
-
const {
|
|
382
|
-
isLoading,
|
|
383
|
-
inputValue,
|
|
384
|
-
isShowLargeEditor
|
|
385
|
-
} = this.state;
|
|
386
|
-
if (!isShowLargeEditor) {
|
|
387
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
388
|
-
className: "dtable-ui-geolocation-map-editor-header"
|
|
389
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
390
|
-
className: "dtable-ui-geolocation-map-editor-logo"
|
|
391
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
392
|
-
className: "dtable-font dtable-icon-location"
|
|
393
|
-
}), /*#__PURE__*/_react.default.createElement("span", {
|
|
394
|
-
className: "ml-2 dtable-ui-geolocation-map-editor-title"
|
|
395
|
-
}, (0, _lang.getLocale)('Address'))), /*#__PURE__*/_react.default.createElement("span", {
|
|
396
|
-
className: "dtable-ui-geolocation-map-editor-screen dtable-font dtable-icon-full-screen",
|
|
397
|
-
onClick: this.toggleFullScreen
|
|
398
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
399
|
-
className: "dtable-ui-geolocation-map-editor"
|
|
400
|
-
}, !this.readOnly && /*#__PURE__*/_react.default.createElement("div", {
|
|
401
|
-
className: "map-editor-header"
|
|
402
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
403
|
-
className: "search-tables-container"
|
|
404
|
-
}, /*#__PURE__*/_react.default.createElement("input", {
|
|
405
|
-
type: "text",
|
|
406
|
-
value: inputValue,
|
|
407
|
-
onKeyDown: this.onKeyDown,
|
|
408
|
-
onChange: this.onChange,
|
|
409
|
-
className: "form-control search-tables-input",
|
|
410
|
-
placeholder: _mapEditorUtils.DOMESTIC_MAP_TYPE.includes(this.mapType) ? (0, _lang.getLocale)('Enter_longitude_and_latitude') : (0, _lang.getLocale)('Enter_latitude_and_longitude'),
|
|
411
|
-
autoFocus: true
|
|
412
|
-
}), inputValue && /*#__PURE__*/_react.default.createElement("span", {
|
|
413
|
-
className: "clear-search-numerical dtable-font dtable-icon-x-",
|
|
414
|
-
onClick: this.clearSearchNumerical
|
|
415
|
-
})), /*#__PURE__*/_react.default.createElement("span", {
|
|
416
|
-
className: "dtable-ui-geolocation-submit-map-editor",
|
|
417
|
-
onClick: this.onSubmit
|
|
418
|
-
}, (0, _lang.getLocale)('Submit'))), /*#__PURE__*/_react.default.createElement("div", {
|
|
419
|
-
className: this.readOnly ? 'geolocation-map-read-only-container' : 'geolocation-map-container'
|
|
420
|
-
}, this.mapType && isLoading && /*#__PURE__*/_react.default.createElement(_Loading.default, null), !this.mapType && /*#__PURE__*/_react.default.createElement("div", {
|
|
421
|
-
className: "error-message d-flex justify-content-center mt-9"
|
|
422
|
-
}, /*#__PURE__*/_react.default.createElement("span", {
|
|
423
|
-
className: "alert-danger"
|
|
424
|
-
}, (0, _lang.getLocale)('The_map_plugin_is_not_properly_configured_contact_the_administrator'))), !isLoading && this.mapType && /*#__PURE__*/_react.default.createElement("div", {
|
|
425
|
-
className: "w-100 h-100",
|
|
426
|
-
ref: ref => this.ref = ref,
|
|
427
|
-
id: "geolocation-map-container"
|
|
428
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
429
|
-
className: "geolocation-map-controller"
|
|
430
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
431
|
-
className: "dtable-ui-geolocation-locate-control",
|
|
432
|
-
onClick: this.onLocateCurrentPosition
|
|
433
|
-
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
434
|
-
className: "dtable-font dtable-icon-current-location"
|
|
435
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
436
|
-
className: "dtable-ui-geolocation-zoom-control"
|
|
437
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
438
|
-
className: "dtable-ui-geolocation-zoom-control-btn",
|
|
439
|
-
onClick: this.onZoomIn
|
|
440
|
-
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
441
|
-
"aria-hidden": "true",
|
|
442
|
-
className: "dtable-font dtable-icon-enlarge"
|
|
443
|
-
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
444
|
-
className: "dtable-ui-geolocation-zoom-control-btn",
|
|
445
|
-
onClick: this.onZoomOut
|
|
446
|
-
}, /*#__PURE__*/_react.default.createElement("i", {
|
|
447
|
-
"aria-hidden": "true",
|
|
448
|
-
className: "dtable-font dtable-icon-narrow"
|
|
449
|
-
}))))));
|
|
450
|
-
}
|
|
451
|
-
return /*#__PURE__*/_react.default.createElement(_largeEditor.default, Object.assign({}, this.props, {
|
|
452
|
-
toggleFullScreen: this.toggleFullScreen
|
|
453
|
-
}));
|
|
454
|
-
}
|
|
455
|
-
}
|
|
456
|
-
var _default = exports.default = MapEditor;
|
|
@@ -1,137 +0,0 @@
|
|
|
1
|
-
.dtable-ui-large-map-editor-dialog {
|
|
2
|
-
height: calc(100% - 75px);
|
|
3
|
-
width: 94%;
|
|
4
|
-
max-width: 94%;
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
.dtable-ui-large-map-editor-dialog .modal-content {
|
|
8
|
-
height: 100%;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
.dtable-ui-large-map-editor-dialog .dtable-ui-geolocation-map-editor-large {
|
|
12
|
-
width: 100%;
|
|
13
|
-
flex: 1;
|
|
14
|
-
position: relative;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
.dtable-ui-large-map-editor-dialog .geolocation-map-container-large {
|
|
18
|
-
height: 100%;
|
|
19
|
-
display: flex;
|
|
20
|
-
align-items: center;
|
|
21
|
-
text-align: center;
|
|
22
|
-
position: relative;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.dtable-ui-large-map-editor-dialog .geolocation-map-read-only-container {
|
|
26
|
-
height: 100%;
|
|
27
|
-
display: flex;
|
|
28
|
-
align-items: center;
|
|
29
|
-
text-align: center;
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
.dtable-ui-large-map-editor-dialog .map-editor-header {
|
|
33
|
-
position: absolute;
|
|
34
|
-
top: 16px;
|
|
35
|
-
left: 5%;
|
|
36
|
-
height: 60px;
|
|
37
|
-
z-index: 2;
|
|
38
|
-
width: 90%;
|
|
39
|
-
display: flex;
|
|
40
|
-
justify-content: space-between;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.dtable-ui-large-map-editor-dialog .selection-editor-large .map-editor-header {
|
|
44
|
-
left: 2%;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.search-tables-container {
|
|
48
|
-
width: 100%;
|
|
49
|
-
height: fit-content;
|
|
50
|
-
position: relative;
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
.dtable-ui-large-map-editor-dialog .dtable-ui-geolocation-map-editor-large .search-tables-input {
|
|
54
|
-
line-height: 38px;
|
|
55
|
-
padding-right: 30px;
|
|
56
|
-
border-bottom: 0;
|
|
57
|
-
background: #fff;
|
|
58
|
-
border-radius: 3px;
|
|
59
|
-
border: 1px solid #dedede;
|
|
60
|
-
box-shadow: 0 -0 12px rgb(0 0 0 / 30%);
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
.clear-search-numerical {
|
|
64
|
-
position: absolute;
|
|
65
|
-
right: 8px;
|
|
66
|
-
top: 7px;
|
|
67
|
-
color: #999;
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.dtable-ui-geolocation-map-editor.selection-editor .clear-search-numerical {
|
|
72
|
-
right: 75px;
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.dtable-ui-large-map-editor-dialog .dtable-ui-geolocation-map-editor-large .dtable-ui-geolocation-submit-map-editor {
|
|
76
|
-
margin-left: 16px;
|
|
77
|
-
box-shadow: 0 -0 12px rgb(0 0 0 / 30%);
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
.dtable-ui-geolocation-map-editor-large .search-tables-input.selection-input-large {
|
|
81
|
-
width: 415px;
|
|
82
|
-
box-shadow: 0 -0 2px rgb(0 0 0 / 30%);
|
|
83
|
-
border-radius: 2px 0px 0px 2px;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
.dtable-ui-geolocation-map-editor-large .selection-input-large:focus {
|
|
87
|
-
box-shadow: 0 -0 3px rgb(0 0 0 / 30%);
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
.dtable-ui-geolocation-map-editor-large.selection-editor-large .dtable-ui-geolocation-search-selection-editor {
|
|
91
|
-
width: 65px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.dtable-ui-geolocation-map-editor-large.selection-editor-large .clear-search-numerical {
|
|
95
|
-
left: 390px;
|
|
96
|
-
width: fit-content;
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
.dtable-ui-geolocation-map-editor-large .search-results-container {
|
|
100
|
-
width: 415px;
|
|
101
|
-
height: fit-content;
|
|
102
|
-
max-height: 360px;
|
|
103
|
-
overflow-y: scroll;
|
|
104
|
-
position: absolute;
|
|
105
|
-
top: 62px;
|
|
106
|
-
left: 2%;
|
|
107
|
-
background: #fff;
|
|
108
|
-
border: 1px solid transparent;
|
|
109
|
-
border-radius: 3px;
|
|
110
|
-
padding: 0px 10px;
|
|
111
|
-
box-shadow: 0 -0 3px rgb(0 0 0 / 30%);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.dtable-ui-geolocation-map-editor-large .search-result-item {
|
|
115
|
-
height: 56px;
|
|
116
|
-
cursor: pointer;
|
|
117
|
-
position: relative;
|
|
118
|
-
padding: 10px 10px 10px 0px;
|
|
119
|
-
border-bottom: 1px solid #ddd;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.dtable-ui-geolocation-map-editor-large .search-result-item:hover {
|
|
123
|
-
background-color: #f5f5f5;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
.dtable-ui-geolocation-map-editor-large .search-result-item .search-result-item-title {
|
|
127
|
-
color: #212529;
|
|
128
|
-
font-size: 14px;
|
|
129
|
-
}
|
|
130
|
-
|
|
131
|
-
.dtable-ui-geolocation-map-editor-large .search-result-item .search-result-item-address {
|
|
132
|
-
color: #666;
|
|
133
|
-
font-size: 12px;
|
|
134
|
-
position: absolute;
|
|
135
|
-
left: 0px;
|
|
136
|
-
bottom: 5px;
|
|
137
|
-
}
|