@nubisco/ui 5.51.0 → 5.52.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ActionGroup-DEeOrkKF.js → ActionGroup-CkwZEnUN.js} +2 -2
- package/dist/{ActionGroup-CZWoWOYj.cjs → ActionGroup-McCtSDV8.cjs} +1 -1
- package/dist/{AiLabel-CSSIkvKP.js → AiLabel-DKhHwWNt.js} +1 -1
- package/dist/{AiLabel-DSKUOcZs.cjs → AiLabel-oV9j_9bX.cjs} +1 -1
- package/dist/{AiProvider-DkRd4Oee.js → AiProvider-CwQByPUa.js} +5 -5
- package/dist/{AiProvider-C5PGq8_N.cjs → AiProvider-YQRUV0n0.cjs} +1 -1
- package/dist/{AiUsage-fQqE0B6N.cjs → AiUsage-C2t5uXV-.cjs} +1 -1
- package/dist/{AiUsage-BOrAXk2-.js → AiUsage-eY9pNKxE.js} +1 -1
- package/dist/{BackToTop-DgFlV4p4.cjs → BackToTop-DQ6vCoQu.cjs} +1 -1
- package/dist/{BackToTop-DrgXqZgF.js → BackToTop-DumUwoJ1.js} +1 -1
- package/dist/{Banner-CyU3PPnt.cjs → Banner-DTIRkPRb.cjs} +1 -1
- package/dist/{Banner-CazPCK0F.js → Banner-FWDVwwVx.js} +1 -1
- package/dist/BarChart-DKpSrGm3.cjs +1 -0
- package/dist/{BarChart-CDvhhPk0.js → BarChart-hs_OZZD4.js} +96 -66
- package/dist/{BatchActions-CLCwxCoa.js → BatchActions-B5hv7U0E.js} +2 -2
- package/dist/{BatchActions-DfAPQSU6.cjs → BatchActions-DmMLy_y-.cjs} +1 -1
- package/dist/{Blueprint-CGGNppmS.js → Blueprint-ePiyl5dw.js} +2 -2
- package/dist/{Blueprint-DBIXzLYg.cjs → Blueprint-kNZLEHJz.cjs} +1 -1
- package/dist/{BlueprintCard-CqlU0QFY.js → BlueprintCard-Ce48mEtN.js} +1 -1
- package/dist/{BlueprintCard-DGUNttWj.cjs → BlueprintCard-L5FqZKvJ.cjs} +1 -1
- package/dist/{BlueprintControls-C3ffD6W8.cjs → BlueprintControls-C0V9FX8S.cjs} +1 -1
- package/dist/{BlueprintControls-1l0QVtB7.js → BlueprintControls-DQE_gDOe.js} +1 -1
- package/dist/{Board-DEBP52eI.js → Board-DyAO3ko2.js} +1 -1
- package/dist/{Board-DIbzPDsD.cjs → Board-Htlm-mra.cjs} +1 -1
- package/dist/{BottomPanel-1EkHEQ_H.js → BottomPanel-BsfMrQaS.js} +1 -1
- package/dist/{BottomPanel-n2jWpFH7.cjs → BottomPanel-Dad7czGY.cjs} +1 -1
- package/dist/{Breadcrumbs-avQltgRZ.cjs → Breadcrumbs-C_dG1eHp.cjs} +1 -1
- package/dist/{Breadcrumbs-8VM5XZTT.js → Breadcrumbs-DHHPeG-B.js} +2 -2
- package/dist/{Briefing-AqSz-ZdZ.cjs → Briefing-UMUWCsHh.cjs} +1 -1
- package/dist/{Briefing-0A1frO4v.js → Briefing-nJ0LjXnp.js} +3 -3
- package/dist/{BriefingDestination-CqyKzyXx.cjs → BriefingDestination-B2_e90ZN.cjs} +1 -1
- package/dist/{BriefingDestination-v3kNa6o_.js → BriefingDestination-BMsPXWd6.js} +1 -1
- package/dist/{Button-BHFtgOXA.cjs → Button-5ClGtoaz.cjs} +1 -1
- package/dist/{Button-tpOmP8iV.js → Button-CxJMKPpw.js} +1 -1
- package/dist/{ButtonSet-Bj9mIOW2.cjs → ButtonSet-CmM3Tj5N.cjs} +1 -1
- package/dist/{ButtonSet-BV76HHgD.js → ButtonSet-tmTOMWpZ.js} +1 -1
- package/dist/{Calendar-D9J17bTp.cjs → Calendar-BKJoim3w.cjs} +1 -1
- package/dist/{Calendar-Bf0Nk0rA.js → Calendar-C_UWF6F5.js} +1 -1
- package/dist/{Checkbox-DPPln6oG.cjs → Checkbox-B6qnpOXg.cjs} +1 -1
- package/dist/{Checkbox-BgXXVsCC.js → Checkbox-Bf3XzGbG.js} +1 -1
- package/dist/{CheckboxGroup-B2a3ezEK.cjs → CheckboxGroup-BG1efn5_.cjs} +1 -1
- package/dist/{CheckboxGroup-Ck1ylAX9.js → CheckboxGroup-C3ng8k3R.js} +1 -1
- package/dist/{CloseButton-CdH12Hdn.js → CloseButton-BeaS7MQc.js} +1 -1
- package/dist/{CloseButton-9TTFHFmx.cjs → CloseButton-D0Aj3uQK.cjs} +1 -1
- package/dist/{CommandPalette-CCEzVWfb.cjs → CommandPalette-CI31tVG0.cjs} +1 -1
- package/dist/{CommandPalette-D1DuzaA1.js → CommandPalette-Co6sxIQz.js} +1 -1
- package/dist/{Confirm-YFZK3eSw.cjs → Confirm-CQMJX0lc.cjs} +1 -1
- package/dist/{Confirm-Bsf8R78g.js → Confirm-q2m_4sBN.js} +3 -3
- package/dist/{ContentSwitcher-CYSF2B-a.cjs → ContentSwitcher-B96jZqzZ.cjs} +1 -1
- package/dist/{ContentSwitcher-B-PUG0FE.js → ContentSwitcher-DCB9W7wd.js} +1 -1
- package/dist/{CopyButton-CQ9tcyfs.js → CopyButton-CfEOWedU.js} +1 -1
- package/dist/{CopyButton-DRvJ4rf5.cjs → CopyButton-DMuuBwJc.cjs} +1 -1
- package/dist/{DataTable-DDqMaOqP.js → DataTable-CA_p6GdD.js} +5 -5
- package/dist/{DataTable-DQUX-6li.cjs → DataTable-DNAUGxuj.cjs} +1 -1
- package/dist/{DatePicker-DPTMT52Y.js → DatePicker-DKNte5ZT.js} +1 -1
- package/dist/{DatePicker-DShl7pkk.cjs → DatePicker-l-HrmC9V.cjs} +1 -1
- package/dist/{FileUploader-dzVu4iSo.js → FileUploader-CYa_FX-W.js} +1 -1
- package/dist/{FileUploader-UzgK5RKz.cjs → FileUploader-DCTMJY5p.cjs} +1 -1
- package/dist/{GanttChart-N05mLdsn.js → GanttChart-C70BwZZo.js} +1 -1
- package/dist/{GanttChart-ClFarMf-.cjs → GanttChart-D24__YLV.cjs} +1 -1
- package/dist/{ImageCropper-CoYR_Hhy.cjs → ImageCropper-3omi5zWi.cjs} +1 -1
- package/dist/{ImageCropper-wQknqxNK.js → ImageCropper-lLgzrsWr.js} +1 -1
- package/dist/{ImagePicker-Dhj01jq7.cjs → ImagePicker-4LRkWaLL.cjs} +1 -1
- package/dist/{ImagePicker-zkoay3zZ.js → ImagePicker-DOnGfEc6.js} +2 -2
- package/dist/{InlineLoading-DKCzcjZJ.cjs → InlineLoading-BovtIkg7.cjs} +1 -1
- package/dist/{InlineLoading-CDJ_ZJ6v.js → InlineLoading-CNetV7ih.js} +1 -1
- package/dist/{InterpolationChart-BX8-UOeZ.js → InterpolationChart-Cohmbfep.js} +1 -1
- package/dist/{InterpolationChart-DaqKUIWi.cjs → InterpolationChart-DnHzBcLG.cjs} +1 -1
- package/dist/LineChart-BNhJBKO6.cjs +1 -0
- package/dist/{LineChart-CplGrv8-.js → LineChart-lMX9rTr7.js} +110 -100
- package/dist/{Modal-D0hGHXic.cjs → Modal-B2gNgKIK.cjs} +1 -1
- package/dist/{Modal-BSGKOUi_.js → Modal-RgLIB-Gw.js} +3 -3
- package/dist/{NotificationCenter-_CK8Eejg.js → NotificationCenter-4MBTSGRl.js} +5 -5
- package/dist/{NotificationCenter-xg0ZCegj.cjs → NotificationCenter-BuVz7oP1.cjs} +1 -1
- package/dist/{NumberInput-BNlXW5XD.cjs → NumberInput-04v9eS0u.cjs} +1 -1
- package/dist/{NumberInput-BgrIXtsT.js → NumberInput-DmKNMQLk.js} +1 -1
- package/dist/{OverflowMenu-DFOJSaS7.cjs → OverflowMenu-CWgdicDN.cjs} +1 -1
- package/dist/{OverflowMenu-OCAeE3W0.js → OverflowMenu-DXJ8waZo.js} +1 -1
- package/dist/{PageHeader-BfUlrscM.cjs → PageHeader-8n0wHC1J.cjs} +1 -1
- package/dist/{PageHeader-1wou3Him.js → PageHeader-ChUje7zF.js} +1 -1
- package/dist/{Pagination-BTvOfCJG.js → Pagination-DLDVJush.js} +2 -2
- package/dist/{Pagination-5qvBYkmf.cjs → Pagination-dhLORMeq.cjs} +1 -1
- package/dist/Panel-7LIVYu68.js +64 -0
- package/dist/Panel-BRPE3B-O.cjs +1 -0
- package/dist/PieChart-0_n0Ihir.cjs +1 -0
- package/dist/PieChart-Be8RVmz0.js +219 -0
- package/dist/{Search-CQlcMCZ0.cjs → Search-BxYPouus.cjs} +1 -1
- package/dist/{Search-Cj9aSYg2.js → Search-CI787J6m.js} +2 -2
- package/dist/{Select-dAsXp4vb.cjs → Select-C77tReXr.cjs} +1 -1
- package/dist/{Select-DUAPhMYG.js → Select-CAXyp4ou.js} +1 -1
- package/dist/{Shell-B2y5hn9K.cjs → Shell-Btxqmkh-.cjs} +1 -1
- package/dist/{Shell-Bh6s0T89.js → Shell-nNxGdcuI.js} +2 -2
- package/dist/{ShellPanel-BDE6Y773.cjs → ShellPanel-BeTojwfU.cjs} +1 -1
- package/dist/{ShellPanel-CB71IKMY.js → ShellPanel-D1-l6JRg.js} +1 -1
- package/dist/{SidebarCollapseToggle-Dm4QMGpc.js → SidebarCollapseToggle-BLY8EEaD.js} +2 -2
- package/dist/{SidebarCollapseToggle-CqVURaqs.cjs → SidebarCollapseToggle-DobruD4n.cjs} +1 -1
- package/dist/{SidebarHeaderToggle-daU1HfJH.js → SidebarHeaderToggle-BVfhMhvD.js} +1 -1
- package/dist/{SidebarHeaderToggle-KW1yBlpF.cjs → SidebarHeaderToggle-TwULd9e3.cjs} +1 -1
- package/dist/{Skeleton-CMuZJ1dR.cjs → Skeleton-CUUa44lM.cjs} +1 -1
- package/dist/{Skeleton-Hmb5a2G_.js → Skeleton-DI7l_96J.js} +1 -1
- package/dist/{Slider-CYYnC2N6.cjs → Slider-CtN6andn.cjs} +1 -1
- package/dist/{Slider-DjPICUZY.js → Slider-D7BgYMeu.js} +1 -1
- package/dist/Sparkline-0CmemDu3.js +122 -0
- package/dist/Sparkline-ByPgkuSC.cjs +1 -0
- package/dist/{Spinner-BTN06wsE.cjs → Spinner-BDwIIS4H.cjs} +1 -1
- package/dist/{Spinner-C3MeCm2k.js → Spinner-D_6qJT6u.js} +1 -1
- package/dist/Stat-BiuBoOoE.cjs +1 -0
- package/dist/Stat-C_Z2D-TS.js +159 -0
- package/dist/{Stepper-BXPgrQE8.js → Stepper-BG9PfjPD.js} +1 -1
- package/dist/{Stepper-BLyPFPge.cjs → Stepper-CARQL6xx.cjs} +1 -1
- package/dist/{StepperStep-DLr_ctr4.js → StepperStep-C7F_8ErM.js} +1 -1
- package/dist/{StepperStep-DGeyZQXY.cjs → StepperStep-DHsfAMv0.cjs} +1 -1
- package/dist/{SuggestionList-DjtF5POh.cjs → SuggestionList-BT-xOJBx.cjs} +1 -1
- package/dist/{SuggestionList-SYGj7Sjv.js → SuggestionList-Cm0pD7_C.js} +1 -1
- package/dist/{TableOfContents-BIzH0Twf.js → TableOfContents-B7Qmz4t9.js} +1 -1
- package/dist/{TableOfContents-Ct-Kwm8X.cjs → TableOfContents-IQordoiY.cjs} +1 -1
- package/dist/{TextInput-CYhPkNwH.js → TextInput-DG8aUZeu.js} +1 -1
- package/dist/{TextInput-BTPC7DyL.cjs → TextInput-r8ap24-5.cjs} +1 -1
- package/dist/{Toast-BaMGYx8-.js → Toast-CpdX-63Q.js} +2 -2
- package/dist/{Toast-BvZywdtO.cjs → Toast-yB4u936W.cjs} +1 -1
- package/dist/{Toaster-CYSWYmUm.cjs → Toaster-BqCi69_x.cjs} +1 -1
- package/dist/{Toaster-DtUkjQM_.js → Toaster-XMqkamDu.js} +1 -1
- package/dist/{Tree-RRVk_0QJ.js → Tree-Nn3HGP-T.js} +1 -1
- package/dist/{Tree-CeXSIcpy.cjs → Tree-hitkY9yg.cjs} +1 -1
- package/dist/{TreeNode-z6APXuvr.cjs → TreeNode-DHSYezap.cjs} +1 -1
- package/dist/{TreeNode-D9fc2RE_.js → TreeNode-giUfunjf.js} +1 -1
- package/dist/{UserMenu-GGR8K7gP.js → UserMenu-C52WN7-m.js} +4 -4
- package/dist/{UserMenu-BGIIKwi6.cjs → UserMenu-DFxqVHMM.cjs} +1 -1
- package/dist/{Video-DD01piHm.js → Video-B0FTFBYF.js} +1 -1
- package/dist/{Video-BxNkDWqi.cjs → Video-DxTpvMsS.cjs} +1 -1
- package/dist/{Walkthrough-DpxYuLMU.js → Walkthrough-CCb4OKc-.js} +2 -2
- package/dist/{Walkthrough-C_5h67cq.cjs → Walkthrough-QtFJ_YOo.cjs} +1 -1
- package/dist/all.cjs +1 -1
- package/dist/all.mjs +101 -101
- package/dist/component-styles.json +3 -0
- package/dist/components/ActionGroup.cjs +1 -1
- package/dist/components/ActionGroup.mjs +1 -1
- package/dist/components/AiLabel.cjs +1 -1
- package/dist/components/AiLabel.mjs +1 -1
- package/dist/components/AiProvider.cjs +1 -1
- package/dist/components/AiProvider.mjs +1 -1
- package/dist/components/AiUsage.cjs +1 -1
- package/dist/components/AiUsage.mjs +1 -1
- package/dist/components/BackToTop.cjs +1 -1
- package/dist/components/BackToTop.mjs +1 -1
- package/dist/components/Banner.cjs +1 -1
- package/dist/components/Banner.mjs +1 -1
- package/dist/components/BatchActions.cjs +1 -1
- package/dist/components/BatchActions.mjs +1 -1
- package/dist/components/Blueprint.cjs +1 -1
- package/dist/components/Blueprint.mjs +1 -1
- package/dist/components/BlueprintBackground.cjs +1 -1
- package/dist/components/BlueprintBackground.mjs +1 -1
- package/dist/components/BlueprintCard.cjs +1 -1
- package/dist/components/BlueprintCard.mjs +1 -1
- package/dist/components/BlueprintControls.cjs +1 -1
- package/dist/components/BlueprintControls.mjs +1 -1
- package/dist/components/BlueprintMinimap.cjs +1 -1
- package/dist/components/BlueprintMinimap.mjs +1 -1
- package/dist/components/Board.cjs +1 -1
- package/dist/components/Board.mjs +1 -1
- package/dist/components/BottomPanel.cjs +1 -1
- package/dist/components/BottomPanel.mjs +1 -1
- package/dist/components/Breadcrumbs.cjs +1 -1
- package/dist/components/Breadcrumbs.mjs +1 -1
- package/dist/components/Briefing.cjs +1 -1
- package/dist/components/Briefing.mjs +1 -1
- package/dist/components/BriefingDestination.cjs +1 -1
- package/dist/components/BriefingDestination.mjs +1 -1
- package/dist/components/Button.cjs +1 -1
- package/dist/components/Button.mjs +1 -1
- package/dist/components/Button.vue.d.ts.map +1 -1
- package/dist/components/ButtonSet.cjs +1 -1
- package/dist/components/ButtonSet.mjs +1 -1
- package/dist/components/Calendar.cjs +1 -1
- package/dist/components/Calendar.mjs +1 -1
- package/dist/components/Charts/BarChart.cjs +1 -1
- package/dist/components/Charts/BarChart.d.ts +5 -1
- package/dist/components/Charts/BarChart.mjs +1 -1
- package/dist/components/Charts/BarChart.vue.d.ts +2 -0
- package/dist/components/Charts/BarChart.vue.d.ts.map +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.d.ts +2 -1
- package/dist/components/Charts/LineChart.mjs +1 -1
- package/dist/components/Charts/LineChart.vue.d.ts +1 -0
- package/dist/components/Charts/LineChart.vue.d.ts.map +1 -1
- package/dist/components/Charts/PieChart.cjs +1 -1
- package/dist/components/Charts/PieChart.d.ts +7 -2
- package/dist/components/Charts/PieChart.mjs +1 -1
- package/dist/components/Charts/PieChart.vue.d.ts +1 -0
- package/dist/components/Charts/PieChart.vue.d.ts.map +1 -1
- package/dist/components/Charts/Sparkline.cjs +1 -1
- package/dist/components/Charts/Sparkline.d.ts +6 -0
- package/dist/components/Charts/Sparkline.mjs +1 -1
- package/dist/components/Charts/Sparkline.vue.d.ts +1 -0
- package/dist/components/Charts/Sparkline.vue.d.ts.map +1 -1
- package/dist/components/Charts/shared/ChartTooltip.vue.d.ts +4 -0
- package/dist/components/Charts/shared/ChartTooltip.vue.d.ts.map +1 -1
- package/dist/components/Charts/shared/types.d.ts +11 -0
- package/dist/components/Charts/shared/useChartEntrance.d.ts +17 -0
- package/dist/components/Charts/shared/useChartEntrance.d.ts.map +1 -0
- package/dist/components/Checkbox.cjs +1 -1
- package/dist/components/Checkbox.mjs +1 -1
- package/dist/components/CheckboxGroup.cjs +1 -1
- package/dist/components/CheckboxGroup.mjs +1 -1
- package/dist/components/ChipGroup.cjs +1 -1
- package/dist/components/ChipGroup.mjs +1 -1
- package/dist/components/CloseButton.cjs +1 -1
- package/dist/components/CloseButton.mjs +1 -1
- package/dist/components/ColorStrip.cjs +1 -1
- package/dist/components/ColorStrip.mjs +1 -1
- package/dist/components/CommandPalette.cjs +1 -1
- package/dist/components/CommandPalette.mjs +1 -1
- package/dist/components/Confirm.cjs +1 -1
- package/dist/components/Confirm.mjs +1 -1
- package/dist/components/ContentSwitcher.cjs +1 -1
- package/dist/components/ContentSwitcher.mjs +1 -1
- package/dist/components/CopyButton.cjs +1 -1
- package/dist/components/CopyButton.mjs +1 -1
- package/dist/components/DataTable.cjs +1 -1
- package/dist/components/DataTable.mjs +1 -1
- package/dist/components/DatePicker.cjs +1 -1
- package/dist/components/DatePicker.mjs +1 -1
- package/dist/components/DragHandle.cjs +1 -1
- package/dist/components/DragHandle.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/ImageCropper.cjs +1 -1
- package/dist/components/ImageCropper.mjs +1 -1
- package/dist/components/ImagePicker.cjs +1 -1
- package/dist/components/ImagePicker.mjs +1 -1
- package/dist/components/InlineEdit.cjs +1 -1
- package/dist/components/InlineEdit.mjs +1 -1
- package/dist/components/InlineLoading.cjs +1 -1
- package/dist/components/InlineLoading.mjs +1 -1
- package/dist/components/InputGroup.cjs +1 -1
- package/dist/components/InputGroup.mjs +1 -1
- package/dist/components/JsonTree.cjs +1 -1
- package/dist/components/JsonTree.mjs +1 -1
- package/dist/components/Layer.cjs +1 -1
- package/dist/components/Layer.mjs +1 -1
- package/dist/components/MenuBar.cjs +1 -1
- package/dist/components/MenuBar.mjs +1 -1
- package/dist/components/MenuBarItem.cjs +1 -1
- package/dist/components/MenuBarItem.mjs +1 -1
- package/dist/components/MenuDivider.cjs +1 -1
- package/dist/components/MenuDivider.mjs +1 -1
- package/dist/components/Modal.cjs +1 -1
- package/dist/components/Modal.mjs +1 -1
- package/dist/components/NotificationCenter.cjs +1 -1
- package/dist/components/NotificationCenter.mjs +1 -1
- package/dist/components/NotificationCenterItem.cjs +1 -1
- package/dist/components/NotificationCenterItem.mjs +1 -1
- package/dist/components/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/OverflowMenu.cjs +1 -1
- package/dist/components/OverflowMenu.mjs +1 -1
- package/dist/components/PageHeader.cjs +1 -1
- package/dist/components/PageHeader.mjs +1 -1
- package/dist/components/Pagination.cjs +1 -1
- package/dist/components/Pagination.mjs +1 -1
- package/dist/components/Panel.cjs +1 -1
- package/dist/components/Panel.d.ts +6 -0
- package/dist/components/Panel.mjs +1 -1
- package/dist/components/Panel.vue.d.ts +5 -4
- package/dist/components/Panel.vue.d.ts.map +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/Search.cjs +1 -1
- package/dist/components/Search.mjs +1 -1
- package/dist/components/Select.cjs +1 -1
- package/dist/components/Select.mjs +1 -1
- package/dist/components/Shell.cjs +1 -1
- package/dist/components/Shell.mjs +1 -1
- package/dist/components/ShellPanel.cjs +1 -1
- package/dist/components/ShellPanel.mjs +1 -1
- package/dist/components/SidebarBrand.cjs +1 -1
- package/dist/components/SidebarBrand.mjs +1 -1
- package/dist/components/SidebarCollapseToggle.cjs +1 -1
- package/dist/components/SidebarCollapseToggle.mjs +1 -1
- package/dist/components/SidebarHeaderToggle.cjs +1 -1
- package/dist/components/SidebarHeaderToggle.mjs +1 -1
- package/dist/components/SidebarLink.cjs +1 -1
- package/dist/components/SidebarLink.mjs +1 -1
- package/dist/components/SidebarMenu.cjs +1 -1
- package/dist/components/SidebarMenu.mjs +1 -1
- package/dist/components/SidebarMenuGroup.cjs +1 -1
- package/dist/components/SidebarMenuGroup.mjs +1 -1
- package/dist/components/SidebarMenuItem.cjs +1 -1
- package/dist/components/SidebarMenuItem.mjs +1 -1
- package/dist/components/SidebarStatus.cjs +1 -1
- package/dist/components/SidebarStatus.mjs +1 -1
- package/dist/components/Skeleton.cjs +1 -1
- package/dist/components/Skeleton.mjs +1 -1
- package/dist/components/Skeleton.vue.d.ts +1 -1
- package/dist/components/Slider.cjs +1 -1
- package/dist/components/Slider.mjs +1 -1
- package/dist/components/Spinner.cjs +1 -1
- package/dist/components/Spinner.mjs +1 -1
- package/dist/components/Stat.cjs +1 -1
- package/dist/components/Stat.d.ts +19 -0
- package/dist/components/Stat.mjs +1 -1
- package/dist/components/Stat.vue.d.ts +10 -4
- package/dist/components/Stat.vue.d.ts.map +1 -1
- package/dist/components/Stepper.cjs +1 -1
- package/dist/components/Stepper.mjs +1 -1
- package/dist/components/StepperStep.cjs +1 -1
- package/dist/components/StepperStep.mjs +1 -1
- package/dist/components/Submenu.cjs +1 -1
- package/dist/components/Submenu.mjs +1 -1
- package/dist/components/SuggestionList.cjs +1 -1
- package/dist/components/SuggestionList.mjs +1 -1
- package/dist/components/TableOfContents.cjs +1 -1
- package/dist/components/TableOfContents.mjs +1 -1
- package/dist/components/Tabs.cjs +1 -1
- package/dist/components/Tabs.mjs +1 -1
- package/dist/components/TextInput.cjs +1 -1
- package/dist/components/TextInput.mjs +1 -1
- package/dist/components/Toast.cjs +1 -1
- package/dist/components/Toast.mjs +1 -1
- package/dist/components/Toaster.cjs +1 -1
- package/dist/components/Toaster.mjs +1 -1
- package/dist/components/Toolbar.cjs +1 -1
- package/dist/components/Toolbar.mjs +1 -1
- package/dist/components/Tree.cjs +1 -1
- package/dist/components/Tree.mjs +1 -1
- package/dist/components/TreeNode.cjs +1 -1
- package/dist/components/TreeNode.mjs +1 -1
- package/dist/components/UserMenu.cjs +1 -1
- package/dist/components/UserMenu.mjs +1 -1
- package/dist/components/Video.cjs +1 -1
- package/dist/components/Video.mjs +1 -1
- package/dist/components/Walkthrough.cjs +1 -1
- package/dist/components/Walkthrough.mjs +1 -1
- package/dist/components/Wireframe.cjs +1 -1
- package/dist/components/Wireframe.mjs +1 -1
- package/dist/composables/useBlueprint.composable.cjs +1 -1
- package/dist/composables/useBlueprint.composable.mjs +1 -1
- package/dist/composables/useConfirm.composable.cjs +1 -1
- package/dist/composables/useConfirm.composable.mjs +2 -2
- package/dist/composables/useInlineLoading.composable.cjs +1 -1
- package/dist/composables/useInlineLoading.composable.mjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.cjs +1 -1
- package/dist/composables/useLoadingAnnouncer.composable.mjs +1 -1
- package/dist/composables/useNbStrings.composable.cjs +1 -1
- package/dist/composables/useNbStrings.composable.d.ts +1 -0
- package/dist/composables/useNbStrings.composable.d.ts.map +1 -1
- package/dist/composables/useNbStrings.composable.mjs +1 -0
- package/dist/index.cjs +1 -1
- package/dist/index.mjs +101 -101
- package/dist/{main-Bo1B-xzL.cjs → main-Dr-OZ97R.cjs} +1 -1
- package/dist/{main-nO1LQzsc.js → main-hHSQ2Z9E.js} +1 -1
- package/dist/{palette-6bEW4KUN.js → palette-BPqd521m.js} +24 -16
- package/dist/palette-MlQ_k4iu.cjs +1 -0
- package/dist/styles/BarChart.css +1 -1
- package/dist/styles/Button.css +1 -1
- package/dist/styles/LineChart.css +1 -1
- package/dist/styles/Panel.css +1 -1
- package/dist/styles/PieChart.css +1 -1
- package/dist/styles/Sparkline.css +1 -1
- package/dist/styles/Stat.css +1 -1
- package/dist/styles/palette.css +1 -1
- package/dist/ui.css +8 -8
- package/dist/useChartEntrance-D8vJ7eWq.cjs +1 -0
- package/dist/useChartEntrance-heEx5_ZG.js +10 -0
- package/package.json +2 -2
- package/dist/BarChart-3YO4YfUt.cjs +0 -1
- package/dist/LineChart-CGXpi9l8.cjs +0 -1
- package/dist/Panel-NC6_ZogV.cjs +0 -1
- package/dist/Panel-zyzu638n.js +0 -51
- package/dist/PieChart-DQhs44eH.cjs +0 -1
- package/dist/PieChart-D_02nX0-.js +0 -182
- package/dist/Sparkline-B7kUEfuW.cjs +0 -1
- package/dist/Sparkline-CVzkzaOJ.js +0 -95
- package/dist/Stat-BoQUn69z.cjs +0 -1
- package/dist/Stat-Bz0NCLTm.js +0 -101
- package/dist/palette-LbOzdAXj.cjs +0 -1
- /package/dist/{Blueprint.context-Bz6Jy1Ou.js → Blueprint.context-CWzHXNtU.js} +0 -0
- /package/dist/{Blueprint.context-BX56xsrT.cjs → Blueprint.context-KUd38ozw.cjs} +0 -0
- /package/dist/{BlueprintBackground-DPjZeMwY.js → BlueprintBackground-CBU9iwAA.js} +0 -0
- /package/dist/{BlueprintBackground-yHRGclEz.cjs → BlueprintBackground-CfII_po9.cjs} +0 -0
- /package/dist/{BlueprintMinimap-qskDNYyr.cjs → BlueprintMinimap-5mdeNCgk.cjs} +0 -0
- /package/dist/{BlueprintMinimap-xnsyS1M8.js → BlueprintMinimap-CP2-gY4i.js} +0 -0
- /package/dist/{CheckboxGroup.context-C1QB-Zsq.js → CheckboxGroup.context-B21mAPv4.js} +0 -0
- /package/dist/{CheckboxGroup.context-ADwiY4gy.cjs → CheckboxGroup.context-DRWqTj9S.cjs} +0 -0
- /package/dist/{ChipGroup-CVDk4ElV.js → ChipGroup-BNp7OB2t.js} +0 -0
- /package/dist/{ChipGroup-DojKPHhq.cjs → ChipGroup-BplLSI81.cjs} +0 -0
- /package/dist/{ColorStrip-CuF9ZGoO.js → ColorStrip-BaLKZV51.js} +0 -0
- /package/dist/{ColorStrip-bpguV5b2.cjs → ColorStrip-D6p71EPQ.cjs} +0 -0
- /package/dist/{DragHandle-Cc7WrUj7.js → DragHandle-CuEBPvz8.js} +0 -0
- /package/dist/{DragHandle-Bz2N22Sm.cjs → DragHandle-IJoaUK75.cjs} +0 -0
- /package/dist/{Flag-DyDqHJy3.js → Flag-CKhucUhD.js} +0 -0
- /package/dist/{Flag-gM91kXTi.cjs → Flag-D5hPnq37.cjs} +0 -0
- /package/dist/{FloatingToolbar-DDCJuaq0.cjs → FloatingToolbar-By_-ubVi.cjs} +0 -0
- /package/dist/{FloatingToolbar-BTmWtGU7.js → FloatingToolbar-Clz7tlQQ.js} +0 -0
- /package/dist/{Form-D2KHlP7N.cjs → Form-Bc4QF6Lk.cjs} +0 -0
- /package/dist/{Form-igwYeEVI.js → Form-Co-23Ktg.js} +0 -0
- /package/dist/{InlineEdit-Y8i0ibjH.js → InlineEdit-Ccm5eW9r.js} +0 -0
- /package/dist/{InlineEdit-DBMKJ3xP.cjs → InlineEdit-hVNTw3FL.cjs} +0 -0
- /package/dist/{InputGroup-BYoHNpY0.cjs → InputGroup-BHOJSSQ_.cjs} +0 -0
- /package/dist/{InputGroup-BYThVO5L.js → InputGroup-OytJ8AMk.js} +0 -0
- /package/dist/{JsonTree-MjCO8_Xk.cjs → JsonTree-D2auUavc.cjs} +0 -0
- /package/dist/{JsonTree-VbXpLPoG.js → JsonTree-E9Z-ELBN.js} +0 -0
- /package/dist/{Layer-Btb-b9Mk.js → Layer--aoEMtI2.js} +0 -0
- /package/dist/{Layer-D0NqQYM0.cjs → Layer-C8RYJ-6a.cjs} +0 -0
- /package/dist/{MenuBar-BVgGbppN.cjs → MenuBar-3tuFXaKq.cjs} +0 -0
- /package/dist/{MenuBar-M2eiYZG0.js → MenuBar-T-R82ARB.js} +0 -0
- /package/dist/{MenuBarItem-CQsy3y2I.js → MenuBarItem-DWx9J8-L.js} +0 -0
- /package/dist/{MenuBarItem-Dd9hNBra.cjs → MenuBarItem-GgXvNoo-.cjs} +0 -0
- /package/dist/{MenuDivider-BSMtwoUU.cjs → MenuDivider-9wQ-fCik.cjs} +0 -0
- /package/dist/{MenuDivider-B3tNv2aj.js → MenuDivider-ksA6NvMu.js} +0 -0
- /package/dist/{NotificationCenterItem-O6SR_6KR.js → NotificationCenterItem-DdH7jvvg.js} +0 -0
- /package/dist/{NotificationCenterItem-D0agavaK.cjs → NotificationCenterItem-zIL89umA.cjs} +0 -0
- /package/dist/{NubiscoMark-XJWPWIc0.js → NubiscoMark-BmzCQO-3.js} +0 -0
- /package/dist/{NubiscoMark-3StsXBoJ.cjs → NubiscoMark-xthZ972G.cjs} +0 -0
- /package/dist/{NubiscoPlatformMark-D8WIp4On.cjs → NubiscoPlatformMark-DA2jJFJN.cjs} +0 -0
- /package/dist/{NubiscoPlatformMark-BgQLjI89.js → NubiscoPlatformMark-DCr77bqN.js} +0 -0
- /package/dist/{ProgressBar-z912Ppfm.cjs → ProgressBar-BSPcsJ13.cjs} +0 -0
- /package/dist/{ProgressBar-Bp-pe6sU.js → ProgressBar-C-mDH8u0.js} +0 -0
- /package/dist/{Radio-DuvSK9tl.cjs → Radio-LlTK1Sug.cjs} +0 -0
- /package/dist/{Radio-DcMkavI8.js → Radio-q_unHymB.js} +0 -0
- /package/dist/{SidebarBrand-D2u7hX-v.cjs → SidebarBrand-DmWBakJG.cjs} +0 -0
- /package/dist/{SidebarBrand-CZf-kRyZ.js → SidebarBrand-Dz8O0JHj.js} +0 -0
- /package/dist/{SidebarLink-CSTNfb2F.cjs → SidebarLink-D1rsmzP_.cjs} +0 -0
- /package/dist/{SidebarLink-BuRBmv_k.js → SidebarLink-qbDy2Jip.js} +0 -0
- /package/dist/{SidebarMenu-CAthEmyy.cjs → SidebarMenu-CEff0kWr.cjs} +0 -0
- /package/dist/{SidebarMenu-CgWUHllQ.js → SidebarMenu-Cz7k20qd.js} +0 -0
- /package/dist/{SidebarMenuGroup-DdWg57Wv.js → SidebarMenuGroup-BvrYrQQi.js} +0 -0
- /package/dist/{SidebarMenuGroup-B9JGPBcF.cjs → SidebarMenuGroup-vc3SM277.cjs} +0 -0
- /package/dist/{SidebarMenuItem-BvvoDIjK.js → SidebarMenuItem-D7rkGP2L.js} +0 -0
- /package/dist/{SidebarMenuItem-eFnj5QoE.cjs → SidebarMenuItem-DYREDfqx.cjs} +0 -0
- /package/dist/{SidebarStatus-CnTnYL4x.js → SidebarStatus-COgGJjkA.js} +0 -0
- /package/dist/{SidebarStatus-CvjuggXO.cjs → SidebarStatus-Coh-cSGj.cjs} +0 -0
- /package/dist/{Stepper.context-CRKX8lxW.js → Stepper.context-BBwBAwSJ.js} +0 -0
- /package/dist/{Stepper.context-Brnt5IZv.cjs → Stepper.context-CIIC0ucN.cjs} +0 -0
- /package/dist/{Submenu-BabY14Vm.cjs → Submenu-DK6C5mjc.cjs} +0 -0
- /package/dist/{Submenu-DOzhF4BM.js → Submenu-M1q8mdSB.js} +0 -0
- /package/dist/{Tabs-B_bsdxWy.js → Tabs-D_LFyWTX.js} +0 -0
- /package/dist/{Tabs-CTMUPND5.cjs → Tabs-W2hUdYvl.cjs} +0 -0
- /package/dist/{Toolbar-tOeTdj8a.js → Toolbar-Cc_31FMW.js} +0 -0
- /package/dist/{Toolbar-BmJeXz4C.cjs → Toolbar-DN0gMuyj.cjs} +0 -0
- /package/dist/{TreeContext-Cs4iAw0d.js → TreeContext-BSNQGIEd.js} +0 -0
- /package/dist/{TreeContext-B2Io2oii.cjs → TreeContext-JbeO4_mW.cjs} +0 -0
- /package/dist/{Wireframe-C_Ca3wCn.js → Wireframe-B-Dnmefu.js} +0 -0
- /package/dist/{Wireframe-3fvc4I5-.cjs → Wireframe-DBqyeEzE.cjs} +0 -0
- /package/dist/{pixi-scene-DFCEvc1j.js → pixi-scene-CdHSFEve.js} +0 -0
- /package/dist/{pixi-scene-CQ1qoZvX.cjs → pixi-scene-RJljCo62.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-CEPRjDi3.cjs → useLoadingAnnouncer.composable-BXyCMUDe.cjs} +0 -0
- /package/dist/{useLoadingAnnouncer.composable-c0XX_xNT.js → useLoadingAnnouncer.composable-CZT2zf7e.js} +0 -0
- /package/dist/{vue-i18n-DaD-yZmK.js → vue-i18n-B8N89VAx.js} +0 -0
- /package/dist/{vue-i18n-ZdR0XDmN.cjs → vue-i18n-D8JKgg8C.cjs} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./Button-
|
|
1
|
+
import { t as e } from "./Button-CxJMKPpw.js";
|
|
2
2
|
import { usePhoneLayout as t } from "./composables/usePhoneLayout.composable.mjs";
|
|
3
3
|
import { useNbStrings as n } from "./composables/useNbStrings.composable.mjs";
|
|
4
4
|
import { t as r } from "./Toolbar.context-Bli1SqM3.js";
|
|
5
|
-
import { t as i } from "./OverflowMenu-
|
|
5
|
+
import { t as i } from "./OverflowMenu-DXJ8waZo.js";
|
|
6
6
|
import { hasSlotContent as a } from "./utils/slotContent.helper.mjs";
|
|
7
7
|
import { fitActions as o } from "./utils/actionFit.helper.mjs";
|
|
8
8
|
import { Fragment as s, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createTextVNode as f, defineComponent as p, inject as m, nextTick as h, normalizeClass as g, onBeforeUnmount as _, onMounted as v, openBlock as y, ref as b, renderList as x, renderSlot as S, toDisplayString as C, useSlots as w, watch as T, withCtx as E } from "vue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-5ClGtoaz.cjs`),t=require(`./composables/usePhoneLayout.composable.cjs`),n=require(`./composables/useNbStrings.composable.cjs`),r=require(`./Toolbar.context-D3Uj5o0_.cjs`),i=require(`./OverflowMenu-CWgdicDN.cjs`),a=require(`./utils/slotContent.helper.cjs`),o=require(`./utils/actionFit.helper.cjs`);let s=require(`vue`);var c=(0,s.defineComponent)({__name:`ActionGroup`,props:{items:{},size:{default:void 0},overflow:{default:`never`},overflowLabel:{default:void 0},phoneVisible:{default:1}},emits:[`select`],setup(c,{emit:l}){let u=c,d=l,f=(0,s.useSlots)(),{phone:p}=t.usePhoneLayout(),m=n.useNbStrings(),h=(0,s.inject)(r.t,null),g=(0,s.computed)(()=>u.size??(h?void 0:`sm`)),_=(0,s.computed)(()=>[`nb-action-group`,{"nb-action-group--in-toolbar":!!h,"nb-action-group--auto":u.overflow===`auto`&&!p.value}]),v=(0,s.ref)(null),y=(0,s.ref)(new Map),b=(0,s.ref)(null),x=(0,s.computed)(()=>u.overflow===`auto`&&!p.value&&b.value===null);function S(){let e=v.value;if(!e)return;let t=new Map;e.querySelectorAll(`[data-action-id]`).forEach(e=>t.set(e.dataset.actionId,e.offsetWidth)),y.value=t}function C(){let e=v.value;if(!e||u.overflow!==`auto`||p.value)return;b.value===null&&S();let t=u.items.map(e=>y.value.get(e.id)??0),n=getComputedStyle(e),r=parseFloat(n.columnGap)||0,i=e.querySelector(`.nb-button`)?.offsetHeight??0;b.value=o.fitActions(t,e.clientWidth,i,r)}let w;function T(){w?.disconnect(),w=void 0,!(u.overflow!==`auto`||!v.value||typeof ResizeObserver>`u`)&&(w=new ResizeObserver(()=>C()),w.observe(v.value))}(0,s.onMounted)(T),(0,s.onBeforeUnmount)(()=>w?.disconnect()),(0,s.watch)(()=>[u.overflow,p.value,u.items.map(e=>e.id).join()],async()=>{b.value=null,await(0,s.nextTick)(),T(),C()});let E=(0,s.computed)(()=>u.overflow===`never`?!1:u.overflow===`always`||p.value?!0:u.overflow===`auto`?b.value!==null&&b.value<u.items.length:!1),D=(0,s.computed)(()=>{if(u.overflow===`auto`&&!p.value)return u.items.slice(0,b.value??u.items.length);let e=Math.max(0,u.phoneVisible),t=u.items.filter(e=>e.priority===`primary`);return(t.length?t:u.items).slice(0,e)}),O=(0,s.computed)(()=>E.value?D.value:u.items),k=(0,s.computed)(()=>u.items.filter(e=>!D.value.includes(e))),A=(0,s.computed)(()=>k.value.length>0||a.hasSlotContent(f,`menu`)),j=(0,s.computed)(()=>u.overflowLabel??m.value.overflowMenuLabel);function M(e){return e.icon?!!e.iconOnly||E.value&&p.value:!1}function N(e){return e.variant??(e.danger?`danger`:void 0)}function P(e){e.disabled||e.loading||(e.onSelect?.(),d(`select`,e.id))}return(t,n)=>((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{ref_key:`rootRef`,ref:v,class:(0,s.normalizeClass)(_.value)},[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(O.value,t=>((0,s.openBlock)(),(0,s.createElementBlock)(s.Fragment,{key:t.id},[M(t)?((0,s.openBlock)(),(0,s.createBlock)(e.t,{key:0,variant:N(t),outlined:t.outlined,size:g.value,disabled:t.disabled,loading:t.loading,icon:t.icon,label:t.label,"disabled-reason":t.disabledReason,pressed:t.pressed,"data-action-id":x.value?t.id:void 0,onClick:e=>P(t)},null,8,[`variant`,`outlined`,`size`,`disabled`,`loading`,`icon`,`label`,`disabled-reason`,`pressed`,`data-action-id`,`onClick`])):((0,s.openBlock)(),(0,s.createBlock)(e.t,{key:1,variant:N(t),outlined:t.outlined,size:g.value,disabled:t.disabled,loading:t.loading,icon:t.icon,"disabled-reason":t.disabledReason,pressed:t.pressed,"data-action-id":x.value?t.id:void 0,onClick:e=>P(t)},{default:(0,s.withCtx)(()=>[(0,s.createTextVNode)((0,s.toDisplayString)(t.label),1)]),_:2},1032,[`variant`,`outlined`,`size`,`disabled`,`loading`,`icon`,`disabled-reason`,`pressed`,`data-action-id`,`onClick`]))],64))),128)),E.value&&A.value?((0,s.openBlock)(),(0,s.createBlock)(i.t,{key:0,class:`nb-action-group__more`,items:k.value,label:j.value,size:g.value,onSelect:n[0]||=e=>d(`select`,e)},{default:(0,s.withCtx)(()=>[(0,s.renderSlot)(t.$slots,`menu`)]),_:3},8,[`items`,`label`,`size`])):(0,s.createCommentVNode)(``,!0)],2))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./Button-
|
|
1
|
+
import { t as e } from "./Button-CxJMKPpw.js";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
3
3
|
import { t as n } from "./Icon-B2tiGiqZ.js";
|
|
4
4
|
import { useStableId as r } from "./composables/useStableId.composable.mjs";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Button-
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Button-5ClGtoaz.cjs`),n=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),r=require(`./Icon-CssV4E2-.cjs`),i=require(`./composables/useStableId.composable.cjs`),a=require(`./composables/useSurfaceLayer.composable.cjs`),o=require(`./composables/usePhoneLayout.composable.cjs`),s=require(`./utils/anchorPosition.helper.cjs`);let c=require(`vue`),l=require(`@nubisco/ui/icons/arrow-counter-clockwise`);l=e.n(l);var u=function(e){return e.Default=`default`,e.Inline=`inline`,e}(u||{}),d=function(e){return e.Small=`sm`,e.Medium=`md`,e.Large=`lg`,e}(d||{}),f={key:0,class:`nb-ai-label--dot`,"aria-hidden":`true`},p={key:1,class:`nb-ai-label--text`,"aria-hidden":`true`},m={key:2,class:`nb-ai-label--glyph`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 256 256`,"aria-hidden":`true`},h=[`aria-label`],g={class:`nb-ai-label--content`},_={key:0,class:`nb-ai-label--actions`},v=`a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`,y=(0,c.defineComponent)({__name:`AiLabel`,props:{variant:{default:u.Default},size:{default:d.Medium},static:{type:Boolean,default:!1},label:{default:void 0},text:{default:void 0},explain:{default:void 0},placement:{default:`bottom`},teleportTo:{default:`body`},revertable:{type:Boolean,default:!1},revertLabel:{default:void 0},plainAvailable:{type:Boolean,default:!1},showPlainLabel:{default:void 0}},emits:[`open`,`close`,`revert`,`show-plain`],setup(e,{expose:n,emit:d}){let y=e,b=d,x=(0,c.useSlots)(),S=(0,c.useAttrs)(),C={control:`AI, show information`,mark:`Written by AI`,text:`AI`,dialog:`About this AI content`,revert:`Revert to AI input`,showPlain:`Show the plain version`};function w(e){return{control:y.label,mark:y.label,text:y.text,revert:y.revertLabel,showPlain:y.showPlainLabel}[e]??C[e]}let T=(0,c.computed)(()=>!y.static&&!y.revertable&&!!(x.explain||x.actions||y.explain||y.plainAvailable)),E=(0,c.computed)(()=>!y.static&&y.revertable),D=(0,c.computed)(()=>T.value||E.value||!y.static&&!!S.onClick),O=`${i.useStableId({})}-explain`,k=(0,c.computed)(()=>D.value?E.value?{type:`button`,"aria-label":w(`revert`)}:{type:`button`,"aria-label":w(`control`),...T.value&&{"aria-expanded":I.value?`true`:`false`,"aria-controls":O}}:{role:`img`,"aria-label":w(`mark`)}),A=(0,c.computed)(()=>({"nb-ai-label":!0,[`nb-ai-label__${y.variant}`]:!0,[`nb-ai-label__${y.size}`]:!0,"nb-ai-label__static":!D.value,"nb-ai-label__reverting":E.value,"nb-ai-label__open":I.value})),j=(0,c.computed)(()=>({sm:12,md:16,lg:20})[y.size]??16),{layerProps:M}=a.useSurfaceLayer({overlay:!0}),{phone:N}=o.usePhoneLayout(),P=(0,c.ref)(null),F=(0,c.ref)(null),I=(0,c.ref)(!1),L=(0,c.ref)(y.placement),R=(0,c.ref)({top:0,left:0}),z=(0,c.computed)(()=>({top:`${R.value.top}px`,left:`${R.value.left}px`}));function B(){let e=P.value,t=F.value;if(!e||!t||N.value)return;let n=s.placeAnchored(e.getBoundingClientRect(),{width:t.offsetWidth,height:t.offsetHeight},{side:y.placement,viewport:s.viewportSize()});L.value=n.side,R.value={top:n.top,left:n.left}}function V(){!T.value||I.value||(I.value=!0,b(`open`),(0,c.nextTick)(()=>{B(),requestAnimationFrame(B)}))}function H(e=!1){I.value&&(I.value=!1,b(`close`),e&&P.value?.focus())}function U(){if(E.value){b(`revert`);return}T.value&&(I.value?H():V())}function W(){return Array.from(F.value?.querySelectorAll(v)??[])}function G(e){if(I.value){if(e.key===`Escape`){e.preventDefault(),H(!0);return}e.key===`Tab`&&!e.shiftKey&&(e.preventDefault(),(W()[0]??F.value)?.focus())}}function K(e){if(e.key===`Escape`){e.preventDefault(),e.stopPropagation(),H(!0);return}if(e.key!==`Tab`)return;let t=W(),n=t[0],r=t[t.length-1],i=document.activeElement;e.shiftKey&&(i===n||i===F.value)?(e.preventDefault(),P.value?.focus()):!e.shiftKey&&(i===r||!t.length)&&(e.preventDefault(),H(!0))}function q(e){let t=e.relatedTarget;t&&(F.value?.contains(t)||P.value?.contains(t)||H())}function J(){b(`show-plain`),H(!0)}function Y(e){let t=e.target;t&&(P.value?.contains(t)||F.value?.contains(t)||H())}function X(e){N.value||F.value?.contains(e.target)||B()}function Z(e){if(typeof document>`u`)return;let t=e?`addEventListener`:`removeEventListener`;document[t](`pointerdown`,Y,!0),window[t](`resize`,B),window[t](`scroll`,X,!0)}return(0,c.watch)(I,e=>Z(e)),(0,c.watch)(T,e=>{e||H()}),(0,c.onBeforeUnmount)(()=>Z(!1)),n({open:V,close:H,isOpen:I}),(n,i)=>((0,c.openBlock)(),(0,c.createBlock)((0,c.resolveDynamicComponent)(D.value?`button`:`span`),(0,c.mergeProps)({ref_key:`rootRef`,ref:P,class:A.value},k.value,{onClick:U,onKeydown:G}),{default:(0,c.withCtx)(()=>[E.value?((0,c.openBlock)(),(0,c.createBlock)(r.t,{key:0,class:`nb-ai-label--revert`,name:l,size:j.value,weight:`regular`},null,8,[`size`])):((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:1},[e.variant===(0,c.unref)(u).Inline?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,f)):(0,c.createCommentVNode)(``,!0),e.variant===(0,c.unref)(u).Inline&&w(`text`)?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,p,(0,c.toDisplayString)(w(`text`)),1)):((0,c.openBlock)(),(0,c.createElementBlock)(`svg`,m,[...i[1]||=[(0,c.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`},null,-1)]]))],64)),T.value?((0,c.openBlock)(),(0,c.createBlock)(c.Teleport,{key:2,to:e.teleportTo},[I.value&&(0,c.unref)(N)?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:0,class:`nb-ai-label--scrim`,"aria-hidden":`true`,onClick:i[0]||=e=>H()})):(0,c.createCommentVNode)(``,!0),I.value?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,(0,c.mergeProps)({key:1,id:O,ref_key:`popoverRef`,ref:F,role:`dialog`,"aria-label":w(`dialog`),tabindex:`-1`,class:[`nb-ai-label--popover`,(0,c.unref)(N)?`nb-ai-label--popover-sheet`:`nb-ai-label--popover-${L.value}`]},(0,c.unref)(M),{style:(0,c.unref)(N)?void 0:z.value,onKeydown:K,onFocusout:q}),[(0,c.createElementVNode)(`div`,g,[(0,c.renderSlot)(n.$slots,`explain`,{},()=>[(0,c.createElementVNode)(`p`,null,(0,c.toDisplayString)(e.explain),1)],!0)]),n.$slots.actions||e.plainAvailable?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,_,[(0,c.renderSlot)(n.$slots,`actions`,{},void 0,!0),e.plainAvailable?((0,c.openBlock)(),(0,c.createBlock)(t.t,{key:0,variant:`ghost`,size:`sm`,onClick:J},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(w(`showPlain`)),1)]),_:1})):(0,c.createCommentVNode)(``,!0)])):(0,c.createCommentVNode)(``,!0)],16,h)):(0,c.createCommentVNode)(``,!0)],8,[`to`])):(0,c.createCommentVNode)(``,!0)]),_:3},16,[`class`]))}}),b=n.t(y,[[`__scopeId`,`data-v-df642ee3`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return u}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { t as e } from "./Button-
|
|
2
|
-
import { t } from "./AiLabel-
|
|
1
|
+
import { t as e } from "./Button-CxJMKPpw.js";
|
|
2
|
+
import { t } from "./AiLabel-DKhHwWNt.js";
|
|
3
3
|
import { t as n } from "./Field-D12Dja-u.js";
|
|
4
|
-
import { t as r } from "./Panel-
|
|
5
|
-
import { t as i } from "./Select-
|
|
6
|
-
import { t as a } from "./TextInput-
|
|
4
|
+
import { t as r } from "./Panel-7LIVYu68.js";
|
|
5
|
+
import { t as i } from "./Select-CAXyp4ou.js";
|
|
6
|
+
import { t as a } from "./TextInput-DG8aUZeu.js";
|
|
7
7
|
import { createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, openBlock as p, renderSlot as m, toDisplayString as h, withCtx as g } from "vue";
|
|
8
8
|
//#region src/components/AiProvider.vue?vue&type=script&setup=true&lang.ts
|
|
9
9
|
var _ = { class: "nb-ai-provider__header" }, v = { class: "nb-ai-provider__title" }, y = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-5ClGtoaz.cjs`),t=require(`./AiLabel-oV9j_9bX.cjs`),n=require(`./Field-COMPegVv.cjs`),r=require(`./Panel-BRPE3B-O.cjs`),i=require(`./Select-C77tReXr.cjs`),a=require(`./TextInput-r8ap24-5.cjs`);let o=require(`vue`);var s={class:`nb-ai-provider__header`},c={class:`nb-ai-provider__title`},l={key:0,class:`nb-ai-provider__description`},u={class:`nb-ai-provider__row`},d={class:`nb-ai-provider__actions`},f=(0,o.defineComponent)({__name:`AiProvider`,props:{title:{default:`AI briefings`},providers:{default:()=>[{label:`Anthropic (Claude)`,value:`anthropic`},{label:`OpenAI`,value:`openai`},{label:`Google Gemini`,value:`gemini`}]},provider:{default:`anthropic`},model:{default:``},apiKey:{default:``},defaultModels:{default:()=>({})},hasKey:{type:Boolean,default:!1},busy:{type:Boolean,default:!1}},emits:[`update:provider`,`update:model`,`update:apiKey`,`save`,`remove`],setup(f,{emit:p}){let m=p;return(p,h)=>((0,o.openBlock)(),(0,o.createBlock)(r.t,{class:`nb-ai-provider`},{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)(`header`,s,[(0,o.createElementVNode)(`h2`,c,[(0,o.createTextVNode)((0,o.toDisplayString)(f.title)+` `,1),(0,o.createVNode)(t.t,{static:``,size:`sm`})]),p.$slots.default?((0,o.openBlock)(),(0,o.createElementBlock)(`div`,l,[(0,o.renderSlot)(p.$slots,`default`)])):(0,o.createCommentVNode)(``,!0)]),(0,o.createElementVNode)(`div`,u,[(0,o.createVNode)(n.t,{label:`Provider`,orientation:`stack`},{default:(0,o.withCtx)(({id:e})=>[(0,o.createVNode)(i.t,{id:e,"model-value":f.provider,options:f.providers,disabled:f.busy,"onUpdate:modelValue":h[0]||=e=>m(`update:provider`,String(e))},null,8,[`id`,`model-value`,`options`,`disabled`])]),_:1}),(0,o.createVNode)(n.t,{label:`Model`,hint:`Empty uses the provider's default.`,orientation:`stack`},{default:(0,o.withCtx)(({id:e})=>[(0,o.createVNode)(a.t,{id:e,"model-value":f.model,placeholder:f.defaultModels[f.provider]??``,disabled:f.busy,"onUpdate:modelValue":h[1]||=e=>m(`update:model`,String(e??``))},null,8,[`id`,`model-value`,`placeholder`,`disabled`])]),_:1})]),(0,o.createVNode)(n.t,{label:`API key`,hint:`Encrypted at rest and never sent back to the browser, so this field is always empty when the page loads.`,orientation:`stack`},{default:(0,o.withCtx)(({id:e})=>[(0,o.createVNode)(a.t,{id:e,"model-value":f.apiKey,type:`password`,autocomplete:`off`,placeholder:f.hasKey?`Stored. Type a new key to replace it.`:`sk-...`,disabled:f.busy,"onUpdate:modelValue":h[2]||=e=>m(`update:apiKey`,String(e??``))},null,8,[`id`,`model-value`,`placeholder`,`disabled`])]),_:1}),(0,o.createElementVNode)(`div`,d,[(0,o.createVNode)(e.t,{variant:`primary`,loading:f.busy,onClick:h[3]||=e=>m(`save`)},{default:(0,o.withCtx)(()=>[...h[5]||=[(0,o.createTextVNode)(` Save AI settings `,-1)]]),_:1},8,[`loading`]),f.hasKey?((0,o.openBlock)(),(0,o.createBlock)(e.t,{key:0,variant:`ghost`,disabled:f.busy,onClick:h[4]||=e=>m(`remove`)},{default:(0,o.withCtx)(()=>[...h[6]||=[(0,o.createTextVNode)(` Remove key `,-1)]]),_:1},8,[`disabled`])):(0,o.createCommentVNode)(``,!0)])]),_:3}))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Panel-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Panel-BRPE3B-O.cjs`),t=require(`./DefinitionList-CndoLDLs.cjs`);let n=require(`vue`);var r={class:`nb-ai-usage__header`},i={class:`nb-ai-usage__title`},a={class:`nb-ai-usage__description`},o={key:0,class:`nb-ai-usage__empty`},s={key:1,class:`nb-ai-usage__empty`},c=(0,n.defineComponent)({__name:`AiUsage`,props:{title:{default:`Usage and cost`},days:{default:30},hasKey:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},requests:{default:0},requestsLabel:{default:`Requests`},cacheHits:{default:null},inputTokens:{default:0},outputTokens:{default:0},estimatedCostUsd:{default:null},unpricedModels:{default:()=>[]},pricingVerifiedOn:{default:``},locale:{default:void 0}},setup(c){let l=c,u=(0,n.computed)(()=>new Intl.NumberFormat(l.locale||(typeof navigator<`u`?navigator.language:``)||`en`));function d(e){return e>=1e6?`${(e/1e6).toFixed(1)}M`:e>=1e3?`${(e/1e3).toFixed(1)}k`:String(e)}function f(e){return e>0&&e<.01?`<$0.01`:`$${e.toFixed(2)}`}let p=(0,n.computed)(()=>[{term:l.requestsLabel,value:`${u.value.format(l.requests)} (requests that reached your provider)`},...l.cacheHits===null?[]:[{term:`Served from cache`,value:`${u.value.format(l.cacheHits)} (free: a question already answered)`}],{term:`Tokens`,value:`${d(l.inputTokens+l.outputTokens)} (${d(l.inputTokens)} in, ${d(l.outputTokens)} out)`},{term:`Estimated cost`,value:l.estimatedCostUsd===null?`n/a: no published price on file for ${l.unpricedModels.join(`, `)||`this model`}`:`${f(l.estimatedCostUsd)} at list prices${l.pricingVerifiedOn?` as of ${l.pricingVerifiedOn}`:``}`}]);return(l,u)=>((0,n.openBlock)(),(0,n.createBlock)(e.t,{class:`nb-ai-usage`},{default:(0,n.withCtx)(()=>[(0,n.createElementVNode)(`header`,r,[(0,n.createElementVNode)(`h2`,i,(0,n.toDisplayString)(c.title),1),(0,n.createElementVNode)(`p`,a,` What has been asked of your provider over the last `+(0,n.toDisplayString)(c.days)+` days. Your provider bills you directly, so these are our records, not an invoice: check the provider console for the authoritative figure. `,1)]),c.hasKey?c.loading?((0,n.openBlock)(),(0,n.createElementBlock)(`p`,s,`Loading usage...`)):((0,n.openBlock)(),(0,n.createBlock)(t.t,{key:2,items:p.value,dividers:``},null,8,[`items`])):((0,n.openBlock)(),(0,n.createElementBlock)(`p`,o,` No key yet, so nothing has been sent to a provider. `)),(0,n.renderSlot)(l.$slots,`default`)]),_:3}))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./Panel-
|
|
1
|
+
import { t as e } from "./Panel-7LIVYu68.js";
|
|
2
2
|
import { t } from "./DefinitionList-BOVcW-V7.js";
|
|
3
3
|
import { computed as n, createBlock as r, createElementBlock as i, createElementVNode as a, defineComponent as o, openBlock as s, renderSlot as c, toDisplayString as l, withCtx as u } from "vue";
|
|
4
4
|
//#region src/components/AiUsage.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Button-
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./Button-5ClGtoaz.cjs`),n=require(`./composables/useReducedMotion.composable.cjs`),r=require(`./composables/useNbStrings.composable.cjs`);let i=require(`vue`),a=require(`@nubisco/ui/icons/arrow-up`);a=e.n(a);var o={key:0,class:`nb-back-to-top`},s=(0,i.defineComponent)({__name:`BackToTop`,props:{threshold:{default:void 0},label:{default:void 0}},setup(e){let s=e,c=r.useNbStrings(),l=(0,i.ref)(!1),u=0;function d(){u=0;let e=s.threshold??window.innerHeight;l.value=window.scrollY>e}function f(){u||=requestAnimationFrame(d)}function p(e){let t=n.prefersReducedMotion();window.scrollTo({top:0,behavior:t?`instant`:`smooth`}),e.detail===0&&document.querySelector(`a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])`)?.focus({preventScroll:!0})}return(0,i.onMounted)(()=>{d(),window.addEventListener(`scroll`,f,{passive:!0}),window.addEventListener(`resize`,f,{passive:!0})}),(0,i.onBeforeUnmount)(()=>{window.removeEventListener(`scroll`,f),window.removeEventListener(`resize`,f),u&&cancelAnimationFrame(u)}),(n,r)=>((0,i.openBlock)(),(0,i.createBlock)(i.Transition,{name:`nb-back-to-top`},{default:(0,i.withCtx)(()=>[l.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,o,[(0,i.createVNode)(t.t,{label:e.label??(0,i.unref)(c).backToTop,"tooltip-position":`left`,class:`nb-back-to-top__button`,variant:`secondary`,icon:a,onClick:p},null,8,[`label`])])):(0,i.createCommentVNode)(``,!0)]),_:1}))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return s}});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { t as e } from "./Button-
|
|
1
|
+
import { t as e } from "./Button-CxJMKPpw.js";
|
|
2
2
|
import { prefersReducedMotion as t } from "./composables/useReducedMotion.composable.mjs";
|
|
3
3
|
import { useNbStrings as n } from "./composables/useNbStrings.composable.mjs";
|
|
4
4
|
import { Transition as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createVNode as s, defineComponent as c, onBeforeUnmount as l, onMounted as u, openBlock as d, ref as f, unref as p, withCtx as m } from "vue";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./Icon-CssV4E2-.cjs`),r=require(`./CloseButton-
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./Icon-CssV4E2-.cjs`),r=require(`./CloseButton-D0Aj3uQK.cjs`);let i=require(`vue`),a=require(`@nubisco/ui/icons/info`);a=e.n(a);let o=require(`@nubisco/ui/icons/warning`);o=e.n(o);let s=require(`@nubisco/ui/icons/check-circle`);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`},_=(0,i.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:void 0}},emits:[`dismiss`],setup(e,{emit:t}){let _=e,v=t,y=(0,i.useSlots)(),b=(0,i.computed)(()=>!!y.default),x=(0,i.computed)(()=>!!y.action),S=(0,i.computed)(()=>_.dismissible&&_.variant!==d.Callout),C=(0,i.computed)(()=>_.status===u.Error),w=(0,i.ref)(!1);function T(){w.value=!0,v(`dismiss`)}let E={info:a,success:s,warning:o,error:c,neutral:l};return(e,t)=>w.value?(0,i.createCommentVNode)(``,!0):((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:0,class:(0,i.normalizeClass)([`nb-banner`,`nb-banner--${_.status}`,`nb-banner--${_.variant}`,{"nb-banner--flush":_.flush}]),role:C.value?`alert`:`status`,"aria-live":C.value?`assertive`:`polite`},[_.hideIcon?(0,i.createCommentVNode)(``,!0):((0,i.openBlock)(),(0,i.createBlock)(n.t,{key:0,name:_.icon??E[_.status],size:18,weight:`fill`,class:`nb-banner__icon`,"aria-hidden":`true`},null,8,[`name`])),(0,i.createElementVNode)(`p`,p,[_.title?((0,i.openBlock)(),(0,i.createElementBlock)(`strong`,m,(0,i.toDisplayString)(_.title),1)):(0,i.createCommentVNode)(``,!0),b.value?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,h,[(0,i.renderSlot)(e.$slots,`default`,{},void 0,!0)])):(0,i.createCommentVNode)(``,!0)]),x.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,g,[(0,i.renderSlot)(e.$slots,`action`,{},void 0,!0)])):(0,i.createCommentVNode)(``,!0),S.value?((0,i.openBlock)(),(0,i.createBlock)(r.t,{key:2,class:`nb-banner__close`,label:_.closeLabel,onClick:T},null,8,[`label`])):(0,i.createCommentVNode)(``,!0)],10,f))}}),v=t.t(_,[[`__scopeId`,`data-v-4896eb17`]]);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 v}});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
2
|
import { t } from "./Icon-B2tiGiqZ.js";
|
|
3
|
-
import { t as n } from "./CloseButton-
|
|
3
|
+
import { t as n } from "./CloseButton-BeaS7MQc.js";
|
|
4
4
|
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createElementVNode as s, defineComponent as c, normalizeClass as l, openBlock as u, ref as d, renderSlot as f, toDisplayString as p, useSlots as m } from "vue";
|
|
5
5
|
import * as h from "@nubisco/ui/icons/info";
|
|
6
6
|
import * as g from "@nubisco/ui/icons/warning";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useNbStrings.composable.cjs`),n=require(`./palette-MlQ_k4iu.cjs`),r=require(`./ChartLegend-COJeG-2B.cjs`),i=require(`./scales-BRSHTjbp.cjs`),a=require(`./useChartSize-CUZ7BuGD.cjs`),o=require(`./useChartEntrance-D8vJ7eWq.cjs`);let s=require(`vue`);var c=[`width`,`height`,`role`,`aria-label`],l={key:0},u=[`x1`,`x2`,`y1`,`y2`],ee={key:1,class:`nb-chart__axis`},d=[`x`,`y`,`text-anchor`,`dominant-baseline`],f={class:`nb-chart__axis`},te=[`x`,`y`,`text-anchor`,`dominant-baseline`],ne=[`x1`,`x2`,`y1`,`y2`],p={key:3,class:`nb-chart__empty-layer`,"aria-hidden":`true`},re=[`d`,`fill`,`tabindex`,`role`,`aria-label`,`onKeydown`],ie=[`fill`,`tabindex`,`role`,`aria-label`,`onKeydown`],m={class:`nb-chart__hover-layer`},h=[`onMouseenter`,`onMousemove`,`onClick`],ae=7,g=2,_=12,v=(0,s.defineComponent)({__name:`BarChart`,props:{series:{default:()=>[]},orientation:{default:`vertical`},stacked:{type:Boolean,default:!1},valueFormatter:{},barRadius:{default:0},showEmpty:{type:Boolean,default:!1},showBaseline:{type:Boolean,default:!0},showValueAxis:{type:Boolean,default:!0},categoryLabelEvery:{default:1},showTotal:{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:()=>n.n},animate:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:v}){let y=t.useNbStrings(),b=e,x=v,S=(0,s.ref)(null),C=a.t(S,{width:480,height:240}),w=(0,s.computed)(()=>b.orientation===`horizontal`),{runKey:oe}=o.t(()=>b.animate,()=>b.series),T=(0,s.computed)(()=>b.series.map((e,t)=>({name:e.name,data:e.data,color:e.color??n.i(t,b.colors)}))),E=(0,s.computed)(()=>(b.series[0]?.data??[]).map(e=>e.x)),D=(e,t)=>T.value[t]?.data[e]?.y??0,O=(e,t)=>{let n=D(e,t);if(!b.stacked)return[0,n];let r=0;for(let i=0;i<t;i+=1){let t=D(e,i);t>=0==n>=0&&(r+=t)}return[r,r+n]},k=(0,s.computed)(()=>{let e=[];return E.value.forEach((t,n)=>{T.value.forEach((t,r)=>{e.push(O(n,r)[1])})}),e.length?i.i(Math.min(0,...e),Math.max(0,...e),.05):[0,1]}),A=(0,s.computed)(()=>{if(!w.value)return{top:12,right:16,bottom:28,left:b.showValueAxis?44:16};let e=E.value.reduce((e,t)=>Math.max(e,String(t).length),0),t=Math.max(44,Math.round(C.value.width*.4));return{top:12,right:16,bottom:b.showValueAxis?28:12,left:Math.min(Math.max(44,Math.ceil(e*6.2)+12),t)}}),j=(0,s.computed)(()=>({x0:A.value.left,x1:Math.max(A.value.left,C.value.width-A.value.right),y0:A.value.top,y1:Math.max(A.value.top,C.value.height-A.value.bottom)})),M=(0,s.computed)(()=>i.t(E.value.map(e=>String(e)),w.value?[j.value.y0,j.value.y1]:[j.value.x0,j.value.x1],.2)),N=(0,s.computed)(()=>i.r(k.value,w.value?[j.value.x0,j.value.x1]:[j.value.y1,j.value.y0])),P=(0,s.computed)(()=>N.value.ticks(5)),se=e=>Math.max(N.value(e),ae),F=e=>M.value(String(E.value[e])),I=e=>F(e)+M.value.bandwidth/2,L=(0,s.computed)(()=>{let e=T.value.length||1;return b.stacked?M.value.bandwidth:M.value.bandwidth/e}),R=(e,t)=>{let[n,r]=O(e,t),i=N.value(n),a=N.value(r),o=Math.max(0,L.value-2),s=F(e)+(b.stacked?0:t*L.value),c=Math.max(0,Math.abs(a-i));return w.value?{x:Math.min(i,a),y:s,width:c,height:o}:{x:s,y:Math.min(i,a),width:o,height:c}},z=(0,s.computed)(()=>{let e=Math.floor(b.categoryLabelEvery);return Number.isFinite(e)&&e>1?e:1}),B=(0,s.computed)(()=>E.value.map((e,t)=>({cat:e,i:t})).filter(({i:e})=>e%z.value===0)),V=(0,s.computed)(()=>b.barRadius>0),H=(e,t)=>{if(!b.stacked)return!0;let n=D(e,t);for(let r=t+1;r<T.value.length;r+=1){let t=D(e,r);if(t!==0&&t>=0==n>=0)return!1}return!0},U=(e,t,n,r,[i,a,o,s])=>[`M${e+i},${t}`,`H${e+n-a}`,`A${a},${a} 0 0 1 ${e+n},${t+a}`,`V${t+r-o}`,`A${o},${o} 0 0 1 ${e+n-o},${t+r}`,`H${e+s}`,`A${s},${s} 0 0 1 ${e},${t+r-s}`,`V${t+i}`,`A${i},${i} 0 0 1 ${e+i},${t}`,`Z`].join(` `),W=(e,t)=>{let{x:n,y:r,width:i,height:a}=R(e,t),o=w.value?a:i,s=w.value?i:a,c=H(e,t)?Math.max(0,Math.min(b.barRadius,o/2,s)):0,l=D(e,t)>=0,u;return u=w.value?l?[0,c,c,0]:[c,0,0,c]:l?[c,c,0,0]:[0,0,c,c],U(n,r,i,a,u)},G=(0,s.computed)(()=>E.value.map((e,t)=>t).filter(e=>T.value.every((t,n)=>D(e,n)===0))),ce=e=>{let t=N.value(0),n=Math.max(0,M.value.bandwidth-2),r=V.value?Math.min(b.barRadius,g/2):0;return w.value?{x:t,y:F(e),width:g,height:n,rx:r}:{x:F(e),y:t-g,width:n,height:g,rx:r}},le=e=>{let t=N.value(0);return{class:[`nb-chart__bar-group`,w.value?`nb-chart__bar-group--horizontal`:`nb-chart__bar-group--vertical`],style:{"--nb-chart-i":Math.min(e,_),transformOrigin:w.value?`${t}px 0px`:`0px ${t}px`}}},ue=e=>{let t=F(e),n=M.value.bandwidth;return w.value?{x:j.value.x0,y:t,width:Math.max(0,j.value.x1-j.value.x0),height:n}:{x:t,y:j.value.y0,width:n,height:Math.max(0,j.value.y1-j.value.y0)}},de=e=>Math.abs(e)>=1e3?`${(e/1e3).toFixed(1)}k`:String(e),K=e=>b.valueFormatter?b.valueFormatter(e):de(e),fe=(0,s.getCurrentInstance)(),q=()=>!!fe?.vnode.props?.onSelect,J=(e,t)=>{let n=T.value[t],r=K(D(e,t));return T.value.length>1?`${E.value[e]}, ${n?.name}: ${r}`:`${E.value[e]}: ${r}`},Y=(e,t)=>{let n=T.value[t],r=n?.data[e];return{kind:`series`,x:r?.x??E.value[e],y:r?.y??0,seriesName:n?.name??``,seriesIndex:t,index:e,point:r??{x:E.value[e],y:0}}},X=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}},pe=(e,t)=>{let n=T.value.length;if(n<=1)return 0;let r=X(e);if(!r)return 0;if(b.stacked){let e=w.value?r.x:r.y;for(let r=0;r<n;r+=1){let[n,i]=O(t,r),a=N.value(n),o=N.value(i);if(e>=Math.min(a,o)&&e<=Math.max(a,o))return r}return n-1}let i=(w.value?r.y:r.x)-F(t),a=Math.floor(i/(L.value||1));return Math.min(Math.max(a,0),n-1)},me=(e,t)=>{q()&&x(`select`,Y(t,pe(e,t)))},Z=(e,t,n)=>{q()&&(e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),x(`select`,Y(t,n))))},Q=(0,s.ref)(null),$=(0,s.ref)({x:0,y:0}),he=(e,t)=>{let n=X(e);n&&($.value={x:n.x+12,y:n.y+12},Q.value=t)},ge=(0,s.computed)(()=>Q.value===null?[]:T.value.map(e=>{let t=e.data[Q.value];return{label:e.name,value:t?.label??K(t?.y??0),color:e.color}})),_e=(0,s.computed)(()=>{if(!b.showTotal||Q.value===null||T.value.length<2)return;let e=Q.value,t=T.value.reduce((t,n)=>t+(n.data[e]?.y??0),0);return{label:y.value.chartTotal,value:K(t)}});return(t,i)=>((0,s.openBlock)(),(0,s.createBlock)(n.u,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&T.value.length>0},{legend:(0,s.withCtx)(()=>[(0,s.createVNode)(r.t,{items:T.value.map(e=>({label:e.name,color:e.color}))},null,8,[`items`])]),default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,{ref_key:`root`,ref:S,class:`nb-bar-chart`},[((0,s.openBlock)(),(0,s.createElementBlock)(`svg`,{width:(0,s.unref)(C).width,height:(0,s.unref)(C).height,class:(0,s.normalizeClass)([`nb-chart__svg`,{"nb-chart__svg--selectable":q(),"nb-chart__svg--animate":e.animate}]),role:q()?`group`:`img`,"aria-label":e.title||(0,s.unref)(y).chartBar,onMouseleave:i[0]||=e=>Q.value=null},[e.showGrid&&(0,s.unref)(C).width>0?((0,s.openBlock)(),(0,s.createElementBlock)(`g`,l,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(P.value,e=>((0,s.openBlock)(),(0,s.createElementBlock)(`line`,{key:`grid-${e}`,class:`nb-chart__gridline`,x1:w.value?N.value(e):j.value.x0,x2:w.value?N.value(e):j.value.x1,y1:w.value?j.value.y0:N.value(e),y2:w.value?j.value.y1:N.value(e)},null,8,u))),128))])):(0,s.createCommentVNode)(``,!0),e.showValueAxis?((0,s.openBlock)(),(0,s.createElementBlock)(`g`,ee,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(P.value,e=>((0,s.openBlock)(),(0,s.createElementBlock)(`text`,{key:`vt-${e}`,x:w.value?N.value(e):j.value.x0-6,y:w.value?j.value.y1+14:se(e),"text-anchor":w.value?`middle`:`end`,"dominant-baseline":w.value?`auto`:`middle`},(0,s.toDisplayString)(K(e)),9,d))),128))])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`g`,f,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(B.value,({cat:e,i:t})=>((0,s.openBlock)(),(0,s.createElementBlock)(`text`,{key:`ct-${t}`,x:w.value?j.value.x0-6:I(t),y:w.value?I(t):j.value.y1+14,"text-anchor":w.value?`end`:`middle`,"dominant-baseline":w.value?`middle`:`auto`},(0,s.toDisplayString)(e),9,te))),128))]),e.showBaseline?((0,s.openBlock)(),(0,s.createElementBlock)(`line`,{key:2,class:`nb-chart__axis-line`,x1:w.value?N.value(0):j.value.x0,x2:w.value?N.value(0):j.value.x1,y1:w.value?j.value.y0:N.value(0),y2:w.value?j.value.y1:N.value(0)},null,8,ne)):(0,s.createCommentVNode)(``,!0),e.showEmpty?((0,s.openBlock)(),(0,s.createElementBlock)(`g`,p,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(G.value,e=>((0,s.openBlock)(),(0,s.createElementBlock)(`rect`,(0,s.mergeProps)({key:`empty-${e}`,class:`nb-chart__empty`},{ref_for:!0},ce(e)),null,16))),128))])):(0,s.createCommentVNode)(``,!0),((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(E.value,(t,n)=>((0,s.openBlock)(),(0,s.createElementBlock)(`g`,(0,s.mergeProps)({key:`g-${(0,s.unref)(oe)}-${n}`},{ref_for:!0},e.animate?le(n):void 0),[V.value?((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,{key:0},(0,s.renderList)(T.value,(e,t)=>((0,s.openBlock)(),(0,s.createElementBlock)(`path`,{key:`${n}-${t}`,class:(0,s.normalizeClass)([`nb-chart__bar`,{"is-dim":Q.value!==null&&Q.value!==n}]),d:W(n,t),fill:e.color,tabindex:q()?0:void 0,role:q()?`button`:void 0,"aria-label":q()?J(n,t):void 0,onKeydown:e=>Z(e,n,t)},null,42,re))),128)):((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,{key:1},(0,s.renderList)(T.value,(e,t)=>((0,s.openBlock)(),(0,s.createElementBlock)(`rect`,(0,s.mergeProps)({key:`${n}-${t}`,class:[`nb-chart__bar`,{"is-dim":Q.value!==null&&Q.value!==n}]},{ref_for:!0},R(n,t),{fill:e.color,tabindex:q()?0:void 0,role:q()?`button`:void 0,"aria-label":q()?J(n,t):void 0,onKeydown:e=>Z(e,n,t)}),null,16,ie))),128))],16))),128)),(0,s.createElementVNode)(`g`,m,[((0,s.openBlock)(!0),(0,s.createElementBlock)(s.Fragment,null,(0,s.renderList)(E.value,(e,t)=>((0,s.openBlock)(),(0,s.createElementBlock)(`rect`,(0,s.mergeProps)({key:`hover-${t}`},{ref_for:!0},ue(t),{fill:`transparent`,onMouseenter:e=>Q.value=t,onMousemove:e=>he(e,t),onClick:e=>me(e,t)}),null,16,h))),128))])],42,c)),(0,s.createVNode)(n.l,{visible:e.showTooltip&&Q.value!==null,x:$.value.x,y:$.value.y,title:Q.value===null?``:String(E.value[Q.value]),rows:ge.value,total:_e.value},null,8,[`visible`,`x`,`y`,`title`,`rows`,`total`])],512)]),_:1},8,[`title`,`subtitle`,`height`,`show-legend`]))}}),y=e.t(v,[[`__scopeId`,`data-v-2f03f090`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return y}});
|
|
@@ -1,61 +1,62 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
2
|
import { useNbStrings as t } from "./composables/useNbStrings.composable.mjs";
|
|
3
|
-
import { i as n, l as r, n as i, u as a } from "./palette-
|
|
3
|
+
import { i as n, l as r, n as i, u as a } from "./palette-BPqd521m.js";
|
|
4
4
|
import { t as o } from "./ChartLegend-LDNukufA.js";
|
|
5
5
|
import { i as s, r as c, t as l } from "./scales-BGzTviac.js";
|
|
6
6
|
import { t as u } from "./useChartSize-05CLdiR0.js";
|
|
7
|
-
import {
|
|
7
|
+
import { t as ee } from "./useChartEntrance-heEx5_ZG.js";
|
|
8
|
+
import { Fragment as d, computed as f, createBlock as te, createCommentVNode as p, createElementBlock as m, createElementVNode as h, createVNode as g, defineComponent as _, getCurrentInstance as ne, mergeProps as v, normalizeClass as y, openBlock as b, ref as x, renderList as S, toDisplayString as C, unref as w, withCtx as T } from "vue";
|
|
8
9
|
//#region src/components/Charts/BarChart.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var
|
|
10
|
+
var re = [
|
|
10
11
|
"width",
|
|
11
12
|
"height",
|
|
12
13
|
"role",
|
|
13
14
|
"aria-label"
|
|
14
|
-
],
|
|
15
|
+
], ie = { key: 0 }, ae = [
|
|
15
16
|
"x1",
|
|
16
17
|
"x2",
|
|
17
18
|
"y1",
|
|
18
19
|
"y2"
|
|
19
|
-
],
|
|
20
|
+
], oe = {
|
|
20
21
|
key: 1,
|
|
21
22
|
class: "nb-chart__axis"
|
|
22
|
-
},
|
|
23
|
+
}, se = [
|
|
23
24
|
"x",
|
|
24
25
|
"y",
|
|
25
26
|
"text-anchor",
|
|
26
27
|
"dominant-baseline"
|
|
27
|
-
],
|
|
28
|
+
], ce = { class: "nb-chart__axis" }, le = [
|
|
28
29
|
"x",
|
|
29
30
|
"y",
|
|
30
31
|
"text-anchor",
|
|
31
32
|
"dominant-baseline"
|
|
32
|
-
],
|
|
33
|
+
], ue = [
|
|
33
34
|
"x1",
|
|
34
35
|
"x2",
|
|
35
36
|
"y1",
|
|
36
37
|
"y2"
|
|
37
|
-
],
|
|
38
|
+
], de = {
|
|
38
39
|
key: 3,
|
|
39
40
|
class: "nb-chart__empty-layer",
|
|
40
41
|
"aria-hidden": "true"
|
|
41
|
-
},
|
|
42
|
+
}, fe = [
|
|
42
43
|
"d",
|
|
43
44
|
"fill",
|
|
44
45
|
"tabindex",
|
|
45
46
|
"role",
|
|
46
47
|
"aria-label",
|
|
47
48
|
"onKeydown"
|
|
48
|
-
],
|
|
49
|
+
], pe = [
|
|
49
50
|
"fill",
|
|
50
51
|
"tabindex",
|
|
51
52
|
"role",
|
|
52
53
|
"aria-label",
|
|
53
54
|
"onKeydown"
|
|
54
|
-
],
|
|
55
|
+
], me = { class: "nb-chart__hover-layer" }, he = [
|
|
55
56
|
"onMouseenter",
|
|
56
57
|
"onMousemove",
|
|
57
58
|
"onClick"
|
|
58
|
-
], E = 2, D = /* @__PURE__ */ e(/* @__PURE__ */ _({
|
|
59
|
+
], ge = 7, E = 2, _e = 12, D = /* @__PURE__ */ e(/* @__PURE__ */ _({
|
|
59
60
|
__name: "BarChart",
|
|
60
61
|
props: {
|
|
61
62
|
series: { default: () => [] },
|
|
@@ -79,6 +80,10 @@ var ne = [
|
|
|
79
80
|
default: !0
|
|
80
81
|
},
|
|
81
82
|
categoryLabelEvery: { default: 1 },
|
|
83
|
+
showTotal: {
|
|
84
|
+
type: Boolean,
|
|
85
|
+
default: !1
|
|
86
|
+
},
|
|
82
87
|
title: { default: void 0 },
|
|
83
88
|
subtitle: { default: void 0 },
|
|
84
89
|
height: { default: 280 },
|
|
@@ -94,14 +99,18 @@ var ne = [
|
|
|
94
99
|
type: Boolean,
|
|
95
100
|
default: !0
|
|
96
101
|
},
|
|
97
|
-
colors: { default: () => i }
|
|
102
|
+
colors: { default: () => i },
|
|
103
|
+
animate: {
|
|
104
|
+
type: Boolean,
|
|
105
|
+
default: !1
|
|
106
|
+
}
|
|
98
107
|
},
|
|
99
108
|
emits: ["select"],
|
|
100
109
|
setup(e, { emit: i }) {
|
|
101
110
|
let _ = t(), D = e, O = i, k = x(null), A = u(k, {
|
|
102
111
|
width: 480,
|
|
103
112
|
height: 240
|
|
104
|
-
}), j = f(() => D.orientation === "horizontal"), M = f(() => D.series.map((e, t) => ({
|
|
113
|
+
}), j = f(() => D.orientation === "horizontal"), { runKey: ve } = ee(() => D.animate, () => D.series), M = f(() => D.series.map((e, t) => ({
|
|
105
114
|
name: e.name,
|
|
106
115
|
data: e.data,
|
|
107
116
|
color: e.color ?? n(t, D.colors)
|
|
@@ -114,7 +123,7 @@ var ne = [
|
|
|
114
123
|
t >= 0 == n >= 0 && (r += t);
|
|
115
124
|
}
|
|
116
125
|
return [r, r + n];
|
|
117
|
-
},
|
|
126
|
+
}, ye = f(() => {
|
|
118
127
|
let e = [];
|
|
119
128
|
return N.value.forEach((t, n) => {
|
|
120
129
|
M.value.forEach((t, r) => {
|
|
@@ -140,7 +149,7 @@ var ne = [
|
|
|
140
149
|
x1: Math.max(I.value.left, A.value.width - I.value.right),
|
|
141
150
|
y0: I.value.top,
|
|
142
151
|
y1: Math.max(I.value.top, A.value.height - I.value.bottom)
|
|
143
|
-
})), R = f(() => l(N.value.map((e) => String(e)), j.value ? [L.value.y0, L.value.y1] : [L.value.x0, L.value.x1], .2)), z = f(() => c(
|
|
152
|
+
})), R = f(() => l(N.value.map((e) => String(e)), j.value ? [L.value.y0, L.value.y1] : [L.value.x0, L.value.x1], .2)), z = f(() => c(ye.value, j.value ? [L.value.x0, L.value.x1] : [L.value.y1, L.value.y0])), B = f(() => z.value.ticks(5)), be = (e) => Math.max(z.value(e), ge), V = (e) => R.value(String(N.value[e])), H = (e) => V(e) + R.value.bandwidth / 2, U = f(() => {
|
|
144
153
|
let e = M.value.length || 1;
|
|
145
154
|
return D.stacked ? R.value.bandwidth : R.value.bandwidth / e;
|
|
146
155
|
}), W = (e, t) => {
|
|
@@ -156,13 +165,13 @@ var ne = [
|
|
|
156
165
|
width: o,
|
|
157
166
|
height: c
|
|
158
167
|
};
|
|
159
|
-
},
|
|
168
|
+
}, xe = f(() => {
|
|
160
169
|
let e = Math.floor(D.categoryLabelEvery);
|
|
161
170
|
return Number.isFinite(e) && e > 1 ? e : 1;
|
|
162
|
-
}),
|
|
171
|
+
}), Se = f(() => N.value.map((e, t) => ({
|
|
163
172
|
cat: e,
|
|
164
173
|
i: t
|
|
165
|
-
})).filter(({ i: e }) => e %
|
|
174
|
+
})).filter(({ i: e }) => e % xe.value === 0)), G = f(() => D.barRadius > 0), Ce = (e, t) => {
|
|
166
175
|
if (!D.stacked) return !0;
|
|
167
176
|
let n = P(e, t);
|
|
168
177
|
for (let r = t + 1; r < M.value.length; r += 1) {
|
|
@@ -170,7 +179,7 @@ var ne = [
|
|
|
170
179
|
if (t !== 0 && t >= 0 == n >= 0) return !1;
|
|
171
180
|
}
|
|
172
181
|
return !0;
|
|
173
|
-
},
|
|
182
|
+
}, we = (e, t, n, r, [i, a, o, s]) => [
|
|
174
183
|
`M${e + i},${t}`,
|
|
175
184
|
`H${e + n - a}`,
|
|
176
185
|
`A${a},${a} 0 0 1 ${e + n},${t + a}`,
|
|
@@ -181,8 +190,8 @@ var ne = [
|
|
|
181
190
|
`V${t + i}`,
|
|
182
191
|
`A${i},${i} 0 0 1 ${e + i},${t}`,
|
|
183
192
|
"Z"
|
|
184
|
-
].join(" "),
|
|
185
|
-
let { x: n, y: r, width: i, height: a } = W(e, t), o = j.value ? a : i, s = j.value ? i : a, c =
|
|
193
|
+
].join(" "), Te = (e, t) => {
|
|
194
|
+
let { x: n, y: r, width: i, height: a } = W(e, t), o = j.value ? a : i, s = j.value ? i : a, c = Ce(e, t) ? Math.max(0, Math.min(D.barRadius, o / 2, s)) : 0, l = P(e, t) >= 0, u;
|
|
186
195
|
return u = j.value ? l ? [
|
|
187
196
|
0,
|
|
188
197
|
c,
|
|
@@ -203,8 +212,8 @@ var ne = [
|
|
|
203
212
|
0,
|
|
204
213
|
c,
|
|
205
214
|
c
|
|
206
|
-
],
|
|
207
|
-
},
|
|
215
|
+
], we(n, r, i, a, u);
|
|
216
|
+
}, Ee = f(() => N.value.map((e, t) => t).filter((e) => M.value.every((t, n) => P(e, n) === 0))), De = (e) => {
|
|
208
217
|
let t = z.value(0), n = Math.max(0, R.value.bandwidth - 2), r = G.value ? Math.min(D.barRadius, E / 2) : 0;
|
|
209
218
|
return j.value ? {
|
|
210
219
|
x: t,
|
|
@@ -219,7 +228,16 @@ var ne = [
|
|
|
219
228
|
height: E,
|
|
220
229
|
rx: r
|
|
221
230
|
};
|
|
222
|
-
},
|
|
231
|
+
}, Oe = (e) => {
|
|
232
|
+
let t = z.value(0);
|
|
233
|
+
return {
|
|
234
|
+
class: ["nb-chart__bar-group", j.value ? "nb-chart__bar-group--horizontal" : "nb-chart__bar-group--vertical"],
|
|
235
|
+
style: {
|
|
236
|
+
"--nb-chart-i": Math.min(e, _e),
|
|
237
|
+
transformOrigin: j.value ? `${t}px 0px` : `0px ${t}px`
|
|
238
|
+
}
|
|
239
|
+
};
|
|
240
|
+
}, ke = (e) => {
|
|
223
241
|
let t = V(e), n = R.value.bandwidth;
|
|
224
242
|
return j.value ? {
|
|
225
243
|
x: L.value.x0,
|
|
@@ -232,7 +250,7 @@ var ne = [
|
|
|
232
250
|
width: n,
|
|
233
251
|
height: Math.max(0, L.value.y1 - L.value.y0)
|
|
234
252
|
};
|
|
235
|
-
},
|
|
253
|
+
}, Ae = (e) => Math.abs(e) >= 1e3 ? `${(e / 1e3).toFixed(1)}k` : String(e), K = (e) => D.valueFormatter ? D.valueFormatter(e) : Ae(e), je = ne(), q = () => !!je?.vnode.props?.onSelect, J = (e, t) => {
|
|
236
254
|
let n = M.value[t], r = K(P(e, t));
|
|
237
255
|
return M.value.length > 1 ? `${N.value[e]}, ${n?.name}: ${r}` : `${N.value[e]}: ${r}`;
|
|
238
256
|
}, Y = (e, t) => {
|
|
@@ -257,7 +275,7 @@ var ne = [
|
|
|
257
275
|
x: e.clientX - n.left,
|
|
258
276
|
y: e.clientY - n.top
|
|
259
277
|
};
|
|
260
|
-
},
|
|
278
|
+
}, Me = (e, t) => {
|
|
261
279
|
let n = M.value.length;
|
|
262
280
|
if (n <= 1) return 0;
|
|
263
281
|
let r = X(e);
|
|
@@ -272,28 +290,35 @@ var ne = [
|
|
|
272
290
|
}
|
|
273
291
|
let i = (j.value ? r.y : r.x) - V(t), a = Math.floor(i / (U.value || 1));
|
|
274
292
|
return Math.min(Math.max(a, 0), n - 1);
|
|
275
|
-
},
|
|
276
|
-
q() && O("select", Y(t,
|
|
293
|
+
}, Ne = (e, t) => {
|
|
294
|
+
q() && O("select", Y(t, Me(e, t)));
|
|
277
295
|
}, Z = (e, t, n) => {
|
|
278
296
|
q() && (e.key !== "Enter" && e.key !== " " || (e.preventDefault(), O("select", Y(t, n))));
|
|
279
297
|
}, Q = x(null), $ = x({
|
|
280
298
|
x: 0,
|
|
281
299
|
y: 0
|
|
282
|
-
}),
|
|
300
|
+
}), Pe = (e, t) => {
|
|
283
301
|
let n = X(e);
|
|
284
302
|
n && ($.value = {
|
|
285
303
|
x: n.x + 12,
|
|
286
304
|
y: n.y + 12
|
|
287
305
|
}, Q.value = t);
|
|
288
|
-
},
|
|
306
|
+
}, Fe = f(() => Q.value === null ? [] : M.value.map((e) => {
|
|
289
307
|
let t = e.data[Q.value];
|
|
290
308
|
return {
|
|
291
309
|
label: e.name,
|
|
292
310
|
value: t?.label ?? K(t?.y ?? 0),
|
|
293
311
|
color: e.color
|
|
294
312
|
};
|
|
295
|
-
}))
|
|
296
|
-
|
|
313
|
+
})), Ie = f(() => {
|
|
314
|
+
if (!D.showTotal || Q.value === null || M.value.length < 2) return;
|
|
315
|
+
let e = Q.value, t = M.value.reduce((t, n) => t + (n.data[e]?.y ?? 0), 0);
|
|
316
|
+
return {
|
|
317
|
+
label: _.value.chartTotal,
|
|
318
|
+
value: K(t)
|
|
319
|
+
};
|
|
320
|
+
});
|
|
321
|
+
return (t, n) => (b(), te(a, {
|
|
297
322
|
title: e.title,
|
|
298
323
|
subtitle: e.subtitle,
|
|
299
324
|
height: e.height,
|
|
@@ -310,33 +335,36 @@ var ne = [
|
|
|
310
335
|
}, [(b(), m("svg", {
|
|
311
336
|
width: w(A).width,
|
|
312
337
|
height: w(A).height,
|
|
313
|
-
class: y(["nb-chart__svg", {
|
|
338
|
+
class: y(["nb-chart__svg", {
|
|
339
|
+
"nb-chart__svg--selectable": q(),
|
|
340
|
+
"nb-chart__svg--animate": e.animate
|
|
341
|
+
}]),
|
|
314
342
|
role: q() ? "group" : "img",
|
|
315
343
|
"aria-label": e.title || w(_).chartBar,
|
|
316
344
|
onMouseleave: n[0] ||= (e) => Q.value = null
|
|
317
345
|
}, [
|
|
318
|
-
e.showGrid && w(A).width > 0 ? (b(), m("g",
|
|
346
|
+
e.showGrid && w(A).width > 0 ? (b(), m("g", ie, [(b(!0), m(d, null, S(B.value, (e) => (b(), m("line", {
|
|
319
347
|
key: `grid-${e}`,
|
|
320
348
|
class: "nb-chart__gridline",
|
|
321
349
|
x1: j.value ? z.value(e) : L.value.x0,
|
|
322
350
|
x2: j.value ? z.value(e) : L.value.x1,
|
|
323
351
|
y1: j.value ? L.value.y0 : z.value(e),
|
|
324
352
|
y2: j.value ? L.value.y1 : z.value(e)
|
|
325
|
-
}, null, 8,
|
|
326
|
-
e.showValueAxis ? (b(), m("g",
|
|
353
|
+
}, null, 8, ae))), 128))])) : p("", !0),
|
|
354
|
+
e.showValueAxis ? (b(), m("g", oe, [(b(!0), m(d, null, S(B.value, (e) => (b(), m("text", {
|
|
327
355
|
key: `vt-${e}`,
|
|
328
356
|
x: j.value ? z.value(e) : L.value.x0 - 6,
|
|
329
|
-
y: j.value ? L.value.y1 + 14 :
|
|
357
|
+
y: j.value ? L.value.y1 + 14 : be(e),
|
|
330
358
|
"text-anchor": j.value ? "middle" : "end",
|
|
331
359
|
"dominant-baseline": j.value ? "auto" : "middle"
|
|
332
|
-
}, C(K(e)), 9,
|
|
333
|
-
h("g",
|
|
360
|
+
}, C(K(e)), 9, se))), 128))])) : p("", !0),
|
|
361
|
+
h("g", ce, [(b(!0), m(d, null, S(Se.value, ({ cat: e, i: t }) => (b(), m("text", {
|
|
334
362
|
key: `ct-${t}`,
|
|
335
363
|
x: j.value ? L.value.x0 - 6 : H(t),
|
|
336
364
|
y: j.value ? H(t) : L.value.y1 + 14,
|
|
337
365
|
"text-anchor": j.value ? "end" : "middle",
|
|
338
366
|
"dominant-baseline": j.value ? "middle" : "auto"
|
|
339
|
-
}, C(e), 9,
|
|
367
|
+
}, C(e), 9, le))), 128))]),
|
|
340
368
|
e.showBaseline ? (b(), m("line", {
|
|
341
369
|
key: 2,
|
|
342
370
|
class: "nb-chart__axis-line",
|
|
@@ -344,48 +372,50 @@ var ne = [
|
|
|
344
372
|
x2: j.value ? z.value(0) : L.value.x1,
|
|
345
373
|
y1: j.value ? L.value.y0 : z.value(0),
|
|
346
374
|
y2: j.value ? L.value.y1 : z.value(0)
|
|
347
|
-
}, null, 8,
|
|
348
|
-
e.showEmpty ? (b(), m("g",
|
|
375
|
+
}, null, 8, ue)) : p("", !0),
|
|
376
|
+
e.showEmpty ? (b(), m("g", de, [(b(!0), m(d, null, S(Ee.value, (e) => (b(), m("rect", v({
|
|
349
377
|
key: `empty-${e}`,
|
|
350
378
|
class: "nb-chart__empty"
|
|
351
|
-
}, { ref_for: !0 },
|
|
352
|
-
(b(!0), m(d, null, S(N.value, (
|
|
353
|
-
key: `${
|
|
354
|
-
class: y(["nb-chart__bar", { "is-dim": Q.value !== null && Q.value !==
|
|
355
|
-
d:
|
|
379
|
+
}, { ref_for: !0 }, De(e)), null, 16))), 128))])) : p("", !0),
|
|
380
|
+
(b(!0), m(d, null, S(N.value, (t, n) => (b(), m("g", v({ key: `g-${w(ve)}-${n}` }, { ref_for: !0 }, e.animate ? Oe(n) : void 0), [G.value ? (b(!0), m(d, { key: 0 }, S(M.value, (e, t) => (b(), m("path", {
|
|
381
|
+
key: `${n}-${t}`,
|
|
382
|
+
class: y(["nb-chart__bar", { "is-dim": Q.value !== null && Q.value !== n }]),
|
|
383
|
+
d: Te(n, t),
|
|
356
384
|
fill: e.color,
|
|
357
385
|
tabindex: q() ? 0 : void 0,
|
|
358
386
|
role: q() ? "button" : void 0,
|
|
359
|
-
"aria-label": q() ? J(
|
|
360
|
-
onKeydown: (e) => Z(e,
|
|
361
|
-
}, null, 42,
|
|
362
|
-
key: `${
|
|
363
|
-
class: ["nb-chart__bar", { "is-dim": Q.value !== null && Q.value !==
|
|
364
|
-
}, { ref_for: !0 }, W(
|
|
387
|
+
"aria-label": q() ? J(n, t) : void 0,
|
|
388
|
+
onKeydown: (e) => Z(e, n, t)
|
|
389
|
+
}, null, 42, fe))), 128)) : (b(!0), m(d, { key: 1 }, S(M.value, (e, t) => (b(), m("rect", v({
|
|
390
|
+
key: `${n}-${t}`,
|
|
391
|
+
class: ["nb-chart__bar", { "is-dim": Q.value !== null && Q.value !== n }]
|
|
392
|
+
}, { ref_for: !0 }, W(n, t), {
|
|
365
393
|
fill: e.color,
|
|
366
394
|
tabindex: q() ? 0 : void 0,
|
|
367
395
|
role: q() ? "button" : void 0,
|
|
368
|
-
"aria-label": q() ? J(
|
|
369
|
-
onKeydown: (e) => Z(e,
|
|
370
|
-
}), null, 16,
|
|
371
|
-
h("g",
|
|
396
|
+
"aria-label": q() ? J(n, t) : void 0,
|
|
397
|
+
onKeydown: (e) => Z(e, n, t)
|
|
398
|
+
}), null, 16, pe))), 128))], 16))), 128)),
|
|
399
|
+
h("g", me, [(b(!0), m(d, null, S(N.value, (e, t) => (b(), m("rect", v({ key: `hover-${t}` }, { ref_for: !0 }, ke(t), {
|
|
372
400
|
fill: "transparent",
|
|
373
401
|
onMouseenter: (e) => Q.value = t,
|
|
374
|
-
onMousemove: (e) =>
|
|
375
|
-
onClick: (e) =>
|
|
376
|
-
}), null, 16,
|
|
377
|
-
], 42,
|
|
402
|
+
onMousemove: (e) => Pe(e, t),
|
|
403
|
+
onClick: (e) => Ne(e, t)
|
|
404
|
+
}), null, 16, he))), 128))])
|
|
405
|
+
], 42, re)), g(r, {
|
|
378
406
|
visible: e.showTooltip && Q.value !== null,
|
|
379
407
|
x: $.value.x,
|
|
380
408
|
y: $.value.y,
|
|
381
409
|
title: Q.value === null ? "" : String(N.value[Q.value]),
|
|
382
|
-
rows:
|
|
410
|
+
rows: Fe.value,
|
|
411
|
+
total: Ie.value
|
|
383
412
|
}, null, 8, [
|
|
384
413
|
"visible",
|
|
385
414
|
"x",
|
|
386
415
|
"y",
|
|
387
416
|
"title",
|
|
388
|
-
"rows"
|
|
417
|
+
"rows",
|
|
418
|
+
"total"
|
|
389
419
|
])], 512)]),
|
|
390
420
|
_: 1
|
|
391
421
|
}, 8, [
|
|
@@ -395,6 +425,6 @@ var ne = [
|
|
|
395
425
|
"show-legend"
|
|
396
426
|
]));
|
|
397
427
|
}
|
|
398
|
-
}), [["__scopeId", "data-v-
|
|
428
|
+
}), [["__scopeId", "data-v-2f03f090"]]);
|
|
399
429
|
//#endregion
|
|
400
430
|
export { D as t };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { t as e } from "./Button-
|
|
1
|
+
import { t as e } from "./Button-CxJMKPpw.js";
|
|
2
2
|
import { usePhoneLayout as t } from "./composables/usePhoneLayout.composable.mjs";
|
|
3
3
|
import { useNbStrings as n } from "./composables/useNbStrings.composable.mjs";
|
|
4
4
|
import { t as r } from "./Toolbar.context-Bli1SqM3.js";
|
|
5
|
-
import { t as i } from "./OverflowMenu-
|
|
5
|
+
import { t as i } from "./OverflowMenu-DXJ8waZo.js";
|
|
6
6
|
import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, defineComponent as f, normalizeClass as p, openBlock as m, provide as h, renderList as g, renderSlot as _, toDisplayString as v, unref as y, withCtx as b } from "vue";
|
|
7
7
|
import { regular as x } from "@nubisco/ui/icons/x";
|
|
8
8
|
//#region src/components/BatchActions.vue?vue&type=script&setup=true&lang.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-5ClGtoaz.cjs`),t=require(`./composables/usePhoneLayout.composable.cjs`),n=require(`./composables/useNbStrings.composable.cjs`),r=require(`./Toolbar.context-D3Uj5o0_.cjs`),i=require(`./OverflowMenu-CWgdicDN.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/x`);var s=[`aria-label`],c={class:`nb-batch-actions__count`,"aria-live":`polite`},l={class:`nb-batch-actions__actions`},u=(0,a.defineComponent)({__name:`BatchActions`,props:{count:{},items:{default:()=>[]},variant:{default:`overlay`},size:{default:void 0},cancelLabel:{default:void 0},label:{default:void 0}},emits:[`cancel`,`select`],setup(u,{emit:d}){let f=u,p=d,m=n.useNbStrings(),{phone:h}=t.usePhoneLayout(),g=(0,a.computed)(()=>f.cancelLabel??m.value.batchActionsCancel);(0,a.provide)(r.t,{size:(0,a.computed)(()=>f.size??(f.variant===`overlay`?`lg`:`sm`)),flush:(0,a.computed)(()=>f.variant===`overlay`)});function _(e){e.disabled||e.loading||(e.onSelect?.(),p(`select`,e.id))}return(t,n)=>((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{class:(0,a.normalizeClass)([`nb-batch-actions`,`nb-batch-actions--${u.variant}`,{"nb-batch-actions--phone":(0,a.unref)(h)}]),role:`region`,"aria-label":u.label??(0,a.unref)(m).batchActionsLabel},[(0,a.createElementVNode)(`span`,c,(0,a.toDisplayString)((0,a.unref)(m).selectionCount(u.count)),1),(0,a.createElementVNode)(`div`,l,[u.items?.length?((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:0},[(0,a.unref)(h)?((0,a.openBlock)(),(0,a.createBlock)(i.t,{key:0,class:`nb-batch-actions__more`,items:u.items,onSelect:n[0]||=e=>p(`select`,e)},null,8,[`items`])):((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:1},(0,a.renderList)(u.items,t=>((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:t.id,variant:`ghost`,icon:t.icon,disabled:t.disabled,"disabled-reason":t.disabledReason,loading:t.loading,onClick:e=>_(t)},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(t.label),1)]),_:2},1032,[`icon`,`disabled`,`disabled-reason`,`loading`,`onClick`]))),128))],64)):(0,a.createCommentVNode)(``,!0),(0,a.renderSlot)(t.$slots,`default`,{phone:(0,a.unref)(h)})]),(0,a.unref)(h)?((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:0,class:`nb-batch-actions__cancel`,variant:`ghost`,icon:(0,a.unref)(o.regular),label:g.value,"tooltip-position":`top`,onClick:n[1]||=e=>p(`cancel`)},null,8,[`icon`,`label`])):((0,a.openBlock)(),(0,a.createBlock)(e.t,{key:1,class:`nb-batch-actions__cancel`,variant:`ghost`,onClick:n[2]||=e=>p(`cancel`)},{default:(0,a.withCtx)(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(g.value),1)]),_:1}))],10,s))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|