@shtabapp/ui-kit 1.42.0 → 1.44.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 +16 -0
- package/dist/SChartBurnup-DYBnJMnm.js +247 -0
- package/dist/SChartBurnup-DhuCNXhU.cjs +1 -0
- package/dist/{SChartHorizontalBar-tfgmCHtk.cjs → SChartHorizontalBar-DMBzyz9x.cjs} +1 -1
- package/dist/{SChartHorizontalBar-DIn1sVoi.js → SChartHorizontalBar-bm3Jexa3.js} +14 -14
- package/dist/SChartLegend-Chr0IZWN.js +30 -0
- package/dist/SChartLegend-DXFXKXCm.cjs +1 -0
- package/dist/SChartLine-CiREb4H_.js +125 -0
- package/dist/SChartLine-P57XRR2o.cjs +1 -0
- package/dist/SChartMultiLine-3cdB0U12.js +166 -0
- package/dist/SChartMultiLine-BW1kITlR.cjs +1 -0
- package/dist/SChartPie-55wx2zRi.cjs +1 -0
- package/dist/{SChartPie-_6ij1EVn.js → SChartPie-Dc_gjzIl.js} +37 -36
- package/dist/{SChartProgress-C08fiO6U.cjs → SChartProgress-QsGTZ8kT.cjs} +1 -1
- package/dist/{SChartProgress-CofVafO6.js → SChartProgress-Zdphet8I.js} +12 -12
- package/dist/{SChartSkeletonHost-CnfMevXX.js → SChartSkeletonHost-CecfQ3Ye.js} +101 -70
- package/dist/SChartSkeletonHost-CfM0zolj.cjs +1 -0
- package/dist/SChartStackedArea-BaJ963lU.cjs +1 -0
- package/dist/{SChartStackedArea-RKK7aT7x.js → SChartStackedArea-cjN9gECV.js} +56 -62
- package/dist/{SChartStackedBar-CJunMhyb.js → SChartStackedBar-0jGICBA0.js} +43 -41
- package/dist/SChartStackedBar-j9WyOnsL.cjs +1 -0
- package/dist/{SColorPicker-Df7YG5BE.cjs → SColorPicker-BIrkgFys.cjs} +1 -1
- package/dist/{SColorPicker-9vWK-6Pt.js → SColorPicker-ksmNupJa.js} +1 -1
- package/dist/{SList-B4C-PzjB.js → SList-BtfUntkw.js} +6 -1
- package/dist/SList-fZQdPkFG.cjs +1 -0
- package/dist/{SListItem-BFxQ2cj3.js → SListItem-BRXZEePg.js} +17 -16
- package/dist/SListItem-CdveotJe.cjs +1 -0
- package/dist/{SSelect-ClHXMqXz.cjs → SSelect-CkV6gq4S.cjs} +1 -1
- package/dist/{SSelect-CjaiJDdO.js → SSelect-DS2EGmjV.js} +2 -2
- package/dist/buildChartSeriesPoints-Bv3nXvSu.cjs +1 -0
- package/dist/buildChartSeriesPoints-D8Xpfwp7.js +14 -0
- package/dist/buildMultiLineChartScales-7mcIfRVG.cjs +1 -0
- package/dist/buildMultiLineChartScales-CFZ8YVeJ.js +19 -0
- package/dist/components/SChartBurnup/SChartBurnup.types.d.ts +35 -0
- package/dist/components/SChartBurnup/SChartBurnup.types.d.ts.map +1 -0
- package/dist/components/SChartBurnup/SChartBurnup.vue.d.ts +5 -0
- package/dist/components/SChartBurnup/SChartBurnup.vue.d.ts.map +1 -0
- package/dist/components/SChartBurnup/index.d.ts +3 -0
- package/dist/components/SChartBurnup/index.d.ts.map +1 -0
- package/dist/components/SChartBurnup/utils/buildBurnupChartConfig.d.ts +18 -0
- package/dist/components/SChartBurnup/utils/buildBurnupChartConfig.d.ts.map +1 -0
- package/dist/components/SChartBurnup/utils/demoBurnupPoints.d.ts +4 -0
- package/dist/components/SChartBurnup/utils/demoBurnupPoints.d.ts.map +1 -0
- package/dist/components/SChartBurnup/utils/skeletonBurnupPoints.d.ts +3 -0
- package/dist/components/SChartBurnup/utils/skeletonBurnupPoints.d.ts.map +1 -0
- package/dist/components/SChartMultiLine/SChartMultiLine.types.d.ts +19 -0
- package/dist/components/SChartMultiLine/SChartMultiLine.types.d.ts.map +1 -0
- package/dist/components/SChartMultiLine/SChartMultiLine.vue.d.ts +5 -0
- package/dist/components/SChartMultiLine/SChartMultiLine.vue.d.ts.map +1 -0
- package/dist/components/SChartMultiLine/index.d.ts +3 -0
- package/dist/components/SChartMultiLine/index.d.ts.map +1 -0
- package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts +13 -0
- package/dist/components/SChartMultiLine/utils/buildMultiLineChartConfig.d.ts.map +1 -0
- package/dist/components/SChartMultiLine/utils/demoMultiLineSeries.d.ts +3 -0
- package/dist/components/SChartMultiLine/utils/demoMultiLineSeries.d.ts.map +1 -0
- package/dist/components/SChartMultiLine/utils/skeletonMultiLineSeries.d.ts +6 -0
- package/dist/components/SChartMultiLine/utils/skeletonMultiLineSeries.d.ts.map +1 -0
- package/dist/components/SList/SList.types.d.ts +2 -0
- package/dist/components/SList/SList.types.d.ts.map +1 -1
- package/dist/components/SList/SList.vue.d.ts.map +1 -1
- package/dist/components/SList/utils/context.d.ts +1 -0
- package/dist/components/SList/utils/context.d.ts.map +1 -1
- package/dist/components/SListItem/SListItem.types.d.ts +2 -0
- package/dist/components/SListItem/SListItem.types.d.ts.map +1 -1
- package/dist/components/SListItem/SListItem.vue.d.ts.map +1 -1
- package/dist/createChartAreaFillGradient-BDmME9Gy.js +17 -0
- package/dist/createChartAreaFillGradient-BwsojVzU.cjs +1 -0
- package/dist/createChartCrosshairPlugin-BC0IDCn3.js +14 -0
- package/dist/createChartCrosshairPlugin-HfMMUP5O.cjs +1 -0
- package/dist/entries/chart-burnup.cjs +1 -0
- package/dist/entries/chart-burnup.d.ts +3 -0
- package/dist/entries/chart-burnup.d.ts.map +1 -0
- package/dist/entries/chart-burnup.js +2 -0
- 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 -0
- package/dist/entries/chart-multi-line.d.ts +3 -0
- package/dist/entries/chart-multi-line.d.ts.map +1 -0
- package/dist/entries/chart-multi-line.js +2 -0
- 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-item.cjs +1 -1
- package/dist/entries/list-item.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 +68 -66
- package/dist/resolveSeriesPaletteColor-BcFyrhh0.cjs +1 -0
- package/dist/resolveSeriesPaletteColor-m8HQ9qwV.js +9 -0
- package/dist/resolveStackedChartContext-BywAnZUu.cjs +1 -0
- package/dist/resolveStackedChartContext-DdraOueU.js +26 -0
- package/dist/uikit-components.css +1 -1
- package/dist/utils/chart/burnup/createBurnupTagPlugin.d.ts +8 -0
- package/dist/utils/chart/burnup/createBurnupTagPlugin.d.ts.map +1 -0
- package/dist/utils/chart/burnup/createBurnupTodayLinePlugin.d.ts +3 -0
- package/dist/utils/chart/burnup/createBurnupTodayLinePlugin.d.ts.map +1 -0
- package/dist/utils/chart/burnup/createBurnupTooltipCallbacks.d.ts +11 -0
- package/dist/utils/chart/burnup/createBurnupTooltipCallbacks.d.ts.map +1 -0
- package/dist/utils/chart/chartJsAugmentation.d.ts +1 -0
- package/dist/utils/chart/chartJsAugmentation.d.ts.map +1 -1
- package/dist/utils/chart/core/chartCssVariables.d.ts +11 -0
- package/dist/utils/chart/core/chartCssVariables.d.ts.map +1 -1
- package/dist/utils/chart/core/registerChartJs.d.ts.map +1 -1
- package/dist/utils/chart/index.d.ts +10 -0
- package/dist/utils/chart/index.d.ts.map +1 -1
- package/dist/utils/chart/multiLine/buildMultiLineChartScales.d.ts +112 -0
- package/dist/utils/chart/multiLine/buildMultiLineChartScales.d.ts.map +1 -0
- package/dist/utils/chart/multiLine/createMultiLineTooltipCallbacks.d.ts +8 -0
- package/dist/utils/chart/multiLine/createMultiLineTooltipCallbacks.d.ts.map +1 -0
- package/dist/utils/chart/multiLine/resolveMultiLineSeriesColor.d.ts +2 -0
- package/dist/utils/chart/multiLine/resolveMultiLineSeriesColor.d.ts.map +1 -0
- package/dist/utils/chart/multiLine/resolveMultiLineYMax.d.ts +3 -0
- package/dist/utils/chart/multiLine/resolveMultiLineYMax.d.ts.map +1 -0
- package/package.json +12 -2
- package/dist/SChartLegend-BFwzIA4x.cjs +0 -1
- package/dist/SChartLegend-DW16AfUz.js +0 -35
- package/dist/SChartLine-G5CeC01A.js +0 -137
- package/dist/SChartLine-xql-HCwK.cjs +0 -1
- package/dist/SChartPie-xu1fcWMy.cjs +0 -1
- package/dist/SChartSkeletonHost-YmLC5zOX.cjs +0 -1
- package/dist/SChartStackedArea-BUy47veO.cjs +0 -1
- package/dist/SChartStackedBar-1HNyHP8J.cjs +0 -1
- package/dist/SList-Bp3mUJfQ.cjs +0 -1
- package/dist/SListItem-Cs1-uv5N.cjs +0 -1
- package/dist/buildChartSeriesPoints-D-j16fMh.js +0 -35
- package/dist/buildChartSeriesPoints-lASMQmBx.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-ksmNupJa.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,26 +19,28 @@ 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-DS2EGmjV.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-
|
|
27
|
-
import { n as qe, t as Je } from "./SListItem-
|
|
26
|
+
import { a as Ue, o as We, s as Ge, t as Ke } from "./SList-BtfUntkw.js";
|
|
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 { t as at } from "./SChartLine-
|
|
34
|
-
import { t as ot } from "./SChartStackedArea-
|
|
35
|
-
import { t as st } from "./SChartStackedBar-
|
|
36
|
-
import { t as ct } from "./SChartHorizontalBar-
|
|
37
|
-
import { t as lt } from "./SChartPie-
|
|
38
|
-
import { t as ut } from "./
|
|
39
|
-
import {
|
|
40
|
-
import {
|
|
41
|
-
import {
|
|
33
|
+
import { t as at } from "./SChartLine-CiREb4H_.js";
|
|
34
|
+
import { t as ot } from "./SChartStackedArea-cjN9gECV.js";
|
|
35
|
+
import { t as st } from "./SChartStackedBar-0jGICBA0.js";
|
|
36
|
+
import { t as ct } from "./SChartHorizontalBar-bm3Jexa3.js";
|
|
37
|
+
import { t as lt } from "./SChartPie-Dc_gjzIl.js";
|
|
38
|
+
import { t as ut } from "./SChartMultiLine-3cdB0U12.js";
|
|
39
|
+
import { t as dt } from "./SChartBurnup-DYBnJMnm.js";
|
|
40
|
+
import { t as ft } from "./SChartProgress-Zdphet8I.js";
|
|
41
|
+
import { Fragment as pt, Teleport as mt, computed as T, createBlock as E, createCommentVNode as D, createElementBlock as O, createElementVNode as k, createSlots as A, createTextVNode as j, createVNode as ht, defineComponent as M, mergeProps as gt, normalizeClass as _t, normalizeStyle as N, onMounted as vt, openBlock as P, ref as F, renderList as yt, renderSlot as I, resolveDynamicComponent as bt, shallowRef as L, toDisplayString as R, unref as z, useSlots as B, watch as xt, withCtx as V } from "vue";
|
|
42
|
+
import { ESIconName as H, SIcon as St, createUiKit as Ct, setUiKitLocale as wt, uiKitLocaleEn as Tt, uiKitLocaleRu as Et, useUiKitI18n as Dt } from "@shtabapp/ui-kit-primitives";
|
|
43
|
+
import { useResizeObserver as Ot } from "@vueuse/core";
|
|
42
44
|
export * from "@shtabapp/ui-kit-primitives";
|
|
43
45
|
export * from "@shtabapp/ui-kit-tokens";
|
|
44
46
|
//#region src/components/SNotification/SNotification.types.ts
|
|
@@ -50,29 +52,29 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
50
52
|
return e.ICON = "icon", e.AVATAR = "avatar", e;
|
|
51
53
|
}({}), K = /* @__PURE__ */ function(e) {
|
|
52
54
|
return e.BANNER = "banner", e.TOAST = "toast", e;
|
|
53
|
-
}({}),
|
|
55
|
+
}({}), kt = {
|
|
54
56
|
[U.INFO_ACCENT]: H.infoCircle,
|
|
55
57
|
[U.INFO_NORMAL]: H.infoCircle,
|
|
56
58
|
[U.SUCCESS]: H.checkCircle,
|
|
57
59
|
[U.WARNING]: H.alertCircle,
|
|
58
60
|
[U.DANGER]: H.dangerCircleFill,
|
|
59
61
|
[U.BILLING]: H.infoCircle
|
|
60
|
-
},
|
|
62
|
+
}, At = (e, t) => t || kt[e], jt = ["role"], Mt = { class: "s-ui-notification__body" }, Nt = {
|
|
61
63
|
key: 0,
|
|
62
64
|
class: "s-ui-notification__leftside"
|
|
63
|
-
},
|
|
65
|
+
}, Pt = {
|
|
64
66
|
key: 0,
|
|
65
67
|
class: "s-ui-notification__icon"
|
|
66
|
-
},
|
|
68
|
+
}, Ft = { class: "s-ui-notification__content" }, It = { class: "s-ui-notification__title-row" }, Lt = { class: "s-ui-notification__title s-ui-typography-label-14-medium" }, Rt = {
|
|
67
69
|
key: 0,
|
|
68
70
|
class: "s-ui-notification__description-block"
|
|
69
|
-
},
|
|
71
|
+
}, zt = {
|
|
70
72
|
key: 0,
|
|
71
73
|
class: "s-ui-notification__description s-ui-typography-label-12-medium"
|
|
72
|
-
},
|
|
74
|
+
}, Bt = {
|
|
73
75
|
key: 1,
|
|
74
76
|
class: "s-ui-notification__actions-stack"
|
|
75
|
-
},
|
|
77
|
+
}, Vt = {
|
|
76
78
|
key: 1,
|
|
77
79
|
class: "s-ui-notification__actions-row"
|
|
78
80
|
}, q = /* @__PURE__ */ M({
|
|
@@ -115,7 +117,7 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
115
117
|
]), a = T(() => {
|
|
116
118
|
let t = {};
|
|
117
119
|
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;
|
|
118
|
-
}), s = T(() => e.type === U.DANGER ? "alert" : "status"), l = T(() =>
|
|
120
|
+
}), s = T(() => e.type === U.DANGER ? "alert" : "status"), l = T(() => At(e.type, e.icon)), u = T(() => e.type === U.BILLING), d = T(() => !!(e.leftside === G.AVATAR && e.avatar || e.leftside === G.ICON)), f = T(() => !!(e.description || e.linkText || r.description)), p = T(() => e.showPrimaryButton && (e.primaryButtonText || e.secondaryButtonText)), m = T(() => e.showPrimaryButton && e.primaryButtonText || e.closable), h = T(() => e.type === U.BILLING ? C.MAJOR : C.OUTLINED), g = T(() => e.type === U.BILLING ? S.BILLING : S.MAIN), _ = () => {
|
|
119
121
|
n("close");
|
|
120
122
|
}, v = () => {
|
|
121
123
|
n("linkClick");
|
|
@@ -125,11 +127,11 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
125
127
|
n("secondaryAction");
|
|
126
128
|
};
|
|
127
129
|
return (t, n) => (P(), O("div", {
|
|
128
|
-
class:
|
|
130
|
+
class: _t(["s-ui-notification", i.value]),
|
|
129
131
|
style: N(a.value),
|
|
130
132
|
role: s.value
|
|
131
|
-
}, [k("div",
|
|
132
|
-
d.value ? (P(), O("div",
|
|
133
|
+
}, [k("div", Mt, [
|
|
134
|
+
d.value ? (P(), O("div", Nt, [e.leftside === z(G).ICON ? (P(), O("div", Pt, [ht(z(St), {
|
|
133
135
|
name: l.value,
|
|
134
136
|
size: 16,
|
|
135
137
|
billing: u.value
|
|
@@ -146,8 +148,8 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
146
148
|
"badge",
|
|
147
149
|
"size"
|
|
148
150
|
])) : D("", !0)])) : D("", !0),
|
|
149
|
-
k("div",
|
|
150
|
-
k("div",
|
|
151
|
+
k("div", Ft, [
|
|
152
|
+
k("div", It, [k("span", Lt, [I(t.$slots, "title", {}, () => [j(R(e.title), 1)])]), e.layout === z(W).VERTICAL && e.closable ? (P(), E(z(w), {
|
|
151
153
|
key: 0,
|
|
152
154
|
class: "s-ui-notification__close",
|
|
153
155
|
appearance: z(C).BARE,
|
|
@@ -162,7 +164,7 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
162
164
|
"size",
|
|
163
165
|
"aria-label"
|
|
164
166
|
])) : D("", !0)]),
|
|
165
|
-
f.value ? (P(), O("div",
|
|
167
|
+
f.value ? (P(), O("div", Rt, [e.description || z(r).description ? (P(), O("span", zt, [I(t.$slots, "description", {}, () => [j(R(e.description), 1)])])) : D("", !0), e.linkText ? (P(), E(z(w), {
|
|
166
168
|
key: 1,
|
|
167
169
|
class: "s-ui-notification__link",
|
|
168
170
|
appearance: z(C).BARE,
|
|
@@ -177,7 +179,7 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
177
179
|
"variant",
|
|
178
180
|
"size"
|
|
179
181
|
])) : D("", !0)])) : D("", !0),
|
|
180
|
-
e.layout === z(W).VERTICAL && p.value ? (P(), O("div",
|
|
182
|
+
e.layout === z(W).VERTICAL && p.value ? (P(), O("div", Bt, [e.showPrimaryButton && e.primaryButtonText ? (P(), E(z(w), {
|
|
181
183
|
key: 0,
|
|
182
184
|
appearance: h.value,
|
|
183
185
|
variant: g.value,
|
|
@@ -205,7 +207,7 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
205
207
|
"size"
|
|
206
208
|
])) : D("", !0)])) : D("", !0)
|
|
207
209
|
]),
|
|
208
|
-
e.layout === z(W).HORIZONTAL && m.value ? (P(), O("div",
|
|
210
|
+
e.layout === z(W).HORIZONTAL && m.value ? (P(), O("div", Vt, [e.showPrimaryButton && e.primaryButtonText ? (P(), E(z(w), {
|
|
209
211
|
key: 0,
|
|
210
212
|
appearance: h.value,
|
|
211
213
|
variant: g.value,
|
|
@@ -233,9 +235,9 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
233
235
|
"size",
|
|
234
236
|
"aria-label"
|
|
235
237
|
])) : D("", !0)])) : D("", !0)
|
|
236
|
-
])], 14,
|
|
238
|
+
])], 14, jt));
|
|
237
239
|
}
|
|
238
|
-
}),
|
|
240
|
+
}), Ht = /* @__PURE__ */ M({
|
|
239
241
|
__name: "SBanner",
|
|
240
242
|
props: {
|
|
241
243
|
type: { default: () => U.INFO_ACCENT },
|
|
@@ -395,13 +397,13 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
395
397
|
"width"
|
|
396
398
|
]));
|
|
397
399
|
}
|
|
398
|
-
}),
|
|
400
|
+
}), Ut = .05, Wt = [
|
|
399
401
|
"data-mounted",
|
|
400
402
|
"data-front",
|
|
401
403
|
"data-expanded",
|
|
402
404
|
"data-removed",
|
|
403
405
|
"data-visible"
|
|
404
|
-
],
|
|
406
|
+
], Gt = /* @__PURE__ */ M({
|
|
405
407
|
__name: "SToastProviderToast",
|
|
406
408
|
props: {
|
|
407
409
|
index: {},
|
|
@@ -414,7 +416,7 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
414
416
|
},
|
|
415
417
|
emits: ["heightChange"],
|
|
416
418
|
setup(e, { emit: t }) {
|
|
417
|
-
let n = t, r = F(null), i = F(0), a = F(!1), o = T(() => e.index === 0), s = T(() => 1 - e.index *
|
|
419
|
+
let n = t, r = F(null), i = F(0), a = F(!1), o = T(() => e.index === 0), s = T(() => 1 - e.index * Ut), c = T(() => ({
|
|
418
420
|
"--s-ui-toast-provider-toasts-before": String(e.index),
|
|
419
421
|
"--s-ui-toast-provider-lift-amount": `${e.stackPeek * -1}px`,
|
|
420
422
|
"--s-ui-toast-provider-front-toast-height": `${e.frontToastHeight}px`,
|
|
@@ -423,10 +425,10 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
423
425
|
"--s-ui-toast-provider-stack-scale": String(s.value),
|
|
424
426
|
zIndex: String(1e3 - e.index)
|
|
425
427
|
}));
|
|
426
|
-
return
|
|
428
|
+
return Ot(r, (e) => {
|
|
427
429
|
let t = e[0]?.contentRect.height ?? 0;
|
|
428
430
|
t !== i.value && (i.value = t, n("heightChange", t));
|
|
429
|
-
}),
|
|
431
|
+
}), vt(() => {
|
|
430
432
|
requestAnimationFrame(() => {
|
|
431
433
|
requestAnimationFrame(() => {
|
|
432
434
|
a.value = !0;
|
|
@@ -444,50 +446,50 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
444
446
|
ref_key: "contentRef",
|
|
445
447
|
ref: r,
|
|
446
448
|
class: "s-ui-toast-provider__toast-content"
|
|
447
|
-
}, [I(t.$slots, "default")], 512)], 12,
|
|
449
|
+
}, [I(t.$slots, "default")], 512)], 12, Wt));
|
|
448
450
|
}
|
|
449
|
-
}), Y = 4e3, X = 1e4,
|
|
451
|
+
}), Y = 4e3, X = 1e4, Kt = 50, qt = (e, t) => {
|
|
450
452
|
let n = Y + (e.length + (t?.length ?? 0)) * 50;
|
|
451
453
|
return n > 1e4 ? X : n;
|
|
452
|
-
}, Z = L([]), Q = /* @__PURE__ */ new Map(),
|
|
454
|
+
}, Z = L([]), Q = /* @__PURE__ */ new Map(), Jt = 0, Yt = {
|
|
453
455
|
type: U.INFO_ACCENT,
|
|
454
456
|
layout: W.HORIZONTAL,
|
|
455
457
|
leftside: G.ICON,
|
|
456
458
|
showPrimaryButton: !1,
|
|
457
459
|
closable: !0
|
|
458
|
-
},
|
|
460
|
+
}, Xt = () => `toast-${Date.now()}-${++Jt}`, $ = (e) => {
|
|
459
461
|
let t = Q.get(e);
|
|
460
462
|
t && (window.clearTimeout(t), Q.delete(e));
|
|
461
|
-
},
|
|
463
|
+
}, Zt = (e) => {
|
|
462
464
|
$(e.id);
|
|
463
|
-
let t = e.duration === void 0 ?
|
|
465
|
+
let t = e.duration === void 0 ? qt(e.title, e.description) : e.duration;
|
|
464
466
|
if (t > 0) {
|
|
465
467
|
let n = window.setTimeout(() => {
|
|
466
|
-
|
|
468
|
+
Qt(e.id);
|
|
467
469
|
}, t);
|
|
468
470
|
Q.set(e.id, n);
|
|
469
471
|
}
|
|
470
|
-
},
|
|
472
|
+
}, Qt = (e) => {
|
|
471
473
|
let t = Z.value.findIndex((t) => t.id === e);
|
|
472
474
|
if (t === -1) return;
|
|
473
475
|
let n = Z.value[t];
|
|
474
476
|
n && ($(e), n.onClose && n.onClose(), Z.value = Z.value.filter((t) => t.id !== e));
|
|
475
|
-
},
|
|
477
|
+
}, $t = () => {
|
|
476
478
|
Q.forEach((e) => window.clearTimeout(e)), Q.clear(), Z.value = [];
|
|
477
|
-
},
|
|
479
|
+
}, en = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
|
|
478
480
|
$(e.id);
|
|
479
|
-
}), e.slice(0, 3)),
|
|
480
|
-
let t = e.id ??
|
|
481
|
-
...
|
|
481
|
+
}), e.slice(0, 3)), tn = (e) => {
|
|
482
|
+
let t = e.id ?? Xt(), n = {
|
|
483
|
+
...Yt,
|
|
482
484
|
...e,
|
|
483
485
|
id: t
|
|
484
486
|
}, r = Z.value.findIndex((e) => e.id === t);
|
|
485
487
|
if (r > -1) {
|
|
486
488
|
let e = [...Z.value];
|
|
487
|
-
e[r] = n, Z.value =
|
|
488
|
-
} else Z.value =
|
|
489
|
-
return
|
|
490
|
-
},
|
|
489
|
+
e[r] = n, Z.value = en(e);
|
|
490
|
+
} else Z.value = en([n, ...Z.value]);
|
|
491
|
+
return Zt(n), t;
|
|
492
|
+
}, nn = (e, t) => {
|
|
491
493
|
let n = Z.value.findIndex((t) => t.id === e);
|
|
492
494
|
if (n === -1) return;
|
|
493
495
|
let r = Z.value[n];
|
|
@@ -497,18 +499,18 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
497
499
|
...t,
|
|
498
500
|
id: r.id
|
|
499
501
|
}, a = [...Z.value];
|
|
500
|
-
a[n] = i, Z.value = a,
|
|
501
|
-
},
|
|
502
|
+
a[n] = i, Z.value = a, Zt(i);
|
|
503
|
+
}, rn = () => ({
|
|
502
504
|
toasts: Z,
|
|
503
|
-
show:
|
|
504
|
-
hide:
|
|
505
|
-
hideAll:
|
|
506
|
-
update:
|
|
507
|
-
}),
|
|
505
|
+
show: tn,
|
|
506
|
+
hide: Qt,
|
|
507
|
+
hideAll: $t,
|
|
508
|
+
update: nn
|
|
509
|
+
}), an = /* @__PURE__ */ M({
|
|
508
510
|
__name: "SToastProvider",
|
|
509
511
|
setup(e) {
|
|
510
|
-
let { toasts: t, hide: n } =
|
|
511
|
-
|
|
512
|
+
let { toasts: t, hide: n } = rn(), r = T(() => t.value.slice(0, 3)), i = F(!1), a = L({}), o = F(/* @__PURE__ */ new Set()), s = T(() => t.value[0] ?? null), c = T(() => s.value ? a.value[s.value.id] ?? 0 : 0), l = F(0), u = T(() => c.value > 0 ? c.value : l.value);
|
|
513
|
+
xt(c, (e) => {
|
|
512
514
|
e > 0 && (l.value = e);
|
|
513
515
|
});
|
|
514
516
|
let d = T(() => {
|
|
@@ -550,7 +552,7 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
550
552
|
}, b = (e) => {
|
|
551
553
|
e.onSecondaryAction && e.onSecondaryAction();
|
|
552
554
|
};
|
|
553
|
-
return (e, t) => (P(), E(
|
|
555
|
+
return (e, t) => (P(), E(mt, { to: "body" }, [k("div", {
|
|
554
556
|
class: "s-ui-toast-provider",
|
|
555
557
|
onMouseenter: m,
|
|
556
558
|
onMouseleave: h
|
|
@@ -558,7 +560,7 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
558
560
|
key: 0,
|
|
559
561
|
class: "s-ui-toast-provider__list",
|
|
560
562
|
style: N(d.value)
|
|
561
|
-
}, [(P(!0), O(
|
|
563
|
+
}, [(P(!0), O(pt, null, yt(r.value, (t, n) => (P(), E(Gt, {
|
|
562
564
|
key: t.id,
|
|
563
565
|
index: n,
|
|
564
566
|
expanded: i.value,
|
|
@@ -569,7 +571,7 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
569
571
|
"offset-y": f(n),
|
|
570
572
|
onHeightChange: (e) => g(t.id, e)
|
|
571
573
|
}, {
|
|
572
|
-
default: V(() => [I(e.$slots, "toast", { toast: t }, () => [t.component ? (P(), E(
|
|
574
|
+
default: V(() => [I(e.$slots, "toast", { toast: t }, () => [t.component ? (P(), E(bt(t.component), gt({
|
|
573
575
|
key: 0,
|
|
574
576
|
ref_for: !0
|
|
575
577
|
}, t.componentProps, {
|
|
@@ -629,4 +631,4 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
629
631
|
}
|
|
630
632
|
});
|
|
631
633
|
//#endregion
|
|
632
|
-
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, W as ENotificationLayout, G as ENotificationLeftside, U 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,
|
|
634
|
+
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, W as ENotificationLayout, G as ENotificationLeftside, U 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, Ht as SBanner, w as SButton, ue as SButtonGroup, he as SCard, dt as SChartBurnup, ct as SChartHorizontalBar, at as SChartLine, ut as SChartMultiLine, lt as SChartPie, ft as SChartProgress, ot as SChartStackedArea, st as SChartStackedBar, 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, J as SToast, an as SToastProvider, Qe as SToggle, X as TOAST_AUTO_DURATION_MAX_MS, Y as TOAST_AUTO_DURATION_MIN_MS, Kt as TOAST_AUTO_DURATION_MS_PER_CHAR, qt as computeAutoDuration, Se as computeConnectedPosition, Ct as createUiKit, ee as isSameColor, b as normalizeColorValue, y as resolveColorPreview, re as resolveOwnPropOrGroupedOrFallback, wt as setUiKitLocale, Tt as uiKitLocaleEn, Et as uiKitLocaleRu, Ge as useFlatTreeList, we as useFloatingOverlay, We as useSListEndReached, ae as useSelectionGroup, ce as useSelectionGroupItem, rn as useToast, Dt as useUiKitI18n };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./SChartSkeletonHost-CfM0zolj.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}});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { S as e } from "./SChartSkeletonHost-CecfQ3Ye.js";
|
|
2
|
+
//#region src/utils/chart/core/resolveSeriesPaletteColor.ts
|
|
3
|
+
var t = (t, n) => t.startsWith("--") ? e(t, n) : t, n = (n, r, i, a, o) => {
|
|
4
|
+
if (i) return t(i, r);
|
|
5
|
+
let s = a ? o.skeletonPalette : o.palette, c = a ? o.skeletonFallback : o.paletteFallback;
|
|
6
|
+
return e(s[n % s.length] ?? c, r);
|
|
7
|
+
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as t };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./SChartSkeletonHost-CfM0zolj.cjs"),t=require("./buildChartSeriesPoints-Bv3nXvSu.cjs");var n=(e,t,n)=>{if(t)return t;let r=e[0]?.points.length??0,i=0;for(let t=0;t<r;t+=1){let n=0;for(let r of e)n+=r.points[t]?.value??0;i=Math.max(i,n)}let a=Math.ceil(i/n)*n;return a>0?a:n*5},r=({seriesList:r,colorHostElement:i,yMax:a,yMin:o,yStep:s,skeleton:c=!1})=>t.r(r)?{axisLabelColor:e.S(e.g.axisLabel,i),gridColor:e.S(e.g.grid,i),tooltipBackgroundColor:e.S(e.g.tooltipBackground,i),tooltipTextColor:e.S(e.g.tooltipText,i),resolvedYMax:c&&a?a:n(r,a,s),resolvedYMin:c&&o!==void 0?o:0,chartLabels:r[0]?.points.map(e=>e.label)??[],pointCaptions:r[0]?.points.map(e=>e.caption)??[],topSeriesIndex:r.length-1}:null;Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return r}});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { S as e, g as t } from "./SChartSkeletonHost-CecfQ3Ye.js";
|
|
2
|
+
import { r as n } from "./buildChartSeriesPoints-D8Xpfwp7.js";
|
|
3
|
+
//#region src/utils/chart/stacked/resolveStackedYMax.ts
|
|
4
|
+
var r = (e, t, n) => {
|
|
5
|
+
if (t) return t;
|
|
6
|
+
let r = e[0]?.points.length ?? 0, i = 0;
|
|
7
|
+
for (let t = 0; t < r; t += 1) {
|
|
8
|
+
let n = 0;
|
|
9
|
+
for (let r of e) n += r.points[t]?.value ?? 0;
|
|
10
|
+
i = Math.max(i, n);
|
|
11
|
+
}
|
|
12
|
+
let a = Math.ceil(i / n) * n;
|
|
13
|
+
return a > 0 ? a : n * 5;
|
|
14
|
+
}, i = ({ seriesList: i, colorHostElement: a, yMax: o, yMin: s, yStep: c, skeleton: l = !1 }) => n(i) ? {
|
|
15
|
+
axisLabelColor: e(t.axisLabel, a),
|
|
16
|
+
gridColor: e(t.grid, a),
|
|
17
|
+
tooltipBackgroundColor: e(t.tooltipBackground, a),
|
|
18
|
+
tooltipTextColor: e(t.tooltipText, a),
|
|
19
|
+
resolvedYMax: l && o ? o : r(i, o, c),
|
|
20
|
+
resolvedYMin: l && s !== void 0 ? s : 0,
|
|
21
|
+
chartLabels: i[0]?.points.map((e) => e.label) ?? [],
|
|
22
|
+
pointCaptions: i[0]?.points.map((e) => e.caption) ?? [],
|
|
23
|
+
topSeriesIndex: i.length - 1
|
|
24
|
+
} : null;
|
|
25
|
+
//#endregion
|
|
26
|
+
export { i as t };
|