@igo2/core 16.2.0 → 17.0.0-next.0

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.
Files changed (141) hide show
  1. package/esm2022/lib/activity/activity.interceptor.mjs +5 -5
  2. package/esm2022/lib/activity/activity.module.mjs +5 -5
  3. package/esm2022/lib/activity/activity.service.mjs +5 -5
  4. package/esm2022/lib/activity/index.mjs +1 -1
  5. package/esm2022/lib/analytics/index.mjs +1 -1
  6. package/esm2022/lib/analytics/shared/analytics.interface.mjs +1 -1
  7. package/esm2022/lib/analytics/shared/analytics.service.mjs +5 -5
  8. package/esm2022/lib/analytics/shared/index.mjs +1 -1
  9. package/esm2022/lib/compression/compressedData.interface.mjs +1 -1
  10. package/esm2022/lib/compression/compression.service.mjs +5 -5
  11. package/esm2022/lib/compression/index.mjs +1 -1
  12. package/esm2022/lib/config/config-deprecated.mjs +1 -1
  13. package/esm2022/lib/config/config.module.mjs +5 -5
  14. package/esm2022/lib/config/config.service.mjs +5 -5
  15. package/esm2022/lib/config/index.mjs +1 -1
  16. package/esm2022/lib/config/version.mjs +3 -3
  17. package/esm2022/lib/core.module.mjs +12 -14
  18. package/esm2022/lib/environment/environment.interface.mjs +1 -1
  19. package/esm2022/lib/environment/index.mjs +1 -1
  20. package/esm2022/lib/gesture/gesture.module.mjs +5 -5
  21. package/esm2022/lib/gesture/gesture.provider.mjs +4 -4
  22. package/esm2022/lib/language/index.mjs +1 -1
  23. package/esm2022/lib/language/language.module.mjs +6 -29
  24. package/esm2022/lib/language/shared/index.mjs +3 -1
  25. package/esm2022/lib/language/shared/language-mock.provider.mjs +5 -0
  26. package/esm2022/lib/language/shared/language.interface.mjs +3 -2
  27. package/esm2022/lib/language/shared/language.loader.mjs +23 -16
  28. package/esm2022/lib/language/shared/language.provider.mjs +37 -18
  29. package/esm2022/lib/language/shared/language.service.mjs +5 -5
  30. package/esm2022/lib/language/shared/missing-translation.guard.mjs +2 -2
  31. package/esm2022/lib/media/index.mjs +1 -1
  32. package/esm2022/lib/media/media.enum.mjs +1 -1
  33. package/esm2022/lib/media/media.service.mjs +5 -5
  34. package/esm2022/lib/message/index.mjs +1 -1
  35. package/esm2022/lib/message/message.module.mjs +5 -5
  36. package/esm2022/lib/message/shared/index.mjs +1 -1
  37. package/esm2022/lib/message/shared/message.enum.mjs +1 -1
  38. package/esm2022/lib/message/shared/message.interface.mjs +1 -1
  39. package/esm2022/lib/message/shared/message.service.mjs +8 -7
  40. package/esm2022/lib/monitoring/index.mjs +1 -1
  41. package/esm2022/lib/monitoring/monitoring.provider.mjs +1 -1
  42. package/esm2022/lib/monitoring/sentry/index.mjs +1 -1
  43. package/esm2022/lib/monitoring/sentry/sentry.interface.mjs +1 -1
  44. package/esm2022/lib/monitoring/sentry/sentry.mjs +1 -1
  45. package/esm2022/lib/monitoring/sentry/sentry.provider.mjs +1 -1
  46. package/esm2022/lib/monitoring/sentry/sentry.utils.mjs +4 -2
  47. package/esm2022/lib/monitoring/shared/any-monitoring.interface.mjs +1 -1
  48. package/esm2022/lib/monitoring/shared/index.mjs +1 -1
  49. package/esm2022/lib/monitoring/shared/monitoring.interface.mjs +1 -1
  50. package/esm2022/lib/network/index.mjs +1 -1
  51. package/esm2022/lib/network/network.interfaces.mjs +1 -1
  52. package/esm2022/lib/network/network.service.mjs +5 -5
  53. package/esm2022/lib/regex/index.mjs +1 -1
  54. package/esm2022/lib/regex/regex.interface.mjs +1 -1
  55. package/esm2022/lib/regex/regex.service.mjs +5 -5
  56. package/esm2022/lib/request/error.interceptor.mjs +5 -5
  57. package/esm2022/lib/request/error.module.mjs +7 -7
  58. package/esm2022/lib/request/index.mjs +1 -1
  59. package/esm2022/lib/request/logging.interceptor.mjs +5 -5
  60. package/esm2022/lib/request/logging.module.mjs +5 -5
  61. package/esm2022/lib/route/route.interface.mjs +1 -1
  62. package/esm2022/lib/route/route.service.mjs +6 -6
  63. package/esm2022/lib/storage/index.mjs +1 -1
  64. package/esm2022/lib/storage/storage.interface.mjs +1 -1
  65. package/esm2022/lib/storage/storage.mjs +1 -1
  66. package/esm2022/lib/storage/storage.service.mjs +5 -5
  67. package/esm2022/lib/user/index.mjs +1 -1
  68. package/esm2022/lib/user/user.interface.mjs +1 -1
  69. package/esm2022/public_api.mjs +1 -2
  70. package/fesm2022/igo2-core.mjs +204 -193
  71. package/fesm2022/igo2-core.mjs.map +1 -1
  72. package/lib/core.module.d.ts +4 -4
  73. package/lib/language/language.module.d.ts +1 -3
  74. package/lib/language/shared/index.d.ts +2 -0
  75. package/lib/language/shared/language-mock.provider.d.ts +2 -0
  76. package/lib/language/shared/language.interface.d.ts +6 -0
  77. package/lib/language/shared/language.loader.d.ts +6 -4
  78. package/lib/language/shared/language.provider.d.ts +8 -15
  79. package/lib/message/shared/message.enum.d.ts +1 -1
  80. package/lib/monitoring/sentry/sentry.utils.d.ts +1 -1
  81. package/lib/monitoring/shared/any-monitoring.interface.d.ts +1 -1
  82. package/locale/en.core.json +28 -28
  83. package/locale/en.json +1 -1
  84. package/locale/fr.core.json +28 -28
  85. package/locale/fr.json +1 -1
  86. package/package.json +14 -11
  87. package/public_api.d.ts +0 -1
  88. package/src/core-theme.scss +5 -5
  89. package/src/index.scss +6 -6
  90. package/src/lib/message/message.theming.scss +26 -26
  91. package/src/packages.import.scss +5 -0
  92. package/src/style/all-style.scss +3 -3
  93. package/src/style/layout.scss +163 -163
  94. package/src/style/partial/core-utils.scss +5 -5
  95. package/src/style/partial/core.variables.scss +5 -5
  96. package/src/style/partial/media.scss +80 -80
  97. package/src/style/style.scss +19 -19
  98. package/src/theming/all-theme.scss +15 -14
  99. package/src/theming/material-theme-override.scss +39 -39
  100. package/src/theming/prebuilt-themes/blue-theme.scss +27 -27
  101. package/src/theming/prebuilt-themes/bluedark-theme.scss +60 -60
  102. package/src/theming/prebuilt-themes/bluedq-theme.scss +60 -60
  103. package/src/theming/prebuilt-themes/bluegrey-theme.scss +26 -26
  104. package/src/theming/prebuilt-themes/dark-theme.scss +26 -26
  105. package/src/theming/prebuilt-themes/deeppurple-theme.scss +26 -26
  106. package/src/theming/prebuilt-themes/indigo-theme.scss +26 -26
  107. package/src/theming/prebuilt-themes/orange-theme.scss +26 -26
  108. package/src/theming/prebuilt-themes/teal-theme.scss +26 -26
  109. package/src/theming/typography.scss +28 -28
  110. package/src/theming/utils/_foreground.scss +22 -22
  111. package/theming/prebuilt-themes/blue-theme.css +823 -963
  112. package/theming/prebuilt-themes/bluedark-theme.css +823 -963
  113. package/theming/prebuilt-themes/bluedq-theme.css +823 -963
  114. package/theming/prebuilt-themes/bluegrey-theme.css +823 -963
  115. package/theming/prebuilt-themes/dark-theme.css +823 -970
  116. package/theming/prebuilt-themes/deeppurple-theme.css +823 -963
  117. package/theming/prebuilt-themes/indigo-theme.css +823 -963
  118. package/theming/prebuilt-themes/orange-theme.css +823 -963
  119. package/theming/prebuilt-themes/teal-theme.css +823 -963
  120. package/packages.import.scss +0 -4
  121. package/src/theming/prebuilt-themes/qcca/_index.scss +0 -2
  122. package/src/theming/prebuilt-themes/qcca/base/_index.scss +0 -4
  123. package/src/theming/prebuilt-themes/qcca/base/breakpoints.scss +0 -57
  124. package/src/theming/prebuilt-themes/qcca/base/colors.scss +0 -40
  125. package/src/theming/prebuilt-themes/qcca/base/palette.scss +0 -50
  126. package/src/theming/prebuilt-themes/qcca/base/typography/_index.scss +0 -2
  127. package/src/theming/prebuilt-themes/qcca/base/typography/typography.scss +0 -138
  128. package/src/theming/prebuilt-themes/qcca/base/typography/typography.utils.scss +0 -18
  129. package/src/theming/prebuilt-themes/qcca/components/_index.scss +0 -10
  130. package/src/theming/prebuilt-themes/qcca/components/_index.theme.scss +0 -5
  131. package/src/theming/prebuilt-themes/qcca/components/button.scss +0 -24
  132. package/src/theming/prebuilt-themes/qcca/components/dialog.scss +0 -36
  133. package/src/theming/prebuilt-themes/qcca/components/form-field.scss +0 -5
  134. package/src/theming/prebuilt-themes/qcca/components/input.scss +0 -6
  135. package/src/theming/prebuilt-themes/qcca/components/list.scss +0 -24
  136. package/src/theming/prebuilt-themes/qcca/components/panel.scss +0 -8
  137. package/src/theming/prebuilt-themes/qcca/components/scrollbar.scss +0 -15
  138. package/src/theming/prebuilt-themes/qcca/components/search-bar.scss +0 -41
  139. package/src/theming/prebuilt-themes/qcca/components/search-bar.theme.scss +0 -29
  140. package/src/theming/prebuilt-themes/qcca-theme.scss +0 -49
  141. package/theming/prebuilt-themes/qcca-theme.css +0 -3404
