@esfaenza/extensions 15.2.24 → 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.
- package/esm2020/lib/services/extensions.base.mjs +29 -0
- package/esm2020/lib/services/extensions.embedding.service.mjs +129 -4
- package/esm2020/lib/services/extensions.messages.service.mjs +34 -7
- package/esm2020/lib/services/extensions.utilities.service.mjs +19 -1
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/esfaenza-extensions.mjs +1762 -1568
- package/fesm2015/esfaenza-extensions.mjs.map +1 -1
- package/fesm2020/esfaenza-extensions.mjs +1743 -1551
- package/fesm2020/esfaenza-extensions.mjs.map +1 -1
- package/lib/services/extensions.base.d.ts +22 -0
- package/lib/services/extensions.embedding.service.d.ts +12 -1
- package/lib/services/extensions.messages.service.d.ts +9 -3
- package/lib/services/extensions.utilities.service.d.ts +6 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { AppEmbeddingExtensions } from "./extensions.embedding.service";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
/**
|
|
4
|
+
* Service che fornisce un accesso base in lettura/scrittura sulla clipboard
|
|
5
|
+
*/
|
|
6
|
+
export declare class BaseExtensionsService {
|
|
7
|
+
private emb;
|
|
8
|
+
RedirectMap: {
|
|
9
|
+
[index: string]: {
|
|
10
|
+
url: string;
|
|
11
|
+
params: string[];
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
RoutesMap: {
|
|
15
|
+
[index: string]: {
|
|
16
|
+
route: (param: string) => any;
|
|
17
|
+
};
|
|
18
|
+
};
|
|
19
|
+
constructor(emb: AppEmbeddingExtensions);
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseExtensionsService, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BaseExtensionsService>;
|
|
22
|
+
}
|
|
@@ -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
|
+
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
|
-
|
|
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
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Type } from "@angular/core";
|
|
1
2
|
import { NgForm } from "@angular/forms";
|
|
2
3
|
import { TypeCode } from '../models/TypeCode';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
@@ -96,6 +97,11 @@ export declare class UtilityService {
|
|
|
96
97
|
* Step ricorsivo per la clonatura degli oggetti. Vedere **deepClone**
|
|
97
98
|
*/
|
|
98
99
|
private recursiveStep;
|
|
100
|
+
cast(object: any, clss: Type<any>): any;
|
|
101
|
+
/** @ignore */
|
|
102
|
+
private executionTimers;
|
|
103
|
+
/** @ignore */
|
|
104
|
+
throttla(id: string, func: Function, throttleTime: number): void;
|
|
99
105
|
static ɵfac: i0.ɵɵFactoryDeclaration<UtilityService, never>;
|
|
100
106
|
static ɵprov: i0.ɵɵInjectableDeclaration<UtilityService>;
|
|
101
107
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from './lib/modules/extensions.module';
|
|
2
|
+
export * from './lib/services/extensions.base';
|
|
2
3
|
export * from './lib/services/extensions.dates.service';
|
|
3
4
|
export * from './lib/services/extensions.exports.service';
|
|
4
5
|
export * from './lib/services/extensions.clipboard.service';
|