@one-paragon/angular-utilities 2.9.3 → 2.9.5-beta.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.
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { Injector, OnInit, TemplateRef, ViewContainerRef, Signal, InjectionToken, OnDestroy, Predicate,
|
|
2
|
+
import { Injector, OnInit, TemplateRef, ViewContainerRef, Signal, InjectionToken, OnDestroy, Predicate, OnChanges, SimpleChanges, AfterViewInit, ElementRef, PipeTransform, EventEmitter, QueryList, ModuleWithProviders, EnvironmentProviders, EnvironmentInjector } from '@angular/core';
|
|
3
3
|
import * as rxjs from 'rxjs';
|
|
4
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';
|
|
8
|
-
import * as _ngrx_entity from '@ngrx/entity';
|
|
9
|
-
import { Dictionary as Dictionary$1, Predicate as Predicate$1, EntityState } from '@ngrx/entity';
|
|
10
8
|
import * as _angular_material_sort from '@angular/material/sort';
|
|
11
|
-
import { SortDirection as SortDirection$1,
|
|
9
|
+
import { SortDirection as SortDirection$1, Sort, MatSort } from '@angular/material/sort';
|
|
12
10
|
import { MatTableDataSource, MatColumnDef, MatHeaderRowDef, MatFooterRowDef, MatTable, MatRowDef } from '@angular/material/table';
|
|
13
11
|
import { CdkColumnDef } from '@angular/cdk/table';
|
|
14
12
|
import { ComponentStore } from '@ngrx/component-store';
|
|
@@ -22,6 +20,8 @@ import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
|
|
22
20
|
import { MatSlideToggle } from '@angular/material/slide-toggle';
|
|
23
21
|
import * as _ngrx_store from '@ngrx/store';
|
|
24
22
|
import { Action, MemoizedSelector, Store } from '@ngrx/store';
|
|
23
|
+
import * as _ngrx_entity from '@ngrx/entity';
|
|
24
|
+
import { EntityState } from '@ngrx/entity';
|
|
25
25
|
import * as i1 from '@angular/common';
|
|
26
26
|
|
|
27
27
|
declare enum RequestStatus {
|
|
@@ -154,10 +154,6 @@ declare class RequestStateStore<TParam extends any[], V, R = null, T = R extends
|
|
|
154
154
|
onSuccessOrError(cb: () => void): this;
|
|
155
155
|
private createRequest;
|
|
156
156
|
private effectOnState;
|
|
157
|
-
/**
|
|
158
|
-
* @deprecated use the standalone subscriber helper function
|
|
159
|
-
*/
|
|
160
|
-
on: <V_1>(srcObservable: Observable<V_1>, func: (obj: V_1) => void) => Subscription;
|
|
161
157
|
request: (...value: [...TParam]) => Subscription;
|
|
162
158
|
/**
|
|
163
159
|
* @param params An observable or signal that returns an array to be spread into the request function.
|
|
@@ -177,10 +173,6 @@ declare class RequestStateStore<TParam extends any[], V, R = null, T = R extends
|
|
|
177
173
|
state$: Observable<RequestResponse<TParam, T>>;
|
|
178
174
|
selectRequestState$: Observable<RequestState<T>>;
|
|
179
175
|
selectResponse$: Observable<T>;
|
|
180
|
-
/**
|
|
181
|
-
* @deprecated use selectRequestState$ instead
|
|
182
|
-
*/
|
|
183
|
-
selectHttpState$: Observable<RequestState<T>>;
|
|
184
176
|
selectStatus$: Observable<RequestStatus>;
|
|
185
177
|
selectError$: Observable<any>;
|
|
186
178
|
refresh(): void;
|
|
@@ -303,25 +295,36 @@ declare class RequestStateFactory implements OnDestroy {
|
|
|
303
295
|
declare function createRequestor<TParam extends any[], V>(req: RequestFactory<TParam, V>, options?: RequestCreatorOptions<TParam>): RequestStateStore<TParam, V>;
|
|
304
296
|
declare function createRequestor<TParam extends any[], V, R, T = R>(req: RequestFactory<TParam, V>, project: (v: V) => R, options?: RequestCreatorOptions<TParam>): RequestStateStore<TParam, V, T>;
|
|
305
297
|
|
|
306
|
-
interface Dictionary<T> {
|
|
307
|
-
[key: string]: T;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
298
|
declare class StylerDirective {
|
|
311
299
|
#private;
|
|
312
300
|
private el;
|
|
313
301
|
private renderer;
|
|
314
|
-
$stylesApplied: _angular_core.WritableSignal<
|
|
302
|
+
$stylesApplied: _angular_core.WritableSignal<Record<string, string>>;
|
|
315
303
|
$element: _angular_core.InputSignal<any>;
|
|
316
304
|
$styler: _angular_core.InputSignal<StylerStyle<any>>;
|
|
317
305
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StylerDirective, never>;
|
|
318
306
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StylerDirective, "[styler]", never, { "$element": { "alias": "element"; "required": true; "isSignal": true; }; "$styler": { "alias": "styler"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
319
307
|
}
|
|
320
|
-
type StylerStyle<T = any> =
|
|
308
|
+
type StylerStyle<T = any> = Record<string, string | {
|
|
321
309
|
condition?: ((t: T) => boolean) | true;
|
|
322
310
|
value: ((t: T) => string) | string;
|
|
323
311
|
}>;
|
|
324
312
|
|
|
313
|
+
interface TableBuilderExport {
|
|
314
|
+
dateFormat?: string;
|
|
315
|
+
dateTimeFormat?: string;
|
|
316
|
+
prepend?: string;
|
|
317
|
+
mapEnumToString?: boolean;
|
|
318
|
+
/**
|
|
319
|
+
* defaults to 'as view'
|
|
320
|
+
*/
|
|
321
|
+
mapLink?: 'as link' | 'as view' | 'add link' | 'as excel' | 'add excel';
|
|
322
|
+
/**
|
|
323
|
+
* used with `mapLink` = `'as link'` or `'add link'` to add a domain prefix to the link
|
|
324
|
+
*/
|
|
325
|
+
linkDomainPrefix?: string;
|
|
326
|
+
}
|
|
327
|
+
|
|
325
328
|
declare enum FieldType {
|
|
326
329
|
Unknown = 0,
|
|
327
330
|
Date = 1,
|
|
@@ -379,7 +382,7 @@ interface BaseMeta<T = any> {
|
|
|
379
382
|
};
|
|
380
383
|
click?: (element: T, key?: string, event?: MouseEvent) => void;
|
|
381
384
|
template?: TemplateRef<any>;
|
|
382
|
-
classes?:
|
|
385
|
+
classes?: Record<string, Predicate<T> | true>;
|
|
383
386
|
toolTip?: string | ((t: T) => string);
|
|
384
387
|
useIcon?: boolean;
|
|
385
388
|
map?: (t: T) => any;
|
|
@@ -482,14 +485,14 @@ interface BaseAdditional<T = any> {
|
|
|
482
485
|
dateTimeOptions?: DateTimeOptions;
|
|
483
486
|
styles?: StylerStyle<T>;
|
|
484
487
|
columnPartStyles?: {
|
|
485
|
-
header?:
|
|
488
|
+
header?: Record<string, string>;
|
|
486
489
|
body?: StylerStyle<T>;
|
|
487
490
|
innerBody?: StylerStyle<T>;
|
|
488
|
-
footer?:
|
|
491
|
+
footer?: Record<string, string>;
|
|
489
492
|
};
|
|
490
493
|
columnPartClasses?: {
|
|
491
|
-
header?:
|
|
492
|
-
footer?:
|
|
494
|
+
header?: Record<string, Predicate<T> | true>;
|
|
495
|
+
footer?: Record<string, Predicate<T> | true>;
|
|
493
496
|
};
|
|
494
497
|
footer?: {
|
|
495
498
|
type: any;
|
|
@@ -562,7 +565,7 @@ interface MetaDataExport<T> extends TableBuilderExport {
|
|
|
562
565
|
*/
|
|
563
566
|
linkColumnName?: string;
|
|
564
567
|
}
|
|
565
|
-
declare function metaDataArrToDict<T = MetaData>(arr: MetaData[], transform?: (m: MetaData) => T):
|
|
568
|
+
declare function metaDataArrToDict<T = MetaData>(arr: MetaData[], transform?: (m: MetaData) => T): Record<string, T>;
|
|
566
569
|
interface CustomCellMeta extends Pick<MetaData, 'key' | 'displayName' | 'preSort' | 'fieldType' | 'order' | 'width'> {
|
|
567
570
|
customCell: true;
|
|
568
571
|
noExport?: boolean;
|
|
@@ -626,7 +629,7 @@ declare class TableSettings<T = any> {
|
|
|
626
629
|
rowHeight: TbSize | undefined;
|
|
627
630
|
groupHeaderHeight?: TbSize;
|
|
628
631
|
minColumnWidth: TbSize | undefined;
|
|
629
|
-
rowClasses:
|
|
632
|
+
rowClasses: Record<string, Predicate<T> | true> | undefined;
|
|
630
633
|
rowStyles: StylerStyle<T> | undefined;
|
|
631
634
|
rowClick: ((row: T, event?: MouseEvent) => void) | undefined;
|
|
632
635
|
exportSettings: TableBuilderExport | undefined;
|
|
@@ -660,7 +663,7 @@ declare class NotPersistedTableSettings {
|
|
|
660
663
|
rowHeight?: TbSize | undefined;
|
|
661
664
|
headerHeight?: TbSize;
|
|
662
665
|
minColumnWidth?: TbSize | undefined;
|
|
663
|
-
rowClasses?:
|
|
666
|
+
rowClasses?: Record<string, Predicate<any> | true> | undefined;
|
|
664
667
|
rowStyles?: StylerStyle | undefined;
|
|
665
668
|
rowClick?: ((row: any, event?: MouseEvent) => void) | undefined;
|
|
666
669
|
exportSettings: TableBuilderExport | undefined;
|
|
@@ -711,7 +714,7 @@ type TbSize = number | `${number}${'px' | 'rem'}`;
|
|
|
711
714
|
type TbTitle = {
|
|
712
715
|
text: string;
|
|
713
716
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
714
|
-
styles?:
|
|
717
|
+
styles?: Record<string, string>;
|
|
715
718
|
};
|
|
716
719
|
declare function parseTbSizeToPixels(size?: TbSize): number | undefined;
|
|
717
720
|
|
|
@@ -726,22 +729,7 @@ interface TableBuilderConfig {
|
|
|
726
729
|
}>;
|
|
727
730
|
}
|
|
728
731
|
declare const defaultConfig: TableBuilderConfig;
|
|
729
|
-
interface TableBuilderExport {
|
|
730
|
-
dateFormat?: string;
|
|
731
|
-
dateTimeFormat?: string;
|
|
732
|
-
prepend?: string;
|
|
733
|
-
mapEnumToString?: boolean;
|
|
734
|
-
/**
|
|
735
|
-
* defaults to 'as view'
|
|
736
|
-
*/
|
|
737
|
-
mapLink?: 'as link' | 'as view' | 'add link' | 'as excel' | 'add excel';
|
|
738
|
-
/**
|
|
739
|
-
* used with `mapLink` = `'as link'` or `'add link'` to add a domain prefix to the link
|
|
740
|
-
*/
|
|
741
|
-
linkDomainPrefix?: string;
|
|
742
|
-
}
|
|
743
732
|
declare const TableBuilderConfigToken: InjectionToken<TableBuilderConfig>;
|
|
744
|
-
declare function provideTableBuilder(config?: TableBuilderConfig): EnvironmentProviders;
|
|
745
733
|
|
|
746
734
|
declare const FilterType: {
|
|
747
735
|
readonly NumberEquals: "Equals";
|
|
@@ -779,7 +767,6 @@ type DateTimeFilterTypes = SubFilterTypes<'Is At' | 'Is Not At' | 'At or After'
|
|
|
779
767
|
type BooleanFilterTypes = SubFilterTypes<'Is' | 'Is Blank'>;
|
|
780
768
|
type EnumFilterTypes = SubFilterTypes<'In' | 'Is Blank'>;
|
|
781
769
|
|
|
782
|
-
declare const filterTypeMap: Record<FieldType, FilterType[]>;
|
|
783
770
|
interface FilterState {
|
|
784
771
|
filterId: string;
|
|
785
772
|
filterType: FilterType;
|
|
@@ -808,9 +795,6 @@ interface CustomFilter<T = any> extends FilterState {
|
|
|
808
795
|
}
|
|
809
796
|
declare function isCustomFilter(filter: FilterInfo | CustomFilter): filter is CustomFilter;
|
|
810
797
|
declare function isFilterInfo(filter: FilterInfo | CustomFilter): filter is FilterInfo;
|
|
811
|
-
declare function createFilterFuncs(filters: (FilterInfo | CustomFilter)[]): Predicate<any>[];
|
|
812
|
-
declare function needsFilterCreation(filter: FilterInfo | CustomFilter): boolean;
|
|
813
|
-
declare function createFilterFunc(filter: FilterInfo | CustomFilter): Predicate<any>;
|
|
814
798
|
type FilterFunc<T, V = T> = (filterInfo: FilterInfo) => (val: V) => boolean;
|
|
815
799
|
type Range<T> = {
|
|
816
800
|
Start: T;
|
|
@@ -848,49 +832,6 @@ declare class TableBuilder<T = any> {
|
|
|
848
832
|
declare const CreateTableBuilder: <T = any>(reportDef: Observable<ReportDef<T>> | Signal<ReportDef<T>>, settings?: TableBuilderArgs<TableBuilderSettings<T>>) => TableBuilder<T>;
|
|
849
833
|
type TableBuilderArgs<T> = T | Observable<T> | Signal<T>;
|
|
850
834
|
|
|
851
|
-
interface CustomCellContext<T> {
|
|
852
|
-
$implicit: T;
|
|
853
|
-
element: T;
|
|
854
|
-
}
|
|
855
|
-
declare class CustomCellDirective<T = any> implements OnInit {
|
|
856
|
-
private templateRef;
|
|
857
|
-
columnDef: CdkColumnDef | null;
|
|
858
|
-
$customCell: _angular_core.InputSignal<string>;
|
|
859
|
-
$displayName: _angular_core.InputSignal<string | undefined>;
|
|
860
|
-
$preSort: _angular_core.InputSignal<SortDef | undefined>;
|
|
861
|
-
$templateRef: _angular_core.InputSignal<TemplateRef<any> | undefined>;
|
|
862
|
-
$customCellOrder: _angular_core.InputSignal<number | undefined>;
|
|
863
|
-
$customCellWidth: _angular_core.InputSignal<string | undefined>;
|
|
864
|
-
/**
|
|
865
|
-
* for type safety, this is a reference to the table builder instance.
|
|
866
|
-
*/
|
|
867
|
-
$customCellTableRef: _angular_core.InputSignal<TableBuilder<T> | undefined>;
|
|
868
|
-
/**
|
|
869
|
-
* true if column not mapped to a property in the data source. Default is false.
|
|
870
|
-
*/
|
|
871
|
-
$customCellNotMapped: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
872
|
-
/**
|
|
873
|
-
* Styles to apply to the cell element
|
|
874
|
-
*/
|
|
875
|
-
$customCellCellStyles: _angular_core.InputSignal<StylerStyle<T> | undefined>;
|
|
876
|
-
$metaData: _angular_core.Signal<CustomCellMeta | undefined>;
|
|
877
|
-
$inited: _angular_core.WritableSignal<boolean>;
|
|
878
|
-
ngOnInit(): void;
|
|
879
|
-
static ngTemplateContextGuard<T>(dir: CustomCellDirective<T>, ctx: any): ctx is CustomCellContext<T>;
|
|
880
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomCellDirective<any>, never>;
|
|
881
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CustomCellDirective<any>, "[customCell]", never, { "$customCell": { "alias": "customCell"; "required": true; "isSignal": true; }; "$displayName": { "alias": "customCellDisplayName"; "required": false; "isSignal": true; }; "$preSort": { "alias": "preSort"; "required": false; "isSignal": true; }; "$templateRef": { "alias": "templateRef"; "required": false; "isSignal": true; }; "$customCellOrder": { "alias": "customCellOrder"; "required": false; "isSignal": true; }; "$customCellWidth": { "alias": "customCellWidth"; "required": false; "isSignal": true; }; "$customCellTableRef": { "alias": "customCellTableRef"; "required": false; "isSignal": true; }; "$customCellNotMapped": { "alias": "customCellNotMapped"; "required": false; "isSignal": true; }; "$customCellCellStyles": { "alias": "customCellCellStyles"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
882
|
-
}
|
|
883
|
-
|
|
884
|
-
declare class CustomHeaderDirective<T = any> implements OnInit {
|
|
885
|
-
private templateRef;
|
|
886
|
-
$customHeader: _angular_core.InputSignal<string>;
|
|
887
|
-
$inited: _angular_core.WritableSignal<boolean>;
|
|
888
|
-
template: () => TemplateRef<any>;
|
|
889
|
-
ngOnInit(): void;
|
|
890
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomHeaderDirective<any>, never>;
|
|
891
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CustomHeaderDirective<any>, "[customHeader]", never, { "$customHeader": { "alias": "customHeader"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
892
|
-
}
|
|
893
|
-
|
|
894
835
|
type NoneGroupHeader = any;
|
|
895
836
|
interface BaseGroup {
|
|
896
837
|
key: string;
|
|
@@ -971,6 +912,105 @@ declare class CustomGroupRowDirective<T = any> implements OnInit {
|
|
|
971
912
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CustomGroupRowDirective<any>, "[customGroupRow]", never, { "$customGroupRow": { "alias": "customGroupRow"; "required": false; "isSignal": true; }; "$customGroupRowTableRef": { "alias": "customGroupRowTableRef"; "required": false; "isSignal": true; }; "$priority": { "alias": "customGroupRowPriority"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
972
913
|
}
|
|
973
914
|
|
|
915
|
+
interface TableProps {
|
|
916
|
+
indexColumn: boolean;
|
|
917
|
+
selectionColumn: boolean;
|
|
918
|
+
isSticky: boolean;
|
|
919
|
+
stickyFooter: boolean;
|
|
920
|
+
groupHeaderTemplate?: TemplateRef<any>;
|
|
921
|
+
groupHeaderHeight?: number;
|
|
922
|
+
customGroupRows?: CustomGroupRowDirective<any>[];
|
|
923
|
+
}
|
|
924
|
+
|
|
925
|
+
interface PersistedTableState {
|
|
926
|
+
hiddenKeys?: string[];
|
|
927
|
+
filters: Record<string, FilterInfo | CustomFilter>;
|
|
928
|
+
sorted: Sort[];
|
|
929
|
+
userDefined: {
|
|
930
|
+
order: Record<string, number>;
|
|
931
|
+
widths: Record<string, number>;
|
|
932
|
+
table: {
|
|
933
|
+
width?: number;
|
|
934
|
+
};
|
|
935
|
+
pageSize?: number;
|
|
936
|
+
showAll?: boolean;
|
|
937
|
+
rowHeight?: number;
|
|
938
|
+
headerHeight?: number;
|
|
939
|
+
noGroups?: boolean;
|
|
940
|
+
};
|
|
941
|
+
persistedTableSettings: PersistedTableSettings;
|
|
942
|
+
groupBy: GroupedData[];
|
|
943
|
+
}
|
|
944
|
+
interface TableState extends Required<PersistedTableState> {
|
|
945
|
+
initializationState: InitializationState;
|
|
946
|
+
metaData: Record<string, MetaData>;
|
|
947
|
+
notPersistedTableSettings: NotPersistedTableSettings;
|
|
948
|
+
pageSize: number;
|
|
949
|
+
currentPage: number;
|
|
950
|
+
linkMaps: Record<string, LinkInfo>;
|
|
951
|
+
allFilters: Record<string, any[]>;
|
|
952
|
+
props: TableProps;
|
|
953
|
+
showAll: boolean;
|
|
954
|
+
}
|
|
955
|
+
interface DataState {
|
|
956
|
+
virtualScrollOffset: number;
|
|
957
|
+
virtualEnds: {
|
|
958
|
+
start: number;
|
|
959
|
+
end: number;
|
|
960
|
+
};
|
|
961
|
+
sortedFilteredDataLength: number;
|
|
962
|
+
sortedFilteredGroupedDataLength: number;
|
|
963
|
+
}
|
|
964
|
+
declare enum InitializationState {
|
|
965
|
+
Created = 0,
|
|
966
|
+
MetaDataLoaded = 1,
|
|
967
|
+
TableSettingsLoaded = 2,
|
|
968
|
+
Ready = 3
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
interface CustomCellContext<T> {
|
|
972
|
+
$implicit: T;
|
|
973
|
+
element: T;
|
|
974
|
+
}
|
|
975
|
+
declare class CustomCellDirective<T = any> implements OnInit {
|
|
976
|
+
private templateRef;
|
|
977
|
+
columnDef: CdkColumnDef | null;
|
|
978
|
+
$customCell: _angular_core.InputSignal<string>;
|
|
979
|
+
$displayName: _angular_core.InputSignal<string | undefined>;
|
|
980
|
+
$preSort: _angular_core.InputSignal<SortDef | undefined>;
|
|
981
|
+
$templateRef: _angular_core.InputSignal<TemplateRef<any> | undefined>;
|
|
982
|
+
$customCellOrder: _angular_core.InputSignal<number | undefined>;
|
|
983
|
+
$customCellWidth: _angular_core.InputSignal<string | undefined>;
|
|
984
|
+
/**
|
|
985
|
+
* for type safety, this is a reference to the table builder instance.
|
|
986
|
+
*/
|
|
987
|
+
$customCellTableRef: _angular_core.InputSignal<TableBuilder<T> | undefined>;
|
|
988
|
+
/**
|
|
989
|
+
* true if column not mapped to a property in the data source. Default is false.
|
|
990
|
+
*/
|
|
991
|
+
$customCellNotMapped: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
992
|
+
/**
|
|
993
|
+
* Styles to apply to the cell element
|
|
994
|
+
*/
|
|
995
|
+
$customCellCellStyles: _angular_core.InputSignal<StylerStyle<T> | undefined>;
|
|
996
|
+
$metaData: _angular_core.Signal<CustomCellMeta | undefined>;
|
|
997
|
+
$inited: _angular_core.WritableSignal<boolean>;
|
|
998
|
+
ngOnInit(): void;
|
|
999
|
+
static ngTemplateContextGuard<T>(dir: CustomCellDirective<T>, ctx: any): ctx is CustomCellContext<T>;
|
|
1000
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomCellDirective<any>, never>;
|
|
1001
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CustomCellDirective<any>, "[customCell]", never, { "$customCell": { "alias": "customCell"; "required": true; "isSignal": true; }; "$displayName": { "alias": "customCellDisplayName"; "required": false; "isSignal": true; }; "$preSort": { "alias": "preSort"; "required": false; "isSignal": true; }; "$templateRef": { "alias": "templateRef"; "required": false; "isSignal": true; }; "$customCellOrder": { "alias": "customCellOrder"; "required": false; "isSignal": true; }; "$customCellWidth": { "alias": "customCellWidth"; "required": false; "isSignal": true; }; "$customCellTableRef": { "alias": "customCellTableRef"; "required": false; "isSignal": true; }; "$customCellNotMapped": { "alias": "customCellNotMapped"; "required": false; "isSignal": true; }; "$customCellCellStyles": { "alias": "customCellCellStyles"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1002
|
+
}
|
|
1003
|
+
|
|
1004
|
+
declare class CustomHeaderDirective<T = any> implements OnInit {
|
|
1005
|
+
private templateRef;
|
|
1006
|
+
$customHeader: _angular_core.InputSignal<string>;
|
|
1007
|
+
$inited: _angular_core.WritableSignal<boolean>;
|
|
1008
|
+
template: () => TemplateRef<any>;
|
|
1009
|
+
ngOnInit(): void;
|
|
1010
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomHeaderDirective<any>, never>;
|
|
1011
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CustomHeaderDirective<any>, "[customHeader]", never, { "$customHeader": { "alias": "customHeader"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1012
|
+
}
|
|
1013
|
+
|
|
974
1014
|
declare class MultiSortDirective extends MatSort {
|
|
975
1015
|
#private;
|
|
976
1016
|
private state;
|
|
@@ -979,7 +1019,6 @@ declare class MultiSortDirective extends MatSort {
|
|
|
979
1019
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MultiSortDirective, never>;
|
|
980
1020
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MultiSortDirective, "[multiSort]", ["multiSort"], { "disabled": { "alias": "matSortDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
981
1021
|
}
|
|
982
|
-
declare function sortsAreSame(a: Sort[], b: Sort[]): boolean;
|
|
983
1022
|
|
|
984
1023
|
type TableBuilderSort = Sort & {
|
|
985
1024
|
nulls?: 'first' | 'last';
|
|
@@ -991,25 +1030,24 @@ declare class TableStore extends ComponentStore<TableState> {
|
|
|
991
1030
|
constructor();
|
|
992
1031
|
$initializationState: Signal<InitializationState>;
|
|
993
1032
|
$savableState: Signal<PersistedTableState>;
|
|
994
|
-
readonly showColumn: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
995
|
-
readonly hideColumn: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1033
|
+
readonly showColumn: (observableOrValue: string | rxjs.Observable<string>) => rxjs.Subscription;
|
|
1034
|
+
readonly hideColumn: (observableOrValue: string | rxjs.Observable<string>) => rxjs.Subscription;
|
|
996
1035
|
readonly setHiddenColumns: (observableOrValue: {
|
|
997
1036
|
key: string;
|
|
998
1037
|
visible: boolean;
|
|
999
|
-
}[] | Observable<{
|
|
1038
|
+
}[] | rxjs.Observable<{
|
|
1000
1039
|
key: string;
|
|
1001
1040
|
visible: boolean;
|
|
1002
1041
|
}[]>) => rxjs.Subscription;
|
|
1003
1042
|
readonly setUserDefinedOrder: (observableOrValue: {
|
|
1004
1043
|
newOrder: number;
|
|
1005
1044
|
oldOrder: number;
|
|
1006
|
-
} | Observable<{
|
|
1045
|
+
} | rxjs.Observable<{
|
|
1007
1046
|
newOrder: number;
|
|
1008
1047
|
oldOrder: number;
|
|
1009
1048
|
}>) => rxjs.Subscription;
|
|
1010
|
-
$userDefinedOrder: Signal<
|
|
1011
|
-
metaData
|
|
1012
|
-
$metaData: Signal<Dictionary<MetaData>>;
|
|
1049
|
+
$userDefinedOrder: Signal<Record<string, number>>;
|
|
1050
|
+
$metaData: Signal<Record<string, MetaData>>;
|
|
1013
1051
|
$metaDataArray: Signal<MetaData[]>;
|
|
1014
1052
|
$orderedCodeVisibleMetaDatas: Signal<MetaData[]>;
|
|
1015
1053
|
$getMetaData: (key: string) => Signal<MetaData>;
|
|
@@ -1018,47 +1056,43 @@ declare class TableStore extends ComponentStore<TableState> {
|
|
|
1018
1056
|
readonly setUserDefinedWidth: (observableOrValue: {
|
|
1019
1057
|
key: string;
|
|
1020
1058
|
widthInPixel: number;
|
|
1021
|
-
}[] | Observable<{
|
|
1059
|
+
}[] | rxjs.Observable<{
|
|
1022
1060
|
key: string;
|
|
1023
1061
|
widthInPixel: number;
|
|
1024
1062
|
}[]>) => rxjs.Subscription;
|
|
1025
|
-
readonly setTableWidth: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1026
|
-
$getUserDefinedWidths: Signal<
|
|
1063
|
+
readonly setTableWidth: (observableOrValue: number | rxjs.Observable<number>) => rxjs.Subscription;
|
|
1064
|
+
$getUserDefinedWidths: Signal<Record<string, number>>;
|
|
1027
1065
|
$tableSettingsMinWidth: Signal<number | undefined>;
|
|
1028
1066
|
$getUserDefinedWidth: (key: string) => Signal<number>;
|
|
1029
1067
|
$getUserDefinedTableWidth: Signal<number | undefined>;
|
|
1030
|
-
|
|
1031
|
-
readonly
|
|
1032
|
-
readonly
|
|
1033
|
-
readonly
|
|
1034
|
-
readonly removeFilters: (observableOrValue: string[] | Observable<string[]>) => rxjs.Subscription;
|
|
1068
|
+
readonly addFilter: (observableOrValue: FilterInfo<any, any> | CustomFilter<any> | rxjs.Observable<FilterInfo<any, any> | CustomFilter<any>>) => rxjs.Subscription;
|
|
1069
|
+
readonly addFilters: (observableOrValue: (FilterInfo<any, any> | CustomFilter<any>)[] | rxjs.Observable<(FilterInfo<any, any> | CustomFilter<any>)[]>) => rxjs.Subscription;
|
|
1070
|
+
readonly removeFilter: (observableOrValue: string | rxjs.Observable<string>) => rxjs.Subscription;
|
|
1071
|
+
readonly removeFilters: (observableOrValue: string[] | rxjs.Observable<string[]>) => rxjs.Subscription;
|
|
1035
1072
|
readonly clearFilters: () => void;
|
|
1036
1073
|
private addFiltersToState;
|
|
1037
|
-
$filters: Signal<
|
|
1074
|
+
$filters: Signal<Record<string, FilterInfo<any, any> | CustomFilter<any>>>;
|
|
1038
1075
|
$filtersArray: Signal<(FilterInfo<any, any> | CustomFilter<any>)[]>;
|
|
1039
|
-
filters$: Observable<Dictionary<FilterInfo<any, any> | CustomFilter<any>>>;
|
|
1040
1076
|
$getFilter: (filterId: string) => Signal<FilterInfo | CustomFilter | undefined>;
|
|
1041
1077
|
readonly setSort: (observableOrValue: {
|
|
1042
1078
|
key: string;
|
|
1043
1079
|
direction?: SortDirection$1;
|
|
1044
|
-
} | Observable<{
|
|
1080
|
+
} | rxjs.Observable<{
|
|
1045
1081
|
key: string;
|
|
1046
1082
|
direction?: SortDirection$1;
|
|
1047
1083
|
}>) => rxjs.Subscription;
|
|
1048
|
-
readonly setAllSort: (observableOrValue: Sort[] | Observable<Sort[]>) => rxjs.Subscription;
|
|
1084
|
+
readonly setAllSort: (observableOrValue: Sort[] | rxjs.Observable<Sort[]>) => rxjs.Subscription;
|
|
1049
1085
|
$preSort: Signal<TableBuilderSort[]>;
|
|
1050
1086
|
_$selectSorted: Signal<Sort[]>;
|
|
1051
1087
|
$selectSorted: Signal<TableBuilderSort[]>;
|
|
1052
|
-
selectSorted$: Observable<Sort[]>;
|
|
1053
1088
|
$getSorts: Signal<TableBuilderSort[]>;
|
|
1054
|
-
|
|
1055
|
-
readonly
|
|
1056
|
-
readonly removeGroupByKey: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1089
|
+
readonly addGroupByKey: (observableOrValue: string | rxjs.Observable<string>) => rxjs.Subscription;
|
|
1090
|
+
readonly removeGroupByKey: (observableOrValue: string | rxjs.Observable<string>) => rxjs.Subscription;
|
|
1057
1091
|
readonly updateExpandedGroups: (observableOrValue: {
|
|
1058
1092
|
key: string;
|
|
1059
1093
|
groupUniqueName: string;
|
|
1060
1094
|
isExpanded: boolean;
|
|
1061
|
-
} | Observable<{
|
|
1095
|
+
} | rxjs.Observable<{
|
|
1062
1096
|
key: string;
|
|
1063
1097
|
groupUniqueName: string;
|
|
1064
1098
|
isExpanded: boolean;
|
|
@@ -1066,50 +1100,47 @@ declare class TableStore extends ComponentStore<TableState> {
|
|
|
1066
1100
|
readonly expandOfGroup: (observableOrValue: {
|
|
1067
1101
|
groupKey: string;
|
|
1068
1102
|
uniqueNameOfHeadersToExpand: string[];
|
|
1069
|
-
}[] | Observable<{
|
|
1103
|
+
}[] | rxjs.Observable<{
|
|
1070
1104
|
groupKey: string;
|
|
1071
1105
|
uniqueNameOfHeadersToExpand: string[];
|
|
1072
1106
|
}[]>) => rxjs.Subscription;
|
|
1073
1107
|
readonly collapseAll: () => void;
|
|
1074
1108
|
readonly collapseAllOfKey: (observableOrValue: {
|
|
1075
1109
|
keys: string[];
|
|
1076
|
-
} | Observable<{
|
|
1110
|
+
} | rxjs.Observable<{
|
|
1077
1111
|
keys: string[];
|
|
1078
1112
|
}>) => rxjs.Subscription;
|
|
1079
1113
|
updateGroupBySort: (observableOrValue: {
|
|
1080
1114
|
key: string;
|
|
1081
1115
|
sort: SortDirection$1;
|
|
1082
|
-
} | Observable<{
|
|
1116
|
+
} | rxjs.Observable<{
|
|
1083
1117
|
key: string;
|
|
1084
1118
|
sort: SortDirection$1;
|
|
1085
1119
|
}>) => rxjs.Subscription;
|
|
1086
1120
|
getGroupBySortDirection: (key: string) => Signal<SortDirection$1>;
|
|
1087
|
-
cycleGroupBySortDirection: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1121
|
+
cycleGroupBySortDirection: (observableOrValue: string | rxjs.Observable<string>) => rxjs.Subscription;
|
|
1088
1122
|
$groupByData: Signal<GroupedData[]>;
|
|
1089
|
-
groupByKeys$: Observable<string[]>;
|
|
1090
1123
|
$userDefinedNoGroups: Signal<boolean | undefined>;
|
|
1091
|
-
expandedGroups$: Observable<GroupedData[]>;
|
|
1092
1124
|
$expandGroups: Signal<GroupedData[]>;
|
|
1093
1125
|
$getIsExpanded: (columnKey: string, groupUniqueName: string) => Signal<boolean>;
|
|
1094
1126
|
$expandedPropForKeyIsAll: (columnKey: string) => Signal<boolean>;
|
|
1095
1127
|
$sortedGroupsUpdates: Signal<GroupedData[]>;
|
|
1096
|
-
readonly setCurrentPage: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1097
|
-
readonly setPageSize: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1098
|
-
readonly setUserDefinedPageSize: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1099
|
-
readonly setUserDefinedShowAll: (observableOrValue: boolean | Observable<boolean>) => rxjs.Subscription;
|
|
1128
|
+
readonly setCurrentPage: (observableOrValue: number | rxjs.Observable<number>) => rxjs.Subscription;
|
|
1129
|
+
readonly setPageSize: (observableOrValue: number | rxjs.Observable<number>) => rxjs.Subscription;
|
|
1130
|
+
readonly setUserDefinedPageSize: (observableOrValue: number | rxjs.Observable<number>) => rxjs.Subscription;
|
|
1131
|
+
readonly setUserDefinedShowAll: (observableOrValue: boolean | rxjs.Observable<boolean>) => rxjs.Subscription;
|
|
1100
1132
|
$isVirtual: Signal<boolean | undefined>;
|
|
1101
1133
|
$showAll: Signal<boolean>;
|
|
1102
1134
|
$viewType: Signal<ViewType>;
|
|
1103
1135
|
$userDefinedPageSize: Signal<number | undefined>;
|
|
1104
1136
|
$currentPage: Signal<number>;
|
|
1105
1137
|
$pageSize: Signal<number>;
|
|
1106
|
-
addFooter: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1138
|
+
addFooter: (observableOrValue: string | rxjs.Observable<string>) => rxjs.Subscription;
|
|
1107
1139
|
$tableSettings: Signal<NonFunctionProperties<PersistedTableSettings & NotPersistedTableSettings>>;
|
|
1108
1140
|
$notPersistedTableSettings: Signal<NotPersistedTableSettings>;
|
|
1109
|
-
tableSettings$: Observable<NonFunctionProperties<PersistedTableSettings & NotPersistedTableSettings>>;
|
|
1110
1141
|
$props: Signal<TableProps>;
|
|
1111
|
-
readonly setUserDefinedRowHeight: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1112
|
-
readonly setUserDefinedHeaderHeight: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1142
|
+
readonly setUserDefinedRowHeight: (observableOrValue: number | rxjs.Observable<number>) => rxjs.Subscription;
|
|
1143
|
+
readonly setUserDefinedHeaderHeight: (observableOrValue: number | rxjs.Observable<number>) => rxjs.Subscription;
|
|
1113
1144
|
$userDefinedRowHeight: Signal<number | undefined>;
|
|
1114
1145
|
$userDefinedHeaderHeight: Signal<number | undefined>;
|
|
1115
1146
|
$footerCollapsed: Signal<boolean>;
|
|
@@ -1117,22 +1148,21 @@ declare class TableStore extends ComponentStore<TableState> {
|
|
|
1117
1148
|
$getLinkInfo: (md: MetaData) => Signal<LinkInfo>;
|
|
1118
1149
|
readonly resetState: () => void;
|
|
1119
1150
|
reset: () => void;
|
|
1120
|
-
readonly resetPart: (observableOrValue: "Sorting" | "Filters" | "Group By" | "Hidden Columns" | "Column Widths" | "Column Order" | "Row Height" | "Header Height" | "Page Size" | "Show All" | Observable<"Sorting" | "Filters" | "Group By" | "Hidden Columns" | "Column Widths" | "Column Order" | "Row Height" | "Header Height" | "Page Size" | "Show All">) => rxjs.Subscription;
|
|
1121
|
-
readonly updateStateFromPersistedState: (observableOrValue: PersistedTableState | Observable<PersistedTableState>) => rxjs.Subscription;
|
|
1151
|
+
readonly resetPart: (observableOrValue: "Sorting" | "Filters" | "Group By" | "Hidden Columns" | "Column Widths" | "Column Order" | "Row Height" | "Header Height" | "Page Size" | "Show All" | rxjs.Observable<"Sorting" | "Filters" | "Group By" | "Hidden Columns" | "Column Widths" | "Column Order" | "Row Height" | "Header Height" | "Page Size" | "Show All">) => rxjs.Subscription;
|
|
1152
|
+
readonly updateStateFromPersistedState: (observableOrValue: PersistedTableState | rxjs.Observable<PersistedTableState>) => rxjs.Subscription;
|
|
1122
1153
|
private updateStateFunc;
|
|
1123
|
-
readonly setTableSettings: (observableOrValue: TableBuilderSettings<any> | Observable<TableBuilderSettings<any>>) => rxjs.Subscription;
|
|
1124
|
-
readonly setMetaData: (observableOrValue: MetaData[] | Observable<MetaData[]>) => rxjs.Subscription;
|
|
1125
|
-
readonly setProps: (observableOrValue: TableProps | Observable<TableProps>) => rxjs.Subscription;
|
|
1126
|
-
readonly setInitializationState: (observableOrValue: InitializationState | Observable<InitializationState>) => rxjs.Subscription;
|
|
1154
|
+
readonly setTableSettings: (observableOrValue: TableBuilderSettings<any> | rxjs.Observable<TableBuilderSettings<any>>) => rxjs.Subscription;
|
|
1155
|
+
readonly setMetaData: (observableOrValue: MetaData[] | rxjs.Observable<MetaData[]>) => rxjs.Subscription;
|
|
1156
|
+
readonly setProps: (observableOrValue: TableProps | rxjs.Observable<TableProps>) => rxjs.Subscription;
|
|
1157
|
+
readonly setInitializationState: (observableOrValue: InitializationState | rxjs.Observable<InitializationState>) => rxjs.Subscription;
|
|
1127
1158
|
readonly toggleCollapseHeader: () => void;
|
|
1128
1159
|
readonly toggleCollapseFooter: (() => void) | ((observableOrValue: void | {
|
|
1129
1160
|
collapseFooter: boolean;
|
|
1130
|
-
} | Observable<void | {
|
|
1161
|
+
} | rxjs.Observable<void | {
|
|
1131
1162
|
collapseFooter: boolean;
|
|
1132
1163
|
} | undefined> | undefined) => rxjs.Subscription);
|
|
1133
1164
|
readonly setLinkMaps: (() => void) | ((observableOrValue: any) => rxjs.Subscription);
|
|
1134
|
-
updateRowProps: (observableOrValue: Pick<NotPersistedTableSettings, "rowClasses" | "rowStyles" | "rowClick"> | Observable<Pick<NotPersistedTableSettings, "rowClasses" | "rowStyles" | "rowClick">>) => rxjs.Subscription;
|
|
1135
|
-
on: <V>(srcObservable: Observable<V>, func: (obj: V) => void) => this;
|
|
1165
|
+
updateRowProps: (observableOrValue: Pick<NotPersistedTableSettings, "rowClasses" | "rowStyles" | "rowClick"> | rxjs.Observable<Pick<NotPersistedTableSettings, "rowClasses" | "rowStyles" | "rowClick">>) => rxjs.Subscription;
|
|
1136
1166
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableStore, never>;
|
|
1137
1167
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableStore>;
|
|
1138
1168
|
}
|
|
@@ -1288,68 +1318,12 @@ declare class MatButtonToggleFilterDirective extends TbSelectedFilterDirective i
|
|
|
1288
1318
|
}
|
|
1289
1319
|
|
|
1290
1320
|
declare class TableWrapperDirective {
|
|
1291
|
-
$registrations: _angular_core.WritableSignal<(
|
|
1321
|
+
$registrations: _angular_core.WritableSignal<(TableFilterDirective | TableCustomFilterDirective)[]>;
|
|
1292
1322
|
register(filter: TableCustomFilterDirective | TableFilterDirective): void;
|
|
1293
1323
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableWrapperDirective, never>;
|
|
1294
1324
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableWrapperDirective, "[tbWrapper]", never, {}, {}, never, never, true, never>;
|
|
1295
1325
|
}
|
|
1296
1326
|
|
|
1297
|
-
interface TableProps {
|
|
1298
|
-
indexColumn: boolean;
|
|
1299
|
-
selectionColumn: boolean;
|
|
1300
|
-
isSticky: boolean;
|
|
1301
|
-
stickyFooter: boolean;
|
|
1302
|
-
groupHeaderTemplate?: TemplateRef<any>;
|
|
1303
|
-
groupHeaderHeight?: number;
|
|
1304
|
-
customGroupRows?: CustomGroupRowDirective<any>[];
|
|
1305
|
-
}
|
|
1306
|
-
|
|
1307
|
-
interface PersistedTableState {
|
|
1308
|
-
hiddenKeys?: string[];
|
|
1309
|
-
filters: Dictionary<FilterInfo | CustomFilter>;
|
|
1310
|
-
sorted: Sort[];
|
|
1311
|
-
userDefined: {
|
|
1312
|
-
order: Dictionary<number>;
|
|
1313
|
-
widths: Dictionary<number>;
|
|
1314
|
-
table: {
|
|
1315
|
-
width?: number;
|
|
1316
|
-
};
|
|
1317
|
-
pageSize?: number;
|
|
1318
|
-
showAll?: boolean;
|
|
1319
|
-
rowHeight?: number;
|
|
1320
|
-
headerHeight?: number;
|
|
1321
|
-
noGroups?: boolean;
|
|
1322
|
-
};
|
|
1323
|
-
persistedTableSettings: PersistedTableSettings;
|
|
1324
|
-
groupBy: GroupedData[];
|
|
1325
|
-
}
|
|
1326
|
-
interface TableState extends Required<PersistedTableState> {
|
|
1327
|
-
initializationState: InitializationState;
|
|
1328
|
-
metaData: Dictionary<MetaData>;
|
|
1329
|
-
notPersistedTableSettings: NotPersistedTableSettings;
|
|
1330
|
-
pageSize: number;
|
|
1331
|
-
currentPage: number;
|
|
1332
|
-
linkMaps: Dictionary<LinkInfo>;
|
|
1333
|
-
allFilters: Dictionary<any[]>;
|
|
1334
|
-
props: TableProps;
|
|
1335
|
-
showAll: boolean;
|
|
1336
|
-
}
|
|
1337
|
-
interface DataState {
|
|
1338
|
-
virtualScrollOffset: number;
|
|
1339
|
-
virtualEnds: {
|
|
1340
|
-
start: number;
|
|
1341
|
-
end: number;
|
|
1342
|
-
};
|
|
1343
|
-
sortedFilteredDataLength: number;
|
|
1344
|
-
sortedFilteredGroupedDataLength: number;
|
|
1345
|
-
}
|
|
1346
|
-
declare enum InitializationState {
|
|
1347
|
-
Created = 0,
|
|
1348
|
-
MetaDataLoaded = 1,
|
|
1349
|
-
TableSettingsLoaded = 2,
|
|
1350
|
-
Ready = 3
|
|
1351
|
-
}
|
|
1352
|
-
|
|
1353
1327
|
declare class TableBuilderStateStore extends ComponentStore<GlobalStorageState> {
|
|
1354
1328
|
constructor();
|
|
1355
1329
|
$selectLocalTableProfile: (profileKey: string) => Signal<Profile | undefined>;
|
|
@@ -1402,7 +1376,7 @@ declare class TableBuilderStateStore extends ComponentStore<GlobalStorageState>
|
|
|
1402
1376
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableBuilderStateStore>;
|
|
1403
1377
|
}
|
|
1404
1378
|
interface PersistedProfile {
|
|
1405
|
-
states:
|
|
1379
|
+
states: Record<string, PersistedTableState>;
|
|
1406
1380
|
default?: string;
|
|
1407
1381
|
}
|
|
1408
1382
|
interface Profile extends PersistedProfile {
|
|
@@ -1410,16 +1384,16 @@ interface Profile extends PersistedProfile {
|
|
|
1410
1384
|
localSavedState?: PersistedTableState;
|
|
1411
1385
|
}
|
|
1412
1386
|
interface GlobalStorageState {
|
|
1413
|
-
localProfiles:
|
|
1387
|
+
localProfiles: Record<string, Profile>;
|
|
1414
1388
|
}
|
|
1415
1389
|
|
|
1416
|
-
declare function setCustomGroupBy(customGroupBy: <T extends NoneGroupHeader = any>(data: T[], groupByDatas: GroupedData[], level?: number, metaData?:
|
|
1390
|
+
declare function setCustomGroupBy(customGroupBy: <T extends NoneGroupHeader = any>(data: T[], groupByDatas: GroupedData[], level?: number, metaData?: Record<string, MetaData<T>>, parent?: Group) => DataGroup<T>[] | GroupGroup<T>[]): void;
|
|
1417
1391
|
declare function updateGroupByState<T extends NoneGroupHeader = any>(groupedData: any[], { data, groups, expanded, groupSorts }: {
|
|
1418
1392
|
data: Timestamp<T[]>;
|
|
1419
1393
|
groups: Timestamp<GroupedData[]>;
|
|
1420
1394
|
expanded: Timestamp<GroupedData[]>;
|
|
1421
1395
|
groupSorts: Timestamp<GroupedData[]>;
|
|
1422
|
-
}, firstRun: boolean, metaData:
|
|
1396
|
+
}, firstRun: boolean, metaData: Record<string, MetaData<T>>): GroupByState;
|
|
1423
1397
|
declare function mapGroupHeader(obj: DataGroup | GroupGroup, expandedHeaders: string[] | true, expandAllGroups?: string[]): any[];
|
|
1424
1398
|
interface GroupByState {
|
|
1425
1399
|
displayData: any[];
|
|
@@ -1503,12 +1477,12 @@ declare class ColumnBuilderComponent implements AfterViewInit {
|
|
|
1503
1477
|
$innerTemplate: Signal<TemplateRef<any> | undefined>;
|
|
1504
1478
|
$showFilters: Signal<boolean | undefined>;
|
|
1505
1479
|
$outerTemplate: Signal<TemplateRef<any> | undefined>;
|
|
1506
|
-
$classes: Signal<
|
|
1480
|
+
$classes: Signal<Record<string, Predicate<any> | true> | undefined>;
|
|
1507
1481
|
$styles: Signal<{
|
|
1508
|
-
header:
|
|
1482
|
+
header: Record<string, string>;
|
|
1509
1483
|
body: _one_paragon_angular_utilities.StylerStyle;
|
|
1510
1484
|
innerBody: _one_paragon_angular_utilities.StylerStyle;
|
|
1511
|
-
footer:
|
|
1485
|
+
footer: Record<string, string>;
|
|
1512
1486
|
} | undefined>;
|
|
1513
1487
|
private viewInited;
|
|
1514
1488
|
ngAfterViewInit(): void;
|
|
@@ -1556,7 +1530,7 @@ declare class GenericTableComponent {
|
|
|
1556
1530
|
$showFooterRow: _angular_core.Signal<boolean>;
|
|
1557
1531
|
injector: _angular_core.DestroyableInjector;
|
|
1558
1532
|
$hasIndexColumn: _angular_core.Signal<boolean>;
|
|
1559
|
-
$columns: _angular_core.WritableSignal<
|
|
1533
|
+
$columns: _angular_core.WritableSignal<Record<string, ColumnBuilderComponent>>;
|
|
1560
1534
|
$showHeader: _angular_core.Signal<boolean>;
|
|
1561
1535
|
$paginatorHeight: _angular_core.WritableSignal<number>;
|
|
1562
1536
|
r: ResizeObserver;
|
|
@@ -1598,7 +1572,7 @@ declare class GenericTableComponent {
|
|
|
1598
1572
|
$footerHeight: _angular_core.Signal<string | undefined>;
|
|
1599
1573
|
$stickyFooter: _angular_core.Signal<boolean | undefined>;
|
|
1600
1574
|
$rowStyles: _angular_core.Signal<_one_paragon_angular_utilities.StylerStyle>;
|
|
1601
|
-
$rowClasses: _angular_core.Signal<
|
|
1575
|
+
$rowClasses: _angular_core.Signal<Record<string, true | _angular_core.Predicate<any>>>;
|
|
1602
1576
|
allOfGroupSelected: (uniqueName: string) => _angular_core.Signal<{
|
|
1603
1577
|
containsAll: boolean;
|
|
1604
1578
|
containsSome: boolean;
|
|
@@ -1640,7 +1614,6 @@ declare class TableContainerComponent<T = any> {
|
|
|
1640
1614
|
stateService: TableBuilderStateStore;
|
|
1641
1615
|
injector: Injector;
|
|
1642
1616
|
elementRef: ElementRef<any>;
|
|
1643
|
-
private exportToCsvService;
|
|
1644
1617
|
private config;
|
|
1645
1618
|
protected dataSource: TableBuilderDataSource<T>;
|
|
1646
1619
|
$filterDirectives: _angular_core.Signal<readonly TableFilterDirective[]>;
|
|
@@ -1688,7 +1661,7 @@ declare class TableContainerComponent<T = any> {
|
|
|
1688
1661
|
collapseAllGroups: () => void;
|
|
1689
1662
|
exportToCsv: () => void;
|
|
1690
1663
|
protected $myColumns: _angular_core.Signal<{
|
|
1691
|
-
metaData: MetaData;
|
|
1664
|
+
metaData: _one_paragon_angular_utilities.MetaData;
|
|
1692
1665
|
customCell: CustomCellDirective<any> | undefined;
|
|
1693
1666
|
customHeader: CustomHeaderDirective<any> | undefined;
|
|
1694
1667
|
}[]>;
|
|
@@ -1713,18 +1686,9 @@ declare class TableContainerComponent<T = any> {
|
|
|
1713
1686
|
private $storeReady;
|
|
1714
1687
|
private $basicDataManager;
|
|
1715
1688
|
private $sortedAndFilteredData;
|
|
1716
|
-
$timestampedGroups
|
|
1717
|
-
|
|
1718
|
-
|
|
1719
|
-
}>;
|
|
1720
|
-
$timestampedExpanded: _angular_core.Signal<{
|
|
1721
|
-
value: GroupedData[];
|
|
1722
|
-
timestamp: number;
|
|
1723
|
-
}>;
|
|
1724
|
-
$timestampedGroupSortUpdated: _angular_core.Signal<{
|
|
1725
|
-
value: GroupedData[];
|
|
1726
|
-
timestamp: number;
|
|
1727
|
-
}>;
|
|
1689
|
+
private $timestampedGroups;
|
|
1690
|
+
private $timestampedExpanded;
|
|
1691
|
+
private $timestampedGroupSortUpdated;
|
|
1728
1692
|
private $dataAndGroupsTimestamped;
|
|
1729
1693
|
protected $filteredSortedAndGrouped: _angular_core.WritableSignal<GroupByState | undefined>;
|
|
1730
1694
|
private $isInitializationState;
|
|
@@ -1735,7 +1699,7 @@ declare class TableContainerComponent<T = any> {
|
|
|
1735
1699
|
}
|
|
1736
1700
|
|
|
1737
1701
|
declare class SpaceCasePipe implements PipeTransform {
|
|
1738
|
-
spaceCase:
|
|
1702
|
+
spaceCase: typeof spaceCase;
|
|
1739
1703
|
transform: (value: string) => string;
|
|
1740
1704
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpaceCasePipe, never>;
|
|
1741
1705
|
static ɵpipe: _angular_core.ɵɵPipeDeclaration<SpaceCasePipe, "spaceCase", true>;
|
|
@@ -1884,7 +1848,7 @@ declare class ConditionalClassesDirective {
|
|
|
1884
1848
|
private el;
|
|
1885
1849
|
private renderer;
|
|
1886
1850
|
$element: _angular_core.InputSignal<any>;
|
|
1887
|
-
$classes: _angular_core.InputSignal<
|
|
1851
|
+
$classes: _angular_core.InputSignal<Record<string, true | Predicate<any>> | undefined>;
|
|
1888
1852
|
classesApplied: string[];
|
|
1889
1853
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConditionalClassesDirective, never>;
|
|
1890
1854
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ConditionalClassesDirective, "[conditionalClasses]", never, { "$element": { "alias": "element"; "required": true; "isSignal": true; }; "$classes": { "alias": "conditionalClasses"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -1903,6 +1867,8 @@ declare class TableBuilderModule {
|
|
|
1903
1867
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<TableBuilderModule>;
|
|
1904
1868
|
}
|
|
1905
1869
|
|
|
1870
|
+
declare function provideTableBuilder(config?: TableBuilderConfig): EnvironmentProviders;
|
|
1871
|
+
|
|
1906
1872
|
declare class MatTableObservableDataSource<T> extends MatTableDataSource<T> {
|
|
1907
1873
|
private dataSrc;
|
|
1908
1874
|
subscription?: Subscription;
|
|
@@ -2147,6 +2113,26 @@ declare class ResetStandaloneWrapperComponent {
|
|
|
2147
2113
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ResetStandaloneWrapperComponent, "tb-reset-wrapper", never, { "$tableStore": { "alias": "tableStore"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
2148
2114
|
}
|
|
2149
2115
|
|
|
2116
|
+
type BasicDataManagerOptions<T = any> = {
|
|
2117
|
+
injector?: Injector;
|
|
2118
|
+
store?: TableStore;
|
|
2119
|
+
isReady?: Signal<boolean>;
|
|
2120
|
+
manageStoreMetaAndInitialization?: boolean;
|
|
2121
|
+
cleanData?: boolean;
|
|
2122
|
+
config?: TableBuilderConfig;
|
|
2123
|
+
predicates?: Signal<Predicate<T>[]>;
|
|
2124
|
+
persistedState?: {
|
|
2125
|
+
id: string;
|
|
2126
|
+
stateStore?: TableBuilderStateStore;
|
|
2127
|
+
};
|
|
2128
|
+
};
|
|
2129
|
+
type BasicDataManager<T> = {
|
|
2130
|
+
data: Signal<T[] | null | undefined>;
|
|
2131
|
+
sortedAndFilteredData: Signal<Timestamp<T[]> | undefined>;
|
|
2132
|
+
store: TableStore;
|
|
2133
|
+
};
|
|
2134
|
+
declare function createBasicDataManager<T>(metaDataIn: Signal<MetaData<T>[] | undefined> | MetaData<T>[], data: Signal<T[]>, options?: BasicDataManagerOptions<T>): BasicDataManager<T>;
|
|
2135
|
+
|
|
2150
2136
|
declare function defaultShareReplay<T>(): (src: Observable<T>) => Observable<T>;
|
|
2151
2137
|
|
|
2152
2138
|
declare function mapError<T, TResult>(projection: (error: any) => TResult): (src: Observable<T>) => Observable<T | TResult>;
|
|
@@ -2301,5 +2287,5 @@ interface LoadingState<T> {
|
|
|
2301
2287
|
type ActionableMemoizedSelector<State, Result> = MemoizedSelector<State, Result>;
|
|
2302
2288
|
type ActionReturner<Props extends any[], Result = any> = (...props: [...Props, Result]) => Action;
|
|
2303
2289
|
|
|
2304
|
-
export { ActionStateSpinnerComponent, ActionStateUiModule, ActionStatus, AppStatusState, ArrayStyle, AutoFocusDirective, CancellationToken, ClickEmitterDirective, ClickSubjectDirective, ConditionalClassesDirective, CreateTableBuilder, CustomCellDirective, CustomGroupRowDirective, CustomHeaderDirective, DateFilterComponent, DefaultVirtualScrollOptions, DialogDirective, DialogService, DialogWrapper, FieldType, FilterChipsComponent, FilterComponent, FilterListStandaloneWrapperComponent, FilterType, FunctionPipe, GenColDisplayerComponent, GenFilterDisplayerComponent, GeneralTableSettings, GenericTableComponent, GroupByListComponent, HttpErrorStateDirective, HttpInProgressStateDirective, HttpNotStartedStateDirective, HttpRequestModule, HttpRequestStateDirective, RequestStateFactory as HttpRequestStateFactory, RequestStateStore as HttpRequestStateStore, RequestStatus as HttpRequestStatus, RequestStrategy as HttpRequestStrategy, HttpSuccessStateDirective, MatButtonToggleFilterDirective, MatCheckboxTbFilterDirective, MatOptionTbFilterDirective, MatRadioButtonTbFilterDirective, MatSlideToggleGroupDirective, MatSlideToggleTbFilterDirective, MatTableObservableDataSource, MultiSortDirective, NgrxExtModule, NotPersistedTableSettings, PaginatorComponent, PaginatorOptions, PersistedTableSettings, PhoneNumberPipe, PreventEnterDirective, ProfilesMenuStandaloneWrapperComponent, RequestStateFactory, RequestStateStore, RequestStateStoreConfigToken, RequestStatus, RequestStrategy, ResetStandaloneWrapperComponent, ResizeColumnDirective, SortDirection, SortMenuStandaloneWrapperComponent, SpaceCaseMapping, SpaceCasePipe, StopPropagationDirective, StylerDirective, Subjectifier, Subscriber, TableBuilder, TableBuilderConfigToken, TableBuilderModule, TableColumnFooterSettings, TableColumnHeaderSettings, TableContainerComponent, TableCustomFilterDirective, TableCustomFilterDirectiveBase, TableFilterDirective, TableFilterStringContainsDirective, TableSettings, TableWrapperDirective, TableWrapperFooterSettings, TableWrapperHeaderSettings, Target, TbSelectedFilterDirective, TrimWhitespaceDirective, UtilitiesModule, VirtualScrollOptions, WrapperFilterDisplayerComponent, actionStatusReducer, chainRequest, clearActionableSelectorRequestCache, combineArrays, createActionResultSelector, createActionSelector, createActionableResultSelector, createActionableSelector,
|
|
2305
|
-
export type { ActionReturner, Additional, AllValueOptions, ArrayAdditional, BaseGroup, BaseMappedMetaData, BooleanFilterTypes, CreateActionResultsOptions, CustomCellMeta, CustomFilter, DataGroup, DateFilterTypes, DateTimeAdditional, DateTimeFilterTypes, DateTimeOptions, EnumFilterTypes, FilterFunc, FilterFuncs, FilterInfo, FilterOptions, FilterState, Group, GroupByState, GroupGroup, GroupedData, RequestState as HttpRequestState, HttpRequestState$, HttpRequestStateAny, HttpRequestStateViewContext, HttpRequestor, HttpSuccessStateViewContext, MappedArrayMetaData, MappedBooleanMetaData, MappedDateMetaData, MappedDateTimeMetaData, MappedEnumMetaData, MappedMetaData, MappedNumberMetaData, MetaData, MetaDataExport, NonFunctionProperties, NoneGroupHeader, NotMappedMetaData, NumberFilterTypes, PartialFilter, Path, Range, ReportDef, RequestCreatorOptions, RequestFactory, RequestResponse, RequestState, RequestStateCancelled, RequestStateError, RequestStateInProgress, RequestStateNotStarted, RequestStateOptions, RequestStateStoreConfig, RequestStateSuccess, SortDef, State, StatusState, StringFilterTypes, StylerStyle, SubFilterTypes, TableBuilderConfig,
|
|
2290
|
+
export { ActionStateSpinnerComponent, ActionStateUiModule, ActionStatus, AppStatusState, ArrayStyle, AutoFocusDirective, CancellationToken, ClickEmitterDirective, ClickSubjectDirective, ConditionalClassesDirective, CreateTableBuilder, CustomCellDirective, CustomGroupRowDirective, CustomHeaderDirective, DateFilterComponent, DefaultVirtualScrollOptions, DialogDirective, DialogService, DialogWrapper, FieldType, FilterChipsComponent, FilterComponent, FilterListStandaloneWrapperComponent, FilterType, FunctionPipe, GenColDisplayerComponent, GenFilterDisplayerComponent, GeneralTableSettings, GenericTableComponent, GroupByListComponent, HttpErrorStateDirective, HttpInProgressStateDirective, HttpNotStartedStateDirective, HttpRequestModule, HttpRequestStateDirective, RequestStateFactory as HttpRequestStateFactory, RequestStateStore as HttpRequestStateStore, RequestStatus as HttpRequestStatus, RequestStrategy as HttpRequestStrategy, HttpSuccessStateDirective, MatButtonToggleFilterDirective, MatCheckboxTbFilterDirective, MatOptionTbFilterDirective, MatRadioButtonTbFilterDirective, MatSlideToggleGroupDirective, MatSlideToggleTbFilterDirective, MatTableObservableDataSource, MultiSortDirective, NgrxExtModule, NotPersistedTableSettings, PaginatorComponent, PaginatorOptions, PersistedTableSettings, PhoneNumberPipe, PreventEnterDirective, ProfilesMenuStandaloneWrapperComponent, RequestStateFactory, RequestStateStore, RequestStateStoreConfigToken, RequestStatus, RequestStrategy, ResetStandaloneWrapperComponent, ResizeColumnDirective, SortDirection, SortMenuStandaloneWrapperComponent, SpaceCaseMapping, SpaceCasePipe, StopPropagationDirective, StylerDirective, Subjectifier, Subscriber, TableBuilder, TableBuilderConfigToken, TableBuilderModule, TableColumnFooterSettings, TableColumnHeaderSettings, TableContainerComponent, TableCustomFilterDirective, TableCustomFilterDirectiveBase, TableFilterDirective, TableFilterStringContainsDirective, TableSettings, TableWrapperDirective, TableWrapperFooterSettings, TableWrapperHeaderSettings, Target, TbSelectedFilterDirective, TrimWhitespaceDirective, UtilitiesModule, VirtualScrollOptions, WrapperFilterDisplayerComponent, actionStatusReducer, chainRequest, clearActionableSelectorRequestCache, combineArrays, createActionResultSelector, createActionSelector, createActionableResultSelector, createActionableSelector, createBasicDataManager, createFailure, createRequestor, createSuccess, defaultConfig, defaultFilter, defaultShareReplay, delayOn, filterArray, getAllGroupHeaderNames, getAllGroupHeaderNamesByKeys, getRequestorBody, getRequestorStatus, getStatusState, httpRequest, httpRequestor, inProgress, initialGroupByState, initialState, isCustomFilter, isDataGroup, isErrorState, isFilterInfo, isGroupHeader, isSuccessOrErrorState, isSuccessState, mapArray, mapError, mapGroupHeader, metaDataArrToDict, notNull, notStarted, onWait, onceWhen, parseTbSizeToPixels, phoneFormatter, previousAndCurrent, provideActionableSelector, provideTableBuilder, selectAll, selectEntities, selectEntity, selectIds, selectTotal, serverStatusTypes, setCustomGroupBy, setUpStoreFactory, setUpStoreFactoryOld, skipOneWhen, spaceCase, startWithIfEmpty, statusAdapter, statusIsSuccessOrInProgress, subscriber, switchOff, tapError, tapSuccess, updateGroupByState, wrapInArr };
|
|
2291
|
+
export type { ActionReturner, Additional, AllValueOptions, ArrayAdditional, BaseGroup, BaseMappedMetaData, BasicDataManager, BasicDataManagerOptions, BooleanFilterTypes, CreateActionResultsOptions, CustomCellMeta, CustomFilter, DataGroup, DateFilterTypes, DateTimeAdditional, DateTimeFilterTypes, DateTimeOptions, EnumFilterTypes, FilterFunc, FilterFuncs, FilterInfo, FilterOptions, FilterState, Group, GroupByState, GroupGroup, GroupedData, RequestState as HttpRequestState, HttpRequestState$, HttpRequestStateAny, HttpRequestStateViewContext, HttpRequestor, HttpSuccessStateViewContext, MappedArrayMetaData, MappedBooleanMetaData, MappedDateMetaData, MappedDateTimeMetaData, MappedEnumMetaData, MappedMetaData, MappedNumberMetaData, MetaData, MetaDataExport, NonFunctionProperties, NoneGroupHeader, NotMappedMetaData, NumberFilterTypes, PartialFilter, Path, Range, ReportDef, RequestCreatorOptions, RequestFactory, RequestResponse, RequestState, RequestStateCancelled, RequestStateError, RequestStateInProgress, RequestStateNotStarted, RequestStateOptions, RequestStateStoreConfig, RequestStateSuccess, SortDef, State, StatusState, StringFilterTypes, StylerStyle, SubFilterTypes, TableBuilderConfig, TableBuilderSettings, TbSize, TbTitle };
|