@nubisco/ui 5.44.0 → 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-iw63sE1V.js → Breadcrumbs-Cmr5dHB3.js} +2 -2
- package/dist/{Breadcrumbs-BHsQ9DWz.cjs → Breadcrumbs-DGJEdKOS.cjs} +1 -1
- package/dist/{Briefing-BhnZ6WVQ.js → Briefing-DH_mh7fN.js} +1 -1
- package/dist/{Briefing-CZ2bGU7N.cjs → Briefing-DUhMbdSV.cjs} +1 -1
- package/dist/{BriefingDestination-DY6Om2tX.js → BriefingDestination-D2_W_n7J.js} +1 -1
- package/dist/{BriefingDestination-CJHuxQnL.cjs → BriefingDestination-LfgeTUzh.cjs} +1 -1
- package/dist/{Button-D81Efqjg.js → Button-C-OsrbBY.js} +1 -1
- package/dist/{Button-B-8ikYRN.cjs → Button-Cjtw1CkB.cjs} +1 -1
- package/dist/{Card-BFF-wPpB.cjs → Card-B1Snkf7r.cjs} +1 -1
- package/dist/{Card-m0pPg2DV.js → Card-__tew6aW.js} +1 -1
- package/dist/{Checkbox-5ANAIFrb.js → Checkbox-B_nSNoZ0.js} +1 -1
- package/dist/{Checkbox-CtUFfX3m.cjs → Checkbox-DHjkrPUP.cjs} +1 -1
- package/dist/{CheckboxGroup-CORB_666.js → CheckboxGroup-CUIlWTqZ.js} +1 -1
- package/dist/{CheckboxGroup-DUwsVYmt.cjs → CheckboxGroup-DZYMcUYF.cjs} +1 -1
- package/dist/{ColorStrip-Cvg8SDbi.js → ColorStrip-ms8u4-on.js} +1 -1
- package/dist/{ColorStrip-D9Y0q4F3.cjs → ColorStrip-oYITobr0.cjs} +1 -1
- package/dist/{Confirm-7uLqv38W.cjs → Confirm-19CDmfES.cjs} +1 -1
- package/dist/{Confirm-c2Ss3_hy.js → Confirm-BVTBZR2b.js} +4 -4
- package/dist/{CopyButton-D_DwMgrr.cjs → CopyButton-CetR7hHC.cjs} +1 -1
- package/dist/{CopyButton-BaJmS3TN.js → CopyButton-Dgt2DbUH.js} +1 -1
- package/dist/{DataTable-JG2gCpgz.cjs → DataTable-6Z8IZeHf.cjs} +1 -1
- package/dist/{DataTable-C44scor6.js → DataTable-CaJYOtLk.js} +3 -3
- package/dist/{DatePicker-BtQGKawo.cjs → DatePicker-BXZaGWsS.cjs} +1 -1
- package/dist/{DatePicker-D-V0rt-j.js → DatePicker-DN_5RDB8.js} +1 -1
- package/dist/{DragHandle-DX3qexW0.cjs → DragHandle-B673DaN2.cjs} +1 -1
- package/dist/{DragHandle-CBfcSRsL.js → DragHandle-CaK-4YhE.js} +1 -1
- package/dist/{FileUploader-yF9oG9am.cjs → FileUploader-3vqReJ1p.cjs} +1 -1
- package/dist/{FileUploader-0N1aSLeq.js → FileUploader-DbkSKQbb.js} +2 -2
- package/dist/{FloatingToolbar-Bfe38At4.js → FloatingToolbar-CLQOPq4x.js} +1 -1
- package/dist/{FloatingToolbar-Bdwzxebh.cjs → FloatingToolbar-D7PkAjS7.cjs} +1 -1
- package/dist/{ImagePicker-D6udeZN0.cjs → ImagePicker-BGSGBibF.cjs} +1 -1
- package/dist/{ImagePicker-C2Kz4U4G.js → ImagePicker-BX28wROp.js} +1 -1
- package/dist/{InfoHint-ieo2S-YE.js → InfoHint-CC4cvFsD.js} +1 -1
- package/dist/{InfoHint-D35B8g96.cjs → InfoHint-CyuBCIgq.cjs} +1 -1
- package/dist/{Message-vFr_gB2V.cjs → Message-BpDOzu5W.cjs} +1 -1
- package/dist/{Message-DPv6St5M.js → Message-CqVP4y4Y.js} +1 -1
- package/dist/{Modal-x4RAvBHZ.cjs → Modal-CMF77gQX.cjs} +1 -1
- package/dist/{Modal-BCWixlOG.js → Modal-wtlHUSSo.js} +4 -4
- package/dist/{NotificationCenter-DLeWxnQl.cjs → NotificationCenter-CGNa7MoB.cjs} +1 -1
- package/dist/{NotificationCenter-BkgLzD2x.js → NotificationCenter-DtsfXKrM.js} +1 -1
- package/dist/{NumberInput-DgjZDq0n.js → NumberInput-ggLG8zsa.js} +2 -2
- package/dist/{NumberInput-DpPVxENr.cjs → NumberInput-x1lY-01L.cjs} +1 -1
- package/dist/{Pagination-XOtOT86P.cjs → Pagination-6FLCG39u.cjs} +1 -1
- package/dist/{Pagination-Dk2C7ktz.js → Pagination-gc-SNeLt.js} +2 -2
- package/dist/{ProgressBar-CnVdi3l4.cjs → ProgressBar-CHyFQlL4.cjs} +1 -1
- package/dist/{ProgressBar-DFtOp3I-.js → ProgressBar-RCt7Y6mi.js} +2 -2
- package/dist/{Radio-DYXyO8tN.cjs → Radio-BSl4W12s.cjs} +1 -1
- package/dist/{Radio-CgsnwzDy.js → Radio-DHmTMvjM.js} +2 -2
- package/dist/{ReorderList-BuUYPJMK.js → ReorderList-BgowtiZj.js} +1 -1
- package/dist/{ReorderList-bFHn97rx.cjs → ReorderList-JLX01ViS.cjs} +1 -1
- package/dist/Select-DPrncZll.js +576 -0
- package/dist/{Select-CnieTPOL.cjs → Select-cRjKYI2t.cjs} +1 -1
- package/dist/Shell-B-kBO9pJ.cjs +1 -0
- package/dist/Shell-Da_Updzh.js +520 -0
- package/dist/{ShellPanel-CaThNh0w.cjs → ShellPanel-BaJQxg3h.cjs} +1 -1
- package/dist/{ShellPanel-Di6orfq4.js → ShellPanel-CoP2tWLo.js} +1 -1
- package/dist/{SidebarCollapseToggle-UzGP4TzC.js → SidebarCollapseToggle-CX6Ay_PC.js} +1 -1
- package/dist/{SidebarCollapseToggle-CX4_V0Ts.cjs → SidebarCollapseToggle-dgx4SPB5.cjs} +1 -1
- package/dist/{SidebarHeaderToggle-CHkcVjY7.cjs → SidebarHeaderToggle-BeLPv1dU.cjs} +1 -1
- package/dist/{SidebarHeaderToggle-BFxmHAl9.js → SidebarHeaderToggle-BwnXdcrB.js} +1 -1
- package/dist/{SidebarLink-DaZrlrLZ.cjs → SidebarLink-BeuUiOLd.cjs} +1 -1
- package/dist/{SidebarLink-CXCdVrWM.js → SidebarLink-m9WhGcc2.js} +1 -1
- package/dist/{SidebarMenuGroup-kEwoJus9.js → SidebarMenuGroup-BTVsBDts.js} +1 -1
- package/dist/{SidebarMenuGroup-BUy6LXoB.cjs → SidebarMenuGroup-ByeTvkHJ.cjs} +1 -1
- package/dist/{SidebarMenuItem-Bh_2pd3f.js → SidebarMenuItem-BFdCve25.js} +1 -1
- package/dist/{SidebarMenuItem-BEWYdzfa.cjs → SidebarMenuItem-C46vbCOy.cjs} +1 -1
- package/dist/{Slider-CUonOhgJ.js → Slider-56pPcL_E.js} +2 -2
- package/dist/{Slider-CojrFGb_.cjs → Slider-TlwhliL1.cjs} +1 -1
- package/dist/{Stat-UpbLQlEY.js → Stat-BfDK9HRp.js} +1 -1
- package/dist/{Stat-BSdnUOwK.cjs → Stat-x01dwM0g.cjs} +1 -1
- package/dist/{StepperStep-CjxVhsbr.cjs → StepperStep-C-uCJroV.cjs} +1 -1
- package/dist/{StepperStep-Co1KKj9h.js → StepperStep-CsrrJfwu.js} +1 -1
- package/dist/{Switch-8zEBXjF9.js → Switch-B40hMlXu.js} +1 -1
- package/dist/{Switch-D6Yh4B_9.cjs → Switch-D7eHiXw1.cjs} +1 -1
- package/dist/{TableOfContents-BPw_ilXl.js → TableOfContents-B72I_ReR.js} +1 -1
- package/dist/{TableOfContents-Dg1rE8d6.cjs → TableOfContents-CNxzC_6Z.cjs} +1 -1
- package/dist/{Tabs-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 +57 -57
- package/dist/components/AccordionItem.cjs +1 -1
- package/dist/components/AccordionItem.mjs +1 -1
- package/dist/components/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/ActionGroup.cjs +1 -1
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/AiProvider.cjs +1 -1
- package/dist/components/AiProvider.mjs +1 -1
- package/dist/components/BackToTop.cjs +1 -1
- package/dist/components/BackToTop.mjs +1 -1
- package/dist/components/Banner.cjs +1 -1
- package/dist/components/Banner.mjs +1 -1
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/BlueprintCard.cjs +1 -1
- package/dist/components/BlueprintCard.mjs +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/Board.cjs +1 -1
- package/dist/components/Board.mjs +1 -1
- package/dist/components/BottomPanel.cjs +1 -1
- package/dist/components/BottomPanel.mjs +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Briefing.cjs +1 -1
- package/dist/components/Briefing.mjs +1 -1
- package/dist/components/BriefingDestination.cjs +1 -1
- package/dist/components/BriefingDestination.mjs +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Card.cjs +1 -1
- package/dist/components/Card.mjs +1 -1
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/ColorStrip.cjs +1 -1
- package/dist/components/ColorStrip.mjs +1 -1
- package/dist/components/CommandPalette.vue.d.ts.map +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.env.d.ts +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/CopyButton.cjs +1 -1
- package/dist/components/CopyButton.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DragHandle.cjs +1 -1
- package/dist/components/DragHandle.mjs +1 -1
- package/dist/components/FileUploader.cjs +1 -1
- package/dist/components/FileUploader.mjs +1 -1
- package/dist/components/FloatingToolbar.cjs +1 -1
- package/dist/components/FloatingToolbar.mjs +1 -1
- package/dist/components/ImagePicker.cjs +1 -1
- package/dist/components/ImagePicker.mjs +1 -1
- package/dist/components/InfoHint.cjs +1 -1
- package/dist/components/InfoHint.mjs +1 -1
- package/dist/components/InfoHint.vue.d.ts.map +1 -1
- package/dist/components/Menu.vue.d.ts.map +1 -1
- package/dist/components/Message.cjs +1 -1
- package/dist/components/Message.mjs +1 -1
- package/dist/components/Modal.cjs +1 -1
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
- package/dist/components/NumberInput.cjs +1 -1
- package/dist/components/NumberInput.mjs +1 -1
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar.mjs +1 -1
- package/dist/components/Radio.cjs +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/Radio.vue.d.ts.map +1 -1
- package/dist/components/ReorderList.cjs +1 -1
- package/dist/components/ReorderList.mjs +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts +2 -2
- package/dist/components/Select.vue.d.ts.map +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.d.ts +23 -0
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/Shell.vue.d.ts +12 -11
- package/dist/components/Shell.vue.d.ts.map +1 -1
- package/dist/components/ShellPanel.cjs +1 -1
- package/dist/components/ShellPanel.mjs +1 -1
- package/dist/components/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarHeaderToggle.cjs +1 -1
- package/dist/components/SidebarHeaderToggle.mjs +1 -1
- package/dist/components/SidebarLink.cjs +1 -1
- package/dist/components/SidebarLink.mjs +1 -1
- package/dist/components/SidebarMenuGroup.cjs +1 -1
- package/dist/components/SidebarMenuGroup.mjs +1 -1
- package/dist/components/SidebarMenuItem.cjs +1 -1
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/SidebarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Stat.cjs +1 -1
- package/dist/components/Stat.mjs +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/Submenu.vue.d.ts.map +1 -1
- package/dist/components/Switch.cjs +1 -1
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/Switch.vue.d.ts.map +1 -1
- package/dist/components/TableOfContents.cjs +1 -1
- package/dist/components/TableOfContents.mjs +1 -1
- package/dist/components/Tabs.cjs +1 -1
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.mjs +1 -1
- package/dist/components/Toast.cjs +1 -1
- package/dist/components/Toast.mjs +1 -1
- package/dist/components/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/TreeNode.cjs +1 -1
- package/dist/components/TreeNode.mjs +1 -1
- package/dist/components/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.mjs +1 -1
- package/dist/components/UserMenu.vue.d.ts.map +1 -1
- package/dist/components/Video.cjs +1 -1
- package/dist/components/Video.mjs +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +3 -3
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +57 -57
- package/dist/{main-B7CVGoiq.js → main-Bp4F8LhP.js} +4 -4
- package/dist/main-Dw1kBHgQ.cjs +4 -0
- package/dist/main.d.ts +1 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/AccordionItem.css +1 -1
- package/dist/styles/BackToTop.css +1 -1
- package/dist/styles/Banner.css +1 -1
- package/dist/styles/Blueprint.css +1 -1
- package/dist/styles/BlueprintCard.css +1 -1
- package/dist/styles/Board.css +1 -1
- package/dist/styles/BottomPanel.css +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/Calendar.css +1 -1
- package/dist/styles/Card.css +1 -1
- package/dist/styles/Checkbox.css +1 -1
- package/dist/styles/ColorStrip.css +1 -1
- package/dist/styles/CommandPalette.css +1 -1
- package/dist/styles/DataTable.css +1 -1
- package/dist/styles/DatePicker.css +1 -1
- package/dist/styles/DragHandle.css +1 -1
- package/dist/styles/FileUploader.css +1 -1
- package/dist/styles/FloatingToolbar.css +1 -1
- package/dist/styles/ImagePicker.css +1 -1
- package/dist/styles/InfoHint.css +1 -1
- package/dist/styles/Menu.css +1 -1
- package/dist/styles/MenuBarItem.css +1 -1
- package/dist/styles/MenuItem.css +1 -1
- package/dist/styles/Message.css +1 -1
- package/dist/styles/Modal.css +1 -1
- package/dist/styles/NotificationCenter.css +1 -1
- package/dist/styles/NumberInput.css +1 -1
- package/dist/styles/ProgressBar.css +1 -1
- package/dist/styles/Radio.css +1 -1
- package/dist/styles/ReorderList.css +1 -1
- package/dist/styles/Select.css +1 -1
- package/dist/styles/Shell.css +1 -1
- package/dist/styles/ShellPanel.css +1 -1
- package/dist/styles/SidebarHeaderToggle.css +1 -1
- package/dist/styles/SidebarLink.css +1 -1
- package/dist/styles/SidebarMenuGroup.css +1 -1
- package/dist/styles/SidebarMenuItem.css +1 -1
- package/dist/styles/Stat.css +1 -1
- package/dist/styles/StepperStep.css +1 -1
- package/dist/styles/Submenu.css +1 -1
- package/dist/styles/Switch.css +1 -1
- package/dist/styles/Tabs.css +1 -1
- package/dist/styles/TextInput.css +1 -1
- package/dist/styles/Toast.css +1 -1
- package/dist/styles/Toaster.css +1 -1
- package/dist/styles/TreeNode.css +1 -1
- package/dist/styles/UserMenu.css +1 -1
- package/dist/styles/Walkthrough.css +1 -1
- package/dist/ui.css +48 -48
- package/package.json +1 -1
- package/src/styles/_theme.scss +19 -0
- package/src/styles/logic/_motion.scss +32 -0
- package/src/styles/variables/_animations.scss +45 -3
- package/dist/AccordionItem-BOIL14KX.cjs +0 -1
- package/dist/Select-cEKAoY4x.js +0 -573
- package/dist/Shell-BUqkz67b.js +0 -497
- package/dist/Shell-CixU-_Lh.cjs +0 -1
- package/dist/main-8_dE3Ta1.cjs +0 -4
package/dist/Select-cEKAoY4x.js
DELETED
|
@@ -1,573 +0,0 @@
|
|
|
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-DPv6St5M.js";
|
|
5
|
-
import { useMenuSurface as i } from "./composables/useMenuSurface.composable.mjs";
|
|
6
|
-
import { Fragment as a, Teleport as o, 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 ee, mergeProps as te, nextTick as ne, normalizeClass as h, normalizeProps as re, normalizeStyle as ie, onBeforeUnmount as ae, openBlock as g, ref as _, renderList as oe, renderSlot as v, toDisplayString as y, unref as b, useId as se, useSlots as ce, vModelText as le, watch as x, withCtx as S, withDirectives as ue, withKeys as C, withModifiers as w } from "vue";
|
|
7
|
-
import { regular as de } from "@nubisco/ui/icons/caret-down";
|
|
8
|
-
import { regular as fe } from "@nubisco/ui/icons/caret-up";
|
|
9
|
-
import { regular as pe } from "@nubisco/ui/icons/x";
|
|
10
|
-
//#region src/components/Select.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var me = [
|
|
12
|
-
"id",
|
|
13
|
-
"aria-expanded",
|
|
14
|
-
"aria-disabled",
|
|
15
|
-
"aria-required",
|
|
16
|
-
"disabled"
|
|
17
|
-
], he = {
|
|
18
|
-
key: 2,
|
|
19
|
-
class: "nb-select__clear-space",
|
|
20
|
-
"aria-hidden": "true"
|
|
21
|
-
}, ge = ["aria-label"], _e = [
|
|
22
|
-
"id",
|
|
23
|
-
"aria-expanded",
|
|
24
|
-
"aria-disabled",
|
|
25
|
-
"aria-required",
|
|
26
|
-
"disabled"
|
|
27
|
-
], ve = {
|
|
28
|
-
key: 1,
|
|
29
|
-
class: "nb-select__inner-label"
|
|
30
|
-
}, ye = {
|
|
31
|
-
key: 0,
|
|
32
|
-
class: "nb-select__asterisk",
|
|
33
|
-
"aria-hidden": "true"
|
|
34
|
-
}, be = {
|
|
35
|
-
key: 0,
|
|
36
|
-
class: "nb-select__clear-space",
|
|
37
|
-
"aria-hidden": "true"
|
|
38
|
-
}, xe = ["aria-label"], Se = ["id", "aria-multiselectable"], Ce = {
|
|
39
|
-
key: 0,
|
|
40
|
-
class: "nb-select__search"
|
|
41
|
-
}, we = [
|
|
42
|
-
"placeholder",
|
|
43
|
-
"aria-label",
|
|
44
|
-
"aria-controls",
|
|
45
|
-
"aria-activedescendant"
|
|
46
|
-
], Te = ["aria-labelledby"], Ee = ["id"], De = [
|
|
47
|
-
"id",
|
|
48
|
-
"data-index",
|
|
49
|
-
"aria-selected",
|
|
50
|
-
"aria-disabled",
|
|
51
|
-
"onMouseenter",
|
|
52
|
-
"onClick"
|
|
53
|
-
], Oe = {
|
|
54
|
-
key: 0,
|
|
55
|
-
class: "nb-select__option-check",
|
|
56
|
-
"aria-hidden": "true"
|
|
57
|
-
}, ke = {
|
|
58
|
-
key: 0,
|
|
59
|
-
viewBox: "0 0 10 8",
|
|
60
|
-
fill: "none",
|
|
61
|
-
width: "10",
|
|
62
|
-
height: "8"
|
|
63
|
-
}, Ae = { class: "nb-select__option-label" }, je = {
|
|
64
|
-
key: 1,
|
|
65
|
-
class: "nb-select__empty"
|
|
66
|
-
}, Me = {
|
|
67
|
-
key: 2,
|
|
68
|
-
class: "nb-select__empty"
|
|
69
|
-
}, Ne = ["placeholder", "onKeydown"], Pe = /* @__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: Pe, emit: Fe }) {
|
|
123
|
-
let T = m, E = Fe, D = (e, { slots: t }) => e.wrap ? ee("div", { class: "nb-select__control" }, t.default?.()) : t.default?.();
|
|
124
|
-
D.props = ["wrap"];
|
|
125
|
-
let O = _(""), k = _(""), Ie = _(null);
|
|
126
|
-
function Le() {
|
|
127
|
-
let e = O.value.trim();
|
|
128
|
-
e && (E("create", e), O.value = "");
|
|
129
|
-
}
|
|
130
|
-
let A = _(!1), j = _(!1), M = _(-1), N = _(null), P = _(null), F = ce(), Re = () => (typeof T.anchor == "function" ? T.anchor() : T.anchor) ?? P.value ?? N.value;
|
|
131
|
-
function ze() {
|
|
132
|
-
(P.value ?? N.value?.querySelector("button, [tabindex]"))?.focus();
|
|
133
|
-
}
|
|
134
|
-
let I = _(null);
|
|
135
|
-
i(I);
|
|
136
|
-
let Be = _({
|
|
137
|
-
position: "fixed",
|
|
138
|
-
top: "0px",
|
|
139
|
-
left: "0px",
|
|
140
|
-
width: "0px",
|
|
141
|
-
zIndex: "9999"
|
|
142
|
-
}), Ve = `nb-select-${se()}`, L = s(() => T.id ?? Ve), R = s(() => `${L.value}-listbox`), He = (e) => `${L.value}-option-${e}`, z = s(() => T.modelValue == null ? [] : Array.isArray(T.modelValue) ? T.modelValue : [T.modelValue]), B = s(() => {
|
|
143
|
-
if (!(T.multiple || z.value.length !== 1)) return (T.options ?? []).find((e) => e.value === z.value[0])?.icon;
|
|
144
|
-
}), V = s(() => {
|
|
145
|
-
if (z.value.length === 0) return "";
|
|
146
|
-
let e = T.options ?? [];
|
|
147
|
-
return T.multiple ? z.value.length === 1 ? e.find((e) => e.value === z.value[0])?.label ?? String(z.value[0]) : z.value.length === 2 ? z.value.map((t) => e.find((e) => e.value === t)?.label ?? String(t)).join(", ") : `${z.value.length} selected` : e.find((e) => e.value === z.value[0])?.label ?? String(z.value[0]);
|
|
148
|
-
});
|
|
149
|
-
function H(e) {
|
|
150
|
-
return z.value.includes(e);
|
|
151
|
-
}
|
|
152
|
-
let Ue = (e) => e.normalize("NFD").replace(/\p{M}/gu, "").toLowerCase(), U = s(() => {
|
|
153
|
-
let e = T.options ?? [], t = T.searchable ? Ue(k.value.trim()) : "", n = /* @__PURE__ */ new Set();
|
|
154
|
-
return e.forEach((e, r) => {
|
|
155
|
-
(!t || Ue(e.label).includes(t)) && n.add(r);
|
|
156
|
-
}), n;
|
|
157
|
-
}), We = s(() => {
|
|
158
|
-
let e = [];
|
|
159
|
-
return (T.options ?? []).forEach((t, n) => {
|
|
160
|
-
if (!U.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: `${L.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 W(e, t) {
|
|
174
|
-
let n = T.options ?? [];
|
|
175
|
-
for (let r = e + t; r >= 0 && r < n.length; r += t) if (!n[r].disabled && U.value.has(r)) return r;
|
|
176
|
-
return e;
|
|
177
|
-
}
|
|
178
|
-
function Ge(e) {
|
|
179
|
-
if (e.disabled) return;
|
|
180
|
-
let t;
|
|
181
|
-
if (T.multiple) {
|
|
182
|
-
let n = [...z.value], r = n.indexOf(e.value);
|
|
183
|
-
r >= 0 ? n.splice(r, 1) : n.push(e.value), t = n;
|
|
184
|
-
} else t = e.value, q();
|
|
185
|
-
E("update:modelValue", t), E("change", t);
|
|
186
|
-
}
|
|
187
|
-
function G() {
|
|
188
|
-
let e = Re();
|
|
189
|
-
if (!e) return;
|
|
190
|
-
let t = e.getBoundingClientRect(), n = I.value?.offsetHeight ?? 0, r = window.innerHeight - t.bottom, i = t.top, a = n > 0 && r < n && i > r, o = F.trigger ? Math.max(t.width, 240) : t.width, s = F.trigger ? Math.max(8, Math.min(t.left, window.innerWidth - o - 8)) : t.left;
|
|
191
|
-
Be.value = {
|
|
192
|
-
position: "fixed",
|
|
193
|
-
top: a ? `${t.top - n}px` : `${t.bottom}px`,
|
|
194
|
-
left: `${s}px`,
|
|
195
|
-
width: `${o}px`,
|
|
196
|
-
zIndex: "9999"
|
|
197
|
-
};
|
|
198
|
-
}
|
|
199
|
-
function K() {
|
|
200
|
-
if (T.disabled) return;
|
|
201
|
-
A.value = !0, G();
|
|
202
|
-
let e = T.options ?? [];
|
|
203
|
-
M.value = z.value.length > 0 ? Math.max(0, e.findIndex((e) => e.value === z.value[0])) : -1, ne(() => {
|
|
204
|
-
G(), Z(), Ie.value?.focus({ preventScroll: !0 });
|
|
205
|
-
});
|
|
206
|
-
}
|
|
207
|
-
function q() {
|
|
208
|
-
let e = !!I.value?.contains(document.activeElement);
|
|
209
|
-
A.value = !1, M.value = -1, k.value = "", e && ze();
|
|
210
|
-
}
|
|
211
|
-
function J() {
|
|
212
|
-
A.value ? q() : K();
|
|
213
|
-
}
|
|
214
|
-
function Y(e) {
|
|
215
|
-
let t = e.target, n = N.value?.contains(t) ?? !1, r = I.value?.contains(t) ?? !1;
|
|
216
|
-
!n && !r && q();
|
|
217
|
-
}
|
|
218
|
-
function X() {
|
|
219
|
-
A.value && G();
|
|
220
|
-
}
|
|
221
|
-
x(A, (e) => {
|
|
222
|
-
e ? (document.addEventListener("mousedown", Y), window.addEventListener("scroll", X, !0), window.addEventListener("resize", X)) : (document.removeEventListener("mousedown", Y), window.removeEventListener("scroll", X, !0), window.removeEventListener("resize", X));
|
|
223
|
-
}), ae(() => {
|
|
224
|
-
document.removeEventListener("mousedown", Y), window.removeEventListener("scroll", X, !0), window.removeEventListener("resize", X);
|
|
225
|
-
});
|
|
226
|
-
function Ke(e) {
|
|
227
|
-
let t = T.options ?? [];
|
|
228
|
-
if (!A.value) {
|
|
229
|
-
(e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), K());
|
|
230
|
-
return;
|
|
231
|
-
}
|
|
232
|
-
e.key === "Escape" ? (q(), e.preventDefault()) : e.key === "Tab" ? q() : e.key === "ArrowDown" ? (e.preventDefault(), M.value = W(M.value, 1), Z()) : e.key === "ArrowUp" ? (e.preventDefault(), M.value > 0 && (M.value = W(M.value, -1)), Z()) : (e.key === "Enter" || e.key === " ") && M.value >= 0 && (e.preventDefault(), Ge(t[M.value]));
|
|
233
|
-
}
|
|
234
|
-
function Z() {
|
|
235
|
-
ne(() => {
|
|
236
|
-
!I.value || M.value < 0 || I.value.querySelector(`[data-index="${M.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
237
|
-
});
|
|
238
|
-
}
|
|
239
|
-
x(k, () => {
|
|
240
|
-
if (!A.value) return;
|
|
241
|
-
let e = W(-1, 1);
|
|
242
|
-
M.value = e === -1 ? -1 : e, Z();
|
|
243
|
-
});
|
|
244
|
-
function qe(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
|
-
Ke(e);
|
|
254
|
-
}
|
|
255
|
-
let Je = s(() => ({
|
|
256
|
-
isOpen: A.value,
|
|
257
|
-
toggle: J,
|
|
258
|
-
open: K,
|
|
259
|
-
close: q,
|
|
260
|
-
attrs: {
|
|
261
|
-
"aria-expanded": A.value,
|
|
262
|
-
"aria-haspopup": "listbox",
|
|
263
|
-
"aria-controls": A.value ? R.value : void 0,
|
|
264
|
-
onClick: J
|
|
265
|
-
}
|
|
266
|
-
})), Q = s(() => T.clearable && !T.disabled && z.value.length > 0);
|
|
267
|
-
function $() {
|
|
268
|
-
let e = T.multiple ? [] : null;
|
|
269
|
-
q(), E("update:modelValue", e), E("change", e), ze();
|
|
270
|
-
}
|
|
271
|
-
let Ye = s(() => [
|
|
272
|
-
"nb-select",
|
|
273
|
-
`nb-select--${T.variant}`,
|
|
274
|
-
`nb-select--${T.size}`,
|
|
275
|
-
{
|
|
276
|
-
"nb-select--open": A.value,
|
|
277
|
-
"nb-select--focused": j.value && !A.value,
|
|
278
|
-
"nb-select--error": !!T.error,
|
|
279
|
-
"nb-select--warning": !T.error && !!T.warning,
|
|
280
|
-
"nb-select--multiple": T.multiple,
|
|
281
|
-
"nb-select--bare": !!F.trigger
|
|
282
|
-
}
|
|
283
|
-
]);
|
|
284
|
-
return Pe({
|
|
285
|
-
open: K,
|
|
286
|
-
close: q
|
|
287
|
-
}), (i, s) => (g(), u(a, null, [d("div", {
|
|
288
|
-
ref_key: "rootRef",
|
|
289
|
-
ref: N,
|
|
290
|
-
class: h(Ye.value),
|
|
291
|
-
onKeydown: Ke
|
|
292
|
-
}, [i.$slots.trigger ? v(i.$slots, "trigger", re(te({ key: 0 }, Je.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: L.value,
|
|
296
|
-
required: m.required,
|
|
297
|
-
disabled: m.disabled
|
|
298
|
-
}, {
|
|
299
|
-
default: S(() => [f(y(m.label), 1)]),
|
|
300
|
-
_: 1
|
|
301
|
-
}, 8, [
|
|
302
|
-
"for",
|
|
303
|
-
"required",
|
|
304
|
-
"disabled"
|
|
305
|
-
])) : l("", !0),
|
|
306
|
-
p(D, { wrap: m.clearable }, {
|
|
307
|
-
default: S(() => [d("button", {
|
|
308
|
-
id: L.value,
|
|
309
|
-
ref_key: "triggerRef",
|
|
310
|
-
ref: P,
|
|
311
|
-
type: "button",
|
|
312
|
-
class: "nb-select__trigger",
|
|
313
|
-
role: "combobox",
|
|
314
|
-
"aria-expanded": A.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: J,
|
|
320
|
-
onFocus: s[0] ||= (e) => j.value = !0,
|
|
321
|
-
onBlur: s[1] ||= (e) => j.value = !1
|
|
322
|
-
}, [
|
|
323
|
-
d("span", { class: h(["nb-select__value", {
|
|
324
|
-
"nb-select__value--placeholder": !V.value,
|
|
325
|
-
"nb-select__value--with-icon": !!B.value
|
|
326
|
-
}]) }, [B.value ? (g(), c(e, {
|
|
327
|
-
key: 0,
|
|
328
|
-
class: "nb-select__value-icon",
|
|
329
|
-
name: B.value,
|
|
330
|
-
size: 16
|
|
331
|
-
}, null, 8, ["name"])) : l("", !0), V.value ? v(i.$slots, "value", {
|
|
332
|
-
key: 1,
|
|
333
|
-
values: z.value
|
|
334
|
-
}, () => [f(y(V.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: S(() => [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: S(() => [f(y(m.warning), 1)]),
|
|
350
|
-
_: 1
|
|
351
|
-
})) : l("", !0),
|
|
352
|
-
Q.value ? (g(), u("span", he)) : l("", !0),
|
|
353
|
-
p(t, {
|
|
354
|
-
align: "center",
|
|
355
|
-
justify: "center",
|
|
356
|
-
class: "nb-select__caret"
|
|
357
|
-
}, {
|
|
358
|
-
default: S(() => [p(e, {
|
|
359
|
-
name: A.value ? b(fe) : b(de),
|
|
360
|
-
size: 16
|
|
361
|
-
}, null, 8, ["name"])]),
|
|
362
|
-
_: 1
|
|
363
|
-
})
|
|
364
|
-
], 40, me), 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] ||= C(w(() => {}, ["stop"]), ["enter"]), s[3] ||= C(w(() => {}, ["stop"]), ["space"])]
|
|
371
|
-
}, [p(e, {
|
|
372
|
-
name: b(pe),
|
|
373
|
-
size: 16
|
|
374
|
-
}, null, 8, ["name"])], 40, ge)) : 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: S(() => [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: S(() => [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: S(() => [f(y(m.helper), 1)]),
|
|
397
|
-
_: 1
|
|
398
|
-
})) : l("", !0)
|
|
399
|
-
], 64)) : m.variant === "fluid" ? (g(), u(a, { key: 2 }, [p(D, { wrap: m.clearable }, {
|
|
400
|
-
default: S(() => [d("button", {
|
|
401
|
-
id: L.value,
|
|
402
|
-
ref_key: "triggerRef",
|
|
403
|
-
ref: P,
|
|
404
|
-
type: "button",
|
|
405
|
-
class: "nb-select__trigger",
|
|
406
|
-
role: "combobox",
|
|
407
|
-
"aria-expanded": A.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: J,
|
|
413
|
-
onFocus: s[4] ||= (e) => j.value = !0,
|
|
414
|
-
onBlur: s[5] ||= (e) => j.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: S(() => [i.$slots.label ? v(i.$slots, "label", { key: 0 }) : (g(), u("label", ve, [f(y(m.label) + " ", 1), m.required ? (g(), u("span", ye, "*")) : 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: S(() => [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: S(() => [
|
|
439
|
-
d("span", { class: h(["nb-select__value", {
|
|
440
|
-
"nb-select__value--placeholder": !V.value,
|
|
441
|
-
"nb-select__value--with-icon": !!B.value
|
|
442
|
-
}]) }, [B.value ? (g(), c(e, {
|
|
443
|
-
key: 0,
|
|
444
|
-
class: "nb-select__value-icon",
|
|
445
|
-
name: B.value,
|
|
446
|
-
size: 16
|
|
447
|
-
}, null, 8, ["name"])) : l("", !0), V.value ? v(i.$slots, "value", {
|
|
448
|
-
key: 1,
|
|
449
|
-
values: z.value
|
|
450
|
-
}, () => [f(y(V.value), 1)]) : (g(), u(a, { key: 2 }, [f(y(m.placeholder), 1)], 64))], 2),
|
|
451
|
-
Q.value ? (g(), u("span", be)) : l("", !0),
|
|
452
|
-
p(t, {
|
|
453
|
-
align: "center",
|
|
454
|
-
justify: "center",
|
|
455
|
-
class: "nb-select__caret"
|
|
456
|
-
}, {
|
|
457
|
-
default: S(() => [p(e, {
|
|
458
|
-
name: A.value ? b(fe) : b(de),
|
|
459
|
-
size: 16
|
|
460
|
-
}, null, 8, ["name"])]),
|
|
461
|
-
_: 1
|
|
462
|
-
})
|
|
463
|
-
]),
|
|
464
|
-
_: 3
|
|
465
|
-
})], 40, _e), 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] ||= C(w(() => {}, ["stop"]), ["enter"]), s[7] ||= C(w(() => {}, ["stop"]), ["space"])]
|
|
472
|
-
}, [p(e, {
|
|
473
|
-
name: b(pe),
|
|
474
|
-
size: 16
|
|
475
|
-
}, null, 8, ["name"])], 40, xe)) : 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: S(() => [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: S(() => [f(y(m.warning), 1)]),
|
|
490
|
-
_: 1
|
|
491
|
-
})) : l("", !0)], 64)) : l("", !0)], 34), (g(), c(o, { to: "body" }, [A.value ? (g(), u("div", {
|
|
492
|
-
key: 0,
|
|
493
|
-
id: R.value,
|
|
494
|
-
ref_key: "dropdownRef",
|
|
495
|
-
ref: I,
|
|
496
|
-
class: h(["nb-select__dropdown", {
|
|
497
|
-
"nb-select__dropdown--check": m.selectedMark === "check",
|
|
498
|
-
"nb-select__dropdown--anchored": !!i.$slots.trigger
|
|
499
|
-
}]),
|
|
500
|
-
style: ie(Be.value),
|
|
501
|
-
role: "listbox",
|
|
502
|
-
"aria-multiselectable": m.multiple || void 0
|
|
503
|
-
}, [
|
|
504
|
-
m.searchable ? (g(), u("div", Ce, [ue(d("input", {
|
|
505
|
-
ref_key: "searchRef",
|
|
506
|
-
ref: Ie,
|
|
507
|
-
"onUpdate:modelValue": s[8] ||= (e) => k.value = e,
|
|
508
|
-
type: "search",
|
|
509
|
-
class: "nb-select__search-input",
|
|
510
|
-
autocomplete: "off",
|
|
511
|
-
spellcheck: "false",
|
|
512
|
-
placeholder: m.searchPlaceholder,
|
|
513
|
-
"aria-label": m.searchPlaceholder,
|
|
514
|
-
"aria-controls": R.value,
|
|
515
|
-
"aria-activedescendant": M.value >= 0 ? He(M.value) : void 0,
|
|
516
|
-
onKeydown: qe
|
|
517
|
-
}, null, 40, we), [[le, k.value]])])) : l("", !0),
|
|
518
|
-
(g(!0), u(a, null, oe(We.value, (t) => (g(), u("div", {
|
|
519
|
-
key: t.key,
|
|
520
|
-
class: "nb-select__group",
|
|
521
|
-
role: "group",
|
|
522
|
-
"aria-labelledby": t.name ? t.labelId : void 0
|
|
523
|
-
}, [t.name ? (g(), u("div", {
|
|
524
|
-
key: 0,
|
|
525
|
-
id: t.labelId,
|
|
526
|
-
class: "nb-select__group-label"
|
|
527
|
-
}, y(t.name), 9, Ee)) : l("", !0), (g(!0), u(a, null, oe(t.entries, (t) => (g(), u("div", {
|
|
528
|
-
id: He(t.index),
|
|
529
|
-
key: t.option.value,
|
|
530
|
-
"data-index": t.index,
|
|
531
|
-
class: h(["nb-select__option", {
|
|
532
|
-
"nb-select__option--selected": H(t.option.value),
|
|
533
|
-
"nb-select__option--highlighted": M.value === t.index,
|
|
534
|
-
"nb-select__option--disabled": t.option.disabled
|
|
535
|
-
}]),
|
|
536
|
-
role: "option",
|
|
537
|
-
"aria-selected": H(t.option.value),
|
|
538
|
-
"aria-disabled": t.option.disabled || void 0,
|
|
539
|
-
onMouseenter: (e) => M.value = t.index,
|
|
540
|
-
onClick: (e) => Ge(t.option)
|
|
541
|
-
}, [
|
|
542
|
-
m.multiple || m.selectedMark === "check" ? (g(), u("span", Oe, [H(t.option.value) ? (g(), u("svg", ke, [...s[12] ||= [d("path", {
|
|
543
|
-
d: "M1 4l3 3 5-6",
|
|
544
|
-
stroke: "currentColor",
|
|
545
|
-
"stroke-width": "1.5",
|
|
546
|
-
"stroke-linecap": "round",
|
|
547
|
-
"stroke-linejoin": "round"
|
|
548
|
-
}, null, -1)]])) : l("", !0)])) : l("", !0),
|
|
549
|
-
t.option.icon ? (g(), c(e, {
|
|
550
|
-
key: 1,
|
|
551
|
-
class: "nb-select__option-icon",
|
|
552
|
-
name: t.option.icon,
|
|
553
|
-
size: 16
|
|
554
|
-
}, null, 8, ["name"])) : l("", !0),
|
|
555
|
-
d("span", Ae, [v(i.$slots, "option", { option: t.option }, () => [f(y(t.option.label), 1)])])
|
|
556
|
-
], 42, De))), 128))], 8, Te))), 128)),
|
|
557
|
-
!m.options || m.options.length === 0 ? (g(), u("div", je, " No options ")) : m.searchable && U.value.size === 0 ? (g(), u("div", Me, y(m.noResultsLabel), 1)) : l("", !0),
|
|
558
|
-
m.creatable ? (g(), u("div", {
|
|
559
|
-
key: 3,
|
|
560
|
-
class: "nb-select__create",
|
|
561
|
-
onMousedown: s[11] ||= w(() => {}, ["prevent"])
|
|
562
|
-
}, [ue(d("input", {
|
|
563
|
-
"onUpdate:modelValue": s[9] ||= (e) => O.value = e,
|
|
564
|
-
type: "text",
|
|
565
|
-
class: "nb-select__create-input",
|
|
566
|
-
placeholder: m.createPlaceholder || "Add new…",
|
|
567
|
-
onKeydown: [C(w(Le, ["prevent"]), ["enter"]), s[10] ||= w(() => {}, ["stop"])]
|
|
568
|
-
}, null, 40, Ne), [[le, O.value]])], 32)) : l("", !0)
|
|
569
|
-
], 14, Se)) : l("", !0)]))], 64));
|
|
570
|
-
}
|
|
571
|
-
});
|
|
572
|
-
//#endregion
|
|
573
|
-
export { Pe as t };
|