@osovitny/anatoly 3.20.7 → 3.20.9
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 +64 -96
- package/fesm2022/osovitny-anatoly.mjs.map +1 -1
- package/index.d.ts +3 -9
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, EventEmitter, Component, Output, Input, Inject, Pipe,
|
|
2
|
+
import { Injectable, EventEmitter, Component, Output, Input, Inject, Pipe, NgModule, Directive, ChangeDetectionStrategy, ViewChild, ViewEncapsulation, HostListener, HostBinding, provideAppInitializer, inject, APP_INITIALIZER } from '@angular/core';
|
|
3
3
|
import { BehaviorSubject, forkJoin, Subject, filter, takeUntil, map as map$1, catchError, of, merge, timer, fromEvent, firstValueFrom, lastValueFrom } from 'rxjs';
|
|
4
4
|
import { map, tap, mergeMap } from 'rxjs/operators';
|
|
5
5
|
import * as i1 from '@angular/common/http';
|
|
@@ -58,6 +58,34 @@ import { TooltipsModule } from '@progress/kendo-angular-tooltip';
|
|
|
58
58
|
import { TreeViewModule } from '@progress/kendo-angular-treeview';
|
|
59
59
|
import { UploadsModule } from '@progress/kendo-angular-upload';
|
|
60
60
|
|
|
61
|
+
/*
|
|
62
|
+
<file>
|
|
63
|
+
Project:
|
|
64
|
+
@osovitny/anatoly
|
|
65
|
+
|
|
66
|
+
Authors:
|
|
67
|
+
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
68
|
+
|
|
69
|
+
Created:
|
|
70
|
+
28 Apr 2024
|
|
71
|
+
|
|
72
|
+
Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
|
|
73
|
+
</file>
|
|
74
|
+
*/
|
|
75
|
+
const SessionStorageKeys = {
|
|
76
|
+
appCoreSettings: 'appCoreSettings',
|
|
77
|
+
appMSALSettings: 'appMSALSettings'
|
|
78
|
+
};
|
|
79
|
+
const AppContextStorageKeys = {
|
|
80
|
+
version: 'version',
|
|
81
|
+
currency: 'currency',
|
|
82
|
+
//Lists
|
|
83
|
+
countries: 'countries',
|
|
84
|
+
languages: 'languages',
|
|
85
|
+
timezones: 'timezones',
|
|
86
|
+
usStates: 'usStates'
|
|
87
|
+
};
|
|
88
|
+
|
|
61
89
|
/*
|
|
62
90
|
<file>
|
|
63
91
|
Project:
|
|
@@ -77,7 +105,11 @@ import { UploadsModule } from '@progress/kendo-angular-upload';
|
|
|
77
105
|
Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
|
|
78
106
|
</file>
|
|
79
107
|
*/
|
|
80
|
-
|
|
108
|
+
//App
|
|
109
|
+
const AppCoreSettings = JSON.parse(
|
|
110
|
+
//VadimOS: old approach
|
|
111
|
+
//((document.getElementById('appCoreSettings')) as HTMLInputElement).getAttribute('data-appcoresettings')
|
|
112
|
+
sessionStorage.getItem(SessionStorageKeys.appCoreSettings));
|
|
81
113
|
//WebApp
|
|
82
114
|
let isDevMode = `${AppCoreSettings?.isDevMode}`;
|
|
83
115
|
const AppVersion = `${AppCoreSettings?.version}`;
|
|
@@ -237,30 +269,6 @@ class Stopwatch {
|
|
|
237
269
|
}
|
|
238
270
|
}
|
|
239
271
|
|
|
240
|
-
/*
|
|
241
|
-
<file>
|
|
242
|
-
Project:
|
|
243
|
-
@osovitny/anatoly
|
|
244
|
-
|
|
245
|
-
Authors:
|
|
246
|
-
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
247
|
-
|
|
248
|
-
Created:
|
|
249
|
-
28 Apr 2024
|
|
250
|
-
|
|
251
|
-
Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
|
|
252
|
-
</file>
|
|
253
|
-
*/
|
|
254
|
-
const AppContextStorageKeys = {
|
|
255
|
-
version: 'version',
|
|
256
|
-
currency: 'currency',
|
|
257
|
-
//Lists
|
|
258
|
-
countries: 'countries',
|
|
259
|
-
languages: 'languages',
|
|
260
|
-
timezones: 'timezones',
|
|
261
|
-
usStates: 'usStates'
|
|
262
|
-
};
|
|
263
|
-
|
|
264
272
|
/*
|
|
265
273
|
<file>
|
|
266
274
|
Project:
|
|
@@ -3104,7 +3112,7 @@ class LocalizePipe {
|
|
|
3104
3112
|
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
3105
3113
|
|
|
3106
3114
|
Created:
|
|
3107
|
-
|
|
3115
|
+
12 May 2020
|
|
3108
3116
|
|
|
3109
3117
|
Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
|
|
3110
3118
|
</file>
|
|
@@ -3126,31 +3134,25 @@ function getLocalizationInjector() {
|
|
|
3126
3134
|
}
|
|
3127
3135
|
return _localizationInjectorInstance;
|
|
3128
3136
|
}
|
|
3129
|
-
class
|
|
3137
|
+
class LocalizationModule {
|
|
3130
3138
|
constructor(injector) {
|
|
3131
3139
|
this.injector = injector;
|
|
3132
3140
|
_localizationInjectorInstance = this.injector;
|
|
3133
3141
|
}
|
|
3134
|
-
static { this.ɵfac = function
|
|
3135
|
-
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type:
|
|
3142
|
+
static { this.ɵfac = function LocalizationModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LocalizationModule)(i0.ɵɵinject(i0.Injector)); }; }
|
|
3143
|
+
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: LocalizationModule }); }
|
|
3136
3144
|
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
3137
3145
|
TranslateService,
|
|
3138
|
-
LocalizationService
|
|
3139
|
-
provideAppInitializer(() => {
|
|
3140
|
-
const translate = inject(TranslateService);
|
|
3141
|
-
const localizationService = inject(LocalizationService);
|
|
3142
|
-
const lang = localizationService.configureSettings(translate);
|
|
3143
|
-
return translate.use(lang);
|
|
3144
|
-
})
|
|
3146
|
+
LocalizationService
|
|
3145
3147
|
], imports: [TranslateModule.forRoot({
|
|
3146
3148
|
loader: {
|
|
3147
3149
|
provide: TranslateLoader,
|
|
3148
3150
|
useFactory: translateLoaderFactory,
|
|
3149
3151
|
deps: [HttpClient]
|
|
3150
3152
|
}
|
|
3151
|
-
})] }); }
|
|
3153
|
+
}), TranslateModule] }); }
|
|
3152
3154
|
}
|
|
3153
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(
|
|
3155
|
+
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LocalizationModule, [{
|
|
3154
3156
|
type: NgModule,
|
|
3155
3157
|
args: [{
|
|
3156
3158
|
imports: [
|
|
@@ -3162,49 +3164,6 @@ class LocalizationSettingsModule {
|
|
|
3162
3164
|
}
|
|
3163
3165
|
})
|
|
3164
3166
|
],
|
|
3165
|
-
providers: [
|
|
3166
|
-
TranslateService,
|
|
3167
|
-
LocalizationService,
|
|
3168
|
-
provideAppInitializer(() => {
|
|
3169
|
-
const translate = inject(TranslateService);
|
|
3170
|
-
const localizationService = inject(LocalizationService);
|
|
3171
|
-
const lang = localizationService.configureSettings(translate);
|
|
3172
|
-
return translate.use(lang);
|
|
3173
|
-
})
|
|
3174
|
-
],
|
|
3175
|
-
exports: []
|
|
3176
|
-
}]
|
|
3177
|
-
}], () => [{ type: i0.Injector }], null); })();
|
|
3178
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(LocalizationSettingsModule, { imports: [i1$4.TranslateModule] }); })();
|
|
3179
|
-
|
|
3180
|
-
/*
|
|
3181
|
-
<file>
|
|
3182
|
-
Project:
|
|
3183
|
-
@osovitny/anatoly
|
|
3184
|
-
|
|
3185
|
-
Authors:
|
|
3186
|
-
Vadim Osovitny vadim.osovitny@osovitny.com
|
|
3187
|
-
|
|
3188
|
-
Created:
|
|
3189
|
-
12 May 2020
|
|
3190
|
-
|
|
3191
|
-
Copyright (c) 2016-2025 Osovitny Inc. All rights reserved.
|
|
3192
|
-
</file>
|
|
3193
|
-
*/
|
|
3194
|
-
//Node
|
|
3195
|
-
class LocalizationModule {
|
|
3196
|
-
static { this.ɵfac = function LocalizationModule_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || LocalizationModule)(); }; }
|
|
3197
|
-
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: LocalizationModule }); }
|
|
3198
|
-
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ providers: [
|
|
3199
|
-
LocalizationService
|
|
3200
|
-
], imports: [TranslateModule, TranslateModule] }); }
|
|
3201
|
-
}
|
|
3202
|
-
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LocalizationModule, [{
|
|
3203
|
-
type: NgModule,
|
|
3204
|
-
args: [{
|
|
3205
|
-
imports: [
|
|
3206
|
-
TranslateModule
|
|
3207
|
-
],
|
|
3208
3167
|
exports: [
|
|
3209
3168
|
TranslateModule,
|
|
3210
3169
|
LocalizePipe
|
|
@@ -3213,11 +3172,12 @@ class LocalizationModule {
|
|
|
3213
3172
|
LocalizePipe
|
|
3214
3173
|
],
|
|
3215
3174
|
providers: [
|
|
3175
|
+
TranslateService,
|
|
3216
3176
|
LocalizationService
|
|
3217
3177
|
]
|
|
3218
3178
|
}]
|
|
3219
|
-
}],
|
|
3220
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(LocalizationModule, { declarations: [LocalizePipe], imports: [TranslateModule], exports: [TranslateModule,
|
|
3179
|
+
}], () => [{ type: i0.Injector }], null); })();
|
|
3180
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(LocalizationModule, { declarations: [LocalizePipe], imports: [i1$4.TranslateModule], exports: [TranslateModule,
|
|
3221
3181
|
LocalizePipe] }); })();
|
|
3222
3182
|
|
|
3223
3183
|
/*
|
|
@@ -10270,8 +10230,10 @@ class AppService extends ApiServiceBase {
|
|
|
10270
10230
|
//Logging
|
|
10271
10231
|
stopwatch.stop();
|
|
10272
10232
|
stopwatch.printElapsedAsMilliseconds();
|
|
10273
|
-
|
|
10274
|
-
|
|
10233
|
+
if (data) {
|
|
10234
|
+
sessionStorage.setItem(SessionStorageKeys.appCoreSettings, data.core);
|
|
10235
|
+
sessionStorage.setItem(SessionStorageKeys.appMSALSettings, data.msal);
|
|
10236
|
+
}
|
|
10275
10237
|
}));
|
|
10276
10238
|
}
|
|
10277
10239
|
static { this.ɵfac = function AppService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AppService)(i0.ɵɵinject(i1.HttpClient)); }; }
|
|
@@ -10312,7 +10274,13 @@ class AnatolyCoreModule {
|
|
|
10312
10274
|
provideHttpClient(),
|
|
10313
10275
|
provideAppInitializer(() => {
|
|
10314
10276
|
const appService = inject(AppService);
|
|
10315
|
-
return lastValueFrom(appService.loadAppInitializerSettings())
|
|
10277
|
+
return lastValueFrom(appService.loadAppInitializerSettings().pipe(map$1(() => {
|
|
10278
|
+
//Localization
|
|
10279
|
+
const translate = inject(TranslateService);
|
|
10280
|
+
const localizationService = inject(LocalizationService);
|
|
10281
|
+
const lang = localizationService.configureSettings(translate);
|
|
10282
|
+
return translate.use(lang);
|
|
10283
|
+
})));
|
|
10316
10284
|
}),
|
|
10317
10285
|
//Guards
|
|
10318
10286
|
StarterGuard,
|
|
@@ -10333,9 +10301,7 @@ class AnatolyCoreModule {
|
|
|
10333
10301
|
], imports: [CommonModule,
|
|
10334
10302
|
RouterModule,
|
|
10335
10303
|
ToastrModule.forRoot(),
|
|
10336
|
-
LocalizationSettingsModule,
|
|
10337
10304
|
LocalizationModule, RouterModule,
|
|
10338
|
-
LocalizationSettingsModule,
|
|
10339
10305
|
LocalizationModule] }); }
|
|
10340
10306
|
}
|
|
10341
10307
|
(() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnatolyCoreModule, [{
|
|
@@ -10345,19 +10311,23 @@ class AnatolyCoreModule {
|
|
|
10345
10311
|
CommonModule,
|
|
10346
10312
|
RouterModule,
|
|
10347
10313
|
ToastrModule.forRoot(),
|
|
10348
|
-
LocalizationSettingsModule,
|
|
10349
10314
|
LocalizationModule
|
|
10350
10315
|
],
|
|
10351
10316
|
exports: [
|
|
10352
10317
|
RouterModule,
|
|
10353
|
-
LocalizationSettingsModule,
|
|
10354
10318
|
LocalizationModule
|
|
10355
10319
|
],
|
|
10356
10320
|
providers: [
|
|
10357
10321
|
provideHttpClient(),
|
|
10358
10322
|
provideAppInitializer(() => {
|
|
10359
10323
|
const appService = inject(AppService);
|
|
10360
|
-
return lastValueFrom(appService.loadAppInitializerSettings())
|
|
10324
|
+
return lastValueFrom(appService.loadAppInitializerSettings().pipe(map$1(() => {
|
|
10325
|
+
//Localization
|
|
10326
|
+
const translate = inject(TranslateService);
|
|
10327
|
+
const localizationService = inject(LocalizationService);
|
|
10328
|
+
const lang = localizationService.configureSettings(translate);
|
|
10329
|
+
return translate.use(lang);
|
|
10330
|
+
})));
|
|
10361
10331
|
}),
|
|
10362
10332
|
//Guards
|
|
10363
10333
|
StarterGuard,
|
|
@@ -10379,9 +10349,7 @@ class AnatolyCoreModule {
|
|
|
10379
10349
|
}]
|
|
10380
10350
|
}], () => [{ type: i0.Injector }], null); })();
|
|
10381
10351
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AnatolyCoreModule, { imports: [CommonModule,
|
|
10382
|
-
RouterModule, i1$5.ToastrModule,
|
|
10383
|
-
LocalizationModule], exports: [RouterModule,
|
|
10384
|
-
LocalizationSettingsModule,
|
|
10352
|
+
RouterModule, i1$5.ToastrModule, LocalizationModule], exports: [RouterModule,
|
|
10385
10353
|
LocalizationModule] }); })();
|
|
10386
10354
|
|
|
10387
10355
|
/*
|
|
@@ -11364,5 +11332,5 @@ class AnatolyModule {
|
|
|
11364
11332
|
* Generated bundle index. Do not edit.
|
|
11365
11333
|
*/
|
|
11366
11334
|
|
|
11367
|
-
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,
|
|
11335
|
+
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 };
|
|
11368
11336
|
//# sourceMappingURL=osovitny-anatoly.mjs.map
|