@esfaenza/es-table 11.2.83-beta5 → 11.2.83-beta8

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.
@@ -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,7 +4612,7 @@ class EsTableComponent {
4611
4612
  */
4612
4613
  finalizeUserEdit(rowItem, item, columnIndex) {
4613
4614
  rowItem._editing = false;
4614
- let old = rowItem.old_value;
4615
+ let old = this.DynamicRowColumnsDefinition.length > 0 ? rowItem.edits[item._hash].old_value : rowItem.old_value;
4615
4616
  let niu = item[rowItem.PropertyName];
4616
4617
  let olddate = this.dateExts.getDateConvertion(old);
4617
4618
  let niudate = this.dateExts.getDateConvertion(niu);
@@ -4628,8 +4629,9 @@ class EsTableComponent {
4628
4629
  return { id: "", description: "" };
4629
4630
  }
4630
4631
  mousedown(event, rowItem, item) {
4632
+ var _a;
4631
4633
  // Tutti i click su una cella già in edit non devono effettuare la selezione della riga
4632
- if ((this.DynamicRowColumnsDefinition.length > 0 && rowItem.edits[item._hash]._editing) ||
4634
+ if ((this.DynamicRowColumnsDefinition.length > 0 && rowItem.edits && ((_a = rowItem.edits[item._hash]) === null || _a === void 0 ? void 0 : _a._editing)) ||
4633
4635
  rowItem._editing)
4634
4636
  return;
4635
4637
  var id = event.currentTarget.id;