@dskripchenko/ui 1.12.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/dist/index.cjs +8 -8
- package/dist/index.mjs +559 -471
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -6107,7 +6107,77 @@ var tc = ["for"], nc = {
|
|
|
6107
6107
|
["function", /[A-Za-z_][\w-]*(?=\s*\(\s*\))/],
|
|
6108
6108
|
["plain", /[\w./-]+/],
|
|
6109
6109
|
["punctuation", /[|&;<>(){}[\]=!]+/]
|
|
6110
|
-
] }, 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 = {
|
|
6111
6181
|
js: Tc,
|
|
6112
6182
|
javascript: Tc,
|
|
6113
6183
|
jsx: Tc,
|
|
@@ -6130,17 +6200,35 @@ var tc = ["for"], nc = {
|
|
|
6130
6200
|
bash: jc,
|
|
6131
6201
|
sh: jc,
|
|
6132
6202
|
shell: jc,
|
|
6133
|
-
zsh: jc
|
|
6134
|
-
|
|
6135
|
-
|
|
6136
|
-
|
|
6137
|
-
|
|
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;
|
|
6138
6226
|
}
|
|
6139
|
-
function
|
|
6140
|
-
return !!e && e.toLowerCase() in
|
|
6227
|
+
function Gc(e) {
|
|
6228
|
+
return !!e && e.toLowerCase() in Hc;
|
|
6141
6229
|
}
|
|
6142
|
-
function
|
|
6143
|
-
let n = t ?
|
|
6230
|
+
function Kc(e, t) {
|
|
6231
|
+
let n = t ? Hc[t.toLowerCase()] : void 0;
|
|
6144
6232
|
if (!n) return e ? [{
|
|
6145
6233
|
type: "plain",
|
|
6146
6234
|
text: e
|
|
@@ -6155,7 +6243,7 @@ function Ic(e, t) {
|
|
|
6155
6243
|
for (; o < e.length;) {
|
|
6156
6244
|
let t = !1;
|
|
6157
6245
|
for (let [r, s, c] of n[a]) {
|
|
6158
|
-
let n =
|
|
6246
|
+
let n = Wc(s);
|
|
6159
6247
|
n.lastIndex = o;
|
|
6160
6248
|
let l = n.exec(e);
|
|
6161
6249
|
if (l && l[0]) {
|
|
@@ -6170,17 +6258,17 @@ function Ic(e, t) {
|
|
|
6170
6258
|
}
|
|
6171
6259
|
//#endregion
|
|
6172
6260
|
//#region src/components/Code/UidCode.vue?vue&type=script&setup=true&lang.ts
|
|
6173
|
-
var
|
|
6261
|
+
var qc = {
|
|
6174
6262
|
key: 0,
|
|
6175
6263
|
class: "uid-code uid-code--inline"
|
|
6176
|
-
},
|
|
6264
|
+
}, Jc = {
|
|
6177
6265
|
key: 0,
|
|
6178
6266
|
class: "uid-code__header"
|
|
6179
|
-
},
|
|
6267
|
+
}, Yc = { class: "uid-code__lang" }, Xc = ["aria-label"], Zc = { class: "uid-code__body" }, Qc = {
|
|
6180
6268
|
key: 0,
|
|
6181
6269
|
class: "uid-code__line-numbers",
|
|
6182
6270
|
"aria-hidden": "true"
|
|
6183
|
-
},
|
|
6271
|
+
}, $c = { class: "uid-code__pre" }, el = ["data-language"], tl = /* @__PURE__ */ f({
|
|
6184
6272
|
__name: "UidCode",
|
|
6185
6273
|
props: {
|
|
6186
6274
|
code: { default: "" },
|
|
@@ -6208,7 +6296,7 @@ var Lc = {
|
|
|
6208
6296
|
}
|
|
6209
6297
|
},
|
|
6210
6298
|
setup(n) {
|
|
6211
|
-
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));
|
|
6212
6300
|
async function v() {
|
|
6213
6301
|
if (navigator?.clipboard) try {
|
|
6214
6302
|
await navigator.clipboard.writeText(i.code), f.value = !0, setTimeout(() => {
|
|
@@ -6216,14 +6304,14 @@ var Lc = {
|
|
|
6216
6304
|
}, 1500);
|
|
6217
6305
|
} catch {}
|
|
6218
6306
|
}
|
|
6219
|
-
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", {
|
|
6220
6308
|
key: 1,
|
|
6221
6309
|
class: y(["uid-code", {
|
|
6222
6310
|
"uid-code--minimal": !_.value,
|
|
6223
6311
|
"uid-code--wrap": n.wrap
|
|
6224
6312
|
}]),
|
|
6225
6313
|
style: b(n.maxHeight ? { "--uid-code-max-height": n.maxHeight } : void 0)
|
|
6226
|
-
}, [_.value ? (T(), c("div",
|
|
6314
|
+
}, [_.value ? (T(), c("div", Jc, [l("span", Yc, P(n.language || ""), 1), n.copy ? (T(), c("button", {
|
|
6227
6315
|
key: 0,
|
|
6228
6316
|
type: "button",
|
|
6229
6317
|
class: y(["uid-code__copy", { "uid-code__copy--copied": f.value }]),
|
|
@@ -6233,39 +6321,39 @@ var Lc = {
|
|
|
6233
6321
|
icon: f.value ? L(Q) : L(fe),
|
|
6234
6322
|
size: 12,
|
|
6235
6323
|
"aria-hidden": "true"
|
|
6236
|
-
}, 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", {
|
|
6237
6325
|
key: t,
|
|
6238
6326
|
class: "uid-code__line-number"
|
|
6239
|
-
}, 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));
|
|
6240
6328
|
}
|
|
6241
|
-
}),
|
|
6329
|
+
}), nl = {
|
|
6242
6330
|
"&": "&",
|
|
6243
6331
|
"<": "<",
|
|
6244
6332
|
">": ">",
|
|
6245
6333
|
"\"": """,
|
|
6246
6334
|
"'": "'"
|
|
6247
6335
|
};
|
|
6248
|
-
function
|
|
6249
|
-
return e.replace(/[&<>"']/g, (e) =>
|
|
6336
|
+
function rl(e) {
|
|
6337
|
+
return e.replace(/[&<>"']/g, (e) => nl[e] ?? e);
|
|
6250
6338
|
}
|
|
6251
|
-
function
|
|
6339
|
+
function il(e) {
|
|
6252
6340
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, "\"").replace(/'/g, "'").replace(/&/g, "&");
|
|
6253
6341
|
}
|
|
6254
|
-
function
|
|
6342
|
+
function al() {
|
|
6255
6343
|
let e = /* @__PURE__ */ new Map();
|
|
6256
6344
|
return (t) => {
|
|
6257
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;
|
|
6258
6346
|
return e.set(n, r + 1), r === 0 ? n : `${n}-${r}`;
|
|
6259
6347
|
};
|
|
6260
6348
|
}
|
|
6261
|
-
var
|
|
6349
|
+
var ol = {
|
|
6262
6350
|
note: "Note",
|
|
6263
6351
|
tip: "Tip",
|
|
6264
6352
|
important: "Important",
|
|
6265
6353
|
warning: "Warning",
|
|
6266
6354
|
caution: "Caution"
|
|
6267
6355
|
};
|
|
6268
|
-
function
|
|
6356
|
+
function sl(e) {
|
|
6269
6357
|
let t = e.trim(), n = t.replace(/�*58;|:/gi, ":").replace(/\s+/g, "").toLowerCase(), r = /^([a-z][a-z0-9+.-]*):/.exec(n);
|
|
6270
6358
|
return r && ![
|
|
6271
6359
|
"http",
|
|
@@ -6273,42 +6361,42 @@ function Zc(e) {
|
|
|
6273
6361
|
"mailto"
|
|
6274
6362
|
].includes(r[1] ?? "") ? null : t;
|
|
6275
6363
|
}
|
|
6276
|
-
function
|
|
6364
|
+
function cl(e) {
|
|
6277
6365
|
return !/^([a-z][a-z0-9+.-]*:|\/|#|\?)/i.test(e);
|
|
6278
6366
|
}
|
|
6279
|
-
function
|
|
6280
|
-
let r =
|
|
6367
|
+
function ll(e, t, n = !1) {
|
|
6368
|
+
let r = il(e);
|
|
6281
6369
|
n && (r = r.replace(/\.md(?=$|[?#])/i, ""));
|
|
6282
6370
|
try {
|
|
6283
6371
|
let e = /^[a-z][a-z0-9+.-]*:\/\//i.test(t), n = new URL(r, e ? t : `http://base.invalid${t.startsWith("/") ? "" : "/"}${t}`);
|
|
6284
|
-
return
|
|
6372
|
+
return rl(e ? n.href : n.pathname + n.search + n.hash);
|
|
6285
6373
|
} catch {
|
|
6286
6374
|
return e;
|
|
6287
6375
|
}
|
|
6288
6376
|
}
|
|
6289
|
-
function
|
|
6377
|
+
function ul(e, t = {}) {
|
|
6290
6378
|
let n = [], r = (e) => `${n.push(e) - 1}`, i = e.replace(/`([^`]+)`/g, (e, t) => r(`<code>${t}</code>`));
|
|
6291
6379
|
return i = i.replace(/!\[([^\]]*)\]\(([^)\s]+)(?:\s+"[^)]*")?\)/g, (e, n, i) => {
|
|
6292
|
-
let a =
|
|
6293
|
-
return a === null ? e : (t.imageBase &&
|
|
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">`));
|
|
6294
6382
|
}), i = i.replace(/\[([^\]]+)\]\(([^)\s]+)(?:\s+"[^)]*")?\)/g, (e, n, i) => {
|
|
6295
|
-
let a =
|
|
6383
|
+
let a = sl(i);
|
|
6296
6384
|
if (a === null) return e;
|
|
6297
|
-
let o =
|
|
6298
|
-
t.linkBase && o && (a =
|
|
6385
|
+
let o = cl(a);
|
|
6386
|
+
t.linkBase && o && (a = ll(a, t.linkBase, t.stripMdExtension ?? !1));
|
|
6299
6387
|
let s = /^(https?:)?\/\//i.test(a) || /^mailto:/i.test(a);
|
|
6300
6388
|
return r(t.internalLinksInPlace === !0 && !s ? `<a href="${a}">${n}</a>` : `<a href="${a}" target="_blank" rel="noopener noreferrer">${n}</a>`);
|
|
6301
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)] ?? "");
|
|
6302
6390
|
}
|
|
6303
|
-
function
|
|
6304
|
-
return
|
|
6391
|
+
function dl(e) {
|
|
6392
|
+
return il(e.replace(/<[^>]+>/g, ""));
|
|
6305
6393
|
}
|
|
6306
|
-
var
|
|
6307
|
-
function
|
|
6394
|
+
var fl = /^(\s*)([-*+]|\d+[.)])\s+(.*)$/, pl = /^\s*\|?\s*:?-+:?\s*(\|\s*:?-+:?\s*)*\|?\s*$/;
|
|
6395
|
+
function ml(e) {
|
|
6308
6396
|
let t = e.trim();
|
|
6309
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, "|"));
|
|
6310
6398
|
}
|
|
6311
|
-
var
|
|
6399
|
+
var hl = {
|
|
6312
6400
|
note: "note",
|
|
6313
6401
|
info: "note",
|
|
6314
6402
|
tip: "tip",
|
|
@@ -6325,13 +6413,13 @@ var al = {
|
|
|
6325
6413
|
предупреждение: "warning",
|
|
6326
6414
|
осторожно: "caution"
|
|
6327
6415
|
};
|
|
6328
|
-
function
|
|
6416
|
+
function gl(e, t) {
|
|
6329
6417
|
let n = e;
|
|
6330
|
-
return t.calloutTitles?.[n] ??
|
|
6418
|
+
return t.calloutTitles?.[n] ?? ol[n] ?? ol.note;
|
|
6331
6419
|
}
|
|
6332
|
-
function
|
|
6420
|
+
function _l(e, t = {}) {
|
|
6333
6421
|
if (!e) return "";
|
|
6334
|
-
let n =
|
|
6422
|
+
let n = rl(e.replace(/\r\n?/g, "\n")).split("\n"), r = [], i = [], a = (e) => ul(e, t), o = () => {
|
|
6335
6423
|
i.length > 0 && (r.push(`<p>${a(i.join("\n"))}</p>`), i = []);
|
|
6336
6424
|
};
|
|
6337
6425
|
for (let e = 0; e < n.length; e++) {
|
|
@@ -6353,12 +6441,12 @@ function sl(e, t = {}) {
|
|
|
6353
6441
|
o();
|
|
6354
6442
|
let e = l[1]?.length ?? 1, n = a(l[2] ?? "");
|
|
6355
6443
|
if (t.slugger) {
|
|
6356
|
-
let i =
|
|
6444
|
+
let i = dl(n), a = t.slugger(i);
|
|
6357
6445
|
t.onHeading?.({
|
|
6358
6446
|
level: e,
|
|
6359
6447
|
text: i,
|
|
6360
6448
|
id: a
|
|
6361
|
-
}), r.push(`<h${e} id="${
|
|
6449
|
+
}), r.push(`<h${e} id="${rl(a)}">${n}</h${e}>`);
|
|
6362
6450
|
} else r.push(`<h${e}>${n}</h${e}>`);
|
|
6363
6451
|
continue;
|
|
6364
6452
|
}
|
|
@@ -6366,14 +6454,14 @@ function sl(e, t = {}) {
|
|
|
6366
6454
|
o(), r.push("<hr>");
|
|
6367
6455
|
continue;
|
|
6368
6456
|
}
|
|
6369
|
-
if (s.includes("|") &&
|
|
6457
|
+
if (s.includes("|") && pl.test(n[e + 1] ?? "") && (n[e + 1] ?? "").includes("|")) {
|
|
6370
6458
|
o();
|
|
6371
|
-
let t =
|
|
6459
|
+
let t = ml(s), i = ml(n[e + 1] ?? "").map((e) => {
|
|
6372
6460
|
let t = e.startsWith(":"), n = e.endsWith(":");
|
|
6373
6461
|
return t && n ? "center" : n ? "right" : t ? "left" : "";
|
|
6374
6462
|
}), c = (e, t, n) => `<${e}${i[n] ? ` style="text-align:${i[n]}"` : ""}>${a(t)}</${e}>`, l = [];
|
|
6375
6463
|
for (e += 2; e < n.length && (n[e] ?? "").includes("|") && (n[e] ?? "").trim() !== "";) {
|
|
6376
|
-
let r =
|
|
6464
|
+
let r = ml(n[e] ?? "");
|
|
6377
6465
|
l.push(`<tr>${t.map((e, t) => c("td", r[t] ?? "", t)).join("")}</tr>`), e++;
|
|
6378
6466
|
}
|
|
6379
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>`);
|
|
@@ -6383,12 +6471,12 @@ function sl(e, t = {}) {
|
|
|
6383
6471
|
o();
|
|
6384
6472
|
let i = [];
|
|
6385
6473
|
for (; e < n.length && /^\s*>/.test(n[e] ?? "");) i.push((n[e] ?? "").replace(/^\s*>\s?/, "")), e++;
|
|
6386
|
-
e--, r.push(
|
|
6474
|
+
e--, r.push(xl(i, t));
|
|
6387
6475
|
continue;
|
|
6388
6476
|
}
|
|
6389
|
-
if (
|
|
6477
|
+
if (fl.test(s)) {
|
|
6390
6478
|
o();
|
|
6391
|
-
let i =
|
|
6479
|
+
let i = bl(n, e, t);
|
|
6392
6480
|
r.push(i.html), e = i.next - 1;
|
|
6393
6481
|
continue;
|
|
6394
6482
|
}
|
|
@@ -6396,49 +6484,49 @@ function sl(e, t = {}) {
|
|
|
6396
6484
|
}
|
|
6397
6485
|
return o(), r.join("\n");
|
|
6398
6486
|
}
|
|
6399
|
-
function
|
|
6487
|
+
function vl(e) {
|
|
6400
6488
|
return (/^[ \t]*/.exec(e)?.[0] ?? "").replace(/\t/g, " ").length;
|
|
6401
6489
|
}
|
|
6402
|
-
function
|
|
6490
|
+
function yl(e) {
|
|
6403
6491
|
return /^\s*(#{1,6}\s|>|```|~~~|\|)/.test(e) || /^\s*([-*_])(\s*\1){2,}\s*$/.test(e);
|
|
6404
6492
|
}
|
|
6405
|
-
function
|
|
6406
|
-
let r =
|
|
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;
|
|
6407
6495
|
for (; s < e.length;) {
|
|
6408
|
-
let t =
|
|
6409
|
-
if (!t ||
|
|
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;
|
|
6410
6498
|
let r = [t[3] ?? ""], c = [];
|
|
6411
6499
|
for (s++; s < e.length;) {
|
|
6412
6500
|
let t = e[s] ?? "";
|
|
6413
6501
|
if (t.trim() === "") {
|
|
6414
6502
|
let t = s + 1;
|
|
6415
6503
|
for (; t < e.length && (e[t] ?? "").trim() === "";) t++;
|
|
6416
|
-
if (t < e.length &&
|
|
6504
|
+
if (t < e.length && vl(e[t] ?? "") > i + 1) {
|
|
6417
6505
|
for (; s < t; s++) c.push("");
|
|
6418
6506
|
continue;
|
|
6419
6507
|
}
|
|
6420
6508
|
break;
|
|
6421
6509
|
}
|
|
6422
|
-
if (
|
|
6510
|
+
if (vl(t) > i + 1) {
|
|
6423
6511
|
c.push(t), s++;
|
|
6424
6512
|
continue;
|
|
6425
6513
|
}
|
|
6426
|
-
if (c.length === 0 && !
|
|
6514
|
+
if (c.length === 0 && !fl.test(t) && !yl(t)) {
|
|
6427
6515
|
r.push(t.trim()), s++;
|
|
6428
6516
|
continue;
|
|
6429
6517
|
}
|
|
6430
6518
|
break;
|
|
6431
6519
|
}
|
|
6432
|
-
let l =
|
|
6520
|
+
let l = ul(r.join("\n"), n);
|
|
6433
6521
|
if (c.some((e) => e.trim() !== "")) {
|
|
6434
|
-
let e = Math.min(...c.filter((e) => e.trim() !== "").map(
|
|
6435
|
-
l +=
|
|
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);
|
|
6436
6524
|
}
|
|
6437
6525
|
o.push(`<li>${l}</li>`);
|
|
6438
6526
|
let u = s;
|
|
6439
6527
|
for (; u < e.length && (e[u] ?? "").trim() === "";) u++;
|
|
6440
|
-
let d =
|
|
6441
|
-
u > s && d &&
|
|
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);
|
|
6442
6530
|
}
|
|
6443
6531
|
let c = a ? "ol" : "ul", l = a ? Number.parseInt(r?.[2] ?? "1", 10) : 1;
|
|
6444
6532
|
return {
|
|
@@ -6446,23 +6534,23 @@ function ul(e, t, n) {
|
|
|
6446
6534
|
next: s
|
|
6447
6535
|
};
|
|
6448
6536
|
}
|
|
6449
|
-
function
|
|
6537
|
+
function xl(e, t) {
|
|
6450
6538
|
let n = (e[0] ?? "").trim(), r = /^\[!(\w+)\]\s*$/.exec(n);
|
|
6451
6539
|
if (r) {
|
|
6452
|
-
let n =
|
|
6453
|
-
if (n) return `<blockquote class="uid-markdown__callout uid-markdown__callout--${n}">${`<p class="uid-markdown__callout-title">${
|
|
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>`;
|
|
6454
6542
|
}
|
|
6455
6543
|
let i = /^\*\*([^*]+?):?\*\*:?/.exec(n);
|
|
6456
6544
|
if (i) {
|
|
6457
|
-
let n =
|
|
6458
|
-
if (n) return `<blockquote class="uid-markdown__callout uid-markdown__callout--${n}">${
|
|
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>`;
|
|
6459
6547
|
}
|
|
6460
|
-
return `<blockquote>${
|
|
6548
|
+
return `<blockquote>${Sl(e, t)}</blockquote>`;
|
|
6461
6549
|
}
|
|
6462
|
-
function
|
|
6463
|
-
return
|
|
6550
|
+
function Sl(e, t) {
|
|
6551
|
+
return _l(il(e.join("\n")), t);
|
|
6464
6552
|
}
|
|
6465
|
-
function
|
|
6553
|
+
function Cl(e) {
|
|
6466
6554
|
if (!e) return [];
|
|
6467
6555
|
let t = e.replace(/\r\n?/g, "\n").split("\n"), n = [], r = [], i = () => {
|
|
6468
6556
|
r.some((e) => e.trim() !== "") && n.push({
|
|
@@ -6489,19 +6577,19 @@ function pl(e) {
|
|
|
6489
6577
|
}
|
|
6490
6578
|
//#endregion
|
|
6491
6579
|
//#region src/components/Markdown/blockRenderers.ts
|
|
6492
|
-
var
|
|
6493
|
-
function
|
|
6494
|
-
E(
|
|
6580
|
+
var wl = Symbol("UidMarkdownBlockRenderers");
|
|
6581
|
+
function Tl(e) {
|
|
6582
|
+
E(wl, e);
|
|
6495
6583
|
}
|
|
6496
|
-
function
|
|
6497
|
-
return h(
|
|
6584
|
+
function El() {
|
|
6585
|
+
return h(wl, {});
|
|
6498
6586
|
}
|
|
6499
6587
|
//#endregion
|
|
6500
6588
|
//#region src/components/Markdown/UidMarkdown.vue?vue&type=script&setup=true&lang.ts
|
|
6501
|
-
var
|
|
6589
|
+
var Dl = ["innerHTML"], Ol = ["data-language", "innerHTML"], kl = ["data-language"], Al = ["data-language"], jl = {
|
|
6502
6590
|
class: "uid-markdown__block-error-message",
|
|
6503
6591
|
role: "alert"
|
|
6504
|
-
},
|
|
6592
|
+
}, Ml = ["aria-label"], Nl = { class: "uid-markdown__toc-title" }, Pl = ["href", "onClick"], Fl = /* @__PURE__ */ f({
|
|
6505
6593
|
__name: "UidMarkdown",
|
|
6506
6594
|
props: {
|
|
6507
6595
|
source: { default: "" },
|
|
@@ -6525,7 +6613,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6525
6613
|
blockRenderers: { default: void 0 }
|
|
6526
6614
|
},
|
|
6527
6615
|
setup(e) {
|
|
6528
|
-
let n = e, r = $(), i =
|
|
6616
|
+
let n = e, r = $(), i = El(), u = {
|
|
6529
6617
|
blade: "html",
|
|
6530
6618
|
console: "bash",
|
|
6531
6619
|
env: "bash",
|
|
@@ -6557,14 +6645,14 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6557
6645
|
let e = ++m, t = {
|
|
6558
6646
|
...i,
|
|
6559
6647
|
...n.blockRenderers ?? {}
|
|
6560
|
-
}, a =
|
|
6648
|
+
}, a = al(), o = [], s = {
|
|
6561
6649
|
...r.value.markdown,
|
|
6562
6650
|
...n.calloutTitles ?? {}
|
|
6563
6651
|
}, c = [], l = 0;
|
|
6564
|
-
f.value =
|
|
6652
|
+
f.value = Cl(n.source).map((e, r) => {
|
|
6565
6653
|
if (e.kind === "text") return {
|
|
6566
6654
|
kind: "html",
|
|
6567
|
-
html:
|
|
6655
|
+
html: _l(e.source, {
|
|
6568
6656
|
slugger: a,
|
|
6569
6657
|
onHeading: (e) => o.push(e),
|
|
6570
6658
|
linkBase: n.linkBase ?? null,
|
|
@@ -6643,7 +6731,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6643
6731
|
key: 0,
|
|
6644
6732
|
class: "uid-markdown__html",
|
|
6645
6733
|
innerHTML: e.html
|
|
6646
|
-
}, null, 8,
|
|
6734
|
+
}, null, 8, Dl)) : e.kind === "code" ? (T(), o(tl, {
|
|
6647
6735
|
key: 1,
|
|
6648
6736
|
class: "uid-markdown__code",
|
|
6649
6737
|
code: e.code,
|
|
@@ -6654,45 +6742,45 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6654
6742
|
class: "uid-markdown__block",
|
|
6655
6743
|
"data-language": e.language,
|
|
6656
6744
|
innerHTML: e.html
|
|
6657
|
-
}, null, 8,
|
|
6745
|
+
}, null, 8, Ol)) : e.state === "pending" ? (T(), c("div", {
|
|
6658
6746
|
key: 3,
|
|
6659
6747
|
class: "uid-markdown__block uid-markdown__block--pending",
|
|
6660
6748
|
"data-language": e.language,
|
|
6661
6749
|
"aria-busy": "true"
|
|
6662
|
-
}, P(L(r).markdown.blockPending), 9,
|
|
6750
|
+
}, P(L(r).markdown.blockPending), 9, kl)) : (T(), c("div", {
|
|
6663
6751
|
key: 4,
|
|
6664
6752
|
class: "uid-markdown__block-error",
|
|
6665
6753
|
"data-language": e.language
|
|
6666
|
-
}, [l("p",
|
|
6754
|
+
}, [l("p", jl, P(e.error ? `${L(r).markdown.blockError}: ${e.error}` : L(r).markdown.blockError), 1), d(tl, {
|
|
6667
6755
|
class: "uid-markdown__code",
|
|
6668
6756
|
code: e.code,
|
|
6669
6757
|
language: e.language || void 0,
|
|
6670
6758
|
copy: ""
|
|
6671
|
-
}, null, 8, ["code", "language"])], 8,
|
|
6759
|
+
}, null, 8, ["code", "language"])], 8, Al))], 64))), 128))]), C.value.length > 0 ? (T(), c("nav", {
|
|
6672
6760
|
key: 0,
|
|
6673
6761
|
class: "uid-markdown__toc",
|
|
6674
6762
|
"aria-label": x.value
|
|
6675
|
-
}, [l("div",
|
|
6763
|
+
}, [l("div", Nl, P(x.value), 1), l("ul", null, [(T(!0), c(t, null, k(C.value, (e) => (T(), c("li", {
|
|
6676
6764
|
key: e.id,
|
|
6677
6765
|
class: y(["uid-markdown__toc-item", `uid-markdown__toc-item--l${e.level}`])
|
|
6678
6766
|
}, [l("a", {
|
|
6679
6767
|
href: `#${e.id}`,
|
|
6680
6768
|
onClick: X((t) => D(e.id), ["prevent"])
|
|
6681
|
-
}, P(e.text), 9,
|
|
6769
|
+
}, P(e.text), 9, Pl)], 2))), 128))])], 8, Ml)) : s("", !0)], 2));
|
|
6682
6770
|
}
|
|
6683
|
-
}),
|
|
6771
|
+
}), Il = ["data-status"], Ll = ["aria-label"], Rl = {
|
|
6684
6772
|
key: 0,
|
|
6685
6773
|
class: "uid-image__placeholder",
|
|
6686
6774
|
"aria-hidden": "true"
|
|
6687
|
-
},
|
|
6775
|
+
}, zl = ["aria-label"], Bl = [
|
|
6688
6776
|
"src",
|
|
6689
6777
|
"alt",
|
|
6690
6778
|
"loading"
|
|
6691
|
-
],
|
|
6779
|
+
], Vl = [
|
|
6692
6780
|
"src",
|
|
6693
6781
|
"alt",
|
|
6694
6782
|
"loading"
|
|
6695
|
-
],
|
|
6783
|
+
], Hl = { class: "uid-image__preview" }, Ul = ["src", "alt"], Wl = /* @__PURE__ */ f({
|
|
6696
6784
|
__name: "UidImage",
|
|
6697
6785
|
props: {
|
|
6698
6786
|
src: {},
|
|
@@ -6762,7 +6850,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6762
6850
|
}, [A(r.$slots, "fallback", {}, () => [d(e, {
|
|
6763
6851
|
icon: L(_e),
|
|
6764
6852
|
size: 24
|
|
6765
|
-
}, 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", {
|
|
6766
6854
|
key: 1,
|
|
6767
6855
|
type: "button",
|
|
6768
6856
|
class: "uid-image__trigger",
|
|
@@ -6777,7 +6865,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6777
6865
|
decoding: "async",
|
|
6778
6866
|
onLoad: C,
|
|
6779
6867
|
onError: w
|
|
6780
|
-
}, null, 40,
|
|
6868
|
+
}, null, 40, Bl)], 8, zl)) : (T(), c("img", {
|
|
6781
6869
|
key: 2,
|
|
6782
6870
|
class: "uid-image__img",
|
|
6783
6871
|
src: g.value,
|
|
@@ -6786,40 +6874,40 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6786
6874
|
decoding: "async",
|
|
6787
6875
|
onLoad: C,
|
|
6788
6876
|
onError: w
|
|
6789
|
-
}, null, 40,
|
|
6877
|
+
}, null, 40, Vl))], 64)), n.preview ? (T(), o(Gn, {
|
|
6790
6878
|
key: 2,
|
|
6791
6879
|
modelValue: h.value,
|
|
6792
6880
|
"onUpdate:modelValue": i[0] ||= (e) => h.value = e,
|
|
6793
6881
|
size: "full",
|
|
6794
6882
|
title: n.alt
|
|
6795
6883
|
}, {
|
|
6796
|
-
default: q(() => [l("div",
|
|
6884
|
+
default: q(() => [l("div", Hl, [l("img", {
|
|
6797
6885
|
class: "uid-image__preview-img",
|
|
6798
6886
|
src: n.previewSrc || g.value,
|
|
6799
6887
|
alt: n.alt
|
|
6800
|
-
}, null, 8,
|
|
6888
|
+
}, null, 8, Ul)])]),
|
|
6801
6889
|
_: 1
|
|
6802
|
-
}, 8, ["modelValue", "title"])) : s("", !0)], 14,
|
|
6890
|
+
}, 8, ["modelValue", "title"])) : s("", !0)], 14, Il));
|
|
6803
6891
|
}
|
|
6804
|
-
}),
|
|
6892
|
+
}), Gl = [
|
|
6805
6893
|
"aria-valuemax",
|
|
6806
6894
|
"aria-valuenow",
|
|
6807
6895
|
"aria-readonly",
|
|
6808
6896
|
"aria-disabled",
|
|
6809
6897
|
"aria-label"
|
|
6810
|
-
],
|
|
6898
|
+
], Kl = [
|
|
6811
6899
|
"tabindex",
|
|
6812
6900
|
"aria-label",
|
|
6813
6901
|
"onClick",
|
|
6814
6902
|
"onMousemove",
|
|
6815
6903
|
"onKeydown"
|
|
6816
|
-
],
|
|
6904
|
+
], ql = {
|
|
6817
6905
|
class: "uid-rating__icon",
|
|
6818
6906
|
"aria-hidden": "true"
|
|
6819
|
-
},
|
|
6907
|
+
}, Jl = ["data-half"], Yl = {
|
|
6820
6908
|
key: 0,
|
|
6821
6909
|
class: "uid-rating__label"
|
|
6822
|
-
},
|
|
6910
|
+
}, Xl = /* @__PURE__ */ f({
|
|
6823
6911
|
__name: "UidRating",
|
|
6824
6912
|
props: /* @__PURE__ */ g({
|
|
6825
6913
|
max: { default: 5 },
|
|
@@ -6924,21 +7012,21 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6924
7012
|
onClick: (e) => x(e, t),
|
|
6925
7013
|
onMousemove: (e) => S(e, t),
|
|
6926
7014
|
onKeydown: (e) => w(e, t)
|
|
6927
|
-
}, [l("span",
|
|
7015
|
+
}, [l("span", ql, [d(e, { icon: _.value }, null, 8, ["icon"])]), v(t).full ? (T(), c("span", {
|
|
6928
7016
|
key: 0,
|
|
6929
7017
|
class: "uid-rating__icon uid-rating__icon--filled",
|
|
6930
7018
|
"data-half": v(t).half ? "true" : "false",
|
|
6931
7019
|
"aria-hidden": "true"
|
|
6932
|
-
}, [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));
|
|
6933
7021
|
}
|
|
6934
|
-
}),
|
|
7022
|
+
}), Zl = [
|
|
6935
7023
|
"tabindex",
|
|
6936
7024
|
"aria-orientation",
|
|
6937
7025
|
"aria-valuemin",
|
|
6938
7026
|
"aria-valuemax",
|
|
6939
7027
|
"aria-valuenow",
|
|
6940
7028
|
"aria-disabled"
|
|
6941
|
-
],
|
|
7029
|
+
], Ql = { class: "uid-splitter__pane uid-splitter__pane--end" }, $l = /* @__PURE__ */ f({
|
|
6942
7030
|
__name: "UidSplitter",
|
|
6943
7031
|
props: /* @__PURE__ */ g({
|
|
6944
7032
|
direction: { default: "horizontal" },
|
|
@@ -7016,27 +7104,27 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7016
7104
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
7017
7105
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
7018
7106
|
l("span", { class: "uid-splitter__grip-dot" })
|
|
7019
|
-
], -1)]], 40,
|
|
7020
|
-
l("div",
|
|
7107
|
+
], -1)]], 40, Zl),
|
|
7108
|
+
l("div", Ql, [A(t.$slots, "end")])
|
|
7021
7109
|
], 2));
|
|
7022
7110
|
}
|
|
7023
|
-
}),
|
|
7111
|
+
}), eu = {
|
|
7024
7112
|
key: 0,
|
|
7025
7113
|
class: "uid-stat__icon",
|
|
7026
7114
|
"aria-hidden": "true"
|
|
7027
|
-
},
|
|
7115
|
+
}, tu = { class: "uid-stat__body" }, nu = {
|
|
7028
7116
|
key: 0,
|
|
7029
7117
|
class: "uid-stat__title"
|
|
7030
|
-
},
|
|
7118
|
+
}, ru = { class: "uid-stat__value-row" }, iu = { class: "uid-stat__value" }, au = {
|
|
7031
7119
|
key: 0,
|
|
7032
7120
|
class: "uid-stat__prefix"
|
|
7033
|
-
},
|
|
7121
|
+
}, ou = {
|
|
7034
7122
|
key: 1,
|
|
7035
7123
|
class: "uid-stat__suffix"
|
|
7036
|
-
},
|
|
7124
|
+
}, su = {
|
|
7037
7125
|
key: 1,
|
|
7038
7126
|
class: "uid-stat__footer"
|
|
7039
|
-
},
|
|
7127
|
+
}, cu = /* @__PURE__ */ f({
|
|
7040
7128
|
__name: "UidStat",
|
|
7041
7129
|
props: {
|
|
7042
7130
|
title: {},
|
|
@@ -7065,16 +7153,16 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7065
7153
|
t.variant === "ghost" && "uid-stat--ghost",
|
|
7066
7154
|
t.trendPlacement === "below" && "uid-stat--trend-below",
|
|
7067
7155
|
t.loading && "uid-stat--loading"
|
|
7068
|
-
]]) }, [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, {
|
|
7069
7157
|
key: 0,
|
|
7070
7158
|
icon: t.icon,
|
|
7071
7159
|
size: 20
|
|
7072
|
-
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div",
|
|
7073
|
-
t.title ? (T(), c("p",
|
|
7074
|
-
l("div",
|
|
7075
|
-
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),
|
|
7076
7164
|
l("span", null, P(d.value), 1),
|
|
7077
|
-
t.suffix ? (T(), c("span",
|
|
7165
|
+
t.suffix ? (T(), c("span", ou, P(t.suffix), 1)) : s("", !0)
|
|
7078
7166
|
])]), t.trend !== void 0 || n.$slots.trend ? (T(), c("span", {
|
|
7079
7167
|
key: 0,
|
|
7080
7168
|
class: y(["uid-stat__trend", f.value && `uid-stat__trend--${f.value}`])
|
|
@@ -7083,13 +7171,13 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7083
7171
|
icon: p.value,
|
|
7084
7172
|
size: 12
|
|
7085
7173
|
}, null, 8, ["icon"])) : s("", !0), l("span", null, P(m.value), 1)])], 2)) : s("", !0)]),
|
|
7086
|
-
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)
|
|
7087
7175
|
])], 2));
|
|
7088
7176
|
}
|
|
7089
|
-
}),
|
|
7177
|
+
}), lu = Symbol("UidDescriptionList"), uu = {
|
|
7090
7178
|
key: 0,
|
|
7091
7179
|
class: "uid-description-list__title"
|
|
7092
|
-
},
|
|
7180
|
+
}, du = /* @__PURE__ */ f({
|
|
7093
7181
|
__name: "UidDescriptionList",
|
|
7094
7182
|
props: {
|
|
7095
7183
|
title: {},
|
|
@@ -7104,7 +7192,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7104
7192
|
},
|
|
7105
7193
|
setup(e) {
|
|
7106
7194
|
let t = e;
|
|
7107
|
-
E(
|
|
7195
|
+
E(lu, {
|
|
7108
7196
|
direction: a(() => t.direction),
|
|
7109
7197
|
bordered: a(() => t.bordered)
|
|
7110
7198
|
});
|
|
@@ -7116,12 +7204,12 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7116
7204
|
`uid-description-list--${e.direction}`,
|
|
7117
7205
|
`uid-description-list--${e.size}`,
|
|
7118
7206
|
e.bordered && "uid-description-list--bordered"
|
|
7119
|
-
]]) }, [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", {
|
|
7120
7208
|
class: "uid-description-list__grid",
|
|
7121
7209
|
style: b(n.value)
|
|
7122
7210
|
}, [A(t.$slots, "default")], 4)], 2));
|
|
7123
7211
|
}
|
|
7124
|
-
}),
|
|
7212
|
+
}), fu = { class: "uid-description-item__label" }, pu = { class: "uid-description-item__value" }, mu = ["aria-label"], hu = /* @__PURE__ */ f({
|
|
7125
7213
|
__name: "UidDescriptionItem",
|
|
7126
7214
|
props: {
|
|
7127
7215
|
label: {},
|
|
@@ -7134,7 +7222,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7134
7222
|
},
|
|
7135
7223
|
setup(t) {
|
|
7136
7224
|
let n = $(), r = t;
|
|
7137
|
-
h(
|
|
7225
|
+
h(lu, null);
|
|
7138
7226
|
let i = O(null), o = O(!1), f = a(() => ({ "--uid-desc-span": r.span }));
|
|
7139
7227
|
async function p() {
|
|
7140
7228
|
let e = r.copyValue ?? i.value?.querySelector(".uid-description-item__value")?.textContent?.trim() ?? "";
|
|
@@ -7149,7 +7237,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7149
7237
|
ref: i,
|
|
7150
7238
|
class: "uid-description-item",
|
|
7151
7239
|
style: b(f.value)
|
|
7152
|
-
}, [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", {
|
|
7153
7241
|
key: 0,
|
|
7154
7242
|
type: "button",
|
|
7155
7243
|
class: y(["uid-description-item__copy", { "uid-description-item__copy--copied": o.value }]),
|
|
@@ -7158,24 +7246,24 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7158
7246
|
}, [d(e, {
|
|
7159
7247
|
icon: o.value ? L(Q) : L(fe),
|
|
7160
7248
|
size: 12
|
|
7161
|
-
}, null, 8, ["icon"])], 10,
|
|
7249
|
+
}, null, 8, ["icon"])], 10, mu)) : s("", !0)])], 4));
|
|
7162
7250
|
}
|
|
7163
|
-
}),
|
|
7251
|
+
}), gu = {
|
|
7164
7252
|
class: "uid-pattern-result__icon",
|
|
7165
7253
|
"aria-hidden": "true"
|
|
7166
|
-
},
|
|
7254
|
+
}, _u = {
|
|
7167
7255
|
key: 0,
|
|
7168
7256
|
class: "uid-pattern-result__title"
|
|
7169
|
-
},
|
|
7257
|
+
}, vu = {
|
|
7170
7258
|
key: 1,
|
|
7171
7259
|
class: "uid-pattern-result__description"
|
|
7172
|
-
},
|
|
7260
|
+
}, yu = {
|
|
7173
7261
|
key: 2,
|
|
7174
7262
|
class: "uid-pattern-result__content"
|
|
7175
|
-
},
|
|
7263
|
+
}, bu = {
|
|
7176
7264
|
key: 3,
|
|
7177
7265
|
class: "uid-pattern-result__actions"
|
|
7178
|
-
},
|
|
7266
|
+
}, xu = /* @__PURE__ */ f({
|
|
7179
7267
|
__name: "UidResult",
|
|
7180
7268
|
props: {
|
|
7181
7269
|
status: { default: "success" },
|
|
@@ -7197,17 +7285,17 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7197
7285
|
class: y(["uid-pattern-result", [`uid-pattern-result--${t.status}`, t.compact && "uid-pattern-result--compact"]]),
|
|
7198
7286
|
role: "status"
|
|
7199
7287
|
}, [
|
|
7200
|
-
l("div",
|
|
7288
|
+
l("div", gu, [A(n.$slots, "icon", {}, () => [d(e, {
|
|
7201
7289
|
icon: i.value,
|
|
7202
7290
|
size: t.compact ? 32 : 40
|
|
7203
7291
|
}, null, 8, ["icon", "size"])])]),
|
|
7204
|
-
t.title || n.$slots.title ? (T(), c("h2",
|
|
7205
|
-
t.description || n.$slots.description ? (T(), c("p",
|
|
7206
|
-
n.$slots.default ? (T(), c("div",
|
|
7207
|
-
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)
|
|
7208
7296
|
], 2));
|
|
7209
7297
|
}
|
|
7210
|
-
}),
|
|
7298
|
+
}), Su = ["aria-label"], Cu = /* @__PURE__ */ f({
|
|
7211
7299
|
__name: "UidBackTop",
|
|
7212
7300
|
props: {
|
|
7213
7301
|
visibleAfter: { default: 200 },
|
|
@@ -7255,11 +7343,11 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7255
7343
|
}, [A(t.$slots, "default", {}, () => [d(e, {
|
|
7256
7344
|
icon: L(re),
|
|
7257
7345
|
size: 20
|
|
7258
|
-
}, null, 8, ["icon"])])], 8,
|
|
7346
|
+
}, null, 8, ["icon"])])], 8, Su), [[W, f.value]])]),
|
|
7259
7347
|
_: 3
|
|
7260
7348
|
}));
|
|
7261
7349
|
}
|
|
7262
|
-
}),
|
|
7350
|
+
}), wu = { class: "uid-affix__content" }, Tu = /* @__PURE__ */ f({
|
|
7263
7351
|
__name: "UidAffix",
|
|
7264
7352
|
props: {
|
|
7265
7353
|
offsetTop: {},
|
|
@@ -7289,9 +7377,9 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7289
7377
|
ref: o,
|
|
7290
7378
|
class: "uid-affix__sentinel",
|
|
7291
7379
|
"aria-hidden": "true"
|
|
7292
|
-
}, null, 512), l("div",
|
|
7380
|
+
}, null, 512), l("div", wu, [A(e.$slots, "default")])], 6));
|
|
7293
7381
|
}
|
|
7294
|
-
}),
|
|
7382
|
+
}), Eu = { class: "uid-watermark" }, Du = { class: "uid-watermark__content" }, Ou = /* @__PURE__ */ f({
|
|
7295
7383
|
__name: "UidWatermark",
|
|
7296
7384
|
props: {
|
|
7297
7385
|
content: { default: "" },
|
|
@@ -7338,24 +7426,24 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7338
7426
|
i();
|
|
7339
7427
|
}), C(() => {
|
|
7340
7428
|
n.value = "";
|
|
7341
|
-
}), (e, t) => (T(), c("div",
|
|
7429
|
+
}), (e, t) => (T(), c("div", Eu, [l("div", {
|
|
7342
7430
|
class: "uid-watermark__overlay",
|
|
7343
7431
|
style: b(o.value),
|
|
7344
7432
|
"aria-hidden": "true"
|
|
7345
|
-
}, null, 4), l("div",
|
|
7433
|
+
}, null, 4), l("div", Du, [A(e.$slots, "default")])]));
|
|
7346
7434
|
}
|
|
7347
|
-
}),
|
|
7435
|
+
}), ku = ["aria-label"], Au = { class: "uid-anchor__list" }, ju = [
|
|
7348
7436
|
"href",
|
|
7349
7437
|
"aria-current",
|
|
7350
7438
|
"onClick"
|
|
7351
|
-
],
|
|
7439
|
+
], Mu = {
|
|
7352
7440
|
key: 0,
|
|
7353
7441
|
class: "uid-anchor__sublist"
|
|
7354
|
-
},
|
|
7442
|
+
}, Nu = [
|
|
7355
7443
|
"href",
|
|
7356
7444
|
"aria-current",
|
|
7357
7445
|
"onClick"
|
|
7358
|
-
],
|
|
7446
|
+
], Pu = /* @__PURE__ */ f({
|
|
7359
7447
|
__name: "UidAnchor",
|
|
7360
7448
|
props: /* @__PURE__ */ g({
|
|
7361
7449
|
items: {},
|
|
@@ -7422,7 +7510,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7422
7510
|
return (n, r) => (T(), c("nav", {
|
|
7423
7511
|
class: "uid-anchor",
|
|
7424
7512
|
"aria-label": L(i).anchor.label
|
|
7425
|
-
}, [l("ul",
|
|
7513
|
+
}, [l("ul", Au, [(T(!0), c(t, null, k(e.items, (e) => (T(), c("li", {
|
|
7426
7514
|
key: e.key,
|
|
7427
7515
|
class: "uid-anchor__item"
|
|
7428
7516
|
}, [l("a", {
|
|
@@ -7430,7 +7518,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7430
7518
|
class: y(["uid-anchor__link", { "uid-anchor__link--active": o.value === e.key }]),
|
|
7431
7519
|
"aria-current": o.value === e.key ? "location" : void 0,
|
|
7432
7520
|
onClick: (t) => h(t, e)
|
|
7433
|
-
}, 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", {
|
|
7434
7522
|
key: e.key,
|
|
7435
7523
|
class: "uid-anchor__item"
|
|
7436
7524
|
}, [l("a", {
|
|
@@ -7438,18 +7526,18 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7438
7526
|
class: y(["uid-anchor__link", { "uid-anchor__link--active": o.value === e.key }]),
|
|
7439
7527
|
"aria-current": o.value === e.key ? "location" : void 0,
|
|
7440
7528
|
onClick: (t) => h(t, e)
|
|
7441
|
-
}, P(e.title), 11,
|
|
7529
|
+
}, P(e.title), 11, Nu)]))), 128))])) : s("", !0)]))), 128))])], 8, ku));
|
|
7442
7530
|
}
|
|
7443
|
-
}),
|
|
7531
|
+
}), Fu = ["aria-label"], Iu = {
|
|
7444
7532
|
key: 0,
|
|
7445
7533
|
class: "uid-tour__title"
|
|
7446
|
-
},
|
|
7534
|
+
}, Lu = {
|
|
7447
7535
|
key: 1,
|
|
7448
7536
|
class: "uid-tour__description"
|
|
7449
|
-
},
|
|
7537
|
+
}, Ru = { class: "uid-tour__footer" }, zu = {
|
|
7450
7538
|
key: 0,
|
|
7451
7539
|
class: "uid-tour__progress"
|
|
7452
|
-
},
|
|
7540
|
+
}, Bu = { key: 1 }, Vu = { class: "uid-tour__actions" }, Hu = /* @__PURE__ */ f({
|
|
7453
7541
|
__name: "UidTour",
|
|
7454
7542
|
props: /* @__PURE__ */ g({
|
|
7455
7543
|
steps: {},
|
|
@@ -7588,9 +7676,9 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7588
7676
|
class: y(["uid-tour__popover", { "uid-tour__popover--center": N.value }]),
|
|
7589
7677
|
style: b(N.value ? void 0 : M.value)
|
|
7590
7678
|
}, [
|
|
7591
|
-
E.value.title ? (T(), c("h3",
|
|
7592
|
-
E.value.description ? (T(), c("p",
|
|
7593
|
-
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, [
|
|
7594
7682
|
e.showSkip && g.value < e.steps.length - 1 ? (T(), c("button", {
|
|
7595
7683
|
key: 0,
|
|
7596
7684
|
type: "button",
|
|
@@ -7610,21 +7698,21 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7610
7698
|
}, P(g.value === e.steps.length - 1 ? f.value : u.value), 1)
|
|
7611
7699
|
])])
|
|
7612
7700
|
], 6)
|
|
7613
|
-
], 8,
|
|
7701
|
+
], 8, Fu)) : s("", !0)]));
|
|
7614
7702
|
}
|
|
7615
|
-
}),
|
|
7703
|
+
}), Uu = ["for"], Wu = [
|
|
7616
7704
|
"id",
|
|
7617
7705
|
"value",
|
|
7618
7706
|
"placeholder",
|
|
7619
7707
|
"rows",
|
|
7620
7708
|
"disabled"
|
|
7621
|
-
],
|
|
7709
|
+
], Gu = ["onMousedown", "onMouseenter"], Ku = { class: "uid-mention__option-label" }, qu = {
|
|
7622
7710
|
key: 0,
|
|
7623
7711
|
class: "uid-mention__option-hint"
|
|
7624
|
-
},
|
|
7712
|
+
}, Ju = {
|
|
7625
7713
|
key: 0,
|
|
7626
7714
|
class: "uid-mention__empty"
|
|
7627
|
-
},
|
|
7715
|
+
}, Yu = /* @__PURE__ */ f({
|
|
7628
7716
|
inheritAttrs: !1,
|
|
7629
7717
|
__name: "UidMention",
|
|
7630
7718
|
props: /* @__PURE__ */ g({
|
|
@@ -7689,7 +7777,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7689
7777
|
key: 0,
|
|
7690
7778
|
for: L(x),
|
|
7691
7779
|
class: "uid-mention__label"
|
|
7692
|
-
}, P(e.label), 9,
|
|
7780
|
+
}, P(e.label), 9, Uu)) : s("", !0),
|
|
7693
7781
|
l("textarea", _(L(u)(), {
|
|
7694
7782
|
id: L(x),
|
|
7695
7783
|
ref_key: "fieldRef",
|
|
@@ -7704,7 +7792,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7704
7792
|
onKeydown: H,
|
|
7705
7793
|
onKeyup: F,
|
|
7706
7794
|
onBlur: a[0] ||= (e) => S.value = !1
|
|
7707
|
-
}), null, 16,
|
|
7795
|
+
}), null, 16, Wu),
|
|
7708
7796
|
(T(), o(n, { to: "body" }, [S.value ? (T(), c("div", {
|
|
7709
7797
|
key: 0,
|
|
7710
7798
|
ref_key: "panelRef",
|
|
@@ -7717,30 +7805,30 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7717
7805
|
class: y(["uid-mention__option", { "uid-mention__option--active": t === w.value }]),
|
|
7718
7806
|
onMousedown: X((t) => I(e), ["prevent"]),
|
|
7719
7807
|
onMouseenter: (e) => w.value = t
|
|
7720
|
-
}, [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)]))
|
|
7721
7809
|
], 16));
|
|
7722
7810
|
}
|
|
7723
|
-
}),
|
|
7811
|
+
}), Xu = ["for"], Zu = {
|
|
7724
7812
|
key: 0,
|
|
7725
7813
|
class: "uid-tree-select__required",
|
|
7726
7814
|
"aria-hidden": "true"
|
|
7727
|
-
},
|
|
7815
|
+
}, Qu = [
|
|
7728
7816
|
"id",
|
|
7729
7817
|
"aria-expanded",
|
|
7730
7818
|
"aria-controls",
|
|
7731
7819
|
"aria-label",
|
|
7732
7820
|
"aria-disabled",
|
|
7733
7821
|
"aria-invalid"
|
|
7734
|
-
],
|
|
7822
|
+
], $u = { class: "uid-tree-select__value" }, ed = ["aria-label", "onClick"], td = {
|
|
7735
7823
|
key: 0,
|
|
7736
7824
|
class: "uid-tree-select__chip"
|
|
7737
|
-
},
|
|
7825
|
+
}, nd = {
|
|
7738
7826
|
key: 1,
|
|
7739
7827
|
class: "uid-tree-select__placeholder"
|
|
7740
|
-
},
|
|
7828
|
+
}, rd = { key: 0 }, id = {
|
|
7741
7829
|
key: 1,
|
|
7742
7830
|
class: "uid-tree-select__placeholder"
|
|
7743
|
-
},
|
|
7831
|
+
}, ad = { class: "uid-tree-select__suffix" }, od = ["aria-label"], sd = ["id"], cd = /* @__PURE__ */ f({
|
|
7744
7832
|
__name: "UidTreeSelect",
|
|
7745
7833
|
props: /* @__PURE__ */ g({
|
|
7746
7834
|
size: { default: "md" },
|
|
@@ -7869,7 +7957,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7869
7957
|
key: 0,
|
|
7870
7958
|
for: L(A),
|
|
7871
7959
|
class: "uid-tree-select__label"
|
|
7872
|
-
}, [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),
|
|
7873
7961
|
l("div", {
|
|
7874
7962
|
id: L(A),
|
|
7875
7963
|
ref_key: "triggerRef",
|
|
@@ -7885,7 +7973,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7885
7973
|
"aria-invalid": M.value ? "true" : void 0,
|
|
7886
7974
|
onClick: Y,
|
|
7887
7975
|
onKeydown: ae
|
|
7888
|
-
}, [l("div",
|
|
7976
|
+
}, [l("div", $u, [R.value ? (T(), c(t, { key: 0 }, [
|
|
7889
7977
|
(T(!0), c(t, null, k(W.value, (e) => (T(), c("span", {
|
|
7890
7978
|
key: e.key,
|
|
7891
7979
|
class: "uid-tree-select__chip"
|
|
@@ -7894,10 +7982,10 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7894
7982
|
class: "uid-tree-select__chip-remove",
|
|
7895
7983
|
"aria-label": L(p).treeSelect.removeTag(e.label),
|
|
7896
7984
|
onClick: X((t) => ie(t, e.key), ["stop"])
|
|
7897
|
-
}, "×", 8,
|
|
7898
|
-
K.value > 0 ? (T(), c("span",
|
|
7899
|
-
U.value.length === 0 ? (T(), c("span",
|
|
7900
|
-
], 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", {
|
|
7901
7989
|
key: 0,
|
|
7902
7990
|
type: "button",
|
|
7903
7991
|
class: "uid-tree-select__clear",
|
|
@@ -7906,12 +7994,12 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7906
7994
|
}, [d(e, {
|
|
7907
7995
|
icon: L(Ee),
|
|
7908
7996
|
size: 14
|
|
7909
|
-
}, null, 8, ["icon"])], 8,
|
|
7997
|
+
}, null, 8, ["icon"])], 8, od)) : s("", !0), d(e, {
|
|
7910
7998
|
icon: L(se),
|
|
7911
7999
|
size: 16,
|
|
7912
8000
|
class: y(["uid-tree-select__chevron", { "uid-tree-select__chevron--open": v.value }]),
|
|
7913
8001
|
"aria-hidden": "true"
|
|
7914
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
8002
|
+
}, null, 8, ["icon", "class"])])], 40, Qu),
|
|
7915
8003
|
(T(), o(n, { to: "body" }, [v.value ? (T(), c("div", {
|
|
7916
8004
|
key: 0,
|
|
7917
8005
|
id: L(j),
|
|
@@ -7955,19 +8043,19 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7955
8043
|
"selectable",
|
|
7956
8044
|
"default-expand-all",
|
|
7957
8045
|
"show-guides"
|
|
7958
|
-
]))], 12,
|
|
8046
|
+
]))], 12, sd)) : s("", !0)])),
|
|
7959
8047
|
N.value ? (T(), c("p", {
|
|
7960
8048
|
key: 1,
|
|
7961
8049
|
class: y(["uid-tree-select__hint", M.value && "uid-tree-select__hint--error"])
|
|
7962
8050
|
}, P(N.value), 3)) : s("", !0)
|
|
7963
8051
|
], 2));
|
|
7964
8052
|
}
|
|
7965
|
-
}),
|
|
8053
|
+
}), ld = {
|
|
7966
8054
|
key: 0,
|
|
7967
8055
|
class: "uid-notification-badge__dot",
|
|
7968
8056
|
role: "status",
|
|
7969
8057
|
"aria-hidden": "true"
|
|
7970
|
-
},
|
|
8058
|
+
}, ud = ["aria-label"], dd = /* @__PURE__ */ f({
|
|
7971
8059
|
__name: "UidNotificationBadge",
|
|
7972
8060
|
props: {
|
|
7973
8061
|
count: { default: 0 },
|
|
@@ -7994,22 +8082,22 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7994
8082
|
return (t, a) => (T(), c("span", {
|
|
7995
8083
|
class: y(["uid-notification-badge", [`uid-notification-badge--${e.placement}`, e.tone !== "danger" && `uid-notification-badge--${e.tone}`]]),
|
|
7996
8084
|
style: b(i.value)
|
|
7997
|
-
}, [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", {
|
|
7998
8086
|
key: 1,
|
|
7999
8087
|
class: "uid-notification-badge__count",
|
|
8000
8088
|
role: "status",
|
|
8001
8089
|
"aria-label": `${e.count}`
|
|
8002
|
-
}, P(r.value), 9,
|
|
8090
|
+
}, P(r.value), 9, ud)) : s("", !0)], 6));
|
|
8003
8091
|
}
|
|
8004
|
-
}),
|
|
8092
|
+
}), fd = ["aria-hidden", "aria-label"], pd = ["disabled", "aria-label"], md = ["disabled", "aria-label"], hd = {
|
|
8005
8093
|
key: 2,
|
|
8006
8094
|
class: "uid-carousel__indicators",
|
|
8007
8095
|
role: "tablist"
|
|
8008
|
-
},
|
|
8096
|
+
}, gd = [
|
|
8009
8097
|
"aria-selected",
|
|
8010
8098
|
"aria-label",
|
|
8011
8099
|
"onClick"
|
|
8012
|
-
],
|
|
8100
|
+
], _d = /* @__PURE__ */ f({
|
|
8013
8101
|
__name: "UidCarousel",
|
|
8014
8102
|
props: /* @__PURE__ */ g({
|
|
8015
8103
|
items: {},
|
|
@@ -8101,7 +8189,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8101
8189
|
}, [A(r.$slots, "default", {
|
|
8102
8190
|
item: e,
|
|
8103
8191
|
index: t
|
|
8104
|
-
})], 8,
|
|
8192
|
+
})], 8, fd))), 128))], 4),
|
|
8105
8193
|
n.showArrows && _.value > 1 ? (T(), c("button", {
|
|
8106
8194
|
key: 0,
|
|
8107
8195
|
type: "button",
|
|
@@ -8112,7 +8200,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8112
8200
|
}, [d(e, {
|
|
8113
8201
|
icon: n.direction === "vertical" ? L(ue) : L(ce),
|
|
8114
8202
|
size: 20
|
|
8115
|
-
}, null, 8, ["icon"])], 8,
|
|
8203
|
+
}, null, 8, ["icon"])], 8, pd)) : s("", !0),
|
|
8116
8204
|
n.showArrows && _.value > 1 ? (T(), c("button", {
|
|
8117
8205
|
key: 1,
|
|
8118
8206
|
type: "button",
|
|
@@ -8123,8 +8211,8 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8123
8211
|
}, [d(e, {
|
|
8124
8212
|
icon: n.direction === "vertical" ? L(se) : L(le),
|
|
8125
8213
|
size: 20
|
|
8126
|
-
}, null, 8, ["icon"])], 8,
|
|
8127
|
-
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", {
|
|
8128
8216
|
key: t,
|
|
8129
8217
|
type: "button",
|
|
8130
8218
|
class: y(["uid-carousel__indicator", { "uid-carousel__indicator--active": t === p.value }]),
|
|
@@ -8132,38 +8220,38 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8132
8220
|
"aria-selected": t === p.value,
|
|
8133
8221
|
"aria-label": L(u).carousel.slide(t + 1),
|
|
8134
8222
|
onClick: (e) => x(t)
|
|
8135
|
-
}, null, 10,
|
|
8223
|
+
}, null, 10, gd))), 128))])) : s("", !0)
|
|
8136
8224
|
], 34));
|
|
8137
8225
|
}
|
|
8138
|
-
}),
|
|
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 = {
|
|
8139
8227
|
key: 0,
|
|
8140
8228
|
class: "uid-transfer__search"
|
|
8141
|
-
},
|
|
8229
|
+
}, wd = ["placeholder"], Td = {
|
|
8142
8230
|
class: "uid-transfer__list",
|
|
8143
8231
|
role: "listbox",
|
|
8144
8232
|
"aria-multiselectable": "true"
|
|
8145
|
-
},
|
|
8233
|
+
}, Ed = [
|
|
8146
8234
|
"aria-selected",
|
|
8147
8235
|
"aria-disabled",
|
|
8148
8236
|
"onClick"
|
|
8149
|
-
],
|
|
8237
|
+
], Dd = { class: "uid-transfer__label" }, Od = {
|
|
8150
8238
|
key: 0,
|
|
8151
8239
|
class: "uid-transfer__empty"
|
|
8152
|
-
},
|
|
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 = {
|
|
8153
8241
|
key: 0,
|
|
8154
8242
|
class: "uid-transfer__search"
|
|
8155
|
-
},
|
|
8243
|
+
}, Rd = ["placeholder"], zd = {
|
|
8156
8244
|
class: "uid-transfer__list",
|
|
8157
8245
|
role: "listbox",
|
|
8158
8246
|
"aria-multiselectable": "true"
|
|
8159
|
-
},
|
|
8247
|
+
}, Bd = [
|
|
8160
8248
|
"aria-selected",
|
|
8161
8249
|
"aria-disabled",
|
|
8162
8250
|
"onClick"
|
|
8163
|
-
],
|
|
8251
|
+
], Vd = { class: "uid-transfer__label" }, Hd = {
|
|
8164
8252
|
key: 0,
|
|
8165
8253
|
class: "uid-transfer__empty"
|
|
8166
|
-
},
|
|
8254
|
+
}, Ud = /* @__PURE__ */ f({
|
|
8167
8255
|
__name: "UidTransfer",
|
|
8168
8256
|
props: /* @__PURE__ */ g({
|
|
8169
8257
|
items: {},
|
|
@@ -8214,8 +8302,8 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8214
8302
|
p.value = e, g.value = /* @__PURE__ */ new Set(), f("change", e);
|
|
8215
8303
|
}
|
|
8216
8304
|
return (r, i) => (T(), c("div", { class: y(["uid-transfer", { "uid-transfer--disabled": n.disabled }]) }, [
|
|
8217
|
-
l("div",
|
|
8218
|
-
l("div",
|
|
8305
|
+
l("div", vd, [
|
|
8306
|
+
l("div", yd, [l("span", bd, [l("span", {
|
|
8219
8307
|
class: y(["uid-transfer__check", { "uid-transfer__check--checked": j.value }]),
|
|
8220
8308
|
role: "checkbox",
|
|
8221
8309
|
"aria-checked": j.value,
|
|
@@ -8226,14 +8314,14 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8226
8314
|
key: 0,
|
|
8227
8315
|
icon: L(Q),
|
|
8228
8316
|
size: 10
|
|
8229
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
8230
|
-
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", {
|
|
8231
8319
|
"onUpdate:modelValue": i[3] ||= (e) => _.value = e,
|
|
8232
8320
|
class: "uid-transfer__search-input",
|
|
8233
8321
|
type: "text",
|
|
8234
8322
|
placeholder: L(m).common.search
|
|
8235
|
-
}, null, 8,
|
|
8236
|
-
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", {
|
|
8237
8325
|
key: t.key,
|
|
8238
8326
|
class: y(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
8239
8327
|
role: "option",
|
|
@@ -8247,9 +8335,9 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8247
8335
|
key: 0,
|
|
8248
8336
|
icon: L(Q),
|
|
8249
8337
|
size: 10
|
|
8250
|
-
}, 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)])
|
|
8251
8339
|
]),
|
|
8252
|
-
l("div",
|
|
8340
|
+
l("div", kd, [l("button", {
|
|
8253
8341
|
type: "button",
|
|
8254
8342
|
class: "uid-transfer__op",
|
|
8255
8343
|
disabled: h.value.size === 0 || n.disabled,
|
|
@@ -8258,7 +8346,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8258
8346
|
}, [d(e, {
|
|
8259
8347
|
icon: L(le),
|
|
8260
8348
|
size: 16
|
|
8261
|
-
}, null, 8, ["icon"])], 8,
|
|
8349
|
+
}, null, 8, ["icon"])], 8, Ad), l("button", {
|
|
8262
8350
|
type: "button",
|
|
8263
8351
|
class: "uid-transfer__op",
|
|
8264
8352
|
disabled: g.value.size === 0 || n.disabled,
|
|
@@ -8267,9 +8355,9 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8267
8355
|
}, [d(e, {
|
|
8268
8356
|
icon: L(ce),
|
|
8269
8357
|
size: 16
|
|
8270
|
-
}, null, 8, ["icon"])], 8,
|
|
8271
|
-
l("div",
|
|
8272
|
-
l("div",
|
|
8358
|
+
}, null, 8, ["icon"])], 8, jd)]),
|
|
8359
|
+
l("div", Md, [
|
|
8360
|
+
l("div", Nd, [l("span", Pd, [l("span", {
|
|
8273
8361
|
class: y(["uid-transfer__check", { "uid-transfer__check--checked": M.value }]),
|
|
8274
8362
|
role: "checkbox",
|
|
8275
8363
|
"aria-checked": M.value,
|
|
@@ -8280,14 +8368,14 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8280
8368
|
key: 0,
|
|
8281
8369
|
icon: L(Q),
|
|
8282
8370
|
size: 10
|
|
8283
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
8284
|
-
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", {
|
|
8285
8373
|
"onUpdate:modelValue": i[7] ||= (e) => v.value = e,
|
|
8286
8374
|
class: "uid-transfer__search-input",
|
|
8287
8375
|
type: "text",
|
|
8288
8376
|
placeholder: L(m).common.search
|
|
8289
|
-
}, null, 8,
|
|
8290
|
-
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", {
|
|
8291
8379
|
key: t.key,
|
|
8292
8380
|
class: y(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
8293
8381
|
role: "option",
|
|
@@ -8301,60 +8389,60 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8301
8389
|
key: 0,
|
|
8302
8390
|
icon: L(Q),
|
|
8303
8391
|
size: 10
|
|
8304
|
-
}, 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)])
|
|
8305
8393
|
])
|
|
8306
8394
|
], 2));
|
|
8307
8395
|
}
|
|
8308
|
-
}),
|
|
8396
|
+
}), Wd = {
|
|
8309
8397
|
key: 0,
|
|
8310
8398
|
class: "uid-cascader__label"
|
|
8311
|
-
},
|
|
8399
|
+
}, Gd = [
|
|
8312
8400
|
"aria-expanded",
|
|
8313
8401
|
"aria-disabled",
|
|
8314
8402
|
"aria-label"
|
|
8315
|
-
],
|
|
8403
|
+
], Kd = { class: "uid-cascader__value" }, qd = {
|
|
8316
8404
|
key: 0,
|
|
8317
8405
|
class: "uid-cascader__separator"
|
|
8318
|
-
},
|
|
8406
|
+
}, Jd = {
|
|
8319
8407
|
key: 1,
|
|
8320
8408
|
class: "uid-cascader__placeholder"
|
|
8321
|
-
},
|
|
8409
|
+
}, Yd = { class: "uid-cascader__suffix" }, Xd = ["aria-label"], Zd = {
|
|
8322
8410
|
key: 0,
|
|
8323
8411
|
class: "uid-cascader__search"
|
|
8324
|
-
},
|
|
8412
|
+
}, Qd = [
|
|
8325
8413
|
"aria-expanded",
|
|
8326
8414
|
"aria-controls",
|
|
8327
8415
|
"aria-activedescendant",
|
|
8328
8416
|
"aria-label",
|
|
8329
8417
|
"placeholder"
|
|
8330
|
-
],
|
|
8418
|
+
], $d = ["id"], ef = [
|
|
8331
8419
|
"id",
|
|
8332
8420
|
"aria-selected",
|
|
8333
8421
|
"onMouseenter",
|
|
8334
8422
|
"onClick"
|
|
8335
|
-
],
|
|
8423
|
+
], tf = {
|
|
8336
8424
|
key: 0,
|
|
8337
8425
|
class: "uid-cascader__separator"
|
|
8338
|
-
},
|
|
8426
|
+
}, nf = {
|
|
8339
8427
|
key: 0,
|
|
8340
8428
|
class: "uid-cascader__highlight"
|
|
8341
|
-
},
|
|
8429
|
+
}, rf = {
|
|
8342
8430
|
key: 0,
|
|
8343
8431
|
class: "uid-cascader__empty",
|
|
8344
8432
|
role: "presentation"
|
|
8345
|
-
},
|
|
8433
|
+
}, af = {
|
|
8346
8434
|
key: 2,
|
|
8347
8435
|
class: "uid-cascader__columns"
|
|
8348
|
-
},
|
|
8436
|
+
}, of = [
|
|
8349
8437
|
"aria-haspopup",
|
|
8350
8438
|
"aria-expanded",
|
|
8351
8439
|
"aria-disabled",
|
|
8352
8440
|
"onClick",
|
|
8353
8441
|
"onMouseenter"
|
|
8354
|
-
],
|
|
8442
|
+
], sf = { class: "uid-cascader__option-label" }, cf = {
|
|
8355
8443
|
key: 1,
|
|
8356
8444
|
class: "uid-cascader__hint"
|
|
8357
|
-
},
|
|
8445
|
+
}, lf = /* @__PURE__ */ f({
|
|
8358
8446
|
__name: "UidCascader",
|
|
8359
8447
|
props: /* @__PURE__ */ g({
|
|
8360
8448
|
size: { default: "md" },
|
|
@@ -8533,7 +8621,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8533
8621
|
"uid-cascader--disabled": r.disabled
|
|
8534
8622
|
}]])
|
|
8535
8623
|
}, [
|
|
8536
|
-
r.label ? (T(), c("label",
|
|
8624
|
+
r.label ? (T(), c("label", Wd, P(r.label), 1)) : s("", !0),
|
|
8537
8625
|
l("div", {
|
|
8538
8626
|
ref_key: "triggerRef",
|
|
8539
8627
|
ref: E,
|
|
@@ -8546,7 +8634,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8546
8634
|
"aria-label": g.value,
|
|
8547
8635
|
onClick: ae,
|
|
8548
8636
|
onKeydown: pe
|
|
8549
|
-
}, [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", {
|
|
8550
8638
|
key: 0,
|
|
8551
8639
|
type: "button",
|
|
8552
8640
|
class: "uid-cascader__clear",
|
|
@@ -8555,18 +8643,18 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8555
8643
|
}, [d(e, {
|
|
8556
8644
|
icon: L(Ee),
|
|
8557
8645
|
size: 14
|
|
8558
|
-
}, null, 8, ["icon"])], 8,
|
|
8646
|
+
}, null, 8, ["icon"])], 8, Xd)) : s("", !0), d(e, {
|
|
8559
8647
|
icon: L(se),
|
|
8560
8648
|
size: 16,
|
|
8561
8649
|
class: y(["uid-cascader__chevron", { "uid-cascader__chevron--open": _.value }])
|
|
8562
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
8650
|
+
}, null, 8, ["icon", "class"])])], 40, Gd),
|
|
8563
8651
|
(T(), o(n, { to: "body" }, [_.value ? (T(), c("div", {
|
|
8564
8652
|
key: 0,
|
|
8565
8653
|
ref_key: "panelRef",
|
|
8566
8654
|
ref: D,
|
|
8567
8655
|
class: "uid-cascader__dropdown",
|
|
8568
8656
|
style: b(L(A))
|
|
8569
|
-
}, [r.searchable ? (T(), c("div",
|
|
8657
|
+
}, [r.searchable ? (T(), c("div", Zd, [J(l("input", {
|
|
8570
8658
|
ref_key: "searchRef",
|
|
8571
8659
|
ref: w,
|
|
8572
8660
|
"onUpdate:modelValue": a[0] ||= (e) => M.value = e,
|
|
@@ -8581,7 +8669,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8581
8669
|
"aria-label": r.searchPlaceholder ?? L(h).common.search,
|
|
8582
8670
|
placeholder: r.searchPlaceholder ?? L(h).common.search,
|
|
8583
8671
|
onKeydown: Y
|
|
8584
|
-
}, null, 40,
|
|
8672
|
+
}, null, 40, Qd), [[U, M.value]])])) : s("", !0), H.value ? (T(), c("ul", {
|
|
8585
8673
|
key: 1,
|
|
8586
8674
|
id: L(F),
|
|
8587
8675
|
class: "uid-cascader__results",
|
|
@@ -8595,7 +8683,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8595
8683
|
onMousedown: a[1] ||= X(() => {}, ["prevent"]),
|
|
8596
8684
|
onMouseenter: (e) => N.value = n,
|
|
8597
8685
|
onClick: (t) => q(e)
|
|
8598
|
-
}, [(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", {
|
|
8599
8687
|
key: i,
|
|
8600
8688
|
class: "uid-cascader__column"
|
|
8601
8689
|
}, [(T(!0), c(t, null, k(n, (t) => (T(), c("button", {
|
|
@@ -8611,27 +8699,27 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8611
8699
|
"aria-disabled": t.disabled ? "true" : void 0,
|
|
8612
8700
|
onClick: (e) => ce(t, i),
|
|
8613
8701
|
onMouseenter: (e) => ue(t, i)
|
|
8614
|
-
}, [l("span",
|
|
8702
|
+
}, [l("span", sf, P(t.label), 1), t.children?.length ? (T(), o(e, {
|
|
8615
8703
|
key: 0,
|
|
8616
8704
|
icon: L(le),
|
|
8617
8705
|
size: 14,
|
|
8618
8706
|
class: "uid-cascader__option-arrow",
|
|
8619
8707
|
"aria-hidden": "true"
|
|
8620
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
8621
|
-
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)
|
|
8622
8710
|
], 2));
|
|
8623
8711
|
}
|
|
8624
|
-
}),
|
|
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 = [
|
|
8625
8713
|
"tabindex",
|
|
8626
8714
|
"aria-current",
|
|
8627
8715
|
"aria-selected",
|
|
8628
8716
|
"aria-label",
|
|
8629
8717
|
"onClick",
|
|
8630
8718
|
"onKeydown"
|
|
8631
|
-
],
|
|
8719
|
+
], vf = { class: "uid-calendar__date" }, yf = { class: "uid-calendar__events" }, bf = ["title", "onClick"], xf = { class: "uid-calendar__event-label" }, Sf = {
|
|
8632
8720
|
key: 0,
|
|
8633
8721
|
class: "uid-calendar__more"
|
|
8634
|
-
},
|
|
8722
|
+
}, Cf = /* @__PURE__ */ f({
|
|
8635
8723
|
__name: "UidCalendar",
|
|
8636
8724
|
props: /* @__PURE__ */ g({
|
|
8637
8725
|
events: { default: () => [] },
|
|
@@ -8718,7 +8806,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8718
8806
|
e.stopPropagation(), o("event-click", t);
|
|
8719
8807
|
}
|
|
8720
8808
|
return (r, i) => (T(), c("div", { class: y(["uid-calendar", { "uid-calendar--compact": n.compact }]) }, [
|
|
8721
|
-
l("div",
|
|
8809
|
+
l("div", uf, [l("span", df, P(x.value), 1), l("div", ff, [
|
|
8722
8810
|
l("button", {
|
|
8723
8811
|
type: "button",
|
|
8724
8812
|
class: "uid-calendar__btn uid-calendar__btn--icon",
|
|
@@ -8727,7 +8815,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8727
8815
|
}, [d(e, {
|
|
8728
8816
|
icon: L(ce),
|
|
8729
8817
|
size: 14
|
|
8730
|
-
}, null, 8, ["icon"])], 8,
|
|
8818
|
+
}, null, 8, ["icon"])], 8, pf),
|
|
8731
8819
|
l("button", {
|
|
8732
8820
|
type: "button",
|
|
8733
8821
|
class: "uid-calendar__btn",
|
|
@@ -8741,13 +8829,13 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8741
8829
|
}, [d(e, {
|
|
8742
8830
|
icon: L(le),
|
|
8743
8831
|
size: 14
|
|
8744
|
-
}, null, 8, ["icon"])], 8,
|
|
8832
|
+
}, null, 8, ["icon"])], 8, mf)
|
|
8745
8833
|
])]),
|
|
8746
|
-
l("div",
|
|
8834
|
+
l("div", hf, [(T(!0), c(t, null, k(L(f).datePicker.weekdaysShort, (e) => (T(), c("span", {
|
|
8747
8835
|
key: e,
|
|
8748
8836
|
class: "uid-calendar__weekday"
|
|
8749
8837
|
}, P(e), 1))), 128))]),
|
|
8750
|
-
l("div",
|
|
8838
|
+
l("div", gf, [(T(!0), c(t, null, k(w.value, (e) => (T(), c("div", {
|
|
8751
8839
|
key: e.iso,
|
|
8752
8840
|
class: y(["uid-calendar__day", {
|
|
8753
8841
|
"uid-calendar__day--other": !e.current,
|
|
@@ -8762,30 +8850,30 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8762
8850
|
"aria-label": e.iso,
|
|
8763
8851
|
onClick: (t) => M(e),
|
|
8764
8852
|
onKeydown: [Y(X((t) => M(e), ["prevent"]), ["enter"]), Y(X((t) => M(e), ["prevent"]), ["space"])]
|
|
8765
|
-
}, [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", {
|
|
8766
8854
|
key: t.id ?? `${e.iso}-${n}`,
|
|
8767
8855
|
type: "button",
|
|
8768
8856
|
class: "uid-calendar__event",
|
|
8769
8857
|
style: b(t.color ? { "--uid-event-color": t.color } : void 0),
|
|
8770
8858
|
title: t.title,
|
|
8771
8859
|
onClick: (e) => N(e, t)
|
|
8772
|
-
}, [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))])
|
|
8773
8861
|
], 2));
|
|
8774
8862
|
}
|
|
8775
|
-
}),
|
|
8863
|
+
}), wf = ["aria-label"], Tf = [
|
|
8776
8864
|
"viewBox",
|
|
8777
8865
|
"width",
|
|
8778
8866
|
"height"
|
|
8779
|
-
],
|
|
8867
|
+
], Ef = [
|
|
8780
8868
|
"x2",
|
|
8781
8869
|
"y1",
|
|
8782
8870
|
"y2"
|
|
8783
|
-
],
|
|
8871
|
+
], Df = [
|
|
8784
8872
|
"x",
|
|
8785
8873
|
"y",
|
|
8786
8874
|
"width",
|
|
8787
8875
|
"height"
|
|
8788
|
-
],
|
|
8876
|
+
], Of = ["d"], kf = ["d"], Af = ["cx", "cy"], jf = ["cx", "cy"], Mf = 2, Nf = /* @__PURE__ */ f({
|
|
8789
8877
|
__name: "UidSparkline",
|
|
8790
8878
|
props: {
|
|
8791
8879
|
data: {},
|
|
@@ -8828,11 +8916,11 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8828
8916
|
};
|
|
8829
8917
|
});
|
|
8830
8918
|
function o(e, t) {
|
|
8831
|
-
return t <= 1 ? n.width / 2 :
|
|
8919
|
+
return t <= 1 ? n.width / 2 : Mf + e / (t - 1) * (n.width - Mf * 2);
|
|
8832
8920
|
}
|
|
8833
8921
|
function u(e) {
|
|
8834
8922
|
let t = i.value, r = (e - t.min) / (t.max - t.min);
|
|
8835
|
-
return n.height -
|
|
8923
|
+
return n.height - Mf - r * (n.height - Mf * 2);
|
|
8836
8924
|
}
|
|
8837
8925
|
let d = a(() => n.data.map((e, t) => ({
|
|
8838
8926
|
x: o(t, n.data.length),
|
|
@@ -8851,14 +8939,14 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8851
8939
|
}), p = a(() => {
|
|
8852
8940
|
let e = d.value;
|
|
8853
8941
|
if (e.length === 0) return "";
|
|
8854
|
-
let t = n.height -
|
|
8942
|
+
let t = n.height - Mf;
|
|
8855
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`;
|
|
8856
8944
|
}), m = a(() => {
|
|
8857
8945
|
let e = d.value, t = e.length;
|
|
8858
8946
|
if (t === 0) return [];
|
|
8859
|
-
let r = n.width -
|
|
8947
|
+
let r = n.width - Mf * 2, i = Math.max(1, r / t * .7), a = u(0);
|
|
8860
8948
|
return e.map((e, n) => {
|
|
8861
|
-
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;
|
|
8862
8950
|
return {
|
|
8863
8951
|
x: o,
|
|
8864
8952
|
y: c,
|
|
@@ -8895,59 +8983,59 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8895
8983
|
x2: e.width,
|
|
8896
8984
|
y1: h.value,
|
|
8897
8985
|
y2: h.value
|
|
8898
|
-
}, 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", {
|
|
8899
8987
|
key: t,
|
|
8900
8988
|
class: y(["uid-sparkline__bar", { "uid-sparkline__bar--negative": e.negative }]),
|
|
8901
8989
|
x: e.x,
|
|
8902
8990
|
y: e.y,
|
|
8903
8991
|
width: e.width,
|
|
8904
8992
|
height: e.height
|
|
8905
|
-
}, null, 10,
|
|
8993
|
+
}, null, 10, Df))), 128)) : (T(), c(t, { key: 2 }, [
|
|
8906
8994
|
e.type === "area" ? (T(), c("path", {
|
|
8907
8995
|
key: 0,
|
|
8908
8996
|
class: "uid-sparkline__area",
|
|
8909
8997
|
d: p.value
|
|
8910
|
-
}, null, 8,
|
|
8998
|
+
}, null, 8, Of)) : s("", !0),
|
|
8911
8999
|
l("path", {
|
|
8912
9000
|
class: "uid-sparkline__line",
|
|
8913
9001
|
d: f.value
|
|
8914
|
-
}, null, 8,
|
|
9002
|
+
}, null, 8, kf),
|
|
8915
9003
|
e.showDots ? (T(!0), c(t, { key: 1 }, k(d.value, (e, t) => (T(), c("circle", {
|
|
8916
9004
|
key: t,
|
|
8917
9005
|
class: "uid-sparkline__dot",
|
|
8918
9006
|
cx: e.x,
|
|
8919
9007
|
cy: e.y,
|
|
8920
9008
|
r: "2.5"
|
|
8921
|
-
}, null, 8,
|
|
9009
|
+
}, null, 8, Af))), 128)) : s("", !0),
|
|
8922
9010
|
e.showLast && _.value && !e.showDots ? (T(), c("circle", {
|
|
8923
9011
|
key: 2,
|
|
8924
9012
|
class: "uid-sparkline__dot uid-sparkline__dot--last",
|
|
8925
9013
|
cx: _.value.x,
|
|
8926
9014
|
cy: _.value.y,
|
|
8927
9015
|
r: "2.5"
|
|
8928
|
-
}, null, 8,
|
|
8929
|
-
], 64))], 8,
|
|
9016
|
+
}, null, 8, jf)) : s("", !0)
|
|
9017
|
+
], 64))], 8, Tf))], 12, wf));
|
|
8930
9018
|
}
|
|
8931
|
-
}),
|
|
9019
|
+
}), Pf = ["aria-valuemax", "aria-valuenow"], Ff = [
|
|
8932
9020
|
"width",
|
|
8933
9021
|
"height",
|
|
8934
9022
|
"viewBox"
|
|
8935
|
-
],
|
|
9023
|
+
], If = [
|
|
8936
9024
|
"cx",
|
|
8937
9025
|
"cy",
|
|
8938
9026
|
"r",
|
|
8939
9027
|
"stroke-width"
|
|
8940
|
-
],
|
|
9028
|
+
], Lf = [
|
|
8941
9029
|
"cx",
|
|
8942
9030
|
"cy",
|
|
8943
9031
|
"r",
|
|
8944
9032
|
"stroke-width",
|
|
8945
9033
|
"stroke-dasharray",
|
|
8946
9034
|
"stroke-dashoffset"
|
|
8947
|
-
],
|
|
9035
|
+
], Rf = {
|
|
8948
9036
|
key: 0,
|
|
8949
9037
|
class: "uid-progress-ring__label"
|
|
8950
|
-
},
|
|
9038
|
+
}, zf = /* @__PURE__ */ f({
|
|
8951
9039
|
__name: "UidProgressRing",
|
|
8952
9040
|
props: {
|
|
8953
9041
|
value: { default: 0 },
|
|
@@ -8992,7 +9080,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8992
9080
|
cy: i.value,
|
|
8993
9081
|
r: n.value,
|
|
8994
9082
|
"stroke-width": e.strokeWidth
|
|
8995
|
-
}, null, 8,
|
|
9083
|
+
}, null, 8, If), l("circle", {
|
|
8996
9084
|
class: "uid-progress-ring__progress",
|
|
8997
9085
|
cx: i.value,
|
|
8998
9086
|
cy: i.value,
|
|
@@ -9000,50 +9088,50 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9000
9088
|
"stroke-width": e.strokeWidth,
|
|
9001
9089
|
"stroke-dasharray": r.value,
|
|
9002
9090
|
"stroke-dashoffset": f.value
|
|
9003
|
-
}, 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));
|
|
9004
9092
|
}
|
|
9005
|
-
}),
|
|
9093
|
+
}), Bf = [
|
|
9006
9094
|
"aria-valuemin",
|
|
9007
9095
|
"aria-valuemax",
|
|
9008
9096
|
"aria-valuenow",
|
|
9009
9097
|
"aria-label"
|
|
9010
|
-
],
|
|
9098
|
+
], Vf = [
|
|
9011
9099
|
"width",
|
|
9012
9100
|
"height",
|
|
9013
9101
|
"viewBox"
|
|
9014
|
-
],
|
|
9102
|
+
], Hf = ["d", "stroke-width"], Uf = [
|
|
9015
9103
|
"d",
|
|
9016
9104
|
"stroke",
|
|
9017
9105
|
"stroke-width",
|
|
9018
9106
|
"stroke-dasharray",
|
|
9019
9107
|
"stroke-dashoffset"
|
|
9020
|
-
],
|
|
9108
|
+
], Wf = [
|
|
9021
9109
|
"d",
|
|
9022
9110
|
"stroke-width",
|
|
9023
9111
|
"stroke-dasharray",
|
|
9024
9112
|
"stroke-dashoffset"
|
|
9025
|
-
],
|
|
9113
|
+
], Gf = { key: 2 }, Kf = [
|
|
9026
9114
|
"x1",
|
|
9027
9115
|
"y1",
|
|
9028
9116
|
"x2",
|
|
9029
9117
|
"y2",
|
|
9030
9118
|
"transform"
|
|
9031
|
-
],
|
|
9119
|
+
], qf = ["cx", "cy"], Jf = {
|
|
9032
9120
|
key: 0,
|
|
9033
9121
|
class: "uid-gauge__content"
|
|
9034
|
-
},
|
|
9122
|
+
}, Yf = {
|
|
9035
9123
|
key: 0,
|
|
9036
9124
|
class: "uid-gauge__value"
|
|
9037
|
-
},
|
|
9125
|
+
}, Xf = {
|
|
9038
9126
|
key: 0,
|
|
9039
9127
|
class: "uid-gauge__suffix"
|
|
9040
|
-
},
|
|
9128
|
+
}, Zf = {
|
|
9041
9129
|
key: 1,
|
|
9042
9130
|
class: "uid-gauge__label"
|
|
9043
|
-
},
|
|
9131
|
+
}, Qf = {
|
|
9044
9132
|
key: 1,
|
|
9045
9133
|
class: "uid-gauge__limits"
|
|
9046
|
-
},
|
|
9134
|
+
}, $f = 4, ep = /* @__PURE__ */ f({
|
|
9047
9135
|
__name: "UidGauge",
|
|
9048
9136
|
props: {
|
|
9049
9137
|
value: { default: 0 },
|
|
@@ -9073,7 +9161,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9073
9161
|
locale: { default: void 0 }
|
|
9074
9162
|
},
|
|
9075
9163
|
setup(e) {
|
|
9076
|
-
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(() => {
|
|
9077
9165
|
let e = n.max - n.min;
|
|
9078
9166
|
return e <= 0 ? 0 : (m.value - n.min) / e;
|
|
9079
9167
|
}), g = a(() => {
|
|
@@ -9111,7 +9199,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9111
9199
|
class: "uid-gauge__track",
|
|
9112
9200
|
d: g.value,
|
|
9113
9201
|
"stroke-width": e.strokeWidth
|
|
9114
|
-
}, null, 8,
|
|
9202
|
+
}, null, 8, Hf),
|
|
9115
9203
|
e.ranges && e.ranges.length ? (T(!0), c(t, { key: 0 }, k(e.ranges, (t, n) => (T(), c("path", {
|
|
9116
9204
|
key: n,
|
|
9117
9205
|
class: "uid-gauge__range",
|
|
@@ -9120,7 +9208,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9120
9208
|
"stroke-width": e.strokeWidth,
|
|
9121
9209
|
"stroke-dasharray": v(t).dasharray,
|
|
9122
9210
|
"stroke-dashoffset": v(t).dashoffset
|
|
9123
|
-
}, null, 8,
|
|
9211
|
+
}, null, 8, Uf))), 128)) : s("", !0),
|
|
9124
9212
|
!e.ranges || e.ranges.length === 0 ? (T(), c("path", {
|
|
9125
9213
|
key: 1,
|
|
9126
9214
|
class: "uid-gauge__progress",
|
|
@@ -9128,43 +9216,43 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9128
9216
|
"stroke-width": e.strokeWidth,
|
|
9129
9217
|
"stroke-dasharray": p.value,
|
|
9130
9218
|
"stroke-dashoffset": _.value
|
|
9131
|
-
}, null, 8,
|
|
9132
|
-
e.showNeedle ? (T(), c("g",
|
|
9219
|
+
}, null, 8, Wf)) : s("", !0),
|
|
9220
|
+
e.showNeedle ? (T(), c("g", Gf, [l("line", {
|
|
9133
9221
|
class: "uid-gauge__needle",
|
|
9134
9222
|
x1: u.value,
|
|
9135
9223
|
y1: d.value,
|
|
9136
9224
|
x2: u.value + o.value - e.strokeWidth,
|
|
9137
9225
|
y2: d.value,
|
|
9138
9226
|
transform: `rotate(${x.value} ${u.value} ${d.value})`
|
|
9139
|
-
}, null, 8,
|
|
9227
|
+
}, null, 8, Kf), l("circle", {
|
|
9140
9228
|
class: "uid-gauge__needle-pivot",
|
|
9141
9229
|
cx: u.value,
|
|
9142
9230
|
cy: d.value,
|
|
9143
9231
|
r: "4"
|
|
9144
|
-
}, null, 8,
|
|
9145
|
-
], 8,
|
|
9146
|
-
e.showValue || e.label ? (T(), c("div",
|
|
9147
|
-
e.showLimits ? (T(), c("div",
|
|
9148
|
-
], 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));
|
|
9149
9237
|
}
|
|
9150
|
-
}),
|
|
9238
|
+
}), tp = ["aria-label"], np = { class: "uid-heatmap__chart" }, rp = {
|
|
9151
9239
|
key: 0,
|
|
9152
9240
|
class: "uid-heatmap__weekdays",
|
|
9153
9241
|
"aria-hidden": "true"
|
|
9154
|
-
},
|
|
9242
|
+
}, ip = { class: "uid-heatmap__grid-wrapper" }, ap = [
|
|
9155
9243
|
"width",
|
|
9156
9244
|
"height",
|
|
9157
9245
|
"viewBox"
|
|
9158
|
-
],
|
|
9246
|
+
], op = [
|
|
9159
9247
|
"x",
|
|
9160
9248
|
"y",
|
|
9161
9249
|
"width",
|
|
9162
9250
|
"height",
|
|
9163
9251
|
"fill"
|
|
9164
|
-
],
|
|
9252
|
+
], sp = {
|
|
9165
9253
|
key: 0,
|
|
9166
9254
|
class: "uid-heatmap__legend"
|
|
9167
|
-
},
|
|
9255
|
+
}, cp = /* @__PURE__ */ f({
|
|
9168
9256
|
__name: "UidHeatmap",
|
|
9169
9257
|
props: {
|
|
9170
9258
|
data: {},
|
|
@@ -9270,10 +9358,10 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9270
9358
|
style: b(w.value),
|
|
9271
9359
|
role: "img",
|
|
9272
9360
|
"aria-label": A.value
|
|
9273
|
-
}, [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", {
|
|
9274
9362
|
key: e,
|
|
9275
9363
|
class: y(["uid-heatmap__weekday", { "uid-heatmap__weekday--visible": t === 0 || t === 2 || t === 4 }])
|
|
9276
|
-
}, P(e), 3))), 128))])) : s("", !0), l("div",
|
|
9364
|
+
}, P(e), 3))), 128))])) : s("", !0), l("div", ip, [e.showMonths ? (T(), c("div", {
|
|
9277
9365
|
key: 0,
|
|
9278
9366
|
class: "uid-heatmap__months",
|
|
9279
9367
|
style: b({ width: `${S.value}px` }),
|
|
@@ -9296,7 +9384,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9296
9384
|
width: e.cellSize,
|
|
9297
9385
|
height: e.cellSize,
|
|
9298
9386
|
fill: v(t.level)
|
|
9299
|
-
}, [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, [
|
|
9300
9388
|
l("span", null, P(L(r).heatmap.less), 1),
|
|
9301
9389
|
(T(!0), c(t, null, k(E.value, (e) => (T(), c("span", {
|
|
9302
9390
|
key: e,
|
|
@@ -9304,9 +9392,9 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9304
9392
|
style: b(e === 0 ? void 0 : { background: v(e) })
|
|
9305
9393
|
}, null, 4))), 128)),
|
|
9306
9394
|
l("span", null, P(L(r).heatmap.more), 1)
|
|
9307
|
-
])) : s("", !0)], 12,
|
|
9395
|
+
])) : s("", !0)], 12, tp));
|
|
9308
9396
|
}
|
|
9309
|
-
}),
|
|
9397
|
+
}), lp = {
|
|
9310
9398
|
default: ["color-mix(in srgb, var(--uid-heatmap-matrix-color) 14%, var(--uid-color-bg))", "var(--uid-heatmap-matrix-color)"],
|
|
9311
9399
|
viridis: [
|
|
9312
9400
|
"#440154",
|
|
@@ -9386,42 +9474,42 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9386
9474
|
"#67000d"
|
|
9387
9475
|
]
|
|
9388
9476
|
};
|
|
9389
|
-
function
|
|
9390
|
-
return Object.prototype.hasOwnProperty.call(
|
|
9477
|
+
function up(e) {
|
|
9478
|
+
return Object.prototype.hasOwnProperty.call(lp, e);
|
|
9391
9479
|
}
|
|
9392
|
-
function
|
|
9480
|
+
function dp(e) {
|
|
9393
9481
|
if (Array.isArray(e)) {
|
|
9394
9482
|
let t = e.filter((e) => typeof e == "string" && e.trim() !== "");
|
|
9395
|
-
return t.length > 0 ? t : [
|
|
9483
|
+
return t.length > 0 ? t : [...lp.default];
|
|
9396
9484
|
}
|
|
9397
9485
|
let t = typeof e == "string" ? e.trim() : "";
|
|
9398
|
-
if (t === "") return [
|
|
9486
|
+
if (t === "") return [...lp.default];
|
|
9399
9487
|
let n = t.toLowerCase();
|
|
9400
|
-
return
|
|
9488
|
+
return up(n) ? [...lp[n]] : fp(t) ? [`color-mix(in srgb, ${t} 14%, var(--uid-color-bg))`, t] : [...lp.default];
|
|
9401
9489
|
}
|
|
9402
|
-
function
|
|
9490
|
+
function fp(e) {
|
|
9403
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);
|
|
9404
9492
|
}
|
|
9405
|
-
function
|
|
9493
|
+
function pp(e, t) {
|
|
9406
9494
|
if (e.length === 0) return "transparent";
|
|
9407
9495
|
if (e.length === 1) return e[0];
|
|
9408
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;
|
|
9409
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]})`;
|
|
9410
9498
|
}
|
|
9411
|
-
function
|
|
9499
|
+
function mp(e) {
|
|
9412
9500
|
return e.length === 1 ? e[0] : `linear-gradient(to right, ${e.join(", ")})`;
|
|
9413
9501
|
}
|
|
9414
9502
|
//#endregion
|
|
9415
9503
|
//#region src/components/Heatmap/UidHeatmapMatrix.vue?vue&type=script&setup=true&lang.ts
|
|
9416
|
-
var
|
|
9504
|
+
var hp = { class: "uid-heatmap-matrix__scroll" }, gp = [
|
|
9417
9505
|
"aria-label",
|
|
9418
9506
|
"aria-rowcount",
|
|
9419
9507
|
"aria-colcount"
|
|
9420
|
-
],
|
|
9508
|
+
], _p = {
|
|
9421
9509
|
class: "uid-heatmap-matrix__row uid-heatmap-matrix__row--head",
|
|
9422
9510
|
role: "row",
|
|
9423
9511
|
"aria-rowindex": "1"
|
|
9424
|
-
},
|
|
9512
|
+
}, vp = ["aria-colindex", "aria-label"], yp = ["title"], bp = ["aria-rowindex"], xp = ["title"], Sp = [
|
|
9425
9513
|
"aria-colindex",
|
|
9426
9514
|
"aria-label",
|
|
9427
9515
|
"tabindex",
|
|
@@ -9429,14 +9517,14 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9429
9517
|
"data-c",
|
|
9430
9518
|
"onMouseenter",
|
|
9431
9519
|
"onFocus"
|
|
9432
|
-
],
|
|
9520
|
+
], Cp = { class: "uid-heatmap-matrix__tooltip-label" }, wp = { class: "uid-heatmap-matrix__tooltip-value" }, Tp = {
|
|
9433
9521
|
key: 1,
|
|
9434
9522
|
class: "uid-heatmap-matrix__legend",
|
|
9435
9523
|
"aria-hidden": "true"
|
|
9436
|
-
},
|
|
9524
|
+
}, Ep = { class: "uid-heatmap-matrix__legend-value" }, Dp = { class: "uid-heatmap-matrix__legend-value" }, Op = {
|
|
9437
9525
|
key: 0,
|
|
9438
9526
|
class: "uid-heatmap-matrix__legend-empty"
|
|
9439
|
-
},
|
|
9527
|
+
}, kp = 11, Ap = 96, jp = 18, Mp = /* @__PURE__ */ f({
|
|
9440
9528
|
__name: "UidHeatmapMatrix",
|
|
9441
9529
|
props: {
|
|
9442
9530
|
rows: {},
|
|
@@ -9472,13 +9560,13 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9472
9560
|
min: typeof n.min == "number" ? n.min : e,
|
|
9473
9561
|
max: typeof n.max == "number" ? n.max : t
|
|
9474
9562
|
};
|
|
9475
|
-
}), 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));
|
|
9476
9564
|
function E(e) {
|
|
9477
9565
|
let { min: t, max: n } = _.value;
|
|
9478
9566
|
return n <= t ? +(e > t) : (e - t) / (n - t);
|
|
9479
9567
|
}
|
|
9480
9568
|
function D(e) {
|
|
9481
|
-
if (e !== null) return
|
|
9569
|
+
if (e !== null) return pp(w.value, E(e));
|
|
9482
9570
|
}
|
|
9483
9571
|
function j(e) {
|
|
9484
9572
|
return n.formatValue ? n.formatValue(e) : new Intl.NumberFormat(r.value.code).format(e);
|
|
@@ -9500,7 +9588,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9500
9588
|
return `${n.row} × ${n.col}: ${M(n.value)}`;
|
|
9501
9589
|
}
|
|
9502
9590
|
function I(e) {
|
|
9503
|
-
return Math.min(
|
|
9591
|
+
return Math.min(Ap, e.length * kp * .6);
|
|
9504
9592
|
}
|
|
9505
9593
|
let R = a(() => n.cols.reduce((e, t) => Math.max(e, I(t)), 0)), z = a(() => {
|
|
9506
9594
|
let e = n.cols.length, t = p.value, r = n.colLabels;
|
|
@@ -9509,7 +9597,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9509
9597
|
step: 1,
|
|
9510
9598
|
reserve: 0
|
|
9511
9599
|
};
|
|
9512
|
-
let a = t - 4 - m.value - n.gap * e, o = Math.max(n.minCellWidth, a / e), s = R.value, c = Math.max(1, Math.ceil((s + 6) / o)), l = (s +
|
|
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));
|
|
9513
9601
|
return r === "horizontal" ? {
|
|
9514
9602
|
mode: "horizontal",
|
|
9515
9603
|
step: c,
|
|
@@ -9537,7 +9625,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9537
9625
|
"--uid-heatmap-matrix-min-cell": `${n.minCellWidth}px`,
|
|
9538
9626
|
"--uid-heatmap-matrix-gap": `${n.gap}px`,
|
|
9539
9627
|
"--uid-heatmap-matrix-header-height": `${V.value}px`
|
|
9540
|
-
})), 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({
|
|
9541
9629
|
r: 0,
|
|
9542
9630
|
c: 0
|
|
9543
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({});
|
|
@@ -9635,7 +9723,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9635
9723
|
class: y(["uid-heatmap-matrix", `uid-heatmap-matrix--labels-${z.value.mode}`]),
|
|
9636
9724
|
style: b(H.value)
|
|
9637
9725
|
}, [
|
|
9638
|
-
l("div",
|
|
9726
|
+
l("div", hp, [l("div", {
|
|
9639
9727
|
class: "uid-heatmap-matrix__grid",
|
|
9640
9728
|
role: "grid",
|
|
9641
9729
|
style: b(U.value),
|
|
@@ -9644,7 +9732,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9644
9732
|
"aria-colcount": e.cols.length + 1,
|
|
9645
9733
|
onMouseleave: re,
|
|
9646
9734
|
onKeydown: oe
|
|
9647
|
-
}, [l("div",
|
|
9735
|
+
}, [l("div", _p, [i[0] ||= l("div", {
|
|
9648
9736
|
class: "uid-heatmap-matrix__corner",
|
|
9649
9737
|
role: "columnheader",
|
|
9650
9738
|
"aria-colindex": "1"
|
|
@@ -9658,7 +9746,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9658
9746
|
class: y(["uid-heatmap-matrix__col-label", { "uid-heatmap-matrix__col-label--hidden": !B(t) }]),
|
|
9659
9747
|
title: e,
|
|
9660
9748
|
"aria-hidden": "true"
|
|
9661
|
-
}, P(e), 11,
|
|
9749
|
+
}, P(e), 11, yp)], 8, vp))), 128))]), (T(!0), c(t, null, k(e.rows, (n, r) => (T(), c("div", {
|
|
9662
9750
|
key: `r-${r}`,
|
|
9663
9751
|
class: "uid-heatmap-matrix__row",
|
|
9664
9752
|
role: "row",
|
|
@@ -9671,7 +9759,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9671
9759
|
role: "rowheader",
|
|
9672
9760
|
"aria-colindex": "1",
|
|
9673
9761
|
title: n
|
|
9674
|
-
}, P(n), 9,
|
|
9762
|
+
}, P(n), 9, xp), (T(!0), c(t, null, k(e.cols, (e, t) => (T(), c("div", {
|
|
9675
9763
|
key: `c-${r}-${t}`,
|
|
9676
9764
|
class: y(["uid-heatmap-matrix__cell", {
|
|
9677
9765
|
"uid-heatmap-matrix__cell--empty": g.value[r][t] === null,
|
|
@@ -9687,7 +9775,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9687
9775
|
onMouseenter: (e) => ne(r, t),
|
|
9688
9776
|
onFocus: (e) => ie(r, t),
|
|
9689
9777
|
onBlur: ae
|
|
9690
|
-
}, null, 46,
|
|
9778
|
+
}, null, 46, Sp))), 128))], 8, bp))), 128))], 44, gp)]),
|
|
9691
9779
|
Z.value ? (T(), c("div", {
|
|
9692
9780
|
key: 0,
|
|
9693
9781
|
ref_key: "tooltipRef",
|
|
@@ -9698,25 +9786,25 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9698
9786
|
}, [A(n.$slots, "tooltip", {
|
|
9699
9787
|
cell: Z.value,
|
|
9700
9788
|
formatted: M(Z.value.value)
|
|
9701
|
-
}, () => [l("span",
|
|
9702
|
-
e.showLegend && e.rows.length > 0 && e.cols.length > 0 ? (T(), c("div",
|
|
9703
|
-
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),
|
|
9704
9792
|
l("span", {
|
|
9705
9793
|
class: "uid-heatmap-matrix__legend-bar",
|
|
9706
9794
|
style: b({ background: W.value })
|
|
9707
9795
|
}, null, 4),
|
|
9708
|
-
l("span",
|
|
9709
|
-
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)
|
|
9710
9798
|
])) : s("", !0)
|
|
9711
9799
|
], 6));
|
|
9712
9800
|
}
|
|
9713
|
-
}),
|
|
9801
|
+
}), Np = ["aria-label"], Pp = ["aria-current"], Fp = { class: "uid-stepper__indicator" }, Ip = {
|
|
9714
9802
|
key: 1,
|
|
9715
9803
|
"aria-hidden": "true"
|
|
9716
|
-
},
|
|
9804
|
+
}, Lp = { class: "uid-stepper__content" }, Rp = { class: "uid-stepper__label" }, zp = {
|
|
9717
9805
|
key: 0,
|
|
9718
9806
|
class: "uid-stepper__description"
|
|
9719
|
-
},
|
|
9807
|
+
}, Bp = /* @__PURE__ */ f({
|
|
9720
9808
|
__name: "UidStepper",
|
|
9721
9809
|
props: {
|
|
9722
9810
|
steps: {},
|
|
@@ -9745,20 +9833,20 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9745
9833
|
class: y(["uid-stepper__target", { "uid-stepper__target--selectable": d(r) }]),
|
|
9746
9834
|
onClick: (e) => d(r) && u("select", r)
|
|
9747
9835
|
}, {
|
|
9748
|
-
default: q(() => [l("div",
|
|
9836
|
+
default: q(() => [l("div", Fp, [f(r, n.current) === "completed" ? (T(), o(e, {
|
|
9749
9837
|
key: 0,
|
|
9750
9838
|
icon: L(Q),
|
|
9751
9839
|
size: 16,
|
|
9752
9840
|
"aria-hidden": "true"
|
|
9753
|
-
}, 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)])]),
|
|
9754
9842
|
_: 2
|
|
9755
9843
|
}, 1032, [
|
|
9756
9844
|
"type",
|
|
9757
9845
|
"class",
|
|
9758
9846
|
"onClick"
|
|
9759
|
-
]))], 10,
|
|
9847
|
+
]))], 10, Pp))), 128))], 10, Np));
|
|
9760
9848
|
}
|
|
9761
|
-
}),
|
|
9849
|
+
}), Vp = /* @__PURE__ */ f({
|
|
9762
9850
|
__name: "UidStack",
|
|
9763
9851
|
props: {
|
|
9764
9852
|
direction: { default: "column" },
|
|
@@ -9804,7 +9892,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9804
9892
|
_: 3
|
|
9805
9893
|
}, 8, ["class", "style"]));
|
|
9806
9894
|
}
|
|
9807
|
-
}),
|
|
9895
|
+
}), Hp = /* @__PURE__ */ f({
|
|
9808
9896
|
__name: "UidGrid",
|
|
9809
9897
|
props: {
|
|
9810
9898
|
cols: { default: 12 },
|
|
@@ -9839,7 +9927,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9839
9927
|
_: 3
|
|
9840
9928
|
}, 8, ["style"]));
|
|
9841
9929
|
}
|
|
9842
|
-
}),
|
|
9930
|
+
}), Up = /* @__PURE__ */ f({
|
|
9843
9931
|
__name: "UidContainer",
|
|
9844
9932
|
props: {
|
|
9845
9933
|
size: { default: "lg" },
|
|
@@ -9855,7 +9943,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9855
9943
|
_: 3
|
|
9856
9944
|
}, 8, ["class"]));
|
|
9857
9945
|
}
|
|
9858
|
-
}),
|
|
9946
|
+
}), Wp = Symbol("uid-wizard"), Gp = { class: "uid-wizard" }, Kp = /* @__PURE__ */ f({
|
|
9859
9947
|
__name: "UidWizard",
|
|
9860
9948
|
props: /* @__PURE__ */ g({ steps: {} }, {
|
|
9861
9949
|
modelValue: { default: 0 },
|
|
@@ -9880,7 +9968,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9880
9968
|
function m(e) {
|
|
9881
9969
|
i.delete(e);
|
|
9882
9970
|
}
|
|
9883
|
-
return E(
|
|
9971
|
+
return E(Wp, {
|
|
9884
9972
|
current: r,
|
|
9885
9973
|
steps: o,
|
|
9886
9974
|
isFirst: s,
|
|
@@ -9897,9 +9985,9 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9897
9985
|
goTo: f,
|
|
9898
9986
|
isFirst: s,
|
|
9899
9987
|
isLast: l
|
|
9900
|
-
}), (e, t) => (T(), c("div",
|
|
9988
|
+
}), (e, t) => (T(), c("div", Gp, [A(e.$slots, "default")]));
|
|
9901
9989
|
}
|
|
9902
|
-
}),
|
|
9990
|
+
}), qp = ["aria-label"], Jp = /* @__PURE__ */ f({
|
|
9903
9991
|
__name: "UidWizardStep",
|
|
9904
9992
|
props: {
|
|
9905
9993
|
index: {},
|
|
@@ -9909,7 +9997,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9909
9997
|
}
|
|
9910
9998
|
},
|
|
9911
9999
|
setup(e) {
|
|
9912
|
-
let t = e, n = $(), r = h(
|
|
10000
|
+
let t = e, n = $(), r = h(Wp);
|
|
9913
10001
|
if (!r) throw Error("UidWizardStep must be inside UidWizard");
|
|
9914
10002
|
G(() => t.validate, (e, n) => {
|
|
9915
10003
|
n !== void 0 && r.unregisterValidator(t.index), e !== void 0 && r.registerValidator(t.index, e);
|
|
@@ -9920,18 +10008,18 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9920
10008
|
class: "uid-wizard-step",
|
|
9921
10009
|
role: "tabpanel",
|
|
9922
10010
|
"aria-label": L(n).wizard.step(e.index + 1)
|
|
9923
|
-
}, [A(t.$slots, "default")], 8,
|
|
10011
|
+
}, [A(t.$slots, "default")], 8, qp)) : s("", !0);
|
|
9924
10012
|
}
|
|
9925
|
-
}),
|
|
10013
|
+
}), Yp = { class: "uid-pattern-header__inner" }, Xp = {
|
|
9926
10014
|
key: 0,
|
|
9927
10015
|
class: "uid-pattern-header__logo"
|
|
9928
|
-
},
|
|
10016
|
+
}, Zp = ["aria-label"], Qp = {
|
|
9929
10017
|
key: 2,
|
|
9930
10018
|
class: "uid-pattern-header__actions"
|
|
9931
|
-
},
|
|
10019
|
+
}, $p = {
|
|
9932
10020
|
key: 3,
|
|
9933
10021
|
class: "uid-pattern-header__mobile"
|
|
9934
|
-
},
|
|
10022
|
+
}, em = /* @__PURE__ */ f({
|
|
9935
10023
|
__name: "UidHeader",
|
|
9936
10024
|
props: {
|
|
9937
10025
|
sticky: {
|
|
@@ -9953,39 +10041,39 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9953
10041
|
"uid-pattern-header--sticky": e.sticky,
|
|
9954
10042
|
"uid-pattern-header--bordered": e.bordered,
|
|
9955
10043
|
"uid-pattern-header--transparent": e.transparent
|
|
9956
|
-
}]) }, [l("div",
|
|
9957
|
-
n.$slots.logo ? (T(), c("div",
|
|
10044
|
+
}]) }, [l("div", Yp, [
|
|
10045
|
+
n.$slots.logo ? (T(), c("div", Xp, [A(n.$slots, "logo")])) : s("", !0),
|
|
9958
10046
|
n.$slots.nav ? (T(), c("nav", {
|
|
9959
10047
|
key: 1,
|
|
9960
10048
|
class: "uid-pattern-header__nav",
|
|
9961
10049
|
"aria-label": L(t).header.nav
|
|
9962
|
-
}, [A(n.$slots, "nav")], 8,
|
|
9963
|
-
n.$slots.actions ? (T(), c("div",
|
|
9964
|
-
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)
|
|
9965
10053
|
])], 2));
|
|
9966
10054
|
}
|
|
9967
|
-
}),
|
|
10055
|
+
}), tm = { class: "uid-pattern-footer__inner" }, nm = {
|
|
9968
10056
|
key: 0,
|
|
9969
10057
|
class: "uid-pattern-footer__columns"
|
|
9970
|
-
},
|
|
10058
|
+
}, rm = {
|
|
9971
10059
|
key: 1,
|
|
9972
10060
|
class: "uid-pattern-footer__content"
|
|
9973
|
-
},
|
|
10061
|
+
}, im = {
|
|
9974
10062
|
key: 2,
|
|
9975
10063
|
class: "uid-pattern-footer__bottom"
|
|
9976
|
-
},
|
|
10064
|
+
}, am = /* @__PURE__ */ f({
|
|
9977
10065
|
__name: "UidFooter",
|
|
9978
10066
|
props: { variant: { default: "minimal" } },
|
|
9979
10067
|
setup(e) {
|
|
9980
|
-
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));
|
|
9981
10069
|
}
|
|
9982
|
-
}),
|
|
10070
|
+
}), om = ["aria-label"], sm = {
|
|
9983
10071
|
key: 0,
|
|
9984
10072
|
class: "uid-pattern-sidebar__header"
|
|
9985
|
-
},
|
|
10073
|
+
}, cm = ["aria-label"], lm = {
|
|
9986
10074
|
key: 1,
|
|
9987
10075
|
class: "uid-pattern-sidebar__footer"
|
|
9988
|
-
},
|
|
10076
|
+
}, um = /* @__PURE__ */ f({
|
|
9989
10077
|
__name: "UidSidebar",
|
|
9990
10078
|
props: {
|
|
9991
10079
|
collapsed: {
|
|
@@ -10002,22 +10090,22 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
10002
10090
|
style: b(e.width && !e.collapsed ? { "--uid-sidebar-width": e.width } : void 0),
|
|
10003
10091
|
"aria-label": L(t).sidebar.label
|
|
10004
10092
|
}, [
|
|
10005
|
-
n.$slots.header ? (T(), c("div",
|
|
10093
|
+
n.$slots.header ? (T(), c("div", sm, [A(n.$slots, "header")])) : s("", !0),
|
|
10006
10094
|
l("nav", {
|
|
10007
10095
|
class: "uid-pattern-sidebar__nav",
|
|
10008
10096
|
"aria-label": L(t).sidebar.nav
|
|
10009
|
-
}, [A(n.$slots, "nav")], 8,
|
|
10010
|
-
n.$slots.footer ? (T(), c("div",
|
|
10011
|
-
], 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));
|
|
10012
10100
|
}
|
|
10013
|
-
}),
|
|
10101
|
+
}), dm = {
|
|
10014
10102
|
key: 0,
|
|
10015
10103
|
class: "uid-sidebar-item__icon",
|
|
10016
10104
|
"aria-hidden": "true"
|
|
10017
|
-
},
|
|
10105
|
+
}, fm = { class: "uid-sidebar-item__label" }, pm = {
|
|
10018
10106
|
key: 1,
|
|
10019
10107
|
class: "uid-sidebar-item__badge"
|
|
10020
|
-
},
|
|
10108
|
+
}, mm = /* @__PURE__ */ f({
|
|
10021
10109
|
__name: "UidSidebarItem",
|
|
10022
10110
|
props: {
|
|
10023
10111
|
href: { default: void 0 },
|
|
@@ -10044,9 +10132,9 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
10044
10132
|
tabindex: e.disabled ? -1 : void 0
|
|
10045
10133
|
}), {
|
|
10046
10134
|
default: q(() => [
|
|
10047
|
-
t.$slots.icon ? (T(), c("span",
|
|
10048
|
-
l("span",
|
|
10049
|
-
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))
|
|
10050
10138
|
]),
|
|
10051
10139
|
_: 3
|
|
10052
10140
|
}, 16, [
|
|
@@ -10056,10 +10144,10 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
10056
10144
|
"tabindex"
|
|
10057
10145
|
]));
|
|
10058
10146
|
}
|
|
10059
|
-
}),
|
|
10147
|
+
}), hm = { class: "uid-sidebar-group" }, gm = {
|
|
10060
10148
|
key: 0,
|
|
10061
10149
|
class: "uid-sidebar-group__title"
|
|
10062
|
-
},
|
|
10150
|
+
}, _m = /* @__PURE__ */ f({
|
|
10063
10151
|
__name: "UidSidebarGroup",
|
|
10064
10152
|
props: {
|
|
10065
10153
|
title: { default: void 0 },
|
|
@@ -10069,29 +10157,29 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
10069
10157
|
}
|
|
10070
10158
|
},
|
|
10071
10159
|
setup(e) {
|
|
10072
|
-
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")]));
|
|
10073
10161
|
}
|
|
10074
|
-
}),
|
|
10162
|
+
}), vm = {}, ym = {
|
|
10075
10163
|
class: "uid-sidebar-divider",
|
|
10076
10164
|
role: "separator",
|
|
10077
10165
|
"aria-hidden": "true"
|
|
10078
10166
|
};
|
|
10079
|
-
function
|
|
10080
|
-
return T(), c("div",
|
|
10167
|
+
function bm(e, t) {
|
|
10168
|
+
return T(), c("div", ym);
|
|
10081
10169
|
}
|
|
10082
|
-
var
|
|
10170
|
+
var xm = /* @__PURE__ */ yr(vm, [["render", bm]]), Sm = { class: "uid-pattern-page-header" }, Cm = {
|
|
10083
10171
|
key: 0,
|
|
10084
10172
|
class: "uid-pattern-page-header__breadcrumb"
|
|
10085
|
-
},
|
|
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 = {
|
|
10086
10174
|
key: 0,
|
|
10087
10175
|
class: "uid-pattern-page-header__description"
|
|
10088
|
-
},
|
|
10176
|
+
}, km = {
|
|
10089
10177
|
key: 0,
|
|
10090
10178
|
class: "uid-pattern-page-header__actions"
|
|
10091
|
-
},
|
|
10179
|
+
}, Am = {
|
|
10092
10180
|
key: 1,
|
|
10093
10181
|
class: "uid-pattern-page-header__tabs"
|
|
10094
|
-
},
|
|
10182
|
+
}, jm = /* @__PURE__ */ f({
|
|
10095
10183
|
__name: "UidPageHeader",
|
|
10096
10184
|
props: {
|
|
10097
10185
|
title: { default: void 0 },
|
|
@@ -10104,9 +10192,9 @@ var dm = /* @__PURE__ */ yr(cm, [["render", um]]), fm = { class: "uid-pattern-pa
|
|
|
10104
10192
|
emits: ["back"],
|
|
10105
10193
|
setup(t, { emit: n }) {
|
|
10106
10194
|
let r = $(), i = n;
|
|
10107
|
-
return (n, a) => (T(), c("div",
|
|
10108
|
-
n.$slots.breadcrumb ? (T(), c("div",
|
|
10109
|
-
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", {
|
|
10110
10198
|
key: 0,
|
|
10111
10199
|
type: "button",
|
|
10112
10200
|
class: "uid-pattern-page-header__back",
|
|
@@ -10115,17 +10203,17 @@ var dm = /* @__PURE__ */ yr(cm, [["render", um]]), fm = { class: "uid-pattern-pa
|
|
|
10115
10203
|
}, [d(e, {
|
|
10116
10204
|
icon: L(ne),
|
|
10117
10205
|
size: 20
|
|
10118
|
-
}, null, 8, ["icon"])], 8,
|
|
10119
|
-
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)
|
|
10120
10208
|
]));
|
|
10121
10209
|
}
|
|
10122
|
-
}),
|
|
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 = {
|
|
10123
10211
|
key: 0,
|
|
10124
10212
|
class: "uid-pattern-empty-state__description"
|
|
10125
|
-
},
|
|
10213
|
+
}, Lm = {
|
|
10126
10214
|
key: 0,
|
|
10127
10215
|
class: "uid-pattern-empty-state__actions"
|
|
10128
|
-
},
|
|
10216
|
+
}, Rm = /* @__PURE__ */ f({
|
|
10129
10217
|
__name: "UidEmptyState",
|
|
10130
10218
|
props: {
|
|
10131
10219
|
title: { default: void 0 },
|
|
@@ -10133,25 +10221,25 @@ var dm = /* @__PURE__ */ yr(cm, [["render", um]]), fm = { class: "uid-pattern-pa
|
|
|
10133
10221
|
},
|
|
10134
10222
|
setup(t) {
|
|
10135
10223
|
let n = $();
|
|
10136
|
-
return (r, i) => (T(), c("div",
|
|
10137
|
-
l("div",
|
|
10224
|
+
return (r, i) => (T(), c("div", Mm, [
|
|
10225
|
+
l("div", Nm, [A(r.$slots, "illustration", {}, () => [d(e, {
|
|
10138
10226
|
icon: L(ge),
|
|
10139
10227
|
size: 48
|
|
10140
10228
|
}, null, 8, ["icon"])])]),
|
|
10141
|
-
l("div",
|
|
10142
|
-
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)
|
|
10143
10231
|
]));
|
|
10144
10232
|
}
|
|
10145
|
-
}),
|
|
10233
|
+
}), zm = { class: "uid-pattern-error-state" }, Bm = { class: "uid-pattern-error-state__illustration" }, Vm = {
|
|
10146
10234
|
key: 0,
|
|
10147
10235
|
class: "uid-pattern-error-state__code"
|
|
10148
|
-
},
|
|
10236
|
+
}, Hm = { class: "uid-pattern-error-state__content" }, Um = { class: "uid-pattern-error-state__title" }, Wm = {
|
|
10149
10237
|
key: 0,
|
|
10150
10238
|
class: "uid-pattern-error-state__description"
|
|
10151
|
-
},
|
|
10239
|
+
}, Gm = {
|
|
10152
10240
|
key: 1,
|
|
10153
10241
|
class: "uid-pattern-error-state__actions"
|
|
10154
|
-
},
|
|
10242
|
+
}, Km = /* @__PURE__ */ f({
|
|
10155
10243
|
__name: "UidErrorState",
|
|
10156
10244
|
props: {
|
|
10157
10245
|
code: { default: void 0 },
|
|
@@ -10176,23 +10264,23 @@ var dm = /* @__PURE__ */ yr(cm, [["render", um]]), fm = { class: "uid-pattern-pa
|
|
|
10176
10264
|
description: r.value.errorState.offlineDescription
|
|
10177
10265
|
}
|
|
10178
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);
|
|
10179
|
-
return (n, r) => (T(), c("div",
|
|
10180
|
-
l("div",
|
|
10267
|
+
return (n, r) => (T(), c("div", zm, [
|
|
10268
|
+
l("div", Bm, [A(n.$slots, "illustration", {}, () => [d(e, {
|
|
10181
10269
|
icon: f.value,
|
|
10182
10270
|
size: 48
|
|
10183
10271
|
}, null, 8, ["icon"])])]),
|
|
10184
|
-
t.code ? (T(), c("div",
|
|
10185
|
-
l("div",
|
|
10186
|
-
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)
|
|
10187
10275
|
]));
|
|
10188
10276
|
}
|
|
10189
|
-
}),
|
|
10277
|
+
}), qm = {
|
|
10190
10278
|
key: 0,
|
|
10191
10279
|
class: "uid-layout-simple__header"
|
|
10192
|
-
},
|
|
10280
|
+
}, Jm = { class: "uid-layout-simple__content" }, Ym = {
|
|
10193
10281
|
key: 1,
|
|
10194
10282
|
class: "uid-layout-simple__footer"
|
|
10195
|
-
},
|
|
10283
|
+
}, Xm = /* @__PURE__ */ f({
|
|
10196
10284
|
__name: "UidSimpleLayout",
|
|
10197
10285
|
props: { full: {
|
|
10198
10286
|
type: Boolean,
|
|
@@ -10200,26 +10288,26 @@ var dm = /* @__PURE__ */ yr(cm, [["render", um]]), fm = { class: "uid-pattern-pa
|
|
|
10200
10288
|
} },
|
|
10201
10289
|
setup(e) {
|
|
10202
10290
|
return (t, n) => (T(), c("div", { class: y(["uid-layout-simple", { "uid-layout-simple--full": e.full }]) }, [
|
|
10203
|
-
t.$slots.header ? (T(), c("div",
|
|
10204
|
-
l("main",
|
|
10205
|
-
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)
|
|
10206
10294
|
], 2));
|
|
10207
10295
|
}
|
|
10208
|
-
}),
|
|
10209
|
-
function
|
|
10210
|
-
let e = h(
|
|
10296
|
+
}), Zm = Symbol("uid-sidebar-layout");
|
|
10297
|
+
function Qm() {
|
|
10298
|
+
let e = h(Zm);
|
|
10211
10299
|
if (!e) throw Error("useSidebar() must be used inside UidSidebarLayout");
|
|
10212
10300
|
return e;
|
|
10213
10301
|
}
|
|
10214
10302
|
//#endregion
|
|
10215
10303
|
//#region src/layouts/Sidebar/UidSidebarLayout.vue?vue&type=script&setup=true&lang.ts
|
|
10216
|
-
var
|
|
10304
|
+
var $m = { class: "uid-layout-sidebar__sidebar" }, eh = { class: "uid-layout-sidebar__main" }, th = {
|
|
10217
10305
|
key: 0,
|
|
10218
10306
|
class: "uid-layout-sidebar__main-header"
|
|
10219
|
-
},
|
|
10307
|
+
}, nh = { class: "uid-layout-sidebar__main-content" }, rh = {
|
|
10220
10308
|
key: 1,
|
|
10221
10309
|
class: "uid-layout-sidebar__main-footer"
|
|
10222
|
-
},
|
|
10310
|
+
}, ih = /* @__PURE__ */ f({
|
|
10223
10311
|
__name: "UidSidebarLayout",
|
|
10224
10312
|
props: /* @__PURE__ */ g({ sidebarWidth: { default: void 0 } }, {
|
|
10225
10313
|
modelValue: {
|
|
@@ -10237,7 +10325,7 @@ var Um = { class: "uid-layout-sidebar__sidebar" }, Wm = { class: "uid-layout-sid
|
|
|
10237
10325
|
}, o = () => {
|
|
10238
10326
|
n.value = !0;
|
|
10239
10327
|
};
|
|
10240
|
-
E(
|
|
10328
|
+
E(Zm, {
|
|
10241
10329
|
collapsed: n,
|
|
10242
10330
|
toggle: r,
|
|
10243
10331
|
open: i,
|
|
@@ -10248,58 +10336,58 @@ var Um = { class: "uid-layout-sidebar__sidebar" }, Wm = { class: "uid-layout-sid
|
|
|
10248
10336
|
class: y(["uid-layout-sidebar", { "uid-layout-sidebar--collapsed": n.value }]),
|
|
10249
10337
|
style: b(u.value)
|
|
10250
10338
|
}, [
|
|
10251
|
-
l("aside",
|
|
10339
|
+
l("aside", $m, [A(e.$slots, "sidebar")]),
|
|
10252
10340
|
l("div", {
|
|
10253
10341
|
class: "uid-layout-sidebar__backdrop",
|
|
10254
10342
|
"aria-hidden": "true",
|
|
10255
10343
|
onClick: o
|
|
10256
10344
|
}),
|
|
10257
|
-
l("div",
|
|
10258
|
-
e.$slots.header ? (T(), c("div",
|
|
10259
|
-
l("main",
|
|
10260
|
-
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)
|
|
10261
10349
|
])
|
|
10262
10350
|
], 6));
|
|
10263
10351
|
}
|
|
10264
|
-
}),
|
|
10352
|
+
}), ah = {
|
|
10265
10353
|
key: 0,
|
|
10266
10354
|
class: "uid-layout-auth__brand"
|
|
10267
|
-
},
|
|
10355
|
+
}, oh = { class: "uid-layout-auth__main" }, sh = { class: "uid-layout-auth__card" }, ch = {
|
|
10268
10356
|
key: 0,
|
|
10269
10357
|
class: "uid-layout-auth__footer"
|
|
10270
|
-
},
|
|
10358
|
+
}, lh = /* @__PURE__ */ f({
|
|
10271
10359
|
__name: "UidAuthLayout",
|
|
10272
10360
|
props: { variant: { default: "centered" } },
|
|
10273
10361
|
setup(e) {
|
|
10274
|
-
return (t, n) => (T(), c("div", { class: y(["uid-layout-auth", [`uid-layout-auth--${e.variant}`]]) }, [e.variant === "split" && t.$slots.brand ? (T(), c("div",
|
|
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));
|
|
10275
10363
|
}
|
|
10276
|
-
}),
|
|
10364
|
+
}), uh = { class: "uid-layout-wizard" }, dh = {
|
|
10277
10365
|
key: 0,
|
|
10278
10366
|
class: "uid-layout-wizard__header"
|
|
10279
|
-
},
|
|
10367
|
+
}, fh = {
|
|
10280
10368
|
key: 1,
|
|
10281
10369
|
class: "uid-layout-wizard__stepper"
|
|
10282
|
-
},
|
|
10370
|
+
}, ph = { class: "uid-layout-wizard__content" }, mh = {
|
|
10283
10371
|
key: 2,
|
|
10284
10372
|
class: "uid-layout-wizard__nav"
|
|
10285
|
-
},
|
|
10373
|
+
}, hh = /* @__PURE__ */ f({
|
|
10286
10374
|
__name: "UidWizardLayout",
|
|
10287
10375
|
setup(e) {
|
|
10288
|
-
return (e, t) => (T(), c("div",
|
|
10289
|
-
e.$slots.header ? (T(), c("div",
|
|
10290
|
-
e.$slots.stepper ? (T(), c("div",
|
|
10291
|
-
l("main",
|
|
10292
|
-
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)
|
|
10293
10381
|
]));
|
|
10294
10382
|
}
|
|
10295
|
-
}),
|
|
10383
|
+
}), gh = /* @__PURE__ */ f({
|
|
10296
10384
|
__name: "UidLocaleProvider",
|
|
10297
10385
|
props: { locale: {} },
|
|
10298
10386
|
setup(e) {
|
|
10299
10387
|
let t = e;
|
|
10300
10388
|
return an(a(() => t.locale)), (e, t) => A(e.$slots, "default");
|
|
10301
10389
|
}
|
|
10302
|
-
}),
|
|
10390
|
+
}), _h = {
|
|
10303
10391
|
code: "en-US",
|
|
10304
10392
|
common: {
|
|
10305
10393
|
clear: "Clear",
|
|
@@ -10508,19 +10596,19 @@ var Um = { class: "uid-layout-sidebar__sidebar" }, Wm = { class: "uid-layout-sid
|
|
|
10508
10596
|
sameAs: "The values do not match",
|
|
10509
10597
|
unknown: (e) => `Validation failed: ${e}`
|
|
10510
10598
|
}
|
|
10511
|
-
},
|
|
10512
|
-
function
|
|
10599
|
+
}, vh = O("light");
|
|
10600
|
+
function yh() {
|
|
10513
10601
|
let e = null;
|
|
10514
10602
|
function t(e) {
|
|
10515
|
-
|
|
10603
|
+
vh.value = e, document.documentElement.dataset.theme = e;
|
|
10516
10604
|
}
|
|
10517
10605
|
function n() {
|
|
10518
|
-
t(
|
|
10606
|
+
t(vh.value === "light" ? "dark" : "light");
|
|
10519
10607
|
}
|
|
10520
10608
|
function r() {
|
|
10521
10609
|
let e = document.documentElement.dataset.theme;
|
|
10522
10610
|
if (e === "light" || e === "dark") {
|
|
10523
|
-
|
|
10611
|
+
vh.value = e;
|
|
10524
10612
|
return;
|
|
10525
10613
|
}
|
|
10526
10614
|
let n = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
@@ -10532,7 +10620,7 @@ function lh() {
|
|
|
10532
10620
|
e.addEventListener("change", n), C(() => e?.removeEventListener("change", n));
|
|
10533
10621
|
}
|
|
10534
10622
|
return {
|
|
10535
|
-
theme:
|
|
10623
|
+
theme: vh,
|
|
10536
10624
|
setTheme: t,
|
|
10537
10625
|
toggle: n,
|
|
10538
10626
|
initFromSystem: r,
|
|
@@ -10541,27 +10629,27 @@ function lh() {
|
|
|
10541
10629
|
}
|
|
10542
10630
|
//#endregion
|
|
10543
10631
|
//#region src/composables/useWizard.ts
|
|
10544
|
-
function
|
|
10545
|
-
let e = h(
|
|
10632
|
+
function bh() {
|
|
10633
|
+
let e = h(Wp);
|
|
10546
10634
|
if (!e) throw Error("useWizard() must be used inside UidWizard");
|
|
10547
10635
|
return e;
|
|
10548
10636
|
}
|
|
10549
10637
|
//#endregion
|
|
10550
10638
|
//#region src/composables/useCommandPalette.ts
|
|
10551
|
-
var
|
|
10552
|
-
function
|
|
10639
|
+
var xh = O(!1);
|
|
10640
|
+
function Sh() {
|
|
10553
10641
|
return {
|
|
10554
|
-
open:
|
|
10642
|
+
open: xh,
|
|
10555
10643
|
show: () => {
|
|
10556
|
-
|
|
10644
|
+
xh.value = !0;
|
|
10557
10645
|
},
|
|
10558
10646
|
hide: () => {
|
|
10559
|
-
|
|
10647
|
+
xh.value = !1;
|
|
10560
10648
|
},
|
|
10561
10649
|
toggle: () => {
|
|
10562
|
-
|
|
10650
|
+
xh.value = !xh.value;
|
|
10563
10651
|
}
|
|
10564
10652
|
};
|
|
10565
10653
|
}
|
|
10566
10654
|
//#endregion
|
|
10567
|
-
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 };
|