@akcelik/strct 0.5.7 → 0.5.9

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akcelik/strct",
3
- "version": "0.5.7",
3
+ "version": "0.5.9",
4
4
  "description": "UIStruct — a standalone Angular component library with a tokenised, multi-palette theme system, built for datacenter / infrastructure management UIs.",
5
5
  "author": "Serkan Akcelik <serkan.akcelik@gmail.com>",
6
6
  "license": "MIT",
@@ -1483,6 +1483,8 @@ declare class StrctDatagrid {
1483
1483
  readonly loading: _angular_core.InputSignalWithTransform<boolean, unknown>;
1484
1484
  /** Enable column resizing by dragging column headers. */
1485
1485
  readonly resizable: _angular_core.InputSignalWithTransform<boolean, unknown>;
1486
+ /** Show a column-chooser dropdown in the footer. */
1487
+ readonly columnChooser: _angular_core.InputSignalWithTransform<boolean, unknown>;
1486
1488
  /**
1487
1489
  * Stable row identity (property key or function). Set this for live-refreshing
1488
1490
  * data so selection, expansion and the active detail row survive re-fetches
@@ -1502,6 +1504,8 @@ declare class StrctDatagrid {
1502
1504
  protected readonly selectedCount: _angular_core.Signal<number>;
1503
1505
  private readonly expandedRows;
1504
1506
  private readonly columnWidths;
1507
+ protected readonly hiddenColumns: _angular_core.WritableSignal<Set<string>>;
1508
+ protected readonly chooserOpen: _angular_core.WritableSignal<boolean>;
1505
1509
  private resizeState;
1506
1510
  private readonly onMove;
1507
1511
  private readonly onUp;
@@ -1534,6 +1538,7 @@ declare class StrctDatagrid {
1534
1538
  protected sortIcon(key: string): string;
1535
1539
  protected ariaSort(key: string): 'ascending' | 'descending' | 'none';
1536
1540
  protected onHeaderSpace(event: Event, key: string): void;
1541
+ protected toggleColumn(key: string, visible: boolean): void;
1537
1542
  protected isSelected(row: StrctRow): boolean;
1538
1543
  protected isExpanded(row: StrctRow): boolean;
1539
1544
  toggleExpand(row: StrctRow): void;
@@ -1545,7 +1550,7 @@ declare class StrctDatagrid {
1545
1550
  private commitSelection;
1546
1551
  private compare;
1547
1552
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<StrctDatagrid, never>;
1548
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctDatagrid, "strct-datagrid", never, { "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rows": { "alias": "rows"; "required": true; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "detailPane": { "alias": "detailPane"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "rowId": { "alias": "rowId"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; }, ["detailDef", "actionBarDef", "cellDefs"], ["[strctDatagridActionBar]"], true, never>;
1553
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<StrctDatagrid, "strct-datagrid", never, { "columns": { "alias": "columns"; "required": true; "isSignal": true; }; "rows": { "alias": "rows"; "required": true; "isSignal": true; }; "pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; "selectable": { "alias": "selectable"; "required": false; "isSignal": true; }; "expandable": { "alias": "expandable"; "required": false; "isSignal": true; }; "detailPane": { "alias": "detailPane"; "required": false; "isSignal": true; }; "compact": { "alias": "compact"; "required": false; "isSignal": true; }; "emptyText": { "alias": "emptyText"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "resizable": { "alias": "resizable"; "required": false; "isSignal": true; }; "columnChooser": { "alias": "columnChooser"; "required": false; "isSignal": true; }; "rowId": { "alias": "rowId"; "required": false; "isSignal": true; }; }, { "selectionChange": "selectionChange"; }, ["detailDef", "actionBarDef", "cellDefs"], ["[strctDatagridActionBar]"], true, never>;
1549
1554
  }
1550
1555
 
1551
1556
  /** Timeline node state colors. */