@vehiclehistory/property-lib 0.0.32 → 0.0.33
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/main.js +9 -2
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2014,7 +2014,14 @@ class f {
|
|
|
2014
2014
|
onClose: n = null,
|
|
2015
2015
|
disableOutsideClick: l = !1
|
|
2016
2016
|
}) {
|
|
2017
|
-
const r = e ? document.querySelectorAll(e) : [], s = document.getElementById(t + "-dialog"), i = document.querySelectorAll("[data-dialog-close]"), c = [
|
|
2017
|
+
const r = e ? document.querySelectorAll(e) : [], s = document.getElementById(t + "-dialog"), i = document.querySelectorAll("[data-dialog-close]"), c = [
|
|
2018
|
+
"closing",
|
|
2019
|
+
"closed",
|
|
2020
|
+
"opening",
|
|
2021
|
+
"opened",
|
|
2022
|
+
"outside",
|
|
2023
|
+
"removed"
|
|
2024
|
+
].reduce(
|
|
2018
2025
|
(p, H) => ({
|
|
2019
2026
|
...p,
|
|
2020
2027
|
[H]: new Event(H)
|
|
@@ -2047,7 +2054,7 @@ class f {
|
|
|
2047
2054
|
}, M = async ({ target: p }) => {
|
|
2048
2055
|
p == null || p.classList.add("closing"), p == null || p.setAttribute("inert", ""), p == null || p.dispatchEvent(c.closing), p && await C(p), p == null || p.classList.remove("closing"), p == null || p.dispatchEvent(c.closed);
|
|
2049
2056
|
}, A = async ({ target: p }) => {
|
|
2050
|
-
(p == null ? void 0 : p.nodeName) === "DIALOG" && (s == null || s.close("outside"));
|
|
2057
|
+
(p == null ? void 0 : p.nodeName) === "DIALOG" && (p == null || p.dispatchEvent(c.outside), s == null || s.close("outside"));
|
|
2051
2058
|
}, C = (p) => Promise.allSettled(
|
|
2052
2059
|
p == null ? void 0 : p.getAnimations().map((H) => H == null ? void 0 : H.finished)
|
|
2053
2060
|
);
|
package/package.json
CHANGED