@abp/ng.core 8.2.1 → 8.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.
@@ -1,8 +1,8 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ChangeDetectorRef, Component, Input, Injectable, InjectionToken, NgModuleFactory, Injector, Compiler, Inject, signal, computed, Optional, isDevMode, SkipSelf, Directive, EventEmitter, Output, Self, Pipe, NgModule, APP_INITIALIZER, LOCALE_ID, SecurityContext, effect, ElementRef, HostListener, ComponentFactoryResolver, ApplicationRef } from '@angular/core';
2
+ import { inject, ChangeDetectorRef, Component, Input, Injectable, InjectionToken, NgModuleFactory, Injector, Compiler, Inject, signal, computed, effect, Optional, isDevMode, SkipSelf, Directive, EventEmitter, Output, Self, Pipe, NgModule, LOCALE_ID, SecurityContext, APP_INITIALIZER, makeEnvironmentProviders, ElementRef, HostListener, ComponentFactoryResolver, ApplicationRef } from '@angular/core';
3
3
  import { of, BehaviorSubject, Subject, throwError, firstValueFrom, lastValueFrom, Observable, timer, pipe, concat, ReplaySubject, map as map$1, Subscription, combineLatest, from, fromEvent } from 'rxjs';
4
4
  import * as i1$1 from '@angular/router';
5
- import { PRIMARY_OUTLET, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, Router, ActivatedRoute, TitleStrategy, RouterModule } from '@angular/router';
5
+ import { PRIMARY_OUTLET, NavigationCancel, NavigationEnd, NavigationError, NavigationStart, Router, TitleStrategy, ActivatedRoute, RouterModule } from '@angular/router';
6
6
  import * as i1$2 from '@angular/common';
7
7
  import { registerLocaleData, DOCUMENT, DatePipe, DATE_PIPE_DEFAULT_TIMEZONE, CommonModule } from '@angular/common';
8
8
  import { map, distinctUntilChanged, filter, catchError, tap, take, switchMap, mapTo, takeUntil, delay, retryWhen, shareReplay, debounceTime, finalize } from 'rxjs/operators';
@@ -10,10 +10,10 @@ import * as i1 from '@angular/common/http';
10
10
  import { HttpClient, HttpContextToken, HttpContext, HttpParams, HttpErrorResponse, HttpClientModule, HttpClientXsrfModule, HttpHeaders } from '@angular/common/http';
11
11
  import compare from 'just-compare';
12
12
  import clone from 'just-clone';
13
+ import { toSignal } from '@angular/core/rxjs-interop';
14
+ import { Title, DomSanitizer } from '@angular/platform-browser';
13
15
  import * as i1$3 from '@angular/forms';
14
16
  import { FormsModule, ReactiveFormsModule, Validators } from '@angular/forms';
15
- import { DomSanitizer, Title } from '@angular/platform-browser';
16
- import { toSignal } from '@angular/core/rxjs-interop';
17
17
 
18
18
  // Not an abstract class on purpose. Do not change!
19
19
  class AbstractNgModelComponent {
@@ -584,10 +584,10 @@ function generateHash(value) {
584
584
  }
585
585
  function generatePassword(length = 8) {
586
586
  length = Math.min(Math.max(4, length), 128);
587
- const lowers = 'abcdefghijklmnopqrstuvwxyz';
588
- const uppers = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ';
589
- const numbers = '0123456789';
590
- const specials = '!@#$%&*()_+{}<>?[]./';
587
+ const lowers = 'abcdefghjkmnpqrstuvwxyz';
588
+ const uppers = 'ABCDEFGHJKMNPQRSTUVWXYZ';
589
+ const numbers = '23456789';
590
+ const specials = '!*_#/+-.';
591
591
  const all = lowers + uppers + numbers + specials;
592
592
  const getRandom = (chrSet) => chrSet[Math.floor(Math.random() * chrSet.length)];
593
593
  const password = Array({ length });
@@ -1757,6 +1757,10 @@ function compareFuncFactory() {
1757
1757
  return fn;
1758
1758
  }
1759
1759
 
1760
+ const DYNAMIC_LAYOUTS_TOKEN = new InjectionToken('DYNAMIC_LAYOUTS');
1761
+
1762
+ const DISABLE_PROJECT_NAME = new InjectionToken('DISABLE_APP_NAME');
1763
+
1760
1764
  // eslint-disable-next-line @typescript-eslint/ban-types
1761
1765
  class AbstractTreeService {
1762
1766
  constructor() {
@@ -2092,6 +2096,45 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
2092
2096
  }]
2093
2097
  }], ctorParameters: () => [] });
