@esfaenza/extensions 11.2.24 → 11.2.27

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.
@@ -1,4 +1,5 @@
1
1
  import { ToastrService } from "ngx-toastr";
2
+ import { Observable } from "rxjs";
2
3
  import { CallResult } from "../models/CallResult";
3
4
  /**
4
5
  * Service che fornisce funzionalità di alert nei tipi fondamentali: success, info, warning e danger
@@ -50,7 +51,7 @@ export declare class MessageService {
50
51
  * @param {string} text Testo da mostrare
51
52
  * @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
52
53
  */
53
- simpleSuccess(text: string, secondaryNotificationType?: "toastr" | "swal" | null): void;
54
+ simpleSuccess(text: string, secondaryNotificationType?: "toastr" | "swal" | null, secondaryNotificationTimeout?: number): void;
54
55
  /**
55
56
  * Presentazione di un semplice messaggio di informazione
56
57
  *
@@ -60,7 +61,7 @@ export declare class MessageService {
60
61
  * @param {string} text Testo da mostrare
61
62
  * @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
62
63
  */
63
- simpleInfo(text: string, secondaryNotificationType?: "toastr" | "swal" | null): void;
64
+ simpleInfo(text: string, secondaryNotificationType?: "toastr" | "swal" | null, secondaryNotificationTimeout?: number): void;
64
65
  /**
65
66
  * Presentazione di un semplice messaggio di errore
66
67
  *
@@ -70,7 +71,7 @@ export declare class MessageService {
70
71
  * @param {string} text Testo da mostrare
71
72
  * @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
72
73
  */
73
- simpleError(text: string, secondaryNotificationType?: "toastr" | "swal" | null): void;
74
+ simpleError(text: string, secondaryNotificationType?: "toastr" | "swal" | null, secondaryNotificationTimeout?: number): void;
74
75
  /**
75
76
  * Presentazione di un semplice messaggio di avviso
76
77
  *
@@ -80,7 +81,7 @@ export declare class MessageService {
80
81
  * @param {string} text Testo da mostrare
81
82
  * @param {"toastr" | "swal" | null} secondaryNotificationType Qualora sia una notifica secondaria, ne indica il tipo
82
83
  */
83
- simpleWarning(text: string, secondaryNotificationType?: "toastr" | "swal" | null): void;
84
+ simpleWarning(text: string, secondaryNotificationType?: "toastr" | "swal" | null, secondaryNotificationTimeout?: number): void;
84
85
  /**
85
86
  * Ripulisce tutti i messaggi presenti in un dato momento sullo schermo
86
87
  */
@@ -111,6 +112,13 @@ export declare class MessageService {
111
112
  * @param {Function} onerror Callback da chimare su errori
112
113
  */
113
114
  simpleWarningWithChoice(title: string, text: string, onsuccess?: Function, onerror?: Function): void;
115
+ /**
116
+ * Mostra un messaggio di avviso con richiesta di conferma e gestisce il risultato chiamato i callback **onsuccess** o **onerror**
117
+ *
118
+ * @param {string} title Titolo del messaggio
119
+ * @param {string} text Contenuto del messaggio
120
+ */
121
+ observableSimpleWarningWithChoice(title: string, text: string): Observable<boolean>;
114
122
  /**
115
123
  * Mostra un messaggio di avviso che la sessione corrente è scaduta e propone all'utente di navigare al login. Qualora l'utente decidesse di farlo
116
124
  * verrà chiamata la funzione di callback **onnavigate
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esfaenza/extensions",
3
- "version": "11.2.24",
3
+ "version": "11.2.27",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },