@osovitny/anatoly 3.20.8 → 3.20.9

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,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, EventEmitter, Component, Output, Input, Inject, Pipe, provideAppInitializer, inject, NgModule, Directive, ChangeDetectionStrategy, ViewChild, ViewEncapsulation, HostListener, HostBinding, APP_INITIALIZER } from '@angular/core';
2
+ import { Injectable, EventEmitter, Component, Output, Input, Inject, Pipe, NgModule, Directive, ChangeDetectionStrategy, ViewChild, ViewEncapsulation, HostListener, HostBinding, provideAppInitializer, inject, APP_INITIALIZER } from '@angular/core';
3
3
  import { BehaviorSubject, forkJoin, Subject, filter, takeUntil, map as map$1, catchError, of, merge, timer, fromEvent, firstValueFrom, lastValueFrom } from 'rxjs';
4
4
  import { map, tap, mergeMap } from 'rxjs/operators';
5
5
  import * as i1 from '@angular/common/http';
@@ -3112,7 +3112,7 @@ class LocalizePipe {
3112
3112
  Vadim Osovitny vadim.osovitny@osovitny.com
3113
3113
 
3114
3114
  Created:
3115
- 05 May 2020
3115
+ 12 May 2020
3116
3116
 
3117
3117
  Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
3118
3118
  </file>
@@ -3134,31 +3134,25 @@ function getLocalizationInjector() {
3134
3134
  }
3135
3135
  return _localizationInjectorInstance;
3136
3136
  }
3137
- class LocalizationSettingsModule {
3137
+ class LocalizationModule {
3138
3138
  constructor(injector) {
3139
3139
  this.injector = injector;
3140
3140
  _localizationInjectorInstance = this.injector;
3141
3141
  }
3142
- static { this.ɵfac = function LocalizationSettingsModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LocalizationSettingsModule)(i0.ɵɵinject(i0.Injector)); }; }
3143
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: LocalizationSettingsModule }); }
3142
+ static { this.ɵfac = function LocalizationModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LocalizationModule)(i0.ɵɵinject(i0.Injector)); }; }
3143
+ static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: LocalizationModule }); }
3144
3144
  static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
3145
3145
  TranslateService,
3146
- LocalizationService,
3147
- provideAppInitializer(() => {
3148
- const translate = inject(TranslateService);
3149
- const localizationService = inject(LocalizationService);
3150
- const lang = localizationService.configureSettings(translate);
3151
- return translate.use(lang);
3152
- })
3146
+ LocalizationService
3153
3147
  ], imports: [TranslateModule.forRoot({
3154
3148
  loader: {
3155
3149
  provide: TranslateLoader,
3156
3150
  useFactory: translateLoaderFactory,
3157
3151
  deps: [HttpClient]
3158
3152
  }
3159
- })] }); }
3153
+ }), TranslateModule] }); }
3160
3154
  }
3161
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LocalizationSettingsModule, [{
3155
+ (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LocalizationModule, [{
3162
3156
  type: NgModule,
3163
3157
  args: [{
3164
3158
  imports: [
@@ -3170,49 +3164,6 @@ class LocalizationSettingsModule {
3170
3164
  }
3171
3165
  })
3172
3166
  ],
3173
- providers: [
3174
- TranslateService,
3175
- LocalizationService,
3176
- provideAppInitializer(() => {
3177
- const translate = inject(TranslateService);
3178
- const localizationService = inject(LocalizationService);
3179
- const lang = localizationService.configureSettings(translate);
3180
- return translate.use(lang);
3181
- })
3182
- ],
3183
- exports: []
3184
- }]
3185
- }], () => [{ type: i0.Injector }], null); })();
3186
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(LocalizationSettingsModule, { imports: [i1$4.TranslateModule] }); })();
3187
-
3188
- /*
3189
- <file>
3190
- Project:
3191
- @osovitny/anatoly
3192
-
3193
- Authors:
3194
- Vadim Osovitny vadim.osovitny@osovitny.com
3195
-
3196
- Created:
3197
- 12 May 2020
3198
-
3199
- Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
3200
- </file>
3201
- */
3202
- //Node
3203
- class LocalizationModule {
3204
- static { this.ɵfac = function LocalizationModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LocalizationModule)(); }; }
3205
- static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: LocalizationModule }); }
3206
- static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
3207
- LocalizationService
3208
- ], imports: [TranslateModule, TranslateModule] }); }
3209
- }
3210
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LocalizationModule, [{
3211
- type: NgModule,
3212
- args: [{
3213
- imports: [
3214
- TranslateModule
3215
- ],
3216
3167
  exports: [
3217
3168
  TranslateModule,
3218
3169
  LocalizePipe
@@ -3221,11 +3172,12 @@ class LocalizationModule {
3221
3172
  LocalizePipe
3222
3173
  ],
3223
3174
  providers: [
3175
+ TranslateService,
3224
3176
  LocalizationService
3225
3177
  ]
3226
3178
  }]
3227
- }], null, null); })();
3228
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(LocalizationModule, { declarations: [LocalizePipe], imports: [TranslateModule], exports: [TranslateModule,
3179
+ }], () => [{ type: i0.Injector }], null); })();
3180
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(LocalizationModule, { declarations: [LocalizePipe], imports: [i1$4.TranslateModule], exports: [TranslateModule,
3229
3181
  LocalizePipe] }); })();
