@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/fesm2015/abp-ng.core.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import { __rest, __awaiter } from 'tslib';
|
|
|
9
9
|
import * as i1 from '@angular/common/http';
|
|
10
10
|
import { HttpParams, HttpHeaders, HttpClient, HttpClientModule, HttpClientXsrfModule, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
11
11
|
import * as i5 from '@angular/common';
|
|
12
|
-
import { registerLocaleData, DOCUMENT, CommonModule } from '@angular/common';
|
|
12
|
+
import { registerLocaleData, DOCUMENT, DatePipe, DATE_PIPE_DEFAULT_TIMEZONE, CommonModule } from '@angular/common';
|
|
13
13
|
import * as i1$2 from '@angular/forms';
|
|
14
14
|
import { FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
|
|
15
15
|
import * as i1$3 from 'angular-oauth2-oidc';
|
|
@@ -56,9 +56,9 @@ class AbstractNgModelComponent {
|
|
|
56
56
|
this.disabled = isDisabled;
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
|
-
AbstractNgModelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
60
|
-
AbstractNgModelComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
59
|
+
AbstractNgModelComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbstractNgModelComponent, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
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 });
|
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbstractNgModelComponent, decorators: [{
|
|
62
62
|
type: Component,
|
|
63
63
|
args: [{ template: '' }]
|
|
64
64
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; }, propDecorators: { disabled: [{
|
|
@@ -261,9 +261,9 @@ class EnvironmentService {
|
|
|
261
261
|
this.store.set(environment);
|
|
262
262
|
}
|
|
263
263
|
}
|
|
264
|
-
EnvironmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
265
|
-
EnvironmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
266
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
264
|
+
EnvironmentService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: EnvironmentService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
265
|
+
EnvironmentService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: EnvironmentService, providedIn: 'root' });
|
|
266
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: EnvironmentService, decorators: [{
|
|
267
267
|
type: Injectable,
|
|
268
268
|
args: [{ providedIn: 'root' }]
|
|
269
269
|
}] });
|
|
@@ -287,9 +287,9 @@ class HttpErrorReporterService {
|
|
|
287
287
|
return this._errors$.value;
|
|
288
288
|
}
|
|
289
289
|
}
|
|
290
|
-
HttpErrorReporterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
291
|
-
HttpErrorReporterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
290
|
+
HttpErrorReporterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: HttpErrorReporterService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
291
|
+
HttpErrorReporterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: HttpErrorReporterService, providedIn: 'root' });
|
|
292
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: HttpErrorReporterService, decorators: [{
|
|
293
293
|
type: Injectable,
|
|
294
294
|
args: [{ providedIn: 'root' }]
|
|
295
295
|
}] });
|
|
@@ -334,9 +334,9 @@ class RestService {
|
|
|
334
334
|
: new HttpParams({ fromObject: filteredParams });
|
|
335
335
|
}
|
|
336
336
|
}
|
|
337
|
-
RestService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
338
|
-
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
339
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
337
|
+
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 });
|
|
338
|
+
RestService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RestService, providedIn: 'root' });
|
|
339
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RestService, decorators: [{
|
|
340
340
|
type: Injectable,
|
|
341
341
|
args: [{
|
|
342
342
|
providedIn: 'root',
|
|
@@ -360,9 +360,9 @@ class AbpApplicationConfigurationService {
|
|
|
360
360
|
}, { apiName: this.apiName });
|
|
361
361
|
}
|
|
362
362
|
}
|
|
363
|
-
AbpApplicationConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
364
|
-
AbpApplicationConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
363
|
+
AbpApplicationConfigurationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpApplicationConfigurationService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
364
|
+
AbpApplicationConfigurationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpApplicationConfigurationService, providedIn: 'root' });
|
|
365
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpApplicationConfigurationService, decorators: [{
|
|
366
366
|
type: Injectable,
|
|
367
367
|
args: [{
|
|
368
368
|
providedIn: 'root',
|
|
@@ -474,9 +474,9 @@ class ConfigStateService {
|
|
|
474
474
|
}));
|
|
475
475
|
}
|
|
476
476
|
}
|
|
477
|
-
ConfigStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
478
|
-
ConfigStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
479
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
477
|
+
ConfigStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ConfigStateService, deps: [{ token: AbpApplicationConfigurationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
478
|
+
ConfigStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ConfigStateService, providedIn: 'root' });
|
|
479
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ConfigStateService, decorators: [{
|
|
480
480
|
type: Injectable,
|
|
481
481
|
args: [{
|
|
482
482
|
providedIn: 'root',
|
|
@@ -544,9 +544,9 @@ class PermissionService {
|
|
|
544
544
|
return grantedPolicies[key] || false;
|
|
545
545
|
}
|
|
546
546
|
}
|
|
547
|
-
PermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
548
|
-
PermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
549
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
547
|
+
PermissionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
548
|
+
PermissionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionService, providedIn: 'root' });
|
|
549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionService, decorators: [{
|
|
550
550
|
type: Injectable,
|
|
551
551
|
args: [{ providedIn: 'root' }]
|
|
552
552
|
}], ctorParameters: function () { return [{ type: ConfigStateService }]; } });
|
|
@@ -677,16 +677,16 @@ class AbstractNavTreeService extends AbstractTreeService {
|
|
|
677
677
|
this.subscription.unsubscribe();
|
|
678
678
|
}
|
|
679
679
|
}
|
|
680
|
-
AbstractNavTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
681
|
-
AbstractNavTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
682
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
680
|
+
AbstractNavTreeService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbstractNavTreeService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
681
|
+
AbstractNavTreeService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbstractNavTreeService });
|
|
682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbstractNavTreeService, decorators: [{
|
|
683
683
|
type: Injectable
|
|
684
684
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
685
685
|
class RoutesService extends AbstractNavTreeService {
|
|
686
686
|
}
|
|
687
|
-
RoutesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
688
|
-
RoutesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
689
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
687
|
+
RoutesService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RoutesService, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
688
|
+
RoutesService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RoutesService, providedIn: 'root' });
|
|
689
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RoutesService, decorators: [{
|
|
690
690
|
type: Injectable,
|
|
691
691
|
args: [{ providedIn: 'root' }]
|
|
692
692
|
}] });
|
|
@@ -723,9 +723,9 @@ class SubscriptionService {
|
|
|
723
723
|
this.subscription = new Subscription();
|
|
724
724
|
}
|
|
725
725
|
}
|
|
726
|
-
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
727
|
-
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
728
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
726
|
+
SubscriptionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SubscriptionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
727
|
+
SubscriptionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SubscriptionService });
|
|
728
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
729
729
|
type: Injectable
|
|
730
730
|
}] });
|
|
731
731
|
|
|
@@ -901,9 +901,9 @@ class SessionStateService {
|
|
|
901
901
|
document.documentElement.setAttribute('lang', language);
|
|
902
902
|
}
|
|
903
903
|
}
|
|
904
|
-
SessionStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
905
|
-
SessionStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
906
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
904
|
+
SessionStateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SessionStateService, deps: [{ token: ConfigStateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
905
|
+
SessionStateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SessionStateService, providedIn: 'root' });
|
|
906
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SessionStateService, decorators: [{
|
|
907
907
|
type: Injectable,
|
|
908
908
|
args: [{
|
|
909
909
|
providedIn: 'root',
|
|
@@ -1074,9 +1074,9 @@ class LocalizationService {
|
|
|
1074
1074
|
return localization || defaultValue || key;
|
|
1075
1075
|
}
|
|
1076
1076
|
}
|
|
1077
|
-
LocalizationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1078
|
-
LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1079
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1077
|
+
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 });
|
|
1078
|
+
LocalizationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationService, providedIn: 'root' });
|
|
1079
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationService, decorators: [{
|
|
1080
1080
|
type: Injectable,
|
|
1081
1081
|
args: [{ providedIn: 'root' }]
|
|
1082
1082
|
}], ctorParameters: function () {
|
|
@@ -1122,9 +1122,9 @@ class ReplaceableComponentsService {
|
|
|
1122
1122
|
return this.replaceableComponents$.pipe(map(components => components.find(component => component.key === replaceableComponentKey)));
|
|
1123
1123
|
}
|
|
1124
1124
|
}
|
|
1125
|
-
ReplaceableComponentsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1126
|
-
ReplaceableComponentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1127
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1125
|
+
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 });
|
|
1126
|
+
ReplaceableComponentsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ReplaceableComponentsService, providedIn: 'root' });
|
|
1127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ReplaceableComponentsService, decorators: [{
|
|
1128
1128
|
type: Injectable,
|
|
1129
1129
|
args: [{ providedIn: 'root' }]
|
|
1130
1130
|
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i1$1.Router }]; } });
|
|
@@ -1155,9 +1155,9 @@ class RouterEvents {
|
|
|
1155
1155
|
return this.getNavigationEvents(...keys);
|
|
1156
1156
|
}
|
|
1157
1157
|
}
|
|
1158
|
-
RouterEvents.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1159
|
-
RouterEvents.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
1160
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1158
|
+
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 });
|
|
1159
|
+
RouterEvents.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterEvents, providedIn: 'root' });
|
|
1160
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterEvents, decorators: [{
|
|
1161
1161
|
type: Injectable,
|
|
1162
1162
|
args: [{ providedIn: 'root' }]
|
|
1163
1163
|
}], ctorParameters: function () { return [{ type: i1$1.Router }]; } });
|
|
@@ -1222,9 +1222,9 @@ class DynamicLayoutComponent {
|
|
|
1222
1222
|
return this.replaceableComponents.get(key);
|
|
1223
1223
|
}
|
|
1224
1224
|
}
|
|
1225
|
-
DynamicLayoutComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1226
|
-
DynamicLayoutComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
1227
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1225
|
+
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 });
|
|
1226
|
+
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"] }] });
|
|
1227
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: DynamicLayoutComponent, decorators: [{
|
|
1228
1228
|
type: Component,
|
|
1229
1229
|
args: [{
|
|
1230
1230
|
selector: 'abp-dynamic-layout',
|
|
@@ -1256,11 +1256,11 @@ class ReplaceableRouteContainerComponent {
|
|
|
1256
1256
|
});
|
|
1257
1257
|
}
|
|
1258
1258
|
}
|
|
1259
|
-
ReplaceableRouteContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1260
|
-
ReplaceableRouteContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
1259
|
+
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 });
|
|
1260
|
+
ReplaceableRouteContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: ReplaceableRouteContainerComponent, selector: "abp-replaceable-route-container", providers: [SubscriptionService], ngImport: i0, template: `
|
|
1261
1261
|
<ng-container *ngComponentOutlet="externalComponent || defaultComponent"></ng-container>
|
|
1262
1262
|
`, isInline: true, directives: [{ type: i5.NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInjector", "ngComponentOutletContent", "ngComponentOutletNgModuleFactory"] }] });
|
|
1263
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ReplaceableRouteContainerComponent, decorators: [{
|
|
1264
1264
|
type: Component,
|
|
1265
1265
|
args: [{
|
|
1266
1266
|
selector: 'abp-replaceable-route-container',
|
|
@@ -1273,9 +1273,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
1273
1273
|
|
|
1274
1274
|
class RouterOutletComponent {
|
|
1275
1275
|
}
|
|
1276
|
-
RouterOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1277
|
-
RouterOutletComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.
|
|
1278
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1276
|
+
RouterOutletComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterOutletComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1277
|
+
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"] }] });
|
|
1278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterOutletComponent, decorators: [{
|
|
1279
1279
|
type: Component,
|
|
1280
1280
|
args: [{
|
|
1281
1281
|
selector: 'abp-router-outlet',
|
|
@@ -1635,9 +1635,9 @@ class AutofocusDirective {
|
|
|
1635
1635
|
setTimeout(() => this.elRef.nativeElement.focus(), this.delay);
|
|
1636
1636
|
}
|
|
1637
1637
|
}
|
|
1638
|
-
AutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1639
|
-
AutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
1640
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1638
|
+
AutofocusDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AutofocusDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1639
|
+
AutofocusDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: AutofocusDirective, selector: "[autofocus]", inputs: { delay: ["autofocus", "delay"] }, ngImport: i0 });
|
|
1640
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AutofocusDirective, decorators: [{
|
|
1641
1641
|
type: Directive,
|
|
1642
1642
|
args: [{
|
|
1643
1643
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1662,9 +1662,9 @@ class InputEventDebounceDirective {
|
|
|
1662
1662
|
});
|
|
1663
1663
|
}
|
|
1664
1664
|
}
|
|
1665
|
-
InputEventDebounceDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1666
|
-
InputEventDebounceDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
1667
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1665
|
+
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 });
|
|
1666
|
+
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 });
|
|
1667
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: InputEventDebounceDirective, decorators: [{
|
|
1668
1668
|
type: Directive,
|
|
1669
1669
|
args: [{
|
|
1670
1670
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1792,9 +1792,9 @@ class ForDirective {
|
|
|
1792
1792
|
}
|
|
1793
1793
|
}
|
|
1794
1794
|
}
|
|
1795
|
-
ForDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1796
|
-
ForDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
1797
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1795
|
+
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 });
|
|
1796
|
+
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 });
|
|
1797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ForDirective, decorators: [{
|
|
1798
1798
|
type: Directive,
|
|
1799
1799
|
args: [{
|
|
1800
1800
|
selector: '[abpFor]',
|
|
@@ -1855,9 +1855,9 @@ class FormSubmitDirective {
|
|
|
1855
1855
|
this.cdRef.detectChanges();
|
|
1856
1856
|
}
|
|
1857
1857
|
}
|
|
1858
|
-
FormSubmitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1859
|
-
FormSubmitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
1860
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1858
|
+
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 });
|
|
1859
|
+
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 });
|
|
1860
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormSubmitDirective, decorators: [{
|
|
1861
1861
|
type: Directive,
|
|
1862
1862
|
args: [{
|
|
1863
1863
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -1897,9 +1897,9 @@ class InitDirective {
|
|
|
1897
1897
|
this.init.emit(this.elRef);
|
|
1898
1898
|
}
|
|
1899
1899
|
}
|
|
1900
|
-
InitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1901
|
-
InitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
1902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1900
|
+
InitDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: InitDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1901
|
+
InitDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: InitDirective, selector: "[abpInit]", outputs: { init: "abpInit" }, ngImport: i0 });
|
|
1902
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: InitDirective, decorators: [{
|
|
1903
1903
|
type: Directive,
|
|
1904
1904
|
args: [{ selector: '[abpInit]' }]
|
|
1905
1905
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { init: [{
|
|
@@ -1936,9 +1936,9 @@ class PermissionDirective {
|
|
|
1936
1936
|
this.check();
|
|
1937
1937
|
}
|
|
1938
1938
|
}
|
|
1939
|
-
PermissionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
1940
|
-
PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
1941
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
1939
|
+
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 });
|
|
1940
|
+
PermissionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: PermissionDirective, selector: "[abpPermission]", inputs: { condition: ["abpPermission", "condition"] }, usesOnChanges: true, ngImport: i0 });
|
|
1941
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionDirective, decorators: [{
|
|
1942
1942
|
type: Directive,
|
|
1943
1943
|
args: [{
|
|
1944
1944
|
selector: '[abpPermission]',
|
|
@@ -2052,9 +2052,9 @@ class ReplaceableTemplateDirective {
|
|
|
2052
2052
|
this.defaultComponentRef = null;
|
|
2053
2053
|
}
|
|
2054
2054
|
}
|
|
2055
|
-
ReplaceableTemplateDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2056
|
-
ReplaceableTemplateDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
2057
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2055
|
+
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 });
|
|
2056
|
+
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 });
|
|
2057
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ReplaceableTemplateDirective, decorators: [{
|
|
2058
2058
|
type: Directive,
|
|
2059
2059
|
args: [{
|
|
2060
2060
|
selector: '[abpReplaceableTemplate]',
|
|
@@ -2078,9 +2078,9 @@ class StopPropagationDirective {
|
|
|
2078
2078
|
});
|
|
2079
2079
|
}
|
|
2080
2080
|
}
|
|
2081
|
-
StopPropagationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2082
|
-
StopPropagationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.
|
|
2083
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2081
|
+
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 });
|
|
2082
|
+
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 });
|
|
2083
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: StopPropagationDirective, decorators: [{
|
|
2084
2084
|
type: Directive,
|
|
2085
2085
|
args: [{
|
|
2086
2086
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -2108,9 +2108,9 @@ class OAuthConfigurationHandler {
|
|
|
2108
2108
|
});
|
|
2109
2109
|
}
|
|
2110
2110
|
}
|
|
2111
|
-
OAuthConfigurationHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2112
|
-
OAuthConfigurationHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2111
|
+
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 });
|
|
2112
|
+
OAuthConfigurationHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: OAuthConfigurationHandler, providedIn: 'root' });
|
|
2113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: OAuthConfigurationHandler, decorators: [{
|
|
2114
2114
|
type: Injectable,
|
|
2115
2115
|
args: [{
|
|
2116
2116
|
providedIn: 'root',
|
|
@@ -2142,9 +2142,9 @@ class RoutesHandler {
|
|
|
2142
2142
|
});
|
|
2143
2143
|
}
|
|
2144
2144
|
}
|
|
2145
|
-
RoutesHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2146
|
-
RoutesHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2147
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2145
|
+
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 });
|
|
2146
|
+
RoutesHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RoutesHandler, providedIn: 'root' });
|
|
2147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RoutesHandler, decorators: [{
|
|
2148
2148
|
type: Injectable,
|
|
2149
2149
|
args: [{
|
|
2150
2150
|
providedIn: 'root',
|
|
@@ -2243,9 +2243,9 @@ class HttpWaitService {
|
|
|
2243
2243
|
return endpoint === request.endpoint && method === request.method;
|
|
2244
2244
|
}
|
|
2245
2245
|
}
|
|
2246
|
-
HttpWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2247
|
-
HttpWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2246
|
+
HttpWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: HttpWaitService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2247
|
+
HttpWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: HttpWaitService, providedIn: 'root' });
|
|
2248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: HttpWaitService, decorators: [{
|
|
2249
2249
|
type: Injectable,
|
|
2250
2250
|
args: [{
|
|
2251
2251
|
providedIn: 'root',
|
|
@@ -2284,9 +2284,9 @@ class ApiInterceptor {
|
|
|
2284
2284
|
return headers;
|
|
2285
2285
|
}
|
|
2286
2286
|
}
|
|
2287
|
-
ApiInterceptor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2288
|
-
ApiInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2289
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2287
|
+
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 });
|
|
2288
|
+
ApiInterceptor.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ApiInterceptor, providedIn: 'root' });
|
|
2289
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ApiInterceptor, decorators: [{
|
|
2290
2290
|
type: Injectable,
|
|
2291
2291
|
args: [{
|
|
2292
2292
|
providedIn: 'root',
|
|
@@ -2315,10 +2315,10 @@ class LocalizationPipe {
|
|
|
2315
2315
|
return this.localization.instant(value, ...params);
|
|
2316
2316
|
}
|
|
2317
2317
|
}
|
|
2318
|
-
LocalizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2319
|
-
LocalizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.
|
|
2320
|
-
LocalizationPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2321
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2318
|
+
LocalizationPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationPipe, deps: [{ token: LocalizationService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2319
|
+
LocalizationPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationPipe, name: "abpLocalization" });
|
|
2320
|
+
LocalizationPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationPipe });
|
|
2321
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationPipe, decorators: [{
|
|
2322
2322
|
type: Injectable
|
|
2323
2323
|
}, {
|
|
2324
2324
|
type: Pipe,
|
|
@@ -2329,10 +2329,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImpor
|
|
|
2329
2329
|
|
|
2330
2330
|
class LocalizationModule {
|
|
2331
2331
|
}
|
|
2332
|
-
LocalizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2333
|
-
LocalizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.
|
|
2334
|
-
LocalizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.
|
|
2335
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2332
|
+
LocalizationModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2333
|
+
LocalizationModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationModule, declarations: [LocalizationPipe], exports: [LocalizationPipe] });
|
|
2334
|
+
LocalizationModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationModule });
|
|
2335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LocalizationModule, decorators: [{
|
|
2336
2336
|
type: NgModule,
|
|
2337
2337
|
args: [{
|
|
2338
2338
|
exports: [LocalizationPipe],
|
|
@@ -2375,10 +2375,10 @@ class SortPipe {
|
|
|
2375
2375
|
return sortOrder === 'asc' ? sorted : sorted.reverse();
|
|
2376
2376
|
}
|
|
2377
2377
|
}
|
|
2378
|
-
SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2379
|
-
SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.
|
|
2380
|
-
SortPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2381
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2378
|
+
SortPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SortPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2379
|
+
SortPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SortPipe, name: "abpSort" });
|
|
2380
|
+
SortPipe.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SortPipe });
|
|
2381
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: SortPipe, decorators: [{
|
|
2382
2382
|
type: Injectable
|
|
2383
2383
|
}, {
|
|
2384
2384
|
type: Pipe,
|
|
@@ -2405,9 +2405,9 @@ class ToInjectorPipe {
|
|
|
2405
2405
|
});
|
|
2406
2406
|
}
|
|
2407
2407
|
}
|
|
2408
|
-
ToInjectorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2409
|
-
ToInjectorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.
|
|
2410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2408
|
+
ToInjectorPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ToInjectorPipe, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
2409
|
+
ToInjectorPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ToInjectorPipe, name: "toInjector" });
|
|
2410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ToInjectorPipe, decorators: [{
|
|
2411
2411
|
type: Pipe,
|
|
2412
2412
|
args: [{
|
|
2413
2413
|
name: 'toInjector',
|
|
@@ -2717,9 +2717,9 @@ class AuthService {
|
|
|
2717
2717
|
return this.strategy.login(params);
|
|
2718
2718
|
}
|
|
2719
2719
|
}
|
|
2720
|
-
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2721
|
-
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2722
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2720
|
+
AuthService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AuthService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2721
|
+
AuthService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AuthService, providedIn: 'root' });
|
|
2722
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AuthService, decorators: [{
|
|
2723
2723
|
type: Injectable,
|
|
2724
2724
|
args: [{
|
|
2725
2725
|
providedIn: 'root',
|
|
@@ -2774,9 +2774,9 @@ class AbpTenantService {
|
|
|
2774
2774
|
}, { apiName: this.apiName });
|
|
2775
2775
|
}
|
|
2776
2776
|
}
|
|
2777
|
-
AbpTenantService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2778
|
-
AbpTenantService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2779
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2777
|
+
AbpTenantService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpTenantService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2778
|
+
AbpTenantService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpTenantService, providedIn: 'root' });
|
|
2779
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpTenantService, decorators: [{
|
|
2780
2780
|
type: Injectable,
|
|
2781
2781
|
args: [{
|
|
2782
2782
|
providedIn: 'root',
|
|
@@ -2809,9 +2809,9 @@ class MultiTenancyService {
|
|
|
2809
2809
|
.pipe(switchMap(this.setTenantToState));
|
|
2810
2810
|
}
|
|
2811
2811
|
}
|
|
2812
|
-
MultiTenancyService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.
|
|
2813
|
-
MultiTenancyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.
|
|
2814
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2812
|
+
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 });
|
|
2813
|
+
MultiTenancyService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: MultiTenancyService, providedIn: 'root' });
|
|
2814
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: MultiTenancyService, decorators: [{
|
|
2815
2815
|
type: Injectable,
|
|
2816
2816
|
args: [{ providedIn: 'root' }]
|
|
2817
2817
|
}], ctorParameters: function () {
|
|
@@ -2948,906 +2948,1008 @@ function localeInitializer(injector) {
|
|
|
2948
2948
|
return fn;
|
|
2949
2949
|
}
|
|
2950
2950
|
|
|
2951
|
-
function
|
|
2952
|
-
|
|
2953
|
-
|
|
2954
|
-
/**
|
|
2955
|
-
* BaseCoreModule is the module that holds
|
|
2956
|
-
* all imports, declarations, exports, and entryComponents
|
|
2957
|
-
* but not the providers.
|
|
2958
|
-
* This module will be imported and exported by all others.
|
|
2959
|
-
*/
|
|
2960
|
-
class BaseCoreModule {
|
|
2961
|
-
}
|
|
2962
|
-
BaseCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2963
|
-
BaseCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseCoreModule, declarations: [AbstractNgModelComponent,
|
|
2964
|
-
AutofocusDirective,
|
|
2965
|
-
DynamicLayoutComponent,
|
|
2966
|
-
ForDirective,
|
|
2967
|
-
FormSubmitDirective,
|
|
2968
|
-
InitDirective,
|
|
2969
|
-
InputEventDebounceDirective,
|
|
2970
|
-
PermissionDirective,
|
|
2971
|
-
ReplaceableRouteContainerComponent,
|
|
2972
|
-
ReplaceableTemplateDirective,
|
|
2973
|
-
RouterOutletComponent,
|
|
2974
|
-
SortPipe,
|
|
2975
|
-
StopPropagationDirective,
|
|
2976
|
-
ToInjectorPipe], imports: [OAuthModule,
|
|
2977
|
-
CommonModule,
|
|
2978
|
-
HttpClientModule,
|
|
2979
|
-
FormsModule,
|
|
2980
|
-
ReactiveFormsModule,
|
|
2981
|
-
RouterModule,
|
|
2982
|
-
LocalizationModule], exports: [CommonModule,
|
|
2983
|
-
HttpClientModule,
|
|
2984
|
-
FormsModule,
|
|
2985
|
-
ReactiveFormsModule,
|
|
2986
|
-
RouterModule,
|
|
2987
|
-
LocalizationModule,
|
|
2988
|
-
AbstractNgModelComponent,
|
|
2989
|
-
AutofocusDirective,
|
|
2990
|
-
DynamicLayoutComponent,
|
|
2991
|
-
ForDirective,
|
|
2992
|
-
FormSubmitDirective,
|
|
2993
|
-
InitDirective,
|
|
2994
|
-
InputEventDebounceDirective,
|
|
2995
|
-
PermissionDirective,
|
|
2996
|
-
ReplaceableRouteContainerComponent,
|
|
2997
|
-
ReplaceableTemplateDirective,
|
|
2998
|
-
RouterOutletComponent,
|
|
2999
|
-
SortPipe,
|
|
3000
|
-
StopPropagationDirective,
|
|
3001
|
-
ToInjectorPipe] });
|
|
3002
|
-
BaseCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseCoreModule, providers: [LocalizationPipe], imports: [[
|
|
3003
|
-
OAuthModule,
|
|
3004
|
-
CommonModule,
|
|
3005
|
-
HttpClientModule,
|
|
3006
|
-
FormsModule,
|
|
3007
|
-
ReactiveFormsModule,
|
|
3008
|
-
RouterModule,
|
|
3009
|
-
LocalizationModule,
|
|
3010
|
-
], CommonModule,
|
|
3011
|
-
HttpClientModule,
|
|
3012
|
-
FormsModule,
|
|
3013
|
-
ReactiveFormsModule,
|
|
3014
|
-
RouterModule,
|
|
3015
|
-
LocalizationModule] });
|
|
3016
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaseCoreModule, decorators: [{
|
|
3017
|
-
type: NgModule,
|
|
3018
|
-
args: [{
|
|
3019
|
-
exports: [
|
|
3020
|
-
CommonModule,
|
|
3021
|
-
HttpClientModule,
|
|
3022
|
-
FormsModule,
|
|
3023
|
-
ReactiveFormsModule,
|
|
3024
|
-
RouterModule,
|
|
3025
|
-
LocalizationModule,
|
|
3026
|
-
AbstractNgModelComponent,
|
|
3027
|
-
AutofocusDirective,
|
|
3028
|
-
DynamicLayoutComponent,
|
|
3029
|
-
ForDirective,
|
|
3030
|
-
FormSubmitDirective,
|
|
3031
|
-
InitDirective,
|
|
3032
|
-
InputEventDebounceDirective,
|
|
3033
|
-
PermissionDirective,
|
|
3034
|
-
ReplaceableRouteContainerComponent,
|
|
3035
|
-
ReplaceableTemplateDirective,
|
|
3036
|
-
RouterOutletComponent,
|
|
3037
|
-
SortPipe,
|
|
3038
|
-
StopPropagationDirective,
|
|
3039
|
-
ToInjectorPipe,
|
|
3040
|
-
],
|
|
3041
|
-
imports: [
|
|
3042
|
-
OAuthModule,
|
|
3043
|
-
CommonModule,
|
|
3044
|
-
HttpClientModule,
|
|
3045
|
-
FormsModule,
|
|
3046
|
-
ReactiveFormsModule,
|
|
3047
|
-
RouterModule,
|
|
3048
|
-
LocalizationModule,
|
|
3049
|
-
],
|
|
3050
|
-
declarations: [
|
|
3051
|
-
AbstractNgModelComponent,
|
|
3052
|
-
AutofocusDirective,
|
|
3053
|
-
DynamicLayoutComponent,
|
|
3054
|
-
ForDirective,
|
|
3055
|
-
FormSubmitDirective,
|
|
3056
|
-
InitDirective,
|
|
3057
|
-
InputEventDebounceDirective,
|
|
3058
|
-
PermissionDirective,
|
|
3059
|
-
ReplaceableRouteContainerComponent,
|
|
3060
|
-
ReplaceableTemplateDirective,
|
|
3061
|
-
RouterOutletComponent,
|
|
3062
|
-
SortPipe,
|
|
3063
|
-
StopPropagationDirective,
|
|
3064
|
-
ToInjectorPipe,
|
|
3065
|
-
],
|
|
3066
|
-
providers: [LocalizationPipe]
|
|
3067
|
-
}]
|
|
3068
|
-
}] });
|
|
3069
|
-
/**
|
|
3070
|
-
* RootCoreModule is the module that will be used at root level
|
|
3071
|
-
* and it introduces imports useful at root level (e.g. NGXS)
|
|
3072
|
-
*/
|
|
3073
|
-
class RootCoreModule {
|
|
2951
|
+
function getShortDateFormat(configStateService) {
|
|
2952
|
+
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
2953
|
+
return dateTimeFormat.shortDatePattern;
|
|
3074
2954
|
}
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
BaseCoreModule,
|
|
3079
|
-
LocalizationModule,
|
|
3080
|
-
OAuthModule.forRoot(),
|
|
3081
|
-
HttpClientXsrfModule.withOptions({
|
|
3082
|
-
cookieName: 'XSRF-TOKEN',
|
|
3083
|
-
headerName: 'RequestVerificationToken',
|
|
3084
|
-
}),
|
|
3085
|
-
], BaseCoreModule, LocalizationModule] });
|
|
3086
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: RootCoreModule, decorators: [{
|
|
3087
|
-
type: NgModule,
|
|
3088
|
-
args: [{
|
|
3089
|
-
exports: [BaseCoreModule, LocalizationModule],
|
|
3090
|
-
imports: [
|
|
3091
|
-
BaseCoreModule,
|
|
3092
|
-
LocalizationModule,
|
|
3093
|
-
OAuthModule.forRoot(),
|
|
3094
|
-
HttpClientXsrfModule.withOptions({
|
|
3095
|
-
cookieName: 'XSRF-TOKEN',
|
|
3096
|
-
headerName: 'RequestVerificationToken',
|
|
3097
|
-
}),
|
|
3098
|
-
],
|
|
3099
|
-
}]
|
|
3100
|
-
}] });
|
|
3101
|
-
/**
|
|
3102
|
-
* CoreModule is the module that is publicly available
|
|
3103
|
-
*/
|
|
3104
|
-
class CoreModule {
|
|
3105
|
-
static forRoot(options = {}) {
|
|
3106
|
-
return {
|
|
3107
|
-
ngModule: RootCoreModule,
|
|
3108
|
-
providers: [
|
|
3109
|
-
LocaleProvider,
|
|
3110
|
-
CookieLanguageProvider,
|
|
3111
|
-
{
|
|
3112
|
-
provide: 'CORE_OPTIONS',
|
|
3113
|
-
useValue: options,
|
|
3114
|
-
},
|
|
3115
|
-
{
|
|
3116
|
-
provide: CORE_OPTIONS,
|
|
3117
|
-
useFactory: coreOptionsFactory,
|
|
3118
|
-
deps: ['CORE_OPTIONS'],
|
|
3119
|
-
},
|
|
3120
|
-
{
|
|
3121
|
-
provide: HTTP_INTERCEPTORS,
|
|
3122
|
-
useExisting: ApiInterceptor,
|
|
3123
|
-
multi: true,
|
|
3124
|
-
},
|
|
3125
|
-
{
|
|
3126
|
-
provide: APP_INITIALIZER,
|
|
3127
|
-
multi: true,
|
|
3128
|
-
deps: [OAuthConfigurationHandler],
|
|
3129
|
-
useFactory: noop,
|
|
3130
|
-
},
|
|
3131
|
-
{
|
|
3132
|
-
provide: APP_INITIALIZER,
|
|
3133
|
-
multi: true,
|
|
3134
|
-
deps: [Injector],
|
|
3135
|
-
useFactory: getInitialData,
|
|
3136
|
-
},
|
|
3137
|
-
{
|
|
3138
|
-
provide: APP_INITIALIZER,
|
|
3139
|
-
multi: true,
|
|
3140
|
-
deps: [Injector],
|
|
3141
|
-
useFactory: localeInitializer,
|
|
3142
|
-
},
|
|
3143
|
-
{
|
|
3144
|
-
provide: APP_INITIALIZER,
|
|
3145
|
-
multi: true,
|
|
3146
|
-
deps: [LocalizationService],
|
|
3147
|
-
useFactory: noop,
|
|
3148
|
-
},
|
|
3149
|
-
{
|
|
3150
|
-
provide: APP_INITIALIZER,
|
|
3151
|
-
multi: true,
|
|
3152
|
-
deps: [RoutesHandler],
|
|
3153
|
-
useFactory: noop,
|
|
3154
|
-
},
|
|
3155
|
-
{ provide: OAuthStorage, useFactory: storageFactory },
|
|
3156
|
-
{ provide: TENANT_KEY, useValue: options.tenantKey || '__tenant' },
|
|
3157
|
-
{
|
|
3158
|
-
provide: LOCALIZATIONS,
|
|
3159
|
-
multi: true,
|
|
3160
|
-
useValue: localizationContributor(options.localizations),
|
|
3161
|
-
deps: [LocalizationService],
|
|
3162
|
-
},
|
|
3163
|
-
],
|
|
3164
|
-
};
|
|
3165
|
-
}
|
|
3166
|
-
static forChild(options = {}) {
|
|
3167
|
-
return {
|
|
3168
|
-
ngModule: RootCoreModule,
|
|
3169
|
-
providers: [
|
|
3170
|
-
{
|
|
3171
|
-
provide: LOCALIZATIONS,
|
|
3172
|
-
multi: true,
|
|
3173
|
-
useValue: localizationContributor(options.localizations),
|
|
3174
|
-
deps: [LocalizationService],
|
|
3175
|
-
},
|
|
3176
|
-
],
|
|
3177
|
-
};
|
|
3178
|
-
}
|
|
2955
|
+
function getShortTimeFormat(configStateService) {
|
|
2956
|
+
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
2957
|
+
return dateTimeFormat.shortTimePattern.replace('tt', 'a');
|
|
3179
2958
|
}
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: CoreModule, decorators: [{
|
|
3184
|
-
type: NgModule,
|
|
3185
|
-
args: [{
|
|
3186
|
-
exports: [BaseCoreModule],
|
|
3187
|
-
imports: [BaseCoreModule],
|
|
3188
|
-
}]
|
|
3189
|
-
}] });
|
|
3190
|
-
function ngxsStoragePluginSerialize(data) {
|
|
3191
|
-
return data;
|
|
2959
|
+
function getShortDateShortTimeFormat(configStateService) {
|
|
2960
|
+
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
2961
|
+
return `${dateTimeFormat.shortDatePattern} ${dateTimeFormat.shortTimePattern.replace('tt', 'a')}`;
|
|
3192
2962
|
}
|
|
3193
2963
|
|
|
3194
|
-
class
|
|
3195
|
-
constructor(
|
|
3196
|
-
this.
|
|
3197
|
-
this.authService = authService;
|
|
2964
|
+
class ContentProjectionService {
|
|
2965
|
+
constructor(injector) {
|
|
2966
|
+
this.injector = injector;
|
|
3198
2967
|
}
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
if (hasValidAccessToken) {
|
|
3202
|
-
return true;
|
|
3203
|
-
}
|
|
3204
|
-
this.authService.navigateToLogin();
|
|
3205
|
-
return false;
|
|
2968
|
+
projectContent(projectionStrategy, injector = this.injector) {
|
|
2969
|
+
return projectionStrategy.injectContent(injector);
|
|
3206
2970
|
}
|
|
3207
2971
|
}
|
|
3208
|
-
|
|
3209
|
-
|
|
3210
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
2972
|
+
ContentProjectionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ContentProjectionService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2973
|
+
ContentProjectionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ContentProjectionService, providedIn: 'root' });
|
|
2974
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ContentProjectionService, decorators: [{
|
|
3211
2975
|
type: Injectable,
|
|
3212
|
-
args: [{
|
|
3213
|
-
|
|
3214
|
-
}]
|
|
3215
|
-
}], ctorParameters: function () { return [{ type: i1$3.OAuthService }, { type: AuthService }]; } });
|
|
2976
|
+
args: [{ providedIn: 'root' }]
|
|
2977
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
3216
2978
|
|
|
3217
|
-
class
|
|
3218
|
-
constructor(
|
|
3219
|
-
|
|
3220
|
-
this.
|
|
3221
|
-
this.permissionService = permissionService;
|
|
3222
|
-
this.httpErrorReporter = httpErrorReporter;
|
|
2979
|
+
class LazyModuleFactory extends NgModuleFactory {
|
|
2980
|
+
constructor(moduleWithProviders) {
|
|
2981
|
+
super();
|
|
2982
|
+
this.moduleWithProviders = moduleWithProviders;
|
|
3223
2983
|
}
|
|
3224
|
-
|
|
3225
|
-
|
|
3226
|
-
|
|
3227
|
-
|
|
3228
|
-
|
|
3229
|
-
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
|
|
3233
|
-
|
|
3234
|
-
|
|
3235
|
-
}
|
|
3236
|
-
}));
|
|
2984
|
+
get moduleType() {
|
|
2985
|
+
return this.moduleWithProviders.ngModule;
|
|
2986
|
+
}
|
|
2987
|
+
create(parentInjector) {
|
|
2988
|
+
const injector = Injector.create({
|
|
2989
|
+
parent: parentInjector,
|
|
2990
|
+
providers: this.moduleWithProviders.providers,
|
|
2991
|
+
});
|
|
2992
|
+
const compiler = injector.get(Compiler);
|
|
2993
|
+
const factory = compiler.compileModuleSync(this.moduleType);
|
|
2994
|
+
return factory.create(injector);
|
|
3237
2995
|
}
|
|
3238
2996
|
}
|
|
3239
|
-
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
type: Injectable,
|
|
3243
|
-
args: [{
|
|
3244
|
-
providedIn: 'root',
|
|
3245
|
-
}]
|
|
3246
|
-
}], ctorParameters: function () { return [{ type: i1$1.Router }, { type: RoutesService }, { type: PermissionService }, { type: HttpErrorReporterService }]; } });
|
|
2997
|
+
function featuresFactory(configState, featureKeys, mapFn = features => features) {
|
|
2998
|
+
return configState.getFeatures$(featureKeys).pipe(filter(Boolean), map(mapFn));
|
|
2999
|
+
}
|
|
3247
3000
|
|
|
3248
|
-
|
|
3249
|
-
|
|
3250
|
-
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
-
|
|
3254
|
-
|
|
3255
|
-
|
|
3001
|
+
function downloadBlob(blob, filename) {
|
|
3002
|
+
const blobUrl = URL.createObjectURL(blob);
|
|
3003
|
+
const link = document.createElement('a');
|
|
3004
|
+
link.href = blobUrl;
|
|
3005
|
+
link.download = filename;
|
|
3006
|
+
document.body.appendChild(link);
|
|
3007
|
+
link.dispatchEvent(new MouseEvent('click', {
|
|
3008
|
+
bubbles: true,
|
|
3009
|
+
cancelable: true,
|
|
3010
|
+
view: window,
|
|
3011
|
+
}));
|
|
3012
|
+
document.body.removeChild(link);
|
|
3013
|
+
}
|
|
3014
|
+
|
|
3015
|
+
function isNumber(value) {
|
|
3016
|
+
return value == Number(value);
|
|
3017
|
+
}
|
|
3018
|
+
|
|
3019
|
+
function mapEnumToOptions(_enum) {
|
|
3020
|
+
const options = [];
|
|
3021
|
+
for (const member in _enum)
|
|
3022
|
+
if (!isNumber(member))
|
|
3023
|
+
options.push({
|
|
3024
|
+
key: member,
|
|
3025
|
+
value: _enum[member],
|
|
3026
|
+
});
|
|
3027
|
+
return options;
|
|
3028
|
+
}
|
|
3029
|
+
|
|
3030
|
+
function uuid(a) {
|
|
3031
|
+
return a
|
|
3032
|
+
? (a ^ ((Math.random() * 16) >> (a / 4))).toString(16)
|
|
3033
|
+
: ('' + 1e7 + -1e3 + -4e3 + -8e3 + -1e11).replace(/[018]/g, uuid);
|
|
3256
3034
|
}
|
|
3257
|
-
|
|
3258
|
-
|
|
3259
|
-
|
|
3035
|
+
function generateHash(value) {
|
|
3036
|
+
let hashed = 0;
|
|
3037
|
+
let charCode;
|
|
3038
|
+
for (let i = 0; i < value.length; i++) {
|
|
3039
|
+
charCode = value.charCodeAt(i);
|
|
3040
|
+
hashed = (hashed << 5) - hashed + charCode;
|
|
3041
|
+
hashed |= 0;
|
|
3260
3042
|
}
|
|
3043
|
+
return hashed;
|
|
3261
3044
|
}
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3045
|
+
function generatePassword(length = 8) {
|
|
3046
|
+
length = Math.min(Math.max(4, length), 128);
|
|
3047
|
+
const lowers = 'abcdefghijklmnopqrstuvwxyz';
|
|
3048
|
+
const uppers = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
3049
|
+
const numbers = '0123456789';
|
|
3050
|
+
const specials = '!@#$%&*()_+{}<>?[]./';
|
|
3051
|
+
const all = lowers + uppers + numbers + specials;
|
|
3052
|
+
const getRandom = (chrSet) => chrSet[Math.floor(Math.random() * chrSet.length)];
|
|
3053
|
+
const password = Array({ length });
|
|
3054
|
+
password[0] = getRandom(lowers);
|
|
3055
|
+
password[1] = getRandom(uppers);
|
|
3056
|
+
password[2] = getRandom(numbers);
|
|
3057
|
+
password[3] = getRandom(specials);
|
|
3058
|
+
for (let i = 4; i < length; i++) {
|
|
3059
|
+
password[i] = getRandom(all);
|
|
3271
3060
|
}
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3061
|
+
return password.sort(() => 0.5 - Math.random()).join('');
|
|
3062
|
+
}
|
|
3063
|
+
|
|
3064
|
+
class CrossOriginStrategy {
|
|
3065
|
+
constructor(crossorigin, integrity) {
|
|
3066
|
+
this.crossorigin = crossorigin;
|
|
3067
|
+
this.integrity = integrity;
|
|
3276
3068
|
}
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3069
|
+
setCrossOrigin(element) {
|
|
3070
|
+
if (this.integrity)
|
|
3071
|
+
element.setAttribute('integrity', this.integrity);
|
|
3072
|
+
element.setAttribute('crossorigin', this.crossorigin);
|
|
3281
3073
|
}
|
|
3282
3074
|
}
|
|
3283
|
-
class
|
|
3284
|
-
|
|
3285
|
-
for (const key in initialValues) {
|
|
3286
|
-
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3287
|
-
this[key] = initialValues[key];
|
|
3288
|
-
}
|
|
3289
|
-
}
|
|
3290
|
-
}
|
|
3075
|
+
class NoCrossOriginStrategy extends CrossOriginStrategy {
|
|
3076
|
+
setCrossOrigin() { }
|
|
3291
3077
|
}
|
|
3292
|
-
|
|
3293
|
-
|
|
3294
|
-
|
|
3078
|
+
const CROSS_ORIGIN_STRATEGY = {
|
|
3079
|
+
Anonymous(integrity) {
|
|
3080
|
+
return new CrossOriginStrategy('anonymous', integrity);
|
|
3081
|
+
},
|
|
3082
|
+
UseCredentials(integrity) {
|
|
3083
|
+
return new CrossOriginStrategy('use-credentials', integrity);
|
|
3084
|
+
},
|
|
3085
|
+
None() {
|
|
3086
|
+
return new NoCrossOriginStrategy(null);
|
|
3087
|
+
},
|
|
3088
|
+
};
|
|
3089
|
+
|
|
3090
|
+
class DomStrategy {
|
|
3091
|
+
constructor(target = document.head, position = 'beforeend') {
|
|
3092
|
+
this.target = target;
|
|
3093
|
+
this.position = position;
|
|
3295
3094
|
}
|
|
3296
|
-
|
|
3297
|
-
|
|
3298
|
-
constructor(initialValues = {}) {
|
|
3299
|
-
super(initialValues);
|
|
3095
|
+
insertElement(element) {
|
|
3096
|
+
this.target.insertAdjacentElement(this.position, element);
|
|
3300
3097
|
}
|
|
3301
3098
|
}
|
|
3302
|
-
|
|
3303
|
-
|
|
3304
|
-
|
|
3099
|
+
const DOM_STRATEGY = {
|
|
3100
|
+
AfterElement(element) {
|
|
3101
|
+
return new DomStrategy(element, 'afterend');
|
|
3102
|
+
},
|
|
3103
|
+
AppendToBody() {
|
|
3104
|
+
return new DomStrategy(document.body, 'beforeend');
|
|
3105
|
+
},
|
|
3106
|
+
AppendToHead() {
|
|
3107
|
+
return new DomStrategy(document.head, 'beforeend');
|
|
3108
|
+
},
|
|
3109
|
+
BeforeElement(element) {
|
|
3110
|
+
return new DomStrategy(element, 'beforebegin');
|
|
3111
|
+
},
|
|
3112
|
+
PrependToHead() {
|
|
3113
|
+
return new DomStrategy(document.head, 'afterbegin');
|
|
3114
|
+
},
|
|
3115
|
+
};
|
|
3116
|
+
|
|
3117
|
+
function fromLazyLoad(element, domStrategy = DOM_STRATEGY.AppendToHead(), crossOriginStrategy = CROSS_ORIGIN_STRATEGY.Anonymous()) {
|
|
3118
|
+
crossOriginStrategy.setCrossOrigin(element);
|
|
3119
|
+
domStrategy.insertElement(element);
|
|
3120
|
+
return new Observable((observer) => {
|
|
3121
|
+
element.onload = (event) => {
|
|
3122
|
+
clearCallbacks(element);
|
|
3123
|
+
observer.next(event);
|
|
3124
|
+
observer.complete();
|
|
3125
|
+
};
|
|
3126
|
+
const handleError = createErrorHandler(observer, element);
|
|
3127
|
+
element.onerror = handleError;
|
|
3128
|
+
element.onabort = handleError;
|
|
3129
|
+
element.onemptied = handleError;
|
|
3130
|
+
element.onstalled = handleError;
|
|
3131
|
+
element.onsuspend = handleError;
|
|
3132
|
+
return () => {
|
|
3133
|
+
clearCallbacks(element);
|
|
3134
|
+
observer.complete();
|
|
3135
|
+
};
|
|
3136
|
+
});
|
|
3137
|
+
}
|
|
3138
|
+
function createErrorHandler(observer, element) {
|
|
3139
|
+
return function (event) {
|
|
3140
|
+
clearCallbacks(element);
|
|
3141
|
+
element.parentNode.removeChild(element);
|
|
3142
|
+
observer.error(event);
|
|
3143
|
+
};
|
|
3144
|
+
}
|
|
3145
|
+
function clearCallbacks(element) {
|
|
3146
|
+
element.onload = null;
|
|
3147
|
+
element.onerror = null;
|
|
3148
|
+
element.onabort = null;
|
|
3149
|
+
element.onemptied = null;
|
|
3150
|
+
element.onstalled = null;
|
|
3151
|
+
element.onsuspend = null;
|
|
3152
|
+
}
|
|
3153
|
+
|
|
3154
|
+
class DomInsertionService {
|
|
3155
|
+
constructor() {
|
|
3156
|
+
this.inserted = new Set();
|
|
3157
|
+
}
|
|
3158
|
+
insertContent(contentStrategy) {
|
|
3159
|
+
const hash = generateHash(contentStrategy.content);
|
|
3160
|
+
if (this.inserted.has(hash))
|
|
3161
|
+
return;
|
|
3162
|
+
const element = contentStrategy.insertElement();
|
|
3163
|
+
this.inserted.add(hash);
|
|
3164
|
+
return element;
|
|
3305
3165
|
}
|
|
3306
|
-
|
|
3307
|
-
|
|
3308
|
-
|
|
3309
|
-
|
|
3166
|
+
removeContent(element) {
|
|
3167
|
+
const hash = generateHash(element.textContent);
|
|
3168
|
+
this.inserted.delete(hash);
|
|
3169
|
+
element.parentNode.removeChild(element);
|
|
3310
3170
|
}
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
super(initialValues);
|
|
3171
|
+
has(content) {
|
|
3172
|
+
const hash = generateHash(content);
|
|
3173
|
+
return this.inserted.has(hash);
|
|
3315
3174
|
}
|
|
3316
3175
|
}
|
|
3317
|
-
|
|
3318
|
-
|
|
3319
|
-
|
|
3176
|
+
DomInsertionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: DomInsertionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3177
|
+
DomInsertionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: DomInsertionService, providedIn: 'root' });
|
|
3178
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: DomInsertionService, decorators: [{
|
|
3179
|
+
type: Injectable,
|
|
3180
|
+
args: [{ providedIn: 'root' }]
|
|
3181
|
+
}] });
|
|
3182
|
+
|
|
3183
|
+
class ResourceWaitService {
|
|
3184
|
+
constructor() {
|
|
3185
|
+
this.store = new InternalStore({ resources: new Set() });
|
|
3320
3186
|
}
|
|
3321
|
-
|
|
3322
|
-
|
|
3323
|
-
constructor(initialValues = {}) {
|
|
3324
|
-
for (const key in initialValues) {
|
|
3325
|
-
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3326
|
-
this[key] = initialValues[key];
|
|
3327
|
-
}
|
|
3328
|
-
}
|
|
3187
|
+
getLoading() {
|
|
3188
|
+
return !!this.store.state.resources.size;
|
|
3329
3189
|
}
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
constructor(initialValues = {}) {
|
|
3333
|
-
super(initialValues);
|
|
3190
|
+
getLoading$() {
|
|
3191
|
+
return this.store.sliceState(({ resources }) => !!resources.size);
|
|
3334
3192
|
}
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
constructor(initialValues = {}) {
|
|
3338
|
-
super(initialValues);
|
|
3193
|
+
updateLoading$() {
|
|
3194
|
+
return this.store.sliceUpdate(({ resources }) => !!resources.size);
|
|
3339
3195
|
}
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
constructor(initialValues = {}) {
|
|
3343
|
-
super(initialValues);
|
|
3196
|
+
clearLoading() {
|
|
3197
|
+
this.store.patch({ resources: new Set() });
|
|
3344
3198
|
}
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3199
|
+
addResource(resource) {
|
|
3200
|
+
const resources = this.store.state.resources;
|
|
3201
|
+
resources.add(resource);
|
|
3202
|
+
this.store.patch({ resources });
|
|
3349
3203
|
}
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3204
|
+
deleteResource(resource) {
|
|
3205
|
+
const resources = this.store.state.resources;
|
|
3206
|
+
resources.delete(resource);
|
|
3207
|
+
this.store.patch({ resources });
|
|
3354
3208
|
}
|
|
3355
3209
|
}
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3210
|
+
ResourceWaitService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ResourceWaitService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3211
|
+
ResourceWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ResourceWaitService, providedIn: 'root' });
|
|
3212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ResourceWaitService, decorators: [{
|
|
3213
|
+
type: Injectable,
|
|
3214
|
+
args: [{
|
|
3215
|
+
providedIn: 'root',
|
|
3216
|
+
}]
|
|
3217
|
+
}] });
|
|
3218
|
+
|
|
3219
|
+
class LazyLoadService {
|
|
3220
|
+
constructor(resourceWaitService) {
|
|
3221
|
+
this.resourceWaitService = resourceWaitService;
|
|
3222
|
+
this.loaded = new Map();
|
|
3359
3223
|
}
|
|
3360
|
-
|
|
3361
|
-
|
|
3362
|
-
|
|
3363
|
-
|
|
3224
|
+
load(strategy, retryTimes, retryDelay) {
|
|
3225
|
+
if (this.loaded.has(strategy.path))
|
|
3226
|
+
return of(new CustomEvent('load'));
|
|
3227
|
+
this.resourceWaitService.addResource(strategy.path);
|
|
3228
|
+
return strategy.createStream().pipe(retryWhen(error$ => concat(error$.pipe(delay(retryDelay), take(retryTimes)), throwError(new CustomEvent('error')))), tap(() => {
|
|
3229
|
+
this.loaded.set(strategy.path, strategy.element);
|
|
3230
|
+
this.resourceWaitService.deleteResource(strategy.path);
|
|
3231
|
+
}), delay(100), shareReplay({ bufferSize: 1, refCount: true }));
|
|
3364
3232
|
}
|
|
3365
|
-
|
|
3366
|
-
|
|
3367
|
-
|
|
3368
|
-
|
|
3369
|
-
|
|
3370
|
-
this.
|
|
3371
|
-
|
|
3372
|
-
method: 'GET',
|
|
3373
|
-
url: '/api/abp/api-definition',
|
|
3374
|
-
params: { includeTypes: model.includeTypes },
|
|
3375
|
-
}, { apiName: this.apiName });
|
|
3233
|
+
remove(path) {
|
|
3234
|
+
const element = this.loaded.get(path);
|
|
3235
|
+
if (!element)
|
|
3236
|
+
return false;
|
|
3237
|
+
element.parentNode.removeChild(element);
|
|
3238
|
+
this.loaded.delete(path);
|
|
3239
|
+
return true;
|
|
3376
3240
|
}
|
|
3377
3241
|
}
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3242
|
+
LazyLoadService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LazyLoadService, deps: [{ token: ResourceWaitService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3243
|
+
LazyLoadService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LazyLoadService, providedIn: 'root' });
|
|
3244
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: LazyLoadService, decorators: [{
|
|
3381
3245
|
type: Injectable,
|
|
3382
3246
|
args: [{
|
|
3383
3247
|
providedIn: 'root',
|
|
3384
3248
|
}]
|
|
3385
|
-
}], ctorParameters: function () { return [{ type:
|
|
3249
|
+
}], ctorParameters: function () { return [{ type: ResourceWaitService }]; } });
|
|
3386
3250
|
|
|
3387
|
-
|
|
3388
|
-
__proto__: null
|
|
3389
|
-
});
|
|
3251
|
+
const LIST_QUERY_DEBOUNCE_TIME = new InjectionToken('LIST_QUERY_DEBOUNCE_TIME');
|
|
3390
3252
|
|
|
3391
|
-
class
|
|
3253
|
+
class ListService {
|
|
3392
3254
|
constructor(injector) {
|
|
3393
|
-
this.
|
|
3255
|
+
this._filter = '';
|
|
3256
|
+
this._maxResultCount = 10;
|
|
3257
|
+
this._skipCount = 0;
|
|
3258
|
+
this._page = 0;
|
|
3259
|
+
this._sortKey = '';
|
|
3260
|
+
this._sortOrder = '';
|
|
3261
|
+
this._query$ = new ReplaySubject(1);
|
|
3262
|
+
this._isLoading$ = new BehaviorSubject(false);
|
|
3263
|
+
this.destroy$ = new Subject();
|
|
3264
|
+
this.get = () => {
|
|
3265
|
+
this.resetPageWhenUnchanged();
|
|
3266
|
+
this.next();
|
|
3267
|
+
};
|
|
3268
|
+
this.getWithoutPageReset = () => {
|
|
3269
|
+
this.next();
|
|
3270
|
+
};
|
|
3271
|
+
const delay = injector.get(LIST_QUERY_DEBOUNCE_TIME, 300);
|
|
3272
|
+
this.delay = delay ? debounceTime(delay) : tap();
|
|
3273
|
+
this.get();
|
|
3394
3274
|
}
|
|
3395
|
-
|
|
3396
|
-
|
|
3275
|
+
set filter(value) {
|
|
3276
|
+
this._filter = value;
|
|
3277
|
+
this.get();
|
|
3278
|
+
}
|
|
3279
|
+
get filter() {
|
|
3280
|
+
return this._filter;
|
|
3281
|
+
}
|
|
3282
|
+
set maxResultCount(value) {
|
|
3283
|
+
this._maxResultCount = value;
|
|
3284
|
+
this.get();
|
|
3285
|
+
}
|
|
3286
|
+
get maxResultCount() {
|
|
3287
|
+
return this._maxResultCount;
|
|
3288
|
+
}
|
|
3289
|
+
set page(value) {
|
|
3290
|
+
if (value === this._page)
|
|
3291
|
+
return;
|
|
3292
|
+
this._page = value;
|
|
3293
|
+
this.get();
|
|
3294
|
+
}
|
|
3295
|
+
get page() {
|
|
3296
|
+
return this._page;
|
|
3297
|
+
}
|
|
3298
|
+
set sortKey(value) {
|
|
3299
|
+
this._sortKey = value;
|
|
3300
|
+
this.get();
|
|
3301
|
+
}
|
|
3302
|
+
get sortKey() {
|
|
3303
|
+
return this._sortKey;
|
|
3304
|
+
}
|
|
3305
|
+
set sortOrder(value) {
|
|
3306
|
+
this._sortOrder = value;
|
|
3307
|
+
this.get();
|
|
3308
|
+
}
|
|
3309
|
+
get sortOrder() {
|
|
3310
|
+
return this._sortOrder;
|
|
3311
|
+
}
|
|
3312
|
+
get query$() {
|
|
3313
|
+
return this._query$
|
|
3314
|
+
.asObservable()
|
|
3315
|
+
.pipe(this.delay, shareReplay({ bufferSize: 1, refCount: true }));
|
|
3316
|
+
}
|
|
3317
|
+
get isLoading$() {
|
|
3318
|
+
return this._isLoading$.asObservable();
|
|
3319
|
+
}
|
|
3320
|
+
hookToQuery(streamCreatorCallback) {
|
|
3321
|
+
this._isLoading$.next(true);
|
|
3322
|
+
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
|
+
}
|
|
3324
|
+
ngOnDestroy() {
|
|
3325
|
+
this.destroy$.next();
|
|
3326
|
+
}
|
|
3327
|
+
resetPageWhenUnchanged() {
|
|
3328
|
+
const skipCount = this._page * this._maxResultCount;
|
|
3329
|
+
if (skipCount === this._skipCount) {
|
|
3330
|
+
this._page = 0;
|
|
3331
|
+
this._skipCount = 0;
|
|
3332
|
+
}
|
|
3333
|
+
else
|
|
3334
|
+
this._skipCount = skipCount;
|
|
3335
|
+
}
|
|
3336
|
+
next() {
|
|
3337
|
+
this._query$.next({
|
|
3338
|
+
filter: this._filter || undefined,
|
|
3339
|
+
maxResultCount: this._maxResultCount,
|
|
3340
|
+
skipCount: this._page * this._maxResultCount,
|
|
3341
|
+
sorting: this._sortOrder ? `${this._sortKey} ${this._sortOrder}` : undefined,
|
|
3342
|
+
});
|
|
3397
3343
|
}
|
|
3398
3344
|
}
|
|
3399
|
-
|
|
3400
|
-
|
|
3401
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3402
|
-
type: Injectable
|
|
3403
|
-
args: [{ providedIn: 'root' }]
|
|
3345
|
+
ListService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ListService, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3346
|
+
ListService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ListService });
|
|
3347
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ListService, decorators: [{
|
|
3348
|
+
type: Injectable
|
|
3404
3349
|
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
3405
3350
|
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
}
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3413
|
-
}
|
|
3414
|
-
function getShortDateShortTimeFormat(configStateService) {
|
|
3415
|
-
const dateTimeFormat = configStateService.getDeep('localization.currentCulture.dateTimeFormat');
|
|
3416
|
-
return `${dateTimeFormat.shortDatePattern} ${dateTimeFormat.shortTimePattern.replace('tt', 'a')}`;
|
|
3417
|
-
}
|
|
3418
|
-
|
|
3419
|
-
class LazyModuleFactory extends NgModuleFactory {
|
|
3420
|
-
constructor(moduleWithProviders) {
|
|
3421
|
-
super();
|
|
3422
|
-
this.moduleWithProviders = moduleWithProviders;
|
|
3351
|
+
class RouterWaitService {
|
|
3352
|
+
constructor(routerEvents, injector) {
|
|
3353
|
+
this.routerEvents = routerEvents;
|
|
3354
|
+
this.store = new InternalStore({ loading: false });
|
|
3355
|
+
this.destroy$ = new Subject();
|
|
3356
|
+
this.delay = injector.get(LOADER_DELAY, 500);
|
|
3357
|
+
this.updateLoadingStatusOnNavigationEvents();
|
|
3423
3358
|
}
|
|
3424
|
-
|
|
3425
|
-
|
|
3359
|
+
updateLoadingStatusOnNavigationEvents() {
|
|
3360
|
+
this.routerEvents
|
|
3361
|
+
.getAllNavigationEvents()
|
|
3362
|
+
.pipe(map(event => event instanceof NavigationStart), switchMap(condition => condition
|
|
3363
|
+
? this.delay === 0
|
|
3364
|
+
? of(true)
|
|
3365
|
+
: timer(this.delay || 0).pipe(mapTo(true), takeUntil(this.destroy$))
|
|
3366
|
+
: of(false)), tap(() => this.destroy$.next()))
|
|
3367
|
+
.subscribe(status => {
|
|
3368
|
+
this.setLoading(status);
|
|
3369
|
+
});
|
|
3370
|
+
}
|
|
3371
|
+
getLoading() {
|
|
3372
|
+
return this.store.state.loading;
|
|
3373
|
+
}
|
|
3374
|
+
getLoading$() {
|
|
3375
|
+
return this.store.sliceState(({ loading }) => loading);
|
|
3426
3376
|
}
|
|
3427
|
-
|
|
3428
|
-
|
|
3429
|
-
|
|
3430
|
-
|
|
3431
|
-
});
|
|
3432
|
-
const compiler = injector.get(Compiler);
|
|
3433
|
-
const factory = compiler.compileModuleSync(this.moduleType);
|
|
3434
|
-
return factory.create(injector);
|
|
3377
|
+
updateLoading$() {
|
|
3378
|
+
return this.store.sliceUpdate(({ loading }) => loading);
|
|
3379
|
+
}
|
|
3380
|
+
setLoading(loading) {
|
|
3381
|
+
this.store.patch({ loading });
|
|
3435
3382
|
}
|
|
3436
3383
|
}
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3440
|
-
|
|
3441
|
-
|
|
3442
|
-
|
|
3443
|
-
|
|
3444
|
-
|
|
3445
|
-
link.download = filename;
|
|
3446
|
-
document.body.appendChild(link);
|
|
3447
|
-
link.dispatchEvent(new MouseEvent('click', {
|
|
3448
|
-
bubbles: true,
|
|
3449
|
-
cancelable: true,
|
|
3450
|
-
view: window,
|
|
3451
|
-
}));
|
|
3452
|
-
document.body.removeChild(link);
|
|
3453
|
-
}
|
|
3454
|
-
|
|
3455
|
-
function isNumber(value) {
|
|
3456
|
-
return value == Number(value);
|
|
3457
|
-
}
|
|
3458
|
-
|
|
3459
|
-
function mapEnumToOptions(_enum) {
|
|
3460
|
-
const options = [];
|
|
3461
|
-
for (const member in _enum)
|
|
3462
|
-
if (!isNumber(member))
|
|
3463
|
-
options.push({
|
|
3464
|
-
key: member,
|
|
3465
|
-
value: _enum[member],
|
|
3466
|
-
});
|
|
3467
|
-
return options;
|
|
3468
|
-
}
|
|
3384
|
+
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 });
|
|
3385
|
+
RouterWaitService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterWaitService, providedIn: 'root' });
|
|
3386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RouterWaitService, decorators: [{
|
|
3387
|
+
type: Injectable,
|
|
3388
|
+
args: [{
|
|
3389
|
+
providedIn: 'root',
|
|
3390
|
+
}]
|
|
3391
|
+
}], ctorParameters: function () { return [{ type: RouterEvents }, { type: i0.Injector }]; } });
|
|
3469
3392
|
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
for (let i = 0; i < value.length; i++) {
|
|
3479
|
-
charCode = value.charCodeAt(i);
|
|
3480
|
-
hashed = (hashed << 5) - hashed + charCode;
|
|
3481
|
-
hashed |= 0;
|
|
3393
|
+
const trackBy = (key) => (_, item) => item[key];
|
|
3394
|
+
const trackByDeep = (
|
|
3395
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
3396
|
+
...keys) => (_, item) => keys.reduce((acc, key) => acc[key], item);
|
|
3397
|
+
class TrackByService {
|
|
3398
|
+
constructor() {
|
|
3399
|
+
this.by = trackBy;
|
|
3400
|
+
this.byDeep = trackByDeep;
|
|
3482
3401
|
}
|
|
3483
|
-
return hashed;
|
|
3484
3402
|
}
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
const password = Array({ length });
|
|
3494
|
-
password[0] = getRandom(lowers);
|
|
3495
|
-
password[1] = getRandom(uppers);
|
|
3496
|
-
password[2] = getRandom(numbers);
|
|
3497
|
-
password[3] = getRandom(specials);
|
|
3498
|
-
for (let i = 4; i < length; i++) {
|
|
3499
|
-
password[i] = getRandom(all);
|
|
3500
|
-
}
|
|
3501
|
-
return password.sort(() => 0.5 - Math.random()).join('');
|
|
3502
|
-
}
|
|
3403
|
+
TrackByService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: TrackByService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3404
|
+
TrackByService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: TrackByService, providedIn: 'root' });
|
|
3405
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: TrackByService, decorators: [{
|
|
3406
|
+
type: Injectable,
|
|
3407
|
+
args: [{
|
|
3408
|
+
providedIn: 'root',
|
|
3409
|
+
}]
|
|
3410
|
+
}] });
|
|
3503
3411
|
|
|
3504
|
-
class
|
|
3505
|
-
constructor(
|
|
3506
|
-
|
|
3507
|
-
this.
|
|
3412
|
+
class ShortDateTimePipe extends DatePipe {
|
|
3413
|
+
constructor(configStateService, locale, defaultTimezone) {
|
|
3414
|
+
super(locale, defaultTimezone);
|
|
3415
|
+
this.configStateService = configStateService;
|
|
3508
3416
|
}
|
|
3509
|
-
|
|
3510
|
-
|
|
3511
|
-
|
|
3512
|
-
element.setAttribute('crossorigin', this.crossorigin);
|
|
3417
|
+
transform(value, timezone, locale) {
|
|
3418
|
+
const format = getShortDateShortTimeFormat(this.configStateService);
|
|
3419
|
+
return super.transform(value, format, timezone, locale);
|
|
3513
3420
|
}
|
|
3514
3421
|
}
|
|
3515
|
-
|
|
3516
|
-
|
|
3422
|
+
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 });
|
|
3423
|
+
ShortDateTimePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortDateTimePipe, name: "shortDateTime" });
|
|
3424
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortDateTimePipe, decorators: [{
|
|
3425
|
+
type: Pipe,
|
|
3426
|
+
args: [{
|
|
3427
|
+
name: 'shortDateTime',
|
|
3428
|
+
pure: true,
|
|
3429
|
+
}]
|
|
3430
|
+
}], ctorParameters: function () {
|
|
3431
|
+
return [{ type: ConfigStateService }, { type: undefined, decorators: [{
|
|
3432
|
+
type: Inject,
|
|
3433
|
+
args: [LOCALE_ID]
|
|
3434
|
+
}] }, { type: undefined, decorators: [{
|
|
3435
|
+
type: Inject,
|
|
3436
|
+
args: [DATE_PIPE_DEFAULT_TIMEZONE]
|
|
3437
|
+
}, {
|
|
3438
|
+
type: Optional
|
|
3439
|
+
}] }];
|
|
3440
|
+
} });
|
|
3441
|
+
|
|
3442
|
+
class ShortTimePipe extends DatePipe {
|
|
3443
|
+
constructor(configStateService, locale, defaultTimezone) {
|
|
3444
|
+
super(locale, defaultTimezone);
|
|
3445
|
+
this.configStateService = configStateService;
|
|
3446
|
+
}
|
|
3447
|
+
transform(value, timezone, locale) {
|
|
3448
|
+
const format = getShortTimeFormat(this.configStateService);
|
|
3449
|
+
return super.transform(value, format, timezone, locale);
|
|
3450
|
+
}
|
|
3517
3451
|
}
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3452
|
+
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 });
|
|
3453
|
+
ShortTimePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortTimePipe, name: "shortTime" });
|
|
3454
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortTimePipe, decorators: [{
|
|
3455
|
+
type: Pipe,
|
|
3456
|
+
args: [{
|
|
3457
|
+
name: 'shortTime',
|
|
3458
|
+
pure: true,
|
|
3459
|
+
}]
|
|
3460
|
+
}], ctorParameters: function () {
|
|
3461
|
+
return [{ type: ConfigStateService }, { type: undefined, decorators: [{
|
|
3462
|
+
type: Inject,
|
|
3463
|
+
args: [LOCALE_ID]
|
|
3464
|
+
}] }, { type: undefined, decorators: [{
|
|
3465
|
+
type: Inject,
|
|
3466
|
+
args: [DATE_PIPE_DEFAULT_TIMEZONE]
|
|
3467
|
+
}, {
|
|
3468
|
+
type: Optional
|
|
3469
|
+
}] }];
|
|
3470
|
+
} });
|
|
3529
3471
|
|
|
3530
|
-
class
|
|
3531
|
-
constructor(
|
|
3532
|
-
|
|
3533
|
-
this.
|
|
3472
|
+
class ShortDatePipe extends DatePipe {
|
|
3473
|
+
constructor(configStateService, locale, defaultTimezone) {
|
|
3474
|
+
super(locale, defaultTimezone);
|
|
3475
|
+
this.configStateService = configStateService;
|
|
3534
3476
|
}
|
|
3535
|
-
|
|
3536
|
-
|
|
3477
|
+
transform(value, timezone, locale) {
|
|
3478
|
+
const format = getShortDateFormat(this.configStateService);
|
|
3479
|
+
return super.transform(value, format, timezone, locale);
|
|
3537
3480
|
}
|
|
3538
3481
|
}
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
return
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3482
|
+
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 });
|
|
3483
|
+
ShortDatePipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortDatePipe, name: "shortDate" });
|
|
3484
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: ShortDatePipe, decorators: [{
|
|
3485
|
+
type: Pipe,
|
|
3486
|
+
args: [{
|
|
3487
|
+
name: 'shortDate',
|
|
3488
|
+
pure: true,
|
|
3489
|
+
}]
|
|
3490
|
+
}], ctorParameters: function () {
|
|
3491
|
+
return [{ type: ConfigStateService }, { type: undefined, decorators: [{
|
|
3492
|
+
type: Inject,
|
|
3493
|
+
args: [LOCALE_ID]
|
|
3494
|
+
}] }, { type: undefined, decorators: [{
|
|
3495
|
+
type: Inject,
|
|
3496
|
+
args: [DATE_PIPE_DEFAULT_TIMEZONE]
|
|
3497
|
+
}, {
|
|
3498
|
+
type: Optional
|
|
3499
|
+
}] }];
|
|
3500
|
+
} });
|
|
3501
|
+
|
|
3502
|
+
function storageFactory() {
|
|
3503
|
+
return oAuthStorage;
|
|
3504
|
+
}
|
|
3505
|
+
/**
|
|
3506
|
+
* BaseCoreModule is the module that holds
|
|
3507
|
+
* all imports, declarations, exports, and entryComponents
|
|
3508
|
+
* but not the providers.
|
|
3509
|
+
* This module will be imported and exported by all others.
|
|
3510
|
+
*/
|
|
3511
|
+
class BaseCoreModule {
|
|
3512
|
+
}
|
|
3513
|
+
BaseCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BaseCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3514
|
+
BaseCoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BaseCoreModule, declarations: [AbstractNgModelComponent,
|
|
3515
|
+
AutofocusDirective,
|
|
3516
|
+
DynamicLayoutComponent,
|
|
3517
|
+
ForDirective,
|
|
3518
|
+
FormSubmitDirective,
|
|
3519
|
+
InitDirective,
|
|
3520
|
+
InputEventDebounceDirective,
|
|
3521
|
+
PermissionDirective,
|
|
3522
|
+
ReplaceableRouteContainerComponent,
|
|
3523
|
+
ReplaceableTemplateDirective,
|
|
3524
|
+
RouterOutletComponent,
|
|
3525
|
+
SortPipe,
|
|
3526
|
+
StopPropagationDirective,
|
|
3527
|
+
ToInjectorPipe,
|
|
3528
|
+
ShortDateTimePipe,
|
|
3529
|
+
ShortTimePipe,
|
|
3530
|
+
ShortDatePipe], imports: [OAuthModule,
|
|
3531
|
+
CommonModule,
|
|
3532
|
+
HttpClientModule,
|
|
3533
|
+
FormsModule,
|
|
3534
|
+
ReactiveFormsModule,
|
|
3535
|
+
RouterModule,
|
|
3536
|
+
LocalizationModule], exports: [CommonModule,
|
|
3537
|
+
HttpClientModule,
|
|
3538
|
+
FormsModule,
|
|
3539
|
+
ReactiveFormsModule,
|
|
3540
|
+
RouterModule,
|
|
3541
|
+
LocalizationModule,
|
|
3542
|
+
AbstractNgModelComponent,
|
|
3543
|
+
AutofocusDirective,
|
|
3544
|
+
DynamicLayoutComponent,
|
|
3545
|
+
ForDirective,
|
|
3546
|
+
FormSubmitDirective,
|
|
3547
|
+
InitDirective,
|
|
3548
|
+
InputEventDebounceDirective,
|
|
3549
|
+
PermissionDirective,
|
|
3550
|
+
ReplaceableRouteContainerComponent,
|
|
3551
|
+
ReplaceableTemplateDirective,
|
|
3552
|
+
RouterOutletComponent,
|
|
3553
|
+
SortPipe,
|
|
3554
|
+
StopPropagationDirective,
|
|
3555
|
+
ToInjectorPipe,
|
|
3556
|
+
ShortDateTimePipe,
|
|
3557
|
+
ShortTimePipe,
|
|
3558
|
+
ShortDatePipe] });
|
|
3559
|
+
BaseCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BaseCoreModule, providers: [LocalizationPipe], imports: [[
|
|
3560
|
+
OAuthModule,
|
|
3561
|
+
CommonModule,
|
|
3562
|
+
HttpClientModule,
|
|
3563
|
+
FormsModule,
|
|
3564
|
+
ReactiveFormsModule,
|
|
3565
|
+
RouterModule,
|
|
3566
|
+
LocalizationModule,
|
|
3567
|
+
], CommonModule,
|
|
3568
|
+
HttpClientModule,
|
|
3569
|
+
FormsModule,
|
|
3570
|
+
ReactiveFormsModule,
|
|
3571
|
+
RouterModule,
|
|
3572
|
+
LocalizationModule] });
|
|
3573
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BaseCoreModule, decorators: [{
|
|
3574
|
+
type: NgModule,
|
|
3575
|
+
args: [{
|
|
3576
|
+
exports: [
|
|
3577
|
+
CommonModule,
|
|
3578
|
+
HttpClientModule,
|
|
3579
|
+
FormsModule,
|
|
3580
|
+
ReactiveFormsModule,
|
|
3581
|
+
RouterModule,
|
|
3582
|
+
LocalizationModule,
|
|
3583
|
+
AbstractNgModelComponent,
|
|
3584
|
+
AutofocusDirective,
|
|
3585
|
+
DynamicLayoutComponent,
|
|
3586
|
+
ForDirective,
|
|
3587
|
+
FormSubmitDirective,
|
|
3588
|
+
InitDirective,
|
|
3589
|
+
InputEventDebounceDirective,
|
|
3590
|
+
PermissionDirective,
|
|
3591
|
+
ReplaceableRouteContainerComponent,
|
|
3592
|
+
ReplaceableTemplateDirective,
|
|
3593
|
+
RouterOutletComponent,
|
|
3594
|
+
SortPipe,
|
|
3595
|
+
StopPropagationDirective,
|
|
3596
|
+
ToInjectorPipe,
|
|
3597
|
+
ShortDateTimePipe,
|
|
3598
|
+
ShortTimePipe,
|
|
3599
|
+
ShortDatePipe
|
|
3600
|
+
],
|
|
3601
|
+
imports: [
|
|
3602
|
+
OAuthModule,
|
|
3603
|
+
CommonModule,
|
|
3604
|
+
HttpClientModule,
|
|
3605
|
+
FormsModule,
|
|
3606
|
+
ReactiveFormsModule,
|
|
3607
|
+
RouterModule,
|
|
3608
|
+
LocalizationModule,
|
|
3609
|
+
],
|
|
3610
|
+
declarations: [
|
|
3611
|
+
AbstractNgModelComponent,
|
|
3612
|
+
AutofocusDirective,
|
|
3613
|
+
DynamicLayoutComponent,
|
|
3614
|
+
ForDirective,
|
|
3615
|
+
FormSubmitDirective,
|
|
3616
|
+
InitDirective,
|
|
3617
|
+
InputEventDebounceDirective,
|
|
3618
|
+
PermissionDirective,
|
|
3619
|
+
ReplaceableRouteContainerComponent,
|
|
3620
|
+
ReplaceableTemplateDirective,
|
|
3621
|
+
RouterOutletComponent,
|
|
3622
|
+
SortPipe,
|
|
3623
|
+
StopPropagationDirective,
|
|
3624
|
+
ToInjectorPipe,
|
|
3625
|
+
ShortDateTimePipe,
|
|
3626
|
+
ShortTimePipe,
|
|
3627
|
+
ShortDatePipe
|
|
3628
|
+
],
|
|
3629
|
+
providers: [LocalizationPipe]
|
|
3630
|
+
}]
|
|
3631
|
+
}] });
|
|
3632
|
+
/**
|
|
3633
|
+
* RootCoreModule is the module that will be used at root level
|
|
3634
|
+
* and it introduces imports useful at root level (e.g. NGXS)
|
|
3635
|
+
*/
|
|
3636
|
+
class RootCoreModule {
|
|
3637
|
+
}
|
|
3638
|
+
RootCoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RootCoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3639
|
+
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] });
|
|
3640
|
+
RootCoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RootCoreModule, imports: [[
|
|
3641
|
+
BaseCoreModule,
|
|
3642
|
+
LocalizationModule,
|
|
3643
|
+
OAuthModule.forRoot(),
|
|
3644
|
+
HttpClientXsrfModule.withOptions({
|
|
3645
|
+
cookieName: 'XSRF-TOKEN',
|
|
3646
|
+
headerName: 'RequestVerificationToken',
|
|
3647
|
+
}),
|
|
3648
|
+
], BaseCoreModule, LocalizationModule] });
|
|
3649
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: RootCoreModule, decorators: [{
|
|
3650
|
+
type: NgModule,
|
|
3651
|
+
args: [{
|
|
3652
|
+
exports: [BaseCoreModule, LocalizationModule],
|
|
3653
|
+
imports: [
|
|
3654
|
+
BaseCoreModule,
|
|
3655
|
+
LocalizationModule,
|
|
3656
|
+
OAuthModule.forRoot(),
|
|
3657
|
+
HttpClientXsrfModule.withOptions({
|
|
3658
|
+
cookieName: 'XSRF-TOKEN',
|
|
3659
|
+
headerName: 'RequestVerificationToken',
|
|
3660
|
+
}),
|
|
3661
|
+
],
|
|
3662
|
+
}]
|
|
3663
|
+
}] });
|
|
3664
|
+
/**
|
|
3665
|
+
* CoreModule is the module that is publicly available
|
|
3666
|
+
*/
|
|
3667
|
+
class CoreModule {
|
|
3668
|
+
static forRoot(options = {}) {
|
|
3669
|
+
return {
|
|
3670
|
+
ngModule: RootCoreModule,
|
|
3671
|
+
providers: [
|
|
3672
|
+
LocaleProvider,
|
|
3673
|
+
CookieLanguageProvider,
|
|
3674
|
+
{
|
|
3675
|
+
provide: 'CORE_OPTIONS',
|
|
3676
|
+
useValue: options,
|
|
3677
|
+
},
|
|
3678
|
+
{
|
|
3679
|
+
provide: CORE_OPTIONS,
|
|
3680
|
+
useFactory: coreOptionsFactory,
|
|
3681
|
+
deps: ['CORE_OPTIONS'],
|
|
3682
|
+
},
|
|
3683
|
+
{
|
|
3684
|
+
provide: HTTP_INTERCEPTORS,
|
|
3685
|
+
useExisting: ApiInterceptor,
|
|
3686
|
+
multi: true,
|
|
3687
|
+
},
|
|
3688
|
+
{
|
|
3689
|
+
provide: APP_INITIALIZER,
|
|
3690
|
+
multi: true,
|
|
3691
|
+
deps: [OAuthConfigurationHandler],
|
|
3692
|
+
useFactory: noop,
|
|
3693
|
+
},
|
|
3694
|
+
{
|
|
3695
|
+
provide: APP_INITIALIZER,
|
|
3696
|
+
multi: true,
|
|
3697
|
+
deps: [Injector],
|
|
3698
|
+
useFactory: getInitialData,
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
provide: APP_INITIALIZER,
|
|
3702
|
+
multi: true,
|
|
3703
|
+
deps: [Injector],
|
|
3704
|
+
useFactory: localeInitializer,
|
|
3705
|
+
},
|
|
3706
|
+
{
|
|
3707
|
+
provide: APP_INITIALIZER,
|
|
3708
|
+
multi: true,
|
|
3709
|
+
deps: [LocalizationService],
|
|
3710
|
+
useFactory: noop,
|
|
3711
|
+
},
|
|
3712
|
+
{
|
|
3713
|
+
provide: APP_INITIALIZER,
|
|
3714
|
+
multi: true,
|
|
3715
|
+
deps: [RoutesHandler],
|
|
3716
|
+
useFactory: noop,
|
|
3717
|
+
},
|
|
3718
|
+
{ provide: OAuthStorage, useFactory: storageFactory },
|
|
3719
|
+
{ provide: TENANT_KEY, useValue: options.tenantKey || '__tenant' },
|
|
3720
|
+
{
|
|
3721
|
+
provide: LOCALIZATIONS,
|
|
3722
|
+
multi: true,
|
|
3723
|
+
useValue: localizationContributor(options.localizations),
|
|
3724
|
+
deps: [LocalizationService],
|
|
3725
|
+
},
|
|
3726
|
+
],
|
|
3575
3727
|
};
|
|
3576
|
-
});
|
|
3577
|
-
}
|
|
3578
|
-
function createErrorHandler(observer, element) {
|
|
3579
|
-
return function (event) {
|
|
3580
|
-
clearCallbacks(element);
|
|
3581
|
-
element.parentNode.removeChild(element);
|
|
3582
|
-
observer.error(event);
|
|
3583
|
-
};
|
|
3584
|
-
}
|
|
3585
|
-
function clearCallbacks(element) {
|
|
3586
|
-
element.onload = null;
|
|
3587
|
-
element.onerror = null;
|
|
3588
|
-
element.onabort = null;
|
|
3589
|
-
element.onemptied = null;
|
|
3590
|
-
element.onstalled = null;
|
|
3591
|
-
element.onsuspend = null;
|
|
3592
|
-
}
|
|
3593
|
-
|
|
3594
|
-
class DomInsertionService {
|
|
3595
|
-
constructor() {
|
|
3596
|
-
this.inserted = new Set();
|
|
3597
|
-
}
|
|
3598
|
-
insertContent(contentStrategy) {
|
|
3599
|
-
const hash = generateHash(contentStrategy.content);
|
|
3600
|
-
if (this.inserted.has(hash))
|
|
3601
|
-
return;
|
|
3602
|
-
const element = contentStrategy.insertElement();
|
|
3603
|
-
this.inserted.add(hash);
|
|
3604
|
-
return element;
|
|
3605
|
-
}
|
|
3606
|
-
removeContent(element) {
|
|
3607
|
-
const hash = generateHash(element.textContent);
|
|
3608
|
-
this.inserted.delete(hash);
|
|
3609
|
-
element.parentNode.removeChild(element);
|
|
3610
3728
|
}
|
|
3611
|
-
|
|
3612
|
-
|
|
3613
|
-
|
|
3729
|
+
static forChild(options = {}) {
|
|
3730
|
+
return {
|
|
3731
|
+
ngModule: RootCoreModule,
|
|
3732
|
+
providers: [
|
|
3733
|
+
{
|
|
3734
|
+
provide: LOCALIZATIONS,
|
|
3735
|
+
multi: true,
|
|
3736
|
+
useValue: localizationContributor(options.localizations),
|
|
3737
|
+
deps: [LocalizationService],
|
|
3738
|
+
},
|
|
3739
|
+
],
|
|
3740
|
+
};
|
|
3614
3741
|
}
|
|
3615
3742
|
}
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
i0.ɵɵ
|
|
3619
|
-
|
|
3620
|
-
|
|
3621
|
-
|
|
3743
|
+
CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3744
|
+
CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: CoreModule, imports: [BaseCoreModule], exports: [BaseCoreModule] });
|
|
3745
|
+
CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: CoreModule, imports: [[BaseCoreModule], BaseCoreModule] });
|
|
3746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: CoreModule, decorators: [{
|
|
3747
|
+
type: NgModule,
|
|
3748
|
+
args: [{
|
|
3749
|
+
exports: [BaseCoreModule],
|
|
3750
|
+
imports: [BaseCoreModule],
|
|
3751
|
+
}]
|
|
3752
|
+
}] });
|
|
3753
|
+
function ngxsStoragePluginSerialize(data) {
|
|
3754
|
+
return data;
|
|
3755
|
+
}
|
|
3622
3756
|
|
|
3623
|
-
class
|
|
3624
|
-
constructor() {
|
|
3625
|
-
this.
|
|
3626
|
-
|
|
3627
|
-
getLoading() {
|
|
3628
|
-
return !!this.store.state.resources.size;
|
|
3629
|
-
}
|
|
3630
|
-
getLoading$() {
|
|
3631
|
-
return this.store.sliceState(({ resources }) => !!resources.size);
|
|
3632
|
-
}
|
|
3633
|
-
updateLoading$() {
|
|
3634
|
-
return this.store.sliceUpdate(({ resources }) => !!resources.size);
|
|
3635
|
-
}
|
|
3636
|
-
clearLoading() {
|
|
3637
|
-
this.store.patch({ resources: new Set() });
|
|
3638
|
-
}
|
|
3639
|
-
addResource(resource) {
|
|
3640
|
-
const resources = this.store.state.resources;
|
|
3641
|
-
resources.add(resource);
|
|
3642
|
-
this.store.patch({ resources });
|
|
3757
|
+
class AuthGuard {
|
|
3758
|
+
constructor(oauthService, authService) {
|
|
3759
|
+
this.oauthService = oauthService;
|
|
3760
|
+
this.authService = authService;
|
|
3643
3761
|
}
|
|
3644
|
-
|
|
3645
|
-
const
|
|
3646
|
-
|
|
3647
|
-
|
|
3762
|
+
canActivate() {
|
|
3763
|
+
const hasValidAccessToken = this.oauthService.hasValidAccessToken();
|
|
3764
|
+
if (hasValidAccessToken) {
|
|
3765
|
+
return true;
|
|
3766
|
+
}
|
|
3767
|
+
this.authService.navigateToLogin();
|
|
3768
|
+
return false;
|
|
3648
3769
|
}
|
|
3649
3770
|
}
|
|
3650
|
-
|
|
3651
|
-
|
|
3652
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3771
|
+
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 });
|
|
3772
|
+
AuthGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AuthGuard, providedIn: 'root' });
|
|
3773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AuthGuard, decorators: [{
|
|
3653
3774
|
type: Injectable,
|
|
3654
3775
|
args: [{
|
|
3655
3776
|
providedIn: 'root',
|
|
3656
3777
|
}]
|
|
3657
|
-
}] });
|
|
3778
|
+
}], ctorParameters: function () { return [{ type: i1$3.OAuthService }, { type: AuthService }]; } });
|
|
3658
3779
|
|
|
3659
|
-
class
|
|
3660
|
-
constructor(
|
|
3661
|
-
this.
|
|
3662
|
-
this.
|
|
3663
|
-
|
|
3664
|
-
|
|
3665
|
-
if (this.loaded.has(strategy.path))
|
|
3666
|
-
return of(new CustomEvent('load'));
|
|
3667
|
-
this.resourceWaitService.addResource(strategy.path);
|
|
3668
|
-
return strategy.createStream().pipe(retryWhen(error$ => concat(error$.pipe(delay(retryDelay), take(retryTimes)), throwError(new CustomEvent('error')))), tap(() => {
|
|
3669
|
-
this.loaded.set(strategy.path, strategy.element);
|
|
3670
|
-
this.resourceWaitService.deleteResource(strategy.path);
|
|
3671
|
-
}), delay(100), shareReplay({ bufferSize: 1, refCount: true }));
|
|
3780
|
+
class PermissionGuard {
|
|
3781
|
+
constructor(router, routesService, permissionService, httpErrorReporter) {
|
|
3782
|
+
this.router = router;
|
|
3783
|
+
this.routesService = routesService;
|
|
3784
|
+
this.permissionService = permissionService;
|
|
3785
|
+
this.httpErrorReporter = httpErrorReporter;
|
|
3672
3786
|
}
|
|
3673
|
-
|
|
3674
|
-
|
|
3675
|
-
if (!
|
|
3676
|
-
|
|
3677
|
-
|
|
3678
|
-
|
|
3679
|
-
|
|
3787
|
+
canActivate(route, state) {
|
|
3788
|
+
let { requiredPolicy } = route.data || {};
|
|
3789
|
+
if (!requiredPolicy) {
|
|
3790
|
+
const routeFound = findRoute(this.routesService, getRoutePath(this.router, state.url));
|
|
3791
|
+
requiredPolicy = routeFound === null || routeFound === void 0 ? void 0 : routeFound.requiredPolicy;
|
|
3792
|
+
}
|
|
3793
|
+
if (!requiredPolicy)
|
|
3794
|
+
return of(true);
|
|
3795
|
+
return this.permissionService.getGrantedPolicy$(requiredPolicy).pipe(tap(access => {
|
|
3796
|
+
if (!access) {
|
|
3797
|
+
this.httpErrorReporter.reportError({ status: 403 });
|
|
3798
|
+
}
|
|
3799
|
+
}));
|
|
3680
3800
|
}
|
|
3681
3801
|
}
|
|
3682
|
-
|
|
3683
|
-
|
|
3684
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3802
|
+
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 });
|
|
3803
|
+
PermissionGuard.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionGuard, providedIn: 'root' });
|
|
3804
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: PermissionGuard, decorators: [{
|
|
3685
3805
|
type: Injectable,
|
|
3686
3806
|
args: [{
|
|
3687
3807
|
providedIn: 'root',
|
|
3688
3808
|
}]
|
|
3689
|
-
}], ctorParameters: function () { return [{ type:
|
|
3690
|
-
|
|
3691
|
-
const LIST_QUERY_DEBOUNCE_TIME = new InjectionToken('LIST_QUERY_DEBOUNCE_TIME');
|
|
3809
|
+
}], ctorParameters: function () { return [{ type: i1$1.Router }, { type: RoutesService }, { type: PermissionService }, { type: HttpErrorReporterService }]; } });
|
|
3692
3810
|
|
|
3693
|
-
class
|
|
3694
|
-
constructor(
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
this._sortOrder = '';
|
|
3701
|
-
this._query$ = new ReplaySubject(1);
|
|
3702
|
-
this._isLoading$ = new BehaviorSubject(false);
|
|
3703
|
-
this.destroy$ = new Subject();
|
|
3704
|
-
this.get = () => {
|
|
3705
|
-
this.resetPageWhenUnchanged();
|
|
3706
|
-
this.next();
|
|
3707
|
-
};
|
|
3708
|
-
this.getWithoutPageReset = () => {
|
|
3709
|
-
this.next();
|
|
3710
|
-
};
|
|
3711
|
-
const delay = injector.get(LIST_QUERY_DEBOUNCE_TIME, 300);
|
|
3712
|
-
this.delay = delay ? debounceTime(delay) : tap();
|
|
3713
|
-
this.get();
|
|
3714
|
-
}
|
|
3715
|
-
set filter(value) {
|
|
3716
|
-
this._filter = value;
|
|
3717
|
-
this.get();
|
|
3718
|
-
}
|
|
3719
|
-
get filter() {
|
|
3720
|
-
return this._filter;
|
|
3721
|
-
}
|
|
3722
|
-
set maxResultCount(value) {
|
|
3723
|
-
this._maxResultCount = value;
|
|
3724
|
-
this.get();
|
|
3811
|
+
class ListResultDto {
|
|
3812
|
+
constructor(initialValues = {}) {
|
|
3813
|
+
for (const key in initialValues) {
|
|
3814
|
+
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3815
|
+
this[key] = initialValues[key];
|
|
3816
|
+
}
|
|
3817
|
+
}
|
|
3725
3818
|
}
|
|
3726
|
-
|
|
3727
|
-
|
|
3819
|
+
}
|
|
3820
|
+
class PagedResultDto extends ListResultDto {
|
|
3821
|
+
constructor(initialValues = {}) {
|
|
3822
|
+
super(initialValues);
|
|
3728
3823
|
}
|
|
3729
|
-
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
this.
|
|
3733
|
-
|
|
3824
|
+
}
|
|
3825
|
+
class LimitedResultRequestDto {
|
|
3826
|
+
constructor(initialValues = {}) {
|
|
3827
|
+
this.maxResultCount = 10;
|
|
3828
|
+
for (const key in initialValues) {
|
|
3829
|
+
if (Object.prototype.hasOwnProperty.call(initialValues, key) &&
|
|
3830
|
+
initialValues[key] !== undefined) {
|
|
3831
|
+
this[key] = initialValues[key];
|
|
3832
|
+
}
|
|
3833
|
+
}
|
|
3734
3834
|
}
|
|
3735
|
-
|
|
3736
|
-
|
|
3835
|
+
}
|
|
3836
|
+
class PagedResultRequestDto extends LimitedResultRequestDto {
|
|
3837
|
+
constructor(initialValues = {}) {
|
|
3838
|
+
super(initialValues);
|
|
3737
3839
|
}
|
|
3738
|
-
|
|
3739
|
-
|
|
3740
|
-
|
|
3840
|
+
}
|
|
3841
|
+
class PagedAndSortedResultRequestDto extends PagedResultRequestDto {
|
|
3842
|
+
constructor(initialValues = {}) {
|
|
3843
|
+
super(initialValues);
|
|
3741
3844
|
}
|
|
3742
|
-
|
|
3743
|
-
|
|
3845
|
+
}
|
|
3846
|
+
class EntityDto {
|
|
3847
|
+
constructor(initialValues = {}) {
|
|
3848
|
+
for (const key in initialValues) {
|
|
3849
|
+
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3850
|
+
this[key] = initialValues[key];
|
|
3851
|
+
}
|
|
3852
|
+
}
|
|
3744
3853
|
}
|
|
3745
|
-
|
|
3746
|
-
|
|
3747
|
-
|
|
3854
|
+
}
|
|
3855
|
+
class CreationAuditedEntityDto extends EntityDto {
|
|
3856
|
+
constructor(initialValues = {}) {
|
|
3857
|
+
super(initialValues);
|
|
3748
3858
|
}
|
|
3749
|
-
|
|
3750
|
-
|
|
3859
|
+
}
|
|
3860
|
+
class CreationAuditedEntityWithUserDto extends CreationAuditedEntityDto {
|
|
3861
|
+
constructor(initialValues = {}) {
|
|
3862
|
+
super(initialValues);
|
|
3751
3863
|
}
|
|
3752
|
-
|
|
3753
|
-
|
|
3754
|
-
|
|
3755
|
-
|
|
3864
|
+
}
|
|
3865
|
+
class AuditedEntityDto extends CreationAuditedEntityDto {
|
|
3866
|
+
constructor(initialValues = {}) {
|
|
3867
|
+
super(initialValues);
|
|
3756
3868
|
}
|
|
3757
|
-
|
|
3758
|
-
|
|
3869
|
+
}
|
|
3870
|
+
class AuditedEntityWithUserDto extends AuditedEntityDto {
|
|
3871
|
+
constructor(initialValues = {}) {
|
|
3872
|
+
super(initialValues);
|
|
3759
3873
|
}
|
|
3760
|
-
|
|
3761
|
-
|
|
3762
|
-
|
|
3874
|
+
}
|
|
3875
|
+
class FullAuditedEntityDto extends AuditedEntityDto {
|
|
3876
|
+
constructor(initialValues = {}) {
|
|
3877
|
+
super(initialValues);
|
|
3763
3878
|
}
|
|
3764
|
-
|
|
3765
|
-
|
|
3879
|
+
}
|
|
3880
|
+
class FullAuditedEntityWithUserDto extends FullAuditedEntityDto {
|
|
3881
|
+
constructor(initialValues = {}) {
|
|
3882
|
+
super(initialValues);
|
|
3766
3883
|
}
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3884
|
+
}
|
|
3885
|
+
class ExtensibleObject {
|
|
3886
|
+
constructor(initialValues = {}) {
|
|
3887
|
+
for (const key in initialValues) {
|
|
3888
|
+
if (Object.prototype.hasOwnProperty.call(initialValues, key)) {
|
|
3889
|
+
this[key] = initialValues[key];
|
|
3890
|
+
}
|
|
3772
3891
|
}
|
|
3773
|
-
else
|
|
3774
|
-
this._skipCount = skipCount;
|
|
3775
|
-
}
|
|
3776
|
-
next() {
|
|
3777
|
-
this._query$.next({
|
|
3778
|
-
filter: this._filter || undefined,
|
|
3779
|
-
maxResultCount: this._maxResultCount,
|
|
3780
|
-
skipCount: this._page * this._maxResultCount,
|
|
3781
|
-
sorting: this._sortOrder ? `${this._sortKey} ${this._sortOrder}` : undefined,
|
|
3782
|
-
});
|
|
3783
3892
|
}
|
|
3784
3893
|
}
|
|
3785
|
-
|
|
3786
|
-
|
|
3787
|
-
|
|
3788
|
-
type: Injectable
|
|
3789
|
-
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
3790
|
-
|
|
3791
|
-
class RouterWaitService {
|
|
3792
|
-
constructor(routerEvents, injector) {
|
|
3793
|
-
this.routerEvents = routerEvents;
|
|
3794
|
-
this.store = new InternalStore({ loading: false });
|
|
3795
|
-
this.destroy$ = new Subject();
|
|
3796
|
-
this.delay = injector.get(LOADER_DELAY, 500);
|
|
3797
|
-
this.updateLoadingStatusOnNavigationEvents();
|
|
3894
|
+
class ExtensibleEntityDto extends ExtensibleObject {
|
|
3895
|
+
constructor(initialValues = {}) {
|
|
3896
|
+
super(initialValues);
|
|
3798
3897
|
}
|
|
3799
|
-
|
|
3800
|
-
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
? this.delay === 0
|
|
3804
|
-
? of(true)
|
|
3805
|
-
: timer(this.delay || 0).pipe(mapTo(true), takeUntil(this.destroy$))
|
|
3806
|
-
: of(false)), tap(() => this.destroy$.next()))
|
|
3807
|
-
.subscribe(status => {
|
|
3808
|
-
this.setLoading(status);
|
|
3809
|
-
});
|
|
3898
|
+
}
|
|
3899
|
+
class ExtensibleCreationAuditedEntityDto extends ExtensibleEntityDto {
|
|
3900
|
+
constructor(initialValues = {}) {
|
|
3901
|
+
super(initialValues);
|
|
3810
3902
|
}
|
|
3811
|
-
|
|
3812
|
-
|
|
3903
|
+
}
|
|
3904
|
+
class ExtensibleAuditedEntityDto extends ExtensibleCreationAuditedEntityDto {
|
|
3905
|
+
constructor(initialValues = {}) {
|
|
3906
|
+
super(initialValues);
|
|
3813
3907
|
}
|
|
3814
|
-
|
|
3815
|
-
|
|
3908
|
+
}
|
|
3909
|
+
class ExtensibleAuditedEntityWithUserDto extends ExtensibleAuditedEntityDto {
|
|
3910
|
+
constructor(initialValues = {}) {
|
|
3911
|
+
super(initialValues);
|
|
3816
3912
|
}
|
|
3817
|
-
|
|
3818
|
-
|
|
3913
|
+
}
|
|
3914
|
+
class ExtensibleCreationAuditedEntityWithUserDto extends ExtensibleCreationAuditedEntityDto {
|
|
3915
|
+
constructor(initialValues = {}) {
|
|
3916
|
+
super(initialValues);
|
|
3819
3917
|
}
|
|
3820
|
-
|
|
3821
|
-
|
|
3918
|
+
}
|
|
3919
|
+
class ExtensibleFullAuditedEntityDto extends ExtensibleAuditedEntityDto {
|
|
3920
|
+
constructor(initialValues = {}) {
|
|
3921
|
+
super(initialValues);
|
|
3822
3922
|
}
|
|
3823
3923
|
}
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
|
|
3829
|
-
providedIn: 'root',
|
|
3830
|
-
}]
|
|
3831
|
-
}], ctorParameters: function () { return [{ type: RouterEvents }, { type: i0.Injector }]; } });
|
|
3924
|
+
class ExtensibleFullAuditedEntityWithUserDto extends ExtensibleFullAuditedEntityDto {
|
|
3925
|
+
constructor(initialValues = {}) {
|
|
3926
|
+
super(initialValues);
|
|
3927
|
+
}
|
|
3928
|
+
}
|
|
3832
3929
|
|
|
3833
|
-
|
|
3834
|
-
|
|
3835
|
-
|
|
3836
|
-
|
|
3837
|
-
|
|
3838
|
-
|
|
3839
|
-
|
|
3840
|
-
|
|
3930
|
+
class AbpApiDefinitionService {
|
|
3931
|
+
constructor(restService) {
|
|
3932
|
+
this.restService = restService;
|
|
3933
|
+
this.apiName = 'abp';
|
|
3934
|
+
this.getByModel = (model) => this.restService.request({
|
|
3935
|
+
method: 'GET',
|
|
3936
|
+
url: '/api/abp/api-definition',
|
|
3937
|
+
params: { includeTypes: model.includeTypes },
|
|
3938
|
+
}, { apiName: this.apiName });
|
|
3841
3939
|
}
|
|
3842
3940
|
}
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.
|
|
3941
|
+
AbpApiDefinitionService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpApiDefinitionService, deps: [{ token: RestService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3942
|
+
AbpApiDefinitionService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpApiDefinitionService, providedIn: 'root' });
|
|
3943
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: AbpApiDefinitionService, decorators: [{
|
|
3846
3944
|
type: Injectable,
|
|
3847
3945
|
args: [{
|
|
3848
3946
|
providedIn: 'root',
|
|
3849
3947
|
}]
|
|
3850
|
-
}] });
|
|
3948
|
+
}], ctorParameters: function () { return [{ type: RestService }]; } });
|
|
3949
|
+
|
|
3950
|
+
var index = /*#__PURE__*/Object.freeze({
|
|
3951
|
+
__proto__: null
|
|
3952
|
+
});
|
|
3851
3953
|
|
|
3852
3954
|
class ContainerStrategy {
|
|
3853
3955
|
constructor(containerRef) {
|
|
@@ -4247,5 +4349,5 @@ const AbpValidators = {
|
|
|
4247
4349
|
* Generated bundle index. Do not edit.
|
|
4248
4350
|
*/
|
|
4249
4351
|
|
|
4250
|
-
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 };
|
|
4352
|
+
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 };
|
|
4251
4353
|
//# sourceMappingURL=abp-ng.core.mjs.map
|