@esfaenza/extensions 15.2.25 → 15.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,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
- constructor();
11
+ MessageObserver: Subject<{
12
+ event: any;
13
+ data: any;
14
+ }>;
15
+ constructor(msgService: MessageService, router: Router);
16
+ setupEmbeddability(): void;
17
+ refreshBoundariesOnMenuCollapse(): void;
7
18
  static ɵfac: i0.ɵɵFactoryDeclaration<AppEmbeddingExtensions, never>;
8
19
  static ɵprov: i0.ɵɵInjectableDeclaration<AppEmbeddingExtensions>;
9
20
  }
@@ -3,6 +3,7 @@ import { BaseLocalization } from "@esfaenza/localizations";
3
3
  import { Observable } from "rxjs";
4
4
  import { CallResult } from "../models/CallResult";
5
5
  import { AppEmbeddingExtensions } from "./extensions.embedding.service";
6
+ import { HashingService } from "./extensions.hashing.service";
6
7
  import * as i0 from "@angular/core";
7
8
  /**
8
9
  * Service che fornisce funzionalità di alert nei tipi fondamentali: success, info, warning e danger
@@ -11,6 +12,7 @@ export declare class MessageService {
11
12
  private injector;
12
13
  private locProvider;
13
14
  private emb;
15
+ private hash;
14
16
  /**
15
17
  * Oggetto statico in supporto alla localizzazione
16
18
  */
@@ -49,7 +51,7 @@ export declare class MessageService {
49
51
  *
50
52
  * @ignore
51
53
  */
52
- constructor(injector: Injector, locProvider: BaseLocalization, emb: AppEmbeddingExtensions);
54
+ constructor(injector: Injector, locProvider: BaseLocalization, emb: AppEmbeddingExtensions, hash: HashingService);
53
55
  init(): Promise<void>;
54
56
  /**
55
57
  * Presentazione di un semplice messaggio di successo
@@ -120,7 +122,11 @@ export declare class MessageService {
120
122
  * @param {Function} onsuccess Callback da chimare su conferma
121
123
  * @param {Function} onerror Callback da chimare su errori
122
124
  */
125
+ private _simpleWarningWithChoice;
126
+ private GuidRepsonseFunctionsMap;
123
127
  simpleWarningWithChoice(title: string, text: string, onsuccess?: Function, onerror?: Function): void;
128
+ simpleSuccessWithChoice(title: string, text: string, onsuccess?: Function, onerror?: Function): void;
129
+ private withChoiceBase;
124
130
  /**
125
131
  * Mostra un messaggio di success con richiesta di conferma e gestisce il risultato chiamato i callback **onconfirm** o **onabort**
126
132
  *
@@ -131,7 +137,7 @@ export declare class MessageService {
131
137
  * @param {string} confirmtext Testo del pulsante di azione
132
138
  * @param {string} aborttext Testo del pulsante di annullamento
133
139
  */
134
- simpleSuccessWithChoice(title: string, text: string, onconfirm?: Function, onabort?: Function, confirmtext?: string, aborttext?: string): void;
140
+ private _simpleSuccessWithChoice;
135
141
  /**
136
142
  * Mostra un messaggio di avviso con richiesta di conferma e gestisce il risultato chiamato i callback **onsuccess** o **onerror**
137
143
  *
@@ -182,6 +188,6 @@ export declare class MessageService {
182
188
  * @param {Function} postFailure Callback da chimare in caso di fallimento
183
189
  */
184
190
  manageStringResponseBool(response: boolean, successMsg: string, errorMsg: string, postSuccess?: Function, postFailure?: Function): void;
185
- static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, [null, { optional: true; }, null]>;
191
+ static ɵfac: i0.ɵɵFactoryDeclaration<MessageService, [null, { optional: true; }, null, null]>;
186
192
  static ɵprov: i0.ɵɵInjectableDeclaration<MessageService>;
187
193
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@esfaenza/extensions",
3
- "version": "15.2.25",
3
+ "version": "15.2.26",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },