@igo2/core 1.14.2 → 1.15.1
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/__ivy_ngcc__/locale/en.auth.json +29 -29
- package/__ivy_ngcc__/locale/en.common.json +43 -43
- package/__ivy_ngcc__/locale/en.context.json +199 -199
- package/__ivy_ngcc__/locale/en.core.json +29 -29
- package/__ivy_ngcc__/locale/en.geo.json +805 -788
- package/__ivy_ngcc__/locale/en.integration.json +123 -123
- package/__ivy_ngcc__/locale/en.json +29 -12
- package/__ivy_ngcc__/locale/fr.auth.json +32 -32
- package/__ivy_ngcc__/locale/fr.common.json +43 -43
- package/__ivy_ngcc__/locale/fr.context.json +199 -199
- package/__ivy_ngcc__/locale/fr.core.json +29 -29
- package/__ivy_ngcc__/locale/fr.geo.json +805 -788
- package/__ivy_ngcc__/locale/fr.integration.json +125 -125
- package/__ivy_ngcc__/locale/fr.json +38 -21
- package/esm2020/lib/activity/activity.interceptor.mjs +1 -1
- package/esm2020/lib/activity/activity.module.mjs +1 -1
- package/esm2020/lib/activity/activity.service.mjs +1 -1
- package/esm2020/lib/analytics/shared/analytics.service.mjs +8 -1
- package/esm2020/lib/compression/compressedData.interface.mjs +1 -1
- package/esm2020/lib/compression/compression.service.mjs +1 -1
- package/esm2020/lib/config/config.interface.mjs +1 -1
- package/esm2020/lib/config/config.module.mjs +1 -1
- package/esm2020/lib/config/config.provider.mjs +1 -1
- package/esm2020/lib/config/config.service.mjs +1 -1
- package/esm2020/lib/config/version.mjs +3 -3
- package/esm2020/lib/core.module.mjs +10 -2
- package/esm2020/lib/gesture/gesture.module.mjs +1 -1
- package/esm2020/lib/gesture/gesture.provider.mjs +1 -1
- package/esm2020/lib/language/language.module.mjs +1 -1
- package/esm2020/lib/language/shared/language.loader.mjs +3 -4
- package/esm2020/lib/language/shared/language.provider.mjs +1 -1
- package/esm2020/lib/language/shared/language.service.mjs +1 -1
- package/esm2020/lib/media/media.service.mjs +1 -1
- package/esm2020/lib/message/message.module.mjs +1 -1
- package/esm2020/lib/message/shared/index.mjs +1 -1
- package/esm2020/lib/message/shared/message.interface.mjs +1 -1
- package/esm2020/lib/message/shared/message.service.mjs +17 -9
- package/esm2020/lib/network/network.interfaces.mjs +1 -1
- package/esm2020/lib/network/network.service.mjs +3 -10
- package/esm2020/lib/regex/index.mjs +1 -1
- package/esm2020/lib/regex/regex.interface.mjs +1 -1
- package/esm2020/lib/regex/regex.service.mjs +1 -1
- package/esm2020/lib/request/error.interceptor.mjs +1 -1
- package/esm2020/lib/request/error.module.mjs +1 -1
- package/esm2020/lib/request/logging.interceptor.mjs +2 -2
- package/esm2020/lib/request/logging.module.mjs +1 -1
- package/esm2020/lib/route/route.service.mjs +1 -1
- package/esm2020/lib/storage/storage.interface.mjs +1 -1
- package/esm2020/lib/storage/storage.service.mjs +1 -1
- package/esm2020/public_api.mjs +1 -1
- package/fesm2015/igo2-core.mjs +40 -23
- package/fesm2015/igo2-core.mjs.map +1 -1
- package/fesm2020/igo2-core.mjs +40 -23
- package/fesm2020/igo2-core.mjs.map +1 -1
- package/lib/analytics/shared/analytics.service.d.ts +4 -0
- package/locale/en.auth.json +29 -29
- package/locale/en.common.json +43 -43
- package/locale/en.context.json +199 -199
- package/locale/en.core.json +29 -29
- package/locale/en.geo.json +805 -788
- package/locale/en.integration.json +123 -123
- package/locale/en.json +29 -12
- package/locale/fr.auth.json +32 -32
- package/locale/fr.common.json +43 -43
- package/locale/fr.context.json +199 -199
- package/locale/fr.core.json +29 -29
- package/locale/fr.geo.json +805 -788
- package/locale/fr.integration.json +125 -125
- package/locale/fr.json +38 -21
- package/package.json +10 -5
- package/style/all.theming.scss +5 -5
- package/style/core.theming.scss +9 -9
- package/style/foreground.scss +20 -20
- package/style/index.theming.scss +780 -780
- package/style/material.font.scss +9 -9
- package/style/partial/core.variables.scss +4 -4
- package/style/partial/media.scss +80 -80
- package/style/setup.scss +2 -2
- package/style/themes/blue.theme.scss +19 -19
- package/style/themes/bluedark.theme.scss +51 -51
- package/style/themes/bluedq.theme.scss +52 -52
- package/style/themes/bluegrey.theme.scss +16 -16
- package/style/themes/dark.theme.scss +16 -16
- package/style/themes/deeppurple.theme.scss +16 -16
- package/style/themes/indigo.theme.scss +16 -16
- package/style/themes/orange.theme.scss +16 -16
- package/style/themes/teal.theme.scss +16 -16
- package/style/theming.scss +5 -5
- package/style/typography.scss +17 -17
package/fesm2015/igo2-core.mjs
CHANGED
|
@@ -2,8 +2,8 @@ import * as i0 from '@angular/core';
|
|
|
2
2
|
import { Injectable, NgModule, InjectionToken, APP_INITIALIZER, Injector, Inject, Optional, SkipSelf, EventEmitter } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
4
|
import { HTTP_INTERCEPTORS, HttpClient, HttpErrorResponse, HttpClientModule, HttpResponse } from '@angular/common/http';
|
|
5
|
-
import { finalize, catchError,
|
|
6
|
-
import { BehaviorSubject, throwError,
|
|
5
|
+
import { finalize, catchError, debounceTime, first, tap, startWith } from 'rxjs/operators';
|
|
6
|
+
import { BehaviorSubject, throwError, forkJoin, map, combineLatest, Observable, fromEvent } from 'rxjs';
|
|
7
7
|
import { uuid, ObjectUtils } from '@igo2/utils';
|
|
8
8
|
import * as i1 from '@ngx-translate/core';
|
|
9
9
|
import { TranslateLoader, TranslateModule, MissingTranslationHandler } from '@ngx-translate/core';
|
|
@@ -106,8 +106,8 @@ IgoActivityModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
|
|
|
106
106
|
})();
|
|
107
107
|
|
|
108
108
|
const version = {
|
|
109
|
-
lib: '1.
|
|
110
|
-
releaseDate:
|
|
109
|
+
lib: '1.15.1',
|
|
110
|
+
releaseDate: 1683312538104
|
|
111
111
|
};
|
|
112
112
|
|
|
113
113
|
class ConfigService {
|
|
@@ -215,7 +215,7 @@ class LanguageLoader {
|
|
|
215
215
|
return igoLocale$;
|
|
216
216
|
}
|
|
217
217
|
const appLocale$ = this.prefix.map((prefix) => this.http.get(`${prefix}${lang}${this.suffix}`));
|
|
218
|
-
const locale$ =
|
|
218
|
+
const locale$ = forkJoin([igoLocale$, ...appLocale$]);
|
|
219
219
|
return locale$.pipe(map((translations) => {
|
|
220
220
|
return translations.reduce((acc, current) => ObjectUtils.mergeDeep(acc, current), {});
|
|
221
221
|
}));
|
|
@@ -403,14 +403,18 @@ class MessageService {
|
|
|
403
403
|
const translatedTitleInterpolateParams = Object.assign({}, activeMessageTranslation.titleInterpolateParams);
|
|
404
404
|
if (activeMessageTranslation.textInterpolateParams) {
|
|
405
405
|
Object.keys(activeMessageTranslation.textInterpolateParams).map(k => {
|
|
406
|
-
|
|
407
|
-
|
|
406
|
+
if (k) {
|
|
407
|
+
translatedTextInterpolateParams[k] =
|
|
408
|
+
this.languageService.translate.instant(activeMessageTranslation.textInterpolateParams[k]);
|
|
409
|
+
}
|
|
408
410
|
});
|
|
409
411
|
}
|
|
410
412
|
if (activeMessageTranslation.titleInterpolateParams) {
|
|
411
413
|
Object.keys(activeMessageTranslation.titleInterpolateParams).map(k => {
|
|
412
|
-
|
|
413
|
-
|
|
414
|
+
if (k) {
|
|
415
|
+
translatedTitleInterpolateParams[k] =
|
|
416
|
+
this.languageService.translate.instant(activeMessageTranslation.titleInterpolateParams[k]);
|
|
417
|
+
}
|
|
414
418
|
});
|
|
415
419
|
}
|
|
416
420
|
forkJoin([
|
|
@@ -497,14 +501,18 @@ class MessageService {
|
|
|
497
501
|
const translatedTitlenterpolateParams = Object.assign({}, titleInterpolateParams);
|
|
498
502
|
if (textInterpolateParams) {
|
|
499
503
|
Object.keys(textInterpolateParams).map(k => {
|
|
500
|
-
|
|
501
|
-
|
|
504
|
+
if (textInterpolateParams[k]) {
|
|
505
|
+
translatedTextInterpolateParams[k] =
|
|
506
|
+
this.languageService.translate.instant(textInterpolateParams[k]);
|
|
507
|
+
}
|
|
502
508
|
});
|
|
503
509
|
}
|
|
504
510
|
if (titleInterpolateParams) {
|
|
505
511
|
Object.keys(titleInterpolateParams).map(k => {
|
|
506
|
-
|
|
507
|
-
|
|
512
|
+
if (k) {
|
|
513
|
+
translatedTitlenterpolateParams[k] =
|
|
514
|
+
this.languageService.translate.instant(titleInterpolateParams[k]);
|
|
515
|
+
}
|
|
508
516
|
});
|
|
509
517
|
}
|
|
510
518
|
const message = this.languageService.translate.instant(text, translatedTextInterpolateParams);
|
|
@@ -676,13 +684,21 @@ IgoErrorModule.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
|
|
|
676
684
|
|
|
677
685
|
const dbConfig = {
|
|
678
686
|
name: 'igo2DB',
|
|
679
|
-
version:
|
|
687
|
+
version: 2,
|
|
680
688
|
objectStoresMeta: [{
|
|
681
689
|
store: 'geoData',
|
|
682
690
|
storeConfig: { keyPath: 'url', autoIncrement: false },
|
|
683
691
|
storeSchema: [
|
|
684
692
|
{ name: 'regionID', keypath: 'regionID', options: { unique: false } }
|
|
685
693
|
]
|
|
694
|
+
},
|
|
695
|
+
{
|
|
696
|
+
store: 'layerData',
|
|
697
|
+
storeConfig: { keyPath: 'layerId', autoIncrement: false },
|
|
698
|
+
storeSchema: [
|
|
699
|
+
{ name: 'layerOptions', keypath: 'layerOptions', options: { unique: false } },
|
|
700
|
+
{ name: 'sourceOptions', keypath: 'sourceOptions', options: { unique: false } }
|
|
701
|
+
]
|
|
686
702
|
}]
|
|
687
703
|
};
|
|
688
704
|
class IgoCoreModule {
|
|
@@ -800,7 +816,7 @@ class LoggingInterceptor {
|
|
|
800
816
|
// Log when response observable either completes or errors
|
|
801
817
|
finalize(() => {
|
|
802
818
|
const elapsed = Date.now() - started;
|
|
803
|
-
const msg = `${req.method} "${req.urlWithParams}"
|
|
819
|
+
const msg = `${req.method} "${req.urlWithParams}"
|
|
804
820
|
${ok} in ${elapsed} ms.`;
|
|
805
821
|
console.log(msg);
|
|
806
822
|
}));
|
|
@@ -975,6 +991,13 @@ class AnalyticsService {
|
|
|
975
991
|
this.paq.push(['trackEvent', category, action, name]);
|
|
976
992
|
}
|
|
977
993
|
}
|
|
994
|
+
/**
|
|
995
|
+
* Function that tracks layers added to the map
|
|
996
|
+
*/
|
|
997
|
+
trackLayer(category, action, parameters) {
|
|
998
|
+
if (this.options.provider === 'matomo')
|
|
999
|
+
this.paq.push(['trackEvent', category, action, parameters]);
|
|
1000
|
+
}
|
|
978
1001
|
}
|
|
979
1002
|
AnalyticsService.ɵfac = function AnalyticsService_Factory(t) { return new (t || AnalyticsService)(i0.ɵɵinject(ConfigService)); };
|
|
980
1003
|
AnalyticsService.ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AnalyticsService, factory: AnalyticsService.ɵfac, providedIn: 'root' });
|
|
@@ -1314,10 +1337,7 @@ class NetworkService {
|
|
|
1314
1337
|
if (this.previousMessageId) {
|
|
1315
1338
|
this.messageService.remove(this.previousMessageId);
|
|
1316
1339
|
}
|
|
1317
|
-
const
|
|
1318
|
-
const message = translate.instant('igo.core.network.online.message');
|
|
1319
|
-
const title = translate.instant('igo.core.network.online.title');
|
|
1320
|
-
const messageObj = this.messageService.info(message, title);
|
|
1340
|
+
const messageObj = this.messageService.info('igo.core.network.online.message', 'igo.core.network.online.title');
|
|
1321
1341
|
this.previousMessageId = messageObj.toastId;
|
|
1322
1342
|
this.state.connection = true;
|
|
1323
1343
|
this.emitEvent();
|
|
@@ -1326,10 +1346,7 @@ class NetworkService {
|
|
|
1326
1346
|
if (this.previousMessageId) {
|
|
1327
1347
|
this.messageService.remove(this.previousMessageId);
|
|
1328
1348
|
}
|
|
1329
|
-
const
|
|
1330
|
-
const message = translate.instant('igo.core.network.offline.message');
|
|
1331
|
-
const title = translate.instant('igo.core.network.offline.title');
|
|
1332
|
-
const messageObj = this.messageService.info(message, title);
|
|
1349
|
+
const messageObj = this.messageService.info('igo.core.network.offline.message', 'igo.core.network.offline.title');
|
|
1333
1350
|
this.previousMessageId = messageObj.toastId;
|
|
1334
1351
|
this.state.connection = false;
|
|
1335
1352
|
this.emitEvent();
|