@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
|
|
|
@@ -157,12 +157,12 @@ class MessageService {
|
|
|
157
157
|
* @param {string} text Testo da mostrare
|
|
158
158
|
* @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
|
|
159
159
|
*/
|
|
160
|
-
simpleSuccess(text, secondaryNotificationType = null) {
|
|
160
|
+
simpleSuccess(text, secondaryNotificationType = null, secondaryNotificationTimeout = null) {
|
|
161
161
|
let tos = this.toastrOrSwal(secondaryNotificationType);
|
|
162
162
|
if (tos == "swal")
|
|
163
163
|
this.successSwal.fire("", text);
|
|
164
164
|
else
|
|
165
|
-
this.toastr.success(text, null, { positionClass: tos == "toastr" ? "toast-top-right" : "toast-top-center", timeOut: tos == "toastr" ? 0 : 5000, extendedTimeOut: tos == "toastr" ? 0 : 1000 });
|
|
165
|
+
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 });
|
|
166
166
|
}
|
|
167
167
|
/**
|
|
168
168
|
* Presentazione di un semplice messaggio di informazione
|
|
@@ -173,12 +173,12 @@ class MessageService {
|
|
|
173
173
|
* @param {string} text Testo da mostrare
|
|
174
174
|
* @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
|
|
175
175
|
*/
|
|
176
|
-
simpleInfo(text, secondaryNotificationType = null) {
|
|
176
|
+
simpleInfo(text, secondaryNotificationType = null, secondaryNotificationTimeout = null) {
|
|
177
177
|
let tos = this.toastrOrSwal(secondaryNotificationType);
|
|
178
178
|
if (tos == "swal")
|
|
179
179
|
this.infoSwal.fire("", text);
|
|
180
180
|
else
|
|
181
|
-
this.toastr.info(text, null, { positionClass: tos == "toastr" ? "toast-top-right" : "toast-top-center", timeOut: tos == "toastr" ? 0 : 5000, extendedTimeOut: tos == "toastr" ? 0 : 1000 });
|
|
181
|
+
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 });
|
|
182
182
|
}
|
|
183
183
|
/**
|
|
184
184
|
* Presentazione di un semplice messaggio di errore
|
|
@@ -189,12 +189,12 @@ class MessageService {
|
|
|
189
189
|
* @param {string} text Testo da mostrare
|
|
190
190
|
* @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
|
|
191
191
|
*/
|
|
192
|
-
simpleError(text, secondaryNotificationType = null) {
|
|
192
|
+
simpleError(text, secondaryNotificationType = null, secondaryNotificationTimeout = null) {
|
|
193
193
|
let tos = this.toastrOrSwal(secondaryNotificationType);
|
|
194
194
|
if (tos == "swal")
|
|
195
195
|
this.errorSwal.fire("", text);
|
|
196
196
|
else
|
|
197
|
-
this.toastr.error(text, null, { positionClass: tos == "toastr" ? "toast-top-right" : "toast-top-center", timeOut: tos == "toastr" ? 0 : 5000, extendedTimeOut: tos == "toastr" ? 0 : 1000 });
|
|
197
|
+
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 });
|
|
198
198
|
}
|
|
199
199
|
/**
|
|
200
200
|
* Presentazione di un semplice messaggio di avviso
|
|
@@ -205,12 +205,12 @@ class MessageService {
|
|
|
205
205
|
* @param {string} text Testo da mostrare
|
|
206
206
|
* @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
|
|
207
207
|
*/
|
|
208
|
-
simpleWarning(text, secondaryNotificationType = null) {
|
|
208
|
+
simpleWarning(text, secondaryNotificationType = null, secondaryNotificationTimeout = null) {
|
|
209
209
|
let tos = this.toastrOrSwal(secondaryNotificationType);
|
|
210
210
|
if (tos == "swal")
|
|
211
211
|
this.warningSwal.fire("", text);
|
|
212
212
|
else
|
|
213
|
-
this.toastr.warning(text, null, { positionClass: tos == "toastr" ? "toast-top-right" : "toast-top-center", timeOut: tos == "toastr" ? 0 : 5000, extendedTimeOut: tos == "toastr" ? 0 : 1000 });
|
|
213
|
+
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 });
|
|
214
214
|
}
|
|
215
215
|
/**
|
|
216
216
|
* Ripulisce tutti i messaggi presenti in un dato momento sullo schermo
|
|
@@ -292,7 +292,9 @@ class MessageService {
|
|
|
292
292
|
*/
|
|
293
293
|
manageCallResultResponse(response, successMsg, errorMsg, postSuccess = null, postFailure = null) {
|
|
294
294
|
if (response.success) {
|
|
295
|
-
if (
|
|
295
|
+
if (response.haswarning)
|
|
296
|
+
this.simpleWarning(response.warning);
|
|
297
|
+
else if (successMsg)
|
|
296
298
|
this.simpleSuccess(successMsg);
|
|
297
299
|
if (postSuccess)
|
|
298
300
|
postSuccess();
|
|
@@ -302,9 +304,6 @@ class MessageService {
|
|
|
302
304
|
if (postFailure)
|
|
303
305
|
postFailure();
|
|
304
306
|
}
|
|
305
|
-
else if (response.haswarning) {
|
|
306
|
-
this.simpleWarning(response.warning);
|
|
307
|
-
}
|
|
308
307
|
}
|
|
309
308
|
/**
|
|
310
309
|
* Metodo helper per gestire in maniera standardizzata una risposta di tipo **string**, considerando che:
|
|
@@ -357,9 +356,9 @@ class MessageService {
|
|
|
357
356
|
}
|
|
358
357
|
}
|
|
359
358
|
}
|
|
360
|
-
MessageService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
361
|
-
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
362
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
359
|
+
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 });
|
|
360
|
+
MessageService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MessageService });
|
|
361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MessageService, decorators: [{
|
|
363
362
|
type: Injectable
|
|
364
363
|
}], ctorParameters: function () { return [{ type: i1.ToastrService }, { type: undefined, decorators: [{
|
|
365
364
|
type: Optional
|
|
@@ -523,9 +522,9 @@ class ClipboardService {
|
|
|
523
522
|
document.body.removeChild(textArea);
|
|
524
523
|
}
|
|
525
524
|
}
|
|
526
|
-
ClipboardService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
527
|
-
ClipboardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
528
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
525
|
+
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 });
|
|
526
|
+
ClipboardService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ClipboardService });
|
|
527
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ClipboardService, decorators: [{
|
|
529
528
|
type: Injectable
|
|
530
529
|
}], ctorParameters: function () { return [{ type: MessageService }, { type: undefined, decorators: [{
|
|
531
530
|
type: Optional
|
|
@@ -595,8 +594,13 @@ class DateService {
|
|
|
595
594
|
if (mydt == null)
|
|
596
595
|
return "FE: Not a Date";
|
|
597
596
|
let isZeroTime = mydt.startOf(timepart).valueOf() === mydt.valueOf();
|
|
598
|
-
if (!isZeroTime)
|
|
597
|
+
if (!isZeroTime) {
|
|
598
|
+
if (timepart == "day" && mydt.subtract(1, "hour").hour() == mydt.hour()) {
|
|
599
|
+
// Se l'ora precedente è lo stesso orario dell'ora attuale l'istante finale dev'essere mandato avanti di 1
|
|
600
|
+
mydt = mydt.add(1, "hour");
|
|
601
|
+
}
|
|
599
602
|
return printSeconds ? mydt.format(this.cfg.fulldateDisplay) : mydt.format(this.cfg.fulldateDisplayNoSS);
|
|
603
|
+
}
|
|
600
604
|
let tmpValue = mydt.subtract(1, timepart);
|
|
601
605
|
let value = "";
|
|
602
606
|
// Istante finale delle ore: 05/10/1992 --> 04/10/1992 24:00(:00)
|
|
@@ -704,7 +708,7 @@ class DateService {
|
|
|
704
708
|
tryThis = toCall(date, this.cfg.smallDate);
|
|
705
709
|
else if (length == this.cfg.fulldateNoSS.length)
|
|
706
710
|
tryThis = toCall(date, this.cfg.fulldateNoSS);
|
|
707
|
-
if (tryThis && tryThis.isValid())
|
|
711
|
+
if (tryThis && tryThis.isValid && tryThis.isValid())
|
|
708
712
|
return tryThis;
|
|
709
713
|
// Se niente funziona, null.
|
|
710
714
|
// Ricondurre l'Input ad una data non è possibile.
|
|
@@ -746,9 +750,9 @@ class DateService {
|
|
|
746
750
|
return date.format(small ? this.cfg.smallDate : seconds ? this.cfg.fulldateDisplay : this.cfg.fulldateDisplayNoSS);
|
|
747
751
|
}
|
|
748
752
|
}
|
|
749
|
-
DateService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
750
|
-
DateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
753
|
+
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 });
|
|
754
|
+
DateService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DateService });
|
|
755
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DateService, decorators: [{
|
|
752
756
|
type: Injectable
|
|
753
757
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
754
758
|
type: Optional
|
|
@@ -1025,20 +1029,30 @@ class ExportService {
|
|
|
1025
1029
|
parseAndGetHeaders(obj) {
|
|
1026
1030
|
var headers = [];
|
|
1027
1031
|
// Miracle incoming
|
|
1028
|
-
|
|
1032
|
+
let propsDictionary = Object.getOwnPropertyNames(Object.getPrototypeOf(obj));
|
|
1033
|
+
for (var propId in propsDictionary) {
|
|
1034
|
+
if (!propsDictionary.hasOwnProperty(propId))
|
|
1035
|
+
continue;
|
|
1036
|
+
let prop = propsDictionary[propId];
|
|
1037
|
+
let propBase = "";
|
|
1029
1038
|
let toCall;
|
|
1030
|
-
if (
|
|
1039
|
+
if (prop.endsWith(listCsvHdrPrefix)) {
|
|
1040
|
+
propBase = prop.replace(listCsvHdrPrefix, '');
|
|
1031
1041
|
toCall = this.parseList.bind(this);
|
|
1032
|
-
|
|
1042
|
+
}
|
|
1043
|
+
else if (prop.endsWith(dictionaryCsvHdrPrefix)) {
|
|
1033
1044
|
toCall = this.parseDictionary.bind(this);
|
|
1034
|
-
|
|
1035
|
-
|
|
1045
|
+
propBase = prop.replace(dictionaryCsvHdrPrefix, '');
|
|
1046
|
+
}
|
|
1047
|
+
else if (prop.endsWith(csvVisPrefix)) {
|
|
1048
|
+
propBase = prop.replace(csvVisPrefix, '');
|
|
1049
|
+
if (typeof obj[propBase + csvValueNavigator] !== "undefined")
|
|
1036
1050
|
toCall = this.parseObject.bind(this);
|
|
1037
1051
|
else
|
|
1038
1052
|
toCall = this.parseProperty.bind(this);
|
|
1039
1053
|
}
|
|
1040
1054
|
if (toCall)
|
|
1041
|
-
toCall(obj,
|
|
1055
|
+
toCall(obj, propBase, headers);
|
|
1042
1056
|
}
|
|
1043
1057
|
return headers;
|
|
1044
1058
|
}
|
|
@@ -1079,7 +1093,7 @@ class ExportService {
|
|
|
1079
1093
|
// Se ho un formato data trasformo in dayjs, formatto ed esporto
|
|
1080
1094
|
// Per la trasformazione in dayjs provo prima a passargli la stringa di netto, sperando la riconosca
|
|
1081
1095
|
// Se non funziona provo a definirgli la formattazione standard del metering per quel linguaggio
|
|
1082
|
-
let val = this.dates.getFormatted(obj[prop], format.length <= 10,
|
|
1096
|
+
let val = this.dates.getFormatted(obj[prop], format.length <= 10, format.length > 16);
|
|
1083
1097
|
Object.defineProperty(obj, prop + "_fmt", { value: val ?? "", writable: false, enumerable: true });
|
|
1084
1098
|
headers.push({ label: lbl ? lbl : prop + "_fmt", key: prop + "_fmt", order: order, type: "date" });
|
|
1085
1099
|
}
|
|
@@ -1122,7 +1136,7 @@ class ExportService {
|
|
|
1122
1136
|
type = "number";
|
|
1123
1137
|
}
|
|
1124
1138
|
else if (format) {
|
|
1125
|
-
value = this.dates.getFormatted(value, format.length <= 10,
|
|
1139
|
+
value = this.dates.getFormatted(value, format.length <= 10, format.length > 16);
|
|
1126
1140
|
type = "date";
|
|
1127
1141
|
}
|
|
1128
1142
|
Object.defineProperty(obj, prop, { value: value, writable: false, enumerable: true });
|
|
@@ -1176,7 +1190,7 @@ class ExportService {
|
|
|
1176
1190
|
type = "number";
|
|
1177
1191
|
}
|
|
1178
1192
|
else if (valueformat) {
|
|
1179
|
-
value = this.dates.getFormatted(obj[prop], valueformat.length <= 10,
|
|
1193
|
+
value = this.dates.getFormatted(obj[prop], valueformat.length <= 10, valueformat.length > 16);
|
|
1180
1194
|
type = "date";
|
|
1181
1195
|
}
|
|
1182
1196
|
Object.defineProperty(obj, prop + idx, { value: value, writable: false });
|
|
@@ -1244,9 +1258,9 @@ class ExportService {
|
|
|
1244
1258
|
return Deserialize(items, type);
|
|
1245
1259
|
}
|
|
1246
1260
|
}
|
|
1247
|
-
ExportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1248
|
-
ExportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1249
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1261
|
+
ExportService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ExportService, deps: [{ token: DateService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1262
|
+
ExportService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ExportService });
|
|
1263
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ExportService, decorators: [{
|
|
1250
1264
|
type: Injectable
|
|
1251
1265
|
}], ctorParameters: function () { return [{ type: DateService }]; } });
|
|
1252
1266
|
|
|
@@ -1551,9 +1565,9 @@ class HashingService {
|
|
|
1551
1565
|
return (a + b) & 0xFFFFFFFF;
|
|
1552
1566
|
}
|
|
1553
1567
|
}
|
|
1554
|
-
HashingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1555
|
-
HashingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1568
|
+
HashingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: HashingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1569
|
+
HashingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: HashingService });
|
|
1570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: HashingService, decorators: [{
|
|
1557
1571
|
type: Injectable
|
|
1558
1572
|
}] });
|
|
1559
1573
|
|
|
@@ -1759,10 +1773,52 @@ class UtilityService {
|
|
|
1759
1773
|
return "string";
|
|
1760
1774
|
}
|
|
1761
1775
|
}
|
|
1776
|
+
/**
|
|
1777
|
+
* Effettua la clonazione profonda di un oggetto in maniera molto più performante che JSON.parse(JSON.stringify()).
|
|
1778
|
+
*
|
|
1779
|
+
* Usare solo per oggetti puri e quantomeno semplici per evitare complicazioni derivanti dalle semplificazioni che questo metodo assume
|
|
1780
|
+
*
|
|
1781
|
+
* @param {any} source Oggetto da clonare
|
|
1782
|
+
*
|
|
1783
|
+
* @return {any} Clone dell'oggetto passato
|
|
1784
|
+
*/
|
|
1785
|
+
deepClone(source) {
|
|
1786
|
+
// Valori semplici
|
|
1787
|
+
if (source == null || typeof source !== 'object')
|
|
1788
|
+
return source;
|
|
1789
|
+
// Pseudo Struct
|
|
1790
|
+
switch (toString.call(source)) {
|
|
1791
|
+
case '[object Boolean]':
|
|
1792
|
+
case '[object Number]':
|
|
1793
|
+
case '[object String]':
|
|
1794
|
+
case '[object Date]':
|
|
1795
|
+
return new source.constructor(source.valueOf());
|
|
1796
|
+
default: break;
|
|
1797
|
+
}
|
|
1798
|
+
// Oggetti Complessi
|
|
1799
|
+
return this.recursiveStep(source, Array.isArray(source) || source instanceof Array ? [] : Object.create(Object.getPrototypeOf(source)));
|
|
1800
|
+
}
|
|
1801
|
+
/**
|
|
1802
|
+
* @ignore
|
|
1803
|
+
* Step ricorsivo per la clonatura degli oggetti. Vedere **deepClone**
|
|
1804
|
+
*/
|
|
1805
|
+
recursiveStep(source, destination) {
|
|
1806
|
+
if (Array.isArray(source) || source instanceof Array) {
|
|
1807
|
+
for (var i = 0, ii = source.length; i < ii; i++)
|
|
1808
|
+
destination.push(this.deepClone(source[i]));
|
|
1809
|
+
}
|
|
1810
|
+
else if (source && typeof source.hasOwnProperty === 'function') {
|
|
1811
|
+
for (let key in source) {
|
|
1812
|
+
if (source.hasOwnProperty(key))
|
|
1813
|
+
destination[key] = this.deepClone(source[key]);
|
|
1814
|
+
}
|
|
1815
|
+
}
|
|
1816
|
+
return destination;
|
|
1817
|
+
}
|
|
1762
1818
|
}
|
|
1763
|
-
UtilityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1764
|
-
UtilityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1765
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1819
|
+
UtilityService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: UtilityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1820
|
+
UtilityService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: UtilityService });
|
|
1821
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: UtilityService, decorators: [{
|
|
1766
1822
|
type: Injectable
|
|
1767
1823
|
}] });
|
|
1768
1824
|
|
|
@@ -1821,9 +1877,9 @@ class InterComService {
|
|
|
1821
1877
|
this.outbounds[key] = new Subject();
|
|
1822
1878
|
}
|
|
1823
1879
|
}
|
|
1824
|
-
InterComService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1825
|
-
InterComService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1826
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1880
|
+
InterComService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: InterComService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1881
|
+
InterComService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: InterComService });
|
|
1882
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: InterComService, decorators: [{
|
|
1827
1883
|
type: Injectable
|
|
1828
1884
|
}] });
|
|
1829
1885
|
|
|
@@ -1860,10 +1916,10 @@ class FullExtensionsModule {
|
|
|
1860
1916
|
};
|
|
1861
1917
|
}
|
|
1862
1918
|
}
|
|
1863
|
-
FullExtensionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1864
|
-
FullExtensionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "
|
|
1865
|
-
FullExtensionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1866
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1919
|
+
FullExtensionsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FullExtensionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1920
|
+
FullExtensionsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: FullExtensionsModule });
|
|
1921
|
+
FullExtensionsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FullExtensionsModule });
|
|
1922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: FullExtensionsModule, decorators: [{
|
|
1867
1923
|
type: NgModule
|
|
1868
1924
|
}] });
|
|
1869
1925
|
|