@@ -2,17 +2,17 @@ import { CommonModule } from '@angular/common';
2
2
  import * as i1 from '@angular/common/http';
3
3
  import { HTTP_INTERCEPTORS, HttpClient, HttpBackend, HttpErrorResponse, HttpClientModule, HttpResponse } from '@angular/common/http';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, NgModule, InjectionToken, APP_INITIALIZER, Injector, Inject, Optional, SkipSelf, ErrorHandler, EventEmitter } from '@angular/core';
5
+ import { Injectable, NgModule, InjectionToken, APP_INITIALIZER, makeEnvironmentProviders, importProvidersFrom, Injector, Inject, Optional, SkipSelf, ErrorHandler, EventEmitter } from '@angular/core';
6
6
  import * as i1$3 from '@angular/material/icon';
7
7
  import * as i2 from '@angular/platform-browser';
8
8
  import { HammerGestureConfig, HAMMER_GESTURE_CONFIG, HammerModule } from '@angular/platform-browser';
9
- import * as i8 from 'ngx-indexed-db';
9
+ import * as i6 from 'ngx-indexed-db';
10
10
  import { NgxIndexedDBModule } from 'ngx-indexed-db';
11
- import { finalize, catchError, debounceTime, first, tap, startWith } from 'rxjs/operators';
11
+ import { finalize, catchError, debounceTime, first as first$1, tap as tap$1, startWith } from 'rxjs/operators';
12
12
  import { uuid, ObjectUtils } from '@igo2/utils';
