@shtabapp/ui-kit 1.63.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 (105) hide show
  1. package/CHANGELOG.md +14 -2
  2. package/dist/SColorPicker-BRSi0Xhm.cjs +1 -0
  3. package/dist/{SColorPicker-BL-zrskU.js → SColorPicker-Djr-R81h.js} +2 -1
  4. package/dist/SDropdownMenu-2koPU6IG.js +38 -0
  5. package/dist/SDropdownMenu-k9SxaFVH.cjs +1 -0
  6. package/dist/SList-D0PDc8VN.cjs +1 -0
  7. package/dist/SList-D2K9dNsj.js +465 -0
  8. package/dist/SSelect-CRlkCLik.cjs +1 -0
  9. package/dist/SSelect-D6taevzT.js +650 -0
  10. package/dist/STable-NbCfen0n.cjs +1 -0
  11. package/dist/STable-aS1eGuVB.js +3445 -0
  12. package/dist/components/SList/SList.vue.d.ts.map +1 -1
  13. package/dist/components/SList/utils/resolveListItemFields.d.ts +1 -1
  14. package/dist/components/SList/utils/resolveListItemFields.d.ts.map +1 -1
  15. package/dist/components/STable/STable.types.d.ts +317 -0
  16. package/dist/components/STable/STable.types.d.ts.map +1 -0
  17. package/dist/components/STable/STable.vue.d.ts +154 -0
  18. package/dist/components/STable/STable.vue.d.ts.map +1 -0
  19. package/dist/components/STable/constants/tableSizes.d.ts +76 -0
  20. package/dist/components/STable/constants/tableSizes.d.ts.map +1 -0
  21. package/dist/components/STable/index.d.ts +4 -0
  22. package/dist/components/STable/index.d.ts.map +1 -0
  23. package/dist/components/STable/parts/STableCellText.vue.d.ts +23 -0
  24. package/dist/components/STable/parts/STableCellText.vue.d.ts.map +1 -0
  25. package/dist/components/STable/parts/STableCheckbox.vue.d.ts +17 -0
  26. package/dist/components/STable/parts/STableCheckbox.vue.d.ts.map +1 -0
  27. package/dist/components/STable/parts/STableContentRow.vue.d.ts +41 -0
  28. package/dist/components/STable/parts/STableContentRow.vue.d.ts.map +1 -0
  29. package/dist/components/STable/parts/STableGroupRow.vue.d.ts +55 -0
  30. package/dist/components/STable/parts/STableGroupRow.vue.d.ts.map +1 -0
  31. package/dist/components/STable/parts/STableHeaderCell.vue.d.ts +36 -0
  32. package/dist/components/STable/parts/STableHeaderCell.vue.d.ts.map +1 -0
  33. package/dist/components/STable/parts/STableHint.vue.d.ts +7 -0
  34. package/dist/components/STable/parts/STableHint.vue.d.ts.map +1 -0
  35. package/dist/components/STable/parts/STablePlaceholderRow.vue.d.ts +25 -0
  36. package/dist/components/STable/parts/STablePlaceholderRow.vue.d.ts.map +1 -0
  37. package/dist/components/STable/parts/STableRow.vue.d.ts +67 -0
  38. package/dist/components/STable/parts/STableRow.vue.d.ts.map +1 -0
  39. package/dist/components/STable/parts/STableSkeletonRow.vue.d.ts +27 -0
  40. package/dist/components/STable/parts/STableSkeletonRow.vue.d.ts.map +1 -0
  41. package/dist/components/STable/utils/tableDndShared.d.ts +17 -0
  42. package/dist/components/STable/utils/tableDndShared.d.ts.map +1 -0
  43. package/dist/components/STable/utils/useFlatTableRows.d.ts +62 -0
  44. package/dist/components/STable/utils/useFlatTableRows.d.ts.map +1 -0
  45. package/dist/components/STable/utils/useTableCellPlans.d.ts +48 -0
  46. package/dist/components/STable/utils/useTableCellPlans.d.ts.map +1 -0
  47. package/dist/components/STable/utils/useTableColumnDnd.d.ts +28 -0
  48. package/dist/components/STable/utils/useTableColumnDnd.d.ts.map +1 -0
  49. package/dist/components/STable/utils/useTableColumnResize.d.ts +24 -0
  50. package/dist/components/STable/utils/useTableColumnResize.d.ts.map +1 -0
  51. package/dist/components/STable/utils/useTableColumns.d.ts +86 -0
  52. package/dist/components/STable/utils/useTableColumns.d.ts.map +1 -0
  53. package/dist/components/STable/utils/useTableGridFocus.d.ts +79 -0
  54. package/dist/components/STable/utils/useTableGridFocus.d.ts.map +1 -0
  55. package/dist/components/STable/utils/useTableGridKeyboard.d.ts +36 -0
  56. package/dist/components/STable/utils/useTableGridKeyboard.d.ts.map +1 -0
  57. package/dist/components/STable/utils/useTableRenderEntries.d.ts +56 -0
  58. package/dist/components/STable/utils/useTableRenderEntries.d.ts.map +1 -0
  59. package/dist/components/STable/utils/useTableRowDnd.d.ts +37 -0
  60. package/dist/components/STable/utils/useTableRowDnd.d.ts.map +1 -0
  61. package/dist/components/STable/utils/useTableRowHydration.d.ts +29 -0
  62. package/dist/components/STable/utils/useTableRowHydration.d.ts.map +1 -0
  63. package/dist/components/STable/utils/useTableScrollScale.d.ts +34 -0
  64. package/dist/components/STable/utils/useTableScrollScale.d.ts.map +1 -0
  65. package/dist/components/STable/utils/useTableSelection.d.ts +27 -0
  66. package/dist/components/STable/utils/useTableSelection.d.ts.map +1 -0
  67. package/dist/components/STable/utils/useTableServiceRows.d.ts +57 -0
  68. package/dist/components/STable/utils/useTableServiceRows.d.ts.map +1 -0
  69. package/dist/components/STable/utils/useTableSorting.d.ts +21 -0
  70. package/dist/components/STable/utils/useTableSorting.d.ts.map +1 -0
  71. package/dist/components/STable/utils/useTableStickyRows.d.ts +38 -0
  72. package/dist/components/STable/utils/useTableStickyRows.d.ts.map +1 -0
  73. package/dist/components/STable/utils/useTableStyleVars.d.ts +22 -0
  74. package/dist/components/STable/utils/useTableStyleVars.d.ts.map +1 -0
  75. package/dist/components/STable/utils/useTableVirtualRows.d.ts +56 -0
  76. package/dist/components/STable/utils/useTableVirtualRows.d.ts.map +1 -0
  77. package/dist/composables/treeKeyboardNavigation.d.ts +26 -0
  78. package/dist/composables/treeKeyboardNavigation.d.ts.map +1 -0
  79. package/dist/composables/useFlatTreeList.d.ts +1 -0
  80. package/dist/composables/useFlatTreeList.d.ts.map +1 -1
  81. package/dist/entries/color-picker.cjs +1 -1
  82. package/dist/entries/color-picker.js +1 -1
  83. package/dist/entries/list.cjs +1 -1
  84. package/dist/entries/list.js +1 -1
  85. package/dist/entries/select.cjs +1 -1
  86. package/dist/entries/select.js +1 -1
  87. package/dist/entries/table.cjs +1 -0
  88. package/dist/entries/table.d.ts +3 -0
  89. package/dist/entries/table.d.ts.map +1 -0
  90. package/dist/entries/table.js +2 -0
  91. package/dist/index.cjs +1 -1
  92. package/dist/index.d.ts +2 -0
  93. package/dist/index.d.ts.map +1 -1
  94. package/dist/index.js +111 -108
  95. package/dist/treeKeyboardNavigation-BOz2SVus.cjs +1 -0
  96. package/dist/treeKeyboardNavigation-SmxTdnDz.js +131 -0
  97. package/dist/uikit-components.css +1 -1
  98. package/package.json +14 -3
  99. package/dist/SColorPicker-CvhpJEj1.cjs +0 -1
  100. package/dist/SList-C39LrsoS.js +0 -590
  101. package/dist/SList-Du0gqyFs.cjs +0 -1
  102. package/dist/SSelect-BkX3VuCr.js +0 -682
  103. package/dist/SSelect-CHWKMbB_.cjs +0 -1
  104. package/dist/components/SList/utils/treeKeyboardNavigation.d.ts +0 -16
  105. package/dist/components/SList/utils/treeKeyboardNavigation.d.ts.map +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";
