@osovitny/anatoly 3.19.45 → 3.19.47
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 +15 -26
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/lib/billing/components/index.d.ts +1 -1
- package/lib/billing/services/billing.service.d.ts +0 -1
- package/lib/core/services/appcontext.service.d.ts +3 -3
- package/lib/iam/services/auth.service.d.ts +1 -1
- package/package.json +1 -1
|
@@ -356,9 +356,9 @@ class AppContextService extends ApiServiceBase {
|
|
|
356
356
|
//userUpdated
|
|
357
357
|
this._userUpdated = new BehaviorSubject(null);
|
|
358
358
|
this.userUpdated$ = this._userUpdated.asObservable();
|
|
359
|
-
//
|
|
360
|
-
this.
|
|
361
|
-
this.
|
|
359
|
+
//standardJsonFilesLoaded
|
|
360
|
+
this._standardJsonFilesLoaded = new BehaviorSubject(null);
|
|
361
|
+
this.standardJsonFilesLoaded$ = this._standardJsonFilesLoaded.asObservable();
|
|
362
362
|
this.baseUrl = `${ApiUrl}/appContext`;
|
|
363
363
|
}
|
|
364
364
|
//fires
|
|
@@ -371,8 +371,8 @@ class AppContextService extends ApiServiceBase {
|
|
|
371
371
|
fireUserUpdated() {
|
|
372
372
|
this._userUpdated.next(null);
|
|
373
373
|
}
|
|
374
|
-
|
|
375
|
-
this.
|
|
374
|
+
fireStandardJsonFilesLoaded() {
|
|
375
|
+
this._standardJsonFilesLoaded.next(null);
|
|
376
376
|
}
|
|
377
377
|
//API
|
|
378
378
|
getCountriesJsonFile() {
|
|
@@ -477,7 +477,7 @@ class AppContextService extends ApiServiceBase {
|
|
|
477
477
|
let stopwatch = new Stopwatch("@osovitny/anatoly. AppContextService: loading standard json files");
|
|
478
478
|
stopwatch.start();
|
|
479
479
|
return tasks$.pipe(tap(() => {
|
|
480
|
-
this.
|
|
480
|
+
this.fireStandardJsonFilesLoaded();
|
|
481
481
|
//Logging
|
|
482
482
|
stopwatch.stop();
|
|
483
483
|
stopwatch.printElapsedAsMilliseconds();
|
|
@@ -1838,7 +1838,6 @@ class AuthService extends ApiServiceBase {
|
|
|
1838
1838
|
this.msalService = msalService;
|
|
1839
1839
|
this.msalBroadcastService = msalBroadcastService;
|
|
1840
1840
|
this.msalDestroying$ = new Subject();
|
|
1841
|
-
this.init();
|
|
1842
1841
|
}
|
|
1843
1842
|
ngOnDestroy() {
|
|
1844
1843
|
this.msalDestroying$.next(undefined);
|
|
@@ -1846,10 +1845,6 @@ class AuthService extends ApiServiceBase {
|
|
|
1846
1845
|
}
|
|
1847
1846
|
setDefaults() {
|
|
1848
1847
|
}
|
|
1849
|
-
init() {
|
|
1850
|
-
this.setDefaults();
|
|
1851
|
-
this.initMSAL();
|
|
1852
|
-
}
|
|
1853
1848
|
/*
|
|
1854
1849
|
https://github.com/AzureAD/microsoft-authentication-library-for-js/blob/dev/samples/msal-angular-v3-samples/angular-b2c-sample-app/src/app/app.component.ts
|
|
1855
1850
|
|
|
@@ -2031,7 +2026,11 @@ class AuthService extends ApiServiceBase {
|
|
|
2031
2026
|
}));
|
|
2032
2027
|
}
|
|
2033
2028
|
}
|
|
2034
|
-
//
|
|
2029
|
+
//Public funcs
|
|
2030
|
+
init() {
|
|
2031
|
+
this.setDefaults();
|
|
2032
|
+
this.initMSAL();
|
|
2033
|
+
}
|
|
2035
2034
|
getActiveAccount() {
|
|
2036
2035
|
this.checkAndSetActiveAccount();
|
|
2037
2036
|
return this.msalService.instance.getActiveAccount();
|
|
@@ -5278,16 +5277,6 @@ class BillingService {
|
|
|
5278
5277
|
});
|
|
5279
5278
|
});
|
|
5280
5279
|
}
|
|
5281
|
-
addFreeSubscription(planId, addons, subtotal, promoCode, total, currency) {
|
|
5282
|
-
this.zone.run(() => {
|
|
5283
|
-
this.apiSubscriptions.addFreeSubscription(planId, addons, subtotal, promoCode, total, currency, () => {
|
|
5284
|
-
this.fireSubscriptionAdded(false, false);
|
|
5285
|
-
this.appContext.updateCurrent();
|
|
5286
|
-
}, () => {
|
|
5287
|
-
this.fireSubscriptionAdded(false, true);
|
|
5288
|
-
});
|
|
5289
|
-
});
|
|
5290
|
-
}
|
|
5291
5280
|
static { this.ɵfac = function BillingService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || BillingService)(i0.ɵɵinject(i0.NgZone), i0.ɵɵinject(AppContextService), i0.ɵɵinject(PaymentsApiService), i0.ɵɵinject(SubscriptionsApiService), i0.ɵɵinject(NotificationService)); }; }
|
|
5292
5281
|
static { this.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: BillingService, factory: BillingService.ɵfac }); }
|
|
5293
5282
|
}
|
|
@@ -7221,7 +7210,7 @@ class CountryDropdownlist extends EditComponentBase {
|
|
|
7221
7210
|
this.setValues();
|
|
7222
7211
|
}
|
|
7223
7212
|
setValues() {
|
|
7224
|
-
this.appContext.
|
|
7213
|
+
this.appContext.standardJsonFilesLoaded$.subscribe({
|
|
7225
7214
|
next: () => {
|
|
7226
7215
|
this.items = Utils.sortArray(this.appContext.countries);
|
|
7227
7216
|
}
|
|
@@ -7290,7 +7279,7 @@ class LanguageDropdownlist extends EditComponentBase {
|
|
|
7290
7279
|
this.appContext = appContext;
|
|
7291
7280
|
}
|
|
7292
7281
|
ngOnInit() {
|
|
7293
|
-
this.appContext.
|
|
7282
|
+
this.appContext.standardJsonFilesLoaded$.subscribe({
|
|
7294
7283
|
next: () => {
|
|
7295
7284
|
this.items = Utils.sortArray(this.appContext.languages);
|
|
7296
7285
|
}
|
|
@@ -7699,7 +7688,7 @@ class TimezoneDropdownlist extends EditComponentBase {
|
|
|
7699
7688
|
this.setValues();
|
|
7700
7689
|
}
|
|
7701
7690
|
setValues() {
|
|
7702
|
-
this.appContext.
|
|
7691
|
+
this.appContext.standardJsonFilesLoaded$.subscribe({
|
|
7703
7692
|
next: () => {
|
|
7704
7693
|
this.items = Utils.sortArray(this.appContext.timezones);
|
|
7705
7694
|
}
|
|
@@ -9748,7 +9737,7 @@ class AddressComponent extends EditComponentBase {
|
|
|
9748
9737
|
this.title = 'Address';
|
|
9749
9738
|
}
|
|
9750
9739
|
ngOnInit() {
|
|
9751
|
-
this.appContext.
|
|
9740
|
+
this.appContext.standardJsonFilesLoaded$.subscribe({
|
|
9752
9741
|
next: () => {
|
|
9753
9742
|
this.countryData = Utils.sortArray(this.appContext.countries);
|
|
9754
9743
|
this.usStateData = Utils.sortArray(this.appContext.usStates);
|