@neovici/cosmoz-omnitable 8.14.0 → 8.14.1
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.
- package/cosmoz-omnitable.js +19 -13
- package/package.json +1 -1
package/cosmoz-omnitable.js
CHANGED
|
@@ -545,20 +545,26 @@ class Omnitable extends hauntedPolymer(useOmnitable)(mixin({ isEmpty }, translat
|
|
|
545
545
|
value && close(); /* eslint-disable-line no-unused-expressions */
|
|
546
546
|
};
|
|
547
547
|
}
|
|
548
|
-
onItemClick(e){
|
|
549
|
-
const path = e.composedPath(),
|
|
550
|
-
hasLinks = path.slice(0, path.indexOf(e.currentTarget))
|
|
551
|
-
.find(e => e.matches?.('a'));
|
|
552
548
|
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
549
|
+
onItemClick(e) {
|
|
550
|
+
const composedPath = e.composedPath(),
|
|
551
|
+
path = composedPath.slice(0, composedPath.indexOf(e.currentTarget));
|
|
552
|
+
|
|
553
|
+
if (path.find((e) => e.matches?.('a, .checkbox, .expand'))) {
|
|
554
|
+
return;
|
|
555
|
+
}
|
|
556
|
+
|
|
557
|
+
|
|
558
|
+
this.dispatchEvent(
|
|
559
|
+
new window.CustomEvent('omnitable-item-click', {
|
|
560
|
+
bubbles: true,
|
|
561
|
+
composed: true,
|
|
562
|
+
detail: {
|
|
563
|
+
item: e.model.item,
|
|
564
|
+
index: e.model.index,
|
|
565
|
+
},
|
|
566
|
+
})
|
|
567
|
+
);
|
|
562
568
|
}
|
|
563
569
|
}
|
|
564
570
|
customElements.define('cosmoz-omnitable', Omnitable);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@neovici/cosmoz-omnitable",
|
|
3
|
-
"version": "8.14.
|
|
3
|
+
"version": "8.14.1",
|
|
4
4
|
"description": "[](https://travis-ci.org/Neovici/cosmoz-omnitable)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"web-components"
|