@shtabapp/ui-kit 1.69.1 → 1.71.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.
Files changed (154) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/SChartBar-CUAibXox.js +215 -0
  3. package/dist/SChartBar-xzw8oxXl.cjs +1 -0
  4. package/dist/{SChartBurnup-DyJHdRlf.js → SChartBurnup-C5Z7UDi-.js} +39 -40
  5. package/dist/SChartBurnup-CWSJUoA_.cjs +1 -0
  6. package/dist/{SChartHorizontalBar-Bv90SV6E.cjs → SChartHorizontalBar-0RpJa5EJ.cjs} +1 -1
  7. package/dist/{SChartHorizontalBar-DDo6TfE8.js → SChartHorizontalBar-B9SWFvdN.js} +14 -14
  8. package/dist/SChartLine-3l507dBg.cjs +1 -0
  9. package/dist/SChartLine-v0tkmnN6.js +165 -0
  10. package/dist/SChartMultiLine-CG6dKmWm.js +244 -0
  11. package/dist/SChartMultiLine-vz7JdyA3.cjs +1 -0
  12. package/dist/{SChartPie-Bt3o7LZI.js → SChartPie-0ugeo2fO.js} +72 -58
  13. package/dist/SChartPie-QpnxLQYv.cjs +1 -0
  14. package/dist/{SChartProgress-xxqrj03o.cjs → SChartProgress-9Zzy7E8K.cjs} +1 -1
  15. package/dist/{SChartProgress-uMg4DBpS.js → SChartProgress-DUgSOdv7.js} +15 -15
  16. package/dist/{SChartStackedArea-BQGnKp1i.js → SChartStackedArea-Blpqa23h.js} +40 -40
  17. package/dist/{SChartStackedArea-BNe6FAg8.cjs → SChartStackedArea-C3MezV9k.cjs} +1 -1
  18. package/dist/{SChartStackedBar-fiUU9lNp.js → SChartStackedBar-CCxEXw1H.js} +21 -21
  19. package/dist/{SChartStackedBar-D1G-VloG.cjs → SChartStackedBar-CJ-UdOfv.cjs} +1 -1
  20. package/dist/{buildWorkTimeLegendItems-ChGHTwbn.js → buildWorkTimeLegendItems-CifzZM9C.js} +126 -76
  21. package/dist/buildWorkTimeLegendItems-DPx5Yma0.cjs +1 -0
  22. package/dist/components/SCalendar/index.d.ts +2 -2
  23. package/dist/components/SCalendar/index.d.ts.map +1 -1
  24. package/dist/components/SCalendar/utils/demoCalendarMonthEvents.d.ts +6 -0
  25. package/dist/components/SCalendar/utils/demoCalendarMonthEvents.d.ts.map +1 -0
  26. package/dist/components/SCalendarMonth/SCalendarMonth.types.d.ts +36 -3
  27. package/dist/components/SCalendarMonth/SCalendarMonth.types.d.ts.map +1 -1
  28. package/dist/components/SCalendarMonth/SCalendarMonth.vue.d.ts +6 -1
  29. package/dist/components/SCalendarMonth/SCalendarMonth.vue.d.ts.map +1 -1
  30. package/dist/components/SCalendarMonth/index.d.ts +2 -1
  31. package/dist/components/SCalendarMonth/index.d.ts.map +1 -1
  32. package/dist/components/SChartBar/SChartBar.types.d.ts +2 -0
  33. package/dist/components/SChartBar/SChartBar.types.d.ts.map +1 -1
  34. package/dist/components/SChartBar/SChartBar.vue.d.ts.map +1 -1
  35. package/dist/components/SChartBar/utils/buildBarChartConfig.d.ts +2 -1
  36. package/dist/components/SChartBar/utils/buildBarChartConfig.d.ts.map +1 -1
  37. package/dist/components/SChartBar/utils/demoBarSeries.d.ts +1 -0
  38. package/dist/components/SChartBar/utils/demoBarSeries.d.ts.map +1 -1
  39. package/dist/components/SChartLine/SChartLine.types.d.ts +14 -2
  40. package/dist/components/SChartLine/SChartLine.types.d.ts.map +1 -1
  41. package/dist/components/SChartLine/SChartLine.vue.d.ts.map +1 -1
  42. package/dist/components/SChartLine/index.d.ts +1 -1
  43. package/dist/components/SChartLine/index.d.ts.map +1 -1
  44. package/dist/components/SChartLine/utils/buildLineChartConfig.d.ts +6 -2
  45. package/dist/components/SChartLine/utils/buildLineChartConfig.d.ts.map +1 -1
  46. package/dist/components/SChartLine/utils/demoPoints.d.ts +3 -1
  47. package/dist/components/SChartLine/utils/demoPoints.d.ts.map +1 -1
  48. package/dist/components/SChartMultiLine/SChartMultiLine.types.d.ts +14 -2
  49. package/dist/components/SChartMultiLine/SChartMultiLine.types.d.ts.map +1 -1
  50. package/dist/components/SChartMultiLine/SChartMultiLine.vue.d.ts.map +1 -1
  51. package/dist/components/SChartMultiLine/index.d.ts +1 -1
  52. package/dist/components/SChartMultiLine/index.d.ts.map +1 -1
  53. package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts +5 -1
  54. package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts.map +1 -1
  55. package/dist/components/SChartMultiLine/utils/demoMultiLineSeries.d.ts +1 -0
  56. package/dist/components/SChartMultiLine/utils/demoMultiLineSeries.d.ts.map +1 -1
  57. package/dist/components/SChartPie/SChartPie.types.d.ts +6 -0
  58. package/dist/components/SChartPie/SChartPie.types.d.ts.map +1 -1
  59. package/dist/components/SChartPie/SChartPie.vue.d.ts.map +1 -1
  60. package/dist/components/SChartPie/utils/buildPieChartConfig.d.ts +3 -1
  61. package/dist/components/SChartPie/utils/buildPieChartConfig.d.ts.map +1 -1
  62. package/dist/components/SChartSegmentedBar/SChartSegmentedBar.types.d.ts +2 -0
  63. package/dist/components/SChartSegmentedBar/SChartSegmentedBar.types.d.ts.map +1 -1
  64. package/dist/components/SChartSegmentedBar/SChartSegmentedBar.vue.d.ts.map +1 -1
  65. package/dist/components/SChartSegmentedBar/utils/buildSegmentedBarChartConfig.d.ts +2 -1
  66. package/dist/components/SChartSegmentedBar/utils/buildSegmentedBarChartConfig.d.ts.map +1 -1
  67. package/dist/components/SChartSegmentedBar/utils/createSegmentedBarBadgePlugin.d.ts +1 -1
  68. package/dist/components/SChartSegmentedBar/utils/createSegmentedBarBadgePlugin.d.ts.map +1 -1
  69. package/dist/components/SChartStackedArea/utils/demoStackedSeries.d.ts +4 -0
  70. package/dist/components/SChartStackedArea/utils/demoStackedSeries.d.ts.map +1 -1
  71. package/dist/components/SChartWidget/SChartWidget.types.d.ts +2 -0
  72. package/dist/components/SChartWidget/SChartWidget.types.d.ts.map +1 -1
  73. package/dist/components/SChartWidget/SChartWidget.vue.d.ts +7 -3
  74. package/dist/components/SChartWidget/SChartWidget.vue.d.ts.map +1 -1
  75. package/dist/{createChartCrosshairPlugin-DfYzBie2.cjs → createChartCrosshairPlugin-B4e8d8OF.cjs} +1 -1
  76. package/dist/{createChartCrosshairPlugin-DU5grSok.js → createChartCrosshairPlugin-C2NUAO5s.js} +1 -1
  77. package/dist/createChartMarkersPlugin-Cg1yGzxW.cjs +1 -0
  78. package/dist/createChartMarkersPlugin-DkXituwE.js +43 -0
  79. package/dist/entries/calendar.cjs +1 -1
  80. package/dist/entries/calendar.d.ts +2 -2
  81. package/dist/entries/calendar.d.ts.map +1 -1
  82. package/dist/entries/calendar.js +2 -2
  83. package/dist/entries/chart-bar.cjs +1 -1
  84. package/dist/entries/chart-bar.js +1 -1
  85. package/dist/entries/chart-burnup.cjs +1 -1
  86. package/dist/entries/chart-burnup.js +1 -1
  87. package/dist/entries/chart-horizontal-bar.cjs +1 -1
  88. package/dist/entries/chart-horizontal-bar.js +1 -1
  89. package/dist/entries/chart-line.cjs +1 -1
  90. package/dist/entries/chart-line.d.ts +1 -1
  91. package/dist/entries/chart-line.d.ts.map +1 -1
  92. package/dist/entries/chart-line.js +1 -1
  93. package/dist/entries/chart-multi-line.cjs +1 -1
  94. package/dist/entries/chart-multi-line.d.ts +1 -1
  95. package/dist/entries/chart-multi-line.d.ts.map +1 -1
  96. package/dist/entries/chart-multi-line.js +1 -1
  97. package/dist/entries/chart-pie.cjs +1 -1
  98. package/dist/entries/chart-pie.js +1 -1
  99. package/dist/entries/chart-progress.cjs +1 -1
  100. package/dist/entries/chart-progress.js +1 -1
  101. package/dist/entries/chart-stacked-area.cjs +1 -1
  102. package/dist/entries/chart-stacked-area.js +1 -1
  103. package/dist/entries/chart-stacked-bar.cjs +1 -1
  104. package/dist/entries/chart-stacked-bar.js +1 -1
  105. package/dist/entries/separator.cjs +1 -0
  106. package/dist/entries/separator.js +2 -0
  107. package/dist/index.cjs +1 -1
  108. package/dist/index.d.ts +3 -3
  109. package/dist/index.d.ts.map +1 -1
  110. package/dist/index.js +162 -149
  111. package/dist/resolveBarStackedSeriesColor-DM7Ax0-s.js +11 -0
  112. package/dist/resolveBarStackedSeriesColor-z3NP5vAS.cjs +1 -0
  113. package/dist/resolveChartValueRange-DBCYLCXs.cjs +1 -0
  114. package/dist/resolveChartValueRange-DZybnmaX.js +10 -0
  115. package/dist/{resolveSeriesPaletteColor-DcLSyk-D.js → resolveSeriesPaletteColor-B7wHDj1L.js} +1 -1
  116. package/dist/resolveSeriesPaletteColor-D0XlU5vT.cjs +1 -0
  117. package/dist/{resolveStackedChartContext-CQbgdV55.cjs → resolveStackedChartContext-Br3N7ISo.cjs} +1 -1
  118. package/dist/{resolveStackedChartContext-CIKVXkDn.js → resolveStackedChartContext-DxJNWqwE.js} +1 -1
  119. package/dist/uikit-components.css +1 -1
  120. package/dist/{useChartInteractivity-BATdT86l.js → useChartInteractivity-Cl06JL4l.js} +121 -108
  121. package/dist/useChartInteractivity-LbJiqlvI.cjs +1 -0
  122. package/dist/utils/chart/chart.types.d.ts +14 -0
  123. package/dist/utils/chart/chart.types.d.ts.map +1 -1
  124. package/dist/utils/chart/core/chartInteractivity.d.ts.map +1 -1
  125. package/dist/utils/chart/core/createChartMarkersPlugin.d.ts +8 -0
  126. package/dist/utils/chart/core/createChartMarkersPlugin.d.ts.map +1 -0
  127. package/dist/utils/chart/core/createZeroLinePlugin.d.ts +3 -0
  128. package/dist/utils/chart/core/createZeroLinePlugin.d.ts.map +1 -0
  129. package/dist/utils/chart/core/resolveChartValueRange.d.ts +11 -0
  130. package/dist/utils/chart/core/resolveChartValueRange.d.ts.map +1 -0
  131. package/dist/utils/chart/index.d.ts +7 -2
  132. package/dist/utils/chart/index.d.ts.map +1 -1
  133. package/dist/utils/chart/line/createChartAreaFillGradient.d.ts +2 -0
  134. package/dist/utils/chart/line/createChartAreaFillGradient.d.ts.map +1 -1
  135. package/dist/utils/chart/pie/createPieSegmentBadgePlugin.d.ts +1 -1
  136. package/dist/utils/chart/pie/createPieSegmentBadgePlugin.d.ts.map +1 -1
  137. package/dist/utils/chart/pie/createPieTooltipCallbacks.d.ts +1 -1
  138. package/dist/utils/chart/pie/createPieTooltipCallbacks.d.ts.map +1 -1
  139. package/package.json +3 -3
  140. package/dist/SChartBar-BVgwPlYi.js +0 -215
  141. package/dist/SChartBar-CBU1uCuL.cjs +0 -1
  142. package/dist/SChartBurnup-Ch3UMa9w.cjs +0 -1
  143. package/dist/SChartLine-Cs1JzPEK.js +0 -129
  144. package/dist/SChartLine-nIGaef_o.cjs +0 -1
  145. package/dist/SChartMultiLine-BzoW4ETf.cjs +0 -1
  146. package/dist/SChartMultiLine-DqCQ7FCv.js +0 -204
  147. package/dist/SChartPie-Bv5Obcwb.cjs +0 -1
  148. package/dist/buildWorkTimeLegendItems-DjhLKbAP.cjs +0 -1
  149. package/dist/createChartAreaFillGradient-BDmME9Gy.js +0 -17
  150. package/dist/createChartAreaFillGradient-BwsojVzU.cjs +0 -1
  151. package/dist/resolveBarStackedSeriesColor-HDSkh6Mw.cjs +0 -1
  152. package/dist/resolveBarStackedSeriesColor-LpVh1SvQ.js +0 -11
  153. package/dist/resolveSeriesPaletteColor-B5qoBbXN.cjs +0 -1
  154. 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 { C as ft, S as E, g as D, n as pt, r as mt, t as ht, w as gt } from "./useChartInteractivity-BATdT86l.js";
