@igo2/core 1.9.0 → 1.10.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 (88) hide show
  1. package/__ivy_ngcc__/locale/en.common.json +43 -43
  2. package/__ivy_ngcc__/locale/en.core.json +29 -23
  3. package/__ivy_ngcc__/locale/en.geo.json +74 -26
  4. package/__ivy_ngcc__/locale/en.integration.json +12 -4
  5. package/__ivy_ngcc__/locale/en.json +91 -30
  6. package/__ivy_ngcc__/locale/fr.common.json +43 -43
  7. package/__ivy_ngcc__/locale/fr.core.json +29 -23
  8. package/__ivy_ngcc__/locale/fr.geo.json +75 -27
  9. package/__ivy_ngcc__/locale/fr.integration.json +11 -3
  10. package/__ivy_ngcc__/locale/fr.json +91 -30
  11. package/assets/icons/mdi.svg +1 -1
  12. package/bundles/igo2-core.umd.js +125 -149
  13. package/bundles/igo2-core.umd.js.map +1 -1
  14. package/esm2015/lib/activity/activity.interceptor.js +1 -1
  15. package/esm2015/lib/activity/activity.module.js +1 -1
  16. package/esm2015/lib/activity/activity.service.js +1 -1
  17. package/esm2015/lib/activity/index.js +1 -1
  18. package/esm2015/lib/analytics/index.js +1 -1
  19. package/esm2015/lib/analytics/shared/analytics.interface.js +1 -1
  20. package/esm2015/lib/analytics/shared/analytics.service.js +1 -1
  21. package/esm2015/lib/analytics/shared/index.js +1 -1
  22. package/esm2015/lib/config/config.interface.js +1 -1
  23. package/esm2015/lib/config/config.module.js +1 -1
  24. package/esm2015/lib/config/config.provider.js +1 -1
  25. package/esm2015/lib/config/config.service.js +1 -1
  26. package/esm2015/lib/config/index.js +1 -1
  27. package/esm2015/lib/config/version.js +3 -3
  28. package/esm2015/lib/core.module.js +1 -1
  29. package/esm2015/lib/gesture/gesture.module.js +1 -1
  30. package/esm2015/lib/gesture/gesture.provider.js +1 -1
  31. package/esm2015/lib/language/index.js +1 -1
  32. package/esm2015/lib/language/language.module.js +1 -1
  33. package/esm2015/lib/language/shared/index.js +1 -1
  34. package/esm2015/lib/language/shared/language.interface.js +1 -1
  35. package/esm2015/lib/language/shared/language.loader.js +1 -1
  36. package/esm2015/lib/language/shared/language.provider.js +1 -1
  37. package/esm2015/lib/language/shared/language.service.js +1 -1
  38. package/esm2015/lib/language/shared/missing-translation.guard.js +2 -2
  39. package/esm2015/lib/media/index.js +1 -1
  40. package/esm2015/lib/media/media.enum.js +1 -1
  41. package/esm2015/lib/message/index.js +1 -2
  42. package/esm2015/lib/message/message.module.js +38 -9
  43. package/esm2015/lib/message/shared/index.js +1 -1
  44. package/esm2015/lib/message/shared/message.enum.js +3 -2
  45. package/esm2015/lib/message/shared/message.interface.js +1 -1
  46. package/esm2015/lib/message/shared/message.service.js +48 -71
  47. package/esm2015/lib/network/index.js +1 -1
  48. package/esm2015/lib/network/network.interfaces.js +1 -1
  49. package/esm2015/lib/network/network.service.js +1 -1
  50. package/esm2015/lib/request/error.interceptor.js +1 -1
  51. package/esm2015/lib/request/error.module.js +1 -1
  52. package/esm2015/lib/request/index.js +1 -1
  53. package/esm2015/lib/request/logging.interceptor.js +2 -2
  54. package/esm2015/lib/request/logging.module.js +1 -1
  55. package/esm2015/lib/route/route.interface.js +1 -1
  56. package/esm2015/lib/route/route.service.js +20 -4
  57. package/esm2015/lib/storage/index.js +1 -1
  58. package/esm2015/public_api.js +1 -1
  59. package/fesm2015/igo2-core.js +116 -133
  60. package/fesm2015/igo2-core.js.map +1 -1
  61. package/lib/message/index.d.ts +0 -1
  62. package/lib/message/message.module.d.ts +3 -4
  63. package/lib/message/shared/index.d.ts +1 -1
  64. package/lib/message/shared/message.enum.d.ts +2 -1
  65. package/lib/message/shared/message.interface.d.ts +4 -4
  66. package/lib/message/shared/message.service.d.ts +12 -11
  67. package/lib/route/route.interface.d.ts +1 -0
  68. package/lib/route/route.service.d.ts +4 -3
  69. package/locale/en.common.json +43 -43
  70. package/locale/en.core.json +29 -23
  71. package/locale/en.geo.json +74 -26
  72. package/locale/en.integration.json +12 -4
  73. package/locale/en.json +91 -30
  74. package/locale/fr.common.json +43 -43
  75. package/locale/fr.core.json +29 -23
  76. package/locale/fr.geo.json +75 -27
  77. package/locale/fr.integration.json +11 -3
  78. package/locale/fr.json +91 -30
  79. package/package.json +8 -7
  80. package/style/core.theming.scss +3 -1
  81. package/style/index.theming.scss +291 -71
  82. package/style/material.font.scss +9 -9
  83. package/style/partial/core.variables.scss +5 -3
  84. package/style/partial/media.scss +80 -80
  85. package/esm2015/lib/message/message-center/index.js +0 -2
  86. package/esm2015/lib/message/message-center/message-center.component.js +0 -43
  87. package/lib/message/message-center/index.d.ts +0 -1
  88. package/lib/message/message-center/message-center.component.d.ts +0 -19
