@shtabapp/ui-kit 1.62.0 → 1.64.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 (199) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/SChartBar-BVgwPlYi.js +215 -0
  3. package/dist/SChartBar-CBU1uCuL.cjs +1 -0
  4. package/dist/SChartBurnup-Ch3UMa9w.cjs +1 -0
  5. package/dist/{SChartBurnup-Dxi0MBwo.js → SChartBurnup-DyJHdRlf.js} +75 -75
  6. package/dist/SChartHorizontalBar-Bv90SV6E.cjs +1 -0
  7. package/dist/{SChartHorizontalBar-XNasKzaO.js → SChartHorizontalBar-DDo6TfE8.js} +28 -28
  8. package/dist/{SChartLine-DSQaezYq.js → SChartLine-Cs1JzPEK.js} +29 -29
  9. package/dist/SChartLine-nIGaef_o.cjs +1 -0
  10. package/dist/SChartMultiLine-BzoW4ETf.cjs +1 -0
  11. package/dist/SChartMultiLine-DqCQ7FCv.js +204 -0
  12. package/dist/{SChartPie-bN8rY-y5.js → SChartPie-Bt3o7LZI.js} +55 -55
  13. package/dist/SChartPie-Bv5Obcwb.cjs +1 -0
  14. package/dist/{SChartProgress-BtwqE4xL.js → SChartProgress-uMg4DBpS.js} +30 -30
  15. package/dist/SChartProgress-xxqrj03o.cjs +1 -0
  16. package/dist/SChartStackedArea-BNe6FAg8.cjs +1 -0
  17. package/dist/{SChartStackedArea-BxUex_Di.js → SChartStackedArea-BQGnKp1i.js} +58 -58
  18. package/dist/SChartStackedBar-D1G-VloG.cjs +1 -0
  19. package/dist/SChartStackedBar-fiUU9lNp.js +245 -0
  20. package/dist/SColorPicker-BRSi0Xhm.cjs +1 -0
  21. package/dist/{SColorPicker-BL-zrskU.js → SColorPicker-Djr-R81h.js} +2 -1
  22. package/dist/SDropdownMenu-2koPU6IG.js +38 -0
  23. package/dist/SDropdownMenu-k9SxaFVH.cjs +1 -0
  24. package/dist/SList-D0PDc8VN.cjs +1 -0
  25. package/dist/SList-D2K9dNsj.js +465 -0
  26. package/dist/{SSegmentControl-CAoM03V6.js → SSegmentControl-B9KkAQiG.js} +11 -9
  27. package/dist/SSegmentControl-OXTka86u.cjs +1 -0
  28. package/dist/SSelect-CRlkCLik.cjs +1 -0
  29. package/dist/SSelect-D6taevzT.js +650 -0
  30. package/dist/STable-NbCfen0n.cjs +1 -0
  31. package/dist/STable-aS1eGuVB.js +3445 -0
  32. package/dist/areChartSeriesAligned-DiBX3TTk.cjs +1 -0
  33. package/dist/{buildChartSeriesPoints-D8Xpfwp7.js → areChartSeriesAligned-DjonrIMm.js} +2 -8
  34. package/dist/buildChartSeriesPoints-BTyOpkin.js +10 -0
  35. package/dist/buildChartSeriesPoints-Cqo2ed-n.cjs +1 -0
  36. package/dist/components/SChartBar/SChartBar.types.d.ts +47 -0
  37. package/dist/components/SChartBar/SChartBar.types.d.ts.map +1 -0
  38. package/dist/components/SChartBar/SChartBar.vue.d.ts +11 -0
  39. package/dist/components/SChartBar/SChartBar.vue.d.ts.map +1 -0
  40. package/dist/components/SChartBar/index.d.ts +3 -0
  41. package/dist/components/SChartBar/index.d.ts.map +1 -0
  42. package/dist/components/SChartBar/utils/buildBarChartConfig.d.ts +16 -0
  43. package/dist/components/SChartBar/utils/buildBarChartConfig.d.ts.map +1 -0
  44. package/dist/components/SChartBar/utils/createBarTargetLinePlugin.d.ts +9 -0
  45. package/dist/components/SChartBar/utils/createBarTargetLinePlugin.d.ts.map +1 -0
  46. package/dist/components/SChartBar/utils/demoBarSeries.d.ts +9 -0
  47. package/dist/components/SChartBar/utils/demoBarSeries.d.ts.map +1 -0
  48. package/dist/components/SChartBar/utils/skeletonBarSeries.d.ts +5 -0
  49. package/dist/components/SChartBar/utils/skeletonBarSeries.d.ts.map +1 -0
  50. package/dist/components/SChartMultiLine/SChartMultiLine.types.d.ts +2 -0
  51. package/dist/components/SChartMultiLine/SChartMultiLine.types.d.ts.map +1 -1
  52. package/dist/components/SChartMultiLine/SChartMultiLine.vue.d.ts.map +1 -1
  53. package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts +2 -1
  54. package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts.map +1 -1
  55. package/dist/components/SList/SList.vue.d.ts.map +1 -1
  56. package/dist/components/SList/utils/resolveListItemFields.d.ts +1 -1
  57. package/dist/components/SList/utils/resolveListItemFields.d.ts.map +1 -1
  58. package/dist/components/SSegmentControl/SSegmentControl.types.d.ts +2 -0
  59. package/dist/components/SSegmentControl/SSegmentControl.types.d.ts.map +1 -1
  60. package/dist/components/SSegmentControl/SSegmentControlItem.vue.d.ts.map +1 -1
  61. package/dist/components/STable/STable.types.d.ts +317 -0
  62. package/dist/components/STable/STable.types.d.ts.map +1 -0
  63. package/dist/components/STable/STable.vue.d.ts +154 -0
  64. package/dist/components/STable/STable.vue.d.ts.map +1 -0
  65. package/dist/components/STable/constants/tableSizes.d.ts +76 -0
  66. package/dist/components/STable/constants/tableSizes.d.ts.map +1 -0
  67. package/dist/components/STable/index.d.ts +4 -0
  68. package/dist/components/STable/index.d.ts.map +1 -0
  69. package/dist/components/STable/parts/STableCellText.vue.d.ts +23 -0
  70. package/dist/components/STable/parts/STableCellText.vue.d.ts.map +1 -0
  71. package/dist/components/STable/parts/STableCheckbox.vue.d.ts +17 -0
  72. package/dist/components/STable/parts/STableCheckbox.vue.d.ts.map +1 -0
  73. package/dist/components/STable/parts/STableContentRow.vue.d.ts +41 -0
  74. package/dist/components/STable/parts/STableContentRow.vue.d.ts.map +1 -0
  75. package/dist/components/STable/parts/STableGroupRow.vue.d.ts +55 -0
  76. package/dist/components/STable/parts/STableGroupRow.vue.d.ts.map +1 -0
  77. package/dist/components/STable/parts/STableHeaderCell.vue.d.ts +36 -0
  78. package/dist/components/STable/parts/STableHeaderCell.vue.d.ts.map +1 -0
  79. package/dist/components/STable/parts/STableHint.vue.d.ts +7 -0
  80. package/dist/components/STable/parts/STableHint.vue.d.ts.map +1 -0
  81. package/dist/components/STable/parts/STablePlaceholderRow.vue.d.ts +25 -0
  82. package/dist/components/STable/parts/STablePlaceholderRow.vue.d.ts.map +1 -0
  83. package/dist/components/STable/parts/STableRow.vue.d.ts +67 -0
  84. package/dist/components/STable/parts/STableRow.vue.d.ts.map +1 -0
  85. package/dist/components/STable/parts/STableSkeletonRow.vue.d.ts +27 -0
  86. package/dist/components/STable/parts/STableSkeletonRow.vue.d.ts.map +1 -0
  87. package/dist/components/STable/utils/tableDndShared.d.ts +17 -0
  88. package/dist/components/STable/utils/tableDndShared.d.ts.map +1 -0
  89. package/dist/components/STable/utils/useFlatTableRows.d.ts +62 -0
  90. package/dist/components/STable/utils/useFlatTableRows.d.ts.map +1 -0
  91. package/dist/components/STable/utils/useTableCellPlans.d.ts +48 -0
  92. package/dist/components/STable/utils/useTableCellPlans.d.ts.map +1 -0
  93. package/dist/components/STable/utils/useTableColumnDnd.d.ts +28 -0
  94. package/dist/components/STable/utils/useTableColumnDnd.d.ts.map +1 -0
  95. package/dist/components/STable/utils/useTableColumnResize.d.ts +24 -0
  96. package/dist/components/STable/utils/useTableColumnResize.d.ts.map +1 -0
  97. package/dist/components/STable/utils/useTableColumns.d.ts +86 -0
  98. package/dist/components/STable/utils/useTableColumns.d.ts.map +1 -0
  99. package/dist/components/STable/utils/useTableGridFocus.d.ts +79 -0
  100. package/dist/components/STable/utils/useTableGridFocus.d.ts.map +1 -0
  101. package/dist/components/STable/utils/useTableGridKeyboard.d.ts +36 -0
  102. package/dist/components/STable/utils/useTableGridKeyboard.d.ts.map +1 -0
  103. package/dist/components/STable/utils/useTableRenderEntries.d.ts +56 -0
  104. package/dist/components/STable/utils/useTableRenderEntries.d.ts.map +1 -0
  105. package/dist/components/STable/utils/useTableRowDnd.d.ts +37 -0
  106. package/dist/components/STable/utils/useTableRowDnd.d.ts.map +1 -0
  107. package/dist/components/STable/utils/useTableRowHydration.d.ts +29 -0
  108. package/dist/components/STable/utils/useTableRowHydration.d.ts.map +1 -0
  109. package/dist/components/STable/utils/useTableScrollScale.d.ts +34 -0
  110. package/dist/components/STable/utils/useTableScrollScale.d.ts.map +1 -0
  111. package/dist/components/STable/utils/useTableSelection.d.ts +27 -0
  112. package/dist/components/STable/utils/useTableSelection.d.ts.map +1 -0
  113. package/dist/components/STable/utils/useTableServiceRows.d.ts +57 -0
  114. package/dist/components/STable/utils/useTableServiceRows.d.ts.map +1 -0
  115. package/dist/components/STable/utils/useTableSorting.d.ts +21 -0
  116. package/dist/components/STable/utils/useTableSorting.d.ts.map +1 -0
  117. package/dist/components/STable/utils/useTableStickyRows.d.ts +38 -0
  118. package/dist/components/STable/utils/useTableStickyRows.d.ts.map +1 -0
  119. package/dist/components/STable/utils/useTableStyleVars.d.ts +22 -0
  120. package/dist/components/STable/utils/useTableStyleVars.d.ts.map +1 -0
  121. package/dist/components/STable/utils/useTableVirtualRows.d.ts +56 -0
  122. package/dist/components/STable/utils/useTableVirtualRows.d.ts.map +1 -0
  123. package/dist/composables/treeKeyboardNavigation.d.ts +26 -0
  124. package/dist/composables/treeKeyboardNavigation.d.ts.map +1 -0
  125. package/dist/composables/useFlatTreeList.d.ts +1 -0
  126. package/dist/composables/useFlatTreeList.d.ts.map +1 -1
  127. package/dist/{createChartCrosshairPlugin-DwFOncWI.js → createChartCrosshairPlugin-DU5grSok.js} +2 -2
  128. package/dist/createChartCrosshairPlugin-DfYzBie2.cjs +1 -0
  129. package/dist/entries/chart-bar.cjs +1 -0
  130. package/dist/entries/chart-bar.d.ts +3 -0
  131. package/dist/entries/chart-bar.d.ts.map +1 -0
  132. package/dist/entries/chart-bar.js +2 -0
  133. package/dist/entries/chart-burnup.cjs +1 -1
  134. package/dist/entries/chart-burnup.js +1 -1
  135. package/dist/entries/chart-horizontal-bar.cjs +1 -1
  136. package/dist/entries/chart-horizontal-bar.js +1 -1
  137. package/dist/entries/chart-line.cjs +1 -1
  138. package/dist/entries/chart-line.js +1 -1
  139. package/dist/entries/chart-multi-line.cjs +1 -1
  140. package/dist/entries/chart-multi-line.js +1 -1
  141. package/dist/entries/chart-pie.cjs +1 -1
  142. package/dist/entries/chart-pie.js +1 -1
  143. package/dist/entries/chart-progress.cjs +1 -1
  144. package/dist/entries/chart-progress.js +1 -1
  145. package/dist/entries/chart-stacked-area.cjs +1 -1
  146. package/dist/entries/chart-stacked-area.js +1 -1
  147. package/dist/entries/chart-stacked-bar.cjs +1 -1
  148. package/dist/entries/chart-stacked-bar.js +1 -1
  149. package/dist/entries/color-picker.cjs +1 -1
  150. package/dist/entries/color-picker.js +1 -1
  151. package/dist/entries/list.cjs +1 -1
  152. package/dist/entries/list.js +1 -1
  153. package/dist/entries/segment-control.cjs +1 -1
  154. package/dist/entries/segment-control.js +1 -1
  155. package/dist/entries/select.cjs +1 -1
  156. package/dist/entries/select.js +1 -1
  157. package/dist/entries/table.cjs +1 -0
  158. package/dist/entries/table.d.ts +3 -0
  159. package/dist/entries/table.d.ts.map +1 -0
  160. package/dist/entries/table.js +2 -0
  161. package/dist/index.cjs +1 -1
  162. package/dist/index.d.ts +4 -0
  163. package/dist/index.d.ts.map +1 -1
  164. package/dist/index.js +133 -129
  165. package/dist/resolveBarStackedSeriesColor-HDSkh6Mw.cjs +1 -0
  166. package/dist/resolveBarStackedSeriesColor-LpVh1SvQ.js +11 -0
  167. package/dist/resolveSeriesPaletteColor-B5qoBbXN.cjs +1 -0
  168. package/dist/{resolveSeriesPaletteColor-BdvGT-PI.js → resolveSeriesPaletteColor-DcLSyk-D.js} +1 -1
  169. package/dist/{resolveStackedChartContext-DFre3tt0.js → resolveStackedChartContext-CIKVXkDn.js} +6 -6
  170. package/dist/resolveStackedChartContext-CQbgdV55.cjs +1 -0
  171. package/dist/treeKeyboardNavigation-BOz2SVus.cjs +1 -0
  172. package/dist/treeKeyboardNavigation-SmxTdnDz.js +131 -0
  173. package/dist/uikit-components.css +1 -1
  174. package/dist/{SChartSkeletonHost-BT96eWSF.js → useChartInteractivity-BATdT86l.js} +126 -126
  175. package/dist/useChartInteractivity-CXSdHPOw.cjs +1 -0
  176. package/package.json +19 -3
  177. package/dist/SChartBurnup-C4x5kik6.cjs +0 -1
  178. package/dist/SChartHorizontalBar-4H-lgfO4.cjs +0 -1
  179. package/dist/SChartLine-BF6Klm4j.cjs +0 -1
  180. package/dist/SChartMultiLine-CrMmphFe.js +0 -198
  181. package/dist/SChartMultiLine-Ddvfmf__.cjs +0 -1
  182. package/dist/SChartPie-namQTFla.cjs +0 -1
  183. package/dist/SChartProgress-DsFHotRv.cjs +0 -1
  184. package/dist/SChartSkeletonHost-Dt5EjQr5.cjs +0 -1
  185. package/dist/SChartStackedArea-BLHs3sSH.cjs +0 -1
  186. package/dist/SChartStackedBar-BJ9LOgSP.js +0 -250
  187. package/dist/SChartStackedBar-CWNyvUj9.cjs +0 -1
  188. package/dist/SColorPicker-CvhpJEj1.cjs +0 -1
  189. package/dist/SList-C39LrsoS.js +0 -590
  190. package/dist/SList-Du0gqyFs.cjs +0 -1
  191. package/dist/SSegmentControl-B9jT8Axu.cjs +0 -1
  192. package/dist/SSelect-BkX3VuCr.js +0 -682
  193. package/dist/SSelect-CHWKMbB_.cjs +0 -1
  194. package/dist/buildChartSeriesPoints-Bv3nXvSu.cjs +0 -1
  195. package/dist/components/SList/utils/treeKeyboardNavigation.d.ts +0 -16
  196. package/dist/components/SList/utils/treeKeyboardNavigation.d.ts.map +0 -1
  197. package/dist/createChartCrosshairPlugin-ZZwKUQm8.cjs +0 -1
  198. package/dist/resolveSeriesPaletteColor-hI4YDdUg.cjs +0 -1
  199. package/dist/resolveStackedChartContext-Dsxhhhel.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-BK8cEzGY.js";
