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
package/lib/DTableFiltersPopover/widgets/department-select-filter/department-single-select-filter.js
CHANGED
|
@@ -14,6 +14,7 @@ var _departments = require("../../../constants/departments");
|
|
|
14
14
|
var _ModalPortal = _interopRequireDefault(require("../../../ModalPortal"));
|
|
15
15
|
var _commonHooks = require("../../../hooks/common-hooks");
|
|
16
16
|
var _lang = require("../../../lang");
|
|
17
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
18
|
function DepartmentSingleSelectFilter(props) {
|
|
18
19
|
const {
|
|
19
20
|
value,
|
|
@@ -39,19 +40,22 @@ function DepartmentSingleSelectFilter(props) {
|
|
|
39
40
|
type,
|
|
40
41
|
name
|
|
41
42
|
} = option;
|
|
42
|
-
return /*#__PURE__*/
|
|
43
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
43
44
|
className: "department-item",
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
45
|
+
onClick: event => onSelect(event, type),
|
|
46
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
47
|
+
className: "department-item-left-content d-flex align-items-center",
|
|
48
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
49
|
+
className: "text-truncate department-name",
|
|
50
|
+
children: (0, _lang.getLocale)(name)
|
|
51
|
+
}), selectedDepartment === type && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
52
|
+
className: "department-check-icon",
|
|
53
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
54
|
+
className: "dtable-font dtable-icon-check-mark"
|
|
55
|
+
})
|
|
56
|
+
})]
|
|
57
|
+
})
|
|
58
|
+
}, index);
|
|
55
59
|
});
|
|
56
60
|
}
|
|
57
61
|
function onSelectToggle(event) {
|
|
@@ -71,45 +75,51 @@ function DepartmentSingleSelectFilter(props) {
|
|
|
71
75
|
columnOption
|
|
72
76
|
});
|
|
73
77
|
}
|
|
74
|
-
return /*#__PURE__*/
|
|
78
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
75
79
|
ref: selectorRef,
|
|
76
80
|
className: (0, _classnames.default)('dtable-select custom-select', {
|
|
77
81
|
'focus': isShowSelector
|
|
78
82
|
}),
|
|
79
83
|
onClick: onSelectToggle,
|
|
80
|
-
id: "filter-department-editor"
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
isInModal
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
isInModal
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
84
|
+
id: "filter-department-editor",
|
|
85
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
86
|
+
className: "selected-option",
|
|
87
|
+
children: [value ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
88
|
+
className: "selected-option-show",
|
|
89
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectedDepartments.default, {
|
|
90
|
+
departments: departments,
|
|
91
|
+
value: selectedDepartmentIds
|
|
92
|
+
})
|
|
93
|
+
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
94
|
+
className: "select-placeholder",
|
|
95
|
+
children: (0, _lang.getLocale)('Select_department')
|
|
96
|
+
}), !readOnly && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
97
|
+
className: "dtable-font dtable-icon-down3"
|
|
98
|
+
})]
|
|
99
|
+
}), isShowSelector && !isInModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DepartmentSingleSelectEditor.default, {
|
|
100
|
+
target: selectorRef.current,
|
|
101
|
+
enableSelectRange: false,
|
|
102
|
+
isInModal: isInModal,
|
|
103
|
+
column: column,
|
|
104
|
+
value: value,
|
|
105
|
+
onCommit: onCommit,
|
|
106
|
+
userDepartmentIdsMap: userDepartmentIdsMap,
|
|
107
|
+
departments: departments,
|
|
108
|
+
renderUserDepartmentOptions: renderUserDepartmentOptions
|
|
109
|
+
}), isShowSelector && isInModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalPortal.default, {
|
|
110
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DepartmentSingleSelectEditor.default, {
|
|
111
|
+
target: selectorRef.current,
|
|
112
|
+
enableSelectRange: false,
|
|
113
|
+
isInModal: isInModal,
|
|
114
|
+
column: column,
|
|
115
|
+
value: value,
|
|
116
|
+
position: selectorRef.current.getBoundingClientRect(),
|
|
117
|
+
onCommit: onCommit,
|
|
118
|
+
userDepartmentIdsMap: userDepartmentIdsMap,
|
|
119
|
+
departments: departments,
|
|
120
|
+
renderUserDepartmentOptions: renderUserDepartmentOptions
|
|
121
|
+
})
|
|
122
|
+
})]
|
|
123
|
+
});
|
|
114
124
|
}
|
|
115
125
|
var _default = exports.default = DepartmentSingleSelectFilter;
|
|
@@ -15,6 +15,7 @@ var _Picker = _interopRequireDefault(require("@seafile/seafile-calendar/lib/Pick
|
|
|
15
15
|
var _lang = require("../../lang");
|
|
16
16
|
var _columnUtils = require("../../utils/column-utils");
|
|
17
17
|
require("@seafile/seafile-calendar/assets/index.css");
|
|
18
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
18
19
|
let now = (0, _dayjs.default)();
|
|
19
20
|
class FilterCalendar extends _react.Component {
|
|
20
21
|
constructor(props) {
|
|
@@ -111,7 +112,7 @@ class FilterCalendar extends _react.Component {
|
|
|
111
112
|
firstDayOfWeek
|
|
112
113
|
} = this.props;
|
|
113
114
|
const state = this.state;
|
|
114
|
-
if (isReadOnly) return /*#__PURE__*/
|
|
115
|
+
if (isReadOnly) return /*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
115
116
|
className: "ant-calendar-picker-input ant-input form-control",
|
|
116
117
|
value: state.value ? state.value.format(this.columnDataFormat) : '',
|
|
117
118
|
disabled: true
|
|
@@ -128,7 +129,7 @@ class FilterCalendar extends _react.Component {
|
|
|
128
129
|
className: 'item-icon dtable-font dtable-icon-x',
|
|
129
130
|
style: clearStyle
|
|
130
131
|
});
|
|
131
|
-
const calendar = /*#__PURE__*/
|
|
132
|
+
const calendar = /*#__PURE__*/(0, _jsxRuntime.jsx)(_seafileCalendar.default, {
|
|
132
133
|
className: "dtable-rc-calendar",
|
|
133
134
|
locale: (0, _lang.translateCalendar)(),
|
|
134
135
|
style: {
|
|
@@ -142,35 +143,38 @@ class FilterCalendar extends _react.Component {
|
|
|
142
143
|
clearIcon: clearIcon,
|
|
143
144
|
firstDayOfWeek: firstDayOfWeek
|
|
144
145
|
});
|
|
145
|
-
return /*#__PURE__*/
|
|
146
|
-
className: "date-picker-container"
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
146
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
147
|
+
className: "date-picker-container",
|
|
148
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Picker.default, {
|
|
149
|
+
calendar: calendar,
|
|
150
|
+
value: state.value,
|
|
151
|
+
onChange: this.onChange,
|
|
152
|
+
getCalendarContainer: this.getCalendarContainer,
|
|
153
|
+
onOpenChange: this.onOpenChange,
|
|
154
|
+
open: state.open,
|
|
155
|
+
style: {
|
|
156
|
+
zIndex: 1001
|
|
157
|
+
},
|
|
158
|
+
children: _ref => {
|
|
159
|
+
let {
|
|
160
|
+
value
|
|
161
|
+
} = _ref;
|
|
162
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("span", {
|
|
163
|
+
tabIndex: "0",
|
|
164
|
+
onFocus: this.onReadOnlyFocus,
|
|
165
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
166
|
+
tabIndex: "-1",
|
|
167
|
+
readOnly: true,
|
|
168
|
+
className: "ant-calendar-picker-input ant-input form-control",
|
|
169
|
+
value: value ? value.format(this.columnDataFormat) : '',
|
|
170
|
+
onMouseDown: this.handleMouseDown
|
|
171
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
172
|
+
ref: this.calendarContainerRef
|
|
173
|
+
})]
|
|
174
|
+
});
|
|
175
|
+
}
|
|
176
|
+
})
|
|
177
|
+
});
|
|
174
178
|
}
|
|
175
179
|
}
|
|
176
180
|
var _default = exports.default = FilterCalendar;
|
|
@@ -16,6 +16,7 @@ var _constants = require("../constants");
|
|
|
16
16
|
var _utils = require("../utils");
|
|
17
17
|
var _DTableCommonAddTool = _interopRequireDefault(require("../../DTableCommonAddTool"));
|
|
18
18
|
var _lang = require("../../lang");
|
|
19
|
+
var _jsxRuntime = require("react/jsx-runtime");
|
|
19
20
|
class FilterGroup extends _react.Component {
|
|
20
21
|
constructor() {
|
|
21
22
|
super(...arguments);
|
|
@@ -81,7 +82,7 @@ class FilterGroup extends _react.Component {
|
|
|
81
82
|
case 1:
|
|
82
83
|
{
|
|
83
84
|
const activeConjunction = _filterItemUtils.default.getActiveConjunctionOption(filterConjunction, conjunctionOptions);
|
|
84
|
-
return /*#__PURE__*/
|
|
85
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSelect.default, {
|
|
85
86
|
value: activeConjunction,
|
|
86
87
|
options: conjunctionOptions,
|
|
87
88
|
onSelectOption: this.onSelectGroupConjunction
|
|
@@ -89,9 +90,10 @@ class FilterGroup extends _react.Component {
|
|
|
89
90
|
}
|
|
90
91
|
default:
|
|
91
92
|
{
|
|
92
|
-
return /*#__PURE__*/
|
|
93
|
-
className: "selected-conjunction-show"
|
|
94
|
-
|
|
93
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
94
|
+
className: "selected-conjunction-show",
|
|
95
|
+
children: (0, _lang.getLocale)(filterConjunction)
|
|
96
|
+
});
|
|
95
97
|
}
|
|
96
98
|
}
|
|
97
99
|
};
|
|
@@ -126,8 +128,7 @@ class FilterGroup extends _react.Component {
|
|
|
126
128
|
error_message
|
|
127
129
|
} = _dtableUtils.ValidateFilter.validate(currentFilter, columns);
|
|
128
130
|
const filterColumn = columns.find(column => column.key === sub_filter_column_key) || {};
|
|
129
|
-
return /*#__PURE__*/
|
|
130
|
-
key: "filter-in-group-".concat(groupIndex, "-").concat(subFilterIndex),
|
|
131
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_filterItem.default, {
|
|
131
132
|
isInModal: this.props.isInModal,
|
|
132
133
|
lang: lang,
|
|
133
134
|
index: subFilterIndex,
|
|
@@ -145,7 +146,7 @@ class FilterGroup extends _react.Component {
|
|
|
145
146
|
updateConjunction: this.modifyConjunctionInGroup,
|
|
146
147
|
deleteFilter: this.deleteFilterInGroup,
|
|
147
148
|
updateFilter: this.updateFilterInGroup
|
|
148
|
-
});
|
|
149
|
+
}, "filter-in-group-".concat(groupIndex, "-").concat(subFilterIndex));
|
|
149
150
|
});
|
|
150
151
|
};
|
|
151
152
|
}
|
|
@@ -155,31 +156,36 @@ class FilterGroup extends _react.Component {
|
|
|
155
156
|
index,
|
|
156
157
|
readOnly
|
|
157
158
|
} = this.props;
|
|
158
|
-
return /*#__PURE__*/
|
|
159
|
-
className: (0, _classnames.default)('filter-item', 'filter-group', "level-".concat(level))
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
159
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
160
|
+
className: (0, _classnames.default)('filter-item', 'filter-group', "level-".concat(level)),
|
|
161
|
+
children: [!readOnly && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
162
|
+
className: "delete-filter",
|
|
163
|
+
onClick: this.deleteFilterGroup,
|
|
164
|
+
role: "button",
|
|
165
|
+
tabIndex: 0,
|
|
166
|
+
"aria-label": (0, _lang.getLocale)('Delete'),
|
|
167
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
168
|
+
"aria-hidden": "true",
|
|
169
|
+
className: "dtable-font dtable-icon-fork-number"
|
|
170
|
+
})
|
|
171
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
172
|
+
className: "filter-group-wrapper",
|
|
173
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
174
|
+
className: (0, _classnames.default)('filter-conjunction', {
|
|
175
|
+
'conjunction-text': index > 1
|
|
176
|
+
}),
|
|
177
|
+
children: this.renderConjunction()
|
|
178
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
179
|
+
className: "filter-group-container",
|
|
180
|
+
children: [this.renderGroupFilters(), !readOnly && /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCommonAddTool.default, {
|
|
181
|
+
className: "group-filter-add-tool",
|
|
182
|
+
callBack: this.addFilterIntoGroup,
|
|
183
|
+
footerName: (0, _lang.getLocale)('Add_filter'),
|
|
184
|
+
addIconClassName: "popover-add-icon"
|
|
185
|
+
})]
|
|
186
|
+
})]
|
|
187
|
+
})]
|
|
188
|
+
});
|
|
183
189
|
}
|
|
184
190
|
}
|
|
185
191
|
FilterGroup.defaultProps = {
|