36
- import { t as _t } from "./SChartLine-Cs1JzPEK.js";
37
- import { t as vt } from "./resolveSeriesPaletteColor-DcLSyk-D.js";
38
- import { t as yt } from "./SChartStackedArea-BQGnKp1i.js";
39
- import { t as bt } from "./SChartStackedBar-fiUU9lNp.js";
40
- import { t as xt } from "./SChartHorizontalBar-DDo6TfE8.js";
41
- import { t as St } from "./SChartPie-Bt3o7LZI.js";
42
- import { t as Ct } from "./SChartMultiLine-DqCQ7FCv.js";
43
- import { t as wt } from "./SChartBurnup-DyJHdRlf.js";
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-v0tkmnN6.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-CG6dKmWm.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-BVgwPlYi.js";
46
- import { t as Dt } from "./SChartProgress-uMg4DBpS.js";
47
- import { a as Ot, c as kt, i as At, l as jt, n as Mt, o as Nt, r as Pt, s as Ft, t as It, u as Lt } from "./buildWorkTimeLegendItems-ChGHTwbn.js";
48
- import { a as Rt, c as zt, d as Bt, f as Vt, i as Ht, l as Ut, n as Wt, o as Gt, p as Kt, r as qt, s as Jt, t as Yt, u as Xt } from "./STable-CunQFK-x.js";
49
- import { Fragment as Zt, Teleport as Qt, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createSlots as $t, createTextVNode as N, createVNode as en, defineComponent as P, mergeModels as tn, mergeProps as nn, normalizeClass as F, normalizeStyle as I, onMounted as rn, openBlock as L, ref as R, renderList as an, renderSlot as z, resolveDynamicComponent as on, shallowRef as B, toDisplayString as V, unref as H, useModel as sn, useSlots as U, useTemplateRef as W, watch as cn, withCtx as G } from "vue";
50
- import { ESIconName as K, SIcon as ln, createUiKit as un, setUiKitLocale as dn, uiKitLocaleEn as fn, uiKitLocaleRu as pn, useUiKitI18n as mn, useUiKitI18n as hn } from "@shtabapp/ui-kit-primitives";
51
- import { useResizeObserver as gn } from "@vueuse/core";
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 _n = [
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
- ], vn = [
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
- ], yn = (e, t, n, r = !1) => vt(e, t, n, r, {
74
- palette: _n,
75
- paletteFallback: _n[0],
76
- skeletonPalette: vn,
77
- skeletonFallback: vn[0]
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
- }({}), bn = {
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
- }, xn = (e, t) => t || bn[e], Sn = ["role"], Cn = { class: "s-ui-notification__body" }, wn = {
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
- }, Tn = {
96
+ }, Dn = {
97
97
  key: 0,
98
98
  class: "s-ui-notification__icon"
99
- }, En = { class: "s-ui-notification__content" }, Dn = { class: "s-ui-notification__title-row" }, On = {
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
- }, kn = {
102
+ }, jn = {
103
103
  key: 0,
104
104
  class: "s-ui-notification__description s-ui-typography-label-12-medium"
105
- }, An = {
105
+ }, Mn = {
106
106
  key: 1,
107
107
  class: "s-ui-notification__actions-stack"
108
- }, jn = {
108
+ }, Nn = {
109
109
  key: 1,
110
110
  class: "s-ui-notification__actions-row"
111
- }, Mn = /* @__PURE__ */ P({
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(() => xn(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), _ = () => {
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", Cn, [
170
- d.value ? (L(), j("div", wn, [e.leftside === H(Y).ICON ? (L(), j("div", Tn, [en(H(ln), {
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", En, [
188
- M("div", Dn, [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), {
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", On, [e.description || H(r).description ? (L(), j("span", kn, [z(t.$slots, "description", {}, () => [N(V(e.description), 1)])])) : A("", !0), e.linkText ? (L(), k(H(w), {
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", An, [e.showPrimaryButton && e.primaryButtonText ? (L(), k(H(w), {
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", jn, [e.showPrimaryButton && e.primaryButtonText ? (L(), k(H(w), {
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, Sn));
276
+ ])], 14, wn));
277
277
  }
278
- }), Nn = /* @__PURE__ */ P({
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(Mn, {
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
- }, $t({ _: 2 }, [H(r).title ? {
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
- }), Pn = /* @__PURE__ */ P({
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(Mn, {
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
- }, $t({ _: 2 }, [H(r).title ? {
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
- }), Fn = .05, In = [
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
- ], Ln = /* @__PURE__ */ P({
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 * Fn), c = O(() => ({
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 gn(r, (e) => {
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
- }), rn(() => {
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, In));
507
+ }, [z(t.$slots, "default")], 512)], 12, Rn));
508
508
  }
509
- }), Rn = 4e3, zn = 1e4, Bn = 50, Vn = (e, t) => {
510
- let n = Rn + (e.length + (t?.length ?? 0)) * 50;
511
- return n > 1e4 ? zn : n;
512
- }, Z = B([]), Q = /* @__PURE__ */ new Map(), Hn = 0, Un = {
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
- }, Wn = () => `toast-${Date.now()}-${++Hn}`, $ = (e) => {
518
+ }, Kn = () => `toast-${Date.now()}-${++Wn}`, $ = (e) => {
519
519
  let t = Q.get(e);
520
520
  t && (window.clearTimeout(t), Q.delete(e));
521
- }, Gn = (e) => {
521
+ }, qn = (e) => {
522
522
  $(e.id);
523
- let t = e.duration === void 0 ? Vn(e.title, e.description) : e.duration;
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
- Kn(e.id);
526
+ Jn(e.id);
527
527
  }, t);
528
528
  Q.set(e.id, n);
529
529
  }
530
- }, Kn = (e) => {
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
- }, qn = () => {
535
+ }, Yn = () => {
536
536
  Q.forEach((e) => window.clearTimeout(e)), Q.clear(), Z.value = [];
537
- }, Jn = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
537
+ }, Xn = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
538
538
  $(e.id);
539
- }), e.slice(0, 3)), Yn = (e) => {
540
- let t = e.id ?? Wn(), n = {
541
- ...Un,
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 = Jn(e);
548
- } else Z.value = Jn([n, ...Z.value]);
549
- return Gn(n), t;
550
- }, Xn = (e, t) => {
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, Gn(i);
561
- }, Zn = () => ({
560
+ a[n] = i, Z.value = a, qn(i);
561
+ }, $n = () => ({
562
562
  toasts: Z,
563
- show: Yn,
564
- hide: Kn,
565
- hideAll: qn,
566
- update: Xn
567
- }), Qn = /* @__PURE__ */ P({
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 } = Zn(), 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
- cn(c, (e) => {
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(Qt, { to: "body" }, [M("div", {
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(Zt, null, an(r.value, (t, n) => (L(), k(Ln, {
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(on(t.component), nn({
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(Pn), {
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
- }), $n = 4, er = 4, tr = 1, nr = "400 12px var(--s-ui-font-family-label)", rr = 4, ir = (e, t, n, r, i, a) => {
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
- }, ar = (e) => {
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
- }, or = (e, t, n, r) => {
707
- let i = ar(t);
708
- if (!i) return;
709
- let a = `${n}`, o = e.measureText(a).width + $n * 2;
710
- if (i.width < o + rr * 2) return;
711
- let s = i.left + i.width / 2;
712
- ir(e, s - o / 2, i.centerY - 20 / 2, o, 20, er), e.fillStyle = r.background, e.fill(), e.lineWidth = tr, e.strokeStyle = r.border, e.stroke(), e.fillStyle = r.text, e.fillText(a, s, i.centerY);
713
- }, sr = (e) => ({
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(t) {
716
- let n = {
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: r } = t;
721
- r.save(), r.font = nr, r.textAlign = "center", r.textBaseline = "middle", t.data.datasets.forEach((e, i) => {
722
- let a = t.getDatasetMeta(i)?.data[0], o = e.data[0];
723
- a && typeof o == "number" && o > 0 && or(r, a, o, n);
724
- }), r.restore();
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
- }), cr = 40, lr = 4, ur = 1, dr = [
726
+ }), ur = 40, dr = 4, fr = 1, pr = [
727
727
  "mousemove",
728
728
  "mouseout",
729
729
  "click",
730
730
  "touchstart",
731
731
  "touchmove"
732
- ], fr = ({ segments: e, segmentColors: t, colorHostElement: n, skeleton: r = !1, onSegmentClick: i }) => {
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 a = E("--s-ui-color-surface-primary", n), o = e.reduce((e, t) => e + t.value, 0), s = mt({
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: i
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: a,
749
+ borderColor: o,
750
750
  borderWidth: {
751
- left: ur,
752
- right: ur
751
+ left: fr,
752
+ right: fr
753
753
  },
754
754
  borderSkipped: !1,
755
- borderRadius: lr,
756
- barThickness: cr,
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 ? [] : dr,
766
- onHover: s.onHover,
767
- onClick: s.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: a } },
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: o
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 ? [] : [sr(n)], ...s.plugins]
790
+ plugins: [...r ? [] : [lr(n, i)], ...c.plugins]
791
791
  };
792
- }, pr = [
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
- })), mr = { class: "s-ui-chart-segmented-bar__canvas-wrap" }, hr = /* @__PURE__ */ P({
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 = gt, a = W("chartRootRef"), o = W("chartCanvasRef"), s = O(() => e.loading ? pr : e.segments), c = O(() => s.value.map((t, n) => yn(n, a.value, t.fillColor, e.loading))), l = O(() => s.value.map((e, t) => ({
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(() => fr({
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: _ } = pt({
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 } = ht({
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", mr, [en(H(ft), {
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
- }), gr = {
879
+ }), vr = {
878
880
  key: 0,
879
881
  class: "s-ui-chart-widget__header"
880
- }, _r = {
882
+ }, yr = {
881
883
  key: 0,
882
884
  class: "s-ui-chart-widget__title-skeleton",
883
885
  "aria-hidden": "true"
884
- }, vr = {
886
+ }, br = {
885
887
  key: 1,
886
- class: "s-ui-chart-widget__title s-ui-typography-label-16-medium"
887
- }, yr = { class: "s-ui-chart-widget__controls" }, br = {
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
- }, xr = /* @__PURE__ */ P({
895
+ }, Tr = {
896
+ key: 2,
897
+ class: "s-ui-chart-widget__footer"
898
+ }, Er = /* @__PURE__ */ P({
891
899
  __name: "SChartWidget",
892
- props: /*@__PURE__*/ tn({
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 = sn(e, "collapsed"), n = U(), { t: r } = hn(), i = O(() => !!e.title || !!n.title || !!n.actions || e.collapsible), a = O(() => !t.value || !e.collapsible || !e.hideContentWhenCollapsed), o = O(() => r(t.value ? "chartWidget.expand" : "chartWidget.collapse"));
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
- }, [i.value ? (L(), j("div", gr, [e.loading ? (L(), j("span", _r)) : (L(), j("span", vr, [z(n.$slots, "title", {}, () => [N(V(e.title), 1)])])), M("div", yr, [z(n.$slots, "actions"), e.collapsible ? (L(), k(H(w), {
920
- key: 0,
921
- appearance: H(S).OUTLINED,
922
- variant: H(x).NEUTRAL,
923
- size: H(C).SMALL,
924
- icon: t.value ? H(K).chevronDown : H(K).chevronUp,
925
- "aria-label": o.value,
926
- "aria-expanded": !t.value,
927
- onClick: r[0] ||= (e) => t.value = !t.value
928
- }, null, 8, [
929
- "appearance",
930
- "variant",
931
- "size",
932
- "icon",
933
- "aria-label",
934
- "aria-expanded"
935
- ])) : A("", !0)])])) : A("", !0), a.value ? (L(), j("div", br, [z(n.$slots, "default")])) : A("", !0)], 2));
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, Pt 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, _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, Wt as ESTableCellState, qt as ESTableCheckState, Ht as ESTableColumnAlign, Rt as ESTableColumnSticky, Gt as ESTableDropAction, Jt as ESTableFooterTone, zt as ESTableRowColor, Ut as ESTableRowHeightMode, Xt as ESTableRowKind, Bt as ESTableRowState, Vt as ESTableRowsDragMode, Kt 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, Nn as SBanner, w as SButton, fe as SButtonGroup, jt as SCalendarMonth, At 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, hr as SChartSegmentedBar, yt as SChartStackedArea, bt as SChartStackedBar, xr as SChartWidget, ge as SCheckbox, Ie as SChip, d as SColorArea, v as SColorPalette, f as SColorPicker, u as SColorValues, Mt 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, Yt as STable, we as STabs, Me as STag, Ne as STagGroup, ct as STextarea, Pn as SToast, Qn as SToastProvider, at as SToggle, Le as S_DROPDOWN_SHEET_BREAKPOINT, zn as TOAST_AUTO_DURATION_MAX_MS, Rn as TOAST_AUTO_DURATION_MIN_MS, Bn as TOAST_AUTO_DURATION_MS_PER_CHAR, Nt as WORK_TIME_SOURCE_COLOR_VARS, Ft as WORK_TIME_SOURCE_ORDER, It as buildWorkTimeLegendItems, Vn as computeAutoDuration, De as computeConnectedPosition, un as createUiKit, Lt as formatDurationHM, ee as isSameColor, b as normalizeColorValue, y as resolveColorPreview, re as resolveOwnPropOrGroupedOrFallback, dn as setUiKitLocale, fn as uiKitLocaleEn, pn as uiKitLocaleRu, Je as useFlatTreeList, ke as useFloatingOverlay, qe as useSListEndReached, ae as useSelectionGroup, ce as useSelectionGroupItem, Zn as useToast, mn as useUiKitI18n };
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 };