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
|
@@ -11,6 +11,7 @@ var _Picker = _interopRequireDefault(require("../../Picker"));
|
|
|
11
11
|
var _List = _interopRequireDefault(require("../../List"));
|
|
12
12
|
var _MobileFullScreenPage = _interopRequireDefault(require("../../MobileFullScreenPage"));
|
|
13
13
|
var _lang = require("../../lang");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
const {
|
|
15
16
|
Header,
|
|
16
17
|
Body
|
|
@@ -45,32 +46,46 @@ const ProvinceEditor = _ref => {
|
|
|
45
46
|
}
|
|
46
47
|
onToggle();
|
|
47
48
|
}, [value, oldValue, onCommit, onToggle]);
|
|
48
|
-
return /*#__PURE__*/
|
|
49
|
-
onClose: onToggle
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
49
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
|
|
50
|
+
onClose: onToggle,
|
|
51
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
|
|
52
|
+
onLeftClick: onToggle,
|
|
53
|
+
onRightClick: onSubmit,
|
|
54
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
55
|
+
children: (0, _lang.getLocale)('Cancel')
|
|
56
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
57
|
+
children: column.name
|
|
58
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
59
|
+
style: {
|
|
60
|
+
color: '#f09f3f'
|
|
61
|
+
},
|
|
62
|
+
children: (0, _lang.getLocale)('Submit')
|
|
63
|
+
})]
|
|
64
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Body, {
|
|
65
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
66
|
+
className: "dtable-ui-mobile-row-expand-subtitle",
|
|
67
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
68
|
+
children: (0, _lang.getLocale)('Address_information')
|
|
69
|
+
})
|
|
70
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Picker.default, {
|
|
71
|
+
className: "dtable-ui-mobile-geolocation-editor-picker",
|
|
72
|
+
data: isLoading ? [] : locations.current,
|
|
73
|
+
value: value,
|
|
74
|
+
format: "",
|
|
75
|
+
onChange: onValueChange,
|
|
76
|
+
cascade: true,
|
|
77
|
+
title: (0, _lang.getLocale)('Address_information'),
|
|
78
|
+
extra: (0, _lang.getLocale)('Select_location'),
|
|
79
|
+
onOk: e => onValueChange(e),
|
|
80
|
+
okText: (0, _lang.getLocale)('Done'),
|
|
81
|
+
dismissText: (0, _lang.getLocale)('Cancel'),
|
|
82
|
+
cols: 1,
|
|
83
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_List.default.Item, {
|
|
84
|
+
arrow: "horizontal",
|
|
85
|
+
children: value[0] || (0, _lang.getLocale)('Select_location')
|
|
86
|
+
})
|
|
87
|
+
})]
|
|
88
|
+
})]
|
|
89
|
+
});
|
|
75
90
|
};
|
|
76
91
|
var _default = exports.default = ProvinceEditor;
|
|
@@ -11,6 +11,7 @@ var _reactstrap = require("reactstrap");
|
|
|
11
11
|
var _constants = require("../../constants");
|
|
12
12
|
var _Loading = _interopRequireDefault(require("../../Loading"));
|
|
13
13
|
var _lang = require("../../lang");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
class CountryEditor extends _react.Component {
|
|
15
16
|
constructor(props) {
|
|
16
17
|
super(props);
|
|
@@ -133,18 +134,20 @@ class CountryEditor extends _react.Component {
|
|
|
133
134
|
const countryList = this.createCountryList(continent, index);
|
|
134
135
|
if (countryList.length > 0) {
|
|
135
136
|
isSearchResultEmpty = false;
|
|
136
|
-
return /*#__PURE__*/
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
137
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
138
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
139
|
+
className: "geolocation-region-editor-continent",
|
|
140
|
+
children: continent
|
|
141
|
+
}), countryList]
|
|
142
|
+
}, continent);
|
|
141
143
|
}
|
|
142
144
|
return null;
|
|
143
145
|
});
|
|
144
146
|
if (isSearchResultEmpty) {
|
|
145
|
-
return /*#__PURE__*/
|
|
146
|
-
className: "country-list-empty"
|
|
147
|
-
|
|
147
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
148
|
+
className: "country-list-empty",
|
|
149
|
+
children: (0, _lang.getLocale)('No_options')
|
|
150
|
+
});
|
|
148
151
|
}
|
|
149
152
|
return continentsList;
|
|
150
153
|
};
|
|
@@ -155,19 +158,20 @@ class CountryEditor extends _react.Component {
|
|
|
155
158
|
} = this.state;
|
|
156
159
|
let countryList = this.filteredCountry[continent].map((country, index) => {
|
|
157
160
|
const isHighlight = highlightIndexes[0] === continentIndex && highlightIndexes[1] === index;
|
|
158
|
-
return /*#__PURE__*/
|
|
161
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
159
162
|
className: "geolocation-region-editor-country ".concat(isHighlight ? 'geolocation-region-editor-province-highlight' : ''),
|
|
160
|
-
key: country,
|
|
161
163
|
onMouseEnter: () => this.onMenuMouseEnter(continentIndex, index),
|
|
162
164
|
onMouseLeave: () => this.onMenuMouseLeave(continentIndex, index),
|
|
163
165
|
title: country,
|
|
164
166
|
"aria-label": country,
|
|
165
|
-
onClick: () => this.onClick(country)
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
167
|
+
onClick: () => this.onClick(country),
|
|
168
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
169
|
+
className: "icon ".concat(value === country ? 'dtable-font dtable-icon-check-mark' : '')
|
|
170
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
171
|
+
className: "country-name",
|
|
172
|
+
children: country
|
|
173
|
+
})]
|
|
174
|
+
}, country);
|
|
171
175
|
});
|
|
172
176
|
return countryList;
|
|
173
177
|
};
|
|
@@ -256,20 +260,23 @@ class CountryEditor extends _react.Component {
|
|
|
256
260
|
const {
|
|
257
261
|
isLoadingData
|
|
258
262
|
} = this.state;
|
|
259
|
-
return /*#__PURE__*/
|
|
260
|
-
className: "dtable-ui-geolocation-country-editor"
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
263
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
264
|
+
className: "dtable-ui-geolocation-country-editor",
|
|
265
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
266
|
+
className: "geolocation-region-list-header",
|
|
267
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Input, {
|
|
268
|
+
value: this.state.searchingCountry,
|
|
269
|
+
onChange: this.onChange,
|
|
270
|
+
autoFocus: true,
|
|
271
|
+
onKeyDown: this.onKeyDown,
|
|
272
|
+
placeholder: (0, _lang.getLocale)('Search_country')
|
|
273
|
+
})
|
|
274
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
275
|
+
className: "geolocation-region-list-container",
|
|
276
|
+
ref: ref => this.selectContainer = ref,
|
|
277
|
+
children: isLoadingData ? /*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {}) : this.createContinentList()
|
|
278
|
+
})]
|
|
279
|
+
});
|
|
273
280
|
}
|
|
274
281
|
}
|
|
275
282
|
var _default = exports.default = CountryEditor;
|
|
@@ -16,6 +16,7 @@ var _countryEditor = _interopRequireDefault(require("./country-editor"));
|
|
|
16
16
|
var _provinceEditor = _interopRequireDefault(require("./province-editor"));
|
|
17
17
|
var _provinceCityEditor = _interopRequireDefault(require("./province-city-editor"));
|
|
18
18
|
require("./index.css");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
20
|
class PCGeolocationEditor extends _react.default.Component {
|
|
20
21
|
constructor(_props) {
|
|
21
22
|
super(_props);
|
|
@@ -171,54 +172,61 @@ class PCGeolocationEditor extends _react.default.Component {
|
|
|
171
172
|
switch (geoFormat) {
|
|
172
173
|
case _dtableUtils.GEOLOCATION_FORMAT.LNG_LAT:
|
|
173
174
|
{
|
|
174
|
-
return /*#__PURE__*/
|
|
175
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mapEditor.default, {
|
|
176
|
+
...props,
|
|
175
177
|
toggleLargeMap: toggleLargeMap,
|
|
176
178
|
ref: ref => this.editor = ref
|
|
177
|
-
})
|
|
179
|
+
});
|
|
178
180
|
}
|
|
179
181
|
case _dtableUtils.GEOLOCATION_FORMAT.MAP_SELECTION:
|
|
180
182
|
{
|
|
181
|
-
return /*#__PURE__*/
|
|
183
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mapSelectionEditor.default, {
|
|
184
|
+
...props,
|
|
182
185
|
toggleLargeMap: toggleLargeMap,
|
|
183
186
|
ref: ref => this.editor = ref
|
|
184
|
-
})
|
|
187
|
+
});
|
|
185
188
|
}
|
|
186
189
|
case _dtableUtils.GEOLOCATION_FORMAT.COUNTRY_REGION:
|
|
187
190
|
{
|
|
188
|
-
return /*#__PURE__*/
|
|
191
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_countryEditor.default, {
|
|
192
|
+
...props,
|
|
189
193
|
getData: getCountryData,
|
|
190
194
|
ref: ref => this.editor = ref
|
|
191
|
-
})
|
|
195
|
+
});
|
|
192
196
|
}
|
|
193
197
|
case _dtableUtils.GEOLOCATION_FORMAT.PROVINCE:
|
|
194
198
|
{
|
|
195
|
-
return /*#__PURE__*/
|
|
199
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_provinceEditor.default, {
|
|
200
|
+
...props,
|
|
196
201
|
onPressTab: this.props.onPressTab,
|
|
197
202
|
getData: getLocationData,
|
|
198
203
|
ref: ref => this.editor = ref
|
|
199
|
-
})
|
|
204
|
+
});
|
|
200
205
|
}
|
|
201
206
|
case _dtableUtils.GEOLOCATION_FORMAT.PROVINCE_CITY:
|
|
202
207
|
{
|
|
203
|
-
return /*#__PURE__*/
|
|
208
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_provinceCityEditor.default, {
|
|
209
|
+
...props,
|
|
204
210
|
getData: getLocationData,
|
|
205
211
|
ref: ref => this.editor = ref
|
|
206
|
-
})
|
|
212
|
+
});
|
|
207
213
|
}
|
|
208
214
|
case _dtableUtils.GEOLOCATION_FORMAT.PROVINCE_CITY_DISTRICT:
|
|
209
215
|
{
|
|
210
|
-
return /*#__PURE__*/
|
|
216
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_locationEditor.default, {
|
|
217
|
+
...props,
|
|
211
218
|
getData: getLocationData,
|
|
212
219
|
ref: ref => this.editor = ref
|
|
213
|
-
})
|
|
220
|
+
});
|
|
214
221
|
}
|
|
215
222
|
default:
|
|
216
223
|
{
|
|
217
|
-
return /*#__PURE__*/
|
|
224
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_locationEditor.default, {
|
|
225
|
+
...props,
|
|
218
226
|
isShowDetails: true,
|
|
219
227
|
getData: getLocationData,
|
|
220
228
|
ref: ref => this.editor = ref
|
|
221
|
-
})
|
|
229
|
+
});
|
|
222
230
|
}
|
|
223
231
|
}
|
|
224
232
|
};
|
|
@@ -240,11 +248,12 @@ class PCGeolocationEditor extends _react.default.Component {
|
|
|
240
248
|
const {
|
|
241
249
|
editorPosition
|
|
242
250
|
} = this.state;
|
|
243
|
-
return /*#__PURE__*/
|
|
251
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
244
252
|
ref: ref => this.ref = ref,
|
|
245
253
|
style: editorPosition,
|
|
246
|
-
className: "dtable-ui-dtable-ui-geolocation-editor"
|
|
247
|
-
|
|
254
|
+
className: "dtable-ui-dtable-ui-geolocation-editor",
|
|
255
|
+
children: this.createEditor()
|
|
256
|
+
});
|
|
248
257
|
}
|
|
249
258
|
}
|
|
250
259
|
var _default = exports.default = PCGeolocationEditor;
|
|
@@ -15,6 +15,7 @@ var _constants = require("../../constants");
|
|
|
15
15
|
var _Loading = _interopRequireDefault(require("../../Loading"));
|
|
16
16
|
var _parseGeolocation = _interopRequireDefault(require("./parse-geolocation"));
|
|
17
17
|
var _lang = require("../../lang");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
class LocationEditor extends _react.Component {
|
|
19
20
|
constructor(props) {
|
|
20
21
|
super(props);
|
|
@@ -229,101 +230,126 @@ class LocationEditor extends _react.Component {
|
|
|
229
230
|
isLoadingData,
|
|
230
231
|
location
|
|
231
232
|
} = this.state;
|
|
232
|
-
return /*#__PURE__*/
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
233
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
234
|
+
children: [!isLoadingData ? /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
235
|
+
onClick: this.onClick,
|
|
236
|
+
className: "dtable-ui-geolocation-editor-content",
|
|
237
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
238
|
+
className: "dtable-ui-geolocation-editor-item dtable-ui-geolocation-editor-selector-container",
|
|
239
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
240
|
+
className: "dtable-ui-geolocation-editor-item-left",
|
|
241
|
+
children: (0, _lang.getLocale)('Address_information') + ':'
|
|
242
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
243
|
+
className: "dtable-ui-geolocation-editor-item-right",
|
|
244
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
245
|
+
onClick: this.onToggleSelector,
|
|
246
|
+
className: "dtable-ui-geolocation-editor-selector text-truncate ".concat(isShowSelector ? 'focus' : ''),
|
|
247
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
248
|
+
className: "selected-option-show",
|
|
249
|
+
children: location ? location : (0, _lang.getLocale)('Select_province_city_district')
|
|
250
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
251
|
+
"aria-hidden": "true",
|
|
252
|
+
className: "dtable-font dtable-icon-down3 dtable-ui-geolocation-editor-parameter-icon"
|
|
253
|
+
})]
|
|
254
|
+
})
|
|
255
|
+
}), isShowSelector && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
256
|
+
className: "geolocation-selector-container",
|
|
257
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
258
|
+
className: "geolocation-selector-header",
|
|
259
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_selectorHeaderItem.default, {
|
|
260
|
+
type: "province",
|
|
261
|
+
clickHandler: this.selectSelectorType,
|
|
262
|
+
selectedType: selectedItem,
|
|
263
|
+
selectedItem: selectedProvince
|
|
264
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectorHeaderItem.default, {
|
|
265
|
+
type: "city",
|
|
266
|
+
clickHandler: this.selectSelectorType,
|
|
267
|
+
selectedType: selectedItem,
|
|
268
|
+
selectedItem: selectedCity
|
|
269
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectorHeaderItem.default, {
|
|
270
|
+
type: "county",
|
|
271
|
+
clickHandler: this.selectSelectorType,
|
|
272
|
+
selectedType: selectedItem,
|
|
273
|
+
selectedItem: selectedCounty
|
|
274
|
+
})]
|
|
275
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
276
|
+
className: "geolocation-selector-body",
|
|
277
|
+
children: [selectedItem === 'province' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectorList.default, {
|
|
278
|
+
type: "province",
|
|
279
|
+
parent: this.locations,
|
|
280
|
+
selectedItem: selectedProvince,
|
|
281
|
+
clickHandler: this.selectProvince
|
|
282
|
+
}), selectedItem === 'city' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectorList.default, {
|
|
283
|
+
type: "city",
|
|
284
|
+
parent: selectedProvince,
|
|
285
|
+
selectedItem: selectedCity,
|
|
286
|
+
clickHandler: this.selectCity
|
|
287
|
+
}), selectedItem === 'county' && /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectorList.default, {
|
|
288
|
+
type: "county",
|
|
289
|
+
parent: selectedCity,
|
|
290
|
+
selectedItem: selectedCounty,
|
|
291
|
+
clickHandler: this.selectCounty
|
|
292
|
+
})]
|
|
293
|
+
})]
|
|
294
|
+
})]
|
|
295
|
+
}), this.props.isShowDetails && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
296
|
+
className: "dtable-ui-geolocation-editor-item dtable-ui-geolocation-editor-detail",
|
|
297
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
298
|
+
className: "dtable-ui-geolocation-editor-item-left",
|
|
299
|
+
children: (0, _lang.getLocale)('Detailed_address') + ':'
|
|
300
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
301
|
+
className: "dtable-ui-geolocation-editor-item-right",
|
|
302
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("textarea", {
|
|
303
|
+
ref: ref => this.detailInfo = ref,
|
|
304
|
+
placeholder: (0, _lang.getLocale)('Detailed_address_placeholder'),
|
|
305
|
+
className: "dtable-ui-geolocation-editor-detail-info",
|
|
306
|
+
type: "text",
|
|
307
|
+
onChange: this.onChange,
|
|
308
|
+
defaultValue: this.value.detail,
|
|
309
|
+
onKeyDown: this.onKeyDown,
|
|
310
|
+
autoFocus: true
|
|
311
|
+
})
|
|
312
|
+
})]
|
|
313
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
314
|
+
className: "dtable-ui-geolocation-editor-item dtable-ui-geolocation-editor-parse",
|
|
315
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
316
|
+
className: "dtable-ui-geolocation-editor-item-left",
|
|
317
|
+
children: (0, _lang.getLocale)('Auto_recognition') + ':'
|
|
318
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
319
|
+
className: "dtable-ui-geolocation-editor-item-right",
|
|
320
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("textarea", {
|
|
321
|
+
ref: ref => this.parseRef = ref,
|
|
322
|
+
placeholder: (0, _lang.getLocale)('Try_pasting_addresses_such_as_provinces/cities/districts_roads_neighborhoods_etc_to_quickly_identify_the_address_information'),
|
|
323
|
+
className: "dtable-ui-geolocation-editor-detail-info dtable-ui-geolocation-editor-recognition",
|
|
324
|
+
type: "text",
|
|
325
|
+
onChange: this.onParseChange,
|
|
326
|
+
onKeyDown: this.onKeyDown,
|
|
327
|
+
onCompositionEnd: this.onCompositionEnd,
|
|
328
|
+
onCompositionStart: this.onCompositionStart
|
|
329
|
+
})
|
|
330
|
+
})]
|
|
331
|
+
})]
|
|
332
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
333
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Loading.default, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
334
|
+
className: "align-items-center",
|
|
335
|
+
children: (0, _lang.getLocale)('Loading_geolocation_data')
|
|
336
|
+
})]
|
|
337
|
+
}), this.state.errMessage && /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Alert, {
|
|
338
|
+
color: "danger",
|
|
339
|
+
className: "mt-2",
|
|
340
|
+
children: this.state.errMessage
|
|
341
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_DTableCustomFooter.default, {
|
|
342
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
343
|
+
onClick: this.props.onCancel,
|
|
344
|
+
color: "secondary",
|
|
345
|
+
children: (0, _lang.getLocale)('Cancel')
|
|
346
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Button, {
|
|
347
|
+
onClick: this.onSubmit,
|
|
348
|
+
color: "primary",
|
|
349
|
+
children: (0, _lang.getLocale)('Submit')
|
|
350
|
+
})]
|
|
351
|
+
})]
|
|
352
|
+
});
|
|
327
353
|
}
|
|
328
354
|
}
|
|
329
355
|
var _default = exports.default = LocationEditor;
|