@igo2/core 1.9.4 → 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.
- package/__ivy_ngcc__/locale/en.core.json +6 -0
- package/__ivy_ngcc__/locale/en.geo.json +8 -4
- package/__ivy_ngcc__/locale/en.integration.json +3 -1
- package/__ivy_ngcc__/locale/en.json +15 -3
- package/__ivy_ngcc__/locale/fr.core.json +6 -0
- package/__ivy_ngcc__/locale/fr.geo.json +9 -5
- package/__ivy_ngcc__/locale/fr.integration.json +3 -1
- package/__ivy_ngcc__/locale/fr.json +16 -4
- package/bundles/igo2-core.umd.js +104 -142
- package/bundles/igo2-core.umd.js.map +1 -1
- package/esm2015/lib/config/version.js +3 -3
- package/esm2015/lib/message/index.js +1 -2
- package/esm2015/lib/message/message.module.js +38 -9
- package/esm2015/lib/message/shared/index.js +1 -1
- package/esm2015/lib/message/shared/message.enum.js +3 -2
- package/esm2015/lib/message/shared/message.interface.js +1 -1
- package/esm2015/lib/message/shared/message.service.js +48 -71
- package/fesm2015/igo2-core.js +97 -130
- package/fesm2015/igo2-core.js.map +1 -1
- package/lib/message/index.d.ts +0 -1
- package/lib/message/message.module.d.ts +3 -4
- package/lib/message/shared/index.d.ts +1 -1
- package/lib/message/shared/message.enum.d.ts +2 -1
- package/lib/message/shared/message.interface.d.ts +4 -4
- package/lib/message/shared/message.service.d.ts +12 -11
- package/locale/en.core.json +6 -0
- package/locale/en.geo.json +8 -4
- package/locale/en.integration.json +3 -1
- package/locale/en.json +15 -3
- package/locale/fr.core.json +6 -0
- package/locale/fr.geo.json +9 -5
- package/locale/fr.integration.json +3 -1
- package/locale/fr.json +16 -4
- package/package.json +4 -4
- package/style/core.theming.scss +3 -1
- package/style/index.theming.scss +212 -36
- package/esm2015/lib/message/message-center/index.js +0 -2
- package/esm2015/lib/message/message-center/message-center.component.js +0 -43
- package/lib/message/message-center/index.d.ts +0 -1
- package/lib/message/message-center/message-center.component.d.ts +0 -19
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('
|
|
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', '
|
|
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.
|
|
5
|
-
})(this, (function (exports, i0,
|
|
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;
|
|
@@ -23,13 +23,12 @@
|
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
26
|
-
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
27
26
|
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
27
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
28
28
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
29
|
-
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
30
29
|
var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
|
|
30
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
31
31
|
var i1__namespace$3 = /*#__PURE__*/_interopNamespace(i1$3);
|
|
32
|
-
var i1__namespace$4 = /*#__PURE__*/_interopNamespace(i1$4);
|
|
33
32
|
|
|
34
33
|
var ActivityService = /** @class */ (function () {
|
|
35
34
|
function ActivityService() {
|
|
@@ -125,8 +124,8 @@
|
|
|
125
124
|
})();
|
|
126
125
|
|
|
127
126
|
var version = {
|
|
128
|
-
lib: '1.
|
|
129
|
-
releaseDate:
|
|
127
|
+
lib: '1.10.0',
|
|
128
|
+
releaseDate: 1639407270981
|
|
130
129
|
};
|
|
131
130
|
|
|
132
131
|
var ConfigService = /** @class */ (function () {
|
|
@@ -645,55 +644,6 @@
|
|
|
645
644
|
})();
|
|
646
645
|
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoLanguageModule, { imports: [i1__namespace.TranslateModule], exports: [i1.TranslateModule] }); })();
|
|
647
646
|
|
|
648
|
-
var _c0 = function (a0) { return { closeIcon: a0 }; };
|
|
649
|
-
var MessageCenterComponent = /** @class */ (function () {
|
|
650
|
-
function MessageCenterComponent() {
|
|
651
|
-
this._options = {};
|
|
652
|
-
}
|
|
653
|
-
Object.defineProperty(MessageCenterComponent.prototype, "options", {
|
|
654
|
-
get: function () {
|
|
655
|
-
return Object.assign({}, MessageCenterComponent.defaultOptions, this._options);
|
|
656
|
-
},
|
|
657
|
-
set: function (value) {
|
|
658
|
-
this._options = value;
|
|
659
|
-
},
|
|
660
|
-
enumerable: false,
|
|
661
|
-
configurable: true
|
|
662
|
-
});
|
|
663
|
-
return MessageCenterComponent;
|
|
664
|
-
}());
|
|
665
|
-
MessageCenterComponent.defaultOptions = {
|
|
666
|
-
timeOut: 5000,
|
|
667
|
-
hasCloseIcon: false,
|
|
668
|
-
showProgressBar: true,
|
|
669
|
-
pauseOnHover: true,
|
|
670
|
-
clickToClose: true,
|
|
671
|
-
maxLength: 100,
|
|
672
|
-
maxStack: 3,
|
|
673
|
-
preventDuplicates: true
|
|
674
|
-
};
|
|
675
|
-
MessageCenterComponent.ɵfac = function MessageCenterComponent_Factory(t) { return new (t || MessageCenterComponent)(); };
|
|
676
|
-
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) {
|
|
677
|
-
if (rf & 1) {
|
|
678
|
-
i0__namespace.ɵɵelement(0, "simple-notifications", 0);
|
|
679
|
-
}
|
|
680
|
-
if (rf & 2) {
|
|
681
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c0, ctx.options.hasCloseIcon))("options", ctx.options);
|
|
682
|
-
}
|
|
683
|
-
}, 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}"] });
|
|
684
|
-
(function () {
|
|
685
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MessageCenterComponent, [{
|
|
686
|
-
type: i0.Component,
|
|
687
|
-
args: [{
|
|
688
|
-
selector: 'igo-message-center',
|
|
689
|
-
templateUrl: './message-center.component.html',
|
|
690
|
-
styleUrls: ['./message-center.component.scss']
|
|
691
|
-
}]
|
|
692
|
-
}], function () { return []; }, { options: [{
|
|
693
|
-
type: i0.Input
|
|
694
|
-
}] });
|
|
695
|
-
})();
|
|
696
|
-
|
|
697
647
|
var IgoMessageModule = /** @class */ (function () {
|
|
698
648
|
function IgoMessageModule() {
|
|
699
649
|
}
|
|
@@ -707,18 +657,48 @@
|
|
|
707
657
|
}());
|
|
708
658
|
IgoMessageModule.ɵfac = function IgoMessageModule_Factory(t) { return new (t || IgoMessageModule)(); };
|
|
709
659
|
IgoMessageModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoMessageModule });
|
|
710
|
-
IgoMessageModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
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
|
+
})]] });
|
|
711
676
|
(function () {
|
|
712
677
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(IgoMessageModule, [{
|
|
713
678
|
type: i0.NgModule,
|
|
714
679
|
args: [{
|
|
715
|
-
imports: [
|
|
716
|
-
|
|
717
|
-
|
|
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: []
|
|
718
698
|
}]
|
|
719
699
|
}], null, null);
|
|
720
700
|
})();
|
|
721
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoMessageModule, {
|
|
701
|
+
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoMessageModule, { imports: [common.CommonModule, i2__namespace.ToastrModule] }); })();
|
|
722
702
|
|
|
723
703
|
var LanguageService = /** @class */ (function () {
|
|
724
704
|
function LanguageService(translate) {
|
|
@@ -751,15 +731,17 @@
|
|
|
751
731
|
exports.MessageType = void 0;
|
|
752
732
|
(function (MessageType) {
|
|
753
733
|
MessageType["ERROR"] = "error";
|
|
754
|
-
MessageType["ALERT"] = "
|
|
734
|
+
MessageType["ALERT"] = "warning";
|
|
735
|
+
MessageType["WARNING"] = "warning";
|
|
755
736
|
MessageType["INFO"] = "info";
|
|
756
737
|
MessageType["SUCCESS"] = "success";
|
|
757
738
|
})(exports.MessageType || (exports.MessageType = {}));
|
|
758
739
|
|
|
759
740
|
var MessageService = /** @class */ (function () {
|
|
760
|
-
function MessageService(
|
|
761
|
-
this.notificationService = notificationService;
|
|
741
|
+
function MessageService(configService, toastr, languageService) {
|
|
762
742
|
this.configService = configService;
|
|
743
|
+
this.toastr = toastr;
|
|
744
|
+
this.languageService = languageService;
|
|
763
745
|
this.messages$ = new rxjs.BehaviorSubject([]);
|
|
764
746
|
this.options = this.configService.getConfig('message') || {};
|
|
765
747
|
}
|
|
@@ -781,78 +763,67 @@
|
|
|
781
763
|
}
|
|
782
764
|
if (currentDate > message.options.from && currentDate < message.options.to) {
|
|
783
765
|
message = this.handleTemplate(message);
|
|
784
|
-
var notification = void 0;
|
|
785
766
|
if (message.text) {
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
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;
|
|
793
785
|
}
|
|
794
|
-
|
|
795
|
-
}
|
|
796
|
-
else {
|
|
797
|
-
return;
|
|
786
|
+
message.options.id = messageShown.toastId;
|
|
798
787
|
}
|
|
799
|
-
if (message.icon !== undefined) {
|
|
800
|
-
this.addIcon(notification, message.icon);
|
|
801
|
-
}
|
|
802
|
-
message.options.id = notification.id;
|
|
803
|
-
return notification;
|
|
804
788
|
}
|
|
805
|
-
return;
|
|
806
789
|
};
|
|
807
790
|
MessageService.prototype.success = function (text, title, options) {
|
|
791
|
+
if (title === void 0) { title = 'igo.core.message.success'; }
|
|
808
792
|
if (options === void 0) { options = {}; }
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
icon: options.icon || 'check',
|
|
813
|
-
options: options,
|
|
814
|
-
type: exports.MessageType.SUCCESS
|
|
815
|
-
});
|
|
793
|
+
var message = this.languageService.translate.instant(text);
|
|
794
|
+
var translatedTitle = this.languageService.translate.instant(title);
|
|
795
|
+
return this.toastr.success(message, translatedTitle, options);
|
|
816
796
|
};
|
|
817
797
|
MessageService.prototype.error = function (text, title, options) {
|
|
798
|
+
if (title === void 0) { title = 'igo.core.message.error'; }
|
|
818
799
|
if (options === void 0) { options = {}; }
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
icon: options.icon || 'error_outline',
|
|
823
|
-
options: options,
|
|
824
|
-
type: exports.MessageType.ERROR
|
|
825
|
-
});
|
|
800
|
+
var message = this.languageService.translate.instant(text);
|
|
801
|
+
var translatedTitle = this.languageService.translate.instant(title);
|
|
802
|
+
return this.toastr.error(message, translatedTitle, options);
|
|
826
803
|
};
|
|
827
804
|
MessageService.prototype.info = function (text, title, options) {
|
|
805
|
+
if (title === void 0) { title = 'igo.core.message.info'; }
|
|
828
806
|
if (options === void 0) { options = {}; }
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
icon: options.icon || 'info_outline',
|
|
833
|
-
options: options,
|
|
834
|
-
type: exports.MessageType.INFO
|
|
835
|
-
});
|
|
807
|
+
var message = this.languageService.translate.instant(text);
|
|
808
|
+
var translatedTitle = this.languageService.translate.instant(title);
|
|
809
|
+
return this.toastr.info(message, translatedTitle, options);
|
|
836
810
|
};
|
|
837
811
|
MessageService.prototype.alert = function (text, title, options) {
|
|
812
|
+
if (title === void 0) { title = 'igo.core.message.alert'; }
|
|
838
813
|
if (options === void 0) { options = {}; }
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
icon: options.icon || 'access_alarm',
|
|
843
|
-
options: options,
|
|
844
|
-
type: exports.MessageType.ALERT
|
|
845
|
-
});
|
|
814
|
+
var message = this.languageService.translate.instant(text);
|
|
815
|
+
var translatedTitle = this.languageService.translate.instant(title);
|
|
816
|
+
return this.toastr.warning(message, translatedTitle, options);
|
|
846
817
|
};
|
|
847
818
|
MessageService.prototype.remove = function (id) {
|
|
848
|
-
this.
|
|
819
|
+
this.toastr.remove(id);
|
|
849
820
|
};
|
|
850
821
|
MessageService.prototype.removeAllAreNotError = function () {
|
|
851
822
|
var e_1, _a;
|
|
852
823
|
try {
|
|
853
824
|
for (var _b = __values(this.messages$.value), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
854
825
|
var mess = _c.value;
|
|
855
|
-
if (mess.type !==
|
|
826
|
+
if (mess.type !== exports.MessageType.ERROR) {
|
|
856
827
|
this.remove(mess.options.id);
|
|
857
828
|
}
|
|
858
829
|
}
|
|
@@ -865,12 +836,6 @@
|
|
|
865
836
|
finally { if (e_1) throw e_1.error; }
|
|
866
837
|
}
|
|
867
838
|
};
|
|
868
|
-
MessageService.prototype.addIcon = function (notification, icon) {
|
|
869
|
-
// There is no way to add an icon to a notification when reating
|
|
870
|
-
// it so we simply set it on the notification directly.
|
|
871
|
-
// See https://github.com/flauc/angular2-notifications/issues/165
|
|
872
|
-
notification.icon = "\n <mat-icon class=\"material-icons mat-icon mat-list-avatar\" svgIcon=\"" + icon + "\">\n </mat-icon>";
|
|
873
|
-
};
|
|
874
839
|
MessageService.prototype.handleTemplate = function (message) {
|
|
875
840
|
if (!this.options.template || message.html) {
|
|
876
841
|
return message;
|
|
@@ -878,16 +843,14 @@
|
|
|
878
843
|
var html = this.options.template;
|
|
879
844
|
html = html.replace('${text}', message.text);
|
|
880
845
|
html = html.replace('${title}', message.title);
|
|
881
|
-
html =
|
|
882
|
-
message.
|
|
883
|
-
message.text = undefined;
|
|
846
|
+
message.html = undefined;
|
|
847
|
+
message.text = html;
|
|
884
848
|
message.title = undefined;
|
|
885
|
-
message.icon = undefined;
|
|
886
849
|
return message;
|
|
887
850
|
};
|
|
888
851
|
return MessageService;
|
|
889
852
|
}());
|
|
890
|
-
MessageService.ɵfac = function MessageService_Factory(t) { return new (t || MessageService)(i0__namespace.ɵɵinject(
|
|
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)); };
|
|
891
854
|
MessageService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: MessageService, factory: MessageService.ɵfac, providedIn: 'root' });
|
|
892
855
|
(function () {
|
|
893
856
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MessageService, [{
|
|
@@ -895,7 +858,7 @@
|
|
|
895
858
|
args: [{
|
|
896
859
|
providedIn: 'root'
|
|
897
860
|
}]
|
|
898
|
-
}], function () { return [{ type:
|
|
861
|
+
}], function () { return [{ type: ConfigService }, { type: i2__namespace.ToastrService }, { type: LanguageService }]; }, null);
|
|
899
862
|
})();
|
|
900
863
|
|
|
901
864
|
var ErrorInterceptor = /** @class */ (function () {
|
|
@@ -1009,10 +972,10 @@
|
|
|
1009
972
|
};
|
|
1010
973
|
return IgoCoreModule;
|
|
1011
974
|
}());
|
|
1012
|
-
IgoCoreModule.ɵfac = function IgoCoreModule_Factory(t) { return new (t || IgoCoreModule)(i0__namespace.ɵɵinject(i1__namespace$
|
|
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)); };
|
|
1013
976
|
IgoCoreModule.ɵmod = /*@__PURE__*/ i0__namespace.ɵɵdefineNgModule({ type: IgoCoreModule });
|
|
1014
977
|
IgoCoreModule.ɵinj = /*@__PURE__*/ i0__namespace.ɵɵdefineInjector({ imports: [[
|
|
1015
|
-
|
|
978
|
+
common.CommonModule,
|
|
1016
979
|
http.HttpClientModule,
|
|
1017
980
|
IgoActivityModule.forRoot(),
|
|
1018
981
|
IgoConfigModule.forRoot(),
|
|
@@ -1029,7 +992,7 @@
|
|
|
1029
992
|
type: i0.NgModule,
|
|
1030
993
|
args: [{
|
|
1031
994
|
imports: [
|
|
1032
|
-
|
|
995
|
+
common.CommonModule,
|
|
1033
996
|
http.HttpClientModule,
|
|
1034
997
|
IgoActivityModule.forRoot(),
|
|
1035
998
|
IgoConfigModule.forRoot(),
|
|
@@ -1046,10 +1009,10 @@
|
|
|
1046
1009
|
IgoMessageModule
|
|
1047
1010
|
]
|
|
1048
1011
|
}]
|
|
1049
|
-
}], function () { return [{ type: i1__namespace$
|
|
1012
|
+
}], function () { return [{ type: i1__namespace$1.MatIconRegistry }, { type: i2__namespace$1.DomSanitizer }]; }, null);
|
|
1050
1013
|
})();
|
|
1051
1014
|
(function () {
|
|
1052
|
-
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoCoreModule, { imports: [
|
|
1015
|
+
(typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(IgoCoreModule, { imports: [common.CommonModule,
|
|
1053
1016
|
http.HttpClientModule, IgoActivityModule, IgoConfigModule, IgoErrorModule, IgoLanguageModule, IgoMessageModule], exports: [IgoActivityModule,
|
|
1054
1017
|
IgoConfigModule,
|
|
1055
1018
|
IgoErrorModule,
|
|
@@ -1227,7 +1190,7 @@
|
|
|
1227
1190
|
});
|
|
1228
1191
|
return RouteService;
|
|
1229
1192
|
}());
|
|
1230
|
-
RouteService.ɵfac = function RouteService_Factory(t) { return new (t || RouteService)(i0__namespace.ɵɵinject(i1__namespace$
|
|
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)); };
|
|
1231
1194
|
RouteService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: RouteService, factory: RouteService.ɵfac, providedIn: 'root' });
|
|
1232
1195
|
(function () {
|
|
1233
1196
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RouteService, [{
|
|
@@ -1236,7 +1199,7 @@
|
|
|
1236
1199
|
providedIn: 'root'
|
|
1237
1200
|
}]
|
|
1238
1201
|
}], function () {
|
|
1239
|
-
return [{ type: i1__namespace$
|
|
1202
|
+
return [{ type: i1__namespace$2.Router }, { type: i1__namespace$2.ActivatedRoute }, { type: undefined, decorators: [{
|
|
1240
1203
|
type: i0.Inject,
|
|
1241
1204
|
args: [ROUTE_SERVICE_OPTIONS]
|
|
1242
1205
|
}, {
|
|
@@ -1342,38 +1305,38 @@
|
|
|
1342
1305
|
this.media$ = new rxjs.BehaviorSubject(undefined);
|
|
1343
1306
|
this.orientation$ = new rxjs.BehaviorSubject(undefined);
|
|
1344
1307
|
breakpointObserver
|
|
1345
|
-
.observe([i1$
|
|
1308
|
+
.observe([i1$3.Breakpoints.HandsetLandscape])
|
|
1346
1309
|
.subscribe(function (res) {
|
|
1347
1310
|
if (res.matches) {
|
|
1348
1311
|
_this.media$.next(exports.Media.Mobile);
|
|
1349
1312
|
_this.orientation$.next(exports.MediaOrientation.Landscape);
|
|
1350
1313
|
}
|
|
1351
1314
|
});
|
|
1352
|
-
breakpointObserver.observe([i1$
|
|
1315
|
+
breakpointObserver.observe([i1$3.Breakpoints.HandsetPortrait]).subscribe(function (res) {
|
|
1353
1316
|
if (res.matches) {
|
|
1354
1317
|
_this.media$.next(exports.Media.Mobile);
|
|
1355
1318
|
_this.orientation$.next(exports.MediaOrientation.Portrait);
|
|
1356
1319
|
}
|
|
1357
1320
|
});
|
|
1358
|
-
breakpointObserver.observe([i1$
|
|
1321
|
+
breakpointObserver.observe([i1$3.Breakpoints.TabletLandscape]).subscribe(function (res) {
|
|
1359
1322
|
if (res.matches) {
|
|
1360
1323
|
_this.media$.next(exports.Media.Tablet);
|
|
1361
1324
|
_this.orientation$.next(exports.MediaOrientation.Landscape);
|
|
1362
1325
|
}
|
|
1363
1326
|
});
|
|
1364
|
-
breakpointObserver.observe([i1$
|
|
1327
|
+
breakpointObserver.observe([i1$3.Breakpoints.TabletPortrait]).subscribe(function (res) {
|
|
1365
1328
|
if (res.matches) {
|
|
1366
1329
|
_this.media$.next(exports.Media.Tablet);
|
|
1367
1330
|
_this.orientation$.next(exports.MediaOrientation.Portrait);
|
|
1368
1331
|
}
|
|
1369
1332
|
});
|
|
1370
|
-
breakpointObserver.observe([i1$
|
|
1333
|
+
breakpointObserver.observe([i1$3.Breakpoints.WebLandscape]).subscribe(function (res) {
|
|
1371
1334
|
if (res.matches) {
|
|
1372
1335
|
_this.media$.next(exports.Media.Desktop);
|
|
1373
1336
|
_this.orientation$.next(exports.MediaOrientation.Landscape);
|
|
1374
1337
|
}
|
|
1375
1338
|
});
|
|
1376
|
-
breakpointObserver.observe([i1$
|
|
1339
|
+
breakpointObserver.observe([i1$3.Breakpoints.WebPortrait]).subscribe(function (res) {
|
|
1377
1340
|
if (res.matches) {
|
|
1378
1341
|
_this.media$.next(exports.Media.Desktop);
|
|
1379
1342
|
_this.orientation$.next(exports.MediaOrientation.Portrait);
|
|
@@ -1399,7 +1362,7 @@
|
|
|
1399
1362
|
};
|
|
1400
1363
|
return MediaService;
|
|
1401
1364
|
}());
|
|
1402
|
-
MediaService.ɵfac = function MediaService_Factory(t) { return new (t || MediaService)(i0__namespace.ɵɵinject(i1__namespace$
|
|
1365
|
+
MediaService.ɵfac = function MediaService_Factory(t) { return new (t || MediaService)(i0__namespace.ɵɵinject(i1__namespace$3.BreakpointObserver)); };
|
|
1403
1366
|
MediaService.ɵprov = /*@__PURE__*/ i0__namespace.ɵɵdefineInjectable({ token: MediaService, factory: MediaService.ɵfac, providedIn: 'root' });
|
|
1404
1367
|
(function () {
|
|
1405
1368
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MediaService, [{
|
|
@@ -1407,7 +1370,7 @@
|
|
|
1407
1370
|
args: [{
|
|
1408
1371
|
providedIn: 'root'
|
|
1409
1372
|
}]
|
|
1410
|
-
}], function () { return [{ type: i1__namespace$
|
|
1373
|
+
}], function () { return [{ type: i1__namespace$3.BreakpointObserver }]; }, null);
|
|
1411
1374
|
})();
|
|
1412
1375
|
|
|
1413
1376
|
exports.StorageScope = void 0;
|
|
@@ -1590,7 +1553,6 @@
|
|
|
1590
1553
|
exports.LanguageService = LanguageService;
|
|
1591
1554
|
exports.LoggingInterceptor = LoggingInterceptor;
|
|
1592
1555
|
exports.MediaService = MediaService;
|
|
1593
|
-
exports.MessageCenterComponent = MessageCenterComponent;
|
|
1594
1556
|
exports.MessageService = MessageService;
|
|
1595
1557
|
exports.NetworkService = NetworkService;
|
|
1596
1558
|
exports.ROUTE_SERVICE_OPTIONS = ROUTE_SERVICE_OPTIONS;
|