@nubisco/ui 5.26.1 → 5.27.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/{Blueprint-DxHaLr4P.cjs → Blueprint-CMNV_pFD.cjs} +1 -1
- package/dist/{Blueprint-CQ0UBrND.js → Blueprint-DAySN9o8.js} +2 -2
- package/dist/{BlueprintCard-BpVITfop.js → BlueprintCard-CaDr0605.js} +1 -1
- package/dist/{BlueprintCard-ndSnIVKE.cjs → BlueprintCard-DIe9bROZ.cjs} +1 -1
- package/dist/{InlineLoading-w5XKQdGi.cjs → InlineLoading-DBJe1W5c.cjs} +1 -1
- package/dist/{InlineLoading-uGDGiTNv.js → InlineLoading-DcAS5wVb.js} +1 -1
- package/dist/{NotificationCenter-DNA6BL18.js → NotificationCenter-BcBIvNED.js} +3 -3
- package/dist/{NotificationCenter-BceqDL0a.cjs → NotificationCenter-CzYFsX7I.cjs} +1 -1
- package/dist/Shell-BYLc0EQA.js +497 -0
- package/dist/Shell-DEHVQfU0.cjs +1 -0
- package/dist/SidebarHeaderToggle-BZ_YU8EU.cjs +1 -0
- package/dist/SidebarHeaderToggle-DBiI4idz.js +61 -0
- package/dist/{Skeleton-Ba4m2jYi.js → Skeleton-1DNgvYeb.js} +1 -1
- package/dist/{Skeleton-Bgo6pIY2.cjs → Skeleton-DmkE06TO.cjs} +1 -1
- package/dist/{Slider-BAhq6cJT.js → Slider-B7dj-HgC.js} +1 -1
- package/dist/{Slider-BK5yS7Ih.cjs → Slider-CUe2-pUo.cjs} +1 -1
- package/dist/{Spinner-swPRQ7kf.cjs → Spinner-BJ0Xx-p9.cjs} +1 -1
- package/dist/{Spinner-BxnDJP1H.js → Spinner-DQULvHnJ.js} +1 -1
- package/dist/{Stepper-BH7RO00M.js → Stepper-BOVp6Jjq.js} +1 -1
- package/dist/{Stepper-Da0Ba3PE.cjs → Stepper-SRPMyDLn.cjs} +1 -1
- package/dist/{StepperStep-CI482bzO.cjs → StepperStep-B5eYC6hG.cjs} +1 -1
- package/dist/{StepperStep-CLd8c1dj.js → StepperStep-CqlIqHLF.js} +1 -1
- package/dist/{Toaster-Cit4iNYG.cjs → Toaster-BqGcvJTt.cjs} +1 -1
- package/dist/{Toaster-zIdIFToW.js → Toaster-jp4xMJRY.js} +1 -1
- package/dist/{Tree-BiqO99_n.cjs → Tree-CBRmya_L.cjs} +1 -1
- package/dist/{Tree-ZtXPSE7w.js → Tree-HuylLYXS.js} +1 -1
- package/dist/{TreeNode-HVTTXuRl.js → TreeNode-BUYoyTFq.js} +1 -1
- package/dist/{TreeNode-BcVuy7zd.cjs → TreeNode-QHxF9qEB.cjs} +1 -1
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +205 -203
- package/dist/component-styles.json +4 -0
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/BlueprintBackground.cjs +1 -1
- package/dist/components/BlueprintBackground.mjs +1 -1
- package/dist/components/BlueprintCard.cjs +1 -1
- package/dist/components/BlueprintCard.mjs +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/BlueprintMinimap.cjs +1 -1
- package/dist/components/BlueprintMinimap.mjs +1 -1
- package/dist/components/BottomPanel.cjs +1 -1
- package/dist/components/BottomPanel.mjs +1 -1
- package/dist/components/Charts/Sparkline.cjs +1 -1
- package/dist/components/Charts/Sparkline.mjs +1 -1
- package/dist/components/FileUploader.cjs +1 -1
- package/dist/components/FileUploader.mjs +1 -1
- package/dist/components/Form.cjs +1 -1
- package/dist/components/Form.mjs +1 -1
- package/dist/components/ImageCropper.cjs +1 -1
- package/dist/components/ImageCropper.mjs +1 -1
- package/dist/components/InlineEdit.cjs +1 -1
- package/dist/components/InlineEdit.mjs +1 -1
- package/dist/components/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenterItem.cjs +1 -1
- package/dist/components/NotificationCenterItem.mjs +1 -1
- package/dist/components/NumberInput.cjs +1 -1
- package/dist/components/NumberInput.mjs +1 -1
- package/dist/components/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar.mjs +1 -1
- package/dist/components/Radio.cjs +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.d.ts +26 -0
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/Shell.vue.d.ts +19 -13
- package/dist/components/Shell.vue.d.ts.map +1 -1
- package/dist/components/ShellPanel.cjs +1 -1
- package/dist/components/ShellPanel.mjs +1 -1
- package/dist/components/SidebarHeaderToggle.cjs +1 -0
- package/dist/components/SidebarHeaderToggle.d.ts +22 -0
- package/dist/components/SidebarHeaderToggle.mjs +2 -0
- package/dist/components/SidebarHeaderToggle.vue.d.ts +13 -0
- package/dist/components/SidebarHeaderToggle.vue.d.ts.map +1 -0
- package/dist/components/SidebarLink.cjs +1 -1
- package/dist/components/SidebarLink.mjs +1 -1
- package/dist/components/SidebarMenu.cjs +1 -1
- package/dist/components/SidebarMenu.mjs +1 -1
- package/dist/components/SidebarMenuGroup.cjs +1 -1
- package/dist/components/SidebarMenuGroup.mjs +1 -1
- package/dist/components/Skeleton.cjs +1 -1
- package/dist/components/Skeleton.mjs +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.mjs +1 -1
- package/dist/components/Stepper.cjs +1 -1
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/TableOfContents.cjs +1 -1
- package/dist/components/TableOfContents.mjs +1 -1
- package/dist/components/Tabs.cjs +1 -1
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Toast.cjs +1 -1
- package/dist/components/Toast.mjs +1 -1
- package/dist/components/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/Tree.cjs +1 -1
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeNode.cjs +1 -1
- package/dist/components/TreeNode.mjs +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/components/Wireframe.cjs +1 -1
- package/dist/components/Wireframe.mjs +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/manifest.d.ts +1 -0
- package/dist/components/manifest.d.ts.map +1 -1
- package/dist/components/manifest.js +1 -0
- package/dist/composables/useBlueprint.composable.cjs +1 -1
- package/dist/composables/useBlueprint.composable.mjs +1 -1
- package/dist/composables/useInlineLoading.composable.cjs +1 -1
- package/dist/composables/useInlineLoading.composable.mjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
- package/dist/global.d.ts +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +52 -51
- package/dist/main.d.ts +3 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/Shell.css +1 -1
- package/dist/styles/SidebarHeaderToggle.css +1 -0
- package/dist/ui.css +2 -1
- package/package.json +1 -1
- package/dist/Shell-6Dwl2FnC.cjs +0 -1
- package/dist/Shell-C9DK_Phw.js +0 -487
- /package/dist/{Blueprint.context-BU2ujsDD.js → Blueprint.context-2_MDBjES.js} +0 -0
- /package/dist/{Blueprint.context-DjbRPuLQ.cjs → Blueprint.context-Bg93XvTO.cjs} +0 -0
- /package/dist/{BlueprintBackground-D5i-Rlmm.cjs → BlueprintBackground-BMsTpTgI.cjs} +0 -0
- /package/dist/{BlueprintBackground-DtGJCzDy.js → BlueprintBackground-Drl6oulr.js} +0 -0
- /package/dist/{BlueprintControls-xe0sgQXW.cjs → BlueprintControls-BzVToPNV.cjs} +0 -0
- /package/dist/{BlueprintControls-CLW9PC_k.js → BlueprintControls-Yv2qEoQn.js} +0 -0
- /package/dist/{BlueprintMinimap-CujSRNvs.cjs → BlueprintMinimap-BKmT77co.cjs} +0 -0
- /package/dist/{BlueprintMinimap-xwEOZlv6.js → BlueprintMinimap-CfP0QG1u.js} +0 -0
- /package/dist/{BottomPanel-Cpr7_cZI.cjs → BottomPanel-B4BKovGy.cjs} +0 -0
- /package/dist/{BottomPanel-DdjpIyOA.js → BottomPanel-BElntZaN.js} +0 -0
- /package/dist/{FileUploader-DAbs5fWp.cjs → FileUploader-B1eAj1oT.cjs} +0 -0
- /package/dist/{FileUploader-DBGNk6Qg.js → FileUploader-B3JSn14R.js} +0 -0
- /package/dist/{Form-2pXj4bhZ.js → Form-4TJwMxqu.js} +0 -0
- /package/dist/{Form-CYesmztD.cjs → Form-B19aJo0v.cjs} +0 -0
- /package/dist/{ImageCropper-CLyH3zZ-.js → ImageCropper-B1a_A5Ib.js} +0 -0
- /package/dist/{ImageCropper-DAU0ddvI.cjs → ImageCropper-Czn19fHb.cjs} +0 -0
- /package/dist/{InlineEdit-BLrO3i1p.cjs → InlineEdit-CdzJp_Qc.cjs} +0 -0
- /package/dist/{InlineEdit-BemWhcI3.js → InlineEdit-sXl15lhv.js} +0 -0
- /package/dist/{NotificationCenterItem-CdzyTsCY.js → NotificationCenterItem-BS99lA9U.js} +0 -0
- /package/dist/{NotificationCenterItem-C8zaSiem.cjs → NotificationCenterItem-Bq6hBjxG.cjs} +0 -0
- /package/dist/{NumberInput-BtPQ7p5y.cjs → NumberInput-B3dMMfkv.cjs} +0 -0
- /package/dist/{NumberInput-Dk8ofnNJ.js → NumberInput-CYKutu9p.js} +0 -0
- /package/dist/{ProgressBar-B2EXpOdC.js → ProgressBar-NAH9T3du.js} +0 -0
- /package/dist/{ProgressBar-D1O4iAxy.cjs → ProgressBar-vlXYuXqm.cjs} +0 -0
- /package/dist/{Radio-DALC1A47.cjs → Radio-CZFANKLv.cjs} +0 -0
- /package/dist/{Radio-fgJU2hwQ.js → Radio-CqwO18b1.js} +0 -0
- /package/dist/{ShellPanel-rrSF7BQs.cjs → ShellPanel-BBR1L2R6.cjs} +0 -0
- /package/dist/{ShellPanel-Cu3C3H9J.js → ShellPanel-BpyI2aIg.js} +0 -0
- /package/dist/{SidebarLink-Bi8GxvCf.js → SidebarLink-CrAE9jVP.js} +0 -0
- /package/dist/{SidebarLink-BbzeT8Tq.cjs → SidebarLink-Q_24cprL.cjs} +0 -0
- /package/dist/{SidebarMenu-B4nng5Fz.cjs → SidebarMenu-CG7INeFB.cjs} +0 -0
- /package/dist/{SidebarMenu-DoMgZO7c.js → SidebarMenu-CyU7BDNi.js} +0 -0
- /package/dist/{SidebarMenuGroup-CmCPtZJD.js → SidebarMenuGroup-DBYK7rcf.js} +0 -0
- /package/dist/{SidebarMenuGroup-BdOpz4N1.cjs → SidebarMenuGroup-DTBKBUjn.cjs} +0 -0
- /package/dist/{Sparkline-DI7arXX0.cjs → Sparkline-BVdqvpyz.cjs} +0 -0
- /package/dist/{Sparkline-C4gA55Pc.js → Sparkline-DcUnQ1P1.js} +0 -0
- /package/dist/{Stepper.context-Dxw8xYGX.cjs → Stepper.context-ChJ_li6d.cjs} +0 -0
- /package/dist/{Stepper.context-q_CjX3CO.js → Stepper.context-qAFBgE0m.js} +0 -0
- /package/dist/{TableOfContents-1OY_mlI4.js → TableOfContents-D_BGx-pk.js} +0 -0
- /package/dist/{TableOfContents-BZCrLDe1.cjs → TableOfContents-DuHDYa_2.cjs} +0 -0
- /package/dist/{Tabs-D3daz-Xc.cjs → Tabs-CAp2Db_g.cjs} +0 -0
- /package/dist/{Tabs-BzsQiQ2H.js → Tabs-DMvOHEf0.js} +0 -0
- /package/dist/{Toast-Ci4P6mM0.cjs → Toast-DVDmzm3P.cjs} +0 -0
- /package/dist/{Toast-CeGAznEA.js → Toast-DonkhsQJ.js} +0 -0
- /package/dist/{TreeContext-xtlNBGhB.js → TreeContext-C7vosBJ7.js} +0 -0
- /package/dist/{TreeContext-we7Xt7IP.cjs → TreeContext-DndlJ7Bk.cjs} +0 -0
- /package/dist/{Walkthrough-ZuHZx69C.cjs → Walkthrough-4ZCZMy5H.cjs} +0 -0
- /package/dist/{Walkthrough-BYCQMYqG.js → Walkthrough-BhmY-KYC.js} +0 -0
- /package/dist/{Wireframe-CX8KvGJx.cjs → Wireframe-BRodipXd.cjs} +0 -0
- /package/dist/{Wireframe-Bf55dFWu.js → Wireframe-BjuYZcDs.js} +0 -0
- /package/dist/{pixi-scene-D57Y3MvT.js → pixi-scene-BO02twgE.js} +0 -0
- /package/dist/{pixi-scene-OOSMyGKD.cjs → pixi-scene-BZa8QvH8.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-BMMz4C1C.cjs → useLoadingAnnouncer.composable-BCTl7kry.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-DY8jGEwJ.js → useLoadingAnnouncer.composable-kJ9fDUqa.js} +0 -0
package/dist/Shell-C9DK_Phw.js
DELETED
|
@@ -1,487 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { NB_LAYER_INJECTION_KEY as t, clampLayer as n, useSurfaceLayer as r } from "./composables/useSurfaceLayer.composable.mjs";
|
|
3
|
-
import { hasSlotContent as ee } from "./utils/slotContent.helper.mjs";
|
|
4
|
-
import { NB_SHELL_SLOT_KEY as te, createShellSlotRegistry as ne } from "./composables/useShellSlot.composable.mjs";
|
|
5
|
-
import { NB_SHELL_LAYOUT_KEY as re } from "./composables/useShellLayout.composable.mjs";
|
|
6
|
-
import { computed as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, createVNode as ie, defineComponent as c, getCurrentInstance as ae, mergeProps as oe, nextTick as l, normalizeClass as u, normalizeStyle as se, onBeforeUnmount as ce, onMounted as le, openBlock as d, provide as f, ref as p, renderSlot as m, toDisplayString as h, toRef as ue, unref as de, useId as fe, useSlots as pe, vShow as me, watch as g, withCtx as he, withDirectives as ge, withKeys as _e } from "vue";
|
|
7
|
-
//#endregion
|
|
8
|
-
//#region src/components/SurfaceLayerScope.vue
|
|
9
|
-
var ve = /* @__PURE__ */ c({
|
|
10
|
-
__name: "SurfaceLayerScope",
|
|
11
|
-
props: { level: {} },
|
|
12
|
-
setup(e) {
|
|
13
|
-
let r = e;
|
|
14
|
-
return f(t, i(() => n(r.level))), (e, t) => m(e.$slots, "default");
|
|
15
|
-
}
|
|
16
|
-
}), ye = ["href"], be = { class: "nb-shell__middle" }, xe = [
|
|
17
|
-
"id",
|
|
18
|
-
"aria-label",
|
|
19
|
-
"tabindex",
|
|
20
|
-
"inert",
|
|
21
|
-
"aria-hidden"
|
|
22
|
-
], Se = { class: "nb-shell__sidebar-logo" }, Ce = { class: "nb-shell__sidebar-nav" }, we = { class: "nb-shell__sidebar-bottom" }, Te = { class: "nb-shell__right" }, Ee = {
|
|
23
|
-
key: 2,
|
|
24
|
-
class: "nb-shell__menubar"
|
|
25
|
-
}, De = {
|
|
26
|
-
key: 3,
|
|
27
|
-
class: "nb-shell__topbar"
|
|
28
|
-
}, Oe = [
|
|
29
|
-
"aria-label",
|
|
30
|
-
"aria-expanded",
|
|
31
|
-
"aria-controls"
|
|
32
|
-
], ke = { class: "nb-shell__content-row" }, Ae = ["inert", "aria-hidden"], je = ["aria-expanded"], Me = {
|
|
33
|
-
class: "nb-shell__contextbar-toggle-glyph",
|
|
34
|
-
"aria-hidden": "true"
|
|
35
|
-
}, Ne = { class: "nb-shell__main-row" }, Pe = ["aria-label"], Fe = ["id"], Ie = [
|
|
36
|
-
"aria-label",
|
|
37
|
-
"inert",
|
|
38
|
-
"aria-hidden"
|
|
39
|
-
], Le = ["aria-label"], Re = [
|
|
40
|
-
"aria-label",
|
|
41
|
-
"aria-valuenow",
|
|
42
|
-
"aria-valuemax"
|
|
43
|
-
], ze = "(pointer: coarse) and (hover: none) and (max-height: 500px)", Be = "a[href], [role=\"menuitem\"]", _ = 288, Ve = 16, He = 64, v = /* @__PURE__ */ e(/* @__PURE__ */ c({
|
|
44
|
-
__name: "Shell",
|
|
45
|
-
props: {
|
|
46
|
-
inspectorVisible: {
|
|
47
|
-
type: Boolean,
|
|
48
|
-
default: !1
|
|
49
|
-
},
|
|
50
|
-
inspectorExpanded: {
|
|
51
|
-
type: Boolean,
|
|
52
|
-
default: !1
|
|
53
|
-
},
|
|
54
|
-
inspectorSize: { default: "md" },
|
|
55
|
-
resizable: {
|
|
56
|
-
type: Boolean,
|
|
57
|
-
default: !1
|
|
58
|
-
},
|
|
59
|
-
inspectorWidth: {},
|
|
60
|
-
mainPadding: {
|
|
61
|
-
type: Boolean,
|
|
62
|
-
default: !0
|
|
63
|
-
},
|
|
64
|
-
sidebarVariant: { default: "compact" },
|
|
65
|
-
topbar: { default: "auto" },
|
|
66
|
-
skipToContent: {
|
|
67
|
-
type: Boolean,
|
|
68
|
-
default: !0
|
|
69
|
-
},
|
|
70
|
-
skipToContentLabel: { default: "Skip to content" },
|
|
71
|
-
mainId: {},
|
|
72
|
-
sidebarLabel: { default: "Primary" },
|
|
73
|
-
inspectorLabel: { default: "Inspector" },
|
|
74
|
-
contextbarLabel: { default: "Browse" },
|
|
75
|
-
collapseAt: { default: "md" },
|
|
76
|
-
sidebarOpen: { type: Boolean },
|
|
77
|
-
navToggleLabel: { default: "Navigation" },
|
|
78
|
-
inspectorCloseLabel: { default: "Close inspector" }
|
|
79
|
-
},
|
|
80
|
-
emits: [
|
|
81
|
-
"update:inspectorWidth",
|
|
82
|
-
"update:sidebarOpen",
|
|
83
|
-
"update:inspectorVisible"
|
|
84
|
-
],
|
|
85
|
-
setup(e, { expose: t, emit: n }) {
|
|
86
|
-
let c = pe();
|
|
87
|
-
function v(e) {
|
|
88
|
-
return ee(c, e);
|
|
89
|
-
}
|
|
90
|
-
let { registry: Ue, count: y, sharedCount: We, setElement: b } = ne();
|
|
91
|
-
f(te, Ue);
|
|
92
|
-
let Ge = /* @__PURE__ */ new Map();
|
|
93
|
-
function x(e) {
|
|
94
|
-
let t = Ge.get(e);
|
|
95
|
-
return t || (t = (t) => b(e, t ?? null), Ge.set(e, t)), t;
|
|
96
|
-
}
|
|
97
|
-
function S(e) {
|
|
98
|
-
return v(e) || y(e) > 0;
|
|
99
|
-
}
|
|
100
|
-
function C(e) {
|
|
101
|
-
return We(e) > 0 ? "nb-shell__region--ordered" : null;
|
|
102
|
-
}
|
|
103
|
-
let w = i(() => {
|
|
104
|
-
for (let e of [
|
|
105
|
-
"sidebar-logo",
|
|
106
|
-
"sidebar-nav",
|
|
107
|
-
"sidebar-bottom"
|
|
108
|
-
]) if (v(e)) return !0;
|
|
109
|
-
return !1;
|
|
110
|
-
}), T = e, E = p(!1), D = n, Ke = {
|
|
111
|
-
md: 672,
|
|
112
|
-
lg: 1056
|
|
113
|
-
}, O = p(typeof window < "u" ? window.innerWidth : Infinity);
|
|
114
|
-
function k(e) {
|
|
115
|
-
let t = Ke[T.collapseAt];
|
|
116
|
-
return t != null && e < t;
|
|
117
|
-
}
|
|
118
|
-
let A = 0;
|
|
119
|
-
function qe() {
|
|
120
|
-
let e = window.innerWidth;
|
|
121
|
-
k(e) !== k(O.value) && (O.value = e);
|
|
122
|
-
}
|
|
123
|
-
function Je() {
|
|
124
|
-
A ||= window.requestAnimationFrame(() => {
|
|
125
|
-
A = 0, O.value = window.innerWidth;
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
function Ye() {
|
|
129
|
-
typeof window > "u" || (window.removeEventListener("resize", Je), A &&= (window.cancelAnimationFrame(A), 0));
|
|
130
|
-
}
|
|
131
|
-
function Xe() {
|
|
132
|
-
typeof window > "u" || (O.value = window.innerWidth, window.addEventListener("resize", Je, { passive: !0 }));
|
|
133
|
-
}
|
|
134
|
-
let j = typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(ze) : null, M = p(j?.matches === !0);
|
|
135
|
-
function N(e) {
|
|
136
|
-
M.value = e.matches;
|
|
137
|
-
}
|
|
138
|
-
let P = i(() => k(O.value) || T.collapseAt !== "none" && M.value), F = ae()?.vnode.props ?? {};
|
|
139
|
-
function I(e, t) {
|
|
140
|
-
return e in F || t in F;
|
|
141
|
-
}
|
|
142
|
-
function Ze(e, t) {
|
|
143
|
-
if (e in F) return F[e];
|
|
144
|
-
if (t in F) return F[t];
|
|
145
|
-
}
|
|
146
|
-
function L(e, t) {
|
|
147
|
-
return I(e, t) && Ze(e, t) !== void 0;
|
|
148
|
-
}
|
|
149
|
-
let R = L("sidebarOpen", "sidebar-open"), z = p(!1);
|
|
150
|
-
I("sidebarOpen", "sidebar-open") && !R && g(() => T.sidebarOpen, (e) => {
|
|
151
|
-
z.value = e === !0;
|
|
152
|
-
});
|
|
153
|
-
let B = i(() => R ? T.sidebarOpen === !0 : z.value), Qe = fe(), $e = i(() => `nb-shell-sidebar-${Qe}`), et = p(null), V = p(null), tt = i(() => w.value && P.value), nt = i(() => w.value && P.value && !B.value);
|
|
154
|
-
function H(e) {
|
|
155
|
-
R || (z.value = e), D("update:sidebarOpen", e);
|
|
156
|
-
}
|
|
157
|
-
function rt(e) {
|
|
158
|
-
if (!e.defaultPrevented) {
|
|
159
|
-
if (w.value && P.value && B.value) {
|
|
160
|
-
H(!1);
|
|
161
|
-
return;
|
|
162
|
-
}
|
|
163
|
-
q.value && J(!1);
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
function it(e, t) {
|
|
167
|
-
let n = e.target, r = n?.closest?.(Be);
|
|
168
|
-
if (!r || !t?.contains(r)) return !1;
|
|
169
|
-
let ee = r.getAttribute("aria-haspopup");
|
|
170
|
-
return !(ee != null && ee !== "false" || r.hasAttribute("aria-expanded") || r.getAttribute("aria-disabled") === "true" || n?.closest?.("[data-nb-keep-open]"));
|
|
171
|
-
}
|
|
172
|
-
function at(e) {
|
|
173
|
-
!P.value || !B.value || it(e, V.value) && H(!1);
|
|
174
|
-
}
|
|
175
|
-
function ot(e) {
|
|
176
|
-
!P.value || !E.value || it(e, e.currentTarget) && (E.value = !1);
|
|
177
|
-
}
|
|
178
|
-
function st(e) {
|
|
179
|
-
E.value = e;
|
|
180
|
-
}
|
|
181
|
-
g(B, async (e) => {
|
|
182
|
-
P.value && (await l(), e ? (V.value?.querySelector("a[href], button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])") ?? V.value)?.focus?.() : et.value?.focus?.());
|
|
183
|
-
}), g(P, (e) => {
|
|
184
|
-
!e && B.value && H(!1);
|
|
185
|
-
});
|
|
186
|
-
let U = L("inspectorVisible", "inspector-visible"), W = p(T.inspectorVisible === !0);
|
|
187
|
-
I("inspectorVisible", "inspector-visible") && !U && g(() => T.inspectorVisible, (e) => {
|
|
188
|
-
W.value = e === !0;
|
|
189
|
-
});
|
|
190
|
-
let G = p(!1), K = i(() => (U ? T.inspectorVisible === !0 : W.value) ? !(P.value && G.value) : !1), q = i(() => P.value && K.value);
|
|
191
|
-
function J(e) {
|
|
192
|
-
U ? G.value = !e : (W.value = e, G.value = !1), D("update:inspectorVisible", e);
|
|
193
|
-
}
|
|
194
|
-
g(() => T.inspectorVisible, (e) => {
|
|
195
|
-
e && (G.value = !1);
|
|
196
|
-
}), g(P, (e) => {
|
|
197
|
-
e || (G.value = !1);
|
|
198
|
-
});
|
|
199
|
-
let ct = p(null), lt = p(null);
|
|
200
|
-
g(q, async (e) => {
|
|
201
|
-
if (e) lt.value = document.activeElement ?? null, await l(), ct.value?.focus?.();
|
|
202
|
-
else {
|
|
203
|
-
let e = lt.value;
|
|
204
|
-
lt.value = null, e?.isConnected && (await l(), e.focus?.());
|
|
205
|
-
}
|
|
206
|
-
}), g(q, (e) => {
|
|
207
|
-
e && w.value && B.value && H(!1);
|
|
208
|
-
});
|
|
209
|
-
function ut() {
|
|
210
|
-
J(!1);
|
|
211
|
-
}
|
|
212
|
-
f(re, {
|
|
213
|
-
collapsed: P,
|
|
214
|
-
inspectorOverlay: q
|
|
215
|
-
});
|
|
216
|
-
let dt = i(() => q.value), Y = p(null), ft = fe(), pt = i(() => T.mainId || `nb-shell-main-${ft}`);
|
|
217
|
-
function mt() {
|
|
218
|
-
Y.value?.focus();
|
|
219
|
-
}
|
|
220
|
-
let ht = i(() => tt.value || T.topbar === "always" ? !0 : T.topbar === "never" ? !1 : v("topbar-left") || v("topbar-right") || y("topbar-left") > 0 || y("topbar-right") > 0), { layerProps: gt } = r(), { layerProps: _t } = r({
|
|
221
|
-
level: 0,
|
|
222
|
-
probe: !1,
|
|
223
|
-
provideContext: !1
|
|
224
|
-
});
|
|
225
|
-
f("nb-shell-sidebar-variant", ue(T, "sidebarVariant"));
|
|
226
|
-
let X = p(null), vt = p(!1);
|
|
227
|
-
le(() => b("inspector", X.value)), g(X, (e) => b("inspector", e));
|
|
228
|
-
let yt = {
|
|
229
|
-
lg: .5,
|
|
230
|
-
xl: .75
|
|
231
|
-
}, bt = {
|
|
232
|
-
xs: 288,
|
|
233
|
-
sm: 360,
|
|
234
|
-
md: 560
|
|
235
|
-
}, xt = i(() => Number.isFinite(O.value) ? O.value : 1280), Z = i(() => Math.max(_, xt.value * .5));
|
|
236
|
-
function Q(e) {
|
|
237
|
-
return Math.round(Math.max(_, Math.min(e, Z.value)));
|
|
238
|
-
}
|
|
239
|
-
let St = L("inspectorWidth", "inspector-width"), Ct = p(null), wt = i(() => St ? T.inspectorWidth ?? null : Ct.value);
|
|
240
|
-
function Tt(e) {
|
|
241
|
-
St || (Ct.value = e), D("update:inspectorWidth", e);
|
|
242
|
-
}
|
|
243
|
-
let Et = i(() => {
|
|
244
|
-
let e = wt.value;
|
|
245
|
-
if (!(!T.resizable || !K.value || e == null)) return { "--nb-shell-inspector-width": `${Q(e)}px` };
|
|
246
|
-
}), Dt = i(() => {
|
|
247
|
-
let e = wt.value;
|
|
248
|
-
if (e != null) return Q(e);
|
|
249
|
-
if (T.inspectorExpanded) return Math.round(xt.value * .5);
|
|
250
|
-
let t = yt[T.inspectorSize], n = t == null ? bt[T.inspectorSize] ?? _ : xt.value * t;
|
|
251
|
-
return Math.round(T.inspectorSize === "xl" ? n : Math.min(n, Z.value));
|
|
252
|
-
}), Ot = i(() => Math.round(Math.max(Z.value, Dt.value))), kt = i(() => Dt.value);
|
|
253
|
-
function At() {
|
|
254
|
-
return Dt.value;
|
|
255
|
-
}
|
|
256
|
-
function jt(e) {
|
|
257
|
-
let t = X.value;
|
|
258
|
-
if (!t) return;
|
|
259
|
-
let n = t.getBoundingClientRect().right;
|
|
260
|
-
Tt(Q(n - e.clientX));
|
|
261
|
-
}
|
|
262
|
-
function $() {
|
|
263
|
-
vt.value = !1, window.removeEventListener("pointermove", jt), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $);
|
|
264
|
-
}
|
|
265
|
-
function Mt(e) {
|
|
266
|
-
T.resizable && (e.preventDefault(), vt.value = !0, window.addEventListener("pointermove", jt), window.addEventListener("pointerup", $), window.addEventListener("pointercancel", $));
|
|
267
|
-
}
|
|
268
|
-
function Nt() {
|
|
269
|
-
Tt(null);
|
|
270
|
-
}
|
|
271
|
-
function Pt(e) {
|
|
272
|
-
if (!T.resizable) return;
|
|
273
|
-
let t = e.shiftKey ? He : Ve, n;
|
|
274
|
-
switch (e.key) {
|
|
275
|
-
case "ArrowLeft":
|
|
276
|
-
n = At() + t;
|
|
277
|
-
break;
|
|
278
|
-
case "ArrowRight":
|
|
279
|
-
n = At() - t;
|
|
280
|
-
break;
|
|
281
|
-
case "Home":
|
|
282
|
-
n = _;
|
|
283
|
-
break;
|
|
284
|
-
case "End":
|
|
285
|
-
n = Z.value;
|
|
286
|
-
break;
|
|
287
|
-
case "Enter":
|
|
288
|
-
case " ":
|
|
289
|
-
n = null;
|
|
290
|
-
break;
|
|
291
|
-
default: return;
|
|
292
|
-
}
|
|
293
|
-
e.preventDefault(), Tt(n == null ? null : Q(n));
|
|
294
|
-
}
|
|
295
|
-
return le(() => {
|
|
296
|
-
typeof window > "u" || (O.value = window.innerWidth, window.addEventListener("resize", qe, { passive: !0 }), T.resizable && Xe(), j && (M.value = j.matches, typeof j.addEventListener == "function" ? j.addEventListener("change", N) : j.addListener?.(N)));
|
|
297
|
-
}), g(() => T.collapseAt, () => {
|
|
298
|
-
typeof window < "u" && (O.value = window.innerWidth);
|
|
299
|
-
}), g(() => T.resizable, (e) => e ? Xe() : Ye()), ce(() => {
|
|
300
|
-
$(), Ye(), typeof window < "u" && window.removeEventListener("resize", qe), j && (typeof j.removeEventListener == "function" ? j.removeEventListener("change", N) : j.removeListener?.(N));
|
|
301
|
-
}), t({
|
|
302
|
-
mainEl: Y,
|
|
303
|
-
sidebarEl: V,
|
|
304
|
-
inspectorEl: X,
|
|
305
|
-
focusMain: () => Y.value?.focus(),
|
|
306
|
-
setSidebarOpen: H,
|
|
307
|
-
setInspectorVisible: J,
|
|
308
|
-
collapsed: P,
|
|
309
|
-
inspectorOverlay: q,
|
|
310
|
-
setContextbarOpen: st
|
|
311
|
-
}), (t, n) => (d(), o("div", oe({ class: "nb-shell" }, de(gt), {
|
|
312
|
-
class: [
|
|
313
|
-
{ "nb-shell--no-sidebar": !w.value },
|
|
314
|
-
w.value ? `nb-shell--sidebar-${e.sidebarVariant}` : null,
|
|
315
|
-
{
|
|
316
|
-
"nb-shell--collapsed": P.value,
|
|
317
|
-
"nb-shell--drawer-open": P.value && B.value
|
|
318
|
-
}
|
|
319
|
-
],
|
|
320
|
-
onKeydown: _e(rt, ["esc"])
|
|
321
|
-
}), [
|
|
322
|
-
e.skipToContent ? (d(), o("a", {
|
|
323
|
-
key: 0,
|
|
324
|
-
class: "nb-shell__skip-link",
|
|
325
|
-
href: `#${pt.value}`,
|
|
326
|
-
onClick: mt
|
|
327
|
-
}, h(e.skipToContentLabel), 9, ye)) : a("", !0),
|
|
328
|
-
S("outer-menu") ? (d(), o("div", {
|
|
329
|
-
key: 1,
|
|
330
|
-
ref: x("outer-menu"),
|
|
331
|
-
class: u(["nb-shell__outer-menu", C("outer-menu")])
|
|
332
|
-
}, [m(t.$slots, "outer-menu", {}, void 0, !0)], 2)) : a("", !0),
|
|
333
|
-
s("div", be, [
|
|
334
|
-
w.value ? (d(), o("nav", {
|
|
335
|
-
key: 0,
|
|
336
|
-
id: $e.value,
|
|
337
|
-
ref_key: "sidebarRef",
|
|
338
|
-
ref: V,
|
|
339
|
-
class: "nb-shell__sidebar",
|
|
340
|
-
"aria-label": e.sidebarLabel,
|
|
341
|
-
tabindex: P.value ? -1 : void 0,
|
|
342
|
-
inert: nt.value || void 0,
|
|
343
|
-
"aria-hidden": nt.value || void 0,
|
|
344
|
-
onClickCapture: at
|
|
345
|
-
}, [
|
|
346
|
-
s("div", Se, [m(t.$slots, "sidebar-logo", {}, void 0, !0)]),
|
|
347
|
-
s("div", Ce, [m(t.$slots, "sidebar-nav", {}, void 0, !0)]),
|
|
348
|
-
n[4] ||= s("div", { class: "nb-shell__sidebar-spacer" }, null, -1),
|
|
349
|
-
s("div", we, [m(t.$slots, "sidebar-bottom", {}, void 0, !0)])
|
|
350
|
-
], 40, xe)) : a("", !0),
|
|
351
|
-
w.value && P.value && B.value ? (d(), o("div", {
|
|
352
|
-
key: 1,
|
|
353
|
-
class: "nb-shell__scrim",
|
|
354
|
-
onClick: n[0] ||= (e) => H(!1)
|
|
355
|
-
})) : a("", !0),
|
|
356
|
-
s("div", Te, [
|
|
357
|
-
S("inner-menu") ? (d(), o("div", {
|
|
358
|
-
key: 0,
|
|
359
|
-
ref: x("inner-menu"),
|
|
360
|
-
class: u(["nb-shell__inner-menu", C("inner-menu")])
|
|
361
|
-
}, [m(t.$slots, "inner-menu", {}, void 0, !0)], 2)) : a("", !0),
|
|
362
|
-
S("notification") ? (d(), o("div", {
|
|
363
|
-
key: 1,
|
|
364
|
-
ref: x("notification"),
|
|
365
|
-
class: u(["nb-shell__notification", C("notification")])
|
|
366
|
-
}, [m(t.$slots, "notification", {}, void 0, !0)], 2)) : a("", !0),
|
|
367
|
-
v("menubar") ? (d(), o("div", Ee, [m(t.$slots, "menubar", {}, void 0, !0)])) : a("", !0),
|
|
368
|
-
ht.value ? (d(), o("div", De, [
|
|
369
|
-
tt.value ? (d(), o("button", {
|
|
370
|
-
key: 0,
|
|
371
|
-
ref_key: "navToggleRef",
|
|
372
|
-
ref: et,
|
|
373
|
-
type: "button",
|
|
374
|
-
class: "nb-shell__nav-toggle",
|
|
375
|
-
"aria-label": e.navToggleLabel,
|
|
376
|
-
"aria-expanded": B.value,
|
|
377
|
-
"aria-controls": $e.value,
|
|
378
|
-
onClick: n[1] ||= (e) => H(!B.value)
|
|
379
|
-
}, [...n[5] ||= [s("span", {
|
|
380
|
-
class: "nb-shell__nav-toggle-glyph",
|
|
381
|
-
"aria-hidden": "true"
|
|
382
|
-
}, [
|
|
383
|
-
s("span"),
|
|
384
|
-
s("span"),
|
|
385
|
-
s("span")
|
|
386
|
-
], -1)]], 8, Oe)) : a("", !0),
|
|
387
|
-
s("div", {
|
|
388
|
-
ref: x("topbar-left"),
|
|
389
|
-
class: "nb-shell__topbar-left"
|
|
390
|
-
}, [m(t.$slots, "topbar-left", {}, void 0, !0)], 512),
|
|
391
|
-
s("div", {
|
|
392
|
-
ref: x("topbar-right"),
|
|
393
|
-
class: "nb-shell__topbar-right"
|
|
394
|
-
}, [m(t.$slots, "topbar-right", {}, void 0, !0)], 512)
|
|
395
|
-
])) : a("", !0),
|
|
396
|
-
s("div", ke, [s("div", {
|
|
397
|
-
class: "nb-shell__body",
|
|
398
|
-
inert: dt.value || void 0,
|
|
399
|
-
"aria-hidden": dt.value || void 0
|
|
400
|
-
}, [
|
|
401
|
-
S("fixedbar") ? (d(), o("div", {
|
|
402
|
-
key: 0,
|
|
403
|
-
ref: x("fixedbar"),
|
|
404
|
-
class: "nb-shell__fixedbar"
|
|
405
|
-
}, [m(t.$slots, "fixedbar", {}, void 0, !0)], 512)) : a("", !0),
|
|
406
|
-
P.value && S("contextbar") ? (d(), o("button", {
|
|
407
|
-
key: 1,
|
|
408
|
-
type: "button",
|
|
409
|
-
class: "nb-shell__contextbar-toggle",
|
|
410
|
-
"aria-expanded": E.value,
|
|
411
|
-
onClick: n[2] ||= (e) => E.value = !E.value
|
|
412
|
-
}, [s("span", null, h(e.contextbarLabel), 1), s("span", Me, h(E.value ? "▾" : "▸"), 1)], 8, je)) : a("", !0),
|
|
413
|
-
s("div", Ne, [S("contextbar") ? ge((d(), o("aside", {
|
|
414
|
-
key: 0,
|
|
415
|
-
ref: x("contextbar"),
|
|
416
|
-
class: u(["nb-shell__contextbar", C("contextbar")]),
|
|
417
|
-
"aria-label": e.contextbarLabel,
|
|
418
|
-
onClickCapture: ot
|
|
419
|
-
}, [m(t.$slots, "contextbar", {}, void 0, !0)], 42, Pe)), [[me, !P.value || E.value]]) : a("", !0), s("main", oe({
|
|
420
|
-
id: pt.value,
|
|
421
|
-
ref_key: "mainRef",
|
|
422
|
-
ref: Y,
|
|
423
|
-
tabindex: "-1",
|
|
424
|
-
class: ["nb-shell__main", { "nb-shell__main--no-padding": !e.mainPadding }]
|
|
425
|
-
}, de(_t)), [ie(ve, { level: 1 }, {
|
|
426
|
-
default: he(() => [m(t.$slots, "default", {}, void 0, !0)]),
|
|
427
|
-
_: 3
|
|
428
|
-
})], 16, Fe)]),
|
|
429
|
-
S("bottom") ? (d(), o("div", {
|
|
430
|
-
key: 2,
|
|
431
|
-
ref: x("bottom"),
|
|
432
|
-
class: "nb-shell__bottom"
|
|
433
|
-
}, [m(t.$slots, "bottom", {}, void 0, !0)], 512)) : a("", !0)
|
|
434
|
-
], 8, Ae), s("aside", {
|
|
435
|
-
ref_key: "inspectorRef",
|
|
436
|
-
ref: X,
|
|
437
|
-
class: u(["nb-shell__inspector", {
|
|
438
|
-
"nb-shell__inspector--visible": K.value,
|
|
439
|
-
"nb-shell__inspector--expanded": K.value && e.inspectorExpanded,
|
|
440
|
-
[`nb-shell__inspector--${e.inspectorSize}`]: K.value,
|
|
441
|
-
"nb-shell__inspector--resizing": vt.value,
|
|
442
|
-
"nb-shell__inspector--overlay": q.value
|
|
443
|
-
}]),
|
|
444
|
-
"aria-label": e.inspectorLabel,
|
|
445
|
-
inert: !K.value || void 0,
|
|
446
|
-
"aria-hidden": !K.value || void 0,
|
|
447
|
-
style: se(Et.value)
|
|
448
|
-
}, [
|
|
449
|
-
q.value ? (d(), o("button", {
|
|
450
|
-
key: 0,
|
|
451
|
-
ref_key: "inspectorDismissRef",
|
|
452
|
-
ref: ct,
|
|
453
|
-
type: "button",
|
|
454
|
-
class: "nb-shell__inspector-dismiss",
|
|
455
|
-
"aria-label": e.inspectorCloseLabel,
|
|
456
|
-
onClick: n[3] ||= (e) => J(!1)
|
|
457
|
-
}, [...n[6] ||= [s("span", {
|
|
458
|
-
class: "nb-shell__inspector-dismiss-glyph",
|
|
459
|
-
"aria-hidden": "true"
|
|
460
|
-
}, "×", -1)]], 8, Le)) : a("", !0),
|
|
461
|
-
e.resizable && K.value && !P.value ? (d(), o("div", {
|
|
462
|
-
key: 1,
|
|
463
|
-
class: "nb-shell__inspector-resize",
|
|
464
|
-
role: "separator",
|
|
465
|
-
tabindex: "0",
|
|
466
|
-
"aria-orientation": "vertical",
|
|
467
|
-
"aria-label": `Resize ${e.inspectorLabel}`,
|
|
468
|
-
"aria-valuenow": kt.value,
|
|
469
|
-
"aria-valuemin": _,
|
|
470
|
-
"aria-valuemax": Ot.value,
|
|
471
|
-
title: "Drag or use the arrow keys to resize, Enter or double-click to reset",
|
|
472
|
-
onPointerdown: Mt,
|
|
473
|
-
onDblclick: Nt,
|
|
474
|
-
onKeydown: Pt
|
|
475
|
-
}, null, 40, Re)) : a("", !0),
|
|
476
|
-
m(t.$slots, "inspector", {
|
|
477
|
-
overlay: q.value,
|
|
478
|
-
close: ut
|
|
479
|
-
}, void 0, !0)
|
|
480
|
-
], 14, Ie)])
|
|
481
|
-
])
|
|
482
|
-
])
|
|
483
|
-
], 16));
|
|
484
|
-
}
|
|
485
|
-
}), [["__scopeId", "data-v-45576875"]]);
|
|
486
|
-
//#endregion
|
|
487
|
-
export { v as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|