@igo2/core 16.0.2 → 16.1.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.
- package/esm2022/lib/activity/activity.interceptor.mjs +6 -6
- package/esm2022/lib/activity/activity.module.mjs +12 -12
- package/esm2022/lib/activity/activity.service.mjs +9 -9
- package/esm2022/lib/analytics/shared/analytics.interface.mjs +1 -1
- package/esm2022/lib/analytics/shared/analytics.service.mjs +12 -9
- package/esm2022/lib/compression/compression.service.mjs +9 -9
- package/esm2022/lib/config/config.module.mjs +12 -12
- package/esm2022/lib/config/config.service.mjs +14 -10
- package/esm2022/lib/config/version.mjs +3 -3
- package/esm2022/lib/core.module.mjs +32 -33
- package/esm2022/lib/environment/environment.interface.mjs +1 -1
- package/esm2022/lib/gesture/gesture.module.mjs +12 -13
- package/esm2022/lib/gesture/gesture.provider.mjs +6 -6
- package/esm2022/lib/language/language.module.mjs +19 -20
- package/esm2022/lib/language/shared/language.service.mjs +9 -9
- package/esm2022/lib/media/media.service.mjs +9 -9
- package/esm2022/lib/message/message.module.mjs +30 -31
- package/esm2022/lib/message/shared/message.service.mjs +12 -12
- package/esm2022/lib/monitoring/index.mjs +4 -0
- package/esm2022/lib/monitoring/monitoring.provider.mjs +20 -0
- package/esm2022/lib/monitoring/sentry/index.mjs +4 -0
- package/esm2022/lib/monitoring/sentry/sentry.interface.mjs +2 -0
- package/esm2022/lib/monitoring/sentry/sentry.mjs +29 -0
- package/esm2022/lib/monitoring/sentry/sentry.provider.mjs +31 -0
- package/esm2022/lib/monitoring/sentry/sentry.utils.mjs +12 -0
- package/esm2022/lib/monitoring/shared/any-monitoring.interface.mjs +2 -0
- package/esm2022/lib/monitoring/shared/index.mjs +3 -0
- package/esm2022/lib/monitoring/shared/monitoring.interface.mjs +2 -0
- package/esm2022/lib/network/network.service.mjs +9 -9
- package/esm2022/lib/regex/regex.service.mjs +9 -9
- package/esm2022/lib/request/error.interceptor.mjs +9 -9
- package/esm2022/lib/request/error.module.mjs +16 -16
- package/esm2022/lib/request/logging.interceptor.mjs +6 -6
- package/esm2022/lib/request/logging.module.mjs +12 -12
- package/esm2022/lib/route/route.service.mjs +14 -14
- package/esm2022/lib/storage/storage.service.mjs +9 -9
- package/esm2022/lib/user/index.mjs +2 -0
- package/esm2022/lib/user/user.interface.mjs +2 -0
- package/esm2022/public_api.mjs +3 -1
- package/fesm2022/igo2-core.mjs +351 -264
- package/fesm2022/igo2-core.mjs.map +1 -1
- package/lib/analytics/shared/analytics.interface.d.ts +4 -0
- package/lib/analytics/shared/analytics.service.d.ts +5 -6
- package/lib/config/config.service.d.ts +2 -0
- package/lib/environment/environment.interface.d.ts +2 -0
- package/lib/monitoring/index.d.ts +3 -0
- package/lib/monitoring/monitoring.provider.d.ts +4 -0
- package/lib/monitoring/sentry/index.d.ts +3 -0
- package/lib/monitoring/sentry/sentry.d.ts +4 -0
- package/lib/monitoring/sentry/sentry.interface.d.ts +7 -0
- package/lib/monitoring/sentry/sentry.provider.d.ts +3 -0
- package/lib/monitoring/sentry/sentry.utils.d.ts +4 -0
- package/lib/monitoring/shared/any-monitoring.interface.d.ts +2 -0
- package/lib/monitoring/shared/index.d.ts +2 -0
- package/lib/monitoring/shared/monitoring.interface.d.ts +7 -0
- package/lib/user/index.d.ts +1 -0
- package/lib/user/user.interface.d.ts +6 -0
- package/locale/en.json +1 -1
- package/locale/fr.json +1 -1
- package/package.json +14 -15
- package/public_api.d.ts +2 -0
- package/{_index.scss → src/index.scss} +0 -2
- package/{theming → src/theming}/prebuilt-themes/blue-theme.scss +4 -11
- package/{theming → src/theming}/prebuilt-themes/bluedark-theme.scss +4 -11
- package/{theming → src/theming}/prebuilt-themes/bluedq-theme.scss +4 -10
- package/{theming → src/theming}/prebuilt-themes/bluegrey-theme.scss +4 -3
- package/{theming → src/theming}/prebuilt-themes/dark-theme.scss +4 -3
- package/{theming → src/theming}/prebuilt-themes/deeppurple-theme.scss +4 -3
- package/{theming → src/theming}/prebuilt-themes/indigo-theme.scss +4 -3
- package/{theming → src/theming}/prebuilt-themes/orange-theme.scss +4 -3
- package/{theming → src/theming}/prebuilt-themes/qcca-theme.scss +3 -1
- package/{theming → src/theming}/prebuilt-themes/teal-theme.scss +4 -3
- package/theming/prebuilt-themes/blue-theme.css +12 -3
- package/theming/prebuilt-themes/bluedark-theme.css +12 -3
- package/theming/prebuilt-themes/bluedq-theme.css +12 -3
- package/theming/prebuilt-themes/bluegrey-theme.css +9 -0
- package/theming/prebuilt-themes/dark-theme.css +9 -0
- package/theming/prebuilt-themes/deeppurple-theme.css +9 -0
- package/theming/prebuilt-themes/indigo-theme.css +9 -0
- package/theming/prebuilt-themes/orange-theme.css +9 -0
- package/theming/prebuilt-themes/qcca-theme.css +9 -0
- package/theming/prebuilt-themes/teal-theme.css +9 -0
- /package/{core-theme.scss → src/core-theme.scss} +0 -0
- /package/{lib → src/lib}/message/message.theming.scss +0 -0
- /package/{style → src/style}/all-style.scss +0 -0
- /package/{style → src/style}/layout.scss +0 -0
- /package/{style → src/style}/partial/core-utils.scss +0 -0
- /package/{style → src/style}/partial/core.variables.scss +0 -0
- /package/{style → src/style}/partial/media.scss +0 -0
- /package/{style → src/style}/style.scss +0 -0
- /package/{theming → src/theming}/all-theme.scss +0 -0
- /package/{theming → src/theming}/material-theme-override.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/_index.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/base/_index.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/base/breakpoints.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/base/colors.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/base/palette.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/base/typography/_index.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/base/typography/typography.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/base/typography/typography.utils.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/components/_index.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/components/_index.theme.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/components/button.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/components/dialog.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/components/form-field.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/components/input.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/components/list.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/components/panel.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/components/scrollbar.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/components/search-bar.scss +0 -0
- /package/{theming → src/theming}/prebuilt-themes/qcca/components/search-bar.theme.scss +0 -0
- /package/{theming → src/theming}/typography.scss +0 -0
- /package/{theming → src/theming}/utils/_foreground.scss +0 -0
package/fesm2022/igo2-core.mjs
CHANGED
|
@@ -2,7 +2,7 @@ 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, EventEmitter } from '@angular/core';
|
|
5
|
+
import { Injectable, NgModule, InjectionToken, APP_INITIALIZER, 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';
|
|
@@ -16,8 +16,10 @@ import { TranslateLoader, TranslateModule, MissingTranslationHandler } from '@ng
|
|
|
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';
|
|
19
|
+
import { Router } from '@angular/router';
|
|
19
20
|
import * as i1$5 from '@angular/cdk/layout';
|
|
20
21
|
import { Breakpoints } from '@angular/cdk/layout';
|
|
22
|
+
import { setUser, createErrorHandler, getCurrentHub, BrowserTracing, instrumentAngularRouting, Replay, init, TraceService } from '@sentry/angular-ivy';
|
|
21
23
|
|
|
22
24
|
class ActivityService {
|
|
23
25
|
counter$ = new BehaviorSubject(0);
|
|
@@ -37,15 +39,15 @@ class ActivityService {
|
|
|
37
39
|
this.ids.splice(index, 1);
|
|
38
40
|
this.counter$.next(this.ids.length);
|
|
39
41
|
}
|
|
40
|
-
static ɵfac =
|
|
41
|
-
static ɵprov =
|
|
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
44
|
}
|
|
43
|
-
(
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
45
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityService, decorators: [{
|
|
46
|
+
type: Injectable,
|
|
47
|
+
args: [{
|
|
48
|
+
providedIn: 'root'
|
|
49
|
+
}]
|
|
50
|
+
}], ctorParameters: function () { return []; } });
|
|
49
51
|
|
|
50
52
|
class ActivityInterceptor {
|
|
51
53
|
activityService;
|
|
@@ -67,12 +69,12 @@ class ActivityInterceptor {
|
|
|
67
69
|
this.activityService.unregister(id);
|
|
68
70
|
}));
|
|
69
71
|
}
|
|
70
|
-
static ɵfac =
|
|
71
|
-
static ɵprov =
|
|
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
74
|
}
|
|
73
|
-
(
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityInterceptor, decorators: [{
|
|
76
|
+
type: Injectable
|
|
77
|
+
}], ctorParameters: function () { return [{ type: ActivityService }]; } });
|
|
76
78
|
|
|
77
79
|
class IgoActivityModule {
|
|
78
80
|
static forRoot() {
|
|
@@ -87,18 +89,18 @@ class IgoActivityModule {
|
|
|
87
89
|
]
|
|
88
90
|
};
|
|
89
91
|
}
|
|
90
|
-
static ɵfac =
|
|
91
|
-
static ɵmod =
|
|
92
|
-
static ɵinj =
|
|
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 });
|
|
93
95
|
}
|
|
94
|
-
(
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoActivityModule, decorators: [{
|
|
97
|
+
type: NgModule,
|
|
98
|
+
args: [{
|
|
99
|
+
imports: [],
|
|
100
|
+
declarations: [],
|
|
101
|
+
exports: []
|
|
102
|
+
}]
|
|
103
|
+
}] });
|
|
102
104
|
|
|
103
105
|
const CONFIG_DEPRECATED = {
|
|
104
106
|
showMenuButton: {
|
|
@@ -128,14 +130,16 @@ const ALTERNATE_CONFIG_FROM_DEPRECATION = new Map(Object.entries(CONFIG_DEPRECAT
|
|
|
128
130
|
]));
|
|
129
131
|
|
|
130
132
|
const version = {
|
|
131
|
-
lib: '16.0
|
|
132
|
-
releaseDate:
|
|
133
|
+
lib: '16.1.0',
|
|
134
|
+
releaseDate: 1702401568243
|
|
133
135
|
};
|
|
134
136
|
|
|
135
137
|
class ConfigService {
|
|
136
138
|
config;
|
|
137
139
|
httpClient;
|
|
138
140
|
configDeprecated = new Map(Object.entries(CONFIG_DEPRECATED));
|
|
141
|
+
_isLoaded$ = new BehaviorSubject(null);
|
|
142
|
+
isLoaded$ = this._isLoaded$.asObservable();
|
|
139
143
|
constructor(handler) {
|
|
140
144
|
this.httpClient = new HttpClient(handler);
|
|
141
145
|
}
|
|
@@ -190,6 +194,7 @@ class ConfigService {
|
|
|
190
194
|
const baseConfig = options.default;
|
|
191
195
|
if (!options.path) {
|
|
192
196
|
this.config = baseConfig;
|
|
197
|
+
this._isLoaded$.next(true);
|
|
193
198
|
return true;
|
|
194
199
|
}
|
|
195
200
|
return new Promise((resolve, _reject) => {
|
|
@@ -202,19 +207,20 @@ class ConfigService {
|
|
|
202
207
|
}))
|
|
203
208
|
.subscribe((configResponse) => {
|
|
204
209
|
this.config = ObjectUtils.mergeDeep(ObjectUtils.mergeDeep({ version }, baseConfig), configResponse);
|
|
210
|
+
this._isLoaded$.next(true);
|
|
205
211
|
resolve(true);
|
|
206
212
|
});
|
|
207
213
|
});
|
|
208
214
|
}
|
|
209
|
-
static ɵfac =
|
|
210
|
-
static ɵprov =
|
|
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' });
|
|
211
217
|
}
|
|
212
|
-
(
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigService, decorators: [{
|
|
219
|
+
type: Injectable,
|
|
220
|
+
args: [{
|
|
221
|
+
providedIn: 'root'
|
|
222
|
+
}]
|
|
223
|
+
}], ctorParameters: function () { return [{ type: i1.HttpBackend }]; } });
|
|
218
224
|
|
|
219
225
|
let CONFIG_OPTIONS = new InjectionToken('configOptions');
|
|
220
226
|
function provideConfigOptions(options) {
|
|
@@ -242,18 +248,18 @@ class IgoConfigModule {
|
|
|
242
248
|
providers: [provideConfigOptions({}), provideConfigLoader()]
|
|
243
249
|
};
|
|
244
250
|
}
|
|
245
|
-
static ɵfac =
|
|
246
|
-
static ɵmod =
|
|
247
|
-
static ɵinj =
|
|
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 });
|
|
248
254
|
}
|
|
249
|
-
(
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
255
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoConfigModule, decorators: [{
|
|
256
|
+
type: NgModule,
|
|
257
|
+
args: [{
|
|
258
|
+
imports: [],
|
|
259
|
+
declarations: [],
|
|
260
|
+
exports: []
|
|
261
|
+
}]
|
|
262
|
+
}] });
|
|
257
263
|
|
|
258
264
|
class LanguageLoader {
|
|
259
265
|
prefix;
|
|
@@ -324,31 +330,30 @@ class IgoLanguageModule {
|
|
|
324
330
|
providers: [provideDefaultLanguageLoader()]
|
|
325
331
|
};
|
|
326
332
|
}
|
|
327
|
-
static ɵfac =
|
|
328
|
-
static ɵmod =
|
|
329
|
-
static ɵinj =
|
|
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({
|
|
330
336
|
missingTranslationHandler: {
|
|
331
337
|
provide: MissingTranslationHandler,
|
|
332
338
|
useClass: IgoMissingTranslationHandler
|
|
333
339
|
}
|
|
334
340
|
}), TranslateModule] });
|
|
335
341
|
}
|
|
336
|
-
(
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoLanguageModule, { imports: [i1$1.TranslateModule], exports: [TranslateModule] }); })();
|
|
342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLanguageModule, decorators: [{
|
|
343
|
+
type: NgModule,
|
|
344
|
+
args: [{
|
|
345
|
+
imports: [
|
|
346
|
+
TranslateModule.forRoot({
|
|
347
|
+
missingTranslationHandler: {
|
|
348
|
+
provide: MissingTranslationHandler,
|
|
349
|
+
useClass: IgoMissingTranslationHandler
|
|
350
|
+
}
|
|
351
|
+
})
|
|
352
|
+
],
|
|
353
|
+
declarations: [],
|
|
354
|
+
exports: [TranslateModule]
|
|
355
|
+
}]
|
|
356
|
+
}] });
|
|
352
357
|
|
|
353
358
|
class IgoMessageModule {
|
|
354
359
|
static forRoot() {
|
|
@@ -357,9 +362,9 @@ class IgoMessageModule {
|
|
|
357
362
|
providers: []
|
|
358
363
|
};
|
|
359
364
|
}
|
|
360
|
-
static ɵfac =
|
|
361
|
-
static ɵmod =
|
|
362
|
-
static ɵinj =
|
|
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,
|
|
363
368
|
ToastrModule.forRoot({
|
|
364
369
|
positionClass: 'toast-bottom-right',
|
|
365
370
|
timeOut: 10000,
|
|
@@ -377,33 +382,32 @@ class IgoMessageModule {
|
|
|
377
382
|
includeTitleDuplicates: true
|
|
378
383
|
})] });
|
|
379
384
|
}
|
|
380
|
-
(
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoMessageModule, { imports: [CommonModule, i1$2.ToastrModule] }); })();
|
|
385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoMessageModule, decorators: [{
|
|
386
|
+
type: NgModule,
|
|
387
|
+
args: [{
|
|
388
|
+
imports: [
|
|
389
|
+
CommonModule,
|
|
390
|
+
ToastrModule.forRoot({
|
|
391
|
+
positionClass: 'toast-bottom-right',
|
|
392
|
+
timeOut: 10000,
|
|
393
|
+
extendedTimeOut: 10000,
|
|
394
|
+
titleClass: 'mat-subtitle-2',
|
|
395
|
+
messageClass: 'toast-message',
|
|
396
|
+
closeButton: true,
|
|
397
|
+
progressBar: true,
|
|
398
|
+
enableHtml: true,
|
|
399
|
+
tapToDismiss: true,
|
|
400
|
+
maxOpened: 4,
|
|
401
|
+
preventDuplicates: true,
|
|
402
|
+
resetTimeoutOnDuplicate: true,
|
|
403
|
+
countDuplicates: false,
|
|
404
|
+
includeTitleDuplicates: true
|
|
405
|
+
})
|
|
406
|
+
],
|
|
407
|
+
declarations: [],
|
|
408
|
+
exports: []
|
|
409
|
+
}]
|
|
410
|
+
}] });
|
|
407
411
|
|
|
408
412
|
class LanguageService {
|
|
409
413
|
translate;
|
|
@@ -428,15 +432,15 @@ class LanguageService {
|
|
|
428
432
|
this.language$.next(this.language);
|
|
429
433
|
});
|
|
430
434
|
}
|
|
431
|
-
static ɵfac =
|
|
432
|
-
static ɵprov =
|
|
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' });
|
|
433
437
|
}
|
|
434
|
-
(
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
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 }]; } });
|
|
440
444
|
|
|
441
445
|
var MessageType;
|
|
442
446
|
(function (MessageType) {
|
|
@@ -649,18 +653,18 @@ class MessageService {
|
|
|
649
653
|
message.title = undefined;
|
|
650
654
|
return message;
|
|
651
655
|
}
|
|
652
|
-
static ɵfac =
|
|
653
|
-
static ɵprov =
|
|
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' });
|
|
654
658
|
}
|
|
655
|
-
(
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
659
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageService, decorators: [{
|
|
660
|
+
type: Injectable,
|
|
661
|
+
args: [{
|
|
662
|
+
providedIn: 'root'
|
|
663
|
+
}]
|
|
664
|
+
}], ctorParameters: function () { return [{ type: i0.Injector, decorators: [{
|
|
665
|
+
type: Inject,
|
|
666
|
+
args: [Injector]
|
|
667
|
+
}] }, { type: ConfigService }, { type: LanguageService }]; } });
|
|
664
668
|
|
|
665
669
|
class ErrorInterceptor {
|
|
666
670
|
messageService;
|
|
@@ -717,15 +721,15 @@ class ErrorInterceptor {
|
|
|
717
721
|
progressBar: false
|
|
718
722
|
});
|
|
719
723
|
}
|
|
720
|
-
static ɵfac =
|
|
721
|
-
static ɵprov =
|
|
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' });
|
|
722
726
|
}
|
|
723
|
-
(
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
727
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorInterceptor, decorators: [{
|
|
728
|
+
type: Injectable,
|
|
729
|
+
args: [{
|
|
730
|
+
providedIn: 'root'
|
|
731
|
+
}]
|
|
732
|
+
}], ctorParameters: function () { return [{ type: MessageService }]; } });
|
|
729
733
|
|
|
730
734
|
class IgoErrorModule {
|
|
731
735
|
static forRoot() {
|
|
@@ -745,22 +749,22 @@ class IgoErrorModule {
|
|
|
745
749
|
throw new Error('IgoErrorModule is already loaded. Import it in the AppModule only');
|
|
746
750
|
}
|
|
747
751
|
}
|
|
748
|
-
static ɵfac =
|
|
749
|
-
static ɵmod =
|
|
750
|
-
static ɵinj =
|
|
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 });
|
|
751
755
|
}
|
|
752
|
-
(
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
756
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoErrorModule, decorators: [{
|
|
757
|
+
type: NgModule,
|
|
758
|
+
args: [{
|
|
759
|
+
imports: [],
|
|
760
|
+
declarations: [],
|
|
761
|
+
exports: []
|
|
762
|
+
}]
|
|
763
|
+
}], ctorParameters: function () { return [{ type: IgoErrorModule, decorators: [{
|
|
764
|
+
type: Optional
|
|
765
|
+
}, {
|
|
766
|
+
type: SkipSelf
|
|
767
|
+
}] }]; } });
|
|
764
768
|
|
|
765
769
|
const dbConfig = {
|
|
766
770
|
name: 'igo2DB',
|
|
@@ -801,9 +805,14 @@ class IgoCoreModule {
|
|
|
801
805
|
constructor(matIconRegistry, domSanitizer) {
|
|
802
806
|
matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl('./assets/igo2/core/icons/mdi.svg'));
|
|
803
807
|
}
|
|
804
|
-
static ɵfac =
|
|
805
|
-
static ɵmod =
|
|
806
|
-
|
|
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,
|
|
811
|
+
IgoConfigModule,
|
|
812
|
+
IgoErrorModule,
|
|
813
|
+
IgoLanguageModule,
|
|
814
|
+
IgoMessageModule] });
|
|
815
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoCoreModule, imports: [CommonModule,
|
|
807
816
|
HttpClientModule,
|
|
808
817
|
IgoActivityModule.forRoot(),
|
|
809
818
|
IgoConfigModule.forRoot(),
|
|
@@ -816,35 +825,29 @@ class IgoCoreModule {
|
|
|
816
825
|
IgoLanguageModule,
|
|
817
826
|
IgoMessageModule] });
|
|
818
827
|
}
|
|
819
|
-
(
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoCoreModule, { imports: [CommonModule,
|
|
843
|
-
HttpClientModule, IgoActivityModule, IgoConfigModule, IgoErrorModule, IgoLanguageModule, IgoMessageModule, i8.NgxIndexedDBModule], exports: [IgoActivityModule,
|
|
844
|
-
IgoConfigModule,
|
|
845
|
-
IgoErrorModule,
|
|
846
|
-
IgoLanguageModule,
|
|
847
|
-
IgoMessageModule] }); })();
|
|
828
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoCoreModule, decorators: [{
|
|
829
|
+
type: NgModule,
|
|
830
|
+
args: [{
|
|
831
|
+
imports: [
|
|
832
|
+
CommonModule,
|
|
833
|
+
HttpClientModule,
|
|
834
|
+
IgoActivityModule.forRoot(),
|
|
835
|
+
IgoConfigModule.forRoot(),
|
|
836
|
+
IgoErrorModule.forRoot(),
|
|
837
|
+
IgoLanguageModule.forRoot(),
|
|
838
|
+
IgoMessageModule.forRoot(),
|
|
839
|
+
NgxIndexedDBModule.forRoot(dbConfig)
|
|
840
|
+
],
|
|
841
|
+
declarations: [],
|
|
842
|
+
exports: [
|
|
843
|
+
IgoActivityModule,
|
|
844
|
+
IgoConfigModule,
|
|
845
|
+
IgoErrorModule,
|
|
846
|
+
IgoLanguageModule,
|
|
847
|
+
IgoMessageModule
|
|
848
|
+
]
|
|
849
|
+
}]
|
|
850
|
+
}], ctorParameters: function () { return [{ type: i1$3.MatIconRegistry }, { type: i2.DomSanitizer }]; } });
|
|
848
851
|
|
|
849
852
|
class IgoGestureConfig extends HammerGestureConfig {
|
|
850
853
|
buildHammer(element) {
|
|
@@ -852,12 +855,12 @@ class IgoGestureConfig extends HammerGestureConfig {
|
|
|
852
855
|
mc.set({ touchAction: 'pan-y' });
|
|
853
856
|
return mc;
|
|
854
857
|
}
|
|
855
|
-
static ɵfac =
|
|
856
|
-
static ɵprov =
|
|
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 });
|
|
857
860
|
}
|
|
858
|
-
(
|
|
859
|
-
|
|
860
|
-
|
|
861
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureConfig, decorators: [{
|
|
862
|
+
type: Injectable
|
|
863
|
+
}] });
|
|
861
864
|
|
|
862
865
|
class IgoGestureModule {
|
|
863
866
|
static forRoot() {
|
|
@@ -871,19 +874,18 @@ class IgoGestureModule {
|
|
|
871
874
|
]
|
|
872
875
|
};
|
|
873
876
|
}
|
|
874
|
-
static ɵfac =
|
|
875
|
-
static ɵmod =
|
|
876
|
-
static ɵinj =
|
|
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] });
|
|
877
880
|
}
|
|
878
|
-
(
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoGestureModule, { imports: [HammerModule] }); })();
|
|
881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureModule, decorators: [{
|
|
882
|
+
type: NgModule,
|
|
883
|
+
args: [{
|
|
884
|
+
imports: [HammerModule],
|
|
885
|
+
declarations: [],
|
|
886
|
+
exports: []
|
|
887
|
+
}]
|
|
888
|
+
}] });
|
|
887
889
|
|
|
888
890
|
class LoggingInterceptor {
|
|
889
891
|
intercept(req, next) {
|
|
@@ -903,12 +905,12 @@ class LoggingInterceptor {
|
|
|
903
905
|
console.log(msg);
|
|
904
906
|
}));
|
|
905
907
|
}
|
|
906
|
-
static ɵfac =
|
|
907
|
-
static ɵprov =
|
|
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 });
|
|
908
910
|
}
|
|
909
|
-
(
|
|
910
|
-
|
|
911
|
-
|
|
911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggingInterceptor, decorators: [{
|
|
912
|
+
type: Injectable
|
|
913
|
+
}] });
|
|
912
914
|
|
|
913
915
|
class IgoLoggingModule {
|
|
914
916
|
static forRoot() {
|
|
@@ -923,18 +925,18 @@ class IgoLoggingModule {
|
|
|
923
925
|
]
|
|
924
926
|
};
|
|
925
927
|
}
|
|
926
|
-
static ɵfac =
|
|
927
|
-
static ɵmod =
|
|
928
|
-
static ɵinj =
|
|
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 });
|
|
929
931
|
}
|
|
930
|
-
(
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLoggingModule, decorators: [{
|
|
933
|
+
type: NgModule,
|
|
934
|
+
args: [{
|
|
935
|
+
imports: [],
|
|
936
|
+
declarations: [],
|
|
937
|
+
exports: []
|
|
938
|
+
}]
|
|
939
|
+
}] });
|
|
938
940
|
|
|
939
941
|
let ROUTE_SERVICE_OPTIONS = new InjectionToken('routeServiceOptions');
|
|
940
942
|
function provideRouteServiceOptions(options) {
|
|
@@ -992,20 +994,20 @@ class RouteService {
|
|
|
992
994
|
}
|
|
993
995
|
return this.route.queryParams;
|
|
994
996
|
}
|
|
995
|
-
static ɵfac =
|
|
996
|
-
static ɵprov =
|
|
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' });
|
|
997
999
|
}
|
|
998
|
-
(
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1000
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouteService, decorators: [{
|
|
1001
|
+
type: Injectable,
|
|
1002
|
+
args: [{
|
|
1003
|
+
providedIn: 'root'
|
|
1004
|
+
}]
|
|
1005
|
+
}], ctorParameters: function () { return [{ type: i1$4.Router }, { type: i1$4.ActivatedRoute }, { type: undefined, decorators: [{
|
|
1006
|
+
type: Inject,
|
|
1007
|
+
args: [ROUTE_SERVICE_OPTIONS]
|
|
1008
|
+
}, {
|
|
1009
|
+
type: Optional
|
|
1010
|
+
}] }]; } });
|
|
1009
1011
|
|
|
1010
1012
|
class AnalyticsService {
|
|
1011
1013
|
config;
|
|
@@ -1041,6 +1043,9 @@ class AnalyticsService {
|
|
|
1041
1043
|
s.parentNode.insertBefore(g, s);
|
|
1042
1044
|
})();
|
|
1043
1045
|
}
|
|
1046
|
+
/**
|
|
1047
|
+
* Pass `null` to unset the user.
|
|
1048
|
+
*/
|
|
1044
1049
|
setUser(user, profils) {
|
|
1045
1050
|
if (this.options.provider === 'matomo') {
|
|
1046
1051
|
if (!user) {
|
|
@@ -1077,15 +1082,15 @@ class AnalyticsService {
|
|
|
1077
1082
|
if (this.options.provider === 'matomo')
|
|
1078
1083
|
this.paq.push(['trackEvent', category, action, parameters]);
|
|
1079
1084
|
}
|
|
1080
|
-
static ɵfac =
|
|
1081
|
-
static ɵprov =
|
|
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' });
|
|
1082
1087
|
}
|
|
1083
|
-
(
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1088
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnalyticsService, decorators: [{
|
|
1089
|
+
type: Injectable,
|
|
1090
|
+
args: [{
|
|
1091
|
+
providedIn: 'root'
|
|
1092
|
+
}]
|
|
1093
|
+
}], ctorParameters: function () { return [{ type: ConfigService }]; } });
|
|
1089
1094
|
|
|
1090
1095
|
var Media;
|
|
1091
1096
|
(function (Media) {
|
|
@@ -1165,15 +1170,97 @@ class MediaService {
|
|
|
1165
1170
|
const media = this.getMedia();
|
|
1166
1171
|
return media === 'desktop';
|
|
1167
1172
|
}
|
|
1168
|
-
static ɵfac =
|
|
1169
|
-
static ɵprov =
|
|
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' });
|
|
1175
|
+
}
|
|
1176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MediaService, decorators: [{
|
|
1177
|
+
type: Injectable,
|
|
1178
|
+
args: [{
|
|
1179
|
+
providedIn: 'root'
|
|
1180
|
+
}]
|
|
1181
|
+
}], ctorParameters: function () { return [{ type: i1$5.BreakpointObserver }]; } });
|
|
1182
|
+
|
|
1183
|
+
const isTracingEnabled = (options) => options.enableTracing || !!options.tracesSampleRate || !!options.tracesSampler;
|
|
1184
|
+
const identifySentryUser = (user) => {
|
|
1185
|
+
setUser(user
|
|
1186
|
+
? {
|
|
1187
|
+
id: user.id,
|
|
1188
|
+
username: `${user.firstName} ${user.lastName}`,
|
|
1189
|
+
email: user.email
|
|
1190
|
+
}
|
|
1191
|
+
: null);
|
|
1192
|
+
};
|
|
1193
|
+
|
|
1194
|
+
const createSentryErrorHandler = (options) => {
|
|
1195
|
+
return createErrorHandler({
|
|
1196
|
+
logErrors: options.logErrors,
|
|
1197
|
+
...(options.errorHandlerOptions ?? {})
|
|
1198
|
+
});
|
|
1199
|
+
};
|
|
1200
|
+
const initSentry = (options) => {
|
|
1201
|
+
const client = getCurrentHub().getClient();
|
|
1202
|
+
if (client) {
|
|
1203
|
+
return;
|
|
1204
|
+
}
|
|
1205
|
+
const tracingEnabled = isTracingEnabled(options);
|
|
1206
|
+
const baseConfig = {
|
|
1207
|
+
dsn: options.dsn,
|
|
1208
|
+
environment: options.environment,
|
|
1209
|
+
release: options.release,
|
|
1210
|
+
integrations: [
|
|
1211
|
+
tracingEnabled &&
|
|
1212
|
+
new BrowserTracing({
|
|
1213
|
+
routingInstrumentation: instrumentAngularRouting
|
|
1214
|
+
}),
|
|
1215
|
+
options.enableReplay && new Replay()
|
|
1216
|
+
].filter(Boolean)
|
|
1217
|
+
};
|
|
1218
|
+
init(baseConfig);
|
|
1219
|
+
};
|
|
1220
|
+
|
|
1221
|
+
const provideSentryMonitoring = (options) => {
|
|
1222
|
+
const isEnabled = options.enabled !== undefined ? options.enabled : true;
|
|
1223
|
+
if (!isEnabled) {
|
|
1224
|
+
return [];
|
|
1225
|
+
}
|
|
1226
|
+
initSentry(options);
|
|
1227
|
+
const tracingEnabled = isTracingEnabled(options);
|
|
1228
|
+
return [
|
|
1229
|
+
{
|
|
1230
|
+
provide: ErrorHandler,
|
|
1231
|
+
useFactory: () => createSentryErrorHandler(options)
|
|
1232
|
+
},
|
|
1233
|
+
tracingEnabled && {
|
|
1234
|
+
provide: TraceService,
|
|
1235
|
+
deps: [Router]
|
|
1236
|
+
},
|
|
1237
|
+
// Force instantiate TraceService to avoid require it in any constructor.
|
|
1238
|
+
tracingEnabled && {
|
|
1239
|
+
provide: APP_INITIALIZER,
|
|
1240
|
+
useFactory: () => () => { },
|
|
1241
|
+
deps: [TraceService],
|
|
1242
|
+
multi: true
|
|
1243
|
+
}
|
|
1244
|
+
].filter(Boolean);
|
|
1245
|
+
};
|
|
1246
|
+
|
|
1247
|
+
const MONITORING_OPTIONS = new InjectionToken('monitoring.options');
|
|
1248
|
+
function provideMonitoring(options) {
|
|
1249
|
+
if (!options) {
|
|
1250
|
+
return [];
|
|
1251
|
+
}
|
|
1252
|
+
const providers = [
|
|
1253
|
+
{ provide: MONITORING_OPTIONS, useValue: options }
|
|
1254
|
+
];
|
|
1255
|
+
switch (options.provider) {
|
|
1256
|
+
case 'sentry':
|
|
1257
|
+
providers.push(...provideSentryMonitoring(options));
|
|
1258
|
+
break;
|
|
1259
|
+
default:
|
|
1260
|
+
break;
|
|
1261
|
+
}
|
|
1262
|
+
return providers;
|
|
1170
1263
|
}
|
|
1171
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MediaService, [{
|
|
1172
|
-
type: Injectable,
|
|
1173
|
-
args: [{
|
|
1174
|
-
providedIn: 'root'
|
|
1175
|
-
}]
|
|
1176
|
-
}], function () { return [{ type: i1$5.BreakpointObserver }]; }, null); })();
|
|
1177
1264
|
|
|
1178
1265
|
var StorageScope;
|
|
1179
1266
|
(function (StorageScope) {
|
|
@@ -1268,15 +1355,15 @@ class StorageService extends BaseStorage {
|
|
|
1268
1355
|
super(config);
|
|
1269
1356
|
this.config = config;
|
|
1270
1357
|
}
|
|
1271
|
-
static ɵfac =
|
|
1272
|
-
static ɵprov =
|
|
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' });
|
|
1273
1360
|
}
|
|
1274
|
-
(
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StorageService, decorators: [{
|
|
1362
|
+
type: Injectable,
|
|
1363
|
+
args: [{
|
|
1364
|
+
providedIn: 'root'
|
|
1365
|
+
}]
|
|
1366
|
+
}], ctorParameters: function () { return [{ type: ConfigService }]; } });
|
|
1280
1367
|
|
|
1281
1368
|
function getNumber(v, endposition, length) {
|
|
1282
1369
|
/* tslint:disable:no-bitwise*/
|
|
@@ -1407,15 +1494,15 @@ class CompressionService {
|
|
|
1407
1494
|
return out;
|
|
1408
1495
|
/* tslint:enable:no-bitwise*/
|
|
1409
1496
|
}
|
|
1410
|
-
static ɵfac =
|
|
1411
|
-
static ɵprov =
|
|
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' });
|
|
1412
1499
|
}
|
|
1413
|
-
(
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1500
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CompressionService, decorators: [{
|
|
1501
|
+
type: Injectable,
|
|
1502
|
+
args: [{
|
|
1503
|
+
providedIn: 'root'
|
|
1504
|
+
}]
|
|
1505
|
+
}], ctorParameters: function () { return []; } });
|
|
1419
1506
|
|
|
1420
1507
|
class NetworkService {
|
|
1421
1508
|
messageService;
|
|
@@ -1467,15 +1554,15 @@ class NetworkService {
|
|
|
1467
1554
|
? this.stateChangeEventEmitter.pipe(debounceTime(300), startWith(this.state))
|
|
1468
1555
|
: this.stateChangeEventEmitter.pipe(debounceTime(300));
|
|
1469
1556
|
}
|
|
1470
|
-
static ɵfac =
|
|
1471
|
-
static ɵprov =
|
|
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' });
|
|
1472
1559
|
}
|
|
1473
|
-
(
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1560
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NetworkService, decorators: [{
|
|
1561
|
+
type: Injectable,
|
|
1562
|
+
args: [{
|
|
1563
|
+
providedIn: 'root'
|
|
1564
|
+
}]
|
|
1565
|
+
}], ctorParameters: function () { return [{ type: MessageService }, { type: i0.Injector }]; } });
|
|
1479
1566
|
|
|
1480
1567
|
class RegexService {
|
|
1481
1568
|
config;
|
|
@@ -1493,15 +1580,15 @@ class RegexService {
|
|
|
1493
1580
|
}
|
|
1494
1581
|
return;
|
|
1495
1582
|
}
|
|
1496
|
-
static ɵfac =
|
|
1497
|
-
static ɵprov =
|
|
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' });
|
|
1498
1585
|
}
|
|
1499
|
-
(
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1586
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RegexService, decorators: [{
|
|
1587
|
+
type: Injectable,
|
|
1588
|
+
args: [{
|
|
1589
|
+
providedIn: 'root'
|
|
1590
|
+
}]
|
|
1591
|
+
}], ctorParameters: function () { return [{ type: ConfigService }]; } });
|
|
1505
1592
|
|
|
1506
1593
|
/*
|
|
1507
1594
|
* Public API Surface of core
|
|
@@ -1511,5 +1598,5 @@ class RegexService {
|
|
|
1511
1598
|
* Generated bundle index. Do not edit.
|
|
1512
1599
|
*/
|
|
1513
1600
|
|
|
1514
|
-
export { ActivityInterceptor, ActivityService, AnalyticsService, BaseStorage, CONFIG_OPTIONS, CompressionService, ConfigService, ErrorInterceptor, IgoActivityModule, IgoConfigModule, IgoCoreModule, IgoErrorModule, IgoGestureConfig, IgoGestureModule, IgoLanguageModule, IgoLoggingModule, IgoMessageModule, IgoMissingTranslationHandler, LanguageLoader, LanguageService, LoggingInterceptor, Media, MediaOrientation, MediaService, MessageService, MessageType, NetworkService, ROUTE_SERVICE_OPTIONS, RegexService, RouteService, StorageScope, StorageService, StorageServiceEventEnum, configFactory, defaultLanguageLoader, provideConfigLoader, provideConfigOptions, provideDefaultLanguageLoader, provideLanguageLoader, provideRouteServiceOptions, version };
|
|
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 };
|
|
1515
1602
|
//# sourceMappingURL=igo2-core.mjs.map
|