@dskripchenko/ui 0.3.0 → 0.4.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/Affix/UidAffix.vue.d.ts +33 -0
- package/dist/components/Affix/index.d.ts +2 -0
- package/dist/components/Anchor/UidAnchor.vue.d.ts +30 -0
- package/dist/components/Anchor/index.d.ts +2 -0
- package/dist/components/BackTop/UidBackTop.vue.d.ts +34 -0
- package/dist/components/BackTop/index.d.ts +2 -0
- package/dist/components/Mention/UidMention.vue.d.ts +34 -0
- package/dist/components/Mention/index.d.ts +2 -0
- package/dist/components/Tour/UidTour.vue.d.ts +44 -0
- package/dist/components/Tour/index.d.ts +2 -0
- package/dist/components/TreeSelect/UidTreeSelect.vue.d.ts +42 -0
- package/dist/components/TreeSelect/index.d.ts +2 -0
- package/dist/components/Watermark/UidWatermark.vue.d.ts +34 -0
- package/dist/components/Watermark/index.d.ts +2 -0
- package/dist/index.cjs +2 -2
- package/dist/index.d.ts +14 -0
- package/dist/index.mjs +1387 -701
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import { t as e } from "./UidIcon-5947kXOj.js";
|
|
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,
|
|
3
|
-
import { AlertCircle as
|
|
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, withModifiers as V } from "vue";
|
|
3
|
+
import { AlertCircle as H, AlertTriangle as U, ArrowDown as W, ArrowLeft as G, ArrowUp as K, ArrowUpDown as ee, Calendar as te, Check as q, CheckCircle2 as J, ChevronDown as Y, ChevronLeft as X, ChevronRight as ne, Clock as re, Copy as ie, FileText as ae, FolderOpen as oe, Info as se, Minus as ce, Plus as le, Search as ue, ServerCrash as de, Star as fe, Upload as pe, WifiOff as me, X as Z, XCircle as he } from "lucide-vue-next";
|
|
4
4
|
//#region src/components/Button/UidButton.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
-
var
|
|
5
|
+
var ge = [
|
|
6
6
|
"type",
|
|
7
7
|
"disabled",
|
|
8
8
|
"aria-disabled",
|
|
9
9
|
"data-loading"
|
|
10
|
-
],
|
|
10
|
+
], _e = {
|
|
11
11
|
key: 0,
|
|
12
12
|
class: "uid-button__prepend"
|
|
13
|
-
},
|
|
13
|
+
}, ve = {
|
|
14
14
|
key: 1,
|
|
15
15
|
class: "uid-button__append"
|
|
16
|
-
},
|
|
16
|
+
}, ye = /* @__PURE__ */ f({
|
|
17
17
|
__name: "UidButton",
|
|
18
18
|
props: {
|
|
19
19
|
variant: { default: "primary" },
|
|
@@ -42,12 +42,12 @@ var he = [
|
|
|
42
42
|
"data-loading": e.loading ? "true" : void 0,
|
|
43
43
|
onClick: i
|
|
44
44
|
}, [
|
|
45
|
-
t.$slots.prepend ? (x(), c("span",
|
|
45
|
+
t.$slots.prepend ? (x(), c("span", _e, [E(t.$slots, "prepend")])) : s("", !0),
|
|
46
46
|
E(t.$slots, "default"),
|
|
47
|
-
t.$slots.append ? (x(), c("span",
|
|
48
|
-
], 10,
|
|
47
|
+
t.$slots.append ? (x(), c("span", ve, [E(t.$slots, "append")])) : s("", !0)
|
|
48
|
+
], 10, ge));
|
|
49
49
|
}
|
|
50
|
-
}),
|
|
50
|
+
}), be = {
|
|
51
51
|
required: ({ label: e }) => `Поле «${e ?? "значение"}» обязательно`,
|
|
52
52
|
email: () => "Введите корректный email",
|
|
53
53
|
url: () => "Введите корректный URL",
|
|
@@ -62,59 +62,59 @@ var he = [
|
|
|
62
62
|
same_as: () => "Значения не совпадают",
|
|
63
63
|
required_if: ({ label: e }) => `Поле «${e ?? "значение"}» обязательно`,
|
|
64
64
|
required_unless: ({ label: e }) => `Поле «${e ?? "значение"}» обязательно`
|
|
65
|
-
},
|
|
66
|
-
function
|
|
67
|
-
|
|
68
|
-
...
|
|
65
|
+
}, xe = {};
|
|
66
|
+
function Se(e) {
|
|
67
|
+
xe = {
|
|
68
|
+
...xe,
|
|
69
69
|
...e
|
|
70
70
|
};
|
|
71
71
|
}
|
|
72
72
|
function Q(e, t) {
|
|
73
|
-
let n =
|
|
74
|
-
return n ? typeof n == "function" ? n(t) : n :
|
|
73
|
+
let n = xe[e];
|
|
74
|
+
return n ? typeof n == "function" ? n(t) : n : be[e]?.(t) ?? `Ошибка валидации: ${e}`;
|
|
75
75
|
}
|
|
76
76
|
//#endregion
|
|
77
77
|
//#region src/utils/validation/rules.ts
|
|
78
|
-
var
|
|
78
|
+
var Ce = "__uid_nullable__";
|
|
79
79
|
function $(e) {
|
|
80
80
|
return e == null || String(e).trim() === "";
|
|
81
81
|
}
|
|
82
|
-
function
|
|
82
|
+
function we(e, t) {
|
|
83
83
|
return t ? {
|
|
84
84
|
...e,
|
|
85
85
|
params: t
|
|
86
86
|
} : e;
|
|
87
87
|
}
|
|
88
|
-
var
|
|
88
|
+
var Te = (e) => (t, n) => !$(t) || (e ?? Q("required", n)), Ee = () => (e) => $(e) ? Ce : !0, De = (e) => (t, n) => $(t) || /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(String(t)) || (e ?? Q("email", n)), Oe = (e) => (t, n) => {
|
|
89
89
|
if ($(t)) return !0;
|
|
90
90
|
try {
|
|
91
91
|
return new URL(String(t)), !0;
|
|
92
92
|
} catch {
|
|
93
93
|
return e ?? Q("url", n);
|
|
94
94
|
}
|
|
95
|
-
},
|
|
96
|
-
required: () =>
|
|
97
|
-
nullable: () =>
|
|
98
|
-
email: () =>
|
|
99
|
-
url: () =>
|
|
100
|
-
numeric: () =>
|
|
101
|
-
integer: () =>
|
|
102
|
-
min: ([e]) =>
|
|
103
|
-
max: ([e]) =>
|
|
104
|
-
min_value: ([e]) =>
|
|
105
|
-
max_value: ([e]) =>
|
|
106
|
-
regex: ([e]) =>
|
|
107
|
-
in: (e) =>
|
|
108
|
-
same_as: ([e]) =>
|
|
95
|
+
}, ke = (e) => (t, n) => $(t) || !isNaN(Number(t)) || (e ?? Q("numeric", n)), Ae = (e) => (t, n) => $(t) || Number.isInteger(Number(t)) || (e ?? Q("integer", n)), je = (e, t) => (n, r) => $(n) || String(n).length >= e || (t ?? Q("min", we(r, [String(e)]))), Me = (e, t) => (n, r) => $(n) || String(n).length <= e || (t ?? Q("max", we(r, [String(e)]))), Ne = (e, t) => (n, r) => $(n) || Number(n) >= e || (t ?? Q("min_value", we(r, [String(e)]))), Pe = (e, t) => (n, r) => $(n) || Number(n) <= e || (t ?? Q("max_value", we(r, [String(e)]))), Fe = (e, t) => (n, r) => $(n) ? !0 : (typeof e == "string" ? new RegExp(e) : e).test(String(n)) || (t ?? Q("regex", r)), Ie = (e, t) => (n, r) => $(n) || e.includes(String(n)) || (t ?? Q("in", r)), Le = (e, t) => (n, r) => r.form ? n === r.form[e] || (t ?? Q("same_as", r)) : !0, Re = (e, t, n) => (r, i) => !i.form || i.form[e] !== t ? !0 : !$(r) || (n ?? Q("required_if", i)), ze = (e, t, n) => (r, i) => !i.form || i.form[e] === t ? !0 : !$(r) || (n ?? Q("required_unless", i)), Be = {
|
|
96
|
+
required: () => Te(),
|
|
97
|
+
nullable: () => Ee(),
|
|
98
|
+
email: () => De(),
|
|
99
|
+
url: () => Oe(),
|
|
100
|
+
numeric: () => ke(),
|
|
101
|
+
integer: () => Ae(),
|
|
102
|
+
min: ([e]) => je(Number(e)),
|
|
103
|
+
max: ([e]) => Me(Number(e)),
|
|
104
|
+
min_value: ([e]) => Ne(Number(e)),
|
|
105
|
+
max_value: ([e]) => Pe(Number(e)),
|
|
106
|
+
regex: ([e]) => Fe(e),
|
|
107
|
+
in: (e) => Ie(e),
|
|
108
|
+
same_as: ([e]) => Le(e)
|
|
109
109
|
};
|
|
110
|
-
function
|
|
110
|
+
function Ve(e) {
|
|
111
111
|
return e ? (Array.isArray(e) ? e : [e]).flatMap((e) => typeof e == "function" ? [e] : e.split("|").map((e) => {
|
|
112
|
-
let t = e.indexOf(":"), n = t === -1 ? e.trim() : e.slice(0, t).trim(), r = t === -1 ? "" : e.slice(t + 1), i = r ? r.split(",") : [], a =
|
|
112
|
+
let t = e.indexOf(":"), n = t === -1 ? e.trim() : e.slice(0, t).trim(), r = t === -1 ? "" : e.slice(t + 1), i = r ? r.split(",") : [], a = Be[n];
|
|
113
113
|
if (!a) throw Error(`Unknown validation rule: "${n}"`);
|
|
114
114
|
return a(i);
|
|
115
115
|
})) : [];
|
|
116
116
|
}
|
|
117
|
-
function
|
|
117
|
+
function He(e, t, n) {
|
|
118
118
|
for (let r of t) {
|
|
119
119
|
let t = r(e, n);
|
|
120
120
|
if (t === "__uid_nullable__") return "";
|
|
@@ -124,15 +124,15 @@ function Ve(e, t, n) {
|
|
|
124
124
|
}
|
|
125
125
|
//#endregion
|
|
126
126
|
//#region src/composables/useField.ts
|
|
127
|
-
function
|
|
127
|
+
function Ue(e, t, n) {
|
|
128
128
|
let r = w(""), i = w(!1);
|
|
129
129
|
function a() {
|
|
130
|
-
let i =
|
|
130
|
+
let i = Ve(t && "value" in t ? t.value : t), a = {
|
|
131
131
|
field: n?.name ?? "",
|
|
132
132
|
label: n?.label,
|
|
133
133
|
form: n?.form?.value
|
|
134
134
|
};
|
|
135
|
-
return r.value =
|
|
135
|
+
return r.value = He(e.value, i, a), !r.value;
|
|
136
136
|
}
|
|
137
137
|
function o() {
|
|
138
138
|
i.value = !0, a();
|
|
@@ -140,7 +140,7 @@ function He(e, t, n) {
|
|
|
140
140
|
function s() {
|
|
141
141
|
r.value = "", i.value = !1;
|
|
142
142
|
}
|
|
143
|
-
return
|
|
143
|
+
return R(e, () => {
|
|
144
144
|
i.value && a();
|
|
145
145
|
}), {
|
|
146
146
|
error: r,
|
|
@@ -152,14 +152,14 @@ function He(e, t, n) {
|
|
|
152
152
|
}
|
|
153
153
|
//#endregion
|
|
154
154
|
//#region src/components/Input/UidInput.vue?vue&type=script&setup=true&lang.ts
|
|
155
|
-
var
|
|
155
|
+
var We = ["for"], Ge = {
|
|
156
156
|
key: 0,
|
|
157
157
|
class: "uid-input-field__required",
|
|
158
158
|
"aria-hidden": "true"
|
|
159
|
-
},
|
|
159
|
+
}, Ke = { class: "uid-input-field__control" }, qe = {
|
|
160
160
|
key: 0,
|
|
161
161
|
class: "uid-input-field__prepend"
|
|
162
|
-
},
|
|
162
|
+
}, Je = [
|
|
163
163
|
"id",
|
|
164
164
|
"type",
|
|
165
165
|
"name",
|
|
@@ -170,10 +170,10 @@ var Ue = ["for"], We = {
|
|
|
170
170
|
"autocomplete",
|
|
171
171
|
"aria-invalid",
|
|
172
172
|
"aria-describedby"
|
|
173
|
-
],
|
|
173
|
+
], Ye = {
|
|
174
174
|
key: 1,
|
|
175
175
|
class: "uid-input-field__append"
|
|
176
|
-
},
|
|
176
|
+
}, Xe = ["id"], Ze = /* @__PURE__ */ f({
|
|
177
177
|
__name: "UidInput",
|
|
178
178
|
props: /* @__PURE__ */ m({
|
|
179
179
|
type: { default: "text" },
|
|
@@ -204,7 +204,7 @@ var Ue = ["for"], We = {
|
|
|
204
204
|
}),
|
|
205
205
|
emits: /* @__PURE__ */ m(["blur", "focus"], ["update:modelValue"]),
|
|
206
206
|
setup(e, { expose: t, emit: n }) {
|
|
207
|
-
let r = e, i = n, o = N(e, "modelValue"), d = r.id ?? M(), { error: f, validate: p, onBlur: m } =
|
|
207
|
+
let r = e, i = n, o = N(e, "modelValue"), d = r.id ?? M(), { error: f, validate: p, onBlur: m } = Ue(o, a(() => r.rules), {
|
|
208
208
|
name: r.name,
|
|
209
209
|
label: r.label
|
|
210
210
|
}), h = a(() => r.error || f.value), g = a(() => !!h.value), v = a(() => h.value || r.hint);
|
|
@@ -221,10 +221,10 @@ var Ue = ["for"], We = {
|
|
|
221
221
|
key: 0,
|
|
222
222
|
for: j(d),
|
|
223
223
|
class: "uid-input-field__label"
|
|
224
|
-
}, [u(k(e.label) + " ", 1), e.required ? (x(), c("span",
|
|
225
|
-
l("div",
|
|
226
|
-
t.$slots.prepend ? (x(), c("span",
|
|
227
|
-
|
|
224
|
+
}, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", Ge, "*")) : s("", !0)], 8, We)) : s("", !0),
|
|
225
|
+
l("div", Ke, [
|
|
226
|
+
t.$slots.prepend ? (x(), c("span", qe, [E(t.$slots, "prepend")])) : s("", !0),
|
|
227
|
+
B(l("input", {
|
|
228
228
|
id: j(d),
|
|
229
229
|
"onUpdate:modelValue": n[0] ||= (e) => o.value = e,
|
|
230
230
|
class: "uid-input-field__input",
|
|
@@ -239,21 +239,21 @@ var Ue = ["for"], We = {
|
|
|
239
239
|
"aria-describedby": v.value ? `${j(d)}-hint` : void 0,
|
|
240
240
|
onBlur: y,
|
|
241
241
|
onFocus: n[1] ||= (e) => i("focus", e)
|
|
242
|
-
}, null, 40,
|
|
243
|
-
t.$slots.append ? (x(), c("span",
|
|
242
|
+
}, null, 40, Je), [[F, o.value]]),
|
|
243
|
+
t.$slots.append ? (x(), c("span", Ye, [E(t.$slots, "append")])) : s("", !0)
|
|
244
244
|
]),
|
|
245
245
|
v.value ? (x(), c("p", {
|
|
246
246
|
key: 1,
|
|
247
247
|
id: `${j(d)}-hint`,
|
|
248
248
|
class: _(["uid-input-field__hint", g.value && "uid-input-field__hint--error"])
|
|
249
|
-
}, k(v.value), 11,
|
|
249
|
+
}, k(v.value), 11, Xe)) : s("", !0)
|
|
250
250
|
], 2));
|
|
251
251
|
}
|
|
252
|
-
}),
|
|
252
|
+
}), Qe = ["for"], $e = {
|
|
253
253
|
key: 0,
|
|
254
254
|
class: "uid-textarea-field__required",
|
|
255
255
|
"aria-hidden": "true"
|
|
256
|
-
},
|
|
256
|
+
}, et = [
|
|
257
257
|
"id",
|
|
258
258
|
"name",
|
|
259
259
|
"placeholder",
|
|
@@ -263,7 +263,7 @@ var Ue = ["for"], We = {
|
|
|
263
263
|
"rows",
|
|
264
264
|
"aria-invalid",
|
|
265
265
|
"aria-describedby"
|
|
266
|
-
],
|
|
266
|
+
], tt = ["id"], nt = /* @__PURE__ */ f({
|
|
267
267
|
__name: "UidTextarea",
|
|
268
268
|
props: /* @__PURE__ */ m({
|
|
269
269
|
placeholder: { default: void 0 },
|
|
@@ -306,7 +306,7 @@ var Ue = ["for"], We = {
|
|
|
306
306
|
}),
|
|
307
307
|
emits: /* @__PURE__ */ m(["blur", "focus"], ["update:modelValue"]),
|
|
308
308
|
setup(e, { expose: t, emit: n }) {
|
|
309
|
-
let r = e, i = n, o = N(e, "modelValue"), d = w(null), f = M(), p = r.id ?? f, { error: m, validate: h, onBlur: b } =
|
|
309
|
+
let r = e, i = n, o = N(e, "modelValue"), d = w(null), f = M(), p = r.id ?? f, { error: m, validate: h, onBlur: b } = Ue(o, a(() => r.rules), {
|
|
310
310
|
name: r.name,
|
|
311
311
|
label: r.label
|
|
312
312
|
}), S = a(() => r.error || m.value), C = a(() => !!S.value), T = a(() => S.value || r.hint);
|
|
@@ -324,7 +324,7 @@ var Ue = ["for"], We = {
|
|
|
324
324
|
}
|
|
325
325
|
y(() => {
|
|
326
326
|
r.autoGrow && E();
|
|
327
|
-
}),
|
|
327
|
+
}), R(o, async () => {
|
|
328
328
|
r.autoGrow && (await g(), E());
|
|
329
329
|
});
|
|
330
330
|
function D(e) {
|
|
@@ -340,8 +340,8 @@ var Ue = ["for"], We = {
|
|
|
340
340
|
key: 0,
|
|
341
341
|
for: j(p),
|
|
342
342
|
class: "uid-textarea-field__label"
|
|
343
|
-
}, [u(k(e.label) + " ", 1), e.required ? (x(), c("span",
|
|
344
|
-
|
|
343
|
+
}, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", $e, "*")) : s("", !0)], 8, Qe)) : s("", !0),
|
|
344
|
+
B(l("textarea", {
|
|
345
345
|
id: j(p),
|
|
346
346
|
ref_key: "textareaRef",
|
|
347
347
|
ref: d,
|
|
@@ -361,15 +361,15 @@ var Ue = ["for"], We = {
|
|
|
361
361
|
} : { resize: e.resize }),
|
|
362
362
|
onBlur: D,
|
|
363
363
|
onFocus: n[1] ||= (e) => i("focus", e)
|
|
364
|
-
}, null, 44,
|
|
364
|
+
}, null, 44, et), [[I, o.value]]),
|
|
365
365
|
T.value ? (x(), c("p", {
|
|
366
366
|
key: 1,
|
|
367
367
|
id: `${j(p)}-hint`,
|
|
368
368
|
class: _(["uid-textarea-field__hint", C.value && "uid-textarea-field__hint--error"])
|
|
369
|
-
}, k(T.value), 11,
|
|
369
|
+
}, k(T.value), 11, tt)) : s("", !0)
|
|
370
370
|
], 2));
|
|
371
371
|
}
|
|
372
|
-
}),
|
|
372
|
+
}), rt = { class: "uid-checkbox__label" }, it = [
|
|
373
373
|
"id",
|
|
374
374
|
"name",
|
|
375
375
|
"checked",
|
|
@@ -377,14 +377,14 @@ var Ue = ["for"], We = {
|
|
|
377
377
|
"required",
|
|
378
378
|
"aria-describedby",
|
|
379
379
|
"aria-invalid"
|
|
380
|
-
],
|
|
380
|
+
], at = {
|
|
381
381
|
key: 0,
|
|
382
382
|
class: "uid-checkbox__text"
|
|
383
|
-
},
|
|
383
|
+
}, ot = {
|
|
384
384
|
key: 0,
|
|
385
385
|
class: "uid-checkbox__required",
|
|
386
386
|
"aria-hidden": "true"
|
|
387
|
-
},
|
|
387
|
+
}, st = /* @__PURE__ */ f({
|
|
388
388
|
__name: "UidCheckbox",
|
|
389
389
|
props: /* @__PURE__ */ m({
|
|
390
390
|
label: { default: void 0 },
|
|
@@ -417,12 +417,12 @@ var Ue = ["for"], We = {
|
|
|
417
417
|
function g(e) {
|
|
418
418
|
o.value && (o.value.indeterminate = e);
|
|
419
419
|
}
|
|
420
|
-
y(() => g(n.indeterminate)),
|
|
420
|
+
y(() => g(n.indeterminate)), R(() => n.indeterminate, g);
|
|
421
421
|
function v(e) {
|
|
422
422
|
let t = e.target.checked;
|
|
423
423
|
i.value = t, r("change", t);
|
|
424
424
|
}
|
|
425
|
-
return (t, n) => (x(), c("div", { class: _(["uid-checkbox", [m.value && "uid-checkbox--error", e.disabled && "uid-checkbox--disabled"]]) }, [l("label",
|
|
425
|
+
return (t, n) => (x(), c("div", { class: _(["uid-checkbox", [m.value && "uid-checkbox--error", e.disabled && "uid-checkbox--disabled"]]) }, [l("label", rt, [
|
|
426
426
|
l("input", {
|
|
427
427
|
id: j(f),
|
|
428
428
|
ref_key: "inputRef",
|
|
@@ -436,27 +436,27 @@ var Ue = ["for"], We = {
|
|
|
436
436
|
"aria-describedby": h.value ? p : void 0,
|
|
437
437
|
"aria-invalid": m.value ? "true" : void 0,
|
|
438
438
|
onChange: v
|
|
439
|
-
}, null, 40,
|
|
439
|
+
}, null, 40, it),
|
|
440
440
|
n[0] ||= l("span", {
|
|
441
441
|
class: "uid-checkbox__box",
|
|
442
442
|
"aria-hidden": "true"
|
|
443
443
|
}, null, -1),
|
|
444
|
-
e.label ? (x(), c("span",
|
|
444
|
+
e.label ? (x(), c("span", at, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", ot, "*")) : s("", !0)])) : s("", !0)
|
|
445
445
|
]), h.value ? (x(), c("p", {
|
|
446
446
|
key: 0,
|
|
447
447
|
id: p,
|
|
448
448
|
class: _(["uid-checkbox__hint", m.value && "uid-checkbox__hint--error"])
|
|
449
449
|
}, k(h.value), 3)) : s("", !0)], 2));
|
|
450
450
|
}
|
|
451
|
-
}),
|
|
451
|
+
}), ct = Symbol("uid-radio-group"), lt = [
|
|
452
452
|
"id",
|
|
453
453
|
"name",
|
|
454
454
|
"checked",
|
|
455
455
|
"disabled"
|
|
456
|
-
],
|
|
456
|
+
], ut = {
|
|
457
457
|
key: 0,
|
|
458
458
|
class: "uid-radio__text"
|
|
459
|
-
},
|
|
459
|
+
}, dt = /* @__PURE__ */ f({
|
|
460
460
|
__name: "UidRadio",
|
|
461
461
|
props: /* @__PURE__ */ m({
|
|
462
462
|
value: { type: [
|
|
@@ -483,7 +483,7 @@ var Ue = ["for"], We = {
|
|
|
483
483
|
}),
|
|
484
484
|
emits: ["update:modelValue"],
|
|
485
485
|
setup(e) {
|
|
486
|
-
let t = e, n = N(e, "modelValue"), r = p(
|
|
486
|
+
let t = e, n = N(e, "modelValue"), r = p(ct, null), i = M(), o = t.id ?? i, u = a(() => r ? r.modelValue.value === t.value : n.value === t.value), d = a(() => r?.name ?? t.name ?? ""), f = a(() => (r?.disabled.value ?? !1) || (t.disabled ?? !1));
|
|
487
487
|
function m() {
|
|
488
488
|
r ? r.update(t.value) : n.value = t.value;
|
|
489
489
|
}
|
|
@@ -496,25 +496,25 @@ var Ue = ["for"], We = {
|
|
|
496
496
|
checked: u.value,
|
|
497
497
|
disabled: f.value,
|
|
498
498
|
onChange: m
|
|
499
|
-
}, null, 40,
|
|
499
|
+
}, null, 40, lt),
|
|
500
500
|
n[0] ||= l("span", {
|
|
501
501
|
class: "uid-radio__circle",
|
|
502
502
|
"aria-hidden": "true"
|
|
503
503
|
}, null, -1),
|
|
504
|
-
e.label ? (x(), c("span",
|
|
504
|
+
e.label ? (x(), c("span", ut, k(e.label), 1)) : s("", !0)
|
|
505
505
|
], 2));
|
|
506
506
|
}
|
|
507
|
-
}),
|
|
507
|
+
}), ft = [
|
|
508
508
|
"aria-labelledby",
|
|
509
509
|
"aria-describedby",
|
|
510
510
|
"aria-required",
|
|
511
511
|
"aria-invalid",
|
|
512
512
|
"aria-disabled"
|
|
513
|
-
],
|
|
513
|
+
], pt = ["id"], mt = {
|
|
514
514
|
key: 0,
|
|
515
515
|
class: "uid-radio-group__required",
|
|
516
516
|
"aria-hidden": "true"
|
|
517
|
-
},
|
|
517
|
+
}, ht = { class: "uid-radio-group__options" }, gt = ["id"], _t = /* @__PURE__ */ f({
|
|
518
518
|
__name: "UidRadioGroup",
|
|
519
519
|
props: /* @__PURE__ */ m({
|
|
520
520
|
name: { default: void 0 },
|
|
@@ -542,7 +542,7 @@ var Ue = ["for"], We = {
|
|
|
542
542
|
emits: ["update:modelValue"],
|
|
543
543
|
setup(e) {
|
|
544
544
|
let t = e, n = N(e, "modelValue"), r = M(), i = t.name ?? r, o = M(), d = M(), f = a(() => !!t.error), p = a(() => t.error || t.hint);
|
|
545
|
-
return S(
|
|
545
|
+
return S(ct, {
|
|
546
546
|
modelValue: n,
|
|
547
547
|
update: (e) => {
|
|
548
548
|
n.value = e;
|
|
@@ -566,16 +566,16 @@ var Ue = ["for"], We = {
|
|
|
566
566
|
key: 0,
|
|
567
567
|
id: j(o),
|
|
568
568
|
class: "uid-radio-group__legend"
|
|
569
|
-
}, [u(k(e.label) + " ", 1), e.required ? (x(), c("span",
|
|
570
|
-
l("div",
|
|
569
|
+
}, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", mt, "*")) : s("", !0)], 8, pt)) : s("", !0),
|
|
570
|
+
l("div", ht, [E(t.$slots, "default")]),
|
|
571
571
|
p.value ? (x(), c("p", {
|
|
572
572
|
key: 1,
|
|
573
573
|
id: j(d),
|
|
574
574
|
class: _(["uid-radio-group__hint", f.value && "uid-radio-group__hint--error"])
|
|
575
|
-
}, k(p.value), 11,
|
|
576
|
-
], 10,
|
|
575
|
+
}, k(p.value), 11, gt)) : s("", !0)
|
|
576
|
+
], 10, ft));
|
|
577
577
|
}
|
|
578
|
-
}),
|
|
578
|
+
}), vt = { class: "uid-switch__label" }, yt = [
|
|
579
579
|
"id",
|
|
580
580
|
"name",
|
|
581
581
|
"checked",
|
|
@@ -583,14 +583,14 @@ var Ue = ["for"], We = {
|
|
|
583
583
|
"required",
|
|
584
584
|
"aria-describedby",
|
|
585
585
|
"aria-invalid"
|
|
586
|
-
],
|
|
586
|
+
], bt = {
|
|
587
587
|
key: 0,
|
|
588
588
|
class: "uid-switch__text"
|
|
589
|
-
},
|
|
589
|
+
}, xt = {
|
|
590
590
|
key: 0,
|
|
591
591
|
class: "uid-switch__required",
|
|
592
592
|
"aria-hidden": "true"
|
|
593
|
-
},
|
|
593
|
+
}, St = /* @__PURE__ */ f({
|
|
594
594
|
__name: "UidSwitch",
|
|
595
595
|
props: /* @__PURE__ */ m({
|
|
596
596
|
label: { default: void 0 },
|
|
@@ -625,7 +625,7 @@ var Ue = ["for"], We = {
|
|
|
625
625
|
`uid-switch--${e.size}`,
|
|
626
626
|
p.value && "uid-switch--error",
|
|
627
627
|
e.disabled && "uid-switch--disabled"
|
|
628
|
-
]]) }, [l("label",
|
|
628
|
+
]]) }, [l("label", vt, [
|
|
629
629
|
l("input", {
|
|
630
630
|
id: j(d),
|
|
631
631
|
type: "checkbox",
|
|
@@ -638,23 +638,23 @@ var Ue = ["for"], We = {
|
|
|
638
638
|
"aria-describedby": m.value ? f : void 0,
|
|
639
639
|
"aria-invalid": p.value ? "true" : void 0,
|
|
640
640
|
onChange: h
|
|
641
|
-
}, null, 40,
|
|
641
|
+
}, null, 40, yt),
|
|
642
642
|
n[0] ||= l("span", {
|
|
643
643
|
class: "uid-switch__track",
|
|
644
644
|
"aria-hidden": "true"
|
|
645
645
|
}, [l("span", { class: "uid-switch__thumb" })], -1),
|
|
646
|
-
e.label ? (x(), c("span",
|
|
646
|
+
e.label ? (x(), c("span", bt, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", xt, "*")) : s("", !0)])) : s("", !0)
|
|
647
647
|
]), m.value ? (x(), c("p", {
|
|
648
648
|
key: 0,
|
|
649
649
|
id: f,
|
|
650
650
|
class: _(["uid-switch__hint", p.value && "uid-switch__hint--error"])
|
|
651
651
|
}, k(m.value), 3)) : s("", !0)], 2));
|
|
652
652
|
}
|
|
653
|
-
}),
|
|
653
|
+
}), Ct = ["for"], wt = {
|
|
654
654
|
key: 0,
|
|
655
655
|
class: "uid-label__required",
|
|
656
656
|
"aria-hidden": "true"
|
|
657
|
-
},
|
|
657
|
+
}, Tt = /* @__PURE__ */ f({
|
|
658
658
|
__name: "UidLabel",
|
|
659
659
|
props: {
|
|
660
660
|
for: { default: void 0 },
|
|
@@ -671,13 +671,13 @@ var Ue = ["for"], We = {
|
|
|
671
671
|
return (t, n) => (x(), c("label", {
|
|
672
672
|
class: _(["uid-label", e.disabled && "uid-label--disabled"]),
|
|
673
673
|
for: t.$props.for
|
|
674
|
-
}, [E(t.$slots, "default"), e.required ? (x(), c("span",
|
|
674
|
+
}, [E(t.$slots, "default"), e.required ? (x(), c("span", wt, "*")) : s("", !0)], 10, Ct));
|
|
675
675
|
}
|
|
676
|
-
}),
|
|
676
|
+
}), Et = ["for"], Dt = {
|
|
677
677
|
key: 0,
|
|
678
678
|
class: "uid-form-field__required",
|
|
679
679
|
"aria-hidden": "true"
|
|
680
|
-
},
|
|
680
|
+
}, Ot = { class: "uid-form-field__content" }, kt = ["id"], At = /* @__PURE__ */ f({
|
|
681
681
|
__name: "UidFormField",
|
|
682
682
|
props: {
|
|
683
683
|
label: { default: void 0 },
|
|
@@ -700,16 +700,16 @@ var Ue = ["for"], We = {
|
|
|
700
700
|
key: 0,
|
|
701
701
|
class: "uid-form-field__label",
|
|
702
702
|
for: e.labelFor
|
|
703
|
-
}, [E(t.$slots, "label", {}, () => [u(k(e.label), 1)]), e.required ? (x(), c("span",
|
|
704
|
-
l("div",
|
|
703
|
+
}, [E(t.$slots, "label", {}, () => [u(k(e.label), 1)]), e.required ? (x(), c("span", Dt, "*")) : s("", !0)], 8, Et)) : s("", !0),
|
|
704
|
+
l("div", Ot, [E(t.$slots, "default")]),
|
|
705
705
|
r.value ? (x(), c("p", {
|
|
706
706
|
key: 1,
|
|
707
707
|
id: j(n),
|
|
708
708
|
class: _(["uid-form-field__hint", o.value && "uid-form-field__hint--error"])
|
|
709
|
-
}, k(i.value), 11,
|
|
709
|
+
}, k(i.value), 11, kt)) : s("", !0)
|
|
710
710
|
], 2));
|
|
711
711
|
}
|
|
712
|
-
}),
|
|
712
|
+
}), jt = ["aria-label"], Mt = /* @__PURE__ */ f({
|
|
713
713
|
__name: "UidSpinner",
|
|
714
714
|
props: {
|
|
715
715
|
size: { default: "md" },
|
|
@@ -720,13 +720,13 @@ var Ue = ["for"], We = {
|
|
|
720
720
|
class: _(["uid-spinner", `uid-spinner--${e.size}`]),
|
|
721
721
|
role: "status",
|
|
722
722
|
"aria-label": e.label
|
|
723
|
-
}, null, 10,
|
|
723
|
+
}, null, 10, jt));
|
|
724
724
|
}
|
|
725
|
-
}),
|
|
725
|
+
}), Nt = {
|
|
726
726
|
key: 0,
|
|
727
727
|
class: "uid-skeleton-lines",
|
|
728
728
|
"aria-hidden": "true"
|
|
729
|
-
},
|
|
729
|
+
}, Pt = /* @__PURE__ */ f({
|
|
730
730
|
__name: "UidSkeleton",
|
|
731
731
|
props: {
|
|
732
732
|
width: { default: "100%" },
|
|
@@ -738,7 +738,7 @@ var Ue = ["for"], We = {
|
|
|
738
738
|
lines: { default: 1 }
|
|
739
739
|
},
|
|
740
740
|
setup(e) {
|
|
741
|
-
return (n, r) => e.lines > 1 ? (x(), c("div",
|
|
741
|
+
return (n, r) => e.lines > 1 ? (x(), c("div", Nt, [(x(!0), c(t, null, T(e.lines, (t) => (x(), c("span", {
|
|
742
742
|
key: t,
|
|
743
743
|
class: _(["uid-skeleton", [e.rounded === !0 && "uid-skeleton--rounded", e.rounded === "full" && "uid-skeleton--full"]]),
|
|
744
744
|
style: v({
|
|
@@ -755,7 +755,7 @@ var Ue = ["for"], We = {
|
|
|
755
755
|
"aria-hidden": "true"
|
|
756
756
|
}, null, 6));
|
|
757
757
|
}
|
|
758
|
-
}),
|
|
758
|
+
}), Ft = /* @__PURE__ */ f({
|
|
759
759
|
__name: "UidBadge",
|
|
760
760
|
props: {
|
|
761
761
|
variant: { default: "default" },
|
|
@@ -772,10 +772,10 @@ var Ue = ["for"], We = {
|
|
|
772
772
|
e.dot && "uid-badge--dot"
|
|
773
773
|
]]) }, [e.dot ? s("", !0) : E(t.$slots, "default", { key: 0 })], 2));
|
|
774
774
|
}
|
|
775
|
-
}),
|
|
775
|
+
}), It = { class: "uid-alert__icon" }, Lt = { class: "uid-alert__content" }, Rt = {
|
|
776
776
|
key: 0,
|
|
777
777
|
class: "uid-alert__title"
|
|
778
|
-
},
|
|
778
|
+
}, zt = { class: "uid-alert__body" }, Bt = /* @__PURE__ */ f({
|
|
779
779
|
__name: "UidAlert",
|
|
780
780
|
props: {
|
|
781
781
|
variant: { default: "info" },
|
|
@@ -789,20 +789,20 @@ var Ue = ["for"], We = {
|
|
|
789
789
|
emits: ["dismiss"],
|
|
790
790
|
setup(t, { emit: n }) {
|
|
791
791
|
let r = t, i = n, o = {
|
|
792
|
-
info:
|
|
792
|
+
info: se,
|
|
793
793
|
success: J,
|
|
794
|
-
warning:
|
|
795
|
-
danger:
|
|
794
|
+
warning: U,
|
|
795
|
+
danger: H
|
|
796
796
|
}, u = a(() => o[r.variant ?? "info"]);
|
|
797
797
|
return (n, r) => (x(), c("div", {
|
|
798
798
|
class: _(["uid-alert", `uid-alert--${t.variant}`]),
|
|
799
799
|
role: "alert"
|
|
800
800
|
}, [
|
|
801
|
-
l("span",
|
|
801
|
+
l("span", It, [E(n.$slots, "icon", {}, () => [d(e, {
|
|
802
802
|
icon: t.icon ?? u.value,
|
|
803
803
|
size: 18
|
|
804
804
|
}, null, 8, ["icon"])])]),
|
|
805
|
-
l("div",
|
|
805
|
+
l("div", Lt, [t.title ? (x(), c("p", Rt, k(t.title), 1)) : s("", !0), l("div", zt, [E(n.$slots, "default")])]),
|
|
806
806
|
t.dismissible ? (x(), c("button", {
|
|
807
807
|
key: 0,
|
|
808
808
|
type: "button",
|
|
@@ -815,10 +815,10 @@ var Ue = ["for"], We = {
|
|
|
815
815
|
}, null, 8, ["icon"])])) : s("", !0)
|
|
816
816
|
], 2));
|
|
817
817
|
}
|
|
818
|
-
}),
|
|
818
|
+
}), Vt = { class: "uid-toast__icon" }, Ht = { class: "uid-toast__content" }, Ut = {
|
|
819
819
|
key: 0,
|
|
820
820
|
class: "uid-toast__title"
|
|
821
|
-
},
|
|
821
|
+
}, Wt = { class: "uid-toast__message" }, Gt = /* @__PURE__ */ f({
|
|
822
822
|
__name: "UidToast",
|
|
823
823
|
props: {
|
|
824
824
|
id: {},
|
|
@@ -829,10 +829,10 @@ var Ue = ["for"], We = {
|
|
|
829
829
|
emits: ["dismiss"],
|
|
830
830
|
setup(t, { emit: n }) {
|
|
831
831
|
let r = t, i = n, o = {
|
|
832
|
-
info:
|
|
832
|
+
info: se,
|
|
833
833
|
success: J,
|
|
834
|
-
warning:
|
|
835
|
-
danger:
|
|
834
|
+
warning: U,
|
|
835
|
+
danger: H
|
|
836
836
|
}, u = a(() => o[r.variant ?? "info"]);
|
|
837
837
|
return (n, r) => (x(), c("div", {
|
|
838
838
|
class: _(["uid-toast", `uid-toast--${t.variant}`]),
|
|
@@ -840,11 +840,11 @@ var Ue = ["for"], We = {
|
|
|
840
840
|
"aria-live": "polite",
|
|
841
841
|
"aria-atomic": "true"
|
|
842
842
|
}, [
|
|
843
|
-
l("span",
|
|
843
|
+
l("span", Vt, [d(e, {
|
|
844
844
|
icon: u.value,
|
|
845
845
|
size: 18
|
|
846
846
|
}, null, 8, ["icon"])]),
|
|
847
|
-
l("div",
|
|
847
|
+
l("div", Ht, [t.title ? (x(), c("p", Ut, k(t.title), 1)) : s("", !0), l("p", Wt, k(t.message), 1)]),
|
|
848
848
|
l("button", {
|
|
849
849
|
type: "button",
|
|
850
850
|
class: "uid-toast__close",
|
|
@@ -856,23 +856,23 @@ var Ue = ["for"], We = {
|
|
|
856
856
|
}, null, 8, ["icon"])])
|
|
857
857
|
], 2));
|
|
858
858
|
}
|
|
859
|
-
}),
|
|
860
|
-
function
|
|
859
|
+
}), Kt = w([]), qt = 0;
|
|
860
|
+
function Jt() {
|
|
861
861
|
function e(e) {
|
|
862
862
|
let n = typeof e == "string" ? { message: e } : e, r = {
|
|
863
|
-
id: ++
|
|
863
|
+
id: ++qt,
|
|
864
864
|
variant: "info",
|
|
865
865
|
duration: 4e3,
|
|
866
866
|
...n
|
|
867
867
|
};
|
|
868
|
-
return
|
|
868
|
+
return Kt.value.push(r), r.duration > 0 && setTimeout(() => t(r.id), r.duration), r.id;
|
|
869
869
|
}
|
|
870
870
|
function t(e) {
|
|
871
|
-
let t =
|
|
872
|
-
t !== -1 &&
|
|
871
|
+
let t = Kt.value.findIndex((t) => t.id === e);
|
|
872
|
+
t !== -1 && Kt.value.splice(t, 1);
|
|
873
873
|
}
|
|
874
874
|
function n() {
|
|
875
|
-
|
|
875
|
+
Kt.value = [];
|
|
876
876
|
}
|
|
877
877
|
function r(t) {
|
|
878
878
|
return e(typeof t == "string" ? {
|
|
@@ -911,7 +911,7 @@ function qt() {
|
|
|
911
911
|
});
|
|
912
912
|
}
|
|
913
913
|
return {
|
|
914
|
-
toasts: C(
|
|
914
|
+
toasts: C(Kt),
|
|
915
915
|
add: e,
|
|
916
916
|
dismiss: t,
|
|
917
917
|
clear: n,
|
|
@@ -923,33 +923,33 @@ function qt() {
|
|
|
923
923
|
}
|
|
924
924
|
//#endregion
|
|
925
925
|
//#region src/components/Toast/UidToastProvider.vue
|
|
926
|
-
var
|
|
926
|
+
var Yt = /* @__PURE__ */ f({
|
|
927
927
|
__name: "UidToastProvider",
|
|
928
928
|
setup(e) {
|
|
929
|
-
let { toasts: r, dismiss: a } =
|
|
929
|
+
let { toasts: r, dismiss: a } = Jt();
|
|
930
930
|
return (e, s) => (x(), o(n, { to: "body" }, [d(i, {
|
|
931
931
|
tag: "div",
|
|
932
932
|
name: "uid-toast",
|
|
933
933
|
class: "uid-toast-list"
|
|
934
934
|
}, {
|
|
935
|
-
default:
|
|
935
|
+
default: z(() => [(x(!0), c(t, null, T(j(r), (e) => (x(), o(Gt, h({ key: e.id }, { ref_for: !0 }, e, { onDismiss: j(a) }), null, 16, ["onDismiss"]))), 128))]),
|
|
936
936
|
_: 1
|
|
937
937
|
})]));
|
|
938
938
|
}
|
|
939
|
-
}),
|
|
939
|
+
}), Xt = { class: "uid-progress-wrapper" }, Zt = {
|
|
940
940
|
key: 0,
|
|
941
941
|
class: "uid-progress-header"
|
|
942
|
-
},
|
|
942
|
+
}, Qt = {
|
|
943
943
|
key: 0,
|
|
944
944
|
class: "uid-progress-label"
|
|
945
|
-
},
|
|
945
|
+
}, $t = {
|
|
946
946
|
key: 1,
|
|
947
947
|
class: "uid-progress-value"
|
|
948
|
-
},
|
|
948
|
+
}, en = [
|
|
949
949
|
"aria-valuemax",
|
|
950
950
|
"aria-valuenow",
|
|
951
951
|
"aria-label"
|
|
952
|
-
],
|
|
952
|
+
], tn = /* @__PURE__ */ f({
|
|
953
953
|
__name: "UidProgress",
|
|
954
954
|
props: {
|
|
955
955
|
value: { default: void 0 },
|
|
@@ -966,7 +966,7 @@ var Jt = /* @__PURE__ */ f({
|
|
|
966
966
|
let t = e, n = a(() => {
|
|
967
967
|
if (t.value !== void 0) return Math.min(100, Math.max(0, t.value / (t.max ?? 100) * 100));
|
|
968
968
|
}), r = a(() => t.value === void 0), i = a(() => n.value === void 0 ? void 0 : `${Math.round(n.value)}%`);
|
|
969
|
-
return (t, a) => (x(), c("div",
|
|
969
|
+
return (t, a) => (x(), c("div", Xt, [e.label || e.showValue && i.value ? (x(), c("div", Zt, [e.label ? (x(), c("span", Qt, k(e.label), 1)) : s("", !0), e.showValue && i.value ? (x(), c("span", $t, k(i.value), 1)) : s("", !0)])) : s("", !0), l("div", {
|
|
970
970
|
class: _(["uid-progress", [
|
|
971
971
|
`uid-progress--${e.size}`,
|
|
972
972
|
`uid-progress--${e.variant}`,
|
|
@@ -981,9 +981,9 @@ var Jt = /* @__PURE__ */ f({
|
|
|
981
981
|
key: 0,
|
|
982
982
|
class: "uid-progress__bar",
|
|
983
983
|
style: v({ width: `${n.value}%` })
|
|
984
|
-
}, null, 4))], 10,
|
|
984
|
+
}, null, 4))], 10, en)]));
|
|
985
985
|
}
|
|
986
|
-
}),
|
|
986
|
+
}), nn = [
|
|
987
987
|
"a[href]",
|
|
988
988
|
"button:not([disabled])",
|
|
989
989
|
"input:not([disabled])",
|
|
@@ -991,10 +991,10 @@ var Jt = /* @__PURE__ */ f({
|
|
|
991
991
|
"textarea:not([disabled])",
|
|
992
992
|
"[tabindex]:not([tabindex=\"-1\"])"
|
|
993
993
|
].join(", ");
|
|
994
|
-
function
|
|
994
|
+
function rn(e) {
|
|
995
995
|
let t = w(null);
|
|
996
996
|
function n() {
|
|
997
|
-
return e.value ? Array.from(e.value.querySelectorAll(
|
|
997
|
+
return e.value ? Array.from(e.value.querySelectorAll(nn)).filter((e) => !e.closest("[aria-hidden=\"true\"]")) : [];
|
|
998
998
|
}
|
|
999
999
|
function r(e) {
|
|
1000
1000
|
if (e.key !== "Tab") return;
|
|
@@ -1019,17 +1019,17 @@ function nn(e) {
|
|
|
1019
1019
|
}
|
|
1020
1020
|
//#endregion
|
|
1021
1021
|
//#region src/composables/useScrollLock.ts
|
|
1022
|
-
var
|
|
1023
|
-
function
|
|
1022
|
+
var an = 0;
|
|
1023
|
+
function on() {
|
|
1024
1024
|
let e = !1;
|
|
1025
1025
|
function t() {
|
|
1026
|
-
if (!e && (e = !0,
|
|
1026
|
+
if (!e && (e = !0, an++, an === 1)) {
|
|
1027
1027
|
let e = window.innerWidth - document.documentElement.clientWidth;
|
|
1028
1028
|
document.body.style.overflow = "hidden", e > 0 && (document.body.style.paddingRight = `${e}px`);
|
|
1029
1029
|
}
|
|
1030
1030
|
}
|
|
1031
1031
|
function n() {
|
|
1032
|
-
e && (e = !1,
|
|
1032
|
+
e && (e = !1, an--, an === 0 && (document.body.style.overflow = "", document.body.style.paddingRight = ""));
|
|
1033
1033
|
}
|
|
1034
1034
|
return {
|
|
1035
1035
|
lock: t,
|
|
@@ -1038,10 +1038,10 @@ function an() {
|
|
|
1038
1038
|
}
|
|
1039
1039
|
//#endregion
|
|
1040
1040
|
//#region src/components/Modal/UidModal.vue?vue&type=script&setup=true&lang.ts
|
|
1041
|
-
var
|
|
1041
|
+
var sn = ["aria-labelledby"], cn = { class: "uid-modal__header" }, ln = ["id"], un = { class: "uid-modal__body" }, dn = {
|
|
1042
1042
|
key: 0,
|
|
1043
1043
|
class: "uid-modal__footer"
|
|
1044
|
-
},
|
|
1044
|
+
}, fn = /* @__PURE__ */ f({
|
|
1045
1045
|
__name: "UidModal",
|
|
1046
1046
|
props: /* @__PURE__ */ m({
|
|
1047
1047
|
title: { default: void 0 },
|
|
@@ -1063,24 +1063,24 @@ var on = ["aria-labelledby"], sn = { class: "uid-modal__header" }, cn = ["id"],
|
|
|
1063
1063
|
}),
|
|
1064
1064
|
emits: /* @__PURE__ */ m(["close"], ["update:modelValue"]),
|
|
1065
1065
|
setup(t, { emit: i }) {
|
|
1066
|
-
let a = N(t, "modelValue"), u = t, f = i, p = M(), m = w(null), { activate: h, deactivate: v } =
|
|
1066
|
+
let a = N(t, "modelValue"), u = t, f = i, p = M(), m = w(null), { activate: h, deactivate: v } = rn(m), { lock: y, unlock: b } = on();
|
|
1067
1067
|
function S() {
|
|
1068
1068
|
a.value = !1, f("close");
|
|
1069
1069
|
}
|
|
1070
1070
|
function C() {
|
|
1071
1071
|
u.closeOnOverlay && S();
|
|
1072
1072
|
}
|
|
1073
|
-
|
|
1073
|
+
R(a, async (e) => {
|
|
1074
1074
|
e ? (y(), await g(), h(), document.addEventListener("keydown", T)) : (b(), v(), document.removeEventListener("keydown", T));
|
|
1075
1075
|
});
|
|
1076
1076
|
function T(e) {
|
|
1077
1077
|
e.key === "Escape" && S();
|
|
1078
1078
|
}
|
|
1079
1079
|
return (i, u) => (x(), o(n, { to: "body" }, [d(r, { name: "uid-modal" }, {
|
|
1080
|
-
default:
|
|
1080
|
+
default: z(() => [a.value ? (x(), c("div", {
|
|
1081
1081
|
key: 0,
|
|
1082
1082
|
class: "uid-modal-overlay",
|
|
1083
|
-
onClick:
|
|
1083
|
+
onClick: V(C, ["self"])
|
|
1084
1084
|
}, [l("div", {
|
|
1085
1085
|
ref_key: "dialogRef",
|
|
1086
1086
|
ref: m,
|
|
@@ -1090,11 +1090,11 @@ var on = ["aria-labelledby"], sn = { class: "uid-modal__header" }, cn = ["id"],
|
|
|
1090
1090
|
"aria-labelledby": t.title ? j(p) : void 0,
|
|
1091
1091
|
tabindex: "-1"
|
|
1092
1092
|
}, [
|
|
1093
|
-
l("div",
|
|
1093
|
+
l("div", cn, [E(i.$slots, "header", {}, () => [t.title ? (x(), c("p", {
|
|
1094
1094
|
key: 0,
|
|
1095
1095
|
id: j(p),
|
|
1096
1096
|
class: "uid-modal__title"
|
|
1097
|
-
}, k(t.title), 9,
|
|
1097
|
+
}, k(t.title), 9, ln)) : s("", !0)]), t.hideClose ? s("", !0) : (x(), c("button", {
|
|
1098
1098
|
key: 0,
|
|
1099
1099
|
type: "button",
|
|
1100
1100
|
class: "uid-modal__close",
|
|
@@ -1104,16 +1104,16 @@ var on = ["aria-labelledby"], sn = { class: "uid-modal__header" }, cn = ["id"],
|
|
|
1104
1104
|
icon: j(Z),
|
|
1105
1105
|
size: 18
|
|
1106
1106
|
}, null, 8, ["icon"])]))]),
|
|
1107
|
-
l("div",
|
|
1108
|
-
i.$slots.footer ? (x(), c("div",
|
|
1109
|
-
], 10,
|
|
1107
|
+
l("div", un, [E(i.$slots, "default")]),
|
|
1108
|
+
i.$slots.footer ? (x(), c("div", dn, [E(i.$slots, "footer")])) : s("", !0)
|
|
1109
|
+
], 10, sn)])) : s("", !0)]),
|
|
1110
1110
|
_: 3
|
|
1111
1111
|
})]));
|
|
1112
1112
|
}
|
|
1113
|
-
}),
|
|
1113
|
+
}), pn = ["aria-labelledby"], mn = { class: "uid-drawer__header" }, hn = ["id"], gn = { class: "uid-drawer__body" }, _n = {
|
|
1114
1114
|
key: 0,
|
|
1115
1115
|
class: "uid-drawer__footer"
|
|
1116
|
-
},
|
|
1116
|
+
}, vn = /* @__PURE__ */ f({
|
|
1117
1117
|
__name: "UidDrawer",
|
|
1118
1118
|
props: /* @__PURE__ */ m({
|
|
1119
1119
|
title: { default: void 0 },
|
|
@@ -1137,7 +1137,7 @@ var on = ["aria-labelledby"], sn = { class: "uid-modal__header" }, cn = ["id"],
|
|
|
1137
1137
|
}),
|
|
1138
1138
|
emits: /* @__PURE__ */ m(["close"], ["update:modelValue"]),
|
|
1139
1139
|
setup(t, { emit: i }) {
|
|
1140
|
-
let a = N(t, "modelValue"), u = t, f = i, p = M(), m = w(null), { activate: h, deactivate: y } =
|
|
1140
|
+
let a = N(t, "modelValue"), u = t, f = i, p = M(), m = w(null), { activate: h, deactivate: y } = rn(m), { lock: b, unlock: S } = on();
|
|
1141
1141
|
function C() {
|
|
1142
1142
|
a.value = !1, f("close");
|
|
1143
1143
|
}
|
|
@@ -1147,13 +1147,13 @@ var on = ["aria-labelledby"], sn = { class: "uid-modal__header" }, cn = ["id"],
|
|
|
1147
1147
|
function D(e) {
|
|
1148
1148
|
e.key === "Escape" && C();
|
|
1149
1149
|
}
|
|
1150
|
-
return
|
|
1150
|
+
return R(a, async (e) => {
|
|
1151
1151
|
e ? (b(), await g(), h(), document.addEventListener("keydown", D)) : (S(), y(), document.removeEventListener("keydown", D));
|
|
1152
1152
|
}), (i, u) => (x(), o(n, { to: "body" }, [d(r, { name: `uid-drawer-${t.side}` }, {
|
|
1153
|
-
default:
|
|
1153
|
+
default: z(() => [a.value ? (x(), c("div", {
|
|
1154
1154
|
key: 0,
|
|
1155
1155
|
class: "uid-drawer-overlay",
|
|
1156
|
-
onClick:
|
|
1156
|
+
onClick: V(T, ["self"])
|
|
1157
1157
|
}, [l("div", {
|
|
1158
1158
|
ref_key: "panelRef",
|
|
1159
1159
|
ref: m,
|
|
@@ -1167,11 +1167,11 @@ var on = ["aria-labelledby"], sn = { class: "uid-modal__header" }, cn = ["id"],
|
|
|
1167
1167
|
"aria-labelledby": t.title ? j(p) : void 0,
|
|
1168
1168
|
tabindex: "-1"
|
|
1169
1169
|
}, [
|
|
1170
|
-
l("div",
|
|
1170
|
+
l("div", mn, [E(i.$slots, "header", {}, () => [t.title ? (x(), c("p", {
|
|
1171
1171
|
key: 0,
|
|
1172
1172
|
id: j(p),
|
|
1173
1173
|
class: "uid-drawer__title"
|
|
1174
|
-
}, k(t.title), 9,
|
|
1174
|
+
}, k(t.title), 9, hn)) : s("", !0)]), t.hideClose ? s("", !0) : (x(), c("button", {
|
|
1175
1175
|
key: 0,
|
|
1176
1176
|
type: "button",
|
|
1177
1177
|
class: "uid-drawer__close",
|
|
@@ -1181,14 +1181,14 @@ var on = ["aria-labelledby"], sn = { class: "uid-modal__header" }, cn = ["id"],
|
|
|
1181
1181
|
icon: j(Z),
|
|
1182
1182
|
size: 18
|
|
1183
1183
|
}, null, 8, ["icon"])]))]),
|
|
1184
|
-
l("div",
|
|
1185
|
-
i.$slots.footer ? (x(), c("div",
|
|
1186
|
-
], 14,
|
|
1184
|
+
l("div", gn, [E(i.$slots, "default")]),
|
|
1185
|
+
i.$slots.footer ? (x(), c("div", _n, [E(i.$slots, "footer")])) : s("", !0)
|
|
1186
|
+
], 14, pn)])) : s("", !0)]),
|
|
1187
1187
|
_: 3
|
|
1188
1188
|
}, 8, ["name"])]));
|
|
1189
1189
|
}
|
|
1190
|
-
}),
|
|
1191
|
-
function
|
|
1190
|
+
}), yn = 8, bn = 8;
|
|
1191
|
+
function xn(e, t, n = {}) {
|
|
1192
1192
|
let r = w(0), i = w(0), o = w(A(n.placement) ?? "bottom"), s = a(() => ({
|
|
1193
1193
|
position: "fixed",
|
|
1194
1194
|
left: `${r.value}px`,
|
|
@@ -1197,7 +1197,7 @@ function bn(e, t, n = {}) {
|
|
|
1197
1197
|
function c() {
|
|
1198
1198
|
let a = e.value, s = t.value;
|
|
1199
1199
|
if (!a || !s) return;
|
|
1200
|
-
let c = a.getBoundingClientRect(), l = s.getBoundingClientRect(), u = n.offset ??
|
|
1200
|
+
let c = a.getBoundingClientRect(), l = s.getBoundingClientRect(), u = n.offset ?? yn, d = window.innerWidth, f = window.innerHeight, p = A(n.placement) ?? "bottom";
|
|
1201
1201
|
if (p.startsWith("bottom")) {
|
|
1202
1202
|
let e = f - c.bottom, t = c.top;
|
|
1203
1203
|
e < l.height + u && t > e && (p = p.replace("bottom", "top"));
|
|
@@ -1207,7 +1207,7 @@ function bn(e, t, n = {}) {
|
|
|
1207
1207
|
}
|
|
1208
1208
|
o.value = p;
|
|
1209
1209
|
let m = 0, h = 0;
|
|
1210
|
-
p.startsWith("bottom") ? (h = c.bottom + u, m = p === "bottom" ? c.left + c.width / 2 - l.width / 2 : p === "bottom-start" ? c.left : c.right - l.width) : p.startsWith("top") ? (h = c.top - l.height - u, m = p === "top" ? c.left + c.width / 2 - l.width / 2 : p === "top-start" ? c.left : c.right - l.width) : p === "left" ? (m = c.left - l.width - u, h = c.top + c.height / 2 - l.height / 2) : (m = c.right + u, h = c.top + c.height / 2 - l.height / 2), r.value = Math.max(
|
|
1210
|
+
p.startsWith("bottom") ? (h = c.bottom + u, m = p === "bottom" ? c.left + c.width / 2 - l.width / 2 : p === "bottom-start" ? c.left : c.right - l.width) : p.startsWith("top") ? (h = c.top - l.height - u, m = p === "top" ? c.left + c.width / 2 - l.width / 2 : p === "top-start" ? c.left : c.right - l.width) : p === "left" ? (m = c.left - l.width - u, h = c.top + c.height / 2 - l.height / 2) : (m = c.right + u, h = c.top + c.height / 2 - l.height / 2), r.value = Math.max(bn, Math.min(m, d - l.width - bn)), i.value = Math.max(bn, Math.min(h, f - l.height - bn));
|
|
1211
1211
|
}
|
|
1212
1212
|
return {
|
|
1213
1213
|
x: r,
|
|
@@ -1219,7 +1219,7 @@ function bn(e, t, n = {}) {
|
|
|
1219
1219
|
}
|
|
1220
1220
|
//#endregion
|
|
1221
1221
|
//#region src/components/Tooltip/UidTooltip.vue?vue&type=script&setup=true&lang.ts
|
|
1222
|
-
var
|
|
1222
|
+
var Sn = ["aria-describedby"], Cn = ["id"], wn = /* @__PURE__ */ f({
|
|
1223
1223
|
__name: "UidTooltip",
|
|
1224
1224
|
props: {
|
|
1225
1225
|
content: {},
|
|
@@ -1230,7 +1230,7 @@ var xn = ["aria-describedby"], Sn = ["id"], Cn = /* @__PURE__ */ f({
|
|
|
1230
1230
|
}
|
|
1231
1231
|
},
|
|
1232
1232
|
setup(e) {
|
|
1233
|
-
let i = e, u = M(), f = w(null), p = w(null), m = w(!1), { floatingStyle: h, update: _ } =
|
|
1233
|
+
let i = e, u = M(), f = w(null), p = w(null), m = w(!1), { floatingStyle: h, update: _ } = xn(f, p, { placement: a(() => i.placement) });
|
|
1234
1234
|
async function y() {
|
|
1235
1235
|
i.disabled || (m.value = !0, await g(), _());
|
|
1236
1236
|
}
|
|
@@ -1246,8 +1246,8 @@ var xn = ["aria-describedby"], Sn = ["id"], Cn = /* @__PURE__ */ f({
|
|
|
1246
1246
|
onMouseleave: b,
|
|
1247
1247
|
onFocusin: y,
|
|
1248
1248
|
onFocusout: b
|
|
1249
|
-
}, [E(i.$slots, "default")], 40,
|
|
1250
|
-
default:
|
|
1249
|
+
}, [E(i.$slots, "default")], 40, Sn), (x(), o(n, { to: "body" }, [d(r, { name: "uid-tooltip" }, {
|
|
1250
|
+
default: z(() => [m.value ? (x(), c("div", {
|
|
1251
1251
|
key: 0,
|
|
1252
1252
|
id: j(u),
|
|
1253
1253
|
ref_key: "floatingRef",
|
|
@@ -1255,15 +1255,15 @@ var xn = ["aria-describedby"], Sn = ["id"], Cn = /* @__PURE__ */ f({
|
|
|
1255
1255
|
class: "uid-tooltip",
|
|
1256
1256
|
role: "tooltip",
|
|
1257
1257
|
style: v(j(h))
|
|
1258
|
-
}, k(e.content), 13,
|
|
1258
|
+
}, k(e.content), 13, Cn)) : s("", !0)]),
|
|
1259
1259
|
_: 1
|
|
1260
1260
|
})]))], 64));
|
|
1261
1261
|
}
|
|
1262
|
-
}),
|
|
1262
|
+
}), Tn = /* @__PURE__ */ f({
|
|
1263
1263
|
__name: "UidPopover",
|
|
1264
1264
|
props: { placement: { default: "bottom" } },
|
|
1265
1265
|
setup(e) {
|
|
1266
|
-
let i = e, u = w(null), f = w(null), p = w(!1), { floatingStyle: m, update: h } =
|
|
1266
|
+
let i = e, u = w(null), f = w(null), p = w(!1), { floatingStyle: m, update: h } = xn(u, f, { placement: a(() => i.placement) });
|
|
1267
1267
|
async function _() {
|
|
1268
1268
|
p.value = !p.value, p.value && (await g(), h());
|
|
1269
1269
|
}
|
|
@@ -1287,7 +1287,7 @@ var xn = ["aria-describedby"], Sn = ["id"], Cn = /* @__PURE__ */ f({
|
|
|
1287
1287
|
class: "uid-popover-trigger",
|
|
1288
1288
|
onClick: _
|
|
1289
1289
|
}, [E(e.$slots, "trigger")], 512), (x(), o(n, { to: "body" }, [d(r, { name: "uid-popover" }, {
|
|
1290
|
-
default:
|
|
1290
|
+
default: z(() => [p.value ? (x(), c("div", {
|
|
1291
1291
|
key: 0,
|
|
1292
1292
|
ref_key: "floatingRef",
|
|
1293
1293
|
ref: f,
|
|
@@ -1297,17 +1297,17 @@ var xn = ["aria-describedby"], Sn = ["id"], Cn = /* @__PURE__ */ f({
|
|
|
1297
1297
|
_: 3
|
|
1298
1298
|
})]))], 64));
|
|
1299
1299
|
}
|
|
1300
|
-
}),
|
|
1300
|
+
}), En = Symbol("uid-menu-close"), Dn = /* @__PURE__ */ f({
|
|
1301
1301
|
__name: "UidMenu",
|
|
1302
1302
|
setup(e) {
|
|
1303
|
-
let i = w(null), a = w(null), u = w(!1), { floatingStyle: f, update: p } =
|
|
1303
|
+
let i = w(null), a = w(null), u = w(!1), { floatingStyle: f, update: p } = xn(i, a, { placement: "bottom-start" });
|
|
1304
1304
|
function m() {
|
|
1305
1305
|
return Array.from(a.value?.querySelectorAll("[role=\"menuitem\"]:not([disabled])") ?? []);
|
|
1306
1306
|
}
|
|
1307
1307
|
function h() {
|
|
1308
1308
|
u.value = !1, i.value?.querySelector("button, [tabindex]")?.focus();
|
|
1309
1309
|
}
|
|
1310
|
-
S(
|
|
1310
|
+
S(En, h);
|
|
1311
1311
|
async function _() {
|
|
1312
1312
|
u.value = !u.value, u.value && (await g(), p(), m()[0]?.focus());
|
|
1313
1313
|
}
|
|
@@ -1322,7 +1322,7 @@ var xn = ["aria-describedby"], Sn = ["id"], Cn = /* @__PURE__ */ f({
|
|
|
1322
1322
|
let t = e.target;
|
|
1323
1323
|
i.value?.contains(t) || a.value?.contains(t) || (u.value = !1);
|
|
1324
1324
|
}
|
|
1325
|
-
return
|
|
1325
|
+
return R(u, (e) => {
|
|
1326
1326
|
e ? document.addEventListener("mousedown", T) : document.removeEventListener("mousedown", T);
|
|
1327
1327
|
}), b(() => {
|
|
1328
1328
|
document.removeEventListener("mousedown", T);
|
|
@@ -1333,7 +1333,7 @@ var xn = ["aria-describedby"], Sn = ["id"], Cn = /* @__PURE__ */ f({
|
|
|
1333
1333
|
onClick: _,
|
|
1334
1334
|
onKeydown: y
|
|
1335
1335
|
}, [E(e.$slots, "trigger")], 544), (x(), o(n, { to: "body" }, [d(r, { name: "uid-menu" }, {
|
|
1336
|
-
default:
|
|
1336
|
+
default: z(() => [u.value ? (x(), c("div", {
|
|
1337
1337
|
key: 0,
|
|
1338
1338
|
ref_key: "menuRef",
|
|
1339
1339
|
ref: a,
|
|
@@ -1345,7 +1345,7 @@ var xn = ["aria-describedby"], Sn = ["id"], Cn = /* @__PURE__ */ f({
|
|
|
1345
1345
|
_: 3
|
|
1346
1346
|
})]))], 64));
|
|
1347
1347
|
}
|
|
1348
|
-
}),
|
|
1348
|
+
}), On = ["disabled"], kn = /* @__PURE__ */ f({
|
|
1349
1349
|
__name: "UidMenuItem",
|
|
1350
1350
|
props: {
|
|
1351
1351
|
icon: { default: void 0 },
|
|
@@ -1357,7 +1357,7 @@ var xn = ["aria-describedby"], Sn = ["id"], Cn = /* @__PURE__ */ f({
|
|
|
1357
1357
|
},
|
|
1358
1358
|
emits: ["click"],
|
|
1359
1359
|
setup(e, { emit: t }) {
|
|
1360
|
-
let n = e, r = t, i = p(
|
|
1360
|
+
let n = e, r = t, i = p(En, () => {});
|
|
1361
1361
|
function a(e) {
|
|
1362
1362
|
n.disabled || (r("click", e), i());
|
|
1363
1363
|
}
|
|
@@ -1367,21 +1367,21 @@ var xn = ["aria-describedby"], Sn = ["id"], Cn = /* @__PURE__ */ f({
|
|
|
1367
1367
|
role: "menuitem",
|
|
1368
1368
|
disabled: e.disabled,
|
|
1369
1369
|
onClick: a
|
|
1370
|
-
}, [E(t.$slots, "default")], 10,
|
|
1370
|
+
}, [E(t.$slots, "default")], 10, On));
|
|
1371
1371
|
}
|
|
1372
|
-
}),
|
|
1372
|
+
}), An = (e, t) => {
|
|
1373
1373
|
let n = e.__vccOpts || e;
|
|
1374
1374
|
for (let [e, r] of t) n[e] = r;
|
|
1375
1375
|
return n;
|
|
1376
|
-
},
|
|
1376
|
+
}, jn = {}, Mn = {
|
|
1377
1377
|
class: "uid-menu-separator",
|
|
1378
1378
|
role: "separator",
|
|
1379
1379
|
"aria-hidden": "true"
|
|
1380
1380
|
};
|
|
1381
|
-
function
|
|
1382
|
-
return x(), c("div",
|
|
1381
|
+
function Nn(e, t) {
|
|
1382
|
+
return x(), c("div", Mn);
|
|
1383
1383
|
}
|
|
1384
|
-
var
|
|
1384
|
+
var Pn = /* @__PURE__ */ An(jn, [["render", Nn]]), Fn = Symbol("uid-tabs"), In = ["aria-orientation"], Ln = { class: "uid-tabs__panels" }, Rn = /* @__PURE__ */ f({
|
|
1385
1385
|
__name: "UidTabs",
|
|
1386
1386
|
props: /* @__PURE__ */ m({ orientation: { default: "horizontal" } }, {
|
|
1387
1387
|
modelValue: { required: !0 },
|
|
@@ -1390,7 +1390,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1390
1390
|
emits: ["update:modelValue"],
|
|
1391
1391
|
setup(e) {
|
|
1392
1392
|
let t = N(e, "modelValue");
|
|
1393
|
-
return S(
|
|
1393
|
+
return S(Fn, {
|
|
1394
1394
|
activeTab: t,
|
|
1395
1395
|
setTab: (e) => {
|
|
1396
1396
|
t.value = e;
|
|
@@ -1400,15 +1400,15 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1400
1400
|
class: "uid-tabs__list",
|
|
1401
1401
|
role: "tablist",
|
|
1402
1402
|
"aria-orientation": e.orientation
|
|
1403
|
-
}, [E(t.$slots, "list")], 8,
|
|
1403
|
+
}, [E(t.$slots, "list")], 8, In), l("div", Ln, [E(t.$slots, "default")])], 2));
|
|
1404
1404
|
}
|
|
1405
|
-
}),
|
|
1405
|
+
}), zn = [
|
|
1406
1406
|
"id",
|
|
1407
1407
|
"aria-selected",
|
|
1408
1408
|
"aria-controls",
|
|
1409
1409
|
"disabled",
|
|
1410
1410
|
"tabindex"
|
|
1411
|
-
],
|
|
1411
|
+
], Bn = /* @__PURE__ */ f({
|
|
1412
1412
|
__name: "UidTab",
|
|
1413
1413
|
props: {
|
|
1414
1414
|
value: {},
|
|
@@ -1418,7 +1418,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1418
1418
|
}
|
|
1419
1419
|
},
|
|
1420
1420
|
setup(e) {
|
|
1421
|
-
let t = e, n = p(
|
|
1421
|
+
let t = e, n = p(Fn), r = a(() => n.activeTab.value === t.value), i = a(() => `${n.idPrefix}-tab-${t.value}`), o = a(() => `${n.idPrefix}-panel-${t.value}`);
|
|
1422
1422
|
function s() {
|
|
1423
1423
|
t.disabled || n.setTab(t.value);
|
|
1424
1424
|
}
|
|
@@ -1447,13 +1447,13 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1447
1447
|
tabindex: r.value ? 0 : -1,
|
|
1448
1448
|
onClick: s,
|
|
1449
1449
|
onKeydown: l
|
|
1450
|
-
}, [E(t.$slots, "default")], 42,
|
|
1450
|
+
}, [E(t.$slots, "default")], 42, zn));
|
|
1451
1451
|
}
|
|
1452
|
-
}),
|
|
1452
|
+
}), Vn = ["id", "aria-labelledby"], Hn = /* @__PURE__ */ f({
|
|
1453
1453
|
__name: "UidTabPanel",
|
|
1454
1454
|
props: { value: {} },
|
|
1455
1455
|
setup(e) {
|
|
1456
|
-
let t = e, n = p(
|
|
1456
|
+
let t = e, n = p(Fn), r = a(() => n.activeTab.value === t.value), i = a(() => `${n.idPrefix}-panel-${t.value}`), o = a(() => `${n.idPrefix}-tab-${t.value}`);
|
|
1457
1457
|
return (e, t) => r.value ? (x(), c("div", {
|
|
1458
1458
|
key: 0,
|
|
1459
1459
|
id: i.value,
|
|
@@ -1461,9 +1461,9 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1461
1461
|
role: "tabpanel",
|
|
1462
1462
|
"aria-labelledby": o.value,
|
|
1463
1463
|
tabindex: "0"
|
|
1464
|
-
}, [E(e.$slots, "default")], 8,
|
|
1464
|
+
}, [E(e.$slots, "default")], 8, Vn)) : s("", !0);
|
|
1465
1465
|
}
|
|
1466
|
-
}),
|
|
1466
|
+
}), Un = ["aria-label"], Wn = /* @__PURE__ */ f({
|
|
1467
1467
|
__name: "UidBreadcrumb",
|
|
1468
1468
|
props: {
|
|
1469
1469
|
label: { default: "Навигация" },
|
|
@@ -1476,9 +1476,9 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1476
1476
|
}, [l("ol", {
|
|
1477
1477
|
class: "uid-breadcrumb__list",
|
|
1478
1478
|
style: v({ "--uid-breadcrumb-sep": `'${e.separator}'` })
|
|
1479
|
-
}, [E(t.$slots, "default")], 4)], 8,
|
|
1479
|
+
}, [E(t.$slots, "default")], 4)], 8, Un));
|
|
1480
1480
|
}
|
|
1481
|
-
}),
|
|
1481
|
+
}), Gn = { class: "uid-breadcrumb__item" }, Kn = ["href"], qn = ["aria-current"], Jn = /* @__PURE__ */ f({
|
|
1482
1482
|
__name: "UidBreadcrumbItem",
|
|
1483
1483
|
props: {
|
|
1484
1484
|
href: { default: void 0 },
|
|
@@ -1488,17 +1488,17 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1488
1488
|
}
|
|
1489
1489
|
},
|
|
1490
1490
|
setup(e) {
|
|
1491
|
-
return (t, n) => (x(), c("li",
|
|
1491
|
+
return (t, n) => (x(), c("li", Gn, [e.href && !e.current ? (x(), c("a", {
|
|
1492
1492
|
key: 0,
|
|
1493
1493
|
class: "uid-breadcrumb__link",
|
|
1494
1494
|
href: e.href
|
|
1495
|
-
}, [E(t.$slots, "default")], 8,
|
|
1495
|
+
}, [E(t.$slots, "default")], 8, Kn)) : (x(), c("span", {
|
|
1496
1496
|
key: 1,
|
|
1497
1497
|
class: "uid-breadcrumb__current",
|
|
1498
1498
|
"aria-current": e.current ? "page" : void 0
|
|
1499
|
-
}, [E(t.$slots, "default")], 8,
|
|
1499
|
+
}, [E(t.$slots, "default")], 8, qn))]));
|
|
1500
1500
|
}
|
|
1501
|
-
}),
|
|
1501
|
+
}), Yn = /* @__PURE__ */ f({
|
|
1502
1502
|
__name: "UidLink",
|
|
1503
1503
|
props: {
|
|
1504
1504
|
href: { default: void 0 },
|
|
@@ -1531,7 +1531,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1531
1531
|
"aria-disabled": e.disabled || void 0,
|
|
1532
1532
|
tabindex: e.disabled ? -1 : void 0
|
|
1533
1533
|
}), {
|
|
1534
|
-
default:
|
|
1534
|
+
default: z(() => [E(t.$slots, "default")]),
|
|
1535
1535
|
_: 3
|
|
1536
1536
|
}, 16, [
|
|
1537
1537
|
"class",
|
|
@@ -1539,18 +1539,18 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1539
1539
|
"tabindex"
|
|
1540
1540
|
]));
|
|
1541
1541
|
}
|
|
1542
|
-
}),
|
|
1542
|
+
}), Xn = {
|
|
1543
1543
|
class: "uid-pagination",
|
|
1544
1544
|
"aria-label": "Пагинация"
|
|
1545
|
-
},
|
|
1545
|
+
}, Zn = ["disabled"], Qn = {
|
|
1546
1546
|
key: 0,
|
|
1547
1547
|
class: "uid-pagination__ellipsis",
|
|
1548
1548
|
"aria-hidden": "true"
|
|
1549
|
-
},
|
|
1549
|
+
}, $n = [
|
|
1550
1550
|
"aria-label",
|
|
1551
1551
|
"aria-current",
|
|
1552
1552
|
"onClick"
|
|
1553
|
-
],
|
|
1553
|
+
], er = ["disabled"], tr = /* @__PURE__ */ f({
|
|
1554
1554
|
__name: "UidPagination",
|
|
1555
1555
|
props: /* @__PURE__ */ m({
|
|
1556
1556
|
total: {},
|
|
@@ -1579,7 +1579,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1579
1579
|
function f(e) {
|
|
1580
1580
|
e < 1 || e > o.value || e === r.value || (r.value = e);
|
|
1581
1581
|
}
|
|
1582
|
-
return (n, i) => (x(), c("nav",
|
|
1582
|
+
return (n, i) => (x(), c("nav", Xn, [
|
|
1583
1583
|
l("button", {
|
|
1584
1584
|
type: "button",
|
|
1585
1585
|
class: "uid-pagination__btn uid-pagination__btn--nav",
|
|
@@ -1587,17 +1587,17 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1587
1587
|
"aria-label": "Предыдущая страница",
|
|
1588
1588
|
onClick: i[0] ||= (e) => f(r.value - 1)
|
|
1589
1589
|
}, [d(e, {
|
|
1590
|
-
icon: j(
|
|
1590
|
+
icon: j(X),
|
|
1591
1591
|
size: 16
|
|
1592
|
-
}, null, 8, ["icon"])], 8,
|
|
1593
|
-
(x(!0), c(t, null, T(u.value, (e, n) => (x(), c(t, { key: `${n}-${e}` }, [e === "..." ? (x(), c("span",
|
|
1592
|
+
}, null, 8, ["icon"])], 8, Zn),
|
|
1593
|
+
(x(!0), c(t, null, T(u.value, (e, n) => (x(), c(t, { key: `${n}-${e}` }, [e === "..." ? (x(), c("span", Qn, " … ")) : (x(), c("button", {
|
|
1594
1594
|
key: 1,
|
|
1595
1595
|
type: "button",
|
|
1596
1596
|
class: _(["uid-pagination__btn", { "uid-pagination__btn--active": e === r.value }]),
|
|
1597
1597
|
"aria-label": `Страница ${e}`,
|
|
1598
1598
|
"aria-current": e === r.value ? "page" : void 0,
|
|
1599
1599
|
onClick: (t) => f(e)
|
|
1600
|
-
}, k(e), 11,
|
|
1600
|
+
}, k(e), 11, $n))], 64))), 128)),
|
|
1601
1601
|
l("button", {
|
|
1602
1602
|
type: "button",
|
|
1603
1603
|
class: "uid-pagination__btn uid-pagination__btn--nav",
|
|
@@ -1605,15 +1605,15 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1605
1605
|
"aria-label": "Следующая страница",
|
|
1606
1606
|
onClick: i[1] ||= (e) => f(r.value + 1)
|
|
1607
1607
|
}, [d(e, {
|
|
1608
|
-
icon: j(
|
|
1608
|
+
icon: j(ne),
|
|
1609
1609
|
size: 16
|
|
1610
|
-
}, null, 8, ["icon"])], 8,
|
|
1610
|
+
}, null, 8, ["icon"])], 8, er)
|
|
1611
1611
|
]));
|
|
1612
1612
|
}
|
|
1613
|
-
}),
|
|
1613
|
+
}), nr = {
|
|
1614
1614
|
class: "uid-pagination uid-pagination--cursor",
|
|
1615
1615
|
"aria-label": "Навигация по страницам"
|
|
1616
|
-
},
|
|
1616
|
+
}, rr = ["disabled", "aria-label"], ir = ["disabled", "aria-label"], ar = /* @__PURE__ */ f({
|
|
1617
1617
|
__name: "UidPaginationCursor",
|
|
1618
1618
|
props: {
|
|
1619
1619
|
hasPrev: {
|
|
@@ -1630,27 +1630,27 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1630
1630
|
emits: ["prev", "next"],
|
|
1631
1631
|
setup(t, { emit: n }) {
|
|
1632
1632
|
let r = n;
|
|
1633
|
-
return (n, i) => (x(), c("nav",
|
|
1633
|
+
return (n, i) => (x(), c("nav", nr, [l("button", {
|
|
1634
1634
|
type: "button",
|
|
1635
1635
|
class: "uid-pagination__btn uid-pagination__btn--nav uid-pagination__btn--labeled",
|
|
1636
1636
|
disabled: !t.hasPrev,
|
|
1637
1637
|
"aria-label": t.prevLabel,
|
|
1638
1638
|
onClick: i[0] ||= (e) => r("prev")
|
|
1639
1639
|
}, [d(e, {
|
|
1640
|
-
icon: j(
|
|
1640
|
+
icon: j(X),
|
|
1641
1641
|
size: 16
|
|
1642
|
-
}, null, 8, ["icon"]), u(" " + k(t.prevLabel), 1)], 8,
|
|
1642
|
+
}, null, 8, ["icon"]), u(" " + k(t.prevLabel), 1)], 8, rr), l("button", {
|
|
1643
1643
|
type: "button",
|
|
1644
1644
|
class: "uid-pagination__btn uid-pagination__btn--nav uid-pagination__btn--labeled",
|
|
1645
1645
|
disabled: !t.hasNext,
|
|
1646
1646
|
"aria-label": t.nextLabel,
|
|
1647
1647
|
onClick: i[1] ||= (e) => r("next")
|
|
1648
1648
|
}, [u(k(t.nextLabel) + " ", 1), d(e, {
|
|
1649
|
-
icon: j(
|
|
1649
|
+
icon: j(ne),
|
|
1650
1650
|
size: 16
|
|
1651
|
-
}, null, 8, ["icon"])], 8,
|
|
1651
|
+
}, null, 8, ["icon"])], 8, ir)]));
|
|
1652
1652
|
}
|
|
1653
|
-
}),
|
|
1653
|
+
}), or = { class: "uid-load-more" }, sr = ["disabled"], cr = /* @__PURE__ */ f({
|
|
1654
1654
|
__name: "UidLoadMore",
|
|
1655
1655
|
props: {
|
|
1656
1656
|
loading: {
|
|
@@ -1666,20 +1666,20 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1666
1666
|
emits: ["load"],
|
|
1667
1667
|
setup(e, { emit: t }) {
|
|
1668
1668
|
let n = t;
|
|
1669
|
-
return (t, r) => (x(), c("div",
|
|
1669
|
+
return (t, r) => (x(), c("div", or, [l("button", {
|
|
1670
1670
|
type: "button",
|
|
1671
1671
|
class: "uid-load-more__btn",
|
|
1672
1672
|
disabled: e.disabled || e.loading,
|
|
1673
1673
|
onClick: r[0] ||= (e) => n("load")
|
|
1674
|
-
}, [e.loading ? (x(), o(
|
|
1674
|
+
}, [e.loading ? (x(), o(Mt, {
|
|
1675
1675
|
key: 0,
|
|
1676
1676
|
size: "sm"
|
|
1677
|
-
})) : s("", !0), l("span", null, k(e.label), 1)], 8,
|
|
1677
|
+
})) : s("", !0), l("span", null, k(e.label), 1)], 8, sr)]));
|
|
1678
1678
|
}
|
|
1679
|
-
}),
|
|
1679
|
+
}), lr = { class: "uid-infinite-scroll" }, ur = {
|
|
1680
1680
|
key: 0,
|
|
1681
1681
|
class: "uid-infinite-scroll__loader"
|
|
1682
|
-
},
|
|
1682
|
+
}, dr = /* @__PURE__ */ f({
|
|
1683
1683
|
__name: "UidInfiniteScroll",
|
|
1684
1684
|
props: {
|
|
1685
1685
|
loading: {
|
|
@@ -1703,18 +1703,18 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1703
1703
|
e.isIntersecting && !n.loading && !n.disabled && r("load");
|
|
1704
1704
|
}, { rootMargin: n.rootMargin }), a.observe(i.value));
|
|
1705
1705
|
}
|
|
1706
|
-
return
|
|
1706
|
+
return R(i, (e) => {
|
|
1707
1707
|
e && u();
|
|
1708
|
-
}, { immediate: !0 }),
|
|
1708
|
+
}, { immediate: !0 }), R(() => n.disabled, (e) => {
|
|
1709
1709
|
e ? o() : u();
|
|
1710
|
-
}), b(o), (t, n) => (x(), c("div",
|
|
1710
|
+
}), b(o), (t, n) => (x(), c("div", lr, [e.loading ? (x(), c("div", ur, [d(Mt, { size: "sm" })])) : s("", !0), l("div", {
|
|
1711
1711
|
ref_key: "sentinelRef",
|
|
1712
1712
|
ref: i,
|
|
1713
1713
|
class: "uid-infinite-scroll__sentinel",
|
|
1714
1714
|
"aria-hidden": "true"
|
|
1715
1715
|
}, null, 512)]));
|
|
1716
1716
|
}
|
|
1717
|
-
}),
|
|
1717
|
+
}), fr = { class: "uid-page-size" }, pr = { class: "uid-page-size__label" }, mr = ["value"], hr = ["value"], gr = /* @__PURE__ */ f({
|
|
1718
1718
|
__name: "UidPageSize",
|
|
1719
1719
|
props: /* @__PURE__ */ m({
|
|
1720
1720
|
options: { default: () => [
|
|
@@ -1731,25 +1731,25 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1731
1731
|
emits: ["update:modelValue"],
|
|
1732
1732
|
setup(e) {
|
|
1733
1733
|
let n = N(e, "modelValue");
|
|
1734
|
-
return (r, i) => (x(), c("div",
|
|
1734
|
+
return (r, i) => (x(), c("div", fr, [l("span", pr, k(e.label), 1), l("select", {
|
|
1735
1735
|
class: "uid-page-size__select",
|
|
1736
1736
|
value: n.value,
|
|
1737
1737
|
onChange: i[0] ||= (e) => n.value = Number(e.target.value)
|
|
1738
1738
|
}, [(x(!0), c(t, null, T(e.options, (e) => (x(), c("option", {
|
|
1739
1739
|
key: e,
|
|
1740
1740
|
value: e
|
|
1741
|
-
}, k(e), 9,
|
|
1741
|
+
}, k(e), 9, hr))), 128))], 40, mr)]));
|
|
1742
1742
|
}
|
|
1743
|
-
}),
|
|
1743
|
+
}), _r = {
|
|
1744
1744
|
key: 0,
|
|
1745
1745
|
class: "uid-card__media"
|
|
1746
|
-
},
|
|
1746
|
+
}, vr = {
|
|
1747
1747
|
key: 1,
|
|
1748
1748
|
class: "uid-card__header"
|
|
1749
|
-
},
|
|
1749
|
+
}, yr = { class: "uid-card__body" }, br = {
|
|
1750
1750
|
key: 2,
|
|
1751
1751
|
class: "uid-card__footer"
|
|
1752
|
-
},
|
|
1752
|
+
}, xr = /* @__PURE__ */ f({
|
|
1753
1753
|
__name: "UidCard",
|
|
1754
1754
|
props: {
|
|
1755
1755
|
padding: { default: "md" },
|
|
@@ -1760,13 +1760,13 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1760
1760
|
},
|
|
1761
1761
|
setup(e) {
|
|
1762
1762
|
return (t, n) => (x(), c("div", { class: _(["uid-card", [`uid-card--pad-${e.padding}`, { "uid-card--clickable": e.clickable }]]) }, [
|
|
1763
|
-
t.$slots.media ? (x(), c("div",
|
|
1764
|
-
t.$slots.header ? (x(), c("div",
|
|
1765
|
-
l("div",
|
|
1766
|
-
t.$slots.footer ? (x(), c("div",
|
|
1763
|
+
t.$slots.media ? (x(), c("div", _r, [E(t.$slots, "media")])) : s("", !0),
|
|
1764
|
+
t.$slots.header ? (x(), c("div", vr, [E(t.$slots, "header")])) : s("", !0),
|
|
1765
|
+
l("div", yr, [E(t.$slots, "default")]),
|
|
1766
|
+
t.$slots.footer ? (x(), c("div", br, [E(t.$slots, "footer")])) : s("", !0)
|
|
1767
1767
|
], 2));
|
|
1768
1768
|
}
|
|
1769
|
-
}),
|
|
1769
|
+
}), Sr = ["title", "aria-label"], Cr = ["src", "alt"], wr = /* @__PURE__ */ f({
|
|
1770
1770
|
__name: "UidAvatar",
|
|
1771
1771
|
props: {
|
|
1772
1772
|
src: { default: void 0 },
|
|
@@ -1804,26 +1804,26 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1804
1804
|
alt: e.alt ?? e.name,
|
|
1805
1805
|
class: "uid-avatar__img",
|
|
1806
1806
|
onError: l
|
|
1807
|
-
}, null, 40,
|
|
1807
|
+
}, null, 40, Cr)) : (x(), c("span", {
|
|
1808
1808
|
key: 1,
|
|
1809
1809
|
class: "uid-avatar__initials",
|
|
1810
1810
|
style: v({ background: s.value }),
|
|
1811
1811
|
"aria-hidden": "true"
|
|
1812
|
-
}, k(r.value), 5))], 10,
|
|
1812
|
+
}, k(r.value), 5))], 10, Sr));
|
|
1813
1813
|
}
|
|
1814
|
-
}),
|
|
1814
|
+
}), Tr = { class: "uid-avatar-group" }, Er = ["aria-label"], Dr = /* @__PURE__ */ f({
|
|
1815
1815
|
__name: "UidAvatarGroup",
|
|
1816
1816
|
props: { max: { default: void 0 } },
|
|
1817
1817
|
setup(e) {
|
|
1818
1818
|
let n = e, r = P(), i = a(() => r.default?.()?.flatMap((e) => e.type === Symbol.for("v-fgt") ? e.children : [e]) ?? []), l = a(() => n.max === void 0 ? i.value : i.value.slice(0, n.max)), u = a(() => n.max === void 0 ? 0 : Math.max(0, i.value.length - n.max));
|
|
1819
|
-
return (e, n) => (x(), c("div",
|
|
1819
|
+
return (e, n) => (x(), c("div", Tr, [(x(!0), c(t, null, T(l.value, (e, t) => (x(), o(O(e), { key: t }))), 128)), u.value > 0 ? (x(), c("span", {
|
|
1820
1820
|
key: 0,
|
|
1821
1821
|
class: "uid-avatar uid-avatar--md uid-avatar--circle uid-avatar-group__overflow",
|
|
1822
1822
|
"aria-label": `Ещё ${u.value}`,
|
|
1823
1823
|
role: "img"
|
|
1824
|
-
}, " +" + k(u.value), 9,
|
|
1824
|
+
}, " +" + k(u.value), 9, Er)) : s("", !0)]));
|
|
1825
1825
|
}
|
|
1826
|
-
}),
|
|
1826
|
+
}), Or = /* @__PURE__ */ f({
|
|
1827
1827
|
__name: "UidTag",
|
|
1828
1828
|
props: {
|
|
1829
1829
|
variant: { default: "default" },
|
|
@@ -1841,16 +1841,16 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1841
1841
|
type: "button",
|
|
1842
1842
|
class: "uid-tag__dismiss",
|
|
1843
1843
|
"aria-label": "Удалить",
|
|
1844
|
-
onClick: i[0] ||=
|
|
1844
|
+
onClick: i[0] ||= V((e) => r("dismiss"), ["stop"])
|
|
1845
1845
|
}, [d(e, {
|
|
1846
1846
|
icon: j(Z),
|
|
1847
1847
|
size: 10
|
|
1848
1848
|
}, null, 8, ["icon"])])) : s("", !0)], 2));
|
|
1849
1849
|
}
|
|
1850
|
-
}),
|
|
1850
|
+
}), kr = {
|
|
1851
1851
|
key: 0,
|
|
1852
1852
|
class: "uid-divider__label"
|
|
1853
|
-
},
|
|
1853
|
+
}, Ar = /* @__PURE__ */ f({
|
|
1854
1854
|
__name: "UidDivider",
|
|
1855
1855
|
props: {
|
|
1856
1856
|
label: { default: void 0 },
|
|
@@ -1860,9 +1860,9 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1860
1860
|
return (t, n) => (x(), c("div", {
|
|
1861
1861
|
class: _(["uid-divider", `uid-divider--${e.orientation}`]),
|
|
1862
1862
|
role: "separator"
|
|
1863
|
-
}, [e.label && e.orientation === "horizontal" ? (x(), c("span",
|
|
1863
|
+
}, [e.label && e.orientation === "horizontal" ? (x(), c("span", kr, k(e.label), 1)) : s("", !0)], 2));
|
|
1864
1864
|
}
|
|
1865
|
-
}),
|
|
1865
|
+
}), jr = Symbol("uid-accordion"), Mr = { class: "uid-accordion" }, Nr = /* @__PURE__ */ f({
|
|
1866
1866
|
__name: "UidAccordion",
|
|
1867
1867
|
props: /* @__PURE__ */ m({ multiple: {
|
|
1868
1868
|
type: Boolean,
|
|
@@ -1887,15 +1887,15 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1887
1887
|
r.has(e) ? r.delete(e) : r.add(e), t.value = [...r];
|
|
1888
1888
|
} else t.value = n === e ? "" : e;
|
|
1889
1889
|
}
|
|
1890
|
-
return S(
|
|
1890
|
+
return S(jr, {
|
|
1891
1891
|
isOpen: r,
|
|
1892
1892
|
toggle: i
|
|
1893
|
-
}), (e, t) => (x(), c("div",
|
|
1893
|
+
}), (e, t) => (x(), c("div", Mr, [E(e.$slots, "default")]));
|
|
1894
1894
|
}
|
|
1895
|
-
}),
|
|
1895
|
+
}), Pr = ["aria-expanded", "disabled"], Fr = { class: "uid-accordion-item__title" }, Ir = {
|
|
1896
1896
|
class: "uid-accordion-item__chevron",
|
|
1897
1897
|
"aria-hidden": "true"
|
|
1898
|
-
},
|
|
1898
|
+
}, Lr = ["hidden"], Rr = { class: "uid-accordion-item__body-inner" }, zr = /* @__PURE__ */ f({
|
|
1899
1899
|
__name: "UidAccordionItem",
|
|
1900
1900
|
props: {
|
|
1901
1901
|
value: {},
|
|
@@ -1906,7 +1906,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1906
1906
|
}
|
|
1907
1907
|
},
|
|
1908
1908
|
setup(t) {
|
|
1909
|
-
let n = t, r = M(), i = `${r}-header`, o = `${r}-panel`, s = p(
|
|
1909
|
+
let n = t, r = M(), i = `${r}-header`, o = `${r}-panel`, s = p(jr), f = a(() => s.isOpen(n.value));
|
|
1910
1910
|
function m() {
|
|
1911
1911
|
n.disabled || s.toggle(n.value);
|
|
1912
1912
|
}
|
|
@@ -1921,18 +1921,18 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1921
1921
|
"aria-controls": o,
|
|
1922
1922
|
disabled: t.disabled || void 0,
|
|
1923
1923
|
onClick: m
|
|
1924
|
-
}, [l("span",
|
|
1925
|
-
icon: j(
|
|
1924
|
+
}, [l("span", Fr, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), l("span", Ir, [d(e, {
|
|
1925
|
+
icon: j(Y),
|
|
1926
1926
|
size: 16
|
|
1927
|
-
}, null, 8, ["icon"])])], 8,
|
|
1927
|
+
}, null, 8, ["icon"])])], 8, Pr), l("div", {
|
|
1928
1928
|
id: o,
|
|
1929
1929
|
class: "uid-accordion-item__body",
|
|
1930
1930
|
role: "region",
|
|
1931
1931
|
"aria-labelledby": i,
|
|
1932
1932
|
hidden: !f.value
|
|
1933
|
-
}, [l("div",
|
|
1933
|
+
}, [l("div", Rr, [E(n.$slots, "default")])], 8, Lr)], 2));
|
|
1934
1934
|
}
|
|
1935
|
-
}),
|
|
1935
|
+
}), Br = { class: "uid-table-scroll" }, Vr = { class: "uid-table__head" }, Hr = ["aria-sort", "onClick"], Ur = { class: "uid-table__th-content" }, Wr = { class: "uid-table__body" }, Gr = { key: 0 }, Kr = ["colspan"], qr = { key: 1 }, Jr = ["colspan"], Yr = /* @__PURE__ */ f({
|
|
1936
1936
|
__name: "UidTable",
|
|
1937
1937
|
props: {
|
|
1938
1938
|
columns: {},
|
|
@@ -1960,10 +1960,10 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1960
1960
|
e.sortable && (i.sortKey === e.key ? f("update:sortDirection", i.sortDirection === "asc" ? "desc" : "asc") : (f("update:sortKey", e.key), f("update:sortDirection", "asc")));
|
|
1961
1961
|
}
|
|
1962
1962
|
function m(e) {
|
|
1963
|
-
return e.sortable ? i.sortKey === e.key ? i.sortDirection === "asc" ?
|
|
1963
|
+
return e.sortable ? i.sortKey === e.key ? i.sortDirection === "asc" ? K : W : ee : null;
|
|
1964
1964
|
}
|
|
1965
1965
|
let h = a(() => !i.loading && i.data.length === 0);
|
|
1966
|
-
return (r, i) => (x(), c("div", { class: _(["uid-table-wrap", { "uid-table-wrap--bordered": n.bordered }]) }, [l("div",
|
|
1966
|
+
return (r, i) => (x(), c("div", { class: _(["uid-table-wrap", { "uid-table-wrap--bordered": n.bordered }]) }, [l("div", Br, [l("table", { class: _(["uid-table", { "uid-table--striped": n.striped }]) }, [l("thead", Vr, [l("tr", null, [(x(!0), c(t, null, T(n.columns, (t) => (x(), c("th", {
|
|
1967
1967
|
key: t.key,
|
|
1968
1968
|
class: _(["uid-table__th", [
|
|
1969
1969
|
`uid-table__th--${t.align ?? "left"}`,
|
|
@@ -1973,18 +1973,18 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1973
1973
|
style: v(t.width ? { width: t.width } : void 0),
|
|
1974
1974
|
"aria-sort": n.sortKey === t.key ? n.sortDirection === "asc" ? "ascending" : "descending" : t.sortable ? "none" : void 0,
|
|
1975
1975
|
onClick: (e) => p(t)
|
|
1976
|
-
}, [l("span",
|
|
1976
|
+
}, [l("span", Ur, [u(k(t.label) + " ", 1), t.sortable ? (x(), o(e, {
|
|
1977
1977
|
key: 0,
|
|
1978
1978
|
icon: m(t),
|
|
1979
1979
|
size: 14,
|
|
1980
1980
|
class: "uid-table__sort-icon"
|
|
1981
|
-
}, null, 8, ["icon"])) : s("", !0)])], 14,
|
|
1981
|
+
}, null, 8, ["icon"])) : s("", !0)])], 14, Hr))), 128))])]), l("tbody", Wr, [n.loading ? (x(), c("tr", Gr, [l("td", {
|
|
1982
1982
|
colspan: n.columns.length,
|
|
1983
1983
|
class: "uid-table__td uid-table__td--center"
|
|
1984
|
-
}, [d(
|
|
1984
|
+
}, [d(Mt, { size: "md" })], 8, Kr)])) : h.value ? (x(), c("tr", qr, [l("td", {
|
|
1985
1985
|
colspan: n.columns.length,
|
|
1986
1986
|
class: "uid-table__td uid-table__td--empty"
|
|
1987
|
-
}, [E(r.$slots, "empty", {}, () => [u(k(n.emptyText), 1)])], 8,
|
|
1987
|
+
}, [E(r.$slots, "empty", {}, () => [u(k(n.emptyText), 1)])], 8, Jr)])) : (x(!0), c(t, { key: 2 }, T(n.data, (e, i) => (x(), c("tr", {
|
|
1988
1988
|
key: i,
|
|
1989
1989
|
class: "uid-table__row"
|
|
1990
1990
|
}, [(x(!0), c(t, null, T(n.columns, (t) => (x(), c("td", {
|
|
@@ -1992,29 +1992,29 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
1992
1992
|
class: _(["uid-table__td", `uid-table__td--${t.align ?? "left"}`])
|
|
1993
1993
|
}, [E(r.$slots, t.key, { row: e }, () => [u(k(e[t.key]), 1)])], 2))), 128))]))), 128))])], 2)])], 2));
|
|
1994
1994
|
}
|
|
1995
|
-
}),
|
|
1995
|
+
}), Xr = [
|
|
1996
1996
|
"aria-expanded",
|
|
1997
1997
|
"aria-controls",
|
|
1998
1998
|
"aria-disabled"
|
|
1999
|
-
],
|
|
1999
|
+
], Zr = { class: "uid-select__suffix" }, Qr = {
|
|
2000
2000
|
key: 0,
|
|
2001
2001
|
class: "uid-select__dropdown"
|
|
2002
|
-
},
|
|
2002
|
+
}, $r = {
|
|
2003
2003
|
key: 0,
|
|
2004
2004
|
class: "uid-select__search"
|
|
2005
|
-
},
|
|
2005
|
+
}, ei = ["id"], ti = {
|
|
2006
2006
|
key: 0,
|
|
2007
2007
|
class: "uid-select__group-label"
|
|
2008
|
-
},
|
|
2008
|
+
}, ni = [
|
|
2009
2009
|
"data-active",
|
|
2010
2010
|
"aria-selected",
|
|
2011
2011
|
"aria-disabled",
|
|
2012
2012
|
"onClick",
|
|
2013
2013
|
"onMouseenter"
|
|
2014
|
-
],
|
|
2014
|
+
], ri = {
|
|
2015
2015
|
key: 1,
|
|
2016
2016
|
class: "uid-select__empty"
|
|
2017
|
-
},
|
|
2017
|
+
}, ii = /* @__PURE__ */ f({
|
|
2018
2018
|
__name: "UidSelect",
|
|
2019
2019
|
props: /* @__PURE__ */ m({
|
|
2020
2020
|
options: {},
|
|
@@ -2050,47 +2050,47 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2050
2050
|
}
|
|
2051
2051
|
return e;
|
|
2052
2052
|
});
|
|
2053
|
-
|
|
2053
|
+
R(m, async (e) => {
|
|
2054
2054
|
if (e) {
|
|
2055
2055
|
h.value = "";
|
|
2056
2056
|
let e = A.value.findIndex((e) => e.value === p.value);
|
|
2057
2057
|
v.value = e >= 0 ? e : 0, await g(), u.searchable && E.value?.focus(), X(), document.addEventListener("pointerdown", W);
|
|
2058
2058
|
} else document.removeEventListener("pointerdown", W);
|
|
2059
|
-
}),
|
|
2059
|
+
}), R(h, () => {
|
|
2060
2060
|
v.value = 0;
|
|
2061
2061
|
});
|
|
2062
2062
|
function F() {
|
|
2063
2063
|
u.disabled || (m.value = !0);
|
|
2064
2064
|
}
|
|
2065
|
-
function
|
|
2065
|
+
function L() {
|
|
2066
2066
|
m.value = !1;
|
|
2067
2067
|
}
|
|
2068
2068
|
function V() {
|
|
2069
|
-
m.value ?
|
|
2069
|
+
m.value ? L() : F();
|
|
2070
2070
|
}
|
|
2071
2071
|
function H(e) {
|
|
2072
|
-
e.disabled || (p.value = e.value, f("change", e.value),
|
|
2072
|
+
e.disabled || (p.value = e.value, f("change", e.value), L(), S.value?.focus());
|
|
2073
2073
|
}
|
|
2074
2074
|
function U(e) {
|
|
2075
2075
|
e.stopPropagation(), p.value = null, f("change", null);
|
|
2076
2076
|
}
|
|
2077
2077
|
function W(e) {
|
|
2078
2078
|
let t = e.target;
|
|
2079
|
-
y.value?.contains(t) ||
|
|
2079
|
+
y.value?.contains(t) || L();
|
|
2080
2080
|
}
|
|
2081
2081
|
function G(e) {
|
|
2082
|
-
e.key === "ArrowDown" ? (e.preventDefault(), m.value ? ee() : F()) : e.key === "ArrowUp" ? (e.preventDefault(), m.value &&
|
|
2082
|
+
e.key === "ArrowDown" ? (e.preventDefault(), m.value ? ee() : F()) : e.key === "ArrowUp" ? (e.preventDefault(), m.value && te()) : e.key === "Enter" || e.key === " " ? (e.preventDefault(), m.value ? J() : F()) : e.key === "Escape" && L();
|
|
2083
2083
|
}
|
|
2084
2084
|
function K(e) {
|
|
2085
|
-
e.key === "ArrowDown" ? (e.preventDefault(), ee()) : e.key === "ArrowUp" ? (e.preventDefault(),
|
|
2085
|
+
e.key === "ArrowDown" ? (e.preventDefault(), ee()) : e.key === "ArrowUp" ? (e.preventDefault(), te()) : e.key === "Enter" ? (e.preventDefault(), J()) : e.key === "Escape" && (L(), S.value?.focus());
|
|
2086
2086
|
}
|
|
2087
2087
|
function ee() {
|
|
2088
2088
|
v.value = Math.min(v.value + 1, A.value.length - 1), X();
|
|
2089
2089
|
}
|
|
2090
|
-
function
|
|
2090
|
+
function te() {
|
|
2091
2091
|
v.value = Math.max(v.value - 1, 0), X();
|
|
2092
2092
|
}
|
|
2093
|
-
function
|
|
2093
|
+
function J() {
|
|
2094
2094
|
let e = A.value[v.value];
|
|
2095
2095
|
e && H(e);
|
|
2096
2096
|
}
|
|
@@ -2118,7 +2118,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2118
2118
|
"aria-disabled": n.disabled,
|
|
2119
2119
|
onClick: V,
|
|
2120
2120
|
onKeydown: G
|
|
2121
|
-
}, [l("span", { class: _(["uid-select__value", { "uid-select__value--placeholder": !O.value }]) }, k(O.value?.label ?? n.placeholder), 3), l("div",
|
|
2121
|
+
}, [l("span", { class: _(["uid-select__value", { "uid-select__value--placeholder": !O.value }]) }, k(O.value?.label ?? n.placeholder), 3), l("div", Zr, [n.clearable && p.value !== null ? (x(), c("button", {
|
|
2122
2122
|
key: 0,
|
|
2123
2123
|
type: "button",
|
|
2124
2124
|
class: "uid-select__clear",
|
|
@@ -2128,12 +2128,12 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2128
2128
|
icon: j(Z),
|
|
2129
2129
|
size: 12
|
|
2130
2130
|
}, null, 8, ["icon"])])) : s("", !0), d(e, {
|
|
2131
|
-
icon: j(
|
|
2131
|
+
icon: j(Y),
|
|
2132
2132
|
size: 16,
|
|
2133
2133
|
class: _(["uid-select__chevron", { "uid-select__chevron--open": m.value }]),
|
|
2134
2134
|
"aria-hidden": "true"
|
|
2135
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
2136
|
-
default:
|
|
2135
|
+
}, null, 8, ["icon", "class"])])], 40, Xr), d(r, { name: "uid-select-dropdown" }, {
|
|
2136
|
+
default: z(() => [m.value ? (x(), c("div", Qr, [n.searchable ? (x(), c("div", $r, [B(l("input", {
|
|
2137
2137
|
ref_key: "searchRef",
|
|
2138
2138
|
ref: E,
|
|
2139
2139
|
"onUpdate:modelValue": a[0] ||= (e) => h.value = e,
|
|
@@ -2149,7 +2149,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2149
2149
|
class: "uid-select__list",
|
|
2150
2150
|
role: "listbox",
|
|
2151
2151
|
onKeydown: K
|
|
2152
|
-
}, [A.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(P.value, ([n, r]) => (x(), c(t, { key: n }, [n ? (x(), c("div",
|
|
2152
|
+
}, [A.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(P.value, ([n, r]) => (x(), c(t, { key: n }, [n ? (x(), c("div", ti, k(n), 1)) : s("", !0), (x(!0), c(t, null, T(r, (t) => (x(), c("button", {
|
|
2153
2153
|
key: t.value,
|
|
2154
2154
|
type: "button",
|
|
2155
2155
|
class: _(["uid-select__option", {
|
|
@@ -2169,21 +2169,21 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2169
2169
|
size: 14,
|
|
2170
2170
|
"aria-hidden": "true",
|
|
2171
2171
|
class: "uid-select__check"
|
|
2172
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
2172
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, ni))), 128))], 64))), 128)) : (x(), c("div", ri, " Ничего не найдено "))], 40, ei)])) : s("", !0)]),
|
|
2173
2173
|
_: 1
|
|
2174
2174
|
})], 2));
|
|
2175
2175
|
}
|
|
2176
|
-
}),
|
|
2176
|
+
}), ai = ["aria-expanded", "aria-disabled"], oi = { class: "uid-datepicker__suffix" }, si = {
|
|
2177
2177
|
key: 0,
|
|
2178
2178
|
class: "uid-datepicker__panel",
|
|
2179
2179
|
role: "dialog",
|
|
2180
2180
|
"aria-label": "Выбор даты"
|
|
2181
|
-
},
|
|
2181
|
+
}, ci = { class: "uid-datepicker__nav" }, li = { class: "uid-datepicker__month-label" }, ui = { class: "uid-datepicker__grid" }, di = [
|
|
2182
2182
|
"disabled",
|
|
2183
2183
|
"aria-current",
|
|
2184
2184
|
"aria-selected",
|
|
2185
2185
|
"onClick"
|
|
2186
|
-
],
|
|
2186
|
+
], fi = /* @__PURE__ */ f({
|
|
2187
2187
|
__name: "UidDatePicker",
|
|
2188
2188
|
props: /* @__PURE__ */ m({
|
|
2189
2189
|
min: { default: void 0 },
|
|
@@ -2283,7 +2283,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2283
2283
|
function I() {
|
|
2284
2284
|
u.value ? F() : P();
|
|
2285
2285
|
}
|
|
2286
|
-
function
|
|
2286
|
+
function L(e) {
|
|
2287
2287
|
M(e.iso) || (o.value = e.iso, F(), p.value?.focus());
|
|
2288
2288
|
}
|
|
2289
2289
|
function B() {
|
|
@@ -2299,7 +2299,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2299
2299
|
let t = e.target;
|
|
2300
2300
|
f.value?.contains(t) || F();
|
|
2301
2301
|
}
|
|
2302
|
-
|
|
2302
|
+
R(u, (e) => {
|
|
2303
2303
|
e ? document.addEventListener("pointerdown", U) : document.removeEventListener("pointerdown", U);
|
|
2304
2304
|
});
|
|
2305
2305
|
function W(e) {
|
|
@@ -2321,39 +2321,39 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2321
2321
|
"aria-disabled": n.disabled,
|
|
2322
2322
|
onClick: I,
|
|
2323
2323
|
onKeydown: W
|
|
2324
|
-
}, [l("span", { class: _(["uid-datepicker__value", { "uid-datepicker__value--placeholder": !o.value }]) }, k(o.value ? D.value : n.placeholder), 3), l("div",
|
|
2324
|
+
}, [l("span", { class: _(["uid-datepicker__value", { "uid-datepicker__value--placeholder": !o.value }]) }, k(o.value ? D.value : n.placeholder), 3), l("div", oi, [o.value ? (x(), c("button", {
|
|
2325
2325
|
key: 0,
|
|
2326
2326
|
type: "button",
|
|
2327
2327
|
class: "uid-datepicker__clear",
|
|
2328
2328
|
"aria-label": "Очистить",
|
|
2329
2329
|
onClick: H
|
|
2330
2330
|
}, " × ")) : s("", !0), d(e, {
|
|
2331
|
-
icon: j(
|
|
2331
|
+
icon: j(Y),
|
|
2332
2332
|
size: 16,
|
|
2333
2333
|
class: _(["uid-datepicker__chevron", { "uid-datepicker__chevron--open": u.value }]),
|
|
2334
2334
|
"aria-hidden": "true"
|
|
2335
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
2336
|
-
default:
|
|
2335
|
+
}, null, 8, ["icon", "class"])])], 40, ai), d(r, { name: "uid-datepicker-panel" }, {
|
|
2336
|
+
default: z(() => [u.value ? (x(), c("div", si, [l("div", ci, [
|
|
2337
2337
|
l("button", {
|
|
2338
2338
|
type: "button",
|
|
2339
2339
|
class: "uid-datepicker__nav-btn",
|
|
2340
2340
|
"aria-label": "Предыдущий месяц",
|
|
2341
2341
|
onClick: B
|
|
2342
2342
|
}, [d(e, {
|
|
2343
|
-
icon: j(
|
|
2343
|
+
icon: j(X),
|
|
2344
2344
|
size: 16
|
|
2345
2345
|
}, null, 8, ["icon"])]),
|
|
2346
|
-
l("span",
|
|
2346
|
+
l("span", li, k(v[g.value]) + " " + k(h.value), 1),
|
|
2347
2347
|
l("button", {
|
|
2348
2348
|
type: "button",
|
|
2349
2349
|
class: "uid-datepicker__nav-btn",
|
|
2350
2350
|
"aria-label": "Следующий месяц",
|
|
2351
2351
|
onClick: V
|
|
2352
2352
|
}, [d(e, {
|
|
2353
|
-
icon: j(
|
|
2353
|
+
icon: j(ne),
|
|
2354
2354
|
size: 16
|
|
2355
2355
|
}, null, 8, ["icon"])])
|
|
2356
|
-
]), l("div",
|
|
2356
|
+
]), l("div", ui, [(x(), c(t, null, T(y, (e) => l("span", {
|
|
2357
2357
|
key: e,
|
|
2358
2358
|
class: "uid-datepicker__weekday"
|
|
2359
2359
|
}, k(e), 1)), 64)), (x(!0), c(t, null, T(O.value, (e) => (x(), c("button", {
|
|
@@ -2368,12 +2368,12 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2368
2368
|
disabled: M(e.iso),
|
|
2369
2369
|
"aria-current": e.iso === A.value ? "date" : void 0,
|
|
2370
2370
|
"aria-selected": e.iso === o.value,
|
|
2371
|
-
onClick: (t) =>
|
|
2372
|
-
}, k(e.date.getDate()), 11,
|
|
2371
|
+
onClick: (t) => L(e)
|
|
2372
|
+
}, k(e.date.getDate()), 11, di))), 128))])])) : s("", !0)]),
|
|
2373
2373
|
_: 1
|
|
2374
2374
|
})], 2));
|
|
2375
2375
|
}
|
|
2376
|
-
}),
|
|
2376
|
+
}), pi = /* @__PURE__ */ f({
|
|
2377
2377
|
__name: "UidVirtualList",
|
|
2378
2378
|
props: {
|
|
2379
2379
|
items: {},
|
|
@@ -2415,17 +2415,17 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2415
2415
|
index: r
|
|
2416
2416
|
})], 4))), 128))], 4)], 4)], 36));
|
|
2417
2417
|
}
|
|
2418
|
-
}),
|
|
2418
|
+
}), mi = {
|
|
2419
2419
|
key: 0,
|
|
2420
2420
|
class: "uid-slider__header"
|
|
2421
|
-
},
|
|
2421
|
+
}, hi = {
|
|
2422
2422
|
key: 0,
|
|
2423
2423
|
class: "uid-slider__label"
|
|
2424
|
-
},
|
|
2424
|
+
}, gi = {
|
|
2425
2425
|
key: 1,
|
|
2426
2426
|
class: "uid-slider__value",
|
|
2427
2427
|
"aria-live": "polite"
|
|
2428
|
-
},
|
|
2428
|
+
}, _i = [
|
|
2429
2429
|
"min",
|
|
2430
2430
|
"max",
|
|
2431
2431
|
"step",
|
|
@@ -2434,7 +2434,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2434
2434
|
"aria-valuemin",
|
|
2435
2435
|
"aria-valuemax",
|
|
2436
2436
|
"aria-valuenow"
|
|
2437
|
-
],
|
|
2437
|
+
], vi = /* @__PURE__ */ f({
|
|
2438
2438
|
__name: "UidSlider",
|
|
2439
2439
|
props: /* @__PURE__ */ m({
|
|
2440
2440
|
min: { default: 0 },
|
|
@@ -2460,7 +2460,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2460
2460
|
emits: ["update:modelValue"],
|
|
2461
2461
|
setup(e) {
|
|
2462
2462
|
let t = e, n = N(e, "modelValue"), r = a(() => (n.value - t.min) / (t.max - t.min) * 100), i = a(() => t.formatValue ? t.formatValue(n.value) : String(n.value));
|
|
2463
|
-
return (t, a) => (x(), c("div", { class: _(["uid-slider", { "uid-slider--disabled": e.disabled }]) }, [e.label || e.showValue ? (x(), c("div",
|
|
2463
|
+
return (t, a) => (x(), c("div", { class: _(["uid-slider", { "uid-slider--disabled": e.disabled }]) }, [e.label || e.showValue ? (x(), c("div", mi, [e.label ? (x(), c("label", hi, k(e.label), 1)) : s("", !0), e.showValue ? (x(), c("span", gi, k(i.value), 1)) : s("", !0)])) : s("", !0), B(l("input", {
|
|
2464
2464
|
"onUpdate:modelValue": a[0] ||= (e) => n.value = e,
|
|
2465
2465
|
class: "uid-slider__input",
|
|
2466
2466
|
type: "range",
|
|
@@ -2473,22 +2473,22 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2473
2473
|
"aria-valuemax": e.max,
|
|
2474
2474
|
"aria-valuenow": n.value,
|
|
2475
2475
|
style: v({ "--_fill": `${r.value}%` })
|
|
2476
|
-
}, null, 12,
|
|
2476
|
+
}, null, 12, _i), [[
|
|
2477
2477
|
I,
|
|
2478
2478
|
n.value,
|
|
2479
2479
|
void 0,
|
|
2480
2480
|
{ number: !0 }
|
|
2481
2481
|
]])], 2));
|
|
2482
2482
|
}
|
|
2483
|
-
}),
|
|
2483
|
+
}), yi = ["aria-expanded", "aria-disabled"], bi = {
|
|
2484
2484
|
key: 0,
|
|
2485
2485
|
class: "uid-colorpicker__panel",
|
|
2486
2486
|
role: "dialog",
|
|
2487
2487
|
"aria-label": "Выбор цвета"
|
|
2488
|
-
},
|
|
2488
|
+
}, xi = { class: "uid-colorpicker__controls" }, Si = { class: "uid-colorpicker__sliders" }, Ci = { class: "uid-colorpicker__inputs" }, wi = ["value"], Ti = {
|
|
2489
2489
|
key: 0,
|
|
2490
2490
|
class: "uid-colorpicker__presets"
|
|
2491
|
-
},
|
|
2491
|
+
}, Ei = ["aria-label", "onClick"], Di = /* @__PURE__ */ f({
|
|
2492
2492
|
__name: "UidColorPicker",
|
|
2493
2493
|
props: /* @__PURE__ */ m({
|
|
2494
2494
|
disabled: {
|
|
@@ -2530,7 +2530,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2530
2530
|
let [e, t, n] = M(f.value, p.value, m.value);
|
|
2531
2531
|
return i.alpha && h.value < 100 ? `#${F(e)}${F(t)}${F(n)}${F(h.value / 100 * 255)}` : `#${F(e)}${F(t)}${F(n)}`;
|
|
2532
2532
|
}
|
|
2533
|
-
function
|
|
2533
|
+
function L(e) {
|
|
2534
2534
|
let t = e.replace("#", "").toLowerCase();
|
|
2535
2535
|
if (t.length === 6) {
|
|
2536
2536
|
let e = parseInt(t.slice(0, 2), 16), n = parseInt(t.slice(2, 4), 16), r = parseInt(t.slice(4, 6), 16);
|
|
@@ -2554,7 +2554,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2554
2554
|
}
|
|
2555
2555
|
function B() {
|
|
2556
2556
|
if (!u.value) return;
|
|
2557
|
-
let e =
|
|
2557
|
+
let e = L(u.value);
|
|
2558
2558
|
if (!e) return;
|
|
2559
2559
|
let [t, n, r, i] = e, [a, o, s] = P(t, n, r);
|
|
2560
2560
|
f.value = a, p.value = o, m.value = s, h.value = i, D.value = I().toUpperCase();
|
|
@@ -2563,11 +2563,11 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2563
2563
|
let e = I();
|
|
2564
2564
|
u.value = e, o("change", e), D.value = e.toUpperCase();
|
|
2565
2565
|
}
|
|
2566
|
-
let H = a(() => `hsl(${f.value}, 100%, 50%)`), U = a(() => `${p.value}%`), W = a(() => `${100 - m.value}%`), G = a(() => `${f.value / 360 * 100}%`), K = a(() => `${h.value}%`), [ee,
|
|
2566
|
+
let H = a(() => `hsl(${f.value}, 100%, 50%)`), U = a(() => `${p.value}%`), W = a(() => `${100 - m.value}%`), G = a(() => `${f.value / 360 * 100}%`), K = a(() => `${h.value}%`), [ee, te, q] = [
|
|
2567
2567
|
a(() => M(f.value, p.value, m.value)[0]),
|
|
2568
2568
|
a(() => M(f.value, p.value, m.value)[1]),
|
|
2569
2569
|
a(() => M(f.value, p.value, m.value)[2])
|
|
2570
|
-
],
|
|
2570
|
+
], J = a(() => `rgb(${ee.value}, ${te.value}, ${q.value})`);
|
|
2571
2571
|
function Y(e, t) {
|
|
2572
2572
|
if (!e) return null;
|
|
2573
2573
|
let n = e.getBoundingClientRect();
|
|
@@ -2619,7 +2619,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2619
2619
|
D.value = e.target.value;
|
|
2620
2620
|
}
|
|
2621
2621
|
function de() {
|
|
2622
|
-
let e =
|
|
2622
|
+
let e = L(D.value);
|
|
2623
2623
|
if (e) {
|
|
2624
2624
|
let [t, n, r, a] = e, [o, s, c] = P(t, n, r);
|
|
2625
2625
|
f.value = o, p.value = s, m.value = c, i.alpha && (h.value = a), V();
|
|
@@ -2629,24 +2629,24 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2629
2629
|
e.key === "Enter" && de();
|
|
2630
2630
|
}
|
|
2631
2631
|
function pe(e) {
|
|
2632
|
-
let t =
|
|
2632
|
+
let t = L(e);
|
|
2633
2633
|
if (!t) return;
|
|
2634
2634
|
let [n, r, a, o] = t, [s, c, l] = P(n, r, a);
|
|
2635
2635
|
f.value = s, p.value = c, m.value = l, i.alpha && (h.value = o), V();
|
|
2636
2636
|
}
|
|
2637
|
-
function
|
|
2637
|
+
function me() {
|
|
2638
2638
|
i.disabled || (B(), u.value || (D.value = ""), g.value = !0);
|
|
2639
2639
|
}
|
|
2640
|
-
function
|
|
2640
|
+
function Z() {
|
|
2641
2641
|
g.value = !1;
|
|
2642
2642
|
}
|
|
2643
2643
|
function he() {
|
|
2644
|
-
g.value ?
|
|
2644
|
+
g.value ? Z() : me();
|
|
2645
2645
|
}
|
|
2646
2646
|
function ge(e) {
|
|
2647
|
-
y.value?.contains(e.target) ||
|
|
2647
|
+
y.value?.contains(e.target) || Z();
|
|
2648
2648
|
}
|
|
2649
|
-
return
|
|
2649
|
+
return R(g, (e) => {
|
|
2650
2650
|
e ? document.addEventListener("pointerdown", ge) : document.removeEventListener("pointerdown", ge);
|
|
2651
2651
|
}), b(() => document.removeEventListener("pointerdown", ge)), (n, i) => (x(), c("div", {
|
|
2652
2652
|
ref_key: "containerRef",
|
|
@@ -2664,8 +2664,8 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2664
2664
|
}, [l("span", {
|
|
2665
2665
|
class: "uid-colorpicker__swatch",
|
|
2666
2666
|
style: v(u.value ? { background: u.value } : {})
|
|
2667
|
-
}, null, 4), l("span", { class: _(["uid-colorpicker__trigger-label", { "uid-colorpicker__trigger-label--empty": !u.value }]) }, k(u.value ? u.value.toUpperCase() : "Выберите цвет"), 3)], 8,
|
|
2668
|
-
default:
|
|
2667
|
+
}, null, 4), l("span", { class: _(["uid-colorpicker__trigger-label", { "uid-colorpicker__trigger-label--empty": !u.value }]) }, k(u.value ? u.value.toUpperCase() : "Выберите цвет"), 3)], 8, yi), d(r, { name: "uid-colorpicker-panel" }, {
|
|
2668
|
+
default: z(() => [g.value ? (x(), c("div", bi, [
|
|
2669
2669
|
l("div", {
|
|
2670
2670
|
ref_key: "gradientRef",
|
|
2671
2671
|
ref: S,
|
|
@@ -2681,7 +2681,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2681
2681
|
top: W.value
|
|
2682
2682
|
})
|
|
2683
2683
|
}, null, 4)], 36),
|
|
2684
|
-
l("div",
|
|
2684
|
+
l("div", xi, [l("div", Si, [l("div", {
|
|
2685
2685
|
ref_key: "hueSliderRef",
|
|
2686
2686
|
ref: C,
|
|
2687
2687
|
class: "uid-colorpicker__hue-track",
|
|
@@ -2696,7 +2696,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2696
2696
|
ref_key: "alphaSliderRef",
|
|
2697
2697
|
ref: E,
|
|
2698
2698
|
class: "uid-colorpicker__alpha-track",
|
|
2699
|
-
style: v({ "--_color":
|
|
2699
|
+
style: v({ "--_color": J.value }),
|
|
2700
2700
|
onPointerdown: se,
|
|
2701
2701
|
onPointermove: ce,
|
|
2702
2702
|
onPointerup: le
|
|
@@ -2705,9 +2705,9 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2705
2705
|
style: v({ left: K.value })
|
|
2706
2706
|
}, null, 4)], 36)) : s("", !0)]), l("span", {
|
|
2707
2707
|
class: "uid-colorpicker__preview",
|
|
2708
|
-
style: v({ background:
|
|
2708
|
+
style: v({ background: J.value })
|
|
2709
2709
|
}, null, 4)]),
|
|
2710
|
-
l("div",
|
|
2710
|
+
l("div", Ci, [i[0] ||= l("label", { class: "uid-colorpicker__input-label" }, "HEX", -1), l("input", {
|
|
2711
2711
|
class: "uid-colorpicker__hex-input",
|
|
2712
2712
|
type: "text",
|
|
2713
2713
|
value: D.value,
|
|
@@ -2716,37 +2716,37 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2716
2716
|
onInput: ue,
|
|
2717
2717
|
onBlur: de,
|
|
2718
2718
|
onKeydown: fe
|
|
2719
|
-
}, null, 40,
|
|
2720
|
-
e.presets && e.presets.length ? (x(), c("div",
|
|
2719
|
+
}, null, 40, wi)]),
|
|
2720
|
+
e.presets && e.presets.length ? (x(), c("div", Ti, [(x(!0), c(t, null, T(e.presets, (e) => (x(), c("button", {
|
|
2721
2721
|
key: e,
|
|
2722
2722
|
type: "button",
|
|
2723
2723
|
class: _(["uid-colorpicker__preset", { "uid-colorpicker__preset--active": u.value === e || u.value === e.toLowerCase() || u.value?.toUpperCase() === e.toUpperCase() }]),
|
|
2724
2724
|
style: v({ background: e }),
|
|
2725
2725
|
"aria-label": e,
|
|
2726
2726
|
onClick: (t) => pe(e)
|
|
2727
|
-
}, null, 14,
|
|
2727
|
+
}, null, 14, Ei))), 128))])) : s("", !0)
|
|
2728
2728
|
])) : s("", !0)]),
|
|
2729
2729
|
_: 1
|
|
2730
2730
|
})], 2));
|
|
2731
2731
|
}
|
|
2732
|
-
}),
|
|
2732
|
+
}), Oi = { class: "uid-command__search" }, ki = ["placeholder"], Ai = {
|
|
2733
2733
|
key: 0,
|
|
2734
2734
|
class: "uid-command__group-label"
|
|
2735
|
-
},
|
|
2735
|
+
}, ji = [
|
|
2736
2736
|
"data-active",
|
|
2737
2737
|
"aria-selected",
|
|
2738
2738
|
"onClick",
|
|
2739
2739
|
"onMouseenter"
|
|
2740
|
-
],
|
|
2740
|
+
], Mi = { class: "uid-command__item-text" }, Ni = { class: "uid-command__item-label" }, Pi = {
|
|
2741
2741
|
key: 0,
|
|
2742
2742
|
class: "uid-command__item-desc"
|
|
2743
|
-
},
|
|
2743
|
+
}, Fi = {
|
|
2744
2744
|
key: 0,
|
|
2745
2745
|
class: "uid-command__item-shortcut"
|
|
2746
|
-
},
|
|
2746
|
+
}, Ii = {
|
|
2747
2747
|
key: 1,
|
|
2748
2748
|
class: "uid-command__empty"
|
|
2749
|
-
},
|
|
2749
|
+
}, Li = /* @__PURE__ */ f({
|
|
2750
2750
|
__name: "UidCommand",
|
|
2751
2751
|
props: /* @__PURE__ */ m({
|
|
2752
2752
|
commands: {},
|
|
@@ -2761,7 +2761,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2761
2761
|
}),
|
|
2762
2762
|
emits: ["update:modelValue"],
|
|
2763
2763
|
setup(i) {
|
|
2764
|
-
let u = i, f = N(i, "modelValue"), p = w(""), m = w(0), h = w(null), v = w(null), S = w(null), { activate: C, deactivate: E } =
|
|
2764
|
+
let u = i, f = N(i, "modelValue"), p = w(""), m = w(0), h = w(null), v = w(null), S = w(null), { activate: C, deactivate: E } = rn(h), { lock: D, unlock: O } = on(), A = a(() => {
|
|
2765
2765
|
let e = p.value.trim().toLowerCase();
|
|
2766
2766
|
return e ? u.commands.filter((t) => t.label.toLowerCase().includes(e) || t.description?.toLowerCase().includes(e)) : u.commands;
|
|
2767
2767
|
}), M = a(() => {
|
|
@@ -2772,9 +2772,9 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2772
2772
|
}
|
|
2773
2773
|
return e;
|
|
2774
2774
|
});
|
|
2775
|
-
|
|
2775
|
+
R(f, async (e) => {
|
|
2776
2776
|
e ? (p.value = "", m.value = 0, D(), await g(), C(), v.value?.focus(), document.addEventListener("keydown", U)) : (O(), E(), document.removeEventListener("keydown", U));
|
|
2777
|
-
}),
|
|
2777
|
+
}), R(p, () => {
|
|
2778
2778
|
m.value = 0;
|
|
2779
2779
|
});
|
|
2780
2780
|
function P() {
|
|
@@ -2783,12 +2783,12 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2783
2783
|
function F(e) {
|
|
2784
2784
|
e.action(), P();
|
|
2785
2785
|
}
|
|
2786
|
-
function
|
|
2786
|
+
function L() {
|
|
2787
2787
|
let e = A.value[m.value];
|
|
2788
2788
|
e && F(e);
|
|
2789
2789
|
}
|
|
2790
2790
|
function H(e) {
|
|
2791
|
-
e.key === "ArrowDown" ? (e.preventDefault(), m.value = Math.min(m.value + 1, A.value.length - 1), W()) : e.key === "ArrowUp" ? (e.preventDefault(), m.value = Math.max(m.value - 1, 0), W()) : e.key === "Enter" && (e.preventDefault(),
|
|
2791
|
+
e.key === "ArrowDown" ? (e.preventDefault(), m.value = Math.min(m.value + 1, A.value.length - 1), W()) : e.key === "ArrowUp" ? (e.preventDefault(), m.value = Math.max(m.value - 1, 0), W()) : e.key === "Enter" && (e.preventDefault(), L());
|
|
2792
2792
|
}
|
|
2793
2793
|
function U(e) {
|
|
2794
2794
|
e.key === "Escape" && P();
|
|
@@ -2804,10 +2804,10 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2804
2804
|
return y(() => document.addEventListener("keydown", G)), b(() => {
|
|
2805
2805
|
document.removeEventListener("keydown", G), document.removeEventListener("keydown", U), O(), E();
|
|
2806
2806
|
}), (a, u) => (x(), o(n, { to: "body" }, [d(r, { name: "uid-command" }, {
|
|
2807
|
-
default:
|
|
2807
|
+
default: z(() => [f.value ? (x(), c("div", {
|
|
2808
2808
|
key: 0,
|
|
2809
2809
|
class: "uid-command-overlay",
|
|
2810
|
-
onClick:
|
|
2810
|
+
onClick: V(P, ["self"])
|
|
2811
2811
|
}, [l("div", {
|
|
2812
2812
|
ref_key: "panelRef",
|
|
2813
2813
|
ref: h,
|
|
@@ -2816,12 +2816,12 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2816
2816
|
"aria-modal": "true",
|
|
2817
2817
|
"aria-label": "Палитра команд",
|
|
2818
2818
|
onKeydown: H
|
|
2819
|
-
}, [l("div",
|
|
2820
|
-
icon: j(
|
|
2819
|
+
}, [l("div", Oi, [d(e, {
|
|
2820
|
+
icon: j(ue),
|
|
2821
2821
|
size: 16,
|
|
2822
2822
|
class: "uid-command__search-icon",
|
|
2823
2823
|
"aria-hidden": "true"
|
|
2824
|
-
}, null, 8, ["icon"]),
|
|
2824
|
+
}, null, 8, ["icon"]), B(l("input", {
|
|
2825
2825
|
ref_key: "inputRef",
|
|
2826
2826
|
ref: v,
|
|
2827
2827
|
"onUpdate:modelValue": u[0] ||= (e) => p.value = e,
|
|
@@ -2831,12 +2831,12 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2831
2831
|
autocomplete: "off",
|
|
2832
2832
|
spellcheck: "false",
|
|
2833
2833
|
"aria-autocomplete": "list"
|
|
2834
|
-
}, null, 8,
|
|
2834
|
+
}, null, 8, ki), [[I, p.value]])]), l("div", {
|
|
2835
2835
|
ref_key: "listRef",
|
|
2836
2836
|
ref: S,
|
|
2837
2837
|
class: "uid-command__list",
|
|
2838
2838
|
role: "listbox"
|
|
2839
|
-
}, [A.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(M.value, ([e, n]) => (x(), c(t, { key: e }, [e ? (x(), c("div",
|
|
2839
|
+
}, [A.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(M.value, ([e, n]) => (x(), c(t, { key: e }, [e ? (x(), c("div", Ai, k(e), 1)) : s("", !0), (x(!0), c(t, null, T(n, (e) => (x(), c("button", {
|
|
2840
2840
|
key: e.id,
|
|
2841
2841
|
class: _(["uid-command__item", { "uid-command__item--active": A.value.indexOf(e) === m.value }]),
|
|
2842
2842
|
"data-active": A.value.indexOf(e) === m.value ? "true" : void 0,
|
|
@@ -2845,18 +2845,18 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2845
2845
|
type: "button",
|
|
2846
2846
|
onClick: (t) => F(e),
|
|
2847
2847
|
onMouseenter: (t) => m.value = A.value.indexOf(e)
|
|
2848
|
-
}, [l("div",
|
|
2848
|
+
}, [l("div", Mi, [l("span", Ni, k(e.label), 1), e.description ? (x(), c("span", Pi, k(e.description), 1)) : s("", !0)]), e.shortcut ? (x(), c("div", Fi, [(x(!0), c(t, null, T(e.shortcut, (e) => (x(), c("kbd", {
|
|
2849
2849
|
key: e,
|
|
2850
2850
|
class: "uid-command__kbd"
|
|
2851
|
-
}, k(e), 1))), 128))])) : s("", !0)], 42,
|
|
2851
|
+
}, k(e), 1))), 128))])) : s("", !0)], 42, ji))), 128))], 64))), 128)) : (x(), c("div", Ii, k(i.emptyText), 1))], 512)], 544)])) : s("", !0)]),
|
|
2852
2852
|
_: 1
|
|
2853
2853
|
})]));
|
|
2854
2854
|
}
|
|
2855
|
-
}),
|
|
2855
|
+
}), Ri = ["for"], zi = {
|
|
2856
2856
|
key: 0,
|
|
2857
2857
|
class: "uid-number-input__required",
|
|
2858
2858
|
"aria-hidden": "true"
|
|
2859
|
-
},
|
|
2859
|
+
}, Bi = { class: "uid-number-input__control" }, Vi = ["disabled", "aria-label"], Hi = [
|
|
2860
2860
|
"id",
|
|
2861
2861
|
"name",
|
|
2862
2862
|
"placeholder",
|
|
@@ -2869,7 +2869,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2869
2869
|
"value",
|
|
2870
2870
|
"aria-invalid",
|
|
2871
2871
|
"aria-describedby"
|
|
2872
|
-
],
|
|
2872
|
+
], Ui = ["disabled", "aria-label"], Wi = ["id"], Gi = /* @__PURE__ */ f({
|
|
2873
2873
|
__name: "UidNumberInput",
|
|
2874
2874
|
props: /* @__PURE__ */ m({
|
|
2875
2875
|
min: { default: void 0 },
|
|
@@ -2962,8 +2962,8 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2962
2962
|
key: 0,
|
|
2963
2963
|
for: j(f),
|
|
2964
2964
|
class: "uid-number-input__label"
|
|
2965
|
-
}, [u(k(t.label) + " ", 1), t.required ? (x(), c("span",
|
|
2966
|
-
l("div",
|
|
2965
|
+
}, [u(k(t.label) + " ", 1), t.required ? (x(), c("span", zi, "*")) : s("", !0)], 8, Ri)) : s("", !0),
|
|
2966
|
+
l("div", Bi, [
|
|
2967
2967
|
t.controls ? (x(), c("button", {
|
|
2968
2968
|
key: 0,
|
|
2969
2969
|
type: "button",
|
|
@@ -2973,9 +2973,9 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2973
2973
|
tabindex: "-1",
|
|
2974
2974
|
onClick: C
|
|
2975
2975
|
}, [d(e, {
|
|
2976
|
-
icon: j(
|
|
2976
|
+
icon: j(ce),
|
|
2977
2977
|
size: 14
|
|
2978
|
-
}, null, 8, ["icon"])], 8,
|
|
2978
|
+
}, null, 8, ["icon"])], 8, Vi)) : s("", !0),
|
|
2979
2979
|
l("input", {
|
|
2980
2980
|
id: j(f),
|
|
2981
2981
|
class: "uid-number-input__input",
|
|
@@ -2996,7 +2996,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
2996
2996
|
onBlur: T,
|
|
2997
2997
|
onFocus: r[0] ||= (e) => i("focus", e),
|
|
2998
2998
|
onKeydown: E
|
|
2999
|
-
}, null, 40,
|
|
2999
|
+
}, null, 40, Hi),
|
|
3000
3000
|
t.controls ? (x(), c("button", {
|
|
3001
3001
|
key: 1,
|
|
3002
3002
|
type: "button",
|
|
@@ -3006,23 +3006,23 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3006
3006
|
tabindex: "-1",
|
|
3007
3007
|
onClick: S
|
|
3008
3008
|
}, [d(e, {
|
|
3009
|
-
icon: j(
|
|
3009
|
+
icon: j(le),
|
|
3010
3010
|
size: 14
|
|
3011
|
-
}, null, 8, ["icon"])], 8,
|
|
3011
|
+
}, null, 8, ["icon"])], 8, Ui)) : s("", !0)
|
|
3012
3012
|
]),
|
|
3013
3013
|
m.value ? (x(), c("p", {
|
|
3014
3014
|
key: 1,
|
|
3015
3015
|
id: `${j(f)}-hint`,
|
|
3016
3016
|
class: _(["uid-number-input__hint", p.value && "uid-number-input__hint--error"])
|
|
3017
|
-
}, k(m.value), 11,
|
|
3017
|
+
}, k(m.value), 11, Wi)) : s("", !0)
|
|
3018
3018
|
], 2));
|
|
3019
3019
|
}
|
|
3020
|
-
}),
|
|
3020
|
+
}), Ki = ["aria-expanded", "aria-disabled"], qi = {
|
|
3021
3021
|
key: 0,
|
|
3022
3022
|
class: "uid-timepicker__panel",
|
|
3023
3023
|
role: "dialog",
|
|
3024
3024
|
"aria-label": "Выбор времени"
|
|
3025
|
-
},
|
|
3025
|
+
}, Ji = { class: "uid-timepicker__columns" }, Yi = ["onClick"], Xi = ["onClick"], Zi = ["onClick"], Qi = /* @__PURE__ */ f({
|
|
3026
3026
|
__name: "UidTimePicker",
|
|
3027
3027
|
props: /* @__PURE__ */ m({
|
|
3028
3028
|
step: { default: 5 },
|
|
@@ -3068,7 +3068,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3068
3068
|
return o.withSeconds ? `${t(e.h)}:${t(e.m)}:${t(e.s)}` : `${t(e.h)}:${t(e.m)}`;
|
|
3069
3069
|
}
|
|
3070
3070
|
let D = w(C(f.value));
|
|
3071
|
-
|
|
3071
|
+
R(() => f.value, (e) => {
|
|
3072
3072
|
D.value = C(e);
|
|
3073
3073
|
});
|
|
3074
3074
|
let O = a(() => o.hour12 ? Array.from({ length: 12 }, (e, t) => t + 1) : Array.from({ length: 24 }, (e, t) => t)), A = a(() => Array.from({ length: Math.ceil(60 / o.step) }, (e, t) => t * o.step)), M = a(() => Array.from({ length: Math.ceil(60 / o.step) }, (e, t) => t * o.step)), P = a(() => {
|
|
@@ -3084,11 +3084,11 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3084
3084
|
function I() {
|
|
3085
3085
|
o.disabled || (D.value = C(f.value), p.value = !0);
|
|
3086
3086
|
}
|
|
3087
|
-
function
|
|
3087
|
+
function L() {
|
|
3088
3088
|
p.value = !1;
|
|
3089
3089
|
}
|
|
3090
3090
|
function B() {
|
|
3091
|
-
p.value ?
|
|
3091
|
+
p.value ? L() : I();
|
|
3092
3092
|
}
|
|
3093
3093
|
function V(e) {
|
|
3094
3094
|
D.value = {
|
|
@@ -3110,7 +3110,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3110
3110
|
}
|
|
3111
3111
|
function W() {
|
|
3112
3112
|
let e = E(D.value);
|
|
3113
|
-
f.value = e, u("change", e),
|
|
3113
|
+
f.value = e, u("change", e), L(), h.value?.focus();
|
|
3114
3114
|
}
|
|
3115
3115
|
function G() {
|
|
3116
3116
|
let e = /* @__PURE__ */ new Date(), t = o.step;
|
|
@@ -3125,12 +3125,12 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3125
3125
|
}
|
|
3126
3126
|
function ee(e) {
|
|
3127
3127
|
let t = e.target;
|
|
3128
|
-
m.value?.contains(t) ||
|
|
3128
|
+
m.value?.contains(t) || L();
|
|
3129
3129
|
}
|
|
3130
|
-
function
|
|
3131
|
-
e.key === "Enter" || e.key === " " ? (e.preventDefault(), B()) : e.key === "Escape" &&
|
|
3130
|
+
function te(e) {
|
|
3131
|
+
e.key === "Enter" || e.key === " " ? (e.preventDefault(), B()) : e.key === "Escape" && L();
|
|
3132
3132
|
}
|
|
3133
|
-
function
|
|
3133
|
+
function q() {
|
|
3134
3134
|
g(() => {
|
|
3135
3135
|
let e = (e, t, n) => {
|
|
3136
3136
|
if (!e) return;
|
|
@@ -3142,8 +3142,8 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3142
3142
|
e(v.value, D.value.h, O.value), e(y.value, D.value.m, A.value), o.withSeconds && e(S.value, D.value.s, M.value);
|
|
3143
3143
|
});
|
|
3144
3144
|
}
|
|
3145
|
-
return
|
|
3146
|
-
e ? (document.addEventListener("pointerdown", ee),
|
|
3145
|
+
return R(p, (e) => {
|
|
3146
|
+
e ? (document.addEventListener("pointerdown", ee), q()) : document.removeEventListener("pointerdown", ee);
|
|
3147
3147
|
}), b(() => document.removeEventListener("pointerdown", ee)), (i, a) => (x(), c("div", {
|
|
3148
3148
|
ref_key: "containerRef",
|
|
3149
3149
|
ref: m,
|
|
@@ -3159,10 +3159,10 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3159
3159
|
"aria-expanded": p.value,
|
|
3160
3160
|
"aria-disabled": n.disabled,
|
|
3161
3161
|
onClick: B,
|
|
3162
|
-
onKeydown:
|
|
3162
|
+
onKeydown: te
|
|
3163
3163
|
}, [
|
|
3164
3164
|
d(e, {
|
|
3165
|
-
icon: j(
|
|
3165
|
+
icon: j(re),
|
|
3166
3166
|
size: 16,
|
|
3167
3167
|
class: "uid-timepicker__icon",
|
|
3168
3168
|
"aria-hidden": "true"
|
|
@@ -3175,8 +3175,8 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3175
3175
|
"aria-label": "Очистить",
|
|
3176
3176
|
onClick: K
|
|
3177
3177
|
}, " × ")) : s("", !0)
|
|
3178
|
-
], 40,
|
|
3179
|
-
default:
|
|
3178
|
+
], 40, Ki), d(r, { name: "uid-timepicker-panel" }, {
|
|
3179
|
+
default: z(() => [p.value ? (x(), c("div", qi, [l("div", Ji, [
|
|
3180
3180
|
l("div", {
|
|
3181
3181
|
ref_key: "hourColRef",
|
|
3182
3182
|
ref: v,
|
|
@@ -3186,7 +3186,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3186
3186
|
type: "button",
|
|
3187
3187
|
class: _(["uid-timepicker__cell", { "uid-timepicker__cell--selected": D.value.h === e }]),
|
|
3188
3188
|
onClick: (t) => V(e)
|
|
3189
|
-
}, k(F(e)), 11,
|
|
3189
|
+
}, k(F(e)), 11, Yi))), 128))], 512),
|
|
3190
3190
|
l("div", {
|
|
3191
3191
|
ref_key: "minuteColRef",
|
|
3192
3192
|
ref: y,
|
|
@@ -3196,7 +3196,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3196
3196
|
type: "button",
|
|
3197
3197
|
class: _(["uid-timepicker__cell", { "uid-timepicker__cell--selected": D.value.m === e }]),
|
|
3198
3198
|
onClick: (t) => H(e)
|
|
3199
|
-
}, k(F(e)), 11,
|
|
3199
|
+
}, k(F(e)), 11, Xi))), 128))], 512),
|
|
3200
3200
|
n.withSeconds ? (x(), c("div", {
|
|
3201
3201
|
key: 0,
|
|
3202
3202
|
ref_key: "secondColRef",
|
|
@@ -3207,7 +3207,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3207
3207
|
type: "button",
|
|
3208
3208
|
class: _(["uid-timepicker__cell", { "uid-timepicker__cell--selected": D.value.s === e }]),
|
|
3209
3209
|
onClick: (t) => U(e)
|
|
3210
|
-
}, k(F(e)), 11,
|
|
3210
|
+
}, k(F(e)), 11, Zi))), 128))], 512)) : s("", !0)
|
|
3211
3211
|
]), l("div", { class: "uid-timepicker__footer" }, [l("button", {
|
|
3212
3212
|
type: "button",
|
|
3213
3213
|
class: "uid-timepicker__btn",
|
|
@@ -3220,20 +3220,20 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3220
3220
|
_: 1
|
|
3221
3221
|
})], 2));
|
|
3222
3222
|
}
|
|
3223
|
-
}),
|
|
3223
|
+
}), $i = ["aria-expanded", "aria-disabled"], ea = {
|
|
3224
3224
|
key: 0,
|
|
3225
3225
|
class: "uid-daterange__panel",
|
|
3226
3226
|
role: "dialog",
|
|
3227
3227
|
"aria-label": "Выбор диапазона дат"
|
|
3228
|
-
},
|
|
3228
|
+
}, ta = { class: "uid-daterange__months" }, na = { class: "uid-daterange__month" }, ra = { class: "uid-daterange__nav" }, ia = { class: "uid-daterange__month-label" }, aa = { class: "uid-daterange__grid" }, oa = [
|
|
3229
3229
|
"disabled",
|
|
3230
3230
|
"onClick",
|
|
3231
3231
|
"onMouseenter"
|
|
3232
|
-
],
|
|
3232
|
+
], sa = { class: "uid-daterange__month" }, ca = { class: "uid-daterange__nav" }, la = { class: "uid-daterange__month-label" }, ua = { class: "uid-daterange__grid" }, da = [
|
|
3233
3233
|
"disabled",
|
|
3234
3234
|
"onClick",
|
|
3235
3235
|
"onMouseenter"
|
|
3236
|
-
],
|
|
3236
|
+
], fa = { class: "uid-daterange__footer" }, pa = /* @__PURE__ */ f({
|
|
3237
3237
|
__name: "UidDateRangePicker",
|
|
3238
3238
|
props: /* @__PURE__ */ m({
|
|
3239
3239
|
min: { default: void 0 },
|
|
@@ -3326,7 +3326,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3326
3326
|
}
|
|
3327
3327
|
return o;
|
|
3328
3328
|
}
|
|
3329
|
-
let I = a(() => F(v.value, y.value, 0)),
|
|
3329
|
+
let I = a(() => F(v.value, y.value, 0)), L = a(() => {
|
|
3330
3330
|
let e = y.value === 11 ? 0 : y.value + 1;
|
|
3331
3331
|
return F(y.value === 11 ? v.value + 1 : v.value, e, 1);
|
|
3332
3332
|
}), B = a(() => `${E[y.value]} ${v.value}`), V = a(() => {
|
|
@@ -3353,7 +3353,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3353
3353
|
}
|
|
3354
3354
|
return e === f.value.end;
|
|
3355
3355
|
}
|
|
3356
|
-
function
|
|
3356
|
+
function ee() {
|
|
3357
3357
|
if (!o.disabled) {
|
|
3358
3358
|
if (S.value = null, C.value = null, f.value.start) {
|
|
3359
3359
|
let e = O(f.value.start);
|
|
@@ -3362,13 +3362,13 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3362
3362
|
p.value = !0;
|
|
3363
3363
|
}
|
|
3364
3364
|
}
|
|
3365
|
-
function
|
|
3365
|
+
function q() {
|
|
3366
3366
|
p.value = !1, S.value = null, C.value = null;
|
|
3367
3367
|
}
|
|
3368
|
-
function
|
|
3369
|
-
p.value ?
|
|
3368
|
+
function J() {
|
|
3369
|
+
p.value ? q() : ee();
|
|
3370
3370
|
}
|
|
3371
|
-
function
|
|
3371
|
+
function Y(e) {
|
|
3372
3372
|
if (U(e.iso) || !e.current) return;
|
|
3373
3373
|
if (!S.value) {
|
|
3374
3374
|
S.value = e.iso;
|
|
@@ -3378,7 +3378,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3378
3378
|
start: t,
|
|
3379
3379
|
end: n
|
|
3380
3380
|
};
|
|
3381
|
-
f.value = r, u("change", r),
|
|
3381
|
+
f.value = r, u("change", r), q(), h.value?.focus();
|
|
3382
3382
|
}
|
|
3383
3383
|
function re(e) {
|
|
3384
3384
|
S.value && (C.value = e);
|
|
@@ -3404,17 +3404,17 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3404
3404
|
start: A(n),
|
|
3405
3405
|
end: A(t)
|
|
3406
3406
|
};
|
|
3407
|
-
f.value = r, u("change", r),
|
|
3407
|
+
f.value = r, u("change", r), q();
|
|
3408
3408
|
}
|
|
3409
3409
|
function ce(e) {
|
|
3410
3410
|
let t = e.target;
|
|
3411
|
-
m.value?.contains(t) ||
|
|
3411
|
+
m.value?.contains(t) || q();
|
|
3412
3412
|
}
|
|
3413
|
-
|
|
3413
|
+
R(p, (e) => {
|
|
3414
3414
|
e ? document.addEventListener("pointerdown", ce) : document.removeEventListener("pointerdown", ce);
|
|
3415
3415
|
});
|
|
3416
3416
|
function le(e) {
|
|
3417
|
-
e.key === "Enter" || e.key === " " ? (e.preventDefault(),
|
|
3417
|
+
e.key === "Enter" || e.key === " " ? (e.preventDefault(), J()) : e.key === "Escape" && q();
|
|
3418
3418
|
}
|
|
3419
3419
|
return b(() => document.removeEventListener("pointerdown", ce)), (i, a) => (x(), c("div", {
|
|
3420
3420
|
ref_key: "containerRef",
|
|
@@ -3430,11 +3430,11 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3430
3430
|
tabindex: "0",
|
|
3431
3431
|
"aria-expanded": p.value,
|
|
3432
3432
|
"aria-disabled": n.disabled,
|
|
3433
|
-
onClick:
|
|
3433
|
+
onClick: J,
|
|
3434
3434
|
onKeydown: le
|
|
3435
3435
|
}, [
|
|
3436
3436
|
d(e, {
|
|
3437
|
-
icon: j(
|
|
3437
|
+
icon: j(te),
|
|
3438
3438
|
size: 16,
|
|
3439
3439
|
class: "uid-daterange__icon",
|
|
3440
3440
|
"aria-hidden": "true"
|
|
@@ -3447,28 +3447,28 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3447
3447
|
"aria-label": "Очистить",
|
|
3448
3448
|
onClick: oe
|
|
3449
3449
|
}, " × ")) : s("", !0)
|
|
3450
|
-
], 40,
|
|
3451
|
-
default:
|
|
3450
|
+
], 40, $i), d(r, { name: "uid-daterange-panel" }, {
|
|
3451
|
+
default: z(() => [p.value ? (x(), c("div", ea, [l("div", ta, [l("div", na, [l("div", ra, [
|
|
3452
3452
|
l("button", {
|
|
3453
3453
|
type: "button",
|
|
3454
3454
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--prev",
|
|
3455
3455
|
"aria-label": "Предыдущий месяц",
|
|
3456
3456
|
onClick: ie
|
|
3457
3457
|
}, [d(e, {
|
|
3458
|
-
icon: j(
|
|
3458
|
+
icon: j(X),
|
|
3459
3459
|
size: 16
|
|
3460
3460
|
}, null, 8, ["icon"])]),
|
|
3461
|
-
l("span",
|
|
3461
|
+
l("span", ia, k(B.value), 1),
|
|
3462
3462
|
l("button", {
|
|
3463
3463
|
type: "button",
|
|
3464
3464
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--next",
|
|
3465
3465
|
"aria-label": "Следующий месяц",
|
|
3466
3466
|
onClick: ae
|
|
3467
3467
|
}, [d(e, {
|
|
3468
|
-
icon: j(
|
|
3468
|
+
icon: j(ne),
|
|
3469
3469
|
size: 16
|
|
3470
3470
|
}, null, 8, ["icon"])])
|
|
3471
|
-
]), l("div",
|
|
3471
|
+
]), l("div", aa, [(x(), c(t, null, T(D, (e) => l("span", {
|
|
3472
3472
|
key: e,
|
|
3473
3473
|
class: "uid-daterange__weekday"
|
|
3474
3474
|
}, k(e), 1)), 64)), (x(!0), c(t, null, T(I.value, (e) => (x(), c("button", {
|
|
@@ -3483,32 +3483,32 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3483
3483
|
"uid-daterange__day--disabled": U(e.iso)
|
|
3484
3484
|
}]),
|
|
3485
3485
|
disabled: U(e.iso) || !e.current,
|
|
3486
|
-
onClick: (t) =>
|
|
3486
|
+
onClick: (t) => Y(e),
|
|
3487
3487
|
onMouseenter: (t) => re(e.iso)
|
|
3488
|
-
}, k(e.date.getDate()), 43,
|
|
3488
|
+
}, k(e.date.getDate()), 43, oa))), 128))])]), l("div", sa, [l("div", ca, [
|
|
3489
3489
|
l("button", {
|
|
3490
3490
|
type: "button",
|
|
3491
3491
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--prev",
|
|
3492
3492
|
"aria-label": "Предыдущий месяц",
|
|
3493
3493
|
onClick: ie
|
|
3494
3494
|
}, [d(e, {
|
|
3495
|
-
icon: j(
|
|
3495
|
+
icon: j(X),
|
|
3496
3496
|
size: 16
|
|
3497
3497
|
}, null, 8, ["icon"])]),
|
|
3498
|
-
l("span",
|
|
3498
|
+
l("span", la, k(V.value), 1),
|
|
3499
3499
|
l("button", {
|
|
3500
3500
|
type: "button",
|
|
3501
3501
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--next",
|
|
3502
3502
|
"aria-label": "Следующий месяц",
|
|
3503
3503
|
onClick: ae
|
|
3504
3504
|
}, [d(e, {
|
|
3505
|
-
icon: j(
|
|
3505
|
+
icon: j(ne),
|
|
3506
3506
|
size: 16
|
|
3507
3507
|
}, null, 8, ["icon"])])
|
|
3508
|
-
]), l("div",
|
|
3508
|
+
]), l("div", ua, [(x(), c(t, null, T(D, (e) => l("span", {
|
|
3509
3509
|
key: e,
|
|
3510
3510
|
class: "uid-daterange__weekday"
|
|
3511
|
-
}, k(e), 1)), 64)), (x(!0), c(t, null, T(
|
|
3511
|
+
}, k(e), 1)), 64)), (x(!0), c(t, null, T(L.value, (e) => (x(), c("button", {
|
|
3512
3512
|
key: e.iso,
|
|
3513
3513
|
type: "button",
|
|
3514
3514
|
class: _(["uid-daterange__day", {
|
|
@@ -3520,9 +3520,9 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3520
3520
|
"uid-daterange__day--disabled": U(e.iso)
|
|
3521
3521
|
}]),
|
|
3522
3522
|
disabled: U(e.iso) || !e.current,
|
|
3523
|
-
onClick: (t) =>
|
|
3523
|
+
onClick: (t) => Y(e),
|
|
3524
3524
|
onMouseenter: (t) => re(e.iso)
|
|
3525
|
-
}, k(e.date.getDate()), 43,
|
|
3525
|
+
}, k(e.date.getDate()), 43, da))), 128))])])]), l("div", fa, [
|
|
3526
3526
|
l("button", {
|
|
3527
3527
|
type: "button",
|
|
3528
3528
|
class: "uid-daterange__btn",
|
|
@@ -3542,11 +3542,11 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3542
3542
|
_: 1
|
|
3543
3543
|
})], 2));
|
|
3544
3544
|
}
|
|
3545
|
-
}),
|
|
3545
|
+
}), ma = ["for"], ha = {
|
|
3546
3546
|
key: 0,
|
|
3547
3547
|
class: "uid-tags-input__required",
|
|
3548
3548
|
"aria-hidden": "true"
|
|
3549
|
-
},
|
|
3549
|
+
}, ga = ["aria-label", "onClick"], _a = [
|
|
3550
3550
|
"id",
|
|
3551
3551
|
"placeholder",
|
|
3552
3552
|
"disabled",
|
|
@@ -3554,7 +3554,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3554
3554
|
"value",
|
|
3555
3555
|
"aria-invalid",
|
|
3556
3556
|
"aria-describedby"
|
|
3557
|
-
],
|
|
3557
|
+
], va = ["id"], ya = /* @__PURE__ */ f({
|
|
3558
3558
|
__name: "UidTagsInput",
|
|
3559
3559
|
props: /* @__PURE__ */ m({
|
|
3560
3560
|
separators: { default: () => [",", "Enter"] },
|
|
@@ -3655,7 +3655,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3655
3655
|
key: 0,
|
|
3656
3656
|
for: j(p),
|
|
3657
3657
|
class: "uid-tags-input__label"
|
|
3658
|
-
}, [u(k(e.label) + " ", 1), e.required ? (x(), c("span",
|
|
3658
|
+
}, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", ha, "*")) : s("", !0)], 8, ma)) : s("", !0),
|
|
3659
3659
|
l("div", {
|
|
3660
3660
|
class: "uid-tags-input__control",
|
|
3661
3661
|
role: "list",
|
|
@@ -3669,8 +3669,8 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3669
3669
|
type: "button",
|
|
3670
3670
|
class: "uid-tags-input__chip-remove",
|
|
3671
3671
|
"aria-label": `Удалить ${t}`,
|
|
3672
|
-
onClick:
|
|
3673
|
-
}, "×", 8,
|
|
3672
|
+
onClick: V((e) => b(n), ["stop"])
|
|
3673
|
+
}, "×", 8, ga))], 2))), 128)), l("input", {
|
|
3674
3674
|
id: j(p),
|
|
3675
3675
|
ref_key: "inputRef",
|
|
3676
3676
|
ref: f,
|
|
@@ -3686,19 +3686,19 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3686
3686
|
onKeydown: S,
|
|
3687
3687
|
onPaste: E,
|
|
3688
3688
|
onBlur: y
|
|
3689
|
-
}, null, 40,
|
|
3689
|
+
}, null, 40, _a)]),
|
|
3690
3690
|
h.value ? (x(), c("p", {
|
|
3691
3691
|
key: 1,
|
|
3692
3692
|
id: `${j(p)}-hint`,
|
|
3693
3693
|
class: _(["uid-tags-input__hint", m.value && "uid-tags-input__hint--error"])
|
|
3694
|
-
}, k(h.value), 11,
|
|
3694
|
+
}, k(h.value), 11, va)) : s("", !0)
|
|
3695
3695
|
], 2));
|
|
3696
3696
|
}
|
|
3697
|
-
}),
|
|
3697
|
+
}), ba = ["for"], xa = {
|
|
3698
3698
|
key: 0,
|
|
3699
3699
|
class: "uid-combobox__required",
|
|
3700
3700
|
"aria-hidden": "true"
|
|
3701
|
-
},
|
|
3701
|
+
}, Sa = ["aria-expanded", "aria-controls"], Ca = [
|
|
3702
3702
|
"id",
|
|
3703
3703
|
"placeholder",
|
|
3704
3704
|
"disabled",
|
|
@@ -3706,20 +3706,20 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3706
3706
|
"value",
|
|
3707
3707
|
"aria-activedescendant",
|
|
3708
3708
|
"aria-invalid"
|
|
3709
|
-
],
|
|
3709
|
+
], wa = { class: "uid-combobox__suffix" }, Ta = ["id"], Ea = [
|
|
3710
3710
|
"id",
|
|
3711
3711
|
"data-active",
|
|
3712
3712
|
"aria-selected",
|
|
3713
3713
|
"aria-disabled",
|
|
3714
3714
|
"onClick",
|
|
3715
3715
|
"onMouseenter"
|
|
3716
|
-
],
|
|
3716
|
+
], Da = { class: "uid-combobox__option-label" }, Oa = {
|
|
3717
3717
|
key: 0,
|
|
3718
3718
|
class: "uid-combobox__option-hint"
|
|
3719
|
-
},
|
|
3719
|
+
}, ka = ["id", "data-active"], Aa = { class: "uid-combobox__option-label" }, ja = {
|
|
3720
3720
|
key: 2,
|
|
3721
3721
|
class: "uid-combobox__empty"
|
|
3722
|
-
},
|
|
3722
|
+
}, Ma = /* @__PURE__ */ f({
|
|
3723
3723
|
__name: "UidCombobox",
|
|
3724
3724
|
props: /* @__PURE__ */ m({
|
|
3725
3725
|
options: {},
|
|
@@ -3757,17 +3757,17 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3757
3757
|
emits: /* @__PURE__ */ m(["change", "create"], ["update:modelValue"]),
|
|
3758
3758
|
setup(n, { emit: r }) {
|
|
3759
3759
|
let i = n, f = r, p = N(n, "modelValue"), m = w(!1), h = w(""), v = w(0), y = w(null), S = w(null), C = w(null), E = i.id ?? M(), D = M(), O = a(() => i.options.find((e) => e.value === p.value) ?? null);
|
|
3760
|
-
|
|
3760
|
+
R(O, (e) => {
|
|
3761
3761
|
m.value || (h.value = e?.label ?? "");
|
|
3762
3762
|
}, { immediate: !0 });
|
|
3763
3763
|
let A = a(() => {
|
|
3764
3764
|
let e = h.value.trim().toLowerCase();
|
|
3765
3765
|
return e ? i.filter ? i.options.filter((e) => i.filter(e, h.value)) : i.options.filter((t) => t.label.toLowerCase().includes(e)) : i.options;
|
|
3766
3766
|
}), P = a(() => i.allowCreate && h.value.trim().length > 0 && !A.value.some((e) => e.label.toLowerCase() === h.value.trim().toLowerCase())), F = a(() => !!i.error), I = a(() => i.error || i.hint);
|
|
3767
|
-
|
|
3767
|
+
R(h, () => {
|
|
3768
3768
|
v.value = 0;
|
|
3769
3769
|
});
|
|
3770
|
-
function
|
|
3770
|
+
function L() {
|
|
3771
3771
|
i.disabled || (m.value = !0);
|
|
3772
3772
|
}
|
|
3773
3773
|
function z() {
|
|
@@ -3784,35 +3784,35 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3784
3784
|
e.stopPropagation(), p.value = null, f("change", null), h.value = "", S.value?.focus();
|
|
3785
3785
|
}
|
|
3786
3786
|
function U(e) {
|
|
3787
|
-
h.value = e.target.value, m.value ||
|
|
3787
|
+
h.value = e.target.value, m.value || L();
|
|
3788
3788
|
}
|
|
3789
3789
|
function W() {
|
|
3790
|
-
|
|
3790
|
+
L();
|
|
3791
3791
|
}
|
|
3792
3792
|
function G(e) {
|
|
3793
3793
|
if (e.key === "ArrowDown") {
|
|
3794
3794
|
if (e.preventDefault(), !m.value) {
|
|
3795
|
-
|
|
3795
|
+
L();
|
|
3796
3796
|
return;
|
|
3797
3797
|
}
|
|
3798
3798
|
K();
|
|
3799
3799
|
} else if (e.key === "ArrowUp") e.preventDefault(), m.value && ee();
|
|
3800
3800
|
else if (e.key === "Enter") {
|
|
3801
3801
|
if (e.preventDefault(), !m.value) {
|
|
3802
|
-
|
|
3802
|
+
L();
|
|
3803
3803
|
return;
|
|
3804
3804
|
}
|
|
3805
|
-
|
|
3805
|
+
te();
|
|
3806
3806
|
} else e.key === "Escape" ? m.value ? z() : S.value?.blur() : e.key === "Tab" && z();
|
|
3807
3807
|
}
|
|
3808
3808
|
function K() {
|
|
3809
3809
|
let e = A.value.length + +!!P.value;
|
|
3810
|
-
e !== 0 && (v.value = Math.min(v.value + 1, e - 1),
|
|
3810
|
+
e !== 0 && (v.value = Math.min(v.value + 1, e - 1), J());
|
|
3811
3811
|
}
|
|
3812
3812
|
function ee() {
|
|
3813
|
-
v.value = Math.max(v.value - 1, 0),
|
|
3813
|
+
v.value = Math.max(v.value - 1, 0), J();
|
|
3814
3814
|
}
|
|
3815
|
-
function
|
|
3815
|
+
function te() {
|
|
3816
3816
|
if (P.value && v.value === A.value.length) {
|
|
3817
3817
|
V();
|
|
3818
3818
|
return;
|
|
@@ -3820,7 +3820,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3820
3820
|
let e = A.value[v.value];
|
|
3821
3821
|
e && B(e);
|
|
3822
3822
|
}
|
|
3823
|
-
function
|
|
3823
|
+
function J() {
|
|
3824
3824
|
g(() => {
|
|
3825
3825
|
(C.value?.querySelector("[data-active=\"true\"]"))?.scrollIntoView?.({ block: "nearest" });
|
|
3826
3826
|
});
|
|
@@ -3829,7 +3829,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3829
3829
|
let t = e.target;
|
|
3830
3830
|
y.value?.contains(t) || z();
|
|
3831
3831
|
}
|
|
3832
|
-
return
|
|
3832
|
+
return R(m, (e) => {
|
|
3833
3833
|
e ? (v.value = Math.max(0, A.value.findIndex((e) => e.value === p.value)), document.addEventListener("pointerdown", X)) : document.removeEventListener("pointerdown", X);
|
|
3834
3834
|
}), b(() => document.removeEventListener("pointerdown", X)), (r, i) => (x(), c("div", {
|
|
3835
3835
|
ref_key: "containerRef",
|
|
@@ -3845,7 +3845,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3845
3845
|
key: 0,
|
|
3846
3846
|
for: j(E),
|
|
3847
3847
|
class: "uid-combobox__label"
|
|
3848
|
-
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span",
|
|
3848
|
+
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", xa, "*")) : s("", !0)], 8, ba)) : s("", !0),
|
|
3849
3849
|
l("div", {
|
|
3850
3850
|
class: "uid-combobox__control",
|
|
3851
3851
|
role: "combobox",
|
|
@@ -3869,7 +3869,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3869
3869
|
onInput: U,
|
|
3870
3870
|
onFocus: W,
|
|
3871
3871
|
onKeydown: G
|
|
3872
|
-
}, null, 40,
|
|
3872
|
+
}, null, 40, Ca), l("div", wa, [n.clearable && p.value !== null ? (x(), c("button", {
|
|
3873
3873
|
key: 0,
|
|
3874
3874
|
type: "button",
|
|
3875
3875
|
class: "uid-combobox__clear",
|
|
@@ -3879,12 +3879,12 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3879
3879
|
icon: j(Z),
|
|
3880
3880
|
size: 12
|
|
3881
3881
|
}, null, 8, ["icon"])])) : s("", !0), d(e, {
|
|
3882
|
-
icon: j(
|
|
3882
|
+
icon: j(Y),
|
|
3883
3883
|
size: 16,
|
|
3884
3884
|
class: _(["uid-combobox__chevron", { "uid-combobox__chevron--open": m.value }]),
|
|
3885
3885
|
"aria-hidden": "true",
|
|
3886
|
-
onClick:
|
|
3887
|
-
}, null, 8, ["icon", "class"])])], 8,
|
|
3886
|
+
onClick: L
|
|
3887
|
+
}, null, 8, ["icon", "class"])])], 8, Sa),
|
|
3888
3888
|
m.value ? (x(), c("div", {
|
|
3889
3889
|
key: 1,
|
|
3890
3890
|
id: j(D),
|
|
@@ -3909,8 +3909,8 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3909
3909
|
onClick: (e) => B(t),
|
|
3910
3910
|
onMouseenter: (e) => !t.disabled && (v.value = n)
|
|
3911
3911
|
}, [
|
|
3912
|
-
l("span",
|
|
3913
|
-
t.hint ? (x(), c("span",
|
|
3912
|
+
l("span", Da, k(t.label), 1),
|
|
3913
|
+
t.hint ? (x(), c("span", Oa, k(t.hint), 1)) : s("", !0),
|
|
3914
3914
|
t.value === p.value ? (x(), o(e, {
|
|
3915
3915
|
key: 1,
|
|
3916
3916
|
icon: j(q),
|
|
@@ -3918,7 +3918,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3918
3918
|
class: "uid-combobox__check",
|
|
3919
3919
|
"aria-hidden": "true"
|
|
3920
3920
|
}, null, 8, ["icon"])) : s("", !0)
|
|
3921
|
-
], 42,
|
|
3921
|
+
], 42, Ea))), 128)) : s("", !0),
|
|
3922
3922
|
P.value ? (x(), c("button", {
|
|
3923
3923
|
key: 1,
|
|
3924
3924
|
id: `${j(D)}-${A.value.length}`,
|
|
@@ -3928,38 +3928,38 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
3928
3928
|
"data-active": v.value === A.value.length ? "true" : void 0,
|
|
3929
3929
|
onClick: V,
|
|
3930
3930
|
onMouseenter: i[0] ||= (e) => v.value = A.value.length
|
|
3931
|
-
}, [l("span",
|
|
3932
|
-
A.value.length === 0 && !P.value ? (x(), c("div",
|
|
3933
|
-
], 8,
|
|
3931
|
+
}, [l("span", Aa, "+ Создать «" + k(h.value) + "»", 1)], 42, ka)) : s("", !0),
|
|
3932
|
+
A.value.length === 0 && !P.value ? (x(), c("div", ja, k(n.emptyText), 1)) : s("", !0)
|
|
3933
|
+
], 8, Ta)) : s("", !0),
|
|
3934
3934
|
I.value ? (x(), c("p", {
|
|
3935
3935
|
key: 2,
|
|
3936
3936
|
class: _(["uid-combobox__hint", F.value && "uid-combobox__hint--error"])
|
|
3937
3937
|
}, k(I.value), 3)) : s("", !0)
|
|
3938
3938
|
], 2));
|
|
3939
3939
|
}
|
|
3940
|
-
}),
|
|
3940
|
+
}), Na = Symbol("UidTree"), Pa = [
|
|
3941
3941
|
"aria-expanded",
|
|
3942
3942
|
"aria-selected",
|
|
3943
3943
|
"aria-disabled"
|
|
3944
|
-
],
|
|
3944
|
+
], Fa = ["tabindex"], Ia = ["aria-label"], La = {
|
|
3945
3945
|
key: 1,
|
|
3946
3946
|
class: "uid-tree-item__chevron uid-tree-item__chevron--placeholder",
|
|
3947
3947
|
"aria-hidden": "true"
|
|
3948
|
-
},
|
|
3948
|
+
}, Ra = ["aria-checked"], za = {
|
|
3949
3949
|
key: 3,
|
|
3950
3950
|
class: "uid-tree-item__icon"
|
|
3951
|
-
},
|
|
3951
|
+
}, Ba = { class: "uid-tree-item__label" }, Va = {
|
|
3952
3952
|
key: 0,
|
|
3953
3953
|
class: "uid-tree-item__children",
|
|
3954
3954
|
role: "group"
|
|
3955
|
-
},
|
|
3955
|
+
}, Ha = /* @__PURE__ */ f({
|
|
3956
3956
|
__name: "UidTreeItem",
|
|
3957
3957
|
props: {
|
|
3958
3958
|
node: {},
|
|
3959
3959
|
level: {}
|
|
3960
3960
|
},
|
|
3961
3961
|
setup(n) {
|
|
3962
|
-
let r = n, i = p(
|
|
3962
|
+
let r = n, i = p(Na);
|
|
3963
3963
|
if (!i) throw Error("UidTreeItem must be used inside UidTree");
|
|
3964
3964
|
let u = i, f = a(() => !!r.node.children && r.node.children.length > 0), m = a(() => u.isExpanded(r.node.key)), h = a(() => u.isSelected(r.node.key)), g = a(() => u.isChecked(r.node.key)), y = a(() => u.isIndeterminate(r.node.key)), b = a(() => u.disabled.value || !!r.node.disabled);
|
|
3965
3965
|
function S() {
|
|
@@ -4001,9 +4001,9 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4001
4001
|
tabindex: "-1",
|
|
4002
4002
|
onClick: C
|
|
4003
4003
|
}, [d(e, {
|
|
4004
|
-
icon: j(
|
|
4004
|
+
icon: j(ne),
|
|
4005
4005
|
size: 14
|
|
4006
|
-
}, null, 8, ["icon"])], 10,
|
|
4006
|
+
}, null, 8, ["icon"])], 10, Ia)) : (x(), c("span", La)),
|
|
4007
4007
|
j(u).checkable.value ? (x(), c("span", {
|
|
4008
4008
|
key: 2,
|
|
4009
4009
|
class: _(["uid-tree-item__check", {
|
|
@@ -4017,20 +4017,20 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4017
4017
|
key: 0,
|
|
4018
4018
|
icon: j(q),
|
|
4019
4019
|
size: 12
|
|
4020
|
-
}, null, 8, ["icon"])) : s("", !0)], 10,
|
|
4021
|
-
n.node.icon ? (x(), c("span",
|
|
4020
|
+
}, null, 8, ["icon"])) : s("", !0)], 10, Ra)) : s("", !0),
|
|
4021
|
+
n.node.icon ? (x(), c("span", za, [d(e, {
|
|
4022
4022
|
icon: n.node.icon,
|
|
4023
4023
|
size: 16
|
|
4024
4024
|
}, null, 8, ["icon"])])) : s("", !0),
|
|
4025
|
-
l("span",
|
|
4026
|
-
], 44,
|
|
4025
|
+
l("span", Ba, k(n.node.label), 1)
|
|
4026
|
+
], 44, Fa), f.value && m.value ? (x(), c("ul", Va, [(x(!0), c(t, null, T(n.node.children, (e) => (x(), o(a, {
|
|
4027
4027
|
key: e.key,
|
|
4028
4028
|
node: e,
|
|
4029
4029
|
level: n.level + 1
|
|
4030
|
-
}, null, 8, ["node", "level"]))), 128))])) : s("", !0)], 10,
|
|
4030
|
+
}, null, 8, ["node", "level"]))), 128))])) : s("", !0)], 10, Pa);
|
|
4031
4031
|
};
|
|
4032
4032
|
}
|
|
4033
|
-
}),
|
|
4033
|
+
}), Ua = /* @__PURE__ */ f({
|
|
4034
4034
|
__name: "UidTreeView",
|
|
4035
4035
|
props: /* @__PURE__ */ m({
|
|
4036
4036
|
nodes: {},
|
|
@@ -4087,7 +4087,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4087
4087
|
l.value = [...e];
|
|
4088
4088
|
}
|
|
4089
4089
|
}), m = w(new Set(u.value));
|
|
4090
|
-
|
|
4090
|
+
R(u, (e) => {
|
|
4091
4091
|
m.value = new Set(e);
|
|
4092
4092
|
});
|
|
4093
4093
|
let h = w(/* @__PURE__ */ new Set());
|
|
@@ -4119,10 +4119,10 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4119
4119
|
for (let e of r.nodes) n(e);
|
|
4120
4120
|
m.value = t, h.value = e, u.value = [...t];
|
|
4121
4121
|
}
|
|
4122
|
-
|
|
4122
|
+
R(() => r.nodes, v, {
|
|
4123
4123
|
immediate: !0,
|
|
4124
4124
|
deep: !0
|
|
4125
|
-
}),
|
|
4125
|
+
}), R(u, () => {
|
|
4126
4126
|
[...m.value].sort().join(",") !== [...u.value].sort().join(",") && (m.value = new Set(u.value), v());
|
|
4127
4127
|
});
|
|
4128
4128
|
function y(e) {
|
|
@@ -4145,7 +4145,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4145
4145
|
}
|
|
4146
4146
|
m.value = n, u.value = [...n], v(), i("check", e, !t);
|
|
4147
4147
|
}
|
|
4148
|
-
return S(
|
|
4148
|
+
return S(Na, {
|
|
4149
4149
|
selectable: a(() => r.selectable),
|
|
4150
4150
|
checkable: a(() => r.checkable),
|
|
4151
4151
|
disabled: a(() => r.disabled),
|
|
@@ -4162,13 +4162,13 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4162
4162
|
}), (n, r) => (x(), c("ul", {
|
|
4163
4163
|
class: _(["uid-tree", { "uid-tree--guides": e.showGuides }]),
|
|
4164
4164
|
role: "tree"
|
|
4165
|
-
}, [(x(!0), c(t, null, T(e.nodes, (e) => (x(), o(
|
|
4165
|
+
}, [(x(!0), c(t, null, T(e.nodes, (e) => (x(), o(Ha, {
|
|
4166
4166
|
key: e.key,
|
|
4167
4167
|
node: e,
|
|
4168
4168
|
level: 0
|
|
4169
4169
|
}, null, 8, ["node"]))), 128))], 2));
|
|
4170
4170
|
}
|
|
4171
|
-
}),
|
|
4171
|
+
}), Wa = /* @__PURE__ */ f({
|
|
4172
4172
|
__name: "UidTimeline",
|
|
4173
4173
|
props: { alternate: {
|
|
4174
4174
|
type: Boolean,
|
|
@@ -4177,19 +4177,19 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4177
4177
|
setup(e) {
|
|
4178
4178
|
return (t, n) => (x(), c("ol", { class: _(["uid-timeline", { "uid-timeline--alternate": e.alternate }]) }, [E(t.$slots, "default")], 2));
|
|
4179
4179
|
}
|
|
4180
|
-
}),
|
|
4180
|
+
}), Ga = { class: "uid-timeline-item__rail" }, Ka = { class: "uid-timeline-item__marker" }, qa = { class: "uid-timeline-item__content" }, Ja = {
|
|
4181
4181
|
key: 0,
|
|
4182
4182
|
class: "uid-timeline-item__time"
|
|
4183
|
-
},
|
|
4183
|
+
}, Ya = {
|
|
4184
4184
|
key: 1,
|
|
4185
4185
|
class: "uid-timeline-item__title"
|
|
4186
|
-
},
|
|
4186
|
+
}, Xa = {
|
|
4187
4187
|
key: 2,
|
|
4188
4188
|
class: "uid-timeline-item__description"
|
|
4189
|
-
},
|
|
4189
|
+
}, Za = {
|
|
4190
4190
|
key: 3,
|
|
4191
4191
|
class: "uid-timeline-item__description"
|
|
4192
|
-
},
|
|
4192
|
+
}, Qa = /* @__PURE__ */ f({
|
|
4193
4193
|
__name: "UidTimelineItem",
|
|
4194
4194
|
props: {
|
|
4195
4195
|
title: {},
|
|
@@ -4199,37 +4199,37 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4199
4199
|
icon: {}
|
|
4200
4200
|
},
|
|
4201
4201
|
setup(t) {
|
|
4202
|
-
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",
|
|
4202
|
+
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", Ga, [l("div", Ka, [E(n.$slots, "icon", {}, () => [t.icon ? (x(), o(e, {
|
|
4203
4203
|
key: 0,
|
|
4204
4204
|
icon: t.icon,
|
|
4205
4205
|
size: 14
|
|
4206
4206
|
}, null, 8, ["icon"])) : s("", !0)])]), r[0] ||= l("div", {
|
|
4207
4207
|
class: "uid-timeline-item__line",
|
|
4208
4208
|
"aria-hidden": "true"
|
|
4209
|
-
}, null, -1)]), l("div",
|
|
4210
|
-
t.time || n.$slots.time ? (x(), c("p",
|
|
4211
|
-
t.title ? (x(), c("h4",
|
|
4212
|
-
t.description && !n.$slots.default ? (x(), c("p",
|
|
4213
|
-
n.$slots.default ? (x(), c("div",
|
|
4209
|
+
}, null, -1)]), l("div", qa, [
|
|
4210
|
+
t.time || n.$slots.time ? (x(), c("p", Ja, [E(n.$slots, "time", {}, () => [u(k(t.time), 1)])])) : s("", !0),
|
|
4211
|
+
t.title ? (x(), c("h4", Ya, k(t.title), 1)) : s("", !0),
|
|
4212
|
+
t.description && !n.$slots.default ? (x(), c("p", Xa, k(t.description), 1)) : s("", !0),
|
|
4213
|
+
n.$slots.default ? (x(), c("div", Za, [E(n.$slots, "default")])) : s("", !0)
|
|
4214
4214
|
])], 2));
|
|
4215
4215
|
}
|
|
4216
|
-
}),
|
|
4216
|
+
}), $a = ["for"], eo = {
|
|
4217
4217
|
key: 0,
|
|
4218
4218
|
class: "uid-file-upload__required",
|
|
4219
4219
|
"aria-hidden": "true"
|
|
4220
|
-
},
|
|
4220
|
+
}, to = ["aria-disabled", "aria-invalid"], no = { class: "uid-file-upload__primary-text" }, ro = ["innerHTML"], io = { class: "uid-file-upload__secondary-text" }, ao = [
|
|
4221
4221
|
"id",
|
|
4222
4222
|
"multiple",
|
|
4223
4223
|
"accept",
|
|
4224
4224
|
"disabled",
|
|
4225
4225
|
"required"
|
|
4226
|
-
],
|
|
4226
|
+
], oo = {
|
|
4227
4227
|
key: 1,
|
|
4228
4228
|
class: "uid-file-upload__list"
|
|
4229
|
-
},
|
|
4229
|
+
}, so = { class: "uid-file-upload__file-info" }, co = { class: "uid-file-upload__file-name" }, lo = { class: "uid-file-upload__file-meta" }, uo = { key: 0 }, fo = { key: 1 }, po = {
|
|
4230
4230
|
key: 0,
|
|
4231
4231
|
class: "uid-file-upload__progress"
|
|
4232
|
-
},
|
|
4232
|
+
}, mo = ["aria-label", "onClick"], ho = /* @__PURE__ */ f({
|
|
4233
4233
|
__name: "UidFileUpload",
|
|
4234
4234
|
props: /* @__PURE__ */ m({
|
|
4235
4235
|
multiple: {
|
|
@@ -4322,7 +4322,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4322
4322
|
key: 0,
|
|
4323
4323
|
for: j(h),
|
|
4324
4324
|
class: "uid-file-upload__label"
|
|
4325
|
-
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span",
|
|
4325
|
+
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", eo, "*")) : s("", !0)], 8, $a)) : s("", !0),
|
|
4326
4326
|
l("div", {
|
|
4327
4327
|
class: _(["uid-file-upload__dropzone", { "uid-file-upload__dropzone--active": m.value }]),
|
|
4328
4328
|
role: "button",
|
|
@@ -4336,13 +4336,13 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4336
4336
|
onDragleave: F
|
|
4337
4337
|
}, [
|
|
4338
4338
|
d(e, {
|
|
4339
|
-
icon: j(
|
|
4339
|
+
icon: j(pe),
|
|
4340
4340
|
size: 32,
|
|
4341
4341
|
class: "uid-file-upload__icon",
|
|
4342
4342
|
"aria-hidden": "true"
|
|
4343
4343
|
}, null, 8, ["icon"]),
|
|
4344
|
-
l("p",
|
|
4345
|
-
l("p",
|
|
4344
|
+
l("p", no, [l("span", { innerHTML: n.primaryText }, null, 8, ro)]),
|
|
4345
|
+
l("p", io, k(n.secondaryText), 1),
|
|
4346
4346
|
l("input", {
|
|
4347
4347
|
id: j(h),
|
|
4348
4348
|
ref_key: "inputRef",
|
|
@@ -4354,22 +4354,22 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4354
4354
|
disabled: n.disabled,
|
|
4355
4355
|
required: n.required,
|
|
4356
4356
|
onChange: E
|
|
4357
|
-
}, null, 40,
|
|
4358
|
-
], 42,
|
|
4359
|
-
f.value.length > 0 ? (x(), c("ul",
|
|
4357
|
+
}, null, 40, ao)
|
|
4358
|
+
], 42, to),
|
|
4359
|
+
f.value.length > 0 ? (x(), c("ul", oo, [(x(!0), c(t, null, T(f.value, (t) => (x(), c("li", {
|
|
4360
4360
|
key: t.id,
|
|
4361
4361
|
class: _(["uid-file-upload__item", { "uid-file-upload__item--error": t.error }])
|
|
4362
4362
|
}, [
|
|
4363
4363
|
d(e, {
|
|
4364
|
-
icon: j(
|
|
4364
|
+
icon: j(ae),
|
|
4365
4365
|
size: 20,
|
|
4366
4366
|
class: "uid-file-upload__file-icon",
|
|
4367
4367
|
"aria-hidden": "true"
|
|
4368
4368
|
}, null, 8, ["icon"]),
|
|
4369
|
-
l("div",
|
|
4370
|
-
l("div",
|
|
4371
|
-
l("div",
|
|
4372
|
-
t.progress !== void 0 && !t.error ? (x(), c("div",
|
|
4369
|
+
l("div", so, [
|
|
4370
|
+
l("div", co, k(t.file.name), 1),
|
|
4371
|
+
l("div", lo, [l("span", null, k(b(t.file.size)), 1), t.error ? (x(), c("span", uo, "— " + k(t.error), 1)) : t.progress === void 0 ? s("", !0) : (x(), c("span", fo, "— " + k(t.progress) + "%", 1))]),
|
|
4372
|
+
t.progress !== void 0 && !t.error ? (x(), c("div", po, [l("div", {
|
|
4373
4373
|
class: "uid-file-upload__progress-bar",
|
|
4374
4374
|
style: v({ width: `${t.progress}%` })
|
|
4375
4375
|
}, null, 4)])) : s("", !0)
|
|
@@ -4382,7 +4382,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4382
4382
|
}, [d(e, {
|
|
4383
4383
|
icon: j(Z),
|
|
4384
4384
|
size: 16
|
|
4385
|
-
}, null, 8, ["icon"])], 8,
|
|
4385
|
+
}, null, 8, ["icon"])], 8, mo)
|
|
4386
4386
|
], 2))), 128))])) : s("", !0),
|
|
4387
4387
|
y.value ? (x(), c("p", {
|
|
4388
4388
|
key: 2,
|
|
@@ -4390,17 +4390,17 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4390
4390
|
}, k(y.value), 3)) : s("", !0)
|
|
4391
4391
|
], 2));
|
|
4392
4392
|
}
|
|
4393
|
-
}),
|
|
4393
|
+
}), go = {
|
|
4394
4394
|
key: 0,
|
|
4395
4395
|
class: "uid-code uid-code--inline"
|
|
4396
|
-
},
|
|
4396
|
+
}, _o = {
|
|
4397
4397
|
key: 0,
|
|
4398
4398
|
class: "uid-code__header"
|
|
4399
|
-
},
|
|
4399
|
+
}, vo = { class: "uid-code__lang" }, yo = ["aria-label"], bo = { class: "uid-code__body" }, xo = {
|
|
4400
4400
|
key: 0,
|
|
4401
4401
|
class: "uid-code__line-numbers",
|
|
4402
4402
|
"aria-hidden": "true"
|
|
4403
|
-
},
|
|
4403
|
+
}, So = { class: "uid-code__pre" }, Co = /* @__PURE__ */ f({
|
|
4404
4404
|
__name: "UidCode",
|
|
4405
4405
|
props: {
|
|
4406
4406
|
code: { default: "" },
|
|
@@ -4432,47 +4432,47 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4432
4432
|
}, 1500);
|
|
4433
4433
|
} catch {}
|
|
4434
4434
|
}
|
|
4435
|
-
return (r, a) => n.inline ? (x(), c("code",
|
|
4435
|
+
return (r, a) => n.inline ? (x(), c("code", go, [E(r.$slots, "default", {}, () => [u(k(n.code), 1)])])) : (x(), c("div", {
|
|
4436
4436
|
key: 1,
|
|
4437
4437
|
class: _(["uid-code", {
|
|
4438
4438
|
"uid-code--minimal": !f.value,
|
|
4439
4439
|
"uid-code--wrap": n.wrap
|
|
4440
4440
|
}]),
|
|
4441
4441
|
style: v(n.maxHeight ? { "--uid-code-max-height": n.maxHeight } : void 0)
|
|
4442
|
-
}, [f.value ? (x(), c("div",
|
|
4442
|
+
}, [f.value ? (x(), c("div", _o, [l("span", vo, k(n.language || ""), 1), n.copy ? (x(), c("button", {
|
|
4443
4443
|
key: 0,
|
|
4444
4444
|
type: "button",
|
|
4445
4445
|
class: _(["uid-code__copy", { "uid-code__copy--copied": i.value }]),
|
|
4446
4446
|
"aria-label": i.value ? "Скопировано" : "Скопировать",
|
|
4447
4447
|
onClick: p
|
|
4448
4448
|
}, [d(e, {
|
|
4449
|
-
icon: i.value ? j(q) : j(
|
|
4449
|
+
icon: i.value ? j(q) : j(ie),
|
|
4450
4450
|
size: 12,
|
|
4451
4451
|
"aria-hidden": "true"
|
|
4452
|
-
}, null, 8, ["icon"]), l("span", null, k(i.value ? "Скопировано" : "Копировать"), 1)], 10,
|
|
4452
|
+
}, null, 8, ["icon"]), l("span", null, k(i.value ? "Скопировано" : "Копировать"), 1)], 10, yo)) : s("", !0)])) : s("", !0), l("div", bo, [n.lineNumbers ? (x(), c("div", xo, [(x(!0), c(t, null, T(o.value, (e, t) => (x(), c("span", {
|
|
4453
4453
|
key: t,
|
|
4454
4454
|
class: "uid-code__line-number"
|
|
4455
|
-
}, k(t + 1), 1))), 128))])) : s("", !0), l("pre",
|
|
4455
|
+
}, k(t + 1), 1))), 128))])) : s("", !0), l("pre", So, [l("code", null, [E(r.$slots, "default", {}, () => [u(k(n.code), 1)])])])])], 6));
|
|
4456
4456
|
}
|
|
4457
|
-
}),
|
|
4457
|
+
}), wo = [
|
|
4458
4458
|
"aria-valuemax",
|
|
4459
4459
|
"aria-valuenow",
|
|
4460
4460
|
"aria-readonly",
|
|
4461
4461
|
"aria-disabled",
|
|
4462
4462
|
"aria-label"
|
|
4463
|
-
],
|
|
4463
|
+
], To = [
|
|
4464
4464
|
"tabindex",
|
|
4465
4465
|
"aria-label",
|
|
4466
4466
|
"onClick",
|
|
4467
4467
|
"onMousemove",
|
|
4468
4468
|
"onKeydown"
|
|
4469
|
-
],
|
|
4469
|
+
], Eo = {
|
|
4470
4470
|
class: "uid-rating__icon",
|
|
4471
4471
|
"aria-hidden": "true"
|
|
4472
|
-
},
|
|
4472
|
+
}, Do = ["data-half"], Oo = {
|
|
4473
4473
|
key: 0,
|
|
4474
4474
|
class: "uid-rating__label"
|
|
4475
|
-
},
|
|
4475
|
+
}, ko = /* @__PURE__ */ f({
|
|
4476
4476
|
__name: "UidRating",
|
|
4477
4477
|
props: /* @__PURE__ */ m({
|
|
4478
4478
|
max: { default: 5 },
|
|
@@ -4502,7 +4502,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4502
4502
|
}),
|
|
4503
4503
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
4504
4504
|
setup(n, { emit: r }) {
|
|
4505
|
-
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 ??
|
|
4505
|
+
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 ?? fe);
|
|
4506
4506
|
function g(e) {
|
|
4507
4507
|
let t = m.value;
|
|
4508
4508
|
return t >= e ? {
|
|
@@ -4576,21 +4576,21 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4576
4576
|
onClick: (e) => y(e, t),
|
|
4577
4577
|
onMousemove: (e) => b(e, t),
|
|
4578
4578
|
onKeydown: (e) => C(e, t)
|
|
4579
|
-
}, [l("span",
|
|
4579
|
+
}, [l("span", Eo, [d(e, { icon: h.value }, null, 8, ["icon"])]), g(t).full ? (x(), c("span", {
|
|
4580
4580
|
key: 0,
|
|
4581
4581
|
class: "uid-rating__icon uid-rating__icon--filled",
|
|
4582
4582
|
"data-half": g(t).half ? "true" : "false",
|
|
4583
4583
|
"aria-hidden": "true"
|
|
4584
|
-
}, [d(e, { icon: h.value }, null, 8, ["icon"])], 8,
|
|
4584
|
+
}, [d(e, { icon: h.value }, null, 8, ["icon"])], 8, Do)) : s("", !0)], 40, To))), 128)), n.showLabel ? (x(), c("span", Oo, k(u.value.toFixed(+!!n.allowHalf)) + " / " + k(n.max), 1)) : s("", !0)], 42, wo));
|
|
4585
4585
|
}
|
|
4586
|
-
}),
|
|
4586
|
+
}), Ao = [
|
|
4587
4587
|
"tabindex",
|
|
4588
4588
|
"aria-orientation",
|
|
4589
4589
|
"aria-valuemin",
|
|
4590
4590
|
"aria-valuemax",
|
|
4591
4591
|
"aria-valuenow",
|
|
4592
4592
|
"aria-disabled"
|
|
4593
|
-
],
|
|
4593
|
+
], jo = { class: "uid-splitter__pane uid-splitter__pane--end" }, Mo = /* @__PURE__ */ f({
|
|
4594
4594
|
__name: "UidSplitter",
|
|
4595
4595
|
props: /* @__PURE__ */ m({
|
|
4596
4596
|
direction: { default: "horizontal" },
|
|
@@ -4668,27 +4668,27 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4668
4668
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
4669
4669
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
4670
4670
|
l("span", { class: "uid-splitter__grip-dot" })
|
|
4671
|
-
], -1)]], 40,
|
|
4672
|
-
l("div",
|
|
4671
|
+
], -1)]], 40, Ao),
|
|
4672
|
+
l("div", jo, [E(t.$slots, "end")])
|
|
4673
4673
|
], 2));
|
|
4674
4674
|
}
|
|
4675
|
-
}),
|
|
4675
|
+
}), No = {
|
|
4676
4676
|
key: 0,
|
|
4677
4677
|
class: "uid-stat__icon",
|
|
4678
4678
|
"aria-hidden": "true"
|
|
4679
|
-
},
|
|
4679
|
+
}, Po = { class: "uid-stat__body" }, Fo = {
|
|
4680
4680
|
key: 0,
|
|
4681
4681
|
class: "uid-stat__title"
|
|
4682
|
-
},
|
|
4682
|
+
}, Io = { class: "uid-stat__value-row" }, Lo = { class: "uid-stat__value" }, Ro = {
|
|
4683
4683
|
key: 0,
|
|
4684
4684
|
class: "uid-stat__prefix"
|
|
4685
|
-
},
|
|
4685
|
+
}, zo = {
|
|
4686
4686
|
key: 1,
|
|
4687
4687
|
class: "uid-stat__suffix"
|
|
4688
|
-
},
|
|
4688
|
+
}, Bo = {
|
|
4689
4689
|
key: 1,
|
|
4690
4690
|
class: "uid-stat__footer"
|
|
4691
|
-
},
|
|
4691
|
+
}, Vo = /* @__PURE__ */ f({
|
|
4692
4692
|
__name: "UidStat",
|
|
4693
4693
|
props: {
|
|
4694
4694
|
title: {},
|
|
@@ -4709,21 +4709,21 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4709
4709
|
let n = t, r = a(() => n.value === void 0 ? "" : n.formatter ? n.formatter(n.value) : typeof n.value == "number" ? n.value.toLocaleString("ru-RU", {
|
|
4710
4710
|
minimumFractionDigits: n.precision,
|
|
4711
4711
|
maximumFractionDigits: n.precision
|
|
4712
|
-
}) : String(n.value)), i = a(() => n.trend === void 0 ? null : n.trend > 0 ? "up" : n.trend < 0 ? "down" : "flat"), d = a(() => i.value === "up" ?
|
|
4712
|
+
}) : String(n.value)), i = a(() => n.trend === void 0 ? null : n.trend > 0 ? "up" : n.trend < 0 ? "down" : "flat"), d = a(() => i.value === "up" ? K : i.value === "down" ? W : null), f = a(() => n.trend === void 0 ? "" : `${Math.abs(n.trend).toLocaleString("ru-RU", { maximumFractionDigits: 2 })}${n.trendSuffix}`);
|
|
4713
4713
|
return (n, a) => (x(), c("div", { class: _(["uid-stat", [
|
|
4714
4714
|
`uid-stat--${t.tone}`,
|
|
4715
4715
|
t.variant === "ghost" && "uid-stat--ghost",
|
|
4716
4716
|
t.loading && "uid-stat--loading"
|
|
4717
|
-
]]) }, [t.icon || n.$slots.icon ? (x(), c("span",
|
|
4717
|
+
]]) }, [t.icon || n.$slots.icon ? (x(), c("span", No, [E(n.$slots, "icon", {}, () => [t.icon ? (x(), o(e, {
|
|
4718
4718
|
key: 0,
|
|
4719
4719
|
icon: t.icon,
|
|
4720
4720
|
size: 20
|
|
4721
|
-
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div",
|
|
4722
|
-
t.title ? (x(), c("p",
|
|
4723
|
-
l("div",
|
|
4724
|
-
t.prefix ? (x(), c("span",
|
|
4721
|
+
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div", Po, [
|
|
4722
|
+
t.title ? (x(), c("p", Fo, k(t.title), 1)) : s("", !0),
|
|
4723
|
+
l("div", Io, [l("span", Lo, [E(n.$slots, "value", {}, () => [
|
|
4724
|
+
t.prefix ? (x(), c("span", Ro, k(t.prefix), 1)) : s("", !0),
|
|
4725
4725
|
l("span", null, k(r.value), 1),
|
|
4726
|
-
t.suffix ? (x(), c("span",
|
|
4726
|
+
t.suffix ? (x(), c("span", zo, k(t.suffix), 1)) : s("", !0)
|
|
4727
4727
|
])]), t.trend !== void 0 || n.$slots.trend ? (x(), c("span", {
|
|
4728
4728
|
key: 0,
|
|
4729
4729
|
class: _(["uid-stat__trend", i.value && `uid-stat__trend--${i.value}`])
|
|
@@ -4732,13 +4732,13 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4732
4732
|
icon: d.value,
|
|
4733
4733
|
size: 12
|
|
4734
4734
|
}, null, 8, ["icon"])) : s("", !0), l("span", null, k(f.value), 1)])], 2)) : s("", !0)]),
|
|
4735
|
-
t.footer || n.$slots.footer ? (x(), c("p",
|
|
4735
|
+
t.footer || n.$slots.footer ? (x(), c("p", Bo, [E(n.$slots, "footer", {}, () => [u(k(t.footer), 1)])])) : s("", !0)
|
|
4736
4736
|
])], 2));
|
|
4737
4737
|
}
|
|
4738
|
-
}),
|
|
4738
|
+
}), Ho = Symbol("UidDescriptionList"), Uo = {
|
|
4739
4739
|
key: 0,
|
|
4740
4740
|
class: "uid-description-list__title"
|
|
4741
|
-
},
|
|
4741
|
+
}, Wo = /* @__PURE__ */ f({
|
|
4742
4742
|
__name: "UidDescriptionList",
|
|
4743
4743
|
props: {
|
|
4744
4744
|
title: {},
|
|
@@ -4753,7 +4753,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4753
4753
|
},
|
|
4754
4754
|
setup(e) {
|
|
4755
4755
|
let t = e;
|
|
4756
|
-
S(
|
|
4756
|
+
S(Ho, {
|
|
4757
4757
|
direction: a(() => t.direction),
|
|
4758
4758
|
bordered: a(() => t.bordered)
|
|
4759
4759
|
});
|
|
@@ -4765,12 +4765,12 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4765
4765
|
`uid-description-list--${e.direction}`,
|
|
4766
4766
|
`uid-description-list--${e.size}`,
|
|
4767
4767
|
e.bordered && "uid-description-list--bordered"
|
|
4768
|
-
]]) }, [e.title || t.$slots.title ? (x(), c("h3",
|
|
4768
|
+
]]) }, [e.title || t.$slots.title ? (x(), c("h3", Uo, [E(t.$slots, "title", {}, () => [u(k(e.title), 1)])])) : s("", !0), l("dl", {
|
|
4769
4769
|
class: "uid-description-list__grid",
|
|
4770
4770
|
style: v(n.value)
|
|
4771
4771
|
}, [E(t.$slots, "default")], 4)], 2));
|
|
4772
4772
|
}
|
|
4773
|
-
}),
|
|
4773
|
+
}), Go = { class: "uid-description-item__label" }, Ko = { class: "uid-description-item__value" }, qo = ["aria-label"], Jo = /* @__PURE__ */ f({
|
|
4774
4774
|
__name: "UidDescriptionItem",
|
|
4775
4775
|
props: {
|
|
4776
4776
|
label: {},
|
|
@@ -4783,7 +4783,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4783
4783
|
},
|
|
4784
4784
|
setup(t) {
|
|
4785
4785
|
let n = t;
|
|
4786
|
-
P(), p(
|
|
4786
|
+
P(), p(Ho, null);
|
|
4787
4787
|
let r = w(null), i = w(!1), o = a(() => ({ "--uid-desc-span": n.span }));
|
|
4788
4788
|
async function f() {
|
|
4789
4789
|
let e = n.copyValue ?? r.value?.querySelector(".uid-description-item__value")?.textContent?.trim() ?? "";
|
|
@@ -4798,33 +4798,33 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4798
4798
|
ref: r,
|
|
4799
4799
|
class: "uid-description-item",
|
|
4800
4800
|
style: v(o.value)
|
|
4801
|
-
}, [l("dt",
|
|
4801
|
+
}, [l("dt", Go, [E(n.$slots, "label", {}, () => [u(k(t.label), 1)])]), l("dd", Ko, [E(n.$slots, "default"), t.copyable ? (x(), c("button", {
|
|
4802
4802
|
key: 0,
|
|
4803
4803
|
type: "button",
|
|
4804
4804
|
class: _(["uid-description-item__copy", { "uid-description-item__copy--copied": i.value }]),
|
|
4805
4805
|
"aria-label": i.value ? "Скопировано" : "Скопировать",
|
|
4806
4806
|
onClick: f
|
|
4807
4807
|
}, [d(e, {
|
|
4808
|
-
icon: i.value ? j(q) : j(
|
|
4808
|
+
icon: i.value ? j(q) : j(ie),
|
|
4809
4809
|
size: 12
|
|
4810
|
-
}, null, 8, ["icon"])], 10,
|
|
4810
|
+
}, null, 8, ["icon"])], 10, qo)) : s("", !0)])], 4));
|
|
4811
4811
|
}
|
|
4812
|
-
}),
|
|
4812
|
+
}), Yo = {
|
|
4813
4813
|
class: "uid-pattern-result__icon",
|
|
4814
4814
|
"aria-hidden": "true"
|
|
4815
|
-
},
|
|
4815
|
+
}, Xo = {
|
|
4816
4816
|
key: 0,
|
|
4817
4817
|
class: "uid-pattern-result__title"
|
|
4818
|
-
},
|
|
4818
|
+
}, Zo = {
|
|
4819
4819
|
key: 1,
|
|
4820
4820
|
class: "uid-pattern-result__description"
|
|
4821
|
-
},
|
|
4821
|
+
}, Qo = {
|
|
4822
4822
|
key: 2,
|
|
4823
4823
|
class: "uid-pattern-result__content"
|
|
4824
|
-
},
|
|
4824
|
+
}, $o = {
|
|
4825
4825
|
key: 3,
|
|
4826
4826
|
class: "uid-pattern-result__actions"
|
|
4827
|
-
},
|
|
4827
|
+
}, es = /* @__PURE__ */ f({
|
|
4828
4828
|
__name: "UidResult",
|
|
4829
4829
|
props: {
|
|
4830
4830
|
status: { default: "success" },
|
|
@@ -4838,31 +4838,717 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4838
4838
|
setup(t) {
|
|
4839
4839
|
let n = t, r = {
|
|
4840
4840
|
success: J,
|
|
4841
|
-
info:
|
|
4842
|
-
warning:
|
|
4843
|
-
error:
|
|
4841
|
+
info: se,
|
|
4842
|
+
warning: U,
|
|
4843
|
+
error: he
|
|
4844
4844
|
}, i = a(() => r[n.status]);
|
|
4845
4845
|
return (n, r) => (x(), c("div", {
|
|
4846
4846
|
class: _(["uid-pattern-result", [`uid-pattern-result--${t.status}`, t.compact && "uid-pattern-result--compact"]]),
|
|
4847
4847
|
role: "status"
|
|
4848
4848
|
}, [
|
|
4849
|
-
l("div",
|
|
4849
|
+
l("div", Yo, [E(n.$slots, "icon", {}, () => [d(e, {
|
|
4850
4850
|
icon: i.value,
|
|
4851
4851
|
size: t.compact ? 32 : 40
|
|
4852
4852
|
}, null, 8, ["icon", "size"])])]),
|
|
4853
|
-
t.title || n.$slots.title ? (x(), c("h2",
|
|
4854
|
-
t.description || n.$slots.description ? (x(), c("p",
|
|
4855
|
-
n.$slots.default ? (x(), c("div",
|
|
4856
|
-
n.$slots.actions ? (x(), c("div",
|
|
4853
|
+
t.title || n.$slots.title ? (x(), c("h2", Xo, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])])) : s("", !0),
|
|
4854
|
+
t.description || n.$slots.description ? (x(), c("p", Zo, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0),
|
|
4855
|
+
n.$slots.default ? (x(), c("div", Qo, [E(n.$slots, "default")])) : s("", !0),
|
|
4856
|
+
n.$slots.actions ? (x(), c("div", $o, [E(n.$slots, "actions")])) : s("", !0)
|
|
4857
|
+
], 2));
|
|
4858
|
+
}
|
|
4859
|
+
}), ts = ["aria-label"], ns = /* @__PURE__ */ f({
|
|
4860
|
+
__name: "UidBackTop",
|
|
4861
|
+
props: {
|
|
4862
|
+
visibleAfter: { default: 200 },
|
|
4863
|
+
target: {
|
|
4864
|
+
type: [String, Function],
|
|
4865
|
+
default: void 0
|
|
4866
|
+
},
|
|
4867
|
+
smooth: {
|
|
4868
|
+
type: Boolean,
|
|
4869
|
+
default: !0
|
|
4870
|
+
},
|
|
4871
|
+
ariaLabel: { default: "Наверх" }
|
|
4872
|
+
},
|
|
4873
|
+
emits: ["click"],
|
|
4874
|
+
setup(t, { emit: n }) {
|
|
4875
|
+
let i = t, a = n, s = w(!1), c = window;
|
|
4876
|
+
function u() {
|
|
4877
|
+
return i.target ? typeof i.target == "function" ? i.target() ?? window : typeof i.target == "string" ? document.querySelector(i.target) ?? window : i.target : window;
|
|
4878
|
+
}
|
|
4879
|
+
function f() {
|
|
4880
|
+
return c === window ? window.scrollY ?? document.documentElement.scrollTop : c.scrollTop;
|
|
4881
|
+
}
|
|
4882
|
+
function p() {
|
|
4883
|
+
s.value = f() >= i.visibleAfter;
|
|
4884
|
+
}
|
|
4885
|
+
function m() {
|
|
4886
|
+
a("click"), c === window ? window.scrollTo({
|
|
4887
|
+
top: 0,
|
|
4888
|
+
behavior: i.smooth ? "smooth" : "auto"
|
|
4889
|
+
}) : c.scrollTo({
|
|
4890
|
+
top: 0,
|
|
4891
|
+
behavior: i.smooth ? "smooth" : "auto"
|
|
4892
|
+
});
|
|
4893
|
+
}
|
|
4894
|
+
return y(() => {
|
|
4895
|
+
c = u(), c.addEventListener("scroll", p, { passive: !0 }), p();
|
|
4896
|
+
}), b(() => {
|
|
4897
|
+
c.removeEventListener("scroll", p);
|
|
4898
|
+
}), (n, i) => (x(), o(r, { name: "uid-back-top" }, {
|
|
4899
|
+
default: z(() => [B(l("button", {
|
|
4900
|
+
type: "button",
|
|
4901
|
+
class: "uid-back-top",
|
|
4902
|
+
"aria-label": t.ariaLabel,
|
|
4903
|
+
onClick: m
|
|
4904
|
+
}, [E(n.$slots, "default", {}, () => [d(e, {
|
|
4905
|
+
icon: j(K),
|
|
4906
|
+
size: 20
|
|
4907
|
+
}, null, 8, ["icon"])])], 8, ts), [[L, s.value]])]),
|
|
4908
|
+
_: 3
|
|
4909
|
+
}));
|
|
4910
|
+
}
|
|
4911
|
+
}), rs = { class: "uid-affix__content" }, is = /* @__PURE__ */ f({
|
|
4912
|
+
__name: "UidAffix",
|
|
4913
|
+
props: {
|
|
4914
|
+
offsetTop: {},
|
|
4915
|
+
offsetBottom: {}
|
|
4916
|
+
},
|
|
4917
|
+
emits: ["change"],
|
|
4918
|
+
setup(e, { emit: t }) {
|
|
4919
|
+
let n = e, r = t, i = w(null), o = w(null), s = w(!1), u = a(() => n.offsetBottom === void 0 ? "top" : "bottom"), d = a(() => u.value === "bottom" ? n.offsetBottom ?? 0 : n.offsetTop ?? 0), f = a(() => ({ "--uid-affix-offset": `${d.value}px` })), p = null;
|
|
4920
|
+
return R(s, (e) => r("change", e)), y(() => {
|
|
4921
|
+
if (!o.value) return;
|
|
4922
|
+
let e = u.value === "top" ? `-${d.value + 1}px 0px 0px 0px` : `0px 0px -${d.value + 1}px 0px`;
|
|
4923
|
+
p = new IntersectionObserver((e) => {
|
|
4924
|
+
s.value = !e[0].isIntersecting;
|
|
4925
|
+
}, {
|
|
4926
|
+
threshold: [0, 1],
|
|
4927
|
+
rootMargin: e
|
|
4928
|
+
}), p.observe(o.value);
|
|
4929
|
+
}), b(() => {
|
|
4930
|
+
p?.disconnect();
|
|
4931
|
+
}), (e, t) => (x(), c("div", {
|
|
4932
|
+
ref_key: "rootRef",
|
|
4933
|
+
ref: i,
|
|
4934
|
+
class: _(["uid-affix", [`uid-affix--${u.value}`, s.value && "uid-affix--affixed"]]),
|
|
4935
|
+
style: v(f.value)
|
|
4936
|
+
}, [l("div", {
|
|
4937
|
+
ref_key: "sentinelRef",
|
|
4938
|
+
ref: o,
|
|
4939
|
+
class: "uid-affix__sentinel",
|
|
4940
|
+
"aria-hidden": "true"
|
|
4941
|
+
}, null, 512), l("div", rs, [E(e.$slots, "default")])], 6));
|
|
4942
|
+
}
|
|
4943
|
+
}), as = { class: "uid-watermark" }, os = { class: "uid-watermark__content" }, ss = /* @__PURE__ */ f({
|
|
4944
|
+
__name: "UidWatermark",
|
|
4945
|
+
props: {
|
|
4946
|
+
content: { default: "" },
|
|
4947
|
+
font: { default: "600 16px system-ui, -apple-system, sans-serif" },
|
|
4948
|
+
color: { default: "rgba(0, 0, 0, 0.12)" },
|
|
4949
|
+
rotate: { default: -22 },
|
|
4950
|
+
gap: { default: () => [120, 120] },
|
|
4951
|
+
zIndex: { default: 9 }
|
|
4952
|
+
},
|
|
4953
|
+
setup(e) {
|
|
4954
|
+
let t = e, n = w(""), r = w([0, 0]);
|
|
4955
|
+
function i() {
|
|
4956
|
+
if (typeof document > "u") return;
|
|
4957
|
+
let e = Array.isArray(t.content) ? t.content : [t.content];
|
|
4958
|
+
if (e.length === 0 || e.every((e) => !e)) {
|
|
4959
|
+
n.value = "";
|
|
4960
|
+
return;
|
|
4961
|
+
}
|
|
4962
|
+
let i = document.createElement("canvas"), a = i.getContext("2d");
|
|
4963
|
+
if (!a) return;
|
|
4964
|
+
let o = typeof window < "u" && window.devicePixelRatio || 1;
|
|
4965
|
+
a.font = t.font;
|
|
4966
|
+
let s = parseInt(t.font, 10) * 1.4 || 24, c = 0;
|
|
4967
|
+
for (let t of e) c = Math.max(c, a.measureText(t).width);
|
|
4968
|
+
let l = s * e.length, u = t.rotate * Math.PI / 180, d = Math.abs(Math.sin(u)), f = Math.abs(Math.cos(u)), p = c * f + l * d, m = c * d + l * f, h = p + t.gap[0], g = m + t.gap[1];
|
|
4969
|
+
i.width = h * o, i.height = g * o, i.style.width = `${h}px`, i.style.height = `${g}px`, a.scale(o, o), a.translate(h / 2, g / 2), a.rotate(u), a.font = t.font, a.fillStyle = t.color, a.textAlign = "center", a.textBaseline = "middle";
|
|
4970
|
+
let _ = -((e.length - 1) * s) / 2;
|
|
4971
|
+
e.forEach((e, t) => {
|
|
4972
|
+
a.fillText(e, 0, _ + t * s);
|
|
4973
|
+
}), n.value = i.toDataURL("image/png"), r.value = [h, g];
|
|
4974
|
+
}
|
|
4975
|
+
let o = a(() => ({
|
|
4976
|
+
"--uid-watermark-image": n.value ? `url(${n.value})` : "none",
|
|
4977
|
+
"--uid-watermark-size": `${r.value[0]}px ${r.value[1]}px`,
|
|
4978
|
+
"--uid-watermark-z": t.zIndex
|
|
4979
|
+
}));
|
|
4980
|
+
return R(() => [
|
|
4981
|
+
t.content,
|
|
4982
|
+
t.font,
|
|
4983
|
+
t.color,
|
|
4984
|
+
t.rotate,
|
|
4985
|
+
t.gap
|
|
4986
|
+
], () => i(), { deep: !0 }), y(() => {
|
|
4987
|
+
i();
|
|
4988
|
+
}), b(() => {
|
|
4989
|
+
n.value = "";
|
|
4990
|
+
}), (e, t) => (x(), c("div", as, [l("div", {
|
|
4991
|
+
class: "uid-watermark__overlay",
|
|
4992
|
+
style: v(o.value),
|
|
4993
|
+
"aria-hidden": "true"
|
|
4994
|
+
}, null, 4), l("div", os, [E(e.$slots, "default")])]));
|
|
4995
|
+
}
|
|
4996
|
+
}), cs = {
|
|
4997
|
+
class: "uid-anchor",
|
|
4998
|
+
"aria-label": "Содержание"
|
|
4999
|
+
}, ls = { class: "uid-anchor__list" }, us = ["href", "onClick"], ds = {
|
|
5000
|
+
key: 0,
|
|
5001
|
+
class: "uid-anchor__sublist"
|
|
5002
|
+
}, fs = ["href", "onClick"], ps = /* @__PURE__ */ f({
|
|
5003
|
+
__name: "UidAnchor",
|
|
5004
|
+
props: /* @__PURE__ */ m({
|
|
5005
|
+
items: {},
|
|
5006
|
+
offsetTop: { default: 0 },
|
|
5007
|
+
target: {
|
|
5008
|
+
type: Function,
|
|
5009
|
+
default: void 0
|
|
5010
|
+
},
|
|
5011
|
+
smooth: {
|
|
5012
|
+
type: Boolean,
|
|
5013
|
+
default: !0
|
|
5014
|
+
}
|
|
5015
|
+
}, {
|
|
5016
|
+
modelValue: { default: "" },
|
|
5017
|
+
modelModifiers: {}
|
|
5018
|
+
}),
|
|
5019
|
+
emits: /* @__PURE__ */ m(["click", "change"], ["update:modelValue"]),
|
|
5020
|
+
setup(e, { emit: n }) {
|
|
5021
|
+
let r = e, i = n, a = N(e, "modelValue"), o = w([]);
|
|
5022
|
+
function u(e) {
|
|
5023
|
+
return e.flatMap((e) => [e, ...e.children ? u(e.children) : []]);
|
|
5024
|
+
}
|
|
5025
|
+
R(() => r.items, (e) => {
|
|
5026
|
+
o.value = u(e);
|
|
5027
|
+
}, { immediate: !0 });
|
|
5028
|
+
let d = null, f = w(/* @__PURE__ */ new Set());
|
|
5029
|
+
function p() {
|
|
5030
|
+
if (d?.disconnect(), !(typeof window > "u")) {
|
|
5031
|
+
d = new IntersectionObserver((e) => {
|
|
5032
|
+
let t = new Set(f.value);
|
|
5033
|
+
for (let n of e) {
|
|
5034
|
+
let e = n.target.id;
|
|
5035
|
+
n.isIntersecting ? t.add(e) : t.delete(e);
|
|
5036
|
+
}
|
|
5037
|
+
f.value = t;
|
|
5038
|
+
let n = o.value.find((e) => t.has(e.href.replace(/^#/, "")));
|
|
5039
|
+
n && n.key !== a.value && (a.value = n.key, i("change", n.key));
|
|
5040
|
+
}, {
|
|
5041
|
+
rootMargin: `-${r.offsetTop}px 0px -60% 0px`,
|
|
5042
|
+
threshold: 0
|
|
5043
|
+
});
|
|
5044
|
+
for (let e of o.value) {
|
|
5045
|
+
let t = e.href.replace(/^#/, ""), n = document.getElementById(t);
|
|
5046
|
+
n && d.observe(n);
|
|
5047
|
+
}
|
|
5048
|
+
}
|
|
5049
|
+
}
|
|
5050
|
+
y(() => {
|
|
5051
|
+
setTimeout(p, 0);
|
|
5052
|
+
}), R(o, () => p()), b(() => {
|
|
5053
|
+
d?.disconnect();
|
|
5054
|
+
});
|
|
5055
|
+
function m(e, t) {
|
|
5056
|
+
if (i("click", t, e), e.defaultPrevented) return;
|
|
5057
|
+
let n = t.href.replace(/^#/, ""), o = document.getElementById(n);
|
|
5058
|
+
if (!o) return;
|
|
5059
|
+
e.preventDefault(), a.value = t.key, i("change", t.key);
|
|
5060
|
+
let s = o.getBoundingClientRect().top + window.scrollY - r.offsetTop;
|
|
5061
|
+
window.scrollTo({
|
|
5062
|
+
top: s,
|
|
5063
|
+
behavior: r.smooth ? "smooth" : "auto"
|
|
5064
|
+
});
|
|
5065
|
+
}
|
|
5066
|
+
return (n, r) => (x(), c("nav", cs, [l("ul", ls, [(x(!0), c(t, null, T(e.items, (e) => (x(), c("li", {
|
|
5067
|
+
key: e.key,
|
|
5068
|
+
class: "uid-anchor__item"
|
|
5069
|
+
}, [l("a", {
|
|
5070
|
+
href: e.href,
|
|
5071
|
+
class: _(["uid-anchor__link", { "uid-anchor__link--active": a.value === e.key }]),
|
|
5072
|
+
onClick: (t) => m(t, e)
|
|
5073
|
+
}, k(e.title), 11, us), e.children?.length ? (x(), c("ul", ds, [(x(!0), c(t, null, T(e.children, (e) => (x(), c("li", {
|
|
5074
|
+
key: e.key,
|
|
5075
|
+
class: "uid-anchor__item"
|
|
5076
|
+
}, [l("a", {
|
|
5077
|
+
href: e.href,
|
|
5078
|
+
class: _(["uid-anchor__link", { "uid-anchor__link--active": a.value === e.key }]),
|
|
5079
|
+
onClick: (t) => m(t, e)
|
|
5080
|
+
}, k(e.title), 11, fs)]))), 128))])) : s("", !0)]))), 128))])]));
|
|
5081
|
+
}
|
|
5082
|
+
}), ms = ["aria-label"], hs = {
|
|
5083
|
+
key: 0,
|
|
5084
|
+
class: "uid-tour__title"
|
|
5085
|
+
}, gs = {
|
|
5086
|
+
key: 1,
|
|
5087
|
+
class: "uid-tour__description"
|
|
5088
|
+
}, _s = { class: "uid-tour__footer" }, vs = {
|
|
5089
|
+
key: 0,
|
|
5090
|
+
class: "uid-tour__progress"
|
|
5091
|
+
}, ys = { key: 1 }, bs = { class: "uid-tour__actions" }, xs = /* @__PURE__ */ f({
|
|
5092
|
+
__name: "UidTour",
|
|
5093
|
+
props: /* @__PURE__ */ m({
|
|
5094
|
+
steps: {},
|
|
5095
|
+
maskClosable: {
|
|
5096
|
+
type: Boolean,
|
|
5097
|
+
default: !1
|
|
5098
|
+
},
|
|
5099
|
+
showSkip: {
|
|
5100
|
+
type: Boolean,
|
|
5101
|
+
default: !0
|
|
5102
|
+
},
|
|
5103
|
+
showProgress: {
|
|
5104
|
+
type: Boolean,
|
|
5105
|
+
default: !0
|
|
5106
|
+
},
|
|
5107
|
+
nextText: { default: "Далее" },
|
|
5108
|
+
prevText: { default: "Назад" },
|
|
5109
|
+
finishText: { default: "Готово" },
|
|
5110
|
+
skipText: { default: "Пропустить" }
|
|
5111
|
+
}, {
|
|
5112
|
+
modelValue: {
|
|
5113
|
+
type: Boolean,
|
|
5114
|
+
default: !1
|
|
5115
|
+
},
|
|
5116
|
+
modelModifiers: {},
|
|
5117
|
+
current: { default: 0 },
|
|
5118
|
+
currentModifiers: {}
|
|
5119
|
+
}),
|
|
5120
|
+
emits: /* @__PURE__ */ m([
|
|
5121
|
+
"finish",
|
|
5122
|
+
"close",
|
|
5123
|
+
"change"
|
|
5124
|
+
], ["update:modelValue", "update:current"]),
|
|
5125
|
+
setup(e, { emit: t }) {
|
|
5126
|
+
let r = e, i = t, u = N(e, "modelValue"), d = N(e, "current"), f = w(null), p = w(null), m = a(() => r.steps[d.value]);
|
|
5127
|
+
function h(e) {
|
|
5128
|
+
return e ? typeof e == "string" ? document.querySelector(e) : typeof e == "function" ? e() : e instanceof HTMLElement ? e : null : null;
|
|
5129
|
+
}
|
|
5130
|
+
function y() {
|
|
5131
|
+
if (!m.value) return;
|
|
5132
|
+
let e = h(m.value.target);
|
|
5133
|
+
f.value = e?.getBoundingClientRect() ?? null, e && e.scrollIntoView({
|
|
5134
|
+
block: "center",
|
|
5135
|
+
inline: "center",
|
|
5136
|
+
behavior: "smooth"
|
|
5137
|
+
}), S();
|
|
5138
|
+
}
|
|
5139
|
+
function S() {
|
|
5140
|
+
if (!f.value) {
|
|
5141
|
+
p.value = null;
|
|
5142
|
+
return;
|
|
5143
|
+
}
|
|
5144
|
+
let e = m.value?.placement ?? "bottom", t = f.value, n = 0, r = 0;
|
|
5145
|
+
switch (e) {
|
|
5146
|
+
case "top":
|
|
5147
|
+
n = t.top - 12 - 8, r = t.left + t.width / 2 - 320 / 2;
|
|
5148
|
+
break;
|
|
5149
|
+
case "bottom":
|
|
5150
|
+
n = t.bottom + 12, r = t.left + t.width / 2 - 320 / 2;
|
|
5151
|
+
break;
|
|
5152
|
+
case "left":
|
|
5153
|
+
n = t.top + t.height / 2 - 60, r = t.left - 12 - 320;
|
|
5154
|
+
break;
|
|
5155
|
+
case "right":
|
|
5156
|
+
n = t.top + t.height / 2 - 60, r = t.right + 12;
|
|
5157
|
+
break;
|
|
5158
|
+
default: n = t.bottom + 12, r = t.left + t.width / 2 - 320 / 2;
|
|
5159
|
+
}
|
|
5160
|
+
let i = window.innerWidth;
|
|
5161
|
+
r < 16 && (r = 16), r + 320 > i - 16 && (r = i - 320 - 16), p.value = {
|
|
5162
|
+
top: n,
|
|
5163
|
+
left: r
|
|
5164
|
+
};
|
|
5165
|
+
}
|
|
5166
|
+
let C = a(() => {
|
|
5167
|
+
if (!f.value) return null;
|
|
5168
|
+
let e = f.value;
|
|
5169
|
+
return {
|
|
5170
|
+
top: `${e.top - 4}px`,
|
|
5171
|
+
left: `${e.left - 4}px`,
|
|
5172
|
+
width: `${e.width + 8}px`,
|
|
5173
|
+
height: `${e.height + 8}px`
|
|
5174
|
+
};
|
|
5175
|
+
}), T = a(() => p.value ? {
|
|
5176
|
+
top: `${p.value.top}px`,
|
|
5177
|
+
left: `${p.value.left}px`
|
|
5178
|
+
} : null), E = a(() => !m.value?.target || m.value?.placement === "center");
|
|
5179
|
+
function D() {
|
|
5180
|
+
d.value > 0 && (d.value--, i("change", d.value));
|
|
5181
|
+
}
|
|
5182
|
+
function O() {
|
|
5183
|
+
d.value < r.steps.length - 1 ? (d.value++, i("change", d.value)) : A();
|
|
5184
|
+
}
|
|
5185
|
+
function A() {
|
|
5186
|
+
i("finish"), u.value = !1;
|
|
5187
|
+
}
|
|
5188
|
+
function j() {
|
|
5189
|
+
i("close"), u.value = !1;
|
|
5190
|
+
}
|
|
5191
|
+
function M() {
|
|
5192
|
+
r.maskClosable && j();
|
|
5193
|
+
}
|
|
5194
|
+
R([u, d], async () => {
|
|
5195
|
+
u.value && (await g(), y());
|
|
5196
|
+
});
|
|
5197
|
+
let P = 0;
|
|
5198
|
+
function F() {
|
|
5199
|
+
P && cancelAnimationFrame(P), P = requestAnimationFrame(y);
|
|
5200
|
+
}
|
|
5201
|
+
return R(u, (e) => {
|
|
5202
|
+
e && typeof window < "u" ? (window.addEventListener("resize", F), window.addEventListener("scroll", F, !0)) : (window.removeEventListener("resize", F), window.removeEventListener("scroll", F, !0));
|
|
5203
|
+
}, { immediate: !0 }), b(() => {
|
|
5204
|
+
typeof window > "u" || (window.removeEventListener("resize", F), window.removeEventListener("scroll", F, !0));
|
|
5205
|
+
}), (t, r) => (x(), o(n, { to: "body" }, [u.value && m.value ? (x(), c("div", {
|
|
5206
|
+
key: 0,
|
|
5207
|
+
class: "uid-tour",
|
|
5208
|
+
role: "dialog",
|
|
5209
|
+
"aria-modal": "true",
|
|
5210
|
+
"aria-label": m.value.title
|
|
5211
|
+
}, [
|
|
5212
|
+
l("div", {
|
|
5213
|
+
class: "uid-tour__mask",
|
|
5214
|
+
onClick: M
|
|
5215
|
+
}),
|
|
5216
|
+
C.value ? (x(), c("div", {
|
|
5217
|
+
key: 0,
|
|
5218
|
+
class: "uid-tour__spotlight",
|
|
5219
|
+
style: v(C.value)
|
|
5220
|
+
}, null, 4)) : s("", !0),
|
|
5221
|
+
l("div", {
|
|
5222
|
+
class: _(["uid-tour__popover", { "uid-tour__popover--center": E.value }]),
|
|
5223
|
+
style: v(E.value ? void 0 : T.value)
|
|
5224
|
+
}, [
|
|
5225
|
+
m.value.title ? (x(), c("h3", hs, k(m.value.title), 1)) : s("", !0),
|
|
5226
|
+
m.value.description ? (x(), c("p", gs, k(m.value.description), 1)) : s("", !0),
|
|
5227
|
+
l("div", _s, [e.showProgress ? (x(), c("span", vs, k(d.value + 1) + " / " + k(e.steps.length), 1)) : (x(), c("span", ys)), l("div", bs, [
|
|
5228
|
+
e.showSkip && d.value < e.steps.length - 1 ? (x(), c("button", {
|
|
5229
|
+
key: 0,
|
|
5230
|
+
type: "button",
|
|
5231
|
+
class: "uid-tour__btn uid-tour__btn--ghost",
|
|
5232
|
+
onClick: j
|
|
5233
|
+
}, k(e.skipText), 1)) : s("", !0),
|
|
5234
|
+
d.value > 0 ? (x(), c("button", {
|
|
5235
|
+
key: 1,
|
|
5236
|
+
type: "button",
|
|
5237
|
+
class: "uid-tour__btn",
|
|
5238
|
+
onClick: D
|
|
5239
|
+
}, k(e.prevText), 1)) : s("", !0),
|
|
5240
|
+
l("button", {
|
|
5241
|
+
type: "button",
|
|
5242
|
+
class: "uid-tour__btn uid-tour__btn--primary",
|
|
5243
|
+
onClick: O
|
|
5244
|
+
}, k(d.value === e.steps.length - 1 ? e.finishText : e.nextText), 1)
|
|
5245
|
+
])])
|
|
5246
|
+
], 6)
|
|
5247
|
+
], 8, ms)) : s("", !0)]));
|
|
5248
|
+
}
|
|
5249
|
+
}), Ss = ["for"], Cs = [
|
|
5250
|
+
"id",
|
|
5251
|
+
"value",
|
|
5252
|
+
"placeholder",
|
|
5253
|
+
"rows",
|
|
5254
|
+
"disabled"
|
|
5255
|
+
], ws = ["onMousedown", "onMouseenter"], Ts = { class: "uid-mention__option-label" }, Es = {
|
|
5256
|
+
key: 0,
|
|
5257
|
+
class: "uid-mention__option-hint"
|
|
5258
|
+
}, Ds = {
|
|
5259
|
+
key: 0,
|
|
5260
|
+
class: "uid-mention__empty"
|
|
5261
|
+
}, Os = /* @__PURE__ */ f({
|
|
5262
|
+
__name: "UidMention",
|
|
5263
|
+
props: /* @__PURE__ */ m({
|
|
5264
|
+
options: {},
|
|
5265
|
+
prefix: { default: "@" },
|
|
5266
|
+
placeholder: {},
|
|
5267
|
+
disabled: { type: Boolean },
|
|
5268
|
+
rows: { default: 4 },
|
|
5269
|
+
label: {},
|
|
5270
|
+
emptyText: { default: "Никого не найдено" },
|
|
5271
|
+
filter: {
|
|
5272
|
+
type: Function,
|
|
5273
|
+
default: void 0
|
|
5274
|
+
}
|
|
5275
|
+
}, {
|
|
5276
|
+
modelValue: { default: "" },
|
|
5277
|
+
modelModifiers: {}
|
|
5278
|
+
}),
|
|
5279
|
+
emits: /* @__PURE__ */ m(["select"], ["update:modelValue"]),
|
|
5280
|
+
setup(e, { emit: n }) {
|
|
5281
|
+
let r = e, i = n, o = N(e, "modelValue"), u = w(null), d = M(), f = w(!1), p = w(""), m = w(0), h = w(-1), y = w(""), b = w({
|
|
5282
|
+
top: 0,
|
|
5283
|
+
left: 0
|
|
5284
|
+
}), S = a(() => Array.isArray(r.prefix) ? r.prefix : [r.prefix]), C = a(() => {
|
|
5285
|
+
let e = p.value.toLowerCase();
|
|
5286
|
+
return r.filter ? r.options.filter((e) => r.filter(e, p.value)) : e ? r.options.filter((t) => t.label.toLowerCase().includes(e) || t.value.toLowerCase().includes(e)) : r.options;
|
|
5287
|
+
});
|
|
5288
|
+
function E() {
|
|
5289
|
+
let e = u.value;
|
|
5290
|
+
if (!e) return;
|
|
5291
|
+
let t = e.selectionStart ?? 0, n = o.value.slice(0, t), r = -1, i = "";
|
|
5292
|
+
for (let e of S.value) {
|
|
5293
|
+
let t = n.lastIndexOf(e);
|
|
5294
|
+
if (t > r) {
|
|
5295
|
+
let a = n[t - 1];
|
|
5296
|
+
if (t === 0 || /\s/.test(a ?? "")) {
|
|
5297
|
+
let a = n.slice(t + e.length);
|
|
5298
|
+
/\s/.test(a) || (r = t, i = e);
|
|
5299
|
+
}
|
|
5300
|
+
}
|
|
5301
|
+
}
|
|
5302
|
+
r >= 0 ? (h.value = r, y.value = i, p.value = n.slice(r + i.length), m.value = 0, f.value || (f.value = !0, g(D))) : (f.value = !1, p.value = "", h.value = -1);
|
|
5303
|
+
}
|
|
5304
|
+
function D() {
|
|
5305
|
+
let e = u.value;
|
|
5306
|
+
e && (b.value = {
|
|
5307
|
+
top: e.getBoundingClientRect().height + 4,
|
|
5308
|
+
left: 0
|
|
5309
|
+
});
|
|
5310
|
+
}
|
|
5311
|
+
function O(e) {
|
|
5312
|
+
if (h.value < 0) return;
|
|
5313
|
+
let t = u.value;
|
|
5314
|
+
if (!t) return;
|
|
5315
|
+
let n = t.selectionStart ?? 0, r = o.value.slice(0, h.value), a = o.value.slice(n), s = `${y.value}${e.value} `;
|
|
5316
|
+
o.value = r + s + a, i("select", e, y.value), f.value = !1, h.value = -1, p.value = "", g(() => {
|
|
5317
|
+
let e = r.length + s.length;
|
|
5318
|
+
t.focus(), t.setSelectionRange(e, e);
|
|
5319
|
+
});
|
|
5320
|
+
}
|
|
5321
|
+
function A(e) {
|
|
5322
|
+
o.value = e.target.value, E();
|
|
5323
|
+
}
|
|
5324
|
+
function P() {
|
|
5325
|
+
E();
|
|
5326
|
+
}
|
|
5327
|
+
function F(e) {
|
|
5328
|
+
f.value && (e.key === "ArrowDown" ? (e.preventDefault(), m.value = Math.min(m.value + 1, C.value.length - 1)) : e.key === "ArrowUp" ? (e.preventDefault(), m.value = Math.max(m.value - 1, 0)) : e.key === "Enter" || e.key === "Tab" ? C.value.length > 0 && (e.preventDefault(), O(C.value[m.value])) : e.key === "Escape" && (f.value = !1));
|
|
5329
|
+
}
|
|
5330
|
+
let I = a(() => ({
|
|
5331
|
+
top: `${b.value.top}px`,
|
|
5332
|
+
left: `${b.value.left}px`
|
|
5333
|
+
}));
|
|
5334
|
+
return (n, r) => (x(), c("div", { class: _(["uid-mention", { "uid-mention--disabled": e.disabled }]) }, [
|
|
5335
|
+
e.label ? (x(), c("label", {
|
|
5336
|
+
key: 0,
|
|
5337
|
+
for: j(d),
|
|
5338
|
+
class: "uid-mention__label"
|
|
5339
|
+
}, k(e.label), 9, Ss)) : s("", !0),
|
|
5340
|
+
l("textarea", {
|
|
5341
|
+
id: j(d),
|
|
5342
|
+
ref_key: "fieldRef",
|
|
5343
|
+
ref: u,
|
|
5344
|
+
class: "uid-mention__field",
|
|
5345
|
+
value: o.value,
|
|
5346
|
+
placeholder: e.placeholder,
|
|
5347
|
+
rows: e.rows,
|
|
5348
|
+
disabled: e.disabled,
|
|
5349
|
+
onInput: A,
|
|
5350
|
+
onClick: P,
|
|
5351
|
+
onKeydown: F,
|
|
5352
|
+
onKeyup: E,
|
|
5353
|
+
onBlur: r[0] ||= (e) => f.value = !1
|
|
5354
|
+
}, null, 40, Cs),
|
|
5355
|
+
f.value ? (x(), c("div", {
|
|
5356
|
+
key: 1,
|
|
5357
|
+
class: "uid-mention__dropdown",
|
|
5358
|
+
style: v(I.value)
|
|
5359
|
+
}, [(x(!0), c(t, null, T(C.value, (e, t) => (x(), c("button", {
|
|
5360
|
+
key: e.value,
|
|
5361
|
+
type: "button",
|
|
5362
|
+
class: _(["uid-mention__option", { "uid-mention__option--active": t === m.value }]),
|
|
5363
|
+
onMousedown: V((t) => O(e), ["prevent"]),
|
|
5364
|
+
onMouseenter: (e) => m.value = t
|
|
5365
|
+
}, [l("span", Ts, k(e.label), 1), e.hint ? (x(), c("span", Es, k(e.hint), 1)) : s("", !0)], 42, ws))), 128)), C.value.length === 0 ? (x(), c("div", Ds, k(e.emptyText), 1)) : s("", !0)], 4)) : s("", !0)
|
|
5366
|
+
], 2));
|
|
5367
|
+
}
|
|
5368
|
+
}), ks = ["for"], As = {
|
|
5369
|
+
key: 0,
|
|
5370
|
+
class: "uid-tree-select__required",
|
|
5371
|
+
"aria-hidden": "true"
|
|
5372
|
+
}, js = [
|
|
5373
|
+
"id",
|
|
5374
|
+
"aria-expanded",
|
|
5375
|
+
"aria-disabled",
|
|
5376
|
+
"aria-invalid"
|
|
5377
|
+
], Ms = { class: "uid-tree-select__value" }, Ns = ["aria-label", "onClick"], Ps = {
|
|
5378
|
+
key: 0,
|
|
5379
|
+
class: "uid-tree-select__chip"
|
|
5380
|
+
}, Fs = {
|
|
5381
|
+
key: 1,
|
|
5382
|
+
class: "uid-tree-select__placeholder"
|
|
5383
|
+
}, Is = { key: 0 }, Ls = {
|
|
5384
|
+
key: 1,
|
|
5385
|
+
class: "uid-tree-select__placeholder"
|
|
5386
|
+
}, Rs = { class: "uid-tree-select__suffix" }, zs = {
|
|
5387
|
+
key: 1,
|
|
5388
|
+
class: "uid-tree-select__dropdown"
|
|
5389
|
+
}, Bs = /* @__PURE__ */ f({
|
|
5390
|
+
__name: "UidTreeSelect",
|
|
5391
|
+
props: /* @__PURE__ */ m({
|
|
5392
|
+
nodes: {},
|
|
5393
|
+
multiple: {
|
|
5394
|
+
type: Boolean,
|
|
5395
|
+
default: !1
|
|
5396
|
+
},
|
|
5397
|
+
placeholder: { default: "Выберите..." },
|
|
5398
|
+
disabled: {
|
|
5399
|
+
type: Boolean,
|
|
5400
|
+
default: !1
|
|
5401
|
+
},
|
|
5402
|
+
clearable: {
|
|
5403
|
+
type: Boolean,
|
|
5404
|
+
default: !0
|
|
5405
|
+
},
|
|
5406
|
+
defaultExpandAll: {
|
|
5407
|
+
type: Boolean,
|
|
5408
|
+
default: !1
|
|
5409
|
+
},
|
|
5410
|
+
showGuides: {
|
|
5411
|
+
type: Boolean,
|
|
5412
|
+
default: !1
|
|
5413
|
+
},
|
|
5414
|
+
label: {},
|
|
5415
|
+
hint: {},
|
|
5416
|
+
error: {},
|
|
5417
|
+
required: {
|
|
5418
|
+
type: Boolean,
|
|
5419
|
+
default: !1
|
|
5420
|
+
},
|
|
5421
|
+
maxTagCount: { default: void 0 }
|
|
5422
|
+
}, {
|
|
5423
|
+
modelValue: { default: null },
|
|
5424
|
+
modelModifiers: {},
|
|
5425
|
+
expandedKeys: { default: () => [] },
|
|
5426
|
+
expandedKeysModifiers: {}
|
|
5427
|
+
}),
|
|
5428
|
+
emits: /* @__PURE__ */ m(["change"], ["update:modelValue", "update:expandedKeys"]),
|
|
5429
|
+
setup(n, { emit: r }) {
|
|
5430
|
+
let i = n, o = r, f = N(n, "modelValue"), p = N(n, "expandedKeys"), m = w(!1), h = w(null), g = w(null), v = M(), y = a(() => !!i.error), S = a(() => i.error || i.hint);
|
|
5431
|
+
function C(e) {
|
|
5432
|
+
return e.flatMap((e) => [e, ...e.children ? C(e.children) : []]);
|
|
5433
|
+
}
|
|
5434
|
+
let E = a(() => C(i.nodes)), D = a(() => f.value === null || f.value === void 0 ? [] : Array.isArray(f.value) ? f.value : [f.value]), O = a(() => D.value.map((e) => E.value.find((t) => t.key === e)).filter((e) => !!e)), A = a(() => i.maxTagCount ? O.value.slice(0, i.maxTagCount) : O.value), P = a(() => i.maxTagCount ? Math.max(0, O.value.length - i.maxTagCount) : 0);
|
|
5435
|
+
function F() {
|
|
5436
|
+
i.disabled || (m.value = !0);
|
|
5437
|
+
}
|
|
5438
|
+
function I() {
|
|
5439
|
+
m.value = !1;
|
|
5440
|
+
}
|
|
5441
|
+
function L() {
|
|
5442
|
+
m.value ? I() : F();
|
|
5443
|
+
}
|
|
5444
|
+
function z(e) {
|
|
5445
|
+
if (i.multiple) {
|
|
5446
|
+
let t = Array.isArray(f.value) ? [...f.value] : [], n = t.indexOf(e.key);
|
|
5447
|
+
n >= 0 ? t.splice(n, 1) : t.push(e.key), f.value = t, o("change", t);
|
|
5448
|
+
} else f.value = e.key, o("change", e.key), I();
|
|
5449
|
+
}
|
|
5450
|
+
function B(e) {
|
|
5451
|
+
e.stopPropagation();
|
|
5452
|
+
let t = i.multiple ? [] : null;
|
|
5453
|
+
f.value = t, o("change", t);
|
|
5454
|
+
}
|
|
5455
|
+
function H(e, t) {
|
|
5456
|
+
if (e.stopPropagation(), !Array.isArray(f.value)) return;
|
|
5457
|
+
let n = f.value.filter((e) => e !== t);
|
|
5458
|
+
f.value = n, o("change", n);
|
|
5459
|
+
}
|
|
5460
|
+
function U(e) {
|
|
5461
|
+
e.key === "Enter" || e.key === " " ? (e.preventDefault(), L()) : e.key === "Escape" && I();
|
|
5462
|
+
}
|
|
5463
|
+
function W(e) {
|
|
5464
|
+
let t = e.target;
|
|
5465
|
+
h.value?.contains(t) || I();
|
|
5466
|
+
}
|
|
5467
|
+
return R(m, (e) => {
|
|
5468
|
+
e ? document.addEventListener("pointerdown", W) : document.removeEventListener("pointerdown", W);
|
|
5469
|
+
}), b(() => document.removeEventListener("pointerdown", W)), (r, i) => (x(), c("div", {
|
|
5470
|
+
ref_key: "containerRef",
|
|
5471
|
+
ref: h,
|
|
5472
|
+
class: _(["uid-tree-select", {
|
|
5473
|
+
"uid-tree-select--open": m.value,
|
|
5474
|
+
"uid-tree-select--disabled": n.disabled,
|
|
5475
|
+
"uid-tree-select--error": y.value
|
|
5476
|
+
}])
|
|
5477
|
+
}, [
|
|
5478
|
+
n.label ? (x(), c("label", {
|
|
5479
|
+
key: 0,
|
|
5480
|
+
for: j(v),
|
|
5481
|
+
class: "uid-tree-select__label"
|
|
5482
|
+
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", As, "*")) : s("", !0)], 8, ks)) : s("", !0),
|
|
5483
|
+
l("div", {
|
|
5484
|
+
id: j(v),
|
|
5485
|
+
ref_key: "triggerRef",
|
|
5486
|
+
ref: g,
|
|
5487
|
+
class: "uid-tree-select__trigger",
|
|
5488
|
+
tabindex: "0",
|
|
5489
|
+
role: "combobox",
|
|
5490
|
+
"aria-expanded": m.value,
|
|
5491
|
+
"aria-disabled": n.disabled,
|
|
5492
|
+
"aria-invalid": y.value ? "true" : void 0,
|
|
5493
|
+
onClick: L,
|
|
5494
|
+
onKeydown: U
|
|
5495
|
+
}, [l("div", Ms, [n.multiple ? (x(), c(t, { key: 0 }, [
|
|
5496
|
+
(x(!0), c(t, null, T(A.value, (e) => (x(), c("span", {
|
|
5497
|
+
key: e.key,
|
|
5498
|
+
class: "uid-tree-select__chip"
|
|
5499
|
+
}, [l("span", null, k(e.label), 1), l("button", {
|
|
5500
|
+
type: "button",
|
|
5501
|
+
class: "uid-tree-select__chip-remove",
|
|
5502
|
+
"aria-label": `Удалить ${e.label}`,
|
|
5503
|
+
onClick: V((t) => H(t, e.key), ["stop"])
|
|
5504
|
+
}, "×", 8, Ns)]))), 128)),
|
|
5505
|
+
P.value > 0 ? (x(), c("span", Ps, "+" + k(P.value), 1)) : s("", !0),
|
|
5506
|
+
O.value.length === 0 ? (x(), c("span", Fs, k(n.placeholder), 1)) : s("", !0)
|
|
5507
|
+
], 64)) : (x(), c(t, { key: 1 }, [O.value.length > 0 ? (x(), c("span", Is, k(O.value[0].label), 1)) : (x(), c("span", Ls, k(n.placeholder), 1))], 64))]), l("div", Rs, [n.clearable && D.value.length > 0 ? (x(), c("button", {
|
|
5508
|
+
key: 0,
|
|
5509
|
+
type: "button",
|
|
5510
|
+
class: "uid-tree-select__clear",
|
|
5511
|
+
"aria-label": "Очистить",
|
|
5512
|
+
onClick: B
|
|
5513
|
+
}, [d(e, {
|
|
5514
|
+
icon: j(Z),
|
|
5515
|
+
size: 14
|
|
5516
|
+
}, null, 8, ["icon"])])) : s("", !0), d(e, {
|
|
5517
|
+
icon: j(Y),
|
|
5518
|
+
size: 16,
|
|
5519
|
+
class: _(["uid-tree-select__chevron", { "uid-tree-select__chevron--open": m.value }]),
|
|
5520
|
+
"aria-hidden": "true"
|
|
5521
|
+
}, null, 8, ["icon", "class"])])], 40, js),
|
|
5522
|
+
m.value ? (x(), c("div", zs, [d(Ua, {
|
|
5523
|
+
nodes: n.nodes,
|
|
5524
|
+
"expanded-keys": p.value,
|
|
5525
|
+
"onUpdate:expandedKeys": i[0] ||= (e) => p.value = e,
|
|
5526
|
+
"selected-keys": D.value,
|
|
5527
|
+
selectable: n.multiple ? "multiple" : "single",
|
|
5528
|
+
"default-expand-all": n.defaultExpandAll,
|
|
5529
|
+
"show-guides": n.showGuides,
|
|
5530
|
+
onSelect: z
|
|
5531
|
+
}, null, 8, [
|
|
5532
|
+
"nodes",
|
|
5533
|
+
"expanded-keys",
|
|
5534
|
+
"selected-keys",
|
|
5535
|
+
"selectable",
|
|
5536
|
+
"default-expand-all",
|
|
5537
|
+
"show-guides"
|
|
5538
|
+
])])) : s("", !0),
|
|
5539
|
+
S.value ? (x(), c("p", {
|
|
5540
|
+
key: 2,
|
|
5541
|
+
class: _(["uid-tree-select__hint", y.value && "uid-tree-select__hint--error"])
|
|
5542
|
+
}, k(S.value), 3)) : s("", !0)
|
|
4857
5543
|
], 2));
|
|
4858
5544
|
}
|
|
4859
|
-
}),
|
|
5545
|
+
}), Vs = ["aria-label"], Hs = ["aria-current"], Us = { class: "uid-stepper__indicator" }, Ws = {
|
|
4860
5546
|
key: 1,
|
|
4861
5547
|
"aria-hidden": "true"
|
|
4862
|
-
},
|
|
5548
|
+
}, Gs = { class: "uid-stepper__content" }, Ks = { class: "uid-stepper__label" }, qs = {
|
|
4863
5549
|
key: 0,
|
|
4864
5550
|
class: "uid-stepper__description"
|
|
4865
|
-
},
|
|
5551
|
+
}, Js = /* @__PURE__ */ f({
|
|
4866
5552
|
__name: "UidStepper",
|
|
4867
5553
|
props: {
|
|
4868
5554
|
steps: {},
|
|
@@ -4880,14 +5566,14 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4880
5566
|
key: i,
|
|
4881
5567
|
class: _(["uid-stepper__step", [`uid-stepper__step--${r(i, n.current)}`]]),
|
|
4882
5568
|
"aria-current": i === n.current ? "step" : void 0
|
|
4883
|
-
}, [l("div",
|
|
5569
|
+
}, [l("div", Us, [r(i, n.current) === "completed" ? (x(), o(e, {
|
|
4884
5570
|
key: 0,
|
|
4885
5571
|
icon: j(q),
|
|
4886
5572
|
size: 16,
|
|
4887
5573
|
"aria-hidden": "true"
|
|
4888
|
-
}, null, 8, ["icon"])) : (x(), c("span",
|
|
5574
|
+
}, null, 8, ["icon"])) : (x(), c("span", Ws, k(i + 1), 1))]), l("div", Gs, [l("span", Ks, k(t.label), 1), t.description ? (x(), c("span", qs, k(t.description), 1)) : s("", !0)])], 10, Hs))), 128))], 10, Vs));
|
|
4889
5575
|
}
|
|
4890
|
-
}),
|
|
5576
|
+
}), Ys = /* @__PURE__ */ f({
|
|
4891
5577
|
__name: "UidStack",
|
|
4892
5578
|
props: {
|
|
4893
5579
|
direction: { default: "column" },
|
|
@@ -4929,11 +5615,11 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4929
5615
|
class: _(["uid-stack", { "uid-stack--inline": e.inline }]),
|
|
4930
5616
|
style: v(i.value)
|
|
4931
5617
|
}, {
|
|
4932
|
-
default:
|
|
5618
|
+
default: z(() => [E(t.$slots, "default")]),
|
|
4933
5619
|
_: 3
|
|
4934
5620
|
}, 8, ["class", "style"]));
|
|
4935
5621
|
}
|
|
4936
|
-
}),
|
|
5622
|
+
}), Xs = /* @__PURE__ */ f({
|
|
4937
5623
|
__name: "UidGrid",
|
|
4938
5624
|
props: {
|
|
4939
5625
|
cols: { default: 12 },
|
|
@@ -4962,11 +5648,11 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4962
5648
|
class: "uid-grid",
|
|
4963
5649
|
style: v(r.value)
|
|
4964
5650
|
}, {
|
|
4965
|
-
default:
|
|
5651
|
+
default: z(() => [E(t.$slots, "default")]),
|
|
4966
5652
|
_: 3
|
|
4967
5653
|
}, 8, ["style"]));
|
|
4968
5654
|
}
|
|
4969
|
-
}),
|
|
5655
|
+
}), Zs = /* @__PURE__ */ f({
|
|
4970
5656
|
__name: "UidContainer",
|
|
4971
5657
|
props: {
|
|
4972
5658
|
size: { default: "lg" },
|
|
@@ -4978,11 +5664,11 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
4978
5664
|
},
|
|
4979
5665
|
setup(e) {
|
|
4980
5666
|
return (t, n) => (x(), o(O(e.as), { class: _(["uid-container", [`uid-container--${e.size}`, { "uid-container--padded": e.padding }]]) }, {
|
|
4981
|
-
default:
|
|
5667
|
+
default: z(() => [E(t.$slots, "default")]),
|
|
4982
5668
|
_: 3
|
|
4983
5669
|
}, 8, ["class"]));
|
|
4984
5670
|
}
|
|
4985
|
-
}),
|
|
5671
|
+
}), Qs = Symbol("uid-wizard"), $s = { class: "uid-wizard" }, ec = /* @__PURE__ */ f({
|
|
4986
5672
|
__name: "UidWizard",
|
|
4987
5673
|
props: /* @__PURE__ */ m({ steps: {} }, {
|
|
4988
5674
|
modelValue: { default: 0 },
|
|
@@ -5007,7 +5693,7 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
5007
5693
|
function m(e) {
|
|
5008
5694
|
i.delete(e);
|
|
5009
5695
|
}
|
|
5010
|
-
return S(
|
|
5696
|
+
return S(Qs, {
|
|
5011
5697
|
current: r,
|
|
5012
5698
|
steps: o,
|
|
5013
5699
|
isFirst: s,
|
|
@@ -5024,9 +5710,9 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
5024
5710
|
goTo: f,
|
|
5025
5711
|
isFirst: s,
|
|
5026
5712
|
isLast: l
|
|
5027
|
-
}), (e, t) => (x(), c("div",
|
|
5713
|
+
}), (e, t) => (x(), c("div", $s, [E(e.$slots, "default")]));
|
|
5028
5714
|
}
|
|
5029
|
-
}),
|
|
5715
|
+
}), tc = ["aria-label"], nc = /* @__PURE__ */ f({
|
|
5030
5716
|
__name: "UidWizardStep",
|
|
5031
5717
|
props: {
|
|
5032
5718
|
index: {},
|
|
@@ -5036,9 +5722,9 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
5036
5722
|
}
|
|
5037
5723
|
},
|
|
5038
5724
|
setup(e) {
|
|
5039
|
-
let t = e, n = p(
|
|
5725
|
+
let t = e, n = p(Qs);
|
|
5040
5726
|
if (!n) throw Error("UidWizardStep must be inside UidWizard");
|
|
5041
|
-
|
|
5727
|
+
R(() => t.validate, (e, r) => {
|
|
5042
5728
|
r !== void 0 && n.unregisterValidator(t.index), e !== void 0 && n.registerValidator(t.index, e);
|
|
5043
5729
|
}, { immediate: !0 }), b(() => n.unregisterValidator(t.index));
|
|
5044
5730
|
let r = a(() => n.current.value === t.index);
|
|
@@ -5047,22 +5733,22 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
5047
5733
|
class: "uid-wizard-step",
|
|
5048
5734
|
role: "tabpanel",
|
|
5049
5735
|
"aria-label": `Шаг ${e.index + 1}`
|
|
5050
|
-
}, [E(t.$slots, "default")], 8,
|
|
5736
|
+
}, [E(t.$slots, "default")], 8, tc)) : s("", !0);
|
|
5051
5737
|
}
|
|
5052
|
-
}),
|
|
5738
|
+
}), rc = { class: "uid-pattern-header__inner" }, ic = {
|
|
5053
5739
|
key: 0,
|
|
5054
5740
|
class: "uid-pattern-header__logo"
|
|
5055
|
-
},
|
|
5741
|
+
}, ac = {
|
|
5056
5742
|
key: 1,
|
|
5057
5743
|
class: "uid-pattern-header__nav",
|
|
5058
5744
|
"aria-label": "Основная навигация"
|
|
5059
|
-
},
|
|
5745
|
+
}, oc = {
|
|
5060
5746
|
key: 2,
|
|
5061
5747
|
class: "uid-pattern-header__actions"
|
|
5062
|
-
},
|
|
5748
|
+
}, sc = {
|
|
5063
5749
|
key: 3,
|
|
5064
5750
|
class: "uid-pattern-header__mobile"
|
|
5065
|
-
},
|
|
5751
|
+
}, cc = /* @__PURE__ */ f({
|
|
5066
5752
|
__name: "UidHeader",
|
|
5067
5753
|
props: {
|
|
5068
5754
|
sticky: {
|
|
@@ -5083,38 +5769,38 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
5083
5769
|
"uid-pattern-header--sticky": e.sticky,
|
|
5084
5770
|
"uid-pattern-header--bordered": e.bordered,
|
|
5085
5771
|
"uid-pattern-header--transparent": e.transparent
|
|
5086
|
-
}]) }, [l("div",
|
|
5087
|
-
t.$slots.logo ? (x(), c("div",
|
|
5088
|
-
t.$slots.nav ? (x(), c("nav",
|
|
5089
|
-
t.$slots.actions ? (x(), c("div",
|
|
5090
|
-
t.$slots.mobile ? (x(), c("div",
|
|
5772
|
+
}]) }, [l("div", rc, [
|
|
5773
|
+
t.$slots.logo ? (x(), c("div", ic, [E(t.$slots, "logo")])) : s("", !0),
|
|
5774
|
+
t.$slots.nav ? (x(), c("nav", ac, [E(t.$slots, "nav")])) : s("", !0),
|
|
5775
|
+
t.$slots.actions ? (x(), c("div", oc, [E(t.$slots, "actions")])) : s("", !0),
|
|
5776
|
+
t.$slots.mobile ? (x(), c("div", sc, [E(t.$slots, "mobile")])) : s("", !0)
|
|
5091
5777
|
])], 2));
|
|
5092
5778
|
}
|
|
5093
|
-
}),
|
|
5779
|
+
}), lc = { class: "uid-pattern-footer__inner" }, uc = {
|
|
5094
5780
|
key: 0,
|
|
5095
5781
|
class: "uid-pattern-footer__columns"
|
|
5096
|
-
},
|
|
5782
|
+
}, dc = {
|
|
5097
5783
|
key: 1,
|
|
5098
5784
|
class: "uid-pattern-footer__content"
|
|
5099
|
-
},
|
|
5785
|
+
}, fc = {
|
|
5100
5786
|
key: 2,
|
|
5101
5787
|
class: "uid-pattern-footer__bottom"
|
|
5102
|
-
},
|
|
5788
|
+
}, pc = /* @__PURE__ */ f({
|
|
5103
5789
|
__name: "UidFooter",
|
|
5104
5790
|
props: { variant: { default: "minimal" } },
|
|
5105
5791
|
setup(e) {
|
|
5106
|
-
return (t, n) => (x(), c("footer", { class: _(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div",
|
|
5792
|
+
return (t, n) => (x(), c("footer", { class: _(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div", lc, [t.$slots.columns ? (x(), c("div", uc, [E(t.$slots, "columns")])) : t.$slots.default ? (x(), c("div", dc, [E(t.$slots, "default")])) : s("", !0), t.$slots.bottom ? (x(), c("div", fc, [E(t.$slots, "bottom")])) : s("", !0)])], 2));
|
|
5107
5793
|
}
|
|
5108
|
-
}),
|
|
5794
|
+
}), mc = {
|
|
5109
5795
|
key: 0,
|
|
5110
5796
|
class: "uid-pattern-sidebar__header"
|
|
5111
|
-
},
|
|
5797
|
+
}, hc = {
|
|
5112
5798
|
class: "uid-pattern-sidebar__nav",
|
|
5113
5799
|
"aria-label": "Навигация"
|
|
5114
|
-
},
|
|
5800
|
+
}, gc = {
|
|
5115
5801
|
key: 1,
|
|
5116
5802
|
class: "uid-pattern-sidebar__footer"
|
|
5117
|
-
},
|
|
5803
|
+
}, _c = /* @__PURE__ */ f({
|
|
5118
5804
|
__name: "UidSidebar",
|
|
5119
5805
|
props: {
|
|
5120
5806
|
collapsed: {
|
|
@@ -5130,19 +5816,19 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
5130
5816
|
style: v(e.width && !e.collapsed ? { "--uid-sidebar-width": e.width } : void 0),
|
|
5131
5817
|
"aria-label": "Боковая навигация"
|
|
5132
5818
|
}, [
|
|
5133
|
-
t.$slots.header ? (x(), c("div",
|
|
5134
|
-
l("nav",
|
|
5135
|
-
t.$slots.footer ? (x(), c("div",
|
|
5819
|
+
t.$slots.header ? (x(), c("div", mc, [E(t.$slots, "header")])) : s("", !0),
|
|
5820
|
+
l("nav", hc, [E(t.$slots, "nav")]),
|
|
5821
|
+
t.$slots.footer ? (x(), c("div", gc, [E(t.$slots, "footer")])) : s("", !0)
|
|
5136
5822
|
], 6));
|
|
5137
5823
|
}
|
|
5138
|
-
}),
|
|
5824
|
+
}), vc = {
|
|
5139
5825
|
key: 0,
|
|
5140
5826
|
class: "uid-sidebar-item__icon",
|
|
5141
5827
|
"aria-hidden": "true"
|
|
5142
|
-
},
|
|
5828
|
+
}, yc = { class: "uid-sidebar-item__label" }, bc = {
|
|
5143
5829
|
key: 1,
|
|
5144
5830
|
class: "uid-sidebar-item__badge"
|
|
5145
|
-
},
|
|
5831
|
+
}, xc = /* @__PURE__ */ f({
|
|
5146
5832
|
__name: "UidSidebarItem",
|
|
5147
5833
|
props: {
|
|
5148
5834
|
href: { default: void 0 },
|
|
@@ -5176,10 +5862,10 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
5176
5862
|
"aria-disabled": e.disabled || void 0,
|
|
5177
5863
|
tabindex: e.disabled ? -1 : void 0
|
|
5178
5864
|
}), {
|
|
5179
|
-
default:
|
|
5180
|
-
t.$slots.icon ? (x(), c("span",
|
|
5181
|
-
l("span",
|
|
5182
|
-
e.badge === void 0 ? s("", !0) : (x(), c("span",
|
|
5865
|
+
default: z(() => [
|
|
5866
|
+
t.$slots.icon ? (x(), c("span", vc, [E(t.$slots, "icon")])) : s("", !0),
|
|
5867
|
+
l("span", yc, [E(t.$slots, "default")]),
|
|
5868
|
+
e.badge === void 0 ? s("", !0) : (x(), c("span", bc, k(e.badge), 1))
|
|
5183
5869
|
]),
|
|
5184
5870
|
_: 3
|
|
5185
5871
|
}, 16, [
|
|
@@ -5189,10 +5875,10 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
5189
5875
|
"tabindex"
|
|
5190
5876
|
]));
|
|
5191
5877
|
}
|
|
5192
|
-
}),
|
|
5878
|
+
}), Sc = { class: "uid-sidebar-group" }, Cc = {
|
|
5193
5879
|
key: 0,
|
|
5194
5880
|
class: "uid-sidebar-group__title"
|
|
5195
|
-
},
|
|
5881
|
+
}, wc = /* @__PURE__ */ f({
|
|
5196
5882
|
__name: "UidSidebarGroup",
|
|
5197
5883
|
props: {
|
|
5198
5884
|
title: { default: void 0 },
|
|
@@ -5202,29 +5888,29 @@ var Nn = /* @__PURE__ */ kn(An, [["render", Mn]]), Pn = Symbol("uid-tabs"), Fn =
|
|
|
5202
5888
|
}
|
|
5203
5889
|
},
|
|
5204
5890
|
setup(e) {
|
|
5205
|
-
return (t, n) => (x(), c("div",
|
|
5891
|
+
return (t, n) => (x(), c("div", Sc, [e.title ? (x(), c("p", Cc, k(e.title), 1)) : s("", !0), E(t.$slots, "default")]));
|
|
5206
5892
|
}
|
|
5207
|
-
}),
|
|
5893
|
+
}), Tc = {}, Ec = {
|
|
5208
5894
|
class: "uid-sidebar-divider",
|
|
5209
5895
|
role: "separator",
|
|
5210
5896
|
"aria-hidden": "true"
|
|
5211
5897
|
};
|
|
5212
|
-
function
|
|
5213
|
-
return x(), c("div",
|
|
5898
|
+
function Dc(e, t) {
|
|
5899
|
+
return x(), c("div", Ec);
|
|
5214
5900
|
}
|
|
5215
|
-
var
|
|
5901
|
+
var Oc = /* @__PURE__ */ An(Tc, [["render", Dc]]), kc = { class: "uid-pattern-page-header" }, Ac = {
|
|
5216
5902
|
key: 0,
|
|
5217
5903
|
class: "uid-pattern-page-header__breadcrumb"
|
|
5218
|
-
},
|
|
5904
|
+
}, jc = { class: "uid-pattern-page-header__row" }, Mc = { class: "uid-pattern-page-header__heading" }, Nc = { class: "uid-pattern-page-header__title" }, Pc = {
|
|
5219
5905
|
key: 0,
|
|
5220
5906
|
class: "uid-pattern-page-header__description"
|
|
5221
|
-
},
|
|
5907
|
+
}, Fc = {
|
|
5222
5908
|
key: 0,
|
|
5223
5909
|
class: "uid-pattern-page-header__actions"
|
|
5224
|
-
},
|
|
5910
|
+
}, Ic = {
|
|
5225
5911
|
key: 1,
|
|
5226
5912
|
class: "uid-pattern-page-header__tabs"
|
|
5227
|
-
},
|
|
5913
|
+
}, Lc = /* @__PURE__ */ f({
|
|
5228
5914
|
__name: "UidPageHeader",
|
|
5229
5915
|
props: {
|
|
5230
5916
|
title: { default: void 0 },
|
|
@@ -5237,53 +5923,53 @@ var Vs = /* @__PURE__ */ kn(Rs, [["render", Bs]]), Hs = { class: "uid-pattern-pa
|
|
|
5237
5923
|
emits: ["back"],
|
|
5238
5924
|
setup(t, { emit: n }) {
|
|
5239
5925
|
let r = n;
|
|
5240
|
-
return (n, i) => (x(), c("div",
|
|
5241
|
-
n.$slots.breadcrumb ? (x(), c("div",
|
|
5242
|
-
l("div",
|
|
5926
|
+
return (n, i) => (x(), c("div", kc, [
|
|
5927
|
+
n.$slots.breadcrumb ? (x(), c("div", Ac, [E(n.$slots, "breadcrumb")])) : s("", !0),
|
|
5928
|
+
l("div", jc, [l("div", Mc, [t.back ? (x(), c("button", {
|
|
5243
5929
|
key: 0,
|
|
5244
5930
|
type: "button",
|
|
5245
5931
|
class: "uid-pattern-page-header__back",
|
|
5246
5932
|
"aria-label": "Назад",
|
|
5247
5933
|
onClick: i[0] ||= (e) => r("back")
|
|
5248
5934
|
}, [d(e, {
|
|
5249
|
-
icon: j(
|
|
5935
|
+
icon: j(G),
|
|
5250
5936
|
size: 20
|
|
5251
|
-
}, null, 8, ["icon"])])) : s("", !0), l("div", null, [l("h1",
|
|
5252
|
-
n.$slots.tabs ? (x(), c("div",
|
|
5937
|
+
}, null, 8, ["icon"])])) : s("", !0), l("div", null, [l("h1", Nc, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), t.description || n.$slots.description ? (x(), c("p", Pc, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0)])]), n.$slots.actions ? (x(), c("div", Fc, [E(n.$slots, "actions")])) : s("", !0)]),
|
|
5938
|
+
n.$slots.tabs ? (x(), c("div", Ic, [E(n.$slots, "tabs")])) : s("", !0)
|
|
5253
5939
|
]));
|
|
5254
5940
|
}
|
|
5255
|
-
}),
|
|
5941
|
+
}), Rc = { class: "uid-pattern-empty-state" }, zc = { class: "uid-pattern-empty-state__illustration" }, Bc = { class: "uid-pattern-empty-state__content" }, Vc = { class: "uid-pattern-empty-state__title" }, Hc = {
|
|
5256
5942
|
key: 0,
|
|
5257
5943
|
class: "uid-pattern-empty-state__description"
|
|
5258
|
-
},
|
|
5944
|
+
}, Uc = {
|
|
5259
5945
|
key: 0,
|
|
5260
5946
|
class: "uid-pattern-empty-state__actions"
|
|
5261
|
-
},
|
|
5947
|
+
}, Wc = /* @__PURE__ */ f({
|
|
5262
5948
|
__name: "UidEmptyState",
|
|
5263
5949
|
props: {
|
|
5264
5950
|
title: { default: "Ничего не найдено" },
|
|
5265
5951
|
description: { default: void 0 }
|
|
5266
5952
|
},
|
|
5267
5953
|
setup(t) {
|
|
5268
|
-
return (n, r) => (x(), c("div",
|
|
5269
|
-
l("div",
|
|
5270
|
-
icon: j(
|
|
5954
|
+
return (n, r) => (x(), c("div", Rc, [
|
|
5955
|
+
l("div", zc, [E(n.$slots, "illustration", {}, () => [d(e, {
|
|
5956
|
+
icon: j(oe),
|
|
5271
5957
|
size: 48
|
|
5272
5958
|
}, null, 8, ["icon"])])]),
|
|
5273
|
-
l("div",
|
|
5274
|
-
n.$slots.actions ? (x(), c("div",
|
|
5959
|
+
l("div", Bc, [l("h2", Vc, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), t.description || n.$slots.description ? (x(), c("p", Hc, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0)]),
|
|
5960
|
+
n.$slots.actions ? (x(), c("div", Uc, [E(n.$slots, "actions")])) : s("", !0)
|
|
5275
5961
|
]));
|
|
5276
5962
|
}
|
|
5277
|
-
}),
|
|
5963
|
+
}), Gc = { class: "uid-pattern-error-state" }, Kc = { class: "uid-pattern-error-state__illustration" }, qc = {
|
|
5278
5964
|
key: 0,
|
|
5279
5965
|
class: "uid-pattern-error-state__code"
|
|
5280
|
-
},
|
|
5966
|
+
}, Jc = { class: "uid-pattern-error-state__content" }, Yc = { class: "uid-pattern-error-state__title" }, Xc = {
|
|
5281
5967
|
key: 0,
|
|
5282
5968
|
class: "uid-pattern-error-state__description"
|
|
5283
|
-
},
|
|
5969
|
+
}, Zc = {
|
|
5284
5970
|
key: 1,
|
|
5285
5971
|
class: "uid-pattern-error-state__actions"
|
|
5286
|
-
},
|
|
5972
|
+
}, Qc = /* @__PURE__ */ f({
|
|
5287
5973
|
__name: "UidErrorState",
|
|
5288
5974
|
props: {
|
|
5289
5975
|
code: { default: void 0 },
|
|
@@ -5293,38 +5979,38 @@ var Vs = /* @__PURE__ */ kn(Rs, [["render", Bs]]), Hs = { class: "uid-pattern-pa
|
|
|
5293
5979
|
setup(t) {
|
|
5294
5980
|
let n = t, r = {
|
|
5295
5981
|
404: {
|
|
5296
|
-
icon:
|
|
5982
|
+
icon: H,
|
|
5297
5983
|
title: "Страница не найдена",
|
|
5298
5984
|
description: "Запрашиваемая страница не существует или была перемещена."
|
|
5299
5985
|
},
|
|
5300
5986
|
500: {
|
|
5301
|
-
icon:
|
|
5987
|
+
icon: de,
|
|
5302
5988
|
title: "Ошибка сервера",
|
|
5303
5989
|
description: "На сервере произошла ошибка. Мы уже работаем над исправлением."
|
|
5304
5990
|
},
|
|
5305
5991
|
network: {
|
|
5306
|
-
icon:
|
|
5992
|
+
icon: me,
|
|
5307
5993
|
title: "Нет соединения",
|
|
5308
5994
|
description: "Проверьте подключение к интернету и попробуйте снова."
|
|
5309
5995
|
}
|
|
5310
|
-
}, i = a(() => n.code ? r[n.code] ?? null : null), o = a(() => i.value?.icon ??
|
|
5311
|
-
return (n, r) => (x(), c("div",
|
|
5312
|
-
l("div",
|
|
5996
|
+
}, i = a(() => n.code ? r[n.code] ?? null : null), o = a(() => i.value?.icon ?? H), f = a(() => n.title ?? i.value?.title ?? "Что-то пошло не так"), p = a(() => n.description ?? i.value?.description);
|
|
5997
|
+
return (n, r) => (x(), c("div", Gc, [
|
|
5998
|
+
l("div", Kc, [E(n.$slots, "illustration", {}, () => [d(e, {
|
|
5313
5999
|
icon: o.value,
|
|
5314
6000
|
size: 48
|
|
5315
6001
|
}, null, 8, ["icon"])])]),
|
|
5316
|
-
t.code ? (x(), c("div",
|
|
5317
|
-
l("div",
|
|
5318
|
-
n.$slots.actions ? (x(), c("div",
|
|
6002
|
+
t.code ? (x(), c("div", qc, k(t.code), 1)) : s("", !0),
|
|
6003
|
+
l("div", Jc, [l("h2", Yc, [E(n.$slots, "title", {}, () => [u(k(f.value), 1)])]), p.value || n.$slots.description ? (x(), c("p", Xc, [E(n.$slots, "description", {}, () => [u(k(p.value), 1)])])) : s("", !0)]),
|
|
6004
|
+
n.$slots.actions ? (x(), c("div", Zc, [E(n.$slots, "actions")])) : s("", !0)
|
|
5319
6005
|
]));
|
|
5320
6006
|
}
|
|
5321
|
-
}),
|
|
6007
|
+
}), $c = {
|
|
5322
6008
|
key: 0,
|
|
5323
6009
|
class: "uid-layout-simple__header"
|
|
5324
|
-
},
|
|
6010
|
+
}, el = { class: "uid-layout-simple__content" }, tl = {
|
|
5325
6011
|
key: 1,
|
|
5326
6012
|
class: "uid-layout-simple__footer"
|
|
5327
|
-
},
|
|
6013
|
+
}, nl = /* @__PURE__ */ f({
|
|
5328
6014
|
__name: "UidSimpleLayout",
|
|
5329
6015
|
props: { full: {
|
|
5330
6016
|
type: Boolean,
|
|
@@ -5332,26 +6018,26 @@ var Vs = /* @__PURE__ */ kn(Rs, [["render", Bs]]), Hs = { class: "uid-pattern-pa
|
|
|
5332
6018
|
} },
|
|
5333
6019
|
setup(e) {
|
|
5334
6020
|
return (t, n) => (x(), c("div", { class: _(["uid-layout-simple", { "uid-layout-simple--full": e.full }]) }, [
|
|
5335
|
-
t.$slots.header ? (x(), c("div",
|
|
5336
|
-
l("main",
|
|
5337
|
-
t.$slots.footer ? (x(), c("div",
|
|
6021
|
+
t.$slots.header ? (x(), c("div", $c, [E(t.$slots, "header")])) : s("", !0),
|
|
6022
|
+
l("main", el, [E(t.$slots, "default")]),
|
|
6023
|
+
t.$slots.footer ? (x(), c("div", tl, [E(t.$slots, "footer")])) : s("", !0)
|
|
5338
6024
|
], 2));
|
|
5339
6025
|
}
|
|
5340
|
-
}),
|
|
5341
|
-
function
|
|
5342
|
-
let e = p(
|
|
6026
|
+
}), rl = Symbol("uid-sidebar-layout");
|
|
6027
|
+
function il() {
|
|
6028
|
+
let e = p(rl);
|
|
5343
6029
|
if (!e) throw Error("useSidebar() must be used inside UidSidebarLayout");
|
|
5344
6030
|
return e;
|
|
5345
6031
|
}
|
|
5346
6032
|
//#endregion
|
|
5347
6033
|
//#region src/layouts/Sidebar/UidSidebarLayout.vue?vue&type=script&setup=true&lang.ts
|
|
5348
|
-
var
|
|
6034
|
+
var al = { class: "uid-layout-sidebar__sidebar" }, ol = { class: "uid-layout-sidebar__main" }, sl = {
|
|
5349
6035
|
key: 0,
|
|
5350
6036
|
class: "uid-layout-sidebar__main-header"
|
|
5351
|
-
},
|
|
6037
|
+
}, cl = { class: "uid-layout-sidebar__main-content" }, ll = {
|
|
5352
6038
|
key: 1,
|
|
5353
6039
|
class: "uid-layout-sidebar__main-footer"
|
|
5354
|
-
},
|
|
6040
|
+
}, ul = /* @__PURE__ */ f({
|
|
5355
6041
|
__name: "UidSidebarLayout",
|
|
5356
6042
|
props: /* @__PURE__ */ m({ sidebarWidth: { default: void 0 } }, {
|
|
5357
6043
|
modelValue: {
|
|
@@ -5369,7 +6055,7 @@ var vc = { class: "uid-layout-sidebar__sidebar" }, yc = { class: "uid-layout-sid
|
|
|
5369
6055
|
}, o = () => {
|
|
5370
6056
|
n.value = !0;
|
|
5371
6057
|
};
|
|
5372
|
-
S(
|
|
6058
|
+
S(rl, {
|
|
5373
6059
|
collapsed: n,
|
|
5374
6060
|
toggle: r,
|
|
5375
6061
|
open: i,
|
|
@@ -5380,63 +6066,63 @@ var vc = { class: "uid-layout-sidebar__sidebar" }, yc = { class: "uid-layout-sid
|
|
|
5380
6066
|
class: _(["uid-layout-sidebar", { "uid-layout-sidebar--collapsed": n.value }]),
|
|
5381
6067
|
style: v(u.value)
|
|
5382
6068
|
}, [
|
|
5383
|
-
l("aside",
|
|
6069
|
+
l("aside", al, [E(e.$slots, "sidebar")]),
|
|
5384
6070
|
l("div", {
|
|
5385
6071
|
class: "uid-layout-sidebar__backdrop",
|
|
5386
6072
|
"aria-hidden": "true",
|
|
5387
6073
|
onClick: o
|
|
5388
6074
|
}),
|
|
5389
|
-
l("div",
|
|
5390
|
-
e.$slots.header ? (x(), c("div",
|
|
5391
|
-
l("main",
|
|
5392
|
-
e.$slots.footer ? (x(), c("div",
|
|
6075
|
+
l("div", ol, [
|
|
6076
|
+
e.$slots.header ? (x(), c("div", sl, [E(e.$slots, "header")])) : s("", !0),
|
|
6077
|
+
l("main", cl, [E(e.$slots, "default")]),
|
|
6078
|
+
e.$slots.footer ? (x(), c("div", ll, [E(e.$slots, "footer")])) : s("", !0)
|
|
5393
6079
|
])
|
|
5394
6080
|
], 6));
|
|
5395
6081
|
}
|
|
5396
|
-
}),
|
|
6082
|
+
}), dl = {
|
|
5397
6083
|
key: 0,
|
|
5398
6084
|
class: "uid-layout-auth__brand"
|
|
5399
|
-
},
|
|
6085
|
+
}, fl = { class: "uid-layout-auth__main" }, pl = { class: "uid-layout-auth__card" }, ml = {
|
|
5400
6086
|
key: 0,
|
|
5401
6087
|
class: "uid-layout-auth__footer"
|
|
5402
|
-
},
|
|
6088
|
+
}, hl = /* @__PURE__ */ f({
|
|
5403
6089
|
__name: "UidAuthLayout",
|
|
5404
6090
|
props: { variant: { default: "centered" } },
|
|
5405
6091
|
setup(e) {
|
|
5406
|
-
return (t, n) => (x(), c("div", { class: _(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (x(), c("div",
|
|
6092
|
+
return (t, n) => (x(), c("div", { class: _(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (x(), c("div", dl, [E(t.$slots, "brand")])) : s("", !0), l("div", fl, [l("div", pl, [E(t.$slots, "default")]), t.$slots.footer ? (x(), c("div", ml, [E(t.$slots, "footer")])) : s("", !0)])], 2));
|
|
5407
6093
|
}
|
|
5408
|
-
}),
|
|
6094
|
+
}), gl = { class: "uid-layout-wizard" }, _l = {
|
|
5409
6095
|
key: 0,
|
|
5410
6096
|
class: "uid-layout-wizard__header"
|
|
5411
|
-
},
|
|
6097
|
+
}, vl = {
|
|
5412
6098
|
key: 1,
|
|
5413
6099
|
class: "uid-layout-wizard__stepper"
|
|
5414
|
-
},
|
|
6100
|
+
}, yl = { class: "uid-layout-wizard__content" }, bl = {
|
|
5415
6101
|
key: 2,
|
|
5416
6102
|
class: "uid-layout-wizard__nav"
|
|
5417
|
-
},
|
|
6103
|
+
}, xl = /* @__PURE__ */ f({
|
|
5418
6104
|
__name: "UidWizardLayout",
|
|
5419
6105
|
setup(e) {
|
|
5420
|
-
return (e, t) => (x(), c("div",
|
|
5421
|
-
e.$slots.header ? (x(), c("div",
|
|
5422
|
-
e.$slots.stepper ? (x(), c("div",
|
|
5423
|
-
l("main",
|
|
5424
|
-
e.$slots.nav ? (x(), c("div",
|
|
6106
|
+
return (e, t) => (x(), c("div", gl, [
|
|
6107
|
+
e.$slots.header ? (x(), c("div", _l, [E(e.$slots, "header")])) : s("", !0),
|
|
6108
|
+
e.$slots.stepper ? (x(), c("div", vl, [E(e.$slots, "stepper")])) : s("", !0),
|
|
6109
|
+
l("main", yl, [E(e.$slots, "default")]),
|
|
6110
|
+
e.$slots.nav ? (x(), c("div", bl, [E(e.$slots, "nav")])) : s("", !0)
|
|
5425
6111
|
]));
|
|
5426
6112
|
}
|
|
5427
|
-
}),
|
|
5428
|
-
function
|
|
6113
|
+
}), Sl = w("light");
|
|
6114
|
+
function Cl() {
|
|
5429
6115
|
let e = null;
|
|
5430
6116
|
function t(e) {
|
|
5431
|
-
|
|
6117
|
+
Sl.value = e, document.documentElement.dataset.theme = e;
|
|
5432
6118
|
}
|
|
5433
6119
|
function n() {
|
|
5434
|
-
t(
|
|
6120
|
+
t(Sl.value === "light" ? "dark" : "light");
|
|
5435
6121
|
}
|
|
5436
6122
|
function r() {
|
|
5437
6123
|
let e = document.documentElement.dataset.theme;
|
|
5438
6124
|
if (e === "light" || e === "dark") {
|
|
5439
|
-
|
|
6125
|
+
Sl.value = e;
|
|
5440
6126
|
return;
|
|
5441
6127
|
}
|
|
5442
6128
|
let n = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
@@ -5448,7 +6134,7 @@ function Ic() {
|
|
|
5448
6134
|
e.addEventListener("change", n), b(() => e?.removeEventListener("change", n));
|
|
5449
6135
|
}
|
|
5450
6136
|
return {
|
|
5451
|
-
theme:
|
|
6137
|
+
theme: Sl,
|
|
5452
6138
|
setTheme: t,
|
|
5453
6139
|
toggle: n,
|
|
5454
6140
|
initFromSystem: r,
|
|
@@ -5457,27 +6143,27 @@ function Ic() {
|
|
|
5457
6143
|
}
|
|
5458
6144
|
//#endregion
|
|
5459
6145
|
//#region src/composables/useWizard.ts
|
|
5460
|
-
function
|
|
5461
|
-
let e = p(
|
|
6146
|
+
function wl() {
|
|
6147
|
+
let e = p(Qs);
|
|
5462
6148
|
if (!e) throw Error("useWizard() must be used inside UidWizard");
|
|
5463
6149
|
return e;
|
|
5464
6150
|
}
|
|
5465
6151
|
//#endregion
|
|
5466
6152
|
//#region src/composables/useCommandPalette.ts
|
|
5467
|
-
var
|
|
5468
|
-
function
|
|
6153
|
+
var Tl = w(!1);
|
|
6154
|
+
function El() {
|
|
5469
6155
|
return {
|
|
5470
|
-
open:
|
|
6156
|
+
open: Tl,
|
|
5471
6157
|
show: () => {
|
|
5472
|
-
|
|
6158
|
+
Tl.value = !0;
|
|
5473
6159
|
},
|
|
5474
6160
|
hide: () => {
|
|
5475
|
-
|
|
6161
|
+
Tl.value = !1;
|
|
5476
6162
|
},
|
|
5477
6163
|
toggle: () => {
|
|
5478
|
-
|
|
6164
|
+
Tl.value = !Tl.value;
|
|
5479
6165
|
}
|
|
5480
6166
|
};
|
|
5481
6167
|
}
|
|
5482
6168
|
//#endregion
|
|
5483
|
-
export {
|
|
6169
|
+
export { Nr as UidAccordion, zr as UidAccordionItem, is as UidAffix, Bt as UidAlert, ps as UidAnchor, hl as UidAuthLayout, wr as UidAvatar, Dr as UidAvatarGroup, ns as UidBackTop, Ft as UidBadge, Wn as UidBreadcrumb, Jn as UidBreadcrumbItem, ye as UidButton, xr as UidCard, st as UidCheckbox, Co as UidCode, Di as UidColorPicker, Ma as UidCombobox, Li as UidCommand, Zs as UidContainer, fi as UidDatePicker, pa as UidDateRangePicker, Jo as UidDescriptionItem, Wo as UidDescriptionList, Ar as UidDivider, vn as UidDrawer, Wc as UidEmptyState, Qc as UidErrorState, ho as UidFileUpload, pc as UidFooter, At as UidFormField, Xs as UidGrid, cc as UidHeader, e as UidIcon, dr as UidInfiniteScroll, Ze as UidInput, Tt as UidLabel, Yn as UidLink, cr as UidLoadMore, Os as UidMention, Dn as UidMenu, kn as UidMenuItem, Pn as UidMenuSeparator, fn as UidModal, Gi as UidNumberInput, Lc as UidPageHeader, gr as UidPageSize, tr as UidPagination, ar as UidPaginationCursor, Tn as UidPopover, tn as UidProgress, dt as UidRadio, _t as UidRadioGroup, ko as UidRating, es as UidResult, ii as UidSelect, _c as UidSidebar, Oc as UidSidebarDivider, wc as UidSidebarGroup, xc as UidSidebarItem, ul as UidSidebarLayout, nl as UidSimpleLayout, Pt as UidSkeleton, vi as UidSlider, Mt as UidSpinner, Mo as UidSplitter, Ys as UidStack, Vo as UidStat, Js as UidStepper, St as UidSwitch, Bn as UidTab, Hn as UidTabPanel, Yr as UidTable, Rn as UidTabs, Or as UidTag, ya as UidTagsInput, nt as UidTextarea, Qi as UidTimePicker, Wa as UidTimeline, Qa as UidTimelineItem, Gt as UidToast, Yt as UidToastProvider, wn as UidTooltip, xs as UidTour, Ha as UidTreeItem, Bs as UidTreeSelect, Ua as UidTreeView, pi as UidVirtualList, ss as UidWatermark, ec as UidWizard, xl as UidWizardLayout, nc as UidWizardStep, De as email, Q as getMessage, Ie as inList, Ae as integer, Me as max, Pe as maxValue, je as min, Ne as minValue, Ee as nullable, ke as numeric, Ve as parseRules, Fe as regex, Te as required, Re as requiredIf, ze as requiredUnless, He as runRules, Le as sameAs, Se as setMessages, Oe as url, El as useCommandPalette, Ue as useField, rn as useFocusTrap, xn as usePopover, on as useScrollLock, il as useSidebar, Cl as useTheme, Jt as useToast, wl as useWizard };
|