@rozie-ui/data-table-solid 0.2.0 → 0.2.1
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/dist/index.d.cts +18 -18
- package/dist/index.d.mts +18 -18
- package/package.json +2 -2
- package/src/Column.tsx +2 -2
- package/src/DataTable.tsx +1 -6
- package/src/EditorCheckbox.tsx +2 -2
- package/src/EditorDate.tsx +2 -2
- package/src/EditorNumber.tsx +2 -2
- package/src/EditorSelect.tsx +2 -2
- package/src/EditorText.tsx +2 -2
- package/src/FilterNumberRange.tsx +1 -1
- package/src/FilterSelect.tsx +1 -1
- package/src/FilterText.tsx +1 -1
- package/src/GroupBar.tsx +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -113,7 +113,7 @@ interface DataTableProps {
|
|
|
113
113
|
/**
|
|
114
114
|
* Table-level child-row accessor `(originalRow, index) => TData[] | undefined` that drives nested sub-rows. When supplied (with `expandable`), table-core flattens the hierarchy and the expand seam reveals depth-indented child rows. Null → the `#detail` scoped slot is the expand mode.
|
|
115
115
|
*/
|
|
116
|
-
getSubRows?: ((...args:
|
|
116
|
+
getSubRows?: ((...args: any[]) => any) | null;
|
|
117
117
|
/**
|
|
118
118
|
* Opt-in gate for the **headless `#groupBar`** host region. Default `false` is byte-identical-off. `getGroupedRowModel` is wired unconditionally (inert when `grouping` is empty), so grouping is driven by the `grouping` model; this flag only gates the consumer-facing group-bar surface (the component ships **no** built-in drag UI).
|
|
119
119
|
*/
|
|
@@ -294,7 +294,7 @@ interface ColumnProps {
|
|
|
294
294
|
/**
|
|
295
295
|
* The table-core aggregation for this column inside a group-header cell. Either a built-in name string — `'sum'` | `'min'` | `'max'` | `'extent'` | `'mean'` | `'median'` | `'unique'` | `'uniqueCount'` | `'count'` — or a custom function `(columnId, leafRows, childRows) => any` (defensively wrapped by the parent so a throw cannot crash grouping). Null → no aggregation (the group-header cell renders as a placeholder).
|
|
296
296
|
*/
|
|
297
|
-
aggregationFn?: (string | ((...args:
|
|
297
|
+
aggregationFn?: (string | ((...args: any[]) => any)) | null;
|
|
298
298
|
/**
|
|
299
299
|
* Whether this column's cells are editable (opt-in). Default `false` → the column is read-only and the display↔editor branch never mounts an editor. Bind `:editable="true"` (a bare attr only coerces on Vue+Lit).
|
|
300
300
|
*/
|
|
@@ -310,7 +310,7 @@ interface ColumnProps {
|
|
|
310
310
|
/**
|
|
311
311
|
* Synchronous per-column validator `(value, row) => true | string`. A string return is the error message (the editor stays open and the aria-live region announces it). Null → no validation. The parent wraps it defensively against a thrown/non-bool/non-string return.
|
|
312
312
|
*/
|
|
313
|
-
validate?: ((...args:
|
|
313
|
+
validate?: ((...args: any[]) => any) | null;
|
|
314
314
|
}
|
|
315
315
|
declare function Column(_props: ColumnProps): JSX.Element;
|
|
316
316
|
//#endregion
|
|
@@ -335,11 +335,11 @@ interface EditorTextProps {
|
|
|
335
335
|
/**
|
|
336
336
|
* `(value) => void` — commit the edited cell value (from the `#editor` slot scope). Null-guarded at call sites.
|
|
337
337
|
*/
|
|
338
|
-
commit?: ((...args:
|
|
338
|
+
commit?: ((...args: any[]) => any) | null;
|
|
339
339
|
/**
|
|
340
340
|
* `() => void` — revert the edit and close the editor (from the `#editor` slot scope). Null-guarded at call sites.
|
|
341
341
|
*/
|
|
342
|
-
cancel?: ((...args:
|
|
342
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
343
343
|
/**
|
|
344
344
|
* Focus this editor's primary input when true — the host sets it for the one editor that should hold focus; reactive.
|
|
345
345
|
*/
|
|
@@ -368,11 +368,11 @@ interface EditorNumberProps {
|
|
|
368
368
|
/**
|
|
369
369
|
* `(value) => void` — commit the cell. The draft is coerced with `Number()` at commit time; an empty/whitespace or non-numeric draft commits `null` (never `NaN`). Null-guarded at call sites.
|
|
370
370
|
*/
|
|
371
|
-
commit?: ((...args:
|
|
371
|
+
commit?: ((...args: any[]) => any) | null;
|
|
372
372
|
/**
|
|
373
373
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
374
374
|
*/
|
|
375
|
-
cancel?: ((...args:
|
|
375
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
376
376
|
}
|
|
377
377
|
declare function EditorNumber(_props: EditorNumberProps): JSX.Element;
|
|
378
378
|
//#endregion
|
|
@@ -397,11 +397,11 @@ interface EditorSelectProps {
|
|
|
397
397
|
/**
|
|
398
398
|
* `(value) => void` — commit the cell with the selected value (Enter / blur). Null-guarded at call sites.
|
|
399
399
|
*/
|
|
400
|
-
commit?: ((...args:
|
|
400
|
+
commit?: ((...args: any[]) => any) | null;
|
|
401
401
|
/**
|
|
402
402
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
403
403
|
*/
|
|
404
|
-
cancel?: ((...args:
|
|
404
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
405
405
|
/**
|
|
406
406
|
* The select options — `[{ value, label }]`. Mirrors `<Column editorOptions>`.
|
|
407
407
|
*/
|
|
@@ -430,11 +430,11 @@ interface EditorCheckboxProps {
|
|
|
430
430
|
/**
|
|
431
431
|
* `(value) => void` — commit the cell. This editor immediately commits the boolean checked state on `@change`. Null-guarded at call sites.
|
|
432
432
|
*/
|
|
433
|
-
commit?: ((...args:
|
|
433
|
+
commit?: ((...args: any[]) => any) | null;
|
|
434
434
|
/**
|
|
435
435
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
436
436
|
*/
|
|
437
|
-
cancel?: ((...args:
|
|
437
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
438
438
|
}
|
|
439
439
|
declare function EditorCheckbox(_props: EditorCheckboxProps): JSX.Element;
|
|
440
440
|
//#endregion
|
|
@@ -459,11 +459,11 @@ interface EditorDateProps {
|
|
|
459
459
|
/**
|
|
460
460
|
* `(value) => void` — commit the cell with the ISO `YYYY-MM-DD` string (Enter / blur). Null-guarded at call sites.
|
|
461
461
|
*/
|
|
462
|
-
commit?: ((...args:
|
|
462
|
+
commit?: ((...args: any[]) => any) | null;
|
|
463
463
|
/**
|
|
464
464
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
465
465
|
*/
|
|
466
|
-
cancel?: ((...args:
|
|
466
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
467
467
|
}
|
|
468
468
|
declare function EditorDate(_props: EditorDateProps): JSX.Element;
|
|
469
469
|
//#endregion
|
|
@@ -484,7 +484,7 @@ interface FilterTextProps {
|
|
|
484
484
|
/**
|
|
485
485
|
* `(columnId, value) => void` — apply the column filter (Enter / blur applies, Escape clears). Null-guarded at call sites.
|
|
486
486
|
*/
|
|
487
|
-
setFilter?: ((...args:
|
|
487
|
+
setFilter?: ((...args: any[]) => any) | null;
|
|
488
488
|
}
|
|
489
489
|
declare function FilterText(_props: FilterTextProps): JSX.Element;
|
|
490
490
|
//#endregion
|
|
@@ -505,7 +505,7 @@ interface FilterNumberRangeProps {
|
|
|
505
505
|
/**
|
|
506
506
|
* `(columnId, value) => void` — apply the column filter as a `[min, max]` tuple (each side coerced to a Number or `undefined`, so a one-sided range works); both empty clears the filter. Null-guarded at call sites.
|
|
507
507
|
*/
|
|
508
|
-
setFilter?: ((...args:
|
|
508
|
+
setFilter?: ((...args: any[]) => any) | null;
|
|
509
509
|
/**
|
|
510
510
|
* The faceted `[min, max]` bounds for this column (`[number, number]` or null) — drives the input placeholders only.
|
|
511
511
|
*/
|
|
@@ -530,7 +530,7 @@ interface FilterSelectProps {
|
|
|
530
530
|
/**
|
|
531
531
|
* `(columnId, value) => void` — apply the column filter on change; the leading empty "All" option clears it. Null-guarded at call sites.
|
|
532
532
|
*/
|
|
533
|
-
setFilter?: ((...args:
|
|
533
|
+
setFilter?: ((...args: any[]) => any) | null;
|
|
534
534
|
/**
|
|
535
535
|
* The faceted distinct keys for this column (cross-filtered, keys only — no occurrence counts) used to build the `<option>` list.
|
|
536
536
|
*/
|
|
@@ -551,11 +551,11 @@ interface GroupBarProps {
|
|
|
551
551
|
/**
|
|
552
552
|
* `(cols: string[]) => void` — the only add/reorder writer for the grouping order. Null-guarded at call sites.
|
|
553
553
|
*/
|
|
554
|
-
applyGrouping?: ((...args:
|
|
554
|
+
applyGrouping?: ((...args: any[]) => any) | null;
|
|
555
555
|
/**
|
|
556
556
|
* `() => void` — the only clear writer; resets grouping to empty. Null-guarded at call sites.
|
|
557
557
|
*/
|
|
558
|
-
clearGrouping?: ((...args:
|
|
558
|
+
clearGrouping?: ((...args: any[]) => any) | null;
|
|
559
559
|
}
|
|
560
560
|
declare function GroupBar(_props: GroupBarProps): JSX.Element;
|
|
561
561
|
//#endregion
|
package/dist/index.d.mts
CHANGED
|
@@ -113,7 +113,7 @@ interface DataTableProps {
|
|
|
113
113
|
/**
|
|
114
114
|
* Table-level child-row accessor `(originalRow, index) => TData[] | undefined` that drives nested sub-rows. When supplied (with `expandable`), table-core flattens the hierarchy and the expand seam reveals depth-indented child rows. Null → the `#detail` scoped slot is the expand mode.
|
|
115
115
|
*/
|
|
116
|
-
getSubRows?: ((...args:
|
|
116
|
+
getSubRows?: ((...args: any[]) => any) | null;
|
|
117
117
|
/**
|
|
118
118
|
* Opt-in gate for the **headless `#groupBar`** host region. Default `false` is byte-identical-off. `getGroupedRowModel` is wired unconditionally (inert when `grouping` is empty), so grouping is driven by the `grouping` model; this flag only gates the consumer-facing group-bar surface (the component ships **no** built-in drag UI).
|
|
119
119
|
*/
|
|
@@ -294,7 +294,7 @@ interface ColumnProps {
|
|
|
294
294
|
/**
|
|
295
295
|
* The table-core aggregation for this column inside a group-header cell. Either a built-in name string — `'sum'` | `'min'` | `'max'` | `'extent'` | `'mean'` | `'median'` | `'unique'` | `'uniqueCount'` | `'count'` — or a custom function `(columnId, leafRows, childRows) => any` (defensively wrapped by the parent so a throw cannot crash grouping). Null → no aggregation (the group-header cell renders as a placeholder).
|
|
296
296
|
*/
|
|
297
|
-
aggregationFn?: (string | ((...args:
|
|
297
|
+
aggregationFn?: (string | ((...args: any[]) => any)) | null;
|
|
298
298
|
/**
|
|
299
299
|
* Whether this column's cells are editable (opt-in). Default `false` → the column is read-only and the display↔editor branch never mounts an editor. Bind `:editable="true"` (a bare attr only coerces on Vue+Lit).
|
|
300
300
|
*/
|
|
@@ -310,7 +310,7 @@ interface ColumnProps {
|
|
|
310
310
|
/**
|
|
311
311
|
* Synchronous per-column validator `(value, row) => true | string`. A string return is the error message (the editor stays open and the aria-live region announces it). Null → no validation. The parent wraps it defensively against a thrown/non-bool/non-string return.
|
|
312
312
|
*/
|
|
313
|
-
validate?: ((...args:
|
|
313
|
+
validate?: ((...args: any[]) => any) | null;
|
|
314
314
|
}
|
|
315
315
|
declare function Column(_props: ColumnProps): JSX.Element;
|
|
316
316
|
//#endregion
|
|
@@ -335,11 +335,11 @@ interface EditorTextProps {
|
|
|
335
335
|
/**
|
|
336
336
|
* `(value) => void` — commit the edited cell value (from the `#editor` slot scope). Null-guarded at call sites.
|
|
337
337
|
*/
|
|
338
|
-
commit?: ((...args:
|
|
338
|
+
commit?: ((...args: any[]) => any) | null;
|
|
339
339
|
/**
|
|
340
340
|
* `() => void` — revert the edit and close the editor (from the `#editor` slot scope). Null-guarded at call sites.
|
|
341
341
|
*/
|
|
342
|
-
cancel?: ((...args:
|
|
342
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
343
343
|
/**
|
|
344
344
|
* Focus this editor's primary input when true — the host sets it for the one editor that should hold focus; reactive.
|
|
345
345
|
*/
|
|
@@ -368,11 +368,11 @@ interface EditorNumberProps {
|
|
|
368
368
|
/**
|
|
369
369
|
* `(value) => void` — commit the cell. The draft is coerced with `Number()` at commit time; an empty/whitespace or non-numeric draft commits `null` (never `NaN`). Null-guarded at call sites.
|
|
370
370
|
*/
|
|
371
|
-
commit?: ((...args:
|
|
371
|
+
commit?: ((...args: any[]) => any) | null;
|
|
372
372
|
/**
|
|
373
373
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
374
374
|
*/
|
|
375
|
-
cancel?: ((...args:
|
|
375
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
376
376
|
}
|
|
377
377
|
declare function EditorNumber(_props: EditorNumberProps): JSX.Element;
|
|
378
378
|
//#endregion
|
|
@@ -397,11 +397,11 @@ interface EditorSelectProps {
|
|
|
397
397
|
/**
|
|
398
398
|
* `(value) => void` — commit the cell with the selected value (Enter / blur). Null-guarded at call sites.
|
|
399
399
|
*/
|
|
400
|
-
commit?: ((...args:
|
|
400
|
+
commit?: ((...args: any[]) => any) | null;
|
|
401
401
|
/**
|
|
402
402
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
403
403
|
*/
|
|
404
|
-
cancel?: ((...args:
|
|
404
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
405
405
|
/**
|
|
406
406
|
* The select options — `[{ value, label }]`. Mirrors `<Column editorOptions>`.
|
|
407
407
|
*/
|
|
@@ -430,11 +430,11 @@ interface EditorCheckboxProps {
|
|
|
430
430
|
/**
|
|
431
431
|
* `(value) => void` — commit the cell. This editor immediately commits the boolean checked state on `@change`. Null-guarded at call sites.
|
|
432
432
|
*/
|
|
433
|
-
commit?: ((...args:
|
|
433
|
+
commit?: ((...args: any[]) => any) | null;
|
|
434
434
|
/**
|
|
435
435
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
436
436
|
*/
|
|
437
|
-
cancel?: ((...args:
|
|
437
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
438
438
|
}
|
|
439
439
|
declare function EditorCheckbox(_props: EditorCheckboxProps): JSX.Element;
|
|
440
440
|
//#endregion
|
|
@@ -459,11 +459,11 @@ interface EditorDateProps {
|
|
|
459
459
|
/**
|
|
460
460
|
* `(value) => void` — commit the cell with the ISO `YYYY-MM-DD` string (Enter / blur). Null-guarded at call sites.
|
|
461
461
|
*/
|
|
462
|
-
commit?: ((...args:
|
|
462
|
+
commit?: ((...args: any[]) => any) | null;
|
|
463
463
|
/**
|
|
464
464
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
465
465
|
*/
|
|
466
|
-
cancel?: ((...args:
|
|
466
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
467
467
|
}
|
|
468
468
|
declare function EditorDate(_props: EditorDateProps): JSX.Element;
|
|
469
469
|
//#endregion
|
|
@@ -484,7 +484,7 @@ interface FilterTextProps {
|
|
|
484
484
|
/**
|
|
485
485
|
* `(columnId, value) => void` — apply the column filter (Enter / blur applies, Escape clears). Null-guarded at call sites.
|
|
486
486
|
*/
|
|
487
|
-
setFilter?: ((...args:
|
|
487
|
+
setFilter?: ((...args: any[]) => any) | null;
|
|
488
488
|
}
|
|
489
489
|
declare function FilterText(_props: FilterTextProps): JSX.Element;
|
|
490
490
|
//#endregion
|
|
@@ -505,7 +505,7 @@ interface FilterNumberRangeProps {
|
|
|
505
505
|
/**
|
|
506
506
|
* `(columnId, value) => void` — apply the column filter as a `[min, max]` tuple (each side coerced to a Number or `undefined`, so a one-sided range works); both empty clears the filter. Null-guarded at call sites.
|
|
507
507
|
*/
|
|
508
|
-
setFilter?: ((...args:
|
|
508
|
+
setFilter?: ((...args: any[]) => any) | null;
|
|
509
509
|
/**
|
|
510
510
|
* The faceted `[min, max]` bounds for this column (`[number, number]` or null) — drives the input placeholders only.
|
|
511
511
|
*/
|
|
@@ -530,7 +530,7 @@ interface FilterSelectProps {
|
|
|
530
530
|
/**
|
|
531
531
|
* `(columnId, value) => void` — apply the column filter on change; the leading empty "All" option clears it. Null-guarded at call sites.
|
|
532
532
|
*/
|
|
533
|
-
setFilter?: ((...args:
|
|
533
|
+
setFilter?: ((...args: any[]) => any) | null;
|
|
534
534
|
/**
|
|
535
535
|
* The faceted distinct keys for this column (cross-filtered, keys only — no occurrence counts) used to build the `<option>` list.
|
|
536
536
|
*/
|
|
@@ -551,11 +551,11 @@ interface GroupBarProps {
|
|
|
551
551
|
/**
|
|
552
552
|
* `(cols: string[]) => void` — the only add/reorder writer for the grouping order. Null-guarded at call sites.
|
|
553
553
|
*/
|
|
554
|
-
applyGrouping?: ((...args:
|
|
554
|
+
applyGrouping?: ((...args: any[]) => any) | null;
|
|
555
555
|
/**
|
|
556
556
|
* `() => void` — the only clear writer; resets grouping to empty. Null-guarded at call sites.
|
|
557
557
|
*/
|
|
558
|
-
clearGrouping?: ((...args:
|
|
558
|
+
clearGrouping?: ((...args: any[]) => any) | null;
|
|
559
559
|
}
|
|
560
560
|
declare function GroupBar(_props: GroupBarProps): JSX.Element;
|
|
561
561
|
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rozie-ui/data-table-solid",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
48
|
"@solid-primitives/keyed": "^1.5.3",
|
|
49
|
-
"@rozie/runtime-solid": "0.
|
|
49
|
+
"@rozie/runtime-solid": "0.2.0"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"solid-js": "^1.8",
|
package/src/Column.tsx
CHANGED
|
@@ -44,7 +44,7 @@ interface ColumnProps {
|
|
|
44
44
|
/**
|
|
45
45
|
* The table-core aggregation for this column inside a group-header cell. Either a built-in name string — `'sum'` | `'min'` | `'max'` | `'extent'` | `'mean'` | `'median'` | `'unique'` | `'uniqueCount'` | `'count'` — or a custom function `(columnId, leafRows, childRows) => any` (defensively wrapped by the parent so a throw cannot crash grouping). Null → no aggregation (the group-header cell renders as a placeholder).
|
|
46
46
|
*/
|
|
47
|
-
aggregationFn?: (string | ((...args:
|
|
47
|
+
aggregationFn?: (string | ((...args: any[]) => any)) | null;
|
|
48
48
|
/**
|
|
49
49
|
* Whether this column's cells are editable (opt-in). Default `false` → the column is read-only and the display↔editor branch never mounts an editor. Bind `:editable="true"` (a bare attr only coerces on Vue+Lit).
|
|
50
50
|
*/
|
|
@@ -60,7 +60,7 @@ interface ColumnProps {
|
|
|
60
60
|
/**
|
|
61
61
|
* Synchronous per-column validator `(value, row) => true | string`. A string return is the error message (the editor stays open and the aria-live region announces it). Null → no validation. The parent wraps it defensively against a thrown/non-bool/non-string return.
|
|
62
62
|
*/
|
|
63
|
-
validate?: ((...args:
|
|
63
|
+
validate?: ((...args: any[]) => any) | null;
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
export default function Column(_props: ColumnProps): JSX.Element {
|
package/src/DataTable.tsx
CHANGED
|
@@ -23,11 +23,6 @@ getFacetedUniqueValues as makeFacetedUniqueValues, getFacetedMinMaxValues as mak
|
|
|
23
23
|
// by ALL virtual-core RUNTIME references sitting behind `if ($props.virtual)` / a `virtualizer`
|
|
24
24
|
// guard so they never execute when off — the import token is the only static virtual-core
|
|
25
25
|
// presence. NO per-framework adapter (the codegen guard forbids @tanstack/<fw>-virtual).
|
|
26
|
-
// Vertical row windowing (phase 53). A3: this static import line is emitted UNCONDITIONALLY
|
|
27
|
-
// (virtual-core is a peer dep the consumer installs); byte-identical-off (req-1) is satisfied
|
|
28
|
-
// by ALL virtual-core RUNTIME references sitting behind `if ($props.virtual)` / a `virtualizer`
|
|
29
|
-
// guard so they never execute when off — the import token is the only static virtual-core
|
|
30
|
-
// presence. NO per-framework adapter (the codegen guard forbids @tanstack/<fw>-virtual).
|
|
31
26
|
import { Virtualizer, elementScroll, observeElementRect, observeElementOffset, measureElement } from '@tanstack/virtual-core';
|
|
32
27
|
|
|
33
28
|
// table-core instance — top-level `let` referenced from hooks → React hoists to
|
|
@@ -425,7 +420,7 @@ interface DataTableProps {
|
|
|
425
420
|
/**
|
|
426
421
|
* Table-level child-row accessor `(originalRow, index) => TData[] | undefined` that drives nested sub-rows. When supplied (with `expandable`), table-core flattens the hierarchy and the expand seam reveals depth-indented child rows. Null → the `#detail` scoped slot is the expand mode.
|
|
427
422
|
*/
|
|
428
|
-
getSubRows?: ((...args:
|
|
423
|
+
getSubRows?: ((...args: any[]) => any) | null;
|
|
429
424
|
/**
|
|
430
425
|
* Opt-in gate for the **headless `#groupBar`** host region. Default `false` is byte-identical-off. `getGroupedRowModel` is wired unconditionally (inert when `grouping` is empty), so grouping is driven by the `grouping` model; this flag only gates the consumer-facing group-bar surface (the component ships **no** built-in drag UI).
|
|
431
426
|
*/
|
package/src/EditorCheckbox.tsx
CHANGED
|
@@ -21,11 +21,11 @@ interface EditorCheckboxProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* `(value) => void` — commit the cell. This editor immediately commits the boolean checked state on `@change`. Null-guarded at call sites.
|
|
23
23
|
*/
|
|
24
|
-
commit?: ((...args:
|
|
24
|
+
commit?: ((...args: any[]) => any) | null;
|
|
25
25
|
/**
|
|
26
26
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
27
27
|
*/
|
|
28
|
-
cancel?: ((...args:
|
|
28
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export default function EditorCheckbox(_props: EditorCheckboxProps): JSX.Element {
|
package/src/EditorDate.tsx
CHANGED
|
@@ -21,11 +21,11 @@ interface EditorDateProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* `(value) => void` — commit the cell with the ISO `YYYY-MM-DD` string (Enter / blur). Null-guarded at call sites.
|
|
23
23
|
*/
|
|
24
|
-
commit?: ((...args:
|
|
24
|
+
commit?: ((...args: any[]) => any) | null;
|
|
25
25
|
/**
|
|
26
26
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
27
27
|
*/
|
|
28
|
-
cancel?: ((...args:
|
|
28
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export default function EditorDate(_props: EditorDateProps): JSX.Element {
|
package/src/EditorNumber.tsx
CHANGED
|
@@ -21,11 +21,11 @@ interface EditorNumberProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* `(value) => void` — commit the cell. The draft is coerced with `Number()` at commit time; an empty/whitespace or non-numeric draft commits `null` (never `NaN`). Null-guarded at call sites.
|
|
23
23
|
*/
|
|
24
|
-
commit?: ((...args:
|
|
24
|
+
commit?: ((...args: any[]) => any) | null;
|
|
25
25
|
/**
|
|
26
26
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
27
27
|
*/
|
|
28
|
-
cancel?: ((...args:
|
|
28
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
29
29
|
}
|
|
30
30
|
|
|
31
31
|
export default function EditorNumber(_props: EditorNumberProps): JSX.Element {
|
package/src/EditorSelect.tsx
CHANGED
|
@@ -23,11 +23,11 @@ interface EditorSelectProps {
|
|
|
23
23
|
/**
|
|
24
24
|
* `(value) => void` — commit the cell with the selected value (Enter / blur). Null-guarded at call sites.
|
|
25
25
|
*/
|
|
26
|
-
commit?: ((...args:
|
|
26
|
+
commit?: ((...args: any[]) => any) | null;
|
|
27
27
|
/**
|
|
28
28
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
29
29
|
*/
|
|
30
|
-
cancel?: ((...args:
|
|
30
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
31
31
|
/**
|
|
32
32
|
* The select options — `[{ value, label }]`. Mirrors `<Column editorOptions>`.
|
|
33
33
|
*/
|
package/src/EditorText.tsx
CHANGED
|
@@ -21,11 +21,11 @@ interface EditorTextProps {
|
|
|
21
21
|
/**
|
|
22
22
|
* `(value) => void` — commit the edited cell value (from the `#editor` slot scope). Null-guarded at call sites.
|
|
23
23
|
*/
|
|
24
|
-
commit?: ((...args:
|
|
24
|
+
commit?: ((...args: any[]) => any) | null;
|
|
25
25
|
/**
|
|
26
26
|
* `() => void` — revert the edit and close the editor (from the `#editor` slot scope). Null-guarded at call sites.
|
|
27
27
|
*/
|
|
28
|
-
cancel?: ((...args:
|
|
28
|
+
cancel?: ((...args: any[]) => any) | null;
|
|
29
29
|
/**
|
|
30
30
|
* Focus this editor's primary input when true — the host sets it for the one editor that should hold focus; reactive.
|
|
31
31
|
*/
|
|
@@ -18,7 +18,7 @@ interface FilterNumberRangeProps {
|
|
|
18
18
|
/**
|
|
19
19
|
* `(columnId, value) => void` — apply the column filter as a `[min, max]` tuple (each side coerced to a Number or `undefined`, so a one-sided range works); both empty clears the filter. Null-guarded at call sites.
|
|
20
20
|
*/
|
|
21
|
-
setFilter?: ((...args:
|
|
21
|
+
setFilter?: ((...args: any[]) => any) | null;
|
|
22
22
|
/**
|
|
23
23
|
* The faceted `[min, max]` bounds for this column (`[number, number]` or null) — drives the input placeholders only.
|
|
24
24
|
*/
|
package/src/FilterSelect.tsx
CHANGED
|
@@ -19,7 +19,7 @@ interface FilterSelectProps {
|
|
|
19
19
|
/**
|
|
20
20
|
* `(columnId, value) => void` — apply the column filter on change; the leading empty "All" option clears it. Null-guarded at call sites.
|
|
21
21
|
*/
|
|
22
|
-
setFilter?: ((...args:
|
|
22
|
+
setFilter?: ((...args: any[]) => any) | null;
|
|
23
23
|
/**
|
|
24
24
|
* The faceted distinct keys for this column (cross-filtered, keys only — no occurrence counts) used to build the `<option>` list.
|
|
25
25
|
*/
|
package/src/FilterText.tsx
CHANGED
|
@@ -17,7 +17,7 @@ interface FilterTextProps {
|
|
|
17
17
|
/**
|
|
18
18
|
* `(columnId, value) => void` — apply the column filter (Enter / blur applies, Escape clears). Null-guarded at call sites.
|
|
19
19
|
*/
|
|
20
|
-
setFilter?: ((...args:
|
|
20
|
+
setFilter?: ((...args: any[]) => any) | null;
|
|
21
21
|
}
|
|
22
22
|
|
|
23
23
|
export default function FilterText(_props: FilterTextProps): JSX.Element {
|
package/src/GroupBar.tsx
CHANGED
|
@@ -73,11 +73,11 @@ interface GroupBarProps {
|
|
|
73
73
|
/**
|
|
74
74
|
* `(cols: string[]) => void` — the only add/reorder writer for the grouping order. Null-guarded at call sites.
|
|
75
75
|
*/
|
|
76
|
-
applyGrouping?: ((...args:
|
|
76
|
+
applyGrouping?: ((...args: any[]) => any) | null;
|
|
77
77
|
/**
|
|
78
78
|
* `() => void` — the only clear writer; resets grouping to empty. Null-guarded at call sites.
|
|
79
79
|
*/
|
|
80
|
-
clearGrouping?: ((...args:
|
|
80
|
+
clearGrouping?: ((...args: any[]) => any) | null;
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
export default function GroupBar(_props: GroupBarProps): JSX.Element {
|