@neovici/cosmoz-omnitable 12.23.1 → 12.25.0
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.
|
@@ -81,7 +81,7 @@ const unique = (values, valueProperty) => {
|
|
|
81
81
|
(filter) =>
|
|
82
82
|
(values.length === 0 &&
|
|
83
83
|
prop(emptyProperty || valueProperty)(filter) === emptyValue) ||
|
|
84
|
-
values.some((value) => val(value) === val(filter))
|
|
84
|
+
values.some((value) => val(value) === val(filter)),
|
|
85
85
|
);
|
|
86
86
|
},
|
|
87
87
|
onChange = (setState) => (value) =>
|
|
@@ -92,7 +92,7 @@ const unique = (values, valueProperty) => {
|
|
|
92
92
|
setState((state) => ({ ...state, query: text })),
|
|
93
93
|
computeValues = (
|
|
94
94
|
{ emptyValue, emptyLabel, emptyProperty, textProperty, valueProperty },
|
|
95
|
-
rawSource
|
|
95
|
+
rawSource,
|
|
96
96
|
) => {
|
|
97
97
|
const source = toAutocompleteSource(rawSource, valueProperty, textProperty);
|
|
98
98
|
if (
|
|
@@ -174,7 +174,11 @@ const unique = (values, valueProperty) => {
|
|
|
174
174
|
|
|
175
175
|
computeSource(column, data) {
|
|
176
176
|
return column.externalValues || typeof column.values === 'function'
|
|
177
|
-
? (...args) =>
|
|
177
|
+
? async (...args) =>
|
|
178
|
+
computeValues(
|
|
179
|
+
column,
|
|
180
|
+
await Promise.resolve(invoke(column.values, ...args)),
|
|
181
|
+
)
|
|
178
182
|
: computeSource(column, data);
|
|
179
183
|
}
|
|
180
184
|
};
|
|
@@ -53,7 +53,9 @@ const checkbox = css`
|
|
|
53
53
|
}
|
|
54
54
|
|
|
55
55
|
.checkbox:hover {
|
|
56
|
-
box-shadow:
|
|
56
|
+
box-shadow:
|
|
57
|
+
0 0 0 2px rgba(0, 0, 0, 1) inset,
|
|
58
|
+
0 0 2px 6px #2021240f;
|
|
57
59
|
}
|
|
58
60
|
|
|
59
61
|
.checkbox:checked:hover {
|
|
@@ -449,7 +451,7 @@ export default css`
|
|
|
449
451
|
.itemRow:hover {
|
|
450
452
|
box-shadow: inset 1px 0 0 #dadce0, inset -1px 0 0 #dadce0,
|
|
451
453
|
0 1px 2px 0 rgb(60 64 67 / 30%), 0 1px 3px 1px rgb(60 64 67 / 15%);
|
|
452
|
-
background: var(--cosmoz-omnitable-hover-color
|
|
454
|
+
background: var(--cosmoz-omnitable-hover-color);
|
|
453
455
|
}
|
|
454
456
|
.groupRow:hover .checkbox:not(:checked):not(:hover),
|
|
455
457
|
.itemRow:hover .checkbox:not(:checked):not(:hover) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-omnitable",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.25.0",
|
|
4
4
|
"description": "[](https://travis-ci.org/Neovici/cosmoz-omnitable)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components"
|