3230
3182
 
3231
3183
  /*
@@ -10322,7 +10274,13 @@ class AnatolyCoreModule {
10322
10274
  provideHttpClient(),
10323
10275
  provideAppInitializer(() => {
10324
10276
  const appService = inject(AppService);
10325
- return lastValueFrom(appService.loadAppInitializerSettings());
10277
+ return lastValueFrom(appService.loadAppInitializerSettings().pipe(map$1(() => {
10278
+ //Localization
10279
+ const translate = inject(TranslateService);
10280
+ const localizationService = inject(LocalizationService);
10281
+ const lang = localizationService.configureSettings(translate);
10282
+ return translate.use(lang);
10283
+ })));
10326
10284
  }),
10327
10285
  //Guards
10328
10286
  StarterGuard,
@@ -10343,9 +10301,7 @@ class AnatolyCoreModule {
10343
10301
  ], imports: [CommonModule,
10344
10302
  RouterModule,
10345
10303
  ToastrModule.forRoot(),
10346
- LocalizationSettingsModule,
10347
10304
  LocalizationModule, RouterModule,
10348
- LocalizationSettingsModule,
10349
10305
  LocalizationModule] }); }
10350
10306
  }
10351
10307
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnatolyCoreModule, [{
@@ -10355,19 +10311,23 @@ class AnatolyCoreModule {
10355
10311
  CommonModule,
10356
10312
  RouterModule,
10357
10313
  ToastrModule.forRoot(),
10358
- LocalizationSettingsModule,
10359
10314
  LocalizationModule
10360
10315
  ],
10361
10316
  exports: [
10362
10317
  RouterModule,
10363
- LocalizationSettingsModule,
10364
10318
  LocalizationModule
10365
10319
  ],
10366
10320
  providers: [
10367
10321
  provideHttpClient(),
10368
10322
  provideAppInitializer(() => {
10369
10323
  const appService = inject(AppService);
10370
- return lastValueFrom(appService.loadAppInitializerSettings());
10324
+ return lastValueFrom(appService.loadAppInitializerSettings().pipe(map$1(() => {
10325
+ //Localization
10326
+ const translate = inject(TranslateService);
10327
+ const localizationService = inject(LocalizationService);
10328
+ const lang = localizationService.configureSettings(translate);
10329
+ return translate.use(lang);
10330
+ })));
10371
10331
  }),
10372
10332
  //Guards
10373
10333
  StarterGuard,
@@ -10389,9 +10349,7 @@ class AnatolyCoreModule {
10389
10349
  }]
10390
10350
  }], () => [{ type: i0.Injector }], null); })();
10391
10351
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AnatolyCoreModule, { imports: [CommonModule,
10392
- RouterModule, i1$5.ToastrModule, LocalizationSettingsModule,
10393
- LocalizationModule], exports: [RouterModule,
10394
- LocalizationSettingsModule,
10352
+ RouterModule, i1$5.ToastrModule, LocalizationModule], exports: [RouterModule,
10395
10353
  LocalizationModule] }); })();
10396
10354
 
10397
10355
  /*
@@ -11374,5 +11332,5 @@ class AnatolyModule {
11374
11332
  * Generated bundle index. Do not edit.
11375
11333
  */
11376
11334
 