2094
2098
 
2099
+ class AbpTitleStrategy extends TitleStrategy {
2100
+ constructor() {
2101
+ super();
2102
+ this.title = inject(Title);
2103
+ this.localizationService = inject(LocalizationService);
2104
+ this.disableProjectName = inject(DISABLE_PROJECT_NAME, { optional: true });
2105
+ this.langugageChange = toSignal(this.localizationService.languageChange$);
2106
+ effect(() => {
2107
+ if (this.langugageChange()) {
2108
+ this.updateTitle(this.routerState);
2109
+ }
2110
+ });
2111
+ }
2112
+ updateTitle(routerState) {
2113
+ this.routerState = routerState;
2114
+ const title = this.buildTitle(routerState);
2115
+ const projectName = this.localizationService.instant({
2116
+ key: '::AppName',
2117
+ defaultValue: 'MyProjectName',
2118
+ });
2119
+ if (!title) {
2120
+ return this.title.setTitle(projectName);
2121
+ }
2122
+ let localizedText = this.localizationService.instant({ key: title, defaultValue: title });
2123
+ if (!this.disableProjectName) {
2124
+ localizedText += ` | ${projectName}`;
2125
+ }
2126
+ this.title.setTitle(localizedText);
2127
+ }
2128
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AbpTitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2129
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AbpTitleStrategy, providedIn: 'root' }); }
2130
+ }
2131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AbpTitleStrategy, decorators: [{
2132
+ type: Injectable,
2133
+ args: [{
2134
+ providedIn: 'root',
2135
+ }]
2136
+ }], ctorParameters: () => [] });
2137
+
2095
2138
  class AbpApplicationConfigurationService {
2096
2139
  constructor(restService) {
2097
2140
  this.restService = restService;
@@ -2506,8 +2549,6 @@ function combineLegacyandNewResources(legacy, resource) {
2506
2549
  }, legacy);
2507
2550
  }
2508
2551
 
2509
- const DYNAMIC_LAYOUTS_TOKEN = new InjectionToken('DYNAMIC_LAYOUTS');
2510
-
2511
2552
  class DynamicLayoutComponent {
2512
2553
  constructor(dynamicLayoutComponent) {
2513
2554
  this.layouts = inject(DYNAMIC_LAYOUTS_TOKEN);
@@ -3523,51 +3564,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
3523
3564
  args: ['click.stop']
3524
3565
  }] } });
3525
3566
 
3526
- class RoutesHandler {
3527
- constructor(routes, router) {
3528
- this.routes = routes;
3529
- this.router = router;
3530
- this.addRoutes();
3531
- }
3532
- addRoutes() {
3533
- this.router?.config?.forEach(({ path = '', data }) => {
3534
- const routes = data?.routes;
3535
- if (!routes)
3536
- return;
3537
- if (Array.isArray(routes)) {
3538
- this.routes.add(routes);
3539
- }
3540
- else {
3541
- const routesFlatten = flatRoutes([{ path, ...routes }], { path: '' });
3542
- this.routes.add(routesFlatten);
3543
- }
3544
- });
3545
- }
3546
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RoutesHandler, deps: [{ token: RoutesService }, { token: i1$1.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
3547
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RoutesHandler, providedIn: 'root' }); }
3548
- }
3549
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RoutesHandler, decorators: [{
3550
- type: Injectable,
3551
- args: [{
3552
- providedIn: 'root',
3553
- }]
3554
- }], ctorParameters: () => [{ type: RoutesService }, { type: i1$1.Router, decorators: [{
3555
- type: Optional
3556
- }] }] });
3557
- function flatRoutes(routes, parent) {
3558
- if (!routes)
3559
- return [];
3560
- return routes.reduce((acc, route) => {
3561
- const { children, ...current } = {
3562
- ...route,
3563
- parentName: parent.name,
3564
- path: (parent.path + '/' + route.path).replace(/\/\//g, '/'),
3565
- };
3566
- acc.push(current, ...flatRoutes(children, current));
3567
- return acc;
3568
- }, []);
3569
- }
3570
-
3571
3567
  class LocalizationPipe {
3572
3568
  constructor(localization) {
3573
3569
  this.localization = localization;
@@ -3684,46 +3680,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
3684
3680
  }]
3685
3681
  }], ctorParameters: () => [{ type: i0.Injector }] });
3686
3682
 
