@quadrel-enterprise-ui/framework 21.18.1 → 21.18.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,8 @@
|
|
|
1
|
-
import * as rxjs from 'rxjs';
|
|
2
|
-
import { Observable, BehaviorSubject, Subject, Subscription, ReplaySubject } from 'rxjs';
|
|
3
|
-
import * as i12 from '@angular/cdk/dialog';
|
|
4
|
-
import { DialogConfig, DialogRef } from '@angular/cdk/dialog';
|
|
5
1
|
import * as i0 from '@angular/core';
|
|
6
|
-
import {
|
|
7
|
-
import { HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpParams } from '@angular/common/http';
|
|
2
|
+
import { EventEmitter, OnInit, PipeTransform, TemplateRef, OnChanges, AfterViewChecked, ElementRef, InjectionToken, AfterContentInit, AfterViewInit, DestroyRef, SimpleChanges, OnDestroy, AfterContentChecked, Injector, QueryList, DoCheck, NgIterable, ViewContainerRef, TrackByFunction, Type, ModuleWithProviders } from '@angular/core';
|
|
8
3
|
import * as i2 from '@angular/common';
|
|
4
|
+
import * as rxjs from 'rxjs';
|
|
5
|
+
import { BehaviorSubject, Observable, Subject, Subscription, ReplaySubject } from 'rxjs';
|
|
9
6
|
import { Moment } from 'moment/moment';
|
|
10
7
|
import * as i29 from '@angular/cdk/a11y';
|
|
11
8
|
import { Highlightable, FocusableOption } from '@angular/cdk/a11y';
|
|
@@ -20,322 +17,22 @@ import * as _quadrel_enterprise_ui_framework from '@quadrel-enterprise-ui/framew
|
|
|
20
17
|
import * as i40 from 'ngx-editor';
|
|
21
18
|
import { Editor, Toolbar } from 'ngx-editor';
|
|
22
19
|
import { Moment as Moment$1 } from 'moment';
|
|
20
|
+
import * as i12 from '@angular/cdk/dialog';
|
|
21
|
+
import { DialogConfig, DialogRef } from '@angular/cdk/dialog';
|
|
23
22
|
import * as i13 from '@angular/cdk/drag-drop';
|
|
24
23
|
import * as i26 from '@ngrx/store';
|
|
25
24
|
import * as i5$1 from '@angular/cdk/stepper';
|
|
26
25
|
import { CdkStep, CdkStepper, StepState, CdkStepHeader } from '@angular/cdk/stepper';
|
|
27
26
|
import * as i23 from '@angular/cdk/scrolling';
|
|
28
27
|
import * as rxjs_internal_scheduler_AsyncScheduler from 'rxjs/internal/scheduler/AsyncScheduler';
|
|
28
|
+
import { HttpParams, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
29
29
|
import { ComponentType } from '@angular/cdk/portal';
|
|
30
30
|
export { quadrelIconNames } from '@quadrel-enterprise-ui/icons';
|
|
31
31
|
|
|
32
|
-
/**
|
|
33
|
-
* Configuration object for dialog.
|
|
34
|
-
*/
|
|
35
|
-
interface QdDialogConfig extends DialogConfig {
|
|
36
|
-
/**
|
|
37
|
-
* Title of dialog.
|
|
38
|
-
*/
|
|
39
|
-
title?: QdDialogTitle;
|
|
40
|
-
/**
|
|
41
|
-
* Hides the close button in the dialog header.
|
|
42
|
-
*
|
|
43
|
-
* @default false
|
|
44
|
-
*/
|
|
45
|
-
hideCloseHeaderButton?: boolean;
|
|
46
|
-
/**
|
|
47
|
-
* Determines the size of the dialog. There are 3 different width sizes.
|
|
48
|
-
* Small - 500px
|
|
49
|
-
* Default - 900px
|
|
50
|
-
* FullWidth - 100%
|
|
51
|
-
*/
|
|
52
|
-
dialogSize?: QdDialogSize;
|
|
53
|
-
/**
|
|
54
|
-
* Allows the user to move the dialog with the mouse by dragging its header.
|
|
55
|
-
*
|
|
56
|
-
* Has no effect on page dialogs (`QdDialogSize.FullWidth`) and on small screens,
|
|
57
|
-
* where the dialog covers the whole viewport. The position is not persisted and
|
|
58
|
-
* resets whenever the dialog is reopened.
|
|
59
|
-
*
|
|
60
|
-
* @default false
|
|
61
|
-
*/
|
|
62
|
-
isDraggable?: boolean;
|
|
63
|
-
/**
|
|
64
|
-
* Additional data for the dialog.
|
|
65
|
-
*/
|
|
66
|
-
data?: {
|
|
67
|
-
[key: string]: any;
|
|
68
|
-
};
|
|
69
|
-
/**
|
|
70
|
-
* @description Configuration for the primary action.
|
|
71
|
-
*/
|
|
72
|
-
primary?: QdDialogPrimaryAction;
|
|
73
|
-
/**
|
|
74
|
-
* @description Configuration for the cancel button.
|
|
75
|
-
*/
|
|
76
|
-
cancel?: QdDialogCancelAction;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Title of dialog.
|
|
80
|
-
*/
|
|
81
|
-
interface QdDialogTitle {
|
|
82
|
-
/**
|
|
83
|
-
* Translation key.
|
|
84
|
-
*/
|
|
85
|
-
i18n: string;
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* Enum for different Dialog sizes.
|
|
89
|
-
*/
|
|
90
|
-
declare enum QdDialogSize {
|
|
91
|
-
Small = "500px",
|
|
92
|
-
Default = "900px",
|
|
93
|
-
FullWidth = "100%"
|
|
94
|
-
}
|
|
95
|
-
/**
|
|
96
|
-
* @description Interface for the primary action.
|
|
97
|
-
*/
|
|
98
|
-
interface QdDialogPrimaryAction {
|
|
99
|
-
/**
|
|
100
|
-
* @description Label for a primary action button, used for translation.
|
|
101
|
-
*
|
|
102
|
-
* * If no custom translation key is provided, a standard label will be used by default.
|
|
103
|
-
*/
|
|
104
|
-
label?: {
|
|
105
|
-
i18n: string;
|
|
106
|
-
};
|
|
107
|
-
/**
|
|
108
|
-
* @description Handler function that is triggered when the primary action is executed.
|
|
109
|
-
*/
|
|
110
|
-
handler?: () => void;
|
|
111
|
-
}
|
|
112
|
-
/**
|
|
113
|
-
* @description Interface for the cancel action, including an optional confirmation message.
|
|
114
|
-
*/
|
|
115
|
-
interface QdDialogCancelAction {
|
|
116
|
-
/**
|
|
117
|
-
* @description Label for the cancel action, used for translation.
|
|
118
|
-
*
|
|
119
|
-
* * If no custom translation key is provided, a standard label will be used by default.
|
|
120
|
-
*/
|
|
121
|
-
label?: {
|
|
122
|
-
i18n: string;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* @description Handler function that is triggered when the cancel action is executed.
|
|
126
|
-
*/
|
|
127
|
-
handler?: (formValues?: any) => void;
|
|
128
|
-
/**
|
|
129
|
-
* @description An optional confirmation message displayed in a dialog when the user attempts to cancel the operation, warning that all changes will be discarded.
|
|
130
|
-
* If no custom message is provided, a standard message will be shown by default.
|
|
131
|
-
*
|
|
132
|
-
* * The cancellation process checks whether there are unsaved changes in the form. If there are changes, the dialog will appear.
|
|
133
|
-
*
|
|
134
|
-
* * If no changes are detected, the cancellation proceeds without showing the confirmation dialog.
|
|
135
|
-
*/
|
|
136
|
-
confirmationMessage?: {
|
|
137
|
-
i18n: string;
|
|
138
|
-
};
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* Interface representing the result of a session end modal.
|
|
143
|
-
*/
|
|
144
|
-
interface QdDialogAuthSessionEndResult {
|
|
145
|
-
/**
|
|
146
|
-
* Indicates whether the user should reauthenticate.
|
|
147
|
-
*/
|
|
148
|
-
doReauthenticate?: boolean;
|
|
149
|
-
/**
|
|
150
|
-
* Indicates whether the user should log out via the identity broker.
|
|
151
|
-
*/
|
|
152
|
-
doLogoutViaIdentityBroker?: boolean;
|
|
153
|
-
}
|
|
154
|
-
|
|
155
|
-
/**
|
|
156
|
-
* **QdDialogAuthSessionEndService**: Service for handling authentication support functionalities.
|
|
157
|
-
* This service is responsible for providing a handler to manage the logout process by opening a dialog.
|
|
158
|
-
*/
|
|
159
|
-
declare class QdDialogAuthSessionEndService {
|
|
160
|
-
private dialogService;
|
|
161
|
-
config: QdDialogConfig;
|
|
162
|
-
/**
|
|
163
|
-
* Returns a function that opens the `QdDialogAuthSessionEndComponent` dialog and returns an observable that emits a **QdDialogAuthSessionEndResult** object when the dialog is closed.
|
|
164
|
-
*/
|
|
165
|
-
getLogoutHandler(): (logoutUrl?: Observable<string>) => Observable<QdDialogAuthSessionEndResult>;
|
|
166
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QdDialogAuthSessionEndService, never>;
|
|
167
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<QdDialogAuthSessionEndService>;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
32
|
declare const updateHtmlLang: (lang: string) => void;
|
|
171
33
|
|
|
172
34
|
type QdStatus = 'positive' | 'warning' | 'critical' | 'info' | 'neutral' | 'inactive' | 'urgent';
|
|
173
35
|
|
|
174
|
-
interface QdNotification {
|
|
175
|
-
/**
|
|
176
|
-
* Identifier of this notification
|
|
177
|
-
*/
|
|
178
|
-
uuid?: string;
|
|
179
|
-
/**
|
|
180
|
-
* Defines the context where the notification should show up.
|
|
181
|
-
*/
|
|
182
|
-
context?: string;
|
|
183
|
-
/**
|
|
184
|
-
* Defines the notification state. Each state has a specific icon and color.
|
|
185
|
-
*/
|
|
186
|
-
state: QdNotificationState;
|
|
187
|
-
/**
|
|
188
|
-
* Translation key for the notification message
|
|
189
|
-
*/
|
|
190
|
-
i18n: QdNotificationTranslation;
|
|
191
|
-
/**
|
|
192
|
-
* Optionally you can define a translation key for the title here.
|
|
193
|
-
*/
|
|
194
|
-
title?: QdNotificationTitle;
|
|
195
|
-
/**
|
|
196
|
-
* Optionally you can define a link here that will be displayed behind or under
|
|
197
|
-
* the notification message.
|
|
198
|
-
*/
|
|
199
|
-
link?: QdNotificationLink;
|
|
200
|
-
/**
|
|
201
|
-
* Optionally you can define the date and time of the notification here.
|
|
202
|
-
* Currently, the notification date and time is only displayed for the shell notifications.
|
|
203
|
-
*/
|
|
204
|
-
date?: Date;
|
|
205
|
-
/**
|
|
206
|
-
* The notification will be removed automatically after the given life time.
|
|
207
|
-
* This option does not work for 'warning', 'urgent' and 'critical' messages. These messages will not be removed
|
|
208
|
-
* automatically but have to be removed by the user. For 'positive' and 'info' messages the default life time is 3 seconds.
|
|
209
|
-
* To configure that the notification is not automatically removed, set the life time to 0.
|
|
210
|
-
*/
|
|
211
|
-
lifeTime?: number;
|
|
212
|
-
/**
|
|
213
|
-
* The close "x" can be removed by setting this flag.
|
|
214
|
-
*/
|
|
215
|
-
disableClose?: boolean;
|
|
216
|
-
/**
|
|
217
|
-
* Defines a close handler.
|
|
218
|
-
*/
|
|
219
|
-
onClose?: () => void;
|
|
220
|
-
/**
|
|
221
|
-
* The notification will additionally be shown as a snackbar if set.
|
|
222
|
-
*/
|
|
223
|
-
showAsSnackbar?: boolean;
|
|
224
|
-
/**
|
|
225
|
-
* To override configs for the snackbar notification, you can also pass an options object here.
|
|
226
|
-
*/
|
|
227
|
-
snackbarOptions?: QdSnackbarNotificationOptions;
|
|
228
|
-
/**
|
|
229
|
-
* The notification will additionally be pushed as a Windows (OS) notification with the browser Notification API
|
|
230
|
-
* if set. In the future, notifications with this flag will also be triggered as system notifications on smartphones.
|
|
231
|
-
*/
|
|
232
|
-
showAsOsNotification?: boolean;
|
|
233
|
-
/**
|
|
234
|
-
* To override configs for the OS notification, you can also pass an options object here.
|
|
235
|
-
*/
|
|
236
|
-
osNotificationOptions?: QdOsNotificationOptions;
|
|
237
|
-
}
|
|
238
|
-
/**
|
|
239
|
-
* State of a notification. A subset of the canonical {@link QdStatus} vocabulary.
|
|
240
|
-
*/
|
|
241
|
-
type QdNotificationState = Extract<QdStatus, 'positive' | 'info' | 'warning' | 'critical' | 'urgent'>;
|
|
242
|
-
type QdNotificationTranslation = string;
|
|
243
|
-
type QdNotificationTitle = {
|
|
244
|
-
i18n: string;
|
|
245
|
-
};
|
|
246
|
-
type QdNotificationLink = {
|
|
247
|
-
i18n: string;
|
|
248
|
-
handler: () => void;
|
|
249
|
-
};
|
|
250
|
-
type QdNotifications = QdNotification[];
|
|
251
|
-
interface QdSnackbarNotificationOptions {
|
|
252
|
-
/**
|
|
253
|
-
* Here you can override the life time especially for the snackbar notification. The overridden life time
|
|
254
|
-
* has to be shorter than the life time of the main notification because when the main notification is removed,
|
|
255
|
-
* the snackbar notification will be removed anyway.
|
|
256
|
-
*/
|
|
257
|
-
lifeTime?: number;
|
|
258
|
-
/**
|
|
259
|
-
* The close "x" can be removed by setting this flag.
|
|
260
|
-
*/
|
|
261
|
-
disableClose?: boolean;
|
|
262
|
-
/**
|
|
263
|
-
* Defines a close handler.
|
|
264
|
-
*/
|
|
265
|
-
onClose?: () => void;
|
|
266
|
-
}
|
|
267
|
-
interface QdOsNotificationOptions {
|
|
268
|
-
/**
|
|
269
|
-
* Specifies whether the notification should be silent — i.e., no sounds or vibrations should be issued,
|
|
270
|
-
* regardless of the device settings.
|
|
271
|
-
*/
|
|
272
|
-
silent?: boolean;
|
|
273
|
-
/**
|
|
274
|
-
* Here you can override the life time especially for the OS notification. The overridden life time
|
|
275
|
-
* has to be shorter than the life time of the main notification because when the main notification is removed,
|
|
276
|
-
* the OS notification will be removed anyway.
|
|
277
|
-
*/
|
|
278
|
-
lifeTime?: number;
|
|
279
|
-
/**
|
|
280
|
-
* @description Defines a click handler.
|
|
281
|
-
*
|
|
282
|
-
* * @example You can open a deep link with the following code for the click handler:
|
|
283
|
-
* * event.preventDefault();
|
|
284
|
-
* * window.open('https://your/deep/link');
|
|
285
|
-
*/
|
|
286
|
-
onClick?: (event: any) => void;
|
|
287
|
-
/**
|
|
288
|
-
* Defines a close handler.
|
|
289
|
-
*/
|
|
290
|
-
onClose?: (event: any) => void;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
declare class QdNotificationsService {
|
|
294
|
-
private snackbarService;
|
|
295
|
-
private osNotificationsService;
|
|
296
|
-
private readonly notificationLifeTimeDefault;
|
|
297
|
-
private readonly _notificationsSubject;
|
|
298
|
-
private readonly notifications$;
|
|
299
|
-
private notifications;
|
|
300
|
-
constructor();
|
|
301
|
-
getNotificationsForContext(context: string): Observable<QdNotification[]>;
|
|
302
|
-
add(context: string, notification: QdNotification): void;
|
|
303
|
-
private addSnackbarNotification;
|
|
304
|
-
private addOsNotification;
|
|
305
|
-
addBulk(context: string, notifications: QdNotifications): void;
|
|
306
|
-
remove(context: string, id: string): void;
|
|
307
|
-
removeAll(context: string): void;
|
|
308
|
-
reset(): void;
|
|
309
|
-
private updateSubject;
|
|
310
|
-
private removeNotificationAfterTimeOut;
|
|
311
|
-
private getNotificationLifeTime;
|
|
312
|
-
private removeSnackbarNotificationAfterTimeOutIfOverriden;
|
|
313
|
-
private removeOsNotificationAfterTimeOutIfOverriden;
|
|
314
|
-
private zeroToInfinity;
|
|
315
|
-
private subscribeToTriggerOnCloseHandlers;
|
|
316
|
-
private getClosedNotifications;
|
|
317
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QdNotificationsService, never>;
|
|
318
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<QdNotificationsService>;
|
|
319
|
-
}
|
|
320
|
-
|
|
321
|
-
declare const BACKEND_ERROR_CODES: InjectionToken<Record<string, string>>;
|
|
322
|
-
declare const WHITELIST_ERROR_CODES: InjectionToken<number[]>;
|
|
323
|
-
/**
|
|
324
|
-
* The QdNotificationsHttpInterceptorService is an Angular HTTP interceptor that captures error responses from HTTP requests and generates notifications for backend errors. This Service not only intercepts error responses, but it also handles specific error codes and translates them into appropriate error messages for display.
|
|
325
|
-
*/
|
|
326
|
-
declare class QdNotificationsHttpInterceptorService implements HttpInterceptor {
|
|
327
|
-
private readonly appEnvironment;
|
|
328
|
-
private readonly backendErrorCodes;
|
|
329
|
-
private readonly whitelistErrorCodes;
|
|
330
|
-
readonly notificationService: QdNotificationsService;
|
|
331
|
-
private readonly blacklistErrorCodes;
|
|
332
|
-
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
333
|
-
private getErrorTranslationKeyForHttpStatus;
|
|
334
|
-
private getHttpErrorName;
|
|
335
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QdNotificationsHttpInterceptorService, never>;
|
|
336
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<QdNotificationsHttpInterceptorService>;
|
|
337
|
-
}
|
|
338
|
-
|
|
339
36
|
/**
|
|
340
37
|
* @description The configuration for QdMenuButton
|
|
341
38
|
*/
|
|
@@ -4142,16 +3839,135 @@ declare class QdMockNavigationTileComponent {
|
|
|
4142
3839
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdMockNavigationTileComponent, never>;
|
|
4143
3840
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdMockNavigationTileComponent, "qd-navigation-tile", never, { "title": { "alias": "title"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, never, never, false, never>;
|
|
4144
3841
|
}
|
|
4145
|
-
|
|
4146
|
-
declare class QdMockNavigationTilesComponent {
|
|
4147
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<QdMockNavigationTilesComponent, never>;
|
|
4148
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<QdMockNavigationTilesComponent, "qd-navigation-tiles", never, {}, {}, never, never, false, never>;
|
|
3842
|
+
|
|
3843
|
+
declare class QdMockNavigationTilesComponent {
|
|
3844
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QdMockNavigationTilesComponent, never>;
|
|
3845
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<QdMockNavigationTilesComponent, "qd-navigation-tiles", never, {}, {}, never, never, false, never>;
|
|
3846
|
+
}
|
|
3847
|
+
|
|
3848
|
+
declare class QdMockNavigationTilesModule {
|
|
3849
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QdMockNavigationTilesModule, never>;
|
|
3850
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<QdMockNavigationTilesModule, [typeof QdMockNavigationTileComponent, typeof QdMockNavigationTilesComponent], never, [typeof QdMockNavigationTileComponent, typeof QdMockNavigationTilesComponent]>;
|
|
3851
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<QdMockNavigationTilesModule>;
|
|
3852
|
+
}
|
|
3853
|
+
|
|
3854
|
+
interface QdNotification {
|
|
3855
|
+
/**
|
|
3856
|
+
* Identifier of this notification
|
|
3857
|
+
*/
|
|
3858
|
+
uuid?: string;
|
|
3859
|
+
/**
|
|
3860
|
+
* Defines the context where the notification should show up.
|
|
3861
|
+
*/
|
|
3862
|
+
context?: string;
|
|
3863
|
+
/**
|
|
3864
|
+
* Defines the notification state. Each state has a specific icon and color.
|
|
3865
|
+
*/
|
|
3866
|
+
state: QdNotificationState;
|
|
3867
|
+
/**
|
|
3868
|
+
* Translation key for the notification message
|
|
3869
|
+
*/
|
|
3870
|
+
i18n: QdNotificationTranslation;
|
|
3871
|
+
/**
|
|
3872
|
+
* Optionally you can define a translation key for the title here.
|
|
3873
|
+
*/
|
|
3874
|
+
title?: QdNotificationTitle;
|
|
3875
|
+
/**
|
|
3876
|
+
* Optionally you can define a link here that will be displayed behind or under
|
|
3877
|
+
* the notification message.
|
|
3878
|
+
*/
|
|
3879
|
+
link?: QdNotificationLink;
|
|
3880
|
+
/**
|
|
3881
|
+
* Optionally you can define the date and time of the notification here.
|
|
3882
|
+
* Currently, the notification date and time is only displayed for the shell notifications.
|
|
3883
|
+
*/
|
|
3884
|
+
date?: Date;
|
|
3885
|
+
/**
|
|
3886
|
+
* The notification will be removed automatically after the given life time.
|
|
3887
|
+
* This option does not work for 'warning', 'urgent' and 'critical' messages. These messages will not be removed
|
|
3888
|
+
* automatically but have to be removed by the user. For 'positive' and 'info' messages the default life time is 3 seconds.
|
|
3889
|
+
* To configure that the notification is not automatically removed, set the life time to 0.
|
|
3890
|
+
*/
|
|
3891
|
+
lifeTime?: number;
|
|
3892
|
+
/**
|
|
3893
|
+
* The close "x" can be removed by setting this flag.
|
|
3894
|
+
*/
|
|
3895
|
+
disableClose?: boolean;
|
|
3896
|
+
/**
|
|
3897
|
+
* Defines a close handler.
|
|
3898
|
+
*/
|
|
3899
|
+
onClose?: () => void;
|
|
3900
|
+
/**
|
|
3901
|
+
* The notification will additionally be shown as a snackbar if set.
|
|
3902
|
+
*/
|
|
3903
|
+
showAsSnackbar?: boolean;
|
|
3904
|
+
/**
|
|
3905
|
+
* To override configs for the snackbar notification, you can also pass an options object here.
|
|
3906
|
+
*/
|
|
3907
|
+
snackbarOptions?: QdSnackbarNotificationOptions;
|
|
3908
|
+
/**
|
|
3909
|
+
* The notification will additionally be pushed as a Windows (OS) notification with the browser Notification API
|
|
3910
|
+
* if set. In the future, notifications with this flag will also be triggered as system notifications on smartphones.
|
|
3911
|
+
*/
|
|
3912
|
+
showAsOsNotification?: boolean;
|
|
3913
|
+
/**
|
|
3914
|
+
* To override configs for the OS notification, you can also pass an options object here.
|
|
3915
|
+
*/
|
|
3916
|
+
osNotificationOptions?: QdOsNotificationOptions;
|
|
3917
|
+
}
|
|
3918
|
+
/**
|
|
3919
|
+
* State of a notification. A subset of the canonical {@link QdStatus} vocabulary.
|
|
3920
|
+
*/
|
|
3921
|
+
type QdNotificationState = Extract<QdStatus, 'positive' | 'info' | 'warning' | 'critical' | 'urgent'>;
|
|
3922
|
+
type QdNotificationTranslation = string;
|
|
3923
|
+
type QdNotificationTitle = {
|
|
3924
|
+
i18n: string;
|
|
3925
|
+
};
|
|
3926
|
+
type QdNotificationLink = {
|
|
3927
|
+
i18n: string;
|
|
3928
|
+
handler: () => void;
|
|
3929
|
+
};
|
|
3930
|
+
type QdNotifications = QdNotification[];
|
|
3931
|
+
interface QdSnackbarNotificationOptions {
|
|
3932
|
+
/**
|
|
3933
|
+
* Here you can override the life time especially for the snackbar notification. The overridden life time
|
|
3934
|
+
* has to be shorter than the life time of the main notification because when the main notification is removed,
|
|
3935
|
+
* the snackbar notification will be removed anyway.
|
|
3936
|
+
*/
|
|
3937
|
+
lifeTime?: number;
|
|
3938
|
+
/**
|
|
3939
|
+
* The close "x" can be removed by setting this flag.
|
|
3940
|
+
*/
|
|
3941
|
+
disableClose?: boolean;
|
|
3942
|
+
/**
|
|
3943
|
+
* Defines a close handler.
|
|
3944
|
+
*/
|
|
3945
|
+
onClose?: () => void;
|
|
4149
3946
|
}
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
|
|
4154
|
-
|
|
3947
|
+
interface QdOsNotificationOptions {
|
|
3948
|
+
/**
|
|
3949
|
+
* Specifies whether the notification should be silent — i.e., no sounds or vibrations should be issued,
|
|
3950
|
+
* regardless of the device settings.
|
|
3951
|
+
*/
|
|
3952
|
+
silent?: boolean;
|
|
3953
|
+
/**
|
|
3954
|
+
* Here you can override the life time especially for the OS notification. The overridden life time
|
|
3955
|
+
* has to be shorter than the life time of the main notification because when the main notification is removed,
|
|
3956
|
+
* the OS notification will be removed anyway.
|
|
3957
|
+
*/
|
|
3958
|
+
lifeTime?: number;
|
|
3959
|
+
/**
|
|
3960
|
+
* @description Defines a click handler.
|
|
3961
|
+
*
|
|
3962
|
+
* * @example You can open a deep link with the following code for the click handler:
|
|
3963
|
+
* * event.preventDefault();
|
|
3964
|
+
* * window.open('https://your/deep/link');
|
|
3965
|
+
*/
|
|
3966
|
+
onClick?: (event: any) => void;
|
|
3967
|
+
/**
|
|
3968
|
+
* Defines a close handler.
|
|
3969
|
+
*/
|
|
3970
|
+
onClose?: (event: any) => void;
|
|
4155
3971
|
}
|
|
4156
3972
|
|
|
4157
3973
|
declare class QdMockNotificationComponent {
|
|
@@ -6310,6 +6126,52 @@ declare class QdNotificationsComponent implements OnInit {
|
|
|
6310
6126
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdNotificationsComponent, "qd-notifications", never, { "context": { "alias": "context"; "required": false; }; }, {}, never, never, false, never>;
|
|
6311
6127
|
}
|
|
6312
6128
|
|
|
6129
|
+
declare class QdNotificationsService {
|
|
6130
|
+
private snackbarService;
|
|
6131
|
+
private osNotificationsService;
|
|
6132
|
+
private readonly notificationLifeTimeDefault;
|
|
6133
|
+
private readonly _notificationsSubject;
|
|
6134
|
+
private readonly notifications$;
|
|
6135
|
+
private notifications;
|
|
6136
|
+
constructor();
|
|
6137
|
+
getNotificationsForContext(context: string): Observable<QdNotification[]>;
|
|
6138
|
+
add(context: string, notification: QdNotification): void;
|
|
6139
|
+
private addSnackbarNotification;
|
|
6140
|
+
private addOsNotification;
|
|
6141
|
+
addBulk(context: string, notifications: QdNotifications): void;
|
|
6142
|
+
remove(context: string, id: string): void;
|
|
6143
|
+
removeAll(context: string): void;
|
|
6144
|
+
reset(): void;
|
|
6145
|
+
private updateSubject;
|
|
6146
|
+
private removeNotificationAfterTimeOut;
|
|
6147
|
+
private getNotificationLifeTime;
|
|
6148
|
+
private removeSnackbarNotificationAfterTimeOutIfOverriden;
|
|
6149
|
+
private removeOsNotificationAfterTimeOutIfOverriden;
|
|
6150
|
+
private zeroToInfinity;
|
|
6151
|
+
private subscribeToTriggerOnCloseHandlers;
|
|
6152
|
+
private getClosedNotifications;
|
|
6153
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QdNotificationsService, never>;
|
|
6154
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QdNotificationsService>;
|
|
6155
|
+
}
|
|
6156
|
+
|
|
6157
|
+
declare const BACKEND_ERROR_CODES: InjectionToken<Record<string, string>>;
|
|
6158
|
+
declare const WHITELIST_ERROR_CODES: InjectionToken<number[]>;
|
|
6159
|
+
/**
|
|
6160
|
+
* The QdNotificationsHttpInterceptorService is an Angular HTTP interceptor that captures error responses from HTTP requests and generates notifications for backend errors. This Service not only intercepts error responses, but it also handles specific error codes and translates them into appropriate error messages for display.
|
|
6161
|
+
*/
|
|
6162
|
+
declare class QdNotificationsHttpInterceptorService implements HttpInterceptor {
|
|
6163
|
+
private readonly appEnvironment;
|
|
6164
|
+
private readonly backendErrorCodes;
|
|
6165
|
+
private readonly whitelistErrorCodes;
|
|
6166
|
+
readonly notificationService: QdNotificationsService;
|
|
6167
|
+
private readonly blacklistErrorCodes;
|
|
6168
|
+
intercept(request: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
6169
|
+
private getErrorTranslationKeyForHttpStatus;
|
|
6170
|
+
private getHttpErrorName;
|
|
6171
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QdNotificationsHttpInterceptorService, never>;
|
|
6172
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QdNotificationsHttpInterceptorService>;
|
|
6173
|
+
}
|
|
6174
|
+
|
|
6313
6175
|
/**
|
|
6314
6176
|
* Shows notifications as a snackbar.
|
|
6315
6177
|
*
|
|
@@ -9904,7 +9766,7 @@ interface QdGridConfig {
|
|
|
9904
9766
|
columns: 1 | 2 | 3 | 4 | 5 | 6;
|
|
9905
9767
|
/**
|
|
9906
9768
|
* @description With `columnsMax` you can narrow the number of used columns. The remaining
|
|
9907
|
-
* columns on the right will be left empty.
|
|
9769
|
+
* columns on the right will be left empty. The value has to be smaller than `columns`.
|
|
9908
9770
|
*/
|
|
9909
9771
|
columnsMax?: 1 | 2 | 3 | 4 | 5;
|
|
9910
9772
|
/**
|
|
@@ -11300,6 +11162,115 @@ declare class QdDialogActionComponent {
|
|
|
11300
11162
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdDialogActionComponent, "qd-dialog-action", never, {}, {}, never, ["*"], false, never>;
|
|
11301
11163
|
}
|
|
11302
11164
|
|
|
11165
|
+
/**
|
|
11166
|
+
* Configuration object for dialog.
|
|
11167
|
+
*/
|
|
11168
|
+
interface QdDialogConfig extends DialogConfig {
|
|
11169
|
+
/**
|
|
11170
|
+
* Title of dialog.
|
|
11171
|
+
*/
|
|
11172
|
+
title?: QdDialogTitle;
|
|
11173
|
+
/**
|
|
11174
|
+
* Hides the close button in the dialog header.
|
|
11175
|
+
*
|
|
11176
|
+
* @default false
|
|
11177
|
+
*/
|
|
11178
|
+
hideCloseHeaderButton?: boolean;
|
|
11179
|
+
/**
|
|
11180
|
+
* Determines the size of the dialog. There are 3 different width sizes.
|
|
11181
|
+
* Small - 500px
|
|
11182
|
+
* Default - 900px
|
|
11183
|
+
* FullWidth - 100%
|
|
11184
|
+
*/
|
|
11185
|
+
dialogSize?: QdDialogSize;
|
|
11186
|
+
/**
|
|
11187
|
+
* Allows the user to move the dialog with the mouse by dragging its header.
|
|
11188
|
+
*
|
|
11189
|
+
* Has no effect on page dialogs (`QdDialogSize.FullWidth`) and on small screens,
|
|
11190
|
+
* where the dialog covers the whole viewport. The position is not persisted and
|
|
11191
|
+
* resets whenever the dialog is reopened.
|
|
11192
|
+
*
|
|
11193
|
+
* @default false
|
|
11194
|
+
*/
|
|
11195
|
+
isDraggable?: boolean;
|
|
11196
|
+
/**
|
|
11197
|
+
* Additional data for the dialog.
|
|
11198
|
+
*/
|
|
11199
|
+
data?: {
|
|
11200
|
+
[key: string]: any;
|
|
11201
|
+
};
|
|
11202
|
+
/**
|
|
11203
|
+
* @description Configuration for the primary action.
|
|
11204
|
+
*/
|
|
11205
|
+
primary?: QdDialogPrimaryAction;
|
|
11206
|
+
/**
|
|
11207
|
+
* @description Configuration for the cancel button.
|
|
11208
|
+
*/
|
|
11209
|
+
cancel?: QdDialogCancelAction;
|
|
11210
|
+
}
|
|
11211
|
+
/**
|
|
11212
|
+
* Title of dialog.
|
|
11213
|
+
*/
|
|
11214
|
+
interface QdDialogTitle {
|
|
11215
|
+
/**
|
|
11216
|
+
* Translation key.
|
|
11217
|
+
*/
|
|
11218
|
+
i18n: string;
|
|
11219
|
+
}
|
|
11220
|
+
/**
|
|
11221
|
+
* Enum for different Dialog sizes.
|
|
11222
|
+
*/
|
|
11223
|
+
declare enum QdDialogSize {
|
|
11224
|
+
Small = "500px",
|
|
11225
|
+
Default = "900px",
|
|
11226
|
+
FullWidth = "100%"
|
|
11227
|
+
}
|
|
11228
|
+
/**
|
|
11229
|
+
* @description Interface for the primary action.
|
|
11230
|
+
*/
|
|
11231
|
+
interface QdDialogPrimaryAction {
|
|
11232
|
+
/**
|
|
11233
|
+
* @description Label for a primary action button, used for translation.
|
|
11234
|
+
*
|
|
11235
|
+
* * If no custom translation key is provided, a standard label will be used by default.
|
|
11236
|
+
*/
|
|
11237
|
+
label?: {
|
|
11238
|
+
i18n: string;
|
|
11239
|
+
};
|
|
11240
|
+
/**
|
|
11241
|
+
* @description Handler function that is triggered when the primary action is executed.
|
|
11242
|
+
*/
|
|
11243
|
+
handler?: () => void;
|
|
11244
|
+
}
|
|
11245
|
+
/**
|
|
11246
|
+
* @description Interface for the cancel action, including an optional confirmation message.
|
|
11247
|
+
*/
|
|
11248
|
+
interface QdDialogCancelAction {
|
|
11249
|
+
/**
|
|
11250
|
+
* @description Label for the cancel action, used for translation.
|
|
11251
|
+
*
|
|
11252
|
+
* * If no custom translation key is provided, a standard label will be used by default.
|
|
11253
|
+
*/
|
|
11254
|
+
label?: {
|
|
11255
|
+
i18n: string;
|
|
11256
|
+
};
|
|
11257
|
+
/**
|
|
11258
|
+
* @description Handler function that is triggered when the cancel action is executed.
|
|
11259
|
+
*/
|
|
11260
|
+
handler?: (formValues?: any) => void;
|
|
11261
|
+
/**
|
|
11262
|
+
* @description An optional confirmation message displayed in a dialog when the user attempts to cancel the operation, warning that all changes will be discarded.
|
|
11263
|
+
* If no custom message is provided, a standard message will be shown by default.
|
|
11264
|
+
*
|
|
11265
|
+
* * The cancellation process checks whether there are unsaved changes in the form. If there are changes, the dialog will appear.
|
|
11266
|
+
*
|
|
11267
|
+
* * If no changes are detected, the cancellation proceeds without showing the confirmation dialog.
|
|
11268
|
+
*/
|
|
11269
|
+
confirmationMessage?: {
|
|
11270
|
+
i18n: string;
|
|
11271
|
+
};
|
|
11272
|
+
}
|
|
11273
|
+
|
|
11303
11274
|
/**
|
|
11304
11275
|
* **QdDialog** creating resonsive dialogs. Three different sizes are available.
|
|
11305
11276
|
*
|
|
@@ -11662,6 +11633,35 @@ declare class QdDialogService {
|
|
|
11662
11633
|
static ɵprov: i0.ɵɵInjectableDeclaration<QdDialogService>;
|
|
11663
11634
|
}
|
|
11664
11635
|
|
|
11636
|
+
/**
|
|
11637
|
+
* Interface representing the result of a session end modal.
|
|
11638
|
+
*/
|
|
11639
|
+
interface QdDialogAuthSessionEndResult {
|
|
11640
|
+
/**
|
|
11641
|
+
* Indicates whether the user should reauthenticate.
|
|
11642
|
+
*/
|
|
11643
|
+
doReauthenticate?: boolean;
|
|
11644
|
+
/**
|
|
11645
|
+
* Indicates whether the user should log out via the identity broker.
|
|
11646
|
+
*/
|
|
11647
|
+
doLogoutViaIdentityBroker?: boolean;
|
|
11648
|
+
}
|
|
11649
|
+
|
|
11650
|
+
/**
|
|
11651
|
+
* **QdDialogAuthSessionEndService**: Service for handling authentication support functionalities.
|
|
11652
|
+
* This service is responsible for providing a handler to manage the logout process by opening a dialog.
|
|
11653
|
+
*/
|
|
11654
|
+
declare class QdDialogAuthSessionEndService {
|
|
11655
|
+
private dialogService;
|
|
11656
|
+
config: QdDialogConfig;
|
|
11657
|
+
/**
|
|
11658
|
+
* Returns a function that opens the `QdDialogAuthSessionEndComponent` dialog and returns an observable that emits a **QdDialogAuthSessionEndResult** object when the dialog is closed.
|
|
11659
|
+
*/
|
|
11660
|
+
getLogoutHandler(): (logoutUrl?: Observable<string>) => Observable<QdDialogAuthSessionEndResult>;
|
|
11661
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QdDialogAuthSessionEndService, never>;
|
|
11662
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QdDialogAuthSessionEndService>;
|
|
11663
|
+
}
|
|
11664
|
+
|
|
11665
11665
|
/**
|
|
11666
11666
|
* **QdDialogRecordStepperComponent** provides a pagination for the fullscreen version of **QdDialog**. <br />
|
|
11667
11667
|
* It is possible to navigate through a list of data provided by the dialog.
|
|
@@ -17842,6 +17842,7 @@ declare class QdTreeBodyComponent<T extends string> implements OnInit, OnChanges
|
|
|
17842
17842
|
constructor();
|
|
17843
17843
|
ngOnInit(): void;
|
|
17844
17844
|
ngOnChanges(changes: SimpleChanges): void;
|
|
17845
|
+
private get hasSeveralTreeColumns();
|
|
17845
17846
|
static ɵfac: i0.ɵɵFactoryDeclaration<QdTreeBodyComponent<any>, never>;
|
|
17846
17847
|
static ɵcmp: i0.ɵɵComponentDeclaration<QdTreeBodyComponent<any>, "[qd-tree-body]", never, { "config": { "alias": "config"; "required": false; }; "data": { "alias": "data"; "required": false; }; "testId": { "alias": "data-test-id"; "required": false; }; }, {}, never, never, false, never>;
|
|
17847
17848
|
}
|
|
@@ -17857,6 +17858,7 @@ declare class QdTreeRowComponent<T extends string> {
|
|
|
17857
17858
|
get rowIndex(): number;
|
|
17858
17859
|
expanded: boolean;
|
|
17859
17860
|
private readonly contextService;
|
|
17861
|
+
private readonly rowsService;
|
|
17860
17862
|
private _rowData;
|
|
17861
17863
|
private _rowIndex;
|
|
17862
17864
|
onExpanderClick(): void;
|