@neovici/cosmoz-omnitable 12.24.0 → 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) => computeValues(column, invoke(column.values, ...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.24.0",
3
+ "version": "12.25.0",
4
4
  "description": "[![Build Status](https://travis-ci.org/Neovici/cosmoz-omnitable.svg?branch=master)](https://travis-ci.org/Neovici/cosmoz-omnitable)",
5
5
  "keywords": [
6
6
  "web-components"