@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.
|
@@ -6012,7 +6012,7 @@ class WebsyTable3 {
|
|
|
6012
6012
|
}
|
|
6013
6013
|
buildSearchIcon (col, index) {
|
|
6014
6014
|
// return `<div class="websy-table-search-icon" data-col-id="${col.dimId}" data-col-index="${index}">
|
|
6015
|
-
return `<div class="websy-table-search-icon">
|
|
6015
|
+
return `<div class="websy-table-search-icon" data-col-index="${index}">
|
|
6016
6016
|
<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>
|
|
6017
6017
|
</div>`
|
|
6018
6018
|
}
|
|
@@ -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,
|
|
@@ -6514,7 +6514,7 @@ var WebsyTable3 = /*#__PURE__*/function () {
|
|
|
6514
6514
|
key: "buildSearchIcon",
|
|
6515
6515
|
value: function buildSearchIcon(col, index) {
|
|
6516
6516
|
// return `<div class="websy-table-search-icon" data-col-id="${col.dimId}" data-col-index="${index}">
|
|
6517
|
-
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>";
|
|
6517
|
+
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>");
|
|
6518
6518
|
}
|
|
6519
6519
|
}, {
|
|
6520
6520
|
key: "buildSortIcon",
|
|
@@ -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,
|