@esfaenza/extensions 15.2.25 → 15.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.
- package/esm2020/lib/services/extensions.embedding.service.mjs +131 -4
- package/esm2020/lib/services/extensions.messages.service.mjs +54 -25
- package/fesm2015/esfaenza-extensions.mjs +1716 -1561
- package/fesm2015/esfaenza-extensions.mjs.map +1 -1
- package/fesm2020/esfaenza-extensions.mjs +1748 -1595
- package/fesm2020/esfaenza-extensions.mjs.map +1 -1
- package/lib/services/extensions.embedding.service.d.ts +12 -1
- package/lib/services/extensions.messages.service.d.ts +30 -34
- package/package.json +1 -1
|
@@ -1,9 +1,20 @@
|
|
|
1
|
+
import { Router } from "@angular/router";
|
|
2
|
+
import { MessageService } from "./extensions.messages.service";
|
|
3
|
+
import { Subject } from "rxjs";
|
|
1
4
|
import * as i0 from "@angular/core";
|
|
2
5
|
export declare class AppEmbeddingExtensions {
|
|
6
|
+
private msgService;
|
|
7
|
+
private router;
|
|
3
8
|
Embedded: boolean;
|
|
4
9
|
EmbeddingLevel: number;
|
|
5
10
|
MainWindow: any;
|
|
6
|
-
|
|
11
|
+
MessageObserver: Subject<{
|
|
12
|
+
event: any;
|
|
13
|
+
data: any;
|
|
14
|
+
}>;
|
|
15
|
+
constructor(msgService: MessageService, router: Router);
|
|
16
|
+
configureEmbeddability(): void;
|
|
17
|
+
refreshBoundariesOnMenuCollapse(): void;
|
|
7
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<AppEmbeddingExtensions, never>;
|
|
8
19
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppEmbeddingExtensions>;
|
|
9
20
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Injector } from "@angular/core";
|
|
2
2
|
import { BaseLocalization } from "@esfaenza/localizations";
|
|
3
|
-
import { Observable } from "rxjs";
|
|
3
|
+
import { Observable, Subject } from "rxjs";
|
|
4
4
|
import { CallResult } from "../models/CallResult";
|
|
5
|
-
import {
|
|
5
|
+
import { HashingService } from "./extensions.hashing.service";
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
/**
|
|
8
8
|
* Service che fornisce funzionalità di alert nei tipi fondamentali: success, info, warning e danger
|
|
@@ -10,46 +10,38 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
export declare class MessageService {
|
|
11
11
|
private injector;
|
|
12
12
|
private locProvider;
|
|
13
|
-
private
|
|
14
|
-
/**
|
|
15
|
-
* Oggetto statico in supporto alla localizzazione
|
|
16
|
-
*/
|
|
13
|
+
private hash;
|
|
14
|
+
/** Oggetto statico in supporto alla localizzazione */
|
|
17
15
|
private loc;
|
|
18
|
-
/**
|
|
19
|
-
* Template di un warning con richiesta di conferma
|
|
20
|
-
*/
|
|
16
|
+
/** Template di un warning con richiesta di conferma */
|
|
21
17
|
private warningSwalWithCancel;
|
|
22
|
-
/**
|
|
23
|
-
* Template di un warning con richiesta di conferma
|
|
24
|
-
*/
|
|
18
|
+
/** Template di un warning con richiesta di conferma */
|
|
25
19
|
private successSwalWithCancel;
|
|
26
|
-
/**
|
|
27
|
-
* Template di un errore
|
|
28
|
-
*/
|
|
20
|
+
/** Template di un errore */
|
|
29
21
|
private errorSwal;
|
|
30
|
-
/**
|
|
31
|
-
* Template di un messaggio di successo
|
|
32
|
-
*/
|
|
22
|
+
/** Template di un messaggio di successo */
|
|
33
23
|
private successSwal;
|
|
34
|
-
/**
|
|
35
|
-
* Template di un avviso
|
|
36
|
-
*/
|
|
24
|
+
/** Template di un avviso */
|
|
37
25
|
private warningSwal;
|
|
38
|
-
/**
|
|
39
|
-
* Template di un messaggio informativo
|
|
40
|
-
*/
|
|
26
|
+
/** Template di un messaggio informativo */
|
|
41
27
|
private infoSwal;
|
|
42
|
-
/**
|
|
43
|
-
* Template di un warning per la sessione scaduta
|
|
44
|
-
*/
|
|
28
|
+
/** Template di un warning per la sessione scaduta */
|
|
45
29
|
private expiredSessionSwal;
|
|
30
|
+
/** Getter per il servizio dei toast. ngx-toastr è fatta talmente male che la service dev'essere recuperata in questo modo */
|
|
46
31
|
private get toastr();
|
|
47
|
-
/**
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
32
|
+
/** Supporto all'Embedding */
|
|
33
|
+
Embedded: boolean;
|
|
34
|
+
MainWindow: Window;
|
|
35
|
+
MessageObserver: Subject<{
|
|
36
|
+
event: any;
|
|
37
|
+
data: any;
|
|
38
|
+
}>;
|
|
39
|
+
/** Costruttore @ignore */
|
|
40
|
+
constructor(injector: Injector, locProvider: BaseLocalization, hash: HashingService);
|
|
41
|
+
configureEmbeddability(mainWindow: Window, messageObserver: Subject<{
|
|
42
|
+
event: any;
|
|
43
|
+
data: any;
|
|
44
|
+
}>): void;
|
|
53
45
|
init(): Promise<void>;
|
|
54
46
|
/**
|
|
55
47
|
* Presentazione di un semplice messaggio di successo
|
|
@@ -120,7 +112,11 @@ export declare class MessageService {
|
|
|
120
112
|
* @param {Function} onsuccess Callback da chimare su conferma
|
|
121
113
|
* @param {Function} onerror Callback da chimare su errori
|
|
122
114
|
*/
|
|
115
|
+
private _simpleWarningWithChoice;
|
|
116
|
+
private GuidRepsonseFunctionsMap;
|
|
123
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;
|
|
124
120
|
/**
|
|
125
121
|
* Mostra un messaggio di success con richiesta di conferma e gestisce il risultato chiamato i callback **onconfirm** o **onabort**
|
|
126
122
|
*
|
|
@@ -131,7 +127,7 @@ export declare class MessageService {
|
|
|
131
127
|
* @param {string} confirmtext Testo del pulsante di azione
|
|
132
128
|
* @param {string} aborttext Testo del pulsante di annullamento
|
|
133
129
|
*/
|
|
134
|
-
|
|
130
|
+
private _simpleSuccessWithChoice;
|
|
135
131
|
/**
|
|
136
132
|
* Mostra un messaggio di avviso con richiesta di conferma e gestisce il risultato chiamato i callback **onsuccess** o **onerror**
|
|
137
133
|
*
|