@esfaenza/es-table 13.3.3 → 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.
Files changed (81) hide show
  1. package/esm2020/lib/components/es-table/es_table.component.loc.mjs +7 -4
  2. package/esm2020/lib/components/es-table/es_table.component.mjs +542 -116
  3. package/esm2020/lib/components/es-table-template/es_table_template.component.mjs +21 -0
  4. package/esm2020/lib/components/es-td/es_td.component.mjs +23 -55
  5. package/esm2020/lib/components/es-th/es_th.component.mjs +5 -5
  6. package/esm2020/lib/components/pager/table_pager.component.loc.mjs +3 -3
  7. package/esm2020/lib/components/pager/table_pager.component.mjs +5 -5
  8. package/esm2020/lib/components/pipes/est-format.pipe.mjs +44 -0
  9. package/esm2020/lib/components/pipes/est-lookup.pipe.mjs +19 -0
  10. package/esm2020/lib/components/pipes/est-renderer.pipe.mjs +36 -0
  11. package/esm2020/lib/components/pipes/est-routerlink.pipe.mjs +41 -0
  12. package/esm2020/lib/components/pipes/est_editor.pipe.mjs +36 -0
  13. package/esm2020/lib/core/CopyPasteDetector.mjs +28 -0
  14. package/esm2020/lib/core/Logger.mjs +26 -0
  15. package/esm2020/lib/core/handlers/ColumnMetadataHandler.mjs +75 -35
  16. package/esm2020/lib/core/handlers/DynamicModeHandler.mjs +80 -37
  17. package/esm2020/lib/core/handlers/ExportHandler.mjs +53 -14
  18. package/esm2020/lib/core/handlers/ItemsHandler.mjs +13 -5
  19. package/esm2020/lib/core/handlers/ReportModeHandler.mjs +15 -2
  20. package/esm2020/lib/core/handlers/SelectionHandler.mjs +267 -1
  21. package/esm2020/lib/core/handlers/UtilitiesHandler.mjs +7 -8
  22. package/esm2020/lib/directives/es_td.directive.mjs +24 -6
  23. package/esm2020/lib/directives/es_td_editor.directive.mjs +24 -0
  24. package/esm2020/lib/directives/es_th.directive.mjs +39 -9
  25. package/esm2020/lib/domain/configuration/EsTableDefaultable.mjs +1 -1
  26. package/esm2020/lib/domain/externals/EsTableColumnsDefinition.mjs +39 -22
  27. package/esm2020/lib/domain/externals/EsTableModelChange.mjs +19 -0
  28. package/esm2020/lib/domain/externals/ItemPropEditableReference.mjs +4 -0
  29. package/esm2020/lib/domain/externals/appsearch/AppSearch.mjs +33 -14
  30. package/esm2020/lib/domain/externals/report/ReportColumn.mjs +1 -1
  31. package/esm2020/lib/domain/externals/report/ReportRow.mjs +1 -1
  32. package/esm2020/lib/domain/internals/EsTableColumn.mjs +3 -2
  33. package/esm2020/lib/domain/internals/GroupPager.mjs +4 -3
  34. package/esm2020/lib/domain/internals/PagerInfos.mjs +15 -0
  35. package/esm2020/lib/domain/internals/TdElement.mjs +1 -1
  36. package/esm2020/lib/domain/internals/ThElement.mjs +1 -1
  37. package/esm2020/lib/domain/internals/ThGroup.mjs +2 -0
  38. package/esm2020/lib/domain/types.mjs +2 -0
  39. package/esm2020/lib/es-table.module.mjs +78 -37
  40. package/esm2020/public-api.mjs +6 -1
  41. package/fesm2015/esfaenza-es-table.mjs +1576 -359
  42. package/fesm2015/esfaenza-es-table.mjs.map +1 -1
  43. package/fesm2020/esfaenza-es-table.mjs +1555 -356
  44. package/fesm2020/esfaenza-es-table.mjs.map +1 -1
  45. package/lib/components/es-table/es_table.component.d.ts +172 -79
  46. package/lib/components/es-table-template/es_table_template.component.d.ts +18 -0
  47. package/lib/components/es-td/es_td.component.d.ts +14 -34
  48. package/lib/components/pipes/est-format.pipe.d.ts +10 -0
  49. package/lib/components/pipes/est-lookup.pipe.d.ts +13 -0
  50. package/lib/components/pipes/est-renderer.pipe.d.ts +15 -0
  51. package/lib/components/pipes/est-routerlink.pipe.d.ts +20 -0
  52. package/lib/components/pipes/est_editor.pipe.d.ts +15 -0
  53. package/lib/core/CopyPasteDetector.d.ts +15 -0
  54. package/lib/core/Logger.d.ts +10 -0
  55. package/lib/core/handlers/ColumnMetadataHandler.d.ts +8 -0
  56. package/lib/core/handlers/DynamicModeHandler.d.ts +13 -23
  57. package/lib/core/handlers/ExportHandler.d.ts +4 -0
  58. package/lib/core/handlers/ItemsHandler.d.ts +1 -1
  59. package/lib/core/handlers/ReportModeHandler.d.ts +9 -0
  60. package/lib/core/handlers/SelectionHandler.d.ts +90 -0
  61. package/lib/core/handlers/UtilitiesHandler.d.ts +4 -1
  62. package/lib/directives/es_td.directive.d.ts +18 -2
  63. package/lib/directives/es_td_editor.directive.d.ts +14 -0
  64. package/lib/directives/es_th.directive.d.ts +43 -11
  65. package/lib/domain/configuration/EsTableDefaultable.d.ts +1 -0
  66. package/lib/domain/externals/EsTableColumnsDefinition.d.ts +48 -23
  67. package/lib/domain/externals/EsTableModelChange.d.ts +17 -0
  68. package/lib/domain/externals/ItemPropEditableReference.d.ts +34 -0
  69. package/lib/domain/externals/appsearch/AppSearch.d.ts +15 -2
  70. package/lib/domain/externals/report/ReportColumn.d.ts +4 -0
  71. package/lib/domain/externals/report/ReportRow.d.ts +4 -0
  72. package/lib/domain/internals/EsTableColumn.d.ts +4 -1
  73. package/lib/domain/internals/GroupPager.d.ts +3 -2
  74. package/lib/domain/internals/PagerInfos.d.ts +13 -0
  75. package/lib/domain/internals/TdElement.d.ts +18 -5
  76. package/lib/domain/internals/ThElement.d.ts +6 -0
  77. package/lib/domain/internals/ThGroup.d.ts +10 -0
  78. package/lib/domain/types.d.ts +2 -0
  79. package/lib/es-table.module.d.ts +26 -19
  80. package/package.json +9 -10
  81. 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} groupLevel Livello del gruppo a cui questo separatore fa riferimento
