@dskripchenko/ui 0.5.0 → 0.6.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/dist/components/Gauge/UidGauge.vue.d.ts +36 -0
- package/dist/components/Gauge/index.d.ts +2 -0
- package/dist/components/Heatmap/UidHeatmap.vue.d.ts +31 -0
- package/dist/components/Heatmap/index.d.ts +2 -0
- package/dist/components/ProgressRing/UidProgressRing.vue.d.ts +40 -0
- package/dist/components/ProgressRing/index.d.ts +2 -0
- package/dist/components/Sparkline/UidSparkline.vue.d.ts +25 -0
- package/dist/components/Sparkline/index.d.ts +2 -0
- package/dist/components/Stat/UidStat.vue.d.ts +2 -0
- package/dist/components/TreeView/UidTreeItem.vue.d.ts +3 -1
- package/dist/components/TreeView/context.d.ts +6 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +8 -0
- package/dist/index.mjs +1255 -572
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { t as e } from "./UidIcon-5947kXOj.js";
|
|
2
2
|
import { Fragment as t, Teleport as n, Transition as r, TransitionGroup as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, inject as p, mergeModels as m, mergeProps as h, nextTick as g, normalizeClass as _, normalizeStyle as v, onMounted as y, onUnmounted as b, openBlock as x, provide as S, readonly as C, ref as w, renderList as T, renderSlot as E, resolveComponent as D, resolveDynamicComponent as O, toDisplayString as k, toValue as A, unref as j, useId as M, useModel as N, useSlots as P, vModelDynamic as F, vModelText as I, vShow as L, watch as R, withCtx as z, withDirectives as B, withKeys as V, withModifiers as H } from "vue";
|
|
3
|
-
import { AlertCircle as U, AlertTriangle as W, ArrowDown as G, ArrowLeft as ee, ArrowUp as K, ArrowUpDown as te, Calendar as ne, Check as q, CheckCircle2 as J, ChevronDown as
|
|
3
|
+
import { AlertCircle as U, AlertTriangle as W, ArrowDown as G, ArrowLeft as ee, ArrowUp as K, ArrowUpDown as te, Calendar as ne, Check as q, CheckCircle2 as J, ChevronDown as Y, ChevronLeft as re, ChevronRight as X, ChevronUp as ie, Clock as ae, Copy as oe, FileText as se, FolderOpen as ce, Info as le, Minus as ue, Plus as de, Search as fe, ServerCrash as pe, Star as me, Upload as he, WifiOff as ge, X as _e, XCircle as ve } from "lucide-vue-next";
|
|
4
4
|
//#region src/components/Button/UidButton.vue?vue&type=script&setup=true&lang.ts
|
|
5
5
|
var ye = [
|
|
6
6
|
"type",
|
|
@@ -909,7 +909,7 @@ var Ut = { class: "uid-alert__icon" }, Wt = { class: "uid-alert__content" }, Gt
|
|
|
909
909
|
emits: ["dismiss"],
|
|
910
910
|
setup(t, { emit: n }) {
|
|
911
911
|
let r = $(), i = t, o = n, u = {
|
|
912
|
-
info:
|
|
912
|
+
info: le,
|
|
913
913
|
success: J,
|
|
914
914
|
warning: W,
|
|
915
915
|
danger: U
|
|
@@ -930,7 +930,7 @@ var Ut = { class: "uid-alert__icon" }, Wt = { class: "uid-alert__content" }, Gt
|
|
|
930
930
|
"aria-label": j(r).common.close,
|
|
931
931
|
onClick: i[0] ||= (e) => o("dismiss")
|
|
932
932
|
}, [d(e, {
|
|
933
|
-
icon: j(
|
|
933
|
+
icon: j(_e),
|
|
934
934
|
size: 16
|
|
935
935
|
}, null, 8, ["icon"])], 8, qt)) : s("", !0)
|
|
936
936
|
], 2));
|
|
@@ -949,7 +949,7 @@ var Ut = { class: "uid-alert__icon" }, Wt = { class: "uid-alert__content" }, Gt
|
|
|
949
949
|
emits: ["dismiss"],
|
|
950
950
|
setup(t, { emit: n }) {
|
|
951
951
|
let r = $(), i = t, o = n, u = {
|
|
952
|
-
info:
|
|
952
|
+
info: le,
|
|
953
953
|
success: J,
|
|
954
954
|
warning: W,
|
|
955
955
|
danger: U
|
|
@@ -971,7 +971,7 @@ var Ut = { class: "uid-alert__icon" }, Wt = { class: "uid-alert__content" }, Gt
|
|
|
971
971
|
"aria-label": j(r).toast.close,
|
|
972
972
|
onClick: i[0] ||= (e) => o("dismiss", t.id)
|
|
973
973
|
}, [d(e, {
|
|
974
|
-
icon: j(
|
|
974
|
+
icon: j(_e),
|
|
975
975
|
size: 14
|
|
976
976
|
}, null, 8, ["icon"])], 8, $t)
|
|
977
977
|
], 2));
|
|
@@ -1221,7 +1221,7 @@ var gn = ["aria-labelledby"], _n = { class: "uid-modal__header" }, vn = ["id"],
|
|
|
1221
1221
|
"aria-label": j(a).modal.close,
|
|
1222
1222
|
onClick: C
|
|
1223
1223
|
}, [d(e, {
|
|
1224
|
-
icon: j(
|
|
1224
|
+
icon: j(_e),
|
|
1225
1225
|
size: 18
|
|
1226
1226
|
}, null, 8, ["icon"])], 8, yn))]),
|
|
1227
1227
|
l("div", bn, [E(i.$slots, "default")]),
|
|
@@ -1298,7 +1298,7 @@ var gn = ["aria-labelledby"], _n = { class: "uid-modal__header" }, vn = ["id"],
|
|
|
1298
1298
|
"aria-label": j(a).drawer.close,
|
|
1299
1299
|
onClick: T
|
|
1300
1300
|
}, [d(e, {
|
|
1301
|
-
icon: j(
|
|
1301
|
+
icon: j(_e),
|
|
1302
1302
|
size: 18
|
|
1303
1303
|
}, null, 8, ["icon"])], 8, En))]),
|
|
1304
1304
|
l("div", Dn, [E(i.$slots, "default")]),
|
|
@@ -1725,7 +1725,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
1725
1725
|
"aria-label": j(r).pagination.prev,
|
|
1726
1726
|
onClick: a[0] ||= (e) => p(i.value - 1)
|
|
1727
1727
|
}, [d(e, {
|
|
1728
|
-
icon: j(
|
|
1728
|
+
icon: j(re),
|
|
1729
1729
|
size: 16
|
|
1730
1730
|
}, null, 8, ["icon"])], 8, fr),
|
|
1731
1731
|
(x(!0), c(t, null, T(f.value, (e, n) => (x(), c(t, { key: `${n}-${e}` }, [e === "..." ? (x(), c("span", pr, " … ")) : (x(), c("button", {
|
|
@@ -1743,7 +1743,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
1743
1743
|
"aria-label": j(r).pagination.next,
|
|
1744
1744
|
onClick: a[1] ||= (e) => p(i.value + 1)
|
|
1745
1745
|
}, [d(e, {
|
|
1746
|
-
icon: j(
|
|
1746
|
+
icon: j(X),
|
|
1747
1747
|
size: 16
|
|
1748
1748
|
}, null, 8, ["icon"])], 8, hr)
|
|
1749
1749
|
]));
|
|
@@ -1775,7 +1775,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
1775
1775
|
"aria-label": t.prevLabel,
|
|
1776
1776
|
onClick: i[0] ||= (e) => r("prev")
|
|
1777
1777
|
}, [d(e, {
|
|
1778
|
-
icon: j(
|
|
1778
|
+
icon: j(re),
|
|
1779
1779
|
size: 16
|
|
1780
1780
|
}, null, 8, ["icon"]), u(" " + k(t.prevLabel), 1)], 8, vr), l("button", {
|
|
1781
1781
|
type: "button",
|
|
@@ -1784,7 +1784,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
1784
1784
|
"aria-label": t.nextLabel,
|
|
1785
1785
|
onClick: i[1] ||= (e) => r("next")
|
|
1786
1786
|
}, [u(k(t.nextLabel) + " ", 1), d(e, {
|
|
1787
|
-
icon: j(
|
|
1787
|
+
icon: j(X),
|
|
1788
1788
|
size: 16
|
|
1789
1789
|
}, null, 8, ["icon"])], 8, yr)]));
|
|
1790
1790
|
}
|
|
@@ -1992,7 +1992,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
1992
1992
|
"aria-label": j(r).common.clear,
|
|
1993
1993
|
onClick: a[0] ||= H((e) => i("dismiss"), ["stop"])
|
|
1994
1994
|
}, [d(e, {
|
|
1995
|
-
icon: j(
|
|
1995
|
+
icon: j(_e),
|
|
1996
1996
|
size: 10
|
|
1997
1997
|
}, null, 8, ["icon"])], 8, Wr)) : s("", !0)], 2));
|
|
1998
1998
|
}
|
|
@@ -2071,7 +2071,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2071
2071
|
disabled: t.disabled || void 0,
|
|
2072
2072
|
onClick: m
|
|
2073
2073
|
}, [l("span", Qr, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), l("span", $r, [d(e, {
|
|
2074
|
-
icon: j(
|
|
2074
|
+
icon: j(Y),
|
|
2075
2075
|
size: 16
|
|
2076
2076
|
}, null, 8, ["icon"])])], 8, Zr), l("div", {
|
|
2077
2077
|
id: o,
|
|
@@ -2212,7 +2212,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2212
2212
|
if (e) {
|
|
2213
2213
|
y.value = "";
|
|
2214
2214
|
let e = F.value.findIndex((e) => e.value === h.value);
|
|
2215
|
-
S.value = e >= 0 ? e : 0, await g(), u.searchable && O.value?.focus(),
|
|
2215
|
+
S.value = e >= 0 ? e : 0, await g(), u.searchable && O.value?.focus(), X(), document.addEventListener("pointerdown", ee);
|
|
2216
2216
|
} else document.removeEventListener("pointerdown", ee);
|
|
2217
2217
|
}), R(y, () => {
|
|
2218
2218
|
S.value = 0;
|
|
@@ -2237,22 +2237,22 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2237
2237
|
C.value?.contains(t) || H();
|
|
2238
2238
|
}
|
|
2239
2239
|
function K(e) {
|
|
2240
|
-
e.key === "ArrowDown" ? (e.preventDefault(), v.value ? ne() : V()) : e.key === "ArrowUp" ? (e.preventDefault(), v.value && J()) : e.key === "Enter" || e.key === " " ? (e.preventDefault(), v.value ?
|
|
2240
|
+
e.key === "ArrowDown" ? (e.preventDefault(), v.value ? ne() : V()) : e.key === "ArrowUp" ? (e.preventDefault(), v.value && J()) : e.key === "Enter" || e.key === " " ? (e.preventDefault(), v.value ? re() : V()) : e.key === "Escape" && H();
|
|
2241
2241
|
}
|
|
2242
2242
|
function te(e) {
|
|
2243
|
-
e.key === "ArrowDown" ? (e.preventDefault(), ne()) : e.key === "ArrowUp" ? (e.preventDefault(), J()) : e.key === "Enter" ? (e.preventDefault(),
|
|
2243
|
+
e.key === "ArrowDown" ? (e.preventDefault(), ne()) : e.key === "ArrowUp" ? (e.preventDefault(), J()) : e.key === "Enter" ? (e.preventDefault(), re()) : e.key === "Escape" && (H(), E.value?.focus());
|
|
2244
2244
|
}
|
|
2245
2245
|
function ne() {
|
|
2246
|
-
S.value = Math.min(S.value + 1, F.value.length - 1),
|
|
2246
|
+
S.value = Math.min(S.value + 1, F.value.length - 1), X();
|
|
2247
2247
|
}
|
|
2248
2248
|
function J() {
|
|
2249
|
-
S.value = Math.max(S.value - 1, 0),
|
|
2249
|
+
S.value = Math.max(S.value - 1, 0), X();
|
|
2250
2250
|
}
|
|
2251
|
-
function
|
|
2251
|
+
function re() {
|
|
2252
2252
|
let e = F.value[S.value];
|
|
2253
2253
|
e && W(e);
|
|
2254
2254
|
}
|
|
2255
|
-
function
|
|
2255
|
+
function X() {
|
|
2256
2256
|
g(() => {
|
|
2257
2257
|
(D.value?.querySelector("[data-active=\"true\"]"))?.scrollIntoView?.({ block: "nearest" });
|
|
2258
2258
|
});
|
|
@@ -2283,10 +2283,10 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2283
2283
|
"aria-label": j(f).common.clear,
|
|
2284
2284
|
onClick: G
|
|
2285
2285
|
}, [d(e, {
|
|
2286
|
-
icon: j(
|
|
2286
|
+
icon: j(_e),
|
|
2287
2287
|
size: 12
|
|
2288
2288
|
}, null, 8, ["icon"])], 8, hi)) : s("", !0), d(e, {
|
|
2289
|
-
icon: j(
|
|
2289
|
+
icon: j(Y),
|
|
2290
2290
|
size: 16,
|
|
2291
2291
|
class: _(["uid-select__chevron", { "uid-select__chevron--open": v.value }]),
|
|
2292
2292
|
"aria-hidden": "true"
|
|
@@ -2493,7 +2493,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2493
2493
|
R(h, (e) => {
|
|
2494
2494
|
e ? document.addEventListener("pointerdown", J) : document.removeEventListener("pointerdown", J);
|
|
2495
2495
|
});
|
|
2496
|
-
function
|
|
2496
|
+
function ie(e) {
|
|
2497
2497
|
e.key === "Enter" || e.key === " " ? (e.preventDefault(), ee()) : e.key === "Escape" && G();
|
|
2498
2498
|
}
|
|
2499
2499
|
return b(() => document.removeEventListener("pointerdown", J)), (i, a) => (x(), c("div", {
|
|
@@ -2514,7 +2514,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2514
2514
|
"aria-label": u.value,
|
|
2515
2515
|
"aria-disabled": n.disabled,
|
|
2516
2516
|
onClick: ee,
|
|
2517
|
-
onKeydown:
|
|
2517
|
+
onKeydown: ie
|
|
2518
2518
|
}, [l("span", { class: _(["uid-datepicker__value", { "uid-datepicker__value--placeholder": !m.value }]) }, k(m.value ? F.value : u.value), 3), l("div", Ti, [m.value ? (x(), c("button", {
|
|
2519
2519
|
key: 0,
|
|
2520
2520
|
type: "button",
|
|
@@ -2522,7 +2522,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2522
2522
|
"aria-label": j(o).common.clear,
|
|
2523
2523
|
onClick: q
|
|
2524
2524
|
}, " × ", 8, Ei)) : s("", !0), d(e, {
|
|
2525
|
-
icon: j(
|
|
2525
|
+
icon: j(Y),
|
|
2526
2526
|
size: 16,
|
|
2527
2527
|
class: _(["uid-datepicker__chevron", { "uid-datepicker__chevron--open": h.value }]),
|
|
2528
2528
|
"aria-hidden": "true"
|
|
@@ -2534,7 +2534,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2534
2534
|
"aria-label": j(o).datePicker.prevMonth,
|
|
2535
2535
|
onClick: te
|
|
2536
2536
|
}, [d(e, {
|
|
2537
|
-
icon: j(
|
|
2537
|
+
icon: j(re),
|
|
2538
2538
|
size: 16
|
|
2539
2539
|
}, null, 8, ["icon"])], 8, ki),
|
|
2540
2540
|
l("span", Ai, k(f.value[O.value]) + " " + k(D.value), 1),
|
|
@@ -2544,7 +2544,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2544
2544
|
"aria-label": j(o).datePicker.nextMonth,
|
|
2545
2545
|
onClick: ne
|
|
2546
2546
|
}, [d(e, {
|
|
2547
|
-
icon: j(
|
|
2547
|
+
icon: j(X),
|
|
2548
2548
|
size: 16
|
|
2549
2549
|
}, null, 8, ["icon"])], 8, ji)
|
|
2550
2550
|
]), l("div", {
|
|
@@ -2686,10 +2686,10 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2686
2686
|
class: "uid-colorpicker__panel",
|
|
2687
2687
|
role: "dialog",
|
|
2688
2688
|
"aria-label": "Выбор цвета"
|
|
2689
|
-
}, Hi = { class: "uid-colorpicker__controls" }, Ui = { class: "uid-colorpicker__sliders" }, Wi = { class: "uid-colorpicker__inputs" },
|
|
2689
|
+
}, Hi = { class: "uid-colorpicker__controls" }, Ui = { class: "uid-colorpicker__sliders" }, Wi = ["aria-valuenow"], Gi = ["aria-valuenow"], Ki = { class: "uid-colorpicker__inputs" }, qi = ["value"], Ji = {
|
|
2690
2690
|
key: 0,
|
|
2691
2691
|
class: "uid-colorpicker__presets"
|
|
2692
|
-
},
|
|
2692
|
+
}, Yi = ["aria-label", "onClick"], Xi = /* @__PURE__ */ f({
|
|
2693
2693
|
__name: "UidColorPicker",
|
|
2694
2694
|
props: /* @__PURE__ */ m({
|
|
2695
2695
|
disabled: {
|
|
@@ -2777,79 +2777,94 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2777
2777
|
y: Math.max(0, Math.min(1, (t.clientY - n.top) / n.height))
|
|
2778
2778
|
};
|
|
2779
2779
|
}
|
|
2780
|
-
function
|
|
2780
|
+
function Y(e) {
|
|
2781
2781
|
O.value = !0, e.currentTarget.setPointerCapture(e.pointerId);
|
|
2782
2782
|
let t = J(S.value, e);
|
|
2783
2783
|
t && (p.value = Math.round(t.x * 100), m.value = Math.round((1 - t.y) * 100), V());
|
|
2784
2784
|
}
|
|
2785
|
-
function
|
|
2785
|
+
function re(e) {
|
|
2786
2786
|
if (!O.value) return;
|
|
2787
2787
|
let t = J(S.value, e);
|
|
2788
2788
|
t && (p.value = Math.round(t.x * 100), m.value = Math.round((1 - t.y) * 100), V());
|
|
2789
2789
|
}
|
|
2790
|
-
function
|
|
2790
|
+
function X() {
|
|
2791
2791
|
O.value = !1;
|
|
2792
2792
|
}
|
|
2793
|
-
function
|
|
2793
|
+
function ie(e) {
|
|
2794
2794
|
A.value = !0, e.currentTarget.setPointerCapture(e.pointerId);
|
|
2795
2795
|
let t = J(C.value, e);
|
|
2796
2796
|
t && (f.value = Math.round(t.x * 360), V());
|
|
2797
2797
|
}
|
|
2798
|
-
function
|
|
2798
|
+
function ae(e) {
|
|
2799
2799
|
if (!A.value) return;
|
|
2800
2800
|
let t = J(C.value, e);
|
|
2801
2801
|
t && (f.value = Math.round(t.x * 360), V());
|
|
2802
2802
|
}
|
|
2803
|
-
function
|
|
2803
|
+
function oe() {
|
|
2804
2804
|
A.value = !1;
|
|
2805
2805
|
}
|
|
2806
|
-
function
|
|
2806
|
+
function se(e) {
|
|
2807
2807
|
j.value = !0, e.currentTarget.setPointerCapture(e.pointerId);
|
|
2808
2808
|
let t = J(E.value, e);
|
|
2809
2809
|
t && (h.value = Math.round(t.x * 100), V());
|
|
2810
2810
|
}
|
|
2811
|
-
function
|
|
2811
|
+
function ce(e) {
|
|
2812
2812
|
if (!j.value) return;
|
|
2813
2813
|
let t = J(E.value, e);
|
|
2814
2814
|
t && (h.value = Math.round(t.x * 100), V());
|
|
2815
2815
|
}
|
|
2816
|
-
function
|
|
2816
|
+
function le() {
|
|
2817
2817
|
j.value = !1;
|
|
2818
2818
|
}
|
|
2819
|
-
function
|
|
2819
|
+
function ue(e) {
|
|
2820
2820
|
D.value = e.target.value;
|
|
2821
2821
|
}
|
|
2822
|
-
function
|
|
2822
|
+
function de() {
|
|
2823
2823
|
let e = L(D.value);
|
|
2824
2824
|
if (e) {
|
|
2825
2825
|
let [t, n, r, a] = e, [o, s, c] = P(t, n, r);
|
|
2826
2826
|
f.value = o, p.value = s, m.value = c, i.alpha && (h.value = a), V();
|
|
2827
2827
|
} else D.value = I().toUpperCase();
|
|
2828
2828
|
}
|
|
2829
|
-
function
|
|
2830
|
-
e.key === "Enter" &&
|
|
2829
|
+
function fe(e) {
|
|
2830
|
+
e.key === "Enter" && de();
|
|
2831
|
+
}
|
|
2832
|
+
function pe(e, t, n) {
|
|
2833
|
+
return Math.max(t, Math.min(n, e));
|
|
2831
2834
|
}
|
|
2832
2835
|
function me(e) {
|
|
2836
|
+
let t = e.shiftKey ? 10 : 1;
|
|
2837
|
+
e.key === "ArrowLeft" ? (e.preventDefault(), p.value = pe(p.value - t, 0, 100), V()) : e.key === "ArrowRight" ? (e.preventDefault(), p.value = pe(p.value + t, 0, 100), V()) : e.key === "ArrowDown" ? (e.preventDefault(), m.value = pe(m.value - t, 0, 100), V()) : e.key === "ArrowUp" ? (e.preventDefault(), m.value = pe(m.value + t, 0, 100), V()) : e.key === "Home" ? (e.preventDefault(), p.value = 0, V()) : e.key === "End" && (e.preventDefault(), p.value = 100, V());
|
|
2838
|
+
}
|
|
2839
|
+
function he(e) {
|
|
2840
|
+
let t = e.shiftKey ? 10 : 1;
|
|
2841
|
+
e.key === "ArrowLeft" || e.key === "ArrowDown" ? (e.preventDefault(), f.value = pe(f.value - t, 0, 360), V()) : e.key === "ArrowRight" || e.key === "ArrowUp" ? (e.preventDefault(), f.value = pe(f.value + t, 0, 360), V()) : e.key === "Home" ? (e.preventDefault(), f.value = 0, V()) : e.key === "End" && (e.preventDefault(), f.value = 360, V());
|
|
2842
|
+
}
|
|
2843
|
+
function ge(e) {
|
|
2844
|
+
let t = e.shiftKey ? 10 : 1;
|
|
2845
|
+
e.key === "ArrowLeft" || e.key === "ArrowDown" ? (e.preventDefault(), h.value = pe(h.value - t, 0, 100), V()) : e.key === "ArrowRight" || e.key === "ArrowUp" ? (e.preventDefault(), h.value = pe(h.value + t, 0, 100), V()) : e.key === "Home" ? (e.preventDefault(), h.value = 0, V()) : e.key === "End" && (e.preventDefault(), h.value = 100, V());
|
|
2846
|
+
}
|
|
2847
|
+
function _e(e) {
|
|
2833
2848
|
let t = L(e);
|
|
2834
2849
|
if (!t) return;
|
|
2835
2850
|
let [n, r, a, o] = t, [s, c, l] = P(n, r, a);
|
|
2836
2851
|
f.value = s, p.value = c, m.value = l, i.alpha && (h.value = o), V();
|
|
2837
2852
|
}
|
|
2838
|
-
function
|
|
2853
|
+
function ve() {
|
|
2839
2854
|
i.disabled || (B(), u.value || (D.value = ""), g.value = !0);
|
|
2840
2855
|
}
|
|
2841
|
-
function
|
|
2856
|
+
function ye() {
|
|
2842
2857
|
g.value = !1;
|
|
2843
2858
|
}
|
|
2844
|
-
function
|
|
2845
|
-
g.value ?
|
|
2859
|
+
function be() {
|
|
2860
|
+
g.value ? ye() : ve();
|
|
2846
2861
|
}
|
|
2847
|
-
function
|
|
2848
|
-
y.value?.contains(e.target) ||
|
|
2862
|
+
function xe(e) {
|
|
2863
|
+
y.value?.contains(e.target) || ye();
|
|
2849
2864
|
}
|
|
2850
2865
|
return R(g, (e) => {
|
|
2851
|
-
e ? document.addEventListener("pointerdown",
|
|
2852
|
-
}), b(() => document.removeEventListener("pointerdown",
|
|
2866
|
+
e ? document.addEventListener("pointerdown", xe) : document.removeEventListener("pointerdown", xe);
|
|
2867
|
+
}), b(() => document.removeEventListener("pointerdown", xe)), (n, i) => (x(), c("div", {
|
|
2853
2868
|
ref_key: "containerRef",
|
|
2854
2869
|
ref: y,
|
|
2855
2870
|
class: _(["uid-colorpicker", {
|
|
@@ -2861,7 +2876,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2861
2876
|
class: "uid-colorpicker__trigger",
|
|
2862
2877
|
"aria-expanded": g.value,
|
|
2863
2878
|
"aria-disabled": e.disabled,
|
|
2864
|
-
onClick:
|
|
2879
|
+
onClick: be
|
|
2865
2880
|
}, [l("span", {
|
|
2866
2881
|
class: "uid-colorpicker__swatch",
|
|
2867
2882
|
style: v(u.value ? { background: u.value } : {})
|
|
@@ -2872,9 +2887,13 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2872
2887
|
ref: S,
|
|
2873
2888
|
class: "uid-colorpicker__gradient",
|
|
2874
2889
|
style: v({ "--_hue": H.value }),
|
|
2875
|
-
|
|
2876
|
-
|
|
2877
|
-
|
|
2890
|
+
tabindex: "0",
|
|
2891
|
+
role: "application",
|
|
2892
|
+
"aria-label": "Насыщенность и яркость",
|
|
2893
|
+
onPointerdown: Y,
|
|
2894
|
+
onPointermove: re,
|
|
2895
|
+
onPointerup: X,
|
|
2896
|
+
onKeydown: me
|
|
2878
2897
|
}, [l("div", {
|
|
2879
2898
|
class: "uid-colorpicker__gradient-thumb",
|
|
2880
2899
|
style: v({
|
|
@@ -2886,68 +2905,82 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2886
2905
|
ref_key: "hueSliderRef",
|
|
2887
2906
|
ref: C,
|
|
2888
2907
|
class: "uid-colorpicker__hue-track",
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2908
|
+
role: "slider",
|
|
2909
|
+
tabindex: "0",
|
|
2910
|
+
"aria-label": "Оттенок",
|
|
2911
|
+
"aria-valuemin": 0,
|
|
2912
|
+
"aria-valuemax": 360,
|
|
2913
|
+
"aria-valuenow": f.value,
|
|
2914
|
+
onPointerdown: ie,
|
|
2915
|
+
onPointermove: ae,
|
|
2916
|
+
onPointerup: oe,
|
|
2917
|
+
onKeydown: he
|
|
2892
2918
|
}, [l("div", {
|
|
2893
2919
|
class: "uid-colorpicker__track-thumb",
|
|
2894
2920
|
style: v({ left: G.value })
|
|
2895
|
-
}, null, 4)],
|
|
2921
|
+
}, null, 4)], 40, Wi), e.alpha ? (x(), c("div", {
|
|
2896
2922
|
key: 0,
|
|
2897
2923
|
ref_key: "alphaSliderRef",
|
|
2898
2924
|
ref: E,
|
|
2899
2925
|
class: "uid-colorpicker__alpha-track",
|
|
2900
2926
|
style: v({ "--_color": q.value }),
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2927
|
+
role: "slider",
|
|
2928
|
+
tabindex: "0",
|
|
2929
|
+
"aria-label": "Прозрачность",
|
|
2930
|
+
"aria-valuemin": 0,
|
|
2931
|
+
"aria-valuemax": 100,
|
|
2932
|
+
"aria-valuenow": h.value,
|
|
2933
|
+
onPointerdown: se,
|
|
2934
|
+
onPointermove: ce,
|
|
2935
|
+
onPointerup: le,
|
|
2936
|
+
onKeydown: ge
|
|
2904
2937
|
}, [l("div", {
|
|
2905
2938
|
class: "uid-colorpicker__track-thumb",
|
|
2906
2939
|
style: v({ left: ee.value })
|
|
2907
|
-
}, null, 4)],
|
|
2940
|
+
}, null, 4)], 44, Gi)) : s("", !0)]), l("span", {
|
|
2908
2941
|
class: "uid-colorpicker__preview",
|
|
2909
2942
|
style: v({ background: q.value })
|
|
2910
2943
|
}, null, 4)]),
|
|
2911
|
-
l("div",
|
|
2944
|
+
l("div", Ki, [i[0] ||= l("label", { class: "uid-colorpicker__input-label" }, "HEX", -1), l("input", {
|
|
2912
2945
|
class: "uid-colorpicker__hex-input",
|
|
2913
2946
|
type: "text",
|
|
2914
2947
|
value: D.value,
|
|
2915
2948
|
maxlength: "9",
|
|
2916
2949
|
spellcheck: "false",
|
|
2917
|
-
onInput:
|
|
2918
|
-
onBlur:
|
|
2919
|
-
onKeydown:
|
|
2920
|
-
}, null, 40,
|
|
2921
|
-
e.presets && e.presets.length ? (x(), c("div",
|
|
2950
|
+
onInput: ue,
|
|
2951
|
+
onBlur: de,
|
|
2952
|
+
onKeydown: fe
|
|
2953
|
+
}, null, 40, qi)]),
|
|
2954
|
+
e.presets && e.presets.length ? (x(), c("div", Ji, [(x(!0), c(t, null, T(e.presets, (e) => (x(), c("button", {
|
|
2922
2955
|
key: e,
|
|
2923
2956
|
type: "button",
|
|
2924
2957
|
class: _(["uid-colorpicker__preset", { "uid-colorpicker__preset--active": u.value === e || u.value === e.toLowerCase() || u.value?.toUpperCase() === e.toUpperCase() }]),
|
|
2925
2958
|
style: v({ background: e }),
|
|
2926
2959
|
"aria-label": e,
|
|
2927
|
-
onClick: (t) =>
|
|
2928
|
-
}, null, 14,
|
|
2960
|
+
onClick: (t) => _e(e)
|
|
2961
|
+
}, null, 14, Yi))), 128))])) : s("", !0)
|
|
2929
2962
|
])) : s("", !0)]),
|
|
2930
2963
|
_: 1
|
|
2931
2964
|
})], 2));
|
|
2932
2965
|
}
|
|
2933
|
-
}),
|
|
2966
|
+
}), Zi = { class: "uid-command__search" }, Qi = ["placeholder"], $i = {
|
|
2934
2967
|
key: 0,
|
|
2935
2968
|
class: "uid-command__group-label"
|
|
2936
|
-
},
|
|
2969
|
+
}, ea = [
|
|
2937
2970
|
"data-active",
|
|
2938
2971
|
"aria-selected",
|
|
2939
2972
|
"onClick",
|
|
2940
2973
|
"onMouseenter"
|
|
2941
|
-
],
|
|
2974
|
+
], ta = { class: "uid-command__item-text" }, na = { class: "uid-command__item-label" }, ra = {
|
|
2942
2975
|
key: 0,
|
|
2943
2976
|
class: "uid-command__item-desc"
|
|
2944
|
-
},
|
|
2977
|
+
}, ia = {
|
|
2945
2978
|
key: 0,
|
|
2946
2979
|
class: "uid-command__item-shortcut"
|
|
2947
|
-
},
|
|
2980
|
+
}, aa = {
|
|
2948
2981
|
key: 1,
|
|
2949
2982
|
class: "uid-command__empty"
|
|
2950
|
-
},
|
|
2983
|
+
}, oa = /* @__PURE__ */ f({
|
|
2951
2984
|
__name: "UidCommand",
|
|
2952
2985
|
props: /* @__PURE__ */ m({
|
|
2953
2986
|
commands: {},
|
|
@@ -3017,8 +3050,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3017
3050
|
"aria-modal": "true",
|
|
3018
3051
|
"aria-label": "Палитра команд",
|
|
3019
3052
|
onKeydown: V
|
|
3020
|
-
}, [l("div",
|
|
3021
|
-
icon: j(
|
|
3053
|
+
}, [l("div", Zi, [d(e, {
|
|
3054
|
+
icon: j(fe),
|
|
3022
3055
|
size: 16,
|
|
3023
3056
|
class: "uid-command__search-icon",
|
|
3024
3057
|
"aria-hidden": "true"
|
|
@@ -3032,12 +3065,12 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3032
3065
|
autocomplete: "off",
|
|
3033
3066
|
spellcheck: "false",
|
|
3034
3067
|
"aria-autocomplete": "list"
|
|
3035
|
-
}, null, 8,
|
|
3068
|
+
}, null, 8, Qi), [[I, p.value]])]), l("div", {
|
|
3036
3069
|
ref_key: "listRef",
|
|
3037
3070
|
ref: S,
|
|
3038
3071
|
class: "uid-command__list",
|
|
3039
3072
|
role: "listbox"
|
|
3040
|
-
}, [A.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(M.value, ([e, n]) => (x(), c(t, { key: e }, [e ? (x(), c("div",
|
|
3073
|
+
}, [A.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(M.value, ([e, n]) => (x(), c(t, { key: e }, [e ? (x(), c("div", $i, k(e), 1)) : s("", !0), (x(!0), c(t, null, T(n, (e) => (x(), c("button", {
|
|
3041
3074
|
key: e.id,
|
|
3042
3075
|
class: _(["uid-command__item", { "uid-command__item--active": A.value.indexOf(e) === m.value }]),
|
|
3043
3076
|
"data-active": A.value.indexOf(e) === m.value ? "true" : void 0,
|
|
@@ -3046,18 +3079,18 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3046
3079
|
type: "button",
|
|
3047
3080
|
onClick: (t) => F(e),
|
|
3048
3081
|
onMouseenter: (t) => m.value = A.value.indexOf(e)
|
|
3049
|
-
}, [l("div",
|
|
3082
|
+
}, [l("div", ta, [l("span", na, k(e.label), 1), e.description ? (x(), c("span", ra, k(e.description), 1)) : s("", !0)]), e.shortcut ? (x(), c("div", ia, [(x(!0), c(t, null, T(e.shortcut, (e) => (x(), c("kbd", {
|
|
3050
3083
|
key: e,
|
|
3051
3084
|
class: "uid-command__kbd"
|
|
3052
|
-
}, k(e), 1))), 128))])) : s("", !0)], 42,
|
|
3085
|
+
}, k(e), 1))), 128))])) : s("", !0)], 42, ea))), 128))], 64))), 128)) : (x(), c("div", aa, k(i.emptyText), 1))], 512)], 544)])) : s("", !0)]),
|
|
3053
3086
|
_: 1
|
|
3054
3087
|
})]));
|
|
3055
3088
|
}
|
|
3056
|
-
}),
|
|
3089
|
+
}), sa = ["for"], ca = {
|
|
3057
3090
|
key: 0,
|
|
3058
3091
|
class: "uid-number-input__required",
|
|
3059
3092
|
"aria-hidden": "true"
|
|
3060
|
-
},
|
|
3093
|
+
}, la = { class: "uid-number-input__control" }, ua = ["disabled", "aria-label"], da = [
|
|
3061
3094
|
"id",
|
|
3062
3095
|
"name",
|
|
3063
3096
|
"placeholder",
|
|
@@ -3070,7 +3103,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3070
3103
|
"value",
|
|
3071
3104
|
"aria-invalid",
|
|
3072
3105
|
"aria-describedby"
|
|
3073
|
-
],
|
|
3106
|
+
], fa = ["disabled", "aria-label"], pa = ["id"], ma = /* @__PURE__ */ f({
|
|
3074
3107
|
__name: "UidNumberInput",
|
|
3075
3108
|
props: /* @__PURE__ */ m({
|
|
3076
3109
|
min: { default: void 0 },
|
|
@@ -3163,8 +3196,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3163
3196
|
key: 0,
|
|
3164
3197
|
for: j(h),
|
|
3165
3198
|
class: "uid-number-input__label"
|
|
3166
|
-
}, [u(k(t.label) + " ", 1), t.required ? (x(), c("span",
|
|
3167
|
-
l("div",
|
|
3199
|
+
}, [u(k(t.label) + " ", 1), t.required ? (x(), c("span", ca, "*")) : s("", !0)], 8, sa)) : s("", !0),
|
|
3200
|
+
l("div", la, [
|
|
3168
3201
|
t.controls ? (x(), c("button", {
|
|
3169
3202
|
key: 0,
|
|
3170
3203
|
type: "button",
|
|
@@ -3174,9 +3207,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3174
3207
|
tabindex: "-1",
|
|
3175
3208
|
onClick: E
|
|
3176
3209
|
}, [d(e, {
|
|
3177
|
-
icon: j(
|
|
3210
|
+
icon: j(ue),
|
|
3178
3211
|
size: 14
|
|
3179
|
-
}, null, 8, ["icon"])], 8,
|
|
3212
|
+
}, null, 8, ["icon"])], 8, ua)) : s("", !0),
|
|
3180
3213
|
l("input", {
|
|
3181
3214
|
id: j(h),
|
|
3182
3215
|
class: "uid-number-input__input",
|
|
@@ -3197,7 +3230,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3197
3230
|
onBlur: O,
|
|
3198
3231
|
onFocus: r[0] ||= (e) => i("focus", e),
|
|
3199
3232
|
onKeydown: A
|
|
3200
|
-
}, null, 40,
|
|
3233
|
+
}, null, 40, da),
|
|
3201
3234
|
t.controls ? (x(), c("button", {
|
|
3202
3235
|
key: 1,
|
|
3203
3236
|
type: "button",
|
|
@@ -3207,27 +3240,39 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3207
3240
|
tabindex: "-1",
|
|
3208
3241
|
onClick: T
|
|
3209
3242
|
}, [d(e, {
|
|
3210
|
-
icon: j(
|
|
3243
|
+
icon: j(de),
|
|
3211
3244
|
size: 14
|
|
3212
|
-
}, null, 8, ["icon"])], 8,
|
|
3245
|
+
}, null, 8, ["icon"])], 8, fa)) : s("", !0)
|
|
3213
3246
|
]),
|
|
3214
3247
|
v.value ? (x(), c("p", {
|
|
3215
3248
|
key: 1,
|
|
3216
3249
|
id: `${j(h)}-hint`,
|
|
3217
3250
|
class: _(["uid-number-input__hint", g.value && "uid-number-input__hint--error"])
|
|
3218
|
-
}, k(v.value), 11,
|
|
3251
|
+
}, k(v.value), 11, pa)) : s("", !0)
|
|
3219
3252
|
], 2));
|
|
3220
3253
|
}
|
|
3221
|
-
}),
|
|
3254
|
+
}), ha = [
|
|
3222
3255
|
"aria-expanded",
|
|
3223
3256
|
"aria-label",
|
|
3224
3257
|
"aria-disabled"
|
|
3225
|
-
],
|
|
3258
|
+
], ga = ["aria-label"], _a = {
|
|
3226
3259
|
key: 0,
|
|
3227
3260
|
class: "uid-timepicker__panel",
|
|
3228
3261
|
role: "dialog",
|
|
3229
3262
|
"aria-label": "Выбор времени"
|
|
3230
|
-
},
|
|
3263
|
+
}, va = { class: "uid-timepicker__columns" }, ya = [
|
|
3264
|
+
"aria-selected",
|
|
3265
|
+
"tabindex",
|
|
3266
|
+
"onClick"
|
|
3267
|
+
], ba = [
|
|
3268
|
+
"aria-selected",
|
|
3269
|
+
"tabindex",
|
|
3270
|
+
"onClick"
|
|
3271
|
+
], xa = [
|
|
3272
|
+
"aria-selected",
|
|
3273
|
+
"tabindex",
|
|
3274
|
+
"onClick"
|
|
3275
|
+
], Sa = { class: "uid-timepicker__footer" }, Ca = /* @__PURE__ */ f({
|
|
3231
3276
|
__name: "UidTimePicker",
|
|
3232
3277
|
props: /* @__PURE__ */ m({
|
|
3233
3278
|
step: { default: 5 },
|
|
@@ -3335,7 +3380,47 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3335
3380
|
function q(e) {
|
|
3336
3381
|
e.key === "Enter" || e.key === " " ? (e.preventDefault(), H()) : e.key === "Escape" && V();
|
|
3337
3382
|
}
|
|
3338
|
-
function J() {
|
|
3383
|
+
function J(e, t, n) {
|
|
3384
|
+
let r = A.value[t], i = n.indexOf(r);
|
|
3385
|
+
if (e.key === "ArrowDown") {
|
|
3386
|
+
e.preventDefault();
|
|
3387
|
+
let r = n[Math.min(n.length - 1, i + 1)];
|
|
3388
|
+
A.value = {
|
|
3389
|
+
...A.value,
|
|
3390
|
+
[t]: r
|
|
3391
|
+
}, Y(t, r);
|
|
3392
|
+
} else if (e.key === "ArrowUp") {
|
|
3393
|
+
e.preventDefault();
|
|
3394
|
+
let r = n[Math.max(0, i - 1)];
|
|
3395
|
+
A.value = {
|
|
3396
|
+
...A.value,
|
|
3397
|
+
[t]: r
|
|
3398
|
+
}, Y(t, r);
|
|
3399
|
+
} else if (e.key === "Home") e.preventDefault(), A.value = {
|
|
3400
|
+
...A.value,
|
|
3401
|
+
[t]: n[0]
|
|
3402
|
+
}, Y(t, n[0]);
|
|
3403
|
+
else if (e.key === "End") {
|
|
3404
|
+
e.preventDefault();
|
|
3405
|
+
let r = n[n.length - 1];
|
|
3406
|
+
A.value = {
|
|
3407
|
+
...A.value,
|
|
3408
|
+
[t]: r
|
|
3409
|
+
}, Y(t, r);
|
|
3410
|
+
} else e.key === "Enter" ? (e.preventDefault(), ee()) : e.key === "Escape" && (e.preventDefault(), V(), y.value?.focus());
|
|
3411
|
+
}
|
|
3412
|
+
function Y(e, t) {
|
|
3413
|
+
let n = {
|
|
3414
|
+
h: S,
|
|
3415
|
+
m: C,
|
|
3416
|
+
s: E
|
|
3417
|
+
}[e].value;
|
|
3418
|
+
n && g(() => {
|
|
3419
|
+
let r = (e === "h" ? M.value : e === "m" ? P.value : F.value).indexOf(t), i = n.querySelectorAll(".uid-timepicker__cell")[r];
|
|
3420
|
+
i?.focus(), i && (n.scrollTop = i.offsetTop - n.clientHeight / 2 + i.clientHeight / 2);
|
|
3421
|
+
});
|
|
3422
|
+
}
|
|
3423
|
+
function re() {
|
|
3339
3424
|
g(() => {
|
|
3340
3425
|
let e = (e, t, n) => {
|
|
3341
3426
|
if (!e) return;
|
|
@@ -3348,7 +3433,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3348
3433
|
});
|
|
3349
3434
|
}
|
|
3350
3435
|
return R(h, (e) => {
|
|
3351
|
-
e ? (document.addEventListener("pointerdown", ne),
|
|
3436
|
+
e ? (document.addEventListener("pointerdown", ne), re()) : document.removeEventListener("pointerdown", ne);
|
|
3352
3437
|
}), b(() => document.removeEventListener("pointerdown", ne)), (i, a) => (x(), c("div", {
|
|
3353
3438
|
ref_key: "containerRef",
|
|
3354
3439
|
ref: v,
|
|
@@ -3370,7 +3455,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3370
3455
|
onKeydown: q
|
|
3371
3456
|
}, [
|
|
3372
3457
|
d(e, {
|
|
3373
|
-
icon: j(
|
|
3458
|
+
icon: j(ae),
|
|
3374
3459
|
size: 16,
|
|
3375
3460
|
class: "uid-timepicker__icon",
|
|
3376
3461
|
"aria-hidden": "true"
|
|
@@ -3382,41 +3467,59 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3382
3467
|
class: "uid-timepicker__clear",
|
|
3383
3468
|
"aria-label": j(u).common.clear,
|
|
3384
3469
|
onClick: te
|
|
3385
|
-
}, " × ", 8,
|
|
3386
|
-
], 40,
|
|
3387
|
-
default: z(() => [h.value ? (x(), c("div",
|
|
3470
|
+
}, " × ", 8, ga)) : s("", !0)
|
|
3471
|
+
], 40, ha), d(r, { name: "uid-timepicker-panel" }, {
|
|
3472
|
+
default: z(() => [h.value ? (x(), c("div", _a, [l("div", va, [
|
|
3388
3473
|
l("div", {
|
|
3389
3474
|
ref_key: "hourColRef",
|
|
3390
3475
|
ref: S,
|
|
3391
|
-
class: "uid-timepicker__column"
|
|
3476
|
+
class: "uid-timepicker__column",
|
|
3477
|
+
role: "listbox",
|
|
3478
|
+
"aria-label": "Часы",
|
|
3479
|
+
onKeydown: a[0] ||= (e) => J(e, "h", M.value)
|
|
3392
3480
|
}, [(x(!0), c(t, null, T(M.value, (e) => (x(), c("button", {
|
|
3393
3481
|
key: e,
|
|
3394
3482
|
type: "button",
|
|
3395
3483
|
class: _(["uid-timepicker__cell", { "uid-timepicker__cell--selected": A.value.h === e }]),
|
|
3484
|
+
role: "option",
|
|
3485
|
+
"aria-selected": A.value.h === e,
|
|
3486
|
+
tabindex: A.value.h === e ? 0 : -1,
|
|
3396
3487
|
onClick: (t) => U(e)
|
|
3397
|
-
}, k(L(e)), 11,
|
|
3488
|
+
}, k(L(e)), 11, ya))), 128))], 544),
|
|
3398
3489
|
l("div", {
|
|
3399
3490
|
ref_key: "minuteColRef",
|
|
3400
3491
|
ref: C,
|
|
3401
|
-
class: "uid-timepicker__column"
|
|
3492
|
+
class: "uid-timepicker__column",
|
|
3493
|
+
role: "listbox",
|
|
3494
|
+
"aria-label": "Минуты",
|
|
3495
|
+
onKeydown: a[1] ||= (e) => J(e, "m", P.value)
|
|
3402
3496
|
}, [(x(!0), c(t, null, T(P.value, (e) => (x(), c("button", {
|
|
3403
3497
|
key: e,
|
|
3404
3498
|
type: "button",
|
|
3405
3499
|
class: _(["uid-timepicker__cell", { "uid-timepicker__cell--selected": A.value.m === e }]),
|
|
3500
|
+
role: "option",
|
|
3501
|
+
"aria-selected": A.value.m === e,
|
|
3502
|
+
tabindex: A.value.m === e ? 0 : -1,
|
|
3406
3503
|
onClick: (t) => W(e)
|
|
3407
|
-
}, k(L(e)), 11,
|
|
3504
|
+
}, k(L(e)), 11, ba))), 128))], 544),
|
|
3408
3505
|
n.withSeconds ? (x(), c("div", {
|
|
3409
3506
|
key: 0,
|
|
3410
3507
|
ref_key: "secondColRef",
|
|
3411
3508
|
ref: E,
|
|
3412
|
-
class: "uid-timepicker__column"
|
|
3509
|
+
class: "uid-timepicker__column",
|
|
3510
|
+
role: "listbox",
|
|
3511
|
+
"aria-label": "Секунды",
|
|
3512
|
+
onKeydown: a[2] ||= (e) => J(e, "s", F.value)
|
|
3413
3513
|
}, [(x(!0), c(t, null, T(F.value, (e) => (x(), c("button", {
|
|
3414
3514
|
key: e,
|
|
3415
3515
|
type: "button",
|
|
3416
3516
|
class: _(["uid-timepicker__cell", { "uid-timepicker__cell--selected": A.value.s === e }]),
|
|
3517
|
+
role: "option",
|
|
3518
|
+
"aria-selected": A.value.s === e,
|
|
3519
|
+
tabindex: A.value.s === e ? 0 : -1,
|
|
3417
3520
|
onClick: (t) => G(e)
|
|
3418
|
-
}, k(L(e)), 11,
|
|
3419
|
-
]), l("div",
|
|
3521
|
+
}, k(L(e)), 11, xa))), 128))], 544)) : s("", !0)
|
|
3522
|
+
]), l("div", Sa, [l("button", {
|
|
3420
3523
|
type: "button",
|
|
3421
3524
|
class: "uid-timepicker__btn",
|
|
3422
3525
|
onClick: K
|
|
@@ -3428,24 +3531,24 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3428
3531
|
_: 1
|
|
3429
3532
|
})], 2));
|
|
3430
3533
|
}
|
|
3431
|
-
}),
|
|
3534
|
+
}), wa = [
|
|
3432
3535
|
"aria-expanded",
|
|
3433
3536
|
"aria-label",
|
|
3434
3537
|
"aria-disabled"
|
|
3435
|
-
],
|
|
3538
|
+
], Ta = ["aria-label"], Ea = {
|
|
3436
3539
|
key: 0,
|
|
3437
3540
|
class: "uid-daterange__panel",
|
|
3438
3541
|
role: "dialog",
|
|
3439
3542
|
"aria-label": "Выбор диапазона дат"
|
|
3440
|
-
},
|
|
3543
|
+
}, Da = { class: "uid-daterange__months" }, Oa = { class: "uid-daterange__month" }, ka = { class: "uid-daterange__nav" }, Aa = ["aria-label"], ja = { class: "uid-daterange__month-label" }, Ma = ["aria-label"], Na = { class: "uid-daterange__grid" }, Pa = [
|
|
3441
3544
|
"disabled",
|
|
3442
3545
|
"onClick",
|
|
3443
3546
|
"onMouseenter"
|
|
3444
|
-
],
|
|
3547
|
+
], Fa = { class: "uid-daterange__month" }, Ia = { class: "uid-daterange__nav" }, La = ["aria-label"], Ra = { class: "uid-daterange__month-label" }, za = ["aria-label"], Ba = { class: "uid-daterange__grid" }, Va = [
|
|
3445
3548
|
"disabled",
|
|
3446
3549
|
"onClick",
|
|
3447
3550
|
"onMouseenter"
|
|
3448
|
-
],
|
|
3551
|
+
], Ha = { class: "uid-daterange__footer" }, Ua = /* @__PURE__ */ f({
|
|
3449
3552
|
__name: "UidDateRangePicker",
|
|
3450
3553
|
props: /* @__PURE__ */ m({
|
|
3451
3554
|
min: { default: void 0 },
|
|
@@ -3556,10 +3659,10 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3556
3659
|
function J() {
|
|
3557
3660
|
h.value = !1, E.value = null, D.value = null;
|
|
3558
3661
|
}
|
|
3559
|
-
function
|
|
3662
|
+
function Y() {
|
|
3560
3663
|
h.value ? J() : q();
|
|
3561
3664
|
}
|
|
3562
|
-
function
|
|
3665
|
+
function ie(e) {
|
|
3563
3666
|
if (G(e.iso) || !e.current) return;
|
|
3564
3667
|
if (!E.value) {
|
|
3565
3668
|
E.value = e.iso;
|
|
@@ -3571,16 +3674,16 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3571
3674
|
};
|
|
3572
3675
|
m.value = r, p("change", r), J(), v.value?.focus();
|
|
3573
3676
|
}
|
|
3574
|
-
function
|
|
3677
|
+
function ae(e) {
|
|
3575
3678
|
E.value && (D.value = e);
|
|
3576
3679
|
}
|
|
3577
|
-
function
|
|
3680
|
+
function oe() {
|
|
3578
3681
|
C.value === 0 ? (C.value = 11, S.value--) : C.value--;
|
|
3579
3682
|
}
|
|
3580
|
-
function
|
|
3683
|
+
function se() {
|
|
3581
3684
|
C.value === 11 ? (C.value = 0, S.value++) : C.value++;
|
|
3582
3685
|
}
|
|
3583
|
-
function
|
|
3686
|
+
function ce(e) {
|
|
3584
3687
|
e.stopPropagation();
|
|
3585
3688
|
let t = {
|
|
3586
3689
|
start: null,
|
|
@@ -3588,7 +3691,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3588
3691
|
};
|
|
3589
3692
|
m.value = t, p("change", t);
|
|
3590
3693
|
}
|
|
3591
|
-
function
|
|
3694
|
+
function le(e) {
|
|
3592
3695
|
let t = /* @__PURE__ */ new Date(), n = /* @__PURE__ */ new Date();
|
|
3593
3696
|
n.setDate(t.getDate() - e + 1);
|
|
3594
3697
|
let r = {
|
|
@@ -3597,17 +3700,17 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3597
3700
|
};
|
|
3598
3701
|
m.value = r, p("change", r), J();
|
|
3599
3702
|
}
|
|
3600
|
-
function
|
|
3703
|
+
function ue(e) {
|
|
3601
3704
|
let t = e.target;
|
|
3602
3705
|
g.value?.contains(t) || J();
|
|
3603
3706
|
}
|
|
3604
3707
|
R(h, (e) => {
|
|
3605
|
-
e ? document.addEventListener("pointerdown",
|
|
3708
|
+
e ? document.addEventListener("pointerdown", ue) : document.removeEventListener("pointerdown", ue);
|
|
3606
3709
|
});
|
|
3607
|
-
function
|
|
3608
|
-
e.key === "Enter" || e.key === " " ? (e.preventDefault(),
|
|
3710
|
+
function de(e) {
|
|
3711
|
+
e.key === "Enter" || e.key === " " ? (e.preventDefault(), Y()) : e.key === "Escape" && J();
|
|
3609
3712
|
}
|
|
3610
|
-
return b(() => document.removeEventListener("pointerdown",
|
|
3713
|
+
return b(() => document.removeEventListener("pointerdown", ue)), (i, a) => (x(), c("div", {
|
|
3611
3714
|
ref_key: "containerRef",
|
|
3612
3715
|
ref: g,
|
|
3613
3716
|
class: _(["uid-daterange", {
|
|
@@ -3624,8 +3727,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3624
3727
|
"aria-expanded": h.value,
|
|
3625
3728
|
"aria-label": f.value,
|
|
3626
3729
|
"aria-disabled": n.disabled,
|
|
3627
|
-
onClick:
|
|
3628
|
-
onKeydown:
|
|
3730
|
+
onClick: Y,
|
|
3731
|
+
onKeydown: de
|
|
3629
3732
|
}, [
|
|
3630
3733
|
d(e, {
|
|
3631
3734
|
icon: j(ne),
|
|
@@ -3639,30 +3742,30 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3639
3742
|
type: "button",
|
|
3640
3743
|
class: "uid-daterange__clear",
|
|
3641
3744
|
"aria-label": j(u).common.clear,
|
|
3642
|
-
onClick:
|
|
3643
|
-
}, " × ", 8,
|
|
3644
|
-
], 40,
|
|
3645
|
-
default: z(() => [h.value ? (x(), c("div",
|
|
3745
|
+
onClick: ce
|
|
3746
|
+
}, " × ", 8, Ta)) : s("", !0)
|
|
3747
|
+
], 40, wa), d(r, { name: "uid-daterange-panel" }, {
|
|
3748
|
+
default: z(() => [h.value ? (x(), c("div", Ea, [l("div", Da, [l("div", Oa, [l("div", ka, [
|
|
3646
3749
|
l("button", {
|
|
3647
3750
|
type: "button",
|
|
3648
3751
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--prev",
|
|
3649
3752
|
"aria-label": j(u).datePicker.prevMonth,
|
|
3650
|
-
onClick:
|
|
3753
|
+
onClick: oe
|
|
3651
3754
|
}, [d(e, {
|
|
3652
|
-
icon: j(
|
|
3755
|
+
icon: j(re),
|
|
3653
3756
|
size: 16
|
|
3654
|
-
}, null, 8, ["icon"])], 8,
|
|
3655
|
-
l("span",
|
|
3757
|
+
}, null, 8, ["icon"])], 8, Aa),
|
|
3758
|
+
l("span", ja, k(H.value), 1),
|
|
3656
3759
|
l("button", {
|
|
3657
3760
|
type: "button",
|
|
3658
3761
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--next",
|
|
3659
3762
|
"aria-label": j(u).datePicker.nextMonth,
|
|
3660
|
-
onClick:
|
|
3763
|
+
onClick: se
|
|
3661
3764
|
}, [d(e, {
|
|
3662
|
-
icon: j(
|
|
3765
|
+
icon: j(X),
|
|
3663
3766
|
size: 16
|
|
3664
|
-
}, null, 8, ["icon"])], 8,
|
|
3665
|
-
]), l("div",
|
|
3767
|
+
}, null, 8, ["icon"])], 8, Ma)
|
|
3768
|
+
]), l("div", Na, [(x(!0), c(t, null, T(A.value, (e) => (x(), c("span", {
|
|
3666
3769
|
key: e,
|
|
3667
3770
|
class: "uid-daterange__weekday"
|
|
3668
3771
|
}, k(e), 1))), 128)), (x(!0), c(t, null, T(B.value, (e) => (x(), c("button", {
|
|
@@ -3677,29 +3780,29 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3677
3780
|
"uid-daterange__day--disabled": G(e.iso)
|
|
3678
3781
|
}]),
|
|
3679
3782
|
disabled: G(e.iso) || !e.current,
|
|
3680
|
-
onClick: (t) =>
|
|
3681
|
-
onMouseenter: (t) =>
|
|
3682
|
-
}, k(e.date.getDate()), 43,
|
|
3783
|
+
onClick: (t) => ie(e),
|
|
3784
|
+
onMouseenter: (t) => ae(e.iso)
|
|
3785
|
+
}, k(e.date.getDate()), 43, Pa))), 128))])]), l("div", Fa, [l("div", Ia, [
|
|
3683
3786
|
l("button", {
|
|
3684
3787
|
type: "button",
|
|
3685
3788
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--prev",
|
|
3686
3789
|
"aria-label": j(u).datePicker.prevMonth,
|
|
3687
|
-
onClick:
|
|
3790
|
+
onClick: oe
|
|
3688
3791
|
}, [d(e, {
|
|
3689
|
-
icon: j(
|
|
3792
|
+
icon: j(re),
|
|
3690
3793
|
size: 16
|
|
3691
|
-
}, null, 8, ["icon"])], 8,
|
|
3692
|
-
l("span",
|
|
3794
|
+
}, null, 8, ["icon"])], 8, La),
|
|
3795
|
+
l("span", Ra, k(U.value), 1),
|
|
3693
3796
|
l("button", {
|
|
3694
3797
|
type: "button",
|
|
3695
3798
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--next",
|
|
3696
3799
|
"aria-label": j(u).datePicker.nextMonth,
|
|
3697
|
-
onClick:
|
|
3800
|
+
onClick: se
|
|
3698
3801
|
}, [d(e, {
|
|
3699
|
-
icon: j(
|
|
3802
|
+
icon: j(X),
|
|
3700
3803
|
size: 16
|
|
3701
|
-
}, null, 8, ["icon"])], 8,
|
|
3702
|
-
]), l("div",
|
|
3804
|
+
}, null, 8, ["icon"])], 8, za)
|
|
3805
|
+
]), l("div", Ba, [(x(!0), c(t, null, T(A.value, (e) => (x(), c("span", {
|
|
3703
3806
|
key: e,
|
|
3704
3807
|
class: "uid-daterange__weekday"
|
|
3705
3808
|
}, k(e), 1))), 128)), (x(!0), c(t, null, T(V.value, (e) => (x(), c("button", {
|
|
@@ -3714,33 +3817,33 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3714
3817
|
"uid-daterange__day--disabled": G(e.iso)
|
|
3715
3818
|
}]),
|
|
3716
3819
|
disabled: G(e.iso) || !e.current,
|
|
3717
|
-
onClick: (t) =>
|
|
3718
|
-
onMouseenter: (t) =>
|
|
3719
|
-
}, k(e.date.getDate()), 43,
|
|
3820
|
+
onClick: (t) => ie(e),
|
|
3821
|
+
onMouseenter: (t) => ae(e.iso)
|
|
3822
|
+
}, k(e.date.getDate()), 43, Va))), 128))])])]), l("div", Ha, [
|
|
3720
3823
|
l("button", {
|
|
3721
3824
|
type: "button",
|
|
3722
3825
|
class: "uid-daterange__btn",
|
|
3723
|
-
onClick: a[0] ||= (e) =>
|
|
3826
|
+
onClick: a[0] ||= (e) => le(7)
|
|
3724
3827
|
}, k(j(u).dateRangePicker.presetLast(7)), 1),
|
|
3725
3828
|
l("button", {
|
|
3726
3829
|
type: "button",
|
|
3727
3830
|
class: "uid-daterange__btn",
|
|
3728
|
-
onClick: a[1] ||= (e) =>
|
|
3831
|
+
onClick: a[1] ||= (e) => le(30)
|
|
3729
3832
|
}, k(j(u).dateRangePicker.presetLast(30)), 1),
|
|
3730
3833
|
l("button", {
|
|
3731
3834
|
type: "button",
|
|
3732
3835
|
class: "uid-daterange__btn",
|
|
3733
|
-
onClick: a[2] ||= (e) =>
|
|
3836
|
+
onClick: a[2] ||= (e) => le(90)
|
|
3734
3837
|
}, k(j(u).dateRangePicker.presetLast(90)), 1)
|
|
3735
3838
|
])])) : s("", !0)]),
|
|
3736
3839
|
_: 1
|
|
3737
3840
|
})], 2));
|
|
3738
3841
|
}
|
|
3739
|
-
}),
|
|
3842
|
+
}), Wa = ["for"], Ga = {
|
|
3740
3843
|
key: 0,
|
|
3741
3844
|
class: "uid-tags-input__required",
|
|
3742
3845
|
"aria-hidden": "true"
|
|
3743
|
-
},
|
|
3846
|
+
}, Ka = ["aria-label", "onClick"], qa = [
|
|
3744
3847
|
"id",
|
|
3745
3848
|
"placeholder",
|
|
3746
3849
|
"disabled",
|
|
@@ -3748,7 +3851,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3748
3851
|
"value",
|
|
3749
3852
|
"aria-invalid",
|
|
3750
3853
|
"aria-describedby"
|
|
3751
|
-
],
|
|
3854
|
+
], Ja = ["id"], Ya = /* @__PURE__ */ f({
|
|
3752
3855
|
__name: "UidTagsInput",
|
|
3753
3856
|
props: /* @__PURE__ */ m({
|
|
3754
3857
|
separators: { default: () => [",", "Enter"] },
|
|
@@ -3849,7 +3952,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3849
3952
|
key: 0,
|
|
3850
3953
|
for: j(p),
|
|
3851
3954
|
class: "uid-tags-input__label"
|
|
3852
|
-
}, [u(k(e.label) + " ", 1), e.required ? (x(), c("span",
|
|
3955
|
+
}, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", Ga, "*")) : s("", !0)], 8, Wa)) : s("", !0),
|
|
3853
3956
|
l("div", {
|
|
3854
3957
|
class: "uid-tags-input__control",
|
|
3855
3958
|
role: "list",
|
|
@@ -3864,7 +3967,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3864
3967
|
class: "uid-tags-input__chip-remove",
|
|
3865
3968
|
"aria-label": j(m).tagsInput.remove(t),
|
|
3866
3969
|
onClick: H((e) => S(n), ["stop"])
|
|
3867
|
-
}, "×", 8,
|
|
3970
|
+
}, "×", 8, Ka))], 2))), 128)), l("input", {
|
|
3868
3971
|
id: j(p),
|
|
3869
3972
|
ref_key: "inputRef",
|
|
3870
3973
|
ref: f,
|
|
@@ -3880,19 +3983,19 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3880
3983
|
onKeydown: C,
|
|
3881
3984
|
onPaste: D,
|
|
3882
3985
|
onBlur: b
|
|
3883
|
-
}, null, 40,
|
|
3986
|
+
}, null, 40, qa)]),
|
|
3884
3987
|
g.value ? (x(), c("p", {
|
|
3885
3988
|
key: 1,
|
|
3886
3989
|
id: `${j(p)}-hint`,
|
|
3887
3990
|
class: _(["uid-tags-input__hint", h.value && "uid-tags-input__hint--error"])
|
|
3888
|
-
}, k(g.value), 11,
|
|
3991
|
+
}, k(g.value), 11, Ja)) : s("", !0)
|
|
3889
3992
|
], 2));
|
|
3890
3993
|
}
|
|
3891
|
-
}),
|
|
3994
|
+
}), Xa = ["for"], Za = {
|
|
3892
3995
|
key: 0,
|
|
3893
3996
|
class: "uid-combobox__required",
|
|
3894
3997
|
"aria-hidden": "true"
|
|
3895
|
-
},
|
|
3998
|
+
}, Qa = { class: "uid-combobox__control" }, $a = [
|
|
3896
3999
|
"id",
|
|
3897
4000
|
"aria-expanded",
|
|
3898
4001
|
"aria-controls",
|
|
@@ -3902,20 +4005,20 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3902
4005
|
"disabled",
|
|
3903
4006
|
"required",
|
|
3904
4007
|
"value"
|
|
3905
|
-
],
|
|
4008
|
+
], eo = { class: "uid-combobox__suffix" }, to = ["aria-label"], no = ["id"], ro = [
|
|
3906
4009
|
"id",
|
|
3907
4010
|
"data-active",
|
|
3908
4011
|
"aria-selected",
|
|
3909
4012
|
"aria-disabled",
|
|
3910
4013
|
"onClick",
|
|
3911
4014
|
"onMouseenter"
|
|
3912
|
-
],
|
|
4015
|
+
], io = { class: "uid-combobox__option-label" }, ao = {
|
|
3913
4016
|
key: 0,
|
|
3914
4017
|
class: "uid-combobox__option-hint"
|
|
3915
|
-
},
|
|
4018
|
+
}, oo = ["id", "data-active"], so = { class: "uid-combobox__option-label" }, co = {
|
|
3916
4019
|
key: 2,
|
|
3917
4020
|
class: "uid-combobox__empty"
|
|
3918
|
-
},
|
|
4021
|
+
}, lo = /* @__PURE__ */ f({
|
|
3919
4022
|
__name: "UidCombobox",
|
|
3920
4023
|
props: /* @__PURE__ */ m({
|
|
3921
4024
|
options: {},
|
|
@@ -3998,17 +4101,17 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3998
4101
|
V();
|
|
3999
4102
|
return;
|
|
4000
4103
|
}
|
|
4001
|
-
|
|
4104
|
+
re();
|
|
4002
4105
|
} else e.key === "Escape" ? y.value ? H() : D.value?.blur() : e.key === "Tab" && H();
|
|
4003
4106
|
}
|
|
4004
4107
|
function ne() {
|
|
4005
4108
|
let e = I.value.length + +!!L.value;
|
|
4006
|
-
e !== 0 && (C.value = Math.min(C.value + 1, e - 1),
|
|
4109
|
+
e !== 0 && (C.value = Math.min(C.value + 1, e - 1), X());
|
|
4007
4110
|
}
|
|
4008
4111
|
function J() {
|
|
4009
|
-
C.value = Math.max(C.value - 1, 0),
|
|
4112
|
+
C.value = Math.max(C.value - 1, 0), X();
|
|
4010
4113
|
}
|
|
4011
|
-
function
|
|
4114
|
+
function re() {
|
|
4012
4115
|
if (L.value && C.value === I.value.length) {
|
|
4013
4116
|
W();
|
|
4014
4117
|
return;
|
|
@@ -4016,18 +4119,18 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4016
4119
|
let e = I.value[C.value];
|
|
4017
4120
|
e && U(e);
|
|
4018
4121
|
}
|
|
4019
|
-
function
|
|
4122
|
+
function X() {
|
|
4020
4123
|
g(() => {
|
|
4021
4124
|
(O.value?.querySelector("[data-active=\"true\"]"))?.scrollIntoView?.({ block: "nearest" });
|
|
4022
4125
|
});
|
|
4023
4126
|
}
|
|
4024
|
-
function
|
|
4127
|
+
function ie(e) {
|
|
4025
4128
|
let t = e.target;
|
|
4026
4129
|
E.value?.contains(t) || H();
|
|
4027
4130
|
}
|
|
4028
4131
|
return R(y, (e) => {
|
|
4029
|
-
e ? (C.value = Math.max(0, I.value.findIndex((e) => e.value === v.value)), document.addEventListener("pointerdown",
|
|
4030
|
-
}), b(() => document.removeEventListener("pointerdown",
|
|
4132
|
+
e ? (C.value = Math.max(0, I.value.findIndex((e) => e.value === v.value)), document.addEventListener("pointerdown", ie)) : document.removeEventListener("pointerdown", ie);
|
|
4133
|
+
}), b(() => document.removeEventListener("pointerdown", ie)), (r, i) => (x(), c("div", {
|
|
4031
4134
|
ref_key: "containerRef",
|
|
4032
4135
|
ref: E,
|
|
4033
4136
|
class: _(["uid-combobox", [
|
|
@@ -4041,8 +4144,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4041
4144
|
key: 0,
|
|
4042
4145
|
for: j(A),
|
|
4043
4146
|
class: "uid-combobox__label"
|
|
4044
|
-
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span",
|
|
4045
|
-
l("div",
|
|
4147
|
+
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", Za, "*")) : s("", !0)], 8, Xa)) : s("", !0),
|
|
4148
|
+
l("div", Qa, [l("input", {
|
|
4046
4149
|
id: j(A),
|
|
4047
4150
|
ref_key: "inputRef",
|
|
4048
4151
|
ref: D,
|
|
@@ -4063,17 +4166,17 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4063
4166
|
onInput: ee,
|
|
4064
4167
|
onFocus: K,
|
|
4065
4168
|
onKeydown: te
|
|
4066
|
-
}, null, 40,
|
|
4169
|
+
}, null, 40, $a), l("div", eo, [n.clearable && v.value !== null ? (x(), c("button", {
|
|
4067
4170
|
key: 0,
|
|
4068
4171
|
type: "button",
|
|
4069
4172
|
class: "uid-combobox__clear",
|
|
4070
4173
|
"aria-label": j(f).common.clear,
|
|
4071
4174
|
onClick: G
|
|
4072
4175
|
}, [d(e, {
|
|
4073
|
-
icon: j(
|
|
4176
|
+
icon: j(_e),
|
|
4074
4177
|
size: 12
|
|
4075
|
-
}, null, 8, ["icon"])], 8,
|
|
4076
|
-
icon: j(
|
|
4178
|
+
}, null, 8, ["icon"])], 8, to)) : s("", !0), d(e, {
|
|
4179
|
+
icon: j(Y),
|
|
4077
4180
|
size: 16,
|
|
4078
4181
|
class: _(["uid-combobox__chevron", { "uid-combobox__chevron--open": y.value }]),
|
|
4079
4182
|
"aria-hidden": "true",
|
|
@@ -4103,8 +4206,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4103
4206
|
onClick: (e) => U(t),
|
|
4104
4207
|
onMouseenter: (e) => !t.disabled && (C.value = n)
|
|
4105
4208
|
}, [
|
|
4106
|
-
l("span",
|
|
4107
|
-
t.hint ? (x(), c("span",
|
|
4209
|
+
l("span", io, k(t.label), 1),
|
|
4210
|
+
t.hint ? (x(), c("span", ao, k(t.hint), 1)) : s("", !0),
|
|
4108
4211
|
t.value === v.value ? (x(), o(e, {
|
|
4109
4212
|
key: 1,
|
|
4110
4213
|
icon: j(q),
|
|
@@ -4112,7 +4215,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4112
4215
|
class: "uid-combobox__check",
|
|
4113
4216
|
"aria-hidden": "true"
|
|
4114
4217
|
}, null, 8, ["icon"])) : s("", !0)
|
|
4115
|
-
], 42,
|
|
4218
|
+
], 42, ro))), 128)) : s("", !0),
|
|
4116
4219
|
L.value ? (x(), c("button", {
|
|
4117
4220
|
key: 1,
|
|
4118
4221
|
id: `${j(P)}-${I.value.length}`,
|
|
@@ -4122,109 +4225,127 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4122
4225
|
"data-active": C.value === I.value.length ? "true" : void 0,
|
|
4123
4226
|
onClick: W,
|
|
4124
4227
|
onMouseenter: i[0] ||= (e) => C.value = I.value.length
|
|
4125
|
-
}, [l("span",
|
|
4126
|
-
I.value.length === 0 && !L.value ? (x(), c("div",
|
|
4127
|
-
], 8,
|
|
4228
|
+
}, [l("span", so, k(j(f).combobox.create(S.value)), 1)], 42, oo)) : s("", !0),
|
|
4229
|
+
I.value.length === 0 && !L.value ? (x(), c("div", co, k(m.value), 1)) : s("", !0)
|
|
4230
|
+
], 8, no)) : s("", !0),
|
|
4128
4231
|
B.value ? (x(), c("p", {
|
|
4129
4232
|
key: 2,
|
|
4130
4233
|
class: _(["uid-combobox__hint", z.value && "uid-combobox__hint--error"])
|
|
4131
4234
|
}, k(B.value), 3)) : s("", !0)
|
|
4132
4235
|
], 2));
|
|
4133
4236
|
}
|
|
4134
|
-
}),
|
|
4237
|
+
}), uo = Symbol("UidTree"), fo = [
|
|
4135
4238
|
"aria-expanded",
|
|
4136
4239
|
"aria-selected",
|
|
4137
4240
|
"aria-disabled"
|
|
4138
|
-
],
|
|
4241
|
+
], po = ["tabindex"], mo = ["aria-label"], ho = {
|
|
4139
4242
|
key: 1,
|
|
4140
4243
|
class: "uid-tree-item__chevron uid-tree-item__chevron--placeholder",
|
|
4141
4244
|
"aria-hidden": "true"
|
|
4142
|
-
},
|
|
4245
|
+
}, go = ["aria-checked"], _o = {
|
|
4143
4246
|
key: 3,
|
|
4144
4247
|
class: "uid-tree-item__icon"
|
|
4145
|
-
},
|
|
4248
|
+
}, vo = { class: "uid-tree-item__label" }, yo = {
|
|
4146
4249
|
key: 0,
|
|
4147
4250
|
class: "uid-tree-item__children",
|
|
4148
4251
|
role: "group"
|
|
4149
|
-
},
|
|
4252
|
+
}, bo = /* @__PURE__ */ f({
|
|
4150
4253
|
__name: "UidTreeItem",
|
|
4151
4254
|
props: {
|
|
4152
4255
|
node: {},
|
|
4153
4256
|
level: {}
|
|
4154
4257
|
},
|
|
4155
4258
|
setup(n) {
|
|
4156
|
-
let r = n, i = p(
|
|
4259
|
+
let r = n, i = p(uo);
|
|
4157
4260
|
if (!i) throw Error("UidTreeItem must be used inside UidTree");
|
|
4158
|
-
let u = i, f = $(), m = a(() => !!r.node.children && r.node.children.length > 0),
|
|
4159
|
-
|
|
4160
|
-
|
|
4261
|
+
let u = i, f = $(), m = w(null), h = a(() => !!r.node.children && r.node.children.length > 0), y = a(() => u.isExpanded(r.node.key)), b = a(() => u.isSelected(r.node.key)), S = a(() => u.isChecked(r.node.key)), C = a(() => u.isIndeterminate(r.node.key)), E = a(() => u.disabled.value || !!r.node.disabled), O = a(() => u.focusedKey.value === r.node.key), A = a(() => E.value ? -1 : O.value || u.focusedKey.value === null && u.isFirst(r.node.key) ? 0 : -1);
|
|
4262
|
+
R(O, (e) => {
|
|
4263
|
+
e && g(() => m.value?.focus());
|
|
4264
|
+
});
|
|
4265
|
+
function M() {
|
|
4266
|
+
E.value || (u.focusKey(r.node.key), h.value && u.toggleExpand(r.node.key), u.selectable.value && u.toggleSelect(r.node));
|
|
4161
4267
|
}
|
|
4162
|
-
function
|
|
4163
|
-
e.stopPropagation(), !
|
|
4268
|
+
function N(e) {
|
|
4269
|
+
e.stopPropagation(), !E.value && u.toggleExpand(r.node.key);
|
|
4164
4270
|
}
|
|
4165
|
-
function
|
|
4166
|
-
e.stopPropagation(), !
|
|
4271
|
+
function P(e) {
|
|
4272
|
+
e.stopPropagation(), !E.value && u.toggleCheck(r.node);
|
|
4167
4273
|
}
|
|
4168
|
-
function
|
|
4169
|
-
|
|
4274
|
+
function F(e) {
|
|
4275
|
+
let t = r.node.key;
|
|
4276
|
+
if (e.key === "ArrowDown") e.preventDefault(), u.focusRelative(t, 1);
|
|
4277
|
+
else if (e.key === "ArrowUp") e.preventDefault(), u.focusRelative(t, -1);
|
|
4278
|
+
else if (e.key === "ArrowRight") e.preventDefault(), h.value && !y.value ? u.toggleExpand(t) : h.value && y.value && u.focusRelative(t, 1);
|
|
4279
|
+
else if (e.key === "ArrowLeft") if (e.preventDefault(), h.value && y.value) u.toggleExpand(t);
|
|
4280
|
+
else {
|
|
4281
|
+
let e = u.parentKeyOf(t);
|
|
4282
|
+
e !== null && u.focusKey(e);
|
|
4283
|
+
}
|
|
4284
|
+
else e.key === "Home" ? (e.preventDefault(), u.focusEdge("first")) : e.key === "End" ? (e.preventDefault(), u.focusEdge("last")) : (e.key === "Enter" || e.key === " ") && (e.preventDefault(), u.checkable.value ? u.toggleCheck(r.node) : u.selectable.value && u.toggleSelect(r.node));
|
|
4285
|
+
}
|
|
4286
|
+
function I() {
|
|
4287
|
+
O.value || u.focusKey(r.node.key);
|
|
4170
4288
|
}
|
|
4171
4289
|
return (r, i) => {
|
|
4172
4290
|
let a = D("UidTreeItem", !0);
|
|
4173
4291
|
return x(), c("li", {
|
|
4174
4292
|
class: _(["uid-tree-item", {
|
|
4175
|
-
"uid-tree-item--selected":
|
|
4176
|
-
"uid-tree-item--disabled":
|
|
4177
|
-
"uid-tree-item--expanded":
|
|
4293
|
+
"uid-tree-item--selected": b.value,
|
|
4294
|
+
"uid-tree-item--disabled": E.value,
|
|
4295
|
+
"uid-tree-item--expanded": y.value
|
|
4178
4296
|
}]),
|
|
4179
4297
|
role: "treeitem",
|
|
4180
|
-
"aria-expanded":
|
|
4181
|
-
"aria-selected": j(u).selectable.value ?
|
|
4182
|
-
"aria-disabled":
|
|
4298
|
+
"aria-expanded": h.value ? y.value : void 0,
|
|
4299
|
+
"aria-selected": j(u).selectable.value ? b.value : void 0,
|
|
4300
|
+
"aria-disabled": E.value || void 0
|
|
4183
4301
|
}, [l("div", {
|
|
4302
|
+
ref_key: "rowRef",
|
|
4303
|
+
ref: m,
|
|
4184
4304
|
class: "uid-tree-item__row",
|
|
4185
4305
|
style: v({ "--uid-tree-level": n.level }),
|
|
4186
|
-
tabindex:
|
|
4187
|
-
onClick:
|
|
4188
|
-
onKeydown:
|
|
4306
|
+
tabindex: A.value,
|
|
4307
|
+
onClick: M,
|
|
4308
|
+
onKeydown: F,
|
|
4309
|
+
onFocus: I
|
|
4189
4310
|
}, [
|
|
4190
|
-
|
|
4311
|
+
h.value ? (x(), c("button", {
|
|
4191
4312
|
key: 0,
|
|
4192
4313
|
type: "button",
|
|
4193
|
-
class: _(["uid-tree-item__chevron", { "uid-tree-item__chevron--open":
|
|
4194
|
-
"aria-label":
|
|
4314
|
+
class: _(["uid-tree-item__chevron", { "uid-tree-item__chevron--open": y.value }]),
|
|
4315
|
+
"aria-label": y.value ? j(f).treeView.collapse : j(f).treeView.expand,
|
|
4195
4316
|
tabindex: "-1",
|
|
4196
|
-
onClick:
|
|
4317
|
+
onClick: N
|
|
4197
4318
|
}, [d(e, {
|
|
4198
|
-
icon: j(
|
|
4319
|
+
icon: j(X),
|
|
4199
4320
|
size: 14
|
|
4200
|
-
}, null, 8, ["icon"])], 10,
|
|
4321
|
+
}, null, 8, ["icon"])], 10, mo)) : (x(), c("span", ho)),
|
|
4201
4322
|
j(u).checkable.value ? (x(), c("span", {
|
|
4202
4323
|
key: 2,
|
|
4203
4324
|
class: _(["uid-tree-item__check", {
|
|
4204
|
-
"uid-tree-item__check--checked":
|
|
4205
|
-
"uid-tree-item__check--indeterminate":
|
|
4325
|
+
"uid-tree-item__check--checked": S.value,
|
|
4326
|
+
"uid-tree-item__check--indeterminate": C.value
|
|
4206
4327
|
}]),
|
|
4207
4328
|
role: "checkbox",
|
|
4208
|
-
"aria-checked":
|
|
4209
|
-
onClick:
|
|
4210
|
-
}, [
|
|
4329
|
+
"aria-checked": C.value ? "mixed" : S.value,
|
|
4330
|
+
onClick: P
|
|
4331
|
+
}, [S.value && !C.value ? (x(), o(e, {
|
|
4211
4332
|
key: 0,
|
|
4212
4333
|
icon: j(q),
|
|
4213
4334
|
size: 12
|
|
4214
|
-
}, null, 8, ["icon"])) : s("", !0)], 10,
|
|
4215
|
-
n.node.icon ? (x(), c("span",
|
|
4335
|
+
}, null, 8, ["icon"])) : s("", !0)], 10, go)) : s("", !0),
|
|
4336
|
+
n.node.icon ? (x(), c("span", _o, [d(e, {
|
|
4216
4337
|
icon: n.node.icon,
|
|
4217
4338
|
size: 16
|
|
4218
4339
|
}, null, 8, ["icon"])])) : s("", !0),
|
|
4219
|
-
l("span",
|
|
4220
|
-
], 44,
|
|
4340
|
+
l("span", vo, k(n.node.label), 1)
|
|
4341
|
+
], 44, po), h.value && y.value ? (x(), c("ul", yo, [(x(!0), c(t, null, T(n.node.children, (e) => (x(), o(a, {
|
|
4221
4342
|
key: e.key,
|
|
4222
4343
|
node: e,
|
|
4223
4344
|
level: n.level + 1
|
|
4224
|
-
}, null, 8, ["node", "level"]))), 128))])) : s("", !0)], 10,
|
|
4345
|
+
}, null, 8, ["node", "level"]))), 128))])) : s("", !0)], 10, fo);
|
|
4225
4346
|
};
|
|
4226
4347
|
}
|
|
4227
|
-
}),
|
|
4348
|
+
}), xo = /* @__PURE__ */ f({
|
|
4228
4349
|
__name: "UidTreeView",
|
|
4229
4350
|
props: /* @__PURE__ */ m({
|
|
4230
4351
|
nodes: {},
|
|
@@ -4339,30 +4460,64 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4339
4460
|
}
|
|
4340
4461
|
m.value = n, u.value = [...n], v(), i("check", e, !t);
|
|
4341
4462
|
}
|
|
4342
|
-
|
|
4463
|
+
let E = w(null), D = a(() => {
|
|
4464
|
+
let e = [], t = (n) => {
|
|
4465
|
+
for (let r of n) e.push(r.key), r.children && f.value.has(r.key) && t(r.children);
|
|
4466
|
+
};
|
|
4467
|
+
return t(r.nodes), e;
|
|
4468
|
+
}), O = a(() => {
|
|
4469
|
+
let e = /* @__PURE__ */ new Map(), t = (n, r) => {
|
|
4470
|
+
for (let i of n) e.set(i.key, r), i.children && t(i.children, i.key);
|
|
4471
|
+
};
|
|
4472
|
+
return t(r.nodes, null), e;
|
|
4473
|
+
});
|
|
4474
|
+
function k(e) {
|
|
4475
|
+
E.value = e;
|
|
4476
|
+
}
|
|
4477
|
+
function A(e, t) {
|
|
4478
|
+
let n = D.value, r = n.indexOf(e);
|
|
4479
|
+
r < 0 || (E.value = n[Math.max(0, Math.min(n.length - 1, r + t))]);
|
|
4480
|
+
}
|
|
4481
|
+
function j(e) {
|
|
4482
|
+
let t = D.value;
|
|
4483
|
+
t.length !== 0 && (E.value = e === "first" ? t[0] : t[t.length - 1]);
|
|
4484
|
+
}
|
|
4485
|
+
function M(e) {
|
|
4486
|
+
return D.value[0] === e;
|
|
4487
|
+
}
|
|
4488
|
+
function P(e) {
|
|
4489
|
+
return O.value.get(e) ?? null;
|
|
4490
|
+
}
|
|
4491
|
+
return S(uo, {
|
|
4343
4492
|
selectable: a(() => r.selectable),
|
|
4344
4493
|
checkable: a(() => r.checkable),
|
|
4345
4494
|
disabled: a(() => r.disabled),
|
|
4346
4495
|
expandedKeys: f,
|
|
4347
4496
|
selectedKeys: p,
|
|
4348
4497
|
checkedKeys: m,
|
|
4498
|
+
focusedKey: E,
|
|
4349
4499
|
isExpanded: (e) => f.value.has(e),
|
|
4350
4500
|
isSelected: (e) => p.value.has(e),
|
|
4351
4501
|
isChecked: (e) => m.value.has(e),
|
|
4352
4502
|
isIndeterminate: (e) => h.value.has(e),
|
|
4503
|
+
isFirst: M,
|
|
4353
4504
|
toggleExpand: y,
|
|
4354
4505
|
toggleSelect: b,
|
|
4355
|
-
toggleCheck: C
|
|
4506
|
+
toggleCheck: C,
|
|
4507
|
+
focusKey: k,
|
|
4508
|
+
focusRelative: A,
|
|
4509
|
+
focusEdge: j,
|
|
4510
|
+
parentKeyOf: P
|
|
4356
4511
|
}), (n, r) => (x(), c("ul", {
|
|
4357
4512
|
class: _(["uid-tree", { "uid-tree--guides": e.showGuides }]),
|
|
4358
4513
|
role: "tree"
|
|
4359
|
-
}, [(x(!0), c(t, null, T(e.nodes, (e) => (x(), o(
|
|
4514
|
+
}, [(x(!0), c(t, null, T(e.nodes, (e) => (x(), o(bo, {
|
|
4360
4515
|
key: e.key,
|
|
4361
4516
|
node: e,
|
|
4362
4517
|
level: 0
|
|
4363
4518
|
}, null, 8, ["node"]))), 128))], 2));
|
|
4364
4519
|
}
|
|
4365
|
-
}),
|
|
4520
|
+
}), So = /* @__PURE__ */ f({
|
|
4366
4521
|
__name: "UidTimeline",
|
|
4367
4522
|
props: { alternate: {
|
|
4368
4523
|
type: Boolean,
|
|
@@ -4371,19 +4526,19 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4371
4526
|
setup(e) {
|
|
4372
4527
|
return (t, n) => (x(), c("ol", { class: _(["uid-timeline", { "uid-timeline--alternate": e.alternate }]) }, [E(t.$slots, "default")], 2));
|
|
4373
4528
|
}
|
|
4374
|
-
}),
|
|
4529
|
+
}), Co = { class: "uid-timeline-item__rail" }, wo = { class: "uid-timeline-item__marker" }, To = { class: "uid-timeline-item__content" }, Eo = {
|
|
4375
4530
|
key: 0,
|
|
4376
4531
|
class: "uid-timeline-item__time"
|
|
4377
|
-
},
|
|
4532
|
+
}, Do = {
|
|
4378
4533
|
key: 1,
|
|
4379
4534
|
class: "uid-timeline-item__title"
|
|
4380
|
-
},
|
|
4535
|
+
}, Oo = {
|
|
4381
4536
|
key: 2,
|
|
4382
4537
|
class: "uid-timeline-item__description"
|
|
4383
|
-
},
|
|
4538
|
+
}, ko = {
|
|
4384
4539
|
key: 3,
|
|
4385
4540
|
class: "uid-timeline-item__description"
|
|
4386
|
-
},
|
|
4541
|
+
}, Ao = /* @__PURE__ */ f({
|
|
4387
4542
|
__name: "UidTimelineItem",
|
|
4388
4543
|
props: {
|
|
4389
4544
|
title: {},
|
|
@@ -4393,37 +4548,37 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4393
4548
|
icon: {}
|
|
4394
4549
|
},
|
|
4395
4550
|
setup(t) {
|
|
4396
|
-
return (n, r) => (x(), c("li", { class: _(["uid-timeline-item", [t.tone !== "neutral" && `uid-timeline-item--${t.tone}`, (t.icon || n.$slots.icon) && "uid-timeline-item--with-icon"]]) }, [l("div",
|
|
4551
|
+
return (n, r) => (x(), c("li", { class: _(["uid-timeline-item", [t.tone !== "neutral" && `uid-timeline-item--${t.tone}`, (t.icon || n.$slots.icon) && "uid-timeline-item--with-icon"]]) }, [l("div", Co, [l("div", wo, [E(n.$slots, "icon", {}, () => [t.icon ? (x(), o(e, {
|
|
4397
4552
|
key: 0,
|
|
4398
4553
|
icon: t.icon,
|
|
4399
4554
|
size: 14
|
|
4400
4555
|
}, null, 8, ["icon"])) : s("", !0)])]), r[0] ||= l("div", {
|
|
4401
4556
|
class: "uid-timeline-item__line",
|
|
4402
4557
|
"aria-hidden": "true"
|
|
4403
|
-
}, null, -1)]), l("div",
|
|
4404
|
-
t.time || n.$slots.time ? (x(), c("p",
|
|
4405
|
-
t.title ? (x(), c("h4",
|
|
4406
|
-
t.description && !n.$slots.default ? (x(), c("p",
|
|
4407
|
-
n.$slots.default ? (x(), c("div",
|
|
4558
|
+
}, null, -1)]), l("div", To, [
|
|
4559
|
+
t.time || n.$slots.time ? (x(), c("p", Eo, [E(n.$slots, "time", {}, () => [u(k(t.time), 1)])])) : s("", !0),
|
|
4560
|
+
t.title ? (x(), c("h4", Do, k(t.title), 1)) : s("", !0),
|
|
4561
|
+
t.description && !n.$slots.default ? (x(), c("p", Oo, k(t.description), 1)) : s("", !0),
|
|
4562
|
+
n.$slots.default ? (x(), c("div", ko, [E(n.$slots, "default")])) : s("", !0)
|
|
4408
4563
|
])], 2));
|
|
4409
4564
|
}
|
|
4410
|
-
}),
|
|
4565
|
+
}), jo = ["for"], Mo = {
|
|
4411
4566
|
key: 0,
|
|
4412
4567
|
class: "uid-file-upload__required",
|
|
4413
4568
|
"aria-hidden": "true"
|
|
4414
|
-
},
|
|
4569
|
+
}, No = ["aria-disabled", "aria-invalid"], Po = { class: "uid-file-upload__primary-text" }, Fo = ["innerHTML"], Io = { class: "uid-file-upload__secondary-text" }, Lo = [
|
|
4415
4570
|
"id",
|
|
4416
4571
|
"multiple",
|
|
4417
4572
|
"accept",
|
|
4418
4573
|
"disabled",
|
|
4419
4574
|
"required"
|
|
4420
|
-
],
|
|
4575
|
+
], Ro = {
|
|
4421
4576
|
key: 1,
|
|
4422
4577
|
class: "uid-file-upload__list"
|
|
4423
|
-
},
|
|
4578
|
+
}, zo = { class: "uid-file-upload__file-info" }, Bo = { class: "uid-file-upload__file-name" }, Vo = { class: "uid-file-upload__file-meta" }, Ho = { key: 0 }, Uo = { key: 1 }, Wo = {
|
|
4424
4579
|
key: 0,
|
|
4425
4580
|
class: "uid-file-upload__progress"
|
|
4426
|
-
},
|
|
4581
|
+
}, Go = ["aria-label", "onClick"], Ko = /* @__PURE__ */ f({
|
|
4427
4582
|
__name: "UidFileUpload",
|
|
4428
4583
|
props: /* @__PURE__ */ m({
|
|
4429
4584
|
multiple: {
|
|
@@ -4516,7 +4671,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4516
4671
|
key: 0,
|
|
4517
4672
|
for: j(b),
|
|
4518
4673
|
class: "uid-file-upload__label"
|
|
4519
|
-
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span",
|
|
4674
|
+
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", Mo, "*")) : s("", !0)], 8, jo)) : s("", !0),
|
|
4520
4675
|
l("div", {
|
|
4521
4676
|
class: _(["uid-file-upload__dropzone", { "uid-file-upload__dropzone--active": y.value }]),
|
|
4522
4677
|
role: "button",
|
|
@@ -4530,13 +4685,13 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4530
4685
|
onDragleave: R
|
|
4531
4686
|
}, [
|
|
4532
4687
|
d(e, {
|
|
4533
|
-
icon: j(
|
|
4688
|
+
icon: j(he),
|
|
4534
4689
|
size: 32,
|
|
4535
4690
|
class: "uid-file-upload__icon",
|
|
4536
4691
|
"aria-hidden": "true"
|
|
4537
4692
|
}, null, 8, ["icon"]),
|
|
4538
|
-
l("p",
|
|
4539
|
-
l("p",
|
|
4693
|
+
l("p", Po, [l("span", { innerHTML: f.value }, null, 8, Fo)]),
|
|
4694
|
+
l("p", Io, k(p.value), 1),
|
|
4540
4695
|
l("input", {
|
|
4541
4696
|
id: j(b),
|
|
4542
4697
|
ref_key: "inputRef",
|
|
@@ -4550,22 +4705,22 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4550
4705
|
disabled: n.disabled,
|
|
4551
4706
|
required: n.required,
|
|
4552
4707
|
onChange: A
|
|
4553
|
-
}, null, 40,
|
|
4554
|
-
], 42,
|
|
4555
|
-
h.value.length > 0 ? (x(), c("ul",
|
|
4708
|
+
}, null, 40, Lo)
|
|
4709
|
+
], 42, No),
|
|
4710
|
+
h.value.length > 0 ? (x(), c("ul", Ro, [(x(!0), c(t, null, T(h.value, (t) => (x(), c("li", {
|
|
4556
4711
|
key: t.id,
|
|
4557
4712
|
class: _(["uid-file-upload__item", { "uid-file-upload__item--error": t.error }])
|
|
4558
4713
|
}, [
|
|
4559
4714
|
d(e, {
|
|
4560
|
-
icon: j(
|
|
4715
|
+
icon: j(se),
|
|
4561
4716
|
size: 20,
|
|
4562
4717
|
class: "uid-file-upload__file-icon",
|
|
4563
4718
|
"aria-hidden": "true"
|
|
4564
4719
|
}, null, 8, ["icon"]),
|
|
4565
|
-
l("div",
|
|
4566
|
-
l("div",
|
|
4567
|
-
l("div",
|
|
4568
|
-
t.progress !== void 0 && !t.error ? (x(), c("div",
|
|
4720
|
+
l("div", zo, [
|
|
4721
|
+
l("div", Bo, k(t.file.name), 1),
|
|
4722
|
+
l("div", Vo, [l("span", null, k(E(t.file.size)), 1), t.error ? (x(), c("span", Ho, "— " + k(t.error), 1)) : t.progress === void 0 ? s("", !0) : (x(), c("span", Uo, "— " + k(t.progress) + "%", 1))]),
|
|
4723
|
+
t.progress !== void 0 && !t.error ? (x(), c("div", Wo, [l("div", {
|
|
4569
4724
|
class: "uid-file-upload__progress-bar",
|
|
4570
4725
|
style: v({ width: `${t.progress}%` })
|
|
4571
4726
|
}, null, 4)])) : s("", !0)
|
|
@@ -4576,9 +4731,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4576
4731
|
"aria-label": j(o).fileUpload.remove(t.file.name),
|
|
4577
4732
|
onClick: (e) => z(t)
|
|
4578
4733
|
}, [d(e, {
|
|
4579
|
-
icon: j(
|
|
4734
|
+
icon: j(_e),
|
|
4580
4735
|
size: 16
|
|
4581
|
-
}, null, 8, ["icon"])], 8,
|
|
4736
|
+
}, null, 8, ["icon"])], 8, Go)
|
|
4582
4737
|
], 2))), 128))])) : s("", !0),
|
|
4583
4738
|
C.value ? (x(), c("p", {
|
|
4584
4739
|
key: 2,
|
|
@@ -4586,17 +4741,17 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4586
4741
|
}, k(C.value), 3)) : s("", !0)
|
|
4587
4742
|
], 2));
|
|
4588
4743
|
}
|
|
4589
|
-
}),
|
|
4744
|
+
}), qo = {
|
|
4590
4745
|
key: 0,
|
|
4591
4746
|
class: "uid-code uid-code--inline"
|
|
4592
|
-
},
|
|
4747
|
+
}, Jo = {
|
|
4593
4748
|
key: 0,
|
|
4594
4749
|
class: "uid-code__header"
|
|
4595
|
-
},
|
|
4750
|
+
}, Yo = { class: "uid-code__lang" }, Xo = ["aria-label"], Zo = { class: "uid-code__body" }, Qo = {
|
|
4596
4751
|
key: 0,
|
|
4597
4752
|
class: "uid-code__line-numbers",
|
|
4598
4753
|
"aria-hidden": "true"
|
|
4599
|
-
},
|
|
4754
|
+
}, $o = { class: "uid-code__pre" }, es = /* @__PURE__ */ f({
|
|
4600
4755
|
__name: "UidCode",
|
|
4601
4756
|
props: {
|
|
4602
4757
|
code: { default: "" },
|
|
@@ -4628,47 +4783,47 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4628
4783
|
}, 1500);
|
|
4629
4784
|
} catch {}
|
|
4630
4785
|
}
|
|
4631
|
-
return (i, a) => n.inline ? (x(), c("code",
|
|
4786
|
+
return (i, a) => n.inline ? (x(), c("code", qo, [E(i.$slots, "default", {}, () => [u(k(n.code), 1)])])) : (x(), c("div", {
|
|
4632
4787
|
key: 1,
|
|
4633
4788
|
class: _(["uid-code", {
|
|
4634
4789
|
"uid-code--minimal": !p.value,
|
|
4635
4790
|
"uid-code--wrap": n.wrap
|
|
4636
4791
|
}]),
|
|
4637
4792
|
style: v(n.maxHeight ? { "--uid-code-max-height": n.maxHeight } : void 0)
|
|
4638
|
-
}, [p.value ? (x(), c("div",
|
|
4793
|
+
}, [p.value ? (x(), c("div", Jo, [l("span", Yo, k(n.language || ""), 1), n.copy ? (x(), c("button", {
|
|
4639
4794
|
key: 0,
|
|
4640
4795
|
type: "button",
|
|
4641
4796
|
class: _(["uid-code__copy", { "uid-code__copy--copied": o.value }]),
|
|
4642
4797
|
"aria-label": o.value ? j(r).copy.copied : j(r).copy.copy,
|
|
4643
4798
|
onClick: m
|
|
4644
4799
|
}, [d(e, {
|
|
4645
|
-
icon: o.value ? j(q) : j(
|
|
4800
|
+
icon: o.value ? j(q) : j(oe),
|
|
4646
4801
|
size: 12,
|
|
4647
4802
|
"aria-hidden": "true"
|
|
4648
|
-
}, null, 8, ["icon"]), l("span", null, k(o.value ? j(r).copy.copied : j(r).copy.copy), 1)], 10,
|
|
4803
|
+
}, null, 8, ["icon"]), l("span", null, k(o.value ? j(r).copy.copied : j(r).copy.copy), 1)], 10, Xo)) : s("", !0)])) : s("", !0), l("div", Zo, [n.lineNumbers ? (x(), c("div", Qo, [(x(!0), c(t, null, T(f.value, (e, t) => (x(), c("span", {
|
|
4649
4804
|
key: t,
|
|
4650
4805
|
class: "uid-code__line-number"
|
|
4651
|
-
}, k(t + 1), 1))), 128))])) : s("", !0), l("pre",
|
|
4806
|
+
}, k(t + 1), 1))), 128))])) : s("", !0), l("pre", $o, [l("code", null, [E(i.$slots, "default", {}, () => [u(k(n.code), 1)])])])])], 6));
|
|
4652
4807
|
}
|
|
4653
|
-
}),
|
|
4808
|
+
}), ts = [
|
|
4654
4809
|
"aria-valuemax",
|
|
4655
4810
|
"aria-valuenow",
|
|
4656
4811
|
"aria-readonly",
|
|
4657
4812
|
"aria-disabled",
|
|
4658
4813
|
"aria-label"
|
|
4659
|
-
],
|
|
4814
|
+
], ns = [
|
|
4660
4815
|
"tabindex",
|
|
4661
4816
|
"aria-label",
|
|
4662
4817
|
"onClick",
|
|
4663
4818
|
"onMousemove",
|
|
4664
4819
|
"onKeydown"
|
|
4665
|
-
],
|
|
4820
|
+
], rs = {
|
|
4666
4821
|
class: "uid-rating__icon",
|
|
4667
4822
|
"aria-hidden": "true"
|
|
4668
|
-
},
|
|
4823
|
+
}, is = ["data-half"], as = {
|
|
4669
4824
|
key: 0,
|
|
4670
4825
|
class: "uid-rating__label"
|
|
4671
|
-
},
|
|
4826
|
+
}, os = /* @__PURE__ */ f({
|
|
4672
4827
|
__name: "UidRating",
|
|
4673
4828
|
props: /* @__PURE__ */ m({
|
|
4674
4829
|
max: { default: 5 },
|
|
@@ -4698,7 +4853,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4698
4853
|
}),
|
|
4699
4854
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
4700
4855
|
setup(n, { emit: r }) {
|
|
4701
|
-
let i = n, o = r, u = N(n, "modelValue"), f = w(null), p = a(() => Array.from({ length: i.max }, (e, t) => t + 1)), m = a(() => f.value ?? u.value), h = a(() => i.icon ??
|
|
4856
|
+
let i = n, o = r, u = N(n, "modelValue"), f = w(null), p = a(() => Array.from({ length: i.max }, (e, t) => t + 1)), m = a(() => f.value ?? u.value), h = a(() => i.icon ?? me);
|
|
4702
4857
|
function g(e) {
|
|
4703
4858
|
let t = m.value;
|
|
4704
4859
|
return t >= e ? {
|
|
@@ -4772,21 +4927,21 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4772
4927
|
onClick: (e) => y(e, t),
|
|
4773
4928
|
onMousemove: (e) => b(e, t),
|
|
4774
4929
|
onKeydown: (e) => C(e, t)
|
|
4775
|
-
}, [l("span",
|
|
4930
|
+
}, [l("span", rs, [d(e, { icon: h.value }, null, 8, ["icon"])]), g(t).full ? (x(), c("span", {
|
|
4776
4931
|
key: 0,
|
|
4777
4932
|
class: "uid-rating__icon uid-rating__icon--filled",
|
|
4778
4933
|
"data-half": g(t).half ? "true" : "false",
|
|
4779
4934
|
"aria-hidden": "true"
|
|
4780
|
-
}, [d(e, { icon: h.value }, null, 8, ["icon"])], 8,
|
|
4935
|
+
}, [d(e, { icon: h.value }, null, 8, ["icon"])], 8, is)) : s("", !0)], 40, ns))), 128)), n.showLabel ? (x(), c("span", as, k(u.value.toFixed(+!!n.allowHalf)) + " / " + k(n.max), 1)) : s("", !0)], 42, ts));
|
|
4781
4936
|
}
|
|
4782
|
-
}),
|
|
4937
|
+
}), ss = [
|
|
4783
4938
|
"tabindex",
|
|
4784
4939
|
"aria-orientation",
|
|
4785
4940
|
"aria-valuemin",
|
|
4786
4941
|
"aria-valuemax",
|
|
4787
4942
|
"aria-valuenow",
|
|
4788
4943
|
"aria-disabled"
|
|
4789
|
-
],
|
|
4944
|
+
], cs = { class: "uid-splitter__pane uid-splitter__pane--end" }, ls = /* @__PURE__ */ f({
|
|
4790
4945
|
__name: "UidSplitter",
|
|
4791
4946
|
props: /* @__PURE__ */ m({
|
|
4792
4947
|
direction: { default: "horizontal" },
|
|
@@ -4864,27 +5019,27 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4864
5019
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
4865
5020
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
4866
5021
|
l("span", { class: "uid-splitter__grip-dot" })
|
|
4867
|
-
], -1)]], 40,
|
|
4868
|
-
l("div",
|
|
5022
|
+
], -1)]], 40, ss),
|
|
5023
|
+
l("div", cs, [E(t.$slots, "end")])
|
|
4869
5024
|
], 2));
|
|
4870
5025
|
}
|
|
4871
|
-
}),
|
|
5026
|
+
}), us = {
|
|
4872
5027
|
key: 0,
|
|
4873
5028
|
class: "uid-stat__icon",
|
|
4874
5029
|
"aria-hidden": "true"
|
|
4875
|
-
},
|
|
5030
|
+
}, ds = { class: "uid-stat__body" }, fs = {
|
|
4876
5031
|
key: 0,
|
|
4877
5032
|
class: "uid-stat__title"
|
|
4878
|
-
},
|
|
5033
|
+
}, ps = { class: "uid-stat__value-row" }, ms = { class: "uid-stat__value" }, hs = {
|
|
4879
5034
|
key: 0,
|
|
4880
5035
|
class: "uid-stat__prefix"
|
|
4881
|
-
},
|
|
5036
|
+
}, gs = {
|
|
4882
5037
|
key: 1,
|
|
4883
5038
|
class: "uid-stat__suffix"
|
|
4884
|
-
},
|
|
5039
|
+
}, _s = {
|
|
4885
5040
|
key: 1,
|
|
4886
5041
|
class: "uid-stat__footer"
|
|
4887
|
-
},
|
|
5042
|
+
}, vs = /* @__PURE__ */ f({
|
|
4888
5043
|
__name: "UidStat",
|
|
4889
5044
|
props: {
|
|
4890
5045
|
title: {},
|
|
@@ -4910,16 +5065,16 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4910
5065
|
`uid-stat--${t.tone}`,
|
|
4911
5066
|
t.variant === "ghost" && "uid-stat--ghost",
|
|
4912
5067
|
t.loading && "uid-stat--loading"
|
|
4913
|
-
]]) }, [t.icon || n.$slots.icon ? (x(), c("span",
|
|
5068
|
+
]]) }, [t.icon || n.$slots.icon ? (x(), c("span", us, [E(n.$slots, "icon", {}, () => [t.icon ? (x(), o(e, {
|
|
4914
5069
|
key: 0,
|
|
4915
5070
|
icon: t.icon,
|
|
4916
5071
|
size: 20
|
|
4917
|
-
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div",
|
|
4918
|
-
t.title ? (x(), c("p",
|
|
4919
|
-
l("div",
|
|
4920
|
-
t.prefix ? (x(), c("span",
|
|
5072
|
+
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div", ds, [
|
|
5073
|
+
t.title ? (x(), c("p", fs, k(t.title), 1)) : s("", !0),
|
|
5074
|
+
l("div", ps, [l("span", ms, [E(n.$slots, "value", {}, () => [
|
|
5075
|
+
t.prefix ? (x(), c("span", hs, k(t.prefix), 1)) : s("", !0),
|
|
4921
5076
|
l("span", null, k(r.value), 1),
|
|
4922
|
-
t.suffix ? (x(), c("span",
|
|
5077
|
+
t.suffix ? (x(), c("span", gs, k(t.suffix), 1)) : s("", !0)
|
|
4923
5078
|
])]), t.trend !== void 0 || n.$slots.trend ? (x(), c("span", {
|
|
4924
5079
|
key: 0,
|
|
4925
5080
|
class: _(["uid-stat__trend", i.value && `uid-stat__trend--${i.value}`])
|
|
@@ -4928,13 +5083,13 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4928
5083
|
icon: d.value,
|
|
4929
5084
|
size: 12
|
|
4930
5085
|
}, null, 8, ["icon"])) : s("", !0), l("span", null, k(f.value), 1)])], 2)) : s("", !0)]),
|
|
4931
|
-
t.footer || n.$slots.footer ? (x(), c("p",
|
|
5086
|
+
t.footer || n.$slots.footer ? (x(), c("p", _s, [E(n.$slots, "footer", {}, () => [u(k(t.footer), 1)])])) : s("", !0)
|
|
4932
5087
|
])], 2));
|
|
4933
5088
|
}
|
|
4934
|
-
}),
|
|
5089
|
+
}), ys = Symbol("UidDescriptionList"), bs = {
|
|
4935
5090
|
key: 0,
|
|
4936
5091
|
class: "uid-description-list__title"
|
|
4937
|
-
},
|
|
5092
|
+
}, xs = /* @__PURE__ */ f({
|
|
4938
5093
|
__name: "UidDescriptionList",
|
|
4939
5094
|
props: {
|
|
4940
5095
|
title: {},
|
|
@@ -4949,7 +5104,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4949
5104
|
},
|
|
4950
5105
|
setup(e) {
|
|
4951
5106
|
let t = e;
|
|
4952
|
-
S(
|
|
5107
|
+
S(ys, {
|
|
4953
5108
|
direction: a(() => t.direction),
|
|
4954
5109
|
bordered: a(() => t.bordered)
|
|
4955
5110
|
});
|
|
@@ -4961,12 +5116,12 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4961
5116
|
`uid-description-list--${e.direction}`,
|
|
4962
5117
|
`uid-description-list--${e.size}`,
|
|
4963
5118
|
e.bordered && "uid-description-list--bordered"
|
|
4964
|
-
]]) }, [e.title || t.$slots.title ? (x(), c("h3",
|
|
5119
|
+
]]) }, [e.title || t.$slots.title ? (x(), c("h3", bs, [E(t.$slots, "title", {}, () => [u(k(e.title), 1)])])) : s("", !0), l("dl", {
|
|
4965
5120
|
class: "uid-description-list__grid",
|
|
4966
5121
|
style: v(n.value)
|
|
4967
5122
|
}, [E(t.$slots, "default")], 4)], 2));
|
|
4968
5123
|
}
|
|
4969
|
-
}),
|
|
5124
|
+
}), Ss = { class: "uid-description-item__label" }, Cs = { class: "uid-description-item__value" }, ws = ["aria-label"], Ts = /* @__PURE__ */ f({
|
|
4970
5125
|
__name: "UidDescriptionItem",
|
|
4971
5126
|
props: {
|
|
4972
5127
|
label: {},
|
|
@@ -4979,7 +5134,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4979
5134
|
},
|
|
4980
5135
|
setup(t) {
|
|
4981
5136
|
let n = $(), r = t;
|
|
4982
|
-
P(), p(
|
|
5137
|
+
P(), p(ys, null);
|
|
4983
5138
|
let i = w(null), o = w(!1), f = a(() => ({ "--uid-desc-span": r.span }));
|
|
4984
5139
|
async function m() {
|
|
4985
5140
|
let e = r.copyValue ?? i.value?.querySelector(".uid-description-item__value")?.textContent?.trim() ?? "";
|
|
@@ -4994,33 +5149,33 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4994
5149
|
ref: i,
|
|
4995
5150
|
class: "uid-description-item",
|
|
4996
5151
|
style: v(f.value)
|
|
4997
|
-
}, [l("dt",
|
|
5152
|
+
}, [l("dt", Ss, [E(r.$slots, "label", {}, () => [u(k(t.label), 1)])]), l("dd", Cs, [E(r.$slots, "default"), t.copyable ? (x(), c("button", {
|
|
4998
5153
|
key: 0,
|
|
4999
5154
|
type: "button",
|
|
5000
5155
|
class: _(["uid-description-item__copy", { "uid-description-item__copy--copied": o.value }]),
|
|
5001
5156
|
"aria-label": o.value ? j(n).copy.copied : j(n).copy.copy,
|
|
5002
5157
|
onClick: m
|
|
5003
5158
|
}, [d(e, {
|
|
5004
|
-
icon: o.value ? j(q) : j(
|
|
5159
|
+
icon: o.value ? j(q) : j(oe),
|
|
5005
5160
|
size: 12
|
|
5006
|
-
}, null, 8, ["icon"])], 10,
|
|
5161
|
+
}, null, 8, ["icon"])], 10, ws)) : s("", !0)])], 4));
|
|
5007
5162
|
}
|
|
5008
|
-
}),
|
|
5163
|
+
}), Es = {
|
|
5009
5164
|
class: "uid-pattern-result__icon",
|
|
5010
5165
|
"aria-hidden": "true"
|
|
5011
|
-
},
|
|
5166
|
+
}, Ds = {
|
|
5012
5167
|
key: 0,
|
|
5013
5168
|
class: "uid-pattern-result__title"
|
|
5014
|
-
},
|
|
5169
|
+
}, Os = {
|
|
5015
5170
|
key: 1,
|
|
5016
5171
|
class: "uid-pattern-result__description"
|
|
5017
|
-
},
|
|
5172
|
+
}, ks = {
|
|
5018
5173
|
key: 2,
|
|
5019
5174
|
class: "uid-pattern-result__content"
|
|
5020
|
-
},
|
|
5175
|
+
}, As = {
|
|
5021
5176
|
key: 3,
|
|
5022
5177
|
class: "uid-pattern-result__actions"
|
|
5023
|
-
},
|
|
5178
|
+
}, js = /* @__PURE__ */ f({
|
|
5024
5179
|
__name: "UidResult",
|
|
5025
5180
|
props: {
|
|
5026
5181
|
status: { default: "success" },
|
|
@@ -5034,7 +5189,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5034
5189
|
setup(t) {
|
|
5035
5190
|
let n = t, r = {
|
|
5036
5191
|
success: J,
|
|
5037
|
-
info:
|
|
5192
|
+
info: le,
|
|
5038
5193
|
warning: W,
|
|
5039
5194
|
error: ve
|
|
5040
5195
|
}, i = a(() => r[n.status]);
|
|
@@ -5042,17 +5197,17 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5042
5197
|
class: _(["uid-pattern-result", [`uid-pattern-result--${t.status}`, t.compact && "uid-pattern-result--compact"]]),
|
|
5043
5198
|
role: "status"
|
|
5044
5199
|
}, [
|
|
5045
|
-
l("div",
|
|
5200
|
+
l("div", Es, [E(n.$slots, "icon", {}, () => [d(e, {
|
|
5046
5201
|
icon: i.value,
|
|
5047
5202
|
size: t.compact ? 32 : 40
|
|
5048
5203
|
}, null, 8, ["icon", "size"])])]),
|
|
5049
|
-
t.title || n.$slots.title ? (x(), c("h2",
|
|
5050
|
-
t.description || n.$slots.description ? (x(), c("p",
|
|
5051
|
-
n.$slots.default ? (x(), c("div",
|
|
5052
|
-
n.$slots.actions ? (x(), c("div",
|
|
5204
|
+
t.title || n.$slots.title ? (x(), c("h2", Ds, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])])) : s("", !0),
|
|
5205
|
+
t.description || n.$slots.description ? (x(), c("p", Os, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0),
|
|
5206
|
+
n.$slots.default ? (x(), c("div", ks, [E(n.$slots, "default")])) : s("", !0),
|
|
5207
|
+
n.$slots.actions ? (x(), c("div", As, [E(n.$slots, "actions")])) : s("", !0)
|
|
5053
5208
|
], 2));
|
|
5054
5209
|
}
|
|
5055
|
-
}),
|
|
5210
|
+
}), Ms = ["aria-label"], Ns = /* @__PURE__ */ f({
|
|
5056
5211
|
__name: "UidBackTop",
|
|
5057
5212
|
props: {
|
|
5058
5213
|
visibleAfter: { default: 200 },
|
|
@@ -5100,11 +5255,11 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5100
5255
|
}, [E(t.$slots, "default", {}, () => [d(e, {
|
|
5101
5256
|
icon: j(K),
|
|
5102
5257
|
size: 20
|
|
5103
|
-
}, null, 8, ["icon"])])], 8,
|
|
5258
|
+
}, null, 8, ["icon"])])], 8, Ms), [[L, f.value]])]),
|
|
5104
5259
|
_: 3
|
|
5105
5260
|
}));
|
|
5106
5261
|
}
|
|
5107
|
-
}),
|
|
5262
|
+
}), Ps = { class: "uid-affix__content" }, Fs = /* @__PURE__ */ f({
|
|
5108
5263
|
__name: "UidAffix",
|
|
5109
5264
|
props: {
|
|
5110
5265
|
offsetTop: {},
|
|
@@ -5134,9 +5289,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5134
5289
|
ref: o,
|
|
5135
5290
|
class: "uid-affix__sentinel",
|
|
5136
5291
|
"aria-hidden": "true"
|
|
5137
|
-
}, null, 512), l("div",
|
|
5292
|
+
}, null, 512), l("div", Ps, [E(e.$slots, "default")])], 6));
|
|
5138
5293
|
}
|
|
5139
|
-
}),
|
|
5294
|
+
}), Is = { class: "uid-watermark" }, Ls = { class: "uid-watermark__content" }, Rs = /* @__PURE__ */ f({
|
|
5140
5295
|
__name: "UidWatermark",
|
|
5141
5296
|
props: {
|
|
5142
5297
|
content: { default: "" },
|
|
@@ -5159,14 +5314,14 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5159
5314
|
if (!a) return;
|
|
5160
5315
|
let o = typeof window < "u" && window.devicePixelRatio || 1;
|
|
5161
5316
|
a.font = t.font;
|
|
5162
|
-
let s =
|
|
5163
|
-
for (let t of e)
|
|
5164
|
-
let
|
|
5165
|
-
i.width =
|
|
5166
|
-
let
|
|
5317
|
+
let s = t.font.match(/(\d+(?:\.\d+)?)\s*px/i), c = (s ? parseFloat(s[1]) : 16) * 1.4, l = 0;
|
|
5318
|
+
for (let t of e) l = Math.max(l, a.measureText(t).width);
|
|
5319
|
+
let u = c * e.length, d = t.rotate * Math.PI / 180, f = Math.abs(Math.sin(d)), p = Math.abs(Math.cos(d)), m = l * p + u * f, h = l * f + u * p, g = m + t.gap[0], _ = h + t.gap[1];
|
|
5320
|
+
i.width = g * o, i.height = _ * o, i.style.width = `${g}px`, i.style.height = `${_}px`, a.scale(o, o), a.translate(g / 2, _ / 2), a.rotate(d), a.font = t.font, a.fillStyle = t.color, a.textAlign = "center", a.textBaseline = "middle";
|
|
5321
|
+
let v = -((e.length - 1) * c) / 2;
|
|
5167
5322
|
e.forEach((e, t) => {
|
|
5168
|
-
a.fillText(e, 0,
|
|
5169
|
-
}), n.value = i.toDataURL("image/png"), r.value = [
|
|
5323
|
+
a.fillText(e, 0, v + t * c);
|
|
5324
|
+
}), n.value = i.toDataURL("image/png"), r.value = [g, _];
|
|
5170
5325
|
}
|
|
5171
5326
|
let o = a(() => ({
|
|
5172
5327
|
"--uid-watermark-image": n.value ? `url(${n.value})` : "none",
|
|
@@ -5183,27 +5338,27 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5183
5338
|
i();
|
|
5184
5339
|
}), b(() => {
|
|
5185
5340
|
n.value = "";
|
|
5186
|
-
}), (e, t) => (x(), c("div",
|
|
5341
|
+
}), (e, t) => (x(), c("div", Is, [l("div", {
|
|
5187
5342
|
class: "uid-watermark__overlay",
|
|
5188
5343
|
style: v(o.value),
|
|
5189
5344
|
"aria-hidden": "true"
|
|
5190
|
-
}, null, 4), l("div",
|
|
5345
|
+
}, null, 4), l("div", Ls, [E(e.$slots, "default")])]));
|
|
5191
5346
|
}
|
|
5192
|
-
}),
|
|
5347
|
+
}), zs = {
|
|
5193
5348
|
class: "uid-anchor",
|
|
5194
5349
|
"aria-label": "Содержание"
|
|
5195
|
-
},
|
|
5350
|
+
}, Bs = { class: "uid-anchor__list" }, Vs = [
|
|
5196
5351
|
"href",
|
|
5197
5352
|
"aria-current",
|
|
5198
5353
|
"onClick"
|
|
5199
|
-
],
|
|
5354
|
+
], Hs = {
|
|
5200
5355
|
key: 0,
|
|
5201
5356
|
class: "uid-anchor__sublist"
|
|
5202
|
-
},
|
|
5357
|
+
}, Us = [
|
|
5203
5358
|
"href",
|
|
5204
5359
|
"aria-current",
|
|
5205
5360
|
"onClick"
|
|
5206
|
-
],
|
|
5361
|
+
], Ws = /* @__PURE__ */ f({
|
|
5207
5362
|
__name: "UidAnchor",
|
|
5208
5363
|
props: /* @__PURE__ */ m({
|
|
5209
5364
|
items: {},
|
|
@@ -5267,7 +5422,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5267
5422
|
behavior: r.smooth ? "smooth" : "auto"
|
|
5268
5423
|
});
|
|
5269
5424
|
}
|
|
5270
|
-
return (n, r) => (x(), c("nav",
|
|
5425
|
+
return (n, r) => (x(), c("nav", zs, [l("ul", Bs, [(x(!0), c(t, null, T(e.items, (e) => (x(), c("li", {
|
|
5271
5426
|
key: e.key,
|
|
5272
5427
|
class: "uid-anchor__item"
|
|
5273
5428
|
}, [l("a", {
|
|
@@ -5275,7 +5430,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5275
5430
|
class: _(["uid-anchor__link", { "uid-anchor__link--active": a.value === e.key }]),
|
|
5276
5431
|
"aria-current": a.value === e.key ? "location" : void 0,
|
|
5277
5432
|
onClick: (t) => m(t, e)
|
|
5278
|
-
}, k(e.title), 11,
|
|
5433
|
+
}, k(e.title), 11, Vs), e.children?.length ? (x(), c("ul", Hs, [(x(!0), c(t, null, T(e.children, (e) => (x(), c("li", {
|
|
5279
5434
|
key: e.key,
|
|
5280
5435
|
class: "uid-anchor__item"
|
|
5281
5436
|
}, [l("a", {
|
|
@@ -5283,18 +5438,18 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5283
5438
|
class: _(["uid-anchor__link", { "uid-anchor__link--active": a.value === e.key }]),
|
|
5284
5439
|
"aria-current": a.value === e.key ? "location" : void 0,
|
|
5285
5440
|
onClick: (t) => m(t, e)
|
|
5286
|
-
}, k(e.title), 11,
|
|
5441
|
+
}, k(e.title), 11, Us)]))), 128))])) : s("", !0)]))), 128))])]));
|
|
5287
5442
|
}
|
|
5288
|
-
}),
|
|
5443
|
+
}), Gs = ["aria-label"], Ks = {
|
|
5289
5444
|
key: 0,
|
|
5290
5445
|
class: "uid-tour__title"
|
|
5291
|
-
},
|
|
5446
|
+
}, qs = {
|
|
5292
5447
|
key: 1,
|
|
5293
5448
|
class: "uid-tour__description"
|
|
5294
|
-
},
|
|
5449
|
+
}, Js = { class: "uid-tour__footer" }, Ys = {
|
|
5295
5450
|
key: 0,
|
|
5296
5451
|
class: "uid-tour__progress"
|
|
5297
|
-
},
|
|
5452
|
+
}, Xs = { key: 1 }, Zs = { class: "uid-tour__actions" }, Qs = /* @__PURE__ */ f({
|
|
5298
5453
|
__name: "UidTour",
|
|
5299
5454
|
props: /* @__PURE__ */ m({
|
|
5300
5455
|
steps: {},
|
|
@@ -5433,9 +5588,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5433
5588
|
class: _(["uid-tour__popover", { "uid-tour__popover--center": F.value }]),
|
|
5434
5589
|
style: v(F.value ? void 0 : P.value)
|
|
5435
5590
|
}, [
|
|
5436
|
-
D.value.title ? (x(), c("h3",
|
|
5437
|
-
D.value.description ? (x(), c("p",
|
|
5438
|
-
l("div",
|
|
5591
|
+
D.value.title ? (x(), c("h3", Ks, k(D.value.title), 1)) : s("", !0),
|
|
5592
|
+
D.value.description ? (x(), c("p", qs, k(D.value.description), 1)) : s("", !0),
|
|
5593
|
+
l("div", Js, [e.showProgress ? (x(), c("span", Ys, k(y.value + 1) + " / " + k(e.steps.length), 1)) : (x(), c("span", Xs)), l("div", Zs, [
|
|
5439
5594
|
e.showSkip && y.value < e.steps.length - 1 ? (x(), c("button", {
|
|
5440
5595
|
key: 0,
|
|
5441
5596
|
type: "button",
|
|
@@ -5455,21 +5610,21 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5455
5610
|
}, k(y.value === e.steps.length - 1 ? f.value : u.value), 1)
|
|
5456
5611
|
])])
|
|
5457
5612
|
], 6)
|
|
5458
|
-
], 8,
|
|
5613
|
+
], 8, Gs)) : s("", !0)]));
|
|
5459
5614
|
}
|
|
5460
|
-
}),
|
|
5615
|
+
}), $s = ["for"], ec = [
|
|
5461
5616
|
"id",
|
|
5462
5617
|
"value",
|
|
5463
5618
|
"placeholder",
|
|
5464
5619
|
"rows",
|
|
5465
5620
|
"disabled"
|
|
5466
|
-
],
|
|
5621
|
+
], tc = ["onMousedown", "onMouseenter"], nc = { class: "uid-mention__option-label" }, rc = {
|
|
5467
5622
|
key: 0,
|
|
5468
5623
|
class: "uid-mention__option-hint"
|
|
5469
|
-
},
|
|
5624
|
+
}, ic = {
|
|
5470
5625
|
key: 0,
|
|
5471
5626
|
class: "uid-mention__empty"
|
|
5472
|
-
},
|
|
5627
|
+
}, ac = /* @__PURE__ */ f({
|
|
5473
5628
|
__name: "UidMention",
|
|
5474
5629
|
props: /* @__PURE__ */ m({
|
|
5475
5630
|
options: {},
|
|
@@ -5547,7 +5702,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5547
5702
|
key: 0,
|
|
5548
5703
|
for: j(p),
|
|
5549
5704
|
class: "uid-mention__label"
|
|
5550
|
-
}, k(e.label), 9,
|
|
5705
|
+
}, k(e.label), 9, $s)) : s("", !0),
|
|
5551
5706
|
l("textarea", {
|
|
5552
5707
|
id: j(p),
|
|
5553
5708
|
ref_key: "fieldRef",
|
|
@@ -5562,7 +5717,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5562
5717
|
onKeydown: L,
|
|
5563
5718
|
onKeyup: O,
|
|
5564
5719
|
onBlur: r[0] ||= (e) => m.value = !1
|
|
5565
|
-
}, null, 40,
|
|
5720
|
+
}, null, 40, ec),
|
|
5566
5721
|
m.value ? (x(), c("div", {
|
|
5567
5722
|
key: 1,
|
|
5568
5723
|
class: "uid-mention__dropdown",
|
|
@@ -5573,30 +5728,30 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5573
5728
|
class: _(["uid-mention__option", { "uid-mention__option--active": t === y.value }]),
|
|
5574
5729
|
onMousedown: H((t) => P(e), ["prevent"]),
|
|
5575
5730
|
onMouseenter: (e) => y.value = t
|
|
5576
|
-
}, [l("span",
|
|
5731
|
+
}, [l("span", nc, k(e.label), 1), e.hint ? (x(), c("span", rc, k(e.hint), 1)) : s("", !0)], 42, tc))), 128)), D.value.length === 0 ? (x(), c("div", ic, k(o.value), 1)) : s("", !0)], 4)) : s("", !0)
|
|
5577
5732
|
], 2));
|
|
5578
5733
|
}
|
|
5579
|
-
}),
|
|
5734
|
+
}), oc = ["for"], sc = {
|
|
5580
5735
|
key: 0,
|
|
5581
5736
|
class: "uid-tree-select__required",
|
|
5582
5737
|
"aria-hidden": "true"
|
|
5583
|
-
},
|
|
5738
|
+
}, cc = [
|
|
5584
5739
|
"id",
|
|
5585
5740
|
"aria-expanded",
|
|
5586
5741
|
"aria-controls",
|
|
5587
5742
|
"aria-label",
|
|
5588
5743
|
"aria-disabled",
|
|
5589
5744
|
"aria-invalid"
|
|
5590
|
-
],
|
|
5745
|
+
], lc = { class: "uid-tree-select__value" }, uc = ["aria-label", "onClick"], dc = {
|
|
5591
5746
|
key: 0,
|
|
5592
5747
|
class: "uid-tree-select__chip"
|
|
5593
|
-
},
|
|
5748
|
+
}, fc = {
|
|
5594
5749
|
key: 1,
|
|
5595
5750
|
class: "uid-tree-select__placeholder"
|
|
5596
|
-
},
|
|
5751
|
+
}, pc = { key: 0 }, mc = {
|
|
5597
5752
|
key: 1,
|
|
5598
5753
|
class: "uid-tree-select__placeholder"
|
|
5599
|
-
},
|
|
5754
|
+
}, hc = { class: "uid-tree-select__suffix" }, gc = ["aria-label"], _c = ["id"], vc = /* @__PURE__ */ f({
|
|
5600
5755
|
__name: "UidTreeSelect",
|
|
5601
5756
|
props: /* @__PURE__ */ m({
|
|
5602
5757
|
nodes: {},
|
|
@@ -5689,7 +5844,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5689
5844
|
key: 0,
|
|
5690
5845
|
for: j(S),
|
|
5691
5846
|
class: "uid-tree-select__label"
|
|
5692
|
-
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span",
|
|
5847
|
+
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", sc, "*")) : s("", !0)], 8, oc)) : s("", !0),
|
|
5693
5848
|
l("div", {
|
|
5694
5849
|
id: j(S),
|
|
5695
5850
|
ref_key: "triggerRef",
|
|
@@ -5705,7 +5860,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5705
5860
|
"aria-invalid": E.value ? "true" : void 0,
|
|
5706
5861
|
onClick: V,
|
|
5707
5862
|
onKeydown: ee
|
|
5708
|
-
}, [l("div",
|
|
5863
|
+
}, [l("div", lc, [n.multiple ? (x(), c(t, { key: 0 }, [
|
|
5709
5864
|
(x(!0), c(t, null, T(I.value, (e) => (x(), c("span", {
|
|
5710
5865
|
key: e.key,
|
|
5711
5866
|
class: "uid-tree-select__chip"
|
|
@@ -5714,29 +5869,29 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5714
5869
|
class: "uid-tree-select__chip-remove",
|
|
5715
5870
|
"aria-label": j(o).treeSelect.removeTag(e.label),
|
|
5716
5871
|
onClick: H((t) => G(t, e.key), ["stop"])
|
|
5717
|
-
}, "×", 8,
|
|
5718
|
-
L.value > 0 ? (x(), c("span",
|
|
5719
|
-
F.value.length === 0 ? (x(), c("span",
|
|
5720
|
-
], 64)) : (x(), c(t, { key: 1 }, [F.value.length > 0 ? (x(), c("span",
|
|
5872
|
+
}, "×", 8, uc)]))), 128)),
|
|
5873
|
+
L.value > 0 ? (x(), c("span", dc, "+" + k(L.value), 1)) : s("", !0),
|
|
5874
|
+
F.value.length === 0 ? (x(), c("span", fc, k(f.value), 1)) : s("", !0)
|
|
5875
|
+
], 64)) : (x(), c(t, { key: 1 }, [F.value.length > 0 ? (x(), c("span", pc, k(F.value[0].label), 1)) : (x(), c("span", mc, k(f.value), 1))], 64))]), l("div", hc, [n.clearable && P.value.length > 0 ? (x(), c("button", {
|
|
5721
5876
|
key: 0,
|
|
5722
5877
|
type: "button",
|
|
5723
5878
|
class: "uid-tree-select__clear",
|
|
5724
5879
|
"aria-label": j(o).common.clear,
|
|
5725
5880
|
onClick: W
|
|
5726
5881
|
}, [d(e, {
|
|
5727
|
-
icon: j(
|
|
5882
|
+
icon: j(_e),
|
|
5728
5883
|
size: 14
|
|
5729
|
-
}, null, 8, ["icon"])], 8,
|
|
5730
|
-
icon: j(
|
|
5884
|
+
}, null, 8, ["icon"])], 8, gc)) : s("", !0), d(e, {
|
|
5885
|
+
icon: j(Y),
|
|
5731
5886
|
size: 16,
|
|
5732
5887
|
class: _(["uid-tree-select__chevron", { "uid-tree-select__chevron--open": g.value }]),
|
|
5733
5888
|
"aria-hidden": "true"
|
|
5734
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
5889
|
+
}, null, 8, ["icon", "class"])])], 40, cc),
|
|
5735
5890
|
g.value ? (x(), c("div", {
|
|
5736
5891
|
key: 1,
|
|
5737
5892
|
id: j(C),
|
|
5738
5893
|
class: "uid-tree-select__dropdown"
|
|
5739
|
-
}, [d(
|
|
5894
|
+
}, [d(xo, {
|
|
5740
5895
|
nodes: n.nodes,
|
|
5741
5896
|
"expanded-keys": h.value,
|
|
5742
5897
|
"onUpdate:expandedKeys": i[0] ||= (e) => h.value = e,
|
|
@@ -5752,19 +5907,19 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5752
5907
|
"selectable",
|
|
5753
5908
|
"default-expand-all",
|
|
5754
5909
|
"show-guides"
|
|
5755
|
-
])], 8,
|
|
5910
|
+
])], 8, _c)) : s("", !0),
|
|
5756
5911
|
D.value ? (x(), c("p", {
|
|
5757
5912
|
key: 2,
|
|
5758
5913
|
class: _(["uid-tree-select__hint", E.value && "uid-tree-select__hint--error"])
|
|
5759
5914
|
}, k(D.value), 3)) : s("", !0)
|
|
5760
5915
|
], 2));
|
|
5761
5916
|
}
|
|
5762
|
-
}),
|
|
5917
|
+
}), yc = {
|
|
5763
5918
|
key: 0,
|
|
5764
5919
|
class: "uid-notification-badge__dot",
|
|
5765
5920
|
role: "status",
|
|
5766
5921
|
"aria-hidden": "true"
|
|
5767
|
-
},
|
|
5922
|
+
}, bc = ["aria-label"], xc = /* @__PURE__ */ f({
|
|
5768
5923
|
__name: "UidNotificationBadge",
|
|
5769
5924
|
props: {
|
|
5770
5925
|
count: { default: 0 },
|
|
@@ -5791,22 +5946,22 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5791
5946
|
return (t, a) => (x(), c("span", {
|
|
5792
5947
|
class: _(["uid-notification-badge", [`uid-notification-badge--${e.placement}`, e.tone !== "danger" && `uid-notification-badge--${e.tone}`]]),
|
|
5793
5948
|
style: v(i.value)
|
|
5794
|
-
}, [E(t.$slots, "default"), n.value && e.dot ? (x(), c("span",
|
|
5949
|
+
}, [E(t.$slots, "default"), n.value && e.dot ? (x(), c("span", yc)) : n.value ? (x(), c("span", {
|
|
5795
5950
|
key: 1,
|
|
5796
5951
|
class: "uid-notification-badge__count",
|
|
5797
5952
|
role: "status",
|
|
5798
5953
|
"aria-label": `${e.count}`
|
|
5799
|
-
}, k(r.value), 9,
|
|
5954
|
+
}, k(r.value), 9, bc)) : s("", !0)], 6));
|
|
5800
5955
|
}
|
|
5801
|
-
}),
|
|
5956
|
+
}), Sc = ["aria-hidden", "aria-label"], Cc = ["disabled"], wc = ["disabled"], Tc = {
|
|
5802
5957
|
key: 2,
|
|
5803
5958
|
class: "uid-carousel__indicators",
|
|
5804
5959
|
role: "tablist"
|
|
5805
|
-
},
|
|
5960
|
+
}, Ec = [
|
|
5806
5961
|
"aria-selected",
|
|
5807
5962
|
"aria-label",
|
|
5808
5963
|
"onClick"
|
|
5809
|
-
],
|
|
5964
|
+
], Dc = /* @__PURE__ */ f({
|
|
5810
5965
|
__name: "UidCarousel",
|
|
5811
5966
|
props: /* @__PURE__ */ m({
|
|
5812
5967
|
items: {},
|
|
@@ -5898,7 +6053,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5898
6053
|
}, [E(r.$slots, "default", {
|
|
5899
6054
|
item: e,
|
|
5900
6055
|
index: t
|
|
5901
|
-
})], 8,
|
|
6056
|
+
})], 8, Sc))), 128))], 4),
|
|
5902
6057
|
n.showArrows && g.value > 1 ? (x(), c("button", {
|
|
5903
6058
|
key: 0,
|
|
5904
6059
|
type: "button",
|
|
@@ -5907,9 +6062,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5907
6062
|
"aria-label": "Предыдущий",
|
|
5908
6063
|
onClick: O
|
|
5909
6064
|
}, [d(e, {
|
|
5910
|
-
icon: n.direction === "vertical" ? j(
|
|
6065
|
+
icon: n.direction === "vertical" ? j(ie) : j(re),
|
|
5911
6066
|
size: 20
|
|
5912
|
-
}, null, 8, ["icon"])], 8,
|
|
6067
|
+
}, null, 8, ["icon"])], 8, Cc)) : s("", !0),
|
|
5913
6068
|
n.showArrows && g.value > 1 ? (x(), c("button", {
|
|
5914
6069
|
key: 1,
|
|
5915
6070
|
type: "button",
|
|
@@ -5918,10 +6073,10 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5918
6073
|
"aria-label": "Следующий",
|
|
5919
6074
|
onClick: D
|
|
5920
6075
|
}, [d(e, {
|
|
5921
|
-
icon: n.direction === "vertical" ? j(
|
|
6076
|
+
icon: n.direction === "vertical" ? j(Y) : j(X),
|
|
5922
6077
|
size: 20
|
|
5923
|
-
}, null, 8, ["icon"])], 8,
|
|
5924
|
-
n.showIndicators && g.value > 1 ? (x(), c("div",
|
|
6078
|
+
}, null, 8, ["icon"])], 8, wc)) : s("", !0),
|
|
6079
|
+
n.showIndicators && g.value > 1 ? (x(), c("div", Tc, [(x(!0), c(t, null, T(n.items, (e, t) => (x(), c("button", {
|
|
5925
6080
|
key: t,
|
|
5926
6081
|
type: "button",
|
|
5927
6082
|
class: _(["uid-carousel__indicator", { "uid-carousel__indicator--active": t === f.value }]),
|
|
@@ -5929,38 +6084,38 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5929
6084
|
"aria-selected": t === f.value,
|
|
5930
6085
|
"aria-label": `Слайд ${t + 1}`,
|
|
5931
6086
|
onClick: (e) => C(t)
|
|
5932
|
-
}, null, 10,
|
|
6087
|
+
}, null, 10, Ec))), 128))])) : s("", !0)
|
|
5933
6088
|
], 34));
|
|
5934
6089
|
}
|
|
5935
|
-
}),
|
|
6090
|
+
}), Oc = { class: "uid-transfer__panel" }, kc = { class: "uid-transfer__header" }, Ac = { class: "uid-transfer__title" }, jc = ["aria-checked"], Mc = { class: "uid-transfer__count" }, Nc = {
|
|
5936
6091
|
key: 0,
|
|
5937
6092
|
class: "uid-transfer__search"
|
|
5938
|
-
},
|
|
6093
|
+
}, Pc = ["placeholder"], Fc = {
|
|
5939
6094
|
class: "uid-transfer__list",
|
|
5940
6095
|
role: "listbox",
|
|
5941
6096
|
"aria-multiselectable": "true"
|
|
5942
|
-
},
|
|
6097
|
+
}, Ic = [
|
|
5943
6098
|
"aria-selected",
|
|
5944
6099
|
"aria-disabled",
|
|
5945
6100
|
"onClick"
|
|
5946
|
-
],
|
|
6101
|
+
], Lc = { class: "uid-transfer__label" }, Rc = {
|
|
5947
6102
|
key: 0,
|
|
5948
6103
|
class: "uid-transfer__empty"
|
|
5949
|
-
},
|
|
6104
|
+
}, zc = { class: "uid-transfer__ops" }, Bc = ["disabled"], Vc = ["disabled"], Hc = { class: "uid-transfer__panel" }, Uc = { class: "uid-transfer__header" }, Wc = { class: "uid-transfer__title" }, Gc = ["aria-checked"], Kc = { class: "uid-transfer__count" }, qc = {
|
|
5950
6105
|
key: 0,
|
|
5951
6106
|
class: "uid-transfer__search"
|
|
5952
|
-
},
|
|
6107
|
+
}, Jc = ["placeholder"], Yc = {
|
|
5953
6108
|
class: "uid-transfer__list",
|
|
5954
6109
|
role: "listbox",
|
|
5955
6110
|
"aria-multiselectable": "true"
|
|
5956
|
-
},
|
|
6111
|
+
}, Xc = [
|
|
5957
6112
|
"aria-selected",
|
|
5958
6113
|
"aria-disabled",
|
|
5959
6114
|
"onClick"
|
|
5960
|
-
],
|
|
6115
|
+
], Zc = { class: "uid-transfer__label" }, Qc = {
|
|
5961
6116
|
key: 0,
|
|
5962
6117
|
class: "uid-transfer__empty"
|
|
5963
|
-
},
|
|
6118
|
+
}, $c = /* @__PURE__ */ f({
|
|
5964
6119
|
__name: "UidTransfer",
|
|
5965
6120
|
props: /* @__PURE__ */ m({
|
|
5966
6121
|
items: {},
|
|
@@ -6011,8 +6166,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6011
6166
|
p.value = e, g.value = /* @__PURE__ */ new Set(), f("change", e);
|
|
6012
6167
|
}
|
|
6013
6168
|
return (r, i) => (x(), c("div", { class: _(["uid-transfer", { "uid-transfer--disabled": n.disabled }]) }, [
|
|
6014
|
-
l("div",
|
|
6015
|
-
l("div",
|
|
6169
|
+
l("div", Oc, [
|
|
6170
|
+
l("div", kc, [l("span", Ac, [l("span", {
|
|
6016
6171
|
class: _(["uid-transfer__check", { "uid-transfer__check--checked": P.value }]),
|
|
6017
6172
|
role: "checkbox",
|
|
6018
6173
|
"aria-checked": P.value,
|
|
@@ -6023,14 +6178,14 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6023
6178
|
key: 0,
|
|
6024
6179
|
icon: j(q),
|
|
6025
6180
|
size: 10
|
|
6026
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
6027
|
-
n.searchable ? (x(), c("div",
|
|
6181
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, jc), u(" " + k(b.value[0]), 1)]), l("span", Mc, k(h.value.size) + " / " + k(D.value.length), 1)]),
|
|
6182
|
+
n.searchable ? (x(), c("div", Nc, [B(l("input", {
|
|
6028
6183
|
"onUpdate:modelValue": i[3] ||= (e) => v.value = e,
|
|
6029
6184
|
class: "uid-transfer__search-input",
|
|
6030
6185
|
type: "text",
|
|
6031
6186
|
placeholder: j(m).common.search
|
|
6032
|
-
}, null, 8,
|
|
6033
|
-
l("ul",
|
|
6187
|
+
}, null, 8, Pc), [[I, v.value]])])) : s("", !0),
|
|
6188
|
+
l("ul", Fc, [(x(!0), c(t, null, T(D.value, (t) => (x(), c("li", {
|
|
6034
6189
|
key: t.key,
|
|
6035
6190
|
class: _(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
6036
6191
|
role: "option",
|
|
@@ -6044,29 +6199,29 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6044
6199
|
key: 0,
|
|
6045
6200
|
icon: j(q),
|
|
6046
6201
|
size: 10
|
|
6047
|
-
}, null, 8, ["icon"])) : s("", !0)], 2), l("span",
|
|
6202
|
+
}, null, 8, ["icon"])) : s("", !0)], 2), l("span", Lc, k(t.label), 1)], 10, Ic))), 128)), D.value.length === 0 ? (x(), c("li", Rc, k(j(m).common.noResults), 1)) : s("", !0)])
|
|
6048
6203
|
]),
|
|
6049
|
-
l("div",
|
|
6204
|
+
l("div", zc, [l("button", {
|
|
6050
6205
|
type: "button",
|
|
6051
6206
|
class: "uid-transfer__op",
|
|
6052
6207
|
disabled: h.value.size === 0 || n.disabled,
|
|
6053
6208
|
"aria-label": "Перенести вправо",
|
|
6054
6209
|
onClick: z
|
|
6055
6210
|
}, [d(e, {
|
|
6056
|
-
icon: j(
|
|
6211
|
+
icon: j(X),
|
|
6057
6212
|
size: 16
|
|
6058
|
-
}, null, 8, ["icon"])], 8,
|
|
6213
|
+
}, null, 8, ["icon"])], 8, Bc), l("button", {
|
|
6059
6214
|
type: "button",
|
|
6060
6215
|
class: "uid-transfer__op",
|
|
6061
6216
|
disabled: g.value.size === 0 || n.disabled,
|
|
6062
6217
|
"aria-label": "Перенести влево",
|
|
6063
6218
|
onClick: U
|
|
6064
6219
|
}, [d(e, {
|
|
6065
|
-
icon: j(
|
|
6220
|
+
icon: j(re),
|
|
6066
6221
|
size: 16
|
|
6067
|
-
}, null, 8, ["icon"])], 8,
|
|
6068
|
-
l("div",
|
|
6069
|
-
l("div",
|
|
6222
|
+
}, null, 8, ["icon"])], 8, Vc)]),
|
|
6223
|
+
l("div", Hc, [
|
|
6224
|
+
l("div", Uc, [l("span", Wc, [l("span", {
|
|
6070
6225
|
class: _(["uid-transfer__check", { "uid-transfer__check--checked": F.value }]),
|
|
6071
6226
|
role: "checkbox",
|
|
6072
6227
|
"aria-checked": F.value,
|
|
@@ -6077,14 +6232,14 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6077
6232
|
key: 0,
|
|
6078
6233
|
icon: j(q),
|
|
6079
6234
|
size: 10
|
|
6080
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
6081
|
-
n.searchable ? (x(), c("div",
|
|
6235
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, Gc), u(" " + k(b.value[1]), 1)]), l("span", Kc, k(g.value.size) + " / " + k(O.value.length), 1)]),
|
|
6236
|
+
n.searchable ? (x(), c("div", qc, [B(l("input", {
|
|
6082
6237
|
"onUpdate:modelValue": i[7] ||= (e) => y.value = e,
|
|
6083
6238
|
class: "uid-transfer__search-input",
|
|
6084
6239
|
type: "text",
|
|
6085
6240
|
placeholder: j(m).common.search
|
|
6086
|
-
}, null, 8,
|
|
6087
|
-
l("ul",
|
|
6241
|
+
}, null, 8, Jc), [[I, y.value]])])) : s("", !0),
|
|
6242
|
+
l("ul", Yc, [(x(!0), c(t, null, T(O.value, (t) => (x(), c("li", {
|
|
6088
6243
|
key: t.key,
|
|
6089
6244
|
class: _(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
6090
6245
|
role: "option",
|
|
@@ -6098,30 +6253,30 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6098
6253
|
key: 0,
|
|
6099
6254
|
icon: j(q),
|
|
6100
6255
|
size: 10
|
|
6101
|
-
}, null, 8, ["icon"])) : s("", !0)], 2), l("span",
|
|
6256
|
+
}, null, 8, ["icon"])) : s("", !0)], 2), l("span", Zc, k(t.label), 1)], 10, Xc))), 128)), O.value.length === 0 ? (x(), c("li", Qc, k(j(m).common.noResults), 1)) : s("", !0)])
|
|
6102
6257
|
])
|
|
6103
6258
|
], 2));
|
|
6104
6259
|
}
|
|
6105
|
-
}),
|
|
6260
|
+
}), el = {
|
|
6106
6261
|
key: 0,
|
|
6107
6262
|
class: "uid-cascader__label"
|
|
6108
|
-
},
|
|
6263
|
+
}, tl = [
|
|
6109
6264
|
"aria-expanded",
|
|
6110
6265
|
"aria-disabled",
|
|
6111
6266
|
"aria-label"
|
|
6112
|
-
],
|
|
6267
|
+
], nl = { class: "uid-cascader__value" }, rl = {
|
|
6113
6268
|
key: 0,
|
|
6114
6269
|
class: "uid-cascader__separator"
|
|
6115
|
-
},
|
|
6270
|
+
}, il = {
|
|
6116
6271
|
key: 1,
|
|
6117
6272
|
class: "uid-cascader__placeholder"
|
|
6118
|
-
},
|
|
6273
|
+
}, al = { class: "uid-cascader__suffix" }, ol = ["aria-label"], sl = {
|
|
6119
6274
|
key: 1,
|
|
6120
6275
|
class: "uid-cascader__dropdown"
|
|
6121
|
-
},
|
|
6276
|
+
}, cl = ["onClick", "onMouseenter"], ll = { class: "uid-cascader__option-label" }, ul = {
|
|
6122
6277
|
key: 2,
|
|
6123
6278
|
class: "uid-cascader__hint"
|
|
6124
|
-
},
|
|
6279
|
+
}, dl = /* @__PURE__ */ f({
|
|
6125
6280
|
__name: "UidCascader",
|
|
6126
6281
|
props: /* @__PURE__ */ m({
|
|
6127
6282
|
options: {},
|
|
@@ -6226,7 +6381,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6226
6381
|
"uid-cascader--disabled": n.disabled
|
|
6227
6382
|
}])
|
|
6228
6383
|
}, [
|
|
6229
|
-
n.label ? (x(), c("label",
|
|
6384
|
+
n.label ? (x(), c("label", el, k(n.label), 1)) : s("", !0),
|
|
6230
6385
|
l("div", {
|
|
6231
6386
|
class: "uid-cascader__trigger",
|
|
6232
6387
|
tabindex: "0",
|
|
@@ -6237,21 +6392,21 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6237
6392
|
"aria-label": m.value,
|
|
6238
6393
|
onClick: A,
|
|
6239
6394
|
onKeydown: I
|
|
6240
|
-
}, [l("div",
|
|
6395
|
+
}, [l("div", nl, [E.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(E.value, (e, r) => (x(), c(t, { key: r }, [l("span", null, k(e), 1), r < E.value.length - 1 ? (x(), c("span", rl, k(n.separator), 1)) : s("", !0)], 64))), 128)) : (x(), c("span", il, k(m.value), 1))]), l("div", al, [n.clearable && f.value.length > 0 ? (x(), c("button", {
|
|
6241
6396
|
key: 0,
|
|
6242
6397
|
type: "button",
|
|
6243
6398
|
class: "uid-cascader__clear",
|
|
6244
6399
|
"aria-label": j(p).common.clear,
|
|
6245
6400
|
onClick: F
|
|
6246
6401
|
}, [d(e, {
|
|
6247
|
-
icon: j(
|
|
6402
|
+
icon: j(_e),
|
|
6248
6403
|
size: 14
|
|
6249
|
-
}, null, 8, ["icon"])], 8,
|
|
6250
|
-
icon: j(
|
|
6404
|
+
}, null, 8, ["icon"])], 8, ol)) : s("", !0), d(e, {
|
|
6405
|
+
icon: j(Y),
|
|
6251
6406
|
size: 16,
|
|
6252
6407
|
class: _(["uid-cascader__chevron", { "uid-cascader__chevron--open": h.value }])
|
|
6253
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
6254
|
-
h.value ? (x(), c("div",
|
|
6408
|
+
}, null, 8, ["icon", "class"])])], 40, tl),
|
|
6409
|
+
h.value ? (x(), c("div", sl, [(x(!0), c(t, null, T(S.value, (r, i) => (x(), c("div", {
|
|
6255
6410
|
key: i,
|
|
6256
6411
|
class: "uid-cascader__column"
|
|
6257
6412
|
}, [(x(!0), c(t, null, T(r, (t) => (x(), c("button", {
|
|
@@ -6263,27 +6418,27 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6263
6418
|
}]),
|
|
6264
6419
|
onClick: (e) => M(t, i),
|
|
6265
6420
|
onMouseenter: (e) => n.expandTrigger === "hover" && t.children && M(t, i)
|
|
6266
|
-
}, [l("span",
|
|
6421
|
+
}, [l("span", ll, k(t.label), 1), t.children?.length ? (x(), o(e, {
|
|
6267
6422
|
key: 0,
|
|
6268
|
-
icon: j(
|
|
6423
|
+
icon: j(X),
|
|
6269
6424
|
size: 14,
|
|
6270
6425
|
class: "uid-cascader__option-arrow",
|
|
6271
6426
|
"aria-hidden": "true"
|
|
6272
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
6273
|
-
n.hint ? (x(), c("p",
|
|
6427
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, cl))), 128))]))), 128))])) : s("", !0),
|
|
6428
|
+
n.hint ? (x(), c("p", ul, k(n.hint), 1)) : s("", !0)
|
|
6274
6429
|
], 2));
|
|
6275
6430
|
}
|
|
6276
|
-
}),
|
|
6431
|
+
}), fl = { class: "uid-calendar__header" }, pl = { class: "uid-calendar__title" }, ml = { class: "uid-calendar__nav" }, hl = ["aria-label"], gl = ["aria-label"], _l = { class: "uid-calendar__weekdays" }, vl = { class: "uid-calendar__grid" }, yl = [
|
|
6277
6432
|
"tabindex",
|
|
6278
6433
|
"aria-current",
|
|
6279
6434
|
"aria-selected",
|
|
6280
6435
|
"aria-label",
|
|
6281
6436
|
"onClick",
|
|
6282
6437
|
"onKeydown"
|
|
6283
|
-
],
|
|
6438
|
+
], bl = { class: "uid-calendar__date" }, xl = { class: "uid-calendar__events" }, Sl = ["title", "onClick"], Cl = { class: "uid-calendar__event-label" }, wl = {
|
|
6284
6439
|
key: 0,
|
|
6285
6440
|
class: "uid-calendar__more"
|
|
6286
|
-
},
|
|
6441
|
+
}, Tl = /* @__PURE__ */ f({
|
|
6287
6442
|
__name: "UidCalendar",
|
|
6288
6443
|
props: /* @__PURE__ */ m({
|
|
6289
6444
|
events: { default: () => [] },
|
|
@@ -6370,16 +6525,16 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6370
6525
|
e.stopPropagation(), o("event-click", t);
|
|
6371
6526
|
}
|
|
6372
6527
|
return (r, i) => (x(), c("div", { class: _(["uid-calendar", { "uid-calendar--compact": n.compact }]) }, [
|
|
6373
|
-
l("div",
|
|
6528
|
+
l("div", fl, [l("span", pl, k(S.value), 1), l("div", ml, [
|
|
6374
6529
|
l("button", {
|
|
6375
6530
|
type: "button",
|
|
6376
6531
|
class: "uid-calendar__btn uid-calendar__btn--icon",
|
|
6377
6532
|
"aria-label": j(f).datePicker.prevMonth,
|
|
6378
6533
|
onClick: A
|
|
6379
6534
|
}, [d(e, {
|
|
6380
|
-
icon: j(
|
|
6535
|
+
icon: j(re),
|
|
6381
6536
|
size: 14
|
|
6382
|
-
}, null, 8, ["icon"])], 8,
|
|
6537
|
+
}, null, 8, ["icon"])], 8, hl),
|
|
6383
6538
|
l("button", {
|
|
6384
6539
|
type: "button",
|
|
6385
6540
|
class: "uid-calendar__btn",
|
|
@@ -6391,15 +6546,15 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6391
6546
|
"aria-label": j(f).datePicker.nextMonth,
|
|
6392
6547
|
onClick: M
|
|
6393
6548
|
}, [d(e, {
|
|
6394
|
-
icon: j(
|
|
6549
|
+
icon: j(X),
|
|
6395
6550
|
size: 14
|
|
6396
|
-
}, null, 8, ["icon"])], 8,
|
|
6551
|
+
}, null, 8, ["icon"])], 8, gl)
|
|
6397
6552
|
])]),
|
|
6398
|
-
l("div",
|
|
6553
|
+
l("div", _l, [(x(!0), c(t, null, T(j(f).datePicker.weekdaysShort, (e) => (x(), c("span", {
|
|
6399
6554
|
key: e,
|
|
6400
6555
|
class: "uid-calendar__weekday"
|
|
6401
6556
|
}, k(e), 1))), 128))]),
|
|
6402
|
-
l("div",
|
|
6557
|
+
l("div", vl, [(x(!0), c(t, null, T(D.value, (e) => (x(), c("div", {
|
|
6403
6558
|
key: e.iso,
|
|
6404
6559
|
class: _(["uid-calendar__day", {
|
|
6405
6560
|
"uid-calendar__day--other": !e.current,
|
|
@@ -6414,23 +6569,551 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6414
6569
|
"aria-label": e.iso,
|
|
6415
6570
|
onClick: (t) => F(e),
|
|
6416
6571
|
onKeydown: [V(H((t) => F(e), ["prevent"]), ["enter"]), V(H((t) => F(e), ["prevent"]), ["space"])]
|
|
6417
|
-
}, [l("span",
|
|
6572
|
+
}, [l("span", bl, k(e.date.getDate()), 1), l("div", xl, [(x(!0), c(t, null, T(e.events.slice(0, n.maxEventsPerDay), (t, n) => (x(), c("button", {
|
|
6418
6573
|
key: t.id ?? `${e.iso}-${n}`,
|
|
6419
6574
|
type: "button",
|
|
6420
6575
|
class: "uid-calendar__event",
|
|
6421
6576
|
style: v(t.color ? { "--uid-event-color": t.color } : void 0),
|
|
6422
6577
|
title: t.title,
|
|
6423
6578
|
onClick: (e) => I(e, t)
|
|
6424
|
-
}, [l("span",
|
|
6579
|
+
}, [l("span", Cl, k(t.title), 1)], 12, Sl))), 128)), e.events.length > n.maxEventsPerDay ? (x(), c("span", wl, "+" + k(e.events.length - n.maxEventsPerDay), 1)) : s("", !0)])], 42, yl))), 128))])
|
|
6425
6580
|
], 2));
|
|
6426
6581
|
}
|
|
6427
|
-
}),
|
|
6582
|
+
}), El = ["aria-label"], Dl = [
|
|
6583
|
+
"viewBox",
|
|
6584
|
+
"width",
|
|
6585
|
+
"height"
|
|
6586
|
+
], Ol = [
|
|
6587
|
+
"x2",
|
|
6588
|
+
"y1",
|
|
6589
|
+
"y2"
|
|
6590
|
+
], kl = [
|
|
6591
|
+
"x",
|
|
6592
|
+
"y",
|
|
6593
|
+
"width",
|
|
6594
|
+
"height"
|
|
6595
|
+
], Al = ["d"], jl = ["d"], Ml = ["cx", "cy"], Nl = ["cx", "cy"], Pl = 2, Fl = /* @__PURE__ */ f({
|
|
6596
|
+
__name: "UidSparkline",
|
|
6597
|
+
props: {
|
|
6598
|
+
data: {},
|
|
6599
|
+
type: { default: "line" },
|
|
6600
|
+
width: { default: 120 },
|
|
6601
|
+
height: { default: 32 },
|
|
6602
|
+
color: {},
|
|
6603
|
+
smooth: {
|
|
6604
|
+
type: Boolean,
|
|
6605
|
+
default: !1
|
|
6606
|
+
},
|
|
6607
|
+
showDots: {
|
|
6608
|
+
type: Boolean,
|
|
6609
|
+
default: !1
|
|
6610
|
+
},
|
|
6611
|
+
showLast: {
|
|
6612
|
+
type: Boolean,
|
|
6613
|
+
default: !1
|
|
6614
|
+
},
|
|
6615
|
+
showZero: {
|
|
6616
|
+
type: Boolean,
|
|
6617
|
+
default: !1
|
|
6618
|
+
},
|
|
6619
|
+
strokeWidth: { default: 1.5 },
|
|
6620
|
+
ariaLabel: {}
|
|
6621
|
+
},
|
|
6622
|
+
setup(e) {
|
|
6623
|
+
let n = e, r = a(() => {
|
|
6624
|
+
if (n.data.length === 0) return {
|
|
6625
|
+
min: 0,
|
|
6626
|
+
max: 1
|
|
6627
|
+
};
|
|
6628
|
+
let e = Math.min(...n.data, 0), t = Math.max(...n.data, 0);
|
|
6629
|
+
return e === t ? {
|
|
6630
|
+
min: e - 1,
|
|
6631
|
+
max: t + 1
|
|
6632
|
+
} : {
|
|
6633
|
+
min: e,
|
|
6634
|
+
max: t
|
|
6635
|
+
};
|
|
6636
|
+
});
|
|
6637
|
+
function i(e, t) {
|
|
6638
|
+
return t <= 1 ? n.width / 2 : Pl + e / (t - 1) * (n.width - Pl * 2);
|
|
6639
|
+
}
|
|
6640
|
+
function o(e) {
|
|
6641
|
+
let t = r.value, i = (e - t.min) / (t.max - t.min);
|
|
6642
|
+
return n.height - Pl - i * (n.height - Pl * 2);
|
|
6643
|
+
}
|
|
6644
|
+
let u = a(() => n.data.map((e, t) => ({
|
|
6645
|
+
x: i(t, n.data.length),
|
|
6646
|
+
y: o(e),
|
|
6647
|
+
v: e
|
|
6648
|
+
}))), d = a(() => {
|
|
6649
|
+
let e = u.value;
|
|
6650
|
+
if (e.length === 0) return "";
|
|
6651
|
+
if (!n.smooth || e.length < 3) return e.map((e, t) => `${t === 0 ? "M" : "L"} ${e.x.toFixed(2)} ${e.y.toFixed(2)}`).join(" ");
|
|
6652
|
+
let t = [`M ${e[0].x.toFixed(2)} ${e[0].y.toFixed(2)}`];
|
|
6653
|
+
for (let n = 1; n < e.length; n++) {
|
|
6654
|
+
let r = e[n - 1], i = e[n], a = (r.x + i.x) / 2;
|
|
6655
|
+
t.push(`C ${a.toFixed(2)} ${r.y.toFixed(2)}, ${a.toFixed(2)} ${i.y.toFixed(2)}, ${i.x.toFixed(2)} ${i.y.toFixed(2)}`);
|
|
6656
|
+
}
|
|
6657
|
+
return t.join(" ");
|
|
6658
|
+
}), f = a(() => {
|
|
6659
|
+
let e = u.value;
|
|
6660
|
+
if (e.length === 0) return "";
|
|
6661
|
+
let t = n.height - Pl;
|
|
6662
|
+
return `${d.value} L ${e[e.length - 1].x.toFixed(2)} ${t.toFixed(2)} L ${e[0].x.toFixed(2)} ${t.toFixed(2)} Z`;
|
|
6663
|
+
}), p = a(() => {
|
|
6664
|
+
let e = u.value, t = e.length;
|
|
6665
|
+
if (t === 0) return [];
|
|
6666
|
+
let r = n.width - Pl * 2, i = Math.max(1, r / t * .7), a = o(0);
|
|
6667
|
+
return e.map((e, n) => {
|
|
6668
|
+
let o = Pl + (n + .5) / t * r - i / 2, s = e.v < 0, c = s ? a : e.y, l = s ? e.y : a;
|
|
6669
|
+
return {
|
|
6670
|
+
x: o,
|
|
6671
|
+
y: c,
|
|
6672
|
+
width: i,
|
|
6673
|
+
height: Math.max(1, l - c),
|
|
6674
|
+
negative: s
|
|
6675
|
+
};
|
|
6676
|
+
});
|
|
6677
|
+
}), m = a(() => o(0)), h = a(() => n.showZero && r.value.min < 0 && r.value.max > 0), g = a(() => u.value[u.value.length - 1]), y = a(() => ({
|
|
6678
|
+
...n.color ? { "--uid-sparkline-color": n.color } : {},
|
|
6679
|
+
"--uid-sparkline-stroke": String(n.strokeWidth)
|
|
6680
|
+
})), b = a(() => n.ariaLabel ? n.ariaLabel : n.data.length === 0 ? "" : `Тренд: с ${n.data[0]} до ${n.data[n.data.length - 1]}, ${n.data.length} точек`);
|
|
6681
|
+
return (n, r) => (x(), c("span", {
|
|
6682
|
+
class: "uid-sparkline",
|
|
6683
|
+
style: v(y.value),
|
|
6684
|
+
role: "img",
|
|
6685
|
+
"aria-label": b.value
|
|
6686
|
+
}, [(x(), c("svg", {
|
|
6687
|
+
class: "uid-sparkline__svg",
|
|
6688
|
+
viewBox: `0 0 ${e.width} ${e.height}`,
|
|
6689
|
+
width: e.width,
|
|
6690
|
+
height: e.height,
|
|
6691
|
+
preserveAspectRatio: "none",
|
|
6692
|
+
"aria-hidden": "true"
|
|
6693
|
+
}, [h.value ? (x(), c("line", {
|
|
6694
|
+
key: 0,
|
|
6695
|
+
class: "uid-sparkline__zero",
|
|
6696
|
+
x1: 0,
|
|
6697
|
+
x2: e.width,
|
|
6698
|
+
y1: m.value,
|
|
6699
|
+
y2: m.value
|
|
6700
|
+
}, null, 8, Ol)) : s("", !0), e.type === "bar" ? (x(!0), c(t, { key: 1 }, T(p.value, (e, t) => (x(), c("rect", {
|
|
6701
|
+
key: t,
|
|
6702
|
+
class: _(["uid-sparkline__bar", { "uid-sparkline__bar--negative": e.negative }]),
|
|
6703
|
+
x: e.x,
|
|
6704
|
+
y: e.y,
|
|
6705
|
+
width: e.width,
|
|
6706
|
+
height: e.height
|
|
6707
|
+
}, null, 10, kl))), 128)) : (x(), c(t, { key: 2 }, [
|
|
6708
|
+
e.type === "area" ? (x(), c("path", {
|
|
6709
|
+
key: 0,
|
|
6710
|
+
class: "uid-sparkline__area",
|
|
6711
|
+
d: f.value
|
|
6712
|
+
}, null, 8, Al)) : s("", !0),
|
|
6713
|
+
l("path", {
|
|
6714
|
+
class: "uid-sparkline__line",
|
|
6715
|
+
d: d.value
|
|
6716
|
+
}, null, 8, jl),
|
|
6717
|
+
e.showDots ? (x(!0), c(t, { key: 1 }, T(u.value, (e, t) => (x(), c("circle", {
|
|
6718
|
+
key: t,
|
|
6719
|
+
class: "uid-sparkline__dot",
|
|
6720
|
+
cx: e.x,
|
|
6721
|
+
cy: e.y,
|
|
6722
|
+
r: "2.5"
|
|
6723
|
+
}, null, 8, Ml))), 128)) : s("", !0),
|
|
6724
|
+
e.showLast && g.value && !e.showDots ? (x(), c("circle", {
|
|
6725
|
+
key: 2,
|
|
6726
|
+
class: "uid-sparkline__dot uid-sparkline__dot--last",
|
|
6727
|
+
cx: g.value.x,
|
|
6728
|
+
cy: g.value.y,
|
|
6729
|
+
r: "2.5"
|
|
6730
|
+
}, null, 8, Nl)) : s("", !0)
|
|
6731
|
+
], 64))], 8, Dl))], 12, El));
|
|
6732
|
+
}
|
|
6733
|
+
}), Il = ["aria-valuemax", "aria-valuenow"], Ll = [
|
|
6734
|
+
"width",
|
|
6735
|
+
"height",
|
|
6736
|
+
"viewBox"
|
|
6737
|
+
], Rl = [
|
|
6738
|
+
"cx",
|
|
6739
|
+
"cy",
|
|
6740
|
+
"r",
|
|
6741
|
+
"stroke-width"
|
|
6742
|
+
], zl = [
|
|
6743
|
+
"cx",
|
|
6744
|
+
"cy",
|
|
6745
|
+
"r",
|
|
6746
|
+
"stroke-width",
|
|
6747
|
+
"stroke-dasharray",
|
|
6748
|
+
"stroke-dashoffset"
|
|
6749
|
+
], Bl = {
|
|
6750
|
+
key: 0,
|
|
6751
|
+
class: "uid-progress-ring__label"
|
|
6752
|
+
}, Vl = /* @__PURE__ */ f({
|
|
6753
|
+
__name: "UidProgressRing",
|
|
6754
|
+
props: {
|
|
6755
|
+
value: { default: 0 },
|
|
6756
|
+
max: { default: 100 },
|
|
6757
|
+
size: { default: 80 },
|
|
6758
|
+
strokeWidth: { default: 8 },
|
|
6759
|
+
color: {},
|
|
6760
|
+
trackColor: {},
|
|
6761
|
+
tone: { default: "primary" },
|
|
6762
|
+
showLabel: {
|
|
6763
|
+
type: Boolean,
|
|
6764
|
+
default: !1
|
|
6765
|
+
},
|
|
6766
|
+
indeterminate: {
|
|
6767
|
+
type: Boolean,
|
|
6768
|
+
default: !1
|
|
6769
|
+
},
|
|
6770
|
+
formatLabel: {}
|
|
6771
|
+
},
|
|
6772
|
+
setup(e) {
|
|
6773
|
+
let t = e, n = a(() => (t.size - t.strokeWidth) / 2), r = a(() => 2 * Math.PI * n.value), i = a(() => t.size / 2), o = a(() => Math.max(0, Math.min(t.max, t.value))), d = a(() => o.value / t.max * 100), f = a(() => t.indeterminate ? r.value * .7 : r.value * (1 - o.value / t.max)), p = a(() => t.formatLabel ? t.formatLabel(o.value, t.max) : `${Math.round(d.value)}%`), m = a(() => ({
|
|
6774
|
+
...t.color ? { "--uid-ring-color": t.color } : {},
|
|
6775
|
+
...t.trackColor ? { "--uid-ring-track": t.trackColor } : {},
|
|
6776
|
+
"--uid-ring-label-size": `${Math.max(10, t.size * .18)}px`
|
|
6777
|
+
}));
|
|
6778
|
+
return (t, a) => (x(), c("div", {
|
|
6779
|
+
class: _(["uid-progress-ring", [e.tone !== "primary" && `uid-progress-ring--${e.tone}`, e.indeterminate && "uid-progress-ring__indeterminate"]]),
|
|
6780
|
+
style: v(m.value),
|
|
6781
|
+
role: "progressbar",
|
|
6782
|
+
"aria-valuemin": 0,
|
|
6783
|
+
"aria-valuemax": e.max,
|
|
6784
|
+
"aria-valuenow": e.indeterminate ? void 0 : o.value
|
|
6785
|
+
}, [(x(), c("svg", {
|
|
6786
|
+
class: "uid-progress-ring__svg",
|
|
6787
|
+
width: e.size,
|
|
6788
|
+
height: e.size,
|
|
6789
|
+
viewBox: `0 0 ${e.size} ${e.size}`,
|
|
6790
|
+
"aria-hidden": "true"
|
|
6791
|
+
}, [l("circle", {
|
|
6792
|
+
class: "uid-progress-ring__track",
|
|
6793
|
+
cx: i.value,
|
|
6794
|
+
cy: i.value,
|
|
6795
|
+
r: n.value,
|
|
6796
|
+
"stroke-width": e.strokeWidth
|
|
6797
|
+
}, null, 8, Rl), l("circle", {
|
|
6798
|
+
class: "uid-progress-ring__progress",
|
|
6799
|
+
cx: i.value,
|
|
6800
|
+
cy: i.value,
|
|
6801
|
+
r: n.value,
|
|
6802
|
+
"stroke-width": e.strokeWidth,
|
|
6803
|
+
"stroke-dasharray": r.value,
|
|
6804
|
+
"stroke-dashoffset": f.value
|
|
6805
|
+
}, null, 8, zl)], 8, Ll)), e.showLabel || t.$slots.default ? (x(), c("div", Bl, [E(t.$slots, "default", {}, () => [u(k(p.value), 1)])])) : s("", !0)], 14, Il));
|
|
6806
|
+
}
|
|
6807
|
+
}), Hl = [
|
|
6808
|
+
"aria-valuemin",
|
|
6809
|
+
"aria-valuemax",
|
|
6810
|
+
"aria-valuenow",
|
|
6811
|
+
"aria-label"
|
|
6812
|
+
], Ul = [
|
|
6813
|
+
"width",
|
|
6814
|
+
"height",
|
|
6815
|
+
"viewBox"
|
|
6816
|
+
], Wl = ["d", "stroke-width"], Gl = [
|
|
6817
|
+
"d",
|
|
6818
|
+
"stroke",
|
|
6819
|
+
"stroke-width",
|
|
6820
|
+
"stroke-dasharray",
|
|
6821
|
+
"stroke-dashoffset"
|
|
6822
|
+
], Kl = [
|
|
6823
|
+
"d",
|
|
6824
|
+
"stroke-width",
|
|
6825
|
+
"stroke-dasharray",
|
|
6826
|
+
"stroke-dashoffset"
|
|
6827
|
+
], ql = { key: 2 }, Jl = [
|
|
6828
|
+
"x1",
|
|
6829
|
+
"y1",
|
|
6830
|
+
"x2",
|
|
6831
|
+
"y2",
|
|
6832
|
+
"transform"
|
|
6833
|
+
], Yl = ["cx", "cy"], Xl = {
|
|
6834
|
+
key: 0,
|
|
6835
|
+
class: "uid-gauge__content"
|
|
6836
|
+
}, Zl = {
|
|
6837
|
+
key: 0,
|
|
6838
|
+
class: "uid-gauge__value"
|
|
6839
|
+
}, Ql = {
|
|
6840
|
+
key: 0,
|
|
6841
|
+
class: "uid-gauge__suffix"
|
|
6842
|
+
}, $l = {
|
|
6843
|
+
key: 1,
|
|
6844
|
+
class: "uid-gauge__label"
|
|
6845
|
+
}, eu = {
|
|
6846
|
+
key: 1,
|
|
6847
|
+
class: "uid-gauge__limits"
|
|
6848
|
+
}, tu = 4, nu = /* @__PURE__ */ f({
|
|
6849
|
+
__name: "UidGauge",
|
|
6850
|
+
props: {
|
|
6851
|
+
value: { default: 0 },
|
|
6852
|
+
min: { default: 0 },
|
|
6853
|
+
max: { default: 100 },
|
|
6854
|
+
size: { default: 200 },
|
|
6855
|
+
strokeWidth: { default: 14 },
|
|
6856
|
+
ranges: {},
|
|
6857
|
+
tone: { default: "primary" },
|
|
6858
|
+
color: {},
|
|
6859
|
+
showValue: {
|
|
6860
|
+
type: Boolean,
|
|
6861
|
+
default: !0
|
|
6862
|
+
},
|
|
6863
|
+
showLimits: {
|
|
6864
|
+
type: Boolean,
|
|
6865
|
+
default: !1
|
|
6866
|
+
},
|
|
6867
|
+
showNeedle: {
|
|
6868
|
+
type: Boolean,
|
|
6869
|
+
default: !1
|
|
6870
|
+
},
|
|
6871
|
+
label: {},
|
|
6872
|
+
suffix: {},
|
|
6873
|
+
precision: { default: 0 },
|
|
6874
|
+
formatValue: {}
|
|
6875
|
+
},
|
|
6876
|
+
setup(e) {
|
|
6877
|
+
let n = e, r = a(() => (n.size - n.strokeWidth) / 2 - tu), i = a(() => n.size / 2), o = a(() => n.size / 2), u = a(() => n.size / 2 + n.strokeWidth / 2 + tu), d = a(() => Math.PI * r.value), f = a(() => Math.max(n.min, Math.min(n.max, n.value))), p = a(() => {
|
|
6878
|
+
let e = n.max - n.min;
|
|
6879
|
+
return e <= 0 ? 0 : (f.value - n.min) / e;
|
|
6880
|
+
}), m = a(() => {
|
|
6881
|
+
let e = r.value, t = i.value, n = o.value;
|
|
6882
|
+
return `M ${t - e} ${n} A ${e} ${e} 0 0 1 ${t + e} ${n}`;
|
|
6883
|
+
}), h = a(() => d.value * (1 - p.value));
|
|
6884
|
+
function g(e) {
|
|
6885
|
+
let t = n.max - n.min, r = Math.max(n.min, Math.min(n.max, e.from)), i = Math.max(n.min, Math.min(n.max, e.to)), a = (r - n.min) / t, o = (i - n.min) / t, s = d.value * a;
|
|
6886
|
+
return {
|
|
6887
|
+
dasharray: `${d.value * Math.max(0, o - a)} ${d.value}`,
|
|
6888
|
+
dashoffset: -s
|
|
6889
|
+
};
|
|
6890
|
+
}
|
|
6891
|
+
let y = a(() => -180 + p.value * 180), b = a(() => n.formatValue ? n.formatValue(f.value) : f.value.toFixed(n.precision)), S = a(() => ({
|
|
6892
|
+
...n.color ? { "--uid-gauge-color": n.color } : {},
|
|
6893
|
+
"--uid-gauge-value-size": `${Math.max(14, n.size * .13)}px`
|
|
6894
|
+
}));
|
|
6895
|
+
return (n, a) => (x(), c("div", {
|
|
6896
|
+
class: _(["uid-gauge", e.tone !== "primary" && `uid-gauge--${e.tone}`]),
|
|
6897
|
+
style: v(S.value),
|
|
6898
|
+
role: "meter",
|
|
6899
|
+
"aria-valuemin": e.min,
|
|
6900
|
+
"aria-valuemax": e.max,
|
|
6901
|
+
"aria-valuenow": f.value,
|
|
6902
|
+
"aria-label": e.label
|
|
6903
|
+
}, [
|
|
6904
|
+
(x(), c("svg", {
|
|
6905
|
+
class: "uid-gauge__svg",
|
|
6906
|
+
width: e.size,
|
|
6907
|
+
height: u.value,
|
|
6908
|
+
viewBox: `0 0 ${e.size} ${u.value}`,
|
|
6909
|
+
"aria-hidden": "true"
|
|
6910
|
+
}, [
|
|
6911
|
+
l("path", {
|
|
6912
|
+
class: "uid-gauge__track",
|
|
6913
|
+
d: m.value,
|
|
6914
|
+
"stroke-width": e.strokeWidth
|
|
6915
|
+
}, null, 8, Wl),
|
|
6916
|
+
e.ranges && e.ranges.length ? (x(!0), c(t, { key: 0 }, T(e.ranges, (t, n) => (x(), c("path", {
|
|
6917
|
+
key: n,
|
|
6918
|
+
class: "uid-gauge__range",
|
|
6919
|
+
d: m.value,
|
|
6920
|
+
stroke: t.color || "var(--uid-color-primary-subtle)",
|
|
6921
|
+
"stroke-width": e.strokeWidth,
|
|
6922
|
+
"stroke-dasharray": g(t).dasharray,
|
|
6923
|
+
"stroke-dashoffset": g(t).dashoffset
|
|
6924
|
+
}, null, 8, Gl))), 128)) : s("", !0),
|
|
6925
|
+
!e.ranges || e.ranges.length === 0 ? (x(), c("path", {
|
|
6926
|
+
key: 1,
|
|
6927
|
+
class: "uid-gauge__progress",
|
|
6928
|
+
d: m.value,
|
|
6929
|
+
"stroke-width": e.strokeWidth,
|
|
6930
|
+
"stroke-dasharray": d.value,
|
|
6931
|
+
"stroke-dashoffset": h.value
|
|
6932
|
+
}, null, 8, Kl)) : s("", !0),
|
|
6933
|
+
e.showNeedle ? (x(), c("g", ql, [l("line", {
|
|
6934
|
+
class: "uid-gauge__needle",
|
|
6935
|
+
x1: i.value,
|
|
6936
|
+
y1: o.value,
|
|
6937
|
+
x2: i.value + r.value - e.strokeWidth,
|
|
6938
|
+
y2: o.value,
|
|
6939
|
+
transform: `rotate(${y.value} ${i.value} ${o.value})`
|
|
6940
|
+
}, null, 8, Jl), l("circle", {
|
|
6941
|
+
class: "uid-gauge__needle-pivot",
|
|
6942
|
+
cx: i.value,
|
|
6943
|
+
cy: o.value,
|
|
6944
|
+
r: "4"
|
|
6945
|
+
}, null, 8, Yl)])) : s("", !0)
|
|
6946
|
+
], 8, Ul)),
|
|
6947
|
+
e.showValue || e.label ? (x(), c("div", Xl, [e.showValue ? (x(), c("div", Zl, [l("span", null, k(b.value), 1), e.suffix ? (x(), c("span", Ql, k(e.suffix), 1)) : s("", !0)])) : s("", !0), e.label ? (x(), c("div", $l, k(e.label), 1)) : s("", !0)])) : s("", !0),
|
|
6948
|
+
e.showLimits ? (x(), c("div", eu, [l("span", null, k(e.min), 1), l("span", null, k(e.max), 1)])) : s("", !0)
|
|
6949
|
+
], 14, Hl));
|
|
6950
|
+
}
|
|
6951
|
+
}), ru = ["aria-label"], iu = { class: "uid-heatmap__chart" }, au = {
|
|
6952
|
+
key: 0,
|
|
6953
|
+
class: "uid-heatmap__weekdays",
|
|
6954
|
+
"aria-hidden": "true"
|
|
6955
|
+
}, ou = { class: "uid-heatmap__grid-wrapper" }, su = [
|
|
6956
|
+
"width",
|
|
6957
|
+
"height",
|
|
6958
|
+
"viewBox"
|
|
6959
|
+
], cu = [
|
|
6960
|
+
"x",
|
|
6961
|
+
"y",
|
|
6962
|
+
"width",
|
|
6963
|
+
"height",
|
|
6964
|
+
"fill"
|
|
6965
|
+
], lu = {
|
|
6966
|
+
key: 0,
|
|
6967
|
+
class: "uid-heatmap__legend"
|
|
6968
|
+
}, uu = /* @__PURE__ */ f({
|
|
6969
|
+
__name: "UidHeatmap",
|
|
6970
|
+
props: {
|
|
6971
|
+
data: {},
|
|
6972
|
+
startDate: {},
|
|
6973
|
+
endDate: {},
|
|
6974
|
+
levels: { default: 5 },
|
|
6975
|
+
color: {},
|
|
6976
|
+
emptyColor: {},
|
|
6977
|
+
cellSize: { default: 12 },
|
|
6978
|
+
gap: { default: 3 },
|
|
6979
|
+
showLegend: {
|
|
6980
|
+
type: Boolean,
|
|
6981
|
+
default: !0
|
|
6982
|
+
},
|
|
6983
|
+
showWeekdays: {
|
|
6984
|
+
type: Boolean,
|
|
6985
|
+
default: !0
|
|
6986
|
+
},
|
|
6987
|
+
showMonths: {
|
|
6988
|
+
type: Boolean,
|
|
6989
|
+
default: !0
|
|
6990
|
+
},
|
|
6991
|
+
formatTooltip: {},
|
|
6992
|
+
ariaLabel: {}
|
|
6993
|
+
},
|
|
6994
|
+
setup(e) {
|
|
6995
|
+
let n = e, r = $();
|
|
6996
|
+
function i(e) {
|
|
6997
|
+
return /* @__PURE__ */ new Date(`${e}T00:00:00`);
|
|
6998
|
+
}
|
|
6999
|
+
function o(e) {
|
|
7000
|
+
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
7001
|
+
}
|
|
7002
|
+
function u(e) {
|
|
7003
|
+
let t = (e.getDay() + 6) % 7, n = new Date(e);
|
|
7004
|
+
return n.setDate(e.getDate() - t), n;
|
|
7005
|
+
}
|
|
7006
|
+
function d(e, t) {
|
|
7007
|
+
let n = new Date(e);
|
|
7008
|
+
return n.setDate(e.getDate() + t), n;
|
|
7009
|
+
}
|
|
7010
|
+
let f = /* @__PURE__ */ new Date(), p = a(() => n.endDate ? i(n.endDate) : f), m = a(() => {
|
|
7011
|
+
if (n.startDate) return i(n.startDate);
|
|
7012
|
+
let e = new Date(p.value);
|
|
7013
|
+
return e.setFullYear(e.getFullYear() - 1), e.setDate(e.getDate() + 1), e;
|
|
7014
|
+
}), h = a(() => {
|
|
7015
|
+
let e = /* @__PURE__ */ new Map();
|
|
7016
|
+
for (let t of n.data) e.set(t.date, t.value);
|
|
7017
|
+
return e;
|
|
7018
|
+
}), g = a(() => {
|
|
7019
|
+
let e = 0;
|
|
7020
|
+
for (let t of n.data) t.value > e && (e = t.value);
|
|
7021
|
+
return e;
|
|
7022
|
+
});
|
|
7023
|
+
function y(e) {
|
|
7024
|
+
if (e <= 0 || g.value === 0) return 0;
|
|
7025
|
+
let t = e / g.value;
|
|
7026
|
+
return Math.min(n.levels, Math.max(1, Math.ceil(t * n.levels)));
|
|
7027
|
+
}
|
|
7028
|
+
function b(e) {
|
|
7029
|
+
return e === 0 ? "var(--uid-heatmap-empty)" : `color-mix(in srgb, var(--uid-heatmap-color) ${((.2 + .8 * (e - 1) / Math.max(1, n.levels - 1)) * 100).toFixed(0)}%, transparent)`;
|
|
7030
|
+
}
|
|
7031
|
+
let S = a(() => {
|
|
7032
|
+
let e = u(m.value), t = p.value, i = [], a = [], s = -1, c = 0;
|
|
7033
|
+
for (let l = new Date(e); l <= t; l = d(l, 1)) {
|
|
7034
|
+
let t = o(l), u = h.value.get(t) ?? 0, d = (l.getDay() + 6) % 7;
|
|
7035
|
+
d === 0 && (c = Math.floor((l.getTime() - e.getTime()) / (7 * 864e5))), d === 0 && l.getMonth() !== s && l >= m.value && (a.push({
|
|
7036
|
+
x: c * (n.cellSize + n.gap),
|
|
7037
|
+
label: r.value.datePicker.months[l.getMonth()].slice(0, 3)
|
|
7038
|
+
}), s = l.getMonth()), !(l < m.value) && i.push({
|
|
7039
|
+
date: t,
|
|
7040
|
+
value: u,
|
|
7041
|
+
level: y(u),
|
|
7042
|
+
x: c * (n.cellSize + n.gap),
|
|
7043
|
+
y: d * (n.cellSize + n.gap)
|
|
7044
|
+
});
|
|
7045
|
+
}
|
|
7046
|
+
return {
|
|
7047
|
+
cells: i,
|
|
7048
|
+
weeks: i.length === 0 ? 0 : Math.ceil((i[i.length - 1].x + n.cellSize) / (n.cellSize + n.gap)),
|
|
7049
|
+
monthLabels: a
|
|
7050
|
+
};
|
|
7051
|
+
}), C = a(() => S.value.weeks * (n.cellSize + n.gap)), w = a(() => 7 * (n.cellSize + n.gap)), E = a(() => ({
|
|
7052
|
+
...n.color ? { "--uid-heatmap-color": n.color } : {},
|
|
7053
|
+
...n.emptyColor ? { "--uid-heatmap-empty": n.emptyColor } : {},
|
|
7054
|
+
"--uid-heatmap-cell": `${n.cellSize}px`,
|
|
7055
|
+
"--uid-heatmap-gap": `${n.gap}px`
|
|
7056
|
+
})), D = a(() => Array.from({ length: n.levels + 1 }, (e, t) => t));
|
|
7057
|
+
function O(e) {
|
|
7058
|
+
let t = {
|
|
7059
|
+
date: e.date,
|
|
7060
|
+
value: e.value
|
|
7061
|
+
};
|
|
7062
|
+
return n.formatTooltip ? n.formatTooltip(t) : `${e.date}: ${e.value}`;
|
|
7063
|
+
}
|
|
7064
|
+
let A = a(() => {
|
|
7065
|
+
let e = 0;
|
|
7066
|
+
for (let t of n.data) e += t.value;
|
|
7067
|
+
return e;
|
|
7068
|
+
}), M = a(() => n.ariaLabel ? n.ariaLabel : `Тепловая карта активности: ${A.value} событий`);
|
|
7069
|
+
return (n, i) => (x(), c("div", {
|
|
7070
|
+
class: "uid-heatmap",
|
|
7071
|
+
style: v(E.value),
|
|
7072
|
+
role: "img",
|
|
7073
|
+
"aria-label": M.value
|
|
7074
|
+
}, [l("div", iu, [e.showWeekdays ? (x(), c("div", au, [(x(!0), c(t, null, T(j(r).datePicker.weekdaysShort, (e, t) => (x(), c("span", {
|
|
7075
|
+
key: e,
|
|
7076
|
+
class: _(["uid-heatmap__weekday", { "uid-heatmap__weekday--visible": t === 0 || t === 2 || t === 4 }])
|
|
7077
|
+
}, k(e), 3))), 128))])) : s("", !0), l("div", ou, [e.showMonths ? (x(), c("div", {
|
|
7078
|
+
key: 0,
|
|
7079
|
+
class: "uid-heatmap__months",
|
|
7080
|
+
style: v({ width: `${C.value}px` }),
|
|
7081
|
+
"aria-hidden": "true"
|
|
7082
|
+
}, [(x(!0), c(t, null, T(S.value.monthLabels, (e, t) => (x(), c("span", {
|
|
7083
|
+
key: t,
|
|
7084
|
+
class: "uid-heatmap__month",
|
|
7085
|
+
style: v({ left: `${e.x}px` })
|
|
7086
|
+
}, k(e.label), 5))), 128))], 4)) : s("", !0), (x(), c("svg", {
|
|
7087
|
+
class: "uid-heatmap__svg",
|
|
7088
|
+
width: C.value,
|
|
7089
|
+
height: w.value,
|
|
7090
|
+
viewBox: `0 0 ${C.value} ${w.value}`,
|
|
7091
|
+
"aria-hidden": "true"
|
|
7092
|
+
}, [(x(!0), c(t, null, T(S.value.cells, (t) => (x(), c("rect", {
|
|
7093
|
+
key: t.date,
|
|
7094
|
+
class: "uid-heatmap__cell",
|
|
7095
|
+
x: t.x,
|
|
7096
|
+
y: t.y,
|
|
7097
|
+
width: e.cellSize,
|
|
7098
|
+
height: e.cellSize,
|
|
7099
|
+
fill: b(t.level)
|
|
7100
|
+
}, [l("title", null, k(O(t)), 1)], 8, cu))), 128))], 8, su))])]), e.showLegend ? (x(), c("div", lu, [
|
|
7101
|
+
i[0] ||= l("span", null, "Меньше", -1),
|
|
7102
|
+
(x(!0), c(t, null, T(D.value, (e) => (x(), c("span", {
|
|
7103
|
+
key: e,
|
|
7104
|
+
class: "uid-heatmap__legend-cell",
|
|
7105
|
+
style: v(e === 0 ? void 0 : { background: b(e) })
|
|
7106
|
+
}, null, 4))), 128)),
|
|
7107
|
+
i[1] ||= l("span", null, "Больше", -1)
|
|
7108
|
+
])) : s("", !0)], 12, ru));
|
|
7109
|
+
}
|
|
7110
|
+
}), du = ["aria-label"], fu = ["aria-current"], pu = { class: "uid-stepper__indicator" }, mu = {
|
|
6428
7111
|
key: 1,
|
|
6429
7112
|
"aria-hidden": "true"
|
|
6430
|
-
},
|
|
7113
|
+
}, hu = { class: "uid-stepper__content" }, gu = { class: "uid-stepper__label" }, _u = {
|
|
6431
7114
|
key: 0,
|
|
6432
7115
|
class: "uid-stepper__description"
|
|
6433
|
-
},
|
|
7116
|
+
}, vu = /* @__PURE__ */ f({
|
|
6434
7117
|
__name: "UidStepper",
|
|
6435
7118
|
props: {
|
|
6436
7119
|
steps: {},
|
|
@@ -6448,14 +7131,14 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6448
7131
|
key: i,
|
|
6449
7132
|
class: _(["uid-stepper__step", [`uid-stepper__step--${r(i, n.current)}`]]),
|
|
6450
7133
|
"aria-current": i === n.current ? "step" : void 0
|
|
6451
|
-
}, [l("div",
|
|
7134
|
+
}, [l("div", pu, [r(i, n.current) === "completed" ? (x(), o(e, {
|
|
6452
7135
|
key: 0,
|
|
6453
7136
|
icon: j(q),
|
|
6454
7137
|
size: 16,
|
|
6455
7138
|
"aria-hidden": "true"
|
|
6456
|
-
}, null, 8, ["icon"])) : (x(), c("span",
|
|
7139
|
+
}, null, 8, ["icon"])) : (x(), c("span", mu, k(i + 1), 1))]), l("div", hu, [l("span", gu, k(t.label), 1), t.description ? (x(), c("span", _u, k(t.description), 1)) : s("", !0)])], 10, fu))), 128))], 10, du));
|
|
6457
7140
|
}
|
|
6458
|
-
}),
|
|
7141
|
+
}), yu = /* @__PURE__ */ f({
|
|
6459
7142
|
__name: "UidStack",
|
|
6460
7143
|
props: {
|
|
6461
7144
|
direction: { default: "column" },
|
|
@@ -6501,7 +7184,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6501
7184
|
_: 3
|
|
6502
7185
|
}, 8, ["class", "style"]));
|
|
6503
7186
|
}
|
|
6504
|
-
}),
|
|
7187
|
+
}), bu = /* @__PURE__ */ f({
|
|
6505
7188
|
__name: "UidGrid",
|
|
6506
7189
|
props: {
|
|
6507
7190
|
cols: { default: 12 },
|
|
@@ -6534,7 +7217,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6534
7217
|
_: 3
|
|
6535
7218
|
}, 8, ["style"]));
|
|
6536
7219
|
}
|
|
6537
|
-
}),
|
|
7220
|
+
}), xu = /* @__PURE__ */ f({
|
|
6538
7221
|
__name: "UidContainer",
|
|
6539
7222
|
props: {
|
|
6540
7223
|
size: { default: "lg" },
|
|
@@ -6550,7 +7233,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6550
7233
|
_: 3
|
|
6551
7234
|
}, 8, ["class"]));
|
|
6552
7235
|
}
|
|
6553
|
-
}),
|
|
7236
|
+
}), Su = Symbol("uid-wizard"), Cu = { class: "uid-wizard" }, wu = /* @__PURE__ */ f({
|
|
6554
7237
|
__name: "UidWizard",
|
|
6555
7238
|
props: /* @__PURE__ */ m({ steps: {} }, {
|
|
6556
7239
|
modelValue: { default: 0 },
|
|
@@ -6575,7 +7258,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6575
7258
|
function m(e) {
|
|
6576
7259
|
i.delete(e);
|
|
6577
7260
|
}
|
|
6578
|
-
return S(
|
|
7261
|
+
return S(Su, {
|
|
6579
7262
|
current: r,
|
|
6580
7263
|
steps: o,
|
|
6581
7264
|
isFirst: s,
|
|
@@ -6592,9 +7275,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6592
7275
|
goTo: f,
|
|
6593
7276
|
isFirst: s,
|
|
6594
7277
|
isLast: l
|
|
6595
|
-
}), (e, t) => (x(), c("div",
|
|
7278
|
+
}), (e, t) => (x(), c("div", Cu, [E(e.$slots, "default")]));
|
|
6596
7279
|
}
|
|
6597
|
-
}),
|
|
7280
|
+
}), Tu = ["aria-label"], Eu = /* @__PURE__ */ f({
|
|
6598
7281
|
__name: "UidWizardStep",
|
|
6599
7282
|
props: {
|
|
6600
7283
|
index: {},
|
|
@@ -6604,7 +7287,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6604
7287
|
}
|
|
6605
7288
|
},
|
|
6606
7289
|
setup(e) {
|
|
6607
|
-
let t = e, n = p(
|
|
7290
|
+
let t = e, n = p(Su);
|
|
6608
7291
|
if (!n) throw Error("UidWizardStep must be inside UidWizard");
|
|
6609
7292
|
R(() => t.validate, (e, r) => {
|
|
6610
7293
|
r !== void 0 && n.unregisterValidator(t.index), e !== void 0 && n.registerValidator(t.index, e);
|
|
@@ -6615,22 +7298,22 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6615
7298
|
class: "uid-wizard-step",
|
|
6616
7299
|
role: "tabpanel",
|
|
6617
7300
|
"aria-label": `Шаг ${e.index + 1}`
|
|
6618
|
-
}, [E(t.$slots, "default")], 8,
|
|
7301
|
+
}, [E(t.$slots, "default")], 8, Tu)) : s("", !0);
|
|
6619
7302
|
}
|
|
6620
|
-
}),
|
|
7303
|
+
}), Du = { class: "uid-pattern-header__inner" }, Ou = {
|
|
6621
7304
|
key: 0,
|
|
6622
7305
|
class: "uid-pattern-header__logo"
|
|
6623
|
-
},
|
|
7306
|
+
}, ku = {
|
|
6624
7307
|
key: 1,
|
|
6625
7308
|
class: "uid-pattern-header__nav",
|
|
6626
7309
|
"aria-label": "Основная навигация"
|
|
6627
|
-
},
|
|
7310
|
+
}, Au = {
|
|
6628
7311
|
key: 2,
|
|
6629
7312
|
class: "uid-pattern-header__actions"
|
|
6630
|
-
},
|
|
7313
|
+
}, ju = {
|
|
6631
7314
|
key: 3,
|
|
6632
7315
|
class: "uid-pattern-header__mobile"
|
|
6633
|
-
},
|
|
7316
|
+
}, Mu = /* @__PURE__ */ f({
|
|
6634
7317
|
__name: "UidHeader",
|
|
6635
7318
|
props: {
|
|
6636
7319
|
sticky: {
|
|
@@ -6651,38 +7334,38 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6651
7334
|
"uid-pattern-header--sticky": e.sticky,
|
|
6652
7335
|
"uid-pattern-header--bordered": e.bordered,
|
|
6653
7336
|
"uid-pattern-header--transparent": e.transparent
|
|
6654
|
-
}]) }, [l("div",
|
|
6655
|
-
t.$slots.logo ? (x(), c("div",
|
|
6656
|
-
t.$slots.nav ? (x(), c("nav",
|
|
6657
|
-
t.$slots.actions ? (x(), c("div",
|
|
6658
|
-
t.$slots.mobile ? (x(), c("div",
|
|
7337
|
+
}]) }, [l("div", Du, [
|
|
7338
|
+
t.$slots.logo ? (x(), c("div", Ou, [E(t.$slots, "logo")])) : s("", !0),
|
|
7339
|
+
t.$slots.nav ? (x(), c("nav", ku, [E(t.$slots, "nav")])) : s("", !0),
|
|
7340
|
+
t.$slots.actions ? (x(), c("div", Au, [E(t.$slots, "actions")])) : s("", !0),
|
|
7341
|
+
t.$slots.mobile ? (x(), c("div", ju, [E(t.$slots, "mobile")])) : s("", !0)
|
|
6659
7342
|
])], 2));
|
|
6660
7343
|
}
|
|
6661
|
-
}),
|
|
7344
|
+
}), Nu = { class: "uid-pattern-footer__inner" }, Pu = {
|
|
6662
7345
|
key: 0,
|
|
6663
7346
|
class: "uid-pattern-footer__columns"
|
|
6664
|
-
},
|
|
7347
|
+
}, Fu = {
|
|
6665
7348
|
key: 1,
|
|
6666
7349
|
class: "uid-pattern-footer__content"
|
|
6667
|
-
},
|
|
7350
|
+
}, Iu = {
|
|
6668
7351
|
key: 2,
|
|
6669
7352
|
class: "uid-pattern-footer__bottom"
|
|
6670
|
-
},
|
|
7353
|
+
}, Lu = /* @__PURE__ */ f({
|
|
6671
7354
|
__name: "UidFooter",
|
|
6672
7355
|
props: { variant: { default: "minimal" } },
|
|
6673
7356
|
setup(e) {
|
|
6674
|
-
return (t, n) => (x(), c("footer", { class: _(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div",
|
|
7357
|
+
return (t, n) => (x(), c("footer", { class: _(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div", Nu, [t.$slots.columns ? (x(), c("div", Pu, [E(t.$slots, "columns")])) : t.$slots.default ? (x(), c("div", Fu, [E(t.$slots, "default")])) : s("", !0), t.$slots.bottom ? (x(), c("div", Iu, [E(t.$slots, "bottom")])) : s("", !0)])], 2));
|
|
6675
7358
|
}
|
|
6676
|
-
}),
|
|
7359
|
+
}), Ru = {
|
|
6677
7360
|
key: 0,
|
|
6678
7361
|
class: "uid-pattern-sidebar__header"
|
|
6679
|
-
},
|
|
7362
|
+
}, zu = {
|
|
6680
7363
|
class: "uid-pattern-sidebar__nav",
|
|
6681
7364
|
"aria-label": "Навигация"
|
|
6682
|
-
},
|
|
7365
|
+
}, Bu = {
|
|
6683
7366
|
key: 1,
|
|
6684
7367
|
class: "uid-pattern-sidebar__footer"
|
|
6685
|
-
},
|
|
7368
|
+
}, Vu = /* @__PURE__ */ f({
|
|
6686
7369
|
__name: "UidSidebar",
|
|
6687
7370
|
props: {
|
|
6688
7371
|
collapsed: {
|
|
@@ -6698,19 +7381,19 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6698
7381
|
style: v(e.width && !e.collapsed ? { "--uid-sidebar-width": e.width } : void 0),
|
|
6699
7382
|
"aria-label": "Боковая навигация"
|
|
6700
7383
|
}, [
|
|
6701
|
-
t.$slots.header ? (x(), c("div",
|
|
6702
|
-
l("nav",
|
|
6703
|
-
t.$slots.footer ? (x(), c("div",
|
|
7384
|
+
t.$slots.header ? (x(), c("div", Ru, [E(t.$slots, "header")])) : s("", !0),
|
|
7385
|
+
l("nav", zu, [E(t.$slots, "nav")]),
|
|
7386
|
+
t.$slots.footer ? (x(), c("div", Bu, [E(t.$slots, "footer")])) : s("", !0)
|
|
6704
7387
|
], 6));
|
|
6705
7388
|
}
|
|
6706
|
-
}),
|
|
7389
|
+
}), Hu = {
|
|
6707
7390
|
key: 0,
|
|
6708
7391
|
class: "uid-sidebar-item__icon",
|
|
6709
7392
|
"aria-hidden": "true"
|
|
6710
|
-
},
|
|
7393
|
+
}, Uu = { class: "uid-sidebar-item__label" }, Wu = {
|
|
6711
7394
|
key: 1,
|
|
6712
7395
|
class: "uid-sidebar-item__badge"
|
|
6713
|
-
},
|
|
7396
|
+
}, Gu = /* @__PURE__ */ f({
|
|
6714
7397
|
__name: "UidSidebarItem",
|
|
6715
7398
|
props: {
|
|
6716
7399
|
href: { default: void 0 },
|
|
@@ -6745,9 +7428,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6745
7428
|
tabindex: e.disabled ? -1 : void 0
|
|
6746
7429
|
}), {
|
|
6747
7430
|
default: z(() => [
|
|
6748
|
-
t.$slots.icon ? (x(), c("span",
|
|
6749
|
-
l("span",
|
|
6750
|
-
e.badge === void 0 ? s("", !0) : (x(), c("span",
|
|
7431
|
+
t.$slots.icon ? (x(), c("span", Hu, [E(t.$slots, "icon")])) : s("", !0),
|
|
7432
|
+
l("span", Uu, [E(t.$slots, "default")]),
|
|
7433
|
+
e.badge === void 0 ? s("", !0) : (x(), c("span", Wu, k(e.badge), 1))
|
|
6751
7434
|
]),
|
|
6752
7435
|
_: 3
|
|
6753
7436
|
}, 16, [
|
|
@@ -6757,10 +7440,10 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6757
7440
|
"tabindex"
|
|
6758
7441
|
]));
|
|
6759
7442
|
}
|
|
6760
|
-
}),
|
|
7443
|
+
}), Ku = { class: "uid-sidebar-group" }, qu = {
|
|
6761
7444
|
key: 0,
|
|
6762
7445
|
class: "uid-sidebar-group__title"
|
|
6763
|
-
},
|
|
7446
|
+
}, Ju = /* @__PURE__ */ f({
|
|
6764
7447
|
__name: "UidSidebarGroup",
|
|
6765
7448
|
props: {
|
|
6766
7449
|
title: { default: void 0 },
|
|
@@ -6770,29 +7453,29 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6770
7453
|
}
|
|
6771
7454
|
},
|
|
6772
7455
|
setup(e) {
|
|
6773
|
-
return (t, n) => (x(), c("div",
|
|
7456
|
+
return (t, n) => (x(), c("div", Ku, [e.title ? (x(), c("p", qu, k(e.title), 1)) : s("", !0), E(t.$slots, "default")]));
|
|
6774
7457
|
}
|
|
6775
|
-
}),
|
|
7458
|
+
}), Yu = {}, Xu = {
|
|
6776
7459
|
class: "uid-sidebar-divider",
|
|
6777
7460
|
role: "separator",
|
|
6778
7461
|
"aria-hidden": "true"
|
|
6779
7462
|
};
|
|
6780
|
-
function
|
|
6781
|
-
return x(), c("div",
|
|
7463
|
+
function Zu(e, t) {
|
|
7464
|
+
return x(), c("div", Xu);
|
|
6782
7465
|
}
|
|
6783
|
-
var
|
|
7466
|
+
var Qu = /* @__PURE__ */ Gn(Yu, [["render", Zu]]), $u = { class: "uid-pattern-page-header" }, ed = {
|
|
6784
7467
|
key: 0,
|
|
6785
7468
|
class: "uid-pattern-page-header__breadcrumb"
|
|
6786
|
-
},
|
|
7469
|
+
}, td = { class: "uid-pattern-page-header__row" }, nd = { class: "uid-pattern-page-header__heading" }, rd = { class: "uid-pattern-page-header__title" }, id = {
|
|
6787
7470
|
key: 0,
|
|
6788
7471
|
class: "uid-pattern-page-header__description"
|
|
6789
|
-
},
|
|
7472
|
+
}, ad = {
|
|
6790
7473
|
key: 0,
|
|
6791
7474
|
class: "uid-pattern-page-header__actions"
|
|
6792
|
-
},
|
|
7475
|
+
}, od = {
|
|
6793
7476
|
key: 1,
|
|
6794
7477
|
class: "uid-pattern-page-header__tabs"
|
|
6795
|
-
},
|
|
7478
|
+
}, sd = /* @__PURE__ */ f({
|
|
6796
7479
|
__name: "UidPageHeader",
|
|
6797
7480
|
props: {
|
|
6798
7481
|
title: { default: void 0 },
|
|
@@ -6805,9 +7488,9 @@ var du = /* @__PURE__ */ Gn(cu, [["render", uu]]), fu = { class: "uid-pattern-pa
|
|
|
6805
7488
|
emits: ["back"],
|
|
6806
7489
|
setup(t, { emit: n }) {
|
|
6807
7490
|
let r = n;
|
|
6808
|
-
return (n, i) => (x(), c("div",
|
|
6809
|
-
n.$slots.breadcrumb ? (x(), c("div",
|
|
6810
|
-
l("div",
|
|
7491
|
+
return (n, i) => (x(), c("div", $u, [
|
|
7492
|
+
n.$slots.breadcrumb ? (x(), c("div", ed, [E(n.$slots, "breadcrumb")])) : s("", !0),
|
|
7493
|
+
l("div", td, [l("div", nd, [t.back ? (x(), c("button", {
|
|
6811
7494
|
key: 0,
|
|
6812
7495
|
type: "button",
|
|
6813
7496
|
class: "uid-pattern-page-header__back",
|
|
@@ -6816,42 +7499,42 @@ var du = /* @__PURE__ */ Gn(cu, [["render", uu]]), fu = { class: "uid-pattern-pa
|
|
|
6816
7499
|
}, [d(e, {
|
|
6817
7500
|
icon: j(ee),
|
|
6818
7501
|
size: 20
|
|
6819
|
-
}, null, 8, ["icon"])])) : s("", !0), l("div", null, [l("h1",
|
|
6820
|
-
n.$slots.tabs ? (x(), c("div",
|
|
7502
|
+
}, null, 8, ["icon"])])) : s("", !0), l("div", null, [l("h1", rd, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), t.description || n.$slots.description ? (x(), c("p", id, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0)])]), n.$slots.actions ? (x(), c("div", ad, [E(n.$slots, "actions")])) : s("", !0)]),
|
|
7503
|
+
n.$slots.tabs ? (x(), c("div", od, [E(n.$slots, "tabs")])) : s("", !0)
|
|
6821
7504
|
]));
|
|
6822
7505
|
}
|
|
6823
|
-
}),
|
|
7506
|
+
}), cd = { class: "uid-pattern-empty-state" }, ld = { class: "uid-pattern-empty-state__illustration" }, ud = { class: "uid-pattern-empty-state__content" }, dd = { class: "uid-pattern-empty-state__title" }, fd = {
|
|
6824
7507
|
key: 0,
|
|
6825
7508
|
class: "uid-pattern-empty-state__description"
|
|
6826
|
-
},
|
|
7509
|
+
}, pd = {
|
|
6827
7510
|
key: 0,
|
|
6828
7511
|
class: "uid-pattern-empty-state__actions"
|
|
6829
|
-
},
|
|
7512
|
+
}, md = /* @__PURE__ */ f({
|
|
6830
7513
|
__name: "UidEmptyState",
|
|
6831
7514
|
props: {
|
|
6832
7515
|
title: { default: "Ничего не найдено" },
|
|
6833
7516
|
description: { default: void 0 }
|
|
6834
7517
|
},
|
|
6835
7518
|
setup(t) {
|
|
6836
|
-
return (n, r) => (x(), c("div",
|
|
6837
|
-
l("div",
|
|
6838
|
-
icon: j(
|
|
7519
|
+
return (n, r) => (x(), c("div", cd, [
|
|
7520
|
+
l("div", ld, [E(n.$slots, "illustration", {}, () => [d(e, {
|
|
7521
|
+
icon: j(ce),
|
|
6839
7522
|
size: 48
|
|
6840
7523
|
}, null, 8, ["icon"])])]),
|
|
6841
|
-
l("div",
|
|
6842
|
-
n.$slots.actions ? (x(), c("div",
|
|
7524
|
+
l("div", ud, [l("h2", dd, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), t.description || n.$slots.description ? (x(), c("p", fd, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0)]),
|
|
7525
|
+
n.$slots.actions ? (x(), c("div", pd, [E(n.$slots, "actions")])) : s("", !0)
|
|
6843
7526
|
]));
|
|
6844
7527
|
}
|
|
6845
|
-
}),
|
|
7528
|
+
}), hd = { class: "uid-pattern-error-state" }, gd = { class: "uid-pattern-error-state__illustration" }, _d = {
|
|
6846
7529
|
key: 0,
|
|
6847
7530
|
class: "uid-pattern-error-state__code"
|
|
6848
|
-
},
|
|
7531
|
+
}, vd = { class: "uid-pattern-error-state__content" }, yd = { class: "uid-pattern-error-state__title" }, bd = {
|
|
6849
7532
|
key: 0,
|
|
6850
7533
|
class: "uid-pattern-error-state__description"
|
|
6851
|
-
},
|
|
7534
|
+
}, xd = {
|
|
6852
7535
|
key: 1,
|
|
6853
7536
|
class: "uid-pattern-error-state__actions"
|
|
6854
|
-
},
|
|
7537
|
+
}, Sd = /* @__PURE__ */ f({
|
|
6855
7538
|
__name: "UidErrorState",
|
|
6856
7539
|
props: {
|
|
6857
7540
|
code: { default: void 0 },
|
|
@@ -6866,33 +7549,33 @@ var du = /* @__PURE__ */ Gn(cu, [["render", uu]]), fu = { class: "uid-pattern-pa
|
|
|
6866
7549
|
description: "Запрашиваемая страница не существует или была перемещена."
|
|
6867
7550
|
},
|
|
6868
7551
|
500: {
|
|
6869
|
-
icon:
|
|
7552
|
+
icon: pe,
|
|
6870
7553
|
title: "Ошибка сервера",
|
|
6871
7554
|
description: "На сервере произошла ошибка. Мы уже работаем над исправлением."
|
|
6872
7555
|
},
|
|
6873
7556
|
network: {
|
|
6874
|
-
icon:
|
|
7557
|
+
icon: ge,
|
|
6875
7558
|
title: "Нет соединения",
|
|
6876
7559
|
description: "Проверьте подключение к интернету и попробуйте снова."
|
|
6877
7560
|
}
|
|
6878
7561
|
}, i = a(() => n.code ? r[n.code] ?? null : null), o = a(() => i.value?.icon ?? U), f = a(() => n.title ?? i.value?.title ?? "Что-то пошло не так"), p = a(() => n.description ?? i.value?.description);
|
|
6879
|
-
return (n, r) => (x(), c("div",
|
|
6880
|
-
l("div",
|
|
7562
|
+
return (n, r) => (x(), c("div", hd, [
|
|
7563
|
+
l("div", gd, [E(n.$slots, "illustration", {}, () => [d(e, {
|
|
6881
7564
|
icon: o.value,
|
|
6882
7565
|
size: 48
|
|
6883
7566
|
}, null, 8, ["icon"])])]),
|
|
6884
|
-
t.code ? (x(), c("div",
|
|
6885
|
-
l("div",
|
|
6886
|
-
n.$slots.actions ? (x(), c("div",
|
|
7567
|
+
t.code ? (x(), c("div", _d, k(t.code), 1)) : s("", !0),
|
|
7568
|
+
l("div", vd, [l("h2", yd, [E(n.$slots, "title", {}, () => [u(k(f.value), 1)])]), p.value || n.$slots.description ? (x(), c("p", bd, [E(n.$slots, "description", {}, () => [u(k(p.value), 1)])])) : s("", !0)]),
|
|
7569
|
+
n.$slots.actions ? (x(), c("div", xd, [E(n.$slots, "actions")])) : s("", !0)
|
|
6887
7570
|
]));
|
|
6888
7571
|
}
|
|
6889
|
-
}),
|
|
7572
|
+
}), Cd = {
|
|
6890
7573
|
key: 0,
|
|
6891
7574
|
class: "uid-layout-simple__header"
|
|
6892
|
-
},
|
|
7575
|
+
}, wd = { class: "uid-layout-simple__content" }, Td = {
|
|
6893
7576
|
key: 1,
|
|
6894
7577
|
class: "uid-layout-simple__footer"
|
|
6895
|
-
},
|
|
7578
|
+
}, Ed = /* @__PURE__ */ f({
|
|
6896
7579
|
__name: "UidSimpleLayout",
|
|
6897
7580
|
props: { full: {
|
|
6898
7581
|
type: Boolean,
|
|
@@ -6900,26 +7583,26 @@ var du = /* @__PURE__ */ Gn(cu, [["render", uu]]), fu = { class: "uid-pattern-pa
|
|
|
6900
7583
|
} },
|
|
6901
7584
|
setup(e) {
|
|
6902
7585
|
return (t, n) => (x(), c("div", { class: _(["uid-layout-simple", { "uid-layout-simple--full": e.full }]) }, [
|
|
6903
|
-
t.$slots.header ? (x(), c("div",
|
|
6904
|
-
l("main",
|
|
6905
|
-
t.$slots.footer ? (x(), c("div",
|
|
7586
|
+
t.$slots.header ? (x(), c("div", Cd, [E(t.$slots, "header")])) : s("", !0),
|
|
7587
|
+
l("main", wd, [E(t.$slots, "default")]),
|
|
7588
|
+
t.$slots.footer ? (x(), c("div", Td, [E(t.$slots, "footer")])) : s("", !0)
|
|
6906
7589
|
], 2));
|
|
6907
7590
|
}
|
|
6908
|
-
}),
|
|
6909
|
-
function
|
|
6910
|
-
let e = p(
|
|
7591
|
+
}), Dd = Symbol("uid-sidebar-layout");
|
|
7592
|
+
function Od() {
|
|
7593
|
+
let e = p(Dd);
|
|
6911
7594
|
if (!e) throw Error("useSidebar() must be used inside UidSidebarLayout");
|
|
6912
7595
|
return e;
|
|
6913
7596
|
}
|
|
6914
7597
|
//#endregion
|
|
6915
7598
|
//#region src/layouts/Sidebar/UidSidebarLayout.vue?vue&type=script&setup=true&lang.ts
|
|
6916
|
-
var
|
|
7599
|
+
var kd = { class: "uid-layout-sidebar__sidebar" }, Ad = { class: "uid-layout-sidebar__main" }, jd = {
|
|
6917
7600
|
key: 0,
|
|
6918
7601
|
class: "uid-layout-sidebar__main-header"
|
|
6919
|
-
},
|
|
7602
|
+
}, Md = { class: "uid-layout-sidebar__main-content" }, Nd = {
|
|
6920
7603
|
key: 1,
|
|
6921
7604
|
class: "uid-layout-sidebar__main-footer"
|
|
6922
|
-
},
|
|
7605
|
+
}, Pd = /* @__PURE__ */ f({
|
|
6923
7606
|
__name: "UidSidebarLayout",
|
|
6924
7607
|
props: /* @__PURE__ */ m({ sidebarWidth: { default: void 0 } }, {
|
|
6925
7608
|
modelValue: {
|
|
@@ -6937,7 +7620,7 @@ var Hu = { class: "uid-layout-sidebar__sidebar" }, Uu = { class: "uid-layout-sid
|
|
|
6937
7620
|
}, o = () => {
|
|
6938
7621
|
n.value = !0;
|
|
6939
7622
|
};
|
|
6940
|
-
S(
|
|
7623
|
+
S(Dd, {
|
|
6941
7624
|
collapsed: n,
|
|
6942
7625
|
toggle: r,
|
|
6943
7626
|
open: i,
|
|
@@ -6948,58 +7631,58 @@ var Hu = { class: "uid-layout-sidebar__sidebar" }, Uu = { class: "uid-layout-sid
|
|
|
6948
7631
|
class: _(["uid-layout-sidebar", { "uid-layout-sidebar--collapsed": n.value }]),
|
|
6949
7632
|
style: v(u.value)
|
|
6950
7633
|
}, [
|
|
6951
|
-
l("aside",
|
|
7634
|
+
l("aside", kd, [E(e.$slots, "sidebar")]),
|
|
6952
7635
|
l("div", {
|
|
6953
7636
|
class: "uid-layout-sidebar__backdrop",
|
|
6954
7637
|
"aria-hidden": "true",
|
|
6955
7638
|
onClick: o
|
|
6956
7639
|
}),
|
|
6957
|
-
l("div",
|
|
6958
|
-
e.$slots.header ? (x(), c("div",
|
|
6959
|
-
l("main",
|
|
6960
|
-
e.$slots.footer ? (x(), c("div",
|
|
7640
|
+
l("div", Ad, [
|
|
7641
|
+
e.$slots.header ? (x(), c("div", jd, [E(e.$slots, "header")])) : s("", !0),
|
|
7642
|
+
l("main", Md, [E(e.$slots, "default")]),
|
|
7643
|
+
e.$slots.footer ? (x(), c("div", Nd, [E(e.$slots, "footer")])) : s("", !0)
|
|
6961
7644
|
])
|
|
6962
7645
|
], 6));
|
|
6963
7646
|
}
|
|
6964
|
-
}),
|
|
7647
|
+
}), Fd = {
|
|
6965
7648
|
key: 0,
|
|
6966
7649
|
class: "uid-layout-auth__brand"
|
|
6967
|
-
},
|
|
7650
|
+
}, Id = { class: "uid-layout-auth__main" }, Ld = { class: "uid-layout-auth__card" }, Rd = {
|
|
6968
7651
|
key: 0,
|
|
6969
7652
|
class: "uid-layout-auth__footer"
|
|
6970
|
-
},
|
|
7653
|
+
}, zd = /* @__PURE__ */ f({
|
|
6971
7654
|
__name: "UidAuthLayout",
|
|
6972
7655
|
props: { variant: { default: "centered" } },
|
|
6973
7656
|
setup(e) {
|
|
6974
|
-
return (t, n) => (x(), c("div", { class: _(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (x(), c("div",
|
|
7657
|
+
return (t, n) => (x(), c("div", { class: _(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (x(), c("div", Fd, [E(t.$slots, "brand")])) : s("", !0), l("div", Id, [l("div", Ld, [E(t.$slots, "default")]), t.$slots.footer ? (x(), c("div", Rd, [E(t.$slots, "footer")])) : s("", !0)])], 2));
|
|
6975
7658
|
}
|
|
6976
|
-
}),
|
|
7659
|
+
}), Bd = { class: "uid-layout-wizard" }, Vd = {
|
|
6977
7660
|
key: 0,
|
|
6978
7661
|
class: "uid-layout-wizard__header"
|
|
6979
|
-
},
|
|
7662
|
+
}, Hd = {
|
|
6980
7663
|
key: 1,
|
|
6981
7664
|
class: "uid-layout-wizard__stepper"
|
|
6982
|
-
},
|
|
7665
|
+
}, Ud = { class: "uid-layout-wizard__content" }, Wd = {
|
|
6983
7666
|
key: 2,
|
|
6984
7667
|
class: "uid-layout-wizard__nav"
|
|
6985
|
-
},
|
|
7668
|
+
}, Gd = /* @__PURE__ */ f({
|
|
6986
7669
|
__name: "UidWizardLayout",
|
|
6987
7670
|
setup(e) {
|
|
6988
|
-
return (e, t) => (x(), c("div",
|
|
6989
|
-
e.$slots.header ? (x(), c("div",
|
|
6990
|
-
e.$slots.stepper ? (x(), c("div",
|
|
6991
|
-
l("main",
|
|
6992
|
-
e.$slots.nav ? (x(), c("div",
|
|
7671
|
+
return (e, t) => (x(), c("div", Bd, [
|
|
7672
|
+
e.$slots.header ? (x(), c("div", Vd, [E(e.$slots, "header")])) : s("", !0),
|
|
7673
|
+
e.$slots.stepper ? (x(), c("div", Hd, [E(e.$slots, "stepper")])) : s("", !0),
|
|
7674
|
+
l("main", Ud, [E(e.$slots, "default")]),
|
|
7675
|
+
e.$slots.nav ? (x(), c("div", Wd, [E(e.$slots, "nav")])) : s("", !0)
|
|
6993
7676
|
]));
|
|
6994
7677
|
}
|
|
6995
|
-
}),
|
|
7678
|
+
}), Kd = /* @__PURE__ */ f({
|
|
6996
7679
|
__name: "UidLocaleProvider",
|
|
6997
7680
|
props: { locale: {} },
|
|
6998
7681
|
setup(e) {
|
|
6999
7682
|
let t = e;
|
|
7000
7683
|
return Ht(a(() => t.locale)), (e, t) => E(e.$slots, "default");
|
|
7001
7684
|
}
|
|
7002
|
-
}),
|
|
7685
|
+
}), qd = {
|
|
7003
7686
|
common: {
|
|
7004
7687
|
clear: "Clear",
|
|
7005
7688
|
close: "Close",
|
|
@@ -7098,19 +7781,19 @@ var Hu = { class: "uid-layout-sidebar__sidebar" }, Uu = { class: "uid-layout-sid
|
|
|
7098
7781
|
page: (e) => `Page ${e}`,
|
|
7099
7782
|
pageSize: (e) => `${e} per page`
|
|
7100
7783
|
}
|
|
7101
|
-
},
|
|
7102
|
-
function
|
|
7784
|
+
}, Jd = w("light");
|
|
7785
|
+
function Yd() {
|
|
7103
7786
|
let e = null;
|
|
7104
7787
|
function t(e) {
|
|
7105
|
-
|
|
7788
|
+
Jd.value = e, document.documentElement.dataset.theme = e;
|
|
7106
7789
|
}
|
|
7107
7790
|
function n() {
|
|
7108
|
-
t(
|
|
7791
|
+
t(Jd.value === "light" ? "dark" : "light");
|
|
7109
7792
|
}
|
|
7110
7793
|
function r() {
|
|
7111
7794
|
let e = document.documentElement.dataset.theme;
|
|
7112
7795
|
if (e === "light" || e === "dark") {
|
|
7113
|
-
|
|
7796
|
+
Jd.value = e;
|
|
7114
7797
|
return;
|
|
7115
7798
|
}
|
|
7116
7799
|
let n = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
@@ -7122,7 +7805,7 @@ function cd() {
|
|
|
7122
7805
|
e.addEventListener("change", n), b(() => e?.removeEventListener("change", n));
|
|
7123
7806
|
}
|
|
7124
7807
|
return {
|
|
7125
|
-
theme:
|
|
7808
|
+
theme: Jd,
|
|
7126
7809
|
setTheme: t,
|
|
7127
7810
|
toggle: n,
|
|
7128
7811
|
initFromSystem: r,
|
|
@@ -7131,27 +7814,27 @@ function cd() {
|
|
|
7131
7814
|
}
|
|
7132
7815
|
//#endregion
|
|
7133
7816
|
//#region src/composables/useWizard.ts
|
|
7134
|
-
function
|
|
7135
|
-
let e = p(
|
|
7817
|
+
function Xd() {
|
|
7818
|
+
let e = p(Su);
|
|
7136
7819
|
if (!e) throw Error("useWizard() must be used inside UidWizard");
|
|
7137
7820
|
return e;
|
|
7138
7821
|
}
|
|
7139
7822
|
//#endregion
|
|
7140
7823
|
//#region src/composables/useCommandPalette.ts
|
|
7141
|
-
var
|
|
7142
|
-
function
|
|
7824
|
+
var Zd = w(!1);
|
|
7825
|
+
function Qd() {
|
|
7143
7826
|
return {
|
|
7144
|
-
open:
|
|
7827
|
+
open: Zd,
|
|
7145
7828
|
show: () => {
|
|
7146
|
-
|
|
7829
|
+
Zd.value = !0;
|
|
7147
7830
|
},
|
|
7148
7831
|
hide: () => {
|
|
7149
|
-
|
|
7832
|
+
Zd.value = !1;
|
|
7150
7833
|
},
|
|
7151
7834
|
toggle: () => {
|
|
7152
|
-
|
|
7835
|
+
Zd.value = !Zd.value;
|
|
7153
7836
|
}
|
|
7154
7837
|
};
|
|
7155
7838
|
}
|
|
7156
7839
|
//#endregion
|
|
7157
|
-
export { Xr as UidAccordion, ni as UidAccordionItem,
|
|
7840
|
+
export { Xr as UidAccordion, ni as UidAccordionItem, Fs as UidAffix, Jt as UidAlert, Ws as UidAnchor, zd as UidAuthLayout, Br as UidAvatar, Ur as UidAvatarGroup, Ns as UidBackTop, Rt as UidBadge, ar as UidBreadcrumb, lr as UidBreadcrumbItem, Se as UidButton, Tl as UidCalendar, Lr as UidCard, Dc as UidCarousel, dl as UidCascader, ut as UidCheckbox, es as UidCode, Xi as UidColorPicker, lo as UidCombobox, oa as UidCommand, xu as UidContainer, Ni as UidDatePicker, Ua as UidDateRangePicker, Ts as UidDescriptionItem, xs as UidDescriptionList, qr as UidDivider, kn as UidDrawer, md as UidEmptyState, Sd as UidErrorState, Ko as UidFileUpload, Lu as UidFooter, Nt as UidFormField, nu as UidGauge, bu as UidGrid, Mu as UidHeader, uu as UidHeatmap, e as UidIcon, Er as UidInfiniteScroll, et as UidInput, Ot as UidLabel, ur as UidLink, Cr as UidLoadMore, Kd as UidLocaleProvider, ac as UidMention, Hn as UidMenu, Wn as UidMenuItem, Yn as UidMenuSeparator, Sn as UidModal, xc as UidNotificationBadge, ma as UidNumberInput, sd as UidPageHeader, jr as UidPageSize, gr as UidPagination, br as UidPaginationCursor, Rn as UidPopover, dn as UidProgress, Vl as UidProgressRing, mt as UidRadio, bt as UidRadioGroup, os as UidRating, js as UidResult, Ci as UidSelect, Vu as UidSidebar, Qu as UidSidebarDivider, Ju as UidSidebarGroup, Gu as UidSidebarItem, Pd as UidSidebarLayout, Ed as UidSimpleLayout, Lt as UidSkeleton, zi as UidSlider, Fl as UidSparkline, Ft as UidSpinner, ls as UidSplitter, yu as UidStack, vs as UidStat, vu as UidStepper, Tt as UidSwitch, tr as UidTab, rr as UidTabPanel, fi as UidTable, $n as UidTabs, Gr as UidTag, Ya as UidTagsInput, at as UidTextarea, Ca as UidTimePicker, So as UidTimeline, Ao as UidTimelineItem, en as UidToast, an as UidToastProvider, Fn as UidTooltip, Qs as UidTour, $c as UidTransfer, bo as UidTreeItem, vc as UidTreeSelect, xo as UidTreeView, Pi as UidVirtualList, Rs as UidWatermark, wu as UidWizard, Gd as UidWizardLayout, Eu as UidWizardStep, Ae as email, qd as en, Z as getMessage, ze as inList, Ne as integer, Fe as max, Le as maxValue, Pe as min, Ie as minValue, ke as nullable, Me as numeric, We as parseRules, Ht as provideLocale, Re as regex, Oe as required, Ve as requiredIf, He as requiredUnless, zt as ru, Ge as runRules, Be as sameAs, Te as setMessages, je as url, Qd as useCommandPalette, Ke as useField, pn as useFocusTrap, $ as useLocale, Mn as usePopover, hn as useScrollLock, Od as useSidebar, Yd as useTheme, rn as useToast, Xd as useWizard };
|