3
- import { i as l, n as u, r as d, t as f } from "./SColorPicker-BL-zrskU.js";
3
+ import { i as l, n as u, r as d, t as f } from "./SColorPicker-Djr-R81h.js";
4
4
  import { a as p, i as m, n as h, o as g, r as _, t as v } from "./SColorPalette-OCu-tgZ3.js";
5
5
  import { a as y, i as b, r as ee } from "./colorValue-CSh0chxp.js";
6
6
  import { n as te, t as ne } from "./SAvatarGroup-F5w88NGf.js";
@@ -11,7 +11,7 @@ import { n as ce } from "./useSelectLink-2aCIYmF6.js";
11
11
  import { i as le, n as ue, r as de, t as fe } from "./SButtonGroup-DPq5g7bZ.js";
12
12
  import { i as pe, n as me, r as he, t as ge } from "./SCheckbox-BMkOc5cn.js";
13
13
  import { n as _e, t as ve } from "./SCard-DgGxjBUV.js";
14
- import { t as ye } from "./SSegmentControl-CAoM03V6.js";
14
+ import { t as ye } from "./SSegmentControl-B9KkAQiG.js";
15
15
  import { n as be, r as xe, t as Se } from "./STab-ltjZBvbK.js";
16
16
  import { t as Ce } from "./STabs-CU1lSmcH.js";
