dtable-ui-component 6.0.48 → 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.css +0 -5
- 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.css +0 -1
- 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.css +6 -7
- 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 +100 -75
- 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 +51 -32
- 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 +133 -115
- 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 +25 -22
- 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
|
@@ -12,6 +12,7 @@ var _FileItemFormatter = _interopRequireDefault(require("../FileItemFormatter"))
|
|
|
12
12
|
var _ImagePreviewerLightbox = _interopRequireDefault(require("../ImagePreviewerLightbox"));
|
|
13
13
|
var _url = require("../utils/url");
|
|
14
14
|
require("./index.css");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
const FileFormatter = _ref => {
|
|
16
17
|
let {
|
|
17
18
|
isSample = false,
|
|
@@ -79,42 +80,45 @@ const FileFormatter = _ref => {
|
|
|
79
80
|
}
|
|
80
81
|
if (isSample) {
|
|
81
82
|
const item = value[0];
|
|
82
|
-
return /*#__PURE__*/
|
|
83
|
-
className: className
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
91
|
-
className: className
|
|
92
|
-
}, value.map((item, index) => {
|
|
93
|
-
const dom = /*#__PURE__*/_react.default.createElement(_FileItemFormatter.default, {
|
|
94
|
-
openFile: openFile,
|
|
95
|
-
file: item,
|
|
96
|
-
config: {
|
|
97
|
-
server,
|
|
98
|
-
dtableUuid,
|
|
99
|
-
workspaceID
|
|
100
|
-
}
|
|
83
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
84
|
+
className: className,
|
|
85
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_FileItemFormatter.default, {
|
|
86
|
+
file: item
|
|
87
|
+
}), value.length !== 1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
88
|
+
className: "file-item-count",
|
|
89
|
+
children: "+".concat(value.length)
|
|
90
|
+
})]
|
|
101
91
|
});
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
92
|
+
}
|
|
93
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
94
|
+
className: className,
|
|
95
|
+
children: [value.map((item, index) => {
|
|
96
|
+
const dom = /*#__PURE__*/(0, _jsxRuntime.jsx)(_FileItemFormatter.default, {
|
|
97
|
+
openFile: openFile,
|
|
98
|
+
file: item,
|
|
99
|
+
config: {
|
|
100
|
+
server,
|
|
101
|
+
dtableUuid,
|
|
102
|
+
workspaceID
|
|
103
|
+
}
|
|
104
|
+
});
|
|
105
|
+
if (renderItem) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
106
|
+
children: renderItem(dom)
|
|
107
|
+
}, index);
|
|
108
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_react.Fragment, {
|
|
109
|
+
children: dom
|
|
110
|
+
}, index);
|
|
111
|
+
}), largeImageIndex > -1 && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImagePreviewerLightbox.default, {
|
|
112
|
+
server: server,
|
|
113
|
+
workspaceID: workspaceID,
|
|
114
|
+
dtableUuid: dtableUuid,
|
|
115
|
+
readOnly: true,
|
|
116
|
+
imageItems: fileImageUrlList,
|
|
117
|
+
imageIndex: largeImageIndex,
|
|
118
|
+
closeImagePopup: hideLargeImage,
|
|
119
|
+
moveToPrevImage: movePrev,
|
|
120
|
+
moveToNextImage: moveNext
|
|
121
|
+
})]
|
|
122
|
+
});
|
|
119
123
|
};
|
|
120
124
|
var _default = exports.default = FileFormatter;
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _url = require("../utils/url");
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
const FileItemFormatter = _ref => {
|
|
11
12
|
let {
|
|
12
13
|
file,
|
|
@@ -17,7 +18,7 @@ const FileItemFormatter = _ref => {
|
|
|
17
18
|
fileIconUrl,
|
|
18
19
|
isImage
|
|
19
20
|
} = (0, _url.getFileThumbnailInfo)(file, config);
|
|
20
|
-
return /*#__PURE__*/
|
|
21
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
21
22
|
onClick: () => openFile && openFile(file),
|
|
22
23
|
className: "file-item-icon ".concat(isImage ? 'img' : ''),
|
|
23
24
|
src: fileIconUrl,
|
|
@@ -11,6 +11,7 @@ var _utc = _interopRequireDefault(require("dayjs/plugin/utc"));
|
|
|
11
11
|
var _getEventTransfer = _interopRequireDefault(require("../utils/get-event-transfer"));
|
|
12
12
|
var _url = require("../utils/url");
|
|
13
13
|
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
_dayjs.default.extend(_utc.default);
|
|
15
16
|
const MAX_UPLOAD_FILES = 10;
|
|
16
17
|
class FileUploader extends _react.default.Component {
|
|
@@ -252,7 +253,7 @@ class FileUploader extends _react.default.Component {
|
|
|
252
253
|
const {
|
|
253
254
|
uploadType
|
|
254
255
|
} = this.props;
|
|
255
|
-
return /*#__PURE__*/
|
|
256
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
256
257
|
onDragEnter: this.onDragEnter,
|
|
257
258
|
onDragOver: this.onDragOver,
|
|
258
259
|
onDragLeave: this.onDragLeave,
|
|
@@ -261,25 +262,26 @@ class FileUploader extends _react.default.Component {
|
|
|
261
262
|
onMouseEnter: this.onMouseEnter,
|
|
262
263
|
onMouseLeave: this.onMouseLeave,
|
|
263
264
|
onClick: this.uploadFileClick,
|
|
264
|
-
className: this.props.className
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
265
|
+
className: this.props.className,
|
|
266
|
+
children: [this.props.children, uploadType === 'file' && /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
267
|
+
type: "file",
|
|
268
|
+
className: "dtable-ui-upload-image",
|
|
269
|
+
ref: ref => this.uploadFileRef = ref,
|
|
270
|
+
onClick: this.onInputFile,
|
|
271
|
+
onChange: this.uploadFilesChange,
|
|
272
|
+
value: "",
|
|
273
|
+
multiple: true
|
|
274
|
+
}), uploadType === 'image' && /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
275
|
+
type: "file",
|
|
276
|
+
className: "dtable-ui-upload-image",
|
|
277
|
+
accept: "image/*",
|
|
278
|
+
ref: ref => this.uploadFileRef = ref,
|
|
279
|
+
onClick: this.onInputFile,
|
|
280
|
+
onChange: this.uploadFilesChange,
|
|
281
|
+
value: "",
|
|
282
|
+
multiple: true
|
|
283
|
+
})]
|
|
284
|
+
});
|
|
283
285
|
}
|
|
284
286
|
}
|
|
285
287
|
var _default = exports.default = FileUploader;
|
|
@@ -13,6 +13,7 @@ var _utils = require("./utils");
|
|
|
13
13
|
var _utils2 = require("../utils/utils");
|
|
14
14
|
var _cellValueValidator = _interopRequireDefault(require("./cell-value-validator"));
|
|
15
15
|
require("./index.css");
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
class FormulaFormatter extends _react.default.Component {
|
|
17
18
|
constructor() {
|
|
18
19
|
super(...arguments);
|
|
@@ -34,11 +35,12 @@ class FormulaFormatter extends _react.default.Component {
|
|
|
34
35
|
containerClassName
|
|
35
36
|
} = this.props;
|
|
36
37
|
const gridCellClassName = this.getGridCellClassName(resultType);
|
|
37
|
-
return /*#__PURE__*/
|
|
38
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
38
39
|
className: "dtable-ui cell-formatter-container formula-formatter ".concat(containerClassName, " ").concat(gridCellClassName),
|
|
39
40
|
title: cellValue,
|
|
40
|
-
"aria-label": cellValue
|
|
41
|
-
|
|
41
|
+
"aria-label": cellValue,
|
|
42
|
+
children: cellValue
|
|
43
|
+
});
|
|
42
44
|
};
|
|
43
45
|
this.renderInternalErrorValue = (errorValue, resultType) => {
|
|
44
46
|
return this.renderCellValue(errorValue, resultType);
|
|
@@ -71,15 +73,16 @@ class FormulaFormatter extends _react.default.Component {
|
|
|
71
73
|
cellValue = (0, _cellValueValidator.default)(value, array_type) ? [value] : [];
|
|
72
74
|
}
|
|
73
75
|
const contentItemClassName = "formula-formatter-content-item ".concat(_isSimpleCellFormatterColumn ? 'simple-cell-formatter' : '');
|
|
74
|
-
return /*#__PURE__*/
|
|
75
|
-
className: "dtable-ui formula-formatter multiple"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
76
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
77
|
+
className: "dtable-ui formula-formatter multiple",
|
|
78
|
+
children: cellValue.map((v, index) => {
|
|
79
|
+
formatterProps.value = v;
|
|
80
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
81
|
+
className: contentItemClassName,
|
|
82
|
+
children: this.createColumnFormatter(Formatter, formatterProps)
|
|
83
|
+
}, "formula-formatter-content-item-".concat(index));
|
|
84
|
+
})
|
|
85
|
+
});
|
|
83
86
|
};
|
|
84
87
|
this.getFormatterProps = (array_type, array_data, collaborators) => {
|
|
85
88
|
switch (array_type) {
|
|
@@ -116,9 +119,13 @@ class FormulaFormatter extends _react.default.Component {
|
|
|
116
119
|
...formatterProps
|
|
117
120
|
});
|
|
118
121
|
} else if ((0, _utils2.isFunction)(Formatter)) {
|
|
119
|
-
return /*#__PURE__*/
|
|
122
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Formatter, {
|
|
123
|
+
...formatterProps
|
|
124
|
+
});
|
|
120
125
|
}
|
|
121
|
-
return /*#__PURE__*/
|
|
126
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextFormatter.default, {
|
|
127
|
+
...formatterProps
|
|
128
|
+
});
|
|
122
129
|
}
|
|
123
130
|
render() {
|
|
124
131
|
const {
|
|
@@ -10,6 +10,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _reactResponsive = _interopRequireDefault(require("react-responsive"));
|
|
11
11
|
var _pcEditor = _interopRequireDefault(require("./pc-editor"));
|
|
12
12
|
var _mbEditor = _interopRequireDefault(require("./mb-editor"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const GeolocationEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
14
15
|
let {
|
|
15
16
|
isMobile,
|
|
@@ -71,32 +72,40 @@ const GeolocationEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
|
71
72
|
return data;
|
|
72
73
|
});
|
|
73
74
|
}, [config]);
|
|
74
|
-
if (isMobile === false) return /*#__PURE__*/
|
|
75
|
+
if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
76
|
+
...props,
|
|
75
77
|
config: config,
|
|
76
78
|
getLocationData: getLocationData,
|
|
77
79
|
getCountryData: getCountryData,
|
|
78
80
|
ref: ref
|
|
79
|
-
})
|
|
80
|
-
if (isMobile === true) return /*#__PURE__*/
|
|
81
|
+
});
|
|
82
|
+
if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
83
|
+
...props,
|
|
81
84
|
config: config,
|
|
82
85
|
getLocationData: getLocationData,
|
|
83
86
|
getCountryData: getCountryData,
|
|
84
87
|
ref: ref
|
|
85
|
-
})
|
|
86
|
-
return /*#__PURE__*/
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
88
|
+
});
|
|
89
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
90
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
91
|
+
query: "(min-width: 768px)",
|
|
92
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
93
|
+
...props,
|
|
94
|
+
config: config,
|
|
95
|
+
getLocationData: getLocationData,
|
|
96
|
+
getCountryData: getCountryData,
|
|
97
|
+
ref: ref
|
|
98
|
+
})
|
|
99
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
100
|
+
query: "(max-width: 768px)",
|
|
101
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
102
|
+
...props,
|
|
103
|
+
config: config,
|
|
104
|
+
getLocationData: getLocationData,
|
|
105
|
+
getCountryData: getCountryData,
|
|
106
|
+
ref: ref
|
|
107
|
+
})
|
|
108
|
+
})]
|
|
109
|
+
});
|
|
101
110
|
});
|
|
102
111
|
var _default = exports.default = GeolocationEditor;
|
|
@@ -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
|
|
@@ -48,32 +49,46 @@ const CountryEditor = _ref => {
|
|
|
48
49
|
}
|
|
49
50
|
onToggle();
|
|
50
51
|
}, [value, oldValue, onCommit, onToggle]);
|
|
51
|
-
return /*#__PURE__*/
|
|
52
|
-
onClose: onToggle
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
52
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
|
|
53
|
+
onClose: onToggle,
|
|
54
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
|
|
55
|
+
onLeftClick: onToggle,
|
|
56
|
+
onRightClick: onSubmit,
|
|
57
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
58
|
+
children: (0, _lang.getLocale)('Cancel')
|
|
59
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
60
|
+
children: column.name
|
|
61
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
62
|
+
style: {
|
|
63
|
+
color: '#f09f3f'
|
|
64
|
+
},
|
|
65
|
+
children: (0, _lang.getLocale)('Submit')
|
|
66
|
+
})]
|
|
67
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Body, {
|
|
68
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
69
|
+
className: "dtable-ui-mobile-row-expand-subtitle",
|
|
70
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
71
|
+
children: (0, _lang.getLocale)('Address_information')
|
|
72
|
+
})
|
|
73
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Picker.default, {
|
|
74
|
+
className: "dtable-ui-mobile-geolocation-editor-picker",
|
|
75
|
+
data: isLoading ? [] : locations.current,
|
|
76
|
+
value: value,
|
|
77
|
+
format: "",
|
|
78
|
+
onChange: onValueChange,
|
|
79
|
+
cascade: true,
|
|
80
|
+
title: (0, _lang.getLocale)('Address_information'),
|
|
81
|
+
extra: (0, _lang.getLocale)('Select_location'),
|
|
82
|
+
onOk: e => onValueChange(e),
|
|
83
|
+
okText: (0, _lang.getLocale)('Done'),
|
|
84
|
+
dismissText: (0, _lang.getLocale)('Cancel'),
|
|
85
|
+
cols: 2,
|
|
86
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_List.default.Item, {
|
|
87
|
+
arrow: "horizontal",
|
|
88
|
+
children: value[1] || (0, _lang.getLocale)('Select_location')
|
|
89
|
+
})
|
|
90
|
+
})]
|
|
91
|
+
})]
|
|
92
|
+
});
|
|
78
93
|
};
|
|
79
94
|
var _default = exports.default = CountryEditor;
|
|
@@ -15,6 +15,7 @@ var _locationEditor = _interopRequireDefault(require("./location-editor"));
|
|
|
15
15
|
var _mapEditor = _interopRequireDefault(require("./map-editor"));
|
|
16
16
|
var _mapSelectionEditor = _interopRequireDefault(require("./map-selection-editor"));
|
|
17
17
|
require("./index.css");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
const transLocationData = data => {
|
|
19
20
|
if (Object.prototype.toString.call(data) === '[object Object]') {
|
|
20
21
|
const name = data.name;
|
|
@@ -72,53 +73,60 @@ const MBGeolocationEditor = _ref => {
|
|
|
72
73
|
switch (format) {
|
|
73
74
|
case _dtableUtils.GEOLOCATION_FORMAT.LNG_LAT:
|
|
74
75
|
{
|
|
75
|
-
return /*#__PURE__*/
|
|
76
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mapEditor.default, {
|
|
77
|
+
...props,
|
|
76
78
|
config: config,
|
|
77
79
|
column: column
|
|
78
|
-
})
|
|
80
|
+
});
|
|
79
81
|
}
|
|
80
82
|
case _dtableUtils.GEOLOCATION_FORMAT.MAP_SELECTION:
|
|
81
83
|
{
|
|
82
|
-
return /*#__PURE__*/
|
|
84
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mapSelectionEditor.default, {
|
|
85
|
+
...props,
|
|
83
86
|
config: config,
|
|
84
87
|
column: column
|
|
85
|
-
})
|
|
88
|
+
});
|
|
86
89
|
}
|
|
87
90
|
case _dtableUtils.GEOLOCATION_FORMAT.COUNTRY_REGION:
|
|
88
91
|
{
|
|
89
|
-
return /*#__PURE__*/
|
|
92
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_countryEditor.default, {
|
|
93
|
+
...props,
|
|
90
94
|
getData: _getCountryData,
|
|
91
95
|
column: column
|
|
92
|
-
})
|
|
96
|
+
});
|
|
93
97
|
}
|
|
94
98
|
case _dtableUtils.GEOLOCATION_FORMAT.PROVINCE:
|
|
95
99
|
{
|
|
96
|
-
return /*#__PURE__*/
|
|
100
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_provinceEditor.default, {
|
|
101
|
+
...props,
|
|
97
102
|
getData: getData,
|
|
98
103
|
column: column
|
|
99
|
-
})
|
|
104
|
+
});
|
|
100
105
|
}
|
|
101
106
|
case _dtableUtils.GEOLOCATION_FORMAT.PROVINCE_CITY:
|
|
102
107
|
{
|
|
103
|
-
return /*#__PURE__*/
|
|
108
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_provinceCityEditor.default, {
|
|
109
|
+
...props,
|
|
104
110
|
getData: getData,
|
|
105
111
|
column: column
|
|
106
|
-
})
|
|
112
|
+
});
|
|
107
113
|
}
|
|
108
114
|
case _dtableUtils.GEOLOCATION_FORMAT.PROVINCE_CITY_DISTRICT:
|
|
109
115
|
{
|
|
110
|
-
return /*#__PURE__*/
|
|
116
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_locationEditor.default, {
|
|
117
|
+
...props,
|
|
111
118
|
getData: getData,
|
|
112
119
|
column: column
|
|
113
|
-
})
|
|
120
|
+
});
|
|
114
121
|
}
|
|
115
122
|
default:
|
|
116
123
|
{
|
|
117
|
-
return /*#__PURE__*/
|
|
124
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_locationEditor.default, {
|
|
125
|
+
...props,
|
|
118
126
|
isShowDetails: true,
|
|
119
127
|
getData: getData,
|
|
120
128
|
column: column
|
|
121
|
-
})
|
|
129
|
+
});
|
|
122
130
|
}
|
|
123
131
|
}
|
|
124
132
|
};
|
|
@@ -13,6 +13,7 @@ var _List = _interopRequireDefault(require("../../List"));
|
|
|
13
13
|
var _MobileFullScreenPage = _interopRequireDefault(require("../../MobileFullScreenPage"));
|
|
14
14
|
var _lang = require("../../lang");
|
|
15
15
|
var _objectUtils = _interopRequireDefault(require("../../utils/object-utils"));
|
|
16
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
17
|
const {
|
|
17
18
|
Header,
|
|
18
19
|
Body
|
|
@@ -63,39 +64,58 @@ const LocationEditor = _ref => {
|
|
|
63
64
|
}
|
|
64
65
|
onToggle();
|
|
65
66
|
}, [isShowDetails, value, oldValue, onCommit, onToggle]);
|
|
66
|
-
return /*#__PURE__*/
|
|
67
|
-
onToggle: onToggle
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
67
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileFullScreenPage.default, {
|
|
68
|
+
onToggle: onToggle,
|
|
69
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(Header, {
|
|
70
|
+
onLeftClick: onToggle,
|
|
71
|
+
onRightClick: onSubmit,
|
|
72
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
73
|
+
children: (0, _lang.getLocale)('Cancel')
|
|
74
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_jsxRuntime.Fragment, {
|
|
75
|
+
children: column.name
|
|
76
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
77
|
+
style: {
|
|
78
|
+
color: '#f09f3f'
|
|
79
|
+
},
|
|
80
|
+
children: (0, _lang.getLocale)('Submit')
|
|
81
|
+
})]
|
|
82
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Body, {
|
|
83
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
84
|
+
className: "dtable-ui-mobile-row-expand-subtitle",
|
|
85
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
86
|
+
children: (0, _lang.getLocale)('Address_information')
|
|
87
|
+
})
|
|
88
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Picker.default, {
|
|
89
|
+
className: "dtable-ui-mobile-geolocation-editor-picker",
|
|
90
|
+
data: isLoading ? [] : locations.current,
|
|
91
|
+
value: value.slice(0, 3),
|
|
92
|
+
format: "",
|
|
93
|
+
onChange: onValueChange,
|
|
94
|
+
cascade: true,
|
|
95
|
+
title: (0, _lang.getLocale)('Address_information'),
|
|
96
|
+
extra: (0, _lang.getLocale)('Select_location'),
|
|
97
|
+
onOk: e => onValueChange(e),
|
|
98
|
+
okText: (0, _lang.getLocale)('Done'),
|
|
99
|
+
dismissText: (0, _lang.getLocale)('Cancel'),
|
|
100
|
+
cols: 3,
|
|
101
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_List.default.Item, {
|
|
102
|
+
arrow: "horizontal",
|
|
103
|
+
children: value.slice(0, 3).join(' ') || (0, _lang.getLocale)('Select_location')
|
|
104
|
+
})
|
|
105
|
+
}), isShowDetails && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
106
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
107
|
+
className: "dtable-ui-mobile-row-expand-subtitle",
|
|
108
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
109
|
+
children: (0, _lang.getLocale)('Detailed_address')
|
|
110
|
+
})
|
|
111
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_InputItem.default, {
|
|
112
|
+
placeholder: (0, _lang.getLocale)('Detailed_address_placeholder'),
|
|
113
|
+
value: value[3],
|
|
114
|
+
onChange: onAddressChange,
|
|
115
|
+
moneyKeyboardAlign: "left"
|
|
116
|
+
})]
|
|
117
|
+
})]
|
|
118
|
+
})]
|
|
119
|
+
});
|
|
100
120
|
};
|
|
101
121
|
var _default = exports.default = LocationEditor;
|