@abp/ng.core 5.2.1 → 5.3.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/esm2020/lib/abstracts/ng-model.component.mjs +3 -3
- package/esm2020/lib/components/dynamic-layout.component.mjs +3 -3
- package/esm2020/lib/components/replaceable-route-container.component.mjs +3 -3
- package/esm2020/lib/components/router-outlet.component.mjs +3 -3
- package/esm2020/lib/core.module.mjs +30 -15
- package/esm2020/lib/directives/autofocus.directive.mjs +3 -3
- package/esm2020/lib/directives/debounce.directive.mjs +3 -3
- package/esm2020/lib/directives/for.directive.mjs +3 -3
- package/esm2020/lib/directives/form-submit.directive.mjs +3 -3
- package/esm2020/lib/directives/init.directive.mjs +3 -3
- package/esm2020/lib/directives/permission.directive.mjs +3 -3
- package/esm2020/lib/directives/replaceable-template.directive.mjs +3 -3
- package/esm2020/lib/directives/stop-propagation.directive.mjs +3 -3
- package/esm2020/lib/guards/auth.guard.mjs +3 -3
- package/esm2020/lib/guards/permission.guard.mjs +3 -3
- package/esm2020/lib/handlers/oauth-configuration.handler.mjs +3 -3
- package/esm2020/lib/handlers/routes.handler.mjs +3 -3
- package/esm2020/lib/interceptors/api.interceptor.mjs +3 -3
- package/esm2020/lib/localization.module.mjs +4 -4
- package/esm2020/lib/pipes/index.mjs +4 -1
- package/esm2020/lib/pipes/localization.pipe.mjs +4 -4
- package/esm2020/lib/pipes/short-date-time.pipe.mjs +34 -0
- package/esm2020/lib/pipes/short-date.pipe.mjs +34 -0
- package/esm2020/lib/pipes/short-time.pipe.mjs +34 -0
- package/esm2020/lib/pipes/sort.pipe.mjs +4 -4
- package/esm2020/lib/pipes/to-injector.pipe.mjs +3 -3
- package/esm2020/lib/proxy/pages/abp/multi-tenancy/abp-tenant.service.mjs +3 -3
- package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/api-exploring/abp-api-definition.service.mjs +3 -3
- package/esm2020/lib/proxy/volo/abp/asp-net-core/mvc/application-configurations/abp-application-configuration.service.mjs +3 -3
- package/esm2020/lib/services/auth.service.mjs +3 -3
- package/esm2020/lib/services/config-state.service.mjs +3 -3
- package/esm2020/lib/services/content-projection.service.mjs +3 -3
- package/esm2020/lib/services/dom-insertion.service.mjs +3 -3
- package/esm2020/lib/services/environment.service.mjs +3 -3
- package/esm2020/lib/services/http-error-reporter.service.mjs +3 -3
- package/esm2020/lib/services/http-wait.service.mjs +3 -3
- package/esm2020/lib/services/lazy-load.service.mjs +3 -3
- package/esm2020/lib/services/list.service.mjs +3 -3
- package/esm2020/lib/services/localization.service.mjs +3 -3
- package/esm2020/lib/services/multi-tenancy.service.mjs +3 -3
- package/esm2020/lib/services/permission.service.mjs +3 -3
- package/esm2020/lib/services/replaceable-components.service.mjs +3 -3
- package/esm2020/lib/services/resource-wait.service.mjs +3 -3
- package/esm2020/lib/services/rest.service.mjs +3 -3
- package/esm2020/lib/services/router-events.service.mjs +3 -3
- package/esm2020/lib/services/router-wait.service.mjs +3 -3
- package/esm2020/lib/services/routes.service.mjs +6 -6
- package/esm2020/lib/services/session-state.service.mjs +3 -3
- package/esm2020/lib/services/subscription.service.mjs +3 -3
- package/esm2020/lib/services/track-by.service.mjs +3 -3
- package/esm2020/testing/lib/core-testing.module.mjs +4 -4
- package/esm2020/testing/lib/services/mock-permission.service.mjs +3 -3
- package/esm2020/testing/lib/services/mock-rest.service.mjs +3 -3
- package/fesm2015/abp-ng.core-locale.mjs.map +1 -1
- package/fesm2015/abp-ng.core-testing.mjs +10 -10
- package/fesm2015/abp-ng.core-testing.mjs.map +1 -1
- package/fesm2015/abp-ng.core.mjs +997 -895
- package/fesm2015/abp-ng.core.mjs.map +1 -1
- package/fesm2020/abp-ng.core-locale.mjs.map +1 -1
- package/fesm2020/abp-ng.core-testing.mjs +10 -10
- package/fesm2020/abp-ng.core-testing.mjs.map +1 -1
- package/fesm2020/abp-ng.core.mjs +1003 -907
- package/fesm2020/abp-ng.core.mjs.map +1 -1
- package/lib/core.module.d.ts +11 -8
- package/lib/pipes/index.d.ts +3 -0
- package/lib/pipes/short-date-time.pipe.d.ts +12 -0
- package/lib/pipes/short-date.pipe.d.ts +12 -0
- package/lib/pipes/short-time.pipe.d.ts +12 -0
- package/package.json +2 -2
package/fesm2020/abp-ng.core.mjs
CHANGED
|
@@ -3,7 +3,7 @@ import { ChangeDetectorRef, Component, Input, InjectionToken, Injectable, Inject
|
|
|
3
3
|
import * as i1$1 from '@angular/router';
|
|
4
4
|
import { PRIMARY_OUTLET, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, ActivatedRoute, Router, RouterModule } from '@angular/router';
|
|
5
5
|
import * as i5 from '@angular/common';
|
|
6
|
-
import { registerLocaleData, DOCUMENT, CommonModule } from '@angular/common';
|
|
6
|
+
import { registerLocaleData, DOCUMENT, DatePipe, DATE_PIPE_DEFAULT_TIMEZONE, CommonModule } from '@angular/common';
|
|
7
7
|
import { BehaviorSubject, Subject, throwError, combineLatest, from, Subscription, fromEvent, of, timer, pipe, Observable, concat, ReplaySubject } from 'rxjs';
|
|
8
8
|
import { map, distinctUntilChanged, filter, catchError, switchMap, take, mapTo, debounceTime, takeUntil, tap, finalize, retryWhen, delay, shareReplay } from 'rxjs/operators';
|
|
9
9
|
import * as i1 from '@angular/common/http';
|
|
@@ -55,9 +55,9 @@ class AbstractNgModelComponent {
|
|
|
55
55
|
this.disabled = isDisabled;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
|
-
AbstractNgModelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
59
|
-
AbstractNgModelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
60
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
58
|
+
AbstractNgModelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbstractNgModelComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
59
|
+
AbstractNgModelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: AbstractNgModelComponent, selector: "ng-component", inputs: { disabled: "disabled", readonly: "readonly", valueFn: "valueFn", valueLimitFn: "valueLimitFn", value: "value" }, ngImport: i0, template: '', isInline: true });
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbstractNgModelComponent, decorators: [{
|
|
61
61
|
type: Component,
|
|
62
62
|
args: [{ template: '' }]
|
|
63
63
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { disabled: [{
|
|
@@ -287,9 +287,9 @@ class EnvironmentService {
|
|
|
287
287
|
this.store.set(environment);
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
EnvironmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
291
|
-
EnvironmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
290
|
+
EnvironmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: EnvironmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
291
|
+
EnvironmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: EnvironmentService, providedIn: 'root' });
|
|
292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: EnvironmentService, decorators: [{
|
|
293
293
|
type: Injectable,
|
|
294
294
|
args: [{ providedIn: 'root' }]
|
|
295
295
|
}] });
|
|
@@ -313,9 +313,9 @@ class HttpErrorReporterService {
|
|
|
313
313
|
return this._errors$.value;
|
|
314
314
|
}
|
|
315
315
|
}
|
|
316
|
-
HttpErrorReporterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
317
|
-
HttpErrorReporterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
318
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
316
|
+
HttpErrorReporterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: HttpErrorReporterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
317
|
+
HttpErrorReporterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: HttpErrorReporterService, providedIn: 'root' });
|
|
318
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: HttpErrorReporterService, decorators: [{
|
|
319
319
|
type: Injectable,
|
|
320
320
|
args: [{ providedIn: 'root' }]
|
|
321
321
|
}] });
|
|
@@ -364,9 +364,9 @@ class RestService {
|
|
|
364
364
|
: new HttpParams({ fromObject: filteredParams });
|
|
365
365
|
}
|
|
366
366
|
}
|
|
367
|
-
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
368
|
-
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
367
|
+
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RestService, deps: [{ token: CORE_OPTIONS }, { token: i1.HttpClient }, { token: EnvironmentService }, { token: HttpErrorReporterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
368
|
+
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RestService, providedIn: 'root' });
|
|
369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RestService, decorators: [{
|
|
370
370
|
type: Injectable,
|
|
371
371
|
args: [{
|
|
372
372
|
providedIn: 'root',
|
|
@@ -388,9 +388,9 @@ class AbpApplicationConfigurationService {
|
|
|
388
388
|
}, { apiName: this.apiName });
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
|
-
AbpApplicationConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
392
|
-
AbpApplicationConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
393
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
391
|
+
AbpApplicationConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpApplicationConfigurationService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
392
|
+
AbpApplicationConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpApplicationConfigurationService, providedIn: 'root' });
|
|
393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpApplicationConfigurationService, decorators: [{
|
|
394
394
|
type: Injectable,
|
|
395
395
|
args: [{
|
|
396
396
|
providedIn: 'root',
|
|
@@ -499,9 +499,9 @@ class ConfigStateService {
|
|
|
499
499
|
}));
|
|
500
500
|
}
|
|
501
501
|
}
|
|
502
|
-
ConfigStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
503
|
-
ConfigStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
504
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
502
|
+
ConfigStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ConfigStateService, deps: [{ token: AbpApplicationConfigurationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
503
|
+
ConfigStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ConfigStateService, providedIn: 'root' });
|
|
504
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ConfigStateService, decorators: [{
|
|
505
505
|
type: Injectable,
|
|
506
506
|
args: [{
|
|
507
507
|
providedIn: 'root',
|
|
@@ -577,9 +577,9 @@ class SessionStateService {
|
|
|
577
577
|
document.documentElement.setAttribute('lang', language);
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
|
-
SessionStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
581
|
-
SessionStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
582
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
580
|
+
SessionStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SessionStateService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
581
|
+
SessionStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SessionStateService, providedIn: 'root' });
|
|
582
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SessionStateService, decorators: [{
|
|
583
583
|
type: Injectable,
|
|
584
584
|
args: [{
|
|
585
585
|
providedIn: 'root',
|
|
@@ -750,9 +750,9 @@ class LocalizationService {
|
|
|
750
750
|
return localization || defaultValue || key;
|
|
751
751
|
}
|
|
752
752
|
}
|
|
753
|
-
LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
754
|
-
LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
755
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
753
|
+
LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationService, deps: [{ token: SessionStateService }, { token: i0.Injector }, { token: LocalizationService, optional: true, skipSelf: true }, { token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
754
|
+
LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationService, providedIn: 'root' });
|
|
755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationService, decorators: [{
|
|
756
756
|
type: Injectable,
|
|
757
757
|
args: [{ providedIn: 'root' }]
|
|
758
758
|
}], ctorParameters: function () { return [{ type: SessionStateService }, { type: i0.Injector }, { type: LocalizationService, decorators: [{
|
|
@@ -820,9 +820,9 @@ class ReplaceableComponentsService {
|
|
|
820
820
|
return this.replaceableComponents$.pipe(map(components => components.find(component => component.key === replaceableComponentKey)));
|
|
821
821
|
}
|
|
822
822
|
}
|
|
823
|
-
ReplaceableComponentsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
824
|
-
ReplaceableComponentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
825
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
823
|
+
ReplaceableComponentsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ReplaceableComponentsService, deps: [{ token: i0.NgZone }, { token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
824
|
+
ReplaceableComponentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ReplaceableComponentsService, providedIn: 'root' });
|
|
825
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ReplaceableComponentsService, decorators: [{
|
|
826
826
|
type: Injectable,
|
|
827
827
|
args: [{ providedIn: 'root' }]
|
|
828
828
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1$1.Router }]; } });
|
|
@@ -853,9 +853,9 @@ class RouterEvents {
|
|
|
853
853
|
return this.getNavigationEvents(...keys);
|
|
854
854
|
}
|
|
855
855
|
}
|
|
856
|
-
RouterEvents.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
857
|
-
RouterEvents.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
858
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
856
|
+
RouterEvents.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterEvents, deps: [{ token: i1$1.Router }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
857
|
+
RouterEvents.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterEvents, providedIn: 'root' });
|
|
858
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterEvents, decorators: [{
|
|
859
859
|
type: Injectable,
|
|
860
860
|
args: [{ providedIn: 'root' }]
|
|
861
861
|
}], ctorParameters: function () { return [{ type: i1$1.Router }]; } });
|
|
@@ -972,9 +972,9 @@ class PermissionService {
|
|
|
972
972
|
return grantedPolicies[key] || false;
|
|
973
973
|
}
|
|
974
974
|
}
|
|
975
|
-
PermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
976
|
-
PermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
977
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
975
|
+
PermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
976
|
+
PermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionService, providedIn: 'root' });
|
|
977
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionService, decorators: [{
|
|
978
978
|
type: Injectable,
|
|
979
979
|
args: [{ providedIn: 'root' }]
|
|
980
980
|
}], ctorParameters: function () { return [{ type: ConfigStateService }]; } });
|
|
@@ -1103,16 +1103,16 @@ class AbstractNavTreeService extends AbstractTreeService {
|
|
|
1103
1103
|
this.subscription.unsubscribe();
|
|
1104
1104
|
}
|
|
1105
1105
|
}
|
|
1106
|
-
AbstractNavTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1107
|
-
AbstractNavTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1106
|
+
AbstractNavTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbstractNavTreeService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1107
|
+
AbstractNavTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbstractNavTreeService });
|
|
1108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbstractNavTreeService, decorators: [{
|
|
1109
1109
|
type: Injectable
|
|
1110
1110
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
1111
1111
|
class RoutesService extends AbstractNavTreeService {
|
|
1112
1112
|
}
|
|
1113
|
-
RoutesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1114
|
-
RoutesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1115
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1113
|
+
RoutesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RoutesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
1114
|
+
RoutesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RoutesService, providedIn: 'root' });
|
|
1115
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RoutesService, decorators: [{
|
|
1116
1116
|
type: Injectable,
|
|
1117
1117
|
args: [{ providedIn: 'root' }]
|
|
1118
1118
|
}] });
|
|
@@ -1149,9 +1149,9 @@ class SubscriptionService {
|
|
|
1149
1149
|
this.subscription = new Subscription();
|
|
1150
1150
|
}
|
|
1151
1151
|
}
|
|
1152
|
-
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1153
|
-
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1154
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1152
|
+
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SubscriptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1153
|
+
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SubscriptionService });
|
|
1154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
1155
1155
|
type: Injectable
|
|
1156
1156
|
}] });
|
|
1157
1157
|
|
|
@@ -1214,9 +1214,9 @@ class DynamicLayoutComponent {
|
|
|
1214
1214
|
return this.replaceableComponents.get(key);
|
|
1215
1215
|
}
|
|
1216
1216
|
}
|
|
1217
|
-
DynamicLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1218
|
-
DynamicLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
1219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1217
|
+
DynamicLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", 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 });
|
|
1218
|
+
DynamicLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: DynamicLayoutComponent, selector: "abp-dynamic-layout", providers: [SubscriptionService], ngImport: i0, template: ` <ng-container *ngIf="isLayoutVisible" [ngComponentOutlet]="layout"></ng-container> `, isInline: true, directives: [{ type: i5.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
|
|
1219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: DynamicLayoutComponent, decorators: [{
|
|
1220
1220
|
type: Component,
|
|
1221
1221
|
args: [{
|
|
1222
1222
|
selector: 'abp-dynamic-layout',
|
|
@@ -1246,11 +1246,11 @@ class ReplaceableRouteContainerComponent {
|
|
|
1246
1246
|
});
|
|
1247
1247
|
}
|
|
1248
1248
|
}
|
|
1249
|
-
ReplaceableRouteContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1250
|
-
ReplaceableRouteContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
1249
|
+
ReplaceableRouteContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ReplaceableRouteContainerComponent, deps: [{ token: i1$1.ActivatedRoute }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
1250
|
+
ReplaceableRouteContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: ReplaceableRouteContainerComponent, selector: "abp-replaceable-route-container", providers: [SubscriptionService], ngImport: i0, template: `
|
|
1251
1251
|
<ng-container *ngComponentOutlet="externalComponent || defaultComponent"></ng-container>
|
|
1252
1252
|
`, isInline: true, directives: [{ type: i5.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
|
|
1253
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ReplaceableRouteContainerComponent, decorators: [{
|
|
1254
1254
|
type: Component,
|
|
1255
1255
|
args: [{
|
|
1256
1256
|
selector: 'abp-replaceable-route-container',
|
|
@@ -1263,9 +1263,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1263
1263
|
|
|
1264
1264
|
class RouterOutletComponent {
|
|
1265
1265
|
}
|
|
1266
|
-
RouterOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1267
|
-
RouterOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
1268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1266
|
+
RouterOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1267
|
+
RouterOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: RouterOutletComponent, selector: "abp-router-outlet", ngImport: i0, template: ` <router-outlet></router-outlet> `, isInline: true, directives: [{ type: i1$1.RouterOutlet, selector: "router-outlet", outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }] });
|
|
1268
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterOutletComponent, decorators: [{
|
|
1269
1269
|
type: Component,
|
|
1270
1270
|
args: [{
|
|
1271
1271
|
selector: 'abp-router-outlet',
|
|
@@ -1625,9 +1625,9 @@ class AutofocusDirective {
|
|
|
1625
1625
|
setTimeout(() => this.elRef.nativeElement.focus(), this.delay);
|
|
1626
1626
|
}
|
|
1627
1627
|
}
|
|
1628
|
-
AutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1629
|
-
AutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
1630
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1628
|
+
AutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1629
|
+
AutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: AutofocusDirective, selector: "[autofocus]", inputs: { delay: ["autofocus", "delay"] }, ngImport: i0 });
|
|
1630
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AutofocusDirective, decorators: [{
|
|
1631
1631
|
type: Directive,
|
|
1632
1632
|
args: [{
|
|
1633
1633
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1652,9 +1652,9 @@ class InputEventDebounceDirective {
|
|
|
1652
1652
|
});
|
|
1653
1653
|
}
|
|
1654
1654
|
}
|
|
1655
|
-
InputEventDebounceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1656
|
-
InputEventDebounceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
1657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1655
|
+
InputEventDebounceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: InputEventDebounceDirective, deps: [{ token: i0.ElementRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1656
|
+
InputEventDebounceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: InputEventDebounceDirective, selector: "[input.debounce]", inputs: { debounce: "debounce" }, outputs: { debounceEvent: "input.debounce" }, providers: [SubscriptionService], ngImport: i0 });
|
|
1657
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: InputEventDebounceDirective, decorators: [{
|
|
1658
1658
|
type: Directive,
|
|
1659
1659
|
args: [{
|
|
1660
1660
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1782,9 +1782,9 @@ class ForDirective {
|
|
|
1782
1782
|
}
|
|
1783
1783
|
}
|
|
1784
1784
|
}
|
|
1785
|
-
ForDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1786
|
-
ForDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
1787
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1785
|
+
ForDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ForDirective, deps: [{ token: i0.TemplateRef }, { token: i0.ViewContainerRef }, { token: i0.IterableDiffers }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1786
|
+
ForDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", 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 });
|
|
1787
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ForDirective, decorators: [{
|
|
1788
1788
|
type: Directive,
|
|
1789
1789
|
args: [{
|
|
1790
1790
|
selector: '[abpFor]',
|
|
@@ -1845,9 +1845,9 @@ class FormSubmitDirective {
|
|
|
1845
1845
|
this.cdRef.detectChanges();
|
|
1846
1846
|
}
|
|
1847
1847
|
}
|
|
1848
|
-
FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1849
|
-
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
1850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1848
|
+
FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormSubmitDirective, deps: [{ token: i1$2.FormGroupDirective, self: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1849
|
+
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: FormSubmitDirective, selector: "form[ngSubmit][formGroup]", inputs: { debounce: "debounce", notValidateOnSubmit: "notValidateOnSubmit" }, outputs: { ngSubmit: "ngSubmit" }, providers: [SubscriptionService], ngImport: i0 });
|
|
1850
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormSubmitDirective, decorators: [{
|
|
1851
1851
|
type: Directive,
|
|
1852
1852
|
args: [{
|
|
1853
1853
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1885,9 +1885,9 @@ class InitDirective {
|
|
|
1885
1885
|
this.init.emit(this.elRef);
|
|
1886
1886
|
}
|
|
1887
1887
|
}
|
|
1888
|
-
InitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1889
|
-
InitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
1890
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1888
|
+
InitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: InitDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1889
|
+
InitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: InitDirective, selector: "[abpInit]", outputs: { init: "abpInit" }, ngImport: i0 });
|
|
1890
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: InitDirective, decorators: [{
|
|
1891
1891
|
type: Directive,
|
|
1892
1892
|
args: [{ selector: '[abpInit]' }]
|
|
1893
1893
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { init: [{
|
|
@@ -1924,9 +1924,9 @@ class PermissionDirective {
|
|
|
1924
1924
|
this.check();
|
|
1925
1925
|
}
|
|
1926
1926
|
}
|
|
1927
|
-
PermissionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1928
|
-
PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
1929
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1927
|
+
PermissionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionDirective, deps: [{ token: i0.TemplateRef, optional: true }, { token: i0.ViewContainerRef }, { token: PermissionService }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1928
|
+
PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: PermissionDirective, selector: "[abpPermission]", inputs: { condition: ["abpPermission", "condition"] }, usesOnChanges: true, ngImport: i0 });
|
|
1929
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionDirective, decorators: [{
|
|
1930
1930
|
type: Directive,
|
|
1931
1931
|
args: [{
|
|
1932
1932
|
selector: '[abpPermission]',
|
|
@@ -2043,9 +2043,9 @@ class ReplaceableTemplateDirective {
|
|
|
2043
2043
|
this.defaultComponentRef = null;
|
|
2044
2044
|
}
|
|
2045
2045
|
}
|
|
2046
|
-
ReplaceableTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2047
|
-
ReplaceableTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
2048
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2046
|
+
ReplaceableTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ReplaceableTemplateDirective, deps: [{ token: i0.Injector }, { token: i0.TemplateRef }, { token: i0.ComponentFactoryResolver }, { token: i0.ViewContainerRef }, { token: ReplaceableComponentsService }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2047
|
+
ReplaceableTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: ReplaceableTemplateDirective, selector: "[abpReplaceableTemplate]", inputs: { data: ["abpReplaceableTemplate", "data"] }, providers: [SubscriptionService], usesOnChanges: true, ngImport: i0 });
|
|
2048
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ReplaceableTemplateDirective, decorators: [{
|
|
2049
2049
|
type: Directive,
|
|
2050
2050
|
args: [{
|
|
2051
2051
|
selector: '[abpReplaceableTemplate]',
|
|
@@ -2069,9 +2069,9 @@ class StopPropagationDirective {
|
|
|
2069
2069
|
});
|
|
2070
2070
|
}
|
|
2071
2071
|
}
|
|
2072
|
-
StopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2073
|
-
StopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
2074
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2072
|
+
StopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: StopPropagationDirective, deps: [{ token: i0.ElementRef }, { token: SubscriptionService }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2073
|
+
StopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: StopPropagationDirective, selector: "[click.stop]", outputs: { stopPropEvent: "click.stop" }, providers: [SubscriptionService], ngImport: i0 });
|
|
2074
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: StopPropagationDirective, decorators: [{
|
|
2075
2075
|
type: Directive,
|
|
2076
2076
|
args: [{
|
|
2077
2077
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -2099,9 +2099,9 @@ class OAuthConfigurationHandler {
|
|
|
2099
2099
|
});
|
|
2100
2100
|
}
|
|
2101
2101
|
}
|
|
2102
|
-
OAuthConfigurationHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2103
|
-
OAuthConfigurationHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2104
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2102
|
+
OAuthConfigurationHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: OAuthConfigurationHandler, deps: [{ token: i1$3.OAuthService }, { token: EnvironmentService }, { token: CORE_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2103
|
+
OAuthConfigurationHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: OAuthConfigurationHandler, providedIn: 'root' });
|
|
2104
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: OAuthConfigurationHandler, decorators: [{
|
|
2105
2105
|
type: Injectable,
|
|
2106
2106
|
args: [{
|
|
2107
2107
|
providedIn: 'root',
|
|
@@ -2130,9 +2130,9 @@ class RoutesHandler {
|
|
|
2130
2130
|
});
|
|
2131
2131
|
}
|
|
2132
2132
|
}
|
|
2133
|
-
RoutesHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2134
|
-
RoutesHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2133
|
+
RoutesHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RoutesHandler, deps: [{ token: RoutesService }, { token: i1$1.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2134
|
+
RoutesHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RoutesHandler, providedIn: 'root' });
|
|
2135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RoutesHandler, decorators: [{
|
|
2136
2136
|
type: Injectable,
|
|
2137
2137
|
args: [{
|
|
2138
2138
|
providedIn: 'root',
|
|
@@ -2231,9 +2231,9 @@ class HttpWaitService {
|
|
|
2231
2231
|
return endpoint === request.endpoint && method === request.method;
|
|
2232
2232
|
}
|
|
2233
2233
|
}
|
|
2234
|
-
HttpWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2235
|
-
HttpWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2234
|
+
HttpWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: HttpWaitService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2235
|
+
HttpWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: HttpWaitService, providedIn: 'root' });
|
|
2236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: HttpWaitService, decorators: [{
|
|
2237
2237
|
type: Injectable,
|
|
2238
2238
|
args: [{
|
|
2239
2239
|
providedIn: 'root',
|
|
@@ -2274,9 +2274,9 @@ class ApiInterceptor {
|
|
|
2274
2274
|
return headers;
|
|
2275
2275
|
}
|
|
2276
2276
|
}
|
|
2277
|
-
ApiInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2278
|
-
ApiInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2279
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2277
|
+
ApiInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ApiInterceptor, deps: [{ token: i1$3.OAuthService }, { token: SessionStateService }, { token: HttpWaitService }, { token: TENANT_KEY }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2278
|
+
ApiInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ApiInterceptor, providedIn: 'root' });
|
|
2279
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ApiInterceptor, decorators: [{
|
|
2280
2280
|
type: Injectable,
|
|
2281
2281
|
args: [{
|
|
2282
2282
|
providedIn: 'root',
|
|
@@ -2303,10 +2303,10 @@ class LocalizationPipe {
|
|
|
2303
2303
|
return this.localization.instant(value, ...params);
|
|
2304
2304
|
}
|
|
2305
2305
|
}
|
|
2306
|
-
LocalizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2307
|
-
LocalizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.
|
|
2308
|
-
LocalizationPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2306
|
+
LocalizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationPipe, deps: [{ token: LocalizationService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2307
|
+
LocalizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationPipe, name: "abpLocalization" });
|
|
2308
|
+
LocalizationPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationPipe });
|
|
2309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationPipe, decorators: [{
|
|
2310
2310
|
type: Injectable
|
|
2311
2311
|
}, {
|
|
2312
2312
|
type: Pipe,
|
|
@@ -2317,10 +2317,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2317
2317
|
|
|
2318
2318
|
class LocalizationModule {
|
|
2319
2319
|
}
|
|
2320
|
-
LocalizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2321
|
-
LocalizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
2322
|
-
LocalizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.
|
|
2323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2320
|
+
LocalizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2321
|
+
LocalizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationModule, declarations: [LocalizationPipe], exports: [LocalizationPipe] });
|
|
2322
|
+
LocalizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationModule });
|
|
2323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationModule, decorators: [{
|
|
2324
2324
|
type: NgModule,
|
|
2325
2325
|
args: [{
|
|
2326
2326
|
exports: [LocalizationPipe],
|
|
@@ -2363,10 +2363,10 @@ class SortPipe {
|
|
|
2363
2363
|
return sortOrder === 'asc' ? sorted : sorted.reverse();
|
|
2364
2364
|
}
|
|
2365
2365
|
}
|
|
2366
|
-
SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2367
|
-
SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.
|
|
2368
|
-
SortPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2369
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2366
|
+
SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2367
|
+
SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SortPipe, name: "abpSort" });
|
|
2368
|
+
SortPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SortPipe });
|
|
2369
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SortPipe, decorators: [{
|
|
2370
2370
|
type: Injectable
|
|
2371
2371
|
}, {
|
|
2372
2372
|
type: Pipe,
|
|
@@ -2393,9 +2393,9 @@ class ToInjectorPipe {
|
|
|
2393
2393
|
});
|
|
2394
2394
|
}
|
|
2395
2395
|
}
|
|
2396
|
-
ToInjectorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2397
|
-
ToInjectorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.
|
|
2398
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2396
|
+
ToInjectorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ToInjectorPipe, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2397
|
+
ToInjectorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ToInjectorPipe, name: "toInjector" });
|
|
2398
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ToInjectorPipe, decorators: [{
|
|
2399
2399
|
type: Pipe,
|
|
2400
2400
|
args: [{
|
|
2401
2401
|
name: 'toInjector',
|
|
@@ -2692,9 +2692,9 @@ class AuthService {
|
|
|
2692
2692
|
return this.strategy.login(params);
|
|
2693
2693
|
}
|
|
2694
2694
|
}
|
|
2695
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2696
|
-
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2697
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2695
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AuthService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2696
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
2697
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AuthService, decorators: [{
|
|
2698
2698
|
type: Injectable,
|
|
2699
2699
|
args: [{
|
|
2700
2700
|
providedIn: 'root',
|
|
@@ -2749,9 +2749,9 @@ class AbpTenantService {
|
|
|
2749
2749
|
}, { apiName: this.apiName });
|
|
2750
2750
|
}
|
|
2751
2751
|
}
|
|
2752
|
-
AbpTenantService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2753
|
-
AbpTenantService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2754
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2752
|
+
AbpTenantService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpTenantService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2753
|
+
AbpTenantService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpTenantService, providedIn: 'root' });
|
|
2754
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpTenantService, decorators: [{
|
|
2755
2755
|
type: Injectable,
|
|
2756
2756
|
args: [{
|
|
2757
2757
|
providedIn: 'root',
|
|
@@ -2784,9 +2784,9 @@ class MultiTenancyService {
|
|
|
2784
2784
|
.pipe(switchMap(this.setTenantToState));
|
|
2785
2785
|
}
|
|
2786
2786
|
}
|
|
2787
|
-
MultiTenancyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2788
|
-
MultiTenancyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2789
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2787
|
+
MultiTenancyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: MultiTenancyService, deps: [{ token: RestService }, { token: SessionStateService }, { token: AbpTenantService }, { token: ConfigStateService }, { token: TENANT_KEY }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2788
|
+
MultiTenancyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: MultiTenancyService, providedIn: 'root' });
|
|
2789
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: MultiTenancyService, decorators: [{
|
|
2790
2790
|
type: Injectable,
|
|
2791
2791
|
args: [{ providedIn: 'root' }]
|
|
2792
2792
|
}], ctorParameters: function () { return [{ type: RestService }, { type: SessionStateService }, { type: AbpTenantService }, { type: ConfigStateService }, { type: undefined, decorators: [{
|
|
@@ -2917,910 +2917,1006 @@ function localeInitializer(injector) {
|
|
|
2917
2917
|
return fn;
|
|
2918
2918
|
}
|
|
2919
2919
|
|
|
2920
|
-
|
|
2921
|
-
|
|
2920
|
+
class ContentProjectionService {
|
|
2921
|
+
constructor(injector) {
|
|
2922
|
+
this.injector = injector;
|
|
2923
|
+
}
|
|
2924
|
+
projectContent(projectionStrategy, injector = this.injector) {
|
|
2925
|
+
return projectionStrategy.injectContent(injector);
|
|
2926
|
+
}
|
|
2922
2927
|
}
|
|
2923
|
-
|
|
2924
|
-
|
|
2925
|
-
|
|
2926
|
-
|
|
2927
|
-
|
|
2928
|
-
|
|
2929
|
-
|
|
2928
|
+
ContentProjectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ContentProjectionService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2929
|
+
ContentProjectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ContentProjectionService, providedIn: 'root' });
|
|
2930
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ContentProjectionService, decorators: [{
|
|
2931
|
+
type: Injectable,
|
|
2932
|
+
args: [{ providedIn: 'root' }]
|
|
2933
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
2934
|
+
|
|
2935
|
+
function getShortDateFormat(configStateService) {
|
|
2936
|
+
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
2937
|
+
return dateTimeFormat.shortDatePattern;
|
|
2930
2938
|
}
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
DynamicLayoutComponent,
|
|
2935
|
-
ForDirective,
|
|
2936
|
-
FormSubmitDirective,
|
|
2937
|
-
InitDirective,
|
|
2938
|
-
InputEventDebounceDirective,
|
|
2939
|
-
PermissionDirective,
|
|
2940
|
-
ReplaceableRouteContainerComponent,
|
|
2941
|
-
ReplaceableTemplateDirective,
|
|
2942
|
-
RouterOutletComponent,
|
|
2943
|
-
SortPipe,
|
|
2944
|
-
StopPropagationDirective,
|
|
2945
|
-
ToInjectorPipe], imports: [OAuthModule,
|
|
2946
|
-
CommonModule,
|
|
2947
|
-
HttpClientModule,
|
|
2948
|
-
FormsModule,
|
|
2949
|
-
ReactiveFormsModule,
|
|
2950
|
-
RouterModule,
|
|
2951
|
-
LocalizationModule], exports: [CommonModule,
|
|
2952
|
-
HttpClientModule,
|
|
2953
|
-
FormsModule,
|
|
2954
|
-
ReactiveFormsModule,
|
|
2955
|
-
RouterModule,
|
|
2956
|
-
LocalizationModule,
|
|
2957
|
-
AbstractNgModelComponent,
|
|
2958
|
-
AutofocusDirective,
|
|
2959
|
-
DynamicLayoutComponent,
|
|
2960
|
-
ForDirective,
|
|
2961
|
-
FormSubmitDirective,
|
|
2962
|
-
InitDirective,
|
|
2963
|
-
InputEventDebounceDirective,
|
|
2964
|
-
PermissionDirective,
|
|
2965
|
-
ReplaceableRouteContainerComponent,
|
|
2966
|
-
ReplaceableTemplateDirective,
|
|
2967
|
-
RouterOutletComponent,
|
|
2968
|
-
SortPipe,
|
|
2969
|
-
StopPropagationDirective,
|
|
2970
|
-
ToInjectorPipe] });
|
|
2971
|
-
BaseCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseCoreModule, providers: [LocalizationPipe], imports: [[
|
|
2972
|
-
OAuthModule,
|
|
2973
|
-
CommonModule,
|
|
2974
|
-
HttpClientModule,
|
|
2975
|
-
FormsModule,
|
|
2976
|
-
ReactiveFormsModule,
|
|
2977
|
-
RouterModule,
|
|
2978
|
-
LocalizationModule,
|
|
2979
|
-
], CommonModule,
|
|
2980
|
-
HttpClientModule,
|
|
2981
|
-
FormsModule,
|
|
2982
|
-
ReactiveFormsModule,
|
|
2983
|
-
RouterModule,
|
|
2984
|
-
LocalizationModule] });
|
|
2985
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseCoreModule, decorators: [{
|
|
2986
|
-
type: NgModule,
|
|
2987
|
-
args: [{
|
|
2988
|
-
exports: [
|
|
2989
|
-
CommonModule,
|
|
2990
|
-
HttpClientModule,
|
|
2991
|
-
FormsModule,
|
|
2992
|
-
ReactiveFormsModule,
|
|
2993
|
-
RouterModule,
|
|
2994
|
-
LocalizationModule,
|
|
2995
|
-
AbstractNgModelComponent,
|
|
2996
|
-
AutofocusDirective,
|
|
2997
|
-
DynamicLayoutComponent,
|
|
2998
|
-
ForDirective,
|
|
2999
|
-
FormSubmitDirective,
|
|
3000
|
-
InitDirective,
|
|
3001
|
-
InputEventDebounceDirective,
|
|
3002
|
-
PermissionDirective,
|
|
3003
|
-
ReplaceableRouteContainerComponent,
|
|
3004
|
-
ReplaceableTemplateDirective,
|
|
3005
|
-
RouterOutletComponent,
|
|
3006
|
-
SortPipe,
|
|
3007
|
-
StopPropagationDirective,
|
|
3008
|
-
ToInjectorPipe,
|
|
3009
|
-
],
|
|
3010
|
-
imports: [
|
|
3011
|
-
OAuthModule,
|
|
3012
|
-
CommonModule,
|
|
3013
|
-
HttpClientModule,
|
|
3014
|
-
FormsModule,
|
|
3015
|
-
ReactiveFormsModule,
|
|
3016
|
-
RouterModule,
|
|
3017
|
-
LocalizationModule,
|
|
3018
|
-
],
|
|
3019
|
-
declarations: [
|
|
3020
|
-
AbstractNgModelComponent,
|
|
3021
|
-
AutofocusDirective,
|
|
3022
|
-
DynamicLayoutComponent,
|
|
3023
|
-
ForDirective,
|
|
3024
|
-
FormSubmitDirective,
|
|
3025
|
-
InitDirective,
|
|
3026
|
-
InputEventDebounceDirective,
|
|
3027
|
-
PermissionDirective,
|
|
3028
|
-
ReplaceableRouteContainerComponent,
|
|
3029
|
-
ReplaceableTemplateDirective,
|
|
3030
|
-
RouterOutletComponent,
|
|
3031
|
-
SortPipe,
|
|
3032
|
-
StopPropagationDirective,
|
|
3033
|
-
ToInjectorPipe,
|
|
3034
|
-
],
|
|
3035
|
-
providers: [LocalizationPipe]
|
|
3036
|
-
}]
|
|
3037
|
-
}] });
|
|
3038
|
-
/**
|
|
3039
|
-
* RootCoreModule is the module that will be used at root level
|
|
3040
|
-
* and it introduces imports useful at root level (e.g. NGXS)
|
|
3041
|
-
*/
|
|
3042
|
-
class RootCoreModule {
|
|
2939
|
+
function getShortTimeFormat(configStateService) {
|
|
2940
|
+
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
2941
|
+
return dateTimeFormat.shortTimePattern.replace('tt', 'a');
|
|
3043
2942
|
}
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
|
|
3072
|
-
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
{
|
|
3113
|
-
provide: APP_INITIALIZER,
|
|
3114
|
-
multi: true,
|
|
3115
|
-
deps: [LocalizationService],
|
|
3116
|
-
useFactory: noop,
|
|
3117
|
-
},
|
|
3118
|
-
{
|
|
3119
|
-
provide: APP_INITIALIZER,
|
|
3120
|
-
multi: true,
|
|
3121
|
-
deps: [RoutesHandler],
|
|
3122
|
-
useFactory: noop,
|
|
3123
|
-
},
|
|
3124
|
-
{ provide: OAuthStorage, useFactory: storageFactory },
|
|
3125
|
-
{ provide: TENANT_KEY, useValue: options.tenantKey || '__tenant' },
|
|
3126
|
-
{
|
|
3127
|
-
provide: LOCALIZATIONS,
|
|
3128
|
-
multi: true,
|
|
3129
|
-
useValue: localizationContributor(options.localizations),
|
|
3130
|
-
deps: [LocalizationService],
|
|
3131
|
-
},
|
|
3132
|
-
],
|
|
3133
|
-
};
|
|
2943
|
+
function getShortDateShortTimeFormat(configStateService) {
|
|
2944
|
+
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
2945
|
+
return `${dateTimeFormat.shortDatePattern} ${dateTimeFormat.shortTimePattern.replace('tt', 'a')}`;
|
|
2946
|
+
}
|
|
2947
|
+
|
|
2948
|
+
class LazyModuleFactory extends NgModuleFactory {
|
|
2949
|
+
constructor(moduleWithProviders) {
|
|
2950
|
+
super();
|
|
2951
|
+
this.moduleWithProviders = moduleWithProviders;
|
|
2952
|
+
}
|
|
2953
|
+
get moduleType() {
|
|
2954
|
+
return this.moduleWithProviders.ngModule;
|
|
2955
|
+
}
|
|
2956
|
+
create(parentInjector) {
|
|
2957
|
+
const injector = Injector.create({
|
|
2958
|
+
parent: parentInjector,
|
|
2959
|
+
providers: this.moduleWithProviders.providers,
|
|
2960
|
+
});
|
|
2961
|
+
const compiler = injector.get(Compiler);
|
|
2962
|
+
const factory = compiler.compileModuleSync(this.moduleType);
|
|
2963
|
+
return factory.create(injector);
|
|
2964
|
+
}
|
|
2965
|
+
}
|
|
2966
|
+
function featuresFactory(configState, featureKeys, mapFn = features => features) {
|
|
2967
|
+
return configState.getFeatures$(featureKeys).pipe(filter(Boolean), map(mapFn));
|
|
2968
|
+
}
|
|
2969
|
+
|
|
2970
|
+
function downloadBlob(blob, filename) {
|
|
2971
|
+
const blobUrl = URL.createObjectURL(blob);
|
|
2972
|
+
const link = document.createElement('a');
|
|
2973
|
+
link.href = blobUrl;
|
|
2974
|
+
link.download = filename;
|
|
2975
|
+
document.body.appendChild(link);
|
|
2976
|
+
link.dispatchEvent(new MouseEvent('click', {
|
|
2977
|
+
bubbles: true,
|
|
2978
|
+
cancelable: true,
|
|
2979
|
+
view: window,
|
|
2980
|
+
}));
|
|
2981
|
+
document.body.removeChild(link);
|
|
2982
|
+
}
|
|
2983
|
+
|
|
2984
|
+
function isNumber(value) {
|
|
2985
|
+
return value == Number(value);
|
|
2986
|
+
}
|
|
2987
|
+
|
|
2988
|
+
function mapEnumToOptions(_enum) {
|
|
2989
|
+
const options = [];
|
|
2990
|
+
for (const member in _enum)
|
|
2991
|
+
if (!isNumber(member))
|
|
2992
|
+
options.push({
|
|
2993
|
+
key: member,
|
|
2994
|
+
value: _enum[member],
|
|
2995
|
+
});
|
|
2996
|
+
return options;
|
|
2997
|
+
}
|
|
2998
|
+
|
|
2999
|
+
function uuid(a) {
|
|
3000
|
+
return a
|
|
3001
|
+
? (a ^ ((Math.random() * 16) >> (a / 4))).toString(16)
|
|
3002
|
+
: ('' + 1e7 + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, uuid);
|
|
3003
|
+
}
|
|
3004
|
+
function generateHash(value) {
|
|
3005
|
+
let hashed = 0;
|
|
3006
|
+
let charCode;
|
|
3007
|
+
for (let i = 0; i < value.length; i++) {
|
|
3008
|
+
charCode = value.charCodeAt(i);
|
|
3009
|
+
hashed = (hashed << 5) - hashed + charCode;
|
|
3010
|
+
hashed |= 0;
|
|
3134
3011
|
}
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3012
|
+
return hashed;
|
|
3013
|
+
}
|
|
3014
|
+
function generatePassword(length = 8) {
|
|
3015
|
+
length = Math.min(Math.max(4, length), 128);
|
|
3016
|
+
const lowers = 'abcdefghijklmnopqrstuvwxyz';
|
|
3017
|
+
const uppers = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
3018
|
+
const numbers = '0123456789';
|
|
3019
|
+
const specials = '!@#$%&*()_+{}<>?[]./';
|
|
3020
|
+
const all = lowers + uppers + numbers + specials;
|
|
3021
|
+
const getRandom = (chrSet) => chrSet[Math.floor(Math.random() * chrSet.length)];
|
|
3022
|
+
const password = Array({ length });
|
|
3023
|
+
password[0] = getRandom(lowers);
|
|
3024
|
+
password[1] = getRandom(uppers);
|
|
3025
|
+
password[2] = getRandom(numbers);
|
|
3026
|
+
password[3] = getRandom(specials);
|
|
3027
|
+
for (let i = 4; i < length; i++) {
|
|
3028
|
+
password[i] = getRandom(all);
|
|
3029
|
+
}
|
|
3030
|
+
return password.sort(() => 0.5 - Math.random()).join('');
|
|
3031
|
+
}
|
|
3032
|
+
|
|
3033
|
+
class CrossOriginStrategy {
|
|
3034
|
+
constructor(crossorigin, integrity) {
|
|
3035
|
+
this.crossorigin = crossorigin;
|
|
3036
|
+
this.integrity = integrity;
|
|
3037
|
+
}
|
|
3038
|
+
setCrossOrigin(element) {
|
|
3039
|
+
if (this.integrity)
|
|
3040
|
+
element.setAttribute('integrity', this.integrity);
|
|
3041
|
+
element.setAttribute('crossorigin', this.crossorigin);
|
|
3147
3042
|
}
|
|
3148
3043
|
}
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3044
|
+
class NoCrossOriginStrategy extends CrossOriginStrategy {
|
|
3045
|
+
setCrossOrigin() { }
|
|
3046
|
+
}
|
|
3047
|
+
const CROSS_ORIGIN_STRATEGY = {
|
|
3048
|
+
Anonymous(integrity) {
|
|
3049
|
+
return new CrossOriginStrategy('anonymous', integrity);
|
|
3050
|
+
},
|
|
3051
|
+
UseCredentials(integrity) {
|
|
3052
|
+
return new CrossOriginStrategy('use-credentials', integrity);
|
|
3053
|
+
},
|
|
3054
|
+
None() {
|
|
3055
|
+
return new NoCrossOriginStrategy(null);
|
|
3056
|
+
},
|
|
3057
|
+
};
|
|
3058
|
+
|
|
3059
|
+
class DomStrategy {
|
|
3060
|
+
constructor(target = document.head, position = 'beforeend') {
|
|
3061
|
+
this.target = target;
|
|
3062
|
+
this.position = position;
|
|
3063
|
+
}
|
|
3064
|
+
insertElement(element) {
|
|
3065
|
+
this.target.insertAdjacentElement(this.position, element);
|
|
3066
|
+
}
|
|
3067
|
+
}
|
|
3068
|
+
const DOM_STRATEGY = {
|
|
3069
|
+
AfterElement(element) {
|
|
3070
|
+
return new DomStrategy(element, 'afterend');
|
|
3071
|
+
},
|
|
3072
|
+
AppendToBody() {
|
|
3073
|
+
return new DomStrategy(document.body, 'beforeend');
|
|
3074
|
+
},
|
|
3075
|
+
AppendToHead() {
|
|
3076
|
+
return new DomStrategy(document.head, 'beforeend');
|
|
3077
|
+
},
|
|
3078
|
+
BeforeElement(element) {
|
|
3079
|
+
return new DomStrategy(element, 'beforebegin');
|
|
3080
|
+
},
|
|
3081
|
+
PrependToHead() {
|
|
3082
|
+
return new DomStrategy(document.head, 'afterbegin');
|
|
3083
|
+
},
|
|
3084
|
+
};
|
|
3085
|
+
|
|
3086
|
+
function fromLazyLoad(element, domStrategy = DOM_STRATEGY.AppendToHead(), crossOriginStrategy = CROSS_ORIGIN_STRATEGY.Anonymous()) {
|
|
3087
|
+
crossOriginStrategy.setCrossOrigin(element);
|
|
3088
|
+
domStrategy.insertElement(element);
|
|
3089
|
+
return new Observable((observer) => {
|
|
3090
|
+
element.onload = (event) => {
|
|
3091
|
+
clearCallbacks(element);
|
|
3092
|
+
observer.next(event);
|
|
3093
|
+
observer.complete();
|
|
3094
|
+
};
|
|
3095
|
+
const handleError = createErrorHandler(observer, element);
|
|
3096
|
+
element.onerror = handleError;
|
|
3097
|
+
element.onabort = handleError;
|
|
3098
|
+
element.onemptied = handleError;
|
|
3099
|
+
element.onstalled = handleError;
|
|
3100
|
+
element.onsuspend = handleError;
|
|
3101
|
+
return () => {
|
|
3102
|
+
clearCallbacks(element);
|
|
3103
|
+
observer.complete();
|
|
3104
|
+
};
|
|
3105
|
+
});
|
|
3106
|
+
}
|
|
3107
|
+
function createErrorHandler(observer, element) {
|
|
3108
|
+
return function (event) {
|
|
3109
|
+
clearCallbacks(element);
|
|
3110
|
+
element.parentNode.removeChild(element);
|
|
3111
|
+
observer.error(event);
|
|
3112
|
+
};
|
|
3113
|
+
}
|
|
3114
|
+
function clearCallbacks(element) {
|
|
3115
|
+
element.onload = null;
|
|
3116
|
+
element.onerror = null;
|
|
3117
|
+
element.onabort = null;
|
|
3118
|
+
element.onemptied = null;
|
|
3119
|
+
element.onstalled = null;
|
|
3120
|
+
element.onsuspend = null;
|
|
3161
3121
|
}
|
|
3162
3122
|
|
|
3163
|
-
class
|
|
3164
|
-
constructor(
|
|
3165
|
-
this.
|
|
3166
|
-
this.authService = authService;
|
|
3123
|
+
class DomInsertionService {
|
|
3124
|
+
constructor() {
|
|
3125
|
+
this.inserted = new Set();
|
|
3167
3126
|
}
|
|
3168
|
-
|
|
3169
|
-
const
|
|
3170
|
-
if (
|
|
3171
|
-
return
|
|
3172
|
-
|
|
3173
|
-
this.
|
|
3174
|
-
return
|
|
3127
|
+
insertContent(contentStrategy) {
|
|
3128
|
+
const hash = generateHash(contentStrategy.content);
|
|
3129
|
+
if (this.inserted.has(hash))
|
|
3130
|
+
return;
|
|
3131
|
+
const element = contentStrategy.insertElement();
|
|
3132
|
+
this.inserted.add(hash);
|
|
3133
|
+
return element;
|
|
3134
|
+
}
|
|
3135
|
+
removeContent(element) {
|
|
3136
|
+
const hash = generateHash(element.textContent);
|
|
3137
|
+
this.inserted.delete(hash);
|
|
3138
|
+
element.parentNode.removeChild(element);
|
|
3139
|
+
}
|
|
3140
|
+
has(content) {
|
|
3141
|
+
const hash = generateHash(content);
|
|
3142
|
+
return this.inserted.has(hash);
|
|
3143
|
+
}
|
|
3144
|
+
}
|
|
3145
|
+
DomInsertionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: DomInsertionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3146
|
+
DomInsertionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: DomInsertionService, providedIn: 'root' });
|
|
3147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: DomInsertionService, decorators: [{
|
|
3148
|
+
type: Injectable,
|
|
3149
|
+
args: [{ providedIn: 'root' }]
|
|
3150
|
+
}] });
|
|
3151
|
+
|
|
3152
|
+
class ResourceWaitService {
|
|
3153
|
+
constructor() {
|
|
3154
|
+
this.store = new InternalStore({ resources: new Set() });
|
|
3155
|
+
}
|
|
3156
|
+
getLoading() {
|
|
3157
|
+
return !!this.store.state.resources.size;
|
|
3158
|
+
}
|
|
3159
|
+
getLoading$() {
|
|
3160
|
+
return this.store.sliceState(({ resources }) => !!resources.size);
|
|
3161
|
+
}
|
|
3162
|
+
updateLoading$() {
|
|
3163
|
+
return this.store.sliceUpdate(({ resources }) => !!resources.size);
|
|
3164
|
+
}
|
|
3165
|
+
clearLoading() {
|
|
3166
|
+
this.store.patch({ resources: new Set() });
|
|
3167
|
+
}
|
|
3168
|
+
addResource(resource) {
|
|
3169
|
+
const resources = this.store.state.resources;
|
|
3170
|
+
resources.add(resource);
|
|
3171
|
+
this.store.patch({ resources });
|
|
3172
|
+
}
|
|
3173
|
+
deleteResource(resource) {
|
|
3174
|
+
const resources = this.store.state.resources;
|
|
3175
|
+
resources.delete(resource);
|
|
3176
|
+
this.store.patch({ resources });
|
|
3175
3177
|
}
|
|
3176
3178
|
}
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3179
|
+
ResourceWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ResourceWaitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3180
|
+
ResourceWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ResourceWaitService, providedIn: 'root' });
|
|
3181
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ResourceWaitService, decorators: [{
|
|
3180
3182
|
type: Injectable,
|
|
3181
3183
|
args: [{
|
|
3182
3184
|
providedIn: 'root',
|
|
3183
3185
|
}]
|
|
3184
|
-
}]
|
|
3186
|
+
}] });
|
|
3185
3187
|
|
|
3186
|
-
class
|
|
3187
|
-
constructor(
|
|
3188
|
-
this.
|
|
3189
|
-
this.
|
|
3190
|
-
this.permissionService = permissionService;
|
|
3191
|
-
this.httpErrorReporter = httpErrorReporter;
|
|
3188
|
+
class LazyLoadService {
|
|
3189
|
+
constructor(resourceWaitService) {
|
|
3190
|
+
this.resourceWaitService = resourceWaitService;
|
|
3191
|
+
this.loaded = new Map();
|
|
3192
3192
|
}
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3193
|
+
load(strategy, retryTimes, retryDelay) {
|
|
3194
|
+
if (this.loaded.has(strategy.path))
|
|
3195
|
+
return of(new CustomEvent('load'));
|
|
3196
|
+
this.resourceWaitService.addResource(strategy.path);
|
|
3197
|
+
return strategy.createStream().pipe(retryWhen(error$ => concat(error$.pipe(delay(retryDelay), take(retryTimes)), throwError(new CustomEvent('error')))), tap(() => {
|
|
3198
|
+
this.loaded.set(strategy.path, strategy.element);
|
|
3199
|
+
this.resourceWaitService.deleteResource(strategy.path);
|
|
3200
|
+
}), delay(100), shareReplay({ bufferSize: 1, refCount: true }));
|
|
3201
|
+
}
|
|
3202
|
+
remove(path) {
|
|
3203
|
+
const element = this.loaded.get(path);
|
|
3204
|
+
if (!element)
|
|
3205
|
+
return false;
|
|
3206
|
+
element.parentNode.removeChild(element);
|
|
3207
|
+
this.loaded.delete(path);
|
|
3208
|
+
return true;
|
|
3206
3209
|
}
|
|
3207
3210
|
}
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3211
|
+
LazyLoadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LazyLoadService, deps: [{ token: ResourceWaitService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3212
|
+
LazyLoadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LazyLoadService, providedIn: 'root' });
|
|
3213
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LazyLoadService, decorators: [{
|
|
3211
3214
|
type: Injectable,
|
|
3212
3215
|
args: [{
|
|
3213
3216
|
providedIn: 'root',
|
|
3214
3217
|
}]
|
|
3215
|
-
}], ctorParameters: function () { return [{ type:
|
|
3218
|
+
}], ctorParameters: function () { return [{ type: ResourceWaitService }]; } });
|
|
3216
3219
|
|
|
3217
|
-
|
|
3218
|
-
|
|
3219
|
-
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
|
|
3236
|
-
|
|
3237
|
-
|
|
3238
|
-
|
|
3239
|
-
|
|
3240
|
-
}
|
|
3241
|
-
}
|
|
3242
|
-
class PagedResultRequestDto extends LimitedResultRequestDto {
|
|
3243
|
-
constructor(initialValues = {}) {
|
|
3244
|
-
super(initialValues);
|
|
3245
|
-
}
|
|
3246
|
-
}
|
|
3247
|
-
class PagedAndSortedResultRequestDto extends PagedResultRequestDto {
|
|
3248
|
-
constructor(initialValues = {}) {
|
|
3249
|
-
super(initialValues);
|
|
3220
|
+
const LIST_QUERY_DEBOUNCE_TIME = new InjectionToken('LIST_QUERY_DEBOUNCE_TIME');
|
|
3221
|
+
|
|
3222
|
+
class ListService {
|
|
3223
|
+
constructor(injector) {
|
|
3224
|
+
this._filter = '';
|
|
3225
|
+
this._maxResultCount = 10;
|
|
3226
|
+
this._skipCount = 0;
|
|
3227
|
+
this._page = 0;
|
|
3228
|
+
this._sortKey = '';
|
|
3229
|
+
this._sortOrder = '';
|
|
3230
|
+
this._query$ = new ReplaySubject(1);
|
|
3231
|
+
this._isLoading$ = new BehaviorSubject(false);
|
|
3232
|
+
this.destroy$ = new Subject();
|
|
3233
|
+
this.get = () => {
|
|
3234
|
+
this.resetPageWhenUnchanged();
|
|
3235
|
+
this.next();
|
|
3236
|
+
};
|
|
3237
|
+
this.getWithoutPageReset = () => {
|
|
3238
|
+
this.next();
|
|
3239
|
+
};
|
|
3240
|
+
const delay = injector.get(LIST_QUERY_DEBOUNCE_TIME, 300);
|
|
3241
|
+
this.delay = delay ? debounceTime(delay) : tap();
|
|
3242
|
+
this.get();
|
|
3250
3243
|
}
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
for (const key in initialValues) {
|
|
3255
|
-
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3256
|
-
this[key] = initialValues[key];
|
|
3257
|
-
}
|
|
3258
|
-
}
|
|
3244
|
+
set filter(value) {
|
|
3245
|
+
this._filter = value;
|
|
3246
|
+
this.get();
|
|
3259
3247
|
}
|
|
3260
|
-
|
|
3261
|
-
|
|
3262
|
-
constructor(initialValues = {}) {
|
|
3263
|
-
super(initialValues);
|
|
3248
|
+
get filter() {
|
|
3249
|
+
return this._filter;
|
|
3264
3250
|
}
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
super(initialValues);
|
|
3251
|
+
set maxResultCount(value) {
|
|
3252
|
+
this._maxResultCount = value;
|
|
3253
|
+
this.get();
|
|
3269
3254
|
}
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
constructor(initialValues = {}) {
|
|
3273
|
-
super(initialValues);
|
|
3255
|
+
get maxResultCount() {
|
|
3256
|
+
return this._maxResultCount;
|
|
3274
3257
|
}
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3258
|
+
set page(value) {
|
|
3259
|
+
if (value === this._page)
|
|
3260
|
+
return;
|
|
3261
|
+
this._page = value;
|
|
3262
|
+
this.get();
|
|
3279
3263
|
}
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
constructor(initialValues = {}) {
|
|
3283
|
-
super(initialValues);
|
|
3264
|
+
get page() {
|
|
3265
|
+
return this._page;
|
|
3284
3266
|
}
|
|
3285
|
-
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
super(initialValues);
|
|
3267
|
+
set sortKey(value) {
|
|
3268
|
+
this._sortKey = value;
|
|
3269
|
+
this.get();
|
|
3289
3270
|
}
|
|
3290
|
-
|
|
3291
|
-
|
|
3292
|
-
constructor(initialValues = {}) {
|
|
3293
|
-
for (const key in initialValues) {
|
|
3294
|
-
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3295
|
-
this[key] = initialValues[key];
|
|
3296
|
-
}
|
|
3297
|
-
}
|
|
3271
|
+
get sortKey() {
|
|
3272
|
+
return this._sortKey;
|
|
3298
3273
|
}
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
|
|
3302
|
-
super(initialValues);
|
|
3274
|
+
set sortOrder(value) {
|
|
3275
|
+
this._sortOrder = value;
|
|
3276
|
+
this.get();
|
|
3303
3277
|
}
|
|
3304
|
-
|
|
3305
|
-
|
|
3306
|
-
constructor(initialValues = {}) {
|
|
3307
|
-
super(initialValues);
|
|
3278
|
+
get sortOrder() {
|
|
3279
|
+
return this._sortOrder;
|
|
3308
3280
|
}
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3281
|
+
get query$() {
|
|
3282
|
+
return this._query$
|
|
3283
|
+
.asObservable()
|
|
3284
|
+
.pipe(this.delay, shareReplay({ bufferSize: 1, refCount: true }));
|
|
3313
3285
|
}
|
|
3314
|
-
|
|
3315
|
-
|
|
3316
|
-
constructor(initialValues = {}) {
|
|
3317
|
-
super(initialValues);
|
|
3286
|
+
get isLoading$() {
|
|
3287
|
+
return this._isLoading$.asObservable();
|
|
3318
3288
|
}
|
|
3319
|
-
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
super(initialValues);
|
|
3289
|
+
hookToQuery(streamCreatorCallback) {
|
|
3290
|
+
this._isLoading$.next(true);
|
|
3291
|
+
return this.query$.pipe(switchMap(query => streamCreatorCallback(query).pipe(catchError(() => of(null)))), filter(Boolean), tap(() => this._isLoading$.next(false)), shareReplay({ bufferSize: 1, refCount: true }), takeUntil(this.destroy$));
|
|
3323
3292
|
}
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
constructor(initialValues = {}) {
|
|
3327
|
-
super(initialValues);
|
|
3293
|
+
ngOnDestroy() {
|
|
3294
|
+
this.destroy$.next();
|
|
3328
3295
|
}
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3296
|
+
resetPageWhenUnchanged() {
|
|
3297
|
+
const skipCount = this._page * this._maxResultCount;
|
|
3298
|
+
if (skipCount === this._skipCount) {
|
|
3299
|
+
this._page = 0;
|
|
3300
|
+
this._skipCount = 0;
|
|
3301
|
+
}
|
|
3302
|
+
else
|
|
3303
|
+
this._skipCount = skipCount;
|
|
3333
3304
|
}
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
method: 'GET',
|
|
3342
|
-
url: '/api/abp/api-definition',
|
|
3343
|
-
params: { includeTypes: model.includeTypes },
|
|
3344
|
-
}, { apiName: this.apiName });
|
|
3305
|
+
next() {
|
|
3306
|
+
this._query$.next({
|
|
3307
|
+
filter: this._filter || undefined,
|
|
3308
|
+
maxResultCount: this._maxResultCount,
|
|
3309
|
+
skipCount: this._page * this._maxResultCount,
|
|
3310
|
+
sorting: this._sortOrder ? `${this._sortKey} ${this._sortOrder}` : undefined,
|
|
3311
|
+
});
|
|
3345
3312
|
}
|
|
3346
3313
|
}
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3350
|
-
type: Injectable
|
|
3351
|
-
|
|
3352
|
-
providedIn: 'root',
|
|
3353
|
-
}]
|
|
3354
|
-
}], ctorParameters: function () { return [{ type: RestService }]; } });
|
|
3355
|
-
|
|
3356
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
|
3357
|
-
|
|
3358
|
-
var index = /*#__PURE__*/Object.freeze({
|
|
3359
|
-
__proto__: null
|
|
3360
|
-
});
|
|
3361
|
-
|
|
3362
|
-
/* eslint-disable @typescript-eslint/ban-types */
|
|
3314
|
+
ListService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ListService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3315
|
+
ListService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ListService });
|
|
3316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ListService, decorators: [{
|
|
3317
|
+
type: Injectable
|
|
3318
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
3363
3319
|
|
|
3364
|
-
class
|
|
3365
|
-
constructor(injector) {
|
|
3366
|
-
this.
|
|
3320
|
+
class RouterWaitService {
|
|
3321
|
+
constructor(routerEvents, injector) {
|
|
3322
|
+
this.routerEvents = routerEvents;
|
|
3323
|
+
this.store = new InternalStore({ loading: false });
|
|
3324
|
+
this.destroy$ = new Subject();
|
|
3325
|
+
this.delay = injector.get(LOADER_DELAY, 500);
|
|
3326
|
+
this.updateLoadingStatusOnNavigationEvents();
|
|
3367
3327
|
}
|
|
3368
|
-
|
|
3369
|
-
|
|
3328
|
+
updateLoadingStatusOnNavigationEvents() {
|
|
3329
|
+
this.routerEvents
|
|
3330
|
+
.getAllNavigationEvents()
|
|
3331
|
+
.pipe(map(event => event instanceof NavigationStart), switchMap(condition => condition
|
|
3332
|
+
? this.delay === 0
|
|
3333
|
+
? of(true)
|
|
3334
|
+
: timer(this.delay || 0).pipe(mapTo(true), takeUntil(this.destroy$))
|
|
3335
|
+
: of(false)), tap(() => this.destroy$.next()))
|
|
3336
|
+
.subscribe(status => {
|
|
3337
|
+
this.setLoading(status);
|
|
3338
|
+
});
|
|
3370
3339
|
}
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
ContentProjectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ContentProjectionService, providedIn: 'root' });
|
|
3374
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: ContentProjectionService, decorators: [{
|
|
3375
|
-
type: Injectable,
|
|
3376
|
-
args: [{ providedIn: 'root' }]
|
|
3377
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
3378
|
-
|
|
3379
|
-
function getShortDateFormat(configStateService) {
|
|
3380
|
-
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
3381
|
-
return dateTimeFormat.shortDatePattern;
|
|
3382
|
-
}
|
|
3383
|
-
function getShortTimeFormat(configStateService) {
|
|
3384
|
-
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
3385
|
-
return dateTimeFormat.shortTimePattern.replace('tt', 'a');
|
|
3386
|
-
}
|
|
3387
|
-
function getShortDateShortTimeFormat(configStateService) {
|
|
3388
|
-
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
3389
|
-
return `${dateTimeFormat.shortDatePattern} ${dateTimeFormat.shortTimePattern.replace('tt', 'a')}`;
|
|
3390
|
-
}
|
|
3391
|
-
|
|
3392
|
-
class LazyModuleFactory extends NgModuleFactory {
|
|
3393
|
-
constructor(moduleWithProviders) {
|
|
3394
|
-
super();
|
|
3395
|
-
this.moduleWithProviders = moduleWithProviders;
|
|
3340
|
+
getLoading() {
|
|
3341
|
+
return this.store.state.loading;
|
|
3396
3342
|
}
|
|
3397
|
-
|
|
3398
|
-
return this.
|
|
3343
|
+
getLoading$() {
|
|
3344
|
+
return this.store.sliceState(({ loading }) => loading);
|
|
3399
3345
|
}
|
|
3400
|
-
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
});
|
|
3405
|
-
const compiler = injector.get(Compiler);
|
|
3406
|
-
const factory = compiler.compileModuleSync(this.moduleType);
|
|
3407
|
-
return factory.create(injector);
|
|
3346
|
+
updateLoading$() {
|
|
3347
|
+
return this.store.sliceUpdate(({ loading }) => loading);
|
|
3348
|
+
}
|
|
3349
|
+
setLoading(loading) {
|
|
3350
|
+
this.store.patch({ loading });
|
|
3408
3351
|
}
|
|
3409
3352
|
}
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
|
|
3414
|
-
|
|
3415
|
-
|
|
3416
|
-
|
|
3417
|
-
|
|
3418
|
-
link.download = filename;
|
|
3419
|
-
document.body.appendChild(link);
|
|
3420
|
-
link.dispatchEvent(new MouseEvent('click', {
|
|
3421
|
-
bubbles: true,
|
|
3422
|
-
cancelable: true,
|
|
3423
|
-
view: window,
|
|
3424
|
-
}));
|
|
3425
|
-
document.body.removeChild(link);
|
|
3426
|
-
}
|
|
3427
|
-
|
|
3428
|
-
function isNumber(value) {
|
|
3429
|
-
return value == Number(value);
|
|
3430
|
-
}
|
|
3431
|
-
|
|
3432
|
-
function mapEnumToOptions(_enum) {
|
|
3433
|
-
const options = [];
|
|
3434
|
-
for (const member in _enum)
|
|
3435
|
-
if (!isNumber(member))
|
|
3436
|
-
options.push({
|
|
3437
|
-
key: member,
|
|
3438
|
-
value: _enum[member],
|
|
3439
|
-
});
|
|
3440
|
-
return options;
|
|
3441
|
-
}
|
|
3353
|
+
RouterWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterWaitService, deps: [{ token: RouterEvents }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3354
|
+
RouterWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterWaitService, providedIn: 'root' });
|
|
3355
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterWaitService, decorators: [{
|
|
3356
|
+
type: Injectable,
|
|
3357
|
+
args: [{
|
|
3358
|
+
providedIn: 'root',
|
|
3359
|
+
}]
|
|
3360
|
+
}], ctorParameters: function () { return [{ type: RouterEvents }, { type: i0.Injector }]; } });
|
|
3442
3361
|
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3449
|
-
|
|
3450
|
-
|
|
3451
|
-
for (let i = 0; i < value.length; i++) {
|
|
3452
|
-
charCode = value.charCodeAt(i);
|
|
3453
|
-
hashed = (hashed << 5) - hashed + charCode;
|
|
3454
|
-
hashed |= 0;
|
|
3362
|
+
const trackBy = (key) => (_, item) => item[key];
|
|
3363
|
+
const trackByDeep = (
|
|
3364
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
3365
|
+
...keys) => (_, item) => keys.reduce((acc, key) => acc[key], item);
|
|
3366
|
+
class TrackByService {
|
|
3367
|
+
constructor() {
|
|
3368
|
+
this.by = trackBy;
|
|
3369
|
+
this.byDeep = trackByDeep;
|
|
3455
3370
|
}
|
|
3456
|
-
return hashed;
|
|
3457
3371
|
}
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
const password = Array({ length });
|
|
3467
|
-
password[0] = getRandom(lowers);
|
|
3468
|
-
password[1] = getRandom(uppers);
|
|
3469
|
-
password[2] = getRandom(numbers);
|
|
3470
|
-
password[3] = getRandom(specials);
|
|
3471
|
-
for (let i = 4; i < length; i++) {
|
|
3472
|
-
password[i] = getRandom(all);
|
|
3473
|
-
}
|
|
3474
|
-
return password.sort(() => 0.5 - Math.random()).join('');
|
|
3475
|
-
}
|
|
3372
|
+
TrackByService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: TrackByService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3373
|
+
TrackByService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: TrackByService, providedIn: 'root' });
|
|
3374
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: TrackByService, decorators: [{
|
|
3375
|
+
type: Injectable,
|
|
3376
|
+
args: [{
|
|
3377
|
+
providedIn: 'root',
|
|
3378
|
+
}]
|
|
3379
|
+
}] });
|
|
3476
3380
|
|
|
3477
|
-
class
|
|
3478
|
-
constructor(
|
|
3479
|
-
|
|
3480
|
-
this.
|
|
3381
|
+
class ShortDateTimePipe extends DatePipe {
|
|
3382
|
+
constructor(configStateService, locale, defaultTimezone) {
|
|
3383
|
+
super(locale, defaultTimezone);
|
|
3384
|
+
this.configStateService = configStateService;
|
|
3481
3385
|
}
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
element.setAttribute('crossorigin', this.crossorigin);
|
|
3386
|
+
transform(value, timezone, locale) {
|
|
3387
|
+
const format = getShortDateShortTimeFormat(this.configStateService);
|
|
3388
|
+
return super.transform(value, format, timezone, locale);
|
|
3486
3389
|
}
|
|
3487
3390
|
}
|
|
3488
|
-
|
|
3489
|
-
|
|
3391
|
+
ShortDateTimePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortDateTimePipe, deps: [{ token: ConfigStateService }, { token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3392
|
+
ShortDateTimePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortDateTimePipe, name: "shortDateTime" });
|
|
3393
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortDateTimePipe, decorators: [{
|
|
3394
|
+
type: Pipe,
|
|
3395
|
+
args: [{
|
|
3396
|
+
name: 'shortDateTime',
|
|
3397
|
+
pure: true,
|
|
3398
|
+
}]
|
|
3399
|
+
}], ctorParameters: function () { return [{ type: ConfigStateService }, { type: undefined, decorators: [{
|
|
3400
|
+
type: Inject,
|
|
3401
|
+
args: [LOCALE_ID]
|
|
3402
|
+
}] }, { type: undefined, decorators: [{
|
|
3403
|
+
type: Inject,
|
|
3404
|
+
args: [DATE_PIPE_DEFAULT_TIMEZONE]
|
|
3405
|
+
}, {
|
|
3406
|
+
type: Optional
|
|
3407
|
+
}] }]; } });
|
|
3408
|
+
|
|
3409
|
+
class ShortTimePipe extends DatePipe {
|
|
3410
|
+
constructor(configStateService, locale, defaultTimezone) {
|
|
3411
|
+
super(locale, defaultTimezone);
|
|
3412
|
+
this.configStateService = configStateService;
|
|
3413
|
+
}
|
|
3414
|
+
transform(value, timezone, locale) {
|
|
3415
|
+
const format = getShortTimeFormat(this.configStateService);
|
|
3416
|
+
return super.transform(value, format, timezone, locale);
|
|
3417
|
+
}
|
|
3490
3418
|
}
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3419
|
+
ShortTimePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortTimePipe, deps: [{ token: ConfigStateService }, { token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3420
|
+
ShortTimePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortTimePipe, name: "shortTime" });
|
|
3421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortTimePipe, decorators: [{
|
|
3422
|
+
type: Pipe,
|
|
3423
|
+
args: [{
|
|
3424
|
+
name: 'shortTime',
|
|
3425
|
+
pure: true,
|
|
3426
|
+
}]
|
|
3427
|
+
}], ctorParameters: function () { return [{ type: ConfigStateService }, { type: undefined, decorators: [{
|
|
3428
|
+
type: Inject,
|
|
3429
|
+
args: [LOCALE_ID]
|
|
3430
|
+
}] }, { type: undefined, decorators: [{
|
|
3431
|
+
type: Inject,
|
|
3432
|
+
args: [DATE_PIPE_DEFAULT_TIMEZONE]
|
|
3433
|
+
}, {
|
|
3434
|
+
type: Optional
|
|
3435
|
+
}] }]; } });
|
|
3502
3436
|
|
|
3503
|
-
class
|
|
3504
|
-
constructor(
|
|
3505
|
-
|
|
3506
|
-
this.
|
|
3437
|
+
class ShortDatePipe extends DatePipe {
|
|
3438
|
+
constructor(configStateService, locale, defaultTimezone) {
|
|
3439
|
+
super(locale, defaultTimezone);
|
|
3440
|
+
this.configStateService = configStateService;
|
|
3507
3441
|
}
|
|
3508
|
-
|
|
3509
|
-
|
|
3442
|
+
transform(value, timezone, locale) {
|
|
3443
|
+
const format = getShortDateFormat(this.configStateService);
|
|
3444
|
+
return super.transform(value, format, timezone, locale);
|
|
3510
3445
|
}
|
|
3511
3446
|
}
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
return
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
};
|
|
3529
|
-
|
|
3530
|
-
function
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3447
|
+
ShortDatePipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortDatePipe, deps: [{ token: ConfigStateService }, { token: LOCALE_ID }, { token: DATE_PIPE_DEFAULT_TIMEZONE, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
3448
|
+
ShortDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortDatePipe, name: "shortDate" });
|
|
3449
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortDatePipe, decorators: [{
|
|
3450
|
+
type: Pipe,
|
|
3451
|
+
args: [{
|
|
3452
|
+
name: 'shortDate',
|
|
3453
|
+
pure: true,
|
|
3454
|
+
}]
|
|
3455
|
+
}], ctorParameters: function () { return [{ type: ConfigStateService }, { type: undefined, decorators: [{
|
|
3456
|
+
type: Inject,
|
|
3457
|
+
args: [LOCALE_ID]
|
|
3458
|
+
}] }, { type: undefined, decorators: [{
|
|
3459
|
+
type: Inject,
|
|
3460
|
+
args: [DATE_PIPE_DEFAULT_TIMEZONE]
|
|
3461
|
+
}, {
|
|
3462
|
+
type: Optional
|
|
3463
|
+
}] }]; } });
|
|
3464
|
+
|
|
3465
|
+
function storageFactory() {
|
|
3466
|
+
return oAuthStorage;
|
|
3467
|
+
}
|
|
3468
|
+
/**
|
|
3469
|
+
* BaseCoreModule is the module that holds
|
|
3470
|
+
* all imports, declarations, exports, and entryComponents
|
|
3471
|
+
* but not the providers.
|
|
3472
|
+
* This module will be imported and exported by all others.
|
|
3473
|
+
*/
|
|
3474
|
+
class BaseCoreModule {
|
|
3475
|
+
}
|
|
3476
|
+
BaseCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BaseCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3477
|
+
BaseCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BaseCoreModule, declarations: [AbstractNgModelComponent,
|
|
3478
|
+
AutofocusDirective,
|
|
3479
|
+
DynamicLayoutComponent,
|
|
3480
|
+
ForDirective,
|
|
3481
|
+
FormSubmitDirective,
|
|
3482
|
+
InitDirective,
|
|
3483
|
+
InputEventDebounceDirective,
|
|
3484
|
+
PermissionDirective,
|
|
3485
|
+
ReplaceableRouteContainerComponent,
|
|
3486
|
+
ReplaceableTemplateDirective,
|
|
3487
|
+
RouterOutletComponent,
|
|
3488
|
+
SortPipe,
|
|
3489
|
+
StopPropagationDirective,
|
|
3490
|
+
ToInjectorPipe,
|
|
3491
|
+
ShortDateTimePipe,
|
|
3492
|
+
ShortTimePipe,
|
|
3493
|
+
ShortDatePipe], imports: [OAuthModule,
|
|
3494
|
+
CommonModule,
|
|
3495
|
+
HttpClientModule,
|
|
3496
|
+
FormsModule,
|
|
3497
|
+
ReactiveFormsModule,
|
|
3498
|
+
RouterModule,
|
|
3499
|
+
LocalizationModule], exports: [CommonModule,
|
|
3500
|
+
HttpClientModule,
|
|
3501
|
+
FormsModule,
|
|
3502
|
+
ReactiveFormsModule,
|
|
3503
|
+
RouterModule,
|
|
3504
|
+
LocalizationModule,
|
|
3505
|
+
AbstractNgModelComponent,
|
|
3506
|
+
AutofocusDirective,
|
|
3507
|
+
DynamicLayoutComponent,
|
|
3508
|
+
ForDirective,
|
|
3509
|
+
FormSubmitDirective,
|
|
3510
|
+
InitDirective,
|
|
3511
|
+
InputEventDebounceDirective,
|
|
3512
|
+
PermissionDirective,
|
|
3513
|
+
ReplaceableRouteContainerComponent,
|
|
3514
|
+
ReplaceableTemplateDirective,
|
|
3515
|
+
RouterOutletComponent,
|
|
3516
|
+
SortPipe,
|
|
3517
|
+
StopPropagationDirective,
|
|
3518
|
+
ToInjectorPipe,
|
|
3519
|
+
ShortDateTimePipe,
|
|
3520
|
+
ShortTimePipe,
|
|
3521
|
+
ShortDatePipe] });
|
|
3522
|
+
BaseCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BaseCoreModule, providers: [LocalizationPipe], imports: [[
|
|
3523
|
+
OAuthModule,
|
|
3524
|
+
CommonModule,
|
|
3525
|
+
HttpClientModule,
|
|
3526
|
+
FormsModule,
|
|
3527
|
+
ReactiveFormsModule,
|
|
3528
|
+
RouterModule,
|
|
3529
|
+
LocalizationModule,
|
|
3530
|
+
], CommonModule,
|
|
3531
|
+
HttpClientModule,
|
|
3532
|
+
FormsModule,
|
|
3533
|
+
ReactiveFormsModule,
|
|
3534
|
+
RouterModule,
|
|
3535
|
+
LocalizationModule] });
|
|
3536
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BaseCoreModule, decorators: [{
|
|
3537
|
+
type: NgModule,
|
|
3538
|
+
args: [{
|
|
3539
|
+
exports: [
|
|
3540
|
+
CommonModule,
|
|
3541
|
+
HttpClientModule,
|
|
3542
|
+
FormsModule,
|
|
3543
|
+
ReactiveFormsModule,
|
|
3544
|
+
RouterModule,
|
|
3545
|
+
LocalizationModule,
|
|
3546
|
+
AbstractNgModelComponent,
|
|
3547
|
+
AutofocusDirective,
|
|
3548
|
+
DynamicLayoutComponent,
|
|
3549
|
+
ForDirective,
|
|
3550
|
+
FormSubmitDirective,
|
|
3551
|
+
InitDirective,
|
|
3552
|
+
InputEventDebounceDirective,
|
|
3553
|
+
PermissionDirective,
|
|
3554
|
+
ReplaceableRouteContainerComponent,
|
|
3555
|
+
ReplaceableTemplateDirective,
|
|
3556
|
+
RouterOutletComponent,
|
|
3557
|
+
SortPipe,
|
|
3558
|
+
StopPropagationDirective,
|
|
3559
|
+
ToInjectorPipe,
|
|
3560
|
+
ShortDateTimePipe,
|
|
3561
|
+
ShortTimePipe,
|
|
3562
|
+
ShortDatePipe
|
|
3563
|
+
],
|
|
3564
|
+
imports: [
|
|
3565
|
+
OAuthModule,
|
|
3566
|
+
CommonModule,
|
|
3567
|
+
HttpClientModule,
|
|
3568
|
+
FormsModule,
|
|
3569
|
+
ReactiveFormsModule,
|
|
3570
|
+
RouterModule,
|
|
3571
|
+
LocalizationModule,
|
|
3572
|
+
],
|
|
3573
|
+
declarations: [
|
|
3574
|
+
AbstractNgModelComponent,
|
|
3575
|
+
AutofocusDirective,
|
|
3576
|
+
DynamicLayoutComponent,
|
|
3577
|
+
ForDirective,
|
|
3578
|
+
FormSubmitDirective,
|
|
3579
|
+
InitDirective,
|
|
3580
|
+
InputEventDebounceDirective,
|
|
3581
|
+
PermissionDirective,
|
|
3582
|
+
ReplaceableRouteContainerComponent,
|
|
3583
|
+
ReplaceableTemplateDirective,
|
|
3584
|
+
RouterOutletComponent,
|
|
3585
|
+
SortPipe,
|
|
3586
|
+
StopPropagationDirective,
|
|
3587
|
+
ToInjectorPipe,
|
|
3588
|
+
ShortDateTimePipe,
|
|
3589
|
+
ShortTimePipe,
|
|
3590
|
+
ShortDatePipe
|
|
3591
|
+
],
|
|
3592
|
+
providers: [LocalizationPipe]
|
|
3593
|
+
}]
|
|
3594
|
+
}] });
|
|
3595
|
+
/**
|
|
3596
|
+
* RootCoreModule is the module that will be used at root level
|
|
3597
|
+
* and it introduces imports useful at root level (e.g. NGXS)
|
|
3598
|
+
*/
|
|
3599
|
+
class RootCoreModule {
|
|
3600
|
+
}
|
|
3601
|
+
RootCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RootCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3602
|
+
RootCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RootCoreModule, imports: [BaseCoreModule, LocalizationModule, i1$3.OAuthModule, i1.HttpClientXsrfModule], exports: [BaseCoreModule, LocalizationModule] });
|
|
3603
|
+
RootCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RootCoreModule, imports: [[
|
|
3604
|
+
BaseCoreModule,
|
|
3605
|
+
LocalizationModule,
|
|
3606
|
+
OAuthModule.forRoot(),
|
|
3607
|
+
HttpClientXsrfModule.withOptions({
|
|
3608
|
+
cookieName: 'XSRF-TOKEN',
|
|
3609
|
+
headerName: 'RequestVerificationToken',
|
|
3610
|
+
}),
|
|
3611
|
+
], BaseCoreModule, LocalizationModule] });
|
|
3612
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RootCoreModule, decorators: [{
|
|
3613
|
+
type: NgModule,
|
|
3614
|
+
args: [{
|
|
3615
|
+
exports: [BaseCoreModule, LocalizationModule],
|
|
3616
|
+
imports: [
|
|
3617
|
+
BaseCoreModule,
|
|
3618
|
+
LocalizationModule,
|
|
3619
|
+
OAuthModule.forRoot(),
|
|
3620
|
+
HttpClientXsrfModule.withOptions({
|
|
3621
|
+
cookieName: 'XSRF-TOKEN',
|
|
3622
|
+
headerName: 'RequestVerificationToken',
|
|
3623
|
+
}),
|
|
3624
|
+
],
|
|
3625
|
+
}]
|
|
3626
|
+
}] });
|
|
3627
|
+
/**
|
|
3628
|
+
* CoreModule is the module that is publicly available
|
|
3629
|
+
*/
|
|
3630
|
+
class CoreModule {
|
|
3631
|
+
static forRoot(options = {}) {
|
|
3632
|
+
return {
|
|
3633
|
+
ngModule: RootCoreModule,
|
|
3634
|
+
providers: [
|
|
3635
|
+
LocaleProvider,
|
|
3636
|
+
CookieLanguageProvider,
|
|
3637
|
+
{
|
|
3638
|
+
provide: 'CORE_OPTIONS',
|
|
3639
|
+
useValue: options,
|
|
3640
|
+
},
|
|
3641
|
+
{
|
|
3642
|
+
provide: CORE_OPTIONS,
|
|
3643
|
+
useFactory: coreOptionsFactory,
|
|
3644
|
+
deps: ['CORE_OPTIONS'],
|
|
3645
|
+
},
|
|
3646
|
+
{
|
|
3647
|
+
provide: HTTP_INTERCEPTORS,
|
|
3648
|
+
useExisting: ApiInterceptor,
|
|
3649
|
+
multi: true,
|
|
3650
|
+
},
|
|
3651
|
+
{
|
|
3652
|
+
provide: APP_INITIALIZER,
|
|
3653
|
+
multi: true,
|
|
3654
|
+
deps: [OAuthConfigurationHandler],
|
|
3655
|
+
useFactory: noop,
|
|
3656
|
+
},
|
|
3657
|
+
{
|
|
3658
|
+
provide: APP_INITIALIZER,
|
|
3659
|
+
multi: true,
|
|
3660
|
+
deps: [Injector],
|
|
3661
|
+
useFactory: getInitialData,
|
|
3662
|
+
},
|
|
3663
|
+
{
|
|
3664
|
+
provide: APP_INITIALIZER,
|
|
3665
|
+
multi: true,
|
|
3666
|
+
deps: [Injector],
|
|
3667
|
+
useFactory: localeInitializer,
|
|
3668
|
+
},
|
|
3669
|
+
{
|
|
3670
|
+
provide: APP_INITIALIZER,
|
|
3671
|
+
multi: true,
|
|
3672
|
+
deps: [LocalizationService],
|
|
3673
|
+
useFactory: noop,
|
|
3674
|
+
},
|
|
3675
|
+
{
|
|
3676
|
+
provide: APP_INITIALIZER,
|
|
3677
|
+
multi: true,
|
|
3678
|
+
deps: [RoutesHandler],
|
|
3679
|
+
useFactory: noop,
|
|
3680
|
+
},
|
|
3681
|
+
{ provide: OAuthStorage, useFactory: storageFactory },
|
|
3682
|
+
{ provide: TENANT_KEY, useValue: options.tenantKey || '__tenant' },
|
|
3683
|
+
{
|
|
3684
|
+
provide: LOCALIZATIONS,
|
|
3685
|
+
multi: true,
|
|
3686
|
+
useValue: localizationContributor(options.localizations),
|
|
3687
|
+
deps: [LocalizationService],
|
|
3688
|
+
},
|
|
3689
|
+
],
|
|
3548
3690
|
};
|
|
3549
|
-
});
|
|
3550
|
-
}
|
|
3551
|
-
function createErrorHandler(observer, element) {
|
|
3552
|
-
return function (event) {
|
|
3553
|
-
clearCallbacks(element);
|
|
3554
|
-
element.parentNode.removeChild(element);
|
|
3555
|
-
observer.error(event);
|
|
3556
|
-
};
|
|
3557
|
-
}
|
|
3558
|
-
function clearCallbacks(element) {
|
|
3559
|
-
element.onload = null;
|
|
3560
|
-
element.onerror = null;
|
|
3561
|
-
element.onabort = null;
|
|
3562
|
-
element.onemptied = null;
|
|
3563
|
-
element.onstalled = null;
|
|
3564
|
-
element.onsuspend = null;
|
|
3565
|
-
}
|
|
3566
|
-
|
|
3567
|
-
class DomInsertionService {
|
|
3568
|
-
constructor() {
|
|
3569
|
-
this.inserted = new Set();
|
|
3570
|
-
}
|
|
3571
|
-
insertContent(contentStrategy) {
|
|
3572
|
-
const hash = generateHash(contentStrategy.content);
|
|
3573
|
-
if (this.inserted.has(hash))
|
|
3574
|
-
return;
|
|
3575
|
-
const element = contentStrategy.insertElement();
|
|
3576
|
-
this.inserted.add(hash);
|
|
3577
|
-
return element;
|
|
3578
|
-
}
|
|
3579
|
-
removeContent(element) {
|
|
3580
|
-
const hash = generateHash(element.textContent);
|
|
3581
|
-
this.inserted.delete(hash);
|
|
3582
|
-
element.parentNode.removeChild(element);
|
|
3583
3691
|
}
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
3692
|
+
static forChild(options = {}) {
|
|
3693
|
+
return {
|
|
3694
|
+
ngModule: RootCoreModule,
|
|
3695
|
+
providers: [
|
|
3696
|
+
{
|
|
3697
|
+
provide: LOCALIZATIONS,
|
|
3698
|
+
multi: true,
|
|
3699
|
+
useValue: localizationContributor(options.localizations),
|
|
3700
|
+
deps: [LocalizationService],
|
|
3701
|
+
},
|
|
3702
|
+
],
|
|
3703
|
+
};
|
|
3587
3704
|
}
|
|
3588
3705
|
}
|
|
3589
|
-
|
|
3590
|
-
|
|
3591
|
-
i0.ɵɵ
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3706
|
+
CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3707
|
+
CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: CoreModule, imports: [BaseCoreModule], exports: [BaseCoreModule] });
|
|
3708
|
+
CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: CoreModule, imports: [[BaseCoreModule], BaseCoreModule] });
|
|
3709
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: CoreModule, decorators: [{
|
|
3710
|
+
type: NgModule,
|
|
3711
|
+
args: [{
|
|
3712
|
+
exports: [BaseCoreModule],
|
|
3713
|
+
imports: [BaseCoreModule],
|
|
3714
|
+
}]
|
|
3715
|
+
}] });
|
|
3716
|
+
function ngxsStoragePluginSerialize(data) {
|
|
3717
|
+
return data;
|
|
3718
|
+
}
|
|
3595
3719
|
|
|
3596
|
-
class
|
|
3597
|
-
constructor() {
|
|
3598
|
-
this.
|
|
3599
|
-
|
|
3600
|
-
getLoading() {
|
|
3601
|
-
return !!this.store.state.resources.size;
|
|
3602
|
-
}
|
|
3603
|
-
getLoading$() {
|
|
3604
|
-
return this.store.sliceState(({ resources }) => !!resources.size);
|
|
3605
|
-
}
|
|
3606
|
-
updateLoading$() {
|
|
3607
|
-
return this.store.sliceUpdate(({ resources }) => !!resources.size);
|
|
3608
|
-
}
|
|
3609
|
-
clearLoading() {
|
|
3610
|
-
this.store.patch({ resources: new Set() });
|
|
3611
|
-
}
|
|
3612
|
-
addResource(resource) {
|
|
3613
|
-
const resources = this.store.state.resources;
|
|
3614
|
-
resources.add(resource);
|
|
3615
|
-
this.store.patch({ resources });
|
|
3720
|
+
class AuthGuard {
|
|
3721
|
+
constructor(oauthService, authService) {
|
|
3722
|
+
this.oauthService = oauthService;
|
|
3723
|
+
this.authService = authService;
|
|
3616
3724
|
}
|
|
3617
|
-
|
|
3618
|
-
const
|
|
3619
|
-
|
|
3620
|
-
|
|
3725
|
+
canActivate() {
|
|
3726
|
+
const hasValidAccessToken = this.oauthService.hasValidAccessToken();
|
|
3727
|
+
if (hasValidAccessToken) {
|
|
3728
|
+
return true;
|
|
3729
|
+
}
|
|
3730
|
+
this.authService.navigateToLogin();
|
|
3731
|
+
return false;
|
|
3621
3732
|
}
|
|
3622
3733
|
}
|
|
3623
|
-
|
|
3624
|
-
|
|
3625
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3734
|
+
AuthGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AuthGuard, deps: [{ token: i1$3.OAuthService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3735
|
+
AuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AuthGuard, providedIn: 'root' });
|
|
3736
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AuthGuard, decorators: [{
|
|
3626
3737
|
type: Injectable,
|
|
3627
3738
|
args: [{
|
|
3628
3739
|
providedIn: 'root',
|
|
3629
3740
|
}]
|
|
3630
|
-
}] });
|
|
3741
|
+
}], ctorParameters: function () { return [{ type: i1$3.OAuthService }, { type: AuthService }]; } });
|
|
3631
3742
|
|
|
3632
|
-
class
|
|
3633
|
-
constructor(
|
|
3634
|
-
this.
|
|
3635
|
-
this.
|
|
3636
|
-
|
|
3637
|
-
|
|
3638
|
-
|
|
3639
|
-
|
|
3640
|
-
|
|
3641
|
-
|
|
3642
|
-
this.
|
|
3643
|
-
|
|
3644
|
-
}
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
return true;
|
|
3743
|
+
class PermissionGuard {
|
|
3744
|
+
constructor(router, routesService, permissionService, httpErrorReporter) {
|
|
3745
|
+
this.router = router;
|
|
3746
|
+
this.routesService = routesService;
|
|
3747
|
+
this.permissionService = permissionService;
|
|
3748
|
+
this.httpErrorReporter = httpErrorReporter;
|
|
3749
|
+
}
|
|
3750
|
+
canActivate(route, state) {
|
|
3751
|
+
let { requiredPolicy } = route.data || {};
|
|
3752
|
+
if (!requiredPolicy) {
|
|
3753
|
+
const routeFound = findRoute(this.routesService, getRoutePath(this.router, state.url));
|
|
3754
|
+
requiredPolicy = routeFound?.requiredPolicy;
|
|
3755
|
+
}
|
|
3756
|
+
if (!requiredPolicy)
|
|
3757
|
+
return of(true);
|
|
3758
|
+
return this.permissionService.getGrantedPolicy$(requiredPolicy).pipe(tap(access => {
|
|
3759
|
+
if (!access) {
|
|
3760
|
+
this.httpErrorReporter.reportError({ status: 403 });
|
|
3761
|
+
}
|
|
3762
|
+
}));
|
|
3653
3763
|
}
|
|
3654
3764
|
}
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3765
|
+
PermissionGuard.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionGuard, deps: [{ token: i1$1.Router }, { token: RoutesService }, { token: PermissionService }, { token: HttpErrorReporterService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3766
|
+
PermissionGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionGuard, providedIn: 'root' });
|
|
3767
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionGuard, decorators: [{
|
|
3658
3768
|
type: Injectable,
|
|
3659
3769
|
args: [{
|
|
3660
3770
|
providedIn: 'root',
|
|
3661
3771
|
}]
|
|
3662
|
-
}], ctorParameters: function () { return [{ type:
|
|
3663
|
-
|
|
3664
|
-
const LIST_QUERY_DEBOUNCE_TIME = new InjectionToken('LIST_QUERY_DEBOUNCE_TIME');
|
|
3772
|
+
}], ctorParameters: function () { return [{ type: i1$1.Router }, { type: RoutesService }, { type: PermissionService }, { type: HttpErrorReporterService }]; } });
|
|
3665
3773
|
|
|
3666
|
-
class
|
|
3667
|
-
constructor(
|
|
3668
|
-
|
|
3669
|
-
|
|
3670
|
-
|
|
3671
|
-
|
|
3672
|
-
|
|
3673
|
-
this._sortOrder = '';
|
|
3674
|
-
this._query$ = new ReplaySubject(1);
|
|
3675
|
-
this._isLoading$ = new BehaviorSubject(false);
|
|
3676
|
-
this.destroy$ = new Subject();
|
|
3677
|
-
this.get = () => {
|
|
3678
|
-
this.resetPageWhenUnchanged();
|
|
3679
|
-
this.next();
|
|
3680
|
-
};
|
|
3681
|
-
this.getWithoutPageReset = () => {
|
|
3682
|
-
this.next();
|
|
3683
|
-
};
|
|
3684
|
-
const delay = injector.get(LIST_QUERY_DEBOUNCE_TIME, 300);
|
|
3685
|
-
this.delay = delay ? debounceTime(delay) : tap();
|
|
3686
|
-
this.get();
|
|
3687
|
-
}
|
|
3688
|
-
set filter(value) {
|
|
3689
|
-
this._filter = value;
|
|
3690
|
-
this.get();
|
|
3691
|
-
}
|
|
3692
|
-
get filter() {
|
|
3693
|
-
return this._filter;
|
|
3694
|
-
}
|
|
3695
|
-
set maxResultCount(value) {
|
|
3696
|
-
this._maxResultCount = value;
|
|
3697
|
-
this.get();
|
|
3774
|
+
class ListResultDto {
|
|
3775
|
+
constructor(initialValues = {}) {
|
|
3776
|
+
for (const key in initialValues) {
|
|
3777
|
+
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3778
|
+
this[key] = initialValues[key];
|
|
3779
|
+
}
|
|
3780
|
+
}
|
|
3698
3781
|
}
|
|
3699
|
-
|
|
3700
|
-
|
|
3782
|
+
}
|
|
3783
|
+
class PagedResultDto extends ListResultDto {
|
|
3784
|
+
constructor(initialValues = {}) {
|
|
3785
|
+
super(initialValues);
|
|
3701
3786
|
}
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
this.
|
|
3706
|
-
|
|
3787
|
+
}
|
|
3788
|
+
class LimitedResultRequestDto {
|
|
3789
|
+
constructor(initialValues = {}) {
|
|
3790
|
+
this.maxResultCount = 10;
|
|
3791
|
+
for (const key in initialValues) {
|
|
3792
|
+
if (Object.prototype.hasOwnProperty.call(initialValues, key) &&
|
|
3793
|
+
initialValues[key] !== undefined) {
|
|
3794
|
+
this[key] = initialValues[key];
|
|
3795
|
+
}
|
|
3796
|
+
}
|
|
3707
3797
|
}
|
|
3708
|
-
|
|
3709
|
-
|
|
3798
|
+
}
|
|
3799
|
+
class PagedResultRequestDto extends LimitedResultRequestDto {
|
|
3800
|
+
constructor(initialValues = {}) {
|
|
3801
|
+
super(initialValues);
|
|
3710
3802
|
}
|
|
3711
|
-
|
|
3712
|
-
|
|
3713
|
-
|
|
3803
|
+
}
|
|
3804
|
+
class PagedAndSortedResultRequestDto extends PagedResultRequestDto {
|
|
3805
|
+
constructor(initialValues = {}) {
|
|
3806
|
+
super(initialValues);
|
|
3714
3807
|
}
|
|
3715
|
-
|
|
3716
|
-
|
|
3808
|
+
}
|
|
3809
|
+
class EntityDto {
|
|
3810
|
+
constructor(initialValues = {}) {
|
|
3811
|
+
for (const key in initialValues) {
|
|
3812
|
+
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3813
|
+
this[key] = initialValues[key];
|
|
3814
|
+
}
|
|
3815
|
+
}
|
|
3717
3816
|
}
|
|
3718
|
-
|
|
3719
|
-
|
|
3720
|
-
|
|
3817
|
+
}
|
|
3818
|
+
class CreationAuditedEntityDto extends EntityDto {
|
|
3819
|
+
constructor(initialValues = {}) {
|
|
3820
|
+
super(initialValues);
|
|
3721
3821
|
}
|
|
3722
|
-
|
|
3723
|
-
|
|
3822
|
+
}
|
|
3823
|
+
class CreationAuditedEntityWithUserDto extends CreationAuditedEntityDto {
|
|
3824
|
+
constructor(initialValues = {}) {
|
|
3825
|
+
super(initialValues);
|
|
3724
3826
|
}
|
|
3725
|
-
|
|
3726
|
-
|
|
3727
|
-
|
|
3728
|
-
|
|
3827
|
+
}
|
|
3828
|
+
class AuditedEntityDto extends CreationAuditedEntityDto {
|
|
3829
|
+
constructor(initialValues = {}) {
|
|
3830
|
+
super(initialValues);
|
|
3729
3831
|
}
|
|
3730
|
-
|
|
3731
|
-
|
|
3832
|
+
}
|
|
3833
|
+
class AuditedEntityWithUserDto extends AuditedEntityDto {
|
|
3834
|
+
constructor(initialValues = {}) {
|
|
3835
|
+
super(initialValues);
|
|
3732
3836
|
}
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3837
|
+
}
|
|
3838
|
+
class FullAuditedEntityDto extends AuditedEntityDto {
|
|
3839
|
+
constructor(initialValues = {}) {
|
|
3840
|
+
super(initialValues);
|
|
3736
3841
|
}
|
|
3737
|
-
|
|
3738
|
-
|
|
3842
|
+
}
|
|
3843
|
+
class FullAuditedEntityWithUserDto extends FullAuditedEntityDto {
|
|
3844
|
+
constructor(initialValues = {}) {
|
|
3845
|
+
super(initialValues);
|
|
3739
3846
|
}
|
|
3740
|
-
|
|
3741
|
-
|
|
3742
|
-
|
|
3743
|
-
|
|
3744
|
-
|
|
3847
|
+
}
|
|
3848
|
+
class ExtensibleObject {
|
|
3849
|
+
constructor(initialValues = {}) {
|
|
3850
|
+
for (const key in initialValues) {
|
|
3851
|
+
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3852
|
+
this[key] = initialValues[key];
|
|
3853
|
+
}
|
|
3745
3854
|
}
|
|
3746
|
-
else
|
|
3747
|
-
this._skipCount = skipCount;
|
|
3748
|
-
}
|
|
3749
|
-
next() {
|
|
3750
|
-
this._query$.next({
|
|
3751
|
-
filter: this._filter || undefined,
|
|
3752
|
-
maxResultCount: this._maxResultCount,
|
|
3753
|
-
skipCount: this._page * this._maxResultCount,
|
|
3754
|
-
sorting: this._sortOrder ? `${this._sortKey} ${this._sortOrder}` : undefined,
|
|
3755
|
-
});
|
|
3756
3855
|
}
|
|
3757
3856
|
}
|
|
3758
|
-
|
|
3759
|
-
|
|
3760
|
-
|
|
3761
|
-
type: Injectable
|
|
3762
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
3763
|
-
|
|
3764
|
-
class RouterWaitService {
|
|
3765
|
-
constructor(routerEvents, injector) {
|
|
3766
|
-
this.routerEvents = routerEvents;
|
|
3767
|
-
this.store = new InternalStore({ loading: false });
|
|
3768
|
-
this.destroy$ = new Subject();
|
|
3769
|
-
this.delay = injector.get(LOADER_DELAY, 500);
|
|
3770
|
-
this.updateLoadingStatusOnNavigationEvents();
|
|
3857
|
+
class ExtensibleEntityDto extends ExtensibleObject {
|
|
3858
|
+
constructor(initialValues = {}) {
|
|
3859
|
+
super(initialValues);
|
|
3771
3860
|
}
|
|
3772
|
-
|
|
3773
|
-
|
|
3774
|
-
|
|
3775
|
-
|
|
3776
|
-
? this.delay === 0
|
|
3777
|
-
? of(true)
|
|
3778
|
-
: timer(this.delay || 0).pipe(mapTo(true), takeUntil(this.destroy$))
|
|
3779
|
-
: of(false)), tap(() => this.destroy$.next()))
|
|
3780
|
-
.subscribe(status => {
|
|
3781
|
-
this.setLoading(status);
|
|
3782
|
-
});
|
|
3861
|
+
}
|
|
3862
|
+
class ExtensibleCreationAuditedEntityDto extends ExtensibleEntityDto {
|
|
3863
|
+
constructor(initialValues = {}) {
|
|
3864
|
+
super(initialValues);
|
|
3783
3865
|
}
|
|
3784
|
-
|
|
3785
|
-
|
|
3866
|
+
}
|
|
3867
|
+
class ExtensibleAuditedEntityDto extends ExtensibleCreationAuditedEntityDto {
|
|
3868
|
+
constructor(initialValues = {}) {
|
|
3869
|
+
super(initialValues);
|
|
3786
3870
|
}
|
|
3787
|
-
|
|
3788
|
-
|
|
3871
|
+
}
|
|
3872
|
+
class ExtensibleAuditedEntityWithUserDto extends ExtensibleAuditedEntityDto {
|
|
3873
|
+
constructor(initialValues = {}) {
|
|
3874
|
+
super(initialValues);
|
|
3789
3875
|
}
|
|
3790
|
-
|
|
3791
|
-
|
|
3876
|
+
}
|
|
3877
|
+
class ExtensibleCreationAuditedEntityWithUserDto extends ExtensibleCreationAuditedEntityDto {
|
|
3878
|
+
constructor(initialValues = {}) {
|
|
3879
|
+
super(initialValues);
|
|
3792
3880
|
}
|
|
3793
|
-
|
|
3794
|
-
|
|
3881
|
+
}
|
|
3882
|
+
class ExtensibleFullAuditedEntityDto extends ExtensibleAuditedEntityDto {
|
|
3883
|
+
constructor(initialValues = {}) {
|
|
3884
|
+
super(initialValues);
|
|
3795
3885
|
}
|
|
3796
3886
|
}
|
|
3797
|
-
|
|
3798
|
-
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
providedIn: 'root',
|
|
3803
|
-
}]
|
|
3804
|
-
}], ctorParameters: function () { return [{ type: RouterEvents }, { type: i0.Injector }]; } });
|
|
3887
|
+
class ExtensibleFullAuditedEntityWithUserDto extends ExtensibleFullAuditedEntityDto {
|
|
3888
|
+
constructor(initialValues = {}) {
|
|
3889
|
+
super(initialValues);
|
|
3890
|
+
}
|
|
3891
|
+
}
|
|
3805
3892
|
|
|
3806
|
-
|
|
3807
|
-
|
|
3808
|
-
|
|
3809
|
-
|
|
3810
|
-
|
|
3811
|
-
|
|
3812
|
-
|
|
3813
|
-
|
|
3893
|
+
class AbpApiDefinitionService {
|
|
3894
|
+
constructor(restService) {
|
|
3895
|
+
this.restService = restService;
|
|
3896
|
+
this.apiName = 'abp';
|
|
3897
|
+
this.getByModel = (model) => this.restService.request({
|
|
3898
|
+
method: 'GET',
|
|
3899
|
+
url: '/api/abp/api-definition',
|
|
3900
|
+
params: { includeTypes: model.includeTypes },
|
|
3901
|
+
}, { apiName: this.apiName });
|
|
3814
3902
|
}
|
|
3815
3903
|
}
|
|
3816
|
-
|
|
3817
|
-
|
|
3818
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3904
|
+
AbpApiDefinitionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpApiDefinitionService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3905
|
+
AbpApiDefinitionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpApiDefinitionService, providedIn: 'root' });
|
|
3906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpApiDefinitionService, decorators: [{
|
|
3819
3907
|
type: Injectable,
|
|
3820
3908
|
args: [{
|
|
3821
3909
|
providedIn: 'root',
|
|
3822
3910
|
}]
|
|
3823
|
-
}] });
|
|
3911
|
+
}], ctorParameters: function () { return [{ type: RestService }]; } });
|
|
3912
|
+
|
|
3913
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
3914
|
+
|
|
3915
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
3916
|
+
__proto__: null
|
|
3917
|
+
});
|
|
3918
|
+
|
|
3919
|
+
/* eslint-disable @typescript-eslint/ban-types */
|
|
3824
3920
|
|
|
3825
3921
|
class ContainerStrategy {
|
|
3826
3922
|
constructor(containerRef) {
|
|
@@ -4220,5 +4316,5 @@ const AbpValidators = {
|
|
|
4220
4316
|
* Generated bundle index. Do not edit.
|
|
4221
4317
|
*/
|
|
4222
4318
|
|
|
4223
|
-
export { APP_INIT_ERROR_HANDLERS, AbpApiDefinitionService, AbpApplicationConfigurationService, AbpTenantService, AbpValidators, AbstractNavTreeService, AbstractNgModelComponent, AbstractTreeService, ApiInterceptor, AuditedEntityDto, AuditedEntityWithUserDto, AuthGuard, AuthService, AutofocusDirective, BaseCoreModule, BaseTreeNode, 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, DomInsertionService, DomStrategy, DynamicLayoutComponent, EntityDto, EnvironmentService, ExtensibleAuditedEntityDto, ExtensibleAuditedEntityWithUserDto, ExtensibleCreationAuditedEntityDto, ExtensibleCreationAuditedEntityWithUserDto, ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleFullAuditedEntityWithUserDto, ExtensibleObject, ForDirective, FormSubmitDirective, FullAuditedEntityDto, FullAuditedEntityWithUserDto, HttpErrorReporterService, HttpWaitService, INJECTOR_PIPE_DATA_TOKEN, InitDirective, InputEventDebounceDirective, InsertIntoContainerStrategy, InternalStore, 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, index as ObjectExtending, PROJECTION_STRATEGY, PagedAndSortedResultRequestDto, PagedResultDto, PagedResultRequestDto, PermissionDirective, PermissionGuard, PermissionService, ProjectionStrategy, ReplaceableComponentsService, ReplaceableRouteContainerComponent, ReplaceableTemplateDirective, ResourceWaitService, RestService, RootComponentProjectionStrategy, RootCoreModule, RouterEvents, RouterOutletComponent, RouterWaitService, RoutesService, ScriptContentStrategy, ScriptLoadingStrategy, SessionStateService, SortPipe, StopPropagationDirective, StyleContentStrategy, StyleLoadingStrategy, SubscriptionService, TENANT_KEY, TemplateContextStrategy, TemplateProjectionStrategy, ToInjectorPipe, TrackByService, WebHttpUrlEncodingCodec, checkAccessToken, coreOptionsFactory, 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, isNullOrUndefined, isNumber, isObject, isObjectAndNotArray, isObjectAndNotArrayNotNode, isUndefinedOrEmptyString, localeInitializer, localizationContributor, localizations$, mapEnumToOptions, ngxsStoragePluginSerialize, noop, parseTenantFromUrl, pipeToLogin, pushValueTo, reloadRoute, removeRememberMe, setRememberMe, setTokenResponseToStorage, storageFactory, trackBy, trackByDeep, uuid, validateCreditCard, validateMinAge, validateRange, validateRequired, validateStringLength, validateUrl };
|
|
4319
|
+
export { APP_INIT_ERROR_HANDLERS, AbpApiDefinitionService, AbpApplicationConfigurationService, AbpTenantService, AbpValidators, AbstractNavTreeService, AbstractNgModelComponent, AbstractTreeService, ApiInterceptor, AuditedEntityDto, AuditedEntityWithUserDto, AuthGuard, AuthService, AutofocusDirective, BaseCoreModule, BaseTreeNode, 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, DomInsertionService, DomStrategy, DynamicLayoutComponent, EntityDto, EnvironmentService, ExtensibleAuditedEntityDto, ExtensibleAuditedEntityWithUserDto, ExtensibleCreationAuditedEntityDto, ExtensibleCreationAuditedEntityWithUserDto, ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleFullAuditedEntityWithUserDto, ExtensibleObject, ForDirective, FormSubmitDirective, FullAuditedEntityDto, FullAuditedEntityWithUserDto, HttpErrorReporterService, HttpWaitService, INJECTOR_PIPE_DATA_TOKEN, InitDirective, InputEventDebounceDirective, InsertIntoContainerStrategy, InternalStore, 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, index as ObjectExtending, PROJECTION_STRATEGY, PagedAndSortedResultRequestDto, PagedResultDto, PagedResultRequestDto, PermissionDirective, PermissionGuard, PermissionService, ProjectionStrategy, ReplaceableComponentsService, ReplaceableRouteContainerComponent, ReplaceableTemplateDirective, ResourceWaitService, RestService, RootComponentProjectionStrategy, RootCoreModule, RouterEvents, RouterOutletComponent, RouterWaitService, RoutesService, ScriptContentStrategy, ScriptLoadingStrategy, SessionStateService, ShortDatePipe, ShortDateTimePipe, ShortTimePipe, SortPipe, StopPropagationDirective, StyleContentStrategy, StyleLoadingStrategy, SubscriptionService, TENANT_KEY, TemplateContextStrategy, TemplateProjectionStrategy, ToInjectorPipe, TrackByService, WebHttpUrlEncodingCodec, checkAccessToken, coreOptionsFactory, 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, isNullOrUndefined, isNumber, isObject, isObjectAndNotArray, isObjectAndNotArrayNotNode, isUndefinedOrEmptyString, localeInitializer, localizationContributor, localizations$, mapEnumToOptions, ngxsStoragePluginSerialize, noop, parseTenantFromUrl, pipeToLogin, pushValueTo, reloadRoute, removeRememberMe, setRememberMe, setTokenResponseToStorage, storageFactory, trackBy, trackByDeep, uuid, validateCreditCard, validateMinAge, validateRange, validateRequired, validateStringLength, validateUrl };
|
|
4224
4320
|
//# sourceMappingURL=abp-ng.core.mjs.map
|