@shtabapp/ui-kit 1.74.0 → 1.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +26 -0
- package/dist/{SButton-CLTNdnCK.cjs → SButton-BCgdXE_B.cjs} +1 -1
- package/dist/{SButton-LAOBxpd4.js → SButton-DIWMMCSc.js} +1 -0
- package/dist/{SButtonGroup-DPq5g7bZ.js → SButtonGroup-BqW5Rz1p.js} +0 -2
- package/dist/{SButtonGroup-Co1AUbsm.cjs → SButtonGroup-DSi8mQSz.cjs} +1 -1
- package/dist/{SCard-DKZYyR5b.cjs → SCard-B210wsTH.cjs} +1 -1
- package/dist/{SCard-DgGxjBUV.js → SCard-DJuyINB7.js} +1 -1
- package/dist/SChartBar-BvytQ-2z.js +293 -0
- package/dist/SChartBar-BzCeNCsi.cjs +1 -0
- package/dist/SChartBurnup-BeQWgnGT.js +261 -0
- package/dist/SChartBurnup-joKIDLFb.cjs +1 -0
- package/dist/SChartHorizontalBar-C40Yroue.js +176 -0
- package/dist/SChartHorizontalBar-Dwln3uuE.cjs +1 -0
- package/dist/SChartLegend-D1gPKGm0.cjs +1 -0
- package/dist/SChartLegend-dDqLhvIj.js +88 -0
- package/dist/{SChartLine-v0tkmnN6.js → SChartLine-BV8Ytso5.js} +36 -36
- package/dist/{SChartLine-3l507dBg.cjs → SChartLine-DeJjaBmo.cjs} +1 -1
- package/dist/SChartMultiLine-7_HcvVEQ.js +279 -0
- package/dist/SChartMultiLine-Cl9Pf3Wp.cjs +1 -0
- package/dist/SChartPie-BiLoxutQ.js +267 -0
- package/dist/SChartPie-DccW5J0b.cjs +1 -0
- package/dist/{SChartProgress-9Zzy7E8K.cjs → SChartProgress-Cpdkad6Q.cjs} +1 -1
- package/dist/{SChartProgress-DUgSOdv7.js → SChartProgress-DSxJqRA0.js} +27 -27
- package/dist/{SChartStackedArea-Blpqa23h.js → SChartStackedArea-B28offwE.js} +44 -44
- package/dist/{SChartStackedArea-C3MezV9k.cjs → SChartStackedArea-Ce7xyhp1.cjs} +1 -1
- package/dist/{SChartStackedBar-CCxEXw1H.js → SChartStackedBar-C77FlKGS.js} +55 -55
- package/dist/{SChartStackedBar-CJ-UdOfv.cjs → SChartStackedBar-CqUDrFJ3.cjs} +1 -1
- package/dist/SCheckbox-Dkbk21Id.cjs +1 -0
- package/dist/SCheckbox-Dulusx5v.js +105 -0
- package/dist/{SChip-Dcvk3JI8.cjs → SChip-BCB1bvua.cjs} +1 -1
- package/dist/{SChip-NDTK29yq.js → SChip-C6d9oIYL.js} +1 -1
- package/dist/{SColorPicker-Ct8FVU0D.cjs → SColorPicker-CcPnyXE0.cjs} +1 -1
- package/dist/{SColorPicker-BjtlrGHZ.js → SColorPicker-XXyDOuDg.js} +2 -2
- package/dist/{SInput-D8NftspL.js → SInput-CGlUBCkW.js} +57 -54
- package/dist/SInput-fT-S-Tko.cjs +1 -0
- package/dist/SList-BuuCfuHg.js +471 -0
- package/dist/SList-Vg9nx1oe.cjs +1 -0
- package/dist/SListItem-CDlsjhA3.js +227 -0
- package/dist/SListItem-DMjtJXxV.cjs +1 -0
- package/dist/{SPhotoEdit-CShhPLJt.cjs → SPhotoEdit-B4ujF5Dh.cjs} +1 -1
- package/dist/{SPhotoEdit-r63G2NZI.js → SPhotoEdit-BxxycqvA.js} +1 -1
- package/dist/SRadio-B9qQ-PEk.cjs +1 -0
- package/dist/SRadio-BhoLtFUS.js +60 -0
- package/dist/SSelect-Bn4kifqp.js +666 -0
- package/dist/SSelect-DyngcoP9.cjs +1 -0
- package/dist/STab-BkQzKaLY.cjs +1 -0
- package/dist/STab-D7SATMfv.js +242 -0
- package/dist/{STable-CToIFCiU.js → STable-BVGHC_FJ.js} +193 -169
- package/dist/STable-QYXxMVAw.cjs +1 -0
- package/dist/STabs-BYbsRtvi.js +151 -0
- package/dist/STabs-DDP-2p6T.cjs +1 -0
- package/dist/{STag-C5KhPWjQ.js → STag-DWjv_Za8.js} +1 -1
- package/dist/{STag-ZPrc5q4N.cjs → STag-nqzlv8OZ.cjs} +1 -1
- package/dist/{STagGroup-ccEvIkK7.cjs → STagGroup-CYEI9OXO.cjs} +1 -1
- package/dist/{STagGroup-BGwvunuu.js → STagGroup-DEPpEU5C.js} +1 -1
- package/dist/SToggle-BNgLiIrQ.cjs +1 -0
- package/dist/SToggle-MSdprnRP.js +62 -0
- package/dist/applyChartHighlightedYTick-BHVwiljn.cjs +1 -0
- package/dist/applyChartHighlightedYTick-DmsstRVM.js +17 -0
- package/dist/buildMultiLineChartScales-Di-yTvEB.js +41 -0
- package/dist/buildMultiLineChartScales-lVP6h9H4.cjs +1 -0
- package/dist/components/SButton/SButton.vue.d.ts.map +1 -1
- package/dist/components/SButtonGroup/SButtonGroup.vue.d.ts.map +1 -1
- package/dist/components/SChartBar/SChartBar.types.d.ts +33 -4
- package/dist/components/SChartBar/SChartBar.types.d.ts.map +1 -1
- package/dist/components/SChartBar/SChartBar.vue.d.ts.map +1 -1
- package/dist/components/SChartBar/index.d.ts +1 -1
- package/dist/components/SChartBar/index.d.ts.map +1 -1
- package/dist/components/SChartBar/utils/buildBarChartConfig.d.ts +8 -2
- package/dist/components/SChartBar/utils/buildBarChartConfig.d.ts.map +1 -1
- package/dist/components/SChartBar/utils/createBarTargetLinePlugin.d.ts.map +1 -1
- package/dist/components/SChartBar/utils/createBarValueLabelPlugin.d.ts +7 -0
- package/dist/components/SChartBar/utils/createBarValueLabelPlugin.d.ts.map +1 -0
- package/dist/components/SChartBar/utils/demoBarSeries.d.ts +7 -1
- package/dist/components/SChartBar/utils/demoBarSeries.d.ts.map +1 -1
- package/dist/components/SChartBurnup/SChartBurnup.types.d.ts +8 -1
- package/dist/components/SChartBurnup/SChartBurnup.types.d.ts.map +1 -1
- package/dist/components/SChartBurnup/utils/buildBurnupChartConfig.d.ts.map +1 -1
- package/dist/components/SChartBurnup/utils/demoBurnupPoints.d.ts +1 -0
- package/dist/components/SChartBurnup/utils/demoBurnupPoints.d.ts.map +1 -1
- package/dist/components/SChartLegend/SChartLegend.types.d.ts +17 -0
- package/dist/components/SChartLegend/SChartLegend.types.d.ts.map +1 -1
- package/dist/components/SChartLegend/SChartLegend.vue.d.ts +3 -1
- package/dist/components/SChartLegend/SChartLegend.vue.d.ts.map +1 -1
- package/dist/components/SChartLegend/index.d.ts +1 -0
- package/dist/components/SChartLegend/index.d.ts.map +1 -1
- package/dist/components/SChartMultiLine/SChartMultiLine.types.d.ts +14 -2
- package/dist/components/SChartMultiLine/SChartMultiLine.types.d.ts.map +1 -1
- package/dist/components/SChartMultiLine/SChartMultiLine.vue.d.ts +3 -1
- package/dist/components/SChartMultiLine/SChartMultiLine.vue.d.ts.map +1 -1
- package/dist/components/SChartMultiLine/index.d.ts +1 -1
- package/dist/components/SChartMultiLine/index.d.ts.map +1 -1
- package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts +9 -2
- package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts.map +1 -1
- package/dist/components/SChartMultiLine/utils/demoMultiLineSeries.d.ts +4 -1
- package/dist/components/SChartMultiLine/utils/demoMultiLineSeries.d.ts.map +1 -1
- package/dist/components/SChartPie/SChartPie.types.d.ts +27 -1
- package/dist/components/SChartPie/SChartPie.types.d.ts.map +1 -1
- package/dist/components/SChartPie/SChartPie.vue.d.ts +16 -2
- package/dist/components/SChartPie/SChartPie.vue.d.ts.map +1 -1
- package/dist/components/SChartPie/index.d.ts +2 -1
- package/dist/components/SChartPie/index.d.ts.map +1 -1
- package/dist/components/SChartPie/utils/buildPieChartConfig.d.ts +3 -1
- package/dist/components/SChartPie/utils/buildPieChartConfig.d.ts.map +1 -1
- package/dist/components/SChartPie/utils/demoPieSlices.d.ts +1 -0
- package/dist/components/SChartPie/utils/demoPieSlices.d.ts.map +1 -1
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.types.d.ts +9 -0
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.types.d.ts.map +1 -1
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.vue.d.ts +14 -2
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.vue.d.ts.map +1 -1
- package/dist/components/SChartSegmentedBar/utils/buildSegmentedBarChartConfig.d.ts +4 -1
- package/dist/components/SChartSegmentedBar/utils/buildSegmentedBarChartConfig.d.ts.map +1 -1
- package/dist/components/SChartSegmentedBar/utils/createSegmentedBarBadgePlugin.d.ts.map +1 -1
- package/dist/components/SCheckbox/SCheckbox.vue.d.ts.map +1 -1
- package/dist/components/SInput/SInput.vue.d.ts.map +1 -1
- package/dist/components/SInput/utils/fieldLabelId.d.ts +6 -0
- package/dist/components/SInput/utils/fieldLabelId.d.ts.map +1 -0
- package/dist/components/SList/SList.vue.d.ts.map +1 -1
- package/dist/components/SList/utils/context.d.ts +3 -0
- package/dist/components/SList/utils/context.d.ts.map +1 -1
- package/dist/components/SList/utils/resolveListItemFields.d.ts +1 -1
- package/dist/components/SList/utils/resolveListItemFields.d.ts.map +1 -1
- package/dist/components/SListItem/SListItem.types.d.ts +22 -0
- package/dist/components/SListItem/SListItem.types.d.ts.map +1 -1
- package/dist/components/SListItem/SListItem.vue.d.ts.map +1 -1
- package/dist/components/SListItem/index.d.ts +2 -2
- package/dist/components/SListItem/index.d.ts.map +1 -1
- package/dist/components/SListItem/utils/listItemAria.d.ts +31 -0
- package/dist/components/SListItem/utils/listItemAria.d.ts.map +1 -0
- package/dist/components/SRadio/SRadio.vue.d.ts.map +1 -1
- package/dist/components/SRoadmap/SRoadmap.types.d.ts +47 -0
- package/dist/components/SRoadmap/SRoadmap.types.d.ts.map +1 -0
- package/dist/components/SRoadmap/SRoadmap.vue.d.ts +21 -0
- package/dist/components/SRoadmap/SRoadmap.vue.d.ts.map +1 -0
- package/dist/components/SRoadmap/index.d.ts +4 -0
- package/dist/components/SRoadmap/index.d.ts.map +1 -0
- package/dist/components/SRoadmap/utils/buildRoadmapRows.d.ts +19 -0
- package/dist/components/SRoadmap/utils/buildRoadmapRows.d.ts.map +1 -0
- package/dist/components/SRoadmap/utils/demoRoadmapItems.d.ts +5 -0
- package/dist/components/SRoadmap/utils/demoRoadmapItems.d.ts.map +1 -0
- package/dist/components/SRoadmap/utils/roadmapDate.d.ts +16 -0
- package/dist/components/SRoadmap/utils/roadmapDate.d.ts.map +1 -0
- package/dist/components/SSelect/SSelect.vue.d.ts.map +1 -1
- package/dist/components/STab/STab.types.d.ts +5 -0
- package/dist/components/STab/STab.types.d.ts.map +1 -1
- package/dist/components/STab/STab.vue.d.ts +2 -0
- package/dist/components/STab/STab.vue.d.ts.map +1 -1
- package/dist/components/STable/STable.vue.d.ts.map +1 -1
- package/dist/components/STable/parts/STableGroupRow.vue.d.ts +2 -0
- package/dist/components/STable/parts/STableGroupRow.vue.d.ts.map +1 -1
- package/dist/components/STable/parts/STableRow.vue.d.ts +2 -0
- package/dist/components/STable/parts/STableRow.vue.d.ts.map +1 -1
- package/dist/components/STable/utils/useTableRowHydration.d.ts +3 -1
- package/dist/components/STable/utils/useTableRowHydration.d.ts.map +1 -1
- package/dist/components/STabs/STabs.vue.d.ts.map +1 -1
- package/dist/components/SToggle/SToggle.vue.d.ts.map +1 -1
- package/dist/composables/useAriaAttrs.d.ts +21 -0
- package/dist/composables/useAriaAttrs.d.ts.map +1 -0
- package/dist/composables/useChartInteractivity.d.ts +2 -1
- package/dist/composables/useChartInteractivity.d.ts.map +1 -1
- package/dist/{createChartCrosshairPlugin-B4e8d8OF.cjs → createChartCrosshairPlugin-BTPv09h4.cjs} +1 -1
- package/dist/{createChartCrosshairPlugin-C2NUAO5s.js → createChartCrosshairPlugin-EqMlaexu.js} +2 -2
- package/dist/createChartMarkersPlugin-BKxLg4pL.cjs +1 -0
- package/dist/{createChartMarkersPlugin-DkXituwE.js → createChartMarkersPlugin-DPvfZp_e.js} +11 -11
- package/dist/entries/button-group.cjs +1 -1
- package/dist/entries/button-group.js +1 -1
- package/dist/entries/button.cjs +1 -1
- package/dist/entries/button.js +1 -1
- package/dist/entries/card.cjs +1 -1
- package/dist/entries/card.js +1 -1
- package/dist/entries/chart-bar.cjs +1 -1
- package/dist/entries/chart-bar.js +1 -1
- package/dist/entries/chart-burnup.cjs +1 -1
- package/dist/entries/chart-burnup.js +1 -1
- package/dist/entries/chart-horizontal-bar.cjs +1 -1
- package/dist/entries/chart-horizontal-bar.js +1 -1
- package/dist/entries/chart-line.cjs +1 -1
- package/dist/entries/chart-line.js +1 -1
- package/dist/entries/chart-multi-line.cjs +1 -1
- package/dist/entries/chart-multi-line.js +1 -1
- package/dist/entries/chart-pie.cjs +1 -1
- package/dist/entries/chart-pie.d.ts +2 -2
- package/dist/entries/chart-pie.d.ts.map +1 -1
- package/dist/entries/chart-pie.js +2 -2
- package/dist/entries/chart-progress.cjs +1 -1
- package/dist/entries/chart-progress.js +1 -1
- package/dist/entries/chart-stacked-area.cjs +1 -1
- package/dist/entries/chart-stacked-area.js +1 -1
- package/dist/entries/chart-stacked-bar.cjs +1 -1
- package/dist/entries/chart-stacked-bar.js +1 -1
- package/dist/entries/checkbox.cjs +1 -1
- package/dist/entries/checkbox.js +1 -1
- package/dist/entries/chip.cjs +1 -1
- package/dist/entries/chip.js +1 -1
- package/dist/entries/color-picker.cjs +1 -1
- package/dist/entries/color-picker.js +1 -1
- package/dist/entries/input.cjs +1 -1
- package/dist/entries/input.js +1 -1
- package/dist/entries/list-item.cjs +1 -1
- package/dist/entries/list-item.d.ts +2 -2
- package/dist/entries/list-item.d.ts.map +1 -1
- package/dist/entries/list-item.js +2 -2
- package/dist/entries/list.cjs +1 -1
- package/dist/entries/list.js +1 -1
- package/dist/entries/photo-edit.cjs +1 -1
- package/dist/entries/photo-edit.js +1 -1
- package/dist/entries/radio.cjs +1 -1
- package/dist/entries/radio.js +1 -1
- package/dist/entries/select.cjs +1 -1
- package/dist/entries/select.js +1 -1
- package/dist/entries/tab.cjs +1 -1
- package/dist/entries/tab.js +1 -1
- package/dist/entries/table.cjs +1 -1
- package/dist/entries/table.js +1 -1
- package/dist/entries/tabs.cjs +1 -1
- package/dist/entries/tabs.js +2 -2
- package/dist/entries/tag-group.cjs +1 -1
- package/dist/entries/tag-group.js +2 -2
- package/dist/entries/tag.cjs +1 -1
- package/dist/entries/tag.js +1 -1
- package/dist/entries/toggle.cjs +1 -1
- package/dist/entries/toggle.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +9 -7
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +568 -302
- package/dist/resolveBarStackedSeriesColor-CjwUxrUx.js +11 -0
- package/dist/resolveBarStackedSeriesColor-Czkj5bJY.cjs +1 -0
- package/dist/resolveCssColorValue-BFMo08-w.cjs +1 -0
- package/dist/resolveCssColorValue-DH_SEZj4.js +8 -0
- package/dist/resolveSeriesPaletteColor-BepW1gdW.cjs +1 -0
- package/dist/{resolveSeriesPaletteColor-B7wHDj1L.js → resolveSeriesPaletteColor-DoPeNP_F.js} +3 -2
- package/dist/{resolveStackedChartContext-DxJNWqwE.js → resolveStackedChartContext-BbCzct6O.js} +5 -5
- package/dist/{resolveStackedChartContext-Br3N7ISo.cjs → resolveStackedChartContext-D4tuSA6Z.cjs} +1 -1
- package/dist/splitChartAxisLabel-D-IFyucJ.js +4 -0
- package/dist/splitChartAxisLabel-DAmQOJn6.cjs +2 -0
- package/dist/uikit-components.css +1 -1
- package/dist/useAriaAttrs-CxGRTeye.js +15 -0
- package/dist/useAriaAttrs-D748yeJ_.cjs +1 -0
- package/dist/useChartInteractivity-CaZ37kX-.cjs +1 -0
- package/dist/{useChartInteractivity-Cl06JL4l.js → useChartInteractivity-DygkiRA1.js} +178 -144
- package/dist/utils/chart/burnup/createBurnupTooltipCallbacks.d.ts +3 -1
- package/dist/utils/chart/burnup/createBurnupTooltipCallbacks.d.ts.map +1 -1
- package/dist/utils/chart/chart.types.d.ts +10 -0
- package/dist/utils/chart/chart.types.d.ts.map +1 -1
- package/dist/utils/chart/core/applyChartHighlightedYTick.d.ts +19 -0
- package/dist/utils/chart/core/applyChartHighlightedYTick.d.ts.map +1 -0
- package/dist/utils/chart/core/chartCssVariables.d.ts +3 -0
- package/dist/utils/chart/core/chartCssVariables.d.ts.map +1 -1
- package/dist/utils/chart/core/chartInteractivity.d.ts +9 -2
- package/dist/utils/chart/core/chartInteractivity.d.ts.map +1 -1
- package/dist/utils/chart/core/createChartMarkersPlugin.d.ts.map +1 -1
- package/dist/utils/chart/core/resolveSeriesPaletteColor.d.ts.map +1 -1
- package/dist/utils/chart/core/splitChartAxisLabel.d.ts +2 -0
- package/dist/utils/chart/core/splitChartAxisLabel.d.ts.map +1 -0
- package/dist/utils/chart/css/resolveCssColorValue.d.ts +2 -0
- package/dist/utils/chart/css/resolveCssColorValue.d.ts.map +1 -0
- package/dist/utils/chart/horizontalBar/resolveHorizontalBarColor.d.ts.map +1 -1
- package/dist/utils/chart/index.d.ts +4 -1
- package/dist/utils/chart/index.d.ts.map +1 -1
- package/dist/utils/chart/multiLine/buildMultiLineChartScales.d.ts +119 -14
- package/dist/utils/chart/multiLine/buildMultiLineChartScales.d.ts.map +1 -1
- package/dist/utils/chart/multiLine/createMultiLineTooltipCallbacks.d.ts +7 -2
- package/dist/utils/chart/multiLine/createMultiLineTooltipCallbacks.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/SChartBar-CUAibXox.js +0 -215
- package/dist/SChartBar-xzw8oxXl.cjs +0 -1
- package/dist/SChartBurnup-C5Z7UDi-.js +0 -250
- package/dist/SChartBurnup-CWSJUoA_.cjs +0 -1
- package/dist/SChartHorizontalBar-0RpJa5EJ.cjs +0 -1
- package/dist/SChartHorizontalBar-B9SWFvdN.js +0 -175
- package/dist/SChartLegend-DGtjd6zV.cjs +0 -1
- package/dist/SChartLegend-oZoF8XK7.js +0 -42
- package/dist/SChartMultiLine-CG6dKmWm.js +0 -244
- package/dist/SChartMultiLine-vz7JdyA3.cjs +0 -1
- package/dist/SChartPie-0ugeo2fO.js +0 -182
- package/dist/SChartPie-QpnxLQYv.cjs +0 -1
- package/dist/SCheckbox-BMkOc5cn.js +0 -102
- package/dist/SCheckbox-DnnC5mOH.cjs +0 -1
- package/dist/SInput-B4So5LGW.cjs +0 -1
- package/dist/SList-BuXrkB03.js +0 -465
- package/dist/SList-CvP0U6U1.cjs +0 -1
- package/dist/SListItem-BOSQGRWA.js +0 -209
- package/dist/SListItem-BeaflFVf.cjs +0 -1
- package/dist/SRadio-D6_Pd6XX.js +0 -57
- package/dist/SRadio-DRo_GU5A.cjs +0 -1
- package/dist/SSelect-mnobObXO.cjs +0 -1
- package/dist/SSelect-rpJCD5PL.js +0 -652
- package/dist/STab-C06drUMG.cjs +0 -1
- package/dist/STab-ltjZBvbK.js +0 -218
- package/dist/STable-Ci_3UqBz.cjs +0 -1
- package/dist/STabs-BARXqgoB.js +0 -149
- package/dist/STabs-n5hMERTK.cjs +0 -1
- package/dist/SToggle-CGd0Mh0R.cjs +0 -1
- package/dist/SToggle-sGw-LSNd.js +0 -59
- package/dist/buildMultiLineChartScales-7mcIfRVG.cjs +0 -1
- package/dist/buildMultiLineChartScales-CFZ8YVeJ.js +0 -19
- package/dist/createChartMarkersPlugin-Cg1yGzxW.cjs +0 -1
- package/dist/resolveBarStackedSeriesColor-DM7Ax0-s.js +0 -11
- package/dist/resolveBarStackedSeriesColor-z3NP5vAS.cjs +0 -1
- package/dist/resolveSeriesPaletteColor-D0XlU5vT.cjs +0 -1
- package/dist/useChartInteractivity-LbJiqlvI.cjs +0 -1
package/dist/index.js
CHANGED
|
@@ -1,58 +1,58 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./SBadge-BDxQJh6c.js";
|
|
2
2
|
import { a as r, i, n as a, o, r as s, t as c } from "./SAvatar-hWbsODUa.js";
|
|
3
|
-
import { i as l, n as u, r as d, t as f } from "./SColorPicker-
|
|
3
|
+
import { i as l, n as u, r as d, t as f } from "./SColorPicker-XXyDOuDg.js";
|
|
4
4
|
import { a as p, i as m, n as h, o as g, r as _, t as v } from "./SColorPalette-OCu-tgZ3.js";
|
|
5
5
|
import { a as y, i as b, r as x } from "./colorValue-CSh0chxp.js";
|
|
6
|
-
import { n as ee, t as
|
|
7
|
-
import { i as
|
|
8
|
-
import { a as
|
|
9
|
-
import { n as
|
|
10
|
-
import { i as
|
|
11
|
-
import { i as
|
|
12
|
-
import { n as
|
|
13
|
-
import { n as
|
|
14
|
-
import { n as
|
|
15
|
-
import { t as
|
|
16
|
-
import { a as
|
|
17
|
-
import { n as
|
|
18
|
-
import { t as
|
|
19
|
-
import { n as
|
|
20
|
-
import { n as
|
|
21
|
-
import { t as
|
|
22
|
-
import {
|
|
23
|
-
import { n as
|
|
24
|
-
import { n as
|
|
25
|
-
import { a as
|
|
26
|
-
import { n as Je, t as Ye } from "./SListItem-
|
|
27
|
-
import { a as Xe, t as Ze } from "./SList-
|
|
28
|
-
import { n as Qe, t as $e } from "./SSelect-
|
|
29
|
-
import { n as et, t as tt } from "./SRadio-
|
|
30
|
-
import { n as nt, r as rt, t as it } from "./SToggle-
|
|
6
|
+
import { n as ee, t as S } from "./SAvatarGroup-CSSCQKdH.js";
|
|
7
|
+
import { i as C, n as w, r as T, t as E } from "./SButton-DIWMMCSc.js";
|
|
8
|
+
import { a as te, n as ne, o as re, r as ie, t as ae } from "./useSelectionGroup-BCAmPf3R.js";
|
|
9
|
+
import { n as oe } from "./useSelectLink-2aCIYmF6.js";
|
|
10
|
+
import { i as se, n as ce, r as le, t as ue } from "./SButtonGroup-BqW5Rz1p.js";
|
|
11
|
+
import { i as de, n as fe, r as pe, t as me } from "./SCheckbox-Dulusx5v.js";
|
|
12
|
+
import { n as he, t as ge } from "./SCard-DJuyINB7.js";
|
|
13
|
+
import { n as _e, t as ve } from "./SSegmentControl-Bjech2v4.js";
|
|
14
|
+
import { n as ye, r as be, t as xe } from "./STab-D7SATMfv.js";
|
|
15
|
+
import { t as Se } from "./STabs-BYbsRtvi.js";
|
|
16
|
+
import { a as Ce, i as we, o as Te, s as Ee, t as De } from "./useFloatingOverlay-TxzVisMJ.js";
|
|
17
|
+
import { n as Oe, r as ke, t as Ae } from "./STag-DWjv_Za8.js";
|
|
18
|
+
import { t as je } from "./STagGroup-DEPpEU5C.js";
|
|
19
|
+
import { n as Me, r as Ne, t as Pe } from "./SChip-C6d9oIYL.js";
|
|
20
|
+
import { n as Fe, t as Ie } from "./SDropdown-cNmJ5Lrz.js";
|
|
21
|
+
import { t as Le } from "./SDropdownMenu-2koPU6IG.js";
|
|
22
|
+
import { r as Re, t as ze } from "./SInput-CGlUBCkW.js";
|
|
23
|
+
import { n as Be, t as Ve } from "./SInlineMessage-Dirk5RwO.js";
|
|
24
|
+
import { n as He, r as Ue, t as We } from "./SLabel-FHHPlcKq.js";
|
|
25
|
+
import { a as Ge, s as Ke } from "./treeKeyboardNavigation-SmxTdnDz.js";
|
|
26
|
+
import { n as qe, r as Je, t as Ye } from "./SListItem-CDlsjhA3.js";
|
|
27
|
+
import { a as Xe, t as Ze } from "./SList-BuuCfuHg.js";
|
|
28
|
+
import { n as Qe, t as $e } from "./SSelect-Bn4kifqp.js";
|
|
29
|
+
import { n as et, t as tt } from "./SRadio-BhoLtFUS.js";
|
|
30
|
+
import { n as nt, r as rt, t as it } from "./SToggle-MSdprnRP.js";
|
|
31
31
|
import { n as at, t as ot } from "./SInlineInput-DO_glYxP.js";
|
|
32
32
|
import { t as st } from "./STextarea-BDyy7Ku5.js";
|
|
33
|
-
import { n as ct, r as lt, t as ut } from "./SPhotoEdit-
|
|
34
|
-
import { t as
|
|
35
|
-
import {
|
|
36
|
-
import { t as
|
|
37
|
-
import { t as
|
|
38
|
-
import { t as
|
|
39
|
-
import { t as
|
|
40
|
-
import { t as
|
|
41
|
-
import { t as
|
|
42
|
-
import { t as
|
|
43
|
-
import { t as
|
|
44
|
-
import { t as
|
|
45
|
-
import { t as
|
|
46
|
-
import { t as
|
|
47
|
-
import { a as
|
|
48
|
-
import { a as
|
|
49
|
-
import { Fragment as
|
|
50
|
-
import { ESIconName as
|
|
51
|
-
import { useResizeObserver as
|
|
33
|
+
import { n as ct, r as lt, t as ut } from "./SPhotoEdit-BxxycqvA.js";
|
|
34
|
+
import { S as dt, T as D, a as ft, b as O, n as pt, o as mt, r as ht, t as gt, x as _t } from "./useChartInteractivity-DygkiRA1.js";
|
|
35
|
+
import { n as vt, t as yt } from "./SChartLegend-dDqLhvIj.js";
|
|
36
|
+
import { t as bt } from "./SChartLine-BV8Ytso5.js";
|
|
37
|
+
import { t as xt } from "./resolveSeriesPaletteColor-DoPeNP_F.js";
|
|
38
|
+
import { t as St } from "./SChartStackedArea-B28offwE.js";
|
|
39
|
+
import { t as Ct } from "./SChartStackedBar-C77FlKGS.js";
|
|
40
|
+
import { t as wt } from "./SChartHorizontalBar-C40Yroue.js";
|
|
41
|
+
import { n as Tt, t as Et } from "./SChartPie-BiLoxutQ.js";
|
|
42
|
+
import { t as Dt } from "./SChartMultiLine-7_HcvVEQ.js";
|
|
43
|
+
import { t as Ot } from "./SChartBurnup-BeQWgnGT.js";
|
|
44
|
+
import { t as kt } from "./useHasListener-RSjlUyqH.js";
|
|
45
|
+
import { t as At } from "./SChartBar-BvytQ-2z.js";
|
|
46
|
+
import { t as jt } from "./SChartProgress-DSxJqRA0.js";
|
|
47
|
+
import { a as Mt, c as Nt, d as Pt, f as Ft, i as It, l as Lt, n as Rt, o as zt, r as Bt, s as Vt, t as Ht, u as Ut } from "./buildWorkTimeLegendItems-CifzZM9C.js";
|
|
48
|
+
import { a as Wt, c as Gt, d as Kt, f as qt, i as Jt, l as Yt, n as Xt, o as Zt, p as Qt, r as $t, s as en, t as tn, u as nn } from "./STable-BVGHC_FJ.js";
|
|
49
|
+
import { Fragment as k, Teleport as rn, computed as A, createBlock as j, createCommentVNode as M, createElementBlock as N, createElementVNode as P, createSlots as an, createTextVNode as F, createVNode as I, defineComponent as L, mergeModels as on, mergeProps as sn, normalizeClass as R, normalizeStyle as z, onMounted as cn, openBlock as B, ref as V, renderList as H, renderSlot as U, resolveDynamicComponent as ln, shallowRef as un, toDisplayString as W, toValue as dn, unref as G, useModel as fn, useSlots as K, useTemplateRef as pn, watch as mn, withCtx as q, withKeys as hn, withModifiers as gn } from "vue";
|
|
50
|
+
import { ESIconName as J, ESProgressBarSize as _n, ESSkeletonType as vn, SIcon as yn, SProgressBar as bn, SSkeleton as xn, createUiKit as Sn, setUiKitLocale as Cn, uiKitLocaleEn as wn, uiKitLocaleRu as Tn, useUiKitI18n as En, useUiKitI18n as Dn } from "@shtabapp/ui-kit-primitives";
|
|
51
|
+
import { useResizeObserver as On } from "@vueuse/core";
|
|
52
52
|
export * from "@shtabapp/ui-kit-primitives";
|
|
53
53
|
export * from "@shtabapp/ui-kit-tokens";
|
|
54
54
|
//#region src/utils/chart/segmentedBar/resolveSegmentedBarSegmentColor.ts
|
|
55
|
-
var
|
|
55
|
+
var kn = [
|
|
56
56
|
"--s-ui-chart-segmented-bar-palette-1",
|
|
57
57
|
"--s-ui-chart-segmented-bar-palette-2",
|
|
58
58
|
"--s-ui-chart-segmented-bar-palette-3",
|
|
@@ -61,7 +61,7 @@ var K = [
|
|
|
61
61
|
"--s-ui-chart-segmented-bar-palette-6",
|
|
62
62
|
"--s-ui-chart-segmented-bar-palette-7",
|
|
63
63
|
"--s-ui-chart-segmented-bar-palette-8"
|
|
64
|
-
],
|
|
64
|
+
], An = [
|
|
65
65
|
"--s-ui-chart-segmented-bar-skeleton-palette-1",
|
|
66
66
|
"--s-ui-chart-segmented-bar-skeleton-palette-2",
|
|
67
67
|
"--s-ui-chart-segmented-bar-skeleton-palette-3",
|
|
@@ -70,51 +70,51 @@ var K = [
|
|
|
70
70
|
"--s-ui-chart-segmented-bar-skeleton-palette-6",
|
|
71
71
|
"--s-ui-chart-segmented-bar-skeleton-palette-7",
|
|
72
72
|
"--s-ui-chart-segmented-bar-skeleton-palette-8"
|
|
73
|
-
],
|
|
74
|
-
palette:
|
|
75
|
-
paletteFallback:
|
|
76
|
-
skeletonPalette:
|
|
77
|
-
skeletonFallback:
|
|
78
|
-
}),
|
|
73
|
+
], jn = (e, t, n, r = !1) => xt(e, t, n, r, {
|
|
74
|
+
palette: kn,
|
|
75
|
+
paletteFallback: kn[0],
|
|
76
|
+
skeletonPalette: An,
|
|
77
|
+
skeletonFallback: An[0]
|
|
78
|
+
}), Y = /* @__PURE__ */ function(e) {
|
|
79
79
|
return e.INFO_ACCENT = "info-accent", e.INFO_NORMAL = "info-normal", e.SUCCESS = "success", e.WARNING = "warning", e.DANGER = "danger", e.BILLING = "billing", e;
|
|
80
|
-
}({}),
|
|
80
|
+
}({}), X = /* @__PURE__ */ function(e) {
|
|
81
81
|
return e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e;
|
|
82
|
-
}({}),
|
|
82
|
+
}({}), Z = /* @__PURE__ */ function(e) {
|
|
83
83
|
return e.ICON = "icon", e.AVATAR = "avatar", e;
|
|
84
|
-
}({}),
|
|
84
|
+
}({}), Mn = /* @__PURE__ */ function(e) {
|
|
85
85
|
return e.BANNER = "banner", e.TOAST = "toast", e;
|
|
86
|
-
}({}),
|
|
87
|
-
[
|
|
88
|
-
[
|
|
89
|
-
[
|
|
90
|
-
[
|
|
91
|
-
[
|
|
92
|
-
[
|
|
93
|
-
},
|
|
86
|
+
}({}), Nn = {
|
|
87
|
+
[Y.INFO_ACCENT]: J.infoCircle,
|
|
88
|
+
[Y.INFO_NORMAL]: J.infoCircle,
|
|
89
|
+
[Y.SUCCESS]: J.checkCircle,
|
|
90
|
+
[Y.WARNING]: J.alertCircle,
|
|
91
|
+
[Y.DANGER]: J.dangerCircleFill,
|
|
92
|
+
[Y.BILLING]: J.infoCircle
|
|
93
|
+
}, Pn = (e, t) => t || Nn[e], Fn = ["role"], In = { class: "s-ui-notification__body" }, Ln = {
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "s-ui-notification__leftside"
|
|
96
|
-
},
|
|
96
|
+
}, Rn = {
|
|
97
97
|
key: 0,
|
|
98
98
|
class: "s-ui-notification__icon"
|
|
99
|
-
},
|
|
99
|
+
}, zn = { class: "s-ui-notification__content" }, Bn = { class: "s-ui-notification__title-row" }, Vn = {
|
|
100
100
|
key: 0,
|
|
101
101
|
class: "s-ui-notification__description-block"
|
|
102
|
-
},
|
|
102
|
+
}, Hn = {
|
|
103
103
|
key: 0,
|
|
104
104
|
class: "s-ui-notification__description s-ui-typography-label-12-medium"
|
|
105
|
-
},
|
|
105
|
+
}, Un = {
|
|
106
106
|
key: 1,
|
|
107
107
|
class: "s-ui-notification__actions-stack"
|
|
108
|
-
},
|
|
108
|
+
}, Wn = {
|
|
109
109
|
key: 1,
|
|
110
110
|
class: "s-ui-notification__actions-row"
|
|
111
|
-
},
|
|
111
|
+
}, Gn = /* @__PURE__ */ L({
|
|
112
112
|
__name: "SNotification",
|
|
113
113
|
props: {
|
|
114
|
-
type: { default: () =>
|
|
115
|
-
layout: { default: () =>
|
|
116
|
-
leftside: { default: () =>
|
|
117
|
-
surface: { default: () =>
|
|
114
|
+
type: { default: () => Y.INFO_ACCENT },
|
|
115
|
+
layout: { default: () => X.HORIZONTAL },
|
|
116
|
+
leftside: { default: () => Z.ICON },
|
|
117
|
+
surface: { default: () => Mn.BANNER },
|
|
118
118
|
title: {},
|
|
119
119
|
description: {},
|
|
120
120
|
linkText: {},
|
|
@@ -150,15 +150,15 @@ var K = [
|
|
|
150
150
|
"secondaryAction"
|
|
151
151
|
],
|
|
152
152
|
setup(e, { emit: t }) {
|
|
153
|
-
let n = t, r =
|
|
153
|
+
let n = t, r = K(), i = A(() => [
|
|
154
154
|
`s-ui-notification--type-${e.type}`,
|
|
155
155
|
`s-ui-notification--layout-${e.layout}`,
|
|
156
156
|
`s-ui-notification--surface-${e.surface}`,
|
|
157
157
|
{ "s-ui-notification--single-line": p.value }
|
|
158
|
-
]), a =
|
|
158
|
+
]), a = A(() => {
|
|
159
159
|
let t = {};
|
|
160
160
|
return e.width && (t.width = typeof e.width == "number" ? `${e.width}px` : e.width), e.maxWidth && (t.maxWidth = typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth), t;
|
|
161
|
-
}), s =
|
|
161
|
+
}), s = A(() => e.type === Y.DANGER ? "alert" : "status"), l = A(() => Pn(e.type, e.icon)), u = A(() => e.type === Y.BILLING), d = A(() => !!(e.leftside === Z.AVATAR && e.avatar || e.leftside === Z.ICON)), f = A(() => !!(e.description || e.linkText || r.description)), p = A(() => e.layout === X.HORIZONTAL && !f.value), m = A(() => e.showPrimaryButton && (e.primaryButtonText || e.secondaryButtonText)), h = A(() => e.showPrimaryButton && (e.primaryButtonText || e.secondaryButtonText) || e.closable), g = A(() => e.type === Y.BILLING || e.prominentPrimaryButton ? w.MAJOR : w.OUTLINED), _ = A(() => e.type === Y.BILLING ? C.BILLING : C.MAIN), v = () => {
|
|
162
162
|
n("close");
|
|
163
163
|
}, y = () => {
|
|
164
164
|
n("linkClick");
|
|
@@ -167,35 +167,35 @@ var K = [
|
|
|
167
167
|
}, x = () => {
|
|
168
168
|
n("secondaryAction");
|
|
169
169
|
};
|
|
170
|
-
return (t, n) => (
|
|
171
|
-
class:
|
|
172
|
-
style:
|
|
170
|
+
return (t, n) => (B(), N("div", {
|
|
171
|
+
class: R(["s-ui-notification", i.value]),
|
|
172
|
+
style: z(a.value),
|
|
173
173
|
role: s.value
|
|
174
|
-
}, [
|
|
175
|
-
d.value ? (
|
|
174
|
+
}, [P("div", In, [
|
|
175
|
+
d.value ? (B(), N("div", Ln, [e.leftside === G(Z).ICON ? (B(), N("div", Rn, [I(G(yn), {
|
|
176
176
|
name: l.value,
|
|
177
177
|
size: 16,
|
|
178
178
|
billing: u.value
|
|
179
|
-
}, null, 8, ["name", "billing"])])) : e.leftside ===
|
|
179
|
+
}, null, 8, ["name", "billing"])])) : e.leftside === G(Z).AVATAR && e.avatar ? (B(), j(G(c), {
|
|
180
180
|
key: 1,
|
|
181
181
|
name: e.avatar.name,
|
|
182
182
|
src: e.avatar.src,
|
|
183
183
|
badge: e.avatar.badge,
|
|
184
|
-
size:
|
|
184
|
+
size: G(o).SIZE_20,
|
|
185
185
|
showName: !1
|
|
186
186
|
}, null, 8, [
|
|
187
187
|
"name",
|
|
188
188
|
"src",
|
|
189
189
|
"badge",
|
|
190
190
|
"size"
|
|
191
|
-
])) :
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
])) : M("", !0)])) : M("", !0),
|
|
192
|
+
P("div", zn, [
|
|
193
|
+
P("div", Bn, [P("span", { class: R(["s-ui-notification__title s-ui-typography-label-14-medium", { "s-ui-notification__title--truncated": e.truncateTitle }]) }, [U(t.$slots, "title", {}, () => [F(W(e.title), 1)])], 2), e.layout === G(X).VERTICAL && e.closable ? (B(), j(G(E), {
|
|
194
194
|
key: 0,
|
|
195
195
|
class: "s-ui-notification__close",
|
|
196
|
-
appearance:
|
|
197
|
-
variant:
|
|
198
|
-
size:
|
|
196
|
+
appearance: G(w).BARE,
|
|
197
|
+
variant: G(C).NEUTRAL,
|
|
198
|
+
size: G(T).SMALL,
|
|
199
199
|
"aria-label": e.closeAriaLabel,
|
|
200
200
|
icon: "closeMini",
|
|
201
201
|
onClick: v
|
|
@@ -204,87 +204,87 @@ var K = [
|
|
|
204
204
|
"variant",
|
|
205
205
|
"size",
|
|
206
206
|
"aria-label"
|
|
207
|
-
])) :
|
|
208
|
-
f.value ? (
|
|
207
|
+
])) : M("", !0)]),
|
|
208
|
+
f.value ? (B(), N("div", Vn, [e.description || G(r).description ? (B(), N("span", Hn, [U(t.$slots, "description", {}, () => [F(W(e.description), 1)])])) : M("", !0), e.linkText ? (B(), j(G(E), {
|
|
209
209
|
key: 1,
|
|
210
210
|
class: "s-ui-notification__link",
|
|
211
|
-
appearance:
|
|
212
|
-
variant:
|
|
213
|
-
size:
|
|
211
|
+
appearance: G(w).BARE,
|
|
212
|
+
variant: G(C).MAIN,
|
|
213
|
+
size: G(T).SMALL,
|
|
214
214
|
iconRight: e.linkIconRight,
|
|
215
215
|
onClick: y
|
|
216
216
|
}, {
|
|
217
|
-
default:
|
|
217
|
+
default: q(() => [F(W(e.linkText), 1)]),
|
|
218
218
|
_: 1
|
|
219
219
|
}, 8, [
|
|
220
220
|
"appearance",
|
|
221
221
|
"variant",
|
|
222
222
|
"size",
|
|
223
223
|
"iconRight"
|
|
224
|
-
])) :
|
|
225
|
-
e.layout ===
|
|
224
|
+
])) : M("", !0)])) : M("", !0),
|
|
225
|
+
e.layout === G(X).VERTICAL && m.value ? (B(), N("div", Un, [e.showPrimaryButton && e.primaryButtonText ? (B(), j(G(E), {
|
|
226
226
|
key: 0,
|
|
227
227
|
appearance: g.value,
|
|
228
228
|
variant: _.value,
|
|
229
|
-
size:
|
|
229
|
+
size: G(T).SMALL,
|
|
230
230
|
onClick: b
|
|
231
231
|
}, {
|
|
232
|
-
default:
|
|
232
|
+
default: q(() => [F(W(e.primaryButtonText), 1)]),
|
|
233
233
|
_: 1
|
|
234
234
|
}, 8, [
|
|
235
235
|
"appearance",
|
|
236
236
|
"variant",
|
|
237
237
|
"size"
|
|
238
|
-
])) :
|
|
238
|
+
])) : M("", !0), e.showPrimaryButton && e.secondaryButtonText ? (B(), j(G(E), {
|
|
239
239
|
key: 1,
|
|
240
|
-
appearance:
|
|
241
|
-
variant:
|
|
242
|
-
size:
|
|
240
|
+
appearance: G(w).BARE,
|
|
241
|
+
variant: G(C).NEUTRAL,
|
|
242
|
+
size: G(T).SMALL,
|
|
243
243
|
onClick: x
|
|
244
244
|
}, {
|
|
245
|
-
default:
|
|
245
|
+
default: q(() => [F(W(e.secondaryButtonText), 1)]),
|
|
246
246
|
_: 1
|
|
247
247
|
}, 8, [
|
|
248
248
|
"appearance",
|
|
249
249
|
"variant",
|
|
250
250
|
"size"
|
|
251
|
-
])) :
|
|
251
|
+
])) : M("", !0)])) : M("", !0)
|
|
252
252
|
]),
|
|
253
|
-
e.layout ===
|
|
254
|
-
e.showPrimaryButton && e.primaryButtonText ? (
|
|
253
|
+
e.layout === G(X).HORIZONTAL && h.value ? (B(), N("div", Wn, [
|
|
254
|
+
e.showPrimaryButton && e.primaryButtonText ? (B(), j(G(E), {
|
|
255
255
|
key: 0,
|
|
256
256
|
appearance: g.value,
|
|
257
257
|
variant: _.value,
|
|
258
|
-
size:
|
|
258
|
+
size: G(T).SMALL,
|
|
259
259
|
onClick: b
|
|
260
260
|
}, {
|
|
261
|
-
default:
|
|
261
|
+
default: q(() => [F(W(e.primaryButtonText), 1)]),
|
|
262
262
|
_: 1
|
|
263
263
|
}, 8, [
|
|
264
264
|
"appearance",
|
|
265
265
|
"variant",
|
|
266
266
|
"size"
|
|
267
|
-
])) :
|
|
268
|
-
e.showPrimaryButton && e.secondaryButtonText ? (
|
|
267
|
+
])) : M("", !0),
|
|
268
|
+
e.showPrimaryButton && e.secondaryButtonText ? (B(), j(G(E), {
|
|
269
269
|
key: 1,
|
|
270
|
-
appearance:
|
|
271
|
-
variant:
|
|
272
|
-
size:
|
|
270
|
+
appearance: G(w).OUTLINED,
|
|
271
|
+
variant: G(C).MAIN,
|
|
272
|
+
size: G(T).SMALL,
|
|
273
273
|
onClick: x
|
|
274
274
|
}, {
|
|
275
|
-
default:
|
|
275
|
+
default: q(() => [F(W(e.secondaryButtonText), 1)]),
|
|
276
276
|
_: 1
|
|
277
277
|
}, 8, [
|
|
278
278
|
"appearance",
|
|
279
279
|
"variant",
|
|
280
280
|
"size"
|
|
281
|
-
])) :
|
|
282
|
-
e.layout ===
|
|
281
|
+
])) : M("", !0),
|
|
282
|
+
e.layout === G(X).HORIZONTAL && e.closable ? (B(), j(G(E), {
|
|
283
283
|
key: 2,
|
|
284
284
|
class: "s-ui-notification__close",
|
|
285
|
-
appearance:
|
|
286
|
-
variant:
|
|
287
|
-
size:
|
|
285
|
+
appearance: G(w).BARE,
|
|
286
|
+
variant: G(C).NEUTRAL,
|
|
287
|
+
size: G(T).SMALL,
|
|
288
288
|
"aria-label": e.closeAriaLabel,
|
|
289
289
|
icon: "closeMini",
|
|
290
290
|
onClick: v
|
|
@@ -293,16 +293,16 @@ var K = [
|
|
|
293
293
|
"variant",
|
|
294
294
|
"size",
|
|
295
295
|
"aria-label"
|
|
296
|
-
])) :
|
|
297
|
-
])) :
|
|
298
|
-
])], 14,
|
|
296
|
+
])) : M("", !0)
|
|
297
|
+
])) : M("", !0)
|
|
298
|
+
])], 14, Fn));
|
|
299
299
|
}
|
|
300
|
-
}),
|
|
300
|
+
}), Kn = /* @__PURE__ */ L({
|
|
301
301
|
__name: "SBanner",
|
|
302
302
|
props: {
|
|
303
|
-
type: { default: () =>
|
|
304
|
-
layout: { default: () =>
|
|
305
|
-
leftside: { default: () =>
|
|
303
|
+
type: { default: () => Y.INFO_ACCENT },
|
|
304
|
+
layout: { default: () => X.HORIZONTAL },
|
|
305
|
+
leftside: { default: () => Z.ICON },
|
|
306
306
|
elevated: {
|
|
307
307
|
type: Boolean,
|
|
308
308
|
default: !1
|
|
@@ -341,14 +341,14 @@ var K = [
|
|
|
341
341
|
"secondaryAction"
|
|
342
342
|
],
|
|
343
343
|
setup(e, { emit: t }) {
|
|
344
|
-
let n = t, r =
|
|
345
|
-
return (t, a) => (
|
|
346
|
-
class:
|
|
344
|
+
let n = t, r = K(), i = A(() => ({ "s-ui-banner--elevated": e.elevated }));
|
|
345
|
+
return (t, a) => (B(), j(Gn, {
|
|
346
|
+
class: R(["s-ui-banner", i.value]),
|
|
347
347
|
"data-qa": "ui:banner",
|
|
348
348
|
type: e.type,
|
|
349
349
|
layout: e.layout,
|
|
350
350
|
leftside: e.leftside,
|
|
351
|
-
surface:
|
|
351
|
+
surface: G(Mn).BANNER,
|
|
352
352
|
title: e.title,
|
|
353
353
|
description: e.description,
|
|
354
354
|
linkText: e.linkText,
|
|
@@ -367,13 +367,13 @@ var K = [
|
|
|
367
367
|
onLinkClick: a[1] ||= (e) => n("linkClick"),
|
|
368
368
|
onPrimaryAction: a[2] ||= (e) => n("primaryAction"),
|
|
369
369
|
onSecondaryAction: a[3] ||= (e) => n("secondaryAction")
|
|
370
|
-
},
|
|
370
|
+
}, an({ _: 2 }, [G(r).title ? {
|
|
371
371
|
name: "title",
|
|
372
|
-
fn:
|
|
372
|
+
fn: q(() => [U(t.$slots, "title")]),
|
|
373
373
|
key: "0"
|
|
374
|
-
} : void 0,
|
|
374
|
+
} : void 0, G(r).description ? {
|
|
375
375
|
name: "description",
|
|
376
|
-
fn:
|
|
376
|
+
fn: q(() => [U(t.$slots, "description")]),
|
|
377
377
|
key: "1"
|
|
378
378
|
} : void 0]), 1032, [
|
|
379
379
|
"class",
|
|
@@ -397,12 +397,12 @@ var K = [
|
|
|
397
397
|
"truncateTitle"
|
|
398
398
|
]));
|
|
399
399
|
}
|
|
400
|
-
}),
|
|
400
|
+
}), qn = /* @__PURE__ */ L({
|
|
401
401
|
__name: "SToast",
|
|
402
402
|
props: {
|
|
403
|
-
type: { default: () =>
|
|
404
|
-
layout: { default: () =>
|
|
405
|
-
leftside: { default: () =>
|
|
403
|
+
type: { default: () => Y.INFO_ACCENT },
|
|
404
|
+
layout: { default: () => X.HORIZONTAL },
|
|
405
|
+
leftside: { default: () => Z.ICON },
|
|
406
406
|
title: {},
|
|
407
407
|
description: {},
|
|
408
408
|
linkText: {},
|
|
@@ -432,14 +432,14 @@ var K = [
|
|
|
432
432
|
"secondaryAction"
|
|
433
433
|
],
|
|
434
434
|
setup(e, { emit: t }) {
|
|
435
|
-
let n = t, r =
|
|
436
|
-
return (t, a) => (
|
|
435
|
+
let n = t, r = K(), i = A(() => e.width ?? 360);
|
|
436
|
+
return (t, a) => (B(), j(Gn, {
|
|
437
437
|
class: "s-ui-toast",
|
|
438
438
|
"data-qa": "ui:toast",
|
|
439
439
|
type: e.type,
|
|
440
440
|
layout: e.layout,
|
|
441
441
|
leftside: e.leftside,
|
|
442
|
-
surface:
|
|
442
|
+
surface: G(Mn).TOAST,
|
|
443
443
|
title: e.title,
|
|
444
444
|
description: e.description,
|
|
445
445
|
linkText: e.linkText,
|
|
@@ -456,13 +456,13 @@ var K = [
|
|
|
456
456
|
onLinkClick: a[1] ||= (e) => n("linkClick"),
|
|
457
457
|
onPrimaryAction: a[2] ||= (e) => n("primaryAction"),
|
|
458
458
|
onSecondaryAction: a[3] ||= (e) => n("secondaryAction")
|
|
459
|
-
},
|
|
459
|
+
}, an({ _: 2 }, [G(r).title ? {
|
|
460
460
|
name: "title",
|
|
461
|
-
fn:
|
|
461
|
+
fn: q(() => [U(t.$slots, "title")]),
|
|
462
462
|
key: "0"
|
|
463
|
-
} : void 0,
|
|
463
|
+
} : void 0, G(r).description ? {
|
|
464
464
|
name: "description",
|
|
465
|
-
fn:
|
|
465
|
+
fn: q(() => [U(t.$slots, "description")]),
|
|
466
466
|
key: "1"
|
|
467
467
|
} : void 0]), 1032, [
|
|
468
468
|
"type",
|
|
@@ -483,13 +483,13 @@ var K = [
|
|
|
483
483
|
"truncateTitle"
|
|
484
484
|
]));
|
|
485
485
|
}
|
|
486
|
-
}),
|
|
486
|
+
}), Jn = .05, Yn = [
|
|
487
487
|
"data-mounted",
|
|
488
488
|
"data-front",
|
|
489
489
|
"data-expanded",
|
|
490
490
|
"data-removed",
|
|
491
491
|
"data-visible"
|
|
492
|
-
],
|
|
492
|
+
], Xn = /* @__PURE__ */ L({
|
|
493
493
|
__name: "SToastProviderToast",
|
|
494
494
|
props: {
|
|
495
495
|
index: {},
|
|
@@ -502,7 +502,7 @@ var K = [
|
|
|
502
502
|
},
|
|
503
503
|
emits: ["heightChange"],
|
|
504
504
|
setup(e, { emit: t }) {
|
|
505
|
-
let n = t, r =
|
|
505
|
+
let n = t, r = V(null), i = V(0), a = V(!1), o = A(() => e.index === 0), s = A(() => 1 - e.index * Jn), c = A(() => ({
|
|
506
506
|
"--s-ui-toast-provider-toasts-before": String(e.index),
|
|
507
507
|
"--s-ui-toast-provider-lift-amount": `${e.stackPeek * -1}px`,
|
|
508
508
|
"--s-ui-toast-provider-front-toast-height": `${e.frontToastHeight}px`,
|
|
@@ -511,95 +511,95 @@ var K = [
|
|
|
511
511
|
"--s-ui-toast-provider-stack-scale": String(s.value),
|
|
512
512
|
zIndex: String(1e3 - e.index)
|
|
513
513
|
}));
|
|
514
|
-
return
|
|
514
|
+
return On(r, (e) => {
|
|
515
515
|
let t = e[0]?.contentRect.height ?? 0;
|
|
516
516
|
t !== i.value && (i.value = t, n("heightChange", t));
|
|
517
|
-
}),
|
|
517
|
+
}), cn(() => {
|
|
518
518
|
requestAnimationFrame(() => {
|
|
519
519
|
requestAnimationFrame(() => {
|
|
520
520
|
a.value = !0;
|
|
521
521
|
});
|
|
522
522
|
});
|
|
523
|
-
}), (t, n) => (
|
|
523
|
+
}), (t, n) => (B(), N("div", {
|
|
524
524
|
class: "s-ui-toast-provider__toast",
|
|
525
525
|
"data-mounted": a.value,
|
|
526
526
|
"data-front": o.value,
|
|
527
527
|
"data-expanded": e.expanded,
|
|
528
528
|
"data-removed": e.removed,
|
|
529
529
|
"data-visible": e.visible,
|
|
530
|
-
style:
|
|
531
|
-
}, [
|
|
530
|
+
style: z(c.value)
|
|
531
|
+
}, [P("div", {
|
|
532
532
|
ref_key: "contentRef",
|
|
533
533
|
ref: r,
|
|
534
534
|
class: "s-ui-toast-provider__toast-content"
|
|
535
|
-
}, [
|
|
535
|
+
}, [U(t.$slots, "default")], 512)], 12, Yn));
|
|
536
536
|
}
|
|
537
|
-
}),
|
|
538
|
-
let n =
|
|
539
|
-
return n > 1e4 ?
|
|
540
|
-
},
|
|
541
|
-
type:
|
|
542
|
-
layout:
|
|
543
|
-
leftside:
|
|
537
|
+
}), Zn = 4e3, Qn = 1e4, $n = 50, er = (e, t) => {
|
|
538
|
+
let n = Zn + (e.length + (t?.length ?? 0)) * 50;
|
|
539
|
+
return n > 1e4 ? Qn : n;
|
|
540
|
+
}, Q = un([]), $ = /* @__PURE__ */ new Map(), tr = 0, nr = {
|
|
541
|
+
type: Y.INFO_ACCENT,
|
|
542
|
+
layout: X.HORIZONTAL,
|
|
543
|
+
leftside: Z.ICON,
|
|
544
544
|
showPrimaryButton: !1,
|
|
545
545
|
closable: !0
|
|
546
|
-
},
|
|
547
|
-
let t =
|
|
548
|
-
t && (window.clearTimeout(t),
|
|
549
|
-
},
|
|
550
|
-
|
|
551
|
-
let t = e.duration === void 0 ?
|
|
546
|
+
}, rr = () => `toast-${Date.now()}-${++tr}`, ir = (e) => {
|
|
547
|
+
let t = $.get(e);
|
|
548
|
+
t && (window.clearTimeout(t), $.delete(e));
|
|
549
|
+
}, ar = (e) => {
|
|
550
|
+
ir(e.id);
|
|
551
|
+
let t = e.duration === void 0 ? er(e.title, e.description) : e.duration;
|
|
552
552
|
if (t > 0) {
|
|
553
553
|
let n = window.setTimeout(() => {
|
|
554
|
-
|
|
554
|
+
or(e.id);
|
|
555
555
|
}, t);
|
|
556
|
-
|
|
556
|
+
$.set(e.id, n);
|
|
557
557
|
}
|
|
558
|
-
},
|
|
559
|
-
let t =
|
|
558
|
+
}, or = (e) => {
|
|
559
|
+
let t = Q.value.findIndex((t) => t.id === e);
|
|
560
560
|
if (t === -1) return;
|
|
561
|
-
let n =
|
|
562
|
-
n && (
|
|
563
|
-
},
|
|
564
|
-
|
|
565
|
-
},
|
|
566
|
-
|
|
567
|
-
}), e.slice(0, 3)),
|
|
568
|
-
let t = e.id ??
|
|
569
|
-
...
|
|
561
|
+
let n = Q.value[t];
|
|
562
|
+
n && (ir(e), n.onClose && n.onClose(), Q.value = Q.value.filter((t) => t.id !== e));
|
|
563
|
+
}, sr = () => {
|
|
564
|
+
$.forEach((e) => window.clearTimeout(e)), $.clear(), Q.value = [];
|
|
565
|
+
}, cr = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
|
|
566
|
+
ir(e.id);
|
|
567
|
+
}), e.slice(0, 3)), lr = (e) => {
|
|
568
|
+
let t = e.id ?? rr(), n = {
|
|
569
|
+
...nr,
|
|
570
570
|
...e,
|
|
571
571
|
id: t
|
|
572
|
-
}, r =
|
|
572
|
+
}, r = Q.value.findIndex((e) => e.id === t);
|
|
573
573
|
if (r > -1) {
|
|
574
|
-
let e = [...
|
|
575
|
-
e[r] = n,
|
|
576
|
-
} else
|
|
577
|
-
return
|
|
578
|
-
},
|
|
579
|
-
let n =
|
|
574
|
+
let e = [...Q.value];
|
|
575
|
+
e[r] = n, Q.value = cr(e);
|
|
576
|
+
} else Q.value = cr([n, ...Q.value]);
|
|
577
|
+
return ar(n), t;
|
|
578
|
+
}, ur = (e, t) => {
|
|
579
|
+
let n = Q.value.findIndex((t) => t.id === e);
|
|
580
580
|
if (n === -1) return;
|
|
581
|
-
let r =
|
|
581
|
+
let r = Q.value[n];
|
|
582
582
|
if (!r) return;
|
|
583
583
|
let i = {
|
|
584
584
|
...r,
|
|
585
585
|
...t,
|
|
586
586
|
id: r.id
|
|
587
|
-
}, a = [...
|
|
588
|
-
a[n] = i,
|
|
589
|
-
},
|
|
590
|
-
toasts:
|
|
591
|
-
show:
|
|
592
|
-
hide:
|
|
593
|
-
hideAll:
|
|
594
|
-
update:
|
|
595
|
-
}),
|
|
587
|
+
}, a = [...Q.value];
|
|
588
|
+
a[n] = i, Q.value = a, ar(i);
|
|
589
|
+
}, dr = () => ({
|
|
590
|
+
toasts: Q,
|
|
591
|
+
show: lr,
|
|
592
|
+
hide: or,
|
|
593
|
+
hideAll: sr,
|
|
594
|
+
update: ur
|
|
595
|
+
}), fr = /* @__PURE__ */ L({
|
|
596
596
|
__name: "SToastProvider",
|
|
597
597
|
setup(e) {
|
|
598
|
-
let { toasts: t, hide: n } =
|
|
599
|
-
|
|
598
|
+
let { toasts: t, hide: n } = dr(), r = A(() => t.value.slice(0, 3)), i = V(!1), a = un({}), o = V(/* @__PURE__ */ new Set()), s = A(() => t.value[0] ?? null), c = A(() => s.value ? a.value[s.value.id] ?? 0 : 0), l = V(0), u = A(() => c.value > 0 ? c.value : l.value);
|
|
599
|
+
mn(c, (e) => {
|
|
600
600
|
e > 0 && (l.value = e);
|
|
601
601
|
});
|
|
602
|
-
let d =
|
|
602
|
+
let d = A(() => {
|
|
603
603
|
if (r.value.length === 0) return {};
|
|
604
604
|
if (i.value) return { height: `${r.value.reduce((e, t, n) => {
|
|
605
605
|
let r = a.value[t.id] ?? 0, i = n > 0 ? 4 : 0;
|
|
@@ -638,32 +638,32 @@ var K = [
|
|
|
638
638
|
}, b = (e) => {
|
|
639
639
|
e.onSecondaryAction && e.onSecondaryAction();
|
|
640
640
|
};
|
|
641
|
-
return (e, t) => (
|
|
641
|
+
return (e, t) => (B(), j(rn, { to: "body" }, [P("div", {
|
|
642
642
|
class: "s-ui-toast-provider",
|
|
643
643
|
onMouseenter: m,
|
|
644
644
|
onMouseleave: h
|
|
645
|
-
}, [r.value.length > 0 ? (
|
|
645
|
+
}, [r.value.length > 0 ? (B(), N("div", {
|
|
646
646
|
key: 0,
|
|
647
647
|
class: "s-ui-toast-provider__list",
|
|
648
|
-
style:
|
|
649
|
-
}, [(
|
|
648
|
+
style: z(d.value)
|
|
649
|
+
}, [(B(!0), N(k, null, H(r.value, (t, n) => (B(), j(Xn, {
|
|
650
650
|
key: t.id,
|
|
651
651
|
index: n,
|
|
652
652
|
expanded: i.value,
|
|
653
653
|
"front-toast-height": u.value,
|
|
654
|
-
"stack-peek":
|
|
654
|
+
"stack-peek": G(10),
|
|
655
655
|
removed: p(t.id),
|
|
656
|
-
visible: n <
|
|
656
|
+
visible: n < G(3),
|
|
657
657
|
"offset-y": f(n),
|
|
658
658
|
onHeightChange: (e) => g(t.id, e)
|
|
659
659
|
}, {
|
|
660
|
-
default:
|
|
660
|
+
default: q(() => [U(e.$slots, "toast", { toast: t }, () => [t.component ? (B(), j(ln(t.component), sn({
|
|
661
661
|
key: 0,
|
|
662
662
|
ref_for: !0
|
|
663
663
|
}, t.componentProps, {
|
|
664
664
|
toast: t,
|
|
665
665
|
onClose: (e) => _(t.id)
|
|
666
|
-
}), null, 16, ["toast", "onClose"])) : (
|
|
666
|
+
}), null, 16, ["toast", "onClose"])) : (B(), j(G(qn), {
|
|
667
667
|
key: 1,
|
|
668
668
|
type: t.type,
|
|
669
669
|
layout: t.layout,
|
|
@@ -715,12 +715,12 @@ var K = [
|
|
|
715
715
|
"visible",
|
|
716
716
|
"offset-y",
|
|
717
717
|
"onHeightChange"
|
|
718
|
-
]))), 128))], 4)) :
|
|
718
|
+
]))), 128))], 4)) : M("", !0)], 32)]));
|
|
719
719
|
}
|
|
720
|
-
}),
|
|
720
|
+
}), pr = 4, mr = 4, hr = 1, gr = "400 12px var(--s-ui-font-family-label)", _r = 4, vr = .5, yr = (e, t, n, r, i, a) => {
|
|
721
721
|
let o = Math.min(a, r / 2, i / 2);
|
|
722
722
|
e.beginPath(), e.moveTo(t + o, n), e.lineTo(t + r - o, n), e.arcTo(t + r, n, t + r, n + o, o), e.lineTo(t + r, n + i - o), e.arcTo(t + r, n + i, t + r - o, n + i, o), e.lineTo(t + o, n + i), e.arcTo(t, n + i, t, n + i - o, o), e.lineTo(t, n + o), e.arcTo(t, n, t + o, n, o), e.closePath();
|
|
723
|
-
},
|
|
723
|
+
}, br = (e) => {
|
|
724
724
|
let t = e.getProps([
|
|
725
725
|
"x",
|
|
726
726
|
"y",
|
|
@@ -731,39 +731,42 @@ var K = [
|
|
|
731
731
|
width: Math.abs(n - i),
|
|
732
732
|
centerY: r
|
|
733
733
|
};
|
|
734
|
-
},
|
|
735
|
-
let a =
|
|
734
|
+
}, xr = (e, t, n, r, i) => {
|
|
735
|
+
let a = br(t);
|
|
736
736
|
if (!a) return;
|
|
737
|
-
let o = i ? i(n) : `${n}`, s = e.measureText(o).width +
|
|
738
|
-
if (a.width < s +
|
|
737
|
+
let o = i ? i(n) : `${n}`, s = e.measureText(o).width + pr * 2;
|
|
738
|
+
if (a.width < s + _r * 2) return;
|
|
739
739
|
let c = a.left + a.width / 2;
|
|
740
|
-
|
|
741
|
-
},
|
|
740
|
+
yr(e, c - s / 2, a.centerY - 20 / 2, s, 20, mr), e.fillStyle = r.background, e.fill(), e.lineWidth = hr, e.strokeStyle = r.border, e.stroke(), e.fillStyle = r.text, e.fillText(o, c, a.centerY);
|
|
741
|
+
}, Sr = (e, t) => ({
|
|
742
742
|
id: "segmentedBarBadge",
|
|
743
743
|
afterDatasetsDraw(n) {
|
|
744
744
|
let r = {
|
|
745
|
-
background: D
|
|
746
|
-
border: D
|
|
747
|
-
text: D
|
|
745
|
+
background: O(D.pieBadgeBackground, e),
|
|
746
|
+
border: O(D.pieBadgeBorder, e),
|
|
747
|
+
text: O(D.pieBadgeText, e)
|
|
748
748
|
}, { ctx: i } = n;
|
|
749
|
-
i.save(), i.font =
|
|
750
|
-
|
|
751
|
-
|
|
749
|
+
i.save(), i.font = gr, i.textAlign = "center", i.textBaseline = "middle";
|
|
750
|
+
let a = ft(n);
|
|
751
|
+
n.data.datasets.forEach((e, o) => {
|
|
752
|
+
let s = n.getDatasetMeta(o)?.data[0], c = e.data[0];
|
|
753
|
+
s && typeof c == "number" && c > 0 && (i.globalAlpha = a !== null && a.datasetIndex !== o ? vr : 1, xr(i, s, c, r, t));
|
|
752
754
|
}), i.restore();
|
|
753
755
|
}
|
|
754
|
-
}),
|
|
756
|
+
}), Cr = 40, wr = 4, Tr = 1, Er = [
|
|
755
757
|
"mousemove",
|
|
756
758
|
"mouseout",
|
|
757
759
|
"click",
|
|
758
760
|
"touchstart",
|
|
759
761
|
"touchmove"
|
|
760
|
-
],
|
|
762
|
+
], Dr = ({ segments: e, segmentColors: t, colorHostElement: n, skeleton: r = !1, formatValue: i, onSegmentClick: a, onSegmentHover: o, resolveTooltipLines: s }) => {
|
|
761
763
|
if (e.length === 0) return null;
|
|
762
|
-
let
|
|
764
|
+
let c = O("--s-ui-color-surface-primary", n), l = e.reduce((e, t) => e + t.value, 0), u = ht({
|
|
763
765
|
kind: "series",
|
|
764
766
|
skeleton: r,
|
|
765
767
|
colorHostElement: n,
|
|
766
|
-
onIndexClick: a
|
|
768
|
+
onIndexClick: a,
|
|
769
|
+
onHoverIndexChange: o
|
|
767
770
|
});
|
|
768
771
|
return {
|
|
769
772
|
type: "bar",
|
|
@@ -774,14 +777,14 @@ var K = [
|
|
|
774
777
|
data: [e.value],
|
|
775
778
|
backgroundColor: t[n],
|
|
776
779
|
hoverBackgroundColor: t[n],
|
|
777
|
-
borderColor:
|
|
780
|
+
borderColor: c,
|
|
778
781
|
borderWidth: {
|
|
779
|
-
left:
|
|
780
|
-
right:
|
|
782
|
+
left: Tr,
|
|
783
|
+
right: Tr
|
|
781
784
|
},
|
|
782
785
|
borderSkipped: !1,
|
|
783
|
-
borderRadius:
|
|
784
|
-
barThickness:
|
|
786
|
+
borderRadius: wr,
|
|
787
|
+
barThickness: Cr,
|
|
785
788
|
stack: "track"
|
|
786
789
|
}))
|
|
787
790
|
},
|
|
@@ -790,24 +793,34 @@ var K = [
|
|
|
790
793
|
responsive: !0,
|
|
791
794
|
maintainAspectRatio: !1,
|
|
792
795
|
layout: { padding: 0 },
|
|
793
|
-
events: r ? [] :
|
|
794
|
-
onHover:
|
|
795
|
-
onClick:
|
|
796
|
+
events: r ? [] : Er,
|
|
797
|
+
onHover: u.onHover,
|
|
798
|
+
onClick: u.onClick,
|
|
796
799
|
hover: r ? void 0 : {
|
|
797
800
|
mode: "nearest",
|
|
798
801
|
intersect: !0
|
|
799
802
|
},
|
|
800
|
-
elements: r ? void 0 : { bar: { hoverBorderColor:
|
|
803
|
+
elements: r ? void 0 : { bar: { hoverBorderColor: c } },
|
|
801
804
|
plugins: {
|
|
802
805
|
legend: { display: !1 },
|
|
803
|
-
tooltip: {
|
|
806
|
+
tooltip: {
|
|
807
|
+
enabled: !r && s !== void 0,
|
|
808
|
+
backgroundColor: O(D.tooltipBackground, n),
|
|
809
|
+
titleColor: O(D.tooltipText, n),
|
|
810
|
+
bodyColor: O(D.tooltipText, n),
|
|
811
|
+
displayColors: !1,
|
|
812
|
+
callbacks: {
|
|
813
|
+
title: () => "",
|
|
814
|
+
label: (e) => s?.(e.datasetIndex) ?? []
|
|
815
|
+
}
|
|
816
|
+
}
|
|
804
817
|
},
|
|
805
818
|
scales: {
|
|
806
819
|
x: {
|
|
807
820
|
display: !1,
|
|
808
821
|
stacked: !0,
|
|
809
822
|
min: 0,
|
|
810
|
-
max:
|
|
823
|
+
max: l
|
|
811
824
|
},
|
|
812
825
|
y: {
|
|
813
826
|
display: !1,
|
|
@@ -815,9 +828,9 @@ var K = [
|
|
|
815
828
|
}
|
|
816
829
|
}
|
|
817
830
|
},
|
|
818
|
-
plugins: [...r ? [] : [
|
|
831
|
+
plugins: [...r ? [] : [Sr(n, i)], ...u.plugins]
|
|
819
832
|
};
|
|
820
|
-
},
|
|
833
|
+
}, Or = [
|
|
821
834
|
4,
|
|
822
835
|
1,
|
|
823
836
|
2,
|
|
@@ -829,9 +842,9 @@ var K = [
|
|
|
829
842
|
].map((e, t) => ({
|
|
830
843
|
label: `Series ${t + 1}`,
|
|
831
844
|
value: e
|
|
832
|
-
})),
|
|
845
|
+
})), kr = /* @__PURE__ */ L({
|
|
833
846
|
__name: "SChartSegmentedBar",
|
|
834
|
-
props: {
|
|
847
|
+
props: /*@__PURE__*/ on({
|
|
835
848
|
segments: { default: () => [] },
|
|
836
849
|
showLegend: {
|
|
837
850
|
type: Boolean,
|
|
@@ -841,91 +854,133 @@ var K = [
|
|
|
841
854
|
type: Boolean,
|
|
842
855
|
default: !1
|
|
843
856
|
},
|
|
844
|
-
formatValue: { type: Function }
|
|
845
|
-
|
|
846
|
-
|
|
857
|
+
formatValue: { type: Function },
|
|
858
|
+
selectable: {
|
|
859
|
+
type: Boolean,
|
|
860
|
+
default: !1
|
|
861
|
+
},
|
|
862
|
+
multiple: {
|
|
863
|
+
type: Boolean,
|
|
864
|
+
default: !1
|
|
865
|
+
},
|
|
866
|
+
legendSize: { default: () => vt.SMALL },
|
|
867
|
+
formatTooltip: { type: Function }
|
|
868
|
+
}, {
|
|
869
|
+
selectedIndex: { default: null },
|
|
870
|
+
selectedIndexModifiers: {},
|
|
871
|
+
selectedIndexes: { default: () => [] },
|
|
872
|
+
selectedIndexesModifiers: {}
|
|
873
|
+
}),
|
|
874
|
+
emits: /*@__PURE__*/ on(["segmentClick"], ["update:selectedIndex", "update:selectedIndexes"]),
|
|
847
875
|
setup(e, { expose: t, emit: n }) {
|
|
848
|
-
let r =
|
|
876
|
+
let r = fn(e, "selectedIndex"), i = fn(e, "selectedIndexes"), a = n, o = dt, s = pn("chartRootRef"), c = pn("chartCanvasRef"), l = A(() => e.loading ? Or : e.segments), u = A(() => l.value.map((t, n) => jn(n, s.value, t.fillColor, e.loading))), d = A(() => l.value.map((e, t) => ({
|
|
849
877
|
segment: e,
|
|
850
878
|
segmentIndex: t
|
|
851
|
-
})).filter(({ segment: e }) => e.value > 0)),
|
|
879
|
+
})).filter(({ segment: e }) => e.value > 0)), f = A(() => d.value.map(({ segment: e }) => e)), p = A(() => d.value.map(({ segmentIndex: e }) => _.value && !i.value.includes(e) ? mt(s.value) : u.value[e] ?? "")), m = A(() => {
|
|
852
880
|
let e = /* @__PURE__ */ new Map();
|
|
853
|
-
return
|
|
881
|
+
return d.value.forEach(({ segmentIndex: t }, n) => {
|
|
854
882
|
e.set(t, n);
|
|
855
883
|
}), e;
|
|
856
|
-
}),
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
884
|
+
}), h = V(null), g = (t) => {
|
|
885
|
+
if (e.multiple) {
|
|
886
|
+
i.value = i.value.includes(t) ? i.value.filter((e) => e !== t) : [...i.value, t];
|
|
887
|
+
return;
|
|
888
|
+
}
|
|
889
|
+
r.value = r.value === t ? null : t;
|
|
890
|
+
}, _ = A(() => e.selectable && e.multiple && i.value.length > 0), v = (t) => {
|
|
891
|
+
let n = d.value[t];
|
|
892
|
+
n && (a("segmentClick", n.segmentIndex, n.segment), e.selectable && g(n.segmentIndex));
|
|
893
|
+
}, y = (e) => {
|
|
894
|
+
h.value = e === null ? null : d.value[e]?.segmentIndex ?? null;
|
|
895
|
+
}, b = kt("onSegmentClick"), x = (t) => {
|
|
896
|
+
let n = d.value[t];
|
|
897
|
+
return n && e.formatTooltip ? e.formatTooltip(n.segment, n.segmentIndex) : [];
|
|
898
|
+
}, ee = A(() => e.selectable ? e.multiple ? h.value : h.value ?? r.value : null), S = A(() => _.value && h.value === null ? i.value : []), C = A(() => Dr({
|
|
899
|
+
segments: f.value,
|
|
900
|
+
segmentColors: p.value,
|
|
901
|
+
colorHostElement: s.value,
|
|
863
902
|
skeleton: e.loading,
|
|
864
903
|
formatValue: e.formatValue,
|
|
865
|
-
onSegmentClick:
|
|
866
|
-
|
|
904
|
+
onSegmentClick: e.selectable || b() ? v : void 0,
|
|
905
|
+
onSegmentHover: e.selectable ? y : void 0,
|
|
906
|
+
resolveTooltipLines: e.formatTooltip ? x : void 0
|
|
907
|
+
})), w = A(() => l.value.map((e, t) => ({
|
|
867
908
|
label: e.label,
|
|
868
|
-
color:
|
|
869
|
-
}))), { chartInstance:
|
|
870
|
-
canvasRef:
|
|
871
|
-
config:
|
|
872
|
-
enabled:
|
|
873
|
-
}), { exportImage:
|
|
874
|
-
chartInstance:
|
|
875
|
-
canvasRef:
|
|
876
|
-
colorHostElement:
|
|
877
|
-
}),
|
|
878
|
-
|
|
909
|
+
color: u.value[t] ?? ""
|
|
910
|
+
}))), { chartInstance: T } = pt({
|
|
911
|
+
canvasRef: c,
|
|
912
|
+
config: C,
|
|
913
|
+
enabled: A(() => e.loading || f.value.length > 0)
|
|
914
|
+
}), { exportImage: E, handleLegendItemHover: te, pinElement: ne } = gt({
|
|
915
|
+
chartInstance: T,
|
|
916
|
+
canvasRef: c,
|
|
917
|
+
colorHostElement: s
|
|
918
|
+
}), re = (e) => e === null ? null : m.value.get(e) ?? null, ie = (t) => {
|
|
919
|
+
e.selectable && (h.value = t), te(re(t));
|
|
879
920
|
};
|
|
880
|
-
return
|
|
921
|
+
return mn([T, r], () => {
|
|
922
|
+
e.selectable && !e.loading && ne(re(r.value));
|
|
923
|
+
}), t({ exportImage: E }), (t, n) => (B(), N("div", {
|
|
881
924
|
ref_key: "chartRootRef",
|
|
882
|
-
ref:
|
|
883
|
-
class:
|
|
925
|
+
ref: s,
|
|
926
|
+
class: R(["s-ui-chart-segmented-bar", { "s-ui-chart-segmented-bar--skeleton": e.loading }]),
|
|
884
927
|
"data-qa": "ui:chart-segmented-bar"
|
|
885
|
-
}, [
|
|
928
|
+
}, [P("div", {
|
|
929
|
+
class: "s-ui-chart-segmented-bar__canvas-wrap",
|
|
930
|
+
onMouseleave: n[0] ||= (e) => y(null)
|
|
931
|
+
}, [I(G(_t), {
|
|
886
932
|
loading: e.loading,
|
|
887
|
-
type:
|
|
933
|
+
type: G(o).CARTESIAN
|
|
888
934
|
}, {
|
|
889
|
-
default:
|
|
935
|
+
default: q(() => [P("canvas", {
|
|
890
936
|
ref_key: "chartCanvasRef",
|
|
891
|
-
ref:
|
|
937
|
+
ref: c,
|
|
892
938
|
class: "s-ui-chart-segmented-bar__canvas"
|
|
893
939
|
}, null, 512)]),
|
|
894
940
|
_: 1
|
|
895
|
-
}, 8, ["loading", "type"])]), e.showLegend &&
|
|
941
|
+
}, 8, ["loading", "type"])], 32), e.showLegend && w.value.length ? (B(), j(G(yt), {
|
|
896
942
|
key: 0,
|
|
897
|
-
items:
|
|
943
|
+
items: w.value,
|
|
898
944
|
disabled: e.loading,
|
|
899
945
|
interactive: !e.loading,
|
|
900
|
-
|
|
946
|
+
size: e.legendSize,
|
|
947
|
+
selectable: e.selectable && !e.loading,
|
|
948
|
+
"active-index": ee.value,
|
|
949
|
+
"active-indexes": S.value,
|
|
950
|
+
onItemHover: ie,
|
|
951
|
+
onItemClick: g
|
|
901
952
|
}, null, 8, [
|
|
902
953
|
"items",
|
|
903
954
|
"disabled",
|
|
904
|
-
"interactive"
|
|
905
|
-
|
|
955
|
+
"interactive",
|
|
956
|
+
"size",
|
|
957
|
+
"selectable",
|
|
958
|
+
"active-index",
|
|
959
|
+
"active-indexes"
|
|
960
|
+
])) : M("", !0)], 2));
|
|
906
961
|
}
|
|
907
|
-
}),
|
|
962
|
+
}), Ar = {
|
|
908
963
|
key: 0,
|
|
909
964
|
class: "s-ui-chart-widget__header"
|
|
910
|
-
},
|
|
965
|
+
}, jr = {
|
|
911
966
|
key: 0,
|
|
912
967
|
class: "s-ui-chart-widget__title-skeleton",
|
|
913
968
|
"aria-hidden": "true"
|
|
914
|
-
},
|
|
969
|
+
}, Mr = {
|
|
915
970
|
key: 1,
|
|
916
971
|
class: "s-ui-chart-widget__heading"
|
|
917
|
-
},
|
|
972
|
+
}, Nr = { class: "s-ui-chart-widget__title s-ui-typography-label-16-medium" }, Pr = {
|
|
918
973
|
key: 0,
|
|
919
974
|
class: "s-ui-chart-widget__subtitle s-ui-typography-body-12-regular"
|
|
920
|
-
},
|
|
975
|
+
}, Fr = { class: "s-ui-chart-widget__controls" }, Ir = {
|
|
921
976
|
key: 1,
|
|
922
977
|
class: "s-ui-chart-widget__content"
|
|
923
|
-
},
|
|
978
|
+
}, Lr = {
|
|
924
979
|
key: 2,
|
|
925
980
|
class: "s-ui-chart-widget__footer"
|
|
926
|
-
},
|
|
981
|
+
}, Rr = /* @__PURE__ */ L({
|
|
927
982
|
__name: "SChartWidget",
|
|
928
|
-
props: /*@__PURE__*/
|
|
983
|
+
props: /*@__PURE__*/ on({
|
|
929
984
|
title: { default: "" },
|
|
930
985
|
subtitle: { default: "" },
|
|
931
986
|
collapsible: {
|
|
@@ -949,17 +1004,17 @@ var K = [
|
|
|
949
1004
|
}),
|
|
950
1005
|
emits: ["update:collapsed"],
|
|
951
1006
|
setup(e) {
|
|
952
|
-
let t =
|
|
953
|
-
return (n, r) => (
|
|
954
|
-
class:
|
|
1007
|
+
let t = fn(e, "collapsed"), n = K(), { t: r } = Dn(), i = A(() => !!e.subtitle || !!n.subtitle), a = A(() => !!e.title || !!n.title || i.value || !!n.actions || e.collapsible), o = A(() => !!n.footer), s = A(() => !t.value || !e.collapsible || !e.hideContentWhenCollapsed), c = A(() => r(t.value ? "chartWidget.expand" : "chartWidget.collapse"));
|
|
1008
|
+
return (n, r) => (B(), N("div", {
|
|
1009
|
+
class: R(["s-ui-chart-widget", { "s-ui-chart-widget--skeleton": e.loading }]),
|
|
955
1010
|
"data-qa": "ui:chart-widget"
|
|
956
1011
|
}, [
|
|
957
|
-
a.value ? (
|
|
1012
|
+
a.value ? (B(), N("div", Ar, [e.loading ? (B(), N("span", jr)) : (B(), N("span", Mr, [P("span", Nr, [U(n.$slots, "title", {}, () => [F(W(e.title), 1)])]), i.value ? (B(), N("span", Pr, [U(n.$slots, "subtitle", {}, () => [F(W(e.subtitle), 1)])])) : M("", !0)])), P("div", Fr, [U(n.$slots, "actions"), e.collapsible ? (B(), j(G(E), {
|
|
958
1013
|
key: 0,
|
|
959
|
-
appearance:
|
|
960
|
-
variant:
|
|
961
|
-
size:
|
|
962
|
-
icon: t.value ?
|
|
1014
|
+
appearance: G(w).OUTLINED,
|
|
1015
|
+
variant: G(C).NEUTRAL,
|
|
1016
|
+
size: G(T).SMALL,
|
|
1017
|
+
icon: t.value ? G(J).chevronDown : G(J).chevronUp,
|
|
963
1018
|
"aria-label": c.value,
|
|
964
1019
|
"aria-expanded": !t.value,
|
|
965
1020
|
onClick: r[0] ||= (e) => t.value = !t.value
|
|
@@ -970,11 +1025,222 @@ var K = [
|
|
|
970
1025
|
"icon",
|
|
971
1026
|
"aria-label",
|
|
972
1027
|
"aria-expanded"
|
|
973
|
-
])) :
|
|
974
|
-
s.value ? (
|
|
975
|
-
o.value ? (
|
|
1028
|
+
])) : M("", !0)])])) : M("", !0),
|
|
1029
|
+
s.value ? (B(), N("div", Ir, [U(n.$slots, "default")])) : M("", !0),
|
|
1030
|
+
o.value ? (B(), N("div", Lr, [U(n.$slots, "footer")])) : M("", !0)
|
|
976
1031
|
], 2));
|
|
977
1032
|
}
|
|
1033
|
+
}), zr = /* @__PURE__ */ function(e) {
|
|
1034
|
+
return e.UNDONE = "undone", e.GENERATED = "generated", e.ON_PLAN = "on-plan", e.RISK = "risk", e.DEVIATED = "deviated", e.ON_PAUSE = "on-pause", e.DONE = "done", e;
|
|
1035
|
+
}({}), Br = /^(\d{4})-(\d{2})-(\d{2})/, Vr = (e) => {
|
|
1036
|
+
if (e instanceof Date) return Number.isNaN(e.getTime()) ? null : {
|
|
1037
|
+
year: e.getFullYear(),
|
|
1038
|
+
month: e.getMonth(),
|
|
1039
|
+
day: e.getDate()
|
|
1040
|
+
};
|
|
1041
|
+
let t = Br.exec(e);
|
|
1042
|
+
return t ? {
|
|
1043
|
+
year: Number(t[1]),
|
|
1044
|
+
month: Number(t[2]) - 1,
|
|
1045
|
+
day: Number(t[3])
|
|
1046
|
+
} : null;
|
|
1047
|
+
}, Hr = (e, t) => new Date(e, t + 1, 0).getDate(), Ur = 12, Wr = (e, t, n = !1) => {
|
|
1048
|
+
if (e.year < t) return 0;
|
|
1049
|
+
if (e.year > t) return 100;
|
|
1050
|
+
let r = Hr(e.year, e.month), i = n ? e.day : e.day - 1;
|
|
1051
|
+
return (e.month + i / r) / Ur * 100;
|
|
1052
|
+
}, Gr = (e) => {
|
|
1053
|
+
let t = new Intl.DateTimeFormat(e, { month: "long" });
|
|
1054
|
+
return Array.from({ length: Ur }, (n, r) => {
|
|
1055
|
+
let i = t.format(new Date(2e3, r, 1));
|
|
1056
|
+
return i.charAt(0).toLocaleUpperCase(e) + i.slice(1);
|
|
1057
|
+
});
|
|
1058
|
+
}, Kr = (e) => Math.min(100, Math.max(0, e)), qr = (e, t, n, r, i) => e.flatMap((e) => {
|
|
1059
|
+
let a = Vr(e.date);
|
|
1060
|
+
if (!a || a.year !== n) return [];
|
|
1061
|
+
let o = Wr(a, n, !0), s = i > 0 ? Kr((o - r) / i * 100) : 0;
|
|
1062
|
+
return [{
|
|
1063
|
+
milestone: e,
|
|
1064
|
+
status: e.status ?? t,
|
|
1065
|
+
offset: s
|
|
1066
|
+
}];
|
|
1067
|
+
}), Jr = (e, t) => e.flatMap((e) => {
|
|
1068
|
+
let n = Vr(e.start), r = Vr(e.end);
|
|
1069
|
+
if (!n || !r || n.year > t || r.year < t) return [];
|
|
1070
|
+
let i = Wr(n, t), a = Wr(r, t, !0);
|
|
1071
|
+
if (a <= i) return [];
|
|
1072
|
+
let o = e.status ?? zr.ON_PLAN, s = a - i;
|
|
1073
|
+
return [{
|
|
1074
|
+
item: e,
|
|
1075
|
+
status: o,
|
|
1076
|
+
left: i,
|
|
1077
|
+
width: s,
|
|
1078
|
+
progress: e.progress === void 0 ? null : Kr(Math.round(e.progress)),
|
|
1079
|
+
milestones: qr(e.milestones ?? [], o, t, i, s)
|
|
1080
|
+
}];
|
|
1081
|
+
}), Yr = ["aria-busy"], Xr = { class: "s-ui-roadmap__ruler" }, Zr = { class: "s-ui-roadmap__year" }, Qr = { class: "s-ui-roadmap__months" }, $r = { class: "s-ui-roadmap__body" }, ei = {
|
|
1082
|
+
class: "s-ui-roadmap__grid",
|
|
1083
|
+
"aria-hidden": "true"
|
|
1084
|
+
}, ti = {
|
|
1085
|
+
key: 1,
|
|
1086
|
+
class: "s-ui-roadmap__rows"
|
|
1087
|
+
}, ni = { class: "s-ui-roadmap__row" }, ri = {
|
|
1088
|
+
key: 2,
|
|
1089
|
+
class: "s-ui-roadmap__rows"
|
|
1090
|
+
}, ii = [
|
|
1091
|
+
"role",
|
|
1092
|
+
"tabindex",
|
|
1093
|
+
"onClick",
|
|
1094
|
+
"onKeydown"
|
|
1095
|
+
], ai = { class: "s-ui-roadmap__card-header" }, oi = { class: "s-ui-roadmap__card-title" }, si = { class: "s-ui-roadmap__card-track" }, ci = [
|
|
1096
|
+
"title",
|
|
1097
|
+
"aria-label",
|
|
1098
|
+
"onClick"
|
|
1099
|
+
], li = {
|
|
1100
|
+
key: 0,
|
|
1101
|
+
class: "s-ui-roadmap__card-progress"
|
|
1102
|
+
}, ui = { class: "s-ui-roadmap__card-percent" }, di = {
|
|
1103
|
+
key: 3,
|
|
1104
|
+
class: "s-ui-roadmap__empty"
|
|
1105
|
+
}, fi = 3.8, pi = 39.6, mi = 16, hi = 16, gi = /* @__PURE__ */ L({
|
|
1106
|
+
__name: "SRoadmap",
|
|
1107
|
+
props: {
|
|
1108
|
+
items: { default: () => [] },
|
|
1109
|
+
year: {},
|
|
1110
|
+
today: {},
|
|
1111
|
+
loading: {
|
|
1112
|
+
type: Boolean,
|
|
1113
|
+
default: !1
|
|
1114
|
+
},
|
|
1115
|
+
itemActionLabel: {},
|
|
1116
|
+
milestoneActionLabel: {}
|
|
1117
|
+
},
|
|
1118
|
+
emits: ["itemClick", "milestoneClick"],
|
|
1119
|
+
setup(e, { emit: t }) {
|
|
1120
|
+
let n = t, r = mi / 2, i = J.stageFill, a = J.milestoneFill, o = _n.SMALL, s = vn.S_ROADMAP_CARD, c = {
|
|
1121
|
+
insetInlineStart: `${fi}%`,
|
|
1122
|
+
inlineSize: `${pi}%`
|
|
1123
|
+
}, { t: l, locale: u } = Dn(), d = kt("onItemClick"), f = kt("onMilestoneClick"), p = V(null), m = A(() => d() ? e.itemActionLabel : void 0), h = A(() => f() ? e.milestoneActionLabel : void 0), g = A(() => p.value ? {
|
|
1124
|
+
insetInlineStart: `${p.value.x}px`,
|
|
1125
|
+
insetBlockStart: `${p.value.y + hi}px`
|
|
1126
|
+
} : void 0), _ = (e, t) => {
|
|
1127
|
+
p.value = e ? {
|
|
1128
|
+
text: e,
|
|
1129
|
+
x: t.clientX,
|
|
1130
|
+
y: t.clientY
|
|
1131
|
+
} : null;
|
|
1132
|
+
}, v = () => {
|
|
1133
|
+
p.value = null;
|
|
1134
|
+
}, y = A(() => Vr(e.today ?? /* @__PURE__ */ new Date())), b = A(() => e.year ?? y.value?.year ?? (/* @__PURE__ */ new Date()).getFullYear()), x = A(() => y.value?.year === b.value), ee = A(() => ["s-ui-roadmap", { "s-ui-roadmap--loading": e.loading }]), S = A(() => Gr(String(dn(u))).map((e, t) => ({
|
|
1135
|
+
index: t,
|
|
1136
|
+
label: e,
|
|
1137
|
+
classes: ["s-ui-roadmap__month", { "s-ui-roadmap__month--current": x.value && y.value?.month === t }]
|
|
1138
|
+
}))), C = A(() => !x.value || !y.value ? null : { insetInlineStart: `${Wr(y.value, b.value)}%` }), w = A(() => Jr(e.items, b.value).map((e) => ({
|
|
1139
|
+
key: e.item.id,
|
|
1140
|
+
row: e,
|
|
1141
|
+
role: d() ? "button" : void 0,
|
|
1142
|
+
tabindex: d() ? 0 : void 0,
|
|
1143
|
+
progressLabel: l("roadmap.progress", { value: String(e.progress ?? 0) }),
|
|
1144
|
+
cardClasses: [
|
|
1145
|
+
"s-ui-roadmap__card",
|
|
1146
|
+
`s-ui-roadmap__card--status-${e.status}`,
|
|
1147
|
+
{ "s-ui-roadmap__card--clickable": d() }
|
|
1148
|
+
],
|
|
1149
|
+
cardStyle: {
|
|
1150
|
+
insetInlineStart: `${e.left}%`,
|
|
1151
|
+
inlineSize: `${e.width}%`
|
|
1152
|
+
},
|
|
1153
|
+
milestones: e.milestones.map((e) => ({
|
|
1154
|
+
key: e.milestone.id,
|
|
1155
|
+
placement: e,
|
|
1156
|
+
title: l("roadmap.milestone", { title: e.milestone.title }),
|
|
1157
|
+
nativeTitle: h.value ? void 0 : l("roadmap.milestone", { title: e.milestone.title }),
|
|
1158
|
+
classes: ["s-ui-roadmap__milestone", `s-ui-roadmap__milestone--status-${e.status}`],
|
|
1159
|
+
style: { insetInlineStart: `clamp(0px, calc(${e.offset}% - ${r}px), calc(100% - ${mi}px))` }
|
|
1160
|
+
}))
|
|
1161
|
+
}))), T = (e) => {
|
|
1162
|
+
n("itemClick", e);
|
|
1163
|
+
}, E = (e, t) => {
|
|
1164
|
+
n("milestoneClick", e, t);
|
|
1165
|
+
};
|
|
1166
|
+
return (t, n) => (B(), N("div", {
|
|
1167
|
+
class: R(ee.value),
|
|
1168
|
+
"data-qa": "ui:roadmap",
|
|
1169
|
+
"aria-busy": e.loading
|
|
1170
|
+
}, [
|
|
1171
|
+
P("div", Xr, [P("div", Zr, W(b.value), 1), P("ol", Qr, [(B(!0), N(k, null, H(S.value, (e) => (B(), N("li", {
|
|
1172
|
+
key: e.index,
|
|
1173
|
+
class: R(e.classes)
|
|
1174
|
+
}, W(e.label), 3))), 128))])]),
|
|
1175
|
+
P("div", $r, [
|
|
1176
|
+
P("div", ei, [(B(!0), N(k, null, H(S.value, (e) => (B(), N("span", {
|
|
1177
|
+
key: e.index,
|
|
1178
|
+
class: "s-ui-roadmap__grid-column"
|
|
1179
|
+
}))), 128))]),
|
|
1180
|
+
C.value ? (B(), N("div", {
|
|
1181
|
+
key: 0,
|
|
1182
|
+
class: "s-ui-roadmap__today",
|
|
1183
|
+
style: z(C.value),
|
|
1184
|
+
"aria-hidden": "true"
|
|
1185
|
+
}, [...n[2] ||= [P("span", { class: "s-ui-roadmap__today-point" }, null, -1)]], 4)) : M("", !0),
|
|
1186
|
+
e.loading ? (B(), N("ul", ti, [P("li", ni, [P("div", {
|
|
1187
|
+
class: "s-ui-roadmap__card s-ui-roadmap__card--skeleton",
|
|
1188
|
+
style: c,
|
|
1189
|
+
"aria-hidden": "true"
|
|
1190
|
+
}, [I(G(xn), {
|
|
1191
|
+
class: "s-ui-roadmap__card-skeleton",
|
|
1192
|
+
type: G(s)
|
|
1193
|
+
}, null, 8, ["type"])])])])) : w.value.length ? (B(), N("ul", ri, [(B(!0), N(k, null, H(w.value, (e) => (B(), N("li", {
|
|
1194
|
+
key: e.key,
|
|
1195
|
+
class: "s-ui-roadmap__row"
|
|
1196
|
+
}, [P("div", {
|
|
1197
|
+
class: R(e.cardClasses),
|
|
1198
|
+
style: z(e.cardStyle),
|
|
1199
|
+
role: e.role,
|
|
1200
|
+
tabindex: e.tabindex,
|
|
1201
|
+
onClick: (t) => T(e.row.item),
|
|
1202
|
+
onKeydown: hn((t) => T(e.row.item), ["enter"]),
|
|
1203
|
+
onPointermove: n[1] ||= (e) => _(m.value, e),
|
|
1204
|
+
onPointerleave: v
|
|
1205
|
+
}, [
|
|
1206
|
+
P("div", ai, [U(t.$slots, "item-leading", { item: e.row.item }), P("span", oi, W(e.row.item.title), 1)]),
|
|
1207
|
+
P("div", si, [I(G(yn), {
|
|
1208
|
+
class: "s-ui-roadmap__stage-icon",
|
|
1209
|
+
name: G(i),
|
|
1210
|
+
size: 16
|
|
1211
|
+
}, null, 8, ["name"]), (B(!0), N(k, null, H(e.milestones, (t) => (B(), N("button", {
|
|
1212
|
+
key: t.key,
|
|
1213
|
+
type: "button",
|
|
1214
|
+
class: R(t.classes),
|
|
1215
|
+
style: z(t.style),
|
|
1216
|
+
title: t.nativeTitle,
|
|
1217
|
+
"aria-label": t.title,
|
|
1218
|
+
onClick: gn((n) => E(t.placement.milestone, e.row.item), ["stop"]),
|
|
1219
|
+
onPointermove: n[0] ||= gn((e) => _(h.value, e), ["stop"])
|
|
1220
|
+
}, [I(G(yn), {
|
|
1221
|
+
name: G(a),
|
|
1222
|
+
size: 16
|
|
1223
|
+
}, null, 8, ["name"])], 46, ci))), 128))]),
|
|
1224
|
+
e.row.progress === null ? M("", !0) : (B(), N("div", li, [I(G(bn), {
|
|
1225
|
+
class: "s-ui-roadmap__card-progress-bar",
|
|
1226
|
+
value: e.row.progress,
|
|
1227
|
+
size: G(o),
|
|
1228
|
+
"aria-label": e.progressLabel
|
|
1229
|
+
}, null, 8, [
|
|
1230
|
+
"value",
|
|
1231
|
+
"size",
|
|
1232
|
+
"aria-label"
|
|
1233
|
+
]), P("span", ui, W(e.row.progress) + "%", 1)]))
|
|
1234
|
+
], 46, ii)]))), 128))])) : (B(), N("div", di, [U(t.$slots, "empty", {}, () => [F(W(G(l)("roadmap.empty")), 1)])]))
|
|
1235
|
+
]),
|
|
1236
|
+
(B(), j(rn, { to: "body" }, [p.value ? (B(), N("span", {
|
|
1237
|
+
key: 0,
|
|
1238
|
+
class: "s-ui-roadmap__hint",
|
|
1239
|
+
style: z(g.value),
|
|
1240
|
+
role: "tooltip"
|
|
1241
|
+
}, W(p.value.text), 5)) : M("", !0)]))
|
|
1242
|
+
], 10, Yr));
|
|
1243
|
+
}
|
|
978
1244
|
});
|
|
979
1245
|
//#endregion
|
|
980
|
-
export {
|
|
1246
|
+
export { Mt as CALENDAR_WEEK_SLOT_COUNT, Bt as DAY_TIMELINE_MINUTES, m as DEFAULT_COLOR_PALETTE, p as EAccentColor, w as EButtonAppearance, se as EButtonGroupLayout, T as EButtonSize, C as EButtonVariant, g as EColorFormat, Ce as EConnectedPositionStrategy, X as ENotificationLayout, Z as ENotificationLeftside, Y as ENotificationType, a as ESAvatarBadge, s as ESAvatarColor, ee as ESAvatarGroupSize, i as ESAvatarIconBackground, r as ESAvatarShape, o as ESAvatarSize, e as ESBadgeColor, t as ESBadgePlacement, Lt as ESCalendarEventDirection, Ut as ESCalendarMonthDayTone, he as ESCardLayout, vt as ESChartLegendSize, Tt as ESChartPieLegendView, fe as ESCheckboxColor, pe as ESCheckboxLabelPlacement, de as ESCheckboxSize, Me as ESChipColor, Ne as ESChipSize, h as ESColorPaletteLayout, Te as ESDropdownBoundary, Ee as ESDropdownPlacement, le as ESInlineGroupOrientation, at as ESInlineInputAppearance, Be as ESInlineMessageValidationStatus, Re as ESInputCustomize, He as ESLabelSize, Ue as ESLabelVariant, Xe as ESListGap, qe as ESListItemRole, Je as ESListItemVariant, ct as ESPhotoEditShape, lt as ESPhotoEditSize, et as ESRadioLabelPlacement, zr as ESRoadmapStatus, _e as ESSegmentControlSize, Qe as ESSelectSearchable, ye as ESTabAppearance, be as ESTabSize, Xt as ESTableCellState, $t as ESTableCheckState, Jt as ESTableColumnAlign, Wt as ESTableColumnSticky, Zt as ESTableDropAction, en as ESTableFooterTone, Gt as ESTableRowColor, Yt as ESTableRowHeightMode, nn as ESTableRowKind, Kt as ESTableRowState, qt as ESTableRowsDragMode, Qt as ESTableSortDirection, Oe as ESTagColor, ke as ESTagSize, nt as ESToggleLabelPlacement, rt as ESToggleSize, ae as ESelectionFocusMode, ne as ESelectionMode, ie as ESelectionOrientation, Nt as EWorkTimeSource, l as MAX_RECENT_COLORS, _ as RECOMMENDED_COLOR_PALETTE, c as SAvatar, S as SAvatarGroup, n as SBadge, Kn as SBanner, E as SButton, ue as SButtonGroup, Pt as SCalendarMonth, It as SCalendarWeekGrid, ge as SCard, At as SChartBar, Ot as SChartBurnup, wt as SChartHorizontalBar, yt as SChartLegend, bt as SChartLine, Dt as SChartMultiLine, Et as SChartPie, jt as SChartProgress, kr as SChartSegmentedBar, St as SChartStackedArea, Ct as SChartStackedBar, Rr as SChartWidget, me as SCheckbox, Pe as SChip, d as SColorArea, v as SColorPalette, f as SColorPicker, u as SColorValues, Rt as SDayTimeline, Ie as SDropdown, Le as SDropdownMenu, ce as SInlineGroup, ot as SInlineInput, Ve as SInlineMessage, ze as SInput, We as SLabel, Ze as SList, Ye as SListItem, ut as SPhotoEdit, tt as SRadio, gi as SRoadmap, ve as SSegmentControl, $e as SSelect, xe as STab, tn as STable, Se as STabs, Ae as STag, je as STagGroup, st as STextarea, qn as SToast, fr as SToastProvider, it as SToggle, Fe as S_DROPDOWN_SHEET_BREAKPOINT, Qn as TOAST_AUTO_DURATION_MAX_MS, Zn as TOAST_AUTO_DURATION_MIN_MS, $n as TOAST_AUTO_DURATION_MS_PER_CHAR, zt as WORK_TIME_SOURCE_COLOR_VARS, Vt as WORK_TIME_SOURCE_ORDER, Ht as buildWorkTimeLegendItems, er as computeAutoDuration, we as computeConnectedPosition, Sn as createUiKit, Ft as formatDurationHM, x as isSameColor, b as normalizeColorValue, y as resolveColorPreview, te as resolveOwnPropOrGroupedOrFallback, Cn as setUiKitLocale, wn as uiKitLocaleEn, Tn as uiKitLocaleRu, Ke as useFlatTreeList, De as useFloatingOverlay, Ge as useSListEndReached, re as useSelectionGroup, oe as useSelectionGroupItem, dr as useToast, En as useUiKitI18n };
|