@dskripchenko/ui 1.10.0 → 1.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/components/Breadcrumb/UidBreadcrumb.vue.d.ts +25 -1
- package/dist/components/Markdown/UidMarkdown.vue.d.ts +43 -0
- package/dist/components/Markdown/blockRenderers.d.ts +36 -0
- package/dist/components/Markdown/index.d.ts +6 -0
- package/dist/components/Markdown/markdown.d.ts +71 -0
- package/dist/index.cjs +13 -2
- package/dist/index.d.ts +2 -0
- package/dist/index.mjs +924 -422
- package/dist/locales/types.d.ts +13 -0
- package/dist/styles/all.css +1 -1
- package/dist/styles/index.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -244,6 +244,16 @@ var Oe = [
|
|
|
244
244
|
label: "Палитра команд"
|
|
245
245
|
},
|
|
246
246
|
anchor: { label: "Содержание" },
|
|
247
|
+
markdown: {
|
|
248
|
+
toc: "На этой странице",
|
|
249
|
+
note: "Примечание",
|
|
250
|
+
tip: "Совет",
|
|
251
|
+
important: "Важно",
|
|
252
|
+
warning: "Внимание",
|
|
253
|
+
caution: "Осторожно",
|
|
254
|
+
blockPending: "Отрисовка…",
|
|
255
|
+
blockError: "Не удалось отрисовать блок"
|
|
256
|
+
},
|
|
247
257
|
heatmap: {
|
|
248
258
|
summary: (e) => `Тепловая карта активности: ${e} событий`,
|
|
249
259
|
less: "Меньше",
|
|
@@ -2053,7 +2063,12 @@ var Cr = /* @__PURE__ */ yr(br, [["render", Sr]]), wr = [
|
|
|
2053
2063
|
collapseMenu: {
|
|
2054
2064
|
type: Boolean,
|
|
2055
2065
|
default: !0
|
|
2056
|
-
}
|
|
2066
|
+
},
|
|
2067
|
+
collapseFirst: {
|
|
2068
|
+
type: Boolean,
|
|
2069
|
+
default: !1
|
|
2070
|
+
},
|
|
2071
|
+
container: { default: null }
|
|
2057
2072
|
},
|
|
2058
2073
|
setup(e, { expose: r }) {
|
|
2059
2074
|
let i = e, u = $(), d = O(0);
|
|
@@ -2073,80 +2088,115 @@ var Cr = /* @__PURE__ */ yr(br, [["render", Sr]]), wr = [
|
|
|
2073
2088
|
return;
|
|
2074
2089
|
}
|
|
2075
2090
|
if (g.value = !0, h.value.length > 0 && (h.value = []), await v(), e !== D) return;
|
|
2076
|
-
let t = p.value, n = C(), r = t?.clientWidth ?? 0, a = n.map((e) => e.getBoundingClientRect().width), o = a.reduce((e, t) => e + t, 0), s =
|
|
2077
|
-
|
|
2091
|
+
let t = p.value, n = C(), r = t?.clientWidth ?? 0, a = n.map((e) => e.getBoundingClientRect().width), o = a.reduce((e, t) => e + t, 0), s = n.slice(1, -1);
|
|
2092
|
+
i.collapseFirst && n.length > 1 && s.push(n[0]);
|
|
2093
|
+
let c = 0;
|
|
2094
|
+
if (r > 0 && o > r && n.length > 1) {
|
|
2078
2095
|
let e = m.value?.getBoundingClientRect().width ?? 0;
|
|
2079
|
-
for (
|
|
2096
|
+
for (; c < s.length;) {
|
|
2097
|
+
let t = s[c++];
|
|
2098
|
+
if (o -= a[n.indexOf(t)], o + e <= r) break;
|
|
2099
|
+
}
|
|
2100
|
+
}
|
|
2101
|
+
let l = (e) => n.filter((t) => s.slice(0, e).includes(t));
|
|
2102
|
+
for (h.value = l(c); t && c > 0 && c < s.length;) {
|
|
2103
|
+
if (await v(), e !== D) return;
|
|
2104
|
+
if (t.scrollWidth <= t.clientWidth + .5) break;
|
|
2105
|
+
h.value = l(++c);
|
|
2080
2106
|
}
|
|
2081
|
-
|
|
2107
|
+
g.value = !1;
|
|
2082
2108
|
}
|
|
2083
2109
|
function M() {
|
|
2084
2110
|
j();
|
|
2085
2111
|
}
|
|
2086
|
-
let I = null, R = null;
|
|
2087
|
-
function B() {
|
|
2088
|
-
V(), i.collapse && (typeof ResizeObserver < "u" && f.value && (I = new ResizeObserver(M), I.observe(f.value)), typeof MutationObserver < "u" && p.value && (R = new MutationObserver(M), R.observe(p.value, { childList: !0 })));
|
|
2089
|
-
}
|
|
2112
|
+
let I = null, R = null, B = /* @__PURE__ */ new WeakMap();
|
|
2090
2113
|
function V() {
|
|
2114
|
+
let e = i.container;
|
|
2115
|
+
return e ? typeof e == "string" ? f.value?.closest(e) ?? null : e : null;
|
|
2116
|
+
}
|
|
2117
|
+
function H(e) {
|
|
2118
|
+
let t = !1;
|
|
2119
|
+
for (let n of e) {
|
|
2120
|
+
let e = n.contentRect.width;
|
|
2121
|
+
B.get(n.target) !== e && (B.set(n.target, e), t = !0);
|
|
2122
|
+
}
|
|
2123
|
+
t && M();
|
|
2124
|
+
}
|
|
2125
|
+
function U() {
|
|
2126
|
+
if (W(), !i.collapse) return;
|
|
2127
|
+
let e = f.value;
|
|
2128
|
+
if (typeof ResizeObserver < "u" && e) {
|
|
2129
|
+
I = new ResizeObserver(H);
|
|
2130
|
+
let t = new Set([e]);
|
|
2131
|
+
e.parentElement && t.add(e.parentElement);
|
|
2132
|
+
let n = V();
|
|
2133
|
+
n && t.add(n);
|
|
2134
|
+
for (let e of t) I.observe(e);
|
|
2135
|
+
}
|
|
2136
|
+
typeof MutationObserver < "u" && p.value && (R = new MutationObserver(M), R.observe(p.value, { childList: !0 }));
|
|
2137
|
+
}
|
|
2138
|
+
function W() {
|
|
2091
2139
|
I?.disconnect(), R?.disconnect(), I = null, R = null;
|
|
2092
2140
|
}
|
|
2093
2141
|
S(() => {
|
|
2094
|
-
|
|
2142
|
+
U(), M();
|
|
2095
2143
|
}), G(() => i.collapse, () => {
|
|
2096
|
-
|
|
2097
|
-
}),
|
|
2098
|
-
|
|
2144
|
+
U(), M(), i.collapse || ae();
|
|
2145
|
+
}), G(() => i.container, () => {
|
|
2146
|
+
U(), M();
|
|
2147
|
+
}), G(() => i.collapseFirst, M), x(() => {
|
|
2148
|
+
W(), ie();
|
|
2099
2149
|
});
|
|
2100
|
-
let
|
|
2150
|
+
let K = O(!1), q = O(null), J = O(null), Y = z(), { floatingStyle: X, update: Z } = tr(q, J, {
|
|
2101
2151
|
placement: "bottom-start",
|
|
2102
2152
|
offset: 4
|
|
2103
2153
|
});
|
|
2104
|
-
function
|
|
2154
|
+
function ee(e) {
|
|
2105
2155
|
return e.querySelector(":scope > :not(.uid-breadcrumb__separator):not(.uid-breadcrumb__ellipsis)");
|
|
2106
2156
|
}
|
|
2107
|
-
let
|
|
2108
|
-
let t =
|
|
2157
|
+
let te = a(() => h.value.map((e) => {
|
|
2158
|
+
let t = ee(e), n = t && t.matches("a, button") ? t : null;
|
|
2109
2159
|
return {
|
|
2110
2160
|
el: e,
|
|
2111
2161
|
label: t?.textContent?.trim() ?? "",
|
|
2112
2162
|
target: n
|
|
2113
2163
|
};
|
|
2114
2164
|
}));
|
|
2115
|
-
function
|
|
2116
|
-
return Array.from(
|
|
2165
|
+
function ne() {
|
|
2166
|
+
return Array.from(J.value?.querySelectorAll("[role=\"menuitem\"]") ?? []);
|
|
2117
2167
|
}
|
|
2118
|
-
async function
|
|
2119
|
-
|
|
2168
|
+
async function re(e) {
|
|
2169
|
+
q.value = e, K.value = !0, await v(), Z(), ne()[0]?.focus(), document.addEventListener("pointerdown", oe), window.addEventListener("resize", Z), window.addEventListener("scroll", Z, !0);
|
|
2120
2170
|
}
|
|
2121
|
-
function
|
|
2122
|
-
document.removeEventListener("pointerdown",
|
|
2171
|
+
function ie() {
|
|
2172
|
+
document.removeEventListener("pointerdown", oe), window.removeEventListener("resize", Z), window.removeEventListener("scroll", Z, !0);
|
|
2123
2173
|
}
|
|
2124
|
-
function
|
|
2125
|
-
|
|
2174
|
+
function ae(e = !1) {
|
|
2175
|
+
K.value && (K.value = !1, ie(), e && q.value?.focus());
|
|
2126
2176
|
}
|
|
2127
|
-
function
|
|
2128
|
-
|
|
2177
|
+
function Q(e) {
|
|
2178
|
+
K.value ? ae() : re(e);
|
|
2129
2179
|
}
|
|
2130
|
-
function
|
|
2180
|
+
function oe(e) {
|
|
2131
2181
|
let t = e.target;
|
|
2132
|
-
|
|
2182
|
+
J.value?.contains(t) || q.value?.contains(t) || ae();
|
|
2133
2183
|
}
|
|
2134
|
-
function
|
|
2135
|
-
e.target && (
|
|
2184
|
+
function se(e) {
|
|
2185
|
+
e.target && (ae(), e.target.click());
|
|
2136
2186
|
}
|
|
2137
|
-
function
|
|
2138
|
-
let t =
|
|
2139
|
-
e.key === "ArrowDown" ? (e.preventDefault(), t[(n + 1) % t.length]?.focus()) : e.key === "ArrowUp" ? (e.preventDefault(), t[(n - 1 + t.length) % t.length]?.focus()) : e.key === "Home" ? (e.preventDefault(), t[0]?.focus()) : e.key === "End" ? (e.preventDefault(), t[t.length - 1]?.focus()) : e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(),
|
|
2187
|
+
function ce(e) {
|
|
2188
|
+
let t = ne(), n = t.indexOf(document.activeElement);
|
|
2189
|
+
e.key === "ArrowDown" ? (e.preventDefault(), t[(n + 1) % t.length]?.focus()) : e.key === "ArrowUp" ? (e.preventDefault(), t[(n - 1 + t.length) % t.length]?.focus()) : e.key === "Home" ? (e.preventDefault(), t[0]?.focus()) : e.key === "End" ? (e.preventDefault(), t[t.length - 1]?.focus()) : e.key === "Escape" ? (e.preventDefault(), e.stopPropagation(), ae(!0)) : e.key === "Tab" && ae();
|
|
2140
2190
|
}
|
|
2141
2191
|
return G(h, (e) => {
|
|
2142
|
-
e.length === 0 &&
|
|
2192
|
+
e.length === 0 && ae();
|
|
2143
2193
|
}), E(Br, {
|
|
2144
2194
|
tick: d,
|
|
2145
2195
|
hidden: h,
|
|
2146
2196
|
menu: F(i, "collapseMenu"),
|
|
2147
|
-
menuId:
|
|
2148
|
-
menuOpen:
|
|
2149
|
-
toggleMenu:
|
|
2197
|
+
menuId: Y,
|
|
2198
|
+
menuOpen: K,
|
|
2199
|
+
toggleMenu: Q
|
|
2150
2200
|
}), r({ recompute: j }), (r, i) => (T(), c("nav", {
|
|
2151
2201
|
ref_key: "navRef",
|
|
2152
2202
|
ref: f,
|
|
@@ -2170,28 +2220,28 @@ var Cr = /* @__PURE__ */ yr(br, [["render", Sr]]), wr = [
|
|
|
2170
2220
|
class: "uid-breadcrumb__item uid-breadcrumb__probe",
|
|
2171
2221
|
style: b({ "--uid-breadcrumb-sep": `'${e.separator}'` }),
|
|
2172
2222
|
"aria-hidden": "true"
|
|
2173
|
-
}, [
|
|
2223
|
+
}, [i[0] ||= l("span", { class: "uid-breadcrumb__separator" }, null, -1), l("span", { class: y(["uid-breadcrumb__ellipsis", { "uid-breadcrumb__ellipsis--button": e.collapseMenu }]) }, "…", 2)], 4)) : s("", !0),
|
|
2174
2224
|
e.collapse && e.collapseMenu ? (T(), o(n, {
|
|
2175
2225
|
key: 1,
|
|
2176
2226
|
to: "body"
|
|
2177
|
-
}, [
|
|
2227
|
+
}, [K.value ? (T(), c("div", {
|
|
2178
2228
|
key: 0,
|
|
2179
|
-
id: L(
|
|
2229
|
+
id: L(Y),
|
|
2180
2230
|
ref_key: "menuRef",
|
|
2181
|
-
ref:
|
|
2231
|
+
ref: J,
|
|
2182
2232
|
class: "uid-breadcrumb__menu",
|
|
2183
2233
|
role: "menu",
|
|
2184
2234
|
"aria-label": L(u).breadcrumb?.showHidden,
|
|
2185
|
-
style: b(L(
|
|
2186
|
-
onKeydown:
|
|
2187
|
-
}, [(T(!0), c(t, null, k(
|
|
2235
|
+
style: b(L(X)),
|
|
2236
|
+
onKeydown: ce
|
|
2237
|
+
}, [(T(!0), c(t, null, k(te.value, (e, t) => (T(), c("button", {
|
|
2188
2238
|
key: t,
|
|
2189
2239
|
type: "button",
|
|
2190
2240
|
role: "menuitem",
|
|
2191
2241
|
class: "uid-breadcrumb__menu-item",
|
|
2192
2242
|
tabindex: "-1",
|
|
2193
2243
|
"aria-disabled": e.target ? void 0 : "true",
|
|
2194
|
-
onClick: (t) =>
|
|
2244
|
+
onClick: (t) => se(e)
|
|
2195
2245
|
}, P(e.label), 9, Ur))), 128))], 44, Hr)) : s("", !0)])) : s("", !0)
|
|
2196
2246
|
], 10, Vr));
|
|
2197
2247
|
}
|
|
@@ -6188,19 +6238,461 @@ var Lc = {
|
|
|
6188
6238
|
class: "uid-code__line-number"
|
|
6189
6239
|
}, P(t + 1), 1))), 128))])) : s("", !0), l("pre", Uc, [l("code", { "data-language": n.language || void 0 }, [A(i.$slots, "default", {}, () => [h.value ? (T(), o(g, { key: 0 })) : (T(), c(t, { key: 1 }, [u(P(n.code), 1)], 64))])], 8, Wc)])])], 6));
|
|
6190
6240
|
}
|
|
6191
|
-
}), Kc =
|
|
6241
|
+
}), Kc = {
|
|
6242
|
+
"&": "&",
|
|
6243
|
+
"<": "<",
|
|
6244
|
+
">": ">",
|
|
6245
|
+
"\"": """,
|
|
6246
|
+
"'": "'"
|
|
6247
|
+
};
|
|
6248
|
+
function qc(e) {
|
|
6249
|
+
return e.replace(/[&<>"']/g, (e) => Kc[e] ?? e);
|
|
6250
|
+
}
|
|
6251
|
+
function Jc(e) {
|
|
6252
|
+
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, "\"").replace(/'/g, "'").replace(/&/g, "&");
|
|
6253
|
+
}
|
|
6254
|
+
function Yc() {
|
|
6255
|
+
let e = /* @__PURE__ */ new Map();
|
|
6256
|
+
return (t) => {
|
|
6257
|
+
let n = t.toLowerCase().trim().replace(/[^\p{L}\p{N}\s_-]/gu, "").replace(/\s+/g, "-").replace(/-+/g, "-").replace(/^-|-$/g, "") || "section", r = e.get(n) ?? 0;
|
|
6258
|
+
return e.set(n, r + 1), r === 0 ? n : `${n}-${r}`;
|
|
6259
|
+
};
|
|
6260
|
+
}
|
|
6261
|
+
var Xc = {
|
|
6262
|
+
note: "Note",
|
|
6263
|
+
tip: "Tip",
|
|
6264
|
+
important: "Important",
|
|
6265
|
+
warning: "Warning",
|
|
6266
|
+
caution: "Caution"
|
|
6267
|
+
};
|
|
6268
|
+
function Zc(e) {
|
|
6269
|
+
let t = e.trim(), n = t.replace(/�*58;|:/gi, ":").replace(/\s+/g, "").toLowerCase(), r = /^([a-z][a-z0-9+.-]*):/.exec(n);
|
|
6270
|
+
return r && ![
|
|
6271
|
+
"http",
|
|
6272
|
+
"https",
|
|
6273
|
+
"mailto"
|
|
6274
|
+
].includes(r[1] ?? "") ? null : t;
|
|
6275
|
+
}
|
|
6276
|
+
function Qc(e) {
|
|
6277
|
+
return !/^([a-z][a-z0-9+.-]*:|\/|#|\?)/i.test(e);
|
|
6278
|
+
}
|
|
6279
|
+
function $c(e, t, n = !1) {
|
|
6280
|
+
let r = Jc(e);
|
|
6281
|
+
n && (r = r.replace(/\.md(?=$|[?#])/i, ""));
|
|
6282
|
+
try {
|
|
6283
|
+
let e = /^[a-z][a-z0-9+.-]*:\/\//i.test(t), n = new URL(r, e ? t : `http://base.invalid${t.startsWith("/") ? "" : "/"}${t}`);
|
|
6284
|
+
return qc(e ? n.href : n.pathname + n.search + n.hash);
|
|
6285
|
+
} catch {
|
|
6286
|
+
return e;
|
|
6287
|
+
}
|
|
6288
|
+
}
|
|
6289
|
+
function el(e, t = {}) {
|
|
6290
|
+
let n = [], r = (e) => `${n.push(e) - 1}`, i = e.replace(/`([^`]+)`/g, (e, t) => r(`<code>${t}</code>`));
|
|
6291
|
+
return i = i.replace(/!\[([^\]]*)\]\(([^)\s]+)(?:\s+"[^)]*")?\)/g, (e, n, i) => {
|
|
6292
|
+
let a = Zc(i);
|
|
6293
|
+
return a === null ? e : (t.imageBase && Qc(a) && (a = $c(a, t.imageBase)), r(`<img src="${a}" alt="${n}" loading="lazy">`));
|
|
6294
|
+
}), i = i.replace(/\[([^\]]+)\]\(([^)\s]+)(?:\s+"[^)]*")?\)/g, (e, n, i) => {
|
|
6295
|
+
let a = Zc(i);
|
|
6296
|
+
if (a === null) return e;
|
|
6297
|
+
let o = Qc(a);
|
|
6298
|
+
t.linkBase && o && (a = $c(a, t.linkBase, t.stripMdExtension ?? !1));
|
|
6299
|
+
let s = /^(https?:)?\/\//i.test(a) || /^mailto:/i.test(a);
|
|
6300
|
+
return r(t.internalLinksInPlace === !0 && !s ? `<a href="${a}">${n}</a>` : `<a href="${a}" target="_blank" rel="noopener noreferrer">${n}</a>`);
|
|
6301
|
+
}), i = i.replace(/\*\*(?=\S)(.+?)(?<=\S)\*\*/g, "<strong>$1</strong>").replace(/(?<!\w)__(?=\S)(.+?)(?<=\S)__(?!\w)/g, "<strong>$1</strong>").replace(/\*(?=\S)(.+?)(?<=\S)\*/g, "<em>$1</em>").replace(/(?<!\w)_(?=\S)(.+?)(?<=\S)_(?!\w)/g, "<em>$1</em>").replace(/~~(?=\S)(.+?)(?<=\S)~~/g, "<del>$1</del>"), i.replace(/(\d+)/g, (e, t) => n[Number(t)] ?? "");
|
|
6302
|
+
}
|
|
6303
|
+
function tl(e) {
|
|
6304
|
+
return Jc(e.replace(/<[^>]+>/g, ""));
|
|
6305
|
+
}
|
|
6306
|
+
var nl = /^(\s*)([-*+]|\d+[.)])\s+(.*)$/, rl = /^\s*\|?\s*:?-+:?\s*(\|\s*:?-+:?\s*)*\|?\s*$/;
|
|
6307
|
+
function il(e) {
|
|
6308
|
+
let t = e.trim();
|
|
6309
|
+
return t.startsWith("|") && (t = t.slice(1)), t.endsWith("|") && !t.endsWith("\\|") && (t = t.slice(0, -1)), t.split(/(?<!\\)\|/).map((e) => e.trim().replace(/\\\|/g, "|"));
|
|
6310
|
+
}
|
|
6311
|
+
var al = {
|
|
6312
|
+
note: "note",
|
|
6313
|
+
info: "note",
|
|
6314
|
+
tip: "tip",
|
|
6315
|
+
hint: "tip",
|
|
6316
|
+
important: "important",
|
|
6317
|
+
warning: "warning",
|
|
6318
|
+
caution: "caution",
|
|
6319
|
+
danger: "caution",
|
|
6320
|
+
примечание: "note",
|
|
6321
|
+
заметка: "note",
|
|
6322
|
+
совет: "tip",
|
|
6323
|
+
важно: "important",
|
|
6324
|
+
внимание: "warning",
|
|
6325
|
+
предупреждение: "warning",
|
|
6326
|
+
осторожно: "caution"
|
|
6327
|
+
};
|
|
6328
|
+
function ol(e, t) {
|
|
6329
|
+
let n = e;
|
|
6330
|
+
return t.calloutTitles?.[n] ?? Xc[n] ?? Xc.note;
|
|
6331
|
+
}
|
|
6332
|
+
function sl(e, t = {}) {
|
|
6333
|
+
if (!e) return "";
|
|
6334
|
+
let n = qc(e.replace(/\r\n?/g, "\n")).split("\n"), r = [], i = [], a = (e) => el(e, t), o = () => {
|
|
6335
|
+
i.length > 0 && (r.push(`<p>${a(i.join("\n"))}</p>`), i = []);
|
|
6336
|
+
};
|
|
6337
|
+
for (let e = 0; e < n.length; e++) {
|
|
6338
|
+
let s = n[e] ?? "", c = /^\s*(```|~~~)\s*([\w+#.-]*)[^`]*$/.exec(s);
|
|
6339
|
+
if (c) {
|
|
6340
|
+
o();
|
|
6341
|
+
let t = [];
|
|
6342
|
+
for (e++; e < n.length && !(n[e] ?? "").trim().startsWith(c[1] ?? "```");) t.push(n[e] ?? ""), e++;
|
|
6343
|
+
let i = c[2] ? ` class="language-${c[2]}"` : "";
|
|
6344
|
+
r.push(`<pre><code${i}>${t.join("\n")}</code></pre>`);
|
|
6345
|
+
continue;
|
|
6346
|
+
}
|
|
6347
|
+
if (s.trim() === "") {
|
|
6348
|
+
o();
|
|
6349
|
+
continue;
|
|
6350
|
+
}
|
|
6351
|
+
let l = /^(#{1,6})\s+(.*?)\s*#*\s*$/.exec(s);
|
|
6352
|
+
if (l) {
|
|
6353
|
+
o();
|
|
6354
|
+
let e = l[1]?.length ?? 1, n = a(l[2] ?? "");
|
|
6355
|
+
if (t.slugger) {
|
|
6356
|
+
let i = tl(n), a = t.slugger(i);
|
|
6357
|
+
t.onHeading?.({
|
|
6358
|
+
level: e,
|
|
6359
|
+
text: i,
|
|
6360
|
+
id: a
|
|
6361
|
+
}), r.push(`<h${e} id="${qc(a)}">${n}</h${e}>`);
|
|
6362
|
+
} else r.push(`<h${e}>${n}</h${e}>`);
|
|
6363
|
+
continue;
|
|
6364
|
+
}
|
|
6365
|
+
if (/^\s*([-*_])(\s*\1){2,}\s*$/.test(s)) {
|
|
6366
|
+
o(), r.push("<hr>");
|
|
6367
|
+
continue;
|
|
6368
|
+
}
|
|
6369
|
+
if (s.includes("|") && rl.test(n[e + 1] ?? "") && (n[e + 1] ?? "").includes("|")) {
|
|
6370
|
+
o();
|
|
6371
|
+
let t = il(s), i = il(n[e + 1] ?? "").map((e) => {
|
|
6372
|
+
let t = e.startsWith(":"), n = e.endsWith(":");
|
|
6373
|
+
return t && n ? "center" : n ? "right" : t ? "left" : "";
|
|
6374
|
+
}), c = (e, t, n) => `<${e}${i[n] ? ` style="text-align:${i[n]}"` : ""}>${a(t)}</${e}>`, l = [];
|
|
6375
|
+
for (e += 2; e < n.length && (n[e] ?? "").includes("|") && (n[e] ?? "").trim() !== "";) {
|
|
6376
|
+
let r = il(n[e] ?? "");
|
|
6377
|
+
l.push(`<tr>${t.map((e, t) => c("td", r[t] ?? "", t)).join("")}</tr>`), e++;
|
|
6378
|
+
}
|
|
6379
|
+
e--, r.push(`<div class="uid-markdown__table"><table><thead><tr>${t.map((e, t) => c("th", e, t)).join("")}</tr></thead><tbody>${l.join("")}</tbody></table></div>`);
|
|
6380
|
+
continue;
|
|
6381
|
+
}
|
|
6382
|
+
if (/^\s*>/.test(s)) {
|
|
6383
|
+
o();
|
|
6384
|
+
let i = [];
|
|
6385
|
+
for (; e < n.length && /^\s*>/.test(n[e] ?? "");) i.push((n[e] ?? "").replace(/^\s*>\s?/, "")), e++;
|
|
6386
|
+
e--, r.push(dl(i, t));
|
|
6387
|
+
continue;
|
|
6388
|
+
}
|
|
6389
|
+
if (nl.test(s)) {
|
|
6390
|
+
o();
|
|
6391
|
+
let i = ul(n, e, t);
|
|
6392
|
+
r.push(i.html), e = i.next - 1;
|
|
6393
|
+
continue;
|
|
6394
|
+
}
|
|
6395
|
+
i.push(s);
|
|
6396
|
+
}
|
|
6397
|
+
return o(), r.join("\n");
|
|
6398
|
+
}
|
|
6399
|
+
function cl(e) {
|
|
6400
|
+
return (/^[ \t]*/.exec(e)?.[0] ?? "").replace(/\t/g, " ").length;
|
|
6401
|
+
}
|
|
6402
|
+
function ll(e) {
|
|
6403
|
+
return /^\s*(#{1,6}\s|>|```|~~~|\|)/.test(e) || /^\s*([-*_])(\s*\1){2,}\s*$/.test(e);
|
|
6404
|
+
}
|
|
6405
|
+
function ul(e, t, n) {
|
|
6406
|
+
let r = nl.exec(e[t] ?? ""), i = cl(r?.[1] ?? ""), a = /\d/.test(r?.[2] ?? ""), o = [], s = t;
|
|
6407
|
+
for (; s < e.length;) {
|
|
6408
|
+
let t = nl.exec(e[s] ?? "");
|
|
6409
|
+
if (!t || cl(t[1] ?? "") > i + 1 || cl(t[1] ?? "") < i || /\d/.test(t[2] ?? "") !== a) break;
|
|
6410
|
+
let r = [t[3] ?? ""], c = [];
|
|
6411
|
+
for (s++; s < e.length;) {
|
|
6412
|
+
let t = e[s] ?? "";
|
|
6413
|
+
if (t.trim() === "") {
|
|
6414
|
+
let t = s + 1;
|
|
6415
|
+
for (; t < e.length && (e[t] ?? "").trim() === "";) t++;
|
|
6416
|
+
if (t < e.length && cl(e[t] ?? "") > i + 1) {
|
|
6417
|
+
for (; s < t; s++) c.push("");
|
|
6418
|
+
continue;
|
|
6419
|
+
}
|
|
6420
|
+
break;
|
|
6421
|
+
}
|
|
6422
|
+
if (cl(t) > i + 1) {
|
|
6423
|
+
c.push(t), s++;
|
|
6424
|
+
continue;
|
|
6425
|
+
}
|
|
6426
|
+
if (c.length === 0 && !nl.test(t) && !ll(t)) {
|
|
6427
|
+
r.push(t.trim()), s++;
|
|
6428
|
+
continue;
|
|
6429
|
+
}
|
|
6430
|
+
break;
|
|
6431
|
+
}
|
|
6432
|
+
let l = el(r.join("\n"), n);
|
|
6433
|
+
if (c.some((e) => e.trim() !== "")) {
|
|
6434
|
+
let e = Math.min(...c.filter((e) => e.trim() !== "").map(cl)), t = c.map((t) => t.replace(/\t/g, " ").slice(e));
|
|
6435
|
+
l += fl(t, n);
|
|
6436
|
+
}
|
|
6437
|
+
o.push(`<li>${l}</li>`);
|
|
6438
|
+
let u = s;
|
|
6439
|
+
for (; u < e.length && (e[u] ?? "").trim() === "";) u++;
|
|
6440
|
+
let d = nl.exec(e[u] ?? "");
|
|
6441
|
+
u > s && d && cl(d[1] ?? "") <= i + 1 && cl(d[1] ?? "") >= i && /\d/.test(d[2] ?? "") === a && (s = u);
|
|
6442
|
+
}
|
|
6443
|
+
let c = a ? "ol" : "ul", l = a ? Number.parseInt(r?.[2] ?? "1", 10) : 1;
|
|
6444
|
+
return {
|
|
6445
|
+
html: `<${c}${a && l !== 1 && Number.isFinite(l) ? ` start="${l}"` : ""}>${o.join("")}</${c}>`,
|
|
6446
|
+
next: s
|
|
6447
|
+
};
|
|
6448
|
+
}
|
|
6449
|
+
function dl(e, t) {
|
|
6450
|
+
let n = (e[0] ?? "").trim(), r = /^\[!(\w+)\]\s*$/.exec(n);
|
|
6451
|
+
if (r) {
|
|
6452
|
+
let n = al[(r[1] ?? "").toLowerCase()];
|
|
6453
|
+
if (n) return `<blockquote class="uid-markdown__callout uid-markdown__callout--${n}">${`<p class="uid-markdown__callout-title">${qc(ol(n, t))}</p>`}${fl(e.slice(1), t)}</blockquote>`;
|
|
6454
|
+
}
|
|
6455
|
+
let i = /^\*\*([^*]+?):?\*\*:?/.exec(n);
|
|
6456
|
+
if (i) {
|
|
6457
|
+
let n = al[(i[1] ?? "").trim().toLowerCase()];
|
|
6458
|
+
if (n) return `<blockquote class="uid-markdown__callout uid-markdown__callout--${n}">${fl(e, t)}</blockquote>`;
|
|
6459
|
+
}
|
|
6460
|
+
return `<blockquote>${fl(e, t)}</blockquote>`;
|
|
6461
|
+
}
|
|
6462
|
+
function fl(e, t) {
|
|
6463
|
+
return sl(Jc(e.join("\n")), t);
|
|
6464
|
+
}
|
|
6465
|
+
function pl(e) {
|
|
6466
|
+
if (!e) return [];
|
|
6467
|
+
let t = e.replace(/\r\n?/g, "\n").split("\n"), n = [], r = [], i = () => {
|
|
6468
|
+
r.some((e) => e.trim() !== "") && n.push({
|
|
6469
|
+
kind: "text",
|
|
6470
|
+
source: r.join("\n")
|
|
6471
|
+
}), r = [];
|
|
6472
|
+
};
|
|
6473
|
+
for (let e = 0; e < t.length; e++) {
|
|
6474
|
+
let a = t[e] ?? "", o = /^ {0,3}(`{3,}|~{3,})\s*([\w+#.-]*)[^`]*$/.exec(a);
|
|
6475
|
+
if (!o) {
|
|
6476
|
+
r.push(a);
|
|
6477
|
+
continue;
|
|
6478
|
+
}
|
|
6479
|
+
i();
|
|
6480
|
+
let s = o[1] ?? "```", c = [];
|
|
6481
|
+
for (e++; e < t.length && !(t[e] ?? "").trim().startsWith(s);) c.push(t[e] ?? ""), e++;
|
|
6482
|
+
n.push({
|
|
6483
|
+
kind: "code",
|
|
6484
|
+
code: c.join("\n"),
|
|
6485
|
+
language: (o[2] ?? "").toLowerCase()
|
|
6486
|
+
});
|
|
6487
|
+
}
|
|
6488
|
+
return i(), n;
|
|
6489
|
+
}
|
|
6490
|
+
//#endregion
|
|
6491
|
+
//#region src/components/Markdown/blockRenderers.ts
|
|
6492
|
+
var ml = Symbol("UidMarkdownBlockRenderers");
|
|
6493
|
+
function hl(e) {
|
|
6494
|
+
E(ml, e);
|
|
6495
|
+
}
|
|
6496
|
+
function gl() {
|
|
6497
|
+
return h(ml, {});
|
|
6498
|
+
}
|
|
6499
|
+
//#endregion
|
|
6500
|
+
//#region src/components/Markdown/UidMarkdown.vue?vue&type=script&setup=true&lang.ts
|
|
6501
|
+
var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-language"], bl = ["data-language"], xl = {
|
|
6502
|
+
class: "uid-markdown__block-error-message",
|
|
6503
|
+
role: "alert"
|
|
6504
|
+
}, Sl = ["aria-label"], Cl = { class: "uid-markdown__toc-title" }, wl = ["href", "onClick"], Tl = /* @__PURE__ */ f({
|
|
6505
|
+
__name: "UidMarkdown",
|
|
6506
|
+
props: {
|
|
6507
|
+
source: { default: "" },
|
|
6508
|
+
toc: {
|
|
6509
|
+
type: Boolean,
|
|
6510
|
+
default: !1
|
|
6511
|
+
},
|
|
6512
|
+
tocDepth: { default: 3 },
|
|
6513
|
+
tocLabel: { default: void 0 },
|
|
6514
|
+
linkBase: { default: void 0 },
|
|
6515
|
+
stripMdExtension: {
|
|
6516
|
+
type: Boolean,
|
|
6517
|
+
default: void 0
|
|
6518
|
+
},
|
|
6519
|
+
imageBase: { default: void 0 },
|
|
6520
|
+
internalLinksInPlace: {
|
|
6521
|
+
type: Boolean,
|
|
6522
|
+
default: !0
|
|
6523
|
+
},
|
|
6524
|
+
calloutTitles: { default: void 0 },
|
|
6525
|
+
blockRenderers: { default: void 0 }
|
|
6526
|
+
},
|
|
6527
|
+
setup(e) {
|
|
6528
|
+
let n = e, r = $(), i = gl(), u = {
|
|
6529
|
+
blade: "html",
|
|
6530
|
+
console: "bash",
|
|
6531
|
+
env: "bash",
|
|
6532
|
+
dotenv: "bash",
|
|
6533
|
+
terminal: "bash",
|
|
6534
|
+
ps1: "bash",
|
|
6535
|
+
jsonc: "json",
|
|
6536
|
+
json5: "json"
|
|
6537
|
+
}, f = N([]), p = N([]), m = 0;
|
|
6538
|
+
function h(e, t, n) {
|
|
6539
|
+
if (t !== m) return;
|
|
6540
|
+
let r = f.value[e];
|
|
6541
|
+
if (!r || r.kind !== "custom") return;
|
|
6542
|
+
let i = f.value.slice();
|
|
6543
|
+
i[e] = n.error !== void 0 || n.html === void 0 ? {
|
|
6544
|
+
...r,
|
|
6545
|
+
state: "error",
|
|
6546
|
+
error: n.error ?? ""
|
|
6547
|
+
} : {
|
|
6548
|
+
...r,
|
|
6549
|
+
state: "done",
|
|
6550
|
+
html: n.html
|
|
6551
|
+
}, f.value = i;
|
|
6552
|
+
}
|
|
6553
|
+
function g(e) {
|
|
6554
|
+
return e instanceof Error ? e.message : String(e);
|
|
6555
|
+
}
|
|
6556
|
+
function _() {
|
|
6557
|
+
let e = ++m, t = {
|
|
6558
|
+
...i,
|
|
6559
|
+
...n.blockRenderers ?? {}
|
|
6560
|
+
}, a = Yc(), o = [], s = {
|
|
6561
|
+
...r.value.markdown,
|
|
6562
|
+
...n.calloutTitles ?? {}
|
|
6563
|
+
}, c = [], l = 0;
|
|
6564
|
+
f.value = pl(n.source).map((e, r) => {
|
|
6565
|
+
if (e.kind === "text") return {
|
|
6566
|
+
kind: "html",
|
|
6567
|
+
html: sl(e.source, {
|
|
6568
|
+
slugger: a,
|
|
6569
|
+
onHeading: (e) => o.push(e),
|
|
6570
|
+
linkBase: n.linkBase ?? null,
|
|
6571
|
+
stripMdExtension: n.stripMdExtension ?? !!n.linkBase,
|
|
6572
|
+
imageBase: n.imageBase ?? null,
|
|
6573
|
+
internalLinksInPlace: n.internalLinksInPlace,
|
|
6574
|
+
calloutTitles: s
|
|
6575
|
+
})
|
|
6576
|
+
};
|
|
6577
|
+
let i = e.language ? t[e.language] : void 0, d = {
|
|
6578
|
+
language: e.language,
|
|
6579
|
+
index: l++
|
|
6580
|
+
};
|
|
6581
|
+
return i ? (c.push({
|
|
6582
|
+
index: r,
|
|
6583
|
+
run: () => i(e.code, d)
|
|
6584
|
+
}), {
|
|
6585
|
+
kind: "custom",
|
|
6586
|
+
code: e.code,
|
|
6587
|
+
language: e.language,
|
|
6588
|
+
state: "pending"
|
|
6589
|
+
}) : {
|
|
6590
|
+
kind: "code",
|
|
6591
|
+
code: e.code,
|
|
6592
|
+
language: u[e.language] ?? e.language
|
|
6593
|
+
};
|
|
6594
|
+
}), p.value = o;
|
|
6595
|
+
for (let { index: t, run: n } of c) {
|
|
6596
|
+
let r;
|
|
6597
|
+
try {
|
|
6598
|
+
r = n();
|
|
6599
|
+
} catch (n) {
|
|
6600
|
+
h(t, e, { error: g(n) });
|
|
6601
|
+
continue;
|
|
6602
|
+
}
|
|
6603
|
+
r && typeof r.then == "function" ? r.then((n) => h(t, e, n ?? { error: "" }), (n) => h(t, e, { error: g(n) })) : h(t, e, r ?? { error: "" });
|
|
6604
|
+
}
|
|
6605
|
+
}
|
|
6606
|
+
G(() => [
|
|
6607
|
+
n.source,
|
|
6608
|
+
n.linkBase,
|
|
6609
|
+
n.stripMdExtension,
|
|
6610
|
+
n.imageBase,
|
|
6611
|
+
n.internalLinksInPlace,
|
|
6612
|
+
n.calloutTitles,
|
|
6613
|
+
n.blockRenderers,
|
|
6614
|
+
r.value
|
|
6615
|
+
], _, { immediate: !0 });
|
|
6616
|
+
let b = a(() => Math.min(6, Math.max(2, n.tocDepth))), x = a(() => n.tocLabel || r.value.markdown.toc), C = a(() => n.toc ? p.value.filter((e) => e.level >= 2 && e.level <= b.value) : []), w = N(null);
|
|
6617
|
+
function E(e, t = !0) {
|
|
6618
|
+
if (!e || !w.value) return !1;
|
|
6619
|
+
let n = Array.from(w.value.querySelectorAll("[id]")).find((t) => t.id === e);
|
|
6620
|
+
return n ? (n.scrollIntoView?.({
|
|
6621
|
+
behavior: t ? "smooth" : "auto",
|
|
6622
|
+
block: "start"
|
|
6623
|
+
}), !0) : !1;
|
|
6624
|
+
}
|
|
6625
|
+
function D(e) {
|
|
6626
|
+
E(e) && typeof history < "u" && history.replaceState(history.state, "", `#${encodeURIComponent(e)}`);
|
|
6627
|
+
}
|
|
6628
|
+
function O(e) {
|
|
6629
|
+
if (e.defaultPrevented || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
|
|
6630
|
+
let t = (e.target?.closest?.("a"))?.getAttribute("href") ?? "";
|
|
6631
|
+
t.startsWith("#") && (e.preventDefault(), D(decodeURIComponent(t.slice(1))));
|
|
6632
|
+
}
|
|
6633
|
+
return S(() => {
|
|
6634
|
+
typeof window > "u" || !window.location.hash || v(() => E(decodeURIComponent(window.location.hash.slice(1)), !1));
|
|
6635
|
+
}), (e, n) => (T(), c("div", {
|
|
6636
|
+
ref_key: "root",
|
|
6637
|
+
ref: w,
|
|
6638
|
+
class: y(["uid-markdown", { "uid-markdown--toc": C.value.length > 0 }])
|
|
6639
|
+
}, [l("div", {
|
|
6640
|
+
class: "uid-markdown__body",
|
|
6641
|
+
onClick: O
|
|
6642
|
+
}, [(T(!0), c(t, null, k(f.value, (e, n) => (T(), c(t, { key: n }, [e.kind === "html" ? (T(), c("div", {
|
|
6643
|
+
key: 0,
|
|
6644
|
+
class: "uid-markdown__html",
|
|
6645
|
+
innerHTML: e.html
|
|
6646
|
+
}, null, 8, _l)) : e.kind === "code" ? (T(), o(Gc, {
|
|
6647
|
+
key: 1,
|
|
6648
|
+
class: "uid-markdown__code",
|
|
6649
|
+
code: e.code,
|
|
6650
|
+
language: e.language || void 0,
|
|
6651
|
+
copy: ""
|
|
6652
|
+
}, null, 8, ["code", "language"])) : e.state === "done" ? (T(), c("div", {
|
|
6653
|
+
key: 2,
|
|
6654
|
+
class: "uid-markdown__block",
|
|
6655
|
+
"data-language": e.language,
|
|
6656
|
+
innerHTML: e.html
|
|
6657
|
+
}, null, 8, vl)) : e.state === "pending" ? (T(), c("div", {
|
|
6658
|
+
key: 3,
|
|
6659
|
+
class: "uid-markdown__block uid-markdown__block--pending",
|
|
6660
|
+
"data-language": e.language,
|
|
6661
|
+
"aria-busy": "true"
|
|
6662
|
+
}, P(L(r).markdown.blockPending), 9, yl)) : (T(), c("div", {
|
|
6663
|
+
key: 4,
|
|
6664
|
+
class: "uid-markdown__block-error",
|
|
6665
|
+
"data-language": e.language
|
|
6666
|
+
}, [l("p", xl, P(e.error ? `${L(r).markdown.blockError}: ${e.error}` : L(r).markdown.blockError), 1), d(Gc, {
|
|
6667
|
+
class: "uid-markdown__code",
|
|
6668
|
+
code: e.code,
|
|
6669
|
+
language: e.language || void 0,
|
|
6670
|
+
copy: ""
|
|
6671
|
+
}, null, 8, ["code", "language"])], 8, bl))], 64))), 128))]), C.value.length > 0 ? (T(), c("nav", {
|
|
6672
|
+
key: 0,
|
|
6673
|
+
class: "uid-markdown__toc",
|
|
6674
|
+
"aria-label": x.value
|
|
6675
|
+
}, [l("div", Cl, P(x.value), 1), l("ul", null, [(T(!0), c(t, null, k(C.value, (e) => (T(), c("li", {
|
|
6676
|
+
key: e.id,
|
|
6677
|
+
class: y(["uid-markdown__toc-item", `uid-markdown__toc-item--l${e.level}`])
|
|
6678
|
+
}, [l("a", {
|
|
6679
|
+
href: `#${e.id}`,
|
|
6680
|
+
onClick: X((t) => D(e.id), ["prevent"])
|
|
6681
|
+
}, P(e.text), 9, wl)], 2))), 128))])], 8, Sl)) : s("", !0)], 2));
|
|
6682
|
+
}
|
|
6683
|
+
}), El = ["data-status"], Dl = ["aria-label"], Ol = {
|
|
6192
6684
|
key: 0,
|
|
6193
6685
|
class: "uid-image__placeholder",
|
|
6194
6686
|
"aria-hidden": "true"
|
|
6195
|
-
},
|
|
6687
|
+
}, kl = ["aria-label"], Al = [
|
|
6196
6688
|
"src",
|
|
6197
6689
|
"alt",
|
|
6198
6690
|
"loading"
|
|
6199
|
-
],
|
|
6691
|
+
], jl = [
|
|
6200
6692
|
"src",
|
|
6201
6693
|
"alt",
|
|
6202
6694
|
"loading"
|
|
6203
|
-
],
|
|
6695
|
+
], Ml = { class: "uid-image__preview" }, Nl = ["src", "alt"], Pl = /* @__PURE__ */ f({
|
|
6204
6696
|
__name: "UidImage",
|
|
6205
6697
|
props: {
|
|
6206
6698
|
src: {},
|
|
@@ -6270,7 +6762,7 @@ var Lc = {
|
|
|
6270
6762
|
}, [A(r.$slots, "fallback", {}, () => [d(e, {
|
|
6271
6763
|
icon: L(_e),
|
|
6272
6764
|
size: 24
|
|
6273
|
-
}, null, 8, ["icon"])])], 8,
|
|
6765
|
+
}, null, 8, ["icon"])])], 8, Dl)) : (T(), c(t, { key: 1 }, [p.value === "loading" ? (T(), c("div", Ol, [A(r.$slots, "placeholder")])) : s("", !0), _.value ? (T(), c("button", {
|
|
6274
6766
|
key: 1,
|
|
6275
6767
|
type: "button",
|
|
6276
6768
|
class: "uid-image__trigger",
|
|
@@ -6285,7 +6777,7 @@ var Lc = {
|
|
|
6285
6777
|
decoding: "async",
|
|
6286
6778
|
onLoad: C,
|
|
6287
6779
|
onError: w
|
|
6288
|
-
}, null, 40,
|
|
6780
|
+
}, null, 40, Al)], 8, kl)) : (T(), c("img", {
|
|
6289
6781
|
key: 2,
|
|
6290
6782
|
class: "uid-image__img",
|
|
6291
6783
|
src: g.value,
|
|
@@ -6294,40 +6786,40 @@ var Lc = {
|
|
|
6294
6786
|
decoding: "async",
|
|
6295
6787
|
onLoad: C,
|
|
6296
6788
|
onError: w
|
|
6297
|
-
}, null, 40,
|
|
6789
|
+
}, null, 40, jl))], 64)), n.preview ? (T(), o(Gn, {
|
|
6298
6790
|
key: 2,
|
|
6299
6791
|
modelValue: h.value,
|
|
6300
6792
|
"onUpdate:modelValue": i[0] ||= (e) => h.value = e,
|
|
6301
6793
|
size: "full",
|
|
6302
6794
|
title: n.alt
|
|
6303
6795
|
}, {
|
|
6304
|
-
default: q(() => [l("div",
|
|
6796
|
+
default: q(() => [l("div", Ml, [l("img", {
|
|
6305
6797
|
class: "uid-image__preview-img",
|
|
6306
6798
|
src: n.previewSrc || g.value,
|
|
6307
6799
|
alt: n.alt
|
|
6308
|
-
}, null, 8,
|
|
6800
|
+
}, null, 8, Nl)])]),
|
|
6309
6801
|
_: 1
|
|
6310
|
-
}, 8, ["modelValue", "title"])) : s("", !0)], 14,
|
|
6802
|
+
}, 8, ["modelValue", "title"])) : s("", !0)], 14, El));
|
|
6311
6803
|
}
|
|
6312
|
-
}),
|
|
6804
|
+
}), Fl = [
|
|
6313
6805
|
"aria-valuemax",
|
|
6314
6806
|
"aria-valuenow",
|
|
6315
6807
|
"aria-readonly",
|
|
6316
6808
|
"aria-disabled",
|
|
6317
6809
|
"aria-label"
|
|
6318
|
-
],
|
|
6810
|
+
], Il = [
|
|
6319
6811
|
"tabindex",
|
|
6320
6812
|
"aria-label",
|
|
6321
6813
|
"onClick",
|
|
6322
6814
|
"onMousemove",
|
|
6323
6815
|
"onKeydown"
|
|
6324
|
-
],
|
|
6816
|
+
], Ll = {
|
|
6325
6817
|
class: "uid-rating__icon",
|
|
6326
6818
|
"aria-hidden": "true"
|
|
6327
|
-
},
|
|
6819
|
+
}, Rl = ["data-half"], zl = {
|
|
6328
6820
|
key: 0,
|
|
6329
6821
|
class: "uid-rating__label"
|
|
6330
|
-
},
|
|
6822
|
+
}, Bl = /* @__PURE__ */ f({
|
|
6331
6823
|
__name: "UidRating",
|
|
6332
6824
|
props: /* @__PURE__ */ g({
|
|
6333
6825
|
max: { default: 5 },
|
|
@@ -6432,21 +6924,21 @@ var Lc = {
|
|
|
6432
6924
|
onClick: (e) => x(e, t),
|
|
6433
6925
|
onMousemove: (e) => S(e, t),
|
|
6434
6926
|
onKeydown: (e) => w(e, t)
|
|
6435
|
-
}, [l("span",
|
|
6927
|
+
}, [l("span", Ll, [d(e, { icon: _.value }, null, 8, ["icon"])]), v(t).full ? (T(), c("span", {
|
|
6436
6928
|
key: 0,
|
|
6437
6929
|
class: "uid-rating__icon uid-rating__icon--filled",
|
|
6438
6930
|
"data-half": v(t).half ? "true" : "false",
|
|
6439
6931
|
"aria-hidden": "true"
|
|
6440
|
-
}, [d(e, { icon: _.value }, null, 8, ["icon"])], 8,
|
|
6932
|
+
}, [d(e, { icon: _.value }, null, 8, ["icon"])], 8, Rl)) : s("", !0)], 40, Il))), 128)), n.showLabel ? (T(), c("span", zl, P(L($s)(p.value, u.value, +!!n.allowHalf)) + " / " + P(n.max), 1)) : s("", !0)], 42, Fl));
|
|
6441
6933
|
}
|
|
6442
|
-
}),
|
|
6934
|
+
}), Vl = [
|
|
6443
6935
|
"tabindex",
|
|
6444
6936
|
"aria-orientation",
|
|
6445
6937
|
"aria-valuemin",
|
|
6446
6938
|
"aria-valuemax",
|
|
6447
6939
|
"aria-valuenow",
|
|
6448
6940
|
"aria-disabled"
|
|
6449
|
-
],
|
|
6941
|
+
], Hl = { class: "uid-splitter__pane uid-splitter__pane--end" }, Ul = /* @__PURE__ */ f({
|
|
6450
6942
|
__name: "UidSplitter",
|
|
6451
6943
|
props: /* @__PURE__ */ g({
|
|
6452
6944
|
direction: { default: "horizontal" },
|
|
@@ -6524,27 +7016,27 @@ var Lc = {
|
|
|
6524
7016
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
6525
7017
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
6526
7018
|
l("span", { class: "uid-splitter__grip-dot" })
|
|
6527
|
-
], -1)]], 40,
|
|
6528
|
-
l("div",
|
|
7019
|
+
], -1)]], 40, Vl),
|
|
7020
|
+
l("div", Hl, [A(t.$slots, "end")])
|
|
6529
7021
|
], 2));
|
|
6530
7022
|
}
|
|
6531
|
-
}),
|
|
7023
|
+
}), Wl = {
|
|
6532
7024
|
key: 0,
|
|
6533
7025
|
class: "uid-stat__icon",
|
|
6534
7026
|
"aria-hidden": "true"
|
|
6535
|
-
},
|
|
7027
|
+
}, Gl = { class: "uid-stat__body" }, Kl = {
|
|
6536
7028
|
key: 0,
|
|
6537
7029
|
class: "uid-stat__title"
|
|
6538
|
-
},
|
|
7030
|
+
}, ql = { class: "uid-stat__value-row" }, Jl = { class: "uid-stat__value" }, Yl = {
|
|
6539
7031
|
key: 0,
|
|
6540
7032
|
class: "uid-stat__prefix"
|
|
6541
|
-
},
|
|
7033
|
+
}, Xl = {
|
|
6542
7034
|
key: 1,
|
|
6543
7035
|
class: "uid-stat__suffix"
|
|
6544
|
-
},
|
|
7036
|
+
}, Zl = {
|
|
6545
7037
|
key: 1,
|
|
6546
7038
|
class: "uid-stat__footer"
|
|
6547
|
-
},
|
|
7039
|
+
}, Ql = /* @__PURE__ */ f({
|
|
6548
7040
|
__name: "UidStat",
|
|
6549
7041
|
props: {
|
|
6550
7042
|
title: {},
|
|
@@ -6573,16 +7065,16 @@ var Lc = {
|
|
|
6573
7065
|
t.variant === "ghost" && "uid-stat--ghost",
|
|
6574
7066
|
t.trendPlacement === "below" && "uid-stat--trend-below",
|
|
6575
7067
|
t.loading && "uid-stat--loading"
|
|
6576
|
-
]]) }, [t.icon || n.$slots.icon ? (T(), c("span",
|
|
7068
|
+
]]) }, [t.icon || n.$slots.icon ? (T(), c("span", Wl, [A(n.$slots, "icon", {}, () => [t.icon ? (T(), o(e, {
|
|
6577
7069
|
key: 0,
|
|
6578
7070
|
icon: t.icon,
|
|
6579
7071
|
size: 20
|
|
6580
|
-
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div",
|
|
6581
|
-
t.title ? (T(), c("p",
|
|
6582
|
-
l("div",
|
|
6583
|
-
t.prefix ? (T(), c("span",
|
|
7072
|
+
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div", Gl, [
|
|
7073
|
+
t.title ? (T(), c("p", Kl, P(t.title), 1)) : s("", !0),
|
|
7074
|
+
l("div", ql, [l("span", Jl, [A(n.$slots, "value", {}, () => [
|
|
7075
|
+
t.prefix ? (T(), c("span", Yl, P(t.prefix), 1)) : s("", !0),
|
|
6584
7076
|
l("span", null, P(d.value), 1),
|
|
6585
|
-
t.suffix ? (T(), c("span",
|
|
7077
|
+
t.suffix ? (T(), c("span", Xl, P(t.suffix), 1)) : s("", !0)
|
|
6586
7078
|
])]), t.trend !== void 0 || n.$slots.trend ? (T(), c("span", {
|
|
6587
7079
|
key: 0,
|
|
6588
7080
|
class: y(["uid-stat__trend", f.value && `uid-stat__trend--${f.value}`])
|
|
@@ -6591,13 +7083,13 @@ var Lc = {
|
|
|
6591
7083
|
icon: p.value,
|
|
6592
7084
|
size: 12
|
|
6593
7085
|
}, null, 8, ["icon"])) : s("", !0), l("span", null, P(m.value), 1)])], 2)) : s("", !0)]),
|
|
6594
|
-
t.footer || n.$slots.footer ? (T(), c("p",
|
|
7086
|
+
t.footer || n.$slots.footer ? (T(), c("p", Zl, [A(n.$slots, "footer", {}, () => [u(P(t.footer), 1)])])) : s("", !0)
|
|
6595
7087
|
])], 2));
|
|
6596
7088
|
}
|
|
6597
|
-
}),
|
|
7089
|
+
}), $l = Symbol("UidDescriptionList"), eu = {
|
|
6598
7090
|
key: 0,
|
|
6599
7091
|
class: "uid-description-list__title"
|
|
6600
|
-
},
|
|
7092
|
+
}, tu = /* @__PURE__ */ f({
|
|
6601
7093
|
__name: "UidDescriptionList",
|
|
6602
7094
|
props: {
|
|
6603
7095
|
title: {},
|
|
@@ -6612,7 +7104,7 @@ var Lc = {
|
|
|
6612
7104
|
},
|
|
6613
7105
|
setup(e) {
|
|
6614
7106
|
let t = e;
|
|
6615
|
-
E(
|
|
7107
|
+
E($l, {
|
|
6616
7108
|
direction: a(() => t.direction),
|
|
6617
7109
|
bordered: a(() => t.bordered)
|
|
6618
7110
|
});
|
|
@@ -6624,12 +7116,12 @@ var Lc = {
|
|
|
6624
7116
|
`uid-description-list--${e.direction}`,
|
|
6625
7117
|
`uid-description-list--${e.size}`,
|
|
6626
7118
|
e.bordered && "uid-description-list--bordered"
|
|
6627
|
-
]]) }, [e.title || t.$slots.title ? (T(), c("h3",
|
|
7119
|
+
]]) }, [e.title || t.$slots.title ? (T(), c("h3", eu, [A(t.$slots, "title", {}, () => [u(P(e.title), 1)])])) : s("", !0), l("dl", {
|
|
6628
7120
|
class: "uid-description-list__grid",
|
|
6629
7121
|
style: b(n.value)
|
|
6630
7122
|
}, [A(t.$slots, "default")], 4)], 2));
|
|
6631
7123
|
}
|
|
6632
|
-
}),
|
|
7124
|
+
}), nu = { class: "uid-description-item__label" }, ru = { class: "uid-description-item__value" }, iu = ["aria-label"], au = /* @__PURE__ */ f({
|
|
6633
7125
|
__name: "UidDescriptionItem",
|
|
6634
7126
|
props: {
|
|
6635
7127
|
label: {},
|
|
@@ -6642,7 +7134,7 @@ var Lc = {
|
|
|
6642
7134
|
},
|
|
6643
7135
|
setup(t) {
|
|
6644
7136
|
let n = $(), r = t;
|
|
6645
|
-
h(
|
|
7137
|
+
h($l, null);
|
|
6646
7138
|
let i = O(null), o = O(!1), f = a(() => ({ "--uid-desc-span": r.span }));
|
|
6647
7139
|
async function p() {
|
|
6648
7140
|
let e = r.copyValue ?? i.value?.querySelector(".uid-description-item__value")?.textContent?.trim() ?? "";
|
|
@@ -6657,7 +7149,7 @@ var Lc = {
|
|
|
6657
7149
|
ref: i,
|
|
6658
7150
|
class: "uid-description-item",
|
|
6659
7151
|
style: b(f.value)
|
|
6660
|
-
}, [l("dt",
|
|
7152
|
+
}, [l("dt", nu, [A(r.$slots, "label", {}, () => [u(P(t.label), 1)])]), l("dd", ru, [A(r.$slots, "default"), t.copyable ? (T(), c("button", {
|
|
6661
7153
|
key: 0,
|
|
6662
7154
|
type: "button",
|
|
6663
7155
|
class: y(["uid-description-item__copy", { "uid-description-item__copy--copied": o.value }]),
|
|
@@ -6666,24 +7158,24 @@ var Lc = {
|
|
|
6666
7158
|
}, [d(e, {
|
|
6667
7159
|
icon: o.value ? L(Q) : L(fe),
|
|
6668
7160
|
size: 12
|
|
6669
|
-
}, null, 8, ["icon"])], 10,
|
|
7161
|
+
}, null, 8, ["icon"])], 10, iu)) : s("", !0)])], 4));
|
|
6670
7162
|
}
|
|
6671
|
-
}),
|
|
7163
|
+
}), ou = {
|
|
6672
7164
|
class: "uid-pattern-result__icon",
|
|
6673
7165
|
"aria-hidden": "true"
|
|
6674
|
-
},
|
|
7166
|
+
}, su = {
|
|
6675
7167
|
key: 0,
|
|
6676
7168
|
class: "uid-pattern-result__title"
|
|
6677
|
-
},
|
|
7169
|
+
}, cu = {
|
|
6678
7170
|
key: 1,
|
|
6679
7171
|
class: "uid-pattern-result__description"
|
|
6680
|
-
},
|
|
7172
|
+
}, lu = {
|
|
6681
7173
|
key: 2,
|
|
6682
7174
|
class: "uid-pattern-result__content"
|
|
6683
|
-
},
|
|
7175
|
+
}, uu = {
|
|
6684
7176
|
key: 3,
|
|
6685
7177
|
class: "uid-pattern-result__actions"
|
|
6686
|
-
},
|
|
7178
|
+
}, du = /* @__PURE__ */ f({
|
|
6687
7179
|
__name: "UidResult",
|
|
6688
7180
|
props: {
|
|
6689
7181
|
status: { default: "success" },
|
|
@@ -6705,17 +7197,17 @@ var Lc = {
|
|
|
6705
7197
|
class: y(["uid-pattern-result", [`uid-pattern-result--${t.status}`, t.compact && "uid-pattern-result--compact"]]),
|
|
6706
7198
|
role: "status"
|
|
6707
7199
|
}, [
|
|
6708
|
-
l("div",
|
|
7200
|
+
l("div", ou, [A(n.$slots, "icon", {}, () => [d(e, {
|
|
6709
7201
|
icon: i.value,
|
|
6710
7202
|
size: t.compact ? 32 : 40
|
|
6711
7203
|
}, null, 8, ["icon", "size"])])]),
|
|
6712
|
-
t.title || n.$slots.title ? (T(), c("h2",
|
|
6713
|
-
t.description || n.$slots.description ? (T(), c("p",
|
|
6714
|
-
n.$slots.default ? (T(), c("div",
|
|
6715
|
-
n.$slots.actions ? (T(), c("div",
|
|
7204
|
+
t.title || n.$slots.title ? (T(), c("h2", su, [A(n.$slots, "title", {}, () => [u(P(t.title), 1)])])) : s("", !0),
|
|
7205
|
+
t.description || n.$slots.description ? (T(), c("p", cu, [A(n.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0),
|
|
7206
|
+
n.$slots.default ? (T(), c("div", lu, [A(n.$slots, "default")])) : s("", !0),
|
|
7207
|
+
n.$slots.actions ? (T(), c("div", uu, [A(n.$slots, "actions")])) : s("", !0)
|
|
6716
7208
|
], 2));
|
|
6717
7209
|
}
|
|
6718
|
-
}),
|
|
7210
|
+
}), fu = ["aria-label"], pu = /* @__PURE__ */ f({
|
|
6719
7211
|
__name: "UidBackTop",
|
|
6720
7212
|
props: {
|
|
6721
7213
|
visibleAfter: { default: 200 },
|
|
@@ -6763,11 +7255,11 @@ var Lc = {
|
|
|
6763
7255
|
}, [A(t.$slots, "default", {}, () => [d(e, {
|
|
6764
7256
|
icon: L(re),
|
|
6765
7257
|
size: 20
|
|
6766
|
-
}, null, 8, ["icon"])])], 8,
|
|
7258
|
+
}, null, 8, ["icon"])])], 8, fu), [[W, f.value]])]),
|
|
6767
7259
|
_: 3
|
|
6768
7260
|
}));
|
|
6769
7261
|
}
|
|
6770
|
-
}),
|
|
7262
|
+
}), mu = { class: "uid-affix__content" }, hu = /* @__PURE__ */ f({
|
|
6771
7263
|
__name: "UidAffix",
|
|
6772
7264
|
props: {
|
|
6773
7265
|
offsetTop: {},
|
|
@@ -6797,9 +7289,9 @@ var Lc = {
|
|
|
6797
7289
|
ref: o,
|
|
6798
7290
|
class: "uid-affix__sentinel",
|
|
6799
7291
|
"aria-hidden": "true"
|
|
6800
|
-
}, null, 512), l("div",
|
|
7292
|
+
}, null, 512), l("div", mu, [A(e.$slots, "default")])], 6));
|
|
6801
7293
|
}
|
|
6802
|
-
}),
|
|
7294
|
+
}), gu = { class: "uid-watermark" }, _u = { class: "uid-watermark__content" }, vu = /* @__PURE__ */ f({
|
|
6803
7295
|
__name: "UidWatermark",
|
|
6804
7296
|
props: {
|
|
6805
7297
|
content: { default: "" },
|
|
@@ -6846,24 +7338,24 @@ var Lc = {
|
|
|
6846
7338
|
i();
|
|
6847
7339
|
}), C(() => {
|
|
6848
7340
|
n.value = "";
|
|
6849
|
-
}), (e, t) => (T(), c("div",
|
|
7341
|
+
}), (e, t) => (T(), c("div", gu, [l("div", {
|
|
6850
7342
|
class: "uid-watermark__overlay",
|
|
6851
7343
|
style: b(o.value),
|
|
6852
7344
|
"aria-hidden": "true"
|
|
6853
|
-
}, null, 4), l("div",
|
|
7345
|
+
}, null, 4), l("div", _u, [A(e.$slots, "default")])]));
|
|
6854
7346
|
}
|
|
6855
|
-
}),
|
|
7347
|
+
}), yu = ["aria-label"], bu = { class: "uid-anchor__list" }, xu = [
|
|
6856
7348
|
"href",
|
|
6857
7349
|
"aria-current",
|
|
6858
7350
|
"onClick"
|
|
6859
|
-
],
|
|
7351
|
+
], Su = {
|
|
6860
7352
|
key: 0,
|
|
6861
7353
|
class: "uid-anchor__sublist"
|
|
6862
|
-
},
|
|
7354
|
+
}, Cu = [
|
|
6863
7355
|
"href",
|
|
6864
7356
|
"aria-current",
|
|
6865
7357
|
"onClick"
|
|
6866
|
-
],
|
|
7358
|
+
], wu = /* @__PURE__ */ f({
|
|
6867
7359
|
__name: "UidAnchor",
|
|
6868
7360
|
props: /* @__PURE__ */ g({
|
|
6869
7361
|
items: {},
|
|
@@ -6930,7 +7422,7 @@ var Lc = {
|
|
|
6930
7422
|
return (n, r) => (T(), c("nav", {
|
|
6931
7423
|
class: "uid-anchor",
|
|
6932
7424
|
"aria-label": L(i).anchor.label
|
|
6933
|
-
}, [l("ul",
|
|
7425
|
+
}, [l("ul", bu, [(T(!0), c(t, null, k(e.items, (e) => (T(), c("li", {
|
|
6934
7426
|
key: e.key,
|
|
6935
7427
|
class: "uid-anchor__item"
|
|
6936
7428
|
}, [l("a", {
|
|
@@ -6938,7 +7430,7 @@ var Lc = {
|
|
|
6938
7430
|
class: y(["uid-anchor__link", { "uid-anchor__link--active": o.value === e.key }]),
|
|
6939
7431
|
"aria-current": o.value === e.key ? "location" : void 0,
|
|
6940
7432
|
onClick: (t) => h(t, e)
|
|
6941
|
-
}, P(e.title), 11,
|
|
7433
|
+
}, P(e.title), 11, xu), e.children?.length ? (T(), c("ul", Su, [(T(!0), c(t, null, k(e.children, (e) => (T(), c("li", {
|
|
6942
7434
|
key: e.key,
|
|
6943
7435
|
class: "uid-anchor__item"
|
|
6944
7436
|
}, [l("a", {
|
|
@@ -6946,18 +7438,18 @@ var Lc = {
|
|
|
6946
7438
|
class: y(["uid-anchor__link", { "uid-anchor__link--active": o.value === e.key }]),
|
|
6947
7439
|
"aria-current": o.value === e.key ? "location" : void 0,
|
|
6948
7440
|
onClick: (t) => h(t, e)
|
|
6949
|
-
}, P(e.title), 11,
|
|
7441
|
+
}, P(e.title), 11, Cu)]))), 128))])) : s("", !0)]))), 128))])], 8, yu));
|
|
6950
7442
|
}
|
|
6951
|
-
}),
|
|
7443
|
+
}), Tu = ["aria-label"], Eu = {
|
|
6952
7444
|
key: 0,
|
|
6953
7445
|
class: "uid-tour__title"
|
|
6954
|
-
},
|
|
7446
|
+
}, Du = {
|
|
6955
7447
|
key: 1,
|
|
6956
7448
|
class: "uid-tour__description"
|
|
6957
|
-
},
|
|
7449
|
+
}, Ou = { class: "uid-tour__footer" }, ku = {
|
|
6958
7450
|
key: 0,
|
|
6959
7451
|
class: "uid-tour__progress"
|
|
6960
|
-
},
|
|
7452
|
+
}, Au = { key: 1 }, ju = { class: "uid-tour__actions" }, Mu = /* @__PURE__ */ f({
|
|
6961
7453
|
__name: "UidTour",
|
|
6962
7454
|
props: /* @__PURE__ */ g({
|
|
6963
7455
|
steps: {},
|
|
@@ -7096,9 +7588,9 @@ var Lc = {
|
|
|
7096
7588
|
class: y(["uid-tour__popover", { "uid-tour__popover--center": N.value }]),
|
|
7097
7589
|
style: b(N.value ? void 0 : M.value)
|
|
7098
7590
|
}, [
|
|
7099
|
-
E.value.title ? (T(), c("h3",
|
|
7100
|
-
E.value.description ? (T(), c("p",
|
|
7101
|
-
l("div",
|
|
7591
|
+
E.value.title ? (T(), c("h3", Eu, P(E.value.title), 1)) : s("", !0),
|
|
7592
|
+
E.value.description ? (T(), c("p", Du, P(E.value.description), 1)) : s("", !0),
|
|
7593
|
+
l("div", Ou, [e.showProgress ? (T(), c("span", ku, P(g.value + 1) + " / " + P(e.steps.length), 1)) : (T(), c("span", Au)), l("div", ju, [
|
|
7102
7594
|
e.showSkip && g.value < e.steps.length - 1 ? (T(), c("button", {
|
|
7103
7595
|
key: 0,
|
|
7104
7596
|
type: "button",
|
|
@@ -7118,21 +7610,21 @@ var Lc = {
|
|
|
7118
7610
|
}, P(g.value === e.steps.length - 1 ? f.value : u.value), 1)
|
|
7119
7611
|
])])
|
|
7120
7612
|
], 6)
|
|
7121
|
-
], 8,
|
|
7613
|
+
], 8, Tu)) : s("", !0)]));
|
|
7122
7614
|
}
|
|
7123
|
-
}),
|
|
7615
|
+
}), Nu = ["for"], Pu = [
|
|
7124
7616
|
"id",
|
|
7125
7617
|
"value",
|
|
7126
7618
|
"placeholder",
|
|
7127
7619
|
"rows",
|
|
7128
7620
|
"disabled"
|
|
7129
|
-
],
|
|
7621
|
+
], Fu = ["onMousedown", "onMouseenter"], Iu = { class: "uid-mention__option-label" }, Lu = {
|
|
7130
7622
|
key: 0,
|
|
7131
7623
|
class: "uid-mention__option-hint"
|
|
7132
|
-
},
|
|
7624
|
+
}, Ru = {
|
|
7133
7625
|
key: 0,
|
|
7134
7626
|
class: "uid-mention__empty"
|
|
7135
|
-
},
|
|
7627
|
+
}, zu = /* @__PURE__ */ f({
|
|
7136
7628
|
inheritAttrs: !1,
|
|
7137
7629
|
__name: "UidMention",
|
|
7138
7630
|
props: /* @__PURE__ */ g({
|
|
@@ -7197,7 +7689,7 @@ var Lc = {
|
|
|
7197
7689
|
key: 0,
|
|
7198
7690
|
for: L(x),
|
|
7199
7691
|
class: "uid-mention__label"
|
|
7200
|
-
}, P(e.label), 9,
|
|
7692
|
+
}, P(e.label), 9, Nu)) : s("", !0),
|
|
7201
7693
|
l("textarea", _(L(u)(), {
|
|
7202
7694
|
id: L(x),
|
|
7203
7695
|
ref_key: "fieldRef",
|
|
@@ -7212,7 +7704,7 @@ var Lc = {
|
|
|
7212
7704
|
onKeydown: H,
|
|
7213
7705
|
onKeyup: F,
|
|
7214
7706
|
onBlur: a[0] ||= (e) => S.value = !1
|
|
7215
|
-
}), null, 16,
|
|
7707
|
+
}), null, 16, Pu),
|
|
7216
7708
|
(T(), o(n, { to: "body" }, [S.value ? (T(), c("div", {
|
|
7217
7709
|
key: 0,
|
|
7218
7710
|
ref_key: "panelRef",
|
|
@@ -7225,30 +7717,30 @@ var Lc = {
|
|
|
7225
7717
|
class: y(["uid-mention__option", { "uid-mention__option--active": t === w.value }]),
|
|
7226
7718
|
onMousedown: X((t) => I(e), ["prevent"]),
|
|
7227
7719
|
onMouseenter: (e) => w.value = t
|
|
7228
|
-
}, [l("span",
|
|
7720
|
+
}, [l("span", Iu, P(e.label), 1), e.hint ? (T(), c("span", Lu, P(e.hint), 1)) : s("", !0)], 42, Fu))), 128)), N.value.length === 0 ? (T(), c("div", Ru, P(p.value), 1)) : s("", !0)], 4)) : s("", !0)]))
|
|
7229
7721
|
], 16));
|
|
7230
7722
|
}
|
|
7231
|
-
}),
|
|
7723
|
+
}), Bu = ["for"], Vu = {
|
|
7232
7724
|
key: 0,
|
|
7233
7725
|
class: "uid-tree-select__required",
|
|
7234
7726
|
"aria-hidden": "true"
|
|
7235
|
-
},
|
|
7727
|
+
}, Hu = [
|
|
7236
7728
|
"id",
|
|
7237
7729
|
"aria-expanded",
|
|
7238
7730
|
"aria-controls",
|
|
7239
7731
|
"aria-label",
|
|
7240
7732
|
"aria-disabled",
|
|
7241
7733
|
"aria-invalid"
|
|
7242
|
-
],
|
|
7734
|
+
], Uu = { class: "uid-tree-select__value" }, Wu = ["aria-label", "onClick"], Gu = {
|
|
7243
7735
|
key: 0,
|
|
7244
7736
|
class: "uid-tree-select__chip"
|
|
7245
|
-
},
|
|
7737
|
+
}, Ku = {
|
|
7246
7738
|
key: 1,
|
|
7247
7739
|
class: "uid-tree-select__placeholder"
|
|
7248
|
-
},
|
|
7740
|
+
}, qu = { key: 0 }, Ju = {
|
|
7249
7741
|
key: 1,
|
|
7250
7742
|
class: "uid-tree-select__placeholder"
|
|
7251
|
-
},
|
|
7743
|
+
}, Yu = { class: "uid-tree-select__suffix" }, Xu = ["aria-label"], Zu = ["id"], Qu = /* @__PURE__ */ f({
|
|
7252
7744
|
__name: "UidTreeSelect",
|
|
7253
7745
|
props: /* @__PURE__ */ g({
|
|
7254
7746
|
size: { default: "md" },
|
|
@@ -7377,7 +7869,7 @@ var Lc = {
|
|
|
7377
7869
|
key: 0,
|
|
7378
7870
|
for: L(A),
|
|
7379
7871
|
class: "uid-tree-select__label"
|
|
7380
|
-
}, [u(P(r.label) + " ", 1), r.required ? (T(), c("span",
|
|
7872
|
+
}, [u(P(r.label) + " ", 1), r.required ? (T(), c("span", Vu, "*")) : s("", !0)], 8, Bu)) : s("", !0),
|
|
7381
7873
|
l("div", {
|
|
7382
7874
|
id: L(A),
|
|
7383
7875
|
ref_key: "triggerRef",
|
|
@@ -7393,7 +7885,7 @@ var Lc = {
|
|
|
7393
7885
|
"aria-invalid": M.value ? "true" : void 0,
|
|
7394
7886
|
onClick: Y,
|
|
7395
7887
|
onKeydown: ae
|
|
7396
|
-
}, [l("div",
|
|
7888
|
+
}, [l("div", Uu, [R.value ? (T(), c(t, { key: 0 }, [
|
|
7397
7889
|
(T(!0), c(t, null, k(W.value, (e) => (T(), c("span", {
|
|
7398
7890
|
key: e.key,
|
|
7399
7891
|
class: "uid-tree-select__chip"
|
|
@@ -7402,10 +7894,10 @@ var Lc = {
|
|
|
7402
7894
|
class: "uid-tree-select__chip-remove",
|
|
7403
7895
|
"aria-label": L(p).treeSelect.removeTag(e.label),
|
|
7404
7896
|
onClick: X((t) => ie(t, e.key), ["stop"])
|
|
7405
|
-
}, "×", 8,
|
|
7406
|
-
K.value > 0 ? (T(), c("span",
|
|
7407
|
-
U.value.length === 0 ? (T(), c("span",
|
|
7408
|
-
], 64)) : (T(), c(t, { key: 1 }, [U.value.length > 0 ? (T(), c("span",
|
|
7897
|
+
}, "×", 8, Wu)]))), 128)),
|
|
7898
|
+
K.value > 0 ? (T(), c("span", Gu, "+" + P(K.value), 1)) : s("", !0),
|
|
7899
|
+
U.value.length === 0 ? (T(), c("span", Ku, P(m.value), 1)) : s("", !0)
|
|
7900
|
+
], 64)) : (T(), c(t, { key: 1 }, [U.value.length > 0 ? (T(), c("span", qu, P(U.value[0].label), 1)) : (T(), c("span", Ju, P(m.value), 1))], 64))]), l("div", Yu, [r.clearable && H.value.length > 0 ? (T(), c("button", {
|
|
7409
7901
|
key: 0,
|
|
7410
7902
|
type: "button",
|
|
7411
7903
|
class: "uid-tree-select__clear",
|
|
@@ -7414,12 +7906,12 @@ var Lc = {
|
|
|
7414
7906
|
}, [d(e, {
|
|
7415
7907
|
icon: L(Ee),
|
|
7416
7908
|
size: 14
|
|
7417
|
-
}, null, 8, ["icon"])], 8,
|
|
7909
|
+
}, null, 8, ["icon"])], 8, Xu)) : s("", !0), d(e, {
|
|
7418
7910
|
icon: L(se),
|
|
7419
7911
|
size: 16,
|
|
7420
7912
|
class: y(["uid-tree-select__chevron", { "uid-tree-select__chevron--open": v.value }]),
|
|
7421
7913
|
"aria-hidden": "true"
|
|
7422
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
7914
|
+
}, null, 8, ["icon", "class"])])], 40, Hu),
|
|
7423
7915
|
(T(), o(n, { to: "body" }, [v.value ? (T(), c("div", {
|
|
7424
7916
|
key: 0,
|
|
7425
7917
|
id: L(j),
|
|
@@ -7463,19 +7955,19 @@ var Lc = {
|
|
|
7463
7955
|
"selectable",
|
|
7464
7956
|
"default-expand-all",
|
|
7465
7957
|
"show-guides"
|
|
7466
|
-
]))], 12,
|
|
7958
|
+
]))], 12, Zu)) : s("", !0)])),
|
|
7467
7959
|
N.value ? (T(), c("p", {
|
|
7468
7960
|
key: 1,
|
|
7469
7961
|
class: y(["uid-tree-select__hint", M.value && "uid-tree-select__hint--error"])
|
|
7470
7962
|
}, P(N.value), 3)) : s("", !0)
|
|
7471
7963
|
], 2));
|
|
7472
7964
|
}
|
|
7473
|
-
}),
|
|
7965
|
+
}), $u = {
|
|
7474
7966
|
key: 0,
|
|
7475
7967
|
class: "uid-notification-badge__dot",
|
|
7476
7968
|
role: "status",
|
|
7477
7969
|
"aria-hidden": "true"
|
|
7478
|
-
},
|
|
7970
|
+
}, ed = ["aria-label"], td = /* @__PURE__ */ f({
|
|
7479
7971
|
__name: "UidNotificationBadge",
|
|
7480
7972
|
props: {
|
|
7481
7973
|
count: { default: 0 },
|
|
@@ -7502,22 +7994,22 @@ var Lc = {
|
|
|
7502
7994
|
return (t, a) => (T(), c("span", {
|
|
7503
7995
|
class: y(["uid-notification-badge", [`uid-notification-badge--${e.placement}`, e.tone !== "danger" && `uid-notification-badge--${e.tone}`]]),
|
|
7504
7996
|
style: b(i.value)
|
|
7505
|
-
}, [A(t.$slots, "default"), n.value && e.dot ? (T(), c("span",
|
|
7997
|
+
}, [A(t.$slots, "default"), n.value && e.dot ? (T(), c("span", $u)) : n.value ? (T(), c("span", {
|
|
7506
7998
|
key: 1,
|
|
7507
7999
|
class: "uid-notification-badge__count",
|
|
7508
8000
|
role: "status",
|
|
7509
8001
|
"aria-label": `${e.count}`
|
|
7510
|
-
}, P(r.value), 9,
|
|
8002
|
+
}, P(r.value), 9, ed)) : s("", !0)], 6));
|
|
7511
8003
|
}
|
|
7512
|
-
}),
|
|
8004
|
+
}), nd = ["aria-hidden", "aria-label"], rd = ["disabled", "aria-label"], id = ["disabled", "aria-label"], ad = {
|
|
7513
8005
|
key: 2,
|
|
7514
8006
|
class: "uid-carousel__indicators",
|
|
7515
8007
|
role: "tablist"
|
|
7516
|
-
},
|
|
8008
|
+
}, od = [
|
|
7517
8009
|
"aria-selected",
|
|
7518
8010
|
"aria-label",
|
|
7519
8011
|
"onClick"
|
|
7520
|
-
],
|
|
8012
|
+
], sd = /* @__PURE__ */ f({
|
|
7521
8013
|
__name: "UidCarousel",
|
|
7522
8014
|
props: /* @__PURE__ */ g({
|
|
7523
8015
|
items: {},
|
|
@@ -7609,7 +8101,7 @@ var Lc = {
|
|
|
7609
8101
|
}, [A(r.$slots, "default", {
|
|
7610
8102
|
item: e,
|
|
7611
8103
|
index: t
|
|
7612
|
-
})], 8,
|
|
8104
|
+
})], 8, nd))), 128))], 4),
|
|
7613
8105
|
n.showArrows && _.value > 1 ? (T(), c("button", {
|
|
7614
8106
|
key: 0,
|
|
7615
8107
|
type: "button",
|
|
@@ -7620,7 +8112,7 @@ var Lc = {
|
|
|
7620
8112
|
}, [d(e, {
|
|
7621
8113
|
icon: n.direction === "vertical" ? L(ue) : L(ce),
|
|
7622
8114
|
size: 20
|
|
7623
|
-
}, null, 8, ["icon"])], 8,
|
|
8115
|
+
}, null, 8, ["icon"])], 8, rd)) : s("", !0),
|
|
7624
8116
|
n.showArrows && _.value > 1 ? (T(), c("button", {
|
|
7625
8117
|
key: 1,
|
|
7626
8118
|
type: "button",
|
|
@@ -7631,8 +8123,8 @@ var Lc = {
|
|
|
7631
8123
|
}, [d(e, {
|
|
7632
8124
|
icon: n.direction === "vertical" ? L(se) : L(le),
|
|
7633
8125
|
size: 20
|
|
7634
|
-
}, null, 8, ["icon"])], 8,
|
|
7635
|
-
n.showIndicators && _.value > 1 ? (T(), c("div",
|
|
8126
|
+
}, null, 8, ["icon"])], 8, id)) : s("", !0),
|
|
8127
|
+
n.showIndicators && _.value > 1 ? (T(), c("div", ad, [(T(!0), c(t, null, k(n.items, (e, t) => (T(), c("button", {
|
|
7636
8128
|
key: t,
|
|
7637
8129
|
type: "button",
|
|
7638
8130
|
class: y(["uid-carousel__indicator", { "uid-carousel__indicator--active": t === p.value }]),
|
|
@@ -7640,38 +8132,38 @@ var Lc = {
|
|
|
7640
8132
|
"aria-selected": t === p.value,
|
|
7641
8133
|
"aria-label": L(u).carousel.slide(t + 1),
|
|
7642
8134
|
onClick: (e) => x(t)
|
|
7643
|
-
}, null, 10,
|
|
8135
|
+
}, null, 10, od))), 128))])) : s("", !0)
|
|
7644
8136
|
], 34));
|
|
7645
8137
|
}
|
|
7646
|
-
}),
|
|
8138
|
+
}), cd = { class: "uid-transfer__panel" }, ld = { class: "uid-transfer__header" }, ud = { class: "uid-transfer__title" }, dd = ["aria-checked"], fd = { class: "uid-transfer__count" }, pd = {
|
|
7647
8139
|
key: 0,
|
|
7648
8140
|
class: "uid-transfer__search"
|
|
7649
|
-
},
|
|
8141
|
+
}, md = ["placeholder"], hd = {
|
|
7650
8142
|
class: "uid-transfer__list",
|
|
7651
8143
|
role: "listbox",
|
|
7652
8144
|
"aria-multiselectable": "true"
|
|
7653
|
-
},
|
|
8145
|
+
}, gd = [
|
|
7654
8146
|
"aria-selected",
|
|
7655
8147
|
"aria-disabled",
|
|
7656
8148
|
"onClick"
|
|
7657
|
-
],
|
|
8149
|
+
], _d = { class: "uid-transfer__label" }, vd = {
|
|
7658
8150
|
key: 0,
|
|
7659
8151
|
class: "uid-transfer__empty"
|
|
7660
|
-
},
|
|
8152
|
+
}, yd = { class: "uid-transfer__ops" }, bd = ["disabled", "aria-label"], xd = ["disabled", "aria-label"], Sd = { class: "uid-transfer__panel" }, Cd = { class: "uid-transfer__header" }, wd = { class: "uid-transfer__title" }, Td = ["aria-checked"], Ed = { class: "uid-transfer__count" }, Dd = {
|
|
7661
8153
|
key: 0,
|
|
7662
8154
|
class: "uid-transfer__search"
|
|
7663
|
-
},
|
|
8155
|
+
}, Od = ["placeholder"], kd = {
|
|
7664
8156
|
class: "uid-transfer__list",
|
|
7665
8157
|
role: "listbox",
|
|
7666
8158
|
"aria-multiselectable": "true"
|
|
7667
|
-
},
|
|
8159
|
+
}, Ad = [
|
|
7668
8160
|
"aria-selected",
|
|
7669
8161
|
"aria-disabled",
|
|
7670
8162
|
"onClick"
|
|
7671
|
-
],
|
|
8163
|
+
], jd = { class: "uid-transfer__label" }, Md = {
|
|
7672
8164
|
key: 0,
|
|
7673
8165
|
class: "uid-transfer__empty"
|
|
7674
|
-
},
|
|
8166
|
+
}, Nd = /* @__PURE__ */ f({
|
|
7675
8167
|
__name: "UidTransfer",
|
|
7676
8168
|
props: /* @__PURE__ */ g({
|
|
7677
8169
|
items: {},
|
|
@@ -7722,8 +8214,8 @@ var Lc = {
|
|
|
7722
8214
|
p.value = e, g.value = /* @__PURE__ */ new Set(), f("change", e);
|
|
7723
8215
|
}
|
|
7724
8216
|
return (r, i) => (T(), c("div", { class: y(["uid-transfer", { "uid-transfer--disabled": n.disabled }]) }, [
|
|
7725
|
-
l("div",
|
|
7726
|
-
l("div",
|
|
8217
|
+
l("div", cd, [
|
|
8218
|
+
l("div", ld, [l("span", ud, [l("span", {
|
|
7727
8219
|
class: y(["uid-transfer__check", { "uid-transfer__check--checked": j.value }]),
|
|
7728
8220
|
role: "checkbox",
|
|
7729
8221
|
"aria-checked": j.value,
|
|
@@ -7734,14 +8226,14 @@ var Lc = {
|
|
|
7734
8226
|
key: 0,
|
|
7735
8227
|
icon: L(Q),
|
|
7736
8228
|
size: 10
|
|
7737
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
7738
|
-
n.searchable ? (T(), c("div",
|
|
8229
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, dd), u(" " + P(b.value[0]), 1)]), l("span", fd, P(h.value.size) + " / " + P(w.value.length), 1)]),
|
|
8230
|
+
n.searchable ? (T(), c("div", pd, [J(l("input", {
|
|
7739
8231
|
"onUpdate:modelValue": i[3] ||= (e) => _.value = e,
|
|
7740
8232
|
class: "uid-transfer__search-input",
|
|
7741
8233
|
type: "text",
|
|
7742
8234
|
placeholder: L(m).common.search
|
|
7743
|
-
}, null, 8,
|
|
7744
|
-
l("ul",
|
|
8235
|
+
}, null, 8, md), [[U, _.value]])])) : s("", !0),
|
|
8236
|
+
l("ul", hd, [(T(!0), c(t, null, k(w.value, (t) => (T(), c("li", {
|
|
7745
8237
|
key: t.key,
|
|
7746
8238
|
class: y(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
7747
8239
|
role: "option",
|
|
@@ -7755,9 +8247,9 @@ var Lc = {
|
|
|
7755
8247
|
key: 0,
|
|
7756
8248
|
icon: L(Q),
|
|
7757
8249
|
size: 10
|
|
7758
|
-
}, null, 8, ["icon"])) : s("", !0)], 2), l("span",
|
|
8250
|
+
}, null, 8, ["icon"])) : s("", !0)], 2), l("span", _d, P(t.label), 1)], 10, gd))), 128)), w.value.length === 0 ? (T(), c("li", vd, P(L(m).common.noResults), 1)) : s("", !0)])
|
|
7759
8251
|
]),
|
|
7760
|
-
l("div",
|
|
8252
|
+
l("div", yd, [l("button", {
|
|
7761
8253
|
type: "button",
|
|
7762
8254
|
class: "uid-transfer__op",
|
|
7763
8255
|
disabled: h.value.size === 0 || n.disabled,
|
|
@@ -7766,7 +8258,7 @@ var Lc = {
|
|
|
7766
8258
|
}, [d(e, {
|
|
7767
8259
|
icon: L(le),
|
|
7768
8260
|
size: 16
|
|
7769
|
-
}, null, 8, ["icon"])], 8,
|
|
8261
|
+
}, null, 8, ["icon"])], 8, bd), l("button", {
|
|
7770
8262
|
type: "button",
|
|
7771
8263
|
class: "uid-transfer__op",
|
|
7772
8264
|
disabled: g.value.size === 0 || n.disabled,
|
|
@@ -7775,9 +8267,9 @@ var Lc = {
|
|
|
7775
8267
|
}, [d(e, {
|
|
7776
8268
|
icon: L(ce),
|
|
7777
8269
|
size: 16
|
|
7778
|
-
}, null, 8, ["icon"])], 8,
|
|
7779
|
-
l("div",
|
|
7780
|
-
l("div",
|
|
8270
|
+
}, null, 8, ["icon"])], 8, xd)]),
|
|
8271
|
+
l("div", Sd, [
|
|
8272
|
+
l("div", Cd, [l("span", wd, [l("span", {
|
|
7781
8273
|
class: y(["uid-transfer__check", { "uid-transfer__check--checked": M.value }]),
|
|
7782
8274
|
role: "checkbox",
|
|
7783
8275
|
"aria-checked": M.value,
|
|
@@ -7788,14 +8280,14 @@ var Lc = {
|
|
|
7788
8280
|
key: 0,
|
|
7789
8281
|
icon: L(Q),
|
|
7790
8282
|
size: 10
|
|
7791
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
7792
|
-
n.searchable ? (T(), c("div",
|
|
8283
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, Td), u(" " + P(b.value[1]), 1)]), l("span", Ed, P(g.value.size) + " / " + P(E.value.length), 1)]),
|
|
8284
|
+
n.searchable ? (T(), c("div", Dd, [J(l("input", {
|
|
7793
8285
|
"onUpdate:modelValue": i[7] ||= (e) => v.value = e,
|
|
7794
8286
|
class: "uid-transfer__search-input",
|
|
7795
8287
|
type: "text",
|
|
7796
8288
|
placeholder: L(m).common.search
|
|
7797
|
-
}, null, 8,
|
|
7798
|
-
l("ul",
|
|
8289
|
+
}, null, 8, Od), [[U, v.value]])])) : s("", !0),
|
|
8290
|
+
l("ul", kd, [(T(!0), c(t, null, k(E.value, (t) => (T(), c("li", {
|
|
7799
8291
|
key: t.key,
|
|
7800
8292
|
class: y(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
7801
8293
|
role: "option",
|
|
@@ -7809,60 +8301,60 @@ var Lc = {
|
|
|
7809
8301
|
key: 0,
|
|
7810
8302
|
icon: L(Q),
|
|
7811
8303
|
size: 10
|
|
7812
|
-
}, null, 8, ["icon"])) : s("", !0)], 2), l("span",
|
|
8304
|
+
}, null, 8, ["icon"])) : s("", !0)], 2), l("span", jd, P(t.label), 1)], 10, Ad))), 128)), E.value.length === 0 ? (T(), c("li", Md, P(L(m).common.noResults), 1)) : s("", !0)])
|
|
7813
8305
|
])
|
|
7814
8306
|
], 2));
|
|
7815
8307
|
}
|
|
7816
|
-
}),
|
|
8308
|
+
}), Pd = {
|
|
7817
8309
|
key: 0,
|
|
7818
8310
|
class: "uid-cascader__label"
|
|
7819
|
-
},
|
|
8311
|
+
}, Fd = [
|
|
7820
8312
|
"aria-expanded",
|
|
7821
8313
|
"aria-disabled",
|
|
7822
8314
|
"aria-label"
|
|
7823
|
-
],
|
|
8315
|
+
], Id = { class: "uid-cascader__value" }, Ld = {
|
|
7824
8316
|
key: 0,
|
|
7825
8317
|
class: "uid-cascader__separator"
|
|
7826
|
-
},
|
|
8318
|
+
}, Rd = {
|
|
7827
8319
|
key: 1,
|
|
7828
8320
|
class: "uid-cascader__placeholder"
|
|
7829
|
-
},
|
|
8321
|
+
}, zd = { class: "uid-cascader__suffix" }, Bd = ["aria-label"], Vd = {
|
|
7830
8322
|
key: 0,
|
|
7831
8323
|
class: "uid-cascader__search"
|
|
7832
|
-
},
|
|
8324
|
+
}, Hd = [
|
|
7833
8325
|
"aria-expanded",
|
|
7834
8326
|
"aria-controls",
|
|
7835
8327
|
"aria-activedescendant",
|
|
7836
8328
|
"aria-label",
|
|
7837
8329
|
"placeholder"
|
|
7838
|
-
],
|
|
8330
|
+
], Ud = ["id"], Wd = [
|
|
7839
8331
|
"id",
|
|
7840
8332
|
"aria-selected",
|
|
7841
8333
|
"onMouseenter",
|
|
7842
8334
|
"onClick"
|
|
7843
|
-
],
|
|
8335
|
+
], Gd = {
|
|
7844
8336
|
key: 0,
|
|
7845
8337
|
class: "uid-cascader__separator"
|
|
7846
|
-
},
|
|
8338
|
+
}, Kd = {
|
|
7847
8339
|
key: 0,
|
|
7848
8340
|
class: "uid-cascader__highlight"
|
|
7849
|
-
},
|
|
8341
|
+
}, qd = {
|
|
7850
8342
|
key: 0,
|
|
7851
8343
|
class: "uid-cascader__empty",
|
|
7852
8344
|
role: "presentation"
|
|
7853
|
-
},
|
|
8345
|
+
}, Jd = {
|
|
7854
8346
|
key: 2,
|
|
7855
8347
|
class: "uid-cascader__columns"
|
|
7856
|
-
},
|
|
8348
|
+
}, Yd = [
|
|
7857
8349
|
"aria-haspopup",
|
|
7858
8350
|
"aria-expanded",
|
|
7859
8351
|
"aria-disabled",
|
|
7860
8352
|
"onClick",
|
|
7861
8353
|
"onMouseenter"
|
|
7862
|
-
],
|
|
8354
|
+
], Xd = { class: "uid-cascader__option-label" }, Zd = {
|
|
7863
8355
|
key: 1,
|
|
7864
8356
|
class: "uid-cascader__hint"
|
|
7865
|
-
},
|
|
8357
|
+
}, Qd = /* @__PURE__ */ f({
|
|
7866
8358
|
__name: "UidCascader",
|
|
7867
8359
|
props: /* @__PURE__ */ g({
|
|
7868
8360
|
size: { default: "md" },
|
|
@@ -8041,7 +8533,7 @@ var Lc = {
|
|
|
8041
8533
|
"uid-cascader--disabled": r.disabled
|
|
8042
8534
|
}]])
|
|
8043
8535
|
}, [
|
|
8044
|
-
r.label ? (T(), c("label",
|
|
8536
|
+
r.label ? (T(), c("label", Pd, P(r.label), 1)) : s("", !0),
|
|
8045
8537
|
l("div", {
|
|
8046
8538
|
ref_key: "triggerRef",
|
|
8047
8539
|
ref: E,
|
|
@@ -8054,7 +8546,7 @@ var Lc = {
|
|
|
8054
8546
|
"aria-label": g.value,
|
|
8055
8547
|
onClick: ae,
|
|
8056
8548
|
onKeydown: pe
|
|
8057
|
-
}, [l("div",
|
|
8549
|
+
}, [l("div", Id, [ne.value.length > 0 ? (T(!0), c(t, { key: 0 }, k(ne.value, (e, n) => (T(), c(t, { key: n }, [l("span", null, P(e), 1), n < ne.value.length - 1 ? (T(), c("span", Ld, P(r.separator), 1)) : s("", !0)], 64))), 128)) : (T(), c("span", Rd, P(g.value), 1))]), l("div", zd, [r.clearable && m.value.length > 0 ? (T(), c("button", {
|
|
8058
8550
|
key: 0,
|
|
8059
8551
|
type: "button",
|
|
8060
8552
|
class: "uid-cascader__clear",
|
|
@@ -8063,18 +8555,18 @@ var Lc = {
|
|
|
8063
8555
|
}, [d(e, {
|
|
8064
8556
|
icon: L(Ee),
|
|
8065
8557
|
size: 14
|
|
8066
|
-
}, null, 8, ["icon"])], 8,
|
|
8558
|
+
}, null, 8, ["icon"])], 8, Bd)) : s("", !0), d(e, {
|
|
8067
8559
|
icon: L(se),
|
|
8068
8560
|
size: 16,
|
|
8069
8561
|
class: y(["uid-cascader__chevron", { "uid-cascader__chevron--open": _.value }])
|
|
8070
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
8562
|
+
}, null, 8, ["icon", "class"])])], 40, Fd),
|
|
8071
8563
|
(T(), o(n, { to: "body" }, [_.value ? (T(), c("div", {
|
|
8072
8564
|
key: 0,
|
|
8073
8565
|
ref_key: "panelRef",
|
|
8074
8566
|
ref: D,
|
|
8075
8567
|
class: "uid-cascader__dropdown",
|
|
8076
8568
|
style: b(L(A))
|
|
8077
|
-
}, [r.searchable ? (T(), c("div",
|
|
8569
|
+
}, [r.searchable ? (T(), c("div", Vd, [J(l("input", {
|
|
8078
8570
|
ref_key: "searchRef",
|
|
8079
8571
|
ref: w,
|
|
8080
8572
|
"onUpdate:modelValue": a[0] ||= (e) => M.value = e,
|
|
@@ -8089,7 +8581,7 @@ var Lc = {
|
|
|
8089
8581
|
"aria-label": r.searchPlaceholder ?? L(h).common.search,
|
|
8090
8582
|
placeholder: r.searchPlaceholder ?? L(h).common.search,
|
|
8091
8583
|
onKeydown: Y
|
|
8092
|
-
}, null, 40,
|
|
8584
|
+
}, null, 40, Hd), [[U, M.value]])])) : s("", !0), H.value ? (T(), c("ul", {
|
|
8093
8585
|
key: 1,
|
|
8094
8586
|
id: L(F),
|
|
8095
8587
|
class: "uid-cascader__results",
|
|
@@ -8103,7 +8595,7 @@ var Lc = {
|
|
|
8103
8595
|
onMousedown: a[1] ||= X(() => {}, ["prevent"]),
|
|
8104
8596
|
onMouseenter: (e) => N.value = n,
|
|
8105
8597
|
onClick: (t) => q(e)
|
|
8106
|
-
}, [(T(!0), c(t, null, k(e.path, (e, n) => (T(), c(t, { key: n }, [n > 0 ? (T(), c("span",
|
|
8598
|
+
}, [(T(!0), c(t, null, k(e.path, (e, n) => (T(), c(t, { key: n }, [n > 0 ? (T(), c("span", Gd, P(r.separator), 1)) : s("", !0), l("span", null, [(T(!0), c(t, null, k(W(e.label), (e, n) => (T(), c(t, { key: n }, [e.match ? (T(), c("mark", Kd, P(e.text), 1)) : (T(), c(t, { key: 1 }, [u(P(e.text), 1)], 64))], 64))), 128))])], 64))), 128))], 42, Wd))), 128)), V.value.length === 0 ? (T(), c("li", qd, P(L(h).common.noResults), 1)) : s("", !0)], 8, Ud)) : (T(), c("div", Jd, [(T(!0), c(t, null, k(ee.value, (n, i) => (T(), c("div", {
|
|
8107
8599
|
key: i,
|
|
8108
8600
|
class: "uid-cascader__column"
|
|
8109
8601
|
}, [(T(!0), c(t, null, k(n, (t) => (T(), c("button", {
|
|
@@ -8119,27 +8611,27 @@ var Lc = {
|
|
|
8119
8611
|
"aria-disabled": t.disabled ? "true" : void 0,
|
|
8120
8612
|
onClick: (e) => ce(t, i),
|
|
8121
8613
|
onMouseenter: (e) => ue(t, i)
|
|
8122
|
-
}, [l("span",
|
|
8614
|
+
}, [l("span", Xd, P(t.label), 1), t.children?.length ? (T(), o(e, {
|
|
8123
8615
|
key: 0,
|
|
8124
8616
|
icon: L(le),
|
|
8125
8617
|
size: 14,
|
|
8126
8618
|
class: "uid-cascader__option-arrow",
|
|
8127
8619
|
"aria-hidden": "true"
|
|
8128
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
8129
|
-
r.hint ? (T(), c("p",
|
|
8620
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, Yd))), 128))]))), 128))]))], 4)) : s("", !0)])),
|
|
8621
|
+
r.hint ? (T(), c("p", Zd, P(r.hint), 1)) : s("", !0)
|
|
8130
8622
|
], 2));
|
|
8131
8623
|
}
|
|
8132
|
-
}),
|
|
8624
|
+
}), $d = { class: "uid-calendar__header" }, ef = { class: "uid-calendar__title" }, tf = { class: "uid-calendar__nav" }, nf = ["aria-label"], rf = ["aria-label"], af = { class: "uid-calendar__weekdays" }, of = { class: "uid-calendar__grid" }, sf = [
|
|
8133
8625
|
"tabindex",
|
|
8134
8626
|
"aria-current",
|
|
8135
8627
|
"aria-selected",
|
|
8136
8628
|
"aria-label",
|
|
8137
8629
|
"onClick",
|
|
8138
8630
|
"onKeydown"
|
|
8139
|
-
],
|
|
8631
|
+
], cf = { class: "uid-calendar__date" }, lf = { class: "uid-calendar__events" }, uf = ["title", "onClick"], df = { class: "uid-calendar__event-label" }, ff = {
|
|
8140
8632
|
key: 0,
|
|
8141
8633
|
class: "uid-calendar__more"
|
|
8142
|
-
},
|
|
8634
|
+
}, pf = /* @__PURE__ */ f({
|
|
8143
8635
|
__name: "UidCalendar",
|
|
8144
8636
|
props: /* @__PURE__ */ g({
|
|
8145
8637
|
events: { default: () => [] },
|
|
@@ -8226,7 +8718,7 @@ var Lc = {
|
|
|
8226
8718
|
e.stopPropagation(), o("event-click", t);
|
|
8227
8719
|
}
|
|
8228
8720
|
return (r, i) => (T(), c("div", { class: y(["uid-calendar", { "uid-calendar--compact": n.compact }]) }, [
|
|
8229
|
-
l("div",
|
|
8721
|
+
l("div", $d, [l("span", ef, P(x.value), 1), l("div", tf, [
|
|
8230
8722
|
l("button", {
|
|
8231
8723
|
type: "button",
|
|
8232
8724
|
class: "uid-calendar__btn uid-calendar__btn--icon",
|
|
@@ -8235,7 +8727,7 @@ var Lc = {
|
|
|
8235
8727
|
}, [d(e, {
|
|
8236
8728
|
icon: L(ce),
|
|
8237
8729
|
size: 14
|
|
8238
|
-
}, null, 8, ["icon"])], 8,
|
|
8730
|
+
}, null, 8, ["icon"])], 8, nf),
|
|
8239
8731
|
l("button", {
|
|
8240
8732
|
type: "button",
|
|
8241
8733
|
class: "uid-calendar__btn",
|
|
@@ -8249,13 +8741,13 @@ var Lc = {
|
|
|
8249
8741
|
}, [d(e, {
|
|
8250
8742
|
icon: L(le),
|
|
8251
8743
|
size: 14
|
|
8252
|
-
}, null, 8, ["icon"])], 8,
|
|
8744
|
+
}, null, 8, ["icon"])], 8, rf)
|
|
8253
8745
|
])]),
|
|
8254
|
-
l("div",
|
|
8746
|
+
l("div", af, [(T(!0), c(t, null, k(L(f).datePicker.weekdaysShort, (e) => (T(), c("span", {
|
|
8255
8747
|
key: e,
|
|
8256
8748
|
class: "uid-calendar__weekday"
|
|
8257
8749
|
}, P(e), 1))), 128))]),
|
|
8258
|
-
l("div",
|
|
8750
|
+
l("div", of, [(T(!0), c(t, null, k(w.value, (e) => (T(), c("div", {
|
|
8259
8751
|
key: e.iso,
|
|
8260
8752
|
class: y(["uid-calendar__day", {
|
|
8261
8753
|
"uid-calendar__day--other": !e.current,
|
|
@@ -8270,30 +8762,30 @@ var Lc = {
|
|
|
8270
8762
|
"aria-label": e.iso,
|
|
8271
8763
|
onClick: (t) => M(e),
|
|
8272
8764
|
onKeydown: [Y(X((t) => M(e), ["prevent"]), ["enter"]), Y(X((t) => M(e), ["prevent"]), ["space"])]
|
|
8273
|
-
}, [l("span",
|
|
8765
|
+
}, [l("span", cf, P(e.date.getDate()), 1), l("div", lf, [(T(!0), c(t, null, k(e.events.slice(0, n.maxEventsPerDay), (t, n) => (T(), c("button", {
|
|
8274
8766
|
key: t.id ?? `${e.iso}-${n}`,
|
|
8275
8767
|
type: "button",
|
|
8276
8768
|
class: "uid-calendar__event",
|
|
8277
8769
|
style: b(t.color ? { "--uid-event-color": t.color } : void 0),
|
|
8278
8770
|
title: t.title,
|
|
8279
8771
|
onClick: (e) => N(e, t)
|
|
8280
|
-
}, [l("span",
|
|
8772
|
+
}, [l("span", df, P(t.title), 1)], 12, uf))), 128)), e.events.length > n.maxEventsPerDay ? (T(), c("span", ff, "+" + P(e.events.length - n.maxEventsPerDay), 1)) : s("", !0)])], 42, sf))), 128))])
|
|
8281
8773
|
], 2));
|
|
8282
8774
|
}
|
|
8283
|
-
}),
|
|
8775
|
+
}), mf = ["aria-label"], hf = [
|
|
8284
8776
|
"viewBox",
|
|
8285
8777
|
"width",
|
|
8286
8778
|
"height"
|
|
8287
|
-
],
|
|
8779
|
+
], gf = [
|
|
8288
8780
|
"x2",
|
|
8289
8781
|
"y1",
|
|
8290
8782
|
"y2"
|
|
8291
|
-
],
|
|
8783
|
+
], _f = [
|
|
8292
8784
|
"x",
|
|
8293
8785
|
"y",
|
|
8294
8786
|
"width",
|
|
8295
8787
|
"height"
|
|
8296
|
-
],
|
|
8788
|
+
], vf = ["d"], yf = ["d"], bf = ["cx", "cy"], xf = ["cx", "cy"], Sf = 2, Cf = /* @__PURE__ */ f({
|
|
8297
8789
|
__name: "UidSparkline",
|
|
8298
8790
|
props: {
|
|
8299
8791
|
data: {},
|
|
@@ -8336,11 +8828,11 @@ var Lc = {
|
|
|
8336
8828
|
};
|
|
8337
8829
|
});
|
|
8338
8830
|
function o(e, t) {
|
|
8339
|
-
return t <= 1 ? n.width / 2 :
|
|
8831
|
+
return t <= 1 ? n.width / 2 : Sf + e / (t - 1) * (n.width - Sf * 2);
|
|
8340
8832
|
}
|
|
8341
8833
|
function u(e) {
|
|
8342
8834
|
let t = i.value, r = (e - t.min) / (t.max - t.min);
|
|
8343
|
-
return n.height -
|
|
8835
|
+
return n.height - Sf - r * (n.height - Sf * 2);
|
|
8344
8836
|
}
|
|
8345
8837
|
let d = a(() => n.data.map((e, t) => ({
|
|
8346
8838
|
x: o(t, n.data.length),
|
|
@@ -8359,14 +8851,14 @@ var Lc = {
|
|
|
8359
8851
|
}), p = a(() => {
|
|
8360
8852
|
let e = d.value;
|
|
8361
8853
|
if (e.length === 0) return "";
|
|
8362
|
-
let t = n.height -
|
|
8854
|
+
let t = n.height - Sf;
|
|
8363
8855
|
return `${f.value} L ${e[e.length - 1].x.toFixed(2)} ${t.toFixed(2)} L ${e[0].x.toFixed(2)} ${t.toFixed(2)} Z`;
|
|
8364
8856
|
}), m = a(() => {
|
|
8365
8857
|
let e = d.value, t = e.length;
|
|
8366
8858
|
if (t === 0) return [];
|
|
8367
|
-
let r = n.width -
|
|
8859
|
+
let r = n.width - Sf * 2, i = Math.max(1, r / t * .7), a = u(0);
|
|
8368
8860
|
return e.map((e, n) => {
|
|
8369
|
-
let o =
|
|
8861
|
+
let o = Sf + (n + .5) / t * r - i / 2, s = e.v < 0, c = s ? a : e.y, l = s ? e.y : a;
|
|
8370
8862
|
return {
|
|
8371
8863
|
x: o,
|
|
8372
8864
|
y: c,
|
|
@@ -8403,59 +8895,59 @@ var Lc = {
|
|
|
8403
8895
|
x2: e.width,
|
|
8404
8896
|
y1: h.value,
|
|
8405
8897
|
y2: h.value
|
|
8406
|
-
}, null, 8,
|
|
8898
|
+
}, null, 8, gf)) : s("", !0), e.type === "bar" ? (T(!0), c(t, { key: 1 }, k(m.value, (e, t) => (T(), c("rect", {
|
|
8407
8899
|
key: t,
|
|
8408
8900
|
class: y(["uid-sparkline__bar", { "uid-sparkline__bar--negative": e.negative }]),
|
|
8409
8901
|
x: e.x,
|
|
8410
8902
|
y: e.y,
|
|
8411
8903
|
width: e.width,
|
|
8412
8904
|
height: e.height
|
|
8413
|
-
}, null, 10,
|
|
8905
|
+
}, null, 10, _f))), 128)) : (T(), c(t, { key: 2 }, [
|
|
8414
8906
|
e.type === "area" ? (T(), c("path", {
|
|
8415
8907
|
key: 0,
|
|
8416
8908
|
class: "uid-sparkline__area",
|
|
8417
8909
|
d: p.value
|
|
8418
|
-
}, null, 8,
|
|
8910
|
+
}, null, 8, vf)) : s("", !0),
|
|
8419
8911
|
l("path", {
|
|
8420
8912
|
class: "uid-sparkline__line",
|
|
8421
8913
|
d: f.value
|
|
8422
|
-
}, null, 8,
|
|
8914
|
+
}, null, 8, yf),
|
|
8423
8915
|
e.showDots ? (T(!0), c(t, { key: 1 }, k(d.value, (e, t) => (T(), c("circle", {
|
|
8424
8916
|
key: t,
|
|
8425
8917
|
class: "uid-sparkline__dot",
|
|
8426
8918
|
cx: e.x,
|
|
8427
8919
|
cy: e.y,
|
|
8428
8920
|
r: "2.5"
|
|
8429
|
-
}, null, 8,
|
|
8921
|
+
}, null, 8, bf))), 128)) : s("", !0),
|
|
8430
8922
|
e.showLast && _.value && !e.showDots ? (T(), c("circle", {
|
|
8431
8923
|
key: 2,
|
|
8432
8924
|
class: "uid-sparkline__dot uid-sparkline__dot--last",
|
|
8433
8925
|
cx: _.value.x,
|
|
8434
8926
|
cy: _.value.y,
|
|
8435
8927
|
r: "2.5"
|
|
8436
|
-
}, null, 8,
|
|
8437
|
-
], 64))], 8,
|
|
8928
|
+
}, null, 8, xf)) : s("", !0)
|
|
8929
|
+
], 64))], 8, hf))], 12, mf));
|
|
8438
8930
|
}
|
|
8439
|
-
}),
|
|
8931
|
+
}), wf = ["aria-valuemax", "aria-valuenow"], Tf = [
|
|
8440
8932
|
"width",
|
|
8441
8933
|
"height",
|
|
8442
8934
|
"viewBox"
|
|
8443
|
-
],
|
|
8935
|
+
], Ef = [
|
|
8444
8936
|
"cx",
|
|
8445
8937
|
"cy",
|
|
8446
8938
|
"r",
|
|
8447
8939
|
"stroke-width"
|
|
8448
|
-
],
|
|
8940
|
+
], Df = [
|
|
8449
8941
|
"cx",
|
|
8450
8942
|
"cy",
|
|
8451
8943
|
"r",
|
|
8452
8944
|
"stroke-width",
|
|
8453
8945
|
"stroke-dasharray",
|
|
8454
8946
|
"stroke-dashoffset"
|
|
8455
|
-
],
|
|
8947
|
+
], Of = {
|
|
8456
8948
|
key: 0,
|
|
8457
8949
|
class: "uid-progress-ring__label"
|
|
8458
|
-
},
|
|
8950
|
+
}, kf = /* @__PURE__ */ f({
|
|
8459
8951
|
__name: "UidProgressRing",
|
|
8460
8952
|
props: {
|
|
8461
8953
|
value: { default: 0 },
|
|
@@ -8500,7 +8992,7 @@ var Lc = {
|
|
|
8500
8992
|
cy: i.value,
|
|
8501
8993
|
r: n.value,
|
|
8502
8994
|
"stroke-width": e.strokeWidth
|
|
8503
|
-
}, null, 8,
|
|
8995
|
+
}, null, 8, Ef), l("circle", {
|
|
8504
8996
|
class: "uid-progress-ring__progress",
|
|
8505
8997
|
cx: i.value,
|
|
8506
8998
|
cy: i.value,
|
|
@@ -8508,50 +9000,50 @@ var Lc = {
|
|
|
8508
9000
|
"stroke-width": e.strokeWidth,
|
|
8509
9001
|
"stroke-dasharray": r.value,
|
|
8510
9002
|
"stroke-dashoffset": f.value
|
|
8511
|
-
}, null, 8,
|
|
9003
|
+
}, null, 8, Df)], 8, Tf)), e.showLabel || t.$slots.default ? (T(), c("div", Of, [A(t.$slots, "default", {}, () => [u(P(p.value), 1)])])) : s("", !0)], 14, wf));
|
|
8512
9004
|
}
|
|
8513
|
-
}),
|
|
9005
|
+
}), Af = [
|
|
8514
9006
|
"aria-valuemin",
|
|
8515
9007
|
"aria-valuemax",
|
|
8516
9008
|
"aria-valuenow",
|
|
8517
9009
|
"aria-label"
|
|
8518
|
-
],
|
|
9010
|
+
], jf = [
|
|
8519
9011
|
"width",
|
|
8520
9012
|
"height",
|
|
8521
9013
|
"viewBox"
|
|
8522
|
-
],
|
|
9014
|
+
], Mf = ["d", "stroke-width"], Nf = [
|
|
8523
9015
|
"d",
|
|
8524
9016
|
"stroke",
|
|
8525
9017
|
"stroke-width",
|
|
8526
9018
|
"stroke-dasharray",
|
|
8527
9019
|
"stroke-dashoffset"
|
|
8528
|
-
],
|
|
9020
|
+
], Pf = [
|
|
8529
9021
|
"d",
|
|
8530
9022
|
"stroke-width",
|
|
8531
9023
|
"stroke-dasharray",
|
|
8532
9024
|
"stroke-dashoffset"
|
|
8533
|
-
],
|
|
9025
|
+
], Ff = { key: 2 }, If = [
|
|
8534
9026
|
"x1",
|
|
8535
9027
|
"y1",
|
|
8536
9028
|
"x2",
|
|
8537
9029
|
"y2",
|
|
8538
9030
|
"transform"
|
|
8539
|
-
],
|
|
9031
|
+
], Lf = ["cx", "cy"], Rf = {
|
|
8540
9032
|
key: 0,
|
|
8541
9033
|
class: "uid-gauge__content"
|
|
8542
|
-
},
|
|
9034
|
+
}, zf = {
|
|
8543
9035
|
key: 0,
|
|
8544
9036
|
class: "uid-gauge__value"
|
|
8545
|
-
},
|
|
9037
|
+
}, Bf = {
|
|
8546
9038
|
key: 0,
|
|
8547
9039
|
class: "uid-gauge__suffix"
|
|
8548
|
-
},
|
|
9040
|
+
}, Vf = {
|
|
8549
9041
|
key: 1,
|
|
8550
9042
|
class: "uid-gauge__label"
|
|
8551
|
-
},
|
|
9043
|
+
}, Hf = {
|
|
8552
9044
|
key: 1,
|
|
8553
9045
|
class: "uid-gauge__limits"
|
|
8554
|
-
},
|
|
9046
|
+
}, Uf = 4, Wf = /* @__PURE__ */ f({
|
|
8555
9047
|
__name: "UidGauge",
|
|
8556
9048
|
props: {
|
|
8557
9049
|
value: { default: 0 },
|
|
@@ -8581,7 +9073,7 @@ var Lc = {
|
|
|
8581
9073
|
locale: { default: void 0 }
|
|
8582
9074
|
},
|
|
8583
9075
|
setup(e) {
|
|
8584
|
-
let n = e, r = $(), i = a(() => n.locale ?? r.value.code), o = a(() => (n.size - n.strokeWidth) / 2 -
|
|
9076
|
+
let n = e, r = $(), i = a(() => n.locale ?? r.value.code), o = a(() => (n.size - n.strokeWidth) / 2 - Uf), u = a(() => n.size / 2), d = a(() => n.size / 2), f = a(() => n.size / 2 + n.strokeWidth / 2 + Uf), p = a(() => Math.PI * o.value), m = a(() => Math.max(n.min, Math.min(n.max, n.value))), h = a(() => {
|
|
8585
9077
|
let e = n.max - n.min;
|
|
8586
9078
|
return e <= 0 ? 0 : (m.value - n.min) / e;
|
|
8587
9079
|
}), g = a(() => {
|
|
@@ -8619,7 +9111,7 @@ var Lc = {
|
|
|
8619
9111
|
class: "uid-gauge__track",
|
|
8620
9112
|
d: g.value,
|
|
8621
9113
|
"stroke-width": e.strokeWidth
|
|
8622
|
-
}, null, 8,
|
|
9114
|
+
}, null, 8, Mf),
|
|
8623
9115
|
e.ranges && e.ranges.length ? (T(!0), c(t, { key: 0 }, k(e.ranges, (t, n) => (T(), c("path", {
|
|
8624
9116
|
key: n,
|
|
8625
9117
|
class: "uid-gauge__range",
|
|
@@ -8628,7 +9120,7 @@ var Lc = {
|
|
|
8628
9120
|
"stroke-width": e.strokeWidth,
|
|
8629
9121
|
"stroke-dasharray": v(t).dasharray,
|
|
8630
9122
|
"stroke-dashoffset": v(t).dashoffset
|
|
8631
|
-
}, null, 8,
|
|
9123
|
+
}, null, 8, Nf))), 128)) : s("", !0),
|
|
8632
9124
|
!e.ranges || e.ranges.length === 0 ? (T(), c("path", {
|
|
8633
9125
|
key: 1,
|
|
8634
9126
|
class: "uid-gauge__progress",
|
|
@@ -8636,43 +9128,43 @@ var Lc = {
|
|
|
8636
9128
|
"stroke-width": e.strokeWidth,
|
|
8637
9129
|
"stroke-dasharray": p.value,
|
|
8638
9130
|
"stroke-dashoffset": _.value
|
|
8639
|
-
}, null, 8,
|
|
8640
|
-
e.showNeedle ? (T(), c("g",
|
|
9131
|
+
}, null, 8, Pf)) : s("", !0),
|
|
9132
|
+
e.showNeedle ? (T(), c("g", Ff, [l("line", {
|
|
8641
9133
|
class: "uid-gauge__needle",
|
|
8642
9134
|
x1: u.value,
|
|
8643
9135
|
y1: d.value,
|
|
8644
9136
|
x2: u.value + o.value - e.strokeWidth,
|
|
8645
9137
|
y2: d.value,
|
|
8646
9138
|
transform: `rotate(${x.value} ${u.value} ${d.value})`
|
|
8647
|
-
}, null, 8,
|
|
9139
|
+
}, null, 8, If), l("circle", {
|
|
8648
9140
|
class: "uid-gauge__needle-pivot",
|
|
8649
9141
|
cx: u.value,
|
|
8650
9142
|
cy: d.value,
|
|
8651
9143
|
r: "4"
|
|
8652
|
-
}, null, 8,
|
|
8653
|
-
], 8,
|
|
8654
|
-
e.showValue || e.label ? (T(), c("div",
|
|
8655
|
-
e.showLimits ? (T(), c("div",
|
|
8656
|
-
], 14,
|
|
9144
|
+
}, null, 8, Lf)])) : s("", !0)
|
|
9145
|
+
], 8, jf)),
|
|
9146
|
+
e.showValue || e.label ? (T(), c("div", Rf, [e.showValue ? (T(), c("div", zf, [l("span", null, P(S.value), 1), e.suffix ? (T(), c("span", Bf, P(e.suffix), 1)) : s("", !0)])) : s("", !0), e.label ? (T(), c("div", Vf, P(e.label), 1)) : s("", !0)])) : s("", !0),
|
|
9147
|
+
e.showLimits ? (T(), c("div", Hf, [l("span", null, P(e.min), 1), l("span", null, P(e.max), 1)])) : s("", !0)
|
|
9148
|
+
], 14, Af));
|
|
8657
9149
|
}
|
|
8658
|
-
}),
|
|
9150
|
+
}), Gf = ["aria-label"], Kf = { class: "uid-heatmap__chart" }, qf = {
|
|
8659
9151
|
key: 0,
|
|
8660
9152
|
class: "uid-heatmap__weekdays",
|
|
8661
9153
|
"aria-hidden": "true"
|
|
8662
|
-
},
|
|
9154
|
+
}, Jf = { class: "uid-heatmap__grid-wrapper" }, Yf = [
|
|
8663
9155
|
"width",
|
|
8664
9156
|
"height",
|
|
8665
9157
|
"viewBox"
|
|
8666
|
-
],
|
|
9158
|
+
], Xf = [
|
|
8667
9159
|
"x",
|
|
8668
9160
|
"y",
|
|
8669
9161
|
"width",
|
|
8670
9162
|
"height",
|
|
8671
9163
|
"fill"
|
|
8672
|
-
],
|
|
9164
|
+
], Zf = {
|
|
8673
9165
|
key: 0,
|
|
8674
9166
|
class: "uid-heatmap__legend"
|
|
8675
|
-
},
|
|
9167
|
+
}, Qf = /* @__PURE__ */ f({
|
|
8676
9168
|
__name: "UidHeatmap",
|
|
8677
9169
|
props: {
|
|
8678
9170
|
data: {},
|
|
@@ -8778,10 +9270,10 @@ var Lc = {
|
|
|
8778
9270
|
style: b(w.value),
|
|
8779
9271
|
role: "img",
|
|
8780
9272
|
"aria-label": A.value
|
|
8781
|
-
}, [l("div",
|
|
9273
|
+
}, [l("div", Kf, [e.showWeekdays ? (T(), c("div", qf, [(T(!0), c(t, null, k(L(r).datePicker.weekdaysShort, (e, t) => (T(), c("span", {
|
|
8782
9274
|
key: e,
|
|
8783
9275
|
class: y(["uid-heatmap__weekday", { "uid-heatmap__weekday--visible": t === 0 || t === 2 || t === 4 }])
|
|
8784
|
-
}, P(e), 3))), 128))])) : s("", !0), l("div",
|
|
9276
|
+
}, P(e), 3))), 128))])) : s("", !0), l("div", Jf, [e.showMonths ? (T(), c("div", {
|
|
8785
9277
|
key: 0,
|
|
8786
9278
|
class: "uid-heatmap__months",
|
|
8787
9279
|
style: b({ width: `${S.value}px` }),
|
|
@@ -8804,7 +9296,7 @@ var Lc = {
|
|
|
8804
9296
|
width: e.cellSize,
|
|
8805
9297
|
height: e.cellSize,
|
|
8806
9298
|
fill: v(t.level)
|
|
8807
|
-
}, [l("title", null, P(D(t)), 1)], 8,
|
|
9299
|
+
}, [l("title", null, P(D(t)), 1)], 8, Xf))), 128))], 8, Yf))])]), e.showLegend ? (T(), c("div", Zf, [
|
|
8808
9300
|
l("span", null, P(L(r).heatmap.less), 1),
|
|
8809
9301
|
(T(!0), c(t, null, k(E.value, (e) => (T(), c("span", {
|
|
8810
9302
|
key: e,
|
|
@@ -8812,9 +9304,9 @@ var Lc = {
|
|
|
8812
9304
|
style: b(e === 0 ? void 0 : { background: v(e) })
|
|
8813
9305
|
}, null, 4))), 128)),
|
|
8814
9306
|
l("span", null, P(L(r).heatmap.more), 1)
|
|
8815
|
-
])) : s("", !0)], 12,
|
|
9307
|
+
])) : s("", !0)], 12, Gf));
|
|
8816
9308
|
}
|
|
8817
|
-
}),
|
|
9309
|
+
}), $f = {
|
|
8818
9310
|
default: ["color-mix(in srgb, var(--uid-heatmap-matrix-color) 14%, var(--uid-color-bg))", "var(--uid-heatmap-matrix-color)"],
|
|
8819
9311
|
viridis: [
|
|
8820
9312
|
"#440154",
|
|
@@ -8894,42 +9386,42 @@ var Lc = {
|
|
|
8894
9386
|
"#67000d"
|
|
8895
9387
|
]
|
|
8896
9388
|
};
|
|
8897
|
-
function
|
|
8898
|
-
return Object.prototype.hasOwnProperty.call(
|
|
9389
|
+
function ep(e) {
|
|
9390
|
+
return Object.prototype.hasOwnProperty.call($f, e);
|
|
8899
9391
|
}
|
|
8900
|
-
function
|
|
9392
|
+
function tp(e) {
|
|
8901
9393
|
if (Array.isArray(e)) {
|
|
8902
9394
|
let t = e.filter((e) => typeof e == "string" && e.trim() !== "");
|
|
8903
|
-
return t.length > 0 ? t : [
|
|
9395
|
+
return t.length > 0 ? t : [...$f.default];
|
|
8904
9396
|
}
|
|
8905
9397
|
let t = typeof e == "string" ? e.trim() : "";
|
|
8906
|
-
if (t === "") return [
|
|
9398
|
+
if (t === "") return [...$f.default];
|
|
8907
9399
|
let n = t.toLowerCase();
|
|
8908
|
-
return
|
|
9400
|
+
return ep(n) ? [...$f[n]] : np(t) ? [`color-mix(in srgb, ${t} 14%, var(--uid-color-bg))`, t] : [...$f.default];
|
|
8909
9401
|
}
|
|
8910
|
-
function
|
|
9402
|
+
function np(e) {
|
|
8911
9403
|
return /^(#|rgba?\(|hsla?\(|hwb\(|lab\(|lch\(|oklab\(|oklch\(|color\(|color-mix\(|var\()/i.test(e) ? !0 : typeof CSS < "u" && typeof CSS.supports == "function" && CSS.supports("color", e);
|
|
8912
9404
|
}
|
|
8913
|
-
function
|
|
9405
|
+
function rp(e, t) {
|
|
8914
9406
|
if (e.length === 0) return "transparent";
|
|
8915
9407
|
if (e.length === 1) return e[0];
|
|
8916
9408
|
let n = (Number.isFinite(t) ? Math.min(1, Math.max(0, t)) : 0) * (e.length - 1), r = Math.min(e.length - 2, Math.floor(n)), i = n - r;
|
|
8917
9409
|
return i <= 5e-4 ? e[r] : i >= .9995 ? e[r + 1] : `color-mix(in srgb, ${e[r + 1]} ${(i * 100).toFixed(1)}%, ${e[r]})`;
|
|
8918
9410
|
}
|
|
8919
|
-
function
|
|
9411
|
+
function ip(e) {
|
|
8920
9412
|
return e.length === 1 ? e[0] : `linear-gradient(to right, ${e.join(", ")})`;
|
|
8921
9413
|
}
|
|
8922
9414
|
//#endregion
|
|
8923
9415
|
//#region src/components/Heatmap/UidHeatmapMatrix.vue?vue&type=script&setup=true&lang.ts
|
|
8924
|
-
var
|
|
9416
|
+
var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
8925
9417
|
"aria-label",
|
|
8926
9418
|
"aria-rowcount",
|
|
8927
9419
|
"aria-colcount"
|
|
8928
|
-
],
|
|
9420
|
+
], sp = {
|
|
8929
9421
|
class: "uid-heatmap-matrix__row uid-heatmap-matrix__row--head",
|
|
8930
9422
|
role: "row",
|
|
8931
9423
|
"aria-rowindex": "1"
|
|
8932
|
-
},
|
|
9424
|
+
}, cp = ["aria-colindex", "aria-label"], lp = ["title"], up = ["aria-rowindex"], dp = ["title"], fp = [
|
|
8933
9425
|
"aria-colindex",
|
|
8934
9426
|
"aria-label",
|
|
8935
9427
|
"tabindex",
|
|
@@ -8937,14 +9429,14 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
8937
9429
|
"data-c",
|
|
8938
9430
|
"onMouseenter",
|
|
8939
9431
|
"onFocus"
|
|
8940
|
-
],
|
|
9432
|
+
], pp = { class: "uid-heatmap-matrix__tooltip-label" }, mp = { class: "uid-heatmap-matrix__tooltip-value" }, hp = {
|
|
8941
9433
|
key: 1,
|
|
8942
9434
|
class: "uid-heatmap-matrix__legend",
|
|
8943
9435
|
"aria-hidden": "true"
|
|
8944
|
-
},
|
|
9436
|
+
}, gp = { class: "uid-heatmap-matrix__legend-value" }, _p = { class: "uid-heatmap-matrix__legend-value" }, vp = {
|
|
8945
9437
|
key: 0,
|
|
8946
9438
|
class: "uid-heatmap-matrix__legend-empty"
|
|
8947
|
-
},
|
|
9439
|
+
}, yp = 11, bp = 96, xp = 18, Sp = /* @__PURE__ */ f({
|
|
8948
9440
|
__name: "UidHeatmapMatrix",
|
|
8949
9441
|
props: {
|
|
8950
9442
|
rows: {},
|
|
@@ -8980,13 +9472,13 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
8980
9472
|
min: typeof n.min == "number" ? n.min : e,
|
|
8981
9473
|
max: typeof n.max == "number" ? n.max : t
|
|
8982
9474
|
};
|
|
8983
|
-
}), C = a(() => g.value.some((e) => e.some((e) => e === null))), w = a(() =>
|
|
9475
|
+
}), C = a(() => g.value.some((e) => e.some((e) => e === null))), w = a(() => tp(n.colorScale));
|
|
8984
9476
|
function E(e) {
|
|
8985
9477
|
let { min: t, max: n } = _.value;
|
|
8986
9478
|
return n <= t ? +(e > t) : (e - t) / (n - t);
|
|
8987
9479
|
}
|
|
8988
9480
|
function D(e) {
|
|
8989
|
-
if (e !== null) return
|
|
9481
|
+
if (e !== null) return rp(w.value, E(e));
|
|
8990
9482
|
}
|
|
8991
9483
|
function j(e) {
|
|
8992
9484
|
return n.formatValue ? n.formatValue(e) : new Intl.NumberFormat(r.value.code).format(e);
|
|
@@ -9008,7 +9500,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9008
9500
|
return `${n.row} × ${n.col}: ${M(n.value)}`;
|
|
9009
9501
|
}
|
|
9010
9502
|
function I(e) {
|
|
9011
|
-
return Math.min(
|
|
9503
|
+
return Math.min(bp, e.length * yp * .6);
|
|
9012
9504
|
}
|
|
9013
9505
|
let R = a(() => n.cols.reduce((e, t) => Math.max(e, I(t)), 0)), z = a(() => {
|
|
9014
9506
|
let e = n.cols.length, t = p.value, r = n.colLabels;
|
|
@@ -9017,7 +9509,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9017
9509
|
step: 1,
|
|
9018
9510
|
reserve: 0
|
|
9019
9511
|
};
|
|
9020
|
-
let a = t - 4 - m.value - n.gap * e, o = Math.max(n.minCellWidth, a / e), s = R.value, c = Math.max(1, Math.ceil((s + 6) / o)), l = (s +
|
|
9512
|
+
let a = t - 4 - m.value - n.gap * e, o = Math.max(n.minCellWidth, a / e), s = R.value, c = Math.max(1, Math.ceil((s + 6) / o)), l = (s + yp) * i, u = Math.max(n.minCellWidth, (a - l) / Math.max(.5, e - .5)), d = Math.max(0, Math.ceil(l - u / 2)), f = Math.max(1, Math.ceil(xp / u));
|
|
9021
9513
|
return r === "horizontal" ? {
|
|
9022
9514
|
mode: "horizontal",
|
|
9023
9515
|
step: c,
|
|
@@ -9045,7 +9537,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9045
9537
|
"--uid-heatmap-matrix-min-cell": `${n.minCellWidth}px`,
|
|
9046
9538
|
"--uid-heatmap-matrix-gap": `${n.gap}px`,
|
|
9047
9539
|
"--uid-heatmap-matrix-header-height": `${V.value}px`
|
|
9048
|
-
})), U = a(() => z.value.reserve > 0 ? { paddingInlineEnd: `${z.value.reserve}px` } : void 0), W = a(() =>
|
|
9540
|
+
})), U = a(() => z.value.reserve > 0 ? { paddingInlineEnd: `${z.value.reserve}px` } : void 0), W = a(() => ip(w.value)), K = a(() => n.ariaLabel ?? r.value.heatmap.matrixSummary(n.rows.length, n.cols.length)), q = O({
|
|
9049
9541
|
r: 0,
|
|
9050
9542
|
c: 0
|
|
9051
9543
|
}), J = O(null), Y = O(!1), X = a(() => J.value ?? (Y.value ? q.value : null)), Z = a(() => X.value ? N(X.value.r, X.value.c) : null), ee = O({});
|
|
@@ -9143,7 +9635,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9143
9635
|
class: y(["uid-heatmap-matrix", `uid-heatmap-matrix--labels-${z.value.mode}`]),
|
|
9144
9636
|
style: b(H.value)
|
|
9145
9637
|
}, [
|
|
9146
|
-
l("div",
|
|
9638
|
+
l("div", ap, [l("div", {
|
|
9147
9639
|
class: "uid-heatmap-matrix__grid",
|
|
9148
9640
|
role: "grid",
|
|
9149
9641
|
style: b(U.value),
|
|
@@ -9152,7 +9644,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9152
9644
|
"aria-colcount": e.cols.length + 1,
|
|
9153
9645
|
onMouseleave: re,
|
|
9154
9646
|
onKeydown: oe
|
|
9155
|
-
}, [l("div",
|
|
9647
|
+
}, [l("div", sp, [i[0] ||= l("div", {
|
|
9156
9648
|
class: "uid-heatmap-matrix__corner",
|
|
9157
9649
|
role: "columnheader",
|
|
9158
9650
|
"aria-colindex": "1"
|
|
@@ -9166,7 +9658,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9166
9658
|
class: y(["uid-heatmap-matrix__col-label", { "uid-heatmap-matrix__col-label--hidden": !B(t) }]),
|
|
9167
9659
|
title: e,
|
|
9168
9660
|
"aria-hidden": "true"
|
|
9169
|
-
}, P(e), 11,
|
|
9661
|
+
}, P(e), 11, lp)], 8, cp))), 128))]), (T(!0), c(t, null, k(e.rows, (n, r) => (T(), c("div", {
|
|
9170
9662
|
key: `r-${r}`,
|
|
9171
9663
|
class: "uid-heatmap-matrix__row",
|
|
9172
9664
|
role: "row",
|
|
@@ -9179,7 +9671,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9179
9671
|
role: "rowheader",
|
|
9180
9672
|
"aria-colindex": "1",
|
|
9181
9673
|
title: n
|
|
9182
|
-
}, P(n), 9,
|
|
9674
|
+
}, P(n), 9, dp), (T(!0), c(t, null, k(e.cols, (e, t) => (T(), c("div", {
|
|
9183
9675
|
key: `c-${r}-${t}`,
|
|
9184
9676
|
class: y(["uid-heatmap-matrix__cell", {
|
|
9185
9677
|
"uid-heatmap-matrix__cell--empty": g.value[r][t] === null,
|
|
@@ -9195,7 +9687,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9195
9687
|
onMouseenter: (e) => ne(r, t),
|
|
9196
9688
|
onFocus: (e) => ie(r, t),
|
|
9197
9689
|
onBlur: ae
|
|
9198
|
-
}, null, 46,
|
|
9690
|
+
}, null, 46, fp))), 128))], 8, up))), 128))], 44, op)]),
|
|
9199
9691
|
Z.value ? (T(), c("div", {
|
|
9200
9692
|
key: 0,
|
|
9201
9693
|
ref_key: "tooltipRef",
|
|
@@ -9206,25 +9698,25 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9206
9698
|
}, [A(n.$slots, "tooltip", {
|
|
9207
9699
|
cell: Z.value,
|
|
9208
9700
|
formatted: M(Z.value.value)
|
|
9209
|
-
}, () => [l("span",
|
|
9210
|
-
e.showLegend && e.rows.length > 0 && e.cols.length > 0 ? (T(), c("div",
|
|
9211
|
-
l("span",
|
|
9701
|
+
}, () => [l("span", pp, P(Z.value.row) + " × " + P(Z.value.col), 1), l("strong", mp, P(M(Z.value.value)), 1)])], 4)) : s("", !0),
|
|
9702
|
+
e.showLegend && e.rows.length > 0 && e.cols.length > 0 ? (T(), c("div", hp, [
|
|
9703
|
+
l("span", gp, P(j(_.value.min)), 1),
|
|
9212
9704
|
l("span", {
|
|
9213
9705
|
class: "uid-heatmap-matrix__legend-bar",
|
|
9214
9706
|
style: b({ background: W.value })
|
|
9215
9707
|
}, null, 4),
|
|
9216
|
-
l("span",
|
|
9217
|
-
C.value ? (T(), c("span",
|
|
9708
|
+
l("span", _p, P(j(_.value.max)), 1),
|
|
9709
|
+
C.value ? (T(), c("span", vp, [i[1] ||= l("span", { class: "uid-heatmap-matrix__legend-swatch" }, null, -1), u(" " + P(L(r).heatmap.noData), 1)])) : s("", !0)
|
|
9218
9710
|
])) : s("", !0)
|
|
9219
9711
|
], 6));
|
|
9220
9712
|
}
|
|
9221
|
-
}),
|
|
9713
|
+
}), Cp = ["aria-label"], wp = ["aria-current"], Tp = { class: "uid-stepper__indicator" }, Ep = {
|
|
9222
9714
|
key: 1,
|
|
9223
9715
|
"aria-hidden": "true"
|
|
9224
|
-
},
|
|
9716
|
+
}, Dp = { class: "uid-stepper__content" }, Op = { class: "uid-stepper__label" }, kp = {
|
|
9225
9717
|
key: 0,
|
|
9226
9718
|
class: "uid-stepper__description"
|
|
9227
|
-
},
|
|
9719
|
+
}, Ap = /* @__PURE__ */ f({
|
|
9228
9720
|
__name: "UidStepper",
|
|
9229
9721
|
props: {
|
|
9230
9722
|
steps: {},
|
|
@@ -9253,20 +9745,20 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9253
9745
|
class: y(["uid-stepper__target", { "uid-stepper__target--selectable": d(r) }]),
|
|
9254
9746
|
onClick: (e) => d(r) && u("select", r)
|
|
9255
9747
|
}, {
|
|
9256
|
-
default: q(() => [l("div",
|
|
9748
|
+
default: q(() => [l("div", Tp, [f(r, n.current) === "completed" ? (T(), o(e, {
|
|
9257
9749
|
key: 0,
|
|
9258
9750
|
icon: L(Q),
|
|
9259
9751
|
size: 16,
|
|
9260
9752
|
"aria-hidden": "true"
|
|
9261
|
-
}, null, 8, ["icon"])) : (T(), c("span",
|
|
9753
|
+
}, null, 8, ["icon"])) : (T(), c("span", Ep, P(r + 1), 1))]), l("div", Dp, [l("span", Op, P(t.label), 1), t.description ? (T(), c("span", kp, P(t.description), 1)) : s("", !0)])]),
|
|
9262
9754
|
_: 2
|
|
9263
9755
|
}, 1032, [
|
|
9264
9756
|
"type",
|
|
9265
9757
|
"class",
|
|
9266
9758
|
"onClick"
|
|
9267
|
-
]))], 10,
|
|
9759
|
+
]))], 10, wp))), 128))], 10, Cp));
|
|
9268
9760
|
}
|
|
9269
|
-
}),
|
|
9761
|
+
}), jp = /* @__PURE__ */ f({
|
|
9270
9762
|
__name: "UidStack",
|
|
9271
9763
|
props: {
|
|
9272
9764
|
direction: { default: "column" },
|
|
@@ -9312,7 +9804,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9312
9804
|
_: 3
|
|
9313
9805
|
}, 8, ["class", "style"]));
|
|
9314
9806
|
}
|
|
9315
|
-
}),
|
|
9807
|
+
}), Mp = /* @__PURE__ */ f({
|
|
9316
9808
|
__name: "UidGrid",
|
|
9317
9809
|
props: {
|
|
9318
9810
|
cols: { default: 12 },
|
|
@@ -9347,7 +9839,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9347
9839
|
_: 3
|
|
9348
9840
|
}, 8, ["style"]));
|
|
9349
9841
|
}
|
|
9350
|
-
}),
|
|
9842
|
+
}), Np = /* @__PURE__ */ f({
|
|
9351
9843
|
__name: "UidContainer",
|
|
9352
9844
|
props: {
|
|
9353
9845
|
size: { default: "lg" },
|
|
@@ -9363,7 +9855,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9363
9855
|
_: 3
|
|
9364
9856
|
}, 8, ["class"]));
|
|
9365
9857
|
}
|
|
9366
|
-
}),
|
|
9858
|
+
}), Pp = Symbol("uid-wizard"), Fp = { class: "uid-wizard" }, Ip = /* @__PURE__ */ f({
|
|
9367
9859
|
__name: "UidWizard",
|
|
9368
9860
|
props: /* @__PURE__ */ g({ steps: {} }, {
|
|
9369
9861
|
modelValue: { default: 0 },
|
|
@@ -9388,7 +9880,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9388
9880
|
function m(e) {
|
|
9389
9881
|
i.delete(e);
|
|
9390
9882
|
}
|
|
9391
|
-
return E(
|
|
9883
|
+
return E(Pp, {
|
|
9392
9884
|
current: r,
|
|
9393
9885
|
steps: o,
|
|
9394
9886
|
isFirst: s,
|
|
@@ -9405,9 +9897,9 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9405
9897
|
goTo: f,
|
|
9406
9898
|
isFirst: s,
|
|
9407
9899
|
isLast: l
|
|
9408
|
-
}), (e, t) => (T(), c("div",
|
|
9900
|
+
}), (e, t) => (T(), c("div", Fp, [A(e.$slots, "default")]));
|
|
9409
9901
|
}
|
|
9410
|
-
}),
|
|
9902
|
+
}), Lp = ["aria-label"], Rp = /* @__PURE__ */ f({
|
|
9411
9903
|
__name: "UidWizardStep",
|
|
9412
9904
|
props: {
|
|
9413
9905
|
index: {},
|
|
@@ -9417,7 +9909,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9417
9909
|
}
|
|
9418
9910
|
},
|
|
9419
9911
|
setup(e) {
|
|
9420
|
-
let t = e, n = $(), r = h(
|
|
9912
|
+
let t = e, n = $(), r = h(Pp);
|
|
9421
9913
|
if (!r) throw Error("UidWizardStep must be inside UidWizard");
|
|
9422
9914
|
G(() => t.validate, (e, n) => {
|
|
9423
9915
|
n !== void 0 && r.unregisterValidator(t.index), e !== void 0 && r.registerValidator(t.index, e);
|
|
@@ -9428,18 +9920,18 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9428
9920
|
class: "uid-wizard-step",
|
|
9429
9921
|
role: "tabpanel",
|
|
9430
9922
|
"aria-label": L(n).wizard.step(e.index + 1)
|
|
9431
|
-
}, [A(t.$slots, "default")], 8,
|
|
9923
|
+
}, [A(t.$slots, "default")], 8, Lp)) : s("", !0);
|
|
9432
9924
|
}
|
|
9433
|
-
}),
|
|
9925
|
+
}), zp = { class: "uid-pattern-header__inner" }, Bp = {
|
|
9434
9926
|
key: 0,
|
|
9435
9927
|
class: "uid-pattern-header__logo"
|
|
9436
|
-
},
|
|
9928
|
+
}, Vp = ["aria-label"], Hp = {
|
|
9437
9929
|
key: 2,
|
|
9438
9930
|
class: "uid-pattern-header__actions"
|
|
9439
|
-
},
|
|
9931
|
+
}, Up = {
|
|
9440
9932
|
key: 3,
|
|
9441
9933
|
class: "uid-pattern-header__mobile"
|
|
9442
|
-
},
|
|
9934
|
+
}, Wp = /* @__PURE__ */ f({
|
|
9443
9935
|
__name: "UidHeader",
|
|
9444
9936
|
props: {
|
|
9445
9937
|
sticky: {
|
|
@@ -9461,39 +9953,39 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9461
9953
|
"uid-pattern-header--sticky": e.sticky,
|
|
9462
9954
|
"uid-pattern-header--bordered": e.bordered,
|
|
9463
9955
|
"uid-pattern-header--transparent": e.transparent
|
|
9464
|
-
}]) }, [l("div",
|
|
9465
|
-
n.$slots.logo ? (T(), c("div",
|
|
9956
|
+
}]) }, [l("div", zp, [
|
|
9957
|
+
n.$slots.logo ? (T(), c("div", Bp, [A(n.$slots, "logo")])) : s("", !0),
|
|
9466
9958
|
n.$slots.nav ? (T(), c("nav", {
|
|
9467
9959
|
key: 1,
|
|
9468
9960
|
class: "uid-pattern-header__nav",
|
|
9469
9961
|
"aria-label": L(t).header.nav
|
|
9470
|
-
}, [A(n.$slots, "nav")], 8,
|
|
9471
|
-
n.$slots.actions ? (T(), c("div",
|
|
9472
|
-
n.$slots.mobile ? (T(), c("div",
|
|
9962
|
+
}, [A(n.$slots, "nav")], 8, Vp)) : s("", !0),
|
|
9963
|
+
n.$slots.actions ? (T(), c("div", Hp, [A(n.$slots, "actions")])) : s("", !0),
|
|
9964
|
+
n.$slots.mobile ? (T(), c("div", Up, [A(n.$slots, "mobile")])) : s("", !0)
|
|
9473
9965
|
])], 2));
|
|
9474
9966
|
}
|
|
9475
|
-
}),
|
|
9967
|
+
}), Gp = { class: "uid-pattern-footer__inner" }, Kp = {
|
|
9476
9968
|
key: 0,
|
|
9477
9969
|
class: "uid-pattern-footer__columns"
|
|
9478
|
-
},
|
|
9970
|
+
}, qp = {
|
|
9479
9971
|
key: 1,
|
|
9480
9972
|
class: "uid-pattern-footer__content"
|
|
9481
|
-
},
|
|
9973
|
+
}, Jp = {
|
|
9482
9974
|
key: 2,
|
|
9483
9975
|
class: "uid-pattern-footer__bottom"
|
|
9484
|
-
},
|
|
9976
|
+
}, Yp = /* @__PURE__ */ f({
|
|
9485
9977
|
__name: "UidFooter",
|
|
9486
9978
|
props: { variant: { default: "minimal" } },
|
|
9487
9979
|
setup(e) {
|
|
9488
|
-
return (t, n) => (T(), c("footer", { class: y(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div",
|
|
9980
|
+
return (t, n) => (T(), c("footer", { class: y(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div", Gp, [t.$slots.columns ? (T(), c("div", Kp, [A(t.$slots, "columns")])) : t.$slots.default ? (T(), c("div", qp, [A(t.$slots, "default")])) : s("", !0), t.$slots.bottom ? (T(), c("div", Jp, [A(t.$slots, "bottom")])) : s("", !0)])], 2));
|
|
9489
9981
|
}
|
|
9490
|
-
}),
|
|
9982
|
+
}), Xp = ["aria-label"], Zp = {
|
|
9491
9983
|
key: 0,
|
|
9492
9984
|
class: "uid-pattern-sidebar__header"
|
|
9493
|
-
},
|
|
9985
|
+
}, Qp = ["aria-label"], $p = {
|
|
9494
9986
|
key: 1,
|
|
9495
9987
|
class: "uid-pattern-sidebar__footer"
|
|
9496
|
-
},
|
|
9988
|
+
}, em = /* @__PURE__ */ f({
|
|
9497
9989
|
__name: "UidSidebar",
|
|
9498
9990
|
props: {
|
|
9499
9991
|
collapsed: {
|
|
@@ -9510,22 +10002,22 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9510
10002
|
style: b(e.width && !e.collapsed ? { "--uid-sidebar-width": e.width } : void 0),
|
|
9511
10003
|
"aria-label": L(t).sidebar.label
|
|
9512
10004
|
}, [
|
|
9513
|
-
n.$slots.header ? (T(), c("div",
|
|
10005
|
+
n.$slots.header ? (T(), c("div", Zp, [A(n.$slots, "header")])) : s("", !0),
|
|
9514
10006
|
l("nav", {
|
|
9515
10007
|
class: "uid-pattern-sidebar__nav",
|
|
9516
10008
|
"aria-label": L(t).sidebar.nav
|
|
9517
|
-
}, [A(n.$slots, "nav")], 8,
|
|
9518
|
-
n.$slots.footer ? (T(), c("div",
|
|
9519
|
-
], 14,
|
|
10009
|
+
}, [A(n.$slots, "nav")], 8, Qp),
|
|
10010
|
+
n.$slots.footer ? (T(), c("div", $p, [A(n.$slots, "footer")])) : s("", !0)
|
|
10011
|
+
], 14, Xp));
|
|
9520
10012
|
}
|
|
9521
|
-
}),
|
|
10013
|
+
}), tm = {
|
|
9522
10014
|
key: 0,
|
|
9523
10015
|
class: "uid-sidebar-item__icon",
|
|
9524
10016
|
"aria-hidden": "true"
|
|
9525
|
-
},
|
|
10017
|
+
}, nm = { class: "uid-sidebar-item__label" }, rm = {
|
|
9526
10018
|
key: 1,
|
|
9527
10019
|
class: "uid-sidebar-item__badge"
|
|
9528
|
-
},
|
|
10020
|
+
}, im = /* @__PURE__ */ f({
|
|
9529
10021
|
__name: "UidSidebarItem",
|
|
9530
10022
|
props: {
|
|
9531
10023
|
href: { default: void 0 },
|
|
@@ -9552,9 +10044,9 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9552
10044
|
tabindex: e.disabled ? -1 : void 0
|
|
9553
10045
|
}), {
|
|
9554
10046
|
default: q(() => [
|
|
9555
|
-
t.$slots.icon ? (T(), c("span",
|
|
9556
|
-
l("span",
|
|
9557
|
-
e.badge === void 0 ? s("", !0) : (T(), c("span",
|
|
10047
|
+
t.$slots.icon ? (T(), c("span", tm, [A(t.$slots, "icon")])) : s("", !0),
|
|
10048
|
+
l("span", nm, [A(t.$slots, "default")]),
|
|
10049
|
+
e.badge === void 0 ? s("", !0) : (T(), c("span", rm, P(e.badge), 1))
|
|
9558
10050
|
]),
|
|
9559
10051
|
_: 3
|
|
9560
10052
|
}, 16, [
|
|
@@ -9564,10 +10056,10 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9564
10056
|
"tabindex"
|
|
9565
10057
|
]));
|
|
9566
10058
|
}
|
|
9567
|
-
}),
|
|
10059
|
+
}), am = { class: "uid-sidebar-group" }, om = {
|
|
9568
10060
|
key: 0,
|
|
9569
10061
|
class: "uid-sidebar-group__title"
|
|
9570
|
-
},
|
|
10062
|
+
}, sm = /* @__PURE__ */ f({
|
|
9571
10063
|
__name: "UidSidebarGroup",
|
|
9572
10064
|
props: {
|
|
9573
10065
|
title: { default: void 0 },
|
|
@@ -9577,29 +10069,29 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9577
10069
|
}
|
|
9578
10070
|
},
|
|
9579
10071
|
setup(e) {
|
|
9580
|
-
return (t, n) => (T(), c("div",
|
|
10072
|
+
return (t, n) => (T(), c("div", am, [e.title ? (T(), c("p", om, P(e.title), 1)) : s("", !0), A(t.$slots, "default")]));
|
|
9581
10073
|
}
|
|
9582
|
-
}),
|
|
10074
|
+
}), cm = {}, lm = {
|
|
9583
10075
|
class: "uid-sidebar-divider",
|
|
9584
10076
|
role: "separator",
|
|
9585
10077
|
"aria-hidden": "true"
|
|
9586
10078
|
};
|
|
9587
|
-
function
|
|
9588
|
-
return T(), c("div",
|
|
10079
|
+
function um(e, t) {
|
|
10080
|
+
return T(), c("div", lm);
|
|
9589
10081
|
}
|
|
9590
|
-
var
|
|
10082
|
+
var dm = /* @__PURE__ */ yr(cm, [["render", um]]), fm = { class: "uid-pattern-page-header" }, pm = {
|
|
9591
10083
|
key: 0,
|
|
9592
10084
|
class: "uid-pattern-page-header__breadcrumb"
|
|
9593
|
-
},
|
|
10085
|
+
}, mm = { class: "uid-pattern-page-header__row" }, hm = { class: "uid-pattern-page-header__heading" }, gm = ["aria-label"], _m = { class: "uid-pattern-page-header__title" }, vm = {
|
|
9594
10086
|
key: 0,
|
|
9595
10087
|
class: "uid-pattern-page-header__description"
|
|
9596
|
-
},
|
|
10088
|
+
}, ym = {
|
|
9597
10089
|
key: 0,
|
|
9598
10090
|
class: "uid-pattern-page-header__actions"
|
|
9599
|
-
},
|
|
10091
|
+
}, bm = {
|
|
9600
10092
|
key: 1,
|
|
9601
10093
|
class: "uid-pattern-page-header__tabs"
|
|
9602
|
-
},
|
|
10094
|
+
}, xm = /* @__PURE__ */ f({
|
|
9603
10095
|
__name: "UidPageHeader",
|
|
9604
10096
|
props: {
|
|
9605
10097
|
title: { default: void 0 },
|
|
@@ -9612,9 +10104,9 @@ var jp = /* @__PURE__ */ yr(Op, [["render", Ap]]), Mp = { class: "uid-pattern-pa
|
|
|
9612
10104
|
emits: ["back"],
|
|
9613
10105
|
setup(t, { emit: n }) {
|
|
9614
10106
|
let r = $(), i = n;
|
|
9615
|
-
return (n, a) => (T(), c("div",
|
|
9616
|
-
n.$slots.breadcrumb ? (T(), c("div",
|
|
9617
|
-
l("div",
|
|
10107
|
+
return (n, a) => (T(), c("div", fm, [
|
|
10108
|
+
n.$slots.breadcrumb ? (T(), c("div", pm, [A(n.$slots, "breadcrumb")])) : s("", !0),
|
|
10109
|
+
l("div", mm, [l("div", hm, [t.back ? (T(), c("button", {
|
|
9618
10110
|
key: 0,
|
|
9619
10111
|
type: "button",
|
|
9620
10112
|
class: "uid-pattern-page-header__back",
|
|
@@ -9623,17 +10115,17 @@ var jp = /* @__PURE__ */ yr(Op, [["render", Ap]]), Mp = { class: "uid-pattern-pa
|
|
|
9623
10115
|
}, [d(e, {
|
|
9624
10116
|
icon: L(ne),
|
|
9625
10117
|
size: 20
|
|
9626
|
-
}, null, 8, ["icon"])], 8,
|
|
9627
|
-
n.$slots.tabs ? (T(), c("div",
|
|
10118
|
+
}, null, 8, ["icon"])], 8, gm)) : s("", !0), l("div", null, [l("h1", _m, [A(n.$slots, "title", {}, () => [u(P(t.title), 1)])]), t.description || n.$slots.description ? (T(), c("p", vm, [A(n.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0)])]), n.$slots.actions ? (T(), c("div", ym, [A(n.$slots, "actions")])) : s("", !0)]),
|
|
10119
|
+
n.$slots.tabs ? (T(), c("div", bm, [A(n.$slots, "tabs")])) : s("", !0)
|
|
9628
10120
|
]));
|
|
9629
10121
|
}
|
|
9630
|
-
}),
|
|
10122
|
+
}), Sm = { class: "uid-pattern-empty-state" }, Cm = { class: "uid-pattern-empty-state__illustration" }, wm = { class: "uid-pattern-empty-state__content" }, Tm = { class: "uid-pattern-empty-state__title" }, Em = {
|
|
9631
10123
|
key: 0,
|
|
9632
10124
|
class: "uid-pattern-empty-state__description"
|
|
9633
|
-
},
|
|
10125
|
+
}, Dm = {
|
|
9634
10126
|
key: 0,
|
|
9635
10127
|
class: "uid-pattern-empty-state__actions"
|
|
9636
|
-
},
|
|
10128
|
+
}, Om = /* @__PURE__ */ f({
|
|
9637
10129
|
__name: "UidEmptyState",
|
|
9638
10130
|
props: {
|
|
9639
10131
|
title: { default: void 0 },
|
|
@@ -9641,25 +10133,25 @@ var jp = /* @__PURE__ */ yr(Op, [["render", Ap]]), Mp = { class: "uid-pattern-pa
|
|
|
9641
10133
|
},
|
|
9642
10134
|
setup(t) {
|
|
9643
10135
|
let n = $();
|
|
9644
|
-
return (r, i) => (T(), c("div",
|
|
9645
|
-
l("div",
|
|
10136
|
+
return (r, i) => (T(), c("div", Sm, [
|
|
10137
|
+
l("div", Cm, [A(r.$slots, "illustration", {}, () => [d(e, {
|
|
9646
10138
|
icon: L(ge),
|
|
9647
10139
|
size: 48
|
|
9648
10140
|
}, null, 8, ["icon"])])]),
|
|
9649
|
-
l("div",
|
|
9650
|
-
r.$slots.actions ? (T(), c("div",
|
|
10141
|
+
l("div", wm, [l("h2", Tm, [A(r.$slots, "title", {}, () => [u(P(t.title ?? L(n).emptyState.title), 1)])]), t.description || r.$slots.description ? (T(), c("p", Em, [A(r.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0)]),
|
|
10142
|
+
r.$slots.actions ? (T(), c("div", Dm, [A(r.$slots, "actions")])) : s("", !0)
|
|
9651
10143
|
]));
|
|
9652
10144
|
}
|
|
9653
|
-
}),
|
|
10145
|
+
}), km = { class: "uid-pattern-error-state" }, Am = { class: "uid-pattern-error-state__illustration" }, jm = {
|
|
9654
10146
|
key: 0,
|
|
9655
10147
|
class: "uid-pattern-error-state__code"
|
|
9656
|
-
},
|
|
10148
|
+
}, Mm = { class: "uid-pattern-error-state__content" }, Nm = { class: "uid-pattern-error-state__title" }, Pm = {
|
|
9657
10149
|
key: 0,
|
|
9658
10150
|
class: "uid-pattern-error-state__description"
|
|
9659
|
-
},
|
|
10151
|
+
}, Fm = {
|
|
9660
10152
|
key: 1,
|
|
9661
10153
|
class: "uid-pattern-error-state__actions"
|
|
9662
|
-
},
|
|
10154
|
+
}, Im = /* @__PURE__ */ f({
|
|
9663
10155
|
__name: "UidErrorState",
|
|
9664
10156
|
props: {
|
|
9665
10157
|
code: { default: void 0 },
|
|
@@ -9684,23 +10176,23 @@ var jp = /* @__PURE__ */ yr(Op, [["render", Ap]]), Mp = { class: "uid-pattern-pa
|
|
|
9684
10176
|
description: r.value.errorState.offlineDescription
|
|
9685
10177
|
}
|
|
9686
10178
|
})), o = a(() => n.code ? i.value[n.code] ?? null : null), f = a(() => o.value?.icon ?? Z), p = a(() => n.title ?? o.value?.title ?? r.value.errorState.title), m = a(() => n.description ?? o.value?.description);
|
|
9687
|
-
return (n, r) => (T(), c("div",
|
|
9688
|
-
l("div",
|
|
10179
|
+
return (n, r) => (T(), c("div", km, [
|
|
10180
|
+
l("div", Am, [A(n.$slots, "illustration", {}, () => [d(e, {
|
|
9689
10181
|
icon: f.value,
|
|
9690
10182
|
size: 48
|
|
9691
10183
|
}, null, 8, ["icon"])])]),
|
|
9692
|
-
t.code ? (T(), c("div",
|
|
9693
|
-
l("div",
|
|
9694
|
-
n.$slots.actions ? (T(), c("div",
|
|
10184
|
+
t.code ? (T(), c("div", jm, P(t.code), 1)) : s("", !0),
|
|
10185
|
+
l("div", Mm, [l("h2", Nm, [A(n.$slots, "title", {}, () => [u(P(p.value), 1)])]), m.value || n.$slots.description ? (T(), c("p", Pm, [A(n.$slots, "description", {}, () => [u(P(m.value), 1)])])) : s("", !0)]),
|
|
10186
|
+
n.$slots.actions ? (T(), c("div", Fm, [A(n.$slots, "actions")])) : s("", !0)
|
|
9695
10187
|
]));
|
|
9696
10188
|
}
|
|
9697
|
-
}),
|
|
10189
|
+
}), Lm = {
|
|
9698
10190
|
key: 0,
|
|
9699
10191
|
class: "uid-layout-simple__header"
|
|
9700
|
-
},
|
|
10192
|
+
}, Rm = { class: "uid-layout-simple__content" }, zm = {
|
|
9701
10193
|
key: 1,
|
|
9702
10194
|
class: "uid-layout-simple__footer"
|
|
9703
|
-
},
|
|
10195
|
+
}, Bm = /* @__PURE__ */ f({
|
|
9704
10196
|
__name: "UidSimpleLayout",
|
|
9705
10197
|
props: { full: {
|
|
9706
10198
|
type: Boolean,
|
|
@@ -9708,26 +10200,26 @@ var jp = /* @__PURE__ */ yr(Op, [["render", Ap]]), Mp = { class: "uid-pattern-pa
|
|
|
9708
10200
|
} },
|
|
9709
10201
|
setup(e) {
|
|
9710
10202
|
return (t, n) => (T(), c("div", { class: y(["uid-layout-simple", { "uid-layout-simple--full": e.full }]) }, [
|
|
9711
|
-
t.$slots.header ? (T(), c("div",
|
|
9712
|
-
l("main",
|
|
9713
|
-
t.$slots.footer ? (T(), c("div",
|
|
10203
|
+
t.$slots.header ? (T(), c("div", Lm, [A(t.$slots, "header")])) : s("", !0),
|
|
10204
|
+
l("main", Rm, [A(t.$slots, "default")]),
|
|
10205
|
+
t.$slots.footer ? (T(), c("div", zm, [A(t.$slots, "footer")])) : s("", !0)
|
|
9714
10206
|
], 2));
|
|
9715
10207
|
}
|
|
9716
|
-
}),
|
|
9717
|
-
function
|
|
9718
|
-
let e = h(
|
|
10208
|
+
}), Vm = Symbol("uid-sidebar-layout");
|
|
10209
|
+
function Hm() {
|
|
10210
|
+
let e = h(Vm);
|
|
9719
10211
|
if (!e) throw Error("useSidebar() must be used inside UidSidebarLayout");
|
|
9720
10212
|
return e;
|
|
9721
10213
|
}
|
|
9722
10214
|
//#endregion
|
|
9723
10215
|
//#region src/layouts/Sidebar/UidSidebarLayout.vue?vue&type=script&setup=true&lang.ts
|
|
9724
|
-
var
|
|
10216
|
+
var Um = { class: "uid-layout-sidebar__sidebar" }, Wm = { class: "uid-layout-sidebar__main" }, Gm = {
|
|
9725
10217
|
key: 0,
|
|
9726
10218
|
class: "uid-layout-sidebar__main-header"
|
|
9727
|
-
},
|
|
10219
|
+
}, Km = { class: "uid-layout-sidebar__main-content" }, qm = {
|
|
9728
10220
|
key: 1,
|
|
9729
10221
|
class: "uid-layout-sidebar__main-footer"
|
|
9730
|
-
},
|
|
10222
|
+
}, Jm = /* @__PURE__ */ f({
|
|
9731
10223
|
__name: "UidSidebarLayout",
|
|
9732
10224
|
props: /* @__PURE__ */ g({ sidebarWidth: { default: void 0 } }, {
|
|
9733
10225
|
modelValue: {
|
|
@@ -9745,7 +10237,7 @@ var lm = { class: "uid-layout-sidebar__sidebar" }, um = { class: "uid-layout-sid
|
|
|
9745
10237
|
}, o = () => {
|
|
9746
10238
|
n.value = !0;
|
|
9747
10239
|
};
|
|
9748
|
-
E(
|
|
10240
|
+
E(Vm, {
|
|
9749
10241
|
collapsed: n,
|
|
9750
10242
|
toggle: r,
|
|
9751
10243
|
open: i,
|
|
@@ -9756,58 +10248,58 @@ var lm = { class: "uid-layout-sidebar__sidebar" }, um = { class: "uid-layout-sid
|
|
|
9756
10248
|
class: y(["uid-layout-sidebar", { "uid-layout-sidebar--collapsed": n.value }]),
|
|
9757
10249
|
style: b(u.value)
|
|
9758
10250
|
}, [
|
|
9759
|
-
l("aside",
|
|
10251
|
+
l("aside", Um, [A(e.$slots, "sidebar")]),
|
|
9760
10252
|
l("div", {
|
|
9761
10253
|
class: "uid-layout-sidebar__backdrop",
|
|
9762
10254
|
"aria-hidden": "true",
|
|
9763
10255
|
onClick: o
|
|
9764
10256
|
}),
|
|
9765
|
-
l("div",
|
|
9766
|
-
e.$slots.header ? (T(), c("div",
|
|
9767
|
-
l("main",
|
|
9768
|
-
e.$slots.footer ? (T(), c("div",
|
|
10257
|
+
l("div", Wm, [
|
|
10258
|
+
e.$slots.header ? (T(), c("div", Gm, [A(e.$slots, "header")])) : s("", !0),
|
|
10259
|
+
l("main", Km, [A(e.$slots, "default")]),
|
|
10260
|
+
e.$slots.footer ? (T(), c("div", qm, [A(e.$slots, "footer")])) : s("", !0)
|
|
9769
10261
|
])
|
|
9770
10262
|
], 6));
|
|
9771
10263
|
}
|
|
9772
|
-
}),
|
|
10264
|
+
}), Ym = {
|
|
9773
10265
|
key: 0,
|
|
9774
10266
|
class: "uid-layout-auth__brand"
|
|
9775
|
-
},
|
|
10267
|
+
}, Xm = { class: "uid-layout-auth__main" }, Zm = { class: "uid-layout-auth__card" }, Qm = {
|
|
9776
10268
|
key: 0,
|
|
9777
10269
|
class: "uid-layout-auth__footer"
|
|
9778
|
-
},
|
|
10270
|
+
}, $m = /* @__PURE__ */ f({
|
|
9779
10271
|
__name: "UidAuthLayout",
|
|
9780
10272
|
props: { variant: { default: "centered" } },
|
|
9781
10273
|
setup(e) {
|
|
9782
|
-
return (t, n) => (T(), c("div", { class: y(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (T(), c("div",
|
|
10274
|
+
return (t, n) => (T(), c("div", { class: y(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (T(), c("div", Ym, [A(t.$slots, "brand")])) : s("", !0), l("div", Xm, [l("div", Zm, [A(t.$slots, "default")]), t.$slots.footer ? (T(), c("div", Qm, [A(t.$slots, "footer")])) : s("", !0)])], 2));
|
|
9783
10275
|
}
|
|
9784
|
-
}),
|
|
10276
|
+
}), eh = { class: "uid-layout-wizard" }, th = {
|
|
9785
10277
|
key: 0,
|
|
9786
10278
|
class: "uid-layout-wizard__header"
|
|
9787
|
-
},
|
|
10279
|
+
}, nh = {
|
|
9788
10280
|
key: 1,
|
|
9789
10281
|
class: "uid-layout-wizard__stepper"
|
|
9790
|
-
},
|
|
10282
|
+
}, rh = { class: "uid-layout-wizard__content" }, ih = {
|
|
9791
10283
|
key: 2,
|
|
9792
10284
|
class: "uid-layout-wizard__nav"
|
|
9793
|
-
},
|
|
10285
|
+
}, ah = /* @__PURE__ */ f({
|
|
9794
10286
|
__name: "UidWizardLayout",
|
|
9795
10287
|
setup(e) {
|
|
9796
|
-
return (e, t) => (T(), c("div",
|
|
9797
|
-
e.$slots.header ? (T(), c("div",
|
|
9798
|
-
e.$slots.stepper ? (T(), c("div",
|
|
9799
|
-
l("main",
|
|
9800
|
-
e.$slots.nav ? (T(), c("div",
|
|
10288
|
+
return (e, t) => (T(), c("div", eh, [
|
|
10289
|
+
e.$slots.header ? (T(), c("div", th, [A(e.$slots, "header")])) : s("", !0),
|
|
10290
|
+
e.$slots.stepper ? (T(), c("div", nh, [A(e.$slots, "stepper")])) : s("", !0),
|
|
10291
|
+
l("main", rh, [A(e.$slots, "default")]),
|
|
10292
|
+
e.$slots.nav ? (T(), c("div", ih, [A(e.$slots, "nav")])) : s("", !0)
|
|
9801
10293
|
]));
|
|
9802
10294
|
}
|
|
9803
|
-
}),
|
|
10295
|
+
}), oh = /* @__PURE__ */ f({
|
|
9804
10296
|
__name: "UidLocaleProvider",
|
|
9805
10297
|
props: { locale: {} },
|
|
9806
10298
|
setup(e) {
|
|
9807
10299
|
let t = e;
|
|
9808
10300
|
return an(a(() => t.locale)), (e, t) => A(e.$slots, "default");
|
|
9809
10301
|
}
|
|
9810
|
-
}),
|
|
10302
|
+
}), sh = {
|
|
9811
10303
|
code: "en-US",
|
|
9812
10304
|
common: {
|
|
9813
10305
|
clear: "Clear",
|
|
@@ -9983,6 +10475,16 @@ var lm = { class: "uid-layout-sidebar__sidebar" }, um = { class: "uid-layout-sid
|
|
|
9983
10475
|
label: "Command palette"
|
|
9984
10476
|
},
|
|
9985
10477
|
anchor: { label: "Contents" },
|
|
10478
|
+
markdown: {
|
|
10479
|
+
toc: "On this page",
|
|
10480
|
+
note: "Note",
|
|
10481
|
+
tip: "Tip",
|
|
10482
|
+
important: "Important",
|
|
10483
|
+
warning: "Warning",
|
|
10484
|
+
caution: "Caution",
|
|
10485
|
+
blockPending: "Rendering…",
|
|
10486
|
+
blockError: "Could not render this block"
|
|
10487
|
+
},
|
|
9986
10488
|
heatmap: {
|
|
9987
10489
|
summary: (e) => `Activity heatmap: ${e} events`,
|
|
9988
10490
|
less: "Less",
|
|
@@ -10006,19 +10508,19 @@ var lm = { class: "uid-layout-sidebar__sidebar" }, um = { class: "uid-layout-sid
|
|
|
10006
10508
|
sameAs: "The values do not match",
|
|
10007
10509
|
unknown: (e) => `Validation failed: ${e}`
|
|
10008
10510
|
}
|
|
10009
|
-
},
|
|
10010
|
-
function
|
|
10511
|
+
}, ch = O("light");
|
|
10512
|
+
function lh() {
|
|
10011
10513
|
let e = null;
|
|
10012
10514
|
function t(e) {
|
|
10013
|
-
|
|
10515
|
+
ch.value = e, document.documentElement.dataset.theme = e;
|
|
10014
10516
|
}
|
|
10015
10517
|
function n() {
|
|
10016
|
-
t(
|
|
10518
|
+
t(ch.value === "light" ? "dark" : "light");
|
|
10017
10519
|
}
|
|
10018
10520
|
function r() {
|
|
10019
10521
|
let e = document.documentElement.dataset.theme;
|
|
10020
10522
|
if (e === "light" || e === "dark") {
|
|
10021
|
-
|
|
10523
|
+
ch.value = e;
|
|
10022
10524
|
return;
|
|
10023
10525
|
}
|
|
10024
10526
|
let n = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
@@ -10030,7 +10532,7 @@ function km() {
|
|
|
10030
10532
|
e.addEventListener("change", n), C(() => e?.removeEventListener("change", n));
|
|
10031
10533
|
}
|
|
10032
10534
|
return {
|
|
10033
|
-
theme:
|
|
10535
|
+
theme: ch,
|
|
10034
10536
|
setTheme: t,
|
|
10035
10537
|
toggle: n,
|
|
10036
10538
|
initFromSystem: r,
|
|
@@ -10039,27 +10541,27 @@ function km() {
|
|
|
10039
10541
|
}
|
|
10040
10542
|
//#endregion
|
|
10041
10543
|
//#region src/composables/useWizard.ts
|
|
10042
|
-
function
|
|
10043
|
-
let e = h(
|
|
10544
|
+
function uh() {
|
|
10545
|
+
let e = h(Pp);
|
|
10044
10546
|
if (!e) throw Error("useWizard() must be used inside UidWizard");
|
|
10045
10547
|
return e;
|
|
10046
10548
|
}
|
|
10047
10549
|
//#endregion
|
|
10048
10550
|
//#region src/composables/useCommandPalette.ts
|
|
10049
|
-
var
|
|
10050
|
-
function
|
|
10551
|
+
var dh = O(!1);
|
|
10552
|
+
function fh() {
|
|
10051
10553
|
return {
|
|
10052
|
-
open:
|
|
10554
|
+
open: dh,
|
|
10053
10555
|
show: () => {
|
|
10054
|
-
|
|
10556
|
+
dh.value = !0;
|
|
10055
10557
|
},
|
|
10056
10558
|
hide: () => {
|
|
10057
|
-
|
|
10559
|
+
dh.value = !1;
|
|
10058
10560
|
},
|
|
10059
10561
|
toggle: () => {
|
|
10060
|
-
|
|
10562
|
+
dh.value = !dh.value;
|
|
10061
10563
|
}
|
|
10062
10564
|
};
|
|
10063
10565
|
}
|
|
10064
10566
|
//#endregion
|
|
10065
|
-
export { Li as UidAccordion, Ui as UidAccordionItem,
|
|
10567
|
+
export { Li as UidAccordion, Ui as UidAccordionItem, hu as UidAffix, gn as UidAlert, wu as UidAnchor, $m as UidAuthLayout, Di as UidAvatar, Ai as UidAvatarGroup, pu as UidBackTop, un as UidBadge, Wr as UidBreadcrumb, Zr as UidBreadcrumbItem, je as UidButton, pf as UidCalendar, wi as UidCard, sd as UidCarousel, Qd as UidCascader, Et as UidCheckbox, Mt as UidCheckboxGroup, Gc as UidCode, io as UidColorPicker, js as UidCombobox, go as UidCommand, Np as UidContainer, Ta as UidDatePicker, fs as UidDateRangePicker, au as UidDescriptionItem, tu as UidDescriptionList, Pi as UidDivider, Qn as UidDrawer, Om as UidEmptyState, Im as UidErrorState, gc as UidFileUpload, Yp as UidFooter, tn as UidFormField, Wf as UidGauge, Mp as UidGrid, Wp as UidHeader, Qf as UidHeatmap, Sp as UidHeatmapMatrix, e as UidIcon, Pl as UidImage, mi as UidInfiniteScroll, gt as UidInput, Xt as UidLabel, Qr as UidLink, di as UidLoadMore, oh as UidLocaleProvider, Tl as UidMarkdown, zu as UidMention, gr as UidMenu, vr as UidMenuItem, Cr as UidMenuSeparator, Gn as UidModal, td as UidNotificationBadge, wo as UidNumberInput, xm as UidPageHeader, vi as UidPageSize, ii as UidPagination, ci as UidPaginationCursor, sr as UidPopover, Mn as UidProgress, kf as UidProgressRing, It as UidRadio, Ht as UidRadioGroup, Bl as UidRating, du as UidResult, pa as UidSelect, em as UidSidebar, dm as UidSidebarDivider, sm as UidSidebarGroup, im as UidSidebarItem, Jm as UidSidebarLayout, Bm as UidSimpleLayout, ln as UidSkeleton, Pa as UidSlider, Cf as UidSparkline, sn as UidSpinner, Ul as UidSplitter, jp as UidStack, Ql as UidStat, Ap as UidStepper, jr as UidSubMenu, qt as UidSwitch, Lr as UidTab, zr as UidTabPanel, $i as UidTable, Fr as UidTabs, Mi as UidTag, vs as UidTagsInput, xt as UidTextarea, Io as UidTimePicker, Us as UidTimeline, Zs as UidTimelineItem, Sn as UidToast, En as UidToastProvider, ir as UidTooltip, Mu as UidTour, Nd as UidTransfer, Bs as UidTreeItem, Qu as UidTreeSelect, Hs as UidTreeView, Ea as UidVirtualList, vu as UidWatermark, Ip as UidWizard, ah as UidWizardLayout, Rp as UidWizardStep, Yc as createSlugger, Ge as email, sh as en, qc as escapeHtml, ze as getMessage, rp as heatmapColorAt, $f as heatmapColorScales, et as inList, Je as integer, Fc as isHighlightable, ml as markdownBlockRenderersKey, Xe as max, Qe as maxValue, Ye as min, Ze as minValue, Ka as normalizeColor, We as nullable, qe as numeric, Ua as parseColor, at as parseRules, an as provideLocale, hl as provideMarkdownBlockRenderers, $e as regex, sl as renderMarkdown, Ue as required, nt as requiredIf, rt as requiredUnless, $c as resolveAgainst, tp as resolveHeatmapStops, Me as ru, ot as runRules, tt as sameAs, Re as setMessages, Ie as setValidationLocale, pl as splitMarkdown, Ic as tokenize, Ke as url, fh as useCommandPalette, st as useField, Pn as useFocusTrap, $ as useLocale, gl as useMarkdownBlockRenderers, tr as usePopover, In as useScrollLock, Hm as useSidebar, lh as useTheme, Tn as useToast, uh as useWizard };
|