@osovitny/anatoly 3.20.18 → 3.20.20
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 +26 -24
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/index.d.ts +6 -8
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter, Component, Output, Input, Inject, Pipe, NgModule, Directive, ChangeDetectionStrategy, ViewChild, ViewEncapsulation, HostListener, HostBinding,
|
|
3
|
-
import { BehaviorSubject, forkJoin, Subject, filter, takeUntil, map as map$1, catchError, of, merge, timer, fromEvent, firstValueFrom
|
|
2
|
+
import { Injectable, EventEmitter, Component, Output, Input, Inject, Pipe, NgModule, Directive, ChangeDetectionStrategy, ViewChild, ViewEncapsulation, HostListener, HostBinding, provideAppInitializer, inject } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject, forkJoin, Subject, filter, takeUntil, map as map$1, catchError, of, merge, timer, fromEvent, firstValueFrom } from 'rxjs';
|
|
4
4
|
import { map, tap, mergeMap } from 'rxjs/operators';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
6
|
-
import { HttpResponse, HttpClient, HTTP_INTERCEPTORS,
|
|
6
|
+
import { HttpResponse, HttpClient, HTTP_INTERCEPTORS, provideHttpClient } from '@angular/common/http';
|
|
7
7
|
import * as i1$1 from '@angular/common';
|
|
8
8
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
9
9
|
import { format, formatDistance, formatDistanceToNow } from 'date-fns';
|
|
@@ -12,7 +12,7 @@ import * as i1$2 from '@angular/router';
|
|
|
12
12
|
import { NavigationEnd, NavigationStart, NavigationCancel, NavigationError, RouterModule } from '@angular/router';
|
|
13
13
|
import { v4 } from 'uuid';
|
|
14
14
|
import * as i1$3 from '@azure/msal-angular';
|
|
15
|
-
import { MSAL_GUARD_CONFIG, MsalGuard, MsalService, MsalBroadcastService, MsalInterceptor,
|
|
15
|
+
import { MSAL_GUARD_CONFIG, MsalGuard, MsalService, MsalBroadcastService, MsalInterceptor, MsalModule } from '@azure/msal-angular';
|
|
16
16
|
import { BrowserUtils, EventType, InteractionStatus, InteractionType, InteractionRequiredAuthError, PromptValue, PublicClientApplication, LogLevel } from '@azure/msal-browser';
|
|
17
17
|
import { enUS } from 'date-fns/locale/en-US';
|
|
18
18
|
import * as i1$4 from '@ngx-translate/core';
|
|
@@ -10482,36 +10482,27 @@ function loggerCallback(logLevel, message, containsPii) {
|
|
|
10482
10482
|
</file>
|
|
10483
10483
|
*/
|
|
10484
10484
|
//Node
|
|
10485
|
-
function initializeMsalFactory(msalInstance, auth) {
|
|
10486
|
-
return () => msalInstance.initialize().then(() => auth.init());
|
|
10487
|
-
}
|
|
10488
10485
|
const MSALProviders = [
|
|
10489
10486
|
MsalService,
|
|
10490
10487
|
MsalBroadcastService,
|
|
10491
|
-
//App
|
|
10492
|
-
AuthService,
|
|
10493
|
-
AuthenticationGuard,
|
|
10494
|
-
AdminGuard,
|
|
10495
10488
|
{
|
|
10496
10489
|
provide: HTTP_INTERCEPTORS,
|
|
10497
10490
|
useClass: MsalInterceptor,
|
|
10498
10491
|
multi: true
|
|
10499
10492
|
},
|
|
10500
|
-
|
|
10501
|
-
|
|
10502
|
-
|
|
10503
|
-
|
|
10504
|
-
multi: true
|
|
10505
|
-
}
|
|
10493
|
+
//App
|
|
10494
|
+
AuthService,
|
|
10495
|
+
AuthenticationGuard,
|
|
10496
|
+
AdminGuard
|
|
10506
10497
|
];
|
|
10507
10498
|
class AnatolyIAMModule {
|
|
10508
10499
|
static { this.ɵfac = function AnatolyIAMModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AnatolyIAMModule)(); }; }
|
|
10509
10500
|
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AnatolyIAMModule }); }
|
|
10510
10501
|
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
10502
|
+
provideHttpClient(),
|
|
10511
10503
|
...MSALProviders
|
|
10512
10504
|
], imports: [CommonModule,
|
|
10513
10505
|
RouterModule,
|
|
10514
|
-
HttpClientModule,
|
|
10515
10506
|
MsalModule.forRoot(MSALInstanceFactory(), MSALGuardConfigFactory(), MSALInterceptorConfigFactory())] }); }
|
|
10516
10507
|
}
|
|
10517
10508
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnatolyIAMModule, [{
|
|
@@ -10520,18 +10511,17 @@ class AnatolyIAMModule {
|
|
|
10520
10511
|
imports: [
|
|
10521
10512
|
CommonModule,
|
|
10522
10513
|
RouterModule,
|
|
10523
|
-
HttpClientModule,
|
|
10524
10514
|
MsalModule.forRoot(MSALInstanceFactory(), MSALGuardConfigFactory(), MSALInterceptorConfigFactory())
|
|
10525
10515
|
],
|
|
10526
10516
|
exports: [],
|
|
10527
10517
|
providers: [
|
|
10518
|
+
provideHttpClient(),
|
|
10528
10519
|
...MSALProviders
|
|
10529
10520
|
]
|
|
10530
10521
|
}]
|
|
10531
10522
|
}], null, null); })();
|
|
10532
10523
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AnatolyIAMModule, { imports: [CommonModule,
|
|
10533
|
-
RouterModule,
|
|
10534
|
-
HttpClientModule, i1$3.MsalModule] }); })();
|
|
10524
|
+
RouterModule, i1$3.MsalModule] }); })();
|
|
10535
10525
|
|
|
10536
10526
|
/*
|
|
10537
10527
|
<file>
|
|
@@ -11285,12 +11275,18 @@ class AnatolyModule {
|
|
|
11285
11275
|
provideHttpClient(),
|
|
11286
11276
|
provideAppInitializer(() => {
|
|
11287
11277
|
const appService = inject(AppService);
|
|
11288
|
-
return
|
|
11278
|
+
return firstValueFrom(appService.loadAppInitializerSettings().pipe(map$1(() => {
|
|
11289
11279
|
//Localization
|
|
11290
11280
|
const translate = InjectorInstance.get(TranslateService);
|
|
11291
11281
|
const localizationService = InjectorInstance.get(LocalizationService);
|
|
11292
11282
|
const lang = localizationService.configureSettings(translate);
|
|
11293
11283
|
translate.use(lang);
|
|
11284
|
+
//IAM
|
|
11285
|
+
const msalInstance = InjectorInstance.get(MsalService);
|
|
11286
|
+
const auth = InjectorInstance.get(AuthService);
|
|
11287
|
+
firstValueFrom(msalInstance.initialize()).then(() => {
|
|
11288
|
+
auth.init();
|
|
11289
|
+
});
|
|
11294
11290
|
})));
|
|
11295
11291
|
}),
|
|
11296
11292
|
AppService
|
|
@@ -11323,12 +11319,18 @@ class AnatolyModule {
|
|
|
11323
11319
|
provideHttpClient(),
|
|
11324
11320
|
provideAppInitializer(() => {
|
|
11325
11321
|
const appService = inject(AppService);
|
|
11326
|
-
return
|
|
11322
|
+
return firstValueFrom(appService.loadAppInitializerSettings().pipe(map$1(() => {
|
|
11327
11323
|
//Localization
|
|
11328
11324
|
const translate = InjectorInstance.get(TranslateService);
|
|
11329
11325
|
const localizationService = InjectorInstance.get(LocalizationService);
|
|
11330
11326
|
const lang = localizationService.configureSettings(translate);
|
|
11331
11327
|
translate.use(lang);
|
|
11328
|
+
//IAM
|
|
11329
|
+
const msalInstance = InjectorInstance.get(MsalService);
|
|
11330
|
+
const auth = InjectorInstance.get(AuthService);
|
|
11331
|
+
firstValueFrom(msalInstance.initialize()).then(() => {
|
|
11332
|
+
auth.init();
|
|
11333
|
+
});
|
|
11332
11334
|
})));
|
|
11333
11335
|
}),
|
|
11334
11336
|
AppService
|
|
@@ -11353,5 +11355,5 @@ class AnatolyModule {
|
|
|
11353
11355
|
* Generated bundle index. Do not edit.
|
|
11354
11356
|
*/
|
|
11355
11357
|
|
|
11356
|
-
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$1 as 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,
|
|
11358
|
+
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$1 as 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, is, resetAppCoreSettings, throwIfAlreadyLoaded, timeFormats, translateLoaderFactory };
|
|
11357
11359
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|