@nubisco/ui 5.52.2 → 5.54.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/{ActionGroup-McCtSDV8.cjs → ActionGroup-0rG92kFk.cjs} +1 -1
- package/dist/{ActionGroup-CkwZEnUN.js → ActionGroup-Cn22xj1t.js} +2 -2
- package/dist/{AiLabel-oV9j_9bX.cjs → AiLabel-AGSSBanb.cjs} +1 -1
- package/dist/{AiLabel-DKhHwWNt.js → AiLabel-D32aNf1F.js} +1 -1
- package/dist/{AiProvider-GiId484Q.cjs → AiProvider-CLtCD_UR.cjs} +1 -1
- package/dist/{AiProvider-D1Sn67yz.js → AiProvider-gprbR5ts.js} +14 -14
- package/dist/{AiUsage-C2t5uXV-.cjs → AiUsage-XOKmuxyo.cjs} +1 -1
- package/dist/{AiUsage-eY9pNKxE.js → AiUsage-v8EdG3EN.js} +2 -2
- package/dist/{BackToTop-DumUwoJ1.js → BackToTop-BDFb1y3c.js} +1 -1
- package/dist/{BackToTop-DQ6vCoQu.cjs → BackToTop-R6yiw3lt.cjs} +1 -1
- package/dist/{Banner-FWDVwwVx.js → Banner-BjnbX4C3.js} +5 -5
- package/dist/{Banner-DTIRkPRb.cjs → Banner-C-mikJ5n.cjs} +1 -1
- package/dist/{BarChart-DKpSrGm3.cjs → BarChart-CVoLmSKs.cjs} +1 -1
- package/dist/{BarChart-hs_OZZD4.js → BarChart-GO-rGcKL.js} +5 -5
- package/dist/{BatchActions-DmMLy_y-.cjs → BatchActions-6IO5GRFm.cjs} +1 -1
- package/dist/{BatchActions-B5hv7U0E.js → BatchActions-Ckx8kyZt.js} +2 -2
- package/dist/Blueprint-BDPb5y1N.cjs +1 -0
- package/dist/Blueprint-DEboZ8ul.js +1538 -0
- package/dist/{BlueprintCard-Ce48mEtN.js → BlueprintCard-BO2pjY2S.js} +206 -162
- package/dist/BlueprintCard-CDxodt3T.cjs +1 -0
- package/dist/{BlueprintControls-DQE_gDOe.js → BlueprintControls-Bt4KoDp5.js} +5 -5
- package/dist/{BlueprintControls-C0V9FX8S.cjs → BlueprintControls-zX5yxOB1.cjs} +1 -1
- package/dist/{Board-DyAO3ko2.js → Board-BdqGOVNF.js} +1 -1
- package/dist/{Board-Htlm-mra.cjs → Board-DtOWyvKh.cjs} +1 -1
- package/dist/{BottomPanel-Dad7czGY.cjs → BottomPanel-C_u39INJ.cjs} +1 -1
- package/dist/{BottomPanel-BsfMrQaS.js → BottomPanel-CkEc9gvb.js} +1 -1
- package/dist/{Breadcrumbs-DrXxTJB4.js → Breadcrumbs-Bc-acmPE.js} +2 -2
- package/dist/{Breadcrumbs-Ck445rx6.cjs → Breadcrumbs-BzyDVvEk.cjs} +1 -1
- package/dist/{Briefing-nJ0LjXnp.js → Briefing-BiEICh1u.js} +3 -3
- package/dist/{Briefing-UMUWCsHh.cjs → Briefing-DwKWCOGm.cjs} +1 -1
- package/dist/{BriefingDestination-BMsPXWd6.js → BriefingDestination-BjNteNgh.js} +1 -1
- package/dist/{BriefingDestination-B2_e90ZN.cjs → BriefingDestination-Cs1y3z_5.cjs} +1 -1
- package/dist/Button-CGIbF1e-.cjs +1 -0
- package/dist/{Button-CxJMKPpw.js → Button-DmJ_J3UO.js} +55 -53
- package/dist/{ButtonSet-2vJioRDT.js → ButtonSet-Cg1ixzOK.js} +1 -1
- package/dist/{ButtonSet-CbR2EwbT.cjs → ButtonSet-SziuuT6_.cjs} +1 -1
- package/dist/{Calendar-C_UWF6F5.js → Calendar-fVDg_EgD.js} +1 -1
- package/dist/{Calendar-BKJoim3w.cjs → Calendar-fsZN4OIr.cjs} +1 -1
- package/dist/ChatMessage-1L_xCXZF.cjs +1 -0
- package/dist/ChatMessage-C2Ecm175.js +66 -0
- package/dist/ChatThread-B_F3xTdE.cjs +1 -0
- package/dist/ChatThread-COdOb1rH.js +154 -0
- package/dist/{Checkbox-B6qnpOXg.cjs → Checkbox-B2O4tB6x.cjs} +1 -1
- package/dist/{Checkbox-Bf3XzGbG.js → Checkbox-U1tS47Qx.js} +1 -1
- package/dist/{CheckboxGroup-C3ng8k3R.js → CheckboxGroup-DRQxWsVv.js} +2 -2
- package/dist/{CheckboxGroup-BG1efn5_.cjs → CheckboxGroup-md4kjLSp.cjs} +1 -1
- package/dist/{CloseButton-D0Aj3uQK.cjs → CloseButton-Bdk7rJ8E.cjs} +1 -1
- package/dist/{CloseButton-BeaS7MQc.js → CloseButton-CAPfd6yf.js} +1 -1
- package/dist/{ColorStrip-BaLKZV51.js → ColorStrip-CZcIHOg3.js} +14 -14
- package/dist/{ColorStrip-D6p71EPQ.cjs → ColorStrip-EDliYkMo.cjs} +1 -1
- package/dist/{CommandPalette-CI31tVG0.cjs → CommandPalette-CC_Aj4Uh.cjs} +1 -1
- package/dist/{CommandPalette-Co6sxIQz.js → CommandPalette-zqTMjpm8.js} +1 -1
- package/dist/{Confirm-jHGXPMJE.cjs → Confirm-Baz2WG7b.cjs} +1 -1
- package/dist/{Confirm-CJQsUNOq.js → Confirm-CvMuXK9Q.js} +4 -4
- package/dist/{ContentSwitcher-B96jZqzZ.cjs → ContentSwitcher-DYxJZdcm.cjs} +1 -1
- package/dist/{ContentSwitcher-DCB9W7wd.js → ContentSwitcher-NpFxiGbz.js} +1 -1
- package/dist/{CopyButton-DMuuBwJc.cjs → CopyButton-D-cnpfOJ.cjs} +1 -1
- package/dist/{CopyButton-CfEOWedU.js → CopyButton-MOJj3pS0.js} +1 -1
- package/dist/{DataTable-CA_p6GdD.js → DataTable-B8THDBLS.js} +12 -12
- package/dist/{DataTable-DNAUGxuj.cjs → DataTable-DeFzOlcP.cjs} +1 -1
- package/dist/{DatePicker-l-HrmC9V.cjs → DatePicker-B5YRb64p.cjs} +1 -1
- package/dist/{DatePicker-DKNte5ZT.js → DatePicker-BrUXcNUj.js} +18 -18
- package/dist/{FileUploader-CYa_FX-W.js → FileUploader-CcGdRBxp.js} +1 -1
- package/dist/{FileUploader-DCTMJY5p.cjs → FileUploader-CcieVEGZ.cjs} +1 -1
- package/dist/{Form-Co-23Ktg.js → Form-BztycGqC.js} +1 -1
- package/dist/{Form-Bc4QF6Lk.cjs → Form-DlzhKRWM.cjs} +1 -1
- package/dist/{GanttChart-D24__YLV.cjs → GanttChart-BiDTXqR1.cjs} +1 -1
- package/dist/{GanttChart-C70BwZZo.js → GanttChart-CFGdp4xL.js} +3 -3
- package/dist/{ImageCropper-3omi5zWi.cjs → ImageCropper-CgmDT83u.cjs} +1 -1
- package/dist/{ImageCropper-lLgzrsWr.js → ImageCropper-D61PEzb2.js} +2 -2
- package/dist/{ImagePicker-DOnGfEc6.js → ImagePicker-LhpR7jjR.js} +2 -2
- package/dist/{ImagePicker-4LRkWaLL.cjs → ImagePicker-vhg7b-UL.cjs} +1 -1
- package/dist/{InlineLoading-BovtIkg7.cjs → InlineLoading-CA0_IT29.cjs} +1 -1
- package/dist/{InlineLoading-CNetV7ih.js → InlineLoading-Cknqq0vv.js} +4 -4
- package/dist/{InputGroup-BHOJSSQ_.cjs → InputGroup-CjcEkzFL.cjs} +1 -1
- package/dist/{InputGroup-OytJ8AMk.js → InputGroup-Dgv9hKmM.js} +5 -5
- package/dist/{InterpolationChart-DnHzBcLG.cjs → InterpolationChart-BWFOnJWn.cjs} +1 -1
- package/dist/{InterpolationChart-Cohmbfep.js → InterpolationChart-CiY-hBgJ.js} +3 -3
- package/dist/{LineChart-BNhJBKO6.cjs → LineChart-BdVIHw3u.cjs} +1 -1
- package/dist/{LineChart-lMX9rTr7.js → LineChart-D0h0rBVq.js} +5 -5
- package/dist/LogView-BLa9W5S7.js +136 -0
- package/dist/LogView-BNztzJri.cjs +2 -0
- package/dist/{Message-BJO4MjiQ.cjs → Message-B1CQ0Bcf.cjs} +1 -1
- package/dist/{Message-DCeg8qsC.js → Message-Bi70NgGd.js} +6 -6
- package/dist/{Modal-BywbXivu.js → Modal-CESCi2dE.js} +10 -10
- package/dist/{Modal-GsDlHF-E.cjs → Modal-C_EWDvmH.cjs} +1 -1
- package/dist/{NotificationCenter-4MBTSGRl.js → NotificationCenter-DkGc0ETD.js} +209 -209
- package/dist/{NotificationCenter-BuVz7oP1.cjs → NotificationCenter-DxZgHQyt.cjs} +1 -1
- package/dist/{NotificationCenterItem-zIL89umA.cjs → NotificationCenterItem--0XKF1Bf.cjs} +1 -1
- package/dist/{NotificationCenterItem-DdH7jvvg.js → NotificationCenterItem-Hf0S6Jls.js} +6 -6
- package/dist/{NumberInput-DmKNMQLk.js → NumberInput-B91ahziS.js} +5 -5
- package/dist/{NumberInput-04v9eS0u.cjs → NumberInput-DLPSNgsr.cjs} +1 -1
- package/dist/{OverflowMenu-DXJ8waZo.js → OverflowMenu-BWZ7c8oI.js} +1 -1
- package/dist/{OverflowMenu-CWgdicDN.cjs → OverflowMenu-C8q28FrD.cjs} +1 -1
- package/dist/{PageHeader-8n0wHC1J.cjs → PageHeader-DElq_kdh.cjs} +1 -1
- package/dist/{PageHeader-ChUje7zF.js → PageHeader-DOYN9sto.js} +1 -1
- package/dist/{Pagination-CvvzkY1W.cjs → Pagination-9mPN8ych.cjs} +1 -1
- package/dist/{Pagination-DccRxFxs.js → Pagination-CxBHFwy0.js} +2 -2
- package/dist/{PieChart-Be8RVmz0.js → PieChart-BgDtTMZg.js} +4 -4
- package/dist/{PieChart-0_n0Ihir.cjs → PieChart-WU4Cxtrp.cjs} +1 -1
- package/dist/{ProgressBar-C-mDH8u0.js → ProgressBar-B2ZMiY12.js} +4 -4
- package/dist/{ProgressBar-BSPcsJ13.cjs → ProgressBar-BSqwVfaP.cjs} +1 -1
- package/dist/{Radio-LlTK1Sug.cjs → Radio-BJ4SLyFW.cjs} +1 -1
- package/dist/{Radio-q_unHymB.js → Radio-CfJTD69M.js} +1 -1
- package/dist/{Search-CI787J6m.js → Search-Bwdxxe29.js} +2 -2
- package/dist/{Search-BxYPouus.cjs → Search-DIZ1Ea45.cjs} +1 -1
- package/dist/Select-7gJ3_fWh.js +615 -0
- package/dist/Select-Dg4HSHOu.cjs +1 -0
- package/dist/{Shell-Btxqmkh-.cjs → Shell-BZslT2aj.cjs} +1 -1
- package/dist/{Shell-nNxGdcuI.js → Shell-CRmhoU2H.js} +2 -2
- package/dist/{ShellPanel-D1-l6JRg.js → ShellPanel-C4vQJmRI.js} +1 -1
- package/dist/{ShellPanel-BeTojwfU.cjs → ShellPanel-DUBq5BL6.cjs} +1 -1
- package/dist/SidebarBrand-BPInsf52.cjs +1 -0
- package/dist/SidebarBrand-Dp9YZCqy.js +54 -0
- package/dist/{SidebarCollapseToggle-DobruD4n.cjs → SidebarCollapseToggle-CABmF-PC.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-BLY8EEaD.js → SidebarCollapseToggle-DraqbhwM.js} +2 -2
- package/dist/{SidebarHeaderToggle-TwULd9e3.cjs → SidebarHeaderToggle-DB2Q6u5x.cjs} +1 -1
- package/dist/{SidebarHeaderToggle-BVfhMhvD.js → SidebarHeaderToggle-DbUS4eEa.js} +1 -1
- package/dist/SidebarMenuItem-DQRQtqrp.js +300 -0
- package/dist/SidebarMenuItem-Dwk7vKN5.cjs +1 -0
- package/dist/{Skeleton-CUUa44lM.cjs → Skeleton-D46kzIzB.cjs} +1 -1
- package/dist/{Skeleton-DI7l_96J.js → Skeleton-DFi5DNiP.js} +1 -1
- package/dist/{Slider-D7BgYMeu.js → Slider-B6QXQMqb.js} +8 -8
- package/dist/{Slider-CtN6andn.cjs → Slider-B7m_luyq.cjs} +1 -1
- package/dist/{Sparkline-0CmemDu3.js → Sparkline-B9547TtT.js} +1 -1
- package/dist/{Sparkline-ByPgkuSC.cjs → Sparkline-DfiriQYp.cjs} +1 -1
- package/dist/{Spinner-D_6qJT6u.js → Spinner-DYFhiTB1.js} +1 -1
- package/dist/{Spinner-BDwIIS4H.cjs → Spinner-j13gRoUF.cjs} +1 -1
- package/dist/{Stat-BiuBoOoE.cjs → Stat-BCvXYr-z.cjs} +1 -1
- package/dist/{Stat-C_Z2D-TS.js → Stat-No3RhGB3.js} +1 -1
- package/dist/{Stepper-CARQL6xx.cjs → Stepper-CoLXwmrJ.cjs} +1 -1
- package/dist/{Stepper-BG9PfjPD.js → Stepper-pk0QfMn_.js} +1 -1
- package/dist/{StepperStep-C7F_8ErM.js → StepperStep-BGUqRHwQ.js} +1 -1
- package/dist/{StepperStep-DHsfAMv0.cjs → StepperStep-Bo8aYLjJ.cjs} +1 -1
- package/dist/{SuggestionList-BT-xOJBx.cjs → SuggestionList-Cxy4jjjd.cjs} +1 -1
- package/dist/{SuggestionList-Cm0pD7_C.js → SuggestionList-Dv4yQAi-.js} +15 -15
- package/dist/{Switch-CqLfdT_m.js → Switch-Bvt-JPWp.js} +4 -4
- package/dist/{Switch-CQj6AsQh.cjs → Switch-PBdutuj_.cjs} +1 -1
- package/dist/{TableOfContents-B7Qmz4t9.js → TableOfContents-CeZX4dH0.js} +1 -1
- package/dist/{TableOfContents-IQordoiY.cjs → TableOfContents-D9FCu6gN.cjs} +1 -1
- package/dist/{Tabs-W2hUdYvl.cjs → Tabs-C9bZ5cp1.cjs} +1 -1
- package/dist/{Tabs-D_LFyWTX.js → Tabs-CCVuHp4s.js} +1 -1
- package/dist/{TextInput-DG8aUZeu.js → TextInput-BeqDf1R7.js} +12 -12
- package/dist/{TextInput-r8ap24-5.cjs → TextInput-SJ34hD2Y.cjs} +2 -2
- package/dist/{Toast-yB4u936W.cjs → Toast-CN5Jzkr5.cjs} +1 -1
- package/dist/{Toast-CpdX-63Q.js → Toast-DIf2XRCa.js} +8 -8
- package/dist/{Toaster-XMqkamDu.js → Toaster-ByObLDkk.js} +1 -1
- package/dist/{Toaster-BqCi69_x.cjs → Toaster-CJAbZ9pv.cjs} +1 -1
- package/dist/{Tree-hitkY9yg.cjs → Tree-BhR3gNlT.cjs} +1 -1
- package/dist/{Tree-Nn3HGP-T.js → Tree-CW-735rp.js} +1 -1
- package/dist/{TreeNode-giUfunjf.js → TreeNode-BGVvJ76v.js} +1 -1
- package/dist/{TreeNode-DHSYezap.cjs → TreeNode-Dx8SKr1Z.cjs} +1 -1
- package/dist/UserMenu-BjSO_Uml.cjs +1 -0
- package/dist/{UserMenu-C52WN7-m.js → UserMenu-CjmhyTwN.js} +56 -48
- package/dist/{Video-B0FTFBYF.js → Video-Agby8uRA.js} +1 -1
- package/dist/{Video-DxTpvMsS.cjs → Video-B93sRbBU.cjs} +1 -1
- package/dist/{Walkthrough-BRtkSFsq.js → Walkthrough-DYYqtpwJ.js} +2 -2
- package/dist/{Walkthrough-DO75HV1w.cjs → Walkthrough-DxAIdo3M.cjs} +1 -1
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +282 -276
- package/dist/blueprint-connect-DyenBFX3.cjs +1 -0
- package/dist/blueprint-connect-dcuHxtzp.js +6 -0
- package/dist/component-styles.json +23 -0
- package/dist/components/ActionGroup.cjs +1 -1
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/AiProvider.cjs +1 -1
- package/dist/components/AiProvider.mjs +1 -1
- package/dist/components/AiUsage.cjs +1 -1
- package/dist/components/AiUsage.mjs +1 -1
- package/dist/components/AiUsage.vue.d.ts +1 -1
- package/dist/components/BackToTop.cjs +1 -1
- package/dist/components/BackToTop.mjs +1 -1
- package/dist/components/Badge.cjs +1 -1
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/Badge.vue.d.ts +1 -1
- package/dist/components/Banner.cjs +1 -1
- package/dist/components/Banner.mjs +1 -1
- package/dist/components/BatchActions.cjs +1 -1
- package/dist/components/BatchActions.mjs +1 -1
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/Blueprint.types.d.ts +58 -1
- package/dist/components/Blueprint.types.d.ts.map +1 -1
- package/dist/components/Blueprint.vue.d.ts +1 -0
- package/dist/components/Blueprint.vue.d.ts.map +1 -1
- package/dist/components/BlueprintBackground.cjs +1 -1
- package/dist/components/BlueprintBackground.mjs +1 -1
- package/dist/components/BlueprintCard.cjs +1 -1
- package/dist/components/BlueprintCard.mjs +1 -1
- package/dist/components/BlueprintCard.types.d.ts +35 -5
- package/dist/components/BlueprintCard.types.d.ts.map +1 -1
- package/dist/components/BlueprintCard.vue.d.ts +1 -0
- package/dist/components/BlueprintCard.vue.d.ts.map +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/BlueprintControls.vue.d.ts.map +1 -1
- package/dist/components/BlueprintMinimap.cjs +1 -1
- package/dist/components/BlueprintMinimap.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.context.d.ts +21 -0
- package/dist/components/Button.context.d.ts.map +1 -0
- package/dist/components/Button.d.ts +10 -0
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts +1 -0
- package/dist/components/Button.vue.d.ts.map +1 -1
- package/dist/components/ButtonSet.cjs +1 -1
- package/dist/components/ButtonSet.mjs +1 -1
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Charts/BarChart.cjs +1 -1
- package/dist/components/Charts/BarChart.mjs +1 -1
- package/dist/components/Charts/GanttChart.cjs +1 -1
- package/dist/components/Charts/GanttChart.mjs +1 -1
- package/dist/components/Charts/InterpolationChart.cjs +1 -1
- package/dist/components/Charts/InterpolationChart.mjs +1 -1
- package/dist/components/Charts/LineChart.cjs +1 -1
- package/dist/components/Charts/LineChart.mjs +1 -1
- package/dist/components/Charts/PieChart.cjs +1 -1
- package/dist/components/Charts/PieChart.mjs +1 -1
- package/dist/components/Charts/Sparkline.cjs +1 -1
- package/dist/components/Charts/Sparkline.mjs +1 -1
- package/dist/components/ChatMessage.cjs +1 -0
- package/dist/components/ChatMessage.d.ts +49 -0
- package/dist/components/ChatMessage.mjs +2 -0
- package/dist/components/ChatMessage.vue.d.ts +32 -0
- package/dist/components/ChatMessage.vue.d.ts.map +1 -0
- package/dist/components/ChatThread.cjs +1 -0
- package/dist/components/ChatThread.d.ts +62 -0
- package/dist/components/ChatThread.mjs +2 -0
- package/dist/components/ChatThread.vue.d.ts +49 -0
- package/dist/components/ChatThread.vue.d.ts.map +1 -0
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/ChipGroup.cjs +1 -1
- package/dist/components/ChipGroup.mjs +1 -1
- package/dist/components/CloseButton.cjs +1 -1
- package/dist/components/CloseButton.mjs +1 -1
- package/dist/components/ColorStrip.cjs +1 -1
- package/dist/components/ColorStrip.mjs +1 -1
- package/dist/components/CommandPalette.cjs +1 -1
- package/dist/components/CommandPalette.mjs +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/Confirm.vue.d.ts +1 -1
- package/dist/components/ContainedList.cjs +1 -1
- package/dist/components/ContainedList.mjs +1 -1
- package/dist/components/ContainedListItem.cjs +1 -1
- package/dist/components/ContainedListItem.mjs +1 -1
- package/dist/components/ContentSwitcher.cjs +1 -1
- package/dist/components/ContentSwitcher.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/DatePicker.vue.d.ts +1 -1
- package/dist/components/DefinitionList.cjs +1 -1
- package/dist/components/DefinitionList.mjs +1 -1
- package/dist/components/DefinitionListItem.cjs +1 -1
- package/dist/components/DefinitionListItem.mjs +1 -1
- package/dist/components/DragHandle.cjs +1 -1
- package/dist/components/DragHandle.mjs +1 -1
- package/dist/components/EmptyState.cjs +1 -1
- package/dist/components/EmptyState.mjs +1 -1
- package/dist/components/Field.cjs +1 -1
- package/dist/components/Field.mjs +1 -1
- package/dist/components/FileUploader.cjs +1 -1
- package/dist/components/FileUploader.mjs +1 -1
- package/dist/components/Flag.cjs +1 -1
- package/dist/components/Flag.mjs +1 -1
- package/dist/components/FloatingToolbar.cjs +1 -1
- package/dist/components/FloatingToolbar.mjs +1 -1
- package/dist/components/Form.cjs +1 -1
- package/dist/components/Form.mjs +1 -1
- package/dist/components/Grid.cjs +1 -1
- package/dist/components/Grid.mjs +1 -1
- package/dist/components/ImageCropper.cjs +1 -1
- package/dist/components/ImageCropper.mjs +1 -1
- package/dist/components/ImagePicker.cjs +1 -1
- package/dist/components/ImagePicker.mjs +1 -1
- package/dist/components/InlineEdit.cjs +1 -1
- package/dist/components/InlineEdit.mjs +1 -1
- package/dist/components/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/InlineLoading.vue.d.ts +1 -1
- package/dist/components/InputGroup.cjs +1 -1
- package/dist/components/InputGroup.mjs +1 -1
- package/dist/components/JsonTree.cjs +1 -1
- package/dist/components/JsonTree.mjs +1 -1
- package/dist/components/Layer.cjs +1 -1
- package/dist/components/Layer.mjs +1 -1
- package/dist/components/LogView.cjs +1 -0
- package/dist/components/LogView.d.ts +75 -0
- package/dist/components/LogView.mjs +2 -0
- package/dist/components/LogView.vue.d.ts +27 -0
- package/dist/components/LogView.vue.d.ts.map +1 -0
- package/dist/components/MenuBar.cjs +1 -1
- package/dist/components/MenuBar.mjs +1 -1
- package/dist/components/MenuBarItem.cjs +1 -1
- package/dist/components/MenuBarItem.mjs +1 -1
- package/dist/components/MenuDivider.cjs +1 -1
- package/dist/components/MenuDivider.mjs +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/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenterItem.cjs +1 -1
- package/dist/components/NotificationCenterItem.mjs +1 -1
- package/dist/components/NotificationCenterItem.vue.d.ts +1 -1
- package/dist/components/NubiscoMark.cjs +1 -1
- package/dist/components/NubiscoMark.mjs +1 -1
- package/dist/components/NubiscoPlatformMark.cjs +1 -1
- package/dist/components/NubiscoPlatformMark.mjs +1 -1
- package/dist/components/NumberInput.cjs +1 -1
- package/dist/components/NumberInput.mjs +1 -1
- package/dist/components/NumberInput.vue.d.ts +1 -1
- package/dist/components/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/OverflowMenu.cjs +1 -1
- package/dist/components/OverflowMenu.mjs +1 -1
- package/dist/components/PageHeader.cjs +1 -1
- package/dist/components/PageHeader.mjs +1 -1
- package/dist/components/PageLayout.cjs +1 -1
- package/dist/components/PageLayout.mjs +1 -1
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/Panel.cjs +1 -1
- package/dist/components/Panel.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/ReorderList.cjs +1 -1
- package/dist/components/ReorderList.mjs +1 -1
- package/dist/components/Search.cjs +1 -1
- package/dist/components/Search.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/Shell.cjs +1 -1
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/ShellPanel.cjs +1 -1
- package/dist/components/ShellPanel.mjs +1 -1
- package/dist/components/SidebarBrand.cjs +1 -1
- package/dist/components/SidebarBrand.d.ts +11 -0
- package/dist/components/SidebarBrand.mjs +1 -1
- package/dist/components/SidebarBrand.vue.d.ts +1 -0
- package/dist/components/SidebarBrand.vue.d.ts.map +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/SidebarMenu.cjs +1 -1
- package/dist/components/SidebarMenu.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.d.ts +16 -0
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/SidebarMenuItem.vue.d.ts +2 -0
- package/dist/components/SidebarMenuItem.vue.d.ts.map +1 -1
- package/dist/components/SidebarStatus.cjs +1 -1
- package/dist/components/SidebarStatus.mjs +1 -1
- package/dist/components/Skeleton.cjs +1 -1
- package/dist/components/Skeleton.mjs +1 -1
- package/dist/components/Skeleton.vue.d.ts +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Slider.vue.d.ts +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.mjs +1 -1
- package/dist/components/Spinner.vue.d.ts +1 -1
- package/dist/components/Stat.cjs +1 -1
- package/dist/components/Stat.mjs +1 -1
- package/dist/components/Stepper.cjs +1 -1
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/Stepper.vue.d.ts +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/StructuredList.cjs +1 -1
- package/dist/components/StructuredList.mjs +1 -1
- package/dist/components/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/SuggestionList.cjs +1 -1
- package/dist/components/SuggestionList.mjs +1 -1
- package/dist/components/Switch.cjs +1 -1
- package/dist/components/Switch.mjs +1 -1
- package/dist/components/TableOfContents.cjs +1 -1
- package/dist/components/TableOfContents.mjs +1 -1
- package/dist/components/TableOfContents.vue.d.ts +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/TextInput.vue.d.ts +2 -2
- package/dist/components/TextInput.vue.d.ts.map +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/Toolbar.cjs +1 -1
- package/dist/components/Toolbar.mjs +1 -1
- package/dist/components/Tree.cjs +1 -1
- package/dist/components/Tree.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/components/Wireframe.cjs +1 -1
- package/dist/components/Wireframe.mjs +1 -1
- package/dist/components/blueprint-connect.d.ts +16 -0
- package/dist/components/blueprint-connect.d.ts.map +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/manifest.d.ts +3 -0
- package/dist/components/manifest.d.ts.map +1 -1
- package/dist/components/manifest.js +3 -0
- package/dist/composables/useBlueprint.composable.cjs +1 -1
- package/dist/composables/useBlueprint.composable.mjs +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +3 -3
- package/dist/composables/useFollowNewest.composable.cjs +1 -0
- package/dist/composables/useFollowNewest.composable.d.ts +21 -0
- package/dist/composables/useFollowNewest.composable.d.ts.map +1 -0
- package/dist/composables/useFollowNewest.composable.mjs +47 -0
- package/dist/composables/useInlineLoading.composable.cjs +1 -1
- package/dist/composables/useInlineLoading.composable.mjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
- package/dist/composables/useNbStrings.composable.cjs +1 -1
- package/dist/composables/useNbStrings.composable.d.ts +26 -0
- package/dist/composables/useNbStrings.composable.d.ts.map +1 -1
- package/dist/composables/useNbStrings.composable.mjs +19 -0
- package/dist/global.d.ts +6 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +155 -152
- package/dist/{main-Dr-OZ97R.cjs → main-Cs0FFBfV.cjs} +2 -2
- package/dist/{main-hHSQ2Z9E.js → main-D6qY7QeE.js} +76 -76
- package/dist/main.d.ts +17 -2
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/Blueprint.css +1 -1
- package/dist/styles/BlueprintCard.css +1 -1
- package/dist/styles/BlueprintControls.css +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/ChatMessage.css +1 -0
- package/dist/styles/ChatThread.css +1 -0
- package/dist/styles/LogView.css +1 -0
- package/dist/styles/SidebarBrand.css +1 -1
- package/dist/styles/SidebarMenuItem.css +1 -1
- package/dist/ui.css +11 -8
- package/package.json +1 -1
- package/src/styles/_theme.scss +5 -0
- package/dist/Blueprint-ePiyl5dw.js +0 -1501
- package/dist/Blueprint-kNZLEHJz.cjs +0 -1
- package/dist/BlueprintCard-L5FqZKvJ.cjs +0 -1
- package/dist/Button-5ClGtoaz.cjs +0 -1
- package/dist/Select-C3AHxgi1.cjs +0 -1
- package/dist/Select-e-sgQurr.js +0 -615
- package/dist/SidebarBrand-DmWBakJG.cjs +0 -1
- package/dist/SidebarBrand-Dz8O0JHj.js +0 -31
- package/dist/SidebarMenuItem-D7rkGP2L.js +0 -268
- package/dist/SidebarMenuItem-DYREDfqx.cjs +0 -1
- package/dist/UserMenu-DFxqVHMM.cjs +0 -1
- /package/dist/{Badge-BYfdJcdD.cjs → Badge-Bf0l95o1.cjs} +0 -0
- /package/dist/{Badge-scjsdx_V.js → Badge-TXLmvfLG.js} +0 -0
- /package/dist/{Blueprint.context-KUd38ozw.cjs → Blueprint.context-CKxT98w8.cjs} +0 -0
- /package/dist/{Blueprint.context-CWzHXNtU.js → Blueprint.context-Cr8R0YY2.js} +0 -0
- /package/dist/{BlueprintBackground-CfII_po9.cjs → BlueprintBackground-BSrAsA2t.cjs} +0 -0
- /package/dist/{BlueprintBackground-CBU9iwAA.js → BlueprintBackground-XyU-rJ20.js} +0 -0
- /package/dist/{BlueprintMinimap-5mdeNCgk.cjs → BlueprintMinimap-DIjmvRAm.cjs} +0 -0
- /package/dist/{BlueprintMinimap-CP2-gY4i.js → BlueprintMinimap-DWx_bkp3.js} +0 -0
- /package/dist/{ChartLegend-LDNukufA.js → ChartLegend-CQQwcGvz.js} +0 -0
- /package/dist/{ChartLegend-COJeG-2B.cjs → ChartLegend-DMxlEhT6.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-B21mAPv4.js → CheckboxGroup.context-B2xhGoXC.js} +0 -0
- /package/dist/{CheckboxGroup.context-DRWqTj9S.cjs → CheckboxGroup.context-RLOznZPB.cjs} +0 -0
- /package/dist/{ChipGroup-BplLSI81.cjs → ChipGroup-C8ar8YCb.cjs} +0 -0
- /package/dist/{ChipGroup-BNp7OB2t.js → ChipGroup-E8l7aJxx.js} +0 -0
- /package/dist/{ContainedList-PUA2OJ08.js → ContainedList-DPGBeeeX.js} +0 -0
- /package/dist/{ContainedList-CBWwEmoK.cjs → ContainedList-Dky4V9Ob.cjs} +0 -0
- /package/dist/{ContainedListItem-BKvHedZO.cjs → ContainedListItem-3p-iC-eG.cjs} +0 -0
- /package/dist/{ContainedListItem-8z2bmoRG.js → ContainedListItem-BLn6xfWd.js} +0 -0
- /package/dist/{DefinitionList-BOVcW-V7.js → DefinitionList--Q2HEB_R.js} +0 -0
- /package/dist/{DefinitionList-CndoLDLs.cjs → DefinitionList-CGIDl914.cjs} +0 -0
- /package/dist/{DefinitionListItem-C3VrLhWY.js → DefinitionListItem-B4iWsaSC.js} +0 -0
- /package/dist/{DefinitionListItem-CLztc8mQ.cjs → DefinitionListItem-CR5vx_kx.cjs} +0 -0
- /package/dist/{DragHandle-IJoaUK75.cjs → DragHandle-BiYccTJN.cjs} +0 -0
- /package/dist/{DragHandle-CuEBPvz8.js → DragHandle-qTw3v4uw.js} +0 -0
- /package/dist/{EmptyState-Db0Zrrk2.cjs → EmptyState-1ZLgFpJO.cjs} +0 -0
- /package/dist/{EmptyState-DhlJV0C6.js → EmptyState-DE1pPuw-.js} +0 -0
- /package/dist/{Field-COMPegVv.cjs → Field-AXSzk3l3.cjs} +0 -0
- /package/dist/{Field-D12Dja-u.js → Field-B8wNroAI.js} +0 -0
- /package/dist/{Flag-CKhucUhD.js → Flag-DxtJyiq7.js} +0 -0
- /package/dist/{Flag-D5hPnq37.cjs → Flag-sm9H7OLB.cjs} +0 -0
- /package/dist/{FloatingToolbar-Clz7tlQQ.js → FloatingToolbar-BikX_AsP.js} +0 -0
- /package/dist/{FloatingToolbar-By_-ubVi.cjs → FloatingToolbar-DWVY8Fxo.cjs} +0 -0
- /package/dist/{Grid-B7d8x0tA.js → Grid-BVIhOyQ1.js} +0 -0
- /package/dist/{Grid-BOtE_jXr.cjs → Grid-tn5_R2fP.cjs} +0 -0
- /package/dist/{InlineEdit-hVNTw3FL.cjs → InlineEdit-DNYN-OKH.cjs} +0 -0
- /package/dist/{InlineEdit-Ccm5eW9r.js → InlineEdit-vsfyBgw7.js} +0 -0
- /package/dist/{JsonTree-E9Z-ELBN.js → JsonTree-6CdJ-Gzr.js} +0 -0
- /package/dist/{JsonTree-D2auUavc.cjs → JsonTree-Da24d7DW.cjs} +0 -0
- /package/dist/{Layer--aoEMtI2.js → Layer-CSuwMbCG.js} +0 -0
- /package/dist/{Layer-C8RYJ-6a.cjs → Layer-DgvW9hHn.cjs} +0 -0
- /package/dist/{MenuBar-3tuFXaKq.cjs → MenuBar-C9DS_hIo.cjs} +0 -0
- /package/dist/{MenuBar-T-R82ARB.js → MenuBar-DVv2g_rC.js} +0 -0
- /package/dist/{MenuBarItem-GgXvNoo-.cjs → MenuBarItem-DlnIAhRw.cjs} +0 -0
- /package/dist/{MenuBarItem-DWx9J8-L.js → MenuBarItem-yr5aizl3.js} +0 -0
- /package/dist/{MenuDivider-9wQ-fCik.cjs → MenuDivider-CN0P3E6g.cjs} +0 -0
- /package/dist/{MenuDivider-ksA6NvMu.js → MenuDivider-DdwhPon9.js} +0 -0
- /package/dist/{NubiscoMark-BmzCQO-3.js → NubiscoMark-0ZIaMys6.js} +0 -0
- /package/dist/{NubiscoMark-xthZ972G.cjs → NubiscoMark-BM7WFUNi.cjs} +0 -0
- /package/dist/{NubiscoPlatformMark-DCr77bqN.js → NubiscoPlatformMark-D09gaMWr.js} +0 -0
- /package/dist/{NubiscoPlatformMark-DA2jJFJN.cjs → NubiscoPlatformMark-DoU7dFxt.cjs} +0 -0
- /package/dist/{PageLayout-DHi1w1PD.cjs → PageLayout-BkkrJvOm.cjs} +0 -0
- /package/dist/{PageLayout-BMcT2mzU.js → PageLayout-Czzxu6ua.js} +0 -0
- /package/dist/{Panel-7LIVYu68.js → Panel-4itscCsS.js} +0 -0
- /package/dist/{Panel-BRPE3B-O.cjs → Panel-BKASZF-B.cjs} +0 -0
- /package/dist/{ReorderList-qScXc3-v.cjs → ReorderList-DJSXspkB.cjs} +0 -0
- /package/dist/{ReorderList-DmjW30Mw.js → ReorderList-DRFcrUfl.js} +0 -0
- /package/dist/{SidebarLink-D1rsmzP_.cjs → SidebarLink-C-tnZtCU.cjs} +0 -0
- /package/dist/{SidebarLink-qbDy2Jip.js → SidebarLink-D9w9PHz_.js} +0 -0
- /package/dist/{SidebarMenu-CEff0kWr.cjs → SidebarMenu-BVqk_jY1.cjs} +0 -0
- /package/dist/{SidebarMenu-Cz7k20qd.js → SidebarMenu-CxFS4i9J.js} +0 -0
- /package/dist/{SidebarMenuGroup-BvrYrQQi.js → SidebarMenuGroup-BxMynLi3.js} +0 -0
- /package/dist/{SidebarMenuGroup-vc3SM277.cjs → SidebarMenuGroup-CPhxz_bV.cjs} +0 -0
- /package/dist/{SidebarStatus-COgGJjkA.js → SidebarStatus-Bw8CU-vJ.js} +0 -0
- /package/dist/{SidebarStatus-Coh-cSGj.cjs → SidebarStatus-Cv95lDM4.cjs} +0 -0
- /package/dist/{Stepper.context-CIIC0ucN.cjs → Stepper.context--rpq0sA4.cjs} +0 -0
- /package/dist/{Stepper.context-BBwBAwSJ.js → Stepper.context-BI40m7my.js} +0 -0
- /package/dist/{StructuredList-BexC0c1Z.cjs → StructuredList-C7A2hCt7.cjs} +0 -0
- /package/dist/{StructuredList-DuBBP01p.js → StructuredList-DuHjSiZQ.js} +0 -0
- /package/dist/{Submenu-M1q8mdSB.js → Submenu-BDs-yAqv.js} +0 -0
- /package/dist/{Submenu-DK6C5mjc.cjs → Submenu-BLjx2kWl.cjs} +0 -0
- /package/dist/{TextInput.context-B-mipPOo.js → TextInput.context-CIHw4T0Y.js} +0 -0
- /package/dist/{TextInput.context-ChkcqMNM.cjs → TextInput.context-pJ99Jqwr.cjs} +0 -0
- /package/dist/{Toolbar-DN0gMuyj.cjs → Toolbar-0yonvSaQ.cjs} +0 -0
- /package/dist/{Toolbar-Cc_31FMW.js → Toolbar-DX2l8FUL.js} +0 -0
- /package/dist/{TreeContext-JbeO4_mW.cjs → TreeContext-CA4uqhBq.cjs} +0 -0
- /package/dist/{TreeContext-BSNQGIEd.js → TreeContext-CwTEdedz.js} +0 -0
- /package/dist/{Wireframe-B-Dnmefu.js → Wireframe-DJRZl5rd.js} +0 -0
- /package/dist/{Wireframe-DBqyeEzE.cjs → Wireframe-Dhxj8wYJ.cjs} +0 -0
- /package/dist/{palette-BPqd521m.js → palette-4rzDlIAy.js} +0 -0
- /package/dist/{palette-MlQ_k4iu.cjs → palette-DxWvvteq.cjs} +0 -0
- /package/dist/{pixi-scene-RJljCo62.cjs → pixi-scene-ZtVQmHpg.cjs} +0 -0
- /package/dist/{pixi-scene-CdHSFEve.js → pixi-scene-hlXJlAf5.js} +0 -0
- /package/dist/{scales-BRSHTjbp.cjs → scales-Dbh3TYrl.cjs} +0 -0
- /package/dist/{scales-BGzTviac.js → scales-TfA6Pl4e.js} +0 -0
- /package/dist/{useChartEntrance-D8vJ7eWq.cjs → useChartEntrance-BSMpWsax.cjs} +0 -0
- /package/dist/{useChartEntrance-heEx5_ZG.js → useChartEntrance-BqG_st9U.js} +0 -0
- /package/dist/{useChartSize-05CLdiR0.js → useChartSize-B-Rv6Q7a.js} +0 -0
- /package/dist/{useChartSize-CUZ7BuGD.cjs → useChartSize-c75YO_2m.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-CZT2zf7e.js → useLoadingAnnouncer.composable-Cihu0ZHU.js} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-BXyCMUDe.cjs → useLoadingAnnouncer.composable-vqmtAsfY.cjs} +0 -0
- /package/dist/{vue-i18n-D8JKgg8C.cjs → vue-i18n-BaeznwnA.cjs} +0 -0
- /package/dist/{vue-i18n-B8N89VAx.js → vue-i18n-DgCNp5tk.js} +0 -0
|
@@ -0,0 +1,615 @@
|
|
|
1
|
+
import { t as e } from "./Button-DmJ_J3UO.js";
|
|
2
|
+
import { t } from "./Icon-B2tiGiqZ.js";
|
|
3
|
+
import { useNbStrings as n } from "./composables/useNbStrings.composable.mjs";
|
|
4
|
+
import { t as r } from "./Grid-BVIhOyQ1.js";
|
|
5
|
+
import { t as ee } from "./Label-xwHw_UbN.js";
|
|
6
|
+
import { t as i } from "./Message-Bi70NgGd.js";
|
|
7
|
+
import { n as a } from "./InputGroup.context-Dd4e6fGT.js";
|
|
8
|
+
import { joinDescribedBy as te, useFieldMessage as ne } from "./composables/useFieldMessage.composable.mjs";
|
|
9
|
+
import { useMenuSurface as re } from "./composables/useMenuSurface.composable.mjs";
|
|
10
|
+
import { Fragment as o, Teleport as ie, Transition as ae, 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 oe, mergeProps as se, nextTick as ce, normalizeClass as h, normalizeProps as le, normalizeStyle as ue, onBeforeUnmount as de, openBlock as g, ref as _, renderList as fe, renderSlot as v, toDisplayString as y, unref as b, useId as pe, useSlots as me, vModelText as he, watch as ge, withCtx as x, withDirectives as _e, withKeys as S, withModifiers as C } from "vue";
|
|
11
|
+
import { regular as ve } from "@nubisco/ui/icons/caret-down";
|
|
12
|
+
import { regular as ye } from "@nubisco/ui/icons/x";
|
|
13
|
+
import { regular as be } from "@nubisco/ui/icons/caret-up";
|
|
14
|
+
//#region src/components/Select.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
+
var xe = [
|
|
16
|
+
"id",
|
|
17
|
+
"aria-expanded",
|
|
18
|
+
"aria-controls",
|
|
19
|
+
"aria-activedescendant",
|
|
20
|
+
"aria-disabled",
|
|
21
|
+
"aria-required",
|
|
22
|
+
"aria-invalid",
|
|
23
|
+
"aria-describedby",
|
|
24
|
+
"disabled"
|
|
25
|
+
], Se = {
|
|
26
|
+
key: 2,
|
|
27
|
+
class: "nb-select__clear-space",
|
|
28
|
+
"aria-hidden": "true"
|
|
29
|
+
}, Ce = [
|
|
30
|
+
"id",
|
|
31
|
+
"aria-expanded",
|
|
32
|
+
"aria-controls",
|
|
33
|
+
"aria-activedescendant",
|
|
34
|
+
"aria-disabled",
|
|
35
|
+
"aria-required",
|
|
36
|
+
"aria-invalid",
|
|
37
|
+
"aria-describedby",
|
|
38
|
+
"disabled"
|
|
39
|
+
], we = {
|
|
40
|
+
key: 1,
|
|
41
|
+
class: "nb-select__inner-label"
|
|
42
|
+
}, Te = {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "nb-select__asterisk",
|
|
45
|
+
"aria-hidden": "true"
|
|
46
|
+
}, Ee = {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: "nb-select__clear-space",
|
|
49
|
+
"aria-hidden": "true"
|
|
50
|
+
}, De = ["id", "aria-multiselectable"], Oe = {
|
|
51
|
+
key: 0,
|
|
52
|
+
class: "nb-select__search"
|
|
53
|
+
}, ke = [
|
|
54
|
+
"placeholder",
|
|
55
|
+
"aria-label",
|
|
56
|
+
"aria-controls",
|
|
57
|
+
"aria-activedescendant"
|
|
58
|
+
], Ae = ["aria-labelledby"], je = ["id"], Me = [
|
|
59
|
+
"id",
|
|
60
|
+
"data-index",
|
|
61
|
+
"aria-selected",
|
|
62
|
+
"aria-disabled",
|
|
63
|
+
"onMouseenter",
|
|
64
|
+
"onClick"
|
|
65
|
+
], Ne = {
|
|
66
|
+
key: 0,
|
|
67
|
+
class: "nb-select__option-check",
|
|
68
|
+
"aria-hidden": "true"
|
|
69
|
+
}, Pe = {
|
|
70
|
+
key: 0,
|
|
71
|
+
viewBox: "0 0 10 8",
|
|
72
|
+
fill: "none",
|
|
73
|
+
width: "10",
|
|
74
|
+
height: "8"
|
|
75
|
+
}, Fe = { class: "nb-select__option-label" }, Ie = {
|
|
76
|
+
key: 1,
|
|
77
|
+
class: "nb-select__empty"
|
|
78
|
+
}, Le = {
|
|
79
|
+
key: 2,
|
|
80
|
+
class: "nb-select__empty"
|
|
81
|
+
}, Re = ["placeholder", "onKeydown"], ze = /* @__PURE__ */ m({
|
|
82
|
+
inheritAttrs: !1,
|
|
83
|
+
__name: "Select",
|
|
84
|
+
props: {
|
|
85
|
+
modelValue: { default: null },
|
|
86
|
+
options: { default: () => [] },
|
|
87
|
+
multiple: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: !1
|
|
90
|
+
},
|
|
91
|
+
creatable: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: !1
|
|
94
|
+
},
|
|
95
|
+
createPlaceholder: { default: "" },
|
|
96
|
+
clearable: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: !1
|
|
99
|
+
},
|
|
100
|
+
clearLabel: { default: void 0 },
|
|
101
|
+
searchable: {
|
|
102
|
+
type: Boolean,
|
|
103
|
+
default: !1
|
|
104
|
+
},
|
|
105
|
+
searchPlaceholder: { default: "Search" },
|
|
106
|
+
noResultsLabel: { default: "No results" },
|
|
107
|
+
anchor: {
|
|
108
|
+
type: [Function, null],
|
|
109
|
+
default: null
|
|
110
|
+
},
|
|
111
|
+
selectedMark: { default: "fill" },
|
|
112
|
+
placeholder: { default: "Select…" },
|
|
113
|
+
name: { default: "" },
|
|
114
|
+
disabled: {
|
|
115
|
+
type: Boolean,
|
|
116
|
+
default: !1
|
|
117
|
+
},
|
|
118
|
+
required: {
|
|
119
|
+
type: Boolean,
|
|
120
|
+
default: !1
|
|
121
|
+
},
|
|
122
|
+
id: { default: void 0 },
|
|
123
|
+
label: { default: "" },
|
|
124
|
+
error: { default: "" },
|
|
125
|
+
warning: { default: "" },
|
|
126
|
+
helper: { default: "" },
|
|
127
|
+
variant: { default: "default" },
|
|
128
|
+
size: { default: "md" }
|
|
129
|
+
},
|
|
130
|
+
emits: [
|
|
131
|
+
"update:modelValue",
|
|
132
|
+
"change",
|
|
133
|
+
"create"
|
|
134
|
+
],
|
|
135
|
+
setup(m, { expose: ze, emit: Be }) {
|
|
136
|
+
let w = m, T = Be, Ve = (e, { slots: t }) => e.wrap ? oe("div", { class: "nb-select__control" }, t.default?.()) : t.default?.();
|
|
137
|
+
Ve.props = ["wrap"];
|
|
138
|
+
let E = _(""), D = _(""), He = _(null);
|
|
139
|
+
function Ue() {
|
|
140
|
+
let e = E.value.trim();
|
|
141
|
+
e && (T("create", e), E.value = "");
|
|
142
|
+
}
|
|
143
|
+
let O = _(!1), k = _(!1), A = _(-1), j = _(null), M = _(null), N = me(), We = () => (typeof w.anchor == "function" ? w.anchor() : w.anchor) ?? M.value ?? j.value;
|
|
144
|
+
function Ge() {
|
|
145
|
+
(M.value ?? j.value?.querySelector("button, [tabindex]"))?.focus();
|
|
146
|
+
}
|
|
147
|
+
let P = _(null);
|
|
148
|
+
re(P);
|
|
149
|
+
let Ke = _({
|
|
150
|
+
position: "fixed",
|
|
151
|
+
top: "0px",
|
|
152
|
+
left: "0px",
|
|
153
|
+
width: "0px",
|
|
154
|
+
zIndex: "9999"
|
|
155
|
+
}), F = a(w, `nb-select-${pe()}`), I = F.id, L = F.disabled, R = F.grouped, { ids: z, messageId: qe, invalid: Je, live: B, key: V } = ne(w, I), Ye = s(() => te(R ? void 0 : qe.value, F.describedBy.value)), Xe = s(() => Je.value ?? (F.status.value === "error" ? "true" : void 0)), Ze = s(() => !R && !!w.error || F.status.value === "error"), H = s(() => `${I.value}-listbox`), U = (e) => `${I.value}-option-${e}`, W = s(() => O.value && !w.searchable && A.value >= 0 ? U(A.value) : void 0), G = s(() => w.modelValue == null ? [] : Array.isArray(w.modelValue) ? w.modelValue : [w.modelValue]), K = s(() => {
|
|
156
|
+
if (!(w.multiple || G.value.length !== 1)) return (w.options ?? []).find((e) => e.value === G.value[0])?.icon;
|
|
157
|
+
}), q = s(() => {
|
|
158
|
+
if (G.value.length === 0) return "";
|
|
159
|
+
let e = w.options ?? [];
|
|
160
|
+
return w.multiple ? G.value.length === 1 ? e.find((e) => e.value === G.value[0])?.label ?? String(G.value[0]) : G.value.length === 2 ? G.value.map((t) => e.find((e) => e.value === t)?.label ?? String(t)).join(", ") : `${G.value.length} selected` : e.find((e) => e.value === G.value[0])?.label ?? String(G.value[0]);
|
|
161
|
+
});
|
|
162
|
+
function Qe(e) {
|
|
163
|
+
return G.value.includes(e);
|
|
164
|
+
}
|
|
165
|
+
let $e = (e) => e.normalize("NFD").replace(/\p{M}/gu, "").toLowerCase(), et = s(() => {
|
|
166
|
+
let e = w.options ?? [], t = w.searchable ? $e(D.value.trim()) : "", n = /* @__PURE__ */ new Set();
|
|
167
|
+
return e.forEach((e, r) => {
|
|
168
|
+
(!t || $e(e.label).includes(t)) && n.add(r);
|
|
169
|
+
}), n;
|
|
170
|
+
}), tt = s(() => {
|
|
171
|
+
let e = [];
|
|
172
|
+
return (w.options ?? []).forEach((t, n) => {
|
|
173
|
+
if (!et.value.has(n)) return;
|
|
174
|
+
let r = e[e.length - 1];
|
|
175
|
+
(!r || r.name !== t.group) && e.push({
|
|
176
|
+
key: `${e.length}:${t.group ?? ""}`,
|
|
177
|
+
name: t.group,
|
|
178
|
+
labelId: `${I.value}-group-${e.length}`,
|
|
179
|
+
entries: []
|
|
180
|
+
}), e[e.length - 1].entries.push({
|
|
181
|
+
option: t,
|
|
182
|
+
index: n
|
|
183
|
+
});
|
|
184
|
+
}), e;
|
|
185
|
+
});
|
|
186
|
+
function nt(e, t) {
|
|
187
|
+
let n = w.options ?? [];
|
|
188
|
+
for (let r = e + t; r >= 0 && r < n.length; r += t) if (!n[r].disabled && et.value.has(r)) return r;
|
|
189
|
+
return e;
|
|
190
|
+
}
|
|
191
|
+
function rt(e) {
|
|
192
|
+
if (e.disabled) return;
|
|
193
|
+
let t;
|
|
194
|
+
if (w.multiple) {
|
|
195
|
+
let n = [...G.value], r = n.indexOf(e.value);
|
|
196
|
+
r >= 0 ? n.splice(r, 1) : n.push(e.value), t = n;
|
|
197
|
+
} else t = e.value, Y();
|
|
198
|
+
T("update:modelValue", t), T("change", t);
|
|
199
|
+
}
|
|
200
|
+
function it() {
|
|
201
|
+
let e = We();
|
|
202
|
+
if (!e) return;
|
|
203
|
+
let t = e.getBoundingClientRect(), n = P.value?.offsetHeight ?? 0, r = window.innerHeight - t.bottom, ee = t.top, i = n > 0 && r < n && ee > r, a = N.trigger ? Math.max(t.width, 240) : t.width, te = N.trigger ? Math.max(8, Math.min(t.left, window.innerWidth - a - 8)) : t.left;
|
|
204
|
+
Ke.value = {
|
|
205
|
+
position: "fixed",
|
|
206
|
+
top: i ? `${t.top - n}px` : `${t.bottom}px`,
|
|
207
|
+
left: `${te}px`,
|
|
208
|
+
width: `${a}px`,
|
|
209
|
+
zIndex: "9999"
|
|
210
|
+
};
|
|
211
|
+
}
|
|
212
|
+
function J() {
|
|
213
|
+
if (L.value) return;
|
|
214
|
+
O.value = !0, it();
|
|
215
|
+
let e = w.options ?? [];
|
|
216
|
+
A.value = G.value.length > 0 ? Math.max(0, e.findIndex((e) => e.value === G.value[0])) : -1, ce(() => {
|
|
217
|
+
it(), Q(), He.value?.focus({ preventScroll: !0 });
|
|
218
|
+
});
|
|
219
|
+
}
|
|
220
|
+
function Y() {
|
|
221
|
+
let e = !!P.value?.contains(document.activeElement);
|
|
222
|
+
O.value = !1, A.value = -1, D.value = "", e && Ge();
|
|
223
|
+
}
|
|
224
|
+
function X() {
|
|
225
|
+
O.value ? Y() : J();
|
|
226
|
+
}
|
|
227
|
+
function at(e) {
|
|
228
|
+
let t = e.target, n = j.value?.contains(t) ?? !1, r = P.value?.contains(t) ?? !1;
|
|
229
|
+
!n && !r && Y();
|
|
230
|
+
}
|
|
231
|
+
function Z() {
|
|
232
|
+
O.value && it();
|
|
233
|
+
}
|
|
234
|
+
ge(O, (e) => {
|
|
235
|
+
e ? (document.addEventListener("mousedown", at), window.addEventListener("scroll", Z, !0), window.addEventListener("resize", Z)) : (document.removeEventListener("mousedown", at), window.removeEventListener("scroll", Z, !0), window.removeEventListener("resize", Z));
|
|
236
|
+
}), de(() => {
|
|
237
|
+
document.removeEventListener("mousedown", at), window.removeEventListener("scroll", Z, !0), window.removeEventListener("resize", Z);
|
|
238
|
+
});
|
|
239
|
+
function ot(e) {
|
|
240
|
+
let t = w.options ?? [];
|
|
241
|
+
if (!O.value) {
|
|
242
|
+
(e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), J());
|
|
243
|
+
return;
|
|
244
|
+
}
|
|
245
|
+
e.key === "Escape" ? (Y(), e.preventDefault()) : e.key === "Tab" ? Y() : e.key === "ArrowDown" ? (e.preventDefault(), A.value = nt(A.value, 1), Q()) : e.key === "ArrowUp" ? (e.preventDefault(), A.value > 0 && (A.value = nt(A.value, -1)), Q()) : (e.key === "Enter" || e.key === " ") && A.value >= 0 && (e.preventDefault(), rt(t[A.value]));
|
|
246
|
+
}
|
|
247
|
+
function Q() {
|
|
248
|
+
ce(() => {
|
|
249
|
+
!P.value || A.value < 0 || P.value.querySelector(`[data-index="${A.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
ge(D, () => {
|
|
253
|
+
if (!O.value) return;
|
|
254
|
+
let e = nt(-1, 1);
|
|
255
|
+
A.value = e === -1 ? -1 : e, Q();
|
|
256
|
+
});
|
|
257
|
+
function st(e) {
|
|
258
|
+
if (e.key === " ") {
|
|
259
|
+
e.stopPropagation();
|
|
260
|
+
return;
|
|
261
|
+
}
|
|
262
|
+
if (e.key === "Home" || e.key === "End") {
|
|
263
|
+
e.stopPropagation();
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
ot(e);
|
|
267
|
+
}
|
|
268
|
+
let ct = s(() => ({
|
|
269
|
+
isOpen: O.value,
|
|
270
|
+
toggle: X,
|
|
271
|
+
open: J,
|
|
272
|
+
close: Y,
|
|
273
|
+
attrs: {
|
|
274
|
+
"aria-expanded": O.value,
|
|
275
|
+
"aria-haspopup": "listbox",
|
|
276
|
+
"aria-controls": O.value ? H.value : void 0,
|
|
277
|
+
"aria-activedescendant": W.value,
|
|
278
|
+
"aria-invalid": Je.value,
|
|
279
|
+
onClick: X
|
|
280
|
+
}
|
|
281
|
+
})), lt = n(), ut = s(() => w.clearLabel ?? lt.value.selectClear), $ = s(() => w.clearable && !L.value && G.value.length > 0);
|
|
282
|
+
function dt() {
|
|
283
|
+
let e = w.multiple ? [] : null;
|
|
284
|
+
Y(), T("update:modelValue", e), T("change", e), Ge();
|
|
285
|
+
}
|
|
286
|
+
let ft = s(() => [
|
|
287
|
+
"nb-select",
|
|
288
|
+
`nb-select--${w.variant}`,
|
|
289
|
+
`nb-select--${F.size.value}`,
|
|
290
|
+
{
|
|
291
|
+
"nb-select--open": O.value,
|
|
292
|
+
"nb-select--focused": k.value && !O.value,
|
|
293
|
+
"nb-select--error": Ze.value,
|
|
294
|
+
"nb-select--warning": !Ze.value && (!R && !!w.warning || F.status.value === "warning"),
|
|
295
|
+
"nb-select--multiple": w.multiple,
|
|
296
|
+
"nb-select--bare": !!N.trigger
|
|
297
|
+
}
|
|
298
|
+
]);
|
|
299
|
+
return ze({
|
|
300
|
+
open: J,
|
|
301
|
+
close: Y
|
|
302
|
+
}), (n, a) => (g(), u(o, null, [d("div", se({
|
|
303
|
+
ref_key: "rootRef",
|
|
304
|
+
ref: j
|
|
305
|
+
}, n.$attrs, {
|
|
306
|
+
class: ft.value,
|
|
307
|
+
onKeydown: ot
|
|
308
|
+
}), [n.$slots.trigger ? v(n.$slots, "trigger", le(se({ key: 0 }, ct.value))) : m.variant === "default" ? (g(), u(o, { key: 1 }, [
|
|
309
|
+
n.$slots.label && !b(R) ? v(n.$slots, "label", { key: 0 }) : m.label && !b(R) ? (g(), c(ee, {
|
|
310
|
+
key: 1,
|
|
311
|
+
for: b(I),
|
|
312
|
+
required: m.required,
|
|
313
|
+
disabled: b(L)
|
|
314
|
+
}, {
|
|
315
|
+
default: x(() => [f(y(m.label), 1)]),
|
|
316
|
+
_: 1
|
|
317
|
+
}, 8, [
|
|
318
|
+
"for",
|
|
319
|
+
"required",
|
|
320
|
+
"disabled"
|
|
321
|
+
])) : l("", !0),
|
|
322
|
+
p(Ve, { wrap: m.clearable }, {
|
|
323
|
+
default: x(() => [d("button", {
|
|
324
|
+
id: b(I),
|
|
325
|
+
ref_key: "triggerRef",
|
|
326
|
+
ref: M,
|
|
327
|
+
type: "button",
|
|
328
|
+
class: "nb-select__trigger",
|
|
329
|
+
role: "combobox",
|
|
330
|
+
"aria-expanded": O.value,
|
|
331
|
+
"aria-haspopup": "listbox",
|
|
332
|
+
"aria-controls": O.value ? H.value : void 0,
|
|
333
|
+
"aria-activedescendant": W.value,
|
|
334
|
+
"aria-disabled": b(L) || void 0,
|
|
335
|
+
"aria-required": m.required || void 0,
|
|
336
|
+
"aria-invalid": Xe.value,
|
|
337
|
+
"aria-describedby": Ye.value,
|
|
338
|
+
disabled: b(L) || void 0,
|
|
339
|
+
onClick: X,
|
|
340
|
+
onFocus: a[0] ||= (e) => k.value = !0,
|
|
341
|
+
onBlur: a[1] ||= (e) => k.value = !1
|
|
342
|
+
}, [
|
|
343
|
+
d("span", { class: h(["nb-select__value", {
|
|
344
|
+
"nb-select__value--placeholder": !q.value,
|
|
345
|
+
"nb-select__value--with-icon": !!K.value
|
|
346
|
+
}]) }, [K.value ? (g(), c(t, {
|
|
347
|
+
key: 0,
|
|
348
|
+
class: "nb-select__value-icon",
|
|
349
|
+
name: K.value,
|
|
350
|
+
size: 16
|
|
351
|
+
}, null, 8, ["name"])) : l("", !0), q.value ? v(n.$slots, "value", {
|
|
352
|
+
key: 1,
|
|
353
|
+
values: G.value
|
|
354
|
+
}, () => [f(y(q.value), 1)]) : (g(), u(o, { key: 2 }, [f(y(m.placeholder), 1)], 64))], 2),
|
|
355
|
+
m.error && !b(R) ? (g(), c(i, {
|
|
356
|
+
key: 0,
|
|
357
|
+
variant: "error",
|
|
358
|
+
"icon-only": !0,
|
|
359
|
+
live: "off",
|
|
360
|
+
"aria-hidden": "true",
|
|
361
|
+
class: "nb-select__status-icon"
|
|
362
|
+
}, {
|
|
363
|
+
default: x(() => [f(y(m.error), 1)]),
|
|
364
|
+
_: 1
|
|
365
|
+
})) : m.warning && !b(R) ? (g(), c(i, {
|
|
366
|
+
key: 1,
|
|
367
|
+
variant: "warning",
|
|
368
|
+
"icon-only": !0,
|
|
369
|
+
live: "off",
|
|
370
|
+
"aria-hidden": "true",
|
|
371
|
+
class: "nb-select__status-icon"
|
|
372
|
+
}, {
|
|
373
|
+
default: x(() => [f(y(m.warning), 1)]),
|
|
374
|
+
_: 1
|
|
375
|
+
})) : l("", !0),
|
|
376
|
+
$.value ? (g(), u("span", Se)) : l("", !0),
|
|
377
|
+
p(r, {
|
|
378
|
+
align: "center",
|
|
379
|
+
justify: "center",
|
|
380
|
+
class: "nb-select__caret"
|
|
381
|
+
}, {
|
|
382
|
+
default: x(() => [p(t, {
|
|
383
|
+
name: O.value ? b(be) : b(ve),
|
|
384
|
+
size: 16
|
|
385
|
+
}, null, 8, ["name"])]),
|
|
386
|
+
_: 1
|
|
387
|
+
})
|
|
388
|
+
], 40, xe), $.value ? (g(), c(e, {
|
|
389
|
+
key: 0,
|
|
390
|
+
variant: "ghost",
|
|
391
|
+
icon: b(ye),
|
|
392
|
+
size: "xs",
|
|
393
|
+
label: ut.value,
|
|
394
|
+
class: "nb-select__clear",
|
|
395
|
+
onClick: dt,
|
|
396
|
+
onKeydown: [a[2] ||= S(C(() => {}, ["stop"]), ["enter"]), a[3] ||= S(C(() => {}, ["stop"]), ["space"])]
|
|
397
|
+
}, null, 8, ["icon", "label"])) : l("", !0)]),
|
|
398
|
+
_: 3
|
|
399
|
+
}, 8, ["wrap"]),
|
|
400
|
+
m.error && !b(R) ? (g(), c(i, {
|
|
401
|
+
id: b(z).error,
|
|
402
|
+
key: b(V),
|
|
403
|
+
variant: "error",
|
|
404
|
+
live: b(B),
|
|
405
|
+
class: "nb-select__message"
|
|
406
|
+
}, {
|
|
407
|
+
default: x(() => [f(y(m.error), 1)]),
|
|
408
|
+
_: 1
|
|
409
|
+
}, 8, ["id", "live"])) : m.warning && !b(R) ? (g(), c(i, {
|
|
410
|
+
id: b(z).warning,
|
|
411
|
+
key: b(V),
|
|
412
|
+
variant: "warning",
|
|
413
|
+
live: b(B),
|
|
414
|
+
class: "nb-select__message"
|
|
415
|
+
}, {
|
|
416
|
+
default: x(() => [f(y(m.warning), 1)]),
|
|
417
|
+
_: 1
|
|
418
|
+
}, 8, ["id", "live"])) : m.helper && !b(R) ? (g(), c(i, {
|
|
419
|
+
id: b(z).helper,
|
|
420
|
+
key: b(V),
|
|
421
|
+
variant: "helper",
|
|
422
|
+
live: b(B),
|
|
423
|
+
class: "nb-select__message"
|
|
424
|
+
}, {
|
|
425
|
+
default: x(() => [f(y(m.helper), 1)]),
|
|
426
|
+
_: 1
|
|
427
|
+
}, 8, ["id", "live"])) : l("", !0)
|
|
428
|
+
], 64)) : m.variant === "fluid" ? (g(), u(o, { key: 2 }, [p(Ve, { wrap: m.clearable }, {
|
|
429
|
+
default: x(() => [d("button", {
|
|
430
|
+
id: b(I),
|
|
431
|
+
ref_key: "triggerRef",
|
|
432
|
+
ref: M,
|
|
433
|
+
type: "button",
|
|
434
|
+
class: "nb-select__trigger",
|
|
435
|
+
role: "combobox",
|
|
436
|
+
"aria-expanded": O.value,
|
|
437
|
+
"aria-haspopup": "listbox",
|
|
438
|
+
"aria-controls": O.value ? H.value : void 0,
|
|
439
|
+
"aria-activedescendant": W.value,
|
|
440
|
+
"aria-disabled": b(L) || void 0,
|
|
441
|
+
"aria-required": m.required || void 0,
|
|
442
|
+
"aria-invalid": Xe.value,
|
|
443
|
+
"aria-describedby": Ye.value,
|
|
444
|
+
disabled: b(L) || void 0,
|
|
445
|
+
onClick: X,
|
|
446
|
+
onFocus: a[4] ||= (e) => k.value = !0,
|
|
447
|
+
onBlur: a[5] ||= (e) => k.value = !1
|
|
448
|
+
}, [(m.label || n.$slots.label) && !b(R) ? (g(), c(r, {
|
|
449
|
+
key: 0,
|
|
450
|
+
dir: "row",
|
|
451
|
+
align: "center",
|
|
452
|
+
gap: "xs",
|
|
453
|
+
class: "nb-select__inner-header"
|
|
454
|
+
}, {
|
|
455
|
+
default: x(() => [n.$slots.label ? v(n.$slots, "label", { key: 0 }) : (g(), u("label", we, [f(y(m.label) + " ", 1), m.required ? (g(), u("span", Te, "*")) : l("", !0)])), m.helper && !m.error && !m.warning ? (g(), c(i, {
|
|
456
|
+
key: 2,
|
|
457
|
+
id: b(z).helper,
|
|
458
|
+
variant: "helper",
|
|
459
|
+
"icon-only": !0,
|
|
460
|
+
live: "off",
|
|
461
|
+
"aria-hidden": "true",
|
|
462
|
+
class: "nb-select__inner-message"
|
|
463
|
+
}, {
|
|
464
|
+
default: x(() => [f(y(m.helper), 1)]),
|
|
465
|
+
_: 1
|
|
466
|
+
}, 8, ["id"])) : l("", !0)]),
|
|
467
|
+
_: 3
|
|
468
|
+
})) : l("", !0), p(r, {
|
|
469
|
+
dir: "row",
|
|
470
|
+
align: "end",
|
|
471
|
+
flex: "",
|
|
472
|
+
class: "nb-select__value-row"
|
|
473
|
+
}, {
|
|
474
|
+
default: x(() => [
|
|
475
|
+
d("span", { class: h(["nb-select__value", {
|
|
476
|
+
"nb-select__value--placeholder": !q.value,
|
|
477
|
+
"nb-select__value--with-icon": !!K.value
|
|
478
|
+
}]) }, [K.value ? (g(), c(t, {
|
|
479
|
+
key: 0,
|
|
480
|
+
class: "nb-select__value-icon",
|
|
481
|
+
name: K.value,
|
|
482
|
+
size: 16
|
|
483
|
+
}, null, 8, ["name"])) : l("", !0), q.value ? v(n.$slots, "value", {
|
|
484
|
+
key: 1,
|
|
485
|
+
values: G.value
|
|
486
|
+
}, () => [f(y(q.value), 1)]) : (g(), u(o, { key: 2 }, [f(y(m.placeholder), 1)], 64))], 2),
|
|
487
|
+
$.value ? (g(), u("span", Ee)) : l("", !0),
|
|
488
|
+
p(r, {
|
|
489
|
+
align: "center",
|
|
490
|
+
justify: "center",
|
|
491
|
+
class: "nb-select__caret"
|
|
492
|
+
}, {
|
|
493
|
+
default: x(() => [p(t, {
|
|
494
|
+
name: O.value ? b(be) : b(ve),
|
|
495
|
+
size: 16
|
|
496
|
+
}, null, 8, ["name"])]),
|
|
497
|
+
_: 1
|
|
498
|
+
})
|
|
499
|
+
]),
|
|
500
|
+
_: 3
|
|
501
|
+
})], 40, Ce), $.value ? (g(), c(e, {
|
|
502
|
+
key: 0,
|
|
503
|
+
variant: "ghost",
|
|
504
|
+
icon: b(ye),
|
|
505
|
+
size: "xs",
|
|
506
|
+
label: ut.value,
|
|
507
|
+
class: "nb-select__clear",
|
|
508
|
+
onClick: dt,
|
|
509
|
+
onKeydown: [a[6] ||= S(C(() => {}, ["stop"]), ["enter"]), a[7] ||= S(C(() => {}, ["stop"]), ["space"])]
|
|
510
|
+
}, null, 8, ["icon", "label"])) : l("", !0)]),
|
|
511
|
+
_: 3
|
|
512
|
+
}, 8, ["wrap"]), m.error && !b(R) ? (g(), c(i, {
|
|
513
|
+
id: b(z).error,
|
|
514
|
+
key: b(V),
|
|
515
|
+
variant: "error",
|
|
516
|
+
live: b(B),
|
|
517
|
+
class: "nb-select__fluid-message"
|
|
518
|
+
}, {
|
|
519
|
+
default: x(() => [f(y(m.error), 1)]),
|
|
520
|
+
_: 1
|
|
521
|
+
}, 8, ["id", "live"])) : m.warning && !b(R) ? (g(), c(i, {
|
|
522
|
+
id: b(z).warning,
|
|
523
|
+
key: b(V),
|
|
524
|
+
variant: "warning",
|
|
525
|
+
live: b(B),
|
|
526
|
+
class: "nb-select__fluid-message"
|
|
527
|
+
}, {
|
|
528
|
+
default: x(() => [f(y(m.warning), 1)]),
|
|
529
|
+
_: 1
|
|
530
|
+
}, 8, ["id", "live"])) : l("", !0)], 64)) : l("", !0)], 16), (g(), c(ie, { to: "body" }, [p(ae, { name: "nb-select-pop" }, {
|
|
531
|
+
default: x(() => [O.value ? (g(), u("div", {
|
|
532
|
+
key: 0,
|
|
533
|
+
id: H.value,
|
|
534
|
+
ref_key: "dropdownRef",
|
|
535
|
+
ref: P,
|
|
536
|
+
class: h(["nb-select__dropdown", {
|
|
537
|
+
"nb-select__dropdown--check": m.selectedMark === "check",
|
|
538
|
+
"nb-select__dropdown--anchored": !!n.$slots.trigger
|
|
539
|
+
}]),
|
|
540
|
+
style: ue(Ke.value),
|
|
541
|
+
role: "listbox",
|
|
542
|
+
"aria-multiselectable": m.multiple || void 0
|
|
543
|
+
}, [
|
|
544
|
+
m.searchable ? (g(), u("div", Oe, [_e(d("input", {
|
|
545
|
+
ref_key: "searchRef",
|
|
546
|
+
ref: He,
|
|
547
|
+
"onUpdate:modelValue": a[8] ||= (e) => D.value = e,
|
|
548
|
+
type: "search",
|
|
549
|
+
class: "nb-select__search-input",
|
|
550
|
+
autocomplete: "off",
|
|
551
|
+
spellcheck: "false",
|
|
552
|
+
placeholder: m.searchPlaceholder,
|
|
553
|
+
"aria-label": m.searchPlaceholder,
|
|
554
|
+
"aria-controls": H.value,
|
|
555
|
+
"aria-activedescendant": A.value >= 0 ? U(A.value) : void 0,
|
|
556
|
+
onKeydown: st
|
|
557
|
+
}, null, 40, ke), [[he, D.value]])])) : l("", !0),
|
|
558
|
+
(g(!0), u(o, null, fe(tt.value, (e) => (g(), u("div", {
|
|
559
|
+
key: e.key,
|
|
560
|
+
class: "nb-select__group",
|
|
561
|
+
role: "group",
|
|
562
|
+
"aria-labelledby": e.name ? e.labelId : void 0
|
|
563
|
+
}, [e.name ? (g(), u("div", {
|
|
564
|
+
key: 0,
|
|
565
|
+
id: e.labelId,
|
|
566
|
+
class: "nb-select__group-label"
|
|
567
|
+
}, y(e.name), 9, je)) : l("", !0), (g(!0), u(o, null, fe(e.entries, (e) => (g(), u("div", {
|
|
568
|
+
id: U(e.index),
|
|
569
|
+
key: e.option.value,
|
|
570
|
+
"data-index": e.index,
|
|
571
|
+
class: h(["nb-select__option", {
|
|
572
|
+
"nb-select__option--selected": Qe(e.option.value),
|
|
573
|
+
"nb-select__option--highlighted": A.value === e.index,
|
|
574
|
+
"nb-select__option--disabled": e.option.disabled
|
|
575
|
+
}]),
|
|
576
|
+
role: "option",
|
|
577
|
+
"aria-selected": Qe(e.option.value),
|
|
578
|
+
"aria-disabled": e.option.disabled || void 0,
|
|
579
|
+
onMouseenter: (t) => A.value = e.index,
|
|
580
|
+
onClick: (t) => rt(e.option)
|
|
581
|
+
}, [
|
|
582
|
+
m.multiple || m.selectedMark === "check" ? (g(), u("span", Ne, [Qe(e.option.value) ? (g(), u("svg", Pe, [...a[12] ||= [d("path", {
|
|
583
|
+
d: "M1 4l3 3 5-6",
|
|
584
|
+
stroke: "currentColor",
|
|
585
|
+
"stroke-width": "1.5",
|
|
586
|
+
"stroke-linecap": "round",
|
|
587
|
+
"stroke-linejoin": "round"
|
|
588
|
+
}, null, -1)]])) : l("", !0)])) : l("", !0),
|
|
589
|
+
e.option.icon ? (g(), c(t, {
|
|
590
|
+
key: 1,
|
|
591
|
+
class: "nb-select__option-icon",
|
|
592
|
+
name: e.option.icon,
|
|
593
|
+
size: 16
|
|
594
|
+
}, null, 8, ["name"])) : l("", !0),
|
|
595
|
+
d("span", Fe, [v(n.$slots, "option", { option: e.option }, () => [f(y(e.option.label), 1)])])
|
|
596
|
+
], 42, Me))), 128))], 8, Ae))), 128)),
|
|
597
|
+
!m.options || m.options.length === 0 ? (g(), u("div", Ie, " No options ")) : m.searchable && et.value.size === 0 ? (g(), u("div", Le, y(m.noResultsLabel), 1)) : l("", !0),
|
|
598
|
+
m.creatable ? (g(), u("div", {
|
|
599
|
+
key: 3,
|
|
600
|
+
class: "nb-select__create",
|
|
601
|
+
onMousedown: a[11] ||= C(() => {}, ["prevent"])
|
|
602
|
+
}, [_e(d("input", {
|
|
603
|
+
"onUpdate:modelValue": a[9] ||= (e) => E.value = e,
|
|
604
|
+
type: "text",
|
|
605
|
+
class: "nb-select__create-input",
|
|
606
|
+
placeholder: m.createPlaceholder || "Add new…",
|
|
607
|
+
onKeydown: [S(C(Ue, ["prevent"]), ["enter"]), a[10] ||= C(() => {}, ["stop"])]
|
|
608
|
+
}, null, 40, Re), [[he, E.value]])], 32)) : l("", !0)
|
|
609
|
+
], 14, De)) : l("", !0)]),
|
|
610
|
+
_: 3
|
|
611
|
+
})]))], 64));
|
|
612
|
+
}
|
|
613
|
+
});
|
|
614
|
+
//#endregion
|
|
615
|
+
export { ze as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-CGIbF1e-.cjs`),t=require(`./Icon-CssV4E2-.cjs`),n=require(`./composables/useNbStrings.composable.cjs`),r=require(`./Grid-tn5_R2fP.cjs`),ee=require(`./Label-CjxnZgNy.cjs`),i=require(`./Message-B1CQ0Bcf.cjs`),a=require(`./InputGroup.context-BHj-IvcT.cjs`),o=require(`./composables/useFieldMessage.composable.cjs`),te=require(`./composables/useMenuSurface.composable.cjs`);let s=require(`vue`),ne=require(`@nubisco/ui/icons/caret-down`),re=require(`@nubisco/ui/icons/x`),ie=require(`@nubisco/ui/icons/caret-up`);var ae=[`id`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-disabled`,`aria-required`,`aria-invalid`,`aria-describedby`,`disabled`],oe={key:2,class:`nb-select__clear-space`,"aria-hidden":`true`},se=[`id`,`aria-expanded`,`aria-controls`,`aria-activedescendant`,`aria-disabled`,`aria-required`,`aria-invalid`,`aria-describedby`,`disabled`],ce={key:1,class:`nb-select__inner-label`},le={key:0,class:`nb-select__asterisk`,"aria-hidden":`true`},ue={key:0,class:`nb-select__clear-space`,"aria-hidden":`true`},de=[`id`,`aria-multiselectable`],fe={key:0,class:`nb-select__search`},pe=[`placeholder`,`aria-label`,`aria-controls`,`aria-activedescendant`],me=[`aria-labelledby`],he=[`id`],ge=[`id`,`data-index`,`aria-selected`,`aria-disabled`,`onMouseenter`,`onClick`],_e={key:0,class:`nb-select__option-check`,"aria-hidden":`true`},ve={key:0,viewBox:`0 0 10 8`,fill:`none`,width:`10`,height:`8`},ye={class:`nb-select__option-label`},be={key:1,class:`nb-select__empty`},xe={key:2,class:`nb-select__empty`},Se=[`placeholder`,`onKeydown`],c=(0,s.defineComponent)({inheritAttrs:!1,__name:`Select`,props:{modelValue:{default:null},options:{default:()=>[]},multiple:{type:Boolean,default:!1},creatable:{type:Boolean,default:!1},createPlaceholder:{default:``},clearable:{type:Boolean,default:!1},clearLabel:{default:void 0},searchable:{type:Boolean,default:!1},searchPlaceholder:{default:`Search`},noResultsLabel:{default:`No results`},anchor:{type:[Function,null],default:null},selectedMark:{default:`fill`},placeholder:{default:`Select…`},name:{default:``},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},id:{default:void 0},label:{default:``},error:{default:``},warning:{default:``},helper:{default:``},variant:{default:`default`},size:{default:`md`}},emits:[`update:modelValue`,`change`,`create`],setup(c,{expose:Ce,emit:we}){let l=c,u=we,d=(e,{slots:t})=>e.wrap?(0,s.h)(`div`,{class:`nb-select__control`},t.default?.()):t.default?.();d.props=[`wrap`];let f=(0,s.ref)(``),p=(0,s.ref)(``),m=(0,s.ref)(null);function Te(){let e=f.value.trim();e&&(u(`create`,e),f.value=``)}let h=(0,s.ref)(!1),g=(0,s.ref)(!1),_=(0,s.ref)(-1),v=(0,s.ref)(null),y=(0,s.ref)(null),b=(0,s.useSlots)(),Ee=()=>(typeof l.anchor==`function`?l.anchor():l.anchor)??y.value??v.value;function x(){(y.value??v.value?.querySelector(`button, [tabindex]`))?.focus()}let S=(0,s.ref)(null);te.useMenuSurface(S);let C=(0,s.ref)({position:`fixed`,top:`0px`,left:`0px`,width:`0px`,zIndex:`9999`}),w=a.n(l,`nb-select-${(0,s.useId)()}`),T=w.id,E=w.disabled,D=w.grouped,{ids:O,messageId:De,invalid:k,live:A,key:j}=o.useFieldMessage(l,T),M=(0,s.computed)(()=>o.joinDescribedBy(D?void 0:De.value,w.describedBy.value)),N=(0,s.computed)(()=>k.value??(w.status.value===`error`?`true`:void 0)),P=(0,s.computed)(()=>!D&&!!l.error||w.status.value===`error`),F=(0,s.computed)(()=>`${T.value}-listbox`),I=e=>`${T.value}-option-${e}`,L=(0,s.computed)(()=>h.value&&!l.searchable&&_.value>=0?I(_.value):void 0),R=(0,s.computed)(()=>l.modelValue==null?[]:Array.isArray(l.modelValue)?l.modelValue:[l.modelValue]),z=(0,s.computed)(()=>{if(!(l.multiple||R.value.length!==1))return(l.options??[]).find(e=>e.value===R.value[0])?.icon}),B=(0,s.computed)(()=>{if(R.value.length===0)return``;let e=l.options??[];return l.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])});function V(e){return R.value.includes(e)}let H=e=>e.normalize(`NFD`).replace(/\p{M}/gu,``).toLowerCase(),U=(0,s.computed)(()=>{let e=l.options??[],t=l.searchable?H(p.value.trim()):``,n=new Set;return e.forEach((e,r)=>{(!t||H(e.label).includes(t))&&n.add(r)}),n}),Oe=(0,s.computed)(()=>{let e=[];return(l.options??[]).forEach((t,n)=>{if(!U.value.has(n))return;let r=e[e.length-1];(!r||r.name!==t.group)&&e.push({key:`${e.length}:${t.group??``}`,name:t.group,labelId:`${T.value}-group-${e.length}`,entries:[]}),e[e.length-1].entries.push({option:t,index:n})}),e});function W(e,t){let n=l.options??[];for(let r=e+t;r>=0&&r<n.length;r+=t)if(!n[r].disabled&&U.value.has(r))return r;return e}function ke(e){if(e.disabled)return;let t;if(l.multiple){let n=[...R.value],r=n.indexOf(e.value);r>=0?n.splice(r,1):n.push(e.value),t=n}else t=e.value,q();u(`update:modelValue`,t),u(`change`,t)}function G(){let e=Ee();if(!e)return;let t=e.getBoundingClientRect(),n=S.value?.offsetHeight??0,r=window.innerHeight-t.bottom,ee=t.top,i=n>0&&r<n&&ee>r,a=b.trigger?Math.max(t.width,240):t.width,o=b.trigger?Math.max(8,Math.min(t.left,window.innerWidth-a-8)):t.left;C.value={position:`fixed`,top:i?`${t.top-n}px`:`${t.bottom}px`,left:`${o}px`,width:`${a}px`,zIndex:`9999`}}function K(){if(E.value)return;h.value=!0,G();let e=l.options??[];_.value=R.value.length>0?Math.max(0,e.findIndex(e=>e.value===R.value[0])):-1,(0,s.nextTick)(()=>{G(),Z(),m.value?.focus({preventScroll:!0})})}function q(){let e=!!S.value?.contains(document.activeElement);h.value=!1,_.value=-1,p.value=``,e&&x()}function J(){h.value?q():K()}function Y(e){let t=e.target,n=v.value?.contains(t)??!1,r=S.value?.contains(t)??!1;!n&&!r&&q()}function X(){h.value&&G()}(0,s.watch)(h,e=>{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))}),(0,s.onBeforeUnmount)(()=>{document.removeEventListener(`mousedown`,Y),window.removeEventListener(`scroll`,X,!0),window.removeEventListener(`resize`,X)});function Ae(e){let t=l.options??[];if(!h.value){(e.key===`Enter`||e.key===` `||e.key===`ArrowDown`)&&(e.preventDefault(),K());return}e.key===`Escape`?(q(),e.preventDefault()):e.key===`Tab`?q():e.key===`ArrowDown`?(e.preventDefault(),_.value=W(_.value,1),Z()):e.key===`ArrowUp`?(e.preventDefault(),_.value>0&&(_.value=W(_.value,-1)),Z()):(e.key===`Enter`||e.key===` `)&&_.value>=0&&(e.preventDefault(),ke(t[_.value]))}function Z(){(0,s.nextTick)(()=>{!S.value||_.value<0||S.value.querySelector(`[data-index="${_.value}"]`)?.scrollIntoView({block:`nearest`})})}(0,s.watch)(p,()=>{if(!h.value)return;let e=W(-1,1);_.value=e===-1?-1:e,Z()});function je(e){if(e.key===` `){e.stopPropagation();return}if(e.key===`Home`||e.key===`End`){e.stopPropagation();return}Ae(e)}let Me=(0,s.computed)(()=>({isOpen:h.value,toggle:J,open:K,close:q,attrs:{"aria-expanded":h.value,"aria-haspopup":`listbox`,"aria-controls":h.value?F.value:void 0,"aria-activedescendant":L.value,"aria-invalid":k.value,onClick:J}})),Ne=n.useNbStrings(),Pe=(0,s.computed)(()=>l.clearLabel??Ne.value.selectClear),Q=(0,s.computed)(()=>l.clearable&&!E.value&&R.value.length>0);function $(){let e=l.multiple?[]:null;q(),u(`update:modelValue`,e),u(`change`,e),x()}let Fe=(0,s.computed)(()=>[`nb-select`,`nb-select--${l.variant}`,`nb-select--${w.size.value}`,{"nb-select--open":h.value,"nb-select--focused":g.value&&!h.value,"nb-select--error":P.value,"nb-select--warning":!P.value&&(!D&&!!l.warning||w.status.value===`warning`),"nb-select--multiple":l.multiple,"nb-select--bare":!!b.trigger}]);return Ce({open:K,close:q}),(n,a)=>((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,null,[(0,s.createElementVNode)(`div`,(0,s.mergeProps)({ref_key:`rootRef`,ref:v},n.$attrs,{class:Fe.value,onKeydown:Ae}),[n.$slots.trigger?(0,s.renderSlot)(n.$slots,`trigger`,(0,s.normalizeProps)((0,s.mergeProps)({key:0},Me.value))):c.variant===`default`?((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:1},[n.$slots.label&&!(0,s.unref)(D)?(0,s.renderSlot)(n.$slots,`label`,{key:0}):c.label&&!(0,s.unref)(D)?((0,s.openBlock)(),(0,s.createBlock)(ee.t,{key:1,for:(0,s.unref)(T),required:c.required,disabled:(0,s.unref)(E)},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(c.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,s.createCommentVNode)(``,!0),(0,s.createVNode)(d,{wrap:c.clearable},{default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`button`,{id:(0,s.unref)(T),ref_key:`triggerRef`,ref:y,type:`button`,class:`nb-select__trigger`,role:`combobox`,"aria-expanded":h.value,"aria-haspopup":`listbox`,"aria-controls":h.value?F.value:void 0,"aria-activedescendant":L.value,"aria-disabled":(0,s.unref)(E)||void 0,"aria-required":c.required||void 0,"aria-invalid":N.value,"aria-describedby":M.value,disabled:(0,s.unref)(E)||void 0,onClick:J,onFocus:a[0]||=e=>g.value=!0,onBlur:a[1]||=e=>g.value=!1},[(0,s.createElementVNode)(`span`,{class:(0,s.normalizeClass)([`nb-select__value`,{"nb-select__value--placeholder":!B.value,"nb-select__value--with-icon":!!z.value}])},[z.value?((0,s.openBlock)(),(0,s.createBlock)(t.t,{key:0,class:`nb-select__value-icon`,name:z.value,size:16},null,8,[`name`])):(0,s.createCommentVNode)(``,!0),B.value?(0,s.renderSlot)(n.$slots,`value`,{key:1,values:R.value},()=>[(0,s.createTextVNode)((0,s.toDisplayString)(B.value),1)]):((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:2},[(0,s.createTextVNode)((0,s.toDisplayString)(c.placeholder),1)],64))],2),c.error&&!(0,s.unref)(D)?((0,s.openBlock)(),(0,s.createBlock)(i.t,{key:0,variant:`error`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-select__status-icon`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(c.error),1)]),_:1})):c.warning&&!(0,s.unref)(D)?((0,s.openBlock)(),(0,s.createBlock)(i.t,{key:1,variant:`warning`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-select__status-icon`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(c.warning),1)]),_:1})):(0,s.createCommentVNode)(``,!0),Q.value?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,oe)):(0,s.createCommentVNode)(``,!0),(0,s.createVNode)(r.t,{align:`center`,justify:`center`,class:`nb-select__caret`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)(t.t,{name:h.value?(0,s.unref)(ie.regular):(0,s.unref)(ne.regular),size:16},null,8,[`name`])]),_:1})],40,ae),Q.value?((0,s.openBlock)(),(0,s.createBlock)(e.t,{key:0,variant:`ghost`,icon:(0,s.unref)(re.regular),size:`xs`,label:Pe.value,class:`nb-select__clear`,onClick:$,onKeydown:[a[2]||=(0,s.withKeys)((0,s.withModifiers)(()=>{},[`stop`]),[`enter`]),a[3]||=(0,s.withKeys)((0,s.withModifiers)(()=>{},[`stop`]),[`space`])]},null,8,[`icon`,`label`])):(0,s.createCommentVNode)(``,!0)]),_:3},8,[`wrap`]),c.error&&!(0,s.unref)(D)?((0,s.openBlock)(),(0,s.createBlock)(i.t,{id:(0,s.unref)(O).error,key:(0,s.unref)(j),variant:`error`,live:(0,s.unref)(A),class:`nb-select__message`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(c.error),1)]),_:1},8,[`id`,`live`])):c.warning&&!(0,s.unref)(D)?((0,s.openBlock)(),(0,s.createBlock)(i.t,{id:(0,s.unref)(O).warning,key:(0,s.unref)(j),variant:`warning`,live:(0,s.unref)(A),class:`nb-select__message`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(c.warning),1)]),_:1},8,[`id`,`live`])):c.helper&&!(0,s.unref)(D)?((0,s.openBlock)(),(0,s.createBlock)(i.t,{id:(0,s.unref)(O).helper,key:(0,s.unref)(j),variant:`helper`,live:(0,s.unref)(A),class:`nb-select__message`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(c.helper),1)]),_:1},8,[`id`,`live`])):(0,s.createCommentVNode)(``,!0)],64)):c.variant===`fluid`?((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:2},[(0,s.createVNode)(d,{wrap:c.clearable},{default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`button`,{id:(0,s.unref)(T),ref_key:`triggerRef`,ref:y,type:`button`,class:`nb-select__trigger`,role:`combobox`,"aria-expanded":h.value,"aria-haspopup":`listbox`,"aria-controls":h.value?F.value:void 0,"aria-activedescendant":L.value,"aria-disabled":(0,s.unref)(E)||void 0,"aria-required":c.required||void 0,"aria-invalid":N.value,"aria-describedby":M.value,disabled:(0,s.unref)(E)||void 0,onClick:J,onFocus:a[4]||=e=>g.value=!0,onBlur:a[5]||=e=>g.value=!1},[(c.label||n.$slots.label)&&!(0,s.unref)(D)?((0,s.openBlock)(),(0,s.createBlock)(r.t,{key:0,dir:`row`,align:`center`,gap:`xs`,class:`nb-select__inner-header`},{default:(0,s.withCtx)(()=>[n.$slots.label?(0,s.renderSlot)(n.$slots,`label`,{key:0}):((0,s.openBlock)(),(0,s.createElementBlock)(`label`,ce,[(0,s.createTextVNode)((0,s.toDisplayString)(c.label)+` `,1),c.required?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,le,`*`)):(0,s.createCommentVNode)(``,!0)])),c.helper&&!c.error&&!c.warning?((0,s.openBlock)(),(0,s.createBlock)(i.t,{key:2,id:(0,s.unref)(O).helper,variant:`helper`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-select__inner-message`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(c.helper),1)]),_:1},8,[`id`])):(0,s.createCommentVNode)(``,!0)]),_:3})):(0,s.createCommentVNode)(``,!0),(0,s.createVNode)(r.t,{dir:`row`,align:`end`,flex:``,class:`nb-select__value-row`},{default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`span`,{class:(0,s.normalizeClass)([`nb-select__value`,{"nb-select__value--placeholder":!B.value,"nb-select__value--with-icon":!!z.value}])},[z.value?((0,s.openBlock)(),(0,s.createBlock)(t.t,{key:0,class:`nb-select__value-icon`,name:z.value,size:16},null,8,[`name`])):(0,s.createCommentVNode)(``,!0),B.value?(0,s.renderSlot)(n.$slots,`value`,{key:1,values:R.value},()=>[(0,s.createTextVNode)((0,s.toDisplayString)(B.value),1)]):((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:2},[(0,s.createTextVNode)((0,s.toDisplayString)(c.placeholder),1)],64))],2),Q.value?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,ue)):(0,s.createCommentVNode)(``,!0),(0,s.createVNode)(r.t,{align:`center`,justify:`center`,class:`nb-select__caret`},{default:(0,s.withCtx)(()=>[(0,s.createVNode)(t.t,{name:h.value?(0,s.unref)(ie.regular):(0,s.unref)(ne.regular),size:16},null,8,[`name`])]),_:1})]),_:3})],40,se),Q.value?((0,s.openBlock)(),(0,s.createBlock)(e.t,{key:0,variant:`ghost`,icon:(0,s.unref)(re.regular),size:`xs`,label:Pe.value,class:`nb-select__clear`,onClick:$,onKeydown:[a[6]||=(0,s.withKeys)((0,s.withModifiers)(()=>{},[`stop`]),[`enter`]),a[7]||=(0,s.withKeys)((0,s.withModifiers)(()=>{},[`stop`]),[`space`])]},null,8,[`icon`,`label`])):(0,s.createCommentVNode)(``,!0)]),_:3},8,[`wrap`]),c.error&&!(0,s.unref)(D)?((0,s.openBlock)(),(0,s.createBlock)(i.t,{id:(0,s.unref)(O).error,key:(0,s.unref)(j),variant:`error`,live:(0,s.unref)(A),class:`nb-select__fluid-message`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(c.error),1)]),_:1},8,[`id`,`live`])):c.warning&&!(0,s.unref)(D)?((0,s.openBlock)(),(0,s.createBlock)(i.t,{id:(0,s.unref)(O).warning,key:(0,s.unref)(j),variant:`warning`,live:(0,s.unref)(A),class:`nb-select__fluid-message`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(c.warning),1)]),_:1},8,[`id`,`live`])):(0,s.createCommentVNode)(``,!0)],64)):(0,s.createCommentVNode)(``,!0)],16),((0,s.openBlock)(),(0,s.createBlock)(s.Teleport,{to:`body`},[(0,s.createVNode)(s.Transition,{name:`nb-select-pop`},{default:(0,s.withCtx)(()=>[h.value?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:0,id:F.value,ref_key:`dropdownRef`,ref:S,class:(0,s.normalizeClass)([`nb-select__dropdown`,{"nb-select__dropdown--check":c.selectedMark===`check`,"nb-select__dropdown--anchored":!!n.$slots.trigger}]),style:(0,s.normalizeStyle)(C.value),role:`listbox`,"aria-multiselectable":c.multiple||void 0},[c.searchable?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,fe,[(0,s.withDirectives)((0,s.createElementVNode)(`input`,{ref_key:`searchRef`,ref:m,"onUpdate:modelValue":a[8]||=e=>p.value=e,type:`search`,class:`nb-select__search-input`,autocomplete:`off`,spellcheck:`false`,placeholder:c.searchPlaceholder,"aria-label":c.searchPlaceholder,"aria-controls":F.value,"aria-activedescendant":_.value>=0?I(_.value):void 0,onKeydown:je},null,40,pe),[[s.vModelText,p.value]])])):(0,s.createCommentVNode)(``,!0),((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(Oe.value,e=>((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:e.key,class:`nb-select__group`,role:`group`,"aria-labelledby":e.name?e.labelId:void 0},[e.name?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:0,id:e.labelId,class:`nb-select__group-label`},(0,s.toDisplayString)(e.name),9,he)):(0,s.createCommentVNode)(``,!0),((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(e.entries,e=>((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{id:I(e.index),key:e.option.value,"data-index":e.index,class:(0,s.normalizeClass)([`nb-select__option`,{"nb-select__option--selected":V(e.option.value),"nb-select__option--highlighted":_.value===e.index,"nb-select__option--disabled":e.option.disabled}]),role:`option`,"aria-selected":V(e.option.value),"aria-disabled":e.option.disabled||void 0,onMouseenter:t=>_.value=e.index,onClick:t=>ke(e.option)},[c.multiple||c.selectedMark===`check`?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,_e,[V(e.option.value)?((0,s.openBlock)(),(0,s.createElementBlock)(`svg`,ve,[...a[12]||=[(0,s.createElementVNode)(`path`,{d:`M1 4l3 3 5-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])):(0,s.createCommentVNode)(``,!0)])):(0,s.createCommentVNode)(``,!0),e.option.icon?((0,s.openBlock)(),(0,s.createBlock)(t.t,{key:1,class:`nb-select__option-icon`,name:e.option.icon,size:16},null,8,[`name`])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,ye,[(0,s.renderSlot)(n.$slots,`option`,{option:e.option},()=>[(0,s.createTextVNode)((0,s.toDisplayString)(e.option.label),1)])])],42,ge))),128))],8,me))),128)),!c.options||c.options.length===0?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,be,` No options `)):c.searchable&&U.value.size===0?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,xe,(0,s.toDisplayString)(c.noResultsLabel),1)):(0,s.createCommentVNode)(``,!0),c.creatable?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:3,class:`nb-select__create`,onMousedown:a[11]||=(0,s.withModifiers)(()=>{},[`prevent`])},[(0,s.withDirectives)((0,s.createElementVNode)(`input`,{"onUpdate:modelValue":a[9]||=e=>f.value=e,type:`text`,class:`nb-select__create-input`,placeholder:c.createPlaceholder||`Add new…`,onKeydown:[(0,s.withKeys)((0,s.withModifiers)(Te,[`prevent`]),[`enter`]),a[10]||=(0,s.withModifiers)(()=>{},[`stop`])]},null,40,Se),[[s.vModelText,f.value]])],32)):(0,s.createCommentVNode)(``,!0)],14,de)):(0,s.createCommentVNode)(``,!0)]),_:3})]))],64))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
|