@one-paragon/angular-utilities 2.4.6 → 2.5.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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { Injector, OnInit, TemplateRef, ViewContainerRef, Signal, InjectionToken, OnDestroy, Predicate, PipeTransform, EnvironmentProviders, OnChanges, SimpleChanges, AfterViewInit, ElementRef, EventEmitter, QueryList, ModuleWithProviders, EnvironmentInjector } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
|
-
import { Observable, Subscription, Subject, Unsubscribable, ReplaySubject, Timestamp, MonoTypeOperatorFunction, OperatorFunction } from 'rxjs';
|
|
4
|
+
import { Observable, Subscription, Subject, Unsubscribable, ReplaySubject, Timestamp, BehaviorSubject, MonoTypeOperatorFunction, OperatorFunction } from 'rxjs';
|
|
5
5
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
6
6
|
import * as _one_paragon_angular_utilities from '@one-paragon/angular-utilities';
|
|
7
7
|
import { QueryParamsHandling } from '@angular/router';
|
|
@@ -783,6 +783,7 @@ interface PartialFilter {
|
|
|
783
783
|
interface CustomFilter<T = any> extends FilterState {
|
|
784
784
|
predicate: Predicate<T>;
|
|
785
785
|
filterType: typeof FilterType.Custom;
|
|
786
|
+
chipLabel?: string;
|
|
786
787
|
}
|
|
787
788
|
declare function isCustomFilter(filter: FilterInfo | CustomFilter): filter is CustomFilter;
|
|
788
789
|
declare function isFilterInfo(filter: FilterInfo | CustomFilter): filter is FilterInfo;
|
|
@@ -1474,10 +1475,11 @@ interface ColumnInfo {
|
|
|
1474
1475
|
declare class GenericTableComponent {
|
|
1475
1476
|
#private;
|
|
1476
1477
|
protected state: TableStore;
|
|
1477
|
-
|
|
1478
|
+
protected dataStore: DataStore;
|
|
1478
1479
|
private viewContainer;
|
|
1479
1480
|
private config;
|
|
1480
1481
|
private _injector;
|
|
1482
|
+
private tableContainer;
|
|
1481
1483
|
smallFooter: number;
|
|
1482
1484
|
$headerRow: _angular_core.Signal<MatHeaderRowDef | undefined>;
|
|
1483
1485
|
$footerRow: _angular_core.Signal<MatFooterRowDef | undefined>;
|
|
@@ -1515,6 +1517,7 @@ declare class GenericTableComponent {
|
|
|
1515
1517
|
buildColumn(column: ColumnInfo): void;
|
|
1516
1518
|
$hasSelectColumn: _angular_core.Signal<boolean>;
|
|
1517
1519
|
$selection: _angular_core.Signal<SelectionModel<any>>;
|
|
1520
|
+
checkForPreviousSelection(m: SelectionModel<any>): void;
|
|
1518
1521
|
selectionChange$: rxjs.Observable<SelectionChange<any>>;
|
|
1519
1522
|
$selectionChange: _angular_core.Signal<SelectionChange<any> | undefined>;
|
|
1520
1523
|
onSelectionChangeEffect: _angular_core.EffectRef;
|
|
@@ -1526,6 +1529,7 @@ declare class GenericTableComponent {
|
|
|
1526
1529
|
$selectAllMessage: _angular_core.Signal<string>;
|
|
1527
1530
|
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
1528
1531
|
masterToggle(): void;
|
|
1532
|
+
selectTop(size: number): void;
|
|
1529
1533
|
$tableWidth: _angular_core.WritableSignal<{
|
|
1530
1534
|
width: string;
|
|
1531
1535
|
}>;
|
|
@@ -1545,6 +1549,7 @@ declare class GenericTableComponent {
|
|
|
1545
1549
|
toggleGroup: (uniqueName: string, allSelected: boolean) => void;
|
|
1546
1550
|
toggleGroupMessage: (amountOfItems: number, allSelected: boolean) => string;
|
|
1547
1551
|
getCustomGroupRowTemplate: (groupingKey: string) => _angular_core.Signal<_angular_core.TemplateRef<any>>;
|
|
1552
|
+
addSelectFilter(e: boolean): void;
|
|
1548
1553
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GenericTableComponent, never>;
|
|
1549
1554
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GenericTableComponent, "tb-generic-table", never, { "$displayDataLength": { "alias": "displayDataLength"; "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>;
|
|
1550
1555
|
}
|
|
@@ -1582,7 +1587,8 @@ declare class TableContainerComponent<T = any> {
|
|
|
1582
1587
|
$groupHeaderTemplate: _angular_core.InputSignal<TemplateRef<any> | undefined>;
|
|
1583
1588
|
$groupHeaderHeight: _angular_core.InputSignal<number | undefined>;
|
|
1584
1589
|
$pageSize: _angular_core.InputSignal<number | undefined>;
|
|
1585
|
-
|
|
1590
|
+
_selection$: BehaviorSubject<SelectionChange<T> | null>;
|
|
1591
|
+
selection$: _angular_core.OutputRef<SelectionChange<T>>;
|
|
1586
1592
|
onStateReset$: _angular_core.OutputEmitterRef<null>;
|
|
1587
1593
|
onSaveState$: _angular_core.OutputEmitterRef<null>;
|
|
1588
1594
|
state$: _angular_core.OutputRef<PersistedTableState>;
|
|
@@ -1939,6 +1945,7 @@ declare class FilterChipsComponent {
|
|
|
1939
1945
|
tableState: TableStore;
|
|
1940
1946
|
filterStore: WrapperFilterStore;
|
|
1941
1947
|
$filters: _angular_core.Signal<FilterInfo<any, any>[]>;
|
|
1948
|
+
$certainCustomFilters: _angular_core.Signal<CustomFilter<any>[]>;
|
|
1942
1949
|
deleteByIndex(index: number): void;
|
|
1943
1950
|
addFilter(filter: FilterInfo<any>): void;
|
|
1944
1951
|
clearAll(): void;
|