@shtabapp/ui-kit 1.45.0 → 1.47.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 (129) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/dist/{SChartBurnup-DhuCNXhU.cjs → SChartBurnup-BhCS06uF.cjs} +1 -1
  3. package/dist/SChartBurnup-CG239MJx.js +251 -0
  4. package/dist/SChartHorizontalBar-DnKbf_9E.cjs +1 -0
  5. package/dist/SChartHorizontalBar-DqTZ4H-9.js +175 -0
  6. package/dist/SChartLegend-DGtjd6zV.cjs +1 -0
  7. package/dist/SChartLegend-oZoF8XK7.js +42 -0
  8. package/dist/SChartLine-CEnRbnVo.cjs +1 -0
  9. package/dist/SChartLine-CQhbtAjJ.js +129 -0
  10. package/dist/SChartMultiLine-B6GldTYv.cjs +1 -0
  11. package/dist/SChartMultiLine-CPEglksk.js +198 -0
  12. package/dist/SChartPie-CQyENNM6.cjs +1 -0
  13. package/dist/SChartPie-DXHCXNEs.js +168 -0
  14. package/dist/{SChartProgress-Zdphet8I.js → SChartProgress-BwDuidgB.js} +54 -50
  15. package/dist/{SChartProgress-QsGTZ8kT.cjs → SChartProgress-CMcM6yvT.cjs} +1 -1
  16. package/dist/SChartSkeletonHost-BlIYGj-7.cjs +1 -0
  17. package/dist/{SChartSkeletonHost-CecfQ3Ye.js → SChartSkeletonHost-DSFyP_DN.js} +150 -89
  18. package/dist/SChartStackedArea-BR7W44h6.js +254 -0
  19. package/dist/SChartStackedArea-DHSamqau.cjs +1 -0
  20. package/dist/SChartStackedBar-B3HcO4UQ.cjs +1 -0
  21. package/dist/SChartStackedBar-BbYna5KB.js +245 -0
  22. package/dist/{SColorPicker-ksmNupJa.js → SColorPicker-BqsD-5xA.js} +1 -1
  23. package/dist/{SColorPicker-BIrkgFys.cjs → SColorPicker-CeKB3QS1.cjs} +1 -1
  24. package/dist/SList-DAzztC-7.js +514 -0
  25. package/dist/SList-S18K8mlH.cjs +1 -0
  26. package/dist/{SSelect-DS2EGmjV.js → SSelect-Bntb-dgY.js} +1 -1
  27. package/dist/{SSelect-CkV6gq4S.cjs → SSelect-DcTEwHx6.cjs} +1 -1
  28. package/dist/components/SChartBurnup/SChartBurnup.vue.d.ts +4 -1
  29. package/dist/components/SChartBurnup/SChartBurnup.vue.d.ts.map +1 -1
  30. package/dist/components/SChartHorizontalBar/SChartHorizontalBar.vue.d.ts +9 -2
  31. package/dist/components/SChartHorizontalBar/SChartHorizontalBar.vue.d.ts.map +1 -1
  32. package/dist/components/SChartHorizontalBar/utils/buildSChartHorizontalBarConfig.d.ts +1 -0
  33. package/dist/components/SChartHorizontalBar/utils/buildSChartHorizontalBarConfig.d.ts.map +1 -1
  34. package/dist/components/SChartLegend/SChartLegend.types.d.ts +2 -0
  35. package/dist/components/SChartLegend/SChartLegend.types.d.ts.map +1 -1
  36. package/dist/components/SChartLegend/SChartLegend.vue.d.ts +5 -1
  37. package/dist/components/SChartLegend/SChartLegend.vue.d.ts.map +1 -1
  38. package/dist/components/SChartLine/SChartLine.vue.d.ts +4 -1
  39. package/dist/components/SChartLine/SChartLine.vue.d.ts.map +1 -1
  40. package/dist/components/SChartMultiLine/SChartMultiLine.vue.d.ts +9 -2
  41. package/dist/components/SChartMultiLine/SChartMultiLine.vue.d.ts.map +1 -1
  42. package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts +2 -1
  43. package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts.map +1 -1
  44. package/dist/components/SChartPie/SChartPie.vue.d.ts +9 -2
  45. package/dist/components/SChartPie/SChartPie.vue.d.ts.map +1 -1
  46. package/dist/components/SChartPie/utils/buildPieChartConfig.d.ts +2 -1
  47. package/dist/components/SChartPie/utils/buildPieChartConfig.d.ts.map +1 -1
  48. package/dist/components/SChartProgress/SChartProgress.vue.d.ts +4 -1
  49. package/dist/components/SChartProgress/SChartProgress.vue.d.ts.map +1 -1
  50. package/dist/components/SChartSegmentedBar/SChartSegmentedBar.vue.d.ts +9 -2
  51. package/dist/components/SChartSegmentedBar/SChartSegmentedBar.vue.d.ts.map +1 -1
  52. package/dist/components/SChartSegmentedBar/utils/buildSegmentedBarChartConfig.d.ts +2 -1
  53. package/dist/components/SChartSegmentedBar/utils/buildSegmentedBarChartConfig.d.ts.map +1 -1
  54. package/dist/components/SChartStackedArea/SChartStackedArea.vue.d.ts +9 -2
  55. package/dist/components/SChartStackedArea/SChartStackedArea.vue.d.ts.map +1 -1
  56. package/dist/components/SChartStackedArea/utils/buildStackedAreaChartConfig.d.ts +2 -1
  57. package/dist/components/SChartStackedArea/utils/buildStackedAreaChartConfig.d.ts.map +1 -1
  58. package/dist/components/SChartStackedBar/SChartStackedBar.vue.d.ts +9 -2
  59. package/dist/components/SChartStackedBar/SChartStackedBar.vue.d.ts.map +1 -1
  60. package/dist/components/SChartStackedBar/utils/buildStackedBarChartConfig.d.ts +2 -1
  61. package/dist/components/SChartStackedBar/utils/buildStackedBarChartConfig.d.ts.map +1 -1
  62. package/dist/components/SList/SList.types.d.ts +11 -0
  63. package/dist/components/SList/SList.types.d.ts.map +1 -1
  64. package/dist/components/SList/SList.vue.d.ts +11 -3
  65. package/dist/components/SList/SList.vue.d.ts.map +1 -1
  66. package/dist/composables/useChartInteractivity.d.ts +14 -0
  67. package/dist/composables/useChartInteractivity.d.ts.map +1 -0
  68. package/dist/composables/useFlatTreeList.d.ts +4 -1
  69. package/dist/composables/useFlatTreeList.d.ts.map +1 -1
  70. package/dist/composables/useHasListener.d.ts +2 -0
  71. package/dist/composables/useHasListener.d.ts.map +1 -0
  72. package/dist/{createChartCrosshairPlugin-HfMMUP5O.cjs → createChartCrosshairPlugin-DdLyEWI0.cjs} +1 -1
  73. package/dist/{createChartCrosshairPlugin-BC0IDCn3.js → createChartCrosshairPlugin-q3U4ePnf.js} +2 -2
  74. package/dist/entries/chart-burnup.cjs +1 -1
  75. package/dist/entries/chart-burnup.js +1 -1
  76. package/dist/entries/chart-horizontal-bar.cjs +1 -1
  77. package/dist/entries/chart-horizontal-bar.js +1 -1
  78. package/dist/entries/chart-line.cjs +1 -1
  79. package/dist/entries/chart-line.js +1 -1
  80. package/dist/entries/chart-multi-line.cjs +1 -1
  81. package/dist/entries/chart-multi-line.js +1 -1
  82. package/dist/entries/chart-pie.cjs +1 -1
  83. package/dist/entries/chart-pie.js +1 -1
  84. package/dist/entries/chart-progress.cjs +1 -1
  85. package/dist/entries/chart-progress.js +1 -1
  86. package/dist/entries/chart-stacked-area.cjs +1 -1
  87. package/dist/entries/chart-stacked-area.js +1 -1
  88. package/dist/entries/chart-stacked-bar.cjs +1 -1
  89. package/dist/entries/chart-stacked-bar.js +1 -1
  90. package/dist/entries/color-picker.cjs +1 -1
  91. package/dist/entries/color-picker.js +1 -1
  92. package/dist/entries/list.cjs +1 -1
  93. package/dist/entries/list.js +1 -1
  94. package/dist/entries/select.cjs +1 -1
  95. package/dist/entries/select.js +1 -1
  96. package/dist/index.cjs +1 -1
  97. package/dist/index.js +184 -140
  98. package/dist/resolveSeriesPaletteColor-YACKW1NO.cjs +1 -0
  99. package/dist/{resolveSeriesPaletteColor-m8HQ9qwV.js → resolveSeriesPaletteColor-fuhGbjFO.js} +1 -1
  100. package/dist/{resolveStackedChartContext-DdraOueU.js → resolveStackedChartContext-BiIGZ2or.js} +5 -5
  101. package/dist/{resolveStackedChartContext-BywAnZUu.cjs → resolveStackedChartContext-Bp75eU_I.cjs} +1 -1
  102. package/dist/useHasListener-BPgtbbo6.cjs +1 -0
  103. package/dist/useHasListener-RSjlUyqH.js +8 -0
  104. package/dist/utils/chart/core/chartCssVariables.d.ts +2 -0
  105. package/dist/utils/chart/core/chartCssVariables.d.ts.map +1 -1
  106. package/dist/utils/chart/core/chartInteractivity.d.ts +41 -0
  107. package/dist/utils/chart/core/chartInteractivity.d.ts.map +1 -0
  108. package/dist/utils/chart/horizontalBar/buildHorizontalBarChartConfig.d.ts +2 -1
  109. package/dist/utils/chart/horizontalBar/buildHorizontalBarChartConfig.d.ts.map +1 -1
  110. package/package.json +3 -3
  111. package/dist/SChartBurnup-DYBnJMnm.js +0 -247
  112. package/dist/SChartHorizontalBar-DMBzyz9x.cjs +0 -1
  113. package/dist/SChartHorizontalBar-bm3Jexa3.js +0 -156
  114. package/dist/SChartLegend-Chr0IZWN.js +0 -30
  115. package/dist/SChartLegend-DXFXKXCm.cjs +0 -1
  116. package/dist/SChartLine-CiREb4H_.js +0 -125
  117. package/dist/SChartLine-P57XRR2o.cjs +0 -1
  118. package/dist/SChartMultiLine-3cdB0U12.js +0 -166
  119. package/dist/SChartMultiLine-BW1kITlR.cjs +0 -1
  120. package/dist/SChartPie-55wx2zRi.cjs +0 -1
  121. package/dist/SChartPie-Dc_gjzIl.js +0 -143
  122. package/dist/SChartSkeletonHost-CfM0zolj.cjs +0 -1
  123. package/dist/SChartStackedArea-BaJ963lU.cjs +0 -1
  124. package/dist/SChartStackedArea-cjN9gECV.js +0 -219
  125. package/dist/SChartStackedBar-0jGICBA0.js +0 -217
  126. package/dist/SChartStackedBar-j9WyOnsL.cjs +0 -1
  127. package/dist/SList-BtfUntkw.js +0 -437
  128. package/dist/SList-fZQdPkFG.cjs +0 -1
  129. package/dist/resolveSeriesPaletteColor-BcFyrhh0.cjs +0 -1