17
17
  import { i as we, n as Te, r as Ee, t as De } from "./useFloatingOverlay-QcumEYEq.js";
@@ -19,37 +19,41 @@ import { n as Oe, r as ke, t as Ae } from "./STag-DwIU1Uje.js";
19
19
  import { t as je } from "./STagGroup-DWaTQbj6.js";
20
20
  import { n as Me, r as Ne, t as Pe } from "./SChip-DN8oicUv.js";
21
21
  import { n as Fe, t as Ie } from "./SDropdown-LOTCtlCX.js";
22
- import { n as Le, r as Re, t as ze } from "./SSelect-BkX3VuCr.js";
23
- import { n as Be, t as Ve } from "./SInput-BLxSis1f.js";
24
- import { n as He, t as Ue } from "./SInlineMessage-Dirk5RwO.js";
25
- import { n as We, r as Ge, t as Ke } from "./SLabel-FHHPlcKq.js";
26
- import { a as qe, o as Je, s as Ye, t as Xe } from "./SList-C39LrsoS.js";
27
- import { n as Ze, t as Qe } from "./SListItem-C1IeCv8M.js";
22
+ import { t as Le } from "./SDropdownMenu-2koPU6IG.js";
23
+ import { n as Re, t as ze } from "./SInput-BLxSis1f.js";
24
+ import { n as Be, t as Ve } from "./SInlineMessage-Dirk5RwO.js";
25
+ import { n as He, r as Ue, t as We } from "./SLabel-FHHPlcKq.js";
26
+ import { a as Ge, s as Ke } from "./treeKeyboardNavigation-SmxTdnDz.js";
27
+ import { n as qe, t as Je } from "./SListItem-C1IeCv8M.js";
28
+ import { a as Ye, t as Xe } from "./SList-D2K9dNsj.js";
29
+ import { n as Ze, t as Qe } from "./SSelect-D6taevzT.js";
28
30
  import { n as $e, t as et } from "./SRadio-D6_Pd6XX.js";
29
31
  import { n as tt, r as nt, t as rt } from "./SToggle-sGw-LSNd.js";
30
32
  import { n as it, t as at } from "./SInlineInput-DO_glYxP.js";
31
33
  import { t as ot } from "./STextarea-BDyy7Ku5.js";
32
34
  import { n as st, r as ct, t as lt } from "./SPhotoEdit-CTXpy4AE.js";
33
- import { a as ut, i as dt, n as ft, r as pt, t as mt, v as T, w as E } from "./SChartSkeletonHost-BT96eWSF.js";
34
- import { t as ht } from "./SChartLine-DSQaezYq.js";
35
- import { t as gt } from "./resolveSeriesPaletteColor-BdvGT-PI.js";
36
- import { t as _t } from "./SChartStackedArea-BxUex_Di.js";
37
- import { t as vt } from "./SChartStackedBar-BJ9LOgSP.js";
38
- import { t as yt } from "./SChartHorizontalBar-XNasKzaO.js";
39
- import { t as bt } from "./SChartPie-bN8rY-y5.js";
40
- import { t as xt } from "./SChartMultiLine-CrMmphFe.js";
41
- import { t as St } from "./SChartBurnup-Dxi0MBwo.js";
42
- import { t as Ct } from "./SChartProgress-BtwqE4xL.js";
43
- import { t as wt } from "./SChartLegend-oZoF8XK7.js";
44
- import { t as Tt } from "./useHasListener-RSjlUyqH.js";
45
- import { a as Et, c as Dt, i as Ot, l as kt, n as At, o as jt, r as Mt, s as Nt, t as Pt, u as Ft } from "./buildWorkTimeLegendItems-ChGHTwbn.js";
46
- import { Fragment as It, Teleport as Lt, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createSlots as M, createTextVNode as N, createVNode as Rt, defineComponent as P, mergeModels as zt, mergeProps as Bt, normalizeClass as F, normalizeStyle as I, onMounted as Vt, openBlock as L, ref as R, renderList as Ht, renderSlot as z, resolveDynamicComponent as Ut, shallowRef as B, toDisplayString as V, unref as H, useModel as Wt, useSlots as U, useTemplateRef as W, watch as Gt, withCtx as G } from "vue";
47
- import { ESIconName as K, SIcon as Kt, createUiKit as qt, setUiKitLocale as Jt, uiKitLocaleEn as Yt, uiKitLocaleRu as Xt, useUiKitI18n as Zt, useUiKitI18n as Qt } from "@shtabapp/ui-kit-primitives";
48
- import { useResizeObserver as $t } from "@vueuse/core";
35
+ import { t as ut } from "./SChartLegend-oZoF8XK7.js";
36
+ import { C as dt, S as T, g as E, n as ft, r as pt, t as mt, w as ht } from "./useChartInteractivity-BATdT86l.js";
37
+ import { t as gt } from "./SChartLine-Cs1JzPEK.js";
38
+ import { t as _t } from "./resolveSeriesPaletteColor-DcLSyk-D.js";
39
+ import { t as vt } from "./SChartStackedArea-BQGnKp1i.js";
40
+ import { t as yt } from "./SChartStackedBar-fiUU9lNp.js";
41
+ import { t as bt } from "./SChartHorizontalBar-DDo6TfE8.js";
42
+ import { t as xt } from "./SChartPie-Bt3o7LZI.js";
43
+ import { t as St } from "./SChartMultiLine-DqCQ7FCv.js";
44
+ import { t as Ct } from "./SChartBurnup-DyJHdRlf.js";
45
+ import { t as wt } from "./useHasListener-RSjlUyqH.js";
46
+ import { t as Tt } from "./SChartBar-BVgwPlYi.js";
47
+ import { t as Et } from "./SChartProgress-uMg4DBpS.js";
48
+ import { a as Dt, c as Ot, i as kt, l as At, n as jt, o as Mt, r as Nt, s as Pt, t as Ft, u as It } from "./buildWorkTimeLegendItems-ChGHTwbn.js";
49
+ import { a as Lt, c as Rt, d as zt, f as Bt, i as Vt, l as Ht, n as Ut, o as Wt, r as Gt, s as Kt, t as qt, u as Jt } from "./STable-aS1eGuVB.js";
50
+ import { Fragment as Yt, Teleport as Xt, computed as D, createBlock as O, createCommentVNode as k, createElementBlock as A, createElementVNode as j, createSlots as M, createTextVNode as N, createVNode as Zt, defineComponent as P, mergeModels as Qt, mergeProps as $t, normalizeClass as F, normalizeStyle as I, onMounted as en, openBlock as L, ref as R, renderList as tn, renderSlot as z, resolveDynamicComponent as nn, shallowRef as B, toDisplayString as V, unref as H, useModel as rn, useSlots as U, useTemplateRef as W, watch as an, withCtx as G } from "vue";
51
+ import { ESIconName as K, SIcon as on, createUiKit as sn, setUiKitLocale as cn, uiKitLocaleEn as ln, uiKitLocaleRu as un, useUiKitI18n as dn, useUiKitI18n as fn } from "@shtabapp/ui-kit-primitives";
52
+ import { useResizeObserver as pn } from "@vueuse/core";
49
53
  export * from "@shtabapp/ui-kit-primitives";
