@esfaenza/extensions 11.2.57 → 11.2.59

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.
@@ -1,4 +1,4 @@
1
- import { InjectionToken, NgModule, Injectable, Injector, Inject, Optional } from '@angular/core';
1
+ import { InjectionToken, NgModule, InjectFlags, Injectable, Injector, Inject, Optional } from '@angular/core';
2
2
  import { ToastrService } from 'ngx-toastr';
3
3
  import swal from 'sweetalert2';
4
4
  import { of, Subject } from 'rxjs';
@@ -53,11 +53,9 @@ class MessageService {
53
53
  *
54
54
  * @ignore
55
55
  */
56
- constructor(injector, FANCY_ALERTS, LOCALE) {
56
+ constructor(injector) {
57
57
  var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p;
58
58
  this.injector = injector;
59
- this.FANCY_ALERTS = FANCY_ALERTS;
60
- this.LOCALE = LOCALE;
61
59
  /**
62
60
  * Oggetto statico in supporto alla localizzazione
63
61
  */
@@ -70,6 +68,8 @@ class MessageService {
70
68
  'Success': { 'en-US': "Success", 'it-IT': "Successo", },
71
69
  'Warning': { 'en-US': "Warning", 'it-IT': "Attenzione", }
72
70
  };
71
+ this.FANCY_ALERTS = this.injector.get(EXT_FANCY_ALERTS, null, InjectFlags.Optional);
72
+ this.LOCALE = this.injector.get(EXT_LOCALE, null, InjectFlags.Optional);
73
73
  this.expiredSessionSwal = swal.mixin({
74
74
  showCancelButton: false,
75
75
  confirmButtonText: 'Login',
@@ -400,9 +400,7 @@ MessageService.decorators = [
400
400
  { type: Injectable }
401
401
  ];
402
402
  MessageService.ctorParameters = () => [
403
- { type: Injector, decorators: [{ type: Inject, args: [Injector,] }] },
404
- { type: Boolean, decorators: [{ type: Optional }, { type: Inject, args: [EXT_FANCY_ALERTS,] }] },
405
- { type: String, decorators: [{ type: Optional }, { type: Inject, args: [EXT_LOCALE,] }] }
403
+ { type: Injector, decorators: [{ type: Inject, args: [Injector,] }] }
406
404
  ];
407
405
 
408
406
  // Angular
@@ -1250,7 +1248,7 @@ class ExportService {
1250
1248
  //Salto 1 > diventa obj
1251
1249
  //Salto 2 > diventa obj.subobj
1252
1250
  //ecc...
1253
- jmps.forEach(pp => { clone = clone[pp]; });
1251
+ jmps.forEach(pp => { clone = clone === null || clone === void 0 ? void 0 : clone[pp]; });
1254
1252
  //Valore finale :D
1255
1253
  let value = clone;
1256
1254
  let lbl = obj[prop + csvHdrPrefix];