package/dist/index.js CHANGED
@@ -1,6 +1,6 @@
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-q1HSZPqy.js";
3
- import { i as l, n as u, r as d, t as f } from "./SColorPicker-ksmNupJa.js";
3
+ import { i as l, n as u, r as d, t as f } from "./SColorPicker-BqsD-5xA.js";
4
4
  import { a as p, i as m, n as h, o as g, r as _, t as v } from "./SColorPalette-D2WCADDX.js";
5
5
  import { a as y, i as b, r as ee } from "./colorValue-CSh0chxp.js";
6
6
  import { n as te, t as ne } from "./SAvatarGroup-By-5Ub6i.js";
@@ -19,35 +19,36 @@ import { n as Te, r as Ee, t as De } from "./STag-CluIVRKi.js";
19
19
  import { t as Oe } from "./STagGroup-wSpc3guU.js";
20
20
  import { n as ke, r as Ae, t as je } from "./SChip-TxpPE0VS.js";
21
21
  import { t as Me } from "./SDropdown-CTQ5Qlez.js";
22
- import { n as Ne, r as Pe, t as Fe } from "./SSelect-DS2EGmjV.js";
22
+ import { n as Ne, r as Pe, t as Fe } from "./SSelect-Bntb-dgY.js";
23
23
  import { n as Ie, t as Le } from "./SInput-CkanJfLx.js";
24
24
  import { n as Re, t as ze } from "./SInlineMessage-Dirk5RwO.js";
25
25
  import { n as Be, r as Ve, t as He } from "./SLabel-yzcX4qp5.js";
26
- import { a as Ue, o as We, s as Ge, t as Ke } from "./SList-BtfUntkw.js";
26
+ import { a as Ue, o as We, s as Ge, t as Ke } from "./SList-DAzztC-7.js";
27
27
  import { n as qe, t as Je } from "./SListItem-BRXZEePg.js";
28
28
  import { n as Ye, t as Xe } from "./SRadio-Db_YLcne.js";
29
29
  import { n as Ze, t as Qe } from "./SToggle-T7FKzMSo.js";
30
30
  import { n as $e, t as et } from "./SInlineInput-DHq5BNPn.js";
31
31
  import { t as tt } from "./STextarea-ASdLqfpC.js";
32
32
  import { n as nt, r as rt, t as it } from "./SPhotoEdit-bXKHcP3x.js";
