@esfaenza/extensions 13.3.5 → 14.2.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/esm2020/lib/models/CallResult.mjs +1 -1
- package/esm2020/lib/modules/extensions.full.module.mjs +4 -4
- package/esm2020/lib/modules/extensions.module.mjs +4 -4
- package/esm2020/lib/services/extensions.clipboard.service.mjs +3 -3
- package/esm2020/lib/services/extensions.dates.service.mjs +11 -6
- package/esm2020/lib/services/extensions.exports.service.mjs +23 -13
- package/esm2020/lib/services/extensions.hashing.service.mjs +3 -3
- package/esm2020/lib/services/extensions.intercom.service.mjs +3 -3
- package/esm2020/lib/services/extensions.messages.service.mjs +15 -16
- package/esm2020/lib/services/extensions.utilities.service.mjs +46 -4
- package/fesm2015/esfaenza-extensions.mjs +108 -52
- package/fesm2015/esfaenza-extensions.mjs.map +1 -1
- package/fesm2020/esfaenza-extensions.mjs +108 -52
- package/fesm2020/esfaenza-extensions.mjs.map +1 -1
- package/{esfaenza-extensions.d.ts → index.d.ts} +0 -0
- package/lib/models/CallResult.d.ts +11 -25
- package/lib/services/extensions.messages.service.d.ts +4 -4
- package/lib/services/extensions.utilities.service.d.ts +15 -0
- package/package.json +3 -3
|
@@ -40,10 +40,10 @@ class ExtensionsModule {
|
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
42
|
}
|
|
43
|
-
ExtensionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
44
|
-
ExtensionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
45
|
-
ExtensionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
46
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
43
|
+
ExtensionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ExtensionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
44
|
+
ExtensionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: ExtensionsModule });
|
|
45
|
+
ExtensionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ExtensionsModule });
|
|
46
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ExtensionsModule, decorators: [{
|
|
47
47
|
type: NgModule
|
|
48
48
|
}] });
|
|
49
49
|
|
|
@@ -158,12 +158,12 @@ class MessageService {
|
|
|
158
158
|
* @param {string} text Testo da mostrare
|
|
159
159
|
* @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
|
|
160
160
|
*/
|
|
161
|
-
simpleSuccess(text, secondaryNotificationType = null) {
|
|
161
|
+
simpleSuccess(text, secondaryNotificationType = null, secondaryNotificationTimeout = null) {
|
|
162
162
|
let tos = this.toastrOrSwal(secondaryNotificationType);
|
|
163
163
|
if (tos == "swal")
|
|
164
164
|
this.successSwal.fire("", text);
|
|
165
165
|
else
|
|
166
|
-
this.toastr.success(text, null, { positionClass: tos == "toastr" ? "toast-top-right" : "toast-top-center", timeOut: tos == "toastr" ? 0 : 5000, extendedTimeOut: tos == "toastr" ? 0 : 1000 });
|
|
166
|
+
this.toastr.success(text, null, { positionClass: tos == "toastr" ? "toast-top-right" : "toast-top-center", timeOut: secondaryNotificationTimeout || (tos == "toastr" ? 0 : 5000), extendedTimeOut: tos == "toastr" ? 0 : 1000 });
|
|
167
167
|
}
|
|
168
168
|
/**
|
|
169
169
|
* Presentazione di un semplice messaggio di informazione
|
|
@@ -174,12 +174,12 @@ class MessageService {
|
|
|
174
174
|
* @param {string} text Testo da mostrare
|
|
175
175
|
* @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
|
|
176
176
|
*/
|
|
177
|
-
simpleInfo(text, secondaryNotificationType = null) {
|
|
177
|
+
simpleInfo(text, secondaryNotificationType = null, secondaryNotificationTimeout = null) {
|
|
178
178
|
let tos = this.toastrOrSwal(secondaryNotificationType);
|
|
179
179
|
if (tos == "swal")
|
|
180
180
|
this.infoSwal.fire("", text);
|
|
181
181
|
else
|
|
182
|
-
this.toastr.info(text, null, { positionClass: tos == "toastr" ? "toast-top-right" : "toast-top-center", timeOut: tos == "toastr" ? 0 : 5000, extendedTimeOut: tos == "toastr" ? 0 : 1000 });
|
|
182
|
+
this.toastr.info(text, null, { positionClass: tos == "toastr" ? "toast-top-right" : "toast-top-center", timeOut: secondaryNotificationTimeout || (tos == "toastr" ? 0 : 5000), extendedTimeOut: tos == "toastr" ? 0 : 1000 });
|
|
183
183
|
}
|
|
184
184
|
/**
|
|
185
185
|
* Presentazione di un semplice messaggio di errore
|
|
@@ -190,12 +190,12 @@ class MessageService {
|
|
|
190
190
|
* @param {string} text Testo da mostrare
|
|
191
191
|
* @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
|
|
192
192
|
*/
|
|
193
|
-
simpleError(text, secondaryNotificationType = null) {
|
|
193
|
+
simpleError(text, secondaryNotificationType = null, secondaryNotificationTimeout = null) {
|
|
194
194
|
let tos = this.toastrOrSwal(secondaryNotificationType);
|
|
195
195
|
if (tos == "swal")
|
|
196
196
|
this.errorSwal.fire("", text);
|
|
197
197
|
else
|
|
198
|
-
this.toastr.error(text, null, { positionClass: tos == "toastr" ? "toast-top-right" : "toast-top-center", timeOut: tos == "toastr" ? 0 : 5000, extendedTimeOut: tos == "toastr" ? 0 : 1000 });
|
|
198
|
+
this.toastr.error(text, null, { positionClass: tos == "toastr" ? "toast-top-right" : "toast-top-center", timeOut: secondaryNotificationTimeout || (tos == "toastr" ? 0 : 5000), extendedTimeOut: tos == "toastr" ? 0 : 1000 });
|
|
199
199
|
}
|
|
200
200
|
/**
|
|
201
201
|
* Presentazione di un semplice messaggio di avviso
|
|
@@ -206,12 +206,12 @@ class MessageService {
|
|
|
206
206
|
* @param {string} text Testo da mostrare
|
|
207
207
|
* @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
|
|
208
208
|
*/
|
|
209
|
-
simpleWarning(text, secondaryNotificationType = null) {
|
|
209
|
+
simpleWarning(text, secondaryNotificationType = null, secondaryNotificationTimeout = null) {
|
|
210
210
|
let tos = this.toastrOrSwal(secondaryNotificationType);
|
|
211
211
|
if (tos == "swal")
|
|
212
212
|
this.warningSwal.fire("", text);
|
|
213
213
|
else
|
|
214
|
-
this.toastr.warning(text, null, { positionClass: tos == "toastr" ? "toast-top-right" : "toast-top-center", timeOut: tos == "toastr" ? 0 : 5000, extendedTimeOut: tos == "toastr" ? 0 : 1000 });
|
|
214
|
+
this.toastr.warning(text, null, { positionClass: tos == "toastr" ? "toast-top-right" : "toast-top-center", timeOut: secondaryNotificationTimeout || (tos == "toastr" ? 0 : 5000), extendedTimeOut: tos == "toastr" ? 0 : 1000 });
|
|
215
215
|
}
|
|
216
216
|
/**
|
|
217
217
|
* Ripulisce tutti i messaggi presenti in un dato momento sullo schermo
|
|
@@ -293,7 +293,9 @@ class MessageService {
|
|
|
293
293
|
*/
|
|
294
294
|
manageCallResultResponse(response, successMsg, errorMsg, postSuccess = null, postFailure = null) {
|
|
295
295
|
if (response.success) {
|
|
296
|
-
if (
|
|
296
|
+
if (response.haswarning)
|
|
297
|
+
this.simpleWarning(response.warning);
|
|
298
|
+
else if (successMsg)
|
|
297
299
|
this.simpleSuccess(successMsg);
|
|
298
300
|
if (postSuccess)
|
|
299
301
|
postSuccess();
|
|
@@ -303,9 +305,6 @@ class MessageService {
|
|
|
303
305
|
if (postFailure)
|
|
304
306
|
postFailure();
|
|
305
307
|
}
|
|
306
|
-
else if (response.haswarning) {
|
|
307
|
-
this.simpleWarning(response.warning);
|
|
308
|
-
}
|
|
309
308
|
}
|
|
310
309
|
/**
|
|
311
310
|
* Metodo helper per gestire in maniera standardizzata una risposta di tipo **string**, considerando che:
|
|
@@ -358,9 +357,9 @@ class MessageService {
|
|
|
358
357
|
}
|
|
359
358
|
}
|
|
360
359
|
}
|
|
361
|
-
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
362
|
-
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
363
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
360
|
+
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MessageService, deps: [{ token: i1.ToastrService }, { token: EXT_FANCY_ALERTS, optional: true }, { token: EXT_LOCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
361
|
+
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MessageService });
|
|
362
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MessageService, decorators: [{
|
|
364
363
|
type: Injectable
|
|
365
364
|
}], ctorParameters: function () {
|
|
366
365
|
return [{ type: i1.ToastrService }, { type: undefined, decorators: [{
|
|
@@ -529,9 +528,9 @@ class ClipboardService {
|
|
|
529
528
|
document.body.removeChild(textArea);
|
|
530
529
|
}
|
|
531
530
|
}
|
|
532
|
-
ClipboardService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
533
|
-
ClipboardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
534
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
531
|
+
ClipboardService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ClipboardService, deps: [{ token: MessageService }, { token: EXT_LOCALE, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
532
|
+
ClipboardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ClipboardService });
|
|
533
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ClipboardService, decorators: [{
|
|
535
534
|
type: Injectable
|
|
536
535
|
}], ctorParameters: function () {
|
|
537
536
|
return [{ type: MessageService }, { type: undefined, decorators: [{
|
|
@@ -604,8 +603,13 @@ class DateService {
|
|
|
604
603
|
if (mydt == null)
|
|
605
604
|
return "FE: Not a Date";
|
|
606
605
|
let isZeroTime = mydt.startOf(timepart).valueOf() === mydt.valueOf();
|
|
607
|
-
if (!isZeroTime)
|
|
606
|
+
if (!isZeroTime) {
|
|
607
|
+
if (timepart == "day" && mydt.subtract(1, "hour").hour() == mydt.hour()) {
|
|
608
|
+
// Se l'ora precedente è lo stesso orario dell'ora attuale l'istante finale dev'essere mandato avanti di 1
|
|
609
|
+
mydt = mydt.add(1, "hour");
|
|
610
|
+
}
|
|
608
611
|
return printSeconds ? mydt.format(this.cfg.fulldateDisplay) : mydt.format(this.cfg.fulldateDisplayNoSS);
|
|
612
|
+
}
|
|
609
613
|
let tmpValue = mydt.subtract(1, timepart);
|
|
610
614
|
let value = "";
|
|
611
615
|
// Istante finale delle ore: 05/10/1992 --> 04/10/1992 24:00(:00)
|
|
@@ -713,7 +717,7 @@ class DateService {
|
|
|
713
717
|
tryThis = toCall(date, this.cfg.smallDate);
|
|
714
718
|
else if (length == this.cfg.fulldateNoSS.length)
|
|
715
719
|
tryThis = toCall(date, this.cfg.fulldateNoSS);
|
|
716
|
-
if (tryThis && tryThis.isValid())
|
|
720
|
+
if (tryThis && tryThis.isValid && tryThis.isValid())
|
|
717
721
|
return tryThis;
|
|
718
722
|
// Se niente funziona, null.
|
|
719
723
|
// Ricondurre l'Input ad una data non è possibile.
|
|
@@ -755,9 +759,9 @@ class DateService {
|
|
|
755
759
|
return date.format(small ? this.cfg.smallDate : seconds ? this.cfg.fulldateDisplay : this.cfg.fulldateDisplayNoSS);
|
|
756
760
|
}
|
|
757
761
|
}
|
|
758
|
-
DateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
759
|
-
DateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
760
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
762
|
+
DateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DateService, deps: [{ token: EXT_LOCALE, optional: true }, { token: EXT_ALLOW_UTC, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
763
|
+
DateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DateService });
|
|
764
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DateService, decorators: [{
|
|
761
765
|
type: Injectable
|
|
762
766
|
}], ctorParameters: function () {
|
|
763
767
|
return [{ type: undefined, decorators: [{
|
|
@@ -1036,20 +1040,30 @@ class ExportService {
|
|
|
1036
1040
|
parseAndGetHeaders(obj) {
|
|
1037
1041
|
var headers = [];
|
|
1038
1042
|
// Miracle incoming
|
|
1039
|
-
|
|
1043
|
+
let propsDictionary = Object.getOwnPropertyNames(Object.getPrototypeOf(obj));
|
|
1044
|
+
for (var propId in propsDictionary) {
|
|
1045
|
+
if (!propsDictionary.hasOwnProperty(propId))
|
|
1046
|
+
continue;
|
|
1047
|
+
let prop = propsDictionary[propId];
|
|
1048
|
+
let propBase = "";
|
|
1040
1049
|
let toCall;
|
|
1041
|
-
if (
|
|
1050
|
+
if (prop.endsWith(listCsvHdrPrefix)) {
|
|
1051
|
+
propBase = prop.replace(listCsvHdrPrefix, '');
|
|
1042
1052
|
toCall = this.parseList.bind(this);
|
|
1043
|
-
|
|
1053
|
+
}
|
|
1054
|
+
else if (prop.endsWith(dictionaryCsvHdrPrefix)) {
|
|
1044
1055
|
toCall = this.parseDictionary.bind(this);
|
|
1045
|
-
|
|
1046
|
-
|
|
1056
|
+
propBase = prop.replace(dictionaryCsvHdrPrefix, '');
|
|
1057
|
+
}
|
|
1058
|
+
else if (prop.endsWith(csvVisPrefix)) {
|
|
1059
|
+
propBase = prop.replace(csvVisPrefix, '');
|
|
1060
|
+
if (typeof obj[propBase + csvValueNavigator] !== "undefined")
|
|
1047
1061
|
toCall = this.parseObject.bind(this);
|
|
1048
1062
|
else
|
|
1049
1063
|
toCall = this.parseProperty.bind(this);
|
|
1050
1064
|
}
|
|
1051
1065
|
if (toCall)
|
|
1052
|
-
toCall(obj,
|
|
1066
|
+
toCall(obj, propBase, headers);
|
|
1053
1067
|
}
|
|
1054
1068
|
return headers;
|
|
1055
1069
|
}
|
|
@@ -1090,7 +1104,7 @@ class ExportService {
|
|
|
1090
1104
|
// Se ho un formato data trasformo in dayjs, formatto ed esporto
|
|
1091
1105
|
// Per la trasformazione in dayjs provo prima a passargli la stringa di netto, sperando la riconosca
|
|
1092
1106
|
// Se non funziona provo a definirgli la formattazione standard del metering per quel linguaggio
|
|
1093
|
-
let val = this.dates.getFormatted(obj[prop], format.length <= 10,
|
|
1107
|
+
let val = this.dates.getFormatted(obj[prop], format.length <= 10, format.length > 16);
|
|
1094
1108
|
Object.defineProperty(obj, prop + "_fmt", { value: val !== null && val !== void 0 ? val : "", writable: false, enumerable: true });
|
|
1095
1109
|
headers.push({ label: lbl ? lbl : prop + "_fmt", key: prop + "_fmt", order: order, type: "date" });
|
|
1096
1110
|
}
|
|
@@ -1133,7 +1147,7 @@ class ExportService {
|
|
|
1133
1147
|
type = "number";
|
|
1134
1148
|
}
|
|
1135
1149
|
else if (format) {
|
|
1136
|
-
value = this.dates.getFormatted(value, format.length <= 10,
|
|
1150
|
+
value = this.dates.getFormatted(value, format.length <= 10, format.length > 16);
|
|
1137
1151
|
type = "date";
|
|
1138
1152
|
}
|
|
1139
1153
|
Object.defineProperty(obj, prop, { value: value, writable: false, enumerable: true });
|
|
@@ -1187,7 +1201,7 @@ class ExportService {
|
|
|
1187
1201
|
type = "number";
|
|
1188
1202
|
}
|
|
1189
1203
|
else if (valueformat) {
|
|
1190
|
-
value = this.dates.getFormatted(obj[prop], valueformat.length <= 10,
|
|
1204
|
+
value = this.dates.getFormatted(obj[prop], valueformat.length <= 10, valueformat.length > 16);
|
|
1191
1205
|
type = "date";
|
|
1192
1206
|
}
|
|
1193
1207
|
Object.defineProperty(obj, prop + idx, { value: value, writable: false });
|
|
@@ -1255,9 +1269,9 @@ class ExportService {
|
|
|
1255
1269
|
return Deserialize(items, type);
|
|
1256
1270
|
}
|
|
1257
1271
|
}
|
|
1258
|
-
ExportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1259
|
-
ExportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1260
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1272
|
+
ExportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ExportService, deps: [{ token: DateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1273
|
+
ExportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ExportService });
|
|
1274
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ExportService, decorators: [{
|
|
1261
1275
|
type: Injectable
|
|
1262
1276
|
}], ctorParameters: function () { return [{ type: DateService }]; } });
|
|
1263
1277
|
|
|
@@ -1562,9 +1576,9 @@ class HashingService {
|
|
|
1562
1576
|
return (a + b) & 0xFFFFFFFF;
|
|
1563
1577
|
}
|
|
1564
1578
|
}
|
|
1565
|
-
HashingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1566
|
-
HashingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1567
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1579
|
+
HashingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: HashingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1580
|
+
HashingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: HashingService });
|
|
1581
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: HashingService, decorators: [{
|
|
1568
1582
|
type: Injectable
|
|
1569
1583
|
}] });
|
|
1570
1584
|
|
|
@@ -1770,10 +1784,52 @@ class UtilityService {
|
|
|
1770
1784
|
return "string";
|
|
1771
1785
|
}
|
|
1772
1786
|
}
|
|
1787
|
+
/**
|
|
1788
|
+
* Effettua la clonazione profonda di un oggetto in maniera molto più performante che JSON.parse(JSON.stringify()).
|
|
1789
|
+
*
|
|
1790
|
+
* Usare solo per oggetti puri e quantomeno semplici per evitare complicazioni derivanti dalle semplificazioni che questo metodo assume
|
|
1791
|
+
*
|
|
1792
|
+
* @param {any} source Oggetto da clonare
|
|
1793
|
+
*
|
|
1794
|
+
* @return {any} Clone dell'oggetto passato
|
|
1795
|
+
*/
|
|
1796
|
+
deepClone(source) {
|
|
1797
|
+
// Valori semplici
|
|
1798
|
+
if (source == null || typeof source !== 'object')
|
|
1799
|
+
return source;
|
|
1800
|
+
// Pseudo Struct
|
|
1801
|
+
switch (toString.call(source)) {
|
|
1802
|
+
case '[object Boolean]':
|
|
1803
|
+
case '[object Number]':
|
|
1804
|
+
case '[object String]':
|
|
1805
|
+
case '[object Date]':
|
|
1806
|
+
return new source.constructor(source.valueOf());
|
|
1807
|
+
default: break;
|
|
1808
|
+
}
|
|
1809
|
+
// Oggetti Complessi
|
|
1810
|
+
return this.recursiveStep(source, Array.isArray(source) || source instanceof Array ? [] : Object.create(Object.getPrototypeOf(source)));
|
|
1811
|
+
}
|
|
1812
|
+
/**
|
|
1813
|
+
* @ignore
|
|
1814
|
+
* Step ricorsivo per la clonatura degli oggetti. Vedere **deepClone**
|
|
1815
|
+
*/
|
|
1816
|
+
recursiveStep(source, destination) {
|
|
1817
|
+
if (Array.isArray(source) || source instanceof Array) {
|
|
1818
|
+
for (var i = 0, ii = source.length; i < ii; i++)
|
|
1819
|
+
destination.push(this.deepClone(source[i]));
|
|
1820
|
+
}
|
|
1821
|
+
else if (source && typeof source.hasOwnProperty === 'function') {
|
|
1822
|
+
for (let key in source) {
|
|
1823
|
+
if (source.hasOwnProperty(key))
|
|
1824
|
+
destination[key] = this.deepClone(source[key]);
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
return destination;
|
|
1828
|
+
}
|
|
1773
1829
|
}
|
|
1774
|
-
UtilityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1775
|
-
UtilityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1776
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1830
|
+
UtilityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: UtilityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1831
|
+
UtilityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: UtilityService });
|
|
1832
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: UtilityService, decorators: [{
|
|
1777
1833
|
type: Injectable
|
|
1778
1834
|
}] });
|
|
1779
1835
|
|
|
@@ -1832,9 +1888,9 @@ class InterComService {
|
|
|
1832
1888
|
this.outbounds[key] = new Subject();
|
|
1833
1889
|
}
|
|
1834
1890
|
}
|
|
1835
|
-
InterComService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1836
|
-
InterComService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1837
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1891
|
+
InterComService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: InterComService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1892
|
+
InterComService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: InterComService });
|
|
1893
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: InterComService, decorators: [{
|
|
1838
1894
|
type: Injectable
|
|
1839
1895
|
}] });
|
|
1840
1896
|
|
|
@@ -1871,10 +1927,10 @@ class FullExtensionsModule {
|
|
|
1871
1927
|
};
|
|
1872
1928
|
}
|
|
1873
1929
|
}
|
|
1874
|
-
FullExtensionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1875
|
-
FullExtensionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
1876
|
-
FullExtensionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1877
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1930
|
+
FullExtensionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FullExtensionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1931
|
+
FullExtensionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: FullExtensionsModule });
|
|
1932
|
+
FullExtensionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FullExtensionsModule });
|
|
1933
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FullExtensionsModule, decorators: [{
|
|
1878
1934
|
type: NgModule
|
|
1879
1935
|
}] });
|
|
1880
1936
|
|