@esfaenza/extensions 11.2.53 → 11.2.55

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.
@@ -59,9 +59,9 @@
59
59
  *
60
60
  * @ignore
61
61
  */
62
- function MessageService(toastr, FANCY_ALERTS, LOCALE) {
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.toastr = toastr;
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: ngxToastr.ToastrService },
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
  ]; };
@@ -996,7 +1003,7 @@
996
1003
  * @param {number} order Ordine di esportazione. Più piccolo è, prima appare il valore
997
1004
  * @param {any} type Tipo da esportare
998
1005
  */
999
- var ExportAs = function (order, type) { return function (target, propertyKey) {
1006
+ var ExportAs = function (order, type, prefix) { return function (target, propertyKey) {
1000
1007
  var t = new type();
1001
1008
  var props = t[exportList];
1002
1009
  for (var i = 0; i < props.length; i++) {
@@ -1012,7 +1019,7 @@
1012
1019
  Object.defineProperty(target, propertyKey + prop, { value: null, writable: true, enumerable: true });
1013
1020
  Object.defineProperty(target, propertyKey + prop + csvValueNavigator, { value: propertyKey + "." + prop, writable: false });
1014
1021
  Object.defineProperty(target, propertyKey + prop + csvVisPrefix, { value: toEmit, writable: false });
1015
- Object.defineProperty(target, propertyKey + prop + csvHdrPrefix, { value: lbl, writable: false });
1022
+ Object.defineProperty(target, propertyKey + prop + csvHdrPrefix, { value: prefix + " " + lbl, writable: false });
1016
1023
  if (target[exportList])
1017
1024
  target[exportList].push(propertyKey + prop + csvVisPrefix);
1018
1025
  else