13
- import { BehaviorSubject, throwError, forkJoin, map, combineLatest, Observable, fromEvent } from 'rxjs';
13
+ import { BehaviorSubject, throwError, first, switchMap, forkJoin, map, tap, combineLatest, Observable, fromEvent } from 'rxjs';
14
14
  import * as i1$1 from '@ngx-translate/core';
15
- import { TranslateLoader, TranslateModule, MissingTranslationHandler } from '@ngx-translate/core';
15
+ import { TranslateModule, MissingTranslationHandler, TranslateLoader } from '@ngx-translate/core';
16
16
  import * as i1$2 from 'ngx-toastr';
17
17
  import { ToastrModule, ToastrService } from 'ngx-toastr';
18
18
  import * as i1$4 from '@angular/router';
@@ -39,15 +39,15 @@ class ActivityService {
39
39
  this.ids.splice(index, 1);
40
40
  this.counter$.next(this.ids.length);
41
41
  }
42
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
43
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityService, providedIn: 'root' });
42
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ActivityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
43
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ActivityService, providedIn: 'root' });
44
44
  }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityService, decorators: [{
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ActivityService, decorators: [{
46
46
  type: Injectable,
47
47
  args: [{
48
48
  providedIn: 'root'
49
49
  }]
50
- }], ctorParameters: function () { return []; } });
50
+ }], ctorParameters: () => [] });
51
51
 
52
52
  class ActivityInterceptor {
53
53
  activityService;
@@ -69,12 +69,12 @@ class ActivityInterceptor {
69
69
  this.activityService.unregister(id);
70
70
  }));
71
71
  }
72
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityInterceptor, deps: [{ token: ActivityService }], target: i0.ɵɵFactoryTarget.Injectable });
73
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityInterceptor });
72
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ActivityInterceptor, deps: [{ token: ActivityService }], target: i0.ɵɵFactoryTarget.Injectable });
73
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ActivityInterceptor });
74
74
  }
75
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityInterceptor, decorators: [{
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ActivityInterceptor, decorators: [{
76
76
  type: Injectable
77
- }], ctorParameters: function () { return [{ type: ActivityService }]; } });
77
+ }], ctorParameters: () => [{ type: ActivityService }] });
78
78
 
79
79
  class IgoActivityModule {
80
80
  static forRoot() {
@@ -89,11 +89,11 @@ class IgoActivityModule {
89
89
  ]
90
90
  };
91
91
  }
92
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoActivityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
93
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoActivityModule });
94
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoActivityModule });
92
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoActivityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
93
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: IgoActivityModule });
94
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoActivityModule });
95
95
  }
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoActivityModule, decorators: [{
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoActivityModule, decorators: [{
97
97
  type: NgModule,
98
98
  args: [{
99
99
  imports: [],
@@ -130,8 +130,8 @@ const ALTERNATE_CONFIG_FROM_DEPRECATION = new Map(Object.entries(CONFIG_DEPRECAT
130
130
  ]));
131
131
 
132
132
  const version = {
133
- lib: '16.2.0',
134
- releaseDate: 1705673778574
133
+ lib: '17.0.0-next.0',
134
+ releaseDate: 1708377796344
135
135
  };
136
136
 
137
137
  class ConfigService {
@@ -212,15 +212,15 @@ class ConfigService {
212
212
  });
213
213
  });
214
214
  }
215
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigService, deps: [{ token: i1.HttpBackend }], target: i0.ɵɵFactoryTarget.Injectable });
216
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigService, providedIn: 'root' });
215
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ConfigService, deps: [{ token: i1.HttpBackend }], target: i0.ɵɵFactoryTarget.Injectable });
216
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ConfigService, providedIn: 'root' });
217
217
  }
218
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigService, decorators: [{
218
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ConfigService, decorators: [{
219
219
  type: Injectable,
220
220
  args: [{
221
221
  providedIn: 'root'
222
222
  }]
223
- }], ctorParameters: function () { return [{ type: i1.HttpBackend }]; } });
223
+ }], ctorParameters: () => [{ type: i1.HttpBackend }] });
224
224
 
225
225
  let CONFIG_OPTIONS = new InjectionToken('configOptions');
226
226
  function provideConfigOptions(options) {
@@ -248,11 +248,11 @@ class IgoConfigModule {
248
248
  providers: [provideConfigOptions({}), provideConfigLoader()]
249
249
  };
250
250
  }
251
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
252
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoConfigModule });
253
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoConfigModule });
251
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
252
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: IgoConfigModule });
253
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoConfigModule });
254
254
  }
255
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoConfigModule, decorators: [{
255
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoConfigModule, decorators: [{
256
256
  type: NgModule,
257
257
  args: [{
258
258
  imports: [],
@@ -261,56 +261,81 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
261
261
  }]
262
262
  }] });
263
263
 
