@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,5 +1,5 @@
|
|
|
1
|
-
import { t as e } from "./vue-i18n-
|
|
2
|
-
import { t } from "./SidebarMenuItem-
|
|
1
|
+
import { t as e } from "./vue-i18n-B8N89VAx.js";
|
|
2
|
+
import { t } from "./SidebarMenuItem-D7rkGP2L.js";
|
|
3
3
|
import { computed as n, createBlock as r, defineComponent as i, inject as a, openBlock as o, ref as s } from "vue";
|
|
4
4
|
import * as c from "@nubisco/ui/icons/caret-line-left";
|
|
5
5
|
import * as l from "@nubisco/ui/icons/caret-line-right";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./vue-i18n-
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./vue-i18n-D8JKgg8C.cjs`),n=require(`./SidebarMenuItem-DYREDfqx.cjs`);let r=require(`vue`),i=require(`@nubisco/ui/icons/caret-line-left`);i=e.n(i);let a=require(`@nubisco/ui/icons/caret-line-right`);a=e.n(a);var o=(0,r.defineComponent)({__name:`SidebarCollapseToggle`,props:{collapseLabel:{default:void 0},expandLabel:{default:void 0}},emits:[`toggle`],setup(e,{emit:o}){let s=e,c=o,l=(0,r.inject)(`nb-shell-sidebar-variant`,(0,r.ref)(`verbose`)),u=(0,r.computed)(()=>l.value===`compact`),d={en:{COLLAPSE:`Collapse sidebar`,EXPAND:`Expand sidebar`},pt:{COLLAPSE:`Recolher barra lateral`,EXPAND:`Expandir barra lateral`}};function f(){try{return t.t({useScope:`global`})}catch{return null}}let p=f();function m(e){let t=`sidebarCollapseToggle.${e}`;return p?.te(t)?p.t(t):d[String(p?.locale.value??`en`).toLowerCase().split(`-`)[0]]?.[e]??d.en[e]}let h=(0,r.computed)(()=>u.value?s.expandLabel??m(`EXPAND`):s.collapseLabel??m(`COLLAPSE`));return(e,t)=>((0,r.openBlock)(),(0,r.createBlock)(n.t,{class:`nb-sidebar-collapse-toggle`,label:h.value,icon:u.value?a:i,onClick:t[0]||=e=>c(`toggle`)},null,8,[`label`,`icon`]))}});Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return o}});
|
|
@@ -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 "./vue-i18n-
|
|
3
|
+
import { t as n } from "./vue-i18n-B8N89VAx.js";
|
|
4
4
|
import { computed as r, createElementBlock as i, createVNode as a, defineComponent as o, inject as s, normalizeClass as c, openBlock as l, ref as u, resolveDirective as d, withDirectives as f } from "vue";
|
|
5
5
|
import * as p from "@nubisco/ui/icons/caret-right";
|
|
6
6
|
import * as m from "@nubisco/ui/icons/caret-left";
|
|
@@ -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(`./vue-i18n-
|
|
1
|
+
const e=require(`./chunk-D-qHiVGv.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./Icon-CssV4E2-.cjs`),r=require(`./vue-i18n-D8JKgg8C.cjs`);let i=require(`vue`),a=require(`@nubisco/ui/icons/caret-right`);a=e.n(a);let o=require(`@nubisco/ui/icons/caret-left`);o=e.n(o);let s=require(`@nubisco/ui/icons/sidebar-simple`);s=e.n(s);var c=[`aria-label`,`aria-expanded`],l=(0,i.defineComponent)({__name:`SidebarHeaderToggle`,props:{collapseLabel:{default:void 0},expandLabel:{default:void 0},icon:{default:void 0}},emits:[`toggle`],setup(e,{emit:t}){let l=e,u=t,d=(0,i.inject)(`nb-shell-sidebar-variant`,(0,i.ref)(`verbose`)),f=(0,i.inject)(`nb-shell-sidebar-header-action-position`,(0,i.ref)(`end`)),p=(0,i.computed)(()=>d.value===`compact`),m=(0,i.computed)(()=>f.value===`edge`),h=(0,i.computed)(()=>l.icon?l.icon:m.value?p.value?a:o:s),g={en:{COLLAPSE:`Collapse sidebar`,EXPAND:`Expand sidebar`},pt:{COLLAPSE:`Recolher barra lateral`,EXPAND:`Expandir barra lateral`}};function _(){try{return r.t({useScope:`global`})}catch{return null}}let v=_();function y(e){let t=`sidebarCollapseToggle.${e}`;return v?.te(t)?v.t(t):g[String(v?.locale.value??`en`).toLowerCase().split(`-`)[0]]?.[e]??g.en[e]}let b=(0,i.computed)(()=>p.value?l.expandLabel??y(`EXPAND`):l.collapseLabel??y(`COLLAPSE`));return(e,t)=>{let r=(0,i.resolveDirective)(`nb-tooltip`);return(0,i.withDirectives)(((0,i.openBlock)(),(0,i.createElementBlock)(`button`,{type:`button`,class:(0,i.normalizeClass)([`nb-sidebar-header-toggle`,{"nb-sidebar-header-toggle--edge":m.value}]),"aria-label":b.value,"aria-expanded":!p.value,onClick:t[0]||=e=>u(`toggle`)},[(0,i.createVNode)(n.t,{name:h.value,size:m.value?16:20},null,8,[`name`,`size`])],10,c)),[[r,{body:b.value,aria:`none`,position:`right`}]])}}}),u=t.t(l,[[`__scopeId`,`data-v-c354f6d9`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return u}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./composables/useStableId.composable.cjs`),r=require(`./useLoadingAnnouncer.composable-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./composables/useStableId.composable.cjs`),r=require(`./useLoadingAnnouncer.composable-BXyCMUDe.cjs`);let i=require(`vue`);var a=function(e){return e.Text=`text`,e.Heading=`heading`,e.Block=`block`,e.Circle=`circle`,e.Button=`button`,e}(a||{}),o=[`id`,`role`,`aria-live`,`aria-hidden`],s={key:0,class:`nb-skeleton__label`},c={class:`nb-skeleton__lines`,"aria-busy":`true`},l=`calc(var(--nb-base-unit) * 18.75)`,u=(0,i.defineComponent)({__name:`Skeleton`,props:{variant:{default:a.Text},type:{default:void 0},lines:{default:1},lastLineWidth:{default:`60%`},width:{default:void 0},height:{default:void 0},size:{default:`md`},iconOnly:{type:Boolean,default:!1},radius:{default:`sm`},animated:{type:Boolean,default:!0},label:{default:void 0},completeLabel:{default:void 0},id:{default:void 0}},setup(t){let u=t,d=n.useStableId(u),f=e.useReducedMotion(),p=(0,i.ref)(``),m;(0,i.watch)(()=>u.label,e=>{if(m&&=(clearTimeout(m),void 0),!e){p.value=``;return}if(p.value!==``){p.value=e;return}m=setTimeout(()=>{m=void 0,p.value=e},0)},{immediate:!0}),(0,i.onBeforeUnmount)(()=>{m&&clearTimeout(m),r.t(u.completeLabel)});let h=[`label`,`label-sm`,`label-md`,`label-lg`,`helper-text`,`overline`,`body-sm`,`body-compact`,`body-md`,`body-lg`,`code-sm`,`code-md`,`code-lg`,`heading-compact`,`heading-01`,`heading-02`,`heading-03`,`heading-04`,`heading-05`,`heading-06`],g=(0,i.computed)(()=>u.type&&h.includes(u.type)?u.type:u.variant===a.Heading?`heading-02`:`body-md`),_=(0,i.computed)(()=>u.variant===a.Text||u.variant===a.Heading),v=(0,i.computed)(()=>u.variant===a.Text?Math.max(1,Math.floor(u.lines)):1);function y(e){if(e!=null)return typeof e==`number`?`${e}px`:e}let b=(0,i.computed)(()=>Array.from({length:v.value},(e,t)=>{let n=t===v.value-1;if(u.variant===a.Text&&v.value>1&&n)return{width:u.lastLineWidth}})),x={xxs:2,xs:3,sm:4,md:5,lg:6,xl:8,xxl:10},S=(0,i.computed)(()=>[`nb-skeleton`,`nb-skeleton--${u.variant}`,`nb-skeleton--radius-${u.radius}`,{"nb-skeleton--static":!u.animated,"nb-skeleton--reduced-motion":f.value}]),C=(0,i.computed)(()=>{let e={};if(_.value&&(e[`--nb-skeleton-font-size`]=`var(--nb-type-${g.value}-size)`,e[`--nb-skeleton-line-height`]=`var(--nb-type-${g.value}-line-height)`),u.variant===a.Button){let t=`calc(var(--nb-base-unit) * ${x[u.size]??x.md})`;return e[`--nb-skeleton-height`]=t,e.width=u.iconOnly?t:y(u.width)??l,e}if(u.variant===a.Circle){let t=y(u.height??u.width);return t&&(e.width=t,e[`--nb-skeleton-height`]=t),e}let t=y(u.width);t&&(e.width=t);let n=y(u.height);return n&&!_.value&&(e[`--nb-skeleton-height`]=n),e});return(e,n)=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{id:(0,i.unref)(d),class:(0,i.normalizeClass)(S.value),style:(0,i.normalizeStyle)(C.value),role:t.label?`status`:void 0,"aria-live":t.label?`polite`:void 0,"aria-hidden":t.label?void 0:`true`},[t.label?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,s,(0,i.toDisplayString)(p.value),1)):(0,i.createCommentVNode)(``,!0),(0,i.createElementVNode)(`div`,c,[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(b.value,(e,t)=>((0,i.openBlock)(),(0,i.createElementBlock)(`span`,{key:t,class:`nb-skeleton__line`},[(0,i.createElementVNode)(`span`,{class:`nb-skeleton__fill`,style:(0,i.normalizeStyle)(e)},null,4)]))),128))])],14,o))}}),d=t.t(u,[[`__scopeId`,`data-v-916b82e7`]]);Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return d}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { useReducedMotion as e } from "./composables/useReducedMotion.composable.mjs";
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
3
3
|
import { useStableId as n } from "./composables/useStableId.composable.mjs";
|
|
4
|
-
import { t as r } from "./useLoadingAnnouncer.composable-
|
|
4
|
+
import { t as r } from "./useLoadingAnnouncer.composable-CZT2zf7e.js";
|
|
5
5
|
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createElementVNode as c, defineComponent as l, normalizeClass as u, normalizeStyle as d, onBeforeUnmount as f, openBlock as p, ref as m, renderList as h, toDisplayString as g, unref as _, watch as v } from "vue";
|
|
6
6
|
//#region src/components/Skeleton.d.ts
|
|
7
7
|
var y = /* @__PURE__ */ function(e) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Size.d-BQ4_AVQe.cjs`),r=require(`./Label-CjxnZgNy.cjs`),i=require(`./Message-BJO4MjiQ.cjs`),a=require(`./Grid-BOtE_jXr.cjs`),o=require(`./composables/useFieldMessage.composable.cjs`),s=require(`./NumberInput-BNlXW5XD.cjs`);let c=require(`vue`);var l={class:`nb-slider__field-box`},u={key:0,class:`nb-slider__inner-header`},d=[`id`],f={class:`nb-slider__track-row`},ee={key:0,class:`nb-slider__track-label`},te=[`tabindex`,`aria-valuemin`,`aria-valuemax`,`aria-valuenow`,`aria-labelledby`,`aria-disabled`,`aria-invalid`,`aria-describedby`],p=[`tabindex`,`aria-valuemin`,`aria-valuemax`,`aria-valuenow`,`aria-label`,`aria-labelledby`,`aria-disabled`,`aria-invalid`,`aria-describedby`],ne=[`tabindex`,`aria-valuemin`,`aria-valuemax`,`aria-valuenow`,`aria-label`,`aria-labelledby`,`aria-disabled`,`aria-invalid`,`aria-describedby`],re=[`id`],m=[`id`],ie={key:1,class:`nb-slider__track-label`},h=(0,c.defineComponent)({__name:`Slider`,props:{modelValue:{},min:{default:0},max:{default:100},step:{default:1},range:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},showBounds:{type:Boolean,default:!0},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{},label:{},error:{},warning:{},helper:{},variant:{default:`default`},size:{default:n.r.Medium}},emits:[`update:modelValue`,`change`],setup(e,{emit:n}){let h=e,g=n,_=(0,c.ref)(null),v=t.useStableId({}),y=(0,c.computed)(()=>h.id??v),b=(0,c.computed)(()=>`${y.value}-label`),{variant:x,text:S,messageId:C,invalid:w,live:T,key:E}=o.useFieldMessage(h,y),D=(0,c.ref)(null),O=(0,c.computed)(()=>h.range||h.modelValue===null||h.modelValue===void 0?h.min??0:Array.isArray(h.modelValue)?h.modelValue[0]??h.min??0:h.modelValue),k=(0,c.computed)(()=>!h.range||!Array.isArray(h.modelValue)?h.min??0:h.modelValue[0]??h.min??0),A=(0,c.computed)(()=>!h.range||!Array.isArray(h.modelValue)?h.max??100:h.modelValue[1]??h.max??100),j=(0,c.computed)(()=>{let e=h.step??1;if(!isFinite(e)||e<=0)return 0;let t=String(e),n=t.indexOf(`.`);return n===-1?0:t.length-n-1});function M(e){let t=j.value;return t>0?Number(e.toFixed(t)):Math.round(e)}let N=(0,c.computed)(()=>M(h.range?A.value:O.value));function P(e){let t=h.min??0,n=h.max??100;return n===t?0:(e-t)/(n-t)*100}function ae(e){let t=h.min??0,n=h.max??100,r=h.step??1,i=t+e/100*(n-t),a=Math.round(i/r)*r;return Math.max(t,Math.min(n,a))}function F(e){if(!_.value)return 0;let t=_.value.getBoundingClientRect(),n=`touches`in e?e.touches[0].clientX:e.clientX;return Math.max(0,Math.min(100,(n-t.left)/t.width*100))}let oe=(0,c.computed)(()=>{if(!h.range)return{left:`0%`,width:`${P(O.value)}%`};let e=P(k.value),t=P(A.value);return{left:`${e}%`,width:`${t-e}%`}});function I(e){g(`update:modelValue`,e)}function L(e,t){g(`update:modelValue`,[e,t])}function R(e){if(e===null)return;let t=h.min??0,n=h.max??100;I(Math.max(t,Math.min(n,e)))}function z(e){if(e===null)return;let t=h.min??0;L(Math.max(t,Math.min(A.value,e)),A.value)}function B(e){if(e===null)return;let t=h.max??100,n=Math.max(k.value,Math.min(t,e));L(k.value,n)}function V(e){if(!h.range)return null;let t=P(k.value),n=P(A.value);return Math.abs(e-t)<=Math.abs(e-n)?`low`:`high`}function H(e){let t=ae(e);if(!h.range){I(t);return}if(D.value===`low`)L(Math.min(t,A.value),A.value);else{let e=Math.max(t,k.value);L(k.value,e)}}function U(e){h.disabled||H(F(e))}function W(e){h.disabled||(g(`change`,h.range?[k.value,A.value]:O.value),H(F(e))),J()}function G(e){h.disabled||H(F(e))}function K(e){h.disabled||(g(`change`,h.range?[k.value,A.value]:O.value),H(F(e))),X()}function q(){document.addEventListener(`mousemove`,U),document.addEventListener(`mouseup`,W)}function J(){D.value=null,document.removeEventListener(`mousemove`,U),document.removeEventListener(`mouseup`,W)}function Y(){document.addEventListener(`touchmove`,G,{passive:!0}),document.addEventListener(`touchend`,K)}function X(){D.value=null,document.removeEventListener(`touchmove`,G),document.removeEventListener(`touchend`,K)}function se(e){if(h.disabled)return;let t=F(e);D.value=V(t),H(t),q()}function ce(e){if(h.disabled)return;let t=F(e);D.value=V(t),H(t),Y()}function Z(e,t){h.disabled||(D.value=h.range?e:null,q())}function Q(e,t){h.disabled||(D.value=h.range?e:null,Y())}function $(e,t){if(h.disabled)return;let n=h.min??0,r=h.max??100,i=h.step??1,a=e===`low`?k.value:e===`high`?A.value:O.value,o;switch(t.key){case`ArrowRight`:case`ArrowUp`:o=a+i;break;case`ArrowLeft`:case`ArrowDown`:o=a-i;break;case`PageUp`:o=a+i*10;break;case`PageDown`:o=a-i*10;break;case`Home`:o=n;break;case`End`:o=r;break;default:return}t.preventDefault(),o=M(o);let s;s=e===`low`?[Math.max(n,Math.min(A.value,o)),A.value]:e===`high`?[k.value,Math.max(k.value,Math.min(r,o))]:Math.max(n,Math.min(r,o)),g(`update:modelValue`,s),g(`change`,s)}(0,c.onBeforeUnmount)(()=>{J(),X()});let le=(0,c.computed)(()=>[`nb-slider`,`nb-slider--${h.size}`,`nb-slider--${h.variant}`,{"nb-slider--range":h.range,"nb-slider--disabled":h.disabled,"nb-slider--error":!!h.error,"nb-slider--warning":!h.error&&!!h.warning}]),ue=(0,c.computed)(()=>({"nb-slider__track-area--error":!!h.error,"nb-slider__track-area--warning":!h.error&&!!h.warning}));return(t,n)=>((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{class:(0,c.normalizeClass)(le.value)},[e.variant===`default`&&e.label?((0,c.openBlock)(),(0,c.createBlock)(r.t,{key:0,id:b.value,class:`nb-slider__label`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.label),1)]),_:1},8,[`id`])):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,l,[e.variant===`fluid`&&e.label?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,u,[(0,c.createElementVNode)(`label`,{id:b.value,class:`nb-slider__inner-label`},(0,c.toDisplayString)(e.label),9,d)])):(0,c.createCommentVNode)(``,!0),(0,c.createVNode)(a.t,{dir:`row`,align:`center`,gap:`sm`,class:`nb-slider__row`},{default:(0,c.withCtx)(()=>[e.range&&e.showInput?((0,c.openBlock)(),(0,c.createBlock)(s.t,{key:0,size:e.variant===`fluid`?`sm`:e.size,"model-value":k.value,min:e.min,max:A.value,step:e.step,disabled:e.disabled,class:`nb-slider__input`,"onUpdate:modelValue":z,onChange:z},null,8,[`size`,`model-value`,`min`,`max`,`step`,`disabled`])):(0,c.createCommentVNode)(``,!0),(0,c.createVNode)(a.t,{dir:`col`,justify:`end`,gap:`xs`,class:(0,c.normalizeClass)([`nb-slider__track-area`,ue.value]),grow:``},{default:(0,c.withCtx)(()=>[(0,c.createElementVNode)(`div`,f,[e.showBounds?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,ee,(0,c.toDisplayString)(e.min),1)):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,{ref_key:`trackRef`,ref:_,class:`nb-slider__track`,onMousedown:se,onTouchstartPassive:ce},[(0,c.createElementVNode)(`div`,{class:`nb-slider__track__fill`,style:(0,c.normalizeStyle)(oe.value)},null,4),e.range?((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:1},[(0,c.createElementVNode)(`div`,{class:`nb-slider__track__handle nb-slider__track__handle--low`,role:`slider`,tabindex:e.disabled?-1:0,"aria-valuemin":e.min,"aria-valuemax":A.value,"aria-valuenow":k.value,"aria-label":e.label?void 0:`Minimum`,"aria-labelledby":e.label?`${b.value} ${y.value}-low`:void 0,"aria-disabled":e.disabled||void 0,"aria-invalid":(0,c.unref)(w),"aria-describedby":(0,c.unref)(C),style:(0,c.normalizeStyle)({left:`${P(k.value)}%`}),onKeydown:n[3]||=e=>$(`low`,e),onMousedown:n[4]||=(0,c.withModifiers)(e=>Z(`low`,e),[`stop`]),onTouchstartPassive:n[5]||=(0,c.withModifiers)(e=>Q(`low`,e),[`stop`])},null,44,p),(0,c.createElementVNode)(`div`,{class:`nb-slider__track__handle nb-slider__track__handle--high`,role:`slider`,tabindex:e.disabled?-1:0,"aria-valuemin":k.value,"aria-valuemax":e.max,"aria-valuenow":A.value,"aria-label":e.label?void 0:`Maximum`,"aria-labelledby":e.label?`${b.value} ${y.value}-high`:void 0,"aria-disabled":e.disabled||void 0,"aria-invalid":(0,c.unref)(w),"aria-describedby":(0,c.unref)(C),style:(0,c.normalizeStyle)({left:`${P(A.value)}%`}),onKeydown:n[6]||=e=>$(`high`,e),onMousedown:n[7]||=(0,c.withModifiers)(e=>Z(`high`,e),[`stop`]),onTouchstartPassive:n[8]||=(0,c.withModifiers)(e=>Q(`high`,e),[`stop`])},null,44,ne),n[11]||=(0,c.createElementVNode)(`div`,{class:`nb-slider__tick`},null,-1),(0,c.createElementVNode)(`span`,{id:`${y.value}-low`,class:`nb-slider__sr-only`},` Minimum `,8,re),(0,c.createElementVNode)(`span`,{id:`${y.value}-high`,class:`nb-slider__sr-only`},` Maximum `,8,m)],64)):((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:0,class:`nb-slider__track__handle`,role:`slider`,tabindex:e.disabled?-1:0,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":O.value,"aria-labelledby":e.label?b.value:void 0,"aria-disabled":e.disabled||void 0,"aria-invalid":(0,c.unref)(w),"aria-describedby":(0,c.unref)(C),style:(0,c.normalizeStyle)({left:`${P(O.value)}%`}),onKeydown:n[0]||=e=>$(null,e),onMousedown:n[1]||=(0,c.withModifiers)(e=>Z(null,e),[`stop`]),onTouchstartPassive:n[2]||=(0,c.withModifiers)(e=>Q(null,e),[`stop`])},null,44,te))],544),e.showBounds?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,ie,(0,c.toDisplayString)(e.max),1)):(0,c.createCommentVNode)(``,!0)])]),_:1},8,[`class`]),e.showInput?((0,c.openBlock)(),(0,c.createBlock)(s.t,{key:1,size:e.variant===`fluid`?`sm`:e.size,"model-value":N.value,min:e.range?k.value:e.min,max:e.max,step:e.step,disabled:e.disabled,class:`nb-slider__input`,"onUpdate:modelValue":n[9]||=t=>e.range?B(t):R(t),onChange:n[10]||=t=>e.range?B(t):R(t)},null,8,[`size`,`model-value`,`min`,`max`,`step`,`disabled`])):(0,c.createCommentVNode)(``,!0)]),_:1})]),(0,c.unref)(x)?((0,c.openBlock)(),(0,c.createBlock)(i.t,{id:(0,c.unref)(C),key:(0,c.unref)(E),variant:(0,c.unref)(x),live:(0,c.unref)(T),class:`nb-slider__message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)((0,c.unref)(S)),1)]),_:1},8,[`id`,`variant`,`live`])):(0,c.createCommentVNode)(``,!0)],2))}}),g=e.t(h,[[`__scopeId`,`data-v-a29be5b4`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Size.d-BQ4_AVQe.cjs`),r=require(`./Label-CjxnZgNy.cjs`),i=require(`./Message-BJO4MjiQ.cjs`),a=require(`./Grid-BOtE_jXr.cjs`),o=require(`./composables/useFieldMessage.composable.cjs`),s=require(`./NumberInput-04v9eS0u.cjs`);let c=require(`vue`);var l={class:`nb-slider__field-box`},u={key:0,class:`nb-slider__inner-header`},d=[`id`],f={class:`nb-slider__track-row`},ee={key:0,class:`nb-slider__track-label`},te=[`tabindex`,`aria-valuemin`,`aria-valuemax`,`aria-valuenow`,`aria-labelledby`,`aria-disabled`,`aria-invalid`,`aria-describedby`],p=[`tabindex`,`aria-valuemin`,`aria-valuemax`,`aria-valuenow`,`aria-label`,`aria-labelledby`,`aria-disabled`,`aria-invalid`,`aria-describedby`],ne=[`tabindex`,`aria-valuemin`,`aria-valuemax`,`aria-valuenow`,`aria-label`,`aria-labelledby`,`aria-disabled`,`aria-invalid`,`aria-describedby`],re=[`id`],m=[`id`],ie={key:1,class:`nb-slider__track-label`},h=(0,c.defineComponent)({__name:`Slider`,props:{modelValue:{},min:{default:0},max:{default:100},step:{default:1},range:{type:Boolean,default:!1},showInput:{type:Boolean,default:!0},showBounds:{type:Boolean,default:!0},name:{},disabled:{type:Boolean,default:!1},required:{type:Boolean},id:{},label:{},error:{},warning:{},helper:{},variant:{default:`default`},size:{default:n.r.Medium}},emits:[`update:modelValue`,`change`],setup(e,{emit:n}){let h=e,g=n,_=(0,c.ref)(null),v=t.useStableId({}),y=(0,c.computed)(()=>h.id??v),b=(0,c.computed)(()=>`${y.value}-label`),{variant:x,text:S,messageId:C,invalid:w,live:T,key:E}=o.useFieldMessage(h,y),D=(0,c.ref)(null),O=(0,c.computed)(()=>h.range||h.modelValue===null||h.modelValue===void 0?h.min??0:Array.isArray(h.modelValue)?h.modelValue[0]??h.min??0:h.modelValue),k=(0,c.computed)(()=>!h.range||!Array.isArray(h.modelValue)?h.min??0:h.modelValue[0]??h.min??0),A=(0,c.computed)(()=>!h.range||!Array.isArray(h.modelValue)?h.max??100:h.modelValue[1]??h.max??100),j=(0,c.computed)(()=>{let e=h.step??1;if(!isFinite(e)||e<=0)return 0;let t=String(e),n=t.indexOf(`.`);return n===-1?0:t.length-n-1});function M(e){let t=j.value;return t>0?Number(e.toFixed(t)):Math.round(e)}let N=(0,c.computed)(()=>M(h.range?A.value:O.value));function P(e){let t=h.min??0,n=h.max??100;return n===t?0:(e-t)/(n-t)*100}function ae(e){let t=h.min??0,n=h.max??100,r=h.step??1,i=t+e/100*(n-t),a=Math.round(i/r)*r;return Math.max(t,Math.min(n,a))}function F(e){if(!_.value)return 0;let t=_.value.getBoundingClientRect(),n=`touches`in e?e.touches[0].clientX:e.clientX;return Math.max(0,Math.min(100,(n-t.left)/t.width*100))}let oe=(0,c.computed)(()=>{if(!h.range)return{left:`0%`,width:`${P(O.value)}%`};let e=P(k.value),t=P(A.value);return{left:`${e}%`,width:`${t-e}%`}});function I(e){g(`update:modelValue`,e)}function L(e,t){g(`update:modelValue`,[e,t])}function R(e){if(e===null)return;let t=h.min??0,n=h.max??100;I(Math.max(t,Math.min(n,e)))}function z(e){if(e===null)return;let t=h.min??0;L(Math.max(t,Math.min(A.value,e)),A.value)}function B(e){if(e===null)return;let t=h.max??100,n=Math.max(k.value,Math.min(t,e));L(k.value,n)}function V(e){if(!h.range)return null;let t=P(k.value),n=P(A.value);return Math.abs(e-t)<=Math.abs(e-n)?`low`:`high`}function H(e){let t=ae(e);if(!h.range){I(t);return}if(D.value===`low`)L(Math.min(t,A.value),A.value);else{let e=Math.max(t,k.value);L(k.value,e)}}function U(e){h.disabled||H(F(e))}function W(e){h.disabled||(g(`change`,h.range?[k.value,A.value]:O.value),H(F(e))),J()}function G(e){h.disabled||H(F(e))}function K(e){h.disabled||(g(`change`,h.range?[k.value,A.value]:O.value),H(F(e))),X()}function q(){document.addEventListener(`mousemove`,U),document.addEventListener(`mouseup`,W)}function J(){D.value=null,document.removeEventListener(`mousemove`,U),document.removeEventListener(`mouseup`,W)}function Y(){document.addEventListener(`touchmove`,G,{passive:!0}),document.addEventListener(`touchend`,K)}function X(){D.value=null,document.removeEventListener(`touchmove`,G),document.removeEventListener(`touchend`,K)}function se(e){if(h.disabled)return;let t=F(e);D.value=V(t),H(t),q()}function ce(e){if(h.disabled)return;let t=F(e);D.value=V(t),H(t),Y()}function Z(e,t){h.disabled||(D.value=h.range?e:null,q())}function Q(e,t){h.disabled||(D.value=h.range?e:null,Y())}function $(e,t){if(h.disabled)return;let n=h.min??0,r=h.max??100,i=h.step??1,a=e===`low`?k.value:e===`high`?A.value:O.value,o;switch(t.key){case`ArrowRight`:case`ArrowUp`:o=a+i;break;case`ArrowLeft`:case`ArrowDown`:o=a-i;break;case`PageUp`:o=a+i*10;break;case`PageDown`:o=a-i*10;break;case`Home`:o=n;break;case`End`:o=r;break;default:return}t.preventDefault(),o=M(o);let s;s=e===`low`?[Math.max(n,Math.min(A.value,o)),A.value]:e===`high`?[k.value,Math.max(k.value,Math.min(r,o))]:Math.max(n,Math.min(r,o)),g(`update:modelValue`,s),g(`change`,s)}(0,c.onBeforeUnmount)(()=>{J(),X()});let le=(0,c.computed)(()=>[`nb-slider`,`nb-slider--${h.size}`,`nb-slider--${h.variant}`,{"nb-slider--range":h.range,"nb-slider--disabled":h.disabled,"nb-slider--error":!!h.error,"nb-slider--warning":!h.error&&!!h.warning}]),ue=(0,c.computed)(()=>({"nb-slider__track-area--error":!!h.error,"nb-slider__track-area--warning":!h.error&&!!h.warning}));return(t,n)=>((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{class:(0,c.normalizeClass)(le.value)},[e.variant===`default`&&e.label?((0,c.openBlock)(),(0,c.createBlock)(r.t,{key:0,id:b.value,class:`nb-slider__label`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)(e.label),1)]),_:1},8,[`id`])):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,l,[e.variant===`fluid`&&e.label?((0,c.openBlock)(),(0,c.createElementBlock)(`div`,u,[(0,c.createElementVNode)(`label`,{id:b.value,class:`nb-slider__inner-label`},(0,c.toDisplayString)(e.label),9,d)])):(0,c.createCommentVNode)(``,!0),(0,c.createVNode)(a.t,{dir:`row`,align:`center`,gap:`sm`,class:`nb-slider__row`},{default:(0,c.withCtx)(()=>[e.range&&e.showInput?((0,c.openBlock)(),(0,c.createBlock)(s.t,{key:0,size:e.variant===`fluid`?`sm`:e.size,"model-value":k.value,min:e.min,max:A.value,step:e.step,disabled:e.disabled,class:`nb-slider__input`,"onUpdate:modelValue":z,onChange:z},null,8,[`size`,`model-value`,`min`,`max`,`step`,`disabled`])):(0,c.createCommentVNode)(``,!0),(0,c.createVNode)(a.t,{dir:`col`,justify:`end`,gap:`xs`,class:(0,c.normalizeClass)([`nb-slider__track-area`,ue.value]),grow:``},{default:(0,c.withCtx)(()=>[(0,c.createElementVNode)(`div`,f,[e.showBounds?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,ee,(0,c.toDisplayString)(e.min),1)):(0,c.createCommentVNode)(``,!0),(0,c.createElementVNode)(`div`,{ref_key:`trackRef`,ref:_,class:`nb-slider__track`,onMousedown:se,onTouchstartPassive:ce},[(0,c.createElementVNode)(`div`,{class:`nb-slider__track__fill`,style:(0,c.normalizeStyle)(oe.value)},null,4),e.range?((0,c.openBlock)(),(0,c.createElementBlock)(c.Fragment,{key:1},[(0,c.createElementVNode)(`div`,{class:`nb-slider__track__handle nb-slider__track__handle--low`,role:`slider`,tabindex:e.disabled?-1:0,"aria-valuemin":e.min,"aria-valuemax":A.value,"aria-valuenow":k.value,"aria-label":e.label?void 0:`Minimum`,"aria-labelledby":e.label?`${b.value} ${y.value}-low`:void 0,"aria-disabled":e.disabled||void 0,"aria-invalid":(0,c.unref)(w),"aria-describedby":(0,c.unref)(C),style:(0,c.normalizeStyle)({left:`${P(k.value)}%`}),onKeydown:n[3]||=e=>$(`low`,e),onMousedown:n[4]||=(0,c.withModifiers)(e=>Z(`low`,e),[`stop`]),onTouchstartPassive:n[5]||=(0,c.withModifiers)(e=>Q(`low`,e),[`stop`])},null,44,p),(0,c.createElementVNode)(`div`,{class:`nb-slider__track__handle nb-slider__track__handle--high`,role:`slider`,tabindex:e.disabled?-1:0,"aria-valuemin":k.value,"aria-valuemax":e.max,"aria-valuenow":A.value,"aria-label":e.label?void 0:`Maximum`,"aria-labelledby":e.label?`${b.value} ${y.value}-high`:void 0,"aria-disabled":e.disabled||void 0,"aria-invalid":(0,c.unref)(w),"aria-describedby":(0,c.unref)(C),style:(0,c.normalizeStyle)({left:`${P(A.value)}%`}),onKeydown:n[6]||=e=>$(`high`,e),onMousedown:n[7]||=(0,c.withModifiers)(e=>Z(`high`,e),[`stop`]),onTouchstartPassive:n[8]||=(0,c.withModifiers)(e=>Q(`high`,e),[`stop`])},null,44,ne),n[11]||=(0,c.createElementVNode)(`div`,{class:`nb-slider__tick`},null,-1),(0,c.createElementVNode)(`span`,{id:`${y.value}-low`,class:`nb-slider__sr-only`},` Minimum `,8,re),(0,c.createElementVNode)(`span`,{id:`${y.value}-high`,class:`nb-slider__sr-only`},` Maximum `,8,m)],64)):((0,c.openBlock)(),(0,c.createElementBlock)(`div`,{key:0,class:`nb-slider__track__handle`,role:`slider`,tabindex:e.disabled?-1:0,"aria-valuemin":e.min,"aria-valuemax":e.max,"aria-valuenow":O.value,"aria-labelledby":e.label?b.value:void 0,"aria-disabled":e.disabled||void 0,"aria-invalid":(0,c.unref)(w),"aria-describedby":(0,c.unref)(C),style:(0,c.normalizeStyle)({left:`${P(O.value)}%`}),onKeydown:n[0]||=e=>$(null,e),onMousedown:n[1]||=(0,c.withModifiers)(e=>Z(null,e),[`stop`]),onTouchstartPassive:n[2]||=(0,c.withModifiers)(e=>Q(null,e),[`stop`])},null,44,te))],544),e.showBounds?((0,c.openBlock)(),(0,c.createElementBlock)(`span`,ie,(0,c.toDisplayString)(e.max),1)):(0,c.createCommentVNode)(``,!0)])]),_:1},8,[`class`]),e.showInput?((0,c.openBlock)(),(0,c.createBlock)(s.t,{key:1,size:e.variant===`fluid`?`sm`:e.size,"model-value":N.value,min:e.range?k.value:e.min,max:e.max,step:e.step,disabled:e.disabled,class:`nb-slider__input`,"onUpdate:modelValue":n[9]||=t=>e.range?B(t):R(t),onChange:n[10]||=t=>e.range?B(t):R(t)},null,8,[`size`,`model-value`,`min`,`max`,`step`,`disabled`])):(0,c.createCommentVNode)(``,!0)]),_:1})]),(0,c.unref)(x)?((0,c.openBlock)(),(0,c.createBlock)(i.t,{id:(0,c.unref)(C),key:(0,c.unref)(E),variant:(0,c.unref)(x),live:(0,c.unref)(T),class:`nb-slider__message`},{default:(0,c.withCtx)(()=>[(0,c.createTextVNode)((0,c.toDisplayString)((0,c.unref)(S)),1)]),_:1},8,[`id`,`variant`,`live`])):(0,c.createCommentVNode)(``,!0)],2))}}),g=e.t(h,[[`__scopeId`,`data-v-a29be5b4`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return g}});
|
|
@@ -5,7 +5,7 @@ import { t as r } from "./Label-xwHw_UbN.js";
|
|
|
5
5
|
import { t as i } from "./Message-DCeg8qsC.js";
|
|
6
6
|
import { t as a } from "./Grid-B7d8x0tA.js";
|
|
7
7
|
import { useFieldMessage as o } from "./composables/useFieldMessage.composable.mjs";
|
|
8
|
-
import { t as s } from "./NumberInput-
|
|
8
|
+
import { t as s } from "./NumberInput-DmKNMQLk.js";
|
|
9
9
|
import { Fragment as ee, computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, createVNode as m, defineComponent as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as te, openBlock as v, ref as y, toDisplayString as b, unref as x, withCtx as S, withModifiers as C } from "vue";
|
|
10
10
|
//#region src/components/Slider.vue?vue&type=script&setup=true&lang.ts
|
|
11
11
|
var ne = { class: "nb-slider__field-box" }, re = {
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
|
+
import { useNbStrings as t } from "./composables/useNbStrings.composable.mjs";
|
|
3
|
+
import { t as n } from "./useChartEntrance-heEx5_ZG.js";
|
|
4
|
+
import { computed as r, createCommentVNode as i, createElementBlock as a, createElementVNode as o, defineComponent as s, normalizeClass as c, normalizeStyle as l, openBlock as u, ref as d, unref as f, useId as p, watch as m } from "vue";
|
|
5
|
+
//#region src/components/Charts/Sparkline.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var h = ["aria-label"], g = ["stop-color"], _ = ["stop-color"], v = ["width", "height"], y = [
|
|
7
|
+
"d",
|
|
8
|
+
"fill",
|
|
9
|
+
"clip-path"
|
|
10
|
+
], b = [
|
|
11
|
+
"d",
|
|
12
|
+
"stroke",
|
|
13
|
+
"stroke-width",
|
|
14
|
+
"clip-path"
|
|
15
|
+
], x = 100, S = 30, C = /* @__PURE__ */ e(/* @__PURE__ */ s({
|
|
16
|
+
__name: "Sparkline",
|
|
17
|
+
props: {
|
|
18
|
+
data: {},
|
|
19
|
+
color: { default: "var(--nb-c-primary)" },
|
|
20
|
+
height: { default: 40 },
|
|
21
|
+
width: { default: "100%" },
|
|
22
|
+
strokeWidth: { default: 1.5 },
|
|
23
|
+
fill: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: !0
|
|
26
|
+
},
|
|
27
|
+
smooth: {
|
|
28
|
+
type: Boolean,
|
|
29
|
+
default: !0
|
|
30
|
+
},
|
|
31
|
+
animate: {
|
|
32
|
+
type: Boolean,
|
|
33
|
+
default: !1
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
setup(e) {
|
|
37
|
+
let s = t(), C = e, w = `0 0 ${x} ${S}`, T = `nb-sparkline-grad-${p()}`, E = `nb-sparkline-wipe-${p()}`, { runKey: D } = n(() => C.animate, () => C.data), O = d(!0), k = r(() => C.animate && O.value ? `url(#${E})` : void 0);
|
|
38
|
+
m(D, () => {
|
|
39
|
+
O.value = !0;
|
|
40
|
+
});
|
|
41
|
+
let A = r(() => ({
|
|
42
|
+
width: typeof C.width == "number" ? `${C.width}px` : C.width,
|
|
43
|
+
height: typeof C.height == "number" ? `${C.height}px` : C.height
|
|
44
|
+
})), j = r(() => {
|
|
45
|
+
let e = C.data;
|
|
46
|
+
if (!e || e.length < 2) return {
|
|
47
|
+
line: "",
|
|
48
|
+
area: ""
|
|
49
|
+
};
|
|
50
|
+
let t = Math.max(...e), n = Math.min(...e), r = t - n || 1, i = x / (e.length - 1), a = S * .08, o = S - a * 2, s = e.map((e, t) => ({
|
|
51
|
+
x: t * i,
|
|
52
|
+
y: S - a - (e - n) / r * o
|
|
53
|
+
})), c = `M ${s[0].x.toFixed(2)} ${s[0].y.toFixed(2)}`;
|
|
54
|
+
if (C.smooth) for (let e = 1; e < s.length; e++) {
|
|
55
|
+
let t = s[e - 1], n = s[e], r = t.x + i * .45, a = t.y, o = n.x - i * .45, l = n.y;
|
|
56
|
+
c += ` C ${r.toFixed(2)} ${a.toFixed(2)}, ${o.toFixed(2)} ${l.toFixed(2)}, ${n.x.toFixed(2)} ${n.y.toFixed(2)}`;
|
|
57
|
+
}
|
|
58
|
+
else for (let e = 1; e < s.length; e++) c += ` L ${s[e].x.toFixed(2)} ${s[e].y.toFixed(2)}`;
|
|
59
|
+
let l = s[s.length - 1], u = `${c} L ${l.x.toFixed(2)} ${S} L ${s[0].x.toFixed(2)} ${S} Z`;
|
|
60
|
+
return {
|
|
61
|
+
line: c,
|
|
62
|
+
area: u
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
return (t, n) => (u(), a("svg", {
|
|
66
|
+
class: c(["nb-sparkline", { "nb-sparkline--animate": e.animate }]),
|
|
67
|
+
style: l(A.value),
|
|
68
|
+
viewBox: w,
|
|
69
|
+
preserveAspectRatio: "none",
|
|
70
|
+
role: "img",
|
|
71
|
+
"aria-label": f(s).chartSparkline,
|
|
72
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
73
|
+
}, [
|
|
74
|
+
o("defs", null, [o("linearGradient", {
|
|
75
|
+
id: T,
|
|
76
|
+
x1: "0",
|
|
77
|
+
y1: "0",
|
|
78
|
+
x2: "0",
|
|
79
|
+
y2: "1"
|
|
80
|
+
}, [o("stop", {
|
|
81
|
+
offset: "0%",
|
|
82
|
+
"stop-color": e.color,
|
|
83
|
+
"stop-opacity": "0.3"
|
|
84
|
+
}, null, 8, g), o("stop", {
|
|
85
|
+
offset: "100%",
|
|
86
|
+
"stop-color": e.color,
|
|
87
|
+
"stop-opacity": "0"
|
|
88
|
+
}, null, 8, _)]), e.animate ? (u(), a("clipPath", {
|
|
89
|
+
key: 0,
|
|
90
|
+
id: E
|
|
91
|
+
}, [(u(), a("rect", {
|
|
92
|
+
key: f(D),
|
|
93
|
+
class: "nb-sparkline__wipe",
|
|
94
|
+
x: "-5",
|
|
95
|
+
y: "-5",
|
|
96
|
+
width: x + 10,
|
|
97
|
+
height: S + 10,
|
|
98
|
+
onAnimationend: n[0] ||= (e) => O.value = !1
|
|
99
|
+
}, null, 40, v))])) : i("", !0)]),
|
|
100
|
+
e.fill && j.value.area ? (u(), a("path", {
|
|
101
|
+
key: 0,
|
|
102
|
+
d: j.value.area,
|
|
103
|
+
fill: `url(#${T})`,
|
|
104
|
+
"clip-path": k.value,
|
|
105
|
+
stroke: "none"
|
|
106
|
+
}, null, 8, y)) : i("", !0),
|
|
107
|
+
j.value.line ? (u(), a("path", {
|
|
108
|
+
key: 1,
|
|
109
|
+
d: j.value.line,
|
|
110
|
+
stroke: e.color,
|
|
111
|
+
"stroke-width": e.strokeWidth,
|
|
112
|
+
"clip-path": k.value,
|
|
113
|
+
"vector-effect": "non-scaling-stroke",
|
|
114
|
+
fill: "none",
|
|
115
|
+
"stroke-linecap": "round",
|
|
116
|
+
"stroke-linejoin": "round"
|
|
117
|
+
}, null, 8, b)) : i("", !0)
|
|
118
|
+
], 14, h));
|
|
119
|
+
}
|
|
120
|
+
}), [["__scopeId", "data-v-212a791a"]]);
|
|
121
|
+
//#endregion
|
|
122
|
+
export { C as t };
|
|
@@ -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(`./useChartEntrance-D8vJ7eWq.cjs`);let r=require(`vue`);var i=[`aria-label`],a=[`stop-color`],o=[`stop-color`],s=[`width`,`height`],c=[`d`,`fill`,`clip-path`],l=[`d`,`stroke`,`stroke-width`,`clip-path`],u=100,d=30,f=(0,r.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},animate:{type:Boolean,default:!1}},setup(e){let f=t.useNbStrings(),p=e,m=`0 0 ${u} ${d}`,h=`nb-sparkline-grad-${(0,r.useId)()}`,g=`nb-sparkline-wipe-${(0,r.useId)()}`,{runKey:_}=n.t(()=>p.animate,()=>p.data),v=(0,r.ref)(!0),y=(0,r.computed)(()=>p.animate&&v.value?`url(#${g})`:void 0);(0,r.watch)(_,()=>{v.value=!0});let b=(0,r.computed)(()=>({width:typeof p.width==`number`?`${p.width}px`:p.width,height:typeof p.height==`number`?`${p.height}px`:p.height})),x=(0,r.computed)(()=>{let e=p.data;if(!e||e.length<2)return{line:``,area:``};let t=Math.max(...e),n=Math.min(...e),r=t-n||1,i=u/(e.length-1),a=d*.08,o=d-a*2,s=e.map((e,t)=>({x:t*i,y:d-a-(e-n)/r*o})),c=`M ${s[0].x.toFixed(2)} ${s[0].y.toFixed(2)}`;if(p.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,l=n.y;c+=` C ${r.toFixed(2)} ${a.toFixed(2)}, ${o.toFixed(2)} ${l.toFixed(2)}, ${n.x.toFixed(2)} ${n.y.toFixed(2)}`}else for(let e=1;e<s.length;e++)c+=` L ${s[e].x.toFixed(2)} ${s[e].y.toFixed(2)}`;let l=s[s.length-1],f=`${c} L ${l.x.toFixed(2)} ${d} L ${s[0].x.toFixed(2)} ${d} Z`;return{line:c,area:f}});return(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)(`svg`,{class:(0,r.normalizeClass)([`nb-sparkline`,{"nb-sparkline--animate":e.animate}]),style:(0,r.normalizeStyle)(b.value),viewBox:m,preserveAspectRatio:`none`,role:`img`,"aria-label":(0,r.unref)(f).chartSparkline,xmlns:`http://www.w3.org/2000/svg`},[(0,r.createElementVNode)(`defs`,null,[(0,r.createElementVNode)(`linearGradient`,{id:h,x1:`0`,y1:`0`,x2:`0`,y2:`1`},[(0,r.createElementVNode)(`stop`,{offset:`0%`,"stop-color":e.color,"stop-opacity":`0.3`},null,8,a),(0,r.createElementVNode)(`stop`,{offset:`100%`,"stop-color":e.color,"stop-opacity":`0`},null,8,o)]),e.animate?((0,r.openBlock)(),(0,r.createElementBlock)(`clipPath`,{key:0,id:g},[((0,r.openBlock)(),(0,r.createElementBlock)(`rect`,{key:(0,r.unref)(_),class:`nb-sparkline__wipe`,x:`-5`,y:`-5`,width:u+10,height:d+10,onAnimationend:n[0]||=e=>v.value=!1},null,40,s))])):(0,r.createCommentVNode)(``,!0)]),e.fill&&x.value.area?((0,r.openBlock)(),(0,r.createElementBlock)(`path`,{key:0,d:x.value.area,fill:`url(#${h})`,"clip-path":y.value,stroke:`none`},null,8,c)):(0,r.createCommentVNode)(``,!0),x.value.line?((0,r.openBlock)(),(0,r.createElementBlock)(`path`,{key:1,d:x.value.line,stroke:e.color,"stroke-width":e.strokeWidth,"clip-path":y.value,"vector-effect":`non-scaling-stroke`,fill:`none`,"stroke-linecap":`round`,"stroke-linejoin":`round`},null,8,l)):(0,r.createCommentVNode)(``,!0)],14,i))}}),p=e.t(f,[[`__scopeId`,`data-v-212a791a`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return p}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./composables/useStableId.composable.cjs`),r=require(`./composables/useNbStrings.composable.cjs`),i=require(`./useLoadingAnnouncer.composable-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./composables/useReducedMotion.composable.cjs`),t=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),n=require(`./composables/useStableId.composable.cjs`),r=require(`./composables/useNbStrings.composable.cjs`),i=require(`./useLoadingAnnouncer.composable-BXyCMUDe.cjs`);let a=require(`vue`);var o=function(e){return e.ExtraSmall=`xs`,e.Small=`sm`,e.Medium=`md`,e.Large=`lg`,e}(o||{}),s=function(e){return e.None=`none`,e.Container=`container`,e.Page=`page`,e}(s||{}),c=function(e){return e.Primary=`primary`,e.Inherit=`inherit`,e}(c||{}),l=[`id`,`tabindex`,`role`,`aria-live`,`aria-hidden`],u={key:0,class:`nb-spinner__label`,"aria-hidden":`true`},d={key:1,class:`nb-spinner__announcement`},f=!1,p=(0,a.defineComponent)({inheritAttrs:!1,__name:`Spinner`,props:{size:{default:o.Medium},label:{default:void 0},showLabel:{type:Boolean,default:!1},overlay:{default:s.None},tone:{default:c.Primary},delay:{default:0},completeLabel:{default:void 0},decorative:{type:Boolean,default:!1},id:{default:void 0}},setup(t){let o=t,c=n.useStableId(o),p=r.useNbStrings(),m=(0,a.computed)(()=>o.label??p.value.spinnerLabel),h=Symbol(`nb-spinner-page-overlay`),g=(0,a.ref)(null),_=e.useReducedMotion(),v=(0,a.computed)(()=>o.overlay===s.Page),y=(0,a.computed)(()=>o.overlay===s.Container),b=(0,a.computed)(()=>o.decorative&&!v.value),x=(0,a.computed)(()=>!b.value),S=(0,a.ref)(o.delay<=0),C;function w(){C&&=(clearTimeout(C),void 0)}(0,a.watch)(()=>o.delay,e=>{if(!S.value){if(w(),e<=0){S.value=!0;return}C=setTimeout(()=>{C=void 0,S.value=!0},e)}},{immediate:!0});let T=(0,a.ref)(``),E;function D(){E&&=(clearTimeout(E),void 0)}(0,a.watch)([S,x,m],([e,t,n])=>{if(D(),!e||!t){T.value=``;return}if(T.value!==``){T.value=n;return}E=setTimeout(()=>{E=void 0,T.value=n},0)},{immediate:!0});function O(){typeof process<`u`&&process.env.NODE_ENV===`production`||f||o.label!==void 0||b.value||(f=!0,console.warn('[nubisco-ui] NbSpinner has no `label`, so it announces "'+m.value+'". Name what is loading ("Loading invoices"), or mark the spinner `decorative` when something else already announces the load.'))}let k=null,A=null;function j(){if(k===null)return;let e=k;k=null,e===`page`&&i.u(h),A?.(),A=null}function M(){let e=S.value?v.value?`page`:y.value?`container`:null:null;if(e===k||(j(),e===null))return;let t=g.value;if(!t)return;if(k=e,e===`page`){i.o(h,t);return}let n=t.parentElement;n&&(A=i.s(n,t))}(0,a.watch)([S,()=>o.overlay],M,{flush:`post`}),(0,a.onMounted)(M),(0,a.onMounted)(O),(0,a.onBeforeUnmount)(()=>{S.value&&x.value&&i.t(o.completeLabel),w(),D(),j()});let N=(0,a.computed)(()=>[`nb-spinner`,`nb-spinner--${o.size}`,`nb-spinner--tone-${o.tone}`,`nb-spinner--overlay-${o.overlay}`,{"nb-spinner--with-label":o.showLabel&&!b.value,"nb-spinner--reduced-motion":_.value,"nb-spinner--overlay-stacked":v.value&&S.value&&!i.c(h)}]);return(e,n)=>((0,a.openBlock)(),(0,a.createBlock)(a.Teleport,{to:`body`,disabled:!v.value},[S.value?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,(0,a.mergeProps)({key:0},e.$attrs,{id:(0,a.unref)(c),ref_key:`rootEl`,ref:g,class:N.value,tabindex:v.value?-1:void 0,role:x.value?`status`:void 0,"aria-live":x.value?`polite`:void 0,"aria-hidden":b.value?`true`:void 0}),[n[1]||=(0,a.createElementVNode)(`svg`,{class:`nb-spinner__ring`,viewBox:`0 0 32 32`,"aria-hidden":`true`,focusable:`false`},[(0,a.createElementVNode)(`circle`,{class:`nb-spinner__track`,cx:`16`,cy:`16`,r:`14`}),(0,a.createElementVNode)(`circle`,{class:`nb-spinner__arc`,cx:`16`,cy:`16`,r:`14`})],-1),t.showLabel&&!b.value?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,u,(0,a.toDisplayString)(m.value),1)):(0,a.createCommentVNode)(``,!0),x.value?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,d,(0,a.toDisplayString)(T.value),1)):(0,a.createCommentVNode)(``,!0),e.$slots.default?((0,a.openBlock)(),(0,a.createElementBlock)(`div`,{key:2,class:`nb-spinner__actions`,"aria-live":`off`,onClick:n[0]||=(0,a.withModifiers)(()=>{},[`stop`])},[(0,a.renderSlot)(e.$slots,`default`,{},void 0,!0)])):(0,a.createCommentVNode)(``,!0)],16,l)):(0,a.createCommentVNode)(``,!0)],8,[`disabled`]))}}),m=t.t(p,[[`__scopeId`,`data-v-833f43a0`]]);Object.defineProperty(exports,`i`,{enumerable:!0,get:function(){return c}}),Object.defineProperty(exports,`n`,{enumerable:!0,get:function(){return s}}),Object.defineProperty(exports,`r`,{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return m}});
|
|
@@ -2,7 +2,7 @@ import { useReducedMotion as e } from "./composables/useReducedMotion.composable
|
|
|
2
2
|
import { t } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
3
3
|
import { useStableId as n } from "./composables/useStableId.composable.mjs";
|
|
4
4
|
import { useNbStrings as r } from "./composables/useNbStrings.composable.mjs";
|
|
5
|
-
import { c as i, o as a, s as o, t as s, u as c } from "./useLoadingAnnouncer.composable-
|
|
5
|
+
import { c as i, o as a, s as o, t as s, u as c } from "./useLoadingAnnouncer.composable-CZT2zf7e.js";
|
|
6
6
|
import { Teleport as l, computed as u, createBlock as d, createCommentVNode as f, createElementBlock as p, createElementVNode as m, defineComponent as h, mergeProps as g, onBeforeUnmount as _, onMounted as v, openBlock as y, ref as b, renderSlot as x, toDisplayString as S, unref as C, watch as w, withModifiers as T } from "vue";
|
|
7
7
|
//#region src/components/Spinner.d.ts
|
|
8
8
|
var E = /* @__PURE__ */ function(e) {
|
|
@@ -0,0 +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(`./composables/useStableId.composable.cjs`),i=require(`./composables/useSurfaceLayer.composable.cjs`),a=require(`./composables/useNbStrings.composable.cjs`),o=require(`./InfoHint-BEzkNQTM.cjs`),s=require(`./Card.link-Bw2B_lPO.cjs`),c=require(`./Skeleton-CUUa44lM.cjs`);let l=require(`vue`),u=require(`@nubisco/ui/icons/arrow-up-right`);u=e.n(u);let d=require(`@nubisco/ui/icons/arrow-down-right`);d=e.n(d);let f=require(`@nubisco/ui/icons/minus`);f=e.n(f);let p=require(`@nubisco/ui/icons/arrow-right`);p=e.n(p);var m={key:1,class:`nb-stat__head`},h=[`id`],g=[`id`],_=[`id`],v={key:1},y={key:2,class:`nb-stat__comparison`},b=(0,l.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},hint:{default:void 0},hintTitle:{default:void 0},icon:{default:void 0},arrow:{type:Boolean,default:!1}},emits:[`select`],setup(e,{emit:t}){let b=e,x=a.useNbStrings(),S=t,{layerProps:C}=i.useSurfaceLayer(),{tag:w,attrs:T,isLink:E,isInteractive:D,onClick:O,onKeydown:k}=s.t(b,e=>S(`select`,e)),A=r.useStableId({}),j=(0,l.computed)(()=>D.value&&!!b.hint),M=(0,l.computed)(()=>b.arrow&&E.value),N=(0,l.computed)(()=>!!b.icon||!!b.hint||M.value),P=(0,l.computed)(()=>j.value?{...C.value}:{...T.value,...C.value,onClick:O,onKeydown:k}),F=(0,l.computed)(()=>b.size===`lg`?36:b.size===`sm`?20:28),I=(0,l.computed)(()=>b.trend===`up`?u:b.trend===`down`?d:b.trend===`flat`?f:null),L=(0,l.computed)(()=>b.trend===`up`?b.invertTrend?`negative`:`positive`:b.trend===`down`?b.invertTrend?`positive`:`negative`:`neutral`);return(t,r)=>((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)(j.value?`div`:(0,l.unref)(w)),(0,l.mergeProps)({class:[`nb-stat`,[`nb-stat--${e.status}`,`nb-stat--${e.size}`,{"nb-stat--interactive":(0,l.unref)(D),"nb-stat--selected":e.selected,"nb-stat--disabled":e.disabled,"nb-stat--split":j.value}]]},P.value,{"aria-busy":e.loading?!0:void 0}),{default:(0,l.withCtx)(()=>[j.value?((0,l.openBlock)(),(0,l.createBlock)((0,l.resolveDynamicComponent)((0,l.unref)(w)),(0,l.mergeProps)({key:0,class:`nb-stat__link`},(0,l.unref)(T),{"aria-labelledby":`${(0,l.unref)(A)}-label ${(0,l.unref)(A)}-value`,onClick:(0,l.unref)(O),onKeydown:(0,l.unref)(k)}),null,16,[`aria-labelledby`,`onClick`,`onKeydown`])):(0,l.createCommentVNode)(``,!0),N.value?((0,l.openBlock)(),(0,l.createElementBlock)(`span`,m,[e.icon?((0,l.openBlock)(),(0,l.createBlock)(n.t,{key:0,name:e.icon,size:16,class:`nb-stat__icon`,"aria-hidden":`true`},null,8,[`name`])):(0,l.createCommentVNode)(``,!0),(0,l.createElementVNode)(`span`,{id:j.value?`${(0,l.unref)(A)}-label`:void 0,class:`nb-stat__label`},[(0,l.renderSlot)(t.$slots,`label`,{},()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.label),1)],!0)],8,h),e.hint?((0,l.openBlock)(),(0,l.createBlock)(o.t,{key:1,class:`nb-stat__hint`,text:e.hint,title:e.hintTitle,label:`${(0,l.unref)(x).infoHintLabel}: ${e.label}`,size:16},null,8,[`text`,`title`,`label`])):(0,l.createCommentVNode)(``,!0),M.value?((0,l.openBlock)(),(0,l.createBlock)(n.t,{key:2,name:p,size:16,class:`nb-stat__arrow`,"aria-hidden":`true`})):(0,l.createCommentVNode)(``,!0)])):((0,l.openBlock)(),(0,l.createElementBlock)(`span`,{key:2,id:j.value?`${(0,l.unref)(A)}-label`:void 0,class:`nb-stat__label`},[(0,l.renderSlot)(t.$slots,`label`,{},()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.label),1)],!0)],8,g)),(0,l.createElementVNode)(`span`,{id:j.value?`${(0,l.unref)(A)}-value`:void 0,class:`nb-stat__value`},[e.loading?((0,l.openBlock)(),(0,l.createBlock)(c.t,{key:0,variant:`block`,height:F.value,width:`4.5ch`,radius:`sm`},null,8,[`height`])):(0,l.renderSlot)(t.$slots,`value`,{key:1},()=>[(0,l.createTextVNode)((0,l.toDisplayString)(e.value),1)],!0)],8,_),!e.loading&&(e.delta||e.trend||e.comparison||t.$slots.delta)?((0,l.openBlock)(),(0,l.createElementBlock)(`span`,{key:3,class:(0,l.normalizeClass)([`nb-stat__delta`,e.trend?`nb-stat__delta--${L.value}`:null])},[(0,l.renderSlot)(t.$slots,`delta`,{},()=>[I.value?((0,l.openBlock)(),(0,l.createBlock)(n.t,{key:0,name:I.value,size:`sm`,class:`nb-stat__trend`,"aria-hidden":`true`},null,8,[`name`])):(0,l.createCommentVNode)(``,!0),e.delta?((0,l.openBlock)(),(0,l.createElementBlock)(`span`,v,(0,l.toDisplayString)(e.delta),1)):(0,l.createCommentVNode)(``,!0),e.comparison?((0,l.openBlock)(),(0,l.createElementBlock)(`span`,y,(0,l.toDisplayString)(e.comparison),1)):(0,l.createCommentVNode)(``,!0)],!0)],2)):(0,l.createCommentVNode)(``,!0)]),_:3},16,[`class`,`aria-busy`]))}}),x=t.t(b,[[`__scopeId`,`data-v-3d91e2af`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return x}});
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
|
+
import { t } from "./Icon-B2tiGiqZ.js";
|
|
3
|
+
import { useStableId as n } from "./composables/useStableId.composable.mjs";
|
|
4
|
+
import { useSurfaceLayer as r } from "./composables/useSurfaceLayer.composable.mjs";
|
|
5
|
+
import { useNbStrings as i } from "./composables/useNbStrings.composable.mjs";
|
|
6
|
+
import { t as a } from "./InfoHint-BlHxrTw6.js";
|
|
7
|
+
import { t as o } from "./Card.link-CdvubtHJ.js";
|
|
8
|
+
import { t as s } from "./Skeleton-DI7l_96J.js";
|
|
9
|
+
import { computed as c, createBlock as l, createCommentVNode as u, createElementBlock as d, createElementVNode as f, createTextVNode as p, defineComponent as m, mergeProps as h, normalizeClass as g, openBlock as _, renderSlot as v, resolveDynamicComponent as y, toDisplayString as b, unref as x, withCtx as S } from "vue";
|
|
10
|
+
import * as C from "@nubisco/ui/icons/arrow-up-right";
|
|
11
|
+
import * as w from "@nubisco/ui/icons/arrow-down-right";
|
|
12
|
+
import * as T from "@nubisco/ui/icons/minus";
|
|
13
|
+
import * as E from "@nubisco/ui/icons/arrow-right";
|
|
14
|
+
//#region src/components/Stat.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
+
var D = {
|
|
16
|
+
key: 1,
|
|
17
|
+
class: "nb-stat__head"
|
|
18
|
+
}, O = ["id"], k = ["id"], A = ["id"], j = { key: 1 }, M = {
|
|
19
|
+
key: 2,
|
|
20
|
+
class: "nb-stat__comparison"
|
|
21
|
+
}, N = /* @__PURE__ */ e(/* @__PURE__ */ m({
|
|
22
|
+
__name: "Stat",
|
|
23
|
+
props: {
|
|
24
|
+
label: {},
|
|
25
|
+
value: { default: void 0 },
|
|
26
|
+
status: { default: "neutral" },
|
|
27
|
+
delta: { default: void 0 },
|
|
28
|
+
trend: { default: void 0 },
|
|
29
|
+
invertTrend: {
|
|
30
|
+
type: Boolean,
|
|
31
|
+
default: !1
|
|
32
|
+
},
|
|
33
|
+
comparison: { default: void 0 },
|
|
34
|
+
size: { default: "md" },
|
|
35
|
+
loading: {
|
|
36
|
+
type: Boolean,
|
|
37
|
+
default: !1
|
|
38
|
+
},
|
|
39
|
+
to: { default: void 0 },
|
|
40
|
+
href: { default: void 0 },
|
|
41
|
+
target: { default: void 0 },
|
|
42
|
+
clickable: {
|
|
43
|
+
type: Boolean,
|
|
44
|
+
default: !1
|
|
45
|
+
},
|
|
46
|
+
selected: {
|
|
47
|
+
type: Boolean,
|
|
48
|
+
default: !1
|
|
49
|
+
},
|
|
50
|
+
disabled: {
|
|
51
|
+
type: Boolean,
|
|
52
|
+
default: !1
|
|
53
|
+
},
|
|
54
|
+
hint: { default: void 0 },
|
|
55
|
+
hintTitle: { default: void 0 },
|
|
56
|
+
icon: { default: void 0 },
|
|
57
|
+
arrow: {
|
|
58
|
+
type: Boolean,
|
|
59
|
+
default: !1
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
emits: ["select"],
|
|
63
|
+
setup(e, { emit: m }) {
|
|
64
|
+
let N = e, P = i(), F = m, { layerProps: I } = r(), { tag: L, attrs: R, isLink: z, isInteractive: B, onClick: V, onKeydown: H } = o(N, (e) => F("select", e)), U = n({}), W = c(() => B.value && !!N.hint), G = c(() => N.arrow && z.value), K = c(() => !!N.icon || !!N.hint || G.value), q = c(() => W.value ? { ...I.value } : {
|
|
65
|
+
...R.value,
|
|
66
|
+
...I.value,
|
|
67
|
+
onClick: V,
|
|
68
|
+
onKeydown: H
|
|
69
|
+
}), J = c(() => N.size === "lg" ? 36 : N.size === "sm" ? 20 : 28), Y = c(() => N.trend === "up" ? C : N.trend === "down" ? w : N.trend === "flat" ? T : null), X = c(() => N.trend === "up" ? N.invertTrend ? "negative" : "positive" : N.trend === "down" ? N.invertTrend ? "positive" : "negative" : "neutral");
|
|
70
|
+
return (n, r) => (_(), l(y(W.value ? "div" : x(L)), h({ class: ["nb-stat", [
|
|
71
|
+
`nb-stat--${e.status}`,
|
|
72
|
+
`nb-stat--${e.size}`,
|
|
73
|
+
{
|
|
74
|
+
"nb-stat--interactive": x(B),
|
|
75
|
+
"nb-stat--selected": e.selected,
|
|
76
|
+
"nb-stat--disabled": e.disabled,
|
|
77
|
+
"nb-stat--split": W.value
|
|
78
|
+
}
|
|
79
|
+
]] }, q.value, { "aria-busy": e.loading ? !0 : void 0 }), {
|
|
80
|
+
default: S(() => [
|
|
81
|
+
W.value ? (_(), l(y(x(L)), h({
|
|
82
|
+
key: 0,
|
|
83
|
+
class: "nb-stat__link"
|
|
84
|
+
}, x(R), {
|
|
85
|
+
"aria-labelledby": `${x(U)}-label ${x(U)}-value`,
|
|
86
|
+
onClick: x(V),
|
|
87
|
+
onKeydown: x(H)
|
|
88
|
+
}), null, 16, [
|
|
89
|
+
"aria-labelledby",
|
|
90
|
+
"onClick",
|
|
91
|
+
"onKeydown"
|
|
92
|
+
])) : u("", !0),
|
|
93
|
+
K.value ? (_(), d("span", D, [
|
|
94
|
+
e.icon ? (_(), l(t, {
|
|
95
|
+
key: 0,
|
|
96
|
+
name: e.icon,
|
|
97
|
+
size: 16,
|
|
98
|
+
class: "nb-stat__icon",
|
|
99
|
+
"aria-hidden": "true"
|
|
100
|
+
}, null, 8, ["name"])) : u("", !0),
|
|
101
|
+
f("span", {
|
|
102
|
+
id: W.value ? `${x(U)}-label` : void 0,
|
|
103
|
+
class: "nb-stat__label"
|
|
104
|
+
}, [v(n.$slots, "label", {}, () => [p(b(e.label), 1)], !0)], 8, O),
|
|
105
|
+
e.hint ? (_(), l(a, {
|
|
106
|
+
key: 1,
|
|
107
|
+
class: "nb-stat__hint",
|
|
108
|
+
text: e.hint,
|
|
109
|
+
title: e.hintTitle,
|
|
110
|
+
label: `${x(P).infoHintLabel}: ${e.label}`,
|
|
111
|
+
size: 16
|
|
112
|
+
}, null, 8, [
|
|
113
|
+
"text",
|
|
114
|
+
"title",
|
|
115
|
+
"label"
|
|
116
|
+
])) : u("", !0),
|
|
117
|
+
G.value ? (_(), l(t, {
|
|
118
|
+
key: 2,
|
|
119
|
+
name: E,
|
|
120
|
+
size: 16,
|
|
121
|
+
class: "nb-stat__arrow",
|
|
122
|
+
"aria-hidden": "true"
|
|
123
|
+
})) : u("", !0)
|
|
124
|
+
])) : (_(), d("span", {
|
|
125
|
+
key: 2,
|
|
126
|
+
id: W.value ? `${x(U)}-label` : void 0,
|
|
127
|
+
class: "nb-stat__label"
|
|
128
|
+
}, [v(n.$slots, "label", {}, () => [p(b(e.label), 1)], !0)], 8, k)),
|
|
129
|
+
f("span", {
|
|
130
|
+
id: W.value ? `${x(U)}-value` : void 0,
|
|
131
|
+
class: "nb-stat__value"
|
|
132
|
+
}, [e.loading ? (_(), l(s, {
|
|
133
|
+
key: 0,
|
|
134
|
+
variant: "block",
|
|
135
|
+
height: J.value,
|
|
136
|
+
width: "4.5ch",
|
|
137
|
+
radius: "sm"
|
|
138
|
+
}, null, 8, ["height"])) : v(n.$slots, "value", { key: 1 }, () => [p(b(e.value), 1)], !0)], 8, A),
|
|
139
|
+
!e.loading && (e.delta || e.trend || e.comparison || n.$slots.delta) ? (_(), d("span", {
|
|
140
|
+
key: 3,
|
|
141
|
+
class: g(["nb-stat__delta", e.trend ? `nb-stat__delta--${X.value}` : null])
|
|
142
|
+
}, [v(n.$slots, "delta", {}, () => [
|
|
143
|
+
Y.value ? (_(), l(t, {
|
|
144
|
+
key: 0,
|
|
145
|
+
name: Y.value,
|
|
146
|
+
size: "sm",
|
|
147
|
+
class: "nb-stat__trend",
|
|
148
|
+
"aria-hidden": "true"
|
|
149
|
+
}, null, 8, ["name"])) : u("", !0),
|
|
150
|
+
e.delta ? (_(), d("span", j, b(e.delta), 1)) : u("", !0),
|
|
151
|
+
e.comparison ? (_(), d("span", M, b(e.comparison), 1)) : u("", !0)
|
|
152
|
+
], !0)], 2)) : u("", !0)
|
|
153
|
+
]),
|
|
154
|
+
_: 3
|
|
155
|
+
}, 16, ["class", "aria-busy"]));
|
|
156
|
+
}
|
|
157
|
+
}), [["__scopeId", "data-v-3d91e2af"]]);
|
|
158
|
+
//#endregion
|
|
159
|
+
export { N as t };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
2
|
import { useStableId as t } from "./composables/useStableId.composable.mjs";
|
|
3
|
-
import { i as n, r, t as i } from "./Stepper.context-
|
|
3
|
+
import { i as n, r, t as i } from "./Stepper.context-BBwBAwSJ.js";
|
|
4
4
|
import { computed as a, createElementBlock as o, createElementVNode as s, defineComponent as c, nextTick as l, normalizeClass as u, onMounted as d, onUpdated as f, openBlock as p, provide as m, ref as h, renderSlot as g, toDisplayString as _, toRef as v, unref as y, watch as b } from "vue";
|
|
5
5
|
//#region src/components/Stepper.vue?vue&type=script&setup=true&lang.ts
|
|
6
6
|
var x = ["id"], S = ["aria-label"], C = {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Stepper.context-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./Stepper.context-CIIC0ucN.cjs`);let r=require(`vue`);var i=[`id`],a=[`aria-label`],o={class:`nb-stepper__announcement`,role:`status`,"aria-live":`polite`},s=(0,r.defineComponent)({__name:`Stepper`,props:{modelValue:{default:void 0},orientation:{default:n.r.Horizontal},size:{default:n.i.Medium},navigable:{type:Boolean,default:!1},furthest:{default:void 0},ariaLabel:{default:void 0},labels:{default:void 0},announce:{type:Boolean,default:!0},id:{default:void 0}},emits:[`update:modelValue`,`change`],setup(e,{emit:s}){let c=e,l=s,u=t.useStableId(c),d=(0,r.ref)(null),f={progress:`Progress`,announcement:`Step {step} of {total}: {label}`,complete:`Complete`,current:`Current step`,incomplete:`Not started`,disabled:`Unavailable`,invalid:`Needs attention`},p=(0,r.computed)(()=>({...f,...c.labels??{}})),m=(0,r.ref)(c.modelValue??0),h=(0,r.computed)(()=>c.modelValue===void 0?m.value:c.modelValue),g=(0,r.ref)(h.value);(0,r.watch)(h,e=>{e>g.value&&(g.value=e)});let _=(0,r.computed)(()=>c.furthest??g.value),v=[],y=(0,r.ref)([]);function b(){let e=v.map((e,t)=>({uid:e.uid,node:e.el(),at:t}));e.sort((e,t)=>!e.node||!t.node?e.at-t.at:e.node.compareDocumentPosition(t.node)&Node.DOCUMENT_POSITION_FOLLOWING?-1:1);let t=e.map(e=>e.uid);(t.length!==y.value.length||t.some((e,t)=>e!==y.value[t]))&&(y.value=t)}function x(e){return v.push(e),b(),()=>{let t=v.findIndex(t=>t.uid===e.uid);t>=0&&v.splice(t,1),b()}}(0,r.onMounted)(b),(0,r.onUpdated)(b);let S=e=>{let t=y.value[e];return v.find(e=>e.uid===t)?.disabled.value??!1};function C(e,t){return!c.navigable||t||e<0||e===h.value?!1:e<=_.value}let w=(0,r.ref)(-1),T=(0,r.computed)(()=>w.value>=0&&C(w.value,S(w.value))?w.value:y.value.findIndex((e,t)=>C(t,S(t)))),E=(0,r.ref)(null);function D(e){let t=e.target;E.value=t;let n=(t?.closest?.(`[data-nb-step]`))?.dataset?.nbStep;if(!n)return;let r=y.value.indexOf(n);r>=0&&(w.value=r)}function O(e){let t=e.relatedTarget;if(t&&d.value?.contains(t))return;if(t){E.value=null;return}let n=e.target;n&&!d.value?.contains(n)&&(E.value=null)}async function k(){let e=E.value;if(!e)return;await(0,r.nextTick)();let t=d.value;if(!t)return;let n=document.activeElement;if(n&&n!==document.body&&t.contains(n))return;if(e.isConnected&&t.contains(e)&&e.matches(`[data-nb-stepper-button]`)){e.focus();return}let i=N();if(!i.length){E.value=null;return}let a=y.value[T.value],o=i.find(e=>e.closest(`[data-nb-step]`)?.dataset.nbStep===a)??i[0];o.focus(),E.value=o}function A(e,t){C(e,t)&&(c.modelValue===void 0&&(m.value=e),l(`update:modelValue`,e),l(`change`,e))}(0,r.provide)(n.t,{current:h,furthest:_,orientation:(0,r.toRef)(c,`orientation`),size:(0,r.toRef)(c,`size`),navigable:(0,r.toRef)(c,`navigable`),labels:p,order:y,tabbable:T,register:x,clickable:C,select:A});let j=(0,r.computed)(()=>[`nb-stepper`,`nb-stepper--${c.orientation}`,`nb-stepper--${c.size}`,{"nb-stepper--navigable":c.navigable}]),M=(0,r.ref)(``);(0,r.watch)(h,e=>{let t=y.value[e],n=v.find(e=>e.uid===t)?.el()??null;if(c.announce){let t=n?.querySelector(`.nb-stepper__label`)?.textContent?.trim()??``;M.value=p.value.announcement.replace(`{step}`,String(e+1)).replace(`{total}`,String(y.value.length)).replace(`{label}`,t).replace(/[:,\-\s]+$/,``)}k();let r=d.value;r&&n&&r.scrollWidth>r.clientWidth&&n.scrollIntoView?.({block:`nearest`,inline:`nearest`})});function N(){return Array.from(d.value?.querySelectorAll(`[data-nb-stepper-button]`)??[])}function P(e){let t=N();if(!t.length)return;let n=t.indexOf(document.activeElement);t[((n<0?0:n+e)+t.length)%t.length]?.focus()}function F(e){let t=N();t.length&&(e===`first`?t[0]:t[t.length-1]).focus()}function I(e){let t=c.orientation===n.r.Horizontal;switch(e.key){case`ArrowRight`:if(!t)return;P(1);break;case`ArrowLeft`:if(!t)return;P(-1);break;case`ArrowDown`:if(t)return;P(1);break;case`ArrowUp`:if(t)return;P(-1);break;case`Home`:F(`first`);break;case`End`:F(`last`);break;default:return}e.preventDefault()}return(t,n)=>((0,r.openBlock)(),(0,r.createElementBlock)(`div`,{id:(0,r.unref)(u),class:(0,r.normalizeClass)(j.value)},[(0,r.createElementVNode)(`ol`,{ref_key:`listRef`,ref:d,class:`nb-stepper__list`,role:`list`,"aria-label":e.ariaLabel||p.value.progress,onKeydown:I,onFocusin:D,onFocusout:O},[(0,r.renderSlot)(t.$slots,`default`,{},void 0,!0)],40,a),(0,r.createElementVNode)(`p`,o,(0,r.toDisplayString)(M.value),1)],10,i))}}),c=e.t(s,[[`__scopeId`,`data-v-5da3536e`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return c}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
2
|
import { t } from "./Icon-B2tiGiqZ.js";
|
|
3
3
|
import { useStableId as n } from "./composables/useStableId.composable.mjs";
|
|
4
|
-
import { n as r, t as i } from "./Stepper.context-
|
|
4
|
+
import { n as r, t as i } from "./Stepper.context-BBwBAwSJ.js";
|
|
5
5
|
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, inject as p, mergeProps as m, normalizeClass as h, onUnmounted as g, openBlock as _, ref as v, renderSlot as y, resolveDynamicComponent as b, toDisplayString as x, unref as S, useSlots as C, withCtx as w } from "vue";
|
|
6
6
|
import * as T from "@nubisco/ui/icons/check";
|
|
7
7
|
import * as E from "@nubisco/ui/icons/warning";
|
|
@@ -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(`./composables/useStableId.composable.cjs`),i=require(`./Stepper.context-
|
|
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/useStableId.composable.cjs`),i=require(`./Stepper.context-CIIC0ucN.cjs`);let a=require(`vue`),o=require(`@nubisco/ui/icons/check`);o=e.n(o);let s=require(`@nubisco/ui/icons/warning`);s=e.n(s);var c=[`data-nb-step`,`data-status`,`data-orientation`,`aria-current`],l={class:`nb-stepper__marker`,"aria-hidden":`true`},u={class:`nb-stepper__text`},d=[`id`],f=[`id`],p=[`id`],m=(0,a.defineComponent)({__name:`StepperStep`,props:{label:{default:``},description:{default:void 0},complete:{type:Boolean,default:!1},invalid:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},id:{default:void 0}},setup(e){let t=e,m=r.useStableId(t),h=(0,a.useSlots)(),g=(0,a.inject)(i.t,null),_=(0,a.ref)(null),v=(0,a.computed)(()=>t.disabled),y=g?.register({uid:m,disabled:v,el:()=>_.value});(0,a.onUnmounted)(()=>y?.());let b=(0,a.computed)(()=>g?.order.value.indexOf(m)??-1),x=(0,a.computed)(()=>b.value===g?.current.value),S=(0,a.computed)(()=>b.value<0?1:b.value+1),C=(0,a.computed)(()=>t.disabled?i.n.Disabled:t.invalid?i.n.Invalid:x.value?i.n.Current:t.complete||b.value>=0&&b.value<(g?.current.value??0)?i.n.Complete:i.n.Incomplete),w=(0,a.computed)(()=>g?.labels.value[C.value]??``),T=(0,a.computed)(()=>`${m}-label`),E=(0,a.computed)(()=>`${m}-description`),D=(0,a.computed)(()=>`${m}-status`),O=(0,a.computed)(()=>!!t.description||!!h.description),k=(0,a.computed)(()=>[O.value?E.value:null,D.value].filter(Boolean).join(` `)),A=(0,a.computed)(()=>g?.tabbable.value??-1),j=(0,a.computed)(()=>g?.clickable(b.value,t.disabled)??!1),M=(0,a.computed)(()=>C.value===i.n.Complete?o:C.value===i.n.Invalid?s:null),N=(0,a.computed)(()=>g?.orientation.value??`horizontal`);function P(){g?.select(b.value,t.disabled)}return(t,r)=>((0,a.openBlock)(),(0,a.createElementBlock)(`li`,{ref_key:`rootEl`,ref:_,class:(0,a.normalizeClass)([`nb-stepper__step`,[`nb-stepper__step--${C.value}`,{"nb-stepper__step--clickable":j.value}]]),"data-nb-step":(0,a.unref)(m),"data-status":C.value,"data-orientation":N.value,"aria-current":x.value?`step`:void 0},[((0,a.openBlock)(),(0,a.createBlock)((0,a.resolveDynamicComponent)(j.value?`button`:`div`),(0,a.mergeProps)({id:(0,a.unref)(m),class:`nb-stepper__body`},j.value?{type:`button`,"data-nb-stepper-button":``,tabindex:b.value===A.value?0:-1,"aria-labelledby":T.value,"aria-describedby":k.value}:{},{onClick:P}),{default:(0,a.withCtx)(()=>[(0,a.createElementVNode)(`span`,l,[M.value?((0,a.openBlock)(),(0,a.createBlock)(n.t,{key:0,name:M.value,size:`sm`},null,8,[`name`])):((0,a.openBlock)(),(0,a.createElementBlock)(a.Fragment,{key:1},[(0,a.createTextVNode)((0,a.toDisplayString)(S.value),1)],64))]),(0,a.createElementVNode)(`span`,u,[(0,a.createElementVNode)(`span`,{id:T.value,class:`nb-stepper__label`},[(0,a.renderSlot)(t.$slots,`label`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)],!0)],8,d),e.description||t.$slots.description?((0,a.openBlock)(),(0,a.createElementBlock)(`span`,{key:0,id:E.value,class:`nb-stepper__description`},[(0,a.renderSlot)(t.$slots,`description`,{},()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.description),1)],!0)],8,f)):(0,a.createCommentVNode)(``,!0),(0,a.createElementVNode)(`span`,{id:D.value,class:`nb-stepper__status`},(0,a.toDisplayString)(w.value),9,p)])]),_:3},16,[`id`])),r[0]||=(0,a.createElementVNode)(`span`,{class:`nb-stepper__line`,"aria-hidden":`true`},null,-1)],10,c))}}),h=t.t(m,[[`__scopeId`,`data-v-4cf87b21`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return h}});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./TextInput.context-ChkcqMNM.cjs`),r=require(`./InlineLoading-
|
|
1
|
+
require(`./chunk-D-qHiVGv.cjs`);const e=require(`./_plugin-vue_export-helper-D0Q0f7-M.cjs`),t=require(`./composables/useStableId.composable.cjs`),n=require(`./TextInput.context-ChkcqMNM.cjs`),r=require(`./InlineLoading-BovtIkg7.cjs`);let i=require(`vue`);var a=[`id`,`aria-label`,`aria-busy`],o=[`role`,`aria-labelledby`],s=[`id`],c=[`id`,`aria-selected`,`onMousemove`,`onClick`],l={key:0,class:`nb-suggestion-list__loading`,role:`presentation`},u={key:1,class:`nb-suggestion-list__empty`,role:`presentation`},d=(0,i.defineComponent)({__name:`SuggestionList`,props:{items:{},open:{type:Boolean,default:!0},itemLabel:{type:Function,default:void 0},itemKey:{type:Function,default:void 0},emptyText:{default:``},loading:{type:Boolean,default:!1},loadingText:{default:``},placement:{default:`bottom`},itemGroup:{type:Function,default:void 0},label:{default:``},for:{default:void 0},id:{default:void 0}},emits:[`select`,`update:open`,`close`],setup(e,{expose:d,emit:f}){let p=e,m=f,h=(0,i.useSlots)(),g=t.useStableId({id:p.id}),_=(0,i.ref)(null),v=(0,i.ref)(0),y=(0,i.inject)(n.t,null),b=(0,i.computed)(()=>!!p.emptyText||!!h.empty),x=(0,i.computed)(()=>p.open&&(p.items.length>0||b.value||p.loading)),S=(0,i.computed)(()=>{let e=[];return p.items.forEach((t,n)=>{let r=p.itemGroup?.(t)??``,i=e[e.length-1];if(i&&i.name===r){i.entries.push({item:t,index:n});return}e.push({key:`${e.length}:${r}`,name:r,headingId:`${g}-group-${e.length}`,entries:[{item:t,index:n}]})}),e});function C(e){return p.itemLabel?p.itemLabel(e):e&&typeof e==`object`&&`label`in e?String(e.label):String(e)}function w(e,t){return p.itemKey?p.itemKey(e,t):C(e)}function T(e){return`${g}-option-${e}`}function E(){if(p.for&&typeof document<`u`){let e=document.getElementById(p.for);if(e instanceof HTMLInputElement||e instanceof HTMLTextAreaElement)return e}return y?.field.value??null}function D(){m(`update:open`,!1),m(`close`)}function O(e){let t=p.items[e];t!==void 0&&(m(`select`,t,e),D())}function k(e){let t=p.items.length;t!==0&&(v.value=(e+t)%t)}function A(e){if(!x.value||e.isComposing)return;let t=p.items.length>0;switch(e.key){case`ArrowDown`:if(!t)return;k(v.value+1);break;case`ArrowUp`:if(!t)return;k(v.value-1);break;case`Home`:case`End`:if(!t||!(e.ctrlKey||e.metaKey))return;v.value=e.key===`Home`?0:p.items.length-1;break;case`Enter`:case`Tab`:if(!t)return;O(v.value);break;case`Escape`:D(),e.stopPropagation();break;default:return}e.preventDefault()}function j(){p.open&&D()}let M=[`role`,`aria-autocomplete`,`aria-expanded`,`aria-controls`,`aria-activedescendant`],N=null;function P(){N&&(N.setAttribute(`role`,`combobox`),N.setAttribute(`aria-autocomplete`,`list`),N.setAttribute(`aria-expanded`,String(x.value)),x.value?N.setAttribute(`aria-controls`,g):N.removeAttribute(`aria-controls`),x.value&&p.items.length>0?N.setAttribute(`aria-activedescendant`,T(v.value)):N.removeAttribute(`aria-activedescendant`))}function F(){let e=E();if(e===N||(I(),!e))return;N=e;let t=e;t.addEventListener(`keydown`,A,!0),t.addEventListener(`blur`,j),P()}function I(){if(N){N.removeEventListener(`keydown`,A,!0),N.removeEventListener(`blur`,j);for(let e of M)N.removeAttribute(e);N=null}}function L(){(_.value?.querySelectorAll(`.nb-suggestion-list__item`))?.[v.value]?.scrollIntoView?.({block:`nearest`})}return(0,i.watch)(()=>p.items,()=>{v.value=0}),(0,i.watch)(()=>p.open,e=>{e&&(v.value=0)}),(0,i.watch)([x,v,()=>p.items.length],async()=>{P(),await(0,i.nextTick)(),L()}),(0,i.onMounted)(()=>{F(),N||(0,i.nextTick)(F)}),(0,i.onBeforeUnmount)(I),d({onKeydown:A,activeIndex:v}),(t,n)=>x.value?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:0,id:(0,i.unref)(g),ref_key:`listRef`,ref:_,class:(0,i.normalizeClass)([`nb-suggestion-list`,`nb-suggestion-list--${e.placement}`]),role:`listbox`,"aria-label":e.label||void 0,"aria-busy":e.loading||void 0},[((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(S.value,e=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:e.key,role:e.name?`group`:void 0,"aria-labelledby":e.name?e.headingId:void 0,class:(0,i.normalizeClass)({"nb-suggestion-list__section":e.name}),style:(0,i.normalizeStyle)(e.name?void 0:{display:`contents`})},[e.name?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{key:0,id:e.headingId,class:`nb-suggestion-list__group`,role:`presentation`},[(0,i.renderSlot)(t.$slots,`group`,{group:e.name},()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.name),1)],!0)],8,s)):(0,i.createCommentVNode)(``,!0),((0,i.openBlock)(!0),(0,i.createElementBlock)(i.Fragment,null,(0,i.renderList)(e.entries,({item:e,index:r})=>((0,i.openBlock)(),(0,i.createElementBlock)(`div`,{id:T(r),key:w(e,r),class:(0,i.normalizeClass)([`nb-suggestion-list__item`,{"nb-suggestion-list__item--active":r===v.value}]),role:`option`,"aria-selected":r===v.value,onMousedown:n[0]||=(0,i.withModifiers)(()=>{},[`prevent`]),onMousemove:e=>v.value=r,onClick:e=>O(r)},[(0,i.renderSlot)(t.$slots,`item`,{item:e,index:r,active:r===v.value},()=>[(0,i.createTextVNode)((0,i.toDisplayString)(C(e)),1)],!0)],42,c))),128))],14,o))),128)),e.loading?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,l,[(0,i.renderSlot)(t.$slots,`loading`,{},()=>[(0,i.createVNode)(r.t,{status:`active`,label:e.loadingText,"reserve-space":!1},null,8,[`label`])],!0)])):e.items.length===0?((0,i.openBlock)(),(0,i.createElementBlock)(`div`,u,[(0,i.renderSlot)(t.$slots,`empty`,{},()=>[(0,i.createTextVNode)((0,i.toDisplayString)(e.emptyText),1)],!0)])):(0,i.createCommentVNode)(``,!0)],10,a)):(0,i.createCommentVNode)(``,!0)}}),f=e.t(d,[[`__scopeId`,`data-v-ed911e2f`]]);Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return f}});
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { t as e } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
2
2
|
import { useStableId as t } from "./composables/useStableId.composable.mjs";
|
|
3
3
|
import { t as n } from "./TextInput.context-B-mipPOo.js";
|
|
4
|
-
import { t as r } from "./InlineLoading-
|
|
4
|
+
import { t as r } from "./InlineLoading-CNetV7ih.js";
|
|
5
5
|
import { Fragment as i, computed as a, createCommentVNode as o, createElementBlock as s, createTextVNode as c, createVNode as l, defineComponent as u, inject as d, nextTick as f, normalizeClass as p, normalizeStyle as m, onBeforeUnmount as h, onMounted as ee, openBlock as g, ref as _, renderList as v, renderSlot as y, toDisplayString as b, unref as x, useSlots as S, watch as C, withModifiers as w } from "vue";
|
|
6
6
|
//#region src/components/SuggestionList.vue?vue&type=script&setup=true&lang.ts
|
|
7
7
|
var te = [
|
|
@@ -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 { t as n } from "./_plugin-vue_export-helper-C6QCLu9I.js";
|
|
4
4
|
import { useStableId as r } from "./composables/useStableId.composable.mjs";
|