@one-paragon/angular-utilities 2.8.2 → 2.8.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/karma.conf.js +43 -0
- package/ng-package.json +7 -0
- package/package.json +15 -27
- package/src/action-state/action-state-spinner/action-state-spinner.component.css +16 -0
- package/src/action-state/action-state-spinner/action-state-spinner.component.html +7 -0
- package/src/action-state/action-state-spinner/action-state-spinner.component.spec.ts +25 -0
- package/src/action-state/action-state-spinner/action-state-spinner.component.ts +26 -0
- package/src/action-state/action-state-ui/action-state-ui.module.ts +13 -0
- package/src/action-state/index.ts +8 -0
- package/src/action-state/ngrx-ext/ngrx-ext.module.ts +14 -0
- package/src/action-state/ngrx.ts +69 -0
- package/src/http-request-state/RequestStateFactory.ts +56 -0
- package/src/http-request-state/RequestStateStore.ts +360 -0
- package/src/http-request-state/deprecated.ts +20 -0
- package/src/http-request-state/directives/HttpStateDirectiveBase.ts +29 -0
- package/src/http-request-state/directives/http-error-state-directive.ts +21 -0
- package/src/http-request-state/directives/http-inProgress-state-directive.ts +19 -0
- package/src/http-request-state/directives/http-notStarted-state-directive.ts +19 -0
- package/src/http-request-state/directives/http-success-state-directive.ts +29 -0
- package/src/http-request-state/directives/index.ts +5 -0
- package/src/http-request-state/directives/request-state-directive.spec.ts +73 -0
- package/src/http-request-state/directives/request-state-directive.ts +78 -0
- package/src/http-request-state/documentation/CREATE-REQUESTOR.md +667 -0
- package/src/http-request-state/documentation/README.md +191 -0
- package/src/http-request-state/documentation/REQUEST-STATE-STORE-CONFIG.md +648 -0
- package/src/http-request-state/documentation/REQUESTOR.md +616 -0
- package/src/http-request-state/helpers.ts +30 -0
- package/src/http-request-state/http-state-module.ts +23 -0
- package/src/http-request-state/index.ts +7 -0
- package/src/http-request-state/models/view-context.ts +18 -0
- package/src/http-request-state/observable.spec.ts +43 -0
- package/src/http-request-state/request-state.ts +66 -0
- package/src/http-request-state/rxjs/getRequestorBody.ts +10 -0
- package/src/http-request-state/rxjs/getRequestorState.ts +8 -0
- package/src/http-request-state/rxjs/index.ts +4 -0
- package/src/http-request-state/rxjs/tapError.ts +16 -0
- package/src/http-request-state/rxjs/tapSuccess.ts +16 -0
- package/src/http-request-state/strategies.spec.ts +42 -0
- package/src/http-request-state/types.ts +54 -0
- package/src/ngrx/actionable-selector.ts +189 -0
- package/src/ngrx/index.ts +1 -0
- package/src/public-api.ts +40 -0
- package/src/rxjs/defaultShareReplay.ts +8 -0
- package/src/rxjs/index.ts +5 -0
- package/src/rxjs/mapError.ts +8 -0
- package/src/rxjs/rxjs-operators.ts +130 -0
- package/src/rxjs/subjectifier.ts +17 -0
- package/src/rxjs/subscriber.directive.ts +57 -0
- package/src/specs/clickSubject.spec.ts +99 -0
- package/src/specs/dialog.spec.ts +101 -0
- package/src/specs/toggleGroupDirective.spec.ts +229 -0
- package/src/table-builder/classes/DefaultSettings.ts +11 -0
- package/src/table-builder/classes/MatTableObservableDataSource.ts +23 -0
- package/src/table-builder/classes/TableBuilderConfig.ts +49 -0
- package/src/table-builder/classes/TableBuilderDataSource.ts +64 -0
- package/src/table-builder/classes/TableState.ts +96 -0
- package/src/table-builder/classes/data-store.ts +10 -0
- package/src/table-builder/classes/display-col.ts +5 -0
- package/src/table-builder/classes/filter-info.ts +129 -0
- package/src/table-builder/classes/table-builder-general-settings.ts +233 -0
- package/src/table-builder/classes/table-builder.ts +105 -0
- package/src/table-builder/classes/table-store.helpers.ts +109 -0
- package/src/table-builder/classes/table-store.ts +540 -0
- package/src/table-builder/components/array-column.component.ts +34 -0
- package/src/table-builder/components/column-builder/column-builder.component.html +109 -0
- package/src/table-builder/components/column-builder/column-builder.component.scss +43 -0
- package/src/table-builder/components/column-builder/column-builder.component.spec.ts +49 -0
- package/src/table-builder/components/column-builder/column-builder.component.ts +130 -0
- package/src/table-builder/components/column-builder/column-helpers.ts +54 -0
- package/src/table-builder/components/column-header-menu/column-header-menu.component.html +128 -0
- package/src/table-builder/components/column-header-menu/column-header-menu.component.scss +97 -0
- package/src/table-builder/components/column-header-menu/column-header-menu.component.ts +113 -0
- package/src/table-builder/components/date-filter/date-filter.component.html +39 -0
- package/src/table-builder/components/date-filter/date-filter.component.ts +33 -0
- package/src/table-builder/components/date-time-filter/date-time-filter.component.html +25 -0
- package/src/table-builder/components/date-time-filter/date-time-filter.component.ts +33 -0
- package/src/table-builder/components/filter/filter.component.html +120 -0
- package/src/table-builder/components/filter/filter.component.scss +60 -0
- package/src/table-builder/components/filter/filter.component.spec.ts +86 -0
- package/src/table-builder/components/filter/filter.component.ts +73 -0
- package/src/table-builder/components/filter/in-list/in-list-filter.component.ts +171 -0
- package/src/table-builder/components/gen-col-displayer/gen-col-displayer.component.html +60 -0
- package/src/table-builder/components/gen-col-displayer/gen-col-displayer.component.scss +57 -0
- package/src/table-builder/components/gen-col-displayer/gen-col-displayer.component.ts +44 -0
- package/src/table-builder/components/generic-table/generic-table.component.html +140 -0
- package/src/table-builder/components/generic-table/generic-table.component.scss +45 -0
- package/src/table-builder/components/generic-table/generic-table.component.ts +531 -0
- package/src/table-builder/components/generic-table/paginator.component.ts +125 -0
- package/src/table-builder/components/group-by-list/group-by-list.component.css +24 -0
- package/src/table-builder/components/group-by-list/group-by-list.component.html +21 -0
- package/src/table-builder/components/group-by-list/group-by-list.component.spec.ts +23 -0
- package/src/table-builder/components/group-by-list/group-by-list.component.ts +26 -0
- package/src/table-builder/components/in-filter/in-filter.component.css +22 -0
- package/src/table-builder/components/in-filter/in-filter.component.html +38 -0
- package/src/table-builder/components/in-filter/in-filter.component.ts +66 -0
- package/src/table-builder/components/index.ts +9 -0
- package/src/table-builder/components/initialization-component/initialization.component.html +78 -0
- package/src/table-builder/components/initialization-component/initialization.component.ts +28 -0
- package/src/table-builder/components/link-column.component.ts +42 -0
- package/src/table-builder/components/number-filter/number-filter.component.css +10 -0
- package/src/table-builder/components/number-filter/number-filter.component.html +32 -0
- package/src/table-builder/components/number-filter/number-filter.component.spec.ts +30 -0
- package/src/table-builder/components/number-filter/number-filter.component.ts +34 -0
- package/src/table-builder/components/profiles-menu/profiles-menu.component.html +77 -0
- package/src/table-builder/components/profiles-menu/profiles-menu.component.scss +126 -0
- package/src/table-builder/components/profiles-menu/profiles-menu.component.spec.ts +23 -0
- package/src/table-builder/components/profiles-menu/profiles-menu.component.ts +64 -0
- package/src/table-builder/components/reset-menu/reset-menu.component.css +3 -0
- package/src/table-builder/components/reset-menu/reset-menu.component.html +10 -0
- package/src/table-builder/components/reset-menu/reset-menu.component.ts +87 -0
- package/src/table-builder/components/scroll-strategy.ts +139 -0
- package/src/table-builder/components/sort-menu/sort-menu.component-store.ts +57 -0
- package/src/table-builder/components/sort-menu/sort-menu.component.html +115 -0
- package/src/table-builder/components/sort-menu/sort-menu.component.scss +119 -0
- package/src/table-builder/components/sort-menu/sort-menu.component.ts +88 -0
- package/src/table-builder/components/table-container/table-container.component.html +94 -0
- package/src/table-builder/components/table-container/table-container.component.scss +60 -0
- package/src/table-builder/components/table-container/table-container.component.ts +467 -0
- package/src/table-builder/components/table-container/table-container.helpers/data-state.helpers.ts +113 -0
- package/src/table-builder/components/table-container/table-container.helpers/filter-state.helpers.ts +125 -0
- package/src/table-builder/components/table-container/table-container.helpers/groupBy.helpers.ts +172 -0
- package/src/table-builder/components/table-container/table-container.helpers/meta-data.helpers.ts +19 -0
- package/src/table-builder/components/table-container/table-container.helpers/sort-state.helpers.ts +47 -0
- package/src/table-builder/components/table-container/tableProps.ts +21 -0
- package/src/table-builder/components/table-container/virtual-scroll-container.ts +216 -0
- package/src/table-builder/components/table-container-filter/filter-list/filter-list.component.html +42 -0
- package/src/table-builder/components/table-container-filter/filter-list/filter-list.component.ts +47 -0
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.css +40 -0
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.html +11 -0
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.spec.ts +85 -0
- package/src/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.ts +35 -0
- package/src/table-builder/components/table-container-filter/table-wrapper-filter-store.ts +13 -0
- package/src/table-builder/components/table-header-menu/table-header-menu.component.css +21 -0
- package/src/table-builder/components/table-header-menu/table-header-menu.component.html +48 -0
- package/src/table-builder/components/table-header-menu/table-header-menu.component.ts +36 -0
- package/src/table-builder/directives/custom-cell-directive.ts +63 -0
- package/src/table-builder/directives/custom-header-directive.ts +16 -0
- package/src/table-builder/directives/group-row-directive.ts +91 -0
- package/src/table-builder/directives/index.ts +8 -0
- package/src/table-builder/directives/multi-sort.directive.spec.ts +124 -0
- package/src/table-builder/directives/multi-sort.directive.ts +58 -0
- package/src/table-builder/directives/resize-column.directive.ts +107 -0
- package/src/table-builder/directives/table-wrapper.directive.ts +13 -0
- package/src/table-builder/directives/tb-filter.directive.ts +376 -0
- package/src/table-builder/documentation/table-builder/CUSTOM-CELL.md +568 -0
- package/src/table-builder/documentation/table-builder/CUSTOM-GROUP-ROW.md +356 -0
- package/src/table-builder/documentation/table-builder/METADATA-DOCUMENTATION.md +517 -0
- package/src/table-builder/documentation/table-builder/STYLER-STYLE.md +228 -0
- package/src/table-builder/documentation/table-builder/TABLE-BUILDER-CONFIG.md +325 -0
- package/src/table-builder/documentation/table-builder/TABLE-BUILDER-SETTINGS.md +515 -0
- package/src/table-builder/documentation/table-builder/TABLE-BUILDER.md +430 -0
- package/src/table-builder/documentation/table-builder/TABLE-CONTAINER.md +628 -0
- package/src/table-builder/enums/filterTypes.ts +39 -0
- package/src/table-builder/functions/boolean-filter-function.ts +12 -0
- package/src/table-builder/functions/date-filter-function.ts +85 -0
- package/src/table-builder/functions/download-data.ts +11 -0
- package/src/table-builder/functions/null-filter-function.ts +9 -0
- package/src/table-builder/functions/number-filter-function.ts +47 -0
- package/src/table-builder/functions/sort-data-function.ts +80 -0
- package/src/table-builder/functions/string-filter-function.ts +59 -0
- package/src/table-builder/interfaces/ColumnInfo.ts +9 -0
- package/src/table-builder/interfaces/dictionary.ts +3 -0
- package/src/table-builder/interfaces/meta-data.ts +279 -0
- package/src/table-builder/ngrx/tableBuilderStateStore.ts +203 -0
- package/src/table-builder/pipes/column-total.pipe.ts +16 -0
- package/src/table-builder/pipes/format-filter-type.pipe.ts +12 -0
- package/src/table-builder/pipes/format-filter-value.pipe.ts +71 -0
- package/src/table-builder/pipes/key-display.ts +13 -0
- package/src/table-builder/services/all-values-filter-creator.service.ts +92 -0
- package/src/table-builder/services/export-to-csv.service.ts +117 -0
- package/src/table-builder/services/link-creator.service.ts +98 -0
- package/src/table-builder/services/table-template-service.ts +47 -0
- package/src/table-builder/services/transform-creator.ts +90 -0
- package/src/table-builder/specs/table-custom-filters.spec.ts +262 -0
- package/src/table-builder/styles/collapser.styles.scss +16 -0
- package/src/table-builder/table-builder.module.ts +42 -0
- package/src/table-builder/types/group-types.ts +42 -0
- package/src/table-builder/types/index.ts +1 -0
- package/src/test.ts +17 -0
- package/src/utilities/array-helpers.ts +13 -0
- package/src/utilities/directives/auto-focus.directive.ts +20 -0
- package/src/utilities/directives/clickEmitterDirective.ts +15 -0
- package/src/utilities/directives/clickSubject.ts +19 -0
- package/src/utilities/directives/conditional-classes.directive.ts +36 -0
- package/src/utilities/directives/dialog-service.ts +19 -0
- package/src/utilities/directives/dialog.ts +174 -0
- package/src/utilities/directives/mat-toggle-group-directive.ts +60 -0
- package/src/utilities/directives/prevent-enter.directive.ts +12 -0
- package/src/utilities/directives/stop-propagation.directive.ts +19 -0
- package/src/utilities/directives/styler.ts +45 -0
- package/src/utilities/directives/trim-whitespace.directive.ts +20 -0
- package/src/utilities/index.ts +22 -0
- package/src/utilities/module.ts +53 -0
- package/src/utilities/pipes/function.pipe.ts +21 -0
- package/src/utilities/pipes/phone.pipe.ts +20 -0
- package/src/utilities/pipes/space-case.pipes.spec.ts +47 -0
- package/src/utilities/pipes/space-case.pipes.ts +29 -0
- package/tsconfig.lib.json +20 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +17 -0
- package/fesm2022/one-paragon-angular-utilities.mjs +0 -7328
- package/fesm2022/one-paragon-angular-utilities.mjs.map +0 -1
- package/types/one-paragon-angular-utilities.d.ts +0 -2197
|
@@ -1,2197 +0,0 @@
|
|
|
1
|
-
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { Injector, OnInit, TemplateRef, ViewContainerRef, Signal, InjectionToken, OnDestroy, Predicate, EnvironmentProviders, OnChanges, SimpleChanges, AfterViewInit, ElementRef, PipeTransform, EventEmitter, QueryList, ModuleWithProviders, EnvironmentInjector } from '@angular/core';
|
|
3
|
-
import * as rxjs from 'rxjs';
|
|
4
|
-
import { Observable, Subscription, Subject, Unsubscribable, ReplaySubject, Timestamp, BehaviorSubject, MonoTypeOperatorFunction, OperatorFunction } from 'rxjs';
|
|
5
|
-
import { HttpErrorResponse } from '@angular/common/http';
|
|
6
|
-
import * as _one_paragon_angular_utilities from '@one-paragon/angular-utilities';
|
|
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
|
-
import * as _angular_material_sort from '@angular/material/sort';
|
|
11
|
-
import { SortDirection as SortDirection$1, MatSort, Sort } from '@angular/material/sort';
|
|
12
|
-
import { MatTableDataSource, MatColumnDef, MatHeaderRowDef, MatFooterRowDef, MatTable, MatRowDef } from '@angular/material/table';
|
|
13
|
-
import { CdkColumnDef } from '@angular/cdk/table';
|
|
14
|
-
import { ComponentStore } from '@ngrx/component-store';
|
|
15
|
-
import { NgControl } from '@angular/forms';
|
|
16
|
-
import * as _angular_material_paginator from '@angular/material/paginator';
|
|
17
|
-
import { MatPaginator, PageEvent } from '@angular/material/paginator';
|
|
18
|
-
import { SelectionChange, SelectionModel } from '@angular/cdk/collections';
|
|
19
|
-
import { CdkDropList, CdkDragDrop } from '@angular/cdk/drag-drop';
|
|
20
|
-
import { MatMenu } from '@angular/material/menu';
|
|
21
|
-
import { MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
|
22
|
-
import { MatSlideToggle } from '@angular/material/slide-toggle';
|
|
23
|
-
import * as _ngrx_store from '@ngrx/store';
|
|
24
|
-
import { Action, MemoizedSelector, Store } from '@ngrx/store';
|
|
25
|
-
import * as i1 from '@angular/common';
|
|
26
|
-
|
|
27
|
-
declare enum RequestStatus {
|
|
28
|
-
notStarted = 0,
|
|
29
|
-
inProgress = 1,
|
|
30
|
-
success = 2,
|
|
31
|
-
fail = 3,
|
|
32
|
-
cancelled = 4
|
|
33
|
-
}
|
|
34
|
-
type RequestStateCancelled = {
|
|
35
|
-
status: RequestStatus.cancelled;
|
|
36
|
-
};
|
|
37
|
-
type RequestStateNotStarted = {
|
|
38
|
-
status: RequestStatus.notStarted;
|
|
39
|
-
};
|
|
40
|
-
type RequestStateInProgress = {
|
|
41
|
-
status: RequestStatus.inProgress;
|
|
42
|
-
};
|
|
43
|
-
type RequestStateSuccess<T> = {
|
|
44
|
-
status: RequestStatus.success;
|
|
45
|
-
body: T;
|
|
46
|
-
};
|
|
47
|
-
type RequestStateError = {
|
|
48
|
-
status: RequestStatus.fail;
|
|
49
|
-
error: any;
|
|
50
|
-
};
|
|
51
|
-
type RequestState<T = any> = RequestStateCancelled | RequestStateNotStarted | RequestStateInProgress | RequestStateSuccess<T> | RequestStateError;
|
|
52
|
-
declare enum RequestStrategy {
|
|
53
|
-
concurrent = 1,
|
|
54
|
-
singleUse = 2,
|
|
55
|
-
cancelPrevious = 3,
|
|
56
|
-
sequential = 4
|
|
57
|
-
}
|
|
58
|
-
interface RequestStateOptions<TParam extends any[] = any> {
|
|
59
|
-
strategy?: RequestStrategy;
|
|
60
|
-
autoRequest?: TParam extends never[] ? true : never;
|
|
61
|
-
}
|
|
62
|
-
interface RequestCreatorOptions<TParam extends any[] = any> extends RequestStateOptions<TParam> {
|
|
63
|
-
injector?: Injector;
|
|
64
|
-
}
|
|
65
|
-
type RequestFactory<TParam extends any[], T> = (...params: [...TParam]) => Observable<T>;
|
|
66
|
-
|
|
67
|
-
declare abstract class HttpStateDirectiveBase<V, R = null> implements OnInit {
|
|
68
|
-
hasView: boolean;
|
|
69
|
-
private injector;
|
|
70
|
-
protected templateRef: TemplateRef<any>;
|
|
71
|
-
protected viewContainer: ViewContainerRef;
|
|
72
|
-
ngOnInit(): void;
|
|
73
|
-
private baseRender;
|
|
74
|
-
abstract render: (state: RequestState) => boolean;
|
|
75
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HttpStateDirectiveBase<any, any>, never>;
|
|
76
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HttpStateDirectiveBase<any, any>, never, never, {}, {}, never, never, true, never>;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
declare class HttpErrorStateDirective<V, R = null> extends HttpStateDirectiveBase<V, R> implements OnInit {
|
|
80
|
-
render: (state: RequestState<any>) => boolean;
|
|
81
|
-
ngOnInit(): void;
|
|
82
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HttpErrorStateDirective<any, any>, never>;
|
|
83
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HttpErrorStateDirective<any, any>, "[httpErrorState]", never, {}, {}, never, never, true, never>;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
declare class HttpInProgressStateDirective<V, R = null> extends HttpStateDirectiveBase<V, R> implements OnInit {
|
|
87
|
-
render: (state: RequestState<any>) => boolean;
|
|
88
|
-
ngOnInit(): void;
|
|
89
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HttpInProgressStateDirective<any, any>, never>;
|
|
90
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HttpInProgressStateDirective<any, any>, "[httpInProgressState]", never, {}, {}, never, never, true, never>;
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
declare class HttpNotStartedStateDirective<V, R = null> extends HttpStateDirectiveBase<V, R> implements OnInit {
|
|
94
|
-
render: (state: RequestState<any>) => boolean;
|
|
95
|
-
ngOnInit(): void;
|
|
96
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HttpNotStartedStateDirective<any, any>, never>;
|
|
97
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HttpNotStartedStateDirective<any, any>, "[httpNotStartedState]", never, {}, {}, never, never, true, never>;
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
interface RequestResponse<TParam extends any[], T> {
|
|
101
|
-
requestParams: [...TParam];
|
|
102
|
-
response: RequestState<T>;
|
|
103
|
-
}
|
|
104
|
-
declare class RequestStateStore<TParam extends any[], V, R = null, T = R extends null ? V : R> {
|
|
105
|
-
#private;
|
|
106
|
-
private _state;
|
|
107
|
-
state: Signal<RequestResponse<TParam, T>>;
|
|
108
|
-
private options?;
|
|
109
|
-
private project?;
|
|
110
|
-
private req;
|
|
111
|
-
private injector;
|
|
112
|
-
private destroy$;
|
|
113
|
-
private defaultErrorHandling?;
|
|
114
|
-
private _useDefaultErrorHandler?;
|
|
115
|
-
private defaultSuccessHandling?;
|
|
116
|
-
constructor(req: RequestFactory<TParam, V>, options?: RequestStateOptions<TParam>, project?: (v: V) => R);
|
|
117
|
-
reset(): void;
|
|
118
|
-
private flatteningStrategy;
|
|
119
|
-
private createRequestPipeline;
|
|
120
|
-
private requestPipeLine;
|
|
121
|
-
private flattenedRequest;
|
|
122
|
-
private singleUseRequest;
|
|
123
|
-
$selectRequestState: Signal<RequestState<T>>;
|
|
124
|
-
$selectStatus: Signal<RequestStatus>;
|
|
125
|
-
$isSuccess: Signal<boolean>;
|
|
126
|
-
$isError: Signal<boolean>;
|
|
127
|
-
$isInProgress: Signal<boolean>;
|
|
128
|
-
$isNotStarted: Signal<boolean>;
|
|
129
|
-
$selectError: Signal<any>;
|
|
130
|
-
$selectResponse: Signal<T | undefined>;
|
|
131
|
-
errorHandled: boolean;
|
|
132
|
-
onError(cb: (error: HttpErrorResponse) => void): this;
|
|
133
|
-
onErrorResponse(cb: (error: HttpErrorResponse, ...requestParams: [...TParam]) => void): this;
|
|
134
|
-
onErrorRequest(cb: (...requestParams: [...TParam]) => void): this;
|
|
135
|
-
onErrorWithRequest(func: (state: {
|
|
136
|
-
error: HttpErrorResponse;
|
|
137
|
-
requestParams: [...TParam];
|
|
138
|
-
}) => void): this;
|
|
139
|
-
/**
|
|
140
|
-
* if no handler was provided will call `console.error`
|
|
141
|
-
*/
|
|
142
|
-
useDefaultErrorHandler(): this;
|
|
143
|
-
/**
|
|
144
|
-
* if no handler was provided will call `console.log` with 'Success'
|
|
145
|
-
*/
|
|
146
|
-
useDefaultSuccessHandler(): this;
|
|
147
|
-
onSuccess(cb: (response?: T) => void): this;
|
|
148
|
-
onSuccessResponse(cb: (response: T, ...requestParams: [...TParam]) => void): this;
|
|
149
|
-
onSuccessWithRequest(func: (state: {
|
|
150
|
-
requestParams: [...TParam];
|
|
151
|
-
body: T;
|
|
152
|
-
}) => void): this;
|
|
153
|
-
onSuccessRequest(cb: (...requestParams: [...TParam]) => void): this;
|
|
154
|
-
onSuccessOrError(cb: () => void): this;
|
|
155
|
-
private createRequest;
|
|
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
|
-
request: (...value: [...TParam]) => Subscription;
|
|
162
|
-
/**
|
|
163
|
-
* @param params An observable or signal that returns an array to be spread into the request function.
|
|
164
|
-
* If undefined is returned, the request will not be made.
|
|
165
|
-
*/
|
|
166
|
-
requestWith: (params: Observable<[...TParam]> | Signal<[...TParam]>) => this;
|
|
167
|
-
/**
|
|
168
|
-
* @param params The parameters to be passed to the request function.
|
|
169
|
-
* The parameters can be either actual values or wrapped in a signal.
|
|
170
|
-
* If any of the parameters are a signal, it will be unwrapped and passed to the request.
|
|
171
|
-
* It will be tracked and the request will be made whenever its value changes.
|
|
172
|
-
* If any of the signals return undefined, the request will not be made.
|
|
173
|
-
*/
|
|
174
|
-
requestOn: (...params: SignalOrValArr<TParam>) => this;
|
|
175
|
-
private assertInjectionContext;
|
|
176
|
-
destroy(): void;
|
|
177
|
-
state$: Observable<RequestResponse<TParam, T>>;
|
|
178
|
-
selectRequestState$: Observable<RequestState<T>>;
|
|
179
|
-
selectResponse$: Observable<T>;
|
|
180
|
-
/**
|
|
181
|
-
* @deprecated use selectRequestState$ instead
|
|
182
|
-
*/
|
|
183
|
-
selectHttpState$: Observable<RequestState<T>>;
|
|
184
|
-
selectStatus$: Observable<RequestStatus>;
|
|
185
|
-
selectError$: Observable<any>;
|
|
186
|
-
refresh(): void;
|
|
187
|
-
}
|
|
188
|
-
declare class CancellationToken {
|
|
189
|
-
}
|
|
190
|
-
declare function wrapInArr<T extends [Signal<any>, ...Signal<any>[]]>(...sigs: T): Signal<{
|
|
191
|
-
[K in keyof T]: T[K] extends Signal<infer U> ? U : never;
|
|
192
|
-
}>;
|
|
193
|
-
declare function wrapInArr<T extends [Observable<any>, ...Observable<any>[]]>(...obs: T): Observable<{
|
|
194
|
-
[K in keyof T]: T[K] extends Observable<infer U> ? U : never;
|
|
195
|
-
}>;
|
|
196
|
-
interface RequestStateStoreConfig {
|
|
197
|
-
/**
|
|
198
|
-
* if `useDefaultErrorHandler` is `true` this will run on each error if no other handler provided.
|
|
199
|
-
* else can be used by call `.useDefaultHandler`
|
|
200
|
-
*/
|
|
201
|
-
defaultErrorHandling?: (e?: any) => void;
|
|
202
|
-
/**
|
|
203
|
-
* if `useDefaultErrorHandler` is `true` `defaultErrorHandling` will run on each error if no other handler provided.
|
|
204
|
-
*/
|
|
205
|
-
useDefaultErrorHandler?: boolean;
|
|
206
|
-
/**
|
|
207
|
-
* will be called if `useDefaultSuccess` is used
|
|
208
|
-
*/
|
|
209
|
-
defaultSuccessHandling?: <T>(e?: T) => void;
|
|
210
|
-
}
|
|
211
|
-
declare const RequestStateStoreConfigToken: InjectionToken<RequestStateStoreConfig>;
|
|
212
|
-
type SignalOrVal<T> = Signal<T> | T;
|
|
213
|
-
type SignalOrValArr<T extends readonly any[]> = {
|
|
214
|
-
[K in keyof T]: SignalOrVal<T[K]>;
|
|
215
|
-
};
|
|
216
|
-
|
|
217
|
-
interface HttpSuccessStateViewContext<T> {
|
|
218
|
-
$implicit: T;
|
|
219
|
-
}
|
|
220
|
-
declare class HttpSuccessStateDirective<V, R = null> extends HttpStateDirectiveBase<V, R> implements OnInit {
|
|
221
|
-
httpSuccessStateTypeSafety?: RequestStateStore<any, V, R> | Observable<RequestState<V>>;
|
|
222
|
-
render: (state: RequestState<R extends null ? V : R>) => boolean;
|
|
223
|
-
ngOnInit(): void;
|
|
224
|
-
static ngTemplateContextGuard<V, R>(dir: HttpSuccessStateDirective<V, R>, ctx: any): ctx is HttpSuccessStateViewContext<R extends null ? V : R>;
|
|
225
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HttpSuccessStateDirective<any, any>, never>;
|
|
226
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HttpSuccessStateDirective<any, any>, "[httpSuccessState]", never, { "httpSuccessStateTypeSafety": { "alias": "httpSuccessStateTypeSafety"; "required": false; }; }, {}, never, never, true, never>;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
interface HttpRequestStateViewContext<T> {
|
|
230
|
-
$implicit?: HttpRequestStateAny<T>;
|
|
231
|
-
state?: HttpRequestStateAny<T>;
|
|
232
|
-
status: {
|
|
233
|
-
inProgress: boolean;
|
|
234
|
-
notStarted: boolean;
|
|
235
|
-
success: boolean;
|
|
236
|
-
error: boolean;
|
|
237
|
-
};
|
|
238
|
-
}
|
|
239
|
-
declare class HttpRequestStateDirective<TParam extends any[], V, R, T = R extends null ? V : R> implements OnDestroy {
|
|
240
|
-
private viewContainer;
|
|
241
|
-
readonly ViewContext: HttpRequestStateViewContext<T>;
|
|
242
|
-
subject: Subject<Observable<RequestState<T>>>;
|
|
243
|
-
state: Observable<RequestState<T>>;
|
|
244
|
-
subscription: Unsubscribable;
|
|
245
|
-
hooks: ((state: RequestState<T>) => void)[];
|
|
246
|
-
set stateStore(store: RequestStateStore<TParam, V, R, T> | Observable<RequestState<T>>);
|
|
247
|
-
constructor(templateRef: TemplateRef<any>, viewContainer: ViewContainerRef);
|
|
248
|
-
ngOnDestroy(): void;
|
|
249
|
-
static ngTemplateContextGuard<V, R>(dir: HttpRequestStateDirective<any, V, R>, ctx: any): ctx is HttpRequestStateViewContext<R extends null ? V : R>;
|
|
250
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HttpRequestStateDirective<any, any, any, any>, never>;
|
|
251
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<HttpRequestStateDirective<any, any, any, any>, "[httpRequestState]", never, { "stateStore": { "alias": "httpRequestState"; "required": false; }; }, {}, never, never, true, never>;
|
|
252
|
-
}
|
|
253
|
-
type HttpRequestStateAny<T> = {
|
|
254
|
-
status: RequestStatus;
|
|
255
|
-
body?: T;
|
|
256
|
-
error?: any;
|
|
257
|
-
};
|
|
258
|
-
|
|
259
|
-
declare const getRequestorBody: <T>(source: Observable<RequestState<T>>) => Observable<T>;
|
|
260
|
-
|
|
261
|
-
declare const getRequestorStatus: <T>(source: Observable<RequestState<T>>) => Observable<_one_paragon_angular_utilities.RequestStatus>;
|
|
262
|
-
|
|
263
|
-
declare function tapError(onError: (error: any) => void): (src: Observable<RequestState>) => Observable<RequestState>;
|
|
264
|
-
|
|
265
|
-
declare function tapSuccess<T>(onSuccess: (body: T) => void): (src: Observable<RequestState<T>>) => Observable<RequestState<T>>;
|
|
266
|
-
|
|
267
|
-
declare function isErrorState<T>(state: RequestState<T>): state is RequestStateError;
|
|
268
|
-
declare function isSuccessState<T>(state: RequestState<T>): state is RequestStateSuccess<T>;
|
|
269
|
-
declare function isSuccessOrErrorState<T>(state: RequestState<T>): state is (RequestStateSuccess<T> | RequestStateError);
|
|
270
|
-
declare function createSuccess<T>(body: T): RequestStateSuccess<T>;
|
|
271
|
-
declare function createFailure(error: any): RequestStateError;
|
|
272
|
-
declare const notStarted: RequestStateNotStarted;
|
|
273
|
-
declare const inProgress: RequestStateInProgress;
|
|
274
|
-
declare function statusIsSuccessOrInProgress(status: RequestStatus): boolean;
|
|
275
|
-
|
|
276
|
-
type HttpRequestState$<T> = Observable<RequestState<T>>;
|
|
277
|
-
interface HttpRequestor<Res, Req> {
|
|
278
|
-
httpState$: Observable<RequestState<Res>>;
|
|
279
|
-
status$: Observable<RequestStatus>;
|
|
280
|
-
body$: Observable<Res>;
|
|
281
|
-
request: Req;
|
|
282
|
-
}
|
|
283
|
-
declare function httpRequest<T = any>(req: Observable<T>): HttpRequestState$<T>;
|
|
284
|
-
declare function httpRequestor<TParam extends any[], T>(req: RequestFactory<TParam, T>): HttpRequestor<T, (...params: [...TParam]) => Observable<RequestState<T>>>;
|
|
285
|
-
declare function chainRequest<TParam extends any[], T, TT>(httpState$: Observable<RequestState<T>>, request: RequestFactory<TParam, TT>, requestParams: ((responseFromPrevious: T) => [...TParam]) | (() => [...TParam])): Observable<RequestState<TT>>;
|
|
286
|
-
|
|
287
|
-
declare class HttpRequestModule {
|
|
288
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<HttpRequestModule, never>;
|
|
289
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<HttpRequestModule, never, [typeof HttpSuccessStateDirective, typeof HttpRequestStateDirective, typeof HttpErrorStateDirective, typeof HttpInProgressStateDirective, typeof HttpNotStartedStateDirective], [typeof HttpSuccessStateDirective, typeof HttpRequestStateDirective, typeof HttpErrorStateDirective, typeof HttpInProgressStateDirective, typeof HttpNotStartedStateDirective]>;
|
|
290
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<HttpRequestModule>;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
declare class RequestStateFactory implements OnDestroy {
|
|
294
|
-
constructor();
|
|
295
|
-
ngOnDestroy(): void;
|
|
296
|
-
private requestors;
|
|
297
|
-
create<TParam extends any[], V>(req: RequestFactory<TParam, V>, options?: RequestStateOptions<TParam>): RequestStateStore<TParam, V>;
|
|
298
|
-
create<TParam extends any[], V, R, T = R>(req: RequestFactory<TParam, V>, project: (v: V) => R, options?: RequestStateOptions<TParam>): RequestStateStore<TParam, V, T>;
|
|
299
|
-
createHttpClient<T>(r: (o: Observable<T>) => Observable<T>, options?: RequestStateOptions<any>): RequestStateStore<[o: Observable<T>], T, null, T>;
|
|
300
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RequestStateFactory, never>;
|
|
301
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<RequestStateFactory>;
|
|
302
|
-
}
|
|
303
|
-
declare function createRequestor<TParam extends any[], V>(req: RequestFactory<TParam, V>, options?: RequestCreatorOptions<TParam>): RequestStateStore<TParam, V>;
|
|
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>;
|
|
305
|
-
|
|
306
|
-
interface Dictionary<T> {
|
|
307
|
-
[key: string]: T;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
declare class StylerDirective {
|
|
311
|
-
#private;
|
|
312
|
-
private el;
|
|
313
|
-
private renderer;
|
|
314
|
-
$stylesApplied: _angular_core.WritableSignal<Dictionary$1<string>>;
|
|
315
|
-
$element: _angular_core.InputSignal<any>;
|
|
316
|
-
$styler: _angular_core.InputSignal<StylerStyle<any>>;
|
|
317
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StylerDirective, never>;
|
|
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>;
|
|
319
|
-
}
|
|
320
|
-
type StylerStyle<T = any> = Dictionary$1<string | {
|
|
321
|
-
condition?: ((t: T) => boolean) | true;
|
|
322
|
-
value: ((t: T) => string) | string;
|
|
323
|
-
}>;
|
|
324
|
-
|
|
325
|
-
declare enum FieldType {
|
|
326
|
-
Unknown = 0,
|
|
327
|
-
Date = 1,
|
|
328
|
-
ImageUrl = 3,
|
|
329
|
-
Currency = 4,
|
|
330
|
-
Array = 5,
|
|
331
|
-
Hidden = 6,
|
|
332
|
-
Number = 7,
|
|
333
|
-
String = 8,
|
|
334
|
-
Boolean = 9,
|
|
335
|
-
PhoneNumber = 10,
|
|
336
|
-
Enum = 12,
|
|
337
|
-
DateTime = 13,
|
|
338
|
-
NotMapped = 14
|
|
339
|
-
}
|
|
340
|
-
declare enum SortDirection {
|
|
341
|
-
asc = "asc",
|
|
342
|
-
desc = "desc"
|
|
343
|
-
}
|
|
344
|
-
declare enum Target {
|
|
345
|
-
Blank = "_blank",
|
|
346
|
-
Self = "_self",
|
|
347
|
-
Parent = "_parent",
|
|
348
|
-
Top = "_top"
|
|
349
|
-
}
|
|
350
|
-
interface BaseMeta<T = any> {
|
|
351
|
-
displayName?: string;
|
|
352
|
-
order?: number;
|
|
353
|
-
preSort?: SortDef;
|
|
354
|
-
sortLogic?: {
|
|
355
|
-
/**
|
|
356
|
-
* defaults to last
|
|
357
|
-
*/
|
|
358
|
-
nulls?: 'first' | 'last';
|
|
359
|
-
sortBy?: ((t: T) => any) | 'use map';
|
|
360
|
-
};
|
|
361
|
-
noSort?: boolean;
|
|
362
|
-
width?: string;
|
|
363
|
-
noExport?: boolean;
|
|
364
|
-
filterLogic?: {
|
|
365
|
-
filterBy?: ((t: T) => any) | 'use map';
|
|
366
|
-
/**
|
|
367
|
-
* defaults to the MetaData's Field type
|
|
368
|
-
*/
|
|
369
|
-
filterType?: FieldType;
|
|
370
|
-
};
|
|
371
|
-
noFilter?: boolean;
|
|
372
|
-
groupByLogic?: {
|
|
373
|
-
groupBy?: ((t: T) => any) | 'use map';
|
|
374
|
-
/**
|
|
375
|
-
* It will be called with the groupBy value. This will be the type of value table builder uses for the column unless groupBy is a function,
|
|
376
|
-
* in which case groupByHeader will be called with the value returned by groupBy.
|
|
377
|
-
*/
|
|
378
|
-
groupByHeader?: (groupByVal: any) => string;
|
|
379
|
-
};
|
|
380
|
-
click?: (element: T, key?: string, event?: MouseEvent) => void;
|
|
381
|
-
template?: TemplateRef<any>;
|
|
382
|
-
classes?: Dictionary<Predicate<T> | true>;
|
|
383
|
-
toolTip?: string | ((t: T) => string);
|
|
384
|
-
useIcon?: boolean;
|
|
385
|
-
map?: (t: T) => any;
|
|
386
|
-
}
|
|
387
|
-
type Path<T, U = never, P = never> = (T extends P ? never : T extends object ? {
|
|
388
|
-
[K in keyof T]: K extends string | number ? `${K}` | (T[K] extends (Array<any> | undefined) ? `${K}.${keyof Array<any> & (string | number)}` : `${K}.${Path<T[K], T[K], P | U>}`) : never;
|
|
389
|
-
}[keyof T] : never);
|
|
390
|
-
interface BaseMappedMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMeta<T> {
|
|
391
|
-
key: (Path<T> | AdditionalFields[number]) & string;
|
|
392
|
-
/**
|
|
393
|
-
* if used with map, `mapItem` will only be used where the row is not available, ex. group header
|
|
394
|
-
*/
|
|
395
|
-
mapItem?: (i: any) => any;
|
|
396
|
-
}
|
|
397
|
-
interface MappedMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
398
|
-
fieldType: FieldType.String | FieldType.PhoneNumber | FieldType.ImageUrl | FieldType.Hidden | FieldType.Unknown;
|
|
399
|
-
additional?: Additional<T>;
|
|
400
|
-
mapItem?: (i: string) => any;
|
|
401
|
-
}
|
|
402
|
-
interface MappedNumberMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
403
|
-
fieldType: FieldType.Number | FieldType.Currency;
|
|
404
|
-
mapItem?: (i: number) => any;
|
|
405
|
-
additional?: NumberAdditional<T>;
|
|
406
|
-
}
|
|
407
|
-
interface MappedEnumMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
408
|
-
fieldType: FieldType.Enum;
|
|
409
|
-
mapItem?: (i: number) => any;
|
|
410
|
-
additional?: EnumAdditional<T>;
|
|
411
|
-
}
|
|
412
|
-
interface MappedDateMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
413
|
-
fieldType: FieldType.Date;
|
|
414
|
-
mapItem?: (i: Date) => any;
|
|
415
|
-
additional?: DateAdditional<T>;
|
|
416
|
-
}
|
|
417
|
-
interface MappedDateTimeMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
418
|
-
fieldType: FieldType.DateTime;
|
|
419
|
-
mapItem?: (i: Date) => any;
|
|
420
|
-
additional?: DateTimeAdditional<T>;
|
|
421
|
-
}
|
|
422
|
-
interface MappedBooleanMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
423
|
-
fieldType: FieldType.Boolean;
|
|
424
|
-
mapItem?: (i: boolean) => any;
|
|
425
|
-
additional?: BooleanAdditional<T>;
|
|
426
|
-
}
|
|
427
|
-
interface MappedArrayMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
|
|
428
|
-
fieldType: FieldType.Array;
|
|
429
|
-
mapItem?: (i: string) => any;
|
|
430
|
-
additional?: ArrayAdditional<T>;
|
|
431
|
-
}
|
|
432
|
-
type MetaData<T = any, AdditionalFields extends string[] = []> = MappedMetaData<T, AdditionalFields> | NotMappedMetaData<T> | MappedNumberMetaData<T, AdditionalFields> | MappedEnumMetaData<T, AdditionalFields> | MappedBooleanMetaData<T, AdditionalFields> | MappedDateMetaData<T, AdditionalFields> | MappedDateTimeMetaData<T, AdditionalFields> | MappedArrayMetaData<T, AdditionalFields>;
|
|
433
|
-
interface NotMappedMetaData<T = any> extends BaseMeta<T> {
|
|
434
|
-
key: string;
|
|
435
|
-
fieldType: FieldType.NotMapped;
|
|
436
|
-
additional?: Additional<T>;
|
|
437
|
-
}
|
|
438
|
-
interface ReportDef<DataType = any> {
|
|
439
|
-
data: DataType[];
|
|
440
|
-
metaData: MetaData[];
|
|
441
|
-
totalRecords?: number;
|
|
442
|
-
count: number;
|
|
443
|
-
}
|
|
444
|
-
interface SortDef {
|
|
445
|
-
direction: SortDirection;
|
|
446
|
-
precedence?: number;
|
|
447
|
-
}
|
|
448
|
-
interface FilterOptions<T = string> {
|
|
449
|
-
filterableValues: T[] | 'all values' | AllValueOptions;
|
|
450
|
-
}
|
|
451
|
-
interface AllValueOptions {
|
|
452
|
-
allValues: true;
|
|
453
|
-
doNotTreatEmptyStringsAsBlanks?: boolean;
|
|
454
|
-
doNotIncludeBlanks?: boolean;
|
|
455
|
-
doNotUseFilterBy?: boolean;
|
|
456
|
-
}
|
|
457
|
-
interface DateTimeOptions {
|
|
458
|
-
format?: string;
|
|
459
|
-
includeSeconds?: boolean;
|
|
460
|
-
includeMilliseconds: boolean;
|
|
461
|
-
}
|
|
462
|
-
type interpolatedRoute = string;
|
|
463
|
-
interface BaseAdditional<T = any> {
|
|
464
|
-
link?: {
|
|
465
|
-
base?: string;
|
|
466
|
-
urlKey?: string;
|
|
467
|
-
target?: Target;
|
|
468
|
-
useRouterLink?: boolean;
|
|
469
|
-
/**
|
|
470
|
-
* If you want to use a route with interpolated params, you can use this. Wrap the property name in curly braces.
|
|
471
|
-
* For example, if interpolatedRoute = /users/{id}/edit, {id} will be replaced with the value of the element's id property.
|
|
472
|
-
*/
|
|
473
|
-
interpolatedRoute?: interpolatedRoute | ((t: T) => string);
|
|
474
|
-
routerLinkOptions?: {
|
|
475
|
-
queryParams?: [string, interpolatedRoute | ((t: T) => string)][];
|
|
476
|
-
fragment?: string;
|
|
477
|
-
preserveFragment?: boolean;
|
|
478
|
-
queryParamsHandling?: QueryParamsHandling;
|
|
479
|
-
};
|
|
480
|
-
};
|
|
481
|
-
export?: MetaDataExport<T>;
|
|
482
|
-
dateTimeOptions?: DateTimeOptions;
|
|
483
|
-
styles?: StylerStyle<T>;
|
|
484
|
-
columnPartStyles?: {
|
|
485
|
-
header?: Dictionary<string>;
|
|
486
|
-
body?: StylerStyle<T>;
|
|
487
|
-
innerBody?: StylerStyle<T>;
|
|
488
|
-
footer?: Dictionary<string>;
|
|
489
|
-
};
|
|
490
|
-
columnPartClasses?: {
|
|
491
|
-
header?: Dictionary<Predicate<T> | true>;
|
|
492
|
-
footer?: Dictionary<Predicate<T> | true>;
|
|
493
|
-
};
|
|
494
|
-
footer?: {
|
|
495
|
-
type: any;
|
|
496
|
-
};
|
|
497
|
-
}
|
|
498
|
-
interface Additional<T = any, V = string> extends BaseAdditional<T> {
|
|
499
|
-
filterOptions?: FilterOptions<V>;
|
|
500
|
-
footer?: {
|
|
501
|
-
type: never;
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
interface NumberAdditional<T = any> extends BaseAdditional<T> {
|
|
505
|
-
filterOptions?: FilterOptions<number>;
|
|
506
|
-
footer?: {
|
|
507
|
-
type: 'sum';
|
|
508
|
-
};
|
|
509
|
-
}
|
|
510
|
-
interface EnumAdditional<T = any> extends BaseAdditional<T> {
|
|
511
|
-
filterOptions?: FilterOptions<number>;
|
|
512
|
-
enumMap?: {
|
|
513
|
-
[key: number]: string;
|
|
514
|
-
};
|
|
515
|
-
footer?: {
|
|
516
|
-
type: never;
|
|
517
|
-
};
|
|
518
|
-
}
|
|
519
|
-
interface BooleanAdditional<T = any> extends BaseAdditional<T> {
|
|
520
|
-
filterOptions?: FilterOptions<never>;
|
|
521
|
-
footer?: {
|
|
522
|
-
type: never;
|
|
523
|
-
};
|
|
524
|
-
boolean?: {
|
|
525
|
-
showForFalse?: true | {
|
|
526
|
-
icon: string;
|
|
527
|
-
};
|
|
528
|
-
forTrue?: {
|
|
529
|
-
icon: string;
|
|
530
|
-
};
|
|
531
|
-
};
|
|
532
|
-
}
|
|
533
|
-
interface DateAdditional<T = any> extends BaseAdditional<T> {
|
|
534
|
-
filterOptions?: FilterOptions<Date>;
|
|
535
|
-
dateFormat?: string;
|
|
536
|
-
footer?: {
|
|
537
|
-
type: never;
|
|
538
|
-
};
|
|
539
|
-
}
|
|
540
|
-
interface DateTimeAdditional<T = any> extends BaseAdditional<T> {
|
|
541
|
-
filterOptions?: FilterOptions<Date>;
|
|
542
|
-
dateTimeOptions?: DateTimeOptions;
|
|
543
|
-
footer?: {
|
|
544
|
-
type: never;
|
|
545
|
-
};
|
|
546
|
-
}
|
|
547
|
-
declare enum ArrayStyle {
|
|
548
|
-
CommaDelimited = 0,
|
|
549
|
-
NewLine = 1
|
|
550
|
-
}
|
|
551
|
-
interface ArrayAdditional<T = any> extends Additional<T> {
|
|
552
|
-
limit?: number;
|
|
553
|
-
arrayStyle?: ArrayStyle;
|
|
554
|
-
}
|
|
555
|
-
interface MetaDataExport<T> extends TableBuilderExport {
|
|
556
|
-
/**
|
|
557
|
-
* This will supersede all other mappings when exporting.
|
|
558
|
-
*/
|
|
559
|
-
mapForExport?: (t: T) => string;
|
|
560
|
-
/**
|
|
561
|
-
* used with `mapLink` = 'add link'
|
|
562
|
-
*/
|
|
563
|
-
linkColumnName?: string;
|
|
564
|
-
}
|
|
565
|
-
declare function metaDataArrToDict<T = MetaData>(arr: MetaData[], transform?: (m: MetaData) => T): Dictionary<T>;
|
|
566
|
-
interface CustomCellMeta extends Pick<MetaData, 'key' | 'displayName' | 'preSort' | 'fieldType' | 'order' | 'width'> {
|
|
567
|
-
customCell: true;
|
|
568
|
-
noExport?: boolean;
|
|
569
|
-
additional: {
|
|
570
|
-
styles?: StylerStyle;
|
|
571
|
-
};
|
|
572
|
-
}
|
|
573
|
-
|
|
574
|
-
interface DefaultSettings {
|
|
575
|
-
dateFormat?: string;
|
|
576
|
-
dateTimeFormat?: string;
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
interface TableBuilderSettings<T = any> {
|
|
580
|
-
headerSettings?: Partial<TableWrapperHeaderSettings>;
|
|
581
|
-
footerSettings?: Partial<TableWrapperFooterSettings>;
|
|
582
|
-
columnHeaderSettings?: Partial<TableColumnHeaderSettings>;
|
|
583
|
-
columnFooterSettings?: Partial<TableColumnFooterSettings>;
|
|
584
|
-
tableSettings?: Partial<TableSettings<T>>;
|
|
585
|
-
}
|
|
586
|
-
declare class GeneralTableSettings<T = any> implements TableBuilderSettings<T> {
|
|
587
|
-
headerSettings: TableWrapperHeaderSettings;
|
|
588
|
-
footerSettings: TableWrapperFooterSettings;
|
|
589
|
-
columnHeaderSettings: TableColumnHeaderSettings;
|
|
590
|
-
columnFooterSettings: TableColumnFooterSettings;
|
|
591
|
-
tableSettings: TableSettings<T>;
|
|
592
|
-
}
|
|
593
|
-
declare class TableWrapperHeaderSettings {
|
|
594
|
-
hideExport: boolean;
|
|
595
|
-
hideFilter: boolean;
|
|
596
|
-
hideColumnSettings: boolean;
|
|
597
|
-
hideHeader: boolean;
|
|
598
|
-
hideSort: boolean;
|
|
599
|
-
collapse: boolean;
|
|
600
|
-
showTitleWhenCollapsed: boolean;
|
|
601
|
-
title: TbTitle | undefined;
|
|
602
|
-
headerHeight: TbSize | undefined;
|
|
603
|
-
}
|
|
604
|
-
declare class TableWrapperFooterSettings {
|
|
605
|
-
collapse: boolean;
|
|
606
|
-
}
|
|
607
|
-
declare class TableColumnHeaderSettings {
|
|
608
|
-
stickyHeaderRow: boolean;
|
|
609
|
-
noFilters: boolean;
|
|
610
|
-
noHeader: boolean;
|
|
611
|
-
}
|
|
612
|
-
declare class TableColumnFooterSettings {
|
|
613
|
-
stickyFooterRow?: boolean;
|
|
614
|
-
}
|
|
615
|
-
declare class TableSettings<T = any> {
|
|
616
|
-
tableId?: string | undefined;
|
|
617
|
-
trackBy?: string | undefined | ((item: T) => any);
|
|
618
|
-
includeIndexColumn: boolean;
|
|
619
|
-
includeSelectionColumn: boolean;
|
|
620
|
-
usePaginator: boolean | undefined;
|
|
621
|
-
useVirtualScroll: boolean | undefined;
|
|
622
|
-
paginatorSettings: Partial<PaginatorOptions> | undefined;
|
|
623
|
-
virtualScrollSettings: Partial<VirtualScrollOptions> | undefined;
|
|
624
|
-
rowHeight: TbSize | undefined;
|
|
625
|
-
groupHeaderHeight?: TbSize;
|
|
626
|
-
minColumnWidth: TbSize | undefined;
|
|
627
|
-
rowClasses: Dictionary<Predicate<T> | true> | undefined;
|
|
628
|
-
rowStyles: StylerStyle<T> | undefined;
|
|
629
|
-
rowClick: ((row: T, event?: MouseEvent) => void) | undefined;
|
|
630
|
-
exportSettings: TableBuilderExport | undefined;
|
|
631
|
-
groupBySettings?: {
|
|
632
|
-
key: Path<T>;
|
|
633
|
-
expanded?: boolean;
|
|
634
|
-
}[];
|
|
635
|
-
}
|
|
636
|
-
declare class PersistedTableSettings {
|
|
637
|
-
constructor(tableSettings?: NonFunctionProperties<PersistedTableSettings>);
|
|
638
|
-
merge(tableSettings?: TableBuilderSettings): PersistedTableSettings;
|
|
639
|
-
collapseHeader: boolean;
|
|
640
|
-
collapseFooter: boolean;
|
|
641
|
-
}
|
|
642
|
-
declare class NotPersistedTableSettings {
|
|
643
|
-
merge(tableSettings?: TableBuilderSettings): this & NotPersistedTableSettings;
|
|
644
|
-
hideExport: boolean;
|
|
645
|
-
hideFilter: boolean;
|
|
646
|
-
hideColumnSettings: boolean;
|
|
647
|
-
hideSort: boolean;
|
|
648
|
-
showTitleWhenHeaderCollapsed: boolean;
|
|
649
|
-
title: TbTitle | undefined;
|
|
650
|
-
hideHeader: boolean;
|
|
651
|
-
hideColumnHeaderFilters: boolean;
|
|
652
|
-
hideColumnHeader: boolean;
|
|
653
|
-
usePaginator: boolean;
|
|
654
|
-
useVirtualScroll: boolean;
|
|
655
|
-
paginatorSettings: PaginatorOptions | undefined;
|
|
656
|
-
virtualSettings: VirtualScrollOptions | undefined;
|
|
657
|
-
groupHeaderHeight?: TbSize;
|
|
658
|
-
rowHeight?: TbSize | undefined;
|
|
659
|
-
headerHeight?: TbSize;
|
|
660
|
-
minColumnWidth?: TbSize | undefined;
|
|
661
|
-
rowClasses?: Dictionary<Predicate<any> | true> | undefined;
|
|
662
|
-
rowStyles?: StylerStyle | undefined;
|
|
663
|
-
rowClick?: ((row: any, event?: MouseEvent) => void) | undefined;
|
|
664
|
-
exportSettings: TableBuilderExport | undefined;
|
|
665
|
-
groupBySettings?: {
|
|
666
|
-
key: Path<any>;
|
|
667
|
-
expanded?: boolean;
|
|
668
|
-
}[];
|
|
669
|
-
}
|
|
670
|
-
declare class VirtualScrollOptions {
|
|
671
|
-
rowHeight: TbSize;
|
|
672
|
-
enforceRowHeight: boolean;
|
|
673
|
-
headerHeight: TbSize;
|
|
674
|
-
enforceHeaderHeight: boolean;
|
|
675
|
-
amountOfVisibleItems: number;
|
|
676
|
-
/**
|
|
677
|
-
* This will win over `amountOfVisibleItems`
|
|
678
|
-
*/
|
|
679
|
-
maxViewPortHeight: TbSize | undefined;
|
|
680
|
-
/**
|
|
681
|
-
* Will try to bring the table to the bottom of the screen
|
|
682
|
-
* If `amountOfVisibleItems` is set that will be the minimum number of rows
|
|
683
|
-
* If `maxViewPortHeight` is set that will be the max table size
|
|
684
|
-
*/
|
|
685
|
-
dynamicHeight: boolean;
|
|
686
|
-
/**
|
|
687
|
-
* If `dynamicHeight` is set to true, we will try to add this amount of space from the bottom of view port
|
|
688
|
-
*/
|
|
689
|
-
dynamicalHeightBuffer: TbSize;
|
|
690
|
-
}
|
|
691
|
-
declare class PaginatorOptions {
|
|
692
|
-
pageSize: number | undefined;
|
|
693
|
-
defaultAll: boolean;
|
|
694
|
-
includeAllInOptions: boolean;
|
|
695
|
-
}
|
|
696
|
-
declare const DefaultVirtualScrollOptions: {
|
|
697
|
-
rowHeight: number;
|
|
698
|
-
headerHeight: number;
|
|
699
|
-
};
|
|
700
|
-
type NonFunctionPropertyNames<T> = {
|
|
701
|
-
[K in keyof T]: T[K] extends Function ? never : K;
|
|
702
|
-
}[keyof T];
|
|
703
|
-
type NonFunctionProperties<T> = Pick<T, NonFunctionPropertyNames<T>>;
|
|
704
|
-
type TbSize = number | `${number}${'px' | 'rem'}`;
|
|
705
|
-
type TbTitle = {
|
|
706
|
-
text: string;
|
|
707
|
-
level?: 1 | 2 | 3 | 4 | 5 | 6;
|
|
708
|
-
styles?: Dictionary<string>;
|
|
709
|
-
};
|
|
710
|
-
declare function parseTbSizeToPixels(size?: TbSize): number | undefined;
|
|
711
|
-
|
|
712
|
-
interface TableBuilderConfig {
|
|
713
|
-
defaultTableSettings: Partial<Omit<TableBuilderSettings, 'injector'>> & {
|
|
714
|
-
pageSize?: number;
|
|
715
|
-
};
|
|
716
|
-
dateFormats?: DefaultSettings;
|
|
717
|
-
arrayDefaults?: ArrayAdditional;
|
|
718
|
-
transformers?: Partial<{
|
|
719
|
-
[key in keyof typeof FieldType]: (val: any) => any;
|
|
720
|
-
}>;
|
|
721
|
-
}
|
|
722
|
-
interface TableBuilderExport {
|
|
723
|
-
dateFormat?: string;
|
|
724
|
-
dateTimeFormat?: string;
|
|
725
|
-
prepend?: string;
|
|
726
|
-
mapEnumToString?: boolean;
|
|
727
|
-
/**
|
|
728
|
-
* defaults to 'as view'
|
|
729
|
-
*/
|
|
730
|
-
mapLink?: 'as link' | 'as view' | 'add link' | 'as excel' | 'add excel';
|
|
731
|
-
/**
|
|
732
|
-
* used with `mapLink` = `'as link'` or `'add link'` to add a domain prefix to the link
|
|
733
|
-
*/
|
|
734
|
-
linkDomainPrefix?: string;
|
|
735
|
-
}
|
|
736
|
-
declare const TableBuilderConfigToken: InjectionToken<TableBuilderConfig>;
|
|
737
|
-
declare function provideTableBuilder(config?: TableBuilderConfig): EnvironmentProviders;
|
|
738
|
-
|
|
739
|
-
declare const FilterType: {
|
|
740
|
-
readonly NumberEquals: "Equals";
|
|
741
|
-
readonly NumberNotEqual: "Does Not Equal";
|
|
742
|
-
readonly NumberGreaterThan: "Greater Than";
|
|
743
|
-
readonly NumberLessThan: "Less Than";
|
|
744
|
-
readonly NumberBetween: "Between";
|
|
745
|
-
readonly StringEquals: "Equals";
|
|
746
|
-
readonly StringContains: "Contains";
|
|
747
|
-
readonly StringDoesNotContain: "Does Not Contain";
|
|
748
|
-
readonly StringStartWith: "Start With";
|
|
749
|
-
readonly StringEndsWith: "Ends With";
|
|
750
|
-
readonly DateIsOn: "Is on";
|
|
751
|
-
readonly DateIsNotOn: "Is Not On";
|
|
752
|
-
readonly DateOnOrAfter: "On or After";
|
|
753
|
-
readonly DateOnOrBefore: "On or Before";
|
|
754
|
-
readonly DateBetween: "Between";
|
|
755
|
-
readonly DateTimeIsAt: "Is At";
|
|
756
|
-
readonly DateTimeIsNotAt: "Is Not At";
|
|
757
|
-
readonly DateTimeAtOrAfter: "At or After";
|
|
758
|
-
readonly DateTimeAtOrBefore: "At or Before";
|
|
759
|
-
readonly DateTimeBetween: "Between";
|
|
760
|
-
readonly BooleanEquals: "Is";
|
|
761
|
-
readonly IsNull: "Is Blank";
|
|
762
|
-
readonly And: "And";
|
|
763
|
-
readonly In: "In";
|
|
764
|
-
readonly Custom: "Custom";
|
|
765
|
-
};
|
|
766
|
-
type FilterType = typeof FilterType[keyof typeof FilterType];
|
|
767
|
-
type SubFilterTypes<T extends typeof FilterType[keyof typeof FilterType]> = T;
|
|
768
|
-
type StringFilterTypes = SubFilterTypes<'Equals' | 'Contains' | 'Does Not Contain' | 'Start With' | 'Ends With' | 'Is Blank' | 'In'>;
|
|
769
|
-
type NumberFilterTypes = SubFilterTypes<'Equals' | 'Does Not Equal' | 'Greater Than' | 'Less Than' | 'Between' | 'Is Blank' | 'In'>;
|
|
770
|
-
type DateFilterTypes = SubFilterTypes<'Is on' | 'Is Not On' | 'On or After' | 'On or Before' | 'Between' | 'Is Blank' | 'In'>;
|
|
771
|
-
type DateTimeFilterTypes = SubFilterTypes<'Is At' | 'Is Not At' | 'At or After' | 'At or Before' | 'Between' | DateFilterTypes>;
|
|
772
|
-
type BooleanFilterTypes = SubFilterTypes<'Is' | 'Is Blank'>;
|
|
773
|
-
type EnumFilterTypes = SubFilterTypes<'In' | 'Is Blank'>;
|
|
774
|
-
|
|
775
|
-
declare const filterTypeMap: Record<FieldType, FilterType[]>;
|
|
776
|
-
interface FilterState {
|
|
777
|
-
filterId: string;
|
|
778
|
-
filterType: FilterType;
|
|
779
|
-
filterValue?: any;
|
|
780
|
-
active?: boolean;
|
|
781
|
-
filterBy?: (t: any) => any;
|
|
782
|
-
}
|
|
783
|
-
interface FilterInfo<T extends FieldType = any, U = any> extends FilterState {
|
|
784
|
-
key: string & keyof U;
|
|
785
|
-
fieldType: T;
|
|
786
|
-
_isExternallyManaged?: boolean;
|
|
787
|
-
}
|
|
788
|
-
interface PartialFilter {
|
|
789
|
-
filterId?: string;
|
|
790
|
-
key: string;
|
|
791
|
-
fieldType: FieldType;
|
|
792
|
-
filterType?: FilterType;
|
|
793
|
-
filterValue?: any;
|
|
794
|
-
filterBy?: (t: any) => any;
|
|
795
|
-
}
|
|
796
|
-
interface CustomFilter<T = any> extends FilterState {
|
|
797
|
-
predicate: Predicate<T>;
|
|
798
|
-
filterType: typeof FilterType.Custom;
|
|
799
|
-
chipLabel?: string;
|
|
800
|
-
notSavable?: boolean;
|
|
801
|
-
}
|
|
802
|
-
declare function isCustomFilter(filter: FilterInfo | CustomFilter): filter is CustomFilter;
|
|
803
|
-
declare function isFilterInfo(filter: FilterInfo | CustomFilter): filter is FilterInfo;
|
|
804
|
-
declare function createFilterFuncs(filters: (FilterInfo | CustomFilter)[]): Predicate<any>[];
|
|
805
|
-
declare function needsFilterCreation(filter: FilterInfo | CustomFilter): boolean;
|
|
806
|
-
declare function createFilterFunc(filter: FilterInfo | CustomFilter): Predicate<any>;
|
|
807
|
-
type FilterFunc<T, V = T> = (filterInfo: FilterInfo) => (val: V) => boolean;
|
|
808
|
-
type Range<T> = {
|
|
809
|
-
Start: T;
|
|
810
|
-
End: T;
|
|
811
|
-
};
|
|
812
|
-
type FilterFuncs<T extends FilterType> = Partial<Record<T, FilterFunc<any, any>>>;
|
|
813
|
-
|
|
814
|
-
interface LinkInfo {
|
|
815
|
-
link: (element: any) => string;
|
|
816
|
-
target: string;
|
|
817
|
-
useRouterLink: boolean;
|
|
818
|
-
routerLinkOptions?: {
|
|
819
|
-
queryParams: (element: any) => any;
|
|
820
|
-
fragment?: string;
|
|
821
|
-
preserveFragment?: boolean;
|
|
822
|
-
queryParamsHandling?: QueryParamsHandling;
|
|
823
|
-
};
|
|
824
|
-
}
|
|
825
|
-
|
|
826
|
-
declare class TableBuilder<T = any> {
|
|
827
|
-
#private;
|
|
828
|
-
private data;
|
|
829
|
-
private metaData?;
|
|
830
|
-
private settings;
|
|
831
|
-
_container: _angular_core.WritableSignal<TableContainerComponent<any> | undefined>;
|
|
832
|
-
container: Signal<TableContainerComponent<any> | undefined>;
|
|
833
|
-
$metaData: Signal<MetaData<T>[] | undefined>;
|
|
834
|
-
$settings: Signal<TableBuilderSettings<any> | undefined>;
|
|
835
|
-
$initialized: _angular_core.WritableSignal<boolean>;
|
|
836
|
-
constructor(data: TableBuilderArgs<T[]>, metaData?: TableBuilderArgs<MetaData<T, any>[]> | undefined, settings?: TableBuilderArgs<TableBuilderSettings<T>>);
|
|
837
|
-
prep(injector: Injector): void;
|
|
838
|
-
$data: Signal<T[]>;
|
|
839
|
-
createMetaData(obj: any): MetaData[];
|
|
840
|
-
}
|
|
841
|
-
declare const CreateTableBuilder: (reportDef$: Observable<ReportDef>) => TableBuilder;
|
|
842
|
-
type TableBuilderArgs<T> = T | Observable<T> | Signal<T>;
|
|
843
|
-
|
|
844
|
-
interface CustomCellContext<T> {
|
|
845
|
-
$implicit: T;
|
|
846
|
-
element: T;
|
|
847
|
-
}
|
|
848
|
-
declare class CustomCellDirective<T = any> implements OnInit {
|
|
849
|
-
private templateRef;
|
|
850
|
-
columnDef: CdkColumnDef | null;
|
|
851
|
-
$customCell: _angular_core.InputSignal<string>;
|
|
852
|
-
$displayName: _angular_core.InputSignal<string | undefined>;
|
|
853
|
-
$preSort: _angular_core.InputSignal<SortDef | undefined>;
|
|
854
|
-
$templateRef: _angular_core.InputSignal<TemplateRef<any> | undefined>;
|
|
855
|
-
$customCellOrder: _angular_core.InputSignal<number | undefined>;
|
|
856
|
-
$customCellWidth: _angular_core.InputSignal<string | undefined>;
|
|
857
|
-
/**
|
|
858
|
-
* for type safety, this is a reference to the table builder instance.
|
|
859
|
-
*/
|
|
860
|
-
$customCellTableRef: _angular_core.InputSignal<TableBuilder<T> | undefined>;
|
|
861
|
-
/**
|
|
862
|
-
* true if column not mapped to a property in the data source. Default is false.
|
|
863
|
-
*/
|
|
864
|
-
$customCellNotMapped: _angular_core.InputSignalWithTransform<boolean, any>;
|
|
865
|
-
/**
|
|
866
|
-
* Styles to apply to the cell element
|
|
867
|
-
*/
|
|
868
|
-
$customCellCellStyles: _angular_core.InputSignal<StylerStyle<T> | undefined>;
|
|
869
|
-
$metaData: _angular_core.Signal<CustomCellMeta | undefined>;
|
|
870
|
-
$inited: _angular_core.WritableSignal<boolean>;
|
|
871
|
-
ngOnInit(): void;
|
|
872
|
-
static ngTemplateContextGuard<T>(dir: CustomCellDirective<T>, ctx: any): ctx is CustomCellContext<T>;
|
|
873
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomCellDirective<any>, never>;
|
|
874
|
-
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>;
|
|
875
|
-
}
|
|
876
|
-
|
|
877
|
-
declare class CustomHeaderDirective<T = any> implements OnInit {
|
|
878
|
-
private templateRef;
|
|
879
|
-
$customHeader: _angular_core.InputSignal<string>;
|
|
880
|
-
$inited: _angular_core.WritableSignal<boolean>;
|
|
881
|
-
template: () => TemplateRef<any>;
|
|
882
|
-
ngOnInit(): void;
|
|
883
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomHeaderDirective<any>, never>;
|
|
884
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<CustomHeaderDirective<any>, "[customHeader]", never, { "$customHeader": { "alias": "customHeader"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
885
|
-
}
|
|
886
|
-
|
|
887
|
-
type NoneGroupHeader = any;
|
|
888
|
-
interface BaseGroup {
|
|
889
|
-
key: string;
|
|
890
|
-
groupName: string;
|
|
891
|
-
groupHeaderDisplay: string;
|
|
892
|
-
uniqueName: string;
|
|
893
|
-
isGroupHeader: true;
|
|
894
|
-
padding: number;
|
|
895
|
-
length: number;
|
|
896
|
-
hasTheData: boolean;
|
|
897
|
-
level: number;
|
|
898
|
-
parent?: BaseGroup;
|
|
899
|
-
}
|
|
900
|
-
interface DataGroup<T extends NoneGroupHeader = any> extends BaseGroup {
|
|
901
|
-
children: T[];
|
|
902
|
-
hasTheData: true;
|
|
903
|
-
}
|
|
904
|
-
interface GroupGroup<T extends NoneGroupHeader = any> extends BaseGroup {
|
|
905
|
-
groups: (DataGroup<T> | GroupGroup<T>)[];
|
|
906
|
-
hasTheData: false;
|
|
907
|
-
}
|
|
908
|
-
type Group<T extends NoneGroupHeader = any> = GroupGroup<T> | DataGroup<T>;
|
|
909
|
-
interface GroupedData {
|
|
910
|
-
key: string;
|
|
911
|
-
expandedHeaders: string[] | 'all';
|
|
912
|
-
sort: SortDirection$1;
|
|
913
|
-
}
|
|
914
|
-
declare function isGroupHeader(data: any): data is Group;
|
|
915
|
-
declare function isDataGroup<T extends NoneGroupHeader = any>(group: Group<T>): group is DataGroup<T>;
|
|
916
|
-
|
|
917
|
-
interface CustomGroupRowContext<T> {
|
|
918
|
-
$implicit: Group<T>;
|
|
919
|
-
element: T;
|
|
920
|
-
expanded: boolean;
|
|
921
|
-
level: number;
|
|
922
|
-
key: string;
|
|
923
|
-
uniqueName: string;
|
|
924
|
-
groupHeaderDisplay: string;
|
|
925
|
-
length: number;
|
|
926
|
-
padding: number;
|
|
927
|
-
}
|
|
928
|
-
declare class CustomGroupRowDirective<T = any> implements OnInit {
|
|
929
|
-
private templateRef;
|
|
930
|
-
/**
|
|
931
|
-
* Optional grouping key(s). If provided, this custom row will only apply when data is grouped by this key or keys.
|
|
932
|
-
* If not provided (or null), this custom row will apply to all groupings.
|
|
933
|
-
* Can be a single Path<T> or an array of Path<T> values.
|
|
934
|
-
*/
|
|
935
|
-
$customGroupRow: _angular_core.InputSignalWithTransform<Path<T> | Path<T>[] | null, "" | Path<T> | Path<T>[] | null>;
|
|
936
|
-
/**
|
|
937
|
-
* For type safety, this is a reference to the table builder instance.
|
|
938
|
-
*/
|
|
939
|
-
$customGroupRowTableRef: _angular_core.InputSignal<TableBuilder<T> | undefined>;
|
|
940
|
-
/**
|
|
941
|
-
* Priority order for this custom group row. Higher numbers have higher priority.
|
|
942
|
-
* Useful when multiple custom group rows could apply to the same grouping.
|
|
943
|
-
*/
|
|
944
|
-
$priority: _angular_core.InputSignal<number>;
|
|
945
|
-
$inited: _angular_core.WritableSignal<boolean>;
|
|
946
|
-
/**
|
|
947
|
-
* Gets the grouping key(s) this directive applies to, or null for all groupings
|
|
948
|
-
*/
|
|
949
|
-
$groupingKey: _angular_core.Signal<Path<T> | Path<T>[] | null>;
|
|
950
|
-
/**
|
|
951
|
-
* Gets the template reference to use
|
|
952
|
-
*/
|
|
953
|
-
template: () => TemplateRef<any>;
|
|
954
|
-
ngOnInit(): void;
|
|
955
|
-
/**
|
|
956
|
-
* Type guard for template context
|
|
957
|
-
*/
|
|
958
|
-
static ngTemplateContextGuard<T>(dir: CustomGroupRowDirective<T>, ctx: any): ctx is CustomGroupRowContext<T>;
|
|
959
|
-
/**
|
|
960
|
-
* Checks if this directive applies to the given grouping key
|
|
961
|
-
*/
|
|
962
|
-
appliesTo(groupingKey: string): boolean;
|
|
963
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<CustomGroupRowDirective<any>, never>;
|
|
964
|
-
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>;
|
|
965
|
-
}
|
|
966
|
-
|
|
967
|
-
declare class MultiSortDirective extends MatSort {
|
|
968
|
-
#private;
|
|
969
|
-
private state;
|
|
970
|
-
private $sortChange;
|
|
971
|
-
constructor();
|
|
972
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MultiSortDirective, never>;
|
|
973
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MultiSortDirective, "[multiSort]", ["multiSort"], { "disabled": { "alias": "matSortDisabled"; "required": false; }; }, {}, never, never, true, never>;
|
|
974
|
-
}
|
|
975
|
-
declare function sortsAreSame(a: Sort[], b: Sort[]): boolean;
|
|
976
|
-
|
|
977
|
-
type TableBuilderSort = Sort & {
|
|
978
|
-
nulls?: 'first' | 'last';
|
|
979
|
-
sortBy?: (t: any) => any;
|
|
980
|
-
};
|
|
981
|
-
|
|
982
|
-
declare class TableStore extends ComponentStore<TableState> {
|
|
983
|
-
#private;
|
|
984
|
-
constructor();
|
|
985
|
-
$initializationState: Signal<InitializationState>;
|
|
986
|
-
$savableState: Signal<PersistedTableState>;
|
|
987
|
-
readonly showColumn: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
988
|
-
readonly hideColumn: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
989
|
-
readonly setHiddenColumns: (observableOrValue: {
|
|
990
|
-
key: string;
|
|
991
|
-
visible: boolean;
|
|
992
|
-
}[] | Observable<{
|
|
993
|
-
key: string;
|
|
994
|
-
visible: boolean;
|
|
995
|
-
}[]>) => rxjs.Subscription;
|
|
996
|
-
readonly setUserDefinedOrder: (observableOrValue: {
|
|
997
|
-
newOrder: number;
|
|
998
|
-
oldOrder: number;
|
|
999
|
-
} | Observable<{
|
|
1000
|
-
newOrder: number;
|
|
1001
|
-
oldOrder: number;
|
|
1002
|
-
}>) => rxjs.Subscription;
|
|
1003
|
-
$userDefinedOrder: Signal<Dictionary<number>>;
|
|
1004
|
-
metaData$: Observable<Dictionary<MetaData>>;
|
|
1005
|
-
$metaData: Signal<Dictionary<MetaData>>;
|
|
1006
|
-
$metaDataArray: Signal<MetaData[]>;
|
|
1007
|
-
$orderedCodeVisibleMetaDatas: Signal<MetaData[]>;
|
|
1008
|
-
$getMetaData: (key: string) => Signal<MetaData>;
|
|
1009
|
-
$hiddenKeys: Signal<string[]>;
|
|
1010
|
-
$orderedVisibleColumns: Signal<string[]>;
|
|
1011
|
-
readonly setUserDefinedWidth: (observableOrValue: {
|
|
1012
|
-
key: string;
|
|
1013
|
-
widthInPixel: number;
|
|
1014
|
-
}[] | Observable<{
|
|
1015
|
-
key: string;
|
|
1016
|
-
widthInPixel: number;
|
|
1017
|
-
}[]>) => rxjs.Subscription;
|
|
1018
|
-
readonly setTableWidth: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1019
|
-
$getUserDefinedWidths: Signal<Dictionary<number>>;
|
|
1020
|
-
$tableSettingsMinWidth: Signal<number | undefined>;
|
|
1021
|
-
$getUserDefinedWidth: (key: string) => Signal<number>;
|
|
1022
|
-
$getUserDefinedTableWidth: Signal<number | undefined>;
|
|
1023
|
-
getUserDefinedTableWidth$: Observable<number | undefined>;
|
|
1024
|
-
readonly addFilter: (observableOrValue: FilterInfo<any, any> | CustomFilter<any> | Observable<FilterInfo<any, any> | CustomFilter<any>>) => rxjs.Subscription;
|
|
1025
|
-
readonly addFilters: (observableOrValue: (FilterInfo<any, any> | CustomFilter<any>)[] | Observable<(FilterInfo<any, any> | CustomFilter<any>)[]>) => rxjs.Subscription;
|
|
1026
|
-
readonly removeFilter: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1027
|
-
readonly removeFilters: (observableOrValue: string[] | Observable<string[]>) => rxjs.Subscription;
|
|
1028
|
-
readonly clearFilters: () => void;
|
|
1029
|
-
private addFiltersToState;
|
|
1030
|
-
$filters: Signal<Dictionary<FilterInfo<any, any> | CustomFilter<any>>>;
|
|
1031
|
-
$filtersArray: Signal<(FilterInfo<any, any> | CustomFilter<any>)[]>;
|
|
1032
|
-
filters$: Observable<Dictionary<FilterInfo<any, any> | CustomFilter<any>>>;
|
|
1033
|
-
$getFilter: (filterId: string) => Signal<FilterInfo | CustomFilter | undefined>;
|
|
1034
|
-
readonly setSort: (observableOrValue: {
|
|
1035
|
-
key: string;
|
|
1036
|
-
direction?: SortDirection$1;
|
|
1037
|
-
} | Observable<{
|
|
1038
|
-
key: string;
|
|
1039
|
-
direction?: SortDirection$1;
|
|
1040
|
-
}>) => rxjs.Subscription;
|
|
1041
|
-
readonly setAllSort: (observableOrValue: Sort[] | Observable<Sort[]>) => rxjs.Subscription;
|
|
1042
|
-
$preSort: Signal<TableBuilderSort[]>;
|
|
1043
|
-
_$selectSorted: Signal<Sort[]>;
|
|
1044
|
-
$selectSorted: Signal<TableBuilderSort[]>;
|
|
1045
|
-
selectSorted$: Observable<Sort[]>;
|
|
1046
|
-
$getSorts: Signal<TableBuilderSort[]>;
|
|
1047
|
-
sort$: Observable<TableBuilderSort[]>;
|
|
1048
|
-
readonly addGroupByKey: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1049
|
-
readonly removeGroupByKey: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1050
|
-
readonly updateExpandedGroups: (observableOrValue: {
|
|
1051
|
-
key: string;
|
|
1052
|
-
groupUniqueName: string;
|
|
1053
|
-
isExpanded: boolean;
|
|
1054
|
-
} | Observable<{
|
|
1055
|
-
key: string;
|
|
1056
|
-
groupUniqueName: string;
|
|
1057
|
-
isExpanded: boolean;
|
|
1058
|
-
}>) => rxjs.Subscription;
|
|
1059
|
-
readonly expandOfGroup: (observableOrValue: {
|
|
1060
|
-
groupKey: string;
|
|
1061
|
-
uniqueNameOfHeadersToExpand: string[];
|
|
1062
|
-
}[] | Observable<{
|
|
1063
|
-
groupKey: string;
|
|
1064
|
-
uniqueNameOfHeadersToExpand: string[];
|
|
1065
|
-
}[]>) => rxjs.Subscription;
|
|
1066
|
-
readonly collapseAll: () => void;
|
|
1067
|
-
readonly collapseAllOfKey: (observableOrValue: {
|
|
1068
|
-
keys: string[];
|
|
1069
|
-
} | Observable<{
|
|
1070
|
-
keys: string[];
|
|
1071
|
-
}>) => rxjs.Subscription;
|
|
1072
|
-
updateGroupBySort: (observableOrValue: {
|
|
1073
|
-
key: string;
|
|
1074
|
-
sort: SortDirection$1;
|
|
1075
|
-
} | Observable<{
|
|
1076
|
-
key: string;
|
|
1077
|
-
sort: SortDirection$1;
|
|
1078
|
-
}>) => rxjs.Subscription;
|
|
1079
|
-
getGroupBySortDirection: (key: string) => Signal<SortDirection$1>;
|
|
1080
|
-
cycleGroupBySortDirection: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1081
|
-
$groupByData: Signal<GroupedData[]>;
|
|
1082
|
-
groupByKeys$: Observable<string[]>;
|
|
1083
|
-
$userDefinedNoGroups: Signal<boolean | undefined>;
|
|
1084
|
-
expandedGroups$: Observable<GroupedData[]>;
|
|
1085
|
-
$expandGroups: Signal<GroupedData[]>;
|
|
1086
|
-
$getIsExpanded: (columnKey: string, groupUniqueName: string) => Signal<boolean>;
|
|
1087
|
-
$expandedPropForKeyIsAll: (columnKey: string) => Signal<boolean>;
|
|
1088
|
-
$sortedGroupsUpdates: Signal<GroupedData[]>;
|
|
1089
|
-
readonly setCurrentPage: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1090
|
-
readonly setPageSize: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1091
|
-
readonly setUserDefinedPageSize: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1092
|
-
readonly setUserDefinedShowAll: (observableOrValue: boolean | Observable<boolean>) => rxjs.Subscription;
|
|
1093
|
-
$isVirtual: Signal<boolean | undefined>;
|
|
1094
|
-
$showAll: Signal<boolean>;
|
|
1095
|
-
$viewType: Signal<ViewType>;
|
|
1096
|
-
$userDefinedPageSize: Signal<number | undefined>;
|
|
1097
|
-
$currentPage: Signal<number>;
|
|
1098
|
-
$pageSize: Signal<number>;
|
|
1099
|
-
addFooter: (observableOrValue: string | Observable<string>) => rxjs.Subscription;
|
|
1100
|
-
$tableSettings: Signal<NonFunctionProperties<PersistedTableSettings & NotPersistedTableSettings>>;
|
|
1101
|
-
$notPersistedTableSettings: Signal<NotPersistedTableSettings>;
|
|
1102
|
-
tableSettings$: Observable<NonFunctionProperties<PersistedTableSettings & NotPersistedTableSettings>>;
|
|
1103
|
-
$props: Signal<TableProps>;
|
|
1104
|
-
readonly setUserDefinedRowHeight: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1105
|
-
readonly setUserDefinedHeaderHeight: (observableOrValue: number | Observable<number>) => rxjs.Subscription;
|
|
1106
|
-
$userDefinedRowHeight: Signal<number | undefined>;
|
|
1107
|
-
$userDefinedHeaderHeight: Signal<number | undefined>;
|
|
1108
|
-
$footerCollapsed: Signal<boolean>;
|
|
1109
|
-
$headerCollapsed: Signal<boolean>;
|
|
1110
|
-
$getLinkInfo: (md: MetaData) => Signal<LinkInfo>;
|
|
1111
|
-
readonly resetState: () => void;
|
|
1112
|
-
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;
|
|
1113
|
-
readonly updateStateFromPersistedState: (observableOrValue: PersistedTableState | Observable<PersistedTableState>) => rxjs.Subscription;
|
|
1114
|
-
private updateStateFunc;
|
|
1115
|
-
readonly setTableSettings: (observableOrValue: TableBuilderSettings<any> | Observable<TableBuilderSettings<any>>) => rxjs.Subscription;
|
|
1116
|
-
readonly setMetaData: (observableOrValue: MetaData[] | Observable<MetaData[]>) => rxjs.Subscription;
|
|
1117
|
-
readonly setProps: (observableOrValue: TableProps | Observable<TableProps>) => rxjs.Subscription;
|
|
1118
|
-
readonly setInitializationState: (observableOrValue: InitializationState | Observable<InitializationState>) => rxjs.Subscription;
|
|
1119
|
-
readonly toggleCollapseHeader: () => void;
|
|
1120
|
-
readonly toggleCollapseFooter: (() => void) | ((observableOrValue: void | {
|
|
1121
|
-
collapseFooter: boolean;
|
|
1122
|
-
} | Observable<void | {
|
|
1123
|
-
collapseFooter: boolean;
|
|
1124
|
-
} | undefined> | undefined) => rxjs.Subscription);
|
|
1125
|
-
readonly setLinkMaps: (() => void) | ((observableOrValue: any) => rxjs.Subscription);
|
|
1126
|
-
updateRowProps: (observableOrValue: Pick<NotPersistedTableSettings, "rowClasses" | "rowStyles" | "rowClick"> | Observable<Pick<NotPersistedTableSettings, "rowClasses" | "rowStyles" | "rowClick">>) => rxjs.Subscription;
|
|
1127
|
-
on: <V>(srcObservable: Observable<V>, func: (obj: V) => void) => this;
|
|
1128
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableStore, never>;
|
|
1129
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableStore>;
|
|
1130
|
-
}
|
|
1131
|
-
type ViewType = 'virtual paginator' | 'paginator' | 'virtual all' | 'all';
|
|
1132
|
-
|
|
1133
|
-
declare class ResizeColumnDirective implements OnInit {
|
|
1134
|
-
private renderer;
|
|
1135
|
-
private el;
|
|
1136
|
-
store: TableStore;
|
|
1137
|
-
resizable: boolean | string;
|
|
1138
|
-
key: string;
|
|
1139
|
-
ngOnInit(): void;
|
|
1140
|
-
createResizerSpanInColumnHead(columnHead: HTMLElement): any;
|
|
1141
|
-
getTableAndColumnHeadHtmlElements(): {
|
|
1142
|
-
table: HTMLElement;
|
|
1143
|
-
columnHead: HTMLElement;
|
|
1144
|
-
};
|
|
1145
|
-
mouseDownThroughMouseUpEventMapper(resizer: HTMLElement, columnHead: HTMLElement, table: HTMLElement): rxjs.Observable<{
|
|
1146
|
-
mouseDownData: {
|
|
1147
|
-
startPageX: number;
|
|
1148
|
-
startColumnWidth: number;
|
|
1149
|
-
startTableWidth: number;
|
|
1150
|
-
};
|
|
1151
|
-
mouseMove: MouseEvent;
|
|
1152
|
-
}>;
|
|
1153
|
-
resizerMouseDownEventMapper(resizer: HTMLElement, columnHead: HTMLElement, table: HTMLElement): rxjs.Observable<{
|
|
1154
|
-
startPageX: number;
|
|
1155
|
-
startColumnWidth: number;
|
|
1156
|
-
startTableWidth: number;
|
|
1157
|
-
}>;
|
|
1158
|
-
calculateNewWidths(mouseDownData: MouseDownData, mouseMove: MouseEvent): {
|
|
1159
|
-
newTableWidth: number;
|
|
1160
|
-
newColumnWidth: number;
|
|
1161
|
-
};
|
|
1162
|
-
getElementWidth: (elem: HTMLElement) => number;
|
|
1163
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ResizeColumnDirective, never>;
|
|
1164
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ResizeColumnDirective, "[resizeColumn]", never, { "resizable": { "alias": "resizeColumn"; "required": false; }; "key": { "alias": "key"; "required": false; }; }, {}, never, never, true, never>;
|
|
1165
|
-
static ngAcceptInputType_resizable: unknown;
|
|
1166
|
-
}
|
|
1167
|
-
interface MouseDownData {
|
|
1168
|
-
startPageX: number;
|
|
1169
|
-
startColumnWidth: number;
|
|
1170
|
-
startTableWidth: number;
|
|
1171
|
-
}
|
|
1172
|
-
|
|
1173
|
-
declare abstract class TableCustomFilterDirective {
|
|
1174
|
-
abstract filter$: Observable<CustomFilter>;
|
|
1175
|
-
abstract $filter: Signal<CustomFilter | undefined>;
|
|
1176
|
-
filterId: string;
|
|
1177
|
-
savable: boolean;
|
|
1178
|
-
abstract active: boolean;
|
|
1179
|
-
abstract reset(): void;
|
|
1180
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableCustomFilterDirective, never>;
|
|
1181
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableCustomFilterDirective, "tb-abstract", never, {}, {}, never, never, true, never>;
|
|
1182
|
-
}
|
|
1183
|
-
declare class TableFilterDirective implements OnChanges, OnInit {
|
|
1184
|
-
protected model: NgControl | null;
|
|
1185
|
-
private wrapper;
|
|
1186
|
-
constructor();
|
|
1187
|
-
reset(): void;
|
|
1188
|
-
filter$: ReplaySubject<FilterInfo<any, any>>;
|
|
1189
|
-
$filter: Signal<FilterInfo<any, any> | undefined>;
|
|
1190
|
-
filterType: FilterType;
|
|
1191
|
-
key: string;
|
|
1192
|
-
fieldType: FieldType;
|
|
1193
|
-
filterId: string;
|
|
1194
|
-
active: boolean;
|
|
1195
|
-
filterValue: any;
|
|
1196
|
-
setFilterValue(value: any): void;
|
|
1197
|
-
savable: boolean;
|
|
1198
|
-
ready: boolean;
|
|
1199
|
-
_userActive: boolean;
|
|
1200
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
1201
|
-
ngOnInit(): void;
|
|
1202
|
-
protected setFilter(filter: FilterInfo): void;
|
|
1203
|
-
update(): void;
|
|
1204
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableFilterDirective, never>;
|
|
1205
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableFilterDirective, "[tbFilter]", never, { "filterType": { "alias": "filterType"; "required": false; }; "key": { "alias": "key"; "required": false; }; "fieldType": { "alias": "fieldType"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; "active": { "alias": "active"; "required": false; }; "filterValue": { "alias": "filterValue"; "required": false; }; }, {}, never, never, true, never>;
|
|
1206
|
-
}
|
|
1207
|
-
declare class TableFilterStringContainsDirective extends TableFilterDirective implements OnChanges {
|
|
1208
|
-
constructor();
|
|
1209
|
-
reset(): void;
|
|
1210
|
-
setFilter(filter: FilterInfo): void;
|
|
1211
|
-
ngOnChanges(changes: SimpleChanges): void;
|
|
1212
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableFilterStringContainsDirective, never>;
|
|
1213
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableFilterStringContainsDirective, "[tbFilterStringContains]", never, { "key": { "alias": "tbFilterStringContains"; "required": false; }; "filterValue": { "alias": "filterValue"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, {}, never, never, true, never>;
|
|
1214
|
-
}
|
|
1215
|
-
declare abstract class TableCustomFilterDirectiveBase<T = any> extends TableCustomFilterDirective implements OnInit {
|
|
1216
|
-
filter$: ReplaySubject<CustomFilter<any>>;
|
|
1217
|
-
$filter: Signal<CustomFilter<any> | undefined>;
|
|
1218
|
-
filter: CustomFilter;
|
|
1219
|
-
_predicate: Predicate<T>;
|
|
1220
|
-
set predicate(val: Predicate<T>);
|
|
1221
|
-
_active: boolean;
|
|
1222
|
-
ready: boolean;
|
|
1223
|
-
update(val: Partial<CustomFilter>): void;
|
|
1224
|
-
set active(val: boolean);
|
|
1225
|
-
get active(): boolean;
|
|
1226
|
-
ngOnInit(): void;
|
|
1227
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableCustomFilterDirectiveBase<any>, never>;
|
|
1228
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableCustomFilterDirectiveBase<any>, "[tbCustomFilter]", never, { "predicate": { "alias": "tbCustomFilter"; "required": false; }; "active": { "alias": "active"; "required": false; }; }, {}, never, never, true, never>;
|
|
1229
|
-
}
|
|
1230
|
-
declare abstract class TbSelectedFilterDirective extends TableCustomFilterDirectiveBase implements OnDestroy, OnInit {
|
|
1231
|
-
private change;
|
|
1232
|
-
private isActive;
|
|
1233
|
-
protected wrapper: TableWrapperDirective | null;
|
|
1234
|
-
protected constructor(change: Observable<any>, isActive: () => boolean);
|
|
1235
|
-
reset(): void;
|
|
1236
|
-
destroySubject$: ReplaySubject<void>;
|
|
1237
|
-
ngOnDestroy(): void;
|
|
1238
|
-
ngOnInit(): void;
|
|
1239
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TbSelectedFilterDirective, never>;
|
|
1240
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TbSelectedFilterDirective, never, never, {}, {}, never, never, true, never>;
|
|
1241
|
-
}
|
|
1242
|
-
declare class MatCheckboxTbFilterDirective extends TbSelectedFilterDirective {
|
|
1243
|
-
private matCheckbox;
|
|
1244
|
-
set active(val: boolean);
|
|
1245
|
-
constructor();
|
|
1246
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatCheckboxTbFilterDirective, never>;
|
|
1247
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatCheckboxTbFilterDirective, "mat-checkbox[tbCustomFilter]", never, { "predicate": { "alias": "tbCustomFilter"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; }, {}, never, never, true, never>;
|
|
1248
|
-
}
|
|
1249
|
-
declare class MatSlideToggleTbFilterDirective extends TbSelectedFilterDirective implements OnInit {
|
|
1250
|
-
private matSlideToggle;
|
|
1251
|
-
set active(val: boolean);
|
|
1252
|
-
constructor();
|
|
1253
|
-
ngOnInit(): void;
|
|
1254
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatSlideToggleTbFilterDirective, never>;
|
|
1255
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatSlideToggleTbFilterDirective, "mat-slide-toggle[tbCustomFilter]", never, { "predicate": { "alias": "tbCustomFilter"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; }, {}, never, never, true, never>;
|
|
1256
|
-
}
|
|
1257
|
-
declare class MatRadioButtonTbFilterDirective extends TbSelectedFilterDirective implements OnInit {
|
|
1258
|
-
private matRadioButton;
|
|
1259
|
-
set active(val: boolean);
|
|
1260
|
-
constructor();
|
|
1261
|
-
ngOnInit(): void;
|
|
1262
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatRadioButtonTbFilterDirective, never>;
|
|
1263
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatRadioButtonTbFilterDirective, "mat-radio-button[tbCustomFilter]", never, { "predicate": { "alias": "tbCustomFilter"; "required": false; }; }, {}, never, never, true, never>;
|
|
1264
|
-
}
|
|
1265
|
-
declare class MatOptionTbFilterDirective extends TbSelectedFilterDirective implements OnInit {
|
|
1266
|
-
private matOption;
|
|
1267
|
-
set active(val: boolean);
|
|
1268
|
-
constructor();
|
|
1269
|
-
ngOnInit(): void;
|
|
1270
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatOptionTbFilterDirective, never>;
|
|
1271
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatOptionTbFilterDirective, "mat-option[tbCustomFilter]", never, { "predicate": { "alias": "tbCustomFilter"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; }, {}, never, never, true, never>;
|
|
1272
|
-
}
|
|
1273
|
-
declare class MatButtonToggleFilterDirective extends TbSelectedFilterDirective implements OnInit {
|
|
1274
|
-
private matButtonToggle;
|
|
1275
|
-
set active(val: boolean);
|
|
1276
|
-
constructor();
|
|
1277
|
-
ngOnInit(): void;
|
|
1278
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatButtonToggleFilterDirective, never>;
|
|
1279
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatButtonToggleFilterDirective, "mat-button-toggle[tbCustomFilter]", never, { "predicate": { "alias": "tbCustomFilter"; "required": false; }; "filterId": { "alias": "filterId"; "required": false; }; }, {}, never, never, true, never>;
|
|
1280
|
-
}
|
|
1281
|
-
|
|
1282
|
-
declare class TableWrapperDirective {
|
|
1283
|
-
$registrations: _angular_core.WritableSignal<(TableCustomFilterDirective | TableFilterDirective)[]>;
|
|
1284
|
-
register(filter: TableCustomFilterDirective | TableFilterDirective): void;
|
|
1285
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableWrapperDirective, never>;
|
|
1286
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TableWrapperDirective, "[tbWrapper]", never, {}, {}, never, never, true, never>;
|
|
1287
|
-
}
|
|
1288
|
-
|
|
1289
|
-
interface TableProps {
|
|
1290
|
-
indexColumn: boolean;
|
|
1291
|
-
selectionColumn: boolean;
|
|
1292
|
-
isSticky: boolean;
|
|
1293
|
-
stickyFooter: boolean;
|
|
1294
|
-
groupHeaderTemplate?: TemplateRef<any>;
|
|
1295
|
-
groupHeaderHeight?: number;
|
|
1296
|
-
customGroupRows?: CustomGroupRowDirective<any>[];
|
|
1297
|
-
}
|
|
1298
|
-
|
|
1299
|
-
interface PersistedTableState {
|
|
1300
|
-
hiddenKeys?: string[];
|
|
1301
|
-
filters: Dictionary<FilterInfo | CustomFilter>;
|
|
1302
|
-
sorted: Sort[];
|
|
1303
|
-
userDefined: {
|
|
1304
|
-
order: Dictionary<number>;
|
|
1305
|
-
widths: Dictionary<number>;
|
|
1306
|
-
table: {
|
|
1307
|
-
width?: number;
|
|
1308
|
-
};
|
|
1309
|
-
pageSize?: number;
|
|
1310
|
-
showAll?: boolean;
|
|
1311
|
-
rowHeight?: number;
|
|
1312
|
-
headerHeight?: number;
|
|
1313
|
-
noGroups?: boolean;
|
|
1314
|
-
};
|
|
1315
|
-
persistedTableSettings: PersistedTableSettings;
|
|
1316
|
-
groupBy: GroupedData[];
|
|
1317
|
-
}
|
|
1318
|
-
interface TableState extends Required<PersistedTableState> {
|
|
1319
|
-
initializationState: InitializationState;
|
|
1320
|
-
metaData: Dictionary<MetaData>;
|
|
1321
|
-
notPersistedTableSettings: NotPersistedTableSettings;
|
|
1322
|
-
pageSize: number;
|
|
1323
|
-
currentPage: number;
|
|
1324
|
-
linkMaps: Dictionary<LinkInfo>;
|
|
1325
|
-
allFilters: Dictionary<any[]>;
|
|
1326
|
-
props: TableProps;
|
|
1327
|
-
showAll: boolean;
|
|
1328
|
-
}
|
|
1329
|
-
interface DataState {
|
|
1330
|
-
virtualScrollOffset: number;
|
|
1331
|
-
virtualEnds: {
|
|
1332
|
-
start: number;
|
|
1333
|
-
end: number;
|
|
1334
|
-
};
|
|
1335
|
-
sortedFilteredDataLength: number;
|
|
1336
|
-
sortedFilteredGroupedDataLength: number;
|
|
1337
|
-
}
|
|
1338
|
-
declare enum InitializationState {
|
|
1339
|
-
Created = 0,
|
|
1340
|
-
MetaDataLoaded = 1,
|
|
1341
|
-
TableSettingsLoaded = 2,
|
|
1342
|
-
Ready = 3
|
|
1343
|
-
}
|
|
1344
|
-
|
|
1345
|
-
declare class TableBuilderStateStore extends ComponentStore<GlobalStorageState> {
|
|
1346
|
-
constructor();
|
|
1347
|
-
$selectLocalTableProfile: (profileKey: string) => Signal<Profile | undefined>;
|
|
1348
|
-
$selectLocalTableStateForView: (tableId: string) => Signal<PersistedTableState | null>;
|
|
1349
|
-
$selectLocalProfileCurrentKey: (key: string) => Signal<string | undefined>;
|
|
1350
|
-
$selectLocalProfileDefaultKey: (key: string) => Signal<string | undefined>;
|
|
1351
|
-
$selectLocalProfileKeys: (tableId: string) => Signal<string[]>;
|
|
1352
|
-
saveTableSettingsToLocalAndStorage: (tableId: string, stateName: string, tableState: PersistedTableState, asDefault?: boolean) => void;
|
|
1353
|
-
saveTableStateToLocal: (observableOrValue: {
|
|
1354
|
-
tableId: string;
|
|
1355
|
-
tableState: PersistedTableState;
|
|
1356
|
-
stateName?: string;
|
|
1357
|
-
asDefault?: boolean;
|
|
1358
|
-
} | rxjs.Observable<{
|
|
1359
|
-
tableId: string;
|
|
1360
|
-
tableState: PersistedTableState;
|
|
1361
|
-
stateName?: string;
|
|
1362
|
-
asDefault?: boolean;
|
|
1363
|
-
}>) => rxjs.Subscription;
|
|
1364
|
-
saveTableStateToStorage: (tableId: string, stateName: string, tableState: PersistedTableState, asDefault?: boolean) => void;
|
|
1365
|
-
addNewStateToLocalAndStorage: (tableId: string, newStateName: string, tableState: PersistedTableState, asDefault?: boolean) => void;
|
|
1366
|
-
setLocalCurrentState: (observableOrValue: {
|
|
1367
|
-
tableId: string;
|
|
1368
|
-
currentStateKey: string;
|
|
1369
|
-
} | rxjs.Observable<{
|
|
1370
|
-
tableId: string;
|
|
1371
|
-
currentStateKey: string;
|
|
1372
|
-
}>) => rxjs.Subscription;
|
|
1373
|
-
setDefaultInLocalAndStorage: (tableId: string, newDefault: string) => void;
|
|
1374
|
-
setDefaultInLocal: (observableOrValue: {
|
|
1375
|
-
key: string;
|
|
1376
|
-
default: string;
|
|
1377
|
-
} | rxjs.Observable<{
|
|
1378
|
-
key: string;
|
|
1379
|
-
default: string;
|
|
1380
|
-
}>) => rxjs.Subscription;
|
|
1381
|
-
unsetDefaultFromLocalAndStorage: (tableId: string) => void;
|
|
1382
|
-
unsetDefaultFromLocal: (tableId: string) => void;
|
|
1383
|
-
unsetDefaultFromStorage: (tableId: string) => void;
|
|
1384
|
-
setDefaultInStorage: (tableId: string, stateName: string) => void;
|
|
1385
|
-
deleteLocalProfilesState: (observableOrValue: {
|
|
1386
|
-
key: string;
|
|
1387
|
-
stateKey: string;
|
|
1388
|
-
} | rxjs.Observable<{
|
|
1389
|
-
key: string;
|
|
1390
|
-
stateKey: string;
|
|
1391
|
-
}>) => rxjs.Subscription;
|
|
1392
|
-
deleteProfileFromLocalAndStorage: (key: string, stateKey: string) => void;
|
|
1393
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableBuilderStateStore, never>;
|
|
1394
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<TableBuilderStateStore>;
|
|
1395
|
-
}
|
|
1396
|
-
interface PersistedProfile {
|
|
1397
|
-
states: Dictionary<PersistedTableState>;
|
|
1398
|
-
default?: string;
|
|
1399
|
-
}
|
|
1400
|
-
interface Profile extends PersistedProfile {
|
|
1401
|
-
current?: string;
|
|
1402
|
-
localSavedState?: PersistedTableState;
|
|
1403
|
-
}
|
|
1404
|
-
interface GlobalStorageState {
|
|
1405
|
-
localProfiles: Dictionary<Profile>;
|
|
1406
|
-
}
|
|
1407
|
-
|
|
1408
|
-
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;
|
|
1409
|
-
declare function updateGroupByState<T extends NoneGroupHeader = any>(groupedData: any[], { data, groups, expanded, groupSorts }: {
|
|
1410
|
-
data: Timestamp<T[]>;
|
|
1411
|
-
groups: Timestamp<GroupedData[]>;
|
|
1412
|
-
expanded: Timestamp<GroupedData[]>;
|
|
1413
|
-
groupSorts: Timestamp<GroupedData[]>;
|
|
1414
|
-
}, firstRun: boolean, metaData: Dictionary$1<MetaData<T>>): GroupByState;
|
|
1415
|
-
declare function mapGroupHeader(obj: DataGroup | GroupGroup, expandedHeaders: string[] | true, expandAllGroups?: string[]): any[];
|
|
1416
|
-
interface GroupByState {
|
|
1417
|
-
displayData: any[];
|
|
1418
|
-
groupedData: Group[];
|
|
1419
|
-
}
|
|
1420
|
-
declare const initialGroupByState: {
|
|
1421
|
-
displayData: never[];
|
|
1422
|
-
groupedData: never[];
|
|
1423
|
-
};
|
|
1424
|
-
declare const getAllGroupHeaderNames: (data: any[]) => {
|
|
1425
|
-
groupKey: string;
|
|
1426
|
-
headers: string[];
|
|
1427
|
-
}[];
|
|
1428
|
-
declare const getAllGroupHeaderNamesByKeys: (data: any[], keys: string[]) => {
|
|
1429
|
-
groupKey: string;
|
|
1430
|
-
headers: string[];
|
|
1431
|
-
}[];
|
|
1432
|
-
|
|
1433
|
-
declare class PaginatorComponent {
|
|
1434
|
-
#private;
|
|
1435
|
-
private state;
|
|
1436
|
-
private data;
|
|
1437
|
-
$paginator: _angular_core.Signal<MatPaginator | undefined>;
|
|
1438
|
-
$dataLength: _angular_core.Signal<number>;
|
|
1439
|
-
$viewableDataLength: _angular_core.Signal<number>;
|
|
1440
|
-
pageEvent$: rxjs.Observable<PageEvent>;
|
|
1441
|
-
$pageEvent: _angular_core.Signal<PageEvent | undefined>;
|
|
1442
|
-
$pageIndexChangeEvent: _angular_core.Signal<number | undefined>;
|
|
1443
|
-
$pageSizeChangeEvent: _angular_core.Signal<number | undefined>;
|
|
1444
|
-
$currentPageData: _angular_core.Signal<{
|
|
1445
|
-
total: number;
|
|
1446
|
-
currentStart: number;
|
|
1447
|
-
currentEnd: number;
|
|
1448
|
-
} | undefined>;
|
|
1449
|
-
onDataLengthEffect: _angular_core.EffectRef;
|
|
1450
|
-
$collapseFooter: _angular_core.Signal<boolean>;
|
|
1451
|
-
$showAllOption: _angular_core.Signal<boolean | undefined>;
|
|
1452
|
-
$showAll: _angular_core.Signal<boolean>;
|
|
1453
|
-
showAll(): void;
|
|
1454
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PaginatorComponent, never>;
|
|
1455
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<PaginatorComponent, "tb-paginator", never, {}, {}, never, never, true, never>;
|
|
1456
|
-
}
|
|
1457
|
-
|
|
1458
|
-
declare class DataStore extends ComponentStore<DataState> {
|
|
1459
|
-
constructor();
|
|
1460
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DataStore, never>;
|
|
1461
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DataStore>;
|
|
1462
|
-
}
|
|
1463
|
-
|
|
1464
|
-
declare class TableBuilderDataSource<T> extends MatTableDataSource<T> {
|
|
1465
|
-
#private;
|
|
1466
|
-
subscription?: Subscription;
|
|
1467
|
-
$dataSize: Signal<{
|
|
1468
|
-
start: number;
|
|
1469
|
-
end: number;
|
|
1470
|
-
}>;
|
|
1471
|
-
_: _angular_core.EffectRef;
|
|
1472
|
-
setData(data: T[]): void;
|
|
1473
|
-
constructor(state: TableStore, data: DataStore);
|
|
1474
|
-
connect(): rxjs.BehaviorSubject<T[]>;
|
|
1475
|
-
disconnect(): void;
|
|
1476
|
-
}
|
|
1477
|
-
|
|
1478
|
-
declare class ColumnBuilderComponent implements AfterViewInit {
|
|
1479
|
-
FieldType: typeof FieldType;
|
|
1480
|
-
private config;
|
|
1481
|
-
private table;
|
|
1482
|
-
private state;
|
|
1483
|
-
private templateService;
|
|
1484
|
-
private tableConfig;
|
|
1485
|
-
protected injector: Injector;
|
|
1486
|
-
$columnDef: Signal<MatColumnDef | undefined>;
|
|
1487
|
-
$bodyTemplate: Signal<TemplateRef<any> | undefined>;
|
|
1488
|
-
protected $metaData: _angular_core.WritableSignal<MetaData | undefined>;
|
|
1489
|
-
$additional: Signal<number | LinkInfo | undefined>;
|
|
1490
|
-
setMetaData(md: MetaData): void;
|
|
1491
|
-
$customCell: _angular_core.WritableSignal<CustomCellDirective<any> | undefined>;
|
|
1492
|
-
$customHeader: _angular_core.WritableSignal<CustomHeaderDirective<any> | undefined>;
|
|
1493
|
-
$data: Signal<any[]>;
|
|
1494
|
-
$transform: Signal<((value: any, ...args: any[]) => any) | undefined>;
|
|
1495
|
-
$innerTemplate: Signal<TemplateRef<any> | undefined>;
|
|
1496
|
-
$showFilters: Signal<boolean | undefined>;
|
|
1497
|
-
$outerTemplate: Signal<TemplateRef<any> | undefined>;
|
|
1498
|
-
$classes: Signal<Dictionary$1<Predicate<any> | true> | undefined>;
|
|
1499
|
-
$styles: Signal<{
|
|
1500
|
-
header: Dictionary$1<string>;
|
|
1501
|
-
body: _one_paragon_angular_utilities.StylerStyle;
|
|
1502
|
-
innerBody: _one_paragon_angular_utilities.StylerStyle;
|
|
1503
|
-
footer: Dictionary$1<string>;
|
|
1504
|
-
} | undefined>;
|
|
1505
|
-
private viewInited;
|
|
1506
|
-
ngAfterViewInit(): void;
|
|
1507
|
-
private onViewInit;
|
|
1508
|
-
whenViewInited: (callback: () => void) => void;
|
|
1509
|
-
cellClicked(element: any, key: string, event: MouseEvent): void;
|
|
1510
|
-
getTooltip: (element: any) => string | undefined;
|
|
1511
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColumnBuilderComponent, never>;
|
|
1512
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColumnBuilderComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1513
|
-
}
|
|
1514
|
-
|
|
1515
|
-
interface ColumnInfo {
|
|
1516
|
-
metaData: MetaData;
|
|
1517
|
-
customCell?: CustomCellDirective;
|
|
1518
|
-
customHeader?: CustomHeaderDirective;
|
|
1519
|
-
}
|
|
1520
|
-
|
|
1521
|
-
declare class GenericTableComponent {
|
|
1522
|
-
#private;
|
|
1523
|
-
protected state: TableStore;
|
|
1524
|
-
protected dataStore: DataStore;
|
|
1525
|
-
private viewContainer;
|
|
1526
|
-
private config;
|
|
1527
|
-
private _injector;
|
|
1528
|
-
private tableContainer;
|
|
1529
|
-
smallFooter: number;
|
|
1530
|
-
$headerRow: _angular_core.Signal<MatHeaderRowDef | undefined>;
|
|
1531
|
-
$footerRow: _angular_core.Signal<MatFooterRowDef | undefined>;
|
|
1532
|
-
$table: _angular_core.Signal<MatTable<any> | undefined>;
|
|
1533
|
-
$dropList: _angular_core.Signal<CdkDropList<any> | undefined>;
|
|
1534
|
-
selection$: _angular_core.OutputEmitterRef<SelectionChange<any>>;
|
|
1535
|
-
$displayData: _angular_core.InputSignal<any[]>;
|
|
1536
|
-
$displayDataLength: _angular_core.Signal<number>;
|
|
1537
|
-
$data: _angular_core.InputSignal<any[]>;
|
|
1538
|
-
$rows: _angular_core.InputSignal<MatRowDef<any>[]>;
|
|
1539
|
-
$columnInfos: _angular_core.InputSignal<ColumnInfo[]>;
|
|
1540
|
-
$dataSource: _angular_core.InputSignal<MatTableDataSource<any, _angular_material_paginator.MatPaginator>>;
|
|
1541
|
-
$keys: _angular_core.Signal<string[]>;
|
|
1542
|
-
keys$: rxjs.Observable<string[]>;
|
|
1543
|
-
$trackBy: _angular_core.InputSignal<string | ((item: any) => any) | undefined>;
|
|
1544
|
-
$trackByFunction: _angular_core.Signal<(index: number, item: any) => any>;
|
|
1545
|
-
$hasFooterMeta: _angular_core.Signal<boolean>;
|
|
1546
|
-
$hasCustomFooter: _angular_core.Signal<boolean>;
|
|
1547
|
-
$footerRowStyle: _angular_core.Signal<"regular-footer" | "no-footer" | "small-footer">;
|
|
1548
|
-
$showFooterRow: _angular_core.Signal<boolean>;
|
|
1549
|
-
injector: _angular_core.DestroyableInjector;
|
|
1550
|
-
$hasIndexColumn: _angular_core.Signal<boolean>;
|
|
1551
|
-
$columns: _angular_core.WritableSignal<Dictionary<ColumnBuilderComponent>>;
|
|
1552
|
-
$showHeader: _angular_core.Signal<boolean>;
|
|
1553
|
-
$paginatorHeight: _angular_core.WritableSignal<number>;
|
|
1554
|
-
r: ResizeObserver;
|
|
1555
|
-
$offset: _angular_core.Signal<number>;
|
|
1556
|
-
$footerOffset: _angular_core.Signal<number>;
|
|
1557
|
-
drop(event: CdkDragDrop<string[]>): void;
|
|
1558
|
-
$usePaginator: _angular_core.Signal<boolean>;
|
|
1559
|
-
$useVirtualScroll: _angular_core.Signal<boolean>;
|
|
1560
|
-
$virtualStart: _angular_core.Signal<number>;
|
|
1561
|
-
$offsetIndex: _angular_core.Signal<number>;
|
|
1562
|
-
rowClicked(t: any, event?: MouseEvent): void;
|
|
1563
|
-
isGroupHeader(_: number, row: {
|
|
1564
|
-
isGroupHeader: boolean;
|
|
1565
|
-
}): boolean;
|
|
1566
|
-
setExpanded(key: string, groupUniqueName: string, isExpanded: boolean): void;
|
|
1567
|
-
buildColumn(column: ColumnInfo): void;
|
|
1568
|
-
$hasSelectColumn: _angular_core.Signal<boolean>;
|
|
1569
|
-
$selection: _angular_core.Signal<SelectionModel<any>>;
|
|
1570
|
-
checkForPreviousSelection(m: SelectionModel<any>): void;
|
|
1571
|
-
selectionChange$: rxjs.Observable<SelectionChange<any>>;
|
|
1572
|
-
$selectionChange: _angular_core.Signal<SelectionChange<any> | undefined>;
|
|
1573
|
-
onSelectionChangeEffect: _angular_core.EffectRef;
|
|
1574
|
-
$isAllSelected: _angular_core.Signal<boolean>;
|
|
1575
|
-
$masterToggleChecked: _angular_core.Signal<boolean>;
|
|
1576
|
-
$masterToggleIndeterminate: _angular_core.Signal<boolean>;
|
|
1577
|
-
$paginated: _angular_core.Signal<boolean>;
|
|
1578
|
-
$selectableData: _angular_core.Signal<any[]>;
|
|
1579
|
-
$selectAllMessage: _angular_core.Signal<string>;
|
|
1580
|
-
/** Selects all rows if they are not all selected; otherwise clear selection. */
|
|
1581
|
-
masterToggle(): void;
|
|
1582
|
-
selectTop(size: number): void;
|
|
1583
|
-
$tableWidth: _angular_core.WritableSignal<{
|
|
1584
|
-
width: string;
|
|
1585
|
-
}>;
|
|
1586
|
-
getGroupHeaderTransform: (key: string, val: string) => _angular_core.Signal<any>;
|
|
1587
|
-
$rowHeight: _angular_core.Signal<string | undefined>;
|
|
1588
|
-
$headerHeight: _angular_core.Signal<string | undefined>;
|
|
1589
|
-
$groupHeaderHeight: _angular_core.Signal<string | undefined>;
|
|
1590
|
-
$footerHeight: _angular_core.Signal<string | undefined>;
|
|
1591
|
-
$stickyFooter: _angular_core.Signal<boolean | undefined>;
|
|
1592
|
-
$rowStyles: _angular_core.Signal<_one_paragon_angular_utilities.StylerStyle>;
|
|
1593
|
-
$rowClasses: _angular_core.Signal<Dictionary<true | _angular_core.Predicate<any>>>;
|
|
1594
|
-
allOfGroupSelected: (uniqueName: string) => _angular_core.Signal<{
|
|
1595
|
-
containsAll: boolean;
|
|
1596
|
-
containsSome: boolean;
|
|
1597
|
-
length: number;
|
|
1598
|
-
}>;
|
|
1599
|
-
toggleGroup: (uniqueName: string, allSelected: boolean) => void;
|
|
1600
|
-
toggleGroupMessage: (amountOfItems: number, allSelected: boolean) => string;
|
|
1601
|
-
getCustomGroupRowTemplate: (groupingKey: string) => _angular_core.Signal<_angular_core.TemplateRef<any>>;
|
|
1602
|
-
addSelectFilter(e: boolean): void;
|
|
1603
|
-
$selectFilterKey: _angular_core.Signal<string | undefined>;
|
|
1604
|
-
$hasSelectFilter: _angular_core.Signal<boolean>;
|
|
1605
|
-
_onSelect: _angular_core.EffectRef;
|
|
1606
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GenericTableComponent, never>;
|
|
1607
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GenericTableComponent, "tb-generic-table", never, { "$displayData": { "alias": "displayData"; "required": true; "isSignal": true; }; "$data": { "alias": "data"; "required": true; "isSignal": true; }; "$rows": { "alias": "rows"; "required": false; "isSignal": true; }; "$columnInfos": { "alias": "columnInfos"; "required": true; "isSignal": true; }; "$dataSource": { "alias": "dataSource"; "required": true; "isSignal": true; }; "$trackBy": { "alias": "trackBy"; "required": false; "isSignal": true; }; }, { "selection$": "selection"; }, never, never, true, never>;
|
|
1608
|
-
}
|
|
1609
|
-
|
|
1610
|
-
declare class TableContainerComponent<T = any> {
|
|
1611
|
-
#private;
|
|
1612
|
-
state: TableStore;
|
|
1613
|
-
private dataStore;
|
|
1614
|
-
wrapper: TableWrapperDirective | null;
|
|
1615
|
-
stateService: TableBuilderStateStore;
|
|
1616
|
-
injector: Injector;
|
|
1617
|
-
elementRef: ElementRef<any>;
|
|
1618
|
-
private exportToCsvService;
|
|
1619
|
-
private config;
|
|
1620
|
-
protected dataSource: TableBuilderDataSource<T>;
|
|
1621
|
-
$filterDirectives: _angular_core.Signal<readonly TableFilterDirective[]>;
|
|
1622
|
-
$customFilterDirectives: _angular_core.Signal<readonly TableCustomFilterDirective[]>;
|
|
1623
|
-
$paginatorComponent: _angular_core.Signal<PaginatorComponent | undefined>;
|
|
1624
|
-
$paginatorWrapper: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
1625
|
-
$genericTable: _angular_core.Signal<GenericTableComponent | undefined>;
|
|
1626
|
-
_$customRows: _angular_core.Signal<readonly MatRowDef<any>[]>;
|
|
1627
|
-
$customRows: _angular_core.Signal<MatRowDef<any>[]>;
|
|
1628
|
-
$customCells: _angular_core.Signal<readonly CustomCellDirective<any>[]>;
|
|
1629
|
-
$customHeaders: _angular_core.Signal<readonly CustomHeaderDirective<any>[]>;
|
|
1630
|
-
$customGroupRows: _angular_core.Signal<readonly CustomGroupRowDirective<any>[]>;
|
|
1631
|
-
$menu: _angular_core.Signal<MatMenu>;
|
|
1632
|
-
menuInjector: _angular_core.DestroyableInjector;
|
|
1633
|
-
$tableBuilder: _angular_core.InputSignal<TableBuilder<T>>;
|
|
1634
|
-
$tableIdInput: _angular_core.InputSignal<string | undefined>;
|
|
1635
|
-
$trackByInput: _angular_core.InputSignal<string | undefined>;
|
|
1636
|
-
$inputFilters: _angular_core.InputSignal<(FilterInfo<any, T> | Predicate<T> | CustomFilter<T>)[]>;
|
|
1637
|
-
$filterInfoInputs: _angular_core.Signal<(FilterInfo<any, any> | CustomFilter<any>)[]>;
|
|
1638
|
-
$indexColumnInput: _angular_core.InputSignal<boolean>;
|
|
1639
|
-
$selectionColumnInput: _angular_core.InputSignal<boolean>;
|
|
1640
|
-
$stickyHeaderInput: _angular_core.InputSignal<boolean>;
|
|
1641
|
-
$stickyFooterInput: _angular_core.InputSignal<boolean | undefined>;
|
|
1642
|
-
$groupHeaderTemplate: _angular_core.InputSignal<TemplateRef<any> | undefined>;
|
|
1643
|
-
$groupHeaderHeight: _angular_core.InputSignal<number | undefined>;
|
|
1644
|
-
$pageSize: _angular_core.InputSignal<number | undefined>;
|
|
1645
|
-
_selection$: BehaviorSubject<SelectionChange<T> | null>;
|
|
1646
|
-
selection$: _angular_core.OutputRef<SelectionChange<T>>;
|
|
1647
|
-
onStateReset$: _angular_core.OutputEmitterRef<null>;
|
|
1648
|
-
onSaveState$: _angular_core.OutputEmitterRef<null>;
|
|
1649
|
-
state$: _angular_core.OutputRef<PersistedTableState>;
|
|
1650
|
-
$data: _angular_core.Signal<T[]>;
|
|
1651
|
-
data$: _angular_core.OutputRef<T[]>;
|
|
1652
|
-
/**
|
|
1653
|
-
* Will be different than $data if grouping is applied
|
|
1654
|
-
*/
|
|
1655
|
-
$sortedAndFilteredAndGroupedData: _angular_core.Signal<any[]>;
|
|
1656
|
-
sortedAndFilteredAndGroupedData$: _angular_core.OutputRef<any[]>;
|
|
1657
|
-
private $displayData;
|
|
1658
|
-
clearSelections(): void;
|
|
1659
|
-
firstPage(): void;
|
|
1660
|
-
lastPage(): void;
|
|
1661
|
-
expandAllGroups: () => void;
|
|
1662
|
-
expandAllOfGroup: (groupKey: string) => void;
|
|
1663
|
-
collapseAllGroups: () => void;
|
|
1664
|
-
exportToCsv: () => void;
|
|
1665
|
-
protected $myColumns: _angular_core.Signal<{
|
|
1666
|
-
metaData: MetaData;
|
|
1667
|
-
customCell: CustomCellDirective<any> | undefined;
|
|
1668
|
-
customHeader: CustomHeaderDirective<any> | undefined;
|
|
1669
|
-
}[]>;
|
|
1670
|
-
protected $useVirtual: _angular_core.Signal<boolean | undefined>;
|
|
1671
|
-
protected $collapsedFooter: _angular_core.Signal<boolean>;
|
|
1672
|
-
protected $collapsedHeader: _angular_core.Signal<boolean>;
|
|
1673
|
-
protected $displayDataLength: _angular_core.Signal<number>;
|
|
1674
|
-
$tableBuilderSettings: _angular_core.Signal<_one_paragon_angular_utilities.TableBuilderSettings<any> | undefined>;
|
|
1675
|
-
$trackBy: _angular_core.Signal<string | ((item: any) => any) | undefined>;
|
|
1676
|
-
$tableId: _angular_core.Signal<string | undefined>;
|
|
1677
|
-
$includeSelectionColumn: _angular_core.Signal<boolean>;
|
|
1678
|
-
$includeIndexColumn: _angular_core.Signal<boolean>;
|
|
1679
|
-
$stickyHeader: _angular_core.Signal<boolean>;
|
|
1680
|
-
$stickyFooter: _angular_core.Signal<boolean>;
|
|
1681
|
-
$props: _angular_core.Signal<TableProps>;
|
|
1682
|
-
private $persistedState;
|
|
1683
|
-
private $allFilterDirectives;
|
|
1684
|
-
private $tableBuilderMetaData;
|
|
1685
|
-
private $allMetaDatas;
|
|
1686
|
-
private $allMetaDataTimeStamped;
|
|
1687
|
-
private $preds;
|
|
1688
|
-
private $predicateFiltersState;
|
|
1689
|
-
private $savableFiltersState;
|
|
1690
|
-
private $allFilterStatesTimeStamped;
|
|
1691
|
-
private $sortStateTimeStamped;
|
|
1692
|
-
private $allData;
|
|
1693
|
-
private $allDataTimeStamped;
|
|
1694
|
-
private $allTimeStamped;
|
|
1695
|
-
private $sortedAndFilteredData;
|
|
1696
|
-
$timestampedGroups: _angular_core.Signal<{
|
|
1697
|
-
value: GroupedData[];
|
|
1698
|
-
timestamp: number;
|
|
1699
|
-
}>;
|
|
1700
|
-
$timestampedExpanded: _angular_core.Signal<{
|
|
1701
|
-
value: GroupedData[];
|
|
1702
|
-
timestamp: number;
|
|
1703
|
-
}>;
|
|
1704
|
-
$timestampedGroupSortUpdated: _angular_core.Signal<{
|
|
1705
|
-
value: GroupedData[];
|
|
1706
|
-
timestamp: number;
|
|
1707
|
-
}>;
|
|
1708
|
-
private $dataAndGroupsTimestamped;
|
|
1709
|
-
protected $filteredSortedAndGrouped: _angular_core.WritableSignal<GroupByState | undefined>;
|
|
1710
|
-
private $isInitializationState;
|
|
1711
|
-
static headerId: string;
|
|
1712
|
-
headerId: string;
|
|
1713
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableContainerComponent<any>, never>;
|
|
1714
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<TableContainerComponent<any>, "tb-table-container", never, { "$tableBuilder": { "alias": "tableBuilder"; "required": true; "isSignal": true; }; "$tableIdInput": { "alias": "tableId"; "required": false; "isSignal": true; }; "$trackByInput": { "alias": "trackBy"; "required": false; "isSignal": true; }; "$inputFilters": { "alias": "inputFilters"; "required": false; "isSignal": true; }; "$indexColumnInput": { "alias": "indexColumn"; "required": false; "isSignal": true; }; "$selectionColumnInput": { "alias": "selectionColumn"; "required": false; "isSignal": true; }; "$stickyHeaderInput": { "alias": "stickyHeader"; "required": false; "isSignal": true; }; "$stickyFooterInput": { "alias": "stickyFooter"; "required": false; "isSignal": true; }; "$groupHeaderTemplate": { "alias": "groupHeaderTemplate"; "required": false; "isSignal": true; }; "$groupHeaderHeight": { "alias": "groupHeaderHeight"; "required": false; "isSignal": true; }; "$pageSize": { "alias": "pageSize"; "required": false; "isSignal": true; }; }, { "selection$": "selection"; "onStateReset$": "onStateReset"; "onSaveState$": "onSaveState"; "state$": "state"; "data$": "data"; "sortedAndFilteredAndGroupedData$": "sortedAndFilteredAndGroupedData"; }, ["$filterDirectives", "$customFilterDirectives", "_$customRows", "$customCells", "$customHeaders", "$customGroupRows"], ["[before]", ".tb-header-title", ".tb-paginator-row"], true, never>;
|
|
1715
|
-
}
|
|
1716
|
-
|
|
1717
|
-
declare class SpaceCasePipe implements PipeTransform {
|
|
1718
|
-
spaceCase: (arg: string) => string;
|
|
1719
|
-
transform: (value: string) => string;
|
|
1720
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<SpaceCasePipe, never>;
|
|
1721
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<SpaceCasePipe, "spaceCase", true>;
|
|
1722
|
-
}
|
|
1723
|
-
/**
|
|
1724
|
-
* Adds a space before uppercase letters that either
|
|
1725
|
-
* 1. follows a lowercase letter or digit
|
|
1726
|
-
* 2. or precedes a lowercase letter and follows an alpha-numeric character
|
|
1727
|
-
*
|
|
1728
|
-
* Uppercases the first digit
|
|
1729
|
-
*
|
|
1730
|
-
* Turns underscores into spaces
|
|
1731
|
-
*/
|
|
1732
|
-
declare function spaceCase(value: string): string;
|
|
1733
|
-
declare const SpaceCaseMapping: InjectionToken<(arg: string) => string>;
|
|
1734
|
-
|
|
1735
|
-
declare class PhoneNumberPipe implements PipeTransform {
|
|
1736
|
-
transform(phoneNum: string): any;
|
|
1737
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PhoneNumberPipe, never>;
|
|
1738
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<PhoneNumberPipe, "phone", true>;
|
|
1739
|
-
}
|
|
1740
|
-
declare function phoneFormatter(phoneNum: string): string;
|
|
1741
|
-
|
|
1742
|
-
type Args<S extends object, O extends keyof S> = S[O] extends (...args: infer Params) => any ? Params : never;
|
|
1743
|
-
type Return<S extends object, O extends keyof S> = S[O] extends (...args: any[]) => infer R ? R : never;
|
|
1744
|
-
declare class FunctionPipe implements PipeTransform {
|
|
1745
|
-
transform<T, TParam extends any[]>(func: (...args: TParam) => T, ...args: TParam): T;
|
|
1746
|
-
transform<O extends object, S extends keyof O>(s: S, obj: O, ...args: Args<O, S>): Return<O, S>;
|
|
1747
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FunctionPipe, never>;
|
|
1748
|
-
static ɵpipe: _angular_core.ɵɵPipeDeclaration<FunctionPipe, "func", true>;
|
|
1749
|
-
}
|
|
1750
|
-
|
|
1751
|
-
declare class StopPropagationDirective {
|
|
1752
|
-
onClick(event: any): void;
|
|
1753
|
-
onMousedown(event: any): void;
|
|
1754
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<StopPropagationDirective, never>;
|
|
1755
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<StopPropagationDirective, "[stop-propagation]", never, {}, {}, never, never, true, never>;
|
|
1756
|
-
}
|
|
1757
|
-
|
|
1758
|
-
declare class PreventEnterDirective {
|
|
1759
|
-
onKeyDown(): boolean;
|
|
1760
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<PreventEnterDirective, never>;
|
|
1761
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<PreventEnterDirective, "preventEnter", never, {}, {}, never, never, true, never>;
|
|
1762
|
-
}
|
|
1763
|
-
|
|
1764
|
-
declare class AutoFocusDirective implements AfterViewInit {
|
|
1765
|
-
private elementRef;
|
|
1766
|
-
autoFocus: boolean;
|
|
1767
|
-
ngAfterViewInit(): void;
|
|
1768
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AutoFocusDirective, never>;
|
|
1769
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<AutoFocusDirective, "[autoFocus]", never, { "autoFocus": { "alias": "autoFocus"; "required": false; }; }, {}, never, never, true, never>;
|
|
1770
|
-
}
|
|
1771
|
-
|
|
1772
|
-
declare class TrimWhitespaceDirective {
|
|
1773
|
-
private elem;
|
|
1774
|
-
onBlur(): void;
|
|
1775
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TrimWhitespaceDirective, never>;
|
|
1776
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<TrimWhitespaceDirective, "input[trimWhitespace]", never, {}, {}, never, never, true, never>;
|
|
1777
|
-
}
|
|
1778
|
-
|
|
1779
|
-
declare class ClickSubjectDirective<T = boolean> extends Subject<T> {
|
|
1780
|
-
constructor();
|
|
1781
|
-
_val: T;
|
|
1782
|
-
set clickSubject(val: T);
|
|
1783
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClickSubjectDirective<any>, never>;
|
|
1784
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ClickSubjectDirective<any>, "[clickSubject]", ["clickSubject"], { "clickSubject": { "alias": "clickSubject"; "required": false; }; }, {}, never, never, true, never>;
|
|
1785
|
-
}
|
|
1786
|
-
|
|
1787
|
-
declare class ClickEmitterDirective extends Subject<boolean> {
|
|
1788
|
-
constructor();
|
|
1789
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ClickEmitterDirective, never>;
|
|
1790
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ClickEmitterDirective, "[clickEmitter]", ["clickEmitter"], {}, {}, never, never, true, never>;
|
|
1791
|
-
}
|
|
1792
|
-
|
|
1793
|
-
interface DialogViewContext<T> {
|
|
1794
|
-
$implicit: T;
|
|
1795
|
-
opDialog: T;
|
|
1796
|
-
close: () => void;
|
|
1797
|
-
}
|
|
1798
|
-
declare class DialogWrapper<T = any> {
|
|
1799
|
-
private vcr;
|
|
1800
|
-
viewEmbedded: boolean;
|
|
1801
|
-
viewContext: DialogViewContext<T>;
|
|
1802
|
-
set template(tmpl: TemplateRef<DialogViewContext<T>>);
|
|
1803
|
-
set close(closeMethod: () => void);
|
|
1804
|
-
set data(value: T);
|
|
1805
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogWrapper<any>, never>;
|
|
1806
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DialogWrapper<any>, "dialog-wrapper", never, {}, {}, never, never, true, never>;
|
|
1807
|
-
}
|
|
1808
|
-
declare class DialogDirective<T> {
|
|
1809
|
-
private templateRef;
|
|
1810
|
-
private dialog;
|
|
1811
|
-
private dialogConfig;
|
|
1812
|
-
private service;
|
|
1813
|
-
opDialogClosed: EventEmitter<boolean>;
|
|
1814
|
-
_dialogConfig: MatDialogConfig<T>;
|
|
1815
|
-
opDialogAddDialogClass: boolean;
|
|
1816
|
-
set opDialogConfig(config: MatDialogConfig<T>);
|
|
1817
|
-
get opDialogConfig(): MatDialogConfig<T>;
|
|
1818
|
-
injector: Injector;
|
|
1819
|
-
subscriber: _one_paragon_angular_utilities.Subscriber;
|
|
1820
|
-
set setControl(i: Observable<T> | Signal<T>);
|
|
1821
|
-
nativeElement?: HTMLElement;
|
|
1822
|
-
/**
|
|
1823
|
-
* For use with origin element to keep dialog on screen.
|
|
1824
|
-
* If true, will position based on width and height provided IF it was provide as a number.
|
|
1825
|
-
* If no width provided or/and height, provide a default in number (of pixels) of the not provided values.
|
|
1826
|
-
* If no width/height provided at all, will default to 600x400.
|
|
1827
|
-
*/
|
|
1828
|
-
$positionOnScreen: _angular_core.InputSignal<boolean | {
|
|
1829
|
-
height?: number;
|
|
1830
|
-
width?: number;
|
|
1831
|
-
}>;
|
|
1832
|
-
dialogRef?: MatDialogRef<any, boolean>;
|
|
1833
|
-
componentWrapper?: DialogWrapper<T>;
|
|
1834
|
-
_data: Subject<Observable<T>>;
|
|
1835
|
-
close(): void;
|
|
1836
|
-
initDialog(): void;
|
|
1837
|
-
setDataAndState: (data: T) => void;
|
|
1838
|
-
setDialogState(open: boolean): void;
|
|
1839
|
-
static ngTemplateContextGuard<T>(dir: DialogDirective<T>, ctx: any): ctx is DialogViewContext<Exclude<T, false | 0 | '' | null | undefined>>;
|
|
1840
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogDirective<any>, never>;
|
|
1841
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<DialogDirective<any>, "[opDialog]", never, { "opDialogAddDialogClass": { "alias": "opDialogAddDialogClass"; "required": false; }; "opDialogConfig": { "alias": "opDialogConfig"; "required": false; }; "setControl": { "alias": "opDialog"; "required": false; }; "nativeElement": { "alias": "opDialogOrigin"; "required": false; }; "$positionOnScreen": { "alias": "opDialogPositionOnScreen"; "required": false; "isSignal": true; }; }, { "opDialogClosed": "opDialogClosed"; }, never, never, true, never>;
|
|
1842
|
-
}
|
|
1843
|
-
|
|
1844
|
-
declare class MatSlideToggleGroupDirective {
|
|
1845
|
-
allowMultiple: boolean;
|
|
1846
|
-
_toggles: QueryList<MatSlideToggle>;
|
|
1847
|
-
set toggles(val: QueryList<MatSlideToggle>);
|
|
1848
|
-
private _ready;
|
|
1849
|
-
get valueEmitter(): Observable<{
|
|
1850
|
-
[key: string]: boolean;
|
|
1851
|
-
}>;
|
|
1852
|
-
getInitValue(): {
|
|
1853
|
-
[k: string]: boolean;
|
|
1854
|
-
};
|
|
1855
|
-
getObs(): Observable<{
|
|
1856
|
-
[k: string]: boolean;
|
|
1857
|
-
}>;
|
|
1858
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<MatSlideToggleGroupDirective, never>;
|
|
1859
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MatSlideToggleGroupDirective, "[opMatSlideToggleGroup]", never, { "allowMultiple": { "alias": "allowMultiple"; "required": false; }; }, { "valueEmitter": "valueEmitter"; }, ["toggles"], never, true, never>;
|
|
1860
|
-
}
|
|
1861
|
-
|
|
1862
|
-
declare class ConditionalClassesDirective {
|
|
1863
|
-
#private;
|
|
1864
|
-
private el;
|
|
1865
|
-
private renderer;
|
|
1866
|
-
$element: _angular_core.InputSignal<any>;
|
|
1867
|
-
$classes: _angular_core.InputSignal<Dictionary$1<true | Predicate$1<any>> | undefined>;
|
|
1868
|
-
classesApplied: string[];
|
|
1869
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ConditionalClassesDirective, never>;
|
|
1870
|
-
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>;
|
|
1871
|
-
}
|
|
1872
|
-
|
|
1873
|
-
declare class UtilitiesModule {
|
|
1874
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<UtilitiesModule, never>;
|
|
1875
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<UtilitiesModule, never, [typeof SpaceCasePipe, typeof PhoneNumberPipe, typeof FunctionPipe, typeof StopPropagationDirective, typeof StylerDirective, typeof PreventEnterDirective, typeof AutoFocusDirective, typeof TrimWhitespaceDirective, typeof ClickSubjectDirective, typeof ClickEmitterDirective, typeof DialogDirective, typeof MatSlideToggleGroupDirective, typeof ConditionalClassesDirective], [typeof StopPropagationDirective, typeof PreventEnterDirective, typeof SpaceCasePipe, typeof PhoneNumberPipe, typeof FunctionPipe, typeof TrimWhitespaceDirective, typeof StylerDirective, typeof AutoFocusDirective, typeof ClickSubjectDirective, typeof ClickEmitterDirective, typeof DialogDirective, typeof MatSlideToggleGroupDirective, typeof ConditionalClassesDirective]>;
|
|
1876
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<UtilitiesModule>;
|
|
1877
|
-
}
|
|
1878
|
-
|
|
1879
|
-
declare class TableBuilderModule {
|
|
1880
|
-
static forRoot(config: TableBuilderConfig): ModuleWithProviders<TableBuilderModule>;
|
|
1881
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<TableBuilderModule, never>;
|
|
1882
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<TableBuilderModule, never, [typeof TableContainerComponent, typeof CustomCellDirective, typeof CustomHeaderDirective, typeof CustomGroupRowDirective, typeof TableFilterDirective, typeof TableFilterStringContainsDirective, typeof TableWrapperDirective], [typeof TableContainerComponent, typeof CustomCellDirective, typeof CustomHeaderDirective, typeof CustomGroupRowDirective, typeof TableFilterStringContainsDirective, typeof TableWrapperDirective, typeof UtilitiesModule]>;
|
|
1883
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<TableBuilderModule>;
|
|
1884
|
-
}
|
|
1885
|
-
|
|
1886
|
-
declare class MatTableObservableDataSource<T> extends MatTableDataSource<T> {
|
|
1887
|
-
private dataSrc;
|
|
1888
|
-
subscription?: Subscription;
|
|
1889
|
-
constructor(dataSrc: Observable<T[]>);
|
|
1890
|
-
connect(): rxjs.BehaviorSubject<T[]>;
|
|
1891
|
-
disconnect(): void;
|
|
1892
|
-
}
|
|
1893
|
-
|
|
1894
|
-
declare class DateFilterComponent {
|
|
1895
|
-
FilterType: {
|
|
1896
|
-
readonly NumberEquals: "Equals";
|
|
1897
|
-
readonly NumberNotEqual: "Does Not Equal";
|
|
1898
|
-
readonly NumberGreaterThan: "Greater Than";
|
|
1899
|
-
readonly NumberLessThan: "Less Than";
|
|
1900
|
-
readonly NumberBetween: "Between";
|
|
1901
|
-
readonly StringEquals: "Equals";
|
|
1902
|
-
readonly StringContains: "Contains";
|
|
1903
|
-
readonly StringDoesNotContain: "Does Not Contain";
|
|
1904
|
-
readonly StringStartWith: "Start With";
|
|
1905
|
-
readonly StringEndsWith: "Ends With";
|
|
1906
|
-
readonly DateIsOn: "Is on";
|
|
1907
|
-
readonly DateIsNotOn: "Is Not On";
|
|
1908
|
-
readonly DateOnOrAfter: "On or After";
|
|
1909
|
-
readonly DateOnOrBefore: "On or Before";
|
|
1910
|
-
readonly DateBetween: "Between";
|
|
1911
|
-
readonly DateTimeIsAt: "Is At";
|
|
1912
|
-
readonly DateTimeIsNotAt: "Is Not At";
|
|
1913
|
-
readonly DateTimeAtOrAfter: "At or After";
|
|
1914
|
-
readonly DateTimeAtOrBefore: "At or Before";
|
|
1915
|
-
readonly DateTimeBetween: "Between";
|
|
1916
|
-
readonly BooleanEquals: "Is";
|
|
1917
|
-
readonly IsNull: "Is Blank";
|
|
1918
|
-
readonly And: "And";
|
|
1919
|
-
readonly In: "In";
|
|
1920
|
-
readonly Custom: "Custom";
|
|
1921
|
-
};
|
|
1922
|
-
FieldType: typeof FieldType;
|
|
1923
|
-
$info: _angular_core.InputSignal<PartialFilter>;
|
|
1924
|
-
$currentFilterType: _angular_core.InputSignal<FilterType>;
|
|
1925
|
-
private state;
|
|
1926
|
-
$metaData: _angular_core.Signal<_one_paragon_angular_utilities.MetaData>;
|
|
1927
|
-
$allValuesInMeta: _angular_core.Signal<boolean>;
|
|
1928
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DateFilterComponent, never>;
|
|
1929
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DateFilterComponent, "tb-date-filter", never, { "$info": { "alias": "info"; "required": true; "isSignal": true; }; "$currentFilterType": { "alias": "currentFilterType"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
1930
|
-
}
|
|
1931
|
-
|
|
1932
|
-
declare class FilterComponent {
|
|
1933
|
-
protected state: TableStore;
|
|
1934
|
-
filterTypes: Record<FieldType, FilterType[]>;
|
|
1935
|
-
FilterType: {
|
|
1936
|
-
readonly NumberEquals: "Equals";
|
|
1937
|
-
readonly NumberNotEqual: "Does Not Equal";
|
|
1938
|
-
readonly NumberGreaterThan: "Greater Than";
|
|
1939
|
-
readonly NumberLessThan: "Less Than";
|
|
1940
|
-
readonly NumberBetween: "Between";
|
|
1941
|
-
readonly StringEquals: "Equals";
|
|
1942
|
-
readonly StringContains: "Contains";
|
|
1943
|
-
readonly StringDoesNotContain: "Does Not Contain";
|
|
1944
|
-
readonly StringStartWith: "Start With";
|
|
1945
|
-
readonly StringEndsWith: "Ends With";
|
|
1946
|
-
readonly DateIsOn: "Is on";
|
|
1947
|
-
readonly DateIsNotOn: "Is Not On";
|
|
1948
|
-
readonly DateOnOrAfter: "On or After";
|
|
1949
|
-
readonly DateOnOrBefore: "On or Before";
|
|
1950
|
-
readonly DateBetween: "Between";
|
|
1951
|
-
readonly DateTimeIsAt: "Is At";
|
|
1952
|
-
readonly DateTimeIsNotAt: "Is Not At";
|
|
1953
|
-
readonly DateTimeAtOrAfter: "At or After";
|
|
1954
|
-
readonly DateTimeAtOrBefore: "At or Before";
|
|
1955
|
-
readonly DateTimeBetween: "Between";
|
|
1956
|
-
readonly BooleanEquals: "Is";
|
|
1957
|
-
readonly IsNull: "Is Blank";
|
|
1958
|
-
readonly And: "And";
|
|
1959
|
-
readonly In: "In";
|
|
1960
|
-
readonly Custom: "Custom";
|
|
1961
|
-
};
|
|
1962
|
-
FieldType: typeof FieldType;
|
|
1963
|
-
$filter: _angular_core.InputSignalWithTransform<PartialFilter, PartialFilter>;
|
|
1964
|
-
$metaData: _angular_core.Signal<_one_paragon_angular_utilities.MetaData>;
|
|
1965
|
-
$allValuesInMeta: _angular_core.Signal<boolean>;
|
|
1966
|
-
close$: Subject<void>;
|
|
1967
|
-
done$: Subject<void>;
|
|
1968
|
-
close: _angular_core.OutputRef<void>;
|
|
1969
|
-
done: _angular_core.OutputRef<void>;
|
|
1970
|
-
$enteredFilterType: _angular_core.WritableSignal<FilterType | undefined>;
|
|
1971
|
-
$currentFilterType: _angular_core.Signal<FilterType | undefined>;
|
|
1972
|
-
$availableFilterTypes: _angular_core.Signal<FilterType[]>;
|
|
1973
|
-
onEnter(filter: FilterInfo, event: any): void;
|
|
1974
|
-
addFilter(filter: FilterInfo): void;
|
|
1975
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterComponent, never>;
|
|
1976
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterComponent, "tb-filter", never, { "$filter": { "alias": "filter"; "required": true; "isSignal": true; }; }, { "close": "close"; "done": "done"; }, never, never, true, never>;
|
|
1977
|
-
}
|
|
1978
|
-
|
|
1979
|
-
interface DisplayCol {
|
|
1980
|
-
key: string;
|
|
1981
|
-
displayName?: string;
|
|
1982
|
-
isVisible: boolean;
|
|
1983
|
-
}
|
|
1984
|
-
|
|
1985
|
-
declare class GenColDisplayerComponent {
|
|
1986
|
-
private tableState;
|
|
1987
|
-
$columns: _angular_core.Signal<{
|
|
1988
|
-
key: string;
|
|
1989
|
-
displayName: string | undefined;
|
|
1990
|
-
isVisible: boolean;
|
|
1991
|
-
}[]>;
|
|
1992
|
-
reset(displayCols: DisplayCol[]): void;
|
|
1993
|
-
drop(event: CdkDragDrop<string[]>): void;
|
|
1994
|
-
unset(displayCols: DisplayCol[]): void;
|
|
1995
|
-
emit(displayCols: DisplayCol[]): void;
|
|
1996
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GenColDisplayerComponent, never>;
|
|
1997
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GenColDisplayerComponent, "tb-col-displayer", never, {}, {}, never, never, true, never>;
|
|
1998
|
-
}
|
|
1999
|
-
|
|
2000
|
-
declare class WrapperFilterStore {
|
|
2001
|
-
$filters: _angular_core.WritableSignal<PartialFilter[]>;
|
|
2002
|
-
clearAll: () => void;
|
|
2003
|
-
deleteByIndex: (index: number) => void;
|
|
2004
|
-
addFilter: (filter: PartialFilter) => void;
|
|
2005
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<WrapperFilterStore, never>;
|
|
2006
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<WrapperFilterStore>;
|
|
2007
|
-
}
|
|
2008
|
-
|
|
2009
|
-
declare class GenFilterDisplayerComponent {
|
|
2010
|
-
protected tableState: TableStore;
|
|
2011
|
-
protected filterStore: WrapperFilterStore;
|
|
2012
|
-
$filterCols: _angular_core.Signal<MetaData[]>;
|
|
2013
|
-
addFilter(metaData: MetaData): void;
|
|
2014
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GenFilterDisplayerComponent, never>;
|
|
2015
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GenFilterDisplayerComponent, "tb-filter-displayer", never, {}, {}, never, never, true, never>;
|
|
2016
|
-
}
|
|
2017
|
-
|
|
2018
|
-
declare class FilterChipsComponent {
|
|
2019
|
-
tableState: TableStore;
|
|
2020
|
-
filterStore: WrapperFilterStore;
|
|
2021
|
-
$filters: _angular_core.Signal<FilterInfo<any, any>[]>;
|
|
2022
|
-
$certainCustomFilters: _angular_core.Signal<CustomFilter<any>[]>;
|
|
2023
|
-
deleteByIndex(index: number): void;
|
|
2024
|
-
addFilter(filter: FilterInfo<any>): void;
|
|
2025
|
-
clearAll(): void;
|
|
2026
|
-
$currentFilters: _angular_core.WritableSignal<_one_paragon_angular_utilities.PartialFilter[]>;
|
|
2027
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FilterChipsComponent, never>;
|
|
2028
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FilterChipsComponent, "lib-filter-list", never, {}, {}, never, never, true, never>;
|
|
2029
|
-
}
|
|
2030
|
-
|
|
2031
|
-
declare class GroupByListComponent {
|
|
2032
|
-
tableStore: TableStore;
|
|
2033
|
-
$groups: _angular_core.Signal<{
|
|
2034
|
-
key: string;
|
|
2035
|
-
name: string;
|
|
2036
|
-
sort: _angular_material_sort.SortDirection;
|
|
2037
|
-
}[]>;
|
|
2038
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<GroupByListComponent, never>;
|
|
2039
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<GroupByListComponent, "group-by-list", never, {}, {}, never, never, true, never>;
|
|
2040
|
-
}
|
|
2041
|
-
|
|
2042
|
-
declare function defaultShareReplay<T>(): (src: Observable<T>) => Observable<T>;
|
|
2043
|
-
|
|
2044
|
-
declare function mapError<T, TResult>(projection: (error: any) => TResult): (src: Observable<T>) => Observable<T | TResult>;
|
|
2045
|
-
|
|
2046
|
-
declare const onceWhen: <T>(predicate: Predicate<T>) => (src: Observable<T>) => Observable<T>;
|
|
2047
|
-
declare const mapArray: <T, U>(mapFunc: (src: T, index?: number) => U) => (source: Observable<T[]>) => Observable<U[]>;
|
|
2048
|
-
declare const filterArray: <T>(filterFunc: (src: T) => boolean) => (source: Observable<T[]>) => Observable<T[]>;
|
|
2049
|
-
declare const onWait: typeof startWithIfEmpty;
|
|
2050
|
-
declare function startWithIfEmpty<T, V extends T>(val: V, wait?: number): MonoTypeOperatorFunction<T>;
|
|
2051
|
-
declare const combineArrays: <T>(sources: Observable<T[]>[]) => Observable<T[]>;
|
|
2052
|
-
declare function switchOff(switchSource: Observable<boolean>, defaultState?: boolean): <T>(source: Observable<T>) => Observable<T>;
|
|
2053
|
-
declare function skipOneWhen(skipper: Observable<any>): <T>(source: Observable<T>) => Observable<T>;
|
|
2054
|
-
declare function previousAndCurrent<T>(startingValue: T): OperatorFunction<T, [T, T]>;
|
|
2055
|
-
declare function notNull<T>(): rxjs.UnaryFunction<Observable<T>, Observable<NonNullable<T>>>;
|
|
2056
|
-
declare function delayOn<T>(predicate: (t: T) => boolean, delayTime: number): (src: Observable<T>) => Observable<T>;
|
|
2057
|
-
|
|
2058
|
-
type PipeLike<T> = Observable<T>['pipe'];
|
|
2059
|
-
declare class Subjectifier<T> extends Observable<T> {
|
|
2060
|
-
private _subj;
|
|
2061
|
-
private merged;
|
|
2062
|
-
constructor(_source: Observable<T>);
|
|
2063
|
-
next: Subject<T>['next'];
|
|
2064
|
-
newSubj: (...operations: Parameters<PipeLike<T>>) => Subjectifier<unknown>;
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
|
-
declare class Subscriber implements OnDestroy {
|
|
2068
|
-
subscriptions: Subscription[];
|
|
2069
|
-
handle: (subscription: Subscription) => void;
|
|
2070
|
-
on: <T = any>(obs: Observable<T>, action: (t: T) => any) => void;
|
|
2071
|
-
ngOnDestroy(): void;
|
|
2072
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<Subscriber, never>;
|
|
2073
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<Subscriber, never, never, {}, {}, never, never, true, never>;
|
|
2074
|
-
}
|
|
2075
|
-
declare function subscriber(injector: Injector): Subscriber;
|
|
2076
|
-
declare function subscriber(subscription?: Subscription, injector?: Injector): Subscriber;
|
|
2077
|
-
declare function subscriber<T = any>(obs: Observable<T>, action: (t: T) => any, injector?: Injector): Subscriber;
|
|
2078
|
-
|
|
2079
|
-
declare class DialogService {
|
|
2080
|
-
allOpenOpDialogs: MatDialogRef<any>[];
|
|
2081
|
-
addDialogRef(ref: MatDialogRef<any>): void;
|
|
2082
|
-
removeDialogRef(ref: MatDialogRef<any>): void;
|
|
2083
|
-
closeAllOpDialogs(): void;
|
|
2084
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DialogService, never>;
|
|
2085
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<DialogService>;
|
|
2086
|
-
}
|
|
2087
|
-
|
|
2088
|
-
declare class AppStatusState {
|
|
2089
|
-
readonly ActionStatusBar: ActionStatus[];
|
|
2090
|
-
}
|
|
2091
|
-
interface StatusState {
|
|
2092
|
-
ids: string[];
|
|
2093
|
-
entities: {
|
|
2094
|
-
[id: string]: ActionStatus;
|
|
2095
|
-
};
|
|
2096
|
-
}
|
|
2097
|
-
declare class ActionStatus {
|
|
2098
|
-
id: string;
|
|
2099
|
-
displayName?: string;
|
|
2100
|
-
status: serverStatusTypes;
|
|
2101
|
-
responsePayload?: any;
|
|
2102
|
-
}
|
|
2103
|
-
declare enum serverStatusTypes {
|
|
2104
|
-
notStarted = 0,
|
|
2105
|
-
inProgress = 1,
|
|
2106
|
-
success = 2,
|
|
2107
|
-
error = 3
|
|
2108
|
-
}
|
|
2109
|
-
declare const statusAdapter: _ngrx_entity.EntityAdapter<ActionStatus>;
|
|
2110
|
-
interface State extends EntityState<ActionStatus> {
|
|
2111
|
-
}
|
|
2112
|
-
declare const initialState: StatusState;
|
|
2113
|
-
declare const getStatusState: _ngrx_store.MemoizedSelector<object, State, _ngrx_store.DefaultProjectorFn<State>>;
|
|
2114
|
-
declare const selectIds: _ngrx_store.MemoizedSelector<object, string[] | number[], (entityState: EntityState<ActionStatus>) => string[] | number[]>;
|
|
2115
|
-
declare const selectEntities: _ngrx_store.MemoizedSelector<object, _ngrx_entity.Dictionary<ActionStatus>, (entityState: EntityState<ActionStatus>) => _ngrx_entity.Dictionary<ActionStatus>>;
|
|
2116
|
-
declare const selectAll: _ngrx_store.MemoizedSelector<object, ActionStatus[], (entityState: EntityState<ActionStatus>) => ActionStatus[]>;
|
|
2117
|
-
declare const selectTotal: _ngrx_store.MemoizedSelector<object, number, (entityState: EntityState<ActionStatus>) => number>;
|
|
2118
|
-
declare const selectEntity: (id: string) => _ngrx_store.MemoizedSelector<object, any, (s1: _ngrx_entity.Dictionary<ActionStatus>) => any>;
|
|
2119
|
-
declare function actionStatusReducer(state: StatusState | undefined, action: Action): StatusState;
|
|
2120
|
-
|
|
2121
|
-
declare class NgrxExtModule {
|
|
2122
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgrxExtModule, never>;
|
|
2123
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<NgrxExtModule, never, [typeof i1.CommonModule, typeof _ngrx_store.StoreFeatureModule], never>;
|
|
2124
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<NgrxExtModule>;
|
|
2125
|
-
}
|
|
2126
|
-
|
|
2127
|
-
declare class ActionStateSpinnerComponent implements OnInit {
|
|
2128
|
-
status$: Observable<ActionStatus>;
|
|
2129
|
-
serverActionStatus$: Observable<ActionStatus>;
|
|
2130
|
-
serverStatusTypes: typeof serverStatusTypes;
|
|
2131
|
-
ngOnInit(): void;
|
|
2132
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionStateSpinnerComponent, never>;
|
|
2133
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<ActionStateSpinnerComponent, "lib-action-state-spinner", never, { "status$": { "alias": "status$"; "required": false; }; }, {}, never, never, true, never>;
|
|
2134
|
-
}
|
|
2135
|
-
|
|
2136
|
-
declare class ActionStateUiModule {
|
|
2137
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<ActionStateUiModule, never>;
|
|
2138
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<ActionStateUiModule, never, [typeof ActionStateSpinnerComponent], [typeof ActionStateSpinnerComponent]>;
|
|
2139
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<ActionStateUiModule>;
|
|
2140
|
-
}
|
|
2141
|
-
|
|
2142
|
-
/**
|
|
2143
|
-
* Creates a selector that can dispatch an action if conditions are met.
|
|
2144
|
-
* Note: The props of the selector factory must include the props of the action.
|
|
2145
|
-
* @param selectorFactory A method that returns a selector.
|
|
2146
|
-
* @param action A method that returns the action that will be dispatched when conditions are met. The method will be passed the args of the
|
|
2147
|
-
* selector factory and the result of the selector.
|
|
2148
|
-
* @param [dispatchIf = defaultFilter] Optional. A method that takes the result of the selector and returns a boolean. The actions gets dispatched
|
|
2149
|
-
* if true is returned. If no method is passed in than the action will be dispatched if the selector returns undefined or null.
|
|
2150
|
-
*/
|
|
2151
|
-
declare const createActionableSelector: <State, Result, Props extends any[]>(selectorFactory: ((...props: Props) => MemoizedSelector<State, Result>), action: ActionReturner<Props, Result>, dispatchIf?: (data: Result) => boolean, defaultValue?: Result) => (...props: Props) => MemoizedSelector<State, Result | undefined, (s1: LoadingState<Result>) => Result | undefined>;
|
|
2152
|
-
/**
|
|
2153
|
-
* Creates a selector that can run an action if conditions are met.
|
|
2154
|
-
* The action will run in the environment injector context if no injector is added to the options
|
|
2155
|
-
* Note: The props of the selector factory must include the props of the action.
|
|
2156
|
-
*/
|
|
2157
|
-
declare const createActionSelector: <State, Result, Props extends any[] = any[]>(options: CreateActionResultsOptions<State, Result, Props>) => (...props: [...Props]) => MemoizedSelector<State, Result | undefined, (s1: LoadingState<Result>) => Result | undefined>;
|
|
2158
|
-
declare const createActionableResultSelector: <State, Result, Props extends any[]>(selectorFactory: ((...props: Props) => MemoizedSelector<State, Result>), action: ActionReturner<Props, Result>, dispatchIf?: (data: Result) => boolean, defaultValue?: Result) => (...props: Props) => ActionableMemoizedSelector<State, LoadingState<Result>>;
|
|
2159
|
-
declare const createActionResultSelector: <State, Result, Props extends any[] = any[]>(options: CreateActionResultsOptions<State, Result, Props>) => (...props: Props) => ActionableMemoizedSelector<State, LoadingState<Result>>;
|
|
2160
|
-
declare const clearActionableSelectorRequestCache: () => {};
|
|
2161
|
-
declare function defaultFilter(data: any): boolean;
|
|
2162
|
-
declare function provideActionableSelector(): _angular_core.EnvironmentProviders;
|
|
2163
|
-
declare const setUpStoreFactory: () => void;
|
|
2164
|
-
declare function setUpStoreFactoryOld(store: Store, env: EnvironmentInjector): () => Promise<unknown>;
|
|
2165
|
-
interface CreateActionResultsOptions<State, Result, Props extends any[]> {
|
|
2166
|
-
/**
|
|
2167
|
-
* A method that returns a selector.
|
|
2168
|
-
*/
|
|
2169
|
-
selectorFactory: (...props: Props) => MemoizedSelector<State, Result>;
|
|
2170
|
-
/**
|
|
2171
|
-
* The action to run when conditions are met.
|
|
2172
|
-
* The method will be passed the args of the selector factory and the result of the selector.
|
|
2173
|
-
* @param props args of the selector factory and the result of the selector.
|
|
2174
|
-
*/
|
|
2175
|
-
action: (...props: [...Props, Result]) => () => void;
|
|
2176
|
-
/**
|
|
2177
|
-
* Optional. A method that takes the result of the selector and returns a boolean. The actions gets dispatched
|
|
2178
|
-
* if true is returned. If no method is passed in than the action will be dispatched if the selector returns undefined or null.
|
|
2179
|
-
* @param data The result of the selector.
|
|
2180
|
-
* @returns boolean
|
|
2181
|
-
*/
|
|
2182
|
-
dispatchIf?: (data: Result) => boolean;
|
|
2183
|
-
injector?: Injector;
|
|
2184
|
-
/**
|
|
2185
|
-
* The default value to use if the selector returns undefined or null.
|
|
2186
|
-
*/
|
|
2187
|
-
defaultValue?: Result;
|
|
2188
|
-
}
|
|
2189
|
-
interface LoadingState<T> {
|
|
2190
|
-
loading: boolean;
|
|
2191
|
-
result?: T;
|
|
2192
|
-
}
|
|
2193
|
-
type ActionableMemoizedSelector<State, Result> = MemoizedSelector<State, Result>;
|
|
2194
|
-
type ActionReturner<Props extends any[], Result = any> = (...props: [...Props, Result]) => Action;
|
|
2195
|
-
|
|
2196
|
-
export { ActionStateSpinnerComponent, ActionStateUiModule, ActionStatus, AppStatusState, ArrayStyle, AutoFocusDirective, CancellationToken, ClickEmitterDirective, ClickSubjectDirective, ConditionalClassesDirective, CreateTableBuilder, CustomCellDirective, CustomGroupRowDirective, CustomHeaderDirective, DateFilterComponent, DefaultVirtualScrollOptions, DialogDirective, DialogService, DialogWrapper, FieldType, FilterChipsComponent, FilterComponent, 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, RequestStateFactory, RequestStateStore, RequestStateStoreConfigToken, RequestStatus, RequestStrategy, ResizeColumnDirective, SortDirection, 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, actionStatusReducer, chainRequest, clearActionableSelectorRequestCache, combineArrays, createActionResultSelector, createActionSelector, createActionableResultSelector, createActionableSelector, createFailure, createFilterFunc, createFilterFuncs, createRequestor, createSuccess, 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 };
|
|
2197
|
-
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 };
|