@rozie-ui/data-table-lit 0.7.3 → 0.7.4
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/CHANGELOG.md +7 -0
- package/dist/index.d.cts +2 -2
- package/dist/index.d.mts +2 -2
- package/package.json +2 -2
- package/src/DataTable.ts +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @rozie-ui/data-table-lit
|
|
2
2
|
|
|
3
|
+
## 0.7.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 05cb9db: Regenerated with the Lit nullable model prop typing fix: the two-way `grouping` property is now typed `any[] | null` (its default is `null`, so the narrower `any[]` was never true), which a strict TypeScript consumer reading `element.grouping` now sees. Rendered markup and runtime behaviour are unchanged.
|
|
8
|
+
- @rozie/runtime-lit@0.10.1
|
|
9
|
+
|
|
3
10
|
## 0.7.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
package/dist/index.d.cts
CHANGED
|
@@ -902,8 +902,8 @@ declare class DataTable extends DataTable_base {
|
|
|
902
902
|
set pagination(v: any);
|
|
903
903
|
get expanded(): any | boolean;
|
|
904
904
|
set expanded(v: any | boolean);
|
|
905
|
-
get grouping(): any[];
|
|
906
|
-
set grouping(v: any[]);
|
|
905
|
+
get grouping(): any[] | null;
|
|
906
|
+
set grouping(v: any[] | null);
|
|
907
907
|
get rowSelection(): any;
|
|
908
908
|
set rowSelection(v: any);
|
|
909
909
|
get columnVisibility(): any;
|
package/dist/index.d.mts
CHANGED
|
@@ -902,8 +902,8 @@ declare class DataTable extends DataTable_base {
|
|
|
902
902
|
set pagination(v: any);
|
|
903
903
|
get expanded(): any | boolean;
|
|
904
904
|
set expanded(v: any | boolean);
|
|
905
|
-
get grouping(): any[];
|
|
906
|
-
set grouping(v: any[]);
|
|
905
|
+
get grouping(): any[] | null;
|
|
906
|
+
set grouping(v: any[] | null);
|
|
907
907
|
get rowSelection(): any;
|
|
908
908
|
set rowSelection(v: any);
|
|
909
909
|
get columnVisibility(): any;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rozie-ui/data-table-lit",
|
|
3
|
-
"version": "0.7.
|
|
3
|
+
"version": "0.7.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"license": "MIT",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"CHANGELOG.md"
|
|
47
47
|
],
|
|
48
48
|
"dependencies": {
|
|
49
|
-
"@rozie/runtime-lit": "^0.10.
|
|
49
|
+
"@rozie/runtime-lit": "^0.10.1"
|
|
50
50
|
},
|
|
51
51
|
"peerDependencies": {
|
|
52
52
|
"lit": "^3.2",
|
package/src/DataTable.ts
CHANGED
|
@@ -753,7 +753,7 @@ export default class DataTable extends SignalWatcher(LitElement) {
|
|
|
753
753
|
* `GroupingState` — an ordered `string[]` of column ids (multi-column → nested groups, e.g. `['region','category']`). An empty/unbound list is ungrouped (byte-identical-off). Group-header rows are collapsible (they ride the expand model). Surfaces through `group-change`; uncontrolled fallback (`$data.groupingDefault`, default `[]`) when unbound — the default is `null` (mirroring `expanded`) so the uncontrolled fallback is reachable and the grouping auto-expand default can activate when a consumer applies grouping without binding the two-way `grouping` model (a non-null `[]` default would short-circuit it). All reads are null-guarded, so table-core still receives an array.
|
|
754
754
|
*/
|
|
755
755
|
@property({ type: Array, attribute: 'grouping' }) _grouping_attr: any[] | null = null;
|
|
756
|
-
private _groupingControllable = createLitControllableProperty<any[]>({ host: this, eventName: 'grouping-change', defaultValue: null, initialControlledValue: undefined });
|
|
756
|
+
private _groupingControllable = createLitControllableProperty<any[] | null>({ host: this, eventName: 'grouping-change', defaultValue: null, initialControlledValue: undefined });
|
|
757
757
|
/**
|
|
758
758
|
* `RowSelectionState` — `{ [rowId]: true }`. Checkbox-only toggle (the row body does not select). Driven by the `selectionMode` chrome. Two-way: fires `selection-change` regardless of binding.
|
|
759
759
|
*/
|
|
@@ -1640,7 +1640,7 @@ private __rozieCtxProvider_data_table_columns = new ContextProvider(this, { cont
|
|
|
1640
1640
|
if (name === 'column-filters') this._columnFiltersControllable.notifyAttributeChange(value as unknown as any[]);
|
|
1641
1641
|
if (name === 'pagination') this._paginationControllable.notifyAttributeChange(value as unknown as any);
|
|
1642
1642
|
if (name === 'expanded') this._expandedControllable.notifyAttributeChange(value as unknown as any | boolean);
|
|
1643
|
-
if (name === 'grouping') this._groupingControllable.notifyAttributeChange(value as unknown as any[]);
|
|
1643
|
+
if (name === 'grouping') this._groupingControllable.notifyAttributeChange(value as unknown as any[] | null);
|
|
1644
1644
|
if (name === 'row-selection') this._rowSelectionControllable.notifyAttributeChange(value as unknown as any);
|
|
1645
1645
|
if (name === 'column-visibility') this._columnVisibilityControllable.notifyAttributeChange(value as unknown as any);
|
|
1646
1646
|
if (name === 'column-sizing') this._columnSizingControllable.notifyAttributeChange(value as unknown as any);
|
|
@@ -9471,8 +9471,8 @@ ${this.groupable ? html`<div class="rdt-group-bar-host" data-rozie-s-d5dcab4c>
|
|
|
9471
9471
|
set pagination(v: any) { this._paginationControllable.notifyPropertyWrite(v); }
|
|
9472
9472
|
get expanded(): any | boolean { return this._expandedControllable.read(); }
|
|
9473
9473
|
set expanded(v: any | boolean) { this._expandedControllable.notifyPropertyWrite(v); }
|
|
9474
|
-
get grouping(): any[] { return this._groupingControllable.read(); }
|
|
9475
|
-
set grouping(v: any[]) { this._groupingControllable.notifyPropertyWrite(v); }
|
|
9474
|
+
get grouping(): any[] | null { return this._groupingControllable.read(); }
|
|
9475
|
+
set grouping(v: any[] | null) { this._groupingControllable.notifyPropertyWrite(v); }
|
|
9476
9476
|
get rowSelection(): any { return this._rowSelectionControllable.read(); }
|
|
9477
9477
|
set rowSelection(v: any) { this._rowSelectionControllable.notifyPropertyWrite(v); }
|
|
9478
9478
|
get columnVisibility(): any { return this._columnVisibilityControllable.read(); }
|