@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
  */
@@ -83,6 +83,8 @@ const columnSymbol = Symbol('column'),
83
83
  values: column.values,
84
84
  source: memooize(column.computeSource),
85
85
 
86
+ noLocalFilter: column.noLocalFilter,
87
+
86
88
  // @deprecated
87
89
  loading: column.loading,
88
90
  externalValues: column.externalValues,
@@ -102,9 +102,10 @@ export const useProcessedItems = ({
102
102
  columns
103
103
  .map((col) => [
104
104
  col.name,
105
- col.getFilterFn(col, filters[col.name]?.filter),
105
+ !col.noLocalFilter &&
106
+ col.getFilterFn(col, filters[col.name]?.filter),
106
107
  ])
107
- .filter(([, fn]) => fn !== undefined)
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.14.0",
3
+ "version": "12.15.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"