@@ -19,12 +19,14 @@ 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";
@@ -44,13 +46,14 @@ import { t as wt } from "./useHasListener-RSjlUyqH.js";
44
46
  import { t as Tt } from "./SChartBar-BVgwPlYi.js";
45
47
  import { t as Et } from "./SChartProgress-uMg4DBpS.js";
46
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";
47
- import { Fragment as Lt, Teleport as Rt, 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 Bt, mergeProps as Vt, normalizeClass as F, normalizeStyle as I, onMounted as Ht, openBlock as L, ref as R, renderList as Ut, renderSlot as z, resolveDynamicComponent as Wt, shallowRef as B, toDisplayString as V, unref as H, useModel as Gt, useSlots as U, useTemplateRef as W, watch as Kt, withCtx as G } from "vue";
48
- import { ESIconName as K, SIcon as qt, createUiKit as Jt, setUiKitLocale as Yt, uiKitLocaleEn as Xt, uiKitLocaleRu as Zt, useUiKitI18n as Qt, useUiKitI18n as $t } from "@shtabapp/ui-kit-primitives";
49
- import { useResizeObserver as en } from "@vueuse/core";
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";
50
53
  export * from "@shtabapp/ui-kit-primitives";
51
54
  export * from "@shtabapp/ui-kit-tokens";
52
55
  //#region src/utils/chart/segmentedBar/resolveSegmentedBarSegmentColor.ts
