@nubisco/ui 5.48.1 → 5.49.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--XeLRz2P.js +119 -0
- package/dist/AccordionItem-BYSH6dZK.cjs +1 -0
- package/dist/ActionGroup-48ZXZCsn.cjs +1 -0
- package/dist/ActionGroup-DzQjn3ir.js +137 -0
- package/dist/{AiLabel-DywBjSzr.js → AiLabel-CSSIkvKP.js} +20 -20
- package/dist/{AiLabel-pRN10dQV.cjs → AiLabel-DSKUOcZs.cjs} +1 -1
- package/dist/{AiProvider-DY1xxZff.cjs → AiProvider-BrjUMTRk.cjs} +1 -1
- package/dist/{AiProvider-D8O_YaaP.js → AiProvider-Db47uagx.js} +6 -6
- package/dist/{AiUsage-HcYF6RQ2.js → AiUsage-BOrAXk2-.js} +2 -2
- package/dist/{AiUsage-DRj51zK5.cjs → AiUsage-fQqE0B6N.cjs} +1 -1
- package/dist/BackToTop-DgFlV4p4.cjs +1 -0
- package/dist/BackToTop-DrgXqZgF.js +51 -0
- package/dist/Banner-CazPCK0F.js +89 -0
- package/dist/Banner-CyU3PPnt.cjs +1 -0
- package/dist/{BarChart-IX4imFVT.cjs → BarChart-3YO4YfUt.cjs} +1 -1
- package/dist/{BarChart-tB6MOMoR.js → BarChart-CDvhhPk0.js} +4 -4
- package/dist/BatchActions-0P-b3qLI.js +84 -0
- package/dist/BatchActions-FDPiGUNh.cjs +1 -0
- package/dist/{Blueprint-46DWDZmu.js → Blueprint-CGGNppmS.js} +2 -2
- package/dist/{Blueprint-NyUNNf-G.cjs → Blueprint-DBIXzLYg.cjs} +1 -1
- package/dist/{BlueprintCard-Cda5rPZu.cjs → BlueprintCard-D3h_rGhj.cjs} +1 -1
- package/dist/{BlueprintCard-DDNP1vkk.js → BlueprintCard-_FItugFc.js} +107 -107
- package/dist/{BlueprintControls-D0MdXrVv.js → BlueprintControls-1l0QVtB7.js} +49 -75
- package/dist/BlueprintControls-C3ffD6W8.cjs +1 -0
- package/dist/{Board-CaFH4-Qw.js → Board-CSVCzJ1s.js} +178 -190
- package/dist/Board-gUICo94e.cjs +1 -0
- package/dist/BottomPanel-1EkHEQ_H.js +81 -0
- package/dist/BottomPanel-n2jWpFH7.cjs +1 -0
- package/dist/Breadcrumbs-BgMh5bfe.js +185 -0
- package/dist/Breadcrumbs-DN_2wxQS.cjs +1 -0
- package/dist/{Briefing-CoDyU3k4.js → Briefing-0A1frO4v.js} +3 -3
- package/dist/{Briefing-B_ofl8Rt.cjs → Briefing-AqSz-ZdZ.cjs} +1 -1
- package/dist/{BriefingDestination-DAu5S2HI.cjs → BriefingDestination-CqyKzyXx.cjs} +1 -1
- package/dist/{BriefingDestination-CK4XdAOo.js → BriefingDestination-v3kNa6o_.js} +4 -4
- package/dist/Button-BHFtgOXA.cjs +1 -0
- package/dist/Button-tpOmP8iV.js +699 -0
- package/dist/ButtonSet-BV76HHgD.js +67 -0
- package/dist/ButtonSet-Bj9mIOW2.cjs +1 -0
- package/dist/Calendar-Bf0Nk0rA.js +153 -0
- package/dist/Calendar-D9J17bTp.cjs +1 -0
- package/dist/Card-C6KAn4tN.cjs +1 -0
- package/dist/Card-qNem4s60.js +162 -0
- package/dist/{Checkbox-DXQpih7I.js → Checkbox-BgXXVsCC.js} +1 -1
- package/dist/{Checkbox-7JJdh4sN.cjs → Checkbox-DPPln6oG.cjs} +1 -1
- package/dist/{CheckboxGroup-B8T3zLQC.cjs → CheckboxGroup-B2a3ezEK.cjs} +1 -1
- package/dist/{CheckboxGroup-BHn1hpzh.js → CheckboxGroup-Ck1ylAX9.js} +3 -3
- package/dist/ChipGroup-CVDk4ElV.js +74 -0
- package/dist/ChipGroup-DojKPHhq.cjs +1 -0
- package/dist/CloseButton-9TTFHFmx.cjs +1 -0
- package/dist/CloseButton-CdH12Hdn.js +48 -0
- package/dist/{ColorStrip-BW1nFTja.js → ColorStrip-CuF9ZGoO.js} +2 -2
- package/dist/{ColorStrip-AEg8dQbl.cjs → ColorStrip-bpguV5b2.cjs} +1 -1
- package/dist/CommandPalette-CCEzVWfb.cjs +1 -0
- package/dist/{CommandPalette-CD75Qytr.js → CommandPalette-D1DuzaA1.js} +100 -85
- package/dist/Confirm-BQxQlmjs.cjs +1 -0
- package/dist/Confirm-DLhI3VVh.js +331 -0
- package/dist/{ContainedListItem-Dj7TcGpO.cjs → ContainedListItem-DjHEyhf8.cjs} +1 -1
- package/dist/{ContainedListItem-CSE8d5M6.js → ContainedListItem-DtTZOm-_.js} +1 -1
- package/dist/ContentSwitcher-B-PUG0FE.js +99 -0
- package/dist/ContentSwitcher-CYSF2B-a.cjs +1 -0
- package/dist/CopyButton-CQ9tcyfs.js +60 -0
- package/dist/CopyButton-DRvJ4rf5.cjs +1 -0
- package/dist/DataTable-CHztTxz1.cjs +1 -0
- package/dist/DataTable-Dp3WZihu.js +545 -0
- package/dist/DatePicker-BLRQEI-6.js +755 -0
- package/dist/DatePicker-CJlffHeM.cjs +1 -0
- package/dist/FileUploader-UzgK5RKz.cjs +1 -0
- package/dist/FileUploader-dzVu4iSo.js +195 -0
- package/dist/FloatingToolbar-BTmWtGU7.js +116 -0
- package/dist/FloatingToolbar-DDCJuaq0.cjs +1 -0
- package/dist/{Form-D6rgkJ_Y.cjs → Form-D2KHlP7N.cjs} +1 -1
- package/dist/{Form-1UVOFWaf.js → Form-igwYeEVI.js} +1 -1
- package/dist/{GanttChart-B_LqsmcR.cjs → GanttChart-ClFarMf-.cjs} +1 -1
- package/dist/{GanttChart-cZguVXW8.js → GanttChart-N05mLdsn.js} +3 -3
- package/dist/{ImageCropper-CJ2mCj9z.cjs → ImageCropper-CoYR_Hhy.cjs} +1 -1
- package/dist/{ImageCropper-BFKMYthJ.js → ImageCropper-wQknqxNK.js} +2 -2
- package/dist/ImagePicker-Dhj01jq7.cjs +1 -0
- package/dist/ImagePicker-zkoay3zZ.js +171 -0
- package/dist/InfoHint-BEzkNQTM.cjs +1 -0
- package/dist/InfoHint-BlHxrTw6.js +178 -0
- package/dist/InlineEdit-DBMKJ3xP.cjs +1 -0
- package/dist/InlineEdit-Y8i0ibjH.js +117 -0
- package/dist/{InlineLoading-D8T0WO05.js → InlineLoading-CDJ_ZJ6v.js} +1 -1
- package/dist/{InlineLoading-CB_1PwMx.cjs → InlineLoading-DKCzcjZJ.cjs} +1 -1
- package/dist/InputGroup-DIAJy1Sv.cjs +1 -0
- package/dist/InputGroup-DQxpFFlP.js +86 -0
- package/dist/InputGroup.context-BTt6zUkj.cjs +1 -0
- package/dist/InputGroup.context-CJAWx5GI.js +16 -0
- package/dist/{InterpolationChart-CttBiNWU.js → InterpolationChart-BX8-UOeZ.js} +3 -3
- package/dist/{InterpolationChart-CYWJFUcs.cjs → InterpolationChart-DaqKUIWi.cjs} +1 -1
- package/dist/{LineChart-DNDSJQrB.cjs → LineChart-CGXpi9l8.cjs} +1 -1
- package/dist/{LineChart-J8gCM2Ba.js → LineChart-CplGrv8-.js} +4 -4
- package/dist/Menu-CcQpTOd3.js +189 -0
- package/dist/Menu-SlBztEy3.cjs +1 -0
- package/dist/{MenuBarItem-B8H9KfFo.cjs → MenuBarItem-BIDXX-uX.cjs} +1 -1
- package/dist/{MenuBarItem-BLdVIz0j.js → MenuBarItem-BlT1hN-b.js} +1 -1
- package/dist/Modal-BSGKOUi_.js +223 -0
- package/dist/Modal-D0hGHXic.cjs +1 -0
- package/dist/NotificationCenter-_CK8Eejg.js +587 -0
- package/dist/NotificationCenter-xg0ZCegj.cjs +1 -0
- package/dist/NumberInput-CcXqTINb.cjs +1 -0
- package/dist/NumberInput-DfrhQayO.js +383 -0
- package/dist/OverflowMenu-BlZ_wEja.js +124 -0
- package/dist/OverflowMenu-CaC5E0Oy.cjs +1 -0
- package/dist/{PageHeader-BVcTzPcW.cjs → PageHeader-2jBgITYE.cjs} +1 -1
- package/dist/{PageHeader-CFMhwRcw.js → PageHeader-DgjItuag.js} +2 -2
- package/dist/{Pagination-VmE04nzc.cjs → Pagination-B1km1o28.cjs} +1 -1
- package/dist/{Pagination-zTp1lrSP.js → Pagination-DA1Nglqx.js} +26 -26
- package/dist/{Panel-7qPoq2lb.cjs → Panel-NC6_ZogV.cjs} +1 -1
- package/dist/{Panel-D5OHjaTP.js → Panel-zyzu638n.js} +1 -1
- package/dist/{PieChart-Ct8oicOS.cjs → PieChart-DQhs44eH.cjs} +1 -1
- package/dist/{PieChart-CAB3b8LE.js → PieChart-D_02nX0-.js} +3 -3
- package/dist/{PrimaryActionScope-B7VLsHzT.cjs → PrimaryActionScope-Dp2gvqwk.cjs} +1 -1
- package/dist/{PrimaryActionScope-CRdjZE0V.js → PrimaryActionScope-sogYOZXZ.js} +1 -1
- package/dist/{ProgressBar-DK-j6Bzv.js → ProgressBar-Bp-pe6sU.js} +2 -2
- package/dist/{ProgressBar-CfJJf7Sc.cjs → ProgressBar-z912Ppfm.cjs} +1 -1
- package/dist/{Radio-CWWt_o_F.js → Radio-DcMkavI8.js} +2 -2
- package/dist/{Radio-D0YjKuB2.cjs → Radio-DuvSK9tl.cjs} +1 -1
- package/dist/Search-BUgIh9TX.js +130 -0
- package/dist/Search-D4SG2q3c.cjs +1 -0
- package/dist/Select-Cf0T4gIu.js +604 -0
- package/dist/Select-DhwcDMnf.cjs +1 -0
- package/dist/Shell-B2y5hn9K.cjs +1 -0
- package/dist/Shell-Bh6s0T89.js +536 -0
- package/dist/ShellPanel-BDE6Y773.cjs +1 -0
- package/dist/ShellPanel-CB71IKMY.js +89 -0
- package/dist/{SidebarCollapseToggle-C6aLQTYv.cjs → SidebarCollapseToggle-CqVURaqs.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-D5yQ-8Vu.js → SidebarCollapseToggle-Dm4QMGpc.js} +2 -2
- package/dist/{SidebarHeaderToggle-Bdh1Z9aF.cjs → SidebarHeaderToggle-KW1yBlpF.cjs} +1 -1
- package/dist/{SidebarHeaderToggle-C-QIOLnU.js → SidebarHeaderToggle-daU1HfJH.js} +3 -3
- package/dist/Skeleton-CMuZJ1dR.cjs +1 -0
- package/dist/{Skeleton-C1e02dcW.js → Skeleton-Hmb5a2G_.js} +48 -31
- package/dist/{Slider-BaM5cclm.cjs → Slider-D9glvyrU.cjs} +1 -1
- package/dist/{Slider-BAXKJCNG.js → Slider-D9hgB8GJ.js} +4 -4
- package/dist/{Spinner-PT95bjWq.cjs → Spinner-BTN06wsE.cjs} +1 -1
- package/dist/{Spinner-CbBPddUx.js → Spinner-C3MeCm2k.js} +1 -1
- package/dist/{Stat-C9XaqyaG.cjs → Stat-BoQUn69z.cjs} +1 -1
- package/dist/{Stat-DJJln4rH.js → Stat-Bz0NCLTm.js} +2 -2
- package/dist/{Stepper-DV0q0Dfv.cjs → Stepper-BLyPFPge.cjs} +1 -1
- package/dist/{Stepper-B4xqkWXg.js → Stepper-BXPgrQE8.js} +1 -1
- package/dist/{StepperStep-iGyGKnQL.cjs → StepperStep-DGeyZQXY.cjs} +1 -1
- package/dist/{StepperStep-BYhlgeb1.js → StepperStep-DLr_ctr4.js} +1 -1
- package/dist/SuggestionList-DjtF5POh.cjs +1 -0
- package/dist/SuggestionList-SYGj7Sjv.js +225 -0
- package/dist/{Switch-D3j7PPhY.cjs → Switch-CQj6AsQh.cjs} +1 -1
- package/dist/{Switch-CbYMiEbQ.js → Switch-CqLfdT_m.js} +2 -2
- package/dist/{TableOfContents-CM0HKSde.js → TableOfContents-BIzH0Twf.js} +24 -34
- package/dist/{TableOfContents-By2Non4K.cjs → TableOfContents-Ct-Kwm8X.cjs} +1 -1
- package/dist/{Tabs--lz44FBk.js → Tabs-B_bsdxWy.js} +1 -1
- package/dist/{Tabs-DKikiz0_.cjs → Tabs-CTMUPND5.cjs} +1 -1
- package/dist/TextInput-BM2Zc2_R.cjs +2 -0
- package/dist/TextInput-DVpNJNwY.js +406 -0
- package/dist/Toast-BaMGYx8-.js +118 -0
- package/dist/Toast-BvZywdtO.cjs +1 -0
- package/dist/{Toaster-CJMQM8JU.cjs → Toaster-CYSWYmUm.cjs} +1 -1
- package/dist/{Toaster-DxBW9XQ0.js → Toaster-DtUkjQM_.js} +1 -1
- package/dist/Toolbar-BmJeXz4C.cjs +1 -0
- package/dist/Toolbar-tOeTdj8a.js +48 -0
- package/dist/Toolbar.context-Bli1SqM3.js +4 -0
- package/dist/Toolbar.context-D3Uj5o0_.cjs +1 -0
- package/dist/{Tree-DP2NPXOL.cjs → Tree-CeXSIcpy.cjs} +1 -1
- package/dist/{Tree-CkcFwDr7.js → Tree-RRVk_0QJ.js} +1 -1
- package/dist/{TreeNode-DCnlEEpj.js → TreeNode-D9fc2RE_.js} +1 -1
- package/dist/{TreeNode-CtklZefA.cjs → TreeNode-z6APXuvr.cjs} +1 -1
- package/dist/UserMenu-BGIIKwi6.cjs +1 -0
- package/dist/{UserMenu-CWRMaPGO.js → UserMenu-GGR8K7gP.js} +109 -102
- package/dist/Video-BxNkDWqi.cjs +1 -0
- package/dist/Video-DD01piHm.js +106 -0
- package/dist/Walkthrough-C_5h67cq.cjs +1 -0
- package/dist/Walkthrough-DpxYuLMU.js +333 -0
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +271 -253
- package/dist/component-styles.json +88 -2
- 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.d.ts +41 -9
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/ActionGroup.vue.d.ts +2 -2
- package/dist/components/ActionGroup.vue.d.ts.map +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/BackToTop.cjs +1 -1
- package/dist/components/BackToTop.mjs +1 -1
- package/dist/components/BackToTop.vue.d.ts.map +1 -1
- package/dist/components/Badge.cjs +1 -1
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/Banner.cjs +1 -1
- package/dist/components/Banner.mjs +1 -1
- package/dist/components/Banner.vue.d.ts.map +1 -1
- package/dist/components/BatchActions.cjs +1 -0
- package/dist/components/BatchActions.d.ts +43 -0
- package/dist/components/BatchActions.mjs +2 -0
- package/dist/components/BatchActions.vue.d.ts +30 -0
- package/dist/components/BatchActions.vue.d.ts.map +1 -0
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/Blueprint.vue.d.ts +2 -2
- 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.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/Board.vue.d.ts +2 -2
- package/dist/components/Board.vue.d.ts.map +1 -1
- package/dist/components/BottomPanel.cjs +1 -1
- package/dist/components/BottomPanel.mjs +1 -1
- package/dist/components/BottomPanel.vue.d.ts +2 -2
- package/dist/components/BottomPanel.vue.d.ts.map +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Breadcrumbs.vue.d.ts.map +1 -1
- package/dist/components/Briefing.cjs +1 -1
- package/dist/components/Briefing.mjs +1 -1
- package/dist/components/BriefingDestination.cjs +1 -1
- package/dist/components/BriefingDestination.mjs +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.d.ts +38 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts +4 -0
- package/dist/components/Button.vue.d.ts.map +1 -1
- package/dist/components/ButtonSet.cjs +1 -0
- package/dist/components/ButtonSet.d.ts +43 -0
- package/dist/components/ButtonSet.mjs +2 -0
- package/dist/components/ButtonSet.vue.d.ts +11 -0
- package/dist/components/ButtonSet.vue.d.ts.map +1 -0
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Calendar.vue.d.ts +2 -2
- package/dist/components/Calendar.vue.d.ts.map +1 -1
- package/dist/components/Card.cjs +1 -1
- package/dist/components/Card.mjs +1 -1
- package/dist/components/Card.vue.d.ts +11 -10
- package/dist/components/Card.vue.d.ts.map +1 -1
- package/dist/components/CardGrid.cjs +1 -1
- package/dist/components/CardGrid.d.ts +15 -0
- package/dist/components/CardGrid.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/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 -0
- package/dist/components/ChipGroup.d.ts +29 -0
- package/dist/components/ChipGroup.mjs +2 -0
- package/dist/components/ChipGroup.vue.d.ts +14 -0
- package/dist/components/ChipGroup.vue.d.ts.map +1 -0
- package/dist/components/CloseButton.cjs +1 -0
- package/dist/components/CloseButton.d.ts +26 -0
- package/dist/components/CloseButton.mjs +2 -0
- package/dist/components/CloseButton.vue.d.ts +19 -0
- package/dist/components/CloseButton.vue.d.ts.map +1 -0
- 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/CommandPalette.vue.d.ts.map +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.d.ts +7 -5
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/Confirm.vue.d.ts +1 -1
- package/dist/components/Confirm.vue.d.ts.map +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 -0
- package/dist/components/ContentSwitcher.d.ts +36 -0
- package/dist/components/ContentSwitcher.mjs +2 -0
- package/dist/components/ContentSwitcher.vue.d.ts +13 -0
- package/dist/components/ContentSwitcher.vue.d.ts.map +1 -0
- package/dist/components/CopyButton.cjs +1 -1
- package/dist/components/CopyButton.mjs +1 -1
- package/dist/components/CopyButton.vue.d.ts.map +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.d.ts +12 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DataTable.vue.d.ts +1 -0
- package/dist/components/DataTable.vue.d.ts.map +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DatePicker.vue.d.ts +2 -2
- package/dist/components/DatePicker.vue.d.ts.map +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/FileUploader.vue.d.ts.map +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/FloatingToolbar.vue.d.ts +1 -3
- package/dist/components/FloatingToolbar.vue.d.ts.map +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/Grid.vue.d.ts +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/ImagePicker.vue.d.ts.map +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/InlineEdit.cjs +1 -1
- package/dist/components/InlineEdit.mjs +1 -1
- package/dist/components/InlineEdit.vue.d.ts.map +1 -1
- package/dist/components/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/InputGroup.cjs +1 -0
- package/dist/components/InputGroup.context.d.ts +50 -0
- package/dist/components/InputGroup.context.d.ts.map +1 -0
- package/dist/components/InputGroup.d.ts +37 -0
- package/dist/components/InputGroup.mjs +2 -0
- package/dist/components/InputGroup.vue.d.ts +27 -0
- package/dist/components/InputGroup.vue.d.ts.map +1 -0
- package/dist/components/JsonTree.cjs +1 -1
- package/dist/components/JsonTree.mjs +1 -1
- package/dist/components/Label.cjs +1 -1
- package/dist/components/Label.mjs +1 -1
- package/dist/components/Layer.cjs +1 -1
- package/dist/components/Layer.mjs +1 -1
- package/dist/components/Menu.cjs +1 -1
- package/dist/components/Menu.d.ts +11 -0
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/Menu.vue.d.ts +2 -0
- package/dist/components/Menu.vue.d.ts.map +1 -1
- 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.d.ts +11 -7
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/Modal.vue.d.ts +3 -3
- package/dist/components/Modal.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.d.ts +2 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenter.vue.d.ts.map +1 -1
- package/dist/components/NotificationCenterItem.cjs +1 -1
- package/dist/components/NotificationCenterItem.mjs +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.map +1 -1
- package/dist/components/OverflowMenu.cjs +1 -0
- package/dist/components/OverflowMenu.d.ts +41 -0
- package/dist/components/OverflowMenu.mjs +2 -0
- package/dist/components/OverflowMenu.vue.d.ts +36 -0
- package/dist/components/OverflowMenu.vue.d.ts.map +1 -0
- 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 -0
- package/dist/components/Search.d.ts +36 -0
- package/dist/components/Search.mjs +2 -0
- package/dist/components/Search.vue.d.ts +32 -0
- package/dist/components/Search.vue.d.ts.map +1 -0
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.d.ts +4 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts +6 -6
- package/dist/components/Select.vue.d.ts.map +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.d.ts +1 -0
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/Shell.vue.d.ts +2 -2
- 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/ShellPanel.vue.d.ts +2 -2
- package/dist/components/ShellPanel.vue.d.ts.map +1 -1
- package/dist/components/SidebarBrand.cjs +1 -1
- package/dist/components/SidebarBrand.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/SidebarHeaderToggle.vue.d.ts.map +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.mjs +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.d.ts +20 -1
- package/dist/components/Skeleton.mjs +1 -1
- package/dist/components/Skeleton.vue.d.ts +3 -0
- package/dist/components/Skeleton.vue.d.ts.map +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.mjs +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/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/StructuredList.vue.d.ts +2 -2
- 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.d.ts +8 -0
- package/dist/components/SuggestionList.mjs +1 -1
- package/dist/components/SuggestionList.vue.d.ts +3 -0
- package/dist/components/SuggestionList.vue.d.ts.map +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.map +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 +20 -4
- 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/Toast.vue.d.ts +4 -1
- package/dist/components/Toast.vue.d.ts.map +1 -1
- package/dist/components/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/Toolbar.cjs +1 -0
- package/dist/components/Toolbar.context.d.ts +22 -0
- package/dist/components/Toolbar.context.d.ts.map +1 -0
- package/dist/components/Toolbar.d.ts +26 -0
- package/dist/components/Toolbar.mjs +2 -0
- package/dist/components/Toolbar.vue.d.ts +24 -0
- package/dist/components/Toolbar.vue.d.ts.map +1 -0
- 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/TreeNode.vue.d.ts +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/Video.vue.d.ts.map +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/components/Walkthrough.vue.d.ts.map +1 -1
- package/dist/components/Wireframe.cjs +1 -1
- package/dist/components/Wireframe.mjs +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/manifest.d.ts +9 -0
- package/dist/components/manifest.d.ts.map +1 -1
- package/dist/components/manifest.js +9 -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/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 +66 -0
- package/dist/composables/useNbStrings.composable.d.ts.map +1 -1
- package/dist/composables/useNbStrings.composable.mjs +61 -0
- package/dist/composables/useRovingFocus.composable.cjs +1 -0
- package/dist/composables/useRovingFocus.composable.d.ts +22 -0
- package/dist/composables/useRovingFocus.composable.d.ts.map +1 -0
- package/dist/composables/useRovingFocus.composable.mjs +56 -0
- package/dist/directives/ToolTip.directive.d.ts +56 -0
- package/dist/directives/ToolTip.directive.d.ts.map +1 -1
- package/dist/global.d.ts +18 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +152 -143
- package/dist/main-Bo1B-xzL.cjs +4 -0
- package/dist/main-nO1LQzsc.js +744 -0
- package/dist/main.d.ts +21 -1
- package/dist/main.d.ts.map +1 -1
- package/dist/styles/AccordionItem.css +1 -1
- package/dist/styles/ActionGroup.css +1 -1
- package/dist/styles/Banner.css +1 -1
- package/dist/styles/BatchActions.css +1 -0
- package/dist/styles/BlueprintCard.css +1 -1
- package/dist/styles/BlueprintControls.css +1 -1
- package/dist/styles/Board.css +1 -1
- package/dist/styles/BottomPanel.css +1 -1
- package/dist/styles/Breadcrumbs.css +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/ButtonSet.css +1 -0
- package/dist/styles/Calendar.css +1 -1
- package/dist/styles/Card.css +1 -1
- package/dist/styles/ChipGroup.css +1 -0
- package/dist/styles/CommandPalette.css +1 -1
- package/dist/styles/Confirm.css +1 -1
- package/dist/styles/ContentSwitcher.css +1 -0
- package/dist/styles/DataTable.css +1 -1
- package/dist/styles/DatePicker.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/InlineEdit.css +1 -1
- package/dist/styles/InputGroup.css +1 -0
- package/dist/styles/Modal.css +1 -1
- package/dist/styles/NotificationCenter.css +1 -1
- package/dist/styles/NumberInput.css +1 -1
- package/dist/styles/OverflowMenu.css +1 -0
- package/dist/styles/Pagination.css +1 -1
- package/dist/styles/Search.css +1 -0
- 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/Skeleton.css +1 -1
- package/dist/styles/SuggestionList.css +1 -1
- package/dist/styles/TableOfContents.css +1 -1
- package/dist/styles/TextInput.css +1 -1
- package/dist/styles/Toast.css +1 -1
- package/dist/styles/Toolbar.css +1 -0
- package/dist/styles/UserMenu.css +1 -1
- package/dist/styles/Walkthrough.css +1 -1
- package/dist/ui.css +43 -35
- package/dist/utils/actionFit.helper.cjs +1 -0
- package/dist/utils/actionFit.helper.d.ts +20 -0
- package/dist/utils/actionFit.helper.d.ts.map +1 -0
- package/dist/utils/actionFit.helper.mjs +13 -0
- package/package.json +2 -2
- package/src/styles/_theme.scss +11 -4
- package/src/styles/logic/_field.scss +22 -0
- package/src/styles/logic/_focus.scss +20 -0
- package/src/styles/logic/index.scss +1 -0
- package/src/utils/actionFit.helper.ts +40 -0
- package/dist/AccordionItem-DFwj28eL.js +0 -118
- package/dist/AccordionItem-DhZD2kJL.cjs +0 -1
- package/dist/ActionGroup-CJoBGUvw.js +0 -171
- package/dist/ActionGroup-CU9YQboQ.cjs +0 -1
- package/dist/BackToTop-C5gFfuu7.cjs +0 -1
- package/dist/BackToTop-DZhl6N_Q.js +0 -56
- package/dist/Banner-5uX-ujbu.js +0 -93
- package/dist/Banner-CiIQKSxv.cjs +0 -1
- package/dist/BlueprintControls-DnUoI9qp.cjs +0 -1
- package/dist/Board-BNB96CXm.cjs +0 -1
- package/dist/BottomPanel-CYxavAS0.cjs +0 -1
- package/dist/BottomPanel-vFcIk2nf.js +0 -115
- package/dist/Breadcrumbs-B-pjVWeD.js +0 -184
- package/dist/Breadcrumbs-CqDYLfIQ.cjs +0 -1
- package/dist/Button-C0N1cyOQ.cjs +0 -1
- package/dist/Button-CuwzIVWv.js +0 -132
- package/dist/Calendar-Bbk7bPW1.cjs +0 -1
- package/dist/Calendar-EiqHtUG2.js +0 -155
- package/dist/Card-B5FTcFEQ.cjs +0 -1
- package/dist/Card-DUTWbKv7.js +0 -143
- package/dist/CommandPalette-C8-2XCrf.cjs +0 -1
- package/dist/Confirm-BA-t4jPF.cjs +0 -1
- package/dist/Confirm-MmMvMttu.js +0 -313
- package/dist/CopyButton-Bcc2BDJ8.js +0 -65
- package/dist/CopyButton-CwHAVKQ6.cjs +0 -1
- package/dist/DataTable-D4KrQH5E.js +0 -485
- package/dist/DataTable-DVJnvBQM.cjs +0 -1
- package/dist/DatePicker-BmuVSyZ3.cjs +0 -1
- package/dist/DatePicker-CagtB0Sd.js +0 -743
- package/dist/FileUploader-B9j-HmX3.js +0 -193
- package/dist/FileUploader-BolhAWrI.cjs +0 -1
- package/dist/FloatingToolbar-CYOuKLd7.js +0 -140
- package/dist/FloatingToolbar-DxUUozlf.cjs +0 -1
- package/dist/ImagePicker-CZEFzYC8.js +0 -171
- package/dist/ImagePicker-CebI8MDy.cjs +0 -1
- package/dist/InfoHint-DVrm41q9.js +0 -177
- package/dist/InfoHint-WYitTbYz.cjs +0 -1
- package/dist/InlineEdit-DViLVwtn.js +0 -116
- package/dist/InlineEdit-DfkmTudh.cjs +0 -1
- package/dist/Menu-CLDGxi-1.cjs +0 -1
- package/dist/Menu-C_UsGyKX.js +0 -177
- package/dist/Modal-1i_nDqvM.cjs +0 -1
- package/dist/Modal-CxIl02xU.js +0 -229
- package/dist/NotificationCenter-CXn7sGFw.cjs +0 -1
- package/dist/NotificationCenter-Cu_vs-jh.js +0 -584
- package/dist/NumberInput-CMxlZ54a.cjs +0 -1
- package/dist/NumberInput-Dy0leAIF.js +0 -324
- package/dist/Select-Bz4tf2H_.cjs +0 -1
- package/dist/Select-hL8I-aNK.js +0 -603
- package/dist/Shell-BxGBrQsM.js +0 -536
- package/dist/Shell-BzXh23BU.cjs +0 -1
- package/dist/ShellPanel-DzkkJYVd.js +0 -126
- package/dist/ShellPanel-XYKkAc5n.cjs +0 -1
- package/dist/Skeleton-CqZ9O0X0.cjs +0 -1
- package/dist/SuggestionList-BJjbVvt2.cjs +0 -1
- package/dist/SuggestionList-Bdx7CK__.js +0 -189
- package/dist/TextInput-BXyJQfGx.js +0 -348
- package/dist/TextInput-DKp819VS.cjs +0 -2
- package/dist/Toast-BKrvlON6.cjs +0 -1
- package/dist/Toast-fRHhhjZV.js +0 -115
- package/dist/UserMenu-GJHs1fKI.cjs +0 -1
- package/dist/Video-D1WOYCYH.cjs +0 -1
- package/dist/Video-DrDqaCXl.js +0 -104
- package/dist/Walkthrough-DXMDgB9t.cjs +0 -1
- package/dist/Walkthrough-D_vfYTWP.js +0 -327
- package/dist/main-BTximdIU.js +0 -1255
- package/dist/main-DkNxc78b.cjs +0 -4
- package/dist/motion-BjVtMTXD.cjs +0 -1
- package/dist/motion-C0h9XZQZ.js +0 -18
- /package/dist/{Badge-CfICqXrd.cjs → Badge-BYfdJcdD.cjs} +0 -0
- /package/dist/{Badge-BFsoJcCK.js → Badge-scjsdx_V.js} +0 -0
- /package/dist/{Blueprint.context-B3d5-4jD.cjs → Blueprint.context-BX56xsrT.cjs} +0 -0
- /package/dist/{Blueprint.context-B4bRLj7m.js → Blueprint.context-Bz6Jy1Ou.js} +0 -0
- /package/dist/{BlueprintBackground-5OOF-VpK.js → BlueprintBackground-DPjZeMwY.js} +0 -0
- /package/dist/{BlueprintBackground-D_JokLTK.cjs → BlueprintBackground-yHRGclEz.cjs} +0 -0
- /package/dist/{BlueprintMinimap-CACuVJqI.cjs → BlueprintMinimap-qskDNYyr.cjs} +0 -0
- /package/dist/{BlueprintMinimap-Ehrltju2.js → BlueprintMinimap-xnsyS1M8.js} +0 -0
- /package/dist/{Card.link-eRkbFiF1.cjs → Card.link-Bw2B_lPO.cjs} +0 -0
- /package/dist/{Card.link-CB8_CTbn.js → Card.link-CdvubtHJ.js} +0 -0
- /package/dist/{CardGrid-DzjiR2wg.cjs → CardGrid-DPaITpcU.cjs} +0 -0
- /package/dist/{CardGrid-BOhFOzTs.js → CardGrid-j0TFmVrQ.js} +0 -0
- /package/dist/{ChartLegend-C81jju4k.cjs → ChartLegend-COJeG-2B.cjs} +0 -0
- /package/dist/{ChartLegend-fsJqOyGj.js → ChartLegend-LDNukufA.js} +0 -0
- /package/dist/{CheckboxGroup.context-C8p21aqH.cjs → CheckboxGroup.context-ADwiY4gy.cjs} +0 -0
- /package/dist/{CheckboxGroup.context-Cu0BA648.js → CheckboxGroup.context-C1QB-Zsq.js} +0 -0
- /package/dist/{ContainedList-DV8kZgTS.cjs → ContainedList-CBWwEmoK.cjs} +0 -0
- /package/dist/{ContainedList-7uMU4e4Z.js → ContainedList-PUA2OJ08.js} +0 -0
- /package/dist/{DefinitionList-DIPobaPW.js → DefinitionList-BOVcW-V7.js} +0 -0
- /package/dist/{DefinitionList-BuRW4drr.cjs → DefinitionList-CndoLDLs.cjs} +0 -0
- /package/dist/{DefinitionListItem-CbVnrShi.js → DefinitionListItem-C3VrLhWY.js} +0 -0
- /package/dist/{DefinitionListItem-Bf9amK8a.cjs → DefinitionListItem-CLztc8mQ.cjs} +0 -0
- /package/dist/{DragHandle-snItY92k.cjs → DragHandle-Bz2N22Sm.cjs} +0 -0
- /package/dist/{DragHandle-dCNBfHJe.js → DragHandle-Cc7WrUj7.js} +0 -0
- /package/dist/{EmptyState-B8EM9ynK.cjs → EmptyState-Db0Zrrk2.cjs} +0 -0
- /package/dist/{EmptyState-D-fku2DD.js → EmptyState-DhlJV0C6.js} +0 -0
- /package/dist/{Field-3S8uGW95.cjs → Field-COMPegVv.cjs} +0 -0
- /package/dist/{Field-DK5iec3Z.js → Field-D12Dja-u.js} +0 -0
- /package/dist/{Flag-myXFwopO.js → Flag-DyDqHJy3.js} +0 -0
- /package/dist/{Flag-CNx_cE4Q.cjs → Flag-gM91kXTi.cjs} +0 -0
- /package/dist/{Grid-jlgLOwom.js → Grid-B7d8x0tA.js} +0 -0
- /package/dist/{Grid-C0muGlj3.cjs → Grid-BOtE_jXr.cjs} +0 -0
- /package/dist/{JsonTree-Bmj8WtzK.cjs → JsonTree-MjCO8_Xk.cjs} +0 -0
- /package/dist/{JsonTree-BWfMcWOV.js → JsonTree-VbXpLPoG.js} +0 -0
- /package/dist/{Label-CTOPIIbR.cjs → Label-CjxnZgNy.cjs} +0 -0
- /package/dist/{Label-BDMCrURR.js → Label-xwHw_UbN.js} +0 -0
- /package/dist/{Layer-BJeI6Q6N.js → Layer-Btb-b9Mk.js} +0 -0
- /package/dist/{Layer-D-MNrLiB.cjs → Layer-D0NqQYM0.cjs} +0 -0
- /package/dist/{MenuBar-aLDr7-eJ.cjs → MenuBar-BVgGbppN.cjs} +0 -0
- /package/dist/{MenuBar-DyJufs5b.js → MenuBar-M2eiYZG0.js} +0 -0
- /package/dist/{MenuDivider-aZIXvYsH.js → MenuDivider-B3tNv2aj.js} +0 -0
- /package/dist/{MenuDivider-D75yF8o8.cjs → MenuDivider-BSMtwoUU.cjs} +0 -0
- /package/dist/{Message-Bija1nMK.cjs → Message-BJO4MjiQ.cjs} +0 -0
- /package/dist/{Message-BONOwoVY.js → Message-DCeg8qsC.js} +0 -0
- /package/dist/{NotificationCenterItem-zdOMnxv1.cjs → NotificationCenterItem-D0agavaK.cjs} +0 -0
- /package/dist/{NotificationCenterItem-BbbBFYEu.js → NotificationCenterItem-O6SR_6KR.js} +0 -0
- /package/dist/{NubiscoMark-Cf7Ek83E.cjs → NubiscoMark-3StsXBoJ.cjs} +0 -0
- /package/dist/{NubiscoMark-BLT8ULAl.js → NubiscoMark-XJWPWIc0.js} +0 -0
- /package/dist/{NubiscoPlatformMark-Dca7vi6H.js → NubiscoPlatformMark-BgQLjI89.js} +0 -0
- /package/dist/{NubiscoPlatformMark-CXMSQDYh.cjs → NubiscoPlatformMark-D8WIp4On.cjs} +0 -0
- /package/dist/{PageLayout-DQKfOSQq.js → PageLayout-BMcT2mzU.js} +0 -0
- /package/dist/{PageLayout-Dw4JYS3k.cjs → PageLayout-DHi1w1PD.cjs} +0 -0
- /package/dist/{PrimaryAction.context-BkYkcMlm.js → PrimaryAction.context-DZUcR5ER.js} +0 -0
- /package/dist/{PrimaryAction.context-2v_jcQAo.cjs → PrimaryAction.context-DnzRVqGH.cjs} +0 -0
- /package/dist/{ReorderList-B1CYGR0e.js → ReorderList-DmjW30Mw.js} +0 -0
- /package/dist/{ReorderList-DBW8TBu6.cjs → ReorderList-qScXc3-v.cjs} +0 -0
- /package/dist/{SidebarBrand-FHBO4Dw3.js → SidebarBrand-CZf-kRyZ.js} +0 -0
- /package/dist/{SidebarBrand-CX-BgI4X.cjs → SidebarBrand-D2u7hX-v.cjs} +0 -0
- /package/dist/{SidebarLink-xtGCDABj.js → SidebarLink-BuRBmv_k.js} +0 -0
- /package/dist/{SidebarLink-DTGVapwa.cjs → SidebarLink-CSTNfb2F.cjs} +0 -0
- /package/dist/{SidebarMenu-CnsOBXeM.cjs → SidebarMenu-CAthEmyy.cjs} +0 -0
- /package/dist/{SidebarMenu-D24o7HS-.js → SidebarMenu-CgWUHllQ.js} +0 -0
- /package/dist/{SidebarMenuGroup-DJasr_cx.cjs → SidebarMenuGroup-B9JGPBcF.cjs} +0 -0
- /package/dist/{SidebarMenuGroup-Bjc2IeK5.js → SidebarMenuGroup-DdWg57Wv.js} +0 -0
- /package/dist/{SidebarMenuItem-UFeKPTvc.js → SidebarMenuItem-BvvoDIjK.js} +0 -0
- /package/dist/{SidebarMenuItem-DP4L8ljr.cjs → SidebarMenuItem-eFnj5QoE.cjs} +0 -0
- /package/dist/{SidebarStatus-D-CfUYFc.js → SidebarStatus-CnTnYL4x.js} +0 -0
- /package/dist/{SidebarStatus-YfLW9xzC.cjs → SidebarStatus-CvjuggXO.cjs} +0 -0
- /package/dist/{Sparkline-MAi1Fh2T.cjs → Sparkline-B7kUEfuW.cjs} +0 -0
- /package/dist/{Sparkline-m3wbt-f1.js → Sparkline-CVzkzaOJ.js} +0 -0
- /package/dist/{Stepper.context-DUIDhN9Q.cjs → Stepper.context-Brnt5IZv.cjs} +0 -0
- /package/dist/{Stepper.context-DqfEvgGM.js → Stepper.context-CRKX8lxW.js} +0 -0
- /package/dist/{StructuredList-h9JFXpF4.cjs → StructuredList-BexC0c1Z.cjs} +0 -0
- /package/dist/{StructuredList-BSfuLANB.js → StructuredList-DuBBP01p.js} +0 -0
- /package/dist/{Submenu-Dxo3DUDA.cjs → Submenu-DRkHiWsD.cjs} +0 -0
- /package/dist/{Submenu-BnMaJKYm.js → Submenu-Dnj5MiFy.js} +0 -0
- /package/dist/{TextInput.context-DV1MgL_Q.js → TextInput.context-B-mipPOo.js} +0 -0
- /package/dist/{TextInput.context-UTLuljcO.cjs → TextInput.context-ChkcqMNM.cjs} +0 -0
- /package/dist/{TreeContext-TZ35sT5B.cjs → TreeContext-B2Io2oii.cjs} +0 -0
- /package/dist/{TreeContext--GZ21fCm.js → TreeContext-Cs4iAw0d.js} +0 -0
- /package/dist/{Wireframe-CL0rjsos.cjs → Wireframe-3fvc4I5-.cjs} +0 -0
- /package/dist/{Wireframe-BxUNaH2g.js → Wireframe-C_Ca3wCn.js} +0 -0
- /package/dist/{palette-CWU7exM6.js → palette-6bEW4KUN.js} +0 -0
- /package/dist/{palette-B7XEOMVB.cjs → palette-LbOzdAXj.cjs} +0 -0
- /package/dist/{pixi-scene-BKyneWmd.cjs → pixi-scene-CQ1qoZvX.cjs} +0 -0
- /package/dist/{pixi-scene-TbaBQ2-u.js → pixi-scene-DFCEvc1j.js} +0 -0
- /package/dist/{scales-CNW8JgKC.js → scales-BGzTviac.js} +0 -0
- /package/dist/{scales-B8IbC7t_.cjs → scales-BRSHTjbp.cjs} +0 -0
- /package/dist/{useChartSize-CftshgoY.js → useChartSize-05CLdiR0.js} +0 -0
- /package/dist/{useChartSize-B6Bes760.cjs → useChartSize-CUZ7BuGD.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-Dn1mqnqe.cjs → useLoadingAnnouncer.composable-CEPRjDi3.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-BAwecV1M.js → useLoadingAnnouncer.composable-c0XX_xNT.js} +0 -0
- /package/dist/{vue-i18n-DSR949qU.js → vue-i18n-DaD-yZmK.js} +0 -0
- /package/dist/{vue-i18n-DIvTc6LM.cjs → vue-i18n-ZdR0XDmN.cjs} +0 -0
|
@@ -0,0 +1,604 @@
|
|
|
1
|
+
import { t as e } from "./Button-tpOmP8iV.js";
|
|
2
|
+
import { t } from "./Icon-B2tiGiqZ.js";
|
|
3
|
+
import { useNbStrings as n } from "./composables/useNbStrings.composable.mjs";
|
|
4
|
+
import { t as r } from "./Label-xwHw_UbN.js";
|
|
5
|
+
import { t as i } from "./Message-DCeg8qsC.js";
|
|
6
|
+
import { t as a } from "./Grid-B7d8x0tA.js";
|
|
7
|
+
import { joinDescribedBy as o, useFieldMessage as ee } from "./composables/useFieldMessage.composable.mjs";
|
|
8
|
+
import { n as te } from "./InputGroup.context-CJAWx5GI.js";
|
|
9
|
+
import { useMenuSurface as ne } from "./composables/useMenuSurface.composable.mjs";
|
|
10
|
+
import { Fragment as s, Teleport as re, Transition as ie, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, h as ae, mergeProps as oe, nextTick as se, normalizeClass as g, normalizeProps as ce, normalizeStyle as le, onBeforeUnmount as ue, openBlock as _, ref as v, renderList as de, renderSlot as y, toDisplayString as b, unref as x, useId as fe, useSlots as pe, vModelText as me, watch as he, withCtx as S, withDirectives as ge, withKeys as C, withModifiers as w } from "vue";
|
|
11
|
+
import { regular as _e } from "@nubisco/ui/icons/caret-down";
|
|
12
|
+
import { regular as ve } from "@nubisco/ui/icons/caret-up";
|
|
13
|
+
import { regular as ye } from "@nubisco/ui/icons/x";
|
|
14
|
+
//#region src/components/Select.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
+
var be = [
|
|
16
|
+
"id",
|
|
17
|
+
"aria-expanded",
|
|
18
|
+
"aria-disabled",
|
|
19
|
+
"aria-required",
|
|
20
|
+
"aria-invalid",
|
|
21
|
+
"aria-describedby",
|
|
22
|
+
"disabled"
|
|
23
|
+
], xe = {
|
|
24
|
+
key: 2,
|
|
25
|
+
class: "nb-select__clear-space",
|
|
26
|
+
"aria-hidden": "true"
|
|
27
|
+
}, Se = [
|
|
28
|
+
"id",
|
|
29
|
+
"aria-expanded",
|
|
30
|
+
"aria-disabled",
|
|
31
|
+
"aria-required",
|
|
32
|
+
"aria-invalid",
|
|
33
|
+
"aria-describedby",
|
|
34
|
+
"disabled"
|
|
35
|
+
], Ce = {
|
|
36
|
+
key: 1,
|
|
37
|
+
class: "nb-select__inner-label"
|
|
38
|
+
}, we = {
|
|
39
|
+
key: 0,
|
|
40
|
+
class: "nb-select__asterisk",
|
|
41
|
+
"aria-hidden": "true"
|
|
42
|
+
}, Te = {
|
|
43
|
+
key: 0,
|
|
44
|
+
class: "nb-select__clear-space",
|
|
45
|
+
"aria-hidden": "true"
|
|
46
|
+
}, Ee = ["id", "aria-multiselectable"], De = {
|
|
47
|
+
key: 0,
|
|
48
|
+
class: "nb-select__search"
|
|
49
|
+
}, Oe = [
|
|
50
|
+
"placeholder",
|
|
51
|
+
"aria-label",
|
|
52
|
+
"aria-controls",
|
|
53
|
+
"aria-activedescendant"
|
|
54
|
+
], ke = ["aria-labelledby"], Ae = ["id"], je = [
|
|
55
|
+
"id",
|
|
56
|
+
"data-index",
|
|
57
|
+
"aria-selected",
|
|
58
|
+
"aria-disabled",
|
|
59
|
+
"onMouseenter",
|
|
60
|
+
"onClick"
|
|
61
|
+
], Me = {
|
|
62
|
+
key: 0,
|
|
63
|
+
class: "nb-select__option-check",
|
|
64
|
+
"aria-hidden": "true"
|
|
65
|
+
}, Ne = {
|
|
66
|
+
key: 0,
|
|
67
|
+
viewBox: "0 0 10 8",
|
|
68
|
+
fill: "none",
|
|
69
|
+
width: "10",
|
|
70
|
+
height: "8"
|
|
71
|
+
}, Pe = { class: "nb-select__option-label" }, Fe = {
|
|
72
|
+
key: 1,
|
|
73
|
+
class: "nb-select__empty"
|
|
74
|
+
}, Ie = {
|
|
75
|
+
key: 2,
|
|
76
|
+
class: "nb-select__empty"
|
|
77
|
+
}, Le = ["placeholder", "onKeydown"], Re = /* @__PURE__ */ h({
|
|
78
|
+
__name: "Select",
|
|
79
|
+
props: {
|
|
80
|
+
modelValue: { default: null },
|
|
81
|
+
options: { default: () => [] },
|
|
82
|
+
multiple: {
|
|
83
|
+
type: Boolean,
|
|
84
|
+
default: !1
|
|
85
|
+
},
|
|
86
|
+
creatable: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: !1
|
|
89
|
+
},
|
|
90
|
+
createPlaceholder: { default: "" },
|
|
91
|
+
clearable: {
|
|
92
|
+
type: Boolean,
|
|
93
|
+
default: !1
|
|
94
|
+
},
|
|
95
|
+
clearLabel: { default: void 0 },
|
|
96
|
+
searchable: {
|
|
97
|
+
type: Boolean,
|
|
98
|
+
default: !1
|
|
99
|
+
},
|
|
100
|
+
searchPlaceholder: { default: "Search" },
|
|
101
|
+
noResultsLabel: { default: "No results" },
|
|
102
|
+
anchor: {
|
|
103
|
+
type: [Function, null],
|
|
104
|
+
default: null
|
|
105
|
+
},
|
|
106
|
+
selectedMark: { default: "fill" },
|
|
107
|
+
placeholder: { default: "Select…" },
|
|
108
|
+
name: { default: "" },
|
|
109
|
+
disabled: {
|
|
110
|
+
type: Boolean,
|
|
111
|
+
default: !1
|
|
112
|
+
},
|
|
113
|
+
required: {
|
|
114
|
+
type: Boolean,
|
|
115
|
+
default: !1
|
|
116
|
+
},
|
|
117
|
+
id: { default: void 0 },
|
|
118
|
+
label: { default: "" },
|
|
119
|
+
error: { default: "" },
|
|
120
|
+
warning: { default: "" },
|
|
121
|
+
helper: { default: "" },
|
|
122
|
+
variant: { default: "default" },
|
|
123
|
+
size: { default: "md" }
|
|
124
|
+
},
|
|
125
|
+
emits: [
|
|
126
|
+
"update:modelValue",
|
|
127
|
+
"change",
|
|
128
|
+
"create"
|
|
129
|
+
],
|
|
130
|
+
setup(h, { expose: Re, emit: ze }) {
|
|
131
|
+
let T = h, E = ze, D = (e, { slots: t }) => e.wrap ? ae("div", { class: "nb-select__control" }, t.default?.()) : t.default?.();
|
|
132
|
+
D.props = ["wrap"];
|
|
133
|
+
let O = v(""), k = v(""), Be = v(null);
|
|
134
|
+
function Ve() {
|
|
135
|
+
let e = O.value.trim();
|
|
136
|
+
e && (E("create", e), O.value = "");
|
|
137
|
+
}
|
|
138
|
+
let A = v(!1), j = v(!1), M = v(-1), N = v(null), P = v(null), F = pe(), He = () => (typeof T.anchor == "function" ? T.anchor() : T.anchor) ?? P.value ?? N.value;
|
|
139
|
+
function Ue() {
|
|
140
|
+
(P.value ?? N.value?.querySelector("button, [tabindex]"))?.focus();
|
|
141
|
+
}
|
|
142
|
+
let I = v(null);
|
|
143
|
+
ne(I);
|
|
144
|
+
let We = v({
|
|
145
|
+
position: "fixed",
|
|
146
|
+
top: "0px",
|
|
147
|
+
left: "0px",
|
|
148
|
+
width: "0px",
|
|
149
|
+
zIndex: "9999"
|
|
150
|
+
}), L = te(T, `nb-select-${fe()}`), R = L.id, z = L.disabled, { ids: B, messageId: Ge, invalid: Ke, live: V, key: H } = ee(T, R), qe = c(() => o(Ge.value, L.describedBy.value)), Je = c(() => Ke.value ?? (L.status.value === "error" ? "true" : void 0)), Ye = c(() => !!T.error || L.status.value === "error"), U = c(() => `${R.value}-listbox`), Xe = (e) => `${R.value}-option-${e}`, W = c(() => T.modelValue == null ? [] : Array.isArray(T.modelValue) ? T.modelValue : [T.modelValue]), G = c(() => {
|
|
151
|
+
if (!(T.multiple || W.value.length !== 1)) return (T.options ?? []).find((e) => e.value === W.value[0])?.icon;
|
|
152
|
+
}), K = c(() => {
|
|
153
|
+
if (W.value.length === 0) return "";
|
|
154
|
+
let e = T.options ?? [];
|
|
155
|
+
return T.multiple ? W.value.length === 1 ? e.find((e) => e.value === W.value[0])?.label ?? String(W.value[0]) : W.value.length === 2 ? W.value.map((t) => e.find((e) => e.value === t)?.label ?? String(t)).join(", ") : `${W.value.length} selected` : e.find((e) => e.value === W.value[0])?.label ?? String(W.value[0]);
|
|
156
|
+
});
|
|
157
|
+
function Ze(e) {
|
|
158
|
+
return W.value.includes(e);
|
|
159
|
+
}
|
|
160
|
+
let Qe = (e) => e.normalize("NFD").replace(/\p{M}/gu, "").toLowerCase(), $e = c(() => {
|
|
161
|
+
let e = T.options ?? [], t = T.searchable ? Qe(k.value.trim()) : "", n = /* @__PURE__ */ new Set();
|
|
162
|
+
return e.forEach((e, r) => {
|
|
163
|
+
(!t || Qe(e.label).includes(t)) && n.add(r);
|
|
164
|
+
}), n;
|
|
165
|
+
}), et = c(() => {
|
|
166
|
+
let e = [];
|
|
167
|
+
return (T.options ?? []).forEach((t, n) => {
|
|
168
|
+
if (!$e.value.has(n)) return;
|
|
169
|
+
let r = e[e.length - 1];
|
|
170
|
+
(!r || r.name !== t.group) && e.push({
|
|
171
|
+
key: `${e.length}:${t.group ?? ""}`,
|
|
172
|
+
name: t.group,
|
|
173
|
+
labelId: `${R.value}-group-${e.length}`,
|
|
174
|
+
entries: []
|
|
175
|
+
}), e[e.length - 1].entries.push({
|
|
176
|
+
option: t,
|
|
177
|
+
index: n
|
|
178
|
+
});
|
|
179
|
+
}), e;
|
|
180
|
+
});
|
|
181
|
+
function q(e, t) {
|
|
182
|
+
let n = T.options ?? [];
|
|
183
|
+
for (let r = e + t; r >= 0 && r < n.length; r += t) if (!n[r].disabled && $e.value.has(r)) return r;
|
|
184
|
+
return e;
|
|
185
|
+
}
|
|
186
|
+
function tt(e) {
|
|
187
|
+
if (e.disabled) return;
|
|
188
|
+
let t;
|
|
189
|
+
if (T.multiple) {
|
|
190
|
+
let n = [...W.value], r = n.indexOf(e.value);
|
|
191
|
+
r >= 0 ? n.splice(r, 1) : n.push(e.value), t = n;
|
|
192
|
+
} else t = e.value, Y();
|
|
193
|
+
E("update:modelValue", t), E("change", t);
|
|
194
|
+
}
|
|
195
|
+
function nt() {
|
|
196
|
+
let e = He();
|
|
197
|
+
if (!e) return;
|
|
198
|
+
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, ee = F.trigger ? Math.max(8, Math.min(t.left, window.innerWidth - o - 8)) : t.left;
|
|
199
|
+
We.value = {
|
|
200
|
+
position: "fixed",
|
|
201
|
+
top: a ? `${t.top - n}px` : `${t.bottom}px`,
|
|
202
|
+
left: `${ee}px`,
|
|
203
|
+
width: `${o}px`,
|
|
204
|
+
zIndex: "9999"
|
|
205
|
+
};
|
|
206
|
+
}
|
|
207
|
+
function J() {
|
|
208
|
+
if (z.value) return;
|
|
209
|
+
A.value = !0, nt();
|
|
210
|
+
let e = T.options ?? [];
|
|
211
|
+
M.value = W.value.length > 0 ? Math.max(0, e.findIndex((e) => e.value === W.value[0])) : -1, se(() => {
|
|
212
|
+
nt(), Q(), Be.value?.focus({ preventScroll: !0 });
|
|
213
|
+
});
|
|
214
|
+
}
|
|
215
|
+
function Y() {
|
|
216
|
+
let e = !!I.value?.contains(document.activeElement);
|
|
217
|
+
A.value = !1, M.value = -1, k.value = "", e && Ue();
|
|
218
|
+
}
|
|
219
|
+
function X() {
|
|
220
|
+
A.value ? Y() : J();
|
|
221
|
+
}
|
|
222
|
+
function rt(e) {
|
|
223
|
+
let t = e.target, n = N.value?.contains(t) ?? !1, r = I.value?.contains(t) ?? !1;
|
|
224
|
+
!n && !r && Y();
|
|
225
|
+
}
|
|
226
|
+
function Z() {
|
|
227
|
+
A.value && nt();
|
|
228
|
+
}
|
|
229
|
+
he(A, (e) => {
|
|
230
|
+
e ? (document.addEventListener("mousedown", rt), window.addEventListener("scroll", Z, !0), window.addEventListener("resize", Z)) : (document.removeEventListener("mousedown", rt), window.removeEventListener("scroll", Z, !0), window.removeEventListener("resize", Z));
|
|
231
|
+
}), ue(() => {
|
|
232
|
+
document.removeEventListener("mousedown", rt), window.removeEventListener("scroll", Z, !0), window.removeEventListener("resize", Z);
|
|
233
|
+
});
|
|
234
|
+
function it(e) {
|
|
235
|
+
let t = T.options ?? [];
|
|
236
|
+
if (!A.value) {
|
|
237
|
+
(e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), J());
|
|
238
|
+
return;
|
|
239
|
+
}
|
|
240
|
+
e.key === "Escape" ? (Y(), e.preventDefault()) : e.key === "Tab" ? Y() : e.key === "ArrowDown" ? (e.preventDefault(), M.value = q(M.value, 1), Q()) : e.key === "ArrowUp" ? (e.preventDefault(), M.value > 0 && (M.value = q(M.value, -1)), Q()) : (e.key === "Enter" || e.key === " ") && M.value >= 0 && (e.preventDefault(), tt(t[M.value]));
|
|
241
|
+
}
|
|
242
|
+
function Q() {
|
|
243
|
+
se(() => {
|
|
244
|
+
!I.value || M.value < 0 || I.value.querySelector(`[data-index="${M.value}"]`)?.scrollIntoView({ block: "nearest" });
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
he(k, () => {
|
|
248
|
+
if (!A.value) return;
|
|
249
|
+
let e = q(-1, 1);
|
|
250
|
+
M.value = e === -1 ? -1 : e, Q();
|
|
251
|
+
});
|
|
252
|
+
function at(e) {
|
|
253
|
+
if (e.key === " ") {
|
|
254
|
+
e.stopPropagation();
|
|
255
|
+
return;
|
|
256
|
+
}
|
|
257
|
+
if (e.key === "Home" || e.key === "End") {
|
|
258
|
+
e.stopPropagation();
|
|
259
|
+
return;
|
|
260
|
+
}
|
|
261
|
+
it(e);
|
|
262
|
+
}
|
|
263
|
+
let ot = c(() => ({
|
|
264
|
+
isOpen: A.value,
|
|
265
|
+
toggle: X,
|
|
266
|
+
open: J,
|
|
267
|
+
close: Y,
|
|
268
|
+
attrs: {
|
|
269
|
+
"aria-expanded": A.value,
|
|
270
|
+
"aria-haspopup": "listbox",
|
|
271
|
+
"aria-controls": A.value ? U.value : void 0,
|
|
272
|
+
"aria-invalid": Ke.value,
|
|
273
|
+
onClick: X
|
|
274
|
+
}
|
|
275
|
+
})), st = n(), ct = c(() => T.clearLabel ?? st.value.selectClear), $ = c(() => T.clearable && !z.value && W.value.length > 0);
|
|
276
|
+
function lt() {
|
|
277
|
+
let e = T.multiple ? [] : null;
|
|
278
|
+
Y(), E("update:modelValue", e), E("change", e), Ue();
|
|
279
|
+
}
|
|
280
|
+
let ut = c(() => [
|
|
281
|
+
"nb-select",
|
|
282
|
+
`nb-select--${T.variant}`,
|
|
283
|
+
`nb-select--${L.size.value}`,
|
|
284
|
+
{
|
|
285
|
+
"nb-select--open": A.value,
|
|
286
|
+
"nb-select--focused": j.value && !A.value,
|
|
287
|
+
"nb-select--error": Ye.value,
|
|
288
|
+
"nb-select--warning": !Ye.value && (!!T.warning || L.status.value === "warning"),
|
|
289
|
+
"nb-select--multiple": T.multiple,
|
|
290
|
+
"nb-select--bare": !!F.trigger
|
|
291
|
+
}
|
|
292
|
+
]);
|
|
293
|
+
return Re({
|
|
294
|
+
open: J,
|
|
295
|
+
close: Y
|
|
296
|
+
}), (n, o) => (_(), d(s, null, [f("div", {
|
|
297
|
+
ref_key: "rootRef",
|
|
298
|
+
ref: N,
|
|
299
|
+
class: g(ut.value),
|
|
300
|
+
onKeydown: it
|
|
301
|
+
}, [n.$slots.trigger ? y(n.$slots, "trigger", ce(oe({ key: 0 }, ot.value))) : h.variant === "default" ? (_(), d(s, { key: 1 }, [
|
|
302
|
+
n.$slots.label ? y(n.$slots, "label", { key: 0 }) : h.label ? (_(), l(r, {
|
|
303
|
+
key: 1,
|
|
304
|
+
for: x(R),
|
|
305
|
+
required: h.required,
|
|
306
|
+
disabled: x(z)
|
|
307
|
+
}, {
|
|
308
|
+
default: S(() => [p(b(h.label), 1)]),
|
|
309
|
+
_: 1
|
|
310
|
+
}, 8, [
|
|
311
|
+
"for",
|
|
312
|
+
"required",
|
|
313
|
+
"disabled"
|
|
314
|
+
])) : u("", !0),
|
|
315
|
+
m(D, { wrap: h.clearable }, {
|
|
316
|
+
default: S(() => [f("button", {
|
|
317
|
+
id: x(R),
|
|
318
|
+
ref_key: "triggerRef",
|
|
319
|
+
ref: P,
|
|
320
|
+
type: "button",
|
|
321
|
+
class: "nb-select__trigger",
|
|
322
|
+
role: "combobox",
|
|
323
|
+
"aria-expanded": A.value,
|
|
324
|
+
"aria-haspopup": "listbox",
|
|
325
|
+
"aria-disabled": x(z) || void 0,
|
|
326
|
+
"aria-required": h.required || void 0,
|
|
327
|
+
"aria-invalid": Je.value,
|
|
328
|
+
"aria-describedby": qe.value,
|
|
329
|
+
disabled: x(z) || void 0,
|
|
330
|
+
onClick: X,
|
|
331
|
+
onFocus: o[0] ||= (e) => j.value = !0,
|
|
332
|
+
onBlur: o[1] ||= (e) => j.value = !1
|
|
333
|
+
}, [
|
|
334
|
+
f("span", { class: g(["nb-select__value", {
|
|
335
|
+
"nb-select__value--placeholder": !K.value,
|
|
336
|
+
"nb-select__value--with-icon": !!G.value
|
|
337
|
+
}]) }, [G.value ? (_(), l(t, {
|
|
338
|
+
key: 0,
|
|
339
|
+
class: "nb-select__value-icon",
|
|
340
|
+
name: G.value,
|
|
341
|
+
size: 16
|
|
342
|
+
}, null, 8, ["name"])) : u("", !0), K.value ? y(n.$slots, "value", {
|
|
343
|
+
key: 1,
|
|
344
|
+
values: W.value
|
|
345
|
+
}, () => [p(b(K.value), 1)]) : (_(), d(s, { key: 2 }, [p(b(h.placeholder), 1)], 64))], 2),
|
|
346
|
+
h.error ? (_(), l(i, {
|
|
347
|
+
key: 0,
|
|
348
|
+
variant: "error",
|
|
349
|
+
"icon-only": !0,
|
|
350
|
+
live: "off",
|
|
351
|
+
"aria-hidden": "true",
|
|
352
|
+
class: "nb-select__status-icon"
|
|
353
|
+
}, {
|
|
354
|
+
default: S(() => [p(b(h.error), 1)]),
|
|
355
|
+
_: 1
|
|
356
|
+
})) : h.warning ? (_(), l(i, {
|
|
357
|
+
key: 1,
|
|
358
|
+
variant: "warning",
|
|
359
|
+
"icon-only": !0,
|
|
360
|
+
live: "off",
|
|
361
|
+
"aria-hidden": "true",
|
|
362
|
+
class: "nb-select__status-icon"
|
|
363
|
+
}, {
|
|
364
|
+
default: S(() => [p(b(h.warning), 1)]),
|
|
365
|
+
_: 1
|
|
366
|
+
})) : u("", !0),
|
|
367
|
+
$.value ? (_(), d("span", xe)) : u("", !0),
|
|
368
|
+
m(a, {
|
|
369
|
+
align: "center",
|
|
370
|
+
justify: "center",
|
|
371
|
+
class: "nb-select__caret"
|
|
372
|
+
}, {
|
|
373
|
+
default: S(() => [m(t, {
|
|
374
|
+
name: A.value ? x(ve) : x(_e),
|
|
375
|
+
size: 16
|
|
376
|
+
}, null, 8, ["name"])]),
|
|
377
|
+
_: 1
|
|
378
|
+
})
|
|
379
|
+
], 40, be), $.value ? (_(), l(e, {
|
|
380
|
+
key: 0,
|
|
381
|
+
variant: "ghost",
|
|
382
|
+
icon: x(ye),
|
|
383
|
+
size: "xs",
|
|
384
|
+
label: ct.value,
|
|
385
|
+
class: "nb-select__clear",
|
|
386
|
+
onClick: lt,
|
|
387
|
+
onKeydown: [o[2] ||= C(w(() => {}, ["stop"]), ["enter"]), o[3] ||= C(w(() => {}, ["stop"]), ["space"])]
|
|
388
|
+
}, null, 8, ["icon", "label"])) : u("", !0)]),
|
|
389
|
+
_: 3
|
|
390
|
+
}, 8, ["wrap"]),
|
|
391
|
+
h.error ? (_(), l(i, {
|
|
392
|
+
id: x(B).error,
|
|
393
|
+
key: x(H),
|
|
394
|
+
variant: "error",
|
|
395
|
+
live: x(V),
|
|
396
|
+
class: "nb-select__message"
|
|
397
|
+
}, {
|
|
398
|
+
default: S(() => [p(b(h.error), 1)]),
|
|
399
|
+
_: 1
|
|
400
|
+
}, 8, ["id", "live"])) : h.warning ? (_(), l(i, {
|
|
401
|
+
id: x(B).warning,
|
|
402
|
+
key: x(H),
|
|
403
|
+
variant: "warning",
|
|
404
|
+
live: x(V),
|
|
405
|
+
class: "nb-select__message"
|
|
406
|
+
}, {
|
|
407
|
+
default: S(() => [p(b(h.warning), 1)]),
|
|
408
|
+
_: 1
|
|
409
|
+
}, 8, ["id", "live"])) : h.helper ? (_(), l(i, {
|
|
410
|
+
id: x(B).helper,
|
|
411
|
+
key: x(H),
|
|
412
|
+
variant: "helper",
|
|
413
|
+
live: x(V),
|
|
414
|
+
class: "nb-select__message"
|
|
415
|
+
}, {
|
|
416
|
+
default: S(() => [p(b(h.helper), 1)]),
|
|
417
|
+
_: 1
|
|
418
|
+
}, 8, ["id", "live"])) : u("", !0)
|
|
419
|
+
], 64)) : h.variant === "fluid" ? (_(), d(s, { key: 2 }, [m(D, { wrap: h.clearable }, {
|
|
420
|
+
default: S(() => [f("button", {
|
|
421
|
+
id: x(R),
|
|
422
|
+
ref_key: "triggerRef",
|
|
423
|
+
ref: P,
|
|
424
|
+
type: "button",
|
|
425
|
+
class: "nb-select__trigger",
|
|
426
|
+
role: "combobox",
|
|
427
|
+
"aria-expanded": A.value,
|
|
428
|
+
"aria-haspopup": "listbox",
|
|
429
|
+
"aria-disabled": x(z) || void 0,
|
|
430
|
+
"aria-required": h.required || void 0,
|
|
431
|
+
"aria-invalid": Je.value,
|
|
432
|
+
"aria-describedby": qe.value,
|
|
433
|
+
disabled: x(z) || void 0,
|
|
434
|
+
onClick: X,
|
|
435
|
+
onFocus: o[4] ||= (e) => j.value = !0,
|
|
436
|
+
onBlur: o[5] ||= (e) => j.value = !1
|
|
437
|
+
}, [h.label || n.$slots.label ? (_(), l(a, {
|
|
438
|
+
key: 0,
|
|
439
|
+
dir: "row",
|
|
440
|
+
align: "center",
|
|
441
|
+
gap: "xs",
|
|
442
|
+
class: "nb-select__inner-header"
|
|
443
|
+
}, {
|
|
444
|
+
default: S(() => [n.$slots.label ? y(n.$slots, "label", { key: 0 }) : (_(), d("label", Ce, [p(b(h.label) + " ", 1), h.required ? (_(), d("span", we, "*")) : u("", !0)])), h.helper && !h.error && !h.warning ? (_(), l(i, {
|
|
445
|
+
key: 2,
|
|
446
|
+
id: x(B).helper,
|
|
447
|
+
variant: "helper",
|
|
448
|
+
"icon-only": !0,
|
|
449
|
+
live: "off",
|
|
450
|
+
"aria-hidden": "true",
|
|
451
|
+
class: "nb-select__inner-message"
|
|
452
|
+
}, {
|
|
453
|
+
default: S(() => [p(b(h.helper), 1)]),
|
|
454
|
+
_: 1
|
|
455
|
+
}, 8, ["id"])) : u("", !0)]),
|
|
456
|
+
_: 3
|
|
457
|
+
})) : u("", !0), m(a, {
|
|
458
|
+
dir: "row",
|
|
459
|
+
align: "end",
|
|
460
|
+
flex: "",
|
|
461
|
+
class: "nb-select__value-row"
|
|
462
|
+
}, {
|
|
463
|
+
default: S(() => [
|
|
464
|
+
f("span", { class: g(["nb-select__value", {
|
|
465
|
+
"nb-select__value--placeholder": !K.value,
|
|
466
|
+
"nb-select__value--with-icon": !!G.value
|
|
467
|
+
}]) }, [G.value ? (_(), l(t, {
|
|
468
|
+
key: 0,
|
|
469
|
+
class: "nb-select__value-icon",
|
|
470
|
+
name: G.value,
|
|
471
|
+
size: 16
|
|
472
|
+
}, null, 8, ["name"])) : u("", !0), K.value ? y(n.$slots, "value", {
|
|
473
|
+
key: 1,
|
|
474
|
+
values: W.value
|
|
475
|
+
}, () => [p(b(K.value), 1)]) : (_(), d(s, { key: 2 }, [p(b(h.placeholder), 1)], 64))], 2),
|
|
476
|
+
$.value ? (_(), d("span", Te)) : u("", !0),
|
|
477
|
+
m(a, {
|
|
478
|
+
align: "center",
|
|
479
|
+
justify: "center",
|
|
480
|
+
class: "nb-select__caret"
|
|
481
|
+
}, {
|
|
482
|
+
default: S(() => [m(t, {
|
|
483
|
+
name: A.value ? x(ve) : x(_e),
|
|
484
|
+
size: 16
|
|
485
|
+
}, null, 8, ["name"])]),
|
|
486
|
+
_: 1
|
|
487
|
+
})
|
|
488
|
+
]),
|
|
489
|
+
_: 3
|
|
490
|
+
})], 40, Se), $.value ? (_(), l(e, {
|
|
491
|
+
key: 0,
|
|
492
|
+
variant: "ghost",
|
|
493
|
+
icon: x(ye),
|
|
494
|
+
size: "xs",
|
|
495
|
+
label: ct.value,
|
|
496
|
+
class: "nb-select__clear",
|
|
497
|
+
onClick: lt,
|
|
498
|
+
onKeydown: [o[6] ||= C(w(() => {}, ["stop"]), ["enter"]), o[7] ||= C(w(() => {}, ["stop"]), ["space"])]
|
|
499
|
+
}, null, 8, ["icon", "label"])) : u("", !0)]),
|
|
500
|
+
_: 3
|
|
501
|
+
}, 8, ["wrap"]), h.error ? (_(), l(i, {
|
|
502
|
+
id: x(B).error,
|
|
503
|
+
key: x(H),
|
|
504
|
+
variant: "error",
|
|
505
|
+
live: x(V),
|
|
506
|
+
class: "nb-select__fluid-message"
|
|
507
|
+
}, {
|
|
508
|
+
default: S(() => [p(b(h.error), 1)]),
|
|
509
|
+
_: 1
|
|
510
|
+
}, 8, ["id", "live"])) : h.warning ? (_(), l(i, {
|
|
511
|
+
id: x(B).warning,
|
|
512
|
+
key: x(H),
|
|
513
|
+
variant: "warning",
|
|
514
|
+
live: x(V),
|
|
515
|
+
class: "nb-select__fluid-message"
|
|
516
|
+
}, {
|
|
517
|
+
default: S(() => [p(b(h.warning), 1)]),
|
|
518
|
+
_: 1
|
|
519
|
+
}, 8, ["id", "live"])) : u("", !0)], 64)) : u("", !0)], 34), (_(), l(re, { to: "body" }, [m(ie, { name: "nb-select-pop" }, {
|
|
520
|
+
default: S(() => [A.value ? (_(), d("div", {
|
|
521
|
+
key: 0,
|
|
522
|
+
id: U.value,
|
|
523
|
+
ref_key: "dropdownRef",
|
|
524
|
+
ref: I,
|
|
525
|
+
class: g(["nb-select__dropdown", {
|
|
526
|
+
"nb-select__dropdown--check": h.selectedMark === "check",
|
|
527
|
+
"nb-select__dropdown--anchored": !!n.$slots.trigger
|
|
528
|
+
}]),
|
|
529
|
+
style: le(We.value),
|
|
530
|
+
role: "listbox",
|
|
531
|
+
"aria-multiselectable": h.multiple || void 0
|
|
532
|
+
}, [
|
|
533
|
+
h.searchable ? (_(), d("div", De, [ge(f("input", {
|
|
534
|
+
ref_key: "searchRef",
|
|
535
|
+
ref: Be,
|
|
536
|
+
"onUpdate:modelValue": o[8] ||= (e) => k.value = e,
|
|
537
|
+
type: "search",
|
|
538
|
+
class: "nb-select__search-input",
|
|
539
|
+
autocomplete: "off",
|
|
540
|
+
spellcheck: "false",
|
|
541
|
+
placeholder: h.searchPlaceholder,
|
|
542
|
+
"aria-label": h.searchPlaceholder,
|
|
543
|
+
"aria-controls": U.value,
|
|
544
|
+
"aria-activedescendant": M.value >= 0 ? Xe(M.value) : void 0,
|
|
545
|
+
onKeydown: at
|
|
546
|
+
}, null, 40, Oe), [[me, k.value]])])) : u("", !0),
|
|
547
|
+
(_(!0), d(s, null, de(et.value, (e) => (_(), d("div", {
|
|
548
|
+
key: e.key,
|
|
549
|
+
class: "nb-select__group",
|
|
550
|
+
role: "group",
|
|
551
|
+
"aria-labelledby": e.name ? e.labelId : void 0
|
|
552
|
+
}, [e.name ? (_(), d("div", {
|
|
553
|
+
key: 0,
|
|
554
|
+
id: e.labelId,
|
|
555
|
+
class: "nb-select__group-label"
|
|
556
|
+
}, b(e.name), 9, Ae)) : u("", !0), (_(!0), d(s, null, de(e.entries, (e) => (_(), d("div", {
|
|
557
|
+
id: Xe(e.index),
|
|
558
|
+
key: e.option.value,
|
|
559
|
+
"data-index": e.index,
|
|
560
|
+
class: g(["nb-select__option", {
|
|
561
|
+
"nb-select__option--selected": Ze(e.option.value),
|
|
562
|
+
"nb-select__option--highlighted": M.value === e.index,
|
|
563
|
+
"nb-select__option--disabled": e.option.disabled
|
|
564
|
+
}]),
|
|
565
|
+
role: "option",
|
|
566
|
+
"aria-selected": Ze(e.option.value),
|
|
567
|
+
"aria-disabled": e.option.disabled || void 0,
|
|
568
|
+
onMouseenter: (t) => M.value = e.index,
|
|
569
|
+
onClick: (t) => tt(e.option)
|
|
570
|
+
}, [
|
|
571
|
+
h.multiple || h.selectedMark === "check" ? (_(), d("span", Me, [Ze(e.option.value) ? (_(), d("svg", Ne, [...o[12] ||= [f("path", {
|
|
572
|
+
d: "M1 4l3 3 5-6",
|
|
573
|
+
stroke: "currentColor",
|
|
574
|
+
"stroke-width": "1.5",
|
|
575
|
+
"stroke-linecap": "round",
|
|
576
|
+
"stroke-linejoin": "round"
|
|
577
|
+
}, null, -1)]])) : u("", !0)])) : u("", !0),
|
|
578
|
+
e.option.icon ? (_(), l(t, {
|
|
579
|
+
key: 1,
|
|
580
|
+
class: "nb-select__option-icon",
|
|
581
|
+
name: e.option.icon,
|
|
582
|
+
size: 16
|
|
583
|
+
}, null, 8, ["name"])) : u("", !0),
|
|
584
|
+
f("span", Pe, [y(n.$slots, "option", { option: e.option }, () => [p(b(e.option.label), 1)])])
|
|
585
|
+
], 42, je))), 128))], 8, ke))), 128)),
|
|
586
|
+
!h.options || h.options.length === 0 ? (_(), d("div", Fe, " No options ")) : h.searchable && $e.value.size === 0 ? (_(), d("div", Ie, b(h.noResultsLabel), 1)) : u("", !0),
|
|
587
|
+
h.creatable ? (_(), d("div", {
|
|
588
|
+
key: 3,
|
|
589
|
+
class: "nb-select__create",
|
|
590
|
+
onMousedown: o[11] ||= w(() => {}, ["prevent"])
|
|
591
|
+
}, [ge(f("input", {
|
|
592
|
+
"onUpdate:modelValue": o[9] ||= (e) => O.value = e,
|
|
593
|
+
type: "text",
|
|
594
|
+
class: "nb-select__create-input",
|
|
595
|
+
placeholder: h.createPlaceholder || "Add new…",
|
|
596
|
+
onKeydown: [C(w(Ve, ["prevent"]), ["enter"]), o[10] ||= w(() => {}, ["stop"])]
|
|
597
|
+
}, null, 40, Le), [[me, O.value]])], 32)) : u("", !0)
|
|
598
|
+
], 14, Ee)) : u("", !0)]),
|
|
599
|
+
_: 3
|
|
600
|
+
})]))], 64));
|
|
601
|
+
}
|
|
602
|
+
});
|
|
603
|
+
//#endregion
|
|
604
|
+
export { Re as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-BHFtgOXA.cjs`),t=require(`./Icon-CssV4E2-.cjs`),n=require(`./composables/useNbStrings.composable.cjs`),r=require(`./Label-CjxnZgNy.cjs`),i=require(`./Message-BJO4MjiQ.cjs`),a=require(`./Grid-BOtE_jXr.cjs`),o=require(`./composables/useFieldMessage.composable.cjs`),s=require(`./InputGroup.context-BTt6zUkj.cjs`),ee=require(`./composables/useMenuSurface.composable.cjs`);let c=require(`vue`),l=require(`@nubisco/ui/icons/caret-down`),te=require(`@nubisco/ui/icons/caret-up`),ne=require(`@nubisco/ui/icons/x`);var re=[`id`,`aria-expanded`,`aria-disabled`,`aria-required`,`aria-invalid`,`aria-describedby`,`disabled`],ie={key:2,class:`nb-select__clear-space`,"aria-hidden":`true`},ae=[`id`,`aria-expanded`,`aria-disabled`,`aria-required`,`aria-invalid`,`aria-describedby`,`disabled`],oe={key:1,class:`nb-select__inner-label`},se={key:0,class:`nb-select__asterisk`,"aria-hidden":`true`},ce={key:0,class:`nb-select__clear-space`,"aria-hidden":`true`},le=[`id`,`aria-multiselectable`],ue={key:0,class:`nb-select__search`},de=[`placeholder`,`aria-label`,`aria-controls`,`aria-activedescendant`],fe=[`aria-labelledby`],pe=[`id`],me=[`id`,`data-index`,`aria-selected`,`aria-disabled`,`onMouseenter`,`onClick`],he={key:0,class:`nb-select__option-check`,"aria-hidden":`true`},ge={key:0,viewBox:`0 0 10 8`,fill:`none`,width:`10`,height:`8`},_e={class:`nb-select__option-label`},ve={key:1,class:`nb-select__empty`},ye={key:2,class:`nb-select__empty`},be=[`placeholder`,`onKeydown`],u=(0,c.defineComponent)({__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(u,{expose:xe,emit:Se}){let d=u,f=Se,p=(e,{slots:t})=>e.wrap?(0,c.h)(`div`,{class:`nb-select__control`},t.default?.()):t.default?.();p.props=[`wrap`];let m=(0,c.ref)(``),h=(0,c.ref)(``),Ce=(0,c.ref)(null);function we(){let e=m.value.trim();e&&(f(`create`,e),m.value=``)}let g=(0,c.ref)(!1),_=(0,c.ref)(!1),v=(0,c.ref)(-1),y=(0,c.ref)(null),b=(0,c.ref)(null),x=(0,c.useSlots)(),Te=()=>(typeof d.anchor==`function`?d.anchor():d.anchor)??b.value??y.value;function S(){(b.value??y.value?.querySelector(`button, [tabindex]`))?.focus()}let C=(0,c.ref)(null);ee.useMenuSurface(C);let w=(0,c.ref)({position:`fixed`,top:`0px`,left:`0px`,width:`0px`,zIndex:`9999`}),T=s.n(d,`nb-select-${(0,c.useId)()}`),E=T.id,D=T.disabled,{ids:O,messageId:Ee,invalid:k,live:A,key:j}=o.useFieldMessage(d,E),M=(0,c.computed)(()=>o.joinDescribedBy(Ee.value,T.describedBy.value)),N=(0,c.computed)(()=>k.value??(T.status.value===`error`?`true`:void 0)),P=(0,c.computed)(()=>!!d.error||T.status.value===`error`),F=(0,c.computed)(()=>`${E.value}-listbox`),I=e=>`${E.value}-option-${e}`,L=(0,c.computed)(()=>d.modelValue==null?[]:Array.isArray(d.modelValue)?d.modelValue:[d.modelValue]),R=(0,c.computed)(()=>{if(!(d.multiple||L.value.length!==1))return(d.options??[]).find(e=>e.value===L.value[0])?.icon}),z=(0,c.computed)(()=>{if(L.value.length===0)return``;let e=d.options??[];return d.multiple?L.value.length===1?e.find(e=>e.value===L.value[0])?.label??String(L.value[0]):L.value.length===2?L.value.map(t=>e.find(e=>e.value===t)?.label??String(t)).join(`, `):`${L.value.length} selected`:e.find(e=>e.value===L.value[0])?.label??String(L.value[0])});function B(e){return L.value.includes(e)}let V=e=>e.normalize(`NFD`).replace(/\p{M}/gu,``).toLowerCase(),H=(0,c.computed)(()=>{let e=d.options??[],t=d.searchable?V(h.value.trim()):``,n=new Set;return e.forEach((e,r)=>{(!t||V(e.label).includes(t))&&n.add(r)}),n}),De=(0,c.computed)(()=>{let e=[];return(d.options??[]).forEach((t,n)=>{if(!H.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:`${E.value}-group-${e.length}`,entries:[]}),e[e.length-1].entries.push({option:t,index:n})}),e});function U(e,t){let n=d.options??[];for(let r=e+t;r>=0&&r<n.length;r+=t)if(!n[r].disabled&&H.value.has(r))return r;return e}function W(e){if(e.disabled)return;let t;if(d.multiple){let n=[...L.value],r=n.indexOf(e.value);r>=0?n.splice(r,1):n.push(e.value),t=n}else t=e.value,q();f(`update:modelValue`,t),f(`change`,t)}function G(){let e=Te();if(!e)return;let t=e.getBoundingClientRect(),n=C.value?.offsetHeight??0,r=window.innerHeight-t.bottom,i=t.top,a=n>0&&r<n&&i>r,o=x.trigger?Math.max(t.width,240):t.width,s=x.trigger?Math.max(8,Math.min(t.left,window.innerWidth-o-8)):t.left;w.value={position:`fixed`,top:a?`${t.top-n}px`:`${t.bottom}px`,left:`${s}px`,width:`${o}px`,zIndex:`9999`}}function K(){if(D.value)return;g.value=!0,G();let e=d.options??[];v.value=L.value.length>0?Math.max(0,e.findIndex(e=>e.value===L.value[0])):-1,(0,c.nextTick)(()=>{G(),Z(),Ce.value?.focus({preventScroll:!0})})}function q(){let e=!!C.value?.contains(document.activeElement);g.value=!1,v.value=-1,h.value=``,e&&S()}function J(){g.value?q():K()}function Y(e){let t=e.target,n=y.value?.contains(t)??!1,r=C.value?.contains(t)??!1;!n&&!r&&q()}function X(){g.value&&G()}(0,c.watch)(g,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,c.onBeforeUnmount)(()=>{document.removeEventListener(`mousedown`,Y),window.removeEventListener(`scroll`,X,!0),window.removeEventListener(`resize`,X)});function Oe(e){let t=d.options??[];if(!g.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(),v.value=U(v.value,1),Z()):e.key===`ArrowUp`?(e.preventDefault(),v.value>0&&(v.value=U(v.value,-1)),Z()):(e.key===`Enter`||e.key===` `)&&v.value>=0&&(e.preventDefault(),W(t[v.value]))}function Z(){(0,c.nextTick)(()=>{!C.value||v.value<0||C.value.querySelector(`[data-index="${v.value}"]`)?.scrollIntoView({block:`nearest`})})}(0,c.watch)(h,()=>{if(!g.value)return;let e=U(-1,1);v.value=e===-1?-1:e,Z()});function ke(e){if(e.key===` `){e.stopPropagation();return}if(e.key===`Home`||e.key===`End`){e.stopPropagation();return}Oe(e)}let Ae=(0,c.computed)(()=>({isOpen:g.value,toggle:J,open:K,close:q,attrs:{"aria-expanded":g.value,"aria-haspopup":`listbox`,"aria-controls":g.value?F.value:void 0,"aria-invalid":k.value,onClick:J}})),je=n.useNbStrings(),Me=(0,c.computed)(()=>d.clearLabel??je.value.selectClear),Q=(0,c.computed)(()=>d.clearable&&!D.value&&L.value.length>0);function $(){let e=d.multiple?[]:null;q(),f(`update:modelValue`,e),f(`change`,e),S()}let Ne=(0,c.computed)(()=>[`nb-select`,`nb-select--${d.variant}`,`nb-select--${T.size.value}`,{"nb-select--open":g.value,"nb-select--focused":_.value&&!g.value,"nb-select--error":P.value,"nb-select--warning":!P.value&&(!!d.warning||T.status.value===`warning`),"nb-select--multiple":d.multiple,"nb-select--bare":!!x.trigger}]);return xe({open:K,close:q}),(n,o)=>((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,null,[(0,c.createElementVNode)(`div`,{ref_key:`rootRef`,ref:y,class:(0,c.normalizeClass)(Ne.value),onKeydown:Oe},[n.$slots.trigger?(0,c.renderSlot)(n.$slots,`trigger`,(0,c.normalizeProps)((0,c.mergeProps)({key:0},Ae.value))):u.variant===`default`?((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:1},[n.$slots.label?(0,c.renderSlot)(n.$slots,`label`,{key:0}):u.label?((0,c.openBlock)(),(0,c.createBlock)(r.t,{key:1,for:(0,c.unref)(E),required:u.required,disabled:(0,c.unref)(D)},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(u.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,c.createCommentVNode)(``,!0),(0,c.createVNode)(p,{wrap:u.clearable},{default:(0,c.withCtx)(()=>[(0,c.createElementVNode)(`button`,{id:(0,c.unref)(E),ref_key:`triggerRef`,ref:b,type:`button`,class:`nb-select__trigger`,role:`combobox`,"aria-expanded":g.value,"aria-haspopup":`listbox`,"aria-disabled":(0,c.unref)(D)||void 0,"aria-required":u.required||void 0,"aria-invalid":N.value,"aria-describedby":M.value,disabled:(0,c.unref)(D)||void 0,onClick:J,onFocus:o[0]||=e=>_.value=!0,onBlur:o[1]||=e=>_.value=!1},[(0,c.createElementVNode)(`span`,{class:(0,c.normalizeClass)([`nb-select__value`,{"nb-select__value--placeholder":!z.value,"nb-select__value--with-icon":!!R.value}])},[R.value?((0,c.openBlock)(),(0,c.createBlock)(t.t,{key:0,class:`nb-select__value-icon`,name:R.value,size:16},null,8,[`name`])):(0,c.createCommentVNode)(``,!0),z.value?(0,c.renderSlot)(n.$slots,`value`,{key:1,values:L.value},()=>[(0,c.createTextVNode)((0,c.toDisplayString)(z.value),1)]):((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:2},[(0,c.createTextVNode)((0,c.toDisplayString)(u.placeholder),1)],64))],2),u.error?((0,c.openBlock)(),(0,c.createBlock)(i.t,{key:0,variant:`error`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-select__status-icon`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(u.error),1)]),_:1})):u.warning?((0,c.openBlock)(),(0,c.createBlock)(i.t,{key:1,variant:`warning`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-select__status-icon`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(u.warning),1)]),_:1})):(0,c.createCommentVNode)(``,!0),Q.value?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,ie)):(0,c.createCommentVNode)(``,!0),(0,c.createVNode)(a.t,{align:`center`,justify:`center`,class:`nb-select__caret`},{default:(0,c.withCtx)(()=>[(0,c.createVNode)(t.t,{name:g.value?(0,c.unref)(te.regular):(0,c.unref)(l.regular),size:16},null,8,[`name`])]),_:1})],40,re),Q.value?((0,c.openBlock)(),(0,c.createBlock)(e.t,{key:0,variant:`ghost`,icon:(0,c.unref)(ne.regular),size:`xs`,label:Me.value,class:`nb-select__clear`,onClick:$,onKeydown:[o[2]||=(0,c.withKeys)((0,c.withModifiers)(()=>{},[`stop`]),[`enter`]),o[3]||=(0,c.withKeys)((0,c.withModifiers)(()=>{},[`stop`]),[`space`])]},null,8,[`icon`,`label`])):(0,c.createCommentVNode)(``,!0)]),_:3},8,[`wrap`]),u.error?((0,c.openBlock)(),(0,c.createBlock)(i.t,{id:(0,c.unref)(O).error,key:(0,c.unref)(j),variant:`error`,live:(0,c.unref)(A),class:`nb-select__message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(u.error),1)]),_:1},8,[`id`,`live`])):u.warning?((0,c.openBlock)(),(0,c.createBlock)(i.t,{id:(0,c.unref)(O).warning,key:(0,c.unref)(j),variant:`warning`,live:(0,c.unref)(A),class:`nb-select__message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(u.warning),1)]),_:1},8,[`id`,`live`])):u.helper?((0,c.openBlock)(),(0,c.createBlock)(i.t,{id:(0,c.unref)(O).helper,key:(0,c.unref)(j),variant:`helper`,live:(0,c.unref)(A),class:`nb-select__message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(u.helper),1)]),_:1},8,[`id`,`live`])):(0,c.createCommentVNode)(``,!0)],64)):u.variant===`fluid`?((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:2},[(0,c.createVNode)(p,{wrap:u.clearable},{default:(0,c.withCtx)(()=>[(0,c.createElementVNode)(`button`,{id:(0,c.unref)(E),ref_key:`triggerRef`,ref:b,type:`button`,class:`nb-select__trigger`,role:`combobox`,"aria-expanded":g.value,"aria-haspopup":`listbox`,"aria-disabled":(0,c.unref)(D)||void 0,"aria-required":u.required||void 0,"aria-invalid":N.value,"aria-describedby":M.value,disabled:(0,c.unref)(D)||void 0,onClick:J,onFocus:o[4]||=e=>_.value=!0,onBlur:o[5]||=e=>_.value=!1},[u.label||n.$slots.label?((0,c.openBlock)(),(0,c.createBlock)(a.t,{key:0,dir:`row`,align:`center`,gap:`xs`,class:`nb-select__inner-header`},{default:(0,c.withCtx)(()=>[n.$slots.label?(0,c.renderSlot)(n.$slots,`label`,{key:0}):((0,c.openBlock)(),(0,c.createElementBlock)(`label`,oe,[(0,c.createTextVNode)((0,c.toDisplayString)(u.label)+` `,1),u.required?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,se,`*`)):(0,c.createCommentVNode)(``,!0)])),u.helper&&!u.error&&!u.warning?((0,c.openBlock)(),(0,c.createBlock)(i.t,{key:2,id:(0,c.unref)(O).helper,variant:`helper`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-select__inner-message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(u.helper),1)]),_:1},8,[`id`])):(0,c.createCommentVNode)(``,!0)]),_:3})):(0,c.createCommentVNode)(``,!0),(0,c.createVNode)(a.t,{dir:`row`,align:`end`,flex:``,class:`nb-select__value-row`},{default:(0,c.withCtx)(()=>[(0,c.createElementVNode)(`span`,{class:(0,c.normalizeClass)([`nb-select__value`,{"nb-select__value--placeholder":!z.value,"nb-select__value--with-icon":!!R.value}])},[R.value?((0,c.openBlock)(),(0,c.createBlock)(t.t,{key:0,class:`nb-select__value-icon`,name:R.value,size:16},null,8,[`name`])):(0,c.createCommentVNode)(``,!0),z.value?(0,c.renderSlot)(n.$slots,`value`,{key:1,values:L.value},()=>[(0,c.createTextVNode)((0,c.toDisplayString)(z.value),1)]):((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:2},[(0,c.createTextVNode)((0,c.toDisplayString)(u.placeholder),1)],64))],2),Q.value?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,ce)):(0,c.createCommentVNode)(``,!0),(0,c.createVNode)(a.t,{align:`center`,justify:`center`,class:`nb-select__caret`},{default:(0,c.withCtx)(()=>[(0,c.createVNode)(t.t,{name:g.value?(0,c.unref)(te.regular):(0,c.unref)(l.regular),size:16},null,8,[`name`])]),_:1})]),_:3})],40,ae),Q.value?((0,c.openBlock)(),(0,c.createBlock)(e.t,{key:0,variant:`ghost`,icon:(0,c.unref)(ne.regular),size:`xs`,label:Me.value,class:`nb-select__clear`,onClick:$,onKeydown:[o[6]||=(0,c.withKeys)((0,c.withModifiers)(()=>{},[`stop`]),[`enter`]),o[7]||=(0,c.withKeys)((0,c.withModifiers)(()=>{},[`stop`]),[`space`])]},null,8,[`icon`,`label`])):(0,c.createCommentVNode)(``,!0)]),_:3},8,[`wrap`]),u.error?((0,c.openBlock)(),(0,c.createBlock)(i.t,{id:(0,c.unref)(O).error,key:(0,c.unref)(j),variant:`error`,live:(0,c.unref)(A),class:`nb-select__fluid-message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(u.error),1)]),_:1},8,[`id`,`live`])):u.warning?((0,c.openBlock)(),(0,c.createBlock)(i.t,{id:(0,c.unref)(O).warning,key:(0,c.unref)(j),variant:`warning`,live:(0,c.unref)(A),class:`nb-select__fluid-message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(u.warning),1)]),_:1},8,[`id`,`live`])):(0,c.createCommentVNode)(``,!0)],64)):(0,c.createCommentVNode)(``,!0)],34),((0,c.openBlock)(),(0,c.createBlock)(c.Teleport,{to:`body`},[(0,c.createVNode)(c.Transition,{name:`nb-select-pop`},{default:(0,c.withCtx)(()=>[g.value?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:0,id:F.value,ref_key:`dropdownRef`,ref:C,class:(0,c.normalizeClass)([`nb-select__dropdown`,{"nb-select__dropdown--check":u.selectedMark===`check`,"nb-select__dropdown--anchored":!!n.$slots.trigger}]),style:(0,c.normalizeStyle)(w.value),role:`listbox`,"aria-multiselectable":u.multiple||void 0},[u.searchable?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,ue,[(0,c.withDirectives)((0,c.createElementVNode)(`input`,{ref_key:`searchRef`,ref:Ce,"onUpdate:modelValue":o[8]||=e=>h.value=e,type:`search`,class:`nb-select__search-input`,autocomplete:`off`,spellcheck:`false`,placeholder:u.searchPlaceholder,"aria-label":u.searchPlaceholder,"aria-controls":F.value,"aria-activedescendant":v.value>=0?I(v.value):void 0,onKeydown:ke},null,40,de),[[c.vModelText,h.value]])])):(0,c.createCommentVNode)(``,!0),((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(De.value,e=>((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:e.key,class:`nb-select__group`,role:`group`,"aria-labelledby":e.name?e.labelId:void 0},[e.name?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:0,id:e.labelId,class:`nb-select__group-label`},(0,c.toDisplayString)(e.name),9,pe)):(0,c.createCommentVNode)(``,!0),((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(e.entries,e=>((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{id:I(e.index),key:e.option.value,"data-index":e.index,class:(0,c.normalizeClass)([`nb-select__option`,{"nb-select__option--selected":B(e.option.value),"nb-select__option--highlighted":v.value===e.index,"nb-select__option--disabled":e.option.disabled}]),role:`option`,"aria-selected":B(e.option.value),"aria-disabled":e.option.disabled||void 0,onMouseenter:t=>v.value=e.index,onClick:t=>W(e.option)},[u.multiple||u.selectedMark===`check`?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,he,[B(e.option.value)?((0,c.openBlock)(),(0,c.createElementBlock)(`svg`,ge,[...o[12]||=[(0,c.createElementVNode)(`path`,{d:`M1 4l3 3 5-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])):(0,c.createCommentVNode)(``,!0)])):(0,c.createCommentVNode)(``,!0),e.option.icon?((0,c.openBlock)(),(0,c.createBlock)(t.t,{key:1,class:`nb-select__option-icon`,name:e.option.icon,size:16},null,8,[`name`])):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`span`,_e,[(0,c.renderSlot)(n.$slots,`option`,{option:e.option},()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.option.label),1)])])],42,me))),128))],8,fe))),128)),!u.options||u.options.length===0?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,ve,` No options `)):u.searchable&&H.value.size===0?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,ye,(0,c.toDisplayString)(u.noResultsLabel),1)):(0,c.createCommentVNode)(``,!0),u.creatable?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:3,class:`nb-select__create`,onMousedown:o[11]||=(0,c.withModifiers)(()=>{},[`prevent`])},[(0,c.withDirectives)((0,c.createElementVNode)(`input`,{"onUpdate:modelValue":o[9]||=e=>m.value=e,type:`text`,class:`nb-select__create-input`,placeholder:u.createPlaceholder||`Add new…`,onKeydown:[(0,c.withKeys)((0,c.withModifiers)(we,[`prevent`]),[`enter`]),o[10]||=(0,c.withModifiers)(()=>{},[`stop`])]},null,40,be),[[c.vModelText,m.value]])],32)):(0,c.createCommentVNode)(``,!0)],14,le)):(0,c.createCommentVNode)(``,!0)]),_:3})]))],64))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|