@esfaenza/es-table 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/components/es-table/es_table.component.mjs +38 -29
- package/esm2020/lib/directives/es_th_td_provider.directive.mjs +35 -0
- package/esm2020/lib/es-table.module.mjs +5 -5
- package/esm2020/public-api.mjs +2 -2
- package/fesm2015/esfaenza-es-table.mjs +158 -129
- package/fesm2015/esfaenza-es-table.mjs.map +1 -1
- package/fesm2020/esfaenza-es-table.mjs +71 -50
- package/fesm2020/esfaenza-es-table.mjs.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +10 -5
- package/lib/directives/es_th_td_provider.directive.d.ts +15 -0
- package/lib/es-table.module.d.ts +2 -2
- package/package.json +1 -1
- package/public-api.d.ts +1 -1
- package/esm2020/lib/components/es-table-template/es_table_template.component.mjs +0 -21
- package/lib/components/es-table-template/es_table_template.component.d.ts +0 -18
|
@@ -25,7 +25,7 @@ import { EsTd } from '../es-td/es_td.component';
|
|
|
25
25
|
import { EsTdDirective } from '../../directives/es_td.directive';
|
|
26
26
|
import { EsThDirective } from '../../directives/es_th.directive';
|
|
27
27
|
import { EsTdEditorDirective } from '../../directives/es_td_editor.directive';
|
|
28
|
-
import {
|
|
28
|
+
import { ThTdProvider } from '../../directives/es_th_td_provider.directive';
|
|
29
29
|
import { ExportHandler } from "../../core/handlers/ExportHandler";
|
|
30
30
|
import { ColumnMetadataHandler } from "../../core/handlers/ColumnMetadataHandler";
|
|
31
31
|
import { DynamicModeHandler } from "../../core/handlers/DynamicModeHandler";
|
|
@@ -175,8 +175,10 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
175
175
|
EsTdsDirective: QueryList<EsTdDirective>;
|
|
176
176
|
/** Query per recuperare tutti gli es-td assegnati a direttiva (Per la modalità dinamica dell'es-table) */
|
|
177
177
|
EsThsDirective: QueryList<EsThDirective>;
|
|
178
|
-
/**
|
|
179
|
-
|
|
178
|
+
/** Query per recuperare tutti gli es-td e gli es-th assegnati da parte di un provider (per integrare in maniera dinamica i th e td esistenti) */
|
|
179
|
+
ThTdProvider: QueryList<ThTdProvider>;
|
|
180
|
+
/** Permette di collegare un provider senza passare dalla proiezione */
|
|
181
|
+
EsThTdProvider: ThTdProvider;
|
|
180
182
|
/** Query per recuperare le informazioni del body (punto della tabella dove vengono mostrate le righe) */
|
|
181
183
|
bodyRef: any;
|
|
182
184
|
/** Query per recuperare le informazioni dell'header (punto della tabella dove vengono mostrate le intestazioni delle righe) */
|
|
@@ -424,6 +426,9 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
424
426
|
private thsCache;
|
|
425
427
|
/** Indica quando la cache dei th è stata fillata almeno la prima volta */
|
|
426
428
|
private thsCacheSet;
|
|
429
|
+
/** Variabili da fillare nell'After Content Init poi da riutilizzare nell'internal post bound source */
|
|
430
|
+
private EsTds;
|
|
431
|
+
private EsThs;
|
|
427
432
|
/**
|
|
428
433
|
* Flag che, se **true**, per un giro di binding mantiene la visibilità impostata localmente, piuttosto che allineare alla View bindata.
|
|
429
434
|
* Usata per modificare in maniera programmatica la visibilità delle colonne dal metodo **setHeaderVisibility**,
|
|
@@ -436,7 +441,7 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
436
441
|
/** @ignore */
|
|
437
442
|
ngOnInit(): void;
|
|
438
443
|
/** @ignore */
|
|
439
|
-
ngAfterViewInit(): void
|
|
444
|
+
ngAfterViewInit(): Promise<void>;
|
|
440
445
|
/** @ignore */
|
|
441
446
|
ngOnDestroy(): void;
|
|
442
447
|
/** @ignore */
|
|
@@ -718,7 +723,7 @@ export declare class EsTableComponent implements ControlValueAccessor, OnChanges
|
|
|
718
723
|
getCellReference(object: any, column: string): EsTd;
|
|
719
724
|
registerCell(event: EsTdReference): void;
|
|
720
725
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsTableComponent, [{ optional: true; self: true; }, { optional: true; }, { optional: true; }, null, null, null, null, null, null, null, null, null, null]>;
|
|
721
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EsTableComponent, "es-table", never, { "
|
|
726
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<EsTableComponent, "es-table", never, { "EsThTdProvider": "EsThTdProvider"; "CornerMenuOptions": "CornerMenuOptions"; "ColumnsResizable": "ColumnsResizable"; "ColumnsPinnable": "ColumnsPinnable"; "AutoUpdate": "AutoUpdate"; "Height": "Height"; "EmptySpaceBackgroundColor": "EmptySpaceBackgroundColor"; "EsTableHandledSearch": "EsTableHandledSearch"; "MaxHeight": "MaxHeight"; "ContainerClass": "ContainerClass"; "XLSXExport": "XLSXExport"; "CSVExport": "CSVExport"; "AllSearch": "AllSearch"; "HighCellDensity": "HighCellDensity"; "Selection": "Selection"; "ShowLoadingOnBootstrap": "ShowLoadingOnBootstrap"; "Removal": "Removal"; "RemovalCondition": "RemovalCondition"; "Export": "Export"; "ShiftClick": "ShiftClick"; "CountLabel": "CountLabel"; "HidePaging": "HidePaging"; "HidePagingCount": "HidePagingCount"; "HidePagingButtons": "HidePagingButtons"; "ContextMenu": "ContextMenu"; "ExportFileName": "ExportFileName"; "TableClass": "TableClass"; "ExportFunction": "ExportFunction"; "ExportOnlyVisibleColumns": "ExportOnlyVisibleColumns"; "HasHeaderGroup": "HasHeaderGroup"; "HasSecondaryHeaderGroup": "HasSecondaryHeaderGroup"; "HeaderHidden": "HeaderHidden"; "BodyHidden": "BodyHidden"; "SelectionDisabled": "SelectionDisabled"; "SingleSelection": "SingleSelection"; "RowClassAssigner": "RowClassAssigner"; "OrderByColumn": "OrderByColumn"; "MultipleOrderingDirectives": "MultipleOrderingDirectives"; "HiddenColumns": "HiddenColumns"; "ColumnsOrdering": "ColumnsOrdering"; "SearchView": "SearchView"; "SelectAll": "SelectAll"; "UseArrayModePaging": "UseArrayModePaging"; "DynamicRowColumnsDefinition": "DynamicRowColumnsDefinition"; "DynamicOperations": "DynamicOperations"; "Hierarchy": "Hierarchy"; "ParentKey": "ParentKey"; "OwnKey": "OwnKey"; "StartsExpanded": "StartsExpanded"; "SavePreferences": "SavePreferences"; "DefaultAlignment": "DefaultAlignment"; "PagingStyle": "PagingStyle"; "RowGroupingPagingStyle": "RowGroupingPagingStyle"; "ItemSourceProperty": "ItemSourceProperty"; "UseSelectionCache": "UseSelectionCache"; "ShowItemGroupsColumns": "ShowItemGroupsColumns"; "Editable": "Editable"; "RangeSelection": "RangeSelection"; "SearchThrottle": "SearchThrottle"; "ArraymodeItemsPerPage": "ArraymodeItemsPerPage"; }, { "onOrderChanged": "onOrderChanged"; "onSearchRequest": "onSearchRequest"; "onSelectionChanged": "onSelectionChanged"; "onRemoval": "onRemoval"; "onAbortRemoval": "onAbortRemoval"; "onModelChange": "onModelChange"; "onOpenContextMenu": "onOpenContextMenu"; "onCornerAction": "onCornerAction"; "onDynamicOperation": "onDynamicOperation"; }, ["bodyRef", "headerRef", "headerGroupRef", "secondaryHeaderGroupRef", "EsTdEditorDirectives", "EsTdsDirective", "EsThsDirective", "ThTdProvider"], never, false, never>;
|
|
722
727
|
}
|
|
723
728
|
export declare class EsTdReference {
|
|
724
729
|
id: string;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { QueryList } from '@angular/core';
|
|
2
|
+
import { EsTdDirective } from './es_td.directive';
|
|
3
|
+
import { EsThDirective } from './es_th.directive';
|
|
4
|
+
import { Subject } from 'rxjs';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ThTdProvider {
|
|
7
|
+
EsTdsDirective: QueryList<EsTdDirective>;
|
|
8
|
+
EsThsDirective: QueryList<EsThDirective>;
|
|
9
|
+
LoadedSignal: Subject<void>;
|
|
10
|
+
setLoaded(): void;
|
|
11
|
+
asyncLoad(): Promise<void>;
|
|
12
|
+
ngOnInit(): Promise<void>;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ThTdProvider, never>;
|
|
14
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ThTdProvider, "[td_th_provider]", ["tdThProvider"], {}, {}, ["EsTdsDirective", "EsThsDirective"], never, false, never>;
|
|
15
|
+
}
|
package/lib/es-table.module.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ import * as i2 from "./directives/es_th.directive";
|
|
|
6
6
|
import * as i3 from "./directives/es_td_editor.directive";
|
|
7
7
|
import * as i4 from "./components/es-table/es_table.component";
|
|
8
8
|
import * as i5 from "./components/pager/table_pager.component";
|
|
9
|
-
import * as i6 from "./
|
|
9
|
+
import * as i6 from "./directives/es_th_td_provider.directive";
|
|
10
10
|
import * as i7 from "./components/es-th/es_th.component";
|
|
11
11
|
import * as i8 from "./components/es-td/es_td.component";
|
|
12
12
|
import * as i9 from "./components/pipes/est-format.pipe";
|
|
@@ -30,6 +30,6 @@ import * as i26 from "@esfaenza/forms-and-validations";
|
|
|
30
30
|
export declare class EsTableModule {
|
|
31
31
|
static forRoot(config?: EsTableModuleConfig): ModuleWithProviders<EsTableModule>;
|
|
32
32
|
static ɵfac: i0.ɵɵFactoryDeclaration<EsTableModule, never>;
|
|
33
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<EsTableModule, [typeof i1.EsTdDirective, typeof i2.EsThDirective, typeof i3.EsTdEditorDirective, typeof i4.EsTableComponent, typeof i5.TablePagerComponent, typeof i6.
|
|
33
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<EsTableModule, [typeof i1.EsTdDirective, typeof i2.EsThDirective, typeof i3.EsTdEditorDirective, typeof i4.EsTableComponent, typeof i5.TablePagerComponent, typeof i6.ThTdProvider, typeof i7.EsTh, typeof i8.EsTd, typeof i9.EstFormatPipe, typeof i10.EstLookupPipe, typeof i11.EstRouterLinkPipe, typeof i12.EstRendererPipe, typeof i13.EstEditorPipe, typeof i14.EstPropInsensitivePipe], [typeof i15.CommonModule, typeof i16.FormsModule, typeof i17.RouterModule, typeof i18.LocalizationModule, typeof i19.ModalModule, typeof i20.BsDropdownModule, typeof i21.ContextMenuModule, typeof i22.MatLegacySelectModule, typeof i23.MatLegacyInputModule, typeof i24.MatLegacyTooltipModule, typeof i25.DragDropModule, typeof i26.FormsAndValidationsModule], [typeof i1.EsTdDirective, typeof i2.EsThDirective, typeof i3.EsTdEditorDirective, typeof i4.EsTableComponent, typeof i5.TablePagerComponent, typeof i6.ThTdProvider]>;
|
|
34
34
|
static ɵinj: i0.ɵɵInjectorDeclaration<EsTableModule>;
|
|
35
35
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -1,8 +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';
|
|
4
3
|
export * from './lib/directives/es_td.directive';
|
|
5
4
|
export * from './lib/directives/es_td_editor.directive';
|
|
5
|
+
export * from './lib/directives/es_th_td_provider.directive';
|
|
6
6
|
export * from './lib/directives/es_th.directive';
|
|
7
7
|
export * from './lib/domain/configuration/EsTableModuleConfig';
|
|
8
8
|
export * from './lib/domain/configuration/EsTableDefaultable';
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
//Angular
|
|
2
|
-
import { Component, ChangeDetectionStrategy, ContentChildren } from "@angular/core";
|
|
3
|
-
import { EsTdDirective } from "../../directives/es_td.directive";
|
|
4
|
-
import { EsThDirective } from "../../directives/es_th.directive";
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
/** Componente rappresentante un template di th coi loro relativi td da poter riutilizzare quandomminchia si vuole */
|
|
7
|
-
export class EsTableTemplate {
|
|
8
|
-
}
|
|
9
|
-
EsTableTemplate.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EsTableTemplate, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
-
EsTableTemplate.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.9", type: EsTableTemplate, selector: "es-table-template", queries: [{ propertyName: "EsTdsDirective", predicate: EsTdDirective }, { propertyName: "EsThsDirective", predicate: EsThDirective }], ngImport: i0, template: "", changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.9", ngImport: i0, type: EsTableTemplate, decorators: [{
|
|
12
|
-
type: Component,
|
|
13
|
-
args: [{ selector: "es-table-template", changeDetection: ChangeDetectionStrategy.OnPush, template: "" }]
|
|
14
|
-
}], propDecorators: { EsTdsDirective: [{
|
|
15
|
-
type: ContentChildren,
|
|
16
|
-
args: [EsTdDirective]
|
|
17
|
-
}], EsThsDirective: [{
|
|
18
|
-
type: ContentChildren,
|
|
19
|
-
args: [EsThDirective]
|
|
20
|
-
}] } });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZXNfdGFibGVfdGVtcGxhdGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZXMtdGFibGUvc3JjL2xpYi9jb21wb25lbnRzL2VzLXRhYmxlLXRlbXBsYXRlL2VzX3RhYmxlX3RlbXBsYXRlLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2VzLXRhYmxlL3NyYy9saWIvY29tcG9uZW50cy9lcy10YWJsZS10ZW1wbGF0ZS9lc190YWJsZV90ZW1wbGF0ZS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxTQUFTO0FBQ1QsT0FBTyxFQUFFLFNBQVMsRUFBRSx1QkFBdUIsRUFBRSxlQUFlLEVBQWEsTUFBTSxlQUFlLENBQUM7QUFFL0YsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLGtDQUFrQyxDQUFDO0FBQ2pFLE9BQU8sRUFBRSxhQUF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uZ2VEZXRlY3Rpb25TdHJhdGVneS5PblB1c2gsXHJcbn0pXHJcbmV4cG9ydCBjbGFzcyBFc1RhYmxlVGVtcGxhdGUge1xyXG4gICAgLyoqIFF1ZXJ5IHBlciByZWN1cGVyYXJlIHR1dHRlIGxlIG51b3ZlIGRpcmV0dGl2ZSAgYXNzZWduYXRpIGEgZGlyZXR0aXZhIChQZXIgbGEgbW9kYWxpdMOgIGRpbmFtaWNhIGRlbGwnZXMtdGFibGUpICovXHJcbiAgICBAQ29udGVudENoaWxkcmVuKEVzVGREaXJlY3RpdmUpIEVzVGRzRGlyZWN0aXZlOiBRdWVyeUxpc3Q8RXNUZERpcmVjdGl2ZT47XHJcbiAgICAvKiogUXVlcnkgcGVyIHJlY3VwZXJhcmUgdHV0dGkgZ2xpIGVzLXRkIGFzc2VnbmF0aSBhIGRpcmV0dGl2YSAoUGVyIGxhIG1vZGFsaXTDoCBkaW5hbWljYSBkZWxsJ2VzLXRhYmxlKSAqL1xyXG4gICAgQENvbnRlbnRDaGlsZHJlbihFc1RoRGlyZWN0aXZlKSBFc1Roc0RpcmVjdGl2ZTogUXVlcnlMaXN0PEVzVGhEaXJlY3RpdmU+O1xyXG59XHJcblxyXG4vKiogSW50ZXJmYWNjaWEgY2hlIGRlZmluaXNjZSBpbCBjb250cmF0dG8gY29uIGN1aSBsJ2VzLXRhYmxlIGxlZ2dlIGxlIGRpcmV0dGl2ZSBpbnRlcm5lIGEgdW4gdGVtcGxhdGUgKi9cclxuZXhwb3J0IGludGVyZmFjZSBJRXNUYWJsZVRlbXBsYXRlV3JhcHBlcntcclxuICAgIC8qKiBAaWdub3JlICovXHJcbiAgICBUZW1wbGF0ZTogRXNUYWJsZVRlbXBsYXRlO1xyXG59IiwiIl19
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { QueryList } from "@angular/core";
|
|
2
|
-
import { EsTdDirective } from "../../directives/es_td.directive";
|
|
3
|
-
import { EsThDirective } from "../../directives/es_th.directive";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
/** Componente rappresentante un template di th coi loro relativi td da poter riutilizzare quandomminchia si vuole */
|
|
6
|
-
export declare class EsTableTemplate {
|
|
7
|
-
/** Query per recuperare tutte le nuove direttive assegnati a direttiva (Per la modalità dinamica dell'es-table) */
|
|
8
|
-
EsTdsDirective: QueryList<EsTdDirective>;
|
|
9
|
-
/** Query per recuperare tutti gli es-td assegnati a direttiva (Per la modalità dinamica dell'es-table) */
|
|
10
|
-
EsThsDirective: QueryList<EsThDirective>;
|
|
11
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EsTableTemplate, never>;
|
|
12
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<EsTableTemplate, "es-table-template", never, {}, {}, ["EsTdsDirective", "EsThsDirective"], never, false, never>;
|
|
13
|
-
}
|
|
14
|
-
/** Interfaccia che definisce il contratto con cui l'es-table legge le direttive interne a un template */
|
|
15
|
-
export interface IEsTableTemplateWrapper {
|
|
16
|
-
/** @ignore */
|
|
17
|
-
Template: EsTableTemplate;
|
|
18
|
-
}
|