@shtabapp/ui-kit 1.46.0 → 1.48.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 +20 -0
- package/dist/{SAvatar-q1HSZPqy.js → SAvatar-BK8cEzGY.js} +1 -1
- package/dist/{SAvatar-D5SreJLe.cjs → SAvatar-DTG0odWX.cjs} +1 -1
- package/dist/{SAvatarGroup-CdVjv8sb.cjs → SAvatarGroup-CaqcKGIq.cjs} +1 -1
- package/dist/{SAvatarGroup-By-5Ub6i.js → SAvatarGroup-MuTqzfYS.js} +1 -1
- package/dist/{SChartBurnup-BhCS06uF.cjs → SChartBurnup-C4x5kik6.cjs} +1 -1
- package/dist/{SChartBurnup-CG239MJx.js → SChartBurnup-Dxi0MBwo.js} +2 -2
- package/dist/{SChartHorizontalBar-DnKbf_9E.cjs → SChartHorizontalBar-4H-lgfO4.cjs} +1 -1
- package/dist/{SChartHorizontalBar-DqTZ4H-9.js → SChartHorizontalBar-XNasKzaO.js} +1 -1
- package/dist/{SChartLine-CEnRbnVo.cjs → SChartLine-BF6Klm4j.cjs} +1 -1
- package/dist/{SChartLine-CQhbtAjJ.js → SChartLine-DSQaezYq.js} +1 -1
- package/dist/{SChartMultiLine-CPEglksk.js → SChartMultiLine-CrMmphFe.js} +3 -3
- package/dist/{SChartMultiLine-B6GldTYv.cjs → SChartMultiLine-Ddvfmf__.cjs} +1 -1
- package/dist/{SChartPie-DXHCXNEs.js → SChartPie-bN8rY-y5.js} +2 -2
- package/dist/{SChartPie-CQyENNM6.cjs → SChartPie-namQTFla.cjs} +1 -1
- package/dist/{SChartProgress-BwDuidgB.js → SChartProgress-BtwqE4xL.js} +1 -1
- package/dist/{SChartProgress-CMcM6yvT.cjs → SChartProgress-DsFHotRv.cjs} +1 -1
- package/dist/{SChartSkeletonHost-DSFyP_DN.js → SChartSkeletonHost-BT96eWSF.js} +70 -45
- package/dist/SChartSkeletonHost-Dt5EjQr5.cjs +1 -0
- package/dist/{SChartStackedArea-DHSamqau.cjs → SChartStackedArea-BLHs3sSH.cjs} +1 -1
- package/dist/{SChartStackedArea-BR7W44h6.js → SChartStackedArea-BxUex_Di.js} +4 -4
- package/dist/{SChartStackedBar-BbYna5KB.js → SChartStackedBar-BJ9LOgSP.js} +40 -35
- package/dist/SChartStackedBar-CWNyvUj9.cjs +1 -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/buildWorkTimeLegendItems-ChGHTwbn.js +361 -0
- package/dist/buildWorkTimeLegendItems-DjhLKbAP.cjs +1 -0
- package/dist/components/SCalendar/index.d.ts +12 -0
- package/dist/components/SCalendar/index.d.ts.map +1 -0
- package/dist/components/SCalendar/utils/buildWorkTimeLegendItems.d.ts +4 -0
- package/dist/components/SCalendar/utils/buildWorkTimeLegendItems.d.ts.map +1 -0
- package/dist/components/SCalendar/utils/calendar.const.d.ts +4 -0
- package/dist/components/SCalendar/utils/calendar.const.d.ts.map +1 -0
- package/dist/components/SCalendar/utils/calendar.types.d.ts +8 -0
- package/dist/components/SCalendar/utils/calendar.types.d.ts.map +1 -0
- package/dist/components/SCalendar/utils/demoCalendarMonthWeeks.d.ts +4 -0
- package/dist/components/SCalendar/utils/demoCalendarMonthWeeks.d.ts.map +1 -0
- package/dist/components/SCalendar/utils/demoCalendarWeekDays.d.ts +10 -0
- package/dist/components/SCalendar/utils/demoCalendarWeekDays.d.ts.map +1 -0
- package/dist/components/SCalendar/utils/demoDayTimelineIntervals.d.ts +4 -0
- package/dist/components/SCalendar/utils/demoDayTimelineIntervals.d.ts.map +1 -0
- package/dist/components/SCalendar/utils/formatDurationHM.d.ts +2 -0
- package/dist/components/SCalendar/utils/formatDurationHM.d.ts.map +1 -0
- package/dist/components/SCalendarMonth/SCalendarMonth.types.d.ts +45 -0
- package/dist/components/SCalendarMonth/SCalendarMonth.types.d.ts.map +1 -0
- package/dist/components/SCalendarMonth/SCalendarMonth.vue.d.ts +21 -0
- package/dist/components/SCalendarMonth/SCalendarMonth.vue.d.ts.map +1 -0
- package/dist/components/SCalendarMonth/index.d.ts +3 -0
- package/dist/components/SCalendarMonth/index.d.ts.map +1 -0
- package/dist/components/SCalendarWeekGrid/SCalendarWeekGrid.types.d.ts +31 -0
- package/dist/components/SCalendarWeekGrid/SCalendarWeekGrid.types.d.ts.map +1 -0
- package/dist/components/SCalendarWeekGrid/SCalendarWeekGrid.vue.d.ts +18 -0
- package/dist/components/SCalendarWeekGrid/SCalendarWeekGrid.vue.d.ts.map +1 -0
- package/dist/components/SCalendarWeekGrid/index.d.ts +4 -0
- package/dist/components/SCalendarWeekGrid/index.d.ts.map +1 -0
- package/dist/components/SChartStackedBar/SChartStackedBar.vue.d.ts +3 -1
- 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/SDayTimeline/SDayTimeline.types.d.ts +43 -0
- package/dist/components/SDayTimeline/SDayTimeline.types.d.ts.map +1 -0
- package/dist/components/SDayTimeline/SDayTimeline.vue.d.ts +19 -0
- package/dist/components/SDayTimeline/SDayTimeline.vue.d.ts.map +1 -0
- package/dist/components/SDayTimeline/index.d.ts +4 -0
- package/dist/components/SDayTimeline/index.d.ts.map +1 -0
- 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/components/SList/utils/resolveListItemFields.d.ts +1 -1
- package/dist/components/SList/utils/resolveListItemFields.d.ts.map +1 -1
- package/dist/composables/useFlatTreeList.d.ts +4 -1
- package/dist/composables/useFlatTreeList.d.ts.map +1 -1
- package/dist/{createChartCrosshairPlugin-q3U4ePnf.js → createChartCrosshairPlugin-DwFOncWI.js} +1 -1
- package/dist/{createChartCrosshairPlugin-DdLyEWI0.cjs → createChartCrosshairPlugin-ZZwKUQm8.cjs} +1 -1
- package/dist/entries/avatar-group.cjs +1 -1
- package/dist/entries/avatar-group.js +1 -1
- package/dist/entries/avatar.cjs +1 -1
- package/dist/entries/avatar.js +1 -1
- package/dist/entries/calendar.cjs +1 -0
- package/dist/entries/calendar.d.ts +3 -0
- package/dist/entries/calendar.d.ts.map +1 -0
- package/dist/entries/calendar.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/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.d.ts +4 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +148 -147
- package/dist/{resolveSeriesPaletteColor-fuhGbjFO.js → resolveSeriesPaletteColor-BdvGT-PI.js} +1 -1
- package/dist/{resolveSeriesPaletteColor-YACKW1NO.cjs → resolveSeriesPaletteColor-hI4YDdUg.cjs} +1 -1
- package/dist/{resolveStackedChartContext-BiIGZ2or.js → resolveStackedChartContext-DFre3tt0.js} +1 -1
- package/dist/{resolveStackedChartContext-Bp75eU_I.cjs → resolveStackedChartContext-Dsxhhhel.cjs} +1 -1
- package/dist/uikit-components.css +1 -1
- package/dist/utils/chart/core/chartInteractivity.d.ts +17 -4
- package/dist/utils/chart/core/chartInteractivity.d.ts.map +1 -1
- package/package.json +7 -2
- package/dist/SChartSkeletonHost-BlIYGj-7.cjs +0 -1
- package/dist/SChartStackedBar-B3HcO4UQ.cjs +0 -1
- package/dist/SList-BtfUntkw.js +0 -437
- package/dist/SList-fZQdPkFG.cjs +0 -1
package/dist/index.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { n as e, r as t, t as n } from "./SBadge-BDxQJh6c.js";
|
|
2
|
-
import { a as r, i, n as a, o, r as s, t as c } from "./SAvatar-
|
|
3
|
-
import { i as l, n as u, r as d, t as f } from "./SColorPicker-
|
|
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-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
|
-
import { n as te, t as ne } from "./SAvatarGroup-
|
|
6
|
+
import { n as te, t as ne } from "./SAvatarGroup-MuTqzfYS.js";
|
|
7
7
|
import { n as x, r as S, t as C } from "./SButton.types-CpdHQtyx.js";
|
|
8
8
|
import { t as w } from "./SButton-DnU_XZ1C.js";
|
|
9
9
|
import { a as re, n as ie, o as ae, r as oe, t as se } from "./useSelectionGroup-cKj38lEN.js";
|
|
@@ -19,36 +19,37 @@ 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 { a as at, i as ot, n as st, r as ct, t as lt, v as T, w as E } from "./SChartSkeletonHost-
|
|
34
|
-
import { t as ut } from "./SChartLine-
|
|
35
|
-
import { t as dt } from "./resolveSeriesPaletteColor-
|
|
36
|
-
import { t as ft } from "./SChartStackedArea-
|
|
37
|
-
import { t as pt } from "./SChartStackedBar-
|
|
38
|
-
import { t as mt } from "./SChartHorizontalBar-
|
|
39
|
-
import { t as ht } from "./SChartPie-
|
|
40
|
-
import { t as gt } from "./SChartMultiLine-
|
|
41
|
-
import { t as _t } from "./SChartBurnup-
|
|
42
|
-
import { t as vt } from "./SChartProgress-
|
|
43
|
-
import { t as
|
|
44
|
-
import { t as
|
|
45
|
-
import {
|
|
46
|
-
import {
|
|
47
|
-
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-BT96eWSF.js";
|
|
34
|
+
import { t as ut } from "./SChartLine-DSQaezYq.js";
|
|
35
|
+
import { t as dt } from "./resolveSeriesPaletteColor-BdvGT-PI.js";
|
|
36
|
+
import { t as ft } from "./SChartStackedArea-BxUex_Di.js";
|
|
37
|
+
import { t as pt } from "./SChartStackedBar-BJ9LOgSP.js";
|
|
38
|
+
import { t as mt } from "./SChartHorizontalBar-XNasKzaO.js";
|
|
39
|
+
import { t as ht } from "./SChartPie-bN8rY-y5.js";
|
|
40
|
+
import { t as gt } from "./SChartMultiLine-CrMmphFe.js";
|
|
41
|
+
import { t as _t } from "./SChartBurnup-Dxi0MBwo.js";
|
|
42
|
+
import { t as vt } from "./SChartProgress-BtwqE4xL.js";
|
|
43
|
+
import { t as D } from "./SChartLegend-oZoF8XK7.js";
|
|
44
|
+
import { t as yt } from "./useHasListener-RSjlUyqH.js";
|
|
45
|
+
import { a as bt, c as xt, i as St, l as Ct, n as wt, o as Tt, r as Et, s as Dt, t as Ot, u as kt } from "./buildWorkTimeLegendItems-ChGHTwbn.js";
|
|
46
|
+
import { Fragment as At, Teleport as jt, computed as O, createBlock as k, createCommentVNode as A, createElementBlock as j, createElementVNode as M, createSlots as N, createTextVNode as P, createVNode as Mt, defineComponent as F, mergeModels as Nt, mergeProps as Pt, normalizeClass as I, normalizeStyle as L, onMounted as Ft, openBlock as R, ref as z, renderList as It, renderSlot as B, resolveDynamicComponent as Lt, shallowRef as Rt, toDisplayString as V, unref as H, useModel as zt, useSlots as U, useTemplateRef as Bt, watch as Vt, withCtx as W } from "vue";
|
|
47
|
+
import { ESIconName as G, SIcon as Ht, createUiKit as Ut, setUiKitLocale as Wt, uiKitLocaleEn as Gt, uiKitLocaleRu as Kt, useUiKitI18n as qt, useUiKitI18n as Jt } from "@shtabapp/ui-kit-primitives";
|
|
48
|
+
import { useResizeObserver as Yt } from "@vueuse/core";
|
|
48
49
|
export * from "@shtabapp/ui-kit-primitives";
|
|
49
50
|
export * from "@shtabapp/ui-kit-tokens";
|
|
50
51
|
//#region src/utils/chart/segmentedBar/resolveSegmentedBarSegmentColor.ts
|
|
51
|
-
var
|
|
52
|
+
var Xt = [
|
|
52
53
|
"--s-ui-chart-segmented-bar-palette-1",
|
|
53
54
|
"--s-ui-chart-segmented-bar-palette-2",
|
|
54
55
|
"--s-ui-chart-segmented-bar-palette-3",
|
|
@@ -57,7 +58,7 @@ var Bt = [
|
|
|
57
58
|
"--s-ui-chart-segmented-bar-palette-6",
|
|
58
59
|
"--s-ui-chart-segmented-bar-palette-7",
|
|
59
60
|
"--s-ui-chart-segmented-bar-palette-8"
|
|
60
|
-
],
|
|
61
|
+
], Zt = [
|
|
61
62
|
"--s-ui-chart-segmented-bar-skeleton-palette-1",
|
|
62
63
|
"--s-ui-chart-segmented-bar-skeleton-palette-2",
|
|
63
64
|
"--s-ui-chart-segmented-bar-skeleton-palette-3",
|
|
@@ -66,11 +67,11 @@ var Bt = [
|
|
|
66
67
|
"--s-ui-chart-segmented-bar-skeleton-palette-6",
|
|
67
68
|
"--s-ui-chart-segmented-bar-skeleton-palette-7",
|
|
68
69
|
"--s-ui-chart-segmented-bar-skeleton-palette-8"
|
|
69
|
-
],
|
|
70
|
-
palette:
|
|
71
|
-
paletteFallback:
|
|
72
|
-
skeletonPalette:
|
|
73
|
-
skeletonFallback:
|
|
70
|
+
], Qt = (e, t, n, r = !1) => dt(e, t, n, r, {
|
|
71
|
+
palette: Xt,
|
|
72
|
+
paletteFallback: Xt[0],
|
|
73
|
+
skeletonPalette: Zt,
|
|
74
|
+
skeletonFallback: Zt[0]
|
|
74
75
|
}), K = /* @__PURE__ */ function(e) {
|
|
75
76
|
return e.INFO_ACCENT = "info-accent", e.INFO_NORMAL = "info-normal", e.SUCCESS = "success", e.WARNING = "warning", e.DANGER = "danger", e.BILLING = "billing", e;
|
|
76
77
|
}({}), q = /* @__PURE__ */ function(e) {
|
|
@@ -79,32 +80,32 @@ var Bt = [
|
|
|
79
80
|
return e.ICON = "icon", e.AVATAR = "avatar", e;
|
|
80
81
|
}({}), Y = /* @__PURE__ */ function(e) {
|
|
81
82
|
return e.BANNER = "banner", e.TOAST = "toast", e;
|
|
82
|
-
}({}),
|
|
83
|
+
}({}), $t = {
|
|
83
84
|
[K.INFO_ACCENT]: G.infoCircle,
|
|
84
85
|
[K.INFO_NORMAL]: G.infoCircle,
|
|
85
86
|
[K.SUCCESS]: G.checkCircle,
|
|
86
87
|
[K.WARNING]: G.alertCircle,
|
|
87
88
|
[K.DANGER]: G.dangerCircleFill,
|
|
88
89
|
[K.BILLING]: G.infoCircle
|
|
89
|
-
},
|
|
90
|
+
}, en = (e, t) => t || $t[e], tn = ["role"], nn = { class: "s-ui-notification__body" }, rn = {
|
|
90
91
|
key: 0,
|
|
91
92
|
class: "s-ui-notification__leftside"
|
|
92
|
-
},
|
|
93
|
+
}, an = {
|
|
93
94
|
key: 0,
|
|
94
95
|
class: "s-ui-notification__icon"
|
|
95
|
-
},
|
|
96
|
+
}, on = { class: "s-ui-notification__content" }, sn = { class: "s-ui-notification__title-row" }, cn = { class: "s-ui-notification__title s-ui-typography-label-14-medium" }, ln = {
|
|
96
97
|
key: 0,
|
|
97
98
|
class: "s-ui-notification__description-block"
|
|
98
|
-
},
|
|
99
|
+
}, un = {
|
|
99
100
|
key: 0,
|
|
100
101
|
class: "s-ui-notification__description s-ui-typography-label-12-medium"
|
|
101
|
-
},
|
|
102
|
+
}, dn = {
|
|
102
103
|
key: 1,
|
|
103
104
|
class: "s-ui-notification__actions-stack"
|
|
104
|
-
},
|
|
105
|
+
}, fn = {
|
|
105
106
|
key: 1,
|
|
106
107
|
class: "s-ui-notification__actions-row"
|
|
107
|
-
},
|
|
108
|
+
}, pn = /* @__PURE__ */ F({
|
|
108
109
|
__name: "SNotification",
|
|
109
110
|
props: {
|
|
110
111
|
type: { default: () => K.INFO_ACCENT },
|
|
@@ -137,14 +138,14 @@ var Bt = [
|
|
|
137
138
|
"secondaryAction"
|
|
138
139
|
],
|
|
139
140
|
setup(e, { emit: t }) {
|
|
140
|
-
let n = t, r = U(), i =
|
|
141
|
+
let n = t, r = U(), i = O(() => [
|
|
141
142
|
`s-ui-notification--type-${e.type}`,
|
|
142
143
|
`s-ui-notification--layout-${e.layout}`,
|
|
143
144
|
`s-ui-notification--surface-${e.surface}`
|
|
144
|
-
]), a =
|
|
145
|
+
]), a = O(() => {
|
|
145
146
|
let t = {};
|
|
146
147
|
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;
|
|
147
|
-
}), s =
|
|
148
|
+
}), s = O(() => e.type === K.DANGER ? "alert" : "status"), l = O(() => en(e.type, e.icon)), u = O(() => e.type === K.BILLING), d = O(() => !!(e.leftside === J.AVATAR && e.avatar || e.leftside === J.ICON)), f = O(() => !!(e.description || e.linkText || r.description)), p = O(() => e.showPrimaryButton && (e.primaryButtonText || e.secondaryButtonText)), m = O(() => e.showPrimaryButton && e.primaryButtonText || e.closable), h = O(() => e.type === K.BILLING ? C.MAJOR : C.OUTLINED), g = O(() => e.type === K.BILLING ? S.BILLING : S.MAIN), _ = () => {
|
|
148
149
|
n("close");
|
|
149
150
|
}, v = () => {
|
|
150
151
|
n("linkClick");
|
|
@@ -153,16 +154,16 @@ var Bt = [
|
|
|
153
154
|
}, b = () => {
|
|
154
155
|
n("secondaryAction");
|
|
155
156
|
};
|
|
156
|
-
return (t, n) => (R(),
|
|
157
|
+
return (t, n) => (R(), j("div", {
|
|
157
158
|
class: I(["s-ui-notification", i.value]),
|
|
158
159
|
style: L(a.value),
|
|
159
160
|
role: s.value
|
|
160
|
-
}, [
|
|
161
|
-
d.value ? (R(),
|
|
161
|
+
}, [M("div", nn, [
|
|
162
|
+
d.value ? (R(), j("div", rn, [e.leftside === H(J).ICON ? (R(), j("div", an, [Mt(H(Ht), {
|
|
162
163
|
name: l.value,
|
|
163
164
|
size: 16,
|
|
164
165
|
billing: u.value
|
|
165
|
-
}, null, 8, ["name", "billing"])])) : e.leftside === H(J).AVATAR && e.avatar ? (R(),
|
|
166
|
+
}, null, 8, ["name", "billing"])])) : e.leftside === H(J).AVATAR && e.avatar ? (R(), k(H(c), {
|
|
166
167
|
key: 1,
|
|
167
168
|
name: e.avatar.name,
|
|
168
169
|
src: e.avatar.src,
|
|
@@ -174,9 +175,9 @@ var Bt = [
|
|
|
174
175
|
"src",
|
|
175
176
|
"badge",
|
|
176
177
|
"size"
|
|
177
|
-
])) :
|
|
178
|
-
|
|
179
|
-
|
|
178
|
+
])) : A("", !0)])) : A("", !0),
|
|
179
|
+
M("div", on, [
|
|
180
|
+
M("div", sn, [M("span", cn, [B(t.$slots, "title", {}, () => [P(V(e.title), 1)])]), e.layout === H(q).VERTICAL && e.closable ? (R(), k(H(w), {
|
|
180
181
|
key: 0,
|
|
181
182
|
class: "s-ui-notification__close",
|
|
182
183
|
appearance: H(C).BARE,
|
|
@@ -190,8 +191,8 @@ var Bt = [
|
|
|
190
191
|
"variant",
|
|
191
192
|
"size",
|
|
192
193
|
"aria-label"
|
|
193
|
-
])) :
|
|
194
|
-
f.value ? (R(),
|
|
194
|
+
])) : A("", !0)]),
|
|
195
|
+
f.value ? (R(), j("div", ln, [e.description || H(r).description ? (R(), j("span", un, [B(t.$slots, "description", {}, () => [P(V(e.description), 1)])])) : A("", !0), e.linkText ? (R(), k(H(w), {
|
|
195
196
|
key: 1,
|
|
196
197
|
class: "s-ui-notification__link",
|
|
197
198
|
appearance: H(C).BARE,
|
|
@@ -199,55 +200,55 @@ var Bt = [
|
|
|
199
200
|
size: H(x).SMALL,
|
|
200
201
|
onClick: v
|
|
201
202
|
}, {
|
|
202
|
-
default: W(() => [
|
|
203
|
+
default: W(() => [P(V(e.linkText), 1)]),
|
|
203
204
|
_: 1
|
|
204
205
|
}, 8, [
|
|
205
206
|
"appearance",
|
|
206
207
|
"variant",
|
|
207
208
|
"size"
|
|
208
|
-
])) :
|
|
209
|
-
e.layout === H(q).VERTICAL && p.value ? (R(),
|
|
209
|
+
])) : A("", !0)])) : A("", !0),
|
|
210
|
+
e.layout === H(q).VERTICAL && p.value ? (R(), j("div", dn, [e.showPrimaryButton && e.primaryButtonText ? (R(), k(H(w), {
|
|
210
211
|
key: 0,
|
|
211
212
|
appearance: h.value,
|
|
212
213
|
variant: g.value,
|
|
213
214
|
size: H(x).SMALL,
|
|
214
215
|
onClick: y
|
|
215
216
|
}, {
|
|
216
|
-
default: W(() => [
|
|
217
|
+
default: W(() => [P(V(e.primaryButtonText), 1)]),
|
|
217
218
|
_: 1
|
|
218
219
|
}, 8, [
|
|
219
220
|
"appearance",
|
|
220
221
|
"variant",
|
|
221
222
|
"size"
|
|
222
|
-
])) :
|
|
223
|
+
])) : A("", !0), e.showPrimaryButton && e.secondaryButtonText ? (R(), k(H(w), {
|
|
223
224
|
key: 1,
|
|
224
225
|
appearance: H(C).BARE,
|
|
225
226
|
variant: H(S).NEUTRAL,
|
|
226
227
|
size: H(x).SMALL,
|
|
227
228
|
onClick: b
|
|
228
229
|
}, {
|
|
229
|
-
default: W(() => [
|
|
230
|
+
default: W(() => [P(V(e.secondaryButtonText), 1)]),
|
|
230
231
|
_: 1
|
|
231
232
|
}, 8, [
|
|
232
233
|
"appearance",
|
|
233
234
|
"variant",
|
|
234
235
|
"size"
|
|
235
|
-
])) :
|
|
236
|
+
])) : A("", !0)])) : A("", !0)
|
|
236
237
|
]),
|
|
237
|
-
e.layout === H(q).HORIZONTAL && m.value ? (R(),
|
|
238
|
+
e.layout === H(q).HORIZONTAL && m.value ? (R(), j("div", fn, [e.showPrimaryButton && e.primaryButtonText ? (R(), k(H(w), {
|
|
238
239
|
key: 0,
|
|
239
240
|
appearance: h.value,
|
|
240
241
|
variant: g.value,
|
|
241
242
|
size: H(x).SMALL,
|
|
242
243
|
onClick: y
|
|
243
244
|
}, {
|
|
244
|
-
default: W(() => [
|
|
245
|
+
default: W(() => [P(V(e.primaryButtonText), 1)]),
|
|
245
246
|
_: 1
|
|
246
247
|
}, 8, [
|
|
247
248
|
"appearance",
|
|
248
249
|
"variant",
|
|
249
250
|
"size"
|
|
250
|
-
])) :
|
|
251
|
+
])) : A("", !0), e.layout === H(q).HORIZONTAL && e.closable ? (R(), k(H(w), {
|
|
251
252
|
key: 1,
|
|
252
253
|
class: "s-ui-notification__close",
|
|
253
254
|
appearance: H(C).BARE,
|
|
@@ -261,10 +262,10 @@ var Bt = [
|
|
|
261
262
|
"variant",
|
|
262
263
|
"size",
|
|
263
264
|
"aria-label"
|
|
264
|
-
])) :
|
|
265
|
-
])], 14,
|
|
265
|
+
])) : A("", !0)])) : A("", !0)
|
|
266
|
+
])], 14, tn));
|
|
266
267
|
}
|
|
267
|
-
}),
|
|
268
|
+
}), mn = /* @__PURE__ */ F({
|
|
268
269
|
__name: "SBanner",
|
|
269
270
|
props: {
|
|
270
271
|
type: { default: () => K.INFO_ACCENT },
|
|
@@ -296,7 +297,7 @@ var Bt = [
|
|
|
296
297
|
],
|
|
297
298
|
setup(e, { emit: t }) {
|
|
298
299
|
let n = t, r = U();
|
|
299
|
-
return (t, i) => (R(),
|
|
300
|
+
return (t, i) => (R(), k(pn, {
|
|
300
301
|
class: "s-ui-banner",
|
|
301
302
|
"data-qa": "ui:banner",
|
|
302
303
|
type: e.type,
|
|
@@ -318,7 +319,7 @@ var Bt = [
|
|
|
318
319
|
onLinkClick: i[1] ||= (e) => n("linkClick"),
|
|
319
320
|
onPrimaryAction: i[2] ||= (e) => n("primaryAction"),
|
|
320
321
|
onSecondaryAction: i[3] ||= (e) => n("secondaryAction")
|
|
321
|
-
},
|
|
322
|
+
}, N({ _: 2 }, [H(r).title ? {
|
|
322
323
|
name: "title",
|
|
323
324
|
fn: W(() => [B(t.$slots, "title")]),
|
|
324
325
|
key: "0"
|
|
@@ -344,7 +345,7 @@ var Bt = [
|
|
|
344
345
|
"maxWidth"
|
|
345
346
|
]));
|
|
346
347
|
}
|
|
347
|
-
}),
|
|
348
|
+
}), hn = /* @__PURE__ */ F({
|
|
348
349
|
__name: "SToast",
|
|
349
350
|
props: {
|
|
350
351
|
type: { default: () => K.INFO_ACCENT },
|
|
@@ -375,8 +376,8 @@ var Bt = [
|
|
|
375
376
|
"secondaryAction"
|
|
376
377
|
],
|
|
377
378
|
setup(e, { emit: t }) {
|
|
378
|
-
let n = t, r = U(), i =
|
|
379
|
-
return (t, a) => (R(),
|
|
379
|
+
let n = t, r = U(), i = O(() => e.width ?? 360);
|
|
380
|
+
return (t, a) => (R(), k(pn, {
|
|
380
381
|
class: "s-ui-toast",
|
|
381
382
|
"data-qa": "ui:toast",
|
|
382
383
|
type: e.type,
|
|
@@ -398,7 +399,7 @@ var Bt = [
|
|
|
398
399
|
onLinkClick: a[1] ||= (e) => n("linkClick"),
|
|
399
400
|
onPrimaryAction: a[2] ||= (e) => n("primaryAction"),
|
|
400
401
|
onSecondaryAction: a[3] ||= (e) => n("secondaryAction")
|
|
401
|
-
},
|
|
402
|
+
}, N({ _: 2 }, [H(r).title ? {
|
|
402
403
|
name: "title",
|
|
403
404
|
fn: W(() => [B(t.$slots, "title")]),
|
|
404
405
|
key: "0"
|
|
@@ -424,13 +425,13 @@ var Bt = [
|
|
|
424
425
|
"width"
|
|
425
426
|
]));
|
|
426
427
|
}
|
|
427
|
-
}),
|
|
428
|
+
}), gn = .05, _n = [
|
|
428
429
|
"data-mounted",
|
|
429
430
|
"data-front",
|
|
430
431
|
"data-expanded",
|
|
431
432
|
"data-removed",
|
|
432
433
|
"data-visible"
|
|
433
|
-
],
|
|
434
|
+
], vn = /* @__PURE__ */ F({
|
|
434
435
|
__name: "SToastProviderToast",
|
|
435
436
|
props: {
|
|
436
437
|
index: {},
|
|
@@ -443,7 +444,7 @@ var Bt = [
|
|
|
443
444
|
},
|
|
444
445
|
emits: ["heightChange"],
|
|
445
446
|
setup(e, { emit: t }) {
|
|
446
|
-
let n = t, r = z(null), i = z(0), a = z(!1), o =
|
|
447
|
+
let n = t, r = z(null), i = z(0), a = z(!1), o = O(() => e.index === 0), s = O(() => 1 - e.index * gn), c = O(() => ({
|
|
447
448
|
"--s-ui-toast-provider-toasts-before": String(e.index),
|
|
448
449
|
"--s-ui-toast-provider-lift-amount": `${e.stackPeek * -1}px`,
|
|
449
450
|
"--s-ui-toast-provider-front-toast-height": `${e.frontToastHeight}px`,
|
|
@@ -452,16 +453,16 @@ var Bt = [
|
|
|
452
453
|
"--s-ui-toast-provider-stack-scale": String(s.value),
|
|
453
454
|
zIndex: String(1e3 - e.index)
|
|
454
455
|
}));
|
|
455
|
-
return
|
|
456
|
+
return Yt(r, (e) => {
|
|
456
457
|
let t = e[0]?.contentRect.height ?? 0;
|
|
457
458
|
t !== i.value && (i.value = t, n("heightChange", t));
|
|
458
|
-
}),
|
|
459
|
+
}), Ft(() => {
|
|
459
460
|
requestAnimationFrame(() => {
|
|
460
461
|
requestAnimationFrame(() => {
|
|
461
462
|
a.value = !0;
|
|
462
463
|
});
|
|
463
464
|
});
|
|
464
|
-
}), (t, n) => (R(),
|
|
465
|
+
}), (t, n) => (R(), j("div", {
|
|
465
466
|
class: "s-ui-toast-provider__toast",
|
|
466
467
|
"data-mounted": a.value,
|
|
467
468
|
"data-front": o.value,
|
|
@@ -469,54 +470,54 @@ var Bt = [
|
|
|
469
470
|
"data-removed": e.removed,
|
|
470
471
|
"data-visible": e.visible,
|
|
471
472
|
style: L(c.value)
|
|
472
|
-
}, [
|
|
473
|
+
}, [M("div", {
|
|
473
474
|
ref_key: "contentRef",
|
|
474
475
|
ref: r,
|
|
475
476
|
class: "s-ui-toast-provider__toast-content"
|
|
476
|
-
}, [B(t.$slots, "default")], 512)], 12,
|
|
477
|
+
}, [B(t.$slots, "default")], 512)], 12, _n));
|
|
477
478
|
}
|
|
478
|
-
}),
|
|
479
|
-
let n =
|
|
480
|
-
return n > 1e4 ?
|
|
481
|
-
}, X =
|
|
479
|
+
}), yn = 4e3, bn = 1e4, xn = 50, Sn = (e, t) => {
|
|
480
|
+
let n = yn + (e.length + (t?.length ?? 0)) * 50;
|
|
481
|
+
return n > 1e4 ? bn : n;
|
|
482
|
+
}, X = Rt([]), Z = /* @__PURE__ */ new Map(), Cn = 0, wn = {
|
|
482
483
|
type: K.INFO_ACCENT,
|
|
483
484
|
layout: q.HORIZONTAL,
|
|
484
485
|
leftside: J.ICON,
|
|
485
486
|
showPrimaryButton: !1,
|
|
486
487
|
closable: !0
|
|
487
|
-
},
|
|
488
|
+
}, Tn = () => `toast-${Date.now()}-${++Cn}`, Q = (e) => {
|
|
488
489
|
let t = Z.get(e);
|
|
489
490
|
t && (window.clearTimeout(t), Z.delete(e));
|
|
490
|
-
},
|
|
491
|
+
}, En = (e) => {
|
|
491
492
|
Q(e.id);
|
|
492
|
-
let t = e.duration === void 0 ?
|
|
493
|
+
let t = e.duration === void 0 ? Sn(e.title, e.description) : e.duration;
|
|
493
494
|
if (t > 0) {
|
|
494
495
|
let n = window.setTimeout(() => {
|
|
495
|
-
|
|
496
|
+
Dn(e.id);
|
|
496
497
|
}, t);
|
|
497
498
|
Z.set(e.id, n);
|
|
498
499
|
}
|
|
499
|
-
},
|
|
500
|
+
}, Dn = (e) => {
|
|
500
501
|
let t = X.value.findIndex((t) => t.id === e);
|
|
501
502
|
if (t === -1) return;
|
|
502
503
|
let n = X.value[t];
|
|
503
504
|
n && (Q(e), n.onClose && n.onClose(), X.value = X.value.filter((t) => t.id !== e));
|
|
504
|
-
},
|
|
505
|
+
}, On = () => {
|
|
505
506
|
Z.forEach((e) => window.clearTimeout(e)), Z.clear(), X.value = [];
|
|
506
|
-
},
|
|
507
|
+
}, kn = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
|
|
507
508
|
Q(e.id);
|
|
508
|
-
}), e.slice(0, 3)),
|
|
509
|
-
let t = e.id ??
|
|
510
|
-
...
|
|
509
|
+
}), e.slice(0, 3)), An = (e) => {
|
|
510
|
+
let t = e.id ?? Tn(), n = {
|
|
511
|
+
...wn,
|
|
511
512
|
...e,
|
|
512
513
|
id: t
|
|
513
514
|
}, r = X.value.findIndex((e) => e.id === t);
|
|
514
515
|
if (r > -1) {
|
|
515
516
|
let e = [...X.value];
|
|
516
|
-
e[r] = n, X.value =
|
|
517
|
-
} else X.value =
|
|
518
|
-
return
|
|
519
|
-
},
|
|
517
|
+
e[r] = n, X.value = kn(e);
|
|
518
|
+
} else X.value = kn([n, ...X.value]);
|
|
519
|
+
return En(n), t;
|
|
520
|
+
}, jn = (e, t) => {
|
|
520
521
|
let n = X.value.findIndex((t) => t.id === e);
|
|
521
522
|
if (n === -1) return;
|
|
522
523
|
let r = X.value[n];
|
|
@@ -526,21 +527,21 @@ var Bt = [
|
|
|
526
527
|
...t,
|
|
527
528
|
id: r.id
|
|
528
529
|
}, a = [...X.value];
|
|
529
|
-
a[n] = i, X.value = a,
|
|
530
|
-
},
|
|
530
|
+
a[n] = i, X.value = a, En(i);
|
|
531
|
+
}, Mn = () => ({
|
|
531
532
|
toasts: X,
|
|
532
|
-
show:
|
|
533
|
-
hide:
|
|
534
|
-
hideAll:
|
|
535
|
-
update:
|
|
536
|
-
}),
|
|
533
|
+
show: An,
|
|
534
|
+
hide: Dn,
|
|
535
|
+
hideAll: On,
|
|
536
|
+
update: jn
|
|
537
|
+
}), Nn = /* @__PURE__ */ F({
|
|
537
538
|
__name: "SToastProvider",
|
|
538
539
|
setup(e) {
|
|
539
|
-
let { toasts: t, hide: n } =
|
|
540
|
-
|
|
540
|
+
let { toasts: t, hide: n } = Mn(), r = O(() => t.value.slice(0, 3)), i = z(!1), a = Rt({}), o = z(/* @__PURE__ */ new Set()), s = O(() => t.value[0] ?? null), c = O(() => s.value ? a.value[s.value.id] ?? 0 : 0), l = z(0), u = O(() => c.value > 0 ? c.value : l.value);
|
|
541
|
+
Vt(c, (e) => {
|
|
541
542
|
e > 0 && (l.value = e);
|
|
542
543
|
});
|
|
543
|
-
let d =
|
|
544
|
+
let d = O(() => {
|
|
544
545
|
if (r.value.length === 0) return {};
|
|
545
546
|
if (i.value) return { height: `${r.value.reduce((e, t, n) => {
|
|
546
547
|
let r = a.value[t.id] ?? 0, i = n > 0 ? 4 : 0;
|
|
@@ -579,15 +580,15 @@ var Bt = [
|
|
|
579
580
|
}, b = (e) => {
|
|
580
581
|
e.onSecondaryAction && e.onSecondaryAction();
|
|
581
582
|
};
|
|
582
|
-
return (e, t) => (R(),
|
|
583
|
+
return (e, t) => (R(), k(jt, { to: "body" }, [M("div", {
|
|
583
584
|
class: "s-ui-toast-provider",
|
|
584
585
|
onMouseenter: m,
|
|
585
586
|
onMouseleave: h
|
|
586
|
-
}, [r.value.length > 0 ? (R(),
|
|
587
|
+
}, [r.value.length > 0 ? (R(), j("div", {
|
|
587
588
|
key: 0,
|
|
588
589
|
class: "s-ui-toast-provider__list",
|
|
589
590
|
style: L(d.value)
|
|
590
|
-
}, [(R(!0),
|
|
591
|
+
}, [(R(!0), j(At, null, It(r.value, (t, n) => (R(), k(vn, {
|
|
591
592
|
key: t.id,
|
|
592
593
|
index: n,
|
|
593
594
|
expanded: i.value,
|
|
@@ -598,13 +599,13 @@ var Bt = [
|
|
|
598
599
|
"offset-y": f(n),
|
|
599
600
|
onHeightChange: (e) => g(t.id, e)
|
|
600
601
|
}, {
|
|
601
|
-
default: W(() => [B(e.$slots, "toast", { toast: t }, () => [t.component ? (R(),
|
|
602
|
+
default: W(() => [B(e.$slots, "toast", { toast: t }, () => [t.component ? (R(), k(Lt(t.component), Pt({
|
|
602
603
|
key: 0,
|
|
603
604
|
ref_for: !0
|
|
604
605
|
}, t.componentProps, {
|
|
605
606
|
toast: t,
|
|
606
607
|
onClose: (e) => _(t.id)
|
|
607
|
-
}), null, 16, ["toast", "onClose"])) : (R(),
|
|
608
|
+
}), null, 16, ["toast", "onClose"])) : (R(), k(H(hn), {
|
|
608
609
|
key: 1,
|
|
609
610
|
type: t.type,
|
|
610
611
|
layout: t.layout,
|
|
@@ -654,12 +655,12 @@ var Bt = [
|
|
|
654
655
|
"visible",
|
|
655
656
|
"offset-y",
|
|
656
657
|
"onHeightChange"
|
|
657
|
-
]))), 128))], 4)) :
|
|
658
|
+
]))), 128))], 4)) : A("", !0)], 32)]));
|
|
658
659
|
}
|
|
659
|
-
}),
|
|
660
|
+
}), Pn = 4, Fn = 4, In = 1, Ln = "400 12px var(--s-ui-font-family-label)", Rn = 4, zn = (e, t, n, r, i, a) => {
|
|
660
661
|
let o = Math.min(a, r / 2, i / 2);
|
|
661
662
|
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();
|
|
662
|
-
},
|
|
663
|
+
}, Bn = (e) => {
|
|
663
664
|
let t = e.getProps([
|
|
664
665
|
"x",
|
|
665
666
|
"y",
|
|
@@ -670,14 +671,14 @@ var Bt = [
|
|
|
670
671
|
width: Math.abs(n - i),
|
|
671
672
|
centerY: r
|
|
672
673
|
};
|
|
673
|
-
},
|
|
674
|
-
let i =
|
|
674
|
+
}, Vn = (e, t, n, r) => {
|
|
675
|
+
let i = Bn(t);
|
|
675
676
|
if (!i) return;
|
|
676
|
-
let a = `${n}`, o = e.measureText(a).width +
|
|
677
|
-
if (i.width < o +
|
|
677
|
+
let a = `${n}`, o = e.measureText(a).width + Pn * 2;
|
|
678
|
+
if (i.width < o + Rn * 2) return;
|
|
678
679
|
let s = i.left + i.width / 2;
|
|
679
|
-
|
|
680
|
-
},
|
|
680
|
+
zn(e, s - o / 2, i.centerY - 20 / 2, o, 20, Fn), e.fillStyle = r.background, e.fill(), e.lineWidth = In, e.strokeStyle = r.border, e.stroke(), e.fillStyle = r.text, e.fillText(a, s, i.centerY);
|
|
681
|
+
}, Hn = (e) => ({
|
|
681
682
|
id: "segmentedBarBadge",
|
|
682
683
|
afterDatasetsDraw(t) {
|
|
683
684
|
let n = {
|
|
@@ -685,18 +686,18 @@ var Bt = [
|
|
|
685
686
|
border: E(T.pieBadgeBorder, e),
|
|
686
687
|
text: E(T.pieBadgeText, e)
|
|
687
688
|
}, { ctx: r } = t;
|
|
688
|
-
r.save(), r.font =
|
|
689
|
+
r.save(), r.font = Ln, r.textAlign = "center", r.textBaseline = "middle", t.data.datasets.forEach((e, i) => {
|
|
689
690
|
let a = t.getDatasetMeta(i)?.data[0], o = e.data[0];
|
|
690
|
-
a && typeof o == "number" && o > 0 &&
|
|
691
|
+
a && typeof o == "number" && o > 0 && Vn(r, a, o, n);
|
|
691
692
|
}), r.restore();
|
|
692
693
|
}
|
|
693
|
-
}),
|
|
694
|
+
}), Un = 40, Wn = 4, $ = 1, Gn = [
|
|
694
695
|
"mousemove",
|
|
695
696
|
"mouseout",
|
|
696
697
|
"click",
|
|
697
698
|
"touchstart",
|
|
698
699
|
"touchmove"
|
|
699
|
-
],
|
|
700
|
+
], Kn = ({ segments: e, segmentColors: t, colorHostElement: n, skeleton: r = !1, onSegmentClick: i }) => {
|
|
700
701
|
if (e.length === 0) return null;
|
|
701
702
|
let a = E("--s-ui-color-surface-primary", n), o = e.reduce((e, t) => e + t.value, 0), s = at({
|
|
702
703
|
kind: "series",
|
|
@@ -719,8 +720,8 @@ var Bt = [
|
|
|
719
720
|
right: $
|
|
720
721
|
},
|
|
721
722
|
borderSkipped: !1,
|
|
722
|
-
borderRadius:
|
|
723
|
-
barThickness:
|
|
723
|
+
borderRadius: Wn,
|
|
724
|
+
barThickness: Un,
|
|
724
725
|
stack: "track"
|
|
725
726
|
}))
|
|
726
727
|
},
|
|
@@ -729,7 +730,7 @@ var Bt = [
|
|
|
729
730
|
responsive: !0,
|
|
730
731
|
maintainAspectRatio: !1,
|
|
731
732
|
layout: { padding: 0 },
|
|
732
|
-
events: r ? [] :
|
|
733
|
+
events: r ? [] : Gn,
|
|
733
734
|
onHover: s.onHover,
|
|
734
735
|
onClick: s.onClick,
|
|
735
736
|
hover: r ? void 0 : {
|
|
@@ -754,9 +755,9 @@ var Bt = [
|
|
|
754
755
|
}
|
|
755
756
|
}
|
|
756
757
|
},
|
|
757
|
-
plugins: [...r ? [] : [
|
|
758
|
+
plugins: [...r ? [] : [Hn(n)], ...s.plugins]
|
|
758
759
|
};
|
|
759
|
-
},
|
|
760
|
+
}, qn = [
|
|
760
761
|
4,
|
|
761
762
|
1,
|
|
762
763
|
2,
|
|
@@ -768,7 +769,7 @@ var Bt = [
|
|
|
768
769
|
].map((e, t) => ({
|
|
769
770
|
label: `Series ${t + 1}`,
|
|
770
771
|
value: e
|
|
771
|
-
})),
|
|
772
|
+
})), Jn = { class: "s-ui-chart-segmented-bar__canvas-wrap" }, Yn = /* @__PURE__ */ F({
|
|
772
773
|
__name: "SChartSegmentedBar",
|
|
773
774
|
props: {
|
|
774
775
|
segments: { default: () => [] },
|
|
@@ -783,10 +784,10 @@ var Bt = [
|
|
|
783
784
|
},
|
|
784
785
|
emits: ["segmentClick"],
|
|
785
786
|
setup(e, { expose: t, emit: n }) {
|
|
786
|
-
let r = n, i = st, a =
|
|
787
|
+
let r = n, i = st, a = Bt("chartRootRef"), o = Bt("chartCanvasRef"), s = O(() => e.loading ? qn : e.segments), c = O(() => s.value.map((t, n) => Qt(n, a.value, t.fillColor, e.loading))), l = O(() => s.value.map((e, t) => ({
|
|
787
788
|
segment: e,
|
|
788
789
|
segmentIndex: t
|
|
789
|
-
})).filter(({ segment: e }) => e.value > 0)), u =
|
|
790
|
+
})).filter(({ segment: e }) => e.value > 0)), u = O(() => l.value.map(({ segment: e }) => e)), d = O(() => l.value.map(({ segmentIndex: e }) => c.value[e] ?? "")), f = O(() => {
|
|
790
791
|
let e = /* @__PURE__ */ new Map();
|
|
791
792
|
return l.value.forEach(({ segmentIndex: t }, n) => {
|
|
792
793
|
e.set(t, n);
|
|
@@ -794,19 +795,19 @@ var Bt = [
|
|
|
794
795
|
}), p = (e) => {
|
|
795
796
|
let t = l.value[e];
|
|
796
797
|
t && r("segmentClick", t.segmentIndex, t.segment);
|
|
797
|
-
}, m =
|
|
798
|
+
}, m = yt("onSegmentClick"), h = O(() => Kn({
|
|
798
799
|
segments: u.value,
|
|
799
800
|
segmentColors: d.value,
|
|
800
801
|
colorHostElement: a.value,
|
|
801
802
|
skeleton: e.loading,
|
|
802
803
|
onSegmentClick: m() ? p : void 0
|
|
803
|
-
})), g =
|
|
804
|
+
})), g = O(() => s.value.map((e, t) => ({
|
|
804
805
|
label: e.label,
|
|
805
806
|
color: c.value[t] ?? ""
|
|
806
807
|
}))), { chartInstance: _ } = ot({
|
|
807
808
|
canvasRef: o,
|
|
808
809
|
config: h,
|
|
809
|
-
enabled:
|
|
810
|
+
enabled: O(() => e.loading || u.value.length > 0)
|
|
810
811
|
}), { exportImage: v, handleLegendItemHover: y } = ct({
|
|
811
812
|
chartInstance: _,
|
|
812
813
|
canvasRef: o,
|
|
@@ -814,22 +815,22 @@ var Bt = [
|
|
|
814
815
|
}), b = (e) => {
|
|
815
816
|
y(e === null ? null : f.value.get(e) ?? null);
|
|
816
817
|
};
|
|
817
|
-
return t({ exportImage: v }), (t, n) => (R(),
|
|
818
|
+
return t({ exportImage: v }), (t, n) => (R(), j("div", {
|
|
818
819
|
ref_key: "chartRootRef",
|
|
819
820
|
ref: a,
|
|
820
821
|
class: I(["s-ui-chart-segmented-bar", { "s-ui-chart-segmented-bar--skeleton": e.loading }]),
|
|
821
822
|
"data-qa": "ui:chart-segmented-bar"
|
|
822
|
-
}, [
|
|
823
|
+
}, [M("div", Jn, [Mt(H(lt), {
|
|
823
824
|
loading: e.loading,
|
|
824
825
|
type: H(i).CARTESIAN
|
|
825
826
|
}, {
|
|
826
|
-
default: W(() => [
|
|
827
|
+
default: W(() => [M("canvas", {
|
|
827
828
|
ref_key: "chartCanvasRef",
|
|
828
829
|
ref: o,
|
|
829
830
|
class: "s-ui-chart-segmented-bar__canvas"
|
|
830
831
|
}, null, 512)]),
|
|
831
832
|
_: 1
|
|
832
|
-
}, 8, ["loading", "type"])]), e.showLegend && g.value.length ? (R(),
|
|
833
|
+
}, 8, ["loading", "type"])]), e.showLegend && g.value.length ? (R(), k(H(D), {
|
|
833
834
|
key: 0,
|
|
834
835
|
items: g.value,
|
|
835
836
|
disabled: e.loading,
|
|
@@ -839,24 +840,24 @@ var Bt = [
|
|
|
839
840
|
"items",
|
|
840
841
|
"disabled",
|
|
841
842
|
"interactive"
|
|
842
|
-
])) :
|
|
843
|
+
])) : A("", !0)], 2));
|
|
843
844
|
}
|
|
844
|
-
}),
|
|
845
|
+
}), Xn = {
|
|
845
846
|
key: 0,
|
|
846
847
|
class: "s-ui-chart-widget__header"
|
|
847
|
-
},
|
|
848
|
+
}, Zn = {
|
|
848
849
|
key: 0,
|
|
849
850
|
class: "s-ui-chart-widget__title-skeleton",
|
|
850
851
|
"aria-hidden": "true"
|
|
851
|
-
},
|
|
852
|
+
}, Qn = {
|
|
852
853
|
key: 1,
|
|
853
854
|
class: "s-ui-chart-widget__title s-ui-typography-label-16-medium"
|
|
854
|
-
},
|
|
855
|
+
}, $n = { class: "s-ui-chart-widget__controls" }, er = {
|
|
855
856
|
key: 1,
|
|
856
857
|
class: "s-ui-chart-widget__content"
|
|
857
|
-
},
|
|
858
|
+
}, tr = /* @__PURE__ */ F({
|
|
858
859
|
__name: "SChartWidget",
|
|
859
|
-
props: /*@__PURE__*/
|
|
860
|
+
props: /*@__PURE__*/ Nt({
|
|
860
861
|
title: { default: "" },
|
|
861
862
|
collapsible: {
|
|
862
863
|
type: Boolean,
|
|
@@ -879,11 +880,11 @@ var Bt = [
|
|
|
879
880
|
}),
|
|
880
881
|
emits: ["update:collapsed"],
|
|
881
882
|
setup(e) {
|
|
882
|
-
let t =
|
|
883
|
-
return (n, r) => (R(),
|
|
883
|
+
let t = zt(e, "collapsed"), n = U(), { t: r } = Jt(), i = O(() => !!e.title || !!n.title || !!n.actions || e.collapsible), a = O(() => !t.value || !e.collapsible || !e.hideContentWhenCollapsed), o = O(() => r(t.value ? "chartWidget.expand" : "chartWidget.collapse"));
|
|
884
|
+
return (n, r) => (R(), j("div", {
|
|
884
885
|
class: I(["s-ui-chart-widget", { "s-ui-chart-widget--skeleton": e.loading }]),
|
|
885
886
|
"data-qa": "ui:chart-widget"
|
|
886
|
-
}, [i.value ? (R(),
|
|
887
|
+
}, [i.value ? (R(), j("div", Xn, [e.loading ? (R(), j("span", Zn)) : (R(), j("span", Qn, [B(n.$slots, "title", {}, () => [P(V(e.title), 1)])])), M("div", $n, [B(n.$slots, "actions"), e.collapsible ? (R(), k(H(w), {
|
|
887
888
|
key: 0,
|
|
888
889
|
appearance: H(C).OUTLINED,
|
|
889
890
|
variant: H(S).NEUTRAL,
|
|
@@ -899,8 +900,8 @@ var Bt = [
|
|
|
899
900
|
"icon",
|
|
900
901
|
"aria-label",
|
|
901
902
|
"aria-expanded"
|
|
902
|
-
])) :
|
|
903
|
+
])) : A("", !0)])])) : A("", !0), a.value ? (R(), j("div", er, [B(n.$slots, "default")])) : A("", !0)], 2));
|
|
903
904
|
}
|
|
904
905
|
});
|
|
905
906
|
//#endregion
|
|
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,
|
|
907
|
+
export { bt as CALENDAR_WEEK_SLOT_COUNT, Et 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, 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, xt as EWorkTimeSource, l as MAX_RECENT_COLORS, _ as RECOMMENDED_COLOR_PALETTE, c as SAvatar, ne as SAvatarGroup, n as SBadge, mn as SBanner, w as SButton, ue as SButtonGroup, Ct as SCalendarMonth, St as SCalendarWeekGrid, he as SCard, _t as SChartBurnup, mt as SChartHorizontalBar, D as SChartLegend, ut as SChartLine, gt as SChartMultiLine, ht as SChartPie, vt as SChartProgress, Yn as SChartSegmentedBar, ft as SChartStackedArea, pt as SChartStackedBar, tr as SChartWidget, pe as SCheckbox, je as SChip, d as SColorArea, v as SColorPalette, f as SColorPicker, u as SColorValues, wt as SDayTimeline, 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, hn as SToast, Nn as SToastProvider, Qe as SToggle, bn as TOAST_AUTO_DURATION_MAX_MS, yn as TOAST_AUTO_DURATION_MIN_MS, xn as TOAST_AUTO_DURATION_MS_PER_CHAR, Tt as WORK_TIME_SOURCE_COLOR_VARS, Dt as WORK_TIME_SOURCE_ORDER, Ot as buildWorkTimeLegendItems, Sn as computeAutoDuration, Se as computeConnectedPosition, Ut as createUiKit, kt as formatDurationHM, ee as isSameColor, b as normalizeColorValue, y as resolveColorPreview, re as resolveOwnPropOrGroupedOrFallback, Wt as setUiKitLocale, Gt as uiKitLocaleEn, Kt as uiKitLocaleRu, Ge as useFlatTreeList, we as useFloatingOverlay, We as useSListEndReached, ae as useSelectionGroup, ce as useSelectionGroupItem, Mn as useToast, qt as useUiKitI18n };
|