@shtabapp/ui-kit 1.62.0 → 1.63.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.
- package/CHANGELOG.md +7 -0
- package/dist/SChartBar-BVgwPlYi.js +215 -0
- package/dist/SChartBar-CBU1uCuL.cjs +1 -0
- package/dist/SChartBurnup-Ch3UMa9w.cjs +1 -0
- package/dist/{SChartBurnup-Dxi0MBwo.js → SChartBurnup-DyJHdRlf.js} +75 -75
- package/dist/SChartHorizontalBar-Bv90SV6E.cjs +1 -0
- package/dist/{SChartHorizontalBar-XNasKzaO.js → SChartHorizontalBar-DDo6TfE8.js} +28 -28
- package/dist/{SChartLine-DSQaezYq.js → SChartLine-Cs1JzPEK.js} +29 -29
- package/dist/SChartLine-nIGaef_o.cjs +1 -0
- package/dist/SChartMultiLine-BzoW4ETf.cjs +1 -0
- package/dist/SChartMultiLine-DqCQ7FCv.js +204 -0
- package/dist/{SChartPie-bN8rY-y5.js → SChartPie-Bt3o7LZI.js} +55 -55
- package/dist/SChartPie-Bv5Obcwb.cjs +1 -0
- package/dist/{SChartProgress-BtwqE4xL.js → SChartProgress-uMg4DBpS.js} +30 -30
- package/dist/SChartProgress-xxqrj03o.cjs +1 -0
- package/dist/SChartStackedArea-BNe6FAg8.cjs +1 -0
- package/dist/{SChartStackedArea-BxUex_Di.js → SChartStackedArea-BQGnKp1i.js} +58 -58
- package/dist/SChartStackedBar-D1G-VloG.cjs +1 -0
- package/dist/SChartStackedBar-fiUU9lNp.js +245 -0
- package/dist/{SSegmentControl-CAoM03V6.js → SSegmentControl-B9KkAQiG.js} +11 -9
- package/dist/SSegmentControl-OXTka86u.cjs +1 -0
- package/dist/areChartSeriesAligned-DiBX3TTk.cjs +1 -0
- package/dist/{buildChartSeriesPoints-D8Xpfwp7.js → areChartSeriesAligned-DjonrIMm.js} +2 -8
- package/dist/buildChartSeriesPoints-BTyOpkin.js +10 -0
- package/dist/buildChartSeriesPoints-Cqo2ed-n.cjs +1 -0
- package/dist/components/SChartBar/SChartBar.types.d.ts +47 -0
- package/dist/components/SChartBar/SChartBar.types.d.ts.map +1 -0
- package/dist/components/SChartBar/SChartBar.vue.d.ts +11 -0
- package/dist/components/SChartBar/SChartBar.vue.d.ts.map +1 -0
- package/dist/components/SChartBar/index.d.ts +3 -0
- package/dist/components/SChartBar/index.d.ts.map +1 -0
- package/dist/components/SChartBar/utils/buildBarChartConfig.d.ts +16 -0
- package/dist/components/SChartBar/utils/buildBarChartConfig.d.ts.map +1 -0
- package/dist/components/SChartBar/utils/createBarTargetLinePlugin.d.ts +9 -0
- package/dist/components/SChartBar/utils/createBarTargetLinePlugin.d.ts.map +1 -0
- package/dist/components/SChartBar/utils/demoBarSeries.d.ts +9 -0
- package/dist/components/SChartBar/utils/demoBarSeries.d.ts.map +1 -0
- package/dist/components/SChartBar/utils/skeletonBarSeries.d.ts +5 -0
- package/dist/components/SChartBar/utils/skeletonBarSeries.d.ts.map +1 -0
- package/dist/components/SChartMultiLine/SChartMultiLine.types.d.ts +2 -0
- package/dist/components/SChartMultiLine/SChartMultiLine.types.d.ts.map +1 -1
- package/dist/components/SChartMultiLine/SChartMultiLine.vue.d.ts.map +1 -1
- package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts +2 -1
- package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts.map +1 -1
- package/dist/components/SList/utils/resolveListItemFields.d.ts +1 -1
- package/dist/components/SList/utils/resolveListItemFields.d.ts.map +1 -1
- package/dist/components/SSegmentControl/SSegmentControl.types.d.ts +2 -0
- package/dist/components/SSegmentControl/SSegmentControl.types.d.ts.map +1 -1
- package/dist/components/SSegmentControl/SSegmentControlItem.vue.d.ts.map +1 -1
- package/dist/{createChartCrosshairPlugin-DwFOncWI.js → createChartCrosshairPlugin-DU5grSok.js} +2 -2
- package/dist/createChartCrosshairPlugin-DfYzBie2.cjs +1 -0
- package/dist/entries/chart-bar.cjs +1 -0
- package/dist/entries/chart-bar.d.ts +3 -0
- package/dist/entries/chart-bar.d.ts.map +1 -0
- package/dist/entries/chart-bar.js +2 -0
- package/dist/entries/chart-burnup.cjs +1 -1
- package/dist/entries/chart-burnup.js +1 -1
- package/dist/entries/chart-horizontal-bar.cjs +1 -1
- package/dist/entries/chart-horizontal-bar.js +1 -1
- package/dist/entries/chart-line.cjs +1 -1
- package/dist/entries/chart-line.js +1 -1
- package/dist/entries/chart-multi-line.cjs +1 -1
- package/dist/entries/chart-multi-line.js +1 -1
- package/dist/entries/chart-pie.cjs +1 -1
- package/dist/entries/chart-pie.js +1 -1
- package/dist/entries/chart-progress.cjs +1 -1
- package/dist/entries/chart-progress.js +1 -1
- package/dist/entries/chart-stacked-area.cjs +1 -1
- package/dist/entries/chart-stacked-area.js +1 -1
- package/dist/entries/chart-stacked-bar.cjs +1 -1
- package/dist/entries/chart-stacked-bar.js +1 -1
- package/dist/entries/segment-control.cjs +1 -1
- package/dist/entries/segment-control.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +123 -122
- package/dist/resolveBarStackedSeriesColor-HDSkh6Mw.cjs +1 -0
- package/dist/resolveBarStackedSeriesColor-LpVh1SvQ.js +11 -0
- package/dist/resolveSeriesPaletteColor-B5qoBbXN.cjs +1 -0
- package/dist/{resolveSeriesPaletteColor-BdvGT-PI.js → resolveSeriesPaletteColor-DcLSyk-D.js} +1 -1
- package/dist/{resolveStackedChartContext-DFre3tt0.js → resolveStackedChartContext-CIKVXkDn.js} +6 -6
- package/dist/resolveStackedChartContext-CQbgdV55.cjs +1 -0
- package/dist/uikit-components.css +1 -1
- package/dist/{SChartSkeletonHost-BT96eWSF.js → useChartInteractivity-BATdT86l.js} +126 -126
- package/dist/useChartInteractivity-CXSdHPOw.cjs +1 -0
- package/package.json +8 -3
- package/dist/SChartBurnup-C4x5kik6.cjs +0 -1
- package/dist/SChartHorizontalBar-4H-lgfO4.cjs +0 -1
- package/dist/SChartLine-BF6Klm4j.cjs +0 -1
- package/dist/SChartMultiLine-CrMmphFe.js +0 -198
- package/dist/SChartMultiLine-Ddvfmf__.cjs +0 -1
- package/dist/SChartPie-namQTFla.cjs +0 -1
- package/dist/SChartProgress-DsFHotRv.cjs +0 -1
- package/dist/SChartSkeletonHost-Dt5EjQr5.cjs +0 -1
- package/dist/SChartStackedArea-BLHs3sSH.cjs +0 -1
- package/dist/SChartStackedBar-BJ9LOgSP.js +0 -250
- package/dist/SChartStackedBar-CWNyvUj9.cjs +0 -1
- package/dist/SSegmentControl-B9jT8Axu.cjs +0 -1
- package/dist/buildChartSeriesPoints-Bv3nXvSu.cjs +0 -1
- package/dist/createChartCrosshairPlugin-ZZwKUQm8.cjs +0 -1
- package/dist/resolveSeriesPaletteColor-hI4YDdUg.cjs +0 -1
- package/dist/resolveStackedChartContext-Dsxhhhel.cjs +0 -1
package/dist/index.js
CHANGED
|
@@ -11,7 +11,7 @@ import { n as ce } from "./useSelectLink-2aCIYmF6.js";
|
|
|
11
11
|
import { i as le, n as ue, r as de, t as fe } from "./SButtonGroup-DPq5g7bZ.js";
|
|
12
12
|
import { i as pe, n as me, r as he, t as ge } from "./SCheckbox-BMkOc5cn.js";
|
|
13
13
|
import { n as _e, t as ve } from "./SCard-DgGxjBUV.js";
|
|
14
|
-
import { t as ye } from "./SSegmentControl-
|
|
14
|
+
import { t as ye } from "./SSegmentControl-B9KkAQiG.js";
|
|
15
15
|
import { n as be, r as xe, t as Se } from "./STab-ltjZBvbK.js";
|
|
16
16
|
import { t as Ce } from "./STabs-CU1lSmcH.js";
|
|
17
17
|
import { i as we, n as Te, r as Ee, t as De } from "./useFloatingOverlay-QcumEYEq.js";
|
|
@@ -30,26 +30,27 @@ import { n as tt, r as nt, t as rt } from "./SToggle-sGw-LSNd.js";
|
|
|
30
30
|
import { n as it, t as at } from "./SInlineInput-DO_glYxP.js";
|
|
31
31
|
import { t as ot } from "./STextarea-BDyy7Ku5.js";
|
|
32
32
|
import { n as st, r as ct, t as lt } from "./SPhotoEdit-CTXpy4AE.js";
|
|
33
|
-
import {
|
|
34
|
-
import { t as ht } from "./
|
|
35
|
-
import { t as gt } from "./
|
|
36
|
-
import { t as _t } from "./
|
|
37
|
-
import { t as vt } from "./
|
|
38
|
-
import { t as yt } from "./
|
|
39
|
-
import { t as bt } from "./
|
|
40
|
-
import { t as xt } from "./
|
|
41
|
-
import { t as St } from "./
|
|
42
|
-
import { t as Ct } from "./
|
|
43
|
-
import { t as wt } from "./
|
|
44
|
-
import { t as Tt } from "./
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
import {
|
|
48
|
-
import {
|
|
33
|
+
import { t as ut } from "./SChartLegend-oZoF8XK7.js";
|
|
34
|
+
import { C as dt, S as T, g as E, n as ft, r as pt, t as mt, w as ht } from "./useChartInteractivity-BATdT86l.js";
|
|
35
|
+
import { t as gt } from "./SChartLine-Cs1JzPEK.js";
|
|
36
|
+
import { t as _t } from "./resolveSeriesPaletteColor-DcLSyk-D.js";
|
|
37
|
+
import { t as vt } from "./SChartStackedArea-BQGnKp1i.js";
|
|
38
|
+
import { t as yt } from "./SChartStackedBar-fiUU9lNp.js";
|
|
39
|
+
import { t as bt } from "./SChartHorizontalBar-DDo6TfE8.js";
|
|
40
|
+
import { t as xt } from "./SChartPie-Bt3o7LZI.js";
|
|
41
|
+
import { t as St } from "./SChartMultiLine-DqCQ7FCv.js";
|
|
42
|
+
import { t as Ct } from "./SChartBurnup-DyJHdRlf.js";
|
|
43
|
+
import { t as wt } from "./useHasListener-RSjlUyqH.js";
|
|
44
|
+
import { t as Tt } from "./SChartBar-BVgwPlYi.js";
|
|
45
|
+
import { t as Et } from "./SChartProgress-uMg4DBpS.js";
|
|
46
|
+
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
50
|
export * from "@shtabapp/ui-kit-primitives";
|
|
50
51
|
export * from "@shtabapp/ui-kit-tokens";
|
|
51
52
|
//#region src/utils/chart/segmentedBar/resolveSegmentedBarSegmentColor.ts
|
|
52
|
-
var
|
|
53
|
+
var tn = [
|
|
53
54
|
"--s-ui-chart-segmented-bar-palette-1",
|
|
54
55
|
"--s-ui-chart-segmented-bar-palette-2",
|
|
55
56
|
"--s-ui-chart-segmented-bar-palette-3",
|
|
@@ -58,7 +59,7 @@ var en = [
|
|
|
58
59
|
"--s-ui-chart-segmented-bar-palette-6",
|
|
59
60
|
"--s-ui-chart-segmented-bar-palette-7",
|
|
60
61
|
"--s-ui-chart-segmented-bar-palette-8"
|
|
61
|
-
],
|
|
62
|
+
], nn = [
|
|
62
63
|
"--s-ui-chart-segmented-bar-skeleton-palette-1",
|
|
63
64
|
"--s-ui-chart-segmented-bar-skeleton-palette-2",
|
|
64
65
|
"--s-ui-chart-segmented-bar-skeleton-palette-3",
|
|
@@ -67,11 +68,11 @@ var en = [
|
|
|
67
68
|
"--s-ui-chart-segmented-bar-skeleton-palette-6",
|
|
68
69
|
"--s-ui-chart-segmented-bar-skeleton-palette-7",
|
|
69
70
|
"--s-ui-chart-segmented-bar-skeleton-palette-8"
|
|
70
|
-
],
|
|
71
|
-
palette:
|
|
72
|
-
paletteFallback:
|
|
73
|
-
skeletonPalette:
|
|
74
|
-
skeletonFallback:
|
|
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]
|
|
75
76
|
}), q = /* @__PURE__ */ function(e) {
|
|
76
77
|
return e.INFO_ACCENT = "info-accent", e.INFO_NORMAL = "info-normal", e.SUCCESS = "success", e.WARNING = "warning", e.DANGER = "danger", e.BILLING = "billing", e;
|
|
77
78
|
}({}), J = /* @__PURE__ */ function(e) {
|
|
@@ -80,32 +81,32 @@ var en = [
|
|
|
80
81
|
return e.ICON = "icon", e.AVATAR = "avatar", e;
|
|
81
82
|
}({}), X = /* @__PURE__ */ function(e) {
|
|
82
83
|
return e.BANNER = "banner", e.TOAST = "toast", e;
|
|
83
|
-
}({}),
|
|
84
|
+
}({}), an = {
|
|
84
85
|
[q.INFO_ACCENT]: K.infoCircle,
|
|
85
86
|
[q.INFO_NORMAL]: K.infoCircle,
|
|
86
87
|
[q.SUCCESS]: K.checkCircle,
|
|
87
88
|
[q.WARNING]: K.alertCircle,
|
|
88
89
|
[q.DANGER]: K.dangerCircleFill,
|
|
89
90
|
[q.BILLING]: K.infoCircle
|
|
90
|
-
},
|
|
91
|
+
}, on = (e, t) => t || an[e], sn = ["role"], cn = { class: "s-ui-notification__body" }, ln = {
|
|
91
92
|
key: 0,
|
|
92
93
|
class: "s-ui-notification__leftside"
|
|
93
|
-
},
|
|
94
|
+
}, un = {
|
|
94
95
|
key: 0,
|
|
95
96
|
class: "s-ui-notification__icon"
|
|
96
|
-
},
|
|
97
|
+
}, dn = { class: "s-ui-notification__content" }, fn = { class: "s-ui-notification__title-row" }, pn = {
|
|
97
98
|
key: 0,
|
|
98
99
|
class: "s-ui-notification__description-block"
|
|
99
|
-
},
|
|
100
|
+
}, mn = {
|
|
100
101
|
key: 0,
|
|
101
102
|
class: "s-ui-notification__description s-ui-typography-label-12-medium"
|
|
102
|
-
},
|
|
103
|
+
}, hn = {
|
|
103
104
|
key: 1,
|
|
104
105
|
class: "s-ui-notification__actions-stack"
|
|
105
|
-
},
|
|
106
|
+
}, gn = {
|
|
106
107
|
key: 1,
|
|
107
108
|
class: "s-ui-notification__actions-row"
|
|
108
|
-
},
|
|
109
|
+
}, _n = /* @__PURE__ */ P({
|
|
109
110
|
__name: "SNotification",
|
|
110
111
|
props: {
|
|
111
112
|
type: { default: () => q.INFO_ACCENT },
|
|
@@ -149,7 +150,7 @@ var en = [
|
|
|
149
150
|
]), a = D(() => {
|
|
150
151
|
let t = {};
|
|
151
152
|
return e.width && (t.width = typeof e.width == "number" ? `${e.width}px` : e.width), e.maxWidth && (t.maxWidth = typeof e.maxWidth == "number" ? `${e.maxWidth}px` : e.maxWidth), t;
|
|
152
|
-
}), s = D(() => e.type === q.DANGER ? "alert" : "status"), l = D(() =>
|
|
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), _ = () => {
|
|
153
154
|
n("close");
|
|
154
155
|
}, v = () => {
|
|
155
156
|
n("linkClick");
|
|
@@ -162,8 +163,8 @@ var en = [
|
|
|
162
163
|
class: F(["s-ui-notification", i.value]),
|
|
163
164
|
style: I(a.value),
|
|
164
165
|
role: s.value
|
|
165
|
-
}, [j("div",
|
|
166
|
-
d.value ? (L(), A("div",
|
|
166
|
+
}, [j("div", cn, [
|
|
167
|
+
d.value ? (L(), A("div", ln, [e.leftside === H(Y).ICON ? (L(), A("div", un, [zt(H(qt), {
|
|
167
168
|
name: l.value,
|
|
168
169
|
size: 16,
|
|
169
170
|
billing: u.value
|
|
@@ -180,8 +181,8 @@ var en = [
|
|
|
180
181
|
"badge",
|
|
181
182
|
"size"
|
|
182
183
|
])) : k("", !0)])) : k("", !0),
|
|
183
|
-
j("div",
|
|
184
|
-
j("div",
|
|
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), {
|
|
185
186
|
key: 0,
|
|
186
187
|
class: "s-ui-notification__close",
|
|
187
188
|
appearance: H(C).BARE,
|
|
@@ -196,7 +197,7 @@ var en = [
|
|
|
196
197
|
"size",
|
|
197
198
|
"aria-label"
|
|
198
199
|
])) : k("", !0)]),
|
|
199
|
-
f.value ? (L(), A("div",
|
|
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), {
|
|
200
201
|
key: 1,
|
|
201
202
|
class: "s-ui-notification__link",
|
|
202
203
|
appearance: H(C).BARE,
|
|
@@ -211,7 +212,7 @@ var en = [
|
|
|
211
212
|
"variant",
|
|
212
213
|
"size"
|
|
213
214
|
])) : k("", !0)])) : k("", !0),
|
|
214
|
-
e.layout === H(J).VERTICAL && p.value ? (L(), A("div",
|
|
215
|
+
e.layout === H(J).VERTICAL && p.value ? (L(), A("div", hn, [e.showPrimaryButton && e.primaryButtonText ? (L(), O(H(w), {
|
|
215
216
|
key: 0,
|
|
216
217
|
appearance: h.value,
|
|
217
218
|
variant: g.value,
|
|
@@ -239,7 +240,7 @@ var en = [
|
|
|
239
240
|
"size"
|
|
240
241
|
])) : k("", !0)])) : k("", !0)
|
|
241
242
|
]),
|
|
242
|
-
e.layout === H(J).HORIZONTAL && m.value ? (L(), A("div",
|
|
243
|
+
e.layout === H(J).HORIZONTAL && m.value ? (L(), A("div", gn, [e.showPrimaryButton && e.primaryButtonText ? (L(), O(H(w), {
|
|
243
244
|
key: 0,
|
|
244
245
|
appearance: h.value,
|
|
245
246
|
variant: g.value,
|
|
@@ -267,9 +268,9 @@ var en = [
|
|
|
267
268
|
"size",
|
|
268
269
|
"aria-label"
|
|
269
270
|
])) : k("", !0)])) : k("", !0)
|
|
270
|
-
])], 14,
|
|
271
|
+
])], 14, sn));
|
|
271
272
|
}
|
|
272
|
-
}),
|
|
273
|
+
}), vn = /* @__PURE__ */ P({
|
|
273
274
|
__name: "SBanner",
|
|
274
275
|
props: {
|
|
275
276
|
type: { default: () => q.INFO_ACCENT },
|
|
@@ -305,7 +306,7 @@ var en = [
|
|
|
305
306
|
],
|
|
306
307
|
setup(e, { emit: t }) {
|
|
307
308
|
let n = t, r = U();
|
|
308
|
-
return (t, i) => (L(), O(
|
|
309
|
+
return (t, i) => (L(), O(_n, {
|
|
309
310
|
class: "s-ui-banner",
|
|
310
311
|
"data-qa": "ui:banner",
|
|
311
312
|
type: e.type,
|
|
@@ -355,7 +356,7 @@ var en = [
|
|
|
355
356
|
"truncateTitle"
|
|
356
357
|
]));
|
|
357
358
|
}
|
|
358
|
-
}),
|
|
359
|
+
}), yn = /* @__PURE__ */ P({
|
|
359
360
|
__name: "SToast",
|
|
360
361
|
props: {
|
|
361
362
|
type: { default: () => q.INFO_ACCENT },
|
|
@@ -391,7 +392,7 @@ var en = [
|
|
|
391
392
|
],
|
|
392
393
|
setup(e, { emit: t }) {
|
|
393
394
|
let n = t, r = U(), i = D(() => e.width ?? 360);
|
|
394
|
-
return (t, a) => (L(), O(
|
|
395
|
+
return (t, a) => (L(), O(_n, {
|
|
395
396
|
class: "s-ui-toast",
|
|
396
397
|
"data-qa": "ui:toast",
|
|
397
398
|
type: e.type,
|
|
@@ -441,13 +442,13 @@ var en = [
|
|
|
441
442
|
"truncateTitle"
|
|
442
443
|
]));
|
|
443
444
|
}
|
|
444
|
-
}),
|
|
445
|
+
}), bn = .05, xn = [
|
|
445
446
|
"data-mounted",
|
|
446
447
|
"data-front",
|
|
447
448
|
"data-expanded",
|
|
448
449
|
"data-removed",
|
|
449
450
|
"data-visible"
|
|
450
|
-
],
|
|
451
|
+
], Sn = /* @__PURE__ */ P({
|
|
451
452
|
__name: "SToastProviderToast",
|
|
452
453
|
props: {
|
|
453
454
|
index: {},
|
|
@@ -460,7 +461,7 @@ var en = [
|
|
|
460
461
|
},
|
|
461
462
|
emits: ["heightChange"],
|
|
462
463
|
setup(e, { emit: t }) {
|
|
463
|
-
let n = t, r = R(null), i = R(0), a = R(!1), o = D(() => e.index === 0), s = D(() => 1 - e.index *
|
|
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(() => ({
|
|
464
465
|
"--s-ui-toast-provider-toasts-before": String(e.index),
|
|
465
466
|
"--s-ui-toast-provider-lift-amount": `${e.stackPeek * -1}px`,
|
|
466
467
|
"--s-ui-toast-provider-front-toast-height": `${e.frontToastHeight}px`,
|
|
@@ -469,10 +470,10 @@ var en = [
|
|
|
469
470
|
"--s-ui-toast-provider-stack-scale": String(s.value),
|
|
470
471
|
zIndex: String(1e3 - e.index)
|
|
471
472
|
}));
|
|
472
|
-
return
|
|
473
|
+
return en(r, (e) => {
|
|
473
474
|
let t = e[0]?.contentRect.height ?? 0;
|
|
474
475
|
t !== i.value && (i.value = t, n("heightChange", t));
|
|
475
|
-
}),
|
|
476
|
+
}), Ht(() => {
|
|
476
477
|
requestAnimationFrame(() => {
|
|
477
478
|
requestAnimationFrame(() => {
|
|
478
479
|
a.value = !0;
|
|
@@ -490,50 +491,50 @@ var en = [
|
|
|
490
491
|
ref_key: "contentRef",
|
|
491
492
|
ref: r,
|
|
492
493
|
class: "s-ui-toast-provider__toast-content"
|
|
493
|
-
}, [z(t.$slots, "default")], 512)], 12,
|
|
494
|
+
}, [z(t.$slots, "default")], 512)], 12, xn));
|
|
494
495
|
}
|
|
495
|
-
}),
|
|
496
|
-
let n =
|
|
497
|
-
return n > 1e4 ?
|
|
498
|
-
}, Z = B([]), Q = /* @__PURE__ */ new Map(),
|
|
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
500
|
type: q.INFO_ACCENT,
|
|
500
501
|
layout: J.HORIZONTAL,
|
|
501
502
|
leftside: Y.ICON,
|
|
502
503
|
showPrimaryButton: !1,
|
|
503
504
|
closable: !0
|
|
504
|
-
},
|
|
505
|
+
}, kn = () => `toast-${Date.now()}-${++Dn}`, $ = (e) => {
|
|
505
506
|
let t = Q.get(e);
|
|
506
507
|
t && (window.clearTimeout(t), Q.delete(e));
|
|
507
|
-
},
|
|
508
|
+
}, An = (e) => {
|
|
508
509
|
$(e.id);
|
|
509
|
-
let t = e.duration === void 0 ?
|
|
510
|
+
let t = e.duration === void 0 ? En(e.title, e.description) : e.duration;
|
|
510
511
|
if (t > 0) {
|
|
511
512
|
let n = window.setTimeout(() => {
|
|
512
|
-
|
|
513
|
+
jn(e.id);
|
|
513
514
|
}, t);
|
|
514
515
|
Q.set(e.id, n);
|
|
515
516
|
}
|
|
516
|
-
},
|
|
517
|
+
}, jn = (e) => {
|
|
517
518
|
let t = Z.value.findIndex((t) => t.id === e);
|
|
518
519
|
if (t === -1) return;
|
|
519
520
|
let n = Z.value[t];
|
|
520
521
|
n && ($(e), n.onClose && n.onClose(), Z.value = Z.value.filter((t) => t.id !== e));
|
|
521
|
-
},
|
|
522
|
+
}, Mn = () => {
|
|
522
523
|
Q.forEach((e) => window.clearTimeout(e)), Q.clear(), Z.value = [];
|
|
523
|
-
},
|
|
524
|
+
}, Nn = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
|
|
524
525
|
$(e.id);
|
|
525
|
-
}), e.slice(0, 3)),
|
|
526
|
-
let t = e.id ??
|
|
527
|
-
...
|
|
526
|
+
}), e.slice(0, 3)), Pn = (e) => {
|
|
527
|
+
let t = e.id ?? kn(), n = {
|
|
528
|
+
...On,
|
|
528
529
|
...e,
|
|
529
530
|
id: t
|
|
530
531
|
}, r = Z.value.findIndex((e) => e.id === t);
|
|
531
532
|
if (r > -1) {
|
|
532
533
|
let e = [...Z.value];
|
|
533
|
-
e[r] = n, Z.value =
|
|
534
|
-
} else Z.value =
|
|
535
|
-
return
|
|
536
|
-
},
|
|
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
538
|
let n = Z.value.findIndex((t) => t.id === e);
|
|
538
539
|
if (n === -1) return;
|
|
539
540
|
let r = Z.value[n];
|
|
@@ -543,18 +544,18 @@ var en = [
|
|
|
543
544
|
...t,
|
|
544
545
|
id: r.id
|
|
545
546
|
}, a = [...Z.value];
|
|
546
|
-
a[n] = i, Z.value = a,
|
|
547
|
-
},
|
|
547
|
+
a[n] = i, Z.value = a, An(i);
|
|
548
|
+
}, In = () => ({
|
|
548
549
|
toasts: Z,
|
|
549
|
-
show:
|
|
550
|
-
hide:
|
|
551
|
-
hideAll:
|
|
552
|
-
update:
|
|
553
|
-
}),
|
|
550
|
+
show: Pn,
|
|
551
|
+
hide: jn,
|
|
552
|
+
hideAll: Mn,
|
|
553
|
+
update: Fn
|
|
554
|
+
}), Ln = /* @__PURE__ */ P({
|
|
554
555
|
__name: "SToastProvider",
|
|
555
556
|
setup(e) {
|
|
556
|
-
let { toasts: t, hide: n } =
|
|
557
|
-
|
|
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) => {
|
|
558
559
|
e > 0 && (l.value = e);
|
|
559
560
|
});
|
|
560
561
|
let d = D(() => {
|
|
@@ -596,7 +597,7 @@ var en = [
|
|
|
596
597
|
}, b = (e) => {
|
|
597
598
|
e.onSecondaryAction && e.onSecondaryAction();
|
|
598
599
|
};
|
|
599
|
-
return (e, t) => (L(), O(
|
|
600
|
+
return (e, t) => (L(), O(Rt, { to: "body" }, [j("div", {
|
|
600
601
|
class: "s-ui-toast-provider",
|
|
601
602
|
onMouseenter: m,
|
|
602
603
|
onMouseleave: h
|
|
@@ -604,7 +605,7 @@ var en = [
|
|
|
604
605
|
key: 0,
|
|
605
606
|
class: "s-ui-toast-provider__list",
|
|
606
607
|
style: I(d.value)
|
|
607
|
-
}, [(L(!0), A(
|
|
608
|
+
}, [(L(!0), A(Lt, null, Ut(r.value, (t, n) => (L(), O(Sn, {
|
|
608
609
|
key: t.id,
|
|
609
610
|
index: n,
|
|
610
611
|
expanded: i.value,
|
|
@@ -615,13 +616,13 @@ var en = [
|
|
|
615
616
|
"offset-y": f(n),
|
|
616
617
|
onHeightChange: (e) => g(t.id, e)
|
|
617
618
|
}, {
|
|
618
|
-
default: G(() => [z(e.$slots, "toast", { toast: t }, () => [t.component ? (L(), O(
|
|
619
|
+
default: G(() => [z(e.$slots, "toast", { toast: t }, () => [t.component ? (L(), O(Wt(t.component), Vt({
|
|
619
620
|
key: 0,
|
|
620
621
|
ref_for: !0
|
|
621
622
|
}, t.componentProps, {
|
|
622
623
|
toast: t,
|
|
623
624
|
onClose: (e) => _(t.id)
|
|
624
|
-
}), null, 16, ["toast", "onClose"])) : (L(), O(H(
|
|
625
|
+
}), null, 16, ["toast", "onClose"])) : (L(), O(H(yn), {
|
|
625
626
|
key: 1,
|
|
626
627
|
type: t.type,
|
|
627
628
|
layout: t.layout,
|
|
@@ -675,10 +676,10 @@ var en = [
|
|
|
675
676
|
"onHeightChange"
|
|
676
677
|
]))), 128))], 4)) : k("", !0)], 32)]));
|
|
677
678
|
}
|
|
678
|
-
}),
|
|
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) => {
|
|
679
680
|
let o = Math.min(a, r / 2, i / 2);
|
|
680
681
|
e.beginPath(), e.moveTo(t + o, n), e.lineTo(t + r - o, n), e.arcTo(t + r, n, t + r, n + o, o), e.lineTo(t + r, n + i - o), e.arcTo(t + r, n + i, t + r - o, n + i, o), e.lineTo(t + o, n + i), e.arcTo(t, n + i, t, n + i - o, o), e.lineTo(t, n + o), e.arcTo(t, n, t + o, n, o), e.closePath();
|
|
681
|
-
},
|
|
682
|
+
}, Wn = (e) => {
|
|
682
683
|
let t = e.getProps([
|
|
683
684
|
"x",
|
|
684
685
|
"y",
|
|
@@ -689,35 +690,35 @@ var en = [
|
|
|
689
690
|
width: Math.abs(n - i),
|
|
690
691
|
centerY: r
|
|
691
692
|
};
|
|
692
|
-
},
|
|
693
|
-
let i =
|
|
693
|
+
}, Gn = (e, t, n, r) => {
|
|
694
|
+
let i = Wn(t);
|
|
694
695
|
if (!i) return;
|
|
695
|
-
let a = `${n}`, o = e.measureText(a).width +
|
|
696
|
-
if (i.width < o +
|
|
696
|
+
let a = `${n}`, o = e.measureText(a).width + Rn * 2;
|
|
697
|
+
if (i.width < o + Hn * 2) return;
|
|
697
698
|
let s = i.left + i.width / 2;
|
|
698
|
-
|
|
699
|
-
},
|
|
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) => ({
|
|
700
701
|
id: "segmentedBarBadge",
|
|
701
702
|
afterDatasetsDraw(t) {
|
|
702
703
|
let n = {
|
|
703
|
-
background: E
|
|
704
|
-
border: E
|
|
705
|
-
text: E
|
|
704
|
+
background: T(E.pieBadgeBackground, e),
|
|
705
|
+
border: T(E.pieBadgeBorder, e),
|
|
706
|
+
text: T(E.pieBadgeText, e)
|
|
706
707
|
}, { ctx: r } = t;
|
|
707
|
-
r.save(), r.font =
|
|
708
|
+
r.save(), r.font = Vn, r.textAlign = "center", r.textBaseline = "middle", t.data.datasets.forEach((e, i) => {
|
|
708
709
|
let a = t.getDatasetMeta(i)?.data[0], o = e.data[0];
|
|
709
|
-
a && typeof o == "number" && o > 0 &&
|
|
710
|
+
a && typeof o == "number" && o > 0 && Gn(r, a, o, n);
|
|
710
711
|
}), r.restore();
|
|
711
712
|
}
|
|
712
|
-
}),
|
|
713
|
+
}), qn = 40, Jn = 4, Yn = 1, Xn = [
|
|
713
714
|
"mousemove",
|
|
714
715
|
"mouseout",
|
|
715
716
|
"click",
|
|
716
717
|
"touchstart",
|
|
717
718
|
"touchmove"
|
|
718
|
-
],
|
|
719
|
+
], Zn = ({ segments: e, segmentColors: t, colorHostElement: n, skeleton: r = !1, onSegmentClick: i }) => {
|
|
719
720
|
if (e.length === 0) return null;
|
|
720
|
-
let a =
|
|
721
|
+
let a = T("--s-ui-color-surface-primary", n), o = e.reduce((e, t) => e + t.value, 0), s = pt({
|
|
721
722
|
kind: "series",
|
|
722
723
|
skeleton: r,
|
|
723
724
|
colorHostElement: n,
|
|
@@ -734,12 +735,12 @@ var en = [
|
|
|
734
735
|
hoverBackgroundColor: t[n],
|
|
735
736
|
borderColor: a,
|
|
736
737
|
borderWidth: {
|
|
737
|
-
left:
|
|
738
|
-
right:
|
|
738
|
+
left: Yn,
|
|
739
|
+
right: Yn
|
|
739
740
|
},
|
|
740
741
|
borderSkipped: !1,
|
|
741
|
-
borderRadius:
|
|
742
|
-
barThickness:
|
|
742
|
+
borderRadius: Jn,
|
|
743
|
+
barThickness: qn,
|
|
743
744
|
stack: "track"
|
|
744
745
|
}))
|
|
745
746
|
},
|
|
@@ -748,7 +749,7 @@ var en = [
|
|
|
748
749
|
responsive: !0,
|
|
749
750
|
maintainAspectRatio: !1,
|
|
750
751
|
layout: { padding: 0 },
|
|
751
|
-
events: r ? [] :
|
|
752
|
+
events: r ? [] : Xn,
|
|
752
753
|
onHover: s.onHover,
|
|
753
754
|
onClick: s.onClick,
|
|
754
755
|
hover: r ? void 0 : {
|
|
@@ -773,9 +774,9 @@ var en = [
|
|
|
773
774
|
}
|
|
774
775
|
}
|
|
775
776
|
},
|
|
776
|
-
plugins: [...r ? [] : [
|
|
777
|
+
plugins: [...r ? [] : [Kn(n)], ...s.plugins]
|
|
777
778
|
};
|
|
778
|
-
},
|
|
779
|
+
}, Qn = [
|
|
779
780
|
4,
|
|
780
781
|
1,
|
|
781
782
|
2,
|
|
@@ -787,7 +788,7 @@ var en = [
|
|
|
787
788
|
].map((e, t) => ({
|
|
788
789
|
label: `Series ${t + 1}`,
|
|
789
790
|
value: e
|
|
790
|
-
})),
|
|
791
|
+
})), $n = { class: "s-ui-chart-segmented-bar__canvas-wrap" }, er = /* @__PURE__ */ P({
|
|
791
792
|
__name: "SChartSegmentedBar",
|
|
792
793
|
props: {
|
|
793
794
|
segments: { default: () => [] },
|
|
@@ -802,7 +803,7 @@ var en = [
|
|
|
802
803
|
},
|
|
803
804
|
emits: ["segmentClick"],
|
|
804
805
|
setup(e, { expose: t, emit: n }) {
|
|
805
|
-
let r = n, i =
|
|
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) => ({
|
|
806
807
|
segment: e,
|
|
807
808
|
segmentIndex: t
|
|
808
809
|
})).filter(({ segment: e }) => e.value > 0)), u = D(() => l.value.map(({ segment: e }) => e)), d = D(() => l.value.map(({ segmentIndex: e }) => c.value[e] ?? "")), f = D(() => {
|
|
@@ -813,7 +814,7 @@ var en = [
|
|
|
813
814
|
}), p = (e) => {
|
|
814
815
|
let t = l.value[e];
|
|
815
816
|
t && r("segmentClick", t.segmentIndex, t.segment);
|
|
816
|
-
}, m =
|
|
817
|
+
}, m = wt("onSegmentClick"), h = D(() => Zn({
|
|
817
818
|
segments: u.value,
|
|
818
819
|
segmentColors: d.value,
|
|
819
820
|
colorHostElement: a.value,
|
|
@@ -822,11 +823,11 @@ var en = [
|
|
|
822
823
|
})), g = D(() => s.value.map((e, t) => ({
|
|
823
824
|
label: e.label,
|
|
824
825
|
color: c.value[t] ?? ""
|
|
825
|
-
}))), { chartInstance: _ } =
|
|
826
|
+
}))), { chartInstance: _ } = ft({
|
|
826
827
|
canvasRef: o,
|
|
827
828
|
config: h,
|
|
828
829
|
enabled: D(() => e.loading || u.value.length > 0)
|
|
829
|
-
}), { exportImage: v, handleLegendItemHover: y } =
|
|
830
|
+
}), { exportImage: v, handleLegendItemHover: y } = mt({
|
|
830
831
|
chartInstance: _,
|
|
831
832
|
canvasRef: o,
|
|
832
833
|
colorHostElement: a
|
|
@@ -838,7 +839,7 @@ var en = [
|
|
|
838
839
|
ref: a,
|
|
839
840
|
class: F(["s-ui-chart-segmented-bar", { "s-ui-chart-segmented-bar--skeleton": e.loading }]),
|
|
840
841
|
"data-qa": "ui:chart-segmented-bar"
|
|
841
|
-
}, [j("div",
|
|
842
|
+
}, [j("div", $n, [zt(H(dt), {
|
|
842
843
|
loading: e.loading,
|
|
843
844
|
type: H(i).CARTESIAN
|
|
844
845
|
}, {
|
|
@@ -848,7 +849,7 @@ var en = [
|
|
|
848
849
|
class: "s-ui-chart-segmented-bar__canvas"
|
|
849
850
|
}, null, 512)]),
|
|
850
851
|
_: 1
|
|
851
|
-
}, 8, ["loading", "type"])]), e.showLegend && g.value.length ? (L(), O(H(
|
|
852
|
+
}, 8, ["loading", "type"])]), e.showLegend && g.value.length ? (L(), O(H(ut), {
|
|
852
853
|
key: 0,
|
|
853
854
|
items: g.value,
|
|
854
855
|
disabled: e.loading,
|
|
@@ -860,22 +861,22 @@ var en = [
|
|
|
860
861
|
"interactive"
|
|
861
862
|
])) : k("", !0)], 2));
|
|
862
863
|
}
|
|
863
|
-
}),
|
|
864
|
+
}), tr = {
|
|
864
865
|
key: 0,
|
|
865
866
|
class: "s-ui-chart-widget__header"
|
|
866
|
-
},
|
|
867
|
+
}, nr = {
|
|
867
868
|
key: 0,
|
|
868
869
|
class: "s-ui-chart-widget__title-skeleton",
|
|
869
870
|
"aria-hidden": "true"
|
|
870
|
-
},
|
|
871
|
+
}, rr = {
|
|
871
872
|
key: 1,
|
|
872
873
|
class: "s-ui-chart-widget__title s-ui-typography-label-16-medium"
|
|
873
|
-
},
|
|
874
|
+
}, ir = { class: "s-ui-chart-widget__controls" }, ar = {
|
|
874
875
|
key: 1,
|
|
875
876
|
class: "s-ui-chart-widget__content"
|
|
876
|
-
},
|
|
877
|
+
}, or = /* @__PURE__ */ P({
|
|
877
878
|
__name: "SChartWidget",
|
|
878
|
-
props: /*@__PURE__*/
|
|
879
|
+
props: /*@__PURE__*/ Bt({
|
|
879
880
|
title: { default: "" },
|
|
880
881
|
collapsible: {
|
|
881
882
|
type: Boolean,
|
|
@@ -898,11 +899,11 @@ var en = [
|
|
|
898
899
|
}),
|
|
899
900
|
emits: ["update:collapsed"],
|
|
900
901
|
setup(e) {
|
|
901
|
-
let t =
|
|
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"));
|
|
902
903
|
return (n, r) => (L(), A("div", {
|
|
903
904
|
class: F(["s-ui-chart-widget", { "s-ui-chart-widget--skeleton": e.loading }]),
|
|
904
905
|
"data-qa": "ui:chart-widget"
|
|
905
|
-
}, [i.value ? (L(), A("div",
|
|
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), {
|
|
906
907
|
key: 0,
|
|
907
908
|
appearance: H(C).OUTLINED,
|
|
908
909
|
variant: H(S).NEUTRAL,
|
|
@@ -918,8 +919,8 @@ var en = [
|
|
|
918
919
|
"icon",
|
|
919
920
|
"aria-label",
|
|
920
921
|
"aria-expanded"
|
|
921
|
-
])) : k("", !0)])])) : k("", !0), a.value ? (L(), A("div",
|
|
922
|
+
])) : k("", !0)])])) : k("", !0), a.value ? (L(), A("div", ar, [z(n.$slots, "default")])) : k("", !0)], 2));
|
|
922
923
|
}
|
|
923
924
|
});
|
|
924
925
|
//#endregion
|
|
925
|
-
export {
|
|
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 };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./useChartInteractivity-CXSdHPOw.cjs"),t=require("./resolveSeriesPaletteColor-B5qoBbXN.cjs");var n=(n,r,i,a=!1)=>t.t(n,r,i,a,{palette:e.h,paletteFallback:e.g.barStackedPalette1,skeletonPalette:e.m,skeletonFallback:e.g.barSkeletonPalette1});Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { g as e, h as t, m as n } from "./useChartInteractivity-BATdT86l.js";
|
|
2
|
+
import { t as r } from "./resolveSeriesPaletteColor-DcLSyk-D.js";
|
|
3
|
+
//#region src/utils/chart/bar/resolveBarStackedSeriesColor.ts
|
|
4
|
+
var i = (i, a, o, s = !1) => r(i, a, o, s, {
|
|
5
|
+
palette: t,
|
|
6
|
+
paletteFallback: e.barStackedPalette1,
|
|
7
|
+
skeletonPalette: n,
|
|
8
|
+
skeletonFallback: e.barSkeletonPalette1
|
|
9
|
+
});
|
|
10
|
+
//#endregion
|
|
11
|
+
export { i as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./useChartInteractivity-CXSdHPOw.cjs");var t=(t,n)=>t.startsWith(`--`)?e.S(t,n):t,n=(n,r,i,a,o)=>{if(i)return t(i,r);let s=a?o.skeletonPalette:o.palette,c=a?o.skeletonFallback:o.paletteFallback;return e.S(s[n%s.length]??c,r)};Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return n}});
|
package/dist/{resolveSeriesPaletteColor-BdvGT-PI.js → resolveSeriesPaletteColor-DcLSyk-D.js}
RENAMED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { S as e } from "./useChartInteractivity-BATdT86l.js";
|
|
2
2
|
//#region src/utils/chart/core/resolveSeriesPaletteColor.ts
|
|
3
3
|
var t = (t, n) => t.startsWith("--") ? e(t, n) : t, n = (n, r, i, a, o) => {
|
|
4
4
|
if (i) return t(i, r);
|