@neovici/cosmoz-omnitable 12.24.0 → 12.25.1
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.
|
@@ -105,7 +105,7 @@ class OmnitableColumnBoolean extends columnMixin(PolymerElement) {
|
|
|
105
105
|
? html`<paper-spinner-lite style="width: 20px; height: 20px;" suffix slot="suffix" active></paper-spinner-lite>`
|
|
106
106
|
: nothing;
|
|
107
107
|
|
|
108
|
-
return html`<cosmoz-autocomplete
|
|
108
|
+
return html`<cosmoz-autocomplete-ui
|
|
109
109
|
no-label-float
|
|
110
110
|
.title=${ computeItemTooltip(column.title, item, column.valuePath, computeSource(trueLabel, falseLabel)) }
|
|
111
111
|
.source=${ computeSource(trueLabel, falseLabel) }
|
|
@@ -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
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-omnitable",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.25.1",
|
|
4
4
|
"description": "[](https://travis-ci.org/Neovici/cosmoz-omnitable)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components"
|