3687
- function setLanguageToCookie(injector) {
3688
- return () => {
3689
- const sessionState = injector.get(SessionStateService);
3690
- const document = injector.get(DOCUMENT);
3691
- const cookieLanguageKey = injector.get(COOKIE_LANGUAGE_KEY);
3692
- sessionState.getLanguage$().subscribe(language => {
3693
- const cookieValue = encodeURIComponent(`c=${language}|uic=${language}`);
3694
- document.cookie = `${cookieLanguageKey}=${cookieValue}`;
3695
- });
3696
- };
3697
- }
3698
- const CookieLanguageProvider = {
3699
- provide: APP_INITIALIZER,
3700
- useFactory: setLanguageToCookie,
3701
- deps: [Injector],
3702
- multi: true,
3703
- };
3704
-
3705
- class LocaleId extends String {
3706
- constructor(localizationService) {
3707
- super();
3708
- this.localizationService = localizationService;
3709
- }
3710
- toString() {
3711
- const { currentLang } = this.localizationService;
3712
- if (checkHasProp(differentLocales, currentLang)) {
3713
- return differentLocales[currentLang];
3714
- }
3715
- return currentLang;
3716
- }
3717
- valueOf() {
3718
- return this.toString();
3719
- }
3720
- }
3721
- const LocaleProvider = {
3722
- provide: LOCALE_ID,
3723
- useClass: LocaleId,
3724
- deps: [LocalizationService],
3725
- };
3726
-
3727
3683
  Date.prototype.toLocalISOString = function () {
3728
3684
  const timezoneOffset = this.getTimezoneOffset();
3729
3685
  return new Date(this.getTime() - timezoneOffset * 60000).toISOString();
@@ -3833,46 +3789,216 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
3833
3789
  args: [{ name: 'abpSafeHtml' }]
3834
3790
  }] });
3835
3791
 
3792
+ function setLanguageToCookie(injector) {
3793
+ return () => {
3794
+ const sessionState = injector.get(SessionStateService);
3795
+ const document = injector.get(DOCUMENT);
3796
+ const cookieLanguageKey = injector.get(COOKIE_LANGUAGE_KEY);
3797
+ sessionState.getLanguage$().subscribe(language => {
3798
+ const cookieValue = encodeURIComponent(`c=${language}|uic=${language}`);
3799
+ document.cookie = `${cookieLanguageKey}=${cookieValue}`;
3800
+ });
3801
+ };
3802
+ }
3803
+ const CookieLanguageProvider = {
3804
+ provide: APP_INITIALIZER,
3805
+ useFactory: setLanguageToCookie,
3806
+ deps: [Injector],
3807
+ multi: true,
3808
+ };
3809
+
3810
+ class LocaleId extends String {
3811
+ constructor(localizationService) {
3812
+ super();
3813
+ this.localizationService = localizationService;
3814
+ }
3815
+ toString() {
3816
+ const { currentLang } = this.localizationService;
3817
+ if (checkHasProp(differentLocales, currentLang)) {
3818
+ return differentLocales[currentLang];
3819
+ }
3820
+ return currentLang;
3821
+ }
3822
+ valueOf() {
3823
+ return this.toString();
3824
+ }
3825
+ }
3826
+ const LocaleProvider = {
3827
+ provide: LOCALE_ID,
3828
+ useClass: LocaleId,
3829
+ deps: [LocalizationService],
3830
+ };
3831
+
3836
3832
  const IncludeLocalizationResourcesProvider = {
3837
3833
  provide: INCUDE_LOCALIZATION_RESOURCES_TOKEN,
3838
3834
  useValue: false,
3839
3835
  };
3840
3836
 