11377
- export { AReplacerDirective, AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName, AppSettings, AppVersion, AppsGoServiceBase, AuthService, AuthenticationGuard, BillingService, BillingUtils, BraintreeDialog, BrowserService, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, ClientApps, CompanyComponent, ComponentBase, ContactUsDialog, ContactUsForm, ControlPanelComponent, Convert, Copy2ClipboardComponent, CoreApiService, CountryDropdownlist, CurrenciesApiService, CurrenciesStorageService, DOM, DataPagerComponent, DataViewType, DateConvert, DefaultEditorOptions, DialogBase, DigitalMarketingService, DiscountCodeStatus, DiscountCodeType, EditComponentBase, EditPageBase, EmailsApiService, EnumEditComponentBase, FeatureWillBeReadyComponent, FileSizePipe, FormValidationSummaryComponent, GABillingEvents, GAEvents, GlobalErrorHandler, GoServiceBase, GoogleAnalyticsService, GridEditServiceBase, GridReadServiceBase, Guid, HoveringDirective, HtmlEditorComponent, HtmlEditorComponentBase, IdleService, ImageReplacerDirective, InjectorInstance, IsDevMode, IsProdMode, ItemValidationSummaryComponent, L10nUtils, LanguageDropdownlist, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationModule, LocalizationService, LocalizationSettingsModule, LocalizePipe, LoggingService, MSALUtils, Mode, ModerationStatus, ModerationStatusDropdownlist, NativeElementDirective, NoMobileSupportComponent, NodataComponent, NotificationService, OrderSummaryComponent, PageBase, PageSpinnerComponent, PagedPageBase, PayPalComponent, PayPalScriptService, PaymentMethod, PaymentMethodsComponent, PaymentOptionsComponent, PaymentStage, PaymentType, PaymentsApiService, PaymentsService, PaypalButtonComponent, PaypalSubscribeButtonComponent, PromoCodesApiService, PublishStatus, PublishStatusDropdownlist, QSUtils, ReplaceTextPipe, SafeHtmlPipe, ScriptService, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterGuard, StarterService, Stopwatch, StripeDialog, Subs, SubscribePlanButtonComponent, SubscriptionProvider, SubscriptionsApiService, TimezoneDropdownlist, TransactionsApiService, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, YouAgreeToOurTermsComponent, dateFormats, dateTimeFormats, formatUrl, getAppSettingsById, getAppSettingsByName, getCurrentApp, getLocalizationInjector, initializeMsalFactory, is, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
11335
+ export { AReplacerDirective, AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName, AppSettings, AppVersion, AppsGoServiceBase, AuthService, AuthenticationGuard, BillingService, BillingUtils, BraintreeDialog, BrowserService, BuyAccessButtonComponent, CardBodyComponent, CardComponent, CardFooterComponent, CardHeaderComponent, CheckIconComponent, ClientApps, CompanyComponent, ComponentBase, ContactUsDialog, ContactUsForm, ControlPanelComponent, Convert, Copy2ClipboardComponent, CoreApiService, CountryDropdownlist, CurrenciesApiService, CurrenciesStorageService, DOM, DataPagerComponent, DataViewType, DateConvert, DefaultEditorOptions, DialogBase, DigitalMarketingService, DiscountCodeStatus, DiscountCodeType, EditComponentBase, EditPageBase, EmailsApiService, EnumEditComponentBase, FeatureWillBeReadyComponent, FileSizePipe, FormValidationSummaryComponent, GABillingEvents, GAEvents, GlobalErrorHandler, GoServiceBase, GoogleAnalyticsService, GridEditServiceBase, GridReadServiceBase, Guid, HoveringDirective, HtmlEditorComponent, HtmlEditorComponentBase, IdleService, ImageReplacerDirective, InjectorInstance, IsDevMode, IsProdMode, ItemValidationSummaryComponent, L10nUtils, LanguageDropdownlist, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationModule, LocalizationService, LocalizePipe, LoggingService, MSALUtils, Mode, ModerationStatus, ModerationStatusDropdownlist, NativeElementDirective, NoMobileSupportComponent, NodataComponent, NotificationService, OrderSummaryComponent, PageBase, PageSpinnerComponent, PagedPageBase, PayPalComponent, PayPalScriptService, PaymentMethod, PaymentMethodsComponent, PaymentOptionsComponent, PaymentStage, PaymentType, PaymentsApiService, PaymentsService, PaypalButtonComponent, PaypalSubscribeButtonComponent, PromoCodesApiService, PublishStatus, PublishStatusDropdownlist, QSUtils, ReplaceTextPipe, SafeHtmlPipe, ScriptService, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterGuard, StarterService, Stopwatch, StripeDialog, Subs, SubscribePlanButtonComponent, SubscriptionProvider, SubscriptionsApiService, TimezoneDropdownlist, TransactionsApiService, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, YouAgreeToOurTermsComponent, dateFormats, dateTimeFormats, formatUrl, getAppSettingsById, getAppSettingsByName, getCurrentApp, getLocalizationInjector, initializeMsalFactory, is, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
11378
11336
  //# sourceMappingURL=osovitny-anatoly.mjs.map