@igo2/core 1.10.0 → 1.12.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/__ivy_ngcc__/locale/en.auth.json +29 -29
- package/__ivy_ngcc__/locale/en.common.json +43 -43
- package/__ivy_ngcc__/locale/en.context.json +198 -198
- package/__ivy_ngcc__/locale/en.core.json +29 -29
- package/__ivy_ngcc__/locale/en.geo.json +737 -709
- package/__ivy_ngcc__/locale/en.integration.json +123 -105
- package/__ivy_ngcc__/locale/en.json +55 -9
- 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 +198 -198
- package/__ivy_ngcc__/locale/fr.core.json +29 -29
- package/__ivy_ngcc__/locale/fr.geo.json +737 -709
- package/__ivy_ngcc__/locale/fr.integration.json +125 -107
- package/__ivy_ngcc__/locale/fr.json +51 -5
- package/bundles/igo2-core.umd.js +227 -40
- package/bundles/igo2-core.umd.js.map +1 -1
- package/esm2015/lib/activity/activity.interceptor.js +1 -1
- package/esm2015/lib/activity/activity.module.js +1 -1
- package/esm2015/lib/activity/activity.service.js +1 -1
- package/esm2015/lib/activity/index.js +1 -1
- package/esm2015/lib/analytics/index.js +1 -1
- package/esm2015/lib/analytics/shared/analytics.interface.js +1 -1
- package/esm2015/lib/analytics/shared/analytics.service.js +1 -1
- package/esm2015/lib/analytics/shared/index.js +1 -1
- package/esm2015/lib/compression/compressedData.interface.js +2 -0
- package/esm2015/lib/compression/compression.service.js +140 -0
- package/esm2015/lib/compression/index.js +3 -0
- package/esm2015/lib/config/config.interface.js +1 -1
- package/esm2015/lib/config/config.module.js +1 -1
- package/esm2015/lib/config/config.provider.js +1 -1
- package/esm2015/lib/config/config.service.js +1 -1
- package/esm2015/lib/config/index.js +1 -1
- package/esm2015/lib/config/version.js +3 -3
- package/esm2015/lib/core.module.js +19 -4
- package/esm2015/lib/gesture/gesture.module.js +1 -1
- package/esm2015/lib/gesture/gesture.provider.js +1 -1
- package/esm2015/lib/language/index.js +1 -1
- package/esm2015/lib/language/language.module.js +1 -1
- package/esm2015/lib/language/shared/index.js +1 -1
- package/esm2015/lib/language/shared/language.interface.js +1 -1
- package/esm2015/lib/language/shared/language.loader.js +1 -1
- package/esm2015/lib/language/shared/language.provider.js +1 -1
- package/esm2015/lib/language/shared/language.service.js +1 -1
- package/esm2015/lib/language/shared/missing-translation.guard.js +2 -2
- package/esm2015/lib/media/index.js +1 -1
- package/esm2015/lib/media/media.enum.js +1 -1
- package/esm2015/lib/media/media.service.js +1 -1
- package/esm2015/lib/message/index.js +1 -1
- package/esm2015/lib/message/message.module.js +3 -3
- package/esm2015/lib/message/shared/index.js +1 -1
- package/esm2015/lib/message/shared/message.enum.js +1 -1
- package/esm2015/lib/message/shared/message.interface.js +1 -1
- package/esm2015/lib/message/shared/message.service.js +14 -8
- package/esm2015/lib/network/index.js +1 -1
- package/esm2015/lib/network/network.interfaces.js +1 -1
- package/esm2015/lib/network/network.service.js +11 -3
- package/esm2015/lib/request/error.interceptor.js +1 -1
- package/esm2015/lib/request/error.module.js +1 -1
- package/esm2015/lib/request/index.js +1 -1
- package/esm2015/lib/request/logging.interceptor.js +2 -2
- package/esm2015/lib/request/logging.module.js +1 -1
- package/esm2015/lib/route/route.interface.js +1 -1
- package/esm2015/lib/route/route.service.js +1 -1
- package/esm2015/lib/storage/index.js +1 -1
- package/esm2015/lib/storage/storage.interface.js +1 -1
- package/esm2015/lib/storage/storage.service.js +1 -1
- package/esm2015/public_api.js +2 -1
- package/fesm2015/igo2-core.js +197 -31
- package/fesm2015/igo2-core.js.map +1 -1
- package/lib/compression/compressedData.interface.d.ts +5 -0
- package/lib/compression/compression.service.d.ts +15 -0
- package/lib/compression/index.d.ts +2 -0
- package/lib/core.module.d.ts +2 -1
- package/lib/message/shared/message.service.d.ts +5 -3
- package/lib/network/network.service.d.ts +1 -0
- package/locale/en.auth.json +29 -29
- package/locale/en.common.json +43 -43
- package/locale/en.context.json +198 -198
- package/locale/en.core.json +29 -29
- package/locale/en.geo.json +737 -709
- package/locale/en.integration.json +123 -105
- package/locale/en.json +55 -9
- package/locale/fr.auth.json +32 -32
- package/locale/fr.common.json +43 -43
- package/locale/fr.context.json +198 -198
- package/locale/fr.core.json +29 -29
- package/locale/fr.geo.json +737 -709
- package/locale/fr.integration.json +125 -107
- package/locale/fr.json +51 -5
- package/package.json +3 -2
- package/public_api.d.ts +1 -0
- 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 +823 -740
- package/style/material.font.scss +9 -9
- package/style/partial/core.variables.scss +4 -4
- package/style/partial/media.scss +80 -80
- package/style/themes/blue.theme.scss +19 -19
- 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/qcca.theme.scss +66 -0
- package/style/themes/teal.theme.scss +16 -16
- package/style/theming.scss +7 -7
- package/style/typography.scss +15 -15
package/bundles/igo2-core.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/common/http'), require('rxjs/operators'), require('rxjs'), require('@igo2/utils'), require('@ngx-translate/core'), require('ngx-toastr'), require('@angular/material/icon'), require('@angular/platform-browser'), require('@angular/router'), require('@angular/cdk/layout')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@igo2/core', ['exports', '@angular/core', '@angular/common', '@angular/common/http', 'rxjs/operators', 'rxjs', '@igo2/utils', '@ngx-translate/core', 'ngx-toastr', '@angular/material/icon', '@angular/platform-browser', '@angular/router', '@angular/cdk/layout'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.igo2 = global.igo2 || {}, global.igo2.core = {}), global.ng.core, global.ng.common, global.ng.common.http, global.rxjs.operators, global.rxjs, global.utils, global["ngxt-core"], global.ngxToastr, global.ng.material.icon, global.ng.platformBrowser, global.ng.router, global.ng.cdk.layout));
|
|
5
|
-
})(this, (function (exports, i0, common, http, operators, rxjs, utils, i1,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/common'), require('@angular/common/http'), require('rxjs/operators'), require('rxjs'), require('@igo2/utils'), require('@ngx-translate/core'), require('ngx-toastr'), require('ngx-indexed-db'), require('@angular/material/icon'), require('@angular/platform-browser'), require('@angular/router'), require('@angular/cdk/layout')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@igo2/core', ['exports', '@angular/core', '@angular/common', '@angular/common/http', 'rxjs/operators', 'rxjs', '@igo2/utils', '@ngx-translate/core', 'ngx-toastr', 'ngx-indexed-db', '@angular/material/icon', '@angular/platform-browser', '@angular/router', '@angular/cdk/layout'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.igo2 = global.igo2 || {}, global.igo2.core = {}), global.ng.core, global.ng.common, global.ng.common.http, global.rxjs.operators, global.rxjs, global.utils, global["ngxt-core"], global.ngxToastr, global.nIdb, global.ng.material.icon, global.ng.platformBrowser, global.ng.router, global.ng.cdk.layout));
|
|
5
|
+
})(this, (function (exports, i0, common, http, operators, rxjs, utils, i1, i1$1, i8, i1$2, i2, i1$3, i1$4) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopNamespace(e) {
|
|
8
8
|
if (e && e.__esModule) return e;
|
|
@@ -24,11 +24,12 @@
|
|
|
24
24
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
26
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
27
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
29
|
-
var
|
|
28
|
+
var i8__namespace = /*#__PURE__*/_interopNamespace(i8);
|
|
30
29
|
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
30
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
31
31
|
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
32
|
+
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
32
33
|
|
|
33
34
|
var ActivityService = /** @class */ (function () {
|
|
34
35
|
function ActivityService() {
|
|
@@ -124,8 +125,8 @@
|
|
|
124
125
|
})();
|
|
125
126
|
|
|
126
127
|
var version = {
|
|
127
|
-
lib: '1.
|
|
128
|
-
releaseDate:
|
|
128
|
+
lib: '1.12.0',
|
|
129
|
+
releaseDate: 1656013761086
|
|
129
130
|
};
|
|
130
131
|
|
|
131
132
|
var ConfigService = /** @class */ (function () {
|
|
@@ -590,7 +591,7 @@
|
|
|
590
591
|
}
|
|
591
592
|
IgoMissingTranslationHandler.prototype.handle = function (params) {
|
|
592
593
|
if (!params.translateService.langs.length) {
|
|
593
|
-
var error = 'Translations are not yet loaded. \
|
|
594
|
+
var error = 'Translations are not yet loaded. \
|
|
594
595
|
Check that the LanguageService is injected.';
|
|
595
596
|
throw new Error(error);
|
|
596
597
|
}
|
|
@@ -658,7 +659,7 @@
|
|
|
658
659
|
IgoMessageModule.ɵfac = function IgoMessageModule_Factory(t) { return new (t || IgoMessageModule)(); };
|
|
659
660
|
IgoMessageModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoMessageModule });
|
|
660
661
|
IgoMessageModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[common.CommonModule,
|
|
661
|
-
|
|
662
|
+
i1$1.ToastrModule.forRoot({
|
|
662
663
|
positionClass: 'toast-bottom-right',
|
|
663
664
|
timeOut: 10000,
|
|
664
665
|
extendedTimeOut: 10000,
|
|
@@ -670,7 +671,7 @@
|
|
|
670
671
|
maxOpened: 4,
|
|
671
672
|
preventDuplicates: true,
|
|
672
673
|
resetTimeoutOnDuplicate: true,
|
|
673
|
-
countDuplicates:
|
|
674
|
+
countDuplicates: false,
|
|
674
675
|
includeTitleDuplicates: true
|
|
675
676
|
})]] });
|
|
676
677
|
(function () {
|
|
@@ -678,7 +679,7 @@
|
|
|
678
679
|
type: i0.NgModule,
|
|
679
680
|
args: [{
|
|
680
681
|
imports: [common.CommonModule,
|
|
681
|
-
|
|
682
|
+
i1$1.ToastrModule.forRoot({
|
|
682
683
|
positionClass: 'toast-bottom-right',
|
|
683
684
|
timeOut: 10000,
|
|
684
685
|
extendedTimeOut: 10000,
|
|
@@ -690,7 +691,7 @@
|
|
|
690
691
|
maxOpened: 4,
|
|
691
692
|
preventDuplicates: true,
|
|
692
693
|
resetTimeoutOnDuplicate: true,
|
|
693
|
-
countDuplicates:
|
|
694
|
+
countDuplicates: false,
|
|
694
695
|
includeTitleDuplicates: true
|
|
695
696
|
})],
|
|
696
697
|
declarations: [],
|
|
@@ -698,7 +699,7 @@
|
|
|
698
699
|
}]
|
|
699
700
|
}], null, null);
|
|
700
701
|
})();
|
|
701
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoMessageModule, { imports: [common.CommonModule,
|
|
702
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoMessageModule, { imports: [common.CommonModule, i1__namespace$1.ToastrModule] }); })();
|
|
702
703
|
|
|
703
704
|
var LanguageService = /** @class */ (function () {
|
|
704
705
|
function LanguageService(translate) {
|
|
@@ -738,13 +739,20 @@
|
|
|
738
739
|
})(exports.MessageType || (exports.MessageType = {}));
|
|
739
740
|
|
|
740
741
|
var MessageService = /** @class */ (function () {
|
|
741
|
-
function MessageService(
|
|
742
|
+
function MessageService(injector, configService, languageService) {
|
|
743
|
+
this.injector = injector;
|
|
742
744
|
this.configService = configService;
|
|
743
|
-
this.toastr = toastr;
|
|
744
745
|
this.languageService = languageService;
|
|
745
746
|
this.messages$ = new rxjs.BehaviorSubject([]);
|
|
746
747
|
this.options = this.configService.getConfig('message') || {};
|
|
747
748
|
}
|
|
749
|
+
Object.defineProperty(MessageService.prototype, "toastr", {
|
|
750
|
+
get: function () {
|
|
751
|
+
return this.injector.get(i1$1.ToastrService);
|
|
752
|
+
},
|
|
753
|
+
enumerable: false,
|
|
754
|
+
configurable: true
|
|
755
|
+
});
|
|
748
756
|
MessageService.prototype.showError = function (httpError) {
|
|
749
757
|
httpError.error.caught = true;
|
|
750
758
|
return this.error(httpError.error.message, httpError.error.title);
|
|
@@ -850,7 +858,7 @@
|
|
|
850
858
|
};
|
|
851
859
|
return MessageService;
|
|
852
860
|
}());
|
|
853
|
-
MessageService.ɵfac = function MessageService_Factory(t) { return new (t || MessageService)(i0__namespace.ɵɵinject(
|
|
861
|
+
MessageService.ɵfac = function MessageService_Factory(t) { return new (t || MessageService)(i0__namespace.ɵɵinject(i0.Injector), i0__namespace.ɵɵinject(ConfigService), i0__namespace.ɵɵinject(LanguageService)); };
|
|
854
862
|
MessageService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: MessageService, factory: MessageService.ɵfac, providedIn: 'root' });
|
|
855
863
|
(function () {
|
|
856
864
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MessageService, [{
|
|
@@ -858,7 +866,12 @@
|
|
|
858
866
|
args: [{
|
|
859
867
|
providedIn: 'root'
|
|
860
868
|
}]
|
|
861
|
-
}], function () {
|
|
869
|
+
}], function () {
|
|
870
|
+
return [{ type: i0__namespace.Injector, decorators: [{
|
|
871
|
+
type: i0.Inject,
|
|
872
|
+
args: [i0.Injector]
|
|
873
|
+
}] }, { type: ConfigService }, { type: LanguageService }];
|
|
874
|
+
}, null);
|
|
862
875
|
})();
|
|
863
876
|
|
|
864
877
|
var ErrorInterceptor = /** @class */ (function () {
|
|
@@ -960,6 +973,17 @@
|
|
|
960
973
|
}, null);
|
|
961
974
|
})();
|
|
962
975
|
|
|
976
|
+
var dbConfig = {
|
|
977
|
+
name: 'igo2DB',
|
|
978
|
+
version: 1,
|
|
979
|
+
objectStoresMeta: [{
|
|
980
|
+
store: 'geoData',
|
|
981
|
+
storeConfig: { keyPath: 'url', autoIncrement: false },
|
|
982
|
+
storeSchema: [
|
|
983
|
+
{ name: 'regionID', keypath: 'regionID', options: { unique: false } }
|
|
984
|
+
]
|
|
985
|
+
}]
|
|
986
|
+
};
|
|
963
987
|
var IgoCoreModule = /** @class */ (function () {
|
|
964
988
|
function IgoCoreModule(matIconRegistry, domSanitizer) {
|
|
965
989
|
matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl('./assets/igo2/core/icons/mdi.svg'));
|
|
@@ -972,7 +996,7 @@
|
|
|
972
996
|
};
|
|
973
997
|
return IgoCoreModule;
|
|
974
998
|
}());
|
|
975
|
-
IgoCoreModule.ɵfac = function IgoCoreModule_Factory(t) { return new (t || IgoCoreModule)(i0__namespace.ɵɵinject(i1__namespace$
|
|
999
|
+
IgoCoreModule.ɵfac = function IgoCoreModule_Factory(t) { return new (t || IgoCoreModule)(i0__namespace.ɵɵinject(i1__namespace$2.MatIconRegistry), i0__namespace.ɵɵinject(i2__namespace.DomSanitizer)); };
|
|
976
1000
|
IgoCoreModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoCoreModule });
|
|
977
1001
|
IgoCoreModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
978
1002
|
common.CommonModule,
|
|
@@ -981,7 +1005,8 @@
|
|
|
981
1005
|
IgoConfigModule.forRoot(),
|
|
982
1006
|
IgoErrorModule.forRoot(),
|
|
983
1007
|
IgoLanguageModule.forRoot(),
|
|
984
|
-
IgoMessageModule.forRoot()
|
|
1008
|
+
IgoMessageModule.forRoot(),
|
|
1009
|
+
i8.NgxIndexedDBModule.forRoot(dbConfig)
|
|
985
1010
|
], IgoActivityModule,
|
|
986
1011
|
IgoConfigModule,
|
|
987
1012
|
IgoErrorModule,
|
|
@@ -998,7 +1023,8 @@
|
|
|
998
1023
|
IgoConfigModule.forRoot(),
|
|
999
1024
|
IgoErrorModule.forRoot(),
|
|
1000
1025
|
IgoLanguageModule.forRoot(),
|
|
1001
|
-
IgoMessageModule.forRoot()
|
|
1026
|
+
IgoMessageModule.forRoot(),
|
|
1027
|
+
i8.NgxIndexedDBModule.forRoot(dbConfig)
|
|
1002
1028
|
],
|
|
1003
1029
|
declarations: [],
|
|
1004
1030
|
exports: [
|
|
@@ -1009,11 +1035,11 @@
|
|
|
1009
1035
|
IgoMessageModule
|
|
1010
1036
|
]
|
|
1011
1037
|
}]
|
|
1012
|
-
}], function () { return [{ type: i1__namespace$
|
|
1038
|
+
}], function () { return [{ type: i1__namespace$2.MatIconRegistry }, { type: i2__namespace.DomSanitizer }]; }, null);
|
|
1013
1039
|
})();
|
|
1014
1040
|
(function () {
|
|
1015
1041
|
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoCoreModule, { imports: [common.CommonModule,
|
|
1016
|
-
http.HttpClientModule, IgoActivityModule, IgoConfigModule, IgoErrorModule, IgoLanguageModule, IgoMessageModule], exports: [IgoActivityModule,
|
|
1042
|
+
http.HttpClientModule, IgoActivityModule, IgoConfigModule, IgoErrorModule, IgoLanguageModule, IgoMessageModule, i8__namespace.NgxIndexedDBModule], exports: [IgoActivityModule,
|
|
1017
1043
|
IgoConfigModule,
|
|
1018
1044
|
IgoErrorModule,
|
|
1019
1045
|
IgoLanguageModule,
|
|
@@ -1031,7 +1057,7 @@
|
|
|
1031
1057
|
return mc;
|
|
1032
1058
|
};
|
|
1033
1059
|
return IgoGestureConfig;
|
|
1034
|
-
}(i2
|
|
1060
|
+
}(i2.HammerGestureConfig));
|
|
1035
1061
|
IgoGestureConfig.ɵfac = /*@__PURE__*/ function () { var ɵIgoGestureConfig_BaseFactory; return function IgoGestureConfig_Factory(t) { return (ɵIgoGestureConfig_BaseFactory || (ɵIgoGestureConfig_BaseFactory = i0__namespace.ɵɵgetInheritedFactory(IgoGestureConfig)))(t || IgoGestureConfig); }; }();
|
|
1036
1062
|
IgoGestureConfig.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: IgoGestureConfig, factory: IgoGestureConfig.ɵfac });
|
|
1037
1063
|
(function () {
|
|
@@ -1048,7 +1074,7 @@
|
|
|
1048
1074
|
ngModule: IgoGestureModule,
|
|
1049
1075
|
providers: [
|
|
1050
1076
|
{
|
|
1051
|
-
provide: i2
|
|
1077
|
+
provide: i2.HAMMER_GESTURE_CONFIG,
|
|
1052
1078
|
useClass: IgoGestureConfig
|
|
1053
1079
|
}
|
|
1054
1080
|
]
|
|
@@ -1058,18 +1084,18 @@
|
|
|
1058
1084
|
}());
|
|
1059
1085
|
IgoGestureModule.ɵfac = function IgoGestureModule_Factory(t) { return new (t || IgoGestureModule)(); };
|
|
1060
1086
|
IgoGestureModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoGestureModule });
|
|
1061
|
-
IgoGestureModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i2
|
|
1087
|
+
IgoGestureModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i2.HammerModule]] });
|
|
1062
1088
|
(function () {
|
|
1063
1089
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoGestureModule, [{
|
|
1064
1090
|
type: i0.NgModule,
|
|
1065
1091
|
args: [{
|
|
1066
|
-
imports: [i2
|
|
1092
|
+
imports: [i2.HammerModule],
|
|
1067
1093
|
declarations: [],
|
|
1068
1094
|
exports: []
|
|
1069
1095
|
}]
|
|
1070
1096
|
}], null, null);
|
|
1071
1097
|
})();
|
|
1072
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoGestureModule, { imports: [i2
|
|
1098
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoGestureModule, { imports: [i2.HammerModule] }); })();
|
|
1073
1099
|
|
|
1074
1100
|
var LoggingInterceptor = /** @class */ (function () {
|
|
1075
1101
|
function LoggingInterceptor() {
|
|
@@ -1190,7 +1216,7 @@
|
|
|
1190
1216
|
});
|
|
1191
1217
|
return RouteService;
|
|
1192
1218
|
}());
|
|
1193
|
-
RouteService.ɵfac = function RouteService_Factory(t) { return new (t || RouteService)(i0__namespace.ɵɵinject(i1__namespace$
|
|
1219
|
+
RouteService.ɵfac = function RouteService_Factory(t) { return new (t || RouteService)(i0__namespace.ɵɵinject(i1__namespace$3.Router), i0__namespace.ɵɵinject(i1__namespace$3.ActivatedRoute), i0__namespace.ɵɵinject(ROUTE_SERVICE_OPTIONS, 8)); };
|
|
1194
1220
|
RouteService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: RouteService, factory: RouteService.ɵfac, providedIn: 'root' });
|
|
1195
1221
|
(function () {
|
|
1196
1222
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RouteService, [{
|
|
@@ -1199,7 +1225,7 @@
|
|
|
1199
1225
|
providedIn: 'root'
|
|
1200
1226
|
}]
|
|
1201
1227
|
}], function () {
|
|
1202
|
-
return [{ type: i1__namespace$
|
|
1228
|
+
return [{ type: i1__namespace$3.Router }, { type: i1__namespace$3.ActivatedRoute }, { type: undefined, decorators: [{
|
|
1203
1229
|
type: i0.Inject,
|
|
1204
1230
|
args: [ROUTE_SERVICE_OPTIONS]
|
|
1205
1231
|
}, {
|
|
@@ -1305,38 +1331,38 @@
|
|
|
1305
1331
|
this.media$ = new rxjs.BehaviorSubject(undefined);
|
|
1306
1332
|
this.orientation$ = new rxjs.BehaviorSubject(undefined);
|
|
1307
1333
|
breakpointObserver
|
|
1308
|
-
.observe([i1$
|
|
1334
|
+
.observe([i1$4.Breakpoints.HandsetLandscape])
|
|
1309
1335
|
.subscribe(function (res) {
|
|
1310
1336
|
if (res.matches) {
|
|
1311
1337
|
_this.media$.next(exports.Media.Mobile);
|
|
1312
1338
|
_this.orientation$.next(exports.MediaOrientation.Landscape);
|
|
1313
1339
|
}
|
|
1314
1340
|
});
|
|
1315
|
-
breakpointObserver.observe([i1$
|
|
1341
|
+
breakpointObserver.observe([i1$4.Breakpoints.HandsetPortrait]).subscribe(function (res) {
|
|
1316
1342
|
if (res.matches) {
|
|
1317
1343
|
_this.media$.next(exports.Media.Mobile);
|
|
1318
1344
|
_this.orientation$.next(exports.MediaOrientation.Portrait);
|
|
1319
1345
|
}
|
|
1320
1346
|
});
|
|
1321
|
-
breakpointObserver.observe([i1$
|
|
1347
|
+
breakpointObserver.observe([i1$4.Breakpoints.TabletLandscape]).subscribe(function (res) {
|
|
1322
1348
|
if (res.matches) {
|
|
1323
1349
|
_this.media$.next(exports.Media.Tablet);
|
|
1324
1350
|
_this.orientation$.next(exports.MediaOrientation.Landscape);
|
|
1325
1351
|
}
|
|
1326
1352
|
});
|
|
1327
|
-
breakpointObserver.observe([i1$
|
|
1353
|
+
breakpointObserver.observe([i1$4.Breakpoints.TabletPortrait]).subscribe(function (res) {
|
|
1328
1354
|
if (res.matches) {
|
|
1329
1355
|
_this.media$.next(exports.Media.Tablet);
|
|
1330
1356
|
_this.orientation$.next(exports.MediaOrientation.Portrait);
|
|
1331
1357
|
}
|
|
1332
1358
|
});
|
|
1333
|
-
breakpointObserver.observe([i1$
|
|
1359
|
+
breakpointObserver.observe([i1$4.Breakpoints.WebLandscape]).subscribe(function (res) {
|
|
1334
1360
|
if (res.matches) {
|
|
1335
1361
|
_this.media$.next(exports.Media.Desktop);
|
|
1336
1362
|
_this.orientation$.next(exports.MediaOrientation.Landscape);
|
|
1337
1363
|
}
|
|
1338
1364
|
});
|
|
1339
|
-
breakpointObserver.observe([i1$
|
|
1365
|
+
breakpointObserver.observe([i1$4.Breakpoints.WebPortrait]).subscribe(function (res) {
|
|
1340
1366
|
if (res.matches) {
|
|
1341
1367
|
_this.media$.next(exports.Media.Desktop);
|
|
1342
1368
|
_this.orientation$.next(exports.MediaOrientation.Portrait);
|
|
@@ -1362,7 +1388,7 @@
|
|
|
1362
1388
|
};
|
|
1363
1389
|
return MediaService;
|
|
1364
1390
|
}());
|
|
1365
|
-
MediaService.ɵfac = function MediaService_Factory(t) { return new (t || MediaService)(i0__namespace.ɵɵinject(i1__namespace$
|
|
1391
|
+
MediaService.ɵfac = function MediaService_Factory(t) { return new (t || MediaService)(i0__namespace.ɵɵinject(i1__namespace$4.BreakpointObserver)); };
|
|
1366
1392
|
MediaService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: MediaService, factory: MediaService.ɵfac, providedIn: 'root' });
|
|
1367
1393
|
(function () {
|
|
1368
1394
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MediaService, [{
|
|
@@ -1370,7 +1396,7 @@
|
|
|
1370
1396
|
args: [{
|
|
1371
1397
|
providedIn: 'root'
|
|
1372
1398
|
}]
|
|
1373
|
-
}], function () { return [{ type: i1__namespace$
|
|
1399
|
+
}], function () { return [{ type: i1__namespace$4.BreakpointObserver }]; }, null);
|
|
1374
1400
|
})();
|
|
1375
1401
|
|
|
1376
1402
|
exports.StorageScope = void 0;
|
|
@@ -1467,6 +1493,158 @@
|
|
|
1467
1493
|
}], function () { return [{ type: ConfigService }]; }, null);
|
|
1468
1494
|
})();
|
|
1469
1495
|
|
|
1496
|
+
function getNumber(v, endposition, length) {
|
|
1497
|
+
/* tslint:disable:no-bitwise*/
|
|
1498
|
+
var mask = ((1 << length) - 1);
|
|
1499
|
+
return (v >> endposition) & mask;
|
|
1500
|
+
/* tslint:enable:no-bitwise*/
|
|
1501
|
+
}
|
|
1502
|
+
var CompressionService = /** @class */ (function () {
|
|
1503
|
+
function CompressionService() {
|
|
1504
|
+
this.base64Index = new Map();
|
|
1505
|
+
this.indexBase64 = new Map();
|
|
1506
|
+
this.generateBase64Index();
|
|
1507
|
+
}
|
|
1508
|
+
CompressionService.prototype.generateBase64Index = function () {
|
|
1509
|
+
// https://fr.wikipedia.org/wiki/Base64
|
|
1510
|
+
// A-Z => [0, 25]
|
|
1511
|
+
for (var i = 0; i < 26; i++) {
|
|
1512
|
+
this.base64Index.set(String.fromCharCode('A'.charCodeAt(0) + i), i);
|
|
1513
|
+
this.indexBase64.set(i, String.fromCharCode('A'.charCodeAt(0) + i));
|
|
1514
|
+
}
|
|
1515
|
+
// a-z => [26, 51]
|
|
1516
|
+
for (var i = 0; i < 26; i++) {
|
|
1517
|
+
this.base64Index.set(String.fromCharCode('a'.charCodeAt(0) + i), i + 26);
|
|
1518
|
+
this.indexBase64.set(i + 26, String.fromCharCode('a'.charCodeAt(0) + i));
|
|
1519
|
+
}
|
|
1520
|
+
// 0-9 => [52, 61]
|
|
1521
|
+
for (var i = 0; i < 10; i++) {
|
|
1522
|
+
this.base64Index.set(String.fromCharCode('0'.charCodeAt(0) + i), i + 52);
|
|
1523
|
+
this.indexBase64.set(i + 52, String.fromCharCode('0'.charCodeAt(0) + i));
|
|
1524
|
+
}
|
|
1525
|
+
// + / => [62, 63]
|
|
1526
|
+
this.base64Index.set('+', 62);
|
|
1527
|
+
this.base64Index.set('/', 63);
|
|
1528
|
+
this.indexBase64.set(62, '+');
|
|
1529
|
+
this.indexBase64.set(63, '/');
|
|
1530
|
+
};
|
|
1531
|
+
CompressionService.prototype.compressBlob = function (blob) {
|
|
1532
|
+
var _this = this;
|
|
1533
|
+
if (!blob) {
|
|
1534
|
+
return;
|
|
1535
|
+
}
|
|
1536
|
+
var observable = new rxjs.Observable(function (observer) {
|
|
1537
|
+
var reader = new FileReader();
|
|
1538
|
+
reader.readAsDataURL(blob);
|
|
1539
|
+
reader.onload = function () {
|
|
1540
|
+
var base64 = reader.result.valueOf();
|
|
1541
|
+
var text64 = base64.substr(base64.indexOf(',') + 1);
|
|
1542
|
+
var compressed = _this.compressStringBase64(text64);
|
|
1543
|
+
var compressedData = { length: text64.length,
|
|
1544
|
+
type: blob.type,
|
|
1545
|
+
object: compressed };
|
|
1546
|
+
observer.next(compressedData);
|
|
1547
|
+
};
|
|
1548
|
+
});
|
|
1549
|
+
return observable;
|
|
1550
|
+
};
|
|
1551
|
+
CompressionService.prototype.decompressBlob = function (compressedData) {
|
|
1552
|
+
/* tslint:disable:no-bitwise*/
|
|
1553
|
+
var object = compressedData.object;
|
|
1554
|
+
var length = compressedData.length;
|
|
1555
|
+
var decompressed = this.decompressStringBase64(object, length);
|
|
1556
|
+
var byteCharacters = atob(decompressed);
|
|
1557
|
+
var byteNumbers = new Array(byteCharacters.length);
|
|
1558
|
+
for (var i = 0; i < byteCharacters.length; i++) {
|
|
1559
|
+
byteNumbers[i] = byteCharacters.charCodeAt(i);
|
|
1560
|
+
}
|
|
1561
|
+
var byteArray = new Uint8Array(byteNumbers);
|
|
1562
|
+
var blob = new Blob([byteArray], { type: compressedData.type });
|
|
1563
|
+
/* tslint:enable:no-bitwise*/
|
|
1564
|
+
return blob;
|
|
1565
|
+
};
|
|
1566
|
+
CompressionService.prototype.compressStringBase64 = function (s) {
|
|
1567
|
+
var e_1, _a;
|
|
1568
|
+
/* tslint:disable:no-bitwise*/
|
|
1569
|
+
var out = '';
|
|
1570
|
+
var bits = 16;
|
|
1571
|
+
var chr = 0;
|
|
1572
|
+
var rem = 0;
|
|
1573
|
+
try {
|
|
1574
|
+
for (var s_1 = __values(s), s_1_1 = s_1.next(); !s_1_1.done; s_1_1 = s_1.next()) {
|
|
1575
|
+
var c = s_1_1.value;
|
|
1576
|
+
var value = this.base64Index.get(c);
|
|
1577
|
+
if (bits > 6) {
|
|
1578
|
+
bits -= 6;
|
|
1579
|
+
chr += value << bits;
|
|
1580
|
+
}
|
|
1581
|
+
else {
|
|
1582
|
+
rem = 6 - bits;
|
|
1583
|
+
chr += value >> rem;
|
|
1584
|
+
out += String.fromCharCode(chr);
|
|
1585
|
+
chr = (value) << (16 - rem);
|
|
1586
|
+
bits = 16 - rem;
|
|
1587
|
+
}
|
|
1588
|
+
}
|
|
1589
|
+
}
|
|
1590
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
1591
|
+
finally {
|
|
1592
|
+
try {
|
|
1593
|
+
if (s_1_1 && !s_1_1.done && (_a = s_1.return)) _a.call(s_1);
|
|
1594
|
+
}
|
|
1595
|
+
finally { if (e_1) throw e_1.error; }
|
|
1596
|
+
}
|
|
1597
|
+
if (s.length % 8 !== 0) {
|
|
1598
|
+
out += String.fromCharCode(chr);
|
|
1599
|
+
}
|
|
1600
|
+
/* tslint:enable:no-bitwise*/
|
|
1601
|
+
return String.fromCharCode(9731) + out;
|
|
1602
|
+
};
|
|
1603
|
+
CompressionService.prototype.decompressStringBase64 = function (c, length) {
|
|
1604
|
+
/* tslint:disable:no-bitwise*/
|
|
1605
|
+
if (!c) {
|
|
1606
|
+
return;
|
|
1607
|
+
}
|
|
1608
|
+
if (c.charCodeAt(0) !== 9731) {
|
|
1609
|
+
return c;
|
|
1610
|
+
}
|
|
1611
|
+
var chr = 0;
|
|
1612
|
+
var rem = 0;
|
|
1613
|
+
var bits = 16;
|
|
1614
|
+
var out = '';
|
|
1615
|
+
var j = 1;
|
|
1616
|
+
var value = c.charCodeAt(j);
|
|
1617
|
+
for (var i = 0; i < length; i++) {
|
|
1618
|
+
if (bits > 6) {
|
|
1619
|
+
bits -= 6;
|
|
1620
|
+
chr = getNumber(value, bits, 6);
|
|
1621
|
+
out += this.indexBase64.get(chr);
|
|
1622
|
+
}
|
|
1623
|
+
else {
|
|
1624
|
+
rem = 6 - bits;
|
|
1625
|
+
chr = getNumber(value, 0, bits) << rem;
|
|
1626
|
+
value = c.charCodeAt(++j);
|
|
1627
|
+
chr += getNumber(value, 16 - rem, rem);
|
|
1628
|
+
out += this.indexBase64.get(chr);
|
|
1629
|
+
bits = 16 - rem;
|
|
1630
|
+
}
|
|
1631
|
+
}
|
|
1632
|
+
return out;
|
|
1633
|
+
/* tslint:enable:no-bitwise*/
|
|
1634
|
+
};
|
|
1635
|
+
return CompressionService;
|
|
1636
|
+
}());
|
|
1637
|
+
CompressionService.ɵfac = function CompressionService_Factory(t) { return new (t || CompressionService)(); };
|
|
1638
|
+
CompressionService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: CompressionService, factory: CompressionService.ɵfac, providedIn: 'root' });
|
|
1639
|
+
(function () {
|
|
1640
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CompressionService, [{
|
|
1641
|
+
type: i0.Injectable,
|
|
1642
|
+
args: [{
|
|
1643
|
+
providedIn: 'root'
|
|
1644
|
+
}]
|
|
1645
|
+
}], function () { return []; }, null);
|
|
1646
|
+
})();
|
|
1647
|
+
|
|
1470
1648
|
var NetworkService = /** @class */ (function () {
|
|
1471
1649
|
function NetworkService(messageService, injector) {
|
|
1472
1650
|
this.messageService = messageService;
|
|
@@ -1480,18 +1658,26 @@
|
|
|
1480
1658
|
NetworkService.prototype.checkNetworkState = function () {
|
|
1481
1659
|
var _this = this;
|
|
1482
1660
|
this.onlineSubscription = rxjs.fromEvent(window, 'online').subscribe(function () {
|
|
1661
|
+
if (_this.previousMessageId) {
|
|
1662
|
+
_this.messageService.remove(_this.previousMessageId);
|
|
1663
|
+
}
|
|
1483
1664
|
var translate = _this.injector.get(LanguageService).translate;
|
|
1484
1665
|
var message = translate.instant('igo.core.network.online.message');
|
|
1485
1666
|
var title = translate.instant('igo.core.network.online.title');
|
|
1486
|
-
_this.messageService.info(message, title);
|
|
1667
|
+
var messageObj = _this.messageService.info(message, title);
|
|
1668
|
+
_this.previousMessageId = messageObj.toastId;
|
|
1487
1669
|
_this.state.connection = true;
|
|
1488
1670
|
_this.emitEvent();
|
|
1489
1671
|
});
|
|
1490
1672
|
this.offlineSubscription = rxjs.fromEvent(window, 'offline').subscribe(function () {
|
|
1673
|
+
if (_this.previousMessageId) {
|
|
1674
|
+
_this.messageService.remove(_this.previousMessageId);
|
|
1675
|
+
}
|
|
1491
1676
|
var translate = _this.injector.get(LanguageService).translate;
|
|
1492
1677
|
var message = translate.instant('igo.core.network.offline.message');
|
|
1493
1678
|
var title = translate.instant('igo.core.network.offline.title');
|
|
1494
|
-
_this.messageService.info(message, title);
|
|
1679
|
+
var messageObj = _this.messageService.info(message, title);
|
|
1680
|
+
_this.previousMessageId = messageObj.toastId;
|
|
1495
1681
|
_this.state.connection = false;
|
|
1496
1682
|
_this.emitEvent();
|
|
1497
1683
|
});
|
|
@@ -1537,6 +1723,7 @@
|
|
|
1537
1723
|
exports.ActivityService = ActivityService;
|
|
1538
1724
|
exports.AnalyticsService = AnalyticsService;
|
|
1539
1725
|
exports.CONFIG_OPTIONS = CONFIG_OPTIONS;
|
|
1726
|
+
exports.CompressionService = CompressionService;
|
|
1540
1727
|
exports.ConfigService = ConfigService;
|
|
1541
1728
|
exports.ErrorInterceptor = ErrorInterceptor;
|
|
1542
1729
|
exports.IgoActivityModule = IgoActivityModule;
|