@esfaenza/extensions 20.3.2 → 20.3.3
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/fesm2022/esfaenza-extensions.mjs +37 -35
- package/fesm2022/esfaenza-extensions.mjs.map +1 -1
- package/index.d.ts +3 -1046
- package/lib/models/CallResult.d.ts +23 -0
- package/lib/models/CsvHeaders.d.ts +25 -0
- package/lib/models/ExportConsts.d.ts +31 -0
- package/lib/models/ExtensionsModuleConfig.d.ts +9 -0
- package/lib/models/GenericItem.d.ts +9 -0
- package/lib/models/InboundMessageTypes.d.ts +5 -0
- package/lib/models/InterComMessage.d.ts +12 -0
- package/lib/models/TypeCode.d.ts +23 -0
- package/lib/modules/extensions.module.d.ts +11 -0
- package/lib/pipes/loc_date.pipe.d.ts +24 -0
- package/lib/services/extensions.base.d.ts +22 -0
- package/lib/services/extensions.clipboard.service.d.ts +55 -0
- package/lib/services/extensions.dates.service.d.ts +103 -0
- package/lib/services/extensions.embedding.service.d.ts +35 -0
- package/lib/services/extensions.exports.service.d.ts +242 -0
- package/lib/services/extensions.hashing.service.d.ts +121 -0
- package/lib/services/extensions.intercom.service.d.ts +28 -0
- package/lib/services/extensions.messages.service.d.ts +197 -0
- package/lib/services/extensions.utilities.service.d.ts +107 -0
- package/lib/tokens.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +18 -0
|
@@ -250,10 +250,10 @@ class DateService {
|
|
|
250
250
|
return null;
|
|
251
251
|
return date.format(small ? this.cfg.smallDate : seconds ? this.cfg.fulldateDisplay : this.cfg.fulldateDisplayNoSS);
|
|
252
252
|
}
|
|
253
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
254
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
253
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DateService, deps: [{ token: i1.BaseLocalization, optional: true }, { token: EXT_ALLOW_UTC, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
254
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DateService, providedIn: "root" });
|
|
255
255
|
}
|
|
256
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DateService, decorators: [{
|
|
257
257
|
type: Injectable,
|
|
258
258
|
args: [{ providedIn: "root" }]
|
|
259
259
|
}], ctorParameters: () => [{ type: i1.BaseLocalization, decorators: [{
|
|
@@ -292,10 +292,10 @@ class LocDatePipe {
|
|
|
292
292
|
var dt = this.dts.getDateConvertion(detatchedValue);
|
|
293
293
|
return dt.format(format);
|
|
294
294
|
}
|
|
295
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
296
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
295
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: LocDatePipe, deps: [{ token: DateService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
296
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: LocDatePipe, isStandalone: false, name: "loc_date" });
|
|
297
297
|
}
|
|
298
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
298
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: LocDatePipe, decorators: [{
|
|
299
299
|
type: Pipe,
|
|
300
300
|
args: [{
|
|
301
301
|
name: "loc_date", pure: true,
|
|
@@ -315,11 +315,11 @@ class ExtensionsModule {
|
|
|
315
315
|
]
|
|
316
316
|
};
|
|
317
317
|
}
|
|
318
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
319
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
320
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
318
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ExtensionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
319
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: ExtensionsModule, declarations: [LocDatePipe], imports: [LocalizationModule], exports: [LocDatePipe] });
|
|
320
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ExtensionsModule, imports: [LocalizationModule] });
|
|
321
321
|
}
|
|
322
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ExtensionsModule, decorators: [{
|
|
323
323
|
type: NgModule,
|
|
324
324
|
args: [{
|
|
325
325
|
imports: [LocalizationModule],
|
|
@@ -626,10 +626,10 @@ class HashingService {
|
|
|
626
626
|
add32(a, b) {
|
|
627
627
|
return (a + b) & 0xFFFFFFFF;
|
|
628
628
|
}
|
|
629
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
630
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
629
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HashingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
630
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HashingService, providedIn: "root" });
|
|
631
631
|
}
|
|
632
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
632
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: HashingService, decorators: [{
|
|
633
633
|
type: Injectable,
|
|
634
634
|
args: [{ providedIn: "root" }]
|
|
635
635
|
}] });
|
|
@@ -1095,10 +1095,10 @@ class MessageService {
|
|
|
1095
1095
|
postFailure();
|
|
1096
1096
|
}
|
|
1097
1097
|
}
|
|
1098
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1099
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1098
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: MessageService, deps: [{ token: Injector }, { token: i1.BaseLocalization, optional: true }, { token: HashingService }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1099
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: MessageService, providedIn: "root" });
|
|
1100
1100
|
}
|
|
1101
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1101
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: MessageService, decorators: [{
|
|
1102
1102
|
type: Injectable,
|
|
1103
1103
|
args: [{ providedIn: "root" }]
|
|
1104
1104
|
}], ctorParameters: () => [{ type: i0.Injector, decorators: [{
|
|
@@ -1378,10 +1378,10 @@ class AppEmbeddingExtensions {
|
|
|
1378
1378
|
if (left)
|
|
1379
1379
|
left.style.setProperty("width", leftSpace + "px");
|
|
1380
1380
|
}
|
|
1381
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1382
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1381
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AppEmbeddingExtensions, deps: [{ token: MessageService }, { token: i2.Router }, { token: i3.Location }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1382
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AppEmbeddingExtensions, providedIn: "root" });
|
|
1383
1383
|
}
|
|
1384
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: AppEmbeddingExtensions, decorators: [{
|
|
1385
1385
|
type: Injectable,
|
|
1386
1386
|
args: [{ providedIn: "root" }]
|
|
1387
1387
|
}], ctorParameters: () => [{ type: MessageService }, { type: i2.Router }, { type: i3.Location }, { type: Object, decorators: [{
|
|
@@ -1408,10 +1408,10 @@ class BaseExtensionsService {
|
|
|
1408
1408
|
};
|
|
1409
1409
|
}
|
|
1410
1410
|
}
|
|
1411
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1412
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1411
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BaseExtensionsService, deps: [{ token: AppEmbeddingExtensions }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1412
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BaseExtensionsService, providedIn: "root" });
|
|
1413
1413
|
}
|
|
1414
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1414
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: BaseExtensionsService, decorators: [{
|
|
1415
1415
|
type: Injectable,
|
|
1416
1416
|
args: [{ providedIn: "root" }]
|
|
1417
1417
|
}], ctorParameters: () => [{ type: AppEmbeddingExtensions }] });
|
|
@@ -1719,10 +1719,10 @@ class UtilityService {
|
|
|
1719
1719
|
//Ricreo il timeout per eseguire quella funzione dopo throttleTime millisecondi
|
|
1720
1720
|
this.executionTimers[id] = setTimeout(() => { func(); this.executionTimers[id] = null; }, throttleTime);
|
|
1721
1721
|
}
|
|
1722
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1723
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1722
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: UtilityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1723
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: UtilityService, providedIn: "root" });
|
|
1724
1724
|
}
|
|
1725
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1725
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: UtilityService, decorators: [{
|
|
1726
1726
|
type: Injectable,
|
|
1727
1727
|
args: [{ providedIn: "root" }]
|
|
1728
1728
|
}] });
|
|
@@ -2278,8 +2278,10 @@ class ExportService {
|
|
|
2278
2278
|
for (let h = 0; h < headers.length; h++) {
|
|
2279
2279
|
let head = headers[h];
|
|
2280
2280
|
let val = data[d][head.key];
|
|
2281
|
+
if (head.type == "date" && val && !this.dates.getDateConvertion(val))
|
|
2282
|
+
console.error("[@esfaenza/extensions - export] Valore data che non è una data per qualche motivo: " + val);
|
|
2281
2283
|
toExportItem[head.label] =
|
|
2282
|
-
head.type == "date" ? this.dates.getDateConvertion(val)
|
|
2284
|
+
head.type == "date" ? (val ? this.dates.getDateConvertion(val)?.toDate() : "") :
|
|
2283
2285
|
head.type == "number" ? (isNaN(parseFloat(val.replace(',', '.'))) ? "" : parseFloat(val.replace(',', '.'))) :
|
|
2284
2286
|
val;
|
|
2285
2287
|
}
|
|
@@ -2317,10 +2319,10 @@ class ExportService {
|
|
|
2317
2319
|
let headers = genericHeaders ? this.setupForGenericExport(createdItems, genericHeaders) : this.setupForExport(createdItems, columnsFilter);
|
|
2318
2320
|
return (format == "CSV" ? this.exportCSVBuffer : this.exportExcelBuffer).bind(this)(fileName, headers, createdItems);
|
|
2319
2321
|
}
|
|
2320
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2321
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2322
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ExportService, deps: [{ token: DateService }, { token: UtilityService }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2323
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ExportService, providedIn: "root" });
|
|
2322
2324
|
}
|
|
2323
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ExportService, decorators: [{
|
|
2324
2326
|
type: Injectable,
|
|
2325
2327
|
args: [{ providedIn: "root" }]
|
|
2326
2328
|
}], ctorParameters: () => [{ type: DateService }, { type: UtilityService }, { type: i1.LocalizationService }] });
|
|
@@ -2540,10 +2542,10 @@ class ClipboardService {
|
|
|
2540
2542
|
}
|
|
2541
2543
|
document.body.removeChild(textArea);
|
|
2542
2544
|
}
|
|
2543
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2544
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2545
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ClipboardService, deps: [{ token: MessageService }, { token: i1.BaseLocalization, optional: true }, { token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2546
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ClipboardService, providedIn: "root" });
|
|
2545
2547
|
}
|
|
2546
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2548
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: ClipboardService, decorators: [{
|
|
2547
2549
|
type: Injectable,
|
|
2548
2550
|
args: [{ providedIn: "root" }]
|
|
2549
2551
|
}], ctorParameters: () => [{ type: MessageService }, { type: i1.BaseLocalization, decorators: [{
|
|
@@ -2674,10 +2676,10 @@ class InterComService {
|
|
|
2674
2676
|
throw "@esfaenza/extensions - InterComService: Impossibile registrare più volte lo stesso modulo";
|
|
2675
2677
|
this.outbounds[key] = new Subject();
|
|
2676
2678
|
}
|
|
2677
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2678
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2679
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: InterComService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2680
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: InterComService, providedIn: "root" });
|
|
2679
2681
|
}
|
|
2680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2682
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: InterComService, decorators: [{
|
|
2681
2683
|
type: Injectable,
|
|
2682
2684
|
args: [{ providedIn: "root" }]
|
|
2683
2685
|
}] });
|