@abp/ng.core 7.4.1 → 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 +30 -8
- 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 -249
- 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 +7 -4
- 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';
|
|
@@ -13,10 +13,14 @@ import clone from 'just-clone';
|
|
|
13
13
|
import * as i1$2 from '@angular/forms';
|
|
14
14
|
import { FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
15
15
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
16
|
-
import { OAuthService } from 'angular-oauth2-oidc';
|
|
17
16
|
|
|
18
17
|
// Not an abstract class on purpose. Do not change!
|
|
19
18
|
class AbstractNgModelComponent {
|
|
19
|
+
constructor() {
|
|
20
|
+
this.cdRef = inject(ChangeDetectorRef);
|
|
21
|
+
this.valueFn = value => value;
|
|
22
|
+
this.valueLimitFn = value => false;
|
|
23
|
+
}
|
|
20
24
|
set value(value) {
|
|
21
25
|
value = this.valueFn(value, this._value);
|
|
22
26
|
if (this.valueLimitFn(value, this._value) !== false || this.readonly)
|
|
@@ -30,12 +34,6 @@ class AbstractNgModelComponent {
|
|
|
30
34
|
get defaultValue() {
|
|
31
35
|
return this._value;
|
|
32
36
|
}
|
|
33
|
-
constructor(injector) {
|
|
34
|
-
this.injector = injector;
|
|
35
|
-
this.valueFn = value => value;
|
|
36
|
-
this.valueLimitFn = value => false;
|
|
37
|
-
this.cdRef = injector.get(ChangeDetectorRef);
|
|
38
|
-
}
|
|
39
37
|
notifyValueChange() {
|
|
40
38
|
if (this.onChange) {
|
|
41
39
|
this.onChange(this.value);
|
|
@@ -54,13 +52,13 @@ class AbstractNgModelComponent {
|
|
|
54
52
|
setDisabledState(isDisabled) {
|
|
55
53
|
this.disabled = isDisabled;
|
|
56
54
|
}
|
|
57
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
58
|
-
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 }); }
|
|
59
57
|
}
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbstractNgModelComponent, decorators: [{
|
|
61
59
|
type: Component,
|
|
62
60
|
args: [{ template: '' }]
|
|
63
|
-
}],
|
|
61
|
+
}], propDecorators: { disabled: [{
|
|
64
62
|
type: Input
|
|
65
63
|
}], readonly: [{
|
|
66
64
|
type: Input
|
|
@@ -72,20 +70,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
|
|
|
72
70
|
type: Input
|
|
73
71
|
}] } });
|
|
74
72
|
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated Use `authGuard` *function* instead.
|
|
75
|
+
*/
|
|
75
76
|
class AuthGuard {
|
|
76
77
|
canActivate() {
|
|
77
78
|
console.error('You should add @abp/ng-oauth packages or create your own auth packages.');
|
|
78
79
|
return false;
|
|
79
80
|
}
|
|
80
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
81
|
-
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' }); }
|
|
82
83
|
}
|
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuthGuard, decorators: [{
|
|
84
85
|
type: Injectable,
|
|
85
86
|
args: [{
|
|
86
87
|
providedIn: 'root',
|
|
87
88
|
}]
|
|
88
89
|
}] });
|
|
90
|
+
const authGuard = () => {
|
|
91
|
+
console.error('You should add @abp/ng-oauth packages or create your own auth packages.');
|
|
92
|
+
return false;
|
|
93
|
+
};
|
|
89
94
|
|
|
90
95
|
/**
|
|
91
96
|
* Abstract service for Authentication.
|
|
@@ -119,10 +124,10 @@ class AuthService {
|
|
|
119
124
|
console.log({ grantType, parameters, headers });
|
|
120
125
|
return Promise.reject(new Error('not implemented'));
|
|
121
126
|
}
|
|
122
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
123
|
-
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' }); }
|
|
124
129
|
}
|
|
125
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AuthService, decorators: [{
|
|
126
131
|
type: Injectable,
|
|
127
132
|
args: [{
|
|
128
133
|
providedIn: 'root',
|
|
@@ -239,10 +244,10 @@ class ExternalHttpClient extends HttpClient {
|
|
|
239
244
|
optionsOrRequest.context ??= new HttpContext();
|
|
240
245
|
optionsOrRequest.context.set(IS_EXTERNAL_REQUEST, true);
|
|
241
246
|
}
|
|
242
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
243
|
-
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' }); }
|
|
244
249
|
}
|
|
245
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ExternalHttpClient, decorators: [{
|
|
246
251
|
type: Injectable,
|
|
247
252
|
args: [{
|
|
248
253
|
providedIn: 'root',
|
|
@@ -389,10 +394,10 @@ class EnvironmentService {
|
|
|
389
394
|
getIssuer$() {
|
|
390
395
|
return this.store.sliceState(state => state?.oAuthConfig?.issuer).pipe(map(mapToIssuer));
|
|
391
396
|
}
|
|
392
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
393
|
-
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' }); }
|
|
394
399
|
}
|
|
395
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: EnvironmentService, decorators: [{
|
|
396
401
|
type: Injectable,
|
|
397
402
|
args: [{ providedIn: 'root' }]
|
|
398
403
|
}] });
|
|
@@ -401,10 +406,6 @@ class HttpErrorReporterService {
|
|
|
401
406
|
constructor() {
|
|
402
407
|
this._reporter$ = new Subject();
|
|
403
408
|
this._errors$ = new BehaviorSubject([]);
|
|
404
|
-
this.reportError = (error) => {
|
|
405
|
-
this._reporter$.next(error);
|
|
406
|
-
this._errors$.next([...this.errors, error]);
|
|
407
|
-
};
|
|
408
409
|
}
|
|
409
410
|
get reporter$() {
|
|
410
411
|
return this._reporter$.asObservable();
|
|
@@ -415,10 +416,14 @@ class HttpErrorReporterService {
|
|
|
415
416
|
get errors() {
|
|
416
417
|
return this._errors$.value;
|
|
417
418
|
}
|
|
418
|
-
|
|
419
|
-
|
|
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' }); }
|
|
420
425
|
}
|
|
421
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
426
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: HttpErrorReporterService, decorators: [{
|
|
422
427
|
type: Injectable,
|
|
423
428
|
args: [{ providedIn: 'root' }]
|
|
424
429
|
}] });
|
|
@@ -474,18 +479,18 @@ class RestService {
|
|
|
474
479
|
removeDuplicateSlashes(url) {
|
|
475
480
|
return url.replace(/([^:]\/)\/+/g, '$1');
|
|
476
481
|
}
|
|
477
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
478
|
-
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' }); }
|
|
479
484
|
}
|
|
480
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
485
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RestService, decorators: [{
|
|
481
486
|
type: Injectable,
|
|
482
487
|
args: [{
|
|
483
488
|
providedIn: 'root',
|
|
484
489
|
}]
|
|
485
|
-
}], ctorParameters:
|
|
490
|
+
}], ctorParameters: () => [{ type: undefined, decorators: [{
|
|
486
491
|
type: Inject,
|
|
487
492
|
args: [CORE_OPTIONS]
|
|
488
|
-
}] }, { type: i1.HttpClient }, { type: ExternalHttpClient }, { type: EnvironmentService }, { type: HttpErrorReporterService }]
|
|
493
|
+
}] }, { type: i1.HttpClient }, { type: ExternalHttpClient }, { type: EnvironmentService }, { type: HttpErrorReporterService }] });
|
|
489
494
|
|
|
490
495
|
class AbpApplicationConfigurationService {
|
|
491
496
|
constructor(restService) {
|
|
@@ -497,15 +502,15 @@ class AbpApplicationConfigurationService {
|
|
|
497
502
|
params: { includeLocalizationResources: options.includeLocalizationResources },
|
|
498
503
|
}, { apiName: this.apiName });
|
|
499
504
|
}
|
|
500
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
501
|
-
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' }); }
|
|
502
507
|
}
|
|
503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpApplicationConfigurationService, decorators: [{
|
|
504
509
|
type: Injectable,
|
|
505
510
|
args: [{
|
|
506
511
|
providedIn: 'root',
|
|
507
512
|
}]
|
|
508
|
-
}], ctorParameters:
|
|
513
|
+
}], ctorParameters: () => [{ type: RestService }] });
|
|
509
514
|
|
|
510
515
|
class AbpApplicationLocalizationService {
|
|
511
516
|
constructor(restService) {
|
|
@@ -517,15 +522,15 @@ class AbpApplicationLocalizationService {
|
|
|
517
522
|
params: { cultureName: input.cultureName, onlyDynamics: input.onlyDynamics },
|
|
518
523
|
}, { apiName: this.apiName });
|
|
519
524
|
}
|
|
520
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
521
|
-
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' }); }
|
|
522
527
|
}
|
|
523
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
528
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpApplicationLocalizationService, decorators: [{
|
|
524
529
|
type: Injectable,
|
|
525
530
|
args: [{
|
|
526
531
|
providedIn: 'root',
|
|
527
532
|
}]
|
|
528
|
-
}], ctorParameters:
|
|
533
|
+
}], ctorParameters: () => [{ type: RestService }] });
|
|
529
534
|
|
|
530
535
|
const INCUDE_LOCALIZATION_RESOURCES_TOKEN = new InjectionToken('INCUDE_LOCALIZATION_RESOURCES_TOKEN');
|
|
531
536
|
|
|
@@ -676,20 +681,20 @@ class ConfigStateService {
|
|
|
676
681
|
getGlobalFeatureIsEnabled$(key) {
|
|
677
682
|
return this.store.sliceState(state => this.isGlobalFeatureEnabled(key, state.globalFeatures));
|
|
678
683
|
}
|
|
679
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
680
|
-
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' }); }
|
|
681
686
|
}
|
|
682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
687
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ConfigStateService, decorators: [{
|
|
683
688
|
type: Injectable,
|
|
684
689
|
args: [{
|
|
685
690
|
providedIn: 'root',
|
|
686
691
|
}]
|
|
687
|
-
}], ctorParameters:
|
|
692
|
+
}], ctorParameters: () => [{ type: AbpApplicationConfigurationService }, { type: AbpApplicationLocalizationService }, { type: undefined, decorators: [{
|
|
688
693
|
type: Optional
|
|
689
694
|
}, {
|
|
690
695
|
type: Inject,
|
|
691
696
|
args: [INCUDE_LOCALIZATION_RESOURCES_TOKEN]
|
|
692
|
-
}] }]
|
|
697
|
+
}] }] });
|
|
693
698
|
function splitKeys(keys) {
|
|
694
699
|
if (typeof keys === 'string') {
|
|
695
700
|
keys = keys.split('.');
|
|
@@ -720,15 +725,15 @@ class AbpLocalStorageService {
|
|
|
720
725
|
setItem(key, value) {
|
|
721
726
|
localStorage.setItem(key, value);
|
|
722
727
|
}
|
|
723
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
724
|
-
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' }); }
|
|
725
730
|
}
|
|
726
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
731
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpLocalStorageService, decorators: [{
|
|
727
732
|
type: Injectable,
|
|
728
733
|
args: [{
|
|
729
734
|
providedIn: 'root',
|
|
730
735
|
}]
|
|
731
|
-
}], ctorParameters:
|
|
736
|
+
}], ctorParameters: () => [] });
|
|
732
737
|
|
|
733
738
|
class SessionStateService {
|
|
734
739
|
constructor(configState, localStorageService) {
|
|
@@ -791,15 +796,15 @@ class SessionStateService {
|
|
|
791
796
|
this.store.patch({ language });
|
|
792
797
|
document.documentElement.setAttribute('lang', language);
|
|
793
798
|
}
|
|
794
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
795
|
-
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' }); }
|
|
796
801
|
}
|
|
797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
802
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SessionStateService, decorators: [{
|
|
798
803
|
type: Injectable,
|
|
799
804
|
args: [{
|
|
800
805
|
providedIn: 'root',
|
|
801
806
|
}]
|
|
802
|
-
}], ctorParameters:
|
|
807
|
+
}], ctorParameters: () => [{ type: ConfigStateService }, { type: AbpLocalStorageService }] });
|
|
803
808
|
|
|
804
809
|
class LocalizationService {
|
|
805
810
|
/**
|
|
@@ -969,17 +974,17 @@ class LocalizationService {
|
|
|
969
974
|
localization = '';
|
|
970
975
|
return localization || defaultValue || key;
|
|
971
976
|
}
|
|
972
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
973
|
-
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' }); }
|
|
974
979
|
}
|
|
975
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
980
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationService, decorators: [{
|
|
976
981
|
type: Injectable,
|
|
977
982
|
args: [{ providedIn: 'root' }]
|
|
978
|
-
}], ctorParameters:
|
|
983
|
+
}], ctorParameters: () => [{ type: SessionStateService }, { type: i0.Injector }, { type: LocalizationService, decorators: [{
|
|
979
984
|
type: Optional
|
|
980
985
|
}, {
|
|
981
986
|
type: SkipSelf
|
|
982
|
-
}] }, { type: ConfigStateService }]
|
|
987
|
+
}] }, { type: ConfigStateService }] });
|
|
983
988
|
function recursivelyMergeBaseResources(baseResourceName, source) {
|
|
984
989
|
const item = source[baseResourceName];
|
|
985
990
|
if (item.baseResources.length === 0) {
|
|
@@ -1063,13 +1068,13 @@ class ReplaceableComponentsService {
|
|
|
1063
1068
|
get$(replaceableComponentKey) {
|
|
1064
1069
|
return this.replaceableComponents$.pipe(map(components => components.find(component => component.key === replaceableComponentKey)));
|
|
1065
1070
|
}
|
|
1066
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1067
|
-
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' }); }
|
|
1068
1073
|
}
|
|
1069
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReplaceableComponentsService, decorators: [{
|
|
1070
1075
|
type: Injectable,
|
|
1071
1076
|
args: [{ providedIn: 'root' }]
|
|
1072
|
-
}], ctorParameters:
|
|
1077
|
+
}], ctorParameters: () => [{ type: i0.NgZone }, { type: i1$1.Router }] });
|
|
1073
1078
|
|
|
1074
1079
|
const NavigationEvent = {
|
|
1075
1080
|
Cancel: NavigationCancel,
|
|
@@ -1096,13 +1101,13 @@ class RouterEvents {
|
|
|
1096
1101
|
const keys = Object.keys(NavigationEvent);
|
|
1097
1102
|
return this.getNavigationEvents(...keys);
|
|
1098
1103
|
}
|
|
1099
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1100
|
-
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' }); }
|
|
1101
1106
|
}
|
|
1102
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1107
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RouterEvents, decorators: [{
|
|
1103
1108
|
type: Injectable,
|
|
1104
1109
|
args: [{ providedIn: 'root' }]
|
|
1105
|
-
}], ctorParameters:
|
|
1110
|
+
}], ctorParameters: () => [{ type: i1$1.Router }] });
|
|
1106
1111
|
|
|
1107
1112
|
const APP_INIT_ERROR_HANDLERS = new InjectionToken('APP_INIT_ERROR_HANDLERS');
|
|
1108
1113
|
|
|
@@ -1259,13 +1264,13 @@ class PermissionService {
|
|
|
1259
1264
|
getPolicy(key, grantedPolicies) {
|
|
1260
1265
|
return grantedPolicies[key] || false;
|
|
1261
1266
|
}
|
|
1262
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1263
|
-
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' }); }
|
|
1264
1269
|
}
|
|
1265
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PermissionService, decorators: [{
|
|
1266
1271
|
type: Injectable,
|
|
1267
1272
|
args: [{ providedIn: 'root' }]
|
|
1268
|
-
}], ctorParameters:
|
|
1273
|
+
}], ctorParameters: () => [{ type: ConfigStateService }] });
|
|
1269
1274
|
|
|
1270
1275
|
class ContentProjectionService {
|
|
1271
1276
|
constructor(injector) {
|
|
@@ -1274,13 +1279,13 @@ class ContentProjectionService {
|
|
|
1274
1279
|
projectContent(projectionStrategy, injector = this.injector) {
|
|
1275
1280
|
return projectionStrategy.injectContent(injector);
|
|
1276
1281
|
}
|
|
1277
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1278
|
-
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' }); }
|
|
1279
1284
|
}
|
|
1280
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ContentProjectionService, decorators: [{
|
|
1281
1286
|
type: Injectable,
|
|
1282
1287
|
args: [{ providedIn: 'root' }]
|
|
1283
|
-
}], ctorParameters:
|
|
1288
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
1284
1289
|
|
|
1285
1290
|
function getShortDateFormat(configStateService) {
|
|
1286
1291
|
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
@@ -1443,15 +1448,15 @@ class AbpTenantService {
|
|
|
1443
1448
|
url: `/api/abp/multi-tenancy/tenants/by-name/${name}`,
|
|
1444
1449
|
}, { apiName: this.apiName });
|
|
1445
1450
|
}
|
|
1446
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1447
|
-
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' }); }
|
|
1448
1453
|
}
|
|
1449
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1454
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpTenantService, decorators: [{
|
|
1450
1455
|
type: Injectable,
|
|
1451
1456
|
args: [{
|
|
1452
1457
|
providedIn: 'root',
|
|
1453
1458
|
}]
|
|
1454
|
-
}], ctorParameters:
|
|
1459
|
+
}], ctorParameters: () => [{ type: RestService }] });
|
|
1455
1460
|
|
|
1456
1461
|
class MultiTenancyService {
|
|
1457
1462
|
constructor(restService, sessionState, tenantService, configStateService, tenantKey) {
|
|
@@ -1478,16 +1483,16 @@ class MultiTenancyService {
|
|
|
1478
1483
|
.findTenantById(tenantId)
|
|
1479
1484
|
.pipe(switchMap(this.setTenantToState));
|
|
1480
1485
|
}
|
|
1481
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1482
|
-
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' }); }
|
|
1483
1488
|
}
|
|
1484
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: MultiTenancyService, decorators: [{
|
|
1485
1490
|
type: Injectable,
|
|
1486
1491
|
args: [{ providedIn: 'root' }]
|
|
1487
|
-
}], ctorParameters:
|
|
1492
|
+
}], ctorParameters: () => [{ type: RestService }, { type: SessionStateService }, { type: AbpTenantService }, { type: ConfigStateService }, { type: undefined, decorators: [{
|
|
1488
1493
|
type: Inject,
|
|
1489
1494
|
args: [TENANT_KEY]
|
|
1490
|
-
}] }]
|
|
1495
|
+
}] }] });
|
|
1491
1496
|
|
|
1492
1497
|
const tenancyPlaceholder = '{0}';
|
|
1493
1498
|
function getCurrentTenancyName(appBaseUrl) {
|
|
@@ -1778,10 +1783,10 @@ class DomInsertionService {
|
|
|
1778
1783
|
const hash = generateHash(content);
|
|
1779
1784
|
return this.inserted.has(hash);
|
|
1780
1785
|
}
|
|
1781
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1782
|
-
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' }); }
|
|
1783
1788
|
}
|
|
1784
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: DomInsertionService, decorators: [{
|
|
1785
1790
|
type: Injectable,
|
|
1786
1791
|
args: [{ providedIn: 'root' }]
|
|
1787
1792
|
}] });
|
|
@@ -1844,15 +1849,15 @@ class HttpWaitService {
|
|
|
1844
1849
|
const { method, endpoint } = filteredRequest;
|
|
1845
1850
|
return endpoint === request.endpoint && method === request.method;
|
|
1846
1851
|
}
|
|
1847
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1848
|
-
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' }); }
|
|
1849
1854
|
}
|
|
1850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1855
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: HttpWaitService, decorators: [{
|
|
1851
1856
|
type: Injectable,
|
|
1852
1857
|
args: [{
|
|
1853
1858
|
providedIn: 'root',
|
|
1854
1859
|
}]
|
|
1855
|
-
}], ctorParameters:
|
|
1860
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
1856
1861
|
|
|
1857
1862
|
class ResourceWaitService {
|
|
1858
1863
|
constructor() {
|
|
@@ -1880,10 +1885,10 @@ class ResourceWaitService {
|
|
|
1880
1885
|
resources.delete(resource);
|
|
1881
1886
|
this.store.patch({ resources });
|
|
1882
1887
|
}
|
|
1883
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1884
|
-
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' }); }
|
|
1885
1890
|
}
|
|
1886
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1891
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ResourceWaitService, decorators: [{
|
|
1887
1892
|
type: Injectable,
|
|
1888
1893
|
args: [{
|
|
1889
1894
|
providedIn: 'root',
|
|
@@ -1914,15 +1919,15 @@ class LazyLoadService {
|
|
|
1914
1919
|
this.loaded.delete(path);
|
|
1915
1920
|
return true;
|
|
1916
1921
|
}
|
|
1917
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1918
|
-
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' }); }
|
|
1919
1924
|
}
|
|
1920
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1925
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LazyLoadService, decorators: [{
|
|
1921
1926
|
type: Injectable,
|
|
1922
1927
|
args: [{
|
|
1923
1928
|
providedIn: 'root',
|
|
1924
1929
|
}]
|
|
1925
|
-
}], ctorParameters:
|
|
1930
|
+
}], ctorParameters: () => [{ type: ResourceWaitService }] });
|
|
1926
1931
|
|
|
1927
1932
|
class ListService {
|
|
1928
1933
|
set filter(value) {
|
|
@@ -2027,12 +2032,12 @@ class ListService {
|
|
|
2027
2032
|
sorting: this._sortOrder ? `${this._sortKey} ${this._sortOrder}` : undefined,
|
|
2028
2033
|
});
|
|
2029
2034
|
}
|
|
2030
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2031
|
-
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 }); }
|
|
2032
2037
|
}
|
|
2033
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2038
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ListService, decorators: [{
|
|
2034
2039
|
type: Injectable
|
|
2035
|
-
}], ctorParameters:
|
|
2040
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
2036
2041
|
|
|
2037
2042
|
class RouterWaitService {
|
|
2038
2043
|
constructor(routerEvents, injector) {
|
|
@@ -2066,15 +2071,15 @@ class RouterWaitService {
|
|
|
2066
2071
|
setLoading(loading) {
|
|
2067
2072
|
this.store.patch({ loading });
|
|
2068
2073
|
}
|
|
2069
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2070
|
-
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' }); }
|
|
2071
2076
|
}
|
|
2072
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2077
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RouterWaitService, decorators: [{
|
|
2073
2078
|
type: Injectable,
|
|
2074
2079
|
args: [{
|
|
2075
2080
|
providedIn: 'root',
|
|
2076
2081
|
}]
|
|
2077
|
-
}], ctorParameters:
|
|
2082
|
+
}], ctorParameters: () => [{ type: RouterEvents }, { type: i0.Injector }] });
|
|
2078
2083
|
|
|
2079
2084
|
class SubscriptionService {
|
|
2080
2085
|
constructor() {
|
|
@@ -2109,10 +2114,10 @@ class SubscriptionService {
|
|
|
2109
2114
|
this.subscription.unsubscribe();
|
|
2110
2115
|
this.subscription = new Subscription();
|
|
2111
2116
|
}
|
|
2112
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2113
|
-
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 }); }
|
|
2114
2119
|
}
|
|
2115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
2116
2121
|
type: Injectable
|
|
2117
2122
|
}] });
|
|
2118
2123
|
|
|
@@ -2125,10 +2130,10 @@ class TrackByService {
|
|
|
2125
2130
|
this.by = trackBy;
|
|
2126
2131
|
this.byDeep = trackByDeep;
|
|
2127
2132
|
}
|
|
2128
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2129
|
-
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' }); }
|
|
2130
2135
|
}
|
|
2131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2136
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TrackByService, decorators: [{
|
|
2132
2137
|
type: Injectable,
|
|
2133
2138
|
args: [{
|
|
2134
2139
|
providedIn: 'root',
|
|
@@ -2137,7 +2142,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
|
|
|
2137
2142
|
|
|
2138
2143
|
class AbpWindowService {
|
|
2139
2144
|
constructor() {
|
|
2140
|
-
this.
|
|
2145
|
+
this.document = inject(DOCUMENT);
|
|
2146
|
+
this.window = this.document.defaultView;
|
|
2141
2147
|
this.navigator = this.window.navigator;
|
|
2142
2148
|
}
|
|
2143
2149
|
copyToClipboard(text) {
|
|
@@ -2149,10 +2155,25 @@ class AbpWindowService {
|
|
|
2149
2155
|
reloadPage() {
|
|
2150
2156
|
this.window.location.reload();
|
|
2151
2157
|
}
|
|
2152
|
-
|
|
2153
|
-
|
|
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' }); }
|
|
2154
2175
|
}
|
|
2155
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpWindowService, decorators: [{
|
|
2156
2177
|
type: Injectable,
|
|
2157
2178
|
args: [{ providedIn: 'root' }]
|
|
2158
2179
|
}] });
|
|
@@ -2175,15 +2196,15 @@ class InternetConnectionService {
|
|
|
2175
2196
|
get networkStatus$() {
|
|
2176
2197
|
return this.status$.asObservable();
|
|
2177
2198
|
}
|
|
2178
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2179
|
-
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' }); }
|
|
2180
2201
|
}
|
|
2181
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2202
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: InternetConnectionService, decorators: [{
|
|
2182
2203
|
type: Injectable,
|
|
2183
2204
|
args: [{
|
|
2184
2205
|
providedIn: 'root',
|
|
2185
2206
|
}]
|
|
2186
|
-
}], ctorParameters:
|
|
2207
|
+
}], ctorParameters: () => [] });
|
|
2187
2208
|
|
|
2188
2209
|
const SORT_COMPARE_FUNC = new InjectionToken('SORT_COMPARE_FUNC');
|
|
2189
2210
|
function compareFuncFactory() {
|
|
@@ -2338,12 +2359,12 @@ class AbstractNavTreeService extends AbstractTreeService {
|
|
|
2338
2359
|
ngOnDestroy() {
|
|
2339
2360
|
this.subscription.unsubscribe();
|
|
2340
2361
|
}
|
|
2341
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2342
|
-
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 }); }
|
|
2343
2364
|
}
|
|
2344
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbstractNavTreeService, decorators: [{
|
|
2345
2366
|
type: Injectable
|
|
2346
|
-
}], ctorParameters:
|
|
2367
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
2347
2368
|
class RoutesService extends AbstractNavTreeService {
|
|
2348
2369
|
hasPathOrChild(item) {
|
|
2349
2370
|
return Boolean(item.path) || this.hasChildren(item.name);
|
|
@@ -2354,10 +2375,10 @@ class RoutesService extends AbstractNavTreeService {
|
|
|
2354
2375
|
get groupedVisible$() {
|
|
2355
2376
|
return this.visible$.pipe(map$1(items => items.filter(item => this.hasPathOrChild(item))), map$1(visible => this.createGroupedTree(visible)));
|
|
2356
2377
|
}
|
|
2357
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2358
|
-
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' }); }
|
|
2359
2380
|
}
|
|
2360
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RoutesService, decorators: [{
|
|
2361
2382
|
type: Injectable,
|
|
2362
2383
|
args: [{ providedIn: 'root' }]
|
|
2363
2384
|
}] });
|
|
@@ -2438,21 +2459,21 @@ class DynamicLayoutComponent {
|
|
|
2438
2459
|
getComponent(key) {
|
|
2439
2460
|
return this.replaceableComponents.get(key);
|
|
2440
2461
|
}
|
|
2441
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2442
|
-
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"] }] }); }
|
|
2443
2464
|
}
|
|
2444
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2465
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: DynamicLayoutComponent, decorators: [{
|
|
2445
2466
|
type: Component,
|
|
2446
2467
|
args: [{
|
|
2447
2468
|
selector: 'abp-dynamic-layout',
|
|
2448
2469
|
template: ` <ng-container *ngIf="isLayoutVisible" [ngComponentOutlet]="layout"></ng-container> `,
|
|
2449
2470
|
providers: [SubscriptionService],
|
|
2450
2471
|
}]
|
|
2451
|
-
}], ctorParameters:
|
|
2472
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: LocalizationService }, { type: ReplaceableComponentsService }, { type: SubscriptionService }, { type: RouterEvents }, { type: DynamicLayoutComponent, decorators: [{
|
|
2452
2473
|
type: Optional
|
|
2453
2474
|
}, {
|
|
2454
2475
|
type: SkipSelf
|
|
2455
|
-
}] }]
|
|
2476
|
+
}] }] });
|
|
2456
2477
|
|
|
2457
2478
|
class ReplaceableRouteContainerComponent {
|
|
2458
2479
|
constructor(route, replaceableComponents, subscription) {
|
|
@@ -2470,12 +2491,12 @@ class ReplaceableRouteContainerComponent {
|
|
|
2470
2491
|
this.externalComponent = res.component;
|
|
2471
2492
|
});
|
|
2472
2493
|
}
|
|
2473
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2474
|
-
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: `
|
|
2475
2496
|
<ng-container *ngComponentOutlet="externalComponent || defaultComponent"></ng-container>
|
|
2476
2497
|
`, isInline: true, dependencies: [{ kind: "directive", type: i5.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModule", "ngComponentOutletNgModuleFactory"] }] }); }
|
|
2477
2498
|
}
|
|
2478
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2499
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReplaceableRouteContainerComponent, decorators: [{
|
|
2479
2500
|
type: Component,
|
|
2480
2501
|
args: [{
|
|
2481
2502
|
selector: 'abp-replaceable-route-container',
|
|
@@ -2484,13 +2505,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
|
|
|
2484
2505
|
`,
|
|
2485
2506
|
providers: [SubscriptionService],
|
|
2486
2507
|
}]
|
|
2487
|
-
}], ctorParameters:
|
|
2508
|
+
}], ctorParameters: () => [{ type: i1$1.ActivatedRoute }, { type: ReplaceableComponentsService }, { type: SubscriptionService }] });
|
|
2488
2509
|
|
|
2489
2510
|
class RouterOutletComponent {
|
|
2490
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2491
|
-
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"] }] }); }
|
|
2492
2513
|
}
|
|
2493
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2514
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RouterOutletComponent, decorators: [{
|
|
2494
2515
|
type: Component,
|
|
2495
2516
|
args: [{
|
|
2496
2517
|
selector: 'abp-router-outlet',
|
|
@@ -2849,16 +2870,16 @@ class AutofocusDirective {
|
|
|
2849
2870
|
ngAfterViewInit() {
|
|
2850
2871
|
setTimeout(() => this.elRef.nativeElement.focus(), this.delay);
|
|
2851
2872
|
}
|
|
2852
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2853
|
-
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 }); }
|
|
2854
2875
|
}
|
|
2855
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2876
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AutofocusDirective, decorators: [{
|
|
2856
2877
|
type: Directive,
|
|
2857
2878
|
args: [{
|
|
2858
2879
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
2859
2880
|
selector: '[autofocus]',
|
|
2860
2881
|
}]
|
|
2861
|
-
}], ctorParameters:
|
|
2882
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { delay: [{
|
|
2862
2883
|
type: Input,
|
|
2863
2884
|
args: ['autofocus']
|
|
2864
2885
|
}] } });
|
|
@@ -2876,17 +2897,17 @@ class InputEventDebounceDirective {
|
|
|
2876
2897
|
this.debounceEvent.emit(event);
|
|
2877
2898
|
});
|
|
2878
2899
|
}
|
|
2879
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2880
|
-
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 }); }
|
|
2881
2902
|
}
|
|
2882
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2903
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: InputEventDebounceDirective, decorators: [{
|
|
2883
2904
|
type: Directive,
|
|
2884
2905
|
args: [{
|
|
2885
2906
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
2886
2907
|
selector: '[input.debounce]',
|
|
2887
2908
|
providers: [SubscriptionService],
|
|
2888
2909
|
}]
|
|
2889
|
-
}], ctorParameters:
|
|
2910
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: SubscriptionService }], propDecorators: { debounce: [{
|
|
2890
2911
|
type: Input
|
|
2891
2912
|
}], debounceEvent: [{
|
|
2892
2913
|
type: Output,
|
|
@@ -3014,15 +3035,15 @@ class ForDirective {
|
|
|
3014
3035
|
this.projectItems(items);
|
|
3015
3036
|
}
|
|
3016
3037
|
}
|
|
3017
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3018
|
-
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 }); }
|
|
3019
3040
|
}
|
|
3020
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3041
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ForDirective, decorators: [{
|
|
3021
3042
|
type: Directive,
|
|
3022
3043
|
args: [{
|
|
3023
3044
|
selector: '[abpFor]',
|
|
3024
3045
|
}]
|
|
3025
|
-
}], ctorParameters:
|
|
3046
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: i0.IterableDiffers }], propDecorators: { items: [{
|
|
3026
3047
|
type: Input,
|
|
3027
3048
|
args: ['abpForOf']
|
|
3028
3049
|
}], orderBy: [{
|
|
@@ -3083,19 +3104,19 @@ class FormSubmitDirective {
|
|
|
3083
3104
|
form.markAsDirty();
|
|
3084
3105
|
this.cdRef.detectChanges();
|
|
3085
3106
|
}
|
|
3086
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3087
|
-
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 }); }
|
|
3088
3109
|
}
|
|
3089
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3110
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: FormSubmitDirective, decorators: [{
|
|
3090
3111
|
type: Directive,
|
|
3091
3112
|
args: [{
|
|
3092
3113
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
3093
3114
|
selector: 'form[ngSubmit][formGroup]',
|
|
3094
3115
|
providers: [SubscriptionService],
|
|
3095
3116
|
}]
|
|
3096
|
-
}], ctorParameters:
|
|
3117
|
+
}], ctorParameters: () => [{ type: i1$2.FormGroupDirective, decorators: [{
|
|
3097
3118
|
type: Self
|
|
3098
|
-
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: SubscriptionService }]
|
|
3119
|
+
}] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: SubscriptionService }], propDecorators: { debounce: [{
|
|
3099
3120
|
type: Input
|
|
3100
3121
|
}], notValidateOnSubmit: [{
|
|
3101
3122
|
type: Input
|
|
@@ -3125,13 +3146,13 @@ class InitDirective {
|
|
|
3125
3146
|
ngAfterViewInit() {
|
|
3126
3147
|
this.init.emit(this.elRef);
|
|
3127
3148
|
}
|
|
3128
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3129
|
-
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 }); }
|
|
3130
3151
|
}
|
|
3131
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3152
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: InitDirective, decorators: [{
|
|
3132
3153
|
type: Directive,
|
|
3133
3154
|
args: [{ selector: '[abpInit]' }]
|
|
3134
|
-
}], ctorParameters:
|
|
3155
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }], propDecorators: { init: [{
|
|
3135
3156
|
type: Output,
|
|
3136
3157
|
args: ['abpInit']
|
|
3137
3158
|
}] } });
|
|
@@ -3182,20 +3203,20 @@ class PermissionDirective {
|
|
|
3182
3203
|
this.cdrSubject.pipe(take(1)).subscribe(() => this.queue.add(() => this.cdRef.detectChanges()));
|
|
3183
3204
|
this.rendered = true;
|
|
3184
3205
|
}
|
|
3185
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3186
|
-
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 }); }
|
|
3187
3208
|
}
|
|
3188
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3209
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PermissionDirective, decorators: [{
|
|
3189
3210
|
type: Directive,
|
|
3190
3211
|
args: [{
|
|
3191
3212
|
selector: '[abpPermission]',
|
|
3192
3213
|
}]
|
|
3193
|
-
}], ctorParameters:
|
|
3214
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef, decorators: [{
|
|
3194
3215
|
type: Optional
|
|
3195
3216
|
}] }, { type: i0.ViewContainerRef }, { type: PermissionService }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
3196
3217
|
type: Inject,
|
|
3197
3218
|
args: [QUEUE_MANAGER]
|
|
3198
|
-
}] }]
|
|
3219
|
+
}] }], propDecorators: { condition: [{
|
|
3199
3220
|
type: Input,
|
|
3200
3221
|
args: ['abpPermission']
|
|
3201
3222
|
}], runChangeDetection: [{
|
|
@@ -3313,16 +3334,16 @@ class ReplaceableTemplateDirective {
|
|
|
3313
3334
|
this.defaultComponentSubscriptions = {};
|
|
3314
3335
|
this.defaultComponentRef = null;
|
|
3315
3336
|
}
|
|
3316
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3317
|
-
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 }); }
|
|
3318
3339
|
}
|
|
3319
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3340
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ReplaceableTemplateDirective, decorators: [{
|
|
3320
3341
|
type: Directive,
|
|
3321
3342
|
args: [{
|
|
3322
3343
|
selector: '[abpReplaceableTemplate]',
|
|
3323
3344
|
providers: [SubscriptionService],
|
|
3324
3345
|
}]
|
|
3325
|
-
}], ctorParameters:
|
|
3346
|
+
}], ctorParameters: () => [{ type: i0.Injector }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: ReplaceableComponentsService }, { type: SubscriptionService }], propDecorators: { data: [{
|
|
3326
3347
|
type: Input,
|
|
3327
3348
|
args: ['abpReplaceableTemplate']
|
|
3328
3349
|
}] } });
|
|
@@ -3339,17 +3360,17 @@ class StopPropagationDirective {
|
|
|
3339
3360
|
this.stopPropEvent.emit(event);
|
|
3340
3361
|
});
|
|
3341
3362
|
}
|
|
3342
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3343
|
-
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 }); }
|
|
3344
3365
|
}
|
|
3345
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3366
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: StopPropagationDirective, decorators: [{
|
|
3346
3367
|
type: Directive,
|
|
3347
3368
|
args: [{
|
|
3348
3369
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
3349
3370
|
selector: '[click.stop]',
|
|
3350
3371
|
providers: [SubscriptionService],
|
|
3351
3372
|
}]
|
|
3352
|
-
}], ctorParameters:
|
|
3373
|
+
}], ctorParameters: () => [{ type: i0.ElementRef }, { type: SubscriptionService }], propDecorators: { stopPropEvent: [{
|
|
3353
3374
|
type: Output,
|
|
3354
3375
|
args: ['click.stop']
|
|
3355
3376
|
}] } });
|
|
@@ -3374,17 +3395,17 @@ class RoutesHandler {
|
|
|
3374
3395
|
}
|
|
3375
3396
|
});
|
|
3376
3397
|
}
|
|
3377
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3378
|
-
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' }); }
|
|
3379
3400
|
}
|
|
3380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3401
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RoutesHandler, decorators: [{
|
|
3381
3402
|
type: Injectable,
|
|
3382
3403
|
args: [{
|
|
3383
3404
|
providedIn: 'root',
|
|
3384
3405
|
}]
|
|
3385
|
-
}], ctorParameters:
|
|
3406
|
+
}], ctorParameters: () => [{ type: RoutesService }, { type: i1$1.Router, decorators: [{
|
|
3386
3407
|
type: Optional
|
|
3387
|
-
}] }]
|
|
3408
|
+
}] }] });
|
|
3388
3409
|
function flatRoutes(routes, parent) {
|
|
3389
3410
|
if (!routes)
|
|
3390
3411
|
return [];
|
|
@@ -3415,25 +3436,25 @@ class LocalizationPipe {
|
|
|
3415
3436
|
}, []) || [];
|
|
3416
3437
|
return this.localization.instant(value, ...params);
|
|
3417
3438
|
}
|
|
3418
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3419
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3420
|
-
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 }); }
|
|
3421
3442
|
}
|
|
3422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3443
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationPipe, decorators: [{
|
|
3423
3444
|
type: Injectable
|
|
3424
3445
|
}, {
|
|
3425
3446
|
type: Pipe,
|
|
3426
3447
|
args: [{
|
|
3427
3448
|
name: 'abpLocalization',
|
|
3428
3449
|
}]
|
|
3429
|
-
}], ctorParameters:
|
|
3450
|
+
}], ctorParameters: () => [{ type: LocalizationService }] });
|
|
3430
3451
|
|
|
3431
3452
|
class LocalizationModule {
|
|
3432
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3433
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3434
|
-
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 }); }
|
|
3435
3456
|
}
|
|
3436
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: LocalizationModule, decorators: [{
|
|
3437
3458
|
type: NgModule,
|
|
3438
3459
|
args: [{
|
|
3439
3460
|
exports: [LocalizationPipe],
|
|
@@ -3475,11 +3496,11 @@ class SortPipe {
|
|
|
3475
3496
|
];
|
|
3476
3497
|
return sortOrder === 'asc' ? sorted : sorted.reverse();
|
|
3477
3498
|
}
|
|
3478
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3479
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3480
|
-
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 }); }
|
|
3481
3502
|
}
|
|
3482
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3503
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SortPipe, decorators: [{
|
|
3483
3504
|
type: Injectable
|
|
3484
3505
|
}, {
|
|
3485
3506
|
type: Pipe,
|
|
@@ -3505,15 +3526,15 @@ class ToInjectorPipe {
|
|
|
3505
3526
|
name,
|
|
3506
3527
|
});
|
|
3507
3528
|
}
|
|
3508
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3509
|
-
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" }); }
|
|
3510
3531
|
}
|
|
3511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3532
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ToInjectorPipe, decorators: [{
|
|
3512
3533
|
type: Pipe,
|
|
3513
3534
|
args: [{
|
|
3514
3535
|
name: 'toInjector',
|
|
3515
3536
|
}]
|
|
3516
|
-
}], ctorParameters:
|
|
3537
|
+
}], ctorParameters: () => [{ type: i0.Injector }] });
|
|
3517
3538
|
|
|
3518
3539
|
function setLanguageToCookie(injector) {
|
|
3519
3540
|
return () => {
|
|
@@ -3569,16 +3590,16 @@ class ShortDateTimePipe extends DatePipe {
|
|
|
3569
3590
|
const format = getShortDateShortTimeFormat(this.configStateService);
|
|
3570
3591
|
return super.transform(value, format, timezone, locale);
|
|
3571
3592
|
}
|
|
3572
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3573
|
-
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" }); }
|
|
3574
3595
|
}
|
|
3575
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3596
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ShortDateTimePipe, decorators: [{
|
|
3576
3597
|
type: Pipe,
|
|
3577
3598
|
args: [{
|
|
3578
3599
|
name: 'shortDateTime',
|
|
3579
3600
|
pure: true,
|
|
3580
3601
|
}]
|
|
3581
|
-
}], ctorParameters:
|
|
3602
|
+
}], ctorParameters: () => [{ type: ConfigStateService }, { type: undefined, decorators: [{
|
|
3582
3603
|
type: Inject,
|
|
3583
3604
|
args: [LOCALE_ID]
|
|
3584
3605
|
}] }, { type: undefined, decorators: [{
|
|
@@ -3586,7 +3607,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
|
|
|
3586
3607
|
args: [DATE_PIPE_DEFAULT_TIMEZONE]
|
|
3587
3608
|
}, {
|
|
3588
3609
|
type: Optional
|
|
3589
|
-
}] }]
|
|
3610
|
+
}] }] });
|
|
3590
3611
|
|
|
3591
3612
|
class ShortTimePipe extends DatePipe {
|
|
3592
3613
|
constructor(configStateService, locale, defaultTimezone) {
|
|
@@ -3597,16 +3618,16 @@ class ShortTimePipe extends DatePipe {
|
|
|
3597
3618
|
const format = getShortTimeFormat(this.configStateService);
|
|
3598
3619
|
return super.transform(value, format, timezone, locale);
|
|
3599
3620
|
}
|
|
3600
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3601
|
-
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" }); }
|
|
3602
3623
|
}
|
|
3603
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3624
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ShortTimePipe, decorators: [{
|
|
3604
3625
|
type: Pipe,
|
|
3605
3626
|
args: [{
|
|
3606
3627
|
name: 'shortTime',
|
|
3607
3628
|
pure: true,
|
|
3608
3629
|
}]
|
|
3609
|
-
}], ctorParameters:
|
|
3630
|
+
}], ctorParameters: () => [{ type: ConfigStateService }, { type: undefined, decorators: [{
|
|
3610
3631
|
type: Inject,
|
|
3611
3632
|
args: [LOCALE_ID]
|
|
3612
3633
|
}] }, { type: undefined, decorators: [{
|
|
@@ -3614,7 +3635,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
|
|
|
3614
3635
|
args: [DATE_PIPE_DEFAULT_TIMEZONE]
|
|
3615
3636
|
}, {
|
|
3616
3637
|
type: Optional
|
|
3617
|
-
}] }]
|
|
3638
|
+
}] }] });
|
|
3618
3639
|
|
|
3619
3640
|
class ShortDatePipe extends DatePipe {
|
|
3620
3641
|
constructor(configStateService, locale, defaultTimezone) {
|
|
@@ -3625,16 +3646,16 @@ class ShortDatePipe extends DatePipe {
|
|
|
3625
3646
|
const format = getShortDateFormat(this.configStateService);
|
|
3626
3647
|
return super.transform(value, format, timezone, locale);
|
|
3627
3648
|
}
|
|
3628
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3629
|
-
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" }); }
|
|
3630
3651
|
}
|
|
3631
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ShortDatePipe, decorators: [{
|
|
3632
3653
|
type: Pipe,
|
|
3633
3654
|
args: [{
|
|
3634
3655
|
name: 'shortDate',
|
|
3635
3656
|
pure: true,
|
|
3636
3657
|
}]
|
|
3637
|
-
}], ctorParameters:
|
|
3658
|
+
}], ctorParameters: () => [{ type: ConfigStateService }, { type: undefined, decorators: [{
|
|
3638
3659
|
type: Inject,
|
|
3639
3660
|
args: [LOCALE_ID]
|
|
3640
3661
|
}] }, { type: undefined, decorators: [{
|
|
@@ -3642,7 +3663,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
|
|
|
3642
3663
|
args: [DATE_PIPE_DEFAULT_TIMEZONE]
|
|
3643
3664
|
}, {
|
|
3644
3665
|
type: Optional
|
|
3645
|
-
}] }]
|
|
3666
|
+
}] }] });
|
|
3646
3667
|
|
|
3647
3668
|
class SafeHtmlPipe {
|
|
3648
3669
|
constructor() {
|
|
@@ -3653,11 +3674,11 @@ class SafeHtmlPipe {
|
|
|
3653
3674
|
return '';
|
|
3654
3675
|
return this.sanitizer.sanitize(SecurityContext.HTML, value);
|
|
3655
3676
|
}
|
|
3656
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3657
|
-
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
3658
|
-
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 }); }
|
|
3659
3680
|
}
|
|
3660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: SafeHtmlPipe, decorators: [{
|
|
3661
3682
|
type: Injectable
|
|
3662
3683
|
}, {
|
|
3663
3684
|
type: Pipe,
|
|
@@ -3676,8 +3697,8 @@ const IncludeLocalizationResourcesProvider = {
|
|
|
3676
3697
|
* This module will be imported and exported by all others.
|
|
3677
3698
|
*/
|
|
3678
3699
|
class BaseCoreModule {
|
|
3679
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3680
|
-
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,
|
|
3681
3702
|
AutofocusDirective,
|
|
3682
3703
|
DynamicLayoutComponent,
|
|
3683
3704
|
ForDirective,
|
|
@@ -3723,7 +3744,7 @@ class BaseCoreModule {
|
|
|
3723
3744
|
ShortDateTimePipe,
|
|
3724
3745
|
ShortTimePipe,
|
|
3725
3746
|
ShortDatePipe] }); }
|
|
3726
|
-
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,
|
|
3727
3748
|
HttpClientModule,
|
|
3728
3749
|
FormsModule,
|
|
3729
3750
|
ReactiveFormsModule,
|
|
@@ -3735,7 +3756,7 @@ class BaseCoreModule {
|
|
|
3735
3756
|
RouterModule,
|
|
3736
3757
|
LocalizationModule] }); }
|
|
3737
3758
|
}
|
|
3738
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3759
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: BaseCoreModule, decorators: [{
|
|
3739
3760
|
type: NgModule,
|
|
3740
3761
|
args: [{
|
|
3741
3762
|
exports: [
|
|
@@ -3800,16 +3821,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
|
|
|
3800
3821
|
* and it introduces imports useful at root level (e.g. NGXS)
|
|
3801
3822
|
*/
|
|
3802
3823
|
class RootCoreModule {
|
|
3803
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3804
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3805
|
-
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,
|
|
3806
3827
|
LocalizationModule,
|
|
3807
3828
|
HttpClientXsrfModule.withOptions({
|
|
3808
3829
|
cookieName: 'XSRF-TOKEN',
|
|
3809
3830
|
headerName: 'RequestVerificationToken',
|
|
3810
3831
|
}), BaseCoreModule, LocalizationModule] }); }
|
|
3811
3832
|
}
|
|
3812
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3833
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: RootCoreModule, decorators: [{
|
|
3813
3834
|
type: NgModule,
|
|
3814
3835
|
args: [{
|
|
3815
3836
|
exports: [BaseCoreModule, LocalizationModule],
|
|
@@ -3902,11 +3923,11 @@ class CoreModule {
|
|
|
3902
3923
|
],
|
|
3903
3924
|
};
|
|
3904
3925
|
}
|
|
3905
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3906
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3907
|
-
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] }); }
|
|
3908
3929
|
}
|
|
3909
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3930
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: CoreModule, decorators: [{
|
|
3910
3931
|
type: NgModule,
|
|
3911
3932
|
args: [{
|
|
3912
3933
|
exports: [BaseCoreModule],
|
|
@@ -3924,10 +3945,10 @@ class ShowPasswordDirective {
|
|
|
3924
3945
|
return;
|
|
3925
3946
|
element.type = visible ? 'text' : 'password';
|
|
3926
3947
|
}
|
|
3927
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3928
|
-
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 }); }
|
|
3929
3950
|
}
|
|
3930
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ShowPasswordDirective, decorators: [{
|
|
3931
3952
|
type: Directive,
|
|
3932
3953
|
args: [{
|
|
3933
3954
|
standalone: true,
|
|
@@ -3956,10 +3977,10 @@ class TrackCapsLockDirective {
|
|
|
3956
3977
|
}
|
|
3957
3978
|
return false;
|
|
3958
3979
|
}
|
|
3959
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3960
|
-
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 }); }
|
|
3961
3982
|
}
|
|
3962
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3983
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: TrackCapsLockDirective, decorators: [{
|
|
3963
3984
|
type: Directive,
|
|
3964
3985
|
args: [{
|
|
3965
3986
|
standalone: true,
|
|
@@ -3976,11 +3997,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
|
|
|
3976
3997
|
args: ['window:keyup', ['$event']]
|
|
3977
3998
|
}] } });
|
|
3978
3999
|
|
|
4000
|
+
/**
|
|
4001
|
+
* @deprecated Use `permissionGuard` *function* instead.
|
|
4002
|
+
*/
|
|
3979
4003
|
class PermissionGuard {
|
|
3980
4004
|
constructor() {
|
|
3981
4005
|
this.router = inject(Router);
|
|
3982
4006
|
this.routesService = inject(RoutesService);
|
|
3983
|
-
this.
|
|
4007
|
+
this.authService = inject(AuthService);
|
|
3984
4008
|
this.permissionService = inject(PermissionService);
|
|
3985
4009
|
this.httpErrorReporter = inject(HttpErrorReporterService);
|
|
3986
4010
|
}
|
|
@@ -3993,20 +4017,39 @@ class PermissionGuard {
|
|
|
3993
4017
|
if (!requiredPolicy)
|
|
3994
4018
|
return of(true);
|
|
3995
4019
|
return this.permissionService.getGrantedPolicy$(requiredPolicy).pipe(tap(access => {
|
|
3996
|
-
if (!access && this.
|
|
4020
|
+
if (!access && this.authService.isAuthenticated) {
|
|
3997
4021
|
this.httpErrorReporter.reportError({ status: 403 });
|
|
3998
4022
|
}
|
|
3999
4023
|
}));
|
|
4000
4024
|
}
|
|
4001
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4002
|
-
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' }); }
|
|
4003
4027
|
}
|
|
4004
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4028
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: PermissionGuard, decorators: [{
|
|
4005
4029
|
type: Injectable,
|
|
4006
4030
|
args: [{
|
|
4007
4031
|
providedIn: 'root',
|
|
4008
4032
|
}]
|
|
4009
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
|
+
};
|
|
4010
4053
|
|
|
4011
4054
|
class ListResultDto {
|
|
4012
4055
|
constructor(initialValues = {}) {
|
|
@@ -4154,15 +4197,15 @@ class AbpApiDefinitionService {
|
|
|
4154
4197
|
params: { includeTypes: model.includeTypes },
|
|
4155
4198
|
}, { apiName: this.apiName });
|
|
4156
4199
|
}
|
|
4157
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4158
|
-
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' }); }
|
|
4159
4202
|
}
|
|
4160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4203
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: AbpApiDefinitionService, decorators: [{
|
|
4161
4204
|
type: Injectable,
|
|
4162
4205
|
args: [{
|
|
4163
4206
|
providedIn: 'root',
|
|
4164
4207
|
}]
|
|
4165
|
-
}], ctorParameters:
|
|
4208
|
+
}], ctorParameters: () => [{ type: RestService }] });
|
|
4166
4209
|
|
|
4167
4210
|
var index = /*#__PURE__*/Object.freeze({
|
|
4168
4211
|
__proto__: null
|
|
@@ -4596,15 +4639,15 @@ class ApiInterceptor {
|
|
|
4596
4639
|
this.httpWaitService.addRequest(request);
|
|
4597
4640
|
return next.handle(request).pipe(finalize(() => this.httpWaitService.deleteRequest(request)));
|
|
4598
4641
|
}
|
|
4599
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4600
|
-
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' }); }
|
|
4601
4644
|
}
|
|
4602
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4645
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.0.4", ngImport: i0, type: ApiInterceptor, decorators: [{
|
|
4603
4646
|
type: Injectable,
|
|
4604
4647
|
args: [{
|
|
4605
4648
|
providedIn: 'root',
|
|
4606
4649
|
}]
|
|
4607
|
-
}], ctorParameters:
|
|
4650
|
+
}], ctorParameters: () => [{ type: HttpWaitService }] });
|
|
4608
4651
|
|
|
4609
4652
|
// export * from './lib/handlers';
|
|
4610
4653
|
|
|
@@ -4612,5 +4655,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.11", ngImpo
|
|
|
4612
4655
|
* Generated bundle index. Do not edit.
|
|
4613
4656
|
*/
|
|
4614
4657
|
|
|
4615
|
-
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 };
|
|
4616
4659
|
//# sourceMappingURL=abp-ng.core.mjs.map
|