@esfaenza/extensions 11.2.52 → 11.2.54
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/bundles/esfaenza-extensions.umd.js +10 -3
- package/bundles/esfaenza-extensions.umd.js.map +1 -1
- package/bundles/esfaenza-extensions.umd.min.js +1 -1
- package/bundles/esfaenza-extensions.umd.min.js.map +1 -1
- package/esfaenza-extensions.metadata.json +1 -1
- package/esm2015/lib/services/extensions.messages.service.js +8 -5
- package/fesm2015/esfaenza-extensions.js +7 -4
- package/fesm2015/esfaenza-extensions.js.map +1 -1
- package/lib/services/extensions.messages.service.d.ts +4 -3
- package/package.json +3 -3
|
@@ -59,9 +59,9 @@
|
|
|
59
59
|
*
|
|
60
60
|
* @ignore
|
|
61
61
|
*/
|
|
62
|
-
function MessageService(
|
|
62
|
+
function MessageService(injector, FANCY_ALERTS, LOCALE) {
|
|
63
63
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
|
|
64
|
-
this.
|
|
64
|
+
this.injector = injector;
|
|
65
65
|
this.FANCY_ALERTS = FANCY_ALERTS;
|
|
66
66
|
this.LOCALE = LOCALE;
|
|
67
67
|
/**
|
|
@@ -165,6 +165,13 @@
|
|
|
165
165
|
icon: "info"
|
|
166
166
|
});
|
|
167
167
|
}
|
|
168
|
+
Object.defineProperty(MessageService.prototype, "toastr", {
|
|
169
|
+
get: function () {
|
|
170
|
+
return this.injector.get(ngxToastr.ToastrService);
|
|
171
|
+
},
|
|
172
|
+
enumerable: false,
|
|
173
|
+
configurable: true
|
|
174
|
+
});
|
|
168
175
|
/**
|
|
169
176
|
* Presentazione di un semplice messaggio di successo
|
|
170
177
|
*
|
|
@@ -425,7 +432,7 @@
|
|
|
425
432
|
{ type: core.Injectable }
|
|
426
433
|
];
|
|
427
434
|
MessageService.ctorParameters = function () { return [
|
|
428
|
-
{ type:
|
|
435
|
+
{ type: core.Injector, decorators: [{ type: core.Inject, args: [core.Injector,] }] },
|
|
429
436
|
{ type: Boolean, decorators: [{ type: core.Optional }, { type: core.Inject, args: [EXT_FANCY_ALERTS,] }] },
|
|
430
437
|
{ type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [EXT_LOCALE,] }] }
|
|
431
438
|
]; };
|