@devopmaat/badaboom 1.3.7 → 1.3.9
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/fesm2022/devopmaat-badaboom.mjs +1291 -1047
- package/fesm2022/devopmaat-badaboom.mjs.map +1 -1
- package/index.d.ts +1229 -3
- package/lib/application/media/media-display/_bdb-media-display-theme.scss +36 -0
- package/lib/application/media/media-input/_bdb-media-input-theme.scss +36 -0
- package/lib/application/media/media-upload/_bdb-media-upload-theme.scss +36 -0
- package/lib/styles/_core-theme.scss +31 -0
- package/lib/styles/_theme.scss +35 -2
- package/lib/styles/material/_toolbar-theme.scss +7 -0
- package/package.json +5 -5
- package/lib/application/common/bdb-data-source.d.ts +0 -25
- package/lib/application/common/full-table/bdb-full-table.component.d.ts +0 -27
- package/lib/application/common/paginator/bdb-paginator.component.d.ts +0 -17
- package/lib/application/common/query-input/bdb-query-input.component.d.ts +0 -15
- package/lib/application/common/search/bdb-search-wrapper.component.d.ts +0 -13
- package/lib/application/common/search/bdb-search.component.d.ts +0 -43
- package/lib/application/common/table/bdb-cell.directive.d.ts +0 -9
- package/lib/application/common/table/bdb-column-builder.d.ts +0 -18
- package/lib/application/common/table/bdb-column-options.d.ts +0 -33
- package/lib/application/common/table/bdb-column-type.d.ts +0 -10
- package/lib/application/common/table/bdb-column.d.ts +0 -19
- package/lib/application/common/table/bdb-context-action.d.ts +0 -7
- package/lib/application/common/table/bdb-table.component.d.ts +0 -58
- package/lib/application/common/table/dynamic.pipe.d.ts +0 -9
- package/lib/application/exception-log/exception-log-table/exception-log-table.component.d.ts +0 -26
- package/lib/application/media/media-display/media-display.component.d.ts +0 -23
- package/lib/application/media/media-full-table/media-full-table.component.d.ts +0 -24
- package/lib/application/media/media-table/media-table.component.d.ts +0 -21
- package/lib/application/media/media-type.pipe.d.ts +0 -8
- package/lib/application/media/media-upload/media-drop.directive.d.ts +0 -27
- package/lib/application/media/media-upload/media-upload.component.d.ts +0 -15
- package/lib/application/task-log/task-log-outcome.pipe.d.ts +0 -8
- package/lib/application/task-log/task-log-status.pipe.d.ts +0 -8
- package/lib/application/task-log-parameter/task-log-parameter-value.pipe.d.ts +0 -10
- package/lib/application/user/user-table/user-table.component.d.ts +0 -25
- package/lib/bdb-auth-options.d.ts +0 -28
- package/lib/bdb-options.d.ts +0 -19
- package/lib/common/alert/bdb-alert.component.d.ts +0 -10
- package/lib/common/alert-error-response/bdb-alert-error-response.component.d.ts +0 -16
- package/lib/common/bdb-flex-child.directive.d.ts +0 -11
- package/lib/common/bdb-flex.directive.d.ts +0 -28
- package/lib/common/bdb-form-error.directive.d.ts +0 -15
- package/lib/common/bdb-grid-child.directive.d.ts +0 -14
- package/lib/common/bdb-grid.directive.d.ts +0 -26
- package/lib/common/bdb-palette.d.ts +0 -2
- package/lib/common/boolean-display/bdb-boolean-display.component.d.ts +0 -7
- package/lib/common/collapse-row/bdb-collapse-row.component.d.ts +0 -9
- package/lib/common/error-response-dialog/error-response-dialog.component.d.ts +0 -10
- package/lib/common/field/bdb-field.component.d.ts +0 -7
- package/lib/common/file-size.pipe.d.ts +0 -7
- package/lib/common/function.pipe.d.ts +0 -7
- package/lib/common/layout-error.d.ts +0 -3
- package/lib/common/linked-list.d.ts +0 -15
- package/lib/common/plain-number.pipe.d.ts +0 -7
- package/lib/common/youtube-player/youtube-player.component.d.ts +0 -14
- package/lib/domain/auth/account-info.d.ts +0 -6
- package/lib/domain/auth/account.service.d.ts +0 -29
- package/lib/domain/auth/auth.service.d.ts +0 -41
- package/lib/domain/auth/reset-password-token.d.ts +0 -4
- package/lib/domain/auth/token-expired.interceptor.d.ts +0 -2
- package/lib/domain/auth/token-reponse.d.ts +0 -5
- package/lib/domain/auth/token.interceptor.d.ts +0 -2
- package/lib/domain/common/bdb-filter.d.ts +0 -9
- package/lib/domain/common/bdb-request.d.ts +0 -10
- package/lib/domain/common/bdb-response.d.ts +0 -6
- package/lib/domain/common/entities/bdb-entity-read.d.ts +0 -3
- package/lib/domain/common/entities/bdb-entity-update.d.ts +0 -3
- package/lib/domain/common/entities/bdb-entity.d.ts +0 -3
- package/lib/domain/common/services/bdb-service-cr.d.ts +0 -7
- package/lib/domain/common/services/bdb-service-crd.d.ts +0 -7
- package/lib/domain/common/services/bdb-service-cru.d.ts +0 -8
- package/lib/domain/common/services/bdb-service-crud.d.ts +0 -8
- package/lib/domain/common/services/bdb-service-r.d.ts +0 -10
- package/lib/domain/common/services/bdb-service-rd.d.ts +0 -7
- package/lib/domain/common/services/bdb-service-ru.d.ts +0 -8
- package/lib/domain/common/services/bdb-service-rud.d.ts +0 -8
- package/lib/domain/common/services/bdb-service.d.ts +0 -6
- package/lib/domain/entities/exception-log/exception-log-read.d.ts +0 -9
- package/lib/domain/entities/exception-log/exception-log.d.ts +0 -9
- package/lib/domain/entities/exception-log/exception-log.service.d.ts +0 -9
- package/lib/domain/entities/media/media-preview.d.ts +0 -6
- package/lib/domain/entities/media/media.d.ts +0 -12
- package/lib/domain/entities/media/media.service.d.ts +0 -11
- package/lib/domain/entities/role/role-read.d.ts +0 -7
- package/lib/domain/entities/role/role.d.ts +0 -4
- package/lib/domain/entities/role/role.service.d.ts +0 -9
- package/lib/domain/entities/task-log/task-log-create.d.ts +0 -5
- package/lib/domain/entities/task-log/task-log-read.d.ts +0 -11
- package/lib/domain/entities/task-log/task-log.d.ts +0 -15
- package/lib/domain/entities/task-log/task-log.service.d.ts +0 -12
- package/lib/domain/entities/task-log-parameter/task-log-parameter-create.d.ts +0 -7
- package/lib/domain/entities/task-log-parameter/task-log-parameter-read.d.ts +0 -11
- package/lib/domain/entities/task-log-parameter/task-log-parameter.d.ts +0 -10
- package/lib/domain/entities/task-log-parameter/task-log-parameter.service.d.ts +0 -9
- package/lib/domain/entities/task-log-schedule/task-log-schedule-create.d.ts +0 -5
- package/lib/domain/entities/task-log-schedule/task-log-schedule-read.d.ts +0 -7
- package/lib/domain/entities/task-log-schedule/task-log-schedule-update.d.ts +0 -5
- package/lib/domain/entities/task-log-schedule/task-log-schedule.d.ts +0 -7
- package/lib/domain/entities/task-log-schedule/task-log-schedule.service.d.ts +0 -11
- package/lib/domain/entities/user/user-create.d.ts +0 -3
- package/lib/domain/entities/user/user-read.d.ts +0 -6
- package/lib/domain/entities/user/user-update.d.ts +0 -4
- package/lib/domain/entities/user/user.d.ts +0 -5
- package/lib/domain/entities/user/user.service.d.ts +0 -11
- package/lib/domain/entities/user-role/user-role-create.d.ts +0 -4
- package/lib/domain/entities/user-role/user-role-read.d.ts +0 -7
- package/lib/domain/entities/user-role/user-role.d.ts +0 -7
- package/lib/domain/entities/user-role/user-role.service.d.ts +0 -10
- package/lib/domain/enums/media-type.d.ts +0 -6
- package/lib/domain/enums/task-log-outcome.d.ts +0 -8
- package/lib/domain/enums/task-log-parameter-type.d.ts +0 -6
- package/lib/domain/enums/task-log-status.d.ts +0 -7
- package/lib/domain/tasks/task-log-scheduler.service.d.ts +0 -11
- package/lib/domain/tasks/task-log-type-parameter.d.ts +0 -11
- package/lib/domain/tasks/task-log-type.d.ts +0 -7
- package/lib/domain/tasks/task-log-type.service.d.ts +0 -14
- package/lib/lib.config.d.ts +0 -11
- package/lib/presentation/access-denied-page/access-denied-page.component.d.ts +0 -16
- package/lib/presentation/auth-container/auth-container.component.d.ts +0 -5
- package/lib/presentation/forgot-password-page/forgot-password-page.component.d.ts +0 -20
- package/lib/presentation/invalid-token-page/invalid-token-page.component.d.ts +0 -8
- package/lib/presentation/logged-out.guard.d.ts +0 -2
- package/lib/presentation/login-page/login-page.component.d.ts +0 -27
- package/lib/presentation/logout-page/logout-page.component.d.ts +0 -13
- package/lib/presentation/reset-password-page/reset-password-page.component.d.ts +0 -31
- package/lib/presentation/reset-password.resolver.d.ts +0 -3
- package/lib/presentation/role.guard.d.ts +0 -2
- package/public-api.d.ts +0 -110
package/index.d.ts
CHANGED
|
@@ -1,5 +1,1231 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, EnvironmentProviders, TemplateRef, Type, PipeTransform, EventEmitter, QueryList, OnInit, OnDestroy, AfterViewInit, ElementRef, OnChanges, AfterContentInit, TrackByFunction, Renderer2 } from '@angular/core';
|
|
3
|
+
import { Routes, Router, ActivatedRoute, CanActivateFn, ResolveFn } from '@angular/router';
|
|
4
|
+
import { DataSource, SelectionModel, CollectionViewer, ListRange } from '@angular/cdk/collections';
|
|
5
|
+
import { Observable, BehaviorSubject, Subject } from 'rxjs';
|
|
6
|
+
import { HttpClient, HttpErrorResponse, HttpInterceptorFn } from '@angular/common/http';
|
|
7
|
+
import { PageEvent } from '@angular/material/paginator';
|
|
8
|
+
import { FormControl, ControlContainer, ControlValueAccessor, NgControl, AbstractControl, FormGroup, ValidatorFn } from '@angular/forms';
|
|
9
|
+
import { MatAutocompleteTrigger, MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
10
|
+
import { MatIconButton } from '@angular/material/button';
|
|
11
|
+
import { MatMenuTrigger } from '@angular/material/menu';
|
|
12
|
+
import { Sort } from '@angular/material/sort';
|
|
13
|
+
import * as _devopmaat_badaboom from '@devopmaat/badaboom';
|
|
14
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
15
|
+
import { MatFormFieldControl } from '@angular/material/form-field';
|
|
16
|
+
import { MatDialog } from '@angular/material/dialog';
|
|
17
|
+
|
|
18
|
+
interface BdbAuthOptions {
|
|
19
|
+
loginPath: string;
|
|
20
|
+
logoutPath: string;
|
|
21
|
+
accessDeniedPath: string;
|
|
22
|
+
forgotPasswordPath: string;
|
|
23
|
+
resetPasswordPath: string;
|
|
24
|
+
invalidTokenPath: string;
|
|
25
|
+
addPresentation: boolean;
|
|
26
|
+
}
|
|
27
|
+
declare class BdbAuthOptionsBuilder {
|
|
28
|
+
private _loginPath?;
|
|
29
|
+
private _logoutPath?;
|
|
30
|
+
private _accessDeniedPath?;
|
|
31
|
+
private _forgotPasswordPath?;
|
|
32
|
+
private _resetPasswordPath?;
|
|
33
|
+
private _invalidTokenPath?;
|
|
34
|
+
private _addPresentation;
|
|
35
|
+
constructor(configure: BdbAuthOptionsConfigure);
|
|
36
|
+
set loginPath(path: string);
|
|
37
|
+
set logoutPath(path: string);
|
|
38
|
+
set accessDeniedPath(path: string);
|
|
39
|
+
set forgotPasswordPath(path: string);
|
|
40
|
+
set resetPasswordPath(path: string);
|
|
41
|
+
set invalidTokenPath(path: string);
|
|
42
|
+
addPresentation(): void;
|
|
43
|
+
build(): BdbAuthOptions;
|
|
44
|
+
}
|
|
45
|
+
type BdbAuthOptionsConfigure = (_: BdbAuthOptionsBuilder) => void;
|
|
46
|
+
|
|
47
|
+
interface BdbOptions {
|
|
48
|
+
backendUrl: string;
|
|
49
|
+
mediaUrl: string;
|
|
50
|
+
authOptions?: BdbAuthOptions;
|
|
51
|
+
}
|
|
52
|
+
declare class BdbOptionsBuilder {
|
|
53
|
+
private _backendUrl;
|
|
54
|
+
private _mediaUrl;
|
|
55
|
+
private _auth?;
|
|
56
|
+
constructor(configure: BdbOptionsConfigure);
|
|
57
|
+
set backendUrl(url: string);
|
|
58
|
+
set mediaUrl(url: string);
|
|
59
|
+
addAuth(configure: BdbAuthOptionsConfigure): void;
|
|
60
|
+
build(): BdbOptions;
|
|
61
|
+
}
|
|
62
|
+
type BdbOptionsConfigure = (_: BdbOptionsBuilder) => void;
|
|
63
|
+
declare const BDB_OPTIONS: InjectionToken<BdbOptions>;
|
|
64
|
+
|
|
1
65
|
/**
|
|
2
|
-
*
|
|
66
|
+
* Configures BaDaBoom by providing necessary tokens.
|
|
67
|
+
* Takes root routes and provides the router with these routes, appending routes if specified
|
|
68
|
+
* @param {BdbOptionsConfigure} optionsConfigure
|
|
69
|
+
* @param {Routes} routes
|
|
70
|
+
* @return {EnvironmentProviders}
|
|
3
71
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
72
|
+
declare function provideBaDaBoom(optionsConfigure: BdbOptionsConfigure, routes: Routes): EnvironmentProviders;
|
|
73
|
+
|
|
74
|
+
interface BdbEntityRead {
|
|
75
|
+
id: number;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
interface BdbResponse<T> {
|
|
79
|
+
page: number;
|
|
80
|
+
pageSize: number;
|
|
81
|
+
rows: T[];
|
|
82
|
+
count: number;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
interface BdbFilter {
|
|
86
|
+
type: 'Field' | 'Group';
|
|
87
|
+
field?: string;
|
|
88
|
+
operator?: 'Equals' | 'IsNull' | 'IsEmpty' | 'StartsWith' | 'Contains' | 'EndsWith' | 'LessThan' | 'LessThanOrEqual' | 'GreaterThan' | 'GreaterThanOrEqual';
|
|
89
|
+
parameters?: unknown[];
|
|
90
|
+
filters?: BdbFilter[];
|
|
91
|
+
combine?: 'And' | 'Or';
|
|
92
|
+
negate?: boolean;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
interface BdbRequest {
|
|
96
|
+
page?: number;
|
|
97
|
+
pageSize?: number;
|
|
98
|
+
sortField?: string;
|
|
99
|
+
sortDirection?: '' | 'asc' | 'desc';
|
|
100
|
+
query?: string;
|
|
101
|
+
baseFilter?: string;
|
|
102
|
+
filter?: BdbFilter;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface BdbEntity {
|
|
106
|
+
id: number;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
declare abstract class BdbService {
|
|
110
|
+
baseUrl: string;
|
|
111
|
+
httpClient: HttpClient;
|
|
112
|
+
constructor(areaName: string);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
declare abstract class BdbServiceR<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead> extends BdbService {
|
|
116
|
+
read(request: BdbRequest): Observable<BdbResponse<TEntityRead>>;
|
|
117
|
+
get(id: number): Observable<TEntity>;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
declare class BdbDataSource<TEntityRead extends BdbEntityRead> implements DataSource<TEntityRead> {
|
|
121
|
+
private service;
|
|
122
|
+
dataSubject: BehaviorSubject<TEntityRead[]>;
|
|
123
|
+
private responseSubject;
|
|
124
|
+
private loadingSubject;
|
|
125
|
+
private errorSubject;
|
|
126
|
+
loading$: Observable<boolean>;
|
|
127
|
+
error$: Observable<HttpErrorResponse | null>;
|
|
128
|
+
response$: Observable<BdbResponse<TEntityRead>>;
|
|
129
|
+
readonly request: BdbRequest;
|
|
130
|
+
get data(): TEntityRead[];
|
|
131
|
+
constructor(service: BdbServiceR<BdbEntity, TEntityRead>, initialRequest?: BdbRequest);
|
|
132
|
+
disconnect(): void;
|
|
133
|
+
connect(): Observable<TEntityRead[] | readonly TEntityRead[]>;
|
|
134
|
+
loadMethod(service: BdbServiceR<BdbEntity, TEntityRead>, request: BdbRequest): Observable<BdbResponse<TEntityRead>>;
|
|
135
|
+
load(): void;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
declare enum BdbColumnType {
|
|
139
|
+
String = "String",
|
|
140
|
+
Number = "Number",
|
|
141
|
+
Percentage = "Percentage",
|
|
142
|
+
Currency = "Currency",
|
|
143
|
+
Date = "Date",
|
|
144
|
+
Boolean = "Boolean",
|
|
145
|
+
Enum = "Enum",
|
|
146
|
+
Custom = "Custom"
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
interface BdbColumn<TRead, TField> {
|
|
150
|
+
template?: TemplateRef<never> | undefined;
|
|
151
|
+
field: (x: TRead) => TField;
|
|
152
|
+
type: BdbColumnType;
|
|
153
|
+
id: string;
|
|
154
|
+
title: string;
|
|
155
|
+
sortDisabled?: boolean;
|
|
156
|
+
width?: number;
|
|
157
|
+
textAlign?: 'start' | 'end';
|
|
158
|
+
format?: string;
|
|
159
|
+
icon?: boolean;
|
|
160
|
+
pipe?: Type<PipeTransform>;
|
|
161
|
+
currencyCode?: string;
|
|
162
|
+
display?: string;
|
|
163
|
+
digitsInfo?: string;
|
|
164
|
+
locale?: string;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
interface BdbContextAction<TRead> {
|
|
168
|
+
icon: string;
|
|
169
|
+
color: string;
|
|
170
|
+
label: string;
|
|
171
|
+
identifier: string;
|
|
172
|
+
condition?: (x: TRead) => boolean;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
type BdbPalette = 'primary' | 'accent' | 'danger' | 'warn' | 'success' | 'info' | undefined;
|
|
176
|
+
type BdbM3Palette = 'primary' | 'secondary' | 'tertiary' | 'error' | 'warn' | 'success' | 'info' | undefined;
|
|
177
|
+
|
|
178
|
+
declare class BdbCellDirective {
|
|
179
|
+
templateRef: TemplateRef<never>;
|
|
180
|
+
bdbCellDef: string;
|
|
181
|
+
constructor(templateRef: TemplateRef<never>);
|
|
182
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbCellDirective, never>;
|
|
183
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BdbCellDirective, "ng-template[bdbCellDef]", never, { "bdbCellDef": { "alias": "bdbCellDef"; "required": false; }; }, {}, never, never, true, never>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
declare class BdbFullTableComponent<TEntityRead extends BdbEntity> {
|
|
187
|
+
dataSource: BdbDataSource<TEntityRead>;
|
|
188
|
+
columns: BdbColumn<TEntityRead, unknown>[];
|
|
189
|
+
displayedColumns: string[];
|
|
190
|
+
autoLoad?: boolean;
|
|
191
|
+
selection?: SelectionModel<TEntityRead>;
|
|
192
|
+
contextActions: BdbContextAction<TEntityRead>[];
|
|
193
|
+
rowColor?: (x: TEntityRead) => BdbM3Palette;
|
|
194
|
+
showToolbar: boolean;
|
|
195
|
+
rowClick: EventEmitter<TEntityRead>;
|
|
196
|
+
contextAction: EventEmitter<{
|
|
197
|
+
action: BdbContextAction<TEntityRead>;
|
|
198
|
+
row: TEntityRead;
|
|
199
|
+
}>;
|
|
200
|
+
cellTemplates: QueryList<BdbCellDirective> | undefined;
|
|
201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbFullTableComponent<any>, never>;
|
|
202
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbFullTableComponent<any>, "bdb-full-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "contextActions": { "alias": "contextActions"; "required": false; }; "rowColor": { "alias": "rowColor"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; }, { "rowClick": "rowClick"; "contextAction": "contextAction"; }, ["cellTemplates"], ["toolbar-item"], true, never>;
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
declare class BdbPaginatorComponent<TEntityRead extends BdbEntityRead> implements OnInit, OnDestroy {
|
|
206
|
+
dataSource: BdbDataSource<TEntityRead>;
|
|
207
|
+
private _onDestroy;
|
|
208
|
+
pageSize?: number;
|
|
209
|
+
page?: number;
|
|
210
|
+
length?: number;
|
|
211
|
+
ngOnInit(): void;
|
|
212
|
+
ngOnDestroy(): void;
|
|
213
|
+
changePage(event: PageEvent): void;
|
|
214
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbPaginatorComponent<any>, never>;
|
|
215
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbPaginatorComponent<any>, "bdb-paginator", never, { "dataSource": { "alias": "dataSource"; "required": false; }; }, {}, never, never, true, never>;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
declare class BdbQueryInputComponent<TEntityRead extends BdbEntityRead> implements OnInit, OnDestroy {
|
|
219
|
+
class: string;
|
|
220
|
+
dataSource: BdbDataSource<TEntityRead>;
|
|
221
|
+
private _onDestroy;
|
|
222
|
+
queryFormControl: FormControl<string | undefined>;
|
|
223
|
+
ngOnInit(): void;
|
|
224
|
+
ngOnDestroy(): void;
|
|
225
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbQueryInputComponent<any>, never>;
|
|
226
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbQueryInputComponent<any>, "bdb-query-input[dataSource]", never, { "dataSource": { "alias": "dataSource"; "required": false; }; }, {}, never, never, true, never>;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
declare abstract class BdbSearchWrapperBaseComponent<TEntityRead extends BdbEntityRead> implements OnInit {
|
|
230
|
+
controlName?: string;
|
|
231
|
+
control?: FormControl<TEntityRead | null>;
|
|
232
|
+
formControl: FormControl<TEntityRead | null>;
|
|
233
|
+
controlContainer: ControlContainer;
|
|
234
|
+
ngOnInit(): void;
|
|
235
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbSearchWrapperBaseComponent<any>, never>;
|
|
236
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbSearchWrapperBaseComponent<any>, "ng-component", never, { "controlName": { "alias": "controlName"; "required": false; }; "control": { "alias": "control"; "required": false; }; }, {}, never, never, true, never>;
|
|
237
|
+
}
|
|
238
|
+
|
|
239
|
+
declare class BdbSearchComponent<TEntityRead extends BdbEntityRead> implements CollectionViewer, OnInit, AfterViewInit, OnDestroy, ControlValueAccessor {
|
|
240
|
+
ngControl: NgControl;
|
|
241
|
+
dataSource: BdbDataSource<TEntityRead>;
|
|
242
|
+
displayFn: (_: TEntityRead | string) => string;
|
|
243
|
+
label: string;
|
|
244
|
+
hint: string;
|
|
245
|
+
placeholder: string;
|
|
246
|
+
searchInput?: ElementRef<HTMLInputElement>;
|
|
247
|
+
clearButton?: MatIconButton;
|
|
248
|
+
autoCompleteTrigger?: MatAutocompleteTrigger;
|
|
249
|
+
private readonly _onDestroy;
|
|
250
|
+
viewChange: BehaviorSubject<ListRange>;
|
|
251
|
+
searchOptions?: Observable<TEntityRead[] | readonly TEntityRead[]>;
|
|
252
|
+
searchCtrl: FormControl<string | TEntityRead>;
|
|
253
|
+
inputTabIndex: number;
|
|
254
|
+
hasValue: boolean;
|
|
255
|
+
isDisabled: boolean;
|
|
256
|
+
onChange?: (_: TEntityRead | null) => void;
|
|
257
|
+
onTouch?: () => void;
|
|
258
|
+
constructor(ngControl: NgControl);
|
|
259
|
+
ngOnInit(): void;
|
|
260
|
+
ngAfterViewInit(): void;
|
|
261
|
+
ngOnDestroy(): void;
|
|
262
|
+
writeValue(obj: TEntityRead | null): void;
|
|
263
|
+
registerOnChange(fn: (_: TEntityRead | null) => void): void;
|
|
264
|
+
registerOnTouched(fn: () => void): void;
|
|
265
|
+
setDisabledState(isDisabled: boolean): void;
|
|
266
|
+
onFocus(): void;
|
|
267
|
+
onBlur(): void;
|
|
268
|
+
selectOption(event: MatAutocompleteSelectedEvent): void;
|
|
269
|
+
clear(): void;
|
|
270
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbSearchComponent<any>, [{ optional: true; self: true; }]>;
|
|
271
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbSearchComponent<any>, "bdb-search", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "displayFn": { "alias": "displayFn"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; }, {}, never, never, true, never>;
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
interface BdbColumnOptions {
|
|
275
|
+
id?: string;
|
|
276
|
+
sortDisabled?: boolean;
|
|
277
|
+
width?: number;
|
|
278
|
+
textAlign?: 'start' | 'end';
|
|
279
|
+
}
|
|
280
|
+
interface BdbBooleanColumnOptions extends BdbColumnOptions {
|
|
281
|
+
icon?: boolean;
|
|
282
|
+
}
|
|
283
|
+
interface BdbDateColumnOptions extends BdbColumnOptions {
|
|
284
|
+
format?: string;
|
|
285
|
+
}
|
|
286
|
+
interface BdbEnumColumnOptions extends BdbColumnOptions {
|
|
287
|
+
pipe?: Type<PipeTransform>;
|
|
288
|
+
}
|
|
289
|
+
interface BdbNumberColumnOptions extends BdbColumnOptions {
|
|
290
|
+
pipe?: Type<PipeTransform>;
|
|
291
|
+
format?: string;
|
|
292
|
+
}
|
|
293
|
+
interface BdbPercentageColumnOptions extends BdbColumnOptions {
|
|
294
|
+
digitsInfo?: string;
|
|
295
|
+
locale?: string;
|
|
296
|
+
}
|
|
297
|
+
interface BdbCurrencyColumnOptions extends BdbColumnOptions {
|
|
298
|
+
currencyCode?: string;
|
|
299
|
+
display?: string;
|
|
300
|
+
digitsInfo?: string;
|
|
301
|
+
locale?: string;
|
|
302
|
+
}
|
|
303
|
+
interface BdbStringColumnOptions extends BdbColumnOptions {
|
|
304
|
+
pipe?: Type<PipeTransform>;
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
declare class BdbColumnBuilder<TRead extends BdbEntityRead> {
|
|
308
|
+
build(...columns: BdbColumn<TRead, unknown>[]): BdbColumn<TRead, unknown>[];
|
|
309
|
+
string(field: (x: TRead) => string | undefined, title: string, options?: BdbStringColumnOptions): BdbColumn<TRead, string | undefined>;
|
|
310
|
+
number(field: (x: TRead) => number | undefined, title: string, options?: BdbNumberColumnOptions): BdbColumn<TRead, number | undefined>;
|
|
311
|
+
percentage(field: (x: TRead) => number | undefined, title: string, options?: BdbPercentageColumnOptions): BdbColumn<TRead, number | undefined>;
|
|
312
|
+
currency(field: (x: TRead) => number | undefined, title: string, options?: BdbCurrencyColumnOptions): BdbColumn<TRead, number | undefined>;
|
|
313
|
+
date(field: (x: TRead) => Date | undefined, title: string, options?: BdbDateColumnOptions): BdbColumn<TRead, Date | undefined>;
|
|
314
|
+
boolean(field: (x: TRead) => boolean | undefined, title: string, options?: BdbBooleanColumnOptions): BdbColumn<TRead, boolean | undefined>;
|
|
315
|
+
enum<TEnum>(field: (x: TRead) => TEnum | undefined, title: string, options?: BdbEnumColumnOptions): BdbColumn<TRead, TEnum | undefined>;
|
|
316
|
+
custom(id: string, title: string, options?: BdbColumnOptions): BdbColumn<TRead, unknown>;
|
|
317
|
+
private _buildCommonOptions;
|
|
318
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbColumnBuilder<any>, never>;
|
|
319
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BdbColumnBuilder<any>>;
|
|
320
|
+
}
|
|
321
|
+
|
|
322
|
+
declare class BdbTableComponent<TRead extends BdbEntity> implements OnInit, OnChanges, AfterContentInit, OnDestroy {
|
|
323
|
+
private readonly _onDestroy;
|
|
324
|
+
columns: BdbColumn<TRead, unknown>[];
|
|
325
|
+
dataSource: BdbDataSource<TRead>;
|
|
326
|
+
autoLoad?: boolean;
|
|
327
|
+
displayedColumns: string[];
|
|
328
|
+
contextActions: BdbContextAction<TRead>[];
|
|
329
|
+
selection?: SelectionModel<TRead>;
|
|
330
|
+
selectOnRowClick: boolean;
|
|
331
|
+
selectedRowClass: string;
|
|
332
|
+
isClickable: boolean;
|
|
333
|
+
rowClick: EventEmitter<TRead>;
|
|
334
|
+
contextAction: EventEmitter<{
|
|
335
|
+
action: BdbContextAction<TRead>;
|
|
336
|
+
row: TRead;
|
|
337
|
+
}>;
|
|
338
|
+
contextMenu: MatMenuTrigger;
|
|
339
|
+
cellTemplates: QueryList<BdbCellDirective> | undefined;
|
|
340
|
+
error: HttpErrorResponse | undefined;
|
|
341
|
+
columnType: typeof BdbColumnType;
|
|
342
|
+
contextMenuPosition: {
|
|
343
|
+
x: string;
|
|
344
|
+
y: string;
|
|
345
|
+
};
|
|
346
|
+
rowColor?: (x: TRead) => BdbM3Palette;
|
|
347
|
+
trackById: TrackByFunction<BdbEntity>;
|
|
348
|
+
ngOnInit(): void;
|
|
349
|
+
ngOnChanges(): void;
|
|
350
|
+
ngAfterContentInit(): void;
|
|
351
|
+
ngOnDestroy(): void;
|
|
352
|
+
load(): void;
|
|
353
|
+
setColumnTemplates(): void;
|
|
354
|
+
onRowClick(row: TRead): void;
|
|
355
|
+
sortData(event: Sort): void;
|
|
356
|
+
onContextMenu(event: MouseEvent, row: TRead): void;
|
|
357
|
+
onContextMenuAction(action: BdbContextAction<TRead>, row: TRead): void;
|
|
358
|
+
isAllSelected(): boolean;
|
|
359
|
+
anySelected(): boolean;
|
|
360
|
+
toggleAllRows(): void;
|
|
361
|
+
rowClass(row: TRead): {
|
|
362
|
+
[klass: string]: unknown;
|
|
363
|
+
} | undefined;
|
|
364
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbTableComponent<any>, never>;
|
|
365
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbTableComponent<any>, "bdb-table[dataSource]", never, { "columns": { "alias": "columns"; "required": false; }; "dataSource": { "alias": "dataSource"; "required": false; }; "autoLoad": { "alias": "autoLoad"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "contextActions": { "alias": "contextActions"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "selectOnRowClick": { "alias": "selectOnRowClick"; "required": false; }; "selectedRowClass": { "alias": "selectedRowClass"; "required": false; }; "isClickable": { "alias": "isClickable"; "required": false; }; "rowColor": { "alias": "rowColor"; "required": false; }; }, { "rowClick": "rowClick"; "contextAction": "contextAction"; }, ["cellTemplates"], ["*"], true, never>;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
interface ExceptionLogRead extends BdbEntityRead {
|
|
369
|
+
code: string;
|
|
370
|
+
message: string;
|
|
371
|
+
description: string;
|
|
372
|
+
type: string;
|
|
373
|
+
created: Date;
|
|
374
|
+
createdBy: string;
|
|
375
|
+
}
|
|
376
|
+
|
|
377
|
+
declare class ExceptionLogTableComponent {
|
|
378
|
+
private cb;
|
|
379
|
+
private router;
|
|
380
|
+
private activatedRoute;
|
|
381
|
+
dataSource: BdbDataSource<ExceptionLogRead>;
|
|
382
|
+
displayedColumns: string[];
|
|
383
|
+
rowClick: EventEmitter<ExceptionLogRead>;
|
|
384
|
+
columns: BdbColumn<ExceptionLogRead, unknown>[];
|
|
385
|
+
constructor(cb: BdbColumnBuilder<ExceptionLogRead>, router: Router, activatedRoute: ActivatedRoute);
|
|
386
|
+
contextActions: BdbContextAction<ExceptionLogRead>[];
|
|
387
|
+
onRowClick(row: ExceptionLogRead): void;
|
|
388
|
+
onContextAction(event: {
|
|
389
|
+
action: BdbContextAction<ExceptionLogRead>;
|
|
390
|
+
row: ExceptionLogRead;
|
|
391
|
+
}): void;
|
|
392
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExceptionLogTableComponent, never>;
|
|
393
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExceptionLogTableComponent, "bdb-exception-log-table[dataSource]", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "contextActions": { "alias": "contextActions"; "required": false; }; }, { "rowClick": "rowClick"; }, never, never, true, never>;
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
declare enum MediaType {
|
|
397
|
+
Image = "Image",
|
|
398
|
+
Video = "Video",
|
|
399
|
+
File = "File"
|
|
400
|
+
}
|
|
401
|
+
declare const MediaTypeMap: Map<MediaType, string>;
|
|
402
|
+
|
|
403
|
+
interface MediaPreview extends BdbEntity {
|
|
404
|
+
fileName: string;
|
|
405
|
+
height: number;
|
|
406
|
+
width: number;
|
|
407
|
+
}
|
|
408
|
+
|
|
409
|
+
interface Media extends BdbEntity {
|
|
410
|
+
fileName?: string;
|
|
411
|
+
fileSize?: number;
|
|
412
|
+
height?: number;
|
|
413
|
+
preview?: MediaPreview;
|
|
414
|
+
reference?: string;
|
|
415
|
+
type: MediaType;
|
|
416
|
+
width?: number;
|
|
417
|
+
originalFileName?: string;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
declare class BdbMediaDisplayComponent implements OnChanges {
|
|
421
|
+
media?: Media;
|
|
422
|
+
mode: 'preview' | 'live' | 'details';
|
|
423
|
+
overlayBehavior: 'hover' | 'always';
|
|
424
|
+
width?: number;
|
|
425
|
+
height?: number;
|
|
426
|
+
alt?: string;
|
|
427
|
+
bdbOptions: _devopmaat_badaboom.BdbOptions;
|
|
428
|
+
class: string;
|
|
429
|
+
src?: string;
|
|
430
|
+
mediaType: typeof MediaType;
|
|
431
|
+
hasError: boolean;
|
|
432
|
+
noMediaUrl?: string;
|
|
433
|
+
ngOnChanges(): void;
|
|
434
|
+
getSource(media?: Media, download?: boolean): string | undefined;
|
|
435
|
+
getDownloadUrl(): string | undefined;
|
|
436
|
+
getFileExtension(fileName: string): string | undefined;
|
|
437
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbMediaDisplayComponent, never>;
|
|
438
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbMediaDisplayComponent, "bdb-media-display", never, { "media": { "alias": "media"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "overlayBehavior": { "alias": "overlayBehavior"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "alt": { "alias": "alt"; "required": false; }; }, {}, never, never, true, never>;
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
declare class MediaFullTableComponent {
|
|
442
|
+
dataSource: BdbDataSource<Media>;
|
|
443
|
+
displayedColumns: string[];
|
|
444
|
+
selection?: SelectionModel<Media>;
|
|
445
|
+
showToolbar: boolean;
|
|
446
|
+
contextActions: BdbContextAction<Media>[];
|
|
447
|
+
contextAction: EventEmitter<{
|
|
448
|
+
action: BdbContextAction<Media>;
|
|
449
|
+
row: Media;
|
|
450
|
+
}>;
|
|
451
|
+
rowClick: EventEmitter<Media>;
|
|
452
|
+
cb: BdbColumnBuilder<Media>;
|
|
453
|
+
columns: BdbColumn<Media, unknown>[];
|
|
454
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaFullTableComponent, never>;
|
|
455
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MediaFullTableComponent, "bdb-media-full-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "showToolbar": { "alias": "showToolbar"; "required": false; }; "contextActions": { "alias": "contextActions"; "required": false; }; }, { "contextAction": "contextAction"; "rowClick": "rowClick"; }, never, ["toolbar-item", "*"], true, never>;
|
|
456
|
+
}
|
|
457
|
+
|
|
458
|
+
declare class BdbMediaInputComponent implements ControlValueAccessor, MatFormFieldControl<Media | undefined>, OnDestroy {
|
|
459
|
+
ngControl: NgControl;
|
|
460
|
+
class: string;
|
|
461
|
+
clearOnDragOver: boolean;
|
|
462
|
+
mediaType: typeof MediaType;
|
|
463
|
+
stateChanges: Subject<void>;
|
|
464
|
+
private _value?;
|
|
465
|
+
touched: boolean;
|
|
466
|
+
set value(value: Media | undefined);
|
|
467
|
+
get value(): Media | undefined;
|
|
468
|
+
ngOnDestroy(): void;
|
|
469
|
+
static nextId: number;
|
|
470
|
+
id: string;
|
|
471
|
+
get placeholder(): string;
|
|
472
|
+
set placeholder(plh: string);
|
|
473
|
+
private _placeholder;
|
|
474
|
+
error?: HttpErrorResponse;
|
|
475
|
+
constructor(ngControl: NgControl);
|
|
476
|
+
ngAfterViewInit(): void;
|
|
477
|
+
focused: boolean;
|
|
478
|
+
onFocusIn(event: FocusEvent): void;
|
|
479
|
+
onFocusOut(event: FocusEvent): void;
|
|
480
|
+
get empty(): boolean;
|
|
481
|
+
shouldLabelFloat: boolean;
|
|
482
|
+
get required(): boolean;
|
|
483
|
+
get disabled(): boolean;
|
|
484
|
+
set disabled(value: BooleanInput);
|
|
485
|
+
private _disabled;
|
|
486
|
+
get errorState(): boolean;
|
|
487
|
+
controlType: string;
|
|
488
|
+
userAriaDescribedBy?: string;
|
|
489
|
+
setDescribedByIds(ids: string[]): void;
|
|
490
|
+
onContainerClick(event: MouseEvent): void;
|
|
491
|
+
isDisabled: boolean;
|
|
492
|
+
onChange: any;
|
|
493
|
+
onTouched: any;
|
|
494
|
+
writeValue(value: Media | undefined): void;
|
|
495
|
+
registerOnChange(fn: any): void;
|
|
496
|
+
registerOnTouched(fn: any): void;
|
|
497
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
498
|
+
onUploadComplete($event: Media): void;
|
|
499
|
+
clear(): void;
|
|
500
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbMediaInputComponent, [{ optional: true; self: true; }]>;
|
|
501
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbMediaInputComponent, "bdb-media-input", never, { "clearOnDragOver": { "alias": "clearOnDragOver"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "userAriaDescribedBy": { "alias": "aria-describedby"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
502
|
+
}
|
|
503
|
+
|
|
504
|
+
declare class MediaTableComponent {
|
|
505
|
+
dataSource: BdbDataSource<Media>;
|
|
506
|
+
displayedColumns: string[];
|
|
507
|
+
contextActions: BdbContextAction<Media>[];
|
|
508
|
+
contextAction: EventEmitter<{
|
|
509
|
+
action: BdbContextAction<Media>;
|
|
510
|
+
row: Media;
|
|
511
|
+
}>;
|
|
512
|
+
rowClick: EventEmitter<Media>;
|
|
513
|
+
cb: BdbColumnBuilder<Media>;
|
|
514
|
+
columns: BdbColumn<Media, unknown>[];
|
|
515
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaTableComponent, never>;
|
|
516
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MediaTableComponent, "bdb-media-table", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "contextActions": { "alias": "contextActions"; "required": false; }; }, { "contextAction": "contextAction"; "rowClick": "rowClick"; }, never, never, true, never>;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
declare class MediaTypeIconPipe implements PipeTransform {
|
|
520
|
+
transform(value: MediaType | undefined): string | undefined;
|
|
521
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaTypeIconPipe, never>;
|
|
522
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MediaTypeIconPipe, "mediaTypeIcon", true>;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
declare class MediaTypePipe implements PipeTransform {
|
|
526
|
+
transform(value: MediaType | undefined): string | undefined;
|
|
527
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaTypePipe, never>;
|
|
528
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<MediaTypePipe, "mediaType", true>;
|
|
529
|
+
}
|
|
530
|
+
|
|
531
|
+
interface ImageFile {
|
|
532
|
+
file: File;
|
|
533
|
+
url: string;
|
|
534
|
+
}
|
|
535
|
+
declare enum DropClass {
|
|
536
|
+
Default = "drop-box",// Default color
|
|
537
|
+
Over = "drop-box hover"
|
|
538
|
+
}
|
|
539
|
+
declare class MediaDropDirective {
|
|
540
|
+
dropStart: EventEmitter<unknown>;
|
|
541
|
+
dropComplete: EventEmitter<Media>;
|
|
542
|
+
dropError: EventEmitter<HttpErrorResponse>;
|
|
543
|
+
private service;
|
|
544
|
+
constructor();
|
|
545
|
+
hostClass: DropClass;
|
|
546
|
+
dragOver(event: DragEvent): void;
|
|
547
|
+
dragLeave(event: DragEvent): void;
|
|
548
|
+
drop(event: DragEvent): void;
|
|
549
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaDropDirective, never>;
|
|
550
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<MediaDropDirective, "[bdbMediaDrop]", never, {}, { "dropStart": "dropStart"; "dropComplete": "dropComplete"; "dropError": "dropError"; }, never, never, true, never>;
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
declare class BdbMediaUploadComponent {
|
|
554
|
+
class: string;
|
|
555
|
+
nativeInputFile?: ElementRef;
|
|
556
|
+
private mediaService;
|
|
557
|
+
accept: string;
|
|
558
|
+
uploadComplete: EventEmitter<Media>;
|
|
559
|
+
uploadError: EventEmitter<HttpErrorResponse>;
|
|
560
|
+
uploadStart: EventEmitter<void>;
|
|
561
|
+
private _pending;
|
|
562
|
+
get pending(): boolean;
|
|
563
|
+
onNativeInputFileSelect(event: Event): void;
|
|
564
|
+
selectFile(): void;
|
|
565
|
+
onDropStart(): void;
|
|
566
|
+
onDropError($event: HttpErrorResponse): void;
|
|
567
|
+
onDropComplete($event: Media): void;
|
|
568
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbMediaUploadComponent, never>;
|
|
569
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbMediaUploadComponent, "bdb-media-upload", never, { "accept": { "alias": "accept"; "required": false; }; }, { "uploadComplete": "uploadComplete"; "uploadError": "uploadError"; "uploadStart": "uploadStart"; }, never, ["*"], true, never>;
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
declare enum TaskLogOutcome {
|
|
573
|
+
Noop = "Noop",
|
|
574
|
+
Success = "Success",
|
|
575
|
+
Info = "Info",
|
|
576
|
+
Warning = "Warning",
|
|
577
|
+
Error = "Error"
|
|
578
|
+
}
|
|
579
|
+
declare const TaskLogOutcomeMap: Map<TaskLogOutcome, string>;
|
|
580
|
+
|
|
581
|
+
declare class TaskLogOutcomePipe implements PipeTransform {
|
|
582
|
+
transform(value: TaskLogOutcome | undefined): string | undefined;
|
|
583
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaskLogOutcomePipe, never>;
|
|
584
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TaskLogOutcomePipe, "taskLogOutcome", true>;
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
declare enum TaskLogStatus {
|
|
588
|
+
New = "New",
|
|
589
|
+
Running = "Running",
|
|
590
|
+
Waiting = "Waiting",
|
|
591
|
+
Completed = "Completed"
|
|
592
|
+
}
|
|
593
|
+
declare const TaskLogStatusMap: Map<TaskLogStatus, string>;
|
|
594
|
+
|
|
595
|
+
declare class TaskLogStatusPipe implements PipeTransform {
|
|
596
|
+
transform(value: TaskLogStatus | undefined): string | undefined;
|
|
597
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaskLogStatusPipe, never>;
|
|
598
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TaskLogStatusPipe, "taskLogStatus", true>;
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
declare enum TaskLogParameterType {
|
|
602
|
+
String = "String",
|
|
603
|
+
Int = "Int",
|
|
604
|
+
Decimal = "Decimal",
|
|
605
|
+
Bool = "Bool"
|
|
606
|
+
}
|
|
607
|
+
|
|
608
|
+
interface TaskLogParameter extends BdbEntity {
|
|
609
|
+
name: string;
|
|
610
|
+
type: TaskLogParameterType;
|
|
611
|
+
stringValue?: string;
|
|
612
|
+
intValue?: number;
|
|
613
|
+
decimalValue?: number;
|
|
614
|
+
boolValue?: boolean;
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
declare class TaskLogParameterValuePipe implements PipeTransform {
|
|
618
|
+
private locale;
|
|
619
|
+
constructor(locale: string);
|
|
620
|
+
transform(value: TaskLogParameter): string;
|
|
621
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaskLogParameterValuePipe, never>;
|
|
622
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TaskLogParameterValuePipe, "taskLogParameterValue", true>;
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
interface UserRead extends BdbEntityRead {
|
|
626
|
+
email: string;
|
|
627
|
+
name: string;
|
|
628
|
+
roles: string[];
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
declare class UserTableComponent {
|
|
632
|
+
private matDialog;
|
|
633
|
+
private cb;
|
|
634
|
+
dataSource: BdbDataSource<UserRead>;
|
|
635
|
+
displayedColumns: string[];
|
|
636
|
+
rowClick: EventEmitter<UserRead>;
|
|
637
|
+
columns: BdbColumn<UserRead, unknown>[];
|
|
638
|
+
constructor(matDialog: MatDialog, cb: BdbColumnBuilder<UserRead>);
|
|
639
|
+
contextActions: BdbContextAction<UserRead>[];
|
|
640
|
+
onRowClick(user: UserRead): void;
|
|
641
|
+
onContextAction(event: {
|
|
642
|
+
action: BdbContextAction<UserRead>;
|
|
643
|
+
row: UserRead;
|
|
644
|
+
}): void;
|
|
645
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserTableComponent, never>;
|
|
646
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UserTableComponent, "bdb-user-table[dataSource]", never, { "dataSource": { "alias": "dataSource"; "required": false; }; "displayedColumns": { "alias": "displayedColumns"; "required": false; }; "contextActions": { "alias": "contextActions"; "required": false; }; }, { "rowClick": "rowClick"; }, never, never, true, never>;
|
|
647
|
+
}
|
|
648
|
+
|
|
649
|
+
declare class BdbFlexChildDirective implements OnInit {
|
|
650
|
+
private element;
|
|
651
|
+
private renderer;
|
|
652
|
+
bdbFlexChild: string;
|
|
653
|
+
constructor(element: ElementRef, renderer: Renderer2);
|
|
654
|
+
ngOnInit(): void;
|
|
655
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbFlexChildDirective, never>;
|
|
656
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BdbFlexChildDirective, "[bdbFlexChild]", never, { "bdbFlexChild": { "alias": "bdbFlexChild"; "required": false; }; }, {}, never, never, true, never>;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
type FlexSpacing = {
|
|
660
|
+
align: string;
|
|
661
|
+
justify: string;
|
|
662
|
+
};
|
|
663
|
+
declare class BdbFlexDirective implements OnInit {
|
|
664
|
+
private element;
|
|
665
|
+
private renderer;
|
|
666
|
+
bdbFlex: string;
|
|
667
|
+
bdbFlexDirection: string;
|
|
668
|
+
bdbFlexGap: string;
|
|
669
|
+
bdbFlexSpacing: string;
|
|
670
|
+
constructor(element: ElementRef, renderer: Renderer2);
|
|
671
|
+
ngOnInit(): void;
|
|
672
|
+
setDirection(bdbFlexInput?: string): void;
|
|
673
|
+
getDirection(bdbFlexInput?: string): string;
|
|
674
|
+
validateDirection(direction: string): string;
|
|
675
|
+
setGap(bdbFlexInput?: string): void;
|
|
676
|
+
getGap(bdbFlexInput?: string): string;
|
|
677
|
+
validateGap(gap: string): string;
|
|
678
|
+
setSpacing(bdbFlexInput: Partial<FlexSpacing>): void;
|
|
679
|
+
getSpacing(bdbFlexInput: Partial<FlexSpacing>): FlexSpacing;
|
|
680
|
+
validateSpacing(spacing: FlexSpacing): FlexSpacing;
|
|
681
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbFlexDirective, never>;
|
|
682
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BdbFlexDirective, "[bdbFlex], [bdbFlexDirection], [bdbFlexGap], [bdbFlexSpacing]", never, { "bdbFlex": { "alias": "bdbFlex"; "required": false; }; "bdbFlexDirection": { "alias": "bdbFlexDirection"; "required": false; }; "bdbFlexGap": { "alias": "bdbFlexGap"; "required": false; }; "bdbFlexSpacing": { "alias": "bdbFlexSpacing"; "required": false; }; }, {}, never, never, true, never>;
|
|
683
|
+
}
|
|
684
|
+
|
|
685
|
+
declare class BdbFormErrorDirective implements OnInit {
|
|
686
|
+
private element;
|
|
687
|
+
private renderer;
|
|
688
|
+
private controlContainer;
|
|
689
|
+
bdbFormError: string | AbstractControl;
|
|
690
|
+
control: AbstractControl;
|
|
691
|
+
constructor(element: ElementRef, renderer: Renderer2, controlContainer: ControlContainer);
|
|
692
|
+
ngOnInit(): void;
|
|
693
|
+
setError(): void;
|
|
694
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbFormErrorDirective, never>;
|
|
695
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BdbFormErrorDirective, "[bdbFormError]", never, { "bdbFormError": { "alias": "bdbFormError"; "required": false; }; }, {}, never, never, true, never>;
|
|
696
|
+
}
|
|
697
|
+
|
|
698
|
+
declare class BdbGridChildDirective implements OnInit {
|
|
699
|
+
private element;
|
|
700
|
+
private renderer;
|
|
701
|
+
bdbGridChild: string;
|
|
702
|
+
bdbGridRow: string;
|
|
703
|
+
bdbGridColumn: string;
|
|
704
|
+
constructor(element: ElementRef, renderer: Renderer2);
|
|
705
|
+
ngOnInit(): void;
|
|
706
|
+
splitAxes(): string[];
|
|
707
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbGridChildDirective, never>;
|
|
708
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BdbGridChildDirective, "[bdbGridChild], [bdbGridColumn], [bdbGridRow]", never, { "bdbGridChild": { "alias": "bdbGridChild"; "required": false; }; "bdbGridRow": { "alias": "bdbGridRow"; "required": false; }; "bdbGridColumn": { "alias": "bdbGridColumn"; "required": false; }; }, {}, never, never, true, never>;
|
|
709
|
+
}
|
|
710
|
+
|
|
711
|
+
type BdbGridInput = {
|
|
712
|
+
gap?: string;
|
|
713
|
+
columns?: BdbGridAxisInput;
|
|
714
|
+
rows?: BdbGridAxisInput;
|
|
715
|
+
};
|
|
716
|
+
type BdbGridAxisInput = {
|
|
717
|
+
type: 'template' | 'auto';
|
|
718
|
+
input: string;
|
|
719
|
+
};
|
|
720
|
+
declare class BdbGridDirective implements OnInit {
|
|
721
|
+
private element;
|
|
722
|
+
private renderer;
|
|
723
|
+
bdbGrid: string;
|
|
724
|
+
bdbGridColumns: string;
|
|
725
|
+
bdbGridRows: string;
|
|
726
|
+
bdbGridGap: string;
|
|
727
|
+
constructor(element: ElementRef, renderer: Renderer2);
|
|
728
|
+
ngOnInit(): void;
|
|
729
|
+
parseBdbGridInput(): BdbGridInput;
|
|
730
|
+
setAxis(axis: 'columns' | 'rows', gridInput?: BdbGridAxisInput): void;
|
|
731
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbGridDirective, never>;
|
|
732
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BdbGridDirective, "[bdbGrid], [bdbGridColumns], [bdbGridRows], [bdbGridGap]", never, { "bdbGrid": { "alias": "bdbGrid"; "required": false; }; "bdbGridColumns": { "alias": "bdbGridColumns"; "required": false; }; "bdbGridRows": { "alias": "bdbGridRows"; "required": false; }; "bdbGridGap": { "alias": "bdbGridGap"; "required": false; }; }, {}, never, never, true, never>;
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
declare class BdbAlertErrorResponseComponent implements OnChanges {
|
|
736
|
+
value: HttpErrorResponse | undefined | null;
|
|
737
|
+
dismissable: boolean;
|
|
738
|
+
dismiss: EventEmitter<void>;
|
|
739
|
+
loginFailed: boolean;
|
|
740
|
+
alertClass: string;
|
|
741
|
+
icon: string;
|
|
742
|
+
label: string;
|
|
743
|
+
message: string;
|
|
744
|
+
errorCode: string | undefined;
|
|
745
|
+
validationFailures(): string[] | null;
|
|
746
|
+
ngOnChanges(): void;
|
|
747
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbAlertErrorResponseComponent, never>;
|
|
748
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbAlertErrorResponseComponent, "bdb-alert-error-response", never, { "value": { "alias": "value"; "required": false; }; "dismissable": { "alias": "dismissable"; "required": false; }; }, { "dismiss": "dismiss"; }, never, never, true, never>;
|
|
749
|
+
}
|
|
750
|
+
|
|
751
|
+
declare class BdbAlertComponent {
|
|
752
|
+
class: string;
|
|
753
|
+
label: string;
|
|
754
|
+
icon: string;
|
|
755
|
+
inline: boolean;
|
|
756
|
+
constructor();
|
|
757
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbAlertComponent, never>;
|
|
758
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbAlertComponent, "bdb-alert", never, { "label": { "alias": "label"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
declare class BdbBooleanDisplayComponent {
|
|
762
|
+
class: string;
|
|
763
|
+
value?: boolean | null;
|
|
764
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbBooleanDisplayComponent, never>;
|
|
765
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbBooleanDisplayComponent, "bdb-boolean-display", never, { "value": { "alias": "value"; "required": false; }; }, {}, never, never, true, never>;
|
|
766
|
+
}
|
|
767
|
+
|
|
768
|
+
declare class BdbCollapseRowComponent {
|
|
769
|
+
collapsed: boolean;
|
|
770
|
+
canCollapse: boolean;
|
|
771
|
+
class: string;
|
|
772
|
+
get isCollapsed(): boolean;
|
|
773
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbCollapseRowComponent, never>;
|
|
774
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbCollapseRowComponent, "bdb-collapse-row", never, { "collapsed": { "alias": "collapsed"; "required": false; }; "canCollapse": { "alias": "canCollapse"; "required": false; }; }, {}, never, ["left", "right"], true, never>;
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
declare class BdbErrorResponseDialogComponent {
|
|
778
|
+
readonly data: {
|
|
779
|
+
title: string;
|
|
780
|
+
error: HttpErrorResponse;
|
|
781
|
+
};
|
|
782
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbErrorResponseDialogComponent, never>;
|
|
783
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbErrorResponseDialogComponent, "bdb-error-response-dialog", never, {}, {}, never, never, true, never>;
|
|
784
|
+
}
|
|
785
|
+
|
|
786
|
+
declare class BdbFieldComponent {
|
|
787
|
+
class: string;
|
|
788
|
+
label: string;
|
|
789
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BdbFieldComponent, never>;
|
|
790
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BdbFieldComponent, "bdb-field", never, { "label": { "alias": "label"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
791
|
+
}
|
|
792
|
+
|
|
793
|
+
declare class FileSizePipe implements PipeTransform {
|
|
794
|
+
transform(bytes: number | undefined): string | undefined;
|
|
795
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileSizePipe, never>;
|
|
796
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FileSizePipe, "fileSize", true>;
|
|
797
|
+
}
|
|
798
|
+
|
|
799
|
+
declare class PlainNumberPipe implements PipeTransform {
|
|
800
|
+
transform(value: number | undefined): string | undefined;
|
|
801
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PlainNumberPipe, never>;
|
|
802
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PlainNumberPipe, "bdbPlainNumber", true>;
|
|
803
|
+
}
|
|
804
|
+
|
|
805
|
+
interface AccountInfo {
|
|
806
|
+
email: string;
|
|
807
|
+
id: number;
|
|
808
|
+
roles: string[];
|
|
809
|
+
claims: Map<string, unknown>;
|
|
810
|
+
}
|
|
811
|
+
|
|
812
|
+
interface TokenResponse {
|
|
813
|
+
token: string;
|
|
814
|
+
refreshToken: string;
|
|
815
|
+
expiration: Date;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
declare class AccountService extends BdbService {
|
|
819
|
+
constructor();
|
|
820
|
+
login(value: {
|
|
821
|
+
email: string;
|
|
822
|
+
password: string;
|
|
823
|
+
}): Observable<TokenResponse>;
|
|
824
|
+
exchangeRefreshToken(value: {
|
|
825
|
+
token: string;
|
|
826
|
+
refreshToken: string;
|
|
827
|
+
}): Observable<TokenResponse>;
|
|
828
|
+
forgotPassword(value: {
|
|
829
|
+
email: string;
|
|
830
|
+
}): Observable<boolean>;
|
|
831
|
+
resetPassword(value: {
|
|
832
|
+
email: string;
|
|
833
|
+
token: string;
|
|
834
|
+
password: string;
|
|
835
|
+
}): Observable<TokenResponse>;
|
|
836
|
+
validateResetPasswordToken(value: {
|
|
837
|
+
email: string;
|
|
838
|
+
token: string;
|
|
839
|
+
}): Observable<boolean>;
|
|
840
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
|
|
841
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AccountService>;
|
|
842
|
+
}
|
|
843
|
+
|
|
844
|
+
declare function getAuthorizationHeaderFromToken(token: string): string;
|
|
845
|
+
declare function getTokenFromAuthorizationHeader(header: string): string;
|
|
846
|
+
declare class AuthService {
|
|
847
|
+
private accountService;
|
|
848
|
+
token$: BehaviorSubject<string | null>;
|
|
849
|
+
account$: BehaviorSubject<AccountInfo | null>;
|
|
850
|
+
currentRefreshTokenRequest: Observable<string | null> | undefined;
|
|
851
|
+
matDialog: MatDialog;
|
|
852
|
+
router: Router;
|
|
853
|
+
readonly bdbOptions: _devopmaat_badaboom.BdbOptions;
|
|
854
|
+
constructor(accountService: AccountService);
|
|
855
|
+
login(value: {
|
|
856
|
+
email: string;
|
|
857
|
+
password: string;
|
|
858
|
+
}): Observable<TokenResponse>;
|
|
859
|
+
logout(): void;
|
|
860
|
+
refreshToken(expiredToken: string): Observable<string | null>;
|
|
861
|
+
resetPassword(value: {
|
|
862
|
+
email: string;
|
|
863
|
+
token: string;
|
|
864
|
+
password: string;
|
|
865
|
+
}): Observable<TokenResponse>;
|
|
866
|
+
forgotPassword(value: {
|
|
867
|
+
email: string;
|
|
868
|
+
}): Observable<boolean>;
|
|
869
|
+
validateResetPasswordToken(value: {
|
|
870
|
+
email: string;
|
|
871
|
+
token: string;
|
|
872
|
+
}): Observable<boolean>;
|
|
873
|
+
private processTokenResponse;
|
|
874
|
+
private getAccountInfoFromToken;
|
|
875
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthService, never>;
|
|
876
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AuthService>;
|
|
877
|
+
}
|
|
878
|
+
|
|
879
|
+
interface ResetPasswordToken {
|
|
880
|
+
email: string;
|
|
881
|
+
token: string;
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
declare const tokenExpiredInterceptor: HttpInterceptorFn;
|
|
885
|
+
|
|
886
|
+
declare const tokenInterceptor: HttpInterceptorFn;
|
|
887
|
+
|
|
888
|
+
interface BdbEntityUpdate {
|
|
889
|
+
id: number;
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
declare abstract class BdbServiceCR<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead, TEntityCreate> extends BdbServiceR<TEntity, TEntityRead> {
|
|
893
|
+
create(createModel: TEntityCreate): Observable<number>;
|
|
894
|
+
}
|
|
895
|
+
|
|
896
|
+
declare abstract class BdbServiceCRD<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead, TEntityCreate> extends BdbServiceCR<TEntity, TEntityRead, TEntityCreate> {
|
|
897
|
+
delete(id: number): Observable<never>;
|
|
898
|
+
}
|
|
899
|
+
|
|
900
|
+
declare abstract class BdbServiceCRU<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead, TEntityCreate, TEntityUpdate extends BdbEntityUpdate> extends BdbServiceCR<TEntity, TEntityRead, TEntityCreate> {
|
|
901
|
+
update(updateModel: TEntityUpdate): Observable<never>;
|
|
902
|
+
}
|
|
903
|
+
|
|
904
|
+
declare abstract class BdbServiceCRUD<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead, TEntityCreate, TEntityUpdate extends BdbEntityUpdate> extends BdbServiceCRU<TEntity, TEntityRead, TEntityCreate, TEntityUpdate> {
|
|
905
|
+
delete(id: number): Observable<never>;
|
|
906
|
+
}
|
|
907
|
+
|
|
908
|
+
declare abstract class BdbServiceRD<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead> extends BdbServiceR<TEntity, TEntityRead> {
|
|
909
|
+
delete(id: number): Observable<never>;
|
|
910
|
+
}
|
|
911
|
+
|
|
912
|
+
declare abstract class BdbServiceRU<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead, TEntityUpdate extends BdbEntityUpdate> extends BdbServiceR<TEntity, TEntityRead> {
|
|
913
|
+
update(updateModel: TEntityUpdate): Observable<TEntity>;
|
|
914
|
+
}
|
|
915
|
+
|
|
916
|
+
declare abstract class BdbServiceRUD<TEntity extends BdbEntity, TEntityRead extends BdbEntityRead, TEntityUpdate extends BdbEntityUpdate> extends BdbServiceRU<TEntity, TEntityRead, TEntityUpdate> {
|
|
917
|
+
delete(id: number): Observable<never>;
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
interface ExceptionLog extends BdbEntity {
|
|
921
|
+
code: string;
|
|
922
|
+
message: string;
|
|
923
|
+
description: string;
|
|
924
|
+
type: string;
|
|
925
|
+
created: Date;
|
|
926
|
+
createdBy: string;
|
|
927
|
+
}
|
|
928
|
+
|
|
929
|
+
declare class ExceptionLogService extends BdbServiceR<ExceptionLog, ExceptionLogRead> {
|
|
930
|
+
constructor();
|
|
931
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExceptionLogService, never>;
|
|
932
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExceptionLogService>;
|
|
933
|
+
}
|
|
934
|
+
|
|
935
|
+
declare class MediaService extends BdbServiceRD<Media, Media> {
|
|
936
|
+
constructor();
|
|
937
|
+
upload(file: File): Observable<Media>;
|
|
938
|
+
fromUrl(url: string): Observable<Media>;
|
|
939
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MediaService, never>;
|
|
940
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MediaService>;
|
|
941
|
+
}
|
|
942
|
+
|
|
943
|
+
interface Role extends BdbEntity {
|
|
944
|
+
name: string;
|
|
945
|
+
}
|
|
946
|
+
|
|
947
|
+
interface RoleRead extends BdbEntityRead {
|
|
948
|
+
name: string;
|
|
949
|
+
created: Date;
|
|
950
|
+
createdByEmail: string;
|
|
951
|
+
createdById: number;
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
declare class RoleService extends BdbServiceR<Role, RoleRead> {
|
|
955
|
+
constructor();
|
|
956
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RoleService, never>;
|
|
957
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RoleService>;
|
|
958
|
+
}
|
|
959
|
+
|
|
960
|
+
interface TaskLog extends BdbEntity {
|
|
961
|
+
taskType: string;
|
|
962
|
+
status: TaskLogStatus;
|
|
963
|
+
outcome: TaskLogOutcome;
|
|
964
|
+
start: Date;
|
|
965
|
+
completion: Date;
|
|
966
|
+
summary: string;
|
|
967
|
+
error?: string;
|
|
968
|
+
log: string;
|
|
969
|
+
parameters: TaskLogParameter[];
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
interface TaskLogParameterCreate {
|
|
973
|
+
name: string;
|
|
974
|
+
stringValue?: string;
|
|
975
|
+
intValue?: number;
|
|
976
|
+
decimalValue?: number;
|
|
977
|
+
boolValue?: boolean;
|
|
978
|
+
}
|
|
979
|
+
|
|
980
|
+
interface TaskLogCreate {
|
|
981
|
+
taskType: string;
|
|
982
|
+
parameters: TaskLogParameterCreate[];
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
interface TaskLogRead extends BdbEntityRead {
|
|
986
|
+
taskType: string;
|
|
987
|
+
status: TaskLogStatus;
|
|
988
|
+
outcome: TaskLogOutcome;
|
|
989
|
+
start: Date;
|
|
990
|
+
completion: Date;
|
|
991
|
+
summary: string;
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
declare class TaskLogService extends BdbServiceCR<TaskLog, TaskLogRead, TaskLogCreate> {
|
|
995
|
+
constructor();
|
|
996
|
+
start(id: number): Observable<void>;
|
|
997
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaskLogService, never>;
|
|
998
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TaskLogService>;
|
|
999
|
+
}
|
|
1000
|
+
|
|
1001
|
+
interface TaskLogParameterRead extends BdbEntityRead {
|
|
1002
|
+
name: string;
|
|
1003
|
+
type: TaskLogParameterType;
|
|
1004
|
+
stringValue?: string;
|
|
1005
|
+
intValue?: number;
|
|
1006
|
+
decimalValue?: number;
|
|
1007
|
+
boolValue?: boolean;
|
|
1008
|
+
isRequired: boolean;
|
|
1009
|
+
}
|
|
1010
|
+
|
|
1011
|
+
declare class TaskLogParameterService extends BdbServiceR<TaskLogParameter, TaskLogParameterRead> {
|
|
1012
|
+
constructor();
|
|
1013
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaskLogParameterService, never>;
|
|
1014
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TaskLogParameterService>;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
interface TaskLogSchedule extends BdbEntity {
|
|
1018
|
+
taskLogType: string;
|
|
1019
|
+
description: string;
|
|
1020
|
+
cronExpression: string;
|
|
1021
|
+
isActive: boolean;
|
|
1022
|
+
}
|
|
1023
|
+
|
|
1024
|
+
interface TaskLogScheduleCreate {
|
|
1025
|
+
taskLogType: string;
|
|
1026
|
+
cronExpression: string;
|
|
1027
|
+
isActive: boolean;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
interface TaskLogScheduleRead extends BdbEntityRead {
|
|
1031
|
+
taskLogType: string;
|
|
1032
|
+
description: string;
|
|
1033
|
+
cronExpression: string;
|
|
1034
|
+
isActive: boolean;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
interface TaskLogScheduleUpdate extends BdbEntityUpdate {
|
|
1038
|
+
cronExpression: string;
|
|
1039
|
+
isActive: boolean;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
declare class TaskLogScheduleService extends BdbServiceCRUD<TaskLogSchedule, TaskLogScheduleRead, TaskLogScheduleCreate, TaskLogScheduleUpdate> {
|
|
1043
|
+
constructor();
|
|
1044
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaskLogScheduleService, never>;
|
|
1045
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TaskLogScheduleService>;
|
|
1046
|
+
}
|
|
1047
|
+
|
|
1048
|
+
interface User extends BdbEntity {
|
|
1049
|
+
email: string;
|
|
1050
|
+
name: string;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
interface UserCreate {
|
|
1054
|
+
email: string;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
interface UserUpdate extends BdbEntityUpdate {
|
|
1058
|
+
email: string;
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
declare class UserService extends BdbServiceCRUD<User, UserRead, UserCreate, UserUpdate> {
|
|
1062
|
+
constructor();
|
|
1063
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserService, never>;
|
|
1064
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserService>;
|
|
1065
|
+
}
|
|
1066
|
+
|
|
1067
|
+
interface UserRole extends BdbEntity {
|
|
1068
|
+
user: User;
|
|
1069
|
+
role: Role;
|
|
1070
|
+
}
|
|
1071
|
+
|
|
1072
|
+
interface UserRoleCreate {
|
|
1073
|
+
userId: number;
|
|
1074
|
+
roleId: number;
|
|
1075
|
+
}
|
|
1076
|
+
|
|
1077
|
+
interface UserRoleRead extends BdbEntityRead {
|
|
1078
|
+
userEmail: string;
|
|
1079
|
+
roleName: string;
|
|
1080
|
+
userId: number;
|
|
1081
|
+
roleId: number;
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
declare class UserRoleService extends BdbServiceCRD<UserRole, UserRoleRead, UserRoleCreate> {
|
|
1085
|
+
constructor();
|
|
1086
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UserRoleService, never>;
|
|
1087
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UserRoleService>;
|
|
1088
|
+
}
|
|
1089
|
+
|
|
1090
|
+
declare class TaskLogSchedulerService extends BdbService {
|
|
1091
|
+
constructor();
|
|
1092
|
+
isRunning(): Observable<boolean>;
|
|
1093
|
+
startScheduler(): Observable<void>;
|
|
1094
|
+
stopScheduler(): Observable<void>;
|
|
1095
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaskLogSchedulerService, never>;
|
|
1096
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TaskLogSchedulerService>;
|
|
1097
|
+
}
|
|
1098
|
+
|
|
1099
|
+
interface TaskLogTypeParameter {
|
|
1100
|
+
name: string;
|
|
1101
|
+
description: string;
|
|
1102
|
+
type: TaskLogParameterType;
|
|
1103
|
+
required: boolean;
|
|
1104
|
+
defaultStringValue: string;
|
|
1105
|
+
defaultIntValue: number;
|
|
1106
|
+
defaultDecimalValue: number;
|
|
1107
|
+
defaultBoolValue: boolean;
|
|
1108
|
+
}
|
|
1109
|
+
|
|
1110
|
+
interface TaskLogType {
|
|
1111
|
+
identifier: string;
|
|
1112
|
+
name: string;
|
|
1113
|
+
description: string;
|
|
1114
|
+
parameters?: TaskLogTypeParameter[];
|
|
1115
|
+
}
|
|
1116
|
+
|
|
1117
|
+
declare class TaskLogTypeService extends BdbService {
|
|
1118
|
+
TaskLogTypes: BehaviorSubject<TaskLogType[]>;
|
|
1119
|
+
getAllObservable: Observable<TaskLogType[]> | null;
|
|
1120
|
+
constructor();
|
|
1121
|
+
load(): void;
|
|
1122
|
+
private getAll;
|
|
1123
|
+
get(identifier: string): Observable<TaskLogType | null>;
|
|
1124
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TaskLogTypeService, never>;
|
|
1125
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TaskLogTypeService>;
|
|
1126
|
+
}
|
|
1127
|
+
|
|
1128
|
+
declare const loggedOutGuard: CanActivateFn;
|
|
1129
|
+
|
|
1130
|
+
declare const resetPasswordResolver: ResolveFn<ResetPasswordToken>;
|
|
1131
|
+
|
|
1132
|
+
declare function roleGuard(...roles: string[]): CanActivateFn;
|
|
1133
|
+
|
|
1134
|
+
declare class AccessDeniedPageComponent implements OnInit, OnDestroy {
|
|
1135
|
+
private authService;
|
|
1136
|
+
private readonly _onDestroy;
|
|
1137
|
+
loginRoutePath?: string;
|
|
1138
|
+
logoutRoutePath?: string;
|
|
1139
|
+
isLoggedIn: boolean;
|
|
1140
|
+
constructor(bdbOptions: BdbOptions, authService: AuthService);
|
|
1141
|
+
ngOnInit(): void;
|
|
1142
|
+
ngOnDestroy(): void;
|
|
1143
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccessDeniedPageComponent, never>;
|
|
1144
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccessDeniedPageComponent, "bdb-access-denied-page", never, {}, {}, never, never, true, never>;
|
|
1145
|
+
}
|
|
1146
|
+
|
|
1147
|
+
declare class AuthContainerComponent {
|
|
1148
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AuthContainerComponent, never>;
|
|
1149
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AuthContainerComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1150
|
+
}
|
|
1151
|
+
|
|
1152
|
+
declare class ForgotPasswordPageComponent {
|
|
1153
|
+
private authService;
|
|
1154
|
+
loginRoutePath?: string;
|
|
1155
|
+
emailCtrl: FormControl<string>;
|
|
1156
|
+
isComplete: boolean;
|
|
1157
|
+
isPending: boolean;
|
|
1158
|
+
error?: HttpErrorResponse;
|
|
1159
|
+
forgotPasswordForm: FormGroup<{
|
|
1160
|
+
email: FormControl<string>;
|
|
1161
|
+
}>;
|
|
1162
|
+
constructor(authService: AuthService, bdbOptions: BdbOptions);
|
|
1163
|
+
forgotPassword(): void;
|
|
1164
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ForgotPasswordPageComponent, never>;
|
|
1165
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ForgotPasswordPageComponent, "bdb-forgot-password-page", never, {}, {}, never, never, true, never>;
|
|
1166
|
+
}
|
|
1167
|
+
|
|
1168
|
+
declare class InvalidTokenPageComponent {
|
|
1169
|
+
loginRoutePath?: string;
|
|
1170
|
+
constructor(bdbOptions: BdbOptions);
|
|
1171
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InvalidTokenPageComponent, never>;
|
|
1172
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<InvalidTokenPageComponent, "bdb-invalid-token-page", never, {}, {}, never, never, true, never>;
|
|
1173
|
+
}
|
|
1174
|
+
|
|
1175
|
+
declare class LoginPageComponent implements OnInit {
|
|
1176
|
+
private router;
|
|
1177
|
+
private authService;
|
|
1178
|
+
private route;
|
|
1179
|
+
forgotPasswordRoutePath?: string;
|
|
1180
|
+
emailCtrl: FormControl<string>;
|
|
1181
|
+
passwordCtrl: FormControl<string>;
|
|
1182
|
+
error?: HttpErrorResponse;
|
|
1183
|
+
postLoginUrl: string;
|
|
1184
|
+
isPending: boolean;
|
|
1185
|
+
loginForm: FormGroup<{
|
|
1186
|
+
email: FormControl<string>;
|
|
1187
|
+
password: FormControl<string>;
|
|
1188
|
+
}>;
|
|
1189
|
+
constructor(router: Router, authService: AuthService, route: ActivatedRoute, bdbOptions: BdbOptions);
|
|
1190
|
+
ngOnInit(): void;
|
|
1191
|
+
login(): void;
|
|
1192
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginPageComponent, never>;
|
|
1193
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoginPageComponent, "bdb-login-page", never, {}, {}, never, never, true, never>;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
declare class LogoutPageComponent {
|
|
1197
|
+
private router;
|
|
1198
|
+
private authService;
|
|
1199
|
+
private bdbOptions;
|
|
1200
|
+
constructor(router: Router, authService: AuthService, bdbOptions: BdbOptions);
|
|
1201
|
+
logout(): void;
|
|
1202
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LogoutPageComponent, never>;
|
|
1203
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LogoutPageComponent, "bdb-logout-page", never, {}, {}, never, never, true, never>;
|
|
1204
|
+
}
|
|
1205
|
+
|
|
1206
|
+
declare function equalValueValidator(otherControl: AbstractControl): ValidatorFn;
|
|
1207
|
+
declare class ResetPasswordPageComponent implements OnInit {
|
|
1208
|
+
private authService;
|
|
1209
|
+
private activatedRoute;
|
|
1210
|
+
private router;
|
|
1211
|
+
loginRoutePath?: string;
|
|
1212
|
+
isPending: boolean;
|
|
1213
|
+
error?: HttpErrorResponse;
|
|
1214
|
+
passwordCtrl: FormControl<string>;
|
|
1215
|
+
confirmPasswordCtrl: FormControl<string>;
|
|
1216
|
+
resetPasswordForm: FormGroup<{
|
|
1217
|
+
email: FormControl<string>;
|
|
1218
|
+
token: FormControl<string>;
|
|
1219
|
+
password: FormControl<string>;
|
|
1220
|
+
confirmPassword: FormControl<string>;
|
|
1221
|
+
}>;
|
|
1222
|
+
resetPasswordToken?: ResetPasswordToken;
|
|
1223
|
+
constructor(authService: AuthService, activatedRoute: ActivatedRoute, router: Router, bdbOptions: BdbOptions);
|
|
1224
|
+
ngOnInit(): void;
|
|
1225
|
+
resetPassword(): void;
|
|
1226
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResetPasswordPageComponent, never>;
|
|
1227
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResetPasswordPageComponent, "bdb-reset-password-page", never, {}, {}, never, never, true, never>;
|
|
1228
|
+
}
|
|
1229
|
+
|
|
1230
|
+
export { AccessDeniedPageComponent, AuthContainerComponent, AuthService, BDB_OPTIONS, BdbAlertComponent, BdbAlertErrorResponseComponent, BdbBooleanDisplayComponent, BdbCellDirective, BdbCollapseRowComponent, BdbColumnBuilder, BdbColumnType, BdbDataSource, BdbErrorResponseDialogComponent, BdbFieldComponent, BdbFlexChildDirective, BdbFlexDirective, BdbFormErrorDirective, BdbFullTableComponent, BdbGridChildDirective, BdbGridDirective, BdbMediaDisplayComponent, BdbMediaInputComponent, BdbMediaUploadComponent, BdbOptionsBuilder, BdbPaginatorComponent, BdbQueryInputComponent, BdbSearchComponent, BdbSearchWrapperBaseComponent, BdbService, BdbServiceCR, BdbServiceCRD, BdbServiceCRU, BdbServiceCRUD, BdbServiceR, BdbServiceRD, BdbServiceRU, BdbServiceRUD, BdbTableComponent, ExceptionLogService, ExceptionLogTableComponent, FileSizePipe, ForgotPasswordPageComponent, InvalidTokenPageComponent, LoginPageComponent, LogoutPageComponent, MediaDropDirective, MediaFullTableComponent, MediaService, MediaTableComponent, MediaType, MediaTypeIconPipe, MediaTypeMap, MediaTypePipe, PlainNumberPipe, ResetPasswordPageComponent, RoleService, TaskLogOutcome, TaskLogOutcomeMap, TaskLogOutcomePipe, TaskLogParameterService, TaskLogParameterType, TaskLogParameterValuePipe, TaskLogScheduleService, TaskLogSchedulerService, TaskLogService, TaskLogStatus, TaskLogStatusMap, TaskLogStatusPipe, TaskLogTypeService, UserRoleService, UserService, UserTableComponent, equalValueValidator, getAuthorizationHeaderFromToken, getTokenFromAuthorizationHeader, loggedOutGuard, provideBaDaBoom, resetPasswordResolver, roleGuard, tokenExpiredInterceptor, tokenInterceptor };
|
|
1231
|
+
export type { AccountInfo, BdbBooleanColumnOptions, BdbColumn, BdbColumnOptions, BdbContextAction, BdbCurrencyColumnOptions, BdbDateColumnOptions, BdbEntity, BdbEntityRead, BdbEntityUpdate, BdbEnumColumnOptions, BdbFilter, BdbM3Palette, BdbNumberColumnOptions, BdbOptions, BdbOptionsConfigure, BdbPalette, BdbPercentageColumnOptions, BdbRequest, BdbResponse, BdbStringColumnOptions, ExceptionLog, ExceptionLogRead, ImageFile, Media, MediaPreview, ResetPasswordToken, Role, RoleRead, TaskLog, TaskLogCreate, TaskLogParameter, TaskLogParameterCreate, TaskLogParameterRead, TaskLogRead, TaskLogSchedule, TaskLogScheduleCreate, TaskLogScheduleRead, TaskLogScheduleUpdate, TaskLogType, TaskLogTypeParameter, TokenResponse, User, UserCreate, UserRead, UserRole, UserRoleCreate, UserRoleRead, UserUpdate };
|