@esfaenza/extensions 19.2.31 → 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 +126 -27
- package/fesm2022/esfaenza-extensions.mjs.map +1 -1
- package/lib/services/extensions.base.d.ts +1 -1
- package/lib/services/extensions.clipboard.service.d.ts +3 -2
- package/lib/services/extensions.embedding.service.d.ts +2 -1
- package/lib/services/extensions.exports.service.d.ts +8 -0
- package/lib/services/extensions.messages.service.d.ts +4 -2
- package/package.json +6 -7
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AppEmbeddingExtensions } from "./extensions.embedding.service";
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
/**
|
|
4
|
-
*
|
|
4
|
+
* WIP: per razionalizzare il fill della routesmap (vedi CRM app.extensions.ts)
|
|
5
5
|
*/
|
|
6
6
|
export declare class BaseExtensionsService {
|
|
7
7
|
private emb;
|
|
@@ -11,12 +11,13 @@ export declare class ClipboardService {
|
|
|
11
11
|
* Oggetto statico di localizzazione per i messaggi di questa Service
|
|
12
12
|
*/
|
|
13
13
|
private loc;
|
|
14
|
+
private isBrowser;
|
|
14
15
|
/**
|
|
15
16
|
* Costruttore
|
|
16
17
|
*
|
|
17
18
|
* @ignore
|
|
18
19
|
*/
|
|
19
|
-
constructor(msgService: MessageService, locProvider: BaseLocalization);
|
|
20
|
+
constructor(msgService: MessageService, locProvider: BaseLocalization, platformId: Object);
|
|
20
21
|
/**
|
|
21
22
|
* Prende il valore della clipboard.
|
|
22
23
|
* Si può specificare se ci si aspetta una lista o una matrice di valori in modo da ricevere già un risultato utilizzabile
|
|
@@ -49,6 +50,6 @@ export declare class ClipboardService {
|
|
|
49
50
|
* @param {string} text Testo da inserire nella clipboard
|
|
50
51
|
*/
|
|
51
52
|
copyTextToClipboard(text: string): Promise<void>;
|
|
52
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardService, [null, { optional: true; }]>;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardService, [null, { optional: true; }, null]>;
|
|
53
54
|
static ɵprov: i0.ɵɵInjectableDeclaration<ClipboardService>;
|
|
54
55
|
}
|
|
@@ -19,7 +19,8 @@ export declare class AppEmbeddingExtensions {
|
|
|
19
19
|
private _reloadAllowed;
|
|
20
20
|
EmbeddedModule: string;
|
|
21
21
|
private pushedHistories;
|
|
22
|
-
|
|
22
|
+
private isBrowser;
|
|
23
|
+
constructor(msgService: MessageService, router: Router, location: Location, platformId: Object);
|
|
23
24
|
private waitForMyConfigAndForceEmbeddedModule;
|
|
24
25
|
IsReloadAllowed(): boolean;
|
|
25
26
|
private MessageBarrierDebouncMs;
|
|
@@ -221,14 +221,22 @@ export declare class ExportService {
|
|
|
221
221
|
* Effettua l'esportazione in file CSV
|
|
222
222
|
*/
|
|
223
223
|
private exportCSV;
|
|
224
|
+
private exportCSVBuffer;
|
|
224
225
|
/** Effettua l'esportazione del file Excel basandosi sul modulo **ExcelJS**, sugli header **headers** e sui dati **data** */
|
|
225
226
|
private exportExcel;
|
|
227
|
+
private exportExcelBuffer;
|
|
226
228
|
/**
|
|
227
229
|
* Metodo che effettivamente genera gli header e i dati per l'esportazione con **ngx-csv**
|
|
228
230
|
*
|
|
229
231
|
* @param {any[]} items Oggetti da esportare
|
|
230
232
|
*/
|
|
231
233
|
export(items: any[], format: 'CSV' | 'XLSX', fileName: string, type: Type<any>, columnsFilter?: string[], genericHeaders?: CsvHeaders[]): CsvHeaders[];
|
|
234
|
+
/**
|
|
235
|
+
* Metodo che effettivamente genera gli header e i dati per l'esportazione con **ngx-csv**
|
|
236
|
+
*
|
|
237
|
+
* @param {any[]} items Oggetti da esportare
|
|
238
|
+
*/
|
|
239
|
+
exportBuffer(items: any[], format: 'CSV' | 'XLSX', fileName: string, type: Type<any>, columnsFilter?: string[], genericHeaders?: CsvHeaders[]): Uint8Array;
|
|
232
240
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExportService, never>;
|
|
233
241
|
static ɵprov: i0.ɵɵInjectableDeclaration<ExportService>;
|
|
234
242
|
}
|
|
@@ -36,8 +36,10 @@ export declare class MessageService {
|
|
|
36
36
|
event: any;
|
|
37
37
|
data: any;
|
|
38
38
|
}>;
|
|
39
|
+
isBrowser: boolean;
|
|
39
40
|
/** Costruttore @ignore */
|
|
40
|
-
constructor(injector: Injector, locProvider: BaseLocalization, hash: HashingService);
|
|
41
|
+
constructor(injector: Injector, locProvider: BaseLocalization, hash: HashingService, platformId: Object);
|
|
42
|
+
browserCheck(): boolean;
|
|
41
43
|
configureEmbeddability(mainWindow: Window, messageObserver: Subject<{
|
|
42
44
|
event: any;
|
|
43
45
|
data: any;
|
|
@@ -190,6 +192,6 @@ export declare class MessageService {
|
|
|
190
192
|
* @param {Function} postFailure Callback da chimare in caso di fallimento
|
|
191
193
|
*/
|
|
192
194
|
manageStringResponseBool(response: boolean, successMsg: string, errorMsg: string, postSuccess?: Function, postFailure?: Function): void;
|
|
193
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, [null, { optional: true; }, null]>;
|
|
195
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, [null, { optional: true; }, null, null]>;
|
|
194
196
|
static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>;
|
|
195
197
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esfaenza/extensions",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "20.3.3",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.0.0"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@
|
|
9
|
-
"@angular/
|
|
10
|
-
"@
|
|
8
|
+
"@angular/common": "^20.3.13",
|
|
9
|
+
"@angular/core": "^20.3.13",
|
|
10
|
+
"@esfaenza/localizations": "^20.3.1",
|
|
11
11
|
"sweetalert2": "11.26.3",
|
|
12
|
-
"ngx-toastr": "19.
|
|
12
|
+
"ngx-toastr": "19.1.0",
|
|
13
13
|
"dayjs": "1.11.19",
|
|
14
|
-
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
|
|
15
|
-
"stream": "0.0.3"
|
|
14
|
+
"xlsx": "https://cdn.sheetjs.com/xlsx-0.20.3/xlsx-0.20.3.tgz"
|
|
16
15
|
},
|
|
17
16
|
"module": "fesm2022/esfaenza-extensions.mjs",
|
|
18
17
|
"typings": "index.d.ts",
|