@one-paragon/angular-utilities 2.8.5 → 2.8.7

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": "@one-paragon/angular-utilities",
3
- "version": "2.8.5",
3
+ "version": "2.8.7",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "21.1.0",
6
6
  "@angular/core": "21.1.0",
@@ -844,7 +844,7 @@ declare class TableBuilder<T = any> {
844
844
  $data: Signal<T[]>;
845
845
  createMetaData(obj: any): MetaData[];
846
846
  }
847
- declare const CreateTableBuilder: (reportDef$: Observable<ReportDef>) => TableBuilder;
847
+ declare const CreateTableBuilder: <T = any>(reportDef: Observable<ReportDef<T>> | Signal<ReportDef<T>>, settings?: TableBuilderArgs<TableBuilderSettings<T>>) => TableBuilder<T>;
848
848
  type TableBuilderArgs<T> = T | Observable<T> | Signal<T>;
849
849
 
850
850
  interface CustomCellContext<T> {
@@ -1286,7 +1286,7 @@ declare class MatButtonToggleFilterDirective extends TbSelectedFilterDirective i
1286
1286
  }
1287
1287
 
1288
1288
  declare class TableWrapperDirective {
1289
- $registrations: _angular_core.WritableSignal<(TableCustomFilterDirective | TableFilterDirective)[]>;
1289
+ $registrations: _angular_core.WritableSignal<(TableFilterDirective | TableCustomFilterDirective)[]>;
1290
1290
  register(filter: TableCustomFilterDirective | TableFilterDirective): void;
1291
1291
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableWrapperDirective, never>;
1292
1292
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableWrapperDirective, "[tbWrapper]", never, {}, {}, never, never, true, never>;
@@ -1541,7 +1541,7 @@ declare class GenericTableComponent {
1541
1541
  $displayData: _angular_core.InputSignal<any[]>;
1542
1542
  $displayDataLength: _angular_core.Signal<number>;
1543
1543
  $data: _angular_core.InputSignal<any[]>;
1544
- $rows: _angular_core.InputSignal<MatRowDef<any>[]>;
1544
+ $customRows: _angular_core.InputSignal<MatRowDef<any>[]>;
1545
1545
  $columnInfos: _angular_core.InputSignal<ColumnInfo[]>;
1546
1546
  $dataSource: _angular_core.InputSignal<MatTableDataSource<any, _angular_material_paginator.MatPaginator>>;
1547
1547
  $keys: _angular_core.Signal<string[]>;
@@ -1618,9 +1618,18 @@ declare class GenericTableComponent {
1618
1618
  maxWidth: string;
1619
1619
  } | undefined>;
1620
1620
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<GenericTableComponent, never>;
1621
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<GenericTableComponent, "tb-generic-table", never, { "$displayData": { "alias": "displayData"; "required": true; "isSignal": true; }; "$data": { "alias": "data"; "required": true; "isSignal": true; }; "$rows": { "alias": "rows"; "required": false; "isSignal": true; }; "$columnInfos": { "alias": "columnInfos"; "required": true; "isSignal": true; }; "$dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "$trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; }, { "selection$": "selection"; }, never, never, true, never>;
1621
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<GenericTableComponent, "tb-generic-table", never, { "$displayData": { "alias": "displayData"; "required": true; "isSignal": true; }; "$data": { "alias": "data"; "required": true; "isSignal": true; }; "$customRows": { "alias": "customRows"; "required": false; "isSignal": true; }; "$columnInfos": { "alias": "columnInfos"; "required": true; "isSignal": true; }; "$dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "$trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; }, { "selection$": "selection"; }, never, never, true, never>;
1622
1622
  }
1623
1623
 
1624
+ /**
1625
+ * This component is the main container for the table builder. It is responsible for managing the state of the table, including filters, sorting, grouping, and pagination. It also handles the communication between the different components of the table builder, such as the column builder and the filter builder.
1626
+ *
1627
+ * You can drop in custom cells, headers, and group rows by using the corresponding directives. These will be automatically picked up and used in the table.
1628
+ *
1629
+ * You can add to the table header by adding a component with the selector '.tb-header-title' inside the table container (this is in addition to what you can add through the table settings).
1630
+ *
1631
+ * You can also add to the table footer by adding a component with the selector '.tb-paginator-row' inside the table container.
1632
+ */
1624
1633
  declare class TableContainerComponent<T = any> {
1625
1634
  #private;
1626
1635
  state: TableStore;
@@ -1647,7 +1656,7 @@ declare class TableContainerComponent<T = any> {
1647
1656
  $tableBuilder: _angular_core.InputSignal<TableBuilder<T>>;
1648
1657
  $tableIdInput: _angular_core.InputSignal<string | undefined>;
1649
1658
  $trackByInput: _angular_core.InputSignal<string | undefined>;
1650
- $inputFilters: _angular_core.InputSignal<(FilterInfo<any, T> | Predicate<T> | CustomFilter<T>)[]>;
1659
+ $inputFilters: _angular_core.InputSignal<(Predicate<T> | CustomFilter<T> | FilterInfo<any, T>)[]>;
1651
1660
  $filterInfoInputs: _angular_core.Signal<(FilterInfo<any, any> | CustomFilter<any>)[]>;
1652
1661
  $indexColumnInput: _angular_core.InputSignal<boolean>;
1653
1662
  $selectionColumnInput: _angular_core.InputSignal<boolean>;