@newheap/platform-common 0.20.6
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/LICENSE +201 -0
- package/NOTICE +5 -0
- package/README.md +45 -0
- package/THIRD-PARTY-NOTICES.md +64 -0
- package/fesm2022/newheap-platform-common.mjs +8452 -0
- package/fesm2022/newheap-platform-common.mjs.map +1 -0
- package/index.d.ts +2454 -0
- package/package.json +52 -0
- package/styles/_mixins.scss +0 -0
- package/styles/_variables.scss +0 -0
- package/styles/common.scss +0 -0
- package/styles/components/nh-context-menu.scss +42 -0
- package/styles/index.scss +4 -0
package/index.d.ts
ADDED
|
@@ -0,0 +1,2454 @@
|
|
|
1
|
+
import { BrowserOptions } from '@sentry/browser/build/npm/types/client';
|
|
2
|
+
import * as Sentry from '@sentry/angular';
|
|
3
|
+
import { ErrorHandlerOptions } from '@sentry/angular';
|
|
4
|
+
import * as i20 from '@angular/common';
|
|
5
|
+
import { KeyValue } from '@angular/common';
|
|
6
|
+
import { HttpHeaders, HttpParams, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent, HttpClient, HttpResponse } from '@angular/common/http';
|
|
7
|
+
import * as i21 from '@ngx-translate/core';
|
|
8
|
+
import { TranslateService, TranslateLoader } from '@ngx-translate/core';
|
|
9
|
+
import * as rxjs from 'rxjs';
|
|
10
|
+
import { Observable, BehaviorSubject, Subject, Subscription } from 'rxjs';
|
|
11
|
+
import * as i0 from '@angular/core';
|
|
12
|
+
import { OnDestroy, NgZone, InjectionToken, ErrorHandler, Injector, ApplicationRef, TransferState, Type, RendererFactory2, ViewContainerRef, OnInit, AfterViewInit, ElementRef, ComponentRef, OnChanges, AfterContentInit, EventEmitter, PipeTransform, Renderer2, ChangeDetectorRef, ModuleWithProviders } from '@angular/core';
|
|
13
|
+
import { CookieService, CookieOptions, SameSite } from 'ngx-cookie-service';
|
|
14
|
+
import * as i23 from '@angular/forms';
|
|
15
|
+
import { ControlValueAccessor, UntypedFormGroup, UntypedFormControl, NgControl, AbstractControl } from '@angular/forms';
|
|
16
|
+
import * as SentryCore from '@sentry/core';
|
|
17
|
+
import * as i1 from '@angular/router';
|
|
18
|
+
import { Router, Route, Routes, LoadChildren, DefaultExport, CanActivateFn, CanMatchFn, CanActivateChildFn, RedirectFunction, Data, ActivatedRoute, ActivatedRouteSnapshot, NavigationExtras, UrlCreationOptions, UrlTree, RouterStateSnapshot, RouterLink, Params, ParamMap, CanDeactivate, MaybeAsync, GuardResult } from '@angular/router';
|
|
19
|
+
import * as _angular_platform_browser from '@angular/platform-browser';
|
|
20
|
+
import { Title, Meta, MetaDefinition, SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
21
|
+
import * as i22 from 'ngx-bootstrap-multiselect';
|
|
22
|
+
import { IMultiSelectSettings, IMultiSelectTexts, NgxDropdownMultiselectComponent, IMultiSelectOption } from 'ngx-bootstrap-multiselect';
|
|
23
|
+
import { ToastrService } from 'ngx-toastr';
|
|
24
|
+
import { ColumnMode } from '@swimlane/ngx-datatable';
|
|
25
|
+
|
|
26
|
+
declare class EndpointsAuthenticationNhCommonModuleConfig {
|
|
27
|
+
msAuthenticate: string;
|
|
28
|
+
msRedirectUrl: string;
|
|
29
|
+
authorizationFlow: string;
|
|
30
|
+
login: string;
|
|
31
|
+
logout: string;
|
|
32
|
+
refresh: string;
|
|
33
|
+
impersonate: string;
|
|
34
|
+
revertImpersonate: string;
|
|
35
|
+
accountInformation: string;
|
|
36
|
+
constructor(init?: Partial<EndpointsAuthenticationNhCommonModuleConfig>);
|
|
37
|
+
}
|
|
38
|
+
declare class AuthenticationNhCommonModuleConfig {
|
|
39
|
+
addAuthTokensToRequests: boolean;
|
|
40
|
+
additionalClaimPermissionTypes: string[];
|
|
41
|
+
additionalDivisionClaimPermissionTypes: string[];
|
|
42
|
+
endpoints: EndpointsAuthenticationNhCommonModuleConfig;
|
|
43
|
+
loginPath: string;
|
|
44
|
+
constructor(init?: Partial<AuthenticationNhCommonModuleConfig>);
|
|
45
|
+
}
|
|
46
|
+
declare class UserNotificationNhCommonModuleConfig {
|
|
47
|
+
urlSuffix: string;
|
|
48
|
+
pollingInterval: number;
|
|
49
|
+
constructor(init?: Partial<UserNotificationNhCommonModuleConfig>);
|
|
50
|
+
}
|
|
51
|
+
declare class NhSentryErrorLoggingNhCommonModuleConfig {
|
|
52
|
+
errorLoggingEnabled: boolean;
|
|
53
|
+
tracingEnabled: boolean;
|
|
54
|
+
beforeSendAddAuthServiceInformation: boolean;
|
|
55
|
+
options: BrowserOptions;
|
|
56
|
+
errorHandlerOptions: ErrorHandlerOptions;
|
|
57
|
+
constructor(init?: Partial<NhSentryErrorLoggingNhCommonModuleConfig>);
|
|
58
|
+
}
|
|
59
|
+
declare class NhErrorLoggingNhCommonModuleConfig {
|
|
60
|
+
sentry: NhSentryErrorLoggingNhCommonModuleConfig;
|
|
61
|
+
constructor(init?: Partial<NhErrorLoggingNhCommonModuleConfig>);
|
|
62
|
+
}
|
|
63
|
+
declare class NhTranslationNhCommonModuleConfig {
|
|
64
|
+
browserLoaderPrefix: string;
|
|
65
|
+
serverLoaderPath: string;
|
|
66
|
+
constructor(init?: Partial<NhTranslationNhCommonModuleConfig>);
|
|
67
|
+
}
|
|
68
|
+
declare class NhFormDropDownNhCommonModuleConfig {
|
|
69
|
+
deferLazyLoadUntilOpened: boolean;
|
|
70
|
+
constructor(init?: Partial<NhFormDropDownNhCommonModuleConfig>);
|
|
71
|
+
}
|
|
72
|
+
declare class NhHttpNhCommonModuleConfig {
|
|
73
|
+
deduplicateGetRequests: boolean;
|
|
74
|
+
deduplicateGetRequestHeaderNames: string[];
|
|
75
|
+
constructor(init?: Partial<NhHttpNhCommonModuleConfig>);
|
|
76
|
+
}
|
|
77
|
+
declare class NhCommonModuleConfig {
|
|
78
|
+
appDisplayName: string;
|
|
79
|
+
baseUrl: string;
|
|
80
|
+
apiBaseUrl: string;
|
|
81
|
+
authApiBaseUrl: string;
|
|
82
|
+
defaultLanguage: string;
|
|
83
|
+
supportedLanguages: string[];
|
|
84
|
+
authType: 'cookie' | 'header';
|
|
85
|
+
language: string;
|
|
86
|
+
defaultCulture: string;
|
|
87
|
+
culture: string;
|
|
88
|
+
authenticationRealm: string;
|
|
89
|
+
environment: string;
|
|
90
|
+
cookieDomain: string;
|
|
91
|
+
defaultItemsPerPage: number;
|
|
92
|
+
defaultDateFormat: string;
|
|
93
|
+
defaultDateTimeFormat: string;
|
|
94
|
+
authentication: AuthenticationNhCommonModuleConfig;
|
|
95
|
+
userNotification: UserNotificationNhCommonModuleConfig;
|
|
96
|
+
errorLogging: NhErrorLoggingNhCommonModuleConfig;
|
|
97
|
+
translation: NhTranslationNhCommonModuleConfig;
|
|
98
|
+
formDropdown: NhFormDropDownNhCommonModuleConfig;
|
|
99
|
+
http: NhHttpNhCommonModuleConfig;
|
|
100
|
+
constructor(init?: Partial<NhCommonModuleConfig>);
|
|
101
|
+
}
|
|
102
|
+
declare class NhCommonConfig {
|
|
103
|
+
languageCode: string;
|
|
104
|
+
culture: string;
|
|
105
|
+
constructor(init?: Partial<NhCommonConfig>);
|
|
106
|
+
}
|
|
107
|
+
declare class NhCommonConfigChanged {
|
|
108
|
+
config: NhCommonConfig;
|
|
109
|
+
constructor(init?: Partial<NhCommonConfigChanged>);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
type SuccessResult<T> = TaskResult<T> & {
|
|
113
|
+
isSuccess: true;
|
|
114
|
+
data: T;
|
|
115
|
+
};
|
|
116
|
+
type ErrorResult<T> = TaskResult<T> & {
|
|
117
|
+
isSuccess: false;
|
|
118
|
+
data: T | undefined;
|
|
119
|
+
};
|
|
120
|
+
type TypedResult<T> = SuccessResult<T> | ErrorResult<T>;
|
|
121
|
+
declare class TaskResultItem {
|
|
122
|
+
name: string;
|
|
123
|
+
errorMessages: string[];
|
|
124
|
+
constructor(init?: Partial<TaskResultItem>);
|
|
125
|
+
}
|
|
126
|
+
declare class TaskResult<T> {
|
|
127
|
+
isSuccess: boolean;
|
|
128
|
+
items: TaskResultItem[];
|
|
129
|
+
data: T | undefined;
|
|
130
|
+
constructor(init?: Partial<TaskResult<T>>);
|
|
131
|
+
withError(name: string, errorMessages: string | string[]): TaskResult<T>;
|
|
132
|
+
addError(name: string, errorMessages: string | string[]): void;
|
|
133
|
+
addErrors(errors: TaskResultItem[]): void;
|
|
134
|
+
copyTo<T2>(target: TaskResult<T2>): void;
|
|
135
|
+
getAllErrorMessages(): string[];
|
|
136
|
+
asTypedResult(): TypedResult<T>;
|
|
137
|
+
}
|
|
138
|
+
declare enum ListSortDirection {
|
|
139
|
+
Ascending = "Ascending",
|
|
140
|
+
Descending = "Descending"
|
|
141
|
+
}
|
|
142
|
+
declare class PreConnectUrlItem {
|
|
143
|
+
preConnect: boolean;
|
|
144
|
+
dnsPrefetch: boolean;
|
|
145
|
+
url: string;
|
|
146
|
+
withCrossOrigin: boolean;
|
|
147
|
+
crossOrigin?: string;
|
|
148
|
+
additionalAttributes: KeyValue<string, string>[];
|
|
149
|
+
constructor(init?: Partial<PreConnectUrlItem>);
|
|
150
|
+
}
|
|
151
|
+
declare class PreLoadUrlItem {
|
|
152
|
+
url: string;
|
|
153
|
+
withCrossOrigin: boolean;
|
|
154
|
+
crossOrigin?: string;
|
|
155
|
+
as: string;
|
|
156
|
+
type: string;
|
|
157
|
+
additionalAttributes: KeyValue<string, string>[];
|
|
158
|
+
constructor(init?: Partial<PreLoadUrlItem>);
|
|
159
|
+
}
|
|
160
|
+
type NhRouterLink = {
|
|
161
|
+
id: string;
|
|
162
|
+
arguments?: any;
|
|
163
|
+
language?: string | null | undefined;
|
|
164
|
+
scrollToTop?: boolean;
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
interface IHttpRequestOptions {
|
|
168
|
+
headers?: HttpHeaders;
|
|
169
|
+
observe?: 'body';
|
|
170
|
+
params?: HttpParams;
|
|
171
|
+
reportProgress?: boolean;
|
|
172
|
+
responseType?: 'json' | 'blob' | 'text' | 'arraybuffer';
|
|
173
|
+
withCredentials?: boolean;
|
|
174
|
+
}
|
|
175
|
+
declare class HttpRequestOptions implements IHttpRequestOptions {
|
|
176
|
+
headers?: HttpHeaders;
|
|
177
|
+
observe?: 'body';
|
|
178
|
+
params?: HttpParams;
|
|
179
|
+
reportProgress?: boolean;
|
|
180
|
+
responseType?: 'json';
|
|
181
|
+
withCredentials?: boolean;
|
|
182
|
+
constructor(init?: Partial<HttpRequestOptions>);
|
|
183
|
+
}
|
|
184
|
+
declare class HttpRequestOptionsArrayBuffer implements IHttpRequestOptions {
|
|
185
|
+
headers?: HttpHeaders;
|
|
186
|
+
observe?: 'body';
|
|
187
|
+
params?: HttpParams;
|
|
188
|
+
reportProgress?: boolean;
|
|
189
|
+
responseType?: 'arraybuffer';
|
|
190
|
+
withCredentials?: boolean;
|
|
191
|
+
constructor(init?: Partial<HttpRequestOptions>);
|
|
192
|
+
}
|
|
193
|
+
declare class HttpRequestOptionsText implements IHttpRequestOptions {
|
|
194
|
+
headers?: HttpHeaders;
|
|
195
|
+
observe?: 'body';
|
|
196
|
+
params?: HttpParams;
|
|
197
|
+
reportProgress?: boolean;
|
|
198
|
+
responseType?: 'text';
|
|
199
|
+
withCredentials?: boolean;
|
|
200
|
+
constructor(init?: Partial<HttpRequestOptionsText>);
|
|
201
|
+
}
|
|
202
|
+
interface IHttpDownloadRequestOptions extends IHttpRequestOptions {
|
|
203
|
+
responseType?: 'blob';
|
|
204
|
+
}
|
|
205
|
+
declare class HttpDownloadRequestOptions implements IHttpDownloadRequestOptions {
|
|
206
|
+
headers?: HttpHeaders;
|
|
207
|
+
observe?: 'body';
|
|
208
|
+
params?: HttpParams;
|
|
209
|
+
reportProgress?: boolean;
|
|
210
|
+
responseType?: 'blob';
|
|
211
|
+
withCredentials?: boolean;
|
|
212
|
+
constructor(init?: Partial<HttpDownloadRequestOptions>);
|
|
213
|
+
}
|
|
214
|
+
interface ISimpleCollectionHttpRequestOptions extends IHttpRequestOptions {
|
|
215
|
+
page: number;
|
|
216
|
+
itemsPerPage: number;
|
|
217
|
+
}
|
|
218
|
+
declare class SimpleCollectionHttpRequestOptions extends HttpRequestOptions implements ISimpleCollectionHttpRequestOptions {
|
|
219
|
+
page: number;
|
|
220
|
+
itemsPerPage: number;
|
|
221
|
+
constructor(init?: Partial<SimpleCollectionHttpRequestOptions>);
|
|
222
|
+
}
|
|
223
|
+
interface ISearchableCollectionHttpRequestOptions extends ISimpleCollectionHttpRequestOptions {
|
|
224
|
+
search?: string;
|
|
225
|
+
}
|
|
226
|
+
declare class SearchableCollectionHttpRequestOptions extends SimpleCollectionHttpRequestOptions implements ISearchableCollectionHttpRequestOptions {
|
|
227
|
+
search: string | undefined;
|
|
228
|
+
constructor(init?: Partial<SearchableCollectionHttpRequestOptions>);
|
|
229
|
+
}
|
|
230
|
+
interface ICollectionHttpRequestOptions extends ISearchableCollectionHttpRequestOptions {
|
|
231
|
+
orderBy: OrderByRequestOptions[];
|
|
232
|
+
filter: FilterRequestOptions[];
|
|
233
|
+
}
|
|
234
|
+
declare class CollectionHttpRequestOptions extends SearchableCollectionHttpRequestOptions implements ICollectionHttpRequestOptions {
|
|
235
|
+
orderBy: OrderByRequestOptions[];
|
|
236
|
+
filter: FilterRequestOptions[];
|
|
237
|
+
constructor(init?: Partial<CollectionHttpRequestOptions>);
|
|
238
|
+
or(condition: FilterRequestOptions): this;
|
|
239
|
+
and(condition: FilterRequestOptions): this;
|
|
240
|
+
equals(key: string, value: any, tag?: string): this;
|
|
241
|
+
notEquals(key: string, value: any, tag?: string): this;
|
|
242
|
+
isIn(key: string, value: any[], tag?: string): this;
|
|
243
|
+
isNotIn(key: string, value: any[], tag?: string): this;
|
|
244
|
+
lessThan(key: string, value: any, tag?: string): this;
|
|
245
|
+
lessThanOrEqual(key: string, value: any, tag?: string): this;
|
|
246
|
+
greaterThan(key: string, value: any, tag?: string): this;
|
|
247
|
+
greaterThanOrEqual(key: string, value: any, tag?: string): this;
|
|
248
|
+
like(key: string, value: string, tag?: string): this;
|
|
249
|
+
order(key: string, direction: 'ASC' | 'DESC'): this;
|
|
250
|
+
orderByFirst(propertyName: string, collectionItemProperty: string, direction: 'ASC' | 'DESC'): this;
|
|
251
|
+
orderByLast(propertyName: string, collectionItemProperty: string, direction: 'ASC' | 'DESC'): this;
|
|
252
|
+
orderAsc(key: string): this;
|
|
253
|
+
orderDesc(key: string): this;
|
|
254
|
+
}
|
|
255
|
+
interface ISimpleCollectionHttpResponse<T> {
|
|
256
|
+
page?: number;
|
|
257
|
+
itemsPerPage?: number;
|
|
258
|
+
resultCount?: number;
|
|
259
|
+
totalCount?: number;
|
|
260
|
+
items?: T[];
|
|
261
|
+
}
|
|
262
|
+
declare class SimpleCollectionHttpResponse<T> implements ISimpleCollectionHttpResponse<T> {
|
|
263
|
+
page: number;
|
|
264
|
+
itemsPerPage: number;
|
|
265
|
+
resultCount: number;
|
|
266
|
+
totalCount: number;
|
|
267
|
+
items: T[];
|
|
268
|
+
constructor(init?: Partial<SimpleCollectionHttpResponse<T>>);
|
|
269
|
+
}
|
|
270
|
+
interface ICollectionHttpResponse<T> extends ISimpleCollectionHttpResponse<T> {
|
|
271
|
+
orderBy?: OrderByRequestOptions[];
|
|
272
|
+
filter?: FilterRequestOptions[];
|
|
273
|
+
search?: string;
|
|
274
|
+
}
|
|
275
|
+
declare class CollectionHttpResponse<T> extends SimpleCollectionHttpResponse<T> implements ICollectionHttpResponse<T> {
|
|
276
|
+
orderBy: OrderByRequestOptions[];
|
|
277
|
+
filter: FilterRequestOptions[];
|
|
278
|
+
search: string;
|
|
279
|
+
constructor(init?: Partial<CollectionHttpResponse<T>>);
|
|
280
|
+
}
|
|
281
|
+
declare class OrderByRequestOptions {
|
|
282
|
+
key: string;
|
|
283
|
+
direction: 'ASC' | 'DESC';
|
|
284
|
+
constructor(init?: Partial<OrderByRequestOptions>);
|
|
285
|
+
}
|
|
286
|
+
declare class FilterRequestOptions {
|
|
287
|
+
tag: string | undefined;
|
|
288
|
+
key: string;
|
|
289
|
+
value: any;
|
|
290
|
+
operator: string;
|
|
291
|
+
ands: Array<FilterRequestOptions>;
|
|
292
|
+
ors: Array<FilterRequestOptions>;
|
|
293
|
+
static mergeToAndFilters(filters: Array<FilterRequestOptions>): FilterRequestOptions | null;
|
|
294
|
+
static mergeToOrFilters(filters: Array<FilterRequestOptions>): FilterRequestOptions | null;
|
|
295
|
+
and(options: FilterRequestOptions): this;
|
|
296
|
+
andArray(options: FilterRequestOptions[]): this;
|
|
297
|
+
or(options: FilterRequestOptions): this;
|
|
298
|
+
orArray(options: FilterRequestOptions[]): this;
|
|
299
|
+
static like(key: string, value: string, tag?: string): FilterRequestOptions;
|
|
300
|
+
static in(key: string, value: any[], tag?: string): FilterRequestOptions;
|
|
301
|
+
static notIn(key: string, value: any[], tag?: string): FilterRequestOptions;
|
|
302
|
+
static lessThan(key: string, value: any, tag?: string): FilterRequestOptions;
|
|
303
|
+
static lessThanOrEqual(key: string, value: any, tag?: string): FilterRequestOptions;
|
|
304
|
+
static greaterThan(key: string, value: any, tag?: string): FilterRequestOptions;
|
|
305
|
+
static greaterThanOrEqual(key: string, value: any, tag?: string): FilterRequestOptions;
|
|
306
|
+
static equals(key: string, value: any, tag?: string): FilterRequestOptions;
|
|
307
|
+
static notEquals(key: string, value: any, tag?: string): FilterRequestOptions;
|
|
308
|
+
constructor(init?: Partial<FilterRequestOptions>);
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
interface INhUser {
|
|
312
|
+
id: string | undefined;
|
|
313
|
+
email: string | undefined;
|
|
314
|
+
creationDateTime: any;
|
|
315
|
+
emailConfirmed: boolean;
|
|
316
|
+
lockoutEnd: any;
|
|
317
|
+
lockoutStart: any;
|
|
318
|
+
activeDivisionId: string | undefined;
|
|
319
|
+
activeDivision: INhDivision | undefined;
|
|
320
|
+
roles: Array<string>;
|
|
321
|
+
}
|
|
322
|
+
declare class NhUser implements INhUser {
|
|
323
|
+
id: string | undefined;
|
|
324
|
+
email: string | undefined;
|
|
325
|
+
creationDateTime: any;
|
|
326
|
+
emailConfirmed: boolean;
|
|
327
|
+
lockoutEnd: any;
|
|
328
|
+
lockoutStart: any;
|
|
329
|
+
activeDivisionId: string | undefined;
|
|
330
|
+
activeDivision: INhDivision | undefined;
|
|
331
|
+
division: INhDivision | undefined;
|
|
332
|
+
roles: Array<string>;
|
|
333
|
+
constructor(init?: Partial<NhUser>);
|
|
334
|
+
}
|
|
335
|
+
interface INhAuthorization {
|
|
336
|
+
realm: string;
|
|
337
|
+
provider: string;
|
|
338
|
+
token: string;
|
|
339
|
+
validTo: string | undefined;
|
|
340
|
+
refreshToken: string | undefined;
|
|
341
|
+
refreshTokenExpires: string | undefined;
|
|
342
|
+
user?: INhUser;
|
|
343
|
+
claims: Claim[];
|
|
344
|
+
divisions: INhDivision[];
|
|
345
|
+
activeDivision?: INhDivision;
|
|
346
|
+
}
|
|
347
|
+
declare class NhAuthorization implements INhAuthorization {
|
|
348
|
+
realm: string;
|
|
349
|
+
provider: string;
|
|
350
|
+
token: string;
|
|
351
|
+
validTo: string | undefined;
|
|
352
|
+
refreshToken: string | undefined;
|
|
353
|
+
refreshTokenExpires: string | undefined;
|
|
354
|
+
user?: INhUser;
|
|
355
|
+
claims: Claim[];
|
|
356
|
+
divisions: INhDivision[];
|
|
357
|
+
activeDivision?: INhDivision;
|
|
358
|
+
constructor(init?: Partial<NhAuthorization>);
|
|
359
|
+
}
|
|
360
|
+
interface INhAccountInformationResponse {
|
|
361
|
+
user?: INhUser;
|
|
362
|
+
claims: Claim[];
|
|
363
|
+
divisions: INhDivision[];
|
|
364
|
+
activeDivision?: INhDivision;
|
|
365
|
+
}
|
|
366
|
+
declare class NhAccountInformationResponse implements INhAccountInformationResponse {
|
|
367
|
+
user?: INhUser;
|
|
368
|
+
claims: Claim[];
|
|
369
|
+
divisions: INhDivision[];
|
|
370
|
+
activeDivision?: INhDivision;
|
|
371
|
+
constructor(init?: Partial<NhAccountInformationResponse>);
|
|
372
|
+
}
|
|
373
|
+
interface INhDivision {
|
|
374
|
+
id: string;
|
|
375
|
+
creationDateTime: any;
|
|
376
|
+
lastModifiedDateTime: any;
|
|
377
|
+
name: string;
|
|
378
|
+
description: string;
|
|
379
|
+
userSelectAllowed: boolean;
|
|
380
|
+
timeZoneId: string;
|
|
381
|
+
}
|
|
382
|
+
declare class NhDivision implements INhDivision {
|
|
383
|
+
id: string;
|
|
384
|
+
creationDateTime: any;
|
|
385
|
+
lastModifiedDateTime: any;
|
|
386
|
+
name: string;
|
|
387
|
+
description: string;
|
|
388
|
+
userSelectAllowed: boolean;
|
|
389
|
+
timeZoneId: string;
|
|
390
|
+
constructor(init?: Partial<NhDivision>);
|
|
391
|
+
}
|
|
392
|
+
interface INhDivisionRole {
|
|
393
|
+
id?: string;
|
|
394
|
+
name?: string;
|
|
395
|
+
}
|
|
396
|
+
declare class NhDivisionRole implements INhDivisionRole {
|
|
397
|
+
id?: string;
|
|
398
|
+
name?: string;
|
|
399
|
+
constructor(init?: Partial<NhDivisionRole>);
|
|
400
|
+
}
|
|
401
|
+
interface INhDivisionUser {
|
|
402
|
+
id?: string;
|
|
403
|
+
lockOutStartDateTime?: string;
|
|
404
|
+
lockOutEndDateTime?: string;
|
|
405
|
+
userId?: string;
|
|
406
|
+
user?: INhUser;
|
|
407
|
+
divisionId?: string;
|
|
408
|
+
division?: NhDivision;
|
|
409
|
+
roles: Array<NhDivisionRole>;
|
|
410
|
+
roleIds: Array<string>;
|
|
411
|
+
}
|
|
412
|
+
declare class NhDivisionUser implements INhDivisionUser {
|
|
413
|
+
id?: string;
|
|
414
|
+
lockOutStartDateTime?: string;
|
|
415
|
+
lockOutEndDateTime?: string;
|
|
416
|
+
userId?: string;
|
|
417
|
+
user?: INhUser;
|
|
418
|
+
divisionId?: string;
|
|
419
|
+
division?: INhDivision;
|
|
420
|
+
roles: Array<INhDivisionRole>;
|
|
421
|
+
roleIds: Array<string>;
|
|
422
|
+
constructor(init?: Partial<NhDivisionUser>);
|
|
423
|
+
}
|
|
424
|
+
declare class AuthSessionExpirationInformation {
|
|
425
|
+
isAuthenticated: boolean;
|
|
426
|
+
expiresWithin15MinutesOrExpired: boolean;
|
|
427
|
+
displayMinutesSecondsUntilExpiration: string;
|
|
428
|
+
constructor(init?: Partial<AuthSessionExpirationInformation>);
|
|
429
|
+
}
|
|
430
|
+
declare class RefreshTokenLoginAccountMutateModel {
|
|
431
|
+
token: string;
|
|
432
|
+
refreshToken: string;
|
|
433
|
+
constructor(init?: Partial<RefreshTokenLoginAccountMutateModel>);
|
|
434
|
+
}
|
|
435
|
+
declare class AuthenticationSessionCreateResponse {
|
|
436
|
+
sessionToken: string;
|
|
437
|
+
expirationDateTime: string;
|
|
438
|
+
constructor(init?: Partial<AuthenticationSessionCreateResponse>);
|
|
439
|
+
}
|
|
440
|
+
declare class ClaimAuthenticateSessionAccountMutateModel {
|
|
441
|
+
sessionToken: string;
|
|
442
|
+
constructor(init?: Partial<ClaimAuthenticateSessionAccountMutateModel>);
|
|
443
|
+
}
|
|
444
|
+
interface IClaimAuthenticateSessionAccountViewModel {
|
|
445
|
+
completed: boolean;
|
|
446
|
+
success: boolean;
|
|
447
|
+
errorMessages: string[];
|
|
448
|
+
token?: INhAuthorization;
|
|
449
|
+
}
|
|
450
|
+
declare class ClaimAuthenticateSessionAccountViewModel implements IClaimAuthenticateSessionAccountViewModel {
|
|
451
|
+
completed: boolean;
|
|
452
|
+
success: boolean;
|
|
453
|
+
errorMessages: string[];
|
|
454
|
+
token?: INhAuthorization;
|
|
455
|
+
constructor(init?: Partial<ClaimAuthenticateSessionAccountViewModel>);
|
|
456
|
+
}
|
|
457
|
+
declare class CheckAuthenticateSessionModel {
|
|
458
|
+
success: boolean;
|
|
459
|
+
didTry: boolean;
|
|
460
|
+
completed: boolean;
|
|
461
|
+
errorMessages: string[];
|
|
462
|
+
constructor(init?: Partial<CheckAuthenticateSessionModel>);
|
|
463
|
+
}
|
|
464
|
+
declare class Claim {
|
|
465
|
+
type: string | undefined;
|
|
466
|
+
value: string | undefined;
|
|
467
|
+
constructor(init?: Partial<Claim>);
|
|
468
|
+
}
|
|
469
|
+
declare enum ClaimTypes {
|
|
470
|
+
Name = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/name",
|
|
471
|
+
Email = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress",
|
|
472
|
+
NameIdentifier = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier",
|
|
473
|
+
Country = "http://schemas.xmlsoap.org/ws/2005/05/identity/claims/country",
|
|
474
|
+
Role = "http://schemas.microsoft.com/ws/2008/06/identity/claims/role",
|
|
475
|
+
Permission = "nh.platform.permission",
|
|
476
|
+
DivisionRole = "nh.platform.division.role",
|
|
477
|
+
DivisionPermission = "nh.platform.division.permission",
|
|
478
|
+
ImpersonateOriginUserId = "nh.platform.auth.impersonate.origin-user-id"
|
|
479
|
+
}
|
|
480
|
+
declare class AuthenticateModel {
|
|
481
|
+
realm: string;
|
|
482
|
+
username: string;
|
|
483
|
+
password: string | undefined;
|
|
484
|
+
constructor(init?: Partial<AuthenticateModel>);
|
|
485
|
+
}
|
|
486
|
+
declare class ImpersonateAuthenticateModel {
|
|
487
|
+
userId: string;
|
|
488
|
+
constructor(init?: Partial<ImpersonateAuthenticateModel>);
|
|
489
|
+
}
|
|
490
|
+
declare class RevertImpersonateAuthenticateModel {
|
|
491
|
+
constructor(init?: Partial<RevertImpersonateAuthenticateModel>);
|
|
492
|
+
}
|
|
493
|
+
type AuthenticationFlow = 'password' | 'microsoft-oauth' | string;
|
|
494
|
+
|
|
495
|
+
declare class NhUserNotificationCollectionHttpRequestOptions extends CollectionHttpRequestOptions {
|
|
496
|
+
constructor(init?: Partial<NhUserNotificationCollectionHttpRequestOptions>);
|
|
497
|
+
}
|
|
498
|
+
declare class NhUserNotificationState {
|
|
499
|
+
overview: NhUserNotificationOverview;
|
|
500
|
+
constructor(init?: Partial<NhUserNotificationState>);
|
|
501
|
+
}
|
|
502
|
+
declare class NhUserNotificationOverview {
|
|
503
|
+
totalCount: number;
|
|
504
|
+
unreadCount: number;
|
|
505
|
+
lastNotificationDate: string;
|
|
506
|
+
constructor(init?: Partial<NhUserNotificationOverview>);
|
|
507
|
+
}
|
|
508
|
+
declare class NhUserNotification {
|
|
509
|
+
id: string;
|
|
510
|
+
creationDateTime: string;
|
|
511
|
+
lastModifiedDateTime: string;
|
|
512
|
+
messages: NhUserNotificationMessage[];
|
|
513
|
+
lastTitle: string;
|
|
514
|
+
lastMessage: string;
|
|
515
|
+
isLastRead: boolean;
|
|
516
|
+
data: NhUserNotificationData;
|
|
517
|
+
constructor(init?: Partial<NhUserNotification>);
|
|
518
|
+
}
|
|
519
|
+
declare class NhUserNotificationMessage {
|
|
520
|
+
id: string;
|
|
521
|
+
creationDateTime: string;
|
|
522
|
+
lastModifiedDateTime: string;
|
|
523
|
+
title: string;
|
|
524
|
+
message: string;
|
|
525
|
+
userNotificationId: string;
|
|
526
|
+
constructor(init?: Partial<NhUserNotificationMessage>);
|
|
527
|
+
}
|
|
528
|
+
declare class NhUserNotificationData {
|
|
529
|
+
url: string;
|
|
530
|
+
urlInNewTab: boolean;
|
|
531
|
+
constructor(init?: Partial<NhUserNotificationData>);
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
declare const languageToCultureMap: {
|
|
535
|
+
nl: string;
|
|
536
|
+
en: string;
|
|
537
|
+
fr: string;
|
|
538
|
+
de: string;
|
|
539
|
+
};
|
|
540
|
+
declare const nameof: <T>(name: keyof T) => keyof T;
|
|
541
|
+
declare const IsDefined: <T>(value: T) => value is NonNullable<T>;
|
|
542
|
+
declare function enumKeysToArray(e: any): string[];
|
|
543
|
+
declare function enumValuesToArray(e: any): any[];
|
|
544
|
+
declare function enumIntValuesToArray(e: any): number[];
|
|
545
|
+
declare function enumStringValuesToArray(e: any): string[];
|
|
546
|
+
declare function getEmptyGuid(): string;
|
|
547
|
+
declare function getRandomIdentifier(): string;
|
|
548
|
+
declare function groupBy<T>(items: any[], keyGetter: any): any;
|
|
549
|
+
declare function uppercaseFirst(val?: string): string | undefined;
|
|
550
|
+
|
|
551
|
+
declare class NhStringUtil {
|
|
552
|
+
static upperFirst(inString: string | undefined | null): string | undefined | null;
|
|
553
|
+
static lowerFirst(inString: string | undefined | null): string | undefined | null;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
declare class NhHttpUtil {
|
|
557
|
+
static filenameFromContentDisposition(contentDisposition: string): string;
|
|
558
|
+
static objectToFormData(obj: any, formData?: FormData, namespace?: string): FormData;
|
|
559
|
+
}
|
|
560
|
+
|
|
561
|
+
declare class NhEncodingUtil {
|
|
562
|
+
static convertBlobToBase64(blob: Blob): Promise<string | ArrayBuffer | null>;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
declare class NhAngularUtil {
|
|
566
|
+
static idTrackBy(index: number, idObject: any): any;
|
|
567
|
+
}
|
|
568
|
+
|
|
569
|
+
declare class NhApiUtil {
|
|
570
|
+
static Constants: {
|
|
571
|
+
new (): {};
|
|
572
|
+
HttpHeaderKeys: {
|
|
573
|
+
new (): {};
|
|
574
|
+
};
|
|
575
|
+
};
|
|
576
|
+
static ParseCollectionRequestOptions(value?: string | null): CollectionHttpRequestOptions;
|
|
577
|
+
private static processFilter;
|
|
578
|
+
static taskResultFromResponse(response: any): TaskResult<any>;
|
|
579
|
+
}
|
|
580
|
+
|
|
581
|
+
interface NhEnumDropDownItem<TValue extends string | number> {
|
|
582
|
+
id: TValue | '';
|
|
583
|
+
name: string;
|
|
584
|
+
}
|
|
585
|
+
declare class NhFormHelper {
|
|
586
|
+
static clearErrors(form: any): void;
|
|
587
|
+
private static clearError;
|
|
588
|
+
private static clearFormGroupErrors;
|
|
589
|
+
private static clearFormArrayErrors;
|
|
590
|
+
private static clearControlErrors;
|
|
591
|
+
static getEnumDropDownByEnum(e: any, translateService: TranslateService, translationPrefix: string, emptyFirst?: boolean, skipValues?: any[]): any[];
|
|
592
|
+
static getEnumDropDownByEnum<TValue extends string | number>(e: any, translateService: TranslateService, translationPrefix: string, emptyFirst: boolean, skipValues: TValue[], translationKeySelector: (value: TValue) => string): NhEnumDropDownItem<TValue>[];
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
declare class NhMutex {
|
|
596
|
+
private lockPromise;
|
|
597
|
+
lock(): Promise<() => void>;
|
|
598
|
+
}
|
|
599
|
+
declare class NhAsyncLock {
|
|
600
|
+
private isLocked;
|
|
601
|
+
runExclusive<T>(fn: () => Promise<T>): Promise<T>;
|
|
602
|
+
}
|
|
603
|
+
|
|
604
|
+
declare class NhEncodeHttpParamsInterceptor implements HttpInterceptor {
|
|
605
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
606
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhEncodeHttpParamsInterceptor, never>;
|
|
607
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhEncodeHttpParamsInterceptor>;
|
|
608
|
+
}
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* Optional configuration to be used when parsing cookies.
|
|
612
|
+
* @public
|
|
613
|
+
*/
|
|
614
|
+
interface ParseCookieOptions {
|
|
615
|
+
/**
|
|
616
|
+
* If `true` then keyless cookies like `=abc` and `=` which are not RFC-compliant will be parsed.
|
|
617
|
+
*/
|
|
618
|
+
loose?: boolean | undefined;
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* Configurable values that can be set when creating a {@link Cookie}.
|
|
622
|
+
* @public
|
|
623
|
+
*/
|
|
624
|
+
interface CreateCookieOptions {
|
|
625
|
+
/** {@inheritDoc Cookie.key} */
|
|
626
|
+
key?: string;
|
|
627
|
+
/** {@inheritDoc Cookie.value} */
|
|
628
|
+
value?: string;
|
|
629
|
+
/** {@inheritDoc Cookie.expires} */
|
|
630
|
+
expires?: Date | 'Infinity' | null;
|
|
631
|
+
/** {@inheritDoc Cookie.maxAge} */
|
|
632
|
+
maxAge?: number | 'Infinity' | '-Infinity' | null;
|
|
633
|
+
/** {@inheritDoc Cookie.domain} */
|
|
634
|
+
domain?: string | null;
|
|
635
|
+
/** {@inheritDoc Cookie.path} */
|
|
636
|
+
path?: string | null;
|
|
637
|
+
/** {@inheritDoc Cookie.secure} */
|
|
638
|
+
secure?: boolean;
|
|
639
|
+
/** {@inheritDoc Cookie.httpOnly} */
|
|
640
|
+
httpOnly?: boolean;
|
|
641
|
+
/** {@inheritDoc Cookie.extensions} */
|
|
642
|
+
extensions?: string[] | null;
|
|
643
|
+
/** {@inheritDoc Cookie.creation} */
|
|
644
|
+
creation?: Date | 'Infinity' | null;
|
|
645
|
+
/** {@inheritDoc Cookie.hostOnly} */
|
|
646
|
+
hostOnly?: boolean | null;
|
|
647
|
+
/** {@inheritDoc Cookie.pathIsDefault} */
|
|
648
|
+
pathIsDefault?: boolean | null;
|
|
649
|
+
/** {@inheritDoc Cookie.lastAccessed} */
|
|
650
|
+
lastAccessed?: Date | 'Infinity' | null;
|
|
651
|
+
/** {@inheritDoc Cookie.sameSite} */
|
|
652
|
+
sameSite?: string | undefined;
|
|
653
|
+
}
|
|
654
|
+
/**
|
|
655
|
+
* An HTTP cookie (web cookie, browser cookie) is a small piece of data that a server sends to a user's web browser.
|
|
656
|
+
* It is defined in {@link https://www.rfc-editor.org/rfc/rfc6265.html | RFC6265}.
|
|
657
|
+
* @public
|
|
658
|
+
*/
|
|
659
|
+
declare class Cookie {
|
|
660
|
+
/**
|
|
661
|
+
* The name or key of the cookie
|
|
662
|
+
*/
|
|
663
|
+
key: string;
|
|
664
|
+
/**
|
|
665
|
+
* The value of the cookie
|
|
666
|
+
*/
|
|
667
|
+
value: string;
|
|
668
|
+
/**
|
|
669
|
+
* The 'Expires' attribute of the cookie
|
|
670
|
+
* (See {@link https://www.rfc-editor.org/rfc/rfc6265.html#section-5.2.1 | RFC6265 Section 5.2.1}).
|
|
671
|
+
*/
|
|
672
|
+
expires: Date | 'Infinity' | null;
|
|
673
|
+
/**
|
|
674
|
+
* The 'Max-Age' attribute of the cookie
|
|
675
|
+
* (See {@link https://www.rfc-editor.org/rfc/rfc6265.html#section-5.2.2 | RFC6265 Section 5.2.2}).
|
|
676
|
+
*/
|
|
677
|
+
maxAge: number | 'Infinity' | '-Infinity' | null;
|
|
678
|
+
/**
|
|
679
|
+
* The 'Domain' attribute of the cookie represents the domain the cookie belongs to
|
|
680
|
+
* (See {@link https://www.rfc-editor.org/rfc/rfc6265.html#section-5.2.3 | RFC6265 Section 5.2.3}).
|
|
681
|
+
*/
|
|
682
|
+
domain: string | null;
|
|
683
|
+
/**
|
|
684
|
+
* The 'Path' attribute of the cookie represents the path of the cookie
|
|
685
|
+
* (See {@link https://www.rfc-editor.org/rfc/rfc6265.html#section-5.2.4 | RFC6265 Section 5.2.4}).
|
|
686
|
+
*/
|
|
687
|
+
path: string | null;
|
|
688
|
+
/**
|
|
689
|
+
* The 'Secure' flag of the cookie indicates if the scope of the cookie is
|
|
690
|
+
* limited to secure channels (e.g.; HTTPS) or not
|
|
691
|
+
* (See {@link https://www.rfc-editor.org/rfc/rfc6265.html#section-5.2.5 | RFC6265 Section 5.2.5}).
|
|
692
|
+
*/
|
|
693
|
+
secure: boolean;
|
|
694
|
+
/**
|
|
695
|
+
* The 'HttpOnly' flag of the cookie indicates if the cookie is inaccessible to
|
|
696
|
+
* client scripts or not
|
|
697
|
+
* (See {@link https://www.rfc-editor.org/rfc/rfc6265.html#section-5.2.6 | RFC6265 Section 5.2.6}).
|
|
698
|
+
*/
|
|
699
|
+
httpOnly: boolean;
|
|
700
|
+
/**
|
|
701
|
+
* Contains attributes which are not part of the defined spec but match the `extension-av` syntax
|
|
702
|
+
* defined in Section 4.1.1 of RFC6265
|
|
703
|
+
* (See {@link https://www.rfc-editor.org/rfc/rfc6265.html#section-4.1.1 | RFC6265 Section 4.1.1}).
|
|
704
|
+
*/
|
|
705
|
+
extensions: string[] | null;
|
|
706
|
+
/**
|
|
707
|
+
* Set to the date and time when a Cookie is initially stored or a matching cookie is
|
|
708
|
+
* received that replaces an existing cookie
|
|
709
|
+
* (See {@link https://www.rfc-editor.org/rfc/rfc6265.html#section-5.3 | RFC6265 Section 5.3}).
|
|
710
|
+
*
|
|
711
|
+
* Also used to maintain ordering among cookies. Among cookies that have equal-length path fields,
|
|
712
|
+
* cookies with earlier creation-times are listed before cookies with later creation-times
|
|
713
|
+
* (See {@link https://www.rfc-editor.org/rfc/rfc6265.html#section-5.4 | RFC6265 Section 5.4}).
|
|
714
|
+
*/
|
|
715
|
+
creation: Date | 'Infinity' | null;
|
|
716
|
+
/**
|
|
717
|
+
* A global counter used to break ordering ties between two cookies that have equal-length path fields
|
|
718
|
+
* and the same creation-time.
|
|
719
|
+
*/
|
|
720
|
+
creationIndex: number;
|
|
721
|
+
/**
|
|
722
|
+
* A boolean flag indicating if a cookie is a host-only cookie (i.e.; when the request's host exactly
|
|
723
|
+
* matches the domain of the cookie) or not
|
|
724
|
+
* (See {@link https://www.rfc-editor.org/rfc/rfc6265.html#section-5.3 | RFC6265 Section 5.3}).
|
|
725
|
+
*/
|
|
726
|
+
hostOnly: boolean | null;
|
|
727
|
+
/**
|
|
728
|
+
* A boolean flag indicating if a cookie had no 'Path' attribute and the default path
|
|
729
|
+
* was used
|
|
730
|
+
* (See {@link https://www.rfc-editor.org/rfc/rfc6265.html#section-5.2.4 | RFC6265 Section 5.2.4}).
|
|
731
|
+
*/
|
|
732
|
+
pathIsDefault: boolean | null;
|
|
733
|
+
/**
|
|
734
|
+
* Set to the date and time when a cookie was initially stored ({@link https://www.rfc-editor.org/rfc/rfc6265.html#section-5.3 | RFC6265 Section 5.3}) and updated whenever
|
|
735
|
+
* the cookie is retrieved from the {@link CookieJar} ({@link https://www.rfc-editor.org/rfc/rfc6265.html#section-5.4 | RFC6265 Section 5.4}).
|
|
736
|
+
*/
|
|
737
|
+
lastAccessed: Date | 'Infinity' | null;
|
|
738
|
+
/**
|
|
739
|
+
* The 'SameSite' attribute of a cookie as defined in RFC6265bis
|
|
740
|
+
* (See {@link https://www.ietf.org/archive/id/draft-ietf-httpbis-rfc6265bis-13.html#section-5.2 | RFC6265bis (v13) Section 5.2 }).
|
|
741
|
+
*/
|
|
742
|
+
sameSite: string | undefined;
|
|
743
|
+
/**
|
|
744
|
+
* Create a new Cookie instance.
|
|
745
|
+
* @public
|
|
746
|
+
* @param options - The attributes to set on the cookie
|
|
747
|
+
*/
|
|
748
|
+
constructor(options?: CreateCookieOptions);
|
|
749
|
+
/**
|
|
750
|
+
* Sets the 'Expires' attribute on a cookie.
|
|
751
|
+
*
|
|
752
|
+
* @remarks
|
|
753
|
+
* When given a `string` value it will be parsed with {@link parseDate}. If the value can't be parsed as a cookie date
|
|
754
|
+
* then the 'Expires' attribute will be set to `"Infinity"`.
|
|
755
|
+
*
|
|
756
|
+
* @param exp - the new value for the 'Expires' attribute of the cookie.
|
|
757
|
+
*/
|
|
758
|
+
setExpires(exp: string | Date): void;
|
|
759
|
+
/**
|
|
760
|
+
* Sets the 'Max-Age' attribute (in seconds) on a cookie.
|
|
761
|
+
*
|
|
762
|
+
* @remarks
|
|
763
|
+
* Coerces `-Infinity` to `"-Infinity"` and `Infinity` to `"Infinity"` so it can be serialized to JSON.
|
|
764
|
+
*
|
|
765
|
+
* @param age - the new value for the 'Max-Age' attribute (in seconds).
|
|
766
|
+
*/
|
|
767
|
+
setMaxAge(age: number): void;
|
|
768
|
+
/**
|
|
769
|
+
* Encodes to a `Cookie` header value (specifically, the {@link Cookie.key} and {@link Cookie.value} properties joined with "=").
|
|
770
|
+
* @public
|
|
771
|
+
*/
|
|
772
|
+
cookieString(): string;
|
|
773
|
+
/**
|
|
774
|
+
* Encodes to a `Set-Cookie header` value.
|
|
775
|
+
* @public
|
|
776
|
+
*/
|
|
777
|
+
toString(): string;
|
|
778
|
+
/**
|
|
779
|
+
* Computes the TTL relative to now (milliseconds).
|
|
780
|
+
*
|
|
781
|
+
* @remarks
|
|
782
|
+
* - `Infinity` is returned for cookies without an explicit expiry
|
|
783
|
+
*
|
|
784
|
+
* - `0` is returned if the cookie is expired.
|
|
785
|
+
*
|
|
786
|
+
* - Otherwise a time-to-live in milliseconds is returned.
|
|
787
|
+
*
|
|
788
|
+
* @param now - passing an explicit value is mostly used for testing purposes since this defaults to the `Date.now()`
|
|
789
|
+
* @public
|
|
790
|
+
*/
|
|
791
|
+
TTL(now?: number): number;
|
|
792
|
+
/**
|
|
793
|
+
* Computes the absolute unix-epoch milliseconds that this cookie expires.
|
|
794
|
+
*
|
|
795
|
+
* The "Max-Age" attribute takes precedence over "Expires" (as per the RFC). The {@link Cookie.lastAccessed} attribute
|
|
796
|
+
* (or the `now` parameter if given) is used to offset the {@link Cookie.maxAge} attribute.
|
|
797
|
+
*
|
|
798
|
+
* If Expires ({@link Cookie.expires}) is set, that's returned.
|
|
799
|
+
*
|
|
800
|
+
* @param now - can be used to provide a time offset (instead of {@link Cookie.lastAccessed}) to use when calculating the "Max-Age" value
|
|
801
|
+
*/
|
|
802
|
+
expiryTime(now?: Date): number | undefined;
|
|
803
|
+
/**
|
|
804
|
+
* Similar to {@link Cookie.expiryTime}, computes the absolute unix-epoch milliseconds that this cookie expires and returns it as a Date.
|
|
805
|
+
*
|
|
806
|
+
* The "Max-Age" attribute takes precedence over "Expires" (as per the RFC). The {@link Cookie.lastAccessed} attribute
|
|
807
|
+
* (or the `now` parameter if given) is used to offset the {@link Cookie.maxAge} attribute.
|
|
808
|
+
*
|
|
809
|
+
* If Expires ({@link Cookie.expires}) is set, that's returned.
|
|
810
|
+
*
|
|
811
|
+
* @param now - can be used to provide a time offset (instead of {@link Cookie.lastAccessed}) to use when calculating the "Max-Age" value
|
|
812
|
+
*/
|
|
813
|
+
expiryDate(now?: Date): Date | undefined;
|
|
814
|
+
/**
|
|
815
|
+
* Indicates if the cookie has been persisted to a store or not.
|
|
816
|
+
* @public
|
|
817
|
+
*/
|
|
818
|
+
isPersistent(): boolean;
|
|
819
|
+
/**
|
|
820
|
+
* Parses a string into a Cookie object.
|
|
821
|
+
*
|
|
822
|
+
* @remarks
|
|
823
|
+
* Note: when parsing a `Cookie` header it must be split by ';' before each Cookie string can be parsed.
|
|
824
|
+
*
|
|
825
|
+
* @example
|
|
826
|
+
* ```
|
|
827
|
+
* // parse a `Set-Cookie` header
|
|
828
|
+
* const setCookieHeader = 'a=bcd; Expires=Tue, 18 Oct 2011 07:05:03 GMT'
|
|
829
|
+
* const cookie = Cookie.parse(setCookieHeader)
|
|
830
|
+
* cookie.key === 'a'
|
|
831
|
+
* cookie.value === 'bcd'
|
|
832
|
+
* cookie.expires === new Date(Date.parse('Tue, 18 Oct 2011 07:05:03 GMT'))
|
|
833
|
+
* ```
|
|
834
|
+
*
|
|
835
|
+
* @example
|
|
836
|
+
* ```
|
|
837
|
+
* // parse a `Cookie` header
|
|
838
|
+
* const cookieHeader = 'name=value; name2=value2; name3=value3'
|
|
839
|
+
* const cookies = cookieHeader.split(';').map(Cookie.parse)
|
|
840
|
+
* cookies[0].name === 'name'
|
|
841
|
+
* cookies[0].value === 'value'
|
|
842
|
+
* cookies[1].name === 'name2'
|
|
843
|
+
* cookies[1].value === 'value2'
|
|
844
|
+
* cookies[2].name === 'name3'
|
|
845
|
+
* cookies[2].value === 'value3'
|
|
846
|
+
* ```
|
|
847
|
+
*
|
|
848
|
+
* @param str - The `Set-Cookie` header or a Cookie string to parse.
|
|
849
|
+
* @param options - Configures `strict` or `loose` mode for cookie parsing
|
|
850
|
+
*/
|
|
851
|
+
static parse(str: string, options?: ParseCookieOptions): Cookie | undefined;
|
|
852
|
+
/**
|
|
853
|
+
* Does the reverse of {@link Cookie.toJSON}.
|
|
854
|
+
*
|
|
855
|
+
* @remarks
|
|
856
|
+
* Any Date properties (such as .expires, .creation, and .lastAccessed) are parsed via Date.parse, not tough-cookie's parseDate, since ISO timestamps are being handled at this layer.
|
|
857
|
+
*
|
|
858
|
+
* @example
|
|
859
|
+
* ```
|
|
860
|
+
* const json = JSON.stringify({
|
|
861
|
+
* key: 'alpha',
|
|
862
|
+
* value: 'beta',
|
|
863
|
+
* domain: 'example.com',
|
|
864
|
+
* path: '/foo',
|
|
865
|
+
* expires: '2038-01-19T03:14:07.000Z',
|
|
866
|
+
* })
|
|
867
|
+
* const cookie = Cookie.fromJSON(json)
|
|
868
|
+
* cookie.key === 'alpha'
|
|
869
|
+
* cookie.value === 'beta'
|
|
870
|
+
* cookie.domain === 'example.com'
|
|
871
|
+
* cookie.path === '/foo'
|
|
872
|
+
* cookie.expires === new Date(Date.parse('2038-01-19T03:14:07.000Z'))
|
|
873
|
+
* ```
|
|
874
|
+
*
|
|
875
|
+
* @param str - An unparsed JSON string or a value that has already been parsed as JSON
|
|
876
|
+
*/
|
|
877
|
+
static fromJSON(str: unknown): Cookie | undefined;
|
|
878
|
+
private static cookiesCreated;
|
|
879
|
+
/**
|
|
880
|
+
* @internal
|
|
881
|
+
*/
|
|
882
|
+
static sameSiteLevel: {
|
|
883
|
+
readonly strict: 3;
|
|
884
|
+
readonly lax: 2;
|
|
885
|
+
readonly none: 1;
|
|
886
|
+
};
|
|
887
|
+
/**
|
|
888
|
+
* @internal
|
|
889
|
+
*/
|
|
890
|
+
static sameSiteCanonical: {
|
|
891
|
+
readonly strict: "Strict";
|
|
892
|
+
readonly lax: "Lax";
|
|
893
|
+
};
|
|
894
|
+
/**
|
|
895
|
+
* Cookie properties that will be serialized when using {@link Cookie.fromJSON} and {@link Cookie.toJSON}.
|
|
896
|
+
* @public
|
|
897
|
+
*/
|
|
898
|
+
static serializableProperties: readonly ["key", "value", "expires", "maxAge", "domain", "path", "secure", "httpOnly", "extensions", "hostOnly", "pathIsDefault", "creation", "lastAccessed", "sameSite"];
|
|
899
|
+
}
|
|
900
|
+
|
|
901
|
+
declare class NhCookieService {
|
|
902
|
+
private document;
|
|
903
|
+
private platformId;
|
|
904
|
+
private requestContext;
|
|
905
|
+
private cookieService;
|
|
906
|
+
static readonly HTTP_COOKIE_PREFIX: string;
|
|
907
|
+
static readonly COOKIE_SPLIT_REGEX: RegExp;
|
|
908
|
+
static readonly NOP_COOKIE_CUSTOMER: string;
|
|
909
|
+
static readonly NOP_COOKIE_AUTHENTICATION: string;
|
|
910
|
+
static readonly Nh_COOKIE_AUTHENTICATION: string;
|
|
911
|
+
constructor(document: Document, platformId: Object, requestContext: any, cookieService: CookieService);
|
|
912
|
+
getAll(): string[];
|
|
913
|
+
get(key: string): string | undefined;
|
|
914
|
+
set(name: string, value: string, options?: CookieOptions): void;
|
|
915
|
+
delete(name: string, path?: CookieOptions['path'], domain?: CookieOptions['domain'], secure?: CookieOptions['secure'], sameSite?: SameSite): void;
|
|
916
|
+
requestRawCookiesHeaderToCookies(rawCookiesHeader: string): Cookie[];
|
|
917
|
+
responseRawCookiesHeaderToCookies(rawCookiesHeader: string): Cookie[];
|
|
918
|
+
getRequestServerCookies(): Cookie[];
|
|
919
|
+
setServerCookies(cookies: Cookie[]): void;
|
|
920
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhCookieService, [null, null, { optional: true; }, null]>;
|
|
921
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhCookieService>;
|
|
922
|
+
}
|
|
923
|
+
|
|
924
|
+
declare abstract class BaseNhAuthService<TAuthorization extends INhAuthorization> implements OnDestroy {
|
|
925
|
+
protected authorization: TAuthorization | undefined;
|
|
926
|
+
protected authSession: AuthenticationSessionCreateResponse | undefined;
|
|
927
|
+
readonly authSubject: BehaviorSubject<TAuthorization | undefined>;
|
|
928
|
+
protected onReady: ((value: (PromiseLike<unknown> | unknown)) => void) | undefined;
|
|
929
|
+
readonly authReady: Promise<unknown>;
|
|
930
|
+
protected _sessionExpirationInformation: BehaviorSubject<AuthSessionExpirationInformation>;
|
|
931
|
+
sessionExpirationInformationChanged: rxjs.Observable<AuthSessionExpirationInformation>;
|
|
932
|
+
protected intervalHandle: any;
|
|
933
|
+
protected zone: NgZone;
|
|
934
|
+
protected moduleConfig: NhCommonModuleConfig;
|
|
935
|
+
protected httpClient: HttpClient;
|
|
936
|
+
protected platformId: Object;
|
|
937
|
+
protected requestContext: any;
|
|
938
|
+
constructor();
|
|
939
|
+
dispatchSessionExpirationInformationChanged(): void;
|
|
940
|
+
ngOnDestroy(): void;
|
|
941
|
+
private getAllPermissionClaimTypes;
|
|
942
|
+
private getAllDivisionPermissionClaimTypes;
|
|
943
|
+
getSessionExpirationInformation(): AuthSessionExpirationInformation;
|
|
944
|
+
clearAuthorization(doDispatchEvent?: boolean): void;
|
|
945
|
+
setAuthorization(auth: TAuthorization, noEvent?: boolean): void;
|
|
946
|
+
protected abstract initEmptyAuthorization(): TAuthorization;
|
|
947
|
+
getAuthorization(fromCache?: boolean): TAuthorization | undefined;
|
|
948
|
+
isAuthenticated(): boolean;
|
|
949
|
+
isImpersonating(): boolean;
|
|
950
|
+
getActiveDivision(): NhDivision | null;
|
|
951
|
+
getActiveDivisionId(): string | undefined;
|
|
952
|
+
isGrantedRole(roles: string | string[]): boolean;
|
|
953
|
+
isClaimGranted(claim: Claim): boolean;
|
|
954
|
+
isOneClaimGranted(claims: Array<Claim>): boolean;
|
|
955
|
+
isOnePermissionGranted(permissions: Array<string>): boolean;
|
|
956
|
+
/**
|
|
957
|
+
* Returns true only when every requested permission is granted through one
|
|
958
|
+
* of the configured permission claim types. An empty requirement is allowed.
|
|
959
|
+
*/
|
|
960
|
+
isAllPermissionsGranted(permissions: Array<string>): boolean;
|
|
961
|
+
isOneRoleGranted(roles: Array<string>): boolean;
|
|
962
|
+
isOneDivisionPermissionGranted(divisionId: string | undefined, permissions: Array<string>): boolean;
|
|
963
|
+
isOneDivisionRoleGranted(divisionId: string | undefined, roles: Array<string>): boolean;
|
|
964
|
+
isOneActiveDivisionPermissionGranted(permissions: Array<string>): boolean;
|
|
965
|
+
isOneActiveDivisionRoleGranted(roles: Array<string>): boolean;
|
|
966
|
+
getAuthenticationFlow(username: string): Promise<TaskResult<AuthenticationFlow>>;
|
|
967
|
+
getMicrosoftRedirectUrl(callbackUrl: string, username: string): Promise<TaskResult<string>>;
|
|
968
|
+
authorizeMicrosoft(code: string, state: string): Promise<TaskResult<TAuthorization>>;
|
|
969
|
+
authenticate(model: AuthenticateModel, loginAsUser?: boolean): Promise<TaskResult<TAuthorization>>;
|
|
970
|
+
reloadAuthorizationProfile(): Promise<TaskResult<TAuthorization>>;
|
|
971
|
+
logout(): Promise<TaskResult<void>>;
|
|
972
|
+
authenticateRefreshToken(model: RefreshTokenLoginAccountMutateModel): Promise<TaskResult<TAuthorization>>;
|
|
973
|
+
impersonate(model: ImpersonateAuthenticateModel): Promise<TaskResult<TAuthorization>>;
|
|
974
|
+
impersonateRevert(model: RevertImpersonateAuthenticateModel): Promise<TaskResult<TAuthorization>>;
|
|
975
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseNhAuthService<any>, never>;
|
|
976
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseNhAuthService<any>>;
|
|
977
|
+
}
|
|
978
|
+
declare class NhAuthService extends BaseNhAuthService<NhAuthorization> {
|
|
979
|
+
protected initEmptyAuthorization(): NhAuthorization;
|
|
980
|
+
constructor();
|
|
981
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhAuthService, never>;
|
|
982
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhAuthService>;
|
|
983
|
+
}
|
|
984
|
+
|
|
985
|
+
declare class NhRequestScopedServerHttpInterceptorService {
|
|
986
|
+
private moduleConfig;
|
|
987
|
+
private platformId;
|
|
988
|
+
private requestContext;
|
|
989
|
+
didSetCookies: boolean;
|
|
990
|
+
constructor(moduleConfig: NhCommonModuleConfig, platformId: Object, requestContext: any);
|
|
991
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhRequestScopedServerHttpInterceptorService, [null, null, { optional: true; }]>;
|
|
992
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhRequestScopedServerHttpInterceptorService>;
|
|
993
|
+
}
|
|
994
|
+
declare class NhServerHttpInterceptor implements HttpInterceptor {
|
|
995
|
+
private moduleConfig;
|
|
996
|
+
private platformId;
|
|
997
|
+
private document;
|
|
998
|
+
private requestScopedServerHttpInterceptorService;
|
|
999
|
+
private cookieService;
|
|
1000
|
+
private authService;
|
|
1001
|
+
constructor(moduleConfig: NhCommonModuleConfig, platformId: Object, document: Document, requestScopedServerHttpInterceptorService: NhRequestScopedServerHttpInterceptorService, cookieService: NhCookieService, authService: NhAuthService);
|
|
1002
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
1003
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhServerHttpInterceptor, never>;
|
|
1004
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhServerHttpInterceptor>;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
declare class NhDeduplicateGetRequestsInterceptor implements HttpInterceptor {
|
|
1008
|
+
private moduleConfig;
|
|
1009
|
+
private activeRequests;
|
|
1010
|
+
constructor(moduleConfig: NhCommonModuleConfig);
|
|
1011
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
1012
|
+
private getRequestKey;
|
|
1013
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhDeduplicateGetRequestsInterceptor, never>;
|
|
1014
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhDeduplicateGetRequestsInterceptor>;
|
|
1015
|
+
}
|
|
1016
|
+
|
|
1017
|
+
declare abstract class AbstractValueAccessor implements ControlValueAccessor {
|
|
1018
|
+
_value: any;
|
|
1019
|
+
get value(): any;
|
|
1020
|
+
set value(v: any);
|
|
1021
|
+
writeValue(value: any): void;
|
|
1022
|
+
onChange: (_: any) => void;
|
|
1023
|
+
onTouched: () => void;
|
|
1024
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
1025
|
+
registerOnTouched(fn: () => void): void;
|
|
1026
|
+
}
|
|
1027
|
+
declare function MakeProvider(type: any): {
|
|
1028
|
+
provide: i0.InjectionToken<readonly ControlValueAccessor[]>;
|
|
1029
|
+
useExisting: i0.Type<any>;
|
|
1030
|
+
multi: boolean;
|
|
1031
|
+
};
|
|
1032
|
+
|
|
1033
|
+
declare const NH_ERROR_HANDLERS: InjectionToken<ErrorHandler[]>;
|
|
1034
|
+
declare class NhErrorHandlerService implements ErrorHandler {
|
|
1035
|
+
private injector;
|
|
1036
|
+
constructor(injector: Injector);
|
|
1037
|
+
handleError(error: any): void;
|
|
1038
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhErrorHandlerService, never>;
|
|
1039
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhErrorHandlerService>;
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
type NhSentryBeforeSendHook = (event: Sentry.ErrorEvent, hint: Sentry.EventHint) => Sentry.ErrorEvent | null | PromiseLike<Sentry.ErrorEvent | null>;
|
|
1043
|
+
type NhSentryBeforeSendLogHook = (event: SentryCore.Log) => SentryCore.Log | null;
|
|
1044
|
+
type NhSentryBeforeSendSpanHook = (span: SentryCore.SpanJSON) => SentryCore.SpanJSON;
|
|
1045
|
+
type NhSentryBeforeSendTransactionHook = (span: SentryCore.TransactionEvent, hint: Sentry.EventHint) => SentryCore.TransactionEvent | null | PromiseLike<SentryCore.TransactionEvent | null>;
|
|
1046
|
+
type NhSentryBeforeBreadcrumbHook = (span: Sentry.Breadcrumb, hint?: Sentry.BreadcrumbHint) => Sentry.Breadcrumb | null;
|
|
1047
|
+
declare const NH_SENTRY_BEFORE_SEND_HOOKS: InjectionToken<NhSentryBeforeSendHook[]>;
|
|
1048
|
+
declare const NH_SENTRY_BEFORE_SEND_LOG_HOOKS: InjectionToken<NhSentryBeforeSendLogHook[]>;
|
|
1049
|
+
declare const NH_SENTRY_BEFORE_SEND_SPAN_HOOKS: InjectionToken<NhSentryBeforeSendSpanHook[]>;
|
|
1050
|
+
declare const NH_SENTRY_BEFORE_SEND_TRANSACTION_HOOKS: InjectionToken<NhSentryBeforeSendTransactionHook[]>;
|
|
1051
|
+
declare const NH_SENTRY_BEFORE_BREADCRUMB_HOOKS: InjectionToken<NhSentryBeforeBreadcrumbHook[]>;
|
|
1052
|
+
declare class NhSentryInitializerService implements OnDestroy {
|
|
1053
|
+
private readonly moduleConfig;
|
|
1054
|
+
private readonly authService;
|
|
1055
|
+
private providedHooksBeforeSend;
|
|
1056
|
+
private providedHooksBeforeSendLog;
|
|
1057
|
+
private providedHooksBeforeSendSpan;
|
|
1058
|
+
private providedHooksBeforeSendTransaction;
|
|
1059
|
+
private providedHooksBeforeBreadcrumb;
|
|
1060
|
+
private _didInitialize;
|
|
1061
|
+
private _sentryConfig;
|
|
1062
|
+
private authorization;
|
|
1063
|
+
private $auth;
|
|
1064
|
+
private runtimeHooksBeforeSend;
|
|
1065
|
+
private runtimeHooksBeforeSendLog;
|
|
1066
|
+
private runtimeHooksBeforeSendSpan;
|
|
1067
|
+
private runtimeHooksBeforeSendTransaction;
|
|
1068
|
+
private runtimeHooksBeforeBreadcrumb;
|
|
1069
|
+
get hooksBeforeSend(): NhSentryBeforeSendHook[];
|
|
1070
|
+
get hooksBeforeSendLog(): NhSentryBeforeSendLogHook[];
|
|
1071
|
+
get hooksBeforeSendSpan(): NhSentryBeforeSendSpanHook[];
|
|
1072
|
+
get hooksBeforeSendTransaction(): NhSentryBeforeSendTransactionHook[];
|
|
1073
|
+
get hooksBeforeBreadcrumb(): NhSentryBeforeBreadcrumbHook[];
|
|
1074
|
+
get isEnabled(): boolean;
|
|
1075
|
+
get isInitializedAndEnabled(): boolean;
|
|
1076
|
+
get sentry(): typeof Sentry;
|
|
1077
|
+
constructor(moduleConfig: NhCommonModuleConfig, authService: NhAuthService, providedHooksBeforeSend?: NhSentryBeforeSendHook[], providedHooksBeforeSendLog?: NhSentryBeforeSendLogHook[], providedHooksBeforeSendSpan?: NhSentryBeforeSendSpanHook[], providedHooksBeforeSendTransaction?: NhSentryBeforeSendTransactionHook[], providedHooksBeforeBreadcrumb?: NhSentryBeforeBreadcrumbHook[]);
|
|
1078
|
+
private authChanged;
|
|
1079
|
+
registerHookBeforeSend(hook: NhSentryBeforeSendHook): void;
|
|
1080
|
+
registerHookBeforeSendLog(hook: NhSentryBeforeSendLogHook): void;
|
|
1081
|
+
registerHookBeforeSendSpan(hook: NhSentryBeforeSendSpanHook): void;
|
|
1082
|
+
registerHookBeforeSendTransaction(hook: NhSentryBeforeSendTransactionHook): void;
|
|
1083
|
+
registerHookBeforeBreadcrumb(hook: NhSentryBeforeBreadcrumbHook): void;
|
|
1084
|
+
private ourBeforeSendHook;
|
|
1085
|
+
initialize(): void;
|
|
1086
|
+
private runHooksBeforeSend;
|
|
1087
|
+
private runHooksBeforeSendLog;
|
|
1088
|
+
private runHooksBeforeSendSpan;
|
|
1089
|
+
private runHooksBeforeSendTransaction;
|
|
1090
|
+
private runHooksBeforeBreadcrumb;
|
|
1091
|
+
ngOnDestroy(): void;
|
|
1092
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhSentryInitializerService, [null, null, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
1093
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhSentryInitializerService>;
|
|
1094
|
+
}
|
|
1095
|
+
declare class NhSentryService implements OnDestroy {
|
|
1096
|
+
private readonly moduleConfig;
|
|
1097
|
+
private readonly sentryInitializerService;
|
|
1098
|
+
private _sentryConfig;
|
|
1099
|
+
get isEnabled(): boolean;
|
|
1100
|
+
get isInitializedAndEnabled(): boolean;
|
|
1101
|
+
get sentry(): typeof Sentry;
|
|
1102
|
+
constructor(moduleConfig: NhCommonModuleConfig, sentryInitializerService: NhSentryInitializerService);
|
|
1103
|
+
registerHookBeforeSend(hook: NhSentryBeforeSendHook): void;
|
|
1104
|
+
registerHookBeforeSendLog(hook: NhSentryBeforeSendLogHook): void;
|
|
1105
|
+
registerHookBeforeSendSpan(hook: NhSentryBeforeSendSpanHook): void;
|
|
1106
|
+
registerHookBeforeSendTransaction(hook: NhSentryBeforeSendTransactionHook): void;
|
|
1107
|
+
registerHookBeforeBreadcrumb(hook: NhSentryBeforeBreadcrumbHook): void;
|
|
1108
|
+
ngOnDestroy(): void;
|
|
1109
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhSentryService, never>;
|
|
1110
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhSentryService>;
|
|
1111
|
+
}
|
|
1112
|
+
|
|
1113
|
+
declare class NhErrorHandlerSentryService implements ErrorHandler, OnDestroy {
|
|
1114
|
+
private readonly moduleConfig;
|
|
1115
|
+
private readonly sentryInitializerService;
|
|
1116
|
+
private _sentryErrorHandler;
|
|
1117
|
+
private _didInitialize;
|
|
1118
|
+
get sentryErrorHandler(): Sentry.SentryErrorHandler | undefined;
|
|
1119
|
+
constructor(moduleConfig: NhCommonModuleConfig, sentryInitializerService: NhSentryInitializerService);
|
|
1120
|
+
initialize(): void;
|
|
1121
|
+
handleError(error: any): void;
|
|
1122
|
+
ngOnDestroy(): void;
|
|
1123
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhErrorHandlerSentryService, never>;
|
|
1124
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhErrorHandlerSentryService>;
|
|
1125
|
+
}
|
|
1126
|
+
|
|
1127
|
+
declare class NhSentryTraceService implements OnDestroy {
|
|
1128
|
+
private readonly moduleConfig;
|
|
1129
|
+
private readonly sentryInitializerService;
|
|
1130
|
+
private readonly router;
|
|
1131
|
+
private _sentryTraceService;
|
|
1132
|
+
private _didInitialize;
|
|
1133
|
+
get sentryTraceService(): Sentry.TraceService | undefined;
|
|
1134
|
+
constructor(moduleConfig: NhCommonModuleConfig, sentryInitializerService: NhSentryInitializerService, router: Router);
|
|
1135
|
+
initialize(): void;
|
|
1136
|
+
ngOnDestroy(): void;
|
|
1137
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhSentryTraceService, never>;
|
|
1138
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhSentryTraceService>;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
declare class NhAppService implements OnDestroy {
|
|
1142
|
+
private document;
|
|
1143
|
+
private platformId;
|
|
1144
|
+
private appRef;
|
|
1145
|
+
private transferState;
|
|
1146
|
+
private router;
|
|
1147
|
+
private $appRefIsStable;
|
|
1148
|
+
private appIsStable;
|
|
1149
|
+
private afterNextRenderComplete;
|
|
1150
|
+
private firstHydrateComplete;
|
|
1151
|
+
private stateKeys;
|
|
1152
|
+
private browserFirstHydrateComplete$;
|
|
1153
|
+
readonly localStorage?: Storage;
|
|
1154
|
+
constructor(document: Document, platformId: Object, appRef: ApplicationRef, transferState: TransferState, router: Router);
|
|
1155
|
+
isAppStable(): boolean;
|
|
1156
|
+
ngOnDestroy(): void;
|
|
1157
|
+
originatedFromServer(): boolean;
|
|
1158
|
+
isPlatformServer(): boolean;
|
|
1159
|
+
isPlatformBrowser(): boolean;
|
|
1160
|
+
firstHydrateCompleted(): boolean;
|
|
1161
|
+
afterNextRenderCompleted(): boolean;
|
|
1162
|
+
isPlatformBrowserInitial(): boolean;
|
|
1163
|
+
setStateTransferData(key: string, data: any): void;
|
|
1164
|
+
getStateTransferData<T>(key: string): T;
|
|
1165
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhAppService, never>;
|
|
1166
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhAppService>;
|
|
1167
|
+
}
|
|
1168
|
+
|
|
1169
|
+
declare class NhConfigCommonService implements OnDestroy {
|
|
1170
|
+
private document;
|
|
1171
|
+
private platformId;
|
|
1172
|
+
private requestContext;
|
|
1173
|
+
private authService;
|
|
1174
|
+
private translateService;
|
|
1175
|
+
private cookieService;
|
|
1176
|
+
private commonModuleConfig;
|
|
1177
|
+
private static STORAGE_KEY;
|
|
1178
|
+
private static COOKIE_KEY_LANGUAGE_CODE;
|
|
1179
|
+
private didInitialize;
|
|
1180
|
+
private readonly localStorage?;
|
|
1181
|
+
private config;
|
|
1182
|
+
readonly configSubject: BehaviorSubject<NhCommonConfigChanged>;
|
|
1183
|
+
constructor(document: Document, platformId: Object, requestContext: any, authService: NhAuthService, translateService: TranslateService, cookieService: NhCookieService, commonModuleConfig: NhCommonModuleConfig);
|
|
1184
|
+
ngOnDestroy(): Promise<void>;
|
|
1185
|
+
initialize(): Promise<void>;
|
|
1186
|
+
getInitialConfig(): NhCommonConfig;
|
|
1187
|
+
private resolveInitialLanguageCode;
|
|
1188
|
+
resetConfig(): void;
|
|
1189
|
+
setConfig(config: NhCommonConfig): void;
|
|
1190
|
+
getConfig(fromCache?: boolean): NhCommonConfig;
|
|
1191
|
+
changeLanguage(newLanguageCode: string): Promise<void>;
|
|
1192
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhConfigCommonService, [null, null, { optional: true; }, null, null, null, null]>;
|
|
1193
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhConfigCommonService>;
|
|
1194
|
+
}
|
|
1195
|
+
|
|
1196
|
+
declare class NhJsonLdDataItem {
|
|
1197
|
+
id: string;
|
|
1198
|
+
data: any;
|
|
1199
|
+
placeholderKeys: string[];
|
|
1200
|
+
resolvePlaceholderKey: string | undefined;
|
|
1201
|
+
constructor(init?: Partial<NhJsonLdDataItem>);
|
|
1202
|
+
}
|
|
1203
|
+
declare class NhJsonLdData {
|
|
1204
|
+
items: NhJsonLdDataItem[];
|
|
1205
|
+
constructor(init?: Partial<NhJsonLdData>);
|
|
1206
|
+
}
|
|
1207
|
+
declare class JsonLdDataChanged {
|
|
1208
|
+
data: NhJsonLdData;
|
|
1209
|
+
constructor(init?: Partial<JsonLdDataChanged>);
|
|
1210
|
+
}
|
|
1211
|
+
declare const REVIEW_AGGREGATE_RATING_KEY: (id: string | undefined) => string;
|
|
1212
|
+
declare const REVIEW_KEY: (id: string | undefined) => string;
|
|
1213
|
+
declare class NhJsonLdService {
|
|
1214
|
+
private data;
|
|
1215
|
+
readonly dataSubject: BehaviorSubject<JsonLdDataChanged>;
|
|
1216
|
+
constructor();
|
|
1217
|
+
getData(): NhJsonLdData;
|
|
1218
|
+
private _addItem;
|
|
1219
|
+
private _removeItem;
|
|
1220
|
+
addItem(item: NhJsonLdDataItem): void;
|
|
1221
|
+
removeItem(itemId: string): void;
|
|
1222
|
+
clear(): void;
|
|
1223
|
+
build(): any;
|
|
1224
|
+
private _resolvePlaceholderKeys;
|
|
1225
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhJsonLdService, never>;
|
|
1226
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhJsonLdService>;
|
|
1227
|
+
}
|
|
1228
|
+
|
|
1229
|
+
declare class NhTitleService {
|
|
1230
|
+
private titleService;
|
|
1231
|
+
title: BehaviorSubject<string>;
|
|
1232
|
+
constructor(titleService: Title);
|
|
1233
|
+
setTitle(title: string): void;
|
|
1234
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhTitleService, never>;
|
|
1235
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhTitleService>;
|
|
1236
|
+
}
|
|
1237
|
+
|
|
1238
|
+
declare class NhRoute {
|
|
1239
|
+
language: string;
|
|
1240
|
+
path: string;
|
|
1241
|
+
constructor(init?: Partial<NhRoute>);
|
|
1242
|
+
}
|
|
1243
|
+
declare class NhRegisterRoute {
|
|
1244
|
+
id: string;
|
|
1245
|
+
parentIds: string[] | undefined;
|
|
1246
|
+
routes: NhRoute[];
|
|
1247
|
+
children?: Routes;
|
|
1248
|
+
loadChildren?: LoadChildren;
|
|
1249
|
+
component?: Type<any>;
|
|
1250
|
+
loadComponent?: () => Type<unknown> | Observable<Type<unknown> | DefaultExport<Type<unknown>>> | Promise<Type<unknown> | DefaultExport<Type<unknown>>>;
|
|
1251
|
+
canActivate?: Array<CanActivateFn>;
|
|
1252
|
+
canMatch?: Array<CanMatchFn>;
|
|
1253
|
+
canActivateChild?: Array<CanActivateChildFn>;
|
|
1254
|
+
redirectTo?: string | RedirectFunction;
|
|
1255
|
+
pathMatch?: 'prefix' | 'full';
|
|
1256
|
+
data?: Data;
|
|
1257
|
+
excludeFromSitemap?: boolean;
|
|
1258
|
+
constructor(init?: Partial<NhRegisterRoute>);
|
|
1259
|
+
}
|
|
1260
|
+
declare class NhRouteInfo {
|
|
1261
|
+
id: string;
|
|
1262
|
+
parentIds: string[] | undefined;
|
|
1263
|
+
activeRoute: NhRoute;
|
|
1264
|
+
routes: NhRoute[];
|
|
1265
|
+
excludeFromSitemap?: boolean;
|
|
1266
|
+
constructor(init?: Partial<NhRouteInfo>);
|
|
1267
|
+
}
|
|
1268
|
+
declare class NhRouteNavigationItem {
|
|
1269
|
+
id: string;
|
|
1270
|
+
path: string;
|
|
1271
|
+
route: Route;
|
|
1272
|
+
parent: NhRouteNavigationItem | undefined;
|
|
1273
|
+
children: NhRouteNavigationItem[];
|
|
1274
|
+
constructor(init?: Partial<NhRouteNavigationItem>);
|
|
1275
|
+
}
|
|
1276
|
+
declare class NhRouterSetupService {
|
|
1277
|
+
private moduleConfig;
|
|
1278
|
+
private translateService;
|
|
1279
|
+
static readonly Nh_ROUTE_DATA_KEY = "__nh_route_data_key__";
|
|
1280
|
+
private supportedLanguages;
|
|
1281
|
+
private defaultLanguage;
|
|
1282
|
+
private activeLanguage;
|
|
1283
|
+
private lastKnownActivatedRoute;
|
|
1284
|
+
private registeredRoutes;
|
|
1285
|
+
private rootRouteNavigationItem;
|
|
1286
|
+
constructor(moduleConfig: NhCommonModuleConfig, translateService: TranslateService);
|
|
1287
|
+
getRootRouteNavigationItem(): NhRouteNavigationItem;
|
|
1288
|
+
private getNormalizedNavigationItemId;
|
|
1289
|
+
getRouteNavigationItem(nhRouterLink: NhRouterLink): NhRouteNavigationItem | undefined;
|
|
1290
|
+
createUrlForNavigationItem(nhRouterLink: NhRouterLink): string;
|
|
1291
|
+
setDefaultLanguage(language: string): void;
|
|
1292
|
+
getDefaultLanguage(): string;
|
|
1293
|
+
setSupportedLanguages(languages: string[]): void;
|
|
1294
|
+
getRouteTranslationKey(path: string): string;
|
|
1295
|
+
createRoute(options: NhRegisterRoute): Route[];
|
|
1296
|
+
processRegisteredRoutes(): void;
|
|
1297
|
+
static rootRoute(activatedRoute: ActivatedRoute): ActivatedRoute;
|
|
1298
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhRouterSetupService, never>;
|
|
1299
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhRouterSetupService>;
|
|
1300
|
+
}
|
|
1301
|
+
|
|
1302
|
+
declare const NH_ROUTER_ROOT_ROUTES: InjectionToken<() => Routes>;
|
|
1303
|
+
declare const NH_ROUTER_LANGUAGE_CHANGE_METHOD: InjectionToken<(newLanguage: string) => Promise<void>>;
|
|
1304
|
+
declare class NhBreadCrumbItem {
|
|
1305
|
+
text: string;
|
|
1306
|
+
nhRouterLink?: NhRouterLink;
|
|
1307
|
+
constructor(init?: Partial<NhBreadCrumbItem>);
|
|
1308
|
+
}
|
|
1309
|
+
declare class NhBreadCrumb {
|
|
1310
|
+
renderedItems?: string;
|
|
1311
|
+
items: NhBreadCrumbItem[];
|
|
1312
|
+
constructor(init?: Partial<NhBreadCrumb>);
|
|
1313
|
+
}
|
|
1314
|
+
declare class NhSitemapEntryItem {
|
|
1315
|
+
language: string;
|
|
1316
|
+
isPrimary: boolean;
|
|
1317
|
+
path: string;
|
|
1318
|
+
constructor(init?: Partial<NhSitemapEntryItem>);
|
|
1319
|
+
}
|
|
1320
|
+
declare class NhSitemapEntry {
|
|
1321
|
+
id: string;
|
|
1322
|
+
items: NhSitemapEntryItem[];
|
|
1323
|
+
constructor(init?: Partial<NhSitemapEntry>);
|
|
1324
|
+
}
|
|
1325
|
+
declare class NhSitemap {
|
|
1326
|
+
entries: NhSitemapEntry[];
|
|
1327
|
+
constructor(init?: Partial<NhSitemap>);
|
|
1328
|
+
}
|
|
1329
|
+
declare class NhRouterService {
|
|
1330
|
+
private moduleConfig;
|
|
1331
|
+
private translateService;
|
|
1332
|
+
private routerSetupService;
|
|
1333
|
+
private router;
|
|
1334
|
+
private activatedRoute;
|
|
1335
|
+
private getRootRoutes;
|
|
1336
|
+
private changeLanguageMethod;
|
|
1337
|
+
private requestContext;
|
|
1338
|
+
private activeLanguage;
|
|
1339
|
+
private lastKnownActivatedRoute;
|
|
1340
|
+
constructor(moduleConfig: NhCommonModuleConfig, translateService: TranslateService, routerSetupService: NhRouterSetupService, router: Router, activatedRoute: ActivatedRoute, getRootRoutes: () => Routes, changeLanguageMethod: (newLanguage: string) => Promise<void>, requestContext: any);
|
|
1341
|
+
redirectServer(location: string, statusCode?: number): void;
|
|
1342
|
+
platformSpecificRedirect(location: NhRouterLink, statusCode?: number): void;
|
|
1343
|
+
notFound(): void;
|
|
1344
|
+
getActivatedNhLink(activatedRouteSnapshot: ActivatedRouteSnapshot): NhRouterLink;
|
|
1345
|
+
createUrlForNavigationItem(nhRouterLink: NhRouterLink): string;
|
|
1346
|
+
navigate(nhRouterLink: NhRouterLink, navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
1347
|
+
createUrlTree(nhRouterLink: NhRouterLink, navigationExtras?: UrlCreationOptions): UrlTree;
|
|
1348
|
+
parseUrl(nhRouterLink: NhRouterLink, navigationExtras?: UrlCreationOptions): UrlTree;
|
|
1349
|
+
serializeUrl(nhRouterLink: NhRouterLink, navigationExtras?: UrlCreationOptions): string;
|
|
1350
|
+
getRoutePathForLanguage(activatedRouteSnapshot: ActivatedRouteSnapshot | null, language: string): Promise<string>;
|
|
1351
|
+
navigateToLanguage(language: string): Promise<void>;
|
|
1352
|
+
reloadRoutes(): void;
|
|
1353
|
+
getBreadcrumb(activatedRouteSnapshot: ActivatedRouteSnapshot | null): Promise<NhBreadCrumb>;
|
|
1354
|
+
createSitemap(): NhSitemap;
|
|
1355
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhRouterService, [null, null, null, null, null, { optional: true; }, { optional: true; }, { optional: true; }]>;
|
|
1356
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhRouterService>;
|
|
1357
|
+
}
|
|
1358
|
+
|
|
1359
|
+
declare class NhMetaService {
|
|
1360
|
+
private angularMetaService;
|
|
1361
|
+
private _rendererFactory;
|
|
1362
|
+
private _renderer;
|
|
1363
|
+
constructor(angularMetaService: Meta, _rendererFactory: RendererFactory2);
|
|
1364
|
+
addTag(tag: MetaDefinition, forceCreation?: boolean): HTMLMetaElement | null;
|
|
1365
|
+
addTags(tags: MetaDefinition[], forceCreation?: boolean): HTMLMetaElement[];
|
|
1366
|
+
getTag(attrSelector: string): HTMLMetaElement | null;
|
|
1367
|
+
getTags(attrSelector: string): HTMLMetaElement[];
|
|
1368
|
+
updateTag(tag: MetaDefinition, selector?: string): HTMLMetaElement | null;
|
|
1369
|
+
removeTag(attrSelector: string): void;
|
|
1370
|
+
removeTags(attrSelector: string): void;
|
|
1371
|
+
removeTagElement(meta: HTMLMetaElement): void;
|
|
1372
|
+
stripHtml(html: string): string;
|
|
1373
|
+
private static processMetaTags;
|
|
1374
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhMetaService, never>;
|
|
1375
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhMetaService>;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
declare class NhPageSettings {
|
|
1379
|
+
title: string;
|
|
1380
|
+
description: string;
|
|
1381
|
+
jsonLdData: NhJsonLdData;
|
|
1382
|
+
breadCrumbOverrideText?: (currentText: string) => string;
|
|
1383
|
+
pageData: any;
|
|
1384
|
+
constructor(init?: Partial<NhPageSettings>);
|
|
1385
|
+
}
|
|
1386
|
+
declare class TypedNhPageSettings<TPageData> extends NhPageSettings {
|
|
1387
|
+
pageData: TPageData | undefined;
|
|
1388
|
+
constructor(init?: Partial<TypedNhPageSettings<TPageData>>);
|
|
1389
|
+
}
|
|
1390
|
+
declare class NhPageService implements OnDestroy {
|
|
1391
|
+
private document;
|
|
1392
|
+
private platformId;
|
|
1393
|
+
private moduleConfig;
|
|
1394
|
+
private appRef;
|
|
1395
|
+
private nhAppService;
|
|
1396
|
+
private configService;
|
|
1397
|
+
private authService;
|
|
1398
|
+
private translateService;
|
|
1399
|
+
private titleService;
|
|
1400
|
+
private metaService;
|
|
1401
|
+
private jsonLdService;
|
|
1402
|
+
private routerService;
|
|
1403
|
+
private $appRefIsStable;
|
|
1404
|
+
private $auth;
|
|
1405
|
+
private authorization;
|
|
1406
|
+
private $config;
|
|
1407
|
+
private config;
|
|
1408
|
+
activePageSettings: NhPageSettings;
|
|
1409
|
+
private didRestoreTransferState;
|
|
1410
|
+
readonly breadcrumbUpdateRequest: Subject<void>;
|
|
1411
|
+
constructor(document: Document, platformId: Object, moduleConfig: NhCommonModuleConfig, appRef: ApplicationRef, nhAppService: NhAppService, configService: NhConfigCommonService, authService: NhAuthService, translateService: TranslateService, titleService: NhTitleService, metaService: NhMetaService, jsonLdService: NhJsonLdService, routerService: NhRouterService);
|
|
1412
|
+
restoreTransferState(): void;
|
|
1413
|
+
updateTransferState(): void;
|
|
1414
|
+
isPlatformServer(): boolean;
|
|
1415
|
+
isPlatformBrowser(): boolean;
|
|
1416
|
+
isPlatformBrowserInitial(): boolean;
|
|
1417
|
+
originatedFromServer(): boolean;
|
|
1418
|
+
isAppStable(): boolean;
|
|
1419
|
+
ngOnDestroy(): Promise<void>;
|
|
1420
|
+
private authChanged;
|
|
1421
|
+
private configChanged;
|
|
1422
|
+
clear(): Promise<void>;
|
|
1423
|
+
flushMeta(activePageSettings: NhPageSettings): Promise<void>;
|
|
1424
|
+
setTitle(title: string): void;
|
|
1425
|
+
setDescription(description: string): void;
|
|
1426
|
+
setBreadcrumbOverrideText(breadcrumbOverrideText?: (currentText: string) => string): void;
|
|
1427
|
+
requestBreadcrumbUpdate(): void;
|
|
1428
|
+
getBreadcrumb(activatedRouteSnapshot: ActivatedRouteSnapshot | null): Promise<NhBreadCrumb>;
|
|
1429
|
+
navigateTo(nhRouterLink: NhRouterLink, navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
1430
|
+
navigateTo404NotFound(navigationExtras?: NavigationExtras): Promise<boolean>;
|
|
1431
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhPageService, never>;
|
|
1432
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhPageService>;
|
|
1433
|
+
}
|
|
1434
|
+
|
|
1435
|
+
declare class NhApiService implements OnDestroy {
|
|
1436
|
+
private moduleConfig;
|
|
1437
|
+
private httpClient;
|
|
1438
|
+
private authService;
|
|
1439
|
+
authSubscription: Subscription;
|
|
1440
|
+
authorization: NhAuthorization | undefined;
|
|
1441
|
+
baseUrl: string | undefined;
|
|
1442
|
+
static ActiveDivisionHeaderKey: string;
|
|
1443
|
+
private static defaultHeaders;
|
|
1444
|
+
private static skipObjectParamParseKeys;
|
|
1445
|
+
constructor(moduleConfig: NhCommonModuleConfig, httpClient: HttpClient, authService: NhAuthService);
|
|
1446
|
+
private authChanged;
|
|
1447
|
+
ngOnDestroy(): void;
|
|
1448
|
+
static taskResultFromResponse(response: any): TaskResult<any>;
|
|
1449
|
+
prepareHeaders(httpHeaders?: HttpHeaders): HttpHeaders;
|
|
1450
|
+
setCultureHttpParam(httpParams?: HttpParams): HttpParams;
|
|
1451
|
+
setObjectParams(httpParams: HttpParams, requestOptions?: HttpRequestOptions | HttpDownloadRequestOptions): HttpParams;
|
|
1452
|
+
task<T>(observable$: Observable<T>): Promise<TaskResult<T>>;
|
|
1453
|
+
get<T>(url: string, requestOptions?: IHttpRequestOptions): Observable<T>;
|
|
1454
|
+
getText(url: string, requestOptions?: IHttpRequestOptions): Observable<string>;
|
|
1455
|
+
getResult<T>(url: string, requestOptions?: IHttpRequestOptions): Promise<TaskResult<T>>;
|
|
1456
|
+
getCollection<T>(url: string, requestOptions?: ICollectionHttpRequestOptions): Observable<CollectionHttpResponse<T>>;
|
|
1457
|
+
getCollectionT<T, TRequestOptions extends ICollectionHttpRequestOptions, TCollectionResult extends CollectionHttpResponse<T>>(url: string, requestOptions?: TRequestOptions): Observable<TCollectionResult>;
|
|
1458
|
+
getSimpleCollection<T>(url: string, requestOptions?: ISimpleCollectionHttpRequestOptions): Observable<SimpleCollectionHttpResponse<T>>;
|
|
1459
|
+
getSimpleCollectionT<T, TRequestOptions extends ISimpleCollectionHttpRequestOptions, TCollectionResult extends SimpleCollectionHttpResponse<T>>(url: string, requestOptions?: TRequestOptions): Observable<TCollectionResult>;
|
|
1460
|
+
download(url: string, requestOptions?: IHttpDownloadRequestOptions): Observable<Blob>;
|
|
1461
|
+
downloadResponse(url: string, requestOptions?: IHttpDownloadRequestOptions): Observable<HttpResponse<Blob>>;
|
|
1462
|
+
postDownload(url: string, body: any, requestOptions?: IHttpDownloadRequestOptions): Observable<Blob>;
|
|
1463
|
+
postDownloadResponse(url: string, body: any, requestOptions?: IHttpDownloadRequestOptions): Observable<HttpResponse<Blob>>;
|
|
1464
|
+
putDownload(url: string, body: any, requestOptions?: IHttpDownloadRequestOptions): Observable<Blob>;
|
|
1465
|
+
putDownloadResponse(url: string, body: any, requestOptions?: IHttpDownloadRequestOptions): Observable<HttpResponse<Blob>>;
|
|
1466
|
+
delete<T>(url: string, requestOptions?: IHttpRequestOptions): Observable<T>;
|
|
1467
|
+
deleteResult<T>(url: string, requestOptions?: HttpRequestOptions): Promise<TaskResult<T>>;
|
|
1468
|
+
deleteWithBody<T>(url: string, body: any, requestOptions?: IHttpRequestOptions): Observable<T>;
|
|
1469
|
+
post<T>(url: string, body: any, requestOptions?: IHttpRequestOptions): Observable<T>;
|
|
1470
|
+
postResult<T>(url: string, body: any, requestOptions?: IHttpRequestOptions): Promise<TaskResult<T>>;
|
|
1471
|
+
put<T>(url: string, body: any, requestOptions?: IHttpRequestOptions): Observable<T>;
|
|
1472
|
+
putResult<T>(url: string, body: any, requestOptions?: IHttpRequestOptions): Promise<TaskResult<T>>;
|
|
1473
|
+
patch<T>(url: string, body: any, requestOptions?: IHttpRequestOptions): Observable<T>;
|
|
1474
|
+
patchResult<T>(url: string, body: any, requestOptions?: IHttpRequestOptions): Promise<TaskResult<T>>;
|
|
1475
|
+
postHttpEvent<T>(url: string, body: any, requestOptions?: IHttpRequestOptions): Observable<HttpEvent<T>>;
|
|
1476
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhApiService, never>;
|
|
1477
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhApiService>;
|
|
1478
|
+
}
|
|
1479
|
+
|
|
1480
|
+
declare class NhModalContentDirective {
|
|
1481
|
+
viewContainerRef: ViewContainerRef;
|
|
1482
|
+
constructor(viewContainerRef: ViewContainerRef);
|
|
1483
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhModalContentDirective, never>;
|
|
1484
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NhModalContentDirective, "[nhModalContent]", never, {}, {}, never, never, false, never>;
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
declare class NhModalComponentClosed {
|
|
1488
|
+
constructor(init?: Partial<NhModalComponentClosed>);
|
|
1489
|
+
}
|
|
1490
|
+
declare class NhModalComponentImpl<C> implements INhModalComponent<C>, OnChanges, OnInit, AfterContentInit, AfterViewInit, OnDestroy {
|
|
1491
|
+
protected modalComponentRef: NhModalComponentRef<C> | undefined;
|
|
1492
|
+
setModalComponentRef(ref: NhModalComponentRef<C>): void;
|
|
1493
|
+
close(): void;
|
|
1494
|
+
ngOnChanges(): void;
|
|
1495
|
+
ngOnInit(): void;
|
|
1496
|
+
ngAfterContentInit(): void;
|
|
1497
|
+
ngAfterViewInit(): void;
|
|
1498
|
+
ngOnDestroy(): void;
|
|
1499
|
+
appOnChanges(): Promise<void>;
|
|
1500
|
+
appOnInit(): Promise<void>;
|
|
1501
|
+
appAfterContentInit(): Promise<void>;
|
|
1502
|
+
appAfterViewInit(): Promise<void>;
|
|
1503
|
+
appOnDestroy(): Promise<void>;
|
|
1504
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhModalComponentImpl<any>, never>;
|
|
1505
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NhModalComponentImpl<any>, never, never, {}, {}, never, never, true, never>;
|
|
1506
|
+
}
|
|
1507
|
+
declare class NhModalComponent<C> implements OnInit, OnDestroy, AfterViewInit {
|
|
1508
|
+
readonly modalContent: i0.Signal<NhModalContentDirective>;
|
|
1509
|
+
readonly modalHolder: i0.Signal<ElementRef<any>>;
|
|
1510
|
+
readonly modalBackdrop: i0.Signal<ElementRef<any>>;
|
|
1511
|
+
readonly modal: i0.Signal<ElementRef<any>>;
|
|
1512
|
+
readonly closed: i0.OutputEmitterRef<NhModalComponentClosed>;
|
|
1513
|
+
componentRef: ComponentRef<C> | undefined;
|
|
1514
|
+
private modalComponentRef;
|
|
1515
|
+
private document;
|
|
1516
|
+
title: string;
|
|
1517
|
+
modalHolderClasses: string;
|
|
1518
|
+
modalClasses: string;
|
|
1519
|
+
modalHeaderClasses: string;
|
|
1520
|
+
modalBodyClasses: string;
|
|
1521
|
+
isLoading: boolean;
|
|
1522
|
+
closeable: boolean;
|
|
1523
|
+
ngOnInit(): void;
|
|
1524
|
+
ngAfterViewInit(): void;
|
|
1525
|
+
setModalComponentRef(modalComponentRef: NhModalComponentRef<C>): void;
|
|
1526
|
+
setContentComponent(componentType: Type<C>): void;
|
|
1527
|
+
close(): void;
|
|
1528
|
+
ngOnDestroy(): void;
|
|
1529
|
+
modalSlideStart(event: MouseEvent): void;
|
|
1530
|
+
modalTouchStart(event: TouchEvent): void;
|
|
1531
|
+
modalTouchEnd(event: TouchEvent): void;
|
|
1532
|
+
modalTouchMove(event: TouchEvent): void;
|
|
1533
|
+
modalMouseUp(event: MouseEvent): void;
|
|
1534
|
+
modalScrollStop(): void;
|
|
1535
|
+
modalMouseMove(event: MouseEvent): void;
|
|
1536
|
+
modalScrollMove(y: number): void;
|
|
1537
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhModalComponent<any>, never>;
|
|
1538
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhModalComponent<any>, "nh-modal", never, {}, { "closed": "closed"; }, never, never, false, never>;
|
|
1539
|
+
}
|
|
1540
|
+
|
|
1541
|
+
declare class NhModalConfirmComponent implements OnInit, INhModalComponent<NhModalConfirmComponent> {
|
|
1542
|
+
message: string | SafeHtml;
|
|
1543
|
+
btnConfirmText: string;
|
|
1544
|
+
btnCancelText: string;
|
|
1545
|
+
modalClass: '' | 'success' | 'danger' | 'warning' | 'info';
|
|
1546
|
+
btnConfirmDisabled: boolean;
|
|
1547
|
+
btnCancelDisabled: boolean;
|
|
1548
|
+
allBtnsDisabled: boolean;
|
|
1549
|
+
showLoader: boolean;
|
|
1550
|
+
errorResult: TaskResult<any> | undefined;
|
|
1551
|
+
readonly confirmed: i0.OutputEmitterRef<void>;
|
|
1552
|
+
modalComponentRef: NhModalComponentRef<NhModalConfirmComponent> | undefined;
|
|
1553
|
+
setModalComponentRef(ref: NhModalComponentRef<NhModalConfirmComponent>): void;
|
|
1554
|
+
onKeyUp(event: KeyboardEvent): void;
|
|
1555
|
+
ngOnInit(): void;
|
|
1556
|
+
closeDialog(event?: any): void;
|
|
1557
|
+
onConfirm: (() => void) | (() => Promise<void>);
|
|
1558
|
+
onCancel: (() => void) | (() => Promise<void>);
|
|
1559
|
+
readonly value: i0.InputSignal<any>;
|
|
1560
|
+
confirm(): Promise<void>;
|
|
1561
|
+
cancel(): Promise<void>;
|
|
1562
|
+
executeDelegate(func: (() => void) | (() => Promise<void>)): Promise<void>;
|
|
1563
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhModalConfirmComponent, never>;
|
|
1564
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhModalConfirmComponent, "nh-confirm-modal", never, { "message": { "alias": "message"; "required": false; }; "btnConfirmText": { "alias": "btnConfirmText"; "required": false; }; "btnCancelText": { "alias": "btnCancelText"; "required": false; }; "modalClass": { "alias": "modalClass"; "required": false; }; "btnConfirmDisabled": { "alias": "btnConfirmDisabled"; "required": false; }; "btnCancelDisabled": { "alias": "btnCancelDisabled"; "required": false; }; "allBtnsDisabled": { "alias": "allBtnsDisabled"; "required": false; }; "showLoader": { "alias": "showLoader"; "required": false; }; "errorResult": { "alias": "errorResult"; "required": false; }; "onConfirm": { "alias": "onConfirm"; "required": false; }; "onCancel": { "alias": "onCancel"; "required": false; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "confirmed": "confirmed"; }, never, never, false, never>;
|
|
1565
|
+
}
|
|
1566
|
+
|
|
1567
|
+
interface INhModalComponent<C> {
|
|
1568
|
+
setModalComponentRef(ref: NhModalComponentRef<C>): void;
|
|
1569
|
+
}
|
|
1570
|
+
declare class NhModalComponentRef<C> {
|
|
1571
|
+
componentRef: ComponentRef<NhModalComponent<C>>;
|
|
1572
|
+
readonly closed: EventEmitter<NhModalComponentClosed>;
|
|
1573
|
+
private _onCloses;
|
|
1574
|
+
onClose(callback: () => void): void;
|
|
1575
|
+
close(): void;
|
|
1576
|
+
get modalComponent(): NhModalComponent<C>;
|
|
1577
|
+
get contentComponent(): C | undefined;
|
|
1578
|
+
constructor(componentRef: ComponentRef<NhModalComponent<C>>);
|
|
1579
|
+
}
|
|
1580
|
+
declare class NhModalOptions {
|
|
1581
|
+
title: string;
|
|
1582
|
+
modalHolderClasses: string;
|
|
1583
|
+
modalClasses: string;
|
|
1584
|
+
modalHeaderClasses: string;
|
|
1585
|
+
isLoading: boolean;
|
|
1586
|
+
closeable: boolean;
|
|
1587
|
+
modalBodyClasses: string;
|
|
1588
|
+
viewContainerRef?: ViewContainerRef;
|
|
1589
|
+
constructor(init?: Partial<NhModalOptions>);
|
|
1590
|
+
}
|
|
1591
|
+
declare class NhModalService {
|
|
1592
|
+
private viewContainerRef;
|
|
1593
|
+
modalRefs: NhModalComponentRef<any>[];
|
|
1594
|
+
modalRefsOpen: BehaviorSubject<boolean>;
|
|
1595
|
+
constructor();
|
|
1596
|
+
setViewContainerRef(viewContainerRef: ViewContainerRef): void;
|
|
1597
|
+
confirm(onConfirm: (() => void) | (() => Promise<any>), onClose?: (() => void), options?: NhModalOptions): NhModalComponentRef<NhModalConfirmComponent>;
|
|
1598
|
+
confirmDialog(text: string, onConfirm: (() => void) | (() => Promise<any>), onClose?: (() => void), options?: NhModalOptions): NhModalComponentRef<NhModalConfirmComponent>;
|
|
1599
|
+
/**
|
|
1600
|
+
* Create a modal dialog with a given component as content
|
|
1601
|
+
* @param componentType Type of the component to show in the modal
|
|
1602
|
+
* @param options Options for the modal
|
|
1603
|
+
* @param inputs Inputs to set on {@link componentType}
|
|
1604
|
+
*/
|
|
1605
|
+
open<C extends INhModalComponent<C>>(componentType: Type<C>, options?: Partial<NhModalOptions>, inputs?: Record<string, any>): NhModalComponentRef<C>;
|
|
1606
|
+
close(componentRef: NhModalComponentRef<any>): void;
|
|
1607
|
+
closeLatest(): void;
|
|
1608
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhModalService, never>;
|
|
1609
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhModalService>;
|
|
1610
|
+
}
|
|
1611
|
+
|
|
1612
|
+
declare class NhTaskResultFormValidationService {
|
|
1613
|
+
validate(formGroup: UntypedFormGroup, errors: TaskResultItem[]): void;
|
|
1614
|
+
addError(formGroup: UntypedFormGroup, controlName: string | undefined | null, errorMessages: string[]): void;
|
|
1615
|
+
private getFormControlFromFormGroup;
|
|
1616
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhTaskResultFormValidationService, never>;
|
|
1617
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhTaskResultFormValidationService>;
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
declare class NhHeadService {
|
|
1621
|
+
private document;
|
|
1622
|
+
private renderer;
|
|
1623
|
+
constructor(document: Document, rendererFactory: RendererFactory2);
|
|
1624
|
+
addPreConnectUrl(url: PreConnectUrlItem): void;
|
|
1625
|
+
addPreLoadUrl(url: PreLoadUrlItem): void;
|
|
1626
|
+
addLinkTag(rel: string, href: string, withCrossOrigin?: boolean, crossOrigin?: string, additionalAttributes?: KeyValue<string, string>[]): void;
|
|
1627
|
+
addElementToHead(element: HTMLElement): void;
|
|
1628
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhHeadService, never>;
|
|
1629
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhHeadService>;
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
declare class NhInternetConnectionService {
|
|
1633
|
+
private zone;
|
|
1634
|
+
private connectionSubject;
|
|
1635
|
+
internetIsConnected: rxjs.Observable<boolean>;
|
|
1636
|
+
constructor(zone: NgZone);
|
|
1637
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhInternetConnectionService, never>;
|
|
1638
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhInternetConnectionService>;
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
declare class NhServerService {
|
|
1642
|
+
private platformId;
|
|
1643
|
+
private moduleConfig;
|
|
1644
|
+
private transferState;
|
|
1645
|
+
private static readonly DID_INIT_BY_SERVER_STATE_KEY;
|
|
1646
|
+
constructor(platformId: Object, moduleConfig: NhCommonModuleConfig, transferState: TransferState);
|
|
1647
|
+
didInitByServer(): boolean;
|
|
1648
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhServerService, never>;
|
|
1649
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhServerService>;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
interface IServerSideFormValidationService {
|
|
1653
|
+
}
|
|
1654
|
+
declare class NhServerSideFormValidationService implements IServerSideFormValidationService {
|
|
1655
|
+
validate<T extends IServerSideFormValidator>(formValidatorType: {
|
|
1656
|
+
new (): T;
|
|
1657
|
+
}, formGroup: UntypedFormGroup, objectToValidate: any): void;
|
|
1658
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhServerSideFormValidationService, never>;
|
|
1659
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhServerSideFormValidationService>;
|
|
1660
|
+
}
|
|
1661
|
+
interface IServerSideFormValidator {
|
|
1662
|
+
getFormControlFromFormGroup(formGroup: UntypedFormGroup, formControlKey: string): UntypedFormControl;
|
|
1663
|
+
validate(object: any): FormValidationResult;
|
|
1664
|
+
}
|
|
1665
|
+
declare class AspMvcFormServerSideFormValidator implements IServerSideFormValidator {
|
|
1666
|
+
getFormControlFromFormGroup(formGroup: UntypedFormGroup, formControlKey: string): UntypedFormControl;
|
|
1667
|
+
validate(object: any): FormValidationResult;
|
|
1668
|
+
}
|
|
1669
|
+
interface IFormValidationResult {
|
|
1670
|
+
}
|
|
1671
|
+
declare class FormValidationResult implements IFormValidationResult {
|
|
1672
|
+
private formErrors;
|
|
1673
|
+
getErrors(): Array<FormError>;
|
|
1674
|
+
hasErrors(): boolean;
|
|
1675
|
+
hasErrorForFieldName(fieldName: string): boolean;
|
|
1676
|
+
getErrorForFieldName(fieldName: string): FormError | null;
|
|
1677
|
+
addErrorByFieldName(fieldName: string, errorMessage: string): void;
|
|
1678
|
+
constructor();
|
|
1679
|
+
}
|
|
1680
|
+
interface IFormError {
|
|
1681
|
+
}
|
|
1682
|
+
declare class FormError implements IFormError {
|
|
1683
|
+
private fieldName;
|
|
1684
|
+
private errorMessages;
|
|
1685
|
+
getErrorMessages(): Array<string>;
|
|
1686
|
+
getFieldName(): string;
|
|
1687
|
+
addErrorMessage(errorMessage: string): void;
|
|
1688
|
+
private setFieldName;
|
|
1689
|
+
constructor(fieldName: string);
|
|
1690
|
+
}
|
|
1691
|
+
|
|
1692
|
+
declare abstract class NhBaseApiService {
|
|
1693
|
+
protected authService: NhAuthService;
|
|
1694
|
+
protected moduleConfig: NhCommonModuleConfig;
|
|
1695
|
+
protected apiService: NhApiService;
|
|
1696
|
+
protected readonly baseUrl: string;
|
|
1697
|
+
protected constructor(suffix: string);
|
|
1698
|
+
getCollection<T>(options: CollectionHttpRequestOptions): Observable<CollectionHttpResponse<T>>;
|
|
1699
|
+
get<T>(id: string, requestOptions?: HttpRequestOptions): Observable<T>;
|
|
1700
|
+
create<T>(item: any, requestOptions?: HttpRequestOptions): Observable<T>;
|
|
1701
|
+
update<T>(id: string, item: any, requestOptions?: HttpRequestOptions): Observable<T>;
|
|
1702
|
+
updatePartial<T>(id: string, partialUpdate: any, requestOptions?: HttpRequestOptions): Observable<T>;
|
|
1703
|
+
delete(id: string, requestOptions?: HttpRequestOptions): Observable<any>;
|
|
1704
|
+
}
|
|
1705
|
+
|
|
1706
|
+
declare class NhUserNotificationService implements OnDestroy {
|
|
1707
|
+
private appService;
|
|
1708
|
+
protected readonly baseUrl: string;
|
|
1709
|
+
protected authService: NhAuthService;
|
|
1710
|
+
protected moduleConfig: NhCommonModuleConfig;
|
|
1711
|
+
protected apiService: NhApiService;
|
|
1712
|
+
protected runningSubject: BehaviorSubject<boolean>;
|
|
1713
|
+
readonly isRunning$: Observable<boolean>;
|
|
1714
|
+
private task$;
|
|
1715
|
+
private taskSub;
|
|
1716
|
+
private userNotificationState;
|
|
1717
|
+
private readonly userNotificationStateSubject;
|
|
1718
|
+
readonly userNotificationState$: Observable<NhUserNotificationState>;
|
|
1719
|
+
get state(): NhUserNotificationState;
|
|
1720
|
+
get urlSuffix(): string;
|
|
1721
|
+
isRunning(): boolean;
|
|
1722
|
+
ngOnDestroy(): void;
|
|
1723
|
+
protected constructor(appService: NhAppService);
|
|
1724
|
+
start(): void;
|
|
1725
|
+
stop(): void;
|
|
1726
|
+
protected doWork(): Promise<void>;
|
|
1727
|
+
loadState(): Promise<void>;
|
|
1728
|
+
protected getOverview(): Observable<NhUserNotificationOverview>;
|
|
1729
|
+
getNotifications(requestOptions?: NhUserNotificationCollectionHttpRequestOptions): Observable<CollectionHttpResponse<NhUserNotification>>;
|
|
1730
|
+
markAsRead(id: string): Observable<unknown>;
|
|
1731
|
+
markAllAsRead(): Observable<unknown>;
|
|
1732
|
+
archive(id: string): Observable<unknown>;
|
|
1733
|
+
archiveAll(): Observable<unknown>;
|
|
1734
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhUserNotificationService, never>;
|
|
1735
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhUserNotificationService>;
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
declare class NhContextMenuItem {
|
|
1739
|
+
type: 'item' | 'divider';
|
|
1740
|
+
title: string;
|
|
1741
|
+
onClick: (event: any) => Promise<void>;
|
|
1742
|
+
constructor(init?: Partial<NhContextMenuItem>);
|
|
1743
|
+
}
|
|
1744
|
+
type NhContextEventWithCoordinates = {
|
|
1745
|
+
clientX: number;
|
|
1746
|
+
clientY: number;
|
|
1747
|
+
};
|
|
1748
|
+
declare class NhContextMenu {
|
|
1749
|
+
x: number;
|
|
1750
|
+
y: number;
|
|
1751
|
+
items: NhContextMenuItem[];
|
|
1752
|
+
static fromEvent(event?: NhContextEventWithCoordinates): NhContextMenu;
|
|
1753
|
+
withItems(items: NhContextMenuItem[]): NhContextMenu;
|
|
1754
|
+
constructor(init?: Partial<NhContextMenu>);
|
|
1755
|
+
}
|
|
1756
|
+
declare class NhContextMenuServiceConfig {
|
|
1757
|
+
zIndex: number;
|
|
1758
|
+
constructor(init?: Partial<NhContextMenuServiceConfig>);
|
|
1759
|
+
}
|
|
1760
|
+
declare class NhContextMenuService implements OnDestroy {
|
|
1761
|
+
private platformId;
|
|
1762
|
+
private readonly appService;
|
|
1763
|
+
private readonly rendererFactory;
|
|
1764
|
+
readonly config: NhContextMenuServiceConfig;
|
|
1765
|
+
private renderer;
|
|
1766
|
+
private contextMenuElement;
|
|
1767
|
+
private unlistenHandles;
|
|
1768
|
+
private globalListenCloseHandles;
|
|
1769
|
+
constructor(platformId: Object, appService: NhAppService, rendererFactory: RendererFactory2);
|
|
1770
|
+
ngOnDestroy(): void;
|
|
1771
|
+
private handleClose;
|
|
1772
|
+
private isOpen;
|
|
1773
|
+
private getContainerElement;
|
|
1774
|
+
private cleanupContextMenu;
|
|
1775
|
+
open(contextMenu: NhContextMenu): void;
|
|
1776
|
+
close(): void;
|
|
1777
|
+
private addMenuItem;
|
|
1778
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhContextMenuService, never>;
|
|
1779
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NhContextMenuService>;
|
|
1780
|
+
}
|
|
1781
|
+
|
|
1782
|
+
declare const NhIsAuthenticatedGuard: (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean;
|
|
1783
|
+
declare const NhIsOneClaimGrantedGuard: (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean;
|
|
1784
|
+
declare const NhIsOnePermissionGrantedGuard: (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean;
|
|
1785
|
+
declare const NhIsAllPermissionsGrantedGuard: (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean;
|
|
1786
|
+
declare const NhIsOneRoleGrantedGuard: (route: ActivatedRouteSnapshot, state: RouterStateSnapshot) => boolean;
|
|
1787
|
+
declare const IsOneActiveDivisionPermissionGrantedGuard: () => boolean;
|
|
1788
|
+
declare const IsOneActiveDivisionRoleGrantedGuard: () => boolean;
|
|
1789
|
+
|
|
1790
|
+
declare class NhUrlEncodePipe implements PipeTransform {
|
|
1791
|
+
transform(value: string | undefined | null): string | undefined | null;
|
|
1792
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhUrlEncodePipe, never>;
|
|
1793
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NhUrlEncodePipe, "nhUrlEncode", false>;
|
|
1794
|
+
}
|
|
1795
|
+
|
|
1796
|
+
declare class NhDatePipe implements PipeTransform {
|
|
1797
|
+
private moduleConfig;
|
|
1798
|
+
constructor(moduleConfig: NhCommonModuleConfig);
|
|
1799
|
+
transform(value: any, pattern?: string): any;
|
|
1800
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhDatePipe, never>;
|
|
1801
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NhDatePipe, "nhDate", false>;
|
|
1802
|
+
}
|
|
1803
|
+
declare class NhDateTimePipe implements PipeTransform {
|
|
1804
|
+
private moduleConfig;
|
|
1805
|
+
constructor(moduleConfig: NhCommonModuleConfig);
|
|
1806
|
+
transform(value: any, pattern?: string): any;
|
|
1807
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhDateTimePipe, never>;
|
|
1808
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NhDateTimePipe, "nhDateTime", false>;
|
|
1809
|
+
}
|
|
1810
|
+
declare class NhDateUtcPipe implements PipeTransform {
|
|
1811
|
+
private moduleConfig;
|
|
1812
|
+
constructor(moduleConfig: NhCommonModuleConfig);
|
|
1813
|
+
transform(value: any, pattern?: string): any;
|
|
1814
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhDateUtcPipe, never>;
|
|
1815
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NhDateUtcPipe, "nhDateUtc", false>;
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
declare class IsOnePermissionGrantedPipe implements PipeTransform {
|
|
1819
|
+
private authService;
|
|
1820
|
+
constructor(authService: NhAuthService);
|
|
1821
|
+
transform(permissions: Array<string>): boolean;
|
|
1822
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsOnePermissionGrantedPipe, never>;
|
|
1823
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsOnePermissionGrantedPipe, "isOnePermissionGranted", false>;
|
|
1824
|
+
}
|
|
1825
|
+
declare class IsAllPermissionsGrantedPipe implements PipeTransform {
|
|
1826
|
+
private authService;
|
|
1827
|
+
constructor(authService: NhAuthService);
|
|
1828
|
+
transform(permissions: Array<string>): boolean;
|
|
1829
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsAllPermissionsGrantedPipe, never>;
|
|
1830
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsAllPermissionsGrantedPipe, "isAllPermissionsGranted", false>;
|
|
1831
|
+
}
|
|
1832
|
+
declare class IsGrantedRolePipe implements PipeTransform {
|
|
1833
|
+
private authService;
|
|
1834
|
+
constructor(authService: NhAuthService);
|
|
1835
|
+
transform(roles: string | string[]): boolean;
|
|
1836
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsGrantedRolePipe, never>;
|
|
1837
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsGrantedRolePipe, "isGrantedRole", false>;
|
|
1838
|
+
}
|
|
1839
|
+
declare class IsAuthenticatedPipe implements PipeTransform {
|
|
1840
|
+
private authService;
|
|
1841
|
+
constructor(authService: NhAuthService);
|
|
1842
|
+
transform(): boolean;
|
|
1843
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsAuthenticatedPipe, never>;
|
|
1844
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsAuthenticatedPipe, "isAuthenticated", false>;
|
|
1845
|
+
}
|
|
1846
|
+
declare class IsClaimGrantedPipe implements PipeTransform {
|
|
1847
|
+
private authService;
|
|
1848
|
+
constructor(authService: NhAuthService);
|
|
1849
|
+
transform(claim: Claim): boolean;
|
|
1850
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsClaimGrantedPipe, never>;
|
|
1851
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsClaimGrantedPipe, "isClaimGranted", false>;
|
|
1852
|
+
}
|
|
1853
|
+
declare class IsOneClaimGrantedPipe implements PipeTransform {
|
|
1854
|
+
private authService;
|
|
1855
|
+
constructor(authService: NhAuthService);
|
|
1856
|
+
transform(claims: Array<Claim>): boolean;
|
|
1857
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsOneClaimGrantedPipe, never>;
|
|
1858
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsOneClaimGrantedPipe, "isOneClaimGranted", false>;
|
|
1859
|
+
}
|
|
1860
|
+
declare class IsOneRoleGrantedPipe implements PipeTransform {
|
|
1861
|
+
private authService;
|
|
1862
|
+
constructor(authService: NhAuthService);
|
|
1863
|
+
transform(roles: Array<string>): boolean;
|
|
1864
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsOneRoleGrantedPipe, never>;
|
|
1865
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsOneRoleGrantedPipe, "isOneRoleGranted", false>;
|
|
1866
|
+
}
|
|
1867
|
+
declare class IsOneDivisionPermissionGrantedPipe implements PipeTransform {
|
|
1868
|
+
private authService;
|
|
1869
|
+
constructor(authService: NhAuthService);
|
|
1870
|
+
transform(divisionId: string, permissions: Array<string>): boolean;
|
|
1871
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsOneDivisionPermissionGrantedPipe, never>;
|
|
1872
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsOneDivisionPermissionGrantedPipe, "isOneDivisionPermissionGranted", false>;
|
|
1873
|
+
}
|
|
1874
|
+
declare class IsOneDivisionRoleGrantedPipe implements PipeTransform {
|
|
1875
|
+
private authService;
|
|
1876
|
+
constructor(authService: NhAuthService);
|
|
1877
|
+
transform(divisionId: string, roles: Array<string>): boolean;
|
|
1878
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsOneDivisionRoleGrantedPipe, never>;
|
|
1879
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsOneDivisionRoleGrantedPipe, "isOneDivisionRoleGranted", false>;
|
|
1880
|
+
}
|
|
1881
|
+
declare class IsOneActiveDivisionPermissionGrantedPipe implements PipeTransform {
|
|
1882
|
+
private authService;
|
|
1883
|
+
constructor(authService: NhAuthService);
|
|
1884
|
+
transform(permissions: Array<string>): boolean;
|
|
1885
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsOneActiveDivisionPermissionGrantedPipe, never>;
|
|
1886
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsOneActiveDivisionPermissionGrantedPipe, "isOneActiveDivisionPermissionGranted", false>;
|
|
1887
|
+
}
|
|
1888
|
+
declare class IsOneActiveDivisionRoleGrantedPipe implements PipeTransform {
|
|
1889
|
+
private authService;
|
|
1890
|
+
constructor(authService: NhAuthService);
|
|
1891
|
+
transform(roles: Array<string>): boolean;
|
|
1892
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IsOneActiveDivisionRoleGrantedPipe, never>;
|
|
1893
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<IsOneActiveDivisionRoleGrantedPipe, "isOneActiveDivisionRoleGranted", false>;
|
|
1894
|
+
}
|
|
1895
|
+
|
|
1896
|
+
declare class NhBooleanToStringPipe implements PipeTransform {
|
|
1897
|
+
private translateService;
|
|
1898
|
+
constructor(translateService: TranslateService);
|
|
1899
|
+
transform(value: boolean | undefined): string;
|
|
1900
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhBooleanToStringPipe, never>;
|
|
1901
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<NhBooleanToStringPipe, "nhBooleanToString", false>;
|
|
1902
|
+
}
|
|
1903
|
+
|
|
1904
|
+
declare class SafeHtmlPipe implements PipeTransform {
|
|
1905
|
+
private sanitized;
|
|
1906
|
+
constructor(sanitized: DomSanitizer);
|
|
1907
|
+
transform(value: string): _angular_platform_browser.SafeHtml;
|
|
1908
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeHtmlPipe, never>;
|
|
1909
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeHtmlPipe, "safeHtml", false>;
|
|
1910
|
+
}
|
|
1911
|
+
declare class SafeUrlPipe implements PipeTransform {
|
|
1912
|
+
private sanitizer;
|
|
1913
|
+
constructor(sanitizer: DomSanitizer);
|
|
1914
|
+
transform(value: string): _angular_platform_browser.SafeUrl;
|
|
1915
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeUrlPipe, never>;
|
|
1916
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeUrlPipe, "safeUrl", false>;
|
|
1917
|
+
}
|
|
1918
|
+
declare class SafeResourceUrlPipe implements PipeTransform {
|
|
1919
|
+
private sanitizer;
|
|
1920
|
+
constructor(sanitizer: DomSanitizer);
|
|
1921
|
+
transform(value: string): _angular_platform_browser.SafeResourceUrl;
|
|
1922
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SafeResourceUrlPipe, never>;
|
|
1923
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SafeResourceUrlPipe, "safeResourceUrl", false>;
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
declare class NhToHeadDirective implements OnInit, OnDestroy {
|
|
1927
|
+
private _document;
|
|
1928
|
+
private _renderer;
|
|
1929
|
+
private _elementRef;
|
|
1930
|
+
constructor(_document: Document, _renderer: Renderer2, _elementRef: ElementRef);
|
|
1931
|
+
ngOnInit(): void;
|
|
1932
|
+
ngOnDestroy(): void;
|
|
1933
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhToHeadDirective, never>;
|
|
1934
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NhToHeadDirective, "[nhToHead]", ["nhToHead"], {}, {}, never, never, false, never>;
|
|
1935
|
+
}
|
|
1936
|
+
|
|
1937
|
+
declare class NhDebounceDirective implements OnInit, OnDestroy {
|
|
1938
|
+
model: NgControl;
|
|
1939
|
+
readonly onDebounce: i0.OutputEmitterRef<any>;
|
|
1940
|
+
readonly preDebounce: i0.OutputEmitterRef<any>;
|
|
1941
|
+
readonly debounceTime: i0.InputSignal<number>;
|
|
1942
|
+
private isFirstChange;
|
|
1943
|
+
private ngUnsubscribe;
|
|
1944
|
+
constructor(model: NgControl);
|
|
1945
|
+
ngOnInit(): void;
|
|
1946
|
+
ngOnDestroy(): void;
|
|
1947
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhDebounceDirective, never>;
|
|
1948
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NhDebounceDirective, "[ngModel][nhDebounce]", never, { "debounceTime": { "alias": "nhDebounce"; "required": false; "isSignal": true; }; }, { "onDebounce": "onDebounce"; "preDebounce": "preDebounce"; }, never, never, false, never>;
|
|
1949
|
+
}
|
|
1950
|
+
declare class NhButtonDebounceDirective implements OnInit, OnDestroy {
|
|
1951
|
+
readonly onDebounce: i0.OutputEmitterRef<any>;
|
|
1952
|
+
readonly debounceTime: i0.InputSignal<number>;
|
|
1953
|
+
private clicks;
|
|
1954
|
+
private subscription?;
|
|
1955
|
+
constructor();
|
|
1956
|
+
ngOnInit(): void;
|
|
1957
|
+
clickEvent(event: any): void;
|
|
1958
|
+
ngOnDestroy(): void;
|
|
1959
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhButtonDebounceDirective, never>;
|
|
1960
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NhButtonDebounceDirective, "[nhButtonDebounce]", never, { "debounceTime": { "alias": "debounce"; "required": false; "isSignal": true; }; }, { "onDebounce": "onDebounce"; }, never, never, false, never>;
|
|
1961
|
+
}
|
|
1962
|
+
|
|
1963
|
+
declare class NhRouterLinkDirective implements OnInit {
|
|
1964
|
+
private elementRef;
|
|
1965
|
+
private renderer;
|
|
1966
|
+
private hostRouterLink;
|
|
1967
|
+
private router;
|
|
1968
|
+
private routerService;
|
|
1969
|
+
private translateService;
|
|
1970
|
+
private changeLanguageMethod;
|
|
1971
|
+
private _nhRouterLink;
|
|
1972
|
+
private _resolvedNhRouterLink;
|
|
1973
|
+
set nhRouterLink(nhRouterLink: NhRouterLink | undefined);
|
|
1974
|
+
get nhRouterLink(): NhRouterLink | null | undefined;
|
|
1975
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, hostRouterLink: RouterLink, router: Router, routerService: NhRouterService, translateService: TranslateService, changeLanguageMethod: (newLanguage: string) => Promise<void>);
|
|
1976
|
+
ngOnInit(): void;
|
|
1977
|
+
private transformRouteLink;
|
|
1978
|
+
/** @nodoc */
|
|
1979
|
+
onClick(button: number, ctrlKey: boolean, shiftKey: boolean, altKey: boolean, metaKey: boolean): Promise<boolean>;
|
|
1980
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhRouterLinkDirective, [null, null, null, null, null, null, { optional: true; }]>;
|
|
1981
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NhRouterLinkDirective, "[nhRouterLink]", ["nhRouterLink"], { "nhRouterLink": { "alias": "nhRouterLink"; "required": false; }; }, {}, never, never, false, [{ directive: typeof i1.RouterLink; inputs: { "target": "target"; "queryParams": "queryParams"; "fragment": "fragment"; "queryParamsHandling": "queryParamsHandling"; "state": "state"; "info": "info"; "relativeTo": "relativeTo"; "preserveFragment": "preserveFragment"; "skipLocationChange": "skipLocationChange"; "replaceUrl": "replaceUrl"; }; outputs: {}; }]>;
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
declare class NhLoaderComponent {
|
|
1985
|
+
clicked: boolean;
|
|
1986
|
+
active: boolean;
|
|
1987
|
+
closed: boolean;
|
|
1988
|
+
readonly dark: i0.InputSignal<boolean>;
|
|
1989
|
+
readonly hasBackdrop: i0.InputSignal<boolean>;
|
|
1990
|
+
readonly backdropTransparent: i0.InputSignal<boolean>;
|
|
1991
|
+
private _containerClass;
|
|
1992
|
+
set containerClass(value: string[] | string);
|
|
1993
|
+
get containerClass(): string[] | string;
|
|
1994
|
+
constructor();
|
|
1995
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhLoaderComponent, never>;
|
|
1996
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhLoaderComponent, "nh-loader", never, { "dark": { "alias": "dark"; "required": false; "isSignal": true; }; "hasBackdrop": { "alias": "hasBackdrop"; "required": false; "isSignal": true; }; "backdropTransparent": { "alias": "backdropTransparent"; "required": false; "isSignal": true; }; "containerClass": { "alias": "containerClass"; "required": false; }; }, {}, never, never, false, never>;
|
|
1997
|
+
}
|
|
1998
|
+
|
|
1999
|
+
/**
|
|
2000
|
+
* Port of https://github.com/coryrylan/ngx-lite/blob/master/projects/ngx-json-ld/src/ngx-json-ld.component.ts
|
|
2001
|
+
*/
|
|
2002
|
+
declare class NhJsonLdComponent {
|
|
2003
|
+
private _sanitizer;
|
|
2004
|
+
set json(value: any);
|
|
2005
|
+
private _jsonLD?;
|
|
2006
|
+
constructor(_sanitizer: DomSanitizer);
|
|
2007
|
+
private _getSafeHTML;
|
|
2008
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhJsonLdComponent, never>;
|
|
2009
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhJsonLdComponent, "nh-json-ld", never, { "json": { "alias": "json"; "required": false; }; }, {}, never, never, false, never>;
|
|
2010
|
+
}
|
|
2011
|
+
|
|
2012
|
+
declare class NhModalLoadingComponent implements INhModalComponent<NhModalLoadingComponent> {
|
|
2013
|
+
readonly information: i0.InputSignal<string>;
|
|
2014
|
+
modalComponentRef: NhModalComponentRef<NhModalLoadingComponent> | undefined;
|
|
2015
|
+
setModalComponentRef(ref: NhModalComponentRef<NhModalLoadingComponent>): void;
|
|
2016
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhModalLoadingComponent, never>;
|
|
2017
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhModalLoadingComponent, "nh-loading-modal", never, { "information": { "alias": "information"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
2018
|
+
}
|
|
2019
|
+
|
|
2020
|
+
declare abstract class NhPageTypeBaseComponent<TAuthorization extends INhAuthorization, TAuthService extends BaseNhAuthService<TAuthorization>> implements OnChanges, OnInit, AfterContentInit, AfterViewInit, OnDestroy {
|
|
2021
|
+
readonly QUERY_PARAM_KEY_PAGE = "p";
|
|
2022
|
+
readonly QUERY_PARAM_KEY_ITEMS_PER_PAGE = "ipp";
|
|
2023
|
+
readonly QUERY_PARAM_KEY_SEARCH_QUERY = "sq";
|
|
2024
|
+
readonly QUERY_PARAM_KEY_ORDER_BY = "ob";
|
|
2025
|
+
readonly QUERY_PARAM_KEY_VIEW = "vw";
|
|
2026
|
+
protected get pageSettings(): NhPageSettings;
|
|
2027
|
+
protected configService: NhConfigCommonService;
|
|
2028
|
+
protected authService: TAuthService;
|
|
2029
|
+
protected translateService: TranslateService;
|
|
2030
|
+
protected pageService: NhPageService;
|
|
2031
|
+
protected modalService: NhModalService;
|
|
2032
|
+
protected nhRouterService: NhRouterService;
|
|
2033
|
+
protected activatedRoute: ActivatedRoute;
|
|
2034
|
+
protected document: Document;
|
|
2035
|
+
protected platformId: Object;
|
|
2036
|
+
protected router: Router;
|
|
2037
|
+
private $routeChanged;
|
|
2038
|
+
protected config: NhCommonConfig;
|
|
2039
|
+
private $config;
|
|
2040
|
+
protected authorization: NhAuthorization | undefined;
|
|
2041
|
+
private $auth;
|
|
2042
|
+
private $activeRouteParams;
|
|
2043
|
+
protected activeRouteParams: Params;
|
|
2044
|
+
private $activeRouteParamMap;
|
|
2045
|
+
protected activeRouteParamMap?: ParamMap;
|
|
2046
|
+
private $activeQueryParams;
|
|
2047
|
+
protected activeQueryParams: Params;
|
|
2048
|
+
private $activeQueryParamMap;
|
|
2049
|
+
protected activeQueryParamMap?: ParamMap;
|
|
2050
|
+
private $activeUrlFragment;
|
|
2051
|
+
private activeUrlFragment;
|
|
2052
|
+
private onInitDidRunOnce;
|
|
2053
|
+
get pageData(): any;
|
|
2054
|
+
constructor(authServiceType: Type<TAuthService>);
|
|
2055
|
+
protected _getInitialPageData(): unknown;
|
|
2056
|
+
isPlatformServer(): boolean;
|
|
2057
|
+
isPlatformBrowser(): boolean;
|
|
2058
|
+
originatedFromServer(): boolean;
|
|
2059
|
+
isPlatformBrowserInitial(): boolean;
|
|
2060
|
+
private configChanged;
|
|
2061
|
+
private authChanged;
|
|
2062
|
+
flushMeta(): Promise<void>;
|
|
2063
|
+
ngOnInit(): Promise<void>;
|
|
2064
|
+
ngOnChanges(): Promise<void>;
|
|
2065
|
+
ngAfterContentInit(): Promise<void>;
|
|
2066
|
+
ngAfterViewInit(): Promise<void>;
|
|
2067
|
+
ngOnDestroy(): Promise<void>;
|
|
2068
|
+
appOnInitAndLoad(): Promise<void>;
|
|
2069
|
+
private _appOnInitAndLoadWithSkipBrowserInitial;
|
|
2070
|
+
appOnInitAndLoadWithSkipBrowserInitial(): Promise<void>;
|
|
2071
|
+
appOnChanges(): Promise<void>;
|
|
2072
|
+
appOnInit(): Promise<void>;
|
|
2073
|
+
appAfterContentInit(): Promise<void>;
|
|
2074
|
+
appAfterViewInit(): Promise<void>;
|
|
2075
|
+
appOnDestroy(): Promise<void>;
|
|
2076
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhPageTypeBaseComponent<any, any>, never>;
|
|
2077
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhPageTypeBaseComponent<any, any>, "nh-page-base-component-type", never, {}, {}, never, never, false, never>;
|
|
2078
|
+
}
|
|
2079
|
+
declare abstract class NhPageBaseComponent extends NhPageTypeBaseComponent<NhAuthorization, NhAuthService> {
|
|
2080
|
+
constructor();
|
|
2081
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhPageBaseComponent, never>;
|
|
2082
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhPageBaseComponent, "nh-page-base-component", never, {}, {}, never, never, false, never>;
|
|
2083
|
+
}
|
|
2084
|
+
declare abstract class NhTypedPageTypeBaseComponent<TPageData, TAuthorization extends INhAuthorization, TAuthService extends BaseNhAuthService<TAuthorization>> extends NhPageTypeBaseComponent<TAuthorization, TAuthService> {
|
|
2085
|
+
protected get pageSettings(): TypedNhPageSettings<TPageData>;
|
|
2086
|
+
protected _getInitialPageData(): unknown;
|
|
2087
|
+
protected abstract getInitialPageData(): TPageData | undefined;
|
|
2088
|
+
get pageData(): TPageData | undefined;
|
|
2089
|
+
constructor(authServiceType: Type<TAuthService>);
|
|
2090
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhTypedPageTypeBaseComponent<any, any, any>, never>;
|
|
2091
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhTypedPageTypeBaseComponent<any, any, any>, "nh-page-base-component-type-typed", never, {}, {}, never, never, false, never>;
|
|
2092
|
+
}
|
|
2093
|
+
declare abstract class NhTypedPageBaseComponent<TPageData> extends NhTypedPageTypeBaseComponent<TPageData, NhAuthorization, NhAuthService> {
|
|
2094
|
+
constructor();
|
|
2095
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhTypedPageBaseComponent<any>, never>;
|
|
2096
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhTypedPageBaseComponent<any>, "nh-page-base-component-typed", never, {}, {}, never, never, false, never>;
|
|
2097
|
+
}
|
|
2098
|
+
|
|
2099
|
+
declare class DefaultMultiSelectSettings implements IMultiSelectSettings {
|
|
2100
|
+
pullRight: boolean;
|
|
2101
|
+
enableSearch: boolean;
|
|
2102
|
+
checkedStyle: 'checkboxes' | 'glyphicon' | 'fontawesome' | 'visual';
|
|
2103
|
+
buttonClasses: string;
|
|
2104
|
+
selectionLimit: number;
|
|
2105
|
+
closeOnSelect: boolean;
|
|
2106
|
+
autoUnselect: boolean;
|
|
2107
|
+
showCheckAll: boolean;
|
|
2108
|
+
showUncheckAll: boolean;
|
|
2109
|
+
fixedTitle: boolean;
|
|
2110
|
+
dynamicTitleMaxItems: number;
|
|
2111
|
+
maxHeight: string;
|
|
2112
|
+
isLazyLoad: boolean;
|
|
2113
|
+
loadViewDistance: number;
|
|
2114
|
+
stopScrollPropagation: boolean;
|
|
2115
|
+
selectAddedValues: boolean;
|
|
2116
|
+
constructor(init?: Partial<DefaultMultiSelectSettings>);
|
|
2117
|
+
}
|
|
2118
|
+
declare class DefaultMultiSelectTexts implements IMultiSelectTexts {
|
|
2119
|
+
checkAll: string;
|
|
2120
|
+
uncheckAll: string;
|
|
2121
|
+
checked: string;
|
|
2122
|
+
checkedPlural: string;
|
|
2123
|
+
searchPlaceholder: string;
|
|
2124
|
+
searchEmptyResult: string;
|
|
2125
|
+
searchNoRenderText: string;
|
|
2126
|
+
defaultTitle: string;
|
|
2127
|
+
allSelected: string;
|
|
2128
|
+
constructor(init?: Partial<DefaultMultiSelectTexts>);
|
|
2129
|
+
}
|
|
2130
|
+
declare class NhFormDropDownSettings {
|
|
2131
|
+
lazyLoad: boolean;
|
|
2132
|
+
translateOptionValue: boolean;
|
|
2133
|
+
multiSelectSettings: IMultiSelectSettings;
|
|
2134
|
+
multiSelectTexts: IMultiSelectTexts;
|
|
2135
|
+
requestOptions: CollectionHttpRequestOptions;
|
|
2136
|
+
debounceTime: number;
|
|
2137
|
+
selectedRequestOptions: CollectionHttpRequestOptions;
|
|
2138
|
+
deferLazyLoadUntilOpened?: boolean;
|
|
2139
|
+
loadLambda?: () => Observable<Array<any>>;
|
|
2140
|
+
lazyLoadLambda?: (options: CollectionHttpRequestOptions) => Observable<CollectionHttpResponse<any>>;
|
|
2141
|
+
selectedLazyLoadLambda?: (options: CollectionHttpRequestOptions, value?: any) => Observable<CollectionHttpResponse<any>>;
|
|
2142
|
+
componentRef?: NhFormDropDownComponent;
|
|
2143
|
+
keyGetLambda: (x: any) => any;
|
|
2144
|
+
imageGetLambda: (x: any) => undefined;
|
|
2145
|
+
valueGetLambda: (x: any) => any;
|
|
2146
|
+
onSuccess: () => void;
|
|
2147
|
+
constructor(init?: Partial<NhFormDropDownSettings>);
|
|
2148
|
+
}
|
|
2149
|
+
declare class NhFormDropDownComponent extends AbstractValueAccessor implements OnInit, OnDestroy {
|
|
2150
|
+
private translate;
|
|
2151
|
+
private cdr;
|
|
2152
|
+
private commonModuleConfig?;
|
|
2153
|
+
lazyLoadComponent?: NgxDropdownMultiselectComponent;
|
|
2154
|
+
noLazyLoadComponent?: NgxDropdownMultiselectComponent;
|
|
2155
|
+
defaultTexts: DefaultMultiSelectTexts;
|
|
2156
|
+
isLoading: boolean;
|
|
2157
|
+
hasMoreLazyLoadItems: boolean;
|
|
2158
|
+
lastLazyLoadEvent: any;
|
|
2159
|
+
hasFocus: boolean;
|
|
2160
|
+
disabled: boolean;
|
|
2161
|
+
onLazyLoadError: EventEmitter<any>;
|
|
2162
|
+
private _settings;
|
|
2163
|
+
readonly closed: i0.OutputEmitterRef<void>;
|
|
2164
|
+
readonly opened: i0.OutputEmitterRef<void>;
|
|
2165
|
+
get settings(): NhFormDropDownSettings;
|
|
2166
|
+
set settings(value: NhFormDropDownSettings);
|
|
2167
|
+
activeLazyLoadDataRequestSubscription: any;
|
|
2168
|
+
activeLazyLoadSelectedDataRequestSubscription: any;
|
|
2169
|
+
activeLoadRequestSubscription: Subscription | null;
|
|
2170
|
+
options: IMultiSelectOption[];
|
|
2171
|
+
rawOptions: any[];
|
|
2172
|
+
private debounceObserver;
|
|
2173
|
+
private debounceSubscription;
|
|
2174
|
+
private readonly destroy$;
|
|
2175
|
+
private hasOpenedDropdown;
|
|
2176
|
+
private hasLoadedDeferredLazyLoadData;
|
|
2177
|
+
private selectedLazyLoadValueKey?;
|
|
2178
|
+
private selectedLazyLoadOptions;
|
|
2179
|
+
private activeLazyLoadSelectedDataValueKey?;
|
|
2180
|
+
private activeLazyLoadSelectedDataObservers;
|
|
2181
|
+
private valueKey;
|
|
2182
|
+
constructor(translate: TranslateService, cdr: ChangeDetectorRef, commonModuleConfig?: NhCommonModuleConfig | undefined);
|
|
2183
|
+
ngOnInit(): void;
|
|
2184
|
+
ngOnDestroy(): void;
|
|
2185
|
+
getDropdownComponent(): NgxDropdownMultiselectComponent | undefined;
|
|
2186
|
+
toggleDropdown(): void;
|
|
2187
|
+
closeDropdown(): void;
|
|
2188
|
+
writeValue(value: any): void;
|
|
2189
|
+
onDropdownOpened(): void;
|
|
2190
|
+
resetSearch(): void;
|
|
2191
|
+
load(resetDeferredState?: boolean): void;
|
|
2192
|
+
private get deferLazyLoadUntilOpened();
|
|
2193
|
+
private cloneValue;
|
|
2194
|
+
private getValueKey;
|
|
2195
|
+
private resetSelectedLazyLoadCache;
|
|
2196
|
+
private loadSelectedOptions;
|
|
2197
|
+
lazyLoadSelectedData(): Observable<Array<IMultiSelectOption>>;
|
|
2198
|
+
lazyLoadData(eventIn: any): void;
|
|
2199
|
+
private processLazyLoadEvent;
|
|
2200
|
+
onModelChange(event: any): void;
|
|
2201
|
+
private handleLazyLoadResponse;
|
|
2202
|
+
private selectedHandleLazyLoadResponse;
|
|
2203
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhFormDropDownComponent, [null, null, { optional: true; }]>;
|
|
2204
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhFormDropDownComponent, "nh-form-dropdown", never, { "disabled": { "alias": "disabled"; "required": false; }; "settings": { "alias": "settings"; "required": false; }; }, { "onLazyLoadError": "onLazyLoadError"; "closed": "closed"; "opened": "opened"; }, never, never, false, never>;
|
|
2205
|
+
}
|
|
2206
|
+
|
|
2207
|
+
declare class NhFormErrorMessageComponent implements OnInit {
|
|
2208
|
+
control: UntypedFormControl | AbstractControl | undefined;
|
|
2209
|
+
constructor();
|
|
2210
|
+
ngOnInit(): void;
|
|
2211
|
+
getErrors(): Array<string>;
|
|
2212
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhFormErrorMessageComponent, never>;
|
|
2213
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhFormErrorMessageComponent, "nh-form-error-message", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
|
|
2214
|
+
}
|
|
2215
|
+
|
|
2216
|
+
declare abstract class NhCollectionTypeBaseComponent<TCollectionResponseItem, TAuthorization extends INhAuthorization, TAuthService extends BaseNhAuthService<TAuthorization>> implements OnChanges, OnInit, AfterContentInit, AfterViewInit, OnDestroy {
|
|
2217
|
+
private readonly loadLock;
|
|
2218
|
+
protected readonly appService: NhAppService;
|
|
2219
|
+
protected readonly ColumnMode: typeof ColumnMode;
|
|
2220
|
+
protected document: Document;
|
|
2221
|
+
protected platformId: Object;
|
|
2222
|
+
protected static readonly URL_QUERY_PARAM_KEY = "q";
|
|
2223
|
+
protected authService: TAuthService;
|
|
2224
|
+
protected modalService: NhModalService;
|
|
2225
|
+
protected translateService: TranslateService;
|
|
2226
|
+
protected toastrService: ToastrService;
|
|
2227
|
+
protected router: Router;
|
|
2228
|
+
protected activatedRoute: ActivatedRoute;
|
|
2229
|
+
protected nhRouterService: NhRouterService;
|
|
2230
|
+
tableInfo: any;
|
|
2231
|
+
claimTypes: typeof ClaimTypes;
|
|
2232
|
+
readonly queryParamUpdates: i0.ModelSignal<boolean>;
|
|
2233
|
+
readonly localStorageUpdates: i0.ModelSignal<boolean>;
|
|
2234
|
+
protected filtersActive: boolean;
|
|
2235
|
+
protected isLoading: boolean;
|
|
2236
|
+
protected requestOptions: CollectionHttpRequestOptions;
|
|
2237
|
+
private activeRequestSubscription;
|
|
2238
|
+
protected collectionResponse: CollectionHttpResponse<TCollectionResponseItem>;
|
|
2239
|
+
private get localStorageKey();
|
|
2240
|
+
get items(): TCollectionResponseItem[];
|
|
2241
|
+
protected constructor(authServiceType: Type<TAuthService>);
|
|
2242
|
+
abstract onLoad(requestOptions: CollectionHttpRequestOptions): Promise<Observable<CollectionHttpResponse<TCollectionResponseItem>>>;
|
|
2243
|
+
abstract getInitialRequestOptions(): CollectionHttpRequestOptions;
|
|
2244
|
+
abstract getLocalStoragePartialKey(): string | null;
|
|
2245
|
+
beforeLoad(): Promise<void>;
|
|
2246
|
+
afterLoad(): Promise<void>;
|
|
2247
|
+
ngOnChanges(): void;
|
|
2248
|
+
ngOnInit(): void;
|
|
2249
|
+
ngAfterContentInit(): void;
|
|
2250
|
+
ngAfterViewInit(): void;
|
|
2251
|
+
ngOnDestroy(): void;
|
|
2252
|
+
appOnChanges(): Promise<void>;
|
|
2253
|
+
appOnInit(): Promise<void>;
|
|
2254
|
+
appAfterContentInit(): Promise<void>;
|
|
2255
|
+
appAfterViewInit(): Promise<void>;
|
|
2256
|
+
appOnDestroy(): Promise<void>;
|
|
2257
|
+
initCollectionRequestModel(): void;
|
|
2258
|
+
private syncRequestOptionsToTableInfo;
|
|
2259
|
+
updateRequestOptions(): void;
|
|
2260
|
+
resetRequestOptionsAndLoad(): void;
|
|
2261
|
+
resetRequestOptions(): void;
|
|
2262
|
+
load(): Promise<CollectionHttpResponse<TCollectionResponseItem>>;
|
|
2263
|
+
search(search: string): Promise<void>;
|
|
2264
|
+
sort(event: any): Promise<void>;
|
|
2265
|
+
setPageByOffsetLimit(event: {
|
|
2266
|
+
offset: number;
|
|
2267
|
+
limit: number;
|
|
2268
|
+
}): Promise<void>;
|
|
2269
|
+
setPage(event: {
|
|
2270
|
+
page: number;
|
|
2271
|
+
itemsPerPage: number;
|
|
2272
|
+
}): Promise<void>;
|
|
2273
|
+
firstPage(): Promise<void>;
|
|
2274
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhCollectionTypeBaseComponent<any, any, any>, never>;
|
|
2275
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhCollectionTypeBaseComponent<any, any, any>, "nh-shared-collection-base-component", never, { "queryParamUpdates": { "alias": "queryParamUpdates"; "required": false; "isSignal": true; }; "localStorageUpdates": { "alias": "localStorageUpdates"; "required": false; "isSignal": true; }; }, { "queryParamUpdates": "queryParamUpdatesChange"; "localStorageUpdates": "localStorageUpdatesChange"; }, never, never, false, never>;
|
|
2276
|
+
}
|
|
2277
|
+
declare abstract class NhCollectionBaseComponent<TCollectionResponseItem> extends NhCollectionTypeBaseComponent<TCollectionResponseItem, NhAuthorization, NhAuthService> {
|
|
2278
|
+
constructor();
|
|
2279
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhCollectionBaseComponent<any>, never>;
|
|
2280
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhCollectionBaseComponent<any>, "nh-shared-collection-type-base-component", never, {}, {}, never, never, false, never>;
|
|
2281
|
+
}
|
|
2282
|
+
|
|
2283
|
+
declare enum MutationType {
|
|
2284
|
+
Create = 0,
|
|
2285
|
+
Update = 1
|
|
2286
|
+
}
|
|
2287
|
+
declare abstract class NhMutateBaseTypeComponent<TFormData, TResult, TAuthorization extends INhAuthorization, TAuthService extends BaseNhAuthService<TAuthorization>> implements OnChanges, OnInit, AfterContentInit, AfterViewInit, OnDestroy {
|
|
2288
|
+
protected authService: TAuthService;
|
|
2289
|
+
protected translateService: TranslateService;
|
|
2290
|
+
protected toastrService: ToastrService;
|
|
2291
|
+
protected activatedRoute: ActivatedRoute;
|
|
2292
|
+
protected nhRouterService: NhRouterService;
|
|
2293
|
+
protected formValidator: NhServerSideFormValidationService;
|
|
2294
|
+
protected taskResultFormValidator: NhTaskResultFormValidationService;
|
|
2295
|
+
claimTypes: typeof ClaimTypes;
|
|
2296
|
+
private _isLoading;
|
|
2297
|
+
private _isSubmitting;
|
|
2298
|
+
private _mutationType;
|
|
2299
|
+
private _formData;
|
|
2300
|
+
get isLoading(): boolean;
|
|
2301
|
+
protected set isLoading(value: boolean);
|
|
2302
|
+
get isSubmitting(): boolean;
|
|
2303
|
+
protected set isSubmitting(value: boolean);
|
|
2304
|
+
protected get isLoadingOrSubmitting(): boolean;
|
|
2305
|
+
get mutationType(): MutationType;
|
|
2306
|
+
protected set mutationType(value: MutationType);
|
|
2307
|
+
get formData(): TFormData | undefined;
|
|
2308
|
+
protected set formData(value: TFormData | undefined);
|
|
2309
|
+
form: any | undefined;
|
|
2310
|
+
created: EventEmitter<TResult>;
|
|
2311
|
+
updated: EventEmitter<TResult>;
|
|
2312
|
+
protected constructor(authServiceType: Type<TAuthService>);
|
|
2313
|
+
abstract onNewFormData(mutationType: MutationType): Promise<TFormData>;
|
|
2314
|
+
abstract onSubmitCreate(event: any): Promise<TaskResult<TResult>>;
|
|
2315
|
+
abstract onSubmitUpdate(event: any): Promise<TaskResult<TResult>>;
|
|
2316
|
+
ngOnChanges(): void;
|
|
2317
|
+
ngOnInit(): void;
|
|
2318
|
+
ngAfterContentInit(): void;
|
|
2319
|
+
ngAfterViewInit(): void;
|
|
2320
|
+
ngOnDestroy(): void;
|
|
2321
|
+
appOnChanges(): Promise<void>;
|
|
2322
|
+
appOnInit(): Promise<void>;
|
|
2323
|
+
appAfterContentInit(): Promise<void>;
|
|
2324
|
+
appAfterViewInit(): Promise<void>;
|
|
2325
|
+
appOnDestroy(): Promise<void>;
|
|
2326
|
+
newFormData(mutationType: MutationType): Promise<void>;
|
|
2327
|
+
submit(event: any, handleAll?: boolean): Promise<void>;
|
|
2328
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhMutateBaseTypeComponent<any, any, any, any>, never>;
|
|
2329
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhMutateBaseTypeComponent<any, any, any, any>, "nh-mutate-base-type-component", never, {}, { "created": "created"; "updated": "updated"; }, never, never, false, never>;
|
|
2330
|
+
}
|
|
2331
|
+
declare abstract class NhMutateBaseComponent<TFormData, TResult> extends NhMutateBaseTypeComponent<TFormData, TResult, NhAuthorization, NhAuthService> {
|
|
2332
|
+
constructor();
|
|
2333
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhMutateBaseComponent<any, any>, never>;
|
|
2334
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhMutateBaseComponent<any, any>, "nh-mutate-base-component", never, {}, {}, never, never, false, never>;
|
|
2335
|
+
}
|
|
2336
|
+
|
|
2337
|
+
declare abstract class NhModalMutateBaseTypeComponent<TFormData, TResult, TAuthorization extends INhAuthorization, TAuthService extends BaseNhAuthService<TAuthorization>> extends NhMutateBaseTypeComponent<TFormData, TResult, TAuthorization, TAuthService> implements OnInit, OnDestroy, INhModalComponent<NhModalMutateBaseTypeComponent<TFormData, TResult, TAuthorization, TAuthService>> {
|
|
2338
|
+
protected modalComponentRef: NhModalComponentRef<NhModalMutateBaseTypeComponent<TFormData, TResult, TAuthorization, TAuthService>> | undefined;
|
|
2339
|
+
protected modalService: NhModalService;
|
|
2340
|
+
setModalComponentRef(ref: NhModalComponentRef<NhModalMutateBaseTypeComponent<TFormData, TResult, TAuthorization, TAuthService>>): void;
|
|
2341
|
+
protected constructor(authServiceType: Type<TAuthService>);
|
|
2342
|
+
onKeyUp(event: KeyboardEvent): void;
|
|
2343
|
+
closeDialog(event?: any): void;
|
|
2344
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhModalMutateBaseTypeComponent<any, any, any, any>, never>;
|
|
2345
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhModalMutateBaseTypeComponent<any, any, any, any>, "nh-modal-mutate-base-type-component", never, {}, {}, never, never, false, never>;
|
|
2346
|
+
}
|
|
2347
|
+
declare abstract class NhModalMutateBaseComponent<TFormData, TResult> extends NhModalMutateBaseTypeComponent<TFormData, TResult, NhAuthorization, NhAuthService> {
|
|
2348
|
+
constructor();
|
|
2349
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhModalMutateBaseComponent<any, any>, never>;
|
|
2350
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhModalMutateBaseComponent<any, any>, "nh-modal-mutate-base-component", never, {}, {}, never, never, false, never>;
|
|
2351
|
+
}
|
|
2352
|
+
|
|
2353
|
+
declare class NhErrorComponent {
|
|
2354
|
+
key: i0.InputSignal<string | undefined>;
|
|
2355
|
+
errors: i0.InputSignal<TaskResult<any> | undefined>;
|
|
2356
|
+
get displayErrors(): string[];
|
|
2357
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhErrorComponent, never>;
|
|
2358
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhErrorComponent, "nh-error", never, { "key": { "alias": "key"; "required": true; "isSignal": true; }; "errors": { "alias": "errors"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
2359
|
+
}
|
|
2360
|
+
|
|
2361
|
+
declare abstract class NhUserNotificationsAbstractComponent extends NhCollectionBaseComponent<NhUserNotification> implements OnInit, OnDestroy {
|
|
2362
|
+
allowStart: boolean;
|
|
2363
|
+
allowStop: boolean;
|
|
2364
|
+
itemsPerPage: number;
|
|
2365
|
+
autoLoadNotificationChanges: boolean;
|
|
2366
|
+
protected readonly userNotificationService: NhUserNotificationService;
|
|
2367
|
+
protected readonly moduleConfig: NhCommonModuleConfig;
|
|
2368
|
+
readonly partialLocalStorageKey: i0.InputSignal<string>;
|
|
2369
|
+
requestOptions: NhUserNotificationCollectionHttpRequestOptions;
|
|
2370
|
+
userNotificationState: NhUserNotificationState;
|
|
2371
|
+
private lastNotificationDate;
|
|
2372
|
+
private lastNotificationCount;
|
|
2373
|
+
private lastUnreadNotificationCount;
|
|
2374
|
+
protected userNotificationSubscription: rxjs.Subscription;
|
|
2375
|
+
constructor();
|
|
2376
|
+
protected onNewNotificationsAvailable(state: NhUserNotificationState): Promise<void>;
|
|
2377
|
+
ngOnInit(): void;
|
|
2378
|
+
ngOnDestroy(): void;
|
|
2379
|
+
getInitialRequestOptions(): NhUserNotificationCollectionHttpRequestOptions;
|
|
2380
|
+
getLocalStoragePartialKey(): string | null;
|
|
2381
|
+
onLoad(requestOptions: NhUserNotificationCollectionHttpRequestOptions): Promise<Observable<CollectionHttpResponse<NhUserNotification>>>;
|
|
2382
|
+
afterLoad(): Promise<void>;
|
|
2383
|
+
reload(): Promise<void>;
|
|
2384
|
+
markAsRead(notification: NhUserNotification): Promise<TaskResult<unknown>>;
|
|
2385
|
+
markAllAsRead(): Promise<TaskResult<unknown>>;
|
|
2386
|
+
archive(notification: NhUserNotification): Promise<TaskResult<unknown>>;
|
|
2387
|
+
archiveAll(): Promise<TaskResult<unknown>>;
|
|
2388
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhUserNotificationsAbstractComponent, never>;
|
|
2389
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhUserNotificationsAbstractComponent, "nh-user-notifications-abstract", never, { "allowStart": { "alias": "allowStart"; "required": false; }; "allowStop": { "alias": "allowStop"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "autoLoadNotificationChanges": { "alias": "autoLoadNotificationChanges"; "required": false; }; "partialLocalStorageKey": { "alias": "partialLocalStorageKey"; "required": false; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
2390
|
+
}
|
|
2391
|
+
|
|
2392
|
+
declare class NhSearchInputComponent {
|
|
2393
|
+
value: string | undefined;
|
|
2394
|
+
onDebounce: EventEmitter<string>;
|
|
2395
|
+
open: boolean;
|
|
2396
|
+
searchInput?: ElementRef<HTMLInputElement>;
|
|
2397
|
+
focusInput(): void;
|
|
2398
|
+
onDebounceEvent(val: Event): void;
|
|
2399
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhSearchInputComponent, never>;
|
|
2400
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhSearchInputComponent, "nh-search-input", never, { "value": { "alias": "value"; "required": false; }; }, { "onDebounce": "onDebounce"; }, never, never, false, never>;
|
|
2401
|
+
}
|
|
2402
|
+
|
|
2403
|
+
declare class NhPageSizeComponent extends AbstractValueAccessor {
|
|
2404
|
+
isDisabled: boolean;
|
|
2405
|
+
name: string;
|
|
2406
|
+
pageSizeDropDownSettings: NhFormDropDownSettings;
|
|
2407
|
+
setDisabledState?(isDisabled: boolean): void;
|
|
2408
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhPageSizeComponent, never>;
|
|
2409
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<NhPageSizeComponent, "nh-page-size", never, { "name": { "alias": "name"; "required": false; }; }, {}, never, never, false, never>;
|
|
2410
|
+
}
|
|
2411
|
+
|
|
2412
|
+
declare class NhCommonModule {
|
|
2413
|
+
constructor(parentModule: NhCommonModule);
|
|
2414
|
+
static forRoot<TAuthorization extends INhAuthorization, TAuthService extends BaseNhAuthService<TAuthorization>>(config: NhCommonModuleConfig, authService: Type<TAuthService>): ModuleWithProviders<NhCommonModule>;
|
|
2415
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NhCommonModule, [{ optional: true; skipSelf: true; }]>;
|
|
2416
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<NhCommonModule, [typeof NhModalComponent, typeof NhLoaderComponent, typeof NhJsonLdComponent, typeof NhModalLoadingComponent, typeof NhModalConfirmComponent, typeof NhFormDropDownComponent, typeof NhFormErrorMessageComponent, typeof NhErrorComponent, typeof NhPageSizeComponent, typeof NhSearchInputComponent, typeof NhDatePipe, typeof NhDateTimePipe, typeof NhDateUtcPipe, typeof NhBooleanToStringPipe, typeof IsAuthenticatedPipe, typeof IsAllPermissionsGrantedPipe, typeof IsOnePermissionGrantedPipe, typeof IsClaimGrantedPipe, typeof IsOneClaimGrantedPipe, typeof IsOneRoleGrantedPipe, typeof IsGrantedRolePipe, typeof IsOneDivisionPermissionGrantedPipe, typeof IsOneDivisionRoleGrantedPipe, typeof IsOneActiveDivisionPermissionGrantedPipe, typeof IsOneActiveDivisionRoleGrantedPipe, typeof NhUrlEncodePipe, typeof SafeHtmlPipe, typeof SafeUrlPipe, typeof SafeResourceUrlPipe, typeof NhToHeadDirective, typeof NhDebounceDirective, typeof NhButtonDebounceDirective, typeof NhModalContentDirective, typeof NhRouterLinkDirective], [typeof i20.CommonModule, typeof i21.TranslateModule, typeof i22.NgxBootstrapMultiselectModule, typeof i23.FormsModule], [typeof NhModalComponent, typeof NhLoaderComponent, typeof NhJsonLdComponent, typeof NhModalLoadingComponent, typeof NhModalConfirmComponent, typeof NhFormDropDownComponent, typeof NhFormErrorMessageComponent, typeof NhErrorComponent, typeof NhPageSizeComponent, typeof NhSearchInputComponent, typeof NhDatePipe, typeof NhDateTimePipe, typeof NhDateUtcPipe, typeof NhBooleanToStringPipe, typeof IsAuthenticatedPipe, typeof IsAllPermissionsGrantedPipe, typeof IsOnePermissionGrantedPipe, typeof IsClaimGrantedPipe, typeof IsOneClaimGrantedPipe, typeof IsOneRoleGrantedPipe, typeof IsOneDivisionPermissionGrantedPipe, typeof IsOneDivisionRoleGrantedPipe, typeof IsOneActiveDivisionPermissionGrantedPipe, typeof IsOneActiveDivisionRoleGrantedPipe, typeof IsGrantedRolePipe, typeof NhUrlEncodePipe, typeof SafeHtmlPipe, typeof SafeUrlPipe, typeof SafeResourceUrlPipe, typeof NhToHeadDirective, typeof NhDebounceDirective, typeof NhButtonDebounceDirective, typeof NhModalContentDirective, typeof NhRouterLinkDirective]>;
|
|
2417
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<NhCommonModule>;
|
|
2418
|
+
}
|
|
2419
|
+
|
|
2420
|
+
declare class NhCanCancelNavigationGuard implements CanDeactivate<ICancelNavigationComponent> {
|
|
2421
|
+
canDeactivate(component: ICancelNavigationComponent, currentRoute: ActivatedRouteSnapshot, currentState: RouterStateSnapshot, nextState: RouterStateSnapshot): MaybeAsync<GuardResult>;
|
|
2422
|
+
}
|
|
2423
|
+
interface ICancelNavigationComponent {
|
|
2424
|
+
canDeactivateComponent(): boolean | Promise<boolean> | Observable<boolean>;
|
|
2425
|
+
}
|
|
2426
|
+
|
|
2427
|
+
declare global {
|
|
2428
|
+
interface Array<T> {
|
|
2429
|
+
any(): boolean;
|
|
2430
|
+
firstOrDefault(): any;
|
|
2431
|
+
lastOrDefault(): any;
|
|
2432
|
+
}
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2435
|
+
declare module "rxjs/internal/Observable" {
|
|
2436
|
+
interface Observable<T> {
|
|
2437
|
+
lastValueFrom(): Promise<T>;
|
|
2438
|
+
taskResultLastValueFrom(): Promise<TaskResult<T>>;
|
|
2439
|
+
typedResultLastValueFrom(): Promise<TypedResult<T>>;
|
|
2440
|
+
}
|
|
2441
|
+
}
|
|
2442
|
+
|
|
2443
|
+
declare class NhTranslateBrowserLoader implements TranslateLoader {
|
|
2444
|
+
private http;
|
|
2445
|
+
private transferState;
|
|
2446
|
+
protected moduleConfig: NhCommonModuleConfig;
|
|
2447
|
+
protected static readonly httpRequestOptions: HttpRequestOptions;
|
|
2448
|
+
constructor(http: HttpClient, transferState: TransferState);
|
|
2449
|
+
getTranslation(lang: string): Observable<any>;
|
|
2450
|
+
}
|
|
2451
|
+
declare function nhTranslateBrowserLoaderFactory(httpClient: HttpClient, transferState: TransferState): NhTranslateBrowserLoader;
|
|
2452
|
+
|
|
2453
|
+
export { AbstractValueAccessor, AspMvcFormServerSideFormValidator, AuthSessionExpirationInformation, AuthenticateModel, AuthenticationNhCommonModuleConfig, AuthenticationSessionCreateResponse, BaseNhAuthService, CheckAuthenticateSessionModel, Claim, ClaimAuthenticateSessionAccountMutateModel, ClaimAuthenticateSessionAccountViewModel, ClaimTypes, CollectionHttpRequestOptions, CollectionHttpResponse, DefaultMultiSelectSettings, DefaultMultiSelectTexts, EndpointsAuthenticationNhCommonModuleConfig, FilterRequestOptions, FormError, FormValidationResult, HttpDownloadRequestOptions, HttpRequestOptions, HttpRequestOptionsArrayBuffer, HttpRequestOptionsText, ImpersonateAuthenticateModel, IsAllPermissionsGrantedPipe, IsAuthenticatedPipe, IsClaimGrantedPipe, IsDefined, IsGrantedRolePipe, IsOneActiveDivisionPermissionGrantedGuard, IsOneActiveDivisionPermissionGrantedPipe, IsOneActiveDivisionRoleGrantedGuard, IsOneActiveDivisionRoleGrantedPipe, IsOneClaimGrantedPipe, IsOneDivisionPermissionGrantedPipe, IsOneDivisionRoleGrantedPipe, IsOnePermissionGrantedPipe, IsOneRoleGrantedPipe, JsonLdDataChanged, ListSortDirection, MakeProvider, MutationType, NH_ERROR_HANDLERS, NH_ROUTER_LANGUAGE_CHANGE_METHOD, NH_ROUTER_ROOT_ROUTES, NH_SENTRY_BEFORE_BREADCRUMB_HOOKS, NH_SENTRY_BEFORE_SEND_HOOKS, NH_SENTRY_BEFORE_SEND_LOG_HOOKS, NH_SENTRY_BEFORE_SEND_SPAN_HOOKS, NH_SENTRY_BEFORE_SEND_TRANSACTION_HOOKS, NhAccountInformationResponse, NhAngularUtil, NhApiService, NhApiUtil, NhAppService, NhAsyncLock, NhAuthService, NhAuthorization, NhBaseApiService, NhBooleanToStringPipe, NhBreadCrumb, NhBreadCrumbItem, NhButtonDebounceDirective, NhCanCancelNavigationGuard, NhCollectionBaseComponent, NhCollectionTypeBaseComponent, NhCommonConfig, NhCommonConfigChanged, NhCommonModule, NhCommonModuleConfig, NhConfigCommonService, NhContextMenu, NhContextMenuItem, NhContextMenuService, NhContextMenuServiceConfig, NhCookieService, NhDatePipe, NhDateTimePipe, NhDateUtcPipe, NhDebounceDirective, NhDeduplicateGetRequestsInterceptor, NhDivision, NhDivisionRole, NhDivisionUser, NhEncodeHttpParamsInterceptor, NhEncodingUtil, NhErrorComponent, NhErrorHandlerSentryService, NhErrorHandlerService, NhErrorLoggingNhCommonModuleConfig, NhFormDropDownComponent, NhFormDropDownNhCommonModuleConfig, NhFormDropDownSettings, NhFormErrorMessageComponent, NhFormHelper, NhHeadService, NhHttpNhCommonModuleConfig, NhHttpUtil, NhInternetConnectionService, NhIsAllPermissionsGrantedGuard, NhIsAuthenticatedGuard, NhIsOneClaimGrantedGuard, NhIsOnePermissionGrantedGuard, NhIsOneRoleGrantedGuard, NhJsonLdComponent, NhJsonLdData, NhJsonLdDataItem, NhJsonLdService, NhLoaderComponent, NhMetaService, NhModalComponent, NhModalComponentClosed, NhModalComponentImpl, NhModalComponentRef, NhModalConfirmComponent, NhModalContentDirective, NhModalLoadingComponent, NhModalMutateBaseComponent, NhModalMutateBaseTypeComponent, NhModalOptions, NhModalService, NhMutateBaseComponent, NhMutateBaseTypeComponent, NhMutex, NhPageBaseComponent, NhPageService, NhPageSettings, NhPageSizeComponent, NhPageTypeBaseComponent, NhRegisterRoute, NhRequestScopedServerHttpInterceptorService, NhRoute, NhRouteInfo, NhRouteNavigationItem, NhRouterLinkDirective, NhRouterService, NhRouterSetupService, NhSearchInputComponent, NhSentryErrorLoggingNhCommonModuleConfig, NhSentryInitializerService, NhSentryService, NhSentryTraceService, NhServerHttpInterceptor, NhServerService, NhServerSideFormValidationService, NhSitemap, NhSitemapEntry, NhSitemapEntryItem, NhStringUtil, NhTaskResultFormValidationService, NhTitleService, NhToHeadDirective, NhTranslateBrowserLoader, NhTranslationNhCommonModuleConfig, NhTypedPageBaseComponent, NhTypedPageTypeBaseComponent, NhUrlEncodePipe, NhUser, NhUserNotification, NhUserNotificationCollectionHttpRequestOptions, NhUserNotificationData, NhUserNotificationMessage, NhUserNotificationOverview, NhUserNotificationService, NhUserNotificationState, NhUserNotificationsAbstractComponent, OrderByRequestOptions, PreConnectUrlItem, PreLoadUrlItem, REVIEW_AGGREGATE_RATING_KEY, REVIEW_KEY, RefreshTokenLoginAccountMutateModel, RevertImpersonateAuthenticateModel, SafeHtmlPipe, SafeResourceUrlPipe, SafeUrlPipe, SearchableCollectionHttpRequestOptions, SimpleCollectionHttpRequestOptions, SimpleCollectionHttpResponse, TaskResult, TaskResultItem, TypedNhPageSettings, UserNotificationNhCommonModuleConfig, enumIntValuesToArray, enumKeysToArray, enumStringValuesToArray, enumValuesToArray, getEmptyGuid, getRandomIdentifier, groupBy, languageToCultureMap, nameof, nhTranslateBrowserLoaderFactory, uppercaseFirst };
|
|
2454
|
+
export type { AuthenticationFlow, ErrorResult, ICancelNavigationComponent, IClaimAuthenticateSessionAccountViewModel, ICollectionHttpRequestOptions, ICollectionHttpResponse, IFormError, IFormValidationResult, IHttpDownloadRequestOptions, IHttpRequestOptions, INhAccountInformationResponse, INhAuthorization, INhDivision, INhDivisionRole, INhDivisionUser, INhModalComponent, INhUser, ISearchableCollectionHttpRequestOptions, IServerSideFormValidationService, IServerSideFormValidator, ISimpleCollectionHttpRequestOptions, ISimpleCollectionHttpResponse, NhContextEventWithCoordinates, NhEnumDropDownItem, NhRouterLink, NhSentryBeforeBreadcrumbHook, NhSentryBeforeSendHook, NhSentryBeforeSendLogHook, NhSentryBeforeSendSpanHook, NhSentryBeforeSendTransactionHook, SuccessResult, TypedResult };
|