@osovitny/anatoly 3.21.41 → 3.21.43
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.
|
@@ -109,8 +109,12 @@ function getAppSettings() {
|
|
|
109
109
|
const json = sessionStorage.getItem(SessionStorageKeys.appSettings);
|
|
110
110
|
return json ? JSON.parse(json) : null;
|
|
111
111
|
}
|
|
112
|
+
function getAppCoreSettings() {
|
|
113
|
+
return getAppSettings();
|
|
114
|
+
}
|
|
112
115
|
function resetAppSettings() {
|
|
113
116
|
AppSettings = getAppSettings();
|
|
117
|
+
AppCoreSettings = AppSettings;
|
|
114
118
|
let isDevMode = `${AppSettings?.isDevMode}`;
|
|
115
119
|
AppVersion = `${AppSettings?.version}`;
|
|
116
120
|
IsDevMode = (isDevMode && (isDevMode == 'True' || isDevMode == 'true'));
|
|
@@ -155,6 +159,7 @@ function getCurrentApp() {
|
|
|
155
159
|
};
|
|
156
160
|
}
|
|
157
161
|
let AppSettings;
|
|
162
|
+
let AppCoreSettings;
|
|
158
163
|
let AppVersion;
|
|
159
164
|
let IsDevMode = true;
|
|
160
165
|
let IsProdMode = !IsDevMode;
|
|
@@ -375,7 +380,7 @@ class LoggingService {
|
|
|
375
380
|
if (info.indexOf(LoggingService.packagePrefix) === 0) {
|
|
376
381
|
return info;
|
|
377
382
|
}
|
|
378
|
-
return `${LoggingService.packagePrefix}
|
|
383
|
+
return `${LoggingService.packagePrefix}. ${info}`;
|
|
379
384
|
}
|
|
380
385
|
static getOptionalParams(info, optionalParams) {
|
|
381
386
|
if (typeof info === 'string') {
|
|
@@ -678,7 +683,7 @@ class AppContextService extends ApiServiceBase {
|
|
|
678
683
|
return;
|
|
679
684
|
}
|
|
680
685
|
//Logging
|
|
681
|
-
let stopwatch = new Stopwatch("
|
|
686
|
+
let stopwatch = new Stopwatch("AppContextService. Requesting a new AppContext");
|
|
682
687
|
stopwatch.start();
|
|
683
688
|
this.subscription = this.get('getCurrentContext', null).subscribe({
|
|
684
689
|
next: (data) => {
|
|
@@ -748,7 +753,7 @@ class AppContextService extends ApiServiceBase {
|
|
|
748
753
|
}));
|
|
749
754
|
let tasks$ = forkJoin([countries$, languages$, timezones$, usStates$]);
|
|
750
755
|
//Logging
|
|
751
|
-
let stopwatch = new Stopwatch("
|
|
756
|
+
let stopwatch = new Stopwatch("AppContextService. loading standard json files");
|
|
752
757
|
stopwatch.start();
|
|
753
758
|
return tasks$.pipe(tap(() => {
|
|
754
759
|
this.fireStandardJsonFilesLoaded();
|
|
@@ -1702,7 +1707,6 @@ class Guid {
|
|
|
1702
1707
|
|
|
1703
1708
|
Authors:
|
|
1704
1709
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
1705
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
1706
1710
|
|
|
1707
1711
|
Created:
|
|
1708
1712
|
20 Sep 2023
|
|
@@ -1733,11 +1737,11 @@ class MSALStorage {
|
|
|
1733
1737
|
return;
|
|
1734
1738
|
}
|
|
1735
1739
|
localStorage.setItem(MSALStorageKeys.redirectTo, redirectTo);
|
|
1736
|
-
LoggingService.info(`
|
|
1740
|
+
LoggingService.info(`MSAL. redirect state saved: ${redirectTo}. Called by: ${calledBy}`);
|
|
1737
1741
|
}
|
|
1738
1742
|
static getRedirectState(calledBy) {
|
|
1739
1743
|
let redirectTo = localStorage.getItem(MSALStorageKeys.redirectTo);
|
|
1740
|
-
LoggingService.info(`
|
|
1744
|
+
LoggingService.info(`MSAL. redirect state requested: ${redirectTo}. Called by: ${calledBy}`);
|
|
1741
1745
|
if (!MSALStorage.hasRedirectValue(redirectTo)) {
|
|
1742
1746
|
MSALStorage.clearRedirectState(calledBy);
|
|
1743
1747
|
return null;
|
|
@@ -1746,7 +1750,7 @@ class MSALStorage {
|
|
|
1746
1750
|
}
|
|
1747
1751
|
static clearRedirectState(calledBy) {
|
|
1748
1752
|
localStorage.removeItem(MSALStorageKeys.redirectTo);
|
|
1749
|
-
LoggingService.info(`
|
|
1753
|
+
LoggingService.info(`MSAL. redirect state cleared. Called by: ${calledBy}`);
|
|
1750
1754
|
}
|
|
1751
1755
|
}
|
|
1752
1756
|
|
|
@@ -1757,7 +1761,6 @@ class MSALStorage {
|
|
|
1757
1761
|
|
|
1758
1762
|
Authors:
|
|
1759
1763
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
1760
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
1761
1764
|
|
|
1762
1765
|
Created:
|
|
1763
1766
|
20 Sep 2023
|
|
@@ -1818,7 +1821,6 @@ let MSALB2CConfig;
|
|
|
1818
1821
|
|
|
1819
1822
|
Authors:
|
|
1820
1823
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
1821
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
1822
1824
|
|
|
1823
1825
|
Created:
|
|
1824
1826
|
27 Nov 2023
|
|
@@ -1860,7 +1862,6 @@ class MSALUtils {
|
|
|
1860
1862
|
|
|
1861
1863
|
Authors:
|
|
1862
1864
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
1863
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
1864
1865
|
|
|
1865
1866
|
Created:
|
|
1866
1867
|
20 Sep 2023
|
|
@@ -1899,7 +1900,6 @@ class MSALB2C {
|
|
|
1899
1900
|
|
|
1900
1901
|
Authors:
|
|
1901
1902
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
1902
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
1903
1903
|
|
|
1904
1904
|
Created:
|
|
1905
1905
|
20 Sep 2023
|
|
@@ -1924,7 +1924,6 @@ const PolicyType = {
|
|
|
1924
1924
|
|
|
1925
1925
|
Authors:
|
|
1926
1926
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
1927
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
1928
1927
|
|
|
1929
1928
|
Created:
|
|
1930
1929
|
20 Sep 2023
|
|
@@ -1975,7 +1974,7 @@ class AuthService extends ApiServiceBase {
|
|
|
1975
1974
|
this.resetPasswordPolicy = MSALB2C.getPolicyByType(PolicyType.resetPassword);
|
|
1976
1975
|
this.msalService.handleRedirectObservable().subscribe({
|
|
1977
1976
|
next: (result) => {
|
|
1978
|
-
this.logger.info(`
|
|
1977
|
+
this.logger.info(`MSAL. handleRedirectObservable`);
|
|
1979
1978
|
},
|
|
1980
1979
|
error: (error) => {
|
|
1981
1980
|
this.logger.error(error);
|
|
@@ -1998,7 +1997,7 @@ class AuthService extends ApiServiceBase {
|
|
|
1998
1997
|
.subscribe((msg) => {
|
|
1999
1998
|
switch (msg.eventType) {
|
|
2000
1999
|
case EventType.INITIALIZE_END:
|
|
2001
|
-
this.logger.info(`
|
|
2000
|
+
this.logger.info(`MSAL. INITIALIZE_END fired`);
|
|
2002
2001
|
break;
|
|
2003
2002
|
case EventType.ACCOUNT_ADDED:
|
|
2004
2003
|
case EventType.ACCOUNT_REMOVED:
|
|
@@ -2093,13 +2092,13 @@ class AuthService extends ApiServiceBase {
|
|
|
2093
2092
|
* Initial status before interaction occurs
|
|
2094
2093
|
*/
|
|
2095
2094
|
case InteractionStatus.Startup:
|
|
2096
|
-
this.logger.info(`
|
|
2095
|
+
this.logger.info(`MSAL. InteractionStatus.Startup`);
|
|
2097
2096
|
break;
|
|
2098
2097
|
/**
|
|
2099
2098
|
* Status set when interaction is complete
|
|
2100
2099
|
*/
|
|
2101
2100
|
case InteractionStatus.None:
|
|
2102
|
-
this.logger.info(`
|
|
2101
|
+
this.logger.info(`MSAL. InteractionStatus.None`);
|
|
2103
2102
|
MSALRedirect.handle(this.router, 'msalBroadcastService.inProgress$ InteractionStatus.None');
|
|
2104
2103
|
this.checkAndSetActiveAccount();
|
|
2105
2104
|
setTimeout(() => {
|
|
@@ -2445,7 +2444,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
2445
2444
|
|
|
2446
2445
|
Authors:
|
|
2447
2446
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
2448
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
2449
2447
|
|
|
2450
2448
|
Created:
|
|
2451
2449
|
6 Dec 2018
|
|
@@ -2528,7 +2526,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
2528
2526
|
|
|
2529
2527
|
Authors:
|
|
2530
2528
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
2531
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
2532
2529
|
|
|
2533
2530
|
Created:
|
|
2534
2531
|
27 Nov 2023
|
|
@@ -2796,12 +2793,12 @@ class StarterService extends ApiServiceBase {
|
|
|
2796
2793
|
let context = this.appContext.current;
|
|
2797
2794
|
if (!is.objectNullOrEmpty(context)) {
|
|
2798
2795
|
//Logging
|
|
2799
|
-
this.logger.info('
|
|
2796
|
+
this.logger.info('StarterService. getting AppContext from Session Storage');
|
|
2800
2797
|
this.appContext.init(context);
|
|
2801
2798
|
return of(context);
|
|
2802
2799
|
}
|
|
2803
2800
|
//Logging
|
|
2804
|
-
let stopwatch = new Stopwatch("
|
|
2801
|
+
let stopwatch = new Stopwatch("StarterService. getting AppContext from API");
|
|
2805
2802
|
stopwatch.start();
|
|
2806
2803
|
this.baseUrl = `${ApiUrl}/app`;
|
|
2807
2804
|
return this.get('appStarting').pipe(map(data => {
|
|
@@ -2844,7 +2841,7 @@ class StarterService extends ApiServiceBase {
|
|
|
2844
2841
|
tasks$ = applicationStarting$;
|
|
2845
2842
|
}
|
|
2846
2843
|
//Logging
|
|
2847
|
-
let stopwatch = new Stopwatch("
|
|
2844
|
+
let stopwatch = new Stopwatch("StarterService. ensureApplicationStarted");
|
|
2848
2845
|
stopwatch.start();
|
|
2849
2846
|
return tasks$.pipe(map(() => {
|
|
2850
2847
|
//Logging
|
|
@@ -9350,7 +9347,6 @@ function loggerCallback(logLevel, message, containsPii) {
|
|
|
9350
9347
|
|
|
9351
9348
|
Authors:
|
|
9352
9349
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
9353
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
9354
9350
|
|
|
9355
9351
|
Created:
|
|
9356
9352
|
6 Dec 2018
|
|
@@ -9413,7 +9409,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
9413
9409
|
|
|
9414
9410
|
Authors:
|
|
9415
9411
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
9416
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
9417
9412
|
|
|
9418
9413
|
Created:
|
|
9419
9414
|
20 Sep 2023
|
|
@@ -9448,7 +9443,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
9448
9443
|
|
|
9449
9444
|
Authors:
|
|
9450
9445
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
9451
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
9452
9446
|
|
|
9453
9447
|
Created:
|
|
9454
9448
|
20 Sep 2023
|
|
@@ -9483,7 +9477,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
9483
9477
|
|
|
9484
9478
|
Authors:
|
|
9485
9479
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
9486
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
9487
9480
|
|
|
9488
9481
|
Created:
|
|
9489
9482
|
20 Sep 2023
|
|
@@ -9518,7 +9511,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
9518
9511
|
|
|
9519
9512
|
Authors:
|
|
9520
9513
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
9521
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
9522
9514
|
|
|
9523
9515
|
Created:
|
|
9524
9516
|
2 May 2023
|
|
@@ -9558,7 +9550,6 @@ const PAGES = [
|
|
|
9558
9550
|
|
|
9559
9551
|
Authors:
|
|
9560
9552
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
9561
|
-
Anatoly Osovitny anatoly.osovitny@osovitny.com
|
|
9562
9553
|
|
|
9563
9554
|
Created:
|
|
9564
9555
|
6 Dec 2018
|
|
@@ -10099,7 +10090,7 @@ class AppService extends ApiServiceBase {
|
|
|
10099
10090
|
}
|
|
10100
10091
|
loadAppInitializerSettings() {
|
|
10101
10092
|
//Logging
|
|
10102
|
-
let stopwatch = new Stopwatch("
|
|
10093
|
+
let stopwatch = new Stopwatch("AppService. loadAppInitializerSettings");
|
|
10103
10094
|
stopwatch.start();
|
|
10104
10095
|
return this.get('loadAppInitializerSettings').pipe(map$1(data => {
|
|
10105
10096
|
//Logging
|
|
@@ -10247,5 +10238,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.15", ngImpo
|
|
|
10247
10238
|
* Generated bundle index. Do not edit.
|
|
10248
10239
|
*/
|
|
10249
10240
|
|
|
10250
|
-
export { AReplacerDirective, AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyLogLevel, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppName, AppSettings, AppVersion, AppsGoServiceBase, AssetGroupType, 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$1 as InjectorInstance, IsDevMode, IsProdMode, ItemValidationSummaryComponent, L10nUtils, LanguageDropdownlist, LibName, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationModule, LocalizationService, LocalizePipe, LoggingService, MSALUtils, Message2User, Message2UserComponent, Message2UserService, 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, ServiceBase, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterGuard, StarterService, Stopwatch, StripeDialog, Subs, SubscribePlanButtonComponent, SubscriptionProvider, SubscriptionsApiService, TimezoneDropdownlist, TransactionsApiService, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, YouAgreeToOurTermsComponent, dateFormats, dateTimeFormats, formatAssetsUrl, formatUrl, getAppSettings, getAppSettingsById, getAppSettingsByName, getCurrentApp, getLocalizationInjector, is, resetAppSettings, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
|
|
10241
|
+
export { AReplacerDirective, AddressComponent, AdminGuard, Alerts, AnatolyBillingModule, AnatolyCoreModule, AnatolyDataModule, AnatolyHttpInterceptor, AnatolyIAMModule, AnatolyIAMPagesModule, AnatolyLogLevel, AnatolyModule, AnatolyUIModule, ApiServiceBase, ApiUrl, AppContextService, AppCoreSettings, AppName, AppSettings, AppVersion, AppsGoServiceBase, AssetGroupType, 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$1 as InjectorInstance, IsDevMode, IsProdMode, ItemValidationSummaryComponent, L10nUtils, LanguageDropdownlist, LibName, ListBase, LoadingComponent, LoadingService, LocalStorageService, LocalizationModule, LocalizationService, LocalizePipe, LoggingService, MSALUtils, Message2User, Message2UserComponent, Message2UserService, 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, ServiceBase, SessionStorageService, SignInButtonComponent, SignOutButtonComponent, SignUpButtonComponent, StarterGuard, StarterService, Stopwatch, StripeDialog, Subs, SubscribePlanButtonComponent, SubscriptionProvider, SubscriptionsApiService, TimezoneDropdownlist, TransactionsApiService, UrlSlugComponent, Utils, ValidationSummaryComponent, XmlFormatter, YouAgreeToOurTermsComponent, dateFormats, dateTimeFormats, formatAssetsUrl, formatUrl, getAppCoreSettings, getAppSettings, getAppSettingsById, getAppSettingsByName, getCurrentApp, getLocalizationInjector, is, resetAppSettings, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
|
|
10251
10242
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|