@shtabapp/ui-kit 1.69.0 → 1.70.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 +13 -0
- package/dist/SChartBar-CUAibXox.js +215 -0
- package/dist/SChartBar-xzw8oxXl.cjs +1 -0
- package/dist/{SChartBurnup-DyJHdRlf.js → SChartBurnup-C5Z7UDi-.js} +39 -40
- package/dist/SChartBurnup-CWSJUoA_.cjs +1 -0
- package/dist/{SChartHorizontalBar-Bv90SV6E.cjs → SChartHorizontalBar-0RpJa5EJ.cjs} +1 -1
- package/dist/{SChartHorizontalBar-DDo6TfE8.js → SChartHorizontalBar-B9SWFvdN.js} +14 -14
- package/dist/SChartLine-CTjiKi4H.js +165 -0
- package/dist/SChartLine-Cp1csHeY.cjs +1 -0
- package/dist/SChartMultiLine-Bt9Cf-L9.cjs +1 -0
- package/dist/SChartMultiLine-CbPSG0mN.js +244 -0
- package/dist/{SChartPie-Bt3o7LZI.js → SChartPie-0ugeo2fO.js} +72 -58
- package/dist/SChartPie-QpnxLQYv.cjs +1 -0
- package/dist/{SChartProgress-xxqrj03o.cjs → SChartProgress-9Zzy7E8K.cjs} +1 -1
- package/dist/{SChartProgress-uMg4DBpS.js → SChartProgress-DUgSOdv7.js} +15 -15
- package/dist/{SChartStackedArea-BQGnKp1i.js → SChartStackedArea-Blpqa23h.js} +40 -40
- package/dist/{SChartStackedArea-BNe6FAg8.cjs → SChartStackedArea-C3MezV9k.cjs} +1 -1
- package/dist/{SChartStackedBar-fiUU9lNp.js → SChartStackedBar-CCxEXw1H.js} +21 -21
- package/dist/{SChartStackedBar-D1G-VloG.cjs → SChartStackedBar-CJ-UdOfv.cjs} +1 -1
- package/dist/STable-Ch7thYCy.cjs +1 -0
- package/dist/{STable-9Kb75bwz.js → STable-CunQFK-x.js} +5 -1
- package/dist/{buildWorkTimeLegendItems-ChGHTwbn.js → buildWorkTimeLegendItems-CifzZM9C.js} +126 -76
- package/dist/buildWorkTimeLegendItems-DPx5Yma0.cjs +1 -0
- package/dist/components/SCalendar/index.d.ts +2 -2
- package/dist/components/SCalendar/index.d.ts.map +1 -1
- package/dist/components/SCalendar/utils/demoCalendarMonthEvents.d.ts +6 -0
- package/dist/components/SCalendar/utils/demoCalendarMonthEvents.d.ts.map +1 -0
- package/dist/components/SCalendarMonth/SCalendarMonth.types.d.ts +36 -3
- package/dist/components/SCalendarMonth/SCalendarMonth.types.d.ts.map +1 -1
- package/dist/components/SCalendarMonth/SCalendarMonth.vue.d.ts +6 -1
- package/dist/components/SCalendarMonth/SCalendarMonth.vue.d.ts.map +1 -1
- package/dist/components/SCalendarMonth/index.d.ts +2 -1
- package/dist/components/SCalendarMonth/index.d.ts.map +1 -1
- package/dist/components/SChartBar/SChartBar.types.d.ts +2 -0
- 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/utils/buildBarChartConfig.d.ts +2 -1
- package/dist/components/SChartBar/utils/buildBarChartConfig.d.ts.map +1 -1
- package/dist/components/SChartBar/utils/demoBarSeries.d.ts +1 -0
- package/dist/components/SChartBar/utils/demoBarSeries.d.ts.map +1 -1
- package/dist/components/SChartLine/SChartLine.types.d.ts +14 -2
- package/dist/components/SChartLine/SChartLine.types.d.ts.map +1 -1
- package/dist/components/SChartLine/SChartLine.vue.d.ts.map +1 -1
- package/dist/components/SChartLine/index.d.ts +1 -1
- package/dist/components/SChartLine/index.d.ts.map +1 -1
- package/dist/components/SChartLine/utils/buildLineChartConfig.d.ts +6 -2
- package/dist/components/SChartLine/utils/buildLineChartConfig.d.ts.map +1 -1
- package/dist/components/SChartLine/utils/demoPoints.d.ts +3 -1
- package/dist/components/SChartLine/utils/demoPoints.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.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 +5 -1
- package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts.map +1 -1
- package/dist/components/SChartMultiLine/utils/demoMultiLineSeries.d.ts +1 -0
- package/dist/components/SChartMultiLine/utils/demoMultiLineSeries.d.ts.map +1 -1
- package/dist/components/SChartPie/SChartPie.types.d.ts +6 -0
- package/dist/components/SChartPie/SChartPie.types.d.ts.map +1 -1
- package/dist/components/SChartPie/SChartPie.vue.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/SChartSegmentedBar/SChartSegmentedBar.types.d.ts +2 -0
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.types.d.ts.map +1 -1
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.vue.d.ts.map +1 -1
- package/dist/components/SChartSegmentedBar/utils/buildSegmentedBarChartConfig.d.ts +2 -1
- package/dist/components/SChartSegmentedBar/utils/buildSegmentedBarChartConfig.d.ts.map +1 -1
- package/dist/components/SChartSegmentedBar/utils/createSegmentedBarBadgePlugin.d.ts +1 -1
- package/dist/components/SChartSegmentedBar/utils/createSegmentedBarBadgePlugin.d.ts.map +1 -1
- package/dist/components/SChartStackedArea/utils/demoStackedSeries.d.ts +4 -0
- package/dist/components/SChartStackedArea/utils/demoStackedSeries.d.ts.map +1 -1
- package/dist/components/SChartWidget/SChartWidget.types.d.ts +2 -0
- package/dist/components/SChartWidget/SChartWidget.types.d.ts.map +1 -1
- package/dist/components/SChartWidget/SChartWidget.vue.d.ts +7 -3
- package/dist/components/SChartWidget/SChartWidget.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 +3 -1
- package/dist/components/STable/parts/STableGroupRow.vue.d.ts.map +1 -1
- package/dist/{createChartCrosshairPlugin-DfYzBie2.cjs → createChartCrosshairPlugin-B4e8d8OF.cjs} +1 -1
- package/dist/{createChartCrosshairPlugin-DU5grSok.js → createChartCrosshairPlugin-C2NUAO5s.js} +1 -1
- package/dist/createChartMarkersPlugin-DSKGilFU.js +40 -0
- package/dist/createChartMarkersPlugin-S4oQKxO4.cjs +1 -0
- package/dist/entries/calendar.cjs +1 -1
- package/dist/entries/calendar.d.ts +2 -2
- package/dist/entries/calendar.d.ts.map +1 -1
- package/dist/entries/calendar.js +2 -2
- 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.d.ts +1 -1
- package/dist/entries/chart-line.d.ts.map +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.d.ts +1 -1
- package/dist/entries/chart-multi-line.d.ts.map +1 -1
- package/dist/entries/chart-multi-line.js +1 -1
- package/dist/entries/chart-pie.cjs +1 -1
- package/dist/entries/chart-pie.js +1 -1
- 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/separator.cjs +1 -0
- package/dist/entries/separator.js +2 -0
- package/dist/entries/table.cjs +1 -1
- package/dist/entries/table.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +162 -149
- package/dist/resolveBarStackedSeriesColor-DM7Ax0-s.js +11 -0
- package/dist/resolveBarStackedSeriesColor-z3NP5vAS.cjs +1 -0
- package/dist/resolveChartValueRange-DBCYLCXs.cjs +1 -0
- package/dist/resolveChartValueRange-DZybnmaX.js +10 -0
- package/dist/{resolveSeriesPaletteColor-DcLSyk-D.js → resolveSeriesPaletteColor-B7wHDj1L.js} +1 -1
- package/dist/resolveSeriesPaletteColor-D0XlU5vT.cjs +1 -0
- package/dist/{resolveStackedChartContext-CQbgdV55.cjs → resolveStackedChartContext-Br3N7ISo.cjs} +1 -1
- package/dist/{resolveStackedChartContext-CIKVXkDn.js → resolveStackedChartContext-DxJNWqwE.js} +1 -1
- package/dist/uikit-components.css +1 -1
- package/dist/{useChartInteractivity-BATdT86l.js → useChartInteractivity-Cl06JL4l.js} +121 -108
- package/dist/useChartInteractivity-LbJiqlvI.cjs +1 -0
- package/dist/utils/chart/chart.types.d.ts +14 -0
- package/dist/utils/chart/chart.types.d.ts.map +1 -1
- package/dist/utils/chart/core/chartInteractivity.d.ts.map +1 -1
- package/dist/utils/chart/core/createChartMarkersPlugin.d.ts +8 -0
- package/dist/utils/chart/core/createChartMarkersPlugin.d.ts.map +1 -0
- package/dist/utils/chart/core/createZeroLinePlugin.d.ts +3 -0
- package/dist/utils/chart/core/createZeroLinePlugin.d.ts.map +1 -0
- package/dist/utils/chart/core/resolveChartValueRange.d.ts +11 -0
- package/dist/utils/chart/core/resolveChartValueRange.d.ts.map +1 -0
- package/dist/utils/chart/index.d.ts +7 -2
- package/dist/utils/chart/index.d.ts.map +1 -1
- package/dist/utils/chart/line/createChartAreaFillGradient.d.ts +2 -0
- package/dist/utils/chart/line/createChartAreaFillGradient.d.ts.map +1 -1
- package/dist/utils/chart/pie/createPieSegmentBadgePlugin.d.ts +1 -1
- package/dist/utils/chart/pie/createPieSegmentBadgePlugin.d.ts.map +1 -1
- package/dist/utils/chart/pie/createPieTooltipCallbacks.d.ts +1 -1
- package/dist/utils/chart/pie/createPieTooltipCallbacks.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/SChartBar-BVgwPlYi.js +0 -215
- package/dist/SChartBar-CBU1uCuL.cjs +0 -1
- package/dist/SChartBurnup-Ch3UMa9w.cjs +0 -1
- package/dist/SChartLine-Cs1JzPEK.js +0 -129
- package/dist/SChartLine-nIGaef_o.cjs +0 -1
- package/dist/SChartMultiLine-BzoW4ETf.cjs +0 -1
- package/dist/SChartMultiLine-DqCQ7FCv.js +0 -204
- package/dist/SChartPie-Bv5Obcwb.cjs +0 -1
- package/dist/STable-EpiUErdI.cjs +0 -1
- package/dist/buildWorkTimeLegendItems-DjhLKbAP.cjs +0 -1
- package/dist/createChartAreaFillGradient-BDmME9Gy.js +0 -17
- package/dist/createChartAreaFillGradient-BwsojVzU.cjs +0 -1
- package/dist/resolveBarStackedSeriesColor-HDSkh6Mw.cjs +0 -1
- package/dist/resolveBarStackedSeriesColor-LpVh1SvQ.js +0 -11
- package/dist/resolveSeriesPaletteColor-B5qoBbXN.cjs +0 -1
- package/dist/useChartInteractivity-CXSdHPOw.cjs +0 -1
package/dist/index.js
CHANGED
|
@@ -32,27 +32,27 @@ import { n as ot, t as st } from "./SInlineInput-DO_glYxP.js";
|
|
|
32
32
|
import { t as ct } from "./STextarea-BDyy7Ku5.js";
|
|
33
33
|
import { n as lt, r as ut, t as dt } from "./SPhotoEdit-r63G2NZI.js";
|
|
34
34
|
import { t as T } from "./SChartLegend-oZoF8XK7.js";
|
|
35
|
-
import {
|
|
36
|
-
import { t as _t } from "./SChartLine-
|
|
37
|
-
import { t as vt } from "./resolveSeriesPaletteColor-
|
|
38
|
-
import { t as yt } from "./SChartStackedArea-
|
|
39
|
-
import { t as bt } from "./SChartStackedBar-
|
|
40
|
-
import { t as xt } from "./SChartHorizontalBar-
|
|
41
|
-
import { t as St } from "./SChartPie-
|
|
42
|
-
import { t as Ct } from "./SChartMultiLine-
|
|
43
|
-
import { t as wt } from "./SChartBurnup-
|
|
35
|
+
import { D as ft, E as pt, T as E, n as mt, r as ht, t as gt, y as D } from "./useChartInteractivity-Cl06JL4l.js";
|
|
36
|
+
import { t as _t } from "./SChartLine-CTjiKi4H.js";
|
|
37
|
+
import { t as vt } from "./resolveSeriesPaletteColor-B7wHDj1L.js";
|
|
38
|
+
import { t as yt } from "./SChartStackedArea-Blpqa23h.js";
|
|
39
|
+
import { t as bt } from "./SChartStackedBar-CCxEXw1H.js";
|
|
40
|
+
import { t as xt } from "./SChartHorizontalBar-B9SWFvdN.js";
|
|
41
|
+
import { t as St } from "./SChartPie-0ugeo2fO.js";
|
|
42
|
+
import { t as Ct } from "./SChartMultiLine-CbPSG0mN.js";
|
|
43
|
+
import { t as wt } from "./SChartBurnup-C5Z7UDi-.js";
|
|
44
44
|
import { t as Tt } from "./useHasListener-RSjlUyqH.js";
|
|
45
|
-
import { t as Et } from "./SChartBar-
|
|
46
|
-
import { t as Dt } from "./SChartProgress-
|
|
47
|
-
import { a as Ot, c as kt,
|
|
48
|
-
import { a as
|
|
49
|
-
import { Fragment as
|
|
50
|
-
import { ESIconName as K, SIcon as
|
|
51
|
-
import { useResizeObserver as
|
|
45
|
+
import { t as Et } from "./SChartBar-CUAibXox.js";
|
|
46
|
+
import { t as Dt } from "./SChartProgress-DUgSOdv7.js";
|
|
47
|
+
import { a as Ot, c as kt, d as At, f as jt, i as Mt, l as Nt, n as Pt, o as Ft, r as It, s as Lt, t as Rt, u as zt } from "./buildWorkTimeLegendItems-CifzZM9C.js";
|
|
48
|
+
import { a as Bt, c as Vt, d as Ht, f as Ut, i as Wt, l as Gt, n as Kt, o as qt, p as Jt, r as Yt, s as Xt, t as Zt, u as Qt } from "./STable-CunQFK-x.js";
|
|
49
|
+
import { Fragment as $t, Teleport as en, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createSlots as tn, createTextVNode as N, createVNode as nn, defineComponent as P, mergeModels as rn, mergeProps as an, normalizeClass as F, normalizeStyle as I, onMounted as on, openBlock as L, ref as R, renderList as sn, renderSlot as z, resolveDynamicComponent as cn, shallowRef as B, toDisplayString as V, unref as H, useModel as ln, useSlots as U, useTemplateRef as W, watch as un, withCtx as G } from "vue";
|
|
50
|
+
import { ESIconName as K, SIcon as dn, createUiKit as fn, setUiKitLocale as pn, uiKitLocaleEn as mn, uiKitLocaleRu as hn, useUiKitI18n as gn, useUiKitI18n as _n } from "@shtabapp/ui-kit-primitives";
|
|
51
|
+
import { useResizeObserver as vn } 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 yn = [
|
|
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 _n = [
|
|
|
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
|
+
], bn = [
|
|
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,11 +70,11 @@ var _n = [
|
|
|
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:
|
|
73
|
+
], xn = (e, t, n, r = !1) => vt(e, t, n, r, {
|
|
74
|
+
palette: yn,
|
|
75
|
+
paletteFallback: yn[0],
|
|
76
|
+
skeletonPalette: bn,
|
|
77
|
+
skeletonFallback: bn[0]
|
|
78
78
|
}), q = /* @__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
|
}({}), J = /* @__PURE__ */ function(e) {
|
|
@@ -83,32 +83,32 @@ var _n = [
|
|
|
83
83
|
return e.ICON = "icon", e.AVATAR = "avatar", e;
|
|
84
84
|
}({}), X = /* @__PURE__ */ function(e) {
|
|
85
85
|
return e.BANNER = "banner", e.TOAST = "toast", e;
|
|
86
|
-
}({}),
|
|
86
|
+
}({}), Sn = {
|
|
87
87
|
[q.INFO_ACCENT]: K.infoCircle,
|
|
88
88
|
[q.INFO_NORMAL]: K.infoCircle,
|
|
89
89
|
[q.SUCCESS]: K.checkCircle,
|
|
90
90
|
[q.WARNING]: K.alertCircle,
|
|
91
91
|
[q.DANGER]: K.dangerCircleFill,
|
|
92
92
|
[q.BILLING]: K.infoCircle
|
|
93
|
-
},
|
|
93
|
+
}, Cn = (e, t) => t || Sn[e], wn = ["role"], Tn = { class: "s-ui-notification__body" }, En = {
|
|
94
94
|
key: 0,
|
|
95
95
|
class: "s-ui-notification__leftside"
|
|
96
|
-
},
|
|
96
|
+
}, Dn = {
|
|
97
97
|
key: 0,
|
|
98
98
|
class: "s-ui-notification__icon"
|
|
99
|
-
},
|
|
99
|
+
}, On = { class: "s-ui-notification__content" }, kn = { class: "s-ui-notification__title-row" }, An = {
|
|
100
100
|
key: 0,
|
|
101
101
|
class: "s-ui-notification__description-block"
|
|
102
|
-
},
|
|
102
|
+
}, jn = {
|
|
103
103
|
key: 0,
|
|
104
104
|
class: "s-ui-notification__description s-ui-typography-label-12-medium"
|
|
105
|
-
},
|
|
105
|
+
}, Mn = {
|
|
106
106
|
key: 1,
|
|
107
107
|
class: "s-ui-notification__actions-stack"
|
|
108
|
-
},
|
|
108
|
+
}, Nn = {
|
|
109
109
|
key: 1,
|
|
110
110
|
class: "s-ui-notification__actions-row"
|
|
111
|
-
},
|
|
111
|
+
}, Pn = /* @__PURE__ */ P({
|
|
112
112
|
__name: "SNotification",
|
|
113
113
|
props: {
|
|
114
114
|
type: { default: () => q.INFO_ACCENT },
|
|
@@ -153,7 +153,7 @@ var _n = [
|
|
|
153
153
|
]), a = O(() => {
|
|
154
154
|
let t = {};
|
|
155
155
|
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;
|
|
156
|
-
}), s = O(() => e.type === q.DANGER ? "alert" : "status"), l = O(() =>
|
|
156
|
+
}), s = O(() => e.type === q.DANGER ? "alert" : "status"), l = O(() => Cn(e.type, e.icon)), u = O(() => e.type === q.BILLING), d = O(() => !!(e.leftside === Y.AVATAR && e.avatar || e.leftside === Y.ICON)), f = O(() => !!(e.description || e.linkText || r.description)), p = O(() => e.showPrimaryButton && (e.primaryButtonText || e.secondaryButtonText)), m = O(() => e.showPrimaryButton && e.primaryButtonText || e.closable), h = O(() => e.type === q.BILLING ? S.MAJOR : S.OUTLINED), g = O(() => e.type === q.BILLING ? x.BILLING : x.MAIN), _ = () => {
|
|
157
157
|
n("close");
|
|
158
158
|
}, v = () => {
|
|
159
159
|
n("linkClick");
|
|
@@ -166,8 +166,8 @@ var _n = [
|
|
|
166
166
|
class: F(["s-ui-notification", i.value]),
|
|
167
167
|
style: I(a.value),
|
|
168
168
|
role: s.value
|
|
169
|
-
}, [M("div",
|
|
170
|
-
d.value ? (L(), j("div",
|
|
169
|
+
}, [M("div", Tn, [
|
|
170
|
+
d.value ? (L(), j("div", En, [e.leftside === H(Y).ICON ? (L(), j("div", Dn, [nn(H(dn), {
|
|
171
171
|
name: l.value,
|
|
172
172
|
size: 16,
|
|
173
173
|
billing: u.value
|
|
@@ -184,8 +184,8 @@ var _n = [
|
|
|
184
184
|
"badge",
|
|
185
185
|
"size"
|
|
186
186
|
])) : A("", !0)])) : A("", !0),
|
|
187
|
-
M("div",
|
|
188
|
-
M("div",
|
|
187
|
+
M("div", On, [
|
|
188
|
+
M("div", kn, [M("span", { class: F(["s-ui-notification__title s-ui-typography-label-14-medium", { "s-ui-notification__title--truncated": e.truncateTitle }]) }, [z(t.$slots, "title", {}, () => [N(V(e.title), 1)])], 2), e.layout === H(J).VERTICAL && e.closable ? (L(), k(H(w), {
|
|
189
189
|
key: 0,
|
|
190
190
|
class: "s-ui-notification__close",
|
|
191
191
|
appearance: H(S).BARE,
|
|
@@ -200,7 +200,7 @@ var _n = [
|
|
|
200
200
|
"size",
|
|
201
201
|
"aria-label"
|
|
202
202
|
])) : A("", !0)]),
|
|
203
|
-
f.value ? (L(), j("div",
|
|
203
|
+
f.value ? (L(), j("div", An, [e.description || H(r).description ? (L(), j("span", jn, [z(t.$slots, "description", {}, () => [N(V(e.description), 1)])])) : A("", !0), e.linkText ? (L(), k(H(w), {
|
|
204
204
|
key: 1,
|
|
205
205
|
class: "s-ui-notification__link",
|
|
206
206
|
appearance: H(S).BARE,
|
|
@@ -217,7 +217,7 @@ var _n = [
|
|
|
217
217
|
"size",
|
|
218
218
|
"iconRight"
|
|
219
219
|
])) : A("", !0)])) : A("", !0),
|
|
220
|
-
e.layout === H(J).VERTICAL && p.value ? (L(), j("div",
|
|
220
|
+
e.layout === H(J).VERTICAL && p.value ? (L(), j("div", Mn, [e.showPrimaryButton && e.primaryButtonText ? (L(), k(H(w), {
|
|
221
221
|
key: 0,
|
|
222
222
|
appearance: h.value,
|
|
223
223
|
variant: g.value,
|
|
@@ -245,7 +245,7 @@ var _n = [
|
|
|
245
245
|
"size"
|
|
246
246
|
])) : A("", !0)])) : A("", !0)
|
|
247
247
|
]),
|
|
248
|
-
e.layout === H(J).HORIZONTAL && m.value ? (L(), j("div",
|
|
248
|
+
e.layout === H(J).HORIZONTAL && m.value ? (L(), j("div", Nn, [e.showPrimaryButton && e.primaryButtonText ? (L(), k(H(w), {
|
|
249
249
|
key: 0,
|
|
250
250
|
appearance: h.value,
|
|
251
251
|
variant: g.value,
|
|
@@ -273,9 +273,9 @@ var _n = [
|
|
|
273
273
|
"size",
|
|
274
274
|
"aria-label"
|
|
275
275
|
])) : A("", !0)])) : A("", !0)
|
|
276
|
-
])], 14,
|
|
276
|
+
])], 14, wn));
|
|
277
277
|
}
|
|
278
|
-
}),
|
|
278
|
+
}), Fn = /* @__PURE__ */ P({
|
|
279
279
|
__name: "SBanner",
|
|
280
280
|
props: {
|
|
281
281
|
type: { default: () => q.INFO_ACCENT },
|
|
@@ -316,7 +316,7 @@ var _n = [
|
|
|
316
316
|
],
|
|
317
317
|
setup(e, { emit: t }) {
|
|
318
318
|
let n = t, r = U(), i = O(() => ({ "s-ui-banner--elevated": e.elevated }));
|
|
319
|
-
return (t, a) => (L(), k(
|
|
319
|
+
return (t, a) => (L(), k(Pn, {
|
|
320
320
|
class: F(["s-ui-banner", i.value]),
|
|
321
321
|
"data-qa": "ui:banner",
|
|
322
322
|
type: e.type,
|
|
@@ -340,7 +340,7 @@ var _n = [
|
|
|
340
340
|
onLinkClick: a[1] ||= (e) => n("linkClick"),
|
|
341
341
|
onPrimaryAction: a[2] ||= (e) => n("primaryAction"),
|
|
342
342
|
onSecondaryAction: a[3] ||= (e) => n("secondaryAction")
|
|
343
|
-
},
|
|
343
|
+
}, tn({ _: 2 }, [H(r).title ? {
|
|
344
344
|
name: "title",
|
|
345
345
|
fn: G(() => [z(t.$slots, "title")]),
|
|
346
346
|
key: "0"
|
|
@@ -369,7 +369,7 @@ var _n = [
|
|
|
369
369
|
"truncateTitle"
|
|
370
370
|
]));
|
|
371
371
|
}
|
|
372
|
-
}),
|
|
372
|
+
}), In = /* @__PURE__ */ P({
|
|
373
373
|
__name: "SToast",
|
|
374
374
|
props: {
|
|
375
375
|
type: { default: () => q.INFO_ACCENT },
|
|
@@ -405,7 +405,7 @@ var _n = [
|
|
|
405
405
|
],
|
|
406
406
|
setup(e, { emit: t }) {
|
|
407
407
|
let n = t, r = U(), i = O(() => e.width ?? 360);
|
|
408
|
-
return (t, a) => (L(), k(
|
|
408
|
+
return (t, a) => (L(), k(Pn, {
|
|
409
409
|
class: "s-ui-toast",
|
|
410
410
|
"data-qa": "ui:toast",
|
|
411
411
|
type: e.type,
|
|
@@ -428,7 +428,7 @@ var _n = [
|
|
|
428
428
|
onLinkClick: a[1] ||= (e) => n("linkClick"),
|
|
429
429
|
onPrimaryAction: a[2] ||= (e) => n("primaryAction"),
|
|
430
430
|
onSecondaryAction: a[3] ||= (e) => n("secondaryAction")
|
|
431
|
-
},
|
|
431
|
+
}, tn({ _: 2 }, [H(r).title ? {
|
|
432
432
|
name: "title",
|
|
433
433
|
fn: G(() => [z(t.$slots, "title")]),
|
|
434
434
|
key: "0"
|
|
@@ -455,13 +455,13 @@ var _n = [
|
|
|
455
455
|
"truncateTitle"
|
|
456
456
|
]));
|
|
457
457
|
}
|
|
458
|
-
}),
|
|
458
|
+
}), Ln = .05, Rn = [
|
|
459
459
|
"data-mounted",
|
|
460
460
|
"data-front",
|
|
461
461
|
"data-expanded",
|
|
462
462
|
"data-removed",
|
|
463
463
|
"data-visible"
|
|
464
|
-
],
|
|
464
|
+
], zn = /* @__PURE__ */ P({
|
|
465
465
|
__name: "SToastProviderToast",
|
|
466
466
|
props: {
|
|
467
467
|
index: {},
|
|
@@ -474,7 +474,7 @@ var _n = [
|
|
|
474
474
|
},
|
|
475
475
|
emits: ["heightChange"],
|
|
476
476
|
setup(e, { emit: t }) {
|
|
477
|
-
let n = t, r = R(null), i = R(0), a = R(!1), o = O(() => e.index === 0), s = O(() => 1 - e.index *
|
|
477
|
+
let n = t, r = R(null), i = R(0), a = R(!1), o = O(() => e.index === 0), s = O(() => 1 - e.index * Ln), c = O(() => ({
|
|
478
478
|
"--s-ui-toast-provider-toasts-before": String(e.index),
|
|
479
479
|
"--s-ui-toast-provider-lift-amount": `${e.stackPeek * -1}px`,
|
|
480
480
|
"--s-ui-toast-provider-front-toast-height": `${e.frontToastHeight}px`,
|
|
@@ -483,10 +483,10 @@ var _n = [
|
|
|
483
483
|
"--s-ui-toast-provider-stack-scale": String(s.value),
|
|
484
484
|
zIndex: String(1e3 - e.index)
|
|
485
485
|
}));
|
|
486
|
-
return
|
|
486
|
+
return vn(r, (e) => {
|
|
487
487
|
let t = e[0]?.contentRect.height ?? 0;
|
|
488
488
|
t !== i.value && (i.value = t, n("heightChange", t));
|
|
489
|
-
}),
|
|
489
|
+
}), on(() => {
|
|
490
490
|
requestAnimationFrame(() => {
|
|
491
491
|
requestAnimationFrame(() => {
|
|
492
492
|
a.value = !0;
|
|
@@ -504,50 +504,50 @@ var _n = [
|
|
|
504
504
|
ref_key: "contentRef",
|
|
505
505
|
ref: r,
|
|
506
506
|
class: "s-ui-toast-provider__toast-content"
|
|
507
|
-
}, [z(t.$slots, "default")], 512)], 12,
|
|
507
|
+
}, [z(t.$slots, "default")], 512)], 12, Rn));
|
|
508
508
|
}
|
|
509
|
-
}),
|
|
510
|
-
let n =
|
|
511
|
-
return n > 1e4 ?
|
|
512
|
-
}, Z = B([]), Q = /* @__PURE__ */ new Map(),
|
|
509
|
+
}), Bn = 4e3, Vn = 1e4, Hn = 50, Un = (e, t) => {
|
|
510
|
+
let n = Bn + (e.length + (t?.length ?? 0)) * 50;
|
|
511
|
+
return n > 1e4 ? Vn : n;
|
|
512
|
+
}, Z = B([]), Q = /* @__PURE__ */ new Map(), Wn = 0, Gn = {
|
|
513
513
|
type: q.INFO_ACCENT,
|
|
514
514
|
layout: J.HORIZONTAL,
|
|
515
515
|
leftside: Y.ICON,
|
|
516
516
|
showPrimaryButton: !1,
|
|
517
517
|
closable: !0
|
|
518
|
-
},
|
|
518
|
+
}, Kn = () => `toast-${Date.now()}-${++Wn}`, $ = (e) => {
|
|
519
519
|
let t = Q.get(e);
|
|
520
520
|
t && (window.clearTimeout(t), Q.delete(e));
|
|
521
|
-
},
|
|
521
|
+
}, qn = (e) => {
|
|
522
522
|
$(e.id);
|
|
523
|
-
let t = e.duration === void 0 ?
|
|
523
|
+
let t = e.duration === void 0 ? Un(e.title, e.description) : e.duration;
|
|
524
524
|
if (t > 0) {
|
|
525
525
|
let n = window.setTimeout(() => {
|
|
526
|
-
|
|
526
|
+
Jn(e.id);
|
|
527
527
|
}, t);
|
|
528
528
|
Q.set(e.id, n);
|
|
529
529
|
}
|
|
530
|
-
},
|
|
530
|
+
}, Jn = (e) => {
|
|
531
531
|
let t = Z.value.findIndex((t) => t.id === e);
|
|
532
532
|
if (t === -1) return;
|
|
533
533
|
let n = Z.value[t];
|
|
534
534
|
n && ($(e), n.onClose && n.onClose(), Z.value = Z.value.filter((t) => t.id !== e));
|
|
535
|
-
},
|
|
535
|
+
}, Yn = () => {
|
|
536
536
|
Q.forEach((e) => window.clearTimeout(e)), Q.clear(), Z.value = [];
|
|
537
|
-
},
|
|
537
|
+
}, Xn = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
|
|
538
538
|
$(e.id);
|
|
539
|
-
}), e.slice(0, 3)),
|
|
540
|
-
let t = e.id ??
|
|
541
|
-
...
|
|
539
|
+
}), e.slice(0, 3)), Zn = (e) => {
|
|
540
|
+
let t = e.id ?? Kn(), n = {
|
|
541
|
+
...Gn,
|
|
542
542
|
...e,
|
|
543
543
|
id: t
|
|
544
544
|
}, r = Z.value.findIndex((e) => e.id === t);
|
|
545
545
|
if (r > -1) {
|
|
546
546
|
let e = [...Z.value];
|
|
547
|
-
e[r] = n, Z.value =
|
|
548
|
-
} else Z.value =
|
|
549
|
-
return
|
|
550
|
-
},
|
|
547
|
+
e[r] = n, Z.value = Xn(e);
|
|
548
|
+
} else Z.value = Xn([n, ...Z.value]);
|
|
549
|
+
return qn(n), t;
|
|
550
|
+
}, Qn = (e, t) => {
|
|
551
551
|
let n = Z.value.findIndex((t) => t.id === e);
|
|
552
552
|
if (n === -1) return;
|
|
553
553
|
let r = Z.value[n];
|
|
@@ -557,18 +557,18 @@ var _n = [
|
|
|
557
557
|
...t,
|
|
558
558
|
id: r.id
|
|
559
559
|
}, a = [...Z.value];
|
|
560
|
-
a[n] = i, Z.value = a,
|
|
561
|
-
},
|
|
560
|
+
a[n] = i, Z.value = a, qn(i);
|
|
561
|
+
}, $n = () => ({
|
|
562
562
|
toasts: Z,
|
|
563
|
-
show:
|
|
564
|
-
hide:
|
|
565
|
-
hideAll:
|
|
566
|
-
update:
|
|
567
|
-
}),
|
|
563
|
+
show: Zn,
|
|
564
|
+
hide: Jn,
|
|
565
|
+
hideAll: Yn,
|
|
566
|
+
update: Qn
|
|
567
|
+
}), er = /* @__PURE__ */ P({
|
|
568
568
|
__name: "SToastProvider",
|
|
569
569
|
setup(e) {
|
|
570
|
-
let { toasts: t, hide: n } =
|
|
571
|
-
|
|
570
|
+
let { toasts: t, hide: n } = $n(), r = O(() => t.value.slice(0, 3)), i = R(!1), a = B({}), o = R(/* @__PURE__ */ new Set()), s = O(() => t.value[0] ?? null), c = O(() => s.value ? a.value[s.value.id] ?? 0 : 0), l = R(0), u = O(() => c.value > 0 ? c.value : l.value);
|
|
571
|
+
un(c, (e) => {
|
|
572
572
|
e > 0 && (l.value = e);
|
|
573
573
|
});
|
|
574
574
|
let d = O(() => {
|
|
@@ -610,7 +610,7 @@ var _n = [
|
|
|
610
610
|
}, b = (e) => {
|
|
611
611
|
e.onSecondaryAction && e.onSecondaryAction();
|
|
612
612
|
};
|
|
613
|
-
return (e, t) => (L(), k(
|
|
613
|
+
return (e, t) => (L(), k(en, { to: "body" }, [M("div", {
|
|
614
614
|
class: "s-ui-toast-provider",
|
|
615
615
|
onMouseenter: m,
|
|
616
616
|
onMouseleave: h
|
|
@@ -618,7 +618,7 @@ var _n = [
|
|
|
618
618
|
key: 0,
|
|
619
619
|
class: "s-ui-toast-provider__list",
|
|
620
620
|
style: I(d.value)
|
|
621
|
-
}, [(L(!0), j(
|
|
621
|
+
}, [(L(!0), j($t, null, sn(r.value, (t, n) => (L(), k(zn, {
|
|
622
622
|
key: t.id,
|
|
623
623
|
index: n,
|
|
624
624
|
expanded: i.value,
|
|
@@ -629,13 +629,13 @@ var _n = [
|
|
|
629
629
|
"offset-y": f(n),
|
|
630
630
|
onHeightChange: (e) => g(t.id, e)
|
|
631
631
|
}, {
|
|
632
|
-
default: G(() => [z(e.$slots, "toast", { toast: t }, () => [t.component ? (L(), k(
|
|
632
|
+
default: G(() => [z(e.$slots, "toast", { toast: t }, () => [t.component ? (L(), k(cn(t.component), an({
|
|
633
633
|
key: 0,
|
|
634
634
|
ref_for: !0
|
|
635
635
|
}, t.componentProps, {
|
|
636
636
|
toast: t,
|
|
637
637
|
onClose: (e) => _(t.id)
|
|
638
|
-
}), null, 16, ["toast", "onClose"])) : (L(), k(H(
|
|
638
|
+
}), null, 16, ["toast", "onClose"])) : (L(), k(H(In), {
|
|
639
639
|
key: 1,
|
|
640
640
|
type: t.type,
|
|
641
641
|
layout: t.layout,
|
|
@@ -689,10 +689,10 @@ var _n = [
|
|
|
689
689
|
"onHeightChange"
|
|
690
690
|
]))), 128))], 4)) : A("", !0)], 32)]));
|
|
691
691
|
}
|
|
692
|
-
}),
|
|
692
|
+
}), tr = 4, nr = 4, rr = 1, ir = "400 12px var(--s-ui-font-family-label)", ar = 4, or = (e, t, n, r, i, a) => {
|
|
693
693
|
let o = Math.min(a, r / 2, i / 2);
|
|
694
694
|
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();
|
|
695
|
-
},
|
|
695
|
+
}, sr = (e) => {
|
|
696
696
|
let t = e.getProps([
|
|
697
697
|
"x",
|
|
698
698
|
"y",
|
|
@@ -703,39 +703,39 @@ var _n = [
|
|
|
703
703
|
width: Math.abs(n - i),
|
|
704
704
|
centerY: r
|
|
705
705
|
};
|
|
706
|
-
},
|
|
707
|
-
let
|
|
708
|
-
if (!
|
|
709
|
-
let
|
|
710
|
-
if (
|
|
711
|
-
let
|
|
712
|
-
|
|
713
|
-
},
|
|
706
|
+
}, cr = (e, t, n, r, i) => {
|
|
707
|
+
let a = sr(t);
|
|
708
|
+
if (!a) return;
|
|
709
|
+
let o = i ? i(n) : `${n}`, s = e.measureText(o).width + tr * 2;
|
|
710
|
+
if (a.width < s + ar * 2) return;
|
|
711
|
+
let c = a.left + a.width / 2;
|
|
712
|
+
or(e, c - s / 2, a.centerY - 20 / 2, s, 20, nr), e.fillStyle = r.background, e.fill(), e.lineWidth = rr, e.strokeStyle = r.border, e.stroke(), e.fillStyle = r.text, e.fillText(o, c, a.centerY);
|
|
713
|
+
}, lr = (e, t) => ({
|
|
714
714
|
id: "segmentedBarBadge",
|
|
715
|
-
afterDatasetsDraw(
|
|
716
|
-
let
|
|
715
|
+
afterDatasetsDraw(n) {
|
|
716
|
+
let r = {
|
|
717
717
|
background: E(D.pieBadgeBackground, e),
|
|
718
718
|
border: E(D.pieBadgeBorder, e),
|
|
719
719
|
text: E(D.pieBadgeText, e)
|
|
720
|
-
}, { ctx:
|
|
721
|
-
|
|
722
|
-
let
|
|
723
|
-
|
|
724
|
-
}),
|
|
720
|
+
}, { ctx: i } = n;
|
|
721
|
+
i.save(), i.font = ir, i.textAlign = "center", i.textBaseline = "middle", n.data.datasets.forEach((e, a) => {
|
|
722
|
+
let o = n.getDatasetMeta(a)?.data[0], s = e.data[0];
|
|
723
|
+
o && typeof s == "number" && s > 0 && cr(i, o, s, r, t);
|
|
724
|
+
}), i.restore();
|
|
725
725
|
}
|
|
726
|
-
}),
|
|
726
|
+
}), ur = 40, dr = 4, fr = 1, pr = [
|
|
727
727
|
"mousemove",
|
|
728
728
|
"mouseout",
|
|
729
729
|
"click",
|
|
730
730
|
"touchstart",
|
|
731
731
|
"touchmove"
|
|
732
|
-
],
|
|
732
|
+
], mr = ({ segments: e, segmentColors: t, colorHostElement: n, skeleton: r = !1, formatValue: i, onSegmentClick: a }) => {
|
|
733
733
|
if (e.length === 0) return null;
|
|
734
|
-
let
|
|
734
|
+
let o = E("--s-ui-color-surface-primary", n), s = e.reduce((e, t) => e + t.value, 0), c = ht({
|
|
735
735
|
kind: "series",
|
|
736
736
|
skeleton: r,
|
|
737
737
|
colorHostElement: n,
|
|
738
|
-
onIndexClick:
|
|
738
|
+
onIndexClick: a
|
|
739
739
|
});
|
|
740
740
|
return {
|
|
741
741
|
type: "bar",
|
|
@@ -746,14 +746,14 @@ var _n = [
|
|
|
746
746
|
data: [e.value],
|
|
747
747
|
backgroundColor: t[n],
|
|
748
748
|
hoverBackgroundColor: t[n],
|
|
749
|
-
borderColor:
|
|
749
|
+
borderColor: o,
|
|
750
750
|
borderWidth: {
|
|
751
|
-
left:
|
|
752
|
-
right:
|
|
751
|
+
left: fr,
|
|
752
|
+
right: fr
|
|
753
753
|
},
|
|
754
754
|
borderSkipped: !1,
|
|
755
|
-
borderRadius:
|
|
756
|
-
barThickness:
|
|
755
|
+
borderRadius: dr,
|
|
756
|
+
barThickness: ur,
|
|
757
757
|
stack: "track"
|
|
758
758
|
}))
|
|
759
759
|
},
|
|
@@ -762,14 +762,14 @@ var _n = [
|
|
|
762
762
|
responsive: !0,
|
|
763
763
|
maintainAspectRatio: !1,
|
|
764
764
|
layout: { padding: 0 },
|
|
765
|
-
events: r ? [] :
|
|
766
|
-
onHover:
|
|
767
|
-
onClick:
|
|
765
|
+
events: r ? [] : pr,
|
|
766
|
+
onHover: c.onHover,
|
|
767
|
+
onClick: c.onClick,
|
|
768
768
|
hover: r ? void 0 : {
|
|
769
769
|
mode: "nearest",
|
|
770
770
|
intersect: !0
|
|
771
771
|
},
|
|
772
|
-
elements: r ? void 0 : { bar: { hoverBorderColor:
|
|
772
|
+
elements: r ? void 0 : { bar: { hoverBorderColor: o } },
|
|
773
773
|
plugins: {
|
|
774
774
|
legend: { display: !1 },
|
|
775
775
|
tooltip: { enabled: !1 }
|
|
@@ -779,7 +779,7 @@ var _n = [
|
|
|
779
779
|
display: !1,
|
|
780
780
|
stacked: !0,
|
|
781
781
|
min: 0,
|
|
782
|
-
max:
|
|
782
|
+
max: s
|
|
783
783
|
},
|
|
784
784
|
y: {
|
|
785
785
|
display: !1,
|
|
@@ -787,9 +787,9 @@ var _n = [
|
|
|
787
787
|
}
|
|
788
788
|
}
|
|
789
789
|
},
|
|
790
|
-
plugins: [...r ? [] : [
|
|
790
|
+
plugins: [...r ? [] : [lr(n, i)], ...c.plugins]
|
|
791
791
|
};
|
|
792
|
-
},
|
|
792
|
+
}, hr = [
|
|
793
793
|
4,
|
|
794
794
|
1,
|
|
795
795
|
2,
|
|
@@ -801,7 +801,7 @@ var _n = [
|
|
|
801
801
|
].map((e, t) => ({
|
|
802
802
|
label: `Series ${t + 1}`,
|
|
803
803
|
value: e
|
|
804
|
-
})),
|
|
804
|
+
})), gr = { class: "s-ui-chart-segmented-bar__canvas-wrap" }, _r = /* @__PURE__ */ P({
|
|
805
805
|
__name: "SChartSegmentedBar",
|
|
806
806
|
props: {
|
|
807
807
|
segments: { default: () => [] },
|
|
@@ -812,11 +812,12 @@ var _n = [
|
|
|
812
812
|
loading: {
|
|
813
813
|
type: Boolean,
|
|
814
814
|
default: !1
|
|
815
|
-
}
|
|
815
|
+
},
|
|
816
|
+
formatValue: { type: Function }
|
|
816
817
|
},
|
|
817
818
|
emits: ["segmentClick"],
|
|
818
819
|
setup(e, { expose: t, emit: n }) {
|
|
819
|
-
let r = n, i =
|
|
820
|
+
let r = n, i = ft, a = W("chartRootRef"), o = W("chartCanvasRef"), s = O(() => e.loading ? hr : e.segments), c = O(() => s.value.map((t, n) => xn(n, a.value, t.fillColor, e.loading))), l = O(() => s.value.map((e, t) => ({
|
|
820
821
|
segment: e,
|
|
821
822
|
segmentIndex: t
|
|
822
823
|
})).filter(({ segment: e }) => e.value > 0)), u = O(() => l.value.map(({ segment: e }) => e)), d = O(() => l.value.map(({ segmentIndex: e }) => c.value[e] ?? "")), f = O(() => {
|
|
@@ -827,20 +828,21 @@ var _n = [
|
|
|
827
828
|
}), p = (e) => {
|
|
828
829
|
let t = l.value[e];
|
|
829
830
|
t && r("segmentClick", t.segmentIndex, t.segment);
|
|
830
|
-
}, m = Tt("onSegmentClick"), h = O(() =>
|
|
831
|
+
}, m = Tt("onSegmentClick"), h = O(() => mr({
|
|
831
832
|
segments: u.value,
|
|
832
833
|
segmentColors: d.value,
|
|
833
834
|
colorHostElement: a.value,
|
|
834
835
|
skeleton: e.loading,
|
|
836
|
+
formatValue: e.formatValue,
|
|
835
837
|
onSegmentClick: m() ? p : void 0
|
|
836
838
|
})), g = O(() => s.value.map((e, t) => ({
|
|
837
839
|
label: e.label,
|
|
838
840
|
color: c.value[t] ?? ""
|
|
839
|
-
}))), { chartInstance: _ } =
|
|
841
|
+
}))), { chartInstance: _ } = mt({
|
|
840
842
|
canvasRef: o,
|
|
841
843
|
config: h,
|
|
842
844
|
enabled: O(() => e.loading || u.value.length > 0)
|
|
843
|
-
}), { exportImage: v, handleLegendItemHover: y } =
|
|
845
|
+
}), { exportImage: v, handleLegendItemHover: y } = gt({
|
|
844
846
|
chartInstance: _,
|
|
845
847
|
canvasRef: o,
|
|
846
848
|
colorHostElement: a
|
|
@@ -852,7 +854,7 @@ var _n = [
|
|
|
852
854
|
ref: a,
|
|
853
855
|
class: F(["s-ui-chart-segmented-bar", { "s-ui-chart-segmented-bar--skeleton": e.loading }]),
|
|
854
856
|
"data-qa": "ui:chart-segmented-bar"
|
|
855
|
-
}, [M("div",
|
|
857
|
+
}, [M("div", gr, [nn(H(pt), {
|
|
856
858
|
loading: e.loading,
|
|
857
859
|
type: H(i).CARTESIAN
|
|
858
860
|
}, {
|
|
@@ -874,23 +876,30 @@ var _n = [
|
|
|
874
876
|
"interactive"
|
|
875
877
|
])) : A("", !0)], 2));
|
|
876
878
|
}
|
|
877
|
-
}),
|
|
879
|
+
}), vr = {
|
|
878
880
|
key: 0,
|
|
879
881
|
class: "s-ui-chart-widget__header"
|
|
880
|
-
},
|
|
882
|
+
}, yr = {
|
|
881
883
|
key: 0,
|
|
882
884
|
class: "s-ui-chart-widget__title-skeleton",
|
|
883
885
|
"aria-hidden": "true"
|
|
884
|
-
},
|
|
886
|
+
}, br = {
|
|
885
887
|
key: 1,
|
|
886
|
-
class: "s-ui-chart-
|
|
887
|
-
},
|
|
888
|
+
class: "s-ui-chart-widget__heading"
|
|
889
|
+
}, xr = { class: "s-ui-chart-widget__title s-ui-typography-label-16-medium" }, Sr = {
|
|
890
|
+
key: 0,
|
|
891
|
+
class: "s-ui-chart-widget__subtitle s-ui-typography-body-12-regular"
|
|
892
|
+
}, Cr = { class: "s-ui-chart-widget__controls" }, wr = {
|
|
888
893
|
key: 1,
|
|
889
894
|
class: "s-ui-chart-widget__content"
|
|
890
|
-
},
|
|
895
|
+
}, Tr = {
|
|
896
|
+
key: 2,
|
|
897
|
+
class: "s-ui-chart-widget__footer"
|
|
898
|
+
}, Er = /* @__PURE__ */ P({
|
|
891
899
|
__name: "SChartWidget",
|
|
892
|
-
props: /*@__PURE__*/
|
|
900
|
+
props: /*@__PURE__*/ rn({
|
|
893
901
|
title: { default: "" },
|
|
902
|
+
subtitle: { default: "" },
|
|
894
903
|
collapsible: {
|
|
895
904
|
type: Boolean,
|
|
896
905
|
default: !1
|
|
@@ -912,28 +921,32 @@ var _n = [
|
|
|
912
921
|
}),
|
|
913
922
|
emits: ["update:collapsed"],
|
|
914
923
|
setup(e) {
|
|
915
|
-
let t =
|
|
924
|
+
let t = ln(e, "collapsed"), n = U(), { t: r } = _n(), i = O(() => !!e.subtitle || !!n.subtitle), a = O(() => !!e.title || !!n.title || i.value || !!n.actions || e.collapsible), o = O(() => !!n.footer), s = O(() => !t.value || !e.collapsible || !e.hideContentWhenCollapsed), c = O(() => r(t.value ? "chartWidget.expand" : "chartWidget.collapse"));
|
|
916
925
|
return (n, r) => (L(), j("div", {
|
|
917
926
|
class: F(["s-ui-chart-widget", { "s-ui-chart-widget--skeleton": e.loading }]),
|
|
918
927
|
"data-qa": "ui:chart-widget"
|
|
919
|
-
}, [
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
928
|
+
}, [
|
|
929
|
+
a.value ? (L(), j("div", vr, [e.loading ? (L(), j("span", yr)) : (L(), j("span", br, [M("span", xr, [z(n.$slots, "title", {}, () => [N(V(e.title), 1)])]), i.value ? (L(), j("span", Sr, [z(n.$slots, "subtitle", {}, () => [N(V(e.subtitle), 1)])])) : A("", !0)])), M("div", Cr, [z(n.$slots, "actions"), e.collapsible ? (L(), k(H(w), {
|
|
930
|
+
key: 0,
|
|
931
|
+
appearance: H(S).OUTLINED,
|
|
932
|
+
variant: H(x).NEUTRAL,
|
|
933
|
+
size: H(C).SMALL,
|
|
934
|
+
icon: t.value ? H(K).chevronDown : H(K).chevronUp,
|
|
935
|
+
"aria-label": c.value,
|
|
936
|
+
"aria-expanded": !t.value,
|
|
937
|
+
onClick: r[0] ||= (e) => t.value = !t.value
|
|
938
|
+
}, null, 8, [
|
|
939
|
+
"appearance",
|
|
940
|
+
"variant",
|
|
941
|
+
"size",
|
|
942
|
+
"icon",
|
|
943
|
+
"aria-label",
|
|
944
|
+
"aria-expanded"
|
|
945
|
+
])) : A("", !0)])])) : A("", !0),
|
|
946
|
+
s.value ? (L(), j("div", wr, [z(n.$slots, "default")])) : A("", !0),
|
|
947
|
+
o.value ? (L(), j("div", Tr, [z(n.$slots, "footer")])) : A("", !0)
|
|
948
|
+
], 2));
|
|
936
949
|
}
|
|
937
950
|
});
|
|
938
951
|
//#endregion
|
|
939
|
-
export { Ot as CALENDAR_WEEK_SLOT_COUNT,
|
|
952
|
+
export { Ot as CALENDAR_WEEK_SLOT_COUNT, It as DAY_TIMELINE_MINUTES, m as DEFAULT_COLOR_PALETTE, p as EAccentColor, S as EButtonAppearance, le as EButtonGroupLayout, C as EButtonSize, x as EButtonVariant, g as EColorFormat, Oe as EConnectedPositionStrategy, J as ENotificationLayout, Y as ENotificationLeftside, q as ENotificationType, a as ESAvatarBadge, s as ESAvatarColor, te as ESAvatarGroupSize, i as ESAvatarIconBackground, r as ESAvatarShape, o as ESAvatarSize, e as ESBadgeColor, t as ESBadgePlacement, Nt as ESCalendarEventDirection, zt as ESCalendarMonthDayTone, _e as ESCardLayout, me as ESCheckboxColor, he as ESCheckboxLabelPlacement, pe as ESCheckboxSize, Pe as ESChipColor, Fe as ESChipSize, h as ESColorPaletteLayout, Ee as ESDropdownBoundary, Te as ESDropdownPlacement, de as ESInlineGroupOrientation, ot as ESInlineInputAppearance, He as ESInlineMessageValidationStatus, Be as ESInputCustomize, We as ESLabelSize, Ge as ESLabelVariant, Ze as ESListGap, Ye as ESListItemVariant, lt as ESPhotoEditShape, ut as ESPhotoEditSize, tt as ESRadioLabelPlacement, ye as ESSegmentControlSize, $e as ESSelectSearchable, xe as ESTabAppearance, Se as ESTabSize, Kt as ESTableCellState, Yt as ESTableCheckState, Wt as ESTableColumnAlign, Bt as ESTableColumnSticky, qt as ESTableDropAction, Xt as ESTableFooterTone, Vt as ESTableRowColor, Gt as ESTableRowHeightMode, Qt as ESTableRowKind, Ht as ESTableRowState, Ut as ESTableRowsDragMode, Jt as ESTableSortDirection, Ae as ESTagColor, je as ESTagSize, rt as ESToggleLabelPlacement, it as ESToggleSize, se as ESelectionFocusMode, ie as ESelectionMode, oe as ESelectionOrientation, kt as EWorkTimeSource, l as MAX_RECENT_COLORS, _ as RECOMMENDED_COLOR_PALETTE, c as SAvatar, ne as SAvatarGroup, n as SBadge, Fn as SBanner, w as SButton, fe as SButtonGroup, At as SCalendarMonth, Mt as SCalendarWeekGrid, ve as SCard, Et as SChartBar, wt as SChartBurnup, xt as SChartHorizontalBar, T as SChartLegend, _t as SChartLine, Ct as SChartMultiLine, St as SChartPie, Dt as SChartProgress, _r as SChartSegmentedBar, yt as SChartStackedArea, bt as SChartStackedBar, Er as SChartWidget, ge as SCheckbox, Ie as SChip, d as SColorArea, v as SColorPalette, f as SColorPicker, u as SColorValues, Pt as SDayTimeline, Re as SDropdown, ze as SDropdownMenu, ue as SInlineGroup, st as SInlineInput, Ue as SInlineMessage, Ve as SInput, Ke as SLabel, Qe as SList, Xe as SListItem, dt as SPhotoEdit, nt as SRadio, be as SSegmentControl, et as SSelect, Ce as STab, Zt as STable, we as STabs, Me as STag, Ne as STagGroup, ct as STextarea, In as SToast, er as SToastProvider, at as SToggle, Le as S_DROPDOWN_SHEET_BREAKPOINT, Vn as TOAST_AUTO_DURATION_MAX_MS, Bn as TOAST_AUTO_DURATION_MIN_MS, Hn as TOAST_AUTO_DURATION_MS_PER_CHAR, Ft as WORK_TIME_SOURCE_COLOR_VARS, Lt as WORK_TIME_SOURCE_ORDER, Rt as buildWorkTimeLegendItems, Un as computeAutoDuration, De as computeConnectedPosition, fn as createUiKit, jt as formatDurationHM, ee as isSameColor, b as normalizeColorValue, y as resolveColorPreview, re as resolveOwnPropOrGroupedOrFallback, pn as setUiKitLocale, mn as uiKitLocaleEn, hn as uiKitLocaleRu, Je as useFlatTreeList, ke as useFloatingOverlay, qe as useSListEndReached, ae as useSelectionGroup, ce as useSelectionGroupItem, $n as useToast, gn as useUiKitI18n };
|