@opencor/opencor 0.20260612.3 → 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.
@@ -4747,7 +4747,7 @@ const ei = () => {
4747
4747
  ]), 1024);
4748
4748
  };
4749
4749
  }
4750
- }), Zp = "0.20260612.3", Yp = {
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,25 +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
- return C.onMounted(() => {
9874
- const o = C.getCurrentInstance()?.vnode?.el, i = o instanceof Element ? o.closest(".opencor") : document.querySelector(".opencor");
9875
- if (i) {
9876
- let r = i.querySelector(`.${e}`);
9877
- if (!r) {
9878
- r = document.createElement("div"), r.className = e, r.style.cssText = "position: fixed; top: 0; left: 0; width: 0; height: 0; overflow: visible; pointer-events: none; z-index: 99999;", r.appendChild(
9879
- Object.assign(document.createElement("style"), {
9880
- textContent: `.${e} > * { pointer-events: auto; }`
9881
- })
9882
- ), i.appendChild(r);
9883
- const a = r, l = () => {
9884
- const c = a.getBoundingClientRect(), s = parseFloat(a.style.top) || 0, u = parseFloat(a.style.left) || 0, m = s - c.top - window.scrollY, p = u - c.left - window.scrollX;
9885
- (Math.abs(m - s) >= 0.5 || Math.abs(p - u) >= 0.5) && (a.style.top = `${m}px`, a.style.left = `${p}px`);
9886
- };
9887
- l(), window.addEventListener("scroll", l, { passive: !0 });
9888
- }
9889
- 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 });
9890
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
+ });
9891
9899
  }), n;
9892
9900
  };
9893
9901
  var d4 = function(e) {
@@ -11943,7 +11951,7 @@ const y6 = ["innerHTML"], w6 = /* @__PURE__ */ gt({
11943
11951
  }, 8, ["appendTo"])
11944
11952
  ], 544));
11945
11953
  }
11946
- }), hc = /* @__PURE__ */ rn(w6, [["__scopeId", "data-v-816f47c5"]]);
11954
+ }), hc = /* @__PURE__ */ rn(w6, [["__scopeId", "data-v-40eb0714"]]);
11947
11955
  var gc = {
11948
11956
  name: "BlankIcon",
11949
11957
  extends: Je
@@ -29581,7 +29589,7 @@ const _I = { class: "flex flex-row h-full" }, WI = {
29581
29589
  }, null, 8, ["model", "appendTo"])
29582
29590
  ]));
29583
29591
  }
29584
- }), yo = (n) => ($n("data-v-8e9d78f4"), n = n(), Qn(), n), KI = { class: "h-full" }, HI = {
29592
+ }), yo = (n) => ($n("data-v-3607ca5a"), n = n(), Qn(), n), KI = { class: "h-full" }, HI = {
29585
29593
  key: 1,
29586
29594
  class: "w-full h-full flex flex-col"
29587
29595
  }, GI = {
@@ -30341,8 +30349,8 @@ const _I = { class: "flex flex-row h-full" }, WI = {
30341
30349
  );
30342
30350
  it?.name ? Se = it.name.charAt(0).toLowerCase() + it.name.slice(1) : Se = v[de.id];
30343
30351
  }
30344
- L.push(`<tr>
30345
- <td style="vertical-align: top; font-weight: bold;">
30352
+ L.push(`<tr style="vertical-align: top;">
30353
+ <td style="font-weight: bold;">
30346
30354
  ${de.name}:
30347
30355
  </td>
30348
30356
  <td style="padding-left: 8px;">
@@ -30784,7 +30792,7 @@ const _I = { class: "flex flex-row h-full" }, WI = {
30784
30792
  ]);
30785
30793
  };
30786
30794
  }
30787
- }), bs = /* @__PURE__ */ rn(yM, [["__scopeId", "data-v-8e9d78f4"]]), wM = {
30795
+ }), bs = /* @__PURE__ */ rn(yM, [["__scopeId", "data-v-3607ca5a"]]), wM = {
30788
30796
  key: 0,
30789
30797
  class: "h-full"
30790
30798
  }, CM = ["value"], kM = {
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "./style.css": "./dist/opencor.css"
44
44
  },
45
- "version": "0.20260612.3",
45
+ "version": "0.20260612.4",
46
46
  "libopencorVersion": "0.20260604.0",
47
47
  "scripts": {
48
48
  "build": "vite build && bun scripts/generate.version.js",