@esfaenza/extensions 11.2.57 → 11.2.58

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,11 +59,9 @@
59
59
  *
60
60
  * @ignore
61
61
  */
62
- function MessageService(injector, FANCY_ALERTS, LOCALE) {
62
+ function MessageService(injector) {
63
63
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
64
64
  this.injector = injector;
65
- this.FANCY_ALERTS = FANCY_ALERTS;
66
- this.LOCALE = LOCALE;
67
65
  /**
68
66
  * Oggetto statico in supporto alla localizzazione
69
67
  */
@@ -76,6 +74,8 @@
76
74
  'Success': { 'en-US': "Success", 'it-IT': "Successo", },
77
75
  'Warning': { 'en-US': "Warning", 'it-IT': "Attenzione", }
78
76
  };
77
+ this.FANCY_ALERTS = this.injector.get(EXT_FANCY_ALERTS, null, core.InjectFlags.Optional);
78
+ this.LOCALE = this.injector.get(EXT_LOCALE, null, core.InjectFlags.Optional);
79
79
  this.expiredSessionSwal = swal__default['default'].mixin({
80
80
  showCancelButton: false,
81
81
  confirmButtonText: 'Login',
@@ -432,9 +432,7 @@
432
432
  { type: core.Injectable }
433
433
  ];
434
434
  MessageService.ctorParameters = function () { return [
435
- { type: core.Injector, decorators: [{ type: core.Inject, args: [core.Injector,] }] },
436
- { type: Boolean, decorators: [{ type: core.Optional }, { type: core.Inject, args: [EXT_FANCY_ALERTS,] }] },
437
- { type: String, decorators: [{ type: core.Optional }, { type: core.Inject, args: [EXT_LOCALE,] }] }
435
+ { type: core.Injector, decorators: [{ type: core.Inject, args: [core.Injector,] }] }
438
436
  ]; };
439
437
 
440
438
  // Angular