@rozie-ui/data-table-lit 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 +20 -20
- package/dist/index.d.mts +20 -20
- package/package.json +2 -2
- package/src/Column.ts +2 -2
- package/src/DataTable.ts +1 -6
- package/src/EditorCheckbox.ts +2 -2
- package/src/EditorDate.ts +2 -2
- package/src/EditorNumber.ts +2 -2
- package/src/EditorSelect.ts +2 -2
- package/src/EditorText.ts +2 -2
- package/src/FilterNumberRange.ts +1 -1
- package/src/FilterSelect.ts +1 -1
- package/src/FilterText.ts +1 -1
- package/src/GroupBar.ts +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -63,7 +63,7 @@ declare class DataTable extends DataTable_base {
|
|
|
63
63
|
/**
|
|
64
64
|
* 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.
|
|
65
65
|
*/
|
|
66
|
-
getSubRows: ((...args:
|
|
66
|
+
getSubRows: ((...args: any[]) => any) | null;
|
|
67
67
|
/**
|
|
68
68
|
* 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).
|
|
69
69
|
*/
|
|
@@ -705,7 +705,7 @@ declare class Column extends Column_base {
|
|
|
705
705
|
/**
|
|
706
706
|
* 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).
|
|
707
707
|
*/
|
|
708
|
-
aggregationFn: string | (((...args:
|
|
708
|
+
aggregationFn: string | (((...args: any[]) => any) | null);
|
|
709
709
|
/**
|
|
710
710
|
* 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).
|
|
711
711
|
*/
|
|
@@ -721,7 +721,7 @@ declare class Column extends Column_base {
|
|
|
721
721
|
/**
|
|
722
722
|
* 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.
|
|
723
723
|
*/
|
|
724
|
-
validate: ((...args:
|
|
724
|
+
validate: ((...args: any[]) => any) | null;
|
|
725
725
|
private __rozieFirstUpdateDone;
|
|
726
726
|
private __rozieCtxConsumer_data_table_columns;
|
|
727
727
|
private get registry();
|
|
@@ -744,11 +744,11 @@ declare class Column extends Column_base {
|
|
|
744
744
|
width: string | number;
|
|
745
745
|
expandable: boolean;
|
|
746
746
|
groupable: boolean;
|
|
747
|
-
aggregationFn: string | ((...args:
|
|
747
|
+
aggregationFn: string | ((...args: any[]) => any);
|
|
748
748
|
editable: boolean;
|
|
749
749
|
editor: string;
|
|
750
750
|
editorOptions: any[];
|
|
751
|
-
validate: (...args:
|
|
751
|
+
validate: (...args: any[]) => any;
|
|
752
752
|
};
|
|
753
753
|
}
|
|
754
754
|
//#endregion
|
|
@@ -775,11 +775,11 @@ declare class EditorText extends EditorText_base {
|
|
|
775
775
|
/**
|
|
776
776
|
* `(value) => void` — commit the edited cell value (from the `#editor` slot scope). Null-guarded at call sites.
|
|
777
777
|
*/
|
|
778
|
-
commit: ((...args:
|
|
778
|
+
commit: ((...args: any[]) => any) | null;
|
|
779
779
|
/**
|
|
780
780
|
* `() => void` — revert the edit and close the editor (from the `#editor` slot scope). Null-guarded at call sites.
|
|
781
781
|
*/
|
|
782
|
-
cancel: ((...args:
|
|
782
|
+
cancel: ((...args: any[]) => any) | null;
|
|
783
783
|
/**
|
|
784
784
|
* Focus this editor's primary input when true — the host sets it for the one editor that should hold focus; reactive.
|
|
785
785
|
*/
|
|
@@ -823,11 +823,11 @@ declare class EditorNumber extends EditorNumber_base {
|
|
|
823
823
|
/**
|
|
824
824
|
* `(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.
|
|
825
825
|
*/
|
|
826
|
-
commit: ((...args:
|
|
826
|
+
commit: ((...args: any[]) => any) | null;
|
|
827
827
|
/**
|
|
828
828
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
829
829
|
*/
|
|
830
|
-
cancel: ((...args:
|
|
830
|
+
cancel: ((...args: any[]) => any) | null;
|
|
831
831
|
private _draft;
|
|
832
832
|
private _disconnectCleanups;
|
|
833
833
|
private _rozieTornDown;
|
|
@@ -864,11 +864,11 @@ declare class EditorSelect extends EditorSelect_base {
|
|
|
864
864
|
/**
|
|
865
865
|
* `(value) => void` — commit the cell with the selected value (Enter / blur). Null-guarded at call sites.
|
|
866
866
|
*/
|
|
867
|
-
commit: ((...args:
|
|
867
|
+
commit: ((...args: any[]) => any) | null;
|
|
868
868
|
/**
|
|
869
869
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
870
870
|
*/
|
|
871
|
-
cancel: ((...args:
|
|
871
|
+
cancel: ((...args: any[]) => any) | null;
|
|
872
872
|
/**
|
|
873
873
|
* The select options — `[{ value, label }]`. Mirrors `<Column editorOptions>`.
|
|
874
874
|
*/
|
|
@@ -909,11 +909,11 @@ declare class EditorCheckbox extends EditorCheckbox_base {
|
|
|
909
909
|
/**
|
|
910
910
|
* `(value) => void` — commit the cell. This editor immediately commits the boolean checked state on `@change`. Null-guarded at call sites.
|
|
911
911
|
*/
|
|
912
|
-
commit: ((...args:
|
|
912
|
+
commit: ((...args: any[]) => any) | null;
|
|
913
913
|
/**
|
|
914
914
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
915
915
|
*/
|
|
916
|
-
cancel: ((...args:
|
|
916
|
+
cancel: ((...args: any[]) => any) | null;
|
|
917
917
|
private _disconnectCleanups;
|
|
918
918
|
private _rozieTornDown;
|
|
919
919
|
disconnectedCallback(): void;
|
|
@@ -945,11 +945,11 @@ declare class EditorDate extends EditorDate_base {
|
|
|
945
945
|
/**
|
|
946
946
|
* `(value) => void` — commit the cell with the ISO `YYYY-MM-DD` string (Enter / blur). Null-guarded at call sites.
|
|
947
947
|
*/
|
|
948
|
-
commit: ((...args:
|
|
948
|
+
commit: ((...args: any[]) => any) | null;
|
|
949
949
|
/**
|
|
950
950
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
951
951
|
*/
|
|
952
|
-
cancel: ((...args:
|
|
952
|
+
cancel: ((...args: any[]) => any) | null;
|
|
953
953
|
private _draft;
|
|
954
954
|
private _disconnectCleanups;
|
|
955
955
|
private _rozieTornDown;
|
|
@@ -983,7 +983,7 @@ declare class FilterText extends FilterText_base {
|
|
|
983
983
|
/**
|
|
984
984
|
* `(columnId, value) => void` — apply the column filter (Enter / blur applies, Escape clears). Null-guarded at call sites.
|
|
985
985
|
*/
|
|
986
|
-
setFilter: ((...args:
|
|
986
|
+
setFilter: ((...args: any[]) => any) | null;
|
|
987
987
|
private _draft;
|
|
988
988
|
private _disconnectCleanups;
|
|
989
989
|
private _rozieTornDown;
|
|
@@ -1016,7 +1016,7 @@ declare class FilterNumberRange extends FilterNumberRange_base {
|
|
|
1016
1016
|
/**
|
|
1017
1017
|
* `(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.
|
|
1018
1018
|
*/
|
|
1019
|
-
setFilter: ((...args:
|
|
1019
|
+
setFilter: ((...args: any[]) => any) | null;
|
|
1020
1020
|
/**
|
|
1021
1021
|
* The faceted `[min, max]` bounds for this column (`[number, number]` or null) — drives the input placeholders only.
|
|
1022
1022
|
*/
|
|
@@ -1054,7 +1054,7 @@ declare class FilterSelect extends FilterSelect_base {
|
|
|
1054
1054
|
/**
|
|
1055
1055
|
* `(columnId, value) => void` — apply the column filter on change; the leading empty "All" option clears it. Null-guarded at call sites.
|
|
1056
1056
|
*/
|
|
1057
|
-
setFilter: ((...args:
|
|
1057
|
+
setFilter: ((...args: any[]) => any) | null;
|
|
1058
1058
|
/**
|
|
1059
1059
|
* The faceted distinct keys for this column (cross-filtered, keys only — no occurrence counts) used to build the `<option>` list.
|
|
1060
1060
|
*/
|
|
@@ -1082,11 +1082,11 @@ declare class GroupBar extends GroupBar_base {
|
|
|
1082
1082
|
/**
|
|
1083
1083
|
* `(cols: string[]) => void` — the only add/reorder writer for the grouping order. Null-guarded at call sites.
|
|
1084
1084
|
*/
|
|
1085
|
-
applyGrouping: ((...args:
|
|
1085
|
+
applyGrouping: ((...args: any[]) => any) | null;
|
|
1086
1086
|
/**
|
|
1087
1087
|
* `() => void` — the only clear writer; resets grouping to empty. Null-guarded at call sites.
|
|
1088
1088
|
*/
|
|
1089
|
-
clearGrouping: ((...args:
|
|
1089
|
+
clearGrouping: ((...args: any[]) => any) | null;
|
|
1090
1090
|
private _draggingId;
|
|
1091
1091
|
private _isOver;
|
|
1092
1092
|
private _dragKind;
|
package/dist/index.d.mts
CHANGED
|
@@ -63,7 +63,7 @@ declare class DataTable extends DataTable_base {
|
|
|
63
63
|
/**
|
|
64
64
|
* 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.
|
|
65
65
|
*/
|
|
66
|
-
getSubRows: ((...args:
|
|
66
|
+
getSubRows: ((...args: any[]) => any) | null;
|
|
67
67
|
/**
|
|
68
68
|
* 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).
|
|
69
69
|
*/
|
|
@@ -705,7 +705,7 @@ declare class Column extends Column_base {
|
|
|
705
705
|
/**
|
|
706
706
|
* 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).
|
|
707
707
|
*/
|
|
708
|
-
aggregationFn: string | (((...args:
|
|
708
|
+
aggregationFn: string | (((...args: any[]) => any) | null);
|
|
709
709
|
/**
|
|
710
710
|
* 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).
|
|
711
711
|
*/
|
|
@@ -721,7 +721,7 @@ declare class Column extends Column_base {
|
|
|
721
721
|
/**
|
|
722
722
|
* 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.
|
|
723
723
|
*/
|
|
724
|
-
validate: ((...args:
|
|
724
|
+
validate: ((...args: any[]) => any) | null;
|
|
725
725
|
private __rozieFirstUpdateDone;
|
|
726
726
|
private __rozieCtxConsumer_data_table_columns;
|
|
727
727
|
private get registry();
|
|
@@ -744,11 +744,11 @@ declare class Column extends Column_base {
|
|
|
744
744
|
width: string | number;
|
|
745
745
|
expandable: boolean;
|
|
746
746
|
groupable: boolean;
|
|
747
|
-
aggregationFn: string | ((...args:
|
|
747
|
+
aggregationFn: string | ((...args: any[]) => any);
|
|
748
748
|
editable: boolean;
|
|
749
749
|
editor: string;
|
|
750
750
|
editorOptions: any[];
|
|
751
|
-
validate: (...args:
|
|
751
|
+
validate: (...args: any[]) => any;
|
|
752
752
|
};
|
|
753
753
|
}
|
|
754
754
|
//#endregion
|
|
@@ -775,11 +775,11 @@ declare class EditorText extends EditorText_base {
|
|
|
775
775
|
/**
|
|
776
776
|
* `(value) => void` — commit the edited cell value (from the `#editor` slot scope). Null-guarded at call sites.
|
|
777
777
|
*/
|
|
778
|
-
commit: ((...args:
|
|
778
|
+
commit: ((...args: any[]) => any) | null;
|
|
779
779
|
/**
|
|
780
780
|
* `() => void` — revert the edit and close the editor (from the `#editor` slot scope). Null-guarded at call sites.
|
|
781
781
|
*/
|
|
782
|
-
cancel: ((...args:
|
|
782
|
+
cancel: ((...args: any[]) => any) | null;
|
|
783
783
|
/**
|
|
784
784
|
* Focus this editor's primary input when true — the host sets it for the one editor that should hold focus; reactive.
|
|
785
785
|
*/
|
|
@@ -823,11 +823,11 @@ declare class EditorNumber extends EditorNumber_base {
|
|
|
823
823
|
/**
|
|
824
824
|
* `(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.
|
|
825
825
|
*/
|
|
826
|
-
commit: ((...args:
|
|
826
|
+
commit: ((...args: any[]) => any) | null;
|
|
827
827
|
/**
|
|
828
828
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
829
829
|
*/
|
|
830
|
-
cancel: ((...args:
|
|
830
|
+
cancel: ((...args: any[]) => any) | null;
|
|
831
831
|
private _draft;
|
|
832
832
|
private _disconnectCleanups;
|
|
833
833
|
private _rozieTornDown;
|
|
@@ -864,11 +864,11 @@ declare class EditorSelect extends EditorSelect_base {
|
|
|
864
864
|
/**
|
|
865
865
|
* `(value) => void` — commit the cell with the selected value (Enter / blur). Null-guarded at call sites.
|
|
866
866
|
*/
|
|
867
|
-
commit: ((...args:
|
|
867
|
+
commit: ((...args: any[]) => any) | null;
|
|
868
868
|
/**
|
|
869
869
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
870
870
|
*/
|
|
871
|
-
cancel: ((...args:
|
|
871
|
+
cancel: ((...args: any[]) => any) | null;
|
|
872
872
|
/**
|
|
873
873
|
* The select options — `[{ value, label }]`. Mirrors `<Column editorOptions>`.
|
|
874
874
|
*/
|
|
@@ -909,11 +909,11 @@ declare class EditorCheckbox extends EditorCheckbox_base {
|
|
|
909
909
|
/**
|
|
910
910
|
* `(value) => void` — commit the cell. This editor immediately commits the boolean checked state on `@change`. Null-guarded at call sites.
|
|
911
911
|
*/
|
|
912
|
-
commit: ((...args:
|
|
912
|
+
commit: ((...args: any[]) => any) | null;
|
|
913
913
|
/**
|
|
914
914
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
915
915
|
*/
|
|
916
|
-
cancel: ((...args:
|
|
916
|
+
cancel: ((...args: any[]) => any) | null;
|
|
917
917
|
private _disconnectCleanups;
|
|
918
918
|
private _rozieTornDown;
|
|
919
919
|
disconnectedCallback(): void;
|
|
@@ -945,11 +945,11 @@ declare class EditorDate extends EditorDate_base {
|
|
|
945
945
|
/**
|
|
946
946
|
* `(value) => void` — commit the cell with the ISO `YYYY-MM-DD` string (Enter / blur). Null-guarded at call sites.
|
|
947
947
|
*/
|
|
948
|
-
commit: ((...args:
|
|
948
|
+
commit: ((...args: any[]) => any) | null;
|
|
949
949
|
/**
|
|
950
950
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
951
951
|
*/
|
|
952
|
-
cancel: ((...args:
|
|
952
|
+
cancel: ((...args: any[]) => any) | null;
|
|
953
953
|
private _draft;
|
|
954
954
|
private _disconnectCleanups;
|
|
955
955
|
private _rozieTornDown;
|
|
@@ -983,7 +983,7 @@ declare class FilterText extends FilterText_base {
|
|
|
983
983
|
/**
|
|
984
984
|
* `(columnId, value) => void` — apply the column filter (Enter / blur applies, Escape clears). Null-guarded at call sites.
|
|
985
985
|
*/
|
|
986
|
-
setFilter: ((...args:
|
|
986
|
+
setFilter: ((...args: any[]) => any) | null;
|
|
987
987
|
private _draft;
|
|
988
988
|
private _disconnectCleanups;
|
|
989
989
|
private _rozieTornDown;
|
|
@@ -1016,7 +1016,7 @@ declare class FilterNumberRange extends FilterNumberRange_base {
|
|
|
1016
1016
|
/**
|
|
1017
1017
|
* `(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.
|
|
1018
1018
|
*/
|
|
1019
|
-
setFilter: ((...args:
|
|
1019
|
+
setFilter: ((...args: any[]) => any) | null;
|
|
1020
1020
|
/**
|
|
1021
1021
|
* The faceted `[min, max]` bounds for this column (`[number, number]` or null) — drives the input placeholders only.
|
|
1022
1022
|
*/
|
|
@@ -1054,7 +1054,7 @@ declare class FilterSelect extends FilterSelect_base {
|
|
|
1054
1054
|
/**
|
|
1055
1055
|
* `(columnId, value) => void` — apply the column filter on change; the leading empty "All" option clears it. Null-guarded at call sites.
|
|
1056
1056
|
*/
|
|
1057
|
-
setFilter: ((...args:
|
|
1057
|
+
setFilter: ((...args: any[]) => any) | null;
|
|
1058
1058
|
/**
|
|
1059
1059
|
* The faceted distinct keys for this column (cross-filtered, keys only — no occurrence counts) used to build the `<option>` list.
|
|
1060
1060
|
*/
|
|
@@ -1082,11 +1082,11 @@ declare class GroupBar extends GroupBar_base {
|
|
|
1082
1082
|
/**
|
|
1083
1083
|
* `(cols: string[]) => void` — the only add/reorder writer for the grouping order. Null-guarded at call sites.
|
|
1084
1084
|
*/
|
|
1085
|
-
applyGrouping: ((...args:
|
|
1085
|
+
applyGrouping: ((...args: any[]) => any) | null;
|
|
1086
1086
|
/**
|
|
1087
1087
|
* `() => void` — the only clear writer; resets grouping to empty. Null-guarded at call sites.
|
|
1088
1088
|
*/
|
|
1089
|
-
clearGrouping: ((...args:
|
|
1089
|
+
clearGrouping: ((...args: any[]) => any) | null;
|
|
1090
1090
|
private _draggingId;
|
|
1091
1091
|
private _isOver;
|
|
1092
1092
|
private _dragKind;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rozie-ui/data-table-lit",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"src"
|
|
46
46
|
],
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@rozie/runtime-lit": "0.
|
|
48
|
+
"@rozie/runtime-lit": "0.2.0"
|
|
49
49
|
},
|
|
50
50
|
"peerDependencies": {
|
|
51
51
|
"lit": "^3.2",
|
package/src/Column.ts
CHANGED
|
@@ -52,7 +52,7 @@ export default class Column extends SignalWatcher(LitElement) {
|
|
|
52
52
|
/**
|
|
53
53
|
* 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).
|
|
54
54
|
*/
|
|
55
|
-
@property({ type: String }) aggregationFn: string | (((...args:
|
|
55
|
+
@property({ type: String }) aggregationFn: string | (((...args: any[]) => any) | null) = null;
|
|
56
56
|
/**
|
|
57
57
|
* 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).
|
|
58
58
|
*/
|
|
@@ -68,7 +68,7 @@ export default class Column extends SignalWatcher(LitElement) {
|
|
|
68
68
|
/**
|
|
69
69
|
* 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.
|
|
70
70
|
*/
|
|
71
|
-
@property({ type: Function }) validate: ((...args:
|
|
71
|
+
@property({ type: Function }) validate: ((...args: any[]) => any) | null = null;
|
|
72
72
|
private __rozieFirstUpdateDone = false;
|
|
73
73
|
private __rozieCtxConsumer_data_table_columns = new ContextConsumer(this, { context: __rozieCtx_data_table_columns, subscribe: true });
|
|
74
74
|
private get registry() { return this.__rozieCtxConsumer_data_table_columns.value; }
|
package/src/DataTable.ts
CHANGED
|
@@ -25,11 +25,6 @@ getFacetedUniqueValues as makeFacetedUniqueValues, getFacetedMinMaxValues as mak
|
|
|
25
25
|
// by ALL virtual-core RUNTIME references sitting behind `if ($props.virtual)` / a `virtualizer`
|
|
26
26
|
// guard so they never execute when off — the import token is the only static virtual-core
|
|
27
27
|
// presence. NO per-framework adapter (the codegen guard forbids @tanstack/<fw>-virtual).
|
|
28
|
-
// Vertical row windowing (phase 53). A3: this static import line is emitted UNCONDITIONALLY
|
|
29
|
-
// (virtual-core is a peer dep the consumer installs); byte-identical-off (req-1) is satisfied
|
|
30
|
-
// by ALL virtual-core RUNTIME references sitting behind `if ($props.virtual)` / a `virtualizer`
|
|
31
|
-
// guard so they never execute when off — the import token is the only static virtual-core
|
|
32
|
-
// presence. NO per-framework adapter (the codegen guard forbids @tanstack/<fw>-virtual).
|
|
33
28
|
import { Virtualizer, elementScroll, observeElementRect, observeElementOffset, measureElement } from '@tanstack/virtual-core';
|
|
34
29
|
|
|
35
30
|
// table-core instance — top-level `let` referenced from hooks → React hoists to
|
|
@@ -492,7 +487,7 @@ export default class DataTable extends SignalWatcher(LitElement) {
|
|
|
492
487
|
/**
|
|
493
488
|
* 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.
|
|
494
489
|
*/
|
|
495
|
-
@property({ type: Function }) getSubRows: ((...args:
|
|
490
|
+
@property({ type: Function }) getSubRows: ((...args: any[]) => any) | null = null;
|
|
496
491
|
/**
|
|
497
492
|
* 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).
|
|
498
493
|
*/
|
package/src/EditorCheckbox.ts
CHANGED
|
@@ -27,11 +27,11 @@ export default class EditorCheckbox extends SignalWatcher(LitElement) {
|
|
|
27
27
|
/**
|
|
28
28
|
* `(value) => void` — commit the cell. This editor immediately commits the boolean checked state on `@change`. Null-guarded at call sites.
|
|
29
29
|
*/
|
|
30
|
-
@property({ type: Function }) commit: ((...args:
|
|
30
|
+
@property({ type: Function }) commit: ((...args: any[]) => any) | null = null;
|
|
31
31
|
/**
|
|
32
32
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
33
33
|
*/
|
|
34
|
-
@property({ type: Function }) cancel: ((...args:
|
|
34
|
+
@property({ type: Function }) cancel: ((...args: any[]) => any) | null = null;
|
|
35
35
|
|
|
36
36
|
private _disconnectCleanups: Array<() => void> = [];
|
|
37
37
|
// Re-parenting guard: set true once the deferred teardown has actually
|
package/src/EditorDate.ts
CHANGED
|
@@ -27,11 +27,11 @@ export default class EditorDate extends SignalWatcher(LitElement) {
|
|
|
27
27
|
/**
|
|
28
28
|
* `(value) => void` — commit the cell with the ISO `YYYY-MM-DD` string (Enter / blur). Null-guarded at call sites.
|
|
29
29
|
*/
|
|
30
|
-
@property({ type: Function }) commit: ((...args:
|
|
30
|
+
@property({ type: Function }) commit: ((...args: any[]) => any) | null = null;
|
|
31
31
|
/**
|
|
32
32
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
33
33
|
*/
|
|
34
|
-
@property({ type: Function }) cancel: ((...args:
|
|
34
|
+
@property({ type: Function }) cancel: ((...args: any[]) => any) | null = null;
|
|
35
35
|
private _draft = signal('');
|
|
36
36
|
|
|
37
37
|
private _disconnectCleanups: Array<() => void> = [];
|
package/src/EditorNumber.ts
CHANGED
|
@@ -27,11 +27,11 @@ export default class EditorNumber extends SignalWatcher(LitElement) {
|
|
|
27
27
|
/**
|
|
28
28
|
* `(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.
|
|
29
29
|
*/
|
|
30
|
-
@property({ type: Function }) commit: ((...args:
|
|
30
|
+
@property({ type: Function }) commit: ((...args: any[]) => any) | null = null;
|
|
31
31
|
/**
|
|
32
32
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
33
33
|
*/
|
|
34
|
-
@property({ type: Function }) cancel: ((...args:
|
|
34
|
+
@property({ type: Function }) cancel: ((...args: any[]) => any) | null = null;
|
|
35
35
|
private _draft = signal('');
|
|
36
36
|
|
|
37
37
|
private _disconnectCleanups: Array<() => void> = [];
|
package/src/EditorSelect.ts
CHANGED
|
@@ -29,11 +29,11 @@ export default class EditorSelect extends SignalWatcher(LitElement) {
|
|
|
29
29
|
/**
|
|
30
30
|
* `(value) => void` — commit the cell with the selected value (Enter / blur). Null-guarded at call sites.
|
|
31
31
|
*/
|
|
32
|
-
@property({ type: Function }) commit: ((...args:
|
|
32
|
+
@property({ type: Function }) commit: ((...args: any[]) => any) | null = null;
|
|
33
33
|
/**
|
|
34
34
|
* `() => void` — revert the edit (Escape). Null-guarded at call sites.
|
|
35
35
|
*/
|
|
36
|
-
@property({ type: Function }) cancel: ((...args:
|
|
36
|
+
@property({ type: Function }) cancel: ((...args: any[]) => any) | null = null;
|
|
37
37
|
/**
|
|
38
38
|
* The select options — `[{ value, label }]`. Mirrors `<Column editorOptions>`.
|
|
39
39
|
*/
|
package/src/EditorText.ts
CHANGED
|
@@ -27,11 +27,11 @@ export default class EditorText extends SignalWatcher(LitElement) {
|
|
|
27
27
|
/**
|
|
28
28
|
* `(value) => void` — commit the edited cell value (from the `#editor` slot scope). Null-guarded at call sites.
|
|
29
29
|
*/
|
|
30
|
-
@property({ type: Function }) commit: ((...args:
|
|
30
|
+
@property({ type: Function }) commit: ((...args: any[]) => any) | null = null;
|
|
31
31
|
/**
|
|
32
32
|
* `() => void` — revert the edit and close the editor (from the `#editor` slot scope). Null-guarded at call sites.
|
|
33
33
|
*/
|
|
34
|
-
@property({ type: Function }) cancel: ((...args:
|
|
34
|
+
@property({ type: Function }) cancel: ((...args: any[]) => any) | null = null;
|
|
35
35
|
/**
|
|
36
36
|
* Focus this editor's primary input when true — the host sets it for the one editor that should hold focus; reactive.
|
|
37
37
|
*/
|
package/src/FilterNumberRange.ts
CHANGED
|
@@ -24,7 +24,7 @@ export default class FilterNumberRange extends SignalWatcher(LitElement) {
|
|
|
24
24
|
/**
|
|
25
25
|
* `(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.
|
|
26
26
|
*/
|
|
27
|
-
@property({ type: Function }) setFilter: ((...args:
|
|
27
|
+
@property({ type: Function }) setFilter: ((...args: any[]) => any) | null = null;
|
|
28
28
|
/**
|
|
29
29
|
* The faceted `[min, max]` bounds for this column (`[number, number]` or null) — drives the input placeholders only.
|
|
30
30
|
*/
|
package/src/FilterSelect.ts
CHANGED
|
@@ -25,7 +25,7 @@ export default class FilterSelect extends SignalWatcher(LitElement) {
|
|
|
25
25
|
/**
|
|
26
26
|
* `(columnId, value) => void` — apply the column filter on change; the leading empty "All" option clears it. Null-guarded at call sites.
|
|
27
27
|
*/
|
|
28
|
-
@property({ type: Function }) setFilter: ((...args:
|
|
28
|
+
@property({ type: Function }) setFilter: ((...args: any[]) => any) | null = null;
|
|
29
29
|
/**
|
|
30
30
|
* The faceted distinct keys for this column (cross-filtered, keys only — no occurrence counts) used to build the `<option>` list.
|
|
31
31
|
*/
|
package/src/FilterText.ts
CHANGED
|
@@ -23,7 +23,7 @@ export default class FilterText extends SignalWatcher(LitElement) {
|
|
|
23
23
|
/**
|
|
24
24
|
* `(columnId, value) => void` — apply the column filter (Enter / blur applies, Escape clears). Null-guarded at call sites.
|
|
25
25
|
*/
|
|
26
|
-
@property({ type: Function }) setFilter: ((...args:
|
|
26
|
+
@property({ type: Function }) setFilter: ((...args: any[]) => any) | null = null;
|
|
27
27
|
private _draft = signal('');
|
|
28
28
|
|
|
29
29
|
private _disconnectCleanups: Array<() => void> = [];
|
package/src/GroupBar.ts
CHANGED
|
@@ -78,11 +78,11 @@ export default class GroupBar extends SignalWatcher(LitElement) {
|
|
|
78
78
|
/**
|
|
79
79
|
* `(cols: string[]) => void` — the only add/reorder writer for the grouping order. Null-guarded at call sites.
|
|
80
80
|
*/
|
|
81
|
-
@property({ type: Function }) applyGrouping: ((...args:
|
|
81
|
+
@property({ type: Function }) applyGrouping: ((...args: any[]) => any) | null = null;
|
|
82
82
|
/**
|
|
83
83
|
* `() => void` — the only clear writer; resets grouping to empty. Null-guarded at call sites.
|
|
84
84
|
*/
|
|
85
|
-
@property({ type: Function }) clearGrouping: ((...args:
|
|
85
|
+
@property({ type: Function }) clearGrouping: ((...args: any[]) => any) | null = null;
|
|
86
86
|
private _draggingId = signal('');
|
|
87
87
|
private _isOver = signal(false);
|
|
88
88
|
private _dragKind = signal('');
|