3841
- class AbpTitleStrategy extends TitleStrategy {
3842
- constructor() {
3843
- super();
3844
- this.title = inject(Title);
3845
- this.configState = inject(ConfigStateService);
3846
- this.localizationService = inject(LocalizationService);
3847
- this.projectName = toSignal(this.configState.getDeep$('localization.defaultResourceName'), {
3848
- initialValue: 'MyProjectName',
3849
- });
3850
- this.langugageChange = toSignal(this.localizationService.languageChange$);
3851
- effect(() => {
3852
- if (this.langugageChange()) {
3853
- this.updateTitle(this.routerState);
3837
+ class RoutesHandler {
3838
+ constructor(routes, router) {
3839
+ this.routes = routes;
3840
+ this.router = router;
3841
+ this.addRoutes();
3842
+ }
3843
+ addRoutes() {
3844
+ this.router?.config?.forEach(({ path = '', data }) => {
3845
+ const routes = data?.routes;
3846
+ if (!routes)
3847
+ return;
3848
+ if (Array.isArray(routes)) {
3849
+ this.routes.add(routes);
3850
+ }
3851
+ else {
3852
+ const routesFlatten = flatRoutes([{ path, ...routes }], { path: '' });
3853
+ this.routes.add(routesFlatten);
3854
3854
  }
3855
3855
  });
3856
3856
  }
3857
- updateTitle(routerState) {
3858
- this.routerState = routerState;
3859
- let title = this.buildTitle(routerState);
3860
- if (!title) {
3861
- this.title.setTitle(this.projectName());
3862
- return;
3863
- }
3864
- const localizedTitle = this.localizationService.instant({ key: title, defaultValue: title });
3865
- this.title.setTitle(`${localizedTitle} | ${this.projectName()}`);
3866
- }
3867
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AbpTitleStrategy, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3868
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AbpTitleStrategy, providedIn: 'root' }); }
3857
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RoutesHandler, deps: [{ token: RoutesService }, { token: i1$1.Router, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
3858
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RoutesHandler, providedIn: 'root' }); }
3869
3859
  }
3870
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: AbpTitleStrategy, decorators: [{
3860
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: RoutesHandler, decorators: [{
3871
3861
  type: Injectable,
3872
3862
  args: [{
3873
3863
  providedIn: 'root',
3874
3864
  }]
3875
- }], ctorParameters: () => [] });
3865
+ }], ctorParameters: () => [{ type: RoutesService }, { type: i1$1.Router, decorators: [{
3866
+ type: Optional
3867
+ }] }] });
3868
+ function flatRoutes(routes, parent) {
3869
+ if (!routes)
3870
+ return [];
3871
+ return routes.reduce((acc, route) => {
3872
+ const { children, ...current } = {
3873
+ ...route,
3874
+ parentName: parent.name,
3875
+ path: (parent.path + '/' + route.path).replace(/\/\//g, '/'),
3876
+ };
3877
+ acc.push(current, ...flatRoutes(children, current));
3878
+ return acc;
3879
+ }, []);
3880
+ }
3881
+
3882
+ var CoreFeatureKind;
3883
+ (function (CoreFeatureKind) {
3884
+ CoreFeatureKind[CoreFeatureKind["Options"] = 0] = "Options";
3885
+ CoreFeatureKind[CoreFeatureKind["CompareFunctionFactory"] = 1] = "CompareFunctionFactory";
3886
+ CoreFeatureKind[CoreFeatureKind["TitleStrategy"] = 2] = "TitleStrategy";
3887
+ })(CoreFeatureKind || (CoreFeatureKind = {}));
3888
+ function makeCoreFeature(kind, providers) {
3889
+ return {
3890
+ ɵkind: kind,
3891
+ ɵproviders: providers,
3892
+ };
3893
+ }
3894
+ function withOptions(options = {}) {
3895
+ return makeCoreFeature(CoreFeatureKind.Options, [
3896
+ {
3897
+ provide: 'CORE_OPTIONS',
3898
+ useValue: options,
3899
+ },
3900
+ {
3901
+ provide: CORE_OPTIONS,
3902
+ useFactory: coreOptionsFactory,
3903
+ deps: ['CORE_OPTIONS'],
3904
+ },
3905
+ { provide: TENANT_KEY, useValue: options.tenantKey || '__tenant' },
3906
+ {
3907
+ provide: LOCALIZATIONS,
3908
+ multi: true,
3909
+ useValue: localizationContributor(options.localizations),
3910
+ deps: [LocalizationService],
3911
+ },
3912
+ {
3913
+ provide: OTHERS_GROUP,
3914
+ useValue: options.othersGroup || 'AbpUi::OthersGroup',
3915
+ },
3916
+ {
3917
+ provide: DYNAMIC_LAYOUTS_TOKEN,
3918
+ useValue: options.dynamicLayouts || DEFAULT_DYNAMIC_LAYOUTS,
3919
+ },
3920
+ ]);
3921
+ }
3922
+ function withTitleStrategy(strategy) {
3923
+ return makeCoreFeature(CoreFeatureKind.TitleStrategy, [
3924
+ {
3925
+ provide: TitleStrategy,
3926
+ useExisting: strategy,
3927
+ },
3928
+ ]);
3929
+ }
3930
+ function withCompareFuncFactory(factory) {
3931
+ return makeCoreFeature(CoreFeatureKind.CompareFunctionFactory, [
3932
+ {
3933
+ provide: SORT_COMPARE_FUNC,
3934
+ useFactory: factory,
3935
+ },
3936
+ ]);
3937
+ }
3938
+ function provideAbpCore(...features) {
3939
+ const providers = [
3940
+ LocaleProvider,
3941
+ CookieLanguageProvider,
3942
+ {
3943
+ provide: APP_INITIALIZER,
3944
+ multi: true,
3945
+ deps: [Injector],
3946
+ useFactory: getInitialData,
3947
+ },
3948
+ {
3949
+ provide: APP_INITIALIZER,
3950
+ multi: true,
3951
+ deps: [Injector],
3952
+ useFactory: localeInitializer,
3953
+ },
3954
+ {
3955
+ provide: APP_INITIALIZER,
3956
+ multi: true,
3957
+ deps: [LocalizationService],
3958
+ useFactory: noop,
3959
+ },
3960
+ {
3961
+ provide: APP_INITIALIZER,
3962
+ multi: true,
3963
+ deps: [LocalStorageListenerService],
3964
+ useFactory: noop,
3965
+ },
3966
+ {
3967
+ provide: APP_INITIALIZER,
3968
+ multi: true,
3969
+ deps: [RoutesHandler],
3970
+ useFactory: noop,
3971
+ },
3972
+ {
3973
+ provide: SORT_COMPARE_FUNC,
3974
+ useFactory: compareFuncFactory,
3975
+ },
3976
+ {
3977
+ provide: QUEUE_MANAGER,
3978
+ useClass: DefaultQueueManager,
3979
+ },
3980
+ AuthErrorFilterService,
3981
+ IncludeLocalizationResourcesProvider,
3982
+ {
3983
+ provide: TitleStrategy,
3984
+ useExisting: AbpTitleStrategy,
3985
+ },
3986
+ ];
3987
+ for (const feature of features) {
3988
+ providers.push(...feature.ɵproviders);
3989
+ }
3990
+ return makeEnvironmentProviders(providers);
3991
+ }
3992
+ function provideAbpCoreChild(options = {}) {
3993
+ return makeEnvironmentProviders([
3994
+ {
3995
+ provide: LOCALIZATIONS,
3996
+ multi: true,
3997
+ useValue: localizationContributor(options.localizations),
3998
+ deps: [LocalizationService],
3999
+ },
4000
+ ]);
4001
+ }
3876
4002
 
3877
4003
  const standaloneDirectives = [
3878
4004
  AutofocusDirective,
@@ -4026,94 +4152,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
4026
4152
  * CoreModule is the module that is publicly available
4027
4153
  */
4028
4154
  class CoreModule {
4155
+ /**
4156
+ * @deprecated forRoot method is deprecated, use `provideAbpCore` *function* for config settings.
4157
+ */
4029
4158
  static forRoot(options = {}) {
4030
4159
  return {
4031
4160
  ngModule: RootCoreModule,
4032
- providers: [
4033
- LocaleProvider,
4034
- CookieLanguageProvider,
4035
- {
4036
- provide: 'CORE_OPTIONS',
4037
- useValue: options,
4038
- },
4039
- {
4040
- provide: CORE_OPTIONS,
4041
- useFactory: coreOptionsFactory,
4042
- deps: ['CORE_OPTIONS'],
4043
- },
4044
- {
4045
- provide: APP_INITIALIZER,
4046
- multi: true,
4047
- deps: [Injector],
4048
- useFactory: getInitialData,
4049
- },
4050
- {
4051
- provide: APP_INITIALIZER,
4052
- multi: true,
4053
- deps: [Injector],
4054
- useFactory: localeInitializer,
4055
- },
4056
- {
4057
- provide: APP_INITIALIZER,
4058
- multi: true,
4059
- deps: [LocalizationService],
4060
- useFactory: noop,
4061
- },
4062
- {
4063
- provide: APP_INITIALIZER,
4064
- multi: true,
4065
- deps: [LocalStorageListenerService],
4066
- useFactory: noop,
4067
- },
4068
- {
4069
- provide: APP_INITIALIZER,
4070
- multi: true,
4071
- deps: [RoutesHandler],
4072
- useFactory: noop,
4073
- },
4074
- { provide: TENANT_KEY, useValue: options.tenantKey || '__tenant' },
4075
- {
4076
- provide: LOCALIZATIONS,
4077
- multi: true,
4078
- useValue: localizationContributor(options.localizations),
4079
- deps: [LocalizationService],
4080
- },
4081
- {
4082
- provide: SORT_COMPARE_FUNC,
4083
- useFactory: compareFuncFactory,
4084
- },
4085
- {
4086
- provide: QUEUE_MANAGER,
4087
- useClass: DefaultQueueManager,
4088
- },
4089
- {
4090
- provide: OTHERS_GROUP,
4091
- useValue: options.othersGroup || 'AbpUi::OthersGroup',
4092
- },
4093
- AuthErrorFilterService,
4094
- IncludeLocalizationResourcesProvider,
4095
- {
4096
- provide: DYNAMIC_LAYOUTS_TOKEN,
4097
- useValue: options.dynamicLayouts || DEFAULT_DYNAMIC_LAYOUTS
4098
- },
4099
- {
4100
- provide: TitleStrategy,
4101
- useExisting: AbpTitleStrategy
4102
- }
4103
- ],
4161
+ providers: [provideAbpCore(withOptions(options))],
4104
4162
  };
4105
4163
  }
4164
+ /**
4165
+ * @deprecated forChild method is deprecated, use `provideAbpCoreChild` *function* for config settings.
4166
+ */
4106
4167
  static forChild(options = {}) {
4107
4168
  return {
4108
4169
  ngModule: RootCoreModule,
4109
- providers: [
4110
- {
4111
- provide: LOCALIZATIONS,
4112
- multi: true,
4113
- useValue: localizationContributor(options.localizations),
4114
- deps: [LocalizationService],
4115
- },
4116
- ],
4170
+ providers: [provideAbpCoreChild(options)],
4117
4171
  };
4118
4172
  }
4119
4173
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.12", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
@@ -4877,5 +4931,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.12", ngImpo
4877
4931
  * Generated bundle index. Do not edit.
4878
4932
  */
4879
4933
 
4880
- export { APP_INIT_ERROR_HANDLERS, AbpApiDefinitionService, AbpApplicationConfigurationService, AbpApplicationLocalizationService, AbpLocalStorageService, AbpTenantService, AbpValidators, AbpWindowService, AbstractAuthErrorFilter, AbstractNavTreeService, AbstractNgModelComponent, AbstractTreeService, ApiInterceptor, AuditedEntityDto, AuditedEntityWithUserDto, AuthErrorEvent, AuthErrorFilterService, AuthEvent, AuthGuard, AuthInfoEvent, AuthService, AuthSuccessEvent, AutofocusDirective, BaseCoreModule, BaseTreeNode, CHECK_AUTHENTICATION_STATE_FN_KEY, CONTAINER_STRATEGY, CONTENT_SECURITY_STRATEGY, CONTENT_STRATEGY, CONTEXT_STRATEGY, COOKIE_LANGUAGE_KEY, CORE_OPTIONS, CROSS_ORIGIN_STRATEGY, ClearContainerStrategy, ComponentContextStrategy, ComponentProjectionStrategy, ConfigStateService, ContainerStrategy, ContentProjectionService, ContentSecurityStrategy, ContentStrategy, ContextStrategy, CoreModule, CreationAuditedEntityDto, CreationAuditedEntityWithUserDto, CrossOriginStrategy, DEFAULT_DYNAMIC_LAYOUTS, DOM_STRATEGY, DefaultQueueManager, DomInsertionService, DomStrategy, DynamicLayoutComponent, EntityDto, EnvironmentService, ExtensibleAuditedEntityDto, ExtensibleAuditedEntityWithUserDto, ExtensibleCreationAuditedEntityDto, ExtensibleCreationAuditedEntityWithUserDto, ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleFullAuditedEntityWithUserDto, ExtensibleLimitedResultRequestDto, ExtensibleObject, ExtensiblePagedAndSortedResultRequestDto, ExtensiblePagedResultRequestDto, ExternalHttpClient, ForDirective, FormSubmitDirective, FullAuditedEntityDto, FullAuditedEntityWithUserDto, HttpErrorReporterService, HttpWaitService, INCUDE_LOCALIZATION_RESOURCES_TOKEN, INJECTOR_PIPE_DATA_TOKEN, IS_EXTERNAL_REQUEST, InitDirective, InputEventDebounceDirective, InsertIntoContainerStrategy, InternalStore, InternetConnectionService, LIST_QUERY_DEBOUNCE_TIME, LOADER_DELAY, LOADING_STRATEGY, LOCALIZATIONS, LazyLoadService, LazyModuleFactory, LimitedResultRequestDto, ListResultDto, ListService, LoadingStrategy, LocalStorageListenerService, LocalizationModule, LocalizationPipe, LocalizationService, LooseContentSecurityStrategy, MultiTenancyService, NAVIGATE_TO_MANAGE_PROFILE, NavigationEvent, NoContentSecurityStrategy, NoContextStrategy, NoCrossOriginStrategy, OTHERS_GROUP, index as ObjectExtending, PIPE_TO_LOGIN_FN_KEY, PROJECTION_STRATEGY, PagedAndSortedResultRequestDto, PagedResultDto, PagedResultRequestDto, PermissionDirective, PermissionGuard, PermissionService, ProjectionStrategy, QUEUE_MANAGER, ReplaceableComponentsService, ReplaceableRouteContainerComponent, ReplaceableTemplateDirective, ResourceWaitService, RestService, RootComponentProjectionStrategy, RootCoreModule, RouterEvents, RouterOutletComponent, RouterWaitService, RoutesService, SET_TOKEN_RESPONSE_TO_STORAGE_FN_KEY, SORT_COMPARE_FUNC, SafeHtmlPipe, ScriptContentStrategy, ScriptLoadingStrategy, SessionStateService, ShortDatePipe, ShortDateTimePipe, ShortTimePipe, ShowPasswordDirective, SortPipe, StopPropagationDirective, StyleContentStrategy, StyleLoadingStrategy, SubscriptionService, TENANT_KEY, TENANT_NOT_FOUND_BY_NAME, TemplateContextStrategy, TemplateProjectionStrategy, ToInjectorPipe, TrackByService, TrackCapsLockDirective, WebHttpUrlEncodingCodec, authGuard, checkHasProp, compareFuncFactory, coreOptionsFactory, createGroupMap, createLocalizationPipeKeyGenerator, createLocalizer, createLocalizerWithFallback, createMapFromList, createTokenParser, createTreeFromList, createTreeNodeFilterCreator, deepMerge, differentLocales, downloadBlob, escapeHtmlChars, exists, featuresFactory, findRoute, fromLazyLoad, generateHash, generatePassword, getInitialData, getLocaleDirection, getPathName, getRemoteEnv, getRoutePath, getShortDateFormat, getShortDateShortTimeFormat, getShortTimeFormat, interpolate, isArray, isNode, isNullOrEmpty, isNullOrUndefined, isNumber, isObject, isObjectAndNotArray, isObjectAndNotArrayNotNode, isUndefinedOrEmptyString, localeInitializer, localizationContributor, localizations$, mapEnumToOptions, noop, parseTenantFromUrl, permissionGuard, pushValueTo, reloadRoute, trackBy, trackByDeep, uuid, validateCreditCard, validateMinAge, validateRange, validateRequired, validateStringLength, validateUniqueCharacter, validateUrl };
4934
+ export { APP_INIT_ERROR_HANDLERS, AbpApiDefinitionService, AbpApplicationConfigurationService, AbpApplicationLocalizationService, AbpLocalStorageService, AbpTenantService, AbpTitleStrategy, AbpValidators, AbpWindowService, AbstractAuthErrorFilter, AbstractNavTreeService, AbstractNgModelComponent, AbstractTreeService, ApiInterceptor, AuditedEntityDto, AuditedEntityWithUserDto, AuthErrorEvent, AuthErrorFilterService, AuthEvent, AuthGuard, AuthInfoEvent, AuthService, AuthSuccessEvent, AutofocusDirective, BaseCoreModule, BaseTreeNode, CHECK_AUTHENTICATION_STATE_FN_KEY, CONTAINER_STRATEGY, CONTENT_SECURITY_STRATEGY, CONTENT_STRATEGY, CONTEXT_STRATEGY, COOKIE_LANGUAGE_KEY, CORE_OPTIONS, CROSS_ORIGIN_STRATEGY, ClearContainerStrategy, ComponentContextStrategy, ComponentProjectionStrategy, ConfigStateService, ContainerStrategy, ContentProjectionService, ContentSecurityStrategy, ContentStrategy, ContextStrategy, CookieLanguageProvider, CoreFeatureKind, CoreModule, CreationAuditedEntityDto, CreationAuditedEntityWithUserDto, CrossOriginStrategy, DEFAULT_DYNAMIC_LAYOUTS, DISABLE_PROJECT_NAME, DOM_STRATEGY, DYNAMIC_LAYOUTS_TOKEN, DefaultQueueManager, DomInsertionService, DomStrategy, DynamicLayoutComponent, EntityDto, EnvironmentService, ExtensibleAuditedEntityDto, ExtensibleAuditedEntityWithUserDto, ExtensibleCreationAuditedEntityDto, ExtensibleCreationAuditedEntityWithUserDto, ExtensibleEntityDto, ExtensibleFullAuditedEntityDto, ExtensibleFullAuditedEntityWithUserDto, ExtensibleLimitedResultRequestDto, ExtensibleObject, ExtensiblePagedAndSortedResultRequestDto, ExtensiblePagedResultRequestDto, ExternalHttpClient, ForDirective, FormSubmitDirective, FullAuditedEntityDto, FullAuditedEntityWithUserDto, HttpErrorReporterService, HttpWaitService, INCUDE_LOCALIZATION_RESOURCES_TOKEN, INJECTOR_PIPE_DATA_TOKEN, IS_EXTERNAL_REQUEST, IncludeLocalizationResourcesProvider, InitDirective, InputEventDebounceDirective, InsertIntoContainerStrategy, InternalStore, InternetConnectionService, LIST_QUERY_DEBOUNCE_TIME, LOADER_DELAY, LOADING_STRATEGY, LOCALIZATIONS, LazyLoadService, LazyModuleFactory, LimitedResultRequestDto, ListResultDto, ListService, LoadingStrategy, LocalStorageListenerService, LocaleId, LocaleProvider, LocalizationModule, LocalizationPipe, LocalizationService, LooseContentSecurityStrategy, MultiTenancyService, NAVIGATE_TO_MANAGE_PROFILE, NavigationEvent, NoContentSecurityStrategy, NoContextStrategy, NoCrossOriginStrategy, OTHERS_GROUP, index as ObjectExtending, PIPE_TO_LOGIN_FN_KEY, PROJECTION_STRATEGY, PagedAndSortedResultRequestDto, PagedResultDto, PagedResultRequestDto, PermissionDirective, PermissionGuard, PermissionService, ProjectionStrategy, QUEUE_MANAGER, ReplaceableComponentsService, ReplaceableRouteContainerComponent, ReplaceableTemplateDirective, ResourceWaitService, RestService, RootComponentProjectionStrategy, RootCoreModule, RouterEvents, RouterOutletComponent, RouterWaitService, RoutesService, SET_TOKEN_RESPONSE_TO_STORAGE_FN_KEY, SORT_COMPARE_FUNC, SafeHtmlPipe, ScriptContentStrategy, ScriptLoadingStrategy, SessionStateService, ShortDatePipe, ShortDateTimePipe, ShortTimePipe, ShowPasswordDirective, SortPipe, StopPropagationDirective, StyleContentStrategy, StyleLoadingStrategy, SubscriptionService, TENANT_KEY, TENANT_NOT_FOUND_BY_NAME, TemplateContextStrategy, TemplateProjectionStrategy, ToInjectorPipe, TrackByService, TrackCapsLockDirective, WebHttpUrlEncodingCodec, authGuard, checkHasProp, compareFuncFactory, coreOptionsFactory, createGroupMap, createLocalizationPipeKeyGenerator, createLocalizer, createLocalizerWithFallback, createMapFromList, createTokenParser, createTreeFromList, createTreeNodeFilterCreator, deepMerge, differentLocales, downloadBlob, escapeHtmlChars, exists, featuresFactory, findRoute, fromLazyLoad, generateHash, generatePassword, getInitialData, getLocaleDirection, getPathName, getRemoteEnv, getRoutePath, getShortDateFormat, getShortDateShortTimeFormat, getShortTimeFormat, interpolate, isArray, isNode, isNullOrEmpty, isNullOrUndefined, isNumber, isObject, isObjectAndNotArray, isObjectAndNotArrayNotNode, isUndefinedOrEmptyString, localeInitializer, localizationContributor, localizations$, mapEnumToOptions, noop, parseTenantFromUrl, permissionGuard, provideAbpCore, provideAbpCoreChild, pushValueTo, reloadRoute, setLanguageToCookie, trackBy, trackByDeep, uuid, validateCreditCard, validateMinAge, validateRange, validateRequired, validateStringLength, validateUniqueCharacter, validateUrl, withCompareFuncFactory, withOptions, withTitleStrategy };
4881
4935
  //# sourceMappingURL=abp-ng.core.mjs.map