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
|
@@ -9,12 +9,9 @@ exports.isEnableCheckFormat = void 0;
|
|
|
9
9
|
var _dtableUtils = require("dtable-utils");
|
|
10
10
|
const isEnableCheckFormat = column => {
|
|
11
11
|
if (!column) return false;
|
|
12
|
-
const
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
const {
|
|
16
|
-
enable_check_format
|
|
17
|
-
} = data || {};
|
|
12
|
+
const data = column.data;
|
|
13
|
+
const _ref = data || {},
|
|
14
|
+
enable_check_format = _ref.enable_check_format;
|
|
18
15
|
if (enable_check_format) return true;
|
|
19
16
|
return false;
|
|
20
17
|
};
|
|
@@ -26,15 +23,12 @@ const getDateColumnFormat = column => {
|
|
|
26
23
|
};
|
|
27
24
|
exports.getDateColumnFormat = getDateColumnFormat;
|
|
28
25
|
function isCheckboxColumn(column) {
|
|
29
|
-
let
|
|
30
|
-
|
|
31
|
-
data
|
|
32
|
-
} = column;
|
|
26
|
+
let type = column.type,
|
|
27
|
+
data = column.data;
|
|
33
28
|
if (_dtableUtils.FORMULA_COLUMN_TYPES_MAP[type]) {
|
|
34
|
-
const {
|
|
35
|
-
result_type,
|
|
36
|
-
array_type
|
|
37
|
-
} = data || {};
|
|
29
|
+
const _ref2 = data || {},
|
|
30
|
+
result_type = _ref2.result_type,
|
|
31
|
+
array_type = _ref2.array_type;
|
|
38
32
|
if (result_type === _dtableUtils.FORMULA_RESULT_TYPE.ARRAY) {
|
|
39
33
|
return array_type === _dtableUtils.CellType.CHECKBOX;
|
|
40
34
|
}
|
package/lib/utils/departments.js
CHANGED
|
@@ -11,9 +11,7 @@ const searchDepartments = (departments, searchValue) => {
|
|
|
11
11
|
const validDepartments = Array.isArray(departments) ? departments : [];
|
|
12
12
|
if (!validSearchValue) return validDepartments;
|
|
13
13
|
return validDepartments.filter(department => {
|
|
14
|
-
const
|
|
15
|
-
name
|
|
16
|
-
} = department;
|
|
14
|
+
const name = department.name;
|
|
17
15
|
if (!name) return false;
|
|
18
16
|
return name.toString().toLowerCase().indexOf(validSearchValue) > -1;
|
|
19
17
|
});
|
package/lib/utils/url.js
CHANGED
|
@@ -71,13 +71,11 @@ const needUseThumbnailImage = url => {
|
|
|
71
71
|
exports.needUseThumbnailImage = needUseThumbnailImage;
|
|
72
72
|
const generateCurrentBaseImageThumbnailUrl = _ref => {
|
|
73
73
|
var _window2;
|
|
74
|
-
let
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
size
|
|
80
|
-
} = _ref;
|
|
74
|
+
let server = _ref.server,
|
|
75
|
+
workspaceID = _ref.workspaceID,
|
|
76
|
+
dtableUuid = _ref.dtableUuid,
|
|
77
|
+
partUrl = _ref.partUrl,
|
|
78
|
+
size = _ref.size;
|
|
81
79
|
const validServer = server || ((_window2 = window) === null || _window2 === void 0 ? void 0 : _window2.dtable) && window.dtable.server || '';
|
|
82
80
|
if (!partUrl || typeof partUrl !== 'string') return '';
|
|
83
81
|
let url = "".concat(validServer, "/thumbnail/workspace/").concat(workspaceID, "/asset/").concat(dtableUuid).concat(partUrl);
|
|
@@ -87,12 +85,10 @@ const generateCurrentBaseImageThumbnailUrl = _ref => {
|
|
|
87
85
|
exports.generateCurrentBaseImageThumbnailUrl = generateCurrentBaseImageThumbnailUrl;
|
|
88
86
|
const generateCurrentBaseImageUrl = _ref2 => {
|
|
89
87
|
var _window3;
|
|
90
|
-
let
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
partUrl
|
|
95
|
-
} = _ref2;
|
|
88
|
+
let server = _ref2.server,
|
|
89
|
+
workspaceID = _ref2.workspaceID,
|
|
90
|
+
dtableUuid = _ref2.dtableUuid,
|
|
91
|
+
partUrl = _ref2.partUrl;
|
|
96
92
|
if (!partUrl || typeof partUrl !== 'string') return '';
|
|
97
93
|
if (partUrl.startsWith('http')) return partUrl;
|
|
98
94
|
const validServer = server || ((_window3 = window) === null || _window3 === void 0 ? void 0 : _window3.dtable) && window.dtable.server || '';
|
|
@@ -100,12 +96,12 @@ const generateCurrentBaseImageUrl = _ref2 => {
|
|
|
100
96
|
};
|
|
101
97
|
exports.generateCurrentBaseImageUrl = generateCurrentBaseImageUrl;
|
|
102
98
|
const getImageThumbnailUrl = function (url) {
|
|
103
|
-
let {
|
|
104
|
-
server,
|
|
105
|
-
dtableUuid,
|
|
106
|
-
workspaceID,
|
|
107
|
-
size =
|
|
108
|
-
|
|
99
|
+
let _ref3 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
100
|
+
server = _ref3.server,
|
|
101
|
+
dtableUuid = _ref3.dtableUuid,
|
|
102
|
+
workspaceID = _ref3.workspaceID,
|
|
103
|
+
_ref3$size = _ref3.size,
|
|
104
|
+
size = _ref3$size === void 0 ? 256 : _ref3$size;
|
|
109
105
|
if (!url || typeof url !== 'string') return '';
|
|
110
106
|
if (server && dtableUuid && isCustomAssetUrl(url)) {
|
|
111
107
|
const assetUuid = url.slice(url.lastIndexOf('/') + 1, url.lastIndexOf('.'));
|
|
@@ -149,9 +145,9 @@ const imageCheck = filename => {
|
|
|
149
145
|
};
|
|
150
146
|
exports.imageCheck = imageCheck;
|
|
151
147
|
const isInternalURL = function (url) {
|
|
152
|
-
let {
|
|
153
|
-
server =
|
|
154
|
-
|
|
148
|
+
let _ref4 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
149
|
+
_ref4$server = _ref4.server,
|
|
150
|
+
server = _ref4$server === void 0 ? '' : _ref4$server;
|
|
155
151
|
if (!url || typeof url !== 'string') return false;
|
|
156
152
|
return server && url.indexOf(server) > -1;
|
|
157
153
|
};
|
|
@@ -160,10 +156,8 @@ const getValidFileImageUrls = files => {
|
|
|
160
156
|
if (!Array.isArray(files)) return [];
|
|
161
157
|
return files.map(file => {
|
|
162
158
|
if (typeof file !== 'object') return null;
|
|
163
|
-
const
|
|
164
|
-
|
|
165
|
-
name
|
|
166
|
-
} = file;
|
|
159
|
+
const url = file.url,
|
|
160
|
+
name = file.name;
|
|
167
161
|
if (!url || url.indexOf('/asset') < 0) return null;
|
|
168
162
|
return imageCheck(name) ? url : null;
|
|
169
163
|
}).filter(Boolean);
|
|
@@ -188,11 +182,10 @@ const getFileIconUrl = (filename, direntType) => {
|
|
|
188
182
|
};
|
|
189
183
|
exports.getFileIconUrl = getFileIconUrl;
|
|
190
184
|
const getFileThumbnailInfo = function (file) {
|
|
191
|
-
let {
|
|
192
|
-
server,
|
|
193
|
-
dtableUuid,
|
|
194
|
-
workspaceID
|
|
195
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
185
|
+
let _ref5 = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {},
|
|
186
|
+
server = _ref5.server,
|
|
187
|
+
dtableUuid = _ref5.dtableUuid,
|
|
188
|
+
workspaceID = _ref5.workspaceID;
|
|
196
189
|
const defaultIcon = _file.FILEEXT_ICON_MAP['default'];
|
|
197
190
|
const defaultIconUrl = _file.FILEEXT_ICON_URL_MAP[defaultIcon];
|
|
198
191
|
if (!file || !file.name) return {
|
package/lib/utils/utils.js
CHANGED
|
@@ -163,16 +163,12 @@ const getFormulaArrayValue = value => {
|
|
|
163
163
|
return item;
|
|
164
164
|
}
|
|
165
165
|
if (!Object.prototype.hasOwnProperty.call(item, 'display_value')) return item;
|
|
166
|
-
const
|
|
167
|
-
display_value
|
|
168
|
-
} = item;
|
|
166
|
+
const display_value = item.display_value;
|
|
169
167
|
if (!Array.isArray(display_value) || display_value.length === 0) return display_value;
|
|
170
168
|
return display_value.map(i => {
|
|
171
169
|
if (Object.prototype.toString.call(i) === '[object Object]') {
|
|
172
170
|
if (!Object.prototype.hasOwnProperty.call(i, 'display_value')) return i;
|
|
173
|
-
const
|
|
174
|
-
display_value
|
|
175
|
-
} = i;
|
|
171
|
+
const display_value = i.display_value;
|
|
176
172
|
return display_value;
|
|
177
173
|
}
|
|
178
174
|
return i;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dtable-ui-component",
|
|
3
|
-
"version": "6.0.126
|
|
3
|
+
"version": "6.0.126",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"dependencies": {
|
|
6
6
|
"@seafile/react-image-lightbox": "5.0.9",
|
|
@@ -66,15 +66,15 @@
|
|
|
66
66
|
},
|
|
67
67
|
"devDependencies": {
|
|
68
68
|
"@babel/cli": "7.22.15",
|
|
69
|
-
"@babel/core": "^7.
|
|
69
|
+
"@babel/core": "^7.29.6",
|
|
70
70
|
"@babel/plugin-proposal-private-property-in-object": "7.21.11",
|
|
71
71
|
"@babel/plugin-transform-runtime": "7.22.10",
|
|
72
72
|
"@babel/runtime": "7.27.6",
|
|
73
73
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
74
|
-
"@storybook/addon-docs": "^
|
|
75
|
-
"@storybook/addon-onboarding": "^
|
|
74
|
+
"@storybook/addon-docs": "^10.4.6",
|
|
75
|
+
"@storybook/addon-onboarding": "^10.4.6",
|
|
76
76
|
"@storybook/addon-webpack5-compiler-swc": "^3.0.0",
|
|
77
|
-
"@storybook/react-webpack5": "^
|
|
77
|
+
"@storybook/react-webpack5": "^10.4.6",
|
|
78
78
|
"@svgr/webpack": "8.1.0",
|
|
79
79
|
"@testing-library/jest-dom": "^5.17.0",
|
|
80
80
|
"@testing-library/react": "^14.3.1",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"dotenv-expand": "^5.1.0",
|
|
98
98
|
"eslint": "^8.3.0",
|
|
99
99
|
"eslint-config-react-app": "^7.0.1",
|
|
100
|
-
"eslint-plugin-storybook": "^
|
|
100
|
+
"eslint-plugin-storybook": "^10.4.6",
|
|
101
101
|
"eslint-webpack-plugin": "^3.1.1",
|
|
102
102
|
"file-loader": "^6.2.0",
|
|
103
103
|
"fs-extra": "^10.0.0",
|
|
@@ -131,12 +131,12 @@
|
|
|
131
131
|
"sass-loader": "^12.3.0",
|
|
132
132
|
"semver": "^7.3.5",
|
|
133
133
|
"source-map-loader": "^3.0.0",
|
|
134
|
-
"storybook": "^
|
|
134
|
+
"storybook": "^10.4.6",
|
|
135
135
|
"style-loader": "^3.3.1",
|
|
136
136
|
"terser-webpack-plugin": "^5.2.5",
|
|
137
137
|
"url-loader": "^4.1.1",
|
|
138
138
|
"webpack": "^5.105.4",
|
|
139
|
-
"webpack-dev-server": "^5.2.
|
|
139
|
+
"webpack-dev-server": "^5.2.5",
|
|
140
140
|
"worker-loader": "3.0.8"
|
|
141
141
|
}
|
|
142
142
|
}
|
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
.seatable-search-input {
|
|
3
|
-
width: 100%;
|
|
4
|
-
padding: 6px 10px;
|
|
5
|
-
min-width: 170px;
|
|
6
|
-
position: relative;
|
|
7
|
-
padding: 0;
|
|
8
|
-
height: 32px;
|
|
9
|
-
border-bottom: 1px solid var(--bs-border-color);
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
.seatable-search-input .form-control {
|
|
13
|
-
height: 100%;
|
|
14
|
-
border: none;
|
|
15
|
-
padding: .375rem 1rem;
|
|
16
|
-
cursor: pointer;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
.seatable-search-input-multiple .form-control:focus,
|
|
20
|
-
.seatable-search-input .form-control:focus {
|
|
21
|
-
outline: none;
|
|
22
|
-
box-shadow: none;
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
.seatable-search-input .input-icon-addon {
|
|
26
|
-
z-index: 1;
|
|
27
|
-
pointer-events: auto;
|
|
28
|
-
min-width: 2.75rem !important;
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
.seatable-search-input .input-icon-addon svg {
|
|
32
|
-
color: var(--bs-body-secondary-color);
|
|
33
|
-
cursor: pointer;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
.seatable-search-input .none-search-result {
|
|
37
|
-
height: 100px;
|
|
38
|
-
width: 100%;
|
|
39
|
-
padding: 10px;
|
|
40
|
-
color: var(--bs-body-secondary-color);
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
.seatable-search-input-multiple {
|
|
45
|
-
width: 100%;
|
|
46
|
-
padding: 6px 10px;
|
|
47
|
-
min-width: 170px;
|
|
48
|
-
position: relative;
|
|
49
|
-
height: 40px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.seatable-search-input-multiple .form-control {
|
|
53
|
-
height: 30px;
|
|
54
|
-
padding: .375rem 2.5rem .375rem 1rem;
|
|
55
|
-
cursor: pointer;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
.seatable-search-input-multiple .input-icon-addon {
|
|
59
|
-
z-index: 1;
|
|
60
|
-
pointer-events: auto;
|
|
61
|
-
min-width: 2.75rem !important;
|
|
62
|
-
top: 10px;
|
|
63
|
-
height: 30px;
|
|
64
|
-
right: 10px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.seatable-search-input-multiple .input-icon-addon svg {
|
|
68
|
-
color: var(--bs-body-secondary-color);
|
|
69
|
-
cursor: pointer;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
.seatable-search-input-multiple .none-search-result {
|
|
73
|
-
height: 100px;
|
|
74
|
-
width: 100%;
|
|
75
|
-
padding: 10px;
|
|
76
|
-
color: var(--bs-body-secondary-color);
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.multiple-selects-editor-list .seatable-search-input-multiple {
|
|
80
|
-
padding: 10px 10px 0;
|
|
81
|
-
}
|
|
@@ -1,141 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
-
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports.default = void 0;
|
|
9
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
10
|
-
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
var _DTableIcon = _interopRequireDefault(require("../DTableIcon"));
|
|
12
|
-
require("./index.css");
|
|
13
|
-
var _jsxRuntime = require("react/jsx-runtime");
|
|
14
|
-
class DTableCustomizeSearchInput extends _react.Component {
|
|
15
|
-
constructor(props) {
|
|
16
|
-
super(props);
|
|
17
|
-
this.onCompositionStart = () => {
|
|
18
|
-
this.isInputtingChinese = true;
|
|
19
|
-
};
|
|
20
|
-
this.onChange = e => {
|
|
21
|
-
this.timer && clearTimeout(this.timer);
|
|
22
|
-
const {
|
|
23
|
-
onChange,
|
|
24
|
-
wait = 100
|
|
25
|
-
} = this.props;
|
|
26
|
-
let text = e.target.value;
|
|
27
|
-
this.setState({
|
|
28
|
-
searchValue: text || ''
|
|
29
|
-
}, () => {
|
|
30
|
-
if (this.isInputtingChinese) return;
|
|
31
|
-
this.timer = setTimeout(() => {
|
|
32
|
-
onChange && onChange(this.state.searchValue.trim());
|
|
33
|
-
}, wait);
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
this.onCompositionEnd = e => {
|
|
37
|
-
this.isInputtingChinese = false;
|
|
38
|
-
this.onChange(e);
|
|
39
|
-
};
|
|
40
|
-
this.clearSearch = e => {
|
|
41
|
-
e && e.stopPropagation && e.stopPropagation();
|
|
42
|
-
const {
|
|
43
|
-
clearValue
|
|
44
|
-
} = this.props;
|
|
45
|
-
this.setState({
|
|
46
|
-
searchValue: ''
|
|
47
|
-
}, () => {
|
|
48
|
-
clearValue && clearValue();
|
|
49
|
-
});
|
|
50
|
-
};
|
|
51
|
-
this.setFocus = isSelectAllText => {
|
|
52
|
-
if (this.inputRef === document.activeElement) return;
|
|
53
|
-
this.inputRef.focus();
|
|
54
|
-
if (isSelectAllText) {
|
|
55
|
-
const txtLength = this.state.searchValue.length;
|
|
56
|
-
this.inputRef.setSelectionRange(0, txtLength);
|
|
57
|
-
}
|
|
58
|
-
};
|
|
59
|
-
this.renderClear = () => {
|
|
60
|
-
const {
|
|
61
|
-
isClearable,
|
|
62
|
-
clearClassName
|
|
63
|
-
} = this.props;
|
|
64
|
-
const {
|
|
65
|
-
searchValue
|
|
66
|
-
} = this.state;
|
|
67
|
-
if (!isClearable || !searchValue) return null;
|
|
68
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
69
|
-
className: (0, _classnames.default)('search-text-clear input-icon-addon', clearClassName),
|
|
70
|
-
style: {
|
|
71
|
-
fontSize: '12px'
|
|
72
|
-
},
|
|
73
|
-
onClick: this.clearSearch,
|
|
74
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
|
|
75
|
-
symbol: "close",
|
|
76
|
-
color: "var(--bs-icon-secondary-color)"
|
|
77
|
-
})
|
|
78
|
-
});
|
|
79
|
-
};
|
|
80
|
-
this.state = {
|
|
81
|
-
searchValue: props.value || ''
|
|
82
|
-
};
|
|
83
|
-
this.isInputtingChinese = false;
|
|
84
|
-
this.timer = null;
|
|
85
|
-
this.inputRef = null;
|
|
86
|
-
}
|
|
87
|
-
componentDidMount() {
|
|
88
|
-
if (this.props.autoFocus && this.inputRef && this.inputRef !== document.activeElement) {
|
|
89
|
-
setTimeout(() => {
|
|
90
|
-
this.inputRef.focus();
|
|
91
|
-
}, 0);
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
UNSAFE_componentWillReceiveProps(nextProps) {
|
|
95
|
-
if (nextProps.value !== this.props.value) {
|
|
96
|
-
this.setState({
|
|
97
|
-
searchValue: nextProps.value
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
componentWillUnmount() {
|
|
102
|
-
this.timer && clearTimeout(this.timer);
|
|
103
|
-
this.timer = null;
|
|
104
|
-
this.inputRef = null;
|
|
105
|
-
}
|
|
106
|
-
render() {
|
|
107
|
-
const {
|
|
108
|
-
placeholder,
|
|
109
|
-
autoFocus,
|
|
110
|
-
className,
|
|
111
|
-
onKeyDown,
|
|
112
|
-
disabled = false,
|
|
113
|
-
style = {},
|
|
114
|
-
isClearable,
|
|
115
|
-
isMultiple = false
|
|
116
|
-
} = this.props;
|
|
117
|
-
const {
|
|
118
|
-
searchValue
|
|
119
|
-
} = this.state;
|
|
120
|
-
const inputWidth = isClearable && searchValue && !isMultiple ? 'calc(100% - 40px)' : '100%';
|
|
121
|
-
style.width = inputWidth;
|
|
122
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_react.Fragment, {
|
|
123
|
-
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("input", {
|
|
124
|
-
type: "text",
|
|
125
|
-
name: "search-input",
|
|
126
|
-
value: searchValue,
|
|
127
|
-
className: (0, _classnames.default)('form-control', className),
|
|
128
|
-
onChange: this.onChange,
|
|
129
|
-
autoFocus: autoFocus,
|
|
130
|
-
placeholder: placeholder,
|
|
131
|
-
onCompositionStart: this.onCompositionStart,
|
|
132
|
-
onCompositionEnd: this.onCompositionEnd,
|
|
133
|
-
onKeyDown: onKeyDown,
|
|
134
|
-
disabled: disabled,
|
|
135
|
-
style: style,
|
|
136
|
-
ref: ref => this.inputRef = ref
|
|
137
|
-
}), this.renderClear()]
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
}
|
|
141
|
-
var _default = exports.default = DTableCustomizeSearchInput;
|
|
@@ -1,109 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
const KeyCodes = {
|
|
8
|
-
Backspace: 8,
|
|
9
|
-
Tab: 9,
|
|
10
|
-
Enter: 13,
|
|
11
|
-
Shift: 16,
|
|
12
|
-
Ctrl: 17,
|
|
13
|
-
Alt: 18,
|
|
14
|
-
PauseBreak: 19,
|
|
15
|
-
CapsLock: 20,
|
|
16
|
-
Escape: 27,
|
|
17
|
-
Esc: 27,
|
|
18
|
-
Space: 32,
|
|
19
|
-
PageUp: 33,
|
|
20
|
-
PageDown: 34,
|
|
21
|
-
End: 35,
|
|
22
|
-
Home: 36,
|
|
23
|
-
LeftArrow: 37,
|
|
24
|
-
UpArrow: 38,
|
|
25
|
-
RightArrow: 39,
|
|
26
|
-
DownArrow: 40,
|
|
27
|
-
Insert: 45,
|
|
28
|
-
Delete: 46,
|
|
29
|
-
0: 48,
|
|
30
|
-
1: 49,
|
|
31
|
-
2: 50,
|
|
32
|
-
3: 51,
|
|
33
|
-
4: 52,
|
|
34
|
-
5: 53,
|
|
35
|
-
6: 54,
|
|
36
|
-
7: 55,
|
|
37
|
-
8: 56,
|
|
38
|
-
9: 57,
|
|
39
|
-
a: 65,
|
|
40
|
-
b: 66,
|
|
41
|
-
c: 67,
|
|
42
|
-
d: 68,
|
|
43
|
-
e: 69,
|
|
44
|
-
f: 70,
|
|
45
|
-
g: 71,
|
|
46
|
-
h: 72,
|
|
47
|
-
i: 73,
|
|
48
|
-
j: 74,
|
|
49
|
-
k: 75,
|
|
50
|
-
l: 76,
|
|
51
|
-
m: 77,
|
|
52
|
-
n: 78,
|
|
53
|
-
o: 79,
|
|
54
|
-
p: 80,
|
|
55
|
-
q: 81,
|
|
56
|
-
r: 82,
|
|
57
|
-
s: 83,
|
|
58
|
-
t: 84,
|
|
59
|
-
u: 85,
|
|
60
|
-
v: 86,
|
|
61
|
-
w: 87,
|
|
62
|
-
x: 88,
|
|
63
|
-
y: 89,
|
|
64
|
-
z: 90,
|
|
65
|
-
LeftWindowKey: 91,
|
|
66
|
-
RightWindowKey: 92,
|
|
67
|
-
SelectKey: 93,
|
|
68
|
-
NumPad0: 96,
|
|
69
|
-
NumPad1: 97,
|
|
70
|
-
NumPad2: 98,
|
|
71
|
-
NumPad3: 99,
|
|
72
|
-
NumPad4: 100,
|
|
73
|
-
NumPad5: 101,
|
|
74
|
-
NumPad6: 102,
|
|
75
|
-
NumPad7: 103,
|
|
76
|
-
NumPad8: 104,
|
|
77
|
-
NumPad9: 105,
|
|
78
|
-
Multiply: 106,
|
|
79
|
-
Add: 107,
|
|
80
|
-
Subtract: 109,
|
|
81
|
-
DecimalPoint: 110,
|
|
82
|
-
Divide: 111,
|
|
83
|
-
F1: 112,
|
|
84
|
-
F2: 113,
|
|
85
|
-
F3: 114,
|
|
86
|
-
F4: 115,
|
|
87
|
-
F5: 116,
|
|
88
|
-
F6: 117,
|
|
89
|
-
F7: 118,
|
|
90
|
-
F8: 119,
|
|
91
|
-
F9: 120,
|
|
92
|
-
F10: 121,
|
|
93
|
-
F12: 123,
|
|
94
|
-
NumLock: 144,
|
|
95
|
-
ScrollLock: 145,
|
|
96
|
-
SemiColon: 186,
|
|
97
|
-
EqualSign: 187,
|
|
98
|
-
Comma: 188,
|
|
99
|
-
Dash: 189,
|
|
100
|
-
Period: 190,
|
|
101
|
-
ForwardSlash: 191,
|
|
102
|
-
GraveAccent: 192,
|
|
103
|
-
OpenBracket: 219,
|
|
104
|
-
BackSlash: 220,
|
|
105
|
-
CloseBracket: 221,
|
|
106
|
-
SingleQuote: 222,
|
|
107
|
-
ChineseInputMethod: 229
|
|
108
|
-
};
|
|
109
|
-
var _default = exports.default = KeyCodes;
|
|
@@ -1,134 +0,0 @@
|
|
|
1
|
-
.seatable-option-group {
|
|
2
|
-
position: absolute;
|
|
3
|
-
left: 0;
|
|
4
|
-
min-height: 60px;
|
|
5
|
-
max-height: 300px;
|
|
6
|
-
min-width: 100%;
|
|
7
|
-
max-width: 15rem;
|
|
8
|
-
box-shadow: 0px 6px 14px rgba(0, 0, 0, 0.1);
|
|
9
|
-
background: var(--bs-popover-bg);
|
|
10
|
-
border: 1px solid rgba(0, 40, 100, 0.12);
|
|
11
|
-
border-radius: 4px;
|
|
12
|
-
z-index: 10001;
|
|
13
|
-
margin-top: 4px;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.seatable-option-group-search {
|
|
17
|
-
border-bottom: 1px solid var(--bs-border-color);
|
|
18
|
-
height: 32px;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
.seatable-option-group .seatable-option-group-search {
|
|
22
|
-
width: 100%;
|
|
23
|
-
min-width: 170px;
|
|
24
|
-
position: relative;
|
|
25
|
-
padding: 0;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.seatable-option-group .seatable-option-group-search .form-control {
|
|
29
|
-
height: 100%;
|
|
30
|
-
border: none;
|
|
31
|
-
padding: .375rem 1rem;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.seatable-option-group .seatable-option-group-search .form-control:focus {
|
|
36
|
-
outline: none;
|
|
37
|
-
box-shadow: none;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
.seatable-option-group-search .input-icon-addon,
|
|
41
|
-
.seatable-option-group .seatable-option-group-search .input-icon-addon {
|
|
42
|
-
z-index: 1;
|
|
43
|
-
pointer-events: auto;
|
|
44
|
-
min-width: 2.75rem !important;
|
|
45
|
-
width: 40px;
|
|
46
|
-
height: 32px;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.seatable-option-group .seatable-option-group-search .input-icon-addon svg {
|
|
50
|
-
color: #999;
|
|
51
|
-
cursor: pointer;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.seatable-option-group .none-search-result {
|
|
55
|
-
height: 100px;
|
|
56
|
-
width: 100%;
|
|
57
|
-
padding: 8px;
|
|
58
|
-
color: var(--bs-body-secondary-color);
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.seatable-option-group .seatable-option-group-content {
|
|
62
|
-
max-height: 252px;
|
|
63
|
-
overflow-y: auto;
|
|
64
|
-
padding: 8px;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
.seatable-select-option {
|
|
68
|
-
position: relative;
|
|
69
|
-
display: flex;
|
|
70
|
-
justify-content: space-between;
|
|
71
|
-
align-items: center;
|
|
72
|
-
width: 100%;
|
|
73
|
-
line-height: 24px;
|
|
74
|
-
padding: 0.25rem 8px;
|
|
75
|
-
clear: both;
|
|
76
|
-
font-weight: 400;
|
|
77
|
-
text-align: inherit;
|
|
78
|
-
background-color: transparent;
|
|
79
|
-
border: 0;
|
|
80
|
-
overflow: hidden;
|
|
81
|
-
text-overflow: ellipsis;
|
|
82
|
-
white-space: nowrap;
|
|
83
|
-
border-radius: 4px;
|
|
84
|
-
height: 32px;
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
.seatable-select-option.seatable-select-option-active {
|
|
88
|
-
cursor: pointer;
|
|
89
|
-
background-color: rgba(0, 0, 0, 0.04);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.seatable-select-option .select-option-name .multiple-select-option {
|
|
93
|
-
margin: 0;
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
.seatable-option-group .dtable-icon-check {
|
|
97
|
-
color: var(--bs-icon-color);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
.select-label {
|
|
101
|
-
width: 100%;
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
.seatable-option-group-selector-multiple-select .select-label,
|
|
105
|
-
.seatable-option-group-selector-single-select .select-option-name,
|
|
106
|
-
.seatable-option-group-selector-multiple-select .multiple-option-name {
|
|
107
|
-
display: flex;
|
|
108
|
-
align-items: center;
|
|
109
|
-
justify-content: space-between;
|
|
110
|
-
width: 100%;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
.seatable-option-group-selector-multiple-select .multiple-check-icon {
|
|
114
|
-
display: inline-flex;
|
|
115
|
-
text-align: center;
|
|
116
|
-
color: var(--bs-icon-color);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
.seatable-option-group-selector-multiple-select .multiple-check-icon .dtable-icon-check {
|
|
120
|
-
font-size: 14px;
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.seatable-option-group-selector-single-select .seatable-select-option:hover,
|
|
124
|
-
.seatable-option-group-selector-single-select .seatable-select-option.seatable-select-option-active,
|
|
125
|
-
.seatable-option-group-selector-multiple-select .seatable-select-option:hover,
|
|
126
|
-
.seatable-option-group-selector-multiple-select .seatable-select-option.seatable-select-option-active {
|
|
127
|
-
background-color: #f5f5f5;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.select-label .header-icon {
|
|
131
|
-
display: inline-block;
|
|
132
|
-
padding: 0 .5rem 0 0!important;
|
|
133
|
-
margin-left: 0 !important;
|
|
134
|
-
}
|