@esfaenza/es-table 11.2.113 → 11.2.115
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/bundles/esfaenza-es-table.umd.js +11 -7
- package/bundles/esfaenza-es-table.umd.js.map +1 -1
- package/bundles/esfaenza-es-table.umd.min.js +1 -1
- package/bundles/esfaenza-es-table.umd.min.js.map +1 -1
- package/esfaenza-es-table.metadata.json +1 -1
- package/esm2015/lib/components/es-table/es_table.component.js +4 -1
- package/esm2015/lib/core/handlers/ExportHandler.js +5 -3
- package/esm2015/lib/es-table.module.js +1 -3
- package/fesm2015/esfaenza-es-table.js +7 -4
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/lib/components/es-table/es_table.component.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@esfaenza/localizations'), require('@esfaenza/extensions'), require('@angular/forms'), require('@esfaenza/preferences'), require('@angular/cdk/drag-drop'), require('rxjs'), require('@angular/common'), require('@angular/router'), require('@angular/material/select'), require('@angular/material/input'), require('@angular/material/tooltip'), require('@esfaenza/forms-and-validations'), require('@angular/platform-browser'), require('ngx-bootstrap/modal'), require('ngx-bootstrap/dropdown'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@esfaenza/es-table', ['exports', '@angular/core', '@esfaenza/localizations', '@esfaenza/extensions', '@angular/forms', '@esfaenza/preferences', '@angular/cdk/drag-drop', 'rxjs', '@angular/common', '@angular/router', '@angular/material/select', '@angular/material/input', '@angular/material/tooltip', '@esfaenza/forms-and-validations', '@angular/platform-browser', 'ngx-bootstrap/modal', 'ngx-bootstrap/dropdown', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.esfaenza = global.esfaenza || {}, global.esfaenza['es-table'] = {}), global.ng.core, global.localizations, global.i1, global.ng.forms, global.preferences, global.ng.cdk.dragDrop, global.rxjs, global.ng.common, global.ng.router, global.ng.material.select, global.ng.material.input, global.ng.material.tooltip, global.formsAndValidations, global.ng.platformBrowser, global.modal, global.dropdown, global.
|
|
5
|
-
}(this, (function (exports, i0, localizations, i1, forms, preferences, dragDrop, rxjs, common, router, select, input, tooltip, formsAndValidations, platformBrowser, modal, dropdown,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@esfaenza/localizations'), require('@esfaenza/extensions'), require('@angular/forms'), require('@esfaenza/preferences'), require('@angular/cdk/drag-drop'), require('rxjs'), require('@angular/common'), require('@angular/router'), require('@angular/material/select'), require('@angular/material/input'), require('@angular/material/tooltip'), require('@esfaenza/forms-and-validations'), require('@angular/platform-browser'), require('ngx-bootstrap/modal'), require('ngx-bootstrap/dropdown'), require('@esfaenza/ngx-contextmenu')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@esfaenza/es-table', ['exports', '@angular/core', '@esfaenza/localizations', '@esfaenza/extensions', '@angular/forms', '@esfaenza/preferences', '@angular/cdk/drag-drop', 'rxjs', '@angular/common', '@angular/router', '@angular/material/select', '@angular/material/input', '@angular/material/tooltip', '@esfaenza/forms-and-validations', '@angular/platform-browser', 'ngx-bootstrap/modal', 'ngx-bootstrap/dropdown', '@esfaenza/ngx-contextmenu'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.esfaenza = global.esfaenza || {}, global.esfaenza['es-table'] = {}), global.ng.core, global.localizations, global.i1, global.ng.forms, global.preferences, global.ng.cdk.dragDrop, global.rxjs, global.ng.common, global.ng.router, global.ng.material.select, global.ng.material.input, global.ng.material.tooltip, global.formsAndValidations, global.ng.platformBrowser, global.modal, global.dropdown, global.ngxContextmenu));
|
|
5
|
+
}(this, (function (exports, i0, localizations, i1, forms, preferences, dragDrop, rxjs, common, router, select, input, tooltip, formsAndValidations, platformBrowser, modal, dropdown, ngxContextmenu) { 'use strict';
|
|
6
6
|
|
|
7
7
|
/******************************************************************************
|
|
8
8
|
Copyright (c) Microsoft Corporation.
|
|
@@ -881,7 +881,7 @@
|
|
|
881
881
|
case 'date':
|
|
882
882
|
date = this.dateExts.getDateConvertion(val);
|
|
883
883
|
if (date) {
|
|
884
|
-
correctedDate =
|
|
884
|
+
correctedDate = date.add(date.utcOffset(), 'minute');
|
|
885
885
|
cell.value = correctedDate.toDate();
|
|
886
886
|
cell.numFmt = val.length > 10 ? 'dd/mm/yyyy h:m:s' : '';
|
|
887
887
|
}
|
|
@@ -915,7 +915,9 @@
|
|
|
915
915
|
*/
|
|
916
916
|
ExportHandler.prototype.setupExport = function (items) {
|
|
917
917
|
var drcd = this.est.DynamicRowColumnsDefinition;
|
|
918
|
-
this.est.headers = drcd && drcd.length > 0 ?
|
|
918
|
+
this.est.headers = drcd && drcd.length > 0 ?
|
|
919
|
+
this.expExts.setupForGenericExport(items, drcd.map(function (t) { return { label: t.Description, key: t.PropertyName, order: t.ColumnOrder, type: 'string' }; })) :
|
|
920
|
+
this.expExts.setupForExport(items, this.est.ExportOnlyVisibleColumns ? this.est.ColumnsList.filter(function (t) { return t.visible; }).map(function (t) { return t.id; }) : null);
|
|
919
921
|
this.est.data = items;
|
|
920
922
|
};
|
|
921
923
|
return ExportHandler;
|
|
@@ -4015,6 +4017,8 @@
|
|
|
4015
4017
|
this.ExportFileName = 'Export.csv';
|
|
4016
4018
|
/** Classe (HTML) di default della tabella */
|
|
4017
4019
|
this.TableClass = null;
|
|
4020
|
+
/** Indica di esportare solo le colonne attualmente visibili della view */
|
|
4021
|
+
this.ExportOnlyVisibleColumns = false;
|
|
4018
4022
|
/** Indica la presenza di raggruppamenti a livello di header */
|
|
4019
4023
|
this.HasHeaderGroup = null;
|
|
4020
4024
|
/** Indica la presenza di raggruppamenti a livello del raggruppamento precedentemente esistente, chiaramente è insensata senza **HasHeaderGroup** */
|
|
@@ -5410,6 +5414,7 @@
|
|
|
5410
5414
|
ExportFileName: [{ type: i0.Input }],
|
|
5411
5415
|
TableClass: [{ type: i0.Input }],
|
|
5412
5416
|
ExportFunction: [{ type: i0.Input }],
|
|
5417
|
+
ExportOnlyVisibleColumns: [{ type: i0.Input }],
|
|
5413
5418
|
HasHeaderGroup: [{ type: i0.Input }],
|
|
5414
5419
|
HasSecondaryHeaderGroup: [{ type: i0.Input }],
|
|
5415
5420
|
HeaderHidden: [{ type: i0.Input }],
|
|
@@ -5759,7 +5764,6 @@
|
|
|
5759
5764
|
localizations.LocalizationModule,
|
|
5760
5765
|
modal.ModalModule,
|
|
5761
5766
|
dropdown.BsDropdownModule,
|
|
5762
|
-
ngxCsv.CsvModule,
|
|
5763
5767
|
ngxContextmenu.ContextMenuModule,
|
|
5764
5768
|
select.MatSelectModule,
|
|
5765
5769
|
input.MatInputModule,
|