@shtabapp/ui-kit 1.31.0 → 1.33.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 (111) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/SAvatar-C2gekygl.cjs +1 -0
  3. package/dist/SAvatar-DAfDAqrP.js +265 -0
  4. package/dist/{SAvatarGroup-CMa9KhUZ.cjs → SAvatarGroup-76j-sHCe.cjs} +1 -1
  5. package/dist/{SAvatarGroup-wkXHy_tK.js → SAvatarGroup-HvIlI5y0.js} +1 -1
  6. package/dist/{SChartHorizontalBar-CCn6L_Du.js → SChartHorizontalBar-DIn1sVoi.js} +1 -1
  7. package/dist/{SChartHorizontalBar-CLXp8bvq.cjs → SChartHorizontalBar-tfgmCHtk.cjs} +1 -1
  8. package/dist/{SChartLegend-CLTLJeRH.cjs → SChartLegend-BFwzIA4x.cjs} +1 -1
  9. package/dist/{SChartLegend-CcbzWNuw.js → SChartLegend-DW16AfUz.js} +1 -1
  10. package/dist/{SChartLine-BaOJ7lmv.js → SChartLine-G5CeC01A.js} +1 -1
  11. package/dist/{SChartLine-C_16iDsx.cjs → SChartLine-xql-HCwK.cjs} +1 -1
  12. package/dist/{SChartPie-qCJdztmc.js → SChartPie-_6ij1EVn.js} +18 -18
  13. package/dist/{SChartPie-BdKc6EbI.cjs → SChartPie-xu1fcWMy.cjs} +1 -1
  14. package/dist/SChartProgress-C08fiO6U.cjs +1 -0
  15. package/dist/SChartProgress-CofVafO6.js +207 -0
  16. package/dist/{SChartSkeletonHost-BnYGg6WN.js → SChartSkeletonHost-CnfMevXX.js} +86 -67
  17. package/dist/SChartSkeletonHost-YmLC5zOX.cjs +1 -0
  18. package/dist/{SChartStackedArea-ByOgW4Mi.cjs → SChartStackedArea-BUy47veO.cjs} +1 -1
  19. package/dist/{SChartStackedArea-B-E5tLfo.js → SChartStackedArea-RKK7aT7x.js} +20 -20
  20. package/dist/{SChartStackedBar-CbOLEjHH.cjs → SChartStackedBar-1HNyHP8J.cjs} +1 -1
  21. package/dist/{SChartStackedBar-DmtysTnY.js → SChartStackedBar-CJunMhyb.js} +23 -23
  22. package/dist/{SSelect-iBb45tet.js → SSelect-CZe3djdm.js} +6 -1
  23. package/dist/{SSelect-CgL7ECfS.cjs → SSelect-DAPSmCWf.cjs} +1 -1
  24. package/dist/STag-BwzuI3cF.cjs +1 -0
  25. package/dist/STag-L6B4DxOx.js +122 -0
  26. package/dist/{STagGroup-BMyuxfVX.cjs → STagGroup-BMGq6jB5.cjs} +1 -1
  27. package/dist/{STagGroup-B2-_OG3R.js → STagGroup-DWsu0ket.js} +1 -1
  28. package/dist/{buildChartSeriesPoints-Cj8ooXn5.js → buildChartSeriesPoints-D-j16fMh.js} +1 -1
  29. package/dist/{buildChartSeriesPoints-DXgWMMZH.cjs → buildChartSeriesPoints-lASMQmBx.cjs} +1 -1
  30. package/dist/components/SAvatar/SAvatar.vue.d.ts.map +1 -1
  31. package/dist/components/SAvatar/utils/getAvatarInitialsTextColor.d.ts +4 -0
  32. package/dist/components/SAvatar/utils/getAvatarInitialsTextColor.d.ts.map +1 -0
  33. package/dist/components/SAvatar/utils/resolveAvatarColor.d.ts +1 -3
  34. package/dist/components/SAvatar/utils/resolveAvatarColor.d.ts.map +1 -1
  35. package/dist/components/SChartProgress/SChartProgress.types.d.ts +15 -0
  36. package/dist/components/SChartProgress/SChartProgress.types.d.ts.map +1 -0
  37. package/dist/components/SChartProgress/SChartProgress.vue.d.ts +5 -0
  38. package/dist/components/SChartProgress/SChartProgress.vue.d.ts.map +1 -0
  39. package/dist/components/SChartProgress/index.d.ts +3 -0
  40. package/dist/components/SChartProgress/index.d.ts.map +1 -0
  41. package/dist/components/SChartProgress/utils/buildProgressChartConfig.d.ts +16 -0
  42. package/dist/components/SChartProgress/utils/buildProgressChartConfig.d.ts.map +1 -0
  43. package/dist/components/SChartProgress/utils/buildProgressChartData.d.ts +18 -0
  44. package/dist/components/SChartProgress/utils/buildProgressChartData.d.ts.map +1 -0
  45. package/dist/components/SChartProgress/utils/demoProgressSnapshots.d.ts +5 -0
  46. package/dist/components/SChartProgress/utils/demoProgressSnapshots.d.ts.map +1 -0
  47. package/dist/components/SChartProgress/utils/formatProgressChartDate.d.ts +2 -0
  48. package/dist/components/SChartProgress/utils/formatProgressChartDate.d.ts.map +1 -0
  49. package/dist/components/SChartProgress/utils/productionProgressSnapshots.d.ts +4 -0
  50. package/dist/components/SChartProgress/utils/productionProgressSnapshots.d.ts.map +1 -0
  51. package/dist/components/SChartProgress/utils/resolveProgressChartPointStyle.d.ts +10 -0
  52. package/dist/components/SChartProgress/utils/resolveProgressChartPointStyle.d.ts.map +1 -0
  53. package/dist/components/SChartProgress/utils/skeletonProgressSnapshots.d.ts +6 -0
  54. package/dist/components/SChartProgress/utils/skeletonProgressSnapshots.d.ts.map +1 -0
  55. package/dist/components/SSelect/SSelect.types.d.ts +5 -0
  56. package/dist/components/SSelect/SSelect.types.d.ts.map +1 -1
  57. package/dist/components/SSelect/SSelect.vue.d.ts.map +1 -1
  58. package/dist/components/STag/utils/resolveTagColor.d.ts +1 -3
  59. package/dist/components/STag/utils/resolveTagColor.d.ts.map +1 -1
  60. package/dist/contrastSurfaceTextColor-Dl641cZ_.js +33 -0
  61. package/dist/contrastSurfaceTextColor-Ybh-FZof.cjs +1 -0
  62. package/dist/entries/avatar-group.cjs +1 -1
  63. package/dist/entries/avatar-group.js +1 -1
  64. package/dist/entries/avatar.cjs +1 -1
  65. package/dist/entries/avatar.js +1 -1
  66. package/dist/entries/chart-horizontal-bar.cjs +1 -1
  67. package/dist/entries/chart-horizontal-bar.js +1 -1
  68. package/dist/entries/chart-line.cjs +1 -1
  69. package/dist/entries/chart-line.js +1 -1
  70. package/dist/entries/chart-pie.cjs +1 -1
  71. package/dist/entries/chart-pie.js +1 -1
  72. package/dist/entries/chart-progress.cjs +1 -0
  73. package/dist/entries/chart-progress.d.ts +3 -0
  74. package/dist/entries/chart-progress.d.ts.map +1 -0
  75. package/dist/entries/chart-progress.js +2 -0
  76. package/dist/entries/chart-stacked-area.cjs +1 -1
  77. package/dist/entries/chart-stacked-area.js +1 -1
  78. package/dist/entries/chart-stacked-bar.cjs +1 -1
  79. package/dist/entries/chart-stacked-bar.js +1 -1
  80. package/dist/entries/select.cjs +1 -1
  81. package/dist/entries/select.js +1 -1
  82. package/dist/entries/tag-group.cjs +1 -1
  83. package/dist/entries/tag-group.js +2 -2
  84. package/dist/entries/tag.cjs +1 -1
  85. package/dist/entries/tag.js +1 -1
  86. package/dist/index.cjs +1 -1
  87. package/dist/index.d.ts +2 -0
  88. package/dist/index.d.ts.map +1 -1
  89. package/dist/index.js +13 -12
  90. package/dist/uikit-components.css +1 -1
  91. package/dist/utils/chart/chart.types.d.ts +4 -0
  92. package/dist/utils/chart/chart.types.d.ts.map +1 -1
  93. package/dist/utils/chart/chartJsAugmentation.d.ts +1 -0
  94. package/dist/utils/chart/chartJsAugmentation.d.ts.map +1 -1
  95. package/dist/utils/chart/core/chartCssVariables.d.ts +2 -0
  96. package/dist/utils/chart/core/chartCssVariables.d.ts.map +1 -1
  97. package/dist/utils/chart/core/chartSkeletonConfig.d.ts +2 -1
  98. package/dist/utils/chart/core/chartSkeletonConfig.d.ts.map +1 -1
  99. package/dist/utils/chart/core/registerChartJs.d.ts.map +1 -1
  100. package/dist/utils/chart/progress/createProgressChartTooltipPositioner.d.ts +4 -0
  101. package/dist/utils/chart/progress/createProgressChartTooltipPositioner.d.ts.map +1 -0
  102. package/dist/utils/color/contrastSurfaceTextColor.d.ts +4 -0
  103. package/dist/utils/color/contrastSurfaceTextColor.d.ts.map +1 -0
  104. package/dist/utils/color/index.d.ts +2 -0
  105. package/dist/utils/color/index.d.ts.map +1 -0
  106. package/package.json +8 -3
  107. package/dist/SAvatar-BS9Lu2eL.js +0 -249
  108. package/dist/SAvatar-BXABKIV0.cjs +0 -1
  109. package/dist/SChartSkeletonHost-CixHLD65.cjs +0 -1
  110. package/dist/STag-CYoj7L-p.js +0 -118
  111. package/dist/STag-DVrSWByQ.cjs +0 -1
@@ -1,14 +1,14 @@
1
- import { a as e, d as t, f as n, i as r, l as i, o as a, p as o, r as s, t as c, u as l, v as u } from "./SChartSkeletonHost-BnYGg6WN.js";
1
+ import { a as e, d as t, f as n, i as r, m as i, o as a, p as o, r as s, t as c, u as l, y as u } from "./SChartSkeletonHost-CnfMevXX.js";
2
2
  import { t as d } from "./buildCartesianChartScales-EofFq3ry.js";
3
- import { n as f, r as p, t as m } from "./buildChartSeriesPoints-Cj8ooXn5.js";
4
- import { n as h, t as g } from "./SChartLegend-CcbzWNuw.js";
3
+ import { n as f, r as p, t as m } from "./buildChartSeriesPoints-D-j16fMh.js";
4
+ import { n as h, t as g } from "./SChartLegend-DW16AfUz.js";
5
5
  import { computed as _, createBlock as v, createCommentVNode as y, createElementBlock as b, createElementVNode as x, createVNode as S, defineComponent as C, normalizeClass as w, openBlock as T, unref as E, useTemplateRef as D, withCtx as O } from "vue";
6
6
  //#region src/utils/chart/bar/resolveBarStackedSeriesColor.ts
