dtable-ui-component 6.0.125 → 6.0.126
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 +14 -16
- package/lib/ActivityIndicator/index.js +7 -8
- package/lib/AsyncUserSelect/index.css +5 -0
- package/lib/AsyncUserSelect/index.js +40 -19
- package/lib/AsyncUserSelect/user-item.js +5 -6
- package/lib/AutoNumberFormatter/index.js +3 -4
- package/lib/Badge/index.js +9 -11
- package/lib/ButtonFormatter/index.js +6 -8
- package/lib/CTimeFormatter/index.js +3 -4
- package/lib/CheckboxEditor/index.js +1 -3
- package/lib/CheckboxEditor/mb-editor.js +9 -20
- package/lib/CheckboxEditor/pc-editor.js +12 -24
- package/lib/CheckboxFormatter/index.js +4 -5
- package/lib/CollaboratorEditor/index.js +2 -4
- package/lib/CollaboratorEditor/mb-editor/index.js +11 -19
- package/lib/CollaboratorEditor/pc-editor/index.js +25 -34
- package/lib/CollaboratorFormatter/index.js +8 -10
- package/lib/CollaboratorItem/index.js +4 -5
- package/lib/CollapsibleSettingLayout/index.js +9 -7
- package/lib/Comment/body/comment.js +10 -18
- package/lib/Comment/body/index.js +2 -4
- package/lib/Comment/footer/btns/index.js +4 -7
- package/lib/Comment/footer/index.js +9 -20
- package/lib/Comment/footer/input/index.js +29 -50
- package/lib/Comment/footer/input/participant/index.js +4 -5
- package/lib/Comment/footer/participants/index.js +4 -5
- package/lib/Comment/footer/participants/participant/index.js +1 -3
- package/lib/Comment/footer/participants/participant-select/index.js +8 -24
- package/lib/Comment/index.js +39 -57
- package/lib/Comment/utils/utilities.js +15 -21
- package/lib/CreatorFormatter/index.js +6 -8
- package/lib/DTableColorPicker/ColorPickerPortal/index.js +23 -19
- package/lib/DTableColorPicker/index.css +0 -2
- package/lib/DTableColorPicker/index.js +56 -41
- package/lib/DTableColorPicker/utils.js +4 -6
- package/lib/DTableColumnIcon/index.js +6 -7
- package/lib/DTableCommonAddTool/index.css +1 -3
- package/lib/DTableCommonAddTool/index.js +6 -8
- package/lib/DTableCustomFooter/index.css +1 -3
- package/lib/DTableCustomFooter/index.js +1 -3
- package/lib/DTableCustomizeCollaboratorSelect/index.js +17 -20
- package/lib/DTableCustomizeSelect/index.js +19 -24
- package/lib/DTableDropdownItem/index.js +16 -18
- package/lib/DTableDropdownMenu/index.js +8 -10
- package/lib/DTableEmptyTip/index.js +4 -5
- package/lib/DTableFiltersPopover/index.css +0 -2
- package/lib/DTableFiltersPopover/index.js +26 -41
- package/lib/DTableFiltersPopover/utils/filter-item-utils.js +1 -3
- package/lib/DTableFiltersPopover/utils/index.js +63 -113
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +8 -9
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-multiple-select-filter.js +16 -13
- package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js +18 -15
- package/lib/DTableFiltersPopover/widgets/filter-calendar.js +8 -14
- package/lib/DTableFiltersPopover/widgets/filter-group.js +34 -55
- package/lib/DTableFiltersPopover/widgets/filter-item.js +107 -170
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +136 -161
- package/lib/DTableFiltersPopover/widgets/rate-item.js +15 -20
- package/lib/DTableGroupSelect/index.js +11 -15
- package/lib/DTableGroupSelect/select-option-group.js +23 -32
- package/lib/DTableIcon/index.js +6 -7
- package/lib/DTableIcon/svg-icon.js +5 -7
- package/lib/DTableModalHeader/index.js +1 -3
- package/lib/DTablePopover/index.js +13 -16
- package/lib/DTableRadio/index.js +10 -9
- package/lib/DTableRadioGroup/index.js +8 -17
- package/lib/DTableSearchInput/index.js +19 -29
- package/lib/DTableSelect/dtable-select-label.js +6 -5
- package/lib/DTableSelect/index.js +21 -22
- package/lib/DTableSelect/utils.js +7 -15
- package/lib/DTableSubDropdownMenu/index.js +8 -10
- package/lib/DTableSubDropdownToggle/index.js +12 -12
- package/lib/DTableSwitch/index.css +0 -1
- package/lib/DTableSwitch/index.js +12 -11
- package/lib/DTableToolTip/index.js +7 -8
- package/lib/DateEditor/index.js +20 -15
- package/lib/DateEditor/mb-editor/index.js +18 -31
- package/lib/DateEditor/pc-editor.js +26 -45
- package/lib/DateFormatter/index.js +4 -5
- package/lib/DatePicker/index.js +9 -15
- package/lib/DatePicker/utils.js +1 -3
- package/lib/DeleteTip/index.js +5 -6
- package/lib/DepartmentMultipleSelectEditor/index.js +25 -23
- package/lib/DepartmentSelectFilter/index.js +6 -8
- package/lib/DepartmentSingleSelectEditor/index.js +1 -3
- package/lib/DepartmentSingleSelectEditor/mb-editor/index.js +48 -47
- package/lib/DepartmentSingleSelectEditor/pc-editor/department-single-select.js +36 -58
- package/lib/DepartmentSingleSelectEditor/pc-editor/index.js +13 -19
- package/lib/DepartmentSingleSelectFormatter/index.js +4 -6
- package/lib/DigitalSignEditor/index.js +1 -3
- package/lib/DigitalSignEditor/mb-editor/index.js +12 -20
- package/lib/DigitalSignEditor/pc-editor/index.js +17 -24
- package/lib/DigitalSignEditor/service.js +2 -4
- package/lib/DigitalSignEditor/signature-board/index.js +5 -8
- package/lib/DigitalSignEditor/utils.js +2 -4
- package/lib/DigitalSignFormatter/index.js +12 -15
- package/lib/DigitalSignFormatter/utils.js +4 -5
- package/lib/DurationEditor/index.js +21 -31
- package/lib/DurationFormatter/index.js +4 -5
- package/lib/EditEditorButton/index.js +1 -3
- package/lib/EmailFormatter/index.js +3 -4
- package/lib/FieldDisplaySetting/field-item.js +12 -12
- package/lib/FieldDisplaySetting/index.js +11 -9
- package/lib/FileEditor/files-previewer/index.js +1 -3
- package/lib/FileEditor/files-previewer/mb-previewer/file-previewer/index.js +10 -18
- package/lib/FileEditor/files-previewer/mb-previewer/index.js +7 -8
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/dropdown-menu.js +3 -4
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/file-name-editor/index.js +5 -6
- package/lib/FileEditor/files-previewer/pc-previewer/file-previewer/index.js +14 -21
- package/lib/FileEditor/files-previewer/pc-previewer/index.js +29 -57
- package/lib/FileEditor/index.js +1 -3
- package/lib/FileEditor/mb-editor/index.js +28 -20
- package/lib/FileEditor/pc-editor/addition-previewer/index.js +1 -3
- package/lib/FileEditor/pc-editor/addition-previewer/local-file-addition/index.js +11 -25
- package/lib/FileEditor/pc-editor/index.js +19 -27
- package/lib/FileFormatter/index.js +26 -19
- package/lib/FileItemFormatter/index.js +6 -9
- package/lib/FileUploader/index.js +28 -45
- package/lib/FormulaFormatter/index.js +15 -29
- package/lib/GeolocationEditor/index.js +11 -12
- package/lib/GeolocationEditor/map-editor-utils.js +17 -15
- package/lib/GeolocationEditor/mb-editor/country-editor.js +17 -14
- package/lib/GeolocationEditor/mb-editor/index.js +4 -6
- package/lib/GeolocationEditor/mb-editor/location-editor.js +18 -15
- package/lib/GeolocationEditor/mb-editor/map-editor/index.js +41 -68
- package/lib/GeolocationEditor/mb-editor/map-selection-editor/index.js +50 -89
- package/lib/GeolocationEditor/mb-editor/province-city-editor.js +17 -14
- package/lib/GeolocationEditor/mb-editor/province-editor.js +17 -14
- package/lib/GeolocationEditor/pc-editor/country-editor.js +10 -23
- package/lib/GeolocationEditor/pc-editor/index.js +12 -20
- package/lib/GeolocationEditor/pc-editor/location-editor.js +26 -31
- package/lib/GeolocationEditor/pc-editor/map-editor/index.js +34 -54
- package/lib/GeolocationEditor/pc-editor/map-editor/large-editor/index.js +36 -60
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/index.js +35 -62
- package/lib/GeolocationEditor/pc-editor/map-selection-editor/large-editor/index.js +36 -65
- package/lib/GeolocationEditor/pc-editor/province-city-editor.js +19 -25
- package/lib/GeolocationEditor/pc-editor/province-editor.js +6 -13
- package/lib/GeolocationEditor/pc-editor/selector-header-item.js +5 -6
- package/lib/GeolocationEditor/pc-editor/selector-list.js +6 -7
- package/lib/GeolocationFormatter/index.js +4 -5
- package/lib/HtmlLongTextFormatter/index.js +4 -12
- package/lib/Icon/index.js +3 -5
- package/lib/IconButton/index.js +4 -6
- package/lib/ImageEditor/images-previewer/image-preview/index.js +12 -21
- package/lib/ImageEditor/images-previewer/index.js +3 -9
- package/lib/ImageEditor/index.js +1 -3
- package/lib/ImageEditor/mb-editor/index.js +28 -20
- package/lib/ImageEditor/pc-editor/addition-previewer/image-link/index.js +2 -6
- package/lib/ImageEditor/pc-editor/addition-previewer/index.js +1 -3
- package/lib/ImageEditor/pc-editor/addition-previewer/local-image-addition/index.js +7 -21
- package/lib/ImageEditor/pc-editor/images-previewer/index.js +3 -9
- package/lib/ImageEditor/pc-editor/index.js +11 -16
- package/lib/ImageFormatter/images-lazy-load.js +19 -11
- package/lib/ImageFormatter/index.js +11 -13
- package/lib/ImagePreviewerLightbox/index.js +15 -13
- package/lib/ImageThumbnail/index.js +10 -13
- package/lib/InputItem/custom-input.js +26 -46
- package/lib/InputItem/custom-keyboard.js +15 -18
- package/lib/InputItem/index.js +34 -50
- package/lib/InputItem/input.js +2 -4
- package/lib/LastModifierFormatter/index.js +6 -8
- package/lib/LinkEditor/index.js +33 -53
- package/lib/LinkEditor/link-editor-option.js +3 -4
- package/lib/LinkEditor/mb-popover/index.js +9 -22
- package/lib/LinkEditor/pc-popover/index.js +5 -10
- package/lib/LinkFormatter/index.js +21 -37
- package/lib/List/index.js +6 -8
- package/lib/List/list-item.js +22 -28
- package/lib/LongTextFormatter/index.js +4 -5
- package/lib/MBEditorHeader/index.js +7 -8
- package/lib/MTimeFormatter/index.js +3 -4
- package/lib/MobileFullScreenPage/body/index.js +3 -5
- package/lib/MobileFullScreenPage/header/index.js +4 -6
- package/lib/MobileFullScreenPage/index.js +13 -11
- package/lib/MobileModal/index.js +1 -3
- package/lib/MobileOperationSheet/index.js +7 -8
- package/lib/MobileSelector/empty/index.js +1 -3
- package/lib/MobileSelector/index.js +5 -7
- package/lib/MobileSelector/option/index.js +3 -5
- package/lib/MobileSelector/options/index.js +1 -3
- package/lib/MobileSelector/search/index.js +3 -5
- package/lib/MobileUpload/index.js +4 -5
- package/lib/Modal/modal.js +14 -15
- package/lib/Modal/prompt.js +4 -4
- package/lib/MultipleSelectEditor/index.js +1 -3
- package/lib/MultipleSelectFormatter/index.js +6 -8
- package/lib/NotificationPopover/index.css +1 -6
- package/lib/NotificationPopover/index.js +6 -7
- package/lib/NumberEditor/index.js +12 -21
- package/lib/NumberFormatter/index.js +4 -5
- package/lib/PhoneNumberLink/index.js +2 -4
- package/lib/Picker/AbstractPicker.js +23 -27
- package/lib/Popover/index.js +3 -4
- package/lib/Popover/item.js +7 -9
- package/lib/Progress/index.js +9 -8
- package/lib/Radio/Radio.js +4 -8
- package/lib/Radio/RadioItem.js +8 -12
- package/lib/RateFormatter/index.js +13 -13
- package/lib/RoleStatusEditor/index.js +18 -17
- package/lib/RowExpandDialog/body/index.js +32 -49
- package/lib/RowExpandDialog/column-content/index.js +5 -9
- package/lib/RowExpandDialog/header/index.js +6 -8
- package/lib/RowExpandDialog/index.js +49 -34
- package/lib/RowExpandEditor/checkbox-editor/mb-editor/index.js +4 -5
- package/lib/RowExpandEditor/checkbox-editor/pc-editor.js +8 -10
- package/lib/RowExpandEditor/collaborator-editor/mb-editor/index.js +22 -33
- package/lib/RowExpandEditor/collaborator-editor/pc-editor/index.js +26 -40
- package/lib/RowExpandEditor/date-editor/mb-editor.js +12 -18
- package/lib/RowExpandEditor/date-editor/pc-editor.js +15 -20
- package/lib/RowExpandEditor/department-editor/mb-editor.js +16 -11
- package/lib/RowExpandEditor/department-editor/pc-editor.js +19 -14
- package/lib/RowExpandEditor/digital-sign-editor/mb-editor/index.js +20 -34
- package/lib/RowExpandEditor/digital-sign-editor/pc-editor/index.js +21 -35
- package/lib/RowExpandEditor/duration-editor/mb-editor.js +10 -17
- package/lib/RowExpandEditor/duration-editor/pc-editor.js +13 -19
- package/lib/RowExpandEditor/email-editor/mb-editor/index.js +9 -19
- package/lib/RowExpandEditor/email-editor/pc-editor/index.js +13 -24
- package/lib/RowExpandEditor/file-editor/mb-editor/index.js +18 -31
- package/lib/RowExpandEditor/file-editor/pc-editor/index.js +16 -23
- package/lib/RowExpandEditor/geolocation-editor/mb-editor/index.js +17 -29
- package/lib/RowExpandEditor/geolocation-editor/pc-editor/index.js +13 -26
- package/lib/RowExpandEditor/image-editor/mb-editor/index.js +15 -25
- package/lib/RowExpandEditor/image-editor/pc-editor/index.js +13 -23
- package/lib/RowExpandEditor/index.js +4 -8
- package/lib/RowExpandEditor/long-text-editor/mb-editor/editor/index.js +17 -18
- package/lib/RowExpandEditor/long-text-editor/mb-editor/index.js +10 -16
- package/lib/RowExpandEditor/long-text-editor/pc-editor/index.js +16 -23
- package/lib/RowExpandEditor/multiple-select-editor/mb-editor/index.js +11 -19
- package/lib/RowExpandEditor/multiple-select-editor/pc-editor/index.js +22 -33
- package/lib/RowExpandEditor/number-editor/mb-editor/index.js +8 -14
- package/lib/RowExpandEditor/number-editor/pc-editor.js +13 -20
- package/lib/RowExpandEditor/rate-editor/mb-editor.js +12 -25
- package/lib/RowExpandEditor/rate-editor/pc-editor.js +20 -36
- package/lib/RowExpandEditor/single-select-editor/mb-editor/index.js +17 -28
- package/lib/RowExpandEditor/single-select-editor/pc-editor/index.js +22 -34
- package/lib/RowExpandEditor/text-editor/mb-editor/index.js +4 -5
- package/lib/RowExpandEditor/text-editor/pc-editor/index.js +15 -26
- package/lib/RowExpandEditor/url-editor/mb-editor/index.js +5 -13
- package/lib/RowExpandEditor/url-editor/pc-editor/index.js +9 -18
- package/lib/RowExpandFormatter/department-formatter/mb-formatter.js +2 -4
- package/lib/RowExpandFormatter/department-formatter/pc-formatter.js +2 -4
- package/lib/RowExpandFormatter/email-formatter/index.js +4 -7
- package/lib/RowExpandFormatter/file-formatter/index.js +8 -9
- package/lib/RowExpandFormatter/file-formatter/row-expand-file-item-formatter.js +10 -12
- package/lib/RowExpandFormatter/formula-formatter/index.js +19 -34
- package/lib/RowExpandFormatter/image-formatter/index.js +9 -11
- package/lib/RowExpandFormatter/image-formatter/row-expand-image-item-formatter.js +7 -8
- package/lib/RowExpandFormatter/index.js +27 -41
- package/lib/RowExpandFormatter/link-formatter/collaborator-item-formatter.js +8 -14
- package/lib/RowExpandFormatter/link-formatter/index.js +11 -19
- package/lib/RowExpandFormatter/link-formatter/value-display-utils.js +3 -5
- package/lib/RowExpandFormatter/rate-formatter/index.js +11 -12
- package/lib/RowExpandFormatter/text/index.js +4 -5
- package/lib/RowExpandFormatter/url-formatter/index.js +4 -7
- package/lib/RowExpandView/body/index.js +22 -35
- package/lib/RowExpandView/column-content/index.js +3 -7
- package/lib/RowExpandView/index.js +42 -30
- package/lib/SelectItem/index.js +5 -7
- package/lib/SelectOptionGroup/index.css +3 -3
- package/lib/SelectOptionGroup/index.js +31 -40
- package/lib/SelectedDepartments/index.js +7 -9
- package/lib/SimpleLongTextFormatter/index.js +10 -16
- package/lib/SimpleLongTextFormatter/normalize-long-text-value.js +3 -4
- package/lib/SimpleLongTextFormatter/widgets/LongTextPreview.js +12 -21
- package/lib/SimpleLongTextFormatter/widgets/dtable-markdown-viewer.js +3 -4
- package/lib/SingleSelectEditor/index.js +1 -3
- package/lib/SingleSelectFormatter/index.js +8 -9
- package/lib/TabBar/Tab.js +14 -16
- package/lib/TabBar/index.js +18 -21
- package/lib/Tabs/index.js +1 -3
- package/lib/TextEditor/index.js +14 -23
- package/lib/TextFormatter/index.js +3 -4
- package/lib/TextareaItem/index.js +19 -26
- package/lib/Toast/index.js +3 -4
- package/lib/UrlFormatter/index.js +3 -4
- package/lib/common/editor-base.js +7 -12
- package/lib/hooks/common-hooks.js +2 -4
- package/lib/select-editor/index.js +1 -3
- package/lib/select-editor/mb-editor/index.js +17 -28
- package/lib/select-editor/pc-editor/index.js +27 -42
- package/lib/toaster/alert.js +6 -7
- package/lib/toaster/toast.js +2 -3
- package/lib/toaster/toastManager.js +2 -4
- package/lib/utils/cell.js +8 -11
- package/lib/utils/column-utils.js +8 -14
- package/lib/utils/departments.js +1 -3
- package/lib/utils/url.js +24 -31
- package/lib/utils/utils.js +2 -6
- package/package.json +8 -8
|
@@ -20,21 +20,19 @@ class FiltersList extends _react.Component {
|
|
|
20
20
|
constructor(props) {
|
|
21
21
|
super(props);
|
|
22
22
|
this.modifyFilterConjunction = new_filter_conjunction => {
|
|
23
|
-
const
|
|
24
|
-
filterConjunction
|
|
25
|
-
filters
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
});
|
|
23
|
+
const _this$props = this.props,
|
|
24
|
+
filter_conjunction = _this$props.filterConjunction,
|
|
25
|
+
filters = _this$props.filters;
|
|
26
|
+
const _applyFilterOperation = (0, _utils.applyFilterOperation)({
|
|
27
|
+
type: _constants.FILTER_OPERATION_TYPE.MODIFY_CONJUNCTION,
|
|
28
|
+
filter_conjunction,
|
|
29
|
+
filters,
|
|
30
|
+
payload: {
|
|
31
|
+
new_filter_conjunction
|
|
32
|
+
}
|
|
33
|
+
}),
|
|
34
|
+
next_filter_conjunction = _applyFilterOperation.filter_conjunction,
|
|
35
|
+
next_filters = _applyFilterOperation.filters;
|
|
38
36
|
this.props.updateFilters({
|
|
39
37
|
filter_conjunction: next_filter_conjunction,
|
|
40
38
|
filters: next_filters
|
|
@@ -42,98 +40,88 @@ class FiltersList extends _react.Component {
|
|
|
42
40
|
};
|
|
43
41
|
this.updateFilter = (filter_index, new_filter) => {
|
|
44
42
|
if (!new_filter) return;
|
|
45
|
-
const
|
|
46
|
-
filterConjunction
|
|
47
|
-
filters
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
});
|
|
43
|
+
const _this$props2 = this.props,
|
|
44
|
+
filter_conjunction = _this$props2.filterConjunction,
|
|
45
|
+
filters = _this$props2.filters;
|
|
46
|
+
const _applyFilterOperation2 = (0, _utils.applyFilterOperation)({
|
|
47
|
+
type: _constants.FILTER_OPERATION_TYPE.UPDATE_FILTER,
|
|
48
|
+
filter_conjunction,
|
|
49
|
+
filters,
|
|
50
|
+
payload: {
|
|
51
|
+
filter_index,
|
|
52
|
+
new_filter
|
|
53
|
+
}
|
|
54
|
+
}),
|
|
55
|
+
next_filter_conjunction = _applyFilterOperation2.filter_conjunction,
|
|
56
|
+
next_filters = _applyFilterOperation2.filters;
|
|
61
57
|
this.props.updateFilters({
|
|
62
58
|
filter_conjunction: next_filter_conjunction,
|
|
63
59
|
filters: next_filters
|
|
64
60
|
});
|
|
65
61
|
};
|
|
66
62
|
this.deleteFilter = filter_index => {
|
|
67
|
-
const
|
|
68
|
-
filterConjunction
|
|
69
|
-
filters
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
}
|
|
81
|
-
});
|
|
63
|
+
const _this$props3 = this.props,
|
|
64
|
+
filter_conjunction = _this$props3.filterConjunction,
|
|
65
|
+
filters = _this$props3.filters;
|
|
66
|
+
const _applyFilterOperation3 = (0, _utils.applyFilterOperation)({
|
|
67
|
+
type: _constants.FILTER_OPERATION_TYPE.DELETE_FILTER,
|
|
68
|
+
filter_conjunction,
|
|
69
|
+
filters,
|
|
70
|
+
payload: {
|
|
71
|
+
filter_index
|
|
72
|
+
}
|
|
73
|
+
}),
|
|
74
|
+
next_filter_conjunction = _applyFilterOperation3.filter_conjunction,
|
|
75
|
+
next_filters = _applyFilterOperation3.filters;
|
|
82
76
|
this.props.updateFilters({
|
|
83
77
|
filter_conjunction: next_filter_conjunction,
|
|
84
78
|
filters: next_filters
|
|
85
79
|
});
|
|
86
80
|
};
|
|
87
81
|
this.moveFilter = _ref => {
|
|
88
|
-
let
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
target_group_index
|
|
93
|
-
} = _ref;
|
|
82
|
+
let source_filter_index = _ref.source_filter_index,
|
|
83
|
+
target_filter_index = _ref.target_filter_index,
|
|
84
|
+
source_group_index = _ref.source_group_index,
|
|
85
|
+
target_group_index = _ref.target_group_index;
|
|
94
86
|
if (source_filter_index === target_filter_index && source_group_index === target_group_index) {
|
|
95
87
|
return;
|
|
96
88
|
}
|
|
97
|
-
const
|
|
98
|
-
filterConjunction
|
|
99
|
-
filters
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
}
|
|
114
|
-
});
|
|
89
|
+
const _this$props4 = this.props,
|
|
90
|
+
filter_conjunction = _this$props4.filterConjunction,
|
|
91
|
+
filters = _this$props4.filters;
|
|
92
|
+
const _applyFilterOperation4 = (0, _utils.applyFilterOperation)({
|
|
93
|
+
type: _constants.FILTER_OPERATION_TYPE.MOVE_FILTER,
|
|
94
|
+
filter_conjunction,
|
|
95
|
+
filters,
|
|
96
|
+
payload: {
|
|
97
|
+
source_filter_index,
|
|
98
|
+
target_filter_index,
|
|
99
|
+
source_group_index,
|
|
100
|
+
target_group_index
|
|
101
|
+
}
|
|
102
|
+
}),
|
|
103
|
+
next_filter_conjunction = _applyFilterOperation4.filter_conjunction,
|
|
104
|
+
next_filters = _applyFilterOperation4.filters;
|
|
115
105
|
this.props.updateFilters({
|
|
116
106
|
filter_conjunction: next_filter_conjunction,
|
|
117
107
|
filters: next_filters
|
|
118
108
|
});
|
|
119
109
|
};
|
|
120
110
|
this.modifyConjunctionInGroup = (group_index, new_filter_conjunction) => {
|
|
121
|
-
const
|
|
122
|
-
filterConjunction
|
|
123
|
-
filters
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
}
|
|
136
|
-
});
|
|
111
|
+
const _this$props5 = this.props,
|
|
112
|
+
filter_conjunction = _this$props5.filterConjunction,
|
|
113
|
+
filters = _this$props5.filters;
|
|
114
|
+
const _applyFilterOperation5 = (0, _utils.applyFilterOperation)({
|
|
115
|
+
type: _constants.FILTER_OPERATION_TYPE.MODIFY_CONJUNCTION_IN_GROUP,
|
|
116
|
+
filter_conjunction,
|
|
117
|
+
filters,
|
|
118
|
+
payload: {
|
|
119
|
+
group_index,
|
|
120
|
+
new_filter_conjunction
|
|
121
|
+
}
|
|
122
|
+
}),
|
|
123
|
+
next_filter_conjunction = _applyFilterOperation5.filter_conjunction,
|
|
124
|
+
next_filters = _applyFilterOperation5.filters;
|
|
137
125
|
this.props.updateFilters({
|
|
138
126
|
filter_conjunction: next_filter_conjunction,
|
|
139
127
|
filters: next_filters
|
|
@@ -141,44 +129,40 @@ class FiltersList extends _react.Component {
|
|
|
141
129
|
};
|
|
142
130
|
this.addFilterIntoGroup = (group_index, filter) => {
|
|
143
131
|
if (!filter) return;
|
|
144
|
-
const
|
|
145
|
-
filterConjunction
|
|
146
|
-
filters
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
}
|
|
159
|
-
});
|
|
132
|
+
const _this$props6 = this.props,
|
|
133
|
+
filter_conjunction = _this$props6.filterConjunction,
|
|
134
|
+
filters = _this$props6.filters;
|
|
135
|
+
const _applyFilterOperation6 = (0, _utils.applyFilterOperation)({
|
|
136
|
+
type: _constants.FILTER_OPERATION_TYPE.ADD_FILTER_INTO_GROUP,
|
|
137
|
+
filter_conjunction,
|
|
138
|
+
filters,
|
|
139
|
+
payload: {
|
|
140
|
+
group_index,
|
|
141
|
+
filter
|
|
142
|
+
}
|
|
143
|
+
}),
|
|
144
|
+
next_filter_conjunction = _applyFilterOperation6.filter_conjunction,
|
|
145
|
+
next_filters = _applyFilterOperation6.filters;
|
|
160
146
|
this.props.updateFilters({
|
|
161
147
|
filter_conjunction: next_filter_conjunction,
|
|
162
148
|
filters: next_filters
|
|
163
149
|
});
|
|
164
150
|
};
|
|
165
151
|
this.deleteFilterInGroup = (group_index, filter_index) => {
|
|
166
|
-
const
|
|
167
|
-
filterConjunction
|
|
168
|
-
filters
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
181
|
-
});
|
|
152
|
+
const _this$props7 = this.props,
|
|
153
|
+
filter_conjunction = _this$props7.filterConjunction,
|
|
154
|
+
filters = _this$props7.filters;
|
|
155
|
+
const _applyFilterOperation7 = (0, _utils.applyFilterOperation)({
|
|
156
|
+
type: _constants.FILTER_OPERATION_TYPE.DELETE_FILTER_IN_GROUP,
|
|
157
|
+
filter_conjunction,
|
|
158
|
+
filters,
|
|
159
|
+
payload: {
|
|
160
|
+
group_index,
|
|
161
|
+
filter_index
|
|
162
|
+
}
|
|
163
|
+
}),
|
|
164
|
+
next_filter_conjunction = _applyFilterOperation7.filter_conjunction,
|
|
165
|
+
next_filters = _applyFilterOperation7.filters;
|
|
182
166
|
this.props.updateFilters({
|
|
183
167
|
filter_conjunction: next_filter_conjunction,
|
|
184
168
|
filters: next_filters
|
|
@@ -186,23 +170,21 @@ class FiltersList extends _react.Component {
|
|
|
186
170
|
};
|
|
187
171
|
this.updateFilterInGroup = (group_index, filter_index, new_filter) => {
|
|
188
172
|
if (!new_filter) return;
|
|
189
|
-
const
|
|
190
|
-
filterConjunction
|
|
191
|
-
filters
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
}
|
|
205
|
-
});
|
|
173
|
+
const _this$props8 = this.props,
|
|
174
|
+
filter_conjunction = _this$props8.filterConjunction,
|
|
175
|
+
filters = _this$props8.filters;
|
|
176
|
+
const _applyFilterOperation8 = (0, _utils.applyFilterOperation)({
|
|
177
|
+
type: _constants.FILTER_OPERATION_TYPE.UPDATE_FILTER_IN_GROUP,
|
|
178
|
+
filter_conjunction,
|
|
179
|
+
filters,
|
|
180
|
+
payload: {
|
|
181
|
+
group_index,
|
|
182
|
+
filter_index,
|
|
183
|
+
new_filter
|
|
184
|
+
}
|
|
185
|
+
}),
|
|
186
|
+
next_filter_conjunction = _applyFilterOperation8.filter_conjunction,
|
|
187
|
+
next_filters = _applyFilterOperation8.filters;
|
|
206
188
|
this.props.updateFilters({
|
|
207
189
|
filter_conjunction: next_filter_conjunction,
|
|
208
190
|
filters: next_filters
|
|
@@ -215,9 +197,7 @@ class FiltersList extends _react.Component {
|
|
|
215
197
|
return this.conjunctionOptions;
|
|
216
198
|
};
|
|
217
199
|
this.getColumnOptions = () => {
|
|
218
|
-
const
|
|
219
|
-
columns
|
|
220
|
-
} = this.props;
|
|
200
|
+
const columns = this.props.columns;
|
|
221
201
|
if (!this.columnOptions) {
|
|
222
202
|
const filterColumns = (0, _utils.getFilterColumns)(columns);
|
|
223
203
|
this.columnOptions = filterColumns.map(column => {
|
|
@@ -227,17 +207,16 @@ class FiltersList extends _react.Component {
|
|
|
227
207
|
return this.columnOptions;
|
|
228
208
|
};
|
|
229
209
|
this.renderFilter = (filter, index, filterColumn) => {
|
|
230
|
-
const
|
|
231
|
-
filterConjunction,
|
|
232
|
-
isInModal,
|
|
233
|
-
columns,
|
|
234
|
-
collaborators,
|
|
235
|
-
userDepartmentIdsMap,
|
|
236
|
-
departments,
|
|
237
|
-
lang,
|
|
238
|
-
firstDayOfWeek,
|
|
239
|
-
readOnly
|
|
240
|
-
} = this.props;
|
|
210
|
+
const _this$props9 = this.props,
|
|
211
|
+
filterConjunction = _this$props9.filterConjunction,
|
|
212
|
+
isInModal = _this$props9.isInModal,
|
|
213
|
+
columns = _this$props9.columns,
|
|
214
|
+
collaborators = _this$props9.collaborators,
|
|
215
|
+
userDepartmentIdsMap = _this$props9.userDepartmentIdsMap,
|
|
216
|
+
departments = _this$props9.departments,
|
|
217
|
+
lang = _this$props9.lang,
|
|
218
|
+
firstDayOfWeek = _this$props9.firstDayOfWeek,
|
|
219
|
+
readOnly = _this$props9.readOnly;
|
|
241
220
|
const conjunctionOptions = this.getConjunctionOptions();
|
|
242
221
|
const columnOptions = this.getColumnOptions();
|
|
243
222
|
if ((0, _dtableUtils.checkIsFilterGroup)(filter)) {
|
|
@@ -263,9 +242,8 @@ class FiltersList extends _react.Component {
|
|
|
263
242
|
updateFilterInGroup: this.updateFilterInGroup
|
|
264
243
|
}, "filter-group-".concat(index));
|
|
265
244
|
}
|
|
266
|
-
const
|
|
267
|
-
error_message
|
|
268
|
-
} = _dtableUtils.ValidateFilter.validate(filter, columns);
|
|
245
|
+
const _ValidateFilter$valid = _dtableUtils.ValidateFilter.validate(filter, columns),
|
|
246
|
+
error_message = _ValidateFilter$valid.error_message;
|
|
269
247
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_filterItem.default, {
|
|
270
248
|
isInModal: isInModal,
|
|
271
249
|
lang: lang,
|
|
@@ -295,12 +273,11 @@ class FiltersList extends _react.Component {
|
|
|
295
273
|
}
|
|
296
274
|
}
|
|
297
275
|
render() {
|
|
298
|
-
let
|
|
299
|
-
filters,
|
|
300
|
-
className,
|
|
301
|
-
emptyPlaceholder,
|
|
302
|
-
columns
|
|
303
|
-
} = this.props;
|
|
276
|
+
let _this$props0 = this.props,
|
|
277
|
+
filters = _this$props0.filters,
|
|
278
|
+
className = _this$props0.className,
|
|
279
|
+
emptyPlaceholder = _this$props0.emptyPlaceholder,
|
|
280
|
+
columns = _this$props0.columns;
|
|
304
281
|
const isEmpty = filters.length === 0;
|
|
305
282
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
306
283
|
className: (0, _classnames.default)('dtable-ui-filters-list', {
|
|
@@ -312,9 +289,7 @@ class FiltersList extends _react.Component {
|
|
|
312
289
|
className: "empty-filters-list",
|
|
313
290
|
children: emptyPlaceholder
|
|
314
291
|
}), !isEmpty && filters.map((filter, index) => {
|
|
315
|
-
const
|
|
316
|
-
column_key
|
|
317
|
-
} = filter;
|
|
292
|
+
const column_key = filter.column_key;
|
|
318
293
|
const filterColumn = (0, _utils.getColumnByKey)(column_key, columns) || {};
|
|
319
294
|
return this.renderFilter(filter, index, filterColumn);
|
|
320
295
|
})]
|
|
@@ -13,20 +13,17 @@ class RateItem extends _react.default.Component {
|
|
|
13
13
|
constructor(props) {
|
|
14
14
|
super(props);
|
|
15
15
|
this.onMouseEnterRateItem = () => {
|
|
16
|
-
const
|
|
17
|
-
rateItemIndex
|
|
18
|
-
} = this.props;
|
|
16
|
+
const rateItemIndex = this.props.rateItemIndex;
|
|
19
17
|
this.props.onMouseEnterRateItem(rateItemIndex);
|
|
20
18
|
};
|
|
21
19
|
this.onMouseLeaveRateItem = () => {
|
|
22
20
|
this.props.onMouseLeaveRateItem();
|
|
23
21
|
};
|
|
24
22
|
this.onChangeRateNumber = () => {
|
|
25
|
-
const
|
|
26
|
-
onChangeRateNumber,
|
|
27
|
-
rateItemIndex,
|
|
28
|
-
editable
|
|
29
|
-
} = this.props;
|
|
23
|
+
const _this$props = this.props,
|
|
24
|
+
onChangeRateNumber = _this$props.onChangeRateNumber,
|
|
25
|
+
rateItemIndex = _this$props.rateItemIndex,
|
|
26
|
+
editable = _this$props.editable;
|
|
30
27
|
if (onChangeRateNumber && editable) {
|
|
31
28
|
onChangeRateNumber(rateItemIndex);
|
|
32
29
|
}
|
|
@@ -37,18 +34,16 @@ class RateItem extends _react.default.Component {
|
|
|
37
34
|
};
|
|
38
35
|
}
|
|
39
36
|
render() {
|
|
40
|
-
const
|
|
41
|
-
enterRateItemIndex,
|
|
42
|
-
rateItemIndex,
|
|
43
|
-
value,
|
|
44
|
-
column,
|
|
45
|
-
isShowRateItem,
|
|
46
|
-
editable
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
rate_style_type
|
|
51
|
-
} = column.data || {};
|
|
37
|
+
const _this$props2 = this.props,
|
|
38
|
+
enterRateItemIndex = _this$props2.enterRateItemIndex,
|
|
39
|
+
rateItemIndex = _this$props2.rateItemIndex,
|
|
40
|
+
value = _this$props2.value,
|
|
41
|
+
column = _this$props2.column,
|
|
42
|
+
isShowRateItem = _this$props2.isShowRateItem,
|
|
43
|
+
editable = _this$props2.editable;
|
|
44
|
+
const _ref = column.data || {},
|
|
45
|
+
rate_style_color = _ref.rate_style_color,
|
|
46
|
+
rate_style_type = _ref.rate_style_type;
|
|
52
47
|
const rateShowType = rate_style_type ? rate_style_type : 'dtable-icon-rate';
|
|
53
48
|
if (!isShowRateItem && rateItemIndex > value) return null;
|
|
54
49
|
let itemStyle = {
|
|
@@ -40,15 +40,12 @@ class DTableGroupSelect extends _react.Component {
|
|
|
40
40
|
};
|
|
41
41
|
this.getSelectedOptionTop = () => {
|
|
42
42
|
if (!this.selector) return 38;
|
|
43
|
-
const
|
|
44
|
-
height
|
|
45
|
-
} = this.selector.getBoundingClientRect();
|
|
43
|
+
const _this$selector$getBou = this.selector.getBoundingClientRect(),
|
|
44
|
+
height = _this$selector$getBou.height;
|
|
46
45
|
return height;
|
|
47
46
|
};
|
|
48
47
|
this.getFilterOptions = searchValue => {
|
|
49
|
-
const
|
|
50
|
-
options
|
|
51
|
-
} = this.props;
|
|
48
|
+
const options = this.props.options;
|
|
52
49
|
const validSearchVal = searchValue.trim().toLowerCase();
|
|
53
50
|
if (!validSearchVal) return options || [];
|
|
54
51
|
return options.filter(option => option.name.toLowerCase().includes(validSearchVal));
|
|
@@ -66,15 +63,14 @@ class DTableGroupSelect extends _react.Component {
|
|
|
66
63
|
}
|
|
67
64
|
}
|
|
68
65
|
render() {
|
|
69
|
-
let
|
|
70
|
-
className,
|
|
71
|
-
selectedOptions,
|
|
72
|
-
options,
|
|
73
|
-
placeholder,
|
|
74
|
-
searchPlaceholder,
|
|
75
|
-
noOptionsPlaceholder,
|
|
76
|
-
isInModal
|
|
77
|
-
} = this.props;
|
|
66
|
+
let _this$props = this.props,
|
|
67
|
+
className = _this$props.className,
|
|
68
|
+
selectedOptions = _this$props.selectedOptions,
|
|
69
|
+
options = _this$props.options,
|
|
70
|
+
placeholder = _this$props.placeholder,
|
|
71
|
+
searchPlaceholder = _this$props.searchPlaceholder,
|
|
72
|
+
noOptionsPlaceholder = _this$props.noOptionsPlaceholder,
|
|
73
|
+
isInModal = _this$props.isInModal;
|
|
78
74
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
79
75
|
ref: node => this.selector = node,
|
|
80
76
|
className: (0, _classnames.default)('group-select custom-select', {
|
|
@@ -21,14 +21,12 @@ class SelectOptionGroup extends _react.Component {
|
|
|
21
21
|
this.props.onClickOutside(e);
|
|
22
22
|
};
|
|
23
23
|
this.resetMenuStyle = () => {
|
|
24
|
-
const
|
|
25
|
-
isInModal,
|
|
26
|
-
position
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
height
|
|
31
|
-
} = this.optionGroupRef.getBoundingClientRect();
|
|
24
|
+
const _this$props = this.props,
|
|
25
|
+
isInModal = _this$props.isInModal,
|
|
26
|
+
position = _this$props.position;
|
|
27
|
+
const _this$optionGroupRef$ = this.optionGroupRef.getBoundingClientRect(),
|
|
28
|
+
top = _this$optionGroupRef$.top,
|
|
29
|
+
height = _this$optionGroupRef$.height;
|
|
32
30
|
if (isInModal) {
|
|
33
31
|
if (position.y + position.height + height > window.innerHeight) {
|
|
34
32
|
this.optionGroupRef.style.top = position.y - height + 'px';
|
|
@@ -76,9 +74,7 @@ class SelectOptionGroup extends _react.Component {
|
|
|
76
74
|
}
|
|
77
75
|
};
|
|
78
76
|
this.onMouseDown = e => {
|
|
79
|
-
const
|
|
80
|
-
isInModal
|
|
81
|
-
} = this.props;
|
|
77
|
+
const isInModal = this.props.isInModal;
|
|
82
78
|
// prevent event propagation when click option or search input
|
|
83
79
|
if (isInModal) {
|
|
84
80
|
e.stopPropagation();
|
|
@@ -86,10 +82,9 @@ class SelectOptionGroup extends _react.Component {
|
|
|
86
82
|
}
|
|
87
83
|
};
|
|
88
84
|
this.scrollContent = () => {
|
|
89
|
-
const
|
|
90
|
-
offsetHeight,
|
|
91
|
-
scrollTop
|
|
92
|
-
} = this.optionGroupContentRef;
|
|
85
|
+
const _this$optionGroupCont = this.optionGroupContentRef,
|
|
86
|
+
offsetHeight = _this$optionGroupCont.offsetHeight,
|
|
87
|
+
scrollTop = _this$optionGroupCont.scrollTop;
|
|
93
88
|
this.setState({
|
|
94
89
|
disableHover: true
|
|
95
90
|
});
|
|
@@ -126,11 +121,10 @@ class SelectOptionGroup extends _react.Component {
|
|
|
126
121
|
});
|
|
127
122
|
};
|
|
128
123
|
this.renderOptGroup = searchVal => {
|
|
129
|
-
let
|
|
130
|
-
noOptionsPlaceholder,
|
|
131
|
-
onSelectOption,
|
|
132
|
-
selectedOptions
|
|
133
|
-
} = this.props;
|
|
124
|
+
let _this$props2 = this.props,
|
|
125
|
+
noOptionsPlaceholder = _this$props2.noOptionsPlaceholder,
|
|
126
|
+
onSelectOption = _this$props2.onSelectOption,
|
|
127
|
+
selectedOptions = _this$props2.selectedOptions;
|
|
134
128
|
this.filterOptions = this.props.getFilterOptions(searchVal);
|
|
135
129
|
if (this.filterOptions.length === 0) {
|
|
136
130
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
@@ -180,18 +174,15 @@ class SelectOptionGroup extends _react.Component {
|
|
|
180
174
|
document.removeEventListener('mousedown', this.handleDocumentClick);
|
|
181
175
|
}
|
|
182
176
|
render() {
|
|
183
|
-
const
|
|
184
|
-
searchPlaceholder,
|
|
185
|
-
top,
|
|
186
|
-
left,
|
|
187
|
-
minWidth,
|
|
188
|
-
isInModal,
|
|
189
|
-
position,
|
|
190
|
-
className
|
|
191
|
-
|
|
192
|
-
let {
|
|
193
|
-
searchVal
|
|
194
|
-
} = this.state;
|
|
177
|
+
const _this$props3 = this.props,
|
|
178
|
+
searchPlaceholder = _this$props3.searchPlaceholder,
|
|
179
|
+
top = _this$props3.top,
|
|
180
|
+
left = _this$props3.left,
|
|
181
|
+
minWidth = _this$props3.minWidth,
|
|
182
|
+
isInModal = _this$props3.isInModal,
|
|
183
|
+
position = _this$props3.position,
|
|
184
|
+
className = _this$props3.className;
|
|
185
|
+
let searchVal = this.state.searchVal;
|
|
195
186
|
let style = {
|
|
196
187
|
top: top || 0,
|
|
197
188
|
left: left || 0
|
package/lib/DTableIcon/index.js
CHANGED
|
@@ -11,13 +11,12 @@ var _svgIcon = _interopRequireDefault(require("./svg-icon"));
|
|
|
11
11
|
require("./index.css");
|
|
12
12
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
13
|
const DTableIcon = _ref => {
|
|
14
|
-
let
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
ariaHidden = false,
|
|
19
|
-
getSvg
|
|
20
|
-
} = _ref;
|
|
14
|
+
let className = _ref.className,
|
|
15
|
+
symbol = _ref.symbol,
|
|
16
|
+
color = _ref.color,
|
|
17
|
+
_ref$ariaHidden = _ref.ariaHidden,
|
|
18
|
+
ariaHidden = _ref$ariaHidden === void 0 ? false : _ref$ariaHidden,
|
|
19
|
+
getSvg = _ref.getSvg;
|
|
21
20
|
if (!symbol) return null;
|
|
22
21
|
if (symbol.includes('dtable-icon')) {
|
|
23
22
|
let customProps = {};
|
|
@@ -26,13 +26,11 @@ const getSvgIconComponents = () => {
|
|
|
26
26
|
return svgIconComponents;
|
|
27
27
|
};
|
|
28
28
|
const SvgIcon = _ref => {
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
getSvg
|
|
35
|
-
} = _ref;
|
|
29
|
+
let className = _ref.className,
|
|
30
|
+
symbol = _ref.symbol,
|
|
31
|
+
color = _ref.color,
|
|
32
|
+
ariaHidden = _ref.ariaHidden,
|
|
33
|
+
getSvg = _ref.getSvg;
|
|
36
34
|
if (!symbol) return null;
|
|
37
35
|
let props = {
|
|
38
36
|
style: {
|
|
@@ -14,9 +14,7 @@ require("./index.css");
|
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
const _excluded = ["children"];
|
|
16
16
|
const DTableModalHeader = _ref => {
|
|
17
|
-
let
|
|
18
|
-
children
|
|
19
|
-
} = _ref,
|
|
17
|
+
let children = _ref.children,
|
|
20
18
|
props = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
21
19
|
const customCloseBtn = /*#__PURE__*/(0, _jsxRuntime.jsx)("button", {
|
|
22
20
|
type: "button",
|