@@ -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('@igo2/angular2-notifications'), 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', '@igo2/angular2-notifications', '@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.ng2notify, global.ng.material.icon, global.ng.platformBrowser, global.ng.router, global.ng.cdk.layout));
5
- }(this, (function (exports, i0, i2, http, operators, rxjs, utils, i1, i1$1, i1$2, i2$1, i1$3, i1$4) { 'use strict';
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, i2, i1$1, i2$1, i1$2, i1$3) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -13,25 +13,22 @@
13
13
  var d = Object.getOwnPropertyDescriptor(e, k);
14
14
  Object.defineProperty(n, k, d.get ? d : {
15
15
  enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
16
+ get: function () { return e[k]; }
19
17
  });
20
18
  }
21
19
  });
22
20
  }
23
- n['default'] = e;
21
+ n["default"] = e;
24
22
  return Object.freeze(n);
25
23
  }
26
24
 
27
25
  var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
28
- var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
29
26
  var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
27
+ var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
28
  var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
31
- var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
32
29
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
30
+ var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
33
31
  var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
34
- var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
35
32
 
36
33
  var ActivityService = /** @class */ (function () {
37
34
  function ActivityService() {
@@ -127,8 +124,8 @@
127
124
  })();
128
125
 
129
126
  var version = {
130
- lib: '1.9.0',
131
- releaseDate: 1632149524409
127
+ lib: '1.10.0',
128
+ releaseDate: 1639407270981
132
129
  };
133
130
 
134
131
  var ConfigService = /** @class */ (function () {
@@ -593,7 +590,7 @@
593
590
  }
594
591
  IgoMissingTranslationHandler.prototype.handle = function (params) {
595
592
  if (!params.translateService.langs.length) {
596
- var error = 'Translations are not yet loaded. \
593
+ var error = 'Translations are not yet loaded. \
597
594
  Check that the LanguageService is injected.';
598
595
  throw new Error(error);
599
596
  }
@@ -647,55 +644,6 @@
647
644
  })();
648
645
  (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoLanguageModule, { imports: [i1__namespace.TranslateModule], exports: [i1.TranslateModule] }); })();
649
646
 