50
54
  export * from "@shtabapp/ui-kit-tokens";
51
55
  //#region src/utils/chart/segmentedBar/resolveSegmentedBarSegmentColor.ts
52
- var en = [
56
+ var mn = [
53
57
  "--s-ui-chart-segmented-bar-palette-1",
54
58
  "--s-ui-chart-segmented-bar-palette-2",
55
59
  "--s-ui-chart-segmented-bar-palette-3",
@@ -58,7 +62,7 @@ var en = [
58
62
  "--s-ui-chart-segmented-bar-palette-6",
59
63
  "--s-ui-chart-segmented-bar-palette-7",
60
64
  "--s-ui-chart-segmented-bar-palette-8"
61
- ], tn = [
65
+ ], hn = [
62
66
  "--s-ui-chart-segmented-bar-skeleton-palette-1",
63
67
  "--s-ui-chart-segmented-bar-skeleton-palette-2",
64
68
  "--s-ui-chart-segmented-bar-skeleton-palette-3",
@@ -67,11 +71,11 @@ var en = [
67
71
  "--s-ui-chart-segmented-bar-skeleton-palette-6",
68
72
  "--s-ui-chart-segmented-bar-skeleton-palette-7",
69
73
  "--s-ui-chart-segmented-bar-skeleton-palette-8"
70
- ], nn = (e, t, n, r = !1) => gt(e, t, n, r, {
71
- palette: en,
72
- paletteFallback: en[0],
73
- skeletonPalette: tn,
74
- skeletonFallback: tn[0]
74
+ ], gn = (e, t, n, r = !1) => _t(e, t, n, r, {
75
+ palette: mn,
76
+ paletteFallback: mn[0],
77
+ skeletonPalette: hn,
78
+ skeletonFallback: hn[0]
75
79
  }), q = /* @__PURE__ */ function(e) {
76
80
  return e.INFO_ACCENT = "info-accent", e.INFO_NORMAL = "info-normal", e.SUCCESS = "success", e.WARNING = "warning", e.DANGER = "danger", e.BILLING = "billing", e;
77
81
  }({}), J = /* @__PURE__ */ function(e) {
@@ -80,32 +84,32 @@ var en = [
80
84
  return e.ICON = "icon", e.AVATAR = "avatar", e;
81
85
  }({}), X = /* @__PURE__ */ function(e) {
82
86
  return e.BANNER = "banner", e.TOAST = "toast", e;
83
- }({}), rn = {
87
+ }({}), _n = {
84
88
  [q.INFO_ACCENT]: K.infoCircle,
85
89
  [q.INFO_NORMAL]: K.infoCircle,
86
90
  [q.SUCCESS]: K.checkCircle,
87
91
  [q.WARNING]: K.alertCircle,
88
92
  [q.DANGER]: K.dangerCircleFill,
89
93
  [q.BILLING]: K.infoCircle
90
- }, an = (e, t) => t || rn[e], on = ["role"], sn = { class: "s-ui-notification__body" }, cn = {
94
+ }, vn = (e, t) => t || _n[e], yn = ["role"], bn = { class: "s-ui-notification__body" }, xn = {
91
95
  key: 0,
92
96
  class: "s-ui-notification__leftside"
93
- }, ln = {
97
+ }, Sn = {
94
98
  key: 0,
95
99
  class: "s-ui-notification__icon"
96
- }, un = { class: "s-ui-notification__content" }, dn = { class: "s-ui-notification__title-row" }, fn = {
100
+ }, Cn = { class: "s-ui-notification__content" }, wn = { class: "s-ui-notification__title-row" }, Tn = {
97
101
  key: 0,
98
102
  class: "s-ui-notification__description-block"
99
- }, pn = {
103
+ }, En = {
100
104
  key: 0,
101
105
  class: "s-ui-notification__description s-ui-typography-label-12-medium"
102
- }, mn = {
106
+ }, Dn = {
103
107
  key: 1,
104
108
  class: "s-ui-notification__actions-stack"
105
- }, hn = {
109
+ }, On = {
106
110
  key: 1,
107
111
  class: "s-ui-notification__actions-row"
108
- }, gn = /* @__PURE__ */ P({
112
+ }, kn = /* @__PURE__ */ P({
109
113
  __name: "SNotification",
110
114
  props: {
111
115
  type: { default: () => q.INFO_ACCENT },
@@ -149,7 +153,7 @@ var en = [
149
153
  ]), a = D(() => {
150
154
  let t = {};
151
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;
152
- }), s = D(() => e.type === q.DANGER ? "alert" : "status"), l = D(() => an(e.type, e.icon)), u = D(() => e.type === q.BILLING), d = D(() => !!(e.leftside === Y.AVATAR && e.avatar || e.leftside === Y.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 === q.BILLING ? C.MAJOR : C.OUTLINED), g = D(() => e.type === q.BILLING ? S.BILLING : S.MAIN), _ = () => {
156
+ }), s = D(() => e.type === q.DANGER ? "alert" : "status"), l = D(() => vn(e.type, e.icon)), u = D(() => e.type === q.BILLING), d = D(() => !!(e.leftside === Y.AVATAR && e.avatar || e.leftside === Y.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 === q.BILLING ? C.MAJOR : C.OUTLINED), g = D(() => e.type === q.BILLING ? S.BILLING : S.MAIN), _ = () => {
153
157
  n("close");
154
158
  }, v = () => {
155
159
  n("linkClick");
@@ -162,8 +166,8 @@ var en = [
162
166
  class: F(["s-ui-notification", i.value]),
163
167
  style: I(a.value),
164
168
  role: s.value
165
- }, [j("div", sn, [
166
- d.value ? (L(), A("div", cn, [e.leftside === H(Y).ICON ? (L(), A("div", ln, [Rt(H(Kt), {
169
+ }, [j("div", bn, [
170
+ d.value ? (L(), A("div", xn, [e.leftside === H(Y).ICON ? (L(), A("div", Sn, [Zt(H(on), {
167
171
  name: l.value,
168
172
  size: 16,
169
173
  billing: u.value
@@ -180,8 +184,8 @@ var en = [
180
184
  "badge",
181
185
  "size"
182
186
  ])) : k("", !0)])) : k("", !0),
183
- j("div", un, [
184
- j("div", dn, [j("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(), O(H(w), {
187
+ j("div", Cn, [
188
+ j("div", wn, [j("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(), O(H(w), {
185
189
  key: 0,
186
190
  class: "s-ui-notification__close",
187
191
  appearance: H(C).BARE,
@@ -196,7 +200,7 @@ var en = [
196
200
  "size",
197
201
  "aria-label"
198
202
  ])) : k("", !0)]),
199
- f.value ? (L(), A("div", fn, [e.description || H(r).description ? (L(), A("span", pn, [z(t.$slots, "description", {}, () => [N(V(e.description), 1)])])) : k("", !0), e.linkText ? (L(), O(H(w), {
203
+ f.value ? (L(), A("div", Tn, [e.description || H(r).description ? (L(), A("span", En, [z(t.$slots, "description", {}, () => [N(V(e.description), 1)])])) : k("", !0), e.linkText ? (L(), O(H(w), {
200
204
  key: 1,
201
205
  class: "s-ui-notification__link",
202
206
  appearance: H(C).BARE,
@@ -211,7 +215,7 @@ var en = [
211
215
  "variant",
212
216
  "size"
213
217
  ])) : k("", !0)])) : k("", !0),
214
- e.layout === H(J).VERTICAL && p.value ? (L(), A("div", mn, [e.showPrimaryButton && e.primaryButtonText ? (L(), O(H(w), {
218
+ e.layout === H(J).VERTICAL && p.value ? (L(), A("div", Dn, [e.showPrimaryButton && e.primaryButtonText ? (L(), O(H(w), {
215
219
  key: 0,
216
220
  appearance: h.value,
217
221
  variant: g.value,
@@ -239,7 +243,7 @@ var en = [
239
243
  "size"
240
244
  ])) : k("", !0)])) : k("", !0)
241
245
  ]),
242
- e.layout === H(J).HORIZONTAL && m.value ? (L(), A("div", hn, [e.showPrimaryButton && e.primaryButtonText ? (L(), O(H(w), {
246
+ e.layout === H(J).HORIZONTAL && m.value ? (L(), A("div", On, [e.showPrimaryButton && e.primaryButtonText ? (L(), O(H(w), {
243
247
  key: 0,
244
248
  appearance: h.value,
245
249
  variant: g.value,
@@ -267,9 +271,9 @@ var en = [
267
271
  "size",
268
272
  "aria-label"
269
273
  ])) : k("", !0)])) : k("", !0)
270
- ])], 14, on));
274
+ ])], 14, yn));
271
275
  }
272
- }), _n = /* @__PURE__ */ P({
276
+ }), An = /* @__PURE__ */ P({
273
277
  __name: "SBanner",
274
278
  props: {
275
279
  type: { default: () => q.INFO_ACCENT },
@@ -305,7 +309,7 @@ var en = [
305
309
  ],
306
310
  setup(e, { emit: t }) {
307
311
  let n = t, r = U();
308
- return (t, i) => (L(), O(gn, {
312
+ return (t, i) => (L(), O(kn, {
309
313
  class: "s-ui-banner",
310
314
  "data-qa": "ui:banner",
311
315
  type: e.type,
@@ -355,7 +359,7 @@ var en = [
355
359
  "truncateTitle"
356
360
  ]));
357
361
  }
358
- }), vn = /* @__PURE__ */ P({
362
+ }), jn = /* @__PURE__ */ P({
359
363
  __name: "SToast",
360
364
  props: {
361
365
  type: { default: () => q.INFO_ACCENT },
@@ -391,7 +395,7 @@ var en = [
391
395
  ],
392
396
  setup(e, { emit: t }) {
393
397
  let n = t, r = U(), i = D(() => e.width ?? 360);
394
- return (t, a) => (L(), O(gn, {
398
+ return (t, a) => (L(), O(kn, {
395
399
  class: "s-ui-toast",
396
400
  "data-qa": "ui:toast",
397
401
  type: e.type,
@@ -441,13 +445,13 @@ var en = [
441
445
  "truncateTitle"
442
446
  ]));
443
447
  }
444
- }), yn = .05, bn = [
448
+ }), Mn = .05, Nn = [
445
449
  "data-mounted",
446
450
  "data-front",
447
451
  "data-expanded",
448
452
  "data-removed",
449
453
  "data-visible"
450
- ], xn = /* @__PURE__ */ P({
454
+ ], Pn = /* @__PURE__ */ P({
451
455
  __name: "SToastProviderToast",
452
456
  props: {
453
457
  index: {},
@@ -460,7 +464,7 @@ var en = [
460
464
  },
461
465
  emits: ["heightChange"],
462
466
  setup(e, { emit: t }) {
463
- let n = t, r = R(null), i = R(0), a = R(!1), o = D(() => e.index === 0), s = D(() => 1 - e.index * yn), c = D(() => ({
467
+ let n = t, r = R(null), i = R(0), a = R(!1), o = D(() => e.index === 0), s = D(() => 1 - e.index * Mn), c = D(() => ({
464
468
  "--s-ui-toast-provider-toasts-before": String(e.index),
465
469
  "--s-ui-toast-provider-lift-amount": `${e.stackPeek * -1}px`,
466
470
  "--s-ui-toast-provider-front-toast-height": `${e.frontToastHeight}px`,
@@ -469,10 +473,10 @@ var en = [
469
473
  "--s-ui-toast-provider-stack-scale": String(s.value),
470
474
  zIndex: String(1e3 - e.index)
471
475
  }));
472
- return $t(r, (e) => {
476
+ return pn(r, (e) => {
473
477
  let t = e[0]?.contentRect.height ?? 0;
474
478
  t !== i.value && (i.value = t, n("heightChange", t));
475
- }), Vt(() => {
479
+ }), en(() => {
476
480
  requestAnimationFrame(() => {
477
481
  requestAnimationFrame(() => {
478
482
  a.value = !0;
@@ -490,50 +494,50 @@ var en = [
490
494
  ref_key: "contentRef",
491
495
  ref: r,
492
496
  class: "s-ui-toast-provider__toast-content"
493
- }, [z(t.$slots, "default")], 512)], 12, bn));
497
+ }, [z(t.$slots, "default")], 512)], 12, Nn));
494
498
  }
495
- }), Sn = 4e3, Cn = 1e4, wn = 50, Tn = (e, t) => {
496
- let n = Sn + (e.length + (t?.length ?? 0)) * 50;
497
- return n > 1e4 ? Cn : n;
498
- }, Z = B([]), Q = /* @__PURE__ */ new Map(), En = 0, Dn = {
499
+ }), Fn = 4e3, In = 1e4, Ln = 50, Rn = (e, t) => {
500
+ let n = Fn + (e.length + (t?.length ?? 0)) * 50;
501
+ return n > 1e4 ? In : n;
502
+ }, Z = B([]), Q = /* @__PURE__ */ new Map(), zn = 0, Bn = {
499
503
  type: q.INFO_ACCENT,
500
504
  layout: J.HORIZONTAL,
501
505
  leftside: Y.ICON,
502
506
  showPrimaryButton: !1,
503
507
  closable: !0
504
- }, On = () => `toast-${Date.now()}-${++En}`, $ = (e) => {
508
+ }, Vn = () => `toast-${Date.now()}-${++zn}`, $ = (e) => {
505
509
  let t = Q.get(e);
506
510
  t && (window.clearTimeout(t), Q.delete(e));
507
- }, kn = (e) => {
511
+ }, Hn = (e) => {
508
512
  $(e.id);
509
- let t = e.duration === void 0 ? Tn(e.title, e.description) : e.duration;
513
+ let t = e.duration === void 0 ? Rn(e.title, e.description) : e.duration;
510
514
  if (t > 0) {
511
515
  let n = window.setTimeout(() => {
512
- An(e.id);
516
+ Un(e.id);
513
517
  }, t);
514
518
  Q.set(e.id, n);
515
519
  }
516
- }, An = (e) => {
520
+ }, Un = (e) => {
517
521
  let t = Z.value.findIndex((t) => t.id === e);
518
522
  if (t === -1) return;
519
523
  let n = Z.value[t];
520
524
  n && ($(e), n.onClose && n.onClose(), Z.value = Z.value.filter((t) => t.id !== e));
521
- }, jn = () => {
525
+ }, Wn = () => {
522
526
  Q.forEach((e) => window.clearTimeout(e)), Q.clear(), Z.value = [];
523
- }, Mn = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
527
+ }, Gn = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
524
528
  $(e.id);
525
- }), e.slice(0, 3)), Nn = (e) => {
526
- let t = e.id ?? On(), n = {
527
- ...Dn,
529
+ }), e.slice(0, 3)), Kn = (e) => {
530
+ let t = e.id ?? Vn(), n = {
531
+ ...Bn,
528
532
  ...e,
529
533
  id: t
530
534
  }, r = Z.value.findIndex((e) => e.id === t);
531
535
  if (r > -1) {
532
536
  let e = [...Z.value];
533
- e[r] = n, Z.value = Mn(e);
534
- } else Z.value = Mn([n, ...Z.value]);
535
- return kn(n), t;
536
- }, Pn = (e, t) => {
537
+ e[r] = n, Z.value = Gn(e);
538
+ } else Z.value = Gn([n, ...Z.value]);
539
+ return Hn(n), t;
540
+ }, qn = (e, t) => {
537
541
  let n = Z.value.findIndex((t) => t.id === e);
538
542
  if (n === -1) return;
539
543
  let r = Z.value[n];
@@ -543,18 +547,18 @@ var en = [
543
547
  ...t,
544
548
  id: r.id
545
549
  }, a = [...Z.value];
546
- a[n] = i, Z.value = a, kn(i);
547
- }, Fn = () => ({
550
+ a[n] = i, Z.value = a, Hn(i);
551
+ }, Jn = () => ({
548
552
  toasts: Z,
549
- show: Nn,
550
- hide: An,
551
- hideAll: jn,
552
- update: Pn
553
- }), In = /* @__PURE__ */ P({
553
+ show: Kn,
554
+ hide: Un,
555
+ hideAll: Wn,
556
+ update: qn
557
+ }), Yn = /* @__PURE__ */ P({
554
558
  __name: "SToastProvider",
555
559
  setup(e) {
556
- let { toasts: t, hide: n } = Fn(), r = D(() => t.value.slice(0, 3)), i = R(!1), a = B({}), o = R(/* @__PURE__ */ new Set()), s = D(() => t.value[0] ?? null), c = D(() => s.value ? a.value[s.value.id] ?? 0 : 0), l = R(0), u = D(() => c.value > 0 ? c.value : l.value);
557
- Gt(c, (e) => {
560
+ let { toasts: t, hide: n } = Jn(), r = D(() => t.value.slice(0, 3)), i = R(!1), a = B({}), o = R(/* @__PURE__ */ new Set()), s = D(() => t.value[0] ?? null), c = D(() => s.value ? a.value[s.value.id] ?? 0 : 0), l = R(0), u = D(() => c.value > 0 ? c.value : l.value);
561
+ an(c, (e) => {
558
562
  e > 0 && (l.value = e);
559
563
  });
560
564
  let d = D(() => {
@@ -596,7 +600,7 @@ var en = [
596
600
  }, b = (e) => {
597
601
  e.onSecondaryAction && e.onSecondaryAction();
598
602
  };
599
- return (e, t) => (L(), O(Lt, { to: "body" }, [j("div", {
603
+ return (e, t) => (L(), O(Xt, { to: "body" }, [j("div", {
600
604
  class: "s-ui-toast-provider",
601
605
  onMouseenter: m,
602
606
  onMouseleave: h
@@ -604,7 +608,7 @@ var en = [
604
608
  key: 0,
605
609
  class: "s-ui-toast-provider__list",
606
610
  style: I(d.value)
607
- }, [(L(!0), A(It, null, Ht(r.value, (t, n) => (L(), O(xn, {
611
+ }, [(L(!0), A(Yt, null, tn(r.value, (t, n) => (L(), O(Pn, {
608
612
  key: t.id,
609
613
  index: n,
610
614
  expanded: i.value,
@@ -615,13 +619,13 @@ var en = [
615
619
  "offset-y": f(n),
616
620
  onHeightChange: (e) => g(t.id, e)
617
621
  }, {
618
- default: G(() => [z(e.$slots, "toast", { toast: t }, () => [t.component ? (L(), O(Ut(t.component), Bt({
622
+ default: G(() => [z(e.$slots, "toast", { toast: t }, () => [t.component ? (L(), O(nn(t.component), $t({
619
623
  key: 0,
620
624
  ref_for: !0
621
625
  }, t.componentProps, {
622
626
  toast: t,
623
627
  onClose: (e) => _(t.id)
624
- }), null, 16, ["toast", "onClose"])) : (L(), O(H(vn), {
628
+ }), null, 16, ["toast", "onClose"])) : (L(), O(H(jn), {
625
629
  key: 1,
626
630
  type: t.type,
627
631
  layout: t.layout,
@@ -675,10 +679,10 @@ var en = [
675
679
  "onHeightChange"
676
680
  ]))), 128))], 4)) : k("", !0)], 32)]));
677
681
  }
678
- }), Ln = 4, Rn = 4, zn = 1, Bn = "400 12px var(--s-ui-font-family-label)", Vn = 4, Hn = (e, t, n, r, i, a) => {
682
+ }), Xn = 4, Zn = 4, Qn = 1, $n = "400 12px var(--s-ui-font-family-label)", er = 4, tr = (e, t, n, r, i, a) => {
679
683
  let o = Math.min(a, r / 2, i / 2);
680
684
  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();
681
- }, Un = (e) => {
685
+ }, nr = (e) => {
682
686
  let t = e.getProps([
683
687
  "x",
684
688
  "y",
@@ -689,35 +693,35 @@ var en = [
689
693
  width: Math.abs(n - i),
690
694
  centerY: r
691
695
  };
692
- }, Wn = (e, t, n, r) => {
693
- let i = Un(t);
696
+ }, rr = (e, t, n, r) => {
697
+ let i = nr(t);
694
698
  if (!i) return;
695
- let a = `${n}`, o = e.measureText(a).width + Ln * 2;
696
- if (i.width < o + Vn * 2) return;
699
+ let a = `${n}`, o = e.measureText(a).width + Xn * 2;
700
+ if (i.width < o + er * 2) return;
697
701
  let s = i.left + i.width / 2;
698
- Hn(e, s - o / 2, i.centerY - 20 / 2, o, 20, Rn), e.fillStyle = r.background, e.fill(), e.lineWidth = zn, e.strokeStyle = r.border, e.stroke(), e.fillStyle = r.text, e.fillText(a, s, i.centerY);
699
- }, Gn = (e) => ({
702
+ tr(e, s - o / 2, i.centerY - 20 / 2, o, 20, Zn), e.fillStyle = r.background, e.fill(), e.lineWidth = Qn, e.strokeStyle = r.border, e.stroke(), e.fillStyle = r.text, e.fillText(a, s, i.centerY);
703
+ }, ir = (e) => ({
700
704
  id: "segmentedBarBadge",
701
705
  afterDatasetsDraw(t) {
702
706
  let n = {
703
- background: E(T.pieBadgeBackground, e),
704
- border: E(T.pieBadgeBorder, e),
705
- text: E(T.pieBadgeText, e)
707
+ background: T(E.pieBadgeBackground, e),
708
+ border: T(E.pieBadgeBorder, e),
709
+ text: T(E.pieBadgeText, e)
706
710
  }, { ctx: r } = t;
707
- r.save(), r.font = Bn, r.textAlign = "center", r.textBaseline = "middle", t.data.datasets.forEach((e, i) => {
711
+ r.save(), r.font = $n, r.textAlign = "center", r.textBaseline = "middle", t.data.datasets.forEach((e, i) => {
708
712
  let a = t.getDatasetMeta(i)?.data[0], o = e.data[0];
709
- a && typeof o == "number" && o > 0 && Wn(r, a, o, n);
713
+ a && typeof o == "number" && o > 0 && rr(r, a, o, n);
710
714
  }), r.restore();
711
715
  }
712
- }), Kn = 40, qn = 4, Jn = 1, Yn = [
716
+ }), ar = 40, or = 4, sr = 1, cr = [
713
717
  "mousemove",
714
718
  "mouseout",
715
719
  "click",
716
720
  "touchstart",
717
721
  "touchmove"
718
- ], Xn = ({ segments: e, segmentColors: t, colorHostElement: n, skeleton: r = !1, onSegmentClick: i }) => {
722
+ ], lr = ({ segments: e, segmentColors: t, colorHostElement: n, skeleton: r = !1, onSegmentClick: i }) => {
719
723
  if (e.length === 0) return null;
720
- let a = E("--s-ui-color-surface-primary", n), o = e.reduce((e, t) => e + t.value, 0), s = ut({
724
+ let a = T("--s-ui-color-surface-primary", n), o = e.reduce((e, t) => e + t.value, 0), s = pt({
721
725
  kind: "series",
722
726
  skeleton: r,
723
727
  colorHostElement: n,
@@ -734,12 +738,12 @@ var en = [
734
738
  hoverBackgroundColor: t[n],
735
739
  borderColor: a,
736
740
  borderWidth: {
737
- left: Jn,
738
- right: Jn
741
+ left: sr,
742
+ right: sr
739
743
  },
740
744
  borderSkipped: !1,
741
- borderRadius: qn,
742
- barThickness: Kn,
745
+ borderRadius: or,
746
+ barThickness: ar,
743
747
  stack: "track"
744
748
  }))
745
749
  },
@@ -748,7 +752,7 @@ var en = [
748
752
  responsive: !0,
749
753
  maintainAspectRatio: !1,
750
754
  layout: { padding: 0 },
751
- events: r ? [] : Yn,
755
+ events: r ? [] : cr,
752
756
  onHover: s.onHover,
753
757
  onClick: s.onClick,
754
758
  hover: r ? void 0 : {
@@ -773,9 +777,9 @@ var en = [
773
777
  }
774
778
  }
775
779
  },
776
- plugins: [...r ? [] : [Gn(n)], ...s.plugins]
780
+ plugins: [...r ? [] : [ir(n)], ...s.plugins]
777
781
  };
778
- }, Zn = [
782
+ }, ur = [
779
783
  4,
780
784
  1,
781
785
  2,
@@ -787,7 +791,7 @@ var en = [
787
791
  ].map((e, t) => ({
788
792
  label: `Series ${t + 1}`,
789
793
  value: e
790
- })), Qn = { class: "s-ui-chart-segmented-bar__canvas-wrap" }, $n = /* @__PURE__ */ P({
794
+ })), dr = { class: "s-ui-chart-segmented-bar__canvas-wrap" }, fr = /* @__PURE__ */ P({
791
795
  __name: "SChartSegmentedBar",
792
796
  props: {
793
797
  segments: { default: () => [] },
@@ -802,7 +806,7 @@ var en = [
802
806
  },
803
807
  emits: ["segmentClick"],
804
808
  setup(e, { expose: t, emit: n }) {
805
- let r = n, i = ft, a = W("chartRootRef"), o = W("chartCanvasRef"), s = D(() => e.loading ? Zn : e.segments), c = D(() => s.value.map((t, n) => nn(n, a.value, t.fillColor, e.loading))), l = D(() => s.value.map((e, t) => ({
809
+ let r = n, i = ht, a = W("chartRootRef"), o = W("chartCanvasRef"), s = D(() => e.loading ? ur : e.segments), c = D(() => s.value.map((t, n) => gn(n, a.value, t.fillColor, e.loading))), l = D(() => s.value.map((e, t) => ({
806
810
  segment: e,
807
811
  segmentIndex: t
808
812
  })).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(() => {
@@ -813,7 +817,7 @@ var en = [
813
817
  }), p = (e) => {
814
818
  let t = l.value[e];
815
819
  t && r("segmentClick", t.segmentIndex, t.segment);
816
- }, m = Tt("onSegmentClick"), h = D(() => Xn({
820
+ }, m = wt("onSegmentClick"), h = D(() => lr({
817
821
  segments: u.value,
818
822
  segmentColors: d.value,
819
823
  colorHostElement: a.value,
@@ -822,11 +826,11 @@ var en = [
822
826
  })), g = D(() => s.value.map((e, t) => ({
823
827
  label: e.label,
824
828
  color: c.value[t] ?? ""
825
- }))), { chartInstance: _ } = dt({
829
+ }))), { chartInstance: _ } = ft({
826
830
  canvasRef: o,
827
831
  config: h,
828
832
  enabled: D(() => e.loading || u.value.length > 0)
829
- }), { exportImage: v, handleLegendItemHover: y } = pt({
833
+ }), { exportImage: v, handleLegendItemHover: y } = mt({
830
834
  chartInstance: _,
831
835
  canvasRef: o,
832
836
  colorHostElement: a
@@ -838,7 +842,7 @@ var en = [
838
842
  ref: a,
839
843
  class: F(["s-ui-chart-segmented-bar", { "s-ui-chart-segmented-bar--skeleton": e.loading }]),
840
844
  "data-qa": "ui:chart-segmented-bar"
841
- }, [j("div", Qn, [Rt(H(mt), {
845
+ }, [j("div", dr, [Zt(H(dt), {
842
846
  loading: e.loading,
843
847
  type: H(i).CARTESIAN
844
848
  }, {
@@ -848,7 +852,7 @@ var en = [
848
852
  class: "s-ui-chart-segmented-bar__canvas"
849
853
  }, null, 512)]),
850
854
  _: 1
851
- }, 8, ["loading", "type"])]), e.showLegend && g.value.length ? (L(), O(H(wt), {
855
+ }, 8, ["loading", "type"])]), e.showLegend && g.value.length ? (L(), O(H(ut), {
852
856
  key: 0,
853
857
  items: g.value,
854
858
  disabled: e.loading,
@@ -860,22 +864,22 @@ var en = [
860
864
  "interactive"
861
865
  ])) : k("", !0)], 2));
862
866
  }
863
- }), er = {
867
+ }), pr = {
864
868
  key: 0,
865
869
  class: "s-ui-chart-widget__header"
866
- }, tr = {
870
+ }, mr = {
867
871
  key: 0,
868
872
  class: "s-ui-chart-widget__title-skeleton",
869
873
  "aria-hidden": "true"
870
- }, nr = {
874
+ }, hr = {
871
875
  key: 1,
872
876
  class: "s-ui-chart-widget__title s-ui-typography-label-16-medium"
873
- }, rr = { class: "s-ui-chart-widget__controls" }, ir = {
877
+ }, gr = { class: "s-ui-chart-widget__controls" }, _r = {
874
878
  key: 1,
875
879
  class: "s-ui-chart-widget__content"
876
- }, ar = /* @__PURE__ */ P({
880
+ }, vr = /* @__PURE__ */ P({
877
881
  __name: "SChartWidget",
878
- props: /*@__PURE__*/ zt({
882
+ props: /*@__PURE__*/ Qt({
879
883
  title: { default: "" },
880
884
  collapsible: {
881
885
  type: Boolean,
@@ -898,11 +902,11 @@ var en = [
898
902
  }),
899
903
  emits: ["update:collapsed"],
900
904
  setup(e) {
901
- let t = Wt(e, "collapsed"), n = U(), { t: r } = Qt(), 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"));
905
+ let t = rn(e, "collapsed"), n = U(), { t: r } = fn(), 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"));
902
906
  return (n, r) => (L(), A("div", {
903
907
  class: F(["s-ui-chart-widget", { "s-ui-chart-widget--skeleton": e.loading }]),
904
908
  "data-qa": "ui:chart-widget"
905
- }, [i.value ? (L(), A("div", er, [e.loading ? (L(), A("span", tr)) : (L(), A("span", nr, [z(n.$slots, "title", {}, () => [N(V(e.title), 1)])])), j("div", rr, [z(n.$slots, "actions"), e.collapsible ? (L(), O(H(w), {
909
+ }, [i.value ? (L(), A("div", pr, [e.loading ? (L(), A("span", mr)) : (L(), A("span", hr, [z(n.$slots, "title", {}, () => [N(V(e.title), 1)])])), j("div", gr, [z(n.$slots, "actions"), e.collapsible ? (L(), O(H(w), {
906
910
  key: 0,
907
911
  appearance: H(C).OUTLINED,
908
912
  variant: H(S).NEUTRAL,
@@ -918,8 +922,8 @@ var en = [
918
922
  "icon",
919
923
  "aria-label",
920
924
  "aria-expanded"
921
- ])) : k("", !0)])])) : k("", !0), a.value ? (L(), A("div", ir, [z(n.$slots, "default")])) : k("", !0)], 2));
925
+ ])) : k("", !0)])])) : k("", !0), a.value ? (L(), A("div", _r, [z(n.$slots, "default")])) : k("", !0)], 2));
922
926
  }
923
927
  });
924
928
  //#endregion
925
- export { Et as CALENDAR_WEEK_SLOT_COUNT, Mt as DAY_TIMELINE_MINUTES, 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, Ee 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, Me as ESChipColor, Ne as ESChipSize, h as ESColorPaletteLayout, we as ESDropdownPlacement, de as ESInlineGroupOrientation, it as ESInlineInputAppearance, He as ESInlineMessageValidationStatus, Be as ESInputCustomize, We as ESLabelSize, Ge as ESLabelVariant, qe as ESListGap, Ze as ESListItemVariant, st as ESPhotoEditShape, ct as ESPhotoEditSize, $e as ESRadioLabelPlacement, Le as ESSelectSearchable, be as ESTabAppearance, xe as ESTabSize, Oe as ESTagColor, ke as ESTagSize, tt as ESToggleLabelPlacement, nt as ESToggleSize, se as ESelectionFocusMode, ie as ESelectionMode, oe as ESelectionOrientation, Dt as EWorkTimeSource, l as MAX_RECENT_COLORS, _ as RECOMMENDED_COLOR_PALETTE, c as SAvatar, ne as SAvatarGroup, n as SBadge, _n as SBanner, w as SButton, fe as SButtonGroup, kt as SCalendarMonth, Ot as SCalendarWeekGrid, ve as SCard, St as SChartBurnup, yt as SChartHorizontalBar, wt as SChartLegend, ht as SChartLine, xt as SChartMultiLine, bt as SChartPie, Ct as SChartProgress, $n as SChartSegmentedBar, _t as SChartStackedArea, vt as SChartStackedBar, ar as SChartWidget, ge as SCheckbox, Pe as SChip, d as SColorArea, v as SColorPalette, f as SColorPicker, u as SColorValues, At as SDayTimeline, Ie as SDropdown, Re as SDropdownMenu, ue as SInlineGroup, at as SInlineInput, Ue as SInlineMessage, Ve as SInput, Ke as SLabel, Xe as SList, Qe as SListItem, lt as SPhotoEdit, et as SRadio, ye as SSegmentControl, ze as SSelect, Se as STab, Ce as STabs, Ae as STag, je as STagGroup, ot as STextarea, vn as SToast, In as SToastProvider, rt as SToggle, Fe as S_DROPDOWN_SHEET_BREAKPOINT, Cn as TOAST_AUTO_DURATION_MAX_MS, Sn as TOAST_AUTO_DURATION_MIN_MS, wn as TOAST_AUTO_DURATION_MS_PER_CHAR, jt as WORK_TIME_SOURCE_COLOR_VARS, Nt as WORK_TIME_SOURCE_ORDER, Pt as buildWorkTimeLegendItems, Tn as computeAutoDuration, Te as computeConnectedPosition, qt as createUiKit, Ft as formatDurationHM, ee as isSameColor, b as normalizeColorValue, y as resolveColorPreview, re as resolveOwnPropOrGroupedOrFallback, Jt as setUiKitLocale, Yt as uiKitLocaleEn, Xt as uiKitLocaleRu, Ye as useFlatTreeList, De as useFloatingOverlay, Je as useSListEndReached, ae as useSelectionGroup, ce as useSelectionGroupItem, Fn as useToast, Zt as useUiKitI18n };
929
+ export { Dt as CALENDAR_WEEK_SLOT_COUNT, Nt as DAY_TIMELINE_MINUTES, 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, Ee 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, Me as ESChipColor, Ne as ESChipSize, h as ESColorPaletteLayout, we as ESDropdownPlacement, de as ESInlineGroupOrientation, it as ESInlineInputAppearance, Be as ESInlineMessageValidationStatus, Re as ESInputCustomize, He as ESLabelSize, Ue as ESLabelVariant, Ye as ESListGap, qe as ESListItemVariant, st as ESPhotoEditShape, ct as ESPhotoEditSize, $e as ESRadioLabelPlacement, Ze as ESSelectSearchable, be as ESTabAppearance, xe as ESTabSize, Ut as ESTableCellState, Gt as ESTableCheckState, Vt as ESTableColumnAlign, Lt as ESTableColumnSticky, Wt as ESTableDropAction, Kt as ESTableFooterTone, Rt as ESTableRowHeightMode, Ht as ESTableRowKind, Jt as ESTableRowState, zt as ESTableRowsDragMode, Bt as ESTableSortDirection, Oe as ESTagColor, ke as ESTagSize, tt as ESToggleLabelPlacement, nt as ESToggleSize, se as ESelectionFocusMode, ie as ESelectionMode, oe as ESelectionOrientation, Ot as EWorkTimeSource, l as MAX_RECENT_COLORS, _ as RECOMMENDED_COLOR_PALETTE, c as SAvatar, ne as SAvatarGroup, n as SBadge, An as SBanner, w as SButton, fe as SButtonGroup, At as SCalendarMonth, kt as SCalendarWeekGrid, ve as SCard, Tt as SChartBar, Ct as SChartBurnup, bt as SChartHorizontalBar, ut as SChartLegend, gt as SChartLine, St as SChartMultiLine, xt as SChartPie, Et as SChartProgress, fr as SChartSegmentedBar, vt as SChartStackedArea, yt as SChartStackedBar, vr as SChartWidget, ge as SCheckbox, Pe as SChip, d as SColorArea, v as SColorPalette, f as SColorPicker, u as SColorValues, jt as SDayTimeline, Ie as SDropdown, Le as SDropdownMenu, ue as SInlineGroup, at as SInlineInput, Ve as SInlineMessage, ze as SInput, We as SLabel, Xe as SList, Je as SListItem, lt as SPhotoEdit, et as SRadio, ye as SSegmentControl, Qe as SSelect, Se as STab, qt as STable, Ce as STabs, Ae as STag, je as STagGroup, ot as STextarea, jn as SToast, Yn as SToastProvider, rt as SToggle, Fe as S_DROPDOWN_SHEET_BREAKPOINT, In as TOAST_AUTO_DURATION_MAX_MS, Fn as TOAST_AUTO_DURATION_MIN_MS, Ln as TOAST_AUTO_DURATION_MS_PER_CHAR, Mt as WORK_TIME_SOURCE_COLOR_VARS, Pt as WORK_TIME_SOURCE_ORDER, Ft as buildWorkTimeLegendItems, Rn as computeAutoDuration, Te as computeConnectedPosition, sn as createUiKit, It as formatDurationHM, ee as isSameColor, b as normalizeColorValue, y as resolveColorPreview, re as resolveOwnPropOrGroupedOrFallback, cn as setUiKitLocale, ln as uiKitLocaleEn, un as uiKitLocaleRu, Ke as useFlatTreeList, De as useFloatingOverlay, Ge as useSListEndReached, ae as useSelectionGroup, ce as useSelectionGroupItem, Jn as useToast, dn as useUiKitI18n };
@@ -0,0 +1 @@
1
+ const e=require("./useChartInteractivity-CXSdHPOw.cjs"),t=require("./resolveSeriesPaletteColor-B5qoBbXN.cjs");var n=(n,r,i,a=!1)=>t.t(n,r,i,a,{palette:e.h,paletteFallback:e.g.barStackedPalette1,skeletonPalette:e.m,skeletonFallback:e.g.barSkeletonPalette1});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
@@ -0,0 +1,11 @@
1
+ import { g as e, h as t, m as n } from "./useChartInteractivity-BATdT86l.js";
2
+ import { t as r } from "./resolveSeriesPaletteColor-DcLSyk-D.js";
3
+ //#region src/utils/chart/bar/resolveBarStackedSeriesColor.ts
4
+ var i = (i, a, o, s = !1) => r(i, a, o, s, {
5
+ palette: t,
6
+ paletteFallback: e.barStackedPalette1,
7
+ skeletonPalette: n,
8
+ skeletonFallback: e.barSkeletonPalette1
9
+ });
10
+ //#endregion
11
+ export { i as t };
@@ -0,0 +1 @@
1
+ const e=require("./useChartInteractivity-CXSdHPOw.cjs");var t=(t,n)=>t.startsWith(`--`)?e.S(t,n):t,n=(n,r,i,a,o)=>{if(i)return t(i,r);let s=a?o.skeletonPalette:o.palette,c=a?o.skeletonFallback:o.paletteFallback;return e.S(s[n%s.length]??c,r)};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});