@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.
|
@@ -6620,7 +6620,7 @@ class WebsyTable3 {
|
|
|
6620
6620
|
// out of box function
|
|
6621
6621
|
}
|
|
6622
6622
|
}
|
|
6623
|
-
if (event.target.classList.contains('websy-table-cell-expand')) {
|
|
6623
|
+
else if (event.target.classList.contains('websy-table-cell-expand')) {
|
|
6624
6624
|
if (this.options.onExpandCell) {
|
|
6625
6625
|
this.options.onExpandCell(event, +rowIndex, +colIndex)
|
|
6626
6626
|
}
|
|
@@ -6628,7 +6628,7 @@ class WebsyTable3 {
|
|
|
6628
6628
|
// out of box function
|
|
6629
6629
|
}
|
|
6630
6630
|
}
|
|
6631
|
-
if (event.target.classList.contains('sortable-column')) {
|
|
6631
|
+
else if (event.target.classList.contains('sortable-column')) {
|
|
6632
6632
|
// const sortIndex = +event.target.getAttribute('data-sort-index')
|
|
6633
6633
|
const column = this.options.columns[this.options.columns.length - 1][colIndex]
|
|
6634
6634
|
if (this.options.onSort) {
|
|
@@ -6638,7 +6638,7 @@ class WebsyTable3 {
|
|
|
6638
6638
|
this.internalSort(column, colIndex)
|
|
6639
6639
|
}
|
|
6640
6640
|
}
|
|
6641
|
-
if (event.target.classList.contains('websy-table-cell-content')) {
|
|
6641
|
+
else if (event.target.classList.contains('websy-table-cell-content') || event.target.classList.contains('websy-table-cell')) {
|
|
6642
6642
|
if (this.options.onCellSelect) {
|
|
6643
6643
|
this.options.onCellSelect(event, {
|
|
6644
6644
|
cellIndex,
|
package/dist/websy-designs.js
CHANGED
|
@@ -7222,16 +7222,12 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
7222
7222
|
this.options.onCollapseCell(event, +rowIndex, +colIndex);
|
|
7223
7223
|
} else {// out of box function
|
|
7224
7224
|
}
|
|
7225
|
-
}
|
|
7226
|
-
|
|
7227
|
-
if (event.target.classList.contains('websy-table-cell-expand')) {
|
|
7225
|
+
} else if (event.target.classList.contains('websy-table-cell-expand')) {
|
|
7228
7226
|
if (this.options.onExpandCell) {
|
|
7229
7227
|
this.options.onExpandCell(event, +rowIndex, +colIndex);
|
|
7230
7228
|
} else {// out of box function
|
|
7231
7229
|
}
|
|
7232
|
-
}
|
|
7233
|
-
|
|
7234
|
-
if (event.target.classList.contains('sortable-column')) {
|
|
7230
|
+
} else if (event.target.classList.contains('sortable-column')) {
|
|
7235
7231
|
// const sortIndex = +event.target.getAttribute('data-sort-index')
|
|
7236
7232
|
var column = this.options.columns[this.options.columns.length - 1][colIndex];
|
|
7237
7233
|
|
|
@@ -7240,9 +7236,7 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
7240
7236
|
} else {
|
|
7241
7237
|
this.internalSort(column, colIndex);
|
|
7242
7238
|
}
|
|
7243
|
-
}
|
|
7244
|
-
|
|
7245
|
-
if (event.target.classList.contains('websy-table-cell-content')) {
|
|
7239
|
+
} else if (event.target.classList.contains('websy-table-cell-content') || event.target.classList.contains('websy-table-cell')) {
|
|
7246
7240
|
if (this.options.onCellSelect) {
|
|
7247
7241
|
this.options.onCellSelect(event, {
|
|
7248
7242
|
cellIndex: cellIndex,
|