@melodicdev/components 1.6.6 → 1.6.7
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 +9 -0
- package/assets/melodic-components.js.map +1 -1
- package/assets/melodic-components.min.js +71 -62
- package/lib/components/overlays/dialog/dialog-ref.class.d.ts +1 -0
- package/lib/components/overlays/dialog/dialog-ref.class.d.ts.map +1 -1
- package/lib/components/overlays/dialog/dialog-ref.class.js +17 -0
- package/package.json +1 -1
|
@@ -22807,6 +22807,7 @@ var DialogRef = class {
|
|
|
22807
22807
|
this._afterOpenedCallback?.();
|
|
22808
22808
|
}
|
|
22809
22809
|
close(result) {
|
|
22810
|
+
this._dismissDescendantPopovers(this._dialogEl);
|
|
22810
22811
|
this._dialogEl.close();
|
|
22811
22812
|
this._afterClosedCallback?.(result);
|
|
22812
22813
|
}
|
|
@@ -22822,6 +22823,14 @@ var DialogRef = class {
|
|
|
22822
22823
|
onBackdropClick(event) {
|
|
22823
22824
|
if (event.target === this._dialogEl && !this._disableClose) this.close();
|
|
22824
22825
|
}
|
|
22826
|
+
_dismissDescendantPopovers(root) {
|
|
22827
|
+
root.querySelectorAll("*").forEach((el) => {
|
|
22828
|
+
if (el.hasAttribute("popover")) try {
|
|
22829
|
+
el.hidePopover();
|
|
22830
|
+
} catch {}
|
|
22831
|
+
if (el.shadowRoot) this._dismissDescendantPopovers(el.shadowRoot);
|
|
22832
|
+
});
|
|
22833
|
+
}
|
|
22825
22834
|
};
|
|
22826
22835
|
var DialogService = class DialogService$1 {
|
|
22827
22836
|
constructor() {
|