@melodicdev/components 1.0.19 → 1.0.20
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/assets/melodic-components.js +7 -5
- package/assets/melodic-components.js.map +1 -1
- package/assets/melodic-components.min.js +684 -681
- package/lib/components/data-display/table/table.component.d.ts.map +1 -1
- package/lib/components/data-display/table/table.component.js +12 -10
- package/package.json +1 -1
|
@@ -12088,6 +12088,12 @@ const tableStyles = () => css`
|
|
|
12088
12088
|
padding: var(--ml-space-2) var(--ml-space-4);
|
|
12089
12089
|
}
|
|
12090
12090
|
`;
|
|
12091
|
+
var _rowClickTargets = /* @__PURE__ */ new WeakSet();
|
|
12092
|
+
var _origAddEventListener = EventTarget.prototype.addEventListener;
|
|
12093
|
+
EventTarget.prototype.addEventListener = function(type, listener, options) {
|
|
12094
|
+
if (type === "ml:row-click") _rowClickTargets.add(this);
|
|
12095
|
+
_origAddEventListener.call(this, type, listener, options);
|
|
12096
|
+
};
|
|
12091
12097
|
var TableComponent = class TableComponent$1 {
|
|
12092
12098
|
constructor() {
|
|
12093
12099
|
this._rowClickable = false;
|
|
@@ -12160,11 +12166,7 @@ var TableComponent = class TableComponent$1 {
|
|
|
12160
12166
|
if (name === "rows" || name === "columns") this._scroller.invalidate();
|
|
12161
12167
|
}
|
|
12162
12168
|
onInit() {
|
|
12163
|
-
|
|
12164
|
-
this.elementRef.addEventListener = (type, listener, options) => {
|
|
12165
|
-
if (type === "ml:row-click") this._rowClickable = true;
|
|
12166
|
-
return original(type, listener, options);
|
|
12167
|
-
};
|
|
12169
|
+
this._rowClickable = _rowClickTargets.has(this.elementRef);
|
|
12168
12170
|
}
|
|
12169
12171
|
onCreate() {
|
|
12170
12172
|
const shadow = this.elementRef.shadowRoot;
|