@shtabapp/ui-kit 1.44.0 → 1.45.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 +6 -0
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.types.d.ts +11 -0
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.types.d.ts.map +1 -0
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.vue.d.ts +5 -0
- package/dist/components/SChartSegmentedBar/SChartSegmentedBar.vue.d.ts.map +1 -0
- package/dist/components/SChartSegmentedBar/index.d.ts +3 -0
- package/dist/components/SChartSegmentedBar/index.d.ts.map +1 -0
- package/dist/components/SChartSegmentedBar/utils/buildSegmentedBarChartConfig.d.ts +10 -0
- package/dist/components/SChartSegmentedBar/utils/buildSegmentedBarChartConfig.d.ts.map +1 -0
- package/dist/components/SChartSegmentedBar/utils/createSegmentedBarBadgePlugin.d.ts +3 -0
- package/dist/components/SChartSegmentedBar/utils/createSegmentedBarBadgePlugin.d.ts.map +1 -0
- package/dist/components/SChartSegmentedBar/utils/skeletonSegments.d.ts +3 -0
- package/dist/components/SChartSegmentedBar/utils/skeletonSegments.d.ts.map +1 -0
- package/dist/components/SChartWidget/SChartWidget.types.d.ts +11 -0
- package/dist/components/SChartWidget/SChartWidget.types.d.ts.map +1 -0
- package/dist/components/SChartWidget/SChartWidget.vue.d.ts +28 -0
- package/dist/components/SChartWidget/SChartWidget.vue.d.ts.map +1 -0
- package/dist/components/SChartWidget/index.d.ts +3 -0
- package/dist/components/SChartWidget/index.d.ts.map +1 -0
- 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 +390 -162
- package/dist/uikit-components.css +1 -1
- package/dist/utils/chart/index.d.ts +1 -0
- package/dist/utils/chart/index.d.ts.map +1 -1
- package/dist/utils/chart/segmentedBar/resolveSegmentedBarSegmentColor.d.ts +2 -0
- package/dist/utils/chart/segmentedBar/resolveSegmentedBarSegmentColor.d.ts.map +1 -0
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -30,60 +30,86 @@ 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 {
|
|
42
|
-
import {
|
|
43
|
-
import {
|
|
33
|
+
import { S as T, g as E, n as at, r as ot, t as st } from "./SChartSkeletonHost-CecfQ3Ye.js";
|
|
34
|
+
import { t as ct } from "./SChartLine-CiREb4H_.js";
|
|
35
|
+
import { t as lt } from "./resolveSeriesPaletteColor-m8HQ9qwV.js";
|
|
36
|
+
import { t as ut } from "./SChartStackedArea-cjN9gECV.js";
|
|
37
|
+
import { t as dt } from "./SChartStackedBar-0jGICBA0.js";
|
|
38
|
+
import { t as ft } from "./SChartHorizontalBar-bm3Jexa3.js";
|
|
39
|
+
import { t as pt } from "./SChartPie-Dc_gjzIl.js";
|
|
40
|
+
import { t as mt } from "./SChartMultiLine-3cdB0U12.js";
|
|
41
|
+
import { t as ht } from "./SChartBurnup-DYBnJMnm.js";
|
|
42
|
+
import { t as gt } from "./SChartProgress-Zdphet8I.js";
|
|
43
|
+
import { t as _t } from "./SChartLegend-Chr0IZWN.js";
|
|
44
|
+
import { Fragment as vt, Teleport as yt, 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 bt, mergeProps as xt, normalizeClass as I, normalizeStyle as L, onMounted as St, openBlock as R, ref as z, renderList as Ct, renderSlot as B, resolveDynamicComponent as wt, shallowRef as Tt, toDisplayString as V, unref as H, useModel as Et, useSlots as U, useTemplateRef as Dt, watch as Ot, withCtx as W } from "vue";
|
|
45
|
+
import { ESIconName as G, SIcon as kt, createUiKit as At, setUiKitLocale as jt, uiKitLocaleEn as Mt, uiKitLocaleRu as Nt, useUiKitI18n as Pt, useUiKitI18n as Ft } from "@shtabapp/ui-kit-primitives";
|
|
46
|
+
import { useResizeObserver as It } from "@vueuse/core";
|
|
44
47
|
export * from "@shtabapp/ui-kit-primitives";
|
|
45
48
|
export * from "@shtabapp/ui-kit-tokens";
|
|
46
|
-
//#region src/
|
|
47
|
-
var
|
|
49
|
+
//#region src/utils/chart/segmentedBar/resolveSegmentedBarSegmentColor.ts
|
|
50
|
+
var Lt = [
|
|
51
|
+
"--s-ui-chart-segmented-bar-palette-1",
|
|
52
|
+
"--s-ui-chart-segmented-bar-palette-2",
|
|
53
|
+
"--s-ui-chart-segmented-bar-palette-3",
|
|
54
|
+
"--s-ui-chart-segmented-bar-palette-4",
|
|
55
|
+
"--s-ui-chart-segmented-bar-palette-5",
|
|
56
|
+
"--s-ui-chart-segmented-bar-palette-6",
|
|
57
|
+
"--s-ui-chart-segmented-bar-palette-7",
|
|
58
|
+
"--s-ui-chart-segmented-bar-palette-8"
|
|
59
|
+
], Rt = [
|
|
60
|
+
"--s-ui-chart-segmented-bar-skeleton-palette-1",
|
|
61
|
+
"--s-ui-chart-segmented-bar-skeleton-palette-2",
|
|
62
|
+
"--s-ui-chart-segmented-bar-skeleton-palette-3",
|
|
63
|
+
"--s-ui-chart-segmented-bar-skeleton-palette-4",
|
|
64
|
+
"--s-ui-chart-segmented-bar-skeleton-palette-5",
|
|
65
|
+
"--s-ui-chart-segmented-bar-skeleton-palette-6",
|
|
66
|
+
"--s-ui-chart-segmented-bar-skeleton-palette-7",
|
|
67
|
+
"--s-ui-chart-segmented-bar-skeleton-palette-8"
|
|
68
|
+
], zt = (e, t, n, r = !1) => lt(e, t, n, r, {
|
|
69
|
+
palette: Lt,
|
|
70
|
+
paletteFallback: Lt[0],
|
|
71
|
+
skeletonPalette: Rt,
|
|
72
|
+
skeletonFallback: Rt[0]
|
|
73
|
+
}), K = /* @__PURE__ */ function(e) {
|
|
48
74
|
return e.INFO_ACCENT = "info-accent", e.INFO_NORMAL = "info-normal", e.SUCCESS = "success", e.WARNING = "warning", e.DANGER = "danger", e.BILLING = "billing", e;
|
|
49
|
-
}({}),
|
|
75
|
+
}({}), q = /* @__PURE__ */ function(e) {
|
|
50
76
|
return e.HORIZONTAL = "horizontal", e.VERTICAL = "vertical", e;
|
|
51
|
-
}({}),
|
|
77
|
+
}({}), J = /* @__PURE__ */ function(e) {
|
|
52
78
|
return e.ICON = "icon", e.AVATAR = "avatar", e;
|
|
53
|
-
}({}),
|
|
79
|
+
}({}), Y = /* @__PURE__ */ function(e) {
|
|
54
80
|
return e.BANNER = "banner", e.TOAST = "toast", e;
|
|
55
|
-
}({}),
|
|
56
|
-
[
|
|
57
|
-
[
|
|
58
|
-
[
|
|
59
|
-
[
|
|
60
|
-
[
|
|
61
|
-
[
|
|
62
|
-
},
|
|
81
|
+
}({}), Bt = {
|
|
82
|
+
[K.INFO_ACCENT]: G.infoCircle,
|
|
83
|
+
[K.INFO_NORMAL]: G.infoCircle,
|
|
84
|
+
[K.SUCCESS]: G.checkCircle,
|
|
85
|
+
[K.WARNING]: G.alertCircle,
|
|
86
|
+
[K.DANGER]: G.dangerCircleFill,
|
|
87
|
+
[K.BILLING]: G.infoCircle
|
|
88
|
+
}, Vt = (e, t) => t || Bt[e], Ht = ["role"], Ut = { class: "s-ui-notification__body" }, Wt = {
|
|
63
89
|
key: 0,
|
|
64
90
|
class: "s-ui-notification__leftside"
|
|
65
|
-
},
|
|
91
|
+
}, Gt = {
|
|
66
92
|
key: 0,
|
|
67
93
|
class: "s-ui-notification__icon"
|
|
68
|
-
},
|
|
94
|
+
}, Kt = { class: "s-ui-notification__content" }, qt = { class: "s-ui-notification__title-row" }, Jt = { class: "s-ui-notification__title s-ui-typography-label-14-medium" }, Yt = {
|
|
69
95
|
key: 0,
|
|
70
96
|
class: "s-ui-notification__description-block"
|
|
71
|
-
},
|
|
97
|
+
}, Xt = {
|
|
72
98
|
key: 0,
|
|
73
99
|
class: "s-ui-notification__description s-ui-typography-label-12-medium"
|
|
74
|
-
},
|
|
100
|
+
}, Zt = {
|
|
75
101
|
key: 1,
|
|
76
102
|
class: "s-ui-notification__actions-stack"
|
|
77
|
-
},
|
|
103
|
+
}, Qt = {
|
|
78
104
|
key: 1,
|
|
79
105
|
class: "s-ui-notification__actions-row"
|
|
80
|
-
},
|
|
106
|
+
}, $t = /* @__PURE__ */ F({
|
|
81
107
|
__name: "SNotification",
|
|
82
108
|
props: {
|
|
83
|
-
type: { default: () =>
|
|
84
|
-
layout: { default: () =>
|
|
85
|
-
leftside: { default: () =>
|
|
86
|
-
surface: { default: () =>
|
|
109
|
+
type: { default: () => K.INFO_ACCENT },
|
|
110
|
+
layout: { default: () => q.HORIZONTAL },
|
|
111
|
+
leftside: { default: () => J.ICON },
|
|
112
|
+
surface: { default: () => Y.BANNER },
|
|
87
113
|
title: {},
|
|
88
114
|
description: {},
|
|
89
115
|
linkText: {},
|
|
@@ -110,14 +136,14 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
110
136
|
"secondaryAction"
|
|
111
137
|
],
|
|
112
138
|
setup(e, { emit: t }) {
|
|
113
|
-
let n = t, r =
|
|
139
|
+
let n = t, r = U(), i = D(() => [
|
|
114
140
|
`s-ui-notification--type-${e.type}`,
|
|
115
141
|
`s-ui-notification--layout-${e.layout}`,
|
|
116
142
|
`s-ui-notification--surface-${e.surface}`
|
|
117
|
-
]), a =
|
|
143
|
+
]), a = D(() => {
|
|
118
144
|
let t = {};
|
|
119
145
|
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;
|
|
120
|
-
}), s =
|
|
146
|
+
}), s = D(() => e.type === K.DANGER ? "alert" : "status"), l = D(() => Vt(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), _ = () => {
|
|
121
147
|
n("close");
|
|
122
148
|
}, v = () => {
|
|
123
149
|
n("linkClick");
|
|
@@ -126,35 +152,35 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
126
152
|
}, b = () => {
|
|
127
153
|
n("secondaryAction");
|
|
128
154
|
};
|
|
129
|
-
return (t, n) => (
|
|
130
|
-
class:
|
|
131
|
-
style:
|
|
155
|
+
return (t, n) => (R(), A("div", {
|
|
156
|
+
class: I(["s-ui-notification", i.value]),
|
|
157
|
+
style: L(a.value),
|
|
132
158
|
role: s.value
|
|
133
|
-
}, [
|
|
134
|
-
d.value ? (
|
|
159
|
+
}, [j("div", Ut, [
|
|
160
|
+
d.value ? (R(), A("div", Wt, [e.leftside === H(J).ICON ? (R(), A("div", Gt, [P(H(kt), {
|
|
135
161
|
name: l.value,
|
|
136
162
|
size: 16,
|
|
137
163
|
billing: u.value
|
|
138
|
-
}, null, 8, ["name", "billing"])])) : e.leftside ===
|
|
164
|
+
}, null, 8, ["name", "billing"])])) : e.leftside === H(J).AVATAR && e.avatar ? (R(), O(H(c), {
|
|
139
165
|
key: 1,
|
|
140
166
|
name: e.avatar.name,
|
|
141
167
|
src: e.avatar.src,
|
|
142
168
|
badge: e.avatar.badge,
|
|
143
|
-
size:
|
|
169
|
+
size: H(o).SIZE_20,
|
|
144
170
|
showName: !1
|
|
145
171
|
}, null, 8, [
|
|
146
172
|
"name",
|
|
147
173
|
"src",
|
|
148
174
|
"badge",
|
|
149
175
|
"size"
|
|
150
|
-
])) :
|
|
151
|
-
|
|
152
|
-
|
|
176
|
+
])) : k("", !0)])) : k("", !0),
|
|
177
|
+
j("div", Kt, [
|
|
178
|
+
j("div", qt, [j("span", Jt, [B(t.$slots, "title", {}, () => [N(V(e.title), 1)])]), e.layout === H(q).VERTICAL && e.closable ? (R(), O(H(w), {
|
|
153
179
|
key: 0,
|
|
154
180
|
class: "s-ui-notification__close",
|
|
155
|
-
appearance:
|
|
156
|
-
variant:
|
|
157
|
-
size:
|
|
181
|
+
appearance: H(C).BARE,
|
|
182
|
+
variant: H(S).NEUTRAL,
|
|
183
|
+
size: H(x).SMALL,
|
|
158
184
|
"aria-label": e.closeAriaLabel,
|
|
159
185
|
icon: "closeMini",
|
|
160
186
|
onClick: _
|
|
@@ -163,69 +189,69 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
163
189
|
"variant",
|
|
164
190
|
"size",
|
|
165
191
|
"aria-label"
|
|
166
|
-
])) :
|
|
167
|
-
f.value ? (
|
|
192
|
+
])) : k("", !0)]),
|
|
193
|
+
f.value ? (R(), A("div", Yt, [e.description || H(r).description ? (R(), A("span", Xt, [B(t.$slots, "description", {}, () => [N(V(e.description), 1)])])) : k("", !0), e.linkText ? (R(), O(H(w), {
|
|
168
194
|
key: 1,
|
|
169
195
|
class: "s-ui-notification__link",
|
|
170
|
-
appearance:
|
|
171
|
-
variant:
|
|
172
|
-
size:
|
|
196
|
+
appearance: H(C).BARE,
|
|
197
|
+
variant: H(S).MAIN,
|
|
198
|
+
size: H(x).SMALL,
|
|
173
199
|
onClick: v
|
|
174
200
|
}, {
|
|
175
|
-
default:
|
|
201
|
+
default: W(() => [N(V(e.linkText), 1)]),
|
|
176
202
|
_: 1
|
|
177
203
|
}, 8, [
|
|
178
204
|
"appearance",
|
|
179
205
|
"variant",
|
|
180
206
|
"size"
|
|
181
|
-
])) :
|
|
182
|
-
e.layout ===
|
|
207
|
+
])) : k("", !0)])) : k("", !0),
|
|
208
|
+
e.layout === H(q).VERTICAL && p.value ? (R(), A("div", Zt, [e.showPrimaryButton && e.primaryButtonText ? (R(), O(H(w), {
|
|
183
209
|
key: 0,
|
|
184
210
|
appearance: h.value,
|
|
185
211
|
variant: g.value,
|
|
186
|
-
size:
|
|
212
|
+
size: H(x).SMALL,
|
|
187
213
|
onClick: y
|
|
188
214
|
}, {
|
|
189
|
-
default:
|
|
215
|
+
default: W(() => [N(V(e.primaryButtonText), 1)]),
|
|
190
216
|
_: 1
|
|
191
217
|
}, 8, [
|
|
192
218
|
"appearance",
|
|
193
219
|
"variant",
|
|
194
220
|
"size"
|
|
195
|
-
])) :
|
|
221
|
+
])) : k("", !0), e.showPrimaryButton && e.secondaryButtonText ? (R(), O(H(w), {
|
|
196
222
|
key: 1,
|
|
197
|
-
appearance:
|
|
198
|
-
variant:
|
|
199
|
-
size:
|
|
223
|
+
appearance: H(C).BARE,
|
|
224
|
+
variant: H(S).NEUTRAL,
|
|
225
|
+
size: H(x).SMALL,
|
|
200
226
|
onClick: b
|
|
201
227
|
}, {
|
|
202
|
-
default:
|
|
228
|
+
default: W(() => [N(V(e.secondaryButtonText), 1)]),
|
|
203
229
|
_: 1
|
|
204
230
|
}, 8, [
|
|
205
231
|
"appearance",
|
|
206
232
|
"variant",
|
|
207
233
|
"size"
|
|
208
|
-
])) :
|
|
234
|
+
])) : k("", !0)])) : k("", !0)
|
|
209
235
|
]),
|
|
210
|
-
e.layout ===
|
|
236
|
+
e.layout === H(q).HORIZONTAL && m.value ? (R(), A("div", Qt, [e.showPrimaryButton && e.primaryButtonText ? (R(), O(H(w), {
|
|
211
237
|
key: 0,
|
|
212
238
|
appearance: h.value,
|
|
213
239
|
variant: g.value,
|
|
214
|
-
size:
|
|
240
|
+
size: H(x).SMALL,
|
|
215
241
|
onClick: y
|
|
216
242
|
}, {
|
|
217
|
-
default:
|
|
243
|
+
default: W(() => [N(V(e.primaryButtonText), 1)]),
|
|
218
244
|
_: 1
|
|
219
245
|
}, 8, [
|
|
220
246
|
"appearance",
|
|
221
247
|
"variant",
|
|
222
248
|
"size"
|
|
223
|
-
])) :
|
|
249
|
+
])) : k("", !0), e.layout === H(q).HORIZONTAL && e.closable ? (R(), O(H(w), {
|
|
224
250
|
key: 1,
|
|
225
251
|
class: "s-ui-notification__close",
|
|
226
|
-
appearance:
|
|
227
|
-
variant:
|
|
228
|
-
size:
|
|
252
|
+
appearance: H(C).BARE,
|
|
253
|
+
variant: H(S).NEUTRAL,
|
|
254
|
+
size: H(x).SMALL,
|
|
229
255
|
"aria-label": e.closeAriaLabel,
|
|
230
256
|
icon: "closeMini",
|
|
231
257
|
onClick: _
|
|
@@ -234,15 +260,15 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
234
260
|
"variant",
|
|
235
261
|
"size",
|
|
236
262
|
"aria-label"
|
|
237
|
-
])) :
|
|
238
|
-
])], 14,
|
|
263
|
+
])) : k("", !0)])) : k("", !0)
|
|
264
|
+
])], 14, Ht));
|
|
239
265
|
}
|
|
240
|
-
}),
|
|
266
|
+
}), en = /* @__PURE__ */ F({
|
|
241
267
|
__name: "SBanner",
|
|
242
268
|
props: {
|
|
243
|
-
type: { default: () =>
|
|
244
|
-
layout: { default: () =>
|
|
245
|
-
leftside: { default: () =>
|
|
269
|
+
type: { default: () => K.INFO_ACCENT },
|
|
270
|
+
layout: { default: () => q.HORIZONTAL },
|
|
271
|
+
leftside: { default: () => J.ICON },
|
|
246
272
|
title: {},
|
|
247
273
|
description: {},
|
|
248
274
|
linkText: {},
|
|
@@ -268,14 +294,14 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
268
294
|
"secondaryAction"
|
|
269
295
|
],
|
|
270
296
|
setup(e, { emit: t }) {
|
|
271
|
-
let n = t, r =
|
|
272
|
-
return (t, i) => (
|
|
297
|
+
let n = t, r = U();
|
|
298
|
+
return (t, i) => (R(), O($t, {
|
|
273
299
|
class: "s-ui-banner",
|
|
274
300
|
"data-qa": "ui:banner",
|
|
275
301
|
type: e.type,
|
|
276
302
|
layout: e.layout,
|
|
277
303
|
leftside: e.leftside,
|
|
278
|
-
surface:
|
|
304
|
+
surface: H(Y).BANNER,
|
|
279
305
|
title: e.title,
|
|
280
306
|
description: e.description,
|
|
281
307
|
linkText: e.linkText,
|
|
@@ -291,13 +317,13 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
291
317
|
onLinkClick: i[1] ||= (e) => n("linkClick"),
|
|
292
318
|
onPrimaryAction: i[2] ||= (e) => n("primaryAction"),
|
|
293
319
|
onSecondaryAction: i[3] ||= (e) => n("secondaryAction")
|
|
294
|
-
},
|
|
320
|
+
}, M({ _: 2 }, [H(r).title ? {
|
|
295
321
|
name: "title",
|
|
296
|
-
fn:
|
|
322
|
+
fn: W(() => [B(t.$slots, "title")]),
|
|
297
323
|
key: "0"
|
|
298
|
-
} : void 0,
|
|
324
|
+
} : void 0, H(r).description ? {
|
|
299
325
|
name: "description",
|
|
300
|
-
fn:
|
|
326
|
+
fn: W(() => [B(t.$slots, "description")]),
|
|
301
327
|
key: "1"
|
|
302
328
|
} : void 0]), 1032, [
|
|
303
329
|
"type",
|
|
@@ -317,12 +343,12 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
317
343
|
"maxWidth"
|
|
318
344
|
]));
|
|
319
345
|
}
|
|
320
|
-
}),
|
|
346
|
+
}), tn = /* @__PURE__ */ F({
|
|
321
347
|
__name: "SToast",
|
|
322
348
|
props: {
|
|
323
|
-
type: { default: () =>
|
|
324
|
-
layout: { default: () =>
|
|
325
|
-
leftside: { default: () =>
|
|
349
|
+
type: { default: () => K.INFO_ACCENT },
|
|
350
|
+
layout: { default: () => q.HORIZONTAL },
|
|
351
|
+
leftside: { default: () => J.ICON },
|
|
326
352
|
title: {},
|
|
327
353
|
description: {},
|
|
328
354
|
linkText: {},
|
|
@@ -348,14 +374,14 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
348
374
|
"secondaryAction"
|
|
349
375
|
],
|
|
350
376
|
setup(e, { emit: t }) {
|
|
351
|
-
let n = t, r =
|
|
352
|
-
return (t, a) => (
|
|
377
|
+
let n = t, r = U(), i = D(() => e.width ?? 360);
|
|
378
|
+
return (t, a) => (R(), O($t, {
|
|
353
379
|
class: "s-ui-toast",
|
|
354
380
|
"data-qa": "ui:toast",
|
|
355
381
|
type: e.type,
|
|
356
382
|
layout: e.layout,
|
|
357
383
|
leftside: e.leftside,
|
|
358
|
-
surface:
|
|
384
|
+
surface: H(Y).TOAST,
|
|
359
385
|
title: e.title,
|
|
360
386
|
description: e.description,
|
|
361
387
|
linkText: e.linkText,
|
|
@@ -371,13 +397,13 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
371
397
|
onLinkClick: a[1] ||= (e) => n("linkClick"),
|
|
372
398
|
onPrimaryAction: a[2] ||= (e) => n("primaryAction"),
|
|
373
399
|
onSecondaryAction: a[3] ||= (e) => n("secondaryAction")
|
|
374
|
-
},
|
|
400
|
+
}, M({ _: 2 }, [H(r).title ? {
|
|
375
401
|
name: "title",
|
|
376
|
-
fn:
|
|
402
|
+
fn: W(() => [B(t.$slots, "title")]),
|
|
377
403
|
key: "0"
|
|
378
|
-
} : void 0,
|
|
404
|
+
} : void 0, H(r).description ? {
|
|
379
405
|
name: "description",
|
|
380
|
-
fn:
|
|
406
|
+
fn: W(() => [B(t.$slots, "description")]),
|
|
381
407
|
key: "1"
|
|
382
408
|
} : void 0]), 1032, [
|
|
383
409
|
"type",
|
|
@@ -397,13 +423,13 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
397
423
|
"width"
|
|
398
424
|
]));
|
|
399
425
|
}
|
|
400
|
-
}),
|
|
426
|
+
}), nn = .05, rn = [
|
|
401
427
|
"data-mounted",
|
|
402
428
|
"data-front",
|
|
403
429
|
"data-expanded",
|
|
404
430
|
"data-removed",
|
|
405
431
|
"data-visible"
|
|
406
|
-
],
|
|
432
|
+
], an = /* @__PURE__ */ F({
|
|
407
433
|
__name: "SToastProviderToast",
|
|
408
434
|
props: {
|
|
409
435
|
index: {},
|
|
@@ -416,7 +442,7 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
416
442
|
},
|
|
417
443
|
emits: ["heightChange"],
|
|
418
444
|
setup(e, { emit: t }) {
|
|
419
|
-
let n = t, r =
|
|
445
|
+
let n = t, r = z(null), i = z(0), a = z(!1), o = D(() => e.index === 0), s = D(() => 1 - e.index * nn), c = D(() => ({
|
|
420
446
|
"--s-ui-toast-provider-toasts-before": String(e.index),
|
|
421
447
|
"--s-ui-toast-provider-lift-amount": `${e.stackPeek * -1}px`,
|
|
422
448
|
"--s-ui-toast-provider-front-toast-height": `${e.frontToastHeight}px`,
|
|
@@ -425,95 +451,95 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
425
451
|
"--s-ui-toast-provider-stack-scale": String(s.value),
|
|
426
452
|
zIndex: String(1e3 - e.index)
|
|
427
453
|
}));
|
|
428
|
-
return
|
|
454
|
+
return It(r, (e) => {
|
|
429
455
|
let t = e[0]?.contentRect.height ?? 0;
|
|
430
456
|
t !== i.value && (i.value = t, n("heightChange", t));
|
|
431
|
-
}),
|
|
457
|
+
}), St(() => {
|
|
432
458
|
requestAnimationFrame(() => {
|
|
433
459
|
requestAnimationFrame(() => {
|
|
434
460
|
a.value = !0;
|
|
435
461
|
});
|
|
436
462
|
});
|
|
437
|
-
}), (t, n) => (
|
|
463
|
+
}), (t, n) => (R(), A("div", {
|
|
438
464
|
class: "s-ui-toast-provider__toast",
|
|
439
465
|
"data-mounted": a.value,
|
|
440
466
|
"data-front": o.value,
|
|
441
467
|
"data-expanded": e.expanded,
|
|
442
468
|
"data-removed": e.removed,
|
|
443
469
|
"data-visible": e.visible,
|
|
444
|
-
style:
|
|
445
|
-
}, [
|
|
470
|
+
style: L(c.value)
|
|
471
|
+
}, [j("div", {
|
|
446
472
|
ref_key: "contentRef",
|
|
447
473
|
ref: r,
|
|
448
474
|
class: "s-ui-toast-provider__toast-content"
|
|
449
|
-
}, [
|
|
475
|
+
}, [B(t.$slots, "default")], 512)], 12, rn));
|
|
450
476
|
}
|
|
451
|
-
}),
|
|
452
|
-
let n =
|
|
453
|
-
return n > 1e4 ?
|
|
454
|
-
},
|
|
455
|
-
type:
|
|
456
|
-
layout:
|
|
457
|
-
leftside:
|
|
477
|
+
}), on = 4e3, sn = 1e4, cn = 50, ln = (e, t) => {
|
|
478
|
+
let n = on + (e.length + (t?.length ?? 0)) * 50;
|
|
479
|
+
return n > 1e4 ? sn : n;
|
|
480
|
+
}, X = Tt([]), Z = /* @__PURE__ */ new Map(), un = 0, dn = {
|
|
481
|
+
type: K.INFO_ACCENT,
|
|
482
|
+
layout: q.HORIZONTAL,
|
|
483
|
+
leftside: J.ICON,
|
|
458
484
|
showPrimaryButton: !1,
|
|
459
485
|
closable: !0
|
|
460
|
-
},
|
|
461
|
-
let t =
|
|
462
|
-
t && (window.clearTimeout(t),
|
|
463
|
-
},
|
|
464
|
-
|
|
465
|
-
let t = e.duration === void 0 ?
|
|
486
|
+
}, fn = () => `toast-${Date.now()}-${++un}`, Q = (e) => {
|
|
487
|
+
let t = Z.get(e);
|
|
488
|
+
t && (window.clearTimeout(t), Z.delete(e));
|
|
489
|
+
}, pn = (e) => {
|
|
490
|
+
Q(e.id);
|
|
491
|
+
let t = e.duration === void 0 ? ln(e.title, e.description) : e.duration;
|
|
466
492
|
if (t > 0) {
|
|
467
493
|
let n = window.setTimeout(() => {
|
|
468
|
-
|
|
494
|
+
mn(e.id);
|
|
469
495
|
}, t);
|
|
470
|
-
|
|
496
|
+
Z.set(e.id, n);
|
|
471
497
|
}
|
|
472
|
-
},
|
|
473
|
-
let t =
|
|
498
|
+
}, mn = (e) => {
|
|
499
|
+
let t = X.value.findIndex((t) => t.id === e);
|
|
474
500
|
if (t === -1) return;
|
|
475
|
-
let n =
|
|
476
|
-
n && (
|
|
477
|
-
},
|
|
478
|
-
|
|
479
|
-
},
|
|
480
|
-
|
|
481
|
-
}), e.slice(0, 3)),
|
|
482
|
-
let t = e.id ??
|
|
483
|
-
...
|
|
501
|
+
let n = X.value[t];
|
|
502
|
+
n && (Q(e), n.onClose && n.onClose(), X.value = X.value.filter((t) => t.id !== e));
|
|
503
|
+
}, hn = () => {
|
|
504
|
+
Z.forEach((e) => window.clearTimeout(e)), Z.clear(), X.value = [];
|
|
505
|
+
}, gn = (e) => e.length <= 3 ? e : (e.slice(3).forEach((e) => {
|
|
506
|
+
Q(e.id);
|
|
507
|
+
}), e.slice(0, 3)), _n = (e) => {
|
|
508
|
+
let t = e.id ?? fn(), n = {
|
|
509
|
+
...dn,
|
|
484
510
|
...e,
|
|
485
511
|
id: t
|
|
486
|
-
}, r =
|
|
512
|
+
}, r = X.value.findIndex((e) => e.id === t);
|
|
487
513
|
if (r > -1) {
|
|
488
|
-
let e = [...
|
|
489
|
-
e[r] = n,
|
|
490
|
-
} else
|
|
491
|
-
return
|
|
492
|
-
},
|
|
493
|
-
let n =
|
|
514
|
+
let e = [...X.value];
|
|
515
|
+
e[r] = n, X.value = gn(e);
|
|
516
|
+
} else X.value = gn([n, ...X.value]);
|
|
517
|
+
return pn(n), t;
|
|
518
|
+
}, vn = (e, t) => {
|
|
519
|
+
let n = X.value.findIndex((t) => t.id === e);
|
|
494
520
|
if (n === -1) return;
|
|
495
|
-
let r =
|
|
521
|
+
let r = X.value[n];
|
|
496
522
|
if (!r) return;
|
|
497
523
|
let i = {
|
|
498
524
|
...r,
|
|
499
525
|
...t,
|
|
500
526
|
id: r.id
|
|
501
|
-
}, a = [...
|
|
502
|
-
a[n] = i,
|
|
503
|
-
},
|
|
504
|
-
toasts:
|
|
505
|
-
show:
|
|
506
|
-
hide:
|
|
507
|
-
hideAll:
|
|
508
|
-
update:
|
|
509
|
-
}),
|
|
527
|
+
}, a = [...X.value];
|
|
528
|
+
a[n] = i, X.value = a, pn(i);
|
|
529
|
+
}, yn = () => ({
|
|
530
|
+
toasts: X,
|
|
531
|
+
show: _n,
|
|
532
|
+
hide: mn,
|
|
533
|
+
hideAll: hn,
|
|
534
|
+
update: vn
|
|
535
|
+
}), bn = /* @__PURE__ */ F({
|
|
510
536
|
__name: "SToastProvider",
|
|
511
537
|
setup(e) {
|
|
512
|
-
let { toasts: t, hide: n } =
|
|
513
|
-
|
|
538
|
+
let { toasts: t, hide: n } = yn(), r = D(() => t.value.slice(0, 3)), i = z(!1), a = Tt({}), 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);
|
|
539
|
+
Ot(c, (e) => {
|
|
514
540
|
e > 0 && (l.value = e);
|
|
515
541
|
});
|
|
516
|
-
let d =
|
|
542
|
+
let d = D(() => {
|
|
517
543
|
if (r.value.length === 0) return {};
|
|
518
544
|
if (i.value) return { height: `${r.value.reduce((e, t, n) => {
|
|
519
545
|
let r = a.value[t.id] ?? 0, i = n > 0 ? 4 : 0;
|
|
@@ -552,32 +578,32 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
552
578
|
}, b = (e) => {
|
|
553
579
|
e.onSecondaryAction && e.onSecondaryAction();
|
|
554
580
|
};
|
|
555
|
-
return (e, t) => (
|
|
581
|
+
return (e, t) => (R(), O(yt, { to: "body" }, [j("div", {
|
|
556
582
|
class: "s-ui-toast-provider",
|
|
557
583
|
onMouseenter: m,
|
|
558
584
|
onMouseleave: h
|
|
559
|
-
}, [r.value.length > 0 ? (
|
|
585
|
+
}, [r.value.length > 0 ? (R(), A("div", {
|
|
560
586
|
key: 0,
|
|
561
587
|
class: "s-ui-toast-provider__list",
|
|
562
|
-
style:
|
|
563
|
-
}, [(
|
|
588
|
+
style: L(d.value)
|
|
589
|
+
}, [(R(!0), A(vt, null, Ct(r.value, (t, n) => (R(), O(an, {
|
|
564
590
|
key: t.id,
|
|
565
591
|
index: n,
|
|
566
592
|
expanded: i.value,
|
|
567
593
|
"front-toast-height": u.value,
|
|
568
|
-
"stack-peek":
|
|
594
|
+
"stack-peek": H(10),
|
|
569
595
|
removed: p(t.id),
|
|
570
|
-
visible: n <
|
|
596
|
+
visible: n < H(3),
|
|
571
597
|
"offset-y": f(n),
|
|
572
598
|
onHeightChange: (e) => g(t.id, e)
|
|
573
599
|
}, {
|
|
574
|
-
default:
|
|
600
|
+
default: W(() => [B(e.$slots, "toast", { toast: t }, () => [t.component ? (R(), O(wt(t.component), xt({
|
|
575
601
|
key: 0,
|
|
576
602
|
ref_for: !0
|
|
577
603
|
}, t.componentProps, {
|
|
578
604
|
toast: t,
|
|
579
605
|
onClose: (e) => _(t.id)
|
|
580
|
-
}), null, 16, ["toast", "onClose"])) : (
|
|
606
|
+
}), null, 16, ["toast", "onClose"])) : (R(), O(H(tn), {
|
|
581
607
|
key: 1,
|
|
582
608
|
type: t.type,
|
|
583
609
|
layout: t.layout,
|
|
@@ -627,8 +653,210 @@ var U = /* @__PURE__ */ function(e) {
|
|
|
627
653
|
"visible",
|
|
628
654
|
"offset-y",
|
|
629
655
|
"onHeightChange"
|
|
630
|
-
]))), 128))], 4)) :
|
|
656
|
+
]))), 128))], 4)) : k("", !0)], 32)]));
|
|
657
|
+
}
|
|
658
|
+
}), xn = 4, Sn = 4, Cn = 1, wn = "400 12px var(--s-ui-font-family-label)", Tn = 4, En = (e, t, n, r, i, a) => {
|
|
659
|
+
let o = Math.min(a, r / 2, i / 2);
|
|
660
|
+
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
|
+
}, Dn = (e) => {
|
|
662
|
+
let t = e.getProps([
|
|
663
|
+
"x",
|
|
664
|
+
"y",
|
|
665
|
+
"base"
|
|
666
|
+
], !0), n = Number(t.x), r = Number(t.y), i = Number(t.base);
|
|
667
|
+
return !Number.isFinite(n) || !Number.isFinite(r) || !Number.isFinite(i) ? null : {
|
|
668
|
+
left: Math.min(i, n),
|
|
669
|
+
width: Math.abs(n - i),
|
|
670
|
+
centerY: r
|
|
671
|
+
};
|
|
672
|
+
}, On = (e, t, n, r) => {
|
|
673
|
+
let i = Dn(t);
|
|
674
|
+
if (!i) return;
|
|
675
|
+
let a = `${n}`, o = e.measureText(a).width + xn * 2;
|
|
676
|
+
if (i.width < o + Tn * 2) return;
|
|
677
|
+
let s = i.left + i.width / 2;
|
|
678
|
+
En(e, s - o / 2, i.centerY - 20 / 2, o, 20, Sn), e.fillStyle = r.background, e.fill(), e.lineWidth = Cn, e.strokeStyle = r.border, e.stroke(), e.fillStyle = r.text, e.fillText(a, s, i.centerY);
|
|
679
|
+
}, kn = (e) => ({
|
|
680
|
+
id: "segmentedBarBadge",
|
|
681
|
+
afterDatasetsDraw(t) {
|
|
682
|
+
let n = {
|
|
683
|
+
background: T(E.pieBadgeBackground, e),
|
|
684
|
+
border: T(E.pieBadgeBorder, e),
|
|
685
|
+
text: T(E.pieBadgeText, e)
|
|
686
|
+
}, { ctx: r } = t;
|
|
687
|
+
r.save(), r.font = wn, r.textAlign = "center", r.textBaseline = "middle", t.data.datasets.forEach((e, i) => {
|
|
688
|
+
let a = t.getDatasetMeta(i)?.data[0], o = e.data[0];
|
|
689
|
+
a && typeof o == "number" && o > 0 && On(r, a, o, n);
|
|
690
|
+
}), r.restore();
|
|
691
|
+
}
|
|
692
|
+
}), An = 40, jn = 4, Mn = 1, Nn = ({ segments: e, segmentColors: t, colorHostElement: n, skeleton: r = !1 }) => {
|
|
693
|
+
if (e.length === 0) return null;
|
|
694
|
+
let i = T("--s-ui-color-surface-primary", n), a = e.reduce((e, t) => e + t.value, 0);
|
|
695
|
+
return {
|
|
696
|
+
type: "bar",
|
|
697
|
+
data: {
|
|
698
|
+
labels: [""],
|
|
699
|
+
datasets: e.map((e, n) => ({
|
|
700
|
+
label: e.label,
|
|
701
|
+
data: [e.value],
|
|
702
|
+
backgroundColor: t[n],
|
|
703
|
+
hoverBackgroundColor: t[n],
|
|
704
|
+
borderColor: i,
|
|
705
|
+
borderWidth: {
|
|
706
|
+
left: Mn,
|
|
707
|
+
right: Mn
|
|
708
|
+
},
|
|
709
|
+
borderSkipped: !1,
|
|
710
|
+
borderRadius: jn,
|
|
711
|
+
barThickness: An,
|
|
712
|
+
stack: "track"
|
|
713
|
+
}))
|
|
714
|
+
},
|
|
715
|
+
options: {
|
|
716
|
+
indexAxis: "y",
|
|
717
|
+
responsive: !0,
|
|
718
|
+
maintainAspectRatio: !1,
|
|
719
|
+
layout: { padding: 0 },
|
|
720
|
+
events: [],
|
|
721
|
+
plugins: {
|
|
722
|
+
legend: { display: !1 },
|
|
723
|
+
tooltip: { enabled: !1 }
|
|
724
|
+
},
|
|
725
|
+
scales: {
|
|
726
|
+
x: {
|
|
727
|
+
display: !1,
|
|
728
|
+
stacked: !0,
|
|
729
|
+
min: 0,
|
|
730
|
+
max: a
|
|
731
|
+
},
|
|
732
|
+
y: {
|
|
733
|
+
display: !1,
|
|
734
|
+
stacked: !0
|
|
735
|
+
}
|
|
736
|
+
}
|
|
737
|
+
},
|
|
738
|
+
plugins: r ? [] : [kn(n)]
|
|
739
|
+
};
|
|
740
|
+
}, $ = [
|
|
741
|
+
4,
|
|
742
|
+
1,
|
|
743
|
+
2,
|
|
744
|
+
1,
|
|
745
|
+
3,
|
|
746
|
+
1,
|
|
747
|
+
2,
|
|
748
|
+
1
|
|
749
|
+
].map((e, t) => ({
|
|
750
|
+
label: `Series ${t + 1}`,
|
|
751
|
+
value: e
|
|
752
|
+
})), Pn = { class: "s-ui-chart-segmented-bar__canvas-wrap" }, Fn = /* @__PURE__ */ F({
|
|
753
|
+
__name: "SChartSegmentedBar",
|
|
754
|
+
props: {
|
|
755
|
+
segments: { default: () => [] },
|
|
756
|
+
showLegend: {
|
|
757
|
+
type: Boolean,
|
|
758
|
+
default: !0
|
|
759
|
+
},
|
|
760
|
+
loading: {
|
|
761
|
+
type: Boolean,
|
|
762
|
+
default: !1
|
|
763
|
+
}
|
|
764
|
+
},
|
|
765
|
+
setup(e) {
|
|
766
|
+
let t = at, n = Dt("chartRootRef"), r = Dt("chartCanvasRef"), i = D(() => e.loading ? $ : e.segments.filter((e) => e.value > 0)), a = D(() => i.value.map((t, r) => zt(r, n.value, t.fillColor, e.loading))), o = D(() => Nn({
|
|
767
|
+
segments: i.value,
|
|
768
|
+
segmentColors: a.value,
|
|
769
|
+
colorHostElement: n.value,
|
|
770
|
+
skeleton: e.loading
|
|
771
|
+
})), s = D(() => (e.loading ? $ : e.segments).map((t, r) => ({
|
|
772
|
+
label: t.label,
|
|
773
|
+
color: zt(r, n.value, t.fillColor, e.loading)
|
|
774
|
+
}))), c = D(() => e.showLegend && s.value.length > 0);
|
|
775
|
+
return ot({
|
|
776
|
+
canvasRef: r,
|
|
777
|
+
config: o,
|
|
778
|
+
enabled: D(() => e.loading || i.value.length > 0)
|
|
779
|
+
}), (i, a) => (R(), A("div", {
|
|
780
|
+
ref_key: "chartRootRef",
|
|
781
|
+
ref: n,
|
|
782
|
+
class: I(["s-ui-chart-segmented-bar", { "s-ui-chart-segmented-bar--skeleton": e.loading }]),
|
|
783
|
+
"data-qa": "ui:chart-segmented-bar"
|
|
784
|
+
}, [j("div", Pn, [P(H(st), {
|
|
785
|
+
loading: e.loading,
|
|
786
|
+
type: H(t).CARTESIAN
|
|
787
|
+
}, {
|
|
788
|
+
default: W(() => [j("canvas", {
|
|
789
|
+
ref_key: "chartCanvasRef",
|
|
790
|
+
ref: r,
|
|
791
|
+
class: "s-ui-chart-segmented-bar__canvas"
|
|
792
|
+
}, null, 512)]),
|
|
793
|
+
_: 1
|
|
794
|
+
}, 8, ["loading", "type"])]), c.value ? (R(), O(H(_t), {
|
|
795
|
+
key: 0,
|
|
796
|
+
items: s.value,
|
|
797
|
+
disabled: e.loading
|
|
798
|
+
}, null, 8, ["items", "disabled"])) : k("", !0)], 2));
|
|
799
|
+
}
|
|
800
|
+
}), In = {
|
|
801
|
+
key: 0,
|
|
802
|
+
class: "s-ui-chart-widget__header"
|
|
803
|
+
}, Ln = {
|
|
804
|
+
key: 0,
|
|
805
|
+
class: "s-ui-chart-widget__title-skeleton",
|
|
806
|
+
"aria-hidden": "true"
|
|
807
|
+
}, Rn = {
|
|
808
|
+
key: 1,
|
|
809
|
+
class: "s-ui-chart-widget__title s-ui-typography-label-16-medium"
|
|
810
|
+
}, zn = { class: "s-ui-chart-widget__controls" }, Bn = {
|
|
811
|
+
key: 1,
|
|
812
|
+
class: "s-ui-chart-widget__content"
|
|
813
|
+
}, Vn = /* @__PURE__ */ F({
|
|
814
|
+
__name: "SChartWidget",
|
|
815
|
+
props: /*@__PURE__*/ bt({
|
|
816
|
+
title: { default: "" },
|
|
817
|
+
collapsible: {
|
|
818
|
+
type: Boolean,
|
|
819
|
+
default: !1
|
|
820
|
+
},
|
|
821
|
+
hideContentWhenCollapsed: {
|
|
822
|
+
type: Boolean,
|
|
823
|
+
default: !0
|
|
824
|
+
},
|
|
825
|
+
loading: {
|
|
826
|
+
type: Boolean,
|
|
827
|
+
default: !1
|
|
828
|
+
}
|
|
829
|
+
}, {
|
|
830
|
+
collapsed: {
|
|
831
|
+
type: Boolean,
|
|
832
|
+
default: !1
|
|
833
|
+
},
|
|
834
|
+
collapsedModifiers: {}
|
|
835
|
+
}),
|
|
836
|
+
emits: ["update:collapsed"],
|
|
837
|
+
setup(e) {
|
|
838
|
+
let t = Et(e, "collapsed"), n = U(), { t: r } = Ft(), 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
|
+
return (n, r) => (R(), A("div", {
|
|
840
|
+
class: I(["s-ui-chart-widget", { "s-ui-chart-widget--skeleton": e.loading }]),
|
|
841
|
+
"data-qa": "ui:chart-widget"
|
|
842
|
+
}, [i.value ? (R(), A("div", In, [e.loading ? (R(), A("span", Ln)) : (R(), A("span", Rn, [B(n.$slots, "title", {}, () => [N(V(e.title), 1)])])), j("div", zn, [B(n.$slots, "actions"), e.collapsible ? (R(), O(H(w), {
|
|
843
|
+
key: 0,
|
|
844
|
+
appearance: H(C).OUTLINED,
|
|
845
|
+
variant: H(S).NEUTRAL,
|
|
846
|
+
size: H(x).SMALL,
|
|
847
|
+
icon: t.value ? H(G).chevronDown : H(G).chevronUp,
|
|
848
|
+
"aria-label": o.value,
|
|
849
|
+
"aria-expanded": !t.value,
|
|
850
|
+
onClick: r[0] ||= (e) => t.value = !t.value
|
|
851
|
+
}, null, 8, [
|
|
852
|
+
"appearance",
|
|
853
|
+
"variant",
|
|
854
|
+
"size",
|
|
855
|
+
"icon",
|
|
856
|
+
"aria-label",
|
|
857
|
+
"aria-expanded"
|
|
858
|
+
])) : k("", !0)])])) : k("", !0), a.value ? (R(), A("div", Bn, [B(n.$slots, "default")])) : k("", !0)], 2));
|
|
631
859
|
}
|
|
632
860
|
});
|
|
633
861
|
//#endregion
|
|
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,
|
|
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, en as SBanner, w as SButton, ue as SButtonGroup, he as SCard, ht as SChartBurnup, ft as SChartHorizontalBar, ct as SChartLine, mt as SChartMultiLine, pt as SChartPie, gt as SChartProgress, Fn as SChartSegmentedBar, ut as SChartStackedArea, dt as SChartStackedBar, Vn 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, tn as SToast, bn as SToastProvider, Qe as SToggle, sn as TOAST_AUTO_DURATION_MAX_MS, on as TOAST_AUTO_DURATION_MIN_MS, cn as TOAST_AUTO_DURATION_MS_PER_CHAR, ln as computeAutoDuration, Se as computeConnectedPosition, At as createUiKit, ee as isSameColor, b as normalizeColorValue, y as resolveColorPreview, re as resolveOwnPropOrGroupedOrFallback, jt as setUiKitLocale, Mt as uiKitLocaleEn, Nt as uiKitLocaleRu, Ge as useFlatTreeList, we as useFloatingOverlay, We as useSListEndReached, ae as useSelectionGroup, ce as useSelectionGroupItem, yn as useToast, Pt as useUiKitI18n };
|