@esfaenza/extensions 13.3.1 → 13.3.4
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/esm2020/lib/services/extensions.messages.service.mjs +13 -1
- package/fesm2015/esfaenza-extensions.mjs +11 -1
- package/fesm2015/esfaenza-extensions.mjs.map +1 -1
- package/fesm2020/esfaenza-extensions.mjs +11 -1
- package/fesm2020/esfaenza-extensions.mjs.map +1 -1
- package/lib/services/extensions.messages.service.d.ts +8 -0
- package/package.json +1 -1
|
@@ -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
|
import * as i0 from "@angular/core";
|
|
4
5
|
/**
|
|
@@ -112,6 +113,13 @@ export declare class MessageService {
|
|
|
112
113
|
* @param {Function} onerror Callback da chimare su errori
|
|
113
114
|
*/
|
|
114
115
|
simpleWarningWithChoice(title: string, text: string, onsuccess?: Function, onerror?: Function): void;
|
|
116
|
+
/**
|
|
117
|
+
* Mostra un messaggio di avviso con richiesta di conferma e gestisce il risultato chiamato i callback **onsuccess** o **onerror**
|
|
118
|
+
*
|
|
119
|
+
* @param {string} title Titolo del messaggio
|
|
120
|
+
* @param {string} text Contenuto del messaggio
|
|
121
|
+
*/
|
|
122
|
+
observableSimpleWarningWithChoice(title: string, text: string): Observable<boolean>;
|
|
115
123
|
/**
|
|
116
124
|
* Mostra un messaggio di avviso che la sessione corrente è scaduta e propone all'utente di navigare al login. Qualora l'utente decidesse di farlo
|
|
117
125
|
* verrà chiamata la funzione di callback **onnavigate
|