264
+ class LanguageLoaderBase {
265
+ }
266
+
264
267
  class LanguageLoader {
268
+ configService;
265
269
  prefix;
266
270
  suffix;
267
- config;
268
271
  httpClient;
269
- constructor(handler, prefix, suffix = '.json', config) {
272
+ _isLoaded$ = new BehaviorSubject(null);
273
+ isLoaded$ = this._isLoaded$.asObservable();
274
+ constructor(handler, configService, prefix, suffix = '.json') {
275
+ this.configService = configService;
270
276
  this.prefix = prefix;
271
277
  this.suffix = suffix;
272
- this.config = config;
273
278
  this.httpClient = new HttpClient(handler);
274
279
  }
275
280
  getTranslation(lang) {
276
281
  const igoLocale$ = this.httpClient.get(`locale/libs_locale/${lang}.json`);
277
- if (this.config && !this.prefix) {
278
- const prefix = this.config.getConfig('language.prefix');
279
- this.prefix = !prefix || Array.isArray(prefix) ? prefix : [prefix];
280
- }
281
- if (!this.prefix || this.prefix.length === 0) {
282
- return igoLocale$;
283
- }
284
- const appLocale$ = this.prefix.map((prefix) => this.httpClient.get(`${prefix}${lang}${this.suffix}`));
285
- const locale$ = forkJoin([igoLocale$, ...appLocale$]);
286
- return locale$.pipe(map((translations) => {
287
- return translations.reduce((acc, current) => ObjectUtils.mergeDeep(acc, current), {});
282
+ return this.configService.isLoaded$.pipe(first((isLoaded) => isLoaded), switchMap(() => {
283
+ if (this.configService && !this.prefix) {
284
+ const prefix = this.configService.getConfig('language.prefix');
285
+ this.prefix = !prefix || Array.isArray(prefix) ? prefix : [prefix];
286
+ }
287
+ if (!this.prefix || this.prefix.length === 0) {
288
+ this._isLoaded$.next(true);
289
+ return igoLocale$;
290
+ }
291
+ const appLocale$ = this.prefix.map((prefix) => this.httpClient.get(`${prefix}${lang}${this.suffix}`));
292
+ const locale$ = forkJoin([igoLocale$, ...appLocale$]);
293
+ return locale$.pipe(map((translations) => {
294
+ return translations.reduce((acc, current) => ObjectUtils.mergeDeep(acc, current), {});
295
+ }), tap(() => {
296
+ this._isLoaded$.next(true);
297
+ }));
288
298
  }));
289
299
  }
290
300
  }
291
301
 
292
- function defaultLanguageLoader(http, config) {
293
- return new LanguageLoader(http, undefined, undefined, config);
294
- }
295
- function provideLanguageLoader(loader) {
296
- return {
297
- provide: TranslateLoader,
298
- useFactory: loader || defaultLanguageLoader,
299
- deps: [HttpBackend]
300
- };
301
- }
302
- function provideDefaultLanguageLoader(loader) {
303
- return {
304
- provide: TranslateLoader,
305
- useFactory: loader || defaultLanguageLoader,
306
- deps: [HttpBackend, ConfigService]
307
- };
302
+ class LanguageService {
303
+ translate;
304
+ language;
305
+ language$ = new BehaviorSubject(undefined);
306
+ constructor(translate) {
307
+ this.translate = translate;
308
+ this.language = this.translate.getBrowserLang();
309
+ const lang = this.getLanguage();
310
+ this.translate.setDefaultLang(lang);
311
+ this.language$.next(lang);
312
+ }
313
+ getLanguage() {
314
+ return this.language.match(/en|fr/) ? this.language : 'en';
315
+ }
316
+ setLanguage(language) {
317
+ this.language = language.match(/en|fr/) ? language : 'en';
318
+ combineLatest([
319
+ this.translate.use(this.language),
320
+ this.translate.reloadLang(this.language)
321
+ ]).subscribe(() => {
322
+ this.language$.next(this.language);
323
+ });
324
+ }
325
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: LanguageService, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
326
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: LanguageService, providedIn: 'root' });
308
327
  }
328
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: LanguageService, decorators: [{
329
+ type: Injectable,
330
+ args: [{
331
+ providedIn: 'root'
332
+ }]
333
+ }], ctorParameters: () => [{ type: i1$1.TranslateService }] });
309
334
 
310
335
  class IgoMissingTranslationHandler {
311
336
  handle(params) {
312
337
  if (!params.translateService.langs.length) {
313
- const error = 'Translations are not yet loaded. \
338
+ const error = 'Translations are not yet loaded. \
314
339
  Check that the LanguageService is injected.';
315
340
  throw new Error(error);
316
341
  }
@@ -323,34 +348,51 @@ class IgoMissingTranslationHandler {
323
348
  }
324
349
  }
325
350
 
351
+ /**
352
+ * Make sure you only call this method in the root module of your application, most of the time called AppModule.
353
+ */
354
+ function provideRootTranslation(loader) {
355
+ return makeEnvironmentProviders([
356
+ importProvidersFrom(TranslateModule.forRoot(setTranslationConfig(loader))),
357
+ {
358
+ provide: APP_INITIALIZER,
359
+ useFactory: (languageService) => () => {
360
+ return languageService.translate.currentLoader.isLoaded$?.pipe(first((isLoaded) => isLoaded === true));
361
+ },
362
+ deps: [LanguageService],
363
+ multi: true
364
+ }
365
+ ]);
366
+ }
367
+ const setTranslationConfig = (loader) => ({
368
+ defaultLanguage: 'fr',
369
+ loader: loader ?? DEFAULT_LANGUAGE_LOADER,
370
+ missingTranslationHandler: {
371
+ provide: MissingTranslationHandler,
372
+ useClass: IgoMissingTranslationHandler
373
+ }
374
+ });
375
+ const DEFAULT_LANGUAGE_LOADER = {
376
+ provide: TranslateLoader,
377
+ useFactory: defaultLanguageLoader,
378
+ deps: [HttpBackend, ConfigService]
379
+ };
380
+ function defaultLanguageLoader(http, config) {
381
+ return new LanguageLoader(http, config, undefined, undefined);
382
+ }
383
+
384
+ function provideMockRootTranslation(loader) {
385
+ return TranslateModule.forRoot();
386
+ }
387
+
326
388
  class IgoLanguageModule {
327
- static forRoot() {
328
- return {
329
- ngModule: IgoLanguageModule,
330
- providers: [provideDefaultLanguageLoader()]
331
- };
332
- }
333
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLanguageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
334
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoLanguageModule, imports: [i1$1.TranslateModule], exports: [TranslateModule] });
335
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLanguageModule, imports: [TranslateModule.forRoot({
336
- missingTranslationHandler: {
337
- provide: MissingTranslationHandler,
338
- useClass: IgoMissingTranslationHandler
339
- }
340
- }), TranslateModule] });
389
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoLanguageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
390
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: IgoLanguageModule, exports: [TranslateModule] });
391
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoLanguageModule, imports: [TranslateModule] });
341
392
  }
342
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLanguageModule, decorators: [{
393
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoLanguageModule, decorators: [{
343
394
  type: NgModule,
344
395
  args: [{
345
- imports: [
346
- TranslateModule.forRoot({
347
- missingTranslationHandler: {
348
- provide: MissingTranslationHandler,
349
- useClass: IgoMissingTranslationHandler
350
- }
351
- })
352
- ],
353
- declarations: [],
354
396
  exports: [TranslateModule]
355
397
  }]
356
398
  }] });
@@ -362,9 +404,9 @@ class IgoMessageModule {
362
404
  providers: []
363
405
  };
364
406
  }
365
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
366
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoMessageModule, imports: [CommonModule, i1$2.ToastrModule] });
367
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoMessageModule, imports: [CommonModule,
407
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
408
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: IgoMessageModule, imports: [CommonModule, i1$2.ToastrModule] });
409
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoMessageModule, imports: [CommonModule,
368
410
  ToastrModule.forRoot({
369
411
  positionClass: 'toast-bottom-right',
370
412
  timeOut: 10000,
@@ -382,7 +424,7 @@ class IgoMessageModule {
382
424
  includeTitleDuplicates: true
383
425
  })] });
384
426
  }
385
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoMessageModule, decorators: [{
427
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoMessageModule, decorators: [{
386
428
  type: NgModule,
387
429
  args: [{
388
430
  imports: [
@@ -409,39 +451,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
409
451
  }]
410
452
  }] });
411
453
 
412
- class LanguageService {
413
- translate;
414
- language;
415
- language$ = new BehaviorSubject(undefined);
416
- constructor(translate) {
417
- this.translate = translate;
418
- this.language = this.translate.getBrowserLang();
419
- const lang = this.getLanguage();
420
- this.translate.setDefaultLang(lang);
421
- this.language$.next(lang);
422
- }
423
- getLanguage() {
424
- return this.language.match(/en|fr/) ? this.language : 'en';
425
- }
426
- setLanguage(language) {
427
- this.language = language.match(/en|fr/) ? language : 'en';
428
- combineLatest([
429
- this.translate.use(this.language),
430
- this.translate.reloadLang(this.language)
431
- ]).subscribe(() => {
432
- this.language$.next(this.language);
433
- });
434
- }
435
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LanguageService, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
436
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LanguageService, providedIn: 'root' });
437
- }
438
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LanguageService, decorators: [{
439
- type: Injectable,
440
- args: [{
441
- providedIn: 'root'
442
- }]
443
- }], ctorParameters: function () { return [{ type: i1$1.TranslateService }]; } });
444
-
445
454
  var MessageType;
446
455
  (function (MessageType) {
447
456
  MessageType["ERROR"] = "error";
@@ -497,7 +506,7 @@ class MessageService {
497
506
  this.languageService.translate.get(activeMessageTranslation.textKey, translatedTextInterpolateParams),
498
507
  this.languageService.translate.get(activeMessageTranslation.titleKey, translatedTitleInterpolateParams)
499
508
  ])
500
- .pipe(first())
509
+ .pipe(first$1())
501
510
  .subscribe((res) => {
502
511
  toast.toastRef.componentInstance.message = res[0];
503
512
  toast.toastRef.componentInstance.title = res[1];
@@ -534,7 +543,8 @@ class MessageService {
534
543
  if (currentDate > message.options.from &&
535
544
  currentDate < message.options.to) {
536
545
  if (message.showIcon === false) {
537
- this.toastr.toastrConfig.iconClasses[messageType] = `toast-${messageType} toast-no-icon`;
546
+ this.toastr.toastrConfig.iconClasses[messageType] =
547
+ `toast-${messageType} toast-no-icon`;
538
548
  }
539
549
  message = this.handleTemplate(message);
540
550
  if (message.text) {
@@ -653,18 +663,18 @@ class MessageService {
653
663
  message.title = undefined;
654
664
  return message;
655
665
  }
656
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageService, deps: [{ token: Injector }, { token: ConfigService }, { token: LanguageService }], target: i0.ɵɵFactoryTarget.Injectable });
657
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageService, providedIn: 'root' });
666
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: MessageService, deps: [{ token: Injector }, { token: ConfigService }, { token: LanguageService }], target: i0.ɵɵFactoryTarget.Injectable });
667
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: MessageService, providedIn: 'root' });
658
668
  }
659
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageService, decorators: [{
669
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: MessageService, decorators: [{
660
670
  type: Injectable,
661
671
  args: [{
662
672
  providedIn: 'root'
663
673
  }]
664
- }], ctorParameters: function () { return [{ type: i0.Injector, decorators: [{
674
+ }], ctorParameters: () => [{ type: i0.Injector, decorators: [{
665
675
  type: Inject,
666
676
  args: [Injector]
667
- }] }, { type: ConfigService }, { type: LanguageService }]; } });
677
+ }] }, { type: ConfigService }, { type: LanguageService }] });
668
678
 
669
679
  class ErrorInterceptor {
670
680
  messageService;
@@ -721,15 +731,15 @@ class ErrorInterceptor {
721
731
  progressBar: false
722
732
  });
723
733
  }
724
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorInterceptor, deps: [{ token: MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
725
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorInterceptor, providedIn: 'root' });
734
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ErrorInterceptor, deps: [{ token: MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
735
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ErrorInterceptor, providedIn: 'root' });
726
736
  }
727
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorInterceptor, decorators: [{
737
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: ErrorInterceptor, decorators: [{
728
738
  type: Injectable,
729
739
  args: [{
730
740
  providedIn: 'root'
731
741
  }]
732
- }], ctorParameters: function () { return [{ type: MessageService }]; } });
742
+ }], ctorParameters: () => [{ type: MessageService }] });
733
743
 
734
744
  class IgoErrorModule {
735
745
  static forRoot() {
@@ -749,22 +759,22 @@ class IgoErrorModule {
749
759
  throw new Error('IgoErrorModule is already loaded. Import it in the AppModule only');
750
760
  }
751
761
  }
752
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoErrorModule, deps: [{ token: IgoErrorModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
753
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoErrorModule });
754
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoErrorModule });
762
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoErrorModule, deps: [{ token: IgoErrorModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
763
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: IgoErrorModule });
764
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoErrorModule });
755
765
  }
756
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoErrorModule, decorators: [{
766
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoErrorModule, decorators: [{
757
767
  type: NgModule,
758
768
  args: [{
759
769
  imports: [],
760
770
  declarations: [],
761
771
  exports: []
762
772
  }]
763
- }], ctorParameters: function () { return [{ type: IgoErrorModule, decorators: [{
773
+ }], ctorParameters: () => [{ type: IgoErrorModule, decorators: [{
764
774
  type: Optional
765
775
  }, {
766
776
  type: SkipSelf
767
- }] }]; } });
777
+ }] }] });
768
778
 
769
779
  const dbConfig = {
770
780
  name: 'igo2DB',
@@ -805,27 +815,26 @@ class IgoCoreModule {
805
815
  constructor(matIconRegistry, domSanitizer) {
806
816
  matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl('./assets/igo2/core/icons/mdi.svg'));
807
817
  }
808
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoCoreModule, deps: [{ token: i1$3.MatIconRegistry }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.NgModule });
809
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoCoreModule, imports: [CommonModule,
810
- HttpClientModule, IgoActivityModule, IgoConfigModule, IgoErrorModule, IgoLanguageModule, IgoMessageModule, i8.NgxIndexedDBModule], exports: [IgoActivityModule,
818
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoCoreModule, deps: [{ token: i1$3.MatIconRegistry }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.NgModule });
819
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: IgoCoreModule, imports: [CommonModule,
820
+ HttpClientModule, IgoActivityModule, IgoConfigModule, IgoErrorModule, IgoMessageModule, i6.NgxIndexedDBModule], exports: [IgoActivityModule,
811
821
  IgoConfigModule,
812
822
  IgoErrorModule,
813
823
  IgoLanguageModule,
814
824
  IgoMessageModule] });
815
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoCoreModule, imports: [CommonModule,
825
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoCoreModule, providers: [provideRootTranslation()], imports: [CommonModule,
816
826
  HttpClientModule,
817
827
  IgoActivityModule.forRoot(),
818
828
  IgoConfigModule.forRoot(),
819
829
  IgoErrorModule.forRoot(),
820
- IgoLanguageModule.forRoot(),
821
- IgoMessageModule.forRoot(),
830
+ IgoMessageModule,
822
831
  NgxIndexedDBModule.forRoot(dbConfig), IgoActivityModule,
823
832
  IgoConfigModule,
824
833
  IgoErrorModule,
825
834
  IgoLanguageModule,
826
835
  IgoMessageModule] });
827
836
  }
828
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoCoreModule, decorators: [{
837
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoCoreModule, decorators: [{
829
838
  type: NgModule,
830
839
  args: [{
831
840
  imports: [
@@ -834,10 +843,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
834
843
  IgoActivityModule.forRoot(),
835
844
  IgoConfigModule.forRoot(),
836
845
  IgoErrorModule.forRoot(),
837
- IgoLanguageModule.forRoot(),
838
- IgoMessageModule.forRoot(),
846
+ IgoMessageModule,
839
847
  NgxIndexedDBModule.forRoot(dbConfig)
840
848
  ],
849
+ providers: [provideRootTranslation()],
841
850
  declarations: [],
842
851
  exports: [
843
852
  IgoActivityModule,
@@ -847,7 +856,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
847
856
  IgoMessageModule
848
857
  ]
849
858
  }]
850
- }], ctorParameters: function () { return [{ type: i1$3.MatIconRegistry }, { type: i2.DomSanitizer }]; } });
859
+ }], ctorParameters: () => [{ type: i1$3.MatIconRegistry }, { type: i2.DomSanitizer }] });
851
860
 
852
861
  class IgoGestureConfig extends HammerGestureConfig {
853
862
  buildHammer(element) {
@@ -855,10 +864,10 @@ class IgoGestureConfig extends HammerGestureConfig {
855
864
  mc.set({ touchAction: 'pan-y' });
856
865
  return mc;
857
866
  }
858
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
859
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureConfig });
867
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoGestureConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
868
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoGestureConfig });
860
869
  }
861
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureConfig, decorators: [{
870
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoGestureConfig, decorators: [{
862
871
  type: Injectable
863
872
  }] });
864
873
 
@@ -874,11 +883,11 @@ class IgoGestureModule {
874
883
  ]
875
884
  };
876
885
  }
