@esfaenza/extensions 13.3.6 → 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.
File without changes
@@ -1,37 +1,23 @@
1
1
  /**
2
2
  * Classe che rappresenta una risposta ricevuta da un Backend
3
3
  */
4
- export declare class CallResult {
5
- /**
6
- * Tempo impiegato perché la chiamata terminasse
7
- */
4
+ export declare class CallResult<T = never> {
5
+ /** Tempo impiegato perché la chiamata terminasse */
8
6
  elapsedtime: string;
9
- /**
10
- * **true** se tutto è andato bene, **false** altrimenti
11
- */
7
+ /** **true** se tutto è andato bene, **false** altrimenti */
12
8
  success: boolean;
13
- /**
14
- * Indica se ci sono errori
15
- */
9
+ /** Indica se ci sono errori */
16
10
  haserror: boolean;
17
- /**
18
- * Codice dell'eventuale errore restituito
19
- */
11
+ /** Codice dell'eventuale errore restituito */
20
12
  errorcode: string;
21
- /**
22
- * Log dell'eventuale errore restituito
23
- */
13
+ /** Log dell'eventuale errore restituito */
24
14
  error: string;
25
- /**
26
- * ID dell'eventuale entità relativa a questa risposta
27
- */
15
+ /** ID dell'eventuale entità relativa a questa risposta */
28
16
  entityid: any;
29
- /**
30
- * Indica se ci sono warning
31
- */
17
+ /** Indica se ci sono warning */
32
18
  haswarning: boolean;
33
- /**
34
- * Log dell'eventuale warning restituito
35
- */
19
+ /** Log dell'eventuale warning restituito */
36
20
  warning: string;
21
+ /** Entità collegata a questo CallResult */
22
+ entity: T;
37
23
  }
@@ -52,7 +52,7 @@ export declare class MessageService {
52
52
  * @param {string} text Testo da mostrare
53
53
  * @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
54
54
  */
55
- simpleSuccess(text: string, secondaryNotificationType?: "toastr" | "swal" | null): void;
55
+ simpleSuccess(text: string, secondaryNotificationType?: "toastr" | "swal" | null, secondaryNotificationTimeout?: number): void;
56
56
  /**
57
57
  * Presentazione di un semplice messaggio di informazione
58
58
  *
@@ -62,7 +62,7 @@ export declare class MessageService {
62
62
  * @param {string} text Testo da mostrare
63
63
  * @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
64
64
  */
65
- simpleInfo(text: string, secondaryNotificationType?: "toastr" | "swal" | null): void;
65
+ simpleInfo(text: string, secondaryNotificationType?: "toastr" | "swal" | null, secondaryNotificationTimeout?: number): void;
66
66
  /**
67
67
  * Presentazione di un semplice messaggio di errore
68
68
  *
@@ -72,7 +72,7 @@ export declare class MessageService {
72
72
  * @param {string} text Testo da mostrare
73
73
  * @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
74
74
  */
75
- simpleError(text: string, secondaryNotificationType?: "toastr" | "swal" | null): void;
75
+ simpleError(text: string, secondaryNotificationType?: "toastr" | "swal" | null, secondaryNotificationTimeout?: number): void;
76
76
  /**
77
77
  * Presentazione di un semplice messaggio di avviso
78
78
  *
@@ -82,7 +82,7 @@ export declare class MessageService {
82
82
  * @param {string} text Testo da mostrare
83
83
  * @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
84
84
  */
85
- simpleWarning(text: string, secondaryNotificationType?: "toastr" | "swal" | null): void;
85
+ simpleWarning(text: string, secondaryNotificationType?: "toastr" | "swal" | null, secondaryNotificationTimeout?: number): void;
86
86
  /**
87
87
  * Ripulisce tutti i messaggi presenti in un dato momento sullo schermo
88
88
  */
@@ -81,6 +81,21 @@ export declare class UtilityService {
81
81
  * @returns {"boolean" | "number" | "string" | "date"} Tipo Typescript corrispondente
82
82
  */
83
83
  getJsTypeFromTypeCode(type: TypeCode): "boolean" | "number" | "string" | "date";
84
+ /**
85
+ * Effettua la clonazione profonda di un oggetto in maniera molto più performante che JSON.parse(JSON.stringify()).
86
+ *
87
+ * Usare solo per oggetti puri e quantomeno semplici per evitare complicazioni derivanti dalle semplificazioni che questo metodo assume
88
+ *
89
+ * @param {any} source Oggetto da clonare
90
+ *
91
+ * @return {any} Clone dell'oggetto passato
92
+ */
93
+ deepClone(source: any): any;
94
+ /**
95
+ * @ignore
96
+ * Step ricorsivo per la clonatura degli oggetti. Vedere **deepClone**
97
+ */
98
+ private recursiveStep;
84
99
  static ɵfac: i0.ɵɵFactoryDeclaration<UtilityService, never>;
85
100
  static ɵprov: i0.ɵɵInjectableDeclaration<UtilityService>;
86
101
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esfaenza/extensions",
3
- "version": "13.3.6",
3
+ "version": "14.2.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
@@ -17,13 +17,13 @@
17
17
  "esm2020": "esm2020/esfaenza-extensions.mjs",
18
18
  "fesm2020": "fesm2020/esfaenza-extensions.mjs",
19
19
  "fesm2015": "fesm2015/esfaenza-extensions.mjs",
20
- "typings": "esfaenza-extensions.d.ts",
20
+ "typings": "index.d.ts",
21
21
  "exports": {
22
22
  "./package.json": {
23
23
  "default": "./package.json"
24
24
  },
25
25
  ".": {
26
- "types": "./esfaenza-extensions.d.ts",
26
+ "types": "./index.d.ts",
27
27
  "esm2020": "./esm2020/esfaenza-extensions.mjs",
28
28
  "es2020": "./fesm2020/esfaenza-extensions.mjs",
29
29
  "es2015": "./fesm2015/esfaenza-extensions.mjs",