@esfaenza/extensions 18.2.1 → 19.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/fesm2022/esfaenza-extensions.mjs +39 -36
- package/fesm2022/esfaenza-extensions.mjs.map +1 -1
- package/lib/services/extensions.exports.service.d.ts +3 -1
- package/package.json +5 -7
- package/esm2022/esfaenza-extensions.mjs +0 -5
- package/esm2022/lib/models/CallResult.mjs +0 -24
- package/esm2022/lib/models/CsvHeaders.mjs +0 -26
- package/esm2022/lib/models/ExportConsts.mjs +0 -32
- package/esm2022/lib/models/ExtensionsModuleConfig.mjs +0 -10
- package/esm2022/lib/models/GenericItem.mjs +0 -10
- package/esm2022/lib/models/InboundMessageTypes.mjs +0 -7
- package/esm2022/lib/models/InterComMessage.mjs +0 -16
- package/esm2022/lib/models/TypeCode.mjs +0 -25
- package/esm2022/lib/modules/extensions.module.mjs +0 -32
- package/esm2022/lib/pipes/loc_date.pipe.mjs +0 -38
- package/esm2022/lib/services/extensions.base.mjs +0 -30
- package/esm2022/lib/services/extensions.clipboard.service.mjs +0 -221
- package/esm2022/lib/services/extensions.dates.service.mjs +0 -244
- package/esm2022/lib/services/extensions.embedding.service.mjs +0 -213
- package/esm2022/lib/services/extensions.exports.service.mjs +0 -617
- package/esm2022/lib/services/extensions.hashing.service.mjs +0 -308
- package/esm2022/lib/services/extensions.intercom.service.mjs +0 -52
- package/esm2022/lib/services/extensions.messages.service.mjs +0 -450
- package/esm2022/lib/services/extensions.utilities.service.mjs +0 -250
- package/esm2022/lib/tokens.mjs +0 -12
- package/esm2022/public-api.mjs +0 -22
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken,
|
|
2
|
+
import { InjectionToken, Optional, Inject, Injectable, Pipe, NgModule, Injector } from '@angular/core';
|
|
3
3
|
import * as i1 from '@esfaenza/localizations';
|
|
4
4
|
import { LocalizationModule } from '@esfaenza/localizations';
|
|
5
5
|
import { first, filter, take, map } from 'rxjs/operators';
|
|
@@ -242,10 +242,10 @@ class DateService {
|
|
|
242
242
|
return null;
|
|
243
243
|
return date.format(small ? this.cfg.smallDate : seconds ? this.cfg.fulldateDisplay : this.cfg.fulldateDisplayNoSS);
|
|
244
244
|
}
|
|
245
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
246
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
245
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DateService, deps: [{ token: i1.BaseLocalization, optional: true }, { token: EXT_ALLOW_UTC, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
246
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DateService, providedIn: "root" });
|
|
247
247
|
}
|
|
248
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
248
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: DateService, decorators: [{
|
|
249
249
|
type: Injectable,
|
|
250
250
|
args: [{ providedIn: "root" }]
|
|
251
251
|
}], ctorParameters: () => [{ type: i1.BaseLocalization, decorators: [{
|
|
@@ -284,12 +284,15 @@ class LocDatePipe {
|
|
|
284
284
|
var dt = this.dts.getDateConvertion(detatchedValue);
|
|
285
285
|
return dt.format(format);
|
|
286
286
|
}
|
|
287
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
288
|
-
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "
|
|
287
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LocDatePipe, deps: [{ token: DateService }], target: i0.ɵɵFactoryTarget.Pipe });
|
|
288
|
+
static ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: LocDatePipe, isStandalone: false, name: "loc_date" });
|
|
289
289
|
}
|
|
290
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
290
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: LocDatePipe, decorators: [{
|
|
291
291
|
type: Pipe,
|
|
292
|
-
args: [{
|
|
292
|
+
args: [{
|
|
293
|
+
name: "loc_date", pure: true,
|
|
294
|
+
standalone: false
|
|
295
|
+
}]
|
|
293
296
|
}], ctorParameters: () => [{ type: DateService }] });
|
|
294
297
|
|
|
295
298
|
// Angular
|
|
@@ -304,11 +307,11 @@ class ExtensionsModule {
|
|
|
304
307
|
]
|
|
305
308
|
};
|
|
306
309
|
}
|
|
307
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
308
|
-
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
309
|
-
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
310
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ExtensionsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
311
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.14", ngImport: i0, type: ExtensionsModule, declarations: [LocDatePipe], imports: [LocalizationModule], exports: [LocDatePipe] });
|
|
312
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ExtensionsModule, imports: [LocalizationModule] });
|
|
310
313
|
}
|
|
311
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ExtensionsModule, decorators: [{
|
|
312
315
|
type: NgModule,
|
|
313
316
|
args: [{
|
|
314
317
|
imports: [LocalizationModule],
|
|
@@ -615,10 +618,10 @@ class HashingService {
|
|
|
615
618
|
add32(a, b) {
|
|
616
619
|
return (a + b) & 0xFFFFFFFF;
|
|
617
620
|
}
|
|
618
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
619
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
621
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: HashingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
622
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: HashingService, providedIn: "root" });
|
|
620
623
|
}
|
|
621
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
624
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: HashingService, decorators: [{
|
|
622
625
|
type: Injectable,
|
|
623
626
|
args: [{ providedIn: "root" }]
|
|
624
627
|
}] });
|
|
@@ -1050,10 +1053,10 @@ class MessageService {
|
|
|
1050
1053
|
postFailure();
|
|
1051
1054
|
}
|
|
1052
1055
|
}
|
|
1053
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1054
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1056
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MessageService, deps: [{ token: Injector }, { token: i1.BaseLocalization, optional: true }, { token: HashingService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1057
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MessageService, providedIn: "root" });
|
|
1055
1058
|
}
|
|
1056
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1059
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: MessageService, decorators: [{
|
|
1057
1060
|
type: Injectable,
|
|
1058
1061
|
args: [{ providedIn: "root" }]
|
|
1059
1062
|
}], ctorParameters: () => [{ type: i0.Injector, decorators: [{
|
|
@@ -1261,10 +1264,10 @@ class AppEmbeddingExtensions {
|
|
|
1261
1264
|
if (left)
|
|
1262
1265
|
left.style.setProperty("width", leftSpace + "px");
|
|
1263
1266
|
}
|
|
1264
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1265
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1267
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AppEmbeddingExtensions, deps: [{ token: MessageService }, { token: i2.Router }, { token: i3.Location }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1268
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AppEmbeddingExtensions, providedIn: "root" });
|
|
1266
1269
|
}
|
|
1267
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1270
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: AppEmbeddingExtensions, decorators: [{
|
|
1268
1271
|
type: Injectable,
|
|
1269
1272
|
args: [{ providedIn: "root" }]
|
|
1270
1273
|
}], ctorParameters: () => [{ type: MessageService }, { type: i2.Router }, { type: i3.Location }] });
|
|
@@ -1288,10 +1291,10 @@ class BaseExtensionsService {
|
|
|
1288
1291
|
};
|
|
1289
1292
|
}
|
|
1290
1293
|
}
|
|
1291
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1292
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1294
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: BaseExtensionsService, deps: [{ token: AppEmbeddingExtensions }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1295
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: BaseExtensionsService, providedIn: "root" });
|
|
1293
1296
|
}
|
|
1294
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1297
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: BaseExtensionsService, decorators: [{
|
|
1295
1298
|
type: Injectable,
|
|
1296
1299
|
args: [{ providedIn: "root" }]
|
|
1297
1300
|
}], ctorParameters: () => [{ type: AppEmbeddingExtensions }] });
|
|
@@ -1591,10 +1594,10 @@ class UtilityService {
|
|
|
1591
1594
|
//Ricreo il timeout per eseguire quella funzione dopo throttleTime millisecondi
|
|
1592
1595
|
this.executionTimers[id] = setTimeout(() => { func(); this.executionTimers[id] = null; }, throttleTime);
|
|
1593
1596
|
}
|
|
1594
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1595
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1597
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: UtilityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1598
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: UtilityService, providedIn: "root" });
|
|
1596
1599
|
}
|
|
1597
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1600
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: UtilityService, decorators: [{
|
|
1598
1601
|
type: Injectable,
|
|
1599
1602
|
args: [{ providedIn: "root" }]
|
|
1600
1603
|
}] });
|
|
@@ -2201,10 +2204,10 @@ class ExportService {
|
|
|
2201
2204
|
(format == "CSV" ? this.exportCSV : this.exportExcel).bind(this)(fileName, headers, createdItems);
|
|
2202
2205
|
return headers;
|
|
2203
2206
|
}
|
|
2204
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2205
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2207
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ExportService, deps: [{ token: DateService }, { token: UtilityService }, { token: i1.LocalizationService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2208
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ExportService, providedIn: "root" });
|
|
2206
2209
|
}
|
|
2207
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ExportService, decorators: [{
|
|
2208
2211
|
type: Injectable,
|
|
2209
2212
|
args: [{ providedIn: "root" }]
|
|
2210
2213
|
}], ctorParameters: () => [{ type: DateService }, { type: UtilityService }, { type: i1.LocalizationService }] });
|
|
@@ -2413,10 +2416,10 @@ class ClipboardService {
|
|
|
2413
2416
|
}
|
|
2414
2417
|
document.body.removeChild(textArea);
|
|
2415
2418
|
}
|
|
2416
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2417
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2419
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClipboardService, deps: [{ token: MessageService }, { token: i1.BaseLocalization, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2420
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClipboardService, providedIn: "root" });
|
|
2418
2421
|
}
|
|
2419
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: ClipboardService, decorators: [{
|
|
2420
2423
|
type: Injectable,
|
|
2421
2424
|
args: [{ providedIn: "root" }]
|
|
2422
2425
|
}], ctorParameters: () => [{ type: MessageService }, { type: i1.BaseLocalization, decorators: [{
|
|
@@ -2544,10 +2547,10 @@ class InterComService {
|
|
|
2544
2547
|
throw "@esfaenza/extensions - InterComService: Impossibile registrare più volte lo stesso modulo";
|
|
2545
2548
|
this.outbounds[key] = new Subject();
|
|
2546
2549
|
}
|
|
2547
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2548
|
-
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2550
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: InterComService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2551
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: InterComService, providedIn: "root" });
|
|
2549
2552
|
}
|
|
2550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2553
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.14", ngImport: i0, type: InterComService, decorators: [{
|
|
2551
2554
|
type: Injectable,
|
|
2552
2555
|
args: [{ providedIn: "root" }]
|
|
2553
2556
|
}] });
|