877
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
878
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureModule, imports: [HammerModule] });
879
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureModule, imports: [HammerModule] });
886
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoGestureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
887
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: IgoGestureModule, imports: [HammerModule] });
888
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoGestureModule, imports: [HammerModule] });
880
889
  }
881
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureModule, decorators: [{
890
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoGestureModule, decorators: [{
882
891
  type: NgModule,
883
892
  args: [{
884
893
  imports: [HammerModule],
@@ -892,7 +901,7 @@ class LoggingInterceptor {
892
901
  const started = Date.now();
893
902
  let ok;
894
903
  // extend server response observable with logging
895
- return next.handle(req).pipe(tap(
904
+ return next.handle(req).pipe(tap$1(
896
905
  // Succeeds when there is a response; ignore other events
897
906
  (event) => (ok = event instanceof HttpResponse ? 'succeeded' : ''),
898
907
  // Operation failed; error is an HttpErrorResponse
@@ -900,15 +909,15 @@ class LoggingInterceptor {
900
909
  // Log when response observable either completes or errors
901
910
  finalize(() => {
902
911
  const elapsed = Date.now() - started;
903
- const msg = `${req.method} "${req.urlWithParams}"
912
+ const msg = `${req.method} "${req.urlWithParams}"
904
913
  ${ok} in ${elapsed} ms.`;
905
914
  console.log(msg);
906
915
  }));
907
916
  }
908
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
909
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggingInterceptor });
917
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: LoggingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
918
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: LoggingInterceptor });
910
919
  }
911
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggingInterceptor, decorators: [{
920
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: LoggingInterceptor, decorators: [{
912
921
  type: Injectable
913
922
  }] });
914
923
 
@@ -925,11 +934,11 @@ class IgoLoggingModule {
925
934
  ]
926
935
  };
927
936
  }
928
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLoggingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
929
- static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoLoggingModule });
930
- static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLoggingModule });
937
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoLoggingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
938
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.2.1", ngImport: i0, type: IgoLoggingModule });
939
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoLoggingModule });
931
940
  }
932
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLoggingModule, decorators: [{
941
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: IgoLoggingModule, decorators: [{
933
942
  type: NgModule,
934
943
  args: [{
935
944
  imports: [],
@@ -994,20 +1003,20 @@ class RouteService {
994
1003
  }
995
1004
  return this.route.queryParams;
996
1005
  }
997
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouteService, deps: [{ token: i1$4.Router }, { token: i1$4.ActivatedRoute }, { token: ROUTE_SERVICE_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
998
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouteService, providedIn: 'root' });
1006
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: RouteService, deps: [{ token: i1$4.Router }, { token: i1$4.ActivatedRoute }, { token: ROUTE_SERVICE_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1007
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: RouteService, providedIn: 'root' });
999
1008
  }
1000
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouteService, decorators: [{
1009
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: RouteService, decorators: [{
1001
1010
  type: Injectable,
1002
1011
  args: [{
1003
1012
  providedIn: 'root'
1004
1013
  }]
1005
- }], ctorParameters: function () { return [{ type: i1$4.Router }, { type: i1$4.ActivatedRoute }, { type: undefined, decorators: [{
1014
+ }], ctorParameters: () => [{ type: i1$4.Router }, { type: i1$4.ActivatedRoute }, { type: undefined, decorators: [{
1006
1015
  type: Inject,
1007
1016
  args: [ROUTE_SERVICE_OPTIONS]
1008
1017
  }, {
1009
1018
  type: Optional
1010
- }] }]; } });
1019
+ }] }] });
1011
1020
 
1012
1021
  class AnalyticsService {
1013
1022
  config;
@@ -1082,15 +1091,15 @@ class AnalyticsService {
1082
1091
  if (this.options.provider === 'matomo')
1083
1092
  this.paq.push(['trackEvent', category, action, parameters]);
1084
1093
  }
1085
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnalyticsService, deps: [{ token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
1086
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnalyticsService, providedIn: 'root' });
1094
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AnalyticsService, deps: [{ token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
1095
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AnalyticsService, providedIn: 'root' });
1087
1096
  }
1088
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnalyticsService, decorators: [{
1097
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: AnalyticsService, decorators: [{
1089
1098
  type: Injectable,
1090
1099
  args: [{
1091
1100
  providedIn: 'root'
1092
1101
  }]
1093
- }], ctorParameters: function () { return [{ type: ConfigService }]; } });
1102
+ }], ctorParameters: () => [{ type: ConfigService }] });
1094
1103
 
1095
1104
  var Media;
1096
1105
  (function (Media) {
@@ -1170,17 +1179,19 @@ class MediaService {
1170
1179
  const media = this.getMedia();
1171
1180
  return media === 'desktop';
1172
1181
  }
1173
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MediaService, deps: [{ token: i1$5.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable });
1174
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MediaService, providedIn: 'root' });
1182
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: MediaService, deps: [{ token: i1$5.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable });
1183
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: MediaService, providedIn: 'root' });
1175
1184
  }
1176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MediaService, decorators: [{
1185
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: MediaService, decorators: [{
1177
1186
  type: Injectable,
1178
1187
  args: [{
1179
1188
  providedIn: 'root'
1180
1189
  }]
1181
- }], ctorParameters: function () { return [{ type: i1$5.BreakpointObserver }]; } });
1190
+ }], ctorParameters: () => [{ type: i1$5.BreakpointObserver }] });
1182
1191
 
1183
- const isTracingEnabled = (options) => options.enableTracing || !!options.tracesSampleRate || !!options.tracesSampler;
1192
+ const isTracingEnabled = (options) => options.enableTracing ||
1193
+ !!options.tracesSampleRate ||
1194
+ !!options.tracesSampler;
1184
1195
  const identifySentryUser = (user) => {
1185
1196
  setUser(user
1186
1197
  ? {
@@ -1355,15 +1366,15 @@ class StorageService extends BaseStorage {
1355
1366
  super(config);
1356
1367
  this.config = config;
1357
1368
  }
1358
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StorageService, deps: [{ token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
1359
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StorageService, providedIn: 'root' });
1369
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: StorageService, deps: [{ token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
1370
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: StorageService, providedIn: 'root' });
1360
1371
  }
1361
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StorageService, decorators: [{
1372
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: StorageService, decorators: [{
1362
1373
  type: Injectable,
1363
1374
  args: [{
1364
1375
  providedIn: 'root'
1365
1376
  }]
1366
- }], ctorParameters: function () { return [{ type: ConfigService }]; } });
1377
+ }], ctorParameters: () => [{ type: ConfigService }] });
1367
1378
 
1368
1379
  function getNumber(v, endposition, length) {
1369
1380
  /* tslint:disable:no-bitwise*/
@@ -1494,15 +1505,15 @@ class CompressionService {
1494
1505
  return out;
1495
1506
  /* tslint:enable:no-bitwise*/
1496
1507
  }
1497
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CompressionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1498
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CompressionService, providedIn: 'root' });
1508
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CompressionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1509
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CompressionService, providedIn: 'root' });
1499
1510
  }
1500
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CompressionService, decorators: [{
1511
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: CompressionService, decorators: [{
1501
1512
  type: Injectable,
1502
1513
  args: [{
1503
1514
  providedIn: 'root'
1504
1515
  }]
1505
- }], ctorParameters: function () { return []; } });
1516
+ }], ctorParameters: () => [] });
1506
1517
 
1507
1518
  class NetworkService {
1508
1519
  messageService;
@@ -1554,15 +1565,15 @@ class NetworkService {
1554
1565
  ? this.stateChangeEventEmitter.pipe(debounceTime(300), startWith(this.state))
1555
1566
  : this.stateChangeEventEmitter.pipe(debounceTime(300));
1556
1567
  }
1557
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NetworkService, deps: [{ token: MessageService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
1558
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NetworkService, providedIn: 'root' });
1568
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: NetworkService, deps: [{ token: MessageService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
1569
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: NetworkService, providedIn: 'root' });
1559
1570
  }
1560
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NetworkService, decorators: [{
1571
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: NetworkService, decorators: [{
1561
1572
  type: Injectable,
1562
1573
  args: [{
1563
1574
  providedIn: 'root'
1564
1575
  }]
1565
- }], ctorParameters: function () { return [{ type: MessageService }, { type: i0.Injector }]; } });
1576
+ }], ctorParameters: () => [{ type: MessageService }, { type: i0.Injector }] });
1566
1577
 
1567
1578
  class RegexService {
1568
1579
  config;
@@ -1580,15 +1591,15 @@ class RegexService {
1580
1591
  }
1581
1592
  return;
1582
1593
  }
1583
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RegexService, deps: [{ token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
1584
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RegexService, providedIn: 'root' });
1594
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: RegexService, deps: [{ token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
1595
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: RegexService, providedIn: 'root' });
1585
1596
  }
1586
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RegexService, decorators: [{
1597
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.2.1", ngImport: i0, type: RegexService, decorators: [{
1587
1598
  type: Injectable,
1588
1599
  args: [{
1589
1600
  providedIn: 'root'
1590
1601
  }]
1591
- }], ctorParameters: function () { return [{ type: ConfigService }]; } });
1602
+ }], ctorParameters: () => [{ type: ConfigService }] });
1592
1603
 
1593
1604
  /*
1594
1605
  * Public API Surface of core
@@ -1598,5 +1609,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
1598
1609
  * Generated bundle index. Do not edit.
1599
1610
  */
1600
1611
 
1601
- export { ActivityInterceptor, ActivityService, AnalyticsService, BaseStorage, CONFIG_OPTIONS, CompressionService, ConfigService, ErrorInterceptor, IgoActivityModule, IgoConfigModule, IgoCoreModule, IgoErrorModule, IgoGestureConfig, IgoGestureModule, IgoLanguageModule, IgoLoggingModule, IgoMessageModule, IgoMissingTranslationHandler, LanguageLoader, LanguageService, LoggingInterceptor, MONITORING_OPTIONS, Media, MediaOrientation, MediaService, MessageService, MessageType, NetworkService, ROUTE_SERVICE_OPTIONS, RegexService, RouteService, StorageScope, StorageService, StorageServiceEventEnum, configFactory, defaultLanguageLoader, identifySentryUser, isTracingEnabled, provideConfigLoader, provideConfigOptions, provideDefaultLanguageLoader, provideLanguageLoader, provideMonitoring, provideRouteServiceOptions, provideSentryMonitoring, version };
1612
+ export { ActivityInterceptor, ActivityService, AnalyticsService, BaseStorage, CONFIG_OPTIONS, CompressionService, ConfigService, DEFAULT_LANGUAGE_LOADER, ErrorInterceptor, IgoActivityModule, IgoConfigModule, IgoCoreModule, IgoErrorModule, IgoGestureConfig, IgoGestureModule, IgoLanguageModule, IgoLoggingModule, IgoMessageModule, IgoMissingTranslationHandler, LanguageLoader, LanguageLoaderBase, LanguageService, LoggingInterceptor, MONITORING_OPTIONS, Media, MediaOrientation, MediaService, MessageService, MessageType, NetworkService, ROUTE_SERVICE_OPTIONS, RegexService, RouteService, StorageScope, StorageService, StorageServiceEventEnum, configFactory, identifySentryUser, isTracingEnabled, provideConfigLoader, provideConfigOptions, provideMockRootTranslation, provideMonitoring, provideRootTranslation, provideRouteServiceOptions, provideSentryMonitoring, setTranslationConfig, version };
1602
1613
  //# sourceMappingURL=igo2-core.mjs.map