@opencor/opencor 0.20260612.1 → 0.20260612.3

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.1", Yp = {
4750
+ }), Zp = "0.20260612.3", Yp = {
4751
4751
  version: Zp
4752
4752
  }, { version: va } = Yp, zr = C.ref(!1), Bo = C.ref(""), yl = async () => {
4753
4753
  try {
@@ -9874,11 +9874,19 @@ const c4 = /* @__PURE__ */ ac(() => C.ref(null)), sc = /* @__PURE__ */ ac(() =>
9874
9874
  const o = C.getCurrentInstance()?.vnode?.el, i = o instanceof Element ? o.closest(".opencor") : document.querySelector(".opencor");
9875
9875
  if (i) {
9876
9876
  let r = i.querySelector(`.${e}`);
9877
- r || (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(
9878
- Object.assign(document.createElement("style"), {
9879
- textContent: `.${e} > * { pointer-events: auto; }`
9880
- })
9881
- ), i.appendChild(r)), n.value = r;
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;
9882
9890
  }
9883
9891
  }), n;
9884
9892
  };
@@ -11927,7 +11935,7 @@ const y6 = ["innerHTML"], w6 = /* @__PURE__ */ gt({
11927
11935
  }, {
11928
11936
  default: S(() => [
11929
11937
  f("div", {
11930
- class: "tooltip",
11938
+ class: "tooltip-content",
11931
11939
  innerHTML: l.content
11932
11940
  }, null, 8, y6)
11933
11941
  ]),
@@ -11935,7 +11943,7 @@ const y6 = ["innerHTML"], w6 = /* @__PURE__ */ gt({
11935
11943
  }, 8, ["appendTo"])
11936
11944
  ], 544));
11937
11945
  }
11938
- }), hc = /* @__PURE__ */ rn(w6, [["__scopeId", "data-v-f2cdf017"]]);
11946
+ }), hc = /* @__PURE__ */ rn(w6, [["__scopeId", "data-v-816f47c5"]]);
11939
11947
  var gc = {
11940
11948
  name: "BlankIcon",
11941
11949
  extends: Je
package/package.json CHANGED
@@ -42,7 +42,7 @@
42
42
  },
43
43
  "./style.css": "./dist/opencor.css"
44
44
  },
45
- "version": "0.20260612.1",
45
+ "version": "0.20260612.3",
46
46
  "libopencorVersion": "0.20260604.0",
47
47
  "scripts": {
48
48
  "build": "vite build && bun scripts/generate.version.js",