@osovitny/anatoly 3.20.13 → 3.20.15
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
|
|
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,11 @@ class AppService extends ApiServiceBase {
|
|
|
10236
10241
|
stopwatch.stop();
|
|
10237
10242
|
stopwatch.printElapsedAsMilliseconds();
|
|
10238
10243
|
if (data) {
|
|
10239
|
-
|
|
10240
|
-
|
|
10244
|
+
let appCoreSettings = JSON.stringify(data.core);
|
|
10245
|
+
let appMSALSettings = JSON.stringify(data.msal);
|
|
10246
|
+
appCoreSettings = appCoreSettings.replace(/--APPNAME--/g, g_AppName);
|
|
10247
|
+
sessionStorage.setItem(SessionStorageKeys.appCoreSettings, appCoreSettings);
|
|
10248
|
+
sessionStorage.setItem(SessionStorageKeys.appMSALSettings, appMSALSettings);
|
|
10241
10249
|
}
|
|
10242
10250
|
}));
|
|
10243
10251
|
}
|
|
@@ -10284,7 +10292,7 @@ class AnatolyCoreModule {
|
|
|
10284
10292
|
const translate = InjectorInstance.get(TranslateService);
|
|
10285
10293
|
const localizationService = InjectorInstance.get(LocalizationService);
|
|
10286
10294
|
const lang = localizationService.configureSettings(translate);
|
|
10287
|
-
|
|
10295
|
+
translate.use(lang);
|
|
10288
10296
|
})));
|
|
10289
10297
|
}),
|
|
10290
10298
|
//Guards
|
|
@@ -10331,7 +10339,7 @@ class AnatolyCoreModule {
|
|
|
10331
10339
|
const translate = InjectorInstance.get(TranslateService);
|
|
10332
10340
|
const localizationService = InjectorInstance.get(LocalizationService);
|
|
10333
10341
|
const lang = localizationService.configureSettings(translate);
|
|
10334
|
-
|
|
10342
|
+
translate.use(lang);
|
|
10335
10343
|
})));
|
|
10336
10344
|
}),
|
|
10337
10345
|
//Guards
|
|
@@ -11337,5 +11345,5 @@ class AnatolyModule {
|
|
|
11337
11345
|
* Generated bundle index. Do not edit.
|
|
11338
11346
|
*/
|
|
11339
11347
|
|
|
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 };
|
|
11348
|
+
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
11349
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|