33
- import { S as T, g as E, n as at, r as ot, t as st } from "./SChartSkeletonHost-CecfQ3Ye.js";
34
- import { t as ct } from "./SChartLine-CiREb4H_.js";
35
- import { t as lt } from "./resolveSeriesPaletteColor-m8HQ9qwV.js";
36
- import { t as ut } from "./SChartStackedArea-cjN9gECV.js";
37
- import { t as dt } from "./SChartStackedBar-0jGICBA0.js";
38
- import { t as ft } from "./SChartHorizontalBar-bm3Jexa3.js";
39
- import { t as pt } from "./SChartPie-Dc_gjzIl.js";
40
- import { t as mt } from "./SChartMultiLine-3cdB0U12.js";
41
- import { t as ht } from "./SChartBurnup-DYBnJMnm.js";
42
- import { t as gt } from "./SChartProgress-Zdphet8I.js";
43
- import { t as _t } from "./SChartLegend-Chr0IZWN.js";
44
- import { Fragment as vt, Teleport as yt, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createSlots as M, createTextVNode as N, createVNode as P, defineComponent as F, mergeModels as bt, mergeProps as xt, normalizeClass as I, normalizeStyle as L, onMounted as St, openBlock as R, ref as z, renderList as Ct, renderSlot as B, resolveDynamicComponent as wt, shallowRef as Tt, toDisplayString as V, unref as H, useModel as Et, useSlots as U, useTemplateRef as Dt, watch as Ot, withCtx as W } from "vue";
45
- import { ESIconName as G, SIcon as kt, createUiKit as At, setUiKitLocale as jt, uiKitLocaleEn as Mt, uiKitLocaleRu as Nt, useUiKitI18n as Pt, useUiKitI18n as Ft } from "@shtabapp/ui-kit-primitives";
46
- import { useResizeObserver as It } from "@vueuse/core";
33
+ import { a as at, i as ot, n as st, r as ct, t as lt, v as T, w as E } from "./SChartSkeletonHost-DSFyP_DN.js";
34
+ import { t as ut } from "./SChartLine-CQhbtAjJ.js";
35
+ import { t as dt } from "./resolveSeriesPaletteColor-fuhGbjFO.js";
36
+ import { t as ft } from "./SChartStackedArea-BR7W44h6.js";
37
+ import { t as pt } from "./SChartStackedBar-BbYna5KB.js";
38
+ import { t as mt } from "./SChartHorizontalBar-DqTZ4H-9.js";
39
+ import { t as ht } from "./SChartPie-DXHCXNEs.js";
40
+ import { t as gt } from "./SChartMultiLine-CPEglksk.js";
41
+ import { t as _t } from "./SChartBurnup-CG239MJx.js";
42
+ import { t as vt } from "./SChartProgress-BwDuidgB.js";
43
+ import { t as yt } from "./SChartLegend-oZoF8XK7.js";
44
+ import { t as bt } from "./useHasListener-RSjlUyqH.js";
45
+ import { Fragment as xt, Teleport as St, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createSlots as M, createTextVNode as N, createVNode as P, defineComponent as F, mergeModels as Ct, mergeProps as wt, normalizeClass as I, normalizeStyle as L, onMounted as Tt, openBlock as R, ref as z, renderList as Et, renderSlot as B, resolveDynamicComponent as Dt, shallowRef as Ot, toDisplayString as V, unref as H, useModel as kt, useSlots as U, useTemplateRef as At, watch as jt, withCtx as W } from "vue";
46
+ import { ESIconName as G, SIcon as Mt, createUiKit as Nt, setUiKitLocale as Pt, uiKitLocaleEn as Ft, uiKitLocaleRu as It, useUiKitI18n as Lt, useUiKitI18n as Rt } from "@shtabapp/ui-kit-primitives";
47
+ import { useResizeObserver as zt } from "@vueuse/core";
47
48
  export * from "@shtabapp/ui-kit-primitives";
48
49
  export * from "@shtabapp/ui-kit-tokens";
49
50
  //#region src/utils/chart/segmentedBar/resolveSegmentedBarSegmentColor.ts
