@nubisco/ui 5.12.0 → 5.14.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-CCndN0ln.cjs +1 -0
- package/dist/AccordionItem-Cg8wmypl.js +116 -0
- package/dist/{AiLabel-MZn446Uy.js → AiLabel-BxCWEOn-.js} +1 -1
- package/dist/{AiLabel-i75MlwdE.cjs → AiLabel-D4gkbAEC.cjs} +1 -1
- package/dist/Badge-B1xoanmq.cjs +1 -0
- package/dist/Badge-CxBslbIp.js +59 -0
- package/dist/{Banner-DhaO7S51.js → Banner-D61pK-1n.js} +4 -4
- package/dist/{Banner-CqNiWOsn.cjs → Banner-DzySrOrs.cjs} +1 -1
- package/dist/{BarChart-Cpa8IlAy.cjs → BarChart-BmDXIaf6.cjs} +1 -1
- package/dist/{BarChart-BIBrrXZk.js → BarChart-CmYyd4IV.js} +4 -4
- package/dist/{BlueprintControls-9TePyiYN.js → BlueprintControls-CVQkxcMU.js} +1 -1
- package/dist/{BlueprintControls-D0IN84WV.cjs → BlueprintControls-IU6Dc5yv.cjs} +1 -1
- package/dist/{Checkbox-Iu2e_Ob7.js → Checkbox-BkRL6Ops.js} +1 -1
- package/dist/{Checkbox-9bxwFy5R.cjs → Checkbox-D8Curaxc.cjs} +1 -1
- package/dist/{CheckboxGroup-Dh6sf0K2.js → CheckboxGroup-Hu-wWRto.js} +3 -3
- package/dist/{CheckboxGroup-2hyyIRXt.cjs → CheckboxGroup-fEs9Ye8M.cjs} +1 -1
- package/dist/{ColorStrip-BDu9ie4P.js → ColorStrip-CcMzeYOw.js} +2 -2
- package/dist/{ColorStrip-8X4Op3ap.cjs → ColorStrip-Doh0adti.cjs} +1 -1
- package/dist/{Confirm-BQkB2b4e.js → Confirm-DWEwpP6C.js} +4 -4
- package/dist/{Confirm-DZ_nb6Z0.cjs → Confirm-DsrwfJbb.cjs} +1 -1
- package/dist/{DataTable-DLuSmiTV.cjs → DataTable-BJKfz59R.cjs} +1 -1
- package/dist/{DataTable-CVih75pn.js → DataTable-D6hXgtDH.js} +3 -3
- package/dist/DatePicker-Cgnm0ku3.js +704 -0
- package/dist/DatePicker-DytDcACW.cjs +1 -0
- package/dist/{FileUploader-GhaVDiGG.js → FileUploader-B2A1T1vb.js} +1 -1
- package/dist/{FileUploader-BQuiNHeI.cjs → FileUploader-CufMlD5X.cjs} +1 -1
- package/dist/{Form-CJbbzvXt.js → Form-j4QMRkL5.js} +1 -1
- package/dist/{Form-D50Okwsy.cjs → Form-u6XCVBqX.cjs} +1 -1
- package/dist/{GanttChart-DX0FAk3D.js → GanttChart-B6Np07RJ.js} +3 -3
- package/dist/{GanttChart-08yTvMaQ.cjs → GanttChart-Cekazr75.cjs} +1 -1
- package/dist/{ImageCropper-ZofGN_5r.cjs → ImageCropper-Bl8BjRur.cjs} +1 -1
- package/dist/{ImageCropper-6wnJLNBr.js → ImageCropper-DBjxzZhN.js} +2 -2
- package/dist/{InterpolationChart-B-7W3StJ.js → InterpolationChart-BF00hyiY.js} +3 -3
- package/dist/{InterpolationChart-CbBAhYHw.cjs → InterpolationChart-D_QPQOIS.cjs} +1 -1
- package/dist/{LineChart-ndwAlJBw.cjs → LineChart-CgBvFTwd.cjs} +1 -1
- package/dist/{LineChart-C7_gUiB4.js → LineChart-D21jFHa1.js} +4 -4
- package/dist/{Menu-Dy1JwMdl.js → Menu-CsA8dtMR.js} +6 -1
- package/dist/Menu-Xt1MCf-q.cjs +1 -0
- package/dist/{MenuBarItem-Ya88A6xZ.cjs → MenuBarItem-42bSEdWZ.cjs} +1 -1
- package/dist/{MenuBarItem-CYofbcgq.js → MenuBarItem-H1sFt0Mx.js} +1 -1
- package/dist/{Message-D8ZE4uGZ.cjs → Message-DjxOb8mu.cjs} +1 -1
- package/dist/{Message-Ciyc2nN6.js → Message-SQvoXiWl.js} +4 -4
- package/dist/{Modal-kfgbfLM4.js → Modal-DAcbddGc.js} +1 -1
- package/dist/{Modal-BkCiD4gu.cjs → Modal-nmkOUH0U.cjs} +1 -1
- package/dist/{NotificationCenter-D-9IwSTD.js → NotificationCenter-BWNFq7Y_.js} +3 -3
- package/dist/{NotificationCenter-4oCy75aK.cjs → NotificationCenter-RIzKsxUf.cjs} +1 -1
- package/dist/{NotificationCenterItem--dJsS8g2.cjs → NotificationCenterItem-pWiBpKMc.cjs} +1 -1
- package/dist/{NotificationCenterItem-CknMkJUp.js → NotificationCenterItem-yqlKqwI2.js} +4 -4
- package/dist/{NumberInput-Bnd9zGie.js → NumberInput-CrbTiAkP.js} +2 -2
- package/dist/{NumberInput-qBJbdvfP.cjs → NumberInput-DsjKITeI.cjs} +1 -1
- package/dist/{Pagination-CcZB4Lp_.cjs → Pagination-4TBI-fLd.cjs} +1 -1
- package/dist/{Pagination-DDIc4vUH.js → Pagination-DGnnQ53Y.js} +2 -2
- package/dist/{PieChart-5Sl9JYUU.js → PieChart-ByOhOTXU.js} +3 -3
- package/dist/{PieChart-BgLnTYSn.cjs → PieChart-DajsvhAV.cjs} +1 -1
- package/dist/{ProgressBar-CW9nJ2CU.js → ProgressBar-BF-2nm2N.js} +2 -2
- package/dist/{ProgressBar-D4a4RfdX.cjs → ProgressBar-Cn-FnvZR.cjs} +1 -1
- package/dist/{Radio-B2bhBVJ8.cjs → Radio-CkFwMQZ-.cjs} +1 -1
- package/dist/{Radio-BlBitwW3.js → Radio-pH924Ch3.js} +2 -2
- package/dist/Select-BjPXJHru.cjs +1 -0
- package/dist/{Select-CB4BSCaj.js → Select-BqVTogW-.js} +80 -77
- package/dist/{SidebarCollapseToggle-BM3YJ2rA.cjs → SidebarCollapseToggle-VOdswrKP.cjs} +1 -1
- package/dist/{SidebarCollapseToggle-k7sWa2TJ.js → SidebarCollapseToggle-pNj344jL.js} +1 -1
- package/dist/{Slider-BECfNKi_.cjs → Slider-Clgfp-vI.cjs} +1 -1
- package/dist/{Slider-CPQjPfG2.js → Slider-Dxh4sXev.js} +4 -4
- package/dist/{Switch-TqDspgnw.cjs → Switch-CnjGuqXl.cjs} +1 -1
- package/dist/{Switch-CxAgokBR.js → Switch-dKiTaRd9.js} +2 -2
- package/dist/{TableOfContents-C6btwKBE.cjs → TableOfContents-BfR2Zyrv.cjs} +1 -1
- package/dist/{TableOfContents-DCaf2uyd.js → TableOfContents-C6zgmnCg.js} +1 -1
- package/dist/{Tabs-BPgmRLDi.cjs → Tabs-BCCI2jAd.cjs} +1 -1
- package/dist/{Tabs-DseHSwTm.js → Tabs-CxqDD--r.js} +2 -2
- package/dist/{TextInput-C1akT0kW.cjs → TextInput--u9htMqc.cjs} +1 -1
- package/dist/{TextInput-DBeZ3X3P.js → TextInput-C_i6Miob.js} +3 -3
- package/dist/{Toast-EsXGrZ9r.js → Toast-C7ZcSqjz.js} +6 -6
- package/dist/{Toast-dgMA595p.cjs → Toast-DdjLfZW7.cjs} +1 -1
- package/dist/{Toaster-D4r1g967.cjs → Toaster-noCUOlwh.cjs} +1 -1
- package/dist/{Toaster-BbDgPVmM.js → Toaster-sBQX6bee.js} +1 -1
- package/dist/{UserMenu-ztYcZqMp.cjs → UserMenu-C65Ky9ov.cjs} +1 -1
- package/dist/{UserMenu-opamjLVS.js → UserMenu-ClcDEyTu.js} +2 -2
- package/dist/{Walkthrough-Vy7rtAmt.js → Walkthrough-B_zZaq4y.js} +7 -7
- package/dist/{Walkthrough-BsPHPjJf.cjs → Walkthrough-CDeBRQZb.cjs} +1 -1
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +95 -95
- package/dist/component-styles.json +3 -1
- package/dist/components/Accordion.d.ts +7 -0
- package/dist/components/AccordionItem.cjs +1 -1
- package/dist/components/AccordionItem.mjs +1 -1
- package/dist/components/AccordionItem.vue.d.ts +7 -2
- package/dist/components/AccordionItem.vue.d.ts.map +1 -1
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/Avatar.cjs +1 -1
- package/dist/components/Avatar.mjs +1 -1
- package/dist/components/Badge.cjs +1 -1
- package/dist/components/Badge.d.ts +18 -0
- package/dist/components/Badge.mjs +1 -1
- package/dist/components/Badge.vue.d.ts +5 -2
- package/dist/components/Badge.vue.d.ts.map +1 -1
- package/dist/components/Banner.cjs +1 -1
- package/dist/components/Banner.mjs +1 -1
- package/dist/components/BlueprintCard.vue.d.ts +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/Board.cjs +1 -1
- package/dist/components/Board.mjs +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts +1 -1
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Card.cjs +1 -1
- package/dist/components/Card.mjs +1 -1
- package/dist/components/CardGrid.cjs +1 -1
- 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/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/ColorStrip.cjs +1 -1
- package/dist/components/ColorStrip.mjs +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.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/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/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/InfoHint.cjs +1 -1
- package/dist/components/InfoHint.mjs +1 -1
- package/dist/components/InfoHint.vue.d.ts +1 -1
- package/dist/components/Label.cjs +1 -1
- package/dist/components/Label.mjs +1 -1
- package/dist/components/Menu.cjs +1 -1
- package/dist/components/Menu.mjs +1 -1
- package/dist/components/Menu.vue.d.ts.map +1 -1
- package/dist/components/MenuBarItem.cjs +1 -1
- package/dist/components/MenuBarItem.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/NotificationCenter.vue.d.ts +2 -2
- 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/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/ProgressBar.cjs +1 -1
- package/dist/components/ProgressBar.mjs +1 -1
- package/dist/components/Radio.cjs +1 -1
- package/dist/components/Radio.mjs +1 -1
- package/dist/components/ReorderList.cjs +1 -1
- package/dist/components/ReorderList.mjs +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Select.vue.d.ts +1 -1
- package/dist/components/Select.vue.d.ts.map +1 -1
- package/dist/components/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarLink.vue.d.ts +1 -1
- package/dist/components/SidebarMenuItem.vue.d.ts +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Spinner.vue.d.ts +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/Tabs.cjs +1 -1
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/Tabs.vue.d.ts.map +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.mjs +1 -1
- package/dist/components/TextInput.vue.d.ts +1 -1
- 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/Toaster.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 +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +3 -3
- package/dist/composables/useMenuSurface.composable.cjs +1 -0
- package/dist/composables/useMenuSurface.composable.d.ts +14 -0
- package/dist/composables/useMenuSurface.composable.d.ts.map +1 -0
- package/dist/composables/useMenuSurface.composable.mjs +12 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +62 -62
- package/dist/styles/AccordionItem.css +1 -1
- package/dist/styles/Badge.css +1 -1
- package/dist/styles/Tabs.css +1 -1
- package/dist/ui.css +4 -4
- package/package.json +1 -1
- package/dist/AccordionItem-BkV2mNGm.js +0 -90
- package/dist/AccordionItem-CYy-vtx2.cjs +0 -1
- package/dist/Badge-BOF-mQu9.cjs +0 -1
- package/dist/Badge-MPdaJamD.js +0 -30
- package/dist/DatePicker-DQJ31TUm.cjs +0 -1
- package/dist/DatePicker-htoxxlSw.js +0 -701
- package/dist/Menu-BSbPfsiE.cjs +0 -1
- package/dist/Select-BMamCNcN.cjs +0 -1
- /package/dist/{Avatar-DqHh71ha.cjs → Avatar-BmB57kGg.cjs} +0 -0
- /package/dist/{Avatar-672086EP.js → Avatar-ap4X6_kE.js} +0 -0
- /package/dist/{Board-CS1pMX4d.cjs → Board-6TUivitd.cjs} +0 -0
- /package/dist/{Board-DmTUOIbg.js → Board-nLi96Obf.js} +0 -0
- /package/dist/{Breadcrumbs-CbN5yrrZ.js → Breadcrumbs-BT3EvjKk.js} +0 -0
- /package/dist/{Breadcrumbs-BQ61cxAo.cjs → Breadcrumbs-H9PvTXK0.cjs} +0 -0
- /package/dist/{Button-Cw4D6w9K.js → Button-CV2mm5ZB.js} +0 -0
- /package/dist/{Button-D-XSNjSL.cjs → Button-S8xZ0EGV.cjs} +0 -0
- /package/dist/{Calendar-B9E2LD-Z.js → Calendar-Bu8yA7-h.js} +0 -0
- /package/dist/{Calendar-Dl51sRax.cjs → Calendar-DiYrR5ss.cjs} +0 -0
- /package/dist/{Card-eM6DEphF.js → Card-ChgbYLJP.js} +0 -0
- /package/dist/{Card-Cn5OS4q-.cjs → Card-duvlUAg9.cjs} +0 -0
- /package/dist/{CardGrid-Dpr7jSvX.js → CardGrid-ChwQuHLa.js} +0 -0
- /package/dist/{CardGrid-CQlFeUgK.cjs → CardGrid-Desk_vNP.cjs} +0 -0
- /package/dist/{ChartLegend-F3Fb5_Lx.cjs → ChartLegend-O2SYdHsd.cjs} +0 -0
- /package/dist/{ChartLegend-DtN-9tjj.js → ChartLegend-ywCoTUbO.js} +0 -0
- /package/dist/{CheckboxGroup.context-DxIobnwL.js → CheckboxGroup.context-BssNljp4.js} +0 -0
- /package/dist/{CheckboxGroup.context-YvEAde5I.cjs → CheckboxGroup.context-DYPnnK72.cjs} +0 -0
- /package/dist/{DefinitionList-DURU1gfC.cjs → DefinitionList-C5cqvaLy.cjs} +0 -0
- /package/dist/{DefinitionList-uikEhnxV.js → DefinitionList-fmy6J4Re.js} +0 -0
- /package/dist/{DefinitionListItem-DzDHUFZP.js → DefinitionListItem-CJK5RkIw.js} +0 -0
- /package/dist/{DefinitionListItem-Cr9dbQxH.cjs → DefinitionListItem-CWqjObrZ.cjs} +0 -0
- /package/dist/{DragHandle-CEYUbnGp.cjs → DragHandle-CoJEyCLX.cjs} +0 -0
- /package/dist/{DragHandle-CnXKvg4U.js → DragHandle-DDJ1Hsmo.js} +0 -0
- /package/dist/{EmptyState-Cz91HAKF.cjs → EmptyState-u1iAtZUB.cjs} +0 -0
- /package/dist/{EmptyState-CwMG-NeI.js → EmptyState-xU5I0laM.js} +0 -0
- /package/dist/{Flag-CrPxTYGW.cjs → Flag-Pk2LFD1t.cjs} +0 -0
- /package/dist/{Flag-BdhoXwJu.js → Flag-k-Aakupd.js} +0 -0
- /package/dist/{FloatingToolbar-AoCFmueA.cjs → FloatingToolbar-DpBbWZL6.cjs} +0 -0
- /package/dist/{FloatingToolbar-Zs9hJISD.js → FloatingToolbar-_loB4pae.js} +0 -0
- /package/dist/{Grid-CgUyhsw4.js → Grid-DA2jibMM.js} +0 -0
- /package/dist/{Grid-DTZTlxd_.cjs → Grid-HifmWSUS.cjs} +0 -0
- /package/dist/{InfoHint-DjAgTkgL.js → InfoHint-CK96hjMo.js} +0 -0
- /package/dist/{InfoHint-DX3lgnTX.cjs → InfoHint-Cs9-C043.cjs} +0 -0
- /package/dist/{Label-DtXh4XR5.cjs → Label-BIM21I7D.cjs} +0 -0
- /package/dist/{Label-glcQoGCr.js → Label-CiWiUQ_H.js} +0 -0
- /package/dist/{NubiscoMark-Cv7PC_UC.cjs → NubiscoMark-BN6bzMMG.cjs} +0 -0
- /package/dist/{NubiscoMark-Cdkdq4ka.js → NubiscoMark-Bj6eID79.js} +0 -0
- /package/dist/{NubiscoPlatformMark-CsQKE5_2.js → NubiscoPlatformMark-C0OeymWK.js} +0 -0
- /package/dist/{NubiscoPlatformMark-JzdEpSRs.cjs → NubiscoPlatformMark-CE-poDEU.cjs} +0 -0
- /package/dist/{ReorderList-DLQ3rVnX.cjs → ReorderList-CigXh_u8.cjs} +0 -0
- /package/dist/{ReorderList-DpytAupm.js → ReorderList-DC83oBGi.js} +0 -0
- /package/dist/{palette-DeWUCp-_.cjs → palette-BW0RLn76.cjs} +0 -0
- /package/dist/{palette-IseTcTSI.js → palette-CS95-prq.js} +0 -0
- /package/dist/{scales-5n6sKgoF.js → scales-BjSg0Ayo.js} +0 -0
- /package/dist/{scales-BzEZs-6Z.cjs → scales-VtK6oMP0.cjs} +0 -0
- /package/dist/{useChartSize-DdrCBerH.cjs → useChartSize-BPqvq1te.cjs} +0 -0
- /package/dist/{useChartSize-Bc1dbcG2.js → useChartSize-CBOK3yq5.js} +0 -0
- /package/dist/{vue-i18n-yvGo2JG6.cjs → vue-i18n-Bhwom92P.cjs} +0 -0
- /package/dist/{vue-i18n-BogjhxqA.js → vue-i18n-CkVGSKx4.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Icon-C8R_r_In.cjs`);let n=require(`vue`),r=require(`@nubisco/ui/icons/
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Icon-C8R_r_In.cjs`);let n=require(`vue`),r=require(`@nubisco/ui/icons/info`);r=e.n(r);let i=require(`@nubisco/ui/icons/warning-circle`);i=e.n(i);let a=require(`@nubisco/ui/icons/check-circle`);a=e.n(a);let o=require(`@nubisco/ui/icons/warning`);o=e.n(o);var s={class:`nb-notification-item__sr`},c={key:0,class:`nb-notification-item__media`},l={class:`nb-notification-item__main`},u={class:`nb-notification-item__head`},d={class:`nb-notification-item__title`},f=[`datetime`],p={key:0,class:`nb-notification-item__body`,"data-nb-notification-body":``},m={key:0,class:`nb-notification-item__actions`},h=(0,n.defineComponent)({__name:`NotificationCenterItem`,props:{title:{default:``},body:{default:``},time:{default:void 0},timeLabel:{default:void 0},read:{type:Boolean,default:!1},variant:{default:`neutral`},icon:{default:void 0},href:{default:void 0},interactive:{type:Boolean,default:!0},locale:{default:void 0},unreadLabel:{default:`Unread`},readLabel:{default:`Read`}},emits:[`select`],setup(e,{emit:h}){let g=e,_=h,v=(0,n.useSlots)(),y=(0,n.computed)(()=>g.href?`a`:g.interactive?`button`:`div`),b=(0,n.computed)(()=>y.value!==`div`),x=(0,n.computed)(()=>b.value?{"data-nb-notification-item":``,href:y.value===`a`?g.href:void 0,type:y.value===`button`?`button`:void 0,onClick:N}:{}),S={neutral:null,info:r,success:a,warning:o,error:i},C=(0,n.computed)(()=>g.variant===`danger`?`error`:g.variant),w=(0,n.computed)(()=>g.icon===null?null:g.icon??S[C.value]),T=(0,n.computed)(()=>!!(w.value||v.media)),E=(0,n.computed)(()=>{if(g.time===void 0||g.time===null)return null;let e=g.time instanceof Date?g.time:new Date(g.time);return Number.isNaN(e.getTime())?null:e}),D=(0,n.computed)(()=>E.value?.toISOString()),O=[[`year`,31536e3],[`month`,2592e3],[`week`,604800],[`day`,86400],[`hour`,3600],[`minute`,60],[`second`,1]];function k(e,t){let n=(e.getTime()-Date.now())/1e3,r=Math.abs(n),i=new Intl.RelativeTimeFormat(t,{numeric:`auto`});for(let[e,t]of O)if(r>=t||e===`second`)return i.format(Math.round(n/t),e);return i.format(0,`second`)}let A=(0,n.ref)(!1);(0,n.onMounted)(()=>{A.value=!0});let j=(0,n.computed)(()=>E.value?new Intl.DateTimeFormat(g.locale,{dateStyle:`medium`,timeStyle:`short`}).format(E.value):``),M=(0,n.computed)(()=>g.timeLabel?g.timeLabel:E.value?A.value?k(E.value,g.locale):j.value:``);function N(e){_(`select`,e)}return(r,i)=>((0,n.openBlock)(),(0,n.createElementBlock)(`li`,{class:(0,n.normalizeClass)([`nb-notification-item`,[`nb-notification-item--${C.value}`,{"nb-notification-item--unread":!e.read}]]),role:`listitem`},[((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(y.value),(0,n.mergeProps)({class:[`nb-notification-item__row`,{"nb-notification-item__row--static":!b.value}]},x.value),{default:(0,n.withCtx)(()=>[i[0]||=(0,n.createElementVNode)(`span`,{class:`nb-notification-item__marker`,"aria-hidden":`true`},null,-1),(0,n.createElementVNode)(`span`,s,(0,n.toDisplayString)(e.read?e.readLabel:e.unreadLabel),1),T.value?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,c,[(0,n.renderSlot)(r.$slots,`media`,{},()=>[w.value?((0,n.openBlock)(),(0,n.createBlock)(t.t,{key:0,name:w.value,size:16},null,8,[`name`])):(0,n.createCommentVNode)(``,!0)])])):(0,n.createCommentVNode)(``,!0),(0,n.createElementVNode)(`span`,l,[(0,n.createElementVNode)(`span`,u,[(0,n.createElementVNode)(`span`,d,[(0,n.renderSlot)(r.$slots,`title`,{},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.title),1)])]),M.value?((0,n.openBlock)(),(0,n.createElementBlock)(`time`,{key:0,class:`nb-notification-item__time`,datetime:D.value},(0,n.toDisplayString)(M.value),9,f)):(0,n.createCommentVNode)(``,!0)]),e.body||r.$slots.default?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,p,[(0,n.renderSlot)(r.$slots,`default`,{},()=>[(0,n.createTextVNode)((0,n.toDisplayString)(e.body),1)])])):(0,n.createCommentVNode)(``,!0)])]),_:3},16,[`class`])),r.$slots.actions?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,m,[(0,n.renderSlot)(r.$slots,`actions`)])):(0,n.createCommentVNode)(``,!0)],2))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./Icon-rREAqsu0.js";
|
|
2
2
|
import { computed as t, createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, defineComponent as s, mergeProps as c, normalizeClass as l, onMounted as u, openBlock as d, ref as f, renderSlot as p, resolveDynamicComponent as m, toDisplayString as h, useSlots as g, withCtx as _ } from "vue";
|
|
3
|
-
import * as v from "@nubisco/ui/icons/
|
|
4
|
-
import * as y from "@nubisco/ui/icons/
|
|
3
|
+
import * as v from "@nubisco/ui/icons/info";
|
|
4
|
+
import * as y from "@nubisco/ui/icons/warning-circle";
|
|
5
5
|
import * as b from "@nubisco/ui/icons/check-circle";
|
|
6
6
|
import * as x from "@nubisco/ui/icons/warning";
|
|
7
7
|
//#region src/components/NotificationCenterItem.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -46,10 +46,10 @@ var S = { class: "nb-notification-item__sr" }, C = {
|
|
|
46
46
|
onClick: J
|
|
47
47
|
} : {}), L = {
|
|
48
48
|
neutral: null,
|
|
49
|
-
info:
|
|
49
|
+
info: v,
|
|
50
50
|
success: b,
|
|
51
51
|
warning: x,
|
|
52
|
-
error:
|
|
52
|
+
error: y
|
|
53
53
|
}, R = t(() => j.variant === "danger" ? "error" : j.variant), z = t(() => j.icon === null ? null : j.icon ?? L[R.value]), B = t(() => !!(z.value || N.media)), V = t(() => {
|
|
54
54
|
if (j.time === void 0 || j.time === null) return null;
|
|
55
55
|
let e = j.time instanceof Date ? j.time : new Date(j.time);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
2
|
import { t } from "./Icon-rREAqsu0.js";
|
|
3
|
-
import { t as n } from "./Label-
|
|
4
|
-
import { t as r } from "./Message-
|
|
3
|
+
import { t as n } from "./Label-CiWiUQ_H.js";
|
|
4
|
+
import { t as r } from "./Message-SQvoXiWl.js";
|
|
5
5
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, onMounted as m, openBlock as h, ref as g, toDisplayString as _, unref as v, useId as y, watch as b, withCtx as x, withKeys as S, withModifiers as C } from "vue";
|
|
6
6
|
import { regular as w } from "@nubisco/ui/icons/plus";
|
|
7
7
|
import { regular as T } from "@nubisco/ui/icons/minus";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Icon-C8R_r_In.cjs`),n=require(`./Label-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Icon-C8R_r_In.cjs`),n=require(`./Label-BIM21I7D.cjs`),r=require(`./Message-DjxOb8mu.cjs`);let i=require(`vue`),a=require(`@nubisco/ui/icons/plus`),o=require(`@nubisco/ui/icons/minus`);var s=[`id`,`placeholder`,`min`,`max`,`step`,`disabled`,`required`],c={class:`nb-number-input__steppers`},l=[`disabled`],u=[`disabled`],d={key:0,class:`nb-number-input__inner-header`},f=[`for`],p={key:0,class:`nb-number-input__asterisk`,"aria-hidden":`true`},m={class:`nb-number-input__fluid-row`},h=[`id`,`placeholder`,`min`,`max`,`step`,`disabled`,`required`],g={class:`nb-number-input__steppers`},_=[`disabled`],v=[`disabled`],y=(0,i.defineComponent)({__name:`NumberInput`,props:{modelValue:{default:null},min:{default:void 0},max:{default:void 0},step:{default:1},placeholder:{default:``},name:{},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`],setup(e,{expose:y,emit:b}){let x=e,S=b,C=(0,i.ref)(null),w=(0,i.ref)(!1),T=`nb-number-input-${(0,i.useId)()}`,E=(0,i.computed)(()=>x.id??T),D=(0,i.computed)(()=>x.min!==void 0&&x.modelValue!==null&&x.modelValue!==void 0&&x.modelValue<=x.min),O=(0,i.computed)(()=>x.max!==void 0&&x.modelValue!==null&&x.modelValue!==void 0&&x.modelValue>=x.max);function k(e){let t=e;return x.min!==void 0&&(t=Math.max(x.min,t)),x.max!==void 0&&(t=Math.min(x.max,t)),t}function A(e){C.value&&(C.value.value=e==null?``:String(e))}(0,i.onMounted)(()=>A(x.modelValue)),(0,i.watch)(()=>x.modelValue,e=>{w.value||A(e)});function j(){let e=k((x.modelValue??0)+x.step);S(`update:modelValue`,e),S(`change`,e),A(e)}function M(){let e=k((x.modelValue??0)-x.step);S(`update:modelValue`,e),S(`change`,e),A(e)}function N(){if(!C.value)return;let e=C.value.value;if(e===``)S(`update:modelValue`,null);else{let t=parseFloat(e);isNaN(t)||S(`update:modelValue`,t)}}function P(){if(w.value=!1,!C.value)return;let e=C.value.value;if(e===``){S(`update:modelValue`,null),S(`change`,null);return}let t=parseFloat(e);if(!isNaN(t)){let e=k(t);S(`update:modelValue`,e),S(`change`,e),A(e)}}let F=(0,i.computed)(()=>[`nb-number-input`,`nb-number-input--${x.variant}`,`nb-number-input--${x.size}`,{"nb-number-input--error":!!x.error,"nb-number-input--warning":!x.error&&!!x.warning,"nb-number-input--disabled":x.disabled}]),I=(0,i.computed)(()=>({"nb-number-input__field-wrapper--focused":w.value,"nb-number-input__field-wrapper--error":!!x.error,"nb-number-input__field-wrapper--warning":!x.error&&!!x.warning,"nb-number-input__field-wrapper--disabled":x.disabled}));return y({focus:()=>C.value?.focus()}),(y,b)=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{class:(0,i.normalizeClass)(F.value)},[e.variant===`default`?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:0},[e.label?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:0,for:E.value,required:e.required,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-number-input__field-wrapper`,I.value])},[(0,i.createElementVNode)(`input`,{id:E.value,ref_key:`inputRef`,ref:C,type:`number`,class:`nb-number-input__field`,placeholder:e.placeholder,min:e.min,max:e.max,step:e.step,disabled:e.disabled,required:e.required,onInput:N,onBlur:P,onKeydown:b[0]||=(0,i.withKeys)((0,i.withModifiers)(()=>C.value?.blur(),[`prevent`]),[`enter`]),onFocus:b[1]||=e=>w.value=!0},null,40,s),e.error?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,variant:`error`,"icon-only":!0,class:`nb-number-input__status`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:1,variant:`warning`,"icon-only":!0,class:`nb-number-input__status`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,c,[(0,i.createElementVNode)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":D.value}]),disabled:e.disabled,"aria-label":`Decrease`,onMousedown:b[2]||=(0,i.withModifiers)(()=>{},[`prevent`]),onClick:M},[(0,i.createVNode)(t.t,{name:(0,i.unref)(o.regular),size:16},null,8,[`name`])],42,l),(0,i.createElementVNode)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":O.value}]),disabled:e.disabled,"aria-label":`Increase`,onMousedown:b[3]||=(0,i.withModifiers)(()=>{},[`prevent`]),onClick:j},[(0,i.createVNode)(t.t,{name:(0,i.unref)(a.regular),size:16},null,8,[`name`])],42,u)])],2),e.error?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:1,variant:`error`,class:`nb-number-input__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:2,variant:`warning`,class:`nb-number-input__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):e.helper?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:3,variant:`helper`,class:`nb-number-input__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.helper),1)]),_:1})):(0,i.createCommentVNode)(``,!0)],64)):e.variant===`fluid`?((0,i.openBlock)(),(0,i.createElementBlock)(i.Fragment,{key:1},[(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-number-input__field-wrapper`,I.value])},[e.label?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,d,[(0,i.createElementVNode)(`label`,{for:E.value,class:`nb-number-input__inner-label`},[(0,i.createTextVNode)((0,i.toDisplayString)(e.label)+` `,1),e.required?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,p,`*`)):(0,i.createCommentVNode)(``,!0)],8,f),e.helper&&!e.error&&!e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,variant:`helper`,"icon-only":!0,class:`nb-number-input__inner-message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.helper),1)]),_:1})):(0,i.createCommentVNode)(``,!0)])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,m,[(0,i.createElementVNode)(`input`,{id:E.value,ref_key:`inputRef`,ref:C,type:`number`,class:`nb-number-input__field`,placeholder:e.placeholder,min:e.min,max:e.max,step:e.step,disabled:e.disabled,required:e.required,onInput:N,onBlur:P,onKeydown:b[4]||=(0,i.withKeys)((0,i.withModifiers)(()=>C.value?.blur(),[`prevent`]),[`enter`]),onFocus:b[5]||=e=>w.value=!0},null,40,h),e.error?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,variant:`error`,"icon-only":!0,class:`nb-number-input__status`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:1,variant:`warning`,"icon-only":!0,class:`nb-number-input__status`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,g,[(0,i.createElementVNode)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":D.value}]),disabled:e.disabled,"aria-label":`Decrease`,onMousedown:b[6]||=(0,i.withModifiers)(()=>{},[`prevent`]),onClick:M},[(0,i.createVNode)(t.t,{name:(0,i.unref)(o.regular),size:16},null,8,[`name`])],42,_),(0,i.createElementVNode)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":O.value}]),disabled:e.disabled,"aria-label":`Increase`,onMousedown:b[7]||=(0,i.withModifiers)(()=>{},[`prevent`]),onClick:j},[(0,i.createVNode)(t.t,{name:(0,i.unref)(a.regular),size:16},null,8,[`name`])],42,v)])])],2),e.error?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:0,variant:`error`,class:`nb-number-input__fluid-message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:1,variant:`warning`,class:`nb-number-input__fluid-message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):(0,i.createCommentVNode)(``,!0)],64)):(0,i.createCommentVNode)(``,!0)],2))}}),b=e.t(y,[[`__scopeId`,`data-v-89630543`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Size.d-GBIblj2D.cjs`),r=require(`./Button-
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Size.d-GBIblj2D.cjs`),r=require(`./Button-S8xZ0EGV.cjs`),i=require(`./Select-BjPXJHru.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/caret-right`);o=e.n(o);let s=require(`@nubisco/ui/icons/caret-left`);s=e.n(s);var c={class:`nb-pagination__left`},l={class:`nb-pagination__page-size`},u={class:`nb-pagination__label`},d={class:`nb-pagination__range`,"aria-live":`polite`},f={class:`nb-pagination__right`},p={class:`nb-pagination__page-of`},m=(0,a.defineComponent)({__name:`Pagination`,props:{page:{},pageSize:{},total:{},pageSizeOptions:{default:()=>[10,20,30,40,50]},size:{default:n.r.Medium},disabled:{type:Boolean,default:!1},pageSizeLabel:{default:`Items per page:`},itemLabel:{default:`items`}},emits:[`update:page`,`update:pageSize`],setup(e,{emit:t}){let n=e,m=t,h=(0,a.computed)(()=>n.size),g=(0,a.computed)(()=>n.pageSizeOptions.includes(n.pageSize)?n.pageSizeOptions:[...n.pageSizeOptions,n.pageSize].sort((e,t)=>e-t)),_=(0,a.computed)(()=>g.value.map(e=>({label:String(e),value:e}))),v=(0,a.computed)(()=>Math.max(1,Math.ceil(n.total/Math.max(1,n.pageSize)))),y=(0,a.computed)(()=>Math.min(Math.max(1,n.page),v.value)),b=(0,a.computed)(()=>n.total===0?0:(y.value-1)*n.pageSize+1),x=(0,a.computed)(()=>Math.min(y.value*n.pageSize,n.total));function S(e){let t=Math.min(Math.max(1,e),v.value);t!==n.page&&m(`update:page`,t)}function C(e){let t=Number(e);!Number.isFinite(t)||t===n.pageSize||(m(`update:pageSize`,t),n.page!==1&&m(`update:page`,1))}return(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`nav`,{class:(0,a.normalizeClass)([`nb-pagination`,`nb-pagination--${e.size}`]),"aria-label":`Pagination`},[(0,a.createElementVNode)(`div`,c,[(0,a.createElementVNode)(`label`,l,[(0,a.createElementVNode)(`span`,u,(0,a.toDisplayString)(e.pageSizeLabel),1),(0,a.createVNode)(i.t,{size:`xs`,"model-value":e.pageSize,options:_.value,disabled:e.disabled,"onUpdate:modelValue":C},null,8,[`model-value`,`options`,`disabled`])]),(0,a.createElementVNode)(`span`,d,(0,a.toDisplayString)(b.value)+`–`+(0,a.toDisplayString)(x.value)+` of `+(0,a.toDisplayString)(e.total)+` `+(0,a.toDisplayString)(e.itemLabel),1)]),(0,a.createElementVNode)(`div`,f,[(0,a.createElementVNode)(`span`,p,` Page `+(0,a.toDisplayString)(y.value)+` of `+(0,a.toDisplayString)(v.value),1),(0,a.createVNode)(r.t,{class:`nb-pagination__nav`,variant:`ghost`,size:h.value,icon:s,disabled:e.disabled||y.value<=1,"aria-label":`Previous page`,onClick:n[0]||=e=>S(y.value-1)},null,8,[`size`,`disabled`]),(0,a.createVNode)(r.t,{class:`nb-pagination__nav`,variant:`ghost`,size:h.value,icon:o,disabled:e.disabled||y.value>=v.value,"aria-label":`Next page`,onClick:n[1]||=e=>S(y.value+1)},null,8,[`size`,`disabled`])])],2))}}),h=t.t(m,[[`__scopeId`,`data-v-884e19f9`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
2
|
import { r as t } from "./Size.d-Bah6vMl3.js";
|
|
3
|
-
import { t as n } from "./Button-
|
|
4
|
-
import { t as r } from "./Select-
|
|
3
|
+
import { t as n } from "./Button-CV2mm5ZB.js";
|
|
4
|
+
import { t as r } from "./Select-BqVTogW-.js";
|
|
5
5
|
import { computed as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, toDisplayString as d } from "vue";
|
|
6
6
|
import * as f from "@nubisco/ui/icons/caret-right";
|
|
7
7
|
import * as p from "@nubisco/ui/icons/caret-left";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { i as t, l as n, n as r, u as i } from "./palette-
|
|
3
|
-
import { t as a } from "./ChartLegend-
|
|
4
|
-
import { t as o } from "./useChartSize-
|
|
2
|
+
import { i as t, l as n, n as r, u as i } from "./palette-CS95-prq.js";
|
|
3
|
+
import { t as a } from "./ChartLegend-ywCoTUbO.js";
|
|
4
|
+
import { t as o } from "./useChartSize-CBOK3yq5.js";
|
|
5
5
|
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, getCurrentInstance as h, normalizeClass as g, normalizeStyle as _, openBlock as v, ref as y, renderList as b, toDisplayString as x, unref as S, withCtx as C } from "vue";
|
|
6
6
|
//#region src/components/Charts/PieChart.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var w = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./palette-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./palette-BW0RLn76.cjs`),n=require(`./ChartLegend-O2SYdHsd.cjs`),r=require(`./useChartSize-BPqvq1te.cjs`);let i=require(`vue`);var a=[`width`,`height`,`role`,`aria-label`],o=[`transform`],s=[`d`,`fill`,`tabindex`,`role`,`aria-label`,`onMouseenter`,`onClick`,`onKeydown`],c=[`x`,`y`],l=(0,i.defineComponent)({__name:`PieChart`,props:{data:{default:()=>[]},innerRadius:{default:0},labels:{default:`percent`},title:{default:void 0},subtitle:{default:void 0},height:{default:280},showLegend:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},colors:{default:()=>t.n}},emits:[`select`],setup(e,{emit:l}){let u=e,d=l,f=(0,i.getCurrentInstance)(),p=()=>!!f?.vnode.props?.onSelect,m=e=>{if(!p())return;let t=u.data[e];t&&d(`select`,{kind:`categorical`,label:t.label,value:t.value,index:e,datum:t})},h=(e,t)=>{p()&&(e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),m(t)))},g=(0,i.ref)(null),_=r.t(g,{width:280,height:240}),v=(0,i.computed)(()=>u.data.map((e,n)=>({label:e.label,value:e.value,color:e.color??t.i(n,u.colors)}))),y=(0,i.computed)(()=>v.value.reduce((e,t)=>e+Math.max(0,t.value),0)),b=(0,i.computed)(()=>_.value.width/2),x=(0,i.computed)(()=>_.value.height/2),S=(0,i.computed)(()=>Math.max(0,Math.min(_.value.width,_.value.height)/2-8)),C=(0,i.computed)(()=>Math.max(0,Math.min(.95,u.innerRadius))*S.value),w=(0,i.computed)(()=>{if(!y.value)return[];let e=-Math.PI/2,t=[];for(let n=0;n<v.value.length;n++){let r=v.value[n],i=Math.max(0,r.value)/y.value,a=e,o=e+i*Math.PI*2;e=o;let s=T(a,o,C.value,S.value),c=(a+o)/2,l=C.value>0?(C.value+S.value)/2:S.value*.65,d=Math.cos(c)*l,f=Math.sin(c)*l,p=u.labels===`percent`?`${Math.round(i*100)}%`:u.labels===`value`?String(r.value):``;t.push({path:s,color:r.color,labelX:d,labelY:f,labelText:p,labelColor:`var(--nb-c-white)`,startAngle:a,endAngle:o,value:r.value,label:r.label})}return t}),T=(e,t,n,r)=>{if(Math.abs(t-e)>=Math.PI*2-1e-6){let e=`M ${r} 0 A ${r} ${r} 0 1 1 ${-r} 0 A ${r} ${r} 0 1 1 ${r} 0 Z`;return n<=0?e:`${e} ${`M ${n} 0 A ${n} ${n} 0 1 0 ${-n} 0 A ${n} ${n} 0 1 0 ${n} 0 Z`}`}let i=Math.cos(e)*r,a=Math.sin(e)*r,o=Math.cos(t)*r,s=Math.sin(t)*r,c=t-e>Math.PI?1:0;if(n<=0)return`M 0 0 L ${i} ${a} A ${r} ${r} 0 ${c} 1 ${o} ${s} Z`;let l=Math.cos(t)*n,u=Math.sin(t)*n,d=Math.cos(e)*n,f=Math.sin(e)*n;return[`M ${i} ${a}`,`A ${r} ${r} 0 ${c} 1 ${o} ${s}`,`L ${l} ${u}`,`A ${n} ${n} 0 ${c} 0 ${d} ${f}`,`Z`].join(` `)},E=(0,i.ref)(null),D=(0,i.ref)({x:0,y:0}),O=e=>{let t=e.currentTarget.ownerSVGElement;if(!t)return;let n=t.getBoundingClientRect();D.value={x:e.clientX-n.left+12,y:e.clientY-n.top+12}},k=(0,i.computed)(()=>{if(E.value===null)return[];let e=w.value[E.value];if(!e)return[];let t=y.value?Math.round(e.value/y.value*100):0;return[{label:e.label,value:`${e.value} (${t}%)`,color:e.color}]});return(r,l)=>((0,i.openBlock)(),(0,i.createBlock)(t.u,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&v.value.length>0},{legend:(0,i.withCtx)(()=>[(0,i.createVNode)(n.t,{items:v.value.map(e=>({label:e.label,color:e.color}))},null,8,[`items`])]),default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`div`,{ref_key:`root`,ref:g,class:`nb-pie-chart`},[((0,i.openBlock)(),(0,i.createElementBlock)(`svg`,{width:(0,i.unref)(_).width,height:(0,i.unref)(_).height,class:(0,i.normalizeClass)([`nb-chart__svg`,{"nb-chart__svg--selectable":p()}]),role:p()?`group`:`img`,"aria-label":e.title||`Pie chart`,onMouseleave:l[1]||=e=>E.value=null},[(0,i.createElementVNode)(`g`,{transform:`translate(${b.value}, ${x.value})`},[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(w.value,(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)(`path`,{key:`slice-${t}`,class:(0,i.normalizeClass)([`nb-chart__slice`,{"is-dim":E.value!==null&&E.value!==t}]),d:e.path,fill:e.color,tabindex:p()?0:void 0,role:p()?`button`:void 0,"aria-label":p()?`${e.label}: ${e.value}`:void 0,onMouseenter:e=>E.value=t,onMousemove:l[0]||=e=>O(e),onClick:e=>m(t),onKeydown:e=>h(e,t)},null,42,s))),128)),e.labels===`none`?(0,i.createCommentVNode)(``,!0):((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,{key:0},(0,i.renderList)(w.value,(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)(`text`,{key:`lab-${t}`,class:`nb-chart__slice-label`,x:e.labelX,y:e.labelY,"text-anchor":`middle`,"dominant-baseline":`middle`,style:(0,i.normalizeStyle)({fill:e.labelColor})},(0,i.toDisplayString)(e.labelText),13,c))),128))],8,o)],42,a)),(0,i.createVNode)(t.l,{visible:e.showTooltip&&E.value!==null,x:D.value.x,y:D.value.y,rows:k.value},null,8,[`visible`,`x`,`y`,`rows`])],512)]),_:1},8,[`title`,`subtitle`,`height`,`show-legend`]))}}),u=e.t(l,[[`__scopeId`,`data-v-f68902ef`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
2
|
import { t } from "./Icon-rREAqsu0.js";
|
|
3
|
-
import { t as n } from "./Label-
|
|
4
|
-
import { n as r, t as i } from "./Message-
|
|
3
|
+
import { t as n } from "./Label-CiWiUQ_H.js";
|
|
4
|
+
import { n as r, t as i } from "./Message-SQvoXiWl.js";
|
|
5
5
|
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, normalizeClass as p, normalizeStyle as m, openBlock as h, toDisplayString as g, withCtx as _ } from "vue";
|
|
6
6
|
import * as v from "@nubisco/ui/icons/warning-circle";
|
|
7
7
|
import * as y from "@nubisco/ui/icons/check-circle";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Label-
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Label-BIM21I7D.cjs`),i=require(`./Message-DjxOb8mu.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/warning-circle`);o=e.n(o);let s=require(`@nubisco/ui/icons/check-circle`);s=e.n(s);var c=function(e){return e.Small=`sm`,e.Medium=`md`,e}(c||{}),l=function(e){return e.Active=`active`,e.Finished=`finished`,e.Error=`error`,e}(l||{}),u={key:0,class:`nb-progress-bar__header`},d=[`aria-label`,`aria-valuemax`,`aria-valuenow`],f=(0,a.defineComponent)({__name:`ProgressBar`,props:{value:{default:void 0},max:{default:100},helper:{default:void 0},size:{default:c.Medium},status:{default:l.Active},id:{default:`progress-bar`},label:{}},setup(e){let t=e,c=(0,a.computed)(()=>t.value==null&&t.status===l.Active),f=(0,a.computed)(()=>t.status===l.Active?t.value==null||t.max<=0?0:Math.min(Math.max(t.value/t.max,0),1):1),p=(0,a.computed)(()=>c.value?void 0:f.value*t.max),m=(0,a.computed)(()=>[`nb-progress-bar`,`nb-progress-bar--${t.size}`,`nb-progress-bar--${t.status}`,{"nb-progress-bar--indeterminate":c.value}]),h=(0,a.computed)(()=>({transform:`scaleX(${f.value})`})),g=(0,a.computed)(()=>t.status===l.Finished?s:t.status===l.Error?o:null),_=(0,a.computed)(()=>t.status===l.Error?i.n.Error:i.n.Helper);return(t,o)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)(m.value)},[e.label?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,u,[(0,a.createVNode)(r.t,null,{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)]),_:1}),g.value?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:g.value,size:14,class:`nb-progress-bar__status-icon`},null,8,[`name`])):(0,a.createCommentVNode)(``,!0)])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`div`,{class:`nb-progress-bar__track`,role:`progressbar`,"aria-label":e.label,"aria-valuemin":`0`,"aria-valuemax":e.max,"aria-valuenow":p.value},[(0,a.createElementVNode)(`div`,{class:`nb-progress-bar__bar`,style:(0,a.normalizeStyle)(h.value)},null,4)],8,d),e.helper?((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:1,variant:_.value,class:`nb-progress-bar__message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.helper),1)]),_:1},8,[`variant`])):(0,a.createCommentVNode)(``,!0)],2))}}),p=t.t(f,[[`__scopeId`,`data-v-5c8dd315`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Label-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Label-BIM21I7D.cjs`),n=require(`./Message-DjxOb8mu.cjs`);let r=require(`vue`);var i=function(e){return e.Horizontal=`horizontal`,e.Vertical=`vertical`,e}(i||{}),a={class:`nb-radio__control`},o=[`name`,`value`,`checked`,`disabled`,`readonly`,`onChange`],s={class:`nb-radio__circle`},c={key:0,class:`nb-radio__dot`},l={class:`nb-radio__text`},u=(0,r.defineComponent)({__name:`Radio`,props:{modelValue:{},options:{},name:{},direction:{default:i.Vertical},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:`radio`},label:{},error:{default:void 0},warning:{default:void 0},helper:{default:void 0}},emits:[`update:modelValue`],setup(e){let i=e,u=(0,r.computed)(()=>[`nb-radio`,{"nb-radio--error":!!i.error,"nb-radio--warning":!i.error&&!!i.warning,"nb-radio--disabled":i.disabled,"nb-radio--readonly":i.readonly}]);function d(e){return[`nb-radio__option`,{"nb-radio__option--disabled":i.disabled||e.disabled,"nb-radio__option--readonly":i.readonly}]}return(i,f)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{class:(0,r.normalizeClass)(u.value)},[e.label?((0,r.openBlock)(),(0,r.createBlock)(t.t,{key:0},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.label),1)]),_:1})):(0,r.createCommentVNode)(``,!0),(0,r.createElementVNode)(`div`,{class:(0,r.normalizeClass)([`nb-radio__group`,`nb-radio__group--${e.direction}`])},[((0,r.openBlock)(!0),(0,r.createElementBlock)(r.Fragment,null,(0,r.renderList)(e.options,t=>((0,r.openBlock)(),(0,r.createElementBlock)(`label`,{key:t.value,class:(0,r.normalizeClass)(d(t))},[(0,r.createElementVNode)(`span`,a,[(0,r.createElementVNode)(`input`,{type:`radio`,name:e.name,value:t.value,checked:e.modelValue===t.value,disabled:e.disabled||t.disabled,readonly:e.readonly,class:`nb-radio__input`,onChange:n=>!e.readonly&&i.$emit(`update:modelValue`,t.value)},null,40,o),(0,r.createElementVNode)(`span`,s,[e.modelValue===t.value?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,c)):(0,r.createCommentVNode)(``,!0)])]),(0,r.createElementVNode)(`span`,l,(0,r.toDisplayString)(t.label),1)],2))),128))],2),e.error?((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:1,variant:`error`,class:`nb-radio__message`},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:2,variant:`warning`,class:`nb-radio__message`},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.warning),1)]),_:1})):e.helper?((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:3,variant:`helper`,class:`nb-radio__message`},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.helper),1)]),_:1})):(0,r.createCommentVNode)(``,!0)],2))}}),d=e.t(u,[[`__scopeId`,`data-v-e4a0c524`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { t } from "./Label-
|
|
3
|
-
import { t as n } from "./Message-
|
|
2
|
+
import { t } from "./Label-CiWiUQ_H.js";
|
|
3
|
+
import { t as n } from "./Message-SQvoXiWl.js";
|
|
4
4
|
import { Fragment as r, computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createTextVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, renderList as p, toDisplayString as m, withCtx as h } from "vue";
|
|
5
5
|
//#region src/components/Radio.d.ts
|
|
6
6
|
var g = /* @__PURE__ */ function(e) {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Icon-C8R_r_In.cjs`),t=require(`./Label-BIM21I7D.cjs`),n=require(`./Message-DjxOb8mu.cjs`),r=require(`./Grid-HifmWSUS.cjs`),i=require(`./composables/useMenuSurface.composable.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/caret-down`),s=require(`@nubisco/ui/icons/caret-up`);var c=[`id`,`aria-expanded`,`aria-disabled`,`aria-required`,`disabled`],l=[`id`,`aria-expanded`,`aria-disabled`,`aria-required`,`disabled`],u={key:1,class:`nb-select__inner-label`},d={key:0,class:`nb-select__asterisk`,"aria-hidden":`true`},f=[`aria-multiselectable`],p=[`aria-selected`,`aria-disabled`,`onMouseenter`,`onClick`],m={key:0,class:`nb-select__option-check`,"aria-hidden":`true`},h={key:0,viewBox:`0 0 10 8`,fill:`none`,width:`10`,height:`8`},g={class:`nb-select__option-label`},_={key:0,class:`nb-select__empty`},v=[`placeholder`,`onKeydown`],y=(0,a.defineComponent)({__name:`Select`,props:{modelValue:{default:null},options:{default:()=>[]},multiple:{type:Boolean,default:!1},creatable:{type:Boolean,default:!1},createPlaceholder:{default:``},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(y,{expose:b,emit:x}){let S=y,C=x,w=(0,a.ref)(``);function T(){let e=w.value.trim();e&&(C(`create`,e),w.value=``)}let E=(0,a.ref)(!1),D=(0,a.ref)(!1),O=(0,a.ref)(-1),k=(0,a.ref)(null),A=(0,a.ref)(null),j=(0,a.ref)(null);i.useMenuSurface(j);let M=(0,a.ref)({position:`fixed`,top:`0px`,left:`0px`,width:`0px`,zIndex:`9999`}),N=`nb-select-${(0,a.useId)()}`,P=(0,a.computed)(()=>S.id??N),F=(0,a.computed)(()=>S.modelValue==null?[]:Array.isArray(S.modelValue)?S.modelValue:[S.modelValue]),I=(0,a.computed)(()=>{if(!(S.multiple||F.value.length!==1))return(S.options??[]).find(e=>e.value===F.value[0])?.icon}),L=(0,a.computed)(()=>{if(F.value.length===0)return``;let e=S.options??[];return S.multiple?F.value.length===1?e.find(e=>e.value===F.value[0])?.label??String(F.value[0]):F.value.length===2?F.value.map(t=>e.find(e=>e.value===t)?.label??String(t)).join(`, `):`${F.value.length} selected`:e.find(e=>e.value===F.value[0])?.label??String(F.value[0])});function R(e){return F.value.includes(e)}function z(e){if(e.disabled)return;let t;if(S.multiple){let n=[...F.value],r=n.indexOf(e.value);r>=0?n.splice(r,1):n.push(e.value),t=n}else t=e.value,H();C(`update:modelValue`,t),C(`change`,t)}function B(){if(!A.value)return;let e=A.value.getBoundingClientRect(),t=j.value?.offsetHeight??0,n=window.innerHeight-e.bottom,r=e.top;M.value={position:`fixed`,top:t>0&&n<t&&r>n?`${e.top-t}px`:`${e.bottom}px`,left:`${e.left}px`,width:`${e.width}px`,zIndex:`9999`}}function V(){if(S.disabled)return;E.value=!0,B();let e=S.options??[];O.value=F.value.length>0?Math.max(0,e.findIndex(e=>e.value===F.value[0])):-1,(0,a.nextTick)(()=>{B(),q()})}function H(){E.value=!1,O.value=-1}function U(){E.value?H():V()}function W(e){let t=e.target,n=k.value?.contains(t)??!1,r=j.value?.contains(t)??!1;!n&&!r&&H()}function G(){E.value&&B()}(0,a.watch)(E,e=>{e?(document.addEventListener(`mousedown`,W),window.addEventListener(`scroll`,G,!0),window.addEventListener(`resize`,G)):(document.removeEventListener(`mousedown`,W),window.removeEventListener(`scroll`,G,!0),window.removeEventListener(`resize`,G))}),(0,a.onBeforeUnmount)(()=>{document.removeEventListener(`mousedown`,W),window.removeEventListener(`scroll`,G,!0),window.removeEventListener(`resize`,G)});function K(e){let t=S.options??[];if(!E.value){(e.key===`Enter`||e.key===` `||e.key===`ArrowDown`)&&(e.preventDefault(),V());return}e.key===`Escape`?(H(),e.preventDefault()):e.key===`Tab`?H():e.key===`ArrowDown`?(e.preventDefault(),O.value=Math.min(O.value+1,t.length-1),q()):e.key===`ArrowUp`?(e.preventDefault(),O.value=Math.max(O.value-1,0),q()):(e.key===`Enter`||e.key===` `)&&O.value>=0&&(e.preventDefault(),z(t[O.value]))}function q(){(0,a.nextTick)(()=>{!j.value||O.value<0||j.value.querySelectorAll(`.nb-select__option`)[O.value]?.scrollIntoView({block:`nearest`})})}let J=(0,a.computed)(()=>[`nb-select`,`nb-select--${S.variant}`,`nb-select--${S.size}`,{"nb-select--open":E.value,"nb-select--focused":D.value&&!E.value,"nb-select--error":!!S.error,"nb-select--warning":!S.error&&!!S.warning,"nb-select--multiple":S.multiple}]);return b({open:V,close:H}),(i,b)=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)(`div`,{ref_key:`rootRef`,ref:k,class:(0,a.normalizeClass)(J.value),onKeydown:K},[y.variant===`default`?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[i.$slots.label?(0,a.renderSlot)(i.$slots,`label`,{key:0}):y.label?((0,a.openBlock)(),(0,a.createBlock)(t.t,{key:1,for:P.value,required:y.required,disabled:y.disabled},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`button`,{id:P.value,ref_key:`triggerRef`,ref:A,type:`button`,class:`nb-select__trigger`,role:`combobox`,"aria-expanded":E.value,"aria-haspopup":`listbox`,"aria-disabled":y.disabled||void 0,"aria-required":y.required||void 0,disabled:y.disabled||void 0,onClick:U,onFocus:b[0]||=e=>D.value=!0,onBlur:b[1]||=e=>D.value=!1},[(0,a.createElementVNode)(`span`,{class:(0,a.normalizeClass)([`nb-select__value`,{"nb-select__value--placeholder":!L.value,"nb-select__value--with-icon":!!I.value}])},[I.value?((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:0,class:`nb-select__value-icon`,name:I.value,size:16},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),L.value?(0,a.renderSlot)(i.$slots,`value`,{key:1,values:F.value},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(L.value),1)]):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createTextVNode)((0,a.toDisplayString)(y.placeholder),1)],64))],2),y.error?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,variant:`error`,"icon-only":!0,class:`nb-select__status-icon`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.error),1)]),_:1})):y.warning?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:1,variant:`warning`,"icon-only":!0,class:`nb-select__status-icon`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.warning),1)]),_:1})):(0,a.createCommentVNode)(``,!0),(0,a.createVNode)(r.t,{align:`center`,justify:`center`,class:`nb-select__caret`},{default:(0,a.withCtx)(()=>[(0,a.createVNode)(e.t,{name:E.value?(0,a.unref)(s.regular):(0,a.unref)(o.regular),size:16},null,8,[`name`])]),_:1})],40,c),y.error?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:2,variant:`error`,class:`nb-select__message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.error),1)]),_:1})):y.warning?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:3,variant:`warning`,class:`nb-select__message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.warning),1)]),_:1})):y.helper?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:4,variant:`helper`,class:`nb-select__message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.helper),1)]),_:1})):(0,a.createCommentVNode)(``,!0)],64)):y.variant===`fluid`?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createElementVNode)(`button`,{id:P.value,ref_key:`triggerRef`,ref:A,type:`button`,class:`nb-select__trigger`,role:`combobox`,"aria-expanded":E.value,"aria-haspopup":`listbox`,"aria-disabled":y.disabled||void 0,"aria-required":y.required||void 0,disabled:y.disabled||void 0,onClick:U,onFocus:b[2]||=e=>D.value=!0,onBlur:b[3]||=e=>D.value=!1},[y.label||i.$slots.label?((0,a.openBlock)(),(0,a.createBlock)(r.t,{key:0,dir:`row`,align:`center`,gap:`xs`,class:`nb-select__inner-header`},{default:(0,a.withCtx)(()=>[i.$slots.label?(0,a.renderSlot)(i.$slots,`label`,{key:0}):((0,a.openBlock)(),(0,a.createElementBlock)(`label`,u,[(0,a.createTextVNode)((0,a.toDisplayString)(y.label)+` `,1),y.required?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,d,`*`)):(0,a.createCommentVNode)(``,!0)])),y.helper&&!y.error&&!y.warning?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:2,variant:`helper`,"icon-only":!0,class:`nb-select__inner-message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.helper),1)]),_:1})):(0,a.createCommentVNode)(``,!0)]),_:3})):(0,a.createCommentVNode)(``,!0),(0,a.createVNode)(r.t,{dir:`row`,align:`end`,flex:``,class:`nb-select__value-row`},{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`span`,{class:(0,a.normalizeClass)([`nb-select__value`,{"nb-select__value--placeholder":!L.value,"nb-select__value--with-icon":!!I.value}])},[I.value?((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:0,class:`nb-select__value-icon`,name:I.value,size:16},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),L.value?(0,a.renderSlot)(i.$slots,`value`,{key:1,values:F.value},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(L.value),1)]):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createTextVNode)((0,a.toDisplayString)(y.placeholder),1)],64))],2),(0,a.createVNode)(r.t,{align:`center`,justify:`center`,class:`nb-select__caret`},{default:(0,a.withCtx)(()=>[(0,a.createVNode)(e.t,{name:E.value?(0,a.unref)(s.regular):(0,a.unref)(o.regular),size:16},null,8,[`name`])]),_:1})]),_:3})],40,l),y.error?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,variant:`error`,class:`nb-select__fluid-message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.error),1)]),_:1})):y.warning?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:1,variant:`warning`,class:`nb-select__fluid-message`},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(y.warning),1)]),_:1})):(0,a.createCommentVNode)(``,!0)],64)):(0,a.createCommentVNode)(``,!0)],34),((0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:`body`},[E.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,ref_key:`dropdownRef`,ref:j,class:`nb-select__dropdown`,style:(0,a.normalizeStyle)(M.value),role:`listbox`,"aria-multiselectable":y.multiple||void 0},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(y.options,(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:t.value,class:(0,a.normalizeClass)([`nb-select__option`,{"nb-select__option--selected":R(t.value),"nb-select__option--highlighted":O.value===n,"nb-select__option--disabled":t.disabled}]),role:`option`,"aria-selected":R(t.value),"aria-disabled":t.disabled||void 0,onMouseenter:e=>O.value=n,onClick:e=>z(t)},[y.multiple?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,m,[R(t.value)?((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,h,[...b[7]||=[(0,a.createElementVNode)(`path`,{d:`M1 4l3 3 5-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])):(0,a.createCommentVNode)(``,!0)])):(0,a.createCommentVNode)(``,!0),t.icon?((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:1,class:`nb-select__option-icon`,name:t.icon,size:16},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`span`,g,[(0,a.renderSlot)(i.$slots,`option`,{option:t},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.label),1)])])],42,p))),128)),!y.options||y.options.length===0?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,_,` No options `)):(0,a.createCommentVNode)(``,!0),y.creatable?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:1,class:`nb-select__create`,onMousedown:b[6]||=(0,a.withModifiers)(()=>{},[`prevent`])},[(0,a.withDirectives)((0,a.createElementVNode)(`input`,{"onUpdate:modelValue":b[4]||=e=>w.value=e,type:`text`,class:`nb-select__create-input`,placeholder:y.createPlaceholder||`Add new…`,onKeydown:[(0,a.withKeys)((0,a.withModifiers)(T,[`prevent`]),[`enter`]),b[5]||=(0,a.withModifiers)(()=>{},[`stop`])]},null,40,v),[[a.vModelText,w.value]])],32)):(0,a.createCommentVNode)(``,!0)],12,f)):(0,a.createCommentVNode)(``,!0)]))],64))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return y}});
|
|
@@ -1,46 +1,47 @@
|
|
|
1
1
|
import { t as e } from "./Icon-rREAqsu0.js";
|
|
2
|
-
import { t } from "./Label-
|
|
3
|
-
import { t as n } from "./Message-
|
|
4
|
-
import { t as r } from "./Grid-
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import { regular as
|
|
2
|
+
import { t } from "./Label-CiWiUQ_H.js";
|
|
3
|
+
import { t as n } from "./Message-SQvoXiWl.js";
|
|
4
|
+
import { t as r } from "./Grid-DA2jibMM.js";
|
|
5
|
+
import { useMenuSurface as i } from "./composables/useMenuSurface.composable.mjs";
|
|
6
|
+
import { Fragment as a, Teleport as ee, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, nextTick as m, normalizeClass as h, normalizeStyle as te, onBeforeUnmount as ne, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, unref as x, useId as re, vModelText as ie, watch as ae, withCtx as S, withDirectives as oe, withKeys as se, withModifiers as C } from "vue";
|
|
7
|
+
import { regular as w } from "@nubisco/ui/icons/caret-down";
|
|
8
|
+
import { regular as T } from "@nubisco/ui/icons/caret-up";
|
|
8
9
|
//#region src/components/Select.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
10
|
+
var ce = [
|
|
10
11
|
"id",
|
|
11
12
|
"aria-expanded",
|
|
12
13
|
"aria-disabled",
|
|
13
14
|
"aria-required",
|
|
14
15
|
"disabled"
|
|
15
|
-
],
|
|
16
|
+
], le = [
|
|
16
17
|
"id",
|
|
17
18
|
"aria-expanded",
|
|
18
19
|
"aria-disabled",
|
|
19
20
|
"aria-required",
|
|
20
21
|
"disabled"
|
|
21
|
-
],
|
|
22
|
+
], ue = {
|
|
22
23
|
key: 1,
|
|
23
24
|
class: "nb-select__inner-label"
|
|
24
|
-
},
|
|
25
|
+
}, de = {
|
|
25
26
|
key: 0,
|
|
26
27
|
class: "nb-select__asterisk",
|
|
27
28
|
"aria-hidden": "true"
|
|
28
|
-
},
|
|
29
|
+
}, fe = ["aria-multiselectable"], pe = [
|
|
29
30
|
"aria-selected",
|
|
30
31
|
"aria-disabled",
|
|
31
32
|
"onMouseenter",
|
|
32
33
|
"onClick"
|
|
33
|
-
],
|
|
34
|
+
], me = {
|
|
34
35
|
key: 0,
|
|
35
36
|
class: "nb-select__option-check",
|
|
36
37
|
"aria-hidden": "true"
|
|
37
|
-
},
|
|
38
|
+
}, he = {
|
|
38
39
|
key: 0,
|
|
39
40
|
viewBox: "0 0 10 8",
|
|
40
41
|
fill: "none",
|
|
41
42
|
width: "10",
|
|
42
43
|
height: "8"
|
|
43
|
-
},
|
|
44
|
+
}, E = { class: "nb-select__option-label" }, D = {
|
|
44
45
|
key: 0,
|
|
45
46
|
class: "nb-select__empty"
|
|
46
47
|
}, O = ["placeholder", "onKeydown"], k = /* @__PURE__ */ p({
|
|
@@ -81,18 +82,20 @@ var oe = [
|
|
|
81
82
|
"create"
|
|
82
83
|
],
|
|
83
84
|
setup(p, { expose: k, emit: A }) {
|
|
84
|
-
let j = p, M = A, N =
|
|
85
|
-
function
|
|
85
|
+
let j = p, M = A, N = _("");
|
|
86
|
+
function ge() {
|
|
86
87
|
let e = N.value.trim();
|
|
87
88
|
e && (M("create", e), N.value = "");
|
|
88
89
|
}
|
|
89
|
-
let P =
|
|
90
|
+
let P = _(!1), F = _(!1), I = _(-1), L = _(null), R = _(null), z = _(null);
|
|
91
|
+
i(z);
|
|
92
|
+
let B = _({
|
|
90
93
|
position: "fixed",
|
|
91
94
|
top: "0px",
|
|
92
95
|
left: "0px",
|
|
93
96
|
width: "0px",
|
|
94
97
|
zIndex: "9999"
|
|
95
|
-
}),
|
|
98
|
+
}), _e = `nb-select-${re()}`, V = o(() => j.id ?? _e), H = o(() => j.modelValue == null ? [] : Array.isArray(j.modelValue) ? j.modelValue : [j.modelValue]), U = o(() => {
|
|
96
99
|
if (!(j.multiple || H.value.length !== 1)) return (j.options ?? []).find((e) => e.value === H.value[0])?.icon;
|
|
97
100
|
}), W = o(() => {
|
|
98
101
|
if (H.value.length === 0) return "";
|
|
@@ -143,12 +146,12 @@ var oe = [
|
|
|
143
146
|
function Q() {
|
|
144
147
|
P.value && q();
|
|
145
148
|
}
|
|
146
|
-
|
|
149
|
+
ae(P, (e) => {
|
|
147
150
|
e ? (document.addEventListener("mousedown", Z), window.addEventListener("scroll", Q, !0), window.addEventListener("resize", Q)) : (document.removeEventListener("mousedown", Z), window.removeEventListener("scroll", Q, !0), window.removeEventListener("resize", Q));
|
|
148
|
-
}),
|
|
151
|
+
}), ne(() => {
|
|
149
152
|
document.removeEventListener("mousedown", Z), window.removeEventListener("scroll", Q, !0), window.removeEventListener("resize", Q);
|
|
150
153
|
});
|
|
151
|
-
function
|
|
154
|
+
function ve(e) {
|
|
152
155
|
let t = j.options ?? [];
|
|
153
156
|
if (!P.value) {
|
|
154
157
|
(e.key === "Enter" || e.key === " " || e.key === "ArrowDown") && (e.preventDefault(), J());
|
|
@@ -161,7 +164,7 @@ var oe = [
|
|
|
161
164
|
!z.value || I.value < 0 || z.value.querySelectorAll(".nb-select__option")[I.value]?.scrollIntoView({ block: "nearest" });
|
|
162
165
|
});
|
|
163
166
|
}
|
|
164
|
-
let
|
|
167
|
+
let ye = o(() => [
|
|
165
168
|
"nb-select",
|
|
166
169
|
`nb-select--${j.variant}`,
|
|
167
170
|
`nb-select--${j.size}`,
|
|
@@ -176,19 +179,19 @@ var oe = [
|
|
|
176
179
|
return k({
|
|
177
180
|
open: J,
|
|
178
181
|
close: Y
|
|
179
|
-
}), (
|
|
182
|
+
}), (i, o) => (g(), l(a, null, [u("div", {
|
|
180
183
|
ref_key: "rootRef",
|
|
181
184
|
ref: L,
|
|
182
|
-
class: h(
|
|
183
|
-
onKeydown:
|
|
184
|
-
}, [p.variant === "default" ? (
|
|
185
|
-
|
|
185
|
+
class: h(ye.value),
|
|
186
|
+
onKeydown: ve
|
|
187
|
+
}, [p.variant === "default" ? (g(), l(a, { key: 0 }, [
|
|
188
|
+
i.$slots.label ? y(i.$slots, "label", { key: 0 }) : p.label ? (g(), s(t, {
|
|
186
189
|
key: 1,
|
|
187
190
|
for: V.value,
|
|
188
191
|
required: p.required,
|
|
189
192
|
disabled: p.disabled
|
|
190
193
|
}, {
|
|
191
|
-
default:
|
|
194
|
+
default: S(() => [d(b(p.label), 1)]),
|
|
192
195
|
_: 1
|
|
193
196
|
}, 8, [
|
|
194
197
|
"for",
|
|
@@ -208,36 +211,36 @@ var oe = [
|
|
|
208
211
|
"aria-required": p.required || void 0,
|
|
209
212
|
disabled: p.disabled || void 0,
|
|
210
213
|
onClick: X,
|
|
211
|
-
onFocus:
|
|
212
|
-
onBlur:
|
|
214
|
+
onFocus: o[0] ||= (e) => F.value = !0,
|
|
215
|
+
onBlur: o[1] ||= (e) => F.value = !1
|
|
213
216
|
}, [
|
|
214
217
|
u("span", { class: h(["nb-select__value", {
|
|
215
218
|
"nb-select__value--placeholder": !W.value,
|
|
216
219
|
"nb-select__value--with-icon": !!U.value
|
|
217
|
-
}]) }, [U.value ? (
|
|
220
|
+
}]) }, [U.value ? (g(), s(e, {
|
|
218
221
|
key: 0,
|
|
219
222
|
class: "nb-select__value-icon",
|
|
220
223
|
name: U.value,
|
|
221
224
|
size: 16
|
|
222
|
-
}, null, 8, ["name"])) : c("", !0), W.value ? y(
|
|
225
|
+
}, null, 8, ["name"])) : c("", !0), W.value ? y(i.$slots, "value", {
|
|
223
226
|
key: 1,
|
|
224
227
|
values: H.value
|
|
225
|
-
}, () => [d(b(W.value), 1)]) : (
|
|
226
|
-
p.error ? (
|
|
228
|
+
}, () => [d(b(W.value), 1)]) : (g(), l(a, { key: 2 }, [d(b(p.placeholder), 1)], 64))], 2),
|
|
229
|
+
p.error ? (g(), s(n, {
|
|
227
230
|
key: 0,
|
|
228
231
|
variant: "error",
|
|
229
232
|
"icon-only": !0,
|
|
230
233
|
class: "nb-select__status-icon"
|
|
231
234
|
}, {
|
|
232
|
-
default:
|
|
235
|
+
default: S(() => [d(b(p.error), 1)]),
|
|
233
236
|
_: 1
|
|
234
|
-
})) : p.warning ? (
|
|
237
|
+
})) : p.warning ? (g(), s(n, {
|
|
235
238
|
key: 1,
|
|
236
239
|
variant: "warning",
|
|
237
240
|
"icon-only": !0,
|
|
238
241
|
class: "nb-select__status-icon"
|
|
239
242
|
}, {
|
|
240
|
-
default:
|
|
243
|
+
default: S(() => [d(b(p.warning), 1)]),
|
|
241
244
|
_: 1
|
|
242
245
|
})) : c("", !0),
|
|
243
246
|
f(r, {
|
|
@@ -245,36 +248,36 @@ var oe = [
|
|
|
245
248
|
justify: "center",
|
|
246
249
|
class: "nb-select__caret"
|
|
247
250
|
}, {
|
|
248
|
-
default:
|
|
249
|
-
name: P.value ? x(
|
|
251
|
+
default: S(() => [f(e, {
|
|
252
|
+
name: P.value ? x(T) : x(w),
|
|
250
253
|
size: 16
|
|
251
254
|
}, null, 8, ["name"])]),
|
|
252
255
|
_: 1
|
|
253
256
|
})
|
|
254
|
-
], 40,
|
|
255
|
-
p.error ? (
|
|
257
|
+
], 40, ce),
|
|
258
|
+
p.error ? (g(), s(n, {
|
|
256
259
|
key: 2,
|
|
257
260
|
variant: "error",
|
|
258
261
|
class: "nb-select__message"
|
|
259
262
|
}, {
|
|
260
|
-
default:
|
|
263
|
+
default: S(() => [d(b(p.error), 1)]),
|
|
261
264
|
_: 1
|
|
262
|
-
})) : p.warning ? (
|
|
265
|
+
})) : p.warning ? (g(), s(n, {
|
|
263
266
|
key: 3,
|
|
264
267
|
variant: "warning",
|
|
265
268
|
class: "nb-select__message"
|
|
266
269
|
}, {
|
|
267
|
-
default:
|
|
270
|
+
default: S(() => [d(b(p.warning), 1)]),
|
|
268
271
|
_: 1
|
|
269
|
-
})) : p.helper ? (
|
|
272
|
+
})) : p.helper ? (g(), s(n, {
|
|
270
273
|
key: 4,
|
|
271
274
|
variant: "helper",
|
|
272
275
|
class: "nb-select__message"
|
|
273
276
|
}, {
|
|
274
|
-
default:
|
|
277
|
+
default: S(() => [d(b(p.helper), 1)]),
|
|
275
278
|
_: 1
|
|
276
279
|
})) : c("", !0)
|
|
277
|
-
], 64)) : p.variant === "fluid" ? (
|
|
280
|
+
], 64)) : p.variant === "fluid" ? (g(), l(a, { key: 1 }, [u("button", {
|
|
278
281
|
id: V.value,
|
|
279
282
|
ref_key: "triggerRef",
|
|
280
283
|
ref: R,
|
|
@@ -287,22 +290,22 @@ var oe = [
|
|
|
287
290
|
"aria-required": p.required || void 0,
|
|
288
291
|
disabled: p.disabled || void 0,
|
|
289
292
|
onClick: X,
|
|
290
|
-
onFocus:
|
|
291
|
-
onBlur:
|
|
292
|
-
}, [p.label ||
|
|
293
|
+
onFocus: o[2] ||= (e) => F.value = !0,
|
|
294
|
+
onBlur: o[3] ||= (e) => F.value = !1
|
|
295
|
+
}, [p.label || i.$slots.label ? (g(), s(r, {
|
|
293
296
|
key: 0,
|
|
294
297
|
dir: "row",
|
|
295
298
|
align: "center",
|
|
296
299
|
gap: "xs",
|
|
297
300
|
class: "nb-select__inner-header"
|
|
298
301
|
}, {
|
|
299
|
-
default:
|
|
302
|
+
default: S(() => [i.$slots.label ? y(i.$slots, "label", { key: 0 }) : (g(), l("label", ue, [d(b(p.label) + " ", 1), p.required ? (g(), l("span", de, "*")) : c("", !0)])), p.helper && !p.error && !p.warning ? (g(), s(n, {
|
|
300
303
|
key: 2,
|
|
301
304
|
variant: "helper",
|
|
302
305
|
"icon-only": !0,
|
|
303
306
|
class: "nb-select__inner-message"
|
|
304
307
|
}, {
|
|
305
|
-
default:
|
|
308
|
+
default: S(() => [d(b(p.helper), 1)]),
|
|
306
309
|
_: 1
|
|
307
310
|
})) : c("", !0)]),
|
|
308
311
|
_: 3
|
|
@@ -312,53 +315,53 @@ var oe = [
|
|
|
312
315
|
flex: "",
|
|
313
316
|
class: "nb-select__value-row"
|
|
314
317
|
}, {
|
|
315
|
-
default:
|
|
318
|
+
default: S(() => [u("span", { class: h(["nb-select__value", {
|
|
316
319
|
"nb-select__value--placeholder": !W.value,
|
|
317
320
|
"nb-select__value--with-icon": !!U.value
|
|
318
|
-
}]) }, [U.value ? (
|
|
321
|
+
}]) }, [U.value ? (g(), s(e, {
|
|
319
322
|
key: 0,
|
|
320
323
|
class: "nb-select__value-icon",
|
|
321
324
|
name: U.value,
|
|
322
325
|
size: 16
|
|
323
|
-
}, null, 8, ["name"])) : c("", !0), W.value ? y(
|
|
326
|
+
}, null, 8, ["name"])) : c("", !0), W.value ? y(i.$slots, "value", {
|
|
324
327
|
key: 1,
|
|
325
328
|
values: H.value
|
|
326
|
-
}, () => [d(b(W.value), 1)]) : (
|
|
329
|
+
}, () => [d(b(W.value), 1)]) : (g(), l(a, { key: 2 }, [d(b(p.placeholder), 1)], 64))], 2), f(r, {
|
|
327
330
|
align: "center",
|
|
328
331
|
justify: "center",
|
|
329
332
|
class: "nb-select__caret"
|
|
330
333
|
}, {
|
|
331
|
-
default:
|
|
332
|
-
name: P.value ? x(
|
|
334
|
+
default: S(() => [f(e, {
|
|
335
|
+
name: P.value ? x(T) : x(w),
|
|
333
336
|
size: 16
|
|
334
337
|
}, null, 8, ["name"])]),
|
|
335
338
|
_: 1
|
|
336
339
|
})]),
|
|
337
340
|
_: 3
|
|
338
|
-
})], 40,
|
|
341
|
+
})], 40, le), p.error ? (g(), s(n, {
|
|
339
342
|
key: 0,
|
|
340
343
|
variant: "error",
|
|
341
344
|
class: "nb-select__fluid-message"
|
|
342
345
|
}, {
|
|
343
|
-
default:
|
|
346
|
+
default: S(() => [d(b(p.error), 1)]),
|
|
344
347
|
_: 1
|
|
345
|
-
})) : p.warning ? (
|
|
348
|
+
})) : p.warning ? (g(), s(n, {
|
|
346
349
|
key: 1,
|
|
347
350
|
variant: "warning",
|
|
348
351
|
class: "nb-select__fluid-message"
|
|
349
352
|
}, {
|
|
350
|
-
default:
|
|
353
|
+
default: S(() => [d(b(p.warning), 1)]),
|
|
351
354
|
_: 1
|
|
352
|
-
})) : c("", !0)], 64)) : c("", !0)], 34), (
|
|
355
|
+
})) : c("", !0)], 64)) : c("", !0)], 34), (g(), s(ee, { to: "body" }, [P.value ? (g(), l("div", {
|
|
353
356
|
key: 0,
|
|
354
357
|
ref_key: "dropdownRef",
|
|
355
358
|
ref: z,
|
|
356
359
|
class: "nb-select__dropdown",
|
|
357
|
-
style:
|
|
360
|
+
style: te(B.value),
|
|
358
361
|
role: "listbox",
|
|
359
362
|
"aria-multiselectable": p.multiple || void 0
|
|
360
363
|
}, [
|
|
361
|
-
(
|
|
364
|
+
(g(!0), l(a, null, v(p.options, (t, n) => (g(), l("div", {
|
|
362
365
|
key: t.value,
|
|
363
366
|
class: h(["nb-select__option", {
|
|
364
367
|
"nb-select__option--selected": G(t.value),
|
|
@@ -371,34 +374,34 @@ var oe = [
|
|
|
371
374
|
onMouseenter: (e) => I.value = n,
|
|
372
375
|
onClick: (e) => K(t)
|
|
373
376
|
}, [
|
|
374
|
-
p.multiple ? (
|
|
377
|
+
p.multiple ? (g(), l("span", me, [G(t.value) ? (g(), l("svg", he, [...o[7] ||= [u("path", {
|
|
375
378
|
d: "M1 4l3 3 5-6",
|
|
376
379
|
stroke: "currentColor",
|
|
377
380
|
"stroke-width": "1.5",
|
|
378
381
|
"stroke-linecap": "round",
|
|
379
382
|
"stroke-linejoin": "round"
|
|
380
383
|
}, null, -1)]])) : c("", !0)])) : c("", !0),
|
|
381
|
-
t.icon ? (
|
|
384
|
+
t.icon ? (g(), s(e, {
|
|
382
385
|
key: 1,
|
|
383
386
|
class: "nb-select__option-icon",
|
|
384
387
|
name: t.icon,
|
|
385
388
|
size: 16
|
|
386
389
|
}, null, 8, ["name"])) : c("", !0),
|
|
387
|
-
u("span",
|
|
388
|
-
], 42,
|
|
389
|
-
!p.options || p.options.length === 0 ? (
|
|
390
|
-
p.creatable ? (
|
|
390
|
+
u("span", E, [y(i.$slots, "option", { option: t }, () => [d(b(t.label), 1)])])
|
|
391
|
+
], 42, pe))), 128)),
|
|
392
|
+
!p.options || p.options.length === 0 ? (g(), l("div", D, " No options ")) : c("", !0),
|
|
393
|
+
p.creatable ? (g(), l("div", {
|
|
391
394
|
key: 1,
|
|
392
395
|
class: "nb-select__create",
|
|
393
|
-
onMousedown:
|
|
394
|
-
}, [
|
|
395
|
-
"onUpdate:modelValue":
|
|
396
|
+
onMousedown: o[6] ||= C(() => {}, ["prevent"])
|
|
397
|
+
}, [oe(u("input", {
|
|
398
|
+
"onUpdate:modelValue": o[4] ||= (e) => N.value = e,
|
|
396
399
|
type: "text",
|
|
397
400
|
class: "nb-select__create-input",
|
|
398
401
|
placeholder: p.createPlaceholder || "Add new…",
|
|
399
|
-
onKeydown: [
|
|
400
|
-
}, null, 40, O), [[
|
|
401
|
-
], 12,
|
|
402
|
+
onKeydown: [se(C(ge, ["prevent"]), ["enter"]), o[5] ||= C(() => {}, ["stop"])]
|
|
403
|
+
}, null, 40, O), [[ie, N.value]])], 32)) : c("", !0)
|
|
404
|
+
], 12, fe)) : c("", !0)]))], 64));
|
|
402
405
|
}
|
|
403
406
|
});
|
|
404
407
|
//#endregion
|