650
- var _c0 = function (a0) { return { closeIcon: a0 }; };
651
- var MessageCenterComponent = /** @class */ (function () {
652
- function MessageCenterComponent() {
653
- this._options = {};
654
- }
655
- Object.defineProperty(MessageCenterComponent.prototype, "options", {
656
- get: function () {
657
- return Object.assign({}, MessageCenterComponent.defaultOptions, this._options);
658
- },
659
- set: function (value) {
660
- this._options = value;
661
- },
662
- enumerable: false,
663
- configurable: true
664
- });
665
- return MessageCenterComponent;
666
- }());
667
- MessageCenterComponent.defaultOptions = {
668
- timeOut: 5000,
669
- hasCloseIcon: false,
670
- showProgressBar: true,
671
- pauseOnHover: true,
672
- clickToClose: true,
673
- maxLength: 100,
674
- maxStack: 3,
675
- preventDuplicates: true
676
- };
677
- MessageCenterComponent.ɵfac = function MessageCenterComponent_Factory(t) { return new (t || MessageCenterComponent)(); };
678
- MessageCenterComponent.ɵcmp = /*@__PURE__*/ i0__namespace.ɵɵdefineComponent({ type: MessageCenterComponent, selectors: [["igo-message-center"]], inputs: { options: "options" }, decls: 1, vars: 4, consts: [[1, "mat-typography", 3, "ngClass", "options"]], template: function MessageCenterComponent_Template(rf, ctx) {
679
- if (rf & 1) {
680
- i0__namespace.ɵɵelement(0, "simple-notifications", 0);
681
- }
682
- if (rf & 2) {
683
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0, ctx.options.hasCloseIcon))("options", ctx.options);
684
- }
685
- }, directives: [i1__namespace$1.SimpleNotificationsComponent, i2__namespace.NgClass], styles: ["[_nghost-%COMP%] div.simple-notification-wrapper{bottom:0;right:calc(50% - 150px)}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){[_nghost-%COMP%] div.simple-notification-wrapper{right:0;left:0;width:100%}}[_nghost-%COMP%] .closeIcon .sn-title:after{content:\"close\";font-family:\"Material Icons\";font-feature-settings:\"liga\" 1;font-size:24px;font-weight:normal;right:5px;top:5px;position:absolute}[_nghost-%COMP%] .simple-notification .icon{top:0;left:0;width:45px;height:45px;height:100%;padding:7px}[_nghost-%COMP%] .simple-notification .icon mat-icon{display:flex;align-items:center;height:100%;font-size:32px}[_nghost-%COMP%] div.simple-notification{min-height:50px;margin-bottom:5px;padding-left:45px;padding-right:25px}[_nghost-%COMP%] div.simple-notification.noIcon{padding-left:25px}@media only screen and (orientation:portrait) and (max-width: 599px),only screen and (orientation:landscape) and (max-width: 959px){[_nghost-%COMP%] div.simple-notification{margin-bottom:0}}[_nghost-%COMP%] div.simple-notification .sn-title{line-height:23px;font-size:15px;font-weight:bold}[_nghost-%COMP%] div.simple-notification .sn-content{line-height:18px;font-size:15px}"] });
686
- (function () {
687
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MessageCenterComponent, [{
688
- type: i0.Component,
689
- args: [{
690
- selector: 'igo-message-center',
691
- templateUrl: './message-center.component.html',
692
- styleUrls: ['./message-center.component.scss']
693
- }]
694
- }], function () { return []; }, { options: [{
695
- type: i0.Input
696
- }] });
697
- })();
698
-
699
647
  var IgoMessageModule = /** @class */ (function () {
700
648
  function IgoMessageModule() {
701
649
  }
@@ -709,18 +657,48 @@
709
657
  }());
710
658
  IgoMessageModule.ɵfac = function IgoMessageModule_Factory(t) { return new (t || IgoMessageModule)(); };
711
659
  IgoMessageModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoMessageModule });
