@dskripchenko/ui 1.12.0 → 1.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Markdown/UidMarkdownLiveBlock.vue.d.ts +10 -0
- package/dist/components/Markdown/blockRenderers.d.ts +21 -0
- package/dist/components/Markdown/index.d.ts +1 -1
- package/dist/index.cjs +8 -8
- package/dist/index.mjs +627 -482
- package/dist/styles/all.css +1 -1
- package/dist/styles/index.css +1 -1
- 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,75 @@ 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));
|
|
6328
|
+
}
|
|
6329
|
+
}), nl = /* @__PURE__ */ f({
|
|
6330
|
+
__name: "UidMarkdownLiveBlock",
|
|
6331
|
+
props: {
|
|
6332
|
+
code: {},
|
|
6333
|
+
language: {},
|
|
6334
|
+
mount: { type: Function }
|
|
6335
|
+
},
|
|
6336
|
+
setup(e) {
|
|
6337
|
+
let t = e, n = N(null), r = null;
|
|
6338
|
+
function i() {
|
|
6339
|
+
if (!n.value) return;
|
|
6340
|
+
n.value.replaceChildren();
|
|
6341
|
+
let e = t.mount(n.value, {
|
|
6342
|
+
code: t.code,
|
|
6343
|
+
language: t.language,
|
|
6344
|
+
editable: !1,
|
|
6345
|
+
setCode: () => {}
|
|
6346
|
+
});
|
|
6347
|
+
r = typeof e == "function" ? { destroy: e } : e ?? {};
|
|
6348
|
+
}
|
|
6349
|
+
function a() {
|
|
6350
|
+
r?.destroy?.(), r = null;
|
|
6351
|
+
}
|
|
6352
|
+
return S(i), x(a), G(() => t.code, (e) => {
|
|
6353
|
+
if (r?.update) {
|
|
6354
|
+
r.update(e);
|
|
6355
|
+
return;
|
|
6356
|
+
}
|
|
6357
|
+
a(), i();
|
|
6358
|
+
}), G(() => t.mount, () => {
|
|
6359
|
+
a(), i();
|
|
6360
|
+
}), (e, t) => (T(), c("div", {
|
|
6361
|
+
ref_key: "el",
|
|
6362
|
+
ref: n
|
|
6363
|
+
}, null, 512));
|
|
6240
6364
|
}
|
|
6241
|
-
}),
|
|
6365
|
+
}), rl = {
|
|
6242
6366
|
"&": "&",
|
|
6243
6367
|
"<": "<",
|
|
6244
6368
|
">": ">",
|
|
6245
6369
|
"\"": """,
|
|
6246
6370
|
"'": "'"
|
|
6247
6371
|
};
|
|
6248
|
-
function
|
|
6249
|
-
return e.replace(/[&<>"']/g, (e) =>
|
|
6372
|
+
function il(e) {
|
|
6373
|
+
return e.replace(/[&<>"']/g, (e) => rl[e] ?? e);
|
|
6250
6374
|
}
|
|
6251
|
-
function
|
|
6375
|
+
function al(e) {
|
|
6252
6376
|
return e.replace(/</g, "<").replace(/>/g, ">").replace(/"/g, "\"").replace(/'/g, "'").replace(/&/g, "&");
|
|
6253
6377
|
}
|
|
6254
|
-
function
|
|
6378
|
+
function ol() {
|
|
6255
6379
|
let e = /* @__PURE__ */ new Map();
|
|
6256
6380
|
return (t) => {
|
|
6257
6381
|
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
6382
|
return e.set(n, r + 1), r === 0 ? n : `${n}-${r}`;
|
|
6259
6383
|
};
|
|
6260
6384
|
}
|
|
6261
|
-
var
|
|
6385
|
+
var sl = {
|
|
6262
6386
|
note: "Note",
|
|
6263
6387
|
tip: "Tip",
|
|
6264
6388
|
important: "Important",
|
|
6265
6389
|
warning: "Warning",
|
|
6266
6390
|
caution: "Caution"
|
|
6267
6391
|
};
|
|
6268
|
-
function
|
|
6392
|
+
function cl(e) {
|
|
6269
6393
|
let t = e.trim(), n = t.replace(/�*58;|:/gi, ":").replace(/\s+/g, "").toLowerCase(), r = /^([a-z][a-z0-9+.-]*):/.exec(n);
|
|
6270
6394
|
return r && ![
|
|
6271
6395
|
"http",
|
|
@@ -6273,42 +6397,42 @@ function Zc(e) {
|
|
|
6273
6397
|
"mailto"
|
|
6274
6398
|
].includes(r[1] ?? "") ? null : t;
|
|
6275
6399
|
}
|
|
6276
|
-
function
|
|
6400
|
+
function ll(e) {
|
|
6277
6401
|
return !/^([a-z][a-z0-9+.-]*:|\/|#|\?)/i.test(e);
|
|
6278
6402
|
}
|
|
6279
|
-
function
|
|
6280
|
-
let r =
|
|
6403
|
+
function ul(e, t, n = !1) {
|
|
6404
|
+
let r = al(e);
|
|
6281
6405
|
n && (r = r.replace(/\.md(?=$|[?#])/i, ""));
|
|
6282
6406
|
try {
|
|
6283
6407
|
let e = /^[a-z][a-z0-9+.-]*:\/\//i.test(t), n = new URL(r, e ? t : `http://base.invalid${t.startsWith("/") ? "" : "/"}${t}`);
|
|
6284
|
-
return
|
|
6408
|
+
return il(e ? n.href : n.pathname + n.search + n.hash);
|
|
6285
6409
|
} catch {
|
|
6286
6410
|
return e;
|
|
6287
6411
|
}
|
|
6288
6412
|
}
|
|
6289
|
-
function
|
|
6413
|
+
function dl(e, t = {}) {
|
|
6290
6414
|
let n = [], r = (e) => `${n.push(e) - 1}`, i = e.replace(/`([^`]+)`/g, (e, t) => r(`<code>${t}</code>`));
|
|
6291
6415
|
return i = i.replace(/!\[([^\]]*)\]\(([^)\s]+)(?:\s+"[^)]*")?\)/g, (e, n, i) => {
|
|
6292
|
-
let a =
|
|
6293
|
-
return a === null ? e : (t.imageBase &&
|
|
6416
|
+
let a = cl(i);
|
|
6417
|
+
return a === null ? e : (t.imageBase && ll(a) && (a = ul(a, t.imageBase)), r(`<img src="${a}" alt="${n}" loading="lazy">`));
|
|
6294
6418
|
}), i = i.replace(/\[([^\]]+)\]\(([^)\s]+)(?:\s+"[^)]*")?\)/g, (e, n, i) => {
|
|
6295
|
-
let a =
|
|
6419
|
+
let a = cl(i);
|
|
6296
6420
|
if (a === null) return e;
|
|
6297
|
-
let o =
|
|
6298
|
-
t.linkBase && o && (a =
|
|
6421
|
+
let o = ll(a);
|
|
6422
|
+
t.linkBase && o && (a = ul(a, t.linkBase, t.stripMdExtension ?? !1));
|
|
6299
6423
|
let s = /^(https?:)?\/\//i.test(a) || /^mailto:/i.test(a);
|
|
6300
6424
|
return r(t.internalLinksInPlace === !0 && !s ? `<a href="${a}">${n}</a>` : `<a href="${a}" target="_blank" rel="noopener noreferrer">${n}</a>`);
|
|
6301
6425
|
}), 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
6426
|
}
|
|
6303
|
-
function
|
|
6304
|
-
return
|
|
6427
|
+
function fl(e) {
|
|
6428
|
+
return al(e.replace(/<[^>]+>/g, ""));
|
|
6305
6429
|
}
|
|
6306
|
-
var
|
|
6307
|
-
function
|
|
6430
|
+
var pl = /^(\s*)([-*+]|\d+[.)])\s+(.*)$/, ml = /^\s*\|?\s*:?-+:?\s*(\|\s*:?-+:?\s*)*\|?\s*$/;
|
|
6431
|
+
function hl(e) {
|
|
6308
6432
|
let t = e.trim();
|
|
6309
6433
|
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
6434
|
}
|
|
6311
|
-
var
|
|
6435
|
+
var gl = {
|
|
6312
6436
|
note: "note",
|
|
6313
6437
|
info: "note",
|
|
6314
6438
|
tip: "tip",
|
|
@@ -6325,13 +6449,13 @@ var al = {
|
|
|
6325
6449
|
предупреждение: "warning",
|
|
6326
6450
|
осторожно: "caution"
|
|
6327
6451
|
};
|
|
6328
|
-
function
|
|
6452
|
+
function _l(e, t) {
|
|
6329
6453
|
let n = e;
|
|
6330
|
-
return t.calloutTitles?.[n] ??
|
|
6454
|
+
return t.calloutTitles?.[n] ?? sl[n] ?? sl.note;
|
|
6331
6455
|
}
|
|
6332
|
-
function
|
|
6456
|
+
function vl(e, t = {}) {
|
|
6333
6457
|
if (!e) return "";
|
|
6334
|
-
let n =
|
|
6458
|
+
let n = il(e.replace(/\r\n?/g, "\n")).split("\n"), r = [], i = [], a = (e) => dl(e, t), o = () => {
|
|
6335
6459
|
i.length > 0 && (r.push(`<p>${a(i.join("\n"))}</p>`), i = []);
|
|
6336
6460
|
};
|
|
6337
6461
|
for (let e = 0; e < n.length; e++) {
|
|
@@ -6353,12 +6477,12 @@ function sl(e, t = {}) {
|
|
|
6353
6477
|
o();
|
|
6354
6478
|
let e = l[1]?.length ?? 1, n = a(l[2] ?? "");
|
|
6355
6479
|
if (t.slugger) {
|
|
6356
|
-
let i =
|
|
6480
|
+
let i = fl(n), a = t.slugger(i);
|
|
6357
6481
|
t.onHeading?.({
|
|
6358
6482
|
level: e,
|
|
6359
6483
|
text: i,
|
|
6360
6484
|
id: a
|
|
6361
|
-
}), r.push(`<h${e} id="${
|
|
6485
|
+
}), r.push(`<h${e} id="${il(a)}">${n}</h${e}>`);
|
|
6362
6486
|
} else r.push(`<h${e}>${n}</h${e}>`);
|
|
6363
6487
|
continue;
|
|
6364
6488
|
}
|
|
@@ -6366,14 +6490,14 @@ function sl(e, t = {}) {
|
|
|
6366
6490
|
o(), r.push("<hr>");
|
|
6367
6491
|
continue;
|
|
6368
6492
|
}
|
|
6369
|
-
if (s.includes("|") &&
|
|
6493
|
+
if (s.includes("|") && ml.test(n[e + 1] ?? "") && (n[e + 1] ?? "").includes("|")) {
|
|
6370
6494
|
o();
|
|
6371
|
-
let t =
|
|
6495
|
+
let t = hl(s), i = hl(n[e + 1] ?? "").map((e) => {
|
|
6372
6496
|
let t = e.startsWith(":"), n = e.endsWith(":");
|
|
6373
6497
|
return t && n ? "center" : n ? "right" : t ? "left" : "";
|
|
6374
6498
|
}), c = (e, t, n) => `<${e}${i[n] ? ` style="text-align:${i[n]}"` : ""}>${a(t)}</${e}>`, l = [];
|
|
6375
6499
|
for (e += 2; e < n.length && (n[e] ?? "").includes("|") && (n[e] ?? "").trim() !== "";) {
|
|
6376
|
-
let r =
|
|
6500
|
+
let r = hl(n[e] ?? "");
|
|
6377
6501
|
l.push(`<tr>${t.map((e, t) => c("td", r[t] ?? "", t)).join("")}</tr>`), e++;
|
|
6378
6502
|
}
|
|
6379
6503
|
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 +6507,12 @@ function sl(e, t = {}) {
|
|
|
6383
6507
|
o();
|
|
6384
6508
|
let i = [];
|
|
6385
6509
|
for (; e < n.length && /^\s*>/.test(n[e] ?? "");) i.push((n[e] ?? "").replace(/^\s*>\s?/, "")), e++;
|
|
6386
|
-
e--, r.push(
|
|
6510
|
+
e--, r.push(Sl(i, t));
|
|
6387
6511
|
continue;
|
|
6388
6512
|
}
|
|
6389
|
-
if (
|
|
6513
|
+
if (pl.test(s)) {
|
|
6390
6514
|
o();
|
|
6391
|
-
let i =
|
|
6515
|
+
let i = xl(n, e, t);
|
|
6392
6516
|
r.push(i.html), e = i.next - 1;
|
|
6393
6517
|
continue;
|
|
6394
6518
|
}
|
|
@@ -6396,49 +6520,49 @@ function sl(e, t = {}) {
|
|
|
6396
6520
|
}
|
|
6397
6521
|
return o(), r.join("\n");
|
|
6398
6522
|
}
|
|
6399
|
-
function
|
|
6523
|
+
function yl(e) {
|
|
6400
6524
|
return (/^[ \t]*/.exec(e)?.[0] ?? "").replace(/\t/g, " ").length;
|
|
6401
6525
|
}
|
|
6402
|
-
function
|
|
6526
|
+
function bl(e) {
|
|
6403
6527
|
return /^\s*(#{1,6}\s|>|```|~~~|\|)/.test(e) || /^\s*([-*_])(\s*\1){2,}\s*$/.test(e);
|
|
6404
6528
|
}
|
|
6405
|
-
function
|
|
6406
|
-
let r =
|
|
6529
|
+
function xl(e, t, n) {
|
|
6530
|
+
let r = pl.exec(e[t] ?? ""), i = yl(r?.[1] ?? ""), a = /\d/.test(r?.[2] ?? ""), o = [], s = t;
|
|
6407
6531
|
for (; s < e.length;) {
|
|
6408
|
-
let t =
|
|
6409
|
-
if (!t ||
|
|
6532
|
+
let t = pl.exec(e[s] ?? "");
|
|
6533
|
+
if (!t || yl(t[1] ?? "") > i + 1 || yl(t[1] ?? "") < i || /\d/.test(t[2] ?? "") !== a) break;
|
|
6410
6534
|
let r = [t[3] ?? ""], c = [];
|
|
6411
6535
|
for (s++; s < e.length;) {
|
|
6412
6536
|
let t = e[s] ?? "";
|
|
6413
6537
|
if (t.trim() === "") {
|
|
6414
6538
|
let t = s + 1;
|
|
6415
6539
|
for (; t < e.length && (e[t] ?? "").trim() === "";) t++;
|
|
6416
|
-
if (t < e.length &&
|
|
6540
|
+
if (t < e.length && yl(e[t] ?? "") > i + 1) {
|
|
6417
6541
|
for (; s < t; s++) c.push("");
|
|
6418
6542
|
continue;
|
|
6419
6543
|
}
|
|
6420
6544
|
break;
|
|
6421
6545
|
}
|
|
6422
|
-
if (
|
|
6546
|
+
if (yl(t) > i + 1) {
|
|
6423
6547
|
c.push(t), s++;
|
|
6424
6548
|
continue;
|
|
6425
6549
|
}
|
|
6426
|
-
if (c.length === 0 && !
|
|
6550
|
+
if (c.length === 0 && !pl.test(t) && !bl(t)) {
|
|
6427
6551
|
r.push(t.trim()), s++;
|
|
6428
6552
|
continue;
|
|
6429
6553
|
}
|
|
6430
6554
|
break;
|
|
6431
6555
|
}
|
|
6432
|
-
let l =
|
|
6556
|
+
let l = dl(r.join("\n"), n);
|
|
6433
6557
|
if (c.some((e) => e.trim() !== "")) {
|
|
6434
|
-
let e = Math.min(...c.filter((e) => e.trim() !== "").map(
|
|
6435
|
-
l +=
|
|
6558
|
+
let e = Math.min(...c.filter((e) => e.trim() !== "").map(yl)), t = c.map((t) => t.replace(/\t/g, " ").slice(e));
|
|
6559
|
+
l += Cl(t, n);
|
|
6436
6560
|
}
|
|
6437
6561
|
o.push(`<li>${l}</li>`);
|
|
6438
6562
|
let u = s;
|
|
6439
6563
|
for (; u < e.length && (e[u] ?? "").trim() === "";) u++;
|
|
6440
|
-
let d =
|
|
6441
|
-
u > s && d &&
|
|
6564
|
+
let d = pl.exec(e[u] ?? "");
|
|
6565
|
+
u > s && d && yl(d[1] ?? "") <= i + 1 && yl(d[1] ?? "") >= i && /\d/.test(d[2] ?? "") === a && (s = u);
|
|
6442
6566
|
}
|
|
6443
6567
|
let c = a ? "ol" : "ul", l = a ? Number.parseInt(r?.[2] ?? "1", 10) : 1;
|
|
6444
6568
|
return {
|
|
@@ -6446,23 +6570,23 @@ function ul(e, t, n) {
|
|
|
6446
6570
|
next: s
|
|
6447
6571
|
};
|
|
6448
6572
|
}
|
|
6449
|
-
function
|
|
6573
|
+
function Sl(e, t) {
|
|
6450
6574
|
let n = (e[0] ?? "").trim(), r = /^\[!(\w+)\]\s*$/.exec(n);
|
|
6451
6575
|
if (r) {
|
|
6452
|
-
let n =
|
|
6453
|
-
if (n) return `<blockquote class="uid-markdown__callout uid-markdown__callout--${n}">${`<p class="uid-markdown__callout-title">${
|
|
6576
|
+
let n = gl[(r[1] ?? "").toLowerCase()];
|
|
6577
|
+
if (n) return `<blockquote class="uid-markdown__callout uid-markdown__callout--${n}">${`<p class="uid-markdown__callout-title">${il(_l(n, t))}</p>`}${Cl(e.slice(1), t)}</blockquote>`;
|
|
6454
6578
|
}
|
|
6455
6579
|
let i = /^\*\*([^*]+?):?\*\*:?/.exec(n);
|
|
6456
6580
|
if (i) {
|
|
6457
|
-
let n =
|
|
6458
|
-
if (n) return `<blockquote class="uid-markdown__callout uid-markdown__callout--${n}">${
|
|
6581
|
+
let n = gl[(i[1] ?? "").trim().toLowerCase()];
|
|
6582
|
+
if (n) return `<blockquote class="uid-markdown__callout uid-markdown__callout--${n}">${Cl(e, t)}</blockquote>`;
|
|
6459
6583
|
}
|
|
6460
|
-
return `<blockquote>${
|
|
6584
|
+
return `<blockquote>${Cl(e, t)}</blockquote>`;
|
|
6461
6585
|
}
|
|
6462
|
-
function
|
|
6463
|
-
return
|
|
6586
|
+
function Cl(e, t) {
|
|
6587
|
+
return vl(al(e.join("\n")), t);
|
|
6464
6588
|
}
|
|
6465
|
-
function
|
|
6589
|
+
function wl(e) {
|
|
6466
6590
|
if (!e) return [];
|
|
6467
6591
|
let t = e.replace(/\r\n?/g, "\n").split("\n"), n = [], r = [], i = () => {
|
|
6468
6592
|
r.some((e) => e.trim() !== "") && n.push({
|
|
@@ -6489,19 +6613,19 @@ function pl(e) {
|
|
|
6489
6613
|
}
|
|
6490
6614
|
//#endregion
|
|
6491
6615
|
//#region src/components/Markdown/blockRenderers.ts
|
|
6492
|
-
var
|
|
6493
|
-
function
|
|
6494
|
-
E(
|
|
6616
|
+
var Tl = Symbol("UidMarkdownBlockRenderers");
|
|
6617
|
+
function El(e) {
|
|
6618
|
+
E(Tl, e);
|
|
6495
6619
|
}
|
|
6496
|
-
function
|
|
6497
|
-
return h(
|
|
6620
|
+
function Dl() {
|
|
6621
|
+
return h(Tl, {});
|
|
6498
6622
|
}
|
|
6499
6623
|
//#endregion
|
|
6500
6624
|
//#region src/components/Markdown/UidMarkdown.vue?vue&type=script&setup=true&lang.ts
|
|
6501
|
-
var
|
|
6625
|
+
var Ol = ["innerHTML"], kl = ["data-language", "innerHTML"], Al = ["data-language"], jl = ["data-language"], Ml = {
|
|
6502
6626
|
class: "uid-markdown__block-error-message",
|
|
6503
6627
|
role: "alert"
|
|
6504
|
-
},
|
|
6628
|
+
}, Nl = ["aria-label"], Pl = { class: "uid-markdown__toc-title" }, Fl = ["href", "onClick"], Il = /* @__PURE__ */ f({
|
|
6505
6629
|
__name: "UidMarkdown",
|
|
6506
6630
|
props: {
|
|
6507
6631
|
source: { default: "" },
|
|
@@ -6525,7 +6649,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6525
6649
|
blockRenderers: { default: void 0 }
|
|
6526
6650
|
},
|
|
6527
6651
|
setup(e) {
|
|
6528
|
-
let n = e, r = $(), i =
|
|
6652
|
+
let n = e, r = $(), i = Dl(), u = {
|
|
6529
6653
|
blade: "html",
|
|
6530
6654
|
console: "bash",
|
|
6531
6655
|
env: "bash",
|
|
@@ -6540,7 +6664,11 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6540
6664
|
let r = f.value[e];
|
|
6541
6665
|
if (!r || r.kind !== "custom") return;
|
|
6542
6666
|
let i = f.value.slice();
|
|
6543
|
-
i[e] = n.
|
|
6667
|
+
i[e] = n.mount ? {
|
|
6668
|
+
...r,
|
|
6669
|
+
state: "live",
|
|
6670
|
+
mount: n.mount
|
|
6671
|
+
} : n.error !== void 0 || n.html === void 0 ? {
|
|
6544
6672
|
...r,
|
|
6545
6673
|
state: "error",
|
|
6546
6674
|
error: n.error ?? ""
|
|
@@ -6557,14 +6685,14 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6557
6685
|
let e = ++m, t = {
|
|
6558
6686
|
...i,
|
|
6559
6687
|
...n.blockRenderers ?? {}
|
|
6560
|
-
}, a =
|
|
6688
|
+
}, a = ol(), o = [], s = {
|
|
6561
6689
|
...r.value.markdown,
|
|
6562
6690
|
...n.calloutTitles ?? {}
|
|
6563
|
-
}, c = [], l = 0;
|
|
6564
|
-
f.value =
|
|
6691
|
+
}, c = [], l = 0, d = f.value;
|
|
6692
|
+
f.value = wl(n.source).map((e, r) => {
|
|
6565
6693
|
if (e.kind === "text") return {
|
|
6566
6694
|
kind: "html",
|
|
6567
|
-
html:
|
|
6695
|
+
html: vl(e.source, {
|
|
6568
6696
|
slugger: a,
|
|
6569
6697
|
onHeading: (e) => o.push(e),
|
|
6570
6698
|
linkBase: n.linkBase ?? null,
|
|
@@ -6574,23 +6702,28 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6574
6702
|
calloutTitles: s
|
|
6575
6703
|
})
|
|
6576
6704
|
};
|
|
6577
|
-
let i = e.language ? t[e.language] : void 0,
|
|
6705
|
+
let i = e.language ? t[e.language] : void 0, f = {
|
|
6578
6706
|
language: e.language,
|
|
6579
6707
|
index: l++
|
|
6580
6708
|
};
|
|
6581
|
-
|
|
6709
|
+
if (!i) return {
|
|
6710
|
+
kind: "code",
|
|
6711
|
+
code: e.code,
|
|
6712
|
+
language: u[e.language] ?? e.language
|
|
6713
|
+
};
|
|
6714
|
+
let p = d[r];
|
|
6715
|
+
return p?.kind === "custom" && p.state === "live" && p.language === e.language ? {
|
|
6716
|
+
...p,
|
|
6717
|
+
code: e.code
|
|
6718
|
+
} : (c.push({
|
|
6582
6719
|
index: r,
|
|
6583
|
-
run: () => i(e.code,
|
|
6720
|
+
run: () => i(e.code, f)
|
|
6584
6721
|
}), {
|
|
6585
6722
|
kind: "custom",
|
|
6586
6723
|
code: e.code,
|
|
6587
6724
|
language: e.language,
|
|
6588
6725
|
state: "pending"
|
|
6589
|
-
})
|
|
6590
|
-
kind: "code",
|
|
6591
|
-
code: e.code,
|
|
6592
|
-
language: u[e.language] ?? e.language
|
|
6593
|
-
};
|
|
6726
|
+
});
|
|
6594
6727
|
}), p.value = o;
|
|
6595
6728
|
for (let { index: t, run: n } of c) {
|
|
6596
6729
|
let r;
|
|
@@ -6643,7 +6776,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6643
6776
|
key: 0,
|
|
6644
6777
|
class: "uid-markdown__html",
|
|
6645
6778
|
innerHTML: e.html
|
|
6646
|
-
}, null, 8,
|
|
6779
|
+
}, null, 8, Ol)) : e.kind === "code" ? (T(), o(tl, {
|
|
6647
6780
|
key: 1,
|
|
6648
6781
|
class: "uid-markdown__code",
|
|
6649
6782
|
code: e.code,
|
|
@@ -6654,45 +6787,57 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6654
6787
|
class: "uid-markdown__block",
|
|
6655
6788
|
"data-language": e.language,
|
|
6656
6789
|
innerHTML: e.html
|
|
6657
|
-
}, null, 8,
|
|
6790
|
+
}, null, 8, kl)) : e.state === "live" && e.mount ? (T(), o(nl, {
|
|
6658
6791
|
key: 3,
|
|
6792
|
+
class: "uid-markdown__block uid-markdown__block--live",
|
|
6793
|
+
"data-language": e.language,
|
|
6794
|
+
code: e.code,
|
|
6795
|
+
language: e.language,
|
|
6796
|
+
mount: e.mount
|
|
6797
|
+
}, null, 8, [
|
|
6798
|
+
"data-language",
|
|
6799
|
+
"code",
|
|
6800
|
+
"language",
|
|
6801
|
+
"mount"
|
|
6802
|
+
])) : e.state === "pending" ? (T(), c("div", {
|
|
6803
|
+
key: 4,
|
|
6659
6804
|
class: "uid-markdown__block uid-markdown__block--pending",
|
|
6660
6805
|
"data-language": e.language,
|
|
6661
6806
|
"aria-busy": "true"
|
|
6662
|
-
}, P(L(r).markdown.blockPending), 9,
|
|
6663
|
-
key:
|
|
6807
|
+
}, P(L(r).markdown.blockPending), 9, Al)) : (T(), c("div", {
|
|
6808
|
+
key: 5,
|
|
6664
6809
|
class: "uid-markdown__block-error",
|
|
6665
6810
|
"data-language": e.language
|
|
6666
|
-
}, [l("p",
|
|
6811
|
+
}, [l("p", Ml, P(e.error ? `${L(r).markdown.blockError}: ${e.error}` : L(r).markdown.blockError), 1), d(tl, {
|
|
6667
6812
|
class: "uid-markdown__code",
|
|
6668
6813
|
code: e.code,
|
|
6669
6814
|
language: e.language || void 0,
|
|
6670
6815
|
copy: ""
|
|
6671
|
-
}, null, 8, ["code", "language"])], 8,
|
|
6816
|
+
}, null, 8, ["code", "language"])], 8, jl))], 64))), 128))]), C.value.length > 0 ? (T(), c("nav", {
|
|
6672
6817
|
key: 0,
|
|
6673
6818
|
class: "uid-markdown__toc",
|
|
6674
6819
|
"aria-label": x.value
|
|
6675
|
-
}, [l("div",
|
|
6820
|
+
}, [l("div", Pl, P(x.value), 1), l("ul", null, [(T(!0), c(t, null, k(C.value, (e) => (T(), c("li", {
|
|
6676
6821
|
key: e.id,
|
|
6677
6822
|
class: y(["uid-markdown__toc-item", `uid-markdown__toc-item--l${e.level}`])
|
|
6678
6823
|
}, [l("a", {
|
|
6679
6824
|
href: `#${e.id}`,
|
|
6680
6825
|
onClick: X((t) => D(e.id), ["prevent"])
|
|
6681
|
-
}, P(e.text), 9,
|
|
6826
|
+
}, P(e.text), 9, Fl)], 2))), 128))])], 8, Nl)) : s("", !0)], 2));
|
|
6682
6827
|
}
|
|
6683
|
-
}),
|
|
6828
|
+
}), Ll = ["data-status"], Rl = ["aria-label"], zl = {
|
|
6684
6829
|
key: 0,
|
|
6685
6830
|
class: "uid-image__placeholder",
|
|
6686
6831
|
"aria-hidden": "true"
|
|
6687
|
-
},
|
|
6832
|
+
}, Bl = ["aria-label"], Vl = [
|
|
6688
6833
|
"src",
|
|
6689
6834
|
"alt",
|
|
6690
6835
|
"loading"
|
|
6691
|
-
],
|
|
6836
|
+
], Hl = [
|
|
6692
6837
|
"src",
|
|
6693
6838
|
"alt",
|
|
6694
6839
|
"loading"
|
|
6695
|
-
],
|
|
6840
|
+
], Ul = { class: "uid-image__preview" }, Wl = ["src", "alt"], Gl = /* @__PURE__ */ f({
|
|
6696
6841
|
__name: "UidImage",
|
|
6697
6842
|
props: {
|
|
6698
6843
|
src: {},
|
|
@@ -6762,7 +6907,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6762
6907
|
}, [A(r.$slots, "fallback", {}, () => [d(e, {
|
|
6763
6908
|
icon: L(_e),
|
|
6764
6909
|
size: 24
|
|
6765
|
-
}, null, 8, ["icon"])])], 8,
|
|
6910
|
+
}, null, 8, ["icon"])])], 8, Rl)) : (T(), c(t, { key: 1 }, [p.value === "loading" ? (T(), c("div", zl, [A(r.$slots, "placeholder")])) : s("", !0), _.value ? (T(), c("button", {
|
|
6766
6911
|
key: 1,
|
|
6767
6912
|
type: "button",
|
|
6768
6913
|
class: "uid-image__trigger",
|
|
@@ -6777,7 +6922,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6777
6922
|
decoding: "async",
|
|
6778
6923
|
onLoad: C,
|
|
6779
6924
|
onError: w
|
|
6780
|
-
}, null, 40,
|
|
6925
|
+
}, null, 40, Vl)], 8, Bl)) : (T(), c("img", {
|
|
6781
6926
|
key: 2,
|
|
6782
6927
|
class: "uid-image__img",
|
|
6783
6928
|
src: g.value,
|
|
@@ -6786,40 +6931,40 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6786
6931
|
decoding: "async",
|
|
6787
6932
|
onLoad: C,
|
|
6788
6933
|
onError: w
|
|
6789
|
-
}, null, 40,
|
|
6934
|
+
}, null, 40, Hl))], 64)), n.preview ? (T(), o(Gn, {
|
|
6790
6935
|
key: 2,
|
|
6791
6936
|
modelValue: h.value,
|
|
6792
6937
|
"onUpdate:modelValue": i[0] ||= (e) => h.value = e,
|
|
6793
6938
|
size: "full",
|
|
6794
6939
|
title: n.alt
|
|
6795
6940
|
}, {
|
|
6796
|
-
default: q(() => [l("div",
|
|
6941
|
+
default: q(() => [l("div", Ul, [l("img", {
|
|
6797
6942
|
class: "uid-image__preview-img",
|
|
6798
6943
|
src: n.previewSrc || g.value,
|
|
6799
6944
|
alt: n.alt
|
|
6800
|
-
}, null, 8,
|
|
6945
|
+
}, null, 8, Wl)])]),
|
|
6801
6946
|
_: 1
|
|
6802
|
-
}, 8, ["modelValue", "title"])) : s("", !0)], 14,
|
|
6947
|
+
}, 8, ["modelValue", "title"])) : s("", !0)], 14, Ll));
|
|
6803
6948
|
}
|
|
6804
|
-
}),
|
|
6949
|
+
}), Kl = [
|
|
6805
6950
|
"aria-valuemax",
|
|
6806
6951
|
"aria-valuenow",
|
|
6807
6952
|
"aria-readonly",
|
|
6808
6953
|
"aria-disabled",
|
|
6809
6954
|
"aria-label"
|
|
6810
|
-
],
|
|
6955
|
+
], ql = [
|
|
6811
6956
|
"tabindex",
|
|
6812
6957
|
"aria-label",
|
|
6813
6958
|
"onClick",
|
|
6814
6959
|
"onMousemove",
|
|
6815
6960
|
"onKeydown"
|
|
6816
|
-
],
|
|
6961
|
+
], Jl = {
|
|
6817
6962
|
class: "uid-rating__icon",
|
|
6818
6963
|
"aria-hidden": "true"
|
|
6819
|
-
},
|
|
6964
|
+
}, Yl = ["data-half"], Xl = {
|
|
6820
6965
|
key: 0,
|
|
6821
6966
|
class: "uid-rating__label"
|
|
6822
|
-
},
|
|
6967
|
+
}, Zl = /* @__PURE__ */ f({
|
|
6823
6968
|
__name: "UidRating",
|
|
6824
6969
|
props: /* @__PURE__ */ g({
|
|
6825
6970
|
max: { default: 5 },
|
|
@@ -6924,21 +7069,21 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
6924
7069
|
onClick: (e) => x(e, t),
|
|
6925
7070
|
onMousemove: (e) => S(e, t),
|
|
6926
7071
|
onKeydown: (e) => w(e, t)
|
|
6927
|
-
}, [l("span",
|
|
7072
|
+
}, [l("span", Jl, [d(e, { icon: _.value }, null, 8, ["icon"])]), v(t).full ? (T(), c("span", {
|
|
6928
7073
|
key: 0,
|
|
6929
7074
|
class: "uid-rating__icon uid-rating__icon--filled",
|
|
6930
7075
|
"data-half": v(t).half ? "true" : "false",
|
|
6931
7076
|
"aria-hidden": "true"
|
|
6932
|
-
}, [d(e, { icon: _.value }, null, 8, ["icon"])], 8,
|
|
7077
|
+
}, [d(e, { icon: _.value }, null, 8, ["icon"])], 8, Yl)) : s("", !0)], 40, ql))), 128)), n.showLabel ? (T(), c("span", Xl, P(L($s)(p.value, u.value, +!!n.allowHalf)) + " / " + P(n.max), 1)) : s("", !0)], 42, Kl));
|
|
6933
7078
|
}
|
|
6934
|
-
}),
|
|
7079
|
+
}), Ql = [
|
|
6935
7080
|
"tabindex",
|
|
6936
7081
|
"aria-orientation",
|
|
6937
7082
|
"aria-valuemin",
|
|
6938
7083
|
"aria-valuemax",
|
|
6939
7084
|
"aria-valuenow",
|
|
6940
7085
|
"aria-disabled"
|
|
6941
|
-
],
|
|
7086
|
+
], $l = { class: "uid-splitter__pane uid-splitter__pane--end" }, eu = /* @__PURE__ */ f({
|
|
6942
7087
|
__name: "UidSplitter",
|
|
6943
7088
|
props: /* @__PURE__ */ g({
|
|
6944
7089
|
direction: { default: "horizontal" },
|
|
@@ -7016,27 +7161,27 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7016
7161
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
7017
7162
|
l("span", { class: "uid-splitter__grip-dot" }),
|
|
7018
7163
|
l("span", { class: "uid-splitter__grip-dot" })
|
|
7019
|
-
], -1)]], 40,
|
|
7020
|
-
l("div",
|
|
7164
|
+
], -1)]], 40, Ql),
|
|
7165
|
+
l("div", $l, [A(t.$slots, "end")])
|
|
7021
7166
|
], 2));
|
|
7022
7167
|
}
|
|
7023
|
-
}),
|
|
7168
|
+
}), tu = {
|
|
7024
7169
|
key: 0,
|
|
7025
7170
|
class: "uid-stat__icon",
|
|
7026
7171
|
"aria-hidden": "true"
|
|
7027
|
-
},
|
|
7172
|
+
}, nu = { class: "uid-stat__body" }, ru = {
|
|
7028
7173
|
key: 0,
|
|
7029
7174
|
class: "uid-stat__title"
|
|
7030
|
-
},
|
|
7175
|
+
}, iu = { class: "uid-stat__value-row" }, au = { class: "uid-stat__value" }, ou = {
|
|
7031
7176
|
key: 0,
|
|
7032
7177
|
class: "uid-stat__prefix"
|
|
7033
|
-
},
|
|
7178
|
+
}, su = {
|
|
7034
7179
|
key: 1,
|
|
7035
7180
|
class: "uid-stat__suffix"
|
|
7036
|
-
},
|
|
7181
|
+
}, cu = {
|
|
7037
7182
|
key: 1,
|
|
7038
7183
|
class: "uid-stat__footer"
|
|
7039
|
-
},
|
|
7184
|
+
}, lu = /* @__PURE__ */ f({
|
|
7040
7185
|
__name: "UidStat",
|
|
7041
7186
|
props: {
|
|
7042
7187
|
title: {},
|
|
@@ -7065,16 +7210,16 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7065
7210
|
t.variant === "ghost" && "uid-stat--ghost",
|
|
7066
7211
|
t.trendPlacement === "below" && "uid-stat--trend-below",
|
|
7067
7212
|
t.loading && "uid-stat--loading"
|
|
7068
|
-
]]) }, [t.icon || n.$slots.icon ? (T(), c("span",
|
|
7213
|
+
]]) }, [t.icon || n.$slots.icon ? (T(), c("span", tu, [A(n.$slots, "icon", {}, () => [t.icon ? (T(), o(e, {
|
|
7069
7214
|
key: 0,
|
|
7070
7215
|
icon: t.icon,
|
|
7071
7216
|
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",
|
|
7217
|
+
}, null, 8, ["icon"])) : s("", !0)])])) : s("", !0), l("div", nu, [
|
|
7218
|
+
t.title ? (T(), c("p", ru, P(t.title), 1)) : s("", !0),
|
|
7219
|
+
l("div", iu, [l("span", au, [A(n.$slots, "value", {}, () => [
|
|
7220
|
+
t.prefix ? (T(), c("span", ou, P(t.prefix), 1)) : s("", !0),
|
|
7076
7221
|
l("span", null, P(d.value), 1),
|
|
7077
|
-
t.suffix ? (T(), c("span",
|
|
7222
|
+
t.suffix ? (T(), c("span", su, P(t.suffix), 1)) : s("", !0)
|
|
7078
7223
|
])]), t.trend !== void 0 || n.$slots.trend ? (T(), c("span", {
|
|
7079
7224
|
key: 0,
|
|
7080
7225
|
class: y(["uid-stat__trend", f.value && `uid-stat__trend--${f.value}`])
|
|
@@ -7083,13 +7228,13 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7083
7228
|
icon: p.value,
|
|
7084
7229
|
size: 12
|
|
7085
7230
|
}, null, 8, ["icon"])) : s("", !0), l("span", null, P(m.value), 1)])], 2)) : s("", !0)]),
|
|
7086
|
-
t.footer || n.$slots.footer ? (T(), c("p",
|
|
7231
|
+
t.footer || n.$slots.footer ? (T(), c("p", cu, [A(n.$slots, "footer", {}, () => [u(P(t.footer), 1)])])) : s("", !0)
|
|
7087
7232
|
])], 2));
|
|
7088
7233
|
}
|
|
7089
|
-
}),
|
|
7234
|
+
}), uu = Symbol("UidDescriptionList"), du = {
|
|
7090
7235
|
key: 0,
|
|
7091
7236
|
class: "uid-description-list__title"
|
|
7092
|
-
},
|
|
7237
|
+
}, fu = /* @__PURE__ */ f({
|
|
7093
7238
|
__name: "UidDescriptionList",
|
|
7094
7239
|
props: {
|
|
7095
7240
|
title: {},
|
|
@@ -7104,7 +7249,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7104
7249
|
},
|
|
7105
7250
|
setup(e) {
|
|
7106
7251
|
let t = e;
|
|
7107
|
-
E(
|
|
7252
|
+
E(uu, {
|
|
7108
7253
|
direction: a(() => t.direction),
|
|
7109
7254
|
bordered: a(() => t.bordered)
|
|
7110
7255
|
});
|
|
@@ -7116,12 +7261,12 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7116
7261
|
`uid-description-list--${e.direction}`,
|
|
7117
7262
|
`uid-description-list--${e.size}`,
|
|
7118
7263
|
e.bordered && "uid-description-list--bordered"
|
|
7119
|
-
]]) }, [e.title || t.$slots.title ? (T(), c("h3",
|
|
7264
|
+
]]) }, [e.title || t.$slots.title ? (T(), c("h3", du, [A(t.$slots, "title", {}, () => [u(P(e.title), 1)])])) : s("", !0), l("dl", {
|
|
7120
7265
|
class: "uid-description-list__grid",
|
|
7121
7266
|
style: b(n.value)
|
|
7122
7267
|
}, [A(t.$slots, "default")], 4)], 2));
|
|
7123
7268
|
}
|
|
7124
|
-
}),
|
|
7269
|
+
}), pu = { class: "uid-description-item__label" }, mu = { class: "uid-description-item__value" }, hu = ["aria-label"], gu = /* @__PURE__ */ f({
|
|
7125
7270
|
__name: "UidDescriptionItem",
|
|
7126
7271
|
props: {
|
|
7127
7272
|
label: {},
|
|
@@ -7134,7 +7279,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7134
7279
|
},
|
|
7135
7280
|
setup(t) {
|
|
7136
7281
|
let n = $(), r = t;
|
|
7137
|
-
h(
|
|
7282
|
+
h(uu, null);
|
|
7138
7283
|
let i = O(null), o = O(!1), f = a(() => ({ "--uid-desc-span": r.span }));
|
|
7139
7284
|
async function p() {
|
|
7140
7285
|
let e = r.copyValue ?? i.value?.querySelector(".uid-description-item__value")?.textContent?.trim() ?? "";
|
|
@@ -7149,7 +7294,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7149
7294
|
ref: i,
|
|
7150
7295
|
class: "uid-description-item",
|
|
7151
7296
|
style: b(f.value)
|
|
7152
|
-
}, [l("dt",
|
|
7297
|
+
}, [l("dt", pu, [A(r.$slots, "label", {}, () => [u(P(t.label), 1)])]), l("dd", mu, [A(r.$slots, "default"), t.copyable ? (T(), c("button", {
|
|
7153
7298
|
key: 0,
|
|
7154
7299
|
type: "button",
|
|
7155
7300
|
class: y(["uid-description-item__copy", { "uid-description-item__copy--copied": o.value }]),
|
|
@@ -7158,24 +7303,24 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7158
7303
|
}, [d(e, {
|
|
7159
7304
|
icon: o.value ? L(Q) : L(fe),
|
|
7160
7305
|
size: 12
|
|
7161
|
-
}, null, 8, ["icon"])], 10,
|
|
7306
|
+
}, null, 8, ["icon"])], 10, hu)) : s("", !0)])], 4));
|
|
7162
7307
|
}
|
|
7163
|
-
}),
|
|
7308
|
+
}), _u = {
|
|
7164
7309
|
class: "uid-pattern-result__icon",
|
|
7165
7310
|
"aria-hidden": "true"
|
|
7166
|
-
},
|
|
7311
|
+
}, vu = {
|
|
7167
7312
|
key: 0,
|
|
7168
7313
|
class: "uid-pattern-result__title"
|
|
7169
|
-
},
|
|
7314
|
+
}, yu = {
|
|
7170
7315
|
key: 1,
|
|
7171
7316
|
class: "uid-pattern-result__description"
|
|
7172
|
-
},
|
|
7317
|
+
}, bu = {
|
|
7173
7318
|
key: 2,
|
|
7174
7319
|
class: "uid-pattern-result__content"
|
|
7175
|
-
},
|
|
7320
|
+
}, xu = {
|
|
7176
7321
|
key: 3,
|
|
7177
7322
|
class: "uid-pattern-result__actions"
|
|
7178
|
-
},
|
|
7323
|
+
}, Su = /* @__PURE__ */ f({
|
|
7179
7324
|
__name: "UidResult",
|
|
7180
7325
|
props: {
|
|
7181
7326
|
status: { default: "success" },
|
|
@@ -7197,17 +7342,17 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7197
7342
|
class: y(["uid-pattern-result", [`uid-pattern-result--${t.status}`, t.compact && "uid-pattern-result--compact"]]),
|
|
7198
7343
|
role: "status"
|
|
7199
7344
|
}, [
|
|
7200
|
-
l("div",
|
|
7345
|
+
l("div", _u, [A(n.$slots, "icon", {}, () => [d(e, {
|
|
7201
7346
|
icon: i.value,
|
|
7202
7347
|
size: t.compact ? 32 : 40
|
|
7203
7348
|
}, 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",
|
|
7349
|
+
t.title || n.$slots.title ? (T(), c("h2", vu, [A(n.$slots, "title", {}, () => [u(P(t.title), 1)])])) : s("", !0),
|
|
7350
|
+
t.description || n.$slots.description ? (T(), c("p", yu, [A(n.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0),
|
|
7351
|
+
n.$slots.default ? (T(), c("div", bu, [A(n.$slots, "default")])) : s("", !0),
|
|
7352
|
+
n.$slots.actions ? (T(), c("div", xu, [A(n.$slots, "actions")])) : s("", !0)
|
|
7208
7353
|
], 2));
|
|
7209
7354
|
}
|
|
7210
|
-
}),
|
|
7355
|
+
}), Cu = ["aria-label"], wu = /* @__PURE__ */ f({
|
|
7211
7356
|
__name: "UidBackTop",
|
|
7212
7357
|
props: {
|
|
7213
7358
|
visibleAfter: { default: 200 },
|
|
@@ -7255,11 +7400,11 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7255
7400
|
}, [A(t.$slots, "default", {}, () => [d(e, {
|
|
7256
7401
|
icon: L(re),
|
|
7257
7402
|
size: 20
|
|
7258
|
-
}, null, 8, ["icon"])])], 8,
|
|
7403
|
+
}, null, 8, ["icon"])])], 8, Cu), [[W, f.value]])]),
|
|
7259
7404
|
_: 3
|
|
7260
7405
|
}));
|
|
7261
7406
|
}
|
|
7262
|
-
}),
|
|
7407
|
+
}), Tu = { class: "uid-affix__content" }, Eu = /* @__PURE__ */ f({
|
|
7263
7408
|
__name: "UidAffix",
|
|
7264
7409
|
props: {
|
|
7265
7410
|
offsetTop: {},
|
|
@@ -7289,9 +7434,9 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7289
7434
|
ref: o,
|
|
7290
7435
|
class: "uid-affix__sentinel",
|
|
7291
7436
|
"aria-hidden": "true"
|
|
7292
|
-
}, null, 512), l("div",
|
|
7437
|
+
}, null, 512), l("div", Tu, [A(e.$slots, "default")])], 6));
|
|
7293
7438
|
}
|
|
7294
|
-
}),
|
|
7439
|
+
}), Du = { class: "uid-watermark" }, Ou = { class: "uid-watermark__content" }, ku = /* @__PURE__ */ f({
|
|
7295
7440
|
__name: "UidWatermark",
|
|
7296
7441
|
props: {
|
|
7297
7442
|
content: { default: "" },
|
|
@@ -7338,24 +7483,24 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7338
7483
|
i();
|
|
7339
7484
|
}), C(() => {
|
|
7340
7485
|
n.value = "";
|
|
7341
|
-
}), (e, t) => (T(), c("div",
|
|
7486
|
+
}), (e, t) => (T(), c("div", Du, [l("div", {
|
|
7342
7487
|
class: "uid-watermark__overlay",
|
|
7343
7488
|
style: b(o.value),
|
|
7344
7489
|
"aria-hidden": "true"
|
|
7345
|
-
}, null, 4), l("div",
|
|
7490
|
+
}, null, 4), l("div", Ou, [A(e.$slots, "default")])]));
|
|
7346
7491
|
}
|
|
7347
|
-
}),
|
|
7492
|
+
}), Au = ["aria-label"], ju = { class: "uid-anchor__list" }, Mu = [
|
|
7348
7493
|
"href",
|
|
7349
7494
|
"aria-current",
|
|
7350
7495
|
"onClick"
|
|
7351
|
-
],
|
|
7496
|
+
], Nu = {
|
|
7352
7497
|
key: 0,
|
|
7353
7498
|
class: "uid-anchor__sublist"
|
|
7354
|
-
},
|
|
7499
|
+
}, Pu = [
|
|
7355
7500
|
"href",
|
|
7356
7501
|
"aria-current",
|
|
7357
7502
|
"onClick"
|
|
7358
|
-
],
|
|
7503
|
+
], Fu = /* @__PURE__ */ f({
|
|
7359
7504
|
__name: "UidAnchor",
|
|
7360
7505
|
props: /* @__PURE__ */ g({
|
|
7361
7506
|
items: {},
|
|
@@ -7422,7 +7567,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7422
7567
|
return (n, r) => (T(), c("nav", {
|
|
7423
7568
|
class: "uid-anchor",
|
|
7424
7569
|
"aria-label": L(i).anchor.label
|
|
7425
|
-
}, [l("ul",
|
|
7570
|
+
}, [l("ul", ju, [(T(!0), c(t, null, k(e.items, (e) => (T(), c("li", {
|
|
7426
7571
|
key: e.key,
|
|
7427
7572
|
class: "uid-anchor__item"
|
|
7428
7573
|
}, [l("a", {
|
|
@@ -7430,7 +7575,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7430
7575
|
class: y(["uid-anchor__link", { "uid-anchor__link--active": o.value === e.key }]),
|
|
7431
7576
|
"aria-current": o.value === e.key ? "location" : void 0,
|
|
7432
7577
|
onClick: (t) => h(t, e)
|
|
7433
|
-
}, P(e.title), 11,
|
|
7578
|
+
}, P(e.title), 11, Mu), e.children?.length ? (T(), c("ul", Nu, [(T(!0), c(t, null, k(e.children, (e) => (T(), c("li", {
|
|
7434
7579
|
key: e.key,
|
|
7435
7580
|
class: "uid-anchor__item"
|
|
7436
7581
|
}, [l("a", {
|
|
@@ -7438,18 +7583,18 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7438
7583
|
class: y(["uid-anchor__link", { "uid-anchor__link--active": o.value === e.key }]),
|
|
7439
7584
|
"aria-current": o.value === e.key ? "location" : void 0,
|
|
7440
7585
|
onClick: (t) => h(t, e)
|
|
7441
|
-
}, P(e.title), 11,
|
|
7586
|
+
}, P(e.title), 11, Pu)]))), 128))])) : s("", !0)]))), 128))])], 8, Au));
|
|
7442
7587
|
}
|
|
7443
|
-
}),
|
|
7588
|
+
}), Iu = ["aria-label"], Lu = {
|
|
7444
7589
|
key: 0,
|
|
7445
7590
|
class: "uid-tour__title"
|
|
7446
|
-
},
|
|
7591
|
+
}, Ru = {
|
|
7447
7592
|
key: 1,
|
|
7448
7593
|
class: "uid-tour__description"
|
|
7449
|
-
},
|
|
7594
|
+
}, zu = { class: "uid-tour__footer" }, Bu = {
|
|
7450
7595
|
key: 0,
|
|
7451
7596
|
class: "uid-tour__progress"
|
|
7452
|
-
},
|
|
7597
|
+
}, Vu = { key: 1 }, Hu = { class: "uid-tour__actions" }, Uu = /* @__PURE__ */ f({
|
|
7453
7598
|
__name: "UidTour",
|
|
7454
7599
|
props: /* @__PURE__ */ g({
|
|
7455
7600
|
steps: {},
|
|
@@ -7588,9 +7733,9 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7588
7733
|
class: y(["uid-tour__popover", { "uid-tour__popover--center": N.value }]),
|
|
7589
7734
|
style: b(N.value ? void 0 : M.value)
|
|
7590
7735
|
}, [
|
|
7591
|
-
E.value.title ? (T(), c("h3",
|
|
7592
|
-
E.value.description ? (T(), c("p",
|
|
7593
|
-
l("div",
|
|
7736
|
+
E.value.title ? (T(), c("h3", Lu, P(E.value.title), 1)) : s("", !0),
|
|
7737
|
+
E.value.description ? (T(), c("p", Ru, P(E.value.description), 1)) : s("", !0),
|
|
7738
|
+
l("div", zu, [e.showProgress ? (T(), c("span", Bu, P(g.value + 1) + " / " + P(e.steps.length), 1)) : (T(), c("span", Vu)), l("div", Hu, [
|
|
7594
7739
|
e.showSkip && g.value < e.steps.length - 1 ? (T(), c("button", {
|
|
7595
7740
|
key: 0,
|
|
7596
7741
|
type: "button",
|
|
@@ -7610,21 +7755,21 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7610
7755
|
}, P(g.value === e.steps.length - 1 ? f.value : u.value), 1)
|
|
7611
7756
|
])])
|
|
7612
7757
|
], 6)
|
|
7613
|
-
], 8,
|
|
7758
|
+
], 8, Iu)) : s("", !0)]));
|
|
7614
7759
|
}
|
|
7615
|
-
}),
|
|
7760
|
+
}), Wu = ["for"], Gu = [
|
|
7616
7761
|
"id",
|
|
7617
7762
|
"value",
|
|
7618
7763
|
"placeholder",
|
|
7619
7764
|
"rows",
|
|
7620
7765
|
"disabled"
|
|
7621
|
-
],
|
|
7766
|
+
], Ku = ["onMousedown", "onMouseenter"], qu = { class: "uid-mention__option-label" }, Ju = {
|
|
7622
7767
|
key: 0,
|
|
7623
7768
|
class: "uid-mention__option-hint"
|
|
7624
|
-
},
|
|
7769
|
+
}, Yu = {
|
|
7625
7770
|
key: 0,
|
|
7626
7771
|
class: "uid-mention__empty"
|
|
7627
|
-
},
|
|
7772
|
+
}, Xu = /* @__PURE__ */ f({
|
|
7628
7773
|
inheritAttrs: !1,
|
|
7629
7774
|
__name: "UidMention",
|
|
7630
7775
|
props: /* @__PURE__ */ g({
|
|
@@ -7689,7 +7834,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7689
7834
|
key: 0,
|
|
7690
7835
|
for: L(x),
|
|
7691
7836
|
class: "uid-mention__label"
|
|
7692
|
-
}, P(e.label), 9,
|
|
7837
|
+
}, P(e.label), 9, Wu)) : s("", !0),
|
|
7693
7838
|
l("textarea", _(L(u)(), {
|
|
7694
7839
|
id: L(x),
|
|
7695
7840
|
ref_key: "fieldRef",
|
|
@@ -7704,7 +7849,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7704
7849
|
onKeydown: H,
|
|
7705
7850
|
onKeyup: F,
|
|
7706
7851
|
onBlur: a[0] ||= (e) => S.value = !1
|
|
7707
|
-
}), null, 16,
|
|
7852
|
+
}), null, 16, Gu),
|
|
7708
7853
|
(T(), o(n, { to: "body" }, [S.value ? (T(), c("div", {
|
|
7709
7854
|
key: 0,
|
|
7710
7855
|
ref_key: "panelRef",
|
|
@@ -7717,30 +7862,30 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7717
7862
|
class: y(["uid-mention__option", { "uid-mention__option--active": t === w.value }]),
|
|
7718
7863
|
onMousedown: X((t) => I(e), ["prevent"]),
|
|
7719
7864
|
onMouseenter: (e) => w.value = t
|
|
7720
|
-
}, [l("span",
|
|
7865
|
+
}, [l("span", qu, P(e.label), 1), e.hint ? (T(), c("span", Ju, P(e.hint), 1)) : s("", !0)], 42, Ku))), 128)), N.value.length === 0 ? (T(), c("div", Yu, P(p.value), 1)) : s("", !0)], 4)) : s("", !0)]))
|
|
7721
7866
|
], 16));
|
|
7722
7867
|
}
|
|
7723
|
-
}),
|
|
7868
|
+
}), Zu = ["for"], Qu = {
|
|
7724
7869
|
key: 0,
|
|
7725
7870
|
class: "uid-tree-select__required",
|
|
7726
7871
|
"aria-hidden": "true"
|
|
7727
|
-
},
|
|
7872
|
+
}, $u = [
|
|
7728
7873
|
"id",
|
|
7729
7874
|
"aria-expanded",
|
|
7730
7875
|
"aria-controls",
|
|
7731
7876
|
"aria-label",
|
|
7732
7877
|
"aria-disabled",
|
|
7733
7878
|
"aria-invalid"
|
|
7734
|
-
],
|
|
7879
|
+
], ed = { class: "uid-tree-select__value" }, td = ["aria-label", "onClick"], nd = {
|
|
7735
7880
|
key: 0,
|
|
7736
7881
|
class: "uid-tree-select__chip"
|
|
7737
|
-
},
|
|
7882
|
+
}, rd = {
|
|
7738
7883
|
key: 1,
|
|
7739
7884
|
class: "uid-tree-select__placeholder"
|
|
7740
|
-
},
|
|
7885
|
+
}, id = { key: 0 }, ad = {
|
|
7741
7886
|
key: 1,
|
|
7742
7887
|
class: "uid-tree-select__placeholder"
|
|
7743
|
-
},
|
|
7888
|
+
}, od = { class: "uid-tree-select__suffix" }, sd = ["aria-label"], cd = ["id"], ld = /* @__PURE__ */ f({
|
|
7744
7889
|
__name: "UidTreeSelect",
|
|
7745
7890
|
props: /* @__PURE__ */ g({
|
|
7746
7891
|
size: { default: "md" },
|
|
@@ -7869,7 +8014,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7869
8014
|
key: 0,
|
|
7870
8015
|
for: L(A),
|
|
7871
8016
|
class: "uid-tree-select__label"
|
|
7872
|
-
}, [u(P(r.label) + " ", 1), r.required ? (T(), c("span",
|
|
8017
|
+
}, [u(P(r.label) + " ", 1), r.required ? (T(), c("span", Qu, "*")) : s("", !0)], 8, Zu)) : s("", !0),
|
|
7873
8018
|
l("div", {
|
|
7874
8019
|
id: L(A),
|
|
7875
8020
|
ref_key: "triggerRef",
|
|
@@ -7885,7 +8030,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7885
8030
|
"aria-invalid": M.value ? "true" : void 0,
|
|
7886
8031
|
onClick: Y,
|
|
7887
8032
|
onKeydown: ae
|
|
7888
|
-
}, [l("div",
|
|
8033
|
+
}, [l("div", ed, [R.value ? (T(), c(t, { key: 0 }, [
|
|
7889
8034
|
(T(!0), c(t, null, k(W.value, (e) => (T(), c("span", {
|
|
7890
8035
|
key: e.key,
|
|
7891
8036
|
class: "uid-tree-select__chip"
|
|
@@ -7894,10 +8039,10 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7894
8039
|
class: "uid-tree-select__chip-remove",
|
|
7895
8040
|
"aria-label": L(p).treeSelect.removeTag(e.label),
|
|
7896
8041
|
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",
|
|
8042
|
+
}, "×", 8, td)]))), 128)),
|
|
8043
|
+
K.value > 0 ? (T(), c("span", nd, "+" + P(K.value), 1)) : s("", !0),
|
|
8044
|
+
U.value.length === 0 ? (T(), c("span", rd, P(m.value), 1)) : s("", !0)
|
|
8045
|
+
], 64)) : (T(), c(t, { key: 1 }, [U.value.length > 0 ? (T(), c("span", id, P(U.value[0].label), 1)) : (T(), c("span", ad, P(m.value), 1))], 64))]), l("div", od, [r.clearable && H.value.length > 0 ? (T(), c("button", {
|
|
7901
8046
|
key: 0,
|
|
7902
8047
|
type: "button",
|
|
7903
8048
|
class: "uid-tree-select__clear",
|
|
@@ -7906,12 +8051,12 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7906
8051
|
}, [d(e, {
|
|
7907
8052
|
icon: L(Ee),
|
|
7908
8053
|
size: 14
|
|
7909
|
-
}, null, 8, ["icon"])], 8,
|
|
8054
|
+
}, null, 8, ["icon"])], 8, sd)) : s("", !0), d(e, {
|
|
7910
8055
|
icon: L(se),
|
|
7911
8056
|
size: 16,
|
|
7912
8057
|
class: y(["uid-tree-select__chevron", { "uid-tree-select__chevron--open": v.value }]),
|
|
7913
8058
|
"aria-hidden": "true"
|
|
7914
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
8059
|
+
}, null, 8, ["icon", "class"])])], 40, $u),
|
|
7915
8060
|
(T(), o(n, { to: "body" }, [v.value ? (T(), c("div", {
|
|
7916
8061
|
key: 0,
|
|
7917
8062
|
id: L(j),
|
|
@@ -7955,19 +8100,19 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7955
8100
|
"selectable",
|
|
7956
8101
|
"default-expand-all",
|
|
7957
8102
|
"show-guides"
|
|
7958
|
-
]))], 12,
|
|
8103
|
+
]))], 12, cd)) : s("", !0)])),
|
|
7959
8104
|
N.value ? (T(), c("p", {
|
|
7960
8105
|
key: 1,
|
|
7961
8106
|
class: y(["uid-tree-select__hint", M.value && "uid-tree-select__hint--error"])
|
|
7962
8107
|
}, P(N.value), 3)) : s("", !0)
|
|
7963
8108
|
], 2));
|
|
7964
8109
|
}
|
|
7965
|
-
}),
|
|
8110
|
+
}), ud = {
|
|
7966
8111
|
key: 0,
|
|
7967
8112
|
class: "uid-notification-badge__dot",
|
|
7968
8113
|
role: "status",
|
|
7969
8114
|
"aria-hidden": "true"
|
|
7970
|
-
},
|
|
8115
|
+
}, dd = ["aria-label"], fd = /* @__PURE__ */ f({
|
|
7971
8116
|
__name: "UidNotificationBadge",
|
|
7972
8117
|
props: {
|
|
7973
8118
|
count: { default: 0 },
|
|
@@ -7994,22 +8139,22 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
7994
8139
|
return (t, a) => (T(), c("span", {
|
|
7995
8140
|
class: y(["uid-notification-badge", [`uid-notification-badge--${e.placement}`, e.tone !== "danger" && `uid-notification-badge--${e.tone}`]]),
|
|
7996
8141
|
style: b(i.value)
|
|
7997
|
-
}, [A(t.$slots, "default"), n.value && e.dot ? (T(), c("span",
|
|
8142
|
+
}, [A(t.$slots, "default"), n.value && e.dot ? (T(), c("span", ud)) : n.value ? (T(), c("span", {
|
|
7998
8143
|
key: 1,
|
|
7999
8144
|
class: "uid-notification-badge__count",
|
|
8000
8145
|
role: "status",
|
|
8001
8146
|
"aria-label": `${e.count}`
|
|
8002
|
-
}, P(r.value), 9,
|
|
8147
|
+
}, P(r.value), 9, dd)) : s("", !0)], 6));
|
|
8003
8148
|
}
|
|
8004
|
-
}),
|
|
8149
|
+
}), pd = ["aria-hidden", "aria-label"], md = ["disabled", "aria-label"], hd = ["disabled", "aria-label"], gd = {
|
|
8005
8150
|
key: 2,
|
|
8006
8151
|
class: "uid-carousel__indicators",
|
|
8007
8152
|
role: "tablist"
|
|
8008
|
-
},
|
|
8153
|
+
}, _d = [
|
|
8009
8154
|
"aria-selected",
|
|
8010
8155
|
"aria-label",
|
|
8011
8156
|
"onClick"
|
|
8012
|
-
],
|
|
8157
|
+
], vd = /* @__PURE__ */ f({
|
|
8013
8158
|
__name: "UidCarousel",
|
|
8014
8159
|
props: /* @__PURE__ */ g({
|
|
8015
8160
|
items: {},
|
|
@@ -8101,7 +8246,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8101
8246
|
}, [A(r.$slots, "default", {
|
|
8102
8247
|
item: e,
|
|
8103
8248
|
index: t
|
|
8104
|
-
})], 8,
|
|
8249
|
+
})], 8, pd))), 128))], 4),
|
|
8105
8250
|
n.showArrows && _.value > 1 ? (T(), c("button", {
|
|
8106
8251
|
key: 0,
|
|
8107
8252
|
type: "button",
|
|
@@ -8112,7 +8257,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8112
8257
|
}, [d(e, {
|
|
8113
8258
|
icon: n.direction === "vertical" ? L(ue) : L(ce),
|
|
8114
8259
|
size: 20
|
|
8115
|
-
}, null, 8, ["icon"])], 8,
|
|
8260
|
+
}, null, 8, ["icon"])], 8, md)) : s("", !0),
|
|
8116
8261
|
n.showArrows && _.value > 1 ? (T(), c("button", {
|
|
8117
8262
|
key: 1,
|
|
8118
8263
|
type: "button",
|
|
@@ -8123,8 +8268,8 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8123
8268
|
}, [d(e, {
|
|
8124
8269
|
icon: n.direction === "vertical" ? L(se) : L(le),
|
|
8125
8270
|
size: 20
|
|
8126
|
-
}, null, 8, ["icon"])], 8,
|
|
8127
|
-
n.showIndicators && _.value > 1 ? (T(), c("div",
|
|
8271
|
+
}, null, 8, ["icon"])], 8, hd)) : s("", !0),
|
|
8272
|
+
n.showIndicators && _.value > 1 ? (T(), c("div", gd, [(T(!0), c(t, null, k(n.items, (e, t) => (T(), c("button", {
|
|
8128
8273
|
key: t,
|
|
8129
8274
|
type: "button",
|
|
8130
8275
|
class: y(["uid-carousel__indicator", { "uid-carousel__indicator--active": t === p.value }]),
|
|
@@ -8132,38 +8277,38 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8132
8277
|
"aria-selected": t === p.value,
|
|
8133
8278
|
"aria-label": L(u).carousel.slide(t + 1),
|
|
8134
8279
|
onClick: (e) => x(t)
|
|
8135
|
-
}, null, 10,
|
|
8280
|
+
}, null, 10, _d))), 128))])) : s("", !0)
|
|
8136
8281
|
], 34));
|
|
8137
8282
|
}
|
|
8138
|
-
}),
|
|
8283
|
+
}), yd = { class: "uid-transfer__panel" }, bd = { class: "uid-transfer__header" }, xd = { class: "uid-transfer__title" }, Sd = ["aria-checked"], Cd = { class: "uid-transfer__count" }, wd = {
|
|
8139
8284
|
key: 0,
|
|
8140
8285
|
class: "uid-transfer__search"
|
|
8141
|
-
},
|
|
8286
|
+
}, Td = ["placeholder"], Ed = {
|
|
8142
8287
|
class: "uid-transfer__list",
|
|
8143
8288
|
role: "listbox",
|
|
8144
8289
|
"aria-multiselectable": "true"
|
|
8145
|
-
},
|
|
8290
|
+
}, Dd = [
|
|
8146
8291
|
"aria-selected",
|
|
8147
8292
|
"aria-disabled",
|
|
8148
8293
|
"onClick"
|
|
8149
|
-
],
|
|
8294
|
+
], Od = { class: "uid-transfer__label" }, kd = {
|
|
8150
8295
|
key: 0,
|
|
8151
8296
|
class: "uid-transfer__empty"
|
|
8152
|
-
},
|
|
8297
|
+
}, Ad = { class: "uid-transfer__ops" }, jd = ["disabled", "aria-label"], Md = ["disabled", "aria-label"], Nd = { class: "uid-transfer__panel" }, Pd = { class: "uid-transfer__header" }, Fd = { class: "uid-transfer__title" }, Id = ["aria-checked"], Ld = { class: "uid-transfer__count" }, Rd = {
|
|
8153
8298
|
key: 0,
|
|
8154
8299
|
class: "uid-transfer__search"
|
|
8155
|
-
},
|
|
8300
|
+
}, zd = ["placeholder"], Bd = {
|
|
8156
8301
|
class: "uid-transfer__list",
|
|
8157
8302
|
role: "listbox",
|
|
8158
8303
|
"aria-multiselectable": "true"
|
|
8159
|
-
},
|
|
8304
|
+
}, Vd = [
|
|
8160
8305
|
"aria-selected",
|
|
8161
8306
|
"aria-disabled",
|
|
8162
8307
|
"onClick"
|
|
8163
|
-
],
|
|
8308
|
+
], Hd = { class: "uid-transfer__label" }, Ud = {
|
|
8164
8309
|
key: 0,
|
|
8165
8310
|
class: "uid-transfer__empty"
|
|
8166
|
-
},
|
|
8311
|
+
}, Wd = /* @__PURE__ */ f({
|
|
8167
8312
|
__name: "UidTransfer",
|
|
8168
8313
|
props: /* @__PURE__ */ g({
|
|
8169
8314
|
items: {},
|
|
@@ -8214,8 +8359,8 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8214
8359
|
p.value = e, g.value = /* @__PURE__ */ new Set(), f("change", e);
|
|
8215
8360
|
}
|
|
8216
8361
|
return (r, i) => (T(), c("div", { class: y(["uid-transfer", { "uid-transfer--disabled": n.disabled }]) }, [
|
|
8217
|
-
l("div",
|
|
8218
|
-
l("div",
|
|
8362
|
+
l("div", yd, [
|
|
8363
|
+
l("div", bd, [l("span", xd, [l("span", {
|
|
8219
8364
|
class: y(["uid-transfer__check", { "uid-transfer__check--checked": j.value }]),
|
|
8220
8365
|
role: "checkbox",
|
|
8221
8366
|
"aria-checked": j.value,
|
|
@@ -8226,14 +8371,14 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8226
8371
|
key: 0,
|
|
8227
8372
|
icon: L(Q),
|
|
8228
8373
|
size: 10
|
|
8229
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
8230
|
-
n.searchable ? (T(), c("div",
|
|
8374
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, Sd), u(" " + P(b.value[0]), 1)]), l("span", Cd, P(h.value.size) + " / " + P(w.value.length), 1)]),
|
|
8375
|
+
n.searchable ? (T(), c("div", wd, [J(l("input", {
|
|
8231
8376
|
"onUpdate:modelValue": i[3] ||= (e) => _.value = e,
|
|
8232
8377
|
class: "uid-transfer__search-input",
|
|
8233
8378
|
type: "text",
|
|
8234
8379
|
placeholder: L(m).common.search
|
|
8235
|
-
}, null, 8,
|
|
8236
|
-
l("ul",
|
|
8380
|
+
}, null, 8, Td), [[U, _.value]])])) : s("", !0),
|
|
8381
|
+
l("ul", Ed, [(T(!0), c(t, null, k(w.value, (t) => (T(), c("li", {
|
|
8237
8382
|
key: t.key,
|
|
8238
8383
|
class: y(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
8239
8384
|
role: "option",
|
|
@@ -8247,9 +8392,9 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8247
8392
|
key: 0,
|
|
8248
8393
|
icon: L(Q),
|
|
8249
8394
|
size: 10
|
|
8250
|
-
}, null, 8, ["icon"])) : s("", !0)], 2), l("span",
|
|
8395
|
+
}, null, 8, ["icon"])) : s("", !0)], 2), l("span", Od, P(t.label), 1)], 10, Dd))), 128)), w.value.length === 0 ? (T(), c("li", kd, P(L(m).common.noResults), 1)) : s("", !0)])
|
|
8251
8396
|
]),
|
|
8252
|
-
l("div",
|
|
8397
|
+
l("div", Ad, [l("button", {
|
|
8253
8398
|
type: "button",
|
|
8254
8399
|
class: "uid-transfer__op",
|
|
8255
8400
|
disabled: h.value.size === 0 || n.disabled,
|
|
@@ -8258,7 +8403,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8258
8403
|
}, [d(e, {
|
|
8259
8404
|
icon: L(le),
|
|
8260
8405
|
size: 16
|
|
8261
|
-
}, null, 8, ["icon"])], 8,
|
|
8406
|
+
}, null, 8, ["icon"])], 8, jd), l("button", {
|
|
8262
8407
|
type: "button",
|
|
8263
8408
|
class: "uid-transfer__op",
|
|
8264
8409
|
disabled: g.value.size === 0 || n.disabled,
|
|
@@ -8267,9 +8412,9 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8267
8412
|
}, [d(e, {
|
|
8268
8413
|
icon: L(ce),
|
|
8269
8414
|
size: 16
|
|
8270
|
-
}, null, 8, ["icon"])], 8,
|
|
8271
|
-
l("div",
|
|
8272
|
-
l("div",
|
|
8415
|
+
}, null, 8, ["icon"])], 8, Md)]),
|
|
8416
|
+
l("div", Nd, [
|
|
8417
|
+
l("div", Pd, [l("span", Fd, [l("span", {
|
|
8273
8418
|
class: y(["uid-transfer__check", { "uid-transfer__check--checked": M.value }]),
|
|
8274
8419
|
role: "checkbox",
|
|
8275
8420
|
"aria-checked": M.value,
|
|
@@ -8280,14 +8425,14 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8280
8425
|
key: 0,
|
|
8281
8426
|
icon: L(Q),
|
|
8282
8427
|
size: 10
|
|
8283
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
8284
|
-
n.searchable ? (T(), c("div",
|
|
8428
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, Id), u(" " + P(b.value[1]), 1)]), l("span", Ld, P(g.value.size) + " / " + P(E.value.length), 1)]),
|
|
8429
|
+
n.searchable ? (T(), c("div", Rd, [J(l("input", {
|
|
8285
8430
|
"onUpdate:modelValue": i[7] ||= (e) => v.value = e,
|
|
8286
8431
|
class: "uid-transfer__search-input",
|
|
8287
8432
|
type: "text",
|
|
8288
8433
|
placeholder: L(m).common.search
|
|
8289
|
-
}, null, 8,
|
|
8290
|
-
l("ul",
|
|
8434
|
+
}, null, 8, zd), [[U, v.value]])])) : s("", !0),
|
|
8435
|
+
l("ul", Bd, [(T(!0), c(t, null, k(E.value, (t) => (T(), c("li", {
|
|
8291
8436
|
key: t.key,
|
|
8292
8437
|
class: y(["uid-transfer__item", { "uid-transfer__item--disabled": t.disabled }]),
|
|
8293
8438
|
role: "option",
|
|
@@ -8301,60 +8446,60 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8301
8446
|
key: 0,
|
|
8302
8447
|
icon: L(Q),
|
|
8303
8448
|
size: 10
|
|
8304
|
-
}, null, 8, ["icon"])) : s("", !0)], 2), l("span",
|
|
8449
|
+
}, null, 8, ["icon"])) : s("", !0)], 2), l("span", Hd, P(t.label), 1)], 10, Vd))), 128)), E.value.length === 0 ? (T(), c("li", Ud, P(L(m).common.noResults), 1)) : s("", !0)])
|
|
8305
8450
|
])
|
|
8306
8451
|
], 2));
|
|
8307
8452
|
}
|
|
8308
|
-
}),
|
|
8453
|
+
}), Gd = {
|
|
8309
8454
|
key: 0,
|
|
8310
8455
|
class: "uid-cascader__label"
|
|
8311
|
-
},
|
|
8456
|
+
}, Kd = [
|
|
8312
8457
|
"aria-expanded",
|
|
8313
8458
|
"aria-disabled",
|
|
8314
8459
|
"aria-label"
|
|
8315
|
-
],
|
|
8460
|
+
], qd = { class: "uid-cascader__value" }, Jd = {
|
|
8316
8461
|
key: 0,
|
|
8317
8462
|
class: "uid-cascader__separator"
|
|
8318
|
-
},
|
|
8463
|
+
}, Yd = {
|
|
8319
8464
|
key: 1,
|
|
8320
8465
|
class: "uid-cascader__placeholder"
|
|
8321
|
-
},
|
|
8466
|
+
}, Xd = { class: "uid-cascader__suffix" }, Zd = ["aria-label"], Qd = {
|
|
8322
8467
|
key: 0,
|
|
8323
8468
|
class: "uid-cascader__search"
|
|
8324
|
-
},
|
|
8469
|
+
}, $d = [
|
|
8325
8470
|
"aria-expanded",
|
|
8326
8471
|
"aria-controls",
|
|
8327
8472
|
"aria-activedescendant",
|
|
8328
8473
|
"aria-label",
|
|
8329
8474
|
"placeholder"
|
|
8330
|
-
],
|
|
8475
|
+
], ef = ["id"], tf = [
|
|
8331
8476
|
"id",
|
|
8332
8477
|
"aria-selected",
|
|
8333
8478
|
"onMouseenter",
|
|
8334
8479
|
"onClick"
|
|
8335
|
-
],
|
|
8480
|
+
], nf = {
|
|
8336
8481
|
key: 0,
|
|
8337
8482
|
class: "uid-cascader__separator"
|
|
8338
|
-
},
|
|
8483
|
+
}, rf = {
|
|
8339
8484
|
key: 0,
|
|
8340
8485
|
class: "uid-cascader__highlight"
|
|
8341
|
-
},
|
|
8486
|
+
}, af = {
|
|
8342
8487
|
key: 0,
|
|
8343
8488
|
class: "uid-cascader__empty",
|
|
8344
8489
|
role: "presentation"
|
|
8345
|
-
},
|
|
8490
|
+
}, of = {
|
|
8346
8491
|
key: 2,
|
|
8347
8492
|
class: "uid-cascader__columns"
|
|
8348
|
-
},
|
|
8493
|
+
}, sf = [
|
|
8349
8494
|
"aria-haspopup",
|
|
8350
8495
|
"aria-expanded",
|
|
8351
8496
|
"aria-disabled",
|
|
8352
8497
|
"onClick",
|
|
8353
8498
|
"onMouseenter"
|
|
8354
|
-
],
|
|
8499
|
+
], cf = { class: "uid-cascader__option-label" }, lf = {
|
|
8355
8500
|
key: 1,
|
|
8356
8501
|
class: "uid-cascader__hint"
|
|
8357
|
-
},
|
|
8502
|
+
}, uf = /* @__PURE__ */ f({
|
|
8358
8503
|
__name: "UidCascader",
|
|
8359
8504
|
props: /* @__PURE__ */ g({
|
|
8360
8505
|
size: { default: "md" },
|
|
@@ -8533,7 +8678,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8533
8678
|
"uid-cascader--disabled": r.disabled
|
|
8534
8679
|
}]])
|
|
8535
8680
|
}, [
|
|
8536
|
-
r.label ? (T(), c("label",
|
|
8681
|
+
r.label ? (T(), c("label", Gd, P(r.label), 1)) : s("", !0),
|
|
8537
8682
|
l("div", {
|
|
8538
8683
|
ref_key: "triggerRef",
|
|
8539
8684
|
ref: E,
|
|
@@ -8546,7 +8691,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8546
8691
|
"aria-label": g.value,
|
|
8547
8692
|
onClick: ae,
|
|
8548
8693
|
onKeydown: pe
|
|
8549
|
-
}, [l("div",
|
|
8694
|
+
}, [l("div", qd, [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", Jd, P(r.separator), 1)) : s("", !0)], 64))), 128)) : (T(), c("span", Yd, P(g.value), 1))]), l("div", Xd, [r.clearable && m.value.length > 0 ? (T(), c("button", {
|
|
8550
8695
|
key: 0,
|
|
8551
8696
|
type: "button",
|
|
8552
8697
|
class: "uid-cascader__clear",
|
|
@@ -8555,18 +8700,18 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8555
8700
|
}, [d(e, {
|
|
8556
8701
|
icon: L(Ee),
|
|
8557
8702
|
size: 14
|
|
8558
|
-
}, null, 8, ["icon"])], 8,
|
|
8703
|
+
}, null, 8, ["icon"])], 8, Zd)) : s("", !0), d(e, {
|
|
8559
8704
|
icon: L(se),
|
|
8560
8705
|
size: 16,
|
|
8561
8706
|
class: y(["uid-cascader__chevron", { "uid-cascader__chevron--open": _.value }])
|
|
8562
|
-
}, null, 8, ["icon", "class"])])], 40,
|
|
8707
|
+
}, null, 8, ["icon", "class"])])], 40, Kd),
|
|
8563
8708
|
(T(), o(n, { to: "body" }, [_.value ? (T(), c("div", {
|
|
8564
8709
|
key: 0,
|
|
8565
8710
|
ref_key: "panelRef",
|
|
8566
8711
|
ref: D,
|
|
8567
8712
|
class: "uid-cascader__dropdown",
|
|
8568
8713
|
style: b(L(A))
|
|
8569
|
-
}, [r.searchable ? (T(), c("div",
|
|
8714
|
+
}, [r.searchable ? (T(), c("div", Qd, [J(l("input", {
|
|
8570
8715
|
ref_key: "searchRef",
|
|
8571
8716
|
ref: w,
|
|
8572
8717
|
"onUpdate:modelValue": a[0] ||= (e) => M.value = e,
|
|
@@ -8581,7 +8726,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8581
8726
|
"aria-label": r.searchPlaceholder ?? L(h).common.search,
|
|
8582
8727
|
placeholder: r.searchPlaceholder ?? L(h).common.search,
|
|
8583
8728
|
onKeydown: Y
|
|
8584
|
-
}, null, 40,
|
|
8729
|
+
}, null, 40, $d), [[U, M.value]])])) : s("", !0), H.value ? (T(), c("ul", {
|
|
8585
8730
|
key: 1,
|
|
8586
8731
|
id: L(F),
|
|
8587
8732
|
class: "uid-cascader__results",
|
|
@@ -8595,7 +8740,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8595
8740
|
onMousedown: a[1] ||= X(() => {}, ["prevent"]),
|
|
8596
8741
|
onMouseenter: (e) => N.value = n,
|
|
8597
8742
|
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",
|
|
8743
|
+
}, [(T(!0), c(t, null, k(e.path, (e, n) => (T(), c(t, { key: n }, [n > 0 ? (T(), c("span", nf, 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", rf, P(e.text), 1)) : (T(), c(t, { key: 1 }, [u(P(e.text), 1)], 64))], 64))), 128))])], 64))), 128))], 42, tf))), 128)), V.value.length === 0 ? (T(), c("li", af, P(L(h).common.noResults), 1)) : s("", !0)], 8, ef)) : (T(), c("div", of, [(T(!0), c(t, null, k(ee.value, (n, i) => (T(), c("div", {
|
|
8599
8744
|
key: i,
|
|
8600
8745
|
class: "uid-cascader__column"
|
|
8601
8746
|
}, [(T(!0), c(t, null, k(n, (t) => (T(), c("button", {
|
|
@@ -8611,27 +8756,27 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8611
8756
|
"aria-disabled": t.disabled ? "true" : void 0,
|
|
8612
8757
|
onClick: (e) => ce(t, i),
|
|
8613
8758
|
onMouseenter: (e) => ue(t, i)
|
|
8614
|
-
}, [l("span",
|
|
8759
|
+
}, [l("span", cf, P(t.label), 1), t.children?.length ? (T(), o(e, {
|
|
8615
8760
|
key: 0,
|
|
8616
8761
|
icon: L(le),
|
|
8617
8762
|
size: 14,
|
|
8618
8763
|
class: "uid-cascader__option-arrow",
|
|
8619
8764
|
"aria-hidden": "true"
|
|
8620
|
-
}, null, 8, ["icon"])) : s("", !0)], 42,
|
|
8621
|
-
r.hint ? (T(), c("p",
|
|
8765
|
+
}, null, 8, ["icon"])) : s("", !0)], 42, sf))), 128))]))), 128))]))], 4)) : s("", !0)])),
|
|
8766
|
+
r.hint ? (T(), c("p", lf, P(r.hint), 1)) : s("", !0)
|
|
8622
8767
|
], 2));
|
|
8623
8768
|
}
|
|
8624
|
-
}),
|
|
8769
|
+
}), df = { class: "uid-calendar__header" }, ff = { class: "uid-calendar__title" }, pf = { class: "uid-calendar__nav" }, mf = ["aria-label"], hf = ["aria-label"], gf = { class: "uid-calendar__weekdays" }, _f = { class: "uid-calendar__grid" }, vf = [
|
|
8625
8770
|
"tabindex",
|
|
8626
8771
|
"aria-current",
|
|
8627
8772
|
"aria-selected",
|
|
8628
8773
|
"aria-label",
|
|
8629
8774
|
"onClick",
|
|
8630
8775
|
"onKeydown"
|
|
8631
|
-
],
|
|
8776
|
+
], yf = { class: "uid-calendar__date" }, bf = { class: "uid-calendar__events" }, xf = ["title", "onClick"], Sf = { class: "uid-calendar__event-label" }, Cf = {
|
|
8632
8777
|
key: 0,
|
|
8633
8778
|
class: "uid-calendar__more"
|
|
8634
|
-
},
|
|
8779
|
+
}, wf = /* @__PURE__ */ f({
|
|
8635
8780
|
__name: "UidCalendar",
|
|
8636
8781
|
props: /* @__PURE__ */ g({
|
|
8637
8782
|
events: { default: () => [] },
|
|
@@ -8718,7 +8863,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8718
8863
|
e.stopPropagation(), o("event-click", t);
|
|
8719
8864
|
}
|
|
8720
8865
|
return (r, i) => (T(), c("div", { class: y(["uid-calendar", { "uid-calendar--compact": n.compact }]) }, [
|
|
8721
|
-
l("div",
|
|
8866
|
+
l("div", df, [l("span", ff, P(x.value), 1), l("div", pf, [
|
|
8722
8867
|
l("button", {
|
|
8723
8868
|
type: "button",
|
|
8724
8869
|
class: "uid-calendar__btn uid-calendar__btn--icon",
|
|
@@ -8727,7 +8872,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8727
8872
|
}, [d(e, {
|
|
8728
8873
|
icon: L(ce),
|
|
8729
8874
|
size: 14
|
|
8730
|
-
}, null, 8, ["icon"])], 8,
|
|
8875
|
+
}, null, 8, ["icon"])], 8, mf),
|
|
8731
8876
|
l("button", {
|
|
8732
8877
|
type: "button",
|
|
8733
8878
|
class: "uid-calendar__btn",
|
|
@@ -8741,13 +8886,13 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8741
8886
|
}, [d(e, {
|
|
8742
8887
|
icon: L(le),
|
|
8743
8888
|
size: 14
|
|
8744
|
-
}, null, 8, ["icon"])], 8,
|
|
8889
|
+
}, null, 8, ["icon"])], 8, hf)
|
|
8745
8890
|
])]),
|
|
8746
|
-
l("div",
|
|
8891
|
+
l("div", gf, [(T(!0), c(t, null, k(L(f).datePicker.weekdaysShort, (e) => (T(), c("span", {
|
|
8747
8892
|
key: e,
|
|
8748
8893
|
class: "uid-calendar__weekday"
|
|
8749
8894
|
}, P(e), 1))), 128))]),
|
|
8750
|
-
l("div",
|
|
8895
|
+
l("div", _f, [(T(!0), c(t, null, k(w.value, (e) => (T(), c("div", {
|
|
8751
8896
|
key: e.iso,
|
|
8752
8897
|
class: y(["uid-calendar__day", {
|
|
8753
8898
|
"uid-calendar__day--other": !e.current,
|
|
@@ -8762,30 +8907,30 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8762
8907
|
"aria-label": e.iso,
|
|
8763
8908
|
onClick: (t) => M(e),
|
|
8764
8909
|
onKeydown: [Y(X((t) => M(e), ["prevent"]), ["enter"]), Y(X((t) => M(e), ["prevent"]), ["space"])]
|
|
8765
|
-
}, [l("span",
|
|
8910
|
+
}, [l("span", yf, P(e.date.getDate()), 1), l("div", bf, [(T(!0), c(t, null, k(e.events.slice(0, n.maxEventsPerDay), (t, n) => (T(), c("button", {
|
|
8766
8911
|
key: t.id ?? `${e.iso}-${n}`,
|
|
8767
8912
|
type: "button",
|
|
8768
8913
|
class: "uid-calendar__event",
|
|
8769
8914
|
style: b(t.color ? { "--uid-event-color": t.color } : void 0),
|
|
8770
8915
|
title: t.title,
|
|
8771
8916
|
onClick: (e) => N(e, t)
|
|
8772
|
-
}, [l("span",
|
|
8917
|
+
}, [l("span", Sf, P(t.title), 1)], 12, xf))), 128)), e.events.length > n.maxEventsPerDay ? (T(), c("span", Cf, "+" + P(e.events.length - n.maxEventsPerDay), 1)) : s("", !0)])], 42, vf))), 128))])
|
|
8773
8918
|
], 2));
|
|
8774
8919
|
}
|
|
8775
|
-
}),
|
|
8920
|
+
}), Tf = ["aria-label"], Ef = [
|
|
8776
8921
|
"viewBox",
|
|
8777
8922
|
"width",
|
|
8778
8923
|
"height"
|
|
8779
|
-
],
|
|
8924
|
+
], Df = [
|
|
8780
8925
|
"x2",
|
|
8781
8926
|
"y1",
|
|
8782
8927
|
"y2"
|
|
8783
|
-
],
|
|
8928
|
+
], Of = [
|
|
8784
8929
|
"x",
|
|
8785
8930
|
"y",
|
|
8786
8931
|
"width",
|
|
8787
8932
|
"height"
|
|
8788
|
-
],
|
|
8933
|
+
], kf = ["d"], Af = ["d"], jf = ["cx", "cy"], Mf = ["cx", "cy"], Nf = 2, Pf = /* @__PURE__ */ f({
|
|
8789
8934
|
__name: "UidSparkline",
|
|
8790
8935
|
props: {
|
|
8791
8936
|
data: {},
|
|
@@ -8828,11 +8973,11 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8828
8973
|
};
|
|
8829
8974
|
});
|
|
8830
8975
|
function o(e, t) {
|
|
8831
|
-
return t <= 1 ? n.width / 2 :
|
|
8976
|
+
return t <= 1 ? n.width / 2 : Nf + e / (t - 1) * (n.width - Nf * 2);
|
|
8832
8977
|
}
|
|
8833
8978
|
function u(e) {
|
|
8834
8979
|
let t = i.value, r = (e - t.min) / (t.max - t.min);
|
|
8835
|
-
return n.height -
|
|
8980
|
+
return n.height - Nf - r * (n.height - Nf * 2);
|
|
8836
8981
|
}
|
|
8837
8982
|
let d = a(() => n.data.map((e, t) => ({
|
|
8838
8983
|
x: o(t, n.data.length),
|
|
@@ -8851,14 +8996,14 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8851
8996
|
}), p = a(() => {
|
|
8852
8997
|
let e = d.value;
|
|
8853
8998
|
if (e.length === 0) return "";
|
|
8854
|
-
let t = n.height -
|
|
8999
|
+
let t = n.height - Nf;
|
|
8855
9000
|
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
9001
|
}), m = a(() => {
|
|
8857
9002
|
let e = d.value, t = e.length;
|
|
8858
9003
|
if (t === 0) return [];
|
|
8859
|
-
let r = n.width -
|
|
9004
|
+
let r = n.width - Nf * 2, i = Math.max(1, r / t * .7), a = u(0);
|
|
8860
9005
|
return e.map((e, n) => {
|
|
8861
|
-
let o =
|
|
9006
|
+
let o = Nf + (n + .5) / t * r - i / 2, s = e.v < 0, c = s ? a : e.y, l = s ? e.y : a;
|
|
8862
9007
|
return {
|
|
8863
9008
|
x: o,
|
|
8864
9009
|
y: c,
|
|
@@ -8895,59 +9040,59 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8895
9040
|
x2: e.width,
|
|
8896
9041
|
y1: h.value,
|
|
8897
9042
|
y2: h.value
|
|
8898
|
-
}, null, 8,
|
|
9043
|
+
}, null, 8, Df)) : s("", !0), e.type === "bar" ? (T(!0), c(t, { key: 1 }, k(m.value, (e, t) => (T(), c("rect", {
|
|
8899
9044
|
key: t,
|
|
8900
9045
|
class: y(["uid-sparkline__bar", { "uid-sparkline__bar--negative": e.negative }]),
|
|
8901
9046
|
x: e.x,
|
|
8902
9047
|
y: e.y,
|
|
8903
9048
|
width: e.width,
|
|
8904
9049
|
height: e.height
|
|
8905
|
-
}, null, 10,
|
|
9050
|
+
}, null, 10, Of))), 128)) : (T(), c(t, { key: 2 }, [
|
|
8906
9051
|
e.type === "area" ? (T(), c("path", {
|
|
8907
9052
|
key: 0,
|
|
8908
9053
|
class: "uid-sparkline__area",
|
|
8909
9054
|
d: p.value
|
|
8910
|
-
}, null, 8,
|
|
9055
|
+
}, null, 8, kf)) : s("", !0),
|
|
8911
9056
|
l("path", {
|
|
8912
9057
|
class: "uid-sparkline__line",
|
|
8913
9058
|
d: f.value
|
|
8914
|
-
}, null, 8,
|
|
9059
|
+
}, null, 8, Af),
|
|
8915
9060
|
e.showDots ? (T(!0), c(t, { key: 1 }, k(d.value, (e, t) => (T(), c("circle", {
|
|
8916
9061
|
key: t,
|
|
8917
9062
|
class: "uid-sparkline__dot",
|
|
8918
9063
|
cx: e.x,
|
|
8919
9064
|
cy: e.y,
|
|
8920
9065
|
r: "2.5"
|
|
8921
|
-
}, null, 8,
|
|
9066
|
+
}, null, 8, jf))), 128)) : s("", !0),
|
|
8922
9067
|
e.showLast && _.value && !e.showDots ? (T(), c("circle", {
|
|
8923
9068
|
key: 2,
|
|
8924
9069
|
class: "uid-sparkline__dot uid-sparkline__dot--last",
|
|
8925
9070
|
cx: _.value.x,
|
|
8926
9071
|
cy: _.value.y,
|
|
8927
9072
|
r: "2.5"
|
|
8928
|
-
}, null, 8,
|
|
8929
|
-
], 64))], 8,
|
|
9073
|
+
}, null, 8, Mf)) : s("", !0)
|
|
9074
|
+
], 64))], 8, Ef))], 12, Tf));
|
|
8930
9075
|
}
|
|
8931
|
-
}),
|
|
9076
|
+
}), Ff = ["aria-valuemax", "aria-valuenow"], If = [
|
|
8932
9077
|
"width",
|
|
8933
9078
|
"height",
|
|
8934
9079
|
"viewBox"
|
|
8935
|
-
],
|
|
9080
|
+
], Lf = [
|
|
8936
9081
|
"cx",
|
|
8937
9082
|
"cy",
|
|
8938
9083
|
"r",
|
|
8939
9084
|
"stroke-width"
|
|
8940
|
-
],
|
|
9085
|
+
], Rf = [
|
|
8941
9086
|
"cx",
|
|
8942
9087
|
"cy",
|
|
8943
9088
|
"r",
|
|
8944
9089
|
"stroke-width",
|
|
8945
9090
|
"stroke-dasharray",
|
|
8946
9091
|
"stroke-dashoffset"
|
|
8947
|
-
],
|
|
9092
|
+
], zf = {
|
|
8948
9093
|
key: 0,
|
|
8949
9094
|
class: "uid-progress-ring__label"
|
|
8950
|
-
},
|
|
9095
|
+
}, Bf = /* @__PURE__ */ f({
|
|
8951
9096
|
__name: "UidProgressRing",
|
|
8952
9097
|
props: {
|
|
8953
9098
|
value: { default: 0 },
|
|
@@ -8992,7 +9137,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
8992
9137
|
cy: i.value,
|
|
8993
9138
|
r: n.value,
|
|
8994
9139
|
"stroke-width": e.strokeWidth
|
|
8995
|
-
}, null, 8,
|
|
9140
|
+
}, null, 8, Lf), l("circle", {
|
|
8996
9141
|
class: "uid-progress-ring__progress",
|
|
8997
9142
|
cx: i.value,
|
|
8998
9143
|
cy: i.value,
|
|
@@ -9000,50 +9145,50 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9000
9145
|
"stroke-width": e.strokeWidth,
|
|
9001
9146
|
"stroke-dasharray": r.value,
|
|
9002
9147
|
"stroke-dashoffset": f.value
|
|
9003
|
-
}, null, 8,
|
|
9148
|
+
}, null, 8, Rf)], 8, If)), e.showLabel || t.$slots.default ? (T(), c("div", zf, [A(t.$slots, "default", {}, () => [u(P(p.value), 1)])])) : s("", !0)], 14, Ff));
|
|
9004
9149
|
}
|
|
9005
|
-
}),
|
|
9150
|
+
}), Vf = [
|
|
9006
9151
|
"aria-valuemin",
|
|
9007
9152
|
"aria-valuemax",
|
|
9008
9153
|
"aria-valuenow",
|
|
9009
9154
|
"aria-label"
|
|
9010
|
-
],
|
|
9155
|
+
], Hf = [
|
|
9011
9156
|
"width",
|
|
9012
9157
|
"height",
|
|
9013
9158
|
"viewBox"
|
|
9014
|
-
],
|
|
9159
|
+
], Uf = ["d", "stroke-width"], Wf = [
|
|
9015
9160
|
"d",
|
|
9016
9161
|
"stroke",
|
|
9017
9162
|
"stroke-width",
|
|
9018
9163
|
"stroke-dasharray",
|
|
9019
9164
|
"stroke-dashoffset"
|
|
9020
|
-
],
|
|
9165
|
+
], Gf = [
|
|
9021
9166
|
"d",
|
|
9022
9167
|
"stroke-width",
|
|
9023
9168
|
"stroke-dasharray",
|
|
9024
9169
|
"stroke-dashoffset"
|
|
9025
|
-
],
|
|
9170
|
+
], Kf = { key: 2 }, qf = [
|
|
9026
9171
|
"x1",
|
|
9027
9172
|
"y1",
|
|
9028
9173
|
"x2",
|
|
9029
9174
|
"y2",
|
|
9030
9175
|
"transform"
|
|
9031
|
-
],
|
|
9176
|
+
], Jf = ["cx", "cy"], Yf = {
|
|
9032
9177
|
key: 0,
|
|
9033
9178
|
class: "uid-gauge__content"
|
|
9034
|
-
},
|
|
9179
|
+
}, Xf = {
|
|
9035
9180
|
key: 0,
|
|
9036
9181
|
class: "uid-gauge__value"
|
|
9037
|
-
},
|
|
9182
|
+
}, Zf = {
|
|
9038
9183
|
key: 0,
|
|
9039
9184
|
class: "uid-gauge__suffix"
|
|
9040
|
-
},
|
|
9185
|
+
}, Qf = {
|
|
9041
9186
|
key: 1,
|
|
9042
9187
|
class: "uid-gauge__label"
|
|
9043
|
-
},
|
|
9188
|
+
}, $f = {
|
|
9044
9189
|
key: 1,
|
|
9045
9190
|
class: "uid-gauge__limits"
|
|
9046
|
-
},
|
|
9191
|
+
}, ep = 4, tp = /* @__PURE__ */ f({
|
|
9047
9192
|
__name: "UidGauge",
|
|
9048
9193
|
props: {
|
|
9049
9194
|
value: { default: 0 },
|
|
@@ -9073,7 +9218,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9073
9218
|
locale: { default: void 0 }
|
|
9074
9219
|
},
|
|
9075
9220
|
setup(e) {
|
|
9076
|
-
let n = e, r = $(), i = a(() => n.locale ?? r.value.code), o = a(() => (n.size - n.strokeWidth) / 2 -
|
|
9221
|
+
let n = e, r = $(), i = a(() => n.locale ?? r.value.code), o = a(() => (n.size - n.strokeWidth) / 2 - ep), u = a(() => n.size / 2), d = a(() => n.size / 2), f = a(() => n.size / 2 + n.strokeWidth / 2 + ep), p = a(() => Math.PI * o.value), m = a(() => Math.max(n.min, Math.min(n.max, n.value))), h = a(() => {
|
|
9077
9222
|
let e = n.max - n.min;
|
|
9078
9223
|
return e <= 0 ? 0 : (m.value - n.min) / e;
|
|
9079
9224
|
}), g = a(() => {
|
|
@@ -9111,7 +9256,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9111
9256
|
class: "uid-gauge__track",
|
|
9112
9257
|
d: g.value,
|
|
9113
9258
|
"stroke-width": e.strokeWidth
|
|
9114
|
-
}, null, 8,
|
|
9259
|
+
}, null, 8, Uf),
|
|
9115
9260
|
e.ranges && e.ranges.length ? (T(!0), c(t, { key: 0 }, k(e.ranges, (t, n) => (T(), c("path", {
|
|
9116
9261
|
key: n,
|
|
9117
9262
|
class: "uid-gauge__range",
|
|
@@ -9120,7 +9265,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9120
9265
|
"stroke-width": e.strokeWidth,
|
|
9121
9266
|
"stroke-dasharray": v(t).dasharray,
|
|
9122
9267
|
"stroke-dashoffset": v(t).dashoffset
|
|
9123
|
-
}, null, 8,
|
|
9268
|
+
}, null, 8, Wf))), 128)) : s("", !0),
|
|
9124
9269
|
!e.ranges || e.ranges.length === 0 ? (T(), c("path", {
|
|
9125
9270
|
key: 1,
|
|
9126
9271
|
class: "uid-gauge__progress",
|
|
@@ -9128,43 +9273,43 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9128
9273
|
"stroke-width": e.strokeWidth,
|
|
9129
9274
|
"stroke-dasharray": p.value,
|
|
9130
9275
|
"stroke-dashoffset": _.value
|
|
9131
|
-
}, null, 8,
|
|
9132
|
-
e.showNeedle ? (T(), c("g",
|
|
9276
|
+
}, null, 8, Gf)) : s("", !0),
|
|
9277
|
+
e.showNeedle ? (T(), c("g", Kf, [l("line", {
|
|
9133
9278
|
class: "uid-gauge__needle",
|
|
9134
9279
|
x1: u.value,
|
|
9135
9280
|
y1: d.value,
|
|
9136
9281
|
x2: u.value + o.value - e.strokeWidth,
|
|
9137
9282
|
y2: d.value,
|
|
9138
9283
|
transform: `rotate(${x.value} ${u.value} ${d.value})`
|
|
9139
|
-
}, null, 8,
|
|
9284
|
+
}, null, 8, qf), l("circle", {
|
|
9140
9285
|
class: "uid-gauge__needle-pivot",
|
|
9141
9286
|
cx: u.value,
|
|
9142
9287
|
cy: d.value,
|
|
9143
9288
|
r: "4"
|
|
9144
|
-
}, null, 8,
|
|
9145
|
-
], 8,
|
|
9146
|
-
e.showValue || e.label ? (T(), c("div",
|
|
9147
|
-
e.showLimits ? (T(), c("div",
|
|
9148
|
-
], 14,
|
|
9289
|
+
}, null, 8, Jf)])) : s("", !0)
|
|
9290
|
+
], 8, Hf)),
|
|
9291
|
+
e.showValue || e.label ? (T(), c("div", Yf, [e.showValue ? (T(), c("div", Xf, [l("span", null, P(S.value), 1), e.suffix ? (T(), c("span", Zf, P(e.suffix), 1)) : s("", !0)])) : s("", !0), e.label ? (T(), c("div", Qf, P(e.label), 1)) : s("", !0)])) : s("", !0),
|
|
9292
|
+
e.showLimits ? (T(), c("div", $f, [l("span", null, P(e.min), 1), l("span", null, P(e.max), 1)])) : s("", !0)
|
|
9293
|
+
], 14, Vf));
|
|
9149
9294
|
}
|
|
9150
|
-
}),
|
|
9295
|
+
}), np = ["aria-label"], rp = { class: "uid-heatmap__chart" }, ip = {
|
|
9151
9296
|
key: 0,
|
|
9152
9297
|
class: "uid-heatmap__weekdays",
|
|
9153
9298
|
"aria-hidden": "true"
|
|
9154
|
-
},
|
|
9299
|
+
}, ap = { class: "uid-heatmap__grid-wrapper" }, op = [
|
|
9155
9300
|
"width",
|
|
9156
9301
|
"height",
|
|
9157
9302
|
"viewBox"
|
|
9158
|
-
],
|
|
9303
|
+
], sp = [
|
|
9159
9304
|
"x",
|
|
9160
9305
|
"y",
|
|
9161
9306
|
"width",
|
|
9162
9307
|
"height",
|
|
9163
9308
|
"fill"
|
|
9164
|
-
],
|
|
9309
|
+
], cp = {
|
|
9165
9310
|
key: 0,
|
|
9166
9311
|
class: "uid-heatmap__legend"
|
|
9167
|
-
},
|
|
9312
|
+
}, lp = /* @__PURE__ */ f({
|
|
9168
9313
|
__name: "UidHeatmap",
|
|
9169
9314
|
props: {
|
|
9170
9315
|
data: {},
|
|
@@ -9270,10 +9415,10 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9270
9415
|
style: b(w.value),
|
|
9271
9416
|
role: "img",
|
|
9272
9417
|
"aria-label": A.value
|
|
9273
|
-
}, [l("div",
|
|
9418
|
+
}, [l("div", rp, [e.showWeekdays ? (T(), c("div", ip, [(T(!0), c(t, null, k(L(r).datePicker.weekdaysShort, (e, t) => (T(), c("span", {
|
|
9274
9419
|
key: e,
|
|
9275
9420
|
class: y(["uid-heatmap__weekday", { "uid-heatmap__weekday--visible": t === 0 || t === 2 || t === 4 }])
|
|
9276
|
-
}, P(e), 3))), 128))])) : s("", !0), l("div",
|
|
9421
|
+
}, P(e), 3))), 128))])) : s("", !0), l("div", ap, [e.showMonths ? (T(), c("div", {
|
|
9277
9422
|
key: 0,
|
|
9278
9423
|
class: "uid-heatmap__months",
|
|
9279
9424
|
style: b({ width: `${S.value}px` }),
|
|
@@ -9296,7 +9441,7 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9296
9441
|
width: e.cellSize,
|
|
9297
9442
|
height: e.cellSize,
|
|
9298
9443
|
fill: v(t.level)
|
|
9299
|
-
}, [l("title", null, P(D(t)), 1)], 8,
|
|
9444
|
+
}, [l("title", null, P(D(t)), 1)], 8, sp))), 128))], 8, op))])]), e.showLegend ? (T(), c("div", cp, [
|
|
9300
9445
|
l("span", null, P(L(r).heatmap.less), 1),
|
|
9301
9446
|
(T(!0), c(t, null, k(E.value, (e) => (T(), c("span", {
|
|
9302
9447
|
key: e,
|
|
@@ -9304,9 +9449,9 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9304
9449
|
style: b(e === 0 ? void 0 : { background: v(e) })
|
|
9305
9450
|
}, null, 4))), 128)),
|
|
9306
9451
|
l("span", null, P(L(r).heatmap.more), 1)
|
|
9307
|
-
])) : s("", !0)], 12,
|
|
9452
|
+
])) : s("", !0)], 12, np));
|
|
9308
9453
|
}
|
|
9309
|
-
}),
|
|
9454
|
+
}), up = {
|
|
9310
9455
|
default: ["color-mix(in srgb, var(--uid-heatmap-matrix-color) 14%, var(--uid-color-bg))", "var(--uid-heatmap-matrix-color)"],
|
|
9311
9456
|
viridis: [
|
|
9312
9457
|
"#440154",
|
|
@@ -9386,42 +9531,42 @@ var _l = ["innerHTML"], vl = ["data-language", "innerHTML"], yl = ["data-languag
|
|
|
9386
9531
|
"#67000d"
|
|
9387
9532
|
]
|
|
9388
9533
|
};
|
|
9389
|
-
function
|
|
9390
|
-
return Object.prototype.hasOwnProperty.call(
|
|
9534
|
+
function dp(e) {
|
|
9535
|
+
return Object.prototype.hasOwnProperty.call(up, e);
|
|
9391
9536
|
}
|
|
9392
|
-
function
|
|
9537
|
+
function fp(e) {
|
|
9393
9538
|
if (Array.isArray(e)) {
|
|
9394
9539
|
let t = e.filter((e) => typeof e == "string" && e.trim() !== "");
|
|
9395
|
-
return t.length > 0 ? t : [
|
|
9540
|
+
return t.length > 0 ? t : [...up.default];
|
|
9396
9541
|
}
|
|
9397
9542
|
let t = typeof e == "string" ? e.trim() : "";
|
|
9398
|
-
if (t === "") return [
|
|
9543
|
+
if (t === "") return [...up.default];
|
|
9399
9544
|
let n = t.toLowerCase();
|
|
9400
|
-
return
|
|
9545
|
+
return dp(n) ? [...up[n]] : pp(t) ? [`color-mix(in srgb, ${t} 14%, var(--uid-color-bg))`, t] : [...up.default];
|
|
9401
9546
|
}
|
|
9402
|
-
function
|
|
9547
|
+
function pp(e) {
|
|
9403
9548
|
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
9549
|
}
|
|
9405
|
-
function
|
|
9550
|
+
function mp(e, t) {
|
|
9406
9551
|
if (e.length === 0) return "transparent";
|
|
9407
9552
|
if (e.length === 1) return e[0];
|
|
9408
9553
|
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
9554
|
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
9555
|
}
|
|
9411
|
-
function
|
|
9556
|
+
function hp(e) {
|
|
9412
9557
|
return e.length === 1 ? e[0] : `linear-gradient(to right, ${e.join(", ")})`;
|
|
9413
9558
|
}
|
|
9414
9559
|
//#endregion
|
|
9415
9560
|
//#region src/components/Heatmap/UidHeatmapMatrix.vue?vue&type=script&setup=true&lang.ts
|
|
9416
|
-
var
|
|
9561
|
+
var gp = { class: "uid-heatmap-matrix__scroll" }, _p = [
|
|
9417
9562
|
"aria-label",
|
|
9418
9563
|
"aria-rowcount",
|
|
9419
9564
|
"aria-colcount"
|
|
9420
|
-
],
|
|
9565
|
+
], vp = {
|
|
9421
9566
|
class: "uid-heatmap-matrix__row uid-heatmap-matrix__row--head",
|
|
9422
9567
|
role: "row",
|
|
9423
9568
|
"aria-rowindex": "1"
|
|
9424
|
-
},
|
|
9569
|
+
}, yp = ["aria-colindex", "aria-label"], bp = ["title"], xp = ["aria-rowindex"], Sp = ["title"], Cp = [
|
|
9425
9570
|
"aria-colindex",
|
|
9426
9571
|
"aria-label",
|
|
9427
9572
|
"tabindex",
|
|
@@ -9429,14 +9574,14 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9429
9574
|
"data-c",
|
|
9430
9575
|
"onMouseenter",
|
|
9431
9576
|
"onFocus"
|
|
9432
|
-
],
|
|
9577
|
+
], wp = { class: "uid-heatmap-matrix__tooltip-label" }, Tp = { class: "uid-heatmap-matrix__tooltip-value" }, Ep = {
|
|
9433
9578
|
key: 1,
|
|
9434
9579
|
class: "uid-heatmap-matrix__legend",
|
|
9435
9580
|
"aria-hidden": "true"
|
|
9436
|
-
},
|
|
9581
|
+
}, Dp = { class: "uid-heatmap-matrix__legend-value" }, Op = { class: "uid-heatmap-matrix__legend-value" }, kp = {
|
|
9437
9582
|
key: 0,
|
|
9438
9583
|
class: "uid-heatmap-matrix__legend-empty"
|
|
9439
|
-
},
|
|
9584
|
+
}, Ap = 11, jp = 96, Mp = 18, Np = /* @__PURE__ */ f({
|
|
9440
9585
|
__name: "UidHeatmapMatrix",
|
|
9441
9586
|
props: {
|
|
9442
9587
|
rows: {},
|
|
@@ -9472,13 +9617,13 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9472
9617
|
min: typeof n.min == "number" ? n.min : e,
|
|
9473
9618
|
max: typeof n.max == "number" ? n.max : t
|
|
9474
9619
|
};
|
|
9475
|
-
}), C = a(() => g.value.some((e) => e.some((e) => e === null))), w = a(() =>
|
|
9620
|
+
}), C = a(() => g.value.some((e) => e.some((e) => e === null))), w = a(() => fp(n.colorScale));
|
|
9476
9621
|
function E(e) {
|
|
9477
9622
|
let { min: t, max: n } = _.value;
|
|
9478
9623
|
return n <= t ? +(e > t) : (e - t) / (n - t);
|
|
9479
9624
|
}
|
|
9480
9625
|
function D(e) {
|
|
9481
|
-
if (e !== null) return
|
|
9626
|
+
if (e !== null) return mp(w.value, E(e));
|
|
9482
9627
|
}
|
|
9483
9628
|
function j(e) {
|
|
9484
9629
|
return n.formatValue ? n.formatValue(e) : new Intl.NumberFormat(r.value.code).format(e);
|
|
@@ -9500,7 +9645,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9500
9645
|
return `${n.row} × ${n.col}: ${M(n.value)}`;
|
|
9501
9646
|
}
|
|
9502
9647
|
function I(e) {
|
|
9503
|
-
return Math.min(
|
|
9648
|
+
return Math.min(jp, e.length * Ap * .6);
|
|
9504
9649
|
}
|
|
9505
9650
|
let R = a(() => n.cols.reduce((e, t) => Math.max(e, I(t)), 0)), z = a(() => {
|
|
9506
9651
|
let e = n.cols.length, t = p.value, r = n.colLabels;
|
|
@@ -9509,7 +9654,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9509
9654
|
step: 1,
|
|
9510
9655
|
reserve: 0
|
|
9511
9656
|
};
|
|
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 +
|
|
9657
|
+
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 + Ap) * 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(Mp / u));
|
|
9513
9658
|
return r === "horizontal" ? {
|
|
9514
9659
|
mode: "horizontal",
|
|
9515
9660
|
step: c,
|
|
@@ -9537,7 +9682,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9537
9682
|
"--uid-heatmap-matrix-min-cell": `${n.minCellWidth}px`,
|
|
9538
9683
|
"--uid-heatmap-matrix-gap": `${n.gap}px`,
|
|
9539
9684
|
"--uid-heatmap-matrix-header-height": `${V.value}px`
|
|
9540
|
-
})), U = a(() => z.value.reserve > 0 ? { paddingInlineEnd: `${z.value.reserve}px` } : void 0), W = a(() =>
|
|
9685
|
+
})), U = a(() => z.value.reserve > 0 ? { paddingInlineEnd: `${z.value.reserve}px` } : void 0), W = a(() => hp(w.value)), K = a(() => n.ariaLabel ?? r.value.heatmap.matrixSummary(n.rows.length, n.cols.length)), q = O({
|
|
9541
9686
|
r: 0,
|
|
9542
9687
|
c: 0
|
|
9543
9688
|
}), 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 +9780,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9635
9780
|
class: y(["uid-heatmap-matrix", `uid-heatmap-matrix--labels-${z.value.mode}`]),
|
|
9636
9781
|
style: b(H.value)
|
|
9637
9782
|
}, [
|
|
9638
|
-
l("div",
|
|
9783
|
+
l("div", gp, [l("div", {
|
|
9639
9784
|
class: "uid-heatmap-matrix__grid",
|
|
9640
9785
|
role: "grid",
|
|
9641
9786
|
style: b(U.value),
|
|
@@ -9644,7 +9789,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9644
9789
|
"aria-colcount": e.cols.length + 1,
|
|
9645
9790
|
onMouseleave: re,
|
|
9646
9791
|
onKeydown: oe
|
|
9647
|
-
}, [l("div",
|
|
9792
|
+
}, [l("div", vp, [i[0] ||= l("div", {
|
|
9648
9793
|
class: "uid-heatmap-matrix__corner",
|
|
9649
9794
|
role: "columnheader",
|
|
9650
9795
|
"aria-colindex": "1"
|
|
@@ -9658,7 +9803,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9658
9803
|
class: y(["uid-heatmap-matrix__col-label", { "uid-heatmap-matrix__col-label--hidden": !B(t) }]),
|
|
9659
9804
|
title: e,
|
|
9660
9805
|
"aria-hidden": "true"
|
|
9661
|
-
}, P(e), 11,
|
|
9806
|
+
}, P(e), 11, bp)], 8, yp))), 128))]), (T(!0), c(t, null, k(e.rows, (n, r) => (T(), c("div", {
|
|
9662
9807
|
key: `r-${r}`,
|
|
9663
9808
|
class: "uid-heatmap-matrix__row",
|
|
9664
9809
|
role: "row",
|
|
@@ -9671,7 +9816,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9671
9816
|
role: "rowheader",
|
|
9672
9817
|
"aria-colindex": "1",
|
|
9673
9818
|
title: n
|
|
9674
|
-
}, P(n), 9,
|
|
9819
|
+
}, P(n), 9, Sp), (T(!0), c(t, null, k(e.cols, (e, t) => (T(), c("div", {
|
|
9675
9820
|
key: `c-${r}-${t}`,
|
|
9676
9821
|
class: y(["uid-heatmap-matrix__cell", {
|
|
9677
9822
|
"uid-heatmap-matrix__cell--empty": g.value[r][t] === null,
|
|
@@ -9687,7 +9832,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9687
9832
|
onMouseenter: (e) => ne(r, t),
|
|
9688
9833
|
onFocus: (e) => ie(r, t),
|
|
9689
9834
|
onBlur: ae
|
|
9690
|
-
}, null, 46,
|
|
9835
|
+
}, null, 46, Cp))), 128))], 8, xp))), 128))], 44, _p)]),
|
|
9691
9836
|
Z.value ? (T(), c("div", {
|
|
9692
9837
|
key: 0,
|
|
9693
9838
|
ref_key: "tooltipRef",
|
|
@@ -9698,25 +9843,25 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9698
9843
|
}, [A(n.$slots, "tooltip", {
|
|
9699
9844
|
cell: Z.value,
|
|
9700
9845
|
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",
|
|
9846
|
+
}, () => [l("span", wp, P(Z.value.row) + " × " + P(Z.value.col), 1), l("strong", Tp, P(M(Z.value.value)), 1)])], 4)) : s("", !0),
|
|
9847
|
+
e.showLegend && e.rows.length > 0 && e.cols.length > 0 ? (T(), c("div", Ep, [
|
|
9848
|
+
l("span", Dp, P(j(_.value.min)), 1),
|
|
9704
9849
|
l("span", {
|
|
9705
9850
|
class: "uid-heatmap-matrix__legend-bar",
|
|
9706
9851
|
style: b({ background: W.value })
|
|
9707
9852
|
}, null, 4),
|
|
9708
|
-
l("span",
|
|
9709
|
-
C.value ? (T(), c("span",
|
|
9853
|
+
l("span", Op, P(j(_.value.max)), 1),
|
|
9854
|
+
C.value ? (T(), c("span", kp, [i[1] ||= l("span", { class: "uid-heatmap-matrix__legend-swatch" }, null, -1), u(" " + P(L(r).heatmap.noData), 1)])) : s("", !0)
|
|
9710
9855
|
])) : s("", !0)
|
|
9711
9856
|
], 6));
|
|
9712
9857
|
}
|
|
9713
|
-
}),
|
|
9858
|
+
}), Pp = ["aria-label"], Fp = ["aria-current"], Ip = { class: "uid-stepper__indicator" }, Lp = {
|
|
9714
9859
|
key: 1,
|
|
9715
9860
|
"aria-hidden": "true"
|
|
9716
|
-
},
|
|
9861
|
+
}, Rp = { class: "uid-stepper__content" }, zp = { class: "uid-stepper__label" }, Bp = {
|
|
9717
9862
|
key: 0,
|
|
9718
9863
|
class: "uid-stepper__description"
|
|
9719
|
-
},
|
|
9864
|
+
}, Vp = /* @__PURE__ */ f({
|
|
9720
9865
|
__name: "UidStepper",
|
|
9721
9866
|
props: {
|
|
9722
9867
|
steps: {},
|
|
@@ -9745,20 +9890,20 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9745
9890
|
class: y(["uid-stepper__target", { "uid-stepper__target--selectable": d(r) }]),
|
|
9746
9891
|
onClick: (e) => d(r) && u("select", r)
|
|
9747
9892
|
}, {
|
|
9748
|
-
default: q(() => [l("div",
|
|
9893
|
+
default: q(() => [l("div", Ip, [f(r, n.current) === "completed" ? (T(), o(e, {
|
|
9749
9894
|
key: 0,
|
|
9750
9895
|
icon: L(Q),
|
|
9751
9896
|
size: 16,
|
|
9752
9897
|
"aria-hidden": "true"
|
|
9753
|
-
}, null, 8, ["icon"])) : (T(), c("span",
|
|
9898
|
+
}, null, 8, ["icon"])) : (T(), c("span", Lp, P(r + 1), 1))]), l("div", Rp, [l("span", zp, P(t.label), 1), t.description ? (T(), c("span", Bp, P(t.description), 1)) : s("", !0)])]),
|
|
9754
9899
|
_: 2
|
|
9755
9900
|
}, 1032, [
|
|
9756
9901
|
"type",
|
|
9757
9902
|
"class",
|
|
9758
9903
|
"onClick"
|
|
9759
|
-
]))], 10,
|
|
9904
|
+
]))], 10, Fp))), 128))], 10, Pp));
|
|
9760
9905
|
}
|
|
9761
|
-
}),
|
|
9906
|
+
}), Hp = /* @__PURE__ */ f({
|
|
9762
9907
|
__name: "UidStack",
|
|
9763
9908
|
props: {
|
|
9764
9909
|
direction: { default: "column" },
|
|
@@ -9804,7 +9949,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9804
9949
|
_: 3
|
|
9805
9950
|
}, 8, ["class", "style"]));
|
|
9806
9951
|
}
|
|
9807
|
-
}),
|
|
9952
|
+
}), Up = /* @__PURE__ */ f({
|
|
9808
9953
|
__name: "UidGrid",
|
|
9809
9954
|
props: {
|
|
9810
9955
|
cols: { default: 12 },
|
|
@@ -9839,7 +9984,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9839
9984
|
_: 3
|
|
9840
9985
|
}, 8, ["style"]));
|
|
9841
9986
|
}
|
|
9842
|
-
}),
|
|
9987
|
+
}), Wp = /* @__PURE__ */ f({
|
|
9843
9988
|
__name: "UidContainer",
|
|
9844
9989
|
props: {
|
|
9845
9990
|
size: { default: "lg" },
|
|
@@ -9855,7 +10000,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9855
10000
|
_: 3
|
|
9856
10001
|
}, 8, ["class"]));
|
|
9857
10002
|
}
|
|
9858
|
-
}),
|
|
10003
|
+
}), Gp = Symbol("uid-wizard"), Kp = { class: "uid-wizard" }, qp = /* @__PURE__ */ f({
|
|
9859
10004
|
__name: "UidWizard",
|
|
9860
10005
|
props: /* @__PURE__ */ g({ steps: {} }, {
|
|
9861
10006
|
modelValue: { default: 0 },
|
|
@@ -9880,7 +10025,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9880
10025
|
function m(e) {
|
|
9881
10026
|
i.delete(e);
|
|
9882
10027
|
}
|
|
9883
|
-
return E(
|
|
10028
|
+
return E(Gp, {
|
|
9884
10029
|
current: r,
|
|
9885
10030
|
steps: o,
|
|
9886
10031
|
isFirst: s,
|
|
@@ -9897,9 +10042,9 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9897
10042
|
goTo: f,
|
|
9898
10043
|
isFirst: s,
|
|
9899
10044
|
isLast: l
|
|
9900
|
-
}), (e, t) => (T(), c("div",
|
|
10045
|
+
}), (e, t) => (T(), c("div", Kp, [A(e.$slots, "default")]));
|
|
9901
10046
|
}
|
|
9902
|
-
}),
|
|
10047
|
+
}), Jp = ["aria-label"], Yp = /* @__PURE__ */ f({
|
|
9903
10048
|
__name: "UidWizardStep",
|
|
9904
10049
|
props: {
|
|
9905
10050
|
index: {},
|
|
@@ -9909,7 +10054,7 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9909
10054
|
}
|
|
9910
10055
|
},
|
|
9911
10056
|
setup(e) {
|
|
9912
|
-
let t = e, n = $(), r = h(
|
|
10057
|
+
let t = e, n = $(), r = h(Gp);
|
|
9913
10058
|
if (!r) throw Error("UidWizardStep must be inside UidWizard");
|
|
9914
10059
|
G(() => t.validate, (e, n) => {
|
|
9915
10060
|
n !== void 0 && r.unregisterValidator(t.index), e !== void 0 && r.registerValidator(t.index, e);
|
|
@@ -9920,18 +10065,18 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9920
10065
|
class: "uid-wizard-step",
|
|
9921
10066
|
role: "tabpanel",
|
|
9922
10067
|
"aria-label": L(n).wizard.step(e.index + 1)
|
|
9923
|
-
}, [A(t.$slots, "default")], 8,
|
|
10068
|
+
}, [A(t.$slots, "default")], 8, Jp)) : s("", !0);
|
|
9924
10069
|
}
|
|
9925
|
-
}),
|
|
10070
|
+
}), Xp = { class: "uid-pattern-header__inner" }, Zp = {
|
|
9926
10071
|
key: 0,
|
|
9927
10072
|
class: "uid-pattern-header__logo"
|
|
9928
|
-
},
|
|
10073
|
+
}, Qp = ["aria-label"], $p = {
|
|
9929
10074
|
key: 2,
|
|
9930
10075
|
class: "uid-pattern-header__actions"
|
|
9931
|
-
},
|
|
10076
|
+
}, em = {
|
|
9932
10077
|
key: 3,
|
|
9933
10078
|
class: "uid-pattern-header__mobile"
|
|
9934
|
-
},
|
|
10079
|
+
}, tm = /* @__PURE__ */ f({
|
|
9935
10080
|
__name: "UidHeader",
|
|
9936
10081
|
props: {
|
|
9937
10082
|
sticky: {
|
|
@@ -9953,39 +10098,39 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
9953
10098
|
"uid-pattern-header--sticky": e.sticky,
|
|
9954
10099
|
"uid-pattern-header--bordered": e.bordered,
|
|
9955
10100
|
"uid-pattern-header--transparent": e.transparent
|
|
9956
|
-
}]) }, [l("div",
|
|
9957
|
-
n.$slots.logo ? (T(), c("div",
|
|
10101
|
+
}]) }, [l("div", Xp, [
|
|
10102
|
+
n.$slots.logo ? (T(), c("div", Zp, [A(n.$slots, "logo")])) : s("", !0),
|
|
9958
10103
|
n.$slots.nav ? (T(), c("nav", {
|
|
9959
10104
|
key: 1,
|
|
9960
10105
|
class: "uid-pattern-header__nav",
|
|
9961
10106
|
"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",
|
|
10107
|
+
}, [A(n.$slots, "nav")], 8, Qp)) : s("", !0),
|
|
10108
|
+
n.$slots.actions ? (T(), c("div", $p, [A(n.$slots, "actions")])) : s("", !0),
|
|
10109
|
+
n.$slots.mobile ? (T(), c("div", em, [A(n.$slots, "mobile")])) : s("", !0)
|
|
9965
10110
|
])], 2));
|
|
9966
10111
|
}
|
|
9967
|
-
}),
|
|
10112
|
+
}), nm = { class: "uid-pattern-footer__inner" }, rm = {
|
|
9968
10113
|
key: 0,
|
|
9969
10114
|
class: "uid-pattern-footer__columns"
|
|
9970
|
-
},
|
|
10115
|
+
}, im = {
|
|
9971
10116
|
key: 1,
|
|
9972
10117
|
class: "uid-pattern-footer__content"
|
|
9973
|
-
},
|
|
10118
|
+
}, am = {
|
|
9974
10119
|
key: 2,
|
|
9975
10120
|
class: "uid-pattern-footer__bottom"
|
|
9976
|
-
},
|
|
10121
|
+
}, om = /* @__PURE__ */ f({
|
|
9977
10122
|
__name: "UidFooter",
|
|
9978
10123
|
props: { variant: { default: "minimal" } },
|
|
9979
10124
|
setup(e) {
|
|
9980
|
-
return (t, n) => (T(), c("footer", { class: y(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div",
|
|
10125
|
+
return (t, n) => (T(), c("footer", { class: y(["uid-pattern-footer", `uid-pattern-footer--${e.variant}`]) }, [l("div", nm, [t.$slots.columns ? (T(), c("div", rm, [A(t.$slots, "columns")])) : t.$slots.default ? (T(), c("div", im, [A(t.$slots, "default")])) : s("", !0), t.$slots.bottom ? (T(), c("div", am, [A(t.$slots, "bottom")])) : s("", !0)])], 2));
|
|
9981
10126
|
}
|
|
9982
|
-
}),
|
|
10127
|
+
}), sm = ["aria-label"], cm = {
|
|
9983
10128
|
key: 0,
|
|
9984
10129
|
class: "uid-pattern-sidebar__header"
|
|
9985
|
-
},
|
|
10130
|
+
}, lm = ["aria-label"], um = {
|
|
9986
10131
|
key: 1,
|
|
9987
10132
|
class: "uid-pattern-sidebar__footer"
|
|
9988
|
-
},
|
|
10133
|
+
}, dm = /* @__PURE__ */ f({
|
|
9989
10134
|
__name: "UidSidebar",
|
|
9990
10135
|
props: {
|
|
9991
10136
|
collapsed: {
|
|
@@ -10002,22 +10147,22 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
10002
10147
|
style: b(e.width && !e.collapsed ? { "--uid-sidebar-width": e.width } : void 0),
|
|
10003
10148
|
"aria-label": L(t).sidebar.label
|
|
10004
10149
|
}, [
|
|
10005
|
-
n.$slots.header ? (T(), c("div",
|
|
10150
|
+
n.$slots.header ? (T(), c("div", cm, [A(n.$slots, "header")])) : s("", !0),
|
|
10006
10151
|
l("nav", {
|
|
10007
10152
|
class: "uid-pattern-sidebar__nav",
|
|
10008
10153
|
"aria-label": L(t).sidebar.nav
|
|
10009
|
-
}, [A(n.$slots, "nav")], 8,
|
|
10010
|
-
n.$slots.footer ? (T(), c("div",
|
|
10011
|
-
], 14,
|
|
10154
|
+
}, [A(n.$slots, "nav")], 8, lm),
|
|
10155
|
+
n.$slots.footer ? (T(), c("div", um, [A(n.$slots, "footer")])) : s("", !0)
|
|
10156
|
+
], 14, sm));
|
|
10012
10157
|
}
|
|
10013
|
-
}),
|
|
10158
|
+
}), fm = {
|
|
10014
10159
|
key: 0,
|
|
10015
10160
|
class: "uid-sidebar-item__icon",
|
|
10016
10161
|
"aria-hidden": "true"
|
|
10017
|
-
},
|
|
10162
|
+
}, pm = { class: "uid-sidebar-item__label" }, mm = {
|
|
10018
10163
|
key: 1,
|
|
10019
10164
|
class: "uid-sidebar-item__badge"
|
|
10020
|
-
},
|
|
10165
|
+
}, hm = /* @__PURE__ */ f({
|
|
10021
10166
|
__name: "UidSidebarItem",
|
|
10022
10167
|
props: {
|
|
10023
10168
|
href: { default: void 0 },
|
|
@@ -10044,9 +10189,9 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
10044
10189
|
tabindex: e.disabled ? -1 : void 0
|
|
10045
10190
|
}), {
|
|
10046
10191
|
default: q(() => [
|
|
10047
|
-
t.$slots.icon ? (T(), c("span",
|
|
10048
|
-
l("span",
|
|
10049
|
-
e.badge === void 0 ? s("", !0) : (T(), c("span",
|
|
10192
|
+
t.$slots.icon ? (T(), c("span", fm, [A(t.$slots, "icon")])) : s("", !0),
|
|
10193
|
+
l("span", pm, [A(t.$slots, "default")]),
|
|
10194
|
+
e.badge === void 0 ? s("", !0) : (T(), c("span", mm, P(e.badge), 1))
|
|
10050
10195
|
]),
|
|
10051
10196
|
_: 3
|
|
10052
10197
|
}, 16, [
|
|
@@ -10056,10 +10201,10 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
10056
10201
|
"tabindex"
|
|
10057
10202
|
]));
|
|
10058
10203
|
}
|
|
10059
|
-
}),
|
|
10204
|
+
}), gm = { class: "uid-sidebar-group" }, _m = {
|
|
10060
10205
|
key: 0,
|
|
10061
10206
|
class: "uid-sidebar-group__title"
|
|
10062
|
-
},
|
|
10207
|
+
}, vm = /* @__PURE__ */ f({
|
|
10063
10208
|
__name: "UidSidebarGroup",
|
|
10064
10209
|
props: {
|
|
10065
10210
|
title: { default: void 0 },
|
|
@@ -10069,29 +10214,29 @@ var ap = { class: "uid-heatmap-matrix__scroll" }, op = [
|
|
|
10069
10214
|
}
|
|
10070
10215
|
},
|
|
10071
10216
|
setup(e) {
|
|
10072
|
-
return (t, n) => (T(), c("div",
|
|
10217
|
+
return (t, n) => (T(), c("div", gm, [e.title ? (T(), c("p", _m, P(e.title), 1)) : s("", !0), A(t.$slots, "default")]));
|
|
10073
10218
|
}
|
|
10074
|
-
}),
|
|
10219
|
+
}), ym = {}, bm = {
|
|
10075
10220
|
class: "uid-sidebar-divider",
|
|
10076
10221
|
role: "separator",
|
|
10077
10222
|
"aria-hidden": "true"
|
|
10078
10223
|
};
|
|
10079
|
-
function
|
|
10080
|
-
return T(), c("div",
|
|
10224
|
+
function xm(e, t) {
|
|
10225
|
+
return T(), c("div", bm);
|
|
10081
10226
|
}
|
|
10082
|
-
var
|
|
10227
|
+
var Sm = /* @__PURE__ */ yr(ym, [["render", xm]]), Cm = { class: "uid-pattern-page-header" }, wm = {
|
|
10083
10228
|
key: 0,
|
|
10084
10229
|
class: "uid-pattern-page-header__breadcrumb"
|
|
10085
|
-
},
|
|
10230
|
+
}, Tm = { class: "uid-pattern-page-header__row" }, Em = { class: "uid-pattern-page-header__heading" }, Dm = ["aria-label"], Om = { class: "uid-pattern-page-header__title" }, km = {
|
|
10086
10231
|
key: 0,
|
|
10087
10232
|
class: "uid-pattern-page-header__description"
|
|
10088
|
-
},
|
|
10233
|
+
}, Am = {
|
|
10089
10234
|
key: 0,
|
|
10090
10235
|
class: "uid-pattern-page-header__actions"
|
|
10091
|
-
},
|
|
10236
|
+
}, jm = {
|
|
10092
10237
|
key: 1,
|
|
10093
10238
|
class: "uid-pattern-page-header__tabs"
|
|
10094
|
-
},
|
|
10239
|
+
}, Mm = /* @__PURE__ */ f({
|
|
10095
10240
|
__name: "UidPageHeader",
|
|
10096
10241
|
props: {
|
|
10097
10242
|
title: { default: void 0 },
|
|
@@ -10104,9 +10249,9 @@ var dm = /* @__PURE__ */ yr(cm, [["render", um]]), fm = { class: "uid-pattern-pa
|
|
|
10104
10249
|
emits: ["back"],
|
|
10105
10250
|
setup(t, { emit: n }) {
|
|
10106
10251
|
let r = $(), i = n;
|
|
10107
|
-
return (n, a) => (T(), c("div",
|
|
10108
|
-
n.$slots.breadcrumb ? (T(), c("div",
|
|
10109
|
-
l("div",
|
|
10252
|
+
return (n, a) => (T(), c("div", Cm, [
|
|
10253
|
+
n.$slots.breadcrumb ? (T(), c("div", wm, [A(n.$slots, "breadcrumb")])) : s("", !0),
|
|
10254
|
+
l("div", Tm, [l("div", Em, [t.back ? (T(), c("button", {
|
|
10110
10255
|
key: 0,
|
|
10111
10256
|
type: "button",
|
|
10112
10257
|
class: "uid-pattern-page-header__back",
|
|
@@ -10115,17 +10260,17 @@ var dm = /* @__PURE__ */ yr(cm, [["render", um]]), fm = { class: "uid-pattern-pa
|
|
|
10115
10260
|
}, [d(e, {
|
|
10116
10261
|
icon: L(ne),
|
|
10117
10262
|
size: 20
|
|
10118
|
-
}, null, 8, ["icon"])], 8,
|
|
10119
|
-
n.$slots.tabs ? (T(), c("div",
|
|
10263
|
+
}, null, 8, ["icon"])], 8, Dm)) : s("", !0), l("div", null, [l("h1", Om, [A(n.$slots, "title", {}, () => [u(P(t.title), 1)])]), t.description || n.$slots.description ? (T(), c("p", km, [A(n.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0)])]), n.$slots.actions ? (T(), c("div", Am, [A(n.$slots, "actions")])) : s("", !0)]),
|
|
10264
|
+
n.$slots.tabs ? (T(), c("div", jm, [A(n.$slots, "tabs")])) : s("", !0)
|
|
10120
10265
|
]));
|
|
10121
10266
|
}
|
|
10122
|
-
}),
|
|
10267
|
+
}), Nm = { class: "uid-pattern-empty-state" }, Pm = { class: "uid-pattern-empty-state__illustration" }, Fm = { class: "uid-pattern-empty-state__content" }, Im = { class: "uid-pattern-empty-state__title" }, Lm = {
|
|
10123
10268
|
key: 0,
|
|
10124
10269
|
class: "uid-pattern-empty-state__description"
|
|
10125
|
-
},
|
|
10270
|
+
}, Rm = {
|
|
10126
10271
|
key: 0,
|
|
10127
10272
|
class: "uid-pattern-empty-state__actions"
|
|
10128
|
-
},
|
|
10273
|
+
}, zm = /* @__PURE__ */ f({
|
|
10129
10274
|
__name: "UidEmptyState",
|
|
10130
10275
|
props: {
|
|
10131
10276
|
title: { default: void 0 },
|
|
@@ -10133,25 +10278,25 @@ var dm = /* @__PURE__ */ yr(cm, [["render", um]]), fm = { class: "uid-pattern-pa
|
|
|
10133
10278
|
},
|
|
10134
10279
|
setup(t) {
|
|
10135
10280
|
let n = $();
|
|
10136
|
-
return (r, i) => (T(), c("div",
|
|
10137
|
-
l("div",
|
|
10281
|
+
return (r, i) => (T(), c("div", Nm, [
|
|
10282
|
+
l("div", Pm, [A(r.$slots, "illustration", {}, () => [d(e, {
|
|
10138
10283
|
icon: L(ge),
|
|
10139
10284
|
size: 48
|
|
10140
10285
|
}, null, 8, ["icon"])])]),
|
|
10141
|
-
l("div",
|
|
10142
|
-
r.$slots.actions ? (T(), c("div",
|
|
10286
|
+
l("div", Fm, [l("h2", Im, [A(r.$slots, "title", {}, () => [u(P(t.title ?? L(n).emptyState.title), 1)])]), t.description || r.$slots.description ? (T(), c("p", Lm, [A(r.$slots, "description", {}, () => [u(P(t.description), 1)])])) : s("", !0)]),
|
|
10287
|
+
r.$slots.actions ? (T(), c("div", Rm, [A(r.$slots, "actions")])) : s("", !0)
|
|
10143
10288
|
]));
|
|
10144
10289
|
}
|
|
10145
|
-
}),
|
|
10290
|
+
}), Bm = { class: "uid-pattern-error-state" }, Vm = { class: "uid-pattern-error-state__illustration" }, Hm = {
|
|
10146
10291
|
key: 0,
|
|
10147
10292
|
class: "uid-pattern-error-state__code"
|
|
10148
|
-
},
|
|
10293
|
+
}, Um = { class: "uid-pattern-error-state__content" }, Wm = { class: "uid-pattern-error-state__title" }, Gm = {
|
|
10149
10294
|
key: 0,
|
|
10150
10295
|
class: "uid-pattern-error-state__description"
|
|
10151
|
-
},
|
|
10296
|
+
}, Km = {
|
|
10152
10297
|
key: 1,
|
|
10153
10298
|
class: "uid-pattern-error-state__actions"
|
|
10154
|
-
},
|
|
10299
|
+
}, qm = /* @__PURE__ */ f({
|
|
10155
10300
|
__name: "UidErrorState",
|
|
10156
10301
|
props: {
|
|
10157
10302
|
code: { default: void 0 },
|
|
@@ -10176,23 +10321,23 @@ var dm = /* @__PURE__ */ yr(cm, [["render", um]]), fm = { class: "uid-pattern-pa
|
|
|
10176
10321
|
description: r.value.errorState.offlineDescription
|
|
10177
10322
|
}
|
|
10178
10323
|
})), 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",
|
|
10324
|
+
return (n, r) => (T(), c("div", Bm, [
|
|
10325
|
+
l("div", Vm, [A(n.$slots, "illustration", {}, () => [d(e, {
|
|
10181
10326
|
icon: f.value,
|
|
10182
10327
|
size: 48
|
|
10183
10328
|
}, null, 8, ["icon"])])]),
|
|
10184
|
-
t.code ? (T(), c("div",
|
|
10185
|
-
l("div",
|
|
10186
|
-
n.$slots.actions ? (T(), c("div",
|
|
10329
|
+
t.code ? (T(), c("div", Hm, P(t.code), 1)) : s("", !0),
|
|
10330
|
+
l("div", Um, [l("h2", Wm, [A(n.$slots, "title", {}, () => [u(P(p.value), 1)])]), m.value || n.$slots.description ? (T(), c("p", Gm, [A(n.$slots, "description", {}, () => [u(P(m.value), 1)])])) : s("", !0)]),
|
|
10331
|
+
n.$slots.actions ? (T(), c("div", Km, [A(n.$slots, "actions")])) : s("", !0)
|
|
10187
10332
|
]));
|
|
10188
10333
|
}
|
|
10189
|
-
}),
|
|
10334
|
+
}), Jm = {
|
|
10190
10335
|
key: 0,
|
|
10191
10336
|
class: "uid-layout-simple__header"
|
|
10192
|
-
},
|
|
10337
|
+
}, Ym = { class: "uid-layout-simple__content" }, Xm = {
|
|
10193
10338
|
key: 1,
|
|
10194
10339
|
class: "uid-layout-simple__footer"
|
|
10195
|
-
},
|
|
10340
|
+
}, Zm = /* @__PURE__ */ f({
|
|
10196
10341
|
__name: "UidSimpleLayout",
|
|
10197
10342
|
props: { full: {
|
|
10198
10343
|
type: Boolean,
|
|
@@ -10200,26 +10345,26 @@ var dm = /* @__PURE__ */ yr(cm, [["render", um]]), fm = { class: "uid-pattern-pa
|
|
|
10200
10345
|
} },
|
|
10201
10346
|
setup(e) {
|
|
10202
10347
|
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",
|
|
10348
|
+
t.$slots.header ? (T(), c("div", Jm, [A(t.$slots, "header")])) : s("", !0),
|
|
10349
|
+
l("main", Ym, [A(t.$slots, "default")]),
|
|
10350
|
+
t.$slots.footer ? (T(), c("div", Xm, [A(t.$slots, "footer")])) : s("", !0)
|
|
10206
10351
|
], 2));
|
|
10207
10352
|
}
|
|
10208
|
-
}),
|
|
10209
|
-
function
|
|
10210
|
-
let e = h(
|
|
10353
|
+
}), Qm = Symbol("uid-sidebar-layout");
|
|
10354
|
+
function $m() {
|
|
10355
|
+
let e = h(Qm);
|
|
10211
10356
|
if (!e) throw Error("useSidebar() must be used inside UidSidebarLayout");
|
|
10212
10357
|
return e;
|
|
10213
10358
|
}
|
|
10214
10359
|
//#endregion
|
|
10215
10360
|
//#region src/layouts/Sidebar/UidSidebarLayout.vue?vue&type=script&setup=true&lang.ts
|
|
10216
|
-
var
|
|
10361
|
+
var eh = { class: "uid-layout-sidebar__sidebar" }, th = { class: "uid-layout-sidebar__main" }, nh = {
|
|
10217
10362
|
key: 0,
|
|
10218
10363
|
class: "uid-layout-sidebar__main-header"
|
|
10219
|
-
},
|
|
10364
|
+
}, rh = { class: "uid-layout-sidebar__main-content" }, ih = {
|
|
10220
10365
|
key: 1,
|
|
10221
10366
|
class: "uid-layout-sidebar__main-footer"
|
|
10222
|
-
},
|
|
10367
|
+
}, ah = /* @__PURE__ */ f({
|
|
10223
10368
|
__name: "UidSidebarLayout",
|
|
10224
10369
|
props: /* @__PURE__ */ g({ sidebarWidth: { default: void 0 } }, {
|
|
10225
10370
|
modelValue: {
|
|
@@ -10237,7 +10382,7 @@ var Um = { class: "uid-layout-sidebar__sidebar" }, Wm = { class: "uid-layout-sid
|
|
|
10237
10382
|
}, o = () => {
|
|
10238
10383
|
n.value = !0;
|
|
10239
10384
|
};
|
|
10240
|
-
E(
|
|
10385
|
+
E(Qm, {
|
|
10241
10386
|
collapsed: n,
|
|
10242
10387
|
toggle: r,
|
|
10243
10388
|
open: i,
|
|
@@ -10248,58 +10393,58 @@ var Um = { class: "uid-layout-sidebar__sidebar" }, Wm = { class: "uid-layout-sid
|
|
|
10248
10393
|
class: y(["uid-layout-sidebar", { "uid-layout-sidebar--collapsed": n.value }]),
|
|
10249
10394
|
style: b(u.value)
|
|
10250
10395
|
}, [
|
|
10251
|
-
l("aside",
|
|
10396
|
+
l("aside", eh, [A(e.$slots, "sidebar")]),
|
|
10252
10397
|
l("div", {
|
|
10253
10398
|
class: "uid-layout-sidebar__backdrop",
|
|
10254
10399
|
"aria-hidden": "true",
|
|
10255
10400
|
onClick: o
|
|
10256
10401
|
}),
|
|
10257
|
-
l("div",
|
|
10258
|
-
e.$slots.header ? (T(), c("div",
|
|
10259
|
-
l("main",
|
|
10260
|
-
e.$slots.footer ? (T(), c("div",
|
|
10402
|
+
l("div", th, [
|
|
10403
|
+
e.$slots.header ? (T(), c("div", nh, [A(e.$slots, "header")])) : s("", !0),
|
|
10404
|
+
l("main", rh, [A(e.$slots, "default")]),
|
|
10405
|
+
e.$slots.footer ? (T(), c("div", ih, [A(e.$slots, "footer")])) : s("", !0)
|
|
10261
10406
|
])
|
|
10262
10407
|
], 6));
|
|
10263
10408
|
}
|
|
10264
|
-
}),
|
|
10409
|
+
}), oh = {
|
|
10265
10410
|
key: 0,
|
|
10266
10411
|
class: "uid-layout-auth__brand"
|
|
10267
|
-
},
|
|
10412
|
+
}, sh = { class: "uid-layout-auth__main" }, ch = { class: "uid-layout-auth__card" }, lh = {
|
|
10268
10413
|
key: 0,
|
|
10269
10414
|
class: "uid-layout-auth__footer"
|
|
10270
|
-
},
|
|
10415
|
+
}, uh = /* @__PURE__ */ f({
|
|
10271
10416
|
__name: "UidAuthLayout",
|
|
10272
10417
|
props: { variant: { default: "centered" } },
|
|
10273
10418
|
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",
|
|
10419
|
+
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", oh, [A(t.$slots, "brand")])) : s("", !0), l("div", sh, [l("div", ch, [A(t.$slots, "default")]), t.$slots.footer ? (T(), c("div", lh, [A(t.$slots, "footer")])) : s("", !0)])], 2));
|
|
10275
10420
|
}
|
|
10276
|
-
}),
|
|
10421
|
+
}), dh = { class: "uid-layout-wizard" }, fh = {
|
|
10277
10422
|
key: 0,
|
|
10278
10423
|
class: "uid-layout-wizard__header"
|
|
10279
|
-
},
|
|
10424
|
+
}, ph = {
|
|
10280
10425
|
key: 1,
|
|
10281
10426
|
class: "uid-layout-wizard__stepper"
|
|
10282
|
-
},
|
|
10427
|
+
}, mh = { class: "uid-layout-wizard__content" }, hh = {
|
|
10283
10428
|
key: 2,
|
|
10284
10429
|
class: "uid-layout-wizard__nav"
|
|
10285
|
-
},
|
|
10430
|
+
}, gh = /* @__PURE__ */ f({
|
|
10286
10431
|
__name: "UidWizardLayout",
|
|
10287
10432
|
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",
|
|
10433
|
+
return (e, t) => (T(), c("div", dh, [
|
|
10434
|
+
e.$slots.header ? (T(), c("div", fh, [A(e.$slots, "header")])) : s("", !0),
|
|
10435
|
+
e.$slots.stepper ? (T(), c("div", ph, [A(e.$slots, "stepper")])) : s("", !0),
|
|
10436
|
+
l("main", mh, [A(e.$slots, "default")]),
|
|
10437
|
+
e.$slots.nav ? (T(), c("div", hh, [A(e.$slots, "nav")])) : s("", !0)
|
|
10293
10438
|
]));
|
|
10294
10439
|
}
|
|
10295
|
-
}),
|
|
10440
|
+
}), _h = /* @__PURE__ */ f({
|
|
10296
10441
|
__name: "UidLocaleProvider",
|
|
10297
10442
|
props: { locale: {} },
|
|
10298
10443
|
setup(e) {
|
|
10299
10444
|
let t = e;
|
|
10300
10445
|
return an(a(() => t.locale)), (e, t) => A(e.$slots, "default");
|
|
10301
10446
|
}
|
|
10302
|
-
}),
|
|
10447
|
+
}), vh = {
|
|
10303
10448
|
code: "en-US",
|
|
10304
10449
|
common: {
|
|
10305
10450
|
clear: "Clear",
|
|
@@ -10508,19 +10653,19 @@ var Um = { class: "uid-layout-sidebar__sidebar" }, Wm = { class: "uid-layout-sid
|
|
|
10508
10653
|
sameAs: "The values do not match",
|
|
10509
10654
|
unknown: (e) => `Validation failed: ${e}`
|
|
10510
10655
|
}
|
|
10511
|
-
},
|
|
10512
|
-
function
|
|
10656
|
+
}, yh = O("light");
|
|
10657
|
+
function bh() {
|
|
10513
10658
|
let e = null;
|
|
10514
10659
|
function t(e) {
|
|
10515
|
-
|
|
10660
|
+
yh.value = e, document.documentElement.dataset.theme = e;
|
|
10516
10661
|
}
|
|
10517
10662
|
function n() {
|
|
10518
|
-
t(
|
|
10663
|
+
t(yh.value === "light" ? "dark" : "light");
|
|
10519
10664
|
}
|
|
10520
10665
|
function r() {
|
|
10521
10666
|
let e = document.documentElement.dataset.theme;
|
|
10522
10667
|
if (e === "light" || e === "dark") {
|
|
10523
|
-
|
|
10668
|
+
yh.value = e;
|
|
10524
10669
|
return;
|
|
10525
10670
|
}
|
|
10526
10671
|
let n = window.matchMedia("(prefers-color-scheme: dark)").matches;
|
|
@@ -10532,7 +10677,7 @@ function lh() {
|
|
|
10532
10677
|
e.addEventListener("change", n), C(() => e?.removeEventListener("change", n));
|
|
10533
10678
|
}
|
|
10534
10679
|
return {
|
|
10535
|
-
theme:
|
|
10680
|
+
theme: yh,
|
|
10536
10681
|
setTheme: t,
|
|
10537
10682
|
toggle: n,
|
|
10538
10683
|
initFromSystem: r,
|
|
@@ -10541,27 +10686,27 @@ function lh() {
|
|
|
10541
10686
|
}
|
|
10542
10687
|
//#endregion
|
|
10543
10688
|
//#region src/composables/useWizard.ts
|
|
10544
|
-
function
|
|
10545
|
-
let e = h(
|
|
10689
|
+
function xh() {
|
|
10690
|
+
let e = h(Gp);
|
|
10546
10691
|
if (!e) throw Error("useWizard() must be used inside UidWizard");
|
|
10547
10692
|
return e;
|
|
10548
10693
|
}
|
|
10549
10694
|
//#endregion
|
|
10550
10695
|
//#region src/composables/useCommandPalette.ts
|
|
10551
|
-
var
|
|
10552
|
-
function
|
|
10696
|
+
var Sh = O(!1);
|
|
10697
|
+
function Ch() {
|
|
10553
10698
|
return {
|
|
10554
|
-
open:
|
|
10699
|
+
open: Sh,
|
|
10555
10700
|
show: () => {
|
|
10556
|
-
|
|
10701
|
+
Sh.value = !0;
|
|
10557
10702
|
},
|
|
10558
10703
|
hide: () => {
|
|
10559
|
-
|
|
10704
|
+
Sh.value = !1;
|
|
10560
10705
|
},
|
|
10561
10706
|
toggle: () => {
|
|
10562
|
-
|
|
10707
|
+
Sh.value = !Sh.value;
|
|
10563
10708
|
}
|
|
10564
10709
|
};
|
|
10565
10710
|
}
|
|
10566
10711
|
//#endregion
|
|
10567
|
-
export { Li as UidAccordion, Ui as UidAccordionItem,
|
|
10712
|
+
export { Li as UidAccordion, Ui as UidAccordionItem, Eu as UidAffix, gn as UidAlert, Fu as UidAnchor, uh as UidAuthLayout, Di as UidAvatar, Ai as UidAvatarGroup, wu as UidBackTop, un as UidBadge, Wr as UidBreadcrumb, Zr as UidBreadcrumbItem, je as UidButton, wf as UidCalendar, wi as UidCard, vd as UidCarousel, uf as UidCascader, Et as UidCheckbox, Mt as UidCheckboxGroup, tl as UidCode, io as UidColorPicker, js as UidCombobox, go as UidCommand, Wp as UidContainer, Ta as UidDatePicker, fs as UidDateRangePicker, gu as UidDescriptionItem, fu as UidDescriptionList, Pi as UidDivider, Qn as UidDrawer, zm as UidEmptyState, qm as UidErrorState, gc as UidFileUpload, om as UidFooter, tn as UidFormField, tp as UidGauge, Up as UidGrid, tm as UidHeader, lp as UidHeatmap, Np as UidHeatmapMatrix, e as UidIcon, Gl as UidImage, mi as UidInfiniteScroll, gt as UidInput, Xt as UidLabel, Qr as UidLink, di as UidLoadMore, _h as UidLocaleProvider, Il as UidMarkdown, Xu as UidMention, gr as UidMenu, vr as UidMenuItem, Cr as UidMenuSeparator, Gn as UidModal, fd as UidNotificationBadge, wo as UidNumberInput, Mm as UidPageHeader, vi as UidPageSize, ii as UidPagination, ci as UidPaginationCursor, sr as UidPopover, Mn as UidProgress, Bf as UidProgressRing, It as UidRadio, Ht as UidRadioGroup, Zl as UidRating, Su as UidResult, pa as UidSelect, dm as UidSidebar, Sm as UidSidebarDivider, vm as UidSidebarGroup, hm as UidSidebarItem, ah as UidSidebarLayout, Zm as UidSimpleLayout, ln as UidSkeleton, Pa as UidSlider, Pf as UidSparkline, sn as UidSpinner, eu as UidSplitter, Hp as UidStack, lu as UidStat, Vp 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, Uu as UidTour, Wd as UidTransfer, Bs as UidTreeItem, ld as UidTreeSelect, Hs as UidTreeView, Ea as UidVirtualList, ku as UidWatermark, qp as UidWizard, gh as UidWizardLayout, Yp as UidWizardStep, ol as createSlugger, Ge as email, vh as en, il as escapeHtml, ze as getMessage, mp as heatmapColorAt, up as heatmapColorScales, et as inList, Je as integer, Gc as isHighlightable, Tl 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, El as provideMarkdownBlockRenderers, $e as regex, vl as renderMarkdown, Ue as required, nt as requiredIf, rt as requiredUnless, ul as resolveAgainst, fp as resolveHeatmapStops, Me as ru, ot as runRules, tt as sameAs, Re as setMessages, Ie as setValidationLocale, wl as splitMarkdown, Kc as tokenize, Ke as url, Ch as useCommandPalette, st as useField, Pn as useFocusTrap, $ as useLocale, Dl as useMarkdownBlockRenderers, tr as usePopover, In as useScrollLock, $m as useSidebar, bh as useTheme, Tn as useToast, xh as useWizard };
|