@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
|
@@ -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(`./Label-71QAuWf4.cjs`),i=require(`./Message-
|
|
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(`./Label-71QAuWf4.cjs`),i=require(`./Message-BpDOzu5W.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/warning-circle`);o=e.n(o);let s=require(`@nubisco/ui/icons/check-circle`);s=e.n(s);var c=function(e){return e.Small=`sm`,e.Medium=`md`,e}(c||{}),l=function(e){return e.Active=`active`,e.Finished=`finished`,e.Error=`error`,e}(l||{}),u={key:0,class:`nb-progress-bar__header`},d=[`aria-label`,`aria-valuemax`,`aria-valuenow`],f=(0,a.defineComponent)({__name:`ProgressBar`,props:{value:{default:void 0},max:{default:100},helper:{default:void 0},size:{default:c.Medium},status:{default:l.Active},hideLabel:{type:Boolean,default:!1},id:{default:`progress-bar`},label:{}},setup(e){let t=e,c=(0,a.computed)(()=>t.value==null&&t.status===l.Active),f=(0,a.computed)(()=>t.status===l.Active?t.value==null||t.max<=0?0:Math.min(Math.max(t.value/t.max,0),1):1),p=(0,a.computed)(()=>c.value?void 0:f.value*t.max),m=(0,a.computed)(()=>[`nb-progress-bar`,`nb-progress-bar--${t.size}`,`nb-progress-bar--${t.status}`,{"nb-progress-bar--indeterminate":c.value}]),h=(0,a.computed)(()=>({transform:`scaleX(${f.value})`})),g=(0,a.computed)(()=>t.status===l.Finished?s:t.status===l.Error?o:null),_=(0,a.computed)(()=>t.status===l.Error?i.n.Error:i.n.Helper);return(t,o)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)(m.value)},[e.label&&!e.hideLabel?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,u,[(0,a.createVNode)(r.t,null,{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)]),_:1}),g.value?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:g.value,size:14,class:`nb-progress-bar__status-icon`},null,8,[`name`])):(0,a.createCommentVNode)(``,!0)])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`div`,{class:`nb-progress-bar__track`,role:`progressbar`,"aria-label":e.label,"aria-valuemin":`0`,"aria-valuemax":e.max,"aria-valuenow":p.value},[(0,a.createElementVNode)(`div`,{class:`nb-progress-bar__bar`,style:(0,a.normalizeStyle)(h.value)},null,4)],8,d),e.helper?((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:1,variant:_.value,class:`nb-progress-bar__message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.helper),1)]),_:1},8,[`variant`])):(0,a.createCommentVNode)(``,!0)],2))}}),p=t.t(f,[[`__scopeId`,`data-v-0d03d47a`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
2
|
import { t } from "./Icon-rREAqsu0.js";
|
|
3
3
|
import { t as n } from "./Label-BEW_5nYq.js";
|
|
4
|
-
import { n as r, t as i } from "./Message-
|
|
4
|
+
import { n as r, t as i } from "./Message-CqVP4y4Y.js";
|
|
5
5
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, normalizeStyle as m, openBlock as h, toDisplayString as g, withCtx as _ } from "vue";
|
|
6
6
|
import * as v from "@nubisco/ui/icons/warning-circle";
|
|
7
7
|
import * as y from "@nubisco/ui/icons/check-circle";
|
|
@@ -70,6 +70,6 @@ var b = /* @__PURE__ */ function(e) {
|
|
|
70
70
|
}, 8, ["variant"])) : s("", !0)
|
|
71
71
|
], 2));
|
|
72
72
|
}
|
|
73
|
-
}), [["__scopeId", "data-v-
|
|
73
|
+
}), [["__scopeId", "data-v-0d03d47a"]]);
|
|
74
74
|
//#endregion
|
|
75
75
|
export { w as t };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Label-71QAuWf4.cjs`),n=require(`./Message-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Label-71QAuWf4.cjs`),n=require(`./Message-BpDOzu5W.cjs`);let r=require(`vue`);var i=function(e){return e.Horizontal=`horizontal`,e.Vertical=`vertical`,e}(i||{}),a={class:`nb-radio__control`},o=[`name`,`value`,`checked`,`disabled`,`readonly`,`onChange`],s={class:`nb-radio__circle`},c={key:0,class:`nb-radio__dot`},l={class:`nb-radio__text`},u=(0,r.defineComponent)({__name:`Radio`,props:{modelValue:{},options:{},name:{},direction:{default:i.Vertical},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:`radio`},label:{},error:{default:void 0},warning:{default:void 0},helper:{default:void 0}},emits:[`update:modelValue`],setup(e){let i=e,u=(0,r.computed)(()=>[`nb-radio`,{"nb-radio--error":!!i.error,"nb-radio--warning":!i.error&&!!i.warning,"nb-radio--disabled":i.disabled,"nb-radio--readonly":i.readonly}]);function d(e){return[`nb-radio__option`,{"nb-radio__option--disabled":i.disabled||e.disabled,"nb-radio__option--readonly":i.readonly}]}return(i,f)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{class:(0,r.normalizeClass)(u.value)},[e.label?((0,r.openBlock)(),(0,r.createBlock)(t.t,{key:0},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)]),_:1})):(0,r.createCommentVNode)(``,!0),(0,r.createElementVNode)(`div`,{class:(0,r.normalizeClass)([`nb-radio__group`,`nb-radio__group--${e.direction}`])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.options,t=>((0,r.openBlock)(),(0,r.createElementBlock)(`label`,{key:t.value,class:(0,r.normalizeClass)(d(t))},[(0,r.createElementVNode)(`span`,a,[(0,r.createElementVNode)(`input`,{type:`radio`,name:e.name,value:t.value,checked:e.modelValue===t.value,disabled:e.disabled||t.disabled,readonly:e.readonly,class:`nb-radio__input`,onChange:n=>!e.readonly&&i.$emit(`update:modelValue`,t.value)},null,40,o),(0,r.createElementVNode)(`span`,s,[e.modelValue===t.value?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,c)):(0,r.createCommentVNode)(``,!0)])]),(0,r.createElementVNode)(`span`,l,(0,r.toDisplayString)(t.label),1)],2))),128))],2),e.error?((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:1,variant:`error`,class:`nb-radio__message`},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:2,variant:`warning`,class:`nb-radio__message`},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.warning),1)]),_:1})):e.helper?((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:3,variant:`helper`,class:`nb-radio__message`},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.helper),1)]),_:1})):(0,r.createCommentVNode)(``,!0)],2))}}),d=e.t(u,[[`__scopeId`,`data-v-d44a6f66`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
2
|
import { t } from "./Label-BEW_5nYq.js";
|
|
3
|
-
import { t as n } from "./Message-
|
|
3
|
+
import { t as n } from "./Message-CqVP4y4Y.js";
|
|
4
4
|
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderList as p, toDisplayString as m, withCtx as h } from "vue";
|
|
5
5
|
//#region src/components/Radio.d.ts
|
|
6
6
|
var g = /* @__PURE__ */ function(e) {
|
|
@@ -93,6 +93,6 @@ var g = /* @__PURE__ */ function(e) {
|
|
|
93
93
|
})) : o("", !0)
|
|
94
94
|
], 2));
|
|
95
95
|
}
|
|
96
|
-
}), [["__scopeId", "data-v-
|
|
96
|
+
}), [["__scopeId", "data-v-d44a6f66"]]);
|
|
97
97
|
//#endregion
|
|
98
98
|
export { S as t };
|
|
@@ -178,6 +178,6 @@ var x = ["aria-label", "aria-describedby"], S = ["data-index", "onPointerdown"],
|
|
|
178
178
|
s("li", E, v(I.value), 1)
|
|
179
179
|
], 10, x));
|
|
180
180
|
}
|
|
181
|
-
}), [["__scopeId", "data-v-
|
|
181
|
+
}), [["__scopeId", "data-v-66cf51f5"]]);
|
|
182
182
|
//#endregion
|
|
183
183
|
export { D as t };
|
|
@@ -1 +1 @@
|
|
|
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/useStableId.composable.cjs`),r=require(`./composables/useSurfaceLayer.composable.cjs`);let i=require(`vue`),a=require(`@nubisco/ui/icons/dots-six-vertical`);var o=[`aria-label`,`aria-describedby`],s=[`data-index`,`onPointerdown`],c=[`tabindex`,`aria-disabled`,`aria-label`,`onKeydown`,`onBlur`],l={class:`nb-reorder-list__content`},u=[`id`],d={class:`nb-reorder-list__sr`,"aria-live":`assertive`},f=(0,i.defineComponent)({__name:`ReorderList`,props:{modelValue:{default:()=>[]},itemKey:{type:[String,Function],default:void 0},handle:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{default:``}},emits:[`update:modelValue`,`reorder`],setup(e,{emit:f}){let p=e,m=f,h=n.useStableId({}),g=(0,i.ref)(null),{layerProps:_}=r.useSurfaceLayer({el:g}),v=(0,i.computed)(()=>p.modelValue);function y(e,t){let n=p.itemKey;return typeof n==`function`?n(e,t):typeof n==`string`?e?.[n]:t}function b(e){let t=v.value[e];if(t&&typeof t==`object`){let e=t,n=e.label??e.name??e.title;if(typeof n==`string`)return n}return String(t??`Item ${e+1}`)}function x(e){let t=`${b(e)}, ${e+1} of ${v.value.length}`;return w.value===e?`${t}, picked up`:t}let S=(0,i.ref)(``);function C(e,t,n){if(e===t||e<0||t<0)return;let r=[...v.value],[i]=r.splice(e,1);r.splice(t,0,i),m(`update:modelValue`,r),m(`reorder`,{from:e,to:t,via:n}),S.value=`${b(e)} moved to position ${t+1} of ${r.length}`}let w=(0,i.ref)(null);function T(e,t){if(p.disabled)return;if(e.key===`Escape`&&w.value!==null){e.preventDefault(),w.value=null,S.value=`Move cancelled`;return}if(e.key===` `||e.key===`Enter`){e.preventDefault(),w.value===t?(w.value=null,S.value=`${b(t)} dropped at position ${t+1}`):(w.value=t,S.value=`${b(t)} picked up, position ${t+1} of ${v.value.length}`);return}let n=e.key===`ArrowUp`?-1:e.key===`ArrowDown`?1:0;if(!n)return;e.preventDefault();let r=t+n;r<0||r>=v.value.length||(w.value===t?(C(t,r,`keyboard`),w.value=r,E(r)):E(r))}async function E(e){await Promise.resolve(),(g.value?.querySelector(`[data-index="${e}"] .nb-reorder-list__grab`))?.focus()}function D(e){w.value===e&&(w.value=null)}let O=(0,i.ref)(null),k=(0,i.ref)(null);function A(e,t){if(p.disabled||e.button!==0)return;let n=e.target,r=!!n.closest(`.nb-reorder-list__grab`);if(!(p.handle&&!r)&&!(!r&&n.closest(`button, a, input, select, textarea`))&&!(e.pointerType===`touch`&&!r)&&!(O.value!==null&&e.pointerId!==j)){if(w.value=null,O.value=t,k.value=t,j=e.pointerId,e.pointerType&&e.pointerType!==`mouse`){let t=n.closest(`.nb-reorder-list__grab`);try{t?.setPointerCapture?.(e.pointerId)}catch{}}P(),window.addEventListener(`pointermove`,I),window.addEventListener(`pointerup`,L),window.addEventListener(`pointercancel`,R)}}let j;function M(e){return e.pointerId===j}let N=null;function P(){typeof document>`u`||N!==null||(N=document.body.style.userSelect,document.body.style.userSelect=`none`,document.body.style.setProperty(`-webkit-user-select`,`none`))}function F(){typeof document>`u`||N===null||(document.body.style.userSelect=N,document.body.style.removeProperty(`-webkit-user-select`),N=null)}function I(e){if(O.value===null||!g.value||!M(e))return;let t=[...g.value.querySelectorAll(`[data-index]`)],n=t.length;for(let r of t){let t=r.getBoundingClientRect();if(e.clientY<t.top+t.height/2){n=Number(r.dataset.index);break}}k.value=n}function L(e){if(!M(e))return;let t=O.value,n=k.value;z(),!(t===null||n===null)&&C(t,n>t?n-1:n,`pointer`)}function R(e){M(e)&&z()}function z(){F(),O.value=null,k.value=null,j=void 0,window.removeEventListener(`pointermove`,I),window.removeEventListener(`pointerup`,L),window.removeEventListener(`pointercancel`,R)}return(0,i.onBeforeUnmount)(z),(n,r)=>((0,i.openBlock)(),(0,i.createElementBlock)(`ul`,{ref_key:`listRef`,ref:g,class:(0,i.normalizeClass)([`nb-reorder-list`,{"nb-reorder-list--dragging":O.value!==null}]),role:`list`,"aria-label":e.label||void 0,"aria-describedby":`${(0,i.unref)(h)}-hint`},[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(v.value,(r,o)=>((0,i.openBlock)(),(0,i.createElementBlock)(`li`,(0,i.mergeProps)({key:y(r,o),class:[`nb-reorder-list__row`,{"nb-reorder-list__row--dragging":O.value===o,"nb-reorder-list__row--lifted":w.value===o,"nb-reorder-list__row--drop-before":k.value===o,"nb-reorder-list__row--drop-after":k.value===o+1&&o===v.value.length-1}]},{ref_for:!0},(0,i.unref)(_),{"data-index":o,onPointerdown:e=>A(e,o)}),[(0,i.createElementVNode)(`div`,{class:`nb-reorder-list__grab`,tabindex:e.disabled?-1:0,role:`button`,"aria-disabled":e.disabled||void 0,"aria-label":x(o),onKeydown:e=>T(e,o),onBlur:e=>D(o)},[(0,i.renderSlot)(n.$slots,`handle`,{item:r,index:o},()=>[(0,i.createVNode)(t.t,{class:`nb-reorder-list__grip`,name:(0,i.unref)(a.regular),size:16,"aria-hidden":`true`},null,8,[`name`])],!0)],40,c),(0,i.createElementVNode)(`div`,l,[(0,i.renderSlot)(n.$slots,`default`,{item:r,index:o},()=>[(0,i.createTextVNode)((0,i.toDisplayString)(r),1)],!0)])],16,s))),128)),(0,i.createElementVNode)(`li`,{id:`${(0,i.unref)(h)}-hint`,class:`nb-reorder-list__sr`},` Press Space or Enter to pick up, arrow keys to move, Space or Enter to drop, Escape to cancel. `,8,u),(0,i.createElementVNode)(`li`,d,(0,i.toDisplayString)(S.value),1)],10,o))}}),p=e.t(f,[[`__scopeId`,`data-v-
|
|
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/useStableId.composable.cjs`),r=require(`./composables/useSurfaceLayer.composable.cjs`);let i=require(`vue`),a=require(`@nubisco/ui/icons/dots-six-vertical`);var o=[`aria-label`,`aria-describedby`],s=[`data-index`,`onPointerdown`],c=[`tabindex`,`aria-disabled`,`aria-label`,`onKeydown`,`onBlur`],l={class:`nb-reorder-list__content`},u=[`id`],d={class:`nb-reorder-list__sr`,"aria-live":`assertive`},f=(0,i.defineComponent)({__name:`ReorderList`,props:{modelValue:{default:()=>[]},itemKey:{type:[String,Function],default:void 0},handle:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},label:{default:``}},emits:[`update:modelValue`,`reorder`],setup(e,{emit:f}){let p=e,m=f,h=n.useStableId({}),g=(0,i.ref)(null),{layerProps:_}=r.useSurfaceLayer({el:g}),v=(0,i.computed)(()=>p.modelValue);function y(e,t){let n=p.itemKey;return typeof n==`function`?n(e,t):typeof n==`string`?e?.[n]:t}function b(e){let t=v.value[e];if(t&&typeof t==`object`){let e=t,n=e.label??e.name??e.title;if(typeof n==`string`)return n}return String(t??`Item ${e+1}`)}function x(e){let t=`${b(e)}, ${e+1} of ${v.value.length}`;return w.value===e?`${t}, picked up`:t}let S=(0,i.ref)(``);function C(e,t,n){if(e===t||e<0||t<0)return;let r=[...v.value],[i]=r.splice(e,1);r.splice(t,0,i),m(`update:modelValue`,r),m(`reorder`,{from:e,to:t,via:n}),S.value=`${b(e)} moved to position ${t+1} of ${r.length}`}let w=(0,i.ref)(null);function T(e,t){if(p.disabled)return;if(e.key===`Escape`&&w.value!==null){e.preventDefault(),w.value=null,S.value=`Move cancelled`;return}if(e.key===` `||e.key===`Enter`){e.preventDefault(),w.value===t?(w.value=null,S.value=`${b(t)} dropped at position ${t+1}`):(w.value=t,S.value=`${b(t)} picked up, position ${t+1} of ${v.value.length}`);return}let n=e.key===`ArrowUp`?-1:e.key===`ArrowDown`?1:0;if(!n)return;e.preventDefault();let r=t+n;r<0||r>=v.value.length||(w.value===t?(C(t,r,`keyboard`),w.value=r,E(r)):E(r))}async function E(e){await Promise.resolve(),(g.value?.querySelector(`[data-index="${e}"] .nb-reorder-list__grab`))?.focus()}function D(e){w.value===e&&(w.value=null)}let O=(0,i.ref)(null),k=(0,i.ref)(null);function A(e,t){if(p.disabled||e.button!==0)return;let n=e.target,r=!!n.closest(`.nb-reorder-list__grab`);if(!(p.handle&&!r)&&!(!r&&n.closest(`button, a, input, select, textarea`))&&!(e.pointerType===`touch`&&!r)&&!(O.value!==null&&e.pointerId!==j)){if(w.value=null,O.value=t,k.value=t,j=e.pointerId,e.pointerType&&e.pointerType!==`mouse`){let t=n.closest(`.nb-reorder-list__grab`);try{t?.setPointerCapture?.(e.pointerId)}catch{}}P(),window.addEventListener(`pointermove`,I),window.addEventListener(`pointerup`,L),window.addEventListener(`pointercancel`,R)}}let j;function M(e){return e.pointerId===j}let N=null;function P(){typeof document>`u`||N!==null||(N=document.body.style.userSelect,document.body.style.userSelect=`none`,document.body.style.setProperty(`-webkit-user-select`,`none`))}function F(){typeof document>`u`||N===null||(document.body.style.userSelect=N,document.body.style.removeProperty(`-webkit-user-select`),N=null)}function I(e){if(O.value===null||!g.value||!M(e))return;let t=[...g.value.querySelectorAll(`[data-index]`)],n=t.length;for(let r of t){let t=r.getBoundingClientRect();if(e.clientY<t.top+t.height/2){n=Number(r.dataset.index);break}}k.value=n}function L(e){if(!M(e))return;let t=O.value,n=k.value;z(),!(t===null||n===null)&&C(t,n>t?n-1:n,`pointer`)}function R(e){M(e)&&z()}function z(){F(),O.value=null,k.value=null,j=void 0,window.removeEventListener(`pointermove`,I),window.removeEventListener(`pointerup`,L),window.removeEventListener(`pointercancel`,R)}return(0,i.onBeforeUnmount)(z),(n,r)=>((0,i.openBlock)(),(0,i.createElementBlock)(`ul`,{ref_key:`listRef`,ref:g,class:(0,i.normalizeClass)([`nb-reorder-list`,{"nb-reorder-list--dragging":O.value!==null}]),role:`list`,"aria-label":e.label||void 0,"aria-describedby":`${(0,i.unref)(h)}-hint`},[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(v.value,(r,o)=>((0,i.openBlock)(),(0,i.createElementBlock)(`li`,(0,i.mergeProps)({key:y(r,o),class:[`nb-reorder-list__row`,{"nb-reorder-list__row--dragging":O.value===o,"nb-reorder-list__row--lifted":w.value===o,"nb-reorder-list__row--drop-before":k.value===o,"nb-reorder-list__row--drop-after":k.value===o+1&&o===v.value.length-1}]},{ref_for:!0},(0,i.unref)(_),{"data-index":o,onPointerdown:e=>A(e,o)}),[(0,i.createElementVNode)(`div`,{class:`nb-reorder-list__grab`,tabindex:e.disabled?-1:0,role:`button`,"aria-disabled":e.disabled||void 0,"aria-label":x(o),onKeydown:e=>T(e,o),onBlur:e=>D(o)},[(0,i.renderSlot)(n.$slots,`handle`,{item:r,index:o},()=>[(0,i.createVNode)(t.t,{class:`nb-reorder-list__grip`,name:(0,i.unref)(a.regular),size:16,"aria-hidden":`true`},null,8,[`name`])],!0)],40,c),(0,i.createElementVNode)(`div`,l,[(0,i.renderSlot)(n.$slots,`default`,{item:r,index:o},()=>[(0,i.createTextVNode)((0,i.toDisplayString)(r),1)],!0)])],16,s))),128)),(0,i.createElementVNode)(`li`,{id:`${(0,i.unref)(h)}-hint`,class:`nb-reorder-list__sr`},` Press Space or Enter to pick up, arrow keys to move, Space or Enter to drop, Escape to cancel. `,8,u),(0,i.createElementVNode)(`li`,d,(0,i.toDisplayString)(S.value),1)],10,o))}}),p=e.t(f,[[`__scopeId`,`data-v-66cf51f5`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
@@ -0,0 +1,576 @@
|
|
|
1
|
+
import { t as e } from "./Icon-rREAqsu0.js";
|
|
2
|
+
import { t } from "./Grid-CJFQvcko.js";
|
|
3
|
+
import { t as n } from "./Label-BEW_5nYq.js";
|
|
4
|
+
import { t as r } from "./Message-CqVP4y4Y.js";
|
|
5
|
+
import { useMenuSurface as i } from "./composables/useMenuSurface.composable.mjs";
|
|
6
|
+
import { Fragment as a, Teleport as o, Transition as ee, computed as s, createBlock as c, createCommentVNode as l, createElementBlock as u, createElementVNode as d, createTextVNode as f, createVNode as p, defineComponent as m, h as te, mergeProps as ne, nextTick as re, normalizeClass as h, normalizeProps as ie, normalizeStyle as ae, onBeforeUnmount as oe, openBlock as g, ref as _, renderList as se, renderSlot as v, toDisplayString as y, unref as b, useId as ce, useSlots as le, vModelText as ue, watch as de, withCtx as x, withDirectives as fe, withKeys as S, withModifiers as C } from "vue";
|
|
7
|
+
import { regular as pe } from "@nubisco/ui/icons/caret-down";
|
|
8
|
+
import { regular as me } from "@nubisco/ui/icons/caret-up";
|
|
9
|
+
import { regular as he } from "@nubisco/ui/icons/x";
|
|
10
|
+
//#region src/components/Select.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
+
var ge = [
|
|
12
|
+
"id",
|
|
13
|
+
"aria-expanded",
|
|
14
|
+
"aria-disabled",
|
|
15
|
+
"aria-required",
|
|
16
|
+
"disabled"
|
|
17
|
+
], _e = {
|
|
18
|
+
key: 2,
|
|
19
|
+
class: "nb-select__clear-space",
|
|
20
|
+
"aria-hidden": "true"
|
|
21
|
+
}, ve = ["aria-label"], ye = [
|
|
22
|
+
"id",
|
|
23
|
+
"aria-expanded",
|
|
24
|
+
"aria-disabled",
|
|
25
|
+
"aria-required",
|
|
26
|
+
"disabled"
|
|
27
|
+
], be = {
|
|
28
|
+
key: 1,
|
|
29
|
+
class: "nb-select__inner-label"
|
|
30
|
+
}, xe = {
|
|
31
|
+
key: 0,
|
|
32
|
+
class: "nb-select__asterisk",
|
|
33
|
+
"aria-hidden": "true"
|
|
34
|
+
}, Se = {
|
|
35
|
+
key: 0,
|
|
36
|
+
class: "nb-select__clear-space",
|
|
37
|
+
"aria-hidden": "true"
|
|
38
|
+
}, Ce = ["aria-label"], we = ["id", "aria-multiselectable"], Te = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "nb-select__search"
|
|
41
|
+
}, Ee = [
|
|
42
|
+
"placeholder",
|
|
43
|
+
"aria-label",
|
|
44
|
+
"aria-controls",
|
|
45
|
+
"aria-activedescendant"
|
|
46
|
+
], De = ["aria-labelledby"], Oe = ["id"], ke = [
|
|
47
|
+
"id",
|
|
48
|
+
"data-index",
|
|
49
|
+
"aria-selected",
|
|
50
|
+
"aria-disabled",
|
|
51
|
+
"onMouseenter",
|
|
52
|
+
"onClick"
|
|
53
|
+
], Ae = {
|
|
54
|
+
key: 0,
|
|
55
|
+
class: "nb-select__option-check",
|
|
56
|
+
"aria-hidden": "true"
|
|
57
|
+
}, je = {
|
|
58
|
+
key: 0,
|
|
59
|
+
viewBox: "0 0 10 8",
|
|
60
|
+
fill: "none",
|
|
61
|
+
width: "10",
|
|
62
|
+
height: "8"
|
|
63
|
+
}, Me = { class: "nb-select__option-label" }, Ne = {
|
|
64
|
+
key: 1,
|
|
65
|
+
class: "nb-select__empty"
|
|
66
|
+
}, Pe = {
|
|
67
|
+
key: 2,
|
|
68
|
+
class: "nb-select__empty"
|
|
69
|
+
}, Fe = ["placeholder", "onKeydown"], Ie = /* @__PURE__ */ m({
|
|
70
|
+
__name: "Select",
|
|
71
|
+
props: {
|
|
72
|
+
modelValue: { default: null },
|
|
73
|
+
options: { default: () => [] },
|
|
74
|
+
multiple: {
|
|
75
|
+
type: Boolean,
|
|
76
|
+
default: !1
|
|
77
|
+
},
|
|
78
|
+
creatable: {
|
|
79
|
+
type: Boolean,
|
|
80
|
+
default: !1
|
|
81
|
+
},
|
|
82
|
+
createPlaceholder: { default: "" },
|
|
83
|
+
clearable: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: !1
|
|
86
|
+
},
|
|
87
|
+
clearLabel: { default: "Clear selection" },
|
|
88
|
+
searchable: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: !1
|
|
91
|
+
},
|
|
92
|
+
searchPlaceholder: { default: "Search…" },
|
|
93
|
+
noResultsLabel: { default: "No results" },
|
|
94
|
+
anchor: {
|
|
95
|
+
type: [Function, null],
|
|
96
|
+
default: null
|
|
97
|
+
},
|
|
98
|
+
selectedMark: { default: "fill" },
|
|
99
|
+
placeholder: { default: "Select…" },
|
|
100
|
+
name: { default: "" },
|
|
101
|
+
disabled: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: !1
|
|
104
|
+
},
|
|
105
|
+
required: {
|
|
106
|
+
type: Boolean,
|
|
107
|
+
default: !1
|
|
108
|
+
},
|
|
109
|
+
id: { default: void 0 },
|
|
110
|
+
label: { default: "" },
|
|
111
|
+
error: { default: "" },
|
|
112
|
+
warning: { default: "" },
|
|
113
|
+
helper: { default: "" },
|
|
114
|
+
variant: { default: "default" },
|
|
115
|
+
size: { default: "md" }
|
|
116
|
+
},
|
|
117
|
+
emits: [
|
|
118
|
+
"update:modelValue",
|
|
119
|
+
"change",
|
|
120
|
+
"create"
|
|
121
|
+
],
|
|
122
|
+
setup(m, { expose: Ie, emit: Le }) {
|
|
123
|
+
let w = m, T = Le, E = (e, { slots: t }) => e.wrap ? te("div", { class: "nb-select__control" }, t.default?.()) : t.default?.();
|
|
124
|
+
E.props = ["wrap"];
|
|
125
|
+
let D = _(""), O = _(""), Re = _(null);
|
|
126
|
+
function ze() {
|
|
127
|
+
let e = D.value.trim();
|
|
128
|
+
e && (T("create", e), D.value = "");
|
|
129
|
+
}
|
|
130
|
+
let k = _(!1), A = _(!1), j = _(-1), M = _(null), N = _(null), P = le(), Be = () => (typeof w.anchor == "function" ? w.anchor() : w.anchor) ?? N.value ?? M.value;
|
|
131
|
+
function Ve() {
|
|
132
|
+
(N.value ?? M.value?.querySelector("button, [tabindex]"))?.focus();
|
|
133
|
+
}
|
|
134
|
+
let F = _(null);
|
|
135
|
+
i(F);
|
|
136
|
+
let He = _({
|
|
137
|
+
position: "fixed",
|
|
138
|
+
top: "0px",
|
|
139
|
+
left: "0px",
|
|
140
|
+
width: "0px",
|
|
141
|
+
zIndex: "9999"
|
|
142
|
+
}), Ue = `nb-select-${ce()}`, I = s(() => w.id ?? Ue), L = s(() => `${I.value}-listbox`), We = (e) => `${I.value}-option-${e}`, R = s(() => w.modelValue == null ? [] : Array.isArray(w.modelValue) ? w.modelValue : [w.modelValue]), z = s(() => {
|
|
143
|
+
if (!(w.multiple || R.value.length !== 1)) return (w.options ?? []).find((e) => e.value === R.value[0])?.icon;
|
|
144
|
+
}), B = s(() => {
|
|
145
|
+
if (R.value.length === 0) return "";
|
|
146
|
+
let e = w.options ?? [];
|
|
147
|
+
return w.multiple ? R.value.length === 1 ? e.find((e) => e.value === R.value[0])?.label ?? String(R.value[0]) : R.value.length === 2 ? R.value.map((t) => e.find((e) => e.value === t)?.label ?? String(t)).join(", ") : `${R.value.length} selected` : e.find((e) => e.value === R.value[0])?.label ?? String(R.value[0]);
|
|
148
|
+
});
|
|
149
|
+
function V(e) {
|
|
150
|
+
return R.value.includes(e);
|
|
151
|
+
}
|
|
152
|
+
let Ge = (e) => e.normalize("NFD").replace(/\p{M}/gu, "").toLowerCase(), H = s(() => {
|
|
153
|
+
let e = w.options ?? [], t = w.searchable ? Ge(O.value.trim()) : "", n = /* @__PURE__ */ new Set();
|
|
154
|
+
return e.forEach((e, r) => {
|
|
155
|
+
(!t || Ge(e.label).includes(t)) && n.add(r);
|
|
156
|
+
}), n;
|
|
157
|
+
}), Ke = s(() => {
|
|
158
|
+
let e = [];
|
|
159
|
+
return (w.options ?? []).forEach((t, n) => {
|
|
160
|
+
if (!H.value.has(n)) return;
|
|
161
|
+
let r = e[e.length - 1];
|
|
162
|
+
(!r || r.name !== t.group) && e.push({
|
|
163
|
+
key: `${e.length}:${t.group ?? ""}`,
|
|
164
|
+
name: t.group,
|
|
165
|
+
labelId: `${I.value}-group-${e.length}`,
|
|
166
|
+
entries: []
|
|
167
|
+
}), e[e.length - 1].entries.push({
|
|
168
|
+
option: t,
|
|
169
|
+
index: n
|
|
170
|
+
});
|
|
171
|
+
}), e;
|
|
172
|
+
});
|
|
173
|
+
function U(e, t) {
|
|
174
|
+
let n = w.options ?? [];
|
|
175
|
+
for (let r = e + t; r >= 0 && r < n.length; r += t) if (!n[r].disabled && H.value.has(r)) return r;
|
|
176
|
+
return e;
|
|
177
|
+
}
|
|
178
|
+
function qe(e) {
|
|
179
|
+
if (e.disabled) return;
|
|
180
|
+
let t;
|
|
181
|
+
if (w.multiple) {
|
|
182
|
+
let n = [...R.value], r = n.indexOf(e.value);
|
|
183
|
+
r >= 0 ? n.splice(r, 1) : n.push(e.value), t = n;
|
|
184
|
+
} else t = e.value, K();
|
|
185
|
+
T("update:modelValue", t), T("change", t);
|
|
186
|
+
}
|
|
187
|
+
function W() {
|
|
188
|
+
let e = Be();
|
|
189
|
+
if (!e) return;
|
|
190
|
+
let t = e.getBoundingClientRect(), n = F.value?.offsetHeight ?? 0, r = window.innerHeight - t.bottom, i = t.top, a = n > 0 && r < n && i > r, o = P.trigger ? Math.max(t.width, 240) : t.width, ee = P.trigger ? Math.max(8, Math.min(t.left, window.innerWidth - o - 8)) : t.left;
|
|
191
|
+
He.value = {
|
|
192
|
+
position: "fixed",
|
|
193
|
+
top: a ? `${t.top - n}px` : `${t.bottom}px`,
|
|
194
|
+
left: `${ee}px`,
|
|
195
|
+
width: `${o}px`,
|
|
196
|
+
zIndex: "9999"
|
|
197
|
+
};
|
|
198
|
+
}
|
|
199
|
+
function G() {
|
|
200
|
+
if (w.disabled) return;
|
|
201
|
+
k.value = !0, W();
|
|
202
|
+
let e = w.options ?? [];
|
|
203
|
+
j.value = R.value.length > 0 ? Math.max(0, e.findIndex((e) => e.value === R.value[0])) : -1, re(() => {
|
|
204
|
+
W(), Z(), Re.value?.focus({ preventScroll: !0 });
|
|
205
|
+
});
|
|
206
|
+
}
|
|
207
|
+
function K() {
|
|
208
|
+
let e = !!F.value?.contains(document.activeElement);
|
|
209
|
+
k.value = !1, j.value = -1, O.value = "", e && Ve();
|
|
210
|
+
}
|
|
211
|
+
function q() {
|
|
212
|
+
k.value ? K() : G();
|
|
213
|
+
}
|
|
214
|
+
function J(e) {
|
|
215
|
+
let t = e.target, n = M.value?.contains(t) ?? !1, r = F.value?.contains(t) ?? !1;
|
|
216
|
+
!n && !r && K();
|
|
217
|
+
}
|
|
218
|
+
function Y() {
|
|
219
|
+
k.value && W();
|
|
220
|
+
}
|
|
221
|
+
de(k, (e) => {
|
|
222
|
+
e ? (document.addEventListener("mousedown", J), window.addEventListener("scroll", Y, !0), window.addEventListener("resize", Y)) : (document.removeEventListener("mousedown", J), window.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y));
|
|
223
|
+
}), oe(() => {
|
|
224
|
+
document.removeEventListener("mousedown", J), window.removeEventListener("scroll", Y, !0), window.removeEventListener("resize", Y);
|
|
225
|
+
});
|
|
226
|
+
function X(e) {
|
|
227
|
+
let t = w.options ?? [];
|
|
228
|
+
if (!k.value) {
|
|
229
|
+
(e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), G());
|
|
230
|
+
return;
|
|
231
|
+
}
|
|
232
|
+
e.key === "Escape" ? (K(), e.preventDefault()) : e.key === "Tab" ? K() : e.key === "ArrowDown" ? (e.preventDefault(), j.value = U(j.value, 1), Z()) : e.key === "ArrowUp" ? (e.preventDefault(), j.value > 0 && (j.value = U(j.value, -1)), Z()) : (e.key === "Enter" || e.key === " ") && j.value >= 0 && (e.preventDefault(), qe(t[j.value]));
|
|
233
|
+
}
|
|
234
|
+
function Z() {
|
|
235
|
+
re(() => {
|
|
236
|
+
!F.value || j.value < 0 || F.value.querySelector(`[data-index="${j.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
237
|
+
});
|
|
238
|
+
}
|
|
239
|
+
de(O, () => {
|
|
240
|
+
if (!k.value) return;
|
|
241
|
+
let e = U(-1, 1);
|
|
242
|
+
j.value = e === -1 ? -1 : e, Z();
|
|
243
|
+
});
|
|
244
|
+
function Je(e) {
|
|
245
|
+
if (e.key === " ") {
|
|
246
|
+
e.stopPropagation();
|
|
247
|
+
return;
|
|
248
|
+
}
|
|
249
|
+
if (e.key === "Home" || e.key === "End") {
|
|
250
|
+
e.stopPropagation();
|
|
251
|
+
return;
|
|
252
|
+
}
|
|
253
|
+
X(e);
|
|
254
|
+
}
|
|
255
|
+
let Ye = s(() => ({
|
|
256
|
+
isOpen: k.value,
|
|
257
|
+
toggle: q,
|
|
258
|
+
open: G,
|
|
259
|
+
close: K,
|
|
260
|
+
attrs: {
|
|
261
|
+
"aria-expanded": k.value,
|
|
262
|
+
"aria-haspopup": "listbox",
|
|
263
|
+
"aria-controls": k.value ? L.value : void 0,
|
|
264
|
+
onClick: q
|
|
265
|
+
}
|
|
266
|
+
})), Q = s(() => w.clearable && !w.disabled && R.value.length > 0);
|
|
267
|
+
function $() {
|
|
268
|
+
let e = w.multiple ? [] : null;
|
|
269
|
+
K(), T("update:modelValue", e), T("change", e), Ve();
|
|
270
|
+
}
|
|
271
|
+
let Xe = s(() => [
|
|
272
|
+
"nb-select",
|
|
273
|
+
`nb-select--${w.variant}`,
|
|
274
|
+
`nb-select--${w.size}`,
|
|
275
|
+
{
|
|
276
|
+
"nb-select--open": k.value,
|
|
277
|
+
"nb-select--focused": A.value && !k.value,
|
|
278
|
+
"nb-select--error": !!w.error,
|
|
279
|
+
"nb-select--warning": !w.error && !!w.warning,
|
|
280
|
+
"nb-select--multiple": w.multiple,
|
|
281
|
+
"nb-select--bare": !!P.trigger
|
|
282
|
+
}
|
|
283
|
+
]);
|
|
284
|
+
return Ie({
|
|
285
|
+
open: G,
|
|
286
|
+
close: K
|
|
287
|
+
}), (i, s) => (g(), u(a, null, [d("div", {
|
|
288
|
+
ref_key: "rootRef",
|
|
289
|
+
ref: M,
|
|
290
|
+
class: h(Xe.value),
|
|
291
|
+
onKeydown: X
|
|
292
|
+
}, [i.$slots.trigger ? v(i.$slots, "trigger", ie(ne({ key: 0 }, Ye.value))) : m.variant === "default" ? (g(), u(a, { key: 1 }, [
|
|
293
|
+
i.$slots.label ? v(i.$slots, "label", { key: 0 }) : m.label ? (g(), c(n, {
|
|
294
|
+
key: 1,
|
|
295
|
+
for: I.value,
|
|
296
|
+
required: m.required,
|
|
297
|
+
disabled: m.disabled
|
|
298
|
+
}, {
|
|
299
|
+
default: x(() => [f(y(m.label), 1)]),
|
|
300
|
+
_: 1
|
|
301
|
+
}, 8, [
|
|
302
|
+
"for",
|
|
303
|
+
"required",
|
|
304
|
+
"disabled"
|
|
305
|
+
])) : l("", !0),
|
|
306
|
+
p(E, { wrap: m.clearable }, {
|
|
307
|
+
default: x(() => [d("button", {
|
|
308
|
+
id: I.value,
|
|
309
|
+
ref_key: "triggerRef",
|
|
310
|
+
ref: N,
|
|
311
|
+
type: "button",
|
|
312
|
+
class: "nb-select__trigger",
|
|
313
|
+
role: "combobox",
|
|
314
|
+
"aria-expanded": k.value,
|
|
315
|
+
"aria-haspopup": "listbox",
|
|
316
|
+
"aria-disabled": m.disabled || void 0,
|
|
317
|
+
"aria-required": m.required || void 0,
|
|
318
|
+
disabled: m.disabled || void 0,
|
|
319
|
+
onClick: q,
|
|
320
|
+
onFocus: s[0] ||= (e) => A.value = !0,
|
|
321
|
+
onBlur: s[1] ||= (e) => A.value = !1
|
|
322
|
+
}, [
|
|
323
|
+
d("span", { class: h(["nb-select__value", {
|
|
324
|
+
"nb-select__value--placeholder": !B.value,
|
|
325
|
+
"nb-select__value--with-icon": !!z.value
|
|
326
|
+
}]) }, [z.value ? (g(), c(e, {
|
|
327
|
+
key: 0,
|
|
328
|
+
class: "nb-select__value-icon",
|
|
329
|
+
name: z.value,
|
|
330
|
+
size: 16
|
|
331
|
+
}, null, 8, ["name"])) : l("", !0), B.value ? v(i.$slots, "value", {
|
|
332
|
+
key: 1,
|
|
333
|
+
values: R.value
|
|
334
|
+
}, () => [f(y(B.value), 1)]) : (g(), u(a, { key: 2 }, [f(y(m.placeholder), 1)], 64))], 2),
|
|
335
|
+
m.error ? (g(), c(r, {
|
|
336
|
+
key: 0,
|
|
337
|
+
variant: "error",
|
|
338
|
+
"icon-only": !0,
|
|
339
|
+
class: "nb-select__status-icon"
|
|
340
|
+
}, {
|
|
341
|
+
default: x(() => [f(y(m.error), 1)]),
|
|
342
|
+
_: 1
|
|
343
|
+
})) : m.warning ? (g(), c(r, {
|
|
344
|
+
key: 1,
|
|
345
|
+
variant: "warning",
|
|
346
|
+
"icon-only": !0,
|
|
347
|
+
class: "nb-select__status-icon"
|
|
348
|
+
}, {
|
|
349
|
+
default: x(() => [f(y(m.warning), 1)]),
|
|
350
|
+
_: 1
|
|
351
|
+
})) : l("", !0),
|
|
352
|
+
Q.value ? (g(), u("span", _e)) : l("", !0),
|
|
353
|
+
p(t, {
|
|
354
|
+
align: "center",
|
|
355
|
+
justify: "center",
|
|
356
|
+
class: "nb-select__caret"
|
|
357
|
+
}, {
|
|
358
|
+
default: x(() => [p(e, {
|
|
359
|
+
name: k.value ? b(me) : b(pe),
|
|
360
|
+
size: 16
|
|
361
|
+
}, null, 8, ["name"])]),
|
|
362
|
+
_: 1
|
|
363
|
+
})
|
|
364
|
+
], 40, ge), Q.value ? (g(), u("button", {
|
|
365
|
+
key: 0,
|
|
366
|
+
type: "button",
|
|
367
|
+
class: "nb-select__clear",
|
|
368
|
+
"aria-label": m.clearLabel,
|
|
369
|
+
onClick: $,
|
|
370
|
+
onKeydown: [s[2] ||= S(C(() => {}, ["stop"]), ["enter"]), s[3] ||= S(C(() => {}, ["stop"]), ["space"])]
|
|
371
|
+
}, [p(e, {
|
|
372
|
+
name: b(he),
|
|
373
|
+
size: 16
|
|
374
|
+
}, null, 8, ["name"])], 40, ve)) : l("", !0)]),
|
|
375
|
+
_: 3
|
|
376
|
+
}, 8, ["wrap"]),
|
|
377
|
+
m.error ? (g(), c(r, {
|
|
378
|
+
key: 2,
|
|
379
|
+
variant: "error",
|
|
380
|
+
class: "nb-select__message"
|
|
381
|
+
}, {
|
|
382
|
+
default: x(() => [f(y(m.error), 1)]),
|
|
383
|
+
_: 1
|
|
384
|
+
})) : m.warning ? (g(), c(r, {
|
|
385
|
+
key: 3,
|
|
386
|
+
variant: "warning",
|
|
387
|
+
class: "nb-select__message"
|
|
388
|
+
}, {
|
|
389
|
+
default: x(() => [f(y(m.warning), 1)]),
|
|
390
|
+
_: 1
|
|
391
|
+
})) : m.helper ? (g(), c(r, {
|
|
392
|
+
key: 4,
|
|
393
|
+
variant: "helper",
|
|
394
|
+
class: "nb-select__message"
|
|
395
|
+
}, {
|
|
396
|
+
default: x(() => [f(y(m.helper), 1)]),
|
|
397
|
+
_: 1
|
|
398
|
+
})) : l("", !0)
|
|
399
|
+
], 64)) : m.variant === "fluid" ? (g(), u(a, { key: 2 }, [p(E, { wrap: m.clearable }, {
|
|
400
|
+
default: x(() => [d("button", {
|
|
401
|
+
id: I.value,
|
|
402
|
+
ref_key: "triggerRef",
|
|
403
|
+
ref: N,
|
|
404
|
+
type: "button",
|
|
405
|
+
class: "nb-select__trigger",
|
|
406
|
+
role: "combobox",
|
|
407
|
+
"aria-expanded": k.value,
|
|
408
|
+
"aria-haspopup": "listbox",
|
|
409
|
+
"aria-disabled": m.disabled || void 0,
|
|
410
|
+
"aria-required": m.required || void 0,
|
|
411
|
+
disabled: m.disabled || void 0,
|
|
412
|
+
onClick: q,
|
|
413
|
+
onFocus: s[4] ||= (e) => A.value = !0,
|
|
414
|
+
onBlur: s[5] ||= (e) => A.value = !1
|
|
415
|
+
}, [m.label || i.$slots.label ? (g(), c(t, {
|
|
416
|
+
key: 0,
|
|
417
|
+
dir: "row",
|
|
418
|
+
align: "center",
|
|
419
|
+
gap: "xs",
|
|
420
|
+
class: "nb-select__inner-header"
|
|
421
|
+
}, {
|
|
422
|
+
default: x(() => [i.$slots.label ? v(i.$slots, "label", { key: 0 }) : (g(), u("label", be, [f(y(m.label) + " ", 1), m.required ? (g(), u("span", xe, "*")) : l("", !0)])), m.helper && !m.error && !m.warning ? (g(), c(r, {
|
|
423
|
+
key: 2,
|
|
424
|
+
variant: "helper",
|
|
425
|
+
"icon-only": !0,
|
|
426
|
+
class: "nb-select__inner-message"
|
|
427
|
+
}, {
|
|
428
|
+
default: x(() => [f(y(m.helper), 1)]),
|
|
429
|
+
_: 1
|
|
430
|
+
})) : l("", !0)]),
|
|
431
|
+
_: 3
|
|
432
|
+
})) : l("", !0), p(t, {
|
|
433
|
+
dir: "row",
|
|
434
|
+
align: "end",
|
|
435
|
+
flex: "",
|
|
436
|
+
class: "nb-select__value-row"
|
|
437
|
+
}, {
|
|
438
|
+
default: x(() => [
|
|
439
|
+
d("span", { class: h(["nb-select__value", {
|
|
440
|
+
"nb-select__value--placeholder": !B.value,
|
|
441
|
+
"nb-select__value--with-icon": !!z.value
|
|
442
|
+
}]) }, [z.value ? (g(), c(e, {
|
|
443
|
+
key: 0,
|
|
444
|
+
class: "nb-select__value-icon",
|
|
445
|
+
name: z.value,
|
|
446
|
+
size: 16
|
|
447
|
+
}, null, 8, ["name"])) : l("", !0), B.value ? v(i.$slots, "value", {
|
|
448
|
+
key: 1,
|
|
449
|
+
values: R.value
|
|
450
|
+
}, () => [f(y(B.value), 1)]) : (g(), u(a, { key: 2 }, [f(y(m.placeholder), 1)], 64))], 2),
|
|
451
|
+
Q.value ? (g(), u("span", Se)) : l("", !0),
|
|
452
|
+
p(t, {
|
|
453
|
+
align: "center",
|
|
454
|
+
justify: "center",
|
|
455
|
+
class: "nb-select__caret"
|
|
456
|
+
}, {
|
|
457
|
+
default: x(() => [p(e, {
|
|
458
|
+
name: k.value ? b(me) : b(pe),
|
|
459
|
+
size: 16
|
|
460
|
+
}, null, 8, ["name"])]),
|
|
461
|
+
_: 1
|
|
462
|
+
})
|
|
463
|
+
]),
|
|
464
|
+
_: 3
|
|
465
|
+
})], 40, ye), Q.value ? (g(), u("button", {
|
|
466
|
+
key: 0,
|
|
467
|
+
type: "button",
|
|
468
|
+
class: "nb-select__clear",
|
|
469
|
+
"aria-label": m.clearLabel,
|
|
470
|
+
onClick: $,
|
|
471
|
+
onKeydown: [s[6] ||= S(C(() => {}, ["stop"]), ["enter"]), s[7] ||= S(C(() => {}, ["stop"]), ["space"])]
|
|
472
|
+
}, [p(e, {
|
|
473
|
+
name: b(he),
|
|
474
|
+
size: 16
|
|
475
|
+
}, null, 8, ["name"])], 40, Ce)) : l("", !0)]),
|
|
476
|
+
_: 3
|
|
477
|
+
}, 8, ["wrap"]), m.error ? (g(), c(r, {
|
|
478
|
+
key: 0,
|
|
479
|
+
variant: "error",
|
|
480
|
+
class: "nb-select__fluid-message"
|
|
481
|
+
}, {
|
|
482
|
+
default: x(() => [f(y(m.error), 1)]),
|
|
483
|
+
_: 1
|
|
484
|
+
})) : m.warning ? (g(), c(r, {
|
|
485
|
+
key: 1,
|
|
486
|
+
variant: "warning",
|
|
487
|
+
class: "nb-select__fluid-message"
|
|
488
|
+
}, {
|
|
489
|
+
default: x(() => [f(y(m.warning), 1)]),
|
|
490
|
+
_: 1
|
|
491
|
+
})) : l("", !0)], 64)) : l("", !0)], 34), (g(), c(o, { to: "body" }, [p(ee, { name: "nb-select-pop" }, {
|
|
492
|
+
default: x(() => [k.value ? (g(), u("div", {
|
|
493
|
+
key: 0,
|
|
494
|
+
id: L.value,
|
|
495
|
+
ref_key: "dropdownRef",
|
|
496
|
+
ref: F,
|
|
497
|
+
class: h(["nb-select__dropdown", {
|
|
498
|
+
"nb-select__dropdown--check": m.selectedMark === "check",
|
|
499
|
+
"nb-select__dropdown--anchored": !!i.$slots.trigger
|
|
500
|
+
}]),
|
|
501
|
+
style: ae(He.value),
|
|
502
|
+
role: "listbox",
|
|
503
|
+
"aria-multiselectable": m.multiple || void 0
|
|
504
|
+
}, [
|
|
505
|
+
m.searchable ? (g(), u("div", Te, [fe(d("input", {
|
|
506
|
+
ref_key: "searchRef",
|
|
507
|
+
ref: Re,
|
|
508
|
+
"onUpdate:modelValue": s[8] ||= (e) => O.value = e,
|
|
509
|
+
type: "search",
|
|
510
|
+
class: "nb-select__search-input",
|
|
511
|
+
autocomplete: "off",
|
|
512
|
+
spellcheck: "false",
|
|
513
|
+
placeholder: m.searchPlaceholder,
|
|
514
|
+
"aria-label": m.searchPlaceholder,
|
|
515
|
+
"aria-controls": L.value,
|
|
516
|
+
"aria-activedescendant": j.value >= 0 ? We(j.value) : void 0,
|
|
517
|
+
onKeydown: Je
|
|
518
|
+
}, null, 40, Ee), [[ue, O.value]])])) : l("", !0),
|
|
519
|
+
(g(!0), u(a, null, se(Ke.value, (t) => (g(), u("div", {
|
|
520
|
+
key: t.key,
|
|
521
|
+
class: "nb-select__group",
|
|
522
|
+
role: "group",
|
|
523
|
+
"aria-labelledby": t.name ? t.labelId : void 0
|
|
524
|
+
}, [t.name ? (g(), u("div", {
|
|
525
|
+
key: 0,
|
|
526
|
+
id: t.labelId,
|
|
527
|
+
class: "nb-select__group-label"
|
|
528
|
+
}, y(t.name), 9, Oe)) : l("", !0), (g(!0), u(a, null, se(t.entries, (t) => (g(), u("div", {
|
|
529
|
+
id: We(t.index),
|
|
530
|
+
key: t.option.value,
|
|
531
|
+
"data-index": t.index,
|
|
532
|
+
class: h(["nb-select__option", {
|
|
533
|
+
"nb-select__option--selected": V(t.option.value),
|
|
534
|
+
"nb-select__option--highlighted": j.value === t.index,
|
|
535
|
+
"nb-select__option--disabled": t.option.disabled
|
|
536
|
+
}]),
|
|
537
|
+
role: "option",
|
|
538
|
+
"aria-selected": V(t.option.value),
|
|
539
|
+
"aria-disabled": t.option.disabled || void 0,
|
|
540
|
+
onMouseenter: (e) => j.value = t.index,
|
|
541
|
+
onClick: (e) => qe(t.option)
|
|
542
|
+
}, [
|
|
543
|
+
m.multiple || m.selectedMark === "check" ? (g(), u("span", Ae, [V(t.option.value) ? (g(), u("svg", je, [...s[12] ||= [d("path", {
|
|
544
|
+
d: "M1 4l3 3 5-6",
|
|
545
|
+
stroke: "currentColor",
|
|
546
|
+
"stroke-width": "1.5",
|
|
547
|
+
"stroke-linecap": "round",
|
|
548
|
+
"stroke-linejoin": "round"
|
|
549
|
+
}, null, -1)]])) : l("", !0)])) : l("", !0),
|
|
550
|
+
t.option.icon ? (g(), c(e, {
|
|
551
|
+
key: 1,
|
|
552
|
+
class: "nb-select__option-icon",
|
|
553
|
+
name: t.option.icon,
|
|
554
|
+
size: 16
|
|
555
|
+
}, null, 8, ["name"])) : l("", !0),
|
|
556
|
+
d("span", Me, [v(i.$slots, "option", { option: t.option }, () => [f(y(t.option.label), 1)])])
|
|
557
|
+
], 42, ke))), 128))], 8, De))), 128)),
|
|
558
|
+
!m.options || m.options.length === 0 ? (g(), u("div", Ne, " No options ")) : m.searchable && H.value.size === 0 ? (g(), u("div", Pe, y(m.noResultsLabel), 1)) : l("", !0),
|
|
559
|
+
m.creatable ? (g(), u("div", {
|
|
560
|
+
key: 3,
|
|
561
|
+
class: "nb-select__create",
|
|
562
|
+
onMousedown: s[11] ||= C(() => {}, ["prevent"])
|
|
563
|
+
}, [fe(d("input", {
|
|
564
|
+
"onUpdate:modelValue": s[9] ||= (e) => D.value = e,
|
|
565
|
+
type: "text",
|
|
566
|
+
class: "nb-select__create-input",
|
|
567
|
+
placeholder: m.createPlaceholder || "Add new…",
|
|
568
|
+
onKeydown: [S(C(ze, ["prevent"]), ["enter"]), s[10] ||= C(() => {}, ["stop"])]
|
|
569
|
+
}, null, 40, Fe), [[ue, D.value]])], 32)) : l("", !0)
|
|
570
|
+
], 14, we)) : l("", !0)]),
|
|
571
|
+
_: 3
|
|
572
|
+
})]))], 64));
|
|
573
|
+
}
|
|
574
|
+
});
|
|
575
|
+
//#endregion
|
|
576
|
+
export { Ie as t };
|