712
- IgoMessageModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[i2.CommonModule, i1$1.SimpleNotificationsModule.forRoot()]] });
660
+ IgoMessageModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[common.CommonModule,
661
+ i2.ToastrModule.forRoot({
662
+ positionClass: 'toast-bottom-right',
663
+ timeOut: 10000,
664
+ extendedTimeOut: 10000,
665
+ messageClass: 'toast-message mat-typography',
666
+ closeButton: true,
667
+ progressBar: true,
668
+ enableHtml: true,
669
+ tapToDismiss: true,
670
+ maxOpened: 4,
671
+ preventDuplicates: true,
672
+ resetTimeoutOnDuplicate: true,
673
+ countDuplicates: true,
674
+ includeTitleDuplicates: true
675
+ })]] });
713
676
  (function () {
714
677
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoMessageModule, [{
715
678
  type: i0.NgModule,
716
679
  args: [{
717
- imports: [i2.CommonModule, i1$1.SimpleNotificationsModule.forRoot()],
718
- declarations: [MessageCenterComponent],
719
- exports: [MessageCenterComponent]
680
+ imports: [common.CommonModule,
681
+ i2.ToastrModule.forRoot({
682
+ positionClass: 'toast-bottom-right',
683
+ timeOut: 10000,
684
+ extendedTimeOut: 10000,
685
+ messageClass: 'toast-message mat-typography',
686
+ closeButton: true,
687
+ progressBar: true,
688
+ enableHtml: true,
689
+ tapToDismiss: true,
690
+ maxOpened: 4,
691
+ preventDuplicates: true,
692
+ resetTimeoutOnDuplicate: true,
693
+ countDuplicates: true,
694
+ includeTitleDuplicates: true
695
+ })],
696
+ declarations: [],
697
+ exports: []
720
698
  }]
721
699
  }], null, null);
722
700
  })();
723
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoMessageModule, { declarations: [MessageCenterComponent], imports: [i2.CommonModule, i1__namespace$1.SimpleNotificationsModule], exports: [MessageCenterComponent] }); })();
701
+ (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoMessageModule, { imports: [common.CommonModule, i2__namespace.ToastrModule] }); })();
724
702
 
