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
|
@@ -29,29 +29,30 @@ var _DurationFormatter = _interopRequireDefault(require("../DurationFormatter"))
|
|
|
29
29
|
var _RateFormatter = _interopRequireDefault(require("../RateFormatter"));
|
|
30
30
|
var _ButtonFormatter = _interopRequireDefault(require("../ButtonFormatter"));
|
|
31
31
|
var _DepartmentSingleSelectFormatter = _interopRequireDefault(require("../DepartmentSingleSelectFormatter"));
|
|
32
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
32
33
|
const BaseFormatterConfig = {
|
|
33
|
-
[_dtableUtils.CellType.DEFAULT]: /*#__PURE__*/
|
|
34
|
-
[_dtableUtils.CellType.TEXT]: /*#__PURE__*/
|
|
35
|
-
[_dtableUtils.CellType.CHECKBOX]: /*#__PURE__*/
|
|
36
|
-
[_dtableUtils.CellType.LONG_TEXT]: /*#__PURE__*/
|
|
37
|
-
[_dtableUtils.CellType.SINGLE_SELECT]: /*#__PURE__*/
|
|
38
|
-
[_dtableUtils.CellType.IMAGE]: /*#__PURE__*/
|
|
39
|
-
[_dtableUtils.CellType.FILE]: /*#__PURE__*/
|
|
40
|
-
[_dtableUtils.CellType.MULTIPLE_SELECT]: /*#__PURE__*/
|
|
41
|
-
[_dtableUtils.CellType.COLLABORATOR]: /*#__PURE__*/
|
|
42
|
-
[_dtableUtils.CellType.NUMBER]: /*#__PURE__*/
|
|
43
|
-
[_dtableUtils.CellType.DATE]: /*#__PURE__*/
|
|
44
|
-
[_dtableUtils.CellType.CREATOR]: /*#__PURE__*/
|
|
45
|
-
[_dtableUtils.CellType.CTIME]: /*#__PURE__*/
|
|
46
|
-
[_dtableUtils.CellType.LAST_MODIFIER]: /*#__PURE__*/
|
|
47
|
-
[_dtableUtils.CellType.MTIME]: /*#__PURE__*/
|
|
48
|
-
[_dtableUtils.CellType.GEOLOCATION]: /*#__PURE__*/
|
|
49
|
-
[_dtableUtils.CellType.AUTO_NUMBER]: /*#__PURE__*/
|
|
50
|
-
[_dtableUtils.CellType.URL]: /*#__PURE__*/
|
|
51
|
-
[_dtableUtils.CellType.EMAIL]: /*#__PURE__*/
|
|
52
|
-
[_dtableUtils.CellType.DURATION]: /*#__PURE__*/
|
|
53
|
-
[_dtableUtils.CellType.RATE]: /*#__PURE__*/
|
|
54
|
-
[_dtableUtils.CellType.BUTTON]: /*#__PURE__*/
|
|
55
|
-
[_dtableUtils.CellType.DEPARTMENT_SINGLE_SELECT]: /*#__PURE__*/
|
|
34
|
+
[_dtableUtils.CellType.DEFAULT]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextFormatter.default, {}),
|
|
35
|
+
[_dtableUtils.CellType.TEXT]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_TextFormatter.default, {}),
|
|
36
|
+
[_dtableUtils.CellType.CHECKBOX]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CheckboxFormatter.default, {}),
|
|
37
|
+
[_dtableUtils.CellType.LONG_TEXT]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SimpleLongTextFormatter.default, {}),
|
|
38
|
+
[_dtableUtils.CellType.SINGLE_SELECT]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SingleSelectFormatter.default, {}),
|
|
39
|
+
[_dtableUtils.CellType.IMAGE]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ImageFormatter.default, {}),
|
|
40
|
+
[_dtableUtils.CellType.FILE]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FileFormatter.default, {}),
|
|
41
|
+
[_dtableUtils.CellType.MULTIPLE_SELECT]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MultipleSelectFormatter.default, {}),
|
|
42
|
+
[_dtableUtils.CellType.COLLABORATOR]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CollaboratorFormatter.default, {}),
|
|
43
|
+
[_dtableUtils.CellType.NUMBER]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_NumberFormatter.default, {}),
|
|
44
|
+
[_dtableUtils.CellType.DATE]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DateFormatter.default, {}),
|
|
45
|
+
[_dtableUtils.CellType.CREATOR]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CreatorFormatter.default, {}),
|
|
46
|
+
[_dtableUtils.CellType.CTIME]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_CTimeFormatter.default, {}),
|
|
47
|
+
[_dtableUtils.CellType.LAST_MODIFIER]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_LastModifierFormatter.default, {}),
|
|
48
|
+
[_dtableUtils.CellType.MTIME]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_MTimeFormatter.default, {}),
|
|
49
|
+
[_dtableUtils.CellType.GEOLOCATION]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_GeolocationFormatter.default, {}),
|
|
50
|
+
[_dtableUtils.CellType.AUTO_NUMBER]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_AutoNumberFormatter.default, {}),
|
|
51
|
+
[_dtableUtils.CellType.URL]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_UrlFormatter.default, {}),
|
|
52
|
+
[_dtableUtils.CellType.EMAIL]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_EmailFormatter.default, {}),
|
|
53
|
+
[_dtableUtils.CellType.DURATION]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DurationFormatter.default, {}),
|
|
54
|
+
[_dtableUtils.CellType.RATE]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_RateFormatter.default, {}),
|
|
55
|
+
[_dtableUtils.CellType.BUTTON]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_ButtonFormatter.default, {}),
|
|
56
|
+
[_dtableUtils.CellType.DEPARTMENT_SINGLE_SELECT]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DepartmentSingleSelectFormatter.default, {})
|
|
56
57
|
};
|
|
57
58
|
var _default = exports.default = BaseFormatterConfig;
|
|
@@ -10,9 +10,10 @@ var _dtableUtils = require("dtable-utils");
|
|
|
10
10
|
var _baseFormatterConfig = _interopRequireDefault(require("./base-formatter-config"));
|
|
11
11
|
var _LinkFormatter = _interopRequireDefault(require("../LinkFormatter"));
|
|
12
12
|
var _FormulaFormatter = _interopRequireDefault(require("../FormulaFormatter"));
|
|
13
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
14
|
const FormatterConfig = {
|
|
14
15
|
..._baseFormatterConfig.default,
|
|
15
|
-
[_dtableUtils.CellType.FORMULA]: /*#__PURE__*/
|
|
16
|
-
[_dtableUtils.CellType.LINK]: /*#__PURE__*/
|
|
16
|
+
[_dtableUtils.CellType.FORMULA]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_FormulaFormatter.default, {}),
|
|
17
|
+
[_dtableUtils.CellType.LINK]: /*#__PURE__*/(0, _jsxRuntime.jsx)(_LinkFormatter.default, {})
|
|
17
18
|
};
|
|
18
19
|
var _default = exports.default = FormatterConfig;
|
package/lib/index.js
CHANGED
|
@@ -16,6 +16,12 @@ Object.defineProperty(exports, "ActivityIndicator", {
|
|
|
16
16
|
return _ActivityIndicator.default;
|
|
17
17
|
}
|
|
18
18
|
});
|
|
19
|
+
Object.defineProperty(exports, "AsyncUserSelect", {
|
|
20
|
+
enumerable: true,
|
|
21
|
+
get: function () {
|
|
22
|
+
return _AsyncUserSelect.default;
|
|
23
|
+
}
|
|
24
|
+
});
|
|
19
25
|
Object.defineProperty(exports, "AutoNumberFormatter", {
|
|
20
26
|
enumerable: true,
|
|
21
27
|
get: function () {
|
|
@@ -690,6 +696,7 @@ var _DTableEmptyTip = _interopRequireDefault(require("./DTableEmptyTip"));
|
|
|
690
696
|
var _IconButton = _interopRequireDefault(require("./IconButton"));
|
|
691
697
|
var _UploadProgress = _interopRequireDefault(require("./UploadProgress"));
|
|
692
698
|
var _SvgIcon = _interopRequireDefault(require("./SvgIcon"));
|
|
699
|
+
var _AsyncUserSelect = _interopRequireDefault(require("./AsyncUserSelect"));
|
|
693
700
|
var _ActionSheet = _interopRequireDefault(require("./ActionSheet"));
|
|
694
701
|
var _ActivityIndicator = _interopRequireDefault(require("./ActivityIndicator"));
|
|
695
702
|
var _DatePicker = _interopRequireDefault(require("./DatePicker"));
|
package/lib/locales/de.json
CHANGED
|
@@ -172,5 +172,9 @@
|
|
|
172
172
|
"Latitude_abbr": "Breite",
|
|
173
173
|
"Longitude_abbr": "Länge",
|
|
174
174
|
"Latitude": "Breitengrad",
|
|
175
|
-
"Longitude": "Längengrad"
|
|
175
|
+
"Longitude": "Längengrad",
|
|
176
|
+
"Search_users": "Benutzer suchen",
|
|
177
|
+
"User_not_found": "Der Benutzer wurde nicht gefunden.",
|
|
178
|
+
"Enter_characters_to_start_searching": "Geben Sie Zeichen ein, um die Suche zu starten.",
|
|
179
|
+
"Remove": "Entfernen"
|
|
176
180
|
}
|
package/lib/locales/en.json
CHANGED
|
@@ -172,5 +172,9 @@
|
|
|
172
172
|
"Latitude_abbr": "Lat",
|
|
173
173
|
"Longitude_abbr": "Lng",
|
|
174
174
|
"Latitude": "Latitude",
|
|
175
|
-
"Longitude": "Longitude"
|
|
175
|
+
"Longitude": "Longitude",
|
|
176
|
+
"Search_users": "Search users",
|
|
177
|
+
"User_not_found": "User not found",
|
|
178
|
+
"Enter_characters_to_start_searching": "Enter characters to start searching",
|
|
179
|
+
"Remove": "Remove"
|
|
176
180
|
}
|
package/lib/locales/es.json
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"Add_filter": "Añadir filtro",
|
|
27
27
|
"And": "Y",
|
|
28
28
|
"Or": "O",
|
|
29
|
-
"Add_filter_group": "Añadir grupo de filtros",
|
|
29
|
+
"Add_filter_group": "Añadir grupo de filtros",
|
|
30
30
|
"Click_to_add_filter": "Haz clic para añadir filtro",
|
|
31
31
|
"Click_to_input_value": "Haz clic para introducir valor",
|
|
32
32
|
"Submit": "Enviar",
|
|
@@ -172,5 +172,9 @@
|
|
|
172
172
|
"Latitude_abbr": "Lat",
|
|
173
173
|
"Longitude_abbr": "Lng",
|
|
174
174
|
"Latitude": "Latitude",
|
|
175
|
-
"Longitude": "Longitude"
|
|
175
|
+
"Longitude": "Longitude",
|
|
176
|
+
"Search_users": "Buscar usuarios",
|
|
177
|
+
"User_not_found": "Usuario no encontrado",
|
|
178
|
+
"Enter_characters_to_start_searching": "Escribe algunos caracteres para empezar la búsqueda",
|
|
179
|
+
"Remove": "Eliminar"
|
|
176
180
|
}
|
package/lib/locales/fr.json
CHANGED
|
@@ -172,5 +172,9 @@
|
|
|
172
172
|
"Latitude_abbr": "Lat",
|
|
173
173
|
"Longitude_abbr": "Lng",
|
|
174
174
|
"Latitude": "Latitude",
|
|
175
|
-
"Longitude": "Longitude"
|
|
175
|
+
"Longitude": "Longitude",
|
|
176
|
+
"Search_users": "Rechercher les utilisateurs",
|
|
177
|
+
"User_not_found": "L'utilisateur n'a pas pu être trouvé.",
|
|
178
|
+
"Enter_characters_to_start_searching": "Entrez pour lancer la recherche.",
|
|
179
|
+
"Remove": "Supprimer"
|
|
176
180
|
}
|
package/lib/locales/pt.json
CHANGED
|
@@ -172,5 +172,9 @@
|
|
|
172
172
|
"Latitude_abbr": "Lat",
|
|
173
173
|
"Longitude_abbr": "Lng",
|
|
174
174
|
"Latitude": "Latitude",
|
|
175
|
-
"Longitude": "Longitude"
|
|
175
|
+
"Longitude": "Longitude",
|
|
176
|
+
"Search_users": "Pesquise usuários",
|
|
177
|
+
"User_not_found": "Usuário não encontrado",
|
|
178
|
+
"Enter_characters_to_start_searching": "Insira os caracteres para começar a pesquisar",
|
|
179
|
+
"Remove": "Remover"
|
|
176
180
|
}
|
package/lib/locales/ru.json
CHANGED
|
@@ -172,5 +172,9 @@
|
|
|
172
172
|
"Latitude_abbr": "Lat",
|
|
173
173
|
"Longitude_abbr": "Lng",
|
|
174
174
|
"Latitude": "Latitude",
|
|
175
|
-
"Longitude": "Longitude"
|
|
175
|
+
"Longitude": "Longitude",
|
|
176
|
+
"Search_users": "Поиск пользователей",
|
|
177
|
+
"User_not_found": "Пользователь не найден",
|
|
178
|
+
"Enter_characters_to_start_searching": "Введите символы для начала поиска",
|
|
179
|
+
"Remove": "Удалять"
|
|
176
180
|
}
|
package/lib/locales/zh-CN.json
CHANGED
|
@@ -172,5 +172,9 @@
|
|
|
172
172
|
"Latitude_abbr": "纬度",
|
|
173
173
|
"Longitude_abbr": "经度",
|
|
174
174
|
"Latitude": "纬度",
|
|
175
|
-
"Longitude": "经度"
|
|
175
|
+
"Longitude": "经度",
|
|
176
|
+
"Search_users": "搜索用户",
|
|
177
|
+
"User_not_found": "未找到用户",
|
|
178
|
+
"Enter_characters_to_start_searching": "输入字符以开始搜索",
|
|
179
|
+
"Remove": "删除"
|
|
176
180
|
}
|
|
@@ -10,25 +10,34 @@ 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 SelectEditor = /*#__PURE__*/(0, _react.forwardRef)((_ref, ref) => {
|
|
14
15
|
let {
|
|
15
16
|
isMobile,
|
|
16
17
|
...props
|
|
17
18
|
} = _ref;
|
|
18
|
-
if (isMobile === false) return /*#__PURE__*/
|
|
19
|
+
if (isMobile === false) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
20
|
+
...props,
|
|
19
21
|
ref: ref
|
|
20
|
-
})
|
|
21
|
-
if (isMobile === true) return /*#__PURE__*/
|
|
22
|
+
});
|
|
23
|
+
if (isMobile === true) return /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
24
|
+
...props,
|
|
22
25
|
ref: ref
|
|
23
|
-
})
|
|
24
|
-
return /*#__PURE__*/
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
26
|
+
});
|
|
27
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
28
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
29
|
+
query: "(min-width: 768px)",
|
|
30
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_pcEditor.default, {
|
|
31
|
+
...props,
|
|
32
|
+
ref: ref
|
|
33
|
+
})
|
|
34
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactResponsive.default, {
|
|
35
|
+
query: "(max-width: 768px)",
|
|
36
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_mbEditor.default, {
|
|
37
|
+
...props,
|
|
38
|
+
ref: ref
|
|
39
|
+
})
|
|
40
|
+
})]
|
|
41
|
+
});
|
|
33
42
|
});
|
|
34
43
|
var _default = exports.default = SelectEditor;
|
|
@@ -11,6 +11,7 @@ var _SelectItem = _interopRequireDefault(require("../../SelectItem"));
|
|
|
11
11
|
var _MobileSelector = _interopRequireDefault(require("../../MobileSelector"));
|
|
12
12
|
var _DTableCommonAddTool = _interopRequireDefault(require("../../DTableCommonAddTool"));
|
|
13
13
|
require("./index.css");
|
|
14
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
15
|
const {
|
|
15
16
|
Search,
|
|
16
17
|
Option,
|
|
@@ -57,13 +58,13 @@ class MBSelectEditor extends _react.default.Component {
|
|
|
57
58
|
} = this.props;
|
|
58
59
|
return options.map(option => {
|
|
59
60
|
const isSelected = value.includes(option[valueKey]);
|
|
60
|
-
return /*#__PURE__*/
|
|
61
|
-
key: option[valueKey],
|
|
61
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(Option, {
|
|
62
62
|
isSelected: isSelected,
|
|
63
|
-
onChange: this.onChange.bind(this, option)
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
63
|
+
onChange: this.onChange.bind(this, option),
|
|
64
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectItem.default, {
|
|
65
|
+
option: option
|
|
66
|
+
})
|
|
67
|
+
}, option[valueKey]);
|
|
67
68
|
});
|
|
68
69
|
};
|
|
69
70
|
this.state = {
|
|
@@ -82,18 +83,23 @@ class MBSelectEditor extends _react.default.Component {
|
|
|
82
83
|
} = this.state;
|
|
83
84
|
const displayOptions = this.getDisplayOptions();
|
|
84
85
|
const isShowCreateBtn = isSupportNewOption && onAddNewOption && !!searchVal && !options.find(item => item.name !== searchVal);
|
|
85
|
-
return /*#__PURE__*/
|
|
86
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_MobileSelector.default, {
|
|
86
87
|
onClose: this.props.onClose,
|
|
87
88
|
title: column.name,
|
|
88
|
-
className: "dtable-ui-mobile-select-editor"
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
89
|
+
className: "dtable-ui-mobile-select-editor",
|
|
90
|
+
children: [options.length > 10 && /*#__PURE__*/(0, _jsxRuntime.jsx)(Search, {
|
|
91
|
+
value: searchVal,
|
|
92
|
+
placeholder: (0, _lang.getLocale)('Search_option'),
|
|
93
|
+
onChange: this.onChangeSearch
|
|
94
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(Options, {
|
|
95
|
+
children: [displayOptions.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)(Empty, {
|
|
96
|
+
children: (0, _lang.getLocale)('No_options_available')
|
|
97
|
+
}), displayOptions.length > 0 && this.renderOptions(displayOptions), isShowCreateBtn && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCommonAddTool.default, {
|
|
98
|
+
footerName: (0, _lang.getLocale)('Add_option'),
|
|
99
|
+
callBack: this.onAddNewOption
|
|
100
|
+
})]
|
|
101
|
+
})]
|
|
102
|
+
});
|
|
97
103
|
}
|
|
98
104
|
}
|
|
99
105
|
MBSelectEditor.defaultProps = {
|
|
@@ -12,6 +12,7 @@ var _lang = require("../../lang");
|
|
|
12
12
|
var _DTableSearchInput = _interopRequireDefault(require("../../DTableSearchInput"));
|
|
13
13
|
var _constants = require("../../constants");
|
|
14
14
|
require("./index.css");
|
|
15
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
16
|
class PCSelectEditor extends _react.default.Component {
|
|
16
17
|
constructor(props) {
|
|
17
18
|
super(props);
|
|
@@ -218,71 +219,84 @@ class PCSelectEditor extends _react.default.Component {
|
|
|
218
219
|
// maxWidth = column.width > 200 ? column.width - 20 - 12 - 20 - 10 : 200 - 20 - 12 - 20 - 10
|
|
219
220
|
// maxWidth = column.width > 200 ? column.width - 62 : 200 - 62
|
|
220
221
|
let maxWidth = isInModal ? 250 : (column === null || column === void 0 ? void 0 : column.width) > 200 ? column.width - 62 : 138;
|
|
221
|
-
const dom = /*#__PURE__*/
|
|
222
|
+
const dom = /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
222
223
|
className: (0, _classnames.default)('dtable-ui-editor-container dtable-ui-select-editor-container', className, {
|
|
223
224
|
["".concat(classNamePrefix, "-select-editor-container")]: classNamePrefix
|
|
224
225
|
}),
|
|
225
|
-
ref: ref => this.ref = ref
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
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
|
-
|
|
226
|
+
ref: ref => this.ref = ref,
|
|
227
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
228
|
+
className: "select-options-search",
|
|
229
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableSearchInput.default, {
|
|
230
|
+
placeholder: (0, _lang.getLocale)('Search_option'),
|
|
231
|
+
onKeyDown: this.onKeyDown,
|
|
232
|
+
onChange: this.onValueChanged,
|
|
233
|
+
autoFocus: true
|
|
234
|
+
})
|
|
235
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
236
|
+
className: "select-dtable-ui-mobile-selector-options-container",
|
|
237
|
+
ref: ref => this.container = ref,
|
|
238
|
+
children: [this.filteredOptions.length > 0 && this.filteredOptions.map((option, index) => {
|
|
239
|
+
let optionStyle = this.getOptionStyle(option);
|
|
240
|
+
optionStyle = {
|
|
241
|
+
...optionStyle,
|
|
242
|
+
maxWidth
|
|
243
|
+
};
|
|
244
|
+
let isSelected = value.includes(option[valueKey]);
|
|
245
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
246
|
+
className: "select-option-item",
|
|
247
|
+
ref: ref => this.selectItem = ref,
|
|
248
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
249
|
+
className: (0, _classnames.default)('select-option-item-container', {
|
|
250
|
+
'select-option-item-container-highlight': index === highlightIndex
|
|
251
|
+
}),
|
|
252
|
+
onMouseDown: this.onChange.bind(this, option),
|
|
253
|
+
onMouseEnter: this.onMenuMouseEnter.bind(this, index),
|
|
254
|
+
onMouseLeave: this.onMenuMouseLeave.bind(this, index),
|
|
255
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
256
|
+
className: "option-info",
|
|
257
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
258
|
+
className: "option-name",
|
|
259
|
+
style: optionStyle,
|
|
260
|
+
title: option.name,
|
|
261
|
+
children: option.name
|
|
262
|
+
})
|
|
263
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
264
|
+
className: "option-checked",
|
|
265
|
+
children: isSelected && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
266
|
+
className: "dtable-font dtable-icon-check-mark"
|
|
267
|
+
})
|
|
268
|
+
})]
|
|
269
|
+
})
|
|
270
|
+
}, option.id);
|
|
271
|
+
}), this.filteredOptions.length === 0 && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
272
|
+
className: "dtable-ui-editor-no-search-result",
|
|
273
|
+
children: (0, _lang.getLocale)('No_options_available')
|
|
274
|
+
})]
|
|
275
|
+
}), isSupportNewOption && !!searchValue && /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
276
|
+
className: "select-options-add",
|
|
277
|
+
onClick: this.onAddNewOption,
|
|
278
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
279
|
+
className: "dtable-font dtable-icon-add-table"
|
|
280
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
281
|
+
children: [(0, _lang.getLocale)('Add_an_option'), ' ', searchValue]
|
|
282
|
+
})]
|
|
283
|
+
})]
|
|
284
|
+
});
|
|
273
285
|
if (isInModal) {
|
|
274
|
-
return /*#__PURE__*/
|
|
275
|
-
ref: ref => this.parent = ref
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
286
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
287
|
+
ref: ref => this.parent = ref,
|
|
288
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.Popover, {
|
|
289
|
+
placement: "bottom-start",
|
|
290
|
+
isOpen: true,
|
|
291
|
+
target: target,
|
|
292
|
+
hideArrow: true,
|
|
293
|
+
fade: false,
|
|
294
|
+
className: (0, _classnames.default)('dtable-ui dtable-ui-row-expand-select-editor-popover', {
|
|
295
|
+
["".concat(classNamePrefix, "-select-editor-popover")]: classNamePrefix
|
|
296
|
+
}),
|
|
297
|
+
children: dom
|
|
284
298
|
})
|
|
285
|
-
}
|
|
299
|
+
});
|
|
286
300
|
}
|
|
287
301
|
return dom;
|
|
288
302
|
}
|
package/lib/toaster/alert.js
CHANGED
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
9
10
|
class Alert extends _react.default.PureComponent {
|
|
10
11
|
getIconClass(intent) {
|
|
11
12
|
switch (intent) {
|
|
@@ -30,22 +31,30 @@ class Alert extends _react.default.PureComponent {
|
|
|
30
31
|
onRemove
|
|
31
32
|
} = this.props;
|
|
32
33
|
const iconClass = this.getIconClass(intent);
|
|
33
|
-
return /*#__PURE__*/
|
|
34
|
-
className: "dtable-toast-alert-container ".concat(intent || 'success')
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
34
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
35
|
+
className: "dtable-toast-alert-container ".concat(intent || 'success'),
|
|
36
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
37
|
+
className: "toast-alert-icon",
|
|
38
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
39
|
+
className: iconClass
|
|
40
|
+
})
|
|
41
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
42
|
+
className: "toast-text-container",
|
|
43
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
44
|
+
className: "toast-text-title",
|
|
45
|
+
children: title
|
|
46
|
+
}), children ? /*#__PURE__*/(0, _jsxRuntime.jsx)("p", {
|
|
47
|
+
className: "toast-text-child",
|
|
48
|
+
children: children
|
|
49
|
+
}) : null]
|
|
50
|
+
}), isRemovable && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
51
|
+
onClick: onRemove,
|
|
52
|
+
className: "toast-close",
|
|
53
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
54
|
+
children: "\xD7"
|
|
55
|
+
})
|
|
56
|
+
})]
|
|
57
|
+
});
|
|
49
58
|
}
|
|
50
59
|
}
|
|
51
60
|
var _default = exports.default = Alert;
|
package/lib/toaster/toast.js
CHANGED
|
@@ -8,6 +8,7 @@ exports.default = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _Transition = _interopRequireDefault(require("react-transition-group/Transition"));
|
|
10
10
|
var _alert = _interopRequireDefault(require("./alert"));
|
|
11
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
12
|
const ANIMATION_DURATION = 240;
|
|
12
13
|
class Toast extends _react.default.PureComponent {
|
|
13
14
|
constructor() {
|
|
@@ -75,33 +76,36 @@ class Toast extends _react.default.PureComponent {
|
|
|
75
76
|
this.clearCloseTimer();
|
|
76
77
|
}
|
|
77
78
|
render() {
|
|
78
|
-
return /*#__PURE__*/
|
|
79
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Transition.default, {
|
|
79
80
|
appear: true,
|
|
80
81
|
unmountOnExit: true,
|
|
81
82
|
timeout: ANIMATION_DURATION,
|
|
82
83
|
in: this.state.isShown,
|
|
83
|
-
onExited: this.props.onRemove
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
84
|
+
onExited: this.props.onRemove,
|
|
85
|
+
children: state => /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
86
|
+
"data-state": state,
|
|
87
|
+
className: "dtable-toast-container ".concat(state),
|
|
88
|
+
onMouseEnter: this.handleMouseEnter,
|
|
89
|
+
onMouseLeave: this.handleMouseLeave,
|
|
90
|
+
style: {
|
|
91
|
+
zIndex: this.props.zIndex
|
|
92
|
+
},
|
|
93
|
+
ref: this.containerRef,
|
|
94
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
95
|
+
ref: this.onRef,
|
|
96
|
+
style: {
|
|
97
|
+
padding: 8
|
|
98
|
+
},
|
|
99
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_alert.default, {
|
|
100
|
+
intent: this.props.intent,
|
|
101
|
+
title: this.props.title,
|
|
102
|
+
children: this.props.children || '',
|
|
103
|
+
isRemovable: this.props.hasCloseButton,
|
|
104
|
+
onRemove: event => this.close(event)
|
|
105
|
+
})
|
|
106
|
+
})
|
|
107
|
+
})
|
|
108
|
+
});
|
|
105
109
|
}
|
|
106
110
|
}
|
|
107
111
|
exports.default = Toast;
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.default = void 0;
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var _toast = _interopRequireDefault(require("./toast"));
|
|
10
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
10
11
|
const hasCustomId = settings => Object.hasOwnProperty.call(settings, 'id');
|
|
11
12
|
class ToastManager extends _react.default.PureComponent {
|
|
12
13
|
constructor(props, context) {
|
|
@@ -90,19 +91,21 @@ class ToastManager extends _react.default.PureComponent {
|
|
|
90
91
|
};
|
|
91
92
|
}
|
|
92
93
|
render() {
|
|
93
|
-
return /*#__PURE__*/
|
|
94
|
-
className: "dtable-toast-manager"
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
94
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
95
|
+
className: "dtable-toast-manager",
|
|
96
|
+
children: this.state.toasts.map(_ref => {
|
|
97
|
+
let {
|
|
98
|
+
id,
|
|
99
|
+
description,
|
|
100
|
+
...props
|
|
101
|
+
} = _ref;
|
|
102
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_toast.default, {
|
|
103
|
+
onRemove: () => this.removeToast(id),
|
|
104
|
+
...props,
|
|
105
|
+
children: description
|
|
106
|
+
}, id);
|
|
107
|
+
})
|
|
108
|
+
});
|
|
106
109
|
}
|
|
107
110
|
}
|
|
108
111
|
exports.default = ToastManager;
|