hanap-labs 10.2.2 → 10.3.0
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.
|
@@ -2586,18 +2586,45 @@ var Ke = [
|
|
|
2586
2586
|
typeof document > "u" || (document.body.style.overflow = ue ?? "", ue = null);
|
|
2587
2587
|
}, me = async () => {
|
|
2588
2588
|
await C(), f.value?.focus();
|
|
2589
|
+
}, he = [
|
|
2590
|
+
"button:not([disabled])",
|
|
2591
|
+
"a[href]",
|
|
2592
|
+
"input:not([disabled])",
|
|
2593
|
+
"select:not([disabled])",
|
|
2594
|
+
"textarea:not([disabled])",
|
|
2595
|
+
"[tabindex]:not([tabindex=\"-1\"])"
|
|
2596
|
+
].join(", "), ge = () => {
|
|
2597
|
+
let e = f.value;
|
|
2598
|
+
if (!e) return [];
|
|
2599
|
+
let t = Array.from(e.querySelectorAll(he));
|
|
2600
|
+
return e.hasAttribute("tabindex") && t.unshift(e), t;
|
|
2601
|
+
}, z = (e) => {
|
|
2602
|
+
if (e.key !== "Tab") return;
|
|
2603
|
+
let t = ge();
|
|
2604
|
+
if (t.length === 0) {
|
|
2605
|
+
e.preventDefault();
|
|
2606
|
+
return;
|
|
2607
|
+
}
|
|
2608
|
+
let n = t[0], r = t[t.length - 1];
|
|
2609
|
+
if (e.shiftKey && document.activeElement === n) {
|
|
2610
|
+
e.preventDefault(), r.focus();
|
|
2611
|
+
return;
|
|
2612
|
+
}
|
|
2613
|
+
!e.shiftKey && document.activeElement === r && (e.preventDefault(), n.focus());
|
|
2614
|
+
}, _e = () => {
|
|
2615
|
+
typeof document > "u" || (document.removeEventListener("keydown", oe), f.value?.removeEventListener("keydown", z));
|
|
2589
2616
|
};
|
|
2590
2617
|
return R(() => [_.value.length, e.initialIndex], ([e, t]) => {
|
|
2591
2618
|
d.value = P(t, e);
|
|
2592
|
-
}, { immediate: !0 }), R(() => r.value, (t, r) => {
|
|
2619
|
+
}, { immediate: !0 }), R(() => r.value, async (t, r) => {
|
|
2593
2620
|
if (t) {
|
|
2594
|
-
d.value = P(e.initialIndex, x.value), F(), de(), me(), n("lightbox:opened");
|
|
2621
|
+
d.value = P(e.initialIndex, x.value), F(), de(), await me(), typeof document < "u" && (document.addEventListener("keydown", oe), f.value?.addEventListener("keydown", z)), n("lightbox:opened");
|
|
2595
2622
|
return;
|
|
2596
2623
|
}
|
|
2597
|
-
r && (g.value = /* @__PURE__ */ new Set(), fe(), n("lightbox:closed"));
|
|
2624
|
+
r && (g.value = /* @__PURE__ */ new Set(), fe(), _e(), n("lightbox:closed"));
|
|
2598
2625
|
}), E(() => {
|
|
2599
|
-
r.value && fe();
|
|
2600
|
-
}),
|
|
2626
|
+
r.value && fe(), _e();
|
|
2627
|
+
}), (t, n) => (A(), s(i, { to: "body" }, [p(a, {
|
|
2601
2628
|
"enter-active-class": "hl-transition hl-duration-300 hl-ease-out",
|
|
2602
2629
|
"enter-from-class": "hl-opacity-0",
|
|
2603
2630
|
"enter-to-class": "hl-opacity-100",
|
|
@@ -2670,7 +2697,7 @@ var Ke = [
|
|
|
2670
2697
|
}, 8, ["disabled"])) : c("", !0),
|
|
2671
2698
|
u("div", gt, [
|
|
2672
2699
|
S.value && !h.value ? (A(), l("img", {
|
|
2673
|
-
key:
|
|
2700
|
+
key: d.value,
|
|
2674
2701
|
src: S.value,
|
|
2675
2702
|
alt: w.value,
|
|
2676
2703
|
class: "hl-block hl-max-h-[85vh] hl-max-w-[90vw] hl-object-contain",
|
|
@@ -2678,7 +2705,7 @@ var Ke = [
|
|
|
2678
2705
|
onLoad: ce,
|
|
2679
2706
|
onError: le
|
|
2680
2707
|
}, null, 44, _t)) : c("", !0),
|
|
2681
|
-
D.value ? (A(), l("button", {
|
|
2708
|
+
D.value && !h.value ? (A(), l("button", {
|
|
2682
2709
|
key: 1,
|
|
2683
2710
|
type: "button",
|
|
2684
2711
|
class: "hl-absolute hl-inset-0 hl-z-10 hl-flex hl-cursor-pointer hl-items-center hl-justify-center hl-rounded hl-border-0 hl-bg-transparent hl-p-0",
|
|
@@ -2688,11 +2715,12 @@ var Ke = [
|
|
|
2688
2715
|
name: O.value ? "eye" : "eye-off",
|
|
2689
2716
|
size: 24,
|
|
2690
2717
|
decorative: ""
|
|
2691
|
-
}, null, 8, ["name"])])], 8, vt)) : (
|
|
2718
|
+
}, null, 8, ["name"])])], 8, vt)) : c("", !0),
|
|
2719
|
+
!S.value || h.value ? (A(), l("div", bt, [p(H, {
|
|
2692
2720
|
name: "image",
|
|
2693
2721
|
size: 48,
|
|
2694
2722
|
decorative: ""
|
|
2695
|
-
}), u("p", xt, I(h.value ? "Image failed to load" : "No image available"), 1)])),
|
|
2723
|
+
}), u("p", xt, I(h.value ? "Image failed to load" : "No image available"), 1)])) : c("", !0),
|
|
2696
2724
|
m.value && S.value && !h.value ? (A(), l("div", St, [p(H, {
|
|
2697
2725
|
name: "loader",
|
|
2698
2726
|
size: 32,
|
package/dist/components/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, P as s, S as c, T as l, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as v, j as y, k as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "../chunks/components-
|
|
1
|
+
import { A as e, C as t, D as n, E as r, M as i, N as a, O as o, P as s, S as c, T as l, _ as u, a as d, b as f, c as p, d as m, f as h, g, h as _, i as v, j as y, k as b, l as x, m as S, n as C, o as w, p as T, r as E, s as D, t as O, u as k, v as A, w as j, x as M, y as N } from "../chunks/components-Du-GAHT7.js";
|
|
2
2
|
export { r as HLAvatar, l as HLBadge, o as HLBreadcrumb, j as HLButton, t as HLCard, M as HLCheckbox, v as HLDatepicker, E as HLEditor, b as HLIcon, f as HLImageLightbox, N as HLInput, c as HLLabel, A as HLMenuAction, g as HLNotify, u as HLNotifyToast, h as HLPopup, T as HLPopupContent, C as HLRangeSlider, O as HLRating, x as HLSelect, p as HLSkeleton, w as HLTable, D as HLTabs, d as HLTextarea, e as HL_ICON_NAMES, S as createNotifyPlugin, k as createPopupPlugin, y as getHLIconSvg, i as listHLIconNames, a as registerHLIcon, _ as unmountNotifyHost, m as unmountPopupHost, s as unregisterHLIcon, n as useBreadcrumb };
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { a as e, c as t, i as n, l as r, n as i, o as a, r as o, s, t as c } from "./chunks/composables-DYxDGCpw.js";
|
|
2
|
-
import { A as l, C as u, D as d, E as f, M as ee, N as te, O as ne, P as re, S as ie, T as ae, _ as oe, a as se, b as ce, c as le, d as ue, f as de, g as fe, h as pe, i as me, j as he, k as ge, l as _e, m as ve, n as ye, o as be, p as xe, r as Se, s as Ce, t as we, u as Te, v as Ee, w as De, x as Oe, y as ke } from "./chunks/components-
|
|
2
|
+
import { A as l, C as u, D as d, E as f, M as ee, N as te, O as ne, P as re, S as ie, T as ae, _ as oe, a as se, b as ce, c as le, d as ue, f as de, g as fe, h as pe, i as me, j as he, k as ge, l as _e, m as ve, n as ye, o as be, p as xe, r as Se, s as Ce, t as we, u as Te, v as Ee, w as De, x as Oe, y as ke } from "./chunks/components-Du-GAHT7.js";
|
|
3
3
|
import { n as Ae, r as je, t as Me } from "./chunks/usePopup-CbluSYxf.js";
|
|
4
4
|
import { t as Ne } from "./chunks/helpers-BjMDD0mP.js";
|
|
5
5
|
import { createToolkitAutoImportModules as Pe, createToolkitAutoImportOptions as Fe, createToolkitComponentsResolver as Ie } from "./auto-import/index.js";
|