dtable-ui-component 7.0.0-ahn.1 → 7.0.0-ahn.11
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/AsyncUserSelect/index.css +3 -11
- package/lib/AsyncUserSelect/index.js +1 -1
- package/lib/DTableCustomizeSearchInput/index.css +40 -49
- package/lib/DTableCustomizeSearchInput/index.js +2 -5
- package/lib/DTableCustomizeSelect/index.js +1 -1
- package/lib/SelectOptionGroup/index.css +3 -35
- package/lib/SelectOptionGroup/index.js +1 -1
- package/package.json +1 -1
|
@@ -32,10 +32,6 @@
|
|
|
32
32
|
.dtable-ui-user-select-popover .popover {
|
|
33
33
|
width: 385px;
|
|
34
34
|
max-width: 385px;
|
|
35
|
-
background: var(--bs-popover-bg);
|
|
36
|
-
border: 1px solid var(--bs-border-secondary-color);
|
|
37
|
-
border-radius: 4px;
|
|
38
|
-
box-shadow: var(--bs-border-secondary-shadow);
|
|
39
35
|
margin-top: -4px;
|
|
40
36
|
}
|
|
41
37
|
|
|
@@ -68,12 +64,8 @@
|
|
|
68
64
|
cursor: pointer;
|
|
69
65
|
}
|
|
70
66
|
|
|
71
|
-
.
|
|
72
|
-
|
|
73
|
-
font-size: 14px;
|
|
74
|
-
padding-left: 10px;
|
|
75
|
-
padding: 10px;
|
|
76
|
-
overflow: auto;
|
|
67
|
+
.dtable-ui-user-select-container .dtable-ui-user-list-container {
|
|
68
|
+
margin: 0 !important;
|
|
77
69
|
}
|
|
78
70
|
|
|
79
71
|
.dtable-ui-user-select-popover .popover .dtable-ui-user-item {
|
|
@@ -81,7 +73,7 @@
|
|
|
81
73
|
}
|
|
82
74
|
|
|
83
75
|
.dtable-ui-user-list-container .dtable-ui-collaborator-check-icon .dtable-icon-check {
|
|
84
|
-
color:
|
|
76
|
+
color: var(--bs-icon-color);
|
|
85
77
|
font-size: 14px;
|
|
86
78
|
}
|
|
87
79
|
|
|
@@ -248,7 +248,7 @@ const AsyncUserSelect = _ref => {
|
|
|
248
248
|
ref: userSelectContainerRef,
|
|
249
249
|
onMouseDown: e => e.stopPropagation(),
|
|
250
250
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
251
|
-
className: "seatable-
|
|
251
|
+
className: "seatable-select-search",
|
|
252
252
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
|
|
253
253
|
className: "option-search-control",
|
|
254
254
|
placeholder: searchPlaceholder || (0, _lang.getLocale)('Search_users'),
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
.seatable-search-input {
|
|
3
2
|
width: 100%;
|
|
4
3
|
padding: 6px 10px;
|
|
@@ -6,76 +5,68 @@
|
|
|
6
5
|
position: relative;
|
|
7
6
|
padding: 0;
|
|
8
7
|
height: 32px;
|
|
9
|
-
border-bottom: 1px solid var(--bs-border-color);
|
|
8
|
+
border-bottom: 1px solid var(--bs-border-secondary-color);
|
|
10
9
|
}
|
|
11
10
|
|
|
12
|
-
.seatable-search
|
|
11
|
+
.seatable-select-search {
|
|
12
|
+
border-bottom: 1px solid var(--bs-border-secondary-color);
|
|
13
|
+
height: 32px;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
.select-search-control {
|
|
13
17
|
height: 100%;
|
|
14
18
|
border: none;
|
|
15
|
-
padding: .375rem 1rem;
|
|
16
19
|
cursor: pointer;
|
|
20
|
+
display: block;
|
|
21
|
+
background-color: var(--bs-popover-bg);
|
|
22
|
+
font-weight: 400;
|
|
23
|
+
font-size: .875rem;
|
|
24
|
+
line-height: 1.6;
|
|
25
|
+
width: 100%;
|
|
26
|
+
padding: .375rem 1rem;
|
|
17
27
|
}
|
|
18
28
|
|
|
19
|
-
.
|
|
20
|
-
.seatable-search-input .form-control:focus {
|
|
29
|
+
.select-search-control:focus {
|
|
21
30
|
outline: none;
|
|
22
31
|
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);
|
|
32
|
+
border: none;
|
|
33
33
|
cursor: pointer;
|
|
34
|
+
height: 100%;
|
|
34
35
|
}
|
|
35
36
|
|
|
36
|
-
.
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
height: 40px;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
.seatable-search-input-multiple .form-control {
|
|
53
|
-
height: 30px;
|
|
54
|
-
padding: .375rem 2.5rem .375rem 1rem;
|
|
37
|
+
.clear-icon-x {
|
|
38
|
+
position: absolute;
|
|
39
|
+
display: flex;
|
|
40
|
+
justify-content: center;
|
|
41
|
+
align-items: center;
|
|
42
|
+
min-width: 20px;
|
|
43
|
+
pointer-events: auto;
|
|
44
|
+
color: var(--bs-icon-color);
|
|
45
|
+
right: 13px;
|
|
46
|
+
top: 6px;
|
|
47
|
+
z-index: 1;
|
|
48
|
+
height: 20px;
|
|
49
|
+
width: 20px;
|
|
55
50
|
cursor: pointer;
|
|
51
|
+
border-radius: 3px;
|
|
56
52
|
}
|
|
57
53
|
|
|
58
|
-
.
|
|
59
|
-
|
|
60
|
-
pointer-events: auto;
|
|
61
|
-
min-width: 2.75rem !important;
|
|
62
|
-
top: 10px;
|
|
63
|
-
height: 30px;
|
|
64
|
-
right: 10px;
|
|
54
|
+
.clear-icon-x .multicolor-icon {
|
|
55
|
+
font-size: 12px;
|
|
65
56
|
}
|
|
66
57
|
|
|
67
|
-
.
|
|
68
|
-
color: var(--bs-
|
|
69
|
-
cursor: pointer;
|
|
58
|
+
.clear-icon-x:hover {
|
|
59
|
+
background-color: var(--bs-btn-background-hover);
|
|
70
60
|
}
|
|
71
61
|
|
|
72
|
-
.seatable-search-input
|
|
62
|
+
.seatable-search-input .none-search-result {
|
|
73
63
|
height: 100px;
|
|
74
64
|
width: 100%;
|
|
75
65
|
padding: 10px;
|
|
76
|
-
color: var(--bs-
|
|
66
|
+
color: var(--bs-icon-color);
|
|
77
67
|
}
|
|
78
68
|
|
|
79
|
-
.
|
|
80
|
-
|
|
69
|
+
.dtable-popover .select-search-control {
|
|
70
|
+
border-top-left-radius: 8px;
|
|
71
|
+
border-top-right-radius: 8px;
|
|
81
72
|
}
|
|
@@ -61,10 +61,7 @@ class DTableCustomizeSearchInput extends _react.Component {
|
|
|
61
61
|
const searchValue = this.state.searchValue;
|
|
62
62
|
if (!isClearable || !searchValue) return null;
|
|
63
63
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
64
|
-
className: (0, _classnames.default)('
|
|
65
|
-
style: {
|
|
66
|
-
fontSize: '12px'
|
|
67
|
-
},
|
|
64
|
+
className: (0, _classnames.default)('clear-icon-x', clearClassName),
|
|
68
65
|
onClick: this.clearSearch,
|
|
69
66
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableIcon.default, {
|
|
70
67
|
symbol: "close",
|
|
@@ -119,7 +116,7 @@ class DTableCustomizeSearchInput extends _react.Component {
|
|
|
119
116
|
type: "text",
|
|
120
117
|
name: "search-input",
|
|
121
118
|
value: searchValue,
|
|
122
|
-
className: (0, _classnames.default)('
|
|
119
|
+
className: (0, _classnames.default)('select-search-control', className),
|
|
123
120
|
onChange: this.onChange,
|
|
124
121
|
autoFocus: autoFocus,
|
|
125
122
|
placeholder: placeholder,
|
|
@@ -24,7 +24,7 @@ class DTableCustomizeSelect extends _react.Component {
|
|
|
24
24
|
*/
|
|
25
25
|
if (this.state.isShowSelectOptions) event.stopPropagation();
|
|
26
26
|
let eventClassName = event.target.className;
|
|
27
|
-
if (this.props.isLocked || eventClassName.indexOf('option-search-control') > -1 || eventClassName === 'seatable-
|
|
27
|
+
if (this.props.isLocked || eventClassName.indexOf('option-search-control') > -1 || eventClassName === 'seatable-select-search') return;
|
|
28
28
|
// Prevent closing by pressing the spacebar in the search input
|
|
29
29
|
if (event.target.value === '') return;
|
|
30
30
|
this.setState({
|
|
@@ -12,49 +12,17 @@
|
|
|
12
12
|
z-index: 10001;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.seatable-option-group-search {
|
|
16
|
-
border-bottom: 1px solid var(--bs-border-color);
|
|
17
|
-
height: 32px;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
.seatable-option-group .seatable-option-group-search {
|
|
15
|
+
.seatable-option-group .seatable-select-search {
|
|
21
16
|
width: 100%;
|
|
22
17
|
min-width: 170px;
|
|
23
18
|
position: relative;
|
|
24
|
-
padding: 0;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
.seatable-option-group .seatable-option-group-search .form-control {
|
|
28
|
-
height: 100%;
|
|
29
|
-
border: none;
|
|
30
|
-
padding: .375rem 1rem;
|
|
31
|
-
cursor: pointer;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
.seatable-option-group .seatable-option-group-search .form-control:focus {
|
|
35
|
-
outline: none;
|
|
36
|
-
box-shadow: none;
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.seatable-option-group-search .input-icon-addon,
|
|
40
|
-
.seatable-option-group .seatable-option-group-search .input-icon-addon {
|
|
41
|
-
z-index: 1;
|
|
42
|
-
pointer-events: auto;
|
|
43
|
-
min-width: 2.75rem !important;
|
|
44
|
-
width: 40px;
|
|
45
|
-
height: 32px;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
.seatable-option-group .seatable-option-group-search .input-icon-addon svg {
|
|
49
|
-
color: var(--bs-body-secondary-color);
|
|
50
|
-
cursor: pointer;
|
|
51
19
|
}
|
|
52
20
|
|
|
53
21
|
.seatable-option-group .none-search-result {
|
|
54
22
|
height: 100px;
|
|
55
23
|
width: 100%;
|
|
56
24
|
padding: 8px;
|
|
57
|
-
color: var(--bs-
|
|
25
|
+
color: var(--bs-icon-color);
|
|
58
26
|
}
|
|
59
27
|
|
|
60
28
|
.seatable-option-group .seatable-option-group-content {
|
|
@@ -130,6 +98,6 @@
|
|
|
130
98
|
|
|
131
99
|
.select-label .header-icon {
|
|
132
100
|
display: inline-block;
|
|
133
|
-
padding: 0 .5rem 0 0!important;
|
|
101
|
+
padding: 0 .5rem 0 0 !important;
|
|
134
102
|
margin-left: 0 !important;
|
|
135
103
|
}
|
|
@@ -235,7 +235,7 @@ class SelectOptionGroup extends _react.Component {
|
|
|
235
235
|
onClick: e => e.stopPropagation(),
|
|
236
236
|
children: value.label || ''
|
|
237
237
|
}), searchable && /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
|
|
238
|
-
className: "seatable-
|
|
238
|
+
className: "seatable-select-search",
|
|
239
239
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_DTableCustomizeSearchInput.default, {
|
|
240
240
|
className: "option-search-control",
|
|
241
241
|
placeholder: searchPlaceholder,
|