725
703
  var LanguageService = /** @class */ (function () {
726
704
  function LanguageService(translate) {
@@ -753,15 +731,17 @@
753
731
  exports.MessageType = void 0;
754
732
  (function (MessageType) {
755
733
  MessageType["ERROR"] = "error";
756
- MessageType["ALERT"] = "alert";
734
+ MessageType["ALERT"] = "warning";
735
+ MessageType["WARNING"] = "warning";
757
736
  MessageType["INFO"] = "info";
758
737
  MessageType["SUCCESS"] = "success";
759
738
  })(exports.MessageType || (exports.MessageType = {}));
760
739
 
761
740
  var MessageService = /** @class */ (function () {
762
- function MessageService(notificationService, configService) {
763
- this.notificationService = notificationService;
741
+ function MessageService(configService, toastr, languageService) {
764
742
  this.configService = configService;
743
+ this.toastr = toastr;
744
+ this.languageService = languageService;
765
745
  this.messages$ = new rxjs.BehaviorSubject([]);
766
746
  this.options = this.configService.getConfig('message') || {};
767
747
  }
@@ -783,78 +763,67 @@
783
763
  }
784
764
  if (currentDate > message.options.from && currentDate < message.options.to) {
785
765
  message = this.handleTemplate(message);
786
- var notification = void 0;
787
766
  if (message.text) {
788
- notification = this.notificationService.create(message.title, message.text, message.type, message.options);
789
- }
790
- else if (message.html) {
791
- if (!message.icon) {
792
- message.options.theClass = message.options.theClass
793
- ? message.options.theClass + ' noIcon'
794
- : 'noIcon';
767
+ var messageShown = void 0;
768
+ switch (message.type) {
769
+ case exports.MessageType.SUCCESS:
770
+ messageShown = this.success(message.text, message.title, message.options);
771
+ break;
772
+ case exports.MessageType.ERROR:
773
+ messageShown = this.error(message.text, message.title, message.options);
774
+ break;
775
+ case exports.MessageType.INFO:
776
+ messageShown = this.info(message.text, message.title, message.options);
777
+ break;
778
+ case exports.MessageType.ALERT:
779
+ case exports.MessageType.WARNING:
780
+ messageShown = this.alert(message.text, message.title, message.options);
781
+ break;
782
+ default:
783
+ messageShown = this.info(message.text, message.title, message.options);
784
+ break;
795
785
  }
796
- notification = this.notificationService.html(message.html, message.type, message.options);
786
+ message.options.id = messageShown.toastId;
797
787
  }
798
- else {
799
- return;
800
- }
801
- if (message.icon !== undefined) {
802
- this.addIcon(notification, message.icon);
803
- }
804
- message.options.id = notification.id;
805
- return notification;
806
788
  }
807
- return;
808
789
  };
809
790
  MessageService.prototype.success = function (text, title, options) {
791
+ if (title === void 0) { title = 'igo.core.message.success'; }
810
792
  if (options === void 0) { options = {}; }
811
- return this.message({
812
- text: text,
813
- title: title,
814
- icon: options.icon || 'check',
815
- options: options,
816
- type: exports.MessageType.SUCCESS
817
- });
793
+ var message = this.languageService.translate.instant(text);
794
+ var translatedTitle = this.languageService.translate.instant(title);
795
+ return this.toastr.success(message, translatedTitle, options);
818
796
  };
819
797
  MessageService.prototype.error = function (text, title, options) {
798
+ if (title === void 0) { title = 'igo.core.message.error'; }
820
799
  if (options === void 0) { options = {}; }
821
- return this.message({
822
- text: text,
823
- title: title,
824
- icon: options.icon || 'error_outline',
825
- options: options,
826
- type: exports.MessageType.ERROR
827
- });
800
+ var message = this.languageService.translate.instant(text);
801
+ var translatedTitle = this.languageService.translate.instant(title);
802
+ return this.toastr.error(message, translatedTitle, options);
828
803
  };
829
804
  MessageService.prototype.info = function (text, title, options) {
805
+ if (title === void 0) { title = 'igo.core.message.info'; }
830
806
  if (options === void 0) { options = {}; }
831
- return this.message({
832
- text: text,
833
- title: title,
834
- icon: options.icon || 'info_outline',
835
- options: options,
836
- type: exports.MessageType.INFO
837
- });
807
+ var message = this.languageService.translate.instant(text);
808
+ var translatedTitle = this.languageService.translate.instant(title);
809
+ return this.toastr.info(message, translatedTitle, options);
838
810
  };
839
811
  MessageService.prototype.alert = function (text, title, options) {
812
+ if (title === void 0) { title = 'igo.core.message.alert'; }
840
813
  if (options === void 0) { options = {}; }
841
- return this.message({
842
- text: text,
843
- title: title,
844
- icon: options.icon || 'access_alarm',
845
- options: options,
846
- type: exports.MessageType.ALERT
847
- });
814
+ var message = this.languageService.translate.instant(text);
815
+ var translatedTitle = this.languageService.translate.instant(title);
816
+ return this.toastr.warning(message, translatedTitle, options);
848
817
  };
849
818
  MessageService.prototype.remove = function (id) {
850
- this.notificationService.remove(id);
819
+ this.toastr.remove(id);
851
820
  };
852
821
  MessageService.prototype.removeAllAreNotError = function () {
853
822
  var e_1, _a;
854
823
  try {
855
824
  for (var _b = __values(this.messages$.value), _c = _b.next(); !_c.done; _c = _b.next()) {
856
825
  var mess = _c.value;
857
- if (mess.type !== 'error') {
826
+ if (mess.type !== exports.MessageType.ERROR) {
858
827
  this.remove(mess.options.id);
859
828
  }
860
829
  }
@@ -867,12 +836,6 @@
867
836
  finally { if (e_1) throw e_1.error; }
868
837
  }
869
838
  };
870
- MessageService.prototype.addIcon = function (notification, icon) {
871
- // There is no way to add an icon to a notification when reating
872
- // it so we simply set it on the notification directly.
873
- // See https://github.com/flauc/angular2-notifications/issues/165
874
- notification.icon = "\n <mat-icon class=\"material-icons mat-icon mat-list-avatar\" svgIcon=\"" + icon + "\">\n </mat-icon>";
875
- };
876
839
  MessageService.prototype.handleTemplate = function (message) {
877
840
  if (!this.options.template || message.html) {
878
841
  return message;
@@ -880,16 +843,14 @@
880
843
  var html = this.options.template;
881
844
  html = html.replace('${text}', message.text);
882
845
  html = html.replace('${title}', message.title);
883
- html = html.replace('${icon}', message.icon);
884
- message.html = html;
885
- message.text = undefined;
846
+ message.html = undefined;
847
+ message.text = html;
886
848
  message.title = undefined;
887
- message.icon = undefined;
888
849
  return message;
889
850
  };
890
851
  return MessageService;
891
852
  }());
892
- MessageService.ɵfac = function MessageService_Factory(t) { return new (t || MessageService)(i0__namespace.ɵɵinject(i1__namespace$1.NotificationsService), i0__namespace.ɵɵinject(ConfigService)); };
853
+ MessageService.ɵfac = function MessageService_Factory(t) { return new (t || MessageService)(i0__namespace.ɵɵinject(ConfigService), i0__namespace.ɵɵinject(i2__namespace.ToastrService), i0__namespace.ɵɵinject(LanguageService)); };
893
854
  MessageService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: MessageService, factory: MessageService.ɵfac, providedIn: 'root' });
894
855
  (function () {
895
856
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MessageService, [{
@@ -897,7 +858,7 @@
897
858
  args: [{
898
859
  providedIn: 'root'
899
860
  }]
900
- }], function () { return [{ type: i1__namespace$1.NotificationsService }, { type: ConfigService }]; }, null);
861
+ }], function () { return [{ type: ConfigService }, { type: i2__namespace.ToastrService }, { type: LanguageService }]; }, null);
901
862
  })();