14
- * @param {string} parentKey Chiave del gruppo parent se esiste
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
- /** Impostazioni per la modifica inline di questo campo: la **Property** di riferimento e il **Type** (a scelta fra quelli supportati dal form-adaptive) */
36
- UserEdits?: {
37
- Property: string;
38
- Type: string;
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
+ }
@@ -0,0 +1,2 @@
1
+ /** Tipo che rappresenta gli input visualizzabili lato tabella */
2
+ export declare type InputType = 'string' | 'float' | 'date' | 'number' | 'int' | 'boolean' | 'enum' | 'autocomplete' | 'datetime' | 'time' | 'file' | 'currency';
@@ -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 "./components/es-th/es_th.component";
5
- import * as i2 from "./components/es-td/es_td.component";
6
- import * as i3 from "./components/es-table/es_table.component";
7
- import * as i4 from "./directives/es_td.directive";
8
- import * as i5 from "./directives/es_th.directive";
9
- import * as i6 from "./components/pager/table_pager.component";
10
- import * as i7 from "@angular/common";
11
- import * as i8 from "@angular/forms";
12
- import * as i9 from "@angular/router";
13
- import * as i10 from "@esfaenza/localizations";
14
- import * as i11 from "ngx-bootstrap/modal";
15
- import * as i12 from "ngx-bootstrap/dropdown";
16
- import * as i13 from "@ctrl/ngx-csv";
17
- import * as i14 from "@esfaenza/ngx-contextmenu";
18
- import * as i15 from "@angular/material/select";
19
- import * as i16 from "@angular/material/input";
20
- import * as i17 from "@angular/cdk/drag-drop";
21
- import * as i18 from "@esfaenza/forms-and-validations";
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.EsTh, typeof i2.EsTd, typeof i3.EsTableComponent, typeof i4.EsTdDirective, typeof i5.EsThDirective, typeof i6.TablePagerComponent], [typeof i7.CommonModule, typeof i8.FormsModule, typeof i9.RouterModule, typeof i10.LocalizationModule, typeof i11.ModalModule, typeof i12.BsDropdownModule, typeof i13.CsvModule, typeof i14.ContextMenuModule, typeof i15.MatSelectModule, typeof i16.MatInputModule, typeof i17.DragDropModule, typeof i18.FormsAndValidationsModule], [typeof i3.EsTableComponent, typeof i4.EsTdDirective, typeof i5.EsThDirective, typeof i6.TablePagerComponent]>;
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.3",
3
+ "version": "13.4.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.0.0"
6
6
  },
7
7
  "peerDependencies": {
8
- "@angular/common": "~13.3.9",
9
- "@angular/core": "~13.3.9",
10
- "@angular/material": "~13.3.7",
11
- "@esfaenza/extensions": "^13.3.3",
12
- "@esfaenza/localizations": "^13.3.2",
13
- "@esfaenza/forms-and-validations": "^13.3.2",
14
- "@ctrl/ngx-csv": "5.0.0",
15
- "@esfaenza/ngx-contextmenu": "^13.3.2",
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';