@odx/foundation 1.0.0-alpha.45 → 1.0.0-alpha.46
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/dist/components.js +7 -5
- package/package.json +1 -1
package/dist/components.js
CHANGED
|
@@ -2865,12 +2865,14 @@ var _OdxModal_instances, handleOpenChange_fn, _handleKeyDown, _handleClick$1;
|
|
|
2865
2865
|
window.addEventListener("click", (event) => {
|
|
2866
2866
|
const source = getElementFromEvent(
|
|
2867
2867
|
event,
|
|
2868
|
-
(node) => node.hasAttribute("odx-modal-
|
|
2868
|
+
(node) => node.hasAttribute("odx-modal-toggle") && node.ariaBusy !== "true" && node.ariaDisabled !== "true"
|
|
2869
2869
|
);
|
|
2870
|
-
const modalId = source?.getAttribute("odx-modal-
|
|
2871
|
-
const
|
|
2872
|
-
if (
|
|
2873
|
-
modal
|
|
2870
|
+
const modalId = source?.getAttribute("odx-modal-toggle");
|
|
2871
|
+
const modals = modalId ? Array.from(source.ownerDocument.querySelectorAll(`#${modalId}`)) : [];
|
|
2872
|
+
if (modals.length === 0) return;
|
|
2873
|
+
for (const modal of modals) {
|
|
2874
|
+
modal.open = !source.closest("odx-modal");
|
|
2875
|
+
}
|
|
2874
2876
|
});
|
|
2875
2877
|
})();
|
|
2876
2878
|
let OdxModal = class extends CustomElement {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@odx/foundation",
|
|
3
3
|
"description": "A library of Web Component building blocks for ODX",
|
|
4
|
-
"version": "1.0.0-alpha.
|
|
4
|
+
"version": "1.0.0-alpha.46",
|
|
5
5
|
"author": "Drägerwerk AG & Co.KGaA",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE",
|
|
7
7
|
"homepage": "https://odx.draeger.com",
|