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