@opencor/opencor 0.20260612.2 → 0.20260612.4
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/opencor.css +1 -1
- package/dist/opencor.es.js +33 -24
- package/package.json +1 -1
package/dist/opencor.es.js
CHANGED
|
@@ -4747,7 +4747,7 @@ const ei = () => {
|
|
|
4747
4747
|
]), 1024);
|
|
4748
4748
|
};
|
|
4749
4749
|
}
|
|
4750
|
-
}), Zp = "0.20260612.
|
|
4750
|
+
}), Zp = "0.20260612.4", Yp = {
|
|
4751
4751
|
version: Zp
|
|
4752
4752
|
}, { version: va } = Yp, zr = C.ref(!1), Bo = C.ref(""), yl = async () => {
|
|
4753
4753
|
try {
|
|
@@ -9869,24 +9869,33 @@ const c4 = /* @__PURE__ */ ac(() => C.ref(null)), sc = /* @__PURE__ */ ac(() =>
|
|
|
9869
9869
|
);
|
|
9870
9870
|
return i;
|
|
9871
9871
|
}, Sr = () => {
|
|
9872
|
-
const n = C.shallowRef(void 0), e = "opencor-overlay-container"
|
|
9873
|
-
|
|
9874
|
-
|
|
9875
|
-
|
|
9876
|
-
|
|
9877
|
-
|
|
9878
|
-
|
|
9879
|
-
|
|
9880
|
-
|
|
9881
|
-
|
|
9882
|
-
|
|
9883
|
-
|
|
9884
|
-
|
|
9885
|
-
};
|
|
9886
|
-
|
|
9887
|
-
}
|
|
9888
|
-
n.value = r;
|
|
9872
|
+
const n = C.shallowRef(void 0), e = "opencor-overlay-container", t = (i) => {
|
|
9873
|
+
const r = i?.vnode?.el, a = r instanceof Element ? r.closest(".opencor") : document.querySelector(".opencor");
|
|
9874
|
+
if (!a)
|
|
9875
|
+
return;
|
|
9876
|
+
let l = a.querySelector(`.${e}`);
|
|
9877
|
+
if (!l) {
|
|
9878
|
+
l = document.createElement("div"), l.className = e, l.style.cssText = "position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 99999;", l.appendChild(
|
|
9879
|
+
Object.assign(document.createElement("style"), {
|
|
9880
|
+
textContent: `.${e} > * { pointer-events: auto; }`
|
|
9881
|
+
})
|
|
9882
|
+
), a.appendChild(l);
|
|
9883
|
+
const c = l, s = () => {
|
|
9884
|
+
const u = c.getBoundingClientRect(), m = parseFloat(c.style.top) || 0, p = parseFloat(c.style.left) || 0, h = m - u.top - window.scrollY, k = p - u.left - window.scrollX;
|
|
9885
|
+
(Math.abs(h - m) >= 0.5 || Math.abs(k - p) >= 0.5) && (c.style.top = `${h}px`, c.style.left = `${k}px`);
|
|
9886
|
+
};
|
|
9887
|
+
s(), window.addEventListener("scroll", s, { passive: !0 });
|
|
9889
9888
|
}
|
|
9889
|
+
return l;
|
|
9890
|
+
}, o = (i) => {
|
|
9891
|
+
const r = document.fullscreenElement;
|
|
9892
|
+
return r && !r.contains(document.body) ? t(i) ?? document.body : document.body;
|
|
9893
|
+
};
|
|
9894
|
+
return C.onMounted(() => {
|
|
9895
|
+
const i = C.getCurrentInstance();
|
|
9896
|
+
n.value = o(i), document.addEventListener("fullscreenchange", () => {
|
|
9897
|
+
n.value = o(i);
|
|
9898
|
+
});
|
|
9890
9899
|
}), n;
|
|
9891
9900
|
};
|
|
9892
9901
|
var d4 = function(e) {
|
|
@@ -11934,7 +11943,7 @@ const y6 = ["innerHTML"], w6 = /* @__PURE__ */ gt({
|
|
|
11934
11943
|
}, {
|
|
11935
11944
|
default: S(() => [
|
|
11936
11945
|
f("div", {
|
|
11937
|
-
class: "tooltip",
|
|
11946
|
+
class: "tooltip-content",
|
|
11938
11947
|
innerHTML: l.content
|
|
11939
11948
|
}, null, 8, y6)
|
|
11940
11949
|
]),
|
|
@@ -11942,7 +11951,7 @@ const y6 = ["innerHTML"], w6 = /* @__PURE__ */ gt({
|
|
|
11942
11951
|
}, 8, ["appendTo"])
|
|
11943
11952
|
], 544));
|
|
11944
11953
|
}
|
|
11945
|
-
}), hc = /* @__PURE__ */ rn(w6, [["__scopeId", "data-v-
|
|
11954
|
+
}), hc = /* @__PURE__ */ rn(w6, [["__scopeId", "data-v-40eb0714"]]);
|
|
11946
11955
|
var gc = {
|
|
11947
11956
|
name: "BlankIcon",
|
|
11948
11957
|
extends: Je
|
|
@@ -29580,7 +29589,7 @@ const _I = { class: "flex flex-row h-full" }, WI = {
|
|
|
29580
29589
|
}, null, 8, ["model", "appendTo"])
|
|
29581
29590
|
]));
|
|
29582
29591
|
}
|
|
29583
|
-
}), yo = (n) => ($n("data-v-
|
|
29592
|
+
}), yo = (n) => ($n("data-v-3607ca5a"), n = n(), Qn(), n), KI = { class: "h-full" }, HI = {
|
|
29584
29593
|
key: 1,
|
|
29585
29594
|
class: "w-full h-full flex flex-col"
|
|
29586
29595
|
}, GI = {
|
|
@@ -30340,8 +30349,8 @@ const _I = { class: "flex flex-row h-full" }, WI = {
|
|
|
30340
30349
|
);
|
|
30341
30350
|
it?.name ? Se = it.name.charAt(0).toLowerCase() + it.name.slice(1) : Se = v[de.id];
|
|
30342
30351
|
}
|
|
30343
|
-
L.push(`<tr>
|
|
30344
|
-
<td style="
|
|
30352
|
+
L.push(`<tr style="vertical-align: top;">
|
|
30353
|
+
<td style="font-weight: bold;">
|
|
30345
30354
|
${de.name}:
|
|
30346
30355
|
</td>
|
|
30347
30356
|
<td style="padding-left: 8px;">
|
|
@@ -30783,7 +30792,7 @@ const _I = { class: "flex flex-row h-full" }, WI = {
|
|
|
30783
30792
|
]);
|
|
30784
30793
|
};
|
|
30785
30794
|
}
|
|
30786
|
-
}), bs = /* @__PURE__ */ rn(yM, [["__scopeId", "data-v-
|
|
30795
|
+
}), bs = /* @__PURE__ */ rn(yM, [["__scopeId", "data-v-3607ca5a"]]), wM = {
|
|
30787
30796
|
key: 0,
|
|
30788
30797
|
class: "h-full"
|
|
30789
30798
|
}, CM = ["value"], kM = {
|