902
863
 
903
864
  var ErrorInterceptor = /** @class */ (function () {
@@ -1011,10 +972,10 @@
1011
972
  };
1012
973
  return IgoCoreModule;
1013
974
  }());
1014
- IgoCoreModule.ɵfac = function IgoCoreModule_Factory(t) { return new (t || IgoCoreModule)(i0__namespace.ɵɵinject(i1__namespace$2.MatIconRegistry), i0__namespace.ɵɵinject(i2__namespace$1.DomSanitizer)); };
975
+ IgoCoreModule.ɵfac = function IgoCoreModule_Factory(t) { return new (t || IgoCoreModule)(i0__namespace.ɵɵinject(i1__namespace$1.MatIconRegistry), i0__namespace.ɵɵinject(i2__namespace$1.DomSanitizer)); };
1015
976
  IgoCoreModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoCoreModule });
1016
977
  IgoCoreModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
1017
- i2.CommonModule,
978
+ common.CommonModule,
1018
979
  http.HttpClientModule,
1019
980
  IgoActivityModule.forRoot(),
1020
981
  IgoConfigModule.forRoot(),
@@ -1031,7 +992,7 @@
1031
992
  type: i0.NgModule,
1032
993
  args: [{
1033
994
  imports: [
1034
- i2.CommonModule,
995
+ common.CommonModule,
1035
996
  http.HttpClientModule,
1036
997
  IgoActivityModule.forRoot(),
1037
998
  IgoConfigModule.forRoot(),
@@ -1048,10 +1009,10 @@
1048
1009
  IgoMessageModule
1049
1010
  ]
1050
1011
  }]
1051
- }], function () { return [{ type: i1__namespace$2.MatIconRegistry }, { type: i2__namespace$1.DomSanitizer }]; }, null);
1012
+ }], function () { return [{ type: i1__namespace$1.MatIconRegistry }, { type: i2__namespace$1.DomSanitizer }]; }, null);
1052
1013
  })();
