@melodicdev/components 1.0.19 → 1.0.21
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 +10 -5
- package/assets/melodic-components.js.map +1 -1
- package/assets/melodic-components.min.js +687 -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/lib/components/overlays/dialog/dialog.component.d.ts +3 -2
- package/lib/components/overlays/dialog/dialog.component.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog.component.js +3 -0
- 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;
|
|
@@ -18659,6 +18661,9 @@ var DialogComponent = class DialogComponent$1 {
|
|
|
18659
18661
|
this._dialogID = newID();
|
|
18660
18662
|
this._registered = false;
|
|
18661
18663
|
}
|
|
18664
|
+
onCreate() {
|
|
18665
|
+
this.registerDialog();
|
|
18666
|
+
}
|
|
18662
18667
|
registerDialog() {
|
|
18663
18668
|
if (this._registered) return;
|
|
18664
18669
|
const dialogEl = this.elementRef.shadowRoot?.querySelector("dialog");
|