@one-paragon/angular-utilities 2.3.16 → 2.4.0

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/index.d.ts CHANGED
@@ -7,7 +7,8 @@ import * as _one_paragon_angular_utilities from '@one-paragon/angular-utilities'
7
7
  import { QueryParamsHandling } from '@angular/router';
8
8
  import * as _ngrx_entity from '@ngrx/entity';
9
9
  import { Dictionary as Dictionary$1, Predicate as Predicate$1, EntityState } from '@ngrx/entity';
10
- import { Sort, MatSort, SortDirection as SortDirection$1 } from '@angular/material/sort';
10
+ import * as _angular_material_sort from '@angular/material/sort';
11
+ import { Sort, SortDirection as SortDirection$1, MatSort } from '@angular/material/sort';
11
12
  import { MatTableDataSource, MatColumnDef, MatHeaderRowDef, MatFooterRowDef, MatTable, MatRowDef } from '@angular/material/table';
12
13
  import { CdkColumnDef } from '@angular/cdk/table';
13
14
  import { ComponentStore } from '@ngrx/component-store';
@@ -743,7 +744,6 @@ declare const FilterType: {
743
744
  readonly DateTimeBetween: "Between";
744
745
  readonly BooleanEquals: "Is";
745
746
  readonly IsNull: "Is Blank";
746
- readonly Or: "Or";
747
747
  readonly And: "And";
748
748
  readonly In: "In";
749
749
  readonly Custom: "Custom";
@@ -841,6 +841,7 @@ type Group<T extends NoneGroupHeader = any> = GroupGroup<T> | DataGroup<T>;
841
841
  interface GroupedData {
842
842
  key: string;
843
843
  expandedHeaders: string[];
844
+ sort: SortDirection$1;
844
845
  }
845
846
  interface PersistedTableState {
846
847
  hiddenKeys?: string[];
@@ -962,6 +963,7 @@ declare class TableStore extends ComponentStore<TableState> {
962
963
  $tableSettingsMinWidth: Signal<number | undefined>;
963
964
  $getUserDefinedWidth: (key: string) => Signal<number>;
964
965
  $filters: Signal<Dictionary<FilterInfo<any, any> | CustomFilter<any>>>;
966
+ $filtersArray: Signal<(FilterInfo<any, any> | CustomFilter<any>)[]>;
965
967
  filters$: Observable<Dictionary<FilterInfo<any, any> | CustomFilter<any>>>;
966
968
  $getFilter: (filterId: string) => Signal<FilterInfo | CustomFilter | undefined>;
967
969
  $preSort: Signal<TableBuilderSort[]>;
@@ -978,11 +980,12 @@ declare class TableStore extends ComponentStore<TableState> {
978
980
  $footerCollapsed: Signal<boolean>;
979
981
  $headerCollapsed: Signal<boolean>;
980
982
  $groupBy: Signal<GroupedData[]>;
981
- $groupByKeys: Signal<string[]>;
983
+ $groupByData: Signal<GroupedData[]>;
982
984
  groupByKeys$: Observable<string[]>;
983
985
  expandedGroups$: Observable<GroupedData[]>;
984
986
  $expandGroups: Signal<GroupedData[]>;
985
987
  $getIsExpanded: (columnKey: string, groupUniqueName: string) => Signal<boolean>;
988
+ $sortedGroupsUpdates: Signal<GroupedData[]>;
986
989
  $currentPage: Signal<number>;
987
990
  $pageSize: Signal<number>;
988
991
  $showAll: Signal<boolean>;
@@ -1077,6 +1080,15 @@ declare class TableStore extends ComponentStore<TableState> {
1077
1080
  } | Observable<{
1078
1081
  keys: string[];
1079
1082
  }>) => rxjs.Subscription;
1083
+ updateGroupBySort: (observableOrValue: {
1084
+ key: string;
1085
+ sort: SortDirection$1;
1086
+ } | Observable<{
1087
+ key: string;
1088
+ sort: SortDirection$1;
1089
+ }>) => rxjs.Subscription;
1090
+ getGroupBySortDirection: (key: string) => Signal<SortDirection$1>;
1091
+ cycleGroupBySortDirection: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
1080
1092
  readonly setLinkMaps: (() => void) | ((observableOrValue: any) => rxjs.Subscription);
1081
1093
  updateRowProps: (observableOrValue: Pick<NotPersistedTableSettings, "rowClasses" | "rowStyles" | "rowClick"> | Observable<Pick<NotPersistedTableSettings, "rowClasses" | "rowStyles" | "rowClick">>) => rxjs.Subscription;
1082
1094
  on: <V>(srcObservable: Observable<V>, func: (obj: V) => void) => this;
@@ -1304,16 +1316,17 @@ interface GlobalStorageState {
1304
1316
  localProfiles: Dictionary<Profile>;
1305
1317
  }
1306
1318
 
1307
- declare function setCustomGroupBy(customGroupBy: <T extends NoneGroupHeader = any>(data: T[], groupByKeys: string[], level?: number, metaData?: Dictionary$1<MetaData<T>>, parentGroupName?: string) => DataGroup<T>[] | GroupGroup<T>[]): void;
1308
- declare function updateGroupByState<T extends NoneGroupHeader = any>(groupedData: any[], { data, groups, expanded }: {
1319
+ declare function setCustomGroupBy(customGroupBy: <T extends NoneGroupHeader = any>(data: T[], groupByDatas: GroupedData[], level?: number, metaData?: Dictionary$1<MetaData<T>>, parentGroupName?: string) => DataGroup<T>[] | GroupGroup<T>[]): void;
1320
+ declare function updateGroupByState<T extends NoneGroupHeader = any>(groupedData: any[], { data, groups, expanded, sorts }: {
1309
1321
  data: Timestamp<T[]>;
1310
- groups: Timestamp<string[]>;
1322
+ groups: Timestamp<GroupedData[]>;
1311
1323
  expanded: Timestamp<GroupedData[]>;
1324
+ sorts: Timestamp<GroupedData[]>;
1312
1325
  }, firstRun: boolean, metaData: Dictionary$1<MetaData<T>>): GroupByState;
1313
1326
  declare function mapGroupHeader(obj: DataGroup | GroupGroup, expandedHeaders: string[] | true): any[];
1314
1327
  interface GroupByState {
1315
1328
  displayData: any[];
1316
- groupedData: DataGroup[];
1329
+ groupedData: Group[];
1317
1330
  }
1318
1331
  declare const initialGroupByState: {
1319
1332
  displayData: never[];
@@ -1561,13 +1574,17 @@ declare class TableContainerComponent<T = any> {
1561
1574
  private $allTimeStamped;
1562
1575
  private $sortedAndFilteredData;
1563
1576
  $timestampedGroups: _angular_core.Signal<{
1564
- value: string[];
1577
+ value: GroupedData[];
1565
1578
  timestamp: number;
1566
1579
  }>;
1567
1580
  $timestampedExpanded: _angular_core.Signal<{
1568
1581
  value: GroupedData[];
1569
1582
  timestamp: number;
1570
1583
  }>;
1584
+ $timestampedGroupSortUpdated: _angular_core.Signal<{
1585
+ value: GroupedData[];
1586
+ timestamp: number;
1587
+ }>;
1571
1588
  private $dataAndGroupsTimestamped;
1572
1589
  protected $filteredSortedAndGrouped: _angular_core.WritableSignal<GroupByState | undefined>;
1573
1590
  private $isInitializationState;
@@ -1768,15 +1785,18 @@ declare class DateFilterComponent {
1768
1785
  readonly DateTimeBetween: "Between";
1769
1786
  readonly BooleanEquals: "Is";
1770
1787
  readonly IsNull: "Is Blank";
1771
- readonly Or: "Or";
1772
1788
  readonly And: "And";
1773
1789
  readonly In: "In";
1774
1790
  readonly Custom: "Custom";
1775
1791
  };
1776
- info: PartialFilter;
1777
- CurrentFilterType: FilterType;
1792
+ FieldType: typeof FieldType;
1793
+ $info: _angular_core.InputSignal<PartialFilter>;
1794
+ $currentFilterType: _angular_core.InputSignal<FilterType>;
1795
+ private state;
1796
+ $metaData: _angular_core.Signal<_one_paragon_angular_utilities.MetaData>;
1797
+ $allValuesInMeta: _angular_core.Signal<boolean>;
1778
1798
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateFilterComponent, never>;
1779
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateFilterComponent, "tb-date-filter", never, { "info": { "alias": "info"; "required": false; }; "CurrentFilterType": { "alias": "CurrentFilterType"; "required": false; }; }, {}, never, never, true, never>;
1799
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateFilterComponent, "tb-date-filter", never, { "$info": { "alias": "info"; "required": true; "isSignal": true; }; "$currentFilterType": { "alias": "currentFilterType"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
1780
1800
  }
1781
1801
 
1782
1802
  declare class FilterComponent {
@@ -1805,13 +1825,14 @@ declare class FilterComponent {
1805
1825
  readonly DateTimeBetween: "Between";
1806
1826
  readonly BooleanEquals: "Is";
1807
1827
  readonly IsNull: "Is Blank";
1808
- readonly Or: "Or";
1809
1828
  readonly And: "And";
1810
1829
  readonly In: "In";
1811
1830
  readonly Custom: "Custom";
1812
1831
  };
1813
1832
  FieldType: typeof FieldType;
1814
1833
  $filter: _angular_core.InputSignalWithTransform<PartialFilter, PartialFilter>;
1834
+ $metaData: _angular_core.Signal<_one_paragon_angular_utilities.MetaData>;
1835
+ $allValuesInMeta: _angular_core.Signal<boolean>;
1815
1836
  close: _angular_core.OutputEmitterRef<void>;
1816
1837
  $enteredFilterType: _angular_core.WritableSignal<FilterType | undefined>;
1817
1838
  $currentFilterType: _angular_core.Signal<FilterType | undefined>;
@@ -1844,14 +1865,11 @@ declare class GenColDisplayerComponent {
1844
1865
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<GenColDisplayerComponent, "tb-col-displayer", never, {}, {}, never, never, true, never>;
1845
1866
  }
1846
1867
 
1847
- declare class WrapperFilterStore extends ComponentStore<{
1848
- filterInfo: PartialFilter[];
1849
- }> {
1850
- constructor();
1868
+ declare class WrapperFilterStore {
1869
+ $filters: _angular_core.WritableSignal<PartialFilter[]>;
1851
1870
  clearAll: () => void;
1852
- deleteByIndex: (observableOrValue: number | rxjs.Observable<number>) => rxjs.Subscription;
1853
- $currentFilters: _angular_core.Signal<PartialFilter[]>;
1854
- addFilter: (observableOrValue: PartialFilter | rxjs.Observable<PartialFilter>) => rxjs.Subscription;
1871
+ deleteByIndex: (index: number) => void;
1872
+ addFilter: (filter: PartialFilter) => void;
1855
1873
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrapperFilterStore, never>;
1856
1874
  static ɵprov: _angular_core.ɵɵInjectableDeclaration<WrapperFilterStore>;
1857
1875
  }
@@ -1872,7 +1890,7 @@ declare class FilterChipsComponent {
1872
1890
  deleteByIndex(index: number): void;
1873
1891
  addFilter(filter: FilterInfo<any>): void;
1874
1892
  clearAll(): void;
1875
- $currentFilters: _angular_core.Signal<_one_paragon_angular_utilities.PartialFilter[]>;
1893
+ $currentFilters: _angular_core.WritableSignal<_one_paragon_angular_utilities.PartialFilter[]>;
1876
1894
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterChipsComponent, never>;
1877
1895
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterChipsComponent, "lib-filter-list", never, {}, {}, never, never, true, never>;
1878
1896
  }
@@ -1882,6 +1900,7 @@ declare class GroupByListComponent {
1882
1900
  $groups: _angular_core.Signal<{
1883
1901
  key: string;
1884
1902
  name: string;
1903
+ sort: _angular_material_sort.SortDirection;
1885
1904
  }[]>;
1886
1905
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<GroupByListComponent, never>;
1887
1906
  static ɵcmp: _angular_core.ɵɵComponentDeclaration<GroupByListComponent, "group-by-list", never, {}, {}, never, never, true, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@one-paragon/angular-utilities",
3
- "version": "2.3.16",
3
+ "version": "2.4.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "20.0.",
6
6
  "@angular/core": "20.0.3",