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