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