@nubisco/ui 5.13.0 → 5.15.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/{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-DcWyOduI.js → DatePicker-Cgnm0ku3.js} +3 -3
- package/dist/{DatePicker-B_lnTkqz.cjs → DatePicker-DytDcACW.cjs} +1 -1
- 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/{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-DfE_VBmi.js → Pagination-CH2A6T3n.js} +2 -2
- package/dist/{Pagination-BVqdCAar.cjs → Pagination-D69J9sA1.cjs} +1 -1
- 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-Det8tjo1.cjs +1 -0
- package/dist/Select-dJWuOWN0.js +437 -0
- 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-4-VnGh4i.cjs → Tabs-BCCI2jAd.cjs} +1 -1
- package/dist/{Tabs-q8dnIAkO.js → Tabs-CxqDD--r.js} +1 -1
- 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 +93 -93
- package/dist/component-styles.json +1 -0
- 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.mjs +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/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/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 +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/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.d.ts +13 -0
- package/dist/components/Select.mjs +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/TextInput.cjs +1 -1
- package/dist/components/TextInput.mjs +1 -1
- package/dist/components/Toast.cjs +1 -1
- package/dist/components/Toast.mjs +1 -1
- package/dist/components/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/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/index.cjs +1 -1
- package/dist/index.mjs +60 -60
- package/dist/styles/AccordionItem.css +1 -1
- package/dist/styles/Select.css +1 -1
- package/dist/types/Option.d.ts +7 -0
- package/dist/ui.css +3 -3
- package/package.json +1 -1
- package/dist/AccordionItem-BkV2mNGm.js +0 -90
- package/dist/AccordionItem-CYy-vtx2.cjs +0 -1
- package/dist/Select-C4kly9iF.js +0 -408
- package/dist/Select-CDaJcun8.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/{Badge-BgCdM21g.cjs → Badge-B1xoanmq.cjs} +0 -0
- /package/dist/{Badge-CfXOTEnO.js → Badge-CxBslbIp.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,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-dJWuOWN0.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 +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-Det8tjo1.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
|
-
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-labelledby`],m=[`id`],h=[`aria-selected`,`aria-disabled`,`onMouseenter`,`onClick`],g={key:0,class:`nb-select__option-check`,"aria-hidden":`true`},_={key:0,viewBox:`0 0 10 8`,fill:`none`,width:`10`,height:`8`},v={class:`nb-select__option-label`},y={key:0,class:`nb-select__empty`},b=[`placeholder`,`onKeydown`],x=(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(x,{expose:S,emit:C}){let w=x,T=C,E=(0,a.ref)(``);function D(){let e=E.value.trim();e&&(T(`create`,e),E.value=``)}let O=(0,a.ref)(!1),k=(0,a.ref)(!1),A=(0,a.ref)(-1),j=(0,a.ref)(null),M=(0,a.ref)(null),N=(0,a.ref)(null);i.useMenuSurface(N);let P=(0,a.ref)({position:`fixed`,top:`0px`,left:`0px`,width:`0px`,zIndex:`9999`}),F=`nb-select-${(0,a.useId)()}`,I=(0,a.computed)(()=>w.id??F),L=(0,a.computed)(()=>w.modelValue==null?[]:Array.isArray(w.modelValue)?w.modelValue:[w.modelValue]),R=(0,a.computed)(()=>{if(!(w.multiple||L.value.length!==1))return(w.options??[]).find(e=>e.value===L.value[0])?.icon}),z=(0,a.computed)(()=>{if(L.value.length===0)return``;let e=w.options??[];return w.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=(0,a.computed)(()=>{let e=[];return(w.options??[]).forEach((t,n)=>{let r=e[e.length-1];(!r||r.name!==t.group)&&e.push({key:`${e.length}:${t.group??``}`,name:t.group,labelId:`${I.value}-group-${e.length}`,entries:[]}),e[e.length-1].entries.push({option:t,index:n})}),e});function H(e,t){let n=w.options??[];for(let r=e+t;r>=0&&r<n.length;r+=t)if(!n[r].disabled)return r;return e}function U(e){if(e.disabled)return;let t;if(w.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,K();T(`update:modelValue`,t),T(`change`,t)}function W(){if(!M.value)return;let e=M.value.getBoundingClientRect(),t=N.value?.offsetHeight??0,n=window.innerHeight-e.bottom,r=e.top;P.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 G(){if(w.disabled)return;O.value=!0,W();let e=w.options??[];A.value=L.value.length>0?Math.max(0,e.findIndex(e=>e.value===L.value[0])):-1,(0,a.nextTick)(()=>{W(),Z()})}function K(){O.value=!1,A.value=-1}function q(){O.value?K():G()}function J(e){let t=e.target,n=j.value?.contains(t)??!1,r=N.value?.contains(t)??!1;!n&&!r&&K()}function Y(){O.value&&W()}(0,a.watch)(O,e=>{e?(document.addEventListener(`mousedown`,J),window.addEventListener(`scroll`,Y,!0),window.addEventListener(`resize`,Y)):(document.removeEventListener(`mousedown`,J),window.removeEventListener(`scroll`,Y,!0),window.removeEventListener(`resize`,Y))}),(0,a.onBeforeUnmount)(()=>{document.removeEventListener(`mousedown`,J),window.removeEventListener(`scroll`,Y,!0),window.removeEventListener(`resize`,Y)});function X(e){let t=w.options??[];if(!O.value){(e.key===`Enter`||e.key===` `||e.key===`ArrowDown`)&&(e.preventDefault(),G());return}e.key===`Escape`?(K(),e.preventDefault()):e.key===`Tab`?K():e.key===`ArrowDown`?(e.preventDefault(),A.value=H(A.value,1),Z()):e.key===`ArrowUp`?(e.preventDefault(),A.value>0&&(A.value=H(A.value,-1)),Z()):(e.key===`Enter`||e.key===` `)&&A.value>=0&&(e.preventDefault(),U(t[A.value]))}function Z(){(0,a.nextTick)(()=>{!N.value||A.value<0||N.value.querySelectorAll(`.nb-select__option`)[A.value]?.scrollIntoView({block:`nearest`})})}let Q=(0,a.computed)(()=>[`nb-select`,`nb-select--${w.variant}`,`nb-select--${w.size}`,{"nb-select--open":O.value,"nb-select--focused":k.value&&!O.value,"nb-select--error":!!w.error,"nb-select--warning":!w.error&&!!w.warning,"nb-select--multiple":w.multiple}]);return S({open:G,close:K}),(i,S)=>((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,null,[(0,a.createElementVNode)(`div`,{ref_key:`rootRef`,ref:j,class:(0,a.normalizeClass)(Q.value),onKeydown:X},[x.variant===`default`?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[i.$slots.label?(0,a.renderSlot)(i.$slots,`label`,{key:0}):x.label?((0,a.openBlock)(),(0,a.createBlock)(t.t,{key:1,for:I.value,required:x.required,disabled:x.disabled},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(x.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`button`,{id:I.value,ref_key:`triggerRef`,ref:M,type:`button`,class:`nb-select__trigger`,role:`combobox`,"aria-expanded":O.value,"aria-haspopup":`listbox`,"aria-disabled":x.disabled||void 0,"aria-required":x.required||void 0,disabled:x.disabled||void 0,onClick:q,onFocus:S[0]||=e=>k.value=!0,onBlur:S[1]||=e=>k.value=!1},[(0,a.createElementVNode)(`span`,{class:(0,a.normalizeClass)([`nb-select__value`,{"nb-select__value--placeholder":!z.value,"nb-select__value--with-icon":!!R.value}])},[R.value?((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:0,class:`nb-select__value-icon`,name:R.value,size:16},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),z.value?(0,a.renderSlot)(i.$slots,`value`,{key:1,values:L.value},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(z.value),1)]):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createTextVNode)((0,a.toDisplayString)(x.placeholder),1)],64))],2),x.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)(x.error),1)]),_:1})):x.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)(x.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:O.value?(0,a.unref)(s.regular):(0,a.unref)(o.regular),size:16},null,8,[`name`])]),_:1})],40,c),x.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)(x.error),1)]),_:1})):x.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)(x.warning),1)]),_:1})):x.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)(x.helper),1)]),_:1})):(0,a.createCommentVNode)(``,!0)],64)):x.variant===`fluid`?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createElementVNode)(`button`,{id:I.value,ref_key:`triggerRef`,ref:M,type:`button`,class:`nb-select__trigger`,role:`combobox`,"aria-expanded":O.value,"aria-haspopup":`listbox`,"aria-disabled":x.disabled||void 0,"aria-required":x.required||void 0,disabled:x.disabled||void 0,onClick:q,onFocus:S[2]||=e=>k.value=!0,onBlur:S[3]||=e=>k.value=!1},[x.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)(x.label)+` `,1),x.required?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,d,`*`)):(0,a.createCommentVNode)(``,!0)])),x.helper&&!x.error&&!x.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)(x.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":!z.value,"nb-select__value--with-icon":!!R.value}])},[R.value?((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:0,class:`nb-select__value-icon`,name:R.value,size:16},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),z.value?(0,a.renderSlot)(i.$slots,`value`,{key:1,values:L.value},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(z.value),1)]):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:2},[(0,a.createTextVNode)((0,a.toDisplayString)(x.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:O.value?(0,a.unref)(s.regular):(0,a.unref)(o.regular),size:16},null,8,[`name`])]),_:1})]),_:3})],40,l),x.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)(x.error),1)]),_:1})):x.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)(x.warning),1)]),_:1})):(0,a.createCommentVNode)(``,!0)],64)):(0,a.createCommentVNode)(``,!0)],34),((0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:`body`},[O.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,ref_key:`dropdownRef`,ref:N,class:`nb-select__dropdown`,style:(0,a.normalizeStyle)(P.value),role:`listbox`,"aria-multiselectable":x.multiple||void 0},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(V.value,t=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:t.key,class:`nb-select__group`,role:`group`,"aria-labelledby":t.name?t.labelId:void 0},[t.name?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,id:t.labelId,class:`nb-select__group-label`},(0,a.toDisplayString)(t.name),9,m)):(0,a.createCommentVNode)(``,!0),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(t.entries,t=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:t.option.value,class:(0,a.normalizeClass)([`nb-select__option`,{"nb-select__option--selected":B(t.option.value),"nb-select__option--highlighted":A.value===t.index,"nb-select__option--disabled":t.option.disabled}]),role:`option`,"aria-selected":B(t.option.value),"aria-disabled":t.option.disabled||void 0,onMouseenter:e=>A.value=t.index,onClick:e=>U(t.option)},[x.multiple?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,g,[B(t.option.value)?((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,_,[...S[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.option.icon?((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:1,class:`nb-select__option-icon`,name:t.option.icon,size:16},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`span`,v,[(0,a.renderSlot)(i.$slots,`option`,{option:t.option},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.option.label),1)])])],42,h))),128))],8,p))),128)),!x.options||x.options.length===0?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,y,` No options `)):(0,a.createCommentVNode)(``,!0),x.creatable?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:1,class:`nb-select__create`,onMousedown:S[6]||=(0,a.withModifiers)(()=>{},[`prevent`])},[(0,a.withDirectives)((0,a.createElementVNode)(`input`,{"onUpdate:modelValue":S[4]||=e=>E.value=e,type:`text`,class:`nb-select__create-input`,placeholder:x.createPlaceholder||`Add new…`,onKeydown:[(0,a.withKeys)((0,a.withModifiers)(D,[`prevent`]),[`enter`]),S[5]||=(0,a.withModifiers)(()=>{},[`stop`])]},null,40,b),[[a.vModelText,E.value]])],32)):(0,a.createCommentVNode)(``,!0)],12,f)):(0,a.createCommentVNode)(``,!0)]))],64))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return x}});
|