7
- var k = (e, r, i, a = !1) => h(e, r, i, a, {
8
- palette: n,
9
- paletteFallback: o.barStackedPalette1,
10
- skeletonPalette: t,
11
- skeletonFallback: o.barSkeletonPalette1
7
+ var k = (e, t, r, a = !1) => h(e, t, r, a, {
8
+ palette: o,
9
+ paletteFallback: i.barStackedPalette1,
10
+ skeletonPalette: n,
11
+ skeletonFallback: i.barSkeletonPalette1
12
12
  }), A = 3, j = 4, M = (e, t, n, r, i, a) => {
13
13
  let o = Math.min(a, r / 2, i), s = o;
14
14
  e.beginPath(), e.moveTo(t, n + i), e.lineTo(t, n + o), e.arcTo(t, n, t + o, n, o), e.lineTo(t + r - s, n), e.arcTo(t + r, n, t + r, n + s, s), e.lineTo(t + r, n + i), e.closePath(), e.stroke();
@@ -17,25 +17,25 @@ var k = (e, r, i, a = !1) => h(e, r, i, a, {
17
17
  afterDatasetsDraw(t) {
18
18
  let n = t.tooltip?.getActiveElements() ?? [];
19
19
  if (n.length === 0) return;
20
- let r = Infinity, i = Infinity, a = -Infinity, s = -Infinity;
20
+ let r = Infinity, a = Infinity, o = -Infinity, s = -Infinity;
21
21
  for (let e of n) {
22
- let { x: t, y: n, width: o, base: c } = e.element.getProps([
22
+ let { x: t, y: n, width: i, base: c } = e.element.getProps([
23
23
  "x",
24
24
  "y",
25
25
  "width",
26
26
  "base"
27
- ]), l = t - o / 2, u = t + o / 2, d = n, f = c;
28
- r = Math.min(r, l), a = Math.max(a, u), i = Math.min(i, d), s = Math.max(s, f);
27
+ ]), l = t - i / 2, u = t + i / 2, d = n, f = c;
28
+ r = Math.min(r, l), o = Math.max(o, u), a = Math.min(a, d), s = Math.max(s, f);
29
29
  }
30
- let c = u(o.barHoverOutline, e), { ctx: l, chartArea: d } = t, f = A / 2, p = d?.bottom ?? s, m = Math.min(s, p), h = r + f, g = i + f, _ = a - r - A, v = m - i - A;
30
+ let c = u(i.barHoverOutline, e), { ctx: l, chartArea: d } = t, f = A / 2, p = d?.bottom ?? s, m = Math.min(s, p), h = r + f, g = a + f, _ = o - r - A, v = m - a - A;
31
31
  if (_ <= 0 || v <= 0) return;
32
32
  let y = Math.max(0, j - f);
33
33
  l.save(), l.strokeStyle = c, l.lineWidth = A, M(l, h, g, _, v, y), l.restore();
34
34
  }
35
- }), P = 5, F = "stack0", I = 36, L = 4, R = 12, z = ({ seriesList: t, colorHostElement: n, yMax: o, yMin: s, yStep: c = P, skeleton: u = !1 }) => {
35
+ }), P = 5, F = "stack0", I = 36, L = 4, R = 12, z = ({ seriesList: n, colorHostElement: i, yMax: o, yMin: s, yStep: c = P, skeleton: u = !1 }) => {
36
36
  let f = p({
37
- seriesList: t,
38
- colorHostElement: n,
37
+ seriesList: n,
38
+ colorHostElement: i,
39
39
  yMax: o,
40
40
  yMin: s,
41
41
  yStep: c,
@@ -47,13 +47,13 @@ var k = (e, r, i, a = !1) => h(e, r, i, a, {
47
47
  type: "bar",
48
48
  data: {
49
49
  labels: b,
50
- datasets: t.map((e, t) => {
51
- let r = k(t, n, e.fillColor, u);
50
+ datasets: n.map((e, t) => {
51
+ let n = k(t, i, e.fillColor, u);
52
52
  return {
53
53
  label: e.label,
54
54
  data: e.points.map((e) => e.value),
55
- backgroundColor: r,
56
- hoverBackgroundColor: r,
55
+ backgroundColor: n,
56
+ hoverBackgroundColor: n,
57
57
  borderWidth: 0,
58
58
  hoverBorderWidth: 0,
59
59
  stack: F,
@@ -81,11 +81,11 @@ var k = (e, r, i, a = !1) => h(e, r, i, a, {
81
81
  titleColor: _,
82
82
  bodyColor: _,
83
83
  displayColors: !1,
84
- position: i,
84
+ position: l,
85
85
  yAlign: "bottom",
86
86
  xAlign: "center",
87
87
  caretPadding: 8,
88
- callbacks: l()
88
+ callbacks: t()
89
89
  }
90
90
  },
91
91
  scales: d({
@@ -98,7 +98,7 @@ var k = (e, r, i, a = !1) => h(e, r, i, a, {
98
98
  xTickFontSize: R
99
99
  })
100
100
  },
101
- plugins: a(u, [N(n)])
101
+ plugins: a(u, [N(i)])
102
102
  };
103
103
  }, B = [
104
104
  "5 неделя",
@@ -248,6 +248,10 @@ var fe = {
248
248
  listHeight: { default: 320 },
249
249
  searchPlaceholder: { default: "Search" },
250
250
  filterOption: { type: Function },
251
+ fitViewport: {
252
+ type: Boolean,
253
+ default: !0
254
+ },
251
255
  label: {},
252
256
  labelProps: {},
253
257
  placeholder: {},
@@ -436,7 +440,7 @@ var fe = {
436
440
  reference: Je.value,
437
441
  disabled: i.disabled,
438
442
  "match-reference-width": !0,
439
- "fit-viewport": !0,
443
+ "fit-viewport": i.fitViewport,
440
444
  "content-id": qe.value,
441
445
  "dismiss-on-click-outside": !0,
442
446
  "dismiss-on-escape": !0
@@ -541,6 +545,7 @@ var fe = {
541
545
  "modelValue",
542
546
  "reference",
543
547
  "disabled",
548
+ "fit-viewport",
544
549
  "content-id"
545
550
  ]), v(A(o), {
546
551
  ref_key: "triggerInputRef",
@@ -1 +1 @@
1
- const e=require("./SButton.types-UKroD-ev.cjs"),t=require("./SButton-C-z_q5CG.cjs"),n=require("./useSelectionGroup-TaektE-I.cjs"),r=require("./SInput-DYS84eMS.cjs"),i=require("./SDropdown-B6b7IDjp.cjs"),a=require("./SList-CU2Sy9Md.cjs"),o=require("./SListItem-BDkldLVt.cjs");let s=require("vue"),c=require("@shtabapp/ui-kit-primitives");var l={key:0,class:`s-ui-dropdown-menu__header`},u={key:1,class:`s-ui-dropdown-menu__footer`},d=(0,s.defineComponent)({__name:`SDropdownMenu`,props:{width:{},maxHeight:{},accent:{type:Boolean,default:!1}},setup(e){let t=(0,s.useSlots)(),n=e=>typeof e==`number`?`${e}px`:e,r=(0,s.computed)(()=>({"s-ui-dropdown-menu--accent":e.accent,"s-ui-dropdown-menu--bounded":!!e.maxHeight})),i=(0,s.computed)(()=>({"s-ui-dropdown-menu__body--scrollable":!!e.maxHeight})),a=(0,s.computed)(()=>({"--s-ui-dropdown-menu-width":n(e.width),"--s-ui-dropdown-menu-max-height":n(e.maxHeight)}));return(e,n)=>((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{class:(0,s.normalizeClass)([`s-ui-dropdown-menu`,r.value]),style:(0,s.normalizeStyle)(a.value)},[(0,s.unref)(t).header?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,l,[(0,s.renderSlot)(e.$slots,`header`)])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`div`,{class:(0,s.normalizeClass)([`s-ui-dropdown-menu__body`,i.value])},[(0,s.renderSlot)(e.$slots,`default`)],2),(0,s.unref)(t).footer?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,u,[(0,s.renderSlot)(e.$slots,`footer`)])):(0,s.createCommentVNode)(``,!0)],6))}}),f=({listItemScope:e,itemTitle:t,itemSubtitle:n,itemDisabled:r,itemIconLeft:i,listActiveKey:o,isOptionSelected:s})=>{let c=e.item;return{rowKey:e.key,title:a.i(c,t),subtitle:a.i(c,n),disabled:a.n(c,r),iconLeft:a.r(c,i),selected:s,active:o===e.key,revealRight:e.revealRight,tiny:!0}},p=e=>typeof e==`string`||typeof e==`number`,m=(e,t)=>{let n=e[t];if(p(n))return n},h=e=>typeof e==`string`?e:String(e),g=e=>e==null?!1:typeof e==`string`?e.length>0:!0,_=(e,t,n)=>t.find(t=>h(m(t,n)??``)===e),v=e=>typeof e==`object`&&!!e,y=(e,t,n)=>{let r=_(e,t,n);if(r)return m(r,n)},b=function(e){return e.INPUT=`input`,e.CONTENT=`content`,e}({}),x=(e,t,n)=>{if(!e)return!0;let r=e.toLocaleLowerCase(),i=a.i(t,n.itemTitle)?.toLocaleLowerCase()??``,o=h(m(t,n.itemValue)??``).toLocaleLowerCase();return i.includes(r)||o.includes(r)},S=(e,t,n,r)=>{let i=r??((e,t)=>x(e,t,n));return t?e.filter(e=>i(t,e)):[...e]},C=e=>typeof e==`string`&&g(e),w=e=>typeof e==`number`&&g(e),T=(e,t,n)=>{if(t){if(!v(e))return;let t=m(e,n);return C(t)||w(t)?t:void 0}let r=typeof e==`string`||typeof e==`number`?e:void 0;if(C(r)||w(r))return r},E=(e,t,n)=>e?(Array.isArray(e)?e:[e]).flatMap(e=>{let r=T(e,t,n);return g(r)?[r]:[]}):[],D=(e,t)=>{if(C(t)){e.value=t;return}if(w(t)){e.value=t;return}e.value=void 0},O=(e,t,n)=>t.flatMap(t=>{let r=h(t),i=e.find(e=>h(m(e,n)??``)===r);return i?[i]:[]}),k=({modelValue:e,options:t,itemFields:r,multiple:i,returnObject:o,searchable:c,filterOption:l,isDropdownOpen:u,searchQuery:d})=>{let f=(0,s.computed)(()=>(0,s.toValue)(i)),p=(0,s.computed)(()=>(0,s.toValue)(o)),v=(0,s.computed)(()=>(0,s.toValue)(c)===b.INPUT),x=(0,s.computed)(()=>(0,s.toValue)(c)===b.CONTENT),C=(0,s.computed)(()=>!!(0,s.toValue)(c)),w=(0,s.computed)(()=>{let t=(0,s.toValue)(r);return E(e.value,p.value,t.itemValue)}),T=(0,s.computed)(()=>{let e=(0,s.toValue)(t),n=(0,s.toValue)(r);return S(e,C.value?d.value:``,n,(0,s.toValue)(l))}),k=(0,s.computed)(()=>f.value?n.n.MULTIPLE:n.n.SINGLE),A=(t,n,r)=>{if(p.value){e.value=O(n,t,r);return}e.value=t},ee=(t,n,r)=>{if(!t){e.value=void 0;return}if(p.value){e.value=_(t,n,r)??void 0;return}D(e,y(t,n,r))},te=(0,s.computed)({get:()=>{if(f.value)return w.value.map(e=>h(e));let e=w.value[0];if(g(e))return h(e)},set:e=>{let n=(0,s.toValue)(t),i=(0,s.toValue)(r);if(f.value){A((Array.isArray(e)?e:[]).map(e=>y(e,n,i.itemValue)).filter(e=>g(e)),n,i.itemValue);return}ee(typeof e==`string`?e:void 0,n,i.itemValue)}}),j=(0,s.computed)(()=>w.value.length>0),M=(e,t,n)=>{let r=h(t);return e.find(e=>h(m(e,n)??``)===r)},N=(0,s.computed)(()=>{let e=w.value[0];if(!g(e))return``;let n=(0,s.toValue)(r),i=M((0,s.toValue)(t),e,n.itemValue);return i?a.i(i,n.itemTitle)??``:h(e)}),P=(0,s.computed)(()=>{let e=(0,s.toValue)(t),n=(0,s.toValue)(r);return w.value.map(t=>{let r=M(e,t,n.itemValue);return r?a.i(r,n.itemTitle)??``:h(t)})}),ne=(0,s.computed)(()=>P.value.join(`, `)),re=(0,s.computed)(()=>f.value?w.value.length===0:!N.value),F=(0,s.computed)(()=>v.value&&(u.value||f.value)),I=()=>{d.value=``};return(0,s.watch)(u,e=>{e||I()}),(0,s.watch)(()=>(0,s.toValue)(c),()=>{I()}),{searchQuery:d,selectedValues:w,filteredOptions:T,listSelectionMode:k,listSelectedModel:te,hasSelectedValues:j,singleDisplayLabel:N,multipleDisplayLabels:P,multipleDisplayText:ne,showPlaceholder:re,showInputSearchField:F,isSearchableMode:C,isSearchableInputMode:v,isSearchableContentMode:x,isMultipleMode:f,isReturnObjectMode:p,clearSelection:()=>{e.value=void 0,I()},removeSelectedValue:e=>{let n=h(e);A(w.value.filter(e=>h(e)!==n),(0,s.toValue)(t),(0,s.toValue)(r).itemValue)},resetSearchQuery:I,formatSelectListKey:h,resolveValueFromListKey:e=>y(e,(0,s.toValue)(t),(0,s.toValue)(r).itemValue)}},A={key:1,class:`s-ui-select__empty s-ui-typography-body-14-regular`},ee=[`id`,`aria-expanded`,`aria-controls`,`aria-disabled`,`aria-readonly`,`aria-autocomplete`,`tabindex`],te={key:0,class:`s-ui-select__value`},j={key:1,class:`s-ui-select__placeholder`},M={key:1,class:`s-ui-select__placeholder`},N={key:2,class:`s-ui-select__value`},P={key:3,class:`s-ui-select__value-suffix`},ne=[`name`,`placeholder`,`disabled`,`readonly`],re=20,F=20,I=(0,s.defineComponent)({inheritAttrs:!1,__name:`SSelect`,props:(0,s.mergeModels)({options:{},itemValue:{default:`value`},itemTitle:{default:`label`},itemSubtitle:{default:`subtitle`},itemId:{},itemDisabled:{default:`disabled`},itemIconLeft:{default:`iconLeft`},multiple:{type:Boolean,default:!1},returnObject:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},closableOptions:{type:Boolean,default:!1},searchable:{type:[String,Boolean],default:!1},closeOnSelect:{type:Boolean,default:!0},listHeight:{default:320},searchPlaceholder:{default:`Search`},filterOption:{type:Function},label:{},labelProps:{},placeholder:{},helpMessages:{},errorMessages:{},bordered:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},iconLeft:{},customize:{default:()=>r.n.NONE},name:{},id:{}},{modelValue:{},modelModifiers:{},searchQuery:{default:``},searchQueryModifiers:{}}),emits:(0,s.mergeModels)([`clear`,`focus`,`blur`,`open`,`close`],[`update:modelValue`,`update:searchQuery`]),setup(n,{expose:l,emit:u}){let p=(0,s.useModel)(n,`modelValue`),m=(0,s.useModel)(n,`searchQuery`),h=u,_=(0,s.useSlots)(),v=(0,s.useId)(),y=(0,s.useId)(),b=(0,s.useTemplateRef)(`triggerInputRef`),x=(0,s.ref)(``),S=(0,s.useTemplateRef)(`searchInputElementRef`),C=(0,s.useTemplateRef)(`panelSearchInputElementRef`),w=(0,s.useTemplateRef)(`listElementRef`),T=(0,s.ref)(),E=(0,s.ref)(!1),D=(0,s.ref)(!1),O=(0,s.computed)(()=>n.itemId??n.itemValue),I=(0,s.computed)(()=>({itemValue:n.itemValue,itemTitle:n.itemTitle,itemSubtitle:n.itemSubtitle,itemId:O.value})),{selectedValues:L,filteredOptions:R,listSelectionMode:ie,listSelectedModel:z,hasSelectedValues:B,singleDisplayLabel:ae,multipleDisplayLabels:oe,multipleDisplayText:V,showPlaceholder:H,showInputSearchField:U,isSearchableMode:se,isSearchableInputMode:W,isSearchableContentMode:G,isMultipleMode:K,clearSelection:ce,removeSelectedValue:q,resolveValueFromListKey:le,formatSelectListKey:J}=k({modelValue:p,options:()=>n.options,itemFields:()=>I.value,multiple:()=>n.multiple,returnObject:()=>n.returnObject,searchable:()=>n.searchable,filterOption:()=>n.filterOption,isDropdownOpen:E,searchQuery:m}),ue=(0,s.computed)(()=>!!_[`value-suffix`]),de=(0,s.computed)(()=>({disabled:n.disabled,displayLabel:ae.value})),Y=(0,s.computed)(()=>R.value.length>F),fe=(0,s.computed)(()=>G.value||Y.value?n.listHeight:`auto`),pe=(0,s.computed)(()=>{if(!(G.value||Y.value))return n.listHeight}),me=(0,s.computed)(()=>L.value.map(e=>J(e))),he=e=>me.value.includes(e),ge=()=>({tiny:!0}),_e=e=>f({listItemScope:e,itemTitle:n.itemTitle,itemSubtitle:n.itemSubtitle,itemDisabled:n.itemDisabled,itemIconLeft:n.itemIconLeft,listActiveKey:T.value,isOptionSelected:he(e.key)}),ve=e=>{let t=le(e);if(g(t)){if(K.value){q(t);return}p.value=void 0}},ye=(0,s.computed)(()=>n.id??v),be=(0,s.computed)(()=>y),xe=(0,s.computed)(()=>b.value?.fieldElementRef??null),Se=(0,s.computed)(()=>({labels:oe.value,values:L.value,displayText:V.value,disabled:n.disabled||n.readonly,removeValue:q})),Ce=(0,s.computed)(()=>{if(!n.disabled&&(n.readonly&&!W.value||!W.value))return 0}),we=(0,s.computed)(()=>({"s-ui-select--disabled":n.disabled,"s-ui-select--readonly":n.readonly,"s-ui-select--multiple":K.value,"s-ui-select--open":E.value})),Te=()=>{if(G.value){C.value?.focus();return}S.value?.focus()},Ee=async()=>{await(0,s.nextTick)(),C.value?.focus()},De=async()=>{await(0,s.nextTick)(),await w.value?.focusNavigation()},X=async()=>{if(!(n.disabled||n.readonly)&&!E.value){if(E.value=!0,h(`open`),G.value){await Ee();return}if(W.value){await(0,s.nextTick)(),S.value?.focus();return}await De()}},Oe=async()=>{n.disabled||n.readonly||E.value||await X()};(0,s.watch)(m,async e=>{W.value&&(n.disabled||n.readonly||e&&(E.value||await X()))});let Z=()=>{E.value&&(E.value=!1,T.value=void 0,h(`close`))},Q=()=>{!n.closeOnSelect||K.value||Z()};(0,s.watch)(p,(e,t)=>{!n.closeOnSelect||K.value||!E.value||!e||e===t||Z()});let ke=e=>{E.value&&e.target instanceof Element&&e.target.closest(`.s-ui-list-item`)&&Q()},Ae=async e=>{e.key!==`Enter`&&e.key!==` `&&e.key!==`Spacebar`||E.value&&(await(0,s.nextTick)(),Q())},$=async()=>{if(E.value){Z();return}await X()},je=async e=>{if(!(n.disabled||n.readonly)&&e.target instanceof HTMLElement){if(e.target.closest(`.s-ui-select__search-input`)){E.value||await X();return}await $()}},Me=async e=>e.key!==`ArrowDown`&&e.key!==`ArrowUp`?!1:(e.preventDefault(),e.stopPropagation(),E.value||await X(),await De(),await w.value?.handleKeyboardNavigation(e),!0),Ne=e=>{let t=le(e);if(t){if(K.value){L.value.some(t=>J(t)===e)?q(t):z.value=[...L.value.map(e=>J(e)),e];return}z.value=e,Q()}},Pe=async e=>{if(!(n.disabled||n.readonly)&&!await Me(e)){if(e.key===`Escape`){e.preventDefault(),Z();return}if(e.key===`Enter`||e.key===` `){if(e.preventDefault(),E.value&&T.value){Ne(T.value);return}await $()}}},Fe=async e=>{if(e.key===`Escape`){e.preventDefault(),Z();return}await Me(e)},Ie=Fe,Le=e=>{n.disabled||(D.value||h(`focus`,e),D.value=!0)},Re=e=>{if(!(e.currentTarget instanceof HTMLElement))return;let t=e.relatedTarget;t instanceof Node&&e.currentTarget.contains(t)||(D.value=!1,h(`blur`,e))},ze=()=>{ce(),h(`clear`)};return l({open:X,close:Z,toggle:$,focusSearchInput:Te}),(l,u)=>((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{class:(0,s.normalizeClass)([`s-ui-select`,we.value])},[(0,s.createVNode)((0,s.unref)(i.t),{modelValue:E.value,"onUpdate:modelValue":u[4]||=e=>E.value=e,reference:xe.value,disabled:n.disabled,"match-reference-width":!0,"fit-viewport":!0,"content-id":be.value,"dismiss-on-click-outside":!0,"dismiss-on-escape":!0},{content:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(d),{class:`s-ui-select__menu`,width:`100%`},(0,s.createSlots)({default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,{class:`s-ui-select__menu-body`,onClick:ke,onKeydown:Ae},[(0,s.unref)(R).length>0?((0,s.openBlock)(),(0,s.createBlock)((0,s.unref)(a.t),{key:0,ref_key:`listElementRef`,ref:w,modelValue:T.value,"onUpdate:modelValue":u[2]||=e=>T.value=e,selected:(0,s.unref)(z),"onUpdate:selected":u[3]||=e=>(0,s.isRef)(z)?z.value=e:null,items:(0,s.unref)(R),"item-key":O.value,"title-key":n.itemTitle,"subtitle-key":n.itemSubtitle,"icon-left-key":n.itemIconLeft,"disabled-key":n.itemDisabled,"selection-mode":(0,s.unref)(ie),mandatory:!n.multiple,height:fe.value,"max-height":pe.value,virtual:Y.value,"item-props":ge},(0,s.createSlots)({_:2},[(0,s.unref)(_).option?{name:`item`,fn:(0,s.withCtx)(e=>[(0,s.renderSlot)(l.$slots,`option`,(0,s.normalizeProps)((0,s.guardReactiveProps)(e)))]),key:`0`}:n.closableOptions?{name:`item`,fn:(0,s.withCtx)(n=>[(0,s.createVNode)((0,s.unref)(o.t),(0,s.normalizeProps)((0,s.guardReactiveProps)(_e(n))),(0,s.createSlots)({_:2},[he(n.key)?{name:`right`,fn:(0,s.withCtx)(r=>[(0,s.createVNode)((0,s.unref)(t.t),{appearance:(0,s.unref)(e.t).BARE,variant:(0,s.unref)(e.r).NEUTRAL,size:(0,s.unref)(e.n).SMALL,icon:`closeMini`,disabled:r.disabled||r.readonly,tabindex:-1,onClick:(0,s.withModifiers)(e=>ve(n.key),[`stop`])},null,8,[`appearance`,`variant`,`size`,`disabled`,`onClick`])]),key:`0`}:void 0]),1040)]),key:`1`}:void 0]),1032,[`modelValue`,`selected`,`items`,`item-key`,`title-key`,`subtitle-key`,`icon-left-key`,`disabled-key`,`selection-mode`,`mandatory`,`height`,`max-height`,`virtual`])):((0,s.openBlock)(),(0,s.createElementBlock)(`div`,A,[(0,s.renderSlot)(l.$slots,`empty`,{},()=>[u[8]||=(0,s.createTextVNode)(`No options`,-1)])]))],32)]),_:2},[(0,s.unref)(G)?{name:`header`,fn:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(r.t),{ref_key:`panelSearchInputElementRef`,ref:C,modelValue:m.value,"onUpdate:modelValue":u[0]||=e=>m.value=e,placeholder:n.searchPlaceholder,disabled:n.disabled,clearable:!1,"icon-left":`search`,onClick:u[1]||=(0,s.withModifiers)(()=>{},[`stop`]),onKeydown:(0,s.unref)(Ie)},null,8,[`modelValue`,`placeholder`,`disabled`,`onKeydown`])]),key:`0`}:void 0,(0,s.unref)(_)[`panel-footer`]?{name:`footer`,fn:(0,s.withCtx)(()=>[(0,s.renderSlot)(l.$slots,`panel-footer`)]),key:`1`}:void 0]),1024)]),_:3},8,[`modelValue`,`reference`,`disabled`,`content-id`]),(0,s.createVNode)((0,s.unref)(r.t),{ref_key:`triggerInputRef`,ref:b,modelValue:x.value,"onUpdate:modelValue":u[7]||=e=>x.value=e,label:n.label,"label-props":n.labelProps,placeholder:n.placeholder,"help-messages":n.helpMessages,"error-messages":n.errorMessages,bordered:n.bordered,disabled:n.disabled,readonly:n.readonly,clearable:n.clearable,"has-value":(0,s.unref)(B),focused:D.value||E.value,"icon-left":n.iconLeft,customize:n.customize,name:n.name,id:ye.value,onClear:ze,onFocus:Le,onBlur:Re},(0,s.createSlots)({control:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,{id:ye.value,class:(0,s.normalizeClass)([`s-ui-select__control s-ui-typography-body-14-regular`,{"s-ui-select__control--multiple":(0,s.unref)(K),"s-ui-select__control--empty":(0,s.unref)(K)&&!(0,s.unref)(B)&&!(0,s.unref)(U),"s-ui-select__control--with-value-suffix":ue.value&&!(0,s.unref)(K)&&!(0,s.unref)(U)&&!(0,s.unref)(H)}]),role:`combobox`,"aria-expanded":E.value,"aria-controls":be.value,"aria-haspopup":`listbox`,"aria-disabled":n.disabled?!0:void 0,"aria-readonly":n.readonly?!0:void 0,"aria-autocomplete":(0,s.unref)(se)?`list`:void 0,tabindex:Ce.value,onClick:je,onKeydown:Pe},[(0,s.unref)(K)?(0,s.renderSlot)(l.$slots,`selection`,(0,s.normalizeProps)((0,s.mergeProps)({key:0},Se.value)),()=>[(0,s.unref)(V)?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,te,(0,s.toDisplayString)((0,s.unref)(V)),1)):(0,s.unref)(H)&&!(0,s.unref)(U)?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,j,(0,s.toDisplayString)(n.placeholder),1)):(0,s.createCommentVNode)(``,!0)]):(0,s.unref)(H)&&!(0,s.unref)(U)?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,M,(0,s.toDisplayString)(n.placeholder),1)):(0,s.unref)(U)?(0,s.createCommentVNode)(``,!0):((0,s.openBlock)(),(0,s.createElementBlock)(`span`,N,(0,s.toDisplayString)((0,s.unref)(ae)),1)),ue.value&&!(0,s.unref)(K)&&!(0,s.unref)(U)&&!(0,s.unref)(H)?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,P,[(0,s.renderSlot)(l.$slots,`value-suffix`,(0,s.normalizeProps)((0,s.guardReactiveProps)(de.value)))])):(0,s.createCommentVNode)(``,!0),(0,s.unref)(U)?(0,s.withDirectives)(((0,s.openBlock)(),(0,s.createElementBlock)(`input`,{key:4,ref_key:`searchInputElementRef`,ref:S,"onUpdate:modelValue":u[5]||=e=>m.value=e,class:`s-ui-select__search-input`,type:`text`,name:n.name,placeholder:n.placeholder,disabled:n.disabled,readonly:n.readonly,autocomplete:`off`,onClick:u[6]||=(0,s.withModifiers)(()=>{},[`stop`]),onFocus:Oe,onKeydown:Fe},null,40,ne)),[[s.vModelText,m.value]]):(0,s.createCommentVNode)(``,!0)],42,ee)]),action:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.SIcon),{name:`chevronMiniDown`,size:re,class:`s-ui-select__chevron`})]),_:2},[(0,s.unref)(_).label?{name:`label`,fn:(0,s.withCtx)(()=>[(0,s.renderSlot)(l.$slots,`label`)]),key:`0`}:void 0,(0,s.unref)(_).prefix?{name:`prefix`,fn:(0,s.withCtx)(e=>[(0,s.renderSlot)(l.$slots,`prefix`,(0,s.normalizeProps)((0,s.guardReactiveProps)(e)))]),key:`1`}:void 0,(0,s.unref)(_).prepend?{name:`prepend`,fn:(0,s.withCtx)(e=>[(0,s.renderSlot)(l.$slots,`prepend`,(0,s.normalizeProps)((0,s.guardReactiveProps)(e)))]),key:`2`}:void 0,(0,s.unref)(_).message?{name:`message`,fn:(0,s.withCtx)(()=>[(0,s.renderSlot)(l.$slots,`message`)]),key:`3`}:void 0]),1032,[`modelValue`,`label`,`label-props`,`placeholder`,`help-messages`,`error-messages`,`bordered`,`disabled`,`readonly`,`clearable`,`has-value`,`focused`,`icon-left`,`customize`,`name`,`id`])],2))}});Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return I}});
1
+ const e=require("./SButton.types-UKroD-ev.cjs"),t=require("./SButton-C-z_q5CG.cjs"),n=require("./useSelectionGroup-TaektE-I.cjs"),r=require("./SInput-DYS84eMS.cjs"),i=require("./SDropdown-B6b7IDjp.cjs"),a=require("./SList-CU2Sy9Md.cjs"),o=require("./SListItem-BDkldLVt.cjs");let s=require("vue"),c=require("@shtabapp/ui-kit-primitives");var l={key:0,class:`s-ui-dropdown-menu__header`},u={key:1,class:`s-ui-dropdown-menu__footer`},d=(0,s.defineComponent)({__name:`SDropdownMenu`,props:{width:{},maxHeight:{},accent:{type:Boolean,default:!1}},setup(e){let t=(0,s.useSlots)(),n=e=>typeof e==`number`?`${e}px`:e,r=(0,s.computed)(()=>({"s-ui-dropdown-menu--accent":e.accent,"s-ui-dropdown-menu--bounded":!!e.maxHeight})),i=(0,s.computed)(()=>({"s-ui-dropdown-menu__body--scrollable":!!e.maxHeight})),a=(0,s.computed)(()=>({"--s-ui-dropdown-menu-width":n(e.width),"--s-ui-dropdown-menu-max-height":n(e.maxHeight)}));return(e,n)=>((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{class:(0,s.normalizeClass)([`s-ui-dropdown-menu`,r.value]),style:(0,s.normalizeStyle)(a.value)},[(0,s.unref)(t).header?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,l,[(0,s.renderSlot)(e.$slots,`header`)])):(0,s.createCommentVNode)(``,!0),(0,s.createElementVNode)(`div`,{class:(0,s.normalizeClass)([`s-ui-dropdown-menu__body`,i.value])},[(0,s.renderSlot)(e.$slots,`default`)],2),(0,s.unref)(t).footer?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,u,[(0,s.renderSlot)(e.$slots,`footer`)])):(0,s.createCommentVNode)(``,!0)],6))}}),f=({listItemScope:e,itemTitle:t,itemSubtitle:n,itemDisabled:r,itemIconLeft:i,listActiveKey:o,isOptionSelected:s})=>{let c=e.item;return{rowKey:e.key,title:a.i(c,t),subtitle:a.i(c,n),disabled:a.n(c,r),iconLeft:a.r(c,i),selected:s,active:o===e.key,revealRight:e.revealRight,tiny:!0}},p=e=>typeof e==`string`||typeof e==`number`,m=(e,t)=>{let n=e[t];if(p(n))return n},h=e=>typeof e==`string`?e:String(e),g=e=>e==null?!1:typeof e==`string`?e.length>0:!0,_=(e,t,n)=>t.find(t=>h(m(t,n)??``)===e),v=e=>typeof e==`object`&&!!e,y=(e,t,n)=>{let r=_(e,t,n);if(r)return m(r,n)},b=function(e){return e.INPUT=`input`,e.CONTENT=`content`,e}({}),x=(e,t,n)=>{if(!e)return!0;let r=e.toLocaleLowerCase(),i=a.i(t,n.itemTitle)?.toLocaleLowerCase()??``,o=h(m(t,n.itemValue)??``).toLocaleLowerCase();return i.includes(r)||o.includes(r)},S=(e,t,n,r)=>{let i=r??((e,t)=>x(e,t,n));return t?e.filter(e=>i(t,e)):[...e]},C=e=>typeof e==`string`&&g(e),w=e=>typeof e==`number`&&g(e),T=(e,t,n)=>{if(t){if(!v(e))return;let t=m(e,n);return C(t)||w(t)?t:void 0}let r=typeof e==`string`||typeof e==`number`?e:void 0;if(C(r)||w(r))return r},E=(e,t,n)=>e?(Array.isArray(e)?e:[e]).flatMap(e=>{let r=T(e,t,n);return g(r)?[r]:[]}):[],D=(e,t)=>{if(C(t)){e.value=t;return}if(w(t)){e.value=t;return}e.value=void 0},O=(e,t,n)=>t.flatMap(t=>{let r=h(t),i=e.find(e=>h(m(e,n)??``)===r);return i?[i]:[]}),k=({modelValue:e,options:t,itemFields:r,multiple:i,returnObject:o,searchable:c,filterOption:l,isDropdownOpen:u,searchQuery:d})=>{let f=(0,s.computed)(()=>(0,s.toValue)(i)),p=(0,s.computed)(()=>(0,s.toValue)(o)),v=(0,s.computed)(()=>(0,s.toValue)(c)===b.INPUT),x=(0,s.computed)(()=>(0,s.toValue)(c)===b.CONTENT),C=(0,s.computed)(()=>!!(0,s.toValue)(c)),w=(0,s.computed)(()=>{let t=(0,s.toValue)(r);return E(e.value,p.value,t.itemValue)}),T=(0,s.computed)(()=>{let e=(0,s.toValue)(t),n=(0,s.toValue)(r);return S(e,C.value?d.value:``,n,(0,s.toValue)(l))}),k=(0,s.computed)(()=>f.value?n.n.MULTIPLE:n.n.SINGLE),A=(t,n,r)=>{if(p.value){e.value=O(n,t,r);return}e.value=t},ee=(t,n,r)=>{if(!t){e.value=void 0;return}if(p.value){e.value=_(t,n,r)??void 0;return}D(e,y(t,n,r))},te=(0,s.computed)({get:()=>{if(f.value)return w.value.map(e=>h(e));let e=w.value[0];if(g(e))return h(e)},set:e=>{let n=(0,s.toValue)(t),i=(0,s.toValue)(r);if(f.value){A((Array.isArray(e)?e:[]).map(e=>y(e,n,i.itemValue)).filter(e=>g(e)),n,i.itemValue);return}ee(typeof e==`string`?e:void 0,n,i.itemValue)}}),j=(0,s.computed)(()=>w.value.length>0),M=(e,t,n)=>{let r=h(t);return e.find(e=>h(m(e,n)??``)===r)},N=(0,s.computed)(()=>{let e=w.value[0];if(!g(e))return``;let n=(0,s.toValue)(r),i=M((0,s.toValue)(t),e,n.itemValue);return i?a.i(i,n.itemTitle)??``:h(e)}),P=(0,s.computed)(()=>{let e=(0,s.toValue)(t),n=(0,s.toValue)(r);return w.value.map(t=>{let r=M(e,t,n.itemValue);return r?a.i(r,n.itemTitle)??``:h(t)})}),ne=(0,s.computed)(()=>P.value.join(`, `)),re=(0,s.computed)(()=>f.value?w.value.length===0:!N.value),F=(0,s.computed)(()=>v.value&&(u.value||f.value)),I=()=>{d.value=``};return(0,s.watch)(u,e=>{e||I()}),(0,s.watch)(()=>(0,s.toValue)(c),()=>{I()}),{searchQuery:d,selectedValues:w,filteredOptions:T,listSelectionMode:k,listSelectedModel:te,hasSelectedValues:j,singleDisplayLabel:N,multipleDisplayLabels:P,multipleDisplayText:ne,showPlaceholder:re,showInputSearchField:F,isSearchableMode:C,isSearchableInputMode:v,isSearchableContentMode:x,isMultipleMode:f,isReturnObjectMode:p,clearSelection:()=>{e.value=void 0,I()},removeSelectedValue:e=>{let n=h(e);A(w.value.filter(e=>h(e)!==n),(0,s.toValue)(t),(0,s.toValue)(r).itemValue)},resetSearchQuery:I,formatSelectListKey:h,resolveValueFromListKey:e=>y(e,(0,s.toValue)(t),(0,s.toValue)(r).itemValue)}},A={key:1,class:`s-ui-select__empty s-ui-typography-body-14-regular`},ee=[`id`,`aria-expanded`,`aria-controls`,`aria-disabled`,`aria-readonly`,`aria-autocomplete`,`tabindex`],te={key:0,class:`s-ui-select__value`},j={key:1,class:`s-ui-select__placeholder`},M={key:1,class:`s-ui-select__placeholder`},N={key:2,class:`s-ui-select__value`},P={key:3,class:`s-ui-select__value-suffix`},ne=[`name`,`placeholder`,`disabled`,`readonly`],re=20,F=20,I=(0,s.defineComponent)({inheritAttrs:!1,__name:`SSelect`,props:(0,s.mergeModels)({options:{},itemValue:{default:`value`},itemTitle:{default:`label`},itemSubtitle:{default:`subtitle`},itemId:{},itemDisabled:{default:`disabled`},itemIconLeft:{default:`iconLeft`},multiple:{type:Boolean,default:!1},returnObject:{type:Boolean,default:!1},clearable:{type:Boolean,default:!1},closableOptions:{type:Boolean,default:!1},searchable:{type:[String,Boolean],default:!1},closeOnSelect:{type:Boolean,default:!0},listHeight:{default:320},searchPlaceholder:{default:`Search`},filterOption:{type:Function},fitViewport:{type:Boolean,default:!0},label:{},labelProps:{},placeholder:{},helpMessages:{},errorMessages:{},bordered:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},iconLeft:{},customize:{default:()=>r.n.NONE},name:{},id:{}},{modelValue:{},modelModifiers:{},searchQuery:{default:``},searchQueryModifiers:{}}),emits:(0,s.mergeModels)([`clear`,`focus`,`blur`,`open`,`close`],[`update:modelValue`,`update:searchQuery`]),setup(n,{expose:l,emit:u}){let p=(0,s.useModel)(n,`modelValue`),m=(0,s.useModel)(n,`searchQuery`),h=u,_=(0,s.useSlots)(),v=(0,s.useId)(),y=(0,s.useId)(),b=(0,s.useTemplateRef)(`triggerInputRef`),x=(0,s.ref)(``),S=(0,s.useTemplateRef)(`searchInputElementRef`),C=(0,s.useTemplateRef)(`panelSearchInputElementRef`),w=(0,s.useTemplateRef)(`listElementRef`),T=(0,s.ref)(),E=(0,s.ref)(!1),D=(0,s.ref)(!1),O=(0,s.computed)(()=>n.itemId??n.itemValue),I=(0,s.computed)(()=>({itemValue:n.itemValue,itemTitle:n.itemTitle,itemSubtitle:n.itemSubtitle,itemId:O.value})),{selectedValues:L,filteredOptions:R,listSelectionMode:ie,listSelectedModel:z,hasSelectedValues:B,singleDisplayLabel:ae,multipleDisplayLabels:oe,multipleDisplayText:V,showPlaceholder:H,showInputSearchField:U,isSearchableMode:se,isSearchableInputMode:W,isSearchableContentMode:G,isMultipleMode:K,clearSelection:ce,removeSelectedValue:q,resolveValueFromListKey:le,formatSelectListKey:J}=k({modelValue:p,options:()=>n.options,itemFields:()=>I.value,multiple:()=>n.multiple,returnObject:()=>n.returnObject,searchable:()=>n.searchable,filterOption:()=>n.filterOption,isDropdownOpen:E,searchQuery:m}),ue=(0,s.computed)(()=>!!_[`value-suffix`]),de=(0,s.computed)(()=>({disabled:n.disabled,displayLabel:ae.value})),Y=(0,s.computed)(()=>R.value.length>F),fe=(0,s.computed)(()=>G.value||Y.value?n.listHeight:`auto`),pe=(0,s.computed)(()=>{if(!(G.value||Y.value))return n.listHeight}),me=(0,s.computed)(()=>L.value.map(e=>J(e))),he=e=>me.value.includes(e),ge=()=>({tiny:!0}),_e=e=>f({listItemScope:e,itemTitle:n.itemTitle,itemSubtitle:n.itemSubtitle,itemDisabled:n.itemDisabled,itemIconLeft:n.itemIconLeft,listActiveKey:T.value,isOptionSelected:he(e.key)}),ve=e=>{let t=le(e);if(g(t)){if(K.value){q(t);return}p.value=void 0}},ye=(0,s.computed)(()=>n.id??v),be=(0,s.computed)(()=>y),xe=(0,s.computed)(()=>b.value?.fieldElementRef??null),Se=(0,s.computed)(()=>({labels:oe.value,values:L.value,displayText:V.value,disabled:n.disabled||n.readonly,removeValue:q})),Ce=(0,s.computed)(()=>{if(!n.disabled&&(n.readonly&&!W.value||!W.value))return 0}),we=(0,s.computed)(()=>({"s-ui-select--disabled":n.disabled,"s-ui-select--readonly":n.readonly,"s-ui-select--multiple":K.value,"s-ui-select--open":E.value})),Te=()=>{if(G.value){C.value?.focus();return}S.value?.focus()},Ee=async()=>{await(0,s.nextTick)(),C.value?.focus()},De=async()=>{await(0,s.nextTick)(),await w.value?.focusNavigation()},X=async()=>{if(!(n.disabled||n.readonly)&&!E.value){if(E.value=!0,h(`open`),G.value){await Ee();return}if(W.value){await(0,s.nextTick)(),S.value?.focus();return}await De()}},Oe=async()=>{n.disabled||n.readonly||E.value||await X()};(0,s.watch)(m,async e=>{W.value&&(n.disabled||n.readonly||e&&(E.value||await X()))});let Z=()=>{E.value&&(E.value=!1,T.value=void 0,h(`close`))},Q=()=>{!n.closeOnSelect||K.value||Z()};(0,s.watch)(p,(e,t)=>{!n.closeOnSelect||K.value||!E.value||!e||e===t||Z()});let ke=e=>{E.value&&e.target instanceof Element&&e.target.closest(`.s-ui-list-item`)&&Q()},Ae=async e=>{e.key!==`Enter`&&e.key!==` `&&e.key!==`Spacebar`||E.value&&(await(0,s.nextTick)(),Q())},$=async()=>{if(E.value){Z();return}await X()},je=async e=>{if(!(n.disabled||n.readonly)&&e.target instanceof HTMLElement){if(e.target.closest(`.s-ui-select__search-input`)){E.value||await X();return}await $()}},Me=async e=>e.key!==`ArrowDown`&&e.key!==`ArrowUp`?!1:(e.preventDefault(),e.stopPropagation(),E.value||await X(),await De(),await w.value?.handleKeyboardNavigation(e),!0),Ne=e=>{let t=le(e);if(t){if(K.value){L.value.some(t=>J(t)===e)?q(t):z.value=[...L.value.map(e=>J(e)),e];return}z.value=e,Q()}},Pe=async e=>{if(!(n.disabled||n.readonly)&&!await Me(e)){if(e.key===`Escape`){e.preventDefault(),Z();return}if(e.key===`Enter`||e.key===` `){if(e.preventDefault(),E.value&&T.value){Ne(T.value);return}await $()}}},Fe=async e=>{if(e.key===`Escape`){e.preventDefault(),Z();return}await Me(e)},Ie=Fe,Le=e=>{n.disabled||(D.value||h(`focus`,e),D.value=!0)},Re=e=>{if(!(e.currentTarget instanceof HTMLElement))return;let t=e.relatedTarget;t instanceof Node&&e.currentTarget.contains(t)||(D.value=!1,h(`blur`,e))},ze=()=>{ce(),h(`clear`)};return l({open:X,close:Z,toggle:$,focusSearchInput:Te}),(l,u)=>((0,s.openBlock)(),(0,s.createElementBlock)(`div`,{class:(0,s.normalizeClass)([`s-ui-select`,we.value])},[(0,s.createVNode)((0,s.unref)(i.t),{modelValue:E.value,"onUpdate:modelValue":u[4]||=e=>E.value=e,reference:xe.value,disabled:n.disabled,"match-reference-width":!0,"fit-viewport":n.fitViewport,"content-id":be.value,"dismiss-on-click-outside":!0,"dismiss-on-escape":!0},{content:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(d),{class:`s-ui-select__menu`,width:`100%`},(0,s.createSlots)({default:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,{class:`s-ui-select__menu-body`,onClick:ke,onKeydown:Ae},[(0,s.unref)(R).length>0?((0,s.openBlock)(),(0,s.createBlock)((0,s.unref)(a.t),{key:0,ref_key:`listElementRef`,ref:w,modelValue:T.value,"onUpdate:modelValue":u[2]||=e=>T.value=e,selected:(0,s.unref)(z),"onUpdate:selected":u[3]||=e=>(0,s.isRef)(z)?z.value=e:null,items:(0,s.unref)(R),"item-key":O.value,"title-key":n.itemTitle,"subtitle-key":n.itemSubtitle,"icon-left-key":n.itemIconLeft,"disabled-key":n.itemDisabled,"selection-mode":(0,s.unref)(ie),mandatory:!n.multiple,height:fe.value,"max-height":pe.value,virtual:Y.value,"item-props":ge},(0,s.createSlots)({_:2},[(0,s.unref)(_).option?{name:`item`,fn:(0,s.withCtx)(e=>[(0,s.renderSlot)(l.$slots,`option`,(0,s.normalizeProps)((0,s.guardReactiveProps)(e)))]),key:`0`}:n.closableOptions?{name:`item`,fn:(0,s.withCtx)(n=>[(0,s.createVNode)((0,s.unref)(o.t),(0,s.normalizeProps)((0,s.guardReactiveProps)(_e(n))),(0,s.createSlots)({_:2},[he(n.key)?{name:`right`,fn:(0,s.withCtx)(r=>[(0,s.createVNode)((0,s.unref)(t.t),{appearance:(0,s.unref)(e.t).BARE,variant:(0,s.unref)(e.r).NEUTRAL,size:(0,s.unref)(e.n).SMALL,icon:`closeMini`,disabled:r.disabled||r.readonly,tabindex:-1,onClick:(0,s.withModifiers)(e=>ve(n.key),[`stop`])},null,8,[`appearance`,`variant`,`size`,`disabled`,`onClick`])]),key:`0`}:void 0]),1040)]),key:`1`}:void 0]),1032,[`modelValue`,`selected`,`items`,`item-key`,`title-key`,`subtitle-key`,`icon-left-key`,`disabled-key`,`selection-mode`,`mandatory`,`height`,`max-height`,`virtual`])):((0,s.openBlock)(),(0,s.createElementBlock)(`div`,A,[(0,s.renderSlot)(l.$slots,`empty`,{},()=>[u[8]||=(0,s.createTextVNode)(`No options`,-1)])]))],32)]),_:2},[(0,s.unref)(G)?{name:`header`,fn:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(r.t),{ref_key:`panelSearchInputElementRef`,ref:C,modelValue:m.value,"onUpdate:modelValue":u[0]||=e=>m.value=e,placeholder:n.searchPlaceholder,disabled:n.disabled,clearable:!1,"icon-left":`search`,onClick:u[1]||=(0,s.withModifiers)(()=>{},[`stop`]),onKeydown:(0,s.unref)(Ie)},null,8,[`modelValue`,`placeholder`,`disabled`,`onKeydown`])]),key:`0`}:void 0,(0,s.unref)(_)[`panel-footer`]?{name:`footer`,fn:(0,s.withCtx)(()=>[(0,s.renderSlot)(l.$slots,`panel-footer`)]),key:`1`}:void 0]),1024)]),_:3},8,[`modelValue`,`reference`,`disabled`,`fit-viewport`,`content-id`]),(0,s.createVNode)((0,s.unref)(r.t),{ref_key:`triggerInputRef`,ref:b,modelValue:x.value,"onUpdate:modelValue":u[7]||=e=>x.value=e,label:n.label,"label-props":n.labelProps,placeholder:n.placeholder,"help-messages":n.helpMessages,"error-messages":n.errorMessages,bordered:n.bordered,disabled:n.disabled,readonly:n.readonly,clearable:n.clearable,"has-value":(0,s.unref)(B),focused:D.value||E.value,"icon-left":n.iconLeft,customize:n.customize,name:n.name,id:ye.value,onClear:ze,onFocus:Le,onBlur:Re},(0,s.createSlots)({control:(0,s.withCtx)(()=>[(0,s.createElementVNode)(`div`,{id:ye.value,class:(0,s.normalizeClass)([`s-ui-select__control s-ui-typography-body-14-regular`,{"s-ui-select__control--multiple":(0,s.unref)(K),"s-ui-select__control--empty":(0,s.unref)(K)&&!(0,s.unref)(B)&&!(0,s.unref)(U),"s-ui-select__control--with-value-suffix":ue.value&&!(0,s.unref)(K)&&!(0,s.unref)(U)&&!(0,s.unref)(H)}]),role:`combobox`,"aria-expanded":E.value,"aria-controls":be.value,"aria-haspopup":`listbox`,"aria-disabled":n.disabled?!0:void 0,"aria-readonly":n.readonly?!0:void 0,"aria-autocomplete":(0,s.unref)(se)?`list`:void 0,tabindex:Ce.value,onClick:je,onKeydown:Pe},[(0,s.unref)(K)?(0,s.renderSlot)(l.$slots,`selection`,(0,s.normalizeProps)((0,s.mergeProps)({key:0},Se.value)),()=>[(0,s.unref)(V)?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,te,(0,s.toDisplayString)((0,s.unref)(V)),1)):(0,s.unref)(H)&&!(0,s.unref)(U)?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,j,(0,s.toDisplayString)(n.placeholder),1)):(0,s.createCommentVNode)(``,!0)]):(0,s.unref)(H)&&!(0,s.unref)(U)?((0,s.openBlock)(),(0,s.createElementBlock)(`span`,M,(0,s.toDisplayString)(n.placeholder),1)):(0,s.unref)(U)?(0,s.createCommentVNode)(``,!0):((0,s.openBlock)(),(0,s.createElementBlock)(`span`,N,(0,s.toDisplayString)((0,s.unref)(ae)),1)),ue.value&&!(0,s.unref)(K)&&!(0,s.unref)(U)&&!(0,s.unref)(H)?((0,s.openBlock)(),(0,s.createElementBlock)(`div`,P,[(0,s.renderSlot)(l.$slots,`value-suffix`,(0,s.normalizeProps)((0,s.guardReactiveProps)(de.value)))])):(0,s.createCommentVNode)(``,!0),(0,s.unref)(U)?(0,s.withDirectives)(((0,s.openBlock)(),(0,s.createElementBlock)(`input`,{key:4,ref_key:`searchInputElementRef`,ref:S,"onUpdate:modelValue":u[5]||=e=>m.value=e,class:`s-ui-select__search-input`,type:`text`,name:n.name,placeholder:n.placeholder,disabled:n.disabled,readonly:n.readonly,autocomplete:`off`,onClick:u[6]||=(0,s.withModifiers)(()=>{},[`stop`]),onFocus:Oe,onKeydown:Fe},null,40,ne)),[[s.vModelText,m.value]]):(0,s.createCommentVNode)(``,!0)],42,ee)]),action:(0,s.withCtx)(()=>[(0,s.createVNode)((0,s.unref)(c.SIcon),{name:`chevronMiniDown`,size:re,class:`s-ui-select__chevron`})]),_:2},[(0,s.unref)(_).label?{name:`label`,fn:(0,s.withCtx)(()=>[(0,s.renderSlot)(l.$slots,`label`)]),key:`0`}:void 0,(0,s.unref)(_).prefix?{name:`prefix`,fn:(0,s.withCtx)(e=>[(0,s.renderSlot)(l.$slots,`prefix`,(0,s.normalizeProps)((0,s.guardReactiveProps)(e)))]),key:`1`}:void 0,(0,s.unref)(_).prepend?{name:`prepend`,fn:(0,s.withCtx)(e=>[(0,s.renderSlot)(l.$slots,`prepend`,(0,s.normalizeProps)((0,s.guardReactiveProps)(e)))]),key:`2`}:void 0,(0,s.unref)(_).message?{name:`message`,fn:(0,s.withCtx)(()=>[(0,s.renderSlot)(l.$slots,`message`)]),key:`3`}:void 0]),1032,[`modelValue`,`label`,`label-props`,`placeholder`,`help-messages`,`error-messages`,`bordered`,`disabled`,`readonly`,`clearable`,`has-value`,`focused`,`icon-left`,`customize`,`name`,`id`])],2))}});Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return I}});
@@ -0,0 +1 @@
1
+ const e=require("./contrastSurfaceTextColor-Ybh-FZof.cjs"),t=require("./SButton.types-UKroD-ev.cjs"),n=require("./SButton-C-z_q5CG.cjs"),r=require("./useLink-1LLWpdDZ.cjs");let i=require("vue");var a=function(e){return e.RED_ORANGE=`red-orange`,e.ORANGE=`orange`,e.YELLOW=`yellow`,e.GREEN=`green`,e.TEAL=`teal`,e.CYAN=`cyan`,e.BLUE=`blue`,e.INDIGO=`indigo`,e.VIOLET=`violet`,e.MAGENTA=`magenta`,e.PINK=`pink`,e.GRAY=`gray`,e.RED=`red`,e.WHITE_BORDER=`white-border`,e.BILLING=`billing`,e.BILLING_LIGHT=`billing-light`,e}({}),o=function(e){return e.SMALL=`small`,e.MEDIUM=`medium`,e}({}),s=t=>e.n(t)||t.startsWith(`var(--`),c=e=>s(e)?`s-ui-tag--color-custom`:`s-ui-tag--color-${e}`,l=t=>{let n={"--s-ui-tag-bg":t};return e.n(t)&&(n[`--s-ui-tag-text`]=e.t(t)),n},u={class:`s-ui-tag__content s-ui-typography-body-12-regular`},d={key:0,class:`s-ui-tag__actions`},f={class:`s-ui-tag__action-close`},p=(0,i.defineComponent)({inheritAttrs:!1,__name:`STag`,props:(0,i.mergeModels)({color:{default:()=>a.RED_ORANGE},size:{default:()=>o.MEDIUM},short:{type:Boolean,default:!1},closable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},link:{},exact:{type:Boolean,default:!1},replace:{type:Boolean,default:!1}},{modelValue:{default:``},modelModifiers:{}}),emits:(0,i.mergeModels)([`close`],[`update:modelValue`]),setup(e,{emit:a}){let o=(0,i.useAttrs)(),p=(0,i.useModel)(e,`modelValue`),m=a,h=r.t(()=>e.link,()=>e.exact,()=>e.replace),g=h.linkPresentation,_=(0,i.computed)(()=>{let e=g.value;return e.mode===`none`?`span`:e.rootTag}),v=(0,i.computed)(()=>r.n(g.value,{replace:e.replace})),y=(0,i.computed)(()=>({...v.value,...o})),b=(0,i.computed)(()=>h.isRouterLink.value?h.isActive.value:e.selected),x=(0,i.computed)(()=>e.closable&&!e.short),S=(0,i.computed)(()=>{if(e.disabled)return-1;if(!r.r(e.link))return x.value?0:-1}),C=(0,i.computed)(()=>[c(e.color),`s-ui-tag--size-${e.size}`,{"s-ui-tag--short":e.short,"s-ui-tag--disabled":e.disabled,"s-ui-tag--selected":b.value,"s-ui-tag--link":r.r(e.link)}]),w=(0,i.computed)(()=>{if(s(e.color))return l(e.color)}),T=(0,i.computed)(()=>e.short?p.value.slice(0,1):p.value),E=()=>{m(`close`)},D=[`Enter`,` `,`Spacebar`],O=[`Delete`,`Backspace`],k=t=>{if(!e.disabled){if(h.isRouterLink.value&&D.includes(t.key)){t.preventDefault(),h.navigate();return}if(t.target===t.currentTarget&&O.includes(t.key)){if(!x.value)return;t.preventDefault(),m(`close`)}}};return(r,a)=>((0,i.openBlock)(),(0,i.createBlock)((0,i.resolveDynamicComponent)(_.value),(0,i.mergeProps)({class:[`s-ui-tag`,C.value],style:w.value,tabindex:S.value,"aria-disabled":e.disabled?!0:void 0},y.value,{onKeydown:k}),{default:(0,i.withCtx)(()=>[(0,i.createElementVNode)(`span`,u,(0,i.toDisplayString)(T.value),1),x.value?((0,i.openBlock)(),(0,i.createElementBlock)(`span`,d,[(0,i.createElementVNode)(`span`,f,[(0,i.createVNode)((0,i.unref)(n.t),{appearance:(0,i.unref)(t.t).BARE,variant:(0,i.unref)(t.r).NEUTRAL,size:(0,i.unref)(t.n).SMALL,disabled:e.disabled,tabindex:-1,icon:`closeMini`,onClick:(0,i.withModifiers)(E,[`stop`])},null,8,[`appearance`,`variant`,`size`,`disabled`])])])):(0,i.createCommentVNode)(``,!0)]),_:1},16,[`class`,`style`,`tabindex`,`aria-disabled`]))}});Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return o}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return p}});
@@ -0,0 +1,122 @@
1
+ import { n as e, t } from "./contrastSurfaceTextColor-Dl641cZ_.js";
2
+ import { n, r, t as i } from "./SButton.types-CpdHQtyx.js";
3
+ import { t as a } from "./SButton-DnU_XZ1C.js";
4
+ import { n as o, r as s, t as c } from "./useLink-Com5VhOk.js";
5
+ import { computed as l, createBlock as u, createCommentVNode as d, createElementBlock as f, createElementVNode as p, createVNode as m, defineComponent as h, mergeModels as g, mergeProps as _, openBlock as v, resolveDynamicComponent as y, toDisplayString as b, unref as x, useAttrs as S, useModel as C, withCtx as w, withModifiers as T } from "vue";
6
+ //#region src/components/STag/STag.types.ts
7
+ var E = /* @__PURE__ */ function(e) {
8
+ return e.RED_ORANGE = "red-orange", e.ORANGE = "orange", e.YELLOW = "yellow", e.GREEN = "green", e.TEAL = "teal", e.CYAN = "cyan", e.BLUE = "blue", e.INDIGO = "indigo", e.VIOLET = "violet", e.MAGENTA = "magenta", e.PINK = "pink", e.GRAY = "gray", e.RED = "red", e.WHITE_BORDER = "white-border", e.BILLING = "billing", e.BILLING_LIGHT = "billing-light", e;
9
+ }({}), D = /* @__PURE__ */ function(e) {
10
+ return e.SMALL = "small", e.MEDIUM = "medium", e;
11
+ }({}), O = (t) => e(t) || t.startsWith("var(--"), k = (e) => O(e) ? "s-ui-tag--color-custom" : `s-ui-tag--color-${e}`, A = (n) => {
12
+ let r = { "--s-ui-tag-bg": n };
13
+ return e(n) && (r["--s-ui-tag-text"] = t(n)), r;
14
+ }, j = { class: "s-ui-tag__content s-ui-typography-body-12-regular" }, M = {
15
+ key: 0,
16
+ class: "s-ui-tag__actions"
17
+ }, N = { class: "s-ui-tag__action-close" }, P = /* @__PURE__ */ h({
18
+ inheritAttrs: !1,
19
+ __name: "STag",
20
+ props: /*@__PURE__*/ g({
21
+ color: { default: () => E.RED_ORANGE },
22
+ size: { default: () => D.MEDIUM },
23
+ short: {
24
+ type: Boolean,
25
+ default: !1
26
+ },
27
+ closable: {
28
+ type: Boolean,
29
+ default: !1
30
+ },
31
+ disabled: {
32
+ type: Boolean,
33
+ default: !1
34
+ },
35
+ selected: {
36
+ type: Boolean,
37
+ default: !1
38
+ },
39
+ link: {},
40
+ exact: {
41
+ type: Boolean,
42
+ default: !1
43
+ },
44
+ replace: {
45
+ type: Boolean,
46
+ default: !1
47
+ }
48
+ }, {
49
+ modelValue: { default: "" },
50
+ modelModifiers: {}
51
+ }),
52
+ emits: /*@__PURE__*/ g(["close"], ["update:modelValue"]),
53
+ setup(e, { emit: t }) {
54
+ let h = S(), g = C(e, "modelValue"), E = t, D = c(() => e.link, () => e.exact, () => e.replace), P = D.linkPresentation, F = l(() => {
55
+ let e = P.value;
56
+ return e.mode === "none" ? "span" : e.rootTag;
57
+ }), I = l(() => o(P.value, { replace: e.replace })), L = l(() => ({
58
+ ...I.value,
59
+ ...h
60
+ })), R = l(() => D.isRouterLink.value ? D.isActive.value : e.selected), z = l(() => e.closable && !e.short), B = l(() => {
61
+ if (e.disabled) return -1;
62
+ if (!s(e.link)) return z.value ? 0 : -1;
63
+ }), V = l(() => [
64
+ k(e.color),
65
+ `s-ui-tag--size-${e.size}`,
66
+ {
67
+ "s-ui-tag--short": e.short,
68
+ "s-ui-tag--disabled": e.disabled,
69
+ "s-ui-tag--selected": R.value,
70
+ "s-ui-tag--link": s(e.link)
71
+ }
72
+ ]), H = l(() => {
73
+ if (O(e.color)) return A(e.color);
74
+ }), U = l(() => e.short ? g.value.slice(0, 1) : g.value), W = () => {
75
+ E("close");
76
+ }, G = [
77
+ "Enter",
78
+ " ",
79
+ "Spacebar"
80
+ ], K = ["Delete", "Backspace"], q = (t) => {
81
+ if (!e.disabled) {
82
+ if (D.isRouterLink.value && G.includes(t.key)) {
83
+ t.preventDefault(), D.navigate();
84
+ return;
85
+ }
86
+ if (t.target === t.currentTarget && K.includes(t.key)) {
87
+ if (!z.value) return;
88
+ t.preventDefault(), E("close");
89
+ }
90
+ }
91
+ };
92
+ return (t, o) => (v(), u(y(F.value), _({
93
+ class: ["s-ui-tag", V.value],
94
+ style: H.value,
95
+ tabindex: B.value,
96
+ "aria-disabled": e.disabled ? !0 : void 0
97
+ }, L.value, { onKeydown: q }), {
98
+ default: w(() => [p("span", j, b(U.value), 1), z.value ? (v(), f("span", M, [p("span", N, [m(x(a), {
99
+ appearance: x(i).BARE,
100
+ variant: x(r).NEUTRAL,
101
+ size: x(n).SMALL,
102
+ disabled: e.disabled,
103
+ tabindex: -1,
104
+ icon: "closeMini",
105
+ onClick: T(W, ["stop"])
106
+ }, null, 8, [
107
+ "appearance",
108
+ "variant",
109
+ "size",
110
+ "disabled"
111
+ ])])])) : d("", !0)]),
112
+ _: 1
113
+ }, 16, [
114
+ "class",
115
+ "style",
116
+ "tabindex",
117
+ "aria-disabled"
118
+ ]));
119
+ }
120
+ });
121
+ //#endregion
122
+ export { E as n, D as r, P as t };
@@ -1 +1 @@
1
- const e=require("./SOverflowGroup-DyVUzkNu.cjs"),t=require("./STag-DVrSWByQ.cjs");let n=require("vue");var r=(e,{size:r,short:i})=>e.type===t.t?(0,n.cloneVNode)(e,{size:r,short:i,...i?{closable:!1}:{}}):e,i=(0,n.defineComponent)({__name:`STagGroup`,props:{maxVisible:{},size:{default:()=>t.r.SMALL},short:{type:Boolean,default:!0}},setup(i){let a=e=>r(e,{size:i.size,short:i.short});return(r,o)=>((0,n.openBlock)(),(0,n.createBlock)(e.t,{class:`s-ui-tag-group`,role:`group`,"cluster-class":`s-ui-tag-group__cluster`,"max-visible":i.maxVisible,"map-vnode":a},{overflow:(0,n.withCtx)(({overflowLabel:e})=>[(0,n.createVNode)((0,n.unref)(t.t),{color:(0,n.unref)(t.n).WHITE_BORDER,size:i.size,short:!1,"model-value":e},null,8,[`color`,`size`,`model-value`])]),default:(0,n.withCtx)(()=>[(0,n.renderSlot)(r.$slots,`default`)]),_:3},8,[`max-visible`]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
1
+ const e=require("./SOverflowGroup-DyVUzkNu.cjs"),t=require("./STag-BwzuI3cF.cjs");let n=require("vue");var r=(e,{size:r,short:i})=>e.type===t.t?(0,n.cloneVNode)(e,{size:r,short:i,...i?{closable:!1}:{}}):e,i=(0,n.defineComponent)({__name:`STagGroup`,props:{maxVisible:{},size:{default:()=>t.r.SMALL},short:{type:Boolean,default:!0}},setup(i){let a=e=>r(e,{size:i.size,short:i.short});return(r,o)=>((0,n.openBlock)(),(0,n.createBlock)(e.t,{class:`s-ui-tag-group`,role:`group`,"cluster-class":`s-ui-tag-group__cluster`,"max-visible":i.maxVisible,"map-vnode":a},{overflow:(0,n.withCtx)(({overflowLabel:e})=>[(0,n.createVNode)((0,n.unref)(t.t),{color:(0,n.unref)(t.n).WHITE_BORDER,size:i.size,short:!1,"model-value":e},null,8,[`color`,`size`,`model-value`])]),default:(0,n.withCtx)(()=>[(0,n.renderSlot)(r.$slots,`default`)]),_:3},8,[`max-visible`]))}});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return i}});
@@ -1,5 +1,5 @@
1
1
  import { t as e } from "./SOverflowGroup-CVSon6Eg.js";
2
- import { n as t, r as n, t as r } from "./STag-CYoj7L-p.js";
2
+ import { n as t, r as n, t as r } from "./STag-L6B4DxOx.js";
3
3
  import { cloneVNode as i, createBlock as a, createVNode as o, defineComponent as s, openBlock as c, renderSlot as l, unref as u, withCtx as d } from "vue";
4
4
  //#region src/components/STagGroup/utils/applyTagGroupItemProps.ts
5
5
  var f = (e, { size: t, short: n }) => e.type === r ? i(e, {
@@ -1,4 +1,4 @@
1
- import { p as e, v as t } from "./SChartSkeletonHost-BnYGg6WN.js";
1
+ import { m as e, y as t } from "./SChartSkeletonHost-CnfMevXX.js";
2
2
  //#region src/utils/chart/stacked/areChartSeriesAligned.ts
3
3
  var n = (e) => {
4
4
  if (e.length === 0) return !1;
@@ -1 +1 @@
1
- const e=require("./SChartSkeletonHost-CixHLD65.cjs");var t=e=>{if(e.length===0)return!1;let t=e[0];return!t||t.points.length===0?!1:e.every(e=>e.points.length===t.points.length?e.points.every((e,n)=>e.label===t.points[n]?.label):!1)},n=(e,t,n)=>{if(t)return t;let r=e[0]?.points.length??0,i=0;for(let t=0;t<r;t+=1){let n=0;for(let r of e)n+=r.points[t]?.value??0;i=Math.max(i,n)}let a=Math.ceil(i/n)*n;return a>0?a:n*5},r=({seriesList:r,colorHostElement:i,yMax:a,yMin:o,yStep:s,skeleton:c=!1})=>t(r)?{axisLabelColor:e.v(e.p.axisLabel,i),gridColor:e.v(e.p.grid,i),tooltipBackgroundColor:e.v(e.p.tooltipBackground,i),tooltipTextColor:e.v(e.p.tooltipText,i),resolvedYMax:c&&a?a:n(r,a,s),resolvedYMin:c&&o!==void 0?o:0,chartLabels:r[0]?.points.map(e=>e.label)??[],pointCaptions:r[0]?.points.map(e=>e.caption)??[],topSeriesIndex:r.length-1}:null,i=(e,t)=>e.map((e,n)=>({label:e.label,color:t(n,e.fillColor)})),a=(e,t)=>e.map((e,n)=>({label:e,value:t[n]??0}));Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
1
+ const e=require("./SChartSkeletonHost-YmLC5zOX.cjs");var t=e=>{if(e.length===0)return!1;let t=e[0];return!t||t.points.length===0?!1:e.every(e=>e.points.length===t.points.length?e.points.every((e,n)=>e.label===t.points[n]?.label):!1)},n=(e,t,n)=>{if(t)return t;let r=e[0]?.points.length??0,i=0;for(let t=0;t<r;t+=1){let n=0;for(let r of e)n+=r.points[t]?.value??0;i=Math.max(i,n)}let a=Math.ceil(i/n)*n;return a>0?a:n*5},r=({seriesList:r,colorHostElement:i,yMax:a,yMin:o,yStep:s,skeleton:c=!1})=>t(r)?{axisLabelColor:e.y(e.m.axisLabel,i),gridColor:e.y(e.m.grid,i),tooltipBackgroundColor:e.y(e.m.tooltipBackground,i),tooltipTextColor:e.y(e.m.tooltipText,i),resolvedYMax:c&&a?a:n(r,a,s),resolvedYMin:c&&o!==void 0?o:0,chartLabels:r[0]?.points.map(e=>e.label)??[],pointCaptions:r[0]?.points.map(e=>e.caption)??[],topSeriesIndex:r.length-1}:null,i=(e,t)=>e.map((e,n)=>({label:e.label,color:t(n,e.fillColor)})),a=(e,t)=>e.map((e,n)=>({label:e,value:t[n]??0}));Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return i}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return r}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return a}});
@@ -1 +1 @@
1
- {"version":3,"file":"SAvatar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SAvatar/SAvatar.vue"],"names":[],"mappings":"AAqPA,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAA;AAsSxB,QAAA,MAAM,YAAY,sSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
1
+ {"version":3,"file":"SAvatar.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SAvatar/SAvatar.vue"],"names":[],"mappings":"AA6OA,OAAO,EAKL,KAAK,aAAa,EACnB,MAAM,iBAAiB,CAAA;AA8RxB,QAAA,MAAM,YAAY,sSAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,4 @@
1
+ import { type TSAvatarColorValue } from '../SAvatar.types';
2
+ export declare const resolveAvatarBackgroundHex: (color: TSAvatarColorValue) => `#${string}` | undefined;
3
+ export declare const getAvatarInitialsTextColor: (color: TSAvatarColorValue) => "var(--s-ui-color-text-surface-primary)" | "var(--s-ui-color-text-surface-static)" | undefined;
4
+ //# sourceMappingURL=getAvatarInitialsTextColor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getAvatarInitialsTextColor.d.ts","sourceRoot":"","sources":["../../../../src/components/SAvatar/utils/getAvatarInitialsTextColor.ts"],"names":[],"mappings":"AACA,OAAO,EAAiB,KAAK,kBAAkB,EAAyB,MAAM,kBAAkB,CAAA;AAahG,eAAO,MAAM,0BAA0B,GAAI,OAAO,kBAAkB,6BAUnE,CAAA;AAED,eAAO,MAAM,0BAA0B,GAAI,OAAO,kBAAkB,mGAQnE,CAAA"}
@@ -1,7 +1,5 @@
1
1
  import { type TSAvatarColorValue, type TSAvatarHexColor } from '../SAvatar.types';
2
2
  export declare const isAvatarHexColor: (color: TSAvatarColorValue) => color is TSAvatarHexColor;
3
3
  export declare const getAvatarColorClass: (color: TSAvatarColorValue) => string;
4
- export declare const getAvatarCustomColorStyle: (color: TSAvatarHexColor) => {
5
- '--s-ui-avatar-background': `#${string}`;
6
- };
4
+ export declare const getAvatarColorStyle: (color: TSAvatarColorValue) => Record<string, string> | undefined;
7
5
  //# sourceMappingURL=resolveAvatarColor.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"resolveAvatarColor.d.ts","sourceRoot":"","sources":["../../../../src/components/SAvatar/utils/resolveAvatarColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAEjF,eAAO,MAAM,gBAAgB,GAAI,OAAO,kBAAkB,KAAG,KAAK,IAAI,gBAErE,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,OAAO,kBAAkB,WAM5D,CAAA;AAED,eAAO,MAAM,yBAAyB,GAAI,OAAO,gBAAgB;;CAIhE,CAAA"}
1
+ {"version":3,"file":"resolveAvatarColor.d.ts","sourceRoot":"","sources":["../../../../src/components/SAvatar/utils/resolveAvatarColor.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAA;AAGjF,eAAO,MAAM,gBAAgB,GAAI,OAAO,kBAAkB,KAAG,KAAK,IAAI,gBAErE,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,OAAO,kBAAkB,WAM5D,CAAA;AAED,eAAO,MAAM,mBAAmB,GAAI,OAAO,kBAAkB,uCAiB5D,CAAA"}
@@ -0,0 +1,15 @@
1
+ import type { TChartProgressSnapshot } from '../../utils/chart/chart.types';
2
+ export type { TChartProgressSnapshot } from '../../utils/chart/chart.types';
3
+ export declare const DEFAULT_PROGRESS_MIN_VALUE = 0;
4
+ export declare const DEFAULT_PROGRESS_MAX_VALUE = 100;
5
+ export declare const DEFAULT_PROGRESS_VALUE_PREFIX = "%";
6
+ export interface ISChartProgressProps {
7
+ progressSnapshots?: TChartProgressSnapshot[];
8
+ deadline?: string | null;
9
+ minValue?: number;
10
+ maxValue?: number;
11
+ prefix?: string;
12
+ seriesLabel?: string;
13
+ loading?: boolean;
14
+ }
15
+ //# sourceMappingURL=SChartProgress.types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SChartProgress.types.d.ts","sourceRoot":"","sources":["../../../src/components/SChartProgress/SChartProgress.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AAE3E,YAAY,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAA;AAE3E,eAAO,MAAM,0BAA0B,IAAI,CAAA;AAC3C,eAAO,MAAM,0BAA0B,MAAM,CAAA;AAC7C,eAAO,MAAM,6BAA6B,MAAM,CAAA;AAEhD,MAAM,WAAW,oBAAoB;IACnC,iBAAiB,CAAC,EAAE,sBAAsB,EAAE,CAAA;IAC5C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB"}
@@ -0,0 +1,5 @@
1
+ import { type ISChartProgressProps } from './SChartProgress.types';
2
+ declare const __VLS_export: import("vue").DefineComponent<ISChartProgressProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ISChartProgressProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
3
+ declare const _default: typeof __VLS_export;
4
+ export default _default;
5
+ //# sourceMappingURL=SChartProgress.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SChartProgress.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SChartProgress/SChartProgress.vue"],"names":[],"mappings":"AAyGA,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,wBAAwB,CAAA;AA4H/B,QAAA,MAAM,YAAY,oTAEhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
@@ -0,0 +1,3 @@
1
+ export { default as SChartProgress } from './SChartProgress.vue';
2
+ export type { ISChartProgressProps, TChartProgressSnapshot } from './SChartProgress.types';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/SChartProgress/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAChE,YAAY,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAA"}
@@ -0,0 +1,16 @@
1
+ import type { ChartConfiguration } from 'chart.js';
2
+ export interface IBuildProgressChartConfigOptions {
3
+ labels: string[];
4
+ progressValues: Array<number | null>;
5
+ referenceValues: number[];
6
+ seriesLabel: string;
7
+ valuePrefix: string;
8
+ minValue: number;
9
+ maxValue: number;
10
+ stepSize: number;
11
+ progressSnapshotCount: number;
12
+ colorHostElement?: Element | null;
13
+ skeleton?: boolean;
14
+ }
15
+ export declare const buildProgressChartConfig: ({ labels, progressValues, referenceValues, seriesLabel, valuePrefix, minValue, maxValue, stepSize, progressSnapshotCount, colorHostElement, skeleton, }: IBuildProgressChartConfigOptions) => ChartConfiguration<"line">;
16
+ //# sourceMappingURL=buildProgressChartConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildProgressChartConfig.d.ts","sourceRoot":"","sources":["../../../../src/components/SChartProgress/utils/buildProgressChartConfig.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAe,MAAM,UAAU,CAAA;AAkB/D,MAAM,WAAW,gCAAgC;IAC/C,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,cAAc,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IACpC,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,qBAAqB,EAAE,MAAM,CAAA;IAC7B,gBAAgB,CAAC,EAAE,OAAO,GAAG,IAAI,CAAA;IACjC,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,eAAO,MAAM,wBAAwB,GAAI,yJAYtC,gCAAgC,KAAG,kBAAkB,CAAC,MAAM,CA8H9D,CAAA"}
@@ -0,0 +1,18 @@
1
+ import type { TChartProgressSnapshot } from '../SChartProgress.types';
2
+ export interface IBuildProgressChartDataOptions {
3
+ progressSnapshots: TChartProgressSnapshot[];
4
+ deadline?: string | null;
5
+ minValue?: number;
6
+ maxValue?: number;
7
+ }
8
+ export interface IProgressChartData {
9
+ labels: string[];
10
+ progressValues: Array<number | null>;
11
+ referenceValues: number[];
12
+ minValue: number;
13
+ maxValue: number;
14
+ stepSize: number;
15
+ progressSnapshotCount: number;
16
+ }
17
+ export declare const buildProgressChartData: ({ progressSnapshots, deadline, minValue, maxValue, }: IBuildProgressChartDataOptions) => IProgressChartData;
18
+ //# sourceMappingURL=buildProgressChartData.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"buildProgressChartData.d.ts","sourceRoot":"","sources":["../../../../src/components/SChartProgress/utils/buildProgressChartData.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAIrE,MAAM,WAAW,8BAA8B;IAC7C,iBAAiB,EAAE,sBAAsB,EAAE,CAAA;IAC3C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,EAAE,CAAA;IAChB,cAAc,EAAE,KAAK,CAAC,MAAM,GAAG,IAAI,CAAC,CAAA;IACpC,eAAe,EAAE,MAAM,EAAE,CAAA;IACzB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,QAAQ,EAAE,MAAM,CAAA;IAChB,qBAAqB,EAAE,MAAM,CAAA;CAC9B;AAID,eAAO,MAAM,sBAAsB,GAAI,sDAKpC,8BAA8B,KAAG,kBA0CnC,CAAA"}
@@ -0,0 +1,5 @@
1
+ import type { TChartProgressSnapshot } from '../SChartProgress.types';
2
+ export declare const demoProgressSnapshots: TChartProgressSnapshot[];
3
+ export declare const singleProgressSnapshot: TChartProgressSnapshot[];
4
+ export declare const demoProgressDeadline: string;
5
+ //# sourceMappingURL=demoProgressSnapshots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"demoProgressSnapshots.d.ts","sourceRoot":"","sources":["../../../../src/components/SChartProgress/utils/demoProgressSnapshots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AASrE,eAAO,MAAM,qBAAqB,EAAE,sBAAsB,EAWzD,CAAA;AAED,eAAO,MAAM,sBAAsB,EAAE,sBAAsB,EAE1D,CAAA;AAED,eAAO,MAAM,oBAAoB,QAA6B,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare const formatProgressChartDate: (date: string) => string;
2
+ //# sourceMappingURL=formatProgressChartDate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"formatProgressChartDate.d.ts","sourceRoot":"","sources":["../../../../src/components/SChartProgress/utils/formatProgressChartDate.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,uBAAuB,GAAI,MAAM,MAAM,KAAG,MAQtD,CAAA"}
@@ -0,0 +1,4 @@
1
+ import type { TChartProgressSnapshot } from '../SChartProgress.types';
2
+ export declare const productionProgressSnapshots: TChartProgressSnapshot[];
3
+ export declare const productionProgressDeadline: string;
4
+ //# sourceMappingURL=productionProgressSnapshots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productionProgressSnapshots.d.ts","sourceRoot":"","sources":["../../../../src/components/SChartProgress/utils/productionProgressSnapshots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAuCrE,eAAO,MAAM,2BAA2B,0BAAsB,CAAA;AAE9D,eAAO,MAAM,0BAA0B,QAA6B,CAAA"}
@@ -0,0 +1,10 @@
1
+ import type { IChartInteractionOptions } from '../../../utils/chart/core/chartSkeletonConfig';
2
+ export declare const PROGRESS_VISIBLE_POINT_THRESHOLD = 15;
3
+ export interface IProgressChartPointStyle {
4
+ pointRadius: number;
5
+ pointHoverRadius: number;
6
+ pointHitRadius: number;
7
+ }
8
+ export declare const resolveProgressChartPointStyle: (snapshotCount: number) => IProgressChartPointStyle;
9
+ export declare const resolveProgressChartInteraction: (snapshotCount: number) => IChartInteractionOptions;
10
+ //# sourceMappingURL=resolveProgressChartPointStyle.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveProgressChartPointStyle.d.ts","sourceRoot":"","sources":["../../../../src/components/SChartProgress/utils/resolveProgressChartPointStyle.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+CAA+C,CAAA;AAE7F,eAAO,MAAM,gCAAgC,KAAK,CAAA;AAKlD,MAAM,WAAW,wBAAwB;IACvC,WAAW,EAAE,MAAM,CAAA;IACnB,gBAAgB,EAAE,MAAM,CAAA;IACxB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,8BAA8B,GAAI,eAAe,MAAM,KAAG,wBAQtE,CAAA;AAED,eAAO,MAAM,+BAA+B,GAC1C,eAAe,MAAM,KACpB,wBAaF,CAAA"}
@@ -0,0 +1,6 @@
1
+ import type { TChartProgressSnapshot } from '../SChartProgress.types';
2
+ export declare const skeletonProgressSnapshots: TChartProgressSnapshot[];
3
+ export declare const SKELETON_PROGRESS_MIN_VALUE = 0;
4
+ export declare const SKELETON_PROGRESS_MAX_VALUE = 100;
5
+ export declare const SKELETON_PROGRESS_STEP_SIZE = 25;
6
+ //# sourceMappingURL=skeletonProgressSnapshots.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"skeletonProgressSnapshots.d.ts","sourceRoot":"","sources":["../../../../src/components/SChartProgress/utils/skeletonProgressSnapshots.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAErE,eAAO,MAAM,yBAAyB,EAAE,sBAAsB,EAO7D,CAAA;AAED,eAAO,MAAM,2BAA2B,IAAI,CAAA;AAC5C,eAAO,MAAM,2BAA2B,MAAM,CAAA;AAC9C,eAAO,MAAM,2BAA2B,KAAK,CAAA"}
@@ -107,6 +107,11 @@ export interface ISSelectProps<TItem extends Record<string, unknown> = ISSelectO
107
107
  searchPlaceholder?: string;
108
108
  /** Пользовательский предикат фильтрации опций. */
109
109
  filterOption?: (query: string, item: TItem) => boolean;
110
+ /**
111
+ * Ограничивать панель пересечением overflow-предков reference.
112
+ * Отключите (`false`) внутри контейнеров с `overflow: hidden`, если панель не появляется.
113
+ */
114
+ fitViewport?: boolean;
110
115
  }
111
116
  export type TSSelectExposed = {
112
117
  open: () => Promise<void>;
@@ -1 +1 @@
1
- {"version":3,"file":"SSelect.types.d.ts","sourceRoot":"","sources":["../../../src/components/SSelect/SSelect.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EA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TagColorValue) => color is TSTagCustomColor;
3
3
  export declare const getTagColorClass: (color: TSTagColorValue) => string;
4
- export declare const getTagCustomColorStyle: (color: TSTagCustomColor) => {
5
- '--s-ui-tag-bg': TSTagCustomColor;
6
- };
4
+ export declare const getTagColorStyle: (color: TSTagCustomColor) => Record<string, string>;
7
5
  //# sourceMappingURL=resolveTagColor.d.ts.map