@osovitny/anatoly 3.20.7 → 3.20.8

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.
@@ -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
- const AppCoreSettings = JSON.parse((document.getElementById('appCoreSettings')).getAttribute('data-appcoresettings'));
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:
@@ -10270,8 +10278,10 @@ class AppService extends ApiServiceBase {
10270
10278
  //Logging
10271
10279
  stopwatch.stop();
10272
10280
  stopwatch.printElapsedAsMilliseconds();
10273
- console.log('loadAppInitializerSettings');
10274
- console.log(data);
10281
+ if (data) {
10282
+ sessionStorage.setItem(SessionStorageKeys.appCoreSettings, data.core);
10283
+ sessionStorage.setItem(SessionStorageKeys.appMSALSettings, data.msal);
10284
+ }
10275
10285
  }));
10276
10286
  }
10277
10287
  static { this.ɵfac = function AppService_Factory(__ngFactoryType__) { return new (__ngFactoryType__ || AppService)(i0.ɵɵinject(i1.HttpClient)); }; }