@neovici/cosmoz-omnitable 12.14.0 → 12.15.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.
|
@@ -32,6 +32,7 @@ export const getString = ({ valuePath }, item) => get(item, valuePath),
|
|
|
32
32
|
valuePath: { type: String, notify: true },
|
|
33
33
|
values: { type: Array, notify: true },
|
|
34
34
|
filter: { type: Object },
|
|
35
|
+
noLocalFilter: { type: Boolean },
|
|
35
36
|
/**
|
|
36
37
|
* If the column should be disabled until enabled with enabledColumns
|
|
37
38
|
*/
|
package/lib/use-dom-columns.js
CHANGED
|
@@ -102,9 +102,10 @@ export const useProcessedItems = ({
|
|
|
102
102
|
columns
|
|
103
103
|
.map((col) => [
|
|
104
104
|
col.name,
|
|
105
|
-
col.
|
|
105
|
+
!col.noLocalFilter &&
|
|
106
|
+
col.getFilterFn(col, filters[col.name]?.filter),
|
|
106
107
|
])
|
|
107
|
-
.filter(([, fn]) => fn
|
|
108
|
+
.filter(([, fn]) => !!fn)
|
|
108
109
|
);
|
|
109
110
|
}, [columns, ...filterValues]),
|
|
110
111
|
filteredItems = useMemo(() => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-omnitable",
|
|
3
|
-
"version": "12.
|
|
3
|
+
"version": "12.15.0",
|
|
4
4
|
"description": "[](https://travis-ci.org/Neovici/cosmoz-omnitable)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components"
|