@nubisco/ui 5.50.1 → 5.52.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/{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-DHXJJRrw.js → AiProvider-CwQByPUa.js} +5 -5
- package/dist/{AiProvider-C5ezIeiH.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-DMpa5j7m.cjs → Breadcrumbs-C_dG1eHp.cjs} +1 -1
- package/dist/{Breadcrumbs-BDsy1vNm.js → Breadcrumbs-DHHPeG-B.js} +2 -2
- package/dist/{Briefing-0A1frO4v.js → Briefing-BTgNodqs.js} +2 -2
- package/dist/{Briefing-AqSz-ZdZ.cjs → Briefing-C_n8mZ-O.cjs} +1 -1
- 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-DbrEaYlJ.cjs → Confirm-CQMJX0lc.cjs} +1 -1
- package/dist/{Confirm-CZNS6FNr.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-fS84mRE6.js → DatePicker-DKNte5ZT.js} +95 -91
- package/dist/DatePicker-l-HrmC9V.cjs +1 -0
- 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-04v9eS0u.cjs +1 -0
- package/dist/{NumberInput-B-TvTlXI.js → NumberInput-DmKNMQLk.js} +51 -51
- 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-CQJYl76w.js → Pagination-DLDVJush.js} +2 -2
- package/dist/{Pagination-Sm4rX7gH.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-CfH1Q9GB.cjs → Search-BxYPouus.cjs} +1 -1
- package/dist/{Search-BnGuTcHp.js → Search-CI787J6m.js} +2 -2
- package/dist/{Select-C4s5Eek6.cjs → Select-C77tReXr.cjs} +1 -1
- package/dist/{Select-CuiJz35r.js → Select-CAXyp4ou.js} +6 -6
- 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-D3YgGPcY.cjs → Slider-CtN6andn.cjs} +1 -1
- package/dist/{Slider-BP-oEeJs.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/Submenu-DK6C5mjc.cjs +1 -0
- package/dist/Submenu-M1q8mdSB.js +164 -0
- 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-DqaVhKud.js → TextInput-DG8aUZeu.js} +3 -3
- package/dist/{TextInput-BVTKUEey.cjs → TextInput-r8ap24-5.cjs} +2 -2
- 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/DatePicker.vue.d.ts.map +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/Menu.d.ts +7 -0
- 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/NumberInput.vue.d.ts.map +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/Submenu.vue.d.ts +1 -0
- package/dist/components/Submenu.vue.d.ts.map +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/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/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 +3 -0
- package/dist/composables/useNbStrings.composable.d.ts.map +1 -1
- package/dist/composables/useNbStrings.composable.mjs +2 -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/NumberInput.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/TextInput.css +1 -1
- package/dist/styles/palette.css +1 -1
- package/dist/ui.css +10 -10
- 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/DatePicker-Du21bjhe.cjs +0 -1
- package/dist/LineChart-CGXpi9l8.cjs +0 -1
- package/dist/NumberInput-DaZI9hc3.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/Submenu-DRkHiWsD.cjs +0 -1
- package/dist/Submenu-Dnj5MiFy.js +0 -149
- 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/{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 +0,0 @@
|
|
|
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-LbOzdAXj.cjs`),r=require(`./ChartLegend-COJeG-2B.cjs`),i=require(`./scales-BRSHTjbp.cjs`),a=require(`./useChartSize-CUZ7BuGD.cjs`);let o=require(`vue`);var s=6,c=8,l=(e,t=s)=>{let n=[];if(e<=0)return n;let r=Math.max(1,Math.ceil(e/t));for(let t=0;t<e;t+=r)n.push(t);return n[n.length-1]!==e-1&&n.push(e-1),n},u=(e,t,n)=>{for(let r=1;r<e.length;r++){let i=e[r-1],a=e[r],o=i.x+t(i.index)/2;if(a.x-t(a.index)/2-o<n)return!1}return!0},d=(e,t,n)=>{if(n===void 0||t>=n)return e;let r=t/2;return Math.min(Math.max(e,r),n-r)},f=(e,t,n,r,i)=>{let a=e=>e.x===n(e.index)?r:i,o=e,s=o[o.length-1];return o.length>2&&!u(o.slice(-2),t,a(s))&&(o=[...o.slice(0,-2),s]),o.length>2&&!u(o.slice(0,2),t,a(o[0]))&&(o=[o[0],...o.slice(2)]),o},p=({count:e,positionOf:t,widthOf:n,width:r,gap:i=c})=>{let a=l(e);if(!n)return a.map(e=>({index:e,x:t(e)}));let o=e=>({index:e,x:d(t(e),n(e),r)}),p=f(a.map(o),n,t,-1/0,i);if(u(p,n,0))return p;let m=e-1,h=Math.max(1,Math.ceil(e/s))+1;for(let e=h;e<=m;e++){let r=[];for(let t=0;t<m;t+=e)r.push(t);let a=f([...r,m].map(o),n,t,i,i);if(u(a,n,i))return a}return[o(0)]},m=[`width`,`height`,`aria-label`],h={key:0},g=[`x1`,`x2`,`y1`,`y2`],_={class:`nb-chart__axis`},v=[`x`,`y`],y=[`x`,`y`],b=[`x1`,`x2`,`y1`,`y2`],x=[`d`,`fill`],S=[`d`,`stroke`],C=[`cx`,`cy`,`r`,`fill`],w=[`x1`,`x2`,`y1`,`y2`],T=(0,o.defineComponent)({__name:`LineChart`,props:{series:{default:()=>[]},area:{type:Boolean,default:!1},points:{type:Boolean,default:!1},curve:{default:`smooth`},valueFormatter:{},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}},setup(e){let s=t.useNbStrings(),c=e,l={top:12,right:16,bottom:28,left:44},u=(0,o.ref)(null),d=a.t(u,{width:480,height:240}),f=(0,o.computed)(()=>c.series.map((e,t)=>({name:e.name,data:e.data,color:e.color??n.i(t,c.colors)}))),T=(0,o.computed)(()=>(c.series[0]?.data??[]).map(e=>e.x)),E=(0,o.computed)(()=>{let e=c.series.flatMap(e=>e.data.map(e=>e.y));return e.length?i.i(Math.min(0,...e),Math.max(...e),.1):[0,1]}),D=(0,o.computed)(()=>i.r(E.value,[Math.max(l.top,d.value.height-l.bottom),l.top])),O=(0,o.computed)(()=>D.value.ticks(5)),k=(0,o.ref)(7),A=e=>Math.max(D.value(e),k.value),j=(0,o.computed)(()=>Math.max(0,d.value.width-l.left-l.right)),M=e=>{let t=T.value.length;return t<=1?l.left+j.value/2:l.left+e/(t-1)*j.value},N=(0,o.ref)(null),P=(0,o.ref)(null),F=()=>{let e=N.value;if(!e||typeof document>`u`)return;let t=document.createElementNS(`http://www.w3.org/2000/svg`,`text`);if(typeof t.getComputedTextLength!=`function`)return;t.setAttribute(`visibility`,`hidden`),t.setAttribute(`aria-hidden`,`true`),e.appendChild(t);let n=new Map;for(let e of T.value){let r=(0,o.toDisplayString)(e);n.has(r)||(t.textContent=r,n.set(r,t.getComputedTextLength()))}if(typeof t.getBBox==`function`){t.setAttribute(`dominant-baseline`,`middle`),t.setAttribute(`y`,`0`),t.textContent=`0`;let e=-t.getBBox().y;e>0&&(k.value=e)}e.removeChild(t),P.value=n};(0,o.watch)(T,F,{flush:`post`});let I=typeof document>`u`?void 0:document.fonts;(0,o.onMounted)(()=>{F(),I?.addEventListener?.(`loadingdone`,F)}),(0,o.onBeforeUnmount)(()=>{I?.removeEventListener?.(`loadingdone`,F)});let L=(0,o.computed)(()=>{let e=T.value,t=P.value;return p({count:e.length,positionOf:M,widthOf:t?n=>t.get((0,o.toDisplayString)(e[n]))??0:void 0,width:d.value.width}).map(t=>({...t,value:e[t.index]}))}),R=e=>e.length?B(e.map((e,t)=>[M(t),D.value(e.y)]),c.curve):``,z=e=>{if(!e.length)return``;let t=e.map((e,t)=>[M(t),D.value(e.y)]),n=d.value.height-l.bottom;return`${B(t,c.curve)} L${t[t.length-1][0]},${n} L${t[0][0]},${n} Z`},B=(e,t)=>{if(!e.length)return``;if(e.length===1)return`M${e[0][0]},${e[0][1]}`;if(t===`linear`)return e.map((e,t)=>`${t===0?`M`:`L`}${e[0]},${e[1]}`).join(` `);if(t===`step`){let t=`M${e[0][0]},${e[0][1]}`;for(let n=1;n<e.length;n++){let[r,i]=e[n-1],[a,o]=e[n],s=(r+a)/2;t+=` L${s},${i} L${s},${o} L${a},${o}`}return t}let n=.2,r=`M${e[0][0]},${e[0][1]}`;for(let t=0;t<e.length-1;t++){let i=e[t-1]??e[t],a=e[t],o=e[t+1],s=e[t+2]??o,c=a[0]+(o[0]-i[0])*n,l=a[1]+(o[1]-i[1])*n,u=o[0]-(s[0]-a[0])*n,d=o[1]-(s[1]-a[1])*n;r+=` C${c},${l} ${u},${d} ${o[0]},${o[1]}`}return r},V=e=>Math.abs(e)>=1e3?`${(e/1e3).toFixed(1)}k`:Number.isInteger(e)?String(e):e.toFixed(1),H=e=>c.valueFormatter?c.valueFormatter(e):V(e),U=(0,o.ref)(null),W=(0,o.ref)({x:0,y:0}),G=e=>{let t=e.currentTarget.getBoundingClientRect(),n=e.clientX-t.left,r=T.value.length;if(!r)return;let i=(n-l.left)/Math.max(1,j.value);U.value=Math.round(Math.min(1,Math.max(0,i))*(r-1)),W.value={x:e.clientX-t.left+12,y:e.clientY-t.top+12}},K=(0,o.computed)(()=>U.value===null?[]:f.value.map(e=>{let t=e.data[U.value];return{label:e.name,value:t?.label??H(t?.y??0),color:e.color}}));return(t,i)=>((0,o.openBlock)(),(0,o.createBlock)(n.u,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&f.value.length>0},{legend:(0,o.withCtx)(()=>[(0,o.createVNode)(r.t,{items:f.value.map(e=>({label:e.name,color:e.color}))},null,8,[`items`])]),default:(0,o.withCtx)(()=>[(0,o.createElementVNode)(`div`,{ref_key:`root`,ref:u,class:`nb-line-chart`},[((0,o.openBlock)(),(0,o.createElementBlock)(`svg`,{width:(0,o.unref)(d).width,height:(0,o.unref)(d).height,class:`nb-chart__svg`,role:`img`,"aria-label":e.title||(0,o.unref)(s).chartLine,onMouseleave:i[0]||=e=>U.value=null,onMousemove:G},[e.showGrid&&(0,o.unref)(d).width>0?((0,o.openBlock)(),(0,o.createElementBlock)(`g`,h,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(O.value,e=>((0,o.openBlock)(),(0,o.createElementBlock)(`line`,{key:`grid-${e}`,class:`nb-chart__gridline`,x1:l.left,x2:(0,o.unref)(d).width-l.right,y1:D.value(e),y2:D.value(e)},null,8,g))),128))])):(0,o.createCommentVNode)(``,!0),(0,o.createElementVNode)(`g`,_,[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(O.value,e=>((0,o.openBlock)(),(0,o.createElementBlock)(`text`,{key:`yt-${e}`,x:l.left-6,y:A(e),"text-anchor":`end`,"dominant-baseline":`middle`},(0,o.toDisplayString)(H(e)),9,v))),128))]),(0,o.createElementVNode)(`g`,{ref_key:`xAxis`,ref:N,class:`nb-chart__axis`},[((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(L.value,(e,t)=>((0,o.openBlock)(),(0,o.createElementBlock)(`text`,{key:`xt-${t}`,x:e.x,y:(0,o.unref)(d).height-l.bottom+14,"text-anchor":`middle`},(0,o.toDisplayString)(e.value),9,y))),128))],512),(0,o.createElementVNode)(`line`,{class:`nb-chart__axis-line`,x1:l.left,x2:(0,o.unref)(d).width-l.right,y1:(0,o.unref)(d).height-l.bottom,y2:(0,o.unref)(d).height-l.bottom},null,8,b),((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,null,(0,o.renderList)(f.value,(t,n)=>((0,o.openBlock)(),(0,o.createElementBlock)(`g`,{key:`s-${n}`},[e.area?((0,o.openBlock)(),(0,o.createElementBlock)(`path`,{key:0,class:`nb-chart__area`,d:z(t.data),fill:t.color,opacity:`0.18`},null,8,x)):(0,o.createCommentVNode)(``,!0),(0,o.createElementVNode)(`path`,{class:`nb-chart__line`,d:R(t.data),stroke:t.color,fill:`none`,"stroke-width":`2`,"stroke-linejoin":`round`,"stroke-linecap":`round`},null,8,S),e.points?((0,o.openBlock)(!0),(0,o.createElementBlock)(o.Fragment,{key:1},(0,o.renderList)(t.data,(e,r)=>((0,o.openBlock)(),(0,o.createElementBlock)(`circle`,{key:`p-${n}-${r}`,cx:M(r),cy:D.value(e.y),r:U.value===r?4:3,fill:t.color,class:`nb-chart__point`},null,8,C))),128)):(0,o.createCommentVNode)(``,!0)]))),128)),U.value===null?(0,o.createCommentVNode)(``,!0):((0,o.openBlock)(),(0,o.createElementBlock)(`line`,{key:1,class:`nb-chart__hover-line`,x1:M(U.value),x2:M(U.value),y1:l.top,y2:(0,o.unref)(d).height-l.bottom},null,8,w))],40,m)),(0,o.createVNode)(n.l,{visible:e.showTooltip&&U.value!==null,x:W.value.x,y:W.value.y,title:U.value===null?``:String(T.value[U.value]),rows:K.value},null,8,[`visible`,`x`,`y`,`title`,`rows`])],512)]),_:1},8,[`title`,`subtitle`,`height`,`show-legend`]))}}),E=e.t(T,[[`__scopeId`,`data-v-76b34be5`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return E}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Button-BHFtgOXA.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./composables/useStableId.composable.cjs`),r=require(`./composables/useNbStrings.composable.cjs`),i=require(`./Label-CjxnZgNy.cjs`),a=require(`./Message-BJO4MjiQ.cjs`),o=require(`./composables/useFieldMessage.composable.cjs`),s=require(`./InputGroup.context-BHj-IvcT.cjs`);let c=require(`vue`),l=require(`@nubisco/ui/icons/plus`),u=require(`@nubisco/ui/icons/minus`);var d=[`id`,`aria-invalid`,`aria-describedby`,`placeholder`,`min`,`max`,`step`,`disabled`,`required`],f={class:`nb-number-input__steppers`},p={key:0,class:`nb-number-input__inner-header`},m=[`for`],h={key:0,class:`nb-number-input__asterisk`,"aria-hidden":`true`},g={class:`nb-number-input__fluid-row`},_=[`id`,`aria-invalid`,`aria-describedby`,`placeholder`,`min`,`max`,`step`,`disabled`,`required`],v={class:`nb-number-input__steppers`},y=(0,c.defineComponent)({__name:`NumberInput`,props:{modelValue:{default:null},min:{default:void 0},max:{default:void 0},step:{default:1},placeholder:{default:``},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},id:{default:void 0},label:{default:``},error:{default:``},warning:{default:``},helper:{default:``},variant:{default:`default`},size:{default:`md`}},emits:[`update:modelValue`,`change`],setup(t,{expose:y,emit:b}){let x=r.useNbStrings(),S=t,C=b,w=(0,c.ref)(null),T=(0,c.ref)(!1),E=s.n(S,n.useStableId({})),D=E.id,O=E.size,k=E.disabled,{ids:A,messageId:j,invalid:M,live:N,key:P}=o.useFieldMessage(S,D),F=(0,c.computed)(()=>o.joinDescribedBy(j.value,E.describedBy.value)),I=(0,c.computed)(()=>M.value??(E.status.value===`error`?`true`:void 0)),L=(0,c.computed)(()=>!!S.error||E.status.value===`error`),R=(0,c.computed)(()=>!L.value&&(!!S.warning||E.status.value===`warning`)),z=(0,c.computed)(()=>S.min!==void 0&&S.modelValue!==null&&S.modelValue!==void 0&&S.modelValue<=S.min),B=(0,c.computed)(()=>S.max!==void 0&&S.modelValue!==null&&S.modelValue!==void 0&&S.modelValue>=S.max);function V(e){let t=e;return S.min!==void 0&&(t=Math.max(S.min,t)),S.max!==void 0&&(t=Math.min(S.max,t)),t}function H(e){w.value&&(w.value.value=e==null?``:String(e))}(0,c.onMounted)(()=>H(S.modelValue)),(0,c.watch)(()=>S.modelValue,e=>{T.value||H(e)});function U(){let e=V((S.modelValue??0)+S.step);C(`update:modelValue`,e),C(`change`,e),H(e)}function W(){let e=V((S.modelValue??0)-S.step);C(`update:modelValue`,e),C(`change`,e),H(e)}function G(){if(!w.value)return;let e=w.value.value;if(e===``)C(`update:modelValue`,null);else{let t=parseFloat(e);isNaN(t)||C(`update:modelValue`,t)}}function K(){if(T.value=!1,!w.value)return;let e=w.value.value;if(e===``){C(`update:modelValue`,null),C(`change`,null);return}let t=parseFloat(e);if(!isNaN(t)){let e=V(t);C(`update:modelValue`,e),C(`change`,e),H(e)}}let q=(0,c.computed)(()=>[`nb-number-input`,`nb-number-input--${S.variant}`,`nb-number-input--${O.value}`,{"nb-number-input--error":L.value,"nb-number-input--warning":R.value,"nb-number-input--disabled":k.value}]),J=(0,c.computed)(()=>({"nb-number-input__field-wrapper--focused":T.value,"nb-number-input__field-wrapper--error":L.value,"nb-number-input__field-wrapper--warning":R.value,"nb-number-input__field-wrapper--disabled":k.value}));return y({focus:()=>w.value?.focus()}),(n,r)=>((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{class:(0,c.normalizeClass)(q.value)},[t.variant===`default`?((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:0},[t.label?((0,c.openBlock)(),(0,c.createBlock)(i.t,{key:0,for:(0,c.unref)(D),required:t.required,disabled:(0,c.unref)(k)},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.label),1)]),_:1},8,[`for`,`required`,`disabled`])):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,{class:(0,c.normalizeClass)([`nb-number-input__field-wrapper`,J.value])},[(0,c.createElementVNode)(`input`,{id:(0,c.unref)(D),ref_key:`inputRef`,ref:w,"aria-invalid":I.value,"aria-describedby":F.value,type:`number`,class:`nb-number-input__field`,placeholder:t.placeholder,min:t.min,max:t.max,step:t.step,disabled:(0,c.unref)(k),required:t.required,onInput:G,onBlur:K,onKeydown:r[0]||=(0,c.withKeys)((0,c.withModifiers)(()=>w.value?.blur(),[`prevent`]),[`enter`]),onFocus:r[1]||=e=>T.value=!0},null,40,d),t.error?((0,c.openBlock)(),(0,c.createBlock)(a.t,{key:0,variant:`error`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-number-input__status`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.error),1)]),_:1})):t.warning?((0,c.openBlock)(),(0,c.createBlock)(a.t,{key:1,variant:`warning`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-number-input__status`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.warning),1)]),_:1})):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,f,[r[8]||=(0,c.createElementVNode)(`span`,{class:`nb-number-input__divider`,"aria-hidden":`true`},null,-1),(0,c.createVNode)(e.t,{variant:`ghost`,icon:(0,c.unref)(u.regular),size:(0,c.unref)(O),label:(0,c.unref)(x).numberInputDecrease,"tooltip-position":`top`,class:(0,c.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":z.value}]),tabindex:`-1`,disabled:(0,c.unref)(k),"aria-disabled":z.value||void 0,onMousedown:r[2]||=(0,c.withModifiers)(()=>{},[`prevent`]),onClick:W},null,8,[`icon`,`size`,`label`,`class`,`disabled`,`aria-disabled`]),r[9]||=(0,c.createElementVNode)(`span`,{class:`nb-number-input__divider`,"aria-hidden":`true`},null,-1),(0,c.createVNode)(e.t,{variant:`ghost`,icon:(0,c.unref)(l.regular),size:(0,c.unref)(O),label:(0,c.unref)(x).numberInputIncrease,"tooltip-position":`top`,class:(0,c.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":B.value}]),tabindex:`-1`,disabled:(0,c.unref)(k),"aria-disabled":B.value||void 0,onMousedown:r[3]||=(0,c.withModifiers)(()=>{},[`prevent`]),onClick:U},null,8,[`icon`,`size`,`label`,`class`,`disabled`,`aria-disabled`])])],2),t.error?((0,c.openBlock)(),(0,c.createBlock)(a.t,{id:(0,c.unref)(A).error,key:(0,c.unref)(P),variant:`error`,live:(0,c.unref)(N),class:`nb-number-input__message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.error),1)]),_:1},8,[`id`,`live`])):t.warning?((0,c.openBlock)(),(0,c.createBlock)(a.t,{id:(0,c.unref)(A).warning,key:(0,c.unref)(P),variant:`warning`,live:(0,c.unref)(N),class:`nb-number-input__message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.warning),1)]),_:1},8,[`id`,`live`])):t.helper?((0,c.openBlock)(),(0,c.createBlock)(a.t,{id:(0,c.unref)(A).helper,key:(0,c.unref)(P),variant:`helper`,live:(0,c.unref)(N),class:`nb-number-input__message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.helper),1)]),_:1},8,[`id`,`live`])):(0,c.createCommentVNode)(``,!0)],64)):t.variant===`fluid`?((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:1},[(0,c.createElementVNode)(`div`,{class:(0,c.normalizeClass)([`nb-number-input__field-wrapper`,J.value])},[t.label?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,p,[(0,c.createElementVNode)(`label`,{for:(0,c.unref)(D),class:`nb-number-input__inner-label`},[(0,c.createTextVNode)((0,c.toDisplayString)(t.label)+` `,1),t.required?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,h,`*`)):(0,c.createCommentVNode)(``,!0)],8,m),t.helper&&!t.error&&!t.warning?((0,c.openBlock)(),(0,c.createBlock)(a.t,{key:0,id:(0,c.unref)(A).helper,variant:`helper`,live:`off`,"icon-only":!0,class:`nb-number-input__inner-message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.helper),1)]),_:1},8,[`id`])):(0,c.createCommentVNode)(``,!0)])):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,g,[(0,c.createElementVNode)(`input`,{id:(0,c.unref)(D),ref_key:`inputRef`,ref:w,"aria-invalid":I.value,"aria-describedby":F.value,type:`number`,class:`nb-number-input__field`,placeholder:t.placeholder,min:t.min,max:t.max,step:t.step,disabled:(0,c.unref)(k),required:t.required,onInput:G,onBlur:K,onKeydown:r[4]||=(0,c.withKeys)((0,c.withModifiers)(()=>w.value?.blur(),[`prevent`]),[`enter`]),onFocus:r[5]||=e=>T.value=!0},null,40,_),t.error?((0,c.openBlock)(),(0,c.createBlock)(a.t,{key:0,variant:`error`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-number-input__status`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.error),1)]),_:1})):t.warning?((0,c.openBlock)(),(0,c.createBlock)(a.t,{key:1,variant:`warning`,"icon-only":!0,live:`off`,"aria-hidden":`true`,class:`nb-number-input__status`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.warning),1)]),_:1})):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,v,[r[10]||=(0,c.createElementVNode)(`span`,{class:`nb-number-input__divider`,"aria-hidden":`true`},null,-1),(0,c.createVNode)(e.t,{variant:`ghost`,icon:(0,c.unref)(u.regular),size:(0,c.unref)(O),label:(0,c.unref)(x).numberInputDecrease,"tooltip-position":`top`,class:(0,c.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":z.value}]),tabindex:`-1`,disabled:(0,c.unref)(k),"aria-disabled":z.value||void 0,onMousedown:r[6]||=(0,c.withModifiers)(()=>{},[`prevent`]),onClick:W},null,8,[`icon`,`size`,`label`,`class`,`disabled`,`aria-disabled`]),r[11]||=(0,c.createElementVNode)(`span`,{class:`nb-number-input__divider`,"aria-hidden":`true`},null,-1),(0,c.createVNode)(e.t,{variant:`ghost`,icon:(0,c.unref)(l.regular),size:(0,c.unref)(O),label:(0,c.unref)(x).numberInputIncrease,"tooltip-position":`top`,class:(0,c.normalizeClass)([`nb-number-input__stepper`,{"nb-number-input__stepper--at-limit":B.value}]),tabindex:`-1`,disabled:(0,c.unref)(k),"aria-disabled":B.value||void 0,onMousedown:r[7]||=(0,c.withModifiers)(()=>{},[`prevent`]),onClick:U},null,8,[`icon`,`size`,`label`,`class`,`disabled`,`aria-disabled`])])])],2),t.error?((0,c.openBlock)(),(0,c.createBlock)(a.t,{id:(0,c.unref)(A).error,key:(0,c.unref)(P),variant:`error`,live:(0,c.unref)(N),class:`nb-number-input__fluid-message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.error),1)]),_:1},8,[`id`,`live`])):t.warning?((0,c.openBlock)(),(0,c.createBlock)(a.t,{id:(0,c.unref)(A).warning,key:(0,c.unref)(P),variant:`warning`,live:(0,c.unref)(N),class:`nb-number-input__fluid-message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(t.warning),1)]),_:1},8,[`id`,`live`])):(0,c.createCommentVNode)(``,!0)],64)):(0,c.createCommentVNode)(``,!0)],2))}}),b=t.t(y,[[`__scopeId`,`data-v-69480d87`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return b}});
|
package/dist/Panel-NC6_ZogV.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useSurfaceLayer.composable.cjs`),n=require(`./PrimaryActionScope-Dp2gvqwk.cjs`);let r=require(`vue`);var i={key:0,class:`nb-panel__header`},a={class:`nb-panel__heading`},o={key:0,class:`nb-panel__title-row`},s={key:1,class:`nb-panel__meta`},c={key:1,class:`nb-panel__description`},l={key:0,class:`nb-panel__actions`},u=(0,r.defineComponent)({__name:`Panel`,props:{layer:{default:void 0},title:{default:void 0},description:{default:void 0},headingLevel:{default:`h2`},flat:{type:Boolean,default:!1}},setup(e){let u=e,d=(0,r.useSlots)(),f=(0,r.computed)(()=>!!u.title||!!u.description||!!d.meta||!!d.actions),{level:p,layerProps:m}=t.useSurfaceLayer({level:()=>u.layer,provideContext:!1});return(0,r.provide)(t.NB_LAYER_INJECTION_KEY,(0,r.computed)(()=>u.flat?p.value:t.clampLayer(p.value+1))),(t,u)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,(0,r.mergeProps)({class:[`nb-panel`,{"nb-panel--flat":e.flat}]},e.flat?void 0:(0,r.unref)(m)),[f.value?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,i,[(0,r.createElementVNode)(`div`,a,[e.title||t.$slots.meta?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,o,[e.title?((0,r.openBlock)(),(0,r.createBlock)((0,r.resolveDynamicComponent)(e.headingLevel),{key:0,class:`nb-panel__title`},{default:(0,r.withCtx)(()=>[(0,r.createTextVNode)((0,r.toDisplayString)(e.title),1)]),_:1})):(0,r.createCommentVNode)(``,!0),t.$slots.meta?((0,r.openBlock)(),(0,r.createElementBlock)(`span`,s,[(0,r.renderSlot)(t.$slots,`meta`,{},void 0,!0)])):(0,r.createCommentVNode)(``,!0)])):(0,r.createCommentVNode)(``,!0),e.description?((0,r.openBlock)(),(0,r.createElementBlock)(`p`,c,(0,r.toDisplayString)(e.description),1)):(0,r.createCommentVNode)(``,!0)]),t.$slots.actions?((0,r.openBlock)(),(0,r.createElementBlock)(`div`,l,[(0,r.createVNode)(n.t,{owner:`NbPanel`},{default:(0,r.withCtx)(()=>[(0,r.renderSlot)(t.$slots,`actions`,{},void 0,!0)]),_:3})])):(0,r.createCommentVNode)(``,!0)])):(0,r.createCommentVNode)(``,!0),(0,r.renderSlot)(t.$slots,`default`,{},void 0,!0)],16))}}),d=e.t(u,[[`__scopeId`,`data-v-fe110d1d`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
|
package/dist/Panel-zyzu638n.js
DELETED
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
|
-
import { NB_LAYER_INJECTION_KEY as t, clampLayer as n, useSurfaceLayer as r } from "./composables/useSurfaceLayer.composable.mjs";
|
|
3
|
-
import { t as i } from "./PrimaryActionScope-sogYOZXZ.js";
|
|
4
|
-
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, mergeProps as p, openBlock as m, provide as h, renderSlot as g, resolveDynamicComponent as _, toDisplayString as v, unref as y, useSlots as b, withCtx as x } from "vue";
|
|
5
|
-
//#region src/components/Panel.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
-
var S = {
|
|
7
|
-
key: 0,
|
|
8
|
-
class: "nb-panel__header"
|
|
9
|
-
}, C = { class: "nb-panel__heading" }, w = {
|
|
10
|
-
key: 0,
|
|
11
|
-
class: "nb-panel__title-row"
|
|
12
|
-
}, T = {
|
|
13
|
-
key: 1,
|
|
14
|
-
class: "nb-panel__meta"
|
|
15
|
-
}, E = {
|
|
16
|
-
key: 1,
|
|
17
|
-
class: "nb-panel__description"
|
|
18
|
-
}, D = {
|
|
19
|
-
key: 0,
|
|
20
|
-
class: "nb-panel__actions"
|
|
21
|
-
}, O = /* @__PURE__ */ e(/* @__PURE__ */ f({
|
|
22
|
-
__name: "Panel",
|
|
23
|
-
props: {
|
|
24
|
-
layer: { default: void 0 },
|
|
25
|
-
title: { default: void 0 },
|
|
26
|
-
description: { default: void 0 },
|
|
27
|
-
headingLevel: { default: "h2" },
|
|
28
|
-
flat: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
|
-
setup(e) {
|
|
34
|
-
let f = e, O = b(), k = a(() => !!f.title || !!f.description || !!O.meta || !!O.actions), { level: A, layerProps: j } = r({
|
|
35
|
-
level: () => f.layer,
|
|
36
|
-
provideContext: !1
|
|
37
|
-
});
|
|
38
|
-
return h(t, a(() => f.flat ? A.value : n(A.value + 1))), (t, n) => (m(), c("div", p({ class: ["nb-panel", { "nb-panel--flat": e.flat }] }, e.flat ? void 0 : y(j)), [k.value ? (m(), c("div", S, [l("div", C, [e.title || t.$slots.meta ? (m(), c("div", w, [e.title ? (m(), o(_(e.headingLevel), {
|
|
39
|
-
key: 0,
|
|
40
|
-
class: "nb-panel__title"
|
|
41
|
-
}, {
|
|
42
|
-
default: x(() => [u(v(e.title), 1)]),
|
|
43
|
-
_: 1
|
|
44
|
-
})) : s("", !0), t.$slots.meta ? (m(), c("span", T, [g(t.$slots, "meta", {}, void 0, !0)])) : s("", !0)])) : s("", !0), e.description ? (m(), c("p", E, v(e.description), 1)) : s("", !0)]), t.$slots.actions ? (m(), c("div", D, [d(i, { owner: "NbPanel" }, {
|
|
45
|
-
default: x(() => [g(t.$slots, "actions", {}, void 0, !0)]),
|
|
46
|
-
_: 3
|
|
47
|
-
})])) : s("", !0)])) : s("", !0), g(t.$slots, "default", {}, void 0, !0)], 16));
|
|
48
|
-
}
|
|
49
|
-
}), [["__scopeId", "data-v-fe110d1d"]]);
|
|
50
|
-
//#endregion
|
|
51
|
-
export { O as t };
|
|
@@ -1 +0,0 @@
|
|
|
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-LbOzdAXj.cjs`),r=require(`./ChartLegend-COJeG-2B.cjs`),i=require(`./useChartSize-CUZ7BuGD.cjs`);let a=require(`vue`);var o=[`width`,`height`,`role`,`aria-label`],s=[`transform`],c=[`d`,`fill`,`tabindex`,`role`,`aria-label`,`onMouseenter`,`onClick`,`onKeydown`],l=[`x`,`y`],u=(0,a.defineComponent)({__name:`PieChart`,props:{data:{default:()=>[]},innerRadius:{default:0},labels:{default:`percent`},title:{default:void 0},subtitle:{default:void 0},height:{default:280},showLegend:{type:Boolean,default:!0},showTooltip:{type:Boolean,default:!0},colors:{default:()=>n.n}},emits:[`select`],setup(e,{emit:u}){let d=t.useNbStrings(),f=e,p=u,m=(0,a.getCurrentInstance)(),h=()=>!!m?.vnode.props?.onSelect,g=e=>{if(!h())return;let t=f.data[e];t&&p(`select`,{kind:`categorical`,label:t.label,value:t.value,index:e,datum:t})},_=(e,t)=>{h()&&(e.key!==`Enter`&&e.key!==` `||(e.preventDefault(),g(t)))},v=(0,a.ref)(null),y=i.t(v,{width:280,height:240}),b=(0,a.computed)(()=>f.data.map((e,t)=>({label:e.label,value:e.value,color:e.color??n.i(t,f.colors)}))),x=(0,a.computed)(()=>b.value.reduce((e,t)=>e+Math.max(0,t.value),0)),S=(0,a.computed)(()=>y.value.width/2),C=(0,a.computed)(()=>y.value.height/2),w=(0,a.computed)(()=>Math.max(0,Math.min(y.value.width,y.value.height)/2-8)),T=(0,a.computed)(()=>Math.max(0,Math.min(.95,f.innerRadius))*w.value),E=(0,a.computed)(()=>{if(!x.value)return[];let e=-Math.PI/2,t=[];for(let n=0;n<b.value.length;n++){let r=b.value[n],i=Math.max(0,r.value)/x.value,a=e,o=e+i*Math.PI*2;e=o;let s=D(a,o,T.value,w.value),c=(a+o)/2,l=T.value>0?(T.value+w.value)/2:w.value*.65,u=Math.cos(c)*l,d=Math.sin(c)*l,p=f.labels===`percent`?`${Math.round(i*100)}%`:f.labels===`value`?String(r.value):``;t.push({path:s,color:r.color,labelX:u,labelY:d,labelText:p,labelColor:`var(--nb-c-white)`,startAngle:a,endAngle:o,value:r.value,label:r.label})}return t}),D=(e,t,n,r)=>{if(Math.abs(t-e)>=Math.PI*2-1e-6){let e=`M ${r} 0 A ${r} ${r} 0 1 1 ${-r} 0 A ${r} ${r} 0 1 1 ${r} 0 Z`;return n<=0?e:`${e} ${`M ${n} 0 A ${n} ${n} 0 1 0 ${-n} 0 A ${n} ${n} 0 1 0 ${n} 0 Z`}`}let i=Math.cos(e)*r,a=Math.sin(e)*r,o=Math.cos(t)*r,s=Math.sin(t)*r,c=t-e>Math.PI?1:0;if(n<=0)return`M 0 0 L ${i} ${a} A ${r} ${r} 0 ${c} 1 ${o} ${s} Z`;let l=Math.cos(t)*n,u=Math.sin(t)*n,d=Math.cos(e)*n,f=Math.sin(e)*n;return[`M ${i} ${a}`,`A ${r} ${r} 0 ${c} 1 ${o} ${s}`,`L ${l} ${u}`,`A ${n} ${n} 0 ${c} 0 ${d} ${f}`,`Z`].join(` `)},O=(0,a.ref)(null),k=(0,a.ref)({x:0,y:0}),A=e=>{let t=e.currentTarget.ownerSVGElement;if(!t)return;let n=t.getBoundingClientRect();k.value={x:e.clientX-n.left+12,y:e.clientY-n.top+12}},j=(0,a.computed)(()=>{if(O.value===null)return[];let e=E.value[O.value];if(!e)return[];let t=x.value?Math.round(e.value/x.value*100):0;return[{label:e.label,value:`${e.value} (${t}%)`,color:e.color}]});return(t,i)=>((0,a.openBlock)(),(0,a.createBlock)(n.u,{title:e.title,subtitle:e.subtitle,height:e.height,"show-legend":e.showLegend&&b.value.length>0},{legend:(0,a.withCtx)(()=>[(0,a.createVNode)(r.t,{items:b.value.map(e=>({label:e.label,color:e.color}))},null,8,[`items`])]),default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`div`,{ref_key:`root`,ref:v,class:`nb-pie-chart`},[((0,a.openBlock)(),(0,a.createElementBlock)(`svg`,{width:(0,a.unref)(y).width,height:(0,a.unref)(y).height,class:(0,a.normalizeClass)([`nb-chart__svg`,{"nb-chart__svg--selectable":h()}]),role:h()?`group`:`img`,"aria-label":e.title||(0,a.unref)(d).chartPie,onMouseleave:i[1]||=e=>O.value=null},[(0,a.createElementVNode)(`g`,{transform:`translate(${S.value}, ${C.value})`},[((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,null,(0,a.renderList)(E.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`path`,{key:`slice-${t}`,class:(0,a.normalizeClass)([`nb-chart__slice`,{"is-dim":O.value!==null&&O.value!==t}]),d:e.path,fill:e.color,tabindex:h()?0:void 0,role:h()?`button`:void 0,"aria-label":h()?`${e.label}: ${e.value}`:void 0,onMouseenter:e=>O.value=t,onMousemove:i[0]||=e=>A(e),onClick:e=>g(t),onKeydown:e=>_(e,t)},null,42,c))),128)),e.labels===`none`?(0,a.createCommentVNode)(``,!0):((0,a.openBlock)(!0),(0,a.createElementBlock)(a.Fragment,{key:0},(0,a.renderList)(E.value,(e,t)=>((0,a.openBlock)(),(0,a.createElementBlock)(`text`,{key:`lab-${t}`,class:`nb-chart__slice-label`,x:e.labelX,y:e.labelY,"text-anchor":`middle`,"dominant-baseline":`middle`,style:(0,a.normalizeStyle)({fill:e.labelColor})},(0,a.toDisplayString)(e.labelText),13,l))),128))],8,s)],42,o)),(0,a.createVNode)(n.l,{visible:e.showTooltip&&O.value!==null,x:k.value.x,y:k.value.y,rows:j.value},null,8,[`visible`,`x`,`y`,`rows`])],512)]),_:1},8,[`title`,`subtitle`,`height`,`show-legend`]))}}),d=e.t(u,[[`__scopeId`,`data-v-fd8b338b`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
|
|
@@ -1,182 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
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-6bEW4KUN.js";
|
|
4
|
-
import { t as o } from "./ChartLegend-LDNukufA.js";
|
|
5
|
-
import { t as s } from "./useChartSize-05CLdiR0.js";
|
|
6
|
-
import { Fragment as c, computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, getCurrentInstance as g, normalizeClass as _, normalizeStyle as v, openBlock as y, ref as b, renderList as x, toDisplayString as S, unref as C, withCtx as w } from "vue";
|
|
7
|
-
//#region src/components/Charts/PieChart.vue?vue&type=script&setup=true&lang.ts
|
|
8
|
-
var T = [
|
|
9
|
-
"width",
|
|
10
|
-
"height",
|
|
11
|
-
"role",
|
|
12
|
-
"aria-label"
|
|
13
|
-
], E = ["transform"], D = [
|
|
14
|
-
"d",
|
|
15
|
-
"fill",
|
|
16
|
-
"tabindex",
|
|
17
|
-
"role",
|
|
18
|
-
"aria-label",
|
|
19
|
-
"onMouseenter",
|
|
20
|
-
"onClick",
|
|
21
|
-
"onKeydown"
|
|
22
|
-
], O = ["x", "y"], k = /* @__PURE__ */ e(/* @__PURE__ */ h({
|
|
23
|
-
__name: "PieChart",
|
|
24
|
-
props: {
|
|
25
|
-
data: { default: () => [] },
|
|
26
|
-
innerRadius: { default: 0 },
|
|
27
|
-
labels: { default: "percent" },
|
|
28
|
-
title: { default: void 0 },
|
|
29
|
-
subtitle: { default: void 0 },
|
|
30
|
-
height: { default: 280 },
|
|
31
|
-
showLegend: {
|
|
32
|
-
type: Boolean,
|
|
33
|
-
default: !0
|
|
34
|
-
},
|
|
35
|
-
showTooltip: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: !0
|
|
38
|
-
},
|
|
39
|
-
colors: { default: () => i }
|
|
40
|
-
},
|
|
41
|
-
emits: ["select"],
|
|
42
|
-
setup(e, { emit: i }) {
|
|
43
|
-
let h = t(), k = e, A = i, j = g(), M = () => !!j?.vnode.props?.onSelect, N = (e) => {
|
|
44
|
-
if (!M()) return;
|
|
45
|
-
let t = k.data[e];
|
|
46
|
-
t && A("select", {
|
|
47
|
-
kind: "categorical",
|
|
48
|
-
label: t.label,
|
|
49
|
-
value: t.value,
|
|
50
|
-
index: e,
|
|
51
|
-
datum: t
|
|
52
|
-
});
|
|
53
|
-
}, P = (e, t) => {
|
|
54
|
-
M() && (e.key !== "Enter" && e.key !== " " || (e.preventDefault(), N(t)));
|
|
55
|
-
}, F = b(null), I = s(F, {
|
|
56
|
-
width: 280,
|
|
57
|
-
height: 240
|
|
58
|
-
}), L = l(() => k.data.map((e, t) => ({
|
|
59
|
-
label: e.label,
|
|
60
|
-
value: e.value,
|
|
61
|
-
color: e.color ?? n(t, k.colors)
|
|
62
|
-
}))), R = l(() => L.value.reduce((e, t) => e + Math.max(0, t.value), 0)), z = l(() => I.value.width / 2), B = l(() => I.value.height / 2), V = l(() => Math.max(0, Math.min(I.value.width, I.value.height) / 2 - 8)), H = l(() => Math.max(0, Math.min(.95, k.innerRadius)) * V.value), U = l(() => {
|
|
63
|
-
if (!R.value) return [];
|
|
64
|
-
let e = -Math.PI / 2, t = [];
|
|
65
|
-
for (let n = 0; n < L.value.length; n++) {
|
|
66
|
-
let r = L.value[n], i = Math.max(0, r.value) / R.value, a = e, o = e + i * Math.PI * 2;
|
|
67
|
-
e = o;
|
|
68
|
-
let s = W(a, o, H.value, V.value), c = (a + o) / 2, l = H.value > 0 ? (H.value + V.value) / 2 : V.value * .65, u = Math.cos(c) * l, d = Math.sin(c) * l, f = k.labels === "percent" ? `${Math.round(i * 100)}%` : k.labels === "value" ? String(r.value) : "";
|
|
69
|
-
t.push({
|
|
70
|
-
path: s,
|
|
71
|
-
color: r.color,
|
|
72
|
-
labelX: u,
|
|
73
|
-
labelY: d,
|
|
74
|
-
labelText: f,
|
|
75
|
-
labelColor: "var(--nb-c-white)",
|
|
76
|
-
startAngle: a,
|
|
77
|
-
endAngle: o,
|
|
78
|
-
value: r.value,
|
|
79
|
-
label: r.label
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
return t;
|
|
83
|
-
}), W = (e, t, n, r) => {
|
|
84
|
-
if (Math.abs(t - e) >= Math.PI * 2 - 1e-6) {
|
|
85
|
-
let e = `M ${r} 0 A ${r} ${r} 0 1 1 ${-r} 0 A ${r} ${r} 0 1 1 ${r} 0 Z`;
|
|
86
|
-
return n <= 0 ? e : `${e} ${`M ${n} 0 A ${n} ${n} 0 1 0 ${-n} 0 A ${n} ${n} 0 1 0 ${n} 0 Z`}`;
|
|
87
|
-
}
|
|
88
|
-
let i = Math.cos(e) * r, a = Math.sin(e) * r, o = Math.cos(t) * r, s = Math.sin(t) * r, c = t - e > Math.PI ? 1 : 0;
|
|
89
|
-
if (n <= 0) return `M 0 0 L ${i} ${a} A ${r} ${r} 0 ${c} 1 ${o} ${s} Z`;
|
|
90
|
-
let l = Math.cos(t) * n, u = Math.sin(t) * n, d = Math.cos(e) * n, f = Math.sin(e) * n;
|
|
91
|
-
return [
|
|
92
|
-
`M ${i} ${a}`,
|
|
93
|
-
`A ${r} ${r} 0 ${c} 1 ${o} ${s}`,
|
|
94
|
-
`L ${l} ${u}`,
|
|
95
|
-
`A ${n} ${n} 0 ${c} 0 ${d} ${f}`,
|
|
96
|
-
"Z"
|
|
97
|
-
].join(" ");
|
|
98
|
-
}, G = b(null), K = b({
|
|
99
|
-
x: 0,
|
|
100
|
-
y: 0
|
|
101
|
-
}), q = (e) => {
|
|
102
|
-
let t = e.currentTarget.ownerSVGElement;
|
|
103
|
-
if (!t) return;
|
|
104
|
-
let n = t.getBoundingClientRect();
|
|
105
|
-
K.value = {
|
|
106
|
-
x: e.clientX - n.left + 12,
|
|
107
|
-
y: e.clientY - n.top + 12
|
|
108
|
-
};
|
|
109
|
-
}, J = l(() => {
|
|
110
|
-
if (G.value === null) return [];
|
|
111
|
-
let e = U.value[G.value];
|
|
112
|
-
if (!e) return [];
|
|
113
|
-
let t = R.value ? Math.round(e.value / R.value * 100) : 0;
|
|
114
|
-
return [{
|
|
115
|
-
label: e.label,
|
|
116
|
-
value: `${e.value} (${t}%)`,
|
|
117
|
-
color: e.color
|
|
118
|
-
}];
|
|
119
|
-
});
|
|
120
|
-
return (t, n) => (y(), u(a, {
|
|
121
|
-
title: e.title,
|
|
122
|
-
subtitle: e.subtitle,
|
|
123
|
-
height: e.height,
|
|
124
|
-
"show-legend": e.showLegend && L.value.length > 0
|
|
125
|
-
}, {
|
|
126
|
-
legend: w(() => [m(o, { items: L.value.map((e) => ({
|
|
127
|
-
label: e.label,
|
|
128
|
-
color: e.color
|
|
129
|
-
})) }, null, 8, ["items"])]),
|
|
130
|
-
default: w(() => [p("div", {
|
|
131
|
-
ref_key: "root",
|
|
132
|
-
ref: F,
|
|
133
|
-
class: "nb-pie-chart"
|
|
134
|
-
}, [(y(), f("svg", {
|
|
135
|
-
width: C(I).width,
|
|
136
|
-
height: C(I).height,
|
|
137
|
-
class: _(["nb-chart__svg", { "nb-chart__svg--selectable": M() }]),
|
|
138
|
-
role: M() ? "group" : "img",
|
|
139
|
-
"aria-label": e.title || C(h).chartPie,
|
|
140
|
-
onMouseleave: n[1] ||= (e) => G.value = null
|
|
141
|
-
}, [p("g", { transform: `translate(${z.value}, ${B.value})` }, [(y(!0), f(c, null, x(U.value, (e, t) => (y(), f("path", {
|
|
142
|
-
key: `slice-${t}`,
|
|
143
|
-
class: _(["nb-chart__slice", { "is-dim": G.value !== null && G.value !== t }]),
|
|
144
|
-
d: e.path,
|
|
145
|
-
fill: e.color,
|
|
146
|
-
tabindex: M() ? 0 : void 0,
|
|
147
|
-
role: M() ? "button" : void 0,
|
|
148
|
-
"aria-label": M() ? `${e.label}: ${e.value}` : void 0,
|
|
149
|
-
onMouseenter: (e) => G.value = t,
|
|
150
|
-
onMousemove: n[0] ||= (e) => q(e),
|
|
151
|
-
onClick: (e) => N(t),
|
|
152
|
-
onKeydown: (e) => P(e, t)
|
|
153
|
-
}, null, 42, D))), 128)), e.labels === "none" ? d("", !0) : (y(!0), f(c, { key: 0 }, x(U.value, (e, t) => (y(), f("text", {
|
|
154
|
-
key: `lab-${t}`,
|
|
155
|
-
class: "nb-chart__slice-label",
|
|
156
|
-
x: e.labelX,
|
|
157
|
-
y: e.labelY,
|
|
158
|
-
"text-anchor": "middle",
|
|
159
|
-
"dominant-baseline": "middle",
|
|
160
|
-
style: v({ fill: e.labelColor })
|
|
161
|
-
}, S(e.labelText), 13, O))), 128))], 8, E)], 42, T)), m(r, {
|
|
162
|
-
visible: e.showTooltip && G.value !== null,
|
|
163
|
-
x: K.value.x,
|
|
164
|
-
y: K.value.y,
|
|
165
|
-
rows: J.value
|
|
166
|
-
}, null, 8, [
|
|
167
|
-
"visible",
|
|
168
|
-
"x",
|
|
169
|
-
"y",
|
|
170
|
-
"rows"
|
|
171
|
-
])], 512)]),
|
|
172
|
-
_: 1
|
|
173
|
-
}, 8, [
|
|
174
|
-
"title",
|
|
175
|
-
"subtitle",
|
|
176
|
-
"height",
|
|
177
|
-
"show-legend"
|
|
178
|
-
]));
|
|
179
|
-
}
|
|
180
|
-
}), [["__scopeId", "data-v-fd8b338b"]]);
|
|
181
|
-
//#endregion
|
|
182
|
-
export { k as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useNbStrings.composable.cjs`);let n=require(`vue`);var r=[`aria-label`],i=[`stop-color`],a=[`stop-color`],o=[`d`,`fill`],s=[`d`,`stroke`,`stroke-width`],c=100,l=30,u=(0,n.defineComponent)({__name:`Sparkline`,props:{data:{},color:{default:`var(--nb-c-primary)`},height:{default:40},width:{default:`100%`},strokeWidth:{default:1.5},fill:{type:Boolean,default:!0},smooth:{type:Boolean,default:!0}},setup(e){let u=t.useNbStrings(),d=e,f=`0 0 ${c} ${l}`,p=`nb-sparkline-grad-${(0,n.useId)()}`,m=(0,n.computed)(()=>({width:typeof d.width==`number`?`${d.width}px`:d.width,height:typeof d.height==`number`?`${d.height}px`:d.height})),h=(0,n.computed)(()=>{let e=d.data;if(!e||e.length<2)return{line:``,area:``};let t=Math.max(...e),n=Math.min(...e),r=t-n||1,i=c/(e.length-1),a=l*.08,o=l-a*2,s=e.map((e,t)=>({x:t*i,y:l-a-(e-n)/r*o})),u=`M ${s[0].x.toFixed(2)} ${s[0].y.toFixed(2)}`;if(d.smooth)for(let e=1;e<s.length;e++){let t=s[e-1],n=s[e],r=t.x+i*.45,a=t.y,o=n.x-i*.45,c=n.y;u+=` C ${r.toFixed(2)} ${a.toFixed(2)}, ${o.toFixed(2)} ${c.toFixed(2)}, ${n.x.toFixed(2)} ${n.y.toFixed(2)}`}else for(let e=1;e<s.length;e++)u+=` L ${s[e].x.toFixed(2)} ${s[e].y.toFixed(2)}`;let f=s[s.length-1],p=`${u} L ${f.x.toFixed(2)} ${l} L ${s[0].x.toFixed(2)} ${l} Z`;return{line:u,area:p}});return(t,c)=>((0,n.openBlock)(),(0,n.createElementBlock)(`svg`,{class:`nb-sparkline`,style:(0,n.normalizeStyle)(m.value),viewBox:f,preserveAspectRatio:`none`,role:`img`,"aria-label":(0,n.unref)(u).chartSparkline,xmlns:`http://www.w3.org/2000/svg`},[(0,n.createElementVNode)(`defs`,null,[(0,n.createElementVNode)(`linearGradient`,{id:p,x1:`0`,y1:`0`,x2:`0`,y2:`1`},[(0,n.createElementVNode)(`stop`,{offset:`0%`,"stop-color":e.color,"stop-opacity":`0.3`},null,8,i),(0,n.createElementVNode)(`stop`,{offset:`100%`,"stop-color":e.color,"stop-opacity":`0`},null,8,a)])]),e.fill&&h.value.area?((0,n.openBlock)(),(0,n.createElementBlock)(`path`,{key:0,d:h.value.area,fill:`url(#${p})`,stroke:`none`},null,8,o)):(0,n.createCommentVNode)(``,!0),h.value.line?((0,n.openBlock)(),(0,n.createElementBlock)(`path`,{key:1,d:h.value.line,stroke:e.color,"stroke-width":e.strokeWidth,"vector-effect":`non-scaling-stroke`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,s)):(0,n.createCommentVNode)(``,!0)],12,r))}}),d=e.t(u,[[`__scopeId`,`data-v-1627fc2f`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
|
-
import { useNbStrings as t } from "./composables/useNbStrings.composable.mjs";
|
|
3
|
-
import { computed as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, defineComponent as o, normalizeStyle as s, openBlock as c, unref as l, useId as u } from "vue";
|
|
4
|
-
//#region src/components/Charts/Sparkline.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var d = ["aria-label"], f = ["stop-color"], p = ["stop-color"], m = ["d", "fill"], h = [
|
|
6
|
-
"d",
|
|
7
|
-
"stroke",
|
|
8
|
-
"stroke-width"
|
|
9
|
-
], g = 100, _ = 30, v = /* @__PURE__ */ e(/* @__PURE__ */ o({
|
|
10
|
-
__name: "Sparkline",
|
|
11
|
-
props: {
|
|
12
|
-
data: {},
|
|
13
|
-
color: { default: "var(--nb-c-primary)" },
|
|
14
|
-
height: { default: 40 },
|
|
15
|
-
width: { default: "100%" },
|
|
16
|
-
strokeWidth: { default: 1.5 },
|
|
17
|
-
fill: {
|
|
18
|
-
type: Boolean,
|
|
19
|
-
default: !0
|
|
20
|
-
},
|
|
21
|
-
smooth: {
|
|
22
|
-
type: Boolean,
|
|
23
|
-
default: !0
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
setup(e) {
|
|
27
|
-
let o = t(), v = e, y = `0 0 ${g} ${_}`, b = `nb-sparkline-grad-${u()}`, x = n(() => ({
|
|
28
|
-
width: typeof v.width == "number" ? `${v.width}px` : v.width,
|
|
29
|
-
height: typeof v.height == "number" ? `${v.height}px` : v.height
|
|
30
|
-
})), S = n(() => {
|
|
31
|
-
let e = v.data;
|
|
32
|
-
if (!e || e.length < 2) return {
|
|
33
|
-
line: "",
|
|
34
|
-
area: ""
|
|
35
|
-
};
|
|
36
|
-
let t = Math.max(...e), n = Math.min(...e), r = t - n || 1, i = g / (e.length - 1), a = _ * .08, o = _ - a * 2, s = e.map((e, t) => ({
|
|
37
|
-
x: t * i,
|
|
38
|
-
y: _ - a - (e - n) / r * o
|
|
39
|
-
})), c = `M ${s[0].x.toFixed(2)} ${s[0].y.toFixed(2)}`;
|
|
40
|
-
if (v.smooth) for (let e = 1; e < s.length; e++) {
|
|
41
|
-
let t = s[e - 1], n = s[e], r = t.x + i * .45, a = t.y, o = n.x - i * .45, l = n.y;
|
|
42
|
-
c += ` C ${r.toFixed(2)} ${a.toFixed(2)}, ${o.toFixed(2)} ${l.toFixed(2)}, ${n.x.toFixed(2)} ${n.y.toFixed(2)}`;
|
|
43
|
-
}
|
|
44
|
-
else for (let e = 1; e < s.length; e++) c += ` L ${s[e].x.toFixed(2)} ${s[e].y.toFixed(2)}`;
|
|
45
|
-
let l = s[s.length - 1], u = `${c} L ${l.x.toFixed(2)} ${_} L ${s[0].x.toFixed(2)} ${_} Z`;
|
|
46
|
-
return {
|
|
47
|
-
line: c,
|
|
48
|
-
area: u
|
|
49
|
-
};
|
|
50
|
-
});
|
|
51
|
-
return (t, n) => (c(), i("svg", {
|
|
52
|
-
class: "nb-sparkline",
|
|
53
|
-
style: s(x.value),
|
|
54
|
-
viewBox: y,
|
|
55
|
-
preserveAspectRatio: "none",
|
|
56
|
-
role: "img",
|
|
57
|
-
"aria-label": l(o).chartSparkline,
|
|
58
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
59
|
-
}, [
|
|
60
|
-
a("defs", null, [a("linearGradient", {
|
|
61
|
-
id: b,
|
|
62
|
-
x1: "0",
|
|
63
|
-
y1: "0",
|
|
64
|
-
x2: "0",
|
|
65
|
-
y2: "1"
|
|
66
|
-
}, [a("stop", {
|
|
67
|
-
offset: "0%",
|
|
68
|
-
"stop-color": e.color,
|
|
69
|
-
"stop-opacity": "0.3"
|
|
70
|
-
}, null, 8, f), a("stop", {
|
|
71
|
-
offset: "100%",
|
|
72
|
-
"stop-color": e.color,
|
|
73
|
-
"stop-opacity": "0"
|
|
74
|
-
}, null, 8, p)])]),
|
|
75
|
-
e.fill && S.value.area ? (c(), i("path", {
|
|
76
|
-
key: 0,
|
|
77
|
-
d: S.value.area,
|
|
78
|
-
fill: `url(#${b})`,
|
|
79
|
-
stroke: "none"
|
|
80
|
-
}, null, 8, m)) : r("", !0),
|
|
81
|
-
S.value.line ? (c(), i("path", {
|
|
82
|
-
key: 1,
|
|
83
|
-
d: S.value.line,
|
|
84
|
-
stroke: e.color,
|
|
85
|
-
"stroke-width": e.strokeWidth,
|
|
86
|
-
"vector-effect": "non-scaling-stroke",
|
|
87
|
-
fill: "none",
|
|
88
|
-
"stroke-linecap": "round",
|
|
89
|
-
"stroke-linejoin": "round"
|
|
90
|
-
}, null, 8, h)) : r("", !0)
|
|
91
|
-
], 12, d));
|
|
92
|
-
}
|
|
93
|
-
}), [["__scopeId", "data-v-1627fc2f"]]);
|
|
94
|
-
//#endregion
|
|
95
|
-
export { v as t };
|
package/dist/Stat-BoQUn69z.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./Icon-CssV4E2-.cjs`),r=require(`./composables/useSurfaceLayer.composable.cjs`),i=require(`./Card.link-Bw2B_lPO.cjs`),a=require(`./Skeleton-CMuZJ1dR.cjs`);let o=require(`vue`),s=require(`@nubisco/ui/icons/arrow-up-right`);s=e.n(s);let c=require(`@nubisco/ui/icons/arrow-down-right`);c=e.n(c);let l=require(`@nubisco/ui/icons/minus`);l=e.n(l);var u={class:`nb-stat__label`},d={class:`nb-stat__value`},f={key:1},p={key:2,class:`nb-stat__comparison`},m=(0,o.defineComponent)({__name:`Stat`,props:{label:{},value:{default:void 0},status:{default:`neutral`},delta:{default:void 0},trend:{default:void 0},invertTrend:{type:Boolean,default:!1},comparison:{default:void 0},size:{default:`md`},loading:{type:Boolean,default:!1},to:{default:void 0},href:{default:void 0},target:{default:void 0},clickable:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:t}){let m=e,h=t,{layerProps:g}=r.useSurfaceLayer(),{tag:_,attrs:v,isInteractive:y,onClick:b,onKeydown:x}=i.t(m,e=>h(`select`,e)),S=(0,o.computed)(()=>m.size===`lg`?36:m.size===`sm`?20:28),C=(0,o.computed)(()=>m.trend===`up`?s:m.trend===`down`?c:m.trend===`flat`?l:null),w=(0,o.computed)(()=>m.trend===`up`?m.invertTrend?`negative`:`positive`:m.trend===`down`?m.invertTrend?`positive`:`negative`:`neutral`);return(t,r)=>((0,o.openBlock)(),(0,o.createBlock)((0,o.resolveDynamicComponent)((0,o.unref)(_)),(0,o.mergeProps)({class:[`nb-stat`,[`nb-stat--${e.status}`,`nb-stat--${e.size}`,{"nb-stat--interactive":(0,o.unref)(y),"nb-stat--selected":e.selected,"nb-stat--disabled":e.disabled}]]},{...(0,o.unref)(v),...(0,o.unref)(g)},{"aria-busy":e.loading?!0:void 0,onClick:(0,o.unref)(b),onKeydown:(0,o.unref)(x)}),{default:(0,o.withCtx)(()=>[(0,o.createElementVNode)(`span`,u,[(0,o.renderSlot)(t.$slots,`label`,{},()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.label),1)],!0)]),(0,o.createElementVNode)(`span`,d,[e.loading?((0,o.openBlock)(),(0,o.createBlock)(a.t,{key:0,variant:`block`,height:S.value,width:`4.5ch`,radius:`sm`},null,8,[`height`])):(0,o.renderSlot)(t.$slots,`value`,{key:1},()=>[(0,o.createTextVNode)((0,o.toDisplayString)(e.value),1)],!0)]),!e.loading&&(e.delta||e.trend||e.comparison||t.$slots.delta)?((0,o.openBlock)(),(0,o.createElementBlock)(`span`,{key:0,class:(0,o.normalizeClass)([`nb-stat__delta`,e.trend?`nb-stat__delta--${w.value}`:null])},[(0,o.renderSlot)(t.$slots,`delta`,{},()=>[C.value?((0,o.openBlock)(),(0,o.createBlock)(n.t,{key:0,name:C.value,size:`sm`,class:`nb-stat__trend`,"aria-hidden":`true`},null,8,[`name`])):(0,o.createCommentVNode)(``,!0),e.delta?((0,o.openBlock)(),(0,o.createElementBlock)(`span`,f,(0,o.toDisplayString)(e.delta),1)):(0,o.createCommentVNode)(``,!0),e.comparison?((0,o.openBlock)(),(0,o.createElementBlock)(`span`,p,(0,o.toDisplayString)(e.comparison),1)):(0,o.createCommentVNode)(``,!0)],!0)],2)):(0,o.createCommentVNode)(``,!0)]),_:3},16,[`class`,`aria-busy`,`onClick`,`onKeydown`]))}}),h=t.t(m,[[`__scopeId`,`data-v-f708c9e1`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
|
package/dist/Stat-Bz0NCLTm.js
DELETED
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
|
-
import { t } from "./Icon-B2tiGiqZ.js";
|
|
3
|
-
import { useSurfaceLayer as n } from "./composables/useSurfaceLayer.composable.mjs";
|
|
4
|
-
import { t as r } from "./Card.link-CdvubtHJ.js";
|
|
5
|
-
import { t as i } from "./Skeleton-Hmb5a2G_.js";
|
|
6
|
-
import { computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, defineComponent as d, mergeProps as f, normalizeClass as p, openBlock as m, renderSlot as h, resolveDynamicComponent as g, toDisplayString as _, unref as v, withCtx as y } from "vue";
|
|
7
|
-
import * as b from "@nubisco/ui/icons/arrow-up-right";
|
|
8
|
-
import * as x from "@nubisco/ui/icons/arrow-down-right";
|
|
9
|
-
import * as S from "@nubisco/ui/icons/minus";
|
|
10
|
-
//#region src/components/Stat.vue?vue&type=script&setup=true&lang.ts
|
|
11
|
-
var C = { class: "nb-stat__label" }, w = { class: "nb-stat__value" }, T = { key: 1 }, E = {
|
|
12
|
-
key: 2,
|
|
13
|
-
class: "nb-stat__comparison"
|
|
14
|
-
}, D = /* @__PURE__ */ e(/* @__PURE__ */ d({
|
|
15
|
-
__name: "Stat",
|
|
16
|
-
props: {
|
|
17
|
-
label: {},
|
|
18
|
-
value: { default: void 0 },
|
|
19
|
-
status: { default: "neutral" },
|
|
20
|
-
delta: { default: void 0 },
|
|
21
|
-
trend: { default: void 0 },
|
|
22
|
-
invertTrend: {
|
|
23
|
-
type: Boolean,
|
|
24
|
-
default: !1
|
|
25
|
-
},
|
|
26
|
-
comparison: { default: void 0 },
|
|
27
|
-
size: { default: "md" },
|
|
28
|
-
loading: {
|
|
29
|
-
type: Boolean,
|
|
30
|
-
default: !1
|
|
31
|
-
},
|
|
32
|
-
to: { default: void 0 },
|
|
33
|
-
href: { default: void 0 },
|
|
34
|
-
target: { default: void 0 },
|
|
35
|
-
clickable: {
|
|
36
|
-
type: Boolean,
|
|
37
|
-
default: !1
|
|
38
|
-
},
|
|
39
|
-
selected: {
|
|
40
|
-
type: Boolean,
|
|
41
|
-
default: !1
|
|
42
|
-
},
|
|
43
|
-
disabled: {
|
|
44
|
-
type: Boolean,
|
|
45
|
-
default: !1
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
emits: ["select"],
|
|
49
|
-
setup(e, { emit: d }) {
|
|
50
|
-
let D = e, O = d, { layerProps: k } = n(), { tag: A, attrs: j, isInteractive: M, onClick: N, onKeydown: P } = r(D, (e) => O("select", e)), F = a(() => D.size === "lg" ? 36 : D.size === "sm" ? 20 : 28), I = a(() => D.trend === "up" ? b : D.trend === "down" ? x : D.trend === "flat" ? S : null), L = a(() => D.trend === "up" ? D.invertTrend ? "negative" : "positive" : D.trend === "down" ? D.invertTrend ? "positive" : "negative" : "neutral");
|
|
51
|
-
return (n, r) => (m(), o(g(v(A)), f({ class: ["nb-stat", [
|
|
52
|
-
`nb-stat--${e.status}`,
|
|
53
|
-
`nb-stat--${e.size}`,
|
|
54
|
-
{
|
|
55
|
-
"nb-stat--interactive": v(M),
|
|
56
|
-
"nb-stat--selected": e.selected,
|
|
57
|
-
"nb-stat--disabled": e.disabled
|
|
58
|
-
}
|
|
59
|
-
]] }, {
|
|
60
|
-
...v(j),
|
|
61
|
-
...v(k)
|
|
62
|
-
}, {
|
|
63
|
-
"aria-busy": e.loading ? !0 : void 0,
|
|
64
|
-
onClick: v(N),
|
|
65
|
-
onKeydown: v(P)
|
|
66
|
-
}), {
|
|
67
|
-
default: y(() => [
|
|
68
|
-
l("span", C, [h(n.$slots, "label", {}, () => [u(_(e.label), 1)], !0)]),
|
|
69
|
-
l("span", w, [e.loading ? (m(), o(i, {
|
|
70
|
-
key: 0,
|
|
71
|
-
variant: "block",
|
|
72
|
-
height: F.value,
|
|
73
|
-
width: "4.5ch",
|
|
74
|
-
radius: "sm"
|
|
75
|
-
}, null, 8, ["height"])) : h(n.$slots, "value", { key: 1 }, () => [u(_(e.value), 1)], !0)]),
|
|
76
|
-
!e.loading && (e.delta || e.trend || e.comparison || n.$slots.delta) ? (m(), c("span", {
|
|
77
|
-
key: 0,
|
|
78
|
-
class: p(["nb-stat__delta", e.trend ? `nb-stat__delta--${L.value}` : null])
|
|
79
|
-
}, [h(n.$slots, "delta", {}, () => [
|
|
80
|
-
I.value ? (m(), o(t, {
|
|
81
|
-
key: 0,
|
|
82
|
-
name: I.value,
|
|
83
|
-
size: "sm",
|
|
84
|
-
class: "nb-stat__trend",
|
|
85
|
-
"aria-hidden": "true"
|
|
86
|
-
}, null, 8, ["name"])) : s("", !0),
|
|
87
|
-
e.delta ? (m(), c("span", T, _(e.delta), 1)) : s("", !0),
|
|
88
|
-
e.comparison ? (m(), c("span", E, _(e.comparison), 1)) : s("", !0)
|
|
89
|
-
], !0)], 2)) : s("", !0)
|
|
90
|
-
]),
|
|
91
|
-
_: 3
|
|
92
|
-
}, 16, [
|
|
93
|
-
"class",
|
|
94
|
-
"aria-busy",
|
|
95
|
-
"onClick",
|
|
96
|
-
"onKeydown"
|
|
97
|
-
]));
|
|
98
|
-
}
|
|
99
|
-
}), [["__scopeId", "data-v-f708c9e1"]]);
|
|
100
|
-
//#endregion
|
|
101
|
-
export { D as t };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./Icon-CssV4E2-.cjs`),t=require(`./composables/usePhoneLayout.composable.cjs`);let n=require(`vue`),r=require(`@nubisco/ui/icons/caret-right`);var i=[`aria-expanded`,`aria-disabled`,`onKeydown`],a={class:`nb-menu-item__label`},o=(0,n.defineComponent)({__name:`Submenu`,props:{icon:{default:void 0},label:{},disabled:{type:Boolean,default:!1}},setup(o){let{phone:s}=t.usePhoneLayout(),c=()=>s.value?`var(--nb-zindex-modal-dropdown)`:`var(--nb-zindex-menu)`,l=o,u=(0,n.ref)(null),d=(0,n.ref)(null),f=(0,n.ref)(!1),p=(0,n.inject)(`nb-menu`,null),m=null,h=null,g=(0,n.computed)(()=>`nb-menu--${p?.size??`md`}`),_=(0,n.ref)({position:`fixed`,top:`0px`,left:`0px`,zIndex:c()});function v(){if(!u.value)return;let e=u.value.getBoundingClientRect(),t=e.right,n=e.top;t+200>window.innerWidth&&(t=e.left-200),n+200>window.innerHeight&&(n=Math.max(8,window.innerHeight-200)),_.value={position:`fixed`,top:`${n}px`,left:`${t}px`,zIndex:c()}}function y(){l.disabled||(T(),f.value=!0,v(),(0,n.nextTick)(()=>{if(d.value&&u.value){let e=u.value.getBoundingClientRect(),t=d.value.getBoundingClientRect(),n=e.right;n+t.width>window.innerWidth&&(n=e.left-t.width);let r=e.top;r+t.height>window.innerHeight&&(r=Math.max(8,window.innerHeight-t.height)),_.value={position:`fixed`,top:`${r}px`,left:`${n}px`,zIndex:c()}}}))}function b(){if(T(),!f.value)return;let e=!!d.value?.contains(document.activeElement);f.value=!1,e&&u.value?.focus()}function x(){return d.value?Array.from(d.value.querySelectorAll(`[role="menuitem"], [role="menuitemcheckbox"], [role="menuitemradio"]`)):[]}function S(e,t){let n=x();for(let r=e;r>=0&&r<n.length;r+=t)if(n[r].getAttribute(`aria-disabled`)!==`true`){n[r].focus();return}}function C(){l.disabled||(y(),(0,n.nextTick)(()=>S(0,1)))}function w(e){let t=x().indexOf(document.activeElement);e.key===`ArrowDown`?(e.preventDefault(),e.stopPropagation(),S(t+1,1)):e.key===`ArrowUp`?(e.preventDefault(),e.stopPropagation(),t>0&&S(t-1,-1)):e.key===`ArrowLeft`||e.key===`Escape`?(e.preventDefault(),e.stopPropagation(),b()):e.key===`Tab`&&(b(),p?.close())}(0,n.watch)(d,(e,t)=>{t&&p?.unregisterSurface(t),e&&p?.registerSurface(e)});function T(){m&&=(clearTimeout(m),null),h&&=(clearTimeout(h),null)}function E(){T(),m=setTimeout(y,150)}function D(){T(),h=setTimeout(b,150)}function O(){T()}function k(){T(),h=setTimeout(b,150)}function A(){l.disabled||(f.value?b():y())}return(0,n.onBeforeUnmount)(()=>{T(),d.value&&p?.unregisterSurface(d.value)}),(t,s)=>((0,n.openBlock)(),(0,n.createElementBlock)(n.Fragment,null,[(0,n.createElementVNode)(`li`,{ref_key:`triggerRef`,ref:u,class:(0,n.normalizeClass)([`nb-menu-item nb-submenu-trigger`,{"nb-menu-item--disabled":o.disabled,"nb-menu-item--highlighted":f.value}]),role:`menuitem`,"aria-haspopup":`menu`,"aria-expanded":f.value,"aria-disabled":o.disabled||void 0,tabindex:-1,onMouseenter:E,onMouseleave:D,onKeydown:[(0,n.withKeys)((0,n.withModifiers)(C,[`prevent`]),[`right`]),(0,n.withKeys)((0,n.withModifiers)(C,[`prevent`]),[`enter`]),(0,n.withKeys)((0,n.withModifiers)(C,[`prevent`]),[`space`]),(0,n.withKeys)((0,n.withModifiers)(b,[`prevent`]),[`left`]),(0,n.withKeys)((0,n.withModifiers)(b,[`prevent`]),[`escape`])],onClick:A},[o.icon?((0,n.openBlock)(),(0,n.createBlock)(e.t,{key:0,name:o.icon,size:16,class:`nb-menu-item__icon`},null,8,[`name`])):(0,n.createCommentVNode)(``,!0),(0,n.createElementVNode)(`span`,a,(0,n.toDisplayString)(o.label),1),(0,n.createVNode)(e.t,{name:(0,n.unref)(r.regular),size:`sm`,class:`nb-submenu-trigger__caret`},null,8,[`name`])],42,i),((0,n.openBlock)(),(0,n.createBlock)(n.Teleport,{to:`body`},[(0,n.createVNode)(n.Transition,{name:`nb-submenu`},{default:(0,n.withCtx)(()=>[f.value?((0,n.openBlock)(),(0,n.createElementBlock)(`ul`,{key:0,ref_key:`submenuRef`,ref:d,role:`menu`,class:(0,n.normalizeClass)([`nb-menu nb-submenu`,[g.value]]),style:(0,n.normalizeStyle)(_.value),onMouseenter:O,onMouseleave:k,onKeydown:w},[(0,n.renderSlot)(t.$slots,`default`)],38)):(0,n.createCommentVNode)(``,!0)]),_:3})]))],64))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|