@nubisco/ui 3.4.0 → 3.5.1
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/components/Banner.vue.d.ts.map +1 -1
- package/dist/components/Shell.d.ts +7 -0
- package/dist/components/Shell.vue.d.ts +7 -4
- package/dist/components/Shell.vue.d.ts.map +1 -1
- package/dist/composables/useShellSlot.composable.d.ts +1 -1
- package/dist/composables/useShellSlot.composable.d.ts.map +1 -1
- package/dist/index.cjs +3 -3
- package/dist/index.mjs +496 -480
- package/dist/ui.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -12540,7 +12540,7 @@ var TJt = ["title"], l2 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
12540
12540
|
})], 8, zJt)) : u("", !0)
|
|
12541
12541
|
], 10, PJt));
|
|
12542
12542
|
}
|
|
12543
|
-
}), [["__scopeId", "data-v-
|
|
12543
|
+
}), [["__scopeId", "data-v-72da3a3d"]]), BJt = {
|
|
12544
12544
|
key: 0,
|
|
12545
12545
|
class: "nb-chart__header"
|
|
12546
12546
|
}, VJt = {
|
|
@@ -24486,15 +24486,18 @@ var D3t = /* @__PURE__ */ _({
|
|
|
24486
24486
|
"aria-label",
|
|
24487
24487
|
"aria-expanded",
|
|
24488
24488
|
"aria-controls"
|
|
24489
|
-
], B3t = ["
|
|
24489
|
+
], B3t = ["aria-expanded"], V3t = {
|
|
24490
|
+
class: "nb-shell__contextbar-toggle-glyph",
|
|
24491
|
+
"aria-hidden": "true"
|
|
24492
|
+
}, H3t = { class: "nb-shell__main-row" }, U3t = ["aria-label"], W3t = ["id"], G3t = [
|
|
24490
24493
|
"aria-label",
|
|
24491
24494
|
"inert",
|
|
24492
24495
|
"aria-hidden"
|
|
24493
|
-
],
|
|
24496
|
+
], K3t = ["aria-label"], q3t = [
|
|
24494
24497
|
"aria-label",
|
|
24495
24498
|
"aria-valuenow",
|
|
24496
24499
|
"aria-valuemax"
|
|
24497
|
-
], o5 = 288,
|
|
24500
|
+
], o5 = 288, J3t = 16, Y3t = 64, s5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
24498
24501
|
__name: "Shell",
|
|
24499
24502
|
props: {
|
|
24500
24503
|
inspectorVisible: {
|
|
@@ -24525,6 +24528,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
24525
24528
|
mainId: {},
|
|
24526
24529
|
sidebarLabel: { default: "Primary" },
|
|
24527
24530
|
inspectorLabel: { default: "Inspector" },
|
|
24531
|
+
contextbarLabel: { default: "Browse" },
|
|
24528
24532
|
collapseAt: { default: "md" },
|
|
24529
24533
|
sidebarOpen: { type: Boolean },
|
|
24530
24534
|
navToggleLabel: { default: "Navigation" },
|
|
@@ -24560,152 +24564,152 @@ var D3t = /* @__PURE__ */ _({
|
|
|
24560
24564
|
"sidebar-bottom"
|
|
24561
24565
|
]) if (i(e)) return !0;
|
|
24562
24566
|
return !1;
|
|
24563
|
-
}), b = e, x =
|
|
24567
|
+
}), b = e, x = R(!1), S = n, D = {
|
|
24564
24568
|
md: 672,
|
|
24565
24569
|
lg: 1056
|
|
24566
|
-
},
|
|
24567
|
-
function
|
|
24568
|
-
let t =
|
|
24570
|
+
}, k = R(typeof window < "u" ? window.innerWidth : Infinity);
|
|
24571
|
+
function j(e) {
|
|
24572
|
+
let t = D[b.collapseAt];
|
|
24569
24573
|
return t != null && e < t;
|
|
24570
24574
|
}
|
|
24571
|
-
let
|
|
24572
|
-
function M() {
|
|
24573
|
-
let e = window.innerWidth;
|
|
24574
|
-
k(e) !== k(D.value) && (D.value = e);
|
|
24575
|
-
}
|
|
24575
|
+
let M = 0;
|
|
24576
24576
|
function N() {
|
|
24577
|
-
|
|
24578
|
-
|
|
24579
|
-
});
|
|
24577
|
+
let e = window.innerWidth;
|
|
24578
|
+
j(e) !== j(k.value) && (k.value = e);
|
|
24580
24579
|
}
|
|
24581
24580
|
function I() {
|
|
24582
|
-
|
|
24581
|
+
M ||= window.requestAnimationFrame(() => {
|
|
24582
|
+
M = 0, k.value = window.innerWidth;
|
|
24583
|
+
});
|
|
24583
24584
|
}
|
|
24584
24585
|
function L() {
|
|
24585
|
-
typeof window > "u" || (
|
|
24586
|
+
typeof window > "u" || (window.removeEventListener("resize", I), M &&= (window.cancelAnimationFrame(M), 0));
|
|
24586
24587
|
}
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
return e in V || t in V;
|
|
24588
|
+
function z() {
|
|
24589
|
+
typeof window > "u" || (k.value = window.innerWidth, window.addEventListener("resize", I, { passive: !0 }));
|
|
24590
24590
|
}
|
|
24591
|
+
let V = s(() => j(k.value)), H = v()?.vnode.props ?? {};
|
|
24591
24592
|
function ee(e, t) {
|
|
24592
|
-
|
|
24593
|
-
if (t in V) return V[t];
|
|
24593
|
+
return e in H || t in H;
|
|
24594
24594
|
}
|
|
24595
24595
|
function G(e, t) {
|
|
24596
|
-
|
|
24596
|
+
if (e in H) return H[e];
|
|
24597
|
+
if (t in H) return H[t];
|
|
24597
24598
|
}
|
|
24598
|
-
|
|
24599
|
-
|
|
24600
|
-
|
|
24599
|
+
function q(e, t) {
|
|
24600
|
+
return ee(e, t) && G(e, t) !== void 0;
|
|
24601
|
+
}
|
|
24602
|
+
let J = q("sidebarOpen", "sidebar-open"), re = R(!1);
|
|
24603
|
+
ee("sidebarOpen", "sidebar-open") && !J && Y(() => b.sidebarOpen, (e) => {
|
|
24604
|
+
re.value = e === !0;
|
|
24601
24605
|
});
|
|
24602
|
-
let
|
|
24603
|
-
function
|
|
24604
|
-
|
|
24606
|
+
let ie = s(() => J ? b.sidebarOpen === !0 : re.value), ae = te(), Z = s(() => `nb-shell-sidebar-${ae}`), le = R(null), ue = R(null), de = s(() => y.value && V.value), fe = s(() => y.value && V.value && !ie.value);
|
|
24607
|
+
function Q(e) {
|
|
24608
|
+
J || (re.value = e), S("update:sidebarOpen", e);
|
|
24605
24609
|
}
|
|
24606
|
-
function
|
|
24607
|
-
if (y.value &&
|
|
24608
|
-
|
|
24610
|
+
function pe() {
|
|
24611
|
+
if (y.value && V.value && ie.value) {
|
|
24612
|
+
Q(!1);
|
|
24609
24613
|
return;
|
|
24610
24614
|
}
|
|
24611
|
-
|
|
24615
|
+
ve.value && ye(!1);
|
|
24612
24616
|
}
|
|
24613
|
-
Y(
|
|
24614
|
-
|
|
24615
|
-
}), Y(
|
|
24616
|
-
!e &&
|
|
24617
|
+
Y(ie, async (e) => {
|
|
24618
|
+
V.value && (await w(), e ? (ue.value?.querySelector("a[href], button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])") ?? ue.value)?.focus?.() : le.value?.focus?.());
|
|
24619
|
+
}), Y(V, (e) => {
|
|
24620
|
+
!e && ie.value && Q(!1);
|
|
24617
24621
|
});
|
|
24618
|
-
let
|
|
24619
|
-
|
|
24620
|
-
|
|
24622
|
+
let me = q("inspectorVisible", "inspector-visible"), he = R(b.inspectorVisible === !0);
|
|
24623
|
+
ee("inspectorVisible", "inspector-visible") && !me && Y(() => b.inspectorVisible, (e) => {
|
|
24624
|
+
he.value = e === !0;
|
|
24621
24625
|
});
|
|
24622
|
-
let
|
|
24623
|
-
function
|
|
24624
|
-
|
|
24626
|
+
let ge = R(!1), _e = s(() => (me ? b.inspectorVisible === !0 : he.value) ? !(V.value && ge.value) : !1), ve = s(() => V.value && _e.value);
|
|
24627
|
+
function ye(e) {
|
|
24628
|
+
me ? ge.value = !e : (he.value = e, ge.value = !1), S("update:inspectorVisible", e);
|
|
24625
24629
|
}
|
|
24626
24630
|
Y(() => b.inspectorVisible, (e) => {
|
|
24627
|
-
e && (
|
|
24628
|
-
}), Y(
|
|
24629
|
-
e || (
|
|
24631
|
+
e && (ge.value = !1);
|
|
24632
|
+
}), Y(V, (e) => {
|
|
24633
|
+
e || (ge.value = !1);
|
|
24630
24634
|
});
|
|
24631
|
-
let
|
|
24632
|
-
Y(
|
|
24633
|
-
if (e)
|
|
24635
|
+
let be = R(null), xe = R(null);
|
|
24636
|
+
Y(ve, async (e) => {
|
|
24637
|
+
if (e) xe.value = document.activeElement ?? null, await w(), be.value?.focus?.();
|
|
24634
24638
|
else {
|
|
24635
|
-
let e =
|
|
24636
|
-
|
|
24639
|
+
let e = xe.value;
|
|
24640
|
+
xe.value = null, e?.isConnected && (await w(), e.focus?.());
|
|
24637
24641
|
}
|
|
24638
24642
|
});
|
|
24639
|
-
let
|
|
24640
|
-
function
|
|
24641
|
-
|
|
24643
|
+
let Se = s(() => ve.value), Ce = R(null), we = te(), Te = s(() => b.mainId || `nb-shell-main-${we}`);
|
|
24644
|
+
function Ee() {
|
|
24645
|
+
Ce.value?.focus();
|
|
24642
24646
|
}
|
|
24643
|
-
let
|
|
24647
|
+
let De = s(() => de.value || b.topbar === "always" ? !0 : b.topbar === "never" ? !1 : i("topbar-left") || i("topbar-right") || o("topbar-left") > 0 || o("topbar-right") > 0), { layerProps: Oe } = H2(), { layerProps: ke } = H2({
|
|
24644
24648
|
level: 0,
|
|
24645
24649
|
probe: !1,
|
|
24646
24650
|
provideContext: !1
|
|
24647
24651
|
});
|
|
24648
24652
|
F("nb-shell-sidebar-variant", W(b, "sidebarVariant"));
|
|
24649
|
-
let
|
|
24650
|
-
A(() => l("inspector",
|
|
24651
|
-
let
|
|
24653
|
+
let Ae = R(null), je = R(!1);
|
|
24654
|
+
A(() => l("inspector", Ae.value)), Y(Ae, (e) => l("inspector", e));
|
|
24655
|
+
let Me = {
|
|
24652
24656
|
lg: .5,
|
|
24653
24657
|
xl: .75
|
|
24654
|
-
},
|
|
24658
|
+
}, Ne = {
|
|
24655
24659
|
xs: 288,
|
|
24656
24660
|
sm: 360,
|
|
24657
24661
|
md: 560
|
|
24658
|
-
},
|
|
24659
|
-
function
|
|
24660
|
-
return Math.round(Math.max(o5, Math.min(e,
|
|
24662
|
+
}, Pe = s(() => Number.isFinite(k.value) ? k.value : 1280), Fe = s(() => Math.max(o5, Pe.value * .5));
|
|
24663
|
+
function Ie(e) {
|
|
24664
|
+
return Math.round(Math.max(o5, Math.min(e, Fe.value)));
|
|
24665
|
+
}
|
|
24666
|
+
let Le = q("inspectorWidth", "inspector-width"), Re = R(null), ze = s(() => Le ? b.inspectorWidth ?? null : Re.value);
|
|
24667
|
+
function Be(e) {
|
|
24668
|
+
Le || (Re.value = e), S("update:inspectorWidth", e);
|
|
24669
|
+
}
|
|
24670
|
+
let Ve = s(() => {
|
|
24671
|
+
let e = ze.value;
|
|
24672
|
+
if (!(!b.resizable || !_e.value || e == null)) return { "--nb-shell-inspector-width": `${Ie(e)}px` };
|
|
24673
|
+
}), He = s(() => {
|
|
24674
|
+
let e = ze.value;
|
|
24675
|
+
if (e != null) return Ie(e);
|
|
24676
|
+
if (b.inspectorExpanded) return Math.round(Pe.value * .5);
|
|
24677
|
+
let t = Me[b.inspectorSize], n = t == null ? Ne[b.inspectorSize] ?? o5 : Pe.value * t;
|
|
24678
|
+
return Math.round(b.inspectorSize === "xl" ? n : Math.min(n, Fe.value));
|
|
24679
|
+
}), Ue = s(() => Math.round(Math.max(Fe.value, He.value))), We = s(() => He.value);
|
|
24680
|
+
function Ge() {
|
|
24681
|
+
return He.value;
|
|
24661
24682
|
}
|
|
24662
|
-
|
|
24663
|
-
|
|
24664
|
-
Pe || (Fe.value = e), x("update:inspectorWidth", e);
|
|
24665
|
-
}
|
|
24666
|
-
let Re = s(() => {
|
|
24667
|
-
let e = Ie.value;
|
|
24668
|
-
if (!(!b.resizable || !me.value || e == null)) return { "--nb-shell-inspector-width": `${Ne(e)}px` };
|
|
24669
|
-
}), ze = s(() => {
|
|
24670
|
-
let e = Ie.value;
|
|
24671
|
-
if (e != null) return Ne(e);
|
|
24672
|
-
if (b.inspectorExpanded) return Math.round(je.value * .5);
|
|
24673
|
-
let t = ke[b.inspectorSize], n = t == null ? Ae[b.inspectorSize] ?? o5 : je.value * t;
|
|
24674
|
-
return Math.round(b.inspectorSize === "xl" ? n : Math.min(n, Me.value));
|
|
24675
|
-
}), Be = s(() => Math.round(Math.max(Me.value, ze.value))), Ve = s(() => ze.value);
|
|
24676
|
-
function He() {
|
|
24677
|
-
return ze.value;
|
|
24678
|
-
}
|
|
24679
|
-
function Ue(e) {
|
|
24680
|
-
let t = De.value;
|
|
24683
|
+
function Ke(e) {
|
|
24684
|
+
let t = Ae.value;
|
|
24681
24685
|
if (!t) return;
|
|
24682
24686
|
let n = t.getBoundingClientRect().right;
|
|
24683
|
-
|
|
24687
|
+
Be(Ie(n - e.clientX));
|
|
24684
24688
|
}
|
|
24685
|
-
function
|
|
24686
|
-
|
|
24689
|
+
function qe() {
|
|
24690
|
+
je.value = !1, window.removeEventListener("pointermove", Ke), window.removeEventListener("pointerup", qe), window.removeEventListener("pointercancel", qe);
|
|
24687
24691
|
}
|
|
24688
|
-
function
|
|
24689
|
-
b.resizable && (e.preventDefault(),
|
|
24692
|
+
function Je(e) {
|
|
24693
|
+
b.resizable && (e.preventDefault(), je.value = !0, window.addEventListener("pointermove", Ke), window.addEventListener("pointerup", qe), window.addEventListener("pointercancel", qe));
|
|
24690
24694
|
}
|
|
24691
|
-
function
|
|
24692
|
-
|
|
24695
|
+
function Ye() {
|
|
24696
|
+
Be(null);
|
|
24693
24697
|
}
|
|
24694
|
-
function
|
|
24698
|
+
function Xe(e) {
|
|
24695
24699
|
if (!b.resizable) return;
|
|
24696
|
-
let t = e.shiftKey ?
|
|
24700
|
+
let t = e.shiftKey ? Y3t : J3t, n;
|
|
24697
24701
|
switch (e.key) {
|
|
24698
24702
|
case "ArrowLeft":
|
|
24699
|
-
n =
|
|
24703
|
+
n = Ge() + t;
|
|
24700
24704
|
break;
|
|
24701
24705
|
case "ArrowRight":
|
|
24702
|
-
n =
|
|
24706
|
+
n = Ge() - t;
|
|
24703
24707
|
break;
|
|
24704
24708
|
case "Home":
|
|
24705
24709
|
n = o5;
|
|
24706
24710
|
break;
|
|
24707
24711
|
case "End":
|
|
24708
|
-
n =
|
|
24712
|
+
n = Fe.value;
|
|
24709
24713
|
break;
|
|
24710
24714
|
case "Enter":
|
|
24711
24715
|
case " ":
|
|
@@ -24713,37 +24717,37 @@ var D3t = /* @__PURE__ */ _({
|
|
|
24713
24717
|
break;
|
|
24714
24718
|
default: return;
|
|
24715
24719
|
}
|
|
24716
|
-
e.preventDefault(),
|
|
24720
|
+
e.preventDefault(), Be(n == null ? null : Ie(n));
|
|
24717
24721
|
}
|
|
24718
24722
|
return A(() => {
|
|
24719
|
-
typeof window > "u" || (
|
|
24723
|
+
typeof window > "u" || (k.value = window.innerWidth, window.addEventListener("resize", N, { passive: !0 }), b.resizable && z());
|
|
24720
24724
|
}), Y(() => b.collapseAt, () => {
|
|
24721
|
-
typeof window < "u" && (
|
|
24722
|
-
}), Y(() => b.resizable, (e) => e ?
|
|
24723
|
-
|
|
24725
|
+
typeof window < "u" && (k.value = window.innerWidth);
|
|
24726
|
+
}), Y(() => b.resizable, (e) => e ? z() : L()), O(() => {
|
|
24727
|
+
qe(), L(), typeof window < "u" && window.removeEventListener("resize", N);
|
|
24724
24728
|
}), t({
|
|
24725
|
-
mainEl:
|
|
24726
|
-
sidebarEl:
|
|
24727
|
-
inspectorEl:
|
|
24728
|
-
focusMain: () =>
|
|
24729
|
-
setSidebarOpen:
|
|
24730
|
-
setInspectorVisible:
|
|
24731
|
-
}), (t, n) => (P(), d("div", C({ class: "nb-shell" }, K(
|
|
24729
|
+
mainEl: Ce,
|
|
24730
|
+
sidebarEl: ue,
|
|
24731
|
+
inspectorEl: Ae,
|
|
24732
|
+
focusMain: () => Ce.value?.focus(),
|
|
24733
|
+
setSidebarOpen: Q,
|
|
24734
|
+
setInspectorVisible: ye
|
|
24735
|
+
}), (t, n) => (P(), d("div", C({ class: "nb-shell" }, K(Oe), {
|
|
24732
24736
|
class: [
|
|
24733
24737
|
{ "nb-shell--no-sidebar": !y.value },
|
|
24734
24738
|
y.value ? `nb-shell--sidebar-${e.sidebarVariant}` : null,
|
|
24735
24739
|
{
|
|
24736
|
-
"nb-shell--collapsed":
|
|
24737
|
-
"nb-shell--drawer-open":
|
|
24740
|
+
"nb-shell--collapsed": V.value,
|
|
24741
|
+
"nb-shell--drawer-open": V.value && ie.value
|
|
24738
24742
|
}
|
|
24739
24743
|
],
|
|
24740
|
-
onKeydown: ce(
|
|
24744
|
+
onKeydown: ce(pe, ["esc"])
|
|
24741
24745
|
}), [
|
|
24742
24746
|
e.skipToContent ? (P(), d("a", {
|
|
24743
24747
|
key: 0,
|
|
24744
24748
|
class: "nb-shell__skip-link",
|
|
24745
|
-
href: `#${
|
|
24746
|
-
onClick:
|
|
24749
|
+
href: `#${Te.value}`,
|
|
24750
|
+
onClick: Ee
|
|
24747
24751
|
}, U(e.skipToContentLabel), 9, O3t)) : u("", !0),
|
|
24748
24752
|
g("outer-menu") ? (P(), d("div", {
|
|
24749
24753
|
key: 1,
|
|
@@ -24753,24 +24757,24 @@ var D3t = /* @__PURE__ */ _({
|
|
|
24753
24757
|
f("div", k3t, [
|
|
24754
24758
|
y.value ? (P(), d("nav", {
|
|
24755
24759
|
key: 0,
|
|
24756
|
-
id:
|
|
24760
|
+
id: Z.value,
|
|
24757
24761
|
ref_key: "sidebarRef",
|
|
24758
|
-
ref:
|
|
24762
|
+
ref: ue,
|
|
24759
24763
|
class: "nb-shell__sidebar",
|
|
24760
24764
|
"aria-label": e.sidebarLabel,
|
|
24761
|
-
tabindex:
|
|
24762
|
-
inert:
|
|
24763
|
-
"aria-hidden":
|
|
24765
|
+
tabindex: V.value ? -1 : void 0,
|
|
24766
|
+
inert: fe.value || void 0,
|
|
24767
|
+
"aria-hidden": fe.value || void 0
|
|
24764
24768
|
}, [
|
|
24765
24769
|
f("div", j3t, [B(t.$slots, "sidebar-logo", {}, void 0, !0)]),
|
|
24766
24770
|
f("div", M3t, [B(t.$slots, "sidebar-nav", {}, void 0, !0)]),
|
|
24767
|
-
n[
|
|
24771
|
+
n[4] ||= f("div", { class: "nb-shell__sidebar-spacer" }, null, -1),
|
|
24768
24772
|
f("div", N3t, [B(t.$slots, "sidebar-bottom", {}, void 0, !0)])
|
|
24769
24773
|
], 8, A3t)) : u("", !0),
|
|
24770
|
-
y.value &&
|
|
24774
|
+
y.value && V.value && ie.value ? (P(), d("div", {
|
|
24771
24775
|
key: 1,
|
|
24772
24776
|
class: "nb-shell__scrim",
|
|
24773
|
-
onClick: n[0] ||= (e) =>
|
|
24777
|
+
onClick: n[0] ||= (e) => Q(!1)
|
|
24774
24778
|
})) : u("", !0),
|
|
24775
24779
|
f("div", P3t, [g("inner-menu") ? (P(), d("div", {
|
|
24776
24780
|
key: 0,
|
|
@@ -24778,8 +24782,8 @@ var D3t = /* @__PURE__ */ _({
|
|
|
24778
24782
|
class: T(["nb-shell__inner-menu", _("inner-menu")])
|
|
24779
24783
|
}, [B(t.$slots, "inner-menu", {}, void 0, !0)], 2)) : u("", !0), f("div", F3t, [f("div", {
|
|
24780
24784
|
class: "nb-shell__body",
|
|
24781
|
-
inert:
|
|
24782
|
-
"aria-hidden":
|
|
24785
|
+
inert: Se.value || void 0,
|
|
24786
|
+
"aria-hidden": Se.value || void 0
|
|
24783
24787
|
}, [
|
|
24784
24788
|
g("notification") ? (P(), d("div", {
|
|
24785
24789
|
key: 0,
|
|
@@ -24787,18 +24791,18 @@ var D3t = /* @__PURE__ */ _({
|
|
|
24787
24791
|
class: T(["nb-shell__notification", _("notification")])
|
|
24788
24792
|
}, [B(t.$slots, "notification", {}, void 0, !0)], 2)) : u("", !0),
|
|
24789
24793
|
i("menubar") ? (P(), d("div", L3t, [B(t.$slots, "menubar", {}, void 0, !0)])) : u("", !0),
|
|
24790
|
-
|
|
24791
|
-
|
|
24794
|
+
De.value ? (P(), d("div", R3t, [
|
|
24795
|
+
de.value ? (P(), d("button", {
|
|
24792
24796
|
key: 0,
|
|
24793
24797
|
ref_key: "navToggleRef",
|
|
24794
|
-
ref:
|
|
24798
|
+
ref: le,
|
|
24795
24799
|
type: "button",
|
|
24796
24800
|
class: "nb-shell__nav-toggle",
|
|
24797
24801
|
"aria-label": e.navToggleLabel,
|
|
24798
|
-
"aria-expanded":
|
|
24799
|
-
"aria-controls":
|
|
24800
|
-
onClick: n[1] ||= (e) =>
|
|
24801
|
-
}, [...n[
|
|
24802
|
+
"aria-expanded": ie.value,
|
|
24803
|
+
"aria-controls": Z.value,
|
|
24804
|
+
onClick: n[1] ||= (e) => Q(!ie.value)
|
|
24805
|
+
}, [...n[5] ||= [f("span", {
|
|
24802
24806
|
class: "nb-shell__nav-toggle-glyph",
|
|
24803
24807
|
"aria-hidden": "true"
|
|
24804
24808
|
}, [
|
|
@@ -24820,75 +24824,87 @@ var D3t = /* @__PURE__ */ _({
|
|
|
24820
24824
|
ref: m("fixedbar"),
|
|
24821
24825
|
class: "nb-shell__fixedbar"
|
|
24822
24826
|
}, [B(t.$slots, "fixedbar", {}, void 0, !0)], 512)) : u("", !0),
|
|
24823
|
-
|
|
24824
|
-
|
|
24827
|
+
V.value && g("contextbar") ? (P(), d("button", {
|
|
24828
|
+
key: 4,
|
|
24829
|
+
type: "button",
|
|
24830
|
+
class: "nb-shell__contextbar-toggle",
|
|
24831
|
+
"aria-expanded": x.value,
|
|
24832
|
+
onClick: n[2] ||= (e) => x.value = !x.value
|
|
24833
|
+
}, [f("span", null, U(e.contextbarLabel), 1), f("span", V3t, U(x.value ? "▾" : "▸"), 1)], 8, B3t)) : u("", !0),
|
|
24834
|
+
f("div", H3t, [g("contextbar") ? se((P(), d("aside", {
|
|
24835
|
+
key: 0,
|
|
24836
|
+
ref: m("contextbar"),
|
|
24837
|
+
class: T(["nb-shell__contextbar", _("contextbar")]),
|
|
24838
|
+
"aria-label": e.contextbarLabel
|
|
24839
|
+
}, [B(t.$slots, "contextbar", {}, void 0, !0)], 10, U3t)), [[oe, !V.value || x.value]]) : u("", !0), f("main", C({
|
|
24840
|
+
id: Te.value,
|
|
24825
24841
|
ref_key: "mainRef",
|
|
24826
|
-
ref:
|
|
24842
|
+
ref: Ce,
|
|
24827
24843
|
tabindex: "-1",
|
|
24828
24844
|
class: ["nb-shell__main", { "nb-shell__main--no-padding": !e.mainPadding }]
|
|
24829
|
-
}, K(
|
|
24845
|
+
}, K(ke)), [h(D3t, { level: 1 }, {
|
|
24830
24846
|
default: X(() => [B(t.$slots, "default", {}, void 0, !0)]),
|
|
24831
24847
|
_: 3
|
|
24832
|
-
})], 16,
|
|
24848
|
+
})], 16, W3t)]),
|
|
24833
24849
|
g("bottom") ? (P(), d("div", {
|
|
24834
|
-
key:
|
|
24850
|
+
key: 5,
|
|
24835
24851
|
ref: m("bottom"),
|
|
24836
24852
|
class: "nb-shell__bottom"
|
|
24837
24853
|
}, [B(t.$slots, "bottom", {}, void 0, !0)], 512)) : u("", !0)
|
|
24838
24854
|
], 8, I3t), f("aside", {
|
|
24839
24855
|
ref_key: "inspectorRef",
|
|
24840
|
-
ref:
|
|
24856
|
+
ref: Ae,
|
|
24841
24857
|
class: T(["nb-shell__inspector", {
|
|
24842
|
-
"nb-shell__inspector--visible":
|
|
24843
|
-
"nb-shell__inspector--expanded":
|
|
24844
|
-
[`nb-shell__inspector--${e.inspectorSize}`]:
|
|
24845
|
-
"nb-shell__inspector--resizing":
|
|
24846
|
-
"nb-shell__inspector--overlay":
|
|
24858
|
+
"nb-shell__inspector--visible": _e.value,
|
|
24859
|
+
"nb-shell__inspector--expanded": _e.value && e.inspectorExpanded,
|
|
24860
|
+
[`nb-shell__inspector--${e.inspectorSize}`]: _e.value,
|
|
24861
|
+
"nb-shell__inspector--resizing": je.value,
|
|
24862
|
+
"nb-shell__inspector--overlay": ve.value
|
|
24847
24863
|
}]),
|
|
24848
24864
|
"aria-label": e.inspectorLabel,
|
|
24849
|
-
inert: !
|
|
24850
|
-
"aria-hidden": !
|
|
24851
|
-
style: E(
|
|
24865
|
+
inert: !_e.value || void 0,
|
|
24866
|
+
"aria-hidden": !_e.value || void 0,
|
|
24867
|
+
style: E(Ve.value)
|
|
24852
24868
|
}, [
|
|
24853
|
-
|
|
24869
|
+
ve.value ? (P(), d("button", {
|
|
24854
24870
|
key: 0,
|
|
24855
24871
|
ref_key: "inspectorDismissRef",
|
|
24856
|
-
ref:
|
|
24872
|
+
ref: be,
|
|
24857
24873
|
type: "button",
|
|
24858
24874
|
class: "nb-shell__inspector-dismiss",
|
|
24859
24875
|
"aria-label": e.inspectorCloseLabel,
|
|
24860
|
-
onClick: n[
|
|
24861
|
-
}, [...n[
|
|
24876
|
+
onClick: n[3] ||= (e) => ye(!1)
|
|
24877
|
+
}, [...n[6] ||= [f("span", {
|
|
24862
24878
|
class: "nb-shell__inspector-dismiss-glyph",
|
|
24863
24879
|
"aria-hidden": "true"
|
|
24864
|
-
}, "×", -1)]], 8,
|
|
24865
|
-
e.resizable &&
|
|
24880
|
+
}, "×", -1)]], 8, K3t)) : u("", !0),
|
|
24881
|
+
e.resizable && _e.value && !V.value ? (P(), d("div", {
|
|
24866
24882
|
key: 1,
|
|
24867
24883
|
class: "nb-shell__inspector-resize",
|
|
24868
24884
|
role: "separator",
|
|
24869
24885
|
tabindex: "0",
|
|
24870
24886
|
"aria-orientation": "vertical",
|
|
24871
24887
|
"aria-label": `Resize ${e.inspectorLabel}`,
|
|
24872
|
-
"aria-valuenow":
|
|
24888
|
+
"aria-valuenow": We.value,
|
|
24873
24889
|
"aria-valuemin": o5,
|
|
24874
|
-
"aria-valuemax":
|
|
24890
|
+
"aria-valuemax": Ue.value,
|
|
24875
24891
|
title: "Drag or use the arrow keys to resize, Enter or double-click to reset",
|
|
24876
|
-
onPointerdown:
|
|
24877
|
-
onDblclick:
|
|
24878
|
-
onKeydown:
|
|
24879
|
-
}, null, 40,
|
|
24892
|
+
onPointerdown: Je,
|
|
24893
|
+
onDblclick: Ye,
|
|
24894
|
+
onKeydown: Xe
|
|
24895
|
+
}, null, 40, q3t)) : u("", !0),
|
|
24880
24896
|
B(t.$slots, "inspector", {}, void 0, !0)
|
|
24881
|
-
], 14,
|
|
24897
|
+
], 14, G3t)])])
|
|
24882
24898
|
])
|
|
24883
24899
|
], 16));
|
|
24884
24900
|
}
|
|
24885
|
-
}), [["__scopeId", "data-v-
|
|
24901
|
+
}), [["__scopeId", "data-v-eea96bce"]]), X3t = {
|
|
24886
24902
|
key: 0,
|
|
24887
24903
|
class: "nb-sidebar-brand__icon"
|
|
24888
|
-
},
|
|
24904
|
+
}, Z3t = {
|
|
24889
24905
|
key: 1,
|
|
24890
24906
|
class: "nb-sidebar-brand__text"
|
|
24891
|
-
},
|
|
24907
|
+
}, Q3t = { class: "nb-sidebar-brand__title" }, $3t = {
|
|
24892
24908
|
key: 0,
|
|
24893
24909
|
class: "nb-sidebar-brand__subtitle"
|
|
24894
24910
|
}, c5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
@@ -24900,11 +24916,11 @@ var D3t = /* @__PURE__ */ _({
|
|
|
24900
24916
|
},
|
|
24901
24917
|
setup(e) {
|
|
24902
24918
|
let t = x("nb-shell-sidebar-variant", R("verbose")), n = s(() => t.value);
|
|
24903
|
-
return (t, r) => (P(), d("div", { class: T(["nb-sidebar-brand", [`nb-sidebar-brand--${n.value}`]]) }, [e.icon || t.$slots.icon ? (P(), d("div",
|
|
24919
|
+
return (t, r) => (P(), d("div", { class: T(["nb-sidebar-brand", [`nb-sidebar-brand--${n.value}`]]) }, [e.icon || t.$slots.icon ? (P(), d("div", X3t, [B(t.$slots, "icon", {}, () => [e.icon ? (P(), l(l2, {
|
|
24904
24920
|
key: 0,
|
|
24905
24921
|
name: e.icon,
|
|
24906
24922
|
size: 24
|
|
24907
|
-
}, null, 8, ["name"])) : u("", !0)], !0)])) : u("", !0), n.value === "verbose" ? (P(), d("div",
|
|
24923
|
+
}, null, 8, ["name"])) : u("", !0)], !0)])) : u("", !0), n.value === "verbose" ? (P(), d("div", Z3t, [f("span", Q3t, U(e.title), 1), e.subtitle ? (P(), d("span", $3t, U(e.subtitle), 1)) : u("", !0)])) : u("", !0)], 2));
|
|
24908
24924
|
}
|
|
24909
24925
|
}), [["__scopeId", "data-v-228349ba"]]), l5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
24910
24926
|
__name: "SidebarLink",
|
|
@@ -24964,10 +24980,10 @@ var D3t = /* @__PURE__ */ _({
|
|
|
24964
24980
|
role: "menu"
|
|
24965
24981
|
}, [B(t.$slots, "default", {}, void 0, !0)], 2));
|
|
24966
24982
|
}
|
|
24967
|
-
}), [["__scopeId", "data-v-c4f3a040"]]),
|
|
24983
|
+
}), [["__scopeId", "data-v-c4f3a040"]]), e6t = { class: "nb-sidebar-menu-group__label" }, t6t = {
|
|
24968
24984
|
class: "nb-sidebar-menu-group__items",
|
|
24969
24985
|
role: "group"
|
|
24970
|
-
},
|
|
24986
|
+
}, n6t = ["aria-label"], r6t = ["aria-label"], d5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
24971
24987
|
__name: "SidebarMenuGroup",
|
|
24972
24988
|
props: {
|
|
24973
24989
|
label: {},
|
|
@@ -24991,7 +25007,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
24991
25007
|
"aria-expanded": e.collapsible ? !a.value : void 0,
|
|
24992
25008
|
onClick: r[0] ||= (t) => e.collapsible ? a.value = !a.value : void 0
|
|
24993
25009
|
}, {
|
|
24994
|
-
default: X(() => [f("span",
|
|
25010
|
+
default: X(() => [f("span", e6t, U(e.label), 1), e.collapsible ? (P(), l(l2, {
|
|
24995
25011
|
key: 0,
|
|
24996
25012
|
class: T(["nb-sidebar-menu-group__caret", { "nb-sidebar-menu-group__caret--collapsed": a.value }]),
|
|
24997
25013
|
name: "caret-down",
|
|
@@ -25002,26 +25018,26 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25002
25018
|
"class",
|
|
25003
25019
|
"type",
|
|
25004
25020
|
"aria-expanded"
|
|
25005
|
-
])), se(f("ul",
|
|
25021
|
+
])), se(f("ul", t6t, [B(t.$slots, "default", {}, void 0, !0)], 512), [[oe, !a.value]])], 64)) : (P(), d(n, { key: 1 }, [f("hr", {
|
|
25006
25022
|
class: "nb-sidebar-menu-group__divider",
|
|
25007
25023
|
"aria-label": e.label
|
|
25008
|
-
}, null, 8,
|
|
25024
|
+
}, null, 8, n6t), f("ul", {
|
|
25009
25025
|
class: "nb-sidebar-menu-group__items",
|
|
25010
25026
|
role: "group",
|
|
25011
25027
|
"aria-label": e.label
|
|
25012
|
-
}, [B(t.$slots, "default", {}, void 0, !0)], 8,
|
|
25028
|
+
}, [B(t.$slots, "default", {}, void 0, !0)], 8, r6t)], 64))], 2));
|
|
25013
25029
|
}
|
|
25014
|
-
}), [["__scopeId", "data-v-45861739"]]),
|
|
25030
|
+
}), [["__scopeId", "data-v-45861739"]]), i6t = /* @__PURE__ */ _({
|
|
25015
25031
|
__name: "SidebarVariantScope",
|
|
25016
25032
|
props: { variant: {} },
|
|
25017
25033
|
setup(e) {
|
|
25018
25034
|
return F("nb-shell-sidebar-variant", W(e, "variant")), (e, t) => B(e.$slots, "default");
|
|
25019
25035
|
}
|
|
25020
|
-
}),
|
|
25036
|
+
}), a6t = { class: "nb-sidebar-menu-item__label" }, o6t = ["title"], s6t = {
|
|
25021
25037
|
key: 0,
|
|
25022
25038
|
class: "nb-sidebar-menu-item__children",
|
|
25023
25039
|
role: "group"
|
|
25024
|
-
},
|
|
25040
|
+
}, c6t = { class: "nb-sidebar-menu-item__flyout-header" }, l6t = { class: "nb-sidebar-menu-item__flyout-label" }, u6t = { class: "nb-sidebar-menu-item__flyout-children" }, f5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
25025
25041
|
__name: "SidebarMenuItem",
|
|
25026
25042
|
props: {
|
|
25027
25043
|
label: {},
|
|
@@ -25123,7 +25139,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25123
25139
|
name: e.icon,
|
|
25124
25140
|
size: c.value === "compact" ? 18 : 16
|
|
25125
25141
|
}, null, 8, ["name", "size"])) : u("", !0), c.value === "verbose" ? (P(), d(n, { key: 1 }, [
|
|
25126
|
-
f("span",
|
|
25142
|
+
f("span", a6t, U(e.label), 1),
|
|
25127
25143
|
e.badge === void 0 ? u("", !0) : (P(), d("span", {
|
|
25128
25144
|
key: 0,
|
|
25129
25145
|
class: T(["nb-sidebar-menu-item__badge", [`nb-sidebar-menu-item__badge--${e.badgeVariant}`]])
|
|
@@ -25138,7 +25154,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25138
25154
|
key: 2,
|
|
25139
25155
|
class: T(["nb-sidebar-menu-item__badge-dot", [`nb-sidebar-menu-item__badge-dot--${e.badgeVariant}`]]),
|
|
25140
25156
|
title: String(e.badge)
|
|
25141
|
-
}, null, 10,
|
|
25157
|
+
}, null, 10, o6t))]),
|
|
25142
25158
|
_: 1
|
|
25143
25159
|
}, 8, [
|
|
25144
25160
|
"class",
|
|
@@ -25150,7 +25166,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25150
25166
|
"aria-expanded",
|
|
25151
25167
|
"aria-label"
|
|
25152
25168
|
])),
|
|
25153
|
-
m.value && c.value === "verbose" ? se((P(), d("ul",
|
|
25169
|
+
m.value && c.value === "verbose" ? se((P(), d("ul", s6t, [B(t.$slots, "default", {}, void 0, !0)], 512)), [[oe, h.value]]) : u("", !0),
|
|
25154
25170
|
c.value === "compact" && w.value ? (P(), l(r, {
|
|
25155
25171
|
key: 1,
|
|
25156
25172
|
to: "body"
|
|
@@ -25159,22 +25175,22 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25159
25175
|
style: E(D.value),
|
|
25160
25176
|
onMouseenter: N,
|
|
25161
25177
|
onMouseleave: F
|
|
25162
|
-
}, [f("div",
|
|
25178
|
+
}, [f("div", c6t, [f("span", l6t, U(e.label), 1), e.badge === void 0 ? u("", !0) : (P(), d("span", {
|
|
25163
25179
|
key: 0,
|
|
25164
25180
|
class: T(["nb-sidebar-menu-item__badge", [`nb-sidebar-menu-item__badge--${e.badgeVariant}`]])
|
|
25165
|
-
}, U(e.badge), 3))]), m.value ? (P(), l(
|
|
25181
|
+
}, U(e.badge), 3))]), m.value ? (P(), l(i6t, {
|
|
25166
25182
|
key: 0,
|
|
25167
25183
|
variant: "verbose"
|
|
25168
25184
|
}, {
|
|
25169
|
-
default: X(() => [f("ul",
|
|
25185
|
+
default: X(() => [f("ul", u6t, [B(t.$slots, "default", {}, void 0, !0)])]),
|
|
25170
25186
|
_: 3
|
|
25171
25187
|
})) : u("", !0)], 36)])) : u("", !0)
|
|
25172
25188
|
], 34));
|
|
25173
25189
|
}
|
|
25174
|
-
}), [["__scopeId", "data-v-2e44065f"]]),
|
|
25190
|
+
}), [["__scopeId", "data-v-2e44065f"]]), d6t = { class: "nb-slider__field-box" }, f6t = {
|
|
25175
25191
|
key: 0,
|
|
25176
25192
|
class: "nb-slider__inner-header"
|
|
25177
|
-
},
|
|
25193
|
+
}, p6t = { class: "nb-slider__inner-label" }, m6t = { class: "nb-slider__track-labels" }, h6t = { class: "nb-slider__track-label" }, g6t = { class: "nb-slider__track-label" }, p5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
25178
25194
|
__name: "Slider",
|
|
25179
25195
|
props: {
|
|
25180
25196
|
modelValue: {},
|
|
@@ -25345,7 +25361,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25345
25361
|
default: X(() => [m(U(e.label), 1)]),
|
|
25346
25362
|
_: 1
|
|
25347
25363
|
})) : u("", !0),
|
|
25348
|
-
f("div",
|
|
25364
|
+
f("div", d6t, [e.variant === "fluid" && e.label ? (P(), d("div", f6t, [f("label", p6t, U(e.label), 1)])) : u("", !0), h(s, {
|
|
25349
25365
|
dir: "row",
|
|
25350
25366
|
align: "center",
|
|
25351
25367
|
gap: "sm",
|
|
@@ -25407,7 +25423,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25407
25423
|
style: E({ left: `${b(c.value)}%` }),
|
|
25408
25424
|
onMousedown: r[0] ||= Z((e) => te(null, e), ["stop"]),
|
|
25409
25425
|
onTouchstartPassive: r[1] ||= Z((e) => q(null, e), ["stop"])
|
|
25410
|
-
}, null, 36))], 544), f("div",
|
|
25426
|
+
}, null, 36))], 544), f("div", m6t, [f("span", h6t, U(e.min), 1), f("span", g6t, U(e.max), 1)])]),
|
|
25411
25427
|
_: 1
|
|
25412
25428
|
}, 8, ["class"]),
|
|
25413
25429
|
e.showInput ? (P(), l(o, {
|
|
@@ -25463,7 +25479,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25463
25479
|
return e.Small = "sm", e.Medium = "md", e;
|
|
25464
25480
|
}(h5 || {}), g5 = /* @__PURE__ */ function(e) {
|
|
25465
25481
|
return e.Complete = "complete", e.Current = "current", e.Incomplete = "incomplete", e.Disabled = "disabled", e.Invalid = "invalid", e;
|
|
25466
|
-
}(g5 || {}), _5 = Symbol("NB_STEPPER_CONTEXT"),
|
|
25482
|
+
}(g5 || {}), _5 = Symbol("NB_STEPPER_CONTEXT"), _6t = ["id"], v6t = ["aria-label"], y6t = {
|
|
25467
25483
|
class: "nb-stepper__announcement",
|
|
25468
25484
|
role: "status",
|
|
25469
25485
|
"aria-live": "polite"
|
|
@@ -25656,17 +25672,17 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25656
25672
|
onKeydown: V,
|
|
25657
25673
|
onFocusin: E,
|
|
25658
25674
|
onFocusout: D
|
|
25659
|
-
}, [B(t.$slots, "default", {}, void 0, !0)], 40,
|
|
25675
|
+
}, [B(t.$slots, "default", {}, void 0, !0)], 40, v6t), f("p", y6t, U(M.value), 1)], 10, _6t));
|
|
25660
25676
|
}
|
|
25661
|
-
}), [["__scopeId", "data-v-40496e58"]]),
|
|
25677
|
+
}), [["__scopeId", "data-v-40496e58"]]), b6t = [
|
|
25662
25678
|
"data-nb-step",
|
|
25663
25679
|
"data-status",
|
|
25664
25680
|
"data-orientation",
|
|
25665
25681
|
"aria-current"
|
|
25666
|
-
],
|
|
25682
|
+
], x6t = {
|
|
25667
25683
|
class: "nb-stepper__marker",
|
|
25668
25684
|
"aria-hidden": "true"
|
|
25669
|
-
},
|
|
25685
|
+
}, S6t = { class: "nb-stepper__text" }, C6t = ["id"], w6t = ["id"], T6t = ["id"], y5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
25670
25686
|
__name: "StepperStep",
|
|
25671
25687
|
props: {
|
|
25672
25688
|
label: { default: "" },
|
|
@@ -25714,38 +25730,38 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25714
25730
|
"aria-labelledby": b.value,
|
|
25715
25731
|
"aria-describedby": D.value
|
|
25716
25732
|
} : {}, { onClick: F }), {
|
|
25717
|
-
default: X(() => [f("span",
|
|
25733
|
+
default: X(() => [f("span", x6t, [A.value ? (P(), l(l2, {
|
|
25718
25734
|
key: 0,
|
|
25719
25735
|
name: A.value,
|
|
25720
25736
|
size: j.value
|
|
25721
|
-
}, null, 8, ["name", "size"])) : (P(), d(n, { key: 1 }, [m(U(_.value), 1)], 64))]), f("span",
|
|
25737
|
+
}, null, 8, ["name", "size"])) : (P(), d(n, { key: 1 }, [m(U(_.value), 1)], 64))]), f("span", S6t, [
|
|
25722
25738
|
f("span", {
|
|
25723
25739
|
id: b.value,
|
|
25724
25740
|
class: "nb-stepper__label"
|
|
25725
|
-
}, [B(t.$slots, "label", {}, () => [m(U(e.label), 1)], !0)], 8,
|
|
25741
|
+
}, [B(t.$slots, "label", {}, () => [m(U(e.label), 1)], !0)], 8, C6t),
|
|
25726
25742
|
e.description || t.$slots.description ? (P(), d("span", {
|
|
25727
25743
|
key: 0,
|
|
25728
25744
|
id: S.value,
|
|
25729
25745
|
class: "nb-stepper__description"
|
|
25730
|
-
}, [B(t.$slots, "description", {}, () => [m(U(e.description), 1)], !0)], 8,
|
|
25746
|
+
}, [B(t.$slots, "description", {}, () => [m(U(e.description), 1)], !0)], 8, w6t)) : u("", !0),
|
|
25731
25747
|
f("span", {
|
|
25732
25748
|
id: w.value,
|
|
25733
25749
|
class: "nb-stepper__status"
|
|
25734
|
-
}, U(y.value), 9,
|
|
25750
|
+
}, U(y.value), 9, T6t)
|
|
25735
25751
|
])]),
|
|
25736
25752
|
_: 3
|
|
25737
25753
|
}, 16, ["id"])), i[0] ||= f("span", {
|
|
25738
25754
|
class: "nb-stepper__line",
|
|
25739
25755
|
"aria-hidden": "true"
|
|
25740
|
-
}, null, -1)], 10,
|
|
25756
|
+
}, null, -1)], 10, b6t));
|
|
25741
25757
|
}
|
|
25742
|
-
}), [["__scopeId", "data-v-7354dbfa"]]),
|
|
25758
|
+
}), [["__scopeId", "data-v-7354dbfa"]]), E6t = [
|
|
25743
25759
|
"id",
|
|
25744
25760
|
"value",
|
|
25745
25761
|
"aria-label",
|
|
25746
25762
|
"placeholder",
|
|
25747
25763
|
"onKeydown"
|
|
25748
|
-
],
|
|
25764
|
+
], D6t = [
|
|
25749
25765
|
"id",
|
|
25750
25766
|
"aria-label",
|
|
25751
25767
|
"disabled"
|
|
@@ -25799,7 +25815,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25799
25815
|
onInput: h,
|
|
25800
25816
|
onBlur: g,
|
|
25801
25817
|
onKeydown: [ce(Z(g, ["prevent"]), ["enter"]), ce(Z(_, ["prevent"]), ["esc"])]
|
|
25802
|
-
}, null, 42,
|
|
25818
|
+
}, null, 42, E6t)) : (P(), d("button", {
|
|
25803
25819
|
key: 1,
|
|
25804
25820
|
id: e.id,
|
|
25805
25821
|
type: "button",
|
|
@@ -25812,11 +25828,11 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25812
25828
|
class: "nb-inline-edit__pencil",
|
|
25813
25829
|
name: "pencil-simple",
|
|
25814
25830
|
size: p.value
|
|
25815
|
-
}, null, 8, ["size"]))], 10,
|
|
25831
|
+
}, null, 8, ["size"]))], 10, D6t));
|
|
25816
25832
|
}
|
|
25817
25833
|
}), [["__scopeId", "data-v-850158b8"]]), x5 = /* @__PURE__ */ function(e) {
|
|
25818
25834
|
return e.Inactive = "inactive", e.Active = "active", e.Finished = "finished", e.Error = "error", e;
|
|
25819
|
-
}(x5 || {}),
|
|
25835
|
+
}(x5 || {}), O6t = ["id", "aria-live"], k6t = { class: "nb-inline-loading__text" }, S5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
25820
25836
|
__name: "InlineLoading",
|
|
25821
25837
|
props: {
|
|
25822
25838
|
status: { default: x5.Inactive },
|
|
@@ -25873,13 +25889,13 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25873
25889
|
name: p.value,
|
|
25874
25890
|
size: 16,
|
|
25875
25891
|
"aria-hidden": "true"
|
|
25876
|
-
}, null, 8, ["name"])) : u("", !0), f("span",
|
|
25892
|
+
}, null, 8, ["name"])) : u("", !0), f("span", k6t, [B(t.$slots, "default", {
|
|
25877
25893
|
status: e.status,
|
|
25878
25894
|
text: c.value
|
|
25879
|
-
}, () => [m(U(c.value), 1)], !0)])], 14,
|
|
25895
|
+
}, () => [m(U(c.value), 1)], !0)])], 14, O6t);
|
|
25880
25896
|
};
|
|
25881
25897
|
}
|
|
25882
|
-
}), [["__scopeId", "data-v-a0612353"]]),
|
|
25898
|
+
}), [["__scopeId", "data-v-a0612353"]]), A6t = ["stop-color"], j6t = ["stop-color"], M6t = ["d", "fill"], N6t = [
|
|
25883
25899
|
"d",
|
|
25884
25900
|
"stroke",
|
|
25885
25901
|
"stroke-width"
|
|
@@ -25944,17 +25960,17 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25944
25960
|
offset: "0%",
|
|
25945
25961
|
"stop-color": e.color,
|
|
25946
25962
|
"stop-opacity": "0.3"
|
|
25947
|
-
}, null, 8,
|
|
25963
|
+
}, null, 8, A6t), f("stop", {
|
|
25948
25964
|
offset: "100%",
|
|
25949
25965
|
"stop-color": e.color,
|
|
25950
25966
|
"stop-opacity": "0"
|
|
25951
|
-
}, null, 8,
|
|
25967
|
+
}, null, 8, j6t)])]),
|
|
25952
25968
|
e.fill && a.value.area ? (P(), d("path", {
|
|
25953
25969
|
key: 0,
|
|
25954
25970
|
d: a.value.area,
|
|
25955
25971
|
fill: `url(#${r})`,
|
|
25956
25972
|
stroke: "none"
|
|
25957
|
-
}, null, 8,
|
|
25973
|
+
}, null, 8, M6t)) : u("", !0),
|
|
25958
25974
|
a.value.line ? (P(), d("path", {
|
|
25959
25975
|
key: 1,
|
|
25960
25976
|
d: a.value.line,
|
|
@@ -25964,14 +25980,14 @@ var D3t = /* @__PURE__ */ _({
|
|
|
25964
25980
|
fill: "none",
|
|
25965
25981
|
"stroke-linecap": "round",
|
|
25966
25982
|
"stroke-linejoin": "round"
|
|
25967
|
-
}, null, 8,
|
|
25983
|
+
}, null, 8, N6t)) : u("", !0)
|
|
25968
25984
|
], 4));
|
|
25969
25985
|
}
|
|
25970
25986
|
}), [["__scopeId", "data-v-e796f74d"]]), E5 = /* @__PURE__ */ function(e) {
|
|
25971
25987
|
return e.Small = "sm", e.Medium = "md", e.Large = "lg", e;
|
|
25972
25988
|
}(E5 || {}), D5 = /* @__PURE__ */ function(e) {
|
|
25973
25989
|
return e.Primary = "primary", e.Secondary = "secondary", e;
|
|
25974
|
-
}(D5 || {}),
|
|
25990
|
+
}(D5 || {}), P6t = ["for"], F6t = [
|
|
25975
25991
|
"id",
|
|
25976
25992
|
"name",
|
|
25977
25993
|
"disabled"
|
|
@@ -26041,7 +26057,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
26041
26057
|
name: e.name,
|
|
26042
26058
|
type: "checkbox",
|
|
26043
26059
|
disabled: e.disabled
|
|
26044
|
-
}, null, 8,
|
|
26060
|
+
}, null, 8, F6t), [[re, t.value]]), s[2] ||= f("div", { class: "slider round" }, null, -1)], 16, P6t)]),
|
|
26045
26061
|
_: 1
|
|
26046
26062
|
}, 8, ["id", "class"]);
|
|
26047
26063
|
};
|
|
@@ -26050,7 +26066,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
26050
26066
|
return e.Line = "line", e.Contained = "contained", e;
|
|
26051
26067
|
}(k5 || {}), A5 = /* @__PURE__ */ function(e) {
|
|
26052
26068
|
return e.Small = "sm", e.Medium = "md", e.Large = "lg", e;
|
|
26053
|
-
}(A5 || {}),
|
|
26069
|
+
}(A5 || {}), I6t = ["aria-label"], L6t = [
|
|
26054
26070
|
"id",
|
|
26055
26071
|
"data-tab-id",
|
|
26056
26072
|
"aria-selected",
|
|
@@ -26058,7 +26074,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
26058
26074
|
"tabindex",
|
|
26059
26075
|
"disabled",
|
|
26060
26076
|
"onClick"
|
|
26061
|
-
],
|
|
26077
|
+
], R6t = { class: "nb-tabs__label" }, z6t = ["id", "aria-labelledby"], j5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
26062
26078
|
__name: "Tabs",
|
|
26063
26079
|
props: {
|
|
26064
26080
|
items: {},
|
|
@@ -26169,7 +26185,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
26169
26185
|
size: _.value,
|
|
26170
26186
|
class: "nb-tabs__icon"
|
|
26171
26187
|
}, null, 8, ["name", "size"])) : u("", !0),
|
|
26172
|
-
f("span",
|
|
26188
|
+
f("span", R6t, U(e.label), 1),
|
|
26173
26189
|
e.badge == null ? u("", !0) : (P(), l(a, {
|
|
26174
26190
|
key: 1,
|
|
26175
26191
|
size: "sm",
|
|
@@ -26178,23 +26194,23 @@ var D3t = /* @__PURE__ */ _({
|
|
|
26178
26194
|
default: X(() => [m(U(e.badge), 1)]),
|
|
26179
26195
|
_: 2
|
|
26180
26196
|
}, 1024))
|
|
26181
|
-
], 10,
|
|
26197
|
+
], 10, L6t))), 128))], 40, I6t), (P(!0), d(n, null, z(e.items, (e) => (P(), d(n, { key: `panel-${e.id}` }, [e.id === g.value && S(e.id) ? (P(), d("div", {
|
|
26182
26198
|
key: 0,
|
|
26183
26199
|
id: x(e.id),
|
|
26184
26200
|
class: "nb-tabs__panel",
|
|
26185
26201
|
role: "tabpanel",
|
|
26186
26202
|
"aria-labelledby": b(e.id),
|
|
26187
26203
|
tabindex: "0"
|
|
26188
|
-
}, [B(t.$slots, e.id, { item: e }, void 0, !0)], 8,
|
|
26204
|
+
}, [B(t.$slots, e.id, { item: e }, void 0, !0)], 8, z6t)) : u("", !0)], 64))), 128))], 2);
|
|
26189
26205
|
};
|
|
26190
26206
|
}
|
|
26191
|
-
}), [["__scopeId", "data-v-be3a9296"]]),
|
|
26207
|
+
}), [["__scopeId", "data-v-be3a9296"]]), B6t = ["role", "aria-live"], V6t = { class: "nb-toast__icon" }, H6t = { class: "nb-toast__body" }, U6t = {
|
|
26192
26208
|
key: 0,
|
|
26193
26209
|
class: "nb-toast__status"
|
|
26194
|
-
},
|
|
26210
|
+
}, W6t = {
|
|
26195
26211
|
key: 1,
|
|
26196
26212
|
class: "nb-toast__title"
|
|
26197
|
-
},
|
|
26213
|
+
}, G6t = { class: "nb-toast__message" }, K6t = ["aria-label"], M5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
26198
26214
|
__name: "Toast",
|
|
26199
26215
|
props: {
|
|
26200
26216
|
variant: { default: "info" },
|
|
@@ -26255,14 +26271,14 @@ var D3t = /* @__PURE__ */ _({
|
|
|
26255
26271
|
onMouseenter: y,
|
|
26256
26272
|
onMouseleave: b
|
|
26257
26273
|
}, [
|
|
26258
|
-
f("div",
|
|
26274
|
+
f("div", V6t, [h(l2, {
|
|
26259
26275
|
name: o[e.variant],
|
|
26260
26276
|
size: 16
|
|
26261
26277
|
}, null, 8, ["name"])]),
|
|
26262
|
-
f("div",
|
|
26263
|
-
l.value ? (P(), d("span",
|
|
26264
|
-
e.title ? (P(), d("p",
|
|
26265
|
-
f("p",
|
|
26278
|
+
f("div", H6t, [
|
|
26279
|
+
l.value ? (P(), d("span", U6t, U(l.value), 1)) : u("", !0),
|
|
26280
|
+
e.title ? (P(), d("p", W6t, U(e.title), 1)) : u("", !0),
|
|
26281
|
+
f("p", G6t, U(e.message), 1),
|
|
26266
26282
|
e.cta ? (P(), d("button", {
|
|
26267
26283
|
key: 2,
|
|
26268
26284
|
class: "nb-toast__cta",
|
|
@@ -26280,7 +26296,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
26280
26296
|
}, [h(l2, {
|
|
26281
26297
|
name: "x",
|
|
26282
26298
|
size: 14
|
|
26283
|
-
})], 8,
|
|
26299
|
+
})], 8, K6t),
|
|
26284
26300
|
e.duration ? (P(), d("div", {
|
|
26285
26301
|
key: e.cycle,
|
|
26286
26302
|
class: "nb-toast__progress",
|
|
@@ -26289,7 +26305,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
26289
26305
|
animationPlayState: a.value ? "paused" : "running"
|
|
26290
26306
|
})
|
|
26291
26307
|
}, null, 4)) : u("", !0)
|
|
26292
|
-
], 42,
|
|
26308
|
+
], 42, B6t));
|
|
26293
26309
|
}
|
|
26294
26310
|
}), [["__scopeId", "data-v-008f4c72"]]), N5 = {
|
|
26295
26311
|
success: 4e3,
|
|
@@ -26301,7 +26317,7 @@ var D3t = /* @__PURE__ */ _({
|
|
|
26301
26317
|
error: "Error",
|
|
26302
26318
|
warning: "Warning",
|
|
26303
26319
|
info: "Information"
|
|
26304
|
-
},
|
|
26320
|
+
}, q6t = 0;
|
|
26305
26321
|
function F5(e = {}) {
|
|
26306
26322
|
let t = R(e.max ?? 3), n = {
|
|
26307
26323
|
...N5,
|
|
@@ -26388,7 +26404,7 @@ function F5(e = {}) {
|
|
|
26388
26404
|
}
|
|
26389
26405
|
let t = e.variant ?? "info", n = {
|
|
26390
26406
|
...e,
|
|
26391
|
-
id: `nb-toast-${++
|
|
26407
|
+
id: `nb-toast-${++q6t}`,
|
|
26392
26408
|
variant: t,
|
|
26393
26409
|
duration: e.duration ?? x(t, e.cta),
|
|
26394
26410
|
visible: !1,
|
|
@@ -26460,20 +26476,20 @@ function R5() {
|
|
|
26460
26476
|
}
|
|
26461
26477
|
return I5 ||= F5(), I5;
|
|
26462
26478
|
}
|
|
26463
|
-
function
|
|
26479
|
+
function J6t() {
|
|
26464
26480
|
I5?.dismissAll(), I5 = null;
|
|
26465
26481
|
}
|
|
26466
26482
|
//#endregion
|
|
26467
26483
|
//#region src/components/Toaster.vue?vue&type=script&setup=true&lang.ts
|
|
26468
|
-
var
|
|
26484
|
+
var Y6t = { class: "nb-toaster__announcer" }, X6t = {
|
|
26469
26485
|
role: "status",
|
|
26470
26486
|
"aria-live": "polite",
|
|
26471
26487
|
"aria-atomic": "true"
|
|
26472
|
-
},
|
|
26488
|
+
}, Z6t = {
|
|
26473
26489
|
role: "alert",
|
|
26474
26490
|
"aria-live": "assertive",
|
|
26475
26491
|
"aria-atomic": "true"
|
|
26476
|
-
},
|
|
26492
|
+
}, Q6t = ["aria-label", "data-paused"], $6t = ["data-toast-id"], z5 = /* @__PURE__ */ new Map();
|
|
26477
26493
|
function B5(e, t) {
|
|
26478
26494
|
let n = (z5.get(e) ?? 0) + t;
|
|
26479
26495
|
n <= 0 ? z5.delete(e) : z5.set(e, n), !(t < 0 || n < 2) && (typeof process < "u" && process.env.NODE_ENV === "production" || console.warn("[NbToaster] Two hosts are rendering the same queue. Every toast will be shown and announced twice, and both hosts write to queue.max. Mount one NbToaster per application, and give any second host (a demo, a dialog) its own createToastQueue()."));
|
|
@@ -26683,7 +26699,7 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
26683
26699
|
}), t({ queue: c }), (e, t) => (P(), l(r, {
|
|
26684
26700
|
to: _.value,
|
|
26685
26701
|
disabled: i.to === !1
|
|
26686
|
-
}, [f("div",
|
|
26702
|
+
}, [f("div", Y6t, [f("div", X6t, U(E.value), 1), f("div", Z6t, U(D.value), 1)]), p.value.length > 0 ? (P(), d("div", {
|
|
26687
26703
|
key: 0,
|
|
26688
26704
|
ref_key: "regionRef",
|
|
26689
26705
|
ref: g,
|
|
@@ -26737,9 +26753,9 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
26737
26753
|
"close-label",
|
|
26738
26754
|
"onAction",
|
|
26739
26755
|
"onClose"
|
|
26740
|
-
])], !0)], 8,
|
|
26756
|
+
])], !0)], 8, $6t))), 128))]),
|
|
26741
26757
|
_: 3
|
|
26742
|
-
})], 42,
|
|
26758
|
+
})], 42, Q6t)) : u("", !0)], 8, ["to", "disabled"]));
|
|
26743
26759
|
}
|
|
26744
26760
|
}), [["__scopeId", "data-v-dad77da7"]]), H5 = Symbol("nb-tree"), U5 = Symbol("nb-tree-depth"), W5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
26745
26761
|
__name: "Tree",
|
|
@@ -26858,19 +26874,19 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
26858
26874
|
onKeydown: S
|
|
26859
26875
|
}, [B(t.$slots, "default", {}, void 0, !0)], 34));
|
|
26860
26876
|
}
|
|
26861
|
-
}), [["__scopeId", "data-v-f91fb593"]]),
|
|
26877
|
+
}), [["__scopeId", "data-v-f91fb593"]]), e8t = [
|
|
26862
26878
|
"draggable",
|
|
26863
26879
|
"aria-expanded",
|
|
26864
26880
|
"aria-selected",
|
|
26865
26881
|
"aria-disabled",
|
|
26866
26882
|
"aria-grabbed"
|
|
26867
|
-
],
|
|
26883
|
+
], t8t = {
|
|
26868
26884
|
key: 1,
|
|
26869
26885
|
class: "nb-tree-node__toggle-spacer"
|
|
26870
|
-
},
|
|
26886
|
+
}, n8t = { class: "nb-tree-node__label-text" }, r8t = {
|
|
26871
26887
|
key: 3,
|
|
26872
26888
|
class: "nb-tree-node__actions"
|
|
26873
|
-
},
|
|
26889
|
+
}, i8t = {
|
|
26874
26890
|
key: 0,
|
|
26875
26891
|
role: "group",
|
|
26876
26892
|
class: "nb-tree-node__children"
|
|
@@ -26981,26 +26997,26 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
26981
26997
|
name: "caret-right",
|
|
26982
26998
|
size: "xs",
|
|
26983
26999
|
class: T(["nb-tree-node__toggle-icon", { "nb-tree-node__toggle-icon--expanded": g.value }])
|
|
26984
|
-
}, null, 8, ["class"])])) : (P(), d("span",
|
|
27000
|
+
}, null, 8, ["class"])])) : (P(), d("span", t8t)),
|
|
26985
27001
|
e.icon ? (P(), l(l2, {
|
|
26986
27002
|
key: 2,
|
|
26987
27003
|
name: e.icon,
|
|
26988
27004
|
size: "sm",
|
|
26989
27005
|
class: "nb-tree-node__icon"
|
|
26990
27006
|
}, null, 8, ["name"])) : u("", !0),
|
|
26991
|
-
f("span",
|
|
26992
|
-
t.$slots.actions ? (P(), d("span",
|
|
26993
|
-
], 4), p.value && g.value ? (P(), d("ul",
|
|
27007
|
+
f("span", n8t, [B(t.$slots, "label", {}, () => [m(U(e.label), 1)], !0)]),
|
|
27008
|
+
t.$slots.actions ? (P(), d("span", r8t, [B(t.$slots, "actions", {}, void 0, !0)])) : u("", !0)
|
|
27009
|
+
], 4), p.value && g.value ? (P(), d("ul", i8t, [B(t.$slots, "default", {}, void 0, !0)])) : u("", !0)], 42, e8t));
|
|
26994
27010
|
}
|
|
26995
|
-
}), [["__scopeId", "data-v-c89cbad0"]]),
|
|
27011
|
+
}), [["__scopeId", "data-v-c89cbad0"]]), a8t = [
|
|
26996
27012
|
"title",
|
|
26997
27013
|
"aria-label",
|
|
26998
27014
|
"aria-expanded",
|
|
26999
27015
|
"disabled"
|
|
27000
|
-
],
|
|
27016
|
+
], o8t = { class: "nb-user-menu__label" }, s8t = { class: "nb-user-menu__email" }, c8t = ["disabled", "onClick"], l8t = { class: "nb-user-menu__account-main" }, u8t = { class: "nb-user-menu__account-email" }, d8t = {
|
|
27001
27017
|
key: 0,
|
|
27002
27018
|
class: "nb-user-menu__account-name"
|
|
27003
|
-
},
|
|
27019
|
+
}, f8t = { class: "nb-user-menu__brand" }, p8t = { class: "nb-user-menu__brand-line" }, m8t = { class: "nb-user-menu__brand-name" }, h8t = "Nubisco Platform", K5 = /* @__PURE__ */ _({
|
|
27004
27020
|
__name: "UserMenu",
|
|
27005
27021
|
props: {
|
|
27006
27022
|
user: {},
|
|
@@ -27063,7 +27079,7 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
27063
27079
|
return o[String(g.value).toLowerCase().split("-")[0]]?.[t] ?? o.en[t] ?? e;
|
|
27064
27080
|
}
|
|
27065
27081
|
let v = e, y = s(() => {
|
|
27066
|
-
let e = _("userMenu.poweredBy"), t = e.indexOf(
|
|
27082
|
+
let e = _("userMenu.poweredBy"), t = e.indexOf(h8t);
|
|
27067
27083
|
return t < 0 ? {
|
|
27068
27084
|
prefix: "",
|
|
27069
27085
|
name: e
|
|
@@ -27146,7 +27162,7 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
27146
27162
|
"aria-expanded": C.value,
|
|
27147
27163
|
disabled: e.disabled,
|
|
27148
27164
|
onClick: j
|
|
27149
|
-
}, U(D(v.user)), 9,
|
|
27165
|
+
}, U(D(v.user)), 9, a8t)]), (P(), l(r, { to: "body" }, [h(a, { name: "nb-user-menu-pop" }, {
|
|
27150
27166
|
default: X(() => [C.value ? (P(), d("div", {
|
|
27151
27167
|
key: 0,
|
|
27152
27168
|
ref_key: "panelRef",
|
|
@@ -27155,8 +27171,8 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
27155
27171
|
style: E(w.value),
|
|
27156
27172
|
role: "menu"
|
|
27157
27173
|
}, [
|
|
27158
|
-
f("p",
|
|
27159
|
-
f("p",
|
|
27174
|
+
f("p", o8t, U(_("userMenu.SIGNED_IN_AS")), 1),
|
|
27175
|
+
f("p", s8t, U(v.user.email), 1),
|
|
27160
27176
|
e.showAccountActions ? (P(), d(n, { key: 0 }, [
|
|
27161
27177
|
i[0] ||= f("div", {
|
|
27162
27178
|
class: "nb-user-menu__divider",
|
|
@@ -27169,7 +27185,7 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
27169
27185
|
class: T(["nb-user-menu__account", { "nb-user-menu__account--current": e.current }]),
|
|
27170
27186
|
disabled: e.current,
|
|
27171
27187
|
onClick: (t) => N(e)
|
|
27172
|
-
}, [f("span",
|
|
27188
|
+
}, [f("span", l8t, [f("span", u8t, U(e.email), 1), e.name ? (P(), d("span", d8t, U(e.name), 1)) : u("", !0)]), e.current ? (P(), l(l2, {
|
|
27173
27189
|
key: 0,
|
|
27174
27190
|
name: "check",
|
|
27175
27191
|
size: 14,
|
|
@@ -27181,7 +27197,7 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
27181
27197
|
class: "nb-user-menu__remove",
|
|
27182
27198
|
title: _("userMenu.REMOVE_ACCOUNT"),
|
|
27183
27199
|
onClick: Z((t) => F(e), ["stop"])
|
|
27184
|
-
}, null, 8, ["title", "onClick"]))], 10,
|
|
27200
|
+
}, null, 8, ["title", "onClick"]))], 10, c8t))), 128)) : v.accountsUnknown ? (P(), d("button", {
|
|
27185
27201
|
key: 1,
|
|
27186
27202
|
type: "button",
|
|
27187
27203
|
role: "menuitem",
|
|
@@ -27231,21 +27247,21 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
27231
27247
|
v.brand === "none" ? u("", !0) : (P(), d(n, { key: 3 }, [i[2] ||= f("div", {
|
|
27232
27248
|
class: "nb-user-menu__divider",
|
|
27233
27249
|
role: "separator"
|
|
27234
|
-
}, null, -1), B(t.$slots, "brand", {}, () => [f("p",
|
|
27250
|
+
}, null, -1), B(t.$slots, "brand", {}, () => [f("p", f8t, [h(l8, {
|
|
27235
27251
|
size: 13,
|
|
27236
27252
|
class: "nb-user-menu__mark"
|
|
27237
|
-
}), f("span",
|
|
27253
|
+
}), f("span", p8t, [m(U(y.value.prefix), 1), f("span", m8t, U(y.value.name), 1)])])])], 64))
|
|
27238
27254
|
], 4)) : u("", !0)]),
|
|
27239
27255
|
_: 3
|
|
27240
27256
|
})]))], 512));
|
|
27241
27257
|
}
|
|
27242
|
-
}),
|
|
27258
|
+
}), g8t = { class: "nb-bottom-panel__header" }, _8t = { class: "nb-bottom-panel__header-left" }, v8t = {
|
|
27243
27259
|
key: 0,
|
|
27244
27260
|
class: "nb-bottom-panel__title"
|
|
27245
|
-
},
|
|
27261
|
+
}, y8t = { class: "nb-bottom-panel__header-center" }, b8t = {
|
|
27246
27262
|
ref: "toolbarTarget",
|
|
27247
27263
|
class: "nb-bottom-panel__toolbar"
|
|
27248
|
-
},
|
|
27264
|
+
}, x8t = { class: "nb-bottom-panel__header-right" }, S8t = {
|
|
27249
27265
|
key: 0,
|
|
27250
27266
|
class: "nb-bottom-panel__content"
|
|
27251
27267
|
}, q5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
@@ -27263,10 +27279,10 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
27263
27279
|
function o(e) {
|
|
27264
27280
|
a.value = e;
|
|
27265
27281
|
}
|
|
27266
|
-
return t({ setSize: o }), (t, n) => (P(), d("div", { class: T(["nb-bottom-panel", a.value]) }, [f("div",
|
|
27267
|
-
f("div",
|
|
27268
|
-
f("div",
|
|
27269
|
-
f("div",
|
|
27282
|
+
return t({ setSize: o }), (t, n) => (P(), d("div", { class: T(["nb-bottom-panel", a.value]) }, [f("div", g8t, [
|
|
27283
|
+
f("div", _8t, [e.title ? (P(), d("span", v8t, U(e.title), 1)) : u("", !0), B(t.$slots, "title", {}, void 0, !0)]),
|
|
27284
|
+
f("div", y8t, [f("div", b8t, [B(t.$slots, "toolbar", {}, void 0, !0)], 512)]),
|
|
27285
|
+
f("div", x8t, [
|
|
27270
27286
|
f("button", {
|
|
27271
27287
|
class: T(["nb-bottom-panel__size-btn", { active: a.value === "collapsed" }]),
|
|
27272
27288
|
title: "Minimize",
|
|
@@ -27345,12 +27361,12 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
27345
27361
|
"stroke-width": "1.2"
|
|
27346
27362
|
})], -1)]], 2)
|
|
27347
27363
|
])
|
|
27348
|
-
]), a.value === "collapsed" ? u("", !0) : (P(), d("div",
|
|
27364
|
+
]), a.value === "collapsed" ? u("", !0) : (P(), d("div", S8t, [B(t.$slots, "default", {}, void 0, !0)]))], 2));
|
|
27349
27365
|
}
|
|
27350
|
-
}), [["__scopeId", "data-v-61d1395a"]]),
|
|
27366
|
+
}), [["__scopeId", "data-v-61d1395a"]]), C8t = { class: "nb-shell-panel__header" }, w8t = { class: "nb-shell-panel__header-left" }, T8t = {
|
|
27351
27367
|
key: 0,
|
|
27352
27368
|
class: "nb-shell-panel__title"
|
|
27353
|
-
},
|
|
27369
|
+
}, E8t = { class: "nb-shell-panel__header-center" }, D8t = { class: "nb-shell-panel__toolbar" }, O8t = ["aria-label"], k8t = ["aria-pressed"], A8t = ["aria-pressed"], j8t = ["aria-pressed"], M8t = {
|
|
27354
27370
|
key: 0,
|
|
27355
27371
|
class: "nb-shell-panel__content"
|
|
27356
27372
|
}, J5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
@@ -27379,9 +27395,9 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
27379
27395
|
return t({ setSize: c }), (t, n) => (P(), d("div", C({ class: "nb-shell-panel" }, K(i), { class: [o.value, {
|
|
27380
27396
|
"nb-shell-panel--fluid": e.fluid,
|
|
27381
27397
|
"nb-shell-panel--fill": e.fill
|
|
27382
|
-
}] }), [f("div",
|
|
27383
|
-
f("div",
|
|
27384
|
-
f("div",
|
|
27398
|
+
}] }), [f("div", C8t, [
|
|
27399
|
+
f("div", w8t, [e.title ? (P(), d("span", T8t, U(e.title), 1)) : u("", !0), B(t.$slots, "title", {}, void 0, !0)]),
|
|
27400
|
+
f("div", E8t, [f("div", D8t, [B(t.$slots, "toolbar", {}, void 0, !0)])]),
|
|
27385
27401
|
f("div", {
|
|
27386
27402
|
class: "nb-shell-panel__header-right",
|
|
27387
27403
|
role: "group",
|
|
@@ -27406,7 +27422,7 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
27406
27422
|
y2: "10",
|
|
27407
27423
|
stroke: "currentColor",
|
|
27408
27424
|
"stroke-width": "1.5"
|
|
27409
|
-
})], -1)]], 10,
|
|
27425
|
+
})], -1)]], 10, k8t),
|
|
27410
27426
|
f("button", {
|
|
27411
27427
|
type: "button",
|
|
27412
27428
|
class: T(["nb-shell-panel__size-btn", { active: o.value === "default" }]),
|
|
@@ -27428,7 +27444,7 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
27428
27444
|
fill: "none",
|
|
27429
27445
|
stroke: "currentColor",
|
|
27430
27446
|
"stroke-width": "1.2"
|
|
27431
|
-
})], -1)]], 10,
|
|
27447
|
+
})], -1)]], 10, A8t),
|
|
27432
27448
|
f("button", {
|
|
27433
27449
|
type: "button",
|
|
27434
27450
|
class: T(["nb-shell-panel__size-btn", { active: o.value === "full" }]),
|
|
@@ -27457,14 +27473,14 @@ var V5 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
27457
27473
|
y2: "3.5",
|
|
27458
27474
|
stroke: "currentColor",
|
|
27459
27475
|
"stroke-width": "1.2"
|
|
27460
|
-
})], -1)]], 10,
|
|
27461
|
-
], !0)], 8,
|
|
27462
|
-
]), o.value === "collapsed" ? u("", !0) : (P(), d("div",
|
|
27476
|
+
})], -1)]], 10, j8t)
|
|
27477
|
+
], !0)], 8, O8t)
|
|
27478
|
+
]), o.value === "collapsed" ? u("", !0) : (P(), d("div", M8t, [B(t.$slots, "default", {}, void 0, !0)]))], 16));
|
|
27463
27479
|
}
|
|
27464
27480
|
}), [["__scopeId", "data-v-a905a948"]]), Y5 = Symbol("NB_BLUEPRINT_CONTEXT"), X5 = Symbol("NB_BLUEPRINT_CONTROLLER");
|
|
27465
27481
|
//#endregion
|
|
27466
27482
|
//#region src/components/blueprint-port-cache.ts
|
|
27467
|
-
function
|
|
27483
|
+
function N8t(e) {
|
|
27468
27484
|
let t = /* @__PURE__ */ new Map();
|
|
27469
27485
|
function n(n, r) {
|
|
27470
27486
|
let i = `${n}:${r}`, a = t.get(i);
|
|
@@ -27491,19 +27507,19 @@ function k8t(e) {
|
|
|
27491
27507
|
size: a
|
|
27492
27508
|
};
|
|
27493
27509
|
}
|
|
27494
|
-
function
|
|
27510
|
+
function P8t(e) {
|
|
27495
27511
|
return e instanceof Element ? e.parentElement?.classList.contains("nb-blueprint__canvas") ?? !1 : !1;
|
|
27496
27512
|
}
|
|
27497
27513
|
//#endregion
|
|
27498
27514
|
//#region src/components/BlueprintDomRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
27499
|
-
var
|
|
27515
|
+
var F8t = { class: "nb-blueprint__wires" }, I8t = [
|
|
27500
27516
|
"d",
|
|
27501
27517
|
"data-wire-index",
|
|
27502
27518
|
"onMousedown",
|
|
27503
27519
|
"onContextmenu",
|
|
27504
27520
|
"onMousemove",
|
|
27505
27521
|
"onMouseleave"
|
|
27506
|
-
],
|
|
27522
|
+
], L8t = ["d", "stroke"], R8t = ["d", "stroke"], z8t = ["d"], B8t = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
27507
27523
|
__name: "BlueprintDomRenderer",
|
|
27508
27524
|
props: {
|
|
27509
27525
|
panX: {},
|
|
@@ -27543,7 +27559,7 @@ var j8t = { class: "nb-blueprint__wires" }, M8t = [
|
|
|
27543
27559
|
}, null, 6)), f("div", {
|
|
27544
27560
|
class: "nb-blueprint__canvas",
|
|
27545
27561
|
style: E(l.value)
|
|
27546
|
-
}, [(P(), d("svg",
|
|
27562
|
+
}, [(P(), d("svg", F8t, [
|
|
27547
27563
|
(P(!0), d(n, null, z(e.wires, (e, t) => (P(), d("g", {
|
|
27548
27564
|
key: t,
|
|
27549
27565
|
class: "nb-blueprint__wire-group"
|
|
@@ -27558,14 +27574,14 @@ var j8t = { class: "nb-blueprint__wires" }, M8t = [
|
|
|
27558
27574
|
onContextmenu: Z((t) => i("wire-contextmenu", t, e.conn), ["prevent"]),
|
|
27559
27575
|
onMousemove: (t) => i("wire-mousemove", t, e.conn),
|
|
27560
27576
|
onMouseleave: (t) => i("wire-mouseleave", e.conn)
|
|
27561
|
-
}, null, 40,
|
|
27577
|
+
}, null, 40, I8t), f("path", {
|
|
27562
27578
|
d: e.path,
|
|
27563
27579
|
fill: "none",
|
|
27564
27580
|
stroke: e.color,
|
|
27565
27581
|
"stroke-width": "1.5",
|
|
27566
27582
|
class: T(["nb-blueprint__wire", { "nb-blueprint__wire--inactive": e.conn.active === !1 }]),
|
|
27567
27583
|
"pointer-events": "none"
|
|
27568
|
-
}, null, 10,
|
|
27584
|
+
}, null, 10, L8t)]))), 128)),
|
|
27569
27585
|
(P(!0), d(n, null, z(e.wires, (t, n) => se((P(), d("path", {
|
|
27570
27586
|
key: `flow-${n}`,
|
|
27571
27587
|
d: t.path,
|
|
@@ -27575,7 +27591,7 @@ var j8t = { class: "nb-blueprint__wires" }, M8t = [
|
|
|
27575
27591
|
"stroke-dasharray": "4 8",
|
|
27576
27592
|
class: "nb-blueprint__wire-flow",
|
|
27577
27593
|
"pointer-events": "none"
|
|
27578
|
-
}, null, 8,
|
|
27594
|
+
}, null, 8, R8t)), [[oe, e.shouldFlow(t.conn)]])), 128)),
|
|
27579
27595
|
e.dragWire ? (P(), d("path", {
|
|
27580
27596
|
key: 0,
|
|
27581
27597
|
d: e.dragWire,
|
|
@@ -27584,7 +27600,7 @@ var j8t = { class: "nb-blueprint__wires" }, M8t = [
|
|
|
27584
27600
|
"stroke-width": "2",
|
|
27585
27601
|
"stroke-dasharray": "6 3",
|
|
27586
27602
|
opacity: "0.6"
|
|
27587
|
-
}, null, 8,
|
|
27603
|
+
}, null, 8, z8t)) : u("", !0)
|
|
27588
27604
|
])), e.windowed ? (P(!0), d(n, { key: 0 }, z(e.visibleCards, (e) => (P(), d("div", {
|
|
27589
27605
|
key: e.id,
|
|
27590
27606
|
class: "nb-blueprint__card-wrapper",
|
|
@@ -27595,14 +27611,14 @@ var j8t = { class: "nb-blueprint__wires" }, M8t = [
|
|
|
27595
27611
|
})
|
|
27596
27612
|
}, [B(t.$slots, "card", { card: e }, void 0, !0)], 4))), 128)) : B(t.$slots, "default", { key: 1 }, void 0, !0)], 4)], 64));
|
|
27597
27613
|
}
|
|
27598
|
-
}), [["__scopeId", "data-v-31ed2748"]]),
|
|
27614
|
+
}), [["__scopeId", "data-v-31ed2748"]]), V8t = { class: "nb-blueprint__wires" }, H8t = ["d", "stroke"], U8t = [
|
|
27599
27615
|
"d",
|
|
27600
27616
|
"data-wire-index",
|
|
27601
27617
|
"onMousedown",
|
|
27602
27618
|
"onContextmenu",
|
|
27603
27619
|
"onMousemove",
|
|
27604
27620
|
"onMouseleave"
|
|
27605
|
-
],
|
|
27621
|
+
], W8t = ["d"], G8t = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
27606
27622
|
__name: "BlueprintPixiRenderer",
|
|
27607
27623
|
props: {
|
|
27608
27624
|
panX: {},
|
|
@@ -27687,7 +27703,7 @@ var j8t = { class: "nb-blueprint__wires" }, M8t = [
|
|
|
27687
27703
|
ref: o,
|
|
27688
27704
|
class: "nb-blueprint__canvas nb-blueprint-pixi__overlay",
|
|
27689
27705
|
style: E(m.value)
|
|
27690
|
-
}, [(P(), d("svg",
|
|
27706
|
+
}, [(P(), d("svg", V8t, [
|
|
27691
27707
|
c.value ? u("", !0) : (P(!0), d(n, { key: 0 }, z(e.wires, (e, t) => (P(), d("path", {
|
|
27692
27708
|
key: `w-${t}`,
|
|
27693
27709
|
d: e.path,
|
|
@@ -27696,7 +27712,7 @@ var j8t = { class: "nb-blueprint__wires" }, M8t = [
|
|
|
27696
27712
|
"stroke-width": "1.5",
|
|
27697
27713
|
class: T(["nb-blueprint__wire", { "nb-blueprint__wire--inactive": e.conn.active === !1 }]),
|
|
27698
27714
|
"pointer-events": "none"
|
|
27699
|
-
}, null, 10,
|
|
27715
|
+
}, null, 10, H8t))), 128)),
|
|
27700
27716
|
(P(!0), d(n, null, z(e.wires, (e, t) => (P(), d("path", {
|
|
27701
27717
|
key: `h-${t}`,
|
|
27702
27718
|
d: e.path,
|
|
@@ -27709,7 +27725,7 @@ var j8t = { class: "nb-blueprint__wires" }, M8t = [
|
|
|
27709
27725
|
onContextmenu: Z((t) => i("wire-contextmenu", t, e.conn), ["prevent"]),
|
|
27710
27726
|
onMousemove: (t) => i("wire-mousemove", t, e.conn),
|
|
27711
27727
|
onMouseleave: (t) => i("wire-mouseleave", e.conn)
|
|
27712
|
-
}, null, 40,
|
|
27728
|
+
}, null, 40, U8t))), 128)),
|
|
27713
27729
|
e.dragWire ? (P(), d("path", {
|
|
27714
27730
|
key: 1,
|
|
27715
27731
|
d: e.dragWire,
|
|
@@ -27718,7 +27734,7 @@ var j8t = { class: "nb-blueprint__wires" }, M8t = [
|
|
|
27718
27734
|
"stroke-width": "2",
|
|
27719
27735
|
"stroke-dasharray": "6 3",
|
|
27720
27736
|
opacity: "0.6"
|
|
27721
|
-
}, null, 8,
|
|
27737
|
+
}, null, 8, W8t)) : u("", !0)
|
|
27722
27738
|
])), e.windowed ? (P(!0), d(n, { key: 0 }, z(e.visibleCards, (e) => (P(), d("div", {
|
|
27723
27739
|
key: e.id,
|
|
27724
27740
|
class: "nb-blueprint__card-wrapper",
|
|
@@ -27897,11 +27913,11 @@ function Q5(e, t, n = {}) {
|
|
|
27897
27913
|
}
|
|
27898
27914
|
//#endregion
|
|
27899
27915
|
//#region src/components/Blueprint.vue?vue&type=script&setup=true&lang.ts
|
|
27900
|
-
var
|
|
27916
|
+
var K8t = {
|
|
27901
27917
|
key: 0,
|
|
27902
27918
|
class: "nb-blueprint__background-slot",
|
|
27903
27919
|
"aria-hidden": "true"
|
|
27904
|
-
},
|
|
27920
|
+
}, q8t = { class: "nb-blueprint__chrome" }, J8t = 100, $5 = .2, e7 = 3, t7 = 4, Y8t = 240, X8t = 400, n7 = 1.2, Z8t = 40, r7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
27905
27921
|
__name: "Blueprint",
|
|
27906
27922
|
props: {
|
|
27907
27923
|
connections: { default: () => [] },
|
|
@@ -27978,14 +27994,14 @@ var H8t = {
|
|
|
27978
27994
|
z();
|
|
27979
27995
|
return;
|
|
27980
27996
|
}
|
|
27981
|
-
performance.now() - L >=
|
|
27997
|
+
performance.now() - L >= J8t && z();
|
|
27982
27998
|
}), Y(D, (e) => {
|
|
27983
27999
|
e || z();
|
|
27984
28000
|
});
|
|
27985
28001
|
let V = R({
|
|
27986
28002
|
w: 0,
|
|
27987
28003
|
h: 0
|
|
27988
|
-
}), H =
|
|
28004
|
+
}), H = N8t(() => v.value), ee = /* @__PURE__ */ new Map();
|
|
27989
28005
|
function U(e) {
|
|
27990
28006
|
for (let [t, n] of ee) n.cardId === e && ee.delete(t);
|
|
27991
28007
|
}
|
|
@@ -28335,7 +28351,7 @@ var H8t = {
|
|
|
28335
28351
|
let n = v.value.getBoundingClientRect(), r = (e.clientX - n.left - y.value) / x.value, i = (e.clientY - n.top - b.value) / x.value, a = ut(t.fromNode, t.fromPort), o = ut(t.toNode, t.toPort);
|
|
28336
28352
|
if (!a || !o) return;
|
|
28337
28353
|
let s = a.getBoundingClientRect(), c = o.getBoundingClientRect(), l = (s.left + s.width / 2 - n.left - y.value) / x.value, u = (s.top + s.height / 2 - n.top - b.value) / x.value, d = (c.left + c.width / 2 - n.left - y.value) / x.value, f = (c.top + c.height / 2 - n.top - b.value) / x.value, p = Math.hypot(r - l, i - u), m = Math.hypot(r - d, i - f);
|
|
28338
|
-
if (Math.min(p, m) >
|
|
28354
|
+
if (Math.min(p, m) > Z8t) return;
|
|
28339
28355
|
e.preventDefault();
|
|
28340
28356
|
let h = p < m, g = h ? o : a;
|
|
28341
28357
|
Ye.value = h ? {
|
|
@@ -28521,7 +28537,7 @@ var H8t = {
|
|
|
28521
28537
|
}
|
|
28522
28538
|
let yt = s(() => {
|
|
28523
28539
|
if (S.value, !v.value) return [];
|
|
28524
|
-
let e = v.value.getBoundingClientRect(), t = I.value, n =
|
|
28540
|
+
let e = v.value.getBoundingClientRect(), t = I.value, n = Y8t / t, i = (0 - M.value) / t - n, a = (e.width - M.value) / t + n, o = (0 - N.value) / t - n, s = (e.height - N.value) / t + n, c = Xe.value;
|
|
28525
28541
|
return r.connections.filter((e) => !c || e.fromNode !== c.fromNode || e.fromPort !== c.fromPort || e.toNode !== c.toNode || e.toPort !== c.toPort).map((t) => {
|
|
28526
28542
|
let n = G(t.fromNode, t.fromPort, e), c = G(t.toNode, t.toPort, e);
|
|
28527
28543
|
if (!n || !c) return null;
|
|
@@ -28546,7 +28562,7 @@ var H8t = {
|
|
|
28546
28562
|
}, xt = s(() => {
|
|
28547
28563
|
let e = r.cards;
|
|
28548
28564
|
if (!e || e.length === 0) return [];
|
|
28549
|
-
let t = I.value, n =
|
|
28565
|
+
let t = I.value, n = X8t / t, i = (0 - M.value) / t - n, a = (V.value.w - M.value) / t + n, o = (0 - N.value) / t - n, s = (V.value.h - N.value) / t + n, c = (e, t, n, r) => n >= i && e <= a && r >= o && t <= s, l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Set();
|
|
28550
28566
|
for (let t of e) {
|
|
28551
28567
|
l.set(t.id, t);
|
|
28552
28568
|
let { w: e, h: n } = bt(t);
|
|
@@ -28769,7 +28785,7 @@ var H8t = {
|
|
|
28769
28785
|
t = !0;
|
|
28770
28786
|
continue;
|
|
28771
28787
|
}
|
|
28772
|
-
if (!
|
|
28788
|
+
if (!P8t(r.target)) continue;
|
|
28773
28789
|
n = !0;
|
|
28774
28790
|
let e = r.target.querySelector("[data-card-id]")?.getAttribute("data-card-id");
|
|
28775
28791
|
e && U(e);
|
|
@@ -28837,8 +28853,8 @@ var H8t = {
|
|
|
28837
28853
|
onWheel: Te
|
|
28838
28854
|
}, [
|
|
28839
28855
|
n[4] ||= f("div", { class: "nb-blueprint__ambient" }, null, -1),
|
|
28840
|
-
t.$slots.background ? (P(), d("div",
|
|
28841
|
-
p.value === "dom" ? (P(), l(
|
|
28856
|
+
t.$slots.background ? (P(), d("div", K8t, [B(t.$slots, "background", {}, void 0, !0)])) : u("", !0),
|
|
28857
|
+
p.value === "dom" ? (P(), l(B8t, {
|
|
28842
28858
|
key: 1,
|
|
28843
28859
|
"pan-x": y.value,
|
|
28844
28860
|
"pan-y": b.value,
|
|
@@ -28874,7 +28890,7 @@ var H8t = {
|
|
|
28874
28890
|
"activity-style",
|
|
28875
28891
|
"animate-connections",
|
|
28876
28892
|
"background"
|
|
28877
|
-
])) : (P(), l(
|
|
28893
|
+
])) : (P(), l(G8t, {
|
|
28878
28894
|
key: 2,
|
|
28879
28895
|
"pan-x": y.value,
|
|
28880
28896
|
"pan-y": b.value,
|
|
@@ -28955,7 +28971,7 @@ var H8t = {
|
|
|
28955
28971
|
class: "nb-blueprint__wire-menu-item",
|
|
28956
28972
|
onClick: n[0] ||= (e) => st(nt.value.conn)
|
|
28957
28973
|
}, " Disconnect ")], !0)], 36)) : u("", !0),
|
|
28958
|
-
f("div",
|
|
28974
|
+
f("div", q8t, [B(t.$slots, "chrome", {}, void 0, !0)])
|
|
28959
28975
|
], 34));
|
|
28960
28976
|
}
|
|
28961
28977
|
}), [["__scopeId", "data-v-16839f88"]]);
|
|
@@ -28995,44 +29011,44 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
28995
29011
|
"aria-hidden": "true"
|
|
28996
29012
|
}, null, 6));
|
|
28997
29013
|
}
|
|
28998
|
-
}), [["__scopeId", "data-v-01165887"]]),
|
|
29014
|
+
}), [["__scopeId", "data-v-01165887"]]), Q8t = ["data-card-id", "aria-label"], $8t = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--left" }, e5t = ["title"], t5t = [
|
|
28999
29015
|
"title",
|
|
29000
29016
|
"aria-label",
|
|
29001
29017
|
"onMousedown",
|
|
29002
29018
|
"onMouseup",
|
|
29003
29019
|
"onKeydown"
|
|
29004
|
-
],
|
|
29020
|
+
], n5t = ["data-port", "data-port-data-type"], r5t = {
|
|
29005
29021
|
key: 0,
|
|
29006
29022
|
class: "nb-blueprint-card__port-label"
|
|
29007
|
-
},
|
|
29023
|
+
}, i5t = { class: "nb-blueprint-card__inner" }, a5t = { class: "nb-blueprint-card__body" }, o5t = { class: "nb-blueprint-card__header" }, s5t = [
|
|
29008
29024
|
"title",
|
|
29009
29025
|
"aria-label",
|
|
29010
29026
|
"aria-expanded"
|
|
29011
|
-
],
|
|
29027
|
+
], c5t = { class: "nb-blueprint-card__title-group" }, l5t = { class: "nb-blueprint-card__name" }, u5t = {
|
|
29012
29028
|
key: 0,
|
|
29013
29029
|
class: "nb-blueprint-card__tag"
|
|
29014
|
-
},
|
|
29030
|
+
}, d5t = ["aria-label"], f5t = ["checked", "aria-label"], p5t = ["aria-label"], m5t = {
|
|
29015
29031
|
key: 0,
|
|
29016
29032
|
class: "nb-blueprint-card__preview"
|
|
29017
|
-
},
|
|
29033
|
+
}, h5t = {
|
|
29018
29034
|
key: 1,
|
|
29019
29035
|
class: "nb-blueprint-card__params"
|
|
29020
|
-
},
|
|
29036
|
+
}, g5t = { class: "nb-blueprint-card__row-label" }, _5t = { class: "nb-blueprint-card__row-value" }, v5t = {
|
|
29021
29037
|
key: 0,
|
|
29022
29038
|
class: "nb-blueprint-card__row-unit"
|
|
29023
|
-
},
|
|
29039
|
+
}, y5t = {
|
|
29024
29040
|
key: 2,
|
|
29025
29041
|
class: "nb-blueprint-card__content"
|
|
29026
|
-
},
|
|
29042
|
+
}, b5t = { class: "nb-blueprint-card__ports nb-blueprint-card__ports--right" }, x5t = ["title"], S5t = [
|
|
29027
29043
|
"title",
|
|
29028
29044
|
"aria-label",
|
|
29029
29045
|
"onMousedown",
|
|
29030
29046
|
"onMouseup",
|
|
29031
29047
|
"onKeydown"
|
|
29032
|
-
],
|
|
29048
|
+
], C5t = ["data-port", "data-port-data-type"], w5t = {
|
|
29033
29049
|
key: 0,
|
|
29034
29050
|
class: "nb-blueprint-card__port-label"
|
|
29035
|
-
},
|
|
29051
|
+
}, T5t = 320, E5t = 1, D5t = 10, o7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
29036
29052
|
__name: "BlueprintCard",
|
|
29037
29053
|
props: {
|
|
29038
29054
|
id: {},
|
|
@@ -29111,7 +29127,7 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29111
29127
|
for (let t of e ?? []) n.has(t) || (b.value = new Set(b.value).add(t), clearTimeout(S.get(t)), S.set(t, setTimeout(() => {
|
|
29112
29128
|
let e = new Set(b.value);
|
|
29113
29129
|
e.delete(t), b.value = e, S.delete(t);
|
|
29114
|
-
},
|
|
29130
|
+
}, T5t)));
|
|
29115
29131
|
}, { deep: !0 }), j(() => {
|
|
29116
29132
|
for (let e of S.values()) clearTimeout(e);
|
|
29117
29133
|
S.clear();
|
|
@@ -29145,7 +29161,7 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29145
29161
|
let t = A[e.key];
|
|
29146
29162
|
if (!t || !a?.nudge) return;
|
|
29147
29163
|
e.preventDefault();
|
|
29148
|
-
let n = e.shiftKey ?
|
|
29164
|
+
let n = e.shiftKey ? D5t : E5t;
|
|
29149
29165
|
a.nudge(r.id, t[0] * n, t[1] * n);
|
|
29150
29166
|
}
|
|
29151
29167
|
function N(e) {
|
|
@@ -29294,14 +29310,14 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29294
29310
|
onFocus: r[8] ||= (n) => t.$emit("select", e.id),
|
|
29295
29311
|
onKeydown: M
|
|
29296
29312
|
}, [
|
|
29297
|
-
f("div",
|
|
29313
|
+
f("div", $8t, [e.collapsed && I.value.length > 0 ? (P(), d("div", {
|
|
29298
29314
|
key: 0,
|
|
29299
29315
|
class: T(["nb-blueprint-card__port-combined nb-blueprint-card__port-combined--left", {
|
|
29300
29316
|
"nb-blueprint-card__port-combined--connected": ne.value,
|
|
29301
29317
|
"nb-blueprint-card__port-combined--active": J.value
|
|
29302
29318
|
}]),
|
|
29303
29319
|
title: `${I.value.length} input${I.value.length === 1 ? "" : "s"}`
|
|
29304
|
-
}, null, 10,
|
|
29320
|
+
}, null, 10, e5t)) : u("", !0), (P(!0), d(n, null, z(I.value, (t) => (P(), d("div", {
|
|
29305
29321
|
key: t.key,
|
|
29306
29322
|
class: "nb-blueprint-card__port-slot"
|
|
29307
29323
|
}, [f("button", {
|
|
@@ -29343,8 +29359,8 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29343
29359
|
v(t, "input")
|
|
29344
29360
|
]]),
|
|
29345
29361
|
style: E(w(t))
|
|
29346
|
-
}, null, 14,
|
|
29347
|
-
f("div",
|
|
29362
|
+
}, null, 14, n5t)], 40, t5t), t.showLabel ? (P(), d("span", r5t, U(oe(t)), 1)) : u("", !0)]))), 128))]),
|
|
29363
|
+
f("div", i5t, [f("div", a5t, [f("div", o5t, [
|
|
29348
29364
|
f("button", {
|
|
29349
29365
|
type: "button",
|
|
29350
29366
|
class: "nb-blueprint-card__collapse",
|
|
@@ -29360,8 +29376,8 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29360
29376
|
fill: "none",
|
|
29361
29377
|
stroke: "currentColor",
|
|
29362
29378
|
"stroke-width": "1.5"
|
|
29363
|
-
}, [f("polyline", { points: "4 6 8 10 12 6" })], -1)]], 40,
|
|
29364
|
-
f("div",
|
|
29379
|
+
}, [f("polyline", { points: "4 6 8 10 12 6" })], -1)]], 40, s5t),
|
|
29380
|
+
f("div", c5t, [f("span", l5t, U(e.title), 1), e.category ? (P(), d("span", u5t, U(ee.value), 1)) : u("", !0)]),
|
|
29365
29381
|
e.status && e.status !== "none" ? (P(), d("svg", {
|
|
29366
29382
|
key: 0,
|
|
29367
29383
|
class: T(["nb-blueprint-card__status", `nb-blueprint-card__status--${e.status}`]),
|
|
@@ -29425,7 +29441,7 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29425
29441
|
r: "1",
|
|
29426
29442
|
fill: "var(--nb-c-surface)"
|
|
29427
29443
|
}, null, -1)
|
|
29428
|
-
], 64))], 10,
|
|
29444
|
+
], 64))], 10, d5t)) : u("", !0),
|
|
29429
29445
|
e.enabled === void 0 ? u("", !0) : (P(), d("label", {
|
|
29430
29446
|
key: 1,
|
|
29431
29447
|
class: "nb-blueprint-card__toggle",
|
|
@@ -29436,7 +29452,7 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29436
29452
|
checked: e.enabled,
|
|
29437
29453
|
"aria-label": `Enable ${e.title}`,
|
|
29438
29454
|
onChange: r[2] ||= (n) => t.$emit("toggle", e.id, n.target.checked)
|
|
29439
|
-
}, null, 40,
|
|
29455
|
+
}, null, 40, f5t), r[18] ||= f("span", { class: "nb-blueprint-card__toggle-track" }, null, -1)], 32)),
|
|
29440
29456
|
e.removable ? (P(), d("button", {
|
|
29441
29457
|
key: 2,
|
|
29442
29458
|
type: "button",
|
|
@@ -29445,31 +29461,31 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29445
29461
|
"aria-label": `Remove ${e.title}`,
|
|
29446
29462
|
onMousedown: r[5] ||= Z(() => {}, ["stop"]),
|
|
29447
29463
|
onClick: r[6] ||= Z((n) => t.$emit("remove", e.id), ["stop"])
|
|
29448
|
-
}, " × ", 40,
|
|
29464
|
+
}, " × ", 40, p5t)) : u("", !0)
|
|
29449
29465
|
]), e.collapsed ? u("", !0) : (P(), d(n, { key: 0 }, [
|
|
29450
|
-
e.preview ? (P(), d("span",
|
|
29451
|
-
e.parameters && e.parameters.length ? (P(), d("div",
|
|
29466
|
+
e.preview ? (P(), d("span", m5t, U(e.preview), 1)) : u("", !0),
|
|
29467
|
+
e.parameters && e.parameters.length ? (P(), d("div", h5t, [(P(!0), d(n, null, z(e.parameters, (e) => (P(), d("div", {
|
|
29452
29468
|
key: e.label,
|
|
29453
29469
|
class: "nb-blueprint-card__row"
|
|
29454
29470
|
}, [
|
|
29455
|
-
f("span",
|
|
29456
|
-
f("span",
|
|
29471
|
+
f("span", g5t, U(e.label), 1),
|
|
29472
|
+
f("span", _5t, [m(U(e.value) + " ", 1), e.unit ? (P(), d("em", v5t, U(e.unit), 1)) : u("", !0)]),
|
|
29457
29473
|
e.bar === void 0 ? u("", !0) : (P(), d("div", {
|
|
29458
29474
|
key: 0,
|
|
29459
29475
|
class: "nb-blueprint-card__row-bar",
|
|
29460
29476
|
style: E({ "--bar-progress": `${e.bar}%` })
|
|
29461
29477
|
}, null, 4))
|
|
29462
29478
|
]))), 128))])) : u("", !0),
|
|
29463
|
-
t.$slots.default ? (P(), d("div",
|
|
29479
|
+
t.$slots.default ? (P(), d("div", y5t, [B(t.$slots, "default", {}, void 0, !0)])) : u("", !0)
|
|
29464
29480
|
], 64))])]),
|
|
29465
|
-
f("div",
|
|
29481
|
+
f("div", b5t, [e.collapsed && L.value.length > 0 ? (P(), d("div", {
|
|
29466
29482
|
key: 0,
|
|
29467
29483
|
class: T(["nb-blueprint-card__port-combined nb-blueprint-card__port-combined--right", {
|
|
29468
29484
|
"nb-blueprint-card__port-combined--connected": re.value,
|
|
29469
29485
|
"nb-blueprint-card__port-combined--active": ie.value
|
|
29470
29486
|
}]),
|
|
29471
29487
|
title: `${L.value.length} output${L.value.length === 1 ? "" : "s"}`
|
|
29472
|
-
}, null, 10,
|
|
29488
|
+
}, null, 10, x5t)) : u("", !0), (P(!0), d(n, null, z(L.value, (t) => (P(), d("div", {
|
|
29473
29489
|
key: t.key,
|
|
29474
29490
|
class: "nb-blueprint-card__port-slot"
|
|
29475
29491
|
}, [f("button", {
|
|
@@ -29510,10 +29526,10 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29510
29526
|
v(t, "output")
|
|
29511
29527
|
]]),
|
|
29512
29528
|
style: E(w(t))
|
|
29513
|
-
}, null, 14,
|
|
29514
|
-
], 46,
|
|
29529
|
+
}, null, 14, C5t)], 40, S5t), t.showLabel ? (P(), d("span", w5t, U(oe(t)), 1)) : u("", !0)]))), 128))])
|
|
29530
|
+
], 46, Q8t));
|
|
29515
29531
|
}
|
|
29516
|
-
}), [["__scopeId", "data-v-abebdb9e"]]),
|
|
29532
|
+
}), [["__scopeId", "data-v-abebdb9e"]]), O5t = { class: "nb-blueprint-controls__group" }, k5t = {
|
|
29517
29533
|
key: 0,
|
|
29518
29534
|
class: "nb-blueprint-controls__group"
|
|
29519
29535
|
}, s7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
@@ -29538,7 +29554,7 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29538
29554
|
class: T(["nb-blueprint-controls", [`nb-blueprint-controls--${e.position}`, `is-${e.orientation}`]]),
|
|
29539
29555
|
role: "toolbar",
|
|
29540
29556
|
"aria-label": "Blueprint controls"
|
|
29541
|
-
}, [f("div",
|
|
29557
|
+
}, [f("div", O5t, [
|
|
29542
29558
|
h(q2, {
|
|
29543
29559
|
variant: "ghost",
|
|
29544
29560
|
size: K(t),
|
|
@@ -29580,7 +29596,7 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29580
29596
|
"aria-label": "Auto layout",
|
|
29581
29597
|
onClick: o[4] ||= (e) => K(r).autoLayout()
|
|
29582
29598
|
}, null, 8, ["size"])) : u("", !0)
|
|
29583
|
-
]), a.value ? (P(), d("div",
|
|
29599
|
+
]), a.value ? (P(), d("div", k5t, [
|
|
29584
29600
|
h(q2, {
|
|
29585
29601
|
variant: "ghost",
|
|
29586
29602
|
size: K(t),
|
|
@@ -29647,22 +29663,22 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29647
29663
|
}, null, 8, ["size"])
|
|
29648
29664
|
])) : u("", !0)], 2)) : u("", !0);
|
|
29649
29665
|
}
|
|
29650
|
-
}), [["__scopeId", "data-v-9da072b6"]]),
|
|
29666
|
+
}), [["__scopeId", "data-v-9da072b6"]]), A5t = [
|
|
29651
29667
|
"width",
|
|
29652
29668
|
"height",
|
|
29653
29669
|
"viewBox"
|
|
29654
|
-
],
|
|
29670
|
+
], j5t = ["width", "height"], M5t = { key: 0 }, N5t = [
|
|
29655
29671
|
"x",
|
|
29656
29672
|
"y",
|
|
29657
29673
|
"width",
|
|
29658
29674
|
"height",
|
|
29659
29675
|
"fill"
|
|
29660
|
-
],
|
|
29676
|
+
], P5t = [
|
|
29661
29677
|
"x",
|
|
29662
29678
|
"y",
|
|
29663
29679
|
"width",
|
|
29664
29680
|
"height"
|
|
29665
|
-
],
|
|
29681
|
+
], F5t = 220, I5t = 120, c7 = 10, l7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
29666
29682
|
__name: "BlueprintMinimap",
|
|
29667
29683
|
props: {
|
|
29668
29684
|
cards: {},
|
|
@@ -29681,8 +29697,8 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29681
29697
|
return {
|
|
29682
29698
|
x: e.x,
|
|
29683
29699
|
y: e.y,
|
|
29684
|
-
w: e.width ??
|
|
29685
|
-
h: e.height ??
|
|
29700
|
+
w: e.width ?? F5t,
|
|
29701
|
+
h: e.height ?? I5t
|
|
29686
29702
|
};
|
|
29687
29703
|
}
|
|
29688
29704
|
let a = s(() => {
|
|
@@ -29783,7 +29799,7 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29783
29799
|
width: e.width,
|
|
29784
29800
|
height: e.height,
|
|
29785
29801
|
rx: "8"
|
|
29786
|
-
}, null, 8,
|
|
29802
|
+
}, null, 8, j5t), c.value ? (P(), d("g", M5t, [(P(!0), d(n, null, z(p.value, (e) => (P(), d("rect", {
|
|
29787
29803
|
key: e.id,
|
|
29788
29804
|
class: "nb-blueprint-minimap__node",
|
|
29789
29805
|
x: e.x,
|
|
@@ -29792,17 +29808,17 @@ var a7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
|
29792
29808
|
height: e.h,
|
|
29793
29809
|
fill: e.color,
|
|
29794
29810
|
rx: "1.5"
|
|
29795
|
-
}, null, 8,
|
|
29811
|
+
}, null, 8, N5t))), 128)), f("rect", {
|
|
29796
29812
|
class: "nb-blueprint-minimap__viewport",
|
|
29797
29813
|
x: m.value.x,
|
|
29798
29814
|
y: m.value.y,
|
|
29799
29815
|
width: m.value.w,
|
|
29800
29816
|
height: m.value.h,
|
|
29801
29817
|
rx: "2"
|
|
29802
|
-
}, null, 8,
|
|
29818
|
+
}, null, 8, P5t)])) : u("", !0)], 42, A5t));
|
|
29803
29819
|
}
|
|
29804
29820
|
}), [["__scopeId", "data-v-959b4274"]]), u7 = "nb:walkthrough:";
|
|
29805
|
-
function
|
|
29821
|
+
function L5t(e) {
|
|
29806
29822
|
return !!e && typeof e == "object" && typeof e.version == "number";
|
|
29807
29823
|
}
|
|
29808
29824
|
function d7(e = u7) {
|
|
@@ -29813,7 +29829,7 @@ function d7(e = u7) {
|
|
|
29813
29829
|
let n = window.localStorage.getItem(t(e));
|
|
29814
29830
|
if (!n) return null;
|
|
29815
29831
|
let r = JSON.parse(n);
|
|
29816
|
-
return
|
|
29832
|
+
return L5t(r) ? r : null;
|
|
29817
29833
|
} catch {
|
|
29818
29834
|
return null;
|
|
29819
29835
|
}
|
|
@@ -29843,13 +29859,13 @@ function p7() {
|
|
|
29843
29859
|
}
|
|
29844
29860
|
//#endregion
|
|
29845
29861
|
//#region src/composables/useWalkthrough.composable.ts
|
|
29846
|
-
var
|
|
29862
|
+
var R5t = {
|
|
29847
29863
|
id: "",
|
|
29848
29864
|
version: 1,
|
|
29849
29865
|
steps: []
|
|
29850
29866
|
};
|
|
29851
29867
|
function m7(e, t = {}) {
|
|
29852
|
-
let n = t.storage ?? p7(), r = s(() => G(e) ??
|
|
29868
|
+
let n = t.storage ?? p7(), r = s(() => G(e) ?? R5t), i = s(() => r.value.steps ?? []), a = s(() => i.value.length), o = R(!1), c = R(0), l = s(() => i.value[c.value]), u = s(() => c.value === 0), d = s(() => c.value >= Math.max(0, a.value - 1));
|
|
29853
29869
|
function f() {
|
|
29854
29870
|
let e = l.value;
|
|
29855
29871
|
e && t.onStepChange?.(e, c.value);
|
|
@@ -29926,13 +29942,13 @@ function m7(e, t = {}) {
|
|
|
29926
29942
|
//#endregion
|
|
29927
29943
|
//#region src/utils/tourTarget.helper.ts
|
|
29928
29944
|
var h7 = "data-nb-tour-step";
|
|
29929
|
-
function
|
|
29945
|
+
function z5t(e) {
|
|
29930
29946
|
return typeof CSS < "u" && typeof CSS.escape == "function" ? CSS.escape(e) : e.replace(/["\\]/g, "\\$&");
|
|
29931
29947
|
}
|
|
29932
29948
|
function g7(e) {
|
|
29933
|
-
return `[${h7}="${
|
|
29949
|
+
return `[${h7}="${z5t(e)}"]`;
|
|
29934
29950
|
}
|
|
29935
|
-
function
|
|
29951
|
+
function B5t(e) {
|
|
29936
29952
|
return !!e && typeof e == "object" && "value" in e;
|
|
29937
29953
|
}
|
|
29938
29954
|
function _7(e, t = typeof document < "u" ? document : void 0) {
|
|
@@ -29940,7 +29956,7 @@ function _7(e, t = typeof document < "u" ? document : void 0) {
|
|
|
29940
29956
|
if (typeof e == "function") return e() ?? null;
|
|
29941
29957
|
if (typeof e == "object") {
|
|
29942
29958
|
if (e instanceof HTMLElement) return e;
|
|
29943
|
-
if (
|
|
29959
|
+
if (B5t(e)) {
|
|
29944
29960
|
let t = e.value;
|
|
29945
29961
|
return t instanceof HTMLElement ? t : null;
|
|
29946
29962
|
}
|
|
@@ -29961,26 +29977,26 @@ function v7(e) {
|
|
|
29961
29977
|
}
|
|
29962
29978
|
//#endregion
|
|
29963
29979
|
//#region src/components/Walkthrough.vue?vue&type=script&setup=true&lang.ts
|
|
29964
|
-
var
|
|
29980
|
+
var V5t = ["viewBox"], H5t = ["width", "height"], U5t = [
|
|
29965
29981
|
"x",
|
|
29966
29982
|
"y",
|
|
29967
29983
|
"width",
|
|
29968
29984
|
"height",
|
|
29969
29985
|
"rx"
|
|
29970
|
-
],
|
|
29986
|
+
], W5t = [
|
|
29971
29987
|
"width",
|
|
29972
29988
|
"height",
|
|
29973
29989
|
"mask"
|
|
29974
|
-
],
|
|
29990
|
+
], G5t = [
|
|
29975
29991
|
"x",
|
|
29976
29992
|
"y",
|
|
29977
29993
|
"width",
|
|
29978
29994
|
"height",
|
|
29979
29995
|
"rx"
|
|
29980
|
-
],
|
|
29996
|
+
], K5t = ["aria-label", "aria-labelledby"], q5t = { class: "nb-walkthrough--footer" }, J5t = {
|
|
29981
29997
|
class: "nb-walkthrough--progress",
|
|
29982
29998
|
"aria-live": "polite"
|
|
29983
|
-
},
|
|
29999
|
+
}, Y5t = { class: "nb-walkthrough--actions" }, y7 = /* @__PURE__ */ Q(/* @__PURE__ */ _({
|
|
29984
30000
|
__name: "Walkthrough",
|
|
29985
30001
|
props: {
|
|
29986
30002
|
walkthrough: { default: void 0 },
|
|
@@ -30176,7 +30192,7 @@ var L5t = ["viewBox"], R5t = ["width", "height"], z5t = [
|
|
|
30176
30192
|
width: k.value.width,
|
|
30177
30193
|
height: k.value.height,
|
|
30178
30194
|
fill: "white"
|
|
30179
|
-
}, null, 8,
|
|
30195
|
+
}, null, 8, H5t), W.value ? (P(), d("rect", {
|
|
30180
30196
|
key: 0,
|
|
30181
30197
|
x: W.value.left,
|
|
30182
30198
|
y: W.value.top,
|
|
@@ -30184,7 +30200,7 @@ var L5t = ["viewBox"], R5t = ["width", "height"], z5t = [
|
|
|
30184
30200
|
height: W.value.height,
|
|
30185
30201
|
rx: G.value,
|
|
30186
30202
|
fill: "black"
|
|
30187
|
-
}, null, 8,
|
|
30203
|
+
}, null, 8, U5t)) : u("", !0)])]),
|
|
30188
30204
|
f("rect", {
|
|
30189
30205
|
class: "nb-walkthrough--scrim-fill",
|
|
30190
30206
|
x: "0",
|
|
@@ -30192,7 +30208,7 @@ var L5t = ["viewBox"], R5t = ["width", "height"], z5t = [
|
|
|
30192
30208
|
width: k.value.width,
|
|
30193
30209
|
height: k.value.height,
|
|
30194
30210
|
mask: `url(#${_})`
|
|
30195
|
-
}, null, 8,
|
|
30211
|
+
}, null, 8, W5t),
|
|
30196
30212
|
W.value ? (P(), d("rect", {
|
|
30197
30213
|
key: 0,
|
|
30198
30214
|
class: "nb-walkthrough--ring",
|
|
@@ -30201,8 +30217,8 @@ var L5t = ["viewBox"], R5t = ["width", "height"], z5t = [
|
|
|
30201
30217
|
width: W.value.width,
|
|
30202
30218
|
height: W.value.height,
|
|
30203
30219
|
rx: G.value
|
|
30204
|
-
}, null, 8,
|
|
30205
|
-
], 8,
|
|
30220
|
+
}, null, 8, G5t)) : u("", !0)
|
|
30221
|
+
], 8, V5t)), f("div", C({
|
|
30206
30222
|
ref_key: "popoverRef",
|
|
30207
30223
|
ref: S,
|
|
30208
30224
|
class: [
|
|
@@ -30237,14 +30253,14 @@ var L5t = ["viewBox"], R5t = ["width", "height"], z5t = [
|
|
|
30237
30253
|
index: z.value,
|
|
30238
30254
|
total: V.value
|
|
30239
30255
|
}, () => [m(U(L.value?.body), 1)], !0)]),
|
|
30240
|
-
f("div",
|
|
30256
|
+
f("div", q5t, [f("p", J5t, U(H.value.progress(z.value + 1, V.value)), 1), B(t.$slots, "actions", {
|
|
30241
30257
|
step: L.value,
|
|
30242
30258
|
index: z.value,
|
|
30243
30259
|
total: V.value,
|
|
30244
30260
|
back: ue,
|
|
30245
30261
|
next: le,
|
|
30246
30262
|
skip: fe
|
|
30247
|
-
}, () => [f("div",
|
|
30263
|
+
}, () => [f("div", Y5t, [
|
|
30248
30264
|
K(p).isLast.value ? u("", !0) : (P(), l(q2, {
|
|
30249
30265
|
key: 0,
|
|
30250
30266
|
variant: "ghost",
|
|
@@ -30273,9 +30289,9 @@ var L5t = ["viewBox"], R5t = ["width", "height"], z5t = [
|
|
|
30273
30289
|
_: 1
|
|
30274
30290
|
})
|
|
30275
30291
|
])], !0)])
|
|
30276
|
-
], 16,
|
|
30292
|
+
], 16, K5t)], 2)) : u("", !0)], 8, ["to"]));
|
|
30277
30293
|
}
|
|
30278
|
-
}), [["__scopeId", "data-v-902c67c9"]]),
|
|
30294
|
+
}), [["__scopeId", "data-v-902c67c9"]]), X5t = {
|
|
30279
30295
|
NbAccordion: pe,
|
|
30280
30296
|
NbAccordionItem: u2,
|
|
30281
30297
|
NbAiLabel: p2,
|
|
@@ -30362,12 +30378,12 @@ var L5t = ["viewBox"], R5t = ["width", "height"], z5t = [
|
|
|
30362
30378
|
NbBlueprintControls: s7,
|
|
30363
30379
|
NbBlueprintMinimap: l7,
|
|
30364
30380
|
NbWalkthrough: y7
|
|
30365
|
-
},
|
|
30366
|
-
Object.entries(
|
|
30381
|
+
}, Z5t = { install(e) {
|
|
30382
|
+
Object.entries(X5t).forEach(([t, n]) => {
|
|
30367
30383
|
e.component(t, n);
|
|
30368
30384
|
});
|
|
30369
|
-
} },
|
|
30370
|
-
function
|
|
30385
|
+
} }, Q5t = /* @__PURE__ */ ue({ default: () => $5t });
|
|
30386
|
+
function $5t(e) {
|
|
30371
30387
|
e.directive("nb-context-menu", {
|
|
30372
30388
|
mounted(e, t) {
|
|
30373
30389
|
let n = (e) => {
|
|
@@ -30395,7 +30411,7 @@ function Y5t(e) {
|
|
|
30395
30411
|
}
|
|
30396
30412
|
//#endregion
|
|
30397
30413
|
//#region src/directives/ToolTip.content.ts
|
|
30398
|
-
var
|
|
30414
|
+
var e7t = /* @__PURE__ */ ue({
|
|
30399
30415
|
devWarn: () => T7,
|
|
30400
30416
|
renderTooltipContent: () => D7
|
|
30401
30417
|
}), b7 = new Set([
|
|
@@ -30415,17 +30431,17 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30415
30431
|
"ul",
|
|
30416
30432
|
"ol",
|
|
30417
30433
|
"li"
|
|
30418
|
-
]),
|
|
30434
|
+
]), t7t = new Set(["br"]), x7 = new Set([
|
|
30419
30435
|
"class",
|
|
30420
30436
|
"style",
|
|
30421
30437
|
"dir",
|
|
30422
30438
|
"lang"
|
|
30423
|
-
]),
|
|
30439
|
+
]), n7t = (e) => e.replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), r7t = new Set(/* @__PURE__ */ "color.background-color.font-family.font-size.font-style.font-variant.font-weight.letter-spacing.line-height.text-align.text-decoration.text-transform.white-space.word-break.overflow-wrap.opacity.display.flex-direction.align-items.justify-content.gap.margin.margin-top.margin-right.margin-bottom.margin-left.padding.padding-top.padding-right.padding-bottom.padding-left.max-width.min-width.border-radius".split(".")), i7t = /url\(|image-set\(|expression\(|javascript:|@import|\\/i, a7t = /^[A-Za-z_-][A-Za-z0-9_-]*$/, o7t = (e) => e.split(";").map((e) => {
|
|
30424
30440
|
let t = e.indexOf(":");
|
|
30425
30441
|
if (t < 0) return "";
|
|
30426
30442
|
let n = e.slice(0, t).trim().toLowerCase(), r = e.slice(t + 1).trim();
|
|
30427
|
-
return !n || !r ? "" :
|
|
30428
|
-
}).filter(Boolean).join("; "),
|
|
30443
|
+
return !n || !r ? "" : r7t.has(n) ? i7t.test(r) ? (T7(`style-value:${n}`, `The value of "${n}" was dropped: tooltip content may not load a resource or call a CSS function that does.`), "") : `${n}: ${r}` : (T7(`style:${n}`, `"${n}" is not an allowed tooltip content style property and was dropped.`), "");
|
|
30444
|
+
}).filter(Boolean).join("; "), s7t = (e) => e.split(/\s+/).filter((e) => e ? a7t.test(e) ? !0 : (T7(`class:${e}`, `"${e}" is not a valid class token for tooltip content and was dropped.`), !1) : !1).join(" "), c7t = (e, t) => e === "style" ? o7t(t) : e === "class" ? s7t(t) : t, l7t = new Set([
|
|
30429
30445
|
"b",
|
|
30430
30446
|
"strong",
|
|
30431
30447
|
"em",
|
|
@@ -30437,15 +30453,15 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30437
30453
|
"kbd",
|
|
30438
30454
|
"br",
|
|
30439
30455
|
"p"
|
|
30440
|
-
]),
|
|
30456
|
+
]), u7t = {
|
|
30441
30457
|
"<": "<",
|
|
30442
30458
|
">": ">",
|
|
30443
30459
|
"\"": """,
|
|
30444
30460
|
"'": "'"
|
|
30445
|
-
}, S7 = (e) => e.replace(/&(?!(?:[a-zA-Z][a-zA-Z0-9]{1,10}|#\d{1,7}|#[xX][0-9a-fA-F]{1,6});)/g, "&").replace(/[<>"']/g, (e) =>
|
|
30461
|
+
}, S7 = (e) => e.replace(/&(?!(?:[a-zA-Z][a-zA-Z0-9]{1,10}|#\d{1,7}|#[xX][0-9a-fA-F]{1,6});)/g, "&").replace(/[<>"']/g, (e) => u7t[e]), C7 = (e) => e.split(/(<[^<>]*>)/g).map((e) => {
|
|
30446
30462
|
if (e.startsWith("<") && e.endsWith(">")) {
|
|
30447
30463
|
let t = /^<\s*(\/?)\s*([a-zA-Z][a-zA-Z0-9]*)\s*\/?\s*>$/.exec(e), n = t?.[2]?.toLowerCase();
|
|
30448
|
-
return n &&
|
|
30464
|
+
return n && l7t.has(n) ? `<${t[1]}${n}>` : (n && T7(`string-tag:${n}`, `<${n}> is not allowed in a tooltip string and was shown as text. Use the structured content form for anything richer.`), S7(e));
|
|
30449
30465
|
}
|
|
30450
30466
|
return S7(e).replace(/\n/g, "<br>");
|
|
30451
30467
|
}).join(""), w7 = /* @__PURE__ */ new Set(), T7 = (e, t) => {
|
|
@@ -30455,29 +30471,29 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30455
30471
|
if (!e || typeof e != "object" || !e.component) return "";
|
|
30456
30472
|
let { component: t, props: n = {}, children: r, content: i } = e, a = r === void 0 ? i : r, o = Array.isArray(a) ? E7(a) : a === void 0 ? "" : C7(String(a)), s = String(t).toLowerCase();
|
|
30457
30473
|
if (!b7.has(s)) return T7(`tag:${s}`, `<${s}> is not allowed in tooltip content and was dropped. Allowed tags: ${[...b7].join(", ")}.`), o;
|
|
30458
|
-
let c = Object.entries(n).filter(([e]) => x7.has(e) ? !0 : (T7(`prop:${e}`, `"${e}" is not an allowed tooltip content prop and was dropped. Allowed props: ${[...x7].join(", ")}.`), !1)).map(([e, t]) => [e,
|
|
30459
|
-
return
|
|
30460
|
-
}, D7 = (e) => e ? typeof e == "string" ? C7(e) : Array.isArray(e) ? E7(e) : "" : "",
|
|
30474
|
+
let c = Object.entries(n).filter(([e]) => x7.has(e) ? !0 : (T7(`prop:${e}`, `"${e}" is not an allowed tooltip content prop and was dropped. Allowed props: ${[...x7].join(", ")}.`), !1)).map(([e, t]) => [e, c7t(e, String(t))]).filter(([, e]) => e !== "").map(([e, t]) => `${e}="${n7t(t)}"`).join(" "), l = `<${s}${c ? ` ${c}` : ""}>`;
|
|
30475
|
+
return t7t.has(s) ? l : `${l}${o}</${s}>`;
|
|
30476
|
+
}, D7 = (e) => e ? typeof e == "string" ? C7(e) : Array.isArray(e) ? E7(e) : "" : "", d7t = /* @__PURE__ */ ue({
|
|
30461
30477
|
default: () => f9,
|
|
30462
30478
|
dismissAllTooltips: () => x9
|
|
30463
|
-
}), O7 = (e) => e.status ?? e.flavor ?? "default", k7 = (e) => e.chipClass ?? e.classExtra, A7 = /* @__PURE__ */ new Set(),
|
|
30479
|
+
}), O7 = (e) => e.status ?? e.flavor ?? "default", k7 = (e) => e.chipClass ?? e.classExtra, A7 = /* @__PURE__ */ new Set(), f7t = 0, p7t = () => `nb-tooltip-${++f7t}`, m7t = 900, j7 = 4e3, h7t = 500, M7 = 0, N7 = (e, t) => {
|
|
30464
30480
|
if (!e) return !1;
|
|
30465
30481
|
let n = Date.now() - e;
|
|
30466
30482
|
return n >= 0 && n < t;
|
|
30467
|
-
}, P7 = !1,
|
|
30483
|
+
}, P7 = !1, g7t = () => {
|
|
30468
30484
|
if (P7 || typeof document > "u") return;
|
|
30469
30485
|
P7 = !0;
|
|
30470
30486
|
let e = (e) => {
|
|
30471
30487
|
if (A7.size === 0) return;
|
|
30472
30488
|
let t = e?.target;
|
|
30473
|
-
t instanceof Element && t.closest(".nb-tooltip") ||
|
|
30489
|
+
t instanceof Element && t.closest(".nb-tooltip") || V7t("dismiss");
|
|
30474
30490
|
};
|
|
30475
30491
|
document.addEventListener("pointerdown", () => {
|
|
30476
30492
|
M7 = Date.now();
|
|
30477
30493
|
}, !0), document.addEventListener("dragstart", () => e(), !0), document.addEventListener("keydown", (t) => {
|
|
30478
30494
|
t.key === "Escape" && e();
|
|
30479
30495
|
}, !0), document.addEventListener("pointerdown", e, !0), window.addEventListener("blur", e), document.addEventListener("mouseleave", e);
|
|
30480
|
-
}, F7 = 200, I7 = 1e3,
|
|
30496
|
+
}, F7 = 200, I7 = 1e3, _7t = 2, v7t = (e) => {
|
|
30481
30497
|
let t = e.tooltipElement;
|
|
30482
30498
|
if (!t) return !1;
|
|
30483
30499
|
if (t.__hovered__) return !0;
|
|
@@ -30486,9 +30502,9 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30486
30502
|
} catch {
|
|
30487
30503
|
return !1;
|
|
30488
30504
|
}
|
|
30489
|
-
},
|
|
30505
|
+
}, y7t = (e) => {
|
|
30490
30506
|
if (!e.isConnected) return !1;
|
|
30491
|
-
if (
|
|
30507
|
+
if (v7t(e) || e.__trigger__ === "focus" && e.contains(document.activeElement) || e.__trigger__ === "touch" && N7(e.__lastTouchAt__, j7)) return !0;
|
|
30492
30508
|
try {
|
|
30493
30509
|
return e.matches(":hover");
|
|
30494
30510
|
} catch {
|
|
@@ -30496,20 +30512,20 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30496
30512
|
}
|
|
30497
30513
|
}, L7 = (e) => {
|
|
30498
30514
|
clearTimeout(e.__watchdogTimer__), e.__watchdogTimer__ = void 0, e.__watchdogMisses__ = 0;
|
|
30499
|
-
},
|
|
30515
|
+
}, b7t = (e) => {
|
|
30500
30516
|
L7(e);
|
|
30501
30517
|
let t = () => {
|
|
30502
30518
|
if (!e.__chips__?.size) {
|
|
30503
30519
|
L7(e);
|
|
30504
30520
|
return;
|
|
30505
30521
|
}
|
|
30506
|
-
if (
|
|
30522
|
+
if (y7t(e)) e.__watchdogMisses__ = 0;
|
|
30507
30523
|
else {
|
|
30508
30524
|
if (e.__watchdogMisses__ = (e.__watchdogMisses__ ?? 0) + 1, !e.isConnected) {
|
|
30509
30525
|
_9(e, !0, "program");
|
|
30510
30526
|
return;
|
|
30511
30527
|
}
|
|
30512
|
-
if (e.__watchdogMisses__ >=
|
|
30528
|
+
if (e.__watchdogMisses__ >= _7t) {
|
|
30513
30529
|
g9(e, "dismiss");
|
|
30514
30530
|
return;
|
|
30515
30531
|
}
|
|
@@ -30517,7 +30533,7 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30517
30533
|
e.__watchdogTimer__ = setTimeout(t, I7);
|
|
30518
30534
|
};
|
|
30519
30535
|
e.__watchdogTimer__ = setTimeout(t, I7);
|
|
30520
|
-
}, R7 = /* @__PURE__ */ new Set(), z7 = null, B7 = (e) => `${Math.round(e.top)}:${Math.round(e.left)}:${Math.round(e.width)}:${Math.round(e.height)}`,
|
|
30536
|
+
}, R7 = /* @__PURE__ */ new Set(), z7 = null, B7 = (e) => `${Math.round(e.top)}:${Math.round(e.left)}:${Math.round(e.width)}:${Math.round(e.height)}`, x7t = (e) => {
|
|
30521
30537
|
if (typeof getComputedStyle != "function") return !1;
|
|
30522
30538
|
let t;
|
|
30523
30539
|
try {
|
|
@@ -30527,11 +30543,11 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30527
30543
|
}
|
|
30528
30544
|
let n = `${t.overflow} ${t.overflowX} ${t.overflowY}`;
|
|
30529
30545
|
return /hidden|scroll|auto|clip|overlay/.test(n);
|
|
30530
|
-
},
|
|
30546
|
+
}, S7t = (e) => {
|
|
30531
30547
|
let t = [], n = e.parentElement;
|
|
30532
|
-
for (; n && n !== document.body && n !== document.documentElement;)
|
|
30548
|
+
for (; n && n !== document.body && n !== document.documentElement;) x7t(n) && t.push(n), n = n.parentElement;
|
|
30533
30549
|
return t;
|
|
30534
|
-
}, V7 = (e) => !(e.width === 0 && e.height === 0 && e.top === 0 && e.left === 0),
|
|
30550
|
+
}, V7 = (e) => !(e.width === 0 && e.height === 0 && e.top === 0 && e.left === 0), C7t = (e, t) => {
|
|
30535
30551
|
if (!e.isConnected) return !1;
|
|
30536
30552
|
if (!V7(t)) return !0;
|
|
30537
30553
|
if (t.width === 0 || t.height === 0 || !(t.bottom > 0 && t.right > 0 && t.top < window.innerHeight && t.left < window.innerWidth)) return !1;
|
|
@@ -30548,7 +30564,7 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30548
30564
|
return;
|
|
30549
30565
|
}
|
|
30550
30566
|
let n = e.getBoundingClientRect();
|
|
30551
|
-
if (!
|
|
30567
|
+
if (!C7t(e, n)) {
|
|
30552
30568
|
e.__offscreenReported__ || (e.__offscreenReported__ = !0, g9(e, "dismiss"));
|
|
30553
30569
|
return;
|
|
30554
30570
|
}
|
|
@@ -30556,15 +30572,15 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30556
30572
|
}, U7 = () => {
|
|
30557
30573
|
K7();
|
|
30558
30574
|
for (let e of Array.from(R7)) H7(e);
|
|
30559
|
-
},
|
|
30560
|
-
G7 = Date.now() +
|
|
30575
|
+
}, w7t = 100, T7t = 320, W7 = 0, G7 = 0, K7 = () => {
|
|
30576
|
+
G7 = Date.now() + T7t;
|
|
30561
30577
|
}, q7 = () => {
|
|
30562
30578
|
if (R7.size === 0) {
|
|
30563
30579
|
z7 = null;
|
|
30564
30580
|
return;
|
|
30565
30581
|
}
|
|
30566
30582
|
let e = Date.now();
|
|
30567
|
-
if (e >= G7 && e - W7 <
|
|
30583
|
+
if (e >= G7 && e - W7 < w7t) {
|
|
30568
30584
|
z7 = requestAnimationFrame(q7);
|
|
30569
30585
|
return;
|
|
30570
30586
|
}
|
|
@@ -30577,14 +30593,14 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30577
30593
|
B7(e.getBoundingClientRect()) !== e.__lastRect__ && (K7(), H7(e));
|
|
30578
30594
|
}
|
|
30579
30595
|
z7 = requestAnimationFrame(q7);
|
|
30580
|
-
}, J7 = !1,
|
|
30581
|
-
R7.add(e), e.__lastRect__ = void 0, e.__clippers__ =
|
|
30596
|
+
}, J7 = !1, E7t = (e) => {
|
|
30597
|
+
R7.add(e), e.__lastRect__ = void 0, e.__clippers__ = S7t(e), !(typeof window > "u") && (J7 || (J7 = !0, document.addEventListener("scroll", U7, {
|
|
30582
30598
|
capture: !0,
|
|
30583
30599
|
passive: !0
|
|
30584
30600
|
}), window.addEventListener("resize", U7, { passive: !0 })), z7 === null && typeof requestAnimationFrame == "function" && (z7 = requestAnimationFrame(q7)));
|
|
30585
30601
|
}, Y7 = (e) => {
|
|
30586
30602
|
R7.delete(e), e.__lastRect__ = void 0, e.__clippers__ = void 0, !(R7.size > 0 || typeof window > "u") && (J7 && (J7 = !1, document.removeEventListener("scroll", U7, { capture: !0 }), window.removeEventListener("resize", U7)), z7 !== null && typeof cancelAnimationFrame == "function" && (cancelAnimationFrame(z7), z7 = null));
|
|
30587
|
-
},
|
|
30603
|
+
}, D7t = (e, t, n) => {
|
|
30588
30604
|
if (e.__chips__?.delete(t), clearTimeout(t.__removeTimer__), t.__removeTimer__ = void 0, n || m8()) {
|
|
30589
30605
|
t.remove();
|
|
30590
30606
|
return;
|
|
@@ -30593,7 +30609,7 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30593
30609
|
t.__removeTimer__ = void 0, t.remove();
|
|
30594
30610
|
}, F7);
|
|
30595
30611
|
}, X7 = (e, t) => {
|
|
30596
|
-
if (Y7(e), e.__trigger__ = void 0, e.__side__ = void 0, e.__chips__) for (let n of Array.from(e.__chips__))
|
|
30612
|
+
if (Y7(e), e.__trigger__ = void 0, e.__side__ = void 0, e.__chips__) for (let n of Array.from(e.__chips__)) D7t(e, n, t);
|
|
30597
30613
|
e.tooltipElement = void 0, e.__lastContent__ = void 0, L7(e);
|
|
30598
30614
|
}, Z7 = "a[href], button, input, select, textarea, summary, [tabindex]", Q7 = "data-nb-tooltip-anchor", $7 = (e, t) => {
|
|
30599
30615
|
let n = t.target;
|
|
@@ -30613,14 +30629,14 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30613
30629
|
e9(e.header),
|
|
30614
30630
|
e9(e.body),
|
|
30615
30631
|
e9(e.tip)
|
|
30616
|
-
].filter(Boolean).join(". "),
|
|
30632
|
+
].filter(Boolean).join(". "), O7t = (e) => {
|
|
30617
30633
|
if (e.hasAttribute("aria-labelledby") || e.hasAttribute("aria-label") && !e.__ownsAriaLabel__ || e.hasAttribute("title") || (e.textContent ?? "").trim().length > 0) return !0;
|
|
30618
30634
|
let t = e.querySelector("img[alt]");
|
|
30619
30635
|
return !!t && (t.getAttribute("alt") ?? "").trim().length > 0;
|
|
30620
30636
|
}, n9 = (e, t) => {
|
|
30621
30637
|
let n = t.aria ?? "auto";
|
|
30622
|
-
return n === "auto" ?
|
|
30623
|
-
},
|
|
30638
|
+
return n === "auto" ? O7t(e) ? "description" : "label" : n;
|
|
30639
|
+
}, k7t = (e, t) => {
|
|
30624
30640
|
if (!t || n9(e, t) !== "label") {
|
|
30625
30641
|
e.__ownsAriaLabel__ &&= (e.removeAttribute("aria-label"), !1), e.__ownsRole__ &&= (e.removeAttribute("role"), !1);
|
|
30626
30642
|
return;
|
|
@@ -30635,13 +30651,13 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30635
30651
|
return;
|
|
30636
30652
|
}
|
|
30637
30653
|
!n && e.__ownsTabIndex__ && (e.removeAttribute("tabindex"), e.__ownsTabIndex__ = !1);
|
|
30638
|
-
},
|
|
30654
|
+
}, A7t = (e, t) => {
|
|
30639
30655
|
e.__prevDescribedBy__ = e.getAttribute("aria-describedby");
|
|
30640
30656
|
let n = [e.__prevDescribedBy__, t].filter(Boolean).join(" ");
|
|
30641
30657
|
e.setAttribute("aria-describedby", n);
|
|
30642
|
-
},
|
|
30658
|
+
}, j7t = (e) => {
|
|
30643
30659
|
e.__prevDescribedBy__ !== void 0 && (e.__prevDescribedBy__ ? e.setAttribute("aria-describedby", e.__prevDescribedBy__) : e.removeAttribute("aria-describedby"), e.__prevDescribedBy__ = void 0);
|
|
30644
|
-
},
|
|
30660
|
+
}, M7t = "nb-tooltip-description", i9 = (e) => !!e && !!(e.body || e.header || e.tip), N7t = (e, t) => {
|
|
30645
30661
|
if (typeof document > "u") return;
|
|
30646
30662
|
let n = t && i9(t) && n9(e, t) === "description" ? t9(t) : "";
|
|
30647
30663
|
if (!n) {
|
|
@@ -30649,10 +30665,10 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30649
30665
|
return;
|
|
30650
30666
|
}
|
|
30651
30667
|
let r = e.__descNode__;
|
|
30652
|
-
r || (r = document.createElement("span"), r.className =
|
|
30668
|
+
r || (r = document.createElement("span"), r.className = M7t, r.id = p7t(), r.setAttribute("role", "tooltip"), document.body.appendChild(r), e.__descNode__ = r, A7t(e, r.id)), e.__descText__ !== n && (r.textContent = n, e.__descText__ = n);
|
|
30653
30669
|
}, a9 = (e) => {
|
|
30654
|
-
e.__descNode__ && (
|
|
30655
|
-
},
|
|
30670
|
+
e.__descNode__ && (j7t(e), e.__descNode__.remove(), e.__descNode__ = void 0, e.__descText__ = void 0);
|
|
30671
|
+
}, P7t = (e, t) => {
|
|
30656
30672
|
if (i9(t)) {
|
|
30657
30673
|
e.__prevTitle__ === void 0 && e.hasAttribute("title") && (e.__prevTitle__ = e.getAttribute("title") ?? "", e.removeAttribute("title"));
|
|
30658
30674
|
return;
|
|
@@ -30661,17 +30677,17 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30661
30677
|
}, o9 = (e) => {
|
|
30662
30678
|
e.__prevTitle__ !== void 0 && (e.hasAttribute("title") || e.setAttribute("title", e.__prevTitle__), e.__prevTitle__ = void 0);
|
|
30663
30679
|
}, s9 = (e, t) => {
|
|
30664
|
-
|
|
30665
|
-
},
|
|
30680
|
+
P7t(e, t), k7t(e, t), N7t(e, t);
|
|
30681
|
+
}, F7t = (e) => e.disabled === !0 ? !0 : !!e.closest?.("fieldset[disabled]") && !e.closest?.("fieldset[disabled] > legend:first-of-type"), I7t = (e, t, n) => t >= e.left && t <= e.right && n >= e.top && n <= e.bottom, c9 = (e) => {
|
|
30666
30682
|
let t = e.__proxyHost__;
|
|
30667
30683
|
t && (e.__proxyMove__ && t.removeEventListener("mousemove", e.__proxyMove__), e.__proxyLeave__ && t.removeEventListener("mouseleave", e.__proxyLeave__), e.__proxyHost__ = void 0, e.__proxyMove__ = void 0, e.__proxyLeave__ = void 0, e.__proxyInside__ = !1);
|
|
30668
30684
|
}, l9 = (e) => {
|
|
30669
|
-
let t = e.__tooltipBinding__ &&
|
|
30685
|
+
let t = e.__tooltipBinding__ && F7t(e) ? e.parentElement : null;
|
|
30670
30686
|
e.__proxyHost__ !== t && (c9(e), t && (e.__proxyMove__ = ((t) => {
|
|
30671
30687
|
let n = t;
|
|
30672
30688
|
if (n.buttons) return;
|
|
30673
30689
|
let r = e.getBoundingClientRect();
|
|
30674
|
-
if (V7(r) ?
|
|
30690
|
+
if (V7(r) ? I7t(r, n.clientX, n.clientY) : t.target === e || e.contains(t.target)) {
|
|
30675
30691
|
e.__mouseX__ = n.clientX, e.__mouseY__ = n.clientY, e.__proxyInside__ ? e.__tooltipBinding__?.followCursor && b9(e, e.tooltipElement, e.__requestedSide__) : (e.__proxyInside__ = !0, e.__showTooltip__?.("pointer"));
|
|
30676
30692
|
return;
|
|
30677
30693
|
}
|
|
@@ -30686,7 +30702,7 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30686
30702
|
let n = t.open === void 0 ? e.__openState__ === void 0 && t.defaultOpen ? !0 : void 0 : t.open;
|
|
30687
30703
|
n !== void 0 && n !== (e.__openState__ === !0 || !!e.__showTimer__) && (n ? e.__showTooltip__?.("program") : e.__hideTooltip__?.(0, "program"));
|
|
30688
30704
|
}, f9 = (e) => {
|
|
30689
|
-
|
|
30705
|
+
g7t();
|
|
30690
30706
|
let t = e.config.globalProperties.$router;
|
|
30691
30707
|
t && t.beforeEach(() => {
|
|
30692
30708
|
A7.forEach((e) => e?.__hideTooltip__?.(0, "program")), A7.clear();
|
|
@@ -30699,7 +30715,7 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30699
30715
|
u9(n), n.onOpenChange?.(!0, t);
|
|
30700
30716
|
return;
|
|
30701
30717
|
}
|
|
30702
|
-
clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0,
|
|
30718
|
+
clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, L7t(e, n, t);
|
|
30703
30719
|
}
|
|
30704
30720
|
}, e.__hideTooltip__ = (t = e.__tooltipBinding__?.hideDelay ?? 150, n = "dismiss") => {
|
|
30705
30721
|
let r = e.__tooltipBinding__;
|
|
@@ -30717,11 +30733,11 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30717
30733
|
}, e.__mouseMove__ = (t) => {
|
|
30718
30734
|
e.__mouseX__ = t.clientX, e.__mouseY__ = t.clientY, e.__tooltipBinding__?.followCursor && b9(e, e.tooltipElement, e.__tooltipBinding__?.position);
|
|
30719
30735
|
}, e.__tooltipBinding__ = t.value, e.__showHandler__ = (t) => {
|
|
30720
|
-
if (N7(e.__lastTouchAt__,
|
|
30736
|
+
if (N7(e.__lastTouchAt__, m7t)) return;
|
|
30721
30737
|
let n = t;
|
|
30722
30738
|
n.buttons || (typeof n.clientX == "number" && (n.clientX || n.clientY) && (e.__mouseX__ = n.clientX, e.__mouseY__ = n.clientY), e.__showTooltip__?.("pointer"));
|
|
30723
30739
|
}, e.__hideHandler__ = () => e.__hideTooltip__?.(void 0, "pointer"), e.__focusHandler__ = (t) => {
|
|
30724
|
-
N7(M7,
|
|
30740
|
+
N7(M7, h7t) || $7(e, t) && e.__showTooltip__?.("focus");
|
|
30725
30741
|
}, e.__blurHandler__ = () => e.__hideTooltip__?.(void 0, "focus"), e.__touchHandler__ = (t) => {
|
|
30726
30742
|
e.__tooltipBinding__?.touch !== !1 && $7(e, t) && (e.__lastTouchAt__ = Date.now(), e.__showTooltip__?.("touch"), e.__hideTooltip__?.(j7, "touch"));
|
|
30727
30743
|
}, r9(e, t.value), s9(e, t.value), e.setAttribute(Q7, ""), e.addEventListener("mouseenter", e.__showHandler__), e.addEventListener("mouseleave", e.__hideHandler__), e.addEventListener("mousemove", e.__mouseMove__), e.addEventListener("focusin", e.__focusHandler__), e.addEventListener("focusout", e.__blurHandler__), e.addEventListener("touchstart", e.__touchHandler__, { passive: !0 }), l9(e), d9(e, t.value);
|
|
@@ -30734,7 +30750,7 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30734
30750
|
}
|
|
30735
30751
|
if (n !== t.value && (s9(e, t.value), r9(e, t.value)), l9(e), d9(e, t.value), !e.tooltipElement || n === t.value) return;
|
|
30736
30752
|
let r = h9(t.value);
|
|
30737
|
-
r !== e.__lastContent__ && (e.__lastContent__ = r,
|
|
30753
|
+
r !== e.__lastContent__ && (e.__lastContent__ = r, R7t(e, t.value));
|
|
30738
30754
|
},
|
|
30739
30755
|
unmounted(e) {
|
|
30740
30756
|
clearTimeout(e.__showTimer__), e.__showTimer__ = void 0, clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, _9(e, !0), A7.delete(e), e.__showHandler__ && e.removeEventListener("mouseenter", e.__showHandler__), e.__hideHandler__ && e.removeEventListener("mouseleave", e.__hideHandler__), e.__focusHandler__ && e.removeEventListener("focusin", e.__focusHandler__), e.__blurHandler__ && e.removeEventListener("focusout", e.__blurHandler__), e.__touchHandler__ && e.removeEventListener("touchstart", e.__touchHandler__), a9(e), o9(e), e.__ownsAriaLabel__ &&= (e.removeAttribute("aria-label"), !1), e.__ownsTabIndex__ &&= (e.removeAttribute("tabindex"), !1), e.__ownsRole__ &&= (e.removeAttribute("role"), !1), e.removeAttribute(Q7), c9(e), e.__mouseMove__ && e.removeEventListener("mousemove", e.__mouseMove__), Y7(e);
|
|
@@ -30745,7 +30761,7 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30745
30761
|
`nb-tooltip-${e}`,
|
|
30746
30762
|
t ? `nb-tooltip-flavor-${t}` : "",
|
|
30747
30763
|
n || ""
|
|
30748
|
-
].filter(Boolean).join(" "), h9 = (e) => `${e.position ?? ""}|${O7(e)}|${k7(e) ?? ""}|${p9(e)}`,
|
|
30764
|
+
].filter(Boolean).join(" "), h9 = (e) => `${e.position ?? ""}|${O7(e)}|${k7(e) ?? ""}|${p9(e)}`, L7t = (e, t, n = "pointer") => {
|
|
30749
30765
|
let { header: r, body: i, tip: a, delay: o = 400, animationTime: s = 300, position: c, overflowOnly: l } = t, u = O7(t), d = k7(t);
|
|
30750
30766
|
if (clearTimeout(e.__showTimer__), e.__showTimer__ = void 0, X7(e, !0), l) {
|
|
30751
30767
|
let t = e.getBoundingClientRect();
|
|
@@ -30766,7 +30782,7 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30766
30782
|
l.__hovered__ = !0, clearTimeout(e.__hideTimer__), e.__hideTimer__ = void 0, e.__watchdogMisses__ = 0;
|
|
30767
30783
|
}), l.addEventListener("mouseleave", () => {
|
|
30768
30784
|
l.__hovered__ = !1, e.__hideTooltip__?.();
|
|
30769
|
-
}), p ? l.style.opacity = "1" : (l.style.transition = `opacity ${s}ms ease-in-out`, l.style.animation = `tooltipAppear ${s}ms ease-in-out forwards`), l.setAttribute("aria-hidden", "true"), e.__trigger__ = n, e.tooltipElement = l, (e.__chips__ ??= /* @__PURE__ */ new Set()).add(l), e.__lastContent__ = h9(t), A7.add(e), document.body.appendChild(l), e.__requestedSide__ = o, e.__side__ = o, b9(e, l, o),
|
|
30785
|
+
}), p ? l.style.opacity = "1" : (l.style.transition = `opacity ${s}ms ease-in-out`, l.style.animation = `tooltipAppear ${s}ms ease-in-out forwards`), l.setAttribute("aria-hidden", "true"), e.__trigger__ = n, e.tooltipElement = l, (e.__chips__ ??= /* @__PURE__ */ new Set()).add(l), e.__lastContent__ = h9(t), A7.add(e), document.body.appendChild(l), e.__requestedSide__ = o, e.__side__ = o, b9(e, l, o), E7t(e), b7t(e);
|
|
30770
30786
|
let f = e.__openState__ === !0;
|
|
30771
30787
|
e.__openState__ = !0, f || t.onOpenChange?.(!0, n);
|
|
30772
30788
|
}, f);
|
|
@@ -30780,7 +30796,7 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30780
30796
|
clearTimeout(e.__showTimer__), e.__showTimer__ = void 0;
|
|
30781
30797
|
let r = e.__openState__ === !0;
|
|
30782
30798
|
X7(e, t), A7.delete(e), e.__requestedSide__ = void 0, r && (e.__openState__ = !1, e.__tooltipBinding__?.onOpenChange?.(!1, n));
|
|
30783
|
-
},
|
|
30799
|
+
}, R7t = (e, t) => {
|
|
30784
30800
|
let { header: n, body: r, tip: i, position: a } = t, o = O7(t), s = k7(t), c = e.__requestedSide__ ?? e.__side__ ?? a, l = e.tooltipElement;
|
|
30785
30801
|
l && (l.innerHTML = p9({
|
|
30786
30802
|
header: n,
|
|
@@ -30788,7 +30804,7 @@ var X5t = /* @__PURE__ */ ue({
|
|
|
30788
30804
|
tip: i
|
|
30789
30805
|
}), l.className = m9(e.__side__ ?? c ?? "cursor", o, s), b9(e, l, c));
|
|
30790
30806
|
};
|
|
30791
|
-
function
|
|
30807
|
+
function z7t(e, t, n, r, i, a, o) {
|
|
30792
30808
|
switch (e) {
|
|
30793
30809
|
case "top": return {
|
|
30794
30810
|
top: t.top - (r + i * 2),
|
|
@@ -30816,7 +30832,7 @@ var v9 = 14;
|
|
|
30816
30832
|
function y9(e, t, n, r, i) {
|
|
30817
30833
|
return t >= i && e >= i && t + n <= window.innerWidth - i && e + r <= window.innerHeight - i;
|
|
30818
30834
|
}
|
|
30819
|
-
var
|
|
30835
|
+
var B7t = {
|
|
30820
30836
|
top: [
|
|
30821
30837
|
"bottom",
|
|
30822
30838
|
"right",
|
|
@@ -30840,8 +30856,8 @@ var I7t = {
|
|
|
30840
30856
|
cursor: []
|
|
30841
30857
|
}, b9 = (e, t, n) => {
|
|
30842
30858
|
if (!t) return;
|
|
30843
|
-
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = i.width || 0, o = i.height || 0, s = e.__mouseX__ ?? 0, c = e.__mouseY__ ?? 0, l = n ?? "cursor", u = (e) =>
|
|
30844
|
-
if (a > 0 && o > 0 && !y9(d.top, d.left, a, o, 16)) for (let e of
|
|
30859
|
+
let r = e.getBoundingClientRect(), i = t.getBoundingClientRect(), a = i.width || 0, o = i.height || 0, s = e.__mouseX__ ?? 0, c = e.__mouseY__ ?? 0, l = n ?? "cursor", u = (e) => z7t(e, r, a, o, 4, s, c), d = u(l), f = l;
|
|
30860
|
+
if (a > 0 && o > 0 && !y9(d.top, d.left, a, o, 16)) for (let e of B7t[l]) {
|
|
30845
30861
|
let t = u(e);
|
|
30846
30862
|
if (y9(t.top, t.left, a, o, 16)) {
|
|
30847
30863
|
d = t, f = e;
|
|
@@ -30874,7 +30890,7 @@ var I7t = {
|
|
|
30874
30890
|
}
|
|
30875
30891
|
t.style.top = `${p}px`, t.style.left = `${m}px`;
|
|
30876
30892
|
};
|
|
30877
|
-
function
|
|
30893
|
+
function V7t(e) {
|
|
30878
30894
|
for (let t of Array.from(A7)) t.__hideTooltip__?.(0, e);
|
|
30879
30895
|
let t = /* @__PURE__ */ new Set();
|
|
30880
30896
|
for (let e of Array.from(A7)) for (let n of e.__chips__ ?? []) t.add(n);
|
|
@@ -30890,7 +30906,7 @@ function x9() {
|
|
|
30890
30906
|
}
|
|
30891
30907
|
//#endregion
|
|
30892
30908
|
//#region src/directives/TourStep.directive.ts
|
|
30893
|
-
var
|
|
30909
|
+
var H7t = /* @__PURE__ */ ue({ default: () => C9 });
|
|
30894
30910
|
function S9(e, t) {
|
|
30895
30911
|
let n = t.value;
|
|
30896
30912
|
if (n == null || n === "") {
|
|
@@ -30907,35 +30923,35 @@ var C9 = (e) => {
|
|
|
30907
30923
|
e.removeAttribute(h7);
|
|
30908
30924
|
}
|
|
30909
30925
|
});
|
|
30910
|
-
},
|
|
30911
|
-
"./ContextMenu.directive.ts":
|
|
30912
|
-
"./ToolTip.content.ts":
|
|
30913
|
-
"./ToolTip.directive.ts":
|
|
30914
|
-
"./TourStep.directive.ts":
|
|
30915
|
-
}),
|
|
30916
|
-
Object.values(
|
|
30926
|
+
}, U7t = /* @__PURE__ */ Object.assign({
|
|
30927
|
+
"./ContextMenu.directive.ts": Q5t,
|
|
30928
|
+
"./ToolTip.content.ts": e7t,
|
|
30929
|
+
"./ToolTip.directive.ts": d7t,
|
|
30930
|
+
"./TourStep.directive.ts": H7t
|
|
30931
|
+
}), W7t = { install(e) {
|
|
30932
|
+
Object.values(U7t).forEach((t) => {
|
|
30917
30933
|
typeof t.default == "function" && t.default(e);
|
|
30918
30934
|
});
|
|
30919
30935
|
} }, w9 = { install(e) {
|
|
30920
30936
|
let t = j0t();
|
|
30921
30937
|
e.provide(t8, t);
|
|
30922
|
-
} },
|
|
30938
|
+
} }, G7t = 900, T9 = class extends Error {
|
|
30923
30939
|
constructor() {
|
|
30924
30940
|
super("confirm timed out"), this.name = "ConfirmTimeout";
|
|
30925
30941
|
}
|
|
30926
|
-
},
|
|
30927
|
-
function
|
|
30942
|
+
}, K7t = "This is taking longer than expected. It may still be running. Check before trying again.", E9 = ee(null), D9 = R(!1), O9 = R(!1), k9 = R(!1), A9 = R(void 0), j9 = [], M9 = null, N9 = null, P9 = null, F9 = null;
|
|
30943
|
+
function q7t() {
|
|
30928
30944
|
return m8() ? 0 : 200;
|
|
30929
30945
|
}
|
|
30930
30946
|
function I9() {
|
|
30931
30947
|
F9 && clearTimeout(F9), F9 = null;
|
|
30932
30948
|
}
|
|
30933
|
-
function
|
|
30949
|
+
function J7t(e) {
|
|
30934
30950
|
if (e instanceof Error && e.message) return e.message;
|
|
30935
30951
|
let t = String(e);
|
|
30936
30952
|
return t === "[object Object]" ? "Something went wrong." : t;
|
|
30937
30953
|
}
|
|
30938
|
-
function
|
|
30954
|
+
function Y7t() {
|
|
30939
30955
|
P9 = null;
|
|
30940
30956
|
let e = j9.shift() ?? null;
|
|
30941
30957
|
E9.value = e, D9.value = !!e;
|
|
@@ -30944,9 +30960,9 @@ function L9(e, t) {
|
|
|
30944
30960
|
return !e.done && e.attempt === t && E9.value === e;
|
|
30945
30961
|
}
|
|
30946
30962
|
function R9(e, t = E9.value) {
|
|
30947
|
-
!t || t.done || t === E9.value && (t.done = !0, I9(), D9.value = !1, O9.value = !1, k9.value = !1, A9.value = void 0, t.resolve(e), P9 && clearTimeout(P9), P9 = setTimeout(
|
|
30963
|
+
!t || t.done || t === E9.value && (t.done = !0, I9(), D9.value = !1, O9.value = !1, k9.value = !1, A9.value = void 0, t.resolve(e), P9 && clearTimeout(P9), P9 = setTimeout(Y7t, q7t()));
|
|
30948
30964
|
}
|
|
30949
|
-
function
|
|
30965
|
+
function X7t(e, t) {
|
|
30950
30966
|
return new Promise((n, r) => {
|
|
30951
30967
|
let i = setTimeout(() => r(new T9()), t);
|
|
30952
30968
|
e.then((e) => {
|
|
@@ -30956,7 +30972,7 @@ function K7t(e, t) {
|
|
|
30956
30972
|
});
|
|
30957
30973
|
});
|
|
30958
30974
|
}
|
|
30959
|
-
async function
|
|
30975
|
+
async function Z7t() {
|
|
30960
30976
|
let e = E9.value;
|
|
30961
30977
|
if (!e || e.done || O9.value || k9.value) return;
|
|
30962
30978
|
let { onConfirm: t, formatError: n, timeout: r, timeoutMessage: i, successLabel: a } = e.options;
|
|
@@ -30968,38 +30984,38 @@ async function q7t() {
|
|
|
30968
30984
|
O9.value = !0, A9.value = void 0;
|
|
30969
30985
|
try {
|
|
30970
30986
|
let n = Promise.resolve(t());
|
|
30971
|
-
if (await (r && r > 0 ?
|
|
30972
|
-
O9.value = !1, a ? (k9.value = !0, F9 = setTimeout(() => R9(!0, e),
|
|
30987
|
+
if (await (r && r > 0 ? X7t(n, r) : n), !L9(e, o)) return;
|
|
30988
|
+
O9.value = !1, a ? (k9.value = !0, F9 = setTimeout(() => R9(!0, e), G7t)) : R9(!0, e);
|
|
30973
30989
|
} catch (t) {
|
|
30974
30990
|
if (!L9(e, o)) return;
|
|
30975
|
-
O9.value = !1, A9.value = t instanceof T9 ? i ??
|
|
30991
|
+
O9.value = !1, A9.value = t instanceof T9 ? i ?? K7t : (n ?? J7t)(t);
|
|
30976
30992
|
}
|
|
30977
30993
|
}
|
|
30978
|
-
function
|
|
30994
|
+
function Q7t(e) {
|
|
30979
30995
|
let t = { ...e ?? { title: "" } };
|
|
30980
30996
|
return delete t.onConfirm, delete t.formatError, delete t.body, t;
|
|
30981
30997
|
}
|
|
30982
|
-
var
|
|
30998
|
+
var $7t = _({
|
|
30983
30999
|
name: "NbConfirmHost",
|
|
30984
31000
|
setup() {
|
|
30985
31001
|
return () => {
|
|
30986
31002
|
let e = E9.value?.options ?? null, t = e?.body;
|
|
30987
31003
|
return b(g8, {
|
|
30988
|
-
...
|
|
31004
|
+
...Q7t(e),
|
|
30989
31005
|
open: D9.value,
|
|
30990
31006
|
busy: O9.value,
|
|
30991
31007
|
succeeded: k9.value,
|
|
30992
31008
|
error: A9.value ?? "",
|
|
30993
|
-
onConfirm:
|
|
31009
|
+
onConfirm: Z7t,
|
|
30994
31010
|
onCancel: () => R9(!1)
|
|
30995
31011
|
}, t ? { default: () => t() } : void 0);
|
|
30996
31012
|
};
|
|
30997
31013
|
}
|
|
30998
31014
|
});
|
|
30999
|
-
function
|
|
31015
|
+
function e9t() {
|
|
31000
31016
|
if (!M9) {
|
|
31001
31017
|
if (typeof document > "u") throw Error("[NbConfirm] confirm() needs a DOM. It cannot run during server-side rendering or in a non-browser environment. Call it from an event handler, not from setup().");
|
|
31002
|
-
N9 = document.createElement("div"), N9.setAttribute("data-nb-confirm-host", ""), document.body.appendChild(N9), M9 = c(
|
|
31018
|
+
N9 = document.createElement("div"), N9.setAttribute("data-nb-confirm-host", ""), document.body.appendChild(N9), M9 = c($7t), M9.component("NbIcon", l2), M9.component("NbGrid", t4), M9.config.warnHandler = (e, t, n) => {
|
|
31003
31019
|
if (e.includes("Failed to resolve component")) {
|
|
31004
31020
|
console.error(`[NbConfirm] ${e} The dialog runs in its own Vue app, so a sibling resolved by name has to be registered in useConfirm.composable.ts. Import it in NbConfirm instead where you can.`);
|
|
31005
31021
|
return;
|
|
@@ -31008,8 +31024,8 @@ function X7t() {
|
|
|
31008
31024
|
}, M9.mount(N9);
|
|
31009
31025
|
}
|
|
31010
31026
|
}
|
|
31011
|
-
function
|
|
31012
|
-
return
|
|
31027
|
+
function t9t(e) {
|
|
31028
|
+
return e9t(), new Promise((t) => {
|
|
31013
31029
|
let n = {
|
|
31014
31030
|
options: e,
|
|
31015
31031
|
resolve: t,
|
|
@@ -31023,7 +31039,7 @@ function Z7t(e) {
|
|
|
31023
31039
|
E9.value = n, D9.value = !0;
|
|
31024
31040
|
});
|
|
31025
31041
|
}
|
|
31026
|
-
function
|
|
31042
|
+
function n9t() {
|
|
31027
31043
|
P9 &&= (clearTimeout(P9), null), I9();
|
|
31028
31044
|
let e = [...j9];
|
|
31029
31045
|
j9.length = 0;
|
|
@@ -31033,12 +31049,12 @@ function Q7t() {
|
|
|
31033
31049
|
for (let t of e) t.resolve(!1);
|
|
31034
31050
|
E9.value = null, D9.value = !1, O9.value = !1, k9.value = !1, A9.value = void 0, M9?.unmount(), M9 = null, N9?.remove(), N9 = null;
|
|
31035
31051
|
}
|
|
31036
|
-
function
|
|
31037
|
-
return
|
|
31052
|
+
function r9t() {
|
|
31053
|
+
return t9t;
|
|
31038
31054
|
}
|
|
31039
31055
|
//#endregion
|
|
31040
31056
|
//#region src/composables/useContextMenu.composable.ts
|
|
31041
|
-
function
|
|
31057
|
+
function i9t() {
|
|
31042
31058
|
let e = R(!1), t = R({
|
|
31043
31059
|
x: 0,
|
|
31044
31060
|
y: 0
|
|
@@ -31068,7 +31084,7 @@ function e9t() {
|
|
|
31068
31084
|
}
|
|
31069
31085
|
//#endregion
|
|
31070
31086
|
//#region src/composables/useInlineLoading.composable.ts
|
|
31071
|
-
function
|
|
31087
|
+
function a9t(e = {}) {
|
|
31072
31088
|
let t = R("inactive"), n = R(null), r = 0;
|
|
31073
31089
|
async function i(i) {
|
|
31074
31090
|
let a = ++r;
|
|
@@ -31098,49 +31114,49 @@ var z9 = {
|
|
|
31098
31114
|
defaultTheme: "system",
|
|
31099
31115
|
darkClass: "dark"
|
|
31100
31116
|
}, B9 = "(prefers-color-scheme: dark)", V9 = { ...z9 }, H9 = !1, U9 = null, W9 = R(z9.defaultTheme), G9 = R("light");
|
|
31101
|
-
function
|
|
31117
|
+
function o9t(e) {
|
|
31102
31118
|
return e === "light" || e === "dark" || e === "system";
|
|
31103
31119
|
}
|
|
31104
|
-
function
|
|
31120
|
+
function s9t() {
|
|
31105
31121
|
try {
|
|
31106
31122
|
if (typeof localStorage > "u") return null;
|
|
31107
31123
|
let e = localStorage.getItem(V9.storageKey);
|
|
31108
|
-
return
|
|
31124
|
+
return o9t(e) ? e : null;
|
|
31109
31125
|
} catch {
|
|
31110
31126
|
return null;
|
|
31111
31127
|
}
|
|
31112
31128
|
}
|
|
31113
|
-
function
|
|
31129
|
+
function c9t(e) {
|
|
31114
31130
|
try {
|
|
31115
31131
|
if (typeof localStorage > "u") return;
|
|
31116
31132
|
localStorage.setItem(V9.storageKey, e);
|
|
31117
31133
|
} catch {}
|
|
31118
31134
|
}
|
|
31119
|
-
function
|
|
31135
|
+
function l9t() {
|
|
31120
31136
|
return typeof window > "u" || typeof window.matchMedia != "function" ? !1 : window.matchMedia(B9).matches;
|
|
31121
31137
|
}
|
|
31122
31138
|
function K9() {
|
|
31123
|
-
let e = W9.value === "dark" || W9.value === "system" &&
|
|
31139
|
+
let e = W9.value === "dark" || W9.value === "system" && l9t();
|
|
31124
31140
|
G9.value = e ? "dark" : "light", !(typeof document > "u") && (document.documentElement.classList.toggle(V9.darkClass, e), document.documentElement.style.colorScheme = G9.value);
|
|
31125
31141
|
}
|
|
31126
|
-
function
|
|
31142
|
+
function u9t() {
|
|
31127
31143
|
if (U9?.(), U9 = null, typeof window > "u" || typeof window.matchMedia != "function") return;
|
|
31128
31144
|
let e = window.matchMedia(B9), t = () => K9();
|
|
31129
31145
|
typeof e.addEventListener == "function" ? (e.addEventListener("change", t), U9 = () => e.removeEventListener("change", t)) : typeof e.addListener == "function" && (e.addListener(t), U9 = () => e.removeListener(t));
|
|
31130
31146
|
}
|
|
31131
31147
|
var q9 = null;
|
|
31132
31148
|
function J9() {
|
|
31133
|
-
W9.value =
|
|
31134
|
-
|
|
31149
|
+
W9.value = s9t() ?? V9.defaultTheme, K9(), u9t(), q9?.(), q9 = Y(W9, (e) => {
|
|
31150
|
+
c9t(e), K9();
|
|
31135
31151
|
}), H9 = !0;
|
|
31136
31152
|
}
|
|
31137
|
-
function
|
|
31153
|
+
function d9t(e = {}) {
|
|
31138
31154
|
V9 = {
|
|
31139
31155
|
...V9,
|
|
31140
31156
|
...e
|
|
31141
31157
|
}, J9();
|
|
31142
31158
|
}
|
|
31143
|
-
function
|
|
31159
|
+
function f9t() {
|
|
31144
31160
|
return H9 || J9(), {
|
|
31145
31161
|
theme: L(W9),
|
|
31146
31162
|
resolved: L(G9),
|
|
@@ -31155,21 +31171,21 @@ function c9t() {
|
|
|
31155
31171
|
}
|
|
31156
31172
|
//#endregion
|
|
31157
31173
|
//#region src/components/labs/Spreadsheet.vue?vue&type=script&setup=true&lang.ts
|
|
31158
|
-
var
|
|
31174
|
+
var p9t = {
|
|
31159
31175
|
key: 0,
|
|
31160
31176
|
class: "nb-spreadsheet__toolbar"
|
|
31161
|
-
},
|
|
31177
|
+
}, m9t = {
|
|
31162
31178
|
key: 0,
|
|
31163
31179
|
class: "nb-spreadsheet__corner",
|
|
31164
31180
|
style: {
|
|
31165
31181
|
gridRow: 1,
|
|
31166
31182
|
gridColumn: 1
|
|
31167
31183
|
}
|
|
31168
|
-
},
|
|
31184
|
+
}, h9t = ["onClick"], g9t = { class: "nb-spreadsheet__header-label" }, _9t = {
|
|
31169
31185
|
key: 0,
|
|
31170
31186
|
class: "nb-spreadsheet__sort",
|
|
31171
31187
|
"aria-hidden": "true"
|
|
31172
|
-
},
|
|
31188
|
+
}, v9t = ["onMousedown"], y9t = [
|
|
31173
31189
|
"title",
|
|
31174
31190
|
"data-cell",
|
|
31175
31191
|
"data-row",
|
|
@@ -31177,7 +31193,7 @@ var l9t = {
|
|
|
31177
31193
|
"onMousedown",
|
|
31178
31194
|
"onMouseenter",
|
|
31179
31195
|
"onDblclick"
|
|
31180
|
-
],
|
|
31196
|
+
], b9t = ["inputmode"], Y9 = 44, X9 = 32, Z9 = 28, x9t = /* @__PURE__ */ _({
|
|
31181
31197
|
__name: "Spreadsheet",
|
|
31182
31198
|
props: {
|
|
31183
31199
|
columns: {},
|
|
@@ -31664,7 +31680,7 @@ var l9t = {
|
|
|
31664
31680
|
undo: Te,
|
|
31665
31681
|
redo: Ee,
|
|
31666
31682
|
getSelection: () => h.value
|
|
31667
|
-
}), (t, r) => (P(), d("div", { class: T(["nb-spreadsheet", { "nb-spreadsheet--editing": !!_.value }]) }, [t.$slots.toolbar ? (P(), d("div",
|
|
31683
|
+
}), (t, r) => (P(), d("div", { class: T(["nb-spreadsheet", { "nb-spreadsheet--editing": !!_.value }]) }, [t.$slots.toolbar ? (P(), d("div", p9t, [B(t.$slots, "toolbar", {}, void 0, !0)])) : u("", !0), f("div", {
|
|
31668
31684
|
ref_key: "scrollerRef",
|
|
31669
31685
|
ref: o,
|
|
31670
31686
|
class: "nb-spreadsheet__scroller",
|
|
@@ -31678,21 +31694,21 @@ var l9t = {
|
|
|
31678
31694
|
class: "nb-spreadsheet__grid",
|
|
31679
31695
|
style: E(C.value)
|
|
31680
31696
|
}, [
|
|
31681
|
-
e.showGutter ? (P(), d("div",
|
|
31697
|
+
e.showGutter ? (P(), d("div", m9t)) : u("", !0),
|
|
31682
31698
|
(P(!0), d(n, null, z(x.value, (t, n) => (P(), d("div", {
|
|
31683
31699
|
key: `h-${t.id}`,
|
|
31684
31700
|
class: T(["nb-spreadsheet__header", W(t)]),
|
|
31685
31701
|
style: E(te(t, n)),
|
|
31686
31702
|
onClick: (e) => Ce(t)
|
|
31687
31703
|
}, [
|
|
31688
|
-
f("span",
|
|
31689
|
-
p.value && p.value.columnId === t.id ? (P(), d("span",
|
|
31704
|
+
f("span", g9t, U(t.label), 1),
|
|
31705
|
+
p.value && p.value.columnId === t.id ? (P(), d("span", _9t, U(p.value.direction === "asc" ? "▲" : "▼"), 1)) : u("", !0),
|
|
31690
31706
|
e.resizable ? (P(), d("span", {
|
|
31691
31707
|
key: 1,
|
|
31692
31708
|
class: "nb-spreadsheet__resize-handle",
|
|
31693
31709
|
onMousedown: Z((e) => Se(e, t), ["stop"])
|
|
31694
|
-
}, null, 40,
|
|
31695
|
-
], 14,
|
|
31710
|
+
}, null, 40, v9t)) : u("", !0)
|
|
31711
|
+
], 14, h9t))), 128)),
|
|
31696
31712
|
(P(!0), d(n, null, z(j.value, (t, r) => (P(), d(n, { key: `r-${t.id}` }, [e.showGutter ? (P(), d("div", {
|
|
31697
31713
|
key: 0,
|
|
31698
31714
|
class: T(["nb-spreadsheet__gutter", {
|
|
@@ -31711,7 +31727,7 @@ var l9t = {
|
|
|
31711
31727
|
onMousedown: (n) => oe(n, t, e),
|
|
31712
31728
|
onMouseenter: (n) => Y(t, e),
|
|
31713
31729
|
onDblclick: (n) => ce(t, e)
|
|
31714
|
-
}, [f("span", null, U(L(t, e)), 1)], 46,
|
|
31730
|
+
}, [f("span", null, U(L(t, e)), 1)], 46, y9t))), 128))], 64))), 128))
|
|
31715
31731
|
], 4), _.value ? se((P(), d("input", {
|
|
31716
31732
|
key: 0,
|
|
31717
31733
|
ref_key: "editorRef",
|
|
@@ -31722,15 +31738,15 @@ var l9t = {
|
|
|
31722
31738
|
inputmode: pe.value,
|
|
31723
31739
|
onBlur: r[1] ||= (e) => ge(!0),
|
|
31724
31740
|
onKeydown: Z(he, ["stop"])
|
|
31725
|
-
}, null, 44,
|
|
31741
|
+
}, null, 44, b9t)), [[ae, _.value.draft]]) : u("", !0)], 544)], 2));
|
|
31726
31742
|
}
|
|
31727
|
-
}),
|
|
31743
|
+
}), S9t = /* @__PURE__ */ ue({ default: () => Q9 }), Q9 = /* @__PURE__ */ Q(x9t, [["__scopeId", "data-v-df859a7e"]]), $9 = /* @__PURE__ */ Object.assign({ "./components/labs/Spreadsheet.vue": S9t }), C9t = { install(e) {
|
|
31728
31744
|
Object.keys($9).forEach((t) => {
|
|
31729
31745
|
let n = `Nb${t.replace(/(.+\/)(\w+)(\.vue)$/, "$2")}`, r = $9[t];
|
|
31730
31746
|
e.component(n, r.default);
|
|
31731
31747
|
});
|
|
31732
|
-
} },
|
|
31733
|
-
e.use(
|
|
31748
|
+
} }, w9t = { install(e) {
|
|
31749
|
+
e.use(Z5t), e.use(W7t), e.use(w9);
|
|
31734
31750
|
} };
|
|
31735
31751
|
//#endregion
|
|
31736
|
-
export { Z5 as BlueprintLiveData, $Jt as CHART_ROLE_COUNT, e4t as CONFIRM_LEAVE_MS, k2 as DEFAULT_PALETTE, _2 as EBannerStatus, v2 as EBannerVariant, x5 as EInlineLoadingStatus, P8 as ESkeletonVariant, L8 as ESpinnerOverlay, I8 as ESpinnerSize, R8 as ESpinnerTone, g5 as EStepStatus, m5 as EStepperOrientation, h5 as EStepperSize, Y5 as NB_BLUEPRINT_CONTEXT, X5 as NB_BLUEPRINT_CONTROLLER, L2 as NB_LAYER_ATTRIBUTE, R2 as NB_LAYER_INJECTION_KEY, _Yt as NB_MAX_LAYER, gYt as NB_MIN_LAYER, S8 as NB_OVERLAY_EXEMPT_ATTR, N5 as NB_TOAST_DURATIONS, L5 as NB_TOAST_QUEUE_KEY, P5 as NB_TOAST_STATUS_LABELS, pe as NbAccordion, u2 as NbAccordionItem, p2 as NbAiLabel, g2 as NbBadge, y2 as NbBanner, I2 as NbBarChart, r7 as NbBlueprint, a7 as NbBlueprintBackground, o7 as NbBlueprintCard, s7 as NbBlueprintControls, l7 as NbBlueprintMinimap, U2 as NbBoard, q5 as NbBottomPanel, W2 as NbBreadcrumbs, q2 as NbButton, J2 as NbCalendar, Y2 as NbCard, X2 as NbCardGrid, i4 as NbCheckbox, o4 as NbCheckboxGroup, s4 as NbColorStrip, s8 as NbCommandPalette, w9 as NbCommandPalettePlugin, g8 as NbConfirm, c4 as NbDataTable, n4 as NbDatePicker, l4 as NbDefinitionList, u4 as NbDefinitionListItem, d4 as NbEmptyState, J6 as NbField, g4 as NbFileUploader, y4 as NbFlag, b4 as NbForm, v4 as NbGanttChart, t4 as NbGrid, l2 as NbIcon, G6 as NbImageCropper, E4 as NbInfoHint, b5 as NbInlineEdit, S5 as NbInlineLoading, D4 as NbInterpolationChart, K6 as NbJsonTree, Q2 as NbLabel, q8 as NbLayer, q6 as NbLineChart, Y6 as NbMenu, X6 as NbMenuBar, Z6 as NbMenuBarItem, $6 as NbMenuDivider, Q6 as NbMenuItem, e4 as NbMessage, u8 as NbModal, G8 as NbNotificationCenter, _8 as NbNotificationCenterItem, c8 as NbNubiscoMark, l8 as NbNubiscoPlatformMark, K8 as NbNumberInput, p4 as NbPagination, J8 as NbPanel, Y8 as NbPieChart, Q8 as NbProgressBar, e5 as NbRadio, t5 as NbReorderList, f4 as NbSelect, s5 as NbShell, J5 as NbShellPanel, c5 as NbSidebarBrand, l5 as NbSidebarLink, u5 as NbSidebarMenu, d5 as NbSidebarMenuGroup, f5 as NbSidebarMenuItem, F8 as NbSkeleton, p5 as NbSlider, T5 as NbSparkline, z8 as NbSpinner, Q9 as NbSpreadsheet, v5 as NbStepper, y5 as NbStepperStep, e8 as NbSubmenu, O5 as NbSwitch, j5 as NbTabs, d8 as NbTextInput, M5 as NbToast, V5 as NbToaster, W5 as NbTree, G5 as NbTreeNode, K5 as NbUserMenu, y7 as NbWalkthrough,
|
|
31752
|
+
export { Z5 as BlueprintLiveData, $Jt as CHART_ROLE_COUNT, e4t as CONFIRM_LEAVE_MS, k2 as DEFAULT_PALETTE, _2 as EBannerStatus, v2 as EBannerVariant, x5 as EInlineLoadingStatus, P8 as ESkeletonVariant, L8 as ESpinnerOverlay, I8 as ESpinnerSize, R8 as ESpinnerTone, g5 as EStepStatus, m5 as EStepperOrientation, h5 as EStepperSize, Y5 as NB_BLUEPRINT_CONTEXT, X5 as NB_BLUEPRINT_CONTROLLER, L2 as NB_LAYER_ATTRIBUTE, R2 as NB_LAYER_INJECTION_KEY, _Yt as NB_MAX_LAYER, gYt as NB_MIN_LAYER, S8 as NB_OVERLAY_EXEMPT_ATTR, N5 as NB_TOAST_DURATIONS, L5 as NB_TOAST_QUEUE_KEY, P5 as NB_TOAST_STATUS_LABELS, pe as NbAccordion, u2 as NbAccordionItem, p2 as NbAiLabel, g2 as NbBadge, y2 as NbBanner, I2 as NbBarChart, r7 as NbBlueprint, a7 as NbBlueprintBackground, o7 as NbBlueprintCard, s7 as NbBlueprintControls, l7 as NbBlueprintMinimap, U2 as NbBoard, q5 as NbBottomPanel, W2 as NbBreadcrumbs, q2 as NbButton, J2 as NbCalendar, Y2 as NbCard, X2 as NbCardGrid, i4 as NbCheckbox, o4 as NbCheckboxGroup, s4 as NbColorStrip, s8 as NbCommandPalette, w9 as NbCommandPalettePlugin, g8 as NbConfirm, c4 as NbDataTable, n4 as NbDatePicker, l4 as NbDefinitionList, u4 as NbDefinitionListItem, d4 as NbEmptyState, J6 as NbField, g4 as NbFileUploader, y4 as NbFlag, b4 as NbForm, v4 as NbGanttChart, t4 as NbGrid, l2 as NbIcon, G6 as NbImageCropper, E4 as NbInfoHint, b5 as NbInlineEdit, S5 as NbInlineLoading, D4 as NbInterpolationChart, K6 as NbJsonTree, Q2 as NbLabel, q8 as NbLayer, q6 as NbLineChart, Y6 as NbMenu, X6 as NbMenuBar, Z6 as NbMenuBarItem, $6 as NbMenuDivider, Q6 as NbMenuItem, e4 as NbMessage, u8 as NbModal, G8 as NbNotificationCenter, _8 as NbNotificationCenterItem, c8 as NbNubiscoMark, l8 as NbNubiscoPlatformMark, K8 as NbNumberInput, p4 as NbPagination, J8 as NbPanel, Y8 as NbPieChart, Q8 as NbProgressBar, e5 as NbRadio, t5 as NbReorderList, f4 as NbSelect, s5 as NbShell, J5 as NbShellPanel, c5 as NbSidebarBrand, l5 as NbSidebarLink, u5 as NbSidebarMenu, d5 as NbSidebarMenuGroup, f5 as NbSidebarMenuItem, F8 as NbSkeleton, p5 as NbSlider, T5 as NbSparkline, z8 as NbSpinner, Q9 as NbSpreadsheet, v5 as NbStepper, y5 as NbStepperStep, e8 as NbSubmenu, O5 as NbSwitch, j5 as NbTabs, d8 as NbTextInput, M5 as NbToast, V5 as NbToaster, W5 as NbTree, G5 as NbTreeNode, K5 as NbUserMenu, y7 as NbWalkthrough, C9t as NubiscoUILabs, h7 as TOUR_STEP_ATTRIBUTE, u7 as WALKTHROUGH_STORAGE_PREFIX, i8 as acquireScrollLock, M8 as announceLoadingComplete, j2 as chartRole, z2 as clampLayer, A2 as colorAt, Q5 as computeAutoLayout, d9t as configureTheme, p7 as createDefaultWalkthroughStorage, d7 as createLocalStorageWalkthroughStorage, f7 as createMemoryWalkthroughStorage, F5 as createToastQueue, w9t as default, x9 as dismissAllTooltips, n9t as dismissConfirms, rYt as divergingAt, v7 as isTargetVisible, B2 as layerClassFor, C4t as markOverlayExempt, f9 as nbTooltipDirective, C9 as nbTourStepDirective, m8 as prefersReducedMotion, V2 as probeLayerFromDom, iYt as rampSteps, n4t as registerConfirmFloatingSelector, SJt as registerIcons, a8 as releaseScrollLock, J6t as resetToastQueue, _7 as resolveTourTarget, P2 as sequentialAt, nYt as seriesColors, N8 as suppressLoadingAnnouncement, g7 as tourStepSelector, CJt as unregisterIcon, i7 as useBlueprint, M0t as useCommandPalette, r9t as useConfirm, i9t as useContextMenu, a9t as useInlineLoading, bYt as useLayer, p8 as useReducedMotion, o8 as useScrollLock, T3t as useShellSlot, H2 as useSurfaceLayer, f9t as useTheme, R5 as useToast, m7 as useWalkthrough };
|