@abp/ng.core 7.4.2 → 8.0.0-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2022/lib/abstracts/auth.guard.mjs +11 -4
- package/esm2022/lib/abstracts/auth.service.mjs +4 -4
- package/esm2022/lib/abstracts/ng-model.component.mjs +11 -12
- package/esm2022/lib/clients/http.client.mjs +4 -4
- package/esm2022/lib/components/dynamic-layout.component.mjs +6 -6
- package/esm2022/lib/components/replaceable-route-container.component.mjs +5 -5
- package/esm2022/lib/components/router-outlet.component.mjs +4 -4
- package/esm2022/lib/core.module.mjs +13 -13
- package/esm2022/lib/directives/autofocus.directive.mjs +5 -5
- package/esm2022/lib/directives/caps-lock.directive.mjs +4 -4
- package/esm2022/lib/directives/debounce.directive.mjs +5 -5
- package/esm2022/lib/directives/for.directive.mjs +5 -5
- package/esm2022/lib/directives/form-submit.directive.mjs +6 -6
- package/esm2022/lib/directives/init.directive.mjs +5 -5
- package/esm2022/lib/directives/permission.directive.mjs +6 -6
- package/esm2022/lib/directives/replaceable-template.directive.mjs +5 -5
- package/esm2022/lib/directives/show-password.directive.mjs +4 -4
- package/esm2022/lib/directives/stop-propagation.directive.mjs +5 -5
- package/esm2022/lib/guards/permission.guard.mjs +29 -7
- package/esm2022/lib/handlers/routes.handler.mjs +6 -6
- package/esm2022/lib/interceptors/api.interceptor.mjs +5 -5
- package/esm2022/lib/localization.module.mjs +5 -5
- package/esm2022/lib/models/dtos.mjs +1 -1
- package/esm2022/lib/pipes/localization.pipe.mjs +6 -6
- package/esm2022/lib/pipes/safe-html.pipe.mjs +5 -5
- package/esm2022/lib/pipes/short-date-time.pipe.mjs +6 -6
- package/esm2022/lib/pipes/short-date.pipe.mjs +6 -6
- package/esm2022/lib/pipes/short-time.pipe.mjs +6 -6
- package/esm2022/lib/pipes/sort.pipe.mjs +5 -5
- package/esm2022/lib/pipes/to-injector.pipe.mjs +5 -5
- package/esm2022/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.mjs +5 -5
- package/esm2022/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.mjs +5 -5
- package/esm2022/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.mjs +5 -5
- package/esm2022/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-localization.service.mjs +5 -5
- package/esm2022/lib/services/config-state.service.mjs +6 -6
- package/esm2022/lib/services/content-projection.service.mjs +5 -5
- package/esm2022/lib/services/dom-insertion.service.mjs +4 -4
- package/esm2022/lib/services/environment.service.mjs +4 -4
- package/esm2022/lib/services/http-error-reporter.service.mjs +8 -8
- package/esm2022/lib/services/http-wait.service.mjs +5 -5
- package/esm2022/lib/services/index.mjs +1 -1
- package/esm2022/lib/services/internet-connection-service.mjs +5 -5
- package/esm2022/lib/services/lazy-load.service.mjs +5 -5
- package/esm2022/lib/services/list.service.mjs +5 -5
- package/esm2022/lib/services/local-storage.service.mjs +5 -5
- package/esm2022/lib/services/localization.service.mjs +6 -6
- package/esm2022/lib/services/multi-tenancy.service.mjs +6 -6
- package/esm2022/lib/services/permission.service.mjs +5 -5
- package/esm2022/lib/services/replaceable-components.service.mjs +5 -5
- package/esm2022/lib/services/resource-wait.service.mjs +4 -4
- package/esm2022/lib/services/rest.service.mjs +6 -6
- package/esm2022/lib/services/router-events.service.mjs +5 -5
- package/esm2022/lib/services/router-wait.service.mjs +5 -5
- package/esm2022/lib/services/routes.service.mjs +8 -8
- package/esm2022/lib/services/session-state.service.mjs +5 -5
- package/esm2022/lib/services/subscription.service.mjs +4 -4
- package/esm2022/lib/services/track-by.service.mjs +4 -4
- package/esm2022/lib/services/window.service.mjs +21 -5
- package/esm2022/testing/lib/core-testing.module.mjs +5 -5
- package/esm2022/testing/lib/services/mock-permission.service.mjs +5 -5
- package/esm2022/testing/lib/services/mock-rest.service.mjs +6 -6
- package/fesm2022/abp-ng.core-testing.mjs +13 -13
- package/fesm2022/abp-ng.core-testing.mjs.map +1 -1
- package/fesm2022/abp-ng.core.mjs +292 -248
- package/fesm2022/abp-ng.core.mjs.map +1 -1
- package/lib/abstracts/auth.guard.d.ts +5 -0
- package/lib/abstracts/ng-model.component.d.ts +1 -3
- package/lib/guards/permission.guard.d.ts +6 -2
- package/lib/models/dtos.d.ts +6 -6
- package/lib/services/http-error-reporter.service.d.ts +1 -1
- package/lib/services/window.service.d.ts +2 -0
- package/package.json +2 -2
package/fesm2022/abp-ng.core.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { ChangeDetectorRef, Component, Input, Injectable, InjectionToken, Inject, Optional, isDevMode, SkipSelf, NgModuleFactory, Injector, Compiler,
|
|
2
|
+
import { ChangeDetectorRef, inject, Component, Input, Injectable, InjectionToken, Inject, Optional, isDevMode, SkipSelf, NgModuleFactory, Injector, Compiler, signal, computed, Directive, EventEmitter, Output, Self, Pipe, NgModule, APP_INITIALIZER, LOCALE_ID, SecurityContext, ElementRef, HostListener, ComponentFactoryResolver, ApplicationRef } from '@angular/core';
|
|
3
3
|
import { of, BehaviorSubject, Subject, throwError, combineLatest, from, firstValueFrom, lastValueFrom, Observable, timer, pipe, concat, ReplaySubject, Subscription, map as map$1, fromEvent } from 'rxjs';
|
|
4
4
|
import * as i1$1 from '@angular/router';
|
|
5
5
|
import { PRIMARY_OUTLET, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
@@ -16,6 +16,11 @@ import { DomSanitizer } from '@angular/platform-browser';
|
|
|
16
16
|
|
|
17
17
|
// Not an abstract class on purpose. Do not change!
|
|
18
18
|
class AbstractNgModelComponent {
|
|
19
|
+
constructor() {
|
|
20
|
+
this.cdRef = inject(ChangeDetectorRef);
|
|
21
|
+
this.valueFn = value => value;
|
|
22
|
+
this.valueLimitFn = value => false;
|
|
23
|
+
}
|
|
19
24
|
set value(value) {
|
|
20
25
|
value = this.valueFn(value, this._value);
|
|
21
26
|
if (this.valueLimitFn(value, this._value) !== false || this.readonly)
|
|
@@ -29,12 +34,6 @@ class AbstractNgModelComponent {
|
|
|
29
34
|
get defaultValue() {
|
|
30
35
|
return this._value;
|
|
31
36
|
}
|
|
32
|
-
constructor(injector) {
|
|
33
|
-
this.injector = injector;
|
|
34
|
-
this.valueFn = value => value;
|
|
35
|
-
this.valueLimitFn = value => false;
|
|
36
|
-
this.cdRef = injector.get(ChangeDetectorRef);
|
|
37
|
-
}
|
|
38
37
|
notifyValueChange() {
|
|
39
38
|
if (this.onChange) {
|
|
40
39
|
this.onChange(this.value);
|
|
@@ -53,13 +52,13 @@ class AbstractNgModelComponent {
|
|
|
53
52
|
setDisabledState(isDisabled) {
|
|
54
53
|
this.disabled = isDisabled;
|
|
55
54
|
}
|
|
56
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
55
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbstractNgModelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
56
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: AbstractNgModelComponent, selector: "ng-component", inputs: { disabled: "disabled", readonly: "readonly", valueFn: "valueFn", valueLimitFn: "valueLimitFn", value: "value" }, ngImport: i0, template: '', isInline: true }); }
|
|
58
57
|
}
|
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbstractNgModelComponent, decorators: [{
|
|
60
59
|
type: Component,
|
|
61
60
|
args: [{ template: '' }]
|
|
62
|
-
}],
|
|
61
|
+
}], propDecorators: { disabled: [{
|
|
63
62
|
type: Input
|
|
64
63
|
}], readonly: [{
|
|
65
64
|
type: Input
|
|
@@ -71,20 +70,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
71
70
|
type: Input
|
|
72
71
|
}] } });
|
|
73
72
|
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated Use `authGuard` *function* instead.
|
|
75
|
+
*/
|
|
74
76
|
class AuthGuard {
|
|
75
77
|
canActivate() {
|
|
76
78
|
console.error('You should add @abp/ng-oauth packages or create your own auth packages.');
|
|
77
79
|
return false;
|
|
78
80
|
}
|
|
79
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
80
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
81
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuthGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
82
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuthGuard, providedIn: 'root' }); }
|
|
81
83
|
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuthGuard, decorators: [{
|
|
83
85
|
type: Injectable,
|
|
84
86
|
args: [{
|
|
85
87
|
providedIn: 'root',
|
|
86
88
|
}]
|
|
87
89
|
}] });
|
|
90
|
+
const authGuard = () => {
|
|
91
|
+
console.error('You should add @abp/ng-oauth packages or create your own auth packages.');
|
|
92
|
+
return false;
|
|
93
|
+
};
|
|
88
94
|
|
|
89
95
|
/**
|
|
90
96
|
* Abstract service for Authentication.
|
|
@@ -118,10 +124,10 @@ class AuthService {
|
|
|
118
124
|
console.log({ grantType, parameters, headers });
|
|
119
125
|
return Promise.reject(new Error('not implemented'));
|
|
120
126
|
}
|
|
121
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
122
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
127
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuthService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
128
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuthService, providedIn: 'root' }); }
|
|
123
129
|
}
|
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuthService, decorators: [{
|
|
125
131
|
type: Injectable,
|
|
126
132
|
args: [{
|
|
127
133
|
providedIn: 'root',
|
|
@@ -238,10 +244,10 @@ class ExternalHttpClient extends HttpClient {
|
|
|
238
244
|
optionsOrRequest.context ??= new HttpContext();
|
|
239
245
|
optionsOrRequest.context.set(IS_EXTERNAL_REQUEST, true);
|
|
240
246
|
}
|
|
241
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
242
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
247
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ExternalHttpClient, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
248
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ExternalHttpClient, providedIn: 'root' }); }
|
|
243
249
|
}
|
|
244
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ExternalHttpClient, decorators: [{
|
|
245
251
|
type: Injectable,
|
|
246
252
|
args: [{
|
|
247
253
|
providedIn: 'root',
|
|
@@ -388,10 +394,10 @@ class EnvironmentService {
|
|
|
388
394
|
getIssuer$() {
|
|
389
395
|
return this.store.sliceState(state => state?.oAuthConfig?.issuer).pipe(map(mapToIssuer));
|
|
390
396
|
}
|
|
391
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
392
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
397
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EnvironmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
398
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EnvironmentService, providedIn: 'root' }); }
|
|
393
399
|
}
|
|
394
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EnvironmentService, decorators: [{
|
|
395
401
|
type: Injectable,
|
|
396
402
|
args: [{ providedIn: 'root' }]
|
|
397
403
|
}] });
|
|
@@ -400,10 +406,6 @@ class HttpErrorReporterService {
|
|
|
400
406
|
constructor() {
|
|
401
407
|
this._reporter$ = new Subject();
|
|
402
408
|
this._errors$ = new BehaviorSubject([]);
|
|
403
|
-
this.reportError = (error) => {
|
|
404
|
-
this._reporter$.next(error);
|
|
405
|
-
this._errors$.next([...this.errors, error]);
|
|
406
|
-
};
|
|
407
409
|
}
|
|
408
410
|
get reporter$() {
|
|
409
411
|
return this._reporter$.asObservable();
|
|
@@ -414,10 +416,14 @@ class HttpErrorReporterService {
|
|
|
414
416
|
get errors() {
|
|
415
417
|
return this._errors$.value;
|
|
416
418
|
}
|
|
417
|
-
|
|
418
|
-
|
|
419
|
+
reportError(error) {
|
|
420
|
+
this._reporter$.next(error);
|
|
421
|
+
this._errors$.next([...this.errors, error]);
|
|
422
|
+
}
|
|
423
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: HttpErrorReporterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
424
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: HttpErrorReporterService, providedIn: 'root' }); }
|
|
419
425
|
}
|
|
420
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: HttpErrorReporterService, decorators: [{
|
|
421
427
|
type: Injectable,
|
|
422
428
|
args: [{ providedIn: 'root' }]
|
|
423
429
|
}] });
|
|
@@ -473,18 +479,18 @@ class RestService {
|
|
|
473
479
|
removeDuplicateSlashes(url) {
|
|
474
480
|
return url.replace(/([^:]\/)\/+/g, '$1');
|
|
475
481
|
}
|
|
476
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
477
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
482
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RestService, deps: [{ token: CORE_OPTIONS }, { token: i1.HttpClient }, { token: ExternalHttpClient }, { token: EnvironmentService }, { token: HttpErrorReporterService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
483
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RestService, providedIn: 'root' }); }
|
|
478
484
|
}
|
|
479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RestService, decorators: [{
|
|
480
486
|
type: Injectable,
|
|
481
487
|
args: [{
|
|
482
488
|
providedIn: 'root',
|
|
483
489
|
}]
|
|
484
|
-
}], ctorParameters:
|
|
490
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
485
491
|
type: Inject,
|
|
486
492
|
args: [CORE_OPTIONS]
|
|
487
|
-
}] }, { type: i1.HttpClient }, { type: ExternalHttpClient }, { type: EnvironmentService }, { type: HttpErrorReporterService }]
|
|
493
|
+
}] }, { type: i1.HttpClient }, { type: ExternalHttpClient }, { type: EnvironmentService }, { type: HttpErrorReporterService }] });
|
|
488
494
|
|
|
489
495
|
class AbpApplicationConfigurationService {
|
|
490
496
|
constructor(restService) {
|
|
@@ -496,15 +502,15 @@ class AbpApplicationConfigurationService {
|
|
|
496
502
|
params: { includeLocalizationResources: options.includeLocalizationResources },
|
|
497
503
|
}, { apiName: this.apiName });
|
|
498
504
|
}
|
|
499
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
500
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
505
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpApplicationConfigurationService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
506
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpApplicationConfigurationService, providedIn: 'root' }); }
|
|
501
507
|
}
|
|
502
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpApplicationConfigurationService, decorators: [{
|
|
503
509
|
type: Injectable,
|
|
504
510
|
args: [{
|
|
505
511
|
providedIn: 'root',
|
|
506
512
|
}]
|
|
507
|
-
}], ctorParameters:
|
|
513
|
+
}], ctorParameters: () => [{ type: RestService }] });
|
|
508
514
|
|
|
509
515
|
class AbpApplicationLocalizationService {
|
|
510
516
|
constructor(restService) {
|
|
@@ -516,15 +522,15 @@ class AbpApplicationLocalizationService {
|
|
|
516
522
|
params: { cultureName: input.cultureName, onlyDynamics: input.onlyDynamics },
|
|
517
523
|
}, { apiName: this.apiName });
|
|
518
524
|
}
|
|
519
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
520
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
525
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpApplicationLocalizationService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
526
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpApplicationLocalizationService, providedIn: 'root' }); }
|
|
521
527
|
}
|
|
522
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpApplicationLocalizationService, decorators: [{
|
|
523
529
|
type: Injectable,
|
|
524
530
|
args: [{
|
|
525
531
|
providedIn: 'root',
|
|
526
532
|
}]
|
|
527
|
-
}], ctorParameters:
|
|
533
|
+
}], ctorParameters: () => [{ type: RestService }] });
|
|
528
534
|
|
|
529
535
|
const INCUDE_LOCALIZATION_RESOURCES_TOKEN = new InjectionToken('INCUDE_LOCALIZATION_RESOURCES_TOKEN');
|
|
530
536
|
|
|
@@ -675,20 +681,20 @@ class ConfigStateService {
|
|
|
675
681
|
getGlobalFeatureIsEnabled$(key) {
|
|
676
682
|
return this.store.sliceState(state => this.isGlobalFeatureEnabled(key, state.globalFeatures));
|
|
677
683
|
}
|
|
678
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
679
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
684
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ConfigStateService, deps: [{ token: AbpApplicationConfigurationService }, { token: AbpApplicationLocalizationService }, { token: INCUDE_LOCALIZATION_RESOURCES_TOKEN, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
685
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ConfigStateService, providedIn: 'root' }); }
|
|
680
686
|
}
|
|
681
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ConfigStateService, decorators: [{
|
|
682
688
|
type: Injectable,
|
|
683
689
|
args: [{
|
|
684
690
|
providedIn: 'root',
|
|
685
691
|
}]
|
|
686
|
-
}], ctorParameters:
|
|
692
|
+
}], ctorParameters: () => [{ type: AbpApplicationConfigurationService }, { type: AbpApplicationLocalizationService }, { type: undefined, decorators: [{
|
|
687
693
|
type: Optional
|
|
688
694
|
}, {
|
|
689
695
|
type: Inject,
|
|
690
696
|
args: [INCUDE_LOCALIZATION_RESOURCES_TOKEN]
|
|
691
|
-
}] }]
|
|
697
|
+
}] }] });
|
|
692
698
|
function splitKeys(keys) {
|
|
693
699
|
if (typeof keys === 'string') {
|
|
694
700
|
keys = keys.split('.');
|
|
@@ -719,15 +725,15 @@ class AbpLocalStorageService {
|
|
|
719
725
|
setItem(key, value) {
|
|
720
726
|
localStorage.setItem(key, value);
|
|
721
727
|
}
|
|
722
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
723
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
728
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpLocalStorageService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
729
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpLocalStorageService, providedIn: 'root' }); }
|
|
724
730
|
}
|
|
725
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpLocalStorageService, decorators: [{
|
|
726
732
|
type: Injectable,
|
|
727
733
|
args: [{
|
|
728
734
|
providedIn: 'root',
|
|
729
735
|
}]
|
|
730
|
-
}], ctorParameters:
|
|
736
|
+
}], ctorParameters: () => [] });
|
|
731
737
|
|
|
732
738
|
class SessionStateService {
|
|
733
739
|
constructor(configState, localStorageService) {
|
|
@@ -790,15 +796,15 @@ class SessionStateService {
|
|
|
790
796
|
this.store.patch({ language });
|
|
791
797
|
document.documentElement.setAttribute('lang', language);
|
|
792
798
|
}
|
|
793
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
794
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
799
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SessionStateService, deps: [{ token: ConfigStateService }, { token: AbpLocalStorageService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
800
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SessionStateService, providedIn: 'root' }); }
|
|
795
801
|
}
|
|
796
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SessionStateService, decorators: [{
|
|
797
803
|
type: Injectable,
|
|
798
804
|
args: [{
|
|
799
805
|
providedIn: 'root',
|
|
800
806
|
}]
|
|
801
|
-
}], ctorParameters:
|
|
807
|
+
}], ctorParameters: () => [{ type: ConfigStateService }, { type: AbpLocalStorageService }] });
|
|
802
808
|
|
|
803
809
|
class LocalizationService {
|
|
804
810
|
/**
|
|
@@ -968,17 +974,17 @@ class LocalizationService {
|
|
|
968
974
|
localization = '';
|
|
969
975
|
return localization || defaultValue || key;
|
|
970
976
|
}
|
|
971
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
972
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
977
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationService, deps: [{ token: SessionStateService }, { token: i0.Injector }, { token: LocalizationService, optional: true, skipSelf: true }, { token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
978
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationService, providedIn: 'root' }); }
|
|
973
979
|
}
|
|
974
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationService, decorators: [{
|
|
975
981
|
type: Injectable,
|
|
976
982
|
args: [{ providedIn: 'root' }]
|
|
977
|
-
}], ctorParameters:
|
|
983
|
+
}], ctorParameters: () => [{ type: SessionStateService }, { type: i0.Injector }, { type: LocalizationService, decorators: [{
|
|
978
984
|
type: Optional
|
|
979
985
|
}, {
|
|
980
986
|
type: SkipSelf
|
|
981
|
-
}] }, { type: ConfigStateService }]
|
|
987
|
+
}] }, { type: ConfigStateService }] });
|
|
982
988
|
function recursivelyMergeBaseResources(baseResourceName, source) {
|
|
983
989
|
const item = source[baseResourceName];
|
|
984
990
|
if (item.baseResources.length === 0) {
|
|
@@ -1062,13 +1068,13 @@ class ReplaceableComponentsService {
|
|
|
1062
1068
|
get$(replaceableComponentKey) {
|
|
1063
1069
|
return this.replaceableComponents$.pipe(map(components => components.find(component => component.key === replaceableComponentKey)));
|
|
1064
1070
|
}
|
|
1065
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1066
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1071
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReplaceableComponentsService, deps: [{ token: i0.NgZone }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1072
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReplaceableComponentsService, providedIn: 'root' }); }
|
|
1067
1073
|
}
|
|
1068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReplaceableComponentsService, decorators: [{
|
|
1069
1075
|
type: Injectable,
|
|
1070
1076
|
args: [{ providedIn: 'root' }]
|
|
1071
|
-
}], ctorParameters:
|
|
1077
|
+
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i1$1.Router }] });
|
|
1072
1078
|
|
|
1073
1079
|
const NavigationEvent = {
|
|
1074
1080
|
Cancel: NavigationCancel,
|
|
@@ -1095,13 +1101,13 @@ class RouterEvents {
|
|
|
1095
1101
|
const keys = Object.keys(NavigationEvent);
|
|
1096
1102
|
return this.getNavigationEvents(...keys);
|
|
1097
1103
|
}
|
|
1098
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1099
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RouterEvents, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1105
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RouterEvents, providedIn: 'root' }); }
|
|
1100
1106
|
}
|
|
1101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RouterEvents, decorators: [{
|
|
1102
1108
|
type: Injectable,
|
|
1103
1109
|
args: [{ providedIn: 'root' }]
|
|
1104
|
-
}], ctorParameters:
|
|
1110
|
+
}], ctorParameters: () => [{ type: i1$1.Router }] });
|
|
1105
1111
|
|
|
1106
1112
|
const APP_INIT_ERROR_HANDLERS = new InjectionToken('APP_INIT_ERROR_HANDLERS');
|
|
1107
1113
|
|
|
@@ -1258,13 +1264,13 @@ class PermissionService {
|
|
|
1258
1264
|
getPolicy(key, grantedPolicies) {
|
|
1259
1265
|
return grantedPolicies[key] || false;
|
|
1260
1266
|
}
|
|
1261
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1262
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1267
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PermissionService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1268
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PermissionService, providedIn: 'root' }); }
|
|
1263
1269
|
}
|
|
1264
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PermissionService, decorators: [{
|
|
1265
1271
|
type: Injectable,
|
|
1266
1272
|
args: [{ providedIn: 'root' }]
|
|
1267
|
-
}], ctorParameters:
|
|
1273
|
+
}], ctorParameters: () => [{ type: ConfigStateService }] });
|
|
1268
1274
|
|
|
1269
1275
|
class ContentProjectionService {
|
|
1270
1276
|
constructor(injector) {
|
|
@@ -1273,13 +1279,13 @@ class ContentProjectionService {
|
|
|
1273
1279
|
projectContent(projectionStrategy, injector = this.injector) {
|
|
1274
1280
|
return projectionStrategy.injectContent(injector);
|
|
1275
1281
|
}
|
|
1276
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1277
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1282
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ContentProjectionService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1283
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ContentProjectionService, providedIn: 'root' }); }
|
|
1278
1284
|
}
|
|
1279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ContentProjectionService, decorators: [{
|
|
1280
1286
|
type: Injectable,
|
|
1281
1287
|
args: [{ providedIn: 'root' }]
|
|
1282
|
-
}], ctorParameters:
|
|
1288
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
1283
1289
|
|
|
1284
1290
|
function getShortDateFormat(configStateService) {
|
|
1285
1291
|
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
@@ -1442,15 +1448,15 @@ class AbpTenantService {
|
|
|
1442
1448
|
url: `/api/abp/multi-tenancy/tenants/by-name/${name}`,
|
|
1443
1449
|
}, { apiName: this.apiName });
|
|
1444
1450
|
}
|
|
1445
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1446
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1451
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpTenantService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1452
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpTenantService, providedIn: 'root' }); }
|
|
1447
1453
|
}
|
|
1448
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1454
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpTenantService, decorators: [{
|
|
1449
1455
|
type: Injectable,
|
|
1450
1456
|
args: [{
|
|
1451
1457
|
providedIn: 'root',
|
|
1452
1458
|
}]
|
|
1453
|
-
}], ctorParameters:
|
|
1459
|
+
}], ctorParameters: () => [{ type: RestService }] });
|
|
1454
1460
|
|
|
1455
1461
|
class MultiTenancyService {
|
|
1456
1462
|
constructor(restService, sessionState, tenantService, configStateService, tenantKey) {
|
|
@@ -1477,16 +1483,16 @@ class MultiTenancyService {
|
|
|
1477
1483
|
.findTenantById(tenantId)
|
|
1478
1484
|
.pipe(switchMap(this.setTenantToState));
|
|
1479
1485
|
}
|
|
1480
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1481
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1486
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: MultiTenancyService, deps: [{ token: RestService }, { token: SessionStateService }, { token: AbpTenantService }, { token: ConfigStateService }, { token: TENANT_KEY }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1487
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: MultiTenancyService, providedIn: 'root' }); }
|
|
1482
1488
|
}
|
|
1483
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: MultiTenancyService, decorators: [{
|
|
1484
1490
|
type: Injectable,
|
|
1485
1491
|
args: [{ providedIn: 'root' }]
|
|
1486
|
-
}], ctorParameters:
|
|
1492
|
+
}], ctorParameters: () => [{ type: RestService }, { type: SessionStateService }, { type: AbpTenantService }, { type: ConfigStateService }, { type: undefined, decorators: [{
|
|
1487
1493
|
type: Inject,
|
|
1488
1494
|
args: [TENANT_KEY]
|
|
1489
|
-
}] }]
|
|
1495
|
+
}] }] });
|
|
1490
1496
|
|
|
1491
1497
|
const tenancyPlaceholder = '{0}';
|
|
1492
1498
|
function getCurrentTenancyName(appBaseUrl) {
|
|
@@ -1777,10 +1783,10 @@ class DomInsertionService {
|
|
|
1777
1783
|
const hash = generateHash(content);
|
|
1778
1784
|
return this.inserted.has(hash);
|
|
1779
1785
|
}
|
|
1780
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1781
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1786
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: DomInsertionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1787
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: DomInsertionService, providedIn: 'root' }); }
|
|
1782
1788
|
}
|
|
1783
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: DomInsertionService, decorators: [{
|
|
1784
1790
|
type: Injectable,
|
|
1785
1791
|
args: [{ providedIn: 'root' }]
|
|
1786
1792
|
}] });
|
|
@@ -1843,15 +1849,15 @@ class HttpWaitService {
|
|
|
1843
1849
|
const { method, endpoint } = filteredRequest;
|
|
1844
1850
|
return endpoint === request.endpoint && method === request.method;
|
|
1845
1851
|
}
|
|
1846
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1847
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1852
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: HttpWaitService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1853
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: HttpWaitService, providedIn: 'root' }); }
|
|
1848
1854
|
}
|
|
1849
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: HttpWaitService, decorators: [{
|
|
1850
1856
|
type: Injectable,
|
|
1851
1857
|
args: [{
|
|
1852
1858
|
providedIn: 'root',
|
|
1853
1859
|
}]
|
|
1854
|
-
}], ctorParameters:
|
|
1860
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
1855
1861
|
|
|
1856
1862
|
class ResourceWaitService {
|
|
1857
1863
|
constructor() {
|
|
@@ -1879,10 +1885,10 @@ class ResourceWaitService {
|
|
|
1879
1885
|
resources.delete(resource);
|
|
1880
1886
|
this.store.patch({ resources });
|
|
1881
1887
|
}
|
|
1882
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1883
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1888
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ResourceWaitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1889
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ResourceWaitService, providedIn: 'root' }); }
|
|
1884
1890
|
}
|
|
1885
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ResourceWaitService, decorators: [{
|
|
1886
1892
|
type: Injectable,
|
|
1887
1893
|
args: [{
|
|
1888
1894
|
providedIn: 'root',
|
|
@@ -1913,15 +1919,15 @@ class LazyLoadService {
|
|
|
1913
1919
|
this.loaded.delete(path);
|
|
1914
1920
|
return true;
|
|
1915
1921
|
}
|
|
1916
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1917
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1922
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LazyLoadService, deps: [{ token: ResourceWaitService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1923
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LazyLoadService, providedIn: 'root' }); }
|
|
1918
1924
|
}
|
|
1919
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LazyLoadService, decorators: [{
|
|
1920
1926
|
type: Injectable,
|
|
1921
1927
|
args: [{
|
|
1922
1928
|
providedIn: 'root',
|
|
1923
1929
|
}]
|
|
1924
|
-
}], ctorParameters:
|
|
1930
|
+
}], ctorParameters: () => [{ type: ResourceWaitService }] });
|
|
1925
1931
|
|
|
1926
1932
|
class ListService {
|
|
1927
1933
|
set filter(value) {
|
|
@@ -2026,12 +2032,12 @@ class ListService {
|
|
|
2026
2032
|
sorting: this._sortOrder ? `${this._sortKey} ${this._sortOrder}` : undefined,
|
|
2027
2033
|
});
|
|
2028
2034
|
}
|
|
2029
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2030
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2035
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ListService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2036
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ListService }); }
|
|
2031
2037
|
}
|
|
2032
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ListService, decorators: [{
|
|
2033
2039
|
type: Injectable
|
|
2034
|
-
}], ctorParameters:
|
|
2040
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
2035
2041
|
|
|
2036
2042
|
class RouterWaitService {
|
|
2037
2043
|
constructor(routerEvents, injector) {
|
|
@@ -2065,15 +2071,15 @@ class RouterWaitService {
|
|
|
2065
2071
|
setLoading(loading) {
|
|
2066
2072
|
this.store.patch({ loading });
|
|
2067
2073
|
}
|
|
2068
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2069
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2074
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RouterWaitService, deps: [{ token: RouterEvents }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2075
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RouterWaitService, providedIn: 'root' }); }
|
|
2070
2076
|
}
|
|
2071
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2077
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RouterWaitService, decorators: [{
|
|
2072
2078
|
type: Injectable,
|
|
2073
2079
|
args: [{
|
|
2074
2080
|
providedIn: 'root',
|
|
2075
2081
|
}]
|
|
2076
|
-
}], ctorParameters:
|
|
2082
|
+
}], ctorParameters: () => [{ type: RouterEvents }, { type: i0.Injector }] });
|
|
2077
2083
|
|
|
2078
2084
|
class SubscriptionService {
|
|
2079
2085
|
constructor() {
|
|
@@ -2108,10 +2114,10 @@ class SubscriptionService {
|
|
|
2108
2114
|
this.subscription.unsubscribe();
|
|
2109
2115
|
this.subscription = new Subscription();
|
|
2110
2116
|
}
|
|
2111
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2112
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2117
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SubscriptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2118
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SubscriptionService }); }
|
|
2113
2119
|
}
|
|
2114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
2115
2121
|
type: Injectable
|
|
2116
2122
|
}] });
|
|
2117
2123
|
|
|
@@ -2124,10 +2130,10 @@ class TrackByService {
|
|
|
2124
2130
|
this.by = trackBy;
|
|
2125
2131
|
this.byDeep = trackByDeep;
|
|
2126
2132
|
}
|
|
2127
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2128
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2133
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TrackByService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2134
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TrackByService, providedIn: 'root' }); }
|
|
2129
2135
|
}
|
|
2130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TrackByService, decorators: [{
|
|
2131
2137
|
type: Injectable,
|
|
2132
2138
|
args: [{
|
|
2133
2139
|
providedIn: 'root',
|
|
@@ -2136,7 +2142,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2136
2142
|
|
|
2137
2143
|
class AbpWindowService {
|
|
2138
2144
|
constructor() {
|
|
2139
|
-
this.
|
|
2145
|
+
this.document = inject(DOCUMENT);
|
|
2146
|
+
this.window = this.document.defaultView;
|
|
2140
2147
|
this.navigator = this.window.navigator;
|
|
2141
2148
|
}
|
|
2142
2149
|
copyToClipboard(text) {
|
|
@@ -2148,10 +2155,25 @@ class AbpWindowService {
|
|
|
2148
2155
|
reloadPage() {
|
|
2149
2156
|
this.window.location.reload();
|
|
2150
2157
|
}
|
|
2151
|
-
|
|
2152
|
-
|
|
2158
|
+
downloadBlob(blob, fileName) {
|
|
2159
|
+
const blobUrl = this.window.URL.createObjectURL(blob);
|
|
2160
|
+
const a = this.document.createElement('a');
|
|
2161
|
+
a.style.display = 'none';
|
|
2162
|
+
a.href = blobUrl;
|
|
2163
|
+
a.download = fileName;
|
|
2164
|
+
this.document.body.appendChild(a);
|
|
2165
|
+
a.dispatchEvent(new MouseEvent('click', {
|
|
2166
|
+
bubbles: true,
|
|
2167
|
+
cancelable: true,
|
|
2168
|
+
view: this.window,
|
|
2169
|
+
}));
|
|
2170
|
+
this.window.URL.revokeObjectURL(blobUrl);
|
|
2171
|
+
this.document.body.removeChild(a);
|
|
2172
|
+
}
|
|
2173
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpWindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2174
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpWindowService, providedIn: 'root' }); }
|
|
2153
2175
|
}
|
|
2154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpWindowService, decorators: [{
|
|
2155
2177
|
type: Injectable,
|
|
2156
2178
|
args: [{ providedIn: 'root' }]
|
|
2157
2179
|
}] });
|
|
@@ -2174,15 +2196,15 @@ class InternetConnectionService {
|
|
|
2174
2196
|
get networkStatus$() {
|
|
2175
2197
|
return this.status$.asObservable();
|
|
2176
2198
|
}
|
|
2177
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2178
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2199
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: InternetConnectionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2200
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: InternetConnectionService, providedIn: 'root' }); }
|
|
2179
2201
|
}
|
|
2180
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: InternetConnectionService, decorators: [{
|
|
2181
2203
|
type: Injectable,
|
|
2182
2204
|
args: [{
|
|
2183
2205
|
providedIn: 'root',
|
|
2184
2206
|
}]
|
|
2185
|
-
}], ctorParameters:
|
|
2207
|
+
}], ctorParameters: () => [] });
|
|
2186
2208
|
|
|
2187
2209
|
const SORT_COMPARE_FUNC = new InjectionToken('SORT_COMPARE_FUNC');
|
|
2188
2210
|
function compareFuncFactory() {
|
|
@@ -2337,12 +2359,12 @@ class AbstractNavTreeService extends AbstractTreeService {
|
|
|
2337
2359
|
ngOnDestroy() {
|
|
2338
2360
|
this.subscription.unsubscribe();
|
|
2339
2361
|
}
|
|
2340
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2341
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2362
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbstractNavTreeService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2363
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbstractNavTreeService }); }
|
|
2342
2364
|
}
|
|
2343
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbstractNavTreeService, decorators: [{
|
|
2344
2366
|
type: Injectable
|
|
2345
|
-
}], ctorParameters:
|
|
2367
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
2346
2368
|
class RoutesService extends AbstractNavTreeService {
|
|
2347
2369
|
hasPathOrChild(item) {
|
|
2348
2370
|
return Boolean(item.path) || this.hasChildren(item.name);
|
|
@@ -2353,10 +2375,10 @@ class RoutesService extends AbstractNavTreeService {
|
|
|
2353
2375
|
get groupedVisible$() {
|
|
2354
2376
|
return this.visible$.pipe(map$1(items => items.filter(item => this.hasPathOrChild(item))), map$1(visible => this.createGroupedTree(visible)));
|
|
2355
2377
|
}
|
|
2356
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2357
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2378
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RoutesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2379
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RoutesService, providedIn: 'root' }); }
|
|
2358
2380
|
}
|
|
2359
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RoutesService, decorators: [{
|
|
2360
2382
|
type: Injectable,
|
|
2361
2383
|
args: [{ providedIn: 'root' }]
|
|
2362
2384
|
}] });
|
|
@@ -2437,21 +2459,21 @@ class DynamicLayoutComponent {
|
|
|
2437
2459
|
getComponent(key) {
|
|
2438
2460
|
return this.replaceableComponents.get(key);
|
|
2439
2461
|
}
|
|
2440
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2441
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2462
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: DynamicLayoutComponent, deps: [{ token: i0.Injector }, { token: LocalizationService }, { token: ReplaceableComponentsService }, { token: SubscriptionService }, { token: RouterEvents }, { token: DynamicLayoutComponent, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2463
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: DynamicLayoutComponent, selector: "abp-dynamic-layout", providers: [SubscriptionService], ngImport: i0, template: ` <ng-container *ngIf="isLayoutVisible" [ngComponentOutlet]="layout"></ng-container> `, isInline: true, dependencies: [{ kind: "directive", type: i5.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }, { kind: "directive", type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
2442
2464
|
}
|
|
2443
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: DynamicLayoutComponent, decorators: [{
|
|
2444
2466
|
type: Component,
|
|
2445
2467
|
args: [{
|
|
2446
2468
|
selector: 'abp-dynamic-layout',
|
|
2447
2469
|
template: ` <ng-container *ngIf="isLayoutVisible" [ngComponentOutlet]="layout"></ng-container> `,
|
|
2448
2470
|
providers: [SubscriptionService],
|
|
2449
2471
|
}]
|
|
2450
|
-
}], ctorParameters:
|
|
2472
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: LocalizationService }, { type: ReplaceableComponentsService }, { type: SubscriptionService }, { type: RouterEvents }, { type: DynamicLayoutComponent, decorators: [{
|
|
2451
2473
|
type: Optional
|
|
2452
2474
|
}, {
|
|
2453
2475
|
type: SkipSelf
|
|
2454
|
-
}] }]
|
|
2476
|
+
}] }] });
|
|
2455
2477
|
|
|
2456
2478
|
class ReplaceableRouteContainerComponent {
|
|
2457
2479
|
constructor(route, replaceableComponents, subscription) {
|
|
@@ -2469,12 +2491,12 @@ class ReplaceableRouteContainerComponent {
|
|
|
2469
2491
|
this.externalComponent = res.component;
|
|
2470
2492
|
});
|
|
2471
2493
|
}
|
|
2472
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2473
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2494
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReplaceableRouteContainerComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2495
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: ReplaceableRouteContainerComponent, selector: "abp-replaceable-route-container", providers: [SubscriptionService], ngImport: i0, template: `
|
|
2474
2496
|
<ng-container *ngComponentOutlet="externalComponent || defaultComponent"></ng-container>
|
|
2475
2497
|
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }] }); }
|
|
2476
2498
|
}
|
|
2477
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReplaceableRouteContainerComponent, decorators: [{
|
|
2478
2500
|
type: Component,
|
|
2479
2501
|
args: [{
|
|
2480
2502
|
selector: 'abp-replaceable-route-container',
|
|
@@ -2483,13 +2505,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
2483
2505
|
`,
|
|
2484
2506
|
providers: [SubscriptionService],
|
|
2485
2507
|
}]
|
|
2486
|
-
}], ctorParameters:
|
|
2508
|
+
}], ctorParameters: () => [{ type: i1$1.ActivatedRoute }, { type: ReplaceableComponentsService }, { type: SubscriptionService }] });
|
|
2487
2509
|
|
|
2488
2510
|
class RouterOutletComponent {
|
|
2489
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2490
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2511
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
2512
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "17.0.4", type: RouterOutletComponent, selector: "abp-router-outlet", ngImport: i0, template: ` <router-outlet></router-outlet> `, isInline: true, dependencies: [{ kind: "directive", type: i1$1.RouterOutlet, selector: "router-outlet", inputs: ["name"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] }); }
|
|
2491
2513
|
}
|
|
2492
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RouterOutletComponent, decorators: [{
|
|
2493
2515
|
type: Component,
|
|
2494
2516
|
args: [{
|
|
2495
2517
|
selector: 'abp-router-outlet',
|
|
@@ -2848,16 +2870,16 @@ class AutofocusDirective {
|
|
|
2848
2870
|
ngAfterViewInit() {
|
|
2849
2871
|
setTimeout(() => this.elRef.nativeElement.focus(), this.delay);
|
|
2850
2872
|
}
|
|
2851
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2852
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2873
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2874
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: AutofocusDirective, selector: "[autofocus]", inputs: { delay: ["autofocus", "delay"] }, ngImport: i0 }); }
|
|
2853
2875
|
}
|
|
2854
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2876
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AutofocusDirective, decorators: [{
|
|
2855
2877
|
type: Directive,
|
|
2856
2878
|
args: [{
|
|
2857
2879
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
2858
2880
|
selector: '[autofocus]',
|
|
2859
2881
|
}]
|
|
2860
|
-
}], ctorParameters:
|
|
2882
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { delay: [{
|
|
2861
2883
|
type: Input,
|
|
2862
2884
|
args: ['autofocus']
|
|
2863
2885
|
}] } });
|
|
@@ -2875,17 +2897,17 @@ class InputEventDebounceDirective {
|
|
|
2875
2897
|
this.debounceEvent.emit(event);
|
|
2876
2898
|
});
|
|
2877
2899
|
}
|
|
2878
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2879
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2900
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: InputEventDebounceDirective, deps: [{ token: i0.ElementRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
2901
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: InputEventDebounceDirective, selector: "[input.debounce]", inputs: { debounce: "debounce" }, outputs: { debounceEvent: "input.debounce" }, providers: [SubscriptionService], ngImport: i0 }); }
|
|
2880
2902
|
}
|
|
2881
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: InputEventDebounceDirective, decorators: [{
|
|
2882
2904
|
type: Directive,
|
|
2883
2905
|
args: [{
|
|
2884
2906
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
2885
2907
|
selector: '[input.debounce]',
|
|
2886
2908
|
providers: [SubscriptionService],
|
|
2887
2909
|
}]
|
|
2888
|
-
}], ctorParameters:
|
|
2910
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: SubscriptionService }], propDecorators: { debounce: [{
|
|
2889
2911
|
type: Input
|
|
2890
2912
|
}], debounceEvent: [{
|
|
2891
2913
|
type: Output,
|
|
@@ -3013,15 +3035,15 @@ class ForDirective {
|
|
|
3013
3035
|
this.projectItems(items);
|
|
3014
3036
|
}
|
|
3015
3037
|
}
|
|
3016
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3017
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3038
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ForDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3039
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: ForDirective, selector: "[abpFor]", inputs: { items: ["abpForOf", "items"], orderBy: ["abpForOrderBy", "orderBy"], orderDir: ["abpForOrderDir", "orderDir"], filterBy: ["abpForFilterBy", "filterBy"], filterVal: ["abpForFilterVal", "filterVal"], trackBy: ["abpForTrackBy", "trackBy"], compareBy: ["abpForCompareBy", "compareBy"], emptyRef: ["abpForEmptyRef", "emptyRef"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
3018
3040
|
}
|
|
3019
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ForDirective, decorators: [{
|
|
3020
3042
|
type: Directive,
|
|
3021
3043
|
args: [{
|
|
3022
3044
|
selector: '[abpFor]',
|
|
3023
3045
|
}]
|
|
3024
|
-
}], ctorParameters:
|
|
3046
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.IterableDiffers }], propDecorators: { items: [{
|
|
3025
3047
|
type: Input,
|
|
3026
3048
|
args: ['abpForOf']
|
|
3027
3049
|
}], orderBy: [{
|
|
@@ -3082,19 +3104,19 @@ class FormSubmitDirective {
|
|
|
3082
3104
|
form.markAsDirty();
|
|
3083
3105
|
this.cdRef.detectChanges();
|
|
3084
3106
|
}
|
|
3085
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3086
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3107
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: FormSubmitDirective, deps: [{ token: i1$2.FormGroupDirective, self: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3108
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: { debounce: "debounce", notValidateOnSubmit: "notValidateOnSubmit", markAsDirtyWhenSubmit: "markAsDirtyWhenSubmit" }, outputs: { ngSubmit: "ngSubmit" }, providers: [SubscriptionService], ngImport: i0 }); }
|
|
3087
3109
|
}
|
|
3088
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: FormSubmitDirective, decorators: [{
|
|
3089
3111
|
type: Directive,
|
|
3090
3112
|
args: [{
|
|
3091
3113
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
3092
3114
|
selector: 'form[ngSubmit][formGroup]',
|
|
3093
3115
|
providers: [SubscriptionService],
|
|
3094
3116
|
}]
|
|
3095
|
-
}], ctorParameters:
|
|
3117
|
+
}], ctorParameters: () => [{ type: i1$2.FormGroupDirective, decorators: [{
|
|
3096
3118
|
type: Self
|
|
3097
|
-
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: SubscriptionService }]
|
|
3119
|
+
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: SubscriptionService }], propDecorators: { debounce: [{
|
|
3098
3120
|
type: Input
|
|
3099
3121
|
}], notValidateOnSubmit: [{
|
|
3100
3122
|
type: Input
|
|
@@ -3124,13 +3146,13 @@ class InitDirective {
|
|
|
3124
3146
|
ngAfterViewInit() {
|
|
3125
3147
|
this.init.emit(this.elRef);
|
|
3126
3148
|
}
|
|
3127
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3128
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3149
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: InitDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3150
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: InitDirective, selector: "[abpInit]", outputs: { init: "abpInit" }, ngImport: i0 }); }
|
|
3129
3151
|
}
|
|
3130
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: InitDirective, decorators: [{
|
|
3131
3153
|
type: Directive,
|
|
3132
3154
|
args: [{ selector: '[abpInit]' }]
|
|
3133
|
-
}], ctorParameters:
|
|
3155
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { init: [{
|
|
3134
3156
|
type: Output,
|
|
3135
3157
|
args: ['abpInit']
|
|
3136
3158
|
}] } });
|
|
@@ -3181,20 +3203,20 @@ class PermissionDirective {
|
|
|
3181
3203
|
this.cdrSubject.pipe(take(1)).subscribe(() => this.queue.add(() => this.cdRef.detectChanges()));
|
|
3182
3204
|
this.rendered = true;
|
|
3183
3205
|
}
|
|
3184
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3185
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3206
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PermissionDirective, deps: [{ token: i0.TemplateRef, optional: true }, { token: i0.ViewContainerRef }, { token: PermissionService }, { token: i0.ChangeDetectorRef }, { token: QUEUE_MANAGER }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3207
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: PermissionDirective, selector: "[abpPermission]", inputs: { condition: ["abpPermission", "condition"], runChangeDetection: ["abpPermissionRunChangeDetection", "runChangeDetection"] }, usesOnChanges: true, ngImport: i0 }); }
|
|
3186
3208
|
}
|
|
3187
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PermissionDirective, decorators: [{
|
|
3188
3210
|
type: Directive,
|
|
3189
3211
|
args: [{
|
|
3190
3212
|
selector: '[abpPermission]',
|
|
3191
3213
|
}]
|
|
3192
|
-
}], ctorParameters:
|
|
3214
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
3193
3215
|
type: Optional
|
|
3194
3216
|
}] }, { type: i0.ViewContainerRef }, { type: PermissionService }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
3195
3217
|
type: Inject,
|
|
3196
3218
|
args: [QUEUE_MANAGER]
|
|
3197
|
-
}] }]
|
|
3219
|
+
}] }], propDecorators: { condition: [{
|
|
3198
3220
|
type: Input,
|
|
3199
3221
|
args: ['abpPermission']
|
|
3200
3222
|
}], runChangeDetection: [{
|
|
@@ -3312,16 +3334,16 @@ class ReplaceableTemplateDirective {
|
|
|
3312
3334
|
this.defaultComponentSubscriptions = {};
|
|
3313
3335
|
this.defaultComponentRef = null;
|
|
3314
3336
|
}
|
|
3315
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3316
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3337
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReplaceableTemplateDirective, deps: [{ token: i0.Injector }, { token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3338
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: { data: ["abpReplaceableTemplate", "data"] }, providers: [SubscriptionService], usesOnChanges: true, ngImport: i0 }); }
|
|
3317
3339
|
}
|
|
3318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReplaceableTemplateDirective, decorators: [{
|
|
3319
3341
|
type: Directive,
|
|
3320
3342
|
args: [{
|
|
3321
3343
|
selector: '[abpReplaceableTemplate]',
|
|
3322
3344
|
providers: [SubscriptionService],
|
|
3323
3345
|
}]
|
|
3324
|
-
}], ctorParameters:
|
|
3346
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: ReplaceableComponentsService }, { type: SubscriptionService }], propDecorators: { data: [{
|
|
3325
3347
|
type: Input,
|
|
3326
3348
|
args: ['abpReplaceableTemplate']
|
|
3327
3349
|
}] } });
|
|
@@ -3338,17 +3360,17 @@ class StopPropagationDirective {
|
|
|
3338
3360
|
this.stopPropEvent.emit(event);
|
|
3339
3361
|
});
|
|
3340
3362
|
}
|
|
3341
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3342
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3363
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: StopPropagationDirective, deps: [{ token: i0.ElementRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3364
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: StopPropagationDirective, selector: "[click.stop]", outputs: { stopPropEvent: "click.stop" }, providers: [SubscriptionService], ngImport: i0 }); }
|
|
3343
3365
|
}
|
|
3344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: StopPropagationDirective, decorators: [{
|
|
3345
3367
|
type: Directive,
|
|
3346
3368
|
args: [{
|
|
3347
3369
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
3348
3370
|
selector: '[click.stop]',
|
|
3349
3371
|
providers: [SubscriptionService],
|
|
3350
3372
|
}]
|
|
3351
|
-
}], ctorParameters:
|
|
3373
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: SubscriptionService }], propDecorators: { stopPropEvent: [{
|
|
3352
3374
|
type: Output,
|
|
3353
3375
|
args: ['click.stop']
|
|
3354
3376
|
}] } });
|
|
@@ -3373,17 +3395,17 @@ class RoutesHandler {
|
|
|
3373
3395
|
}
|
|
3374
3396
|
});
|
|
3375
3397
|
}
|
|
3376
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3377
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3398
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RoutesHandler, deps: [{ token: RoutesService }, { token: i1$1.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3399
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RoutesHandler, providedIn: 'root' }); }
|
|
3378
3400
|
}
|
|
3379
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RoutesHandler, decorators: [{
|
|
3380
3402
|
type: Injectable,
|
|
3381
3403
|
args: [{
|
|
3382
3404
|
providedIn: 'root',
|
|
3383
3405
|
}]
|
|
3384
|
-
}], ctorParameters:
|
|
3406
|
+
}], ctorParameters: () => [{ type: RoutesService }, { type: i1$1.Router, decorators: [{
|
|
3385
3407
|
type: Optional
|
|
3386
|
-
}] }]
|
|
3408
|
+
}] }] });
|
|
3387
3409
|
function flatRoutes(routes, parent) {
|
|
3388
3410
|
if (!routes)
|
|
3389
3411
|
return [];
|
|
@@ -3414,25 +3436,25 @@ class LocalizationPipe {
|
|
|
3414
3436
|
}, []) || [];
|
|
3415
3437
|
return this.localization.instant(value, ...params);
|
|
3416
3438
|
}
|
|
3417
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3418
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3419
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3439
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationPipe, deps: [{ token: LocalizationService }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3440
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: LocalizationPipe, name: "abpLocalization" }); }
|
|
3441
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationPipe }); }
|
|
3420
3442
|
}
|
|
3421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationPipe, decorators: [{
|
|
3422
3444
|
type: Injectable
|
|
3423
3445
|
}, {
|
|
3424
3446
|
type: Pipe,
|
|
3425
3447
|
args: [{
|
|
3426
3448
|
name: 'abpLocalization',
|
|
3427
3449
|
}]
|
|
3428
|
-
}], ctorParameters:
|
|
3450
|
+
}], ctorParameters: () => [{ type: LocalizationService }] });
|
|
3429
3451
|
|
|
3430
3452
|
class LocalizationModule {
|
|
3431
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3432
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3433
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3453
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3454
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: LocalizationModule, declarations: [LocalizationPipe], exports: [LocalizationPipe] }); }
|
|
3455
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationModule }); }
|
|
3434
3456
|
}
|
|
3435
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationModule, decorators: [{
|
|
3436
3458
|
type: NgModule,
|
|
3437
3459
|
args: [{
|
|
3438
3460
|
exports: [LocalizationPipe],
|
|
@@ -3474,11 +3496,11 @@ class SortPipe {
|
|
|
3474
3496
|
];
|
|
3475
3497
|
return sortOrder === 'asc' ? sorted : sorted.reverse();
|
|
3476
3498
|
}
|
|
3477
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3478
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3479
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3499
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3500
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: SortPipe, name: "abpSort" }); }
|
|
3501
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SortPipe }); }
|
|
3480
3502
|
}
|
|
3481
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SortPipe, decorators: [{
|
|
3482
3504
|
type: Injectable
|
|
3483
3505
|
}, {
|
|
3484
3506
|
type: Pipe,
|
|
@@ -3504,15 +3526,15 @@ class ToInjectorPipe {
|
|
|
3504
3526
|
name,
|
|
3505
3527
|
});
|
|
3506
3528
|
}
|
|
3507
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3508
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3529
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ToInjectorPipe, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3530
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: ToInjectorPipe, name: "toInjector" }); }
|
|
3509
3531
|
}
|
|
3510
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3532
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ToInjectorPipe, decorators: [{
|
|
3511
3533
|
type: Pipe,
|
|
3512
3534
|
args: [{
|
|
3513
3535
|
name: 'toInjector',
|
|
3514
3536
|
}]
|
|
3515
|
-
}], ctorParameters:
|
|
3537
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
3516
3538
|
|
|
3517
3539
|
function setLanguageToCookie(injector) {
|
|
3518
3540
|
return () => {
|
|
@@ -3568,16 +3590,16 @@ class ShortDateTimePipe extends DatePipe {
|
|
|
3568
3590
|
const format = getShortDateShortTimeFormat(this.configStateService);
|
|
3569
3591
|
return super.transform(value, format, timezone, locale);
|
|
3570
3592
|
}
|
|
3571
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3572
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3593
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ShortDateTimePipe, deps: [{ token: ConfigStateService }, { token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3594
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: ShortDateTimePipe, name: "shortDateTime" }); }
|
|
3573
3595
|
}
|
|
3574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ShortDateTimePipe, decorators: [{
|
|
3575
3597
|
type: Pipe,
|
|
3576
3598
|
args: [{
|
|
3577
3599
|
name: 'shortDateTime',
|
|
3578
3600
|
pure: true,
|
|
3579
3601
|
}]
|
|
3580
|
-
}], ctorParameters:
|
|
3602
|
+
}], ctorParameters: () => [{ type: ConfigStateService }, { type: undefined, decorators: [{
|
|
3581
3603
|
type: Inject,
|
|
3582
3604
|
args: [LOCALE_ID]
|
|
3583
3605
|
}] }, { type: undefined, decorators: [{
|
|
@@ -3585,7 +3607,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3585
3607
|
args: [DATE_PIPE_DEFAULT_TIMEZONE]
|
|
3586
3608
|
}, {
|
|
3587
3609
|
type: Optional
|
|
3588
|
-
}] }]
|
|
3610
|
+
}] }] });
|
|
3589
3611
|
|
|
3590
3612
|
class ShortTimePipe extends DatePipe {
|
|
3591
3613
|
constructor(configStateService, locale, defaultTimezone) {
|
|
@@ -3596,16 +3618,16 @@ class ShortTimePipe extends DatePipe {
|
|
|
3596
3618
|
const format = getShortTimeFormat(this.configStateService);
|
|
3597
3619
|
return super.transform(value, format, timezone, locale);
|
|
3598
3620
|
}
|
|
3599
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3600
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3621
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ShortTimePipe, deps: [{ token: ConfigStateService }, { token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3622
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: ShortTimePipe, name: "shortTime" }); }
|
|
3601
3623
|
}
|
|
3602
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3624
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ShortTimePipe, decorators: [{
|
|
3603
3625
|
type: Pipe,
|
|
3604
3626
|
args: [{
|
|
3605
3627
|
name: 'shortTime',
|
|
3606
3628
|
pure: true,
|
|
3607
3629
|
}]
|
|
3608
|
-
}], ctorParameters:
|
|
3630
|
+
}], ctorParameters: () => [{ type: ConfigStateService }, { type: undefined, decorators: [{
|
|
3609
3631
|
type: Inject,
|
|
3610
3632
|
args: [LOCALE_ID]
|
|
3611
3633
|
}] }, { type: undefined, decorators: [{
|
|
@@ -3613,7 +3635,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3613
3635
|
args: [DATE_PIPE_DEFAULT_TIMEZONE]
|
|
3614
3636
|
}, {
|
|
3615
3637
|
type: Optional
|
|
3616
|
-
}] }]
|
|
3638
|
+
}] }] });
|
|
3617
3639
|
|
|
3618
3640
|
class ShortDatePipe extends DatePipe {
|
|
3619
3641
|
constructor(configStateService, locale, defaultTimezone) {
|
|
@@ -3624,16 +3646,16 @@ class ShortDatePipe extends DatePipe {
|
|
|
3624
3646
|
const format = getShortDateFormat(this.configStateService);
|
|
3625
3647
|
return super.transform(value, format, timezone, locale);
|
|
3626
3648
|
}
|
|
3627
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3628
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3649
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ShortDatePipe, deps: [{ token: ConfigStateService }, { token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3650
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: ShortDatePipe, name: "shortDate" }); }
|
|
3629
3651
|
}
|
|
3630
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ShortDatePipe, decorators: [{
|
|
3631
3653
|
type: Pipe,
|
|
3632
3654
|
args: [{
|
|
3633
3655
|
name: 'shortDate',
|
|
3634
3656
|
pure: true,
|
|
3635
3657
|
}]
|
|
3636
|
-
}], ctorParameters:
|
|
3658
|
+
}], ctorParameters: () => [{ type: ConfigStateService }, { type: undefined, decorators: [{
|
|
3637
3659
|
type: Inject,
|
|
3638
3660
|
args: [LOCALE_ID]
|
|
3639
3661
|
}] }, { type: undefined, decorators: [{
|
|
@@ -3641,7 +3663,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3641
3663
|
args: [DATE_PIPE_DEFAULT_TIMEZONE]
|
|
3642
3664
|
}, {
|
|
3643
3665
|
type: Optional
|
|
3644
|
-
}] }]
|
|
3666
|
+
}] }] });
|
|
3645
3667
|
|
|
3646
3668
|
class SafeHtmlPipe {
|
|
3647
3669
|
constructor() {
|
|
@@ -3652,11 +3674,11 @@ class SafeHtmlPipe {
|
|
|
3652
3674
|
return '';
|
|
3653
3675
|
return this.sanitizer.sanitize(SecurityContext.HTML, value);
|
|
3654
3676
|
}
|
|
3655
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3656
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3657
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3677
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SafeHtmlPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
3678
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: SafeHtmlPipe, name: "abpSafeHtml" }); }
|
|
3679
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SafeHtmlPipe }); }
|
|
3658
3680
|
}
|
|
3659
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
3660
3682
|
type: Injectable
|
|
3661
3683
|
}, {
|
|
3662
3684
|
type: Pipe,
|
|
@@ -3675,8 +3697,8 @@ const IncludeLocalizationResourcesProvider = {
|
|
|
3675
3697
|
* This module will be imported and exported by all others.
|
|
3676
3698
|
*/
|
|
3677
3699
|
class BaseCoreModule {
|
|
3678
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3679
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3700
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: BaseCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3701
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: BaseCoreModule, declarations: [AbstractNgModelComponent,
|
|
3680
3702
|
AutofocusDirective,
|
|
3681
3703
|
DynamicLayoutComponent,
|
|
3682
3704
|
ForDirective,
|
|
@@ -3722,7 +3744,7 @@ class BaseCoreModule {
|
|
|
3722
3744
|
ShortDateTimePipe,
|
|
3723
3745
|
ShortTimePipe,
|
|
3724
3746
|
ShortDatePipe] }); }
|
|
3725
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3747
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: BaseCoreModule, providers: [LocalizationPipe], imports: [CommonModule,
|
|
3726
3748
|
HttpClientModule,
|
|
3727
3749
|
FormsModule,
|
|
3728
3750
|
ReactiveFormsModule,
|
|
@@ -3734,7 +3756,7 @@ class BaseCoreModule {
|
|
|
3734
3756
|
RouterModule,
|
|
3735
3757
|
LocalizationModule] }); }
|
|
3736
3758
|
}
|
|
3737
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: BaseCoreModule, decorators: [{
|
|
3738
3760
|
type: NgModule,
|
|
3739
3761
|
args: [{
|
|
3740
3762
|
exports: [
|
|
@@ -3799,16 +3821,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3799
3821
|
* and it introduces imports useful at root level (e.g. NGXS)
|
|
3800
3822
|
*/
|
|
3801
3823
|
class RootCoreModule {
|
|
3802
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3803
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3804
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3824
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RootCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3825
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: RootCoreModule, imports: [BaseCoreModule, LocalizationModule, i1.HttpClientXsrfModule], exports: [BaseCoreModule, LocalizationModule] }); }
|
|
3826
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RootCoreModule, imports: [BaseCoreModule,
|
|
3805
3827
|
LocalizationModule,
|
|
3806
3828
|
HttpClientXsrfModule.withOptions({
|
|
3807
3829
|
cookieName: 'XSRF-TOKEN',
|
|
3808
3830
|
headerName: 'RequestVerificationToken',
|
|
3809
3831
|
}), BaseCoreModule, LocalizationModule] }); }
|
|
3810
3832
|
}
|
|
3811
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3833
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RootCoreModule, decorators: [{
|
|
3812
3834
|
type: NgModule,
|
|
3813
3835
|
args: [{
|
|
3814
3836
|
exports: [BaseCoreModule, LocalizationModule],
|
|
@@ -3901,11 +3923,11 @@ class CoreModule {
|
|
|
3901
3923
|
],
|
|
3902
3924
|
};
|
|
3903
3925
|
}
|
|
3904
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3905
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3906
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3926
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3927
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.0.4", ngImport: i0, type: CoreModule, imports: [BaseCoreModule], exports: [BaseCoreModule] }); }
|
|
3928
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CoreModule, imports: [BaseCoreModule, BaseCoreModule] }); }
|
|
3907
3929
|
}
|
|
3908
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3930
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CoreModule, decorators: [{
|
|
3909
3931
|
type: NgModule,
|
|
3910
3932
|
args: [{
|
|
3911
3933
|
exports: [BaseCoreModule],
|
|
@@ -3923,10 +3945,10 @@ class ShowPasswordDirective {
|
|
|
3923
3945
|
return;
|
|
3924
3946
|
element.type = visible ? 'text' : 'password';
|
|
3925
3947
|
}
|
|
3926
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3927
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3948
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ShowPasswordDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3949
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: ShowPasswordDirective, isStandalone: true, selector: "[abpShowPassword]", inputs: { abpShowPassword: "abpShowPassword" }, ngImport: i0 }); }
|
|
3928
3950
|
}
|
|
3929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ShowPasswordDirective, decorators: [{
|
|
3930
3952
|
type: Directive,
|
|
3931
3953
|
args: [{
|
|
3932
3954
|
standalone: true,
|
|
@@ -3955,10 +3977,10 @@ class TrackCapsLockDirective {
|
|
|
3955
3977
|
}
|
|
3956
3978
|
return false;
|
|
3957
3979
|
}
|
|
3958
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3959
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3980
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TrackCapsLockDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
3981
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "17.0.4", type: TrackCapsLockDirective, isStandalone: true, selector: "[abpCapsLock]", outputs: { capsLock: "abpCapsLock" }, host: { listeners: { "window:keydown": "onKeyDown($event)", "window:keyup": "onKeyUp($event)" } }, ngImport: i0 }); }
|
|
3960
3982
|
}
|
|
3961
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TrackCapsLockDirective, decorators: [{
|
|
3962
3984
|
type: Directive,
|
|
3963
3985
|
args: [{
|
|
3964
3986
|
standalone: true,
|
|
@@ -3975,11 +3997,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
3975
3997
|
args: ['window:keyup', ['$event']]
|
|
3976
3998
|
}] } });
|
|
3977
3999
|
|
|
4000
|
+
/**
|
|
4001
|
+
* @deprecated Use `permissionGuard` *function* instead.
|
|
4002
|
+
*/
|
|
3978
4003
|
class PermissionGuard {
|
|
3979
4004
|
constructor() {
|
|
3980
4005
|
this.router = inject(Router);
|
|
3981
4006
|
this.routesService = inject(RoutesService);
|
|
3982
|
-
this.
|
|
4007
|
+
this.authService = inject(AuthService);
|
|
3983
4008
|
this.permissionService = inject(PermissionService);
|
|
3984
4009
|
this.httpErrorReporter = inject(HttpErrorReporterService);
|
|
3985
4010
|
}
|
|
@@ -3992,20 +4017,39 @@ class PermissionGuard {
|
|
|
3992
4017
|
if (!requiredPolicy)
|
|
3993
4018
|
return of(true);
|
|
3994
4019
|
return this.permissionService.getGrantedPolicy$(requiredPolicy).pipe(tap(access => {
|
|
3995
|
-
if (!access && this.
|
|
4020
|
+
if (!access && this.authService.isAuthenticated) {
|
|
3996
4021
|
this.httpErrorReporter.reportError({ status: 403 });
|
|
3997
4022
|
}
|
|
3998
4023
|
}));
|
|
3999
4024
|
}
|
|
4000
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4001
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4025
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PermissionGuard, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4026
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PermissionGuard, providedIn: 'root' }); }
|
|
4002
4027
|
}
|
|
4003
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4028
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PermissionGuard, decorators: [{
|
|
4004
4029
|
type: Injectable,
|
|
4005
4030
|
args: [{
|
|
4006
4031
|
providedIn: 'root',
|
|
4007
4032
|
}]
|
|
4008
4033
|
}] });
|
|
4034
|
+
const permissionGuard = (route, state) => {
|
|
4035
|
+
const router = inject(Router);
|
|
4036
|
+
const routesService = inject(RoutesService);
|
|
4037
|
+
const authService = inject(AuthService);
|
|
4038
|
+
const permissionService = inject(PermissionService);
|
|
4039
|
+
const httpErrorReporter = inject(HttpErrorReporterService);
|
|
4040
|
+
let { requiredPolicy } = route.data || {};
|
|
4041
|
+
if (!requiredPolicy) {
|
|
4042
|
+
const routeFound = findRoute(routesService, getRoutePath(router, state.url));
|
|
4043
|
+
requiredPolicy = routeFound?.requiredPolicy;
|
|
4044
|
+
}
|
|
4045
|
+
if (!requiredPolicy)
|
|
4046
|
+
return of(true);
|
|
4047
|
+
return permissionService.getGrantedPolicy$(requiredPolicy).pipe(tap(access => {
|
|
4048
|
+
if (!access && authService.isAuthenticated) {
|
|
4049
|
+
httpErrorReporter.reportError({ status: 403 });
|
|
4050
|
+
}
|
|
4051
|
+
}));
|
|
4052
|
+
};
|
|
4009
4053
|
|
|
4010
4054
|
class ListResultDto {
|
|
4011
4055
|
constructor(initialValues = {}) {
|
|
@@ -4153,15 +4197,15 @@ class AbpApiDefinitionService {
|
|
|
4153
4197
|
params: { includeTypes: model.includeTypes },
|
|
4154
4198
|
}, { apiName: this.apiName });
|
|
4155
4199
|
}
|
|
4156
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4157
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4200
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpApiDefinitionService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4201
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpApiDefinitionService, providedIn: 'root' }); }
|
|
4158
4202
|
}
|
|
4159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpApiDefinitionService, decorators: [{
|
|
4160
4204
|
type: Injectable,
|
|
4161
4205
|
args: [{
|
|
4162
4206
|
providedIn: 'root',
|
|
4163
4207
|
}]
|
|
4164
|
-
}], ctorParameters:
|
|
4208
|
+
}], ctorParameters: () => [{ type: RestService }] });
|
|
4165
4209
|
|
|
4166
4210
|
var index = /*#__PURE__*/Object.freeze({
|
|
4167
4211
|
__proto__: null
|
|
@@ -4595,15 +4639,15 @@ class ApiInterceptor {
|
|
|
4595
4639
|
this.httpWaitService.addRequest(request);
|
|
4596
4640
|
return next.handle(request).pipe(finalize(() => this.httpWaitService.deleteRequest(request)));
|
|
4597
4641
|
}
|
|
4598
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4599
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4642
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ApiInterceptor, deps: [{ token: HttpWaitService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4643
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ApiInterceptor, providedIn: 'root' }); }
|
|
4600
4644
|
}
|
|
4601
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ApiInterceptor, decorators: [{
|
|
4602
4646
|
type: Injectable,
|
|
4603
4647
|
args: [{
|
|
4604
4648
|
providedIn: 'root',
|
|
4605
4649
|
}]
|
|
4606
|
-
}], ctorParameters:
|
|
4650
|
+
}], ctorParameters: () => [{ type: HttpWaitService }] });
|
|
4607
4651
|
|
|
4608
4652
|
// export * from './lib/handlers';
|
|
4609
4653
|
|
|
@@ -4611,5 +4655,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
4611
4655
|
* Generated bundle index. Do not edit.
|
|
4612
4656
|
*/
|
|
4613
4657
|
|
|
4614
|
-
export { APP_INIT_ERROR_HANDLERS, AbpApiDefinitionService, AbpApplicationConfigurationService, AbpApplicationLocalizationService, AbpLocalStorageService, AbpTenantService, AbpValidators, AbpWindowService, AbstractNavTreeService, AbstractNgModelComponent, AbstractTreeService, ApiInterceptor, AuditedEntityDto, AuditedEntityWithUserDto, AuthGuard, AuthService, AutofocusDirective, BaseCoreModule, BaseTreeNode, CHECK_AUTHENTICATION_STATE_FN_KEY, CONTAINER_STRATEGY, CONTENT_SECURITY_STRATEGY, CONTENT_STRATEGY, CONTEXT_STRATEGY, COOKIE_LANGUAGE_KEY, CORE_OPTIONS, CROSS_ORIGIN_STRATEGY, ClearContainerStrategy, ComponentContextStrategy, ComponentProjectionStrategy, ConfigStateService, ContainerStrategy, ContentProjectionService, ContentSecurityStrategy, ContentStrategy, ContextStrategy, CoreModule, CreationAuditedEntityDto, CreationAuditedEntityWithUserDto, CrossOriginStrategy, DOM_STRATEGY, DefaultQueueManager, DomInsertionService, DomStrategy, DynamicLayoutComponent, EntityDto, EnvironmentService, ExtensibleAuditedEntityDto, ExtensibleAuditedEntityWithUserDto, ExtensibleCreationAuditedEntityDto, ExtensibleCreationAuditedEntityWithUserDto, ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleFullAuditedEntityWithUserDto, ExtensibleLimitedResultRequestDto, ExtensibleObject, ExtensiblePagedAndSortedResultRequestDto, ExtensiblePagedResultRequestDto, ExternalHttpClient, ForDirective, FormSubmitDirective, FullAuditedEntityDto, FullAuditedEntityWithUserDto, HttpErrorReporterService, HttpWaitService, INCUDE_LOCALIZATION_RESOURCES_TOKEN, INJECTOR_PIPE_DATA_TOKEN, IS_EXTERNAL_REQUEST, InitDirective, InputEventDebounceDirective, InsertIntoContainerStrategy, InternalStore, InternetConnectionService, LIST_QUERY_DEBOUNCE_TIME, LOADER_DELAY, LOADING_STRATEGY, LOCALIZATIONS, LazyLoadService, LazyModuleFactory, LimitedResultRequestDto, ListResultDto, ListService, LoadingStrategy, LocalizationModule, LocalizationPipe, LocalizationService, LooseContentSecurityStrategy, MultiTenancyService, NAVIGATE_TO_MANAGE_PROFILE, NavigationEvent, NoContentSecurityStrategy, NoContextStrategy, NoCrossOriginStrategy, OTHERS_GROUP, index as ObjectExtending, PIPE_TO_LOGIN_FN_KEY, PROJECTION_STRATEGY, PagedAndSortedResultRequestDto, PagedResultDto, PagedResultRequestDto, PermissionDirective, PermissionGuard, PermissionService, ProjectionStrategy, QUEUE_MANAGER, ReplaceableComponentsService, ReplaceableRouteContainerComponent, ReplaceableTemplateDirective, ResourceWaitService, RestService, RootComponentProjectionStrategy, RootCoreModule, RouterEvents, RouterOutletComponent, RouterWaitService, RoutesService, SET_TOKEN_RESPONSE_TO_STORAGE_FN_KEY, SafeHtmlPipe, ScriptContentStrategy, ScriptLoadingStrategy, SessionStateService, ShortDatePipe, ShortDateTimePipe, ShortTimePipe, ShowPasswordDirective, SortPipe, StopPropagationDirective, StyleContentStrategy, StyleLoadingStrategy, SubscriptionService, TENANT_KEY, TENANT_NOT_FOUND_BY_NAME, TemplateContextStrategy, TemplateProjectionStrategy, ToInjectorPipe, TrackByService, TrackCapsLockDirective, WebHttpUrlEncodingCodec, checkHasProp, coreOptionsFactory, createGroupMap, createLocalizationPipeKeyGenerator, createLocalizer, createLocalizerWithFallback, createMapFromList, createTokenParser, createTreeFromList, createTreeNodeFilterCreator, deepMerge, differentLocales, downloadBlob, escapeHtmlChars, exists, featuresFactory, findRoute, fromLazyLoad, generateHash, generatePassword, getInitialData, getLocaleDirection, getPathName, getRemoteEnv, getRoutePath, getShortDateFormat, getShortDateShortTimeFormat, getShortTimeFormat, interpolate, isArray, isNode, isNullOrEmpty, isNullOrUndefined, isNumber, isObject, isObjectAndNotArray, isObjectAndNotArrayNotNode, isUndefinedOrEmptyString, localeInitializer, localizationContributor, localizations$, mapEnumToOptions, noop, parseTenantFromUrl, pushValueTo, reloadRoute, trackBy, trackByDeep, uuid, validateCreditCard, validateMinAge, validateRange, validateRequired, validateStringLength, validateUniqueCharacter, validateUrl };
|
|
4658
|
+
export { APP_INIT_ERROR_HANDLERS, AbpApiDefinitionService, AbpApplicationConfigurationService, AbpApplicationLocalizationService, AbpLocalStorageService, AbpTenantService, AbpValidators, AbpWindowService, AbstractNavTreeService, AbstractNgModelComponent, AbstractTreeService, ApiInterceptor, AuditedEntityDto, AuditedEntityWithUserDto, AuthGuard, AuthService, AutofocusDirective, BaseCoreModule, BaseTreeNode, CHECK_AUTHENTICATION_STATE_FN_KEY, CONTAINER_STRATEGY, CONTENT_SECURITY_STRATEGY, CONTENT_STRATEGY, CONTEXT_STRATEGY, COOKIE_LANGUAGE_KEY, CORE_OPTIONS, CROSS_ORIGIN_STRATEGY, ClearContainerStrategy, ComponentContextStrategy, ComponentProjectionStrategy, ConfigStateService, ContainerStrategy, ContentProjectionService, ContentSecurityStrategy, ContentStrategy, ContextStrategy, CoreModule, CreationAuditedEntityDto, CreationAuditedEntityWithUserDto, CrossOriginStrategy, DOM_STRATEGY, DefaultQueueManager, DomInsertionService, DomStrategy, DynamicLayoutComponent, EntityDto, EnvironmentService, ExtensibleAuditedEntityDto, ExtensibleAuditedEntityWithUserDto, ExtensibleCreationAuditedEntityDto, ExtensibleCreationAuditedEntityWithUserDto, ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleFullAuditedEntityWithUserDto, ExtensibleLimitedResultRequestDto, ExtensibleObject, ExtensiblePagedAndSortedResultRequestDto, ExtensiblePagedResultRequestDto, ExternalHttpClient, ForDirective, FormSubmitDirective, FullAuditedEntityDto, FullAuditedEntityWithUserDto, HttpErrorReporterService, HttpWaitService, INCUDE_LOCALIZATION_RESOURCES_TOKEN, INJECTOR_PIPE_DATA_TOKEN, IS_EXTERNAL_REQUEST, InitDirective, InputEventDebounceDirective, InsertIntoContainerStrategy, InternalStore, InternetConnectionService, LIST_QUERY_DEBOUNCE_TIME, LOADER_DELAY, LOADING_STRATEGY, LOCALIZATIONS, LazyLoadService, LazyModuleFactory, LimitedResultRequestDto, ListResultDto, ListService, LoadingStrategy, LocalizationModule, LocalizationPipe, LocalizationService, LooseContentSecurityStrategy, MultiTenancyService, NAVIGATE_TO_MANAGE_PROFILE, NavigationEvent, NoContentSecurityStrategy, NoContextStrategy, NoCrossOriginStrategy, OTHERS_GROUP, index as ObjectExtending, PIPE_TO_LOGIN_FN_KEY, PROJECTION_STRATEGY, PagedAndSortedResultRequestDto, PagedResultDto, PagedResultRequestDto, PermissionDirective, PermissionGuard, PermissionService, ProjectionStrategy, QUEUE_MANAGER, ReplaceableComponentsService, ReplaceableRouteContainerComponent, ReplaceableTemplateDirective, ResourceWaitService, RestService, RootComponentProjectionStrategy, RootCoreModule, RouterEvents, RouterOutletComponent, RouterWaitService, RoutesService, SET_TOKEN_RESPONSE_TO_STORAGE_FN_KEY, SafeHtmlPipe, ScriptContentStrategy, ScriptLoadingStrategy, SessionStateService, ShortDatePipe, ShortDateTimePipe, ShortTimePipe, ShowPasswordDirective, SortPipe, StopPropagationDirective, StyleContentStrategy, StyleLoadingStrategy, SubscriptionService, TENANT_KEY, TENANT_NOT_FOUND_BY_NAME, TemplateContextStrategy, TemplateProjectionStrategy, ToInjectorPipe, TrackByService, TrackCapsLockDirective, WebHttpUrlEncodingCodec, authGuard, checkHasProp, coreOptionsFactory, createGroupMap, createLocalizationPipeKeyGenerator, createLocalizer, createLocalizerWithFallback, createMapFromList, createTokenParser, createTreeFromList, createTreeNodeFilterCreator, deepMerge, differentLocales, downloadBlob, escapeHtmlChars, exists, featuresFactory, findRoute, fromLazyLoad, generateHash, generatePassword, getInitialData, getLocaleDirection, getPathName, getRemoteEnv, getRoutePath, getShortDateFormat, getShortDateShortTimeFormat, getShortTimeFormat, interpolate, isArray, isNode, isNullOrEmpty, isNullOrUndefined, isNumber, isObject, isObjectAndNotArray, isObjectAndNotArrayNotNode, isUndefinedOrEmptyString, localeInitializer, localizationContributor, localizations$, mapEnumToOptions, noop, parseTenantFromUrl, permissionGuard, pushValueTo, reloadRoute, trackBy, trackByDeep, uuid, validateCreditCard, validateMinAge, validateRange, validateRequired, validateStringLength, validateUniqueCharacter, validateUrl };
|
|
4615
4659
|
//# sourceMappingURL=abp-ng.core.mjs.map
|