50
- var Lt = [
51
+ var Bt = [
51
52
  "--s-ui-chart-segmented-bar-palette-1",
52
53
  "--s-ui-chart-segmented-bar-palette-2",
53
54
  "--s-ui-chart-segmented-bar-palette-3",
@@ -56,7 +57,7 @@ var Lt = [
56
57
  "--s-ui-chart-segmented-bar-palette-6",
57
58
  "--s-ui-chart-segmented-bar-palette-7",
58
59
  "--s-ui-chart-segmented-bar-palette-8"
59
- ], Rt = [
60
+ ], Vt = [
60
61
  "--s-ui-chart-segmented-bar-skeleton-palette-1",
61
62
  "--s-ui-chart-segmented-bar-skeleton-palette-2",
62
63
  "--s-ui-chart-segmented-bar-skeleton-palette-3",
@@ -65,11 +66,11 @@ var Lt = [
65
66
  "--s-ui-chart-segmented-bar-skeleton-palette-6",
66
67
  "--s-ui-chart-segmented-bar-skeleton-palette-7",
67
68
  "--s-ui-chart-segmented-bar-skeleton-palette-8"
68
- ], zt = (e, t, n, r = !1) => lt(e, t, n, r, {
69
- palette: Lt,
70
- paletteFallback: Lt[0],
71
- skeletonPalette: Rt,
72
- skeletonFallback: Rt[0]
69
+ ], Ht = (e, t, n, r = !1) => dt(e, t, n, r, {
70
+ palette: Bt,
71
+ paletteFallback: Bt[0],
72
+ skeletonPalette: Vt,
73
+ skeletonFallback: Vt[0]
73
74
  }), K = /* @__PURE__ */ function(e) {
74
75
  return e.INFO_ACCENT = "info-accent", e.INFO_NORMAL = "info-normal", e.SUCCESS = "success", e.WARNING = "warning", e.DANGER = "danger", e.BILLING = "billing", e;
75
76
  }({}), q = /* @__PURE__ */ function(e) {
@@ -78,32 +79,32 @@ var Lt = [
78
79
  return e.ICON = "icon", e.AVATAR = "avatar", e;
79
80
  }({}), Y = /* @__PURE__ */ function(e) {
80
81
  return e.BANNER = "banner", e.TOAST = "toast", e;
81
- }({}), Bt = {
82
+ }({}), Ut = {
82
83
  [K.INFO_ACCENT]: G.infoCircle,
83
84
  [K.INFO_NORMAL]: G.infoCircle,
84
85
  [K.SUCCESS]: G.checkCircle,
85
86
  [K.WARNING]: G.alertCircle,
86
87
  [K.DANGER]: G.dangerCircleFill,
87
88
  [K.BILLING]: G.infoCircle
88
- }, Vt = (e, t) => t || Bt[e], Ht = ["role"], Ut = { class: "s-ui-notification__body" }, Wt = {
89
+ }, Wt = (e, t) => t || Ut[e], Gt = ["role"], Kt = { class: "s-ui-notification__body" }, qt = {
89
90
  key: 0,
90
91
  class: "s-ui-notification__leftside"
91
- }, Gt = {
92
+ }, Jt = {
92
93
  key: 0,
93
94
  class: "s-ui-notification__icon"
94
- }, Kt = { class: "s-ui-notification__content" }, qt = { class: "s-ui-notification__title-row" }, Jt = { class: "s-ui-notification__title s-ui-typography-label-14-medium" }, Yt = {
95
+ }, Yt = { class: "s-ui-notification__content" }, Xt = { class: "s-ui-notification__title-row" }, Zt = { class: "s-ui-notification__title s-ui-typography-label-14-medium" }, Qt = {
95
96
  key: 0,
96
97
  class: "s-ui-notification__description-block"
97
- }, Xt = {
98
+ }, $t = {
98
99
  key: 0,
99
100
  class: "s-ui-notification__description s-ui-typography-label-12-medium"
100
- }, Zt = {
101
+ }, en = {
101
102
  key: 1,
102
103
  class: "s-ui-notification__actions-stack"
103
- }, Qt = {
104
+ }, tn = {
104
105
  key: 1,
105
106
  class: "s-ui-notification__actions-row"
106
- }, $t = /* @__PURE__ */ F({
107
+ }, nn = /* @__PURE__ */ F({
107
108
  __name: "SNotification",
108
109
  props: {
109
110
  type: { default: () => K.INFO_ACCENT },
@@ -143,7 +144,7 @@ var Lt = [
143
144
  ]), a = D(() => {
144
145
  let t = {};
145
146
  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;
146
- }), s = D(() => e.type === K.DANGER ? "alert" : "status"), l = D(() => Vt(e.type, e.icon)), u = D(() => e.type === K.BILLING), d = D(() => !!(e.leftside === J.AVATAR && e.avatar || e.leftside === J.ICON)), f = D(() => !!(e.description || e.linkText || r.description)), p = D(() => e.showPrimaryButton && (e.primaryButtonText || e.secondaryButtonText)), m = D(() => e.showPrimaryButton && e.primaryButtonText || e.closable), h = D(() => e.type === K.BILLING ? C.MAJOR : C.OUTLINED), g = D(() => e.type === K.BILLING ? S.BILLING : S.MAIN), _ = () => {
147
+ }), s = D(() => e.type === K.DANGER ? "alert" : "status"), l = D(() => Wt(e.type, e.icon)), u = D(() => e.type === K.BILLING), d = D(() => !!(e.leftside === J.AVATAR && e.avatar || e.leftside === J.ICON)), f = D(() => !!(e.description || e.linkText || r.description)), p = D(() => e.showPrimaryButton && (e.primaryButtonText || e.secondaryButtonText)), m = D(() => e.showPrimaryButton && e.primaryButtonText || e.closable), h = D(() => e.type === K.BILLING ? C.MAJOR : C.OUTLINED), g = D(() => e.type === K.BILLING ? S.BILLING : S.MAIN), _ = () => {
147
148
  n("close");
148
149
  }, v = () => {
149
150
  n("linkClick");
@@ -156,8 +157,8 @@ var Lt = [
156
157
  class: I(["s-ui-notification", i.value]),
157
158
  style: L(a.value),
158
159
  role: s.value
159
- }, [j("div", Ut, [
160
- d.value ? (R(), A("div", Wt, [e.leftside === H(J).ICON ? (R(), A("div", Gt, [P(H(kt), {
160
+ }, [j("div", Kt, [
161
+ d.value ? (R(), A("div", qt, [e.leftside === H(J).ICON ? (R(), A("div", Jt, [P(H(Mt), {
161
162
  name: l.value,
162
163
  size: 16,
163
164
  billing: u.value
@@ -174,8 +175,8 @@ var Lt = [
174
175
  "badge",
175
176
  "size"
176
177
  ])) : k("", !0)])) : k("", !0),
177
- j("div", Kt, [
178
- j("div", qt, [j("span", Jt, [B(t.$slots, "title", {}, () => [N(V(e.title), 1)])]), e.layout === H(q).VERTICAL && e.closable ? (R(), O(H(w), {
178
+ j("div", Yt, [
179
+ j("div", Xt, [j("span", Zt, [B(t.$slots, "title", {}, () => [N(V(e.title), 1)])]), e.layout === H(q).VERTICAL && e.closable ? (R(), O(H(w), {
179
180
  key: 0,
180
181
  class: "s-ui-notification__close",
181
182
  appearance: H(C).BARE,
@@ -190,7 +191,7 @@ var Lt = [
190
191
  "size",
191
192
  "aria-label"
192
193
  ])) : k("", !0)]),
193
- f.value ? (R(), A("div", Yt, [e.description || H(r).description ? (R(), A("span", Xt, [B(t.$slots, "description", {}, () => [N(V(e.description), 1)])])) : k("", !0), e.linkText ? (R(), O(H(w), {
194
+ f.value ? (R(), A("div", Qt, [e.description || H(r).description ? (R(), A("span", $t, [B(t.$slots, "description", {}, () => [N(V(e.description), 1)])])) : k("", !0), e.linkText ? (R(), O(H(w), {
194
195
  key: 1,
195
196
  class: "s-ui-notification__link",
196
197
  appearance: H(C).BARE,
@@ -205,7 +206,7 @@ var Lt = [
205
206
  "variant",
206
207
  "size"
207
208
  ])) : k("", !0)])) : k("", !0),
208
- e.layout === H(q).VERTICAL && p.value ? (R(), A("div", Zt, [e.showPrimaryButton && e.primaryButtonText ? (R(), O(H(w), {
209
+ e.layout === H(q).VERTICAL && p.value ? (R(), A("div", en, [e.showPrimaryButton && e.primaryButtonText ? (R(), O(H(w), {
209
210
  key: 0,
210
211
  appearance: h.value,
211
212
  variant: g.value,
@@ -233,7 +234,7 @@ var Lt = [
233
234
  "size"
234
235
  ])) : k("", !0)])) : k("", !0)
235
236
  ]),
236
- e.layout === H(q).HORIZONTAL && m.value ? (R(), A("div", Qt, [e.showPrimaryButton && e.primaryButtonText ? (R(), O(H(w), {
237
+ e.layout === H(q).HORIZONTAL && m.value ? (R(), A("div", tn, [e.showPrimaryButton && e.primaryButtonText ? (R(), O(H(w), {
237
238
  key: 0,
238
239
  appearance: h.value,
239
240
  variant: g.value,
@@ -261,9 +262,9 @@ var Lt = [
261
262
  "size",
262
263
  "aria-label"
263
264
  ])) : k("", !0)])) : k("", !0)
264
- ])], 14, Ht));
265
+ ])], 14, Gt));
265
266
  }
266
- }), en = /* @__PURE__ */ F({
267
+ }), rn = /* @__PURE__ */ F({
267
268
  __name: "SBanner",
268
269
  props: {
269
270
  type: { default: () => K.INFO_ACCENT },
@@ -295,7 +296,7 @@ var Lt = [
295
296
  ],
296
297
  setup(e, { emit: t }) {
297
298
  let n = t, r = U();
298
- return (t, i) => (R(), O($t, {
299
+ return (t, i) => (R(), O(nn, {
299
300
  class: "s-ui-banner",
300
301
  "data-qa": "ui:banner",
301
302
  type: e.type,
@@ -343,7 +344,7 @@ var Lt = [
343
344
  "maxWidth"
344
345
  ]));
345
346
  }
346
- }), tn = /* @__PURE__ */ F({
347
+ }), an = /* @__PURE__ */ F({
347
348
  __name: "SToast",
348
349
  props: {
349
350
  type: { default: () => K.INFO_ACCENT },
@@ -375,7 +376,7 @@ var Lt = [
375
376
  ],
376
377
  setup(e, { emit: t }) {
377
378
  let n = t, r = U(), i = D(() => e.width ?? 360);
378
- return (t, a) => (R(), O($t, {
379
+ return (t, a) => (R(), O(nn, {
379
380
  class: "s-ui-toast",
380
381
  "data-qa": "ui:toast",
381
382
  type: e.type,
@@ -423,13 +424,13 @@ var Lt = [
423
424
  "width"
424
425
  ]));
425
426
  }
426
- }), nn = .05, rn = [
427
+ }), on = .05, sn = [
427
428
  "data-mounted",
428
429
  "data-front",
429
430
  "data-expanded",
430
431
  "data-removed",
431
432
  "data-visible"
432
- ], an = /* @__PURE__ */ F({
433
+ ], cn = /* @__PURE__ */ F({
433
434
  __name: "SToastProviderToast",
434
435
  props: {
435
436
  index: {},
@@ -442,7 +443,7 @@ var Lt = [
442
443
  },
443
444
  emits: ["heightChange"],
444
445
  setup(e, { emit: t }) {
445
- let n = t, r = z(null), i = z(0), a = z(!1), o = D(() => e.index === 0), s = D(() => 1 - e.index * nn), c = D(() => ({
446
+ let n = t, r = z(null), i = z(0), a = z(!1), o = D(() => e.index === 0), s = D(() => 1 - e.index * on), c = D(() => ({
446
447
  "--s-ui-toast-provider-toasts-before": String(e.index),
447
448
  "--s-ui-toast-provider-lift-amount": `${e.stackPeek * -1}px`,
448
449
  "--s-ui-toast-provider-front-toast-height": `${e.frontToastHeight}px`,
@@ -451,10 +452,10 @@ var Lt = [
451
452
  "--s-ui-toast-provider-stack-scale": String(s.value),
452
453
  zIndex: String(1e3 - e.index)
453
454
  }));
454
- return It(r, (e) => {
455
+ return zt(r, (e) => {
455
456
  let t = e[0]?.contentRect.height ?? 0;
456
457
  t !== i.value && (i.value = t, n("heightChange", t));
457
- }), St(() => {
458
+ }), Tt(() => {
458
459
  requestAnimationFrame(() => {
459
460
  requestAnimationFrame(() => {
460
461
  a.value = !0;
@@ -472,50 +473,50 @@ var Lt = [
472
473
  ref_key: "contentRef",
473
474
  ref: r,
474
475
  class: "s-ui-toast-provider__toast-content"
475
- }, [B(t.$slots, "default")], 512)], 12, rn));
476
+ }, [B(t.$slots, "default")], 512)], 12, sn));
476
477
  }
477
- }), on = 4e3, sn = 1e4, cn = 50, ln = (e, t) => {
478
- let n = on + (e.length + (t?.length ?? 0)) * 50;
479
- return n > 1e4 ? sn : n;
480
- }, X = Tt([]), Z = /* @__PURE__ */ new Map(), un = 0, dn = {
478
+ }), ln = 4e3, un = 1e4, dn = 50, fn = (e, t) => {
479
+ let n = ln + (e.length + (t?.length ?? 0)) * 50;
480
+ return n > 1e4 ? un : n;
481
+ }, X = Ot([]), Z = /* @__PURE__ */ new Map(), pn = 0, mn = {
481
482
  type: K.INFO_ACCENT,
482
483
  layout: q.HORIZONTAL,
483
484
  leftside: J.ICON,
484
485
  showPrimaryButton: !1,
485
486
  closable: !0
486
- }, fn = () => `toast-${Date.now()}-${++un}`, Q = (e) => {
487
+ }, hn = () => `toast-${Date.now()}-${++pn}`, Q = (e) => {
487
488
  let t = Z.get(e);
488
489
  t && (window.clearTimeout(t), Z.delete(e));
489
- }, pn = (e) => {
490
+ }, gn = (e) => {
490
491
  Q(e.id);
491
- let t = e.duration === void 0 ? ln(e.title, e.description) : e.duration;
492
+ let t = e.duration === void 0 ? fn(e.title, e.description) : e.duration;
492
493
  if (t > 0) {
493
494
  let n = window.setTimeout(() => {
494
- mn(e.id);
495
+ _n(e.id);
495
496
  }, t);
496
497
  Z.set(e.id, n);
497
498
  }
498
- }, mn = (e) => {
499
+ }, _n = (e) => {
499
500
  let t = X.value.findIndex((t) => t.id === e);
500
501
  if (t === -1) return;
501
502
  let n = X.value[t];
502
503
  n && (Q(e), n.onClose && n.onClose(), X.value = X.value.filter((t) => t.id !== e));
503
- }, hn = () => {
504
+ }, vn = () => {
504
505
  Z.forEach((e) => window.clearTimeout(e)), Z.clear(), X.value = [];
505
- }, gn = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
506
+ }, yn = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
506
507
  Q(e.id);
507
- }), e.slice(0, 3)), _n = (e) => {
508
- let t = e.id ?? fn(), n = {
509
- ...dn,
508
+ }), e.slice(0, 3)), bn = (e) => {
509
+ let t = e.id ?? hn(), n = {
510
+ ...mn,
510
511
  ...e,
511
512
  id: t
512
513
  }, r = X.value.findIndex((e) => e.id === t);
513
514
  if (r > -1) {
514
515
  let e = [...X.value];
515
- e[r] = n, X.value = gn(e);
516
- } else X.value = gn([n, ...X.value]);
517
- return pn(n), t;
518
- }, vn = (e, t) => {
516
+ e[r] = n, X.value = yn(e);
517
+ } else X.value = yn([n, ...X.value]);
518
+ return gn(n), t;
519
+ }, xn = (e, t) => {
519
520
  let n = X.value.findIndex((t) => t.id === e);
520
521
  if (n === -1) return;
521
522
  let r = X.value[n];
@@ -525,18 +526,18 @@ var Lt = [
525
526
  ...t,
526
527
  id: r.id
527
528
  }, a = [...X.value];
528
- a[n] = i, X.value = a, pn(i);
529
- }, yn = () => ({
529
+ a[n] = i, X.value = a, gn(i);
530
+ }, Sn = () => ({
530
531
  toasts: X,
531
- show: _n,
532
- hide: mn,
533
- hideAll: hn,
534
- update: vn
535
- }), bn = /* @__PURE__ */ F({
532
+ show: bn,
533
+ hide: _n,
534
+ hideAll: vn,
535
+ update: xn
536
+ }), Cn = /* @__PURE__ */ F({
536
537
  __name: "SToastProvider",
537
538
  setup(e) {
538
- let { toasts: t, hide: n } = yn(), r = D(() => t.value.slice(0, 3)), i = z(!1), a = Tt({}), o = z(/* @__PURE__ */ new Set()), s = D(() => t.value[0] ?? null), c = D(() => s.value ? a.value[s.value.id] ?? 0 : 0), l = z(0), u = D(() => c.value > 0 ? c.value : l.value);
539
- Ot(c, (e) => {
539
+ let { toasts: t, hide: n } = Sn(), r = D(() => t.value.slice(0, 3)), i = z(!1), a = Ot({}), o = z(/* @__PURE__ */ new Set()), s = D(() => t.value[0] ?? null), c = D(() => s.value ? a.value[s.value.id] ?? 0 : 0), l = z(0), u = D(() => c.value > 0 ? c.value : l.value);
540
+ jt(c, (e) => {
540
541
  e > 0 && (l.value = e);
541
542
  });
542
543
  let d = D(() => {
@@ -578,7 +579,7 @@ var Lt = [
578
579
  }, b = (e) => {
579
580
  e.onSecondaryAction && e.onSecondaryAction();
580
581
  };
581
- return (e, t) => (R(), O(yt, { to: "body" }, [j("div", {
582
+ return (e, t) => (R(), O(St, { to: "body" }, [j("div", {
582
583
  class: "s-ui-toast-provider",
583
584
  onMouseenter: m,
584
585
  onMouseleave: h
@@ -586,7 +587,7 @@ var Lt = [
586
587
  key: 0,
587
588
  class: "s-ui-toast-provider__list",
588
589
  style: L(d.value)
589
- }, [(R(!0), A(vt, null, Ct(r.value, (t, n) => (R(), O(an, {
590
+ }, [(R(!0), A(xt, null, Et(r.value, (t, n) => (R(), O(cn, {
590
591
  key: t.id,
591
592
  index: n,
592
593
  expanded: i.value,
@@ -597,13 +598,13 @@ var Lt = [
597
598
  "offset-y": f(n),
598
599
  onHeightChange: (e) => g(t.id, e)
599
600
  }, {
600
- default: W(() => [B(e.$slots, "toast", { toast: t }, () => [t.component ? (R(), O(wt(t.component), xt({
601
+ default: W(() => [B(e.$slots, "toast", { toast: t }, () => [t.component ? (R(), O(Dt(t.component), wt({
601
602
  key: 0,
602
603
  ref_for: !0
603
604
  }, t.componentProps, {
604
605
  toast: t,
605
606
  onClose: (e) => _(t.id)
606
- }), null, 16, ["toast", "onClose"])) : (R(), O(H(tn), {
607
+ }), null, 16, ["toast", "onClose"])) : (R(), O(H(an), {
607
608
  key: 1,
608
609
  type: t.type,
609
610
  layout: t.layout,
@@ -655,10 +656,10 @@ var Lt = [
655
656
  "onHeightChange"
656
657
  ]))), 128))], 4)) : k("", !0)], 32)]));
657
658
  }
658
- }), xn = 4, Sn = 4, Cn = 1, wn = "400 12px var(--s-ui-font-family-label)", Tn = 4, En = (e, t, n, r, i, a) => {
659
+ }), wn = 4, Tn = 4, En = 1, Dn = "400 12px var(--s-ui-font-family-label)", On = 4, kn = (e, t, n, r, i, a) => {
659
660
  let o = Math.min(a, r / 2, i / 2);
660
661
  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();
661
- }, Dn = (e) => {
662
+ }, An = (e) => {
662
663
  let t = e.getProps([
663
664
  "x",
664
665
  "y",
@@ -669,29 +670,40 @@ var Lt = [
669
670
  width: Math.abs(n - i),
670
671
  centerY: r
671
672
  };
672
- }, On = (e, t, n, r) => {
673
- let i = Dn(t);
673
+ }, jn = (e, t, n, r) => {
674
+ let i = An(t);
674
675
  if (!i) return;
675
- let a = `${n}`, o = e.measureText(a).width + xn * 2;
676
- if (i.width < o + Tn * 2) return;
676
+ let a = `${n}`, o = e.measureText(a).width + wn * 2;
677
+ if (i.width < o + On * 2) return;
677
678
  let s = i.left + i.width / 2;
678
- En(e, s - o / 2, i.centerY - 20 / 2, o, 20, Sn), e.fillStyle = r.background, e.fill(), e.lineWidth = Cn, e.strokeStyle = r.border, e.stroke(), e.fillStyle = r.text, e.fillText(a, s, i.centerY);
679
- }, kn = (e) => ({
679
+ kn(e, s - o / 2, i.centerY - 20 / 2, o, 20, Tn), e.fillStyle = r.background, e.fill(), e.lineWidth = En, e.strokeStyle = r.border, e.stroke(), e.fillStyle = r.text, e.fillText(a, s, i.centerY);
680
+ }, Mn = (e) => ({
680
681
  id: "segmentedBarBadge",
681
682
  afterDatasetsDraw(t) {
682
683
  let n = {
683
- background: T(E.pieBadgeBackground, e),
684
- border: T(E.pieBadgeBorder, e),
685
- text: T(E.pieBadgeText, e)
684
+ background: E(T.pieBadgeBackground, e),
685
+ border: E(T.pieBadgeBorder, e),
686
+ text: E(T.pieBadgeText, e)
686
687
  }, { ctx: r } = t;
687
- r.save(), r.font = wn, r.textAlign = "center", r.textBaseline = "middle", t.data.datasets.forEach((e, i) => {
688
+ r.save(), r.font = Dn, r.textAlign = "center", r.textBaseline = "middle", t.data.datasets.forEach((e, i) => {
688
689
  let a = t.getDatasetMeta(i)?.data[0], o = e.data[0];
689
- a && typeof o == "number" && o > 0 && On(r, a, o, n);
690
+ a && typeof o == "number" && o > 0 && jn(r, a, o, n);
690
691
  }), r.restore();
691
692
  }
692
- }), An = 40, jn = 4, Mn = 1, Nn = ({ segments: e, segmentColors: t, colorHostElement: n, skeleton: r = !1 }) => {
693
+ }), Nn = 40, Pn = 4, $ = 1, Fn = [
694
+ "mousemove",
695
+ "mouseout",
696
+ "click",
697
+ "touchstart",
698
+ "touchmove"
699
+ ], In = ({ segments: e, segmentColors: t, colorHostElement: n, skeleton: r = !1, onSegmentClick: i }) => {
693
700
  if (e.length === 0) return null;
694
- let i = T("--s-ui-color-surface-primary", n), a = e.reduce((e, t) => e + t.value, 0);
701
+ let a = E("--s-ui-color-surface-primary", n), o = e.reduce((e, t) => e + t.value, 0), s = at({
702
+ kind: "series",
703
+ skeleton: r,
704
+ colorHostElement: n,
705
+ onIndexClick: i
706
+ });
695
707
  return {
696
708
  type: "bar",
697
709
  data: {
@@ -701,14 +713,14 @@ var Lt = [
701
713
  data: [e.value],
702
714
  backgroundColor: t[n],
703
715
  hoverBackgroundColor: t[n],
704
- borderColor: i,
716
+ borderColor: a,
705
717
  borderWidth: {
706
- left: Mn,
707
- right: Mn
718
+ left: $,
719
+ right: $
708
720
  },
709
721
  borderSkipped: !1,
710
- borderRadius: jn,
711
- barThickness: An,
722
+ borderRadius: Pn,
723
+ barThickness: Nn,
712
724
  stack: "track"
713
725
  }))
714
726
  },
@@ -717,7 +729,14 @@ var Lt = [
717
729
  responsive: !0,
718
730
  maintainAspectRatio: !1,
719
731
  layout: { padding: 0 },
720
- events: [],
732
+ events: r ? [] : Fn,
733
+ onHover: s.onHover,
734
+ onClick: s.onClick,
735
+ hover: r ? void 0 : {
736
+ mode: "nearest",
737
+ intersect: !0
738
+ },
739
+ elements: r ? void 0 : { bar: { hoverBorderColor: a } },
721
740
  plugins: {
722
741
  legend: { display: !1 },
723
742
  tooltip: { enabled: !1 }
@@ -727,7 +746,7 @@ var Lt = [
727
746
  display: !1,
728
747
  stacked: !0,
729
748
  min: 0,
730
- max: a
749
+ max: o
731
750
  },
732
751
  y: {
733
752
  display: !1,
@@ -735,9 +754,9 @@ var Lt = [
735
754
  }
736
755
  }
737
756
  },
738
- plugins: r ? [] : [kn(n)]
757
+ plugins: [...r ? [] : [Mn(n)], ...s.plugins]
739
758
  };
740
- }, $ = [
759
+ }, Ln = [
741
760
  4,
742
761
  1,
743
762
  2,
@@ -749,7 +768,7 @@ var Lt = [
749
768
  ].map((e, t) => ({
750
769
  label: `Series ${t + 1}`,
751
770
  value: e
752
- })), Pn = { class: "s-ui-chart-segmented-bar__canvas-wrap" }, Fn = /* @__PURE__ */ F({
771
+ })), Rn = { class: "s-ui-chart-segmented-bar__canvas-wrap" }, zn = /* @__PURE__ */ F({
753
772
  __name: "SChartSegmentedBar",
754
773
  props: {
755
774
  segments: { default: () => [] },
@@ -762,57 +781,82 @@ var Lt = [
762
781
  default: !1
763
782
  }
764
783
  },
765
- setup(e) {
766
- let t = at, n = Dt("chartRootRef"), r = Dt("chartCanvasRef"), i = D(() => e.loading ? $ : e.segments.filter((e) => e.value > 0)), a = D(() => i.value.map((t, r) => zt(r, n.value, t.fillColor, e.loading))), o = D(() => Nn({
767
- segments: i.value,
768
- segmentColors: a.value,
769
- colorHostElement: n.value,
770
- skeleton: e.loading
771
- })), s = D(() => (e.loading ? $ : e.segments).map((t, r) => ({
772
- label: t.label,
773
- color: zt(r, n.value, t.fillColor, e.loading)
774
- }))), c = D(() => e.showLegend && s.value.length > 0);
775
- return ot({
776
- canvasRef: r,
777
- config: o,
778
- enabled: D(() => e.loading || i.value.length > 0)
779
- }), (i, a) => (R(), A("div", {
784
+ emits: ["segmentClick"],
785
+ setup(e, { expose: t, emit: n }) {
786
+ let r = n, i = st, a = At("chartRootRef"), o = At("chartCanvasRef"), s = D(() => e.loading ? Ln : e.segments), c = D(() => s.value.map((t, n) => Ht(n, a.value, t.fillColor, e.loading))), l = D(() => s.value.map((e, t) => ({
787
+ segment: e,
788
+ segmentIndex: t
789
+ })).filter(({ segment: e }) => e.value > 0)), u = D(() => l.value.map(({ segment: e }) => e)), d = D(() => l.value.map(({ segmentIndex: e }) => c.value[e] ?? "")), f = D(() => {
790
+ let e = /* @__PURE__ */ new Map();
791
+ return l.value.forEach(({ segmentIndex: t }, n) => {
792
+ e.set(t, n);
793
+ }), e;
794
+ }), p = (e) => {
795
+ let t = l.value[e];
796
+ t && r("segmentClick", t.segmentIndex, t.segment);
797
+ }, m = bt("onSegmentClick"), h = D(() => In({
798
+ segments: u.value,
799
+ segmentColors: d.value,
800
+ colorHostElement: a.value,
801
+ skeleton: e.loading,
802
+ onSegmentClick: m() ? p : void 0
803
+ })), g = D(() => s.value.map((e, t) => ({
804
+ label: e.label,
805
+ color: c.value[t] ?? ""
806
+ }))), { chartInstance: _ } = ot({
807
+ canvasRef: o,
808
+ config: h,
809
+ enabled: D(() => e.loading || u.value.length > 0)
810
+ }), { exportImage: v, handleLegendItemHover: y } = ct({
811
+ chartInstance: _,
812
+ canvasRef: o,
813
+ colorHostElement: a
814
+ }), b = (e) => {
815
+ y(e === null ? null : f.value.get(e) ?? null);
816
+ };
817
+ return t({ exportImage: v }), (t, n) => (R(), A("div", {
780
818
  ref_key: "chartRootRef",
781
- ref: n,
819
+ ref: a,
782
820
  class: I(["s-ui-chart-segmented-bar", { "s-ui-chart-segmented-bar--skeleton": e.loading }]),
783
821
  "data-qa": "ui:chart-segmented-bar"
784
- }, [j("div", Pn, [P(H(st), {
822
+ }, [j("div", Rn, [P(H(lt), {
785
823
  loading: e.loading,
786
- type: H(t).CARTESIAN
824
+ type: H(i).CARTESIAN
787
825
  }, {
788
826
  default: W(() => [j("canvas", {
789
827
  ref_key: "chartCanvasRef",
790
- ref: r,
828
+ ref: o,
791
829
  class: "s-ui-chart-segmented-bar__canvas"
792
830
  }, null, 512)]),
793
831
  _: 1
794
- }, 8, ["loading", "type"])]), c.value ? (R(), O(H(_t), {
832
+ }, 8, ["loading", "type"])]), e.showLegend && g.value.length ? (R(), O(H(yt), {
795
833
  key: 0,
796
- items: s.value,
797
- disabled: e.loading
798
- }, null, 8, ["items", "disabled"])) : k("", !0)], 2));
834
+ items: g.value,
835
+ disabled: e.loading,
836
+ interactive: !e.loading,
837
+ onItemHover: b
838
+ }, null, 8, [
839
+ "items",
840
+ "disabled",
841
+ "interactive"
842
+ ])) : k("", !0)], 2));
799
843
  }
800
- }), In = {
844
+ }), Bn = {
801
845
  key: 0,
802
846
  class: "s-ui-chart-widget__header"
803
- }, Ln = {
847
+ }, Vn = {
804
848
  key: 0,
805
849
  class: "s-ui-chart-widget__title-skeleton",
806
850
  "aria-hidden": "true"
807
- }, Rn = {
851
+ }, Hn = {
808
852
  key: 1,
809
853
  class: "s-ui-chart-widget__title s-ui-typography-label-16-medium"
810
- }, zn = { class: "s-ui-chart-widget__controls" }, Bn = {
854
+ }, Un = { class: "s-ui-chart-widget__controls" }, Wn = {
811
855
  key: 1,
812
856
  class: "s-ui-chart-widget__content"
813
- }, Vn = /* @__PURE__ */ F({
857
+ }, Gn = /* @__PURE__ */ F({
814
858
  __name: "SChartWidget",
815
- props: /*@__PURE__*/ bt({
859
+ props: /*@__PURE__*/ Ct({
816
860
  title: { default: "" },
817
861
  collapsible: {
818
862
  type: Boolean,
@@ -835,11 +879,11 @@ var Lt = [
835
879
  }),
836
880
  emits: ["update:collapsed"],
837
881
  setup(e) {
838
- let t = Et(e, "collapsed"), n = U(), { t: r } = Ft(), i = D(() => !!e.title || !!n.title || !!n.actions || e.collapsible), a = D(() => !t.value || !e.collapsible || !e.hideContentWhenCollapsed), o = D(() => r(t.value ? "chartWidget.expand" : "chartWidget.collapse"));
882
+ let t = kt(e, "collapsed"), n = U(), { t: r } = Rt(), i = D(() => !!e.title || !!n.title || !!n.actions || e.collapsible), a = D(() => !t.value || !e.collapsible || !e.hideContentWhenCollapsed), o = D(() => r(t.value ? "chartWidget.expand" : "chartWidget.collapse"));
839
883
  return (n, r) => (R(), A("div", {
840
884
  class: I(["s-ui-chart-widget", { "s-ui-chart-widget--skeleton": e.loading }]),
841
885
  "data-qa": "ui:chart-widget"
842
- }, [i.value ? (R(), A("div", In, [e.loading ? (R(), A("span", Ln)) : (R(), A("span", Rn, [B(n.$slots, "title", {}, () => [N(V(e.title), 1)])])), j("div", zn, [B(n.$slots, "actions"), e.collapsible ? (R(), O(H(w), {
886
+ }, [i.value ? (R(), A("div", Bn, [e.loading ? (R(), A("span", Vn)) : (R(), A("span", Hn, [B(n.$slots, "title", {}, () => [N(V(e.title), 1)])])), j("div", Un, [B(n.$slots, "actions"), e.collapsible ? (R(), O(H(w), {
843
887
  key: 0,
844
888
  appearance: H(C).OUTLINED,
845
889
  variant: H(S).NEUTRAL,
@@ -855,8 +899,8 @@ var Lt = [
855
899
  "icon",
856
900
  "aria-label",
857
901
  "aria-expanded"
858
- ])) : k("", !0)])])) : k("", !0), a.value ? (R(), A("div", Bn, [B(n.$slots, "default")])) : k("", !0)], 2));
902
+ ])) : k("", !0)])])) : k("", !0), a.value ? (R(), A("div", Wn, [B(n.$slots, "default")])) : k("", !0)], 2));
859
903
  }
860
904
  });
861
905
  //#endregion
862
- export { m as DEFAULT_COLOR_PALETTE, p as EAccentColor, C as EButtonAppearance, le as EButtonGroupLayout, x as EButtonSize, x as ESSegmentControlSize, S as EButtonVariant, g as EColorFormat, Ce as EConnectedPositionStrategy, q as ENotificationLayout, J as ENotificationLeftside, K 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, me as ESCardLayout, de as ESCheckboxColor, fe as ESCheckboxSize, ke as ESChipColor, Ae as ESChipSize, h as ESColorPaletteLayout, xe as ESDropdownPlacement, $e as ESInlineInputAppearance, Re as ESInlineMessageValidationStatus, Ie as ESInputCustomize, Be as ESLabelSize, Ve as ESLabelVariant, Ue as ESListGap, qe as ESListItemVariant, nt as ESPhotoEditShape, rt as ESPhotoEditSize, Ye as ESRadioLabelPlacement, Ne as ESSelectSearchable, _e as ESTabAppearance, ve as ESTabSize, Te as ESTagColor, Ee as ESTagSize, Ze as ESToggleSize, se as ESelectionFocusMode, ie as ESelectionMode, oe as ESelectionOrientation, l as MAX_RECENT_COLORS, _ as RECOMMENDED_COLOR_PALETTE, c as SAvatar, ne as SAvatarGroup, n as SBadge, en as SBanner, w as SButton, ue as SButtonGroup, he as SCard, ht as SChartBurnup, ft as SChartHorizontalBar, ct as SChartLine, mt as SChartMultiLine, pt as SChartPie, gt as SChartProgress, Fn as SChartSegmentedBar, ut as SChartStackedArea, dt as SChartStackedBar, Vn as SChartWidget, pe as SCheckbox, je as SChip, d as SColorArea, v as SColorPalette, f as SColorPicker, u as SColorValues, Me as SDropdown, Pe as SDropdownMenu, et as SInlineInput, ze as SInlineMessage, Le as SInput, He as SLabel, Ke as SList, Je as SListItem, it as SPhotoEdit, Xe as SRadio, ge as SSegmentControl, Fe as SSelect, ye as STab, be as STabs, De as STag, Oe as STagGroup, tt as STextarea, tn as SToast, bn as SToastProvider, Qe as SToggle, sn as TOAST_AUTO_DURATION_MAX_MS, on as TOAST_AUTO_DURATION_MIN_MS, cn as TOAST_AUTO_DURATION_MS_PER_CHAR, ln as computeAutoDuration, Se as computeConnectedPosition, At as createUiKit, ee as isSameColor, b as normalizeColorValue, y as resolveColorPreview, re as resolveOwnPropOrGroupedOrFallback, jt as setUiKitLocale, Mt as uiKitLocaleEn, Nt as uiKitLocaleRu, Ge as useFlatTreeList, we as useFloatingOverlay, We as useSListEndReached, ae as useSelectionGroup, ce as useSelectionGroupItem, yn as useToast, Pt as useUiKitI18n };
906
+ export { m as DEFAULT_COLOR_PALETTE, p as EAccentColor, C as EButtonAppearance, le as EButtonGroupLayout, x as EButtonSize, x as ESSegmentControlSize, S as EButtonVariant, g as EColorFormat, Ce as EConnectedPositionStrategy, q as ENotificationLayout, J as ENotificationLeftside, K 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, me as ESCardLayout, de as ESCheckboxColor, fe as ESCheckboxSize, ke as ESChipColor, Ae as ESChipSize, h as ESColorPaletteLayout, xe as ESDropdownPlacement, $e as ESInlineInputAppearance, Re as ESInlineMessageValidationStatus, Ie as ESInputCustomize, Be as ESLabelSize, Ve as ESLabelVariant, Ue as ESListGap, qe as ESListItemVariant, nt as ESPhotoEditShape, rt as ESPhotoEditSize, Ye as ESRadioLabelPlacement, Ne as ESSelectSearchable, _e as ESTabAppearance, ve as ESTabSize, Te as ESTagColor, Ee as ESTagSize, Ze as ESToggleSize, se as ESelectionFocusMode, ie as ESelectionMode, oe as ESelectionOrientation, l as MAX_RECENT_COLORS, _ as RECOMMENDED_COLOR_PALETTE, c as SAvatar, ne as SAvatarGroup, n as SBadge, rn as SBanner, w as SButton, ue as SButtonGroup, he as SCard, _t as SChartBurnup, mt as SChartHorizontalBar, ut as SChartLine, gt as SChartMultiLine, ht as SChartPie, vt as SChartProgress, zn as SChartSegmentedBar, ft as SChartStackedArea, pt as SChartStackedBar, Gn as SChartWidget, pe as SCheckbox, je as SChip, d as SColorArea, v as SColorPalette, f as SColorPicker, u as SColorValues, Me as SDropdown, Pe as SDropdownMenu, et as SInlineInput, ze as SInlineMessage, Le as SInput, He as SLabel, Ke as SList, Je as SListItem, it as SPhotoEdit, Xe as SRadio, ge as SSegmentControl, Fe as SSelect, ye as STab, be as STabs, De as STag, Oe as STagGroup, tt as STextarea, an as SToast, Cn as SToastProvider, Qe as SToggle, un as TOAST_AUTO_DURATION_MAX_MS, ln as TOAST_AUTO_DURATION_MIN_MS, dn as TOAST_AUTO_DURATION_MS_PER_CHAR, fn as computeAutoDuration, Se as computeConnectedPosition, Nt as createUiKit, ee as isSameColor, b as normalizeColorValue, y as resolveColorPreview, re as resolveOwnPropOrGroupedOrFallback, Pt as setUiKitLocale, Ft as uiKitLocaleEn, It as uiKitLocaleRu, Ge as useFlatTreeList, we as useFloatingOverlay, We as useSListEndReached, ae as useSelectionGroup, ce as useSelectionGroupItem, Sn as useToast, Lt as useUiKitI18n };