@nubisco/ui 5.44.0 → 5.46.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.
- package/dist/AccordionItem-DYTMtfdV.cjs +1 -0
- package/dist/{AccordionItem-Cg4m1SfF.js → AccordionItem-Dwt7yH5V.js} +6 -4
- package/dist/{ActionGroup-D7M9uaEp.js → ActionGroup-DVzC7pb-.js} +1 -1
- package/dist/{ActionGroup-BZ6YpjJO.cjs → ActionGroup-PgnAwRgJ.cjs} +1 -1
- package/dist/{AiProvider-PuA_dYYu.cjs → AiProvider-Dfl-y2Wy.cjs} +1 -1
- package/dist/{AiProvider-BwX0fWR4.js → AiProvider-rvV85R7w.js} +3 -3
- package/dist/{BackToTop-yDcNNu1c.js → BackToTop-Bgq4txNz.js} +1 -1
- package/dist/{BackToTop-MiNmxj8y.cjs → BackToTop-FeQ4kykw.cjs} +1 -1
- package/dist/{Banner-S8WqTTYP.cjs → Banner-C6t1fbs0.cjs} +1 -1
- package/dist/{Banner-Czz07yca.js → Banner-Cb3GrxMM.js} +1 -1
- package/dist/{Blueprint-Bv8EweAy.cjs → Blueprint-BBRar8Vu.cjs} +1 -1
- package/dist/{Blueprint-C8VbPuw9.js → Blueprint-lTBswuCE.js} +1 -1
- package/dist/{BlueprintCard-WaIQcsDQ.cjs → BlueprintCard-BISElEk0.cjs} +1 -1
- package/dist/{BlueprintCard-jJjQydFH.js → BlueprintCard-CsOQhmxj.js} +1 -1
- package/dist/{BlueprintControls-CdvlOBtV.js → BlueprintControls-B9TveRQm.js} +1 -1
- package/dist/{BlueprintControls-BYa7Phal.cjs → BlueprintControls-HuvP3JgD.cjs} +1 -1
- package/dist/{Board-DxbzneAu.cjs → Board-CpSPRwYK.cjs} +1 -1
- package/dist/{Board-Jr8RJ7R1.js → Board-m5s6Dtby.js} +1 -1
- package/dist/{BottomPanel-D8z92-SS.cjs → BottomPanel-9wXoX7C0.cjs} +1 -1
- package/dist/{BottomPanel-xfSCWeN2.js → BottomPanel-COy4nW-t.js} +1 -1
- package/dist/{Breadcrumbs-iw63sE1V.js → Breadcrumbs-Cmr5dHB3.js} +2 -2
- package/dist/{Breadcrumbs-BHsQ9DWz.cjs → Breadcrumbs-DGJEdKOS.cjs} +1 -1
- package/dist/{Briefing-BhnZ6WVQ.js → Briefing-DH_mh7fN.js} +1 -1
- package/dist/{Briefing-CZ2bGU7N.cjs → Briefing-DUhMbdSV.cjs} +1 -1
- package/dist/{BriefingDestination-DY6Om2tX.js → BriefingDestination-D2_W_n7J.js} +1 -1
- package/dist/{BriefingDestination-CJHuxQnL.cjs → BriefingDestination-LfgeTUzh.cjs} +1 -1
- package/dist/{Button-D81Efqjg.js → Button-C-OsrbBY.js} +1 -1
- package/dist/{Button-B-8ikYRN.cjs → Button-Cjtw1CkB.cjs} +1 -1
- package/dist/{Card-BFF-wPpB.cjs → Card-B1Snkf7r.cjs} +1 -1
- package/dist/{Card-m0pPg2DV.js → Card-__tew6aW.js} +1 -1
- package/dist/{Checkbox-5ANAIFrb.js → Checkbox-B_nSNoZ0.js} +1 -1
- package/dist/{Checkbox-CtUFfX3m.cjs → Checkbox-DHjkrPUP.cjs} +1 -1
- package/dist/{CheckboxGroup-CORB_666.js → CheckboxGroup-CUIlWTqZ.js} +1 -1
- package/dist/{CheckboxGroup-DUwsVYmt.cjs → CheckboxGroup-DZYMcUYF.cjs} +1 -1
- package/dist/{ColorStrip-Cvg8SDbi.js → ColorStrip-ms8u4-on.js} +1 -1
- package/dist/{ColorStrip-D9Y0q4F3.cjs → ColorStrip-oYITobr0.cjs} +1 -1
- package/dist/{Confirm-7uLqv38W.cjs → Confirm-19CDmfES.cjs} +1 -1
- package/dist/{Confirm-c2Ss3_hy.js → Confirm-BVTBZR2b.js} +4 -4
- package/dist/{CopyButton-D_DwMgrr.cjs → CopyButton-CetR7hHC.cjs} +1 -1
- package/dist/{CopyButton-BaJmS3TN.js → CopyButton-Dgt2DbUH.js} +1 -1
- package/dist/{DataTable-JG2gCpgz.cjs → DataTable-6Z8IZeHf.cjs} +1 -1
- package/dist/{DataTable-C44scor6.js → DataTable-CaJYOtLk.js} +3 -3
- package/dist/{DatePicker-BtQGKawo.cjs → DatePicker-BXZaGWsS.cjs} +1 -1
- package/dist/{DatePicker-D-V0rt-j.js → DatePicker-DN_5RDB8.js} +1 -1
- package/dist/{DragHandle-DX3qexW0.cjs → DragHandle-B673DaN2.cjs} +1 -1
- package/dist/{DragHandle-CBfcSRsL.js → DragHandle-CaK-4YhE.js} +1 -1
- package/dist/{FileUploader-yF9oG9am.cjs → FileUploader-3vqReJ1p.cjs} +1 -1
- package/dist/{FileUploader-0N1aSLeq.js → FileUploader-DbkSKQbb.js} +2 -2
- package/dist/{FloatingToolbar-Bfe38At4.js → FloatingToolbar-CLQOPq4x.js} +1 -1
- package/dist/{FloatingToolbar-Bdwzxebh.cjs → FloatingToolbar-D7PkAjS7.cjs} +1 -1
- package/dist/{ImagePicker-D6udeZN0.cjs → ImagePicker-BGSGBibF.cjs} +1 -1
- package/dist/{ImagePicker-C2Kz4U4G.js → ImagePicker-BX28wROp.js} +1 -1
- package/dist/{InfoHint-ieo2S-YE.js → InfoHint-CC4cvFsD.js} +1 -1
- package/dist/{InfoHint-D35B8g96.cjs → InfoHint-CyuBCIgq.cjs} +1 -1
- package/dist/{Message-vFr_gB2V.cjs → Message-BpDOzu5W.cjs} +1 -1
- package/dist/{Message-DPv6St5M.js → Message-CqVP4y4Y.js} +1 -1
- package/dist/{Modal-x4RAvBHZ.cjs → Modal-CMF77gQX.cjs} +1 -1
- package/dist/{Modal-BCWixlOG.js → Modal-wtlHUSSo.js} +4 -4
- package/dist/{NotificationCenter-DLeWxnQl.cjs → NotificationCenter-CGNa7MoB.cjs} +1 -1
- package/dist/{NotificationCenter-BkgLzD2x.js → NotificationCenter-DtsfXKrM.js} +1 -1
- package/dist/{NumberInput-DgjZDq0n.js → NumberInput-ggLG8zsa.js} +2 -2
- package/dist/{NumberInput-DpPVxENr.cjs → NumberInput-x1lY-01L.cjs} +1 -1
- package/dist/{Pagination-XOtOT86P.cjs → Pagination-6FLCG39u.cjs} +1 -1
- package/dist/{Pagination-Dk2C7ktz.js → Pagination-gc-SNeLt.js} +2 -2
- package/dist/{ProgressBar-CnVdi3l4.cjs → ProgressBar-CHyFQlL4.cjs} +1 -1
- package/dist/{ProgressBar-DFtOp3I-.js → ProgressBar-RCt7Y6mi.js} +2 -2
- package/dist/{Radio-DYXyO8tN.cjs → Radio-BSl4W12s.cjs} +1 -1
- package/dist/{Radio-CgsnwzDy.js → Radio-DHmTMvjM.js} +2 -2
- package/dist/{ReorderList-BuUYPJMK.js → ReorderList-BgowtiZj.js} +1 -1
- package/dist/{ReorderList-bFHn97rx.cjs → ReorderList-JLX01ViS.cjs} +1 -1
- package/dist/Select-DPrncZll.js +576 -0
- package/dist/{Select-CnieTPOL.cjs → Select-cRjKYI2t.cjs} +1 -1
- package/dist/Shell-B-kBO9pJ.cjs +1 -0
- package/dist/Shell-Da_Updzh.js +520 -0
- package/dist/{ShellPanel-CaThNh0w.cjs → ShellPanel-BaJQxg3h.cjs} +1 -1
- package/dist/{ShellPanel-Di6orfq4.js → ShellPanel-CoP2tWLo.js} +1 -1
- package/dist/{SidebarCollapseToggle-UzGP4TzC.js → SidebarCollapseToggle-CX6Ay_PC.js} +1 -1
- package/dist/{SidebarCollapseToggle-CX4_V0Ts.cjs → SidebarCollapseToggle-dgx4SPB5.cjs} +1 -1
- package/dist/{SidebarHeaderToggle-CHkcVjY7.cjs → SidebarHeaderToggle-BeLPv1dU.cjs} +1 -1
- package/dist/{SidebarHeaderToggle-BFxmHAl9.js → SidebarHeaderToggle-BwnXdcrB.js} +1 -1
- package/dist/{SidebarLink-DaZrlrLZ.cjs → SidebarLink-BeuUiOLd.cjs} +1 -1
- package/dist/{SidebarLink-CXCdVrWM.js → SidebarLink-m9WhGcc2.js} +1 -1
- package/dist/{SidebarMenuGroup-kEwoJus9.js → SidebarMenuGroup-BTVsBDts.js} +1 -1
- package/dist/{SidebarMenuGroup-BUy6LXoB.cjs → SidebarMenuGroup-ByeTvkHJ.cjs} +1 -1
- package/dist/{SidebarMenuItem-Bh_2pd3f.js → SidebarMenuItem-BFdCve25.js} +1 -1
- package/dist/{SidebarMenuItem-BEWYdzfa.cjs → SidebarMenuItem-C46vbCOy.cjs} +1 -1
- package/dist/{Slider-CUonOhgJ.js → Slider-56pPcL_E.js} +2 -2
- package/dist/{Slider-CojrFGb_.cjs → Slider-TlwhliL1.cjs} +1 -1
- package/dist/{Stat-UpbLQlEY.js → Stat-BfDK9HRp.js} +1 -1
- package/dist/{Stat-BSdnUOwK.cjs → Stat-x01dwM0g.cjs} +1 -1
- package/dist/{StepperStep-CjxVhsbr.cjs → StepperStep-C-uCJroV.cjs} +1 -1
- package/dist/{StepperStep-Co1KKj9h.js → StepperStep-CsrrJfwu.js} +1 -1
- package/dist/{Switch-8zEBXjF9.js → Switch-B40hMlXu.js} +1 -1
- package/dist/{Switch-D6Yh4B_9.cjs → Switch-D7eHiXw1.cjs} +1 -1
- package/dist/{TableOfContents-BPw_ilXl.js → TableOfContents-B72I_ReR.js} +1 -1
- package/dist/{TableOfContents-Dg1rE8d6.cjs → TableOfContents-CNxzC_6Z.cjs} +1 -1
- package/dist/Tabs-C9nc4fvQ.js +221 -0
- package/dist/Tabs-DCoou72c.cjs +1 -0
- package/dist/{TextInput-Cxnxq2F6.js → TextInput-DssK3wB2.js} +2 -2
- package/dist/{TextInput-D6YChZsO.cjs → TextInput-gA5Fp8Y7.cjs} +2 -2
- package/dist/{Toast-WMeps0Sy.js → Toast-CkZ1teg6.js} +1 -1
- package/dist/{Toast-DJ4m7ct6.cjs → Toast-DNtON_wR.cjs} +1 -1
- package/dist/{Toaster-BHcDHheK.js → Toaster-B1SyGLyl.js} +2 -2
- package/dist/{Toaster-BkxXz6XR.cjs → Toaster-C6GwLIeR.cjs} +1 -1
- package/dist/{TreeNode-CyJM0bOD.js → TreeNode-4bbso5nG.js} +1 -1
- package/dist/{TreeNode-BDCrTAs_.cjs → TreeNode-CSHd1PSy.cjs} +1 -1
- package/dist/{UserMenu-zLh3PXSg.js → UserMenu-BD6uLDXp.js} +1 -1
- package/dist/{UserMenu-ZaUmKXsQ.cjs → UserMenu-Cn_zwZyJ.cjs} +1 -1
- package/dist/{Video-CG0jZjAZ.cjs → Video-B8TFsoLx.cjs} +1 -1
- package/dist/{Video-BnajNYWZ.js → Video-CTeSlgd1.js} +1 -1
- package/dist/{Walkthrough-CV9RAizC.cjs → Walkthrough-BIN8ZCbA.cjs} +1 -1
- package/dist/{Walkthrough-BmSzAV_b.js → Walkthrough-Cy136LvZ.js} +2 -2
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +57 -57
- package/dist/components/AccordionItem.cjs +1 -1
- package/dist/components/AccordionItem.mjs +1 -1
- package/dist/components/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/ActionGroup.cjs +1 -1
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/AiProvider.cjs +1 -1
- package/dist/components/AiProvider.mjs +1 -1
- package/dist/components/BackToTop.cjs +1 -1
- package/dist/components/BackToTop.mjs +1 -1
- package/dist/components/Banner.cjs +1 -1
- package/dist/components/Banner.mjs +1 -1
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.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/Board.cjs +1 -1
- package/dist/components/Board.mjs +1 -1
- package/dist/components/BottomPanel.cjs +1 -1
- package/dist/components/BottomPanel.mjs +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Briefing.cjs +1 -1
- package/dist/components/Briefing.mjs +1 -1
- package/dist/components/BriefingDestination.cjs +1 -1
- package/dist/components/BriefingDestination.mjs +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Card.cjs +1 -1
- package/dist/components/Card.mjs +1 -1
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/ColorStrip.cjs +1 -1
- package/dist/components/ColorStrip.mjs +1 -1
- package/dist/components/CommandPalette.vue.d.ts.map +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.env.d.ts +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/CopyButton.cjs +1 -1
- package/dist/components/CopyButton.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DragHandle.cjs +1 -1
- package/dist/components/DragHandle.mjs +1 -1
- package/dist/components/FileUploader.cjs +1 -1
- package/dist/components/FileUploader.mjs +1 -1
- package/dist/components/FloatingToolbar.cjs +1 -1
- package/dist/components/FloatingToolbar.mjs +1 -1
- package/dist/components/ImagePicker.cjs +1 -1
- package/dist/components/ImagePicker.mjs +1 -1
- package/dist/components/InfoHint.cjs +1 -1
- package/dist/components/InfoHint.mjs +1 -1
- package/dist/components/InfoHint.vue.d.ts.map +1 -1
- package/dist/components/Menu.vue.d.ts.map +1 -1
- package/dist/components/Message.cjs +1 -1
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.cjs +1 -1
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
- package/dist/components/NumberInput.cjs +1 -1
- package/dist/components/NumberInput.mjs +1 -1
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.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/Radio.vue.d.ts.map +1 -1
- package/dist/components/ReorderList.cjs +1 -1
- package/dist/components/ReorderList.mjs +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts +2 -2
- package/dist/components/Select.vue.d.ts.map +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.d.ts +23 -0
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/Shell.vue.d.ts +12 -11
- 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/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarHeaderToggle.cjs +1 -1
- package/dist/components/SidebarHeaderToggle.mjs +1 -1
- package/dist/components/SidebarLink.cjs +1 -1
- package/dist/components/SidebarLink.mjs +1 -1
- package/dist/components/SidebarMenuGroup.cjs +1 -1
- package/dist/components/SidebarMenuGroup.mjs +1 -1
- package/dist/components/SidebarMenuItem.cjs +1 -1
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/SidebarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Stat.cjs +1 -1
- package/dist/components/Stat.mjs +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/Submenu.vue.d.ts.map +1 -1
- package/dist/components/Switch.cjs +1 -1
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/Switch.vue.d.ts.map +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/Tabs.vue.d.ts.map +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.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/TreeNode.cjs +1 -1
- package/dist/components/TreeNode.mjs +1 -1
- package/dist/components/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.mjs +1 -1
- package/dist/components/UserMenu.vue.d.ts.map +1 -1
- package/dist/components/Video.cjs +1 -1
- package/dist/components/Video.mjs +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +57 -57
- package/dist/{main-B7CVGoiq.js → main-Bp4F8LhP.js} +4 -4
- package/dist/main-Dw1kBHgQ.cjs +4 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/AccordionItem.css +1 -1
- package/dist/styles/BackToTop.css +1 -1
- package/dist/styles/Banner.css +1 -1
- package/dist/styles/Blueprint.css +1 -1
- package/dist/styles/BlueprintCard.css +1 -1
- package/dist/styles/Board.css +1 -1
- package/dist/styles/BottomPanel.css +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/Calendar.css +1 -1
- package/dist/styles/Card.css +1 -1
- package/dist/styles/Checkbox.css +1 -1
- package/dist/styles/ColorStrip.css +1 -1
- package/dist/styles/CommandPalette.css +1 -1
- package/dist/styles/DataTable.css +1 -1
- package/dist/styles/DatePicker.css +1 -1
- package/dist/styles/DragHandle.css +1 -1
- package/dist/styles/FileUploader.css +1 -1
- package/dist/styles/FloatingToolbar.css +1 -1
- package/dist/styles/ImagePicker.css +1 -1
- package/dist/styles/InfoHint.css +1 -1
- package/dist/styles/Menu.css +1 -1
- package/dist/styles/MenuBarItem.css +1 -1
- package/dist/styles/MenuItem.css +1 -1
- package/dist/styles/Message.css +1 -1
- package/dist/styles/Modal.css +1 -1
- package/dist/styles/NotificationCenter.css +1 -1
- package/dist/styles/NumberInput.css +1 -1
- package/dist/styles/ProgressBar.css +1 -1
- package/dist/styles/Radio.css +1 -1
- package/dist/styles/ReorderList.css +1 -1
- package/dist/styles/Select.css +1 -1
- package/dist/styles/Shell.css +1 -1
- package/dist/styles/ShellPanel.css +1 -1
- package/dist/styles/SidebarHeaderToggle.css +1 -1
- package/dist/styles/SidebarLink.css +1 -1
- package/dist/styles/SidebarMenuGroup.css +1 -1
- package/dist/styles/SidebarMenuItem.css +1 -1
- package/dist/styles/Stat.css +1 -1
- package/dist/styles/StepperStep.css +1 -1
- package/dist/styles/Submenu.css +1 -1
- package/dist/styles/Switch.css +1 -1
- package/dist/styles/Tabs.css +1 -1
- package/dist/styles/TextInput.css +1 -1
- package/dist/styles/Toast.css +1 -1
- package/dist/styles/Toaster.css +1 -1
- package/dist/styles/TreeNode.css +1 -1
- package/dist/styles/UserMenu.css +1 -1
- package/dist/styles/Walkthrough.css +1 -1
- package/dist/ui.css +48 -48
- package/package.json +1 -1
- package/src/styles/_theme.scss +19 -0
- package/src/styles/logic/_motion.scss +32 -0
- package/src/styles/variables/_animations.scss +45 -3
- package/dist/AccordionItem-BOIL14KX.cjs +0 -1
- package/dist/Select-cEKAoY4x.js +0 -573
- package/dist/Shell-BUqkz67b.js +0 -497
- package/dist/Shell-CixU-_Lh.cjs +0 -1
- package/dist/Tabs-C-vp8-s1.js +0 -196
- package/dist/Tabs-CNZ3LlV1.cjs +0 -1
- package/dist/main-8_dE3Ta1.cjs +0 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useSurfaceLayer.composable.cjs`),n=require(`./utils/slotContent.helper.cjs`),r=require(`./composables/useShellSlot.composable.cjs`),i=require(`./composables/useShellLayout.composable.cjs`);let a=require(`vue`);var ee=(0,a.defineComponent)({__name:`SurfaceLayerScope`,props:{level:{}},setup(e){let n=e;return(0,a.provide)(t.NB_LAYER_INJECTION_KEY,(0,a.computed)(()=>t.clampLayer(n.level))),(e,t)=>(0,a.renderSlot)(e.$slots,`default`)}}),te=[`href`],ne={class:`nb-shell__middle`},re=[`id`,`aria-label`,`tabindex`,`inert`,`aria-hidden`],ie={class:`nb-shell__sidebar-logo`},ae={class:`nb-shell__sidebar-header-action`},oe={key:1,class:`nb-shell__sidebar-logo`},se={class:`nb-shell__sidebar-nav`},ce={class:`nb-shell__sidebar-bottom`},le={class:`nb-shell__right`},ue={key:2,class:`nb-shell__menubar`},de={key:3,class:`nb-shell__topbar`},fe=[`aria-label`,`aria-expanded`,`aria-controls`],pe={class:`nb-shell__content-row`},me=[`inert`,`aria-hidden`],he={class:`nb-shell__page`},ge=[`aria-expanded`],_e={class:`nb-shell__contextbar-toggle-glyph`,"aria-hidden":`true`},ve={class:`nb-shell__main-row`},ye=[`aria-label`],be=[`id`],xe=[`aria-label`,`inert`,`aria-hidden`],Se=[`aria-label`],Ce=[`aria-label`,`aria-valuenow`,`aria-valuemax`],we=`(pointer: coarse) and (hover: none) and (max-height: 500px)`,Te=`a[href], [role="menuitem"]`,Ee=240,o=288,De=16,Oe=64,ke=(0,a.defineComponent)({__name:`Shell`,props:{inspectorVisible:{type:Boolean,default:!1},inspectorExpanded:{type:Boolean,default:!1},inspectorSize:{default:`md`},resizable:{type:Boolean,default:!1},inspectorWidth:{},mainPadding:{type:Boolean,default:!0},sidebarVariant:{default:`compact`},sidebarHeaderActionPosition:{default:`end`},sidebarHeaderActionCompact:{default:`stack`},topbar:{default:`auto`},frame:{default:`attached`},skipToContent:{type:Boolean,default:!0},skipToContentLabel:{default:`Skip to content`},mainId:{},sidebarLabel:{default:`Primary`},inspectorLabel:{default:`Inspector`},contextbarLabel:{default:`Browse`},collapseAt:{default:`md`},sidebarOpen:{type:Boolean},navToggleLabel:{default:`Navigation`},inspectorCloseLabel:{default:`Close inspector`}},emits:[`update:inspectorWidth`,`update:sidebarOpen`,`update:inspectorVisible`],setup(e,{expose:ke,emit:Ae}){let je=(0,a.useSlots)();function s(e){return n.hasSlotContent(je,e)}let{registry:Me,count:c,sharedCount:Ne,setElement:l}=r.createShellSlotRegistry();(0,a.provide)(r.NB_SHELL_SLOT_KEY,Me);let u=new Map;function d(e){let t=u.get(e);return t||(t=t=>l(e,t??null),u.set(e,t)),t}function f(e){return s(e)||c(e)>0}function p(e){return Ne(e)>0?`nb-shell__region--ordered`:null}let m=(0,a.computed)(()=>{for(let e of[`sidebar-logo`,`sidebar-nav`,`sidebar-bottom`])if(s(e))return!0;return!1}),h=e,g=(0,a.ref)(!1),_=Ae,Pe={md:672,lg:1056},v=(0,a.ref)(typeof window<`u`?window.innerWidth:1/0);function y(e){let t=Pe[h.collapseAt];return t!=null&&e<t}let b=0;function Fe(){let e=window.innerWidth;y(e)!==y(v.value)&&(v.value=e)}function Ie(){b||=window.requestAnimationFrame(()=>{b=0,v.value=window.innerWidth})}function x(){typeof window>`u`||(window.removeEventListener(`resize`,Ie),b&&=(window.cancelAnimationFrame(b),0))}function Le(){typeof window>`u`||(v.value=window.innerWidth,window.addEventListener(`resize`,Ie,{passive:!0}))}let S=typeof window<`u`&&typeof window.matchMedia==`function`?window.matchMedia(we):null,C=(0,a.ref)(S?.matches===!0);function w(e){C.value=e.matches}let T=(0,a.computed)(()=>y(v.value)||h.collapseAt!==`none`&&C.value),E=(0,a.getCurrentInstance)()?.vnode.props??{};function D(e,t){return e in E||t in E}function Re(e,t){if(e in E)return E[e];if(t in E)return E[t]}function O(e,t){return D(e,t)&&Re(e,t)!==void 0}let k=O(`sidebarOpen`,`sidebar-open`),A=(0,a.ref)(!1);D(`sidebarOpen`,`sidebar-open`)&&!k&&(0,a.watch)(()=>h.sidebarOpen,e=>{A.value=e===!0});let j=(0,a.computed)(()=>k?h.sidebarOpen===!0:A.value),ze=(0,a.useId)(),Be=(0,a.computed)(()=>`nb-shell-sidebar-${ze}`),Ve=(0,a.ref)(null),M=(0,a.ref)(null),He=(0,a.computed)(()=>m.value&&T.value),Ue=(0,a.computed)(()=>m.value&&T.value&&!j.value);function N(e){k||(A.value=e),_(`update:sidebarOpen`,e)}function We(e){if(!e.defaultPrevented){if(m.value&&T.value&&j.value){N(!1);return}R.value&&z(!1)}}function Ge(e,t){let n=e.target,r=n?.closest?.(Te);if(!r||!t?.contains(r))return!1;let i=r.getAttribute(`aria-haspopup`);return!(i!=null&&i!==`false`||r.hasAttribute(`aria-expanded`)||r.getAttribute(`aria-disabled`)===`true`||n?.closest?.(`[data-nb-keep-open]`))}function Ke(e){!T.value||!j.value||Ge(e,M.value)&&N(!1)}function qe(e){!T.value||!g.value||Ge(e,e.currentTarget)&&(g.value=!1)}function Je(e){g.value=e}(0,a.watch)(j,async e=>{T.value&&(await(0,a.nextTick)(),e?(M.value?.querySelector(`a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])`)??M.value)?.focus?.():Ve.value?.focus?.())}),(0,a.watch)(T,e=>{!e&&j.value&&N(!1)});let P=O(`inspectorVisible`,`inspector-visible`),F=(0,a.ref)(h.inspectorVisible===!0);D(`inspectorVisible`,`inspector-visible`)&&!P&&(0,a.watch)(()=>h.inspectorVisible,e=>{F.value=e===!0});let I=(0,a.ref)(!1),L=(0,a.computed)(()=>(P?h.inspectorVisible===!0:F.value)?!(T.value&&I.value):!1),R=(0,a.computed)(()=>T.value&&L.value);function z(e){P?I.value=!e:(F.value=e,I.value=!1),_(`update:inspectorVisible`,e)}(0,a.watch)(()=>h.inspectorVisible,e=>{e&&(I.value=!1)}),(0,a.watch)(T,e=>{e||(I.value=!1)});let Ye=(0,a.ref)(null),B=(0,a.ref)(null);(0,a.watch)(R,async e=>{if(e)B.value=document.activeElement??null,await(0,a.nextTick)(),Ye.value?.focus?.();else{let e=B.value;B.value=null,e?.isConnected&&(await(0,a.nextTick)(),e.focus?.())}}),(0,a.watch)(R,e=>{e&&m.value&&j.value&&N(!1)});function Xe(){z(!1)}(0,a.provide)(i.NB_SHELL_LAYOUT_KEY,{collapsed:T,inspectorOverlay:R});let V=(0,a.computed)(()=>R.value),H=(0,a.ref)(null),Ze=(0,a.useId)(),Qe=(0,a.computed)(()=>h.mainId||`nb-shell-main-${Ze}`);function $e(){H.value?.focus()}let et=(0,a.computed)(()=>He.value||h.topbar===`always`?!0:h.topbar===`never`?!1:s(`topbar-left`)||s(`topbar-right`)||c(`topbar-left`)>0||c(`topbar-right`)>0),{layerProps:tt}=t.useSurfaceLayer(),{layerProps:nt}=t.useSurfaceLayer({level:0,probe:!1,provideContext:!1}),U=(0,a.ref)(h.sidebarVariant),rt=(0,a.computed)(()=>T.value&&s(`sidebar-header-action`)?`verbose`:h.sidebarVariant),W=(0,a.ref)(null),G,it=()=>typeof window>`u`||typeof window.matchMedia!=`function`||window.matchMedia(`(prefers-reduced-motion: reduce)`).matches;(0,a.watch)(()=>h.sidebarVariant,e=>{if(clearTimeout(G),it()||T.value){U.value=e,W.value=null;return}if(e===`verbose`){U.value=e,W.value=`expanding`,G=setTimeout(()=>{W.value=null},Ee);return}W.value=`collapsing`,G=setTimeout(()=>{U.value=e,W.value=null},Ee)}),(0,a.onBeforeUnmount)(()=>clearTimeout(G));let at=(0,a.computed)(()=>T.value&&s(`sidebar-header-action`)?`verbose`:U.value);(0,a.provide)(`nb-shell-sidebar-variant`,at);let ot=(0,a.computed)(()=>s(`sidebar-header-action`)&&!T.value);(0,a.provide)(`nb-shell-sidebar-header-action-position`,(0,a.toRef)(h,`sidebarHeaderActionPosition`));let K=(0,a.ref)(null),q=(0,a.ref)(!1);(0,a.onMounted)(()=>l(`inspector`,K.value)),(0,a.watch)(K,e=>l(`inspector`,e));let st={lg:.5,xl:.75},ct={xs:288,sm:360,md:560},J=(0,a.computed)(()=>Number.isFinite(v.value)?v.value:1280),Y=(0,a.computed)(()=>Math.max(o,J.value*.5));function X(e){return Math.round(Math.max(o,Math.min(e,Y.value)))}let lt=O(`inspectorWidth`,`inspector-width`),ut=(0,a.ref)(null),dt=(0,a.computed)(()=>lt?h.inspectorWidth??null:ut.value);function Z(e){lt||(ut.value=e),_(`update:inspectorWidth`,e)}let ft=(0,a.computed)(()=>{let e=dt.value;if(!(!h.resizable||!L.value||e==null))return{"--nb-shell-inspector-width":`${X(e)}px`}}),Q=(0,a.computed)(()=>{let e=dt.value;if(e!=null)return X(e);if(h.inspectorExpanded)return Math.round(J.value*.5);let t=st[h.inspectorSize],n=t==null?ct[h.inspectorSize]??o:J.value*t;return Math.round(h.inspectorSize===`xl`?n:Math.min(n,Y.value))}),pt=(0,a.computed)(()=>Math.round(Math.max(Y.value,Q.value))),mt=(0,a.computed)(()=>Q.value);function ht(){return Q.value}function gt(e){let t=K.value;if(!t)return;let n=t.getBoundingClientRect().right;Z(X(n-e.clientX))}function $(){q.value=!1,window.removeEventListener(`pointermove`,gt),window.removeEventListener(`pointerup`,$),window.removeEventListener(`pointercancel`,$)}function _t(e){h.resizable&&(e.preventDefault(),q.value=!0,window.addEventListener(`pointermove`,gt),window.addEventListener(`pointerup`,$),window.addEventListener(`pointercancel`,$))}function vt(){Z(null)}function yt(e){if(!h.resizable)return;let t=e.shiftKey?Oe:De,n;switch(e.key){case`ArrowLeft`:n=ht()+t;break;case`ArrowRight`:n=ht()-t;break;case`Home`:n=o;break;case`End`:n=Y.value;break;case`Enter`:case` `:n=null;break;default:return}e.preventDefault(),Z(n==null?null:X(n))}return(0,a.onMounted)(()=>{typeof window>`u`||(v.value=window.innerWidth,window.addEventListener(`resize`,Fe,{passive:!0}),h.resizable&&Le(),S&&(C.value=S.matches,typeof S.addEventListener==`function`?S.addEventListener(`change`,w):S.addListener?.(w)))}),(0,a.watch)(()=>h.collapseAt,()=>{typeof window<`u`&&(v.value=window.innerWidth)}),(0,a.watch)(()=>h.resizable,e=>e?Le():x()),(0,a.onBeforeUnmount)(()=>{$(),x(),typeof window<`u`&&window.removeEventListener(`resize`,Fe),S&&(typeof S.removeEventListener==`function`?S.removeEventListener(`change`,w):S.removeListener?.(w))}),ke({mainEl:H,sidebarEl:M,inspectorEl:K,focusMain:()=>H.value?.focus(),setSidebarOpen:N,setInspectorVisible:z,collapsed:T,inspectorOverlay:R,setContextbarOpen:Je}),(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,(0,a.mergeProps)({class:`nb-shell`},(0,a.unref)(tt),{class:[{"nb-shell--no-sidebar":!m.value},m.value?`nb-shell--sidebar-${at.value}`:null,{"nb-shell--rail-wide":m.value&&rt.value===`verbose`,"nb-shell--detached":e.frame===`detached`,"nb-shell--collapsed":T.value,"nb-shell--drawer-open":T.value&&j.value,"nb-shell--rail-collapsing":W.value===`collapsing`,"nb-shell--rail-expanding":W.value===`expanding`}],onKeydown:(0,a.withKeys)(We,[`esc`])}),[e.skipToContent?((0,a.openBlock)(),(0,a.createElementBlock)(`a`,{key:0,class:`nb-shell__skip-link`,href:`#${Qe.value}`,onClick:$e},(0,a.toDisplayString)(e.skipToContentLabel),9,te)):(0,a.createCommentVNode)(``,!0),f(`outer-menu`)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:1,ref:d(`outer-menu`),class:(0,a.normalizeClass)([`nb-shell__outer-menu`,p(`outer-menu`)])},[(0,a.renderSlot)(t.$slots,`outer-menu`,{},void 0,!0)],2)):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`div`,ne,[m.value?((0,a.openBlock)(),(0,a.createElementBlock)(`nav`,{key:0,id:Be.value,ref_key:`sidebarRef`,ref:M,class:`nb-shell__sidebar`,"aria-label":e.sidebarLabel,tabindex:T.value?-1:void 0,inert:Ue.value||void 0,"aria-hidden":Ue.value||void 0,onClickCapture:Ke},[ot.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,class:(0,a.normalizeClass)([`nb-shell__sidebar-header`,[`nb-shell__sidebar-header--${e.sidebarHeaderActionPosition}`,`nb-shell__sidebar-header--compact-${e.sidebarHeaderActionCompact}`]])},[(0,a.createElementVNode)(`div`,ie,[(0,a.renderSlot)(t.$slots,`sidebar-logo`,{},void 0,!0)]),(0,a.createElementVNode)(`div`,ae,[(0,a.renderSlot)(t.$slots,`sidebar-header-action`,{},void 0,!0)])],2)):((0,a.openBlock)(),(0,a.createElementBlock)(`div`,oe,[(0,a.renderSlot)(t.$slots,`sidebar-logo`,{},void 0,!0)])),(0,a.createElementVNode)(`div`,se,[(0,a.renderSlot)(t.$slots,`sidebar-nav`,{},void 0,!0)]),n[4]||=(0,a.createElementVNode)(`div`,{class:`nb-shell__sidebar-spacer`},null,-1),(0,a.createElementVNode)(`div`,ce,[(0,a.renderSlot)(t.$slots,`sidebar-bottom`,{},void 0,!0)])],40,re)):(0,a.createCommentVNode)(``,!0),(0,a.createVNode)(a.Transition,{name:`nb-shell-scrim`},{default:(0,a.withCtx)(()=>[m.value&&T.value&&j.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,class:`nb-shell__scrim`,onClick:n[0]||=e=>N(!1)})):(0,a.createCommentVNode)(``,!0)]),_:1}),(0,a.createElementVNode)(`div`,le,[f(`inner-menu`)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,ref:d(`inner-menu`),class:(0,a.normalizeClass)([`nb-shell__inner-menu`,p(`inner-menu`)])},[(0,a.renderSlot)(t.$slots,`inner-menu`,{},void 0,!0)],2)):(0,a.createCommentVNode)(``,!0),f(`notification`)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:1,ref:d(`notification`),class:(0,a.normalizeClass)([`nb-shell__notification`,p(`notification`)])},[(0,a.renderSlot)(t.$slots,`notification`,{},void 0,!0)],2)):(0,a.createCommentVNode)(``,!0),s(`menubar`)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,ue,[(0,a.renderSlot)(t.$slots,`menubar`,{},void 0,!0)])):(0,a.createCommentVNode)(``,!0),et.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,de,[He.value?((0,a.openBlock)(),(0,a.createElementBlock)(`button`,{key:0,ref_key:`navToggleRef`,ref:Ve,type:`button`,class:`nb-shell__nav-toggle`,"aria-label":e.navToggleLabel,"aria-expanded":j.value,"aria-controls":Be.value,onClick:n[1]||=e=>N(!j.value)},[...n[5]||=[(0,a.createElementVNode)(`span`,{class:`nb-shell__nav-toggle-glyph`,"aria-hidden":`true`},[(0,a.createElementVNode)(`span`),(0,a.createElementVNode)(`span`),(0,a.createElementVNode)(`span`)],-1)]],8,fe)):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`div`,{ref:d(`topbar-left`),class:`nb-shell__topbar-left`},[(0,a.renderSlot)(t.$slots,`topbar-left`,{},void 0,!0)],512),(0,a.createElementVNode)(`div`,{ref:d(`topbar-right`),class:`nb-shell__topbar-right`},[(0,a.renderSlot)(t.$slots,`topbar-right`,{},void 0,!0)],512)])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`div`,pe,[(0,a.createElementVNode)(`div`,{class:`nb-shell__body`,inert:V.value||void 0,"aria-hidden":V.value||void 0},[(0,a.createElementVNode)(`div`,he,[f(`fixedbar`)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,ref:d(`fixedbar`),class:`nb-shell__fixedbar`},[(0,a.renderSlot)(t.$slots,`fixedbar`,{},void 0,!0)],512)):(0,a.createCommentVNode)(``,!0),T.value&&f(`contextbar`)?((0,a.openBlock)(),(0,a.createElementBlock)(`button`,{key:1,type:`button`,class:`nb-shell__contextbar-toggle`,"aria-expanded":g.value,onClick:n[2]||=e=>g.value=!g.value},[(0,a.createElementVNode)(`span`,null,(0,a.toDisplayString)(e.contextbarLabel),1),(0,a.createElementVNode)(`span`,_e,(0,a.toDisplayString)(g.value?`▾`:`▸`),1)],8,ge)):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`div`,ve,[f(`contextbar`)?(0,a.withDirectives)(((0,a.openBlock)(),(0,a.createElementBlock)(`aside`,{key:0,ref:d(`contextbar`),class:(0,a.normalizeClass)([`nb-shell__contextbar`,p(`contextbar`)]),"aria-label":e.contextbarLabel,onClickCapture:qe},[(0,a.renderSlot)(t.$slots,`contextbar`,{},void 0,!0)],42,ye)),[[a.vShow,!T.value||g.value]]):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`main`,(0,a.mergeProps)({id:Qe.value,ref_key:`mainRef`,ref:H,tabindex:`-1`,class:[`nb-shell__main`,{"nb-shell__main--no-padding":!e.mainPadding}]},(0,a.unref)(nt)),[(0,a.createVNode)(ee,{level:1},{default:(0,a.withCtx)(()=>[(0,a.renderSlot)(t.$slots,`default`,{},void 0,!0)]),_:3})],16,be)])]),f(`bottom`)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,ref:d(`bottom`),class:`nb-shell__bottom`},[(0,a.renderSlot)(t.$slots,`bottom`,{},void 0,!0)],512)):(0,a.createCommentVNode)(``,!0)],8,me),(0,a.createElementVNode)(`aside`,{ref_key:`inspectorRef`,ref:K,class:(0,a.normalizeClass)([`nb-shell__inspector`,{"nb-shell__inspector--visible":L.value,"nb-shell__inspector--expanded":L.value&&e.inspectorExpanded,[`nb-shell__inspector--${e.inspectorSize}`]:L.value,"nb-shell__inspector--resizing":q.value,"nb-shell__inspector--overlay":R.value}]),"aria-label":e.inspectorLabel,inert:!L.value||void 0,"aria-hidden":!L.value||void 0,style:(0,a.normalizeStyle)(ft.value)},[R.value?((0,a.openBlock)(),(0,a.createElementBlock)(`button`,{key:0,ref_key:`inspectorDismissRef`,ref:Ye,type:`button`,class:`nb-shell__inspector-dismiss`,"aria-label":e.inspectorCloseLabel,onClick:n[3]||=e=>z(!1)},[...n[6]||=[(0,a.createElementVNode)(`span`,{class:`nb-shell__inspector-dismiss-glyph`,"aria-hidden":`true`},`×`,-1)]],8,Se)):(0,a.createCommentVNode)(``,!0),e.resizable&&L.value&&!T.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:1,class:`nb-shell__inspector-resize`,role:`separator`,tabindex:`0`,"aria-orientation":`vertical`,"aria-label":`Resize ${e.inspectorLabel}`,"aria-valuenow":mt.value,"aria-valuemin":o,"aria-valuemax":pt.value,title:`Drag or use the arrow keys to resize, Enter or double-click to reset`,onPointerdown:_t,onDblclick:vt,onKeydown:yt},null,40,Ce)):(0,a.createCommentVNode)(``,!0),(0,a.renderSlot)(t.$slots,`inspector`,{overlay:R.value,close:Xe},void 0,!0)],14,xe)])])])],16))}}),Ae=e.t(ke,[[`__scopeId`,`data-v-99932fd0`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return Ae}});
|
|
@@ -0,0 +1,520 @@
|
|
|
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 i } from "./utils/slotContent.helper.mjs";
|
|
4
|
+
import { NB_SHELL_SLOT_KEY as ee, createShellSlotRegistry as te } from "./composables/useShellSlot.composable.mjs";
|
|
5
|
+
import { NB_SHELL_LAYOUT_KEY as ne } from "./composables/useShellLayout.composable.mjs";
|
|
6
|
+
import { Transition as re, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as ie, defineComponent as l, getCurrentInstance as ae, mergeProps as oe, nextTick as u, normalizeClass as d, normalizeStyle as se, onBeforeUnmount as ce, onMounted as le, openBlock as f, provide as p, ref as m, renderSlot as h, toDisplayString as g, toRef as ue, unref as de, useId as fe, useSlots as pe, vShow as me, watch as _, withCtx as he, withDirectives as ge, withKeys as _e } from "vue";
|
|
7
|
+
//#endregion
|
|
8
|
+
//#region src/components/SurfaceLayerScope.vue
|
|
9
|
+
var ve = /* @__PURE__ */ l({
|
|
10
|
+
__name: "SurfaceLayerScope",
|
|
11
|
+
props: { level: {} },
|
|
12
|
+
setup(e) {
|
|
13
|
+
let r = e;
|
|
14
|
+
return p(t, a(() => n(r.level))), (e, t) => h(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-header-action" }, we = {
|
|
23
|
+
key: 1,
|
|
24
|
+
class: "nb-shell__sidebar-logo"
|
|
25
|
+
}, Te = { class: "nb-shell__sidebar-nav" }, Ee = { class: "nb-shell__sidebar-bottom" }, De = { class: "nb-shell__right" }, Oe = {
|
|
26
|
+
key: 2,
|
|
27
|
+
class: "nb-shell__menubar"
|
|
28
|
+
}, ke = {
|
|
29
|
+
key: 3,
|
|
30
|
+
class: "nb-shell__topbar"
|
|
31
|
+
}, Ae = [
|
|
32
|
+
"aria-label",
|
|
33
|
+
"aria-expanded",
|
|
34
|
+
"aria-controls"
|
|
35
|
+
], je = { class: "nb-shell__content-row" }, Me = ["inert", "aria-hidden"], Ne = { class: "nb-shell__page" }, Pe = ["aria-expanded"], Fe = {
|
|
36
|
+
class: "nb-shell__contextbar-toggle-glyph",
|
|
37
|
+
"aria-hidden": "true"
|
|
38
|
+
}, Ie = { class: "nb-shell__main-row" }, Le = ["aria-label"], Re = ["id"], ze = [
|
|
39
|
+
"aria-label",
|
|
40
|
+
"inert",
|
|
41
|
+
"aria-hidden"
|
|
42
|
+
], Be = ["aria-label"], Ve = [
|
|
43
|
+
"aria-label",
|
|
44
|
+
"aria-valuenow",
|
|
45
|
+
"aria-valuemax"
|
|
46
|
+
], He = "(pointer: coarse) and (hover: none) and (max-height: 500px)", Ue = "a[href], [role=\"menuitem\"]", We = 240, v = 288, Ge = 16, Ke = 64, y = /* @__PURE__ */ e(/* @__PURE__ */ l({
|
|
47
|
+
__name: "Shell",
|
|
48
|
+
props: {
|
|
49
|
+
inspectorVisible: {
|
|
50
|
+
type: Boolean,
|
|
51
|
+
default: !1
|
|
52
|
+
},
|
|
53
|
+
inspectorExpanded: {
|
|
54
|
+
type: Boolean,
|
|
55
|
+
default: !1
|
|
56
|
+
},
|
|
57
|
+
inspectorSize: { default: "md" },
|
|
58
|
+
resizable: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: !1
|
|
61
|
+
},
|
|
62
|
+
inspectorWidth: {},
|
|
63
|
+
mainPadding: {
|
|
64
|
+
type: Boolean,
|
|
65
|
+
default: !0
|
|
66
|
+
},
|
|
67
|
+
sidebarVariant: { default: "compact" },
|
|
68
|
+
sidebarHeaderActionPosition: { default: "end" },
|
|
69
|
+
sidebarHeaderActionCompact: { default: "stack" },
|
|
70
|
+
topbar: { default: "auto" },
|
|
71
|
+
frame: { default: "attached" },
|
|
72
|
+
skipToContent: {
|
|
73
|
+
type: Boolean,
|
|
74
|
+
default: !0
|
|
75
|
+
},
|
|
76
|
+
skipToContentLabel: { default: "Skip to content" },
|
|
77
|
+
mainId: {},
|
|
78
|
+
sidebarLabel: { default: "Primary" },
|
|
79
|
+
inspectorLabel: { default: "Inspector" },
|
|
80
|
+
contextbarLabel: { default: "Browse" },
|
|
81
|
+
collapseAt: { default: "md" },
|
|
82
|
+
sidebarOpen: { type: Boolean },
|
|
83
|
+
navToggleLabel: { default: "Navigation" },
|
|
84
|
+
inspectorCloseLabel: { default: "Close inspector" }
|
|
85
|
+
},
|
|
86
|
+
emits: [
|
|
87
|
+
"update:inspectorWidth",
|
|
88
|
+
"update:sidebarOpen",
|
|
89
|
+
"update:inspectorVisible"
|
|
90
|
+
],
|
|
91
|
+
setup(e, { expose: t, emit: n }) {
|
|
92
|
+
let l = pe();
|
|
93
|
+
function y(e) {
|
|
94
|
+
return i(l, e);
|
|
95
|
+
}
|
|
96
|
+
let { registry: qe, count: b, sharedCount: Je, setElement: x } = te();
|
|
97
|
+
p(ee, qe);
|
|
98
|
+
let Ye = /* @__PURE__ */ new Map();
|
|
99
|
+
function S(e) {
|
|
100
|
+
let t = Ye.get(e);
|
|
101
|
+
return t || (t = (t) => x(e, t ?? null), Ye.set(e, t)), t;
|
|
102
|
+
}
|
|
103
|
+
function C(e) {
|
|
104
|
+
return y(e) || b(e) > 0;
|
|
105
|
+
}
|
|
106
|
+
function w(e) {
|
|
107
|
+
return Je(e) > 0 ? "nb-shell__region--ordered" : null;
|
|
108
|
+
}
|
|
109
|
+
let T = a(() => {
|
|
110
|
+
for (let e of [
|
|
111
|
+
"sidebar-logo",
|
|
112
|
+
"sidebar-nav",
|
|
113
|
+
"sidebar-bottom"
|
|
114
|
+
]) if (y(e)) return !0;
|
|
115
|
+
return !1;
|
|
116
|
+
}), E = e, D = m(!1), O = n, Xe = {
|
|
117
|
+
md: 672,
|
|
118
|
+
lg: 1056
|
|
119
|
+
}, k = m(typeof window < "u" ? window.innerWidth : Infinity);
|
|
120
|
+
function A(e) {
|
|
121
|
+
let t = Xe[E.collapseAt];
|
|
122
|
+
return t != null && e < t;
|
|
123
|
+
}
|
|
124
|
+
let j = 0;
|
|
125
|
+
function Ze() {
|
|
126
|
+
let e = window.innerWidth;
|
|
127
|
+
A(e) !== A(k.value) && (k.value = e);
|
|
128
|
+
}
|
|
129
|
+
function Qe() {
|
|
130
|
+
j ||= window.requestAnimationFrame(() => {
|
|
131
|
+
j = 0, k.value = window.innerWidth;
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
function $e() {
|
|
135
|
+
typeof window > "u" || (window.removeEventListener("resize", Qe), j &&= (window.cancelAnimationFrame(j), 0));
|
|
136
|
+
}
|
|
137
|
+
function et() {
|
|
138
|
+
typeof window > "u" || (k.value = window.innerWidth, window.addEventListener("resize", Qe, { passive: !0 }));
|
|
139
|
+
}
|
|
140
|
+
let M = typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(He) : null, N = m(M?.matches === !0);
|
|
141
|
+
function P(e) {
|
|
142
|
+
N.value = e.matches;
|
|
143
|
+
}
|
|
144
|
+
let F = a(() => A(k.value) || E.collapseAt !== "none" && N.value), I = ae()?.vnode.props ?? {};
|
|
145
|
+
function L(e, t) {
|
|
146
|
+
return e in I || t in I;
|
|
147
|
+
}
|
|
148
|
+
function tt(e, t) {
|
|
149
|
+
if (e in I) return I[e];
|
|
150
|
+
if (t in I) return I[t];
|
|
151
|
+
}
|
|
152
|
+
function nt(e, t) {
|
|
153
|
+
return L(e, t) && tt(e, t) !== void 0;
|
|
154
|
+
}
|
|
155
|
+
let rt = nt("sidebarOpen", "sidebar-open"), it = m(!1);
|
|
156
|
+
L("sidebarOpen", "sidebar-open") && !rt && _(() => E.sidebarOpen, (e) => {
|
|
157
|
+
it.value = e === !0;
|
|
158
|
+
});
|
|
159
|
+
let R = a(() => rt ? E.sidebarOpen === !0 : it.value), at = fe(), ot = a(() => `nb-shell-sidebar-${at}`), st = m(null), z = m(null), ct = a(() => T.value && F.value), lt = a(() => T.value && F.value && !R.value);
|
|
160
|
+
function B(e) {
|
|
161
|
+
rt || (it.value = e), O("update:sidebarOpen", e);
|
|
162
|
+
}
|
|
163
|
+
function ut(e) {
|
|
164
|
+
if (!e.defaultPrevented) {
|
|
165
|
+
if (T.value && F.value && R.value) {
|
|
166
|
+
B(!1);
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
U.value && W(!1);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
function dt(e, t) {
|
|
173
|
+
let n = e.target, r = n?.closest?.(Ue);
|
|
174
|
+
if (!r || !t?.contains(r)) return !1;
|
|
175
|
+
let i = r.getAttribute("aria-haspopup");
|
|
176
|
+
return !(i != null && i !== "false" || r.hasAttribute("aria-expanded") || r.getAttribute("aria-disabled") === "true" || n?.closest?.("[data-nb-keep-open]"));
|
|
177
|
+
}
|
|
178
|
+
function ft(e) {
|
|
179
|
+
!F.value || !R.value || dt(e, z.value) && B(!1);
|
|
180
|
+
}
|
|
181
|
+
function pt(e) {
|
|
182
|
+
!F.value || !D.value || dt(e, e.currentTarget) && (D.value = !1);
|
|
183
|
+
}
|
|
184
|
+
function mt(e) {
|
|
185
|
+
D.value = e;
|
|
186
|
+
}
|
|
187
|
+
_(R, async (e) => {
|
|
188
|
+
F.value && (await u(), e ? (z.value?.querySelector("a[href], button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])") ?? z.value)?.focus?.() : st.value?.focus?.());
|
|
189
|
+
}), _(F, (e) => {
|
|
190
|
+
!e && R.value && B(!1);
|
|
191
|
+
});
|
|
192
|
+
let ht = nt("inspectorVisible", "inspector-visible"), gt = m(E.inspectorVisible === !0);
|
|
193
|
+
L("inspectorVisible", "inspector-visible") && !ht && _(() => E.inspectorVisible, (e) => {
|
|
194
|
+
gt.value = e === !0;
|
|
195
|
+
});
|
|
196
|
+
let V = m(!1), H = a(() => (ht ? E.inspectorVisible === !0 : gt.value) ? !(F.value && V.value) : !1), U = a(() => F.value && H.value);
|
|
197
|
+
function W(e) {
|
|
198
|
+
ht ? V.value = !e : (gt.value = e, V.value = !1), O("update:inspectorVisible", e);
|
|
199
|
+
}
|
|
200
|
+
_(() => E.inspectorVisible, (e) => {
|
|
201
|
+
e && (V.value = !1);
|
|
202
|
+
}), _(F, (e) => {
|
|
203
|
+
e || (V.value = !1);
|
|
204
|
+
});
|
|
205
|
+
let _t = m(null), vt = m(null);
|
|
206
|
+
_(U, async (e) => {
|
|
207
|
+
if (e) vt.value = document.activeElement ?? null, await u(), _t.value?.focus?.();
|
|
208
|
+
else {
|
|
209
|
+
let e = vt.value;
|
|
210
|
+
vt.value = null, e?.isConnected && (await u(), e.focus?.());
|
|
211
|
+
}
|
|
212
|
+
}), _(U, (e) => {
|
|
213
|
+
e && T.value && R.value && B(!1);
|
|
214
|
+
});
|
|
215
|
+
function yt() {
|
|
216
|
+
W(!1);
|
|
217
|
+
}
|
|
218
|
+
p(ne, {
|
|
219
|
+
collapsed: F,
|
|
220
|
+
inspectorOverlay: U
|
|
221
|
+
});
|
|
222
|
+
let bt = a(() => U.value), G = m(null), xt = fe(), St = a(() => E.mainId || `nb-shell-main-${xt}`);
|
|
223
|
+
function Ct() {
|
|
224
|
+
G.value?.focus();
|
|
225
|
+
}
|
|
226
|
+
let wt = a(() => ct.value || E.topbar === "always" ? !0 : E.topbar === "never" ? !1 : y("topbar-left") || y("topbar-right") || b("topbar-left") > 0 || b("topbar-right") > 0), { layerProps: Tt } = r(), { layerProps: Et } = r({
|
|
227
|
+
level: 0,
|
|
228
|
+
probe: !1,
|
|
229
|
+
provideContext: !1
|
|
230
|
+
}), K = m(E.sidebarVariant), Dt = a(() => F.value && y("sidebar-header-action") ? "verbose" : E.sidebarVariant), q = m(null), J, Ot = () => typeof window > "u" || typeof window.matchMedia != "function" || window.matchMedia("(prefers-reduced-motion: reduce)").matches;
|
|
231
|
+
_(() => E.sidebarVariant, (e) => {
|
|
232
|
+
if (clearTimeout(J), Ot() || F.value) {
|
|
233
|
+
K.value = e, q.value = null;
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
if (e === "verbose") {
|
|
237
|
+
K.value = e, q.value = "expanding", J = setTimeout(() => {
|
|
238
|
+
q.value = null;
|
|
239
|
+
}, We);
|
|
240
|
+
return;
|
|
241
|
+
}
|
|
242
|
+
q.value = "collapsing", J = setTimeout(() => {
|
|
243
|
+
K.value = e, q.value = null;
|
|
244
|
+
}, We);
|
|
245
|
+
}), ce(() => clearTimeout(J));
|
|
246
|
+
let kt = a(() => F.value && y("sidebar-header-action") ? "verbose" : K.value);
|
|
247
|
+
p("nb-shell-sidebar-variant", kt);
|
|
248
|
+
let At = a(() => y("sidebar-header-action") && !F.value);
|
|
249
|
+
p("nb-shell-sidebar-header-action-position", ue(E, "sidebarHeaderActionPosition"));
|
|
250
|
+
let Y = m(null), jt = m(!1);
|
|
251
|
+
le(() => x("inspector", Y.value)), _(Y, (e) => x("inspector", e));
|
|
252
|
+
let Mt = {
|
|
253
|
+
lg: .5,
|
|
254
|
+
xl: .75
|
|
255
|
+
}, Nt = {
|
|
256
|
+
xs: 288,
|
|
257
|
+
sm: 360,
|
|
258
|
+
md: 560
|
|
259
|
+
}, Pt = a(() => Number.isFinite(k.value) ? k.value : 1280), X = a(() => Math.max(v, Pt.value * .5));
|
|
260
|
+
function Z(e) {
|
|
261
|
+
return Math.round(Math.max(v, Math.min(e, X.value)));
|
|
262
|
+
}
|
|
263
|
+
let Ft = nt("inspectorWidth", "inspector-width"), It = m(null), Lt = a(() => Ft ? E.inspectorWidth ?? null : It.value);
|
|
264
|
+
function Rt(e) {
|
|
265
|
+
Ft || (It.value = e), O("update:inspectorWidth", e);
|
|
266
|
+
}
|
|
267
|
+
let zt = a(() => {
|
|
268
|
+
let e = Lt.value;
|
|
269
|
+
if (!(!E.resizable || !H.value || e == null)) return { "--nb-shell-inspector-width": `${Z(e)}px` };
|
|
270
|
+
}), Q = a(() => {
|
|
271
|
+
let e = Lt.value;
|
|
272
|
+
if (e != null) return Z(e);
|
|
273
|
+
if (E.inspectorExpanded) return Math.round(Pt.value * .5);
|
|
274
|
+
let t = Mt[E.inspectorSize], n = t == null ? Nt[E.inspectorSize] ?? v : Pt.value * t;
|
|
275
|
+
return Math.round(E.inspectorSize === "xl" ? n : Math.min(n, X.value));
|
|
276
|
+
}), Bt = a(() => Math.round(Math.max(X.value, Q.value))), Vt = a(() => Q.value);
|
|
277
|
+
function Ht() {
|
|
278
|
+
return Q.value;
|
|
279
|
+
}
|
|
280
|
+
function Ut(e) {
|
|
281
|
+
let t = Y.value;
|
|
282
|
+
if (!t) return;
|
|
283
|
+
let n = t.getBoundingClientRect().right;
|
|
284
|
+
Rt(Z(n - e.clientX));
|
|
285
|
+
}
|
|
286
|
+
function $() {
|
|
287
|
+
jt.value = !1, window.removeEventListener("pointermove", Ut), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $);
|
|
288
|
+
}
|
|
289
|
+
function Wt(e) {
|
|
290
|
+
E.resizable && (e.preventDefault(), jt.value = !0, window.addEventListener("pointermove", Ut), window.addEventListener("pointerup", $), window.addEventListener("pointercancel", $));
|
|
291
|
+
}
|
|
292
|
+
function Gt() {
|
|
293
|
+
Rt(null);
|
|
294
|
+
}
|
|
295
|
+
function Kt(e) {
|
|
296
|
+
if (!E.resizable) return;
|
|
297
|
+
let t = e.shiftKey ? Ke : Ge, n;
|
|
298
|
+
switch (e.key) {
|
|
299
|
+
case "ArrowLeft":
|
|
300
|
+
n = Ht() + t;
|
|
301
|
+
break;
|
|
302
|
+
case "ArrowRight":
|
|
303
|
+
n = Ht() - t;
|
|
304
|
+
break;
|
|
305
|
+
case "Home":
|
|
306
|
+
n = v;
|
|
307
|
+
break;
|
|
308
|
+
case "End":
|
|
309
|
+
n = X.value;
|
|
310
|
+
break;
|
|
311
|
+
case "Enter":
|
|
312
|
+
case " ":
|
|
313
|
+
n = null;
|
|
314
|
+
break;
|
|
315
|
+
default: return;
|
|
316
|
+
}
|
|
317
|
+
e.preventDefault(), Rt(n == null ? null : Z(n));
|
|
318
|
+
}
|
|
319
|
+
return le(() => {
|
|
320
|
+
typeof window > "u" || (k.value = window.innerWidth, window.addEventListener("resize", Ze, { passive: !0 }), E.resizable && et(), M && (N.value = M.matches, typeof M.addEventListener == "function" ? M.addEventListener("change", P) : M.addListener?.(P)));
|
|
321
|
+
}), _(() => E.collapseAt, () => {
|
|
322
|
+
typeof window < "u" && (k.value = window.innerWidth);
|
|
323
|
+
}), _(() => E.resizable, (e) => e ? et() : $e()), ce(() => {
|
|
324
|
+
$(), $e(), typeof window < "u" && window.removeEventListener("resize", Ze), M && (typeof M.removeEventListener == "function" ? M.removeEventListener("change", P) : M.removeListener?.(P));
|
|
325
|
+
}), t({
|
|
326
|
+
mainEl: G,
|
|
327
|
+
sidebarEl: z,
|
|
328
|
+
inspectorEl: Y,
|
|
329
|
+
focusMain: () => G.value?.focus(),
|
|
330
|
+
setSidebarOpen: B,
|
|
331
|
+
setInspectorVisible: W,
|
|
332
|
+
collapsed: F,
|
|
333
|
+
inspectorOverlay: U,
|
|
334
|
+
setContextbarOpen: mt
|
|
335
|
+
}), (t, n) => (f(), s("div", oe({ class: "nb-shell" }, de(Tt), {
|
|
336
|
+
class: [
|
|
337
|
+
{ "nb-shell--no-sidebar": !T.value },
|
|
338
|
+
T.value ? `nb-shell--sidebar-${kt.value}` : null,
|
|
339
|
+
{
|
|
340
|
+
"nb-shell--rail-wide": T.value && Dt.value === "verbose",
|
|
341
|
+
"nb-shell--detached": e.frame === "detached",
|
|
342
|
+
"nb-shell--collapsed": F.value,
|
|
343
|
+
"nb-shell--drawer-open": F.value && R.value,
|
|
344
|
+
"nb-shell--rail-collapsing": q.value === "collapsing",
|
|
345
|
+
"nb-shell--rail-expanding": q.value === "expanding"
|
|
346
|
+
}
|
|
347
|
+
],
|
|
348
|
+
onKeydown: _e(ut, ["esc"])
|
|
349
|
+
}), [
|
|
350
|
+
e.skipToContent ? (f(), s("a", {
|
|
351
|
+
key: 0,
|
|
352
|
+
class: "nb-shell__skip-link",
|
|
353
|
+
href: `#${St.value}`,
|
|
354
|
+
onClick: Ct
|
|
355
|
+
}, g(e.skipToContentLabel), 9, ye)) : o("", !0),
|
|
356
|
+
C("outer-menu") ? (f(), s("div", {
|
|
357
|
+
key: 1,
|
|
358
|
+
ref: S("outer-menu"),
|
|
359
|
+
class: d(["nb-shell__outer-menu", w("outer-menu")])
|
|
360
|
+
}, [h(t.$slots, "outer-menu", {}, void 0, !0)], 2)) : o("", !0),
|
|
361
|
+
c("div", be, [
|
|
362
|
+
T.value ? (f(), s("nav", {
|
|
363
|
+
key: 0,
|
|
364
|
+
id: ot.value,
|
|
365
|
+
ref_key: "sidebarRef",
|
|
366
|
+
ref: z,
|
|
367
|
+
class: "nb-shell__sidebar",
|
|
368
|
+
"aria-label": e.sidebarLabel,
|
|
369
|
+
tabindex: F.value ? -1 : void 0,
|
|
370
|
+
inert: lt.value || void 0,
|
|
371
|
+
"aria-hidden": lt.value || void 0,
|
|
372
|
+
onClickCapture: ft
|
|
373
|
+
}, [
|
|
374
|
+
At.value ? (f(), s("div", {
|
|
375
|
+
key: 0,
|
|
376
|
+
class: d(["nb-shell__sidebar-header", [`nb-shell__sidebar-header--${e.sidebarHeaderActionPosition}`, `nb-shell__sidebar-header--compact-${e.sidebarHeaderActionCompact}`]])
|
|
377
|
+
}, [c("div", Se, [h(t.$slots, "sidebar-logo", {}, void 0, !0)]), c("div", Ce, [h(t.$slots, "sidebar-header-action", {}, void 0, !0)])], 2)) : (f(), s("div", we, [h(t.$slots, "sidebar-logo", {}, void 0, !0)])),
|
|
378
|
+
c("div", Te, [h(t.$slots, "sidebar-nav", {}, void 0, !0)]),
|
|
379
|
+
n[4] ||= c("div", { class: "nb-shell__sidebar-spacer" }, null, -1),
|
|
380
|
+
c("div", Ee, [h(t.$slots, "sidebar-bottom", {}, void 0, !0)])
|
|
381
|
+
], 40, xe)) : o("", !0),
|
|
382
|
+
ie(re, { name: "nb-shell-scrim" }, {
|
|
383
|
+
default: he(() => [T.value && F.value && R.value ? (f(), s("div", {
|
|
384
|
+
key: 0,
|
|
385
|
+
class: "nb-shell__scrim",
|
|
386
|
+
onClick: n[0] ||= (e) => B(!1)
|
|
387
|
+
})) : o("", !0)]),
|
|
388
|
+
_: 1
|
|
389
|
+
}),
|
|
390
|
+
c("div", De, [
|
|
391
|
+
C("inner-menu") ? (f(), s("div", {
|
|
392
|
+
key: 0,
|
|
393
|
+
ref: S("inner-menu"),
|
|
394
|
+
class: d(["nb-shell__inner-menu", w("inner-menu")])
|
|
395
|
+
}, [h(t.$slots, "inner-menu", {}, void 0, !0)], 2)) : o("", !0),
|
|
396
|
+
C("notification") ? (f(), s("div", {
|
|
397
|
+
key: 1,
|
|
398
|
+
ref: S("notification"),
|
|
399
|
+
class: d(["nb-shell__notification", w("notification")])
|
|
400
|
+
}, [h(t.$slots, "notification", {}, void 0, !0)], 2)) : o("", !0),
|
|
401
|
+
y("menubar") ? (f(), s("div", Oe, [h(t.$slots, "menubar", {}, void 0, !0)])) : o("", !0),
|
|
402
|
+
wt.value ? (f(), s("div", ke, [
|
|
403
|
+
ct.value ? (f(), s("button", {
|
|
404
|
+
key: 0,
|
|
405
|
+
ref_key: "navToggleRef",
|
|
406
|
+
ref: st,
|
|
407
|
+
type: "button",
|
|
408
|
+
class: "nb-shell__nav-toggle",
|
|
409
|
+
"aria-label": e.navToggleLabel,
|
|
410
|
+
"aria-expanded": R.value,
|
|
411
|
+
"aria-controls": ot.value,
|
|
412
|
+
onClick: n[1] ||= (e) => B(!R.value)
|
|
413
|
+
}, [...n[5] ||= [c("span", {
|
|
414
|
+
class: "nb-shell__nav-toggle-glyph",
|
|
415
|
+
"aria-hidden": "true"
|
|
416
|
+
}, [
|
|
417
|
+
c("span"),
|
|
418
|
+
c("span"),
|
|
419
|
+
c("span")
|
|
420
|
+
], -1)]], 8, Ae)) : o("", !0),
|
|
421
|
+
c("div", {
|
|
422
|
+
ref: S("topbar-left"),
|
|
423
|
+
class: "nb-shell__topbar-left"
|
|
424
|
+
}, [h(t.$slots, "topbar-left", {}, void 0, !0)], 512),
|
|
425
|
+
c("div", {
|
|
426
|
+
ref: S("topbar-right"),
|
|
427
|
+
class: "nb-shell__topbar-right"
|
|
428
|
+
}, [h(t.$slots, "topbar-right", {}, void 0, !0)], 512)
|
|
429
|
+
])) : o("", !0),
|
|
430
|
+
c("div", je, [c("div", {
|
|
431
|
+
class: "nb-shell__body",
|
|
432
|
+
inert: bt.value || void 0,
|
|
433
|
+
"aria-hidden": bt.value || void 0
|
|
434
|
+
}, [c("div", Ne, [
|
|
435
|
+
C("fixedbar") ? (f(), s("div", {
|
|
436
|
+
key: 0,
|
|
437
|
+
ref: S("fixedbar"),
|
|
438
|
+
class: "nb-shell__fixedbar"
|
|
439
|
+
}, [h(t.$slots, "fixedbar", {}, void 0, !0)], 512)) : o("", !0),
|
|
440
|
+
F.value && C("contextbar") ? (f(), s("button", {
|
|
441
|
+
key: 1,
|
|
442
|
+
type: "button",
|
|
443
|
+
class: "nb-shell__contextbar-toggle",
|
|
444
|
+
"aria-expanded": D.value,
|
|
445
|
+
onClick: n[2] ||= (e) => D.value = !D.value
|
|
446
|
+
}, [c("span", null, g(e.contextbarLabel), 1), c("span", Fe, g(D.value ? "▾" : "▸"), 1)], 8, Pe)) : o("", !0),
|
|
447
|
+
c("div", Ie, [C("contextbar") ? ge((f(), s("aside", {
|
|
448
|
+
key: 0,
|
|
449
|
+
ref: S("contextbar"),
|
|
450
|
+
class: d(["nb-shell__contextbar", w("contextbar")]),
|
|
451
|
+
"aria-label": e.contextbarLabel,
|
|
452
|
+
onClickCapture: pt
|
|
453
|
+
}, [h(t.$slots, "contextbar", {}, void 0, !0)], 42, Le)), [[me, !F.value || D.value]]) : o("", !0), c("main", oe({
|
|
454
|
+
id: St.value,
|
|
455
|
+
ref_key: "mainRef",
|
|
456
|
+
ref: G,
|
|
457
|
+
tabindex: "-1",
|
|
458
|
+
class: ["nb-shell__main", { "nb-shell__main--no-padding": !e.mainPadding }]
|
|
459
|
+
}, de(Et)), [ie(ve, { level: 1 }, {
|
|
460
|
+
default: he(() => [h(t.$slots, "default", {}, void 0, !0)]),
|
|
461
|
+
_: 3
|
|
462
|
+
})], 16, Re)])
|
|
463
|
+
]), C("bottom") ? (f(), s("div", {
|
|
464
|
+
key: 0,
|
|
465
|
+
ref: S("bottom"),
|
|
466
|
+
class: "nb-shell__bottom"
|
|
467
|
+
}, [h(t.$slots, "bottom", {}, void 0, !0)], 512)) : o("", !0)], 8, Me), c("aside", {
|
|
468
|
+
ref_key: "inspectorRef",
|
|
469
|
+
ref: Y,
|
|
470
|
+
class: d(["nb-shell__inspector", {
|
|
471
|
+
"nb-shell__inspector--visible": H.value,
|
|
472
|
+
"nb-shell__inspector--expanded": H.value && e.inspectorExpanded,
|
|
473
|
+
[`nb-shell__inspector--${e.inspectorSize}`]: H.value,
|
|
474
|
+
"nb-shell__inspector--resizing": jt.value,
|
|
475
|
+
"nb-shell__inspector--overlay": U.value
|
|
476
|
+
}]),
|
|
477
|
+
"aria-label": e.inspectorLabel,
|
|
478
|
+
inert: !H.value || void 0,
|
|
479
|
+
"aria-hidden": !H.value || void 0,
|
|
480
|
+
style: se(zt.value)
|
|
481
|
+
}, [
|
|
482
|
+
U.value ? (f(), s("button", {
|
|
483
|
+
key: 0,
|
|
484
|
+
ref_key: "inspectorDismissRef",
|
|
485
|
+
ref: _t,
|
|
486
|
+
type: "button",
|
|
487
|
+
class: "nb-shell__inspector-dismiss",
|
|
488
|
+
"aria-label": e.inspectorCloseLabel,
|
|
489
|
+
onClick: n[3] ||= (e) => W(!1)
|
|
490
|
+
}, [...n[6] ||= [c("span", {
|
|
491
|
+
class: "nb-shell__inspector-dismiss-glyph",
|
|
492
|
+
"aria-hidden": "true"
|
|
493
|
+
}, "×", -1)]], 8, Be)) : o("", !0),
|
|
494
|
+
e.resizable && H.value && !F.value ? (f(), s("div", {
|
|
495
|
+
key: 1,
|
|
496
|
+
class: "nb-shell__inspector-resize",
|
|
497
|
+
role: "separator",
|
|
498
|
+
tabindex: "0",
|
|
499
|
+
"aria-orientation": "vertical",
|
|
500
|
+
"aria-label": `Resize ${e.inspectorLabel}`,
|
|
501
|
+
"aria-valuenow": Vt.value,
|
|
502
|
+
"aria-valuemin": v,
|
|
503
|
+
"aria-valuemax": Bt.value,
|
|
504
|
+
title: "Drag or use the arrow keys to resize, Enter or double-click to reset",
|
|
505
|
+
onPointerdown: Wt,
|
|
506
|
+
onDblclick: Gt,
|
|
507
|
+
onKeydown: Kt
|
|
508
|
+
}, null, 40, Ve)) : o("", !0),
|
|
509
|
+
h(t.$slots, "inspector", {
|
|
510
|
+
overlay: U.value,
|
|
511
|
+
close: yt
|
|
512
|
+
}, void 0, !0)
|
|
513
|
+
], 14, ze)])
|
|
514
|
+
])
|
|
515
|
+
])
|
|
516
|
+
], 16));
|
|
517
|
+
}
|
|
518
|
+
}), [["__scopeId", "data-v-99932fd0"]]);
|
|
519
|
+
//#endregion
|
|
520
|
+
export { y as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useSurfaceLayer.composable.cjs`);let n=require(`vue`);var r={class:`nb-shell-panel__header`},i={class:`nb-shell-panel__header-left`},a=[`title`],o={class:`nb-shell-panel__header-center`},s={class:`nb-shell-panel__toolbar`},c=[`aria-label`],l=[`aria-pressed`],u=[`aria-pressed`],d=[`aria-pressed`],f={key:0,class:`nb-shell-panel__content`},p=(0,n.defineComponent)({__name:`ShellPanel`,props:{size:{default:`default`},title:{default:``},fluid:{type:Boolean,default:!1},fill:{type:Boolean,default:!1}},emits:[`update:size`],setup(e,{expose:p,emit:m}){let h=e,{layerProps:g}=t.useSurfaceLayer(),_=m,v=(0,n.ref)(h.size);(0,n.watch)(()=>h.size,e=>v.value=e);let y=(0,n.computed)({get:()=>v.value,set:e=>{v.value=e,_(`update:size`,e)}});function b(e){y.value=e}return p({setSize:b}),(t,p)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,(0,n.mergeProps)({class:`nb-shell-panel`},(0,n.unref)(g),{class:[y.value,{"nb-shell-panel--fluid":e.fluid,"nb-shell-panel--fill":e.fill}]}),[(0,n.createElementVNode)(`div`,r,[(0,n.createElementVNode)(`div`,i,[e.title?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,{key:0,class:`nb-shell-panel__title`,title:e.title},(0,n.toDisplayString)(e.title),9,a)):(0,n.createCommentVNode)(``,!0),(0,n.renderSlot)(t.$slots,`title`,{},void 0,!0)]),(0,n.createElementVNode)(`div`,o,[(0,n.createElementVNode)(`div`,s,[(0,n.renderSlot)(t.$slots,`toolbar`,{},void 0,!0)])]),(0,n.createElementVNode)(`div`,{class:`nb-shell-panel__header-right`,role:`group`,"aria-label":e.title?`${e.title} panel size`:`Panel size`},[(0,n.renderSlot)(t.$slots,`controls`,{},()=>[(0,n.createElementVNode)(`button`,{type:`button`,class:(0,n.normalizeClass)([`nb-shell-panel__size-btn`,{active:y.value===`collapsed`}]),"aria-pressed":y.value===`collapsed`,title:`Minimize`,"aria-label":`Minimize`,onClick:p[0]||=e=>b(`collapsed`)},[...p[3]||=[(0,n.createElementVNode)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,"aria-hidden":`true`},[(0,n.createElementVNode)(`line`,{x1:`2`,y1:`10`,x2:`10`,y2:`10`,stroke:`currentColor`,"stroke-width":`1.5`})],-1)]],10,l),(0,n.createElementVNode)(`button`,{type:`button`,class:(0,n.normalizeClass)([`nb-shell-panel__size-btn`,{active:y.value===`default`}]),"aria-pressed":y.value===`default`,title:`Default`,"aria-label":`Default`,onClick:p[1]||=e=>b(`default`)},[...p[4]||=[(0,n.createElementVNode)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,"aria-hidden":`true`},[(0,n.createElementVNode)(`rect`,{x:`1`,y:`5`,width:`10`,height:`6`,rx:`1`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.2`})],-1)]],10,u),(0,n.createElementVNode)(`button`,{type:`button`,class:(0,n.normalizeClass)([`nb-shell-panel__size-btn`,{active:y.value===`full`}]),"aria-pressed":y.value===`full`,title:`Maximize`,"aria-label":`Maximize`,onClick:p[2]||=e=>b(`full`)},[...p[5]||=[(0,n.createElementVNode)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,"aria-hidden":`true`},[(0,n.createElementVNode)(`rect`,{x:`1`,y:`1`,width:`10`,height:`10`,rx:`1`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.2`}),(0,n.createElementVNode)(`line`,{x1:`1`,y1:`3.5`,x2:`11`,y2:`3.5`,stroke:`currentColor`,"stroke-width":`1.2`})],-1)]],10,d)],!0)],8,c)]),y.value===`collapsed`?(0,n.createCommentVNode)(``,!0):((0,n.openBlock)(),(0,n.createElementBlock)(`div`,f,[(0,n.renderSlot)(t.$slots,`default`,{},void 0,!0)]))],16))}}),m=e.t(p,[[`__scopeId`,`data-v-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useSurfaceLayer.composable.cjs`);let n=require(`vue`);var r={class:`nb-shell-panel__header`},i={class:`nb-shell-panel__header-left`},a=[`title`],o={class:`nb-shell-panel__header-center`},s={class:`nb-shell-panel__toolbar`},c=[`aria-label`],l=[`aria-pressed`],u=[`aria-pressed`],d=[`aria-pressed`],f={key:0,class:`nb-shell-panel__content`},p=(0,n.defineComponent)({__name:`ShellPanel`,props:{size:{default:`default`},title:{default:``},fluid:{type:Boolean,default:!1},fill:{type:Boolean,default:!1}},emits:[`update:size`],setup(e,{expose:p,emit:m}){let h=e,{layerProps:g}=t.useSurfaceLayer(),_=m,v=(0,n.ref)(h.size);(0,n.watch)(()=>h.size,e=>v.value=e);let y=(0,n.computed)({get:()=>v.value,set:e=>{v.value=e,_(`update:size`,e)}});function b(e){y.value=e}return p({setSize:b}),(t,p)=>((0,n.openBlock)(),(0,n.createElementBlock)(`div`,(0,n.mergeProps)({class:`nb-shell-panel`},(0,n.unref)(g),{class:[y.value,{"nb-shell-panel--fluid":e.fluid,"nb-shell-panel--fill":e.fill}]}),[(0,n.createElementVNode)(`div`,r,[(0,n.createElementVNode)(`div`,i,[e.title?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,{key:0,class:`nb-shell-panel__title`,title:e.title},(0,n.toDisplayString)(e.title),9,a)):(0,n.createCommentVNode)(``,!0),(0,n.renderSlot)(t.$slots,`title`,{},void 0,!0)]),(0,n.createElementVNode)(`div`,o,[(0,n.createElementVNode)(`div`,s,[(0,n.renderSlot)(t.$slots,`toolbar`,{},void 0,!0)])]),(0,n.createElementVNode)(`div`,{class:`nb-shell-panel__header-right`,role:`group`,"aria-label":e.title?`${e.title} panel size`:`Panel size`},[(0,n.renderSlot)(t.$slots,`controls`,{},()=>[(0,n.createElementVNode)(`button`,{type:`button`,class:(0,n.normalizeClass)([`nb-shell-panel__size-btn`,{active:y.value===`collapsed`}]),"aria-pressed":y.value===`collapsed`,title:`Minimize`,"aria-label":`Minimize`,onClick:p[0]||=e=>b(`collapsed`)},[...p[3]||=[(0,n.createElementVNode)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,"aria-hidden":`true`},[(0,n.createElementVNode)(`line`,{x1:`2`,y1:`10`,x2:`10`,y2:`10`,stroke:`currentColor`,"stroke-width":`1.5`})],-1)]],10,l),(0,n.createElementVNode)(`button`,{type:`button`,class:(0,n.normalizeClass)([`nb-shell-panel__size-btn`,{active:y.value===`default`}]),"aria-pressed":y.value===`default`,title:`Default`,"aria-label":`Default`,onClick:p[1]||=e=>b(`default`)},[...p[4]||=[(0,n.createElementVNode)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,"aria-hidden":`true`},[(0,n.createElementVNode)(`rect`,{x:`1`,y:`5`,width:`10`,height:`6`,rx:`1`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.2`})],-1)]],10,u),(0,n.createElementVNode)(`button`,{type:`button`,class:(0,n.normalizeClass)([`nb-shell-panel__size-btn`,{active:y.value===`full`}]),"aria-pressed":y.value===`full`,title:`Maximize`,"aria-label":`Maximize`,onClick:p[2]||=e=>b(`full`)},[...p[5]||=[(0,n.createElementVNode)(`svg`,{width:`12`,height:`12`,viewBox:`0 0 12 12`,"aria-hidden":`true`},[(0,n.createElementVNode)(`rect`,{x:`1`,y:`1`,width:`10`,height:`10`,rx:`1`,fill:`none`,stroke:`currentColor`,"stroke-width":`1.2`}),(0,n.createElementVNode)(`line`,{x1:`1`,y1:`3.5`,x2:`11`,y2:`3.5`,stroke:`currentColor`,"stroke-width":`1.2`})],-1)]],10,d)],!0)],8,c)]),y.value===`collapsed`?(0,n.createCommentVNode)(``,!0):((0,n.openBlock)(),(0,n.createElementBlock)(`div`,f,[(0,n.renderSlot)(t.$slots,`default`,{},void 0,!0)]))],16))}}),m=e.t(p,[[`__scopeId`,`data-v-f35ea14b`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return m}});
|
|
@@ -121,6 +121,6 @@ var h = { class: "nb-shell-panel__header" }, g = { class: "nb-shell-panel__heade
|
|
|
121
121
|
], !0)], 8, b)
|
|
122
122
|
]), A.value === "collapsed" ? r("", !0) : (l(), i("div", w, [d(t.$slots, "default", {}, void 0, !0)]))], 16));
|
|
123
123
|
}
|
|
124
|
-
}), [["__scopeId", "data-v-
|
|
124
|
+
}), [["__scopeId", "data-v-f35ea14b"]]);
|
|
125
125
|
//#endregion
|
|
126
126
|
export { T as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./vue-i18n-BERFm5iG.js";
|
|
2
|
-
import { t } from "./SidebarMenuItem-
|
|
2
|
+
import { t } from "./SidebarMenuItem-BFdCve25.js";
|
|
3
3
|
import { computed as n, createBlock as r, defineComponent as i, inject as a, openBlock as o, ref as s } from "vue";
|
|
4
4
|
import * as c from "@nubisco/ui/icons/caret-line-left";
|
|
5
5
|
import * as l from "@nubisco/ui/icons/caret-line-right";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./vue-i18n-CNxAi_sd.cjs`),n=require(`./SidebarMenuItem-
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./vue-i18n-CNxAi_sd.cjs`),n=require(`./SidebarMenuItem-C46vbCOy.cjs`);let r=require(`vue`),i=require(`@nubisco/ui/icons/caret-line-left`);i=e.n(i);let a=require(`@nubisco/ui/icons/caret-line-right`);a=e.n(a);var o=(0,r.defineComponent)({__name:`SidebarCollapseToggle`,props:{collapseLabel:{default:void 0},expandLabel:{default:void 0}},emits:[`toggle`],setup(e,{emit:o}){let s=e,c=o,l=(0,r.inject)(`nb-shell-sidebar-variant`,(0,r.ref)(`verbose`)),u=(0,r.computed)(()=>l.value===`compact`),d={en:{COLLAPSE:`Collapse sidebar`,EXPAND:`Expand sidebar`},pt:{COLLAPSE:`Recolher barra lateral`,EXPAND:`Expandir barra lateral`}};function f(){try{return t.t({useScope:`global`})}catch{return null}}let p=f();function m(e){let t=`sidebarCollapseToggle.${e}`;return p?.te(t)?p.t(t):d[String(p?.locale.value??`en`).toLowerCase().split(`-`)[0]]?.[e]??d.en[e]}let h=(0,r.computed)(()=>u.value?s.expandLabel??m(`EXPAND`):s.collapseLabel??m(`COLLAPSE`));return(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(n.t,{class:`nb-sidebar-collapse-toggle`,label:h.value,icon:u.value?a:i,onClick:t[0]||=e=>c(`toggle`)},null,8,[`label`,`icon`]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./vue-i18n-CNxAi_sd.cjs`);let i=require(`vue`),a=require(`@nubisco/ui/icons/caret-right`);a=e.n(a);let o=require(`@nubisco/ui/icons/caret-left`);o=e.n(o);let s=require(`@nubisco/ui/icons/sidebar-simple`);s=e.n(s);var c=[`aria-label`,`aria-expanded`],l=(0,i.defineComponent)({__name:`SidebarHeaderToggle`,props:{collapseLabel:{default:void 0},expandLabel:{default:void 0},icon:{default:void 0}},emits:[`toggle`],setup(e,{emit:t}){let l=e,u=t,d=(0,i.inject)(`nb-shell-sidebar-variant`,(0,i.ref)(`verbose`)),f=(0,i.inject)(`nb-shell-sidebar-header-action-position`,(0,i.ref)(`end`)),p=(0,i.computed)(()=>d.value===`compact`),m=(0,i.computed)(()=>f.value===`edge`),h=(0,i.computed)(()=>l.icon?l.icon:m.value?p.value?a:o:s),g={en:{COLLAPSE:`Collapse sidebar`,EXPAND:`Expand sidebar`},pt:{COLLAPSE:`Recolher barra lateral`,EXPAND:`Expandir barra lateral`}};function _(){try{return r.t({useScope:`global`})}catch{return null}}let v=_();function y(e){let t=`sidebarCollapseToggle.${e}`;return v?.te(t)?v.t(t):g[String(v?.locale.value??`en`).toLowerCase().split(`-`)[0]]?.[e]??g.en[e]}let b=(0,i.computed)(()=>p.value?l.expandLabel??y(`EXPAND`):l.collapseLabel??y(`COLLAPSE`));return(e,t)=>{let r=(0,i.resolveDirective)(`nb-tooltip`);return(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-sidebar-header-toggle`,{"nb-sidebar-header-toggle--edge":m.value}]),"aria-label":b.value,"aria-expanded":!p.value,onClick:t[0]||=e=>u(`toggle`)},[(0,i.createVNode)(n.t,{name:h.value,size:m.value?14:18},null,8,[`name`,`size`])],10,c)),[[r,{body:b.value,aria:`none`,position:`right`}]])}}}),u=t.t(l,[[`__scopeId`,`data-v-
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./vue-i18n-CNxAi_sd.cjs`);let i=require(`vue`),a=require(`@nubisco/ui/icons/caret-right`);a=e.n(a);let o=require(`@nubisco/ui/icons/caret-left`);o=e.n(o);let s=require(`@nubisco/ui/icons/sidebar-simple`);s=e.n(s);var c=[`aria-label`,`aria-expanded`],l=(0,i.defineComponent)({__name:`SidebarHeaderToggle`,props:{collapseLabel:{default:void 0},expandLabel:{default:void 0},icon:{default:void 0}},emits:[`toggle`],setup(e,{emit:t}){let l=e,u=t,d=(0,i.inject)(`nb-shell-sidebar-variant`,(0,i.ref)(`verbose`)),f=(0,i.inject)(`nb-shell-sidebar-header-action-position`,(0,i.ref)(`end`)),p=(0,i.computed)(()=>d.value===`compact`),m=(0,i.computed)(()=>f.value===`edge`),h=(0,i.computed)(()=>l.icon?l.icon:m.value?p.value?a:o:s),g={en:{COLLAPSE:`Collapse sidebar`,EXPAND:`Expand sidebar`},pt:{COLLAPSE:`Recolher barra lateral`,EXPAND:`Expandir barra lateral`}};function _(){try{return r.t({useScope:`global`})}catch{return null}}let v=_();function y(e){let t=`sidebarCollapseToggle.${e}`;return v?.te(t)?v.t(t):g[String(v?.locale.value??`en`).toLowerCase().split(`-`)[0]]?.[e]??g.en[e]}let b=(0,i.computed)(()=>p.value?l.expandLabel??y(`EXPAND`):l.collapseLabel??y(`COLLAPSE`));return(e,t)=>{let r=(0,i.resolveDirective)(`nb-tooltip`);return(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-sidebar-header-toggle`,{"nb-sidebar-header-toggle--edge":m.value}]),"aria-label":b.value,"aria-expanded":!p.value,onClick:t[0]||=e=>u(`toggle`)},[(0,i.createVNode)(n.t,{name:h.value,size:m.value?14:18},null,8,[`name`,`size`])],10,c)),[[r,{body:b.value,aria:`none`,position:`right`}]])}}}),u=t.t(l,[[`__scopeId`,`data-v-9dc8cbd7`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useRouterLink.composable.cjs`);let n=require(`vue`);var r=(0,n.defineComponent)({__name:`SidebarLink`,props:{to:{default:void 0},href:{default:void 0},tooltip:{default:void 0},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},danger:{type:Boolean,default:!1}},emits:[`click`],setup(e){let r=e,i=t.useRouterLink(),a=(0,n.computed)(()=>r.to!=null&&!!i.value),o=(0,n.computed)(()=>{if(typeof r.to==`string`)return r.to;if(r.href)return r.href}),s=(0,n.computed)(()=>a.value?i.value:o.value?`a`:`button`),c=(0,n.computed)(()=>s.value===`a`?{href:o.value}:{});return(t,r)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(s.value),(0,n.mergeProps)({class:[`nb-sidebar-link`,{"nb-sidebar-link--active":e.active,"nb-sidebar-link--danger":e.danger,"nb-sidebar-link--disabled":e.disabled}],to:a.value?e.to:void 0},c.value,{disabled:s.value===`button`&&e.disabled||void 0,"aria-disabled":s.value!==`button`&&e.disabled?!0:void 0,"data-tooltip":e.tooltip||void 0,onClick:r[0]||=n=>e.disabled?void 0:t.$emit(`click`,n)}),{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,`default`,{},void 0,!0)]),_:3},16,[`class`,`to`,`disabled`,`aria-disabled`,`data-tooltip`]))}}),i=e.t(r,[[`__scopeId`,`data-v-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./composables/useRouterLink.composable.cjs`);let n=require(`vue`);var r=(0,n.defineComponent)({__name:`SidebarLink`,props:{to:{default:void 0},href:{default:void 0},tooltip:{default:void 0},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},danger:{type:Boolean,default:!1}},emits:[`click`],setup(e){let r=e,i=t.useRouterLink(),a=(0,n.computed)(()=>r.to!=null&&!!i.value),o=(0,n.computed)(()=>{if(typeof r.to==`string`)return r.to;if(r.href)return r.href}),s=(0,n.computed)(()=>a.value?i.value:o.value?`a`:`button`),c=(0,n.computed)(()=>s.value===`a`?{href:o.value}:{});return(t,r)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(s.value),(0,n.mergeProps)({class:[`nb-sidebar-link`,{"nb-sidebar-link--active":e.active,"nb-sidebar-link--danger":e.danger,"nb-sidebar-link--disabled":e.disabled}],to:a.value?e.to:void 0},c.value,{disabled:s.value===`button`&&e.disabled||void 0,"aria-disabled":s.value!==`button`&&e.disabled?!0:void 0,"data-tooltip":e.tooltip||void 0,onClick:r[0]||=n=>e.disabled?void 0:t.$emit(`click`,n)}),{default:(0,n.withCtx)(()=>[(0,n.renderSlot)(t.$slots,`default`,{},void 0,!0)]),_:3},16,[`class`,`to`,`disabled`,`aria-disabled`,`data-tooltip`]))}}),i=e.t(r,[[`__scopeId`,`data-v-35d4ede3`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return i}});
|