@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.
@@ -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.0",
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",