@esfaenza/extensions 15.2.36 → 15.2.37
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 +33 -24
- package/fesm2015/esfaenza-extensions.mjs +32 -23
- package/fesm2015/esfaenza-extensions.mjs.map +1 -1
- package/fesm2020/esfaenza-extensions.mjs +32 -23
- package/fesm2020/esfaenza-extensions.mjs.map +1 -1
- package/lib/services/extensions.messages.service.d.ts +16 -4
- package/package.json +1 -1
|
@@ -104,6 +104,10 @@ export declare class MessageService {
|
|
|
104
104
|
* @returns {"toastr" | "swal"} Indicazione su che provider di messaggi di avviso debba essere utilizzato
|
|
105
105
|
*/
|
|
106
106
|
private toastrOrSwal;
|
|
107
|
+
private GuidRepsonseFunctionsMap;
|
|
108
|
+
simpleWarningWithChoice(title: string, text: string, onsuccess?: Function, onerror?: Function, confirmtext?: string, aborttext?: string): void;
|
|
109
|
+
simpleSuccessWithChoice(title: string, text: string, onsuccess?: Function, onerror?: Function, confirmtext?: string, aborttext?: string): void;
|
|
110
|
+
private withChoiceBase;
|
|
107
111
|
/**
|
|
108
112
|
* Mostra un messaggio di avviso con richiesta di conferma e gestisce il risultato chiamato i callback **onsuccess** o **onerror**
|
|
109
113
|
*
|
|
@@ -113,10 +117,6 @@ export declare class MessageService {
|
|
|
113
117
|
* @param {Function} onerror Callback da chimare su errori
|
|
114
118
|
*/
|
|
115
119
|
private _simpleWarningWithChoice;
|
|
116
|
-
private GuidRepsonseFunctionsMap;
|
|
117
|
-
simpleWarningWithChoice(title: string, text: string, onsuccess?: Function, onerror?: Function): void;
|
|
118
|
-
simpleSuccessWithChoice(title: string, text: string, onsuccess?: Function, onerror?: Function): void;
|
|
119
|
-
private withChoiceBase;
|
|
120
120
|
/**
|
|
121
121
|
* Mostra un messaggio di success con richiesta di conferma e gestisce il risultato chiamato i callback **onconfirm** o **onabort**
|
|
122
122
|
*
|
|
@@ -128,6 +128,18 @@ export declare class MessageService {
|
|
|
128
128
|
* @param {string} aborttext Testo del pulsante di annullamento
|
|
129
129
|
*/
|
|
130
130
|
private _simpleSuccessWithChoice;
|
|
131
|
+
/**
|
|
132
|
+
* Metodo base per richiedere una scelta all'utente
|
|
133
|
+
*
|
|
134
|
+
* @param {any} swal Swal mixin da utilizzare per visualizzare il messaggio di choice
|
|
135
|
+
* @param {string} title Titolo del messaggio
|
|
136
|
+
* @param {string} text Contenuto del messaggio
|
|
137
|
+
* @param {Function} onconfirm Callback da chimare su conferma
|
|
138
|
+
* @param {Function} onabort Callback da chimare su annullamento
|
|
139
|
+
* @param {string} confirmtext Testo del pulsante di azione
|
|
140
|
+
* @param {string} aborttext Testo del pulsante di annullamento
|
|
141
|
+
*/
|
|
142
|
+
private _simpleWithChoice;
|
|
131
143
|
/**
|
|
132
144
|
* Mostra un messaggio di avviso con richiesta di conferma e gestisce il risultato chiamato i callback **onsuccess** o **onerror**
|
|
133
145
|
*
|