@toolbox-web/grid 1.30.0 → 1.30.2
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.
- package/all.js +1 -1
- package/all.js.map +1 -1
- package/index.js +1 -1
- package/lib/plugins/filtering/index.js +1 -1
- package/lib/plugins/filtering/index.js.map +1 -1
- package/lib/plugins/filtering/types.d.ts +16 -0
- package/package.json +1 -1
- package/umd/grid.all.umd.js +1 -1
- package/umd/grid.all.umd.js.map +1 -1
- package/umd/plugins/filtering.umd.js +1 -1
- package/umd/plugins/filtering.umd.js.map +1 -1
|
@@ -38,6 +38,22 @@ declare module '../../core/types' {
|
|
|
38
38
|
* ```
|
|
39
39
|
*/
|
|
40
40
|
filterValue?: (value: unknown, row: any) => unknown | unknown[];
|
|
41
|
+
/**
|
|
42
|
+
* Override the filter panel UI type independently of the column's `type`.
|
|
43
|
+
*
|
|
44
|
+
* By default the built-in filter panel is chosen based on `column.type`
|
|
45
|
+
* (e.g. `'number'` → range slider, `'date'` → date pickers). Set
|
|
46
|
+
* `filterType` when you want a different panel — for example a numeric
|
|
47
|
+
* column that should show a set (checkbox list) filter instead of a
|
|
48
|
+
* range slider.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```typescript
|
|
52
|
+
* // Volume is stored as a number but users want a value-picker
|
|
53
|
+
* { field: 'volume', type: 'number', filterType: 'set', filterable: true }
|
|
54
|
+
* ```
|
|
55
|
+
*/
|
|
56
|
+
filterType?: FilterType;
|
|
41
57
|
}
|
|
42
58
|
interface TypeDefault {
|
|
43
59
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@toolbox-web/grid",
|
|
3
|
-
"version": "1.30.
|
|
3
|
+
"version": "1.30.2",
|
|
4
4
|
"description": "Zero-dependency, framework-agnostic data grid web component with virtualization, sorting, filtering, editing, and 20+ plugins. Works in vanilla JS, React, Vue, Angular, and any framework.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./index.js",
|