@esfaenza/es-table 11.2.83-beta6 → 11.2.83-beta9
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 +4 -3
- 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/esm2015/lib/components/es-table/es_table.component.js +5 -4
- package/fesm2015/esfaenza-es-table.js +4 -3
- package/fesm2015/esfaenza-es-table.js.map +1 -1
- package/package.json +1 -1
|
@@ -4470,8 +4470,9 @@ class EsTableComponent {
|
|
|
4470
4470
|
* @param {number} rowIndex Indice della riga
|
|
4471
4471
|
*/
|
|
4472
4472
|
dbClickEditOrSingleClickRowSelection($event, rowItem, item, rowIndex) {
|
|
4473
|
+
var _a;
|
|
4473
4474
|
// Tutti i click su una cella già in edit non devono effettuare la selezione della riga
|
|
4474
|
-
if ((this.DynamicRowColumnsDefinition.length > 0 && rowItem.edits[item._hash]._editing) ||
|
|
4475
|
+
if ((this.DynamicRowColumnsDefinition.length > 0 && rowItem.edits && ((_a = rowItem.edits[item._hash]) === null || _a === void 0 ? void 0 : _a._editing)) ||
|
|
4475
4476
|
rowItem._editing)
|
|
4476
4477
|
return;
|
|
4477
4478
|
// Se ho fatto click col control attaccato esco subito dato che deve solo permettere la navigazione dei link
|
|
@@ -4611,8 +4612,8 @@ class EsTableComponent {
|
|
|
4611
4612
|
*/
|
|
4612
4613
|
finalizeUserEdit(rowItem, item, columnIndex) {
|
|
4613
4614
|
rowItem._editing = false;
|
|
4614
|
-
let old = rowItem.old_value;
|
|
4615
|
-
let niu = item[rowItem.PropertyName];
|
|
4615
|
+
let old = this.DynamicRowColumnsDefinition.length > 0 ? rowItem.edits[item._hash].old_value : rowItem.old_value;
|
|
4616
|
+
let niu = this.DynamicRowColumnsDefinition.length > 0 ? item.properties[rowItem.PropertyName] : item[rowItem.PropertyName];
|
|
4616
4617
|
let olddate = this.dateExts.getDateConvertion(old);
|
|
4617
4618
|
let niudate = this.dateExts.getDateConvertion(niu);
|
|
4618
4619
|
if ((olddate && niudate && olddate.isSame && olddate.isSame(niudate)) || old === niu)
|