@dskripchenko/ui 1.11.0 → 1.13.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/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 +946 -396
- 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: "Меньше",
|
|
@@ -6097,7 +6107,77 @@ var tc = ["for"], nc = {
|
|
|
6097
6107
|
["function", /[A-Za-z_][\w-]*(?=\s*\(\s*\))/],
|
|
6098
6108
|
["plain", /[\w./-]+/],
|
|
6099
6109
|
["punctuation", /[|&;<>(){}[\]=!]+/]
|
|
6100
|
-
] }, Mc = {
|
|
6110
|
+
] }, Mc = { main: [
|
|
6111
|
+
["comment", /#.*/],
|
|
6112
|
+
["string", /[rbfu]{0,2}(?:"""[\s\S]*?(?:"""|$)|'''[\s\S]*?(?:'''|$))/i],
|
|
6113
|
+
["string", /[rbfu]{0,2}(?:"(?:\\[\s\S]|[^"\\\n])*"?|'(?:\\[\s\S]|[^'\\\n])*'?)/i],
|
|
6114
|
+
["attr", /@[\w.]+/],
|
|
6115
|
+
["number", xc],
|
|
6116
|
+
["keyword", _c("and as assert async await break class continue def del elif else except finally for from global if import in is lambda nonlocal not or pass raise return try while with yield match case")],
|
|
6117
|
+
["literal", _c("True False None")],
|
|
6118
|
+
["function", Sc],
|
|
6119
|
+
["plain", Cc],
|
|
6120
|
+
["punctuation", wc]
|
|
6121
|
+
] }, Nc = { main: [
|
|
6122
|
+
["comment", /\/\/.*/],
|
|
6123
|
+
["comment", vc],
|
|
6124
|
+
["string", yc],
|
|
6125
|
+
["string", /`[^`]*`?/],
|
|
6126
|
+
["string", /'(?:\\[\s\S]|[^'\\\n])*'?/],
|
|
6127
|
+
["number", xc],
|
|
6128
|
+
["keyword", _c("break case chan const continue default defer else fallthrough for func go goto if import interface map package range return select struct switch type var")],
|
|
6129
|
+
["literal", _c("true false nil iota")],
|
|
6130
|
+
["function", Sc],
|
|
6131
|
+
["plain", Cc],
|
|
6132
|
+
["punctuation", wc]
|
|
6133
|
+
] }, Pc = (e, t, n = []) => ({ main: [
|
|
6134
|
+
["comment", /\/\/.*/],
|
|
6135
|
+
["comment", vc],
|
|
6136
|
+
...n,
|
|
6137
|
+
["string", /"""[\s\S]*?(?:"""|$)/],
|
|
6138
|
+
["string", yc],
|
|
6139
|
+
["string", bc],
|
|
6140
|
+
["attr", /@\w+/],
|
|
6141
|
+
["number", xc],
|
|
6142
|
+
["keyword", _c(e)],
|
|
6143
|
+
["literal", _c(t)],
|
|
6144
|
+
["function", Sc],
|
|
6145
|
+
["plain", Cc],
|
|
6146
|
+
["punctuation", wc]
|
|
6147
|
+
] }), Fc = Pc("abstract assert break case catch class const continue default do else enum extends final finally for goto if implements import instanceof interface native new package private protected public record return static strictfp super switch synchronized this throw throws transient try var void volatile while yield", "true false null"), Ic = Pc("abstract as async await base break case catch checked class const continue default delegate do else enum event explicit extern finally fixed for foreach goto if implicit in interface internal is lock namespace new operator out override params private protected public readonly record ref return sealed sizeof stackalloc static struct switch this throw try typeof unchecked unsafe using var virtual void volatile while", "true false null", [["string", /[$@]+"(?:""|\\[\s\S]|[^"\\])*"?/]]), Lc = Pc("as break by catch class companion constructor continue data do else enum finally for fun get if import in init interface internal is lateinit object open override package private protected public return sealed set super suspend this throw try typealias typeof val var when while", "true false null"), Rc = Pc("as associatedtype async await break case catch class continue default defer deinit do else enum extension fallthrough fileprivate for func guard if import in init inout internal is let open operator private protocol public repeat rethrows return self Self static struct subscript super switch throw throws try typealias var where while", "true false nil"), zc = { main: [
|
|
6148
|
+
["comment", /<#[\s\S]*?(?:#>|$)/],
|
|
6149
|
+
["comment", /#.*/],
|
|
6150
|
+
["string", /@"[\s\S]*?(?:"@|$)|@'[\s\S]*?(?:'@|$)/],
|
|
6151
|
+
["string", /"(?:`[\s\S]|[^"`])*"?/],
|
|
6152
|
+
["string", /'(?:''|[^'])*'?/],
|
|
6153
|
+
["variable", /\$(?:\{[^}]*\}?|[\w:]+)/],
|
|
6154
|
+
["attr", /-[A-Za-z]\w*/],
|
|
6155
|
+
["number", xc],
|
|
6156
|
+
["keyword", _c("begin break catch class continue data do dynamicparam else elseif end exit filter finally for foreach from function if in param process return switch throw trap try until using while", "i")],
|
|
6157
|
+
["function", /\b[A-Z][a-z]+-[A-Za-z]+\b/],
|
|
6158
|
+
["plain", Cc],
|
|
6159
|
+
["punctuation", /[{}()[\];,.<>=+*/%!&|@]+/]
|
|
6160
|
+
] }, Bc = { main: [
|
|
6161
|
+
["keyword", /^(?:GET|POST|PUT|PATCH|DELETE|HEAD|OPTIONS|TRACE|CONNECT)\b/m],
|
|
6162
|
+
["literal", /\bHTTP\/[\d.]+\b/],
|
|
6163
|
+
["property", /^[\w-]+(?=:)/m],
|
|
6164
|
+
["number", /\b[1-5]\d\d\b/],
|
|
6165
|
+
["string", yc],
|
|
6166
|
+
["plain", /[^\s"]+/]
|
|
6167
|
+
] }, Vc = { main: [
|
|
6168
|
+
["comment", /(?:^|[ \t])#.*/m],
|
|
6169
|
+
["keyword", /^(?:---|\.\.\.)(?=\s|$)/m],
|
|
6170
|
+
["property", /"(?:\\.|[^"\\\n])*"(?=[ \t]*:(?:\s|$))|'(?:''|[^'\n])*'(?=[ \t]*:(?:\s|$))/],
|
|
6171
|
+
["property", /[^\s:#'"[\]{},&*!|>-][^\n:#]*?(?=[ \t]*:(?:\s|$))/],
|
|
6172
|
+
["string", yc],
|
|
6173
|
+
["string", /'(?:''|[^'])*'?/],
|
|
6174
|
+
["variable", /[&*][^\s,[\]{}]+/],
|
|
6175
|
+
["attr", /!{1,2}[\w./-]*/],
|
|
6176
|
+
["literal", /\b(?:true|false|null|True|False|Null|NULL)\b|~/],
|
|
6177
|
+
["number", /[-+]?(?:\.inf|\.nan|0x[\da-f]+|0o[0-7]+|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i],
|
|
6178
|
+
["punctuation", /[-:,[\]{}|>?]+/],
|
|
6179
|
+
["plain", /[^\s:#,[\]{}]+/]
|
|
6180
|
+
] }, Hc = {
|
|
6101
6181
|
js: Tc,
|
|
6102
6182
|
javascript: Tc,
|
|
6103
6183
|
jsx: Tc,
|
|
@@ -6120,17 +6200,35 @@ var tc = ["for"], nc = {
|
|
|
6120
6200
|
bash: jc,
|
|
6121
6201
|
sh: jc,
|
|
6122
6202
|
shell: jc,
|
|
6123
|
-
zsh: jc
|
|
6124
|
-
|
|
6125
|
-
|
|
6126
|
-
|
|
6127
|
-
|
|
6203
|
+
zsh: jc,
|
|
6204
|
+
curl: jc,
|
|
6205
|
+
python: Mc,
|
|
6206
|
+
py: Mc,
|
|
6207
|
+
go: Nc,
|
|
6208
|
+
golang: Nc,
|
|
6209
|
+
java: Fc,
|
|
6210
|
+
csharp: Ic,
|
|
6211
|
+
cs: Ic,
|
|
6212
|
+
"c#": Ic,
|
|
6213
|
+
kotlin: Lc,
|
|
6214
|
+
kt: Lc,
|
|
6215
|
+
swift: Rc,
|
|
6216
|
+
powershell: zc,
|
|
6217
|
+
ps1: zc,
|
|
6218
|
+
pwsh: zc,
|
|
6219
|
+
http: Bc,
|
|
6220
|
+
yaml: Vc,
|
|
6221
|
+
yml: Vc
|
|
6222
|
+
}, Uc = /* @__PURE__ */ new WeakMap();
|
|
6223
|
+
function Wc(e) {
|
|
6224
|
+
let t = Uc.get(e);
|
|
6225
|
+
return t || (t = new RegExp(e.source, e.flags.replace(/[gy]/g, "") + "y"), Uc.set(e, t)), t;
|
|
6128
6226
|
}
|
|
6129
|
-
function
|
|
6130
|
-
return !!e && e.toLowerCase() in
|
|
6227
|
+
function Gc(e) {
|
|
6228
|
+
return !!e && e.toLowerCase() in Hc;
|
|
6131
6229
|
}
|
|
6132
|
-
function
|
|
6133
|
-
let n = t ?
|
|
6230
|
+
function Kc(e, t) {
|
|
6231
|
+
let n = t ? Hc[t.toLowerCase()] : void 0;
|
|
6134
6232
|
if (!n) return e ? [{
|
|
6135
6233
|
type: "plain",
|
|
6136
6234
|
text: e
|
|
@@ -6145,7 +6243,7 @@ function Ic(e, t) {
|
|
|
6145
6243
|
for (; o < e.length;) {
|
|
6146
6244
|
let t = !1;
|
|
6147
6245
|
for (let [r, s, c] of n[a]) {
|
|
6148
|
-
let n =
|
|
6246
|
+
let n = Wc(s);
|
|
6149
6247
|
n.lastIndex = o;
|
|
6150
6248
|
let l = n.exec(e);
|
|
6151
6249
|
if (l && l[0]) {
|
|
@@ -6160,17 +6258,17 @@ function Ic(e, t) {
|
|
|
6160
6258
|
}
|
|
6161
6259
|
//#endregion
|
|
6162
6260
|
//#region src/components/Code/UidCode.vue?vue&type=script&setup=true&lang.ts
|
|
6163
|
-
var
|
|
6261
|
+
var qc = {
|
|
6164
6262
|
key: 0,
|
|
6165
6263
|
class: "uid-code uid-code--inline"
|
|
6166
|
-
},
|
|
6264
|
+
}, Jc = {
|
|
6167
6265
|
key: 0,
|
|
6168
6266
|
class: "uid-code__header"
|
|
6169
|
-
},
|
|
6267
|
+
}, Yc = { class: "uid-code__lang" }, Xc = ["aria-label"], Zc = { class: "uid-code__body" }, Qc = {
|
|
6170
6268
|
key: 0,
|
|
6171
6269
|
class: "uid-code__line-numbers",
|
|
6172
6270
|
"aria-hidden": "true"
|
|
6173
|
-
},
|
|
6271
|
+
}, $c = { class: "uid-code__pre" }, el = ["data-language"], tl = /* @__PURE__ */ f({
|
|
6174
6272
|
__name: "UidCode",
|
|
6175
6273
|
props: {
|
|
6176
6274
|
code: { default: "" },
|
|
@@ -6198,7 +6296,7 @@ var Lc = {
|
|
|
6198
6296
|
}
|
|
6199
6297
|
},
|
|
6200
6298
|
setup(n) {
|
|
6201
|
-
let r = $(), i = n, f = O(!1), p = a(() => i.code.split("\n")), h = a(() => i.highlight &&
|
|
6299
|
+
let r = $(), i = n, f = O(!1), p = a(() => i.code.split("\n")), h = a(() => i.highlight && Gc(i.language) ? Kc(i.code, i.language) : null), g = () => h.value?.map((e) => e.type === "plain" ? e.text : m("span", { class: `uid-code__tok uid-code__tok--${e.type}` }, e.text)), _ = a(() => !i.inline && (i.language !== void 0 || i.copy));
|
|
6202
6300
|
async function v() {
|
|
6203
6301
|
if (navigator?.clipboard) try {
|
|
6204
6302
|
await navigator.clipboard.writeText(i.code), f.value = !0, setTimeout(() => {
|
|
@@ -6206,14 +6304,14 @@ var Lc = {
|
|
|
6206
6304
|
}, 1500);
|
|
6207
6305
|
} catch {}
|
|
6208
6306
|
}
|
|
6209
|
-
return (i, a) => n.inline ? (T(), c("code",
|
|
6307
|
+
return (i, a) => n.inline ? (T(), c("code", qc, [A(i.$slots, "default", {}, () => [u(P(n.code), 1)])])) : (T(), c("div", {
|
|
6210
6308
|
key: 1,
|
|
6211
6309
|
class: y(["uid-code", {
|
|
6212
6310
|
"uid-code--minimal": !_.value,
|
|
6213
6311
|
"uid-code--wrap": n.wrap
|
|
6214
6312
|
}]),
|
|
6215
6313
|
style: b(n.maxHeight ? { "--uid-code-max-height": n.maxHeight } : void 0)
|
|
6216
|
-
}, [_.value ? (T(), c("div",
|
|
6314
|
+
}, [_.value ? (T(), c("div", Jc, [l("span", Yc, P(n.language || ""), 1), n.copy ? (T(), c("button", {
|
|
6217
6315
|
key: 0,
|
|
6218
6316
|
type: "button",
|
|
6219
6317
|
class: y(["uid-code__copy", { "uid-code__copy--copied": f.value }]),
|
|
@@ -6223,24 +6321,466 @@ var Lc = {
|
|
|
6223
6321
|
icon: f.value ? L(Q) : L(fe),
|
|
6224
6322
|
size: 12,
|
|
6225
6323
|
"aria-hidden": "true"
|
|
6226
|
-
}, null, 8, ["icon"]), l("span", null, P(f.value ? L(r).copy.copied : L(r).copy.copy), 1)], 10,
|
|
6324
|
+
}, null, 8, ["icon"]), l("span", null, P(f.value ? L(r).copy.copied : L(r).copy.copy), 1)], 10, Xc)) : s("", !0)])) : s("", !0), l("div", Zc, [n.lineNumbers ? (T(), c("div", Qc, [(T(!0), c(t, null, k(p.value, (e, t) => (T(), c("span", {
|
|
6227
6325
|
key: t,
|
|
6228
6326
|
class: "uid-code__line-number"
|
|
6229
|
-
}, P(t + 1), 1))), 128))])) : s("", !0), l("pre",
|
|
6327
|
+
}, P(t + 1), 1))), 128))])) : s("", !0), l("pre", $c, [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, el)])])], 6));
|
|
6328
|
+
}
|
|
6329
|
+
}), nl = {
|
|
6330
|
+
"&": "&",
|
|
6331
|
+
"<": "<",
|
|
6332
|
+
">": ">",
|
|
6333
|
+
"\"": """,
|
|
6334
|
+
"'": "'"
|
|
6335
|
+
};
|
|
6336
|
+
function rl(e) {
|
|
6337
|
+
return e.replace(/[&<>"']/g, (e) => nl[e] ?? e);
|
|
6338
|
+
}
|
|
6339
|
+
function il(e) {
|
|
6340
|
+
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, "\"").replace(/'/g, "'").replace(/&/g, "&");
|
|
6341
|
+
}
|
|
6342
|
+
function al() {
|
|
6343
|
+
let e = /* @__PURE__ */ new Map();
|
|
6344
|
+
return (t) => {
|
|
6345
|
+
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;
|
|
6346
|
+
return e.set(n, r + 1), r === 0 ? n : `${n}-${r}`;
|
|
6347
|
+
};
|
|
6348
|
+
}
|
|
6349
|
+
var ol = {
|
|
6350
|
+
note: "Note",
|
|
6351
|
+
tip: "Tip",
|
|
6352
|
+
important: "Important",
|
|
6353
|
+
warning: "Warning",
|
|
6354
|
+
caution: "Caution"
|
|
6355
|
+
};
|
|
6356
|
+
function sl(e) {
|
|
6357
|
+
let t = e.trim(), n = t.replace(/�*58;|:/gi, ":").replace(/\s+/g, "").toLowerCase(), r = /^([a-z][a-z0-9+.-]*):/.exec(n);
|
|
6358
|
+
return r && ![
|
|
6359
|
+
"http",
|
|
6360
|
+
"https",
|
|
6361
|
+
"mailto"
|
|
6362
|
+
].includes(r[1] ?? "") ? null : t;
|
|
6363
|
+
}
|
|
6364
|
+
function cl(e) {
|
|
6365
|
+
return !/^([a-z][a-z0-9+.-]*:|\/|#|\?)/i.test(e);
|
|
6366
|
+
}
|
|
6367
|
+
function ll(e, t, n = !1) {
|
|
6368
|
+
let r = il(e);
|
|
6369
|
+
n && (r = r.replace(/\.md(?=$|[?#])/i, ""));
|
|
6370
|
+
try {
|
|
6371
|
+
let e = /^[a-z][a-z0-9+.-]*:\/\//i.test(t), n = new URL(r, e ? t : `http://base.invalid${t.startsWith("/") ? "" : "/"}${t}`);
|
|
6372
|
+
return rl(e ? n.href : n.pathname + n.search + n.hash);
|
|
6373
|
+
} catch {
|
|
6374
|
+
return e;
|
|
6375
|
+
}
|
|
6376
|
+
}
|
|
6377
|
+
function ul(e, t = {}) {
|
|
6378
|
+
let n = [], r = (e) => `${n.push(e) - 1}`, i = e.replace(/`([^`]+)`/g, (e, t) => r(`<code>${t}</code>`));
|
|
6379
|
+
return i = i.replace(/!\[([^\]]*)\]\(([^)\s]+)(?:\s+"[^)]*")?\)/g, (e, n, i) => {
|
|
6380
|
+
let a = sl(i);
|
|
6381
|
+
return a === null ? e : (t.imageBase && cl(a) && (a = ll(a, t.imageBase)), r(`<img src="${a}" alt="${n}" loading="lazy">`));
|
|
6382
|
+
}), i = i.replace(/\[([^\]]+)\]\(([^)\s]+)(?:\s+"[^)]*")?\)/g, (e, n, i) => {
|
|
6383
|
+
let a = sl(i);
|
|
6384
|
+
if (a === null) return e;
|
|
6385
|
+
let o = cl(a);
|
|
6386
|
+
t.linkBase && o && (a = ll(a, t.linkBase, t.stripMdExtension ?? !1));
|
|
6387
|
+
let s = /^(https?:)?\/\//i.test(a) || /^mailto:/i.test(a);
|
|
6388
|
+
return r(t.internalLinksInPlace === !0 && !s ? `<a href="${a}">${n}</a>` : `<a href="${a}" target="_blank" rel="noopener noreferrer">${n}</a>`);
|
|
6389
|
+
}), 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)] ?? "");
|
|
6390
|
+
}
|
|
6391
|
+
function dl(e) {
|
|
6392
|
+
return il(e.replace(/<[^>]+>/g, ""));
|
|
6393
|
+
}
|
|
6394
|
+
var fl = /^(\s*)([-*+]|\d+[.)])\s+(.*)$/, pl = /^\s*\|?\s*:?-+:?\s*(\|\s*:?-+:?\s*)*\|?\s*$/;
|
|
6395
|
+
function ml(e) {
|
|
6396
|
+
let t = e.trim();
|
|
6397
|
+
return t.startsWith("|") && (t = t.slice(1)), t.endsWith("|") && !t.endsWith("\\|") && (t = t.slice(0, -1)), t.split(/(?<!\\)\|/).map((e) => e.trim().replace(/\\\|/g, "|"));
|
|
6398
|
+
}
|
|
6399
|
+
var hl = {
|
|
6400
|
+
note: "note",
|
|
6401
|
+
info: "note",
|
|
6402
|
+
tip: "tip",
|
|
6403
|
+
hint: "tip",
|
|
6404
|
+
important: "important",
|
|
6405
|
+
warning: "warning",
|
|
6406
|
+
caution: "caution",
|
|
6407
|
+
danger: "caution",
|
|
6408
|
+
примечание: "note",
|
|
6409
|
+
заметка: "note",
|
|
6410
|
+
совет: "tip",
|
|
6411
|
+
важно: "important",
|
|
6412
|
+
внимание: "warning",
|
|
6413
|
+
предупреждение: "warning",
|
|
6414
|
+
осторожно: "caution"
|
|
6415
|
+
};
|
|
6416
|
+
function gl(e, t) {
|
|
6417
|
+
let n = e;
|
|
6418
|
+
return t.calloutTitles?.[n] ?? ol[n] ?? ol.note;
|
|
6419
|
+
}
|
|
6420
|
+
function _l(e, t = {}) {
|
|
6421
|
+
if (!e) return "";
|
|
6422
|
+
let n = rl(e.replace(/\r\n?/g, "\n")).split("\n"), r = [], i = [], a = (e) => ul(e, t), o = () => {
|
|
6423
|
+
i.length > 0 && (r.push(`<p>${a(i.join("\n"))}</p>`), i = []);
|
|
6424
|
+
};
|
|
6425
|
+
for (let e = 0; e < n.length; e++) {
|
|
6426
|
+
let s = n[e] ?? "", c = /^\s*(```|~~~)\s*([\w+#.-]*)[^`]*$/.exec(s);
|
|
6427
|
+
if (c) {
|
|
6428
|
+
o();
|
|
6429
|
+
let t = [];
|
|
6430
|
+
for (e++; e < n.length && !(n[e] ?? "").trim().startsWith(c[1] ?? "```");) t.push(n[e] ?? ""), e++;
|
|
6431
|
+
let i = c[2] ? ` class="language-${c[2]}"` : "";
|
|
6432
|
+
r.push(`<pre><code${i}>${t.join("\n")}</code></pre>`);
|
|
6433
|
+
continue;
|
|
6434
|
+
}
|
|
6435
|
+
if (s.trim() === "") {
|
|
6436
|
+
o();
|
|
6437
|
+
continue;
|
|
6438
|
+
}
|
|
6439
|
+
let l = /^(#{1,6})\s+(.*?)\s*#*\s*$/.exec(s);
|
|
6440
|
+
if (l) {
|
|
6441
|
+
o();
|
|
6442
|
+
let e = l[1]?.length ?? 1, n = a(l[2] ?? "");
|
|
6443
|
+
if (t.slugger) {
|
|
6444
|
+
let i = dl(n), a = t.slugger(i);
|
|
6445
|
+
t.onHeading?.({
|
|
6446
|
+
level: e,
|
|
6447
|
+
text: i,
|
|
6448
|
+
id: a
|
|
6449
|
+
}), r.push(`<h${e} id="${rl(a)}">${n}</h${e}>`);
|
|
6450
|
+
} else r.push(`<h${e}>${n}</h${e}>`);
|
|
6451
|
+
continue;
|
|
6452
|
+
}
|
|
6453
|
+
if (/^\s*([-*_])(\s*\1){2,}\s*$/.test(s)) {
|
|
6454
|
+
o(), r.push("<hr>");
|
|
6455
|
+
continue;
|
|
6456
|
+
}
|
|
6457
|
+
if (s.includes("|") && pl.test(n[e + 1] ?? "") && (n[e + 1] ?? "").includes("|")) {
|
|
6458
|
+
o();
|
|
6459
|
+
let t = ml(s), i = ml(n[e + 1] ?? "").map((e) => {
|
|
6460
|
+
let t = e.startsWith(":"), n = e.endsWith(":");
|
|
6461
|
+
return t && n ? "center" : n ? "right" : t ? "left" : "";
|
|
6462
|
+
}), c = (e, t, n) => `<${e}${i[n] ? ` style="text-align:${i[n]}"` : ""}>${a(t)}</${e}>`, l = [];
|
|
6463
|
+
for (e += 2; e < n.length && (n[e] ?? "").includes("|") && (n[e] ?? "").trim() !== "";) {
|
|
6464
|
+
let r = ml(n[e] ?? "");
|
|
6465
|
+
l.push(`<tr>${t.map((e, t) => c("td", r[t] ?? "", t)).join("")}</tr>`), e++;
|
|
6466
|
+
}
|
|
6467
|
+
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>`);
|
|
6468
|
+
continue;
|
|
6469
|
+
}
|
|
6470
|
+
if (/^\s*>/.test(s)) {
|
|
6471
|
+
o();
|
|
6472
|
+
let i = [];
|
|
6473
|
+
for (; e < n.length && /^\s*>/.test(n[e] ?? "");) i.push((n[e] ?? "").replace(/^\s*>\s?/, "")), e++;
|
|
6474
|
+
e--, r.push(xl(i, t));
|
|
6475
|
+
continue;
|
|
6476
|
+
}
|
|
6477
|
+
if (fl.test(s)) {
|
|
6478
|
+
o();
|
|
6479
|
+
let i = bl(n, e, t);
|
|
6480
|
+
r.push(i.html), e = i.next - 1;
|
|
6481
|
+
continue;
|
|
6482
|
+
}
|
|
6483
|
+
i.push(s);
|
|
6230
6484
|
}
|
|
6231
|
-
|
|
6485
|
+
return o(), r.join("\n");
|
|
6486
|
+
}
|
|
6487
|
+
function vl(e) {
|
|
6488
|
+
return (/^[ \t]*/.exec(e)?.[0] ?? "").replace(/\t/g, " ").length;
|
|
6489
|
+
}
|
|
6490
|
+
function yl(e) {
|
|
6491
|
+
return /^\s*(#{1,6}\s|>|```|~~~|\|)/.test(e) || /^\s*([-*_])(\s*\1){2,}\s*$/.test(e);
|
|
6492
|
+
}
|
|
6493
|
+
function bl(e, t, n) {
|
|
6494
|
+
let r = fl.exec(e[t] ?? ""), i = vl(r?.[1] ?? ""), a = /\d/.test(r?.[2] ?? ""), o = [], s = t;
|
|
6495
|
+
for (; s < e.length;) {
|
|
6496
|
+
let t = fl.exec(e[s] ?? "");
|
|
6497
|
+
if (!t || vl(t[1] ?? "") > i + 1 || vl(t[1] ?? "") < i || /\d/.test(t[2] ?? "") !== a) break;
|
|
6498
|
+
let r = [t[3] ?? ""], c = [];
|
|
6499
|
+
for (s++; s < e.length;) {
|
|
6500
|
+
let t = e[s] ?? "";
|
|
6501
|
+
if (t.trim() === "") {
|
|
6502
|
+
let t = s + 1;
|
|
6503
|
+
for (; t < e.length && (e[t] ?? "").trim() === "";) t++;
|
|
6504
|
+
if (t < e.length && vl(e[t] ?? "") > i + 1) {
|
|
6505
|
+
for (; s < t; s++) c.push("");
|
|
6506
|
+
continue;
|
|
6507
|
+
}
|
|
6508
|
+
break;
|
|
6509
|
+
}
|
|
6510
|
+
if (vl(t) > i + 1) {
|
|
6511
|
+
c.push(t), s++;
|
|
6512
|
+
continue;
|
|
6513
|
+
}
|
|
6514
|
+
if (c.length === 0 && !fl.test(t) && !yl(t)) {
|
|
6515
|
+
r.push(t.trim()), s++;
|
|
6516
|
+
continue;
|
|
6517
|
+
}
|
|
6518
|
+
break;
|
|
6519
|
+
}
|
|
6520
|
+
let l = ul(r.join("\n"), n);
|
|
6521
|
+
if (c.some((e) => e.trim() !== "")) {
|
|
6522
|
+
let e = Math.min(...c.filter((e) => e.trim() !== "").map(vl)), t = c.map((t) => t.replace(/\t/g, " ").slice(e));
|
|
6523
|
+
l += Sl(t, n);
|
|
6524
|
+
}
|
|
6525
|
+
o.push(`<li>${l}</li>`);
|
|
6526
|
+
let u = s;
|
|
6527
|
+
for (; u < e.length && (e[u] ?? "").trim() === "";) u++;
|
|
6528
|
+
let d = fl.exec(e[u] ?? "");
|
|
6529
|
+
u > s && d && vl(d[1] ?? "") <= i + 1 && vl(d[1] ?? "") >= i && /\d/.test(d[2] ?? "") === a && (s = u);
|
|
6530
|
+
}
|
|
6531
|
+
let c = a ? "ol" : "ul", l = a ? Number.parseInt(r?.[2] ?? "1", 10) : 1;
|
|
6532
|
+
return {
|
|
6533
|
+
html: `<${c}${a && l !== 1 && Number.isFinite(l) ? ` start="${l}"` : ""}>${o.join("")}</${c}>`,
|
|
6534
|
+
next: s
|
|
6535
|
+
};
|
|
6536
|
+
}
|
|
6537
|
+
function xl(e, t) {
|
|
6538
|
+
let n = (e[0] ?? "").trim(), r = /^\[!(\w+)\]\s*$/.exec(n);
|
|
6539
|
+
if (r) {
|
|
6540
|
+
let n = hl[(r[1] ?? "").toLowerCase()];
|
|
6541
|
+
if (n) return `<blockquote class="uid-markdown__callout uid-markdown__callout--${n}">${`<p class="uid-markdown__callout-title">${rl(gl(n, t))}</p>`}${Sl(e.slice(1), t)}</blockquote>`;
|
|
6542
|
+
}
|
|
6543
|
+
let i = /^\*\*([^*]+?):?\*\*:?/.exec(n);
|
|
6544
|
+
if (i) {
|
|
6545
|
+
let n = hl[(i[1] ?? "").trim().toLowerCase()];
|
|
6546
|
+
if (n) return `<blockquote class="uid-markdown__callout uid-markdown__callout--${n}">${Sl(e, t)}</blockquote>`;
|
|
6547
|
+
}
|
|
6548
|
+
return `<blockquote>${Sl(e, t)}</blockquote>`;
|
|
6549
|
+
}
|
|
6550
|
+
function Sl(e, t) {
|
|
6551
|
+
return _l(il(e.join("\n")), t);
|
|
6552
|
+
}
|
|
6553
|
+
function Cl(e) {
|
|
6554
|
+
if (!e) return [];
|
|
6555
|
+
let t = e.replace(/\r\n?/g, "\n").split("\n"), n = [], r = [], i = () => {
|
|
6556
|
+
r.some((e) => e.trim() !== "") && n.push({
|
|
6557
|
+
kind: "text",
|
|
6558
|
+
source: r.join("\n")
|
|
6559
|
+
}), r = [];
|
|
6560
|
+
};
|
|
6561
|
+
for (let e = 0; e < t.length; e++) {
|
|
6562
|
+
let a = t[e] ?? "", o = /^ {0,3}(`{3,}|~{3,})\s*([\w+#.-]*)[^`]*$/.exec(a);
|
|
6563
|
+
if (!o) {
|
|
6564
|
+
r.push(a);
|
|
6565
|
+
continue;
|
|
6566
|
+
}
|
|
6567
|
+
i();
|
|
6568
|
+
let s = o[1] ?? "```", c = [];
|
|
6569
|
+
for (e++; e < t.length && !(t[e] ?? "").trim().startsWith(s);) c.push(t[e] ?? ""), e++;
|
|
6570
|
+
n.push({
|
|
6571
|
+
kind: "code",
|
|
6572
|
+
code: c.join("\n"),
|
|
6573
|
+
language: (o[2] ?? "").toLowerCase()
|
|
6574
|
+
});
|
|
6575
|
+
}
|
|
6576
|
+
return i(), n;
|
|
6577
|
+
}
|
|
6578
|
+
//#endregion
|
|
6579
|
+
//#region src/components/Markdown/blockRenderers.ts
|
|
6580
|
+
var wl = Symbol("UidMarkdownBlockRenderers");
|
|
6581
|
+
function Tl(e) {
|
|
6582
|
+
E(wl, e);
|
|
6583
|
+
}
|
|
6584
|
+
function El() {
|
|
6585
|
+
return h(wl, {});
|
|
6586
|
+
}
|
|
6587
|
+
//#endregion
|
|
6588
|
+
//#region src/components/Markdown/UidMarkdown.vue?vue&type=script&setup=true&lang.ts
|
|
6589
|
+
var Dl = ["innerHTML"], Ol = ["data-language", "innerHTML"], kl = ["data-language"], Al = ["data-language"], jl = {
|
|
6590
|
+
class: "uid-markdown__block-error-message",
|
|
6591
|
+
role: "alert"
|
|
6592
|
+
}, Ml = ["aria-label"], Nl = { class: "uid-markdown__toc-title" }, Pl = ["href", "onClick"], Fl = /* @__PURE__ */ f({
|
|
6593
|
+
__name: "UidMarkdown",
|
|
6594
|
+
props: {
|
|
6595
|
+
source: { default: "" },
|
|
6596
|
+
toc: {
|
|
6597
|
+
type: Boolean,
|
|
6598
|
+
default: !1
|
|
6599
|
+
},
|
|
6600
|
+
tocDepth: { default: 3 },
|
|
6601
|
+
tocLabel: { default: void 0 },
|
|
6602
|
+
linkBase: { default: void 0 },
|
|
6603
|
+
stripMdExtension: {
|
|
6604
|
+
type: Boolean,
|
|
6605
|
+
default: void 0
|
|
6606
|
+
},
|
|
6607
|
+
imageBase: { default: void 0 },
|
|
6608
|
+
internalLinksInPlace: {
|
|
6609
|
+
type: Boolean,
|
|
6610
|
+
default: !0
|
|
6611
|
+
},
|
|
6612
|
+
calloutTitles: { default: void 0 },
|
|
6613
|
+
blockRenderers: { default: void 0 }
|
|
6614
|
+
},
|
|
6615
|
+
setup(e) {
|
|
6616
|
+
let n = e, r = $(), i = El(), u = {
|
|
6617
|
+
blade: "html",
|
|
6618
|
+
console: "bash",
|
|
6619
|
+
env: "bash",
|
|
6620
|
+
dotenv: "bash",
|
|
6621
|
+
terminal: "bash",
|
|
6622
|
+
ps1: "bash",
|
|
6623
|
+
jsonc: "json",
|
|
6624
|
+
json5: "json"
|
|
6625
|
+
}, f = N([]), p = N([]), m = 0;
|
|
6626
|
+
function h(e, t, n) {
|
|
6627
|
+
if (t !== m) return;
|
|
6628
|
+
let r = f.value[e];
|
|
6629
|
+
if (!r || r.kind !== "custom") return;
|
|
6630
|
+
let i = f.value.slice();
|
|
6631
|
+
i[e] = n.error !== void 0 || n.html === void 0 ? {
|
|
6632
|
+
...r,
|
|
6633
|
+
state: "error",
|
|
6634
|
+
error: n.error ?? ""
|
|
6635
|
+
} : {
|
|
6636
|
+
...r,
|
|
6637
|
+
state: "done",
|
|
6638
|
+
html: n.html
|
|
6639
|
+
}, f.value = i;
|
|
6640
|
+
}
|
|
6641
|
+
function g(e) {
|
|
6642
|
+
return e instanceof Error ? e.message : String(e);
|
|
6643
|
+
}
|
|
6644
|
+
function _() {
|
|
6645
|
+
let e = ++m, t = {
|
|
6646
|
+
...i,
|
|
6647
|
+
...n.blockRenderers ?? {}
|
|
6648
|
+
}, a = al(), o = [], s = {
|
|
6649
|
+
...r.value.markdown,
|
|
6650
|
+
...n.calloutTitles ?? {}
|
|
6651
|
+
}, c = [], l = 0;
|
|
6652
|
+
f.value = Cl(n.source).map((e, r) => {
|
|
6653
|
+
if (e.kind === "text") return {
|
|
6654
|
+
kind: "html",
|
|
6655
|
+
html: _l(e.source, {
|
|
6656
|
+
slugger: a,
|
|
6657
|
+
onHeading: (e) => o.push(e),
|
|
6658
|
+
linkBase: n.linkBase ?? null,
|
|
6659
|
+
stripMdExtension: n.stripMdExtension ?? !!n.linkBase,
|
|
6660
|
+
imageBase: n.imageBase ?? null,
|
|
6661
|
+
internalLinksInPlace: n.internalLinksInPlace,
|
|
6662
|
+
calloutTitles: s
|
|
6663
|
+
})
|
|
6664
|
+
};
|
|
6665
|
+
let i = e.language ? t[e.language] : void 0, d = {
|
|
6666
|
+
language: e.language,
|
|
6667
|
+
index: l++
|
|
6668
|
+
};
|
|
6669
|
+
return i ? (c.push({
|
|
6670
|
+
index: r,
|
|
6671
|
+
run: () => i(e.code, d)
|
|
6672
|
+
}), {
|
|
6673
|
+
kind: "custom",
|
|
6674
|
+
code: e.code,
|
|
6675
|
+
language: e.language,
|
|
6676
|
+
state: "pending"
|
|
6677
|
+
}) : {
|
|
6678
|
+
kind: "code",
|
|
6679
|
+
code: e.code,
|
|
6680
|
+
language: u[e.language] ?? e.language
|
|
6681
|
+
};
|
|
6682
|
+
}), p.value = o;
|
|
6683
|
+
for (let { index: t, run: n } of c) {
|
|
6684
|
+
let r;
|
|
6685
|
+
try {
|
|
6686
|
+
r = n();
|
|
6687
|
+
} catch (n) {
|
|
6688
|
+
h(t, e, { error: g(n) });
|
|
6689
|
+
continue;
|
|
6690
|
+
}
|
|
6691
|
+
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: "" });
|
|
6692
|
+
}
|
|
6693
|
+
}
|
|
6694
|
+
G(() => [
|
|
6695
|
+
n.source,
|
|
6696
|
+
n.linkBase,
|
|
6697
|
+
n.stripMdExtension,
|
|
6698
|
+
n.imageBase,
|
|
6699
|
+
n.internalLinksInPlace,
|
|
6700
|
+
n.calloutTitles,
|
|
6701
|
+
n.blockRenderers,
|
|
6702
|
+
r.value
|
|
6703
|
+
], _, { immediate: !0 });
|
|
6704
|
+
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);
|
|
6705
|
+
function E(e, t = !0) {
|
|
6706
|
+
if (!e || !w.value) return !1;
|
|
6707
|
+
let n = Array.from(w.value.querySelectorAll("[id]")).find((t) => t.id === e);
|
|
6708
|
+
return n ? (n.scrollIntoView?.({
|
|
6709
|
+
behavior: t ? "smooth" : "auto",
|
|
6710
|
+
block: "start"
|
|
6711
|
+
}), !0) : !1;
|
|
6712
|
+
}
|
|
6713
|
+
function D(e) {
|
|
6714
|
+
E(e) && typeof history < "u" && history.replaceState(history.state, "", `#${encodeURIComponent(e)}`);
|
|
6715
|
+
}
|
|
6716
|
+
function O(e) {
|
|
6717
|
+
if (e.defaultPrevented || e.button !== 0 || e.metaKey || e.ctrlKey || e.shiftKey || e.altKey) return;
|
|
6718
|
+
let t = (e.target?.closest?.("a"))?.getAttribute("href") ?? "";
|
|
6719
|
+
t.startsWith("#") && (e.preventDefault(), D(decodeURIComponent(t.slice(1))));
|
|
6720
|
+
}
|
|
6721
|
+
return S(() => {
|
|
6722
|
+
typeof window > "u" || !window.location.hash || v(() => E(decodeURIComponent(window.location.hash.slice(1)), !1));
|
|
6723
|
+
}), (e, n) => (T(), c("div", {
|
|
6724
|
+
ref_key: "root",
|
|
6725
|
+
ref: w,
|
|
6726
|
+
class: y(["uid-markdown", { "uid-markdown--toc": C.value.length > 0 }])
|
|
6727
|
+
}, [l("div", {
|
|
6728
|
+
class: "uid-markdown__body",
|
|
6729
|
+
onClick: O
|
|
6730
|
+
}, [(T(!0), c(t, null, k(f.value, (e, n) => (T(), c(t, { key: n }, [e.kind === "html" ? (T(), c("div", {
|
|
6731
|
+
key: 0,
|
|
6732
|
+
class: "uid-markdown__html",
|
|
6733
|
+
innerHTML: e.html
|
|
6734
|
+
}, null, 8, Dl)) : e.kind === "code" ? (T(), o(tl, {
|
|
6735
|
+
key: 1,
|
|
6736
|
+
class: "uid-markdown__code",
|
|
6737
|
+
code: e.code,
|
|
6738
|
+
language: e.language || void 0,
|
|
6739
|
+
copy: ""
|
|
6740
|
+
}, null, 8, ["code", "language"])) : e.state === "done" ? (T(), c("div", {
|
|
6741
|
+
key: 2,
|
|
6742
|
+
class: "uid-markdown__block",
|
|
6743
|
+
"data-language": e.language,
|
|
6744
|
+
innerHTML: e.html
|
|
6745
|
+
}, null, 8, Ol)) : e.state === "pending" ? (T(), c("div", {
|
|
6746
|
+
key: 3,
|
|
6747
|
+
class: "uid-markdown__block uid-markdown__block--pending",
|
|
6748
|
+
"data-language": e.language,
|
|
6749
|
+
"aria-busy": "true"
|
|
6750
|
+
}, P(L(r).markdown.blockPending), 9, kl)) : (T(), c("div", {
|
|
6751
|
+
key: 4,
|
|
6752
|
+
class: "uid-markdown__block-error",
|
|
6753
|
+
"data-language": e.language
|
|
6754
|
+
}, [l("p", jl, P(e.error ? `${L(r).markdown.blockError}: ${e.error}` : L(r).markdown.blockError), 1), d(tl, {
|
|
6755
|
+
class: "uid-markdown__code",
|
|
6756
|
+
code: e.code,
|
|
6757
|
+
language: e.language || void 0,
|
|
6758
|
+
copy: ""
|
|
6759
|
+
}, null, 8, ["code", "language"])], 8, Al))], 64))), 128))]), C.value.length > 0 ? (T(), c("nav", {
|
|
6760
|
+
key: 0,
|
|
6761
|
+
class: "uid-markdown__toc",
|
|
6762
|
+
"aria-label": x.value
|
|
6763
|
+
}, [l("div", Nl, P(x.value), 1), l("ul", null, [(T(!0), c(t, null, k(C.value, (e) => (T(), c("li", {
|
|
6764
|
+
key: e.id,
|
|
6765
|
+
class: y(["uid-markdown__toc-item", `uid-markdown__toc-item--l${e.level}`])
|
|
6766
|
+
}, [l("a", {
|
|
6767
|
+
href: `#${e.id}`,
|
|
6768
|
+
onClick: X((t) => D(e.id), ["prevent"])
|
|
6769
|
+
}, P(e.text), 9, Pl)], 2))), 128))])], 8, Ml)) : s("", !0)], 2));
|
|
6770
|
+
}
|
|
6771
|
+
}), Il = ["data-status"], Ll = ["aria-label"], Rl = {
|
|
6232
6772
|
key: 0,
|
|
6233
6773
|
class: "uid-image__placeholder",
|
|
6234
6774
|
"aria-hidden": "true"
|
|
6235
|
-
},
|
|
6775
|
+
}, zl = ["aria-label"], Bl = [
|
|
6236
6776
|
"src",
|
|
6237
6777
|
"alt",
|
|
6238
6778
|
"loading"
|
|
6239
|
-
],
|
|
6779
|
+
], Vl = [
|
|
6240
6780
|
"src",
|
|
6241
6781
|
"alt",
|
|
6242
6782
|
"loading"
|
|
6243
|
-
],
|
|
6783
|
+
], Hl = { class: "uid-image__preview" }, Ul = ["src", "alt"], Wl = /* @__PURE__ */ f({
|
|
6244
6784
|
__name: "UidImage",
|
|
6245
6785
|
props: {
|
|
6246
6786
|
src: {},
|
|
@@ -6310,7 +6850,7 @@ var Lc = {
|
|
|
6310
6850
|
}, [A(r.$slots, "fallback", {}, () => [d(e, {
|
|
6311
6851
|
icon: L(_e),
|
|
6312
6852
|
size: 24
|
|
6313
|
-
}, null, 8, ["icon"])])], 8,
|
|
6853
|
+
}, null, 8, ["icon"])])], 8, Ll)) : (T(), c(t, { key: 1 }, [p.value === "loading" ? (T(), c("div", Rl, [A(r.$slots, "placeholder")])) : s("", !0), _.value ? (T(), c("button", {
|
|
6314
6854
|
key: 1,
|
|
6315
6855
|
type: "button",
|
|
6316
6856
|
class: "uid-image__trigger",
|
|
@@ -6325,7 +6865,7 @@ var Lc = {
|
|
|
6325
6865
|
decoding: "async",
|
|
6326
6866
|
onLoad: C,
|
|
6327
6867
|
onError: w
|
|
6328
|
-
}, null, 40,
|
|
6868
|
+
}, null, 40, Bl)], 8, zl)) : (T(), c("img", {
|
|
6329
6869
|
key: 2,
|
|
6330
6870
|
class: "uid-image__img",
|
|
6331
6871
|
src: g.value,
|
|
@@ -6334,40 +6874,40 @@ var Lc = {
|
|
|
6334
6874
|
decoding: "async",
|
|
6335
6875
|
onLoad: C,
|
|
6336
6876
|
onError: w
|
|
6337
|
-
}, null, 40,
|
|
6877
|
+
}, null, 40, Vl))], 64)), n.preview ? (T(), o(Gn, {
|
|
6338
6878
|
key: 2,
|
|
6339
6879
|
modelValue: h.value,
|
|
6340
6880
|
"onUpdate:modelValue": i[0] ||= (e) => h.value = e,
|
|
6341
6881
|
size: "full",
|
|
6342
6882
|
title: n.alt
|
|
6343
6883
|
}, {
|
|
6344
|
-
default: q(() => [l("div",
|
|
6884
|
+
default: q(() => [l("div", Hl, [l("img", {
|
|
6345
6885
|
class: "uid-image__preview-img",
|
|
6346
6886
|
src: n.previewSrc || g.value,
|
|
6347
6887
|
alt: n.alt
|
|
6348
|
-
}, null, 8,
|
|
6888
|
+
}, null, 8, Ul)])]),
|
|
6349
6889
|
_: 1
|
|
6350
|
-
}, 8, ["modelValue", "title"])) : s("", !0)], 14,
|
|
6890
|
+
}, 8, ["modelValue", "title"])) : s("", !0)], 14, Il));
|
|
6351
6891
|
}
|
|
6352
|
-
}),
|
|
6892
|
+
}), Gl = [
|
|
6353
6893
|
"aria-valuemax",
|
|
6354
6894
|
"aria-valuenow",
|
|
6355
6895
|
"aria-readonly",
|
|
6356
6896
|
"aria-disabled",
|
|
6357
6897
|
"aria-label"
|
|
6358
|
-
],
|
|
6898
|
+
], Kl = [
|
|
6359
6899
|
"tabindex",
|
|
6360
6900
|
"aria-label",
|
|
6361
6901
|
"onClick",
|
|
6362
6902
|
"onMousemove",
|
|
6363
6903
|
"onKeydown"
|
|
6364
|
-
],
|
|
6904
|
+
], ql = {
|
|
6365
6905
|
class: "uid-rating__icon",
|
|
6366
6906
|
"aria-hidden": "true"
|
|
6367
|
-
},
|
|
6907
|
+
}, Jl = ["data-half"], Yl = {
|
|
6368
6908
|
key: 0,
|
|
6369
6909
|
class: "uid-rating__label"
|
|
6370
|
-
},
|
|
6910
|
+
}, Xl = /* @__PURE__ */ f({
|
|
6371
6911
|
__name: "UidRating",
|
|
6372
6912
|
props: /* @__PURE__ */ g({
|
|
6373
6913
|
max: { default: 5 },
|
|
@@ -6472,21 +7012,21 @@ var Lc = {
|
|
|
6472
7012
|
onClick: (e) => x(e, t),
|
|
6473
7013
|
onMousemove: (e) => S(e, t),
|
|
6474
7014
|
onKeydown: (e) => w(e, t)
|
|
6475
|
-
}, [l("span",
|
|
7015
|
+
}, [l("span", ql, [d(e, { icon: _.value }, null, 8, ["icon"])]), v(t).full ? (T(), c("span", {
|
|
6476
7016
|
key: 0,
|
|
6477
7017
|
class: "uid-rating__icon uid-rating__icon--filled",
|
|
6478
7018
|
"data-half": v(t).half ? "true" : "false",
|
|
6479
7019
|
"aria-hidden": "true"
|
|
6480
|
-
}, [d(e, { icon: _.value }, null, 8, ["icon"])], 8,
|
|
7020
|
+
}, [d(e, { icon: _.value }, null, 8, ["icon"])], 8, Jl)) : s("", !0)], 40, Kl))), 128)), n.showLabel ? (T(), c("span", Yl, P(L($s)(p.value, u.value, +!!n.allowHalf)) + " / " + P(n.max), 1)) : s("", !0)], 42, Gl));
|
|
6481
7021
|
}
|
|
6482
|
-
}),
|
|
7022
|
+
}), Zl = [
|
|
6483
7023
|
"tabindex",
|
|
6484
7024
|
"aria-orientation",
|
|
6485
7025
|
"aria-valuemin",
|
|
6486
7026
|
"aria-valuemax",
|
|
6487
7027
|
"aria-valuenow",
|
|
6488
7028
|
"aria-disabled"
|
|
6489
|
-
],
|
|
7029
|
+
], Ql = { class: "uid-splitter__pane uid-splitter__pane--end" }, $l = /* @__PURE__ */ f({
|
|
6490
7030
|
__name: "UidSplitter",
|
|
6491
7031
|
props: /* @__PURE__ */ g({
|
|
6492
7032
|
direction: { default: "horizontal" },
|
|
@@ -6564,27 +7104,27 @@ var Lc = {
|
|
|
6564
7104
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
6565
7105
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
6566
7106
|
l("span", { class: "uid-splitter__grip-dot" })
|
|
6567
|
-
], -1)]], 40,
|
|
6568
|
-
l("div",
|
|
7107
|
+
], -1)]], 40, Zl),
|
|
7108
|
+
l("div", Ql, [A(t.$slots, "end")])
|
|
6569
7109
|
], 2));
|
|
6570
7110
|
}
|
|
6571
|
-
}),
|
|
7111
|
+
}), eu = {
|
|
6572
7112
|
key: 0,
|
|
6573
7113
|
class: "uid-stat__icon",
|
|
6574
7114
|
"aria-hidden": "true"
|
|
6575
|
-
},
|
|
7115
|
+
}, tu = { class: "uid-stat__body" }, nu = {
|
|
6576
7116
|
key: 0,
|
|
6577
7117
|
class: "uid-stat__title"
|
|
6578
|
-
},
|
|
7118
|
+
}, ru = { class: "uid-stat__value-row" }, iu = { class: "uid-stat__value" }, au = {
|
|
6579
7119
|
key: 0,
|
|
6580
7120
|
class: "uid-stat__prefix"
|
|
6581
|
-
},
|
|
7121
|
+
}, ou = {
|
|
6582
7122
|
key: 1,
|
|
6583
7123
|
class: "uid-stat__suffix"
|
|
6584
|
-
},
|
|
7124
|
+
}, su = {
|
|
6585
7125
|
key: 1,
|
|
6586
7126
|
class: "uid-stat__footer"
|
|
6587
|
-
},
|
|
7127
|
+
}, cu = /* @__PURE__ */ f({
|
|
6588
7128
|
__name: "UidStat",
|
|
6589
7129
|
props: {
|
|
6590
7130
|
title: {},
|
|
@@ -6613,16 +7153,16 @@ var Lc = {
|
|
|
6613
7153
|
t.variant === "ghost" && "uid-stat--ghost",
|
|
6614
7154
|
t.trendPlacement === "below" && "uid-stat--trend-below",
|
|
6615
7155
|
t.loading && "uid-stat--loading"
|
|
6616
|
-
]]) }, [t.icon || n.$slots.icon ? (T(), c("span",
|
|
7156
|
+
]]) }, [t.icon || n.$slots.icon ? (T(), c("span", eu, [A(n.$slots, "icon", {}, () => [t.icon ? (T(), o(e, {
|
|
6617
7157
|
key: 0,
|
|
6618
7158
|
icon: t.icon,
|
|
6619
7159
|
size: 20
|
|
6620
|
-
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div",
|
|
6621
|
-
t.title ? (T(), c("p",
|
|
6622
|
-
l("div",
|
|
6623
|
-
t.prefix ? (T(), c("span",
|
|
7160
|
+
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div", tu, [
|
|
7161
|
+
t.title ? (T(), c("p", nu, P(t.title), 1)) : s("", !0),
|
|
7162
|
+
l("div", ru, [l("span", iu, [A(n.$slots, "value", {}, () => [
|
|
7163
|
+
t.prefix ? (T(), c("span", au, P(t.prefix), 1)) : s("", !0),
|
|
6624
7164
|
l("span", null, P(d.value), 1),
|
|
6625
|
-
t.suffix ? (T(), c("span",
|
|
7165
|
+
t.suffix ? (T(), c("span", ou, P(t.suffix), 1)) : s("", !0)
|
|
6626
7166
|
])]), t.trend !== void 0 || n.$slots.trend ? (T(), c("span", {
|
|
6627
7167
|
key: 0,
|
|
6628
7168
|
class: y(["uid-stat__trend", f.value && `uid-stat__trend--${f.value}`])
|
|
@@ -6631,13 +7171,13 @@ var Lc = {
|
|
|
6631
7171
|
icon: p.value,
|
|
6632
7172
|
size: 12
|
|
6633
7173
|
}, null, 8, ["icon"])) : s("", !0), l("span", null, P(m.value), 1)])], 2)) : s("", !0)]),
|
|
6634
|
-
t.footer || n.$slots.footer ? (T(), c("p",
|
|
7174
|
+
t.footer || n.$slots.footer ? (T(), c("p", su, [A(n.$slots, "footer", {}, () => [u(P(t.footer), 1)])])) : s("", !0)
|
|
6635
7175
|
])], 2));
|
|
6636
7176
|
}
|
|
6637
|
-
}),
|
|
7177
|
+
}), lu = Symbol("UidDescriptionList"), uu = {
|
|
6638
7178
|
key: 0,
|
|
6639
7179
|
class: "uid-description-list__title"
|
|
6640
|
-
},
|
|
7180
|
+
}, du = /* @__PURE__ */ f({
|
|
6641
7181
|
__name: "UidDescriptionList",
|
|
6642
7182
|
props: {
|
|
6643
7183
|
title: {},
|
|
@@ -6652,7 +7192,7 @@ var Lc = {
|
|
|
6652
7192
|
},
|
|
6653
7193
|
setup(e) {
|
|
6654
7194
|
let t = e;
|
|
6655
|
-
E(
|
|
7195
|
+
E(lu, {
|
|
6656
7196
|
direction: a(() => t.direction),
|
|
6657
7197
|
bordered: a(() => t.bordered)
|
|
6658
7198
|
});
|
|
@@ -6664,12 +7204,12 @@ var Lc = {
|
|
|
6664
7204
|
`uid-description-list--${e.direction}`,
|
|
6665
7205
|
`uid-description-list--${e.size}`,
|
|
6666
7206
|
e.bordered && "uid-description-list--bordered"
|
|
6667
|
-
]]) }, [e.title || t.$slots.title ? (T(), c("h3",
|
|
7207
|
+
]]) }, [e.title || t.$slots.title ? (T(), c("h3", uu, [A(t.$slots, "title", {}, () => [u(P(e.title), 1)])])) : s("", !0), l("dl", {
|
|
6668
7208
|
class: "uid-description-list__grid",
|
|
6669
7209
|
style: b(n.value)
|
|
6670
7210
|
}, [A(t.$slots, "default")], 4)], 2));
|
|
6671
7211
|
}
|
|
6672
|
-
}),
|
|
7212
|
+
}), fu = { class: "uid-description-item__label" }, pu = { class: "uid-description-item__value" }, mu = ["aria-label"], hu = /* @__PURE__ */ f({
|
|
6673
7213
|
__name: "UidDescriptionItem",
|
|
6674
7214
|
props: {
|
|
6675
7215
|
label: {},
|
|
@@ -6682,7 +7222,7 @@ var Lc = {
|
|
|
6682
7222
|
},
|
|
6683
7223
|
setup(t) {
|
|
6684
7224
|
let n = $(), r = t;
|
|
6685
|
-
h(
|
|
7225
|
+
h(lu, null);
|
|
6686
7226
|
let i = O(null), o = O(!1), f = a(() => ({ "--uid-desc-span": r.span }));
|
|
6687
7227
|
async function p() {
|
|
6688
7228
|
let e = r.copyValue ?? i.value?.querySelector(".uid-description-item__value")?.textContent?.trim() ?? "";
|
|
@@ -6697,7 +7237,7 @@ var Lc = {
|
|
|
6697
7237
|
ref: i,
|
|
6698
7238
|
class: "uid-description-item",
|
|
6699
7239
|
style: b(f.value)
|
|
6700
|
-
}, [l("dt",
|
|
7240
|
+
}, [l("dt", fu, [A(r.$slots, "label", {}, () => [u(P(t.label), 1)])]), l("dd", pu, [A(r.$slots, "default"), t.copyable ? (T(), c("button", {
|
|
6701
7241
|
key: 0,
|
|
6702
7242
|
type: "button",
|
|
6703
7243
|
class: y(["uid-description-item__copy", { "uid-description-item__copy--copied": o.value }]),
|
|
@@ -6706,24 +7246,24 @@ var Lc = {
|
|
|
6706
7246
|
}, [d(e, {
|
|
6707
7247
|
icon: o.value ? L(Q) : L(fe),
|
|
6708
7248
|
size: 12
|
|
6709
|
-
}, null, 8, ["icon"])], 10,
|
|
7249
|
+
}, null, 8, ["icon"])], 10, mu)) : s("", !0)])], 4));
|
|
6710
7250
|
}
|
|
6711
|
-
}),
|
|
7251
|
+
}), gu = {
|
|
6712
7252
|
class: "uid-pattern-result__icon",
|
|
6713
7253
|
"aria-hidden": "true"
|
|
6714
|
-
},
|
|
7254
|
+
}, _u = {
|
|
6715
7255
|
key: 0,
|
|
6716
7256
|
class: "uid-pattern-result__title"
|
|
6717
|
-
},
|
|
7257
|
+
}, vu = {
|
|
6718
7258
|
key: 1,
|
|
6719
7259
|
class: "uid-pattern-result__description"
|
|
6720
|
-
},
|
|
7260
|
+
}, yu = {
|
|
6721
7261
|
key: 2,
|
|
6722
7262
|
class: "uid-pattern-result__content"
|
|
6723
|
-
},
|
|
7263
|
+
}, bu = {
|
|
6724
7264
|
key: 3,
|
|
6725
7265
|
class: "uid-pattern-result__actions"
|
|
6726
|
-
},
|
|
7266
|
+
}, xu = /* @__PURE__ */ f({
|
|
6727
7267
|
__name: "UidResult",
|
|
6728
7268
|
props: {
|
|
6729
7269
|
status: { default: "success" },
|
|
@@ -6745,17 +7285,17 @@ var Lc = {
|
|
|
6745
7285
|
class: y(["uid-pattern-result", [`uid-pattern-result--${t.status}`, t.compact && "uid-pattern-result--compact"]]),
|
|
6746
7286
|
role: "status"
|
|
6747
7287
|
}, [
|
|
6748
|
-
l("div",
|
|
7288
|
+
l("div", gu, [A(n.$slots, "icon", {}, () => [d(e, {
|
|
6749
7289
|
icon: i.value,
|
|
6750
7290
|
size: t.compact ? 32 : 40
|
|
6751
7291
|
}, null, 8, ["icon", "size"])])]),
|
|
6752
|
-
t.title || n.$slots.title ? (T(), c("h2",
|
|
6753
|
-
t.description || n.$slots.description ? (T(), c("p",
|
|
6754
|
-
n.$slots.default ? (T(), c("div",
|
|
6755
|
-
n.$slots.actions ? (T(), c("div",
|
|
7292
|
+
t.title || n.$slots.title ? (T(), c("h2", _u, [A(n.$slots, "title", {}, () => [u(P(t.title), 1)])])) : s("", !0),
|
|
7293
|
+
t.description || n.$slots.description ? (T(), c("p", vu, [A(n.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0),
|
|
7294
|
+
n.$slots.default ? (T(), c("div", yu, [A(n.$slots, "default")])) : s("", !0),
|
|
7295
|
+
n.$slots.actions ? (T(), c("div", bu, [A(n.$slots, "actions")])) : s("", !0)
|
|
6756
7296
|
], 2));
|
|
6757
7297
|
}
|
|
6758
|
-
}),
|
|
7298
|
+
}), Su = ["aria-label"], Cu = /* @__PURE__ */ f({
|
|
6759
7299
|
__name: "UidBackTop",
|
|
6760
7300
|
props: {
|
|
6761
7301
|
visibleAfter: { default: 200 },
|
|
@@ -6803,11 +7343,11 @@ var Lc = {
|
|
|
6803
7343
|
}, [A(t.$slots, "default", {}, () => [d(e, {
|
|
6804
7344
|
icon: L(re),
|
|
6805
7345
|
size: 20
|
|
6806
|
-
}, null, 8, ["icon"])])], 8,
|
|
7346
|
+
}, null, 8, ["icon"])])], 8, Su), [[W, f.value]])]),
|
|
6807
7347
|
_: 3
|
|
6808
7348
|
}));
|
|
6809
7349
|
}
|
|
6810
|
-
}),
|
|
7350
|
+
}), wu = { class: "uid-affix__content" }, Tu = /* @__PURE__ */ f({
|
|
6811
7351
|
__name: "UidAffix",
|
|
6812
7352
|
props: {
|
|
6813
7353
|
offsetTop: {},
|
|
@@ -6837,9 +7377,9 @@ var Lc = {
|
|
|
6837
7377
|
ref: o,
|
|
6838
7378
|
class: "uid-affix__sentinel",
|
|
6839
7379
|
"aria-hidden": "true"
|
|
6840
|
-
}, null, 512), l("div",
|
|
7380
|
+
}, null, 512), l("div", wu, [A(e.$slots, "default")])], 6));
|
|
6841
7381
|
}
|
|
6842
|
-
}),
|
|
7382
|
+
}), Eu = { class: "uid-watermark" }, Du = { class: "uid-watermark__content" }, Ou = /* @__PURE__ */ f({
|
|
6843
7383
|
__name: "UidWatermark",
|
|
6844
7384
|
props: {
|
|
6845
7385
|
content: { default: "" },
|
|
@@ -6886,24 +7426,24 @@ var Lc = {
|
|
|
6886
7426
|
i();
|
|
6887
7427
|
}), C(() => {
|
|
6888
7428
|
n.value = "";
|
|
6889
|
-
}), (e, t) => (T(), c("div",
|
|
7429
|
+
}), (e, t) => (T(), c("div", Eu, [l("div", {
|
|
6890
7430
|
class: "uid-watermark__overlay",
|
|
6891
7431
|
style: b(o.value),
|
|
6892
7432
|
"aria-hidden": "true"
|
|
6893
|
-
}, null, 4), l("div",
|
|
7433
|
+
}, null, 4), l("div", Du, [A(e.$slots, "default")])]));
|
|
6894
7434
|
}
|
|
6895
|
-
}),
|
|
7435
|
+
}), ku = ["aria-label"], Au = { class: "uid-anchor__list" }, ju = [
|
|
6896
7436
|
"href",
|
|
6897
7437
|
"aria-current",
|
|
6898
7438
|
"onClick"
|
|
6899
|
-
],
|
|
7439
|
+
], Mu = {
|
|
6900
7440
|
key: 0,
|
|
6901
7441
|
class: "uid-anchor__sublist"
|
|
6902
|
-
},
|
|
7442
|
+
}, Nu = [
|
|
6903
7443
|
"href",
|
|
6904
7444
|
"aria-current",
|
|
6905
7445
|
"onClick"
|
|
6906
|
-
],
|
|
7446
|
+
], Pu = /* @__PURE__ */ f({
|
|
6907
7447
|
__name: "UidAnchor",
|
|
6908
7448
|
props: /* @__PURE__ */ g({
|
|
6909
7449
|
items: {},
|
|
@@ -6970,7 +7510,7 @@ var Lc = {
|
|
|
6970
7510
|
return (n, r) => (T(), c("nav", {
|
|
6971
7511
|
class: "uid-anchor",
|
|
6972
7512
|
"aria-label": L(i).anchor.label
|
|
6973
|
-
}, [l("ul",
|
|
7513
|
+
}, [l("ul", Au, [(T(!0), c(t, null, k(e.items, (e) => (T(), c("li", {
|
|
6974
7514
|
key: e.key,
|
|
6975
7515
|
class: "uid-anchor__item"
|
|
6976
7516
|
}, [l("a", {
|
|
@@ -6978,7 +7518,7 @@ var Lc = {
|
|
|
6978
7518
|
class: y(["uid-anchor__link", { "uid-anchor__link--active": o.value === e.key }]),
|
|
6979
7519
|
"aria-current": o.value === e.key ? "location" : void 0,
|
|
6980
7520
|
onClick: (t) => h(t, e)
|
|
6981
|
-
}, P(e.title), 11,
|
|
7521
|
+
}, P(e.title), 11, ju), e.children?.length ? (T(), c("ul", Mu, [(T(!0), c(t, null, k(e.children, (e) => (T(), c("li", {
|
|
6982
7522
|
key: e.key,
|
|
6983
7523
|
class: "uid-anchor__item"
|
|
6984
7524
|
}, [l("a", {
|
|
@@ -6986,18 +7526,18 @@ var Lc = {
|
|
|
6986
7526
|
class: y(["uid-anchor__link", { "uid-anchor__link--active": o.value === e.key }]),
|
|
6987
7527
|
"aria-current": o.value === e.key ? "location" : void 0,
|
|
6988
7528
|
onClick: (t) => h(t, e)
|
|
6989
|
-
}, P(e.title), 11,
|
|
7529
|
+
}, P(e.title), 11, Nu)]))), 128))])) : s("", !0)]))), 128))])], 8, ku));
|
|
6990
7530
|
}
|
|
6991
|
-
}),
|
|
7531
|
+
}), Fu = ["aria-label"], Iu = {
|
|
6992
7532
|
key: 0,
|
|
6993
7533
|
class: "uid-tour__title"
|
|
6994
|
-
},
|
|
7534
|
+
}, Lu = {
|
|
6995
7535
|
key: 1,
|
|
6996
7536
|
class: "uid-tour__description"
|
|
6997
|
-
},
|
|
7537
|
+
}, Ru = { class: "uid-tour__footer" }, zu = {
|
|
6998
7538
|
key: 0,
|
|
6999
7539
|
class: "uid-tour__progress"
|
|
7000
|
-
},
|
|
7540
|
+
}, Bu = { key: 1 }, Vu = { class: "uid-tour__actions" }, Hu = /* @__PURE__ */ f({
|
|
7001
7541
|
__name: "UidTour",
|
|
7002
7542
|
props: /* @__PURE__ */ g({
|
|
7003
7543
|
steps: {},
|
|
@@ -7136,9 +7676,9 @@ var Lc = {
|
|
|
7136
7676
|
class: y(["uid-tour__popover", { "uid-tour__popover--center": N.value }]),
|
|
7137
7677
|
style: b(N.value ? void 0 : M.value)
|
|
7138
7678
|
}, [
|
|
7139
|
-
E.value.title ? (T(), c("h3",
|
|
7140
|
-
E.value.description ? (T(), c("p",
|
|
7141
|
-
l("div",
|
|
7679
|
+
E.value.title ? (T(), c("h3", Iu, P(E.value.title), 1)) : s("", !0),
|
|
7680
|
+
E.value.description ? (T(), c("p", Lu, P(E.value.description), 1)) : s("", !0),
|
|
7681
|
+
l("div", Ru, [e.showProgress ? (T(), c("span", zu, P(g.value + 1) + " / " + P(e.steps.length), 1)) : (T(), c("span", Bu)), l("div", Vu, [
|
|
7142
7682
|
e.showSkip && g.value < e.steps.length - 1 ? (T(), c("button", {
|
|
7143
7683
|
key: 0,
|
|
7144
7684
|
type: "button",
|
|
@@ -7158,21 +7698,21 @@ var Lc = {
|
|
|
7158
7698
|
}, P(g.value === e.steps.length - 1 ? f.value : u.value), 1)
|
|
7159
7699
|
])])
|
|
7160
7700
|
], 6)
|
|
7161
|
-
], 8,
|
|
7701
|
+
], 8, Fu)) : s("", !0)]));
|
|
7162
7702
|
}
|
|
7163
|
-
}),
|
|
7703
|
+
}), Uu = ["for"], Wu = [
|
|
7164
7704
|
"id",
|
|
7165
7705
|
"value",
|
|
7166
7706
|
"placeholder",
|
|
7167
7707
|
"rows",
|
|
7168
7708
|
"disabled"
|
|
7169
|
-
],
|
|
7709
|
+
], Gu = ["onMousedown", "onMouseenter"], Ku = { class: "uid-mention__option-label" }, qu = {
|
|
7170
7710
|
key: 0,
|
|
7171
7711
|
class: "uid-mention__option-hint"
|
|
7172
|
-
},
|
|
7712
|
+
}, Ju = {
|
|
7173
7713
|
key: 0,
|
|
7174
7714
|
class: "uid-mention__empty"
|
|
7175
|
-
},
|
|
7715
|
+
}, Yu = /* @__PURE__ */ f({
|
|
7176
7716
|
inheritAttrs: !1,
|
|
7177
7717
|
__name: "UidMention",
|
|
7178
7718
|
props: /* @__PURE__ */ g({
|
|
@@ -7237,7 +7777,7 @@ var Lc = {
|
|
|
7237
7777
|
key: 0,
|
|
7238
7778
|
for: L(x),
|
|
7239
7779
|
class: "uid-mention__label"
|
|
7240
|
-
}, P(e.label), 9,
|
|
7780
|
+
}, P(e.label), 9, Uu)) : s("", !0),
|
|
7241
7781
|
l("textarea", _(L(u)(), {
|
|
7242
7782
|
id: L(x),
|
|
7243
7783
|
ref_key: "fieldRef",
|
|
@@ -7252,7 +7792,7 @@ var Lc = {
|
|
|
7252
7792
|
onKeydown: H,
|
|
7253
7793
|
onKeyup: F,
|
|
7254
7794
|
onBlur: a[0] ||= (e) => S.value = !1
|
|
7255
|
-
}), null, 16,
|
|
7795
|
+
}), null, 16, Wu),
|
|
7256
7796
|
(T(), o(n, { to: "body" }, [S.value ? (T(), c("div", {
|
|
7257
7797
|
key: 0,
|
|
7258
7798
|
ref_key: "panelRef",
|
|
@@ -7265,30 +7805,30 @@ var Lc = {
|
|
|
7265
7805
|
class: y(["uid-mention__option", { "uid-mention__option--active": t === w.value }]),
|
|
7266
7806
|
onMousedown: X((t) => I(e), ["prevent"]),
|
|
7267
7807
|
onMouseenter: (e) => w.value = t
|
|
7268
|
-
}, [l("span",
|
|
7808
|
+
}, [l("span", Ku, P(e.label), 1), e.hint ? (T(), c("span", qu, P(e.hint), 1)) : s("", !0)], 42, Gu))), 128)), N.value.length === 0 ? (T(), c("div", Ju, P(p.value), 1)) : s("", !0)], 4)) : s("", !0)]))
|
|
7269
7809
|
], 16));
|
|
7270
7810
|
}
|
|
7271
|
-
}),
|
|
7811
|
+
}), Xu = ["for"], Zu = {
|
|
7272
7812
|
key: 0,
|
|
7273
7813
|
class: "uid-tree-select__required",
|
|
7274
7814
|
"aria-hidden": "true"
|
|
7275
|
-
},
|
|
7815
|
+
}, Qu = [
|
|
7276
7816
|
"id",
|
|
7277
7817
|
"aria-expanded",
|
|
7278
7818
|
"aria-controls",
|
|
7279
7819
|
"aria-label",
|
|
7280
7820
|
"aria-disabled",
|
|
7281
7821
|
"aria-invalid"
|
|
7282
|
-
],
|
|
7822
|
+
], $u = { class: "uid-tree-select__value" }, ed = ["aria-label", "onClick"], td = {
|
|
7283
7823
|
key: 0,
|
|
7284
7824
|
class: "uid-tree-select__chip"
|
|
7285
|
-
},
|
|
7825
|
+
}, nd = {
|
|
7286
7826
|
key: 1,
|
|
7287
7827
|
class: "uid-tree-select__placeholder"
|
|
7288
|
-
},
|
|
7828
|
+
}, rd = { key: 0 }, id = {
|
|
7289
7829
|
key: 1,
|
|
7290
7830
|
class: "uid-tree-select__placeholder"
|
|
7291
|
-
},
|
|
7831
|
+
}, ad = { class: "uid-tree-select__suffix" }, od = ["aria-label"], sd = ["id"], cd = /* @__PURE__ */ f({
|
|
7292
7832
|
__name: "UidTreeSelect",
|
|
7293
7833
|
props: /* @__PURE__ */ g({
|
|
7294
7834
|
size: { default: "md" },
|
|
@@ -7417,7 +7957,7 @@ var Lc = {
|
|
|
7417
7957
|
key: 0,
|
|
7418
7958
|
for: L(A),
|
|
7419
7959
|
class: "uid-tree-select__label"
|
|
7420
|
-
}, [u(P(r.label) + " ", 1), r.required ? (T(), c("span",
|
|
7960
|
+
}, [u(P(r.label) + " ", 1), r.required ? (T(), c("span", Zu, "*")) : s("", !0)], 8, Xu)) : s("", !0),
|
|
7421
7961
|
l("div", {
|
|
7422
7962
|
id: L(A),
|
|
7423
7963
|
ref_key: "triggerRef",
|
|
@@ -7433,7 +7973,7 @@ var Lc = {
|
|
|
7433
7973
|
"aria-invalid": M.value ? "true" : void 0,
|
|
7434
7974
|
onClick: Y,
|
|
7435
7975
|
onKeydown: ae
|
|
7436
|
-
}, [l("div",
|
|
7976
|
+
}, [l("div", $u, [R.value ? (T(), c(t, { key: 0 }, [
|
|
7437
7977
|
(T(!0), c(t, null, k(W.value, (e) => (T(), c("span", {
|
|
7438
7978
|
key: e.key,
|
|
7439
7979
|
class: "uid-tree-select__chip"
|
|
@@ -7442,10 +7982,10 @@ var Lc = {
|
|
|
7442
7982
|
class: "uid-tree-select__chip-remove",
|
|
7443
7983
|
"aria-label": L(p).treeSelect.removeTag(e.label),
|
|
7444
7984
|
onClick: X((t) => ie(t, e.key), ["stop"])
|
|
7445
|
-
}, "×", 8,
|
|
7446
|
-
K.value > 0 ? (T(), c("span",
|
|
7447
|
-
U.value.length === 0 ? (T(), c("span",
|
|
7448
|
-
], 64)) : (T(), c(t, { key: 1 }, [U.value.length > 0 ? (T(), c("span",
|
|
7985
|
+
}, "×", 8, ed)]))), 128)),
|
|
7986
|
+
K.value > 0 ? (T(), c("span", td, "+" + P(K.value), 1)) : s("", !0),
|
|
7987
|
+
U.value.length === 0 ? (T(), c("span", nd, P(m.value), 1)) : s("", !0)
|
|
7988
|
+
], 64)) : (T(), c(t, { key: 1 }, [U.value.length > 0 ? (T(), c("span", rd, P(U.value[0].label), 1)) : (T(), c("span", id, P(m.value), 1))], 64))]), l("div", ad, [r.clearable && H.value.length > 0 ? (T(), c("button", {
|
|
7449
7989
|
key: 0,
|
|
7450
7990
|
type: "button",
|
|
7451
7991
|
class: "uid-tree-select__clear",
|
|
@@ -7454,12 +7994,12 @@ var Lc = {
|
|
|
7454
7994
|
}, [d(e, {
|
|
7455
7995
|
icon: L(Ee),
|
|
7456
7996
|
size: 14
|
|
7457
|
-
}, null, 8, ["icon"])], 8,
|
|
7997
|
+
}, null, 8, ["icon"])], 8, od)) : s("", !0), d(e, {
|
|
7458
7998
|
icon: L(se),
|
|
7459
7999
|
size: 16,
|
|
7460
8000
|
class: y(["uid-tree-select__chevron", { "uid-tree-select__chevron--open": v.value }]),
|
|
7461
8001
|
"aria-hidden": "true"
|
|
7462
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
8002
|
+
}, null, 8, ["icon", "class"])])], 40, Qu),
|
|
7463
8003
|
(T(), o(n, { to: "body" }, [v.value ? (T(), c("div", {
|
|
7464
8004
|
key: 0,
|
|
7465
8005
|
id: L(j),
|
|
@@ -7503,19 +8043,19 @@ var Lc = {
|
|
|
7503
8043
|
"selectable",
|
|
7504
8044
|
"default-expand-all",
|
|
7505
8045
|
"show-guides"
|
|
7506
|
-
]))], 12,
|
|
8046
|
+
]))], 12, sd)) : s("", !0)])),
|
|
7507
8047
|
N.value ? (T(), c("p", {
|
|
7508
8048
|
key: 1,
|
|
7509
8049
|
class: y(["uid-tree-select__hint", M.value && "uid-tree-select__hint--error"])
|
|
7510
8050
|
}, P(N.value), 3)) : s("", !0)
|
|
7511
8051
|
], 2));
|
|
7512
8052
|
}
|
|
7513
|
-
}),
|
|
8053
|
+
}), ld = {
|
|
7514
8054
|
key: 0,
|
|
7515
8055
|
class: "uid-notification-badge__dot",
|
|
7516
8056
|
role: "status",
|
|
7517
8057
|
"aria-hidden": "true"
|
|
7518
|
-
},
|
|
8058
|
+
}, ud = ["aria-label"], dd = /* @__PURE__ */ f({
|
|
7519
8059
|
__name: "UidNotificationBadge",
|
|
7520
8060
|
props: {
|
|
7521
8061
|
count: { default: 0 },
|
|
@@ -7542,22 +8082,22 @@ var Lc = {
|
|
|
7542
8082
|
return (t, a) => (T(), c("span", {
|
|
7543
8083
|
class: y(["uid-notification-badge", [`uid-notification-badge--${e.placement}`, e.tone !== "danger" && `uid-notification-badge--${e.tone}`]]),
|
|
7544
8084
|
style: b(i.value)
|
|
7545
|
-
}, [A(t.$slots, "default"), n.value && e.dot ? (T(), c("span",
|
|
8085
|
+
}, [A(t.$slots, "default"), n.value && e.dot ? (T(), c("span", ld)) : n.value ? (T(), c("span", {
|
|
7546
8086
|
key: 1,
|
|
7547
8087
|
class: "uid-notification-badge__count",
|
|
7548
8088
|
role: "status",
|
|
7549
8089
|
"aria-label": `${e.count}`
|
|
7550
|
-
}, P(r.value), 9,
|
|
8090
|
+
}, P(r.value), 9, ud)) : s("", !0)], 6));
|
|
7551
8091
|
}
|
|
7552
|
-
}),
|
|
8092
|
+
}), fd = ["aria-hidden", "aria-label"], pd = ["disabled", "aria-label"], md = ["disabled", "aria-label"], hd = {
|
|
7553
8093
|
key: 2,
|
|
7554
8094
|
class: "uid-carousel__indicators",
|
|
7555
8095
|
role: "tablist"
|
|
7556
|
-
},
|
|
8096
|
+
}, gd = [
|
|
7557
8097
|
"aria-selected",
|
|
7558
8098
|
"aria-label",
|
|
7559
8099
|
"onClick"
|
|
7560
|
-
],
|
|
8100
|
+
], _d = /* @__PURE__ */ f({
|
|
7561
8101
|
__name: "UidCarousel",
|
|
7562
8102
|
props: /* @__PURE__ */ g({
|
|
7563
8103
|
items: {},
|
|
@@ -7649,7 +8189,7 @@ var Lc = {
|
|
|
7649
8189
|
}, [A(r.$slots, "default", {
|
|
7650
8190
|
item: e,
|
|
7651
8191
|
index: t
|
|
7652
|
-
})], 8,
|
|
8192
|
+
})], 8, fd))), 128))], 4),
|
|
7653
8193
|
n.showArrows && _.value > 1 ? (T(), c("button", {
|
|
7654
8194
|
key: 0,
|
|
7655
8195
|
type: "button",
|
|
@@ -7660,7 +8200,7 @@ var Lc = {
|
|
|
7660
8200
|
}, [d(e, {
|
|
7661
8201
|
icon: n.direction === "vertical" ? L(ue) : L(ce),
|
|
7662
8202
|
size: 20
|
|
7663
|
-
}, null, 8, ["icon"])], 8,
|
|
8203
|
+
}, null, 8, ["icon"])], 8, pd)) : s("", !0),
|
|
7664
8204
|
n.showArrows && _.value > 1 ? (T(), c("button", {
|
|
7665
8205
|
key: 1,
|
|
7666
8206
|
type: "button",
|
|
@@ -7671,8 +8211,8 @@ var Lc = {
|
|
|
7671
8211
|
}, [d(e, {
|
|
7672
8212
|
icon: n.direction === "vertical" ? L(se) : L(le),
|
|
7673
8213
|
size: 20
|
|
7674
|
-
}, null, 8, ["icon"])], 8,
|
|
7675
|
-
n.showIndicators && _.value > 1 ? (T(), c("div",
|
|
8214
|
+
}, null, 8, ["icon"])], 8, md)) : s("", !0),
|
|
8215
|
+
n.showIndicators && _.value > 1 ? (T(), c("div", hd, [(T(!0), c(t, null, k(n.items, (e, t) => (T(), c("button", {
|
|
7676
8216
|
key: t,
|
|
7677
8217
|
type: "button",
|
|
7678
8218
|
class: y(["uid-carousel__indicator", { "uid-carousel__indicator--active": t === p.value }]),
|
|
@@ -7680,38 +8220,38 @@ var Lc = {
|
|
|
7680
8220
|
"aria-selected": t === p.value,
|
|
7681
8221
|
"aria-label": L(u).carousel.slide(t + 1),
|
|
7682
8222
|
onClick: (e) => x(t)
|
|
7683
|
-
}, null, 10,
|
|
8223
|
+
}, null, 10, gd))), 128))])) : s("", !0)
|
|
7684
8224
|
], 34));
|
|
7685
8225
|
}
|
|
7686
|
-
}),
|
|
8226
|
+
}), vd = { class: "uid-transfer__panel" }, yd = { class: "uid-transfer__header" }, bd = { class: "uid-transfer__title" }, xd = ["aria-checked"], Sd = { class: "uid-transfer__count" }, Cd = {
|
|
7687
8227
|
key: 0,
|
|
7688
8228
|
class: "uid-transfer__search"
|
|
7689
|
-
},
|
|
8229
|
+
}, wd = ["placeholder"], Td = {
|
|
7690
8230
|
class: "uid-transfer__list",
|
|
7691
8231
|
role: "listbox",
|
|
7692
8232
|
"aria-multiselectable": "true"
|
|
7693
|
-
},
|
|
8233
|
+
}, Ed = [
|
|
7694
8234
|
"aria-selected",
|
|
7695
8235
|
"aria-disabled",
|
|
7696
8236
|
"onClick"
|
|
7697
|
-
],
|
|
8237
|
+
], Dd = { class: "uid-transfer__label" }, Od = {
|
|
7698
8238
|
key: 0,
|
|
7699
8239
|
class: "uid-transfer__empty"
|
|
7700
|
-
},
|
|
8240
|
+
}, kd = { class: "uid-transfer__ops" }, Ad = ["disabled", "aria-label"], jd = ["disabled", "aria-label"], Md = { class: "uid-transfer__panel" }, Nd = { class: "uid-transfer__header" }, Pd = { class: "uid-transfer__title" }, Fd = ["aria-checked"], Id = { class: "uid-transfer__count" }, Ld = {
|
|
7701
8241
|
key: 0,
|
|
7702
8242
|
class: "uid-transfer__search"
|
|
7703
|
-
},
|
|
8243
|
+
}, Rd = ["placeholder"], zd = {
|
|
7704
8244
|
class: "uid-transfer__list",
|
|
7705
8245
|
role: "listbox",
|
|
7706
8246
|
"aria-multiselectable": "true"
|
|
7707
|
-
},
|
|
8247
|
+
}, Bd = [
|
|
7708
8248
|
"aria-selected",
|
|
7709
8249
|
"aria-disabled",
|
|
7710
8250
|
"onClick"
|
|
7711
|
-
],
|
|
8251
|
+
], Vd = { class: "uid-transfer__label" }, Hd = {
|
|
7712
8252
|
key: 0,
|
|
7713
8253
|
class: "uid-transfer__empty"
|
|
7714
|
-
},
|
|
8254
|
+
}, Ud = /* @__PURE__ */ f({
|
|
7715
8255
|
__name: "UidTransfer",
|
|
7716
8256
|
props: /* @__PURE__ */ g({
|
|
7717
8257
|
items: {},
|
|
@@ -7762,8 +8302,8 @@ var Lc = {
|
|
|
7762
8302
|
p.value = e, g.value = /* @__PURE__ */ new Set(), f("change", e);
|
|
7763
8303
|
}
|
|
7764
8304
|
return (r, i) => (T(), c("div", { class: y(["uid-transfer", { "uid-transfer--disabled": n.disabled }]) }, [
|
|
7765
|
-
l("div",
|
|
7766
|
-
l("div",
|
|
8305
|
+
l("div", vd, [
|
|
8306
|
+
l("div", yd, [l("span", bd, [l("span", {
|
|
7767
8307
|
class: y(["uid-transfer__check", { "uid-transfer__check--checked": j.value }]),
|
|
7768
8308
|
role: "checkbox",
|
|
7769
8309
|
"aria-checked": j.value,
|
|
@@ -7774,14 +8314,14 @@ var Lc = {
|
|
|
7774
8314
|
key: 0,
|
|
7775
8315
|
icon: L(Q),
|
|
7776
8316
|
size: 10
|
|
7777
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
7778
|
-
n.searchable ? (T(), c("div",
|
|
8317
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, xd), u(" " + P(b.value[0]), 1)]), l("span", Sd, P(h.value.size) + " / " + P(w.value.length), 1)]),
|
|
8318
|
+
n.searchable ? (T(), c("div", Cd, [J(l("input", {
|
|
7779
8319
|
"onUpdate:modelValue": i[3] ||= (e) => _.value = e,
|
|
7780
8320
|
class: "uid-transfer__search-input",
|
|
7781
8321
|
type: "text",
|
|
7782
8322
|
placeholder: L(m).common.search
|
|
7783
|
-
}, null, 8,
|
|
7784
|
-
l("ul",
|
|
8323
|
+
}, null, 8, wd), [[U, _.value]])])) : s("", !0),
|
|
8324
|
+
l("ul", Td, [(T(!0), c(t, null, k(w.value, (t) => (T(), c("li", {
|
|
7785
8325
|
key: t.key,
|
|
7786
8326
|
class: y(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
7787
8327
|
role: "option",
|
|
@@ -7795,9 +8335,9 @@ var Lc = {
|
|
|
7795
8335
|
key: 0,
|
|
7796
8336
|
icon: L(Q),
|
|
7797
8337
|
size: 10
|
|
7798
|
-
}, null, 8, ["icon"])) : s("", !0)], 2), l("span",
|
|
8338
|
+
}, null, 8, ["icon"])) : s("", !0)], 2), l("span", Dd, P(t.label), 1)], 10, Ed))), 128)), w.value.length === 0 ? (T(), c("li", Od, P(L(m).common.noResults), 1)) : s("", !0)])
|
|
7799
8339
|
]),
|
|
7800
|
-
l("div",
|
|
8340
|
+
l("div", kd, [l("button", {
|
|
7801
8341
|
type: "button",
|
|
7802
8342
|
class: "uid-transfer__op",
|
|
7803
8343
|
disabled: h.value.size === 0 || n.disabled,
|
|
@@ -7806,7 +8346,7 @@ var Lc = {
|
|
|
7806
8346
|
}, [d(e, {
|
|
7807
8347
|
icon: L(le),
|
|
7808
8348
|
size: 16
|
|
7809
|
-
}, null, 8, ["icon"])], 8,
|
|
8349
|
+
}, null, 8, ["icon"])], 8, Ad), l("button", {
|
|
7810
8350
|
type: "button",
|
|
7811
8351
|
class: "uid-transfer__op",
|
|
7812
8352
|
disabled: g.value.size === 0 || n.disabled,
|
|
@@ -7815,9 +8355,9 @@ var Lc = {
|
|
|
7815
8355
|
}, [d(e, {
|
|
7816
8356
|
icon: L(ce),
|
|
7817
8357
|
size: 16
|
|
7818
|
-
}, null, 8, ["icon"])], 8,
|
|
7819
|
-
l("div",
|
|
7820
|
-
l("div",
|
|
8358
|
+
}, null, 8, ["icon"])], 8, jd)]),
|
|
8359
|
+
l("div", Md, [
|
|
8360
|
+
l("div", Nd, [l("span", Pd, [l("span", {
|
|
7821
8361
|
class: y(["uid-transfer__check", { "uid-transfer__check--checked": M.value }]),
|
|
7822
8362
|
role: "checkbox",
|
|
7823
8363
|
"aria-checked": M.value,
|
|
@@ -7828,14 +8368,14 @@ var Lc = {
|
|
|
7828
8368
|
key: 0,
|
|
7829
8369
|
icon: L(Q),
|
|
7830
8370
|
size: 10
|
|
7831
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
7832
|
-
n.searchable ? (T(), c("div",
|
|
8371
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, Fd), u(" " + P(b.value[1]), 1)]), l("span", Id, P(g.value.size) + " / " + P(E.value.length), 1)]),
|
|
8372
|
+
n.searchable ? (T(), c("div", Ld, [J(l("input", {
|
|
7833
8373
|
"onUpdate:modelValue": i[7] ||= (e) => v.value = e,
|
|
7834
8374
|
class: "uid-transfer__search-input",
|
|
7835
8375
|
type: "text",
|
|
7836
8376
|
placeholder: L(m).common.search
|
|
7837
|
-
}, null, 8,
|
|
7838
|
-
l("ul",
|
|
8377
|
+
}, null, 8, Rd), [[U, v.value]])])) : s("", !0),
|
|
8378
|
+
l("ul", zd, [(T(!0), c(t, null, k(E.value, (t) => (T(), c("li", {
|
|
7839
8379
|
key: t.key,
|
|
7840
8380
|
class: y(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
7841
8381
|
role: "option",
|
|
@@ -7849,60 +8389,60 @@ var Lc = {
|
|
|
7849
8389
|
key: 0,
|
|
7850
8390
|
icon: L(Q),
|
|
7851
8391
|
size: 10
|
|
7852
|
-
}, null, 8, ["icon"])) : s("", !0)], 2), l("span",
|
|
8392
|
+
}, null, 8, ["icon"])) : s("", !0)], 2), l("span", Vd, P(t.label), 1)], 10, Bd))), 128)), E.value.length === 0 ? (T(), c("li", Hd, P(L(m).common.noResults), 1)) : s("", !0)])
|
|
7853
8393
|
])
|
|
7854
8394
|
], 2));
|
|
7855
8395
|
}
|
|
7856
|
-
}),
|
|
8396
|
+
}), Wd = {
|
|
7857
8397
|
key: 0,
|
|
7858
8398
|
class: "uid-cascader__label"
|
|
7859
|
-
},
|
|
8399
|
+
}, Gd = [
|
|
7860
8400
|
"aria-expanded",
|
|
7861
8401
|
"aria-disabled",
|
|
7862
8402
|
"aria-label"
|
|
7863
|
-
],
|
|
8403
|
+
], Kd = { class: "uid-cascader__value" }, qd = {
|
|
7864
8404
|
key: 0,
|
|
7865
8405
|
class: "uid-cascader__separator"
|
|
7866
|
-
},
|
|
8406
|
+
}, Jd = {
|
|
7867
8407
|
key: 1,
|
|
7868
8408
|
class: "uid-cascader__placeholder"
|
|
7869
|
-
},
|
|
8409
|
+
}, Yd = { class: "uid-cascader__suffix" }, Xd = ["aria-label"], Zd = {
|
|
7870
8410
|
key: 0,
|
|
7871
8411
|
class: "uid-cascader__search"
|
|
7872
|
-
},
|
|
8412
|
+
}, Qd = [
|
|
7873
8413
|
"aria-expanded",
|
|
7874
8414
|
"aria-controls",
|
|
7875
8415
|
"aria-activedescendant",
|
|
7876
8416
|
"aria-label",
|
|
7877
8417
|
"placeholder"
|
|
7878
|
-
],
|
|
8418
|
+
], $d = ["id"], ef = [
|
|
7879
8419
|
"id",
|
|
7880
8420
|
"aria-selected",
|
|
7881
8421
|
"onMouseenter",
|
|
7882
8422
|
"onClick"
|
|
7883
|
-
],
|
|
8423
|
+
], tf = {
|
|
7884
8424
|
key: 0,
|
|
7885
8425
|
class: "uid-cascader__separator"
|
|
7886
|
-
},
|
|
8426
|
+
}, nf = {
|
|
7887
8427
|
key: 0,
|
|
7888
8428
|
class: "uid-cascader__highlight"
|
|
7889
|
-
},
|
|
8429
|
+
}, rf = {
|
|
7890
8430
|
key: 0,
|
|
7891
8431
|
class: "uid-cascader__empty",
|
|
7892
8432
|
role: "presentation"
|
|
7893
|
-
},
|
|
8433
|
+
}, af = {
|
|
7894
8434
|
key: 2,
|
|
7895
8435
|
class: "uid-cascader__columns"
|
|
7896
|
-
},
|
|
8436
|
+
}, of = [
|
|
7897
8437
|
"aria-haspopup",
|
|
7898
8438
|
"aria-expanded",
|
|
7899
8439
|
"aria-disabled",
|
|
7900
8440
|
"onClick",
|
|
7901
8441
|
"onMouseenter"
|
|
7902
|
-
],
|
|
8442
|
+
], sf = { class: "uid-cascader__option-label" }, cf = {
|
|
7903
8443
|
key: 1,
|
|
7904
8444
|
class: "uid-cascader__hint"
|
|
7905
|
-
},
|
|
8445
|
+
}, lf = /* @__PURE__ */ f({
|
|
7906
8446
|
__name: "UidCascader",
|
|
7907
8447
|
props: /* @__PURE__ */ g({
|
|
7908
8448
|
size: { default: "md" },
|
|
@@ -8081,7 +8621,7 @@ var Lc = {
|
|
|
8081
8621
|
"uid-cascader--disabled": r.disabled
|
|
8082
8622
|
}]])
|
|
8083
8623
|
}, [
|
|
8084
|
-
r.label ? (T(), c("label",
|
|
8624
|
+
r.label ? (T(), c("label", Wd, P(r.label), 1)) : s("", !0),
|
|
8085
8625
|
l("div", {
|
|
8086
8626
|
ref_key: "triggerRef",
|
|
8087
8627
|
ref: E,
|
|
@@ -8094,7 +8634,7 @@ var Lc = {
|
|
|
8094
8634
|
"aria-label": g.value,
|
|
8095
8635
|
onClick: ae,
|
|
8096
8636
|
onKeydown: pe
|
|
8097
|
-
}, [l("div",
|
|
8637
|
+
}, [l("div", Kd, [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", qd, P(r.separator), 1)) : s("", !0)], 64))), 128)) : (T(), c("span", Jd, P(g.value), 1))]), l("div", Yd, [r.clearable && m.value.length > 0 ? (T(), c("button", {
|
|
8098
8638
|
key: 0,
|
|
8099
8639
|
type: "button",
|
|
8100
8640
|
class: "uid-cascader__clear",
|
|
@@ -8103,18 +8643,18 @@ var Lc = {
|
|
|
8103
8643
|
}, [d(e, {
|
|
8104
8644
|
icon: L(Ee),
|
|
8105
8645
|
size: 14
|
|
8106
|
-
}, null, 8, ["icon"])], 8,
|
|
8646
|
+
}, null, 8, ["icon"])], 8, Xd)) : s("", !0), d(e, {
|
|
8107
8647
|
icon: L(se),
|
|
8108
8648
|
size: 16,
|
|
8109
8649
|
class: y(["uid-cascader__chevron", { "uid-cascader__chevron--open": _.value }])
|
|
8110
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
8650
|
+
}, null, 8, ["icon", "class"])])], 40, Gd),
|
|
8111
8651
|
(T(), o(n, { to: "body" }, [_.value ? (T(), c("div", {
|
|
8112
8652
|
key: 0,
|
|
8113
8653
|
ref_key: "panelRef",
|
|
8114
8654
|
ref: D,
|
|
8115
8655
|
class: "uid-cascader__dropdown",
|
|
8116
8656
|
style: b(L(A))
|
|
8117
|
-
}, [r.searchable ? (T(), c("div",
|
|
8657
|
+
}, [r.searchable ? (T(), c("div", Zd, [J(l("input", {
|
|
8118
8658
|
ref_key: "searchRef",
|
|
8119
8659
|
ref: w,
|
|
8120
8660
|
"onUpdate:modelValue": a[0] ||= (e) => M.value = e,
|
|
@@ -8129,7 +8669,7 @@ var Lc = {
|
|
|
8129
8669
|
"aria-label": r.searchPlaceholder ?? L(h).common.search,
|
|
8130
8670
|
placeholder: r.searchPlaceholder ?? L(h).common.search,
|
|
8131
8671
|
onKeydown: Y
|
|
8132
|
-
}, null, 40,
|
|
8672
|
+
}, null, 40, Qd), [[U, M.value]])])) : s("", !0), H.value ? (T(), c("ul", {
|
|
8133
8673
|
key: 1,
|
|
8134
8674
|
id: L(F),
|
|
8135
8675
|
class: "uid-cascader__results",
|
|
@@ -8143,7 +8683,7 @@ var Lc = {
|
|
|
8143
8683
|
onMousedown: a[1] ||= X(() => {}, ["prevent"]),
|
|
8144
8684
|
onMouseenter: (e) => N.value = n,
|
|
8145
8685
|
onClick: (t) => q(e)
|
|
8146
|
-
}, [(T(!0), c(t, null, k(e.path, (e, n) => (T(), c(t, { key: n }, [n > 0 ? (T(), c("span",
|
|
8686
|
+
}, [(T(!0), c(t, null, k(e.path, (e, n) => (T(), c(t, { key: n }, [n > 0 ? (T(), c("span", tf, 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", nf, P(e.text), 1)) : (T(), c(t, { key: 1 }, [u(P(e.text), 1)], 64))], 64))), 128))])], 64))), 128))], 42, ef))), 128)), V.value.length === 0 ? (T(), c("li", rf, P(L(h).common.noResults), 1)) : s("", !0)], 8, $d)) : (T(), c("div", af, [(T(!0), c(t, null, k(ee.value, (n, i) => (T(), c("div", {
|
|
8147
8687
|
key: i,
|
|
8148
8688
|
class: "uid-cascader__column"
|
|
8149
8689
|
}, [(T(!0), c(t, null, k(n, (t) => (T(), c("button", {
|
|
@@ -8159,27 +8699,27 @@ var Lc = {
|
|
|
8159
8699
|
"aria-disabled": t.disabled ? "true" : void 0,
|
|
8160
8700
|
onClick: (e) => ce(t, i),
|
|
8161
8701
|
onMouseenter: (e) => ue(t, i)
|
|
8162
|
-
}, [l("span",
|
|
8702
|
+
}, [l("span", sf, P(t.label), 1), t.children?.length ? (T(), o(e, {
|
|
8163
8703
|
key: 0,
|
|
8164
8704
|
icon: L(le),
|
|
8165
8705
|
size: 14,
|
|
8166
8706
|
class: "uid-cascader__option-arrow",
|
|
8167
8707
|
"aria-hidden": "true"
|
|
8168
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
8169
|
-
r.hint ? (T(), c("p",
|
|
8708
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, of))), 128))]))), 128))]))], 4)) : s("", !0)])),
|
|
8709
|
+
r.hint ? (T(), c("p", cf, P(r.hint), 1)) : s("", !0)
|
|
8170
8710
|
], 2));
|
|
8171
8711
|
}
|
|
8172
|
-
}),
|
|
8712
|
+
}), uf = { class: "uid-calendar__header" }, df = { class: "uid-calendar__title" }, ff = { class: "uid-calendar__nav" }, pf = ["aria-label"], mf = ["aria-label"], hf = { class: "uid-calendar__weekdays" }, gf = { class: "uid-calendar__grid" }, _f = [
|
|
8173
8713
|
"tabindex",
|
|
8174
8714
|
"aria-current",
|
|
8175
8715
|
"aria-selected",
|
|
8176
8716
|
"aria-label",
|
|
8177
8717
|
"onClick",
|
|
8178
8718
|
"onKeydown"
|
|
8179
|
-
],
|
|
8719
|
+
], vf = { class: "uid-calendar__date" }, yf = { class: "uid-calendar__events" }, bf = ["title", "onClick"], xf = { class: "uid-calendar__event-label" }, Sf = {
|
|
8180
8720
|
key: 0,
|
|
8181
8721
|
class: "uid-calendar__more"
|
|
8182
|
-
},
|
|
8722
|
+
}, Cf = /* @__PURE__ */ f({
|
|
8183
8723
|
__name: "UidCalendar",
|
|
8184
8724
|
props: /* @__PURE__ */ g({
|
|
8185
8725
|
events: { default: () => [] },
|
|
@@ -8266,7 +8806,7 @@ var Lc = {
|
|
|
8266
8806
|
e.stopPropagation(), o("event-click", t);
|
|
8267
8807
|
}
|
|
8268
8808
|
return (r, i) => (T(), c("div", { class: y(["uid-calendar", { "uid-calendar--compact": n.compact }]) }, [
|
|
8269
|
-
l("div",
|
|
8809
|
+
l("div", uf, [l("span", df, P(x.value), 1), l("div", ff, [
|
|
8270
8810
|
l("button", {
|
|
8271
8811
|
type: "button",
|
|
8272
8812
|
class: "uid-calendar__btn uid-calendar__btn--icon",
|
|
@@ -8275,7 +8815,7 @@ var Lc = {
|
|
|
8275
8815
|
}, [d(e, {
|
|
8276
8816
|
icon: L(ce),
|
|
8277
8817
|
size: 14
|
|
8278
|
-
}, null, 8, ["icon"])], 8,
|
|
8818
|
+
}, null, 8, ["icon"])], 8, pf),
|
|
8279
8819
|
l("button", {
|
|
8280
8820
|
type: "button",
|
|
8281
8821
|
class: "uid-calendar__btn",
|
|
@@ -8289,13 +8829,13 @@ var Lc = {
|
|
|
8289
8829
|
}, [d(e, {
|
|
8290
8830
|
icon: L(le),
|
|
8291
8831
|
size: 14
|
|
8292
|
-
}, null, 8, ["icon"])], 8,
|
|
8832
|
+
}, null, 8, ["icon"])], 8, mf)
|
|
8293
8833
|
])]),
|
|
8294
|
-
l("div",
|
|
8834
|
+
l("div", hf, [(T(!0), c(t, null, k(L(f).datePicker.weekdaysShort, (e) => (T(), c("span", {
|
|
8295
8835
|
key: e,
|
|
8296
8836
|
class: "uid-calendar__weekday"
|
|
8297
8837
|
}, P(e), 1))), 128))]),
|
|
8298
|
-
l("div",
|
|
8838
|
+
l("div", gf, [(T(!0), c(t, null, k(w.value, (e) => (T(), c("div", {
|
|
8299
8839
|
key: e.iso,
|
|
8300
8840
|
class: y(["uid-calendar__day", {
|
|
8301
8841
|
"uid-calendar__day--other": !e.current,
|
|
@@ -8310,30 +8850,30 @@ var Lc = {
|
|
|
8310
8850
|
"aria-label": e.iso,
|
|
8311
8851
|
onClick: (t) => M(e),
|
|
8312
8852
|
onKeydown: [Y(X((t) => M(e), ["prevent"]), ["enter"]), Y(X((t) => M(e), ["prevent"]), ["space"])]
|
|
8313
|
-
}, [l("span",
|
|
8853
|
+
}, [l("span", vf, P(e.date.getDate()), 1), l("div", yf, [(T(!0), c(t, null, k(e.events.slice(0, n.maxEventsPerDay), (t, n) => (T(), c("button", {
|
|
8314
8854
|
key: t.id ?? `${e.iso}-${n}`,
|
|
8315
8855
|
type: "button",
|
|
8316
8856
|
class: "uid-calendar__event",
|
|
8317
8857
|
style: b(t.color ? { "--uid-event-color": t.color } : void 0),
|
|
8318
8858
|
title: t.title,
|
|
8319
8859
|
onClick: (e) => N(e, t)
|
|
8320
|
-
}, [l("span",
|
|
8860
|
+
}, [l("span", xf, P(t.title), 1)], 12, bf))), 128)), e.events.length > n.maxEventsPerDay ? (T(), c("span", Sf, "+" + P(e.events.length - n.maxEventsPerDay), 1)) : s("", !0)])], 42, _f))), 128))])
|
|
8321
8861
|
], 2));
|
|
8322
8862
|
}
|
|
8323
|
-
}),
|
|
8863
|
+
}), wf = ["aria-label"], Tf = [
|
|
8324
8864
|
"viewBox",
|
|
8325
8865
|
"width",
|
|
8326
8866
|
"height"
|
|
8327
|
-
],
|
|
8867
|
+
], Ef = [
|
|
8328
8868
|
"x2",
|
|
8329
8869
|
"y1",
|
|
8330
8870
|
"y2"
|
|
8331
|
-
],
|
|
8871
|
+
], Df = [
|
|
8332
8872
|
"x",
|
|
8333
8873
|
"y",
|
|
8334
8874
|
"width",
|
|
8335
8875
|
"height"
|
|
8336
|
-
],
|
|
8876
|
+
], Of = ["d"], kf = ["d"], Af = ["cx", "cy"], jf = ["cx", "cy"], Mf = 2, Nf = /* @__PURE__ */ f({
|
|
8337
8877
|
__name: "UidSparkline",
|
|
8338
8878
|
props: {
|
|
8339
8879
|
data: {},
|
|
@@ -8376,11 +8916,11 @@ var Lc = {
|
|
|
8376
8916
|
};
|
|
8377
8917
|
});
|
|
8378
8918
|
function o(e, t) {
|
|
8379
|
-
return t <= 1 ? n.width / 2 :
|
|
8919
|
+
return t <= 1 ? n.width / 2 : Mf + e / (t - 1) * (n.width - Mf * 2);
|
|
8380
8920
|
}
|
|
8381
8921
|
function u(e) {
|
|
8382
8922
|
let t = i.value, r = (e - t.min) / (t.max - t.min);
|
|
8383
|
-
return n.height -
|
|
8923
|
+
return n.height - Mf - r * (n.height - Mf * 2);
|
|
8384
8924
|
}
|
|
8385
8925
|
let d = a(() => n.data.map((e, t) => ({
|
|
8386
8926
|
x: o(t, n.data.length),
|
|
@@ -8399,14 +8939,14 @@ var Lc = {
|
|
|
8399
8939
|
}), p = a(() => {
|
|
8400
8940
|
let e = d.value;
|
|
8401
8941
|
if (e.length === 0) return "";
|
|
8402
|
-
let t = n.height -
|
|
8942
|
+
let t = n.height - Mf;
|
|
8403
8943
|
return `${f.value} L ${e[e.length - 1].x.toFixed(2)} ${t.toFixed(2)} L ${e[0].x.toFixed(2)} ${t.toFixed(2)} Z`;
|
|
8404
8944
|
}), m = a(() => {
|
|
8405
8945
|
let e = d.value, t = e.length;
|
|
8406
8946
|
if (t === 0) return [];
|
|
8407
|
-
let r = n.width -
|
|
8947
|
+
let r = n.width - Mf * 2, i = Math.max(1, r / t * .7), a = u(0);
|
|
8408
8948
|
return e.map((e, n) => {
|
|
8409
|
-
let o =
|
|
8949
|
+
let o = Mf + (n + .5) / t * r - i / 2, s = e.v < 0, c = s ? a : e.y, l = s ? e.y : a;
|
|
8410
8950
|
return {
|
|
8411
8951
|
x: o,
|
|
8412
8952
|
y: c,
|
|
@@ -8443,59 +8983,59 @@ var Lc = {
|
|
|
8443
8983
|
x2: e.width,
|
|
8444
8984
|
y1: h.value,
|
|
8445
8985
|
y2: h.value
|
|
8446
|
-
}, null, 8,
|
|
8986
|
+
}, null, 8, Ef)) : s("", !0), e.type === "bar" ? (T(!0), c(t, { key: 1 }, k(m.value, (e, t) => (T(), c("rect", {
|
|
8447
8987
|
key: t,
|
|
8448
8988
|
class: y(["uid-sparkline__bar", { "uid-sparkline__bar--negative": e.negative }]),
|
|
8449
8989
|
x: e.x,
|
|
8450
8990
|
y: e.y,
|
|
8451
8991
|
width: e.width,
|
|
8452
8992
|
height: e.height
|
|
8453
|
-
}, null, 10,
|
|
8993
|
+
}, null, 10, Df))), 128)) : (T(), c(t, { key: 2 }, [
|
|
8454
8994
|
e.type === "area" ? (T(), c("path", {
|
|
8455
8995
|
key: 0,
|
|
8456
8996
|
class: "uid-sparkline__area",
|
|
8457
8997
|
d: p.value
|
|
8458
|
-
}, null, 8,
|
|
8998
|
+
}, null, 8, Of)) : s("", !0),
|
|
8459
8999
|
l("path", {
|
|
8460
9000
|
class: "uid-sparkline__line",
|
|
8461
9001
|
d: f.value
|
|
8462
|
-
}, null, 8,
|
|
9002
|
+
}, null, 8, kf),
|
|
8463
9003
|
e.showDots ? (T(!0), c(t, { key: 1 }, k(d.value, (e, t) => (T(), c("circle", {
|
|
8464
9004
|
key: t,
|
|
8465
9005
|
class: "uid-sparkline__dot",
|
|
8466
9006
|
cx: e.x,
|
|
8467
9007
|
cy: e.y,
|
|
8468
9008
|
r: "2.5"
|
|
8469
|
-
}, null, 8,
|
|
9009
|
+
}, null, 8, Af))), 128)) : s("", !0),
|
|
8470
9010
|
e.showLast && _.value && !e.showDots ? (T(), c("circle", {
|
|
8471
9011
|
key: 2,
|
|
8472
9012
|
class: "uid-sparkline__dot uid-sparkline__dot--last",
|
|
8473
9013
|
cx: _.value.x,
|
|
8474
9014
|
cy: _.value.y,
|
|
8475
9015
|
r: "2.5"
|
|
8476
|
-
}, null, 8,
|
|
8477
|
-
], 64))], 8,
|
|
9016
|
+
}, null, 8, jf)) : s("", !0)
|
|
9017
|
+
], 64))], 8, Tf))], 12, wf));
|
|
8478
9018
|
}
|
|
8479
|
-
}),
|
|
9019
|
+
}), Pf = ["aria-valuemax", "aria-valuenow"], Ff = [
|
|
8480
9020
|
"width",
|
|
8481
9021
|
"height",
|
|
8482
9022
|
"viewBox"
|
|
8483
|
-
],
|
|
9023
|
+
], If = [
|
|
8484
9024
|
"cx",
|
|
8485
9025
|
"cy",
|
|
8486
9026
|
"r",
|
|
8487
9027
|
"stroke-width"
|
|
8488
|
-
],
|
|
9028
|
+
], Lf = [
|
|
8489
9029
|
"cx",
|
|
8490
9030
|
"cy",
|
|
8491
9031
|
"r",
|
|
8492
9032
|
"stroke-width",
|
|
8493
9033
|
"stroke-dasharray",
|
|
8494
9034
|
"stroke-dashoffset"
|
|
8495
|
-
],
|
|
9035
|
+
], Rf = {
|
|
8496
9036
|
key: 0,
|
|
8497
9037
|
class: "uid-progress-ring__label"
|
|
8498
|
-
},
|
|
9038
|
+
}, zf = /* @__PURE__ */ f({
|
|
8499
9039
|
__name: "UidProgressRing",
|
|
8500
9040
|
props: {
|
|
8501
9041
|
value: { default: 0 },
|
|
@@ -8540,7 +9080,7 @@ var Lc = {
|
|
|
8540
9080
|
cy: i.value,
|
|
8541
9081
|
r: n.value,
|
|
8542
9082
|
"stroke-width": e.strokeWidth
|
|
8543
|
-
}, null, 8,
|
|
9083
|
+
}, null, 8, If), l("circle", {
|
|
8544
9084
|
class: "uid-progress-ring__progress",
|
|
8545
9085
|
cx: i.value,
|
|
8546
9086
|
cy: i.value,
|
|
@@ -8548,50 +9088,50 @@ var Lc = {
|
|
|
8548
9088
|
"stroke-width": e.strokeWidth,
|
|
8549
9089
|
"stroke-dasharray": r.value,
|
|
8550
9090
|
"stroke-dashoffset": f.value
|
|
8551
|
-
}, null, 8,
|
|
9091
|
+
}, null, 8, Lf)], 8, Ff)), e.showLabel || t.$slots.default ? (T(), c("div", Rf, [A(t.$slots, "default", {}, () => [u(P(p.value), 1)])])) : s("", !0)], 14, Pf));
|
|
8552
9092
|
}
|
|
8553
|
-
}),
|
|
9093
|
+
}), Bf = [
|
|
8554
9094
|
"aria-valuemin",
|
|
8555
9095
|
"aria-valuemax",
|
|
8556
9096
|
"aria-valuenow",
|
|
8557
9097
|
"aria-label"
|
|
8558
|
-
],
|
|
9098
|
+
], Vf = [
|
|
8559
9099
|
"width",
|
|
8560
9100
|
"height",
|
|
8561
9101
|
"viewBox"
|
|
8562
|
-
],
|
|
9102
|
+
], Hf = ["d", "stroke-width"], Uf = [
|
|
8563
9103
|
"d",
|
|
8564
9104
|
"stroke",
|
|
8565
9105
|
"stroke-width",
|
|
8566
9106
|
"stroke-dasharray",
|
|
8567
9107
|
"stroke-dashoffset"
|
|
8568
|
-
],
|
|
9108
|
+
], Wf = [
|
|
8569
9109
|
"d",
|
|
8570
9110
|
"stroke-width",
|
|
8571
9111
|
"stroke-dasharray",
|
|
8572
9112
|
"stroke-dashoffset"
|
|
8573
|
-
],
|
|
9113
|
+
], Gf = { key: 2 }, Kf = [
|
|
8574
9114
|
"x1",
|
|
8575
9115
|
"y1",
|
|
8576
9116
|
"x2",
|
|
8577
9117
|
"y2",
|
|
8578
9118
|
"transform"
|
|
8579
|
-
],
|
|
9119
|
+
], qf = ["cx", "cy"], Jf = {
|
|
8580
9120
|
key: 0,
|
|
8581
9121
|
class: "uid-gauge__content"
|
|
8582
|
-
},
|
|
9122
|
+
}, Yf = {
|
|
8583
9123
|
key: 0,
|
|
8584
9124
|
class: "uid-gauge__value"
|
|
8585
|
-
},
|
|
9125
|
+
}, Xf = {
|
|
8586
9126
|
key: 0,
|
|
8587
9127
|
class: "uid-gauge__suffix"
|
|
8588
|
-
},
|
|
9128
|
+
}, Zf = {
|
|
8589
9129
|
key: 1,
|
|
8590
9130
|
class: "uid-gauge__label"
|
|
8591
|
-
},
|
|
9131
|
+
}, Qf = {
|
|
8592
9132
|
key: 1,
|
|
8593
9133
|
class: "uid-gauge__limits"
|
|
8594
|
-
},
|
|
9134
|
+
}, $f = 4, ep = /* @__PURE__ */ f({
|
|
8595
9135
|
__name: "UidGauge",
|
|
8596
9136
|
props: {
|
|
8597
9137
|
value: { default: 0 },
|
|
@@ -8621,7 +9161,7 @@ var Lc = {
|
|
|
8621
9161
|
locale: { default: void 0 }
|
|
8622
9162
|
},
|
|
8623
9163
|
setup(e) {
|
|
8624
|
-
let n = e, r = $(), i = a(() => n.locale ?? r.value.code), o = a(() => (n.size - n.strokeWidth) / 2 -
|
|
9164
|
+
let n = e, r = $(), i = a(() => n.locale ?? r.value.code), o = a(() => (n.size - n.strokeWidth) / 2 - $f), u = a(() => n.size / 2), d = a(() => n.size / 2), f = a(() => n.size / 2 + n.strokeWidth / 2 + $f), p = a(() => Math.PI * o.value), m = a(() => Math.max(n.min, Math.min(n.max, n.value))), h = a(() => {
|
|
8625
9165
|
let e = n.max - n.min;
|
|
8626
9166
|
return e <= 0 ? 0 : (m.value - n.min) / e;
|
|
8627
9167
|
}), g = a(() => {
|
|
@@ -8659,7 +9199,7 @@ var Lc = {
|
|
|
8659
9199
|
class: "uid-gauge__track",
|
|
8660
9200
|
d: g.value,
|
|
8661
9201
|
"stroke-width": e.strokeWidth
|
|
8662
|
-
}, null, 8,
|
|
9202
|
+
}, null, 8, Hf),
|
|
8663
9203
|
e.ranges && e.ranges.length ? (T(!0), c(t, { key: 0 }, k(e.ranges, (t, n) => (T(), c("path", {
|
|
8664
9204
|
key: n,
|
|
8665
9205
|
class: "uid-gauge__range",
|
|
@@ -8668,7 +9208,7 @@ var Lc = {
|
|
|
8668
9208
|
"stroke-width": e.strokeWidth,
|
|
8669
9209
|
"stroke-dasharray": v(t).dasharray,
|
|
8670
9210
|
"stroke-dashoffset": v(t).dashoffset
|
|
8671
|
-
}, null, 8,
|
|
9211
|
+
}, null, 8, Uf))), 128)) : s("", !0),
|
|
8672
9212
|
!e.ranges || e.ranges.length === 0 ? (T(), c("path", {
|
|
8673
9213
|
key: 1,
|
|
8674
9214
|
class: "uid-gauge__progress",
|
|
@@ -8676,43 +9216,43 @@ var Lc = {
|
|
|
8676
9216
|
"stroke-width": e.strokeWidth,
|
|
8677
9217
|
"stroke-dasharray": p.value,
|
|
8678
9218
|
"stroke-dashoffset": _.value
|
|
8679
|
-
}, null, 8,
|
|
8680
|
-
e.showNeedle ? (T(), c("g",
|
|
9219
|
+
}, null, 8, Wf)) : s("", !0),
|
|
9220
|
+
e.showNeedle ? (T(), c("g", Gf, [l("line", {
|
|
8681
9221
|
class: "uid-gauge__needle",
|
|
8682
9222
|
x1: u.value,
|
|
8683
9223
|
y1: d.value,
|
|
8684
9224
|
x2: u.value + o.value - e.strokeWidth,
|
|
8685
9225
|
y2: d.value,
|
|
8686
9226
|
transform: `rotate(${x.value} ${u.value} ${d.value})`
|
|
8687
|
-
}, null, 8,
|
|
9227
|
+
}, null, 8, Kf), l("circle", {
|
|
8688
9228
|
class: "uid-gauge__needle-pivot",
|
|
8689
9229
|
cx: u.value,
|
|
8690
9230
|
cy: d.value,
|
|
8691
9231
|
r: "4"
|
|
8692
|
-
}, null, 8,
|
|
8693
|
-
], 8,
|
|
8694
|
-
e.showValue || e.label ? (T(), c("div",
|
|
8695
|
-
e.showLimits ? (T(), c("div",
|
|
8696
|
-
], 14,
|
|
9232
|
+
}, null, 8, qf)])) : s("", !0)
|
|
9233
|
+
], 8, Vf)),
|
|
9234
|
+
e.showValue || e.label ? (T(), c("div", Jf, [e.showValue ? (T(), c("div", Yf, [l("span", null, P(S.value), 1), e.suffix ? (T(), c("span", Xf, P(e.suffix), 1)) : s("", !0)])) : s("", !0), e.label ? (T(), c("div", Zf, P(e.label), 1)) : s("", !0)])) : s("", !0),
|
|
9235
|
+
e.showLimits ? (T(), c("div", Qf, [l("span", null, P(e.min), 1), l("span", null, P(e.max), 1)])) : s("", !0)
|
|
9236
|
+
], 14, Bf));
|
|
8697
9237
|
}
|
|
8698
|
-
}),
|
|
9238
|
+
}), tp = ["aria-label"], np = { class: "uid-heatmap__chart" }, rp = {
|
|
8699
9239
|
key: 0,
|
|
8700
9240
|
class: "uid-heatmap__weekdays",
|
|
8701
9241
|
"aria-hidden": "true"
|
|
8702
|
-
},
|
|
9242
|
+
}, ip = { class: "uid-heatmap__grid-wrapper" }, ap = [
|
|
8703
9243
|
"width",
|
|
8704
9244
|
"height",
|
|
8705
9245
|
"viewBox"
|
|
8706
|
-
],
|
|
9246
|
+
], op = [
|
|
8707
9247
|
"x",
|
|
8708
9248
|
"y",
|
|
8709
9249
|
"width",
|
|
8710
9250
|
"height",
|
|
8711
9251
|
"fill"
|
|
8712
|
-
],
|
|
9252
|
+
], sp = {
|
|
8713
9253
|
key: 0,
|
|
8714
9254
|
class: "uid-heatmap__legend"
|
|
8715
|
-
},
|
|
9255
|
+
}, cp = /* @__PURE__ */ f({
|
|
8716
9256
|
__name: "UidHeatmap",
|
|
8717
9257
|
props: {
|
|
8718
9258
|
data: {},
|
|
@@ -8818,10 +9358,10 @@ var Lc = {
|
|
|
8818
9358
|
style: b(w.value),
|
|
8819
9359
|
role: "img",
|
|
8820
9360
|
"aria-label": A.value
|
|
8821
|
-
}, [l("div",
|
|
9361
|
+
}, [l("div", np, [e.showWeekdays ? (T(), c("div", rp, [(T(!0), c(t, null, k(L(r).datePicker.weekdaysShort, (e, t) => (T(), c("span", {
|
|
8822
9362
|
key: e,
|
|
8823
9363
|
class: y(["uid-heatmap__weekday", { "uid-heatmap__weekday--visible": t === 0 || t === 2 || t === 4 }])
|
|
8824
|
-
}, P(e), 3))), 128))])) : s("", !0), l("div",
|
|
9364
|
+
}, P(e), 3))), 128))])) : s("", !0), l("div", ip, [e.showMonths ? (T(), c("div", {
|
|
8825
9365
|
key: 0,
|
|
8826
9366
|
class: "uid-heatmap__months",
|
|
8827
9367
|
style: b({ width: `${S.value}px` }),
|
|
@@ -8844,7 +9384,7 @@ var Lc = {
|
|
|
8844
9384
|
width: e.cellSize,
|
|
8845
9385
|
height: e.cellSize,
|
|
8846
9386
|
fill: v(t.level)
|
|
8847
|
-
}, [l("title", null, P(D(t)), 1)], 8,
|
|
9387
|
+
}, [l("title", null, P(D(t)), 1)], 8, op))), 128))], 8, ap))])]), e.showLegend ? (T(), c("div", sp, [
|
|
8848
9388
|
l("span", null, P(L(r).heatmap.less), 1),
|
|
8849
9389
|
(T(!0), c(t, null, k(E.value, (e) => (T(), c("span", {
|
|
8850
9390
|
key: e,
|
|
@@ -8852,9 +9392,9 @@ var Lc = {
|
|
|
8852
9392
|
style: b(e === 0 ? void 0 : { background: v(e) })
|
|
8853
9393
|
}, null, 4))), 128)),
|
|
8854
9394
|
l("span", null, P(L(r).heatmap.more), 1)
|
|
8855
|
-
])) : s("", !0)], 12,
|
|
9395
|
+
])) : s("", !0)], 12, tp));
|
|
8856
9396
|
}
|
|
8857
|
-
}),
|
|
9397
|
+
}), lp = {
|
|
8858
9398
|
default: ["color-mix(in srgb, var(--uid-heatmap-matrix-color) 14%, var(--uid-color-bg))", "var(--uid-heatmap-matrix-color)"],
|
|
8859
9399
|
viridis: [
|
|
8860
9400
|
"#440154",
|
|
@@ -8934,42 +9474,42 @@ var Lc = {
|
|
|
8934
9474
|
"#67000d"
|
|
8935
9475
|
]
|
|
8936
9476
|
};
|
|
8937
|
-
function
|
|
8938
|
-
return Object.prototype.hasOwnProperty.call(
|
|
9477
|
+
function up(e) {
|
|
9478
|
+
return Object.prototype.hasOwnProperty.call(lp, e);
|
|
8939
9479
|
}
|
|
8940
|
-
function
|
|
9480
|
+
function dp(e) {
|
|
8941
9481
|
if (Array.isArray(e)) {
|
|
8942
9482
|
let t = e.filter((e) => typeof e == "string" && e.trim() !== "");
|
|
8943
|
-
return t.length > 0 ? t : [...
|
|
9483
|
+
return t.length > 0 ? t : [...lp.default];
|
|
8944
9484
|
}
|
|
8945
9485
|
let t = typeof e == "string" ? e.trim() : "";
|
|
8946
|
-
if (t === "") return [...
|
|
9486
|
+
if (t === "") return [...lp.default];
|
|
8947
9487
|
let n = t.toLowerCase();
|
|
8948
|
-
return
|
|
9488
|
+
return up(n) ? [...lp[n]] : fp(t) ? [`color-mix(in srgb, ${t} 14%, var(--uid-color-bg))`, t] : [...lp.default];
|
|
8949
9489
|
}
|
|
8950
|
-
function
|
|
9490
|
+
function fp(e) {
|
|
8951
9491
|
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);
|
|
8952
9492
|
}
|
|
8953
|
-
function
|
|
9493
|
+
function pp(e, t) {
|
|
8954
9494
|
if (e.length === 0) return "transparent";
|
|
8955
9495
|
if (e.length === 1) return e[0];
|
|
8956
9496
|
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;
|
|
8957
9497
|
return i <= 5e-4 ? e[r] : i >= .9995 ? e[r + 1] : `color-mix(in srgb, ${e[r + 1]} ${(i * 100).toFixed(1)}%, ${e[r]})`;
|
|
8958
9498
|
}
|
|
8959
|
-
function
|
|
9499
|
+
function mp(e) {
|
|
8960
9500
|
return e.length === 1 ? e[0] : `linear-gradient(to right, ${e.join(", ")})`;
|
|
8961
9501
|
}
|
|
8962
9502
|
//#endregion
|
|
8963
9503
|
//#region src/components/Heatmap/UidHeatmapMatrix.vue?vue&type=script&setup=true&lang.ts
|
|
8964
|
-
var
|
|
9504
|
+
var hp = { class: "uid-heatmap-matrix__scroll" }, gp = [
|
|
8965
9505
|
"aria-label",
|
|
8966
9506
|
"aria-rowcount",
|
|
8967
9507
|
"aria-colcount"
|
|
8968
|
-
],
|
|
9508
|
+
], _p = {
|
|
8969
9509
|
class: "uid-heatmap-matrix__row uid-heatmap-matrix__row--head",
|
|
8970
9510
|
role: "row",
|
|
8971
9511
|
"aria-rowindex": "1"
|
|
8972
|
-
},
|
|
9512
|
+
}, vp = ["aria-colindex", "aria-label"], yp = ["title"], bp = ["aria-rowindex"], xp = ["title"], Sp = [
|
|
8973
9513
|
"aria-colindex",
|
|
8974
9514
|
"aria-label",
|
|
8975
9515
|
"tabindex",
|
|
@@ -8977,14 +9517,14 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
8977
9517
|
"data-c",
|
|
8978
9518
|
"onMouseenter",
|
|
8979
9519
|
"onFocus"
|
|
8980
|
-
],
|
|
9520
|
+
], Cp = { class: "uid-heatmap-matrix__tooltip-label" }, wp = { class: "uid-heatmap-matrix__tooltip-value" }, Tp = {
|
|
8981
9521
|
key: 1,
|
|
8982
9522
|
class: "uid-heatmap-matrix__legend",
|
|
8983
9523
|
"aria-hidden": "true"
|
|
8984
|
-
},
|
|
9524
|
+
}, Ep = { class: "uid-heatmap-matrix__legend-value" }, Dp = { class: "uid-heatmap-matrix__legend-value" }, Op = {
|
|
8985
9525
|
key: 0,
|
|
8986
9526
|
class: "uid-heatmap-matrix__legend-empty"
|
|
8987
|
-
},
|
|
9527
|
+
}, kp = 11, Ap = 96, jp = 18, Mp = /* @__PURE__ */ f({
|
|
8988
9528
|
__name: "UidHeatmapMatrix",
|
|
8989
9529
|
props: {
|
|
8990
9530
|
rows: {},
|
|
@@ -9020,13 +9560,13 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9020
9560
|
min: typeof n.min == "number" ? n.min : e,
|
|
9021
9561
|
max: typeof n.max == "number" ? n.max : t
|
|
9022
9562
|
};
|
|
9023
|
-
}), C = a(() => g.value.some((e) => e.some((e) => e === null))), w = a(() =>
|
|
9563
|
+
}), C = a(() => g.value.some((e) => e.some((e) => e === null))), w = a(() => dp(n.colorScale));
|
|
9024
9564
|
function E(e) {
|
|
9025
9565
|
let { min: t, max: n } = _.value;
|
|
9026
9566
|
return n <= t ? +(e > t) : (e - t) / (n - t);
|
|
9027
9567
|
}
|
|
9028
9568
|
function D(e) {
|
|
9029
|
-
if (e !== null) return
|
|
9569
|
+
if (e !== null) return pp(w.value, E(e));
|
|
9030
9570
|
}
|
|
9031
9571
|
function j(e) {
|
|
9032
9572
|
return n.formatValue ? n.formatValue(e) : new Intl.NumberFormat(r.value.code).format(e);
|
|
@@ -9048,7 +9588,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9048
9588
|
return `${n.row} × ${n.col}: ${M(n.value)}`;
|
|
9049
9589
|
}
|
|
9050
9590
|
function I(e) {
|
|
9051
|
-
return Math.min(
|
|
9591
|
+
return Math.min(Ap, e.length * kp * .6);
|
|
9052
9592
|
}
|
|
9053
9593
|
let R = a(() => n.cols.reduce((e, t) => Math.max(e, I(t)), 0)), z = a(() => {
|
|
9054
9594
|
let e = n.cols.length, t = p.value, r = n.colLabels;
|
|
@@ -9057,7 +9597,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9057
9597
|
step: 1,
|
|
9058
9598
|
reserve: 0
|
|
9059
9599
|
};
|
|
9060
|
-
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 +
|
|
9600
|
+
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 + kp) * 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(jp / u));
|
|
9061
9601
|
return r === "horizontal" ? {
|
|
9062
9602
|
mode: "horizontal",
|
|
9063
9603
|
step: c,
|
|
@@ -9085,7 +9625,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9085
9625
|
"--uid-heatmap-matrix-min-cell": `${n.minCellWidth}px`,
|
|
9086
9626
|
"--uid-heatmap-matrix-gap": `${n.gap}px`,
|
|
9087
9627
|
"--uid-heatmap-matrix-header-height": `${V.value}px`
|
|
9088
|
-
})), U = a(() => z.value.reserve > 0 ? { paddingInlineEnd: `${z.value.reserve}px` } : void 0), W = a(() =>
|
|
9628
|
+
})), U = a(() => z.value.reserve > 0 ? { paddingInlineEnd: `${z.value.reserve}px` } : void 0), W = a(() => mp(w.value)), K = a(() => n.ariaLabel ?? r.value.heatmap.matrixSummary(n.rows.length, n.cols.length)), q = O({
|
|
9089
9629
|
r: 0,
|
|
9090
9630
|
c: 0
|
|
9091
9631
|
}), 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({});
|
|
@@ -9183,7 +9723,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9183
9723
|
class: y(["uid-heatmap-matrix", `uid-heatmap-matrix--labels-${z.value.mode}`]),
|
|
9184
9724
|
style: b(H.value)
|
|
9185
9725
|
}, [
|
|
9186
|
-
l("div",
|
|
9726
|
+
l("div", hp, [l("div", {
|
|
9187
9727
|
class: "uid-heatmap-matrix__grid",
|
|
9188
9728
|
role: "grid",
|
|
9189
9729
|
style: b(U.value),
|
|
@@ -9192,7 +9732,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9192
9732
|
"aria-colcount": e.cols.length + 1,
|
|
9193
9733
|
onMouseleave: re,
|
|
9194
9734
|
onKeydown: oe
|
|
9195
|
-
}, [l("div",
|
|
9735
|
+
}, [l("div", _p, [i[0] ||= l("div", {
|
|
9196
9736
|
class: "uid-heatmap-matrix__corner",
|
|
9197
9737
|
role: "columnheader",
|
|
9198
9738
|
"aria-colindex": "1"
|
|
@@ -9206,7 +9746,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9206
9746
|
class: y(["uid-heatmap-matrix__col-label", { "uid-heatmap-matrix__col-label--hidden": !B(t) }]),
|
|
9207
9747
|
title: e,
|
|
9208
9748
|
"aria-hidden": "true"
|
|
9209
|
-
}, P(e), 11,
|
|
9749
|
+
}, P(e), 11, yp)], 8, vp))), 128))]), (T(!0), c(t, null, k(e.rows, (n, r) => (T(), c("div", {
|
|
9210
9750
|
key: `r-${r}`,
|
|
9211
9751
|
class: "uid-heatmap-matrix__row",
|
|
9212
9752
|
role: "row",
|
|
@@ -9219,7 +9759,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9219
9759
|
role: "rowheader",
|
|
9220
9760
|
"aria-colindex": "1",
|
|
9221
9761
|
title: n
|
|
9222
|
-
}, P(n), 9,
|
|
9762
|
+
}, P(n), 9, xp), (T(!0), c(t, null, k(e.cols, (e, t) => (T(), c("div", {
|
|
9223
9763
|
key: `c-${r}-${t}`,
|
|
9224
9764
|
class: y(["uid-heatmap-matrix__cell", {
|
|
9225
9765
|
"uid-heatmap-matrix__cell--empty": g.value[r][t] === null,
|
|
@@ -9235,7 +9775,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9235
9775
|
onMouseenter: (e) => ne(r, t),
|
|
9236
9776
|
onFocus: (e) => ie(r, t),
|
|
9237
9777
|
onBlur: ae
|
|
9238
|
-
}, null, 46,
|
|
9778
|
+
}, null, 46, Sp))), 128))], 8, bp))), 128))], 44, gp)]),
|
|
9239
9779
|
Z.value ? (T(), c("div", {
|
|
9240
9780
|
key: 0,
|
|
9241
9781
|
ref_key: "tooltipRef",
|
|
@@ -9246,25 +9786,25 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9246
9786
|
}, [A(n.$slots, "tooltip", {
|
|
9247
9787
|
cell: Z.value,
|
|
9248
9788
|
formatted: M(Z.value.value)
|
|
9249
|
-
}, () => [l("span",
|
|
9250
|
-
e.showLegend && e.rows.length > 0 && e.cols.length > 0 ? (T(), c("div",
|
|
9251
|
-
l("span",
|
|
9789
|
+
}, () => [l("span", Cp, P(Z.value.row) + " × " + P(Z.value.col), 1), l("strong", wp, P(M(Z.value.value)), 1)])], 4)) : s("", !0),
|
|
9790
|
+
e.showLegend && e.rows.length > 0 && e.cols.length > 0 ? (T(), c("div", Tp, [
|
|
9791
|
+
l("span", Ep, P(j(_.value.min)), 1),
|
|
9252
9792
|
l("span", {
|
|
9253
9793
|
class: "uid-heatmap-matrix__legend-bar",
|
|
9254
9794
|
style: b({ background: W.value })
|
|
9255
9795
|
}, null, 4),
|
|
9256
|
-
l("span",
|
|
9257
|
-
C.value ? (T(), c("span",
|
|
9796
|
+
l("span", Dp, P(j(_.value.max)), 1),
|
|
9797
|
+
C.value ? (T(), c("span", Op, [i[1] ||= l("span", { class: "uid-heatmap-matrix__legend-swatch" }, null, -1), u(" " + P(L(r).heatmap.noData), 1)])) : s("", !0)
|
|
9258
9798
|
])) : s("", !0)
|
|
9259
9799
|
], 6));
|
|
9260
9800
|
}
|
|
9261
|
-
}),
|
|
9801
|
+
}), Np = ["aria-label"], Pp = ["aria-current"], Fp = { class: "uid-stepper__indicator" }, Ip = {
|
|
9262
9802
|
key: 1,
|
|
9263
9803
|
"aria-hidden": "true"
|
|
9264
|
-
},
|
|
9804
|
+
}, Lp = { class: "uid-stepper__content" }, Rp = { class: "uid-stepper__label" }, zp = {
|
|
9265
9805
|
key: 0,
|
|
9266
9806
|
class: "uid-stepper__description"
|
|
9267
|
-
},
|
|
9807
|
+
}, Bp = /* @__PURE__ */ f({
|
|
9268
9808
|
__name: "UidStepper",
|
|
9269
9809
|
props: {
|
|
9270
9810
|
steps: {},
|
|
@@ -9293,20 +9833,20 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9293
9833
|
class: y(["uid-stepper__target", { "uid-stepper__target--selectable": d(r) }]),
|
|
9294
9834
|
onClick: (e) => d(r) && u("select", r)
|
|
9295
9835
|
}, {
|
|
9296
|
-
default: q(() => [l("div",
|
|
9836
|
+
default: q(() => [l("div", Fp, [f(r, n.current) === "completed" ? (T(), o(e, {
|
|
9297
9837
|
key: 0,
|
|
9298
9838
|
icon: L(Q),
|
|
9299
9839
|
size: 16,
|
|
9300
9840
|
"aria-hidden": "true"
|
|
9301
|
-
}, null, 8, ["icon"])) : (T(), c("span",
|
|
9841
|
+
}, null, 8, ["icon"])) : (T(), c("span", Ip, P(r + 1), 1))]), l("div", Lp, [l("span", Rp, P(t.label), 1), t.description ? (T(), c("span", zp, P(t.description), 1)) : s("", !0)])]),
|
|
9302
9842
|
_: 2
|
|
9303
9843
|
}, 1032, [
|
|
9304
9844
|
"type",
|
|
9305
9845
|
"class",
|
|
9306
9846
|
"onClick"
|
|
9307
|
-
]))], 10,
|
|
9847
|
+
]))], 10, Pp))), 128))], 10, Np));
|
|
9308
9848
|
}
|
|
9309
|
-
}),
|
|
9849
|
+
}), Vp = /* @__PURE__ */ f({
|
|
9310
9850
|
__name: "UidStack",
|
|
9311
9851
|
props: {
|
|
9312
9852
|
direction: { default: "column" },
|
|
@@ -9352,7 +9892,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9352
9892
|
_: 3
|
|
9353
9893
|
}, 8, ["class", "style"]));
|
|
9354
9894
|
}
|
|
9355
|
-
}),
|
|
9895
|
+
}), Hp = /* @__PURE__ */ f({
|
|
9356
9896
|
__name: "UidGrid",
|
|
9357
9897
|
props: {
|
|
9358
9898
|
cols: { default: 12 },
|
|
@@ -9387,7 +9927,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9387
9927
|
_: 3
|
|
9388
9928
|
}, 8, ["style"]));
|
|
9389
9929
|
}
|
|
9390
|
-
}),
|
|
9930
|
+
}), Up = /* @__PURE__ */ f({
|
|
9391
9931
|
__name: "UidContainer",
|
|
9392
9932
|
props: {
|
|
9393
9933
|
size: { default: "lg" },
|
|
@@ -9403,7 +9943,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9403
9943
|
_: 3
|
|
9404
9944
|
}, 8, ["class"]));
|
|
9405
9945
|
}
|
|
9406
|
-
}),
|
|
9946
|
+
}), Wp = Symbol("uid-wizard"), Gp = { class: "uid-wizard" }, Kp = /* @__PURE__ */ f({
|
|
9407
9947
|
__name: "UidWizard",
|
|
9408
9948
|
props: /* @__PURE__ */ g({ steps: {} }, {
|
|
9409
9949
|
modelValue: { default: 0 },
|
|
@@ -9428,7 +9968,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9428
9968
|
function m(e) {
|
|
9429
9969
|
i.delete(e);
|
|
9430
9970
|
}
|
|
9431
|
-
return E(
|
|
9971
|
+
return E(Wp, {
|
|
9432
9972
|
current: r,
|
|
9433
9973
|
steps: o,
|
|
9434
9974
|
isFirst: s,
|
|
@@ -9445,9 +9985,9 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9445
9985
|
goTo: f,
|
|
9446
9986
|
isFirst: s,
|
|
9447
9987
|
isLast: l
|
|
9448
|
-
}), (e, t) => (T(), c("div",
|
|
9988
|
+
}), (e, t) => (T(), c("div", Gp, [A(e.$slots, "default")]));
|
|
9449
9989
|
}
|
|
9450
|
-
}),
|
|
9990
|
+
}), qp = ["aria-label"], Jp = /* @__PURE__ */ f({
|
|
9451
9991
|
__name: "UidWizardStep",
|
|
9452
9992
|
props: {
|
|
9453
9993
|
index: {},
|
|
@@ -9457,7 +9997,7 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9457
9997
|
}
|
|
9458
9998
|
},
|
|
9459
9999
|
setup(e) {
|
|
9460
|
-
let t = e, n = $(), r = h(
|
|
10000
|
+
let t = e, n = $(), r = h(Wp);
|
|
9461
10001
|
if (!r) throw Error("UidWizardStep must be inside UidWizard");
|
|
9462
10002
|
G(() => t.validate, (e, n) => {
|
|
9463
10003
|
n !== void 0 && r.unregisterValidator(t.index), e !== void 0 && r.registerValidator(t.index, e);
|
|
@@ -9468,18 +10008,18 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9468
10008
|
class: "uid-wizard-step",
|
|
9469
10009
|
role: "tabpanel",
|
|
9470
10010
|
"aria-label": L(n).wizard.step(e.index + 1)
|
|
9471
|
-
}, [A(t.$slots, "default")], 8,
|
|
10011
|
+
}, [A(t.$slots, "default")], 8, qp)) : s("", !0);
|
|
9472
10012
|
}
|
|
9473
|
-
}),
|
|
10013
|
+
}), Yp = { class: "uid-pattern-header__inner" }, Xp = {
|
|
9474
10014
|
key: 0,
|
|
9475
10015
|
class: "uid-pattern-header__logo"
|
|
9476
|
-
},
|
|
10016
|
+
}, Zp = ["aria-label"], Qp = {
|
|
9477
10017
|
key: 2,
|
|
9478
10018
|
class: "uid-pattern-header__actions"
|
|
9479
|
-
},
|
|
10019
|
+
}, $p = {
|
|
9480
10020
|
key: 3,
|
|
9481
10021
|
class: "uid-pattern-header__mobile"
|
|
9482
|
-
},
|
|
10022
|
+
}, em = /* @__PURE__ */ f({
|
|
9483
10023
|
__name: "UidHeader",
|
|
9484
10024
|
props: {
|
|
9485
10025
|
sticky: {
|
|
@@ -9501,39 +10041,39 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9501
10041
|
"uid-pattern-header--sticky": e.sticky,
|
|
9502
10042
|
"uid-pattern-header--bordered": e.bordered,
|
|
9503
10043
|
"uid-pattern-header--transparent": e.transparent
|
|
9504
|
-
}]) }, [l("div",
|
|
9505
|
-
n.$slots.logo ? (T(), c("div",
|
|
10044
|
+
}]) }, [l("div", Yp, [
|
|
10045
|
+
n.$slots.logo ? (T(), c("div", Xp, [A(n.$slots, "logo")])) : s("", !0),
|
|
9506
10046
|
n.$slots.nav ? (T(), c("nav", {
|
|
9507
10047
|
key: 1,
|
|
9508
10048
|
class: "uid-pattern-header__nav",
|
|
9509
10049
|
"aria-label": L(t).header.nav
|
|
9510
|
-
}, [A(n.$slots, "nav")], 8,
|
|
9511
|
-
n.$slots.actions ? (T(), c("div",
|
|
9512
|
-
n.$slots.mobile ? (T(), c("div",
|
|
10050
|
+
}, [A(n.$slots, "nav")], 8, Zp)) : s("", !0),
|
|
10051
|
+
n.$slots.actions ? (T(), c("div", Qp, [A(n.$slots, "actions")])) : s("", !0),
|
|
10052
|
+
n.$slots.mobile ? (T(), c("div", $p, [A(n.$slots, "mobile")])) : s("", !0)
|
|
9513
10053
|
])], 2));
|
|
9514
10054
|
}
|
|
9515
|
-
}),
|
|
10055
|
+
}), tm = { class: "uid-pattern-footer__inner" }, nm = {
|
|
9516
10056
|
key: 0,
|
|
9517
10057
|
class: "uid-pattern-footer__columns"
|
|
9518
|
-
},
|
|
10058
|
+
}, rm = {
|
|
9519
10059
|
key: 1,
|
|
9520
10060
|
class: "uid-pattern-footer__content"
|
|
9521
|
-
},
|
|
10061
|
+
}, im = {
|
|
9522
10062
|
key: 2,
|
|
9523
10063
|
class: "uid-pattern-footer__bottom"
|
|
9524
|
-
},
|
|
10064
|
+
}, am = /* @__PURE__ */ f({
|
|
9525
10065
|
__name: "UidFooter",
|
|
9526
10066
|
props: { variant: { default: "minimal" } },
|
|
9527
10067
|
setup(e) {
|
|
9528
|
-
return (t, n) => (T(), c("footer", { class: y(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div",
|
|
10068
|
+
return (t, n) => (T(), c("footer", { class: y(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div", tm, [t.$slots.columns ? (T(), c("div", nm, [A(t.$slots, "columns")])) : t.$slots.default ? (T(), c("div", rm, [A(t.$slots, "default")])) : s("", !0), t.$slots.bottom ? (T(), c("div", im, [A(t.$slots, "bottom")])) : s("", !0)])], 2));
|
|
9529
10069
|
}
|
|
9530
|
-
}),
|
|
10070
|
+
}), om = ["aria-label"], sm = {
|
|
9531
10071
|
key: 0,
|
|
9532
10072
|
class: "uid-pattern-sidebar__header"
|
|
9533
|
-
},
|
|
10073
|
+
}, cm = ["aria-label"], lm = {
|
|
9534
10074
|
key: 1,
|
|
9535
10075
|
class: "uid-pattern-sidebar__footer"
|
|
9536
|
-
},
|
|
10076
|
+
}, um = /* @__PURE__ */ f({
|
|
9537
10077
|
__name: "UidSidebar",
|
|
9538
10078
|
props: {
|
|
9539
10079
|
collapsed: {
|
|
@@ -9550,22 +10090,22 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9550
10090
|
style: b(e.width && !e.collapsed ? { "--uid-sidebar-width": e.width } : void 0),
|
|
9551
10091
|
"aria-label": L(t).sidebar.label
|
|
9552
10092
|
}, [
|
|
9553
|
-
n.$slots.header ? (T(), c("div",
|
|
10093
|
+
n.$slots.header ? (T(), c("div", sm, [A(n.$slots, "header")])) : s("", !0),
|
|
9554
10094
|
l("nav", {
|
|
9555
10095
|
class: "uid-pattern-sidebar__nav",
|
|
9556
10096
|
"aria-label": L(t).sidebar.nav
|
|
9557
|
-
}, [A(n.$slots, "nav")], 8,
|
|
9558
|
-
n.$slots.footer ? (T(), c("div",
|
|
9559
|
-
], 14,
|
|
10097
|
+
}, [A(n.$slots, "nav")], 8, cm),
|
|
10098
|
+
n.$slots.footer ? (T(), c("div", lm, [A(n.$slots, "footer")])) : s("", !0)
|
|
10099
|
+
], 14, om));
|
|
9560
10100
|
}
|
|
9561
|
-
}),
|
|
10101
|
+
}), dm = {
|
|
9562
10102
|
key: 0,
|
|
9563
10103
|
class: "uid-sidebar-item__icon",
|
|
9564
10104
|
"aria-hidden": "true"
|
|
9565
|
-
},
|
|
10105
|
+
}, fm = { class: "uid-sidebar-item__label" }, pm = {
|
|
9566
10106
|
key: 1,
|
|
9567
10107
|
class: "uid-sidebar-item__badge"
|
|
9568
|
-
},
|
|
10108
|
+
}, mm = /* @__PURE__ */ f({
|
|
9569
10109
|
__name: "UidSidebarItem",
|
|
9570
10110
|
props: {
|
|
9571
10111
|
href: { default: void 0 },
|
|
@@ -9592,9 +10132,9 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9592
10132
|
tabindex: e.disabled ? -1 : void 0
|
|
9593
10133
|
}), {
|
|
9594
10134
|
default: q(() => [
|
|
9595
|
-
t.$slots.icon ? (T(), c("span",
|
|
9596
|
-
l("span",
|
|
9597
|
-
e.badge === void 0 ? s("", !0) : (T(), c("span",
|
|
10135
|
+
t.$slots.icon ? (T(), c("span", dm, [A(t.$slots, "icon")])) : s("", !0),
|
|
10136
|
+
l("span", fm, [A(t.$slots, "default")]),
|
|
10137
|
+
e.badge === void 0 ? s("", !0) : (T(), c("span", pm, P(e.badge), 1))
|
|
9598
10138
|
]),
|
|
9599
10139
|
_: 3
|
|
9600
10140
|
}, 16, [
|
|
@@ -9604,10 +10144,10 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9604
10144
|
"tabindex"
|
|
9605
10145
|
]));
|
|
9606
10146
|
}
|
|
9607
|
-
}),
|
|
10147
|
+
}), hm = { class: "uid-sidebar-group" }, gm = {
|
|
9608
10148
|
key: 0,
|
|
9609
10149
|
class: "uid-sidebar-group__title"
|
|
9610
|
-
},
|
|
10150
|
+
}, _m = /* @__PURE__ */ f({
|
|
9611
10151
|
__name: "UidSidebarGroup",
|
|
9612
10152
|
props: {
|
|
9613
10153
|
title: { default: void 0 },
|
|
@@ -9617,29 +10157,29 @@ var Tf = { class: "uid-heatmap-matrix__scroll" }, Ef = [
|
|
|
9617
10157
|
}
|
|
9618
10158
|
},
|
|
9619
10159
|
setup(e) {
|
|
9620
|
-
return (t, n) => (T(), c("div",
|
|
10160
|
+
return (t, n) => (T(), c("div", hm, [e.title ? (T(), c("p", gm, P(e.title), 1)) : s("", !0), A(t.$slots, "default")]));
|
|
9621
10161
|
}
|
|
9622
|
-
}),
|
|
10162
|
+
}), vm = {}, ym = {
|
|
9623
10163
|
class: "uid-sidebar-divider",
|
|
9624
10164
|
role: "separator",
|
|
9625
10165
|
"aria-hidden": "true"
|
|
9626
10166
|
};
|
|
9627
|
-
function
|
|
9628
|
-
return T(), c("div",
|
|
10167
|
+
function bm(e, t) {
|
|
10168
|
+
return T(), c("div", ym);
|
|
9629
10169
|
}
|
|
9630
|
-
var
|
|
10170
|
+
var xm = /* @__PURE__ */ yr(vm, [["render", bm]]), Sm = { class: "uid-pattern-page-header" }, Cm = {
|
|
9631
10171
|
key: 0,
|
|
9632
10172
|
class: "uid-pattern-page-header__breadcrumb"
|
|
9633
|
-
},
|
|
10173
|
+
}, wm = { class: "uid-pattern-page-header__row" }, Tm = { class: "uid-pattern-page-header__heading" }, Em = ["aria-label"], Dm = { class: "uid-pattern-page-header__title" }, Om = {
|
|
9634
10174
|
key: 0,
|
|
9635
10175
|
class: "uid-pattern-page-header__description"
|
|
9636
|
-
},
|
|
10176
|
+
}, km = {
|
|
9637
10177
|
key: 0,
|
|
9638
10178
|
class: "uid-pattern-page-header__actions"
|
|
9639
|
-
},
|
|
10179
|
+
}, Am = {
|
|
9640
10180
|
key: 1,
|
|
9641
10181
|
class: "uid-pattern-page-header__tabs"
|
|
9642
|
-
},
|
|
10182
|
+
}, jm = /* @__PURE__ */ f({
|
|
9643
10183
|
__name: "UidPageHeader",
|
|
9644
10184
|
props: {
|
|
9645
10185
|
title: { default: void 0 },
|
|
@@ -9652,9 +10192,9 @@ var jp = /* @__PURE__ */ yr(Op, [["render", Ap]]), Mp = { class: "uid-pattern-pa
|
|
|
9652
10192
|
emits: ["back"],
|
|
9653
10193
|
setup(t, { emit: n }) {
|
|
9654
10194
|
let r = $(), i = n;
|
|
9655
|
-
return (n, a) => (T(), c("div",
|
|
9656
|
-
n.$slots.breadcrumb ? (T(), c("div",
|
|
9657
|
-
l("div",
|
|
10195
|
+
return (n, a) => (T(), c("div", Sm, [
|
|
10196
|
+
n.$slots.breadcrumb ? (T(), c("div", Cm, [A(n.$slots, "breadcrumb")])) : s("", !0),
|
|
10197
|
+
l("div", wm, [l("div", Tm, [t.back ? (T(), c("button", {
|
|
9658
10198
|
key: 0,
|
|
9659
10199
|
type: "button",
|
|
9660
10200
|
class: "uid-pattern-page-header__back",
|
|
@@ -9663,17 +10203,17 @@ var jp = /* @__PURE__ */ yr(Op, [["render", Ap]]), Mp = { class: "uid-pattern-pa
|
|
|
9663
10203
|
}, [d(e, {
|
|
9664
10204
|
icon: L(ne),
|
|
9665
10205
|
size: 20
|
|
9666
|
-
}, null, 8, ["icon"])], 8,
|
|
9667
|
-
n.$slots.tabs ? (T(), c("div",
|
|
10206
|
+
}, null, 8, ["icon"])], 8, Em)) : s("", !0), l("div", null, [l("h1", Dm, [A(n.$slots, "title", {}, () => [u(P(t.title), 1)])]), t.description || n.$slots.description ? (T(), c("p", Om, [A(n.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0)])]), n.$slots.actions ? (T(), c("div", km, [A(n.$slots, "actions")])) : s("", !0)]),
|
|
10207
|
+
n.$slots.tabs ? (T(), c("div", Am, [A(n.$slots, "tabs")])) : s("", !0)
|
|
9668
10208
|
]));
|
|
9669
10209
|
}
|
|
9670
|
-
}),
|
|
10210
|
+
}), Mm = { class: "uid-pattern-empty-state" }, Nm = { class: "uid-pattern-empty-state__illustration" }, Pm = { class: "uid-pattern-empty-state__content" }, Fm = { class: "uid-pattern-empty-state__title" }, Im = {
|
|
9671
10211
|
key: 0,
|
|
9672
10212
|
class: "uid-pattern-empty-state__description"
|
|
9673
|
-
},
|
|
10213
|
+
}, Lm = {
|
|
9674
10214
|
key: 0,
|
|
9675
10215
|
class: "uid-pattern-empty-state__actions"
|
|
9676
|
-
},
|
|
10216
|
+
}, Rm = /* @__PURE__ */ f({
|
|
9677
10217
|
__name: "UidEmptyState",
|
|
9678
10218
|
props: {
|
|
9679
10219
|
title: { default: void 0 },
|
|
@@ -9681,25 +10221,25 @@ var jp = /* @__PURE__ */ yr(Op, [["render", Ap]]), Mp = { class: "uid-pattern-pa
|
|
|
9681
10221
|
},
|
|
9682
10222
|
setup(t) {
|
|
9683
10223
|
let n = $();
|
|
9684
|
-
return (r, i) => (T(), c("div",
|
|
9685
|
-
l("div",
|
|
10224
|
+
return (r, i) => (T(), c("div", Mm, [
|
|
10225
|
+
l("div", Nm, [A(r.$slots, "illustration", {}, () => [d(e, {
|
|
9686
10226
|
icon: L(ge),
|
|
9687
10227
|
size: 48
|
|
9688
10228
|
}, null, 8, ["icon"])])]),
|
|
9689
|
-
l("div",
|
|
9690
|
-
r.$slots.actions ? (T(), c("div",
|
|
10229
|
+
l("div", Pm, [l("h2", Fm, [A(r.$slots, "title", {}, () => [u(P(t.title ?? L(n).emptyState.title), 1)])]), t.description || r.$slots.description ? (T(), c("p", Im, [A(r.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0)]),
|
|
10230
|
+
r.$slots.actions ? (T(), c("div", Lm, [A(r.$slots, "actions")])) : s("", !0)
|
|
9691
10231
|
]));
|
|
9692
10232
|
}
|
|
9693
|
-
}),
|
|
10233
|
+
}), zm = { class: "uid-pattern-error-state" }, Bm = { class: "uid-pattern-error-state__illustration" }, Vm = {
|
|
9694
10234
|
key: 0,
|
|
9695
10235
|
class: "uid-pattern-error-state__code"
|
|
9696
|
-
},
|
|
10236
|
+
}, Hm = { class: "uid-pattern-error-state__content" }, Um = { class: "uid-pattern-error-state__title" }, Wm = {
|
|
9697
10237
|
key: 0,
|
|
9698
10238
|
class: "uid-pattern-error-state__description"
|
|
9699
|
-
},
|
|
10239
|
+
}, Gm = {
|
|
9700
10240
|
key: 1,
|
|
9701
10241
|
class: "uid-pattern-error-state__actions"
|
|
9702
|
-
},
|
|
10242
|
+
}, Km = /* @__PURE__ */ f({
|
|
9703
10243
|
__name: "UidErrorState",
|
|
9704
10244
|
props: {
|
|
9705
10245
|
code: { default: void 0 },
|
|
@@ -9724,23 +10264,23 @@ var jp = /* @__PURE__ */ yr(Op, [["render", Ap]]), Mp = { class: "uid-pattern-pa
|
|
|
9724
10264
|
description: r.value.errorState.offlineDescription
|
|
9725
10265
|
}
|
|
9726
10266
|
})), 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);
|
|
9727
|
-
return (n, r) => (T(), c("div",
|
|
9728
|
-
l("div",
|
|
10267
|
+
return (n, r) => (T(), c("div", zm, [
|
|
10268
|
+
l("div", Bm, [A(n.$slots, "illustration", {}, () => [d(e, {
|
|
9729
10269
|
icon: f.value,
|
|
9730
10270
|
size: 48
|
|
9731
10271
|
}, null, 8, ["icon"])])]),
|
|
9732
|
-
t.code ? (T(), c("div",
|
|
9733
|
-
l("div",
|
|
9734
|
-
n.$slots.actions ? (T(), c("div",
|
|
10272
|
+
t.code ? (T(), c("div", Vm, P(t.code), 1)) : s("", !0),
|
|
10273
|
+
l("div", Hm, [l("h2", Um, [A(n.$slots, "title", {}, () => [u(P(p.value), 1)])]), m.value || n.$slots.description ? (T(), c("p", Wm, [A(n.$slots, "description", {}, () => [u(P(m.value), 1)])])) : s("", !0)]),
|
|
10274
|
+
n.$slots.actions ? (T(), c("div", Gm, [A(n.$slots, "actions")])) : s("", !0)
|
|
9735
10275
|
]));
|
|
9736
10276
|
}
|
|
9737
|
-
}),
|
|
10277
|
+
}), qm = {
|
|
9738
10278
|
key: 0,
|
|
9739
10279
|
class: "uid-layout-simple__header"
|
|
9740
|
-
},
|
|
10280
|
+
}, Jm = { class: "uid-layout-simple__content" }, Ym = {
|
|
9741
10281
|
key: 1,
|
|
9742
10282
|
class: "uid-layout-simple__footer"
|
|
9743
|
-
},
|
|
10283
|
+
}, Xm = /* @__PURE__ */ f({
|
|
9744
10284
|
__name: "UidSimpleLayout",
|
|
9745
10285
|
props: { full: {
|
|
9746
10286
|
type: Boolean,
|
|
@@ -9748,26 +10288,26 @@ var jp = /* @__PURE__ */ yr(Op, [["render", Ap]]), Mp = { class: "uid-pattern-pa
|
|
|
9748
10288
|
} },
|
|
9749
10289
|
setup(e) {
|
|
9750
10290
|
return (t, n) => (T(), c("div", { class: y(["uid-layout-simple", { "uid-layout-simple--full": e.full }]) }, [
|
|
9751
|
-
t.$slots.header ? (T(), c("div",
|
|
9752
|
-
l("main",
|
|
9753
|
-
t.$slots.footer ? (T(), c("div",
|
|
10291
|
+
t.$slots.header ? (T(), c("div", qm, [A(t.$slots, "header")])) : s("", !0),
|
|
10292
|
+
l("main", Jm, [A(t.$slots, "default")]),
|
|
10293
|
+
t.$slots.footer ? (T(), c("div", Ym, [A(t.$slots, "footer")])) : s("", !0)
|
|
9754
10294
|
], 2));
|
|
9755
10295
|
}
|
|
9756
|
-
}),
|
|
9757
|
-
function
|
|
9758
|
-
let e = h(
|
|
10296
|
+
}), Zm = Symbol("uid-sidebar-layout");
|
|
10297
|
+
function Qm() {
|
|
10298
|
+
let e = h(Zm);
|
|
9759
10299
|
if (!e) throw Error("useSidebar() must be used inside UidSidebarLayout");
|
|
9760
10300
|
return e;
|
|
9761
10301
|
}
|
|
9762
10302
|
//#endregion
|
|
9763
10303
|
//#region src/layouts/Sidebar/UidSidebarLayout.vue?vue&type=script&setup=true&lang.ts
|
|
9764
|
-
var
|
|
10304
|
+
var $m = { class: "uid-layout-sidebar__sidebar" }, eh = { class: "uid-layout-sidebar__main" }, th = {
|
|
9765
10305
|
key: 0,
|
|
9766
10306
|
class: "uid-layout-sidebar__main-header"
|
|
9767
|
-
},
|
|
10307
|
+
}, nh = { class: "uid-layout-sidebar__main-content" }, rh = {
|
|
9768
10308
|
key: 1,
|
|
9769
10309
|
class: "uid-layout-sidebar__main-footer"
|
|
9770
|
-
},
|
|
10310
|
+
}, ih = /* @__PURE__ */ f({
|
|
9771
10311
|
__name: "UidSidebarLayout",
|
|
9772
10312
|
props: /* @__PURE__ */ g({ sidebarWidth: { default: void 0 } }, {
|
|
9773
10313
|
modelValue: {
|
|
@@ -9785,7 +10325,7 @@ var lm = { class: "uid-layout-sidebar__sidebar" }, um = { class: "uid-layout-sid
|
|
|
9785
10325
|
}, o = () => {
|
|
9786
10326
|
n.value = !0;
|
|
9787
10327
|
};
|
|
9788
|
-
E(
|
|
10328
|
+
E(Zm, {
|
|
9789
10329
|
collapsed: n,
|
|
9790
10330
|
toggle: r,
|
|
9791
10331
|
open: i,
|
|
@@ -9796,58 +10336,58 @@ var lm = { class: "uid-layout-sidebar__sidebar" }, um = { class: "uid-layout-sid
|
|
|
9796
10336
|
class: y(["uid-layout-sidebar", { "uid-layout-sidebar--collapsed": n.value }]),
|
|
9797
10337
|
style: b(u.value)
|
|
9798
10338
|
}, [
|
|
9799
|
-
l("aside",
|
|
10339
|
+
l("aside", $m, [A(e.$slots, "sidebar")]),
|
|
9800
10340
|
l("div", {
|
|
9801
10341
|
class: "uid-layout-sidebar__backdrop",
|
|
9802
10342
|
"aria-hidden": "true",
|
|
9803
10343
|
onClick: o
|
|
9804
10344
|
}),
|
|
9805
|
-
l("div",
|
|
9806
|
-
e.$slots.header ? (T(), c("div",
|
|
9807
|
-
l("main",
|
|
9808
|
-
e.$slots.footer ? (T(), c("div",
|
|
10345
|
+
l("div", eh, [
|
|
10346
|
+
e.$slots.header ? (T(), c("div", th, [A(e.$slots, "header")])) : s("", !0),
|
|
10347
|
+
l("main", nh, [A(e.$slots, "default")]),
|
|
10348
|
+
e.$slots.footer ? (T(), c("div", rh, [A(e.$slots, "footer")])) : s("", !0)
|
|
9809
10349
|
])
|
|
9810
10350
|
], 6));
|
|
9811
10351
|
}
|
|
9812
|
-
}),
|
|
10352
|
+
}), ah = {
|
|
9813
10353
|
key: 0,
|
|
9814
10354
|
class: "uid-layout-auth__brand"
|
|
9815
|
-
},
|
|
10355
|
+
}, oh = { class: "uid-layout-auth__main" }, sh = { class: "uid-layout-auth__card" }, ch = {
|
|
9816
10356
|
key: 0,
|
|
9817
10357
|
class: "uid-layout-auth__footer"
|
|
9818
|
-
},
|
|
10358
|
+
}, lh = /* @__PURE__ */ f({
|
|
9819
10359
|
__name: "UidAuthLayout",
|
|
9820
10360
|
props: { variant: { default: "centered" } },
|
|
9821
10361
|
setup(e) {
|
|
9822
|
-
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",
|
|
10362
|
+
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", ah, [A(t.$slots, "brand")])) : s("", !0), l("div", oh, [l("div", sh, [A(t.$slots, "default")]), t.$slots.footer ? (T(), c("div", ch, [A(t.$slots, "footer")])) : s("", !0)])], 2));
|
|
9823
10363
|
}
|
|
9824
|
-
}),
|
|
10364
|
+
}), uh = { class: "uid-layout-wizard" }, dh = {
|
|
9825
10365
|
key: 0,
|
|
9826
10366
|
class: "uid-layout-wizard__header"
|
|
9827
|
-
},
|
|
10367
|
+
}, fh = {
|
|
9828
10368
|
key: 1,
|
|
9829
10369
|
class: "uid-layout-wizard__stepper"
|
|
9830
|
-
},
|
|
10370
|
+
}, ph = { class: "uid-layout-wizard__content" }, mh = {
|
|
9831
10371
|
key: 2,
|
|
9832
10372
|
class: "uid-layout-wizard__nav"
|
|
9833
|
-
},
|
|
10373
|
+
}, hh = /* @__PURE__ */ f({
|
|
9834
10374
|
__name: "UidWizardLayout",
|
|
9835
10375
|
setup(e) {
|
|
9836
|
-
return (e, t) => (T(), c("div",
|
|
9837
|
-
e.$slots.header ? (T(), c("div",
|
|
9838
|
-
e.$slots.stepper ? (T(), c("div",
|
|
9839
|
-
l("main",
|
|
9840
|
-
e.$slots.nav ? (T(), c("div",
|
|
10376
|
+
return (e, t) => (T(), c("div", uh, [
|
|
10377
|
+
e.$slots.header ? (T(), c("div", dh, [A(e.$slots, "header")])) : s("", !0),
|
|
10378
|
+
e.$slots.stepper ? (T(), c("div", fh, [A(e.$slots, "stepper")])) : s("", !0),
|
|
10379
|
+
l("main", ph, [A(e.$slots, "default")]),
|
|
10380
|
+
e.$slots.nav ? (T(), c("div", mh, [A(e.$slots, "nav")])) : s("", !0)
|
|
9841
10381
|
]));
|
|
9842
10382
|
}
|
|
9843
|
-
}),
|
|
10383
|
+
}), gh = /* @__PURE__ */ f({
|
|
9844
10384
|
__name: "UidLocaleProvider",
|
|
9845
10385
|
props: { locale: {} },
|
|
9846
10386
|
setup(e) {
|
|
9847
10387
|
let t = e;
|
|
9848
10388
|
return an(a(() => t.locale)), (e, t) => A(e.$slots, "default");
|
|
9849
10389
|
}
|
|
9850
|
-
}),
|
|
10390
|
+
}), _h = {
|
|
9851
10391
|
code: "en-US",
|
|
9852
10392
|
common: {
|
|
9853
10393
|
clear: "Clear",
|
|
@@ -10023,6 +10563,16 @@ var lm = { class: "uid-layout-sidebar__sidebar" }, um = { class: "uid-layout-sid
|
|
|
10023
10563
|
label: "Command palette"
|
|
10024
10564
|
},
|
|
10025
10565
|
anchor: { label: "Contents" },
|
|
10566
|
+
markdown: {
|
|
10567
|
+
toc: "On this page",
|
|
10568
|
+
note: "Note",
|
|
10569
|
+
tip: "Tip",
|
|
10570
|
+
important: "Important",
|
|
10571
|
+
warning: "Warning",
|
|
10572
|
+
caution: "Caution",
|
|
10573
|
+
blockPending: "Rendering…",
|
|
10574
|
+
blockError: "Could not render this block"
|
|
10575
|
+
},
|
|
10026
10576
|
heatmap: {
|
|
10027
10577
|
summary: (e) => `Activity heatmap: ${e} events`,
|
|
10028
10578
|
less: "Less",
|
|
@@ -10046,19 +10596,19 @@ var lm = { class: "uid-layout-sidebar__sidebar" }, um = { class: "uid-layout-sid
|
|
|
10046
10596
|
sameAs: "The values do not match",
|
|
10047
10597
|
unknown: (e) => `Validation failed: ${e}`
|
|
10048
10598
|
}
|
|
10049
|
-
},
|
|
10050
|
-
function
|
|
10599
|
+
}, vh = O("light");
|
|
10600
|
+
function yh() {
|
|
10051
10601
|
let e = null;
|
|
10052
10602
|
function t(e) {
|
|
10053
|
-
|
|
10603
|
+
vh.value = e, document.documentElement.dataset.theme = e;
|
|
10054
10604
|
}
|
|
10055
10605
|
function n() {
|
|
10056
|
-
t(
|
|
10606
|
+
t(vh.value === "light" ? "dark" : "light");
|
|
10057
10607
|
}
|
|
10058
10608
|
function r() {
|
|
10059
10609
|
let e = document.documentElement.dataset.theme;
|
|
10060
10610
|
if (e === "light" || e === "dark") {
|
|
10061
|
-
|
|
10611
|
+
vh.value = e;
|
|
10062
10612
|
return;
|
|
10063
10613
|
}
|
|
10064
10614
|
let n = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
@@ -10070,7 +10620,7 @@ function km() {
|
|
|
10070
10620
|
e.addEventListener("change", n), C(() => e?.removeEventListener("change", n));
|
|
10071
10621
|
}
|
|
10072
10622
|
return {
|
|
10073
|
-
theme:
|
|
10623
|
+
theme: vh,
|
|
10074
10624
|
setTheme: t,
|
|
10075
10625
|
toggle: n,
|
|
10076
10626
|
initFromSystem: r,
|
|
@@ -10079,27 +10629,27 @@ function km() {
|
|
|
10079
10629
|
}
|
|
10080
10630
|
//#endregion
|
|
10081
10631
|
//#region src/composables/useWizard.ts
|
|
10082
|
-
function
|
|
10083
|
-
let e = h(
|
|
10632
|
+
function bh() {
|
|
10633
|
+
let e = h(Wp);
|
|
10084
10634
|
if (!e) throw Error("useWizard() must be used inside UidWizard");
|
|
10085
10635
|
return e;
|
|
10086
10636
|
}
|
|
10087
10637
|
//#endregion
|
|
10088
10638
|
//#region src/composables/useCommandPalette.ts
|
|
10089
|
-
var
|
|
10090
|
-
function
|
|
10639
|
+
var xh = O(!1);
|
|
10640
|
+
function Sh() {
|
|
10091
10641
|
return {
|
|
10092
|
-
open:
|
|
10642
|
+
open: xh,
|
|
10093
10643
|
show: () => {
|
|
10094
|
-
|
|
10644
|
+
xh.value = !0;
|
|
10095
10645
|
},
|
|
10096
10646
|
hide: () => {
|
|
10097
|
-
|
|
10647
|
+
xh.value = !1;
|
|
10098
10648
|
},
|
|
10099
10649
|
toggle: () => {
|
|
10100
|
-
|
|
10650
|
+
xh.value = !xh.value;
|
|
10101
10651
|
}
|
|
10102
10652
|
};
|
|
10103
10653
|
}
|
|
10104
10654
|
//#endregion
|
|
10105
|
-
export { Li as UidAccordion, Ui as UidAccordionItem,
|
|
10655
|
+
export { Li as UidAccordion, Ui as UidAccordionItem, Tu as UidAffix, gn as UidAlert, Pu as UidAnchor, lh as UidAuthLayout, Di as UidAvatar, Ai as UidAvatarGroup, Cu as UidBackTop, un as UidBadge, Wr as UidBreadcrumb, Zr as UidBreadcrumbItem, je as UidButton, Cf as UidCalendar, wi as UidCard, _d as UidCarousel, lf as UidCascader, Et as UidCheckbox, Mt as UidCheckboxGroup, tl as UidCode, io as UidColorPicker, js as UidCombobox, go as UidCommand, Up as UidContainer, Ta as UidDatePicker, fs as UidDateRangePicker, hu as UidDescriptionItem, du as UidDescriptionList, Pi as UidDivider, Qn as UidDrawer, Rm as UidEmptyState, Km as UidErrorState, gc as UidFileUpload, am as UidFooter, tn as UidFormField, ep as UidGauge, Hp as UidGrid, em as UidHeader, cp as UidHeatmap, Mp as UidHeatmapMatrix, e as UidIcon, Wl as UidImage, mi as UidInfiniteScroll, gt as UidInput, Xt as UidLabel, Qr as UidLink, di as UidLoadMore, gh as UidLocaleProvider, Fl as UidMarkdown, Yu as UidMention, gr as UidMenu, vr as UidMenuItem, Cr as UidMenuSeparator, Gn as UidModal, dd as UidNotificationBadge, wo as UidNumberInput, jm as UidPageHeader, vi as UidPageSize, ii as UidPagination, ci as UidPaginationCursor, sr as UidPopover, Mn as UidProgress, zf as UidProgressRing, It as UidRadio, Ht as UidRadioGroup, Xl as UidRating, xu as UidResult, pa as UidSelect, um as UidSidebar, xm as UidSidebarDivider, _m as UidSidebarGroup, mm as UidSidebarItem, ih as UidSidebarLayout, Xm as UidSimpleLayout, ln as UidSkeleton, Pa as UidSlider, Nf as UidSparkline, sn as UidSpinner, $l as UidSplitter, Vp as UidStack, cu as UidStat, Bp 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, Hu as UidTour, Ud as UidTransfer, Bs as UidTreeItem, cd as UidTreeSelect, Hs as UidTreeView, Ea as UidVirtualList, Ou as UidWatermark, Kp as UidWizard, hh as UidWizardLayout, Jp as UidWizardStep, al as createSlugger, Ge as email, _h as en, rl as escapeHtml, ze as getMessage, pp as heatmapColorAt, lp as heatmapColorScales, et as inList, Je as integer, Gc as isHighlightable, wl 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, Tl as provideMarkdownBlockRenderers, $e as regex, _l as renderMarkdown, Ue as required, nt as requiredIf, rt as requiredUnless, ll as resolveAgainst, dp as resolveHeatmapStops, Me as ru, ot as runRules, tt as sameAs, Re as setMessages, Ie as setValidationLocale, Cl as splitMarkdown, Kc as tokenize, Ke as url, Sh as useCommandPalette, st as useField, Pn as useFocusTrap, $ as useLocale, El as useMarkdownBlockRenderers, tr as usePopover, In as useScrollLock, Qm as useSidebar, yh as useTheme, Tn as useToast, bh as useWizard };
|