@one-paragon/angular-utilities 2.9.6-beta.0 → 2.9.6-beta.1
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,12 +1,14 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { Injector, OnInit, TemplateRef, ViewContainerRef, Signal, InjectionToken, OnDestroy, Predicate, OnChanges, SimpleChanges, AfterViewInit, ElementRef, PipeTransform, EventEmitter, QueryList, ModuleWithProviders,
|
|
2
|
+
import { Injector, OnInit, TemplateRef, ViewContainerRef, Signal, InjectionToken, OnDestroy, Predicate, EnvironmentProviders, OnChanges, SimpleChanges, AfterViewInit, ElementRef, PipeTransform, EventEmitter, QueryList, ModuleWithProviders, 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';
|
|
8
10
|
import * as _angular_material_sort from '@angular/material/sort';
|
|
9
|
-
import { SortDirection as SortDirection$1,
|
|
11
|
+
import { SortDirection as SortDirection$1, MatSort, Sort } from '@angular/material/sort';
|
|
10
12
|
import { MatTableDataSource, MatColumnDef, MatHeaderRowDef, MatFooterRowDef, MatTable, MatRowDef } from '@angular/material/table';
|
|
11
13
|
import { CdkColumnDef } from '@angular/cdk/table';
|
|
12
14
|
import { ComponentStore } from '@ngrx/component-store';
|
|
@@ -20,8 +22,6 @@ import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
|
|
20
22
|
import { MatSlideToggle } from '@angular/material/slide-toggle';
|
|
21
23
|
import * as _ngrx_store from '@ngrx/store';
|
|
22
24
|
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,6 +154,10 @@ 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;
|
|
157
161
|
request: (...value: [...TParam]) => Subscription;
|
|
158
162
|
/**
|
|
159
163
|
* @param params An observable or signal that returns an array to be spread into the request function.
|
|
@@ -173,6 +177,10 @@ declare class RequestStateStore<TParam extends any[], V, R = null, T = R extends
|
|
|
173
177
|
state$: Observable<RequestResponse<TParam, T>>;
|
|
174
178
|
selectRequestState$: Observable<RequestState<T>>;
|
|
175
179
|
selectResponse$: Observable<T>;
|
|
180
|
+
/**
|
|
181
|
+
* @deprecated use selectRequestState$ instead
|
|
182
|
+
*/
|
|
183
|
+
selectHttpState$: Observable<RequestState<T>>;
|
|
176
184
|
selectStatus$: Observable<RequestStatus>;
|
|
177
185
|
selectError$: Observable<any>;
|
|
178
186
|
refresh(): void;
|
|
@@ -295,36 +303,25 @@ declare class RequestStateFactory implements OnDestroy {
|
|
|
295
303
|
declare function createRequestor<TParam extends any[], V>(req: RequestFactory<TParam, V>, options?: RequestCreatorOptions<TParam>): RequestStateStore<TParam, V>;
|
|
296
304
|
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>;
|
|
297
305
|
|
|
306
|
+
interface Dictionary<T> {
|
|
307
|
+
[key: string]: T;
|
|
308
|
+
}
|
|
309
|
+
|
|
298
310
|
declare class StylerDirective {
|
|
299
311
|
#private;
|
|
300
312
|
private el;
|
|
301
313
|
private renderer;
|
|
302
|
-
$stylesApplied: _angular_core.WritableSignal<
|
|
314
|
+
$stylesApplied: _angular_core.WritableSignal<Dictionary$1<string>>;
|
|
303
315
|
$element: _angular_core.InputSignal<any>;
|
|
304
316
|
$styler: _angular_core.InputSignal<StylerStyle<any>>;
|
|
305
317
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StylerDirective, never>;
|
|
306
318
|
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>;
|
|
307
319
|
}
|
|
308
|
-
type StylerStyle<T = any> =
|
|
320
|
+
type StylerStyle<T = any> = Dictionary$1<string | {
|
|
309
321
|
condition?: ((t: T) => boolean) | true;
|
|
310
322
|
value: ((t: T) => string) | string;
|
|
311
323
|
}>;
|
|
312
324
|
|
|
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
|
-
|
|
328
325
|
declare enum FieldType {
|
|
329
326
|
Unknown = 0,
|
|
330
327
|
Date = 1,
|
|
@@ -382,7 +379,7 @@ interface BaseMeta<T = any> {
|
|
|
382
379
|
};
|
|
383
380
|
click?: (element: T, key?: string, event?: MouseEvent) => void;
|
|
384
381
|
template?: TemplateRef<any>;
|
|
385
|
-
classes?:
|
|
382
|
+
classes?: Dictionary<Predicate<T> | true>;
|
|
386
383
|
toolTip?: string | ((t: T) => string);
|
|
387
384
|
useIcon?: boolean;
|
|
388
385
|
map?: (t: T) => any;
|
|
@@ -485,14 +482,14 @@ interface BaseAdditional<T = any> {
|
|
|
485
482
|
dateTimeOptions?: DateTimeOptions;
|
|
486
483
|
styles?: StylerStyle<T>;
|
|
487
484
|
columnPartStyles?: {
|
|
488
|
-
header?:
|
|
485
|
+
header?: Dictionary<string>;
|
|
489
486
|
body?: StylerStyle<T>;
|
|
490
487
|
innerBody?: StylerStyle<T>;
|
|
491
|
-
footer?:
|
|
488
|
+
footer?: Dictionary<string>;
|
|
492
489
|
};
|
|
493
490
|
columnPartClasses?: {
|
|
494
|
-
header?:
|
|
495
|
-
footer?:
|
|
491
|
+
header?: Dictionary<Predicate<T> | true>;
|
|
492
|
+
footer?: Dictionary<Predicate<T> | true>;
|
|
496
493
|
};
|
|
497
494
|
footer?: {
|
|
498
495
|
type: any;
|
|
@@ -565,7 +562,7 @@ interface MetaDataExport<T> extends TableBuilderExport {
|
|
|
565
562
|
*/
|
|
566
563
|
linkColumnName?: string;
|
|
567
564
|
}
|
|
568
|
-
declare function metaDataArrToDict<T = MetaData>(arr: MetaData[], transform?: (m: MetaData) => T):
|
|
565
|
+
declare function metaDataArrToDict<T = MetaData>(arr: MetaData[], transform?: (m: MetaData) => T): Dictionary<T>;
|
|
569
566
|
interface CustomCellMeta extends Pick<MetaData, 'key' | 'displayName' | 'preSort' | 'fieldType' | 'order' | 'width'> {
|
|
570
567
|
customCell: true;
|
|
571
568
|
noExport?: boolean;
|
|
@@ -629,7 +626,7 @@ declare class TableSettings<T = any> {
|
|
|
629
626
|
rowHeight: TbSize | undefined;
|
|
630
627
|
groupHeaderHeight?: TbSize;
|
|
631
628
|
minColumnWidth: TbSize | undefined;
|
|
632
|
-
rowClasses:
|
|
629
|
+
rowClasses: Dictionary<Predicate<T> | true> | undefined;
|
|
633
630
|
rowStyles: StylerStyle<T> | undefined;
|
|
634
631
|
rowClick: ((row: T, event?: MouseEvent) => void) | undefined;
|
|
635
632
|
exportSettings: TableBuilderExport | undefined;
|
|
@@ -663,7 +660,7 @@ declare class NotPersistedTableSettings {
|
|
|
663
660
|
rowHeight?: TbSize | undefined;
|
|
664
661
|
headerHeight?: TbSize;
|
|
665
662
|
minColumnWidth?: TbSize | undefined;
|
|
666
|
-
rowClasses?:
|
|
663
|
+
rowClasses?: Dictionary<Predicate<any> | true> | undefined;
|
|
667
664
|
rowStyles?: StylerStyle | undefined;
|
|
668
665
|
rowClick?: ((row: any, event?: MouseEvent) => void) | undefined;
|
|
669
666
|
exportSettings: TableBuilderExport | undefined;
|
|
@@ -714,7 +711,7 @@ type TbSize = number | `${number}${'px' | 'rem'}`;
|
|
|
714
711
|
type TbTitle = {
|
|
715
712
|
text: string;
|
|
716
713
|
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
717
|
-
styles?:
|
|
714
|
+
styles?: Dictionary<string>;
|
|
718
715
|
};
|
|
719
716
|
declare function parseTbSizeToPixels(size?: TbSize): number | undefined;
|
|
720
717
|
|
|
@@ -729,7 +726,22 @@ interface TableBuilderConfig {
|
|
|
729
726
|
}>;
|
|
730
727
|
}
|
|
731
728
|
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
|
+
}
|
|
732
743
|
declare const TableBuilderConfigToken: InjectionToken<TableBuilderConfig>;
|
|
744
|
+
declare function provideTableBuilder(config?: TableBuilderConfig): EnvironmentProviders;
|
|
733
745
|
|
|
734
746
|
declare const FilterType: {
|
|
735
747
|
readonly NumberEquals: "Equals";
|
|
@@ -767,6 +779,7 @@ type DateTimeFilterTypes = SubFilterTypes<'Is At' | 'Is Not At' | 'At or After'
|
|
|
767
779
|
type BooleanFilterTypes = SubFilterTypes<'Is' | 'Is Blank'>;
|
|
768
780
|
type EnumFilterTypes = SubFilterTypes<'In' | 'Is Blank'>;
|
|
769
781
|
|
|
782
|
+
declare const filterTypeMap: Record<FieldType, FilterType[]>;
|
|
770
783
|
interface FilterState {
|
|
771
784
|
filterId: string;
|
|
772
785
|
filterType: FilterType;
|
|
@@ -795,6 +808,9 @@ interface CustomFilter<T = any> extends FilterState {
|
|
|
795
808
|
}
|
|
796
809
|
declare function isCustomFilter(filter: FilterInfo | CustomFilter): filter is CustomFilter;
|
|
797
810
|
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>;
|
|
798
814
|
type FilterFunc<T, V = T> = (filterInfo: FilterInfo) => (val: V) => boolean;
|
|
799
815
|
type Range<T> = {
|
|
800
816
|
Start: T;
|
|
@@ -832,6 +848,49 @@ declare class TableBuilder<T = any> {
|
|
|
832
848
|
declare const CreateTableBuilder: <T = any>(reportDef: Observable<ReportDef<T>> | Signal<ReportDef<T>>, settings?: TableBuilderArgs<TableBuilderSettings<T>>) => TableBuilder<T>;
|
|
833
849
|
type TableBuilderArgs<T> = T | Observable<T> | Signal<T>;
|
|
834
850
|
|
|
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
|
+
|
|
835
894
|
type NoneGroupHeader = any;
|
|
836
895
|
interface BaseGroup {
|
|
837
896
|
key: string;
|
|
@@ -912,105 +971,6 @@ declare class CustomGroupRowDirective<T = any> implements OnInit {
|
|
|
912
971
|
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>;
|
|
913
972
|
}
|
|
914
973
|
|
|
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
|
-
|
|
1014
974
|
declare class MultiSortDirective extends MatSort {
|
|
1015
975
|
#private;
|
|
1016
976
|
private state;
|
|
@@ -1019,6 +979,7 @@ declare class MultiSortDirective extends MatSort {
|
|
|
1019
979
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MultiSortDirective, never>;
|
|
1020
980
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MultiSortDirective, "[multiSort]", ["multiSort"], { "disabled": { "alias": "matSortDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
1021
981
|
}
|
|
982
|
+
declare function sortsAreSame(a: Sort[], b: Sort[]): boolean;
|
|
1022
983
|
|
|
1023
984
|
type TableBuilderSort = Sort & {
|
|
1024
985
|
nulls?: 'first' | 'last';
|
|
@@ -1030,24 +991,25 @@ declare class TableStore extends ComponentStore<TableState> {
|
|
|
1030
991
|
constructor();
|
|
1031
992
|
$initializationState: Signal<InitializationState>;
|
|
1032
993
|
$savableState: Signal<PersistedTableState>;
|
|
1033
|
-
readonly showColumn: (observableOrValue: string |
|
|
1034
|
-
readonly hideColumn: (observableOrValue: string |
|
|
994
|
+
readonly showColumn: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
995
|
+
readonly hideColumn: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1035
996
|
readonly setHiddenColumns: (observableOrValue: {
|
|
1036
997
|
key: string;
|
|
1037
998
|
visible: boolean;
|
|
1038
|
-
}[] |
|
|
999
|
+
}[] | Observable<{
|
|
1039
1000
|
key: string;
|
|
1040
1001
|
visible: boolean;
|
|
1041
1002
|
}[]>) => rxjs.Subscription;
|
|
1042
1003
|
readonly setUserDefinedOrder: (observableOrValue: {
|
|
1043
1004
|
newOrder: number;
|
|
1044
1005
|
oldOrder: number;
|
|
1045
|
-
} |
|
|
1006
|
+
} | Observable<{
|
|
1046
1007
|
newOrder: number;
|
|
1047
1008
|
oldOrder: number;
|
|
1048
1009
|
}>) => rxjs.Subscription;
|
|
1049
|
-
$userDefinedOrder: Signal<
|
|
1050
|
-
|
|
1010
|
+
$userDefinedOrder: Signal<Dictionary<number>>;
|
|
1011
|
+
metaData$: Observable<Dictionary<MetaData>>;
|
|
1012
|
+
$metaData: Signal<Dictionary<MetaData>>;
|
|
1051
1013
|
$metaDataArray: Signal<MetaData[]>;
|
|
1052
1014
|
$orderedCodeVisibleMetaDatas: Signal<MetaData[]>;
|
|
1053
1015
|
$getMetaData: (key: string) => Signal<MetaData>;
|
|
@@ -1056,43 +1018,47 @@ declare class TableStore extends ComponentStore<TableState> {
|
|
|
1056
1018
|
readonly setUserDefinedWidth: (observableOrValue: {
|
|
1057
1019
|
key: string;
|
|
1058
1020
|
widthInPixel: number;
|
|
1059
|
-
}[] |
|
|
1021
|
+
}[] | Observable<{
|
|
1060
1022
|
key: string;
|
|
1061
1023
|
widthInPixel: number;
|
|
1062
1024
|
}[]>) => rxjs.Subscription;
|
|
1063
|
-
readonly setTableWidth: (observableOrValue: number |
|
|
1064
|
-
$getUserDefinedWidths: Signal<
|
|
1025
|
+
readonly setTableWidth: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1026
|
+
$getUserDefinedWidths: Signal<Dictionary<number>>;
|
|
1065
1027
|
$tableSettingsMinWidth: Signal<number | undefined>;
|
|
1066
1028
|
$getUserDefinedWidth: (key: string) => Signal<number>;
|
|
1067
1029
|
$getUserDefinedTableWidth: Signal<number | undefined>;
|
|
1068
|
-
|
|
1069
|
-
readonly
|
|
1070
|
-
readonly
|
|
1071
|
-
readonly
|
|
1030
|
+
getUserDefinedTableWidth$: Observable<number | undefined>;
|
|
1031
|
+
readonly addFilter: (observableOrValue: FilterInfo<any, any> | CustomFilter<any> | Observable<FilterInfo<any, any> | CustomFilter<any>>) => rxjs.Subscription;
|
|
1032
|
+
readonly addFilters: (observableOrValue: (FilterInfo<any, any> | CustomFilter<any>)[] | Observable<(FilterInfo<any, any> | CustomFilter<any>)[]>) => rxjs.Subscription;
|
|
1033
|
+
readonly removeFilter: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1034
|
+
readonly removeFilters: (observableOrValue: string[] | Observable<string[]>) => rxjs.Subscription;
|
|
1072
1035
|
readonly clearFilters: () => void;
|
|
1073
1036
|
private addFiltersToState;
|
|
1074
|
-
$filters: Signal<
|
|
1037
|
+
$filters: Signal<Dictionary<FilterInfo<any, any> | CustomFilter<any>>>;
|
|
1075
1038
|
$filtersArray: Signal<(FilterInfo<any, any> | CustomFilter<any>)[]>;
|
|
1039
|
+
filters$: Observable<Dictionary<FilterInfo<any, any> | CustomFilter<any>>>;
|
|
1076
1040
|
$getFilter: (filterId: string) => Signal<FilterInfo | CustomFilter | undefined>;
|
|
1077
1041
|
readonly setSort: (observableOrValue: {
|
|
1078
1042
|
key: string;
|
|
1079
1043
|
direction?: SortDirection$1;
|
|
1080
|
-
} |
|
|
1044
|
+
} | Observable<{
|
|
1081
1045
|
key: string;
|
|
1082
1046
|
direction?: SortDirection$1;
|
|
1083
1047
|
}>) => rxjs.Subscription;
|
|
1084
|
-
readonly setAllSort: (observableOrValue: Sort[] |
|
|
1048
|
+
readonly setAllSort: (observableOrValue: Sort[] | Observable<Sort[]>) => rxjs.Subscription;
|
|
1085
1049
|
$preSort: Signal<TableBuilderSort[]>;
|
|
1086
1050
|
_$selectSorted: Signal<Sort[]>;
|
|
1087
1051
|
$selectSorted: Signal<TableBuilderSort[]>;
|
|
1052
|
+
selectSorted$: Observable<Sort[]>;
|
|
1088
1053
|
$getSorts: Signal<TableBuilderSort[]>;
|
|
1089
|
-
|
|
1090
|
-
readonly
|
|
1054
|
+
sort$: Observable<TableBuilderSort[]>;
|
|
1055
|
+
readonly addGroupByKey: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1056
|
+
readonly removeGroupByKey: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1091
1057
|
readonly updateExpandedGroups: (observableOrValue: {
|
|
1092
1058
|
key: string;
|
|
1093
1059
|
groupUniqueName: string;
|
|
1094
1060
|
isExpanded: boolean;
|
|
1095
|
-
} |
|
|
1061
|
+
} | Observable<{
|
|
1096
1062
|
key: string;
|
|
1097
1063
|
groupUniqueName: string;
|
|
1098
1064
|
isExpanded: boolean;
|
|
@@ -1100,47 +1066,50 @@ declare class TableStore extends ComponentStore<TableState> {
|
|
|
1100
1066
|
readonly expandOfGroup: (observableOrValue: {
|
|
1101
1067
|
groupKey: string;
|
|
1102
1068
|
uniqueNameOfHeadersToExpand: string[];
|
|
1103
|
-
}[] |
|
|
1069
|
+
}[] | Observable<{
|
|
1104
1070
|
groupKey: string;
|
|
1105
1071
|
uniqueNameOfHeadersToExpand: string[];
|
|
1106
1072
|
}[]>) => rxjs.Subscription;
|
|
1107
1073
|
readonly collapseAll: () => void;
|
|
1108
1074
|
readonly collapseAllOfKey: (observableOrValue: {
|
|
1109
1075
|
keys: string[];
|
|
1110
|
-
} |
|
|
1076
|
+
} | Observable<{
|
|
1111
1077
|
keys: string[];
|
|
1112
1078
|
}>) => rxjs.Subscription;
|
|
1113
1079
|
updateGroupBySort: (observableOrValue: {
|
|
1114
1080
|
key: string;
|
|
1115
1081
|
sort: SortDirection$1;
|
|
1116
|
-
} |
|
|
1082
|
+
} | Observable<{
|
|
1117
1083
|
key: string;
|
|
1118
1084
|
sort: SortDirection$1;
|
|
1119
1085
|
}>) => rxjs.Subscription;
|
|
1120
1086
|
getGroupBySortDirection: (key: string) => Signal<SortDirection$1>;
|
|
1121
|
-
cycleGroupBySortDirection: (observableOrValue: string |
|
|
1087
|
+
cycleGroupBySortDirection: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1122
1088
|
$groupByData: Signal<GroupedData[]>;
|
|
1089
|
+
groupByKeys$: Observable<string[]>;
|
|
1123
1090
|
$userDefinedNoGroups: Signal<boolean | undefined>;
|
|
1091
|
+
expandedGroups$: Observable<GroupedData[]>;
|
|
1124
1092
|
$expandGroups: Signal<GroupedData[]>;
|
|
1125
1093
|
$getIsExpanded: (columnKey: string, groupUniqueName: string) => Signal<boolean>;
|
|
1126
1094
|
$expandedPropForKeyIsAll: (columnKey: string) => Signal<boolean>;
|
|
1127
1095
|
$sortedGroupsUpdates: Signal<GroupedData[]>;
|
|
1128
|
-
readonly setCurrentPage: (observableOrValue: number |
|
|
1129
|
-
readonly setPageSize: (observableOrValue: number |
|
|
1130
|
-
readonly setUserDefinedPageSize: (observableOrValue: number |
|
|
1131
|
-
readonly setUserDefinedShowAll: (observableOrValue: boolean |
|
|
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;
|
|
1132
1100
|
$isVirtual: Signal<boolean | undefined>;
|
|
1133
1101
|
$showAll: Signal<boolean>;
|
|
1134
1102
|
$viewType: Signal<ViewType>;
|
|
1135
1103
|
$userDefinedPageSize: Signal<number | undefined>;
|
|
1136
1104
|
$currentPage: Signal<number>;
|
|
1137
1105
|
$pageSize: Signal<number>;
|
|
1138
|
-
addFooter: (observableOrValue: string |
|
|
1106
|
+
addFooter: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1139
1107
|
$tableSettings: Signal<NonFunctionProperties<PersistedTableSettings & NotPersistedTableSettings>>;
|
|
1140
1108
|
$notPersistedTableSettings: Signal<NotPersistedTableSettings>;
|
|
1109
|
+
tableSettings$: Observable<NonFunctionProperties<PersistedTableSettings & NotPersistedTableSettings>>;
|
|
1141
1110
|
$props: Signal<TableProps>;
|
|
1142
|
-
readonly setUserDefinedRowHeight: (observableOrValue: number |
|
|
1143
|
-
readonly setUserDefinedHeaderHeight: (observableOrValue: number |
|
|
1111
|
+
readonly setUserDefinedRowHeight: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1112
|
+
readonly setUserDefinedHeaderHeight: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1144
1113
|
$userDefinedRowHeight: Signal<number | undefined>;
|
|
1145
1114
|
$userDefinedHeaderHeight: Signal<number | undefined>;
|
|
1146
1115
|
$footerCollapsed: Signal<boolean>;
|
|
@@ -1148,21 +1117,22 @@ declare class TableStore extends ComponentStore<TableState> {
|
|
|
1148
1117
|
$getLinkInfo: (md: MetaData) => Signal<LinkInfo>;
|
|
1149
1118
|
readonly resetState: () => void;
|
|
1150
1119
|
reset: () => void;
|
|
1151
|
-
readonly resetPart: (observableOrValue: "Sorting" | "Filters" | "Group By" | "Hidden Columns" | "Column Widths" | "Column Order" | "Row Height" | "Header Height" | "Page Size" | "Show All" |
|
|
1152
|
-
readonly updateStateFromPersistedState: (observableOrValue: PersistedTableState |
|
|
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;
|
|
1153
1122
|
private updateStateFunc;
|
|
1154
|
-
readonly setTableSettings: (observableOrValue: TableBuilderSettings<any> |
|
|
1155
|
-
readonly setMetaData: (observableOrValue: MetaData[] |
|
|
1156
|
-
readonly setProps: (observableOrValue: TableProps |
|
|
1157
|
-
readonly setInitializationState: (observableOrValue: InitializationState |
|
|
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;
|
|
1158
1127
|
readonly toggleCollapseHeader: () => void;
|
|
1159
1128
|
readonly toggleCollapseFooter: (() => void) | ((observableOrValue: void | {
|
|
1160
1129
|
collapseFooter: boolean;
|
|
1161
|
-
} |
|
|
1130
|
+
} | Observable<void | {
|
|
1162
1131
|
collapseFooter: boolean;
|
|
1163
1132
|
} | undefined> | undefined) => rxjs.Subscription);
|
|
1164
1133
|
readonly setLinkMaps: (() => void) | ((observableOrValue: any) => rxjs.Subscription);
|
|
1165
|
-
updateRowProps: (observableOrValue: Pick<NotPersistedTableSettings, "rowClasses" | "rowStyles" | "rowClick"> |
|
|
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;
|
|
1166
1136
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableStore, never>;
|
|
1167
1137
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableStore>;
|
|
1168
1138
|
}
|
|
@@ -1318,12 +1288,68 @@ declare class MatButtonToggleFilterDirective extends TbSelectedFilterDirective i
|
|
|
1318
1288
|
}
|
|
1319
1289
|
|
|
1320
1290
|
declare class TableWrapperDirective {
|
|
1321
|
-
$registrations: _angular_core.WritableSignal<(
|
|
1291
|
+
$registrations: _angular_core.WritableSignal<(TableFilterDirective | TableCustomFilterDirective)[]>;
|
|
1322
1292
|
register(filter: TableCustomFilterDirective | TableFilterDirective): void;
|
|
1323
1293
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableWrapperDirective, never>;
|
|
1324
1294
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableWrapperDirective, "[tbWrapper]", never, {}, {}, never, never, true, never>;
|
|
1325
1295
|
}
|
|
1326
1296
|
|
|
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
|
+
|
|
1327
1353
|
declare class TableBuilderStateStore extends ComponentStore<GlobalStorageState> {
|
|
1328
1354
|
constructor();
|
|
1329
1355
|
$selectLocalTableProfile: (profileKey: string) => Signal<Profile | undefined>;
|
|
@@ -1376,7 +1402,7 @@ declare class TableBuilderStateStore extends ComponentStore<GlobalStorageState>
|
|
|
1376
1402
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableBuilderStateStore>;
|
|
1377
1403
|
}
|
|
1378
1404
|
interface PersistedProfile {
|
|
1379
|
-
states:
|
|
1405
|
+
states: Dictionary<PersistedTableState>;
|
|
1380
1406
|
default?: string;
|
|
1381
1407
|
}
|
|
1382
1408
|
interface Profile extends PersistedProfile {
|
|
@@ -1384,16 +1410,16 @@ interface Profile extends PersistedProfile {
|
|
|
1384
1410
|
localSavedState?: PersistedTableState;
|
|
1385
1411
|
}
|
|
1386
1412
|
interface GlobalStorageState {
|
|
1387
|
-
localProfiles:
|
|
1413
|
+
localProfiles: Dictionary<Profile>;
|
|
1388
1414
|
}
|
|
1389
1415
|
|
|
1390
|
-
declare function setCustomGroupBy(customGroupBy: <T extends NoneGroupHeader = any>(data: T[], groupByDatas: GroupedData[], level?: number, metaData?:
|
|
1416
|
+
declare function setCustomGroupBy(customGroupBy: <T extends NoneGroupHeader = any>(data: T[], groupByDatas: GroupedData[], level?: number, metaData?: Dictionary$1<MetaData<T>>, parent?: Group) => DataGroup<T>[] | GroupGroup<T>[]): void;
|
|
1391
1417
|
declare function updateGroupByState<T extends NoneGroupHeader = any>(groupedData: any[], { data, groups, expanded, groupSorts }: {
|
|
1392
1418
|
data: Timestamp<T[]>;
|
|
1393
1419
|
groups: Timestamp<GroupedData[]>;
|
|
1394
1420
|
expanded: Timestamp<GroupedData[]>;
|
|
1395
1421
|
groupSorts: Timestamp<GroupedData[]>;
|
|
1396
|
-
}, firstRun: boolean, metaData:
|
|
1422
|
+
}, firstRun: boolean, metaData: Dictionary$1<MetaData<T>>): GroupByState;
|
|
1397
1423
|
declare function mapGroupHeader(obj: DataGroup | GroupGroup, expandedHeaders: string[] | true, expandAllGroups?: string[]): any[];
|
|
1398
1424
|
interface GroupByState {
|
|
1399
1425
|
displayData: any[];
|
|
@@ -1477,12 +1503,12 @@ declare class ColumnBuilderComponent implements AfterViewInit {
|
|
|
1477
1503
|
$innerTemplate: Signal<TemplateRef<any> | undefined>;
|
|
1478
1504
|
$showFilters: Signal<boolean | undefined>;
|
|
1479
1505
|
$outerTemplate: Signal<TemplateRef<any> | undefined>;
|
|
1480
|
-
$classes: Signal<
|
|
1506
|
+
$classes: Signal<Dictionary$1<Predicate<any> | true> | undefined>;
|
|
1481
1507
|
$styles: Signal<{
|
|
1482
|
-
header:
|
|
1508
|
+
header: Dictionary$1<string>;
|
|
1483
1509
|
body: _one_paragon_angular_utilities.StylerStyle;
|
|
1484
1510
|
innerBody: _one_paragon_angular_utilities.StylerStyle;
|
|
1485
|
-
footer:
|
|
1511
|
+
footer: Dictionary$1<string>;
|
|
1486
1512
|
} | undefined>;
|
|
1487
1513
|
private viewInited;
|
|
1488
1514
|
ngAfterViewInit(): void;
|
|
@@ -1530,7 +1556,7 @@ declare class GenericTableComponent {
|
|
|
1530
1556
|
$showFooterRow: _angular_core.Signal<boolean>;
|
|
1531
1557
|
injector: _angular_core.DestroyableInjector;
|
|
1532
1558
|
$hasIndexColumn: _angular_core.Signal<boolean>;
|
|
1533
|
-
$columns: _angular_core.WritableSignal<
|
|
1559
|
+
$columns: _angular_core.WritableSignal<Dictionary<ColumnBuilderComponent>>;
|
|
1534
1560
|
$showHeader: _angular_core.Signal<boolean>;
|
|
1535
1561
|
$paginatorHeight: _angular_core.WritableSignal<number>;
|
|
1536
1562
|
r: ResizeObserver;
|
|
@@ -1572,7 +1598,7 @@ declare class GenericTableComponent {
|
|
|
1572
1598
|
$footerHeight: _angular_core.Signal<string | undefined>;
|
|
1573
1599
|
$stickyFooter: _angular_core.Signal<boolean | undefined>;
|
|
1574
1600
|
$rowStyles: _angular_core.Signal<_one_paragon_angular_utilities.StylerStyle>;
|
|
1575
|
-
$rowClasses: _angular_core.Signal<
|
|
1601
|
+
$rowClasses: _angular_core.Signal<Dictionary<true | _angular_core.Predicate<any>>>;
|
|
1576
1602
|
allOfGroupSelected: (uniqueName: string) => _angular_core.Signal<{
|
|
1577
1603
|
containsAll: boolean;
|
|
1578
1604
|
containsSome: boolean;
|
|
@@ -1614,6 +1640,7 @@ declare class TableContainerComponent<T = any> {
|
|
|
1614
1640
|
stateService: TableBuilderStateStore;
|
|
1615
1641
|
injector: Injector;
|
|
1616
1642
|
elementRef: ElementRef<any>;
|
|
1643
|
+
private exportToCsvService;
|
|
1617
1644
|
private config;
|
|
1618
1645
|
protected dataSource: TableBuilderDataSource<T>;
|
|
1619
1646
|
$filterDirectives: _angular_core.Signal<readonly TableFilterDirective[]>;
|
|
@@ -1661,7 +1688,7 @@ declare class TableContainerComponent<T = any> {
|
|
|
1661
1688
|
collapseAllGroups: () => void;
|
|
1662
1689
|
exportToCsv: () => void;
|
|
1663
1690
|
protected $myColumns: _angular_core.Signal<{
|
|
1664
|
-
metaData:
|
|
1691
|
+
metaData: MetaData;
|
|
1665
1692
|
customCell: CustomCellDirective<any> | undefined;
|
|
1666
1693
|
customHeader: CustomHeaderDirective<any> | undefined;
|
|
1667
1694
|
}[]>;
|
|
@@ -1686,9 +1713,18 @@ declare class TableContainerComponent<T = any> {
|
|
|
1686
1713
|
private $storeReady;
|
|
1687
1714
|
private $basicDataManager;
|
|
1688
1715
|
private $sortedAndFilteredData;
|
|
1689
|
-
|
|
1690
|
-
|
|
1691
|
-
|
|
1716
|
+
$timestampedGroups: _angular_core.Signal<{
|
|
1717
|
+
value: GroupedData[];
|
|
1718
|
+
timestamp: number;
|
|
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
|
+
}>;
|
|
1692
1728
|
private $dataAndGroupsTimestamped;
|
|
1693
1729
|
protected $filteredSortedAndGrouped: _angular_core.WritableSignal<GroupByState | undefined>;
|
|
1694
1730
|
private $isInitializationState;
|
|
@@ -1699,7 +1735,7 @@ declare class TableContainerComponent<T = any> {
|
|
|
1699
1735
|
}
|
|
1700
1736
|
|
|
1701
1737
|
declare class SpaceCasePipe implements PipeTransform {
|
|
1702
|
-
spaceCase:
|
|
1738
|
+
spaceCase: typeof spaceCase;
|
|
1703
1739
|
transform: (value: string) => string;
|
|
1704
1740
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpaceCasePipe, never>;
|
|
1705
1741
|
static ɵpipe: _angular_core.ɵɵPipeDeclaration<SpaceCasePipe, "spaceCase", true>;
|
|
@@ -1848,7 +1884,7 @@ declare class ConditionalClassesDirective {
|
|
|
1848
1884
|
private el;
|
|
1849
1885
|
private renderer;
|
|
1850
1886
|
$element: _angular_core.InputSignal<any>;
|
|
1851
|
-
$classes: _angular_core.InputSignal<
|
|
1887
|
+
$classes: _angular_core.InputSignal<Dictionary$1<true | Predicate$1<any>> | undefined>;
|
|
1852
1888
|
classesApplied: string[];
|
|
1853
1889
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConditionalClassesDirective, never>;
|
|
1854
1890
|
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>;
|
|
@@ -1867,8 +1903,6 @@ declare class TableBuilderModule {
|
|
|
1867
1903
|
static ɵinj: _angular_core.ɵɵInjectorDeclaration<TableBuilderModule>;
|
|
1868
1904
|
}
|
|
1869
1905
|
|
|
1870
|
-
declare function provideTableBuilder(config?: TableBuilderConfig): EnvironmentProviders;
|
|
1871
|
-
|
|
1872
1906
|
declare class MatTableObservableDataSource<T> extends MatTableDataSource<T> {
|
|
1873
1907
|
private dataSrc;
|
|
1874
1908
|
subscription?: Subscription;
|
|
@@ -2267,5 +2301,5 @@ interface LoadingState<T> {
|
|
|
2267
2301
|
type ActionableMemoizedSelector<State, Result> = MemoizedSelector<State, Result>;
|
|
2268
2302
|
type ActionReturner<Props extends any[], Result = any> = (...props: [...Props, Result]) => Action;
|
|
2269
2303
|
|
|
2270
|
-
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, 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 };
|
|
2271
|
-
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, TableBuilderSettings, TbSize, TbTitle };
|
|
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, createFailure, createFilterFunc, createFilterFuncs, createRequestor, createSuccess, defaultConfig, defaultFilter, defaultShareReplay, delayOn, filterArray, filterTypeMap, getAllGroupHeaderNames, getAllGroupHeaderNamesByKeys, getRequestorBody, getRequestorStatus, getStatusState, httpRequest, httpRequestor, inProgress, initialGroupByState, initialState, isCustomFilter, isDataGroup, isErrorState, isFilterInfo, isGroupHeader, isSuccessOrErrorState, isSuccessState, mapArray, mapError, mapGroupHeader, metaDataArrToDict, needsFilterCreation, notNull, notStarted, onWait, onceWhen, parseTbSizeToPixels, phoneFormatter, previousAndCurrent, provideActionableSelector, provideTableBuilder, selectAll, selectEntities, selectEntity, selectIds, selectTotal, serverStatusTypes, setCustomGroupBy, setUpStoreFactory, setUpStoreFactoryOld, skipOneWhen, sortsAreSame, spaceCase, startWithIfEmpty, statusAdapter, statusIsSuccessOrInProgress, subscriber, switchOff, tapError, tapSuccess, updateGroupByState, wrapInArr };
|
|
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, TableBuilderExport, TableBuilderSettings, TbSize, TbTitle };
|