@esfaenza/extensions 15.2.7 → 15.2.9

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.
@@ -11,11 +11,11 @@ import * as i0 from "@angular/core";
11
11
  *
12
12
  * @param {Type<LocalizationService>} loc Tipo ereditato dal LocalizationService che può essere creato a runtime sotto contesto della DI di Angular
13
13
  */
14
- export declare function ExportLocalization(loc: Type<LocalizationService>): (ctor: new (...args: any[]) => {}) => {
14
+ export declare function ExportLocalization(loc: Type<LocalizationService>): <T extends new (...args: any[]) => {}>(constructor: T) => {
15
15
  new (...args: any[]): {
16
16
  __loc__: Type<LocalizationService>;
17
17
  };
18
- };
18
+ } & T;
19
19
  /**
20
20
  * Decoratore di esportazione utilizzabile su una proprietà singola.
21
21
  * Verranno generate 3 proprietà che gestiranno l'esportazione: (prop, prop_csvvis, prop_csvhdr).
@@ -113,12 +113,13 @@ export declare const ExportDictionary: (order: number, headernavigator: string,
113
113
  */
114
114
  export declare class ExportService {
115
115
  private dates;
116
+ private lc;
116
117
  /**
117
118
  * Costruttore
118
119
  *
119
120
  * @ignore
120
121
  */
121
- constructor(dates: DateService);
122
+ constructor(dates: DateService, lc: LocalizationService);
122
123
  /**
123
124
  * Data una lista di oggetti genera gli header per l'esportazione e integra ogni oggetto con le proprietà esportabili dalla libreria **@ctrl/ngx-csv**
124
125
  *
@@ -157,8 +158,6 @@ export declare class ExportService {
157
158
  * @returns {CsvHeaders[]} Header di esportazione già ordinati correttamente
158
159
  */
159
160
  private parseAndGetHeaders;
160
- /** Helper per ottenere il servizio di localizzazione relativo ad un'entità */
161
- private getLocalizationService;
162
161
  /**
163
162
  * Setup per l'esportazione di una singola proprietà.
164
163
  * Viene generato l'header e la proprietà relativa al valore formattato o no
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@esfaenza/extensions",
3
- "version": "15.2.7",
3
+ "version": "15.2.9",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
7
7
  "peerDependencies": {
8
- "@esfaenza/localizations": "^15.2.5",
8
+ "@esfaenza/localizations": "^15.2.10",
9
9
  "@angular/common": "^15.2.9",
10
10
  "@angular/core": "^15.2.9",
11
11
  "sweetalert2": "11.7.12",