53
- var tn = [
56
+ var mn = [
54
57
  "--s-ui-chart-segmented-bar-palette-1",
55
58
  "--s-ui-chart-segmented-bar-palette-2",
56
59
  "--s-ui-chart-segmented-bar-palette-3",
@@ -59,7 +62,7 @@ var tn = [
59
62
  "--s-ui-chart-segmented-bar-palette-6",
60
63
  "--s-ui-chart-segmented-bar-palette-7",
61
64
  "--s-ui-chart-segmented-bar-palette-8"
62
- ], nn = [
65
+ ], hn = [
63
66
  "--s-ui-chart-segmented-bar-skeleton-palette-1",
64
67
  "--s-ui-chart-segmented-bar-skeleton-palette-2",
65
68
  "--s-ui-chart-segmented-bar-skeleton-palette-3",
@@ -68,11 +71,11 @@ var tn = [
68
71
  "--s-ui-chart-segmented-bar-skeleton-palette-6",
69
72
  "--s-ui-chart-segmented-bar-skeleton-palette-7",
70
73
  "--s-ui-chart-segmented-bar-skeleton-palette-8"
71
- ], rn = (e, t, n, r = !1) => _t(e, t, n, r, {
72
- palette: tn,
73
- paletteFallback: tn[0],
74
- skeletonPalette: nn,
75
- skeletonFallback: nn[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]
76
79
  }), q = /* @__PURE__ */ function(e) {
77
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;
78
81
  }({}), J = /* @__PURE__ */ function(e) {
@@ -81,32 +84,32 @@ var tn = [
81
84
  return e.ICON = "icon", e.AVATAR = "avatar", e;
82
85
  }({}), X = /* @__PURE__ */ function(e) {
83
86
  return e.BANNER = "banner", e.TOAST = "toast", e;
84
- }({}), an = {
87
+ }({}), _n = {
85
88
  [q.INFO_ACCENT]: K.infoCircle,
86
89
  [q.INFO_NORMAL]: K.infoCircle,
87
90
  [q.SUCCESS]: K.checkCircle,
88
91
  [q.WARNING]: K.alertCircle,
89
92
  [q.DANGER]: K.dangerCircleFill,
90
93
  [q.BILLING]: K.infoCircle
91
- }, on = (e, t) => t || an[e], sn = ["role"], cn = { class: "s-ui-notification__body" }, ln = {
94
+ }, vn = (e, t) => t || _n[e], yn = ["role"], bn = { class: "s-ui-notification__body" }, xn = {
92
95
  key: 0,
93
96
  class: "s-ui-notification__leftside"
94
- }, un = {
97
+ }, Sn = {
95
98
  key: 0,
96
99
  class: "s-ui-notification__icon"
97
- }, dn = { class: "s-ui-notification__content" }, fn = { class: "s-ui-notification__title-row" }, pn = {
100
+ }, Cn = { class: "s-ui-notification__content" }, wn = { class: "s-ui-notification__title-row" }, Tn = {
98
101
  key: 0,
99
102
  class: "s-ui-notification__description-block"
100
- }, mn = {
103
+ }, En = {
101
104
  key: 0,
102
105
  class: "s-ui-notification__description s-ui-typography-label-12-medium"
103
- }, hn = {
106
+ }, Dn = {
104
107
  key: 1,
105
108
  class: "s-ui-notification__actions-stack"
106
- }, gn = {
109
+ }, On = {
107
110
  key: 1,
108
111
  class: "s-ui-notification__actions-row"
109
- }, _n = /* @__PURE__ */ P({
112
+ }, kn = /* @__PURE__ */ P({
110
113
  __name: "SNotification",
111
114
  props: {
112
115
  type: { default: () => q.INFO_ACCENT },
@@ -150,7 +153,7 @@ var tn = [
150
153
  ]), a = D(() => {
151
154
  let t = {};
152
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;
153
- }), s = D(() => e.type === q.DANGER ? "alert" : "status"), l = D(() => on(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), _ = () => {
154
157
  n("close");
155
158
  }, v = () => {
156
159
  n("linkClick");
@@ -163,8 +166,8 @@ var tn = [
163
166
  class: F(["s-ui-notification", i.value]),
164
167
  style: I(a.value),
165
168
  role: s.value
166
- }, [j("div", cn, [
167
- d.value ? (L(), A("div", ln, [e.leftside === H(Y).ICON ? (L(), A("div", un, [zt(H(qt), {
169
+ }, [j("div", bn, [
170
+ d.value ? (L(), A("div", xn, [e.leftside === H(Y).ICON ? (L(), A("div", Sn, [Zt(H(on), {
168
171
  name: l.value,
169
172
  size: 16,
170
173
  billing: u.value
@@ -181,8 +184,8 @@ var tn = [
181
184
  "badge",
182
185
  "size"
183
186
  ])) : k("", !0)])) : k("", !0),
184
- j("div", dn, [
185
- j("div", fn, [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), {
186
189
  key: 0,
187
190
  class: "s-ui-notification__close",
188
191
  appearance: H(C).BARE,
@@ -197,7 +200,7 @@ var tn = [
197
200
  "size",
198
201
  "aria-label"
199
202
  ])) : k("", !0)]),
200
- f.value ? (L(), A("div", pn, [e.description || H(r).description ? (L(), A("span", mn, [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), {
201
204
  key: 1,
202
205
  class: "s-ui-notification__link",
203
206
  appearance: H(C).BARE,
@@ -212,7 +215,7 @@ var tn = [
212
215
  "variant",
213
216
  "size"
214
217
  ])) : k("", !0)])) : k("", !0),
215
- e.layout === H(J).VERTICAL && p.value ? (L(), A("div", hn, [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), {
216
219
  key: 0,
217
220
  appearance: h.value,
218
221
  variant: g.value,
@@ -240,7 +243,7 @@ var tn = [
240
243
  "size"
241
244
  ])) : k("", !0)])) : k("", !0)
242
245
  ]),
243
- e.layout === H(J).HORIZONTAL && m.value ? (L(), A("div", gn, [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), {
244
247
  key: 0,
245
248
  appearance: h.value,
246
249
  variant: g.value,
@@ -268,9 +271,9 @@ var tn = [
268
271
  "size",
269
272
  "aria-label"
270
273
  ])) : k("", !0)])) : k("", !0)
271
- ])], 14, sn));
274
+ ])], 14, yn));
272
275
  }
273
- }), vn = /* @__PURE__ */ P({
276
+ }), An = /* @__PURE__ */ P({
274
277
  __name: "SBanner",
275
278
  props: {
276
279
  type: { default: () => q.INFO_ACCENT },
@@ -306,7 +309,7 @@ var tn = [
306
309
  ],
307
310
  setup(e, { emit: t }) {
308
311
  let n = t, r = U();
309
- return (t, i) => (L(), O(_n, {
312
+ return (t, i) => (L(), O(kn, {
310
313
  class: "s-ui-banner",
311
314
  "data-qa": "ui:banner",
312
315
  type: e.type,
@@ -356,7 +359,7 @@ var tn = [
356
359
  "truncateTitle"
357
360
  ]));
358
361
  }
359
- }), yn = /* @__PURE__ */ P({
362
+ }), jn = /* @__PURE__ */ P({
360
363
  __name: "SToast",
361
364
  props: {
362
365
  type: { default: () => q.INFO_ACCENT },
@@ -392,7 +395,7 @@ var tn = [
392
395
  ],
393
396
  setup(e, { emit: t }) {
394
397
  let n = t, r = U(), i = D(() => e.width ?? 360);
395
- return (t, a) => (L(), O(_n, {
398
+ return (t, a) => (L(), O(kn, {
396
399
  class: "s-ui-toast",
397
400
  "data-qa": "ui:toast",
398
401
  type: e.type,
@@ -442,13 +445,13 @@ var tn = [
442
445
  "truncateTitle"
443
446
  ]));
444
447
  }
445
- }), bn = .05, xn = [
448
+ }), Mn = .05, Nn = [
446
449
  "data-mounted",
447
450
  "data-front",
448
451
  "data-expanded",
449
452
  "data-removed",
450
453
  "data-visible"
451
- ], Sn = /* @__PURE__ */ P({
454
+ ], Pn = /* @__PURE__ */ P({
452
455
  __name: "SToastProviderToast",
453
456
  props: {
454
457
  index: {},
@@ -461,7 +464,7 @@ var tn = [
461
464
  },
462
465
  emits: ["heightChange"],
463
466
  setup(e, { emit: t }) {
464
- let n = t, r = R(null), i = R(0), a = R(!1), o = D(() => e.index === 0), s = D(() => 1 - e.index * bn), 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(() => ({
465
468
  "--s-ui-toast-provider-toasts-before": String(e.index),
466
469
  "--s-ui-toast-provider-lift-amount": `${e.stackPeek * -1}px`,
467
470
  "--s-ui-toast-provider-front-toast-height": `${e.frontToastHeight}px`,
@@ -470,10 +473,10 @@ var tn = [
470
473
  "--s-ui-toast-provider-stack-scale": String(s.value),
471
474
  zIndex: String(1e3 - e.index)
472
475
  }));
473
- return en(r, (e) => {
476
+ return pn(r, (e) => {
474
477
  let t = e[0]?.contentRect.height ?? 0;
475
478
  t !== i.value && (i.value = t, n("heightChange", t));
476
- }), Ht(() => {
479
+ }), en(() => {
477
480
  requestAnimationFrame(() => {
478
481
  requestAnimationFrame(() => {
479
482
  a.value = !0;
@@ -491,50 +494,50 @@ var tn = [
491
494
  ref_key: "contentRef",
492
495
  ref: r,
493
496
  class: "s-ui-toast-provider__toast-content"
494
- }, [z(t.$slots, "default")], 512)], 12, xn));
497
+ }, [z(t.$slots, "default")], 512)], 12, Nn));
495
498
  }
496
- }), Cn = 4e3, wn = 1e4, Tn = 50, En = (e, t) => {
497
- let n = Cn + (e.length + (t?.length ?? 0)) * 50;
498
- return n > 1e4 ? wn : n;
499
- }, Z = B([]), Q = /* @__PURE__ */ new Map(), Dn = 0, On = {
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 = {
500
503
  type: q.INFO_ACCENT,
501
504
  layout: J.HORIZONTAL,
502
505
  leftside: Y.ICON,
503
506
  showPrimaryButton: !1,
504
507
  closable: !0
505
- }, kn = () => `toast-${Date.now()}-${++Dn}`, $ = (e) => {
508
+ }, Vn = () => `toast-${Date.now()}-${++zn}`, $ = (e) => {
506
509
  let t = Q.get(e);
507
510
  t && (window.clearTimeout(t), Q.delete(e));
508
- }, An = (e) => {
511
+ }, Hn = (e) => {
509
512
  $(e.id);
510
- let t = e.duration === void 0 ? En(e.title, e.description) : e.duration;
513
+ let t = e.duration === void 0 ? Rn(e.title, e.description) : e.duration;
511
514
  if (t > 0) {
512
515
  let n = window.setTimeout(() => {
513
- jn(e.id);
516
+ Un(e.id);
514
517
  }, t);
515
518
  Q.set(e.id, n);
516
519
  }
517
- }, jn = (e) => {
520
+ }, Un = (e) => {
518
521
  let t = Z.value.findIndex((t) => t.id === e);
519
522
  if (t === -1) return;
520
523
  let n = Z.value[t];
521
524
  n && ($(e), n.onClose && n.onClose(), Z.value = Z.value.filter((t) => t.id !== e));
522
- }, Mn = () => {
525
+ }, Wn = () => {
523
526
  Q.forEach((e) => window.clearTimeout(e)), Q.clear(), Z.value = [];
524
- }, Nn = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
527
+ }, Gn = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
525
528
  $(e.id);
526
- }), e.slice(0, 3)), Pn = (e) => {
527
- let t = e.id ?? kn(), n = {
528
- ...On,
529
+ }), e.slice(0, 3)), Kn = (e) => {
530
+ let t = e.id ?? Vn(), n = {
531
+ ...Bn,
529
532
  ...e,
530
533
  id: t
531
534
  }, r = Z.value.findIndex((e) => e.id === t);
532
535
  if (r > -1) {
533
536
  let e = [...Z.value];
534
- e[r] = n, Z.value = Nn(e);
535
- } else Z.value = Nn([n, ...Z.value]);
536
- return An(n), t;
537
- }, Fn = (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) => {
538
541
  let n = Z.value.findIndex((t) => t.id === e);
539
542
  if (n === -1) return;
540
543
  let r = Z.value[n];
@@ -544,18 +547,18 @@ var tn = [
544
547
  ...t,
545
548
  id: r.id
546
549
  }, a = [...Z.value];
547
- a[n] = i, Z.value = a, An(i);
548
- }, In = () => ({
550
+ a[n] = i, Z.value = a, Hn(i);
551
+ }, Jn = () => ({
549
552
  toasts: Z,
550
- show: Pn,
551
- hide: jn,
552
- hideAll: Mn,
553
- update: Fn
554
- }), Ln = /* @__PURE__ */ P({
553
+ show: Kn,
554
+ hide: Un,
555
+ hideAll: Wn,
556
+ update: qn
557
+ }), Yn = /* @__PURE__ */ P({
555
558
  __name: "SToastProvider",
556
559
  setup(e) {
557
- let { toasts: t, hide: n } = In(), 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);
558
- Kt(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) => {
559
562
  e > 0 && (l.value = e);
560
563
  });
561
564
  let d = D(() => {
@@ -597,7 +600,7 @@ var tn = [
597
600
  }, b = (e) => {
598
601
  e.onSecondaryAction && e.onSecondaryAction();
599
602
  };
600
- return (e, t) => (L(), O(Rt, { to: "body" }, [j("div", {
603
+ return (e, t) => (L(), O(Xt, { to: "body" }, [j("div", {
601
604
  class: "s-ui-toast-provider",
602
605
  onMouseenter: m,
603
606
  onMouseleave: h
@@ -605,7 +608,7 @@ var tn = [
605
608
  key: 0,
606
609
  class: "s-ui-toast-provider__list",
607
610
  style: I(d.value)
608
- }, [(L(!0), A(Lt, null, Ut(r.value, (t, n) => (L(), O(Sn, {
611
+ }, [(L(!0), A(Yt, null, tn(r.value, (t, n) => (L(), O(Pn, {
609
612
  key: t.id,
610
613
  index: n,
611
614
  expanded: i.value,
@@ -616,13 +619,13 @@ var tn = [
616
619
  "offset-y": f(n),
617
620
  onHeightChange: (e) => g(t.id, e)
618
621
  }, {
619
- default: G(() => [z(e.$slots, "toast", { toast: t }, () => [t.component ? (L(), O(Wt(t.component), Vt({
622
+ default: G(() => [z(e.$slots, "toast", { toast: t }, () => [t.component ? (L(), O(nn(t.component), $t({
620
623
  key: 0,
621
624
  ref_for: !0
622
625
  }, t.componentProps, {
623
626
  toast: t,
624
627
  onClose: (e) => _(t.id)
625
- }), null, 16, ["toast", "onClose"])) : (L(), O(H(yn), {
628
+ }), null, 16, ["toast", "onClose"])) : (L(), O(H(jn), {
626
629
  key: 1,
627
630
  type: t.type,
628
631
  layout: t.layout,
@@ -676,10 +679,10 @@ var tn = [
676
679
  "onHeightChange"
677
680
  ]))), 128))], 4)) : k("", !0)], 32)]));
678
681
  }
679
- }), Rn = 4, zn = 4, Bn = 1, Vn = "400 12px var(--s-ui-font-family-label)", Hn = 4, Un = (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) => {
680
683
  let o = Math.min(a, r / 2, i / 2);
681
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();
682
- }, Wn = (e) => {
685
+ }, nr = (e) => {
683
686
  let t = e.getProps([
684
687
  "x",
685
688
  "y",
@@ -690,14 +693,14 @@ var tn = [
690
693
  width: Math.abs(n - i),
691
694
  centerY: r
692
695
  };
693
- }, Gn = (e, t, n, r) => {
694
- let i = Wn(t);
696
+ }, rr = (e, t, n, r) => {
697
+ let i = nr(t);
695
698
  if (!i) return;
696
- let a = `${n}`, o = e.measureText(a).width + Rn * 2;
697
- if (i.width < o + Hn * 2) return;
699
+ let a = `${n}`, o = e.measureText(a).width + Xn * 2;
700
+ if (i.width < o + er * 2) return;
698
701
  let s = i.left + i.width / 2;
699
- Un(e, s - o / 2, i.centerY - 20 / 2, o, 20, zn), e.fillStyle = r.background, e.fill(), e.lineWidth = Bn, e.strokeStyle = r.border, e.stroke(), e.fillStyle = r.text, e.fillText(a, s, i.centerY);
700
- }, Kn = (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) => ({
701
704
  id: "segmentedBarBadge",
702
705
  afterDatasetsDraw(t) {
703
706
  let n = {
@@ -705,18 +708,18 @@ var tn = [
705
708
  border: T(E.pieBadgeBorder, e),
706
709
  text: T(E.pieBadgeText, e)
707
710
  }, { ctx: r } = t;
708
- r.save(), r.font = Vn, 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) => {
709
712
  let a = t.getDatasetMeta(i)?.data[0], o = e.data[0];
710
- a && typeof o == "number" && o > 0 && Gn(r, a, o, n);
713
+ a && typeof o == "number" && o > 0 && rr(r, a, o, n);
711
714
  }), r.restore();
712
715
  }
713
- }), qn = 40, Jn = 4, Yn = 1, Xn = [
716
+ }), ar = 40, or = 4, sr = 1, cr = [
714
717
  "mousemove",
715
718
  "mouseout",
716
719
  "click",
717
720
  "touchstart",
718
721
  "touchmove"
719
- ], Zn = ({ segments: e, segmentColors: t, colorHostElement: n, skeleton: r = !1, onSegmentClick: i }) => {
722
+ ], lr = ({ segments: e, segmentColors: t, colorHostElement: n, skeleton: r = !1, onSegmentClick: i }) => {
720
723
  if (e.length === 0) return null;
721
724
  let a = T("--s-ui-color-surface-primary", n), o = e.reduce((e, t) => e + t.value, 0), s = pt({
722
725
  kind: "series",
@@ -735,12 +738,12 @@ var tn = [
735
738
  hoverBackgroundColor: t[n],
736
739
  borderColor: a,
737
740
  borderWidth: {
738
- left: Yn,
739
- right: Yn
741
+ left: sr,
742
+ right: sr
740
743
  },
741
744
  borderSkipped: !1,
742
- borderRadius: Jn,
743
- barThickness: qn,
745
+ borderRadius: or,
746
+ barThickness: ar,
744
747
  stack: "track"
745
748
  }))
746
749
  },
@@ -749,7 +752,7 @@ var tn = [
749
752
  responsive: !0,
750
753
  maintainAspectRatio: !1,
751
754
  layout: { padding: 0 },
752
- events: r ? [] : Xn,
755
+ events: r ? [] : cr,
753
756
  onHover: s.onHover,
754
757
  onClick: s.onClick,
755
758
  hover: r ? void 0 : {
@@ -774,9 +777,9 @@ var tn = [
774
777
  }
775
778
  }
776
779
  },
777
- plugins: [...r ? [] : [Kn(n)], ...s.plugins]
780
+ plugins: [...r ? [] : [ir(n)], ...s.plugins]
778
781
  };
779
- }, Qn = [
782
+ }, ur = [
780
783
  4,
781
784
  1,
782
785
  2,
@@ -788,7 +791,7 @@ var tn = [
788
791
  ].map((e, t) => ({
789
792
  label: `Series ${t + 1}`,
790
793
  value: e
791
- })), $n = { class: "s-ui-chart-segmented-bar__canvas-wrap" }, er = /* @__PURE__ */ P({
794
+ })), dr = { class: "s-ui-chart-segmented-bar__canvas-wrap" }, fr = /* @__PURE__ */ P({
792
795
  __name: "SChartSegmentedBar",
793
796
  props: {
794
797
  segments: { default: () => [] },
@@ -803,7 +806,7 @@ var tn = [
803
806
  },
804
807
  emits: ["segmentClick"],
805
808
  setup(e, { expose: t, emit: n }) {
806
- let r = n, i = ht, a = W("chartRootRef"), o = W("chartCanvasRef"), s = D(() => e.loading ? Qn : e.segments), c = D(() => s.value.map((t, n) => rn(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) => ({
807
810
  segment: e,
808
811
  segmentIndex: t
809
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(() => {
@@ -814,7 +817,7 @@ var tn = [
814
817
  }), p = (e) => {
815
818
  let t = l.value[e];
816
819
  t && r("segmentClick", t.segmentIndex, t.segment);
817
- }, m = wt("onSegmentClick"), h = D(() => Zn({
820
+ }, m = wt("onSegmentClick"), h = D(() => lr({
818
821
  segments: u.value,
819
822
  segmentColors: d.value,
820
823
  colorHostElement: a.value,
@@ -839,7 +842,7 @@ var tn = [
839
842
  ref: a,
840
843
  class: F(["s-ui-chart-segmented-bar", { "s-ui-chart-segmented-bar--skeleton": e.loading }]),
841
844
  "data-qa": "ui:chart-segmented-bar"
842
- }, [j("div", $n, [zt(H(dt), {
845
+ }, [j("div", dr, [Zt(H(dt), {
843
846
  loading: e.loading,
844
847
  type: H(i).CARTESIAN
845
848
  }, {
@@ -861,22 +864,22 @@ var tn = [
861
864
  "interactive"
862
865
  ])) : k("", !0)], 2));
863
866
  }
864
- }), tr = {
867
+ }), pr = {
865
868
  key: 0,
866
869
  class: "s-ui-chart-widget__header"
867
- }, nr = {
870
+ }, mr = {
868
871
  key: 0,
869
872
  class: "s-ui-chart-widget__title-skeleton",
870
873
  "aria-hidden": "true"
871
- }, rr = {
874
+ }, hr = {
872
875
  key: 1,
873
876
  class: "s-ui-chart-widget__title s-ui-typography-label-16-medium"
874
- }, ir = { class: "s-ui-chart-widget__controls" }, ar = {
877
+ }, gr = { class: "s-ui-chart-widget__controls" }, _r = {
875
878
  key: 1,
876
879
  class: "s-ui-chart-widget__content"
877
- }, or = /* @__PURE__ */ P({
880
+ }, vr = /* @__PURE__ */ P({
878
881
  __name: "SChartWidget",
879
- props: /*@__PURE__*/ Bt({
882
+ props: /*@__PURE__*/ Qt({
880
883
  title: { default: "" },
881
884
  collapsible: {
882
885
  type: Boolean,
@@ -899,11 +902,11 @@ var tn = [
899
902
  }),
900
903
  emits: ["update:collapsed"],
901
904
  setup(e) {
902
- let t = Gt(e, "collapsed"), n = U(), { t: r } = $t(), 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"));
903
906
  return (n, r) => (L(), A("div", {
904
907
  class: F(["s-ui-chart-widget", { "s-ui-chart-widget--skeleton": e.loading }]),
905
908
  "data-qa": "ui:chart-widget"
906
- }, [i.value ? (L(), A("div", tr, [e.loading ? (L(), A("span", nr)) : (L(), A("span", rr, [z(n.$slots, "title", {}, () => [N(V(e.title), 1)])])), j("div", ir, [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), {
907
910
  key: 0,
908
911
  appearance: H(C).OUTLINED,
909
912
  variant: H(S).NEUTRAL,
@@ -919,8 +922,8 @@ var tn = [
919
922
  "icon",
920
923
  "aria-label",
921
924
  "aria-expanded"
922
- ])) : k("", !0)])])) : k("", !0), a.value ? (L(), A("div", ar, [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));
923
926
  }
924
927
  });
925
928
  //#endregion
926
- 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, 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, Ot as EWorkTimeSource, l as MAX_RECENT_COLORS, _ as RECOMMENDED_COLOR_PALETTE, c as SAvatar, ne as SAvatarGroup, n as SBadge, vn 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, er as SChartSegmentedBar, vt as SChartStackedArea, yt as SChartStackedBar, or 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, 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, yn as SToast, Ln as SToastProvider, rt as SToggle, Fe as S_DROPDOWN_SHEET_BREAKPOINT, wn as TOAST_AUTO_DURATION_MAX_MS, Cn as TOAST_AUTO_DURATION_MIN_MS, Tn as TOAST_AUTO_DURATION_MS_PER_CHAR, Mt as WORK_TIME_SOURCE_COLOR_VARS, Pt as WORK_TIME_SOURCE_ORDER, Ft as buildWorkTimeLegendItems, En as computeAutoDuration, Te as computeConnectedPosition, Jt as createUiKit, It as formatDurationHM, ee as isSameColor, b as normalizeColorValue, y as resolveColorPreview, re as resolveOwnPropOrGroupedOrFallback, Yt as setUiKitLocale, Xt as uiKitLocaleEn, Zt as uiKitLocaleRu, Ye as useFlatTreeList, De as useFloatingOverlay, Je as useSListEndReached, ae as useSelectionGroup, ce as useSelectionGroupItem, In as useToast, Qt 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
+ let e=require("vue"),t=require("@vueuse/core");var n=(e,t)=>{if(typeof t==`function`)return t(e);let n=e[t];return typeof n==`string`?n:typeof n==`number`?String(n):``},r=(e,t)=>{let n=e[t];return Array.isArray(n)?n.filter(e=>typeof e==`object`&&!!e):[]},i=(e,t)=>{if(!t)return!1;let n=e[t];return typeof n==`boolean`?n:!1},a=`__s-ui-load-more:`,o=e=>`${a}${e}`,s=`__s-ui-list-divider__`,c=()=>Object.create(null),l=e=>e===void 0?new Set:typeof e==`string`?new Set([e]):new Set(e),u=(e,t,i,a)=>{r(e,i).forEach(e=>{let r=n(e,t);r&&a.add(r),u(e,t,i,a)})},d=(e,t,i,a)=>{for(let o of e){if(n(o,i)===t)return o;let e=d(r(o,a),t,i,a);if(e)return e}},f=(e,t,a,s,c,l,u,d)=>{e.forEach(e=>{let p=n(e,t);if(!p)return;let m=r(e,a),h=m.length>0,g=s.includes(p);u.push({key:p,item:e,depth:c,flatIndex:u.length,hasChildren:h,expanded:g,parentKey:l}),h&&g&&f(m,t,a,s,c+1,p,u,d),h&&g&&i(e,d)&&u.push({key:o(p),item:e,depth:c+1,flatIndex:u.length,hasChildren:!1,expanded:!1,parentKey:p,loadMoreForKey:p})})},p=(e,t,i,a)=>{let o=l(a);if(o.size===0)return;let s=[],c=[];for(let a of e){if(r(a,i).length>0)return;o.has(n(a,t))?s.push(a):c.push(a)}if(!(s.length===0||c.length===0))return{selectedItems:s,restItems:c}},m=({items:t,childrenKey:n,itemKey:r,expanded:i,hasMoreChildrenKey:a,selectedOnTop:o,selectedKeys:l})=>({flatRows:(0,e.computed)(()=>{let u=[],d=(0,e.toValue)(t),m=(0,e.toValue)(n),h=(0,e.toValue)(r),g=(0,e.toValue)(a),_=(0,e.toValue)(o)?p(d,h,m,(0,e.toValue)(l)):void 0;return _?(f(_.selectedItems,h,m,i.value,0,void 0,u,g),u.push({key:s,item:c(),depth:0,flatIndex:u.length,hasChildren:!1,expanded:!1,divider:!0}),f(_.restItems,h,m,i.value,0,void 0,u,g),u):(f(d,h,m,i.value,0,void 0,u,g),u)}),toggleExpanded:a=>{let o=(0,e.toValue)(t),s=(0,e.toValue)(n),c=(0,e.toValue)(r),l=new Set(i.value);if(l.has(a)){l.delete(a);let e=d(o,a,c,s);if(e){let t=new Set;u(e,c,s,t),t.forEach(e=>{l.delete(e)})}}else l.add(a);i.value=[...l]},isExpanded:e=>i.value.includes(e)}),h=(n,r)=>(0,t.useInfiniteScroll)(n,()=>{r.onEndReached()},{distance:(0,e.toValue)(r.distance),canLoadMore:()=>r.canLoadMore===void 0?!0:(0,e.toValue)(r.canLoadMore),direction:`bottom`}),g=(e,t)=>typeof t==`string`&&t?t:Array.isArray(t)&&t[0]?t[0]:e,_=e=>e.some(e=>e.hasChildren||e.parentKey),v=(e,t,n)=>{if(!e.hasChildren)return null;if(!e.expanded)return{type:`expand`,rowKey:t};let r=n.find(e=>e.parentKey===t);return r?{type:`select`,rowKey:r.key}:null},y=(e,t)=>e.hasChildren&&e.expanded?{type:`collapse`,rowKey:t}:e.parentKey?{type:`select`,rowKey:e.parentKey}:null,b=(e,t,n)=>{let r=n.find(e=>e.key===t);return r?e===`ArrowRight`?v(r,t,n):y(r,t):null},x=(e,t,n,r)=>{for(let i=t;i>=0&&i<e.length;i+=n){let t=e[i];if(t&&t.depth<=r)return t.key}return null},S=(e,t,n)=>{let r=n.findIndex(e=>e.key===t);if(r===-1)return null;let i=n[r];if(!i)return null;let a=e===`ArrowDown`?1:-1;return x(n,r+a,a,i.depth)};Object.defineProperty(exports,"a",{enumerable:!0,get:function(){return h}}),Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return S}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return g}}),Object.defineProperty(exports,"o",{enumerable:!0,get:function(){return n}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return b}}),Object.defineProperty(exports,"s",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return _}});