dtable-ui-component 6.0.126-beta.s1 → 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 +19 -46
- package/lib/AsyncUserSelect/index.js +58 -41
- 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.css +43 -67
- package/lib/DTableCustomizeSelect/index.js +29 -40
- 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 +3 -5
- package/lib/DTableFiltersPopover/utils/index.js +63 -113
- package/lib/DTableFiltersPopover/widgets/collaborator-filter/index.js +9 -10
- 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.css +5 -5
- package/lib/DTableFiltersPopover/widgets/filter-list/index.js +136 -161
- package/lib/DTableFiltersPopover/widgets/rate-item.js +15 -20
- package/lib/DTableGroupSelect/index.css +5 -31
- package/lib/DTableGroupSelect/index.js +13 -17
- package/lib/DTableGroupSelect/select-option-group.css +15 -11
- package/lib/DTableGroupSelect/select-option-group.js +31 -43
- 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.css +4 -4
- package/lib/DTableSelect/dtable-select-label.js +7 -6
- package/lib/DTableSelect/index.js +24 -25
- package/lib/DTableSelect/user-select.css +46 -7
- package/lib/DTableSelect/utils.js +82 -179
- 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 +25 -53
- package/lib/SelectOptionGroup/index.js +36 -84
- 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/index.js +0 -7
- 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
- package/lib/DTableCustomizeSearchInput/index.css +0 -81
- package/lib/DTableCustomizeSearchInput/index.js +0 -141
- package/lib/DTableCustomizeSelect/select-option-group/KeyCodes.js +0 -109
- package/lib/DTableCustomizeSelect/select-option-group/index.css +0 -134
- package/lib/DTableCustomizeSelect/select-option-group/index.js +0 -260
- package/lib/DTableCustomizeSelect/select-option-group/option.js +0 -48
- package/lib/DTableCustomizeSelect/util.js +0 -12
- package/lib/DTableSelect/select-dropdown-indicator/index.css +0 -16
- package/lib/DTableSelect/select-dropdown-indicator/index.js +0 -26
- package/lib/DTableSelect/select-style.js +0 -133
- package/lib/assets/icons/close.svg +0 -1
- package/lib/assets/icons/down.svg +0 -3
|
@@ -1,124 +1,100 @@
|
|
|
1
|
-
.
|
|
1
|
+
.dtable-select {
|
|
2
2
|
position: relative;
|
|
3
|
+
}
|
|
4
|
+
|
|
5
|
+
.dtable-select.custom-select {
|
|
3
6
|
display: flex;
|
|
4
|
-
padding: 0
|
|
5
|
-
border-radius:
|
|
7
|
+
padding: 0 10px;
|
|
8
|
+
border-radius: 3px;
|
|
6
9
|
align-items: center;
|
|
7
10
|
justify-content: space-between;
|
|
8
11
|
max-width: 900px;
|
|
9
12
|
user-select: none;
|
|
13
|
+
-webkit-user-select: none;
|
|
14
|
+
-moz-user-select: none;
|
|
15
|
+
-o-user-select: none;
|
|
16
|
+
-ms-user-select: none;
|
|
10
17
|
text-align: left;
|
|
11
|
-
line-height: 1.5;
|
|
12
|
-
background-image: none;
|
|
13
|
-
font-size: 14px;
|
|
14
|
-
color: var(--bs-body-color);
|
|
15
|
-
border: 1px solid rgba(0, 40, 100, 0.12);
|
|
16
18
|
}
|
|
17
19
|
|
|
18
|
-
.
|
|
19
|
-
.
|
|
20
|
-
border-color: #
|
|
20
|
+
.dtable-select.custom-select:focus,
|
|
21
|
+
.dtable-select.custom-select.focus {
|
|
22
|
+
border-color: #1991eb !important;
|
|
23
|
+
box-shadow: 0 0 0 2px rgba(70, 127, 207, 0.25);
|
|
21
24
|
}
|
|
22
25
|
|
|
23
|
-
.
|
|
24
|
-
.
|
|
25
|
-
.
|
|
26
|
+
.dtable-select.custom-select.disabled:focus,
|
|
27
|
+
.dtable-select.custom-select.focus.disabled,
|
|
28
|
+
.dtable-select.custom-select.disabled:hover {
|
|
26
29
|
border-color: rgba(0, 40, 100, 0.12) !important;
|
|
27
30
|
box-shadow: unset;
|
|
28
31
|
cursor: default;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
|
-
.
|
|
34
|
+
.dtable-select.custom-select:hover {
|
|
32
35
|
cursor: pointer;
|
|
33
|
-
border-color:
|
|
36
|
+
border-color: rgb(179, 179, 179);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
.dtable-select .dtable-icon-down3 {
|
|
40
|
+
display: inline-block;
|
|
41
|
+
font-size: 12px;
|
|
42
|
+
color: #999;
|
|
43
|
+
transition: all 0.1s;
|
|
34
44
|
}
|
|
35
45
|
|
|
36
|
-
.
|
|
37
|
-
|
|
38
|
-
height: 12px;
|
|
39
|
-
color: var(--bs-icon-color);
|
|
46
|
+
.dtable-select .dtable-icon-down3:hover {
|
|
47
|
+
color: #555;
|
|
40
48
|
}
|
|
41
49
|
|
|
42
|
-
.
|
|
50
|
+
.dtable-select .selected-option {
|
|
43
51
|
display: flex;
|
|
44
52
|
flex: 1;
|
|
45
53
|
overflow: hidden;
|
|
46
54
|
flex-wrap: nowrap;
|
|
47
55
|
align-items: center;
|
|
48
56
|
justify-content: space-between;
|
|
49
|
-
background:
|
|
57
|
+
background: #fff;
|
|
50
58
|
}
|
|
51
59
|
|
|
52
|
-
.
|
|
53
|
-
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
.seatable-customize-select.dtable-ui-collaborator-selector .seatable-option-group .seatable-option-group-content,
|
|
57
|
-
.seatable-customize-select.selector-group .seatable-option-group .seatable-option-group-content {
|
|
60
|
+
.dtable-select.dtable-ui-collaborator-selector .option-group .option-group-content,
|
|
61
|
+
.dtable-select.selector-group .option-group .option-group-content {
|
|
58
62
|
padding: 10px;
|
|
59
63
|
}
|
|
60
64
|
|
|
61
|
-
.
|
|
65
|
+
.dtable-select.custom-select.dtable-ui-collaborator-selector .option-group .option-group-content {
|
|
62
66
|
padding: 10px 0;
|
|
63
67
|
}
|
|
64
68
|
|
|
65
|
-
.
|
|
69
|
+
.dtable-select.custom-select.dtable-ui-collaborator-selector .option {
|
|
66
70
|
padding: 5px 0 5px 10px !important;
|
|
67
71
|
line-height: 20px;
|
|
68
72
|
}
|
|
69
73
|
|
|
70
|
-
.
|
|
74
|
+
.dtable-select.selector-group .option {
|
|
71
75
|
height: 30px;
|
|
72
76
|
display: flex;
|
|
73
77
|
align-items: center;
|
|
74
78
|
}
|
|
75
79
|
|
|
76
|
-
.
|
|
80
|
+
.dtable-select.selector-group .select-group-option {
|
|
77
81
|
justify-content: space-between;
|
|
78
82
|
}
|
|
79
83
|
|
|
80
|
-
.
|
|
84
|
+
.dtable-select.selector-group .selected-option .selected-group {
|
|
81
85
|
padding: 0 2px;
|
|
82
86
|
background: #eceff4;
|
|
83
87
|
border-radius: 3px;
|
|
84
88
|
}
|
|
85
89
|
|
|
86
|
-
.
|
|
87
|
-
line-height: 1;
|
|
88
|
-
font-size: 14px;
|
|
89
|
-
white-space: nowrap;
|
|
90
|
-
color: #868E96;
|
|
91
|
-
margin-right: 8px;
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
.seatable-customize-select .disabled .select-placeholder {
|
|
95
|
-
opacity: 0.65;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
.seatable-customize-select .selected-option-show {
|
|
99
|
-
height: 20px;
|
|
100
|
-
line-height: 20px;
|
|
101
|
-
margin-right: 8px;
|
|
102
|
-
width: calc(100% - 20px);
|
|
103
|
-
white-space: nowrap;
|
|
104
|
-
text-overflow: ellipsis;
|
|
90
|
+
.dtable-select .selected-option-show {
|
|
105
91
|
overflow: hidden;
|
|
92
|
+
text-overflow: ellipsis;
|
|
93
|
+
white-space: nowrap;
|
|
106
94
|
}
|
|
107
95
|
|
|
108
|
-
.
|
|
109
|
-
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
.seatable-customize-select .multiple-check-icon,
|
|
113
|
-
.seatable-customize-select .header-icon .dtable-font,
|
|
114
|
-
.seatable-option-group .select-label .header-icon .dtable-font {
|
|
115
|
-
color: var(--bs-icon-secondary-color) !important;
|
|
116
|
-
cursor: default;
|
|
96
|
+
.dtable-select .select-placeholder {
|
|
97
|
+
line-height: 1;
|
|
117
98
|
font-size: 14px;
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
.seatable-customize-select .header-icon {
|
|
121
|
-
display: inline-block;
|
|
122
|
-
padding: 0 .5rem 0 0!important;
|
|
123
|
-
margin-left: 0 !important;
|
|
99
|
+
white-space: nowrap;
|
|
124
100
|
}
|
|
@@ -7,11 +7,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.default = void 0;
|
|
9
9
|
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _SelectOptionGroup = _interopRequireDefault(require("../SelectOptionGroup"));
|
|
10
11
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var _selectOptionGroup = _interopRequireDefault(require("./select-option-group"));
|
|
12
12
|
var _ModalPortal = _interopRequireDefault(require("../ModalPortal"));
|
|
13
|
-
var _util = require("./util");
|
|
14
|
-
var _DTableIcon = _interopRequireDefault(require("../DTableIcon"));
|
|
15
13
|
require("./index.css");
|
|
16
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
17
15
|
class DTableCustomizeSelect extends _react.Component {
|
|
@@ -25,8 +23,8 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
25
23
|
*/
|
|
26
24
|
if (this.state.isShowSelectOptions) event.stopPropagation();
|
|
27
25
|
let eventClassName = event.target.className;
|
|
28
|
-
if (this.props.isLocked || eventClassName.indexOf('option-search-control') > -1 || eventClassName === '
|
|
29
|
-
// Prevent closing by pressing the
|
|
26
|
+
if (this.props.isLocked || eventClassName.indexOf('option-search-control') > -1 || eventClassName === 'option-group-search') return;
|
|
27
|
+
// Prevent closing by pressing the spacebar in the search input
|
|
30
28
|
if (event.target.value === '') return;
|
|
31
29
|
this.setState({
|
|
32
30
|
isShowSelectOptions: !this.state.isShowSelectOptions
|
|
@@ -47,24 +45,20 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
47
45
|
};
|
|
48
46
|
this.getSelectedOptionTop = () => {
|
|
49
47
|
if (!this.selector) return 38;
|
|
50
|
-
const
|
|
51
|
-
height
|
|
52
|
-
} = this.selector.getBoundingClientRect();
|
|
48
|
+
const _this$selector$getBou = this.selector.getBoundingClientRect(),
|
|
49
|
+
height = _this$selector$getBou.height;
|
|
53
50
|
return height;
|
|
54
51
|
};
|
|
55
52
|
this.getFilterOptions = searchValue => {
|
|
56
|
-
const
|
|
57
|
-
options,
|
|
58
|
-
searchable
|
|
59
|
-
} = this.props;
|
|
53
|
+
const _this$props = this.props,
|
|
54
|
+
options = _this$props.options,
|
|
55
|
+
searchable = _this$props.searchable;
|
|
60
56
|
if (!searchable) return options || [];
|
|
61
57
|
const validSearchVal = searchValue.trim().toLowerCase();
|
|
62
58
|
if (!validSearchVal) return options || [];
|
|
63
59
|
return options.filter(option => {
|
|
64
|
-
const
|
|
65
|
-
|
|
66
|
-
name
|
|
67
|
-
} = option;
|
|
60
|
+
const value = option.value,
|
|
61
|
+
name = option.name;
|
|
68
62
|
if (typeof name === 'string') {
|
|
69
63
|
return name.toLowerCase().indexOf(validSearchVal) > -1;
|
|
70
64
|
}
|
|
@@ -85,29 +79,26 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
85
79
|
};
|
|
86
80
|
}
|
|
87
81
|
render() {
|
|
88
|
-
|
|
89
|
-
className,
|
|
90
|
-
value,
|
|
91
|
-
options,
|
|
92
|
-
placeholder,
|
|
93
|
-
searchable,
|
|
94
|
-
searchPlaceholder,
|
|
95
|
-
noOptionsPlaceholder,
|
|
96
|
-
isLocked,
|
|
97
|
-
isInModal,
|
|
98
|
-
|
|
99
|
-
|
|
82
|
+
let _this$props2 = this.props,
|
|
83
|
+
className = _this$props2.className,
|
|
84
|
+
value = _this$props2.value,
|
|
85
|
+
options = _this$props2.options,
|
|
86
|
+
placeholder = _this$props2.placeholder,
|
|
87
|
+
searchable = _this$props2.searchable,
|
|
88
|
+
searchPlaceholder = _this$props2.searchPlaceholder,
|
|
89
|
+
noOptionsPlaceholder = _this$props2.noOptionsPlaceholder,
|
|
90
|
+
isLocked = _this$props2.isLocked,
|
|
91
|
+
isInModal = _this$props2.isInModal,
|
|
92
|
+
addOptionAble = _this$props2.addOptionAble,
|
|
93
|
+
component = _this$props2.component;
|
|
100
94
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
101
|
-
tabIndex: "0",
|
|
102
|
-
role: "button",
|
|
103
95
|
ref: node => this.selector = node,
|
|
104
|
-
className: (0, _classnames.default)('
|
|
96
|
+
className: (0, _classnames.default)('dtable-select custom-select', {
|
|
105
97
|
'focus': this.state.isShowSelectOptions
|
|
106
98
|
}, {
|
|
107
99
|
'disabled': isLocked
|
|
108
100
|
}, className),
|
|
109
101
|
onClick: this.onSelectToggle,
|
|
110
|
-
onKeyDown: _util.onKeyDown,
|
|
111
102
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
112
103
|
className: "selected-option",
|
|
113
104
|
children: [value && value.label ? /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
@@ -116,15 +107,12 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
116
107
|
}) : /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
117
108
|
className: "select-placeholder",
|
|
118
109
|
children: placeholder
|
|
119
|
-
}), !isLocked && /*#__PURE__*/(0, _jsxRuntime.jsx)("
|
|
120
|
-
className: "
|
|
121
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
|
|
122
|
-
symbol: "down",
|
|
123
|
-
color: "var(--bs-icon-color)"
|
|
124
|
-
})
|
|
110
|
+
}), !isLocked && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
111
|
+
className: "dtable-font dtable-icon-down3"
|
|
125
112
|
})]
|
|
126
|
-
}), this.state.isShowSelectOptions && !isInModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
113
|
+
}), this.state.isShowSelectOptions && !isInModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOptionGroup.default, {
|
|
127
114
|
value: value,
|
|
115
|
+
addOptionAble: addOptionAble,
|
|
128
116
|
component: component,
|
|
129
117
|
isShowSelected: this.props.isShowSelected,
|
|
130
118
|
top: this.getSelectedOptionTop(),
|
|
@@ -138,9 +126,10 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
138
126
|
getFilterOptions: this.getFilterOptions,
|
|
139
127
|
supportMultipleSelect: this.props.supportMultipleSelect
|
|
140
128
|
}), this.state.isShowSelectOptions && isInModal && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ModalPortal.default, {
|
|
141
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(
|
|
129
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_SelectOptionGroup.default, {
|
|
142
130
|
className: className,
|
|
143
131
|
value: value,
|
|
132
|
+
addOptionAble: addOptionAble,
|
|
144
133
|
component: component,
|
|
145
134
|
isShowSelected: this.props.isShowSelected,
|
|
146
135
|
position: this.selector.getBoundingClientRect(),
|
|
@@ -13,24 +13,22 @@ var _DTableToolTip = _interopRequireDefault(require("../DTableToolTip"));
|
|
|
13
13
|
var _svgIcon = _interopRequireDefault(require("../DTableIcon/svg-icon"));
|
|
14
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
15
|
const DTableDropdownItem = _ref => {
|
|
16
|
-
let
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
tabIndex
|
|
33
|
-
} = _ref;
|
|
16
|
+
let className = _ref.className,
|
|
17
|
+
divider = _ref.divider,
|
|
18
|
+
id = _ref.id,
|
|
19
|
+
toggle = _ref.toggle,
|
|
20
|
+
disabled = _ref.disabled,
|
|
21
|
+
tooltip = _ref.tooltip,
|
|
22
|
+
itemProps = _ref.itemProps,
|
|
23
|
+
showChecked = _ref.showChecked,
|
|
24
|
+
checked = _ref.checked,
|
|
25
|
+
leftSlotContent = _ref.leftSlotContent,
|
|
26
|
+
rightSlotContent = _ref.rightSlotContent,
|
|
27
|
+
icon = _ref.icon,
|
|
28
|
+
content = _ref.content,
|
|
29
|
+
onClick = _ref.onClick,
|
|
30
|
+
style = _ref.style,
|
|
31
|
+
tabIndex = _ref.tabIndex;
|
|
34
32
|
if (divider) {
|
|
35
33
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactstrap.DropdownItem, (0, _objectSpread2.default)((0, _objectSpread2.default)({}, itemProps), {}, {
|
|
36
34
|
divider: true,
|
|
@@ -10,16 +10,14 @@ var _reactstrap = require("reactstrap");
|
|
|
10
10
|
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
11
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
12
12
|
const DTableDropdownMenu = _ref => {
|
|
13
|
-
let
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
children
|
|
22
|
-
} = _ref;
|
|
13
|
+
let id = _ref.id,
|
|
14
|
+
className = _ref.className,
|
|
15
|
+
container = _ref.container,
|
|
16
|
+
modifiers = _ref.modifiers,
|
|
17
|
+
flip = _ref.flip,
|
|
18
|
+
style = _ref.style,
|
|
19
|
+
menuProps = _ref.menuProps,
|
|
20
|
+
children = _ref.children;
|
|
23
21
|
let customMenuProps = (0, _objectSpread2.default)({}, menuProps);
|
|
24
22
|
customMenuProps.modifiers = [{
|
|
25
23
|
name: 'preventOverflow',
|
|
@@ -10,11 +10,10 @@ require("./index.css");
|
|
|
10
10
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
11
11
|
class DTableEmptyTip extends _react.default.Component {
|
|
12
12
|
render() {
|
|
13
|
-
const
|
|
14
|
-
text,
|
|
15
|
-
title,
|
|
16
|
-
type
|
|
17
|
-
} = this.props;
|
|
13
|
+
const _this$props = this.props,
|
|
14
|
+
text = _this$props.text,
|
|
15
|
+
title = _this$props.title,
|
|
16
|
+
type = _this$props.type;
|
|
18
17
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
19
18
|
className: "empty-tip",
|
|
20
19
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("img", {
|
|
@@ -29,10 +29,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
29
29
|
constructor(props) {
|
|
30
30
|
super(props);
|
|
31
31
|
this.updateFilters = _ref => {
|
|
32
|
-
let
|
|
33
|
-
|
|
34
|
-
filters
|
|
35
|
-
} = _ref;
|
|
32
|
+
let filter_conjunction = _ref.filter_conjunction,
|
|
33
|
+
filters = _ref.filters;
|
|
36
34
|
const filterConjunction = filter_conjunction || this.state.filterConjunction;
|
|
37
35
|
if (this.isNeedSubmit) {
|
|
38
36
|
const isSubmitDisabled = false;
|
|
@@ -54,12 +52,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
54
52
|
});
|
|
55
53
|
};
|
|
56
54
|
this.addFilter = () => {
|
|
57
|
-
const
|
|
58
|
-
|
|
59
|
-
} = this.props;
|
|
60
|
-
const {
|
|
61
|
-
filters
|
|
62
|
-
} = this.state;
|
|
55
|
+
const columns = this.props.columns;
|
|
56
|
+
const filters = this.state.filters;
|
|
63
57
|
const newFilter = (0, _utils.getDefaultFilter)(columns);
|
|
64
58
|
if (!newFilter) {
|
|
65
59
|
return;
|
|
@@ -69,12 +63,8 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
69
63
|
});
|
|
70
64
|
};
|
|
71
65
|
this.addFilterGroup = () => {
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
} = this.props;
|
|
75
|
-
const {
|
|
76
|
-
filters
|
|
77
|
-
} = this.state;
|
|
66
|
+
const columns = this.props.columns;
|
|
67
|
+
const filters = this.state.filters;
|
|
78
68
|
const newFilterGroup = (0, _utils.getDefaultFilterGroup)(columns);
|
|
79
69
|
if (!newFilterGroup) {
|
|
80
70
|
return;
|
|
@@ -87,10 +77,9 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
87
77
|
this.props.hidePopover();
|
|
88
78
|
};
|
|
89
79
|
this.onSubmitFilters = () => {
|
|
90
|
-
const
|
|
91
|
-
filters,
|
|
92
|
-
filterConjunction
|
|
93
|
-
} = this.state;
|
|
80
|
+
const _this$state = this.state,
|
|
81
|
+
filters = _this$state.filters,
|
|
82
|
+
filterConjunction = _this$state.filterConjunction;
|
|
94
83
|
const update = {
|
|
95
84
|
filters,
|
|
96
85
|
filter_conjunction: filterConjunction
|
|
@@ -101,12 +90,10 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
101
90
|
this.onPopoverInsideClick = e => {
|
|
102
91
|
e.stopPropagation();
|
|
103
92
|
};
|
|
104
|
-
const
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
isNeedSubmit
|
|
109
|
-
} = props;
|
|
93
|
+
const _filterConjunction = props.filterConjunction,
|
|
94
|
+
_filters = props.filters,
|
|
95
|
+
_columns = props.columns,
|
|
96
|
+
isNeedSubmit = props.isNeedSubmit;
|
|
110
97
|
this.state = {
|
|
111
98
|
filters: (0, _dtableUtils.getValidFilters)(_filters, _columns),
|
|
112
99
|
filterConjunction: _constants.SUPPORT_CONJUNCTIONS.includes(_filterConjunction) ? _filterConjunction : _dtableUtils.FILTER_CONJUNCTION_TYPE.AND,
|
|
@@ -115,21 +102,19 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
115
102
|
this.isNeedSubmit = isNeedSubmit;
|
|
116
103
|
}
|
|
117
104
|
render() {
|
|
118
|
-
const
|
|
119
|
-
target,
|
|
120
|
-
columns,
|
|
121
|
-
placement,
|
|
122
|
-
isSupportAdvanced,
|
|
123
|
-
departments,
|
|
124
|
-
lang,
|
|
125
|
-
readOnly,
|
|
126
|
-
userDepartmentIdsMap,
|
|
127
|
-
firstDayOfWeek
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
filterConjunction
|
|
132
|
-
} = this.state;
|
|
105
|
+
const _this$props = this.props,
|
|
106
|
+
target = _this$props.target,
|
|
107
|
+
columns = _this$props.columns,
|
|
108
|
+
placement = _this$props.placement,
|
|
109
|
+
isSupportAdvanced = _this$props.isSupportAdvanced,
|
|
110
|
+
departments = _this$props.departments,
|
|
111
|
+
lang = _this$props.lang,
|
|
112
|
+
readOnly = _this$props.readOnly,
|
|
113
|
+
userDepartmentIdsMap = _this$props.userDepartmentIdsMap,
|
|
114
|
+
firstDayOfWeek = _this$props.firstDayOfWeek;
|
|
115
|
+
const _this$state2 = this.state,
|
|
116
|
+
filters = _this$state2.filters,
|
|
117
|
+
filterConjunction = _this$state2.filterConjunction;
|
|
133
118
|
const canAddFilter = columns.length > 0;
|
|
134
119
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTablePopover.default, {
|
|
135
120
|
target: target,
|
|
@@ -13,9 +13,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
13
13
|
class FilterItemUtils {
|
|
14
14
|
static generatorColumnOption(column) {
|
|
15
15
|
if (!column) return null;
|
|
16
|
-
const
|
|
17
|
-
name
|
|
18
|
-
} = column;
|
|
16
|
+
const name = column.name;
|
|
19
17
|
return {
|
|
20
18
|
value: {
|
|
21
19
|
column
|
|
@@ -107,7 +105,7 @@ class FilterItemUtils {
|
|
|
107
105
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
108
106
|
className: "single-select-check-icon",
|
|
109
107
|
children: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.id) === option.id && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
110
|
-
className: "option-edit dtable-font dtable-icon-check"
|
|
108
|
+
className: "option-edit dtable-font dtable-icon-check-mark"
|
|
111
109
|
})
|
|
112
110
|
})]
|
|
113
111
|
})
|
|
@@ -132,7 +130,7 @@ class FilterItemUtils {
|
|
|
132
130
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
133
131
|
className: "multiple-check-icon",
|
|
134
132
|
children: filterTerm.indexOf(option.id) > -1 && /*#__PURE__*/(0, _jsxRuntime.jsx)("i", {
|
|
135
|
-
className: "option-edit dtable-font dtable-icon-check"
|
|
133
|
+
className: "option-edit dtable-font dtable-icon-check-mark"
|
|
136
134
|
})
|
|
137
135
|
})]
|
|
138
136
|
})
|