@dskripchenko/ui 1.0.4 → 1.1.1
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/index.mjs
CHANGED
|
@@ -2083,19 +2083,23 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2083
2083
|
hidden: !f.value
|
|
2084
2084
|
}, [l("div", ti, [E(n.$slots, "default")])], 8, ei)], 2));
|
|
2085
2085
|
}
|
|
2086
|
-
}), ri = { class: "uid-table-scroll" }, ii = { class: "uid-table__head" }, ai =
|
|
2086
|
+
}), ri = { class: "uid-table-scroll" }, ii = { class: "uid-table__head" }, ai = {
|
|
2087
|
+
key: 0,
|
|
2088
|
+
class: "uid-table__th uid-table__th--select",
|
|
2089
|
+
scope: "col"
|
|
2090
|
+
}, oi = [
|
|
2087
2091
|
"tabindex",
|
|
2088
2092
|
"role",
|
|
2089
2093
|
"aria-sort",
|
|
2090
2094
|
"onClick",
|
|
2091
2095
|
"onKeydown"
|
|
2092
|
-
],
|
|
2096
|
+
], si = { class: "uid-table__th-content" }, ci = { class: "uid-table__body" }, li = { key: 0 }, ui = ["colspan"], di = { key: 1 }, fi = ["colspan"], pi = ["onClick"], mi = /* @__PURE__ */ f({
|
|
2093
2097
|
__name: "UidTable",
|
|
2094
2098
|
props: {
|
|
2095
2099
|
columns: {},
|
|
2096
2100
|
data: {},
|
|
2097
2101
|
sortKey: { default: void 0 },
|
|
2098
|
-
sortDirection: { default:
|
|
2102
|
+
sortDirection: { default: null },
|
|
2099
2103
|
loading: {
|
|
2100
2104
|
type: Boolean,
|
|
2101
2105
|
default: !1
|
|
@@ -2108,73 +2112,119 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2108
2112
|
bordered: {
|
|
2109
2113
|
type: Boolean,
|
|
2110
2114
|
default: !1
|
|
2115
|
+
},
|
|
2116
|
+
selectable: {
|
|
2117
|
+
type: Boolean,
|
|
2118
|
+
default: !1
|
|
2119
|
+
},
|
|
2120
|
+
selection: { default: () => /* @__PURE__ */ new Set() },
|
|
2121
|
+
rowKey: {
|
|
2122
|
+
type: [String, Function],
|
|
2123
|
+
default: "id"
|
|
2111
2124
|
}
|
|
2112
2125
|
},
|
|
2113
|
-
emits: [
|
|
2126
|
+
emits: [
|
|
2127
|
+
"update:sortKey",
|
|
2128
|
+
"update:sortDirection",
|
|
2129
|
+
"update:selection",
|
|
2130
|
+
"row-click"
|
|
2131
|
+
],
|
|
2114
2132
|
setup(n, { emit: r }) {
|
|
2115
2133
|
let i = n, f = r;
|
|
2116
2134
|
function p(e) {
|
|
2117
|
-
|
|
2135
|
+
return typeof i.rowKey == "function" ? i.rowKey(e) : e[i.rowKey] ?? "";
|
|
2118
2136
|
}
|
|
2119
|
-
|
|
2120
|
-
|
|
2137
|
+
let m = a(() => i.columns.length + +!!i.selectable), h = a(() => !i.selectable || i.data.length === 0 ? !1 : i.data.every((e) => i.selection.has(p(e)))), g = a(() => i.selectable ? i.data.some((e) => i.selection.has(p(e))) : !1), y = a(() => i.selectable && g.value && !h.value);
|
|
2138
|
+
function b(e) {
|
|
2139
|
+
e.sortable && (i.sortKey === e.key ? i.sortDirection === "asc" ? f("update:sortDirection", "desc") : i.sortDirection === "desc" ? (f("update:sortKey", null), f("update:sortDirection", null)) : f("update:sortDirection", "asc") : (f("update:sortKey", e.key), f("update:sortDirection", "asc")));
|
|
2140
|
+
}
|
|
2141
|
+
function S(e) {
|
|
2142
|
+
return e.sortable ? i.sortKey === e.key ? i.sortDirection === "asc" ? K : i.sortDirection === "desc" ? G : te : te : null;
|
|
2143
|
+
}
|
|
2144
|
+
function C(e) {
|
|
2145
|
+
if (e.sortable) return i.sortKey === e.key ? i.sortDirection === "asc" ? "ascending" : i.sortDirection === "desc" ? "descending" : "none" : "none";
|
|
2121
2146
|
}
|
|
2122
|
-
|
|
2123
|
-
|
|
2147
|
+
function w(e) {
|
|
2148
|
+
let t = new Set(i.selection);
|
|
2149
|
+
if (e) for (let e of i.data) t.add(p(e));
|
|
2150
|
+
else for (let e of i.data) t.delete(p(e));
|
|
2151
|
+
f("update:selection", t);
|
|
2152
|
+
}
|
|
2153
|
+
function D(e, t) {
|
|
2154
|
+
let n = new Set(i.selection), r = p(e);
|
|
2155
|
+
t ? n.add(r) : n.delete(r), f("update:selection", n);
|
|
2156
|
+
}
|
|
2157
|
+
let O = a(() => !i.loading && i.data.length === 0);
|
|
2158
|
+
return (r, i) => (x(), c("div", { class: _(["uid-table-wrap", { "uid-table-wrap--bordered": n.bordered }]) }, [l("div", ri, [l("table", { class: _(["uid-table", { "uid-table--striped": n.striped }]) }, [l("thead", ii, [l("tr", null, [n.selectable ? (x(), c("th", ai, [d(ut, {
|
|
2159
|
+
"model-value": h.value,
|
|
2160
|
+
indeterminate: y.value,
|
|
2161
|
+
"aria-label": "Выделить всё",
|
|
2162
|
+
"onUpdate:modelValue": w
|
|
2163
|
+
}, null, 8, ["model-value", "indeterminate"])])) : s("", !0), (x(!0), c(t, null, T(n.columns, (t) => (x(), c("th", {
|
|
2124
2164
|
key: t.key,
|
|
2125
2165
|
class: _(["uid-table__th", [
|
|
2126
2166
|
`uid-table__th--${t.align ?? "left"}`,
|
|
2127
2167
|
{ "uid-table__th--sortable": t.sortable },
|
|
2128
|
-
{ "uid-table__th--active": n.sortKey === t.key }
|
|
2168
|
+
{ "uid-table__th--active": n.sortKey === t.key && n.sortDirection !== null }
|
|
2129
2169
|
]]),
|
|
2130
2170
|
style: v(t.width ? { width: t.width } : void 0),
|
|
2131
2171
|
tabindex: t.sortable ? 0 : void 0,
|
|
2132
2172
|
role: t.sortable ? "button" : void 0,
|
|
2133
|
-
"aria-sort":
|
|
2134
|
-
onClick: (e) =>
|
|
2135
|
-
onKeydown: [V(H((e) =>
|
|
2136
|
-
}, [l("span",
|
|
2173
|
+
"aria-sort": C(t),
|
|
2174
|
+
onClick: (e) => b(t),
|
|
2175
|
+
onKeydown: [V(H((e) => b(t), ["prevent"]), ["enter"]), V(H((e) => b(t), ["prevent"]), ["space"])]
|
|
2176
|
+
}, [l("span", si, [u(k(t.label) + " ", 1), t.sortable ? (x(), o(e, {
|
|
2137
2177
|
key: 0,
|
|
2138
|
-
icon:
|
|
2178
|
+
icon: S(t),
|
|
2139
2179
|
size: 14,
|
|
2140
2180
|
class: "uid-table__sort-icon"
|
|
2141
|
-
}, null, 8, ["icon"])) : s("", !0)])], 46,
|
|
2142
|
-
colspan:
|
|
2181
|
+
}, null, 8, ["icon"])) : s("", !0)])], 46, oi))), 128))])]), l("tbody", ci, [n.loading ? (x(), c("tr", li, [l("td", {
|
|
2182
|
+
colspan: m.value,
|
|
2143
2183
|
class: "uid-table__td uid-table__td--center"
|
|
2144
|
-
}, [d(Ft, { size: "md" })], 8,
|
|
2145
|
-
colspan:
|
|
2184
|
+
}, [d(Ft, { size: "md" })], 8, ui)])) : O.value ? (x(), c("tr", di, [l("td", {
|
|
2185
|
+
colspan: m.value,
|
|
2146
2186
|
class: "uid-table__td uid-table__td--empty"
|
|
2147
|
-
}, [E(r.$slots, "empty", {}, () => [u(k(n.emptyText), 1)])], 8,
|
|
2148
|
-
key:
|
|
2149
|
-
class: "uid-table__row"
|
|
2150
|
-
|
|
2187
|
+
}, [E(r.$slots, "empty", {}, () => [u(k(n.emptyText), 1)])], 8, fi)])) : (x(!0), c(t, { key: 2 }, T(n.data, (e, a) => (x(), c("tr", {
|
|
2188
|
+
key: a,
|
|
2189
|
+
class: _(["uid-table__row", { "uid-table__row--selected": n.selectable && n.selection.has(p(e)) }]),
|
|
2190
|
+
onClick: (t) => f("row-click", e)
|
|
2191
|
+
}, [n.selectable ? (x(), c("td", {
|
|
2192
|
+
key: 0,
|
|
2193
|
+
class: "uid-table__td uid-table__td--select",
|
|
2194
|
+
onClick: i[0] ||= H(() => {}, ["stop"])
|
|
2195
|
+
}, [d(ut, {
|
|
2196
|
+
"model-value": n.selection.has(p(e)),
|
|
2197
|
+
"aria-label": `Строка ${p(e)}`,
|
|
2198
|
+
"onUpdate:modelValue": (t) => D(e, t)
|
|
2199
|
+
}, null, 8, [
|
|
2200
|
+
"model-value",
|
|
2201
|
+
"aria-label",
|
|
2202
|
+
"onUpdate:modelValue"
|
|
2203
|
+
])])) : s("", !0), (x(!0), c(t, null, T(n.columns, (t) => (x(), c("td", {
|
|
2151
2204
|
key: t.key,
|
|
2152
2205
|
class: _(["uid-table__td", `uid-table__td--${t.align ?? "left"}`])
|
|
2153
|
-
}, [E(r.$slots, t.key, { row: e }, () => [u(k(e[t.key]), 1)])], 2))), 128))]))), 128))])], 2)])], 2));
|
|
2206
|
+
}, [E(r.$slots, t.key, { row: e }, () => [u(k(e[t.key]), 1)])], 2))), 128))], 10, pi))), 128))])], 2)])], 2));
|
|
2154
2207
|
}
|
|
2155
|
-
}),
|
|
2208
|
+
}), hi = [
|
|
2156
2209
|
"aria-expanded",
|
|
2157
2210
|
"aria-controls",
|
|
2158
2211
|
"aria-disabled"
|
|
2159
|
-
],
|
|
2160
|
-
key: 0,
|
|
2161
|
-
class: "uid-select__dropdown"
|
|
2162
|
-
}, _i = {
|
|
2212
|
+
], gi = { class: "uid-select__suffix" }, _i = ["aria-label"], vi = {
|
|
2163
2213
|
key: 0,
|
|
2164
2214
|
class: "uid-select__search"
|
|
2165
|
-
},
|
|
2215
|
+
}, yi = ["placeholder"], bi = ["id"], xi = {
|
|
2166
2216
|
key: 0,
|
|
2167
2217
|
class: "uid-select__group-label"
|
|
2168
|
-
},
|
|
2218
|
+
}, Si = [
|
|
2169
2219
|
"data-active",
|
|
2170
2220
|
"aria-selected",
|
|
2171
2221
|
"aria-disabled",
|
|
2172
2222
|
"onClick",
|
|
2173
2223
|
"onMouseenter"
|
|
2174
|
-
],
|
|
2224
|
+
], Ci = {
|
|
2175
2225
|
key: 1,
|
|
2176
2226
|
class: "uid-select__empty"
|
|
2177
|
-
},
|
|
2227
|
+
}, wi = /* @__PURE__ */ f({
|
|
2178
2228
|
__name: "UidSelect",
|
|
2179
2229
|
props: /* @__PURE__ */ m({
|
|
2180
2230
|
options: {},
|
|
@@ -2197,159 +2247,177 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2197
2247
|
modelModifiers: {}
|
|
2198
2248
|
}),
|
|
2199
2249
|
emits: /* @__PURE__ */ m(["change"], ["update:modelValue"]),
|
|
2200
|
-
setup(
|
|
2201
|
-
let
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2250
|
+
setup(i, { emit: u }) {
|
|
2251
|
+
let f = i, p = $(), m = a(() => f.placeholder ?? p.value.select.placeholder), h = u, y = N(i, "modelValue"), S = w(!1), C = w(""), E = w(0), D = w(null), O = w(null), A = w(null), P = w(null), F = w(null), L = M(), { floatingStyle: V, update: H } = Mn(O, A, {
|
|
2252
|
+
placement: "bottom-start",
|
|
2253
|
+
offset: 4
|
|
2254
|
+
}), U = w(0);
|
|
2255
|
+
function W() {
|
|
2256
|
+
U.value = O.value?.getBoundingClientRect().width ?? 0;
|
|
2257
|
+
}
|
|
2258
|
+
let G = a(() => ({
|
|
2259
|
+
...V.value,
|
|
2260
|
+
minWidth: U.value > 0 ? `${U.value}px` : "auto"
|
|
2261
|
+
})), ee = a(() => f.options.find((e) => e.value === y.value) ?? null), K = a(() => {
|
|
2262
|
+
if (!f.searchable || !C.value.trim()) return f.options;
|
|
2263
|
+
let e = C.value.toLowerCase();
|
|
2264
|
+
return f.options.filter((t) => t.label.toLowerCase().includes(e));
|
|
2265
|
+
}), te = a(() => {
|
|
2206
2266
|
let e = /* @__PURE__ */ new Map();
|
|
2207
|
-
for (let t of
|
|
2267
|
+
for (let t of K.value) {
|
|
2208
2268
|
let n = t.group ?? "";
|
|
2209
2269
|
e.has(n) || e.set(n, []), e.get(n).push(t);
|
|
2210
2270
|
}
|
|
2211
2271
|
return e;
|
|
2212
2272
|
});
|
|
2213
|
-
R(
|
|
2273
|
+
R(S, async (e) => {
|
|
2214
2274
|
if (e) {
|
|
2215
|
-
|
|
2216
|
-
let e =
|
|
2217
|
-
|
|
2218
|
-
} else document.removeEventListener("pointerdown",
|
|
2219
|
-
}), R(
|
|
2220
|
-
|
|
2275
|
+
C.value = "";
|
|
2276
|
+
let e = K.value.findIndex((e) => e.value === y.value);
|
|
2277
|
+
E.value = e >= 0 ? e : 0, W(), await g(), H(), requestAnimationFrame(() => H()), f.searchable && F.value?.focus(), de(), document.addEventListener("pointerdown", ae), window.addEventListener("resize", H), window.addEventListener("scroll", H, !0);
|
|
2278
|
+
} else document.removeEventListener("pointerdown", ae), window.removeEventListener("resize", H), window.removeEventListener("scroll", H, !0);
|
|
2279
|
+
}), R(C, () => {
|
|
2280
|
+
E.value = 0;
|
|
2221
2281
|
});
|
|
2222
|
-
function
|
|
2223
|
-
|
|
2282
|
+
function ne() {
|
|
2283
|
+
f.disabled || (S.value = !0);
|
|
2224
2284
|
}
|
|
2225
|
-
function
|
|
2226
|
-
|
|
2285
|
+
function J() {
|
|
2286
|
+
S.value = !1;
|
|
2227
2287
|
}
|
|
2228
|
-
function
|
|
2229
|
-
|
|
2288
|
+
function re() {
|
|
2289
|
+
S.value ? J() : ne();
|
|
2230
2290
|
}
|
|
2231
|
-
function
|
|
2232
|
-
e.disabled || (
|
|
2291
|
+
function X(e) {
|
|
2292
|
+
e.disabled || (y.value = e.value, h("change", e.value), J(), O.value?.focus());
|
|
2233
2293
|
}
|
|
2234
|
-
function
|
|
2235
|
-
e.stopPropagation(),
|
|
2294
|
+
function ie(e) {
|
|
2295
|
+
e.stopPropagation(), y.value = null, h("change", null);
|
|
2236
2296
|
}
|
|
2237
|
-
function
|
|
2297
|
+
function ae(e) {
|
|
2238
2298
|
let t = e.target;
|
|
2239
|
-
|
|
2299
|
+
D.value?.contains(t) || A.value?.contains(t) || J();
|
|
2240
2300
|
}
|
|
2241
|
-
function
|
|
2242
|
-
e.key === "ArrowDown" ? (e.preventDefault(),
|
|
2301
|
+
function oe(e) {
|
|
2302
|
+
e.key === "ArrowDown" ? (e.preventDefault(), S.value ? ce() : ne()) : e.key === "ArrowUp" ? (e.preventDefault(), S.value && le()) : e.key === "Enter" || e.key === " " ? (e.preventDefault(), S.value ? ue() : ne()) : e.key === "Escape" && J();
|
|
2243
2303
|
}
|
|
2244
|
-
function
|
|
2245
|
-
e.key === "ArrowDown" ? (e.preventDefault(),
|
|
2304
|
+
function se(e) {
|
|
2305
|
+
e.key === "ArrowDown" ? (e.preventDefault(), ce()) : e.key === "ArrowUp" ? (e.preventDefault(), le()) : e.key === "Enter" ? (e.preventDefault(), ue()) : e.key === "Escape" && (J(), O.value?.focus());
|
|
2246
2306
|
}
|
|
2247
|
-
function
|
|
2248
|
-
|
|
2307
|
+
function ce() {
|
|
2308
|
+
E.value = Math.min(E.value + 1, K.value.length - 1), de();
|
|
2249
2309
|
}
|
|
2250
|
-
function
|
|
2251
|
-
|
|
2310
|
+
function le() {
|
|
2311
|
+
E.value = Math.max(E.value - 1, 0), de();
|
|
2252
2312
|
}
|
|
2253
|
-
function
|
|
2254
|
-
let e =
|
|
2255
|
-
e &&
|
|
2313
|
+
function ue() {
|
|
2314
|
+
let e = K.value[E.value];
|
|
2315
|
+
e && X(e);
|
|
2256
2316
|
}
|
|
2257
|
-
function
|
|
2317
|
+
function de() {
|
|
2258
2318
|
g(() => {
|
|
2259
|
-
(
|
|
2319
|
+
(P.value?.querySelector("[data-active=\"true\"]"))?.scrollIntoView?.({ block: "nearest" });
|
|
2260
2320
|
});
|
|
2261
2321
|
}
|
|
2262
|
-
return b(() =>
|
|
2322
|
+
return b(() => {
|
|
2323
|
+
document.removeEventListener("pointerdown", ae), window.removeEventListener("resize", H), window.removeEventListener("scroll", H, !0);
|
|
2324
|
+
}), (a, u) => (x(), c("div", {
|
|
2263
2325
|
ref_key: "containerRef",
|
|
2264
|
-
ref:
|
|
2265
|
-
class: _(["uid-select", [`uid-select--${
|
|
2266
|
-
"uid-select--open":
|
|
2267
|
-
"uid-select--disabled":
|
|
2326
|
+
ref: D,
|
|
2327
|
+
class: _(["uid-select", [`uid-select--${i.size}`, {
|
|
2328
|
+
"uid-select--open": S.value,
|
|
2329
|
+
"uid-select--disabled": i.disabled
|
|
2268
2330
|
}]])
|
|
2269
2331
|
}, [l("div", {
|
|
2270
2332
|
ref_key: "triggerRef",
|
|
2271
|
-
ref:
|
|
2333
|
+
ref: O,
|
|
2272
2334
|
class: "uid-select__trigger",
|
|
2273
2335
|
role: "combobox",
|
|
2274
2336
|
tabindex: "0",
|
|
2275
|
-
"aria-expanded":
|
|
2337
|
+
"aria-expanded": S.value,
|
|
2276
2338
|
"aria-haspopup": "listbox",
|
|
2277
|
-
"aria-controls": j(
|
|
2278
|
-
"aria-disabled":
|
|
2279
|
-
onClick:
|
|
2280
|
-
onKeydown:
|
|
2281
|
-
}, [l("span", { class: _(["uid-select__value", { "uid-select__value--placeholder": !
|
|
2339
|
+
"aria-controls": j(L),
|
|
2340
|
+
"aria-disabled": i.disabled,
|
|
2341
|
+
onClick: re,
|
|
2342
|
+
onKeydown: oe
|
|
2343
|
+
}, [l("span", { class: _(["uid-select__value", { "uid-select__value--placeholder": !ee.value }]) }, k(ee.value?.label ?? m.value), 3), l("div", gi, [i.clearable && y.value !== null ? (x(), c("button", {
|
|
2282
2344
|
key: 0,
|
|
2283
2345
|
type: "button",
|
|
2284
2346
|
class: "uid-select__clear",
|
|
2285
|
-
"aria-label": j(
|
|
2286
|
-
onClick:
|
|
2347
|
+
"aria-label": j(p).common.clear,
|
|
2348
|
+
onClick: ie
|
|
2287
2349
|
}, [d(e, {
|
|
2288
2350
|
icon: j(_e),
|
|
2289
2351
|
size: 12
|
|
2290
|
-
}, null, 8, ["icon"])], 8,
|
|
2352
|
+
}, null, 8, ["icon"])], 8, _i)) : s("", !0), d(e, {
|
|
2291
2353
|
icon: j(Y),
|
|
2292
2354
|
size: 16,
|
|
2293
|
-
class: _(["uid-select__chevron", { "uid-select__chevron--open":
|
|
2355
|
+
class: _(["uid-select__chevron", { "uid-select__chevron--open": S.value }]),
|
|
2294
2356
|
"aria-hidden": "true"
|
|
2295
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
2296
|
-
default: z(() => [
|
|
2357
|
+
}, null, 8, ["icon", "class"])])], 40, hi), (x(), o(n, { to: "body" }, [d(r, { name: "uid-select-dropdown" }, {
|
|
2358
|
+
default: z(() => [S.value ? (x(), c("div", {
|
|
2359
|
+
key: 0,
|
|
2360
|
+
ref_key: "dropdownRef",
|
|
2361
|
+
ref: A,
|
|
2362
|
+
class: "uid-select__dropdown",
|
|
2363
|
+
style: v(G.value)
|
|
2364
|
+
}, [i.searchable ? (x(), c("div", vi, [B(l("input", {
|
|
2297
2365
|
ref_key: "searchRef",
|
|
2298
|
-
ref:
|
|
2299
|
-
"onUpdate:modelValue":
|
|
2366
|
+
ref: F,
|
|
2367
|
+
"onUpdate:modelValue": u[0] ||= (e) => C.value = e,
|
|
2300
2368
|
class: "uid-select__search-input",
|
|
2301
2369
|
type: "text",
|
|
2302
|
-
placeholder: j(
|
|
2370
|
+
placeholder: j(p).common.search,
|
|
2303
2371
|
autocomplete: "off",
|
|
2304
|
-
onKeydown:
|
|
2305
|
-
}, null, 40,
|
|
2306
|
-
id: j(
|
|
2372
|
+
onKeydown: se
|
|
2373
|
+
}, null, 40, yi), [[I, C.value]])])) : s("", !0), l("div", {
|
|
2374
|
+
id: j(L),
|
|
2307
2375
|
ref_key: "listRef",
|
|
2308
|
-
ref:
|
|
2376
|
+
ref: P,
|
|
2309
2377
|
class: "uid-select__list",
|
|
2310
2378
|
role: "listbox",
|
|
2311
|
-
onKeydown:
|
|
2312
|
-
}, [
|
|
2379
|
+
onKeydown: se
|
|
2380
|
+
}, [K.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(te.value, ([n, r]) => (x(), c(t, { key: n }, [n ? (x(), c("div", xi, k(n), 1)) : s("", !0), (x(!0), c(t, null, T(r, (t) => (x(), c("button", {
|
|
2313
2381
|
key: t.value,
|
|
2314
2382
|
type: "button",
|
|
2315
2383
|
class: _(["uid-select__option", {
|
|
2316
|
-
"uid-select__option--selected": t.value ===
|
|
2317
|
-
"uid-select__option--active":
|
|
2384
|
+
"uid-select__option--selected": t.value === y.value,
|
|
2385
|
+
"uid-select__option--active": K.value.indexOf(t) === E.value,
|
|
2318
2386
|
"uid-select__option--disabled": t.disabled
|
|
2319
2387
|
}]),
|
|
2320
|
-
"data-active":
|
|
2388
|
+
"data-active": K.value.indexOf(t) === E.value ? "true" : void 0,
|
|
2321
2389
|
role: "option",
|
|
2322
|
-
"aria-selected": t.value ===
|
|
2390
|
+
"aria-selected": t.value === y.value,
|
|
2323
2391
|
"aria-disabled": t.disabled,
|
|
2324
|
-
onClick: (e) =>
|
|
2325
|
-
onMouseenter: (e) => !t.disabled && (
|
|
2326
|
-
}, [l("span", null, k(t.label), 1), t.value ===
|
|
2392
|
+
onClick: (e) => X(t),
|
|
2393
|
+
onMouseenter: (e) => !t.disabled && (E.value = K.value.indexOf(t))
|
|
2394
|
+
}, [l("span", null, k(t.label), 1), t.value === y.value ? (x(), o(e, {
|
|
2327
2395
|
key: 0,
|
|
2328
2396
|
icon: j(q),
|
|
2329
2397
|
size: 14,
|
|
2330
2398
|
"aria-hidden": "true",
|
|
2331
2399
|
class: "uid-select__check"
|
|
2332
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
2400
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, Si))), 128))], 64))), 128)) : (x(), c("div", Ci, k(j(p).select.noResults), 1))], 40, bi)], 4)) : s("", !0)]),
|
|
2333
2401
|
_: 1
|
|
2334
|
-
})], 2));
|
|
2402
|
+
})]))], 2));
|
|
2335
2403
|
}
|
|
2336
|
-
}),
|
|
2404
|
+
}), Ti = [
|
|
2337
2405
|
"aria-expanded",
|
|
2338
2406
|
"aria-label",
|
|
2339
2407
|
"aria-disabled"
|
|
2340
|
-
],
|
|
2408
|
+
], Ei = { class: "uid-datepicker__suffix" }, Di = ["aria-label"], Oi = {
|
|
2341
2409
|
key: 0,
|
|
2342
2410
|
class: "uid-datepicker__panel",
|
|
2343
2411
|
role: "dialog",
|
|
2344
2412
|
"aria-label": "Выбор даты"
|
|
2345
|
-
},
|
|
2413
|
+
}, ki = { class: "uid-datepicker__nav" }, Ai = ["aria-label"], ji = { class: "uid-datepicker__month-label" }, Mi = ["aria-label"], Ni = [
|
|
2346
2414
|
"data-iso",
|
|
2347
2415
|
"tabindex",
|
|
2348
2416
|
"disabled",
|
|
2349
2417
|
"aria-current",
|
|
2350
2418
|
"aria-selected",
|
|
2351
2419
|
"onClick"
|
|
2352
|
-
],
|
|
2420
|
+
], Pi = /* @__PURE__ */ f({
|
|
2353
2421
|
__name: "UidDatePicker",
|
|
2354
2422
|
props: /* @__PURE__ */ m({
|
|
2355
2423
|
min: { default: void 0 },
|
|
@@ -2517,19 +2585,19 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2517
2585
|
"aria-disabled": n.disabled,
|
|
2518
2586
|
onClick: ee,
|
|
2519
2587
|
onKeydown: ie
|
|
2520
|
-
}, [l("span", { class: _(["uid-datepicker__value", { "uid-datepicker__value--placeholder": !m.value }]) }, k(m.value ? F.value : u.value), 3), l("div",
|
|
2588
|
+
}, [l("span", { class: _(["uid-datepicker__value", { "uid-datepicker__value--placeholder": !m.value }]) }, k(m.value ? F.value : u.value), 3), l("div", Ei, [m.value ? (x(), c("button", {
|
|
2521
2589
|
key: 0,
|
|
2522
2590
|
type: "button",
|
|
2523
2591
|
class: "uid-datepicker__clear",
|
|
2524
2592
|
"aria-label": j(o).common.clear,
|
|
2525
2593
|
onClick: q
|
|
2526
|
-
}, " × ", 8,
|
|
2594
|
+
}, " × ", 8, Di)) : s("", !0), d(e, {
|
|
2527
2595
|
icon: j(Y),
|
|
2528
2596
|
size: 16,
|
|
2529
2597
|
class: _(["uid-datepicker__chevron", { "uid-datepicker__chevron--open": h.value }]),
|
|
2530
2598
|
"aria-hidden": "true"
|
|
2531
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
2532
|
-
default: z(() => [h.value ? (x(), c("div",
|
|
2599
|
+
}, null, 8, ["icon", "class"])])], 40, Ti), d(r, { name: "uid-datepicker-panel" }, {
|
|
2600
|
+
default: z(() => [h.value ? (x(), c("div", Oi, [l("div", ki, [
|
|
2533
2601
|
l("button", {
|
|
2534
2602
|
type: "button",
|
|
2535
2603
|
class: "uid-datepicker__nav-btn",
|
|
@@ -2538,8 +2606,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2538
2606
|
}, [d(e, {
|
|
2539
2607
|
icon: j(re),
|
|
2540
2608
|
size: 16
|
|
2541
|
-
}, null, 8, ["icon"])], 8,
|
|
2542
|
-
l("span",
|
|
2609
|
+
}, null, 8, ["icon"])], 8, Ai),
|
|
2610
|
+
l("span", ji, k(f.value[O.value]) + " " + k(D.value), 1),
|
|
2543
2611
|
l("button", {
|
|
2544
2612
|
type: "button",
|
|
2545
2613
|
class: "uid-datepicker__nav-btn",
|
|
@@ -2548,7 +2616,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2548
2616
|
}, [d(e, {
|
|
2549
2617
|
icon: j(X),
|
|
2550
2618
|
size: 16
|
|
2551
|
-
}, null, 8, ["icon"])], 8,
|
|
2619
|
+
}, null, 8, ["icon"])], 8, Mi)
|
|
2552
2620
|
]), l("div", {
|
|
2553
2621
|
ref_key: "gridRef",
|
|
2554
2622
|
ref: S,
|
|
@@ -2572,11 +2640,11 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2572
2640
|
"aria-current": e.iso === L.value ? "date" : void 0,
|
|
2573
2641
|
"aria-selected": e.iso === m.value,
|
|
2574
2642
|
onClick: (t) => K(e)
|
|
2575
|
-
}, k(e.date.getDate()), 11,
|
|
2643
|
+
}, k(e.date.getDate()), 11, Ni))), 128))], 544)])) : s("", !0)]),
|
|
2576
2644
|
_: 1
|
|
2577
2645
|
})], 2));
|
|
2578
2646
|
}
|
|
2579
|
-
}),
|
|
2647
|
+
}), Fi = /* @__PURE__ */ f({
|
|
2580
2648
|
__name: "UidVirtualList",
|
|
2581
2649
|
props: {
|
|
2582
2650
|
items: {},
|
|
@@ -2618,17 +2686,17 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2618
2686
|
index: r
|
|
2619
2687
|
})], 4))), 128))], 4)], 4)], 36));
|
|
2620
2688
|
}
|
|
2621
|
-
}),
|
|
2689
|
+
}), Ii = {
|
|
2622
2690
|
key: 0,
|
|
2623
2691
|
class: "uid-slider__header"
|
|
2624
|
-
},
|
|
2692
|
+
}, Li = {
|
|
2625
2693
|
key: 0,
|
|
2626
2694
|
class: "uid-slider__label"
|
|
2627
|
-
},
|
|
2695
|
+
}, Ri = {
|
|
2628
2696
|
key: 1,
|
|
2629
2697
|
class: "uid-slider__value",
|
|
2630
2698
|
"aria-live": "polite"
|
|
2631
|
-
},
|
|
2699
|
+
}, zi = [
|
|
2632
2700
|
"min",
|
|
2633
2701
|
"max",
|
|
2634
2702
|
"step",
|
|
@@ -2637,7 +2705,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2637
2705
|
"aria-valuemin",
|
|
2638
2706
|
"aria-valuemax",
|
|
2639
2707
|
"aria-valuenow"
|
|
2640
|
-
],
|
|
2708
|
+
], Bi = /* @__PURE__ */ f({
|
|
2641
2709
|
__name: "UidSlider",
|
|
2642
2710
|
props: /* @__PURE__ */ m({
|
|
2643
2711
|
min: { default: 0 },
|
|
@@ -2663,7 +2731,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2663
2731
|
emits: ["update:modelValue"],
|
|
2664
2732
|
setup(e) {
|
|
2665
2733
|
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));
|
|
2666
|
-
return (t, a) => (x(), c("div", { class: _(["uid-slider", { "uid-slider--disabled": e.disabled }]) }, [e.label || e.showValue ? (x(), c("div",
|
|
2734
|
+
return (t, a) => (x(), c("div", { class: _(["uid-slider", { "uid-slider--disabled": e.disabled }]) }, [e.label || e.showValue ? (x(), c("div", Ii, [e.label ? (x(), c("label", Li, k(e.label), 1)) : s("", !0), e.showValue ? (x(), c("span", Ri, k(i.value), 1)) : s("", !0)])) : s("", !0), B(l("input", {
|
|
2667
2735
|
"onUpdate:modelValue": a[0] ||= (e) => n.value = e,
|
|
2668
2736
|
class: "uid-slider__input",
|
|
2669
2737
|
type: "range",
|
|
@@ -2676,22 +2744,22 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2676
2744
|
"aria-valuemax": e.max,
|
|
2677
2745
|
"aria-valuenow": n.value,
|
|
2678
2746
|
style: v({ "--_fill": `${r.value}%` })
|
|
2679
|
-
}, null, 12,
|
|
2747
|
+
}, null, 12, zi), [[
|
|
2680
2748
|
I,
|
|
2681
2749
|
n.value,
|
|
2682
2750
|
void 0,
|
|
2683
2751
|
{ number: !0 }
|
|
2684
2752
|
]])], 2));
|
|
2685
2753
|
}
|
|
2686
|
-
}),
|
|
2754
|
+
}), Vi = ["aria-expanded", "aria-disabled"], Hi = {
|
|
2687
2755
|
key: 0,
|
|
2688
2756
|
class: "uid-colorpicker__panel",
|
|
2689
2757
|
role: "dialog",
|
|
2690
2758
|
"aria-label": "Выбор цвета"
|
|
2691
|
-
},
|
|
2759
|
+
}, Ui = { class: "uid-colorpicker__controls" }, Wi = { class: "uid-colorpicker__sliders" }, Gi = ["aria-valuenow"], Ki = ["aria-valuenow"], qi = { class: "uid-colorpicker__inputs" }, Ji = ["value"], Yi = {
|
|
2692
2760
|
key: 0,
|
|
2693
2761
|
class: "uid-colorpicker__presets"
|
|
2694
|
-
},
|
|
2762
|
+
}, Xi = ["aria-label", "onClick"], Zi = /* @__PURE__ */ f({
|
|
2695
2763
|
__name: "UidColorPicker",
|
|
2696
2764
|
props: /* @__PURE__ */ m({
|
|
2697
2765
|
disabled: {
|
|
@@ -2882,8 +2950,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2882
2950
|
}, [l("span", {
|
|
2883
2951
|
class: "uid-colorpicker__swatch",
|
|
2884
2952
|
style: v(u.value ? { background: u.value } : {})
|
|
2885
|
-
}, null, 4), l("span", { class: _(["uid-colorpicker__trigger-label", { "uid-colorpicker__trigger-label--empty": !u.value }]) }, k(u.value ? u.value.toUpperCase() : "Выберите цвет"), 3)], 8,
|
|
2886
|
-
default: z(() => [g.value ? (x(), c("div",
|
|
2953
|
+
}, null, 4), l("span", { class: _(["uid-colorpicker__trigger-label", { "uid-colorpicker__trigger-label--empty": !u.value }]) }, k(u.value ? u.value.toUpperCase() : "Выберите цвет"), 3)], 8, Vi), d(r, { name: "uid-colorpicker-panel" }, {
|
|
2954
|
+
default: z(() => [g.value ? (x(), c("div", Hi, [
|
|
2887
2955
|
l("div", {
|
|
2888
2956
|
ref_key: "gradientRef",
|
|
2889
2957
|
ref: S,
|
|
@@ -2903,7 +2971,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2903
2971
|
top: W.value
|
|
2904
2972
|
})
|
|
2905
2973
|
}, null, 4)], 36),
|
|
2906
|
-
l("div",
|
|
2974
|
+
l("div", Ui, [l("div", Wi, [l("div", {
|
|
2907
2975
|
ref_key: "hueSliderRef",
|
|
2908
2976
|
ref: C,
|
|
2909
2977
|
class: "uid-colorpicker__hue-track",
|
|
@@ -2920,7 +2988,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2920
2988
|
}, [l("div", {
|
|
2921
2989
|
class: "uid-colorpicker__track-thumb",
|
|
2922
2990
|
style: v({ left: G.value })
|
|
2923
|
-
}, null, 4)], 40,
|
|
2991
|
+
}, null, 4)], 40, Gi), e.alpha ? (x(), c("div", {
|
|
2924
2992
|
key: 0,
|
|
2925
2993
|
ref_key: "alphaSliderRef",
|
|
2926
2994
|
ref: E,
|
|
@@ -2939,11 +3007,11 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2939
3007
|
}, [l("div", {
|
|
2940
3008
|
class: "uid-colorpicker__track-thumb",
|
|
2941
3009
|
style: v({ left: ee.value })
|
|
2942
|
-
}, null, 4)], 44,
|
|
3010
|
+
}, null, 4)], 44, Ki)) : s("", !0)]), l("span", {
|
|
2943
3011
|
class: "uid-colorpicker__preview",
|
|
2944
3012
|
style: v({ background: q.value })
|
|
2945
3013
|
}, null, 4)]),
|
|
2946
|
-
l("div",
|
|
3014
|
+
l("div", qi, [i[0] ||= l("label", { class: "uid-colorpicker__input-label" }, "HEX", -1), l("input", {
|
|
2947
3015
|
class: "uid-colorpicker__hex-input",
|
|
2948
3016
|
type: "text",
|
|
2949
3017
|
value: D.value,
|
|
@@ -2952,37 +3020,37 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
2952
3020
|
onInput: ue,
|
|
2953
3021
|
onBlur: de,
|
|
2954
3022
|
onKeydown: fe
|
|
2955
|
-
}, null, 40,
|
|
2956
|
-
e.presets && e.presets.length ? (x(), c("div",
|
|
3023
|
+
}, null, 40, Ji)]),
|
|
3024
|
+
e.presets && e.presets.length ? (x(), c("div", Yi, [(x(!0), c(t, null, T(e.presets, (e) => (x(), c("button", {
|
|
2957
3025
|
key: e,
|
|
2958
3026
|
type: "button",
|
|
2959
3027
|
class: _(["uid-colorpicker__preset", { "uid-colorpicker__preset--active": u.value === e || u.value === e.toLowerCase() || u.value?.toUpperCase() === e.toUpperCase() }]),
|
|
2960
3028
|
style: v({ background: e }),
|
|
2961
3029
|
"aria-label": e,
|
|
2962
3030
|
onClick: (t) => _e(e)
|
|
2963
|
-
}, null, 14,
|
|
3031
|
+
}, null, 14, Xi))), 128))])) : s("", !0)
|
|
2964
3032
|
])) : s("", !0)]),
|
|
2965
3033
|
_: 1
|
|
2966
3034
|
})], 2));
|
|
2967
3035
|
}
|
|
2968
|
-
}),
|
|
3036
|
+
}), Qi = { class: "uid-command__search" }, $i = ["placeholder"], ea = {
|
|
2969
3037
|
key: 0,
|
|
2970
3038
|
class: "uid-command__group-label"
|
|
2971
|
-
},
|
|
3039
|
+
}, ta = [
|
|
2972
3040
|
"data-active",
|
|
2973
3041
|
"aria-selected",
|
|
2974
3042
|
"onClick",
|
|
2975
3043
|
"onMouseenter"
|
|
2976
|
-
],
|
|
3044
|
+
], na = { class: "uid-command__item-text" }, ra = { class: "uid-command__item-label" }, ia = {
|
|
2977
3045
|
key: 0,
|
|
2978
3046
|
class: "uid-command__item-desc"
|
|
2979
|
-
},
|
|
3047
|
+
}, aa = {
|
|
2980
3048
|
key: 0,
|
|
2981
3049
|
class: "uid-command__item-shortcut"
|
|
2982
|
-
},
|
|
3050
|
+
}, oa = {
|
|
2983
3051
|
key: 1,
|
|
2984
3052
|
class: "uid-command__empty"
|
|
2985
|
-
},
|
|
3053
|
+
}, sa = /* @__PURE__ */ f({
|
|
2986
3054
|
__name: "UidCommand",
|
|
2987
3055
|
props: /* @__PURE__ */ m({
|
|
2988
3056
|
commands: {},
|
|
@@ -3052,7 +3120,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3052
3120
|
"aria-modal": "true",
|
|
3053
3121
|
"aria-label": "Палитра команд",
|
|
3054
3122
|
onKeydown: V
|
|
3055
|
-
}, [l("div",
|
|
3123
|
+
}, [l("div", Qi, [d(e, {
|
|
3056
3124
|
icon: j(fe),
|
|
3057
3125
|
size: 16,
|
|
3058
3126
|
class: "uid-command__search-icon",
|
|
@@ -3067,12 +3135,12 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3067
3135
|
autocomplete: "off",
|
|
3068
3136
|
spellcheck: "false",
|
|
3069
3137
|
"aria-autocomplete": "list"
|
|
3070
|
-
}, null, 8,
|
|
3138
|
+
}, null, 8, $i), [[I, p.value]])]), l("div", {
|
|
3071
3139
|
ref_key: "listRef",
|
|
3072
3140
|
ref: S,
|
|
3073
3141
|
class: "uid-command__list",
|
|
3074
3142
|
role: "listbox"
|
|
3075
|
-
}, [A.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(M.value, ([e, n]) => (x(), c(t, { key: e }, [e ? (x(), c("div",
|
|
3143
|
+
}, [A.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(M.value, ([e, n]) => (x(), c(t, { key: e }, [e ? (x(), c("div", ea, k(e), 1)) : s("", !0), (x(!0), c(t, null, T(n, (e) => (x(), c("button", {
|
|
3076
3144
|
key: e.id,
|
|
3077
3145
|
class: _(["uid-command__item", { "uid-command__item--active": A.value.indexOf(e) === m.value }]),
|
|
3078
3146
|
"data-active": A.value.indexOf(e) === m.value ? "true" : void 0,
|
|
@@ -3081,18 +3149,18 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3081
3149
|
type: "button",
|
|
3082
3150
|
onClick: (t) => F(e),
|
|
3083
3151
|
onMouseenter: (t) => m.value = A.value.indexOf(e)
|
|
3084
|
-
}, [l("div",
|
|
3152
|
+
}, [l("div", na, [l("span", ra, k(e.label), 1), e.description ? (x(), c("span", ia, k(e.description), 1)) : s("", !0)]), e.shortcut ? (x(), c("div", aa, [(x(!0), c(t, null, T(e.shortcut, (e) => (x(), c("kbd", {
|
|
3085
3153
|
key: e,
|
|
3086
3154
|
class: "uid-command__kbd"
|
|
3087
|
-
}, k(e), 1))), 128))])) : s("", !0)], 42,
|
|
3155
|
+
}, k(e), 1))), 128))])) : s("", !0)], 42, ta))), 128))], 64))), 128)) : (x(), c("div", oa, k(i.emptyText), 1))], 512)], 544)])) : s("", !0)]),
|
|
3088
3156
|
_: 1
|
|
3089
3157
|
})]));
|
|
3090
3158
|
}
|
|
3091
|
-
}),
|
|
3159
|
+
}), ca = ["for"], la = {
|
|
3092
3160
|
key: 0,
|
|
3093
3161
|
class: "uid-number-input__required",
|
|
3094
3162
|
"aria-hidden": "true"
|
|
3095
|
-
},
|
|
3163
|
+
}, ua = { class: "uid-number-input__control" }, da = ["disabled", "aria-label"], fa = [
|
|
3096
3164
|
"id",
|
|
3097
3165
|
"name",
|
|
3098
3166
|
"placeholder",
|
|
@@ -3105,7 +3173,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3105
3173
|
"value",
|
|
3106
3174
|
"aria-invalid",
|
|
3107
3175
|
"aria-describedby"
|
|
3108
|
-
],
|
|
3176
|
+
], pa = ["disabled", "aria-label"], ma = ["id"], ha = /* @__PURE__ */ f({
|
|
3109
3177
|
__name: "UidNumberInput",
|
|
3110
3178
|
props: /* @__PURE__ */ m({
|
|
3111
3179
|
min: { default: void 0 },
|
|
@@ -3198,8 +3266,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3198
3266
|
key: 0,
|
|
3199
3267
|
for: j(h),
|
|
3200
3268
|
class: "uid-number-input__label"
|
|
3201
|
-
}, [u(k(t.label) + " ", 1), t.required ? (x(), c("span",
|
|
3202
|
-
l("div",
|
|
3269
|
+
}, [u(k(t.label) + " ", 1), t.required ? (x(), c("span", la, "*")) : s("", !0)], 8, ca)) : s("", !0),
|
|
3270
|
+
l("div", ua, [
|
|
3203
3271
|
t.controls ? (x(), c("button", {
|
|
3204
3272
|
key: 0,
|
|
3205
3273
|
type: "button",
|
|
@@ -3211,7 +3279,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3211
3279
|
}, [d(e, {
|
|
3212
3280
|
icon: j(ue),
|
|
3213
3281
|
size: 14
|
|
3214
|
-
}, null, 8, ["icon"])], 8,
|
|
3282
|
+
}, null, 8, ["icon"])], 8, da)) : s("", !0),
|
|
3215
3283
|
l("input", {
|
|
3216
3284
|
id: j(h),
|
|
3217
3285
|
class: "uid-number-input__input",
|
|
@@ -3232,7 +3300,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3232
3300
|
onBlur: O,
|
|
3233
3301
|
onFocus: r[0] ||= (e) => i("focus", e),
|
|
3234
3302
|
onKeydown: A
|
|
3235
|
-
}, null, 40,
|
|
3303
|
+
}, null, 40, fa),
|
|
3236
3304
|
t.controls ? (x(), c("button", {
|
|
3237
3305
|
key: 1,
|
|
3238
3306
|
type: "button",
|
|
@@ -3244,37 +3312,37 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3244
3312
|
}, [d(e, {
|
|
3245
3313
|
icon: j(de),
|
|
3246
3314
|
size: 14
|
|
3247
|
-
}, null, 8, ["icon"])], 8,
|
|
3315
|
+
}, null, 8, ["icon"])], 8, pa)) : s("", !0)
|
|
3248
3316
|
]),
|
|
3249
3317
|
v.value ? (x(), c("p", {
|
|
3250
3318
|
key: 1,
|
|
3251
3319
|
id: `${j(h)}-hint`,
|
|
3252
3320
|
class: _(["uid-number-input__hint", g.value && "uid-number-input__hint--error"])
|
|
3253
|
-
}, k(v.value), 11,
|
|
3321
|
+
}, k(v.value), 11, ma)) : s("", !0)
|
|
3254
3322
|
], 2));
|
|
3255
3323
|
}
|
|
3256
|
-
}),
|
|
3324
|
+
}), ga = [
|
|
3257
3325
|
"aria-expanded",
|
|
3258
3326
|
"aria-label",
|
|
3259
3327
|
"aria-disabled"
|
|
3260
|
-
],
|
|
3328
|
+
], _a = ["aria-label"], va = {
|
|
3261
3329
|
key: 0,
|
|
3262
3330
|
class: "uid-timepicker__panel",
|
|
3263
3331
|
role: "dialog",
|
|
3264
3332
|
"aria-label": "Выбор времени"
|
|
3265
|
-
},
|
|
3333
|
+
}, ya = { class: "uid-timepicker__columns" }, ba = [
|
|
3266
3334
|
"aria-selected",
|
|
3267
3335
|
"tabindex",
|
|
3268
3336
|
"onClick"
|
|
3269
|
-
],
|
|
3337
|
+
], xa = [
|
|
3270
3338
|
"aria-selected",
|
|
3271
3339
|
"tabindex",
|
|
3272
3340
|
"onClick"
|
|
3273
|
-
],
|
|
3341
|
+
], Sa = [
|
|
3274
3342
|
"aria-selected",
|
|
3275
3343
|
"tabindex",
|
|
3276
3344
|
"onClick"
|
|
3277
|
-
],
|
|
3345
|
+
], Ca = { class: "uid-timepicker__footer" }, wa = /* @__PURE__ */ f({
|
|
3278
3346
|
__name: "UidTimePicker",
|
|
3279
3347
|
props: /* @__PURE__ */ m({
|
|
3280
3348
|
step: { default: 5 },
|
|
@@ -3469,9 +3537,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3469
3537
|
class: "uid-timepicker__clear",
|
|
3470
3538
|
"aria-label": j(u).common.clear,
|
|
3471
3539
|
onClick: te
|
|
3472
|
-
}, " × ", 8,
|
|
3473
|
-
], 40,
|
|
3474
|
-
default: z(() => [h.value ? (x(), c("div",
|
|
3540
|
+
}, " × ", 8, _a)) : s("", !0)
|
|
3541
|
+
], 40, ga), d(r, { name: "uid-timepicker-panel" }, {
|
|
3542
|
+
default: z(() => [h.value ? (x(), c("div", va, [l("div", ya, [
|
|
3475
3543
|
l("div", {
|
|
3476
3544
|
ref_key: "hourColRef",
|
|
3477
3545
|
ref: S,
|
|
@@ -3487,7 +3555,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3487
3555
|
"aria-selected": A.value.h === e,
|
|
3488
3556
|
tabindex: A.value.h === e ? 0 : -1,
|
|
3489
3557
|
onClick: (t) => U(e)
|
|
3490
|
-
}, k(L(e)), 11,
|
|
3558
|
+
}, k(L(e)), 11, ba))), 128))], 544),
|
|
3491
3559
|
l("div", {
|
|
3492
3560
|
ref_key: "minuteColRef",
|
|
3493
3561
|
ref: C,
|
|
@@ -3503,7 +3571,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3503
3571
|
"aria-selected": A.value.m === e,
|
|
3504
3572
|
tabindex: A.value.m === e ? 0 : -1,
|
|
3505
3573
|
onClick: (t) => W(e)
|
|
3506
|
-
}, k(L(e)), 11,
|
|
3574
|
+
}, k(L(e)), 11, xa))), 128))], 544),
|
|
3507
3575
|
n.withSeconds ? (x(), c("div", {
|
|
3508
3576
|
key: 0,
|
|
3509
3577
|
ref_key: "secondColRef",
|
|
@@ -3520,8 +3588,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3520
3588
|
"aria-selected": A.value.s === e,
|
|
3521
3589
|
tabindex: A.value.s === e ? 0 : -1,
|
|
3522
3590
|
onClick: (t) => G(e)
|
|
3523
|
-
}, k(L(e)), 11,
|
|
3524
|
-
]), l("div",
|
|
3591
|
+
}, k(L(e)), 11, Sa))), 128))], 544)) : s("", !0)
|
|
3592
|
+
]), l("div", Ca, [l("button", {
|
|
3525
3593
|
type: "button",
|
|
3526
3594
|
class: "uid-timepicker__btn",
|
|
3527
3595
|
onClick: K
|
|
@@ -3533,24 +3601,24 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3533
3601
|
_: 1
|
|
3534
3602
|
})], 2));
|
|
3535
3603
|
}
|
|
3536
|
-
}),
|
|
3604
|
+
}), Ta = [
|
|
3537
3605
|
"aria-expanded",
|
|
3538
3606
|
"aria-label",
|
|
3539
3607
|
"aria-disabled"
|
|
3540
|
-
],
|
|
3608
|
+
], Ea = ["aria-label"], Da = {
|
|
3541
3609
|
key: 0,
|
|
3542
3610
|
class: "uid-daterange__panel",
|
|
3543
3611
|
role: "dialog",
|
|
3544
3612
|
"aria-label": "Выбор диапазона дат"
|
|
3545
|
-
},
|
|
3613
|
+
}, Oa = { class: "uid-daterange__months" }, ka = { class: "uid-daterange__month" }, Aa = { class: "uid-daterange__nav" }, ja = ["aria-label"], Ma = { class: "uid-daterange__month-label" }, Na = ["aria-label"], Pa = { class: "uid-daterange__grid" }, Fa = [
|
|
3546
3614
|
"disabled",
|
|
3547
3615
|
"onClick",
|
|
3548
3616
|
"onMouseenter"
|
|
3549
|
-
],
|
|
3617
|
+
], Ia = { class: "uid-daterange__month" }, La = { class: "uid-daterange__nav" }, Ra = ["aria-label"], za = { class: "uid-daterange__month-label" }, Ba = ["aria-label"], Va = { class: "uid-daterange__grid" }, Ha = [
|
|
3550
3618
|
"disabled",
|
|
3551
3619
|
"onClick",
|
|
3552
3620
|
"onMouseenter"
|
|
3553
|
-
],
|
|
3621
|
+
], Ua = { class: "uid-daterange__footer" }, Wa = /* @__PURE__ */ f({
|
|
3554
3622
|
__name: "UidDateRangePicker",
|
|
3555
3623
|
props: /* @__PURE__ */ m({
|
|
3556
3624
|
min: { default: void 0 },
|
|
@@ -3745,9 +3813,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3745
3813
|
class: "uid-daterange__clear",
|
|
3746
3814
|
"aria-label": j(u).common.clear,
|
|
3747
3815
|
onClick: ce
|
|
3748
|
-
}, " × ", 8,
|
|
3749
|
-
], 40,
|
|
3750
|
-
default: z(() => [h.value ? (x(), c("div",
|
|
3816
|
+
}, " × ", 8, Ea)) : s("", !0)
|
|
3817
|
+
], 40, Ta), d(r, { name: "uid-daterange-panel" }, {
|
|
3818
|
+
default: z(() => [h.value ? (x(), c("div", Da, [l("div", Oa, [l("div", ka, [l("div", Aa, [
|
|
3751
3819
|
l("button", {
|
|
3752
3820
|
type: "button",
|
|
3753
3821
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--prev",
|
|
@@ -3756,8 +3824,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3756
3824
|
}, [d(e, {
|
|
3757
3825
|
icon: j(re),
|
|
3758
3826
|
size: 16
|
|
3759
|
-
}, null, 8, ["icon"])], 8,
|
|
3760
|
-
l("span",
|
|
3827
|
+
}, null, 8, ["icon"])], 8, ja),
|
|
3828
|
+
l("span", Ma, k(H.value), 1),
|
|
3761
3829
|
l("button", {
|
|
3762
3830
|
type: "button",
|
|
3763
3831
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--next",
|
|
@@ -3766,8 +3834,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3766
3834
|
}, [d(e, {
|
|
3767
3835
|
icon: j(X),
|
|
3768
3836
|
size: 16
|
|
3769
|
-
}, null, 8, ["icon"])], 8,
|
|
3770
|
-
]), l("div",
|
|
3837
|
+
}, null, 8, ["icon"])], 8, Na)
|
|
3838
|
+
]), l("div", Pa, [(x(!0), c(t, null, T(A.value, (e) => (x(), c("span", {
|
|
3771
3839
|
key: e,
|
|
3772
3840
|
class: "uid-daterange__weekday"
|
|
3773
3841
|
}, k(e), 1))), 128)), (x(!0), c(t, null, T(B.value, (e) => (x(), c("button", {
|
|
@@ -3784,7 +3852,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3784
3852
|
disabled: G(e.iso) || !e.current,
|
|
3785
3853
|
onClick: (t) => ie(e),
|
|
3786
3854
|
onMouseenter: (t) => ae(e.iso)
|
|
3787
|
-
}, k(e.date.getDate()), 43,
|
|
3855
|
+
}, k(e.date.getDate()), 43, Fa))), 128))])]), l("div", Ia, [l("div", La, [
|
|
3788
3856
|
l("button", {
|
|
3789
3857
|
type: "button",
|
|
3790
3858
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--prev",
|
|
@@ -3793,8 +3861,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3793
3861
|
}, [d(e, {
|
|
3794
3862
|
icon: j(re),
|
|
3795
3863
|
size: 16
|
|
3796
|
-
}, null, 8, ["icon"])], 8,
|
|
3797
|
-
l("span",
|
|
3864
|
+
}, null, 8, ["icon"])], 8, Ra),
|
|
3865
|
+
l("span", za, k(U.value), 1),
|
|
3798
3866
|
l("button", {
|
|
3799
3867
|
type: "button",
|
|
3800
3868
|
class: "uid-daterange__nav-btn uid-daterange__nav-btn--next",
|
|
@@ -3803,8 +3871,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3803
3871
|
}, [d(e, {
|
|
3804
3872
|
icon: j(X),
|
|
3805
3873
|
size: 16
|
|
3806
|
-
}, null, 8, ["icon"])], 8,
|
|
3807
|
-
]), l("div",
|
|
3874
|
+
}, null, 8, ["icon"])], 8, Ba)
|
|
3875
|
+
]), l("div", Va, [(x(!0), c(t, null, T(A.value, (e) => (x(), c("span", {
|
|
3808
3876
|
key: e,
|
|
3809
3877
|
class: "uid-daterange__weekday"
|
|
3810
3878
|
}, k(e), 1))), 128)), (x(!0), c(t, null, T(V.value, (e) => (x(), c("button", {
|
|
@@ -3821,7 +3889,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3821
3889
|
disabled: G(e.iso) || !e.current,
|
|
3822
3890
|
onClick: (t) => ie(e),
|
|
3823
3891
|
onMouseenter: (t) => ae(e.iso)
|
|
3824
|
-
}, k(e.date.getDate()), 43,
|
|
3892
|
+
}, k(e.date.getDate()), 43, Ha))), 128))])])]), l("div", Ua, [
|
|
3825
3893
|
l("button", {
|
|
3826
3894
|
type: "button",
|
|
3827
3895
|
class: "uid-daterange__btn",
|
|
@@ -3841,11 +3909,11 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3841
3909
|
_: 1
|
|
3842
3910
|
})], 2));
|
|
3843
3911
|
}
|
|
3844
|
-
}),
|
|
3912
|
+
}), Ga = ["for"], Ka = {
|
|
3845
3913
|
key: 0,
|
|
3846
3914
|
class: "uid-tags-input__required",
|
|
3847
3915
|
"aria-hidden": "true"
|
|
3848
|
-
},
|
|
3916
|
+
}, qa = ["aria-label", "onClick"], Ja = [
|
|
3849
3917
|
"id",
|
|
3850
3918
|
"placeholder",
|
|
3851
3919
|
"disabled",
|
|
@@ -3853,7 +3921,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3853
3921
|
"value",
|
|
3854
3922
|
"aria-invalid",
|
|
3855
3923
|
"aria-describedby"
|
|
3856
|
-
],
|
|
3924
|
+
], Ya = ["id"], Xa = /* @__PURE__ */ f({
|
|
3857
3925
|
__name: "UidTagsInput",
|
|
3858
3926
|
props: /* @__PURE__ */ m({
|
|
3859
3927
|
separators: { default: () => [",", "Enter"] },
|
|
@@ -3954,7 +4022,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3954
4022
|
key: 0,
|
|
3955
4023
|
for: j(p),
|
|
3956
4024
|
class: "uid-tags-input__label"
|
|
3957
|
-
}, [u(k(e.label) + " ", 1), e.required ? (x(), c("span",
|
|
4025
|
+
}, [u(k(e.label) + " ", 1), e.required ? (x(), c("span", Ka, "*")) : s("", !0)], 8, Ga)) : s("", !0),
|
|
3958
4026
|
l("div", {
|
|
3959
4027
|
class: "uid-tags-input__control",
|
|
3960
4028
|
role: "list",
|
|
@@ -3969,7 +4037,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3969
4037
|
class: "uid-tags-input__chip-remove",
|
|
3970
4038
|
"aria-label": j(m).tagsInput.remove(t),
|
|
3971
4039
|
onClick: H((e) => S(n), ["stop"])
|
|
3972
|
-
}, "×", 8,
|
|
4040
|
+
}, "×", 8, qa))], 2))), 128)), l("input", {
|
|
3973
4041
|
id: j(p),
|
|
3974
4042
|
ref_key: "inputRef",
|
|
3975
4043
|
ref: f,
|
|
@@ -3985,19 +4053,19 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
3985
4053
|
onKeydown: C,
|
|
3986
4054
|
onPaste: D,
|
|
3987
4055
|
onBlur: b
|
|
3988
|
-
}, null, 40,
|
|
4056
|
+
}, null, 40, Ja)]),
|
|
3989
4057
|
g.value ? (x(), c("p", {
|
|
3990
4058
|
key: 1,
|
|
3991
4059
|
id: `${j(p)}-hint`,
|
|
3992
4060
|
class: _(["uid-tags-input__hint", h.value && "uid-tags-input__hint--error"])
|
|
3993
|
-
}, k(g.value), 11,
|
|
4061
|
+
}, k(g.value), 11, Ya)) : s("", !0)
|
|
3994
4062
|
], 2));
|
|
3995
4063
|
}
|
|
3996
|
-
}),
|
|
4064
|
+
}), Za = ["for"], Qa = {
|
|
3997
4065
|
key: 0,
|
|
3998
4066
|
class: "uid-combobox__required",
|
|
3999
4067
|
"aria-hidden": "true"
|
|
4000
|
-
},
|
|
4068
|
+
}, $a = { class: "uid-combobox__control" }, eo = [
|
|
4001
4069
|
"id",
|
|
4002
4070
|
"aria-expanded",
|
|
4003
4071
|
"aria-controls",
|
|
@@ -4007,20 +4075,20 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4007
4075
|
"disabled",
|
|
4008
4076
|
"required",
|
|
4009
4077
|
"value"
|
|
4010
|
-
],
|
|
4078
|
+
], to = { class: "uid-combobox__suffix" }, no = ["aria-label"], ro = ["id"], io = [
|
|
4011
4079
|
"id",
|
|
4012
4080
|
"data-active",
|
|
4013
4081
|
"aria-selected",
|
|
4014
4082
|
"aria-disabled",
|
|
4015
4083
|
"onClick",
|
|
4016
4084
|
"onMouseenter"
|
|
4017
|
-
],
|
|
4085
|
+
], ao = { class: "uid-combobox__option-label" }, oo = {
|
|
4018
4086
|
key: 0,
|
|
4019
4087
|
class: "uid-combobox__option-hint"
|
|
4020
|
-
},
|
|
4088
|
+
}, so = ["id", "data-active"], co = { class: "uid-combobox__option-label" }, lo = {
|
|
4021
4089
|
key: 2,
|
|
4022
4090
|
class: "uid-combobox__empty"
|
|
4023
|
-
},
|
|
4091
|
+
}, uo = /* @__PURE__ */ f({
|
|
4024
4092
|
__name: "UidCombobox",
|
|
4025
4093
|
props: /* @__PURE__ */ m({
|
|
4026
4094
|
options: {},
|
|
@@ -4146,8 +4214,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4146
4214
|
key: 0,
|
|
4147
4215
|
for: j(A),
|
|
4148
4216
|
class: "uid-combobox__label"
|
|
4149
|
-
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span",
|
|
4150
|
-
l("div",
|
|
4217
|
+
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", Qa, "*")) : s("", !0)], 8, Za)) : s("", !0),
|
|
4218
|
+
l("div", $a, [l("input", {
|
|
4151
4219
|
id: j(A),
|
|
4152
4220
|
ref_key: "inputRef",
|
|
4153
4221
|
ref: D,
|
|
@@ -4168,7 +4236,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4168
4236
|
onInput: ee,
|
|
4169
4237
|
onFocus: K,
|
|
4170
4238
|
onKeydown: te
|
|
4171
|
-
}, null, 40,
|
|
4239
|
+
}, null, 40, eo), l("div", to, [n.clearable && v.value !== null ? (x(), c("button", {
|
|
4172
4240
|
key: 0,
|
|
4173
4241
|
type: "button",
|
|
4174
4242
|
class: "uid-combobox__clear",
|
|
@@ -4177,7 +4245,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4177
4245
|
}, [d(e, {
|
|
4178
4246
|
icon: j(_e),
|
|
4179
4247
|
size: 12
|
|
4180
|
-
}, null, 8, ["icon"])], 8,
|
|
4248
|
+
}, null, 8, ["icon"])], 8, no)) : s("", !0), d(e, {
|
|
4181
4249
|
icon: j(Y),
|
|
4182
4250
|
size: 16,
|
|
4183
4251
|
class: _(["uid-combobox__chevron", { "uid-combobox__chevron--open": y.value }]),
|
|
@@ -4208,8 +4276,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4208
4276
|
onClick: (e) => U(t),
|
|
4209
4277
|
onMouseenter: (e) => !t.disabled && (C.value = n)
|
|
4210
4278
|
}, [
|
|
4211
|
-
l("span",
|
|
4212
|
-
t.hint ? (x(), c("span",
|
|
4279
|
+
l("span", ao, k(t.label), 1),
|
|
4280
|
+
t.hint ? (x(), c("span", oo, k(t.hint), 1)) : s("", !0),
|
|
4213
4281
|
t.value === v.value ? (x(), o(e, {
|
|
4214
4282
|
key: 1,
|
|
4215
4283
|
icon: j(q),
|
|
@@ -4217,7 +4285,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4217
4285
|
class: "uid-combobox__check",
|
|
4218
4286
|
"aria-hidden": "true"
|
|
4219
4287
|
}, null, 8, ["icon"])) : s("", !0)
|
|
4220
|
-
], 42,
|
|
4288
|
+
], 42, io))), 128)) : s("", !0),
|
|
4221
4289
|
L.value ? (x(), c("button", {
|
|
4222
4290
|
key: 1,
|
|
4223
4291
|
id: `${j(P)}-${I.value.length}`,
|
|
@@ -4227,38 +4295,38 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4227
4295
|
"data-active": C.value === I.value.length ? "true" : void 0,
|
|
4228
4296
|
onClick: W,
|
|
4229
4297
|
onMouseenter: i[0] ||= (e) => C.value = I.value.length
|
|
4230
|
-
}, [l("span",
|
|
4231
|
-
I.value.length === 0 && !L.value ? (x(), c("div",
|
|
4232
|
-
], 8,
|
|
4298
|
+
}, [l("span", co, k(j(f).combobox.create(S.value)), 1)], 42, so)) : s("", !0),
|
|
4299
|
+
I.value.length === 0 && !L.value ? (x(), c("div", lo, k(m.value), 1)) : s("", !0)
|
|
4300
|
+
], 8, ro)) : s("", !0),
|
|
4233
4301
|
B.value ? (x(), c("p", {
|
|
4234
4302
|
key: 2,
|
|
4235
4303
|
class: _(["uid-combobox__hint", z.value && "uid-combobox__hint--error"])
|
|
4236
4304
|
}, k(B.value), 3)) : s("", !0)
|
|
4237
4305
|
], 2));
|
|
4238
4306
|
}
|
|
4239
|
-
}),
|
|
4307
|
+
}), fo = Symbol("UidTree"), po = [
|
|
4240
4308
|
"aria-expanded",
|
|
4241
4309
|
"aria-selected",
|
|
4242
4310
|
"aria-disabled"
|
|
4243
|
-
],
|
|
4311
|
+
], mo = ["tabindex"], ho = ["aria-label"], go = {
|
|
4244
4312
|
key: 1,
|
|
4245
4313
|
class: "uid-tree-item__chevron uid-tree-item__chevron--placeholder",
|
|
4246
4314
|
"aria-hidden": "true"
|
|
4247
|
-
},
|
|
4315
|
+
}, _o = ["aria-checked"], vo = {
|
|
4248
4316
|
key: 3,
|
|
4249
4317
|
class: "uid-tree-item__icon"
|
|
4250
|
-
},
|
|
4318
|
+
}, yo = { class: "uid-tree-item__label" }, bo = {
|
|
4251
4319
|
key: 0,
|
|
4252
4320
|
class: "uid-tree-item__children",
|
|
4253
4321
|
role: "group"
|
|
4254
|
-
},
|
|
4322
|
+
}, xo = /* @__PURE__ */ f({
|
|
4255
4323
|
__name: "UidTreeItem",
|
|
4256
4324
|
props: {
|
|
4257
4325
|
node: {},
|
|
4258
4326
|
level: {}
|
|
4259
4327
|
},
|
|
4260
4328
|
setup(n) {
|
|
4261
|
-
let r = n, i = p(
|
|
4329
|
+
let r = n, i = p(fo);
|
|
4262
4330
|
if (!i) throw Error("UidTreeItem must be used inside UidTree");
|
|
4263
4331
|
let u = i, f = $(), m = w(null), h = a(() => !!r.node.children && r.node.children.length > 0), y = a(() => u.isExpanded(r.node.key)), b = a(() => u.isSelected(r.node.key)), S = a(() => u.isChecked(r.node.key)), C = a(() => u.isIndeterminate(r.node.key)), E = a(() => u.disabled.value || !!r.node.disabled), O = a(() => u.focusedKey.value === r.node.key), A = a(() => E.value ? -1 : O.value || u.focusedKey.value === null && u.isFirst(r.node.key) ? 0 : -1);
|
|
4264
4332
|
R(O, (e) => {
|
|
@@ -4320,7 +4388,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4320
4388
|
}, [d(e, {
|
|
4321
4389
|
icon: j(X),
|
|
4322
4390
|
size: 14
|
|
4323
|
-
}, null, 8, ["icon"])], 10,
|
|
4391
|
+
}, null, 8, ["icon"])], 10, ho)) : (x(), c("span", go)),
|
|
4324
4392
|
j(u).checkable.value ? (x(), c("span", {
|
|
4325
4393
|
key: 2,
|
|
4326
4394
|
class: _(["uid-tree-item__check", {
|
|
@@ -4334,20 +4402,20 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4334
4402
|
key: 0,
|
|
4335
4403
|
icon: j(q),
|
|
4336
4404
|
size: 12
|
|
4337
|
-
}, null, 8, ["icon"])) : s("", !0)], 10,
|
|
4338
|
-
n.node.icon ? (x(), c("span",
|
|
4405
|
+
}, null, 8, ["icon"])) : s("", !0)], 10, _o)) : s("", !0),
|
|
4406
|
+
n.node.icon ? (x(), c("span", vo, [d(e, {
|
|
4339
4407
|
icon: n.node.icon,
|
|
4340
4408
|
size: 16
|
|
4341
4409
|
}, null, 8, ["icon"])])) : s("", !0),
|
|
4342
|
-
l("span",
|
|
4343
|
-
], 44,
|
|
4410
|
+
l("span", yo, k(n.node.label), 1)
|
|
4411
|
+
], 44, mo), h.value && y.value ? (x(), c("ul", bo, [(x(!0), c(t, null, T(n.node.children, (e) => (x(), o(a, {
|
|
4344
4412
|
key: e.key,
|
|
4345
4413
|
node: e,
|
|
4346
4414
|
level: n.level + 1
|
|
4347
|
-
}, null, 8, ["node", "level"]))), 128))])) : s("", !0)], 10,
|
|
4415
|
+
}, null, 8, ["node", "level"]))), 128))])) : s("", !0)], 10, po);
|
|
4348
4416
|
};
|
|
4349
4417
|
}
|
|
4350
|
-
}),
|
|
4418
|
+
}), So = /* @__PURE__ */ f({
|
|
4351
4419
|
__name: "UidTreeView",
|
|
4352
4420
|
props: /* @__PURE__ */ m({
|
|
4353
4421
|
nodes: {},
|
|
@@ -4490,7 +4558,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4490
4558
|
function P(e) {
|
|
4491
4559
|
return O.value.get(e) ?? null;
|
|
4492
4560
|
}
|
|
4493
|
-
return S(
|
|
4561
|
+
return S(fo, {
|
|
4494
4562
|
selectable: a(() => r.selectable),
|
|
4495
4563
|
checkable: a(() => r.checkable),
|
|
4496
4564
|
disabled: a(() => r.disabled),
|
|
@@ -4513,13 +4581,13 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4513
4581
|
}), (n, r) => (x(), c("ul", {
|
|
4514
4582
|
class: _(["uid-tree", { "uid-tree--guides": e.showGuides }]),
|
|
4515
4583
|
role: "tree"
|
|
4516
|
-
}, [(x(!0), c(t, null, T(e.nodes, (e) => (x(), o(
|
|
4584
|
+
}, [(x(!0), c(t, null, T(e.nodes, (e) => (x(), o(xo, {
|
|
4517
4585
|
key: e.key,
|
|
4518
4586
|
node: e,
|
|
4519
4587
|
level: 0
|
|
4520
4588
|
}, null, 8, ["node"]))), 128))], 2));
|
|
4521
4589
|
}
|
|
4522
|
-
}),
|
|
4590
|
+
}), Co = /* @__PURE__ */ f({
|
|
4523
4591
|
__name: "UidTimeline",
|
|
4524
4592
|
props: { alternate: {
|
|
4525
4593
|
type: Boolean,
|
|
@@ -4528,19 +4596,19 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4528
4596
|
setup(e) {
|
|
4529
4597
|
return (t, n) => (x(), c("ol", { class: _(["uid-timeline", { "uid-timeline--alternate": e.alternate }]) }, [E(t.$slots, "default")], 2));
|
|
4530
4598
|
}
|
|
4531
|
-
}),
|
|
4599
|
+
}), wo = { class: "uid-timeline-item__rail" }, To = { class: "uid-timeline-item__marker" }, Eo = { class: "uid-timeline-item__content" }, Do = {
|
|
4532
4600
|
key: 0,
|
|
4533
4601
|
class: "uid-timeline-item__time"
|
|
4534
|
-
},
|
|
4602
|
+
}, Oo = {
|
|
4535
4603
|
key: 1,
|
|
4536
4604
|
class: "uid-timeline-item__title"
|
|
4537
|
-
},
|
|
4605
|
+
}, ko = {
|
|
4538
4606
|
key: 2,
|
|
4539
4607
|
class: "uid-timeline-item__description"
|
|
4540
|
-
},
|
|
4608
|
+
}, Ao = {
|
|
4541
4609
|
key: 3,
|
|
4542
4610
|
class: "uid-timeline-item__description"
|
|
4543
|
-
},
|
|
4611
|
+
}, jo = /* @__PURE__ */ f({
|
|
4544
4612
|
__name: "UidTimelineItem",
|
|
4545
4613
|
props: {
|
|
4546
4614
|
title: {},
|
|
@@ -4550,37 +4618,37 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4550
4618
|
icon: {}
|
|
4551
4619
|
},
|
|
4552
4620
|
setup(t) {
|
|
4553
|
-
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",
|
|
4621
|
+
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", wo, [l("div", To, [E(n.$slots, "icon", {}, () => [t.icon ? (x(), o(e, {
|
|
4554
4622
|
key: 0,
|
|
4555
4623
|
icon: t.icon,
|
|
4556
4624
|
size: 14
|
|
4557
4625
|
}, null, 8, ["icon"])) : s("", !0)])]), r[0] ||= l("div", {
|
|
4558
4626
|
class: "uid-timeline-item__line",
|
|
4559
4627
|
"aria-hidden": "true"
|
|
4560
|
-
}, null, -1)]), l("div",
|
|
4561
|
-
t.time || n.$slots.time ? (x(), c("p",
|
|
4562
|
-
t.title ? (x(), c("h4",
|
|
4563
|
-
t.description && !n.$slots.default ? (x(), c("p",
|
|
4564
|
-
n.$slots.default ? (x(), c("div",
|
|
4628
|
+
}, null, -1)]), l("div", Eo, [
|
|
4629
|
+
t.time || n.$slots.time ? (x(), c("p", Do, [E(n.$slots, "time", {}, () => [u(k(t.time), 1)])])) : s("", !0),
|
|
4630
|
+
t.title ? (x(), c("h4", Oo, k(t.title), 1)) : s("", !0),
|
|
4631
|
+
t.description && !n.$slots.default ? (x(), c("p", ko, k(t.description), 1)) : s("", !0),
|
|
4632
|
+
n.$slots.default ? (x(), c("div", Ao, [E(n.$slots, "default")])) : s("", !0)
|
|
4565
4633
|
])], 2));
|
|
4566
4634
|
}
|
|
4567
|
-
}),
|
|
4635
|
+
}), Mo = ["for"], No = {
|
|
4568
4636
|
key: 0,
|
|
4569
4637
|
class: "uid-file-upload__required",
|
|
4570
4638
|
"aria-hidden": "true"
|
|
4571
|
-
},
|
|
4639
|
+
}, Po = ["aria-disabled", "aria-invalid"], Fo = { class: "uid-file-upload__primary-text" }, Io = ["innerHTML"], Lo = { class: "uid-file-upload__secondary-text" }, Ro = [
|
|
4572
4640
|
"id",
|
|
4573
4641
|
"multiple",
|
|
4574
4642
|
"accept",
|
|
4575
4643
|
"disabled",
|
|
4576
4644
|
"required"
|
|
4577
|
-
],
|
|
4645
|
+
], zo = {
|
|
4578
4646
|
key: 1,
|
|
4579
4647
|
class: "uid-file-upload__list"
|
|
4580
|
-
},
|
|
4648
|
+
}, Bo = { class: "uid-file-upload__file-info" }, Vo = { class: "uid-file-upload__file-name" }, Ho = { class: "uid-file-upload__file-meta" }, Uo = { key: 0 }, Wo = { key: 1 }, Go = {
|
|
4581
4649
|
key: 0,
|
|
4582
4650
|
class: "uid-file-upload__progress"
|
|
4583
|
-
},
|
|
4651
|
+
}, Ko = ["aria-label", "onClick"], qo = /* @__PURE__ */ f({
|
|
4584
4652
|
__name: "UidFileUpload",
|
|
4585
4653
|
props: /* @__PURE__ */ m({
|
|
4586
4654
|
multiple: {
|
|
@@ -4673,7 +4741,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4673
4741
|
key: 0,
|
|
4674
4742
|
for: j(b),
|
|
4675
4743
|
class: "uid-file-upload__label"
|
|
4676
|
-
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span",
|
|
4744
|
+
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", No, "*")) : s("", !0)], 8, Mo)) : s("", !0),
|
|
4677
4745
|
l("div", {
|
|
4678
4746
|
class: _(["uid-file-upload__dropzone", { "uid-file-upload__dropzone--active": y.value }]),
|
|
4679
4747
|
role: "button",
|
|
@@ -4692,8 +4760,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4692
4760
|
class: "uid-file-upload__icon",
|
|
4693
4761
|
"aria-hidden": "true"
|
|
4694
4762
|
}, null, 8, ["icon"]),
|
|
4695
|
-
l("p",
|
|
4696
|
-
l("p",
|
|
4763
|
+
l("p", Fo, [l("span", { innerHTML: f.value }, null, 8, Io)]),
|
|
4764
|
+
l("p", Lo, k(p.value), 1),
|
|
4697
4765
|
l("input", {
|
|
4698
4766
|
id: j(b),
|
|
4699
4767
|
ref_key: "inputRef",
|
|
@@ -4707,9 +4775,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4707
4775
|
disabled: n.disabled,
|
|
4708
4776
|
required: n.required,
|
|
4709
4777
|
onChange: A
|
|
4710
|
-
}, null, 40,
|
|
4711
|
-
], 42,
|
|
4712
|
-
h.value.length > 0 ? (x(), c("ul",
|
|
4778
|
+
}, null, 40, Ro)
|
|
4779
|
+
], 42, Po),
|
|
4780
|
+
h.value.length > 0 ? (x(), c("ul", zo, [(x(!0), c(t, null, T(h.value, (t) => (x(), c("li", {
|
|
4713
4781
|
key: t.id,
|
|
4714
4782
|
class: _(["uid-file-upload__item", { "uid-file-upload__item--error": t.error }])
|
|
4715
4783
|
}, [
|
|
@@ -4719,10 +4787,10 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4719
4787
|
class: "uid-file-upload__file-icon",
|
|
4720
4788
|
"aria-hidden": "true"
|
|
4721
4789
|
}, null, 8, ["icon"]),
|
|
4722
|
-
l("div",
|
|
4723
|
-
l("div",
|
|
4724
|
-
l("div",
|
|
4725
|
-
t.progress !== void 0 && !t.error ? (x(), c("div",
|
|
4790
|
+
l("div", Bo, [
|
|
4791
|
+
l("div", Vo, k(t.file.name), 1),
|
|
4792
|
+
l("div", Ho, [l("span", null, k(E(t.file.size)), 1), t.error ? (x(), c("span", Uo, "— " + k(t.error), 1)) : t.progress === void 0 ? s("", !0) : (x(), c("span", Wo, "— " + k(t.progress) + "%", 1))]),
|
|
4793
|
+
t.progress !== void 0 && !t.error ? (x(), c("div", Go, [l("div", {
|
|
4726
4794
|
class: "uid-file-upload__progress-bar",
|
|
4727
4795
|
style: v({ width: `${t.progress}%` })
|
|
4728
4796
|
}, null, 4)])) : s("", !0)
|
|
@@ -4735,7 +4803,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4735
4803
|
}, [d(e, {
|
|
4736
4804
|
icon: j(_e),
|
|
4737
4805
|
size: 16
|
|
4738
|
-
}, null, 8, ["icon"])], 8,
|
|
4806
|
+
}, null, 8, ["icon"])], 8, Ko)
|
|
4739
4807
|
], 2))), 128))])) : s("", !0),
|
|
4740
4808
|
C.value ? (x(), c("p", {
|
|
4741
4809
|
key: 2,
|
|
@@ -4743,17 +4811,17 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4743
4811
|
}, k(C.value), 3)) : s("", !0)
|
|
4744
4812
|
], 2));
|
|
4745
4813
|
}
|
|
4746
|
-
}),
|
|
4814
|
+
}), Jo = {
|
|
4747
4815
|
key: 0,
|
|
4748
4816
|
class: "uid-code uid-code--inline"
|
|
4749
|
-
},
|
|
4817
|
+
}, Yo = {
|
|
4750
4818
|
key: 0,
|
|
4751
4819
|
class: "uid-code__header"
|
|
4752
|
-
},
|
|
4820
|
+
}, Xo = { class: "uid-code__lang" }, Zo = ["aria-label"], Qo = { class: "uid-code__body" }, $o = {
|
|
4753
4821
|
key: 0,
|
|
4754
4822
|
class: "uid-code__line-numbers",
|
|
4755
4823
|
"aria-hidden": "true"
|
|
4756
|
-
},
|
|
4824
|
+
}, es = { class: "uid-code__pre" }, ts = /* @__PURE__ */ f({
|
|
4757
4825
|
__name: "UidCode",
|
|
4758
4826
|
props: {
|
|
4759
4827
|
code: { default: "" },
|
|
@@ -4785,14 +4853,14 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4785
4853
|
}, 1500);
|
|
4786
4854
|
} catch {}
|
|
4787
4855
|
}
|
|
4788
|
-
return (i, a) => n.inline ? (x(), c("code",
|
|
4856
|
+
return (i, a) => n.inline ? (x(), c("code", Jo, [E(i.$slots, "default", {}, () => [u(k(n.code), 1)])])) : (x(), c("div", {
|
|
4789
4857
|
key: 1,
|
|
4790
4858
|
class: _(["uid-code", {
|
|
4791
4859
|
"uid-code--minimal": !p.value,
|
|
4792
4860
|
"uid-code--wrap": n.wrap
|
|
4793
4861
|
}]),
|
|
4794
4862
|
style: v(n.maxHeight ? { "--uid-code-max-height": n.maxHeight } : void 0)
|
|
4795
|
-
}, [p.value ? (x(), c("div",
|
|
4863
|
+
}, [p.value ? (x(), c("div", Yo, [l("span", Xo, k(n.language || ""), 1), n.copy ? (x(), c("button", {
|
|
4796
4864
|
key: 0,
|
|
4797
4865
|
type: "button",
|
|
4798
4866
|
class: _(["uid-code__copy", { "uid-code__copy--copied": o.value }]),
|
|
@@ -4802,30 +4870,30 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4802
4870
|
icon: o.value ? j(q) : j(oe),
|
|
4803
4871
|
size: 12,
|
|
4804
4872
|
"aria-hidden": "true"
|
|
4805
|
-
}, null, 8, ["icon"]), l("span", null, k(o.value ? j(r).copy.copied : j(r).copy.copy), 1)], 10,
|
|
4873
|
+
}, null, 8, ["icon"]), l("span", null, k(o.value ? j(r).copy.copied : j(r).copy.copy), 1)], 10, Zo)) : s("", !0)])) : s("", !0), l("div", Qo, [n.lineNumbers ? (x(), c("div", $o, [(x(!0), c(t, null, T(f.value, (e, t) => (x(), c("span", {
|
|
4806
4874
|
key: t,
|
|
4807
4875
|
class: "uid-code__line-number"
|
|
4808
|
-
}, k(t + 1), 1))), 128))])) : s("", !0), l("pre",
|
|
4876
|
+
}, k(t + 1), 1))), 128))])) : s("", !0), l("pre", es, [l("code", null, [E(i.$slots, "default", {}, () => [u(k(n.code), 1)])])])])], 6));
|
|
4809
4877
|
}
|
|
4810
|
-
}),
|
|
4878
|
+
}), ns = [
|
|
4811
4879
|
"aria-valuemax",
|
|
4812
4880
|
"aria-valuenow",
|
|
4813
4881
|
"aria-readonly",
|
|
4814
4882
|
"aria-disabled",
|
|
4815
4883
|
"aria-label"
|
|
4816
|
-
],
|
|
4884
|
+
], rs = [
|
|
4817
4885
|
"tabindex",
|
|
4818
4886
|
"aria-label",
|
|
4819
4887
|
"onClick",
|
|
4820
4888
|
"onMousemove",
|
|
4821
4889
|
"onKeydown"
|
|
4822
|
-
],
|
|
4890
|
+
], is = {
|
|
4823
4891
|
class: "uid-rating__icon",
|
|
4824
4892
|
"aria-hidden": "true"
|
|
4825
|
-
},
|
|
4893
|
+
}, as = ["data-half"], os = {
|
|
4826
4894
|
key: 0,
|
|
4827
4895
|
class: "uid-rating__label"
|
|
4828
|
-
},
|
|
4896
|
+
}, ss = /* @__PURE__ */ f({
|
|
4829
4897
|
__name: "UidRating",
|
|
4830
4898
|
props: /* @__PURE__ */ m({
|
|
4831
4899
|
max: { default: 5 },
|
|
@@ -4929,21 +4997,21 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
4929
4997
|
onClick: (e) => y(e, t),
|
|
4930
4998
|
onMousemove: (e) => b(e, t),
|
|
4931
4999
|
onKeydown: (e) => C(e, t)
|
|
4932
|
-
}, [l("span",
|
|
5000
|
+
}, [l("span", is, [d(e, { icon: h.value }, null, 8, ["icon"])]), g(t).full ? (x(), c("span", {
|
|
4933
5001
|
key: 0,
|
|
4934
5002
|
class: "uid-rating__icon uid-rating__icon--filled",
|
|
4935
5003
|
"data-half": g(t).half ? "true" : "false",
|
|
4936
5004
|
"aria-hidden": "true"
|
|
4937
|
-
}, [d(e, { icon: h.value }, null, 8, ["icon"])], 8,
|
|
5005
|
+
}, [d(e, { icon: h.value }, null, 8, ["icon"])], 8, as)) : s("", !0)], 40, rs))), 128)), n.showLabel ? (x(), c("span", os, k(u.value.toFixed(+!!n.allowHalf)) + " / " + k(n.max), 1)) : s("", !0)], 42, ns));
|
|
4938
5006
|
}
|
|
4939
|
-
}),
|
|
5007
|
+
}), cs = [
|
|
4940
5008
|
"tabindex",
|
|
4941
5009
|
"aria-orientation",
|
|
4942
5010
|
"aria-valuemin",
|
|
4943
5011
|
"aria-valuemax",
|
|
4944
5012
|
"aria-valuenow",
|
|
4945
5013
|
"aria-disabled"
|
|
4946
|
-
],
|
|
5014
|
+
], ls = { class: "uid-splitter__pane uid-splitter__pane--end" }, us = /* @__PURE__ */ f({
|
|
4947
5015
|
__name: "UidSplitter",
|
|
4948
5016
|
props: /* @__PURE__ */ m({
|
|
4949
5017
|
direction: { default: "horizontal" },
|
|
@@ -5021,27 +5089,27 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5021
5089
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
5022
5090
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
5023
5091
|
l("span", { class: "uid-splitter__grip-dot" })
|
|
5024
|
-
], -1)]], 40,
|
|
5025
|
-
l("div",
|
|
5092
|
+
], -1)]], 40, cs),
|
|
5093
|
+
l("div", ls, [E(t.$slots, "end")])
|
|
5026
5094
|
], 2));
|
|
5027
5095
|
}
|
|
5028
|
-
}),
|
|
5096
|
+
}), ds = {
|
|
5029
5097
|
key: 0,
|
|
5030
5098
|
class: "uid-stat__icon",
|
|
5031
5099
|
"aria-hidden": "true"
|
|
5032
|
-
},
|
|
5100
|
+
}, fs = { class: "uid-stat__body" }, ps = {
|
|
5033
5101
|
key: 0,
|
|
5034
5102
|
class: "uid-stat__title"
|
|
5035
|
-
},
|
|
5103
|
+
}, ms = { class: "uid-stat__value-row" }, hs = { class: "uid-stat__value" }, gs = {
|
|
5036
5104
|
key: 0,
|
|
5037
5105
|
class: "uid-stat__prefix"
|
|
5038
|
-
},
|
|
5106
|
+
}, _s = {
|
|
5039
5107
|
key: 1,
|
|
5040
5108
|
class: "uid-stat__suffix"
|
|
5041
|
-
},
|
|
5109
|
+
}, vs = {
|
|
5042
5110
|
key: 1,
|
|
5043
5111
|
class: "uid-stat__footer"
|
|
5044
|
-
},
|
|
5112
|
+
}, ys = /* @__PURE__ */ f({
|
|
5045
5113
|
__name: "UidStat",
|
|
5046
5114
|
props: {
|
|
5047
5115
|
title: {},
|
|
@@ -5067,16 +5135,16 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5067
5135
|
`uid-stat--${t.tone}`,
|
|
5068
5136
|
t.variant === "ghost" && "uid-stat--ghost",
|
|
5069
5137
|
t.loading && "uid-stat--loading"
|
|
5070
|
-
]]) }, [t.icon || n.$slots.icon ? (x(), c("span",
|
|
5138
|
+
]]) }, [t.icon || n.$slots.icon ? (x(), c("span", ds, [E(n.$slots, "icon", {}, () => [t.icon ? (x(), o(e, {
|
|
5071
5139
|
key: 0,
|
|
5072
5140
|
icon: t.icon,
|
|
5073
5141
|
size: 20
|
|
5074
|
-
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div",
|
|
5075
|
-
t.title ? (x(), c("p",
|
|
5076
|
-
l("div",
|
|
5077
|
-
t.prefix ? (x(), c("span",
|
|
5142
|
+
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div", fs, [
|
|
5143
|
+
t.title ? (x(), c("p", ps, k(t.title), 1)) : s("", !0),
|
|
5144
|
+
l("div", ms, [l("span", hs, [E(n.$slots, "value", {}, () => [
|
|
5145
|
+
t.prefix ? (x(), c("span", gs, k(t.prefix), 1)) : s("", !0),
|
|
5078
5146
|
l("span", null, k(r.value), 1),
|
|
5079
|
-
t.suffix ? (x(), c("span",
|
|
5147
|
+
t.suffix ? (x(), c("span", _s, k(t.suffix), 1)) : s("", !0)
|
|
5080
5148
|
])]), t.trend !== void 0 || n.$slots.trend ? (x(), c("span", {
|
|
5081
5149
|
key: 0,
|
|
5082
5150
|
class: _(["uid-stat__trend", i.value && `uid-stat__trend--${i.value}`])
|
|
@@ -5085,13 +5153,13 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5085
5153
|
icon: d.value,
|
|
5086
5154
|
size: 12
|
|
5087
5155
|
}, null, 8, ["icon"])) : s("", !0), l("span", null, k(f.value), 1)])], 2)) : s("", !0)]),
|
|
5088
|
-
t.footer || n.$slots.footer ? (x(), c("p",
|
|
5156
|
+
t.footer || n.$slots.footer ? (x(), c("p", vs, [E(n.$slots, "footer", {}, () => [u(k(t.footer), 1)])])) : s("", !0)
|
|
5089
5157
|
])], 2));
|
|
5090
5158
|
}
|
|
5091
|
-
}),
|
|
5159
|
+
}), bs = Symbol("UidDescriptionList"), xs = {
|
|
5092
5160
|
key: 0,
|
|
5093
5161
|
class: "uid-description-list__title"
|
|
5094
|
-
},
|
|
5162
|
+
}, Ss = /* @__PURE__ */ f({
|
|
5095
5163
|
__name: "UidDescriptionList",
|
|
5096
5164
|
props: {
|
|
5097
5165
|
title: {},
|
|
@@ -5106,7 +5174,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5106
5174
|
},
|
|
5107
5175
|
setup(e) {
|
|
5108
5176
|
let t = e;
|
|
5109
|
-
S(
|
|
5177
|
+
S(bs, {
|
|
5110
5178
|
direction: a(() => t.direction),
|
|
5111
5179
|
bordered: a(() => t.bordered)
|
|
5112
5180
|
});
|
|
@@ -5118,12 +5186,12 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5118
5186
|
`uid-description-list--${e.direction}`,
|
|
5119
5187
|
`uid-description-list--${e.size}`,
|
|
5120
5188
|
e.bordered && "uid-description-list--bordered"
|
|
5121
|
-
]]) }, [e.title || t.$slots.title ? (x(), c("h3",
|
|
5189
|
+
]]) }, [e.title || t.$slots.title ? (x(), c("h3", xs, [E(t.$slots, "title", {}, () => [u(k(e.title), 1)])])) : s("", !0), l("dl", {
|
|
5122
5190
|
class: "uid-description-list__grid",
|
|
5123
5191
|
style: v(n.value)
|
|
5124
5192
|
}, [E(t.$slots, "default")], 4)], 2));
|
|
5125
5193
|
}
|
|
5126
|
-
}),
|
|
5194
|
+
}), Cs = { class: "uid-description-item__label" }, ws = { class: "uid-description-item__value" }, Ts = ["aria-label"], Es = /* @__PURE__ */ f({
|
|
5127
5195
|
__name: "UidDescriptionItem",
|
|
5128
5196
|
props: {
|
|
5129
5197
|
label: {},
|
|
@@ -5136,7 +5204,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5136
5204
|
},
|
|
5137
5205
|
setup(t) {
|
|
5138
5206
|
let n = $(), r = t;
|
|
5139
|
-
P(), p(
|
|
5207
|
+
P(), p(bs, null);
|
|
5140
5208
|
let i = w(null), o = w(!1), f = a(() => ({ "--uid-desc-span": r.span }));
|
|
5141
5209
|
async function m() {
|
|
5142
5210
|
let e = r.copyValue ?? i.value?.querySelector(".uid-description-item__value")?.textContent?.trim() ?? "";
|
|
@@ -5151,7 +5219,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5151
5219
|
ref: i,
|
|
5152
5220
|
class: "uid-description-item",
|
|
5153
5221
|
style: v(f.value)
|
|
5154
|
-
}, [l("dt",
|
|
5222
|
+
}, [l("dt", Cs, [E(r.$slots, "label", {}, () => [u(k(t.label), 1)])]), l("dd", ws, [E(r.$slots, "default"), t.copyable ? (x(), c("button", {
|
|
5155
5223
|
key: 0,
|
|
5156
5224
|
type: "button",
|
|
5157
5225
|
class: _(["uid-description-item__copy", { "uid-description-item__copy--copied": o.value }]),
|
|
@@ -5160,24 +5228,24 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5160
5228
|
}, [d(e, {
|
|
5161
5229
|
icon: o.value ? j(q) : j(oe),
|
|
5162
5230
|
size: 12
|
|
5163
|
-
}, null, 8, ["icon"])], 10,
|
|
5231
|
+
}, null, 8, ["icon"])], 10, Ts)) : s("", !0)])], 4));
|
|
5164
5232
|
}
|
|
5165
|
-
}),
|
|
5233
|
+
}), Ds = {
|
|
5166
5234
|
class: "uid-pattern-result__icon",
|
|
5167
5235
|
"aria-hidden": "true"
|
|
5168
|
-
},
|
|
5236
|
+
}, Os = {
|
|
5169
5237
|
key: 0,
|
|
5170
5238
|
class: "uid-pattern-result__title"
|
|
5171
|
-
},
|
|
5239
|
+
}, ks = {
|
|
5172
5240
|
key: 1,
|
|
5173
5241
|
class: "uid-pattern-result__description"
|
|
5174
|
-
},
|
|
5242
|
+
}, As = {
|
|
5175
5243
|
key: 2,
|
|
5176
5244
|
class: "uid-pattern-result__content"
|
|
5177
|
-
},
|
|
5245
|
+
}, js = {
|
|
5178
5246
|
key: 3,
|
|
5179
5247
|
class: "uid-pattern-result__actions"
|
|
5180
|
-
},
|
|
5248
|
+
}, Ms = /* @__PURE__ */ f({
|
|
5181
5249
|
__name: "UidResult",
|
|
5182
5250
|
props: {
|
|
5183
5251
|
status: { default: "success" },
|
|
@@ -5199,17 +5267,17 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5199
5267
|
class: _(["uid-pattern-result", [`uid-pattern-result--${t.status}`, t.compact && "uid-pattern-result--compact"]]),
|
|
5200
5268
|
role: "status"
|
|
5201
5269
|
}, [
|
|
5202
|
-
l("div",
|
|
5270
|
+
l("div", Ds, [E(n.$slots, "icon", {}, () => [d(e, {
|
|
5203
5271
|
icon: i.value,
|
|
5204
5272
|
size: t.compact ? 32 : 40
|
|
5205
5273
|
}, null, 8, ["icon", "size"])])]),
|
|
5206
|
-
t.title || n.$slots.title ? (x(), c("h2",
|
|
5207
|
-
t.description || n.$slots.description ? (x(), c("p",
|
|
5208
|
-
n.$slots.default ? (x(), c("div",
|
|
5209
|
-
n.$slots.actions ? (x(), c("div",
|
|
5274
|
+
t.title || n.$slots.title ? (x(), c("h2", Os, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])])) : s("", !0),
|
|
5275
|
+
t.description || n.$slots.description ? (x(), c("p", ks, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0),
|
|
5276
|
+
n.$slots.default ? (x(), c("div", As, [E(n.$slots, "default")])) : s("", !0),
|
|
5277
|
+
n.$slots.actions ? (x(), c("div", js, [E(n.$slots, "actions")])) : s("", !0)
|
|
5210
5278
|
], 2));
|
|
5211
5279
|
}
|
|
5212
|
-
}),
|
|
5280
|
+
}), Ns = ["aria-label"], Ps = /* @__PURE__ */ f({
|
|
5213
5281
|
__name: "UidBackTop",
|
|
5214
5282
|
props: {
|
|
5215
5283
|
visibleAfter: { default: 200 },
|
|
@@ -5257,11 +5325,11 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5257
5325
|
}, [E(t.$slots, "default", {}, () => [d(e, {
|
|
5258
5326
|
icon: j(K),
|
|
5259
5327
|
size: 20
|
|
5260
|
-
}, null, 8, ["icon"])])], 8,
|
|
5328
|
+
}, null, 8, ["icon"])])], 8, Ns), [[L, f.value]])]),
|
|
5261
5329
|
_: 3
|
|
5262
5330
|
}));
|
|
5263
5331
|
}
|
|
5264
|
-
}),
|
|
5332
|
+
}), Fs = { class: "uid-affix__content" }, Is = /* @__PURE__ */ f({
|
|
5265
5333
|
__name: "UidAffix",
|
|
5266
5334
|
props: {
|
|
5267
5335
|
offsetTop: {},
|
|
@@ -5291,9 +5359,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5291
5359
|
ref: o,
|
|
5292
5360
|
class: "uid-affix__sentinel",
|
|
5293
5361
|
"aria-hidden": "true"
|
|
5294
|
-
}, null, 512), l("div",
|
|
5362
|
+
}, null, 512), l("div", Fs, [E(e.$slots, "default")])], 6));
|
|
5295
5363
|
}
|
|
5296
|
-
}),
|
|
5364
|
+
}), Ls = { class: "uid-watermark" }, Rs = { class: "uid-watermark__content" }, zs = /* @__PURE__ */ f({
|
|
5297
5365
|
__name: "UidWatermark",
|
|
5298
5366
|
props: {
|
|
5299
5367
|
content: { default: "" },
|
|
@@ -5340,27 +5408,27 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5340
5408
|
i();
|
|
5341
5409
|
}), b(() => {
|
|
5342
5410
|
n.value = "";
|
|
5343
|
-
}), (e, t) => (x(), c("div",
|
|
5411
|
+
}), (e, t) => (x(), c("div", Ls, [l("div", {
|
|
5344
5412
|
class: "uid-watermark__overlay",
|
|
5345
5413
|
style: v(o.value),
|
|
5346
5414
|
"aria-hidden": "true"
|
|
5347
|
-
}, null, 4), l("div",
|
|
5415
|
+
}, null, 4), l("div", Rs, [E(e.$slots, "default")])]));
|
|
5348
5416
|
}
|
|
5349
|
-
}),
|
|
5417
|
+
}), Bs = {
|
|
5350
5418
|
class: "uid-anchor",
|
|
5351
5419
|
"aria-label": "Содержание"
|
|
5352
|
-
},
|
|
5420
|
+
}, Vs = { class: "uid-anchor__list" }, Hs = [
|
|
5353
5421
|
"href",
|
|
5354
5422
|
"aria-current",
|
|
5355
5423
|
"onClick"
|
|
5356
|
-
],
|
|
5424
|
+
], Us = {
|
|
5357
5425
|
key: 0,
|
|
5358
5426
|
class: "uid-anchor__sublist"
|
|
5359
|
-
},
|
|
5427
|
+
}, Ws = [
|
|
5360
5428
|
"href",
|
|
5361
5429
|
"aria-current",
|
|
5362
5430
|
"onClick"
|
|
5363
|
-
],
|
|
5431
|
+
], Gs = /* @__PURE__ */ f({
|
|
5364
5432
|
__name: "UidAnchor",
|
|
5365
5433
|
props: /* @__PURE__ */ m({
|
|
5366
5434
|
items: {},
|
|
@@ -5424,7 +5492,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5424
5492
|
behavior: r.smooth ? "smooth" : "auto"
|
|
5425
5493
|
});
|
|
5426
5494
|
}
|
|
5427
|
-
return (n, r) => (x(), c("nav",
|
|
5495
|
+
return (n, r) => (x(), c("nav", Bs, [l("ul", Vs, [(x(!0), c(t, null, T(e.items, (e) => (x(), c("li", {
|
|
5428
5496
|
key: e.key,
|
|
5429
5497
|
class: "uid-anchor__item"
|
|
5430
5498
|
}, [l("a", {
|
|
@@ -5432,7 +5500,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5432
5500
|
class: _(["uid-anchor__link", { "uid-anchor__link--active": a.value === e.key }]),
|
|
5433
5501
|
"aria-current": a.value === e.key ? "location" : void 0,
|
|
5434
5502
|
onClick: (t) => m(t, e)
|
|
5435
|
-
}, k(e.title), 11,
|
|
5503
|
+
}, k(e.title), 11, Hs), e.children?.length ? (x(), c("ul", Us, [(x(!0), c(t, null, T(e.children, (e) => (x(), c("li", {
|
|
5436
5504
|
key: e.key,
|
|
5437
5505
|
class: "uid-anchor__item"
|
|
5438
5506
|
}, [l("a", {
|
|
@@ -5440,18 +5508,18 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5440
5508
|
class: _(["uid-anchor__link", { "uid-anchor__link--active": a.value === e.key }]),
|
|
5441
5509
|
"aria-current": a.value === e.key ? "location" : void 0,
|
|
5442
5510
|
onClick: (t) => m(t, e)
|
|
5443
|
-
}, k(e.title), 11,
|
|
5511
|
+
}, k(e.title), 11, Ws)]))), 128))])) : s("", !0)]))), 128))])]));
|
|
5444
5512
|
}
|
|
5445
|
-
}),
|
|
5513
|
+
}), Ks = ["aria-label"], qs = {
|
|
5446
5514
|
key: 0,
|
|
5447
5515
|
class: "uid-tour__title"
|
|
5448
|
-
},
|
|
5516
|
+
}, Js = {
|
|
5449
5517
|
key: 1,
|
|
5450
5518
|
class: "uid-tour__description"
|
|
5451
|
-
},
|
|
5519
|
+
}, Ys = { class: "uid-tour__footer" }, Xs = {
|
|
5452
5520
|
key: 0,
|
|
5453
5521
|
class: "uid-tour__progress"
|
|
5454
|
-
},
|
|
5522
|
+
}, Zs = { key: 1 }, Qs = { class: "uid-tour__actions" }, $s = /* @__PURE__ */ f({
|
|
5455
5523
|
__name: "UidTour",
|
|
5456
5524
|
props: /* @__PURE__ */ m({
|
|
5457
5525
|
steps: {},
|
|
@@ -5590,9 +5658,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5590
5658
|
class: _(["uid-tour__popover", { "uid-tour__popover--center": F.value }]),
|
|
5591
5659
|
style: v(F.value ? void 0 : P.value)
|
|
5592
5660
|
}, [
|
|
5593
|
-
D.value.title ? (x(), c("h3",
|
|
5594
|
-
D.value.description ? (x(), c("p",
|
|
5595
|
-
l("div",
|
|
5661
|
+
D.value.title ? (x(), c("h3", qs, k(D.value.title), 1)) : s("", !0),
|
|
5662
|
+
D.value.description ? (x(), c("p", Js, k(D.value.description), 1)) : s("", !0),
|
|
5663
|
+
l("div", Ys, [e.showProgress ? (x(), c("span", Xs, k(y.value + 1) + " / " + k(e.steps.length), 1)) : (x(), c("span", Zs)), l("div", Qs, [
|
|
5596
5664
|
e.showSkip && y.value < e.steps.length - 1 ? (x(), c("button", {
|
|
5597
5665
|
key: 0,
|
|
5598
5666
|
type: "button",
|
|
@@ -5612,21 +5680,21 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5612
5680
|
}, k(y.value === e.steps.length - 1 ? f.value : u.value), 1)
|
|
5613
5681
|
])])
|
|
5614
5682
|
], 6)
|
|
5615
|
-
], 8,
|
|
5683
|
+
], 8, Ks)) : s("", !0)]));
|
|
5616
5684
|
}
|
|
5617
|
-
}),
|
|
5685
|
+
}), ec = ["for"], tc = [
|
|
5618
5686
|
"id",
|
|
5619
5687
|
"value",
|
|
5620
5688
|
"placeholder",
|
|
5621
5689
|
"rows",
|
|
5622
5690
|
"disabled"
|
|
5623
|
-
],
|
|
5691
|
+
], nc = ["onMousedown", "onMouseenter"], rc = { class: "uid-mention__option-label" }, ic = {
|
|
5624
5692
|
key: 0,
|
|
5625
5693
|
class: "uid-mention__option-hint"
|
|
5626
|
-
},
|
|
5694
|
+
}, ac = {
|
|
5627
5695
|
key: 0,
|
|
5628
5696
|
class: "uid-mention__empty"
|
|
5629
|
-
},
|
|
5697
|
+
}, oc = /* @__PURE__ */ f({
|
|
5630
5698
|
__name: "UidMention",
|
|
5631
5699
|
props: /* @__PURE__ */ m({
|
|
5632
5700
|
options: {},
|
|
@@ -5704,7 +5772,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5704
5772
|
key: 0,
|
|
5705
5773
|
for: j(p),
|
|
5706
5774
|
class: "uid-mention__label"
|
|
5707
|
-
}, k(e.label), 9,
|
|
5775
|
+
}, k(e.label), 9, ec)) : s("", !0),
|
|
5708
5776
|
l("textarea", {
|
|
5709
5777
|
id: j(p),
|
|
5710
5778
|
ref_key: "fieldRef",
|
|
@@ -5719,7 +5787,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5719
5787
|
onKeydown: L,
|
|
5720
5788
|
onKeyup: O,
|
|
5721
5789
|
onBlur: r[0] ||= (e) => m.value = !1
|
|
5722
|
-
}, null, 40,
|
|
5790
|
+
}, null, 40, tc),
|
|
5723
5791
|
m.value ? (x(), c("div", {
|
|
5724
5792
|
key: 1,
|
|
5725
5793
|
class: "uid-mention__dropdown",
|
|
@@ -5730,30 +5798,30 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5730
5798
|
class: _(["uid-mention__option", { "uid-mention__option--active": t === y.value }]),
|
|
5731
5799
|
onMousedown: H((t) => P(e), ["prevent"]),
|
|
5732
5800
|
onMouseenter: (e) => y.value = t
|
|
5733
|
-
}, [l("span",
|
|
5801
|
+
}, [l("span", rc, k(e.label), 1), e.hint ? (x(), c("span", ic, k(e.hint), 1)) : s("", !0)], 42, nc))), 128)), D.value.length === 0 ? (x(), c("div", ac, k(o.value), 1)) : s("", !0)], 4)) : s("", !0)
|
|
5734
5802
|
], 2));
|
|
5735
5803
|
}
|
|
5736
|
-
}),
|
|
5804
|
+
}), sc = ["for"], cc = {
|
|
5737
5805
|
key: 0,
|
|
5738
5806
|
class: "uid-tree-select__required",
|
|
5739
5807
|
"aria-hidden": "true"
|
|
5740
|
-
},
|
|
5808
|
+
}, lc = [
|
|
5741
5809
|
"id",
|
|
5742
5810
|
"aria-expanded",
|
|
5743
5811
|
"aria-controls",
|
|
5744
5812
|
"aria-label",
|
|
5745
5813
|
"aria-disabled",
|
|
5746
5814
|
"aria-invalid"
|
|
5747
|
-
],
|
|
5815
|
+
], uc = { class: "uid-tree-select__value" }, dc = ["aria-label", "onClick"], fc = {
|
|
5748
5816
|
key: 0,
|
|
5749
5817
|
class: "uid-tree-select__chip"
|
|
5750
|
-
},
|
|
5818
|
+
}, pc = {
|
|
5751
5819
|
key: 1,
|
|
5752
5820
|
class: "uid-tree-select__placeholder"
|
|
5753
|
-
},
|
|
5821
|
+
}, mc = { key: 0 }, hc = {
|
|
5754
5822
|
key: 1,
|
|
5755
5823
|
class: "uid-tree-select__placeholder"
|
|
5756
|
-
},
|
|
5824
|
+
}, gc = { class: "uid-tree-select__suffix" }, _c = ["aria-label"], vc = ["id"], yc = /* @__PURE__ */ f({
|
|
5757
5825
|
__name: "UidTreeSelect",
|
|
5758
5826
|
props: /* @__PURE__ */ m({
|
|
5759
5827
|
nodes: {},
|
|
@@ -5846,7 +5914,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5846
5914
|
key: 0,
|
|
5847
5915
|
for: j(S),
|
|
5848
5916
|
class: "uid-tree-select__label"
|
|
5849
|
-
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span",
|
|
5917
|
+
}, [u(k(n.label) + " ", 1), n.required ? (x(), c("span", cc, "*")) : s("", !0)], 8, sc)) : s("", !0),
|
|
5850
5918
|
l("div", {
|
|
5851
5919
|
id: j(S),
|
|
5852
5920
|
ref_key: "triggerRef",
|
|
@@ -5862,7 +5930,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5862
5930
|
"aria-invalid": E.value ? "true" : void 0,
|
|
5863
5931
|
onClick: V,
|
|
5864
5932
|
onKeydown: ee
|
|
5865
|
-
}, [l("div",
|
|
5933
|
+
}, [l("div", uc, [n.multiple ? (x(), c(t, { key: 0 }, [
|
|
5866
5934
|
(x(!0), c(t, null, T(I.value, (e) => (x(), c("span", {
|
|
5867
5935
|
key: e.key,
|
|
5868
5936
|
class: "uid-tree-select__chip"
|
|
@@ -5871,10 +5939,10 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5871
5939
|
class: "uid-tree-select__chip-remove",
|
|
5872
5940
|
"aria-label": j(o).treeSelect.removeTag(e.label),
|
|
5873
5941
|
onClick: H((t) => G(t, e.key), ["stop"])
|
|
5874
|
-
}, "×", 8,
|
|
5875
|
-
L.value > 0 ? (x(), c("span",
|
|
5876
|
-
F.value.length === 0 ? (x(), c("span",
|
|
5877
|
-
], 64)) : (x(), c(t, { key: 1 }, [F.value.length > 0 ? (x(), c("span",
|
|
5942
|
+
}, "×", 8, dc)]))), 128)),
|
|
5943
|
+
L.value > 0 ? (x(), c("span", fc, "+" + k(L.value), 1)) : s("", !0),
|
|
5944
|
+
F.value.length === 0 ? (x(), c("span", pc, k(f.value), 1)) : s("", !0)
|
|
5945
|
+
], 64)) : (x(), c(t, { key: 1 }, [F.value.length > 0 ? (x(), c("span", mc, k(F.value[0].label), 1)) : (x(), c("span", hc, k(f.value), 1))], 64))]), l("div", gc, [n.clearable && P.value.length > 0 ? (x(), c("button", {
|
|
5878
5946
|
key: 0,
|
|
5879
5947
|
type: "button",
|
|
5880
5948
|
class: "uid-tree-select__clear",
|
|
@@ -5883,17 +5951,17 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5883
5951
|
}, [d(e, {
|
|
5884
5952
|
icon: j(_e),
|
|
5885
5953
|
size: 14
|
|
5886
|
-
}, null, 8, ["icon"])], 8,
|
|
5954
|
+
}, null, 8, ["icon"])], 8, _c)) : s("", !0), d(e, {
|
|
5887
5955
|
icon: j(Y),
|
|
5888
5956
|
size: 16,
|
|
5889
5957
|
class: _(["uid-tree-select__chevron", { "uid-tree-select__chevron--open": g.value }]),
|
|
5890
5958
|
"aria-hidden": "true"
|
|
5891
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
5959
|
+
}, null, 8, ["icon", "class"])])], 40, lc),
|
|
5892
5960
|
g.value ? (x(), c("div", {
|
|
5893
5961
|
key: 1,
|
|
5894
5962
|
id: j(C),
|
|
5895
5963
|
class: "uid-tree-select__dropdown"
|
|
5896
|
-
}, [d(
|
|
5964
|
+
}, [d(So, {
|
|
5897
5965
|
nodes: n.nodes,
|
|
5898
5966
|
"expanded-keys": h.value,
|
|
5899
5967
|
"onUpdate:expandedKeys": i[0] ||= (e) => h.value = e,
|
|
@@ -5909,19 +5977,19 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5909
5977
|
"selectable",
|
|
5910
5978
|
"default-expand-all",
|
|
5911
5979
|
"show-guides"
|
|
5912
|
-
])], 8,
|
|
5980
|
+
])], 8, vc)) : s("", !0),
|
|
5913
5981
|
D.value ? (x(), c("p", {
|
|
5914
5982
|
key: 2,
|
|
5915
5983
|
class: _(["uid-tree-select__hint", E.value && "uid-tree-select__hint--error"])
|
|
5916
5984
|
}, k(D.value), 3)) : s("", !0)
|
|
5917
5985
|
], 2));
|
|
5918
5986
|
}
|
|
5919
|
-
}),
|
|
5987
|
+
}), bc = {
|
|
5920
5988
|
key: 0,
|
|
5921
5989
|
class: "uid-notification-badge__dot",
|
|
5922
5990
|
role: "status",
|
|
5923
5991
|
"aria-hidden": "true"
|
|
5924
|
-
},
|
|
5992
|
+
}, xc = ["aria-label"], Sc = /* @__PURE__ */ f({
|
|
5925
5993
|
__name: "UidNotificationBadge",
|
|
5926
5994
|
props: {
|
|
5927
5995
|
count: { default: 0 },
|
|
@@ -5948,22 +6016,22 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
5948
6016
|
return (t, a) => (x(), c("span", {
|
|
5949
6017
|
class: _(["uid-notification-badge", [`uid-notification-badge--${e.placement}`, e.tone !== "danger" && `uid-notification-badge--${e.tone}`]]),
|
|
5950
6018
|
style: v(i.value)
|
|
5951
|
-
}, [E(t.$slots, "default"), n.value && e.dot ? (x(), c("span",
|
|
6019
|
+
}, [E(t.$slots, "default"), n.value && e.dot ? (x(), c("span", bc)) : n.value ? (x(), c("span", {
|
|
5952
6020
|
key: 1,
|
|
5953
6021
|
class: "uid-notification-badge__count",
|
|
5954
6022
|
role: "status",
|
|
5955
6023
|
"aria-label": `${e.count}`
|
|
5956
|
-
}, k(r.value), 9,
|
|
6024
|
+
}, k(r.value), 9, xc)) : s("", !0)], 6));
|
|
5957
6025
|
}
|
|
5958
|
-
}),
|
|
6026
|
+
}), Cc = ["aria-hidden", "aria-label"], wc = ["disabled"], Tc = ["disabled"], Ec = {
|
|
5959
6027
|
key: 2,
|
|
5960
6028
|
class: "uid-carousel__indicators",
|
|
5961
6029
|
role: "tablist"
|
|
5962
|
-
},
|
|
6030
|
+
}, Dc = [
|
|
5963
6031
|
"aria-selected",
|
|
5964
6032
|
"aria-label",
|
|
5965
6033
|
"onClick"
|
|
5966
|
-
],
|
|
6034
|
+
], Oc = /* @__PURE__ */ f({
|
|
5967
6035
|
__name: "UidCarousel",
|
|
5968
6036
|
props: /* @__PURE__ */ m({
|
|
5969
6037
|
items: {},
|
|
@@ -6055,7 +6123,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6055
6123
|
}, [E(r.$slots, "default", {
|
|
6056
6124
|
item: e,
|
|
6057
6125
|
index: t
|
|
6058
|
-
})], 8,
|
|
6126
|
+
})], 8, Cc))), 128))], 4),
|
|
6059
6127
|
n.showArrows && g.value > 1 ? (x(), c("button", {
|
|
6060
6128
|
key: 0,
|
|
6061
6129
|
type: "button",
|
|
@@ -6066,7 +6134,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6066
6134
|
}, [d(e, {
|
|
6067
6135
|
icon: n.direction === "vertical" ? j(ie) : j(re),
|
|
6068
6136
|
size: 20
|
|
6069
|
-
}, null, 8, ["icon"])], 8,
|
|
6137
|
+
}, null, 8, ["icon"])], 8, wc)) : s("", !0),
|
|
6070
6138
|
n.showArrows && g.value > 1 ? (x(), c("button", {
|
|
6071
6139
|
key: 1,
|
|
6072
6140
|
type: "button",
|
|
@@ -6077,8 +6145,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6077
6145
|
}, [d(e, {
|
|
6078
6146
|
icon: n.direction === "vertical" ? j(Y) : j(X),
|
|
6079
6147
|
size: 20
|
|
6080
|
-
}, null, 8, ["icon"])], 8,
|
|
6081
|
-
n.showIndicators && g.value > 1 ? (x(), c("div",
|
|
6148
|
+
}, null, 8, ["icon"])], 8, Tc)) : s("", !0),
|
|
6149
|
+
n.showIndicators && g.value > 1 ? (x(), c("div", Ec, [(x(!0), c(t, null, T(n.items, (e, t) => (x(), c("button", {
|
|
6082
6150
|
key: t,
|
|
6083
6151
|
type: "button",
|
|
6084
6152
|
class: _(["uid-carousel__indicator", { "uid-carousel__indicator--active": t === f.value }]),
|
|
@@ -6086,38 +6154,38 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6086
6154
|
"aria-selected": t === f.value,
|
|
6087
6155
|
"aria-label": `Слайд ${t + 1}`,
|
|
6088
6156
|
onClick: (e) => C(t)
|
|
6089
|
-
}, null, 10,
|
|
6157
|
+
}, null, 10, Dc))), 128))])) : s("", !0)
|
|
6090
6158
|
], 34));
|
|
6091
6159
|
}
|
|
6092
|
-
}),
|
|
6160
|
+
}), kc = { class: "uid-transfer__panel" }, Ac = { class: "uid-transfer__header" }, jc = { class: "uid-transfer__title" }, Mc = ["aria-checked"], Nc = { class: "uid-transfer__count" }, Pc = {
|
|
6093
6161
|
key: 0,
|
|
6094
6162
|
class: "uid-transfer__search"
|
|
6095
|
-
},
|
|
6163
|
+
}, Fc = ["placeholder"], Ic = {
|
|
6096
6164
|
class: "uid-transfer__list",
|
|
6097
6165
|
role: "listbox",
|
|
6098
6166
|
"aria-multiselectable": "true"
|
|
6099
|
-
},
|
|
6167
|
+
}, Lc = [
|
|
6100
6168
|
"aria-selected",
|
|
6101
6169
|
"aria-disabled",
|
|
6102
6170
|
"onClick"
|
|
6103
|
-
],
|
|
6171
|
+
], Rc = { class: "uid-transfer__label" }, zc = {
|
|
6104
6172
|
key: 0,
|
|
6105
6173
|
class: "uid-transfer__empty"
|
|
6106
|
-
},
|
|
6174
|
+
}, Bc = { class: "uid-transfer__ops" }, Vc = ["disabled"], Hc = ["disabled"], Uc = { class: "uid-transfer__panel" }, Wc = { class: "uid-transfer__header" }, Gc = { class: "uid-transfer__title" }, Kc = ["aria-checked"], qc = { class: "uid-transfer__count" }, Jc = {
|
|
6107
6175
|
key: 0,
|
|
6108
6176
|
class: "uid-transfer__search"
|
|
6109
|
-
},
|
|
6177
|
+
}, Yc = ["placeholder"], Xc = {
|
|
6110
6178
|
class: "uid-transfer__list",
|
|
6111
6179
|
role: "listbox",
|
|
6112
6180
|
"aria-multiselectable": "true"
|
|
6113
|
-
},
|
|
6181
|
+
}, Zc = [
|
|
6114
6182
|
"aria-selected",
|
|
6115
6183
|
"aria-disabled",
|
|
6116
6184
|
"onClick"
|
|
6117
|
-
],
|
|
6185
|
+
], Qc = { class: "uid-transfer__label" }, $c = {
|
|
6118
6186
|
key: 0,
|
|
6119
6187
|
class: "uid-transfer__empty"
|
|
6120
|
-
},
|
|
6188
|
+
}, el = /* @__PURE__ */ f({
|
|
6121
6189
|
__name: "UidTransfer",
|
|
6122
6190
|
props: /* @__PURE__ */ m({
|
|
6123
6191
|
items: {},
|
|
@@ -6168,8 +6236,8 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6168
6236
|
p.value = e, g.value = /* @__PURE__ */ new Set(), f("change", e);
|
|
6169
6237
|
}
|
|
6170
6238
|
return (r, i) => (x(), c("div", { class: _(["uid-transfer", { "uid-transfer--disabled": n.disabled }]) }, [
|
|
6171
|
-
l("div",
|
|
6172
|
-
l("div",
|
|
6239
|
+
l("div", kc, [
|
|
6240
|
+
l("div", Ac, [l("span", jc, [l("span", {
|
|
6173
6241
|
class: _(["uid-transfer__check", { "uid-transfer__check--checked": P.value }]),
|
|
6174
6242
|
role: "checkbox",
|
|
6175
6243
|
"aria-checked": P.value,
|
|
@@ -6180,14 +6248,14 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6180
6248
|
key: 0,
|
|
6181
6249
|
icon: j(q),
|
|
6182
6250
|
size: 10
|
|
6183
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
6184
|
-
n.searchable ? (x(), c("div",
|
|
6251
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, Mc), u(" " + k(b.value[0]), 1)]), l("span", Nc, k(h.value.size) + " / " + k(D.value.length), 1)]),
|
|
6252
|
+
n.searchable ? (x(), c("div", Pc, [B(l("input", {
|
|
6185
6253
|
"onUpdate:modelValue": i[3] ||= (e) => v.value = e,
|
|
6186
6254
|
class: "uid-transfer__search-input",
|
|
6187
6255
|
type: "text",
|
|
6188
6256
|
placeholder: j(m).common.search
|
|
6189
|
-
}, null, 8,
|
|
6190
|
-
l("ul",
|
|
6257
|
+
}, null, 8, Fc), [[I, v.value]])])) : s("", !0),
|
|
6258
|
+
l("ul", Ic, [(x(!0), c(t, null, T(D.value, (t) => (x(), c("li", {
|
|
6191
6259
|
key: t.key,
|
|
6192
6260
|
class: _(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
6193
6261
|
role: "option",
|
|
@@ -6201,9 +6269,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6201
6269
|
key: 0,
|
|
6202
6270
|
icon: j(q),
|
|
6203
6271
|
size: 10
|
|
6204
|
-
}, null, 8, ["icon"])) : s("", !0)], 2), l("span",
|
|
6272
|
+
}, null, 8, ["icon"])) : s("", !0)], 2), l("span", Rc, k(t.label), 1)], 10, Lc))), 128)), D.value.length === 0 ? (x(), c("li", zc, k(j(m).common.noResults), 1)) : s("", !0)])
|
|
6205
6273
|
]),
|
|
6206
|
-
l("div",
|
|
6274
|
+
l("div", Bc, [l("button", {
|
|
6207
6275
|
type: "button",
|
|
6208
6276
|
class: "uid-transfer__op",
|
|
6209
6277
|
disabled: h.value.size === 0 || n.disabled,
|
|
@@ -6212,7 +6280,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6212
6280
|
}, [d(e, {
|
|
6213
6281
|
icon: j(X),
|
|
6214
6282
|
size: 16
|
|
6215
|
-
}, null, 8, ["icon"])], 8,
|
|
6283
|
+
}, null, 8, ["icon"])], 8, Vc), l("button", {
|
|
6216
6284
|
type: "button",
|
|
6217
6285
|
class: "uid-transfer__op",
|
|
6218
6286
|
disabled: g.value.size === 0 || n.disabled,
|
|
@@ -6221,9 +6289,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6221
6289
|
}, [d(e, {
|
|
6222
6290
|
icon: j(re),
|
|
6223
6291
|
size: 16
|
|
6224
|
-
}, null, 8, ["icon"])], 8,
|
|
6225
|
-
l("div",
|
|
6226
|
-
l("div",
|
|
6292
|
+
}, null, 8, ["icon"])], 8, Hc)]),
|
|
6293
|
+
l("div", Uc, [
|
|
6294
|
+
l("div", Wc, [l("span", Gc, [l("span", {
|
|
6227
6295
|
class: _(["uid-transfer__check", { "uid-transfer__check--checked": F.value }]),
|
|
6228
6296
|
role: "checkbox",
|
|
6229
6297
|
"aria-checked": F.value,
|
|
@@ -6234,14 +6302,14 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6234
6302
|
key: 0,
|
|
6235
6303
|
icon: j(q),
|
|
6236
6304
|
size: 10
|
|
6237
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
6238
|
-
n.searchable ? (x(), c("div",
|
|
6305
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, Kc), u(" " + k(b.value[1]), 1)]), l("span", qc, k(g.value.size) + " / " + k(O.value.length), 1)]),
|
|
6306
|
+
n.searchable ? (x(), c("div", Jc, [B(l("input", {
|
|
6239
6307
|
"onUpdate:modelValue": i[7] ||= (e) => y.value = e,
|
|
6240
6308
|
class: "uid-transfer__search-input",
|
|
6241
6309
|
type: "text",
|
|
6242
6310
|
placeholder: j(m).common.search
|
|
6243
|
-
}, null, 8,
|
|
6244
|
-
l("ul",
|
|
6311
|
+
}, null, 8, Yc), [[I, y.value]])])) : s("", !0),
|
|
6312
|
+
l("ul", Xc, [(x(!0), c(t, null, T(O.value, (t) => (x(), c("li", {
|
|
6245
6313
|
key: t.key,
|
|
6246
6314
|
class: _(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
6247
6315
|
role: "option",
|
|
@@ -6255,30 +6323,30 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6255
6323
|
key: 0,
|
|
6256
6324
|
icon: j(q),
|
|
6257
6325
|
size: 10
|
|
6258
|
-
}, null, 8, ["icon"])) : s("", !0)], 2), l("span",
|
|
6326
|
+
}, null, 8, ["icon"])) : s("", !0)], 2), l("span", Qc, k(t.label), 1)], 10, Zc))), 128)), O.value.length === 0 ? (x(), c("li", $c, k(j(m).common.noResults), 1)) : s("", !0)])
|
|
6259
6327
|
])
|
|
6260
6328
|
], 2));
|
|
6261
6329
|
}
|
|
6262
|
-
}),
|
|
6330
|
+
}), tl = {
|
|
6263
6331
|
key: 0,
|
|
6264
6332
|
class: "uid-cascader__label"
|
|
6265
|
-
},
|
|
6333
|
+
}, nl = [
|
|
6266
6334
|
"aria-expanded",
|
|
6267
6335
|
"aria-disabled",
|
|
6268
6336
|
"aria-label"
|
|
6269
|
-
],
|
|
6337
|
+
], rl = { class: "uid-cascader__value" }, il = {
|
|
6270
6338
|
key: 0,
|
|
6271
6339
|
class: "uid-cascader__separator"
|
|
6272
|
-
},
|
|
6340
|
+
}, al = {
|
|
6273
6341
|
key: 1,
|
|
6274
6342
|
class: "uid-cascader__placeholder"
|
|
6275
|
-
},
|
|
6343
|
+
}, ol = { class: "uid-cascader__suffix" }, sl = ["aria-label"], cl = {
|
|
6276
6344
|
key: 1,
|
|
6277
6345
|
class: "uid-cascader__dropdown"
|
|
6278
|
-
},
|
|
6346
|
+
}, ll = ["onClick", "onMouseenter"], ul = { class: "uid-cascader__option-label" }, dl = {
|
|
6279
6347
|
key: 2,
|
|
6280
6348
|
class: "uid-cascader__hint"
|
|
6281
|
-
},
|
|
6349
|
+
}, fl = /* @__PURE__ */ f({
|
|
6282
6350
|
__name: "UidCascader",
|
|
6283
6351
|
props: /* @__PURE__ */ m({
|
|
6284
6352
|
options: {},
|
|
@@ -6383,7 +6451,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6383
6451
|
"uid-cascader--disabled": n.disabled
|
|
6384
6452
|
}])
|
|
6385
6453
|
}, [
|
|
6386
|
-
n.label ? (x(), c("label",
|
|
6454
|
+
n.label ? (x(), c("label", tl, k(n.label), 1)) : s("", !0),
|
|
6387
6455
|
l("div", {
|
|
6388
6456
|
class: "uid-cascader__trigger",
|
|
6389
6457
|
tabindex: "0",
|
|
@@ -6394,7 +6462,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6394
6462
|
"aria-label": m.value,
|
|
6395
6463
|
onClick: A,
|
|
6396
6464
|
onKeydown: I
|
|
6397
|
-
}, [l("div",
|
|
6465
|
+
}, [l("div", rl, [E.value.length > 0 ? (x(!0), c(t, { key: 0 }, T(E.value, (e, r) => (x(), c(t, { key: r }, [l("span", null, k(e), 1), r < E.value.length - 1 ? (x(), c("span", il, k(n.separator), 1)) : s("", !0)], 64))), 128)) : (x(), c("span", al, k(m.value), 1))]), l("div", ol, [n.clearable && f.value.length > 0 ? (x(), c("button", {
|
|
6398
6466
|
key: 0,
|
|
6399
6467
|
type: "button",
|
|
6400
6468
|
class: "uid-cascader__clear",
|
|
@@ -6403,12 +6471,12 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6403
6471
|
}, [d(e, {
|
|
6404
6472
|
icon: j(_e),
|
|
6405
6473
|
size: 14
|
|
6406
|
-
}, null, 8, ["icon"])], 8,
|
|
6474
|
+
}, null, 8, ["icon"])], 8, sl)) : s("", !0), d(e, {
|
|
6407
6475
|
icon: j(Y),
|
|
6408
6476
|
size: 16,
|
|
6409
6477
|
class: _(["uid-cascader__chevron", { "uid-cascader__chevron--open": h.value }])
|
|
6410
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
6411
|
-
h.value ? (x(), c("div",
|
|
6478
|
+
}, null, 8, ["icon", "class"])])], 40, nl),
|
|
6479
|
+
h.value ? (x(), c("div", cl, [(x(!0), c(t, null, T(S.value, (r, i) => (x(), c("div", {
|
|
6412
6480
|
key: i,
|
|
6413
6481
|
class: "uid-cascader__column"
|
|
6414
6482
|
}, [(x(!0), c(t, null, T(r, (t) => (x(), c("button", {
|
|
@@ -6420,27 +6488,27 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6420
6488
|
}]),
|
|
6421
6489
|
onClick: (e) => M(t, i),
|
|
6422
6490
|
onMouseenter: (e) => n.expandTrigger === "hover" && t.children && M(t, i)
|
|
6423
|
-
}, [l("span",
|
|
6491
|
+
}, [l("span", ul, k(t.label), 1), t.children?.length ? (x(), o(e, {
|
|
6424
6492
|
key: 0,
|
|
6425
6493
|
icon: j(X),
|
|
6426
6494
|
size: 14,
|
|
6427
6495
|
class: "uid-cascader__option-arrow",
|
|
6428
6496
|
"aria-hidden": "true"
|
|
6429
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
6430
|
-
n.hint ? (x(), c("p",
|
|
6497
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, ll))), 128))]))), 128))])) : s("", !0),
|
|
6498
|
+
n.hint ? (x(), c("p", dl, k(n.hint), 1)) : s("", !0)
|
|
6431
6499
|
], 2));
|
|
6432
6500
|
}
|
|
6433
|
-
}),
|
|
6501
|
+
}), pl = { class: "uid-calendar__header" }, ml = { class: "uid-calendar__title" }, hl = { class: "uid-calendar__nav" }, gl = ["aria-label"], _l = ["aria-label"], vl = { class: "uid-calendar__weekdays" }, yl = { class: "uid-calendar__grid" }, bl = [
|
|
6434
6502
|
"tabindex",
|
|
6435
6503
|
"aria-current",
|
|
6436
6504
|
"aria-selected",
|
|
6437
6505
|
"aria-label",
|
|
6438
6506
|
"onClick",
|
|
6439
6507
|
"onKeydown"
|
|
6440
|
-
],
|
|
6508
|
+
], xl = { class: "uid-calendar__date" }, Sl = { class: "uid-calendar__events" }, Cl = ["title", "onClick"], wl = { class: "uid-calendar__event-label" }, Tl = {
|
|
6441
6509
|
key: 0,
|
|
6442
6510
|
class: "uid-calendar__more"
|
|
6443
|
-
},
|
|
6511
|
+
}, El = /* @__PURE__ */ f({
|
|
6444
6512
|
__name: "UidCalendar",
|
|
6445
6513
|
props: /* @__PURE__ */ m({
|
|
6446
6514
|
events: { default: () => [] },
|
|
@@ -6527,7 +6595,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6527
6595
|
e.stopPropagation(), o("event-click", t);
|
|
6528
6596
|
}
|
|
6529
6597
|
return (r, i) => (x(), c("div", { class: _(["uid-calendar", { "uid-calendar--compact": n.compact }]) }, [
|
|
6530
|
-
l("div",
|
|
6598
|
+
l("div", pl, [l("span", ml, k(S.value), 1), l("div", hl, [
|
|
6531
6599
|
l("button", {
|
|
6532
6600
|
type: "button",
|
|
6533
6601
|
class: "uid-calendar__btn uid-calendar__btn--icon",
|
|
@@ -6536,7 +6604,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6536
6604
|
}, [d(e, {
|
|
6537
6605
|
icon: j(re),
|
|
6538
6606
|
size: 14
|
|
6539
|
-
}, null, 8, ["icon"])], 8,
|
|
6607
|
+
}, null, 8, ["icon"])], 8, gl),
|
|
6540
6608
|
l("button", {
|
|
6541
6609
|
type: "button",
|
|
6542
6610
|
class: "uid-calendar__btn",
|
|
@@ -6550,13 +6618,13 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6550
6618
|
}, [d(e, {
|
|
6551
6619
|
icon: j(X),
|
|
6552
6620
|
size: 14
|
|
6553
|
-
}, null, 8, ["icon"])], 8,
|
|
6621
|
+
}, null, 8, ["icon"])], 8, _l)
|
|
6554
6622
|
])]),
|
|
6555
|
-
l("div",
|
|
6623
|
+
l("div", vl, [(x(!0), c(t, null, T(j(f).datePicker.weekdaysShort, (e) => (x(), c("span", {
|
|
6556
6624
|
key: e,
|
|
6557
6625
|
class: "uid-calendar__weekday"
|
|
6558
6626
|
}, k(e), 1))), 128))]),
|
|
6559
|
-
l("div",
|
|
6627
|
+
l("div", yl, [(x(!0), c(t, null, T(D.value, (e) => (x(), c("div", {
|
|
6560
6628
|
key: e.iso,
|
|
6561
6629
|
class: _(["uid-calendar__day", {
|
|
6562
6630
|
"uid-calendar__day--other": !e.current,
|
|
@@ -6571,30 +6639,30 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6571
6639
|
"aria-label": e.iso,
|
|
6572
6640
|
onClick: (t) => F(e),
|
|
6573
6641
|
onKeydown: [V(H((t) => F(e), ["prevent"]), ["enter"]), V(H((t) => F(e), ["prevent"]), ["space"])]
|
|
6574
|
-
}, [l("span",
|
|
6642
|
+
}, [l("span", xl, k(e.date.getDate()), 1), l("div", Sl, [(x(!0), c(t, null, T(e.events.slice(0, n.maxEventsPerDay), (t, n) => (x(), c("button", {
|
|
6575
6643
|
key: t.id ?? `${e.iso}-${n}`,
|
|
6576
6644
|
type: "button",
|
|
6577
6645
|
class: "uid-calendar__event",
|
|
6578
6646
|
style: v(t.color ? { "--uid-event-color": t.color } : void 0),
|
|
6579
6647
|
title: t.title,
|
|
6580
6648
|
onClick: (e) => I(e, t)
|
|
6581
|
-
}, [l("span",
|
|
6649
|
+
}, [l("span", wl, k(t.title), 1)], 12, Cl))), 128)), e.events.length > n.maxEventsPerDay ? (x(), c("span", Tl, "+" + k(e.events.length - n.maxEventsPerDay), 1)) : s("", !0)])], 42, bl))), 128))])
|
|
6582
6650
|
], 2));
|
|
6583
6651
|
}
|
|
6584
|
-
}),
|
|
6652
|
+
}), Dl = ["aria-label"], Ol = [
|
|
6585
6653
|
"viewBox",
|
|
6586
6654
|
"width",
|
|
6587
6655
|
"height"
|
|
6588
|
-
],
|
|
6656
|
+
], kl = [
|
|
6589
6657
|
"x2",
|
|
6590
6658
|
"y1",
|
|
6591
6659
|
"y2"
|
|
6592
|
-
],
|
|
6660
|
+
], Al = [
|
|
6593
6661
|
"x",
|
|
6594
6662
|
"y",
|
|
6595
6663
|
"width",
|
|
6596
6664
|
"height"
|
|
6597
|
-
],
|
|
6665
|
+
], jl = ["d"], Ml = ["d"], Nl = ["cx", "cy"], Pl = ["cx", "cy"], Fl = 2, Il = /* @__PURE__ */ f({
|
|
6598
6666
|
__name: "UidSparkline",
|
|
6599
6667
|
props: {
|
|
6600
6668
|
data: {},
|
|
@@ -6637,11 +6705,11 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6637
6705
|
};
|
|
6638
6706
|
});
|
|
6639
6707
|
function i(e, t) {
|
|
6640
|
-
return t <= 1 ? n.width / 2 :
|
|
6708
|
+
return t <= 1 ? n.width / 2 : Fl + e / (t - 1) * (n.width - Fl * 2);
|
|
6641
6709
|
}
|
|
6642
6710
|
function o(e) {
|
|
6643
6711
|
let t = r.value, i = (e - t.min) / (t.max - t.min);
|
|
6644
|
-
return n.height -
|
|
6712
|
+
return n.height - Fl - i * (n.height - Fl * 2);
|
|
6645
6713
|
}
|
|
6646
6714
|
let u = a(() => n.data.map((e, t) => ({
|
|
6647
6715
|
x: i(t, n.data.length),
|
|
@@ -6660,14 +6728,14 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6660
6728
|
}), f = a(() => {
|
|
6661
6729
|
let e = u.value;
|
|
6662
6730
|
if (e.length === 0) return "";
|
|
6663
|
-
let t = n.height -
|
|
6731
|
+
let t = n.height - Fl;
|
|
6664
6732
|
return `${d.value} L ${e[e.length - 1].x.toFixed(2)} ${t.toFixed(2)} L ${e[0].x.toFixed(2)} ${t.toFixed(2)} Z`;
|
|
6665
6733
|
}), p = a(() => {
|
|
6666
6734
|
let e = u.value, t = e.length;
|
|
6667
6735
|
if (t === 0) return [];
|
|
6668
|
-
let r = n.width -
|
|
6736
|
+
let r = n.width - Fl * 2, i = Math.max(1, r / t * .7), a = o(0);
|
|
6669
6737
|
return e.map((e, n) => {
|
|
6670
|
-
let o =
|
|
6738
|
+
let o = Fl + (n + .5) / t * r - i / 2, s = e.v < 0, c = s ? a : e.y, l = s ? e.y : a;
|
|
6671
6739
|
return {
|
|
6672
6740
|
x: o,
|
|
6673
6741
|
y: c,
|
|
@@ -6699,59 +6767,59 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6699
6767
|
x2: e.width,
|
|
6700
6768
|
y1: m.value,
|
|
6701
6769
|
y2: m.value
|
|
6702
|
-
}, null, 8,
|
|
6770
|
+
}, null, 8, kl)) : s("", !0), e.type === "bar" ? (x(!0), c(t, { key: 1 }, T(p.value, (e, t) => (x(), c("rect", {
|
|
6703
6771
|
key: t,
|
|
6704
6772
|
class: _(["uid-sparkline__bar", { "uid-sparkline__bar--negative": e.negative }]),
|
|
6705
6773
|
x: e.x,
|
|
6706
6774
|
y: e.y,
|
|
6707
6775
|
width: e.width,
|
|
6708
6776
|
height: e.height
|
|
6709
|
-
}, null, 10,
|
|
6777
|
+
}, null, 10, Al))), 128)) : (x(), c(t, { key: 2 }, [
|
|
6710
6778
|
e.type === "area" ? (x(), c("path", {
|
|
6711
6779
|
key: 0,
|
|
6712
6780
|
class: "uid-sparkline__area",
|
|
6713
6781
|
d: f.value
|
|
6714
|
-
}, null, 8,
|
|
6782
|
+
}, null, 8, jl)) : s("", !0),
|
|
6715
6783
|
l("path", {
|
|
6716
6784
|
class: "uid-sparkline__line",
|
|
6717
6785
|
d: d.value
|
|
6718
|
-
}, null, 8,
|
|
6786
|
+
}, null, 8, Ml),
|
|
6719
6787
|
e.showDots ? (x(!0), c(t, { key: 1 }, T(u.value, (e, t) => (x(), c("circle", {
|
|
6720
6788
|
key: t,
|
|
6721
6789
|
class: "uid-sparkline__dot",
|
|
6722
6790
|
cx: e.x,
|
|
6723
6791
|
cy: e.y,
|
|
6724
6792
|
r: "2.5"
|
|
6725
|
-
}, null, 8,
|
|
6793
|
+
}, null, 8, Nl))), 128)) : s("", !0),
|
|
6726
6794
|
e.showLast && g.value && !e.showDots ? (x(), c("circle", {
|
|
6727
6795
|
key: 2,
|
|
6728
6796
|
class: "uid-sparkline__dot uid-sparkline__dot--last",
|
|
6729
6797
|
cx: g.value.x,
|
|
6730
6798
|
cy: g.value.y,
|
|
6731
6799
|
r: "2.5"
|
|
6732
|
-
}, null, 8,
|
|
6733
|
-
], 64))], 8,
|
|
6800
|
+
}, null, 8, Pl)) : s("", !0)
|
|
6801
|
+
], 64))], 8, Ol))], 12, Dl));
|
|
6734
6802
|
}
|
|
6735
|
-
}),
|
|
6803
|
+
}), Ll = ["aria-valuemax", "aria-valuenow"], Rl = [
|
|
6736
6804
|
"width",
|
|
6737
6805
|
"height",
|
|
6738
6806
|
"viewBox"
|
|
6739
|
-
],
|
|
6807
|
+
], zl = [
|
|
6740
6808
|
"cx",
|
|
6741
6809
|
"cy",
|
|
6742
6810
|
"r",
|
|
6743
6811
|
"stroke-width"
|
|
6744
|
-
],
|
|
6812
|
+
], Bl = [
|
|
6745
6813
|
"cx",
|
|
6746
6814
|
"cy",
|
|
6747
6815
|
"r",
|
|
6748
6816
|
"stroke-width",
|
|
6749
6817
|
"stroke-dasharray",
|
|
6750
6818
|
"stroke-dashoffset"
|
|
6751
|
-
],
|
|
6819
|
+
], Vl = {
|
|
6752
6820
|
key: 0,
|
|
6753
6821
|
class: "uid-progress-ring__label"
|
|
6754
|
-
},
|
|
6822
|
+
}, Hl = /* @__PURE__ */ f({
|
|
6755
6823
|
__name: "UidProgressRing",
|
|
6756
6824
|
props: {
|
|
6757
6825
|
value: { default: 0 },
|
|
@@ -6796,7 +6864,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6796
6864
|
cy: i.value,
|
|
6797
6865
|
r: n.value,
|
|
6798
6866
|
"stroke-width": e.strokeWidth
|
|
6799
|
-
}, null, 8,
|
|
6867
|
+
}, null, 8, zl), l("circle", {
|
|
6800
6868
|
class: "uid-progress-ring__progress",
|
|
6801
6869
|
cx: i.value,
|
|
6802
6870
|
cy: i.value,
|
|
@@ -6804,50 +6872,50 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6804
6872
|
"stroke-width": e.strokeWidth,
|
|
6805
6873
|
"stroke-dasharray": r.value,
|
|
6806
6874
|
"stroke-dashoffset": f.value
|
|
6807
|
-
}, null, 8,
|
|
6875
|
+
}, null, 8, Bl)], 8, Rl)), e.showLabel || t.$slots.default ? (x(), c("div", Vl, [E(t.$slots, "default", {}, () => [u(k(p.value), 1)])])) : s("", !0)], 14, Ll));
|
|
6808
6876
|
}
|
|
6809
|
-
}),
|
|
6877
|
+
}), Ul = [
|
|
6810
6878
|
"aria-valuemin",
|
|
6811
6879
|
"aria-valuemax",
|
|
6812
6880
|
"aria-valuenow",
|
|
6813
6881
|
"aria-label"
|
|
6814
|
-
],
|
|
6882
|
+
], Wl = [
|
|
6815
6883
|
"width",
|
|
6816
6884
|
"height",
|
|
6817
6885
|
"viewBox"
|
|
6818
|
-
],
|
|
6886
|
+
], Gl = ["d", "stroke-width"], Kl = [
|
|
6819
6887
|
"d",
|
|
6820
6888
|
"stroke",
|
|
6821
6889
|
"stroke-width",
|
|
6822
6890
|
"stroke-dasharray",
|
|
6823
6891
|
"stroke-dashoffset"
|
|
6824
|
-
],
|
|
6892
|
+
], ql = [
|
|
6825
6893
|
"d",
|
|
6826
6894
|
"stroke-width",
|
|
6827
6895
|
"stroke-dasharray",
|
|
6828
6896
|
"stroke-dashoffset"
|
|
6829
|
-
],
|
|
6897
|
+
], Jl = { key: 2 }, Yl = [
|
|
6830
6898
|
"x1",
|
|
6831
6899
|
"y1",
|
|
6832
6900
|
"x2",
|
|
6833
6901
|
"y2",
|
|
6834
6902
|
"transform"
|
|
6835
|
-
],
|
|
6903
|
+
], Xl = ["cx", "cy"], Zl = {
|
|
6836
6904
|
key: 0,
|
|
6837
6905
|
class: "uid-gauge__content"
|
|
6838
|
-
},
|
|
6906
|
+
}, Ql = {
|
|
6839
6907
|
key: 0,
|
|
6840
6908
|
class: "uid-gauge__value"
|
|
6841
|
-
},
|
|
6909
|
+
}, $l = {
|
|
6842
6910
|
key: 0,
|
|
6843
6911
|
class: "uid-gauge__suffix"
|
|
6844
|
-
},
|
|
6912
|
+
}, eu = {
|
|
6845
6913
|
key: 1,
|
|
6846
6914
|
class: "uid-gauge__label"
|
|
6847
|
-
},
|
|
6915
|
+
}, tu = {
|
|
6848
6916
|
key: 1,
|
|
6849
6917
|
class: "uid-gauge__limits"
|
|
6850
|
-
},
|
|
6918
|
+
}, nu = 4, ru = /* @__PURE__ */ f({
|
|
6851
6919
|
__name: "UidGauge",
|
|
6852
6920
|
props: {
|
|
6853
6921
|
value: { default: 0 },
|
|
@@ -6876,7 +6944,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6876
6944
|
formatValue: {}
|
|
6877
6945
|
},
|
|
6878
6946
|
setup(e) {
|
|
6879
|
-
let n = e, r = a(() => (n.size - n.strokeWidth) / 2 -
|
|
6947
|
+
let n = e, r = a(() => (n.size - n.strokeWidth) / 2 - nu), i = a(() => n.size / 2), o = a(() => n.size / 2), u = a(() => n.size / 2 + n.strokeWidth / 2 + nu), d = a(() => Math.PI * r.value), f = a(() => Math.max(n.min, Math.min(n.max, n.value))), p = a(() => {
|
|
6880
6948
|
let e = n.max - n.min;
|
|
6881
6949
|
return e <= 0 ? 0 : (f.value - n.min) / e;
|
|
6882
6950
|
}), m = a(() => {
|
|
@@ -6914,7 +6982,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6914
6982
|
class: "uid-gauge__track",
|
|
6915
6983
|
d: m.value,
|
|
6916
6984
|
"stroke-width": e.strokeWidth
|
|
6917
|
-
}, null, 8,
|
|
6985
|
+
}, null, 8, Gl),
|
|
6918
6986
|
e.ranges && e.ranges.length ? (x(!0), c(t, { key: 0 }, T(e.ranges, (t, n) => (x(), c("path", {
|
|
6919
6987
|
key: n,
|
|
6920
6988
|
class: "uid-gauge__range",
|
|
@@ -6923,7 +6991,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6923
6991
|
"stroke-width": e.strokeWidth,
|
|
6924
6992
|
"stroke-dasharray": g(t).dasharray,
|
|
6925
6993
|
"stroke-dashoffset": g(t).dashoffset
|
|
6926
|
-
}, null, 8,
|
|
6994
|
+
}, null, 8, Kl))), 128)) : s("", !0),
|
|
6927
6995
|
!e.ranges || e.ranges.length === 0 ? (x(), c("path", {
|
|
6928
6996
|
key: 1,
|
|
6929
6997
|
class: "uid-gauge__progress",
|
|
@@ -6931,43 +6999,43 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
6931
6999
|
"stroke-width": e.strokeWidth,
|
|
6932
7000
|
"stroke-dasharray": d.value,
|
|
6933
7001
|
"stroke-dashoffset": h.value
|
|
6934
|
-
}, null, 8,
|
|
6935
|
-
e.showNeedle ? (x(), c("g",
|
|
7002
|
+
}, null, 8, ql)) : s("", !0),
|
|
7003
|
+
e.showNeedle ? (x(), c("g", Jl, [l("line", {
|
|
6936
7004
|
class: "uid-gauge__needle",
|
|
6937
7005
|
x1: i.value,
|
|
6938
7006
|
y1: o.value,
|
|
6939
7007
|
x2: i.value + r.value - e.strokeWidth,
|
|
6940
7008
|
y2: o.value,
|
|
6941
7009
|
transform: `rotate(${y.value} ${i.value} ${o.value})`
|
|
6942
|
-
}, null, 8,
|
|
7010
|
+
}, null, 8, Yl), l("circle", {
|
|
6943
7011
|
class: "uid-gauge__needle-pivot",
|
|
6944
7012
|
cx: i.value,
|
|
6945
7013
|
cy: o.value,
|
|
6946
7014
|
r: "4"
|
|
6947
|
-
}, null, 8,
|
|
6948
|
-
], 8,
|
|
6949
|
-
e.showValue || e.label ? (x(), c("div",
|
|
6950
|
-
e.showLimits ? (x(), c("div",
|
|
6951
|
-
], 14,
|
|
7015
|
+
}, null, 8, Xl)])) : s("", !0)
|
|
7016
|
+
], 8, Wl)),
|
|
7017
|
+
e.showValue || e.label ? (x(), c("div", Zl, [e.showValue ? (x(), c("div", Ql, [l("span", null, k(b.value), 1), e.suffix ? (x(), c("span", $l, k(e.suffix), 1)) : s("", !0)])) : s("", !0), e.label ? (x(), c("div", eu, k(e.label), 1)) : s("", !0)])) : s("", !0),
|
|
7018
|
+
e.showLimits ? (x(), c("div", tu, [l("span", null, k(e.min), 1), l("span", null, k(e.max), 1)])) : s("", !0)
|
|
7019
|
+
], 14, Ul));
|
|
6952
7020
|
}
|
|
6953
|
-
}),
|
|
7021
|
+
}), iu = ["aria-label"], au = { class: "uid-heatmap__chart" }, ou = {
|
|
6954
7022
|
key: 0,
|
|
6955
7023
|
class: "uid-heatmap__weekdays",
|
|
6956
7024
|
"aria-hidden": "true"
|
|
6957
|
-
},
|
|
7025
|
+
}, su = { class: "uid-heatmap__grid-wrapper" }, cu = [
|
|
6958
7026
|
"width",
|
|
6959
7027
|
"height",
|
|
6960
7028
|
"viewBox"
|
|
6961
|
-
],
|
|
7029
|
+
], lu = [
|
|
6962
7030
|
"x",
|
|
6963
7031
|
"y",
|
|
6964
7032
|
"width",
|
|
6965
7033
|
"height",
|
|
6966
7034
|
"fill"
|
|
6967
|
-
],
|
|
7035
|
+
], uu = {
|
|
6968
7036
|
key: 0,
|
|
6969
7037
|
class: "uid-heatmap__legend"
|
|
6970
|
-
},
|
|
7038
|
+
}, du = /* @__PURE__ */ f({
|
|
6971
7039
|
__name: "UidHeatmap",
|
|
6972
7040
|
props: {
|
|
6973
7041
|
data: {},
|
|
@@ -7073,10 +7141,10 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7073
7141
|
style: v(E.value),
|
|
7074
7142
|
role: "img",
|
|
7075
7143
|
"aria-label": M.value
|
|
7076
|
-
}, [l("div",
|
|
7144
|
+
}, [l("div", au, [e.showWeekdays ? (x(), c("div", ou, [(x(!0), c(t, null, T(j(r).datePicker.weekdaysShort, (e, t) => (x(), c("span", {
|
|
7077
7145
|
key: e,
|
|
7078
7146
|
class: _(["uid-heatmap__weekday", { "uid-heatmap__weekday--visible": t === 0 || t === 2 || t === 4 }])
|
|
7079
|
-
}, k(e), 3))), 128))])) : s("", !0), l("div",
|
|
7147
|
+
}, k(e), 3))), 128))])) : s("", !0), l("div", su, [e.showMonths ? (x(), c("div", {
|
|
7080
7148
|
key: 0,
|
|
7081
7149
|
class: "uid-heatmap__months",
|
|
7082
7150
|
style: v({ width: `${C.value}px` }),
|
|
@@ -7099,7 +7167,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7099
7167
|
width: e.cellSize,
|
|
7100
7168
|
height: e.cellSize,
|
|
7101
7169
|
fill: b(t.level)
|
|
7102
|
-
}, [l("title", null, k(O(t)), 1)], 8,
|
|
7170
|
+
}, [l("title", null, k(O(t)), 1)], 8, lu))), 128))], 8, cu))])]), e.showLegend ? (x(), c("div", uu, [
|
|
7103
7171
|
i[0] ||= l("span", null, "Меньше", -1),
|
|
7104
7172
|
(x(!0), c(t, null, T(D.value, (e) => (x(), c("span", {
|
|
7105
7173
|
key: e,
|
|
@@ -7107,15 +7175,15 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7107
7175
|
style: v(e === 0 ? void 0 : { background: b(e) })
|
|
7108
7176
|
}, null, 4))), 128)),
|
|
7109
7177
|
i[1] ||= l("span", null, "Больше", -1)
|
|
7110
|
-
])) : s("", !0)], 12,
|
|
7178
|
+
])) : s("", !0)], 12, iu));
|
|
7111
7179
|
}
|
|
7112
|
-
}),
|
|
7180
|
+
}), fu = ["aria-label"], pu = ["aria-current"], mu = { class: "uid-stepper__indicator" }, hu = {
|
|
7113
7181
|
key: 1,
|
|
7114
7182
|
"aria-hidden": "true"
|
|
7115
|
-
},
|
|
7183
|
+
}, gu = { class: "uid-stepper__content" }, _u = { class: "uid-stepper__label" }, vu = {
|
|
7116
7184
|
key: 0,
|
|
7117
7185
|
class: "uid-stepper__description"
|
|
7118
|
-
},
|
|
7186
|
+
}, yu = /* @__PURE__ */ f({
|
|
7119
7187
|
__name: "UidStepper",
|
|
7120
7188
|
props: {
|
|
7121
7189
|
steps: {},
|
|
@@ -7133,14 +7201,14 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7133
7201
|
key: i,
|
|
7134
7202
|
class: _(["uid-stepper__step", [`uid-stepper__step--${r(i, n.current)}`]]),
|
|
7135
7203
|
"aria-current": i === n.current ? "step" : void 0
|
|
7136
|
-
}, [l("div",
|
|
7204
|
+
}, [l("div", mu, [r(i, n.current) === "completed" ? (x(), o(e, {
|
|
7137
7205
|
key: 0,
|
|
7138
7206
|
icon: j(q),
|
|
7139
7207
|
size: 16,
|
|
7140
7208
|
"aria-hidden": "true"
|
|
7141
|
-
}, null, 8, ["icon"])) : (x(), c("span",
|
|
7209
|
+
}, null, 8, ["icon"])) : (x(), c("span", hu, k(i + 1), 1))]), l("div", gu, [l("span", _u, k(t.label), 1), t.description ? (x(), c("span", vu, k(t.description), 1)) : s("", !0)])], 10, pu))), 128))], 10, fu));
|
|
7142
7210
|
}
|
|
7143
|
-
}),
|
|
7211
|
+
}), bu = /* @__PURE__ */ f({
|
|
7144
7212
|
__name: "UidStack",
|
|
7145
7213
|
props: {
|
|
7146
7214
|
direction: { default: "column" },
|
|
@@ -7186,7 +7254,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7186
7254
|
_: 3
|
|
7187
7255
|
}, 8, ["class", "style"]));
|
|
7188
7256
|
}
|
|
7189
|
-
}),
|
|
7257
|
+
}), xu = /* @__PURE__ */ f({
|
|
7190
7258
|
__name: "UidGrid",
|
|
7191
7259
|
props: {
|
|
7192
7260
|
cols: { default: 12 },
|
|
@@ -7219,7 +7287,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7219
7287
|
_: 3
|
|
7220
7288
|
}, 8, ["style"]));
|
|
7221
7289
|
}
|
|
7222
|
-
}),
|
|
7290
|
+
}), Su = /* @__PURE__ */ f({
|
|
7223
7291
|
__name: "UidContainer",
|
|
7224
7292
|
props: {
|
|
7225
7293
|
size: { default: "lg" },
|
|
@@ -7235,7 +7303,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7235
7303
|
_: 3
|
|
7236
7304
|
}, 8, ["class"]));
|
|
7237
7305
|
}
|
|
7238
|
-
}),
|
|
7306
|
+
}), Cu = Symbol("uid-wizard"), wu = { class: "uid-wizard" }, Tu = /* @__PURE__ */ f({
|
|
7239
7307
|
__name: "UidWizard",
|
|
7240
7308
|
props: /* @__PURE__ */ m({ steps: {} }, {
|
|
7241
7309
|
modelValue: { default: 0 },
|
|
@@ -7260,7 +7328,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7260
7328
|
function m(e) {
|
|
7261
7329
|
i.delete(e);
|
|
7262
7330
|
}
|
|
7263
|
-
return S(
|
|
7331
|
+
return S(Cu, {
|
|
7264
7332
|
current: r,
|
|
7265
7333
|
steps: o,
|
|
7266
7334
|
isFirst: s,
|
|
@@ -7277,9 +7345,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7277
7345
|
goTo: f,
|
|
7278
7346
|
isFirst: s,
|
|
7279
7347
|
isLast: l
|
|
7280
|
-
}), (e, t) => (x(), c("div",
|
|
7348
|
+
}), (e, t) => (x(), c("div", wu, [E(e.$slots, "default")]));
|
|
7281
7349
|
}
|
|
7282
|
-
}),
|
|
7350
|
+
}), Eu = ["aria-label"], Du = /* @__PURE__ */ f({
|
|
7283
7351
|
__name: "UidWizardStep",
|
|
7284
7352
|
props: {
|
|
7285
7353
|
index: {},
|
|
@@ -7289,7 +7357,7 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7289
7357
|
}
|
|
7290
7358
|
},
|
|
7291
7359
|
setup(e) {
|
|
7292
|
-
let t = e, n = p(
|
|
7360
|
+
let t = e, n = p(Cu);
|
|
7293
7361
|
if (!n) throw Error("UidWizardStep must be inside UidWizard");
|
|
7294
7362
|
R(() => t.validate, (e, r) => {
|
|
7295
7363
|
r !== void 0 && n.unregisterValidator(t.index), e !== void 0 && n.registerValidator(t.index, e);
|
|
@@ -7300,22 +7368,22 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7300
7368
|
class: "uid-wizard-step",
|
|
7301
7369
|
role: "tabpanel",
|
|
7302
7370
|
"aria-label": `Шаг ${e.index + 1}`
|
|
7303
|
-
}, [E(t.$slots, "default")], 8,
|
|
7371
|
+
}, [E(t.$slots, "default")], 8, Eu)) : s("", !0);
|
|
7304
7372
|
}
|
|
7305
|
-
}),
|
|
7373
|
+
}), Ou = { class: "uid-pattern-header__inner" }, ku = {
|
|
7306
7374
|
key: 0,
|
|
7307
7375
|
class: "uid-pattern-header__logo"
|
|
7308
|
-
},
|
|
7376
|
+
}, Au = {
|
|
7309
7377
|
key: 1,
|
|
7310
7378
|
class: "uid-pattern-header__nav",
|
|
7311
7379
|
"aria-label": "Основная навигация"
|
|
7312
|
-
},
|
|
7380
|
+
}, ju = {
|
|
7313
7381
|
key: 2,
|
|
7314
7382
|
class: "uid-pattern-header__actions"
|
|
7315
|
-
},
|
|
7383
|
+
}, Mu = {
|
|
7316
7384
|
key: 3,
|
|
7317
7385
|
class: "uid-pattern-header__mobile"
|
|
7318
|
-
},
|
|
7386
|
+
}, Nu = /* @__PURE__ */ f({
|
|
7319
7387
|
__name: "UidHeader",
|
|
7320
7388
|
props: {
|
|
7321
7389
|
sticky: {
|
|
@@ -7336,38 +7404,38 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7336
7404
|
"uid-pattern-header--sticky": e.sticky,
|
|
7337
7405
|
"uid-pattern-header--bordered": e.bordered,
|
|
7338
7406
|
"uid-pattern-header--transparent": e.transparent
|
|
7339
|
-
}]) }, [l("div",
|
|
7340
|
-
t.$slots.logo ? (x(), c("div",
|
|
7341
|
-
t.$slots.nav ? (x(), c("nav",
|
|
7342
|
-
t.$slots.actions ? (x(), c("div",
|
|
7343
|
-
t.$slots.mobile ? (x(), c("div",
|
|
7407
|
+
}]) }, [l("div", Ou, [
|
|
7408
|
+
t.$slots.logo ? (x(), c("div", ku, [E(t.$slots, "logo")])) : s("", !0),
|
|
7409
|
+
t.$slots.nav ? (x(), c("nav", Au, [E(t.$slots, "nav")])) : s("", !0),
|
|
7410
|
+
t.$slots.actions ? (x(), c("div", ju, [E(t.$slots, "actions")])) : s("", !0),
|
|
7411
|
+
t.$slots.mobile ? (x(), c("div", Mu, [E(t.$slots, "mobile")])) : s("", !0)
|
|
7344
7412
|
])], 2));
|
|
7345
7413
|
}
|
|
7346
|
-
}),
|
|
7414
|
+
}), Pu = { class: "uid-pattern-footer__inner" }, Fu = {
|
|
7347
7415
|
key: 0,
|
|
7348
7416
|
class: "uid-pattern-footer__columns"
|
|
7349
|
-
},
|
|
7417
|
+
}, Iu = {
|
|
7350
7418
|
key: 1,
|
|
7351
7419
|
class: "uid-pattern-footer__content"
|
|
7352
|
-
},
|
|
7420
|
+
}, Lu = {
|
|
7353
7421
|
key: 2,
|
|
7354
7422
|
class: "uid-pattern-footer__bottom"
|
|
7355
|
-
},
|
|
7423
|
+
}, Ru = /* @__PURE__ */ f({
|
|
7356
7424
|
__name: "UidFooter",
|
|
7357
7425
|
props: { variant: { default: "minimal" } },
|
|
7358
7426
|
setup(e) {
|
|
7359
|
-
return (t, n) => (x(), c("footer", { class: _(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div",
|
|
7427
|
+
return (t, n) => (x(), c("footer", { class: _(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div", Pu, [t.$slots.columns ? (x(), c("div", Fu, [E(t.$slots, "columns")])) : t.$slots.default ? (x(), c("div", Iu, [E(t.$slots, "default")])) : s("", !0), t.$slots.bottom ? (x(), c("div", Lu, [E(t.$slots, "bottom")])) : s("", !0)])], 2));
|
|
7360
7428
|
}
|
|
7361
|
-
}),
|
|
7429
|
+
}), zu = {
|
|
7362
7430
|
key: 0,
|
|
7363
7431
|
class: "uid-pattern-sidebar__header"
|
|
7364
|
-
},
|
|
7432
|
+
}, Bu = {
|
|
7365
7433
|
class: "uid-pattern-sidebar__nav",
|
|
7366
7434
|
"aria-label": "Навигация"
|
|
7367
|
-
},
|
|
7435
|
+
}, Vu = {
|
|
7368
7436
|
key: 1,
|
|
7369
7437
|
class: "uid-pattern-sidebar__footer"
|
|
7370
|
-
},
|
|
7438
|
+
}, Hu = /* @__PURE__ */ f({
|
|
7371
7439
|
__name: "UidSidebar",
|
|
7372
7440
|
props: {
|
|
7373
7441
|
collapsed: {
|
|
@@ -7383,19 +7451,19 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7383
7451
|
style: v(e.width && !e.collapsed ? { "--uid-sidebar-width": e.width } : void 0),
|
|
7384
7452
|
"aria-label": "Боковая навигация"
|
|
7385
7453
|
}, [
|
|
7386
|
-
t.$slots.header ? (x(), c("div",
|
|
7387
|
-
l("nav",
|
|
7388
|
-
t.$slots.footer ? (x(), c("div",
|
|
7454
|
+
t.$slots.header ? (x(), c("div", zu, [E(t.$slots, "header")])) : s("", !0),
|
|
7455
|
+
l("nav", Bu, [E(t.$slots, "nav")]),
|
|
7456
|
+
t.$slots.footer ? (x(), c("div", Vu, [E(t.$slots, "footer")])) : s("", !0)
|
|
7389
7457
|
], 6));
|
|
7390
7458
|
}
|
|
7391
|
-
}),
|
|
7459
|
+
}), Uu = {
|
|
7392
7460
|
key: 0,
|
|
7393
7461
|
class: "uid-sidebar-item__icon",
|
|
7394
7462
|
"aria-hidden": "true"
|
|
7395
|
-
},
|
|
7463
|
+
}, Wu = { class: "uid-sidebar-item__label" }, Gu = {
|
|
7396
7464
|
key: 1,
|
|
7397
7465
|
class: "uid-sidebar-item__badge"
|
|
7398
|
-
},
|
|
7466
|
+
}, Ku = /* @__PURE__ */ f({
|
|
7399
7467
|
__name: "UidSidebarItem",
|
|
7400
7468
|
props: {
|
|
7401
7469
|
href: { default: void 0 },
|
|
@@ -7430,9 +7498,9 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7430
7498
|
tabindex: e.disabled ? -1 : void 0
|
|
7431
7499
|
}), {
|
|
7432
7500
|
default: z(() => [
|
|
7433
|
-
t.$slots.icon ? (x(), c("span",
|
|
7434
|
-
l("span",
|
|
7435
|
-
e.badge === void 0 ? s("", !0) : (x(), c("span",
|
|
7501
|
+
t.$slots.icon ? (x(), c("span", Uu, [E(t.$slots, "icon")])) : s("", !0),
|
|
7502
|
+
l("span", Wu, [E(t.$slots, "default")]),
|
|
7503
|
+
e.badge === void 0 ? s("", !0) : (x(), c("span", Gu, k(e.badge), 1))
|
|
7436
7504
|
]),
|
|
7437
7505
|
_: 3
|
|
7438
7506
|
}, 16, [
|
|
@@ -7442,10 +7510,10 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7442
7510
|
"tabindex"
|
|
7443
7511
|
]));
|
|
7444
7512
|
}
|
|
7445
|
-
}),
|
|
7513
|
+
}), qu = { class: "uid-sidebar-group" }, Ju = {
|
|
7446
7514
|
key: 0,
|
|
7447
7515
|
class: "uid-sidebar-group__title"
|
|
7448
|
-
},
|
|
7516
|
+
}, Yu = /* @__PURE__ */ f({
|
|
7449
7517
|
__name: "UidSidebarGroup",
|
|
7450
7518
|
props: {
|
|
7451
7519
|
title: { default: void 0 },
|
|
@@ -7455,29 +7523,29 @@ var Yn = /* @__PURE__ */ Gn(Kn, [["render", Jn]]), Xn = Symbol("uid-tabs"), Zn =
|
|
|
7455
7523
|
}
|
|
7456
7524
|
},
|
|
7457
7525
|
setup(e) {
|
|
7458
|
-
return (t, n) => (x(), c("div",
|
|
7526
|
+
return (t, n) => (x(), c("div", qu, [e.title ? (x(), c("p", Ju, k(e.title), 1)) : s("", !0), E(t.$slots, "default")]));
|
|
7459
7527
|
}
|
|
7460
|
-
}),
|
|
7528
|
+
}), Xu = {}, Zu = {
|
|
7461
7529
|
class: "uid-sidebar-divider",
|
|
7462
7530
|
role: "separator",
|
|
7463
7531
|
"aria-hidden": "true"
|
|
7464
7532
|
};
|
|
7465
|
-
function
|
|
7466
|
-
return x(), c("div",
|
|
7533
|
+
function Qu(e, t) {
|
|
7534
|
+
return x(), c("div", Zu);
|
|
7467
7535
|
}
|
|
7468
|
-
var
|
|
7536
|
+
var $u = /* @__PURE__ */ Gn(Xu, [["render", Qu]]), ed = { class: "uid-pattern-page-header" }, td = {
|
|
7469
7537
|
key: 0,
|
|
7470
7538
|
class: "uid-pattern-page-header__breadcrumb"
|
|
7471
|
-
},
|
|
7539
|
+
}, nd = { class: "uid-pattern-page-header__row" }, rd = { class: "uid-pattern-page-header__heading" }, id = { class: "uid-pattern-page-header__title" }, ad = {
|
|
7472
7540
|
key: 0,
|
|
7473
7541
|
class: "uid-pattern-page-header__description"
|
|
7474
|
-
},
|
|
7542
|
+
}, od = {
|
|
7475
7543
|
key: 0,
|
|
7476
7544
|
class: "uid-pattern-page-header__actions"
|
|
7477
|
-
},
|
|
7545
|
+
}, sd = {
|
|
7478
7546
|
key: 1,
|
|
7479
7547
|
class: "uid-pattern-page-header__tabs"
|
|
7480
|
-
},
|
|
7548
|
+
}, cd = /* @__PURE__ */ f({
|
|
7481
7549
|
__name: "UidPageHeader",
|
|
7482
7550
|
props: {
|
|
7483
7551
|
title: { default: void 0 },
|
|
@@ -7490,9 +7558,9 @@ var Qu = /* @__PURE__ */ Gn(Yu, [["render", Zu]]), $u = { class: "uid-pattern-pa
|
|
|
7490
7558
|
emits: ["back"],
|
|
7491
7559
|
setup(t, { emit: n }) {
|
|
7492
7560
|
let r = n;
|
|
7493
|
-
return (n, i) => (x(), c("div",
|
|
7494
|
-
n.$slots.breadcrumb ? (x(), c("div",
|
|
7495
|
-
l("div",
|
|
7561
|
+
return (n, i) => (x(), c("div", ed, [
|
|
7562
|
+
n.$slots.breadcrumb ? (x(), c("div", td, [E(n.$slots, "breadcrumb")])) : s("", !0),
|
|
7563
|
+
l("div", nd, [l("div", rd, [t.back ? (x(), c("button", {
|
|
7496
7564
|
key: 0,
|
|
7497
7565
|
type: "button",
|
|
7498
7566
|
class: "uid-pattern-page-header__back",
|
|
@@ -7501,42 +7569,42 @@ var Qu = /* @__PURE__ */ Gn(Yu, [["render", Zu]]), $u = { class: "uid-pattern-pa
|
|
|
7501
7569
|
}, [d(e, {
|
|
7502
7570
|
icon: j(ee),
|
|
7503
7571
|
size: 20
|
|
7504
|
-
}, null, 8, ["icon"])])) : s("", !0), l("div", null, [l("h1",
|
|
7505
|
-
n.$slots.tabs ? (x(), c("div",
|
|
7572
|
+
}, null, 8, ["icon"])])) : s("", !0), l("div", null, [l("h1", id, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), t.description || n.$slots.description ? (x(), c("p", ad, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0)])]), n.$slots.actions ? (x(), c("div", od, [E(n.$slots, "actions")])) : s("", !0)]),
|
|
7573
|
+
n.$slots.tabs ? (x(), c("div", sd, [E(n.$slots, "tabs")])) : s("", !0)
|
|
7506
7574
|
]));
|
|
7507
7575
|
}
|
|
7508
|
-
}),
|
|
7576
|
+
}), ld = { class: "uid-pattern-empty-state" }, ud = { class: "uid-pattern-empty-state__illustration" }, dd = { class: "uid-pattern-empty-state__content" }, fd = { class: "uid-pattern-empty-state__title" }, pd = {
|
|
7509
7577
|
key: 0,
|
|
7510
7578
|
class: "uid-pattern-empty-state__description"
|
|
7511
|
-
},
|
|
7579
|
+
}, md = {
|
|
7512
7580
|
key: 0,
|
|
7513
7581
|
class: "uid-pattern-empty-state__actions"
|
|
7514
|
-
},
|
|
7582
|
+
}, hd = /* @__PURE__ */ f({
|
|
7515
7583
|
__name: "UidEmptyState",
|
|
7516
7584
|
props: {
|
|
7517
7585
|
title: { default: "Ничего не найдено" },
|
|
7518
7586
|
description: { default: void 0 }
|
|
7519
7587
|
},
|
|
7520
7588
|
setup(t) {
|
|
7521
|
-
return (n, r) => (x(), c("div",
|
|
7522
|
-
l("div",
|
|
7589
|
+
return (n, r) => (x(), c("div", ld, [
|
|
7590
|
+
l("div", ud, [E(n.$slots, "illustration", {}, () => [d(e, {
|
|
7523
7591
|
icon: j(ce),
|
|
7524
7592
|
size: 48
|
|
7525
7593
|
}, null, 8, ["icon"])])]),
|
|
7526
|
-
l("div",
|
|
7527
|
-
n.$slots.actions ? (x(), c("div",
|
|
7594
|
+
l("div", dd, [l("h2", fd, [E(n.$slots, "title", {}, () => [u(k(t.title), 1)])]), t.description || n.$slots.description ? (x(), c("p", pd, [E(n.$slots, "description", {}, () => [u(k(t.description), 1)])])) : s("", !0)]),
|
|
7595
|
+
n.$slots.actions ? (x(), c("div", md, [E(n.$slots, "actions")])) : s("", !0)
|
|
7528
7596
|
]));
|
|
7529
7597
|
}
|
|
7530
|
-
}),
|
|
7598
|
+
}), gd = { class: "uid-pattern-error-state" }, _d = { class: "uid-pattern-error-state__illustration" }, vd = {
|
|
7531
7599
|
key: 0,
|
|
7532
7600
|
class: "uid-pattern-error-state__code"
|
|
7533
|
-
},
|
|
7601
|
+
}, yd = { class: "uid-pattern-error-state__content" }, bd = { class: "uid-pattern-error-state__title" }, xd = {
|
|
7534
7602
|
key: 0,
|
|
7535
7603
|
class: "uid-pattern-error-state__description"
|
|
7536
|
-
},
|
|
7604
|
+
}, Sd = {
|
|
7537
7605
|
key: 1,
|
|
7538
7606
|
class: "uid-pattern-error-state__actions"
|
|
7539
|
-
},
|
|
7607
|
+
}, Cd = /* @__PURE__ */ f({
|
|
7540
7608
|
__name: "UidErrorState",
|
|
7541
7609
|
props: {
|
|
7542
7610
|
code: { default: void 0 },
|
|
@@ -7561,23 +7629,23 @@ var Qu = /* @__PURE__ */ Gn(Yu, [["render", Zu]]), $u = { class: "uid-pattern-pa
|
|
|
7561
7629
|
description: "Проверьте подключение к интернету и попробуйте снова."
|
|
7562
7630
|
}
|
|
7563
7631
|
}, i = a(() => n.code ? r[n.code] ?? null : null), o = a(() => i.value?.icon ?? U), f = a(() => n.title ?? i.value?.title ?? "Что-то пошло не так"), p = a(() => n.description ?? i.value?.description);
|
|
7564
|
-
return (n, r) => (x(), c("div",
|
|
7565
|
-
l("div",
|
|
7632
|
+
return (n, r) => (x(), c("div", gd, [
|
|
7633
|
+
l("div", _d, [E(n.$slots, "illustration", {}, () => [d(e, {
|
|
7566
7634
|
icon: o.value,
|
|
7567
7635
|
size: 48
|
|
7568
7636
|
}, null, 8, ["icon"])])]),
|
|
7569
|
-
t.code ? (x(), c("div",
|
|
7570
|
-
l("div",
|
|
7571
|
-
n.$slots.actions ? (x(), c("div",
|
|
7637
|
+
t.code ? (x(), c("div", vd, k(t.code), 1)) : s("", !0),
|
|
7638
|
+
l("div", yd, [l("h2", bd, [E(n.$slots, "title", {}, () => [u(k(f.value), 1)])]), p.value || n.$slots.description ? (x(), c("p", xd, [E(n.$slots, "description", {}, () => [u(k(p.value), 1)])])) : s("", !0)]),
|
|
7639
|
+
n.$slots.actions ? (x(), c("div", Sd, [E(n.$slots, "actions")])) : s("", !0)
|
|
7572
7640
|
]));
|
|
7573
7641
|
}
|
|
7574
|
-
}),
|
|
7642
|
+
}), wd = {
|
|
7575
7643
|
key: 0,
|
|
7576
7644
|
class: "uid-layout-simple__header"
|
|
7577
|
-
},
|
|
7645
|
+
}, Td = { class: "uid-layout-simple__content" }, Ed = {
|
|
7578
7646
|
key: 1,
|
|
7579
7647
|
class: "uid-layout-simple__footer"
|
|
7580
|
-
},
|
|
7648
|
+
}, Dd = /* @__PURE__ */ f({
|
|
7581
7649
|
__name: "UidSimpleLayout",
|
|
7582
7650
|
props: { full: {
|
|
7583
7651
|
type: Boolean,
|
|
@@ -7585,26 +7653,26 @@ var Qu = /* @__PURE__ */ Gn(Yu, [["render", Zu]]), $u = { class: "uid-pattern-pa
|
|
|
7585
7653
|
} },
|
|
7586
7654
|
setup(e) {
|
|
7587
7655
|
return (t, n) => (x(), c("div", { class: _(["uid-layout-simple", { "uid-layout-simple--full": e.full }]) }, [
|
|
7588
|
-
t.$slots.header ? (x(), c("div",
|
|
7589
|
-
l("main",
|
|
7590
|
-
t.$slots.footer ? (x(), c("div",
|
|
7656
|
+
t.$slots.header ? (x(), c("div", wd, [E(t.$slots, "header")])) : s("", !0),
|
|
7657
|
+
l("main", Td, [E(t.$slots, "default")]),
|
|
7658
|
+
t.$slots.footer ? (x(), c("div", Ed, [E(t.$slots, "footer")])) : s("", !0)
|
|
7591
7659
|
], 2));
|
|
7592
7660
|
}
|
|
7593
|
-
}),
|
|
7594
|
-
function
|
|
7595
|
-
let e = p(
|
|
7661
|
+
}), Od = Symbol("uid-sidebar-layout");
|
|
7662
|
+
function kd() {
|
|
7663
|
+
let e = p(Od);
|
|
7596
7664
|
if (!e) throw Error("useSidebar() must be used inside UidSidebarLayout");
|
|
7597
7665
|
return e;
|
|
7598
7666
|
}
|
|
7599
7667
|
//#endregion
|
|
7600
7668
|
//#region src/layouts/Sidebar/UidSidebarLayout.vue?vue&type=script&setup=true&lang.ts
|
|
7601
|
-
var
|
|
7669
|
+
var Ad = { class: "uid-layout-sidebar__sidebar" }, jd = { class: "uid-layout-sidebar__main" }, Md = {
|
|
7602
7670
|
key: 0,
|
|
7603
7671
|
class: "uid-layout-sidebar__main-header"
|
|
7604
|
-
},
|
|
7672
|
+
}, Nd = { class: "uid-layout-sidebar__main-content" }, Pd = {
|
|
7605
7673
|
key: 1,
|
|
7606
7674
|
class: "uid-layout-sidebar__main-footer"
|
|
7607
|
-
},
|
|
7675
|
+
}, Fd = /* @__PURE__ */ f({
|
|
7608
7676
|
__name: "UidSidebarLayout",
|
|
7609
7677
|
props: /* @__PURE__ */ m({ sidebarWidth: { default: void 0 } }, {
|
|
7610
7678
|
modelValue: {
|
|
@@ -7622,7 +7690,7 @@ var kd = { class: "uid-layout-sidebar__sidebar" }, Ad = { class: "uid-layout-sid
|
|
|
7622
7690
|
}, o = () => {
|
|
7623
7691
|
n.value = !0;
|
|
7624
7692
|
};
|
|
7625
|
-
S(
|
|
7693
|
+
S(Od, {
|
|
7626
7694
|
collapsed: n,
|
|
7627
7695
|
toggle: r,
|
|
7628
7696
|
open: i,
|
|
@@ -7633,58 +7701,58 @@ var kd = { class: "uid-layout-sidebar__sidebar" }, Ad = { class: "uid-layout-sid
|
|
|
7633
7701
|
class: _(["uid-layout-sidebar", { "uid-layout-sidebar--collapsed": n.value }]),
|
|
7634
7702
|
style: v(u.value)
|
|
7635
7703
|
}, [
|
|
7636
|
-
l("aside",
|
|
7704
|
+
l("aside", Ad, [E(e.$slots, "sidebar")]),
|
|
7637
7705
|
l("div", {
|
|
7638
7706
|
class: "uid-layout-sidebar__backdrop",
|
|
7639
7707
|
"aria-hidden": "true",
|
|
7640
7708
|
onClick: o
|
|
7641
7709
|
}),
|
|
7642
|
-
l("div",
|
|
7643
|
-
e.$slots.header ? (x(), c("div",
|
|
7644
|
-
l("main",
|
|
7645
|
-
e.$slots.footer ? (x(), c("div",
|
|
7710
|
+
l("div", jd, [
|
|
7711
|
+
e.$slots.header ? (x(), c("div", Md, [E(e.$slots, "header")])) : s("", !0),
|
|
7712
|
+
l("main", Nd, [E(e.$slots, "default")]),
|
|
7713
|
+
e.$slots.footer ? (x(), c("div", Pd, [E(e.$slots, "footer")])) : s("", !0)
|
|
7646
7714
|
])
|
|
7647
7715
|
], 6));
|
|
7648
7716
|
}
|
|
7649
|
-
}),
|
|
7717
|
+
}), Id = {
|
|
7650
7718
|
key: 0,
|
|
7651
7719
|
class: "uid-layout-auth__brand"
|
|
7652
|
-
},
|
|
7720
|
+
}, Ld = { class: "uid-layout-auth__main" }, Rd = { class: "uid-layout-auth__card" }, zd = {
|
|
7653
7721
|
key: 0,
|
|
7654
7722
|
class: "uid-layout-auth__footer"
|
|
7655
|
-
},
|
|
7723
|
+
}, Bd = /* @__PURE__ */ f({
|
|
7656
7724
|
__name: "UidAuthLayout",
|
|
7657
7725
|
props: { variant: { default: "centered" } },
|
|
7658
7726
|
setup(e) {
|
|
7659
|
-
return (t, n) => (x(), c("div", { class: _(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (x(), c("div",
|
|
7727
|
+
return (t, n) => (x(), c("div", { class: _(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (x(), c("div", Id, [E(t.$slots, "brand")])) : s("", !0), l("div", Ld, [l("div", Rd, [E(t.$slots, "default")]), t.$slots.footer ? (x(), c("div", zd, [E(t.$slots, "footer")])) : s("", !0)])], 2));
|
|
7660
7728
|
}
|
|
7661
|
-
}),
|
|
7729
|
+
}), Vd = { class: "uid-layout-wizard" }, Hd = {
|
|
7662
7730
|
key: 0,
|
|
7663
7731
|
class: "uid-layout-wizard__header"
|
|
7664
|
-
},
|
|
7732
|
+
}, Ud = {
|
|
7665
7733
|
key: 1,
|
|
7666
7734
|
class: "uid-layout-wizard__stepper"
|
|
7667
|
-
},
|
|
7735
|
+
}, Wd = { class: "uid-layout-wizard__content" }, Gd = {
|
|
7668
7736
|
key: 2,
|
|
7669
7737
|
class: "uid-layout-wizard__nav"
|
|
7670
|
-
},
|
|
7738
|
+
}, Kd = /* @__PURE__ */ f({
|
|
7671
7739
|
__name: "UidWizardLayout",
|
|
7672
7740
|
setup(e) {
|
|
7673
|
-
return (e, t) => (x(), c("div",
|
|
7674
|
-
e.$slots.header ? (x(), c("div",
|
|
7675
|
-
e.$slots.stepper ? (x(), c("div",
|
|
7676
|
-
l("main",
|
|
7677
|
-
e.$slots.nav ? (x(), c("div",
|
|
7741
|
+
return (e, t) => (x(), c("div", Vd, [
|
|
7742
|
+
e.$slots.header ? (x(), c("div", Hd, [E(e.$slots, "header")])) : s("", !0),
|
|
7743
|
+
e.$slots.stepper ? (x(), c("div", Ud, [E(e.$slots, "stepper")])) : s("", !0),
|
|
7744
|
+
l("main", Wd, [E(e.$slots, "default")]),
|
|
7745
|
+
e.$slots.nav ? (x(), c("div", Gd, [E(e.$slots, "nav")])) : s("", !0)
|
|
7678
7746
|
]));
|
|
7679
7747
|
}
|
|
7680
|
-
}),
|
|
7748
|
+
}), qd = /* @__PURE__ */ f({
|
|
7681
7749
|
__name: "UidLocaleProvider",
|
|
7682
7750
|
props: { locale: {} },
|
|
7683
7751
|
setup(e) {
|
|
7684
7752
|
let t = e;
|
|
7685
7753
|
return Ht(a(() => t.locale)), (e, t) => E(e.$slots, "default");
|
|
7686
7754
|
}
|
|
7687
|
-
}),
|
|
7755
|
+
}), Jd = {
|
|
7688
7756
|
common: {
|
|
7689
7757
|
clear: "Clear",
|
|
7690
7758
|
close: "Close",
|
|
@@ -7783,19 +7851,19 @@ var kd = { class: "uid-layout-sidebar__sidebar" }, Ad = { class: "uid-layout-sid
|
|
|
7783
7851
|
page: (e) => `Page ${e}`,
|
|
7784
7852
|
pageSize: (e) => `${e} per page`
|
|
7785
7853
|
}
|
|
7786
|
-
},
|
|
7787
|
-
function
|
|
7854
|
+
}, Yd = w("light");
|
|
7855
|
+
function Xd() {
|
|
7788
7856
|
let e = null;
|
|
7789
7857
|
function t(e) {
|
|
7790
|
-
|
|
7858
|
+
Yd.value = e, document.documentElement.dataset.theme = e;
|
|
7791
7859
|
}
|
|
7792
7860
|
function n() {
|
|
7793
|
-
t(
|
|
7861
|
+
t(Yd.value === "light" ? "dark" : "light");
|
|
7794
7862
|
}
|
|
7795
7863
|
function r() {
|
|
7796
7864
|
let e = document.documentElement.dataset.theme;
|
|
7797
7865
|
if (e === "light" || e === "dark") {
|
|
7798
|
-
|
|
7866
|
+
Yd.value = e;
|
|
7799
7867
|
return;
|
|
7800
7868
|
}
|
|
7801
7869
|
let n = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
@@ -7807,7 +7875,7 @@ function Yd() {
|
|
|
7807
7875
|
e.addEventListener("change", n), b(() => e?.removeEventListener("change", n));
|
|
7808
7876
|
}
|
|
7809
7877
|
return {
|
|
7810
|
-
theme:
|
|
7878
|
+
theme: Yd,
|
|
7811
7879
|
setTheme: t,
|
|
7812
7880
|
toggle: n,
|
|
7813
7881
|
initFromSystem: r,
|
|
@@ -7816,27 +7884,27 @@ function Yd() {
|
|
|
7816
7884
|
}
|
|
7817
7885
|
//#endregion
|
|
7818
7886
|
//#region src/composables/useWizard.ts
|
|
7819
|
-
function
|
|
7820
|
-
let e = p(
|
|
7887
|
+
function Zd() {
|
|
7888
|
+
let e = p(Cu);
|
|
7821
7889
|
if (!e) throw Error("useWizard() must be used inside UidWizard");
|
|
7822
7890
|
return e;
|
|
7823
7891
|
}
|
|
7824
7892
|
//#endregion
|
|
7825
7893
|
//#region src/composables/useCommandPalette.ts
|
|
7826
|
-
var
|
|
7827
|
-
function
|
|
7894
|
+
var Qd = w(!1);
|
|
7895
|
+
function $d() {
|
|
7828
7896
|
return {
|
|
7829
|
-
open:
|
|
7897
|
+
open: Qd,
|
|
7830
7898
|
show: () => {
|
|
7831
|
-
|
|
7899
|
+
Qd.value = !0;
|
|
7832
7900
|
},
|
|
7833
7901
|
hide: () => {
|
|
7834
|
-
|
|
7902
|
+
Qd.value = !1;
|
|
7835
7903
|
},
|
|
7836
7904
|
toggle: () => {
|
|
7837
|
-
|
|
7905
|
+
Qd.value = !Qd.value;
|
|
7838
7906
|
}
|
|
7839
7907
|
};
|
|
7840
7908
|
}
|
|
7841
7909
|
//#endregion
|
|
7842
|
-
export { Xr as UidAccordion, ni as UidAccordionItem,
|
|
7910
|
+
export { Xr as UidAccordion, ni as UidAccordionItem, Is as UidAffix, Jt as UidAlert, Gs as UidAnchor, Bd as UidAuthLayout, Br as UidAvatar, Ur as UidAvatarGroup, Ps as UidBackTop, Rt as UidBadge, ar as UidBreadcrumb, lr as UidBreadcrumbItem, Se as UidButton, El as UidCalendar, Lr as UidCard, Oc as UidCarousel, fl as UidCascader, ut as UidCheckbox, ts as UidCode, Zi as UidColorPicker, uo as UidCombobox, sa as UidCommand, Su as UidContainer, Pi as UidDatePicker, Wa as UidDateRangePicker, Es as UidDescriptionItem, Ss as UidDescriptionList, qr as UidDivider, kn as UidDrawer, hd as UidEmptyState, Cd as UidErrorState, qo as UidFileUpload, Ru as UidFooter, Nt as UidFormField, ru as UidGauge, xu as UidGrid, Nu as UidHeader, du as UidHeatmap, e as UidIcon, Er as UidInfiniteScroll, et as UidInput, Ot as UidLabel, ur as UidLink, Cr as UidLoadMore, qd as UidLocaleProvider, oc as UidMention, Hn as UidMenu, Wn as UidMenuItem, Yn as UidMenuSeparator, Sn as UidModal, Sc as UidNotificationBadge, ha as UidNumberInput, cd as UidPageHeader, jr as UidPageSize, gr as UidPagination, br as UidPaginationCursor, Rn as UidPopover, dn as UidProgress, Hl as UidProgressRing, mt as UidRadio, bt as UidRadioGroup, ss as UidRating, Ms as UidResult, wi as UidSelect, Hu as UidSidebar, $u as UidSidebarDivider, Yu as UidSidebarGroup, Ku as UidSidebarItem, Fd as UidSidebarLayout, Dd as UidSimpleLayout, Lt as UidSkeleton, Bi as UidSlider, Il as UidSparkline, Ft as UidSpinner, us as UidSplitter, bu as UidStack, ys as UidStat, yu as UidStepper, Tt as UidSwitch, tr as UidTab, rr as UidTabPanel, mi as UidTable, $n as UidTabs, Gr as UidTag, Xa as UidTagsInput, at as UidTextarea, wa as UidTimePicker, Co as UidTimeline, jo as UidTimelineItem, en as UidToast, an as UidToastProvider, Fn as UidTooltip, $s as UidTour, el as UidTransfer, xo as UidTreeItem, yc as UidTreeSelect, So as UidTreeView, Fi as UidVirtualList, zs as UidWatermark, Tu as UidWizard, Kd as UidWizardLayout, Du as UidWizardStep, Ae as email, Jd as en, Z as getMessage, ze as inList, Ne as integer, Fe as max, Le as maxValue, Pe as min, Ie as minValue, ke as nullable, Me as numeric, We as parseRules, Ht as provideLocale, Re as regex, Oe as required, Ve as requiredIf, He as requiredUnless, zt as ru, Ge as runRules, Be as sameAs, Te as setMessages, je as url, $d as useCommandPalette, Ke as useField, pn as useFocusTrap, $ as useLocale, Mn as usePopover, hn as useScrollLock, kd as useSidebar, Xd as useTheme, rn as useToast, Zd as useWizard };
|