@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Accordion.context-C7Xkdn0J.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./composables/useStableId.composable.cjs`),i=require(`./InfoHint-Cs9-C043.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/caret-down`);var s=[`aria-level`],c=[`id`,`aria-expanded`,`aria-controls`,`aria-describedby`,`disabled`],l={class:`nb-accordion-item__title`},u={key:1,class:`nb-accordion-item__meta`},d=[`id`],f={key:2,class:`nb-accordion-item__actions`},p=[`id`,`aria-labelledby`,`hidden`],m={class:`nb-accordion-item__body`},h=(0,a.defineComponent)({__name:`AccordionItem`,props:{id:{default:void 0},title:{default:``},icon:{default:void 0},meta:{default:``},info:{default:void 0},disabled:{type:Boolean,default:!1}},setup(t){let h=t,g=(0,a.useSlots)(),_=(0,a.computed)(()=>!!h.meta||!!g.meta),v=(0,a.computed)(()=>!!h.info||!!g.actions),y=(0,a.inject)(e.t,null),b=r.useStableId(h),x=(0,a.computed)(()=>y?.headingLevel?.value??3),S=(0,a.computed)(()=>b),C=(0,a.ref)(null),w=(0,a.computed)(()=>y?.open.value.includes(S.value)??!1);y&&(0,a.onBeforeUnmount)(y.register(S.value,()=>C.value));function T(){h.disabled||y?.toggle(S.value)}let E={ArrowUp:`prev`,ArrowDown:`next`,Home:`first`,End:`last`};function D(e){let t=E[e.key];!t||!y||(e.preventDefault(),y.focusSibling(S.value,t))}return(e,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)([`nb-accordion-item`,{"nb-accordion-item--open":w.value,"nb-accordion-item--disabled":t.disabled}])},[(0,a.createElementVNode)(`div`,{class:(0,a.normalizeClass)([`nb-accordion-item__heading`,{"nb-accordion-item__heading--aside":v.value}]),role:`heading`,"aria-level":x.value},[(0,a.createElementVNode)(`button`,{id:`${S.value}-header`,ref_key:`headerRef`,ref:C,type:`button`,class:`nb-accordion-item__header`,"aria-expanded":w.value,"aria-controls":`${S.value}-panel`,"aria-describedby":v.value&&_.value?`${S.value}-meta`:void 0,disabled:t.disabled,onClick:T,onKeydown:D},[(0,a.createVNode)(n.t,{class:`nb-accordion-item__chevron`,name:(0,a.unref)(o.regular),size:16,"aria-hidden":`true`},null,8,[`name`]),t.icon?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:t.icon,size:16},null,8,[`name`])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`span`,l,[(0,a.renderSlot)(e.$slots,`title`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.title),1)],!0)]),!v.value&&_.value?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,u,[(0,a.renderSlot)(e.$slots,`meta`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.meta),1)],!0)])):(0,a.createCommentVNode)(``,!0)],40,c),v.value?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[t.info?((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:0,class:`nb-accordion-item__info`,text:t.info,size:14,label:`About ${t.title||`this section`}`},null,8,[`text`,`label`])):(0,a.createCommentVNode)(``,!0),r[0]||=(0,a.createElementVNode)(`span`,{class:`nb-accordion-item__spacer`,"aria-hidden":`true`},null,-1),_.value?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,{key:1,id:`${S.value}-meta`,class:`nb-accordion-item__meta nb-accordion-item__meta--raised`,onClick:T},[(0,a.renderSlot)(e.$slots,`meta`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.meta),1)],!0)],8,d)):(0,a.createCommentVNode)(``,!0),e.$slots.actions?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,f,[(0,a.renderSlot)(e.$slots,`actions`,{},void 0,!0)])):(0,a.createCommentVNode)(``,!0)],64)):(0,a.createCommentVNode)(``,!0)],10,s),(0,a.createElementVNode)(`div`,{id:`${S.value}-panel`,class:`nb-accordion-item__panel`,role:`region`,"aria-labelledby":`${S.value}-header`,hidden:!w.value},[(0,a.createElementVNode)(`div`,m,[(0,a.renderSlot)(e.$slots,`default`,{},void 0,!0)])],8,p)],2))}}),g=t.t(h,[[`__scopeId`,`data-v-2c4ae3c9`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { t as e } from "./Accordion.context-BQy1VnEM.js";
|
|
2
|
+
import { t } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
3
|
+
import { t as n } from "./Icon-rREAqsu0.js";
|
|
4
|
+
import { useStableId as r } from "./composables/useStableId.composable.mjs";
|
|
5
|
+
import { t as i } from "./InfoHint-CK96hjMo.js";
|
|
6
|
+
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, inject as m, normalizeClass as h, onBeforeUnmount as g, openBlock as _, ref as v, renderSlot as y, toDisplayString as b, unref as x, useSlots as S } from "vue";
|
|
7
|
+
import { regular as C } from "@nubisco/ui/icons/caret-down";
|
|
8
|
+
//#region src/components/AccordionItem.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
+
var w = ["aria-level"], T = [
|
|
10
|
+
"id",
|
|
11
|
+
"aria-expanded",
|
|
12
|
+
"aria-controls",
|
|
13
|
+
"aria-describedby",
|
|
14
|
+
"disabled"
|
|
15
|
+
], E = { class: "nb-accordion-item__title" }, D = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "nb-accordion-item__meta"
|
|
18
|
+
}, O = ["id"], k = {
|
|
19
|
+
key: 2,
|
|
20
|
+
class: "nb-accordion-item__actions"
|
|
21
|
+
}, A = [
|
|
22
|
+
"id",
|
|
23
|
+
"aria-labelledby",
|
|
24
|
+
"hidden"
|
|
25
|
+
], j = { class: "nb-accordion-item__body" }, M = /* @__PURE__ */ t(/* @__PURE__ */ p({
|
|
26
|
+
__name: "AccordionItem",
|
|
27
|
+
props: {
|
|
28
|
+
id: { default: void 0 },
|
|
29
|
+
title: { default: "" },
|
|
30
|
+
icon: { default: void 0 },
|
|
31
|
+
meta: { default: "" },
|
|
32
|
+
info: { default: void 0 },
|
|
33
|
+
disabled: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: !1
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
setup(t) {
|
|
39
|
+
let p = t, M = S(), N = o(() => !!p.meta || !!M.meta), P = o(() => !!p.info || !!M.actions), F = m(e, null), I = r(p), L = o(() => F?.headingLevel?.value ?? 3), R = o(() => I), z = v(null), B = o(() => F?.open.value.includes(R.value) ?? !1);
|
|
40
|
+
F && g(F.register(R.value, () => z.value));
|
|
41
|
+
function V() {
|
|
42
|
+
p.disabled || F?.toggle(R.value);
|
|
43
|
+
}
|
|
44
|
+
let H = {
|
|
45
|
+
ArrowUp: "prev",
|
|
46
|
+
ArrowDown: "next",
|
|
47
|
+
Home: "first",
|
|
48
|
+
End: "last"
|
|
49
|
+
};
|
|
50
|
+
function U(e) {
|
|
51
|
+
let t = H[e.key];
|
|
52
|
+
!t || !F || (e.preventDefault(), F.focusSibling(R.value, t));
|
|
53
|
+
}
|
|
54
|
+
return (e, r) => (_(), l("div", { class: h(["nb-accordion-item", {
|
|
55
|
+
"nb-accordion-item--open": B.value,
|
|
56
|
+
"nb-accordion-item--disabled": t.disabled
|
|
57
|
+
}]) }, [u("div", {
|
|
58
|
+
class: h(["nb-accordion-item__heading", { "nb-accordion-item__heading--aside": P.value }]),
|
|
59
|
+
role: "heading",
|
|
60
|
+
"aria-level": L.value
|
|
61
|
+
}, [u("button", {
|
|
62
|
+
id: `${R.value}-header`,
|
|
63
|
+
ref_key: "headerRef",
|
|
64
|
+
ref: z,
|
|
65
|
+
type: "button",
|
|
66
|
+
class: "nb-accordion-item__header",
|
|
67
|
+
"aria-expanded": B.value,
|
|
68
|
+
"aria-controls": `${R.value}-panel`,
|
|
69
|
+
"aria-describedby": P.value && N.value ? `${R.value}-meta` : void 0,
|
|
70
|
+
disabled: t.disabled,
|
|
71
|
+
onClick: V,
|
|
72
|
+
onKeydown: U
|
|
73
|
+
}, [
|
|
74
|
+
f(n, {
|
|
75
|
+
class: "nb-accordion-item__chevron",
|
|
76
|
+
name: x(C),
|
|
77
|
+
size: 16,
|
|
78
|
+
"aria-hidden": "true"
|
|
79
|
+
}, null, 8, ["name"]),
|
|
80
|
+
t.icon ? (_(), s(n, {
|
|
81
|
+
key: 0,
|
|
82
|
+
name: t.icon,
|
|
83
|
+
size: 16
|
|
84
|
+
}, null, 8, ["name"])) : c("", !0),
|
|
85
|
+
u("span", E, [y(e.$slots, "title", {}, () => [d(b(t.title), 1)], !0)]),
|
|
86
|
+
!P.value && N.value ? (_(), l("span", D, [y(e.$slots, "meta", {}, () => [d(b(t.meta), 1)], !0)])) : c("", !0)
|
|
87
|
+
], 40, T), P.value ? (_(), l(a, { key: 0 }, [
|
|
88
|
+
t.info ? (_(), s(i, {
|
|
89
|
+
key: 0,
|
|
90
|
+
class: "nb-accordion-item__info",
|
|
91
|
+
text: t.info,
|
|
92
|
+
size: 14,
|
|
93
|
+
label: `About ${t.title || "this section"}`
|
|
94
|
+
}, null, 8, ["text", "label"])) : c("", !0),
|
|
95
|
+
r[0] ||= u("span", {
|
|
96
|
+
class: "nb-accordion-item__spacer",
|
|
97
|
+
"aria-hidden": "true"
|
|
98
|
+
}, null, -1),
|
|
99
|
+
N.value ? (_(), l("span", {
|
|
100
|
+
key: 1,
|
|
101
|
+
id: `${R.value}-meta`,
|
|
102
|
+
class: "nb-accordion-item__meta nb-accordion-item__meta--raised",
|
|
103
|
+
onClick: V
|
|
104
|
+
}, [y(e.$slots, "meta", {}, () => [d(b(t.meta), 1)], !0)], 8, O)) : c("", !0),
|
|
105
|
+
e.$slots.actions ? (_(), l("span", k, [y(e.$slots, "actions", {}, void 0, !0)])) : c("", !0)
|
|
106
|
+
], 64)) : c("", !0)], 10, w), u("div", {
|
|
107
|
+
id: `${R.value}-panel`,
|
|
108
|
+
class: "nb-accordion-item__panel",
|
|
109
|
+
role: "region",
|
|
110
|
+
"aria-labelledby": `${R.value}-header`,
|
|
111
|
+
hidden: !B.value
|
|
112
|
+
}, [u("div", j, [y(e.$slots, "default", {}, void 0, !0)])], 8, A)], 2));
|
|
113
|
+
}
|
|
114
|
+
}), [["__scopeId", "data-v-2c4ae3c9"]]);
|
|
115
|
+
//#endregion
|
|
116
|
+
export { M as t };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { t } from "./Grid-
|
|
2
|
+
import { t } from "./Grid-DA2jibMM.js";
|
|
3
3
|
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, mergeProps as c, openBlock as l, unref as u, withCtx as d } from "vue";
|
|
4
4
|
//#region src/components/AiLabel.d.ts
|
|
5
5
|
var f = /* @__PURE__ */ function(e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Grid-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Grid-HifmWSUS.cjs`);let n=require(`vue`);var r=function(e){return e.Default=`default`,e.Inline=`inline`,e}(r||{}),i=function(e){return e.Small=`sm`,e.Medium=`md`,e.Large=`lg`,e}(i||{}),a={key:0,class:`nb-ai-label--dot`},o=(0,n.defineComponent)({__name:`AiLabel`,props:{variant:{default:r.Default},size:{default:i.Medium}},setup(e){let i=e,o=(0,n.computed)(()=>({"nb-ai-label":!0,[`nb-ai-label__${i.variant}`]:!0,[`nb-ai-label__${i.size}`]:!0}));return(i,s)=>((0,n.openBlock)(),(0,n.createBlock)(t.t,(0,n.mergeProps)({is:`button`,align:`center`},{...e.variant===(0,n.unref)(r).Inline&&{gap:`sm`}},{justify:`center`,class:o.value}),{default:(0,n.withCtx)(()=>[e.variant===(0,n.unref)(r).Inline?((0,n.openBlock)(),(0,n.createElementBlock)(`div`,a)):(0,n.createCommentVNode)(``,!0),s[0]||=(0,n.createElementVNode)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`},[(0,n.createElementVNode)(`path`,{d:`M 104.301 197.8 L 94.501 162.4 L 53.101 162.4 L 43.501 197.8 L 17.101 197.8 L 56.301 58.2 L 92.701 58.2 L 132.101 197.8 L 104.301 197.8 Z M 74.701 84 L 73.101 84 L 57.701 141 L 90.101 141 L 74.701 84 Z M 150.099 197.8 L 150.099 178.2 L 181.499 178.2 L 181.499 77.8 L 150.099 77.8 L 150.099 58.2 L 238.899 58.2 L 238.899 77.8 L 207.499 77.8 L 207.499 178.2 L 238.899 178.2 L 238.899 197.8 L 150.099 197.8 Z`,fill:`currentColor`})],-1)]),_:1},16,[`class`]))}}),s=e.t(o,[[`__scopeId`,`data-v-906d887c`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./Icon-C8R_r_In.cjs`);let n=require(`vue`);var r=function(e){return e.Grey=`grey`,e.Blue=`blue`,e.Orange=`orange`,e.Green=`green`,e.Red=`red`,e.Purple=`purple`,e.Primary=`primary`,e}(r||{}),i=function(e){return e.Small=`sm`,e.Medium=`md`,e}(i||{}),a={key:0,class:`nb-badge__dot`},o=(0,n.defineComponent)({__name:`Badge`,props:{variant:{default:r.Grey},size:{default:i.Medium},dot:{type:Boolean,default:!1},icon:{default:void 0},placeholder:{type:Boolean,default:!1},interactive:{type:Boolean,default:!1}},setup(e){return(r,i)=>((0,n.openBlock)(),(0,n.createBlock)((0,n.resolveDynamicComponent)(e.interactive?`button`:`span`),{type:e.interactive?`button`:void 0,class:(0,n.normalizeClass)([`nb-badge`,`nb-badge--${e.variant}`,`nb-badge--${e.size}`,{"nb-badge--placeholder":e.placeholder,"nb-badge--interactive":e.interactive}])},{default:(0,n.withCtx)(()=>[e.dot?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,a)):(0,n.createCommentVNode)(``,!0),e.icon?((0,n.openBlock)(),(0,n.createBlock)(t.t,{key:1,name:e.icon,size:e.size===`sm`?11:12,class:`nb-badge__icon`},null,8,[`name`,`size`])):(0,n.createCommentVNode)(``,!0),(0,n.renderSlot)(r.$slots,`default`,{},void 0,!0)]),_:3},8,[`type`,`class`]))}}),s=e.t(o,[[`__scopeId`,`data-v-aa5af746`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
+
import { t } from "./Icon-rREAqsu0.js";
|
|
3
|
+
import { createBlock as n, createCommentVNode as r, createElementBlock as i, defineComponent as a, normalizeClass as o, openBlock as s, renderSlot as c, resolveDynamicComponent as l, withCtx as u } from "vue";
|
|
4
|
+
//#region src/components/Badge.d.ts
|
|
5
|
+
var d = /* @__PURE__ */ function(e) {
|
|
6
|
+
return e.Grey = "grey", e.Blue = "blue", e.Orange = "orange", e.Green = "green", e.Red = "red", e.Purple = "purple", e.Primary = "primary", e;
|
|
7
|
+
}(d || {}), f = /* @__PURE__ */ function(e) {
|
|
8
|
+
return e.Small = "sm", e.Medium = "md", e;
|
|
9
|
+
}(f || {}), p = {
|
|
10
|
+
key: 0,
|
|
11
|
+
class: "nb-badge__dot"
|
|
12
|
+
}, m = /* @__PURE__ */ e(/* @__PURE__ */ a({
|
|
13
|
+
__name: "Badge",
|
|
14
|
+
props: {
|
|
15
|
+
variant: { default: d.Grey },
|
|
16
|
+
size: { default: f.Medium },
|
|
17
|
+
dot: {
|
|
18
|
+
type: Boolean,
|
|
19
|
+
default: !1
|
|
20
|
+
},
|
|
21
|
+
icon: { default: void 0 },
|
|
22
|
+
placeholder: {
|
|
23
|
+
type: Boolean,
|
|
24
|
+
default: !1
|
|
25
|
+
},
|
|
26
|
+
interactive: {
|
|
27
|
+
type: Boolean,
|
|
28
|
+
default: !1
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
setup(e) {
|
|
32
|
+
return (a, d) => (s(), n(l(e.interactive ? "button" : "span"), {
|
|
33
|
+
type: e.interactive ? "button" : void 0,
|
|
34
|
+
class: o([
|
|
35
|
+
"nb-badge",
|
|
36
|
+
`nb-badge--${e.variant}`,
|
|
37
|
+
`nb-badge--${e.size}`,
|
|
38
|
+
{
|
|
39
|
+
"nb-badge--placeholder": e.placeholder,
|
|
40
|
+
"nb-badge--interactive": e.interactive
|
|
41
|
+
}
|
|
42
|
+
])
|
|
43
|
+
}, {
|
|
44
|
+
default: u(() => [
|
|
45
|
+
e.dot ? (s(), i("span", p)) : r("", !0),
|
|
46
|
+
e.icon ? (s(), n(t, {
|
|
47
|
+
key: 1,
|
|
48
|
+
name: e.icon,
|
|
49
|
+
size: e.size === "sm" ? 11 : 12,
|
|
50
|
+
class: "nb-badge__icon"
|
|
51
|
+
}, null, 8, ["name", "size"])) : r("", !0),
|
|
52
|
+
c(a.$slots, "default", {}, void 0, !0)
|
|
53
|
+
]),
|
|
54
|
+
_: 3
|
|
55
|
+
}, 8, ["type", "class"]));
|
|
56
|
+
}
|
|
57
|
+
}), [["__scopeId", "data-v-aa5af746"]]);
|
|
58
|
+
//#endregion
|
|
59
|
+
export { m as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
2
|
import { t } from "./Icon-rREAqsu0.js";
|
|
3
3
|
import { computed as n, createBlock as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, createVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, ref as d, renderSlot as f, toDisplayString as p, unref as m, useSlots as h } from "vue";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
4
|
+
import * as g from "@nubisco/ui/icons/info";
|
|
5
|
+
import { regular as _ } from "@nubisco/ui/icons/x";
|
|
6
6
|
import * as v from "@nubisco/ui/icons/check-circle";
|
|
7
7
|
import * as y from "@nubisco/ui/icons/warning";
|
|
8
8
|
import * as b from "@nubisco/ui/icons/x-circle";
|
|
@@ -49,7 +49,7 @@ var S = /* @__PURE__ */ function(e) {
|
|
|
49
49
|
L.value = !0, j("dismiss");
|
|
50
50
|
}
|
|
51
51
|
let z = {
|
|
52
|
-
info:
|
|
52
|
+
info: g,
|
|
53
53
|
success: v,
|
|
54
54
|
warning: y,
|
|
55
55
|
error: b,
|
|
@@ -83,7 +83,7 @@ var S = /* @__PURE__ */ function(e) {
|
|
|
83
83
|
"aria-label": A.closeLabel,
|
|
84
84
|
onClick: R
|
|
85
85
|
}, [s(t, {
|
|
86
|
-
name: m(
|
|
86
|
+
name: m(_),
|
|
87
87
|
size: 14
|
|
88
88
|
}, null, 8, ["name"])], 8, k)) : i("", !0)
|
|
89
89
|
], 10, w));
|
|
@@ -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`);let r=require(`vue`),i=require(`@nubisco/ui/icons/
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`);let r=require(`vue`),i=require(`@nubisco/ui/icons/info`);i=e.n(i);let a=require(`@nubisco/ui/icons/x`),o=require(`@nubisco/ui/icons/check-circle`);o=e.n(o);let s=require(`@nubisco/ui/icons/warning`);s=e.n(s);let c=require(`@nubisco/ui/icons/x-circle`);c=e.n(c);let l=require(`@nubisco/ui/icons/note`);l=e.n(l);var u=function(e){return e.Info=`info`,e.Success=`success`,e.Warning=`warning`,e.Error=`error`,e.Neutral=`neutral`,e}(u||{}),d=function(e){return e.Inline=`inline`,e.Callout=`callout`,e}(d||{}),f=[`role`,`aria-live`],p={class:`nb-banner__body`},m={key:0,class:`nb-banner__title`},h={key:1,class:`nb-banner__text`},g={key:1,class:`nb-banner__actions`},_=[`aria-label`],v=(0,r.defineComponent)({__name:`Banner`,props:{status:{default:u.Info},variant:{default:d.Inline},title:{},dismissible:{type:Boolean,default:!1},icon:{},hideIcon:{type:Boolean,default:!1},flush:{type:Boolean,default:!1},closeLabel:{default:`Dismiss`}},emits:[`dismiss`],setup(e,{emit:t}){let v=e,y=t,b=(0,r.useSlots)(),x=(0,r.computed)(()=>!!b.default),S=(0,r.computed)(()=>!!b.action),C=(0,r.computed)(()=>v.dismissible&&v.variant!==d.Callout),w=(0,r.computed)(()=>v.status===u.Error),T=(0,r.ref)(!1);function E(){T.value=!0,y(`dismiss`)}let D={info:i,success:o,warning:s,error:c,neutral:l};return(e,t)=>T.value?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{key:0,class:(0,r.normalizeClass)([`nb-banner`,`nb-banner--${v.status}`,`nb-banner--${v.variant}`,{"nb-banner--flush":v.flush}]),role:w.value?`alert`:`status`,"aria-live":w.value?`assertive`:`polite`},[v.hideIcon?(0,r.createCommentVNode)(``,!0):((0,r.openBlock)(),(0,r.createBlock)(n.t,{key:0,name:v.icon??D[v.status],size:18,weight:`fill`,class:`nb-banner__icon`,"aria-hidden":`true`},null,8,[`name`])),(0,r.createElementVNode)(`p`,p,[v.title?((0,r.openBlock)(),(0,r.createElementBlock)(`strong`,m,(0,r.toDisplayString)(v.title),1)):(0,r.createCommentVNode)(``,!0),x.value?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,h,[(0,r.renderSlot)(e.$slots,`default`,{},void 0,!0)])):(0,r.createCommentVNode)(``,!0)]),S.value?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,g,[(0,r.renderSlot)(e.$slots,`action`,{},void 0,!0)])):(0,r.createCommentVNode)(``,!0),C.value?((0,r.openBlock)(),(0,r.createElementBlock)(`button`,{key:2,type:`button`,class:`nb-banner__close`,"aria-label":v.closeLabel,onClick:E},[(0,r.createVNode)(n.t,{name:(0,r.unref)(a.regular),size:14},null,8,[`name`])],8,_)):(0,r.createCommentVNode)(``,!0)],10,f))}}),y=t.t(v,[[`__scopeId`,`data-v-bf09999e`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return y}});
|
|
@@ -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(`./scales-VtK6oMP0.cjs`),i=require(`./useChartSize-BPqvq1te.cjs`);let a=require(`vue`);var o=[`width`,`height`,`role`,`aria-label`],s={key:0},c=[`x1`,`x2`,`y1`,`y2`],l={class:`nb-chart__axis`},u=[`x`,`y`,`text-anchor`,`dominant-baseline`],d={class:`nb-chart__axis`},f=[`x`,`y`,`text-anchor`,`dominant-baseline`],p=[`x1`,`x2`,`y1`,`y2`],m=[`fill`,`tabindex`,`role`,`aria-label`,`onKeydown`],h={class:`nb-chart__hover-layer`},g=[`onMouseenter`,`onMousemove`,`onClick`],_=(0,a.defineComponent)({__name:`BarChart`,props:{series:{default:()=>[]},orientation:{default:`vertical`},stacked:{type:Boolean,default:!1},title:{default:void 0},subtitle:{default:void 0},height:{default:280},showLegend:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},showGrid:{type:Boolean,default:!0},colors:{default:()=>t.n}},emits:[`select`],setup(e,{emit:_}){let v=e,y=_,b=(0,a.ref)(null),x=i.t(b,{width:480,height:240}),S=(0,a.computed)(()=>v.orientation===`horizontal`),C=(0,a.computed)(()=>v.series.map((e,n)=>({name:e.name,data:e.data,color:e.color??t.i(n,v.colors)}))),w=(0,a.computed)(()=>(v.series[0]?.data??[]).map(e=>e.x)),T=(e,t)=>C.value[t]?.data[e]?.y??0,E=(e,t)=>{let n=T(e,t);if(!v.stacked)return[0,n];let r=0;for(let i=0;i<t;i+=1){let t=T(e,i);t>=0==n>=0&&(r+=t)}return[r,r+n]},D=(0,a.computed)(()=>{let e=[];return w.value.forEach((t,n)=>{C.value.forEach((t,r)=>{e.push(E(n,r)[1])})}),e.length?r.i(Math.min(0,...e),Math.max(0,...e),.05):[0,1]}),O=(0,a.computed)(()=>{if(!S.value)return{top:12,right:16,bottom:28,left:44};let e=w.value.reduce((e,t)=>Math.max(e,String(t).length),0),t=Math.max(44,Math.round(x.value.width*.4));return{top:12,right:16,bottom:28,left:Math.min(Math.max(44,Math.ceil(e*6.2)+12),t)}}),k=(0,a.computed)(()=>({x0:O.value.left,x1:Math.max(O.value.left,x.value.width-O.value.right),y0:O.value.top,y1:Math.max(O.value.top,x.value.height-O.value.bottom)})),A=(0,a.computed)(()=>r.t(w.value.map(e=>String(e)),S.value?[k.value.y0,k.value.y1]:[k.value.x0,k.value.x1],.2)),j=(0,a.computed)(()=>r.r(D.value,S.value?[k.value.x0,k.value.x1]:[k.value.y1,k.value.y0])),M=(0,a.computed)(()=>j.value.ticks(5)),N=e=>A.value(String(w.value[e])),P=e=>N(e)+A.value.bandwidth/2,F=(0,a.computed)(()=>{let e=C.value.length||1;return v.stacked?A.value.bandwidth:A.value.bandwidth/e}),I=(e,t)=>{let[n,r]=E(e,t),i=j.value(n),a=j.value(r),o=Math.max(0,F.value-2),s=N(e)+(v.stacked?0:t*F.value),c=Math.max(0,Math.abs(a-i));return S.value?{x:Math.min(i,a),y:s,width:c,height:o}:{x:s,y:Math.min(i,a),width:o,height:c}},L=e=>{let t=N(e),n=A.value.bandwidth;return S.value?{x:k.value.x0,y:t,width:Math.max(0,k.value.x1-k.value.x0),height:n}:{x:t,y:k.value.y0,width:n,height:Math.max(0,k.value.y1-k.value.y0)}},R=e=>Math.abs(e)>=1e3?`${(e/1e3).toFixed(1)}k`:String(e),z=(0,a.getCurrentInstance)(),B=()=>!!z?.vnode.props?.onSelect,V=(e,t)=>{let n=C.value[t],r=R(T(e,t));return C.value.length>1?`${w.value[e]}, ${n?.name}: ${r}`:`${w.value[e]}: ${r}`},H=(e,t)=>{let n=C.value[t],r=n?.data[e];return{kind:`series`,x:r?.x??w.value[e],y:r?.y??0,seriesName:n?.name??``,seriesIndex:t,index:e,point:r??{x:w.value[e],y:0}}},U=e=>{let t=e.currentTarget.ownerSVGElement;if(!t)return null;let n=t.getBoundingClientRect();return{x:e.clientX-n.left,y:e.clientY-n.top}},W=(e,t)=>{let n=C.value.length;if(n<=1)return 0;let r=U(e);if(!r)return 0;if(v.stacked){let e=S.value?r.x:r.y;for(let r=0;r<n;r+=1){let[n,i]=E(t,r),a=j.value(n),o=j.value(i);if(e>=Math.min(a,o)&&e<=Math.max(a,o))return r}return n-1}let i=(S.value?r.y:r.x)-N(t),a=Math.floor(i/(F.value||1));return Math.min(Math.max(a,0),n-1)},G=(e,t)=>{B()&&y(`select`,H(t,W(e,t)))},K=(e,t,n)=>{B()&&(e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),y(`select`,H(t,n))))},q=(0,a.ref)(null),J=(0,a.ref)({x:0,y:0}),Y=(e,t)=>{let n=U(e);n&&(J.value={x:n.x+12,y:n.y+12},q.value=t)},X=(0,a.computed)(()=>q.value===null?[]:C.value.map(e=>({label:e.name,value:R(e.data[q.value]?.y??0),color:e.color})));return(r,i)=>((0,a.openBlock)(),(0,a.createBlock)(t.u,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&C.value.length>0},{legend:(0,a.withCtx)(()=>[(0,a.createVNode)(n.t,{items:C.value.map(e=>({label:e.name,color:e.color}))},null,8,[`items`])]),default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`div`,{ref_key:`root`,ref:b,class:`nb-bar-chart`},[((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,{width:(0,a.unref)(x).width,height:(0,a.unref)(x).height,class:(0,a.normalizeClass)([`nb-chart__svg`,{"nb-chart__svg--selectable":B()}]),role:B()?`group`:`img`,"aria-label":e.title||`Bar chart`,onMouseleave:i[0]||=e=>q.value=null},[e.showGrid&&(0,a.unref)(x).width>0?((0,a.openBlock)(),(0,a.createElementBlock)(`g`,s,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(M.value,e=>((0,a.openBlock)(),(0,a.createElementBlock)(`line`,{key:`grid-${e}`,class:`nb-chart__gridline`,x1:S.value?j.value(e):k.value.x0,x2:S.value?j.value(e):k.value.x1,y1:S.value?k.value.y0:j.value(e),y2:S.value?k.value.y1:j.value(e)},null,8,c))),128))])):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`g`,l,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(M.value,e=>((0,a.openBlock)(),(0,a.createElementBlock)(`text`,{key:`vt-${e}`,x:S.value?j.value(e):k.value.x0-6,y:S.value?k.value.y1+14:j.value(e),"text-anchor":S.value?`middle`:`end`,"dominant-baseline":S.value?`auto`:`middle`},(0,a.toDisplayString)(R(e)),9,u))),128))]),(0,a.createElementVNode)(`g`,d,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(w.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`text`,{key:`ct-${t}`,x:S.value?k.value.x0-6:P(t),y:S.value?P(t):k.value.y1+14,"text-anchor":S.value?`end`:`middle`,"dominant-baseline":S.value?`middle`:`auto`},(0,a.toDisplayString)(e),9,f))),128))]),(0,a.createElementVNode)(`line`,{class:`nb-chart__axis-line`,x1:S.value?j.value(0):k.value.x0,x2:S.value?j.value(0):k.value.x1,y1:S.value?k.value.y0:j.value(0),y2:S.value?k.value.y1:j.value(0)},null,8,p),((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(w.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`g`,{key:`g-${t}`},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(C.value,(e,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`rect`,(0,a.mergeProps)({key:`${t}-${n}`,class:[`nb-chart__bar`,{"is-dim":q.value!==null&&q.value!==t}]},{ref_for:!0},I(t,n),{fill:e.color,tabindex:B()?0:void 0,role:B()?`button`:void 0,"aria-label":B()?V(t,n):void 0,onKeydown:e=>K(e,t,n)}),null,16,m))),128))]))),128)),(0,a.createElementVNode)(`g`,h,[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(w.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`rect`,(0,a.mergeProps)({key:`hover-${t}`},{ref_for:!0},L(t),{fill:`transparent`,onMouseenter:e=>q.value=t,onMousemove:e=>Y(e,t),onClick:e=>G(e,t)}),null,16,g))),128))])],42,o)),(0,a.createVNode)(t.l,{visible:e.showTooltip&&q.value!==null,x:J.value.x,y:J.value.y,title:q.value===null?``:String(w.value[q.value]),rows:X.value},null,8,[`visible`,`x`,`y`,`title`,`rows`])],512)]),_:1},8,[`title`,`subtitle`,`height`,`show-legend`]))}}),v=e.t(_,[[`__scopeId`,`data-v-6e97c73e`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return v}});
|
|
@@ -1,8 +1,8 @@
|
|
|
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 { i as o, r as s, t as c } from "./scales-
|
|
5
|
-
import { t as ee } 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 { i as o, r as s, t as c } from "./scales-BjSg0Ayo.js";
|
|
5
|
+
import { t as ee } from "./useChartSize-CBOK3yq5.js";
|
|
6
6
|
import { Fragment as l, computed as u, createBlock as te, createCommentVNode as ne, createElementBlock as d, createElementVNode as f, createVNode as p, defineComponent as m, getCurrentInstance as re, mergeProps as h, normalizeClass as ie, openBlock as g, ref as _, renderList as v, toDisplayString as y, unref as b, withCtx as x } from "vue";
|
|
7
7
|
//#region src/components/Charts/BarChart.vue?vue&type=script&setup=true&lang.ts
|
|
8
8
|
var ae = [
|
|
@@ -1,6 +1,6 @@
|
|
|
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-
|
|
3
|
+
import { t as n } from "./Button-CV2mm5ZB.js";
|
|
4
4
|
import { useBlueprint as r } from "./composables/useBlueprint.composable.mjs";
|
|
5
5
|
import { computed as i, createBlock as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, createVNode as l, defineComponent as u, normalizeClass as d, openBlock as f, unref as p } from "vue";
|
|
6
6
|
import * as m from "@nubisco/ui/icons/magnifying-glass-plus";
|
|
@@ -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(`./composables/useBlueprint.composable.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/magnifying-glass-plus`);o=e.n(o);let s=require(`@nubisco/ui/icons/magnifying-glass-minus`);s=e.n(s);let c=require(`@nubisco/ui/icons/frame-corners`);c=e.n(c);let l=require(`@nubisco/ui/icons/crosshair`);l=e.n(l);let u=require(`@nubisco/ui/icons/tree-structure`);u=e.n(u);let d=require(`@nubisco/ui/icons/align-left`);d=e.n(d);let f=require(`@nubisco/ui/icons/align-center-horizontal`);f=e.n(f);let p=require(`@nubisco/ui/icons/align-right`);p=e.n(p);let m=require(`@nubisco/ui/icons/align-top`);m=e.n(m);let h=require(`@nubisco/ui/icons/align-center-vertical`);h=e.n(h);let g=require(`@nubisco/ui/icons/align-bottom`);g=e.n(g);let _=require(`@nubisco/ui/icons/arrows-out-line-horizontal`);_=e.n(_);let v=require(`@nubisco/ui/icons/arrows-out-line-vertical`);v=e.n(v);var y={class:`nb-blueprint-controls__group`},b={key:0,class:`nb-blueprint-controls__group`},x=(0,a.defineComponent)({__name:`BlueprintControls`,props:{position:{default:`bottom-right`},orientation:{default:`vertical`},show:{default:`always`},autoLayout:{type:Boolean,default:!0},alignment:{type:Boolean,default:!0}},setup(e){let t=n.r.Small,x=e,S=i.useBlueprint(),C=(0,a.computed)(()=>x.show===`always`||S.isEditMode.value),w=(0,a.computed)(()=>x.alignment&&S.selectedIds.value.size>=2);return(n,i)=>C.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:0,class:(0,a.normalizeClass)([`nb-blueprint-controls`,[`nb-blueprint-controls--${e.position}`,`is-${e.orientation}`]]),role:`toolbar`,"aria-label":`Blueprint controls`},[(0,a.createElementVNode)(`div`,y,[(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:o,title:`Zoom in`,"aria-label":`Zoom in`,onClick:i[0]||=e=>(0,a.unref)(S).zoomIn()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:s,title:`Zoom out`,"aria-label":`Zoom out`,onClick:i[1]||=e=>(0,a.unref)(S).zoomOut()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:c,title:`Fit to view`,"aria-label":`Fit to view`,onClick:i[2]||=e=>(0,a.unref)(S).fitToView()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:l,title:`Center`,"aria-label":`Center`,onClick:i[3]||=e=>(0,a.unref)(S).centerView()},null,8,[`size`]),e.autoLayout?((0,a.openBlock)(),(0,a.createBlock)(r.t,{key:0,variant:`ghost`,size:(0,a.unref)(t),icon:u,title:`Auto layout`,"aria-label":`Auto layout`,onClick:i[4]||=e=>(0,a.unref)(S).autoLayout()},null,8,[`size`])):(0,a.createCommentVNode)(``,!0)]),w.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,b,[(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:d,title:`Align left`,"aria-label":`Align left`,onClick:i[5]||=e=>(0,a.unref)(S).alignLeft()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:f,title:`Align horizontal center`,"aria-label":`Align horizontal center`,onClick:i[6]||=e=>(0,a.unref)(S).alignCenter()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:p,title:`Align right`,"aria-label":`Align right`,onClick:i[7]||=e=>(0,a.unref)(S).alignRight()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:m,title:`Align top`,"aria-label":`Align top`,onClick:i[8]||=e=>(0,a.unref)(S).alignTop()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:h,title:`Align vertical center`,"aria-label":`Align vertical center`,onClick:i[9]||=e=>(0,a.unref)(S).alignMiddle()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:g,title:`Align bottom`,"aria-label":`Align bottom`,onClick:i[10]||=e=>(0,a.unref)(S).alignBottom()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:_,title:`Distribute horizontally`,"aria-label":`Distribute horizontally`,onClick:i[11]||=e=>(0,a.unref)(S).distributeHorizontally()},null,8,[`size`]),(0,a.createVNode)(r.t,{variant:`ghost`,size:(0,a.unref)(t),icon:v,title:`Distribute vertically`,"aria-label":`Distribute vertically`,onClick:i[12]||=e=>(0,a.unref)(S).distributeVertically()},null,8,[`size`])])):(0,a.createCommentVNode)(``,!0)],2)):(0,a.createCommentVNode)(``,!0)}}),S=t.t(x,[[`__scopeId`,`data-v-5b86517c`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return S}});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
2
|
-
import { t } from "./CheckboxGroup.context-
|
|
2
|
+
import { t } from "./CheckboxGroup.context-BssNljp4.js";
|
|
3
3
|
import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, inject as s, normalizeClass as c, openBlock as l, renderSlot as u, toDisplayString as d } from "vue";
|
|
4
4
|
//#region src/components/Checkbox.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var f = { class: "nb-checkbox__control" }, p = [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./CheckboxGroup.context-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),t=require(`./CheckboxGroup.context-DYPnnK72.cjs`);let n=require(`vue`);var r={class:`nb-checkbox__control`},i=[`checked`,`disabled`,`indeterminate`],a={class:`nb-checkbox__box`},o={key:0,class:`nb-checkbox__check`,viewBox:`0 0 10 8`,fill:`none`},s={key:1,class:`nb-checkbox__dash`},c={key:0,class:`nb-checkbox__label`},l=(0,n.defineComponent)({__name:`Checkbox`,props:{modelValue:{type:Boolean,default:!1},indeterminate:{type:Boolean,default:!1},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:`checkbox`},label:{}},emits:[`update:modelValue`],setup(e,{emit:l}){let u=e,d=l,f=(0,n.inject)(t.t,null),p=(0,n.computed)(()=>u.disabled||!!f?.disabled.value);function m(e){p.value||d(`update:modelValue`,e.target.checked)}return(t,l)=>((0,n.openBlock)(),(0,n.createElementBlock)(`label`,{class:(0,n.normalizeClass)([`nb-checkbox`,{"nb-checkbox--disabled":p.value}])},[(0,n.createElementVNode)(`span`,r,[(0,n.createElementVNode)(`input`,{type:`checkbox`,checked:e.modelValue,disabled:p.value,indeterminate:e.indeterminate,class:`nb-checkbox__input`,onChange:m},null,40,i),(0,n.createElementVNode)(`span`,a,[e.modelValue&&!e.indeterminate?((0,n.openBlock)(),(0,n.createElementBlock)(`svg`,o,[...l[0]||=[(0,n.createElementVNode)(`path`,{d:`M1 4l3 3 5-6`,stroke:`currentColor`,"stroke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,-1)]])):(0,n.createCommentVNode)(``,!0),e.indeterminate?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,s)):(0,n.createCommentVNode)(``,!0)])]),e.label?((0,n.openBlock)(),(0,n.createElementBlock)(`span`,c,(0,n.toDisplayString)(e.label),1)):(0,n.renderSlot)(t.$slots,`default`,{key:1},void 0,!0)],2))}}),u=e.t(l,[[`__scopeId`,`data-v-3f69d297`]]);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
|
-
import { t } from "./Label-
|
|
3
|
-
import { t as n } from "./Message-
|
|
4
|
-
import { t as r } from "./CheckboxGroup.context-
|
|
2
|
+
import { t } from "./Label-CiWiUQ_H.js";
|
|
3
|
+
import { t as n } from "./Message-SQvoXiWl.js";
|
|
4
|
+
import { t as r } from "./CheckboxGroup.context-BssNljp4.js";
|
|
5
5
|
import { 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, provide as p, renderSlot as m, toDisplayString as h, withCtx as g } from "vue";
|
|
6
6
|
//#region src/components/CheckboxGroup.d.ts
|
|
7
7
|
var _ = /* @__PURE__ */ function(e) {
|
|
@@ -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`),r=require(`./CheckboxGroup.context-DYPnnK72.cjs`);let i=require(`vue`);var a=function(e){return e.Horizontal=`horizontal`,e.Vertical=`vertical`,e}(a||{}),o=[`aria-label`],s=(0,i.defineComponent)({__name:`CheckboxGroup`,props:{direction:{default:a.Vertical},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{default:`checkbox-group`},label:{},error:{default:void 0},warning:{default:void 0},helper:{default:void 0}},setup(e){let a=e;(0,i.provide)(r.t,{disabled:(0,i.computed)(()=>a.disabled)});let s=(0,i.computed)(()=>[`nb-checkbox-group`,{"nb-checkbox-group--error":!!a.error,"nb-checkbox-group--warning":!a.error&&!!a.warning,"nb-checkbox-group--disabled":a.disabled}]);return(r,a)=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{class:(0,i.normalizeClass)(s.value),role:`group`,"aria-label":e.label||void 0},[e.label?((0,i.openBlock)(),(0,i.createBlock)(t.t,{key:0,disabled:e.disabled},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.label),1)]),_:1},8,[`disabled`])):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,{class:(0,i.normalizeClass)([`nb-checkbox-group__items`,`nb-checkbox-group__items--${e.direction}`])},[(0,i.renderSlot)(r.$slots,`default`,{},void 0,!0)],2),e.error?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:1,variant:`error`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.error),1)]),_:1})):e.warning?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:2,variant:`warning`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.warning),1)]),_:1})):e.helper?((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:3,variant:`helper`,class:`nb-checkbox-group__message`},{default:(0,i.withCtx)(()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.helper),1)]),_:1})):(0,i.createCommentVNode)(``,!0)],10,o))}}),c=e.t(s,[[`__scopeId`,`data-v-01e35535`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
|
|
@@ -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 "./Grid-
|
|
3
|
+
import { t as n } from "./Label-CiWiUQ_H.js";
|
|
4
|
+
import { t as r } from "./Grid-DA2jibMM.js";
|
|
5
5
|
import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createTextVNode as l, createVNode as u, defineComponent as d, mergeModels as f, normalizeClass as p, normalizeStyle as m, openBlock as h, ref as g, renderList as _, renderSlot as v, toDisplayString as y, unref as b, useId as x, useModel as S, watch as C, withCtx as w } from "vue";
|
|
6
6
|
import { light as T } from "@nubisco/ui/icons/check";
|
|
7
7
|
import * as E from "@nubisco/ui/icons/empty";
|
|
@@ -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(`./Grid-HifmWSUS.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/check`),s=require(`@nubisco/ui/icons/empty`);s=e.n(s);var c={key:1,class:`nb-color-strip-wrapper__inner-header`},l={key:1,class:`nb-color-strip-wrapper__inner-label`},u=30,d=8,f=(0,a.defineComponent)({__name:`ColorStrip`,props:(0,a.mergeModels)({options:{default:()=>[`#DCDCDC`,`#C0C0C0`,`#808080`]},onlyView:{type:Boolean,default:!1},allowMultiple:{type:Boolean,default:!1},wrap:{type:Boolean,default:!1},showNull:{type:Boolean,default:!1},variant:{default:`default`},id:{default:void 0},label:{default:void 0}},{modelValue:{},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,f=`nb-color-strip-${(0,a.useId)()}`,p=(0,a.computed)(()=>t.id??f),m=(0,a.useModel)(e,`modelValue`,{set:e=>e}),h=(0,a.computed)(()=>t.options.map(e=>typeof e==`string`?{value:e,color:e}:{...e,color:e.color||`#FFFFFF`,value:e.value===void 0?e.color:e.value})),g={id:`null-option`,value:null,color:`transparent`,label:`None`},_=(0,a.ref)(m.value==null);(0,a.watch)(()=>m.value,e=>{e??(_.value=!0)});let v=(0,a.computed)(()=>t.allowMultiple?!1:t.onlyView?t.showNull:t.showNull||_.value),y=(0,a.computed)(()=>v.value?[g,...h.value]:h.value),b=(0,a.computed)(()=>{if(!t.wrap)return{maxWidth:`none`,flexWrap:`nowrap`};let e=y.value.length;if(e<=0)return;let n=Math.ceil(Math.sqrt(e));return{maxWidth:`${n*u+(n-1)*d}px`,flexWrap:`wrap`}}),x=(0,a.computed)(()=>({"nb-color-strip":!0,"only-view":t.onlyView})),S=e=>t.onlyView?!1:e===null?m.value==null:e===void 0?!1:t.allowMultiple?Array.isArray(m.value)&&m.value.includes(e):m.value===e,C=e=>({"nb-color-strip-color":!0,"nb-color-strip-color-null":T(e),selected:!t.onlyView&&S(e.value)}),w=e=>{if(!T(e))return{backgroundColor:e.color}},T=e=>e.id===`null-option`,E=e=>S(e.value)?`duotone`:`regular`,D=e=>{if(e!==void 0){if(!t.allowMultiple&&e===null){m.value=null;return}if(t.allowMultiple){let t=Array.isArray(m.value)?m.value.slice():[],n=t.indexOf(e);n===-1?t.push(e):t.splice(n,1),m.value=t}else m.value=e}};function O(e){let t=typeof e==`string`?e:e.color,{r:n,g:r,b:i}=k((t&&t.startsWith(`var(`)?getComputedStyle(document.documentElement).getPropertyValue(t.slice(4,-1).trim()).trim():t)||`#FFFFFF`);return(.299*n+.587*r+.114*i)/255>.5?`black`:`white`}function k(e){let t=e.replace(`#`,``);t.length===3&&(t=t.split(``).map(e=>e+e).join(``));let n=parseInt(t,16);return{r:n>>16&255,g:n>>8&255,b:n&255}}return(t,u)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)([`nb-color-strip-wrapper`,`nb-color-strip-wrapper--${e.variant}`])},[e.variant===`default`?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[t.$slots.label?(0,a.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):e.label?((0,a.openBlock)(),(0,a.createBlock)(r.t,{key:1,for:p.value,disabled:!1},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)]),_:1},8,[`for`])):(0,a.createCommentVNode)(``,!0)],64)):(0,a.createCommentVNode)(``,!0),e.variant===`fluid`&&(e.label||t.$slots.label)?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,c,[t.$slots.label?(0,a.renderSlot)(t.$slots,`label`,{key:0},void 0,!0):((0,a.openBlock)(),(0,a.createElementBlock)(`label`,l,(0,a.toDisplayString)(e.label),1))])):(0,a.createCommentVNode)(``,!0),(0,a.createVNode)(i.t,{id:p.value,dir:`row`,gap:`xs`,class:(0,a.normalizeClass)(x.value),shrink:!1,style:(0,a.normalizeStyle)(b.value)},{default:(0,a.withCtx)(()=>[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(y.value,t=>((0,a.openBlock)(),(0,a.createBlock)(i.t,{is:`button`,key:`option-${t.id||t.value}`,align:`center`,justify:`center`,class:(0,a.normalizeClass)(C(t)),style:(0,a.normalizeStyle)(w(t)),disabled:t.disabled,onClick:n=>!e.onlyView&&D(t.value)},{default:(0,a.withCtx)(()=>[!e.onlyView&&S(t.value)&&!T(t)?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:(0,a.unref)(o.light),weight:`light`,color:O(t)},null,8,[`name`,`color`])):(0,a.createCommentVNode)(``,!0),T(t)?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:1,name:s,weight:E(t)},null,8,[`weight`])):(0,a.createCommentVNode)(``,!0)]),_:2},1032,[`class`,`style`,`disabled`,`onClick`]))),128))]),_:1},8,[`id`,`class`,`style`])],2))}}),p=t.t(f,[[`__scopeId`,`data-v-ddc31632`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { useReducedMotion as e } from "./composables/useReducedMotion.composable.mjs";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
3
3
|
import { t as n } from "./Icon-rREAqsu0.js";
|
|
4
|
-
import { t as r } from "./Button-
|
|
5
|
-
import { t as i } from "./Message-
|
|
6
|
-
import { i as a, r as ee, t as te } from "./Modal-
|
|
7
|
-
import { t as ne } from "./TextInput-
|
|
4
|
+
import { t as r } from "./Button-CV2mm5ZB.js";
|
|
5
|
+
import { t as i } from "./Message-SQvoXiWl.js";
|
|
6
|
+
import { i as a, r as ee, t as te } from "./Modal-DAcbddGc.js";
|
|
7
|
+
import { t as ne } from "./TextInput-C_i6Miob.js";
|
|
8
8
|
import { 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, onMounted as re, onUnmounted as ie, openBlock as g, ref as _, renderSlot as ae, toDisplayString as v, unref as y, useId as oe, useSlots as se, watch as b, withCtx as x, withKeys as ce, withModifiers as le } from "vue";
|
|
9
9
|
import { regular as ue } from "@nubisco/ui/icons/warning";
|
|
10
10
|
import { regular as de } from "@nubisco/ui/icons/check";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Button-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Icon-C8R_r_In.cjs`),r=require(`./Button-S8xZ0EGV.cjs`),i=require(`./Message-DjxOb8mu.cjs`),a=require(`./Modal-nmkOUH0U.cjs`),o=require(`./TextInput--u9htMqc.cjs`);let s=require(`vue`),c=require(`@nubisco/ui/icons/warning`),ee=require(`@nubisco/ui/icons/check`);var te={key:0,class:`nb-confirm__message`},ne={key:0,class:`nb-confirm__subject-kind`},l={class:`nb-confirm__subject-name`},u={key:1,class:`nb-confirm__gate`},d={class:`nb-confirm__live`},f={key:0,class:`nb-confirm__status`,role:`status`},p={key:1,class:`nb-confirm__status nb-confirm__status--success`,role:`status`},m=(0,s.defineComponent)({__name:`Confirm`,props:{open:{type:Boolean,default:!1},title:{},message:{default:void 0},subject:{default:void 0},subjectLabel:{default:void 0},confirmLabel:{default:`Confirm`},cancelLabel:{default:`Cancel`},tone:{default:`danger`},typeToConfirm:{default:void 0},typeToConfirmLabel:{default:void 0},typeToConfirmHelper:{default:void 0},busy:{type:Boolean,default:!1},busyLabel:{default:`Working...`},succeeded:{type:Boolean,default:!1},successLabel:{default:void 0},error:{default:void 0},size:{default:`sm`},floatingSelectors:{default:()=>[]},contentClass:{default:void 0}},emits:[`confirm`,`cancel`],setup(t,{expose:m,emit:h}){let g=t,_=h,v=(0,s.useId)(),y=`nb-confirm-title-${v}`,b=`nb-confirm-body-${v}`,x=(0,s.useSlots)(),S=(0,s.ref)(null),C=(0,s.ref)(null),w=(0,s.ref)(null),T=(0,s.ref)(``),E=e.useReducedMotion(),D=(0,s.computed)(()=>g.busy||g.succeeded);function O(){return!!g.message||!!g.subject||!!x.default}let k=(0,s.computed)(()=>g.tone===`danger`?`danger`:`primary`),A=(0,s.computed)(()=>g.typeToConfirmLabel??`Type ${g.typeToConfirm} to confirm`),j=(0,s.computed)(()=>!g.typeToConfirm||T.value.trim()===g.typeToConfirm),M=(0,s.computed)(()=>j.value&&!D.value);function N(){M.value&&_(`confirm`)}function P(){let e=w.value?.$el;return e instanceof HTMLElement?e:null}function F(){return S.value?.closest(`[role="dialog"],[role="alertdialog"]`)??null}function re(){return typeof document>`u`?[]:Array.from(document.querySelectorAll(`[aria-modal="true"]`))}function I(){let e=F();if(!e)return!1;let t=re();return t.length===0||t[t.length-1]===e}let L=[`a[href]:not([tabindex="-1"])`,`area[href]:not([tabindex="-1"])`,`button:not([disabled]):not([tabindex="-1"])`,`input:not([disabled]):not([type="hidden"]):not([tabindex="-1"])`,`select:not([disabled]):not([tabindex="-1"])`,`textarea:not([disabled]):not([tabindex="-1"])`,`summary:not([tabindex="-1"])`,`audio[controls]:not([tabindex="-1"])`,`video[controls]:not([tabindex="-1"])`,`iframe:not([tabindex="-1"])`,`[contenteditable]:not([contenteditable="false"]):not([tabindex="-1"])`,`[tabindex]:not([tabindex="-1"])`].map(e=>`${e}:not([hidden]):not([aria-hidden="true"])`).join(`,`);function R(){return a.i(g.floatingSelectors)}function z(e){return e instanceof Element?!!e.closest(R()):!1}function B(e){let t=F();return!!t&&!!e&&t.contains(e)}function V(){let e=F();return e?Array.from(e.querySelectorAll(L)).filter(e=>e.getAttribute(`aria-disabled`)!==`true`):[]}function H(){let e=F();return e?(e.focus(),!0):!1}function U(){let e=V()[0];e?e.focus():H()}let W=null;function G(){let e=W;W=null,e?.isConnected&&e.focus()}function K(){a.r(F(),E.value)}(0,s.watch)(E,()=>{g.open&&K()}),(0,s.watch)(()=>[g.busy,g.error],async(e,t)=>{if(!g.open)return;let[n,r]=e,i=t?.[0]??!1;if(await(0,s.nextTick)(),n){V().length===0&&H();return}if(i&&r){let e=C.value;e?e.focus():U();return}let a=document.activeElement;!B(a)&&!z(a)&&U()}),(0,s.watch)(()=>g.open,async e=>{e?(W=document.activeElement instanceof HTMLElement?document.activeElement:null,T.value=``,await(0,s.nextTick)(),K(),P()?P()?.focus():H()):G()},{immediate:!0});function q(){D.value||_(`cancel`)}let J=!1,Y=!1;function X(e){let t=e.target;J=B(t)||z(t)}function Z(e){Y=B(e.target)}function ie(){let e=J&&!Y;J=!1,!e&&q()}function Q(e){if(!g.open||z(document.activeElement))return;if(e.key===`Escape`){if(!I())return;e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation(),q();return}if(e.key!==`Tab`||!I())return;let t=V();if(t.length===0){e.preventDefault(),B(document.activeElement)||H();return}let n=t[0],r=t[t.length-1],i=document.activeElement;e.shiftKey&&(i===n||!B(i))?(e.preventDefault(),r.focus()):!e.shiftKey&&i===r?(e.preventDefault(),n.focus()):B(i)||(e.preventDefault(),n.focus())}function $(e){if(!g.open)return;let t=e.relatedTarget;if(t instanceof Element){if(B(t)||z(t))return}else if(t!==null)return;requestAnimationFrame(()=>{if(!g.open)return;let e=document.activeElement;B(e)||z(e)||e&&e!==document.body&&!e.isConnected||I()&&U()})}return typeof document<`u`&&(document.addEventListener(`keydown`,Q,!0),document.addEventListener(`focusout`,$,!0),document.addEventListener(`mousedown`,X,!0),document.addEventListener(`touchstart`,X,!0),document.addEventListener(`click`,Z,!0)),(0,s.onMounted)(()=>{g.open&&(K(),P()?P()?.focus():H())}),(0,s.onUnmounted)(()=>{typeof document<`u`&&(document.removeEventListener(`keydown`,Q,!0),document.removeEventListener(`focusout`,$,!0),document.removeEventListener(`mousedown`,X,!0),document.removeEventListener(`touchstart`,X,!0),document.removeEventListener(`click`,Z,!0)),G()}),m({focusCancel:()=>P()?.focus(),restoreFocus:G,isTopmost:I}),(e,m)=>((0,s.openBlock)(),(0,s.createBlock)(a.t,{open:t.open,size:t.size,role:t.tone===`danger`?`alertdialog`:`dialog`,"labelled-by":y,"described-by":O()?b:void 0,busy:t.busy,"close-on-overlay":!D.value,"close-disabled":D.value,"close-on-escape":!1,"trap-focus":!1,onClose:ie},{header:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`span`,{id:y,class:(0,s.normalizeClass)([`nb-confirm__heading`,`nb-confirm__heading--${t.tone}`])},[t.tone===`danger`?((0,s.openBlock)(),(0,s.createBlock)(n.t,{key:0,name:(0,s.unref)(c.regular),size:16,"aria-hidden":`true`},null,8,[`name`])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,null,(0,s.toDisplayString)(t.title),1)],2)]),footer:(0,s.withCtx)(()=>[(0,s.createVNode)(r.t,{ref_key:`cancelRef`,ref:w,class:`nb-confirm__action nb-confirm__action--cancel`,variant:`ghost`,size:`lg`,disabled:D.value,"data-nb-confirm":`cancel`,onClick:q},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.cancelLabel),1)]),_:1},8,[`disabled`]),(0,s.createVNode)(r.t,{class:`nb-confirm__action nb-confirm__action--confirm`,variant:k.value,size:`lg`,disabled:!M.value,loading:t.busy,"data-nb-confirm":`confirm`,onClick:N},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.confirmLabel),1)]),_:1},8,[`variant`,`disabled`,`loading`])]),default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,{ref_key:`rootRef`,ref:S,class:(0,s.normalizeClass)([`nb-confirm`,t.contentClass])},[O()?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:0,id:b,class:`nb-confirm__body`},[(0,s.renderSlot)(e.$slots,`default`,{},()=>[t.message?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,te,(0,s.toDisplayString)(t.message),1)):(0,s.createCommentVNode)(``,!0)],!0),t.subject?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,{key:0,class:(0,s.normalizeClass)([`nb-confirm__subject`,`nb-confirm__subject--${t.tone}`])},[t.subjectLabel?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,ne,(0,s.toDisplayString)(t.subjectLabel),1)):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`span`,l,(0,s.toDisplayString)(t.subject),1)],2)):(0,s.createCommentVNode)(``,!0)])):(0,s.createCommentVNode)(``,!0),t.typeToConfirm?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,u,[(0,s.createVNode)(o.t,{modelValue:T.value,"onUpdate:modelValue":m[0]||=e=>T.value=e,class:`nb-confirm__gate-field`,label:A.value,helper:t.typeToConfirmHelper,disabled:D.value,autocomplete:`off`,spellcheck:`false`,"data-nb-confirm":`gate`,onKeydown:m[1]||=(0,s.withKeys)((0,s.withModifiers)(()=>{},[`prevent`]),[`enter`])},null,8,[`modelValue`,`label`,`helper`,`disabled`])])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`div`,d,[t.busy?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,f,(0,s.toDisplayString)(t.busyLabel),1)):(0,s.createCommentVNode)(``,!0),t.succeeded&&t.successLabel?((0,s.openBlock)(),(0,s.createElementBlock)(`p`,p,[(0,s.createVNode)(n.t,{name:(0,s.unref)(ee.regular),size:14,"aria-hidden":`true`},null,8,[`name`]),(0,s.createElementVNode)(`span`,null,(0,s.toDisplayString)(t.successLabel),1)])):(0,s.createCommentVNode)(``,!0),t.error?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{key:2,ref_key:`errorRef`,ref:C,class:`nb-confirm__error`,tabindex:`-1`},[(0,s.createVNode)(i.t,{variant:`error`},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.error),1)]),_:1})],512)):(0,s.createCommentVNode)(``,!0)])],2)]),_:3},8,[`open`,`size`,`role`,`described-by`,`busy`,`close-on-overlay`,`close-disabled`]))}}),h=t.t(m,[[`__scopeId`,`data-v-683eafb1`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
|
|
@@ -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(`./Icon-C8R_r_In.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./Button-D-XSNjSL.cjs`),o=require(`./Grid-DTZTlxd_.cjs`),s=require(`./Checkbox-9bxwFy5R.cjs`);let c=require(`vue`),l=require(`@nubisco/ui/icons/arrows-down-up`);l=e.n(l);let u=require(`@nubisco/ui/icons/arrow-up`);u=e.n(u);let d=require(`@nubisco/ui/icons/arrow-down`);d=e.n(d);var f={key:0,class:`nb-data-table__toolbar`},p=[`inert`,`aria-hidden`],m={key:0},h={key:0,class:`nb-data-table__title`},g={key:1,class:`nb-data-table__description`},_=[`inert`,`aria-hidden`],v={key:1,class:`nb-data-table__batch`,role:`region`,"aria-label":`Table batch actions`},y={class:`nb-data-table__batch-count`},b={class:`nb-data-table__batch-actions`},x={class:`nb-data-table__scroll`},ee=[`aria-label`,`aria-busy`],te={key:0,class:`nb-data-table__col-select`},ne={key:1,class:`nb-data-table__col-actions`},re={class:`nb-data-table__head`},ie={key:0,scope:`col`,class:`nb-data-table__th nb-data-table__select-cell`},ae=[`aria-sort`],oe=[`onClick`],se={class:`nb-data-table__th-label`},ce={key:1,class:`nb-data-table__th-label`},le={key:1,scope:`col`,class:`nb-data-table__th nb-data-table__actions-cell`},ue={class:`nb-data-table__body`},de={key:0,class:`nb-data-table__td`},fe={key:1,class:`nb-data-table__td`},pe={key:1,class:`nb-data-table__state-row`},S=[`colspan`],C={key:2,class:`nb-data-table__state-row`},w=[`colspan`],T=[`aria-selected`,`onClick`],E=[`checked`,`aria-label`,`onChange`],D={key:1,class:`nb-data-table__footer`},O=(0,c.defineComponent)({__name:`DataTable`,props:{columns:{},rows:{},rowKey:{},size:{default:n.r.Medium},sortState:{default:null},selectable:{default:`none`},selected:{default:()=>[]},loading:{type:Boolean,default:!1},skeletonRows:{default:5},error:{default:void 0},emptyMessage:{default:void 0},stickyHeader:{type:Boolean,default:!0},zebra:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},title:{default:void 0},description:{default:void 0},ariaLabel:{default:void 0}},emits:[`sort`,`update:selected`,`row-click`],setup(e,{emit:t}){let n=e,{layerProps:O}=i.useSurfaceLayer(),k=t,A=(0,c.useSlots)(),j=`nb-data-table-select-${(0,c.useId)()}`,M=(0,c.computed)(()=>n.size),N=(0,c.computed)(()=>n.columns.filter(e=>!e.hidden)),P=(0,c.computed)(()=>n.selectable!==`none`),F=(0,c.computed)(()=>!!A[`row-actions`]),I=(0,c.computed)(()=>N.value.length+(P.value?1:0)+(F.value?1:0));function L(e){if(e.width!=null)return{width:typeof e.width==`number`?`${e.width}px`:e.width}}function R(e,t){return t[e.key]}function z(e){return e==null?``:String(e)}let B=e=>e.column.render?.(e.row,R(e.column,e.row),e.rowIndex)??null;B.props=[`column`,`row`,`rowIndex`];function V(e){let t=n.rowKey;return typeof t==`function`?t(e):e[t]}let H=(0,c.computed)(()=>new Set(n.selected)),me=(0,c.computed)(()=>n.selected),U=(0,c.computed)(()=>n.selected.length);function W(e){return H.value.has(V(e))}let G=(0,c.computed)(()=>n.rows.map(e=>V(e))),K=(0,c.computed)(()=>G.value.length>0&&G.value.every(e=>H.value.has(e))),he=(0,c.computed)(()=>!K.value&&G.value.some(e=>H.value.has(e))),q=(0,c.ref)(null),J=!1;function Y(e){J=e.shiftKey}(0,c.watch)(G,()=>{q.value=null});function ge(e,t){let r=V(e),i=new Set(n.selected),a=!i.has(r),o=q.value,s=e=>{a?i.add(e):i.delete(e)};if(J&&o!==null&&o!==t){let e=Math.min(o,t),r=Math.max(o,t);for(let t=e;t<=r;t++){let e=n.rows[t];e&&s(V(e))}}else s(r),q.value=t;J=!1,k(`update:selected`,[...i])}function _e(e){k(`update:selected`,[V(e)])}function ve(){let e=new Set(n.selected);K.value?G.value.forEach(t=>e.delete(t)):G.value.forEach(t=>e.add(t)),k(`update:selected`,[...e])}function X(){k(`update:selected`,[])}let Z=(0,c.computed)(()=>n.selectable!==`none`&&!!A[`batch-actions`]),Q=(0,c.computed)(()=>Z.value&&U.value>0),ye=(0,c.computed)(()=>!!n.title||!!n.description||!!A.toolbar||!!A.search||!!A[`toolbar-actions`]),be=(0,c.computed)(()=>ye.value||Z.value);function $(e){return!!n.sortState&&n.sortState.key===e.key&&n.sortState.direction!==`none`}function xe(e){return $(e)?n.sortState.direction===`asc`?`ascending`:`descending`:`none`}function Se(e){return $(e)?n.sortState.direction===`asc`?u:d:l}function Ce(e){return e===`asc`?`desc`:e===`desc`?`none`:`asc`}function we(e){let t=n.sortState&&n.sortState.key===e.key?n.sortState.direction:`none`;k(`sort`,{key:e.key,direction:Ce(t)})}let Te=(0,c.getCurrentInstance)(),Ee=(0,c.computed)(()=>!!Te?.vnode.props?.onRowClick);function De(e,t){k(`row-click`,e,t)}return(t,n)=>((0,c.openBlock)(),(0,c.createElementBlock)(`div`,(0,c.mergeProps)({class:[`nb-data-table`,`nb-data-table--${e.size}`,{"nb-data-table--zebra":e.zebra},{"nb-data-table--sticky":e.stickyHeader},{"nb-data-table--fill":e.fill}]},(0,c.unref)(O)),[be.value?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,f,[(0,c.createElementVNode)(`div`,{class:`nb-data-table__toolbar-heading`,inert:Q.value||void 0,"aria-hidden":Q.value||void 0},[(0,c.renderSlot)(t.$slots,`toolbar`,{selectedCount:U.value},()=>[e.title||e.description?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,m,[e.title?((0,c.openBlock)(),(0,c.createElementBlock)(`h2`,h,(0,c.toDisplayString)(e.title),1)):(0,c.createCommentVNode)(``,!0),e.description?((0,c.openBlock)(),(0,c.createElementBlock)(`p`,g,(0,c.toDisplayString)(e.description),1)):(0,c.createCommentVNode)(``,!0)])):(0,c.createCommentVNode)(``,!0)],!0)],8,p),t.$slots.search||t.$slots[`toolbar-actions`]?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:0,class:`nb-data-table__toolbar-tools`,inert:Q.value||void 0,"aria-hidden":Q.value||void 0},[(0,c.renderSlot)(t.$slots,`search`,{},void 0,!0),(0,c.renderSlot)(t.$slots,`toolbar-actions`,{},void 0,!0)],8,_)):(0,c.createCommentVNode)(``,!0),Q.value?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,v,[(0,c.createElementVNode)(`span`,y,(0,c.toDisplayString)(U.value)+` selected `,1),(0,c.createElementVNode)(`div`,b,[(0,c.renderSlot)(t.$slots,`batch-actions`,{selectedKeys:me.value,clear:X},void 0,!0)]),(0,c.createVNode)(a.t,{class:`nb-data-table__batch-cancel`,variant:`ghost`,size:M.value,onClick:X},{default:(0,c.withCtx)(()=>[...n[2]||=[(0,c.createTextVNode)(` Cancel `,-1)]]),_:1},8,[`size`])])):(0,c.createCommentVNode)(``,!0)])):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,x,[(0,c.createElementVNode)(`table`,{class:`nb-data-table__table`,"aria-label":e.ariaLabel||e.title||void 0,"aria-busy":e.loading||void 0},[(0,c.createElementVNode)(`colgroup`,null,[P.value?((0,c.openBlock)(),(0,c.createElementBlock)(`col`,te)):(0,c.createCommentVNode)(``,!0),((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(N.value,e=>((0,c.openBlock)(),(0,c.createElementBlock)(`col`,{key:`col-${e.key}`,style:(0,c.normalizeStyle)(L(e))},null,4))),128)),F.value?((0,c.openBlock)(),(0,c.createElementBlock)(`col`,ne)):(0,c.createCommentVNode)(``,!0)]),(0,c.createElementVNode)(`thead`,re,[(0,c.createElementVNode)(`tr`,null,[P.value?((0,c.openBlock)(),(0,c.createElementBlock)(`th`,ie,[e.selectable===`multiple`?((0,c.openBlock)(),(0,c.createBlock)(s.t,{key:0,"model-value":K.value,indeterminate:he.value,"aria-label":`Select all rows`,"onUpdate:modelValue":ve},null,8,[`model-value`,`indeterminate`])):(0,c.createCommentVNode)(``,!0)])):(0,c.createCommentVNode)(``,!0),((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(N.value,e=>((0,c.openBlock)(),(0,c.createElementBlock)(`th`,{key:`th-${e.key}`,scope:`col`,class:(0,c.normalizeClass)([`nb-data-table__th`,`nb-data-table__th--${e.align||`left`}`,{"nb-data-table__th--sortable":e.sortable},{"nb-data-table__th--sorted":$(e)}]),"aria-sort":e.sortable?xe(e):void 0},[e.sortable?((0,c.openBlock)(),(0,c.createElementBlock)(`button`,{key:0,type:`button`,class:`nb-data-table__sort`,onClick:t=>we(e)},[(0,c.createElementVNode)(`span`,se,[(0,c.renderSlot)(t.$slots,`header-${e.key}`,{column:e},()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.header),1)],!0)]),(0,c.createVNode)(r.t,{name:Se(e),class:`nb-data-table__sort-icon`,"aria-hidden":`true`},null,8,[`name`])],8,oe)):((0,c.openBlock)(),(0,c.createElementBlock)(`span`,ce,[(0,c.renderSlot)(t.$slots,`header-${e.key}`,{column:e},()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.header),1)],!0)]))],10,ae))),128)),F.value?((0,c.openBlock)(),(0,c.createElementBlock)(`th`,le,[...n[3]||=[(0,c.createElementVNode)(`span`,{class:`nb-sr-only`},`Row actions`,-1)]])):(0,c.createCommentVNode)(``,!0)])]),(0,c.createElementVNode)(`tbody`,ue,[e.loading?((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,{key:0},(0,c.renderList)(e.skeletonRows,e=>((0,c.openBlock)(),(0,c.createElementBlock)(`tr`,{key:`skeleton-${e}`,class:`nb-data-table__row nb-data-table__row--skeleton`},[P.value?((0,c.openBlock)(),(0,c.createElementBlock)(`td`,de,[...n[4]||=[(0,c.createElementVNode)(`span`,{class:`nb-data-table__skeleton nb-data-table__skeleton--box`},null,-1)]])):(0,c.createCommentVNode)(``,!0),((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(N.value,t=>((0,c.openBlock)(),(0,c.createElementBlock)(`td`,{key:`sk-${e}-${t.key}`,class:`nb-data-table__td`},[...n[5]||=[(0,c.createElementVNode)(`span`,{class:`nb-data-table__skeleton`},null,-1)]]))),128)),F.value?((0,c.openBlock)(),(0,c.createElementBlock)(`td`,fe,[...n[6]||=[(0,c.createElementVNode)(`span`,{class:`nb-data-table__skeleton nb-data-table__skeleton--box`},null,-1)]])):(0,c.createCommentVNode)(``,!0)]))),128)):e.error?((0,c.openBlock)(),(0,c.createElementBlock)(`tr`,pe,[(0,c.createElementVNode)(`td`,{colspan:I.value,class:`nb-data-table__state nb-data-table__state--error`},[(0,c.renderSlot)(t.$slots,`error`,{error:e.error},()=>[(0,c.createVNode)(o.t,{is:`span`,align:`center`,justify:`center`,gap:`xs`,class:`nb-data-table__state-inner`},{default:(0,c.withCtx)(()=>[(0,c.createVNode)(r.t,{name:`warning-circle-fill`,"aria-hidden":`true`}),(0,c.createElementVNode)(`span`,null,(0,c.toDisplayString)(e.error),1)]),_:1})],!0)],8,S)])):e.rows.length?((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,{key:3},(0,c.renderList)(e.rows,(r,i)=>((0,c.openBlock)(),(0,c.createElementBlock)(`tr`,{key:V(r),class:(0,c.normalizeClass)([`nb-data-table__row`,{"nb-data-table__row--selected":W(r)},{"nb-data-table__row--clickable":Ee.value}]),"aria-selected":e.selectable===`none`?void 0:W(r),onClick:e=>De(r,i)},[P.value?((0,c.openBlock)(),(0,c.createElementBlock)(`td`,{key:0,class:`nb-data-table__td nb-data-table__select-cell`,onClick:n[0]||=(0,c.withModifiers)(()=>{},[`stop`]),onMousedown:Y,onKeydown:Y},[e.selectable===`multiple`?((0,c.openBlock)(),(0,c.createBlock)(s.t,{key:0,"model-value":W(r),"aria-label":`Select row ${i+1}`,"onUpdate:modelValue":e=>ge(r,i)},null,8,[`model-value`,`aria-label`,`onUpdate:modelValue`])):((0,c.openBlock)(),(0,c.createElementBlock)(`input`,{key:1,type:`radio`,class:`nb-data-table__radio`,name:j,checked:W(r),"aria-label":`Select row ${i+1}`,onChange:e=>_e(r)},null,40,E))],32)):(0,c.createCommentVNode)(``,!0),((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(N.value,e=>((0,c.openBlock)(),(0,c.createElementBlock)(`td`,{key:`td-${V(r)}-${e.key}`,class:(0,c.normalizeClass)([`nb-data-table__td`,`nb-data-table__td--${e.align||`left`}`,e.cellClass])},[(0,c.renderSlot)(t.$slots,`cell-${e.key}`,{row:r,value:R(e,r),column:e,rowIndex:i},()=>[e.render?((0,c.openBlock)(),(0,c.createBlock)(B,{key:0,column:e,row:r,"row-index":i},null,8,[`column`,`row`,`row-index`])):((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:1},[(0,c.createTextVNode)((0,c.toDisplayString)(z(R(e,r))),1)],64))],!0)],2))),128)),F.value?((0,c.openBlock)(),(0,c.createElementBlock)(`td`,{key:1,class:`nb-data-table__td nb-data-table__actions-cell`,onClick:n[1]||=(0,c.withModifiers)(()=>{},[`stop`])},[(0,c.renderSlot)(t.$slots,`row-actions`,{row:r,rowIndex:i},void 0,!0)])):(0,c.createCommentVNode)(``,!0)],10,T))),128)):((0,c.openBlock)(),(0,c.createElementBlock)(`tr`,C,[(0,c.createElementVNode)(`td`,{colspan:I.value,class:`nb-data-table__state nb-data-table__state--empty`},[(0,c.renderSlot)(t.$slots,`empty`,{},()=>[(0,c.createElementVNode)(`span`,null,(0,c.toDisplayString)(e.emptyMessage||`No data to display`),1)],!0)],8,w)]))])],8,ee)]),t.$slots.footer?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,D,[(0,c.renderSlot)(t.$slots,`footer`,{},void 0,!0)])):(0,c.createCommentVNode)(``,!0)],16))}}),k=t.t(O,[[`__scopeId`,`data-v-e2562ae7`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return k}});
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-tagjRzOz.cjs`),n=require(`./Size.d-GBIblj2D.cjs`),r=require(`./Icon-C8R_r_In.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./Button-S8xZ0EGV.cjs`),o=require(`./Grid-HifmWSUS.cjs`),s=require(`./Checkbox-D8Curaxc.cjs`);let c=require(`vue`),l=require(`@nubisco/ui/icons/arrows-down-up`);l=e.n(l);let u=require(`@nubisco/ui/icons/arrow-up`);u=e.n(u);let d=require(`@nubisco/ui/icons/arrow-down`);d=e.n(d);var f={key:0,class:`nb-data-table__toolbar`},p=[`inert`,`aria-hidden`],m={key:0},h={key:0,class:`nb-data-table__title`},g={key:1,class:`nb-data-table__description`},_=[`inert`,`aria-hidden`],v={key:1,class:`nb-data-table__batch`,role:`region`,"aria-label":`Table batch actions`},y={class:`nb-data-table__batch-count`},b={class:`nb-data-table__batch-actions`},x={class:`nb-data-table__scroll`},ee=[`aria-label`,`aria-busy`],te={key:0,class:`nb-data-table__col-select`},ne={key:1,class:`nb-data-table__col-actions`},re={class:`nb-data-table__head`},ie={key:0,scope:`col`,class:`nb-data-table__th nb-data-table__select-cell`},ae=[`aria-sort`],oe=[`onClick`],se={class:`nb-data-table__th-label`},ce={key:1,class:`nb-data-table__th-label`},le={key:1,scope:`col`,class:`nb-data-table__th nb-data-table__actions-cell`},ue={class:`nb-data-table__body`},de={key:0,class:`nb-data-table__td`},fe={key:1,class:`nb-data-table__td`},pe={key:1,class:`nb-data-table__state-row`},S=[`colspan`],C={key:2,class:`nb-data-table__state-row`},w=[`colspan`],T=[`aria-selected`,`onClick`],E=[`checked`,`aria-label`,`onChange`],D={key:1,class:`nb-data-table__footer`},O=(0,c.defineComponent)({__name:`DataTable`,props:{columns:{},rows:{},rowKey:{},size:{default:n.r.Medium},sortState:{default:null},selectable:{default:`none`},selected:{default:()=>[]},loading:{type:Boolean,default:!1},skeletonRows:{default:5},error:{default:void 0},emptyMessage:{default:void 0},stickyHeader:{type:Boolean,default:!0},zebra:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},title:{default:void 0},description:{default:void 0},ariaLabel:{default:void 0}},emits:[`sort`,`update:selected`,`row-click`],setup(e,{emit:t}){let n=e,{layerProps:O}=i.useSurfaceLayer(),k=t,A=(0,c.useSlots)(),j=`nb-data-table-select-${(0,c.useId)()}`,M=(0,c.computed)(()=>n.size),N=(0,c.computed)(()=>n.columns.filter(e=>!e.hidden)),P=(0,c.computed)(()=>n.selectable!==`none`),F=(0,c.computed)(()=>!!A[`row-actions`]),I=(0,c.computed)(()=>N.value.length+(P.value?1:0)+(F.value?1:0));function L(e){if(e.width!=null)return{width:typeof e.width==`number`?`${e.width}px`:e.width}}function R(e,t){return t[e.key]}function z(e){return e==null?``:String(e)}let B=e=>e.column.render?.(e.row,R(e.column,e.row),e.rowIndex)??null;B.props=[`column`,`row`,`rowIndex`];function V(e){let t=n.rowKey;return typeof t==`function`?t(e):e[t]}let H=(0,c.computed)(()=>new Set(n.selected)),me=(0,c.computed)(()=>n.selected),U=(0,c.computed)(()=>n.selected.length);function W(e){return H.value.has(V(e))}let G=(0,c.computed)(()=>n.rows.map(e=>V(e))),K=(0,c.computed)(()=>G.value.length>0&&G.value.every(e=>H.value.has(e))),he=(0,c.computed)(()=>!K.value&&G.value.some(e=>H.value.has(e))),q=(0,c.ref)(null),J=!1;function Y(e){J=e.shiftKey}(0,c.watch)(G,()=>{q.value=null});function ge(e,t){let r=V(e),i=new Set(n.selected),a=!i.has(r),o=q.value,s=e=>{a?i.add(e):i.delete(e)};if(J&&o!==null&&o!==t){let e=Math.min(o,t),r=Math.max(o,t);for(let t=e;t<=r;t++){let e=n.rows[t];e&&s(V(e))}}else s(r),q.value=t;J=!1,k(`update:selected`,[...i])}function _e(e){k(`update:selected`,[V(e)])}function ve(){let e=new Set(n.selected);K.value?G.value.forEach(t=>e.delete(t)):G.value.forEach(t=>e.add(t)),k(`update:selected`,[...e])}function X(){k(`update:selected`,[])}let Z=(0,c.computed)(()=>n.selectable!==`none`&&!!A[`batch-actions`]),Q=(0,c.computed)(()=>Z.value&&U.value>0),ye=(0,c.computed)(()=>!!n.title||!!n.description||!!A.toolbar||!!A.search||!!A[`toolbar-actions`]),be=(0,c.computed)(()=>ye.value||Z.value);function $(e){return!!n.sortState&&n.sortState.key===e.key&&n.sortState.direction!==`none`}function xe(e){return $(e)?n.sortState.direction===`asc`?`ascending`:`descending`:`none`}function Se(e){return $(e)?n.sortState.direction===`asc`?u:d:l}function Ce(e){return e===`asc`?`desc`:e===`desc`?`none`:`asc`}function we(e){let t=n.sortState&&n.sortState.key===e.key?n.sortState.direction:`none`;k(`sort`,{key:e.key,direction:Ce(t)})}let Te=(0,c.getCurrentInstance)(),Ee=(0,c.computed)(()=>!!Te?.vnode.props?.onRowClick);function De(e,t){k(`row-click`,e,t)}return(t,n)=>((0,c.openBlock)(),(0,c.createElementBlock)(`div`,(0,c.mergeProps)({class:[`nb-data-table`,`nb-data-table--${e.size}`,{"nb-data-table--zebra":e.zebra},{"nb-data-table--sticky":e.stickyHeader},{"nb-data-table--fill":e.fill}]},(0,c.unref)(O)),[be.value?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,f,[(0,c.createElementVNode)(`div`,{class:`nb-data-table__toolbar-heading`,inert:Q.value||void 0,"aria-hidden":Q.value||void 0},[(0,c.renderSlot)(t.$slots,`toolbar`,{selectedCount:U.value},()=>[e.title||e.description?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,m,[e.title?((0,c.openBlock)(),(0,c.createElementBlock)(`h2`,h,(0,c.toDisplayString)(e.title),1)):(0,c.createCommentVNode)(``,!0),e.description?((0,c.openBlock)(),(0,c.createElementBlock)(`p`,g,(0,c.toDisplayString)(e.description),1)):(0,c.createCommentVNode)(``,!0)])):(0,c.createCommentVNode)(``,!0)],!0)],8,p),t.$slots.search||t.$slots[`toolbar-actions`]?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:0,class:`nb-data-table__toolbar-tools`,inert:Q.value||void 0,"aria-hidden":Q.value||void 0},[(0,c.renderSlot)(t.$slots,`search`,{},void 0,!0),(0,c.renderSlot)(t.$slots,`toolbar-actions`,{},void 0,!0)],8,_)):(0,c.createCommentVNode)(``,!0),Q.value?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,v,[(0,c.createElementVNode)(`span`,y,(0,c.toDisplayString)(U.value)+` selected `,1),(0,c.createElementVNode)(`div`,b,[(0,c.renderSlot)(t.$slots,`batch-actions`,{selectedKeys:me.value,clear:X},void 0,!0)]),(0,c.createVNode)(a.t,{class:`nb-data-table__batch-cancel`,variant:`ghost`,size:M.value,onClick:X},{default:(0,c.withCtx)(()=>[...n[2]||=[(0,c.createTextVNode)(` Cancel `,-1)]]),_:1},8,[`size`])])):(0,c.createCommentVNode)(``,!0)])):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,x,[(0,c.createElementVNode)(`table`,{class:`nb-data-table__table`,"aria-label":e.ariaLabel||e.title||void 0,"aria-busy":e.loading||void 0},[(0,c.createElementVNode)(`colgroup`,null,[P.value?((0,c.openBlock)(),(0,c.createElementBlock)(`col`,te)):(0,c.createCommentVNode)(``,!0),((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(N.value,e=>((0,c.openBlock)(),(0,c.createElementBlock)(`col`,{key:`col-${e.key}`,style:(0,c.normalizeStyle)(L(e))},null,4))),128)),F.value?((0,c.openBlock)(),(0,c.createElementBlock)(`col`,ne)):(0,c.createCommentVNode)(``,!0)]),(0,c.createElementVNode)(`thead`,re,[(0,c.createElementVNode)(`tr`,null,[P.value?((0,c.openBlock)(),(0,c.createElementBlock)(`th`,ie,[e.selectable===`multiple`?((0,c.openBlock)(),(0,c.createBlock)(s.t,{key:0,"model-value":K.value,indeterminate:he.value,"aria-label":`Select all rows`,"onUpdate:modelValue":ve},null,8,[`model-value`,`indeterminate`])):(0,c.createCommentVNode)(``,!0)])):(0,c.createCommentVNode)(``,!0),((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(N.value,e=>((0,c.openBlock)(),(0,c.createElementBlock)(`th`,{key:`th-${e.key}`,scope:`col`,class:(0,c.normalizeClass)([`nb-data-table__th`,`nb-data-table__th--${e.align||`left`}`,{"nb-data-table__th--sortable":e.sortable},{"nb-data-table__th--sorted":$(e)}]),"aria-sort":e.sortable?xe(e):void 0},[e.sortable?((0,c.openBlock)(),(0,c.createElementBlock)(`button`,{key:0,type:`button`,class:`nb-data-table__sort`,onClick:t=>we(e)},[(0,c.createElementVNode)(`span`,se,[(0,c.renderSlot)(t.$slots,`header-${e.key}`,{column:e},()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.header),1)],!0)]),(0,c.createVNode)(r.t,{name:Se(e),class:`nb-data-table__sort-icon`,"aria-hidden":`true`},null,8,[`name`])],8,oe)):((0,c.openBlock)(),(0,c.createElementBlock)(`span`,ce,[(0,c.renderSlot)(t.$slots,`header-${e.key}`,{column:e},()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.header),1)],!0)]))],10,ae))),128)),F.value?((0,c.openBlock)(),(0,c.createElementBlock)(`th`,le,[...n[3]||=[(0,c.createElementVNode)(`span`,{class:`nb-sr-only`},`Row actions`,-1)]])):(0,c.createCommentVNode)(``,!0)])]),(0,c.createElementVNode)(`tbody`,ue,[e.loading?((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,{key:0},(0,c.renderList)(e.skeletonRows,e=>((0,c.openBlock)(),(0,c.createElementBlock)(`tr`,{key:`skeleton-${e}`,class:`nb-data-table__row nb-data-table__row--skeleton`},[P.value?((0,c.openBlock)(),(0,c.createElementBlock)(`td`,de,[...n[4]||=[(0,c.createElementVNode)(`span`,{class:`nb-data-table__skeleton nb-data-table__skeleton--box`},null,-1)]])):(0,c.createCommentVNode)(``,!0),((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(N.value,t=>((0,c.openBlock)(),(0,c.createElementBlock)(`td`,{key:`sk-${e}-${t.key}`,class:`nb-data-table__td`},[...n[5]||=[(0,c.createElementVNode)(`span`,{class:`nb-data-table__skeleton`},null,-1)]]))),128)),F.value?((0,c.openBlock)(),(0,c.createElementBlock)(`td`,fe,[...n[6]||=[(0,c.createElementVNode)(`span`,{class:`nb-data-table__skeleton nb-data-table__skeleton--box`},null,-1)]])):(0,c.createCommentVNode)(``,!0)]))),128)):e.error?((0,c.openBlock)(),(0,c.createElementBlock)(`tr`,pe,[(0,c.createElementVNode)(`td`,{colspan:I.value,class:`nb-data-table__state nb-data-table__state--error`},[(0,c.renderSlot)(t.$slots,`error`,{error:e.error},()=>[(0,c.createVNode)(o.t,{is:`span`,align:`center`,justify:`center`,gap:`xs`,class:`nb-data-table__state-inner`},{default:(0,c.withCtx)(()=>[(0,c.createVNode)(r.t,{name:`warning-circle-fill`,"aria-hidden":`true`}),(0,c.createElementVNode)(`span`,null,(0,c.toDisplayString)(e.error),1)]),_:1})],!0)],8,S)])):e.rows.length?((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,{key:3},(0,c.renderList)(e.rows,(r,i)=>((0,c.openBlock)(),(0,c.createElementBlock)(`tr`,{key:V(r),class:(0,c.normalizeClass)([`nb-data-table__row`,{"nb-data-table__row--selected":W(r)},{"nb-data-table__row--clickable":Ee.value}]),"aria-selected":e.selectable===`none`?void 0:W(r),onClick:e=>De(r,i)},[P.value?((0,c.openBlock)(),(0,c.createElementBlock)(`td`,{key:0,class:`nb-data-table__td nb-data-table__select-cell`,onClick:n[0]||=(0,c.withModifiers)(()=>{},[`stop`]),onMousedown:Y,onKeydown:Y},[e.selectable===`multiple`?((0,c.openBlock)(),(0,c.createBlock)(s.t,{key:0,"model-value":W(r),"aria-label":`Select row ${i+1}`,"onUpdate:modelValue":e=>ge(r,i)},null,8,[`model-value`,`aria-label`,`onUpdate:modelValue`])):((0,c.openBlock)(),(0,c.createElementBlock)(`input`,{key:1,type:`radio`,class:`nb-data-table__radio`,name:j,checked:W(r),"aria-label":`Select row ${i+1}`,onChange:e=>_e(r)},null,40,E))],32)):(0,c.createCommentVNode)(``,!0),((0,c.openBlock)(!0),(0,c.createElementBlock)(c.Fragment,null,(0,c.renderList)(N.value,e=>((0,c.openBlock)(),(0,c.createElementBlock)(`td`,{key:`td-${V(r)}-${e.key}`,class:(0,c.normalizeClass)([`nb-data-table__td`,`nb-data-table__td--${e.align||`left`}`,e.cellClass])},[(0,c.renderSlot)(t.$slots,`cell-${e.key}`,{row:r,value:R(e,r),column:e,rowIndex:i},()=>[e.render?((0,c.openBlock)(),(0,c.createBlock)(B,{key:0,column:e,row:r,"row-index":i},null,8,[`column`,`row`,`row-index`])):((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:1},[(0,c.createTextVNode)((0,c.toDisplayString)(z(R(e,r))),1)],64))],!0)],2))),128)),F.value?((0,c.openBlock)(),(0,c.createElementBlock)(`td`,{key:1,class:`nb-data-table__td nb-data-table__actions-cell`,onClick:n[1]||=(0,c.withModifiers)(()=>{},[`stop`])},[(0,c.renderSlot)(t.$slots,`row-actions`,{row:r,rowIndex:i},void 0,!0)])):(0,c.createCommentVNode)(``,!0)],10,T))),128)):((0,c.openBlock)(),(0,c.createElementBlock)(`tr`,C,[(0,c.createElementVNode)(`td`,{colspan:I.value,class:`nb-data-table__state nb-data-table__state--empty`},[(0,c.renderSlot)(t.$slots,`empty`,{},()=>[(0,c.createElementVNode)(`span`,null,(0,c.toDisplayString)(e.emptyMessage||`No data to display`),1)],!0)],8,w)]))])],8,ee)]),t.$slots.footer?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,D,[(0,c.renderSlot)(t.$slots,`footer`,{},void 0,!0)])):(0,c.createCommentVNode)(``,!0)],16))}}),k=t.t(O,[[`__scopeId`,`data-v-e2562ae7`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return k}});
|
|
@@ -2,9 +2,9 @@ import { t as e } from "./_plugin-vue_export-helper-O4QQSku4.js";
|
|
|
2
2
|
import { r as t } from "./Size.d-Bah6vMl3.js";
|
|
3
3
|
import { t as n } from "./Icon-rREAqsu0.js";
|
|
4
4
|
import { useSurfaceLayer as r } from "./composables/useSurfaceLayer.composable.mjs";
|
|
5
|
-
import { t as i } from "./Button-
|
|
6
|
-
import { t as a } from "./Grid-
|
|
7
|
-
import { t as o } from "./Checkbox-
|
|
5
|
+
import { t as i } from "./Button-CV2mm5ZB.js";
|
|
6
|
+
import { t as a } from "./Grid-DA2jibMM.js";
|
|
7
|
+
import { t as o } from "./Checkbox-BkRL6Ops.js";
|
|
8
8
|
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, getCurrentInstance as ee, mergeProps as te, normalizeClass as g, normalizeStyle as ne, openBlock as _, ref as re, renderList as v, renderSlot as y, toDisplayString as b, unref as ie, useId as ae, useSlots as oe, watch as se, withCtx as x, withModifiers as S } from "vue";
|
|
9
9
|
import * as ce from "@nubisco/ui/icons/arrows-down-up";
|
|
10
10
|
import * as le from "@nubisco/ui/icons/arrow-up";
|