@websy/websy-designs 1.4.29 → 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.
|
@@ -6424,7 +6424,7 @@ class WebsyTable3 {
|
|
|
6424
6424
|
}
|
|
6425
6425
|
buildSearchIcon (col, index) {
|
|
6426
6426
|
// return `<div class="websy-table-search-icon" data-col-id="${col.dimId}" data-col-index="${index}">
|
|
6427
|
-
return `<div class="websy-table-search-icon">
|
|
6427
|
+
return `<div class="websy-table-search-icon" data-col-index="${index}">
|
|
6428
6428
|
<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 512 512"><path d="M221.09,64A157.09,157.09,0,1,0,378.18,221.09,157.1,157.1,0,0,0,221.09,64Z" style="fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:32px"/><line x1="338.29" y1="338.29" x2="448" y2="448" style="fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px"/></svg>
|
|
6429
6429
|
</div>`
|
|
6430
6430
|
}
|
|
@@ -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
|
@@ -6990,7 +6990,7 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6990
6990
|
key: "buildSearchIcon",
|
|
6991
6991
|
value: function buildSearchIcon(col, index) {
|
|
6992
6992
|
// return `<div class="websy-table-search-icon" data-col-id="${col.dimId}" data-col-index="${index}">
|
|
6993
|
-
return "<div class=\"websy-table-search-icon\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 512 512\"><path d=\"M221.09,64A157.09,157.09,0,1,0,378.18,221.09,157.1,157.1,0,0,0,221.09,64Z\" style=\"fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:32px\"/><line x1=\"338.29\" y1=\"338.29\" x2=\"448\" y2=\"448\" style=\"fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px\"/></svg>\n </div>";
|
|
6993
|
+
return "<div class=\"websy-table-search-icon\" data-col-index=\"".concat(index, "\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"20\" height=\"20\" viewBox=\"0 0 512 512\"><path d=\"M221.09,64A157.09,157.09,0,1,0,378.18,221.09,157.1,157.1,0,0,0,221.09,64Z\" style=\"fill:none;stroke:#000;stroke-miterlimit:10;stroke-width:32px\"/><line x1=\"338.29\" y1=\"338.29\" x2=\"448\" y2=\"448\" style=\"fill:none;stroke:#000;stroke-linecap:round;stroke-miterlimit:10;stroke-width:32px\"/></svg>\n </div>");
|
|
6994
6994
|
}
|
|
6995
6995
|
}, {
|
|
6996
6996
|
key: "buildSortIcon",
|
|
@@ -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,
|