@websy/websy-designs 1.4.30 → 1.4.31

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.
@@ -6208,7 +6208,7 @@ class WebsyTable3 {
6208
6208
  // out of box function
6209
6209
  }
6210
6210
  }
6211
- if (event.target.classList.contains('websy-table-cell-expand')) {
6211
+ else if (event.target.classList.contains('websy-table-cell-expand')) {
6212
6212
  if (this.options.onExpandCell) {
6213
6213
  this.options.onExpandCell(event, +rowIndex, +colIndex)
6214
6214
  }
@@ -6216,7 +6216,7 @@ class WebsyTable3 {
6216
6216
  // out of box function
6217
6217
  }
6218
6218
  }
6219
- if (event.target.classList.contains('sortable-column')) {
6219
+ else if (event.target.classList.contains('sortable-column')) {
6220
6220
  // const sortIndex = +event.target.getAttribute('data-sort-index')
6221
6221
  const column = this.options.columns[this.options.columns.length - 1][colIndex]
6222
6222
  if (this.options.onSort) {
@@ -6226,7 +6226,7 @@ class WebsyTable3 {
6226
6226
  this.internalSort(column, colIndex)
6227
6227
  }
6228
6228
  }
6229
- if (event.target.classList.contains('websy-table-cell-content')) {
6229
+ else if (event.target.classList.contains('websy-table-cell-content') || event.target.classList.contains('websy-table-cell')) {
6230
6230
  if (this.options.onCellSelect) {
6231
6231
  this.options.onCellSelect(event, {
6232
6232
  cellIndex,
@@ -6746,16 +6746,12 @@ var WebsyTable3 = /*#__PURE__*/function () {
6746
6746
  this.options.onCollapseCell(event, +rowIndex, +colIndex);
6747
6747
  } else {// out of box function
6748
6748
  }
6749
- }
6750
-
6751
- if (event.target.classList.contains('websy-table-cell-expand')) {
6749
+ } else if (event.target.classList.contains('websy-table-cell-expand')) {
6752
6750
  if (this.options.onExpandCell) {
6753
6751
  this.options.onExpandCell(event, +rowIndex, +colIndex);
6754
6752
  } else {// out of box function
6755
6753
  }
6756
- }
6757
-
6758
- if (event.target.classList.contains('sortable-column')) {
6754
+ } else if (event.target.classList.contains('sortable-column')) {
6759
6755
  // const sortIndex = +event.target.getAttribute('data-sort-index')
6760
6756
  var column = this.options.columns[this.options.columns.length - 1][colIndex];
6761
6757
 
@@ -6764,9 +6760,7 @@ var WebsyTable3 = /*#__PURE__*/function () {
6764
6760
  } else {
6765
6761
  this.internalSort(column, colIndex);
6766
6762
  }
6767
- }
6768
-
6769
- if (event.target.classList.contains('websy-table-cell-content')) {
6763
+ } else if (event.target.classList.contains('websy-table-cell-content') || event.target.classList.contains('websy-table-cell')) {
6770
6764
  if (this.options.onCellSelect) {
6771
6765
  this.options.onCellSelect(event, {
6772
6766
  cellIndex: cellIndex,