1053
1014
  (function () {
1054
- (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoCoreModule, { imports: [i2.CommonModule,
1015
+ (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoCoreModule, { imports: [common.CommonModule,
1055
1016
  http.HttpClientModule, IgoActivityModule, IgoConfigModule, IgoErrorModule, IgoLanguageModule, IgoMessageModule], exports: [IgoActivityModule,
1056
1017
  IgoConfigModule,
1057
1018
  IgoErrorModule,
@@ -1178,7 +1139,8 @@
1178
1139
  };
1179
1140
  }
1180
1141
  var RouteService = /** @class */ (function () {
1181
- function RouteService(route, options) {
1142
+ function RouteService(router, route, options) {
1143
+ this.router = router;
1182
1144
  this.route = route;
1183
1145
  var defaultOptions = {
1184
1146
  centerKey: 'center',
@@ -1189,6 +1151,7 @@
1189
1151
  visibleOnLayersKey: 'visiblelayers',
1190
1152
  visibleOffLayersKey: 'invisiblelayers',
1191
1153
  directionsCoordKey: 'routing',
1154
+ directionsOptionsKey: 'routingOptions',
1192
1155
  toolKey: 'tool',
1193
1156
  wmsUrlKey: 'wmsUrl',
1194
1157
  wmsLayersKey: 'wmsLayers',
@@ -1206,6 +1169,20 @@
1206
1169
  }
1207
1170
  Object.defineProperty(RouteService.prototype, "queryParams", {
1208
1171
  get: function () {
1172
+ var url = decodeURIComponent(location.search);
1173
+ if (url.includes('¢er=')) {
1174
+ url = url.replace('¢er', '&center');
1175
+ var queryParams = url
1176
+ .slice(1)
1177
+ .split('&')
1178
+ .map(function (p) { return p.split('='); })
1179
+ .reduce(function (obj, pair) {
1180
+ var _a = __read(pair.map(decodeURIComponent), 2), key = _a[0], value = _a[1];
1181
+ obj[key] = value;
1182
+ return obj;
1183
+ }, {});
1184
+ this.router.navigate([], { queryParams: queryParams });
1185
+ }
1209
1186
  return this.route.queryParams;
1210
1187
  },
1211
1188
  enumerable: false,
@@ -1213,7 +1190,7 @@
1213
1190
  });
1214
1191
  return RouteService;
1215
1192
  }());
1216
- RouteService.ɵfac = function RouteService_Factory(t) { return new (t || RouteService)(i0__namespace.ɵɵinject(i1__namespace$3.ActivatedRoute), i0__namespace.ɵɵinject(ROUTE_SERVICE_OPTIONS, 8)); };
1193
+ RouteService.ɵfac = function RouteService_Factory(t) { return new (t || RouteService)(i0__namespace.ɵɵinject(i1__namespace$2.Router), i0__namespace.ɵɵinject(i1__namespace$2.ActivatedRoute), i0__namespace.ɵɵinject(ROUTE_SERVICE_OPTIONS, 8)); };
1217
1194
  RouteService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: RouteService, factory: RouteService.ɵfac, providedIn: 'root' });
1218
1195
  (function () {
1219
1196
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RouteService, [{
@@ -1222,7 +1199,7 @@
1222
1199
  providedIn: 'root'
1223
1200
  }]
1224
1201
  }], function () {
1225
- return [{ type: i1__namespace$3.ActivatedRoute }, { type: undefined, decorators: [{
1202
+ return [{ type: i1__namespace$2.Router }, { type: i1__namespace$2.ActivatedRoute }, { type: undefined, decorators: [{
1226
1203
  type: i0.Inject,
1227
1204
  args: [ROUTE_SERVICE_OPTIONS]
1228
1205
  }, {
@@ -1328,38 +1305,38 @@
1328
1305
  this.media$ = new rxjs.BehaviorSubject(undefined);
1329
1306
  this.orientation$ = new rxjs.BehaviorSubject(undefined);
1330
1307
  breakpointObserver
1331
- .observe([i1$4.Breakpoints.HandsetLandscape])
1308
+ .observe([i1$3.Breakpoints.HandsetLandscape])
1332
1309
  .subscribe(function (res) {
1333
1310
  if (res.matches) {
1334
1311
  _this.media$.next(exports.Media.Mobile);
1335
1312
  _this.orientation$.next(exports.MediaOrientation.Landscape);
1336
1313
  }
1337
1314
  });
1338
- breakpointObserver.observe([i1$4.Breakpoints.HandsetPortrait]).subscribe(function (res) {
1315
+ breakpointObserver.observe([i1$3.Breakpoints.HandsetPortrait]).subscribe(function (res) {
1339
1316
  if (res.matches) {
1340
1317
  _this.media$.next(exports.Media.Mobile);
1341
1318
  _this.orientation$.next(exports.MediaOrientation.Portrait);
1342
1319
  }
1343
1320
  });
1344
- breakpointObserver.observe([i1$4.Breakpoints.TabletLandscape]).subscribe(function (res) {
1321
+ breakpointObserver.observe([i1$3.Breakpoints.TabletLandscape]).subscribe(function (res) {
1345
1322
  if (res.matches) {
1346
1323
  _this.media$.next(exports.Media.Tablet);
1347
1324
  _this.orientation$.next(exports.MediaOrientation.Landscape);
1348
1325
  }
1349
1326
  });
1350
- breakpointObserver.observe([i1$4.Breakpoints.TabletPortrait]).subscribe(function (res) {
1327
+ breakpointObserver.observe([i1$3.Breakpoints.TabletPortrait]).subscribe(function (res) {
1351
1328
  if (res.matches) {
1352
1329
  _this.media$.next(exports.Media.Tablet);
1353
1330
  _this.orientation$.next(exports.MediaOrientation.Portrait);
1354
1331
  }
1355
1332
  });
1356
- breakpointObserver.observe([i1$4.Breakpoints.WebLandscape]).subscribe(function (res) {
1333
+ breakpointObserver.observe([i1$3.Breakpoints.WebLandscape]).subscribe(function (res) {
1357
1334
  if (res.matches) {
1358
1335
  _this.media$.next(exports.Media.Desktop);
1359
1336
  _this.orientation$.next(exports.MediaOrientation.Landscape);
1360
1337
  }
1361
1338
  });
1362
- breakpointObserver.observe([i1$4.Breakpoints.WebPortrait]).subscribe(function (res) {
1339
+ breakpointObserver.observe([i1$3.Breakpoints.WebPortrait]).subscribe(function (res) {
1363
1340
  if (res.matches) {
1364
1341
  _this.media$.next(exports.Media.Desktop);
1365
1342
  _this.orientation$.next(exports.MediaOrientation.Portrait);
@@ -1385,7 +1362,7 @@
1385
1362
  };
1386
1363
  return MediaService;
1387
1364
  }());
1388
- MediaService.ɵfac = function MediaService_Factory(t) { return new (t || MediaService)(i0__namespace.ɵɵinject(i1__namespace$4.BreakpointObserver)); };
1365
+ MediaService.ɵfac = function MediaService_Factory(t) { return new (t || MediaService)(i0__namespace.ɵɵinject(i1__namespace$3.BreakpointObserver)); };
1389
1366
  MediaService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: MediaService, factory: MediaService.ɵfac, providedIn: 'root' });
1390
1367
  (function () {
1391
1368
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MediaService, [{
@@ -1393,7 +1370,7 @@
1393
1370
  args: [{
1394
1371
  providedIn: 'root'
1395
1372
  }]
1396
- }], function () { return [{ type: i1__namespace$4.BreakpointObserver }]; }, null);
1373
+ }], function () { return [{ type: i1__namespace$3.BreakpointObserver }]; }, null);
1397
1374
  })();
1398
1375
 
1399
1376
  exports.StorageScope = void 0;
@@ -1576,7 +1553,6 @@
1576
1553
  exports.LanguageService = LanguageService;
1577
1554
  exports.LoggingInterceptor = LoggingInterceptor;
1578
1555
  exports.MediaService = MediaService;
1579
- exports.MessageCenterComponent = MessageCenterComponent;
1580
1556
  exports.MessageService = MessageService;
1581
1557
  exports.NetworkService = NetworkService;
1582
1558
  exports.ROUTE_SERVICE_OPTIONS = ROUTE_SERVICE_OPTIONS;
@@ -1593,5 +1569,5 @@
1593
1569
 
1594
1570
  Object.defineProperty(exports, '__esModule', { value: true });
1595
1571
 
1596
- })));
1572
+ }));
1597
1573
  //# sourceMappingURL=igo2-core.umd.js.map