@osovitny/anatoly 3.20.12 → 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.
- package/fesm2022/osovitny-anatoly.mjs +18 -13
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/index.d.ts +3 -1
- package/package.json +1 -1
|
@@ -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
|
|
3128
|
-
let
|
|
3129
|
-
let
|
|
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=${
|
|
3138
|
+
return new TranslateHttpLoader(httpClient, `${url}/`, `.json?v=${version}`);
|
|
3134
3139
|
}
|
|
3135
3140
|
let _localizationInjectorInstance;
|
|
3136
3141
|
function getLocalizationInjector() {
|
|
@@ -10236,8 +10241,8 @@ class AppService extends ApiServiceBase {
|
|
|
10236
10241
|
stopwatch.stop();
|
|
10237
10242
|
stopwatch.printElapsedAsMilliseconds();
|
|
10238
10243
|
if (data) {
|
|
10239
|
-
sessionStorage.setItem(SessionStorageKeys.appCoreSettings, data.core);
|
|
10240
|
-
sessionStorage.setItem(SessionStorageKeys.appMSALSettings, data.msal);
|
|
10244
|
+
sessionStorage.setItem(SessionStorageKeys.appCoreSettings, JSON.stringify(data.core));
|
|
10245
|
+
sessionStorage.setItem(SessionStorageKeys.appMSALSettings, JSON.stringify(data.msal));
|
|
10241
10246
|
}
|
|
10242
10247
|
}));
|
|
10243
10248
|
}
|
|
@@ -10281,10 +10286,10 @@ class AnatolyCoreModule {
|
|
|
10281
10286
|
const appService = inject(AppService);
|
|
10282
10287
|
return lastValueFrom(appService.loadAppInitializerSettings().pipe(map$1(() => {
|
|
10283
10288
|
//Localization
|
|
10284
|
-
const translate =
|
|
10285
|
-
const localizationService =
|
|
10289
|
+
const translate = InjectorInstance.get(TranslateService);
|
|
10290
|
+
const localizationService = InjectorInstance.get(LocalizationService);
|
|
10286
10291
|
const lang = localizationService.configureSettings(translate);
|
|
10287
|
-
|
|
10292
|
+
translate.use(lang);
|
|
10288
10293
|
})));
|
|
10289
10294
|
}),
|
|
10290
10295
|
//Guards
|
|
@@ -10328,10 +10333,10 @@ class AnatolyCoreModule {
|
|
|
10328
10333
|
const appService = inject(AppService);
|
|
10329
10334
|
return lastValueFrom(appService.loadAppInitializerSettings().pipe(map$1(() => {
|
|
10330
10335
|
//Localization
|
|
10331
|
-
const translate =
|
|
10332
|
-
const localizationService =
|
|
10336
|
+
const translate = InjectorInstance.get(TranslateService);
|
|
10337
|
+
const localizationService = InjectorInstance.get(LocalizationService);
|
|
10333
10338
|
const lang = localizationService.configureSettings(translate);
|
|
10334
|
-
|
|
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
|