@nubisco/ui 5.43.2 → 5.45.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-Cmr5dHB3.js +175 -0
- package/dist/Breadcrumbs-DGJEdKOS.cjs +1 -0
- 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-0-uyosme.js → SidebarCollapseToggle-CX6Ay_PC.js} +1 -1
- package/dist/{SidebarCollapseToggle-BswURvS0.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-BTVsBDts.js +69 -0
- package/dist/SidebarMenuGroup-ByeTvkHJ.cjs +1 -0
- package/dist/SidebarMenuItem-BFdCve25.js +268 -0
- package/dist/SidebarMenuItem-C46vbCOy.cjs +1 -0
- 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-C-vp8-s1.js → Tabs-C_sm66Xi.js} +1 -1
- package/dist/{Tabs-CNZ3LlV1.cjs → Tabs-RbPvDC7u.cjs} +1 -1
- 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 +63 -63
- package/dist/component-styles.json +4 -0
- 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/Avatar.cjs +1 -1
- package/dist/components/Avatar.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.d.ts +13 -0
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Breadcrumbs.vue.d.ts +2 -2
- package/dist/components/Breadcrumbs.vue.d.ts.map +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/Calendar.cjs +1 -1
- package/dist/components/Calendar.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.d.ts +7 -0
- package/dist/components/SidebarMenuGroup.mjs +1 -1
- package/dist/components/SidebarMenuGroup.vue.d.ts +4 -3
- package/dist/components/SidebarMenuGroup.vue.d.ts.map +1 -1
- package/dist/components/SidebarMenuItem.cjs +1 -1
- package/dist/components/SidebarMenuItem.d.ts +9 -0
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/SidebarMenuItem.vue.d.ts +4 -3
- 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/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 +60 -60
- 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/Breadcrumbs.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 +49 -49
- 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/Breadcrumbs-B1dTOa2c.js +0 -145
- package/dist/Breadcrumbs-BQCRa6zF.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/SidebarMenuGroup-BTE6pzU7.cjs +0 -1
- package/dist/SidebarMenuGroup-BWjJE_SN.js +0 -55
- package/dist/SidebarMenuItem-Ca3H9cGh.cjs +0 -1
- package/dist/SidebarMenuItem-DlMpBgAc.js +0 -255
- package/dist/main-8_dE3Ta1.cjs +0 -4
- /package/dist/{Avatar-EkPppXcU.js → Avatar-BibgBZuN.js} +0 -0
- /package/dist/{Avatar-DMTs2BnK.cjs → Avatar-BpPczEa8.cjs} +0 -0
- /package/dist/{Calendar-BdPVR00d.js → Calendar-BTE4rmqe.js} +0 -0
- /package/dist/{Calendar-Dg3g3h7z.cjs → Calendar-C_tRujlw.cjs} +0 -0
package/dist/Shell-BUqkz67b.js
DELETED
|
@@ -1,497 +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 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 { computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as re, defineComponent as ie, 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__ */ ie({
|
|
10
|
-
__name: "SurfaceLayerScope",
|
|
11
|
-
props: { level: {} },
|
|
12
|
-
setup(e) {
|
|
13
|
-
let r = e;
|
|
14
|
-
return f(t, a(() => 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-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 = ["aria-expanded"], Pe = {
|
|
36
|
-
class: "nb-shell__contextbar-toggle-glyph",
|
|
37
|
-
"aria-hidden": "true"
|
|
38
|
-
}, Fe = { class: "nb-shell__main-row" }, Ie = ["aria-label"], Le = ["id"], Re = [
|
|
39
|
-
"aria-label",
|
|
40
|
-
"inert",
|
|
41
|
-
"aria-hidden"
|
|
42
|
-
], ze = ["aria-label"], Be = [
|
|
43
|
-
"aria-label",
|
|
44
|
-
"aria-valuenow",
|
|
45
|
-
"aria-valuemax"
|
|
46
|
-
], Ve = "(pointer: coarse) and (hover: none) and (max-height: 500px)", He = "a[href], [role=\"menuitem\"]", _ = 288, Ue = 16, We = 64, v = /* @__PURE__ */ e(/* @__PURE__ */ ie({
|
|
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
|
-
skipToContent: {
|
|
72
|
-
type: Boolean,
|
|
73
|
-
default: !0
|
|
74
|
-
},
|
|
75
|
-
skipToContentLabel: { default: "Skip to content" },
|
|
76
|
-
mainId: {},
|
|
77
|
-
sidebarLabel: { default: "Primary" },
|
|
78
|
-
inspectorLabel: { default: "Inspector" },
|
|
79
|
-
contextbarLabel: { default: "Browse" },
|
|
80
|
-
collapseAt: { default: "md" },
|
|
81
|
-
sidebarOpen: { type: Boolean },
|
|
82
|
-
navToggleLabel: { default: "Navigation" },
|
|
83
|
-
inspectorCloseLabel: { default: "Close inspector" }
|
|
84
|
-
},
|
|
85
|
-
emits: [
|
|
86
|
-
"update:inspectorWidth",
|
|
87
|
-
"update:sidebarOpen",
|
|
88
|
-
"update:inspectorVisible"
|
|
89
|
-
],
|
|
90
|
-
setup(e, { expose: t, emit: n }) {
|
|
91
|
-
let ie = pe();
|
|
92
|
-
function v(e) {
|
|
93
|
-
return i(ie, e);
|
|
94
|
-
}
|
|
95
|
-
let { registry: Ge, count: y, sharedCount: Ke, setElement: b } = te();
|
|
96
|
-
f(ee, Ge);
|
|
97
|
-
let qe = /* @__PURE__ */ new Map();
|
|
98
|
-
function x(e) {
|
|
99
|
-
let t = qe.get(e);
|
|
100
|
-
return t || (t = (t) => b(e, t ?? null), qe.set(e, t)), t;
|
|
101
|
-
}
|
|
102
|
-
function S(e) {
|
|
103
|
-
return v(e) || y(e) > 0;
|
|
104
|
-
}
|
|
105
|
-
function C(e) {
|
|
106
|
-
return Ke(e) > 0 ? "nb-shell__region--ordered" : null;
|
|
107
|
-
}
|
|
108
|
-
let w = a(() => {
|
|
109
|
-
for (let e of [
|
|
110
|
-
"sidebar-logo",
|
|
111
|
-
"sidebar-nav",
|
|
112
|
-
"sidebar-bottom"
|
|
113
|
-
]) if (v(e)) return !0;
|
|
114
|
-
return !1;
|
|
115
|
-
}), T = e, E = p(!1), D = n, Je = {
|
|
116
|
-
md: 672,
|
|
117
|
-
lg: 1056
|
|
118
|
-
}, O = p(typeof window < "u" ? window.innerWidth : Infinity);
|
|
119
|
-
function k(e) {
|
|
120
|
-
let t = Je[T.collapseAt];
|
|
121
|
-
return t != null && e < t;
|
|
122
|
-
}
|
|
123
|
-
let A = 0;
|
|
124
|
-
function Ye() {
|
|
125
|
-
let e = window.innerWidth;
|
|
126
|
-
k(e) !== k(O.value) && (O.value = e);
|
|
127
|
-
}
|
|
128
|
-
function Xe() {
|
|
129
|
-
A ||= window.requestAnimationFrame(() => {
|
|
130
|
-
A = 0, O.value = window.innerWidth;
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
function Ze() {
|
|
134
|
-
typeof window > "u" || (window.removeEventListener("resize", Xe), A &&= (window.cancelAnimationFrame(A), 0));
|
|
135
|
-
}
|
|
136
|
-
function Qe() {
|
|
137
|
-
typeof window > "u" || (O.value = window.innerWidth, window.addEventListener("resize", Xe, { passive: !0 }));
|
|
138
|
-
}
|
|
139
|
-
let j = typeof window < "u" && typeof window.matchMedia == "function" ? window.matchMedia(Ve) : null, M = p(j?.matches === !0);
|
|
140
|
-
function N(e) {
|
|
141
|
-
M.value = e.matches;
|
|
142
|
-
}
|
|
143
|
-
let P = a(() => k(O.value) || T.collapseAt !== "none" && M.value), F = ae()?.vnode.props ?? {};
|
|
144
|
-
function I(e, t) {
|
|
145
|
-
return e in F || t in F;
|
|
146
|
-
}
|
|
147
|
-
function $e(e, t) {
|
|
148
|
-
if (e in F) return F[e];
|
|
149
|
-
if (t in F) return F[t];
|
|
150
|
-
}
|
|
151
|
-
function L(e, t) {
|
|
152
|
-
return I(e, t) && $e(e, t) !== void 0;
|
|
153
|
-
}
|
|
154
|
-
let R = L("sidebarOpen", "sidebar-open"), z = p(!1);
|
|
155
|
-
I("sidebarOpen", "sidebar-open") && !R && g(() => T.sidebarOpen, (e) => {
|
|
156
|
-
z.value = e === !0;
|
|
157
|
-
});
|
|
158
|
-
let B = a(() => R ? T.sidebarOpen === !0 : z.value), et = fe(), tt = a(() => `nb-shell-sidebar-${et}`), nt = p(null), V = p(null), rt = a(() => w.value && P.value), it = a(() => w.value && P.value && !B.value);
|
|
159
|
-
function H(e) {
|
|
160
|
-
R || (z.value = e), D("update:sidebarOpen", e);
|
|
161
|
-
}
|
|
162
|
-
function at(e) {
|
|
163
|
-
if (!e.defaultPrevented) {
|
|
164
|
-
if (w.value && P.value && B.value) {
|
|
165
|
-
H(!1);
|
|
166
|
-
return;
|
|
167
|
-
}
|
|
168
|
-
K.value && q(!1);
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
function ot(e, t) {
|
|
172
|
-
let n = e.target, r = n?.closest?.(He);
|
|
173
|
-
if (!r || !t?.contains(r)) return !1;
|
|
174
|
-
let i = r.getAttribute("aria-haspopup");
|
|
175
|
-
return !(i != null && i !== "false" || r.hasAttribute("aria-expanded") || r.getAttribute("aria-disabled") === "true" || n?.closest?.("[data-nb-keep-open]"));
|
|
176
|
-
}
|
|
177
|
-
function st(e) {
|
|
178
|
-
!P.value || !B.value || ot(e, V.value) && H(!1);
|
|
179
|
-
}
|
|
180
|
-
function ct(e) {
|
|
181
|
-
!P.value || !E.value || ot(e, e.currentTarget) && (E.value = !1);
|
|
182
|
-
}
|
|
183
|
-
function lt(e) {
|
|
184
|
-
E.value = e;
|
|
185
|
-
}
|
|
186
|
-
g(B, async (e) => {
|
|
187
|
-
P.value && (await l(), e ? (V.value?.querySelector("a[href], button:not([disabled]), [tabindex]:not([tabindex=\"-1\"])") ?? V.value)?.focus?.() : nt.value?.focus?.());
|
|
188
|
-
}), g(P, (e) => {
|
|
189
|
-
!e && B.value && H(!1);
|
|
190
|
-
});
|
|
191
|
-
let U = L("inspectorVisible", "inspector-visible"), ut = p(T.inspectorVisible === !0);
|
|
192
|
-
I("inspectorVisible", "inspector-visible") && !U && g(() => T.inspectorVisible, (e) => {
|
|
193
|
-
ut.value = e === !0;
|
|
194
|
-
});
|
|
195
|
-
let W = p(!1), G = a(() => (U ? T.inspectorVisible === !0 : ut.value) ? !(P.value && W.value) : !1), K = a(() => P.value && G.value);
|
|
196
|
-
function q(e) {
|
|
197
|
-
U ? W.value = !e : (ut.value = e, W.value = !1), D("update:inspectorVisible", e);
|
|
198
|
-
}
|
|
199
|
-
g(() => T.inspectorVisible, (e) => {
|
|
200
|
-
e && (W.value = !1);
|
|
201
|
-
}), g(P, (e) => {
|
|
202
|
-
e || (W.value = !1);
|
|
203
|
-
});
|
|
204
|
-
let dt = p(null), ft = p(null);
|
|
205
|
-
g(K, async (e) => {
|
|
206
|
-
if (e) ft.value = document.activeElement ?? null, await l(), dt.value?.focus?.();
|
|
207
|
-
else {
|
|
208
|
-
let e = ft.value;
|
|
209
|
-
ft.value = null, e?.isConnected && (await l(), e.focus?.());
|
|
210
|
-
}
|
|
211
|
-
}), g(K, (e) => {
|
|
212
|
-
e && w.value && B.value && H(!1);
|
|
213
|
-
});
|
|
214
|
-
function pt() {
|
|
215
|
-
q(!1);
|
|
216
|
-
}
|
|
217
|
-
f(ne, {
|
|
218
|
-
collapsed: P,
|
|
219
|
-
inspectorOverlay: K
|
|
220
|
-
});
|
|
221
|
-
let mt = a(() => K.value), J = p(null), ht = fe(), gt = a(() => T.mainId || `nb-shell-main-${ht}`);
|
|
222
|
-
function _t() {
|
|
223
|
-
J.value?.focus();
|
|
224
|
-
}
|
|
225
|
-
let vt = a(() => rt.value || T.topbar === "always" ? !0 : T.topbar === "never" ? !1 : v("topbar-left") || v("topbar-right") || y("topbar-left") > 0 || y("topbar-right") > 0), { layerProps: yt } = r(), { layerProps: bt } = r({
|
|
226
|
-
level: 0,
|
|
227
|
-
probe: !1,
|
|
228
|
-
provideContext: !1
|
|
229
|
-
}), xt = a(() => P.value && v("sidebar-header-action") ? "verbose" : T.sidebarVariant);
|
|
230
|
-
f("nb-shell-sidebar-variant", xt);
|
|
231
|
-
let St = a(() => v("sidebar-header-action") && !P.value);
|
|
232
|
-
f("nb-shell-sidebar-header-action-position", ue(T, "sidebarHeaderActionPosition"));
|
|
233
|
-
let Y = p(null), Ct = p(!1);
|
|
234
|
-
le(() => b("inspector", Y.value)), g(Y, (e) => b("inspector", e));
|
|
235
|
-
let wt = {
|
|
236
|
-
lg: .5,
|
|
237
|
-
xl: .75
|
|
238
|
-
}, Tt = {
|
|
239
|
-
xs: 288,
|
|
240
|
-
sm: 360,
|
|
241
|
-
md: 560
|
|
242
|
-
}, Et = a(() => Number.isFinite(O.value) ? O.value : 1280), X = a(() => Math.max(_, Et.value * .5));
|
|
243
|
-
function Z(e) {
|
|
244
|
-
return Math.round(Math.max(_, Math.min(e, X.value)));
|
|
245
|
-
}
|
|
246
|
-
let Dt = L("inspectorWidth", "inspector-width"), Ot = p(null), kt = a(() => Dt ? T.inspectorWidth ?? null : Ot.value);
|
|
247
|
-
function At(e) {
|
|
248
|
-
Dt || (Ot.value = e), D("update:inspectorWidth", e);
|
|
249
|
-
}
|
|
250
|
-
let jt = a(() => {
|
|
251
|
-
let e = kt.value;
|
|
252
|
-
if (!(!T.resizable || !G.value || e == null)) return { "--nb-shell-inspector-width": `${Z(e)}px` };
|
|
253
|
-
}), Q = a(() => {
|
|
254
|
-
let e = kt.value;
|
|
255
|
-
if (e != null) return Z(e);
|
|
256
|
-
if (T.inspectorExpanded) return Math.round(Et.value * .5);
|
|
257
|
-
let t = wt[T.inspectorSize], n = t == null ? Tt[T.inspectorSize] ?? _ : Et.value * t;
|
|
258
|
-
return Math.round(T.inspectorSize === "xl" ? n : Math.min(n, X.value));
|
|
259
|
-
}), Mt = a(() => Math.round(Math.max(X.value, Q.value))), Nt = a(() => Q.value);
|
|
260
|
-
function Pt() {
|
|
261
|
-
return Q.value;
|
|
262
|
-
}
|
|
263
|
-
function Ft(e) {
|
|
264
|
-
let t = Y.value;
|
|
265
|
-
if (!t) return;
|
|
266
|
-
let n = t.getBoundingClientRect().right;
|
|
267
|
-
At(Z(n - e.clientX));
|
|
268
|
-
}
|
|
269
|
-
function $() {
|
|
270
|
-
Ct.value = !1, window.removeEventListener("pointermove", Ft), window.removeEventListener("pointerup", $), window.removeEventListener("pointercancel", $);
|
|
271
|
-
}
|
|
272
|
-
function It(e) {
|
|
273
|
-
T.resizable && (e.preventDefault(), Ct.value = !0, window.addEventListener("pointermove", Ft), window.addEventListener("pointerup", $), window.addEventListener("pointercancel", $));
|
|
274
|
-
}
|
|
275
|
-
function Lt() {
|
|
276
|
-
At(null);
|
|
277
|
-
}
|
|
278
|
-
function Rt(e) {
|
|
279
|
-
if (!T.resizable) return;
|
|
280
|
-
let t = e.shiftKey ? We : Ue, n;
|
|
281
|
-
switch (e.key) {
|
|
282
|
-
case "ArrowLeft":
|
|
283
|
-
n = Pt() + t;
|
|
284
|
-
break;
|
|
285
|
-
case "ArrowRight":
|
|
286
|
-
n = Pt() - t;
|
|
287
|
-
break;
|
|
288
|
-
case "Home":
|
|
289
|
-
n = _;
|
|
290
|
-
break;
|
|
291
|
-
case "End":
|
|
292
|
-
n = X.value;
|
|
293
|
-
break;
|
|
294
|
-
case "Enter":
|
|
295
|
-
case " ":
|
|
296
|
-
n = null;
|
|
297
|
-
break;
|
|
298
|
-
default: return;
|
|
299
|
-
}
|
|
300
|
-
e.preventDefault(), At(n == null ? null : Z(n));
|
|
301
|
-
}
|
|
302
|
-
return le(() => {
|
|
303
|
-
typeof window > "u" || (O.value = window.innerWidth, window.addEventListener("resize", Ye, { passive: !0 }), T.resizable && Qe(), j && (M.value = j.matches, typeof j.addEventListener == "function" ? j.addEventListener("change", N) : j.addListener?.(N)));
|
|
304
|
-
}), g(() => T.collapseAt, () => {
|
|
305
|
-
typeof window < "u" && (O.value = window.innerWidth);
|
|
306
|
-
}), g(() => T.resizable, (e) => e ? Qe() : Ze()), ce(() => {
|
|
307
|
-
$(), Ze(), typeof window < "u" && window.removeEventListener("resize", Ye), j && (typeof j.removeEventListener == "function" ? j.removeEventListener("change", N) : j.removeListener?.(N));
|
|
308
|
-
}), t({
|
|
309
|
-
mainEl: J,
|
|
310
|
-
sidebarEl: V,
|
|
311
|
-
inspectorEl: Y,
|
|
312
|
-
focusMain: () => J.value?.focus(),
|
|
313
|
-
setSidebarOpen: H,
|
|
314
|
-
setInspectorVisible: q,
|
|
315
|
-
collapsed: P,
|
|
316
|
-
inspectorOverlay: K,
|
|
317
|
-
setContextbarOpen: lt
|
|
318
|
-
}), (t, n) => (d(), s("div", oe({ class: "nb-shell" }, de(yt), {
|
|
319
|
-
class: [
|
|
320
|
-
{ "nb-shell--no-sidebar": !w.value },
|
|
321
|
-
w.value ? `nb-shell--sidebar-${xt.value}` : null,
|
|
322
|
-
{
|
|
323
|
-
"nb-shell--collapsed": P.value,
|
|
324
|
-
"nb-shell--drawer-open": P.value && B.value
|
|
325
|
-
}
|
|
326
|
-
],
|
|
327
|
-
onKeydown: _e(at, ["esc"])
|
|
328
|
-
}), [
|
|
329
|
-
e.skipToContent ? (d(), s("a", {
|
|
330
|
-
key: 0,
|
|
331
|
-
class: "nb-shell__skip-link",
|
|
332
|
-
href: `#${gt.value}`,
|
|
333
|
-
onClick: _t
|
|
334
|
-
}, h(e.skipToContentLabel), 9, ye)) : o("", !0),
|
|
335
|
-
S("outer-menu") ? (d(), s("div", {
|
|
336
|
-
key: 1,
|
|
337
|
-
ref: x("outer-menu"),
|
|
338
|
-
class: u(["nb-shell__outer-menu", C("outer-menu")])
|
|
339
|
-
}, [m(t.$slots, "outer-menu", {}, void 0, !0)], 2)) : o("", !0),
|
|
340
|
-
c("div", be, [
|
|
341
|
-
w.value ? (d(), s("nav", {
|
|
342
|
-
key: 0,
|
|
343
|
-
id: tt.value,
|
|
344
|
-
ref_key: "sidebarRef",
|
|
345
|
-
ref: V,
|
|
346
|
-
class: "nb-shell__sidebar",
|
|
347
|
-
"aria-label": e.sidebarLabel,
|
|
348
|
-
tabindex: P.value ? -1 : void 0,
|
|
349
|
-
inert: it.value || void 0,
|
|
350
|
-
"aria-hidden": it.value || void 0,
|
|
351
|
-
onClickCapture: st
|
|
352
|
-
}, [
|
|
353
|
-
St.value ? (d(), s("div", {
|
|
354
|
-
key: 0,
|
|
355
|
-
class: u(["nb-shell__sidebar-header", [`nb-shell__sidebar-header--${e.sidebarHeaderActionPosition}`, `nb-shell__sidebar-header--compact-${e.sidebarHeaderActionCompact}`]])
|
|
356
|
-
}, [c("div", Se, [m(t.$slots, "sidebar-logo", {}, void 0, !0)]), c("div", Ce, [m(t.$slots, "sidebar-header-action", {}, void 0, !0)])], 2)) : (d(), s("div", we, [m(t.$slots, "sidebar-logo", {}, void 0, !0)])),
|
|
357
|
-
c("div", Te, [m(t.$slots, "sidebar-nav", {}, void 0, !0)]),
|
|
358
|
-
n[4] ||= c("div", { class: "nb-shell__sidebar-spacer" }, null, -1),
|
|
359
|
-
c("div", Ee, [m(t.$slots, "sidebar-bottom", {}, void 0, !0)])
|
|
360
|
-
], 40, xe)) : o("", !0),
|
|
361
|
-
w.value && P.value && B.value ? (d(), s("div", {
|
|
362
|
-
key: 1,
|
|
363
|
-
class: "nb-shell__scrim",
|
|
364
|
-
onClick: n[0] ||= (e) => H(!1)
|
|
365
|
-
})) : o("", !0),
|
|
366
|
-
c("div", De, [
|
|
367
|
-
S("inner-menu") ? (d(), s("div", {
|
|
368
|
-
key: 0,
|
|
369
|
-
ref: x("inner-menu"),
|
|
370
|
-
class: u(["nb-shell__inner-menu", C("inner-menu")])
|
|
371
|
-
}, [m(t.$slots, "inner-menu", {}, void 0, !0)], 2)) : o("", !0),
|
|
372
|
-
S("notification") ? (d(), s("div", {
|
|
373
|
-
key: 1,
|
|
374
|
-
ref: x("notification"),
|
|
375
|
-
class: u(["nb-shell__notification", C("notification")])
|
|
376
|
-
}, [m(t.$slots, "notification", {}, void 0, !0)], 2)) : o("", !0),
|
|
377
|
-
v("menubar") ? (d(), s("div", Oe, [m(t.$slots, "menubar", {}, void 0, !0)])) : o("", !0),
|
|
378
|
-
vt.value ? (d(), s("div", ke, [
|
|
379
|
-
rt.value ? (d(), s("button", {
|
|
380
|
-
key: 0,
|
|
381
|
-
ref_key: "navToggleRef",
|
|
382
|
-
ref: nt,
|
|
383
|
-
type: "button",
|
|
384
|
-
class: "nb-shell__nav-toggle",
|
|
385
|
-
"aria-label": e.navToggleLabel,
|
|
386
|
-
"aria-expanded": B.value,
|
|
387
|
-
"aria-controls": tt.value,
|
|
388
|
-
onClick: n[1] ||= (e) => H(!B.value)
|
|
389
|
-
}, [...n[5] ||= [c("span", {
|
|
390
|
-
class: "nb-shell__nav-toggle-glyph",
|
|
391
|
-
"aria-hidden": "true"
|
|
392
|
-
}, [
|
|
393
|
-
c("span"),
|
|
394
|
-
c("span"),
|
|
395
|
-
c("span")
|
|
396
|
-
], -1)]], 8, Ae)) : o("", !0),
|
|
397
|
-
c("div", {
|
|
398
|
-
ref: x("topbar-left"),
|
|
399
|
-
class: "nb-shell__topbar-left"
|
|
400
|
-
}, [m(t.$slots, "topbar-left", {}, void 0, !0)], 512),
|
|
401
|
-
c("div", {
|
|
402
|
-
ref: x("topbar-right"),
|
|
403
|
-
class: "nb-shell__topbar-right"
|
|
404
|
-
}, [m(t.$slots, "topbar-right", {}, void 0, !0)], 512)
|
|
405
|
-
])) : o("", !0),
|
|
406
|
-
c("div", je, [c("div", {
|
|
407
|
-
class: "nb-shell__body",
|
|
408
|
-
inert: mt.value || void 0,
|
|
409
|
-
"aria-hidden": mt.value || void 0
|
|
410
|
-
}, [
|
|
411
|
-
S("fixedbar") ? (d(), s("div", {
|
|
412
|
-
key: 0,
|
|
413
|
-
ref: x("fixedbar"),
|
|
414
|
-
class: "nb-shell__fixedbar"
|
|
415
|
-
}, [m(t.$slots, "fixedbar", {}, void 0, !0)], 512)) : o("", !0),
|
|
416
|
-
P.value && S("contextbar") ? (d(), s("button", {
|
|
417
|
-
key: 1,
|
|
418
|
-
type: "button",
|
|
419
|
-
class: "nb-shell__contextbar-toggle",
|
|
420
|
-
"aria-expanded": E.value,
|
|
421
|
-
onClick: n[2] ||= (e) => E.value = !E.value
|
|
422
|
-
}, [c("span", null, h(e.contextbarLabel), 1), c("span", Pe, h(E.value ? "▾" : "▸"), 1)], 8, Ne)) : o("", !0),
|
|
423
|
-
c("div", Fe, [S("contextbar") ? ge((d(), s("aside", {
|
|
424
|
-
key: 0,
|
|
425
|
-
ref: x("contextbar"),
|
|
426
|
-
class: u(["nb-shell__contextbar", C("contextbar")]),
|
|
427
|
-
"aria-label": e.contextbarLabel,
|
|
428
|
-
onClickCapture: ct
|
|
429
|
-
}, [m(t.$slots, "contextbar", {}, void 0, !0)], 42, Ie)), [[me, !P.value || E.value]]) : o("", !0), c("main", oe({
|
|
430
|
-
id: gt.value,
|
|
431
|
-
ref_key: "mainRef",
|
|
432
|
-
ref: J,
|
|
433
|
-
tabindex: "-1",
|
|
434
|
-
class: ["nb-shell__main", { "nb-shell__main--no-padding": !e.mainPadding }]
|
|
435
|
-
}, de(bt)), [re(ve, { level: 1 }, {
|
|
436
|
-
default: he(() => [m(t.$slots, "default", {}, void 0, !0)]),
|
|
437
|
-
_: 3
|
|
438
|
-
})], 16, Le)]),
|
|
439
|
-
S("bottom") ? (d(), s("div", {
|
|
440
|
-
key: 2,
|
|
441
|
-
ref: x("bottom"),
|
|
442
|
-
class: "nb-shell__bottom"
|
|
443
|
-
}, [m(t.$slots, "bottom", {}, void 0, !0)], 512)) : o("", !0)
|
|
444
|
-
], 8, Me), c("aside", {
|
|
445
|
-
ref_key: "inspectorRef",
|
|
446
|
-
ref: Y,
|
|
447
|
-
class: u(["nb-shell__inspector", {
|
|
448
|
-
"nb-shell__inspector--visible": G.value,
|
|
449
|
-
"nb-shell__inspector--expanded": G.value && e.inspectorExpanded,
|
|
450
|
-
[`nb-shell__inspector--${e.inspectorSize}`]: G.value,
|
|
451
|
-
"nb-shell__inspector--resizing": Ct.value,
|
|
452
|
-
"nb-shell__inspector--overlay": K.value
|
|
453
|
-
}]),
|
|
454
|
-
"aria-label": e.inspectorLabel,
|
|
455
|
-
inert: !G.value || void 0,
|
|
456
|
-
"aria-hidden": !G.value || void 0,
|
|
457
|
-
style: se(jt.value)
|
|
458
|
-
}, [
|
|
459
|
-
K.value ? (d(), s("button", {
|
|
460
|
-
key: 0,
|
|
461
|
-
ref_key: "inspectorDismissRef",
|
|
462
|
-
ref: dt,
|
|
463
|
-
type: "button",
|
|
464
|
-
class: "nb-shell__inspector-dismiss",
|
|
465
|
-
"aria-label": e.inspectorCloseLabel,
|
|
466
|
-
onClick: n[3] ||= (e) => q(!1)
|
|
467
|
-
}, [...n[6] ||= [c("span", {
|
|
468
|
-
class: "nb-shell__inspector-dismiss-glyph",
|
|
469
|
-
"aria-hidden": "true"
|
|
470
|
-
}, "×", -1)]], 8, ze)) : o("", !0),
|
|
471
|
-
e.resizable && G.value && !P.value ? (d(), s("div", {
|
|
472
|
-
key: 1,
|
|
473
|
-
class: "nb-shell__inspector-resize",
|
|
474
|
-
role: "separator",
|
|
475
|
-
tabindex: "0",
|
|
476
|
-
"aria-orientation": "vertical",
|
|
477
|
-
"aria-label": `Resize ${e.inspectorLabel}`,
|
|
478
|
-
"aria-valuenow": Nt.value,
|
|
479
|
-
"aria-valuemin": _,
|
|
480
|
-
"aria-valuemax": Mt.value,
|
|
481
|
-
title: "Drag or use the arrow keys to resize, Enter or double-click to reset",
|
|
482
|
-
onPointerdown: It,
|
|
483
|
-
onDblclick: Lt,
|
|
484
|
-
onKeydown: Rt
|
|
485
|
-
}, null, 40, Be)) : o("", !0),
|
|
486
|
-
m(t.$slots, "inspector", {
|
|
487
|
-
overlay: K.value,
|
|
488
|
-
close: pt
|
|
489
|
-
}, void 0, !0)
|
|
490
|
-
], 14, Re)])
|
|
491
|
-
])
|
|
492
|
-
])
|
|
493
|
-
], 16));
|
|
494
|
-
}
|
|
495
|
-
}), [["__scopeId", "data-v-a375a384"]]);
|
|
496
|
-
//#endregion
|
|
497
|
-
export { v as t };
|
package/dist/Shell-CixU-_Lh.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
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=[`aria-expanded`],ge={class:`nb-shell__contextbar-toggle-glyph`,"aria-hidden":`true`},_e={class:`nb-shell__main-row`},ve=[`aria-label`],ye=[`id`],be=[`aria-label`,`inert`,`aria-hidden`],xe=[`aria-label`],Se=[`aria-label`,`aria-valuenow`,`aria-valuemax`],Ce=`(pointer: coarse) and (hover: none) and (max-height: 500px)`,we=`a[href], [role="menuitem"]`,o=288,Te=16,Ee=64,s=(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`},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:s,emit:De}){let Oe=(0,a.useSlots)();function c(e){return n.hasSlotContent(Oe,e)}let{registry:ke,count:l,sharedCount:Ae,setElement:u}=r.createShellSlotRegistry();(0,a.provide)(r.NB_SHELL_SLOT_KEY,ke);let je=new Map;function d(e){let t=je.get(e);return t||(t=t=>u(e,t??null),je.set(e,t)),t}function f(e){return c(e)||l(e)>0}function p(e){return Ae(e)>0?`nb-shell__region--ordered`:null}let m=(0,a.computed)(()=>{for(let e of[`sidebar-logo`,`sidebar-nav`,`sidebar-bottom`])if(c(e))return!0;return!1}),h=e,g=(0,a.ref)(!1),_=De,Me={md:672,lg:1056},v=(0,a.ref)(typeof window<`u`?window.innerWidth:1/0);function y(e){let t=Me[h.collapseAt];return t!=null&&e<t}let b=0;function Ne(){let e=window.innerWidth;y(e)!==y(v.value)&&(v.value=e)}function Pe(){b||=window.requestAnimationFrame(()=>{b=0,v.value=window.innerWidth})}function x(){typeof window>`u`||(window.removeEventListener(`resize`,Pe),b&&=(window.cancelAnimationFrame(b),0))}function Fe(){typeof window>`u`||(v.value=window.innerWidth,window.addEventListener(`resize`,Pe,{passive:!0}))}let S=typeof window<`u`&&typeof window.matchMedia==`function`?window.matchMedia(Ce):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 Ie(e,t){if(e in E)return E[e];if(t in E)return E[t]}function O(e,t){return D(e,t)&&Ie(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),Le=(0,a.useId)(),Re=(0,a.computed)(()=>`nb-shell-sidebar-${Le}`),M=(0,a.ref)(null),N=(0,a.ref)(null),P=(0,a.computed)(()=>m.value&&T.value),F=(0,a.computed)(()=>m.value&&T.value&&!j.value);function I(e){k||(A.value=e),_(`update:sidebarOpen`,e)}function ze(e){if(!e.defaultPrevented){if(m.value&&T.value&&j.value){I(!1);return}H.value&&U(!1)}}function L(e,t){let n=e.target,r=n?.closest?.(we);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 Be(e){!T.value||!j.value||L(e,N.value)&&I(!1)}function Ve(e){!T.value||!g.value||L(e,e.currentTarget)&&(g.value=!1)}function He(e){g.value=e}(0,a.watch)(j,async e=>{T.value&&(await(0,a.nextTick)(),e?(N.value?.querySelector(`a[href], button:not([disabled]), [tabindex]:not([tabindex="-1"])`)??N.value)?.focus?.():M.value?.focus?.())}),(0,a.watch)(T,e=>{!e&&j.value&&I(!1)});let R=O(`inspectorVisible`,`inspector-visible`),z=(0,a.ref)(h.inspectorVisible===!0);D(`inspectorVisible`,`inspector-visible`)&&!R&&(0,a.watch)(()=>h.inspectorVisible,e=>{z.value=e===!0});let B=(0,a.ref)(!1),V=(0,a.computed)(()=>(R?h.inspectorVisible===!0:z.value)?!(T.value&&B.value):!1),H=(0,a.computed)(()=>T.value&&V.value);function U(e){R?B.value=!e:(z.value=e,B.value=!1),_(`update:inspectorVisible`,e)}(0,a.watch)(()=>h.inspectorVisible,e=>{e&&(B.value=!1)}),(0,a.watch)(T,e=>{e||(B.value=!1)});let Ue=(0,a.ref)(null),W=(0,a.ref)(null);(0,a.watch)(H,async e=>{if(e)W.value=document.activeElement??null,await(0,a.nextTick)(),Ue.value?.focus?.();else{let e=W.value;W.value=null,e?.isConnected&&(await(0,a.nextTick)(),e.focus?.())}}),(0,a.watch)(H,e=>{e&&m.value&&j.value&&I(!1)});function We(){U(!1)}(0,a.provide)(i.NB_SHELL_LAYOUT_KEY,{collapsed:T,inspectorOverlay:H});let Ge=(0,a.computed)(()=>H.value),G=(0,a.ref)(null),Ke=(0,a.useId)(),qe=(0,a.computed)(()=>h.mainId||`nb-shell-main-${Ke}`);function Je(){G.value?.focus()}let Ye=(0,a.computed)(()=>P.value||h.topbar===`always`?!0:h.topbar===`never`?!1:c(`topbar-left`)||c(`topbar-right`)||l(`topbar-left`)>0||l(`topbar-right`)>0),{layerProps:Xe}=t.useSurfaceLayer(),{layerProps:Ze}=t.useSurfaceLayer({level:0,probe:!1,provideContext:!1}),Qe=(0,a.computed)(()=>T.value&&c(`sidebar-header-action`)?`verbose`:h.sidebarVariant);(0,a.provide)(`nb-shell-sidebar-variant`,Qe);let $e=(0,a.computed)(()=>c(`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)(()=>u(`inspector`,K.value)),(0,a.watch)(K,e=>u(`inspector`,e));let et={lg:.5,xl:.75},tt={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 nt=O(`inspectorWidth`,`inspector-width`),rt=(0,a.ref)(null),it=(0,a.computed)(()=>nt?h.inspectorWidth??null:rt.value);function Z(e){nt||(rt.value=e),_(`update:inspectorWidth`,e)}let at=(0,a.computed)(()=>{let e=it.value;if(!(!h.resizable||!V.value||e==null))return{"--nb-shell-inspector-width":`${X(e)}px`}}),Q=(0,a.computed)(()=>{let e=it.value;if(e!=null)return X(e);if(h.inspectorExpanded)return Math.round(J.value*.5);let t=et[h.inspectorSize],n=t==null?tt[h.inspectorSize]??o:J.value*t;return Math.round(h.inspectorSize===`xl`?n:Math.min(n,Y.value))}),ot=(0,a.computed)(()=>Math.round(Math.max(Y.value,Q.value))),st=(0,a.computed)(()=>Q.value);function ct(){return Q.value}function lt(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`,lt),window.removeEventListener(`pointerup`,$),window.removeEventListener(`pointercancel`,$)}function ut(e){h.resizable&&(e.preventDefault(),q.value=!0,window.addEventListener(`pointermove`,lt),window.addEventListener(`pointerup`,$),window.addEventListener(`pointercancel`,$))}function dt(){Z(null)}function ft(e){if(!h.resizable)return;let t=e.shiftKey?Ee:Te,n;switch(e.key){case`ArrowLeft`:n=ct()+t;break;case`ArrowRight`:n=ct()-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`,Ne,{passive:!0}),h.resizable&&Fe(),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?Fe():x()),(0,a.onBeforeUnmount)(()=>{$(),x(),typeof window<`u`&&window.removeEventListener(`resize`,Ne),S&&(typeof S.removeEventListener==`function`?S.removeEventListener(`change`,w):S.removeListener?.(w))}),s({mainEl:G,sidebarEl:N,inspectorEl:K,focusMain:()=>G.value?.focus(),setSidebarOpen:I,setInspectorVisible:U,collapsed:T,inspectorOverlay:H,setContextbarOpen:He}),(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,(0,a.mergeProps)({class:`nb-shell`},(0,a.unref)(Xe),{class:[{"nb-shell--no-sidebar":!m.value},m.value?`nb-shell--sidebar-${Qe.value}`:null,{"nb-shell--collapsed":T.value,"nb-shell--drawer-open":T.value&&j.value}],onKeydown:(0,a.withKeys)(ze,[`esc`])}),[e.skipToContent?((0,a.openBlock)(),(0,a.createElementBlock)(`a`,{key:0,class:`nb-shell__skip-link`,href:`#${qe.value}`,onClick:Je},(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:Re.value,ref_key:`sidebarRef`,ref:N,class:`nb-shell__sidebar`,"aria-label":e.sidebarLabel,tabindex:T.value?-1:void 0,inert:F.value||void 0,"aria-hidden":F.value||void 0,onClickCapture:Be},[$e.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),m.value&&T.value&&j.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:1,class:`nb-shell__scrim`,onClick:n[0]||=e=>I(!1)})):(0,a.createCommentVNode)(``,!0),(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),c(`menubar`)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,ue,[(0,a.renderSlot)(t.$slots,`menubar`,{},void 0,!0)])):(0,a.createCommentVNode)(``,!0),Ye.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,de,[P.value?((0,a.openBlock)(),(0,a.createElementBlock)(`button`,{key:0,ref_key:`navToggleRef`,ref:M,type:`button`,class:`nb-shell__nav-toggle`,"aria-label":e.navToggleLabel,"aria-expanded":j.value,"aria-controls":Re.value,onClick:n[1]||=e=>I(!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:Ge.value||void 0,"aria-hidden":Ge.value||void 0},[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`,ge,(0,a.toDisplayString)(g.value?`▾`:`▸`),1)],8,he)):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`div`,_e,[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:Ve},[(0,a.renderSlot)(t.$slots,`contextbar`,{},void 0,!0)],42,ve)),[[a.vShow,!T.value||g.value]]):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`main`,(0,a.mergeProps)({id:qe.value,ref_key:`mainRef`,ref:G,tabindex:`-1`,class:[`nb-shell__main`,{"nb-shell__main--no-padding":!e.mainPadding}]},(0,a.unref)(Ze)),[(0,a.createVNode)(ee,{level:1},{default:(0,a.withCtx)(()=>[(0,a.renderSlot)(t.$slots,`default`,{},void 0,!0)]),_:3})],16,ye)]),f(`bottom`)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:2,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":V.value,"nb-shell__inspector--expanded":V.value&&e.inspectorExpanded,[`nb-shell__inspector--${e.inspectorSize}`]:V.value,"nb-shell__inspector--resizing":q.value,"nb-shell__inspector--overlay":H.value}]),"aria-label":e.inspectorLabel,inert:!V.value||void 0,"aria-hidden":!V.value||void 0,style:(0,a.normalizeStyle)(at.value)},[H.value?((0,a.openBlock)(),(0,a.createElementBlock)(`button`,{key:0,ref_key:`inspectorDismissRef`,ref:Ue,type:`button`,class:`nb-shell__inspector-dismiss`,"aria-label":e.inspectorCloseLabel,onClick:n[3]||=e=>U(!1)},[...n[6]||=[(0,a.createElementVNode)(`span`,{class:`nb-shell__inspector-dismiss-glyph`,"aria-hidden":`true`},`×`,-1)]],8,xe)):(0,a.createCommentVNode)(``,!0),e.resizable&&V.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":st.value,"aria-valuemin":o,"aria-valuemax":ot.value,title:`Drag or use the arrow keys to resize, Enter or double-click to reset`,onPointerdown:ut,onDblclick:dt,onKeydown:ft},null,40,Se)):(0,a.createCommentVNode)(``,!0),(0,a.renderSlot)(t.$slots,`inspector`,{overlay:H.value,close:We},void 0,!0)],14,be)])])])],16))}}),De=e.t(s,[[`__scopeId`,`data-v-a375a384`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return De}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Icon-C8R_r_In.cjs`);let n=require(`vue`),r=require(`@nubisco/ui/icons/caret-down`);var i={class:`nb-sidebar-menu-group__label`},a={class:`nb-sidebar-menu-group__items`,role:`group`},o=[`aria-label`],s=[`aria-label`],c=(0,n.defineComponent)({__name:`SidebarMenuGroup`,props:{label:{},collapsible:{type:Boolean,default:!1},defaultCollapsed:{type:Boolean,default:!1}},setup(e){let c=e,l=(0,n.inject)(`nb-shell-sidebar-variant`,(0,n.ref)(`verbose`)),u=(0,n.computed)(()=>l.value),d=(0,n.ref)(c.collapsible&&c.defaultCollapsed);return(c,l)=>((0,n.openBlock)(),(0,n.createElementBlock)(`li`,{class:(0,n.normalizeClass)([`nb-sidebar-menu-group`,[`nb-sidebar-menu-group--${u.value}`]]),role:`none`},[u.value===`verbose`?((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:0},[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.collapsible?`button`:`div`),{class:(0,n.normalizeClass)([`nb-sidebar-menu-group__header`,{"nb-sidebar-menu-group__header--interactive":e.collapsible}]),type:e.collapsible?`button`:void 0,"aria-expanded":e.collapsible?!d.value:void 0,onClick:l[0]||=t=>e.collapsible?d.value=!d.value:void 0},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`span`,i,(0,n.toDisplayString)(e.label),1),e.collapsible?((0,n.openBlock)(),(0,n.createBlock)(t.t,{key:0,class:(0,n.normalizeClass)([`nb-sidebar-menu-group__caret`,{"nb-sidebar-menu-group__caret--collapsed":d.value}]),name:(0,n.unref)(r.regular),size:12},null,8,[`class`,`name`])):(0,n.createCommentVNode)(``,!0)]),_:1},8,[`class`,`type`,`aria-expanded`])),(0,n.withDirectives)((0,n.createElementVNode)(`ul`,a,[(0,n.renderSlot)(c.$slots,`default`,{},void 0,!0)],512),[[n.vShow,!d.value]])],64)):((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,{key:1},[(0,n.createElementVNode)(`hr`,{class:`nb-sidebar-menu-group__divider`,"aria-label":e.label},null,8,o),(0,n.createElementVNode)(`ul`,{class:`nb-sidebar-menu-group__items`,role:`group`,"aria-label":e.label},[(0,n.renderSlot)(c.$slots,`default`,{},void 0,!0)],8,s)],64))],2))}}),l=e.t(c,[[`__scopeId`,`data-v-b549092e`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return l}});
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { t } from "./Icon-rREAqsu0.js";
|
|
3
|
-
import { Fragment as n, computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, inject as l, normalizeClass as u, openBlock as d, ref as f, renderSlot as p, resolveDynamicComponent as m, toDisplayString as h, unref as g, vShow as _, withCtx as v, withDirectives as y } from "vue";
|
|
4
|
-
import { regular as b } from "@nubisco/ui/icons/caret-down";
|
|
5
|
-
//#region src/components/SidebarMenuGroup.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var x = { class: "nb-sidebar-menu-group__label" }, S = {
|
|
7
|
-
class: "nb-sidebar-menu-group__items",
|
|
8
|
-
role: "group"
|
|
9
|
-
}, C = ["aria-label"], w = ["aria-label"], T = /* @__PURE__ */ e(/* @__PURE__ */ c({
|
|
10
|
-
__name: "SidebarMenuGroup",
|
|
11
|
-
props: {
|
|
12
|
-
label: {},
|
|
13
|
-
collapsible: {
|
|
14
|
-
type: Boolean,
|
|
15
|
-
default: !1
|
|
16
|
-
},
|
|
17
|
-
defaultCollapsed: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: !1
|
|
20
|
-
}
|
|
21
|
-
},
|
|
22
|
-
setup(e) {
|
|
23
|
-
let c = e, T = l("nb-shell-sidebar-variant", f("verbose")), E = r(() => T.value), D = f(c.collapsible && c.defaultCollapsed);
|
|
24
|
-
return (r, c) => (d(), o("li", {
|
|
25
|
-
class: u(["nb-sidebar-menu-group", [`nb-sidebar-menu-group--${E.value}`]]),
|
|
26
|
-
role: "none"
|
|
27
|
-
}, [E.value === "verbose" ? (d(), o(n, { key: 0 }, [(d(), i(m(e.collapsible ? "button" : "div"), {
|
|
28
|
-
class: u(["nb-sidebar-menu-group__header", { "nb-sidebar-menu-group__header--interactive": e.collapsible }]),
|
|
29
|
-
type: e.collapsible ? "button" : void 0,
|
|
30
|
-
"aria-expanded": e.collapsible ? !D.value : void 0,
|
|
31
|
-
onClick: c[0] ||= (t) => e.collapsible ? D.value = !D.value : void 0
|
|
32
|
-
}, {
|
|
33
|
-
default: v(() => [s("span", x, h(e.label), 1), e.collapsible ? (d(), i(t, {
|
|
34
|
-
key: 0,
|
|
35
|
-
class: u(["nb-sidebar-menu-group__caret", { "nb-sidebar-menu-group__caret--collapsed": D.value }]),
|
|
36
|
-
name: g(b),
|
|
37
|
-
size: 12
|
|
38
|
-
}, null, 8, ["class", "name"])) : a("", !0)]),
|
|
39
|
-
_: 1
|
|
40
|
-
}, 8, [
|
|
41
|
-
"class",
|
|
42
|
-
"type",
|
|
43
|
-
"aria-expanded"
|
|
44
|
-
])), y(s("ul", S, [p(r.$slots, "default", {}, void 0, !0)], 512), [[_, !D.value]])], 64)) : (d(), o(n, { key: 1 }, [s("hr", {
|
|
45
|
-
class: "nb-sidebar-menu-group__divider",
|
|
46
|
-
"aria-label": e.label
|
|
47
|
-
}, null, 8, C), s("ul", {
|
|
48
|
-
class: "nb-sidebar-menu-group__items",
|
|
49
|
-
role: "group",
|
|
50
|
-
"aria-label": e.label
|
|
51
|
-
}, [p(r.$slots, "default", {}, void 0, !0)], 8, w)], 64))], 2));
|
|
52
|
-
}
|
|
53
|
-
}), [["__scopeId", "data-v-b549092e"]]);
|
|
54
|
-
//#endregion
|
|
55
|
-
export { T as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Icon-C8R_r_In.cjs`),n=require(`./composables/useRouterLink.composable.cjs`),r=require(`./utils/slotContent.helper.cjs`);let i=require(`vue`),a=require(`@nubisco/ui/icons/caret-right`);var o=(0,i.defineComponent)({__name:`SidebarVariantScope`,props:{variant:{}},setup(e){return(0,i.provide)(`nb-shell-sidebar-variant`,(0,i.toRef)(e,`variant`)),(e,t)=>(0,i.renderSlot)(e.$slots,`default`)}}),s={class:`nb-sidebar-menu-item__label`},c=[`title`],l={key:0,class:`nb-sidebar-menu-item__children`,role:`group`},u={class:`nb-sidebar-menu-item__flyout-header`},d={class:`nb-sidebar-menu-item__flyout-label`},f=[`aria-label`],p=(0,i.defineComponent)({__name:`SidebarMenuItem`,props:{label:{},icon:{default:void 0},to:{default:void 0},href:{default:void 0},active:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},defaultExpanded:{type:Boolean,default:!1},badge:{default:void 0},badgeVariant:{default:`neutral`}},emits:[`click`],setup(e,{emit:p}){let m=e,h=p,g=(0,i.inject)(`nb-shell-sidebar-variant`,(0,i.ref)(`verbose`)),_=(0,i.computed)(()=>g.value),v=(0,i.useSlots)(),y=(0,i.computed)(()=>{let e=m.badge;if(e===void 0)return;let t=typeof e==`number`?e:Number(String(e).trim());if(!(!Number.isFinite(t)||String(e).trim()===``))return t>99?`99+`:String(t)}),b=(0,i.computed)(()=>m.badge===void 0?m.label:`${m.label} (${m.badge})`),x=(0,i.computed)(()=>{let e=v.default?.();return e?r.hasRenderableContent(e):!1}),S=(0,i.ref)(m.defaultExpanded||m.active),C=n.useRouterLink(),w=(0,i.computed)(()=>{if(typeof m.to==`string`)return m.to;if(m.href)return m.href}),T=(0,i.computed)(()=>x.value),E=(0,i.computed)(()=>m.to!=null&&!T.value&&!!C.value),D=(0,i.computed)(()=>T.value?`button`:E.value?C.value:w.value?`a`:`button`),O=(0,i.computed)(()=>D.value===`a`?{href:w.value}:{});function k(e){if(m.disabled){e.preventDefault();return}if(T.value&&_.value===`verbose`){S.value=!S.value;return}T.value&&_.value===`compact`&&K(e),h(`click`,e)}let A=(0,i.ref)(null),j=(0,i.ref)(null),M=(0,i.ref)(!1),N=(0,i.ref)(!1),P=(0,i.ref)({}),F=null;function I(){if(_.value!==`compact`)return;F&&=(clearTimeout(F),null);let e=H();if(!e)return;let t=e.getBoundingClientRect();P.value={top:`${t.top}px`,left:`${t.right+8}px`},M.value=!0}function L(){N.value||(F&&clearTimeout(F),F=setTimeout(()=>{M.value=!1,F=null},120))}function R(){I()}function z(){L()}function B(){F&&=(clearTimeout(F),null)}function V(){L()}function H(){let e=A.value;return e?e instanceof HTMLElement?e:e.$el??null:null}function U(e=!1){F&&=(clearTimeout(F),null),M.value=!1,N.value=!1,e&&H()?.focus()}function W(){let e=j.value;return e?Array.from(e.querySelectorAll(`[role="menuitem"]`)).filter(e=>!e.hasAttribute(`disabled`)&&e.getAttribute(`aria-disabled`)!==`true`&&!e.closest(`[style*="display: none"]`)):[]}async function G(e){I(),N.value=!0,e&&(await(0,i.nextTick)(),W()[0]?.focus())}function K(e){if(M.value&&N.value){U();return}G(e.detail===0)}function q(e){!T.value||_.value!==`compact`||(e.key===`ArrowRight`||e.key===`ArrowDown`?(e.preventDefault(),G(!0)):e.key===`Escape`&&M.value&&(e.preventDefault(),U(!0)))}function J(e){let t=W(),n=t.indexOf(document.activeElement);switch(e.key){case`Escape`:case`ArrowLeft`:e.preventDefault(),e.stopPropagation(),U(!0);return;case`ArrowDown`:e.preventDefault(),t[(n+1)%t.length]?.focus();return;case`ArrowUp`:e.preventDefault(),t[(n-1+t.length)%t.length]?.focus();return;case`Home`:e.preventDefault(),t[0]?.focus();return;case`End`:e.preventDefault(),t[t.length-1]?.focus();return;case`Tab`:U(!0);return}}function Y(e){let t=e.relatedTarget;t&&(j.value?.contains(t)||H()?.contains(t)||U())}function X(e){let t=e.target?.closest(`[role="menuitem"]`);t&&!t.hasAttribute(`aria-expanded`)&&U()}function Z(e){let t=e.target;t&&(j.value?.contains(t)||H()?.contains(t)||U())}return(0,i.watch)(M,e=>{typeof document>`u`||(e?document.addEventListener(`pointerdown`,Z,!0):document.removeEventListener(`pointerdown`,Z,!0))}),(0,i.watch)(_,()=>U()),(0,i.onBeforeUnmount)(()=>{F&&clearTimeout(F),typeof document<`u`&&document.removeEventListener(`pointerdown`,Z,!0)}),(n,r)=>((0,i.openBlock)(),(0,i.createElementBlock)(`li`,{class:(0,i.normalizeClass)([`nb-sidebar-menu-item`,[`nb-sidebar-menu-item--${_.value}`]]),role:`none`,onMouseenter:R,onMouseleave:z},[((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(D.value),(0,i.mergeProps)({ref_key:`rowRef`,ref:A,class:[`nb-sidebar-menu-item__row`,{"nb-sidebar-menu-item__row--active":e.active,"nb-sidebar-menu-item__row--disabled":e.disabled,"nb-sidebar-menu-item__row--expandable":x.value&&_.value===`verbose`,"nb-sidebar-menu-item__row--compact":_.value===`compact`}],type:D.value===`button`?`button`:void 0,to:E.value?e.to:void 0},O.value,{disabled:D.value===`button`&&!x.value&&e.disabled||void 0,"aria-disabled":e.disabled||void 0,"aria-expanded":x.value?_.value===`verbose`?S.value:M.value:void 0,"aria-haspopup":x.value&&_.value===`compact`?`menu`:void 0,"aria-label":_.value===`compact`?b.value:void 0,role:`menuitem`,onClick:k,onKeydown:q}),{default:(0,i.withCtx)(()=>[e.icon?((0,i.openBlock)(),(0,i.createBlock)(t.t,{key:0,class:`nb-sidebar-menu-item__icon`,name:e.icon,size:_.value===`compact`?18:16},null,8,[`name`,`size`])):(0,i.createCommentVNode)(``,!0),_.value===`verbose`?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[(0,i.createElementVNode)(`span`,s,(0,i.toDisplayString)(e.label),1),e.badge===void 0?(0,i.createCommentVNode)(``,!0):((0,i.openBlock)(),(0,i.createElementBlock)(`span`,{key:0,class:(0,i.normalizeClass)([`nb-sidebar-menu-item__badge`,[`nb-sidebar-menu-item__badge--${e.badgeVariant}`]])},(0,i.toDisplayString)(e.badge),3)),x.value?((0,i.openBlock)(),(0,i.createBlock)(t.t,{key:1,class:(0,i.normalizeClass)([`nb-sidebar-menu-item__caret`,{"nb-sidebar-menu-item__caret--expanded":S.value}]),name:(0,i.unref)(a.regular),size:12},null,8,[`class`,`name`])):(0,i.createCommentVNode)(``,!0)],64)):y.value===void 0?e.badge===void 0?(0,i.createCommentVNode)(``,!0):((0,i.openBlock)(),(0,i.createElementBlock)(`span`,{key:3,class:(0,i.normalizeClass)([`nb-sidebar-menu-item__badge-dot`,[`nb-sidebar-menu-item__badge-dot--${e.badgeVariant}`]]),title:String(e.badge)},null,10,c)):((0,i.openBlock)(),(0,i.createElementBlock)(`span`,{key:2,class:(0,i.normalizeClass)([`nb-sidebar-menu-item__badge-count`,[`nb-sidebar-menu-item__badge-count--${e.badgeVariant}`]]),"aria-hidden":`true`},(0,i.toDisplayString)(y.value),3))]),_:1},16,[`class`,`type`,`to`,`disabled`,`aria-disabled`,`aria-expanded`,`aria-haspopup`,`aria-label`])),x.value&&_.value===`verbose`?(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`ul`,l,[(0,i.renderSlot)(n.$slots,`default`,{},void 0,!0)],512)),[[i.vShow,S.value]]):(0,i.createCommentVNode)(``,!0),_.value===`compact`&&M.value?((0,i.openBlock)(),(0,i.createBlock)(i.Teleport,{key:1,to:`body`},[(0,i.createElementVNode)(`div`,{ref_key:`flyoutRef`,ref:j,class:`nb-sidebar-menu-item__flyout`,style:(0,i.normalizeStyle)(P.value),onMouseenter:B,onMouseleave:V,onKeydown:J,onFocusout:Y,onClick:X},[(0,i.createElementVNode)(`div`,u,[(0,i.createElementVNode)(`span`,d,(0,i.toDisplayString)(e.label),1),e.badge===void 0?(0,i.createCommentVNode)(``,!0):((0,i.openBlock)(),(0,i.createElementBlock)(`span`,{key:0,class:(0,i.normalizeClass)([`nb-sidebar-menu-item__badge`,[`nb-sidebar-menu-item__badge--${e.badgeVariant}`]])},(0,i.toDisplayString)(e.badge),3))]),x.value?((0,i.openBlock)(),(0,i.createBlock)(o,{key:0,variant:`verbose`},{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`ul`,{class:`nb-sidebar-menu-item__flyout-children`,role:`menu`,"aria-label":e.label},[(0,i.renderSlot)(n.$slots,`default`,{},void 0,!0)],8,f)]),_:3})):(0,i.createCommentVNode)(``,!0)],36)])):(0,i.createCommentVNode)(``,!0)],34))}}),m=e.t(p,[[`__scopeId`,`data-v-fcf40e39`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return m}});
|