@esfaenza/es-table 13.3.2 → 13.4.0
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/components/es-table/es_table.component.loc.mjs +7 -5
- package/esm2020/lib/components/es-table/es_table.component.mjs +547 -117
- package/esm2020/lib/components/es-table-template/es_table_template.component.mjs +21 -0
- package/esm2020/lib/components/es-td/es_td.component.mjs +23 -55
- package/esm2020/lib/components/es-th/es_th.component.mjs +5 -5
- package/esm2020/lib/components/pager/table_pager.component.loc.mjs +3 -3
- package/esm2020/lib/components/pager/table_pager.component.mjs +5 -5
- package/esm2020/lib/components/pipes/est-format.pipe.mjs +44 -0
- package/esm2020/lib/components/pipes/est-lookup.pipe.mjs +19 -0
- package/esm2020/lib/components/pipes/est-renderer.pipe.mjs +36 -0
- package/esm2020/lib/components/pipes/est-routerlink.pipe.mjs +41 -0
- package/esm2020/lib/components/pipes/est_editor.pipe.mjs +36 -0
- package/esm2020/lib/core/CopyPasteDetector.mjs +28 -0
- package/esm2020/lib/core/Logger.mjs +26 -0
- package/esm2020/lib/core/handlers/ColumnMetadataHandler.mjs +75 -35
- package/esm2020/lib/core/handlers/DynamicModeHandler.mjs +80 -37
- package/esm2020/lib/core/handlers/ExportHandler.mjs +53 -14
- package/esm2020/lib/core/handlers/ItemsHandler.mjs +13 -5
- package/esm2020/lib/core/handlers/ReportModeHandler.mjs +15 -2
- package/esm2020/lib/core/handlers/SelectionHandler.mjs +267 -1
- package/esm2020/lib/core/handlers/UtilitiesHandler.mjs +7 -8
- package/esm2020/lib/directives/es_td.directive.mjs +24 -6
- package/esm2020/lib/directives/es_td_editor.directive.mjs +24 -0
- package/esm2020/lib/directives/es_th.directive.mjs +39 -9
- package/esm2020/lib/domain/configuration/EsTableDefaultable.mjs +1 -1
- package/esm2020/lib/domain/externals/EsTableColumnsDefinition.mjs +39 -22
- package/esm2020/lib/domain/externals/EsTableModelChange.mjs +19 -0
- package/esm2020/lib/domain/externals/ItemPropEditableReference.mjs +4 -0
- package/esm2020/lib/domain/externals/appsearch/AppSearch.mjs +33 -14
- package/esm2020/lib/domain/externals/report/ReportColumn.mjs +1 -1
- package/esm2020/lib/domain/externals/report/ReportRow.mjs +1 -1
- package/esm2020/lib/domain/internals/EsTableColumn.mjs +3 -2
- package/esm2020/lib/domain/internals/GroupPager.mjs +4 -3
- package/esm2020/lib/domain/internals/PagerInfos.mjs +15 -0
- package/esm2020/lib/domain/internals/TdElement.mjs +1 -1
- package/esm2020/lib/domain/internals/ThElement.mjs +1 -1
- package/esm2020/lib/domain/internals/ThGroup.mjs +2 -0
- package/esm2020/lib/domain/types.mjs +2 -0
- package/esm2020/lib/es-table.module.mjs +78 -37
- package/esm2020/public-api.mjs +6 -1
- package/fesm2015/esfaenza-es-table.mjs +1581 -361
- package/fesm2015/esfaenza-es-table.mjs.map +1 -1
- package/fesm2020/esfaenza-es-table.mjs +1560 -358
- package/fesm2020/esfaenza-es-table.mjs.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +173 -80
- package/lib/components/es-table-template/es_table_template.component.d.ts +18 -0
- package/lib/components/es-td/es_td.component.d.ts +14 -34
- package/lib/components/pipes/est-format.pipe.d.ts +10 -0
- package/lib/components/pipes/est-lookup.pipe.d.ts +13 -0
- package/lib/components/pipes/est-renderer.pipe.d.ts +15 -0
- package/lib/components/pipes/est-routerlink.pipe.d.ts +20 -0
- package/lib/components/pipes/est_editor.pipe.d.ts +15 -0
- package/lib/core/CopyPasteDetector.d.ts +15 -0
- package/lib/core/Logger.d.ts +10 -0
- package/lib/core/handlers/ColumnMetadataHandler.d.ts +8 -0
- package/lib/core/handlers/DynamicModeHandler.d.ts +13 -23
- package/lib/core/handlers/ExportHandler.d.ts +4 -0
- package/lib/core/handlers/ItemsHandler.d.ts +1 -1
- package/lib/core/handlers/ReportModeHandler.d.ts +9 -0
- package/lib/core/handlers/SelectionHandler.d.ts +90 -0
- package/lib/core/handlers/UtilitiesHandler.d.ts +4 -1
- package/lib/directives/es_td.directive.d.ts +18 -2
- package/lib/directives/es_td_editor.directive.d.ts +14 -0
- package/lib/directives/es_th.directive.d.ts +43 -11
- package/lib/domain/configuration/EsTableDefaultable.d.ts +1 -0
- package/lib/domain/externals/EsTableColumnsDefinition.d.ts +48 -23
- package/lib/domain/externals/EsTableModelChange.d.ts +17 -0
- package/lib/domain/externals/ItemPropEditableReference.d.ts +34 -0
- package/lib/domain/externals/appsearch/AppSearch.d.ts +15 -2
- package/lib/domain/externals/report/ReportColumn.d.ts +4 -0
- package/lib/domain/externals/report/ReportRow.d.ts +4 -0
- package/lib/domain/internals/EsTableColumn.d.ts +4 -1
- package/lib/domain/internals/GroupPager.d.ts +3 -2
- package/lib/domain/internals/PagerInfos.d.ts +13 -0
- package/lib/domain/internals/TdElement.d.ts +18 -5
- package/lib/domain/internals/ThElement.d.ts +6 -0
- package/lib/domain/internals/ThGroup.d.ts +10 -0
- package/lib/domain/types.d.ts +2 -0
- package/lib/es-table.module.d.ts +26 -19
- package/package.json +9 -10
- package/public-api.d.ts +5 -0
|
@@ -10,8 +10,9 @@ export declare class GroupPager {
|
|
|
10
10
|
/**
|
|
11
11
|
* Costruttore
|
|
12
12
|
*
|
|
13
|
-
* @param {number}
|
|
14
|
-
* @param {string}
|
|
13
|
+
* @param {number} _grouplevel Livello del gruppo a cui questo separatore fa riferimento
|
|
14
|
+
* @param {string} _thisRoute Route che identifica la gerarchia del gruppo e chi sono i parent
|
|
15
|
+
* @param {string} _parent Chiave del gruppo parent se esiste
|
|
15
16
|
* @param {AppSearch<any>} view Vista di ricerca collegata a questo elemento
|
|
16
17
|
* @param {'groups' | 'items'} searches Indica che cosa cerca questo separatore, se sottogruppi o oggetti
|
|
17
18
|
*/
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Classe che rappresenta le informazioni di paginazione della tabella attuale */
|
|
2
|
+
export declare class PagerInfos {
|
|
3
|
+
constructor();
|
|
4
|
+
PagerCount: number;
|
|
5
|
+
ShowCount: boolean;
|
|
6
|
+
ShowPaging: boolean;
|
|
7
|
+
UsesView: boolean;
|
|
8
|
+
ShowButtons: boolean;
|
|
9
|
+
ShowPagingOptions: boolean;
|
|
10
|
+
View: any;
|
|
11
|
+
Ready: boolean;
|
|
12
|
+
Searches: 'items' | 'groups';
|
|
13
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { SafeHtml } from "@angular/platform-browser";
|
|
2
|
+
/** Interfaccia di passaggio fra i dati che arrivano come direttiva / configurazione alla struttura interna su cui vengono generati i componenti es-td */
|
|
2
3
|
export interface TdElement {
|
|
3
4
|
/** Id della cella, dev'essere lo stesso della colonna **EsTh** relativa */
|
|
4
5
|
ID: string;
|
|
@@ -32,13 +33,25 @@ export interface TdElement {
|
|
|
32
33
|
Visible?: boolean;
|
|
33
34
|
/** Indica se la cella deve wrappare o no il contenuto */
|
|
34
35
|
Wraps?: boolean;
|
|
35
|
-
/**
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
36
|
+
/** Nome della proprietà JS che questa cella mostra */
|
|
37
|
+
PropertyName?: string;
|
|
38
|
+
/** Tipo della proprietà **PropertyName** */
|
|
39
|
+
PropertyType?: string;
|
|
40
|
+
/** Sorgente dati per la valorizzazione della proprietà **PropertyName** */
|
|
41
|
+
PropertySource?: {
|
|
42
|
+
id: string;
|
|
43
|
+
description: string;
|
|
44
|
+
}[];
|
|
40
45
|
/** Indica che l'oggetto di bindare per questo td è l'elemento all'indice Y della proprietà Z dove Y e Z vengono prese dall'**ID** scritto come Z_Y */
|
|
41
46
|
Multi?: true;
|
|
42
47
|
/** Indica l'eventuale proprietà a cui accedere nel caso sia **Content** che **Template** siano vuoti */
|
|
43
48
|
PropAccessor?: string;
|
|
49
|
+
/** Se il contenuto di questo td dev'essere un'immagine cliccabile, questa è la classe che la identifica */
|
|
50
|
+
IconClass?: string;
|
|
51
|
+
/** Campo da controllare per fare apparire/sparire il contenuto di questa cella qualora fosse diverso da **ConditionValue** */
|
|
52
|
+
ConditionField?: string;
|
|
53
|
+
/** Valore che deve assumere **ConditionField** per mostrare il contenuto di questa cella */
|
|
54
|
+
ConditionValue?: string;
|
|
55
|
+
/** Titolo HTML di questa cella */
|
|
56
|
+
Title?: string;
|
|
44
57
|
}
|
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { TemplateRef } from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* @ignore Interfaccia di passaggio fra i dati che arrivano come direttiva / configurazione alla struttura interna su cui vengono generati i componenti es-th
|
|
4
|
+
*
|
|
5
|
+
* Per informazioni sulle singole proprietà fare riferimento alla direttiva **EsThDirective**
|
|
6
|
+
*/
|
|
2
7
|
export interface ThElement {
|
|
3
8
|
Pinned: boolean;
|
|
4
9
|
Fixed: boolean;
|
|
@@ -15,4 +20,5 @@ export interface ThElement {
|
|
|
15
20
|
RightBorder: boolean;
|
|
16
21
|
Multi: boolean;
|
|
17
22
|
MultiContent: string;
|
|
23
|
+
Alignment: string;
|
|
18
24
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { TemplateRef } from "@angular/core";
|
|
2
|
+
/** Interfaccia che indica un Header rappresentanto un gruppo */
|
|
3
|
+
export interface ThGroup {
|
|
4
|
+
/** Codice autogenerato essenzialmente per gli ngFor - trackBy */
|
|
5
|
+
ID: string;
|
|
6
|
+
/** Span di questo gruppo */
|
|
7
|
+
Span: number;
|
|
8
|
+
/** Template da visualizzare dentro al gruppo */
|
|
9
|
+
Template: TemplateRef<any>;
|
|
10
|
+
}
|
package/lib/es-table.module.d.ts
CHANGED
|
@@ -1,27 +1,34 @@
|
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
|
2
2
|
import { EsTableModuleConfig } from './domain/configuration/EsTableModuleConfig';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
|
-
import * as i1 from "./
|
|
5
|
-
import * as i2 from "./
|
|
6
|
-
import * as i3 from "./
|
|
7
|
-
import * as i4 from "./
|
|
8
|
-
import * as i5 from "./
|
|
9
|
-
import * as i6 from "./components/
|
|
10
|
-
import * as i7 from "
|
|
11
|
-
import * as i8 from "
|
|
12
|
-
import * as i9 from "
|
|
13
|
-
import * as i10 from "
|
|
14
|
-
import * as i11 from "
|
|
15
|
-
import * as i12 from "
|
|
16
|
-
import * as i13 from "
|
|
17
|
-
import * as i14 from "@
|
|
18
|
-
import * as i15 from "@angular/
|
|
19
|
-
import * as i16 from "@angular/
|
|
20
|
-
import * as i17 from "@
|
|
21
|
-
import * as i18 from "
|
|
4
|
+
import * as i1 from "./directives/es_td.directive";
|
|
5
|
+
import * as i2 from "./directives/es_th.directive";
|
|
6
|
+
import * as i3 from "./directives/es_td_editor.directive";
|
|
7
|
+
import * as i4 from "./components/es-table/es_table.component";
|
|
8
|
+
import * as i5 from "./components/pager/table_pager.component";
|
|
9
|
+
import * as i6 from "./components/es-table-template/es_table_template.component";
|
|
10
|
+
import * as i7 from "./components/es-th/es_th.component";
|
|
11
|
+
import * as i8 from "./components/es-td/es_td.component";
|
|
12
|
+
import * as i9 from "./components/pipes/est-format.pipe";
|
|
13
|
+
import * as i10 from "./components/pipes/est-lookup.pipe";
|
|
14
|
+
import * as i11 from "./components/pipes/est-routerlink.pipe";
|
|
15
|
+
import * as i12 from "./components/pipes/est-renderer.pipe";
|
|
16
|
+
import * as i13 from "./components/pipes/est_editor.pipe";
|
|
17
|
+
import * as i14 from "@angular/common";
|
|
18
|
+
import * as i15 from "@angular/forms";
|
|
19
|
+
import * as i16 from "@angular/router";
|
|
20
|
+
import * as i17 from "@esfaenza/localizations";
|
|
21
|
+
import * as i18 from "ngx-bootstrap/modal";
|
|
22
|
+
import * as i19 from "ngx-bootstrap/dropdown";
|
|
23
|
+
import * as i20 from "@esfaenza/ngx-contextmenu";
|
|
24
|
+
import * as i21 from "@angular/material/select";
|
|
25
|
+
import * as i22 from "@angular/material/input";
|
|
26
|
+
import * as i23 from "@angular/material/tooltip";
|
|
27
|
+
import * as i24 from "@angular/cdk/drag-drop";
|
|
28
|
+
import * as i25 from "@esfaenza/forms-and-validations";
|
|
22
29
|
export declare class EsTableModule {
|
|
23
30
|
static forRoot(config?: EsTableModuleConfig): ModuleWithProviders<EsTableModule>;
|
|
24
31
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsTableModule, never>;
|
|
25
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EsTableModule, [typeof i1.
|
|
32
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EsTableModule, [typeof i1.EsTdDirective, typeof i2.EsThDirective, typeof i3.EsTdEditorDirective, typeof i4.EsTableComponent, typeof i5.TablePagerComponent, typeof i6.EsTableTemplate, typeof i7.EsTh, typeof i8.EsTd, typeof i9.EstFormatPipe, typeof i10.EstLookupPipe, typeof i11.EstRouterLinkPipe, typeof i12.EstRendererPipe, typeof i13.EstEditorPipe], [typeof i14.CommonModule, typeof i15.FormsModule, typeof i16.RouterModule, typeof i17.LocalizationModule, typeof i18.ModalModule, typeof i19.BsDropdownModule, typeof i20.ContextMenuModule, typeof i21.MatSelectModule, typeof i22.MatInputModule, typeof i23.MatTooltipModule, typeof i24.DragDropModule, typeof i25.FormsAndValidationsModule], [typeof i1.EsTdDirective, typeof i2.EsThDirective, typeof i3.EsTdEditorDirective, typeof i4.EsTableComponent, typeof i5.TablePagerComponent, typeof i6.EsTableTemplate]>;
|
|
26
33
|
static ɵinj: i0.ɵɵInjectorDeclaration<EsTableModule>;
|
|
27
34
|
}
|
package/package.json
CHANGED
|
@@ -1,19 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@esfaenza/es-table",
|
|
3
|
-
"version": "13.
|
|
3
|
+
"version": "13.4.0",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"tslib": "^2.0.0"
|
|
6
6
|
},
|
|
7
7
|
"peerDependencies": {
|
|
8
|
-
"@angular/common": "~13.
|
|
9
|
-
"@angular/core": "~13.
|
|
10
|
-
"@angular/material": "~13.3.
|
|
11
|
-
"@esfaenza/extensions": "^13.
|
|
12
|
-
"@esfaenza/localizations": "^13.
|
|
13
|
-
"@esfaenza/forms-and-validations": "^13.
|
|
14
|
-
"@
|
|
15
|
-
"@esfaenza/
|
|
16
|
-
"@esfaenza/preferences": "^13.3.2",
|
|
8
|
+
"@angular/common": "~13.4.0",
|
|
9
|
+
"@angular/core": "~13.4.0",
|
|
10
|
+
"@angular/material": "~13.3.9",
|
|
11
|
+
"@esfaenza/extensions": "^13.4.0",
|
|
12
|
+
"@esfaenza/localizations": "^13.4.0",
|
|
13
|
+
"@esfaenza/forms-and-validations": "^13.4.1",
|
|
14
|
+
"@esfaenza/ngx-contextmenu": "^13.4.0",
|
|
15
|
+
"@esfaenza/preferences": "^13.4.0",
|
|
17
16
|
"ngx-toastr": "14.3.0",
|
|
18
17
|
"ngx-bootstrap": "8.0.0",
|
|
19
18
|
"exceljs": "4.3.0",
|
package/public-api.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
export * from './lib/components/pager/table_pager.component';
|
|
2
2
|
export * from './lib/components/es-table/es_table.component';
|
|
3
|
+
export * from './lib/components/es-table-template/es_table_template.component';
|
|
3
4
|
export * from './lib/directives/es_td.directive';
|
|
5
|
+
export * from './lib/directives/es_td_editor.directive';
|
|
4
6
|
export * from './lib/directives/es_th.directive';
|
|
5
7
|
export * from './lib/domain/configuration/EsTableModuleConfig';
|
|
6
8
|
export * from './lib/domain/configuration/EsTableDefaultable';
|
|
@@ -20,3 +22,6 @@ export * from './lib/domain/externals/appsearch/EsTableMultiValue';
|
|
|
20
22
|
export * from './lib/domain/externals/report/ReportColumn';
|
|
21
23
|
export * from './lib/domain/externals/report/ReportParam';
|
|
22
24
|
export * from './lib/domain/externals/report/ReportRow';
|
|
25
|
+
export * from './lib/domain/externals/EsTableModelChange';
|
|
26
|
+
export * from './lib/domain/externals/ItemPropEditableReference';
|
|
27
|
+
export * from './lib/domain/types';
|