@nubisco/ui 5.26.0 → 5.27.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (236) hide show
  1. package/dist/{ActionGroup-lEopoloN.js → ActionGroup-BepLbLUB.js} +1 -1
  2. package/dist/{ActionGroup-CUN48Qea.cjs → ActionGroup-CPJcdC_x.cjs} +1 -1
  3. package/dist/{AiProvider-B4salihw.js → AiProvider-CkzXTd_m.js} +1 -1
  4. package/dist/{AiProvider-pHIvM5zN.cjs → AiProvider-ueSRHZ4d.cjs} +1 -1
  5. package/dist/{BackToTop-Dm7Aq_81.cjs → BackToTop-Bep47dq4.cjs} +1 -1
  6. package/dist/{BackToTop-C4Aol9qJ.js → BackToTop-DwInsaIf.js} +1 -1
  7. package/dist/{Blueprint-DxHaLr4P.cjs → Blueprint-CMNV_pFD.cjs} +1 -1
  8. package/dist/{Blueprint-CQ0UBrND.js → Blueprint-DAySN9o8.js} +2 -2
  9. package/dist/{BlueprintCard-BpVITfop.js → BlueprintCard-CaDr0605.js} +1 -1
  10. package/dist/{BlueprintCard-ndSnIVKE.cjs → BlueprintCard-DIe9bROZ.cjs} +1 -1
  11. package/dist/{BlueprintControls-BfTyqOwC.cjs → BlueprintControls-BzVToPNV.cjs} +1 -1
  12. package/dist/{BlueprintControls-COeG8N6G.js → BlueprintControls-Yv2qEoQn.js} +1 -1
  13. package/dist/{Board-R38Zb5t2.js → Board-CTjk-pTy.js} +1 -1
  14. package/dist/{Board-DmOzimbT.cjs → Board-CoxZg27T.cjs} +1 -1
  15. package/dist/{BriefingDestination-CA8Dv-tJ.js → BriefingDestination-D_IHVo71.js} +1 -1
  16. package/dist/{BriefingDestination-DIXsBoE2.cjs → BriefingDestination-Md4A2sPI.cjs} +1 -1
  17. package/dist/{Button-C0UUTgEB.cjs → Button-CbQyG-jg.cjs} +1 -1
  18. package/dist/{Button-IcCXOoCT.js → Button-Cq9dEeHz.js} +1 -1
  19. package/dist/{Confirm-YhMEfWX5.cjs → Confirm-Bdc104-K.cjs} +1 -1
  20. package/dist/{Confirm-DQqArhXl.js → Confirm-CpKo6Tav.js} +2 -2
  21. package/dist/{CopyButton-CqrXMntq.js → CopyButton-DRpVCGXL.js} +1 -1
  22. package/dist/{CopyButton-BfjJRwj9.cjs → CopyButton-rEPzSx4v.cjs} +1 -1
  23. package/dist/{DataTable-B2hBaZ2y.cjs → DataTable-D0JW9sxz.cjs} +1 -1
  24. package/dist/{DataTable-BZ8Q_6fr.js → DataTable-DwLWLUUt.js} +1 -1
  25. package/dist/{FileUploader-D1HoVmOw.cjs → FileUploader-B1eAj1oT.cjs} +1 -1
  26. package/dist/{FileUploader-C9Pyc7er.js → FileUploader-B3JSn14R.js} +1 -1
  27. package/dist/{InlineLoading-w5XKQdGi.cjs → InlineLoading-DBJe1W5c.cjs} +1 -1
  28. package/dist/{InlineLoading-uGDGiTNv.js → InlineLoading-DcAS5wVb.js} +1 -1
  29. package/dist/{Modal-CtCD-xEb.cjs → Modal-Bcl003Rp.cjs} +1 -1
  30. package/dist/{Modal-CfcTmfeK.js → Modal-CWeCxkXh.js} +1 -1
  31. package/dist/{NotificationCenter-xL9_6BMt.js → NotificationCenter-BcBIvNED.js} +4 -4
  32. package/dist/{NotificationCenter-CGhxyax1.cjs → NotificationCenter-CzYFsX7I.cjs} +1 -1
  33. package/dist/{Pagination-CSISbmpl.js → Pagination-DJ8ZuHST.js} +1 -1
  34. package/dist/{Pagination-Ci1te4UW.cjs → Pagination-d-FYh-zd.cjs} +1 -1
  35. package/dist/Shell-BWIHH0q8.js +497 -0
  36. package/dist/Shell-CgOJlNco.cjs +1 -0
  37. package/dist/SidebarHeaderToggle-BZ_YU8EU.cjs +1 -0
  38. package/dist/SidebarHeaderToggle-DBiI4idz.js +61 -0
  39. package/dist/{Skeleton-Ba4m2jYi.js → Skeleton-1DNgvYeb.js} +1 -1
  40. package/dist/{Skeleton-Bgo6pIY2.cjs → Skeleton-DmkE06TO.cjs} +1 -1
  41. package/dist/{Slider-BAhq6cJT.js → Slider-B7dj-HgC.js} +1 -1
  42. package/dist/{Slider-BK5yS7Ih.cjs → Slider-CUe2-pUo.cjs} +1 -1
  43. package/dist/{Spinner-swPRQ7kf.cjs → Spinner-BJ0Xx-p9.cjs} +1 -1
  44. package/dist/{Spinner-BxnDJP1H.js → Spinner-DQULvHnJ.js} +1 -1
  45. package/dist/{Stepper-BH7RO00M.js → Stepper-BOVp6Jjq.js} +1 -1
  46. package/dist/{Stepper-Da0Ba3PE.cjs → Stepper-SRPMyDLn.cjs} +1 -1
  47. package/dist/{StepperStep-CI482bzO.cjs → StepperStep-B5eYC6hG.cjs} +1 -1
  48. package/dist/{StepperStep-CLd8c1dj.js → StepperStep-CqlIqHLF.js} +1 -1
  49. package/dist/{TableOfContents-BqF5y-1t.js → TableOfContents-D_BGx-pk.js} +1 -1
  50. package/dist/{TableOfContents-C6xx7P4d.cjs → TableOfContents-DuHDYa_2.cjs} +1 -1
  51. package/dist/{Toaster-Cit4iNYG.cjs → Toaster-BqGcvJTt.cjs} +1 -1
  52. package/dist/{Toaster-zIdIFToW.js → Toaster-jp4xMJRY.js} +1 -1
  53. package/dist/{Tree-BiqO99_n.cjs → Tree-CBRmya_L.cjs} +1 -1
  54. package/dist/{Tree-ZtXPSE7w.js → Tree-HuylLYXS.js} +1 -1
  55. package/dist/{TreeNode-HVTTXuRl.js → TreeNode-BUYoyTFq.js} +1 -1
  56. package/dist/{TreeNode-BcVuy7zd.cjs → TreeNode-QHxF9qEB.cjs} +1 -1
  57. package/dist/{Video-CY0UEDLL.js → Video-BbraQauu.js} +1 -1
  58. package/dist/{Video-Bgzvf-C9.cjs → Video-DDytsRcF.cjs} +1 -1
  59. package/dist/{Walkthrough-oU-NaG_A.cjs → Walkthrough-4ZCZMy5H.cjs} +1 -1
  60. package/dist/{Walkthrough-KmxZqXxV.js → Walkthrough-BhmY-KYC.js} +1 -1
  61. package/dist/all.cjs +1 -1
  62. package/dist/all.mjs +207 -205
  63. package/dist/component-styles.json +4 -0
  64. package/dist/components/ActionGroup.cjs +1 -1
  65. package/dist/components/ActionGroup.mjs +1 -1
  66. package/dist/components/AiProvider.cjs +1 -1
  67. package/dist/components/AiProvider.mjs +1 -1
  68. package/dist/components/BackToTop.cjs +1 -1
  69. package/dist/components/BackToTop.mjs +1 -1
  70. package/dist/components/Blueprint.cjs +1 -1
  71. package/dist/components/Blueprint.mjs +1 -1
  72. package/dist/components/BlueprintBackground.cjs +1 -1
  73. package/dist/components/BlueprintBackground.mjs +1 -1
  74. package/dist/components/BlueprintCard.cjs +1 -1
  75. package/dist/components/BlueprintCard.mjs +1 -1
  76. package/dist/components/BlueprintControls.cjs +1 -1
  77. package/dist/components/BlueprintControls.mjs +1 -1
  78. package/dist/components/BlueprintMinimap.cjs +1 -1
  79. package/dist/components/BlueprintMinimap.mjs +1 -1
  80. package/dist/components/Board.cjs +1 -1
  81. package/dist/components/Board.mjs +1 -1
  82. package/dist/components/BottomPanel.cjs +1 -1
  83. package/dist/components/BottomPanel.mjs +1 -1
  84. package/dist/components/BriefingDestination.cjs +1 -1
  85. package/dist/components/BriefingDestination.mjs +1 -1
  86. package/dist/components/Button.cjs +1 -1
  87. package/dist/components/Button.mjs +1 -1
  88. package/dist/components/Button.vue.d.ts.map +1 -1
  89. package/dist/components/Charts/Sparkline.cjs +1 -1
  90. package/dist/components/Charts/Sparkline.mjs +1 -1
  91. package/dist/components/Confirm.cjs +1 -1
  92. package/dist/components/Confirm.mjs +1 -1
  93. package/dist/components/CopyButton.cjs +1 -1
  94. package/dist/components/CopyButton.mjs +1 -1
  95. package/dist/components/DataTable.cjs +1 -1
  96. package/dist/components/DataTable.mjs +1 -1
  97. package/dist/components/FileUploader.cjs +1 -1
  98. package/dist/components/FileUploader.mjs +1 -1
  99. package/dist/components/Form.cjs +1 -1
  100. package/dist/components/Form.mjs +1 -1
  101. package/dist/components/ImageCropper.cjs +1 -1
  102. package/dist/components/ImageCropper.mjs +1 -1
  103. package/dist/components/InlineEdit.cjs +1 -1
  104. package/dist/components/InlineEdit.mjs +1 -1
  105. package/dist/components/InlineLoading.cjs +1 -1
  106. package/dist/components/InlineLoading.mjs +1 -1
  107. package/dist/components/Modal.cjs +1 -1
  108. package/dist/components/Modal.mjs +1 -1
  109. package/dist/components/NotificationCenter.cjs +1 -1
  110. package/dist/components/NotificationCenter.mjs +1 -1
  111. package/dist/components/NotificationCenterItem.cjs +1 -1
  112. package/dist/components/NotificationCenterItem.mjs +1 -1
  113. package/dist/components/NumberInput.cjs +1 -1
  114. package/dist/components/NumberInput.mjs +1 -1
  115. package/dist/components/Pagination.cjs +1 -1
  116. package/dist/components/Pagination.mjs +1 -1
  117. package/dist/components/ProgressBar.cjs +1 -1
  118. package/dist/components/ProgressBar.mjs +1 -1
  119. package/dist/components/Radio.cjs +1 -1
  120. package/dist/components/Radio.mjs +1 -1
  121. package/dist/components/Shell.cjs +1 -1
  122. package/dist/components/Shell.d.ts +26 -0
  123. package/dist/components/Shell.mjs +1 -1
  124. package/dist/components/Shell.vue.d.ts +19 -13
  125. package/dist/components/Shell.vue.d.ts.map +1 -1
  126. package/dist/components/ShellPanel.cjs +1 -1
  127. package/dist/components/ShellPanel.mjs +1 -1
  128. package/dist/components/SidebarHeaderToggle.cjs +1 -0
  129. package/dist/components/SidebarHeaderToggle.d.ts +22 -0
  130. package/dist/components/SidebarHeaderToggle.mjs +2 -0
  131. package/dist/components/SidebarHeaderToggle.vue.d.ts +13 -0
  132. package/dist/components/SidebarHeaderToggle.vue.d.ts.map +1 -0
  133. package/dist/components/SidebarLink.cjs +1 -1
  134. package/dist/components/SidebarLink.mjs +1 -1
  135. package/dist/components/SidebarMenu.cjs +1 -1
  136. package/dist/components/SidebarMenu.mjs +1 -1
  137. package/dist/components/SidebarMenuGroup.cjs +1 -1
  138. package/dist/components/SidebarMenuGroup.mjs +1 -1
  139. package/dist/components/Skeleton.cjs +1 -1
  140. package/dist/components/Skeleton.mjs +1 -1
  141. package/dist/components/Slider.cjs +1 -1
  142. package/dist/components/Slider.mjs +1 -1
  143. package/dist/components/Spinner.cjs +1 -1
  144. package/dist/components/Spinner.mjs +1 -1
  145. package/dist/components/Stepper.cjs +1 -1
  146. package/dist/components/Stepper.mjs +1 -1
  147. package/dist/components/StepperStep.cjs +1 -1
  148. package/dist/components/StepperStep.mjs +1 -1
  149. package/dist/components/TableOfContents.cjs +1 -1
  150. package/dist/components/TableOfContents.mjs +1 -1
  151. package/dist/components/Tabs.cjs +1 -1
  152. package/dist/components/Tabs.mjs +1 -1
  153. package/dist/components/Toast.cjs +1 -1
  154. package/dist/components/Toast.mjs +1 -1
  155. package/dist/components/Toaster.cjs +1 -1
  156. package/dist/components/Toaster.mjs +1 -1
  157. package/dist/components/Tree.cjs +1 -1
  158. package/dist/components/Tree.mjs +1 -1
  159. package/dist/components/TreeNode.cjs +1 -1
  160. package/dist/components/TreeNode.mjs +1 -1
  161. package/dist/components/Video.cjs +1 -1
  162. package/dist/components/Video.mjs +1 -1
  163. package/dist/components/Walkthrough.cjs +1 -1
  164. package/dist/components/Walkthrough.mjs +1 -1
  165. package/dist/components/Wireframe.cjs +1 -1
  166. package/dist/components/Wireframe.mjs +1 -1
  167. package/dist/components/index.d.ts.map +1 -1
  168. package/dist/components/manifest.d.ts +1 -0
  169. package/dist/components/manifest.d.ts.map +1 -1
  170. package/dist/components/manifest.js +1 -0
  171. package/dist/composables/useBlueprint.composable.cjs +1 -1
  172. package/dist/composables/useBlueprint.composable.mjs +1 -1
  173. package/dist/composables/useConfirm.composable.cjs +1 -1
  174. package/dist/composables/useConfirm.composable.mjs +2 -2
  175. package/dist/composables/useInlineLoading.composable.cjs +1 -1
  176. package/dist/composables/useInlineLoading.composable.mjs +1 -1
  177. package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
  178. package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
  179. package/dist/global.d.ts +2 -0
  180. package/dist/index.cjs +1 -1
  181. package/dist/index.mjs +64 -63
  182. package/dist/main.d.ts +3 -1
  183. package/dist/main.d.ts.map +1 -1
  184. package/dist/styles/Button.css +1 -1
  185. package/dist/styles/Shell.css +1 -1
  186. package/dist/styles/SidebarHeaderToggle.css +1 -0
  187. package/dist/ui.css +3 -2
  188. package/package.json +1 -1
  189. package/dist/Shell-6Dwl2FnC.cjs +0 -1
  190. package/dist/Shell-C9DK_Phw.js +0 -487
  191. /package/dist/{Blueprint.context-BU2ujsDD.js → Blueprint.context-2_MDBjES.js} +0 -0
  192. /package/dist/{Blueprint.context-DjbRPuLQ.cjs → Blueprint.context-Bg93XvTO.cjs} +0 -0
  193. /package/dist/{BlueprintBackground-D5i-Rlmm.cjs → BlueprintBackground-BMsTpTgI.cjs} +0 -0
  194. /package/dist/{BlueprintBackground-DtGJCzDy.js → BlueprintBackground-Drl6oulr.js} +0 -0
  195. /package/dist/{BlueprintMinimap-CujSRNvs.cjs → BlueprintMinimap-BKmT77co.cjs} +0 -0
  196. /package/dist/{BlueprintMinimap-xwEOZlv6.js → BlueprintMinimap-CfP0QG1u.js} +0 -0
  197. /package/dist/{BottomPanel-Cpr7_cZI.cjs → BottomPanel-B4BKovGy.cjs} +0 -0
  198. /package/dist/{BottomPanel-DdjpIyOA.js → BottomPanel-BElntZaN.js} +0 -0
  199. /package/dist/{Form-2pXj4bhZ.js → Form-4TJwMxqu.js} +0 -0
  200. /package/dist/{Form-CYesmztD.cjs → Form-B19aJo0v.cjs} +0 -0
  201. /package/dist/{ImageCropper-CLyH3zZ-.js → ImageCropper-B1a_A5Ib.js} +0 -0
  202. /package/dist/{ImageCropper-DAU0ddvI.cjs → ImageCropper-Czn19fHb.cjs} +0 -0
  203. /package/dist/{InlineEdit-BLrO3i1p.cjs → InlineEdit-CdzJp_Qc.cjs} +0 -0
  204. /package/dist/{InlineEdit-BemWhcI3.js → InlineEdit-sXl15lhv.js} +0 -0
  205. /package/dist/{NotificationCenterItem-CdzyTsCY.js → NotificationCenterItem-BS99lA9U.js} +0 -0
  206. /package/dist/{NotificationCenterItem-C8zaSiem.cjs → NotificationCenterItem-Bq6hBjxG.cjs} +0 -0
  207. /package/dist/{NumberInput-BtPQ7p5y.cjs → NumberInput-B3dMMfkv.cjs} +0 -0
  208. /package/dist/{NumberInput-Dk8ofnNJ.js → NumberInput-CYKutu9p.js} +0 -0
  209. /package/dist/{ProgressBar-B2EXpOdC.js → ProgressBar-NAH9T3du.js} +0 -0
  210. /package/dist/{ProgressBar-D1O4iAxy.cjs → ProgressBar-vlXYuXqm.cjs} +0 -0
  211. /package/dist/{Radio-DALC1A47.cjs → Radio-CZFANKLv.cjs} +0 -0
  212. /package/dist/{Radio-fgJU2hwQ.js → Radio-CqwO18b1.js} +0 -0
  213. /package/dist/{ShellPanel-rrSF7BQs.cjs → ShellPanel-BBR1L2R6.cjs} +0 -0
  214. /package/dist/{ShellPanel-Cu3C3H9J.js → ShellPanel-BpyI2aIg.js} +0 -0
  215. /package/dist/{SidebarLink-Bi8GxvCf.js → SidebarLink-CrAE9jVP.js} +0 -0
  216. /package/dist/{SidebarLink-BbzeT8Tq.cjs → SidebarLink-Q_24cprL.cjs} +0 -0
  217. /package/dist/{SidebarMenu-B4nng5Fz.cjs → SidebarMenu-CG7INeFB.cjs} +0 -0
  218. /package/dist/{SidebarMenu-DoMgZO7c.js → SidebarMenu-CyU7BDNi.js} +0 -0
  219. /package/dist/{SidebarMenuGroup-CmCPtZJD.js → SidebarMenuGroup-DBYK7rcf.js} +0 -0
  220. /package/dist/{SidebarMenuGroup-BdOpz4N1.cjs → SidebarMenuGroup-DTBKBUjn.cjs} +0 -0
  221. /package/dist/{Sparkline-DI7arXX0.cjs → Sparkline-BVdqvpyz.cjs} +0 -0
  222. /package/dist/{Sparkline-C4gA55Pc.js → Sparkline-DcUnQ1P1.js} +0 -0
  223. /package/dist/{Stepper.context-Dxw8xYGX.cjs → Stepper.context-ChJ_li6d.cjs} +0 -0
  224. /package/dist/{Stepper.context-q_CjX3CO.js → Stepper.context-qAFBgE0m.js} +0 -0
  225. /package/dist/{Tabs-D3daz-Xc.cjs → Tabs-CAp2Db_g.cjs} +0 -0
  226. /package/dist/{Tabs-BzsQiQ2H.js → Tabs-DMvOHEf0.js} +0 -0
  227. /package/dist/{Toast-Ci4P6mM0.cjs → Toast-DVDmzm3P.cjs} +0 -0
  228. /package/dist/{Toast-CeGAznEA.js → Toast-DonkhsQJ.js} +0 -0
  229. /package/dist/{TreeContext-xtlNBGhB.js → TreeContext-C7vosBJ7.js} +0 -0
  230. /package/dist/{TreeContext-we7Xt7IP.cjs → TreeContext-DndlJ7Bk.cjs} +0 -0
  231. /package/dist/{Wireframe-CX8KvGJx.cjs → Wireframe-BRodipXd.cjs} +0 -0
  232. /package/dist/{Wireframe-Bf55dFWu.js → Wireframe-BjuYZcDs.js} +0 -0
  233. /package/dist/{pixi-scene-D57Y3MvT.js → pixi-scene-BO02twgE.js} +0 -0
  234. /package/dist/{pixi-scene-OOSMyGKD.cjs → pixi-scene-BZa8QvH8.cjs} +0 -0
  235. /package/dist/{useLoadingAnnouncer.composable-BMMz4C1C.cjs → useLoadingAnnouncer.composable-BCTl7kry.cjs} +0 -0
  236. /package/dist/{useLoadingAnnouncer.composable-DY8jGEwJ.js → useLoadingAnnouncer.composable-kJ9fDUqa.js} +0 -0
@@ -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