@esfaenza/extensions 11.2.23 → 11.2.26

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
@@ -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.23",
3
+ "version": "11.2.26",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },