@osovitny/anatoly 3.20.13 → 3.20.14

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.
@@ -115,6 +115,9 @@ function getAppCoreSettings() {
115
115
  const json = sessionStorage.getItem(SessionStorageKeys.appCoreSettings);
116
116
  return json ? JSON.parse(json) : null;
117
117
  }
118
+ function resetAppCoreSettings() {
119
+ AppCoreSettings = getAppCoreSettings();
120
+ }
118
121
  function formatUrl(url) {
119
122
  let newUrl = url;
120
123
  if (url) {
@@ -3124,13 +3127,15 @@ class LocalizePipe {
3124
3127
  */
3125
3128
  //Node
3126
3129
  function translateLoaderFactory(httpClient) {
3127
- let url = AppCoreSettings.assetsL10NUrl;
3128
- let isCDNEnabled = AppCoreSettings.cdn.enabled;
3129
- let cdnUrl = AppCoreSettings.cdn.url;
3130
+ let appCoreSettings = getAppCoreSettings();
3131
+ let url = appCoreSettings.assetsL10NUrl;
3132
+ let isCDNEnabled = appCoreSettings.cdn.enabled;
3133
+ let cdnUrl = appCoreSettings.cdn.url;
3134
+ let version = AppVersion ?? '1.0.0';
3130
3135
  if (isCDNEnabled) {
3131
3136
  url = (url[0] == '/') ? cdnUrl + url : cdnUrl + '/' + url;
3132
3137
  }
3133
- return new TranslateHttpLoader(httpClient, `${url}/`, `.json?v=${AppVersion}`);
3138
+ return new TranslateHttpLoader(httpClient, `${url}/`, `.json?v=${version}`);
3134
3139
  }
3135
3140
  let _localizationInjectorInstance;
3136
3141
  function getLocalizationInjector() {
@@ -10284,7 +10289,7 @@ class AnatolyCoreModule {
10284
10289
  const translate = InjectorInstance.get(TranslateService);
10285
10290
  const localizationService = InjectorInstance.get(LocalizationService);
10286
10291
  const lang = localizationService.configureSettings(translate);
10287
- return translate.use(lang);
10292
+ translate.use(lang);
10288
10293
  })));
10289
10294
  }),
10290
10295
  //Guards
@@ -10331,7 +10336,7 @@ class AnatolyCoreModule {
10331
10336
  const translate = InjectorInstance.get(TranslateService);
10332
10337
  const localizationService = InjectorInstance.get(LocalizationService);
10333
10338
  const lang = localizationService.configureSettings(translate);
10334
- return translate.use(lang);
10339
+ translate.use(lang);
10335
10340
  })));
10336
10341
  }),
10337
10342
  //Guards
@@ -11337,5 +11342,5 @@ class AnatolyModule {
11337
11342
  * Generated bundle index. Do not edit.
11338
11343
  */
11339
11344
 
11340
- 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 };
11345
+ 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, getAppCoreSettings, getAppSettingsById, getAppSettingsByName, getCurrentApp, getLocalizationInjector, initializeMsalFactory, is, resetAppCoreSettings, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
11341
11346
  //# sourceMappingURL=osovitny-anatoly.mjs.map