@thekestongroup/ui 0.13.1 → 0.15.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/AppLauncher/AppLauncher.vue.d.ts +3 -2
- package/dist/components/AppShell/AppShell.vue.d.ts +1 -1
- package/dist/components/Header/Header.vue.d.ts +2 -1
- package/dist/components/Popover/popover.d.ts +3 -2
- package/dist/components/Spinner/Spinner.vue.d.ts +1 -1
- package/dist/keston-ui.js +703 -699
- package/package.json +1 -1
- package/src/components/AppLauncher/AppLauncher.stories.ts +1 -1
- package/src/components/AppLauncher/AppLauncher.vue +9 -12
- package/src/components/AppLauncher/apps.ts +5 -5
- package/src/components/AppShell/AppShell.stories.ts +2 -2
- package/src/components/AppShell/AppShell.vue +10 -9
- package/src/components/Avatar/Avatar.vue +3 -3
- package/src/components/AvatarGroup/AvatarGroup.vue +4 -4
- package/src/components/Badge/Badge.vue +2 -2
- package/src/components/Breadcrumb/Breadcrumb.vue +5 -5
- package/src/components/Button/Button.stories.ts +1 -1
- package/src/components/Button/Button.vue +12 -9
- package/src/components/Calendar/Calendar.stories.ts +2 -2
- package/src/components/Calendar/Calendar.vue +8 -8
- package/src/components/Card/Card.stories.ts +5 -5
- package/src/components/Card/Card.vue +3 -3
- package/src/components/CardSelect/CardSelect.vue +10 -7
- package/src/components/ChangeIndicator/ChangeIndicator.vue +2 -2
- package/src/components/Checkbox/Checkbox.vue +5 -5
- package/src/components/CheckboxGroup/CheckboxGroup.stories.ts +1 -1
- package/src/components/CheckboxGroup/CheckboxGroup.vue +2 -2
- package/src/components/Checklist/Checklist.vue +3 -3
- package/src/components/Chip/Chip.stories.ts +1 -1
- package/src/components/Chip/Chip.vue +2 -2
- package/src/components/Divider/Divider.vue +4 -4
- package/src/components/EmptyState/EmptyState.vue +3 -3
- package/src/components/Footer/Footer.vue +4 -4
- package/src/components/FormField/FieldMessage.vue +3 -3
- package/src/components/FormField/FormField.stories.ts +1 -1
- package/src/components/FormField/FormField.vue +8 -3
- package/src/components/Header/Header.stories.ts +8 -8
- package/src/components/Header/Header.vue +10 -7
- package/src/components/InfoTip/InfoTip.stories.ts +1 -1
- package/src/components/InfoTip/InfoTip.vue +1 -1
- package/src/components/Input/Input.vue +1 -1
- package/src/components/InputCode/InputCode.stories.ts +1 -1
- package/src/components/InputCode/InputCode.vue +4 -4
- package/src/components/InputDate/InputDate.stories.ts +1 -1
- package/src/components/InputDate/InputDate.vue +5 -5
- package/src/components/InputNumber/InputNumber.stories.ts +1 -1
- package/src/components/InputNumber/InputNumber.vue +6 -6
- package/src/components/InputPassword/InputPassword.vue +4 -4
- package/src/components/InputRichText/InputRichText.stories.ts +1 -1
- package/src/components/InputRichText/InputRichText.vue +3 -3
- package/src/components/InputTextArea/InputTextArea.vue +1 -1
- package/src/components/Link/Link.stories.ts +4 -4
- package/src/components/Link/Link.vue +1 -1
- package/src/components/Menu/Menu.vue +6 -5
- package/src/components/Notification/Notification.stories.ts +3 -3
- package/src/components/Notification/Notification.vue +9 -9
- package/src/components/Notification/NotificationPane.vue +3 -3
- package/src/components/Notification/Toaster.vue +1 -1
- package/src/components/PageHeader/PageHeader.vue +2 -2
- package/src/components/Popover/Popover.stories.ts +2 -2
- package/src/components/Popover/popover.ts +4 -3
- package/src/components/Progress/Progress.vue +1 -1
- package/src/components/RadioGroup/RadioGroup.vue +6 -6
- package/src/components/RelativeTime/RelativeTime.stories.ts +1 -1
- package/src/components/Select/Select.stories.ts +1 -1
- package/src/components/Select/Select.vue +22 -18
- package/src/components/SettingsRow/SettingsRow.vue +1 -1
- package/src/components/Sidebar/Sidebar.stories.ts +2 -2
- package/src/components/Sidebar/Sidebar.vue +9 -9
- package/src/components/Slideover/Slideover.stories.ts +5 -5
- package/src/components/Slideover/Slideover.vue +6 -6
- package/src/components/Spinner/Spinner.stories.ts +7 -7
- package/src/components/Spinner/Spinner.vue +1 -1
- package/src/components/StatTile/StatTile.stories.ts +2 -2
- package/src/components/StatTile/StatTile.vue +6 -6
- package/src/components/Steps/Steps.vue +2 -2
- package/src/components/SummaryList/SummaryList.vue +8 -8
- package/src/components/Switch/Switch.vue +3 -3
- package/src/components/Table/Table.vue +12 -12
- package/src/components/Tabs/Tabs.vue +4 -4
- package/src/components/Tooltip/Tooltip.stories.ts +1 -1
- package/src/components/Tooltip/Tooltip.vue +1 -1
- package/src/components/UnsavedChangesBar/UnsavedChangesBar.stories.ts +1 -1
- package/src/components/UnsavedChangesBar/UnsavedChangesBar.vue +1 -1
- package/src/examples/AppPages.stories.ts +3 -3
- package/src/examples/FormLayout.stories.ts +3 -3
- package/src/examples/KestonIdPages.stories.ts +18 -18
- package/src/examples/SchoolPages.stories.ts +5 -5
- package/src/styles/theme.css +94 -5
package/dist/keston-ui.js
CHANGED
|
@@ -90,7 +90,7 @@ var Hn = ["stroke-dashoffset", "stroke-opacity"], Un = {
|
|
|
90
90
|
}, qn = { key: 2 }, Jn = {
|
|
91
91
|
class: "sr-only",
|
|
92
92
|
role: "status"
|
|
93
|
-
}, Yn = 300, Xn = "not-disabled:not-aria-disabled:hover:brightness-90 not-disabled:not-aria-disabled:active:brightness-80", Zn = "not-disabled:not-aria-disabled:hover:bg-
|
|
93
|
+
}, Yn = 300, Xn = "not-disabled:not-aria-disabled:hover:brightness-90 not-disabled:not-aria-disabled:active:brightness-80", Zn = "not-disabled:not-aria-disabled:hover:bg-surface-hover not-disabled:not-aria-disabled:active:bg-surface-pressed", Qn = "not-disabled:not-aria-disabled:hover:bg-hover not-disabled:not-aria-disabled:active:bg-pressed", Z = /* @__PURE__ */ f({
|
|
94
94
|
__name: "Button",
|
|
95
95
|
props: {
|
|
96
96
|
variant: { default: "basic" },
|
|
@@ -156,15 +156,15 @@ var Hn = ["stroke-dashoffset", "stroke-opacity"], Un = {
|
|
|
156
156
|
error: "Failed"
|
|
157
157
|
}[n.status] : ""), T = [
|
|
158
158
|
"relative inline-flex shrink-0 items-center justify-center whitespace-nowrap select-none overflow-hidden",
|
|
159
|
-
"border border-
|
|
159
|
+
"border border-ink/10 cursor-pointer transition",
|
|
160
160
|
"disabled:cursor-not-allowed disabled:opacity-40",
|
|
161
161
|
"aria-busy:cursor-progress",
|
|
162
162
|
"outline-2 outline-offset-1 outline-transparent forced-colors:not-focus-visible:outline-0",
|
|
163
163
|
"focus-visible:outline-focus"
|
|
164
164
|
], D = {
|
|
165
|
-
basic: `bg-
|
|
165
|
+
basic: `bg-surface text-ink shadow-xs ${Zn}`,
|
|
166
166
|
primary: `bg-primary text-white ${Xn}`,
|
|
167
|
-
ghost: `bg-transparent text-
|
|
167
|
+
ghost: `bg-transparent text-ink border-transparent ${Qn}`,
|
|
168
168
|
danger: `bg-red text-white ${Xn}`
|
|
169
169
|
}, A = {
|
|
170
170
|
idle: "",
|
|
@@ -229,7 +229,7 @@ var Hn = ["stroke-dashoffset", "stroke-opacity"], Un = {
|
|
|
229
229
|
"class"
|
|
230
230
|
]));
|
|
231
231
|
}
|
|
232
|
-
}),
|
|
232
|
+
}), $n = ["z-50 rounded border border-ink/10 bg-surface-elevated text-ink shadow-md outline-none", "data-[state=open]:animate-fade-in data-[state=closed]:animate-fade-out"], er = "block size-2.5 -translate-y-1/2 rotate-45 border-r border-b border-ink/10 bg-surface-elevated", tr = /* @__PURE__ */ f({
|
|
233
233
|
__name: "Popover",
|
|
234
234
|
props: /*@__PURE__*/ g({
|
|
235
235
|
mode: { default: "click" },
|
|
@@ -342,7 +342,7 @@ var Hn = ["stroke-dashoffset", "stroke-opacity"], Un = {
|
|
|
342
342
|
...f,
|
|
343
343
|
...e.content
|
|
344
344
|
}, {
|
|
345
|
-
class: M(X)(M(
|
|
345
|
+
class: M(X)(M($n), e.ui?.content),
|
|
346
346
|
onPointerenter: v,
|
|
347
347
|
onPointerleave: b,
|
|
348
348
|
onEscapeKeyDown: D,
|
|
@@ -351,7 +351,7 @@ var Hn = ["stroke-dashoffset", "stroke-opacity"], Un = {
|
|
|
351
351
|
onCloseAutoFocus: k
|
|
352
352
|
}), {
|
|
353
353
|
default: V(() => [O(t.$slots, "content", { close: u }), e.arrow ? (w(), a(M(Lt), _({ key: 0 }, typeof e.arrow == "object" ? e.arrow : {}, { "as-child": "" }), {
|
|
354
|
-
default: V(() => [c("span", { class: y(M(X)(M(
|
|
354
|
+
default: V(() => [c("span", { class: y(M(X)(M(er), e.ui?.arrow)) }, null, 2)]),
|
|
355
355
|
_: 1
|
|
356
356
|
}, 16)) : o("", !0)]),
|
|
357
357
|
_: 3
|
|
@@ -362,60 +362,53 @@ var Hn = ["stroke-dashoffset", "stroke-opacity"], Un = {
|
|
|
362
362
|
_: 3
|
|
363
363
|
}, 8, ["open", "modal"]));
|
|
364
364
|
}
|
|
365
|
-
}),
|
|
365
|
+
}), nr = [
|
|
366
366
|
{
|
|
367
367
|
id: "id",
|
|
368
368
|
label: "Keston ID",
|
|
369
|
-
description: "Your account and sign-in",
|
|
370
369
|
href: "https://id.keston.co",
|
|
371
370
|
icon: "id"
|
|
372
371
|
},
|
|
373
372
|
{
|
|
374
373
|
id: "admin",
|
|
375
374
|
label: "Admin",
|
|
376
|
-
description: "Manage people and access",
|
|
377
375
|
href: "https://admin.keston.co",
|
|
378
376
|
icon: "admin"
|
|
379
377
|
},
|
|
380
378
|
{
|
|
381
379
|
id: "work",
|
|
382
380
|
label: "Work",
|
|
383
|
-
description: "Day-to-day work",
|
|
384
381
|
href: "https://work.keston.co",
|
|
385
382
|
icon: "work"
|
|
386
383
|
},
|
|
387
384
|
{
|
|
388
385
|
id: "utilities",
|
|
389
386
|
label: "Utilities",
|
|
390
|
-
description: "Small tools that run on your device",
|
|
391
387
|
href: "https://utilities.keston.co",
|
|
392
388
|
icon: "utilities"
|
|
393
389
|
},
|
|
394
390
|
{
|
|
395
391
|
id: "design",
|
|
396
392
|
label: "Design system",
|
|
397
|
-
description: "Keston UI",
|
|
398
393
|
href: "https://ui.keston.co",
|
|
399
394
|
icon: "design"
|
|
400
395
|
}
|
|
401
|
-
],
|
|
396
|
+
], rr = ["aria-label"], ir = [
|
|
402
397
|
"href",
|
|
403
398
|
"aria-current",
|
|
404
399
|
"onClick"
|
|
405
|
-
], ar = { class: "flex size-
|
|
406
|
-
key: 0,
|
|
407
|
-
class: "block text-xs text-black/65"
|
|
408
|
-
}, lr = {
|
|
400
|
+
], ar = { class: "flex size-8 shrink-0 items-center justify-center rounded-lg bg-ink/5" }, or = { class: "min-w-0 truncate" }, sr = {
|
|
409
401
|
id: we,
|
|
410
402
|
admin: Le,
|
|
411
403
|
work: le,
|
|
412
404
|
utilities: Be,
|
|
413
405
|
design: Me
|
|
414
|
-
},
|
|
406
|
+
}, cr = /* @__PURE__ */ f({
|
|
415
407
|
__name: "AppLauncher",
|
|
416
408
|
props: {
|
|
417
|
-
apps: { default: () =>
|
|
409
|
+
apps: { default: () => nr },
|
|
418
410
|
current: {},
|
|
411
|
+
align: { default: "end" },
|
|
419
412
|
label: {},
|
|
420
413
|
class: { type: [
|
|
421
414
|
Boolean,
|
|
@@ -428,21 +421,21 @@ var Hn = ["stroke-dashoffset", "stroke-opacity"], Un = {
|
|
|
428
421
|
setup(e) {
|
|
429
422
|
let { t } = K(), r = e;
|
|
430
423
|
function i(e) {
|
|
431
|
-
return typeof e.icon == "string" ?
|
|
424
|
+
return typeof e.icon == "string" ? sr[e.icon] ?? q : e.icon ?? q;
|
|
432
425
|
}
|
|
433
|
-
return (
|
|
434
|
-
content: { align:
|
|
435
|
-
ui: { content: "w-
|
|
426
|
+
return (o, l) => (w(), a(tr, {
|
|
427
|
+
content: { align: e.align },
|
|
428
|
+
ui: { content: "w-64 p-2" }
|
|
436
429
|
}, {
|
|
437
|
-
content: V(({ close: r }) => [c("nav", { "aria-label": e.label ?? M(t)("ui.appLauncher.label") }, [c("ul",
|
|
430
|
+
content: V(({ close: r }) => [c("nav", { "aria-label": e.label ?? M(t)("ui.appLauncher.label") }, [c("ul", null, [(w(!0), s(n, null, D(e.apps, (t) => (w(), s("li", { key: t.id }, [c("a", {
|
|
438
431
|
href: t.href,
|
|
439
432
|
"aria-current": t.id === e.current ? "page" : void 0,
|
|
440
|
-
class: y(M(X)("flex
|
|
433
|
+
class: y(M(X)("flex items-center gap-3 rounded-lg px-3 py-2 text-sm font-bold text-ink outline-none hover:bg-hover focus-visible:outline-2 focus-visible:outline-focus", t.id === e.current && "bg-selected")),
|
|
441
434
|
onClick: (e) => r()
|
|
442
435
|
}, [c("span", ar, [(w(), a(k(i(t)), {
|
|
443
436
|
class: "size-5",
|
|
444
437
|
"aria-hidden": "true"
|
|
445
|
-
}))]), c("span", or,
|
|
438
|
+
}))]), c("span", or, j(t.label), 1)], 10, ir)]))), 128))])], 8, rr)]),
|
|
446
439
|
default: V(() => [d(Z, {
|
|
447
440
|
variant: "ghost",
|
|
448
441
|
square: "",
|
|
@@ -453,9 +446,9 @@ var Hn = ["stroke-dashoffset", "stroke-opacity"], Un = {
|
|
|
453
446
|
_: 1
|
|
454
447
|
}, 8, ["aria-label", "class"])]),
|
|
455
448
|
_: 1
|
|
456
|
-
}));
|
|
449
|
+
}, 8, ["content"]));
|
|
457
450
|
}
|
|
458
|
-
}),
|
|
451
|
+
}), lr = /* @__PURE__ */ f({
|
|
459
452
|
__name: "Link",
|
|
460
453
|
props: {
|
|
461
454
|
href: {},
|
|
@@ -476,7 +469,7 @@ var Hn = ["stroke-dashoffset", "stroke-opacity"], Un = {
|
|
|
476
469
|
setup(e) {
|
|
477
470
|
let t = e, r = [
|
|
478
471
|
"cursor-pointer rounded-xs underline underline-offset-2 transition-colors",
|
|
479
|
-
"hover:text-
|
|
472
|
+
"hover:text-ink hover:decoration-2",
|
|
480
473
|
"outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
|
|
481
474
|
];
|
|
482
475
|
return (i, l) => (w(), a(M(Ht), {
|
|
@@ -504,17 +497,17 @@ var Hn = ["stroke-dashoffset", "stroke-opacity"], Un = {
|
|
|
504
497
|
}
|
|
505
498
|
});
|
|
506
499
|
// src/components/Footer/footer.ts
|
|
507
|
-
function
|
|
500
|
+
function ur(e, t) {
|
|
508
501
|
return t && t < e ? `${t}–${e}` : String(e);
|
|
509
502
|
}
|
|
510
|
-
function
|
|
503
|
+
function dr(e) {
|
|
511
504
|
return e ? /^v/i.test(e) ? `v${e.slice(1)}` : `v${e}` : "";
|
|
512
505
|
}
|
|
513
|
-
function
|
|
506
|
+
function fr(e) {
|
|
514
507
|
return e ? e.replace(/^v/i, "") : "";
|
|
515
508
|
}
|
|
516
509
|
// src/components/Footer/links.ts
|
|
517
|
-
var
|
|
510
|
+
var pr = [
|
|
518
511
|
{
|
|
519
512
|
label: "Help & support",
|
|
520
513
|
href: "https://thekestongroup.com/help"
|
|
@@ -527,7 +520,7 @@ var hr = [
|
|
|
527
520
|
label: "Terms & Conditions",
|
|
528
521
|
href: "https://thekestongroup.com/terms"
|
|
529
522
|
}
|
|
530
|
-
],
|
|
523
|
+
], mr = [
|
|
531
524
|
{
|
|
532
525
|
label: "Keston ID",
|
|
533
526
|
href: "https://id.keston.co"
|
|
@@ -544,23 +537,23 @@ var hr = [
|
|
|
544
537
|
label: "Design system",
|
|
545
538
|
href: "https://ui.keston.co"
|
|
546
539
|
}
|
|
547
|
-
],
|
|
540
|
+
], hr = ["aria-label"], gr = { class: "flex flex-wrap items-center gap-x-4 gap-y-1" }, _r = {
|
|
548
541
|
key: 0,
|
|
549
|
-
class: "hidden h-4 w-px bg-
|
|
542
|
+
class: "hidden h-4 w-px bg-ink/10 sm:block",
|
|
550
543
|
"aria-hidden": "true"
|
|
551
|
-
},
|
|
544
|
+
}, vr = {
|
|
552
545
|
key: 0,
|
|
553
546
|
class: "flex flex-wrap items-baseline gap-x-1.5"
|
|
554
|
-
},
|
|
547
|
+
}, yr = {
|
|
555
548
|
key: 0,
|
|
556
|
-
class: "font-bold text-
|
|
557
|
-
},
|
|
558
|
-
class: "font-mono text-xs text-
|
|
549
|
+
class: "font-bold text-ink/80"
|
|
550
|
+
}, br = { key: 1 }, xr = { class: "sr-only" }, Sr = { "aria-hidden": "true" }, Cr = ["title"], wr = { class: "sr-only" }, Tr = {
|
|
551
|
+
class: "font-mono text-xs text-ink/55",
|
|
559
552
|
"aria-hidden": "true"
|
|
560
|
-
},
|
|
553
|
+
}, Er = /* @__PURE__ */ f({
|
|
561
554
|
__name: "Footer",
|
|
562
555
|
props: {
|
|
563
|
-
links: { default: () =>
|
|
556
|
+
links: { default: () => pr },
|
|
564
557
|
moreLinks: { default: () => [] },
|
|
565
558
|
linkComponent: { default: void 0 },
|
|
566
559
|
appName: {},
|
|
@@ -579,7 +572,7 @@ var hr = [
|
|
|
579
572
|
ui: {}
|
|
580
573
|
},
|
|
581
574
|
setup(e) {
|
|
582
|
-
let { t } = K(), r = e, a = i(() =>
|
|
575
|
+
let { t } = K(), r = e, a = i(() => ur(r.year ?? (/* @__PURE__ */ new Date()).getFullYear(), r.since)), l = i(() => dr(r.version)), f = i(() => r.version ? t("ui.footer.version", { version: fr(r.version) }) : ""), p = i(() => r.build ? t("ui.footer.build", { build: r.build }) : "");
|
|
583
576
|
function m(e) {
|
|
584
577
|
return e.to === void 0 ? {
|
|
585
578
|
href: e.href,
|
|
@@ -590,27 +583,27 @@ var hr = [
|
|
|
590
583
|
newTab: e.newTab ?? !1
|
|
591
584
|
};
|
|
592
585
|
}
|
|
593
|
-
return (i, h) => (w(), s("footer", { class: y(M(X)("flex shrink-0 flex-col gap-3 border-t border-
|
|
586
|
+
return (i, h) => (w(), s("footer", { class: y(M(X)("flex shrink-0 flex-col gap-3 border-t border-ink/10 bg-surface px-4 py-4 text-sm text-ink/65 sm:flex-row sm:items-center sm:justify-between sm:px-6", r.class)) }, [c("nav", {
|
|
594
587
|
"aria-label": M(t)("ui.footer.label"),
|
|
595
588
|
class: y(M(X)("min-w-0", e.ui?.links))
|
|
596
|
-
}, [O(i.$slots, "nav", {}, () => [c("ul",
|
|
597
|
-
(w(!0), s(n, null, D(e.links, (e) => (w(), s("li", { key: e.label }, [d(
|
|
589
|
+
}, [O(i.$slots, "nav", {}, () => [c("ul", gr, [
|
|
590
|
+
(w(!0), s(n, null, D(e.links, (e) => (w(), s("li", { key: e.label }, [d(lr, _({ ref_for: !0 }, m(e), { icon: !1 }), {
|
|
598
591
|
default: V(() => [u(j(e.label), 1)]),
|
|
599
592
|
_: 2
|
|
600
593
|
}, 1040)]))), 128)),
|
|
601
|
-
e.moreLinks.length ? (w(), s("li",
|
|
602
|
-
(w(!0), s(n, null, D(e.moreLinks, (e) => (w(), s("li", { key: e.label }, [d(
|
|
594
|
+
e.moreLinks.length ? (w(), s("li", _r)) : o("", !0),
|
|
595
|
+
(w(!0), s(n, null, D(e.moreLinks, (e) => (w(), s("li", { key: e.label }, [d(lr, _({ ref_for: !0 }, m(e), { icon: !1 }), {
|
|
603
596
|
default: V(() => [u(j(e.label), 1)]),
|
|
604
597
|
_: 2
|
|
605
598
|
}, 1040)]))), 128))
|
|
606
|
-
])])], 10,
|
|
607
|
-
e.appName || e.version || e.build ? (w(), s("p",
|
|
608
|
-
e.appName ? (w(), s("span",
|
|
609
|
-
e.version ? (w(), s("span",
|
|
599
|
+
])])], 10, hr), c("div", { class: y(M(X)("flex flex-wrap items-center gap-x-3 gap-y-1 sm:justify-end", e.ui?.meta)) }, [
|
|
600
|
+
e.appName || e.version || e.build ? (w(), s("p", vr, [
|
|
601
|
+
e.appName ? (w(), s("span", yr, j(e.appName), 1)) : o("", !0),
|
|
602
|
+
e.version ? (w(), s("span", br, [c("span", xr, j(f.value), 1), c("span", Sr, j(l.value), 1)])) : o("", !0),
|
|
610
603
|
e.build ? (w(), s("span", {
|
|
611
604
|
key: 2,
|
|
612
605
|
title: p.value
|
|
613
|
-
}, [c("span",
|
|
606
|
+
}, [c("span", wr, j(p.value), 1), c("span", Tr, j(e.build), 1)], 8, Cr)) : o("", !0)
|
|
614
607
|
])) : o("", !0),
|
|
615
608
|
c("p", null, j(M(t)("ui.footer.copyright", {
|
|
616
609
|
years: a.value,
|
|
@@ -621,42 +614,42 @@ var hr = [
|
|
|
621
614
|
}
|
|
622
615
|
});
|
|
623
616
|
// src/lib/initials.ts
|
|
624
|
-
function
|
|
617
|
+
function Dr(e) {
|
|
625
618
|
let t = e.trim().split(/\s+/).filter(Boolean);
|
|
626
619
|
if (!t.length) return "";
|
|
627
620
|
let n = t[0], r = t.length > 1 ? t[t.length - 1] : "";
|
|
628
621
|
return (n[0] + (r[0] ?? "")).toUpperCase();
|
|
629
622
|
}
|
|
630
623
|
// src/components/Avatar/Avatar.vue?vue&type=script&setup=true&lang.ts
|
|
631
|
-
var
|
|
624
|
+
var Or = ["aria-label"], kr = [
|
|
632
625
|
"src",
|
|
633
626
|
"width",
|
|
634
627
|
"height"
|
|
635
|
-
],
|
|
628
|
+
], Ar = {
|
|
636
629
|
key: 1,
|
|
637
630
|
"aria-hidden": "true"
|
|
638
|
-
},
|
|
631
|
+
}, jr = { class: "flex flex-col" }, Mr = {
|
|
639
632
|
key: 0,
|
|
640
|
-
class: "truncate px-4 pt-3 text-xs font-bold text-
|
|
641
|
-
},
|
|
633
|
+
class: "truncate px-4 pt-3 text-xs font-bold text-ink/65 uppercase"
|
|
634
|
+
}, Nr = { class: "flex items-center gap-3 px-4 py-3" }, Pr = [
|
|
642
635
|
"src",
|
|
643
636
|
"width",
|
|
644
637
|
"height"
|
|
645
|
-
],
|
|
638
|
+
], Fr = { class: "flex min-w-0 flex-col" }, Ir = { class: "truncate font-bold" }, Lr = {
|
|
646
639
|
key: 0,
|
|
647
|
-
class: "truncate text-sm text-
|
|
648
|
-
},
|
|
640
|
+
class: "truncate text-sm text-ink/65"
|
|
641
|
+
}, Rr = ["href"], zr = [
|
|
649
642
|
"role",
|
|
650
643
|
"aria-label",
|
|
651
644
|
"aria-hidden"
|
|
652
|
-
],
|
|
645
|
+
], Br = [
|
|
653
646
|
"src",
|
|
654
647
|
"width",
|
|
655
648
|
"height"
|
|
656
|
-
],
|
|
649
|
+
], Vr = {
|
|
657
650
|
key: 1,
|
|
658
651
|
"aria-hidden": "true"
|
|
659
|
-
},
|
|
652
|
+
}, Hr = "relative inline-flex shrink-0 items-center justify-center overflow-hidden rounded-full bg-primary font-bold text-white select-none", Ur = /* @__PURE__ */ f({
|
|
660
653
|
__name: "Avatar",
|
|
661
654
|
props: {
|
|
662
655
|
user: {},
|
|
@@ -672,7 +665,7 @@ var Ar = ["aria-label"], jr = [
|
|
|
672
665
|
] }
|
|
673
666
|
},
|
|
674
667
|
setup(e) {
|
|
675
|
-
let t = e, r = i(() =>
|
|
668
|
+
let t = e, r = i(() => Dr(t.user.name)), l = E(!1);
|
|
676
669
|
z(() => t.user.avatar, () => l.value = !1);
|
|
677
670
|
let d = i(() => !!t.user.avatar && !l.value), f = i(() => d.value || !r.value ? t.user.name : `${r.value}, ${t.user.name}`), p = {
|
|
678
671
|
xs: "size-5 text-xs",
|
|
@@ -687,7 +680,7 @@ var Ar = ["aria-label"], jr = [
|
|
|
687
680
|
lg: 48,
|
|
688
681
|
xl: 64
|
|
689
682
|
};
|
|
690
|
-
return (i, h) => e.profile ? (w(), a(
|
|
683
|
+
return (i, h) => e.profile ? (w(), a(tr, {
|
|
691
684
|
key: 0,
|
|
692
685
|
mode: "hover",
|
|
693
686
|
"open-delay": 300,
|
|
@@ -699,8 +692,8 @@ var Ar = ["aria-label"], jr = [
|
|
|
699
692
|
},
|
|
700
693
|
ui: { content: "w-64" }
|
|
701
694
|
}, {
|
|
702
|
-
content: V(() => [c("div",
|
|
703
|
-
class: y(M(X)(
|
|
695
|
+
content: V(() => [c("div", jr, [e.user.organisation ? (w(), s("p", Mr, j(e.user.organisation), 1)) : o("", !0), c("div", Nr, [c("span", {
|
|
696
|
+
class: y(M(X)(Hr, p.lg)),
|
|
704
697
|
"aria-hidden": "true"
|
|
705
698
|
}, [d.value ? (w(), s("img", {
|
|
706
699
|
key: 0,
|
|
@@ -711,19 +704,19 @@ var Ar = ["aria-label"], jr = [
|
|
|
711
704
|
decoding: "async",
|
|
712
705
|
alt: "",
|
|
713
706
|
class: "size-full object-cover"
|
|
714
|
-
}, null, 8,
|
|
715
|
-
c("span",
|
|
716
|
-
e.user.role ? (w(), s("span",
|
|
707
|
+
}, null, 8, Pr)) : (w(), s(n, { key: 1 }, [u(j(r.value), 1)], 64))], 2), c("div", Fr, [
|
|
708
|
+
c("span", Ir, j(e.user.name), 1),
|
|
709
|
+
e.user.role ? (w(), s("span", Lr, j(e.user.role), 1)) : o("", !0),
|
|
717
710
|
e.user.email ? (w(), s("a", {
|
|
718
711
|
key: 1,
|
|
719
712
|
href: `mailto:${e.user.email}`,
|
|
720
|
-
class: "truncate rounded-sm text-sm text-
|
|
721
|
-
}, j(e.user.email), 9,
|
|
713
|
+
class: "truncate rounded-sm text-sm text-ink/65 underline-offset-2 hover:text-ink hover:underline outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
|
|
714
|
+
}, j(e.user.email), 9, Rr)) : o("", !0)
|
|
722
715
|
])])])]),
|
|
723
716
|
default: V(() => [c("button", {
|
|
724
717
|
type: "button",
|
|
725
718
|
"aria-label": f.value,
|
|
726
|
-
class: y(M(X)(
|
|
719
|
+
class: y(M(X)(Hr, p[e.size], "cursor-pointer outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", t.class))
|
|
727
720
|
}, [d.value ? (w(), s("img", {
|
|
728
721
|
key: 0,
|
|
729
722
|
src: e.user.avatar,
|
|
@@ -734,14 +727,14 @@ var Ar = ["aria-label"], jr = [
|
|
|
734
727
|
alt: "",
|
|
735
728
|
class: "size-full object-cover",
|
|
736
729
|
onError: h[0] ||= (e) => l.value = !0
|
|
737
|
-
}, null, 40,
|
|
730
|
+
}, null, 40, kr)) : (w(), s("span", Ar, j(r.value), 1))], 10, Or)]),
|
|
738
731
|
_: 1
|
|
739
732
|
})) : (w(), s("span", {
|
|
740
733
|
key: 1,
|
|
741
734
|
role: e.decorative ? void 0 : "img",
|
|
742
735
|
"aria-label": e.decorative ? void 0 : e.user.name,
|
|
743
736
|
"aria-hidden": e.decorative || void 0,
|
|
744
|
-
class: y(M(X)(
|
|
737
|
+
class: y(M(X)(Hr, p[e.size], t.class))
|
|
745
738
|
}, [d.value ? (w(), s("img", {
|
|
746
739
|
key: 0,
|
|
747
740
|
src: e.user.avatar,
|
|
@@ -752,15 +745,15 @@ var Ar = ["aria-label"], jr = [
|
|
|
752
745
|
alt: "",
|
|
753
746
|
class: "size-full object-cover",
|
|
754
747
|
onError: h[1] ||= (e) => l.value = !0
|
|
755
|
-
}, null, 40,
|
|
748
|
+
}, null, 40, Br)) : (w(), s("span", Vr, j(r.value), 1))], 10, zr));
|
|
756
749
|
}
|
|
757
|
-
}),
|
|
750
|
+
}), Wr = { class: "flex flex-col" }, Gr = {
|
|
758
751
|
key: 0,
|
|
759
|
-
class: "border-b border-
|
|
760
|
-
},
|
|
752
|
+
class: "border-b border-ink/10"
|
|
753
|
+
}, Kr = ["title"], qr = { class: "grid grid-cols-[auto_minmax(0,1fr)] items-start gap-x-3 gap-y-2 px-4 py-3" }, Jr = { class: "flex min-w-0 flex-col" }, Yr = ["title"], Xr = ["title"], Zr = {
|
|
761
754
|
key: 1,
|
|
762
|
-
class: "flex items-center gap-2 border-t border-
|
|
763
|
-
},
|
|
755
|
+
class: "flex items-center gap-2 border-t border-ink/10 px-4 py-3"
|
|
756
|
+
}, Qr = /* @__PURE__ */ f({
|
|
764
757
|
__name: "Header",
|
|
765
758
|
props: {
|
|
766
759
|
title: {},
|
|
@@ -807,17 +800,18 @@ var Ar = ["aria-label"], jr = [
|
|
|
807
800
|
"sign-in"
|
|
808
801
|
],
|
|
809
802
|
setup(e, { emit: t }) {
|
|
810
|
-
let { t: n } = K(), r = e, l = t, f = i(() =>
|
|
803
|
+
let { t: n } = K(), r = e, l = t, f = i(() => Dr(r.user?.name ?? "")), p = i(() => r.user ? r.user.avatar || !f.value ? n("ui.header.account", { name: r.user.name }) : n("ui.header.accountWithInitials", {
|
|
811
804
|
initials: f.value,
|
|
812
805
|
name: r.user.name
|
|
813
806
|
}) : ""), m = i(() => {
|
|
814
807
|
let e = r.titleTo;
|
|
815
808
|
if (e != null && e !== "") return r.linkComponent === "a" ? { href: e } : { to: e };
|
|
816
|
-
}), h = ["-mx-2 rounded px-2 py-1 transition-colors hover:bg-
|
|
809
|
+
}), h = ["-mx-2 rounded px-2 py-1 transition-colors hover:bg-hover active:bg-pressed", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0"];
|
|
817
810
|
function g(e, t) {
|
|
818
811
|
t(), l(e === "account-settings" ? "account-settings" : e === "switch-account" ? "switch-account" : "log-out");
|
|
819
812
|
}
|
|
820
|
-
return (t, i) => (w(), s("header", { class: y(M(X)("flex h-12 shrink-0 items-center gap-2 border-b border-
|
|
813
|
+
return (t, i) => (w(), s("header", { class: y(M(X)("flex h-12 shrink-0 items-center gap-2 border-b border-ink/10 bg-surface px-4 text-ink", e.sticky && "sticky top-0 z-40", r.class)) }, [
|
|
814
|
+
O(t.$slots, "start"),
|
|
821
815
|
e.menu ? (w(), a(Z, {
|
|
822
816
|
key: 0,
|
|
823
817
|
variant: "ghost",
|
|
@@ -845,30 +839,30 @@ var Ar = ["aria-label"], jr = [
|
|
|
845
839
|
t.$slots.trailing || t.$slots.account || e.user || e.signIn ? (w(), s("div", {
|
|
846
840
|
key: 2,
|
|
847
841
|
class: y(M(X)("flex shrink-0 items-center gap-1", e.ui?.trailing))
|
|
848
|
-
}, [O(t.$slots, "trailing"), O(t.$slots, "account", {}, () => [e.user ? (w(), a(
|
|
842
|
+
}, [O(t.$slots, "trailing"), O(t.$slots, "account", {}, () => [e.user ? (w(), a(tr, {
|
|
849
843
|
key: 0,
|
|
850
844
|
content: { align: "end" },
|
|
851
845
|
ui: { content: M(X)("w-80", e.ui?.userMenu) }
|
|
852
846
|
}, {
|
|
853
|
-
content: V(({ close: n }) => [c("div",
|
|
854
|
-
e.user.organisation || t.$slots.organisation ? (w(), s("div",
|
|
855
|
-
class: "truncate px-4 py-3 text-xs font-bold text-
|
|
847
|
+
content: V(({ close: n }) => [c("div", Wr, [
|
|
848
|
+
e.user.organisation || t.$slots.organisation ? (w(), s("div", Gr, [O(t.$slots, "organisation", { close: n }, () => [c("p", {
|
|
849
|
+
class: "truncate px-4 py-3 text-xs font-bold text-ink/65 uppercase",
|
|
856
850
|
title: e.user.organisation
|
|
857
|
-
}, j(e.user.organisation), 9,
|
|
858
|
-
c("div",
|
|
859
|
-
d(
|
|
851
|
+
}, j(e.user.organisation), 9, Kr)])])) : o("", !0),
|
|
852
|
+
c("div", qr, [
|
|
853
|
+
d(Ur, {
|
|
860
854
|
user: e.user,
|
|
861
855
|
size: "lg",
|
|
862
856
|
decorative: ""
|
|
863
857
|
}, null, 8, ["user"]),
|
|
864
|
-
c("div",
|
|
858
|
+
c("div", Jr, [c("span", {
|
|
865
859
|
class: "truncate font-bold",
|
|
866
860
|
title: e.user.name
|
|
867
|
-
}, j(e.user.name), 9,
|
|
861
|
+
}, j(e.user.name), 9, Yr), e.user.email ? (w(), s("span", {
|
|
868
862
|
key: 0,
|
|
869
|
-
class: "truncate text-sm text-
|
|
863
|
+
class: "truncate text-sm text-ink/65",
|
|
870
864
|
title: e.user.email
|
|
871
|
-
}, j(e.user.email), 9,
|
|
865
|
+
}, j(e.user.email), 9, Xr)) : o("", !0)]),
|
|
872
866
|
e.userActions.includes("account-settings") ? (w(), a(Z, {
|
|
873
867
|
key: 0,
|
|
874
868
|
size: "sm",
|
|
@@ -881,7 +875,7 @@ var Ar = ["aria-label"], jr = [
|
|
|
881
875
|
}, 8, ["onClick"])) : o("", !0)
|
|
882
876
|
]),
|
|
883
877
|
O(t.$slots, "account-menu", { close: n }),
|
|
884
|
-
e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (w(), s("div",
|
|
878
|
+
e.userActions.includes("switch-account") || e.userActions.includes("log-out") ? (w(), s("div", Zr, [e.userActions.includes("switch-account") ? (w(), a(Z, {
|
|
885
879
|
key: 0,
|
|
886
880
|
onClick: (e) => g("switch-account", n)
|
|
887
881
|
}, {
|
|
@@ -904,7 +898,7 @@ var Ar = ["aria-label"], jr = [
|
|
|
904
898
|
"aria-label": p.value,
|
|
905
899
|
class: "-mr-1.5 rounded-full"
|
|
906
900
|
}, {
|
|
907
|
-
default: V(() => [d(
|
|
901
|
+
default: V(() => [d(Ur, {
|
|
908
902
|
user: e.user,
|
|
909
903
|
size: "sm",
|
|
910
904
|
decorative: ""
|
|
@@ -923,7 +917,7 @@ var Ar = ["aria-label"], jr = [
|
|
|
923
917
|
})) : o("", !0)])], 2)) : o("", !0)
|
|
924
918
|
], 2));
|
|
925
919
|
}
|
|
926
|
-
}),
|
|
920
|
+
}), $r = "inline-flex shrink-0 items-center whitespace-nowrap rounded-full border border-ink/10 font-bold", ei = /* @__PURE__ */ f({
|
|
927
921
|
__name: "Badge",
|
|
928
922
|
props: {
|
|
929
923
|
color: { default: "basic" },
|
|
@@ -938,7 +932,7 @@ var Ar = ["aria-label"], jr = [
|
|
|
938
932
|
},
|
|
939
933
|
setup(e) {
|
|
940
934
|
let t = e, n = {
|
|
941
|
-
basic: "bg-
|
|
935
|
+
basic: "bg-surface text-ink",
|
|
942
936
|
primary: "bg-primary text-white",
|
|
943
937
|
red: "bg-red text-white",
|
|
944
938
|
green: "bg-green text-white",
|
|
@@ -949,7 +943,7 @@ var Ar = ["aria-label"], jr = [
|
|
|
949
943
|
md: "h-6 px-2 text-xs gap-1 [&_svg]:size-3.5",
|
|
950
944
|
lg: "h-7 px-2.5 text-sm gap-1.5 [&_svg]:size-4"
|
|
951
945
|
};
|
|
952
|
-
return (i, a) => (w(), s("span", { class: y(M(X)(
|
|
946
|
+
return (i, a) => (w(), s("span", { class: y(M(X)($r, n[e.color], r[e.size], t.class)) }, [
|
|
953
947
|
O(i.$slots, "leading"),
|
|
954
948
|
O(i.$slots, "default"),
|
|
955
949
|
O(i.$slots, "trailing")
|
|
@@ -957,27 +951,27 @@ var Ar = ["aria-label"], jr = [
|
|
|
957
951
|
}
|
|
958
952
|
});
|
|
959
953
|
// src/components/Sidebar/sidebar.ts
|
|
960
|
-
function
|
|
954
|
+
function ti(e = [], t = []) {
|
|
961
955
|
for (let n of [...e, ...t.flatMap((e) => e.items)]) {
|
|
962
956
|
if (n.active) return [n];
|
|
963
957
|
if (n.children?.length) {
|
|
964
|
-
let e =
|
|
958
|
+
let e = ti(n.children);
|
|
965
959
|
if (e.length) return [n, ...e];
|
|
966
960
|
}
|
|
967
961
|
}
|
|
968
962
|
return [];
|
|
969
963
|
}
|
|
970
964
|
// src/components/Sidebar/Sidebar.vue?vue&type=script&setup=true&lang.ts
|
|
971
|
-
var
|
|
965
|
+
var ni = ["data-collapsed"], ri = ["aria-label"], ii = ["data-level"], ai = {
|
|
972
966
|
key: 0,
|
|
973
|
-
class: "-mb-2 flex flex-col gap-1 border-b border-
|
|
974
|
-
},
|
|
967
|
+
class: "-mb-2 flex flex-col gap-1 border-b border-ink/10 pb-2"
|
|
968
|
+
}, oi = ["title"], si = {
|
|
975
969
|
key: 0,
|
|
976
970
|
class: "relative flex h-6 items-center px-3"
|
|
977
|
-
},
|
|
971
|
+
}, ci = ["id"], li = ["aria-labelledby"], ui = {
|
|
978
972
|
key: 0,
|
|
979
973
|
class: "sr-only"
|
|
980
|
-
},
|
|
974
|
+
}, di = "transition-opacity duration-150 motion-reduce:transition-none", fi = "bg-primary/10 font-bold text-primary-fg not-aria-disabled:not-disabled:hover:bg-primary/15", pi = "font-bold text-primary-fg", mi = /* @__PURE__ */ f({
|
|
981
975
|
__name: "Sidebar",
|
|
982
976
|
props: /*@__PURE__*/ g({
|
|
983
977
|
items: { default: () => [] },
|
|
@@ -1013,7 +1007,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1013
1007
|
e.push(r), t = r.children;
|
|
1014
1008
|
}
|
|
1015
1009
|
return e;
|
|
1016
|
-
}), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), T = i(() =>
|
|
1010
|
+
}), S = i(() => x.value[x.value.length - 1]), C = i(() => S.value ? [{ items: S.value.children }] : g.value), T = i(() => ti(f.items, f.sections)), A = i(() => new Set(T.value.slice(0, -1).map((e) => e.label)));
|
|
1017
1011
|
z(() => T.value.map((e) => e.label).join("\0"), () => {
|
|
1018
1012
|
b.value = T.value.slice(0, -1).map((e) => e.label);
|
|
1019
1013
|
}, { immediate: !0 });
|
|
@@ -1066,16 +1060,16 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1066
1060
|
"cursor-pointer transition [&_svg]:size-4 [&_svg]:shrink-0",
|
|
1067
1061
|
"outline-2 -outline-offset-2 outline-transparent forced-colors:not-focus-visible:outline-0",
|
|
1068
1062
|
"focus-visible:outline-focus",
|
|
1069
|
-
"not-aria-disabled:not-disabled:hover:bg-
|
|
1063
|
+
"not-aria-disabled:not-disabled:hover:bg-hover not-aria-disabled:not-disabled:active:bg-pressed",
|
|
1070
1064
|
"disabled:cursor-not-allowed disabled:opacity-40 aria-disabled:cursor-not-allowed aria-disabled:opacity-40"
|
|
1071
1065
|
];
|
|
1072
1066
|
return (t, i) => (w(), s("aside", {
|
|
1073
1067
|
"data-collapsed": m.value || void 0,
|
|
1074
|
-
class: y(M(X)("flex h-full shrink-0 flex-col border-r border-
|
|
1068
|
+
class: y(M(X)("flex h-full shrink-0 flex-col border-r border-ink/10 bg-surface text-ink", "w-64 transition-[width] duration-300 ease-out motion-reduce:transition-none", m.value && "w-14", f.class))
|
|
1075
1069
|
}, [
|
|
1076
1070
|
t.$slots.header ? (w(), s("div", {
|
|
1077
1071
|
key: 0,
|
|
1078
|
-
class: y(M(X)("flex h-12 shrink-0 items-center gap-2 overflow-hidden border-b border-
|
|
1072
|
+
class: y(M(X)("flex h-12 shrink-0 items-center gap-2 overflow-hidden border-b border-ink/10 px-4", e.ui?.header))
|
|
1079
1073
|
}, [O(t.$slots, "header", { collapsed: m.value })], 2)) : o("", !0),
|
|
1080
1074
|
c("nav", {
|
|
1081
1075
|
ref_key: "navRef",
|
|
@@ -1087,21 +1081,21 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1087
1081
|
key: N.value,
|
|
1088
1082
|
"data-level": N.value,
|
|
1089
1083
|
class: "flex flex-col gap-4"
|
|
1090
|
-
}, [S.value ? (w(), s("div",
|
|
1084
|
+
}, [S.value ? (w(), s("div", ai, [c("button", {
|
|
1091
1085
|
type: "button",
|
|
1092
1086
|
"data-back": "",
|
|
1093
1087
|
title: m.value ? M(l)("ui.sidebar.backFrom", { name: S.value.label }) : void 0,
|
|
1094
1088
|
class: y(M(X)(J, "font-bold", e.ui?.item)),
|
|
1095
1089
|
onClick: ee
|
|
1096
|
-
}, [d(M(pe), { "aria-hidden": "true" }), c("span", { class: y(M(X)("min-w-0 flex-1 truncate",
|
|
1090
|
+
}, [d(M(pe), { "aria-hidden": "true" }), c("span", { class: y(M(X)("min-w-0 flex-1 truncate", di, m.value && "opacity-0")) }, [i[1] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(S.value.label), 1)], 2)], 10, oi)])) : o("", !0), (w(!0), s(n, null, D(C.value, (r, i) => (w(), s("div", {
|
|
1097
1091
|
key: i,
|
|
1098
1092
|
class: "flex flex-col gap-1"
|
|
1099
|
-
}, [r.label ? (w(), s("div",
|
|
1093
|
+
}, [r.label ? (w(), s("div", si, [c("div", {
|
|
1100
1094
|
id: `${M(h)}-section-${i}`,
|
|
1101
|
-
class: y(M(X)("truncate text-xs font-bold text-
|
|
1102
|
-
}, j(r.label), 11,
|
|
1095
|
+
class: y(M(X)("truncate text-xs font-bold text-ink/65 uppercase", di, m.value && "opacity-0"))
|
|
1096
|
+
}, j(r.label), 11, ci), c("div", {
|
|
1103
1097
|
"aria-hidden": "true",
|
|
1104
|
-
class: y(M(X)("absolute inset-x-2 top-1/2 border-t border-
|
|
1098
|
+
class: y(M(X)("absolute inset-x-2 top-1/2 border-t border-ink/10", di, !m.value && "opacity-0"))
|
|
1105
1099
|
}, null, 2)])) : o("", !0), c("ul", {
|
|
1106
1100
|
class: "flex flex-col gap-1",
|
|
1107
1101
|
"aria-labelledby": r.label ? `${M(h)}-section-${i}` : void 0
|
|
@@ -1110,7 +1104,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1110
1104
|
"data-parent": n.children?.length ? n.label : void 0,
|
|
1111
1105
|
"aria-current": n.active ? "page" : void 0,
|
|
1112
1106
|
title: m.value ? n.label : void 0,
|
|
1113
|
-
class: M(X)(J, n.active &&
|
|
1107
|
+
class: M(X)(J, n.active && fi, A.value.has(n.label) && pi, e.ui?.item),
|
|
1114
1108
|
onClick: (e) => q(n, e)
|
|
1115
1109
|
}), {
|
|
1116
1110
|
default: V(() => [O(t.$slots, "item", {
|
|
@@ -1122,12 +1116,12 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1122
1116
|
key: 0,
|
|
1123
1117
|
"aria-hidden": "true"
|
|
1124
1118
|
})) : o("", !0),
|
|
1125
|
-
c("span", { class: y(M(X)("min-w-0 flex-1 truncate",
|
|
1126
|
-
n.badge !== void 0 && n.badge !== "" ? (w(), a(
|
|
1119
|
+
c("span", { class: y(M(X)("min-w-0 flex-1 truncate", di, m.value && "opacity-0")) }, [u(j(n.label), 1), n.children?.length ? (w(), s("span", ui, ", more options")) : o("", !0)], 2),
|
|
1120
|
+
n.badge !== void 0 && n.badge !== "" ? (w(), a(ei, {
|
|
1127
1121
|
key: 1,
|
|
1128
1122
|
size: "sm",
|
|
1129
1123
|
color: n.badgeColor,
|
|
1130
|
-
class: y(M(X)(
|
|
1124
|
+
class: y(M(X)(di, m.value && "opacity-0"))
|
|
1131
1125
|
}, {
|
|
1132
1126
|
default: V(() => [u(j(n.badge), 1)]),
|
|
1133
1127
|
_: 2
|
|
@@ -1135,7 +1129,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1135
1129
|
n.children?.length ? (w(), a(M(me), {
|
|
1136
1130
|
key: 2,
|
|
1137
1131
|
"aria-hidden": "true",
|
|
1138
|
-
class: y(M(X)("opacity-70",
|
|
1132
|
+
class: y(M(X)("opacity-70", di, m.value && "opacity-0"))
|
|
1139
1133
|
}, null, 8, ["class"])) : o("", !0)
|
|
1140
1134
|
])]),
|
|
1141
1135
|
_: 2
|
|
@@ -1145,12 +1139,12 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1145
1139
|
"title",
|
|
1146
1140
|
"class",
|
|
1147
1141
|
"onClick"
|
|
1148
|
-
]))]))), 128))], 8,
|
|
1142
|
+
]))]))), 128))], 8, li)]))), 128))], 8, ii))]),
|
|
1149
1143
|
_: 3
|
|
1150
|
-
}, 16)], 10,
|
|
1144
|
+
}, 16)], 10, ri),
|
|
1151
1145
|
t.$slots.footer || e.collapsible ? (w(), s("div", {
|
|
1152
1146
|
key: 1,
|
|
1153
|
-
class: y(M(X)("flex shrink-0 flex-col gap-1 overflow-hidden border-t border-
|
|
1147
|
+
class: y(M(X)("flex shrink-0 flex-col gap-1 overflow-hidden border-t border-ink/10 p-2", e.ui?.footer))
|
|
1154
1148
|
}, [O(t.$slots, "footer", { collapsed: m.value }), e.collapsible ? (w(), a(Z, {
|
|
1155
1149
|
key: 0,
|
|
1156
1150
|
variant: "ghost",
|
|
@@ -1163,9 +1157,9 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1163
1157
|
default: V(() => [m.value ? (w(), a(M(Pe), { key: 0 })) : (w(), a(M(Ne), { key: 1 }))]),
|
|
1164
1158
|
_: 1
|
|
1165
1159
|
}, 8, ["aria-label", "aria-expanded"])) : o("", !0)], 2)) : o("", !0)
|
|
1166
|
-
], 10,
|
|
1160
|
+
], 10, ni));
|
|
1167
1161
|
}
|
|
1168
|
-
}),
|
|
1162
|
+
}), hi = "h-1.5 overflow-hidden rounded-full bg-ink/10", gi = "h-full rounded-full bg-primary transition-[translate,background-color] duration-300 ease-out motion-reduce:transition-none", _i = /* @__PURE__ */ f({
|
|
1169
1163
|
__name: "Progress",
|
|
1170
1164
|
props: {
|
|
1171
1165
|
value: { default: null },
|
|
@@ -1191,17 +1185,17 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1191
1185
|
"get-value-label": () => e.label,
|
|
1192
1186
|
"get-value-text": d,
|
|
1193
1187
|
"aria-busy": o.value || void 0,
|
|
1194
|
-
class: y(M(X)(e.segments && !o.value ? "flex gap-1" :
|
|
1188
|
+
class: y(M(X)(e.segments && !o.value ? "flex gap-1" : hi, r.class))
|
|
1195
1189
|
}, {
|
|
1196
1190
|
default: V(() => [e.segments && !o.value ? (w(!0), s(n, { key: 0 }, D(e.max, (e) => (w(), s("div", {
|
|
1197
1191
|
key: e,
|
|
1198
|
-
class: y(M(X)(
|
|
1199
|
-
}, [c("div", { class: y(M(X)(
|
|
1192
|
+
class: y(M(X)(hi, "flex-1"))
|
|
1193
|
+
}, [c("div", { class: y(M(X)(gi, e <= l.value ? "translate-x-0" : "-translate-x-full")) }, null, 2)], 2))), 128)) : o.value ? (w(), a(M(Ut), {
|
|
1200
1194
|
key: 1,
|
|
1201
1195
|
class: "h-full w-2/5 rounded-full bg-primary animate-progress-indeterminate motion-reduce:w-full motion-reduce:translate-x-0 motion-reduce:animate-pulse"
|
|
1202
1196
|
})) : (w(), a(M(Ut), {
|
|
1203
1197
|
key: 2,
|
|
1204
|
-
class: y(
|
|
1198
|
+
class: y(gi),
|
|
1205
1199
|
style: x({ translate: `${u.value - 100}% 0` })
|
|
1206
1200
|
}, null, 8, ["style"]))]),
|
|
1207
1201
|
_: 1
|
|
@@ -1213,14 +1207,14 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1213
1207
|
"class"
|
|
1214
1208
|
]));
|
|
1215
1209
|
}
|
|
1216
|
-
}),
|
|
1210
|
+
}), vi = { class: "text-ink" }, yi = { class: "flex items-start gap-4" }, bi = { class: "flex min-w-0 flex-1 flex-col gap-1" }, xi = { key: 0 }, Si = {
|
|
1217
1211
|
key: 1,
|
|
1218
1212
|
class: "sr-only"
|
|
1219
|
-
},
|
|
1213
|
+
}, Ci = {
|
|
1220
1214
|
key: 1,
|
|
1221
1215
|
"aria-live": "polite",
|
|
1222
1216
|
class: "sr-only"
|
|
1223
|
-
},
|
|
1217
|
+
}, wi = ["role", "aria-labelledby"], Ti = "textarea, [contenteditable=\"true\"], input[type=checkbox], input[type=radio], input[type=button], input[type=submit]", Ei = /* @__PURE__ */ f({
|
|
1224
1218
|
__name: "Slideover",
|
|
1225
1219
|
props: /*@__PURE__*/ g({
|
|
1226
1220
|
title: {},
|
|
@@ -1301,7 +1295,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1301
1295
|
}
|
|
1302
1296
|
function L(e) {
|
|
1303
1297
|
let t = e.target;
|
|
1304
|
-
!r.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(
|
|
1298
|
+
!r.steps || e.defaultPrevented || e.isComposing || t.tagName !== "INPUT" || t.closest(Ti) || (e.preventDefault(), I());
|
|
1305
1299
|
}
|
|
1306
1300
|
let R = 0;
|
|
1307
1301
|
function B(e) {
|
|
@@ -1332,7 +1326,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1332
1326
|
left: "inset-y-0 left-0 w-full max-w-md border-r data-[state=open]:animate-slide-in-left data-[state=closed]:animate-slide-out-left",
|
|
1333
1327
|
top: "inset-x-0 top-0 max-h-full border-b data-[state=open]:animate-slide-in-top data-[state=closed]:animate-slide-out-top",
|
|
1334
1328
|
bottom: "inset-x-0 bottom-0 max-h-full border-t data-[state=open]:animate-slide-in-bottom data-[state=closed]:animate-slide-out-bottom"
|
|
1335
|
-
}, J = ["fixed z-50 flex flex-col bg-
|
|
1329
|
+
}, J = ["fixed z-50 flex flex-col bg-surface text-ink border-ink/10 shadow-xl outline-none", "motion-reduce:data-[state=open]:animate-fade-in motion-reduce:data-[state=closed]:animate-fade-out"];
|
|
1336
1330
|
return (t, r) => (w(), a(M(St), {
|
|
1337
1331
|
open: m.value,
|
|
1338
1332
|
modal: e.modal,
|
|
@@ -1360,14 +1354,14 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1360
1354
|
default: V(() => [O(t.$slots, "content", { close: g }, () => [
|
|
1361
1355
|
e.title || e.description || e.close || e.steps || t.$slots.header || t.$slots.title ? (w(), s("header", {
|
|
1362
1356
|
key: 0,
|
|
1363
|
-
class: y(M(X)("flex flex-col gap-4 border-b border-
|
|
1357
|
+
class: y(M(X)("flex flex-col gap-4 border-b border-ink/10 px-6 py-4", e.ui?.header))
|
|
1364
1358
|
}, [
|
|
1365
1359
|
e.steps ? (w(), s("p", {
|
|
1366
1360
|
key: 0,
|
|
1367
1361
|
id: T,
|
|
1368
|
-
class: "text-sm text-
|
|
1369
|
-
}, [u(" Step " + j(b.value + 1) + " of " + j(x.value) + ": ", 1), c("span",
|
|
1370
|
-
e.steps ? (w(), a(
|
|
1362
|
+
class: "text-sm text-ink/65"
|
|
1363
|
+
}, [u(" Step " + j(b.value + 1) + " of " + j(x.value) + ": ", 1), c("span", vi, j(e.steps[b.value]), 1)])) : o("", !0),
|
|
1364
|
+
e.steps ? (w(), a(_i, {
|
|
1371
1365
|
key: 1,
|
|
1372
1366
|
label: e.title ?? M(n)("ui.slideover.steps"),
|
|
1373
1367
|
segments: "",
|
|
@@ -1378,7 +1372,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1378
1372
|
"value",
|
|
1379
1373
|
"max"
|
|
1380
1374
|
])) : o("", !0),
|
|
1381
|
-
c("div",
|
|
1375
|
+
c("div", yi, [O(t.$slots, "header", { close: g }, () => [c("div", bi, [
|
|
1382
1376
|
d(M(Ct), { class: y(e.title || t.$slots.title ? M(X)("text-lg", e.ui?.title) : "sr-only") }, {
|
|
1383
1377
|
default: V(() => [O(t.$slots, "title", {}, () => [u(j(e.title), 1)])]),
|
|
1384
1378
|
_: 3
|
|
@@ -1386,12 +1380,12 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1386
1380
|
e.description || t.$slots.description || e.steps ? (w(), a(M(yt), {
|
|
1387
1381
|
key: 0,
|
|
1388
1382
|
as: "div",
|
|
1389
|
-
class: "flex flex-col gap-1 text-sm text-
|
|
1383
|
+
class: "flex flex-col gap-1 text-sm text-ink/65"
|
|
1390
1384
|
}, {
|
|
1391
|
-
default: V(() => [e.description || t.$slots.description ? (w(), s("p",
|
|
1385
|
+
default: V(() => [e.description || t.$slots.description ? (w(), s("p", xi, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0), e.steps ? (w(), s("p", Si, j(D.value), 1)) : o("", !0)]),
|
|
1392
1386
|
_: 3
|
|
1393
1387
|
})) : o("", !0),
|
|
1394
|
-
e.steps ? (w(), s("p",
|
|
1388
|
+
e.steps ? (w(), s("p", Ci, j(k.value), 1)) : o("", !0)
|
|
1395
1389
|
]), e.close ? (w(), a(M(_t), {
|
|
1396
1390
|
key: 0,
|
|
1397
1391
|
"as-child": ""
|
|
@@ -1418,10 +1412,10 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1418
1412
|
}, [O(t.$slots, "body", {
|
|
1419
1413
|
close: g,
|
|
1420
1414
|
step: b.value
|
|
1421
|
-
})], 42,
|
|
1415
|
+
})], 42, wi),
|
|
1422
1416
|
t.$slots.footer || e.steps ? (w(), s("footer", {
|
|
1423
1417
|
key: 1,
|
|
1424
|
-
class: y(M(X)("flex justify-end gap-2 border-t border-
|
|
1418
|
+
class: y(M(X)("flex justify-end gap-2 border-t border-ink/10 px-6 py-4", e.ui?.footer))
|
|
1425
1419
|
}, [O(t.$slots, "footer", { close: g }, () => [d(Z, {
|
|
1426
1420
|
class: "mr-auto",
|
|
1427
1421
|
disabled: b.value > 0 && C.value === "loading",
|
|
@@ -1453,7 +1447,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1453
1447
|
_: 3
|
|
1454
1448
|
}, 8, ["open", "modal"]));
|
|
1455
1449
|
}
|
|
1456
|
-
}),
|
|
1450
|
+
}), Di = ["href"], Oi = { class: "flex flex-1" }, ki = { class: "sticky top-12 hidden h-[calc(100dvh-var(--spacing)*12)] shrink-0 self-start lg:flex" }, Ai = { class: "flex min-w-0 flex-1 flex-col" }, ji = /* @__PURE__ */ f({
|
|
1457
1451
|
__name: "AppShell",
|
|
1458
1452
|
props: /*@__PURE__*/ g({
|
|
1459
1453
|
title: {},
|
|
@@ -1513,12 +1507,12 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1513
1507
|
"delay-duration": 400,
|
|
1514
1508
|
"skip-delay-duration": 300
|
|
1515
1509
|
}, {
|
|
1516
|
-
default: V(() => [c("div", { class: y(M(X)("flex min-h-dvh flex-col bg-background text-
|
|
1510
|
+
default: V(() => [c("div", { class: y(M(X)("flex min-h-dvh flex-col bg-background text-ink", r.class)) }, [
|
|
1517
1511
|
c("a", {
|
|
1518
1512
|
href: `#${g}`,
|
|
1519
|
-
class: "sr-only z-50 rounded bg-
|
|
1520
|
-
}, " Skip to content ", 8,
|
|
1521
|
-
d(
|
|
1513
|
+
class: "sr-only z-50 rounded bg-surface px-4 py-2 text-sm focus:not-sr-only focus:fixed focus:top-2 focus:left-2 focus:outline-2 focus:outline-focus"
|
|
1514
|
+
}, " Skip to content ", 8, Di),
|
|
1515
|
+
d(Qr, _(e.header, {
|
|
1522
1516
|
title: e.title,
|
|
1523
1517
|
"title-to": e.titleTo,
|
|
1524
1518
|
"link-component": e.linkComponent,
|
|
@@ -1530,7 +1524,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1530
1524
|
"sign-in": e.signIn,
|
|
1531
1525
|
ui: {
|
|
1532
1526
|
...e.header?.ui,
|
|
1533
|
-
menu: M(X)("lg:hidden", e.header?.ui?.menu)
|
|
1527
|
+
menu: M(X)("lg:hidden", e.launcher && "ml-0", e.header?.ui?.menu)
|
|
1534
1528
|
},
|
|
1535
1529
|
onMenu: f[1] ||= (e) => u.value = !0,
|
|
1536
1530
|
onAccountSettings: f[2] ||= (e) => i("account-settings"),
|
|
@@ -1545,34 +1539,43 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1545
1539
|
"aria-label": s.value ? M(n)("ui.appShell.expandSidebar") : M(n)("ui.appShell.collapseSidebar"),
|
|
1546
1540
|
"aria-expanded": !s.value,
|
|
1547
1541
|
"aria-controls": v,
|
|
1548
|
-
class: "-ml-2.5
|
|
1542
|
+
class: y(M(X)("max-lg:hidden", e.launcher ? "ml-0" : "-ml-2.5")),
|
|
1549
1543
|
onClick: f[0] ||= (e) => s.value = !s.value
|
|
1550
1544
|
}, {
|
|
1551
1545
|
default: V(() => [d(M(Ae))]),
|
|
1552
1546
|
_: 1
|
|
1553
|
-
}, 8, [
|
|
1547
|
+
}, 8, [
|
|
1548
|
+
"aria-label",
|
|
1549
|
+
"aria-expanded",
|
|
1550
|
+
"class"
|
|
1551
|
+
])) : o("", !0), O(t.$slots, "header-leading")]),
|
|
1554
1552
|
default: V(() => [O(t.$slots, "header-middle")]),
|
|
1555
1553
|
_: 2
|
|
1556
1554
|
}, [
|
|
1557
|
-
|
|
1558
|
-
name: "
|
|
1559
|
-
fn: V(() => [
|
|
1555
|
+
e.launcher ? {
|
|
1556
|
+
name: "start",
|
|
1557
|
+
fn: V(() => [d(cr, _({ align: "start" }, e.launcher === !0 ? {} : e.launcher, { class: "-ml-2.5" }), null, 16)]),
|
|
1560
1558
|
key: "0"
|
|
1561
1559
|
} : void 0,
|
|
1560
|
+
t.$slots["header-trailing"] ? {
|
|
1561
|
+
name: "trailing",
|
|
1562
|
+
fn: V(() => [O(t.$slots, "header-trailing")]),
|
|
1563
|
+
key: "1"
|
|
1564
|
+
} : void 0,
|
|
1562
1565
|
t.$slots.account ? {
|
|
1563
1566
|
name: "account",
|
|
1564
1567
|
fn: V(() => [O(t.$slots, "account")]),
|
|
1565
|
-
key: "
|
|
1568
|
+
key: "2"
|
|
1566
1569
|
} : void 0,
|
|
1567
1570
|
t.$slots["account-menu"] ? {
|
|
1568
1571
|
name: "account-menu",
|
|
1569
1572
|
fn: V((e) => [O(t.$slots, "account-menu", b(p(e)))]),
|
|
1570
|
-
key: "
|
|
1573
|
+
key: "3"
|
|
1571
1574
|
} : void 0,
|
|
1572
1575
|
t.$slots.organisation ? {
|
|
1573
1576
|
name: "organisation",
|
|
1574
1577
|
fn: V((e) => [O(t.$slots, "organisation", b(p(e)))]),
|
|
1575
|
-
key: "
|
|
1578
|
+
key: "4"
|
|
1576
1579
|
} : void 0
|
|
1577
1580
|
]), 1040, [
|
|
1578
1581
|
"title",
|
|
@@ -1584,8 +1587,8 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1584
1587
|
"sign-in",
|
|
1585
1588
|
"ui"
|
|
1586
1589
|
]),
|
|
1587
|
-
c("div",
|
|
1588
|
-
c("div",
|
|
1590
|
+
c("div", Oi, [
|
|
1591
|
+
c("div", ki, [d(mi, _(e.sidebar, {
|
|
1589
1592
|
id: v,
|
|
1590
1593
|
collapsed: s.value,
|
|
1591
1594
|
"onUpdate:collapsed": f[6] ||= (e) => s.value = e,
|
|
@@ -1606,7 +1609,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1606
1609
|
"sections",
|
|
1607
1610
|
"link-component"
|
|
1608
1611
|
])]),
|
|
1609
|
-
d(
|
|
1612
|
+
d(Ei, {
|
|
1610
1613
|
open: u.value,
|
|
1611
1614
|
"onUpdate:open": f[8] ||= (e) => u.value = e,
|
|
1612
1615
|
side: "left",
|
|
@@ -1618,7 +1621,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1618
1621
|
body: "flex p-0"
|
|
1619
1622
|
}
|
|
1620
1623
|
}, {
|
|
1621
|
-
body: V(() => [d(
|
|
1624
|
+
body: V(() => [d(mi, _(e.sidebar, {
|
|
1622
1625
|
items: e.items,
|
|
1623
1626
|
sections: e.sections,
|
|
1624
1627
|
"link-component": e.linkComponent,
|
|
@@ -1635,11 +1638,11 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1635
1638
|
])]),
|
|
1636
1639
|
_: 3
|
|
1637
1640
|
}, 8, ["open", "title"]),
|
|
1638
|
-
c("div",
|
|
1641
|
+
c("div", Ai, [c("main", {
|
|
1639
1642
|
id: g,
|
|
1640
1643
|
tabindex: "-1",
|
|
1641
1644
|
class: y(M(X)("min-w-0 flex-1 outline-none", e.ui?.main))
|
|
1642
|
-
}, [O(t.$slots, "default")], 2), e.footer ? (w(), a(
|
|
1645
|
+
}, [O(t.$slots, "default")], 2), e.footer ? (w(), a(Er, b(_({ key: 0 }, {
|
|
1643
1646
|
linkComponent: e.linkComponent,
|
|
1644
1647
|
...e.footer
|
|
1645
1648
|
})), null, 16)) : o("", !0)])
|
|
@@ -1648,7 +1651,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1648
1651
|
_: 3
|
|
1649
1652
|
}));
|
|
1650
1653
|
}
|
|
1651
|
-
}),
|
|
1654
|
+
}), Mi = ["aria-label"], Ni = { class: "flex flex-wrap items-center gap-x-1.5 gap-y-1" }, Pi = ["title"], Fi = { class: "truncate" }, Ii = { class: "truncate" }, Li = ["title"], Ri = { class: "truncate" }, zi = "inline-flex max-w-60 min-w-0 items-center gap-1.5 [&_svg]:size-3.5 [&_svg]:shrink-0", Bi = /* @__PURE__ */ f({
|
|
1652
1655
|
__name: "Breadcrumb",
|
|
1653
1656
|
props: {
|
|
1654
1657
|
items: {},
|
|
@@ -1677,36 +1680,36 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1677
1680
|
e.onSelect?.(t), l("select", e, t);
|
|
1678
1681
|
}
|
|
1679
1682
|
let p = [
|
|
1680
|
-
"cursor-pointer rounded-sm text-
|
|
1681
|
-
"hover:text-
|
|
1683
|
+
"cursor-pointer rounded-sm text-ink/65 underline-offset-2 transition",
|
|
1684
|
+
"hover:text-ink hover:underline",
|
|
1682
1685
|
"outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
|
|
1683
1686
|
];
|
|
1684
1687
|
return (t, l) => (w(), s("nav", {
|
|
1685
1688
|
"aria-label": e.label ?? M(r)("ui.breadcrumb.label"),
|
|
1686
1689
|
class: y(M(X)("min-w-0 text-sm", i.class))
|
|
1687
|
-
}, [c("ol",
|
|
1690
|
+
}, [c("ol", Ni, [(w(!0), s(n, null, D(e.items, (t, n) => (w(), s("li", {
|
|
1688
1691
|
key: `${t.label}-${n}`,
|
|
1689
1692
|
class: "flex min-w-0 items-center gap-1.5"
|
|
1690
1693
|
}, [n === e.items.length - 1 ? (w(), s("span", {
|
|
1691
1694
|
key: 0,
|
|
1692
1695
|
"aria-current": "page",
|
|
1693
1696
|
title: t.label,
|
|
1694
|
-
class: y(M(X)(
|
|
1697
|
+
class: y(M(X)(zi, "text-ink"))
|
|
1695
1698
|
}, [t.icon ? (w(), a(k(t.icon), {
|
|
1696
1699
|
key: 0,
|
|
1697
1700
|
"aria-hidden": "true"
|
|
1698
|
-
})) : o("", !0), c("span",
|
|
1701
|
+
})) : o("", !0), c("span", Fi, j(t.label), 1)], 10, Pi)) : u(t) ? (w(), a(k(u(t)), _({
|
|
1699
1702
|
key: 1,
|
|
1700
1703
|
ref_for: !0
|
|
1701
1704
|
}, d(t), {
|
|
1702
1705
|
title: t.label,
|
|
1703
|
-
class: M(X)(
|
|
1706
|
+
class: M(X)(zi, p),
|
|
1704
1707
|
onClick: (e) => f(t, e)
|
|
1705
1708
|
}), {
|
|
1706
1709
|
default: V(() => [t.icon ? (w(), a(k(t.icon), {
|
|
1707
1710
|
key: 0,
|
|
1708
1711
|
"aria-hidden": "true"
|
|
1709
|
-
})) : o("", !0), c("span",
|
|
1712
|
+
})) : o("", !0), c("span", Ii, j(t.label), 1)]),
|
|
1710
1713
|
_: 2
|
|
1711
1714
|
}, 1040, [
|
|
1712
1715
|
"title",
|
|
@@ -1715,17 +1718,17 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1715
1718
|
])) : (w(), s("span", {
|
|
1716
1719
|
key: 2,
|
|
1717
1720
|
title: t.label,
|
|
1718
|
-
class: y(M(X)(
|
|
1721
|
+
class: y(M(X)(zi, "text-ink/65"))
|
|
1719
1722
|
}, [t.icon ? (w(), a(k(t.icon), {
|
|
1720
1723
|
key: 0,
|
|
1721
1724
|
"aria-hidden": "true"
|
|
1722
|
-
})) : o("", !0), c("span",
|
|
1725
|
+
})) : o("", !0), c("span", Ri, j(t.label), 1)], 10, Li)), n < e.items.length - 1 ? (w(), a(M(me), {
|
|
1723
1726
|
key: 3,
|
|
1724
1727
|
"aria-hidden": "true",
|
|
1725
|
-
class: "size-3.5 shrink-0 text-
|
|
1726
|
-
})) : o("", !0)]))), 128))])], 10,
|
|
1728
|
+
class: "size-3.5 shrink-0 text-ink/40"
|
|
1729
|
+
})) : o("", !0)]))), 128))])], 10, Mi));
|
|
1727
1730
|
}
|
|
1728
|
-
}),
|
|
1731
|
+
}), Vi = /* @__PURE__ */ f({
|
|
1729
1732
|
__name: "Menu",
|
|
1730
1733
|
props: {
|
|
1731
1734
|
items: {},
|
|
@@ -1749,9 +1752,9 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1749
1752
|
return e.to === void 0 ? e.href === void 0 ? {} : { href: e.href } : { to: e.to };
|
|
1750
1753
|
}
|
|
1751
1754
|
let c = [
|
|
1752
|
-
"flex min-h-8 cursor-pointer items-center gap-2
|
|
1755
|
+
"flex min-h-8 cursor-pointer items-center gap-2 px-3 py-1.5 text-sm text-ink no-underline outline-none select-none",
|
|
1753
1756
|
"[&_svg]:size-4 [&_svg]:shrink-0",
|
|
1754
|
-
"data-highlighted:bg-
|
|
1757
|
+
"data-highlighted:bg-selected",
|
|
1755
1758
|
"data-disabled:cursor-not-allowed data-disabled:opacity-40"
|
|
1756
1759
|
];
|
|
1757
1760
|
return (l, f) => (w(), a(M(Ot), { modal: !1 }, {
|
|
@@ -1776,7 +1779,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1776
1779
|
align: "end",
|
|
1777
1780
|
"side-offset": 4,
|
|
1778
1781
|
"collision-padding": 8,
|
|
1779
|
-
class: y(M(X)(M(
|
|
1782
|
+
class: y(M(X)(M($n), "min-w-48 overflow-hidden py-1"))
|
|
1780
1783
|
}, {
|
|
1781
1784
|
default: V(() => [(w(!0), s(n, null, D(e.items, (e) => (w(), a(M(Et), _({
|
|
1782
1785
|
key: e.label,
|
|
@@ -1803,18 +1806,18 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1803
1806
|
_: 1
|
|
1804
1807
|
}));
|
|
1805
1808
|
}
|
|
1806
|
-
}),
|
|
1809
|
+
}), Hi = { class: "flex flex-wrap items-start justify-between gap-x-6 gap-y-3" }, Ui = { class: "flex min-w-0 flex-col gap-1" }, Wi = { class: "flex flex-wrap items-center gap-x-2 gap-y-1" }, Gi = ["aria-label"], Ki = {
|
|
1807
1810
|
key: 0,
|
|
1808
1811
|
class: "flex shrink-0 items-center gap-2 px-3 text-sm font-bold",
|
|
1809
1812
|
"aria-live": "polite"
|
|
1810
|
-
},
|
|
1813
|
+
}, qi = {
|
|
1811
1814
|
"aria-hidden": "true",
|
|
1812
1815
|
inert: "",
|
|
1813
1816
|
class: "invisible absolute top-0 left-0 size-0 overflow-hidden"
|
|
1814
|
-
},
|
|
1817
|
+
}, Ji = {
|
|
1815
1818
|
key: 1,
|
|
1816
1819
|
class: "flex shrink-0 items-center gap-2 px-3 text-sm"
|
|
1817
|
-
},
|
|
1820
|
+
}, Yi = /* @__PURE__ */ f({
|
|
1818
1821
|
__name: "PageHeader",
|
|
1819
1822
|
props: {
|
|
1820
1823
|
title: {},
|
|
@@ -1857,14 +1860,14 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1857
1860
|
}), S(() => x?.disconnect()), z(() => r.toolbar?.map((e) => `${e.label}${e.disabled ? "-" : ""}`).join("|"), () => v(b));
|
|
1858
1861
|
let T = i(() => (r.toolbar ?? []).slice(0, _.value)), A = i(() => (r.toolbar ?? []).slice(_.value));
|
|
1859
1862
|
return (i, p) => (w(), s("header", { class: y(M(X)("flex flex-col gap-2", r.class)) }, [
|
|
1860
|
-
e.breadcrumb && e.breadcrumb.length > 1 ? (w(), a(
|
|
1863
|
+
e.breadcrumb && e.breadcrumb.length > 1 ? (w(), a(Bi, {
|
|
1861
1864
|
key: 0,
|
|
1862
1865
|
items: e.breadcrumb,
|
|
1863
1866
|
"link-component": e.linkComponent
|
|
1864
1867
|
}, null, 8, ["items", "link-component"])) : o("", !0),
|
|
1865
|
-
c("div",
|
|
1868
|
+
c("div", Hi, [c("div", Ui, [c("div", Wi, [c("h1", { class: y(M(X)("min-w-0 text-2xl font-bold break-words", e.ui?.title)) }, j(e.title), 3), O(i.$slots, "badge")]), e.description || i.$slots.description ? (w(), s("p", {
|
|
1866
1869
|
key: 0,
|
|
1867
|
-
class: y(M(X)("max-w-prose text-sm text-
|
|
1870
|
+
class: y(M(X)("max-w-prose text-sm text-ink/65", e.ui?.description))
|
|
1868
1871
|
}, [O(i.$slots, "description", {}, () => [u(j(e.description), 1)])], 2)) : o("", !0)]), i.$slots.actions ? (w(), s("div", {
|
|
1869
1872
|
key: 0,
|
|
1870
1873
|
class: y(M(X)("flex flex-wrap items-center gap-2", e.ui?.actions))
|
|
@@ -1873,9 +1876,9 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1873
1876
|
key: 1,
|
|
1874
1877
|
role: "group",
|
|
1875
1878
|
"aria-label": M(t)("ui.pageHeader.actions", { title: e.title }),
|
|
1876
|
-
class: y(M(X)("flex items-center gap-1 rounded-lg border border-
|
|
1879
|
+
class: y(M(X)("flex items-center gap-1 rounded-lg border border-ink/10 bg-surface p-1 shadow-xs", e.ui?.toolbar))
|
|
1877
1880
|
}, [
|
|
1878
|
-
i.$slots["toolbar-start"] ? (w(), s("div",
|
|
1881
|
+
i.$slots["toolbar-start"] ? (w(), s("div", Ki, [O(i.$slots, "toolbar-start")])) : o("", !0),
|
|
1879
1882
|
c("div", {
|
|
1880
1883
|
ref_key: "fitArea",
|
|
1881
1884
|
ref: h,
|
|
@@ -1904,7 +1907,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1904
1907
|
"disabled",
|
|
1905
1908
|
"onClick"
|
|
1906
1909
|
]))), 128)),
|
|
1907
|
-
A.value.length ? (w(), a(
|
|
1910
|
+
A.value.length ? (w(), a(Vi, {
|
|
1908
1911
|
key: 0,
|
|
1909
1912
|
items: A.value,
|
|
1910
1913
|
label: M(t)("ui.pageHeader.moreActions"),
|
|
@@ -1915,7 +1918,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1915
1918
|
"label",
|
|
1916
1919
|
"link-component"
|
|
1917
1920
|
])) : o("", !0),
|
|
1918
|
-
c("div",
|
|
1921
|
+
c("div", qi, [c("div", {
|
|
1919
1922
|
ref_key: "measure",
|
|
1920
1923
|
ref: g,
|
|
1921
1924
|
class: "flex w-max gap-1"
|
|
@@ -1941,18 +1944,18 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1941
1944
|
_: 1
|
|
1942
1945
|
})], 512)])
|
|
1943
1946
|
], 512),
|
|
1944
|
-
i.$slots["toolbar-end"] ? (w(), s("div",
|
|
1945
|
-
], 10,
|
|
1947
|
+
i.$slots["toolbar-end"] ? (w(), s("div", Ji, [O(i.$slots, "toolbar-end")])) : o("", !0)
|
|
1948
|
+
], 10, Gi)) : o("", !0),
|
|
1946
1949
|
O(i.$slots, "default")
|
|
1947
1950
|
], 2));
|
|
1948
1951
|
}
|
|
1949
|
-
}),
|
|
1952
|
+
}), Xi = { class: "flex min-w-0 flex-col gap-0.5" }, Zi = {
|
|
1950
1953
|
class: "text-sm",
|
|
1951
1954
|
"aria-hidden": "true"
|
|
1952
|
-
},
|
|
1955
|
+
}, Qi = {
|
|
1953
1956
|
key: 0,
|
|
1954
|
-
class: "text-xs text-
|
|
1955
|
-
},
|
|
1957
|
+
class: "text-xs text-ink/65"
|
|
1958
|
+
}, $i = { class: "w-full shrink-0 sm:w-80" }, ea = /* @__PURE__ */ f({
|
|
1956
1959
|
__name: "SettingsRow",
|
|
1957
1960
|
props: {
|
|
1958
1961
|
label: {},
|
|
@@ -1967,12 +1970,12 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
1967
1970
|
},
|
|
1968
1971
|
setup(e) {
|
|
1969
1972
|
let t = e;
|
|
1970
|
-
return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-6", t.class)) }, [c("div",
|
|
1973
|
+
return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3 sm:flex-row sm:items-start sm:justify-between sm:gap-6", t.class)) }, [c("div", Xi, [c("p", Zi, j(e.label), 1), e.description ? (w(), s("p", Qi, j(e.description), 1)) : o("", !0)]), c("div", $i, [O(n.$slots, "default")])], 2));
|
|
1971
1974
|
}
|
|
1972
|
-
}),
|
|
1975
|
+
}), ta = ["aria-label"], na = ["aria-label"], ra = { "aria-hidden": "true" }, ia = { class: "flex max-h-72 flex-col gap-2 overflow-y-auto p-3 text-sm [scrollbar-width:thin]" }, aa = { class: "min-w-0 truncate" }, oa = {
|
|
1973
1976
|
key: 0,
|
|
1974
|
-
class: "ml-auto shrink-0 truncate text-xs text-
|
|
1975
|
-
},
|
|
1977
|
+
class: "ml-auto shrink-0 truncate text-xs text-ink/65"
|
|
1978
|
+
}, sa = /* @__PURE__ */ f({
|
|
1976
1979
|
__name: "AvatarGroup",
|
|
1977
1980
|
props: {
|
|
1978
1981
|
users: {},
|
|
@@ -2017,8 +2020,8 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
2017
2020
|
class: y(M(X)("flex items-center", r.class))
|
|
2018
2021
|
}, [(w(!0), s(n, null, D(a.value, (t, n) => (w(), s("span", {
|
|
2019
2022
|
key: `${t.name}-${n}`,
|
|
2020
|
-
class: y(M(X)("relative flex rounded-full ring-
|
|
2021
|
-
}, [d(
|
|
2023
|
+
class: y(M(X)("relative flex rounded-full ring-surface hover:z-10 focus-within:z-10", f[e.size], n > 0 && u[e.size]))
|
|
2024
|
+
}, [d(Ur, {
|
|
2022
2025
|
user: t,
|
|
2023
2026
|
size: e.size,
|
|
2024
2027
|
profile: e.profile
|
|
@@ -2028,8 +2031,8 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
2028
2031
|
"profile"
|
|
2029
2032
|
])], 2))), 128)), l.value.length ? (w(), s("span", {
|
|
2030
2033
|
key: 0,
|
|
2031
|
-
class: y(M(X)("relative flex rounded-full ring-
|
|
2032
|
-
}, [d(
|
|
2034
|
+
class: y(M(X)("relative flex rounded-full ring-surface hover:z-10 focus-within:z-10", f[e.size], u[e.size]))
|
|
2035
|
+
}, [d(tr, {
|
|
2033
2036
|
mode: "hover",
|
|
2034
2037
|
"open-delay": 300,
|
|
2035
2038
|
"close-delay": 150,
|
|
@@ -2040,17 +2043,17 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
2040
2043
|
},
|
|
2041
2044
|
ui: { content: "w-56" }
|
|
2042
2045
|
}, {
|
|
2043
|
-
content: V(() => [c("ul",
|
|
2046
|
+
content: V(() => [c("ul", ia, [(w(!0), s(n, null, D(l.value, (e, t) => (w(), s("li", {
|
|
2044
2047
|
key: `${e.name}-${t}`,
|
|
2045
2048
|
class: "flex items-center gap-2"
|
|
2046
2049
|
}, [
|
|
2047
|
-
d(
|
|
2050
|
+
d(Ur, {
|
|
2048
2051
|
user: e,
|
|
2049
2052
|
size: "xs",
|
|
2050
2053
|
decorative: ""
|
|
2051
2054
|
}, null, 8, ["user"]),
|
|
2052
|
-
c("span",
|
|
2053
|
-
e.role ? (w(), s("span",
|
|
2055
|
+
c("span", aa, j(e.name), 1),
|
|
2056
|
+
e.role ? (w(), s("span", oa, j(e.role), 1)) : o("", !0)
|
|
2054
2057
|
]))), 128))])]),
|
|
2055
2058
|
default: V(() => [c("button", {
|
|
2056
2059
|
type: "button",
|
|
@@ -2058,18 +2061,18 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
2058
2061
|
count: l.value.length,
|
|
2059
2062
|
names: l.value.map((e) => e.name).join(", ")
|
|
2060
2063
|
}),
|
|
2061
|
-
class: y(M(X)("inline-flex shrink-0 cursor-pointer items-center justify-center rounded-full bg-surface font-bold text-
|
|
2062
|
-
}, [c("span",
|
|
2064
|
+
class: y(M(X)("inline-flex shrink-0 cursor-pointer items-center justify-center rounded-full bg-surface-muted font-bold text-ink select-none", "outline-2 outline-offset-1 outline-transparent transition focus-visible:outline-focus", p[e.size]))
|
|
2065
|
+
}, [c("span", ra, "+" + j(l.value.length), 1)], 10, na)]),
|
|
2063
2066
|
_: 1
|
|
2064
|
-
})], 2)) : o("", !0)], 10,
|
|
2067
|
+
})], 2)) : o("", !0)], 10, ta));
|
|
2065
2068
|
}
|
|
2066
|
-
}),
|
|
2069
|
+
}), ca = { class: "flex min-w-0 flex-col gap-1" }, la = {
|
|
2067
2070
|
key: 1,
|
|
2068
|
-
class: "text-sm text-
|
|
2069
|
-
},
|
|
2071
|
+
class: "text-sm text-ink/65"
|
|
2072
|
+
}, ua = {
|
|
2070
2073
|
key: 0,
|
|
2071
2074
|
class: "flex shrink-0 items-center gap-2"
|
|
2072
|
-
},
|
|
2075
|
+
}, da = /* @__PURE__ */ f({
|
|
2073
2076
|
__name: "Card",
|
|
2074
2077
|
props: {
|
|
2075
2078
|
title: {},
|
|
@@ -2098,30 +2101,30 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
2098
2101
|
};
|
|
2099
2102
|
return (i, f) => (w(), a(k(r.value), {
|
|
2100
2103
|
"aria-labelledby": e.title ? n : void 0,
|
|
2101
|
-
class: y(M(X)("@container flex flex-col rounded-lg border border-
|
|
2104
|
+
class: y(M(X)("@container flex flex-col rounded-lg border border-ink/10 bg-surface text-ink shadow-xs", e.padding === "none" && "overflow-clip", t.class))
|
|
2102
2105
|
}, {
|
|
2103
2106
|
default: V(() => [c("div", { class: y(M(X)("flex min-w-0 flex-1 flex-col gap-4", l[e.padding], e.ui?.body)) }, [e.title || e.description || i.$slots.header || i.$slots.actions ? (w(), s("div", {
|
|
2104
2107
|
key: 0,
|
|
2105
2108
|
class: y(M(X)("flex items-start justify-between gap-3", e.padding === "none" && "px-4 pt-4 sm:px-6 sm:pt-6", e.ui?.header))
|
|
2106
|
-
}, [O(i.$slots, "header", {}, () => [c("div",
|
|
2109
|
+
}, [O(i.$slots, "header", {}, () => [c("div", ca, [e.title ? (w(), a(k(`h${e.headingLevel}`), {
|
|
2107
2110
|
key: 0,
|
|
2108
2111
|
id: n,
|
|
2109
2112
|
class: "text-base font-bold"
|
|
2110
2113
|
}, {
|
|
2111
2114
|
default: V(() => [u(j(e.title), 1)]),
|
|
2112
2115
|
_: 1
|
|
2113
|
-
})) : o("", !0), e.description ? (w(), s("p",
|
|
2116
|
+
})) : o("", !0), e.description ? (w(), s("p", la, j(e.description), 1)) : o("", !0)])]), i.$slots.actions ? (w(), s("div", ua, [O(i.$slots, "actions")])) : o("", !0)], 2)) : o("", !0), O(i.$slots, "default")], 2), i.$slots.footer ? (w(), s("div", {
|
|
2114
2117
|
key: 0,
|
|
2115
|
-
class: y(M(X)("flex flex-wrap justify-end gap-2 border-t border-
|
|
2118
|
+
class: y(M(X)("flex flex-wrap justify-end gap-2 border-t border-ink/10", d[e.padding], e.ui?.footer))
|
|
2116
2119
|
}, [O(i.$slots, "footer")], 2)) : o("", !0)]),
|
|
2117
2120
|
_: 3
|
|
2118
2121
|
}, 8, ["aria-labelledby", "class"]));
|
|
2119
2122
|
}
|
|
2120
|
-
}),
|
|
2123
|
+
}), fa = { class: "min-w-0 truncate" }, pa = [
|
|
2121
2124
|
"tabindex",
|
|
2122
2125
|
"aria-label",
|
|
2123
2126
|
"disabled"
|
|
2124
|
-
],
|
|
2127
|
+
], ma = /* @__PURE__ */ f({
|
|
2125
2128
|
__name: "Chip",
|
|
2126
2129
|
props: {
|
|
2127
2130
|
size: { default: "md" },
|
|
@@ -2142,7 +2145,7 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
2142
2145
|
},
|
|
2143
2146
|
emits: ["remove"],
|
|
2144
2147
|
setup(e, { emit: t }) {
|
|
2145
|
-
let { t: n } = K(), r = e, i = t, a = ["inline-flex max-w-full shrink-0 items-center whitespace-nowrap rounded border border-
|
|
2148
|
+
let { t: n } = K(), r = e, i = t, a = ["inline-flex max-w-full shrink-0 items-center whitespace-nowrap rounded border border-ink/10 bg-ink/5 text-ink", "[&_svg]:shrink-0"], l = {
|
|
2146
2149
|
sm: "h-5 gap-1 px-1.5 text-xs [&_svg]:size-3",
|
|
2147
2150
|
md: "h-6 gap-1 px-2 text-sm [&_svg]:size-3.5"
|
|
2148
2151
|
}, u = {
|
|
@@ -2154,19 +2157,19 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
2154
2157
|
};
|
|
2155
2158
|
return (t, p) => (w(), s("span", { class: y(M(X)(a, l[e.size], e.removable && u[e.size], e.disabled && "opacity-40", r.class)) }, [
|
|
2156
2159
|
O(t.$slots, "leading"),
|
|
2157
|
-
c("span",
|
|
2160
|
+
c("span", fa, [O(t.$slots, "default")]),
|
|
2158
2161
|
e.removable ? (w(), s("button", {
|
|
2159
2162
|
key: 0,
|
|
2160
2163
|
type: "button",
|
|
2161
2164
|
tabindex: e.removeFocusable ? void 0 : -1,
|
|
2162
2165
|
"aria-label": e.removeLabel ?? M(n)("ui.chip.remove"),
|
|
2163
2166
|
disabled: e.disabled,
|
|
2164
|
-
class: y(M(X)("flex shrink-0 cursor-pointer items-center justify-center rounded-sm transition", "not-disabled:hover:bg-
|
|
2167
|
+
class: y(M(X)("flex shrink-0 cursor-pointer items-center justify-center rounded-sm transition", "not-disabled:hover:bg-hover not-disabled:active:bg-pressed disabled:cursor-not-allowed", "outline-2 outline-offset-0 outline-transparent focus-visible:outline-focus", f[e.size])),
|
|
2165
2168
|
onClick: p[0] ||= (e) => i("remove")
|
|
2166
|
-
}, [d(M(Ve), { "aria-hidden": "true" })], 10,
|
|
2169
|
+
}, [d(M(Ve), { "aria-hidden": "true" })], 10, pa)) : o("", !0)
|
|
2167
2170
|
], 2));
|
|
2168
2171
|
}
|
|
2169
|
-
}),
|
|
2172
|
+
}), ha = ["role", "aria-label"], ga = { class: "shrink-0" }, _a = /* @__PURE__ */ f({
|
|
2170
2173
|
__name: "Divider",
|
|
2171
2174
|
props: {
|
|
2172
2175
|
orientation: { default: "horizontal" },
|
|
@@ -2189,22 +2192,22 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
2189
2192
|
key: 0,
|
|
2190
2193
|
role: e.decorative ? "presentation" : "separator",
|
|
2191
2194
|
"aria-label": e.decorative ? void 0 : e.label,
|
|
2192
|
-
class: y(M(X)("flex w-full items-center gap-3 text-xs text-
|
|
2195
|
+
class: y(M(X)("flex w-full items-center gap-3 text-xs text-ink/65", t.class))
|
|
2193
2196
|
}, [
|
|
2194
2197
|
r[0] ||= c("span", {
|
|
2195
2198
|
"aria-hidden": "true",
|
|
2196
|
-
class: "h-px flex-1 bg-
|
|
2199
|
+
class: "h-px flex-1 bg-ink/10"
|
|
2197
2200
|
}, null, -1),
|
|
2198
|
-
c("span",
|
|
2201
|
+
c("span", ga, [O(n.$slots, "default", {}, () => [u(j(e.label), 1)])]),
|
|
2199
2202
|
r[1] ||= c("span", {
|
|
2200
2203
|
"aria-hidden": "true",
|
|
2201
|
-
class: "h-px flex-1 bg-
|
|
2204
|
+
class: "h-px flex-1 bg-ink/10"
|
|
2202
2205
|
}, null, -1)
|
|
2203
|
-
], 10,
|
|
2206
|
+
], 10, ha)) : (w(), a(M(on), {
|
|
2204
2207
|
key: 1,
|
|
2205
2208
|
orientation: e.orientation,
|
|
2206
2209
|
decorative: e.decorative,
|
|
2207
|
-
class: y(M(X)("shrink-0 bg-
|
|
2210
|
+
class: y(M(X)("shrink-0 bg-ink/10", e.orientation === "horizontal" ? "h-px w-full" : "w-px self-stretch", t.class))
|
|
2208
2211
|
}, null, 8, [
|
|
2209
2212
|
"orientation",
|
|
2210
2213
|
"decorative",
|
|
@@ -2213,17 +2216,17 @@ var ii = ["data-collapsed"], ai = ["aria-label"], oi = ["data-level"], si = {
|
|
|
2213
2216
|
}
|
|
2214
2217
|
});
|
|
2215
2218
|
// src/components/ChangeIndicator/changeIndicator.ts
|
|
2216
|
-
function
|
|
2219
|
+
function va(e, t) {
|
|
2217
2220
|
return t ? `${e} ${t}` : String(e);
|
|
2218
2221
|
}
|
|
2219
|
-
function
|
|
2222
|
+
function ya(e, t) {
|
|
2220
2223
|
return String(e) !== String(t);
|
|
2221
2224
|
}
|
|
2222
2225
|
// src/components/ChangeIndicator/ChangeIndicator.vue?vue&type=script&setup=true&lang.ts
|
|
2223
|
-
var
|
|
2226
|
+
var ba = { class: "sr-only" }, xa = {
|
|
2224
2227
|
"aria-hidden": "true",
|
|
2225
|
-
class: "font-normal line-through decoration-blue/60"
|
|
2226
|
-
},
|
|
2228
|
+
class: "font-normal line-through decoration-blue-fg/60"
|
|
2229
|
+
}, Sa = { "aria-hidden": "true" }, Ca = /* @__PURE__ */ f({
|
|
2227
2230
|
__name: "ChangeIndicator",
|
|
2228
2231
|
props: {
|
|
2229
2232
|
from: {},
|
|
@@ -2238,24 +2241,24 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2238
2241
|
] }
|
|
2239
2242
|
},
|
|
2240
2243
|
setup(e) {
|
|
2241
|
-
let { t } = K(), r = e, a = i(() =>
|
|
2244
|
+
let { t } = K(), r = e, a = i(() => ya(r.from, r.to)), l = i(() => t("ui.changeIndicator.changed", {
|
|
2242
2245
|
from: r.from,
|
|
2243
|
-
to:
|
|
2246
|
+
to: va(r.to, r.unit)
|
|
2244
2247
|
}));
|
|
2245
2248
|
return (t, i) => a.value ? (w(), s("span", {
|
|
2246
2249
|
key: 0,
|
|
2247
|
-
class: y(M(X)("inline-flex items-center gap-1 whitespace-nowrap rounded-full border border-blue/30 bg-blue/10 px-2 text-xs font-bold text-blue", r.class))
|
|
2250
|
+
class: y(M(X)("inline-flex items-center gap-1 whitespace-nowrap rounded-full border border-blue-fg/30 bg-blue-fg/10 px-2 text-xs font-bold text-blue-fg", r.class))
|
|
2248
2251
|
}, [
|
|
2249
|
-
c("span",
|
|
2250
|
-
c("span",
|
|
2252
|
+
c("span", ba, j(l.value), 1),
|
|
2253
|
+
c("span", xa, j(e.from), 1),
|
|
2251
2254
|
d(M(re), {
|
|
2252
2255
|
"aria-hidden": "true",
|
|
2253
2256
|
class: "size-3 shrink-0"
|
|
2254
2257
|
}),
|
|
2255
|
-
c("span",
|
|
2258
|
+
c("span", Sa, [u(j(e.to), 1), e.unit ? (w(), s(n, { key: 0 }, [u(j(e.unit), 1)], 64)) : o("", !0)])
|
|
2256
2259
|
], 2)) : o("", !0);
|
|
2257
2260
|
}
|
|
2258
|
-
}),
|
|
2261
|
+
}), wa = ["aria-label"], Ta = { class: "max-w-64 px-3 py-2 text-xs" }, Ea = /* @__PURE__ */ f({
|
|
2259
2262
|
__name: "InfoTip",
|
|
2260
2263
|
props: {
|
|
2261
2264
|
text: {},
|
|
@@ -2270,27 +2273,27 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2270
2273
|
},
|
|
2271
2274
|
setup(e) {
|
|
2272
2275
|
let t = e, n = `${P()}-description`;
|
|
2273
|
-
return (r, i) => (w(), a(
|
|
2276
|
+
return (r, i) => (w(), a(tr, {
|
|
2274
2277
|
mode: "hover",
|
|
2275
2278
|
content: {
|
|
2276
2279
|
side: "top",
|
|
2277
2280
|
sideOffset: 6
|
|
2278
2281
|
}
|
|
2279
2282
|
}, {
|
|
2280
|
-
content: V(() => [c("p",
|
|
2283
|
+
content: V(() => [c("p", Ta, j(e.text), 1)]),
|
|
2281
2284
|
default: V(() => [c("button", {
|
|
2282
2285
|
type: "button",
|
|
2283
2286
|
"aria-label": e.label,
|
|
2284
2287
|
"aria-describedby": n,
|
|
2285
|
-
class: y(M(X)("inline-flex shrink-0 rounded-full p-0.5 align-middle text-
|
|
2288
|
+
class: y(M(X)("inline-flex shrink-0 rounded-full p-0.5 align-middle text-ink transition hover:bg-hover data-[state=open]:bg-selected", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus [&_svg]:size-4", t.class))
|
|
2286
2289
|
}, [d(M(ye), { "aria-hidden": "true" }), c("span", {
|
|
2287
2290
|
id: n,
|
|
2288
2291
|
hidden: ""
|
|
2289
|
-
}, j(e.text), 1)], 10,
|
|
2292
|
+
}, j(e.text), 1)], 10, wa)]),
|
|
2290
2293
|
_: 1
|
|
2291
2294
|
}));
|
|
2292
2295
|
}
|
|
2293
|
-
}),
|
|
2296
|
+
}), Da = { class: "overflow-hidden" }, Oa = ["id"], ka = /* @__PURE__ */ f({
|
|
2294
2297
|
__name: "FieldMessage",
|
|
2295
2298
|
props: {
|
|
2296
2299
|
id: {},
|
|
@@ -2303,9 +2306,9 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2303
2306
|
e && (l.value = e, d.value = t);
|
|
2304
2307
|
});
|
|
2305
2308
|
let f = {
|
|
2306
|
-
error: "text-red",
|
|
2307
|
-
success: "text-green",
|
|
2308
|
-
loading: "text-
|
|
2309
|
+
error: "text-red-fg",
|
|
2310
|
+
success: "text-green-fg",
|
|
2311
|
+
loading: "text-ink/65"
|
|
2309
2312
|
}, p = {
|
|
2310
2313
|
error: _e,
|
|
2311
2314
|
success: ve
|
|
@@ -2313,7 +2316,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2313
2316
|
return (t, i) => (w(), s(n, null, [c("div", {
|
|
2314
2317
|
"aria-hidden": "true",
|
|
2315
2318
|
class: y(M(X)("-mt-1.5 grid transition-[grid-template-rows,visibility] duration-150 ease-out motion-reduce:transition-none", r.value ? "grid-rows-[1fr]" : "invisible grid-rows-[0fr] delay-100"))
|
|
2316
|
-
}, [c("div",
|
|
2319
|
+
}, [c("div", Da, [c("p", { class: y(M(X)("flex items-center gap-1 pt-1.5 text-xs transition-[translate,opacity,color] ease-out motion-reduce:transition-none [&_svg]:size-3.5 [&_svg]:shrink-0", d.value && f[d.value], r.value ? "duration-150 delay-100" : "-translate-y-1 opacity-0 duration-100")) }, [d.value === "loading" ? (w(), a(Gn, {
|
|
2317
2320
|
key: 0,
|
|
2318
2321
|
size: "sm",
|
|
2319
2322
|
class: "size-3.5"
|
|
@@ -2321,12 +2324,12 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2321
2324
|
id: e.id,
|
|
2322
2325
|
"aria-live": "polite",
|
|
2323
2326
|
class: "sr-only"
|
|
2324
|
-
}, j(e.text), 9,
|
|
2327
|
+
}, j(e.text), 9, Oa)], 64));
|
|
2325
2328
|
}
|
|
2326
|
-
}),
|
|
2329
|
+
}), Aa = { class: "flex items-center gap-1" }, ja = ["hidden"], Ma = {
|
|
2327
2330
|
key: 0,
|
|
2328
2331
|
class: "col-start-2 row-start-1 flex h-5 items-center text-xs"
|
|
2329
|
-
},
|
|
2332
|
+
}, Na = "input, textarea, [role=\"spinbutton\"], [contenteditable=\"true\"]", Pa = /* @__PURE__ */ f({
|
|
2330
2333
|
__name: "FormField",
|
|
2331
2334
|
props: {
|
|
2332
2335
|
label: {},
|
|
@@ -2349,7 +2352,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2349
2352
|
let { t } = K(), n = e, r = P(), l = `${r}-control`, u = `${r}-label`, f = `${r}-helper`, p = `${r}-status`, m = i(() => n.errorText ? "error" : n.status), h = i(() => n.errorText || n.statusText), g = i(() => [n.helper && f, h.value && p].filter(Boolean).join(" ") || void 0);
|
|
2350
2353
|
function _(e) {
|
|
2351
2354
|
let t = e.target;
|
|
2352
|
-
n.disabled || t.closest(`${
|
|
2355
|
+
n.disabled || t.closest(`${Na}, button`) || (e.preventDefault(), e.currentTarget.querySelector(Na)?.focus());
|
|
2353
2356
|
}
|
|
2354
2357
|
function v() {
|
|
2355
2358
|
let e = document.getElementById(l);
|
|
@@ -2357,7 +2360,8 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2357
2360
|
}
|
|
2358
2361
|
let b = [
|
|
2359
2362
|
"flex items-center gap-2 px-3 py-2 text-sm pointer-coarse:text-base [&_svg]:size-4 [&_svg]:shrink-0 [&_svg]:opacity-70",
|
|
2360
|
-
"
|
|
2363
|
+
"[&>svg:first-child]:-ml-0.5 [&>svg:last-child]:-mr-0.5",
|
|
2364
|
+
"bg-surface text-ink border border-ink/45 rounded shadow-xs cursor-text transition",
|
|
2361
2365
|
"outline-2 outline-offset-1 outline-transparent forced-colors:not-has-focus-visible:outline-0",
|
|
2362
2366
|
"has-focus-visible:outline-focus",
|
|
2363
2367
|
"has-[[data-pointer-focus]]:outline-transparent!"
|
|
@@ -2366,13 +2370,13 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2366
2370
|
success: "border-green",
|
|
2367
2371
|
loading: ""
|
|
2368
2372
|
};
|
|
2369
|
-
return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-
|
|
2370
|
-
c("div", { class: y(M(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div",
|
|
2373
|
+
return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-ink", n.class)) }, [c("div", { class: y(M(X)("grid grid-cols-[minmax(0,1fr)_auto]", !e.hideLabel && "gap-y-1.5", r.$slots["label-trailing"] && "gap-x-3")) }, [
|
|
2374
|
+
c("div", { class: y(M(X)("col-start-1 row-start-1 flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", Aa, [c("label", {
|
|
2371
2375
|
id: u,
|
|
2372
2376
|
for: l,
|
|
2373
2377
|
class: "text-sm",
|
|
2374
2378
|
onClick: v
|
|
2375
|
-
}, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(
|
|
2379
|
+
}, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ea, {
|
|
2376
2380
|
key: 0,
|
|
2377
2381
|
text: e.helper,
|
|
2378
2382
|
label: M(t)("ui.formField.about", { label: e.label })
|
|
@@ -2380,8 +2384,8 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2380
2384
|
key: 0,
|
|
2381
2385
|
id: f,
|
|
2382
2386
|
hidden: e.helperPlacement === "icon",
|
|
2383
|
-
class: "text-xs text-
|
|
2384
|
-
}, j(e.helper), 9,
|
|
2387
|
+
class: "text-xs text-ink/65"
|
|
2388
|
+
}, j(e.helper), 9, ja)) : o("", !0)], 2),
|
|
2385
2389
|
c("div", {
|
|
2386
2390
|
class: y(M(X)(b, "col-span-2 row-start-2", m.value && x[m.value], e.disabled && "opacity-40 cursor-not-allowed")),
|
|
2387
2391
|
onPointerdown: _
|
|
@@ -2395,20 +2399,20 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2395
2399
|
}),
|
|
2396
2400
|
O(r.$slots, "trailing")
|
|
2397
2401
|
], 34),
|
|
2398
|
-
r.$slots["label-trailing"] ? (w(), s("div",
|
|
2399
|
-
], 2), d(
|
|
2402
|
+
r.$slots["label-trailing"] ? (w(), s("div", Ma, [O(r.$slots, "label-trailing")])) : o("", !0)
|
|
2403
|
+
], 2), d(ka, {
|
|
2400
2404
|
id: p,
|
|
2401
2405
|
status: m.value,
|
|
2402
2406
|
text: h.value
|
|
2403
2407
|
}, null, 8, ["status", "text"])], 2));
|
|
2404
2408
|
}
|
|
2405
|
-
}),
|
|
2409
|
+
}), Fa = [
|
|
2406
2410
|
"id",
|
|
2407
2411
|
"spellcheck",
|
|
2408
2412
|
"disabled",
|
|
2409
2413
|
"aria-invalid",
|
|
2410
2414
|
"aria-describedby"
|
|
2411
|
-
],
|
|
2415
|
+
], Ia = /* @__PURE__ */ f({
|
|
2412
2416
|
inheritAttrs: !1,
|
|
2413
2417
|
__name: "Input",
|
|
2414
2418
|
props: /*@__PURE__*/ g({
|
|
@@ -2440,7 +2444,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2440
2444
|
if (n.maxLength !== void 0 && e > n.maxLength) return t("ui.input.maxLength", { count: n.maxLength });
|
|
2441
2445
|
if (o.value && n.minLength !== void 0 && e > 0 && e < n.minLength) return t("ui.input.minLength", { count: n.minLength });
|
|
2442
2446
|
}), u = i(() => n.status ?? (s.value ? "error" : void 0)), d = i(() => n.statusText ?? s.value);
|
|
2443
|
-
return (t, i) => (w(), a(
|
|
2447
|
+
return (t, i) => (w(), a(Pa, {
|
|
2444
2448
|
label: e.label,
|
|
2445
2449
|
helper: e.helper,
|
|
2446
2450
|
"helper-placement": e.helperPlacement,
|
|
@@ -2459,9 +2463,9 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2459
2463
|
disabled: e.disabled,
|
|
2460
2464
|
"aria-invalid": s,
|
|
2461
2465
|
"aria-describedby": a,
|
|
2462
|
-
class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-
|
|
2466
|
+
class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-ink/55 disabled:cursor-not-allowed",
|
|
2463
2467
|
onBlur: i[1] ||= (e) => o.value = !0
|
|
2464
|
-
}), null, 16,
|
|
2468
|
+
}), null, 16, Fa), [[L, r.value]])]),
|
|
2465
2469
|
_: 2
|
|
2466
2470
|
}, [t.$slots.leading ? {
|
|
2467
2471
|
name: "leading",
|
|
@@ -2483,7 +2487,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2483
2487
|
"class"
|
|
2484
2488
|
]));
|
|
2485
2489
|
}
|
|
2486
|
-
}),
|
|
2490
|
+
}), La = "-ml-3 rounded-l border-r border-ink/10", Ra = "-mr-3 rounded-r border-l border-ink/10", za = /* @__PURE__ */ f({
|
|
2487
2491
|
inheritAttrs: !1,
|
|
2488
2492
|
__name: "InputNumber",
|
|
2489
2493
|
props: /*@__PURE__*/ g({
|
|
@@ -2514,11 +2518,11 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2514
2518
|
emits: ["update:modelValue"],
|
|
2515
2519
|
setup(e) {
|
|
2516
2520
|
let t = e, n = F(e, "modelValue"), r = i(() => n.value === void 0 ? void 0 : new Intl.NumberFormat(t.locale, t.formatOptions).format(n.value)), o = [
|
|
2517
|
-
"flex w-9 shrink-0 -my-2 self-stretch items-center justify-center bg-
|
|
2518
|
-
"not-disabled:hover:
|
|
2521
|
+
"flex w-9 shrink-0 -my-2 self-stretch items-center justify-center bg-surface cursor-pointer transition",
|
|
2522
|
+
"not-disabled:hover:bg-surface-hover not-disabled:active:bg-surface-pressed [&_svg]:opacity-100!",
|
|
2519
2523
|
"disabled:cursor-not-allowed disabled:[&_svg]:opacity-40!"
|
|
2520
2524
|
];
|
|
2521
|
-
return (t, i) => (w(), a(
|
|
2525
|
+
return (t, i) => (w(), a(Pa, {
|
|
2522
2526
|
label: e.label,
|
|
2523
2527
|
helper: e.helper,
|
|
2524
2528
|
"helper-placement": e.helperPlacement,
|
|
@@ -2542,7 +2546,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2542
2546
|
class: "contents"
|
|
2543
2547
|
}, {
|
|
2544
2548
|
default: V(() => [
|
|
2545
|
-
d(M(At), { class: y([o,
|
|
2549
|
+
d(M(At), { class: y([o, La]) }, {
|
|
2546
2550
|
default: V(() => [d(M(je))]),
|
|
2547
2551
|
_: 1
|
|
2548
2552
|
}, 8, ["class"]),
|
|
@@ -2550,13 +2554,13 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2550
2554
|
"aria-invalid": c,
|
|
2551
2555
|
"aria-describedby": s,
|
|
2552
2556
|
"aria-valuetext": r.value,
|
|
2553
|
-
class: "h-5 min-w-0 flex-1 bg-transparent text-center tabular-nums outline-none placeholder:text-
|
|
2557
|
+
class: "h-5 min-w-0 flex-1 bg-transparent text-center tabular-nums outline-none placeholder:text-ink/55 disabled:cursor-not-allowed"
|
|
2554
2558
|
}), null, 16, [
|
|
2555
2559
|
"aria-invalid",
|
|
2556
2560
|
"aria-describedby",
|
|
2557
2561
|
"aria-valuetext"
|
|
2558
2562
|
]),
|
|
2559
|
-
d(M(jt), { class: y([o,
|
|
2563
|
+
d(M(jt), { class: y([o, Ra]) }, {
|
|
2560
2564
|
default: V(() => [d(M(Fe))]),
|
|
2561
2565
|
_: 1
|
|
2562
2566
|
}, 8, ["class"])
|
|
@@ -2585,26 +2589,26 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2585
2589
|
"class"
|
|
2586
2590
|
]));
|
|
2587
2591
|
}
|
|
2588
|
-
}),
|
|
2592
|
+
}), Ba = { class: "flex items-center" }, Va = ["aria-label", "disabled"], Ha = ["aria-label", "disabled"], Ua = {
|
|
2589
2593
|
key: 2,
|
|
2590
2594
|
class: "px-1.5 py-1 text-sm tabular-nums"
|
|
2591
|
-
},
|
|
2595
|
+
}, Wa = {
|
|
2592
2596
|
key: 0,
|
|
2593
2597
|
class: "mt-3 grid w-56 grid-cols-3 gap-1"
|
|
2594
|
-
},
|
|
2598
|
+
}, Ga = [
|
|
2595
2599
|
"aria-current",
|
|
2596
2600
|
"aria-pressed",
|
|
2597
2601
|
"disabled",
|
|
2598
2602
|
"onClick"
|
|
2599
|
-
],
|
|
2603
|
+
], Ka = {
|
|
2600
2604
|
key: 1,
|
|
2601
2605
|
class: "mt-3 grid w-56 grid-cols-3 gap-1"
|
|
2602
|
-
},
|
|
2606
|
+
}, qa = [
|
|
2603
2607
|
"aria-current",
|
|
2604
2608
|
"aria-pressed",
|
|
2605
2609
|
"disabled",
|
|
2606
2610
|
"onClick"
|
|
2607
|
-
],
|
|
2611
|
+
], Ja = /* @__PURE__ */ f({
|
|
2608
2612
|
__name: "Calendar",
|
|
2609
2613
|
props: /*@__PURE__*/ g({
|
|
2610
2614
|
min: {},
|
|
@@ -2681,7 +2685,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2681
2685
|
return v.value.year === t.year && e === t.month;
|
|
2682
2686
|
}, q = (e) => e === An(Tn()).year, J = [
|
|
2683
2687
|
"inline-flex items-center gap-0.5 rounded px-1.5 py-1 text-sm cursor-pointer transition",
|
|
2684
|
-
"hover:bg-
|
|
2688
|
+
"hover:bg-hover active:bg-pressed [&_svg]:size-3.5",
|
|
2685
2689
|
"disabled:cursor-not-allowed disabled:hover:bg-transparent",
|
|
2686
2690
|
"outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
|
|
2687
2691
|
], te = [
|
|
@@ -2692,18 +2696,18 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2692
2696
|
...te,
|
|
2693
2697
|
"aria-[current=date]:after:bottom-2",
|
|
2694
2698
|
"flex h-12 items-center justify-center rounded text-sm tabular-nums cursor-pointer transition",
|
|
2695
|
-
"hover:bg-
|
|
2699
|
+
"hover:bg-hover",
|
|
2696
2700
|
"aria-pressed:bg-primary aria-pressed:text-white aria-pressed:hover:bg-primary",
|
|
2697
|
-
"disabled:cursor-not-allowed disabled:text-
|
|
2701
|
+
"disabled:cursor-not-allowed disabled:text-ink/25 disabled:hover:bg-transparent",
|
|
2698
2702
|
"outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
|
|
2699
2703
|
], re = [
|
|
2700
2704
|
...te,
|
|
2701
2705
|
"aria-[current=date]:after:bottom-0.5",
|
|
2702
2706
|
"flex size-8 items-center justify-center rounded text-sm tabular-nums cursor-pointer transition",
|
|
2703
|
-
"hover:bg-
|
|
2704
|
-
"data-[outside-view]:text-
|
|
2707
|
+
"hover:bg-hover",
|
|
2708
|
+
"data-[outside-view]:text-ink/55",
|
|
2705
2709
|
"data-[selected]:bg-primary data-[selected]:text-white data-[selected]:hover:bg-primary",
|
|
2706
|
-
"data-[disabled]:cursor-not-allowed data-[disabled]:text-
|
|
2710
|
+
"data-[disabled]:cursor-not-allowed data-[disabled]:text-ink/25 data-[disabled]:hover:bg-transparent",
|
|
2707
2711
|
"data-[unavailable]:line-through",
|
|
2708
2712
|
"outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus"
|
|
2709
2713
|
];
|
|
@@ -2717,7 +2721,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2717
2721
|
"initial-focus": e.initialFocus,
|
|
2718
2722
|
"week-starts-on": 1,
|
|
2719
2723
|
"fixed-weeks": "",
|
|
2720
|
-
class: y(M(X)("w-fit text-
|
|
2724
|
+
class: y(M(X)("w-fit text-ink", e.disabled && "opacity-40", r.class)),
|
|
2721
2725
|
"onUpdate:modelValue": g,
|
|
2722
2726
|
"onUpdate:placeholder": x
|
|
2723
2727
|
}, {
|
|
@@ -2750,21 +2754,21 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2750
2754
|
default: V(() => [d(M(pe))]),
|
|
2751
2755
|
_: 1
|
|
2752
2756
|
}, 8, ["aria-label", "disabled"])),
|
|
2753
|
-
c("div",
|
|
2757
|
+
c("div", Ba, [_.value === "days" ? (w(), s("button", {
|
|
2754
2758
|
key: 0,
|
|
2755
2759
|
type: "button",
|
|
2756
2760
|
class: y(J),
|
|
2757
2761
|
"aria-label": M(t)("ui.calendar.chooseMonth"),
|
|
2758
2762
|
disabled: e.disabled,
|
|
2759
2763
|
onClick: k
|
|
2760
|
-
}, [u(j(C.value) + " ", 1), d(M(fe))], 8,
|
|
2764
|
+
}, [u(j(C.value) + " ", 1), d(M(fe))], 8, Va)) : o("", !0), _.value === "years" ? (w(), s("span", Ua, j(O.value[0]) + " – " + j(O.value[O.value.length - 1]), 1)) : (w(), s("button", {
|
|
2761
2765
|
key: 1,
|
|
2762
2766
|
type: "button",
|
|
2763
2767
|
class: y(J),
|
|
2764
2768
|
"aria-label": M(t)("ui.calendar.chooseYear"),
|
|
2765
2769
|
disabled: e.disabled,
|
|
2766
2770
|
onClick: N
|
|
2767
|
-
}, [u(j(v.value.year) + " ", 1), d(M(fe))], 8,
|
|
2771
|
+
}, [u(j(v.value.year) + " ", 1), d(M(fe))], 8, Ha))]),
|
|
2768
2772
|
_.value === "days" ? (w(), a(M(Xe), {
|
|
2769
2773
|
key: 2,
|
|
2770
2774
|
"as-child": ""
|
|
@@ -2794,7 +2798,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2794
2798
|
]),
|
|
2795
2799
|
_: 1
|
|
2796
2800
|
}),
|
|
2797
|
-
_.value === "months" ? (w(), s("div",
|
|
2801
|
+
_.value === "months" ? (w(), s("div", Wa, [(w(!0), s(n, null, D(S.value, (e, t) => (w(), s("button", {
|
|
2798
2802
|
key: e,
|
|
2799
2803
|
type: "button",
|
|
2800
2804
|
class: y(ne),
|
|
@@ -2802,7 +2806,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2802
2806
|
"aria-pressed": ee(t + 1),
|
|
2803
2807
|
disabled: R(t + 1),
|
|
2804
2808
|
onClick: (e) => P(t + 1)
|
|
2805
|
-
}, j(e), 9,
|
|
2809
|
+
}, j(e), 9, Ga))), 128))])) : _.value === "years" ? (w(), s("div", Ka, [(w(!0), s(n, null, D(O.value, (e) => (w(), s("button", {
|
|
2806
2810
|
key: e,
|
|
2807
2811
|
type: "button",
|
|
2808
2812
|
class: y(ne),
|
|
@@ -2810,7 +2814,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2810
2814
|
"aria-pressed": W(e),
|
|
2811
2815
|
disabled: B(e),
|
|
2812
2816
|
onClick: (t) => I(e)
|
|
2813
|
-
}, j(e), 9,
|
|
2817
|
+
}, j(e), 9, qa))), 128))])) : o("", !0),
|
|
2814
2818
|
(w(!0), s(n, null, D(_.value === "days" ? i : [], (e) => (w(), a(M(We), {
|
|
2815
2819
|
key: e.value.toString(),
|
|
2816
2820
|
class: "mt-3 border-collapse select-none"
|
|
@@ -2819,7 +2823,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2819
2823
|
default: V(() => [d(M(qe), { class: "flex" }, {
|
|
2820
2824
|
default: V(() => [(w(!0), s(n, null, D(r, (e) => (w(), a(M(Je), {
|
|
2821
2825
|
key: e,
|
|
2822
|
-
class: "w-8 pb-1 text-xs font-normal text-
|
|
2826
|
+
class: "w-8 pb-1 text-xs font-normal text-ink/55"
|
|
2823
2827
|
}, {
|
|
2824
2828
|
default: V(() => [u(j(e), 1)]),
|
|
2825
2829
|
_: 2
|
|
@@ -2867,7 +2871,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2867
2871
|
"class"
|
|
2868
2872
|
]));
|
|
2869
2873
|
}
|
|
2870
|
-
}),
|
|
2874
|
+
}), Ya = {
|
|
2871
2875
|
monday: 1,
|
|
2872
2876
|
mon: 1,
|
|
2873
2877
|
tuesday: 2,
|
|
@@ -2886,7 +2890,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2886
2890
|
sat: 6,
|
|
2887
2891
|
sunday: 7,
|
|
2888
2892
|
sun: 7
|
|
2889
|
-
}, Q = `(${Object.keys(
|
|
2893
|
+
}, Q = `(${Object.keys(Ya).join("|")})`, Xa = {
|
|
2890
2894
|
january: 1,
|
|
2891
2895
|
jan: 1,
|
|
2892
2896
|
february: 2,
|
|
@@ -2911,7 +2915,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2911
2915
|
nov: 11,
|
|
2912
2916
|
december: 12,
|
|
2913
2917
|
dec: 12
|
|
2914
|
-
},
|
|
2918
|
+
}, Za = `(${Object.keys(Xa).sort((e, t) => t.length - e.length).join("|")})`, Qa = {
|
|
2915
2919
|
a: 1,
|
|
2916
2920
|
an: 1,
|
|
2917
2921
|
one: 1,
|
|
@@ -2935,7 +2939,7 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2935
2939
|
nineteen: 19,
|
|
2936
2940
|
twenty: 20,
|
|
2937
2941
|
thirty: 30
|
|
2938
|
-
},
|
|
2942
|
+
}, $a = `(\\d+|${Object.keys(Qa).join("|")})`, eo = "(day|week|fortnight|month|year)s?", to = {
|
|
2939
2943
|
first: 1,
|
|
2940
2944
|
second: 2,
|
|
2941
2945
|
third: 3,
|
|
@@ -2957,37 +2961,37 @@ var Sa = { class: "sr-only" }, Ca = {
|
|
|
2957
2961
|
nineteenth: 19,
|
|
2958
2962
|
twentieth: 20,
|
|
2959
2963
|
thirtieth: 30
|
|
2960
|
-
},
|
|
2961
|
-
function
|
|
2964
|
+
}, no = Object.keys(to).join("|");
|
|
2965
|
+
function ro(e) {
|
|
2962
2966
|
return new Date(e.year, e.month - 1, e.day).getDay() || 7;
|
|
2963
2967
|
}
|
|
2964
|
-
function
|
|
2965
|
-
return e.subtract({ days:
|
|
2968
|
+
function io(e) {
|
|
2969
|
+
return e.subtract({ days: ro(e) - 1 });
|
|
2966
2970
|
}
|
|
2967
2971
|
function $(e, t, n) {
|
|
2968
2972
|
if (!Number.isInteger(e) || t < 1 || t > 12 || n < 1) return;
|
|
2969
2973
|
let r = new Cn(e, t, 1);
|
|
2970
2974
|
if (!(n > r.calendar.getDaysInMonth(r))) return new Cn(e, t, n);
|
|
2971
2975
|
}
|
|
2972
|
-
function
|
|
2976
|
+
function ao(e, t, n, r) {
|
|
2973
2977
|
if (r === -1) {
|
|
2974
2978
|
let r = wn(new Cn(e, t, 1));
|
|
2975
|
-
return r.subtract({ days: (
|
|
2979
|
+
return r.subtract({ days: (ro(r) - n + 7) % 7 });
|
|
2976
2980
|
}
|
|
2977
|
-
let i = new Cn(e, t, 1), a = i.add({ days: (n -
|
|
2981
|
+
let i = new Cn(e, t, 1), a = i.add({ days: (n - ro(i) + 7) % 7 + (r - 1) * 7 });
|
|
2978
2982
|
return a.month === t ? a : void 0;
|
|
2979
2983
|
}
|
|
2980
|
-
function
|
|
2984
|
+
function oo(e) {
|
|
2981
2985
|
let t = e % 19, n = Math.floor(e / 100), r = e % 100, i = Math.floor(n / 4), a = n % 4, o = Math.floor((n + 8) / 25), s = Math.floor((n - o + 1) / 3), c = (19 * t + n - i - s + 15) % 30, l = Math.floor(r / 4), u = r % 4, d = (32 + 2 * a + 2 * l - c - u) % 7, f = Math.floor((t + 11 * c + 22 * d) / 451), p = Math.floor((c + d - 7 * f + 114) / 31), m = (c + d - 7 * f + 114) % 31 + 1;
|
|
2982
2986
|
return new Cn(e, p, m);
|
|
2983
2987
|
}
|
|
2984
|
-
function
|
|
2988
|
+
function so(e, t) {
|
|
2985
2989
|
if (e.length === 4) return Number(e);
|
|
2986
2990
|
if (e.length !== 2) return NaN;
|
|
2987
2991
|
let n = Number(e);
|
|
2988
2992
|
return n <= t.year % 100 ? 2e3 + n : 1900 + n;
|
|
2989
2993
|
}
|
|
2990
|
-
var
|
|
2994
|
+
var co = [
|
|
2991
2995
|
["(?:christmas|xmas) eve", (e) => $(e, 12, 24)],
|
|
2992
2996
|
["(?:christmas|xmas)(?: day)?", (e) => $(e, 12, 25)],
|
|
2993
2997
|
["boxing day", (e) => $(e, 12, 26)],
|
|
@@ -2995,16 +2999,16 @@ var uo = [
|
|
|
2995
2999
|
["new years?(?: day)?", (e) => $(e, 1, 1)],
|
|
2996
3000
|
["valentines(?: day)?", (e) => $(e, 2, 14)],
|
|
2997
3001
|
["(?:st )?(?:patricks|paddys) day", (e) => $(e, 3, 17)],
|
|
2998
|
-
["good friday", (e) =>
|
|
2999
|
-
["easter monday", (e) =>
|
|
3000
|
-
["easter(?: sunday| day)?", (e) =>
|
|
3001
|
-
["(?:mothers day|mothering sunday)", (e) =>
|
|
3002
|
-
["fathers day", (e) =>
|
|
3002
|
+
["good friday", (e) => oo(e).subtract({ days: 2 })],
|
|
3003
|
+
["easter monday", (e) => oo(e).add({ days: 1 })],
|
|
3004
|
+
["easter(?: sunday| day)?", (e) => oo(e)],
|
|
3005
|
+
["(?:mothers day|mothering sunday)", (e) => oo(e).subtract({ weeks: 3 })],
|
|
3006
|
+
["fathers day", (e) => ao(e, 6, 7, 3)],
|
|
3003
3007
|
["halloween", (e) => $(e, 10, 31)],
|
|
3004
3008
|
["(?:bonfire night|guy fawkes(?: night| day)?)", (e) => $(e, 11, 5)],
|
|
3005
3009
|
["(?:remembrance|armistice) day", (e) => $(e, 11, 11)]
|
|
3006
3010
|
];
|
|
3007
|
-
function
|
|
3011
|
+
function lo(e, t, n) {
|
|
3008
3012
|
let r = e.filter((e) => !!e).sort((e, t) => e.compare(t));
|
|
3009
3013
|
return n === "future" ? r.find((e) => e.compare(t) >= 0) : n === "past" ? r.findLast((e) => e.compare(t) <= 0) : r.reduce((e, n) => {
|
|
3010
3014
|
if (!e) return n;
|
|
@@ -3012,14 +3016,14 @@ function fo(e, t, n) {
|
|
|
3012
3016
|
return r < i || r === i && n.compare(t) > 0 ? n : e;
|
|
3013
3017
|
}, void 0);
|
|
3014
3018
|
}
|
|
3015
|
-
function
|
|
3019
|
+
function uo(e, t, n, r, i) {
|
|
3016
3020
|
if (!e) return n.yearValue === void 0 ? r.add(t) : void 0;
|
|
3017
3021
|
switch (e.kind) {
|
|
3018
3022
|
case "date": return n.yearValue === void 0 ? e.date.add(t) : void 0;
|
|
3019
3023
|
case "yearless": return n.yearValue === void 0 ? n.year || t.years ? e.resolve(r.year + t.years)?.add({
|
|
3020
3024
|
...t,
|
|
3021
3025
|
years: 0
|
|
3022
|
-
}) :
|
|
3026
|
+
}) : lo(Array.from({ length: 9 }, (e, t) => r.year - 4 + t).map(e.resolve), r, i)?.add(t) : e.resolve(n.yearValue + t.years)?.add({
|
|
3023
3027
|
...t,
|
|
3024
3028
|
years: 0
|
|
3025
3029
|
});
|
|
@@ -3032,19 +3036,19 @@ function po(e, t, n, r, i) {
|
|
|
3032
3036
|
months: 0
|
|
3033
3037
|
});
|
|
3034
3038
|
}
|
|
3035
|
-
return
|
|
3039
|
+
return lo([
|
|
3036
3040
|
-1,
|
|
3037
3041
|
0,
|
|
3038
3042
|
1
|
|
3039
3043
|
].map((e) => On(r).add({ months: e })).map((t) => $(t.year, t.month, e.day)), r, i)?.add(t);
|
|
3040
3044
|
case "weekday": {
|
|
3041
3045
|
if (n.yearValue !== void 0) return;
|
|
3042
|
-
let a = (e.weekday -
|
|
3046
|
+
let a = (e.weekday - ro(r) + 7) % 7 || 7, o = (ro(r) - e.weekday + 7) % 7 || 7, s = r.add({ days: a }), c = r.subtract({ days: o });
|
|
3043
3047
|
return (i === "past" || i === "nearest" && o < a ? c : s).add(t);
|
|
3044
3048
|
}
|
|
3045
3049
|
}
|
|
3046
3050
|
}
|
|
3047
|
-
function
|
|
3051
|
+
function fo(e, t, n) {
|
|
3048
3052
|
let r = e.trim(), i = /^(\d{4})-(\d{1,2})-(\d{1,2})$/.exec(r);
|
|
3049
3053
|
if (i) {
|
|
3050
3054
|
let e = $(Number(i[1]), Number(i[2]), Number(i[3]));
|
|
@@ -3070,29 +3074,29 @@ function mo(e, t, n) {
|
|
|
3070
3074
|
kind: "yearless",
|
|
3071
3075
|
resolve: (e) => $(e, o, i)
|
|
3072
3076
|
};
|
|
3073
|
-
let s = $(
|
|
3077
|
+
let s = $(so(r.year, t), o, i);
|
|
3074
3078
|
return s && {
|
|
3075
3079
|
kind: "date",
|
|
3076
3080
|
date: s
|
|
3077
3081
|
};
|
|
3078
3082
|
}
|
|
3079
3083
|
let o = r.replace(/(\d)(st|nd|rd|th)\b/g, "$1").replace(/\bof\b/g, " ").replace(/[,/.\-]/g, " ").replace(/\s+/g, " ").trim(), s = (e, n, r) => {
|
|
3080
|
-
let i = Number(e), a =
|
|
3084
|
+
let i = Number(e), a = Xa[n];
|
|
3081
3085
|
if (r === void 0) return {
|
|
3082
3086
|
kind: "yearless",
|
|
3083
3087
|
resolve: (e) => $(e, a, i)
|
|
3084
3088
|
};
|
|
3085
|
-
let o = $(
|
|
3089
|
+
let o = $(so(r, t), a, i);
|
|
3086
3090
|
return o && {
|
|
3087
3091
|
kind: "date",
|
|
3088
3092
|
date: o
|
|
3089
3093
|
};
|
|
3090
3094
|
}, c;
|
|
3091
|
-
if (c = RegExp(`^(\\d{1,2}) ${
|
|
3092
|
-
if (c = RegExp(`^${
|
|
3093
|
-
if (c = RegExp(`^(\\d{4}) ${
|
|
3094
|
-
if (c = RegExp(`^${
|
|
3095
|
-
let e =
|
|
3095
|
+
if (c = RegExp(`^(\\d{1,2}) ${Za}(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[1], c[2], c[3]);
|
|
3096
|
+
if (c = RegExp(`^${Za} (\\d{1,2})(?: (\\d{2}|\\d{4}))?$`).exec(o)) return s(c[2], c[1], c[3]);
|
|
3097
|
+
if (c = RegExp(`^(\\d{4}) ${Za} (\\d{1,2})$`).exec(o)) return s(c[3], c[2], c[1]);
|
|
3098
|
+
if (c = RegExp(`^${Za}(?: (\\d{4}))?$`).exec(o)) {
|
|
3099
|
+
let e = Xa[c[1]];
|
|
3096
3100
|
if (c[2]) {
|
|
3097
3101
|
let t = $(Number(c[2]), e, 1);
|
|
3098
3102
|
return t && {
|
|
@@ -3113,22 +3117,22 @@ function mo(e, t, n) {
|
|
|
3113
3117
|
} : void 0;
|
|
3114
3118
|
}
|
|
3115
3119
|
}
|
|
3116
|
-
function
|
|
3120
|
+
function po(e) {
|
|
3117
3121
|
return `${e}${e % 100 >= 11 && e % 100 <= 13 ? "th" : {
|
|
3118
3122
|
1: "st",
|
|
3119
3123
|
2: "nd",
|
|
3120
3124
|
3: "rd"
|
|
3121
3125
|
}[e % 10] ?? "th"}`;
|
|
3122
3126
|
}
|
|
3123
|
-
function
|
|
3124
|
-
return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${
|
|
3127
|
+
function mo(e) {
|
|
3128
|
+
return e.toLowerCase().replace(/['’]/g, "").replace(/,/g, " ").replace(/\.+$/, "").replace(RegExp(`\\b(twenty|thirty)[ -](${no})\\b`, "g"), (e, t, n) => po((t === "twenty" ? 20 : 30) + to[n])).replace(RegExp(`\\b(${no})\\b`, "g"), (e) => po(to[e])).replace(/\b(?:a )?couple(?: of)?\b/g, "2").replace(/\b(?:a )?few\b/g, "3").replace(/\b(?:at |@ ?)?\d{1,2}(?::\d{2})? ?(?:am|pm)\b/g, " ").replace(/\b(?:at |@ ?)\d{1,2}(?::\d{2})?\b(?![/.\-]\d)/g, " ").replace(/\b\d{1,2}:\d{2}\b/g, " ").replace(/\b(?:at )?(?:noon|midday|midnight)\b/g, " ").replace(/\b(?:tonight|this (?:morning|afternoon|evening)|eod|end of (?:the )?day)\b/g, " today ").replace(/\b(?:in the )?(?:morning|afternoon|evening|(?<!bonfire |fawkes )night)\b/g, " ").replace(/\bthe\b/g, " ").replace(/\s+/g, " ").trim();
|
|
3125
3129
|
}
|
|
3126
|
-
function
|
|
3130
|
+
function ho(e, t) {
|
|
3127
3131
|
let { today: n, order: r = [
|
|
3128
3132
|
"day",
|
|
3129
3133
|
"month",
|
|
3130
3134
|
"year"
|
|
3131
|
-
], prefer: i = "future" } = t, a =
|
|
3135
|
+
], prefer: i = "future" } = t, a = mo(e);
|
|
3132
3136
|
if (!a) return;
|
|
3133
3137
|
let o = ` ${a} `, s = !1, c = !1, l = [], u = !1, d = {
|
|
3134
3138
|
days: 0,
|
|
@@ -3138,7 +3142,7 @@ function _o(e, t) {
|
|
|
3138
3142
|
}, f = {
|
|
3139
3143
|
year: !1,
|
|
3140
3144
|
month: !1
|
|
3141
|
-
}, p =
|
|
3145
|
+
}, p = io(n);
|
|
3142
3146
|
function m(e) {
|
|
3143
3147
|
let t = RegExp(` ${e} `).exec(o);
|
|
3144
3148
|
return t && (o = o.replace(t[0], " "), s = !0), t;
|
|
@@ -3148,18 +3152,18 @@ function _o(e, t) {
|
|
|
3148
3152
|
}, g = (e) => e && {
|
|
3149
3153
|
kind: "date",
|
|
3150
3154
|
date: e
|
|
3151
|
-
}, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) =>
|
|
3152
|
-
if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(wn(n))), m("eoy") && h(g(new Cn(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${
|
|
3153
|
-
let e = x[1] === "last" ? -1 : Number(x[1][0]), t =
|
|
3155
|
+
}, _ = (e, t = 1) => e.slice(t).find((e) => e !== void 0), v = (e) => e === "fortnight" ? ["weeks", 2] : [`${e}s`, 1], y = (e) => Qa[e] ?? Number(e), b = (e) => n.add({ days: (e - ro(n) + 7) % 7 || 7 }), x;
|
|
3156
|
+
if (m("eow") && h(g(p.add({ days: 4 }))), m("eom") && h(g(wn(n))), m("eoy") && h(g(new Cn(n.year, 12, 31))), x = m(`(1st|2nd|3rd|4th|5th|last) ${Q} (?:of|in) (?:(this|next|last) month|month|${Za}(?: (\\d{4}))?)`)) {
|
|
3157
|
+
let e = x[1] === "last" ? -1 : Number(x[1][0]), t = Ya[x[2]];
|
|
3154
3158
|
if (x[4]) {
|
|
3155
|
-
let n =
|
|
3156
|
-
x[5] ? h(g(
|
|
3159
|
+
let n = Xa[x[4]];
|
|
3160
|
+
x[5] ? h(g(ao(Number(x[5]), n, t, e))) : h({
|
|
3157
3161
|
kind: "yearless",
|
|
3158
|
-
resolve: (r) =>
|
|
3162
|
+
resolve: (r) => ao(r, n, t, e)
|
|
3159
3163
|
});
|
|
3160
3164
|
} else {
|
|
3161
3165
|
let r = x[3] === "next" ? 1 : x[3] === "last" ? -1 : 0, i = On(n).add({ months: r });
|
|
3162
|
-
h(g(
|
|
3166
|
+
h(g(ao(i.year, i.month, t, e)));
|
|
3163
3167
|
}
|
|
3164
3168
|
}
|
|
3165
3169
|
if (x = m("(start|beginning|middle|mid|end) (?:of )?(?:(this|next|last) )?(week|month|year)")) {
|
|
@@ -3173,8 +3177,8 @@ function _o(e, t) {
|
|
|
3173
3177
|
h(g(t === "start" ? new Cn(r, 1, 1) : t === "mid" ? new Cn(r, 7, 1) : new Cn(r, 12, 31)));
|
|
3174
3178
|
}
|
|
3175
3179
|
}
|
|
3176
|
-
if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${
|
|
3177
|
-
let e = x[1], t =
|
|
3180
|
+
if (x = m(`(start|beginning|early|middle|mid|late|end) (?:of )?${Za}(?: (\\d{4}))?`)) {
|
|
3181
|
+
let e = x[1], t = Xa[x[2]], n = (n) => [
|
|
3178
3182
|
"start",
|
|
3179
3183
|
"beginning",
|
|
3180
3184
|
"early"
|
|
@@ -3191,38 +3195,38 @@ function _o(e, t) {
|
|
|
3191
3195
|
kind: "weekday",
|
|
3192
3196
|
weekday: 6
|
|
3193
3197
|
});
|
|
3194
|
-
for (let [e, t] of
|
|
3198
|
+
for (let [e, t] of co) m(e) && h({
|
|
3195
3199
|
kind: "yearless",
|
|
3196
3200
|
resolve: t
|
|
3197
3201
|
});
|
|
3198
|
-
if ((x = m(`${Q} after next`)) && h(g(b(
|
|
3202
|
+
if ((x = m(`${Q} after next`)) && h(g(b(Ya[x[1]]).add({ weeks: 1 }))), (x = m(`${Q} (week|fortnight)`)) && h(g(b(Ya[x[1]]).add({ weeks: x[2] === "fortnight" ? 2 : 1 }))), x = m(`${$a} ${eo} on ${Q}`)) {
|
|
3199
3203
|
let [e, t] = v(x[2]);
|
|
3200
|
-
h(g(b(
|
|
3204
|
+
h(g(b(Ya[x[3]]).add({ [e]: y(x[1]) * t })));
|
|
3201
3205
|
}
|
|
3202
|
-
if (x = m(`${
|
|
3206
|
+
if (x = m(`${$a} ${eo} (today|tomorrow|tmrw|tmr)`)) {
|
|
3203
3207
|
let [e, t] = v(x[2]);
|
|
3204
3208
|
h(g((x[3] === "today" ? n : n.add({ days: 1 })).add({ [e]: y(x[1]) * t })));
|
|
3205
3209
|
}
|
|
3206
3210
|
for ((x = m(`(?:next week ${Q}|${Q} next week|next ${Q})`)) && h(g(p.add({
|
|
3207
3211
|
weeks: 1,
|
|
3208
|
-
days:
|
|
3209
|
-
}))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days:
|
|
3212
|
+
days: Ya[_(x)] - 1
|
|
3213
|
+
}))), (x = m(`(?:last week ${Q}|${Q} last week)`)) && h(g(p.subtract({ weeks: 1 }).add({ days: Ya[_(x)] - 1 }))), (x = m(`(?:this week ${Q}|${Q} this week|this ${Q})`)) && h(g(p.add({ days: Ya[_(x)] - 1 }))), (x = m(`last ${Q}`)) && h(g(n.subtract({ days: (ro(n) - Ya[x[1]] + 7) % 7 || 7 }))), m("day after (?:tomorrow|tmrw|tmr)") && h(g(n.add({ days: 2 }))), m("day before yesterday") && h(g(n.subtract({ days: 2 }))), m("(?:tomorrow|tmrw|tmr|tmw|tomoz)") && h(g(n.add({ days: 1 }))), m("(?:yesterday|yday|yest)") && h(g(n.subtract({ days: 1 }))), m("(?:today|now|tdy)") && h(g(n)), (x = m(`(?:on )?${Q}`)) && h({
|
|
3210
3214
|
kind: "weekday",
|
|
3211
|
-
weekday:
|
|
3212
|
-
}, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${
|
|
3215
|
+
weekday: Ya[x[1]]
|
|
3216
|
+
}, !0), m("this year") && (f.year = !0), m("this month") && (f.month = !0); x = m(`(next|last) ${eo}`);) {
|
|
3213
3217
|
let [e, t] = v(x[2]);
|
|
3214
3218
|
d[e] += (x[1] === "next" ? 1 : -1) * t;
|
|
3215
3219
|
}
|
|
3216
3220
|
let S = !1;
|
|
3217
|
-
for (; x = m(`in ${
|
|
3221
|
+
for (; x = m(`in ${$a} ${eo}`);) {
|
|
3218
3222
|
let [e, t] = v(x[2]);
|
|
3219
3223
|
d[e] += y(x[1]) * t, S = !0;
|
|
3220
3224
|
}
|
|
3221
|
-
for (; S && (x = m(`(?:and )?${
|
|
3225
|
+
for (; S && (x = m(`(?:and )?${$a} ${eo}(?! (?:ago|before|earlier|from|after|later))`));) {
|
|
3222
3226
|
let [e, t] = v(x[2]);
|
|
3223
3227
|
d[e] += y(x[1]) * t;
|
|
3224
3228
|
}
|
|
3225
|
-
for (; x = m(`${
|
|
3229
|
+
for (; x = m(`${$a} ${eo} (ago|before|earlier|from|after|later)`);) {
|
|
3226
3230
|
let [e, t] = v(x[2]), n = [
|
|
3227
3231
|
"ago",
|
|
3228
3232
|
"before",
|
|
@@ -3233,24 +3237,24 @@ function _o(e, t) {
|
|
|
3233
3237
|
for (; m("(?:on|of|at|by|for)"););
|
|
3234
3238
|
let C = o.trim();
|
|
3235
3239
|
if (s && /^\d{4}$/.test(C) && (f.yearValue = Number(C), C = ""), C) {
|
|
3236
|
-
let e =
|
|
3240
|
+
let e = fo(C, n, r);
|
|
3237
3241
|
if (!e) return;
|
|
3238
3242
|
l.length === 1 && u && l.pop(), l.push(e);
|
|
3239
3243
|
} else if (!s) return;
|
|
3240
|
-
if (!(c || l.length > 1)) return
|
|
3244
|
+
if (!(c || l.length > 1)) return uo(l[0], d, f, n, i);
|
|
3241
3245
|
}
|
|
3242
3246
|
// src/components/InputDate/InputDate.vue?vue&type=script&setup=true&lang.ts
|
|
3243
|
-
var
|
|
3247
|
+
var go = [
|
|
3244
3248
|
"id",
|
|
3245
3249
|
"placeholder",
|
|
3246
3250
|
"disabled",
|
|
3247
3251
|
"aria-invalid",
|
|
3248
3252
|
"aria-describedby"
|
|
3249
|
-
],
|
|
3253
|
+
], _o = {
|
|
3250
3254
|
key: 0,
|
|
3251
3255
|
"aria-hidden": "true",
|
|
3252
|
-
class: "shrink-0 tabular-nums text-
|
|
3253
|
-
},
|
|
3256
|
+
class: "shrink-0 tabular-nums text-ink/55"
|
|
3257
|
+
}, vo = /* @__PURE__ */ f({
|
|
3254
3258
|
inheritAttrs: !1,
|
|
3255
3259
|
__name: "InputDate",
|
|
3256
3260
|
props: /*@__PURE__*/ g({
|
|
@@ -3309,7 +3313,7 @@ var vo = [
|
|
|
3309
3313
|
return g.value.format(new Date(e.year, e.month - 1, e.day));
|
|
3310
3314
|
}
|
|
3311
3315
|
function D(e) {
|
|
3312
|
-
return
|
|
3316
|
+
return ho(e, {
|
|
3313
3317
|
today: An(Tn()),
|
|
3314
3318
|
order: b.value,
|
|
3315
3319
|
prefer: n.prefer
|
|
@@ -3349,12 +3353,12 @@ var vo = [
|
|
|
3349
3353
|
}
|
|
3350
3354
|
let J = [
|
|
3351
3355
|
"flex w-9 shrink-0 -my-2 -mr-3 self-stretch items-center justify-center",
|
|
3352
|
-
"rounded-r border-l border-
|
|
3353
|
-
"not-disabled:hover:
|
|
3354
|
-
"data-[state=open]:
|
|
3356
|
+
"rounded-r border-l border-ink/10 bg-surface cursor-pointer transition",
|
|
3357
|
+
"not-disabled:hover:bg-surface-hover not-disabled:active:bg-surface-pressed [&_svg]:opacity-100!",
|
|
3358
|
+
"data-[state=open]:bg-surface-pressed disabled:cursor-not-allowed",
|
|
3355
3359
|
"outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus"
|
|
3356
3360
|
];
|
|
3357
|
-
return (i, l) => (w(), a(
|
|
3361
|
+
return (i, l) => (w(), a(Pa, {
|
|
3358
3362
|
label: e.label,
|
|
3359
3363
|
helper: e.helper,
|
|
3360
3364
|
"helper-placement": e.helperPlacement,
|
|
@@ -3381,12 +3385,12 @@ var vo = [
|
|
|
3381
3385
|
disabled: e.disabled,
|
|
3382
3386
|
"aria-invalid": u,
|
|
3383
3387
|
"aria-describedby": a,
|
|
3384
|
-
class: "h-5 min-w-0 flex-1 bg-transparent tabular-nums outline-none placeholder:text-
|
|
3388
|
+
class: "h-5 min-w-0 flex-1 bg-transparent tabular-nums outline-none placeholder:text-ink/55 disabled:cursor-not-allowed",
|
|
3385
3389
|
onInput: P,
|
|
3386
3390
|
onBlur: I,
|
|
3387
3391
|
onKeydown: U(L, ["enter"])
|
|
3388
|
-
}), null, 16,
|
|
3389
|
-
k.value ? (w(), s("span",
|
|
3392
|
+
}), null, 16, go), [[R, O.value]]),
|
|
3393
|
+
k.value ? (w(), s("span", _o, j(k.value), 1)) : o("", !0),
|
|
3390
3394
|
d(M(gt), {
|
|
3391
3395
|
"aria-label": M(t)("ui.inputDate.openCalendar"),
|
|
3392
3396
|
class: y(J)
|
|
@@ -3397,9 +3401,9 @@ var vo = [
|
|
|
3397
3401
|
d(M(mt), {
|
|
3398
3402
|
"side-offset": 6,
|
|
3399
3403
|
align: "end",
|
|
3400
|
-
class: y([M(
|
|
3404
|
+
class: y([M($n), "p-3"])
|
|
3401
3405
|
}, {
|
|
3402
|
-
default: V(() => [d(
|
|
3406
|
+
default: V(() => [d(Ja, {
|
|
3403
3407
|
"model-value": r.value,
|
|
3404
3408
|
min: e.min,
|
|
3405
3409
|
max: e.max,
|
|
@@ -3429,7 +3433,7 @@ var vo = [
|
|
|
3429
3433
|
"class"
|
|
3430
3434
|
]));
|
|
3431
3435
|
}
|
|
3432
|
-
}),
|
|
3436
|
+
}), yo = /* @__PURE__ */ f({
|
|
3433
3437
|
__name: "Tooltip",
|
|
3434
3438
|
props: {
|
|
3435
3439
|
text: {},
|
|
@@ -3464,7 +3468,7 @@ var vo = [
|
|
|
3464
3468
|
align: e.align,
|
|
3465
3469
|
"side-offset": 8,
|
|
3466
3470
|
"collision-padding": 8,
|
|
3467
|
-
class: y(M(X)("z-100 max-w-72 rounded-md bg-
|
|
3471
|
+
class: y(M(X)("z-100 max-w-72 rounded-md bg-neutral-900 dark:bg-neutral-700 px-2.5 py-1.5 text-xs/4 font-medium text-white shadow-lg ring-1 ring-white/10", "data-[state=closed]:animate-fade-out data-[state=delayed-open]:animate-fade-in data-[state=instant-open]:animate-fade-in", t.class))
|
|
3468
3472
|
}, {
|
|
3469
3473
|
default: V(() => [O(n.$slots, "content", {}, () => [u(j(e.text), 1)])]),
|
|
3470
3474
|
_: 3
|
|
@@ -3480,7 +3484,7 @@ var vo = [
|
|
|
3480
3484
|
_: 3
|
|
3481
3485
|
}));
|
|
3482
3486
|
}
|
|
3483
|
-
}),
|
|
3487
|
+
}), bo = { class: "-mx-3 -my-2 flex min-w-0 flex-1 flex-col self-stretch" }, xo = ["aria-label", "aria-controls"], So = /* @__PURE__ */ f({
|
|
3484
3488
|
__name: "InputRichText",
|
|
3485
3489
|
props: /*@__PURE__*/ g({
|
|
3486
3490
|
label: {},
|
|
@@ -3586,8 +3590,8 @@ var vo = [
|
|
|
3586
3590
|
key: "U",
|
|
3587
3591
|
toggle: () => l.value?.chain().focus().toggleUnderline().run()
|
|
3588
3592
|
}
|
|
3589
|
-
], v = "min-h-24 max-h-80 overflow-y-auto px-3 py-2 text-sm pointer-coarse:text-base outline-none cursor-text [&_p+p]:mt-2 [&_p.is-editor-empty:first-child]:before:pointer-events-none [&_p.is-editor-empty:first-child]:before:float-left [&_p.is-editor-empty:first-child]:before:h-0 [&_p.is-editor-empty:first-child]:before:text-
|
|
3590
|
-
return (i, o) => (w(), a(
|
|
3593
|
+
], v = "min-h-24 max-h-80 overflow-y-auto px-3 py-2 text-sm pointer-coarse:text-base outline-none cursor-text [&_p+p]:mt-2 [&_p.is-editor-empty:first-child]:before:pointer-events-none [&_p.is-editor-empty:first-child]:before:float-left [&_p.is-editor-empty:first-child]:before:h-0 [&_p.is-editor-empty:first-child]:before:text-ink/55 [&_p.is-editor-empty:first-child]:before:content-[attr(data-placeholder)]";
|
|
3594
|
+
return (i, o) => (w(), a(Pa, {
|
|
3591
3595
|
label: e.label,
|
|
3592
3596
|
helper: e.helper,
|
|
3593
3597
|
"helper-placement": e.helperPlacement,
|
|
@@ -3598,14 +3602,14 @@ var vo = [
|
|
|
3598
3602
|
disabled: e.disabled,
|
|
3599
3603
|
class: y(r.class)
|
|
3600
3604
|
}, {
|
|
3601
|
-
default: V((r) => [c("div",
|
|
3605
|
+
default: V((r) => [c("div", bo, [
|
|
3602
3606
|
c("div", {
|
|
3603
3607
|
role: "toolbar",
|
|
3604
3608
|
"aria-label": M(t)("ui.inputRichText.formattingFor", { label: e.label }),
|
|
3605
3609
|
"aria-controls": r.id,
|
|
3606
|
-
class: "flex items-center gap-0.5 border-b border-
|
|
3610
|
+
class: "flex items-center gap-0.5 border-b border-ink/10 px-1.5 py-1 [&_svg]:opacity-100!",
|
|
3607
3611
|
onMousedown: o[0] ||= ee(() => {}, ["prevent"])
|
|
3608
|
-
}, [(w(), s(n, null, D(_, (t) => d(
|
|
3612
|
+
}, [(w(), s(n, null, D(_, (t) => d(yo, {
|
|
3609
3613
|
key: t.name,
|
|
3610
3614
|
text: `${t.label} (${M(g)}${t.key})`,
|
|
3611
3615
|
disabled: e.disabled
|
|
@@ -3618,7 +3622,7 @@ var vo = [
|
|
|
3618
3622
|
"aria-pressed": u.value[t.name],
|
|
3619
3623
|
"aria-keyshortcuts": `${M(h) ? "Meta" : "Control"}+${t.key}`,
|
|
3620
3624
|
disabled: e.disabled,
|
|
3621
|
-
class: "aria-pressed:bg-
|
|
3625
|
+
class: "aria-pressed:bg-selected",
|
|
3622
3626
|
onClick: (e) => t.toggle()
|
|
3623
3627
|
}, {
|
|
3624
3628
|
default: V(() => [(w(), a(k(t.icon)))]),
|
|
@@ -3631,7 +3635,7 @@ var vo = [
|
|
|
3631
3635
|
"onClick"
|
|
3632
3636
|
])]),
|
|
3633
3637
|
_: 2
|
|
3634
|
-
}, 1032, ["text", "disabled"])), 64))], 40,
|
|
3638
|
+
}, 1032, ["text", "disabled"])), 64))], 40, xo),
|
|
3635
3639
|
d(M(m), { ids: r }, null, 8, ["ids"]),
|
|
3636
3640
|
d(M(jn), {
|
|
3637
3641
|
editor: M(l),
|
|
@@ -3651,18 +3655,18 @@ var vo = [
|
|
|
3651
3655
|
"class"
|
|
3652
3656
|
]));
|
|
3653
3657
|
}
|
|
3654
|
-
}),
|
|
3658
|
+
}), Co = [
|
|
3655
3659
|
"id",
|
|
3656
3660
|
"type",
|
|
3657
3661
|
"autocomplete",
|
|
3658
3662
|
"disabled",
|
|
3659
3663
|
"aria-invalid",
|
|
3660
3664
|
"aria-describedby"
|
|
3661
|
-
],
|
|
3665
|
+
], wo = [
|
|
3662
3666
|
"aria-controls",
|
|
3663
3667
|
"aria-pressed",
|
|
3664
3668
|
"disabled"
|
|
3665
|
-
],
|
|
3669
|
+
], To = { class: "sr-only" }, Eo = /* @__PURE__ */ f({
|
|
3666
3670
|
inheritAttrs: !1,
|
|
3667
3671
|
__name: "InputPassword",
|
|
3668
3672
|
props: /*@__PURE__*/ g({
|
|
@@ -3697,11 +3701,11 @@ var vo = [
|
|
|
3697
3701
|
}
|
|
3698
3702
|
let g = i(() => n.statusText ?? (m.value ? t("ui.inputPassword.capsLock") : void 0)), v = [
|
|
3699
3703
|
"flex w-9 shrink-0 -my-2 -mr-3 self-stretch items-center justify-center",
|
|
3700
|
-
"bg-
|
|
3701
|
-
"not-disabled:hover:
|
|
3702
|
-
"outline-none focus-visible:bg-
|
|
3704
|
+
"bg-surface rounded-r border-l border-ink/10 cursor-pointer transition",
|
|
3705
|
+
"not-disabled:hover:bg-surface-hover not-disabled:active:bg-surface-pressed [&_svg]:opacity-100!",
|
|
3706
|
+
"outline-none focus-visible:bg-surface-hover disabled:cursor-not-allowed"
|
|
3703
3707
|
];
|
|
3704
|
-
return (i, o) => (w(), a(
|
|
3708
|
+
return (i, o) => (w(), a(Pa, {
|
|
3705
3709
|
label: e.label,
|
|
3706
3710
|
helper: e.helper,
|
|
3707
3711
|
"helper-placement": e.helperPlacement,
|
|
@@ -3726,11 +3730,11 @@ var vo = [
|
|
|
3726
3730
|
disabled: e.disabled,
|
|
3727
3731
|
"aria-invalid": f,
|
|
3728
3732
|
"aria-describedby": l,
|
|
3729
|
-
class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-
|
|
3733
|
+
class: "h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-ink/55 disabled:cursor-not-allowed",
|
|
3730
3734
|
onKeydown: h,
|
|
3731
3735
|
onKeyup: h,
|
|
3732
3736
|
onBlur: o[1] ||= (e) => m.value = !1
|
|
3733
|
-
}), null, 16,
|
|
3737
|
+
}), null, 16, Co), [[L, r.value]]), c("button", {
|
|
3734
3738
|
type: "button",
|
|
3735
3739
|
class: y(v),
|
|
3736
3740
|
"aria-controls": n,
|
|
@@ -3738,13 +3742,13 @@ var vo = [
|
|
|
3738
3742
|
disabled: e.disabled,
|
|
3739
3743
|
onPointerdown: o[2] ||= ee(() => {}, ["prevent"]),
|
|
3740
3744
|
onClick: o[3] ||= (e) => d.value = !d.value
|
|
3741
|
-
}, [c("span",
|
|
3745
|
+
}, [c("span", To, j(M(t)("ui.inputPassword.show")), 1), d.value ? (w(), a(M(Ce), {
|
|
3742
3746
|
key: 0,
|
|
3743
3747
|
"aria-hidden": "true"
|
|
3744
3748
|
})) : (w(), a(M(Se), {
|
|
3745
3749
|
key: 1,
|
|
3746
3750
|
"aria-hidden": "true"
|
|
3747
|
-
}))], 40,
|
|
3751
|
+
}))], 40, wo)]),
|
|
3748
3752
|
_: 2
|
|
3749
3753
|
}, [i.$slots.leading ? {
|
|
3750
3754
|
name: "leading",
|
|
@@ -3766,7 +3770,7 @@ var vo = [
|
|
|
3766
3770
|
"class"
|
|
3767
3771
|
]));
|
|
3768
3772
|
}
|
|
3769
|
-
}),
|
|
3773
|
+
}), Do = { class: "flex flex-col gap-0.5" }, Oo = { class: "flex items-center gap-1" }, ko = ["for"], Ao = ["hidden"], jo = /* @__PURE__ */ f({
|
|
3770
3774
|
__name: "InputCode",
|
|
3771
3775
|
props: /*@__PURE__*/ g({
|
|
3772
3776
|
label: {},
|
|
@@ -3800,20 +3804,20 @@ var vo = [
|
|
|
3800
3804
|
return e.map((e) => e == null ? "" : String(e)).join("").replace(l.alphanumeric ? /[^a-z0-9]/gi : /\D/g, "").toUpperCase().slice(0, l.length);
|
|
3801
3805
|
}
|
|
3802
3806
|
let C = (e) => u.value = S(e), T = (e) => f("complete", S(e)), E = [
|
|
3803
|
-
"size-10 shrink-0 rounded border border-
|
|
3807
|
+
"size-10 shrink-0 rounded border border-ink/45 bg-surface shadow-xs text-center text-lg tabular-nums text-ink transition",
|
|
3804
3808
|
"outline-2 outline-offset-1 outline-transparent focus:outline-focus forced-colors:not-focus:outline-0",
|
|
3805
|
-
"placeholder:text-
|
|
3809
|
+
"placeholder:text-ink/25 disabled:cursor-not-allowed"
|
|
3806
3810
|
], O = {
|
|
3807
3811
|
error: "border-red",
|
|
3808
3812
|
success: "border-green",
|
|
3809
3813
|
loading: ""
|
|
3810
3814
|
};
|
|
3811
|
-
return (t, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-
|
|
3812
|
-
c("div",
|
|
3815
|
+
return (t, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-ink", l.class)) }, [
|
|
3816
|
+
c("div", Do, [c("div", Oo, [c("label", {
|
|
3813
3817
|
id: m,
|
|
3814
3818
|
for: `${M(p)}-0`,
|
|
3815
3819
|
class: "text-sm"
|
|
3816
|
-
}, j(e.label), 9,
|
|
3820
|
+
}, j(e.label), 9, ko), e.helper && e.helperPlacement === "icon" ? (w(), a(Ea, {
|
|
3817
3821
|
key: 0,
|
|
3818
3822
|
text: e.helper,
|
|
3819
3823
|
label: M(r)("ui.formField.about", { label: e.label })
|
|
@@ -3821,8 +3825,8 @@ var vo = [
|
|
|
3821
3825
|
key: 0,
|
|
3822
3826
|
id: h,
|
|
3823
3827
|
hidden: e.helperPlacement === "icon",
|
|
3824
|
-
class: "text-xs text-
|
|
3825
|
-
}, j(e.helper), 9,
|
|
3828
|
+
class: "text-xs text-ink/65"
|
|
3829
|
+
}, j(e.helper), 9, Ao)) : o("", !0)]),
|
|
3826
3830
|
d(M(Ft), {
|
|
3827
3831
|
"model-value": x.value,
|
|
3828
3832
|
type: e.alphanumeric ? "text" : "number",
|
|
@@ -3865,32 +3869,32 @@ var vo = [
|
|
|
3865
3869
|
"disabled",
|
|
3866
3870
|
"class"
|
|
3867
3871
|
]),
|
|
3868
|
-
d(
|
|
3872
|
+
d(ka, {
|
|
3869
3873
|
id: g,
|
|
3870
3874
|
status: _.value,
|
|
3871
3875
|
text: v.value
|
|
3872
3876
|
}, null, 8, ["status", "text"])
|
|
3873
3877
|
], 2));
|
|
3874
3878
|
}
|
|
3875
|
-
}),
|
|
3879
|
+
}), Mo = {
|
|
3876
3880
|
key: 0,
|
|
3877
|
-
class: "flex min-w-0 flex-1 flex-wrap gap-1"
|
|
3878
|
-
},
|
|
3881
|
+
class: "-ml-1 flex min-w-0 flex-1 flex-wrap gap-1"
|
|
3882
|
+
}, No = {
|
|
3879
3883
|
key: 1,
|
|
3880
3884
|
class: "h-5 min-w-0 flex-1 truncate"
|
|
3881
|
-
},
|
|
3885
|
+
}, Po = { class: "flex h-5 shrink-0 items-center" }, Fo = { class: "min-w-0 flex-1 truncate" }, Io = { class: "truncate" }, Lo = {
|
|
3882
3886
|
key: 0,
|
|
3883
3887
|
class: "flex h-5 shrink-0 items-center"
|
|
3884
|
-
},
|
|
3888
|
+
}, Ro = { class: "flex min-w-0 flex-1 flex-col" }, zo = {
|
|
3885
3889
|
key: 0,
|
|
3886
3890
|
class: "sr-only"
|
|
3887
|
-
},
|
|
3891
|
+
}, Bo = {
|
|
3888
3892
|
key: 0,
|
|
3889
|
-
class: "text-xs text-
|
|
3890
|
-
},
|
|
3893
|
+
class: "text-xs text-ink/65"
|
|
3894
|
+
}, Vo = {
|
|
3891
3895
|
key: 1,
|
|
3892
|
-
class: "text-xs text-
|
|
3893
|
-
},
|
|
3896
|
+
class: "text-xs text-ink/65"
|
|
3897
|
+
}, Ho = { class: "flex h-5 w-4 shrink-0 items-center justify-center" }, Uo = "-mx-3 -my-2 flex min-w-0 flex-1 items-center gap-2 self-stretch px-3 py-2 [&>svg:first-child]:-ml-0.5 [&>svg:last-child]:-mr-0.5", Wo = "transition-transform duration-150 in-data-[state=open]:rotate-180 motion-reduce:transition-none", Go = /* @__PURE__ */ f({
|
|
3894
3898
|
__name: "Select",
|
|
3895
3899
|
props: /*@__PURE__*/ g({
|
|
3896
3900
|
label: {},
|
|
@@ -4038,16 +4042,16 @@ var vo = [
|
|
|
4038
4042
|
Item: Xt,
|
|
4039
4043
|
ItemText: Qt,
|
|
4040
4044
|
Indicator: Zt
|
|
4041
|
-
}), Se = i(() => X(
|
|
4042
|
-
"relative flex min-h-8 cursor-pointer items-start gap-2
|
|
4043
|
-
"data-highlighted:bg-
|
|
4045
|
+
}), Se = i(() => X($n, "overflow-hidden", r.searchable ? "max-h-(--reka-combobox-content-available-height) min-w-(--reka-combobox-trigger-width) max-w-[max(var(--reka-combobox-trigger-width),--spacing(80))]" : "max-h-(--reka-select-content-available-height) min-w-(--reka-select-trigger-width) max-w-[max(var(--reka-select-trigger-width),--spacing(80))]")), Ce = [
|
|
4046
|
+
"relative flex min-h-8 cursor-pointer items-start gap-2 px-3 py-1.5 text-sm outline-none select-none",
|
|
4047
|
+
"data-highlighted:bg-selected",
|
|
4044
4048
|
"data-disabled:cursor-not-allowed data-disabled:opacity-40"
|
|
4045
4049
|
], we = (e) => r.searchable ? [
|
|
4046
4050
|
e.option.label,
|
|
4047
4051
|
e.option.description,
|
|
4048
4052
|
e.path
|
|
4049
4053
|
].filter(Boolean).join(" ") : e.option.label;
|
|
4050
|
-
return (i, f) => (w(), a(
|
|
4054
|
+
return (i, f) => (w(), a(Pa, {
|
|
4051
4055
|
label: e.label,
|
|
4052
4056
|
helper: e.helper,
|
|
4053
4057
|
"helper-placement": e.helperPlacement,
|
|
@@ -4074,7 +4078,7 @@ var vo = [
|
|
|
4074
4078
|
}), {
|
|
4075
4079
|
default: V(() => [e.searchable ? (w(), a(M(tt), {
|
|
4076
4080
|
key: 0,
|
|
4077
|
-
class: y(
|
|
4081
|
+
class: y(Uo),
|
|
4078
4082
|
onPointerdown: f[4] ||= (e) => re.value = !0,
|
|
4079
4083
|
onClick: f[5] ||= (t) => !e.disabled && !t.target.closest("button") && J(!0)
|
|
4080
4084
|
}, {
|
|
@@ -4083,7 +4087,7 @@ var vo = [
|
|
|
4083
4087
|
key: 0,
|
|
4084
4088
|
"aria-hidden": "true"
|
|
4085
4089
|
})) : o("", !0)]),
|
|
4086
|
-
c("span", { class: y(e.multiple ? "flex min-w-0 flex-1 flex-wrap items-center gap-1" : "contents") }, [(w(!0), s(n, null, D(R.value, (n) => (w(), a(
|
|
4090
|
+
c("span", { class: y(e.multiple ? M(X)("flex min-w-0 flex-1 flex-wrap items-center gap-1", R.value.length && "-ml-1") : "contents") }, [(w(!0), s(n, null, D(R.value, (n) => (w(), a(ma, {
|
|
4087
4091
|
key: String(n.value),
|
|
4088
4092
|
size: "sm",
|
|
4089
4093
|
removable: "",
|
|
@@ -4114,7 +4118,7 @@ var vo = [
|
|
|
4114
4118
|
"aria-invalid": v,
|
|
4115
4119
|
"aria-describedby": p,
|
|
4116
4120
|
autocomplete: "off",
|
|
4117
|
-
class: y(M(X)("h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-
|
|
4121
|
+
class: y(M(X)("h-5 min-w-0 flex-1 bg-transparent outline-none placeholder:text-ink/55 disabled:cursor-not-allowed", e.multiple && "min-w-16")),
|
|
4118
4122
|
"data-pointer-focus": re.value || void 0,
|
|
4119
4123
|
onFocus: te,
|
|
4120
4124
|
onBlur: f[2] ||= (e) => re.value = !1,
|
|
@@ -4132,11 +4136,11 @@ var vo = [
|
|
|
4132
4136
|
d(M(ft), {
|
|
4133
4137
|
tabindex: "-1",
|
|
4134
4138
|
"aria-label": M(t)("ui.select.showOptions"),
|
|
4135
|
-
class: "flex cursor-pointer disabled:cursor-not-allowed"
|
|
4139
|
+
class: "-mr-0.5 flex cursor-pointer disabled:cursor-not-allowed"
|
|
4136
4140
|
}, {
|
|
4137
4141
|
default: V(() => [d(M(fe), {
|
|
4138
4142
|
"aria-hidden": "true",
|
|
4139
|
-
class: y(
|
|
4143
|
+
class: y(Wo)
|
|
4140
4144
|
})]),
|
|
4141
4145
|
_: 1
|
|
4142
4146
|
}, 8, ["aria-label"])
|
|
@@ -4149,14 +4153,14 @@ var vo = [
|
|
|
4149
4153
|
"aria-describedby": p,
|
|
4150
4154
|
"data-pointer-focus": re.value || void 0,
|
|
4151
4155
|
onBlur: f[6] ||= (e) => re.value = !1,
|
|
4152
|
-
class: y(M(X)(
|
|
4156
|
+
class: y(M(X)(Uo, "cursor-pointer text-left outline-none disabled:cursor-not-allowed data-placeholder:text-ink/55"))
|
|
4153
4157
|
}, {
|
|
4154
4158
|
default: V(() => [
|
|
4155
4159
|
O(i.$slots, "leading", {}, () => [L.value?.icon ? (w(), a(k(L.value.icon), {
|
|
4156
4160
|
key: 0,
|
|
4157
4161
|
"aria-hidden": "true"
|
|
4158
4162
|
})) : o("", !0)]),
|
|
4159
|
-
e.multiple && R.value.length ? (w(), s("span",
|
|
4163
|
+
e.multiple && R.value.length ? (w(), s("span", Mo, [(w(!0), s(n, null, D(R.value, (e) => (w(), a(ma, {
|
|
4160
4164
|
key: String(e.value),
|
|
4161
4165
|
size: "sm"
|
|
4162
4166
|
}, l({
|
|
@@ -4166,10 +4170,10 @@ var vo = [
|
|
|
4166
4170
|
name: "leading",
|
|
4167
4171
|
fn: V(() => [(w(), a(k(e.icon), { "aria-hidden": "true" }))]),
|
|
4168
4172
|
key: "0"
|
|
4169
|
-
} : void 0]), 1024))), 128))])) : (w(), s("span",
|
|
4173
|
+
} : void 0]), 1024))), 128))])) : (w(), s("span", No, j(L.value?.label ?? g.value), 1)),
|
|
4170
4174
|
d(M(fe), {
|
|
4171
4175
|
"aria-hidden": "true",
|
|
4172
|
-
class: y(
|
|
4176
|
+
class: y(Wo)
|
|
4173
4177
|
})
|
|
4174
4178
|
]),
|
|
4175
4179
|
_: 3
|
|
@@ -4188,11 +4192,11 @@ var vo = [
|
|
|
4188
4192
|
onKeydown: f[7] ||= (t) => !e.searchable && xe(t),
|
|
4189
4193
|
onMousedown: f[8] ||= (t) => e.searchable && t.preventDefault()
|
|
4190
4194
|
}, {
|
|
4191
|
-
default: V(() => [(w(), a(k(Y.value.Viewport), { class: "flex flex-col
|
|
4195
|
+
default: V(() => [(w(), a(k(Y.value.Viewport), { class: "flex flex-col py-1 [scrollbar-width:thin]! [&::-webkit-scrollbar]:block!" }, {
|
|
4192
4196
|
default: V(() => [
|
|
4193
4197
|
e.searchable ? (w(), a(M(rt), {
|
|
4194
4198
|
key: 0,
|
|
4195
|
-
class: "px-
|
|
4199
|
+
class: "px-3 py-1.5 text-sm text-ink/65"
|
|
4196
4200
|
}, {
|
|
4197
4201
|
default: V(() => [u(j(e.emptyText ?? M(t)("ui.select.noMatches")), 1)]),
|
|
4198
4202
|
_: 1
|
|
@@ -4204,25 +4208,25 @@ var vo = [
|
|
|
4204
4208
|
class: y(M(X)(Ce, "font-bold")),
|
|
4205
4209
|
onSelect: be
|
|
4206
4210
|
}, {
|
|
4207
|
-
default: V(() => [c("span",
|
|
4211
|
+
default: V(() => [c("span", Po, [d(M(pe), {
|
|
4208
4212
|
"aria-hidden": "true",
|
|
4209
4213
|
class: "size-4"
|
|
4210
|
-
})]), c("span",
|
|
4214
|
+
})]), c("span", Fo, [f[9] ||= c("span", { class: "sr-only" }, "Back from ", -1), u(j(G.value.label), 1)])]),
|
|
4211
4215
|
_: 1
|
|
4212
|
-
}, 40, ["text-value", "class"])), (w(), a(k(Y.value.Separator), { class: "-
|
|
4216
|
+
}, 40, ["text-value", "class"])), (w(), a(k(Y.value.Separator), { class: "my-1 border-t border-ink/10" }))], 64)) : o("", !0),
|
|
4213
4217
|
(w(!0), s(n, null, D(le.value, (e, t) => (w(), s(n, { key: t }, [t > 0 && !oe.value ? (w(), a(k(Y.value.Separator), {
|
|
4214
4218
|
key: 0,
|
|
4215
|
-
class: "-
|
|
4216
|
-
})) : o("", !0), (w(), a(k(Y.value.Group), { class: "flex flex-col
|
|
4219
|
+
class: "my-1 border-t border-ink/10"
|
|
4220
|
+
})) : o("", !0), (w(), a(k(Y.value.Group), { class: "flex flex-col" }, {
|
|
4217
4221
|
default: V(() => [e.label ? (w(), a(k(Y.value.Label), {
|
|
4218
4222
|
key: 0,
|
|
4219
|
-
class: "flex h-6 items-center gap-1.5 px-
|
|
4223
|
+
class: "flex h-6 items-center gap-1.5 px-3 text-xs font-bold text-ink/65 uppercase"
|
|
4220
4224
|
}, {
|
|
4221
4225
|
default: V(() => [e.icon ? (w(), a(k(e.icon), {
|
|
4222
4226
|
key: 0,
|
|
4223
4227
|
"aria-hidden": "true",
|
|
4224
4228
|
class: "size-3.5 shrink-0"
|
|
4225
|
-
})) : o("", !0), c("span",
|
|
4229
|
+
})) : o("", !0), c("span", Io, j(e.label), 1)]),
|
|
4226
4230
|
_: 2
|
|
4227
4231
|
}, 1024)) : o("", !0), (w(!0), s(n, null, D(e.rows, (e) => (w(), a(k(Y.value.Item), {
|
|
4228
4232
|
key: e.key,
|
|
@@ -4234,19 +4238,19 @@ var vo = [
|
|
|
4234
4238
|
onSelect: (t) => e.parent && ye(t, e.option)
|
|
4235
4239
|
}, {
|
|
4236
4240
|
default: V(() => [
|
|
4237
|
-
e.option.icon ? (w(), s("span",
|
|
4241
|
+
e.option.icon ? (w(), s("span", Lo, [(w(), a(k(e.option.icon), {
|
|
4238
4242
|
"aria-hidden": "true",
|
|
4239
4243
|
class: "size-4 opacity-70"
|
|
4240
4244
|
}))])) : o("", !0),
|
|
4241
|
-
c("span",
|
|
4245
|
+
c("span", Ro, [
|
|
4242
4246
|
(w(), a(k(Y.value.ItemText), { class: "truncate in-data-[state=checked]:font-bold" }, {
|
|
4243
|
-
default: V(() => [u(j(e.option.label), 1), e.parent ? (w(), s("span",
|
|
4247
|
+
default: V(() => [u(j(e.option.label), 1), e.parent ? (w(), s("span", zo, ", more options")) : o("", !0)]),
|
|
4244
4248
|
_: 2
|
|
4245
4249
|
}, 1024)),
|
|
4246
|
-
e.path ? (w(), s("span",
|
|
4247
|
-
e.option.description ? (w(), s("span",
|
|
4250
|
+
e.path ? (w(), s("span", Bo, j(e.path), 1)) : o("", !0),
|
|
4251
|
+
e.option.description ? (w(), s("span", Vo, j(e.option.description), 1)) : o("", !0)
|
|
4248
4252
|
]),
|
|
4249
|
-
c("span",
|
|
4253
|
+
c("span", Ho, [e.parent ? (w(), a(M(me), {
|
|
4250
4254
|
key: 0,
|
|
4251
4255
|
"aria-hidden": "true",
|
|
4252
4256
|
class: "size-4 opacity-70"
|
|
@@ -4294,7 +4298,7 @@ var vo = [
|
|
|
4294
4298
|
"class"
|
|
4295
4299
|
]));
|
|
4296
4300
|
}
|
|
4297
|
-
}),
|
|
4301
|
+
}), Ko = { class: "flex items-start gap-2" }, qo = /* @__PURE__ */ f({
|
|
4298
4302
|
__name: "Checkbox",
|
|
4299
4303
|
props: /*@__PURE__*/ g({
|
|
4300
4304
|
label: {},
|
|
@@ -4326,14 +4330,14 @@ var vo = [
|
|
|
4326
4330
|
e.target.closest("label") || document.getElementById(t)?.click();
|
|
4327
4331
|
}
|
|
4328
4332
|
let h = [
|
|
4329
|
-
"mt-0.5 flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-sm border bg-
|
|
4330
|
-
"not-disabled:hover:border-
|
|
4333
|
+
"mt-0.5 flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-sm border bg-surface text-white transition",
|
|
4334
|
+
"not-disabled:hover:border-ink disabled:cursor-not-allowed",
|
|
4331
4335
|
"data-[state=checked]:border-primary data-[state=checked]:bg-primary data-[state=checked]:hover:border-primary",
|
|
4332
4336
|
"data-[state=indeterminate]:border-primary data-[state=indeterminate]:bg-primary data-[state=indeterminate]:hover:border-primary",
|
|
4333
4337
|
"outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus",
|
|
4334
4338
|
"[&_svg]:size-3.5 [&_svg]:stroke-3"
|
|
4335
4339
|
];
|
|
4336
|
-
return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-
|
|
4340
|
+
return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", t.class)) }, [c("div", Ko, [d(M(et), {
|
|
4337
4341
|
id: l,
|
|
4338
4342
|
modelValue: n.value,
|
|
4339
4343
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
@@ -4343,7 +4347,7 @@ var vo = [
|
|
|
4343
4347
|
disabled: e.disabled,
|
|
4344
4348
|
"aria-invalid": e.errorText ? !0 : void 0,
|
|
4345
4349
|
"aria-describedby": p.value,
|
|
4346
|
-
class: y(M(X)(h, e.errorText ? "border-red" : "border-
|
|
4350
|
+
class: y(M(X)(h, e.errorText ? "border-red" : "border-ink/45"))
|
|
4347
4351
|
}, {
|
|
4348
4352
|
default: V(() => [d(M($e), { class: "flex" }, {
|
|
4349
4353
|
default: V(() => [n.value === "indeterminate" ? (w(), a(M(je), {
|
|
@@ -4374,14 +4378,14 @@ var vo = [
|
|
|
4374
4378
|
}, j(e.label), 3), e.description ? (w(), s("p", {
|
|
4375
4379
|
key: 0,
|
|
4376
4380
|
id: u,
|
|
4377
|
-
class: "text-xs text-
|
|
4378
|
-
}, j(e.description), 1)) : o("", !0)], 2)]), d(
|
|
4381
|
+
class: "text-xs text-ink/65"
|
|
4382
|
+
}, j(e.description), 1)) : o("", !0)], 2)]), d(ka, {
|
|
4379
4383
|
id: f,
|
|
4380
4384
|
status: e.errorText ? "error" : void 0,
|
|
4381
4385
|
text: e.errorText
|
|
4382
4386
|
}, null, 8, ["status", "text"])], 2));
|
|
4383
4387
|
}
|
|
4384
|
-
}),
|
|
4388
|
+
}), Jo = { class: "flex flex-col gap-0.5" }, Yo = { class: "flex items-center gap-1" }, Xo = ["hidden"], Zo = ["onClick"], Qo = ["for"], $o = ["id"], es = /* @__PURE__ */ f({
|
|
4385
4389
|
__name: "RadioGroup",
|
|
4386
4390
|
props: /*@__PURE__*/ g({
|
|
4387
4391
|
label: {},
|
|
@@ -4410,16 +4414,16 @@ var vo = [
|
|
|
4410
4414
|
e.target.closest("label") || document.getElementById(t)?.click();
|
|
4411
4415
|
}
|
|
4412
4416
|
let _ = [
|
|
4413
|
-
"mt-0.5 flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-full border bg-
|
|
4414
|
-
"not-disabled:hover:border-
|
|
4417
|
+
"mt-0.5 flex size-4 shrink-0 cursor-pointer items-center justify-center rounded-full border bg-surface transition",
|
|
4418
|
+
"not-disabled:hover:border-ink disabled:cursor-not-allowed",
|
|
4415
4419
|
"data-[state=checked]:border-primary data-[state=checked]:hover:border-primary",
|
|
4416
4420
|
"outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
|
|
4417
4421
|
];
|
|
4418
|
-
return (i, v) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-
|
|
4419
|
-
c("div",
|
|
4422
|
+
return (i, v) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", r.class)) }, [
|
|
4423
|
+
c("div", Jo, [c("div", Yo, [c("span", {
|
|
4420
4424
|
id: f,
|
|
4421
4425
|
class: "text-sm"
|
|
4422
|
-
}, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(
|
|
4426
|
+
}, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ea, {
|
|
4423
4427
|
key: 0,
|
|
4424
4428
|
text: e.helper,
|
|
4425
4429
|
label: M(t)("ui.formField.about", { label: e.label })
|
|
@@ -4427,8 +4431,8 @@ var vo = [
|
|
|
4427
4431
|
key: 0,
|
|
4428
4432
|
id: p,
|
|
4429
4433
|
hidden: e.helperPlacement === "icon",
|
|
4430
|
-
class: "text-xs text-
|
|
4431
|
-
}, j(e.helper), 9,
|
|
4434
|
+
class: "text-xs text-ink/65"
|
|
4435
|
+
}, j(e.helper), 9, Xo)) : o("", !0)]),
|
|
4432
4436
|
d(M(qt), {
|
|
4433
4437
|
modelValue: l.value,
|
|
4434
4438
|
"onUpdate:modelValue": v[0] ||= (e) => l.value = e,
|
|
@@ -4448,7 +4452,7 @@ var vo = [
|
|
|
4448
4452
|
value: t.value,
|
|
4449
4453
|
disabled: t.disabled,
|
|
4450
4454
|
"aria-describedby": t.description ? `${M(u)}-${n}-description` : void 0,
|
|
4451
|
-
class: y(M(X)(_, e.errorText ? "border-red" : "border-
|
|
4455
|
+
class: y(M(X)(_, e.errorText ? "border-red" : "border-ink/45", t.disabled && !e.disabled && "opacity-40"))
|
|
4452
4456
|
}, {
|
|
4453
4457
|
default: V(() => [d(M(Gt), { class: "size-2 rounded-full bg-primary" })]),
|
|
4454
4458
|
_: 1
|
|
@@ -4464,11 +4468,11 @@ var vo = [
|
|
|
4464
4468
|
}, [c("label", {
|
|
4465
4469
|
for: `${M(u)}-${n}`,
|
|
4466
4470
|
class: y(M(X)("text-sm", e.disabled || t.disabled ? "cursor-not-allowed" : "cursor-pointer"))
|
|
4467
|
-
}, j(t.label), 11,
|
|
4471
|
+
}, j(t.label), 11, Qo), t.description ? (w(), s("p", {
|
|
4468
4472
|
key: 0,
|
|
4469
4473
|
id: `${M(u)}-${n}-description`,
|
|
4470
|
-
class: "text-xs text-
|
|
4471
|
-
}, j(t.description), 9,
|
|
4474
|
+
class: "text-xs text-ink/65"
|
|
4475
|
+
}, j(t.description), 9, $o)) : o("", !0)], 10, Zo)]))), 128))]),
|
|
4472
4476
|
_: 1
|
|
4473
4477
|
}, 8, [
|
|
4474
4478
|
"modelValue",
|
|
@@ -4478,14 +4482,14 @@ var vo = [
|
|
|
4478
4482
|
"aria-describedby",
|
|
4479
4483
|
"aria-invalid"
|
|
4480
4484
|
]),
|
|
4481
|
-
d(
|
|
4485
|
+
d(ka, {
|
|
4482
4486
|
id: m,
|
|
4483
4487
|
status: e.errorText ? "error" : void 0,
|
|
4484
4488
|
text: e.errorText
|
|
4485
4489
|
}, null, 8, ["status", "text"])
|
|
4486
4490
|
], 2));
|
|
4487
4491
|
}
|
|
4488
|
-
}),
|
|
4492
|
+
}), ts = { class: "flex items-start gap-2" }, ns = "size-4 rounded-full bg-white shadow-sm transition-transform data-[state=checked]:translate-x-4 motion-reduce:transition-none", rs = /* @__PURE__ */ f({
|
|
4489
4493
|
__name: "Switch",
|
|
4490
4494
|
props: /*@__PURE__*/ g({
|
|
4491
4495
|
label: {},
|
|
@@ -4518,11 +4522,11 @@ var vo = [
|
|
|
4518
4522
|
}
|
|
4519
4523
|
let g = [
|
|
4520
4524
|
"inline-flex h-5 w-9 shrink-0 cursor-pointer items-center rounded-full p-0.5 transition-colors",
|
|
4521
|
-
"bg-
|
|
4525
|
+
"bg-ink/45 not-disabled:hover:bg-ink/55 data-[state=checked]:bg-primary data-[state=checked]:hover:bg-primary",
|
|
4522
4526
|
"disabled:cursor-not-allowed",
|
|
4523
4527
|
"outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus"
|
|
4524
4528
|
];
|
|
4525
|
-
return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-
|
|
4529
|
+
return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-ink", e.disabled && "opacity-40", t.class)) }, [c("div", ts, [d(M(sn), {
|
|
4526
4530
|
id: a,
|
|
4527
4531
|
modelValue: n.value,
|
|
4528
4532
|
"onUpdate:modelValue": i[0] ||= (e) => n.value = e,
|
|
@@ -4532,7 +4536,7 @@ var vo = [
|
|
|
4532
4536
|
"aria-describedby": m.value,
|
|
4533
4537
|
class: y(g)
|
|
4534
4538
|
}, {
|
|
4535
|
-
default: V(() => [d(M(cn), { class: y(
|
|
4539
|
+
default: V(() => [d(M(cn), { class: y(ns) })]),
|
|
4536
4540
|
_: 1
|
|
4537
4541
|
}, 8, [
|
|
4538
4542
|
"modelValue",
|
|
@@ -4549,20 +4553,20 @@ var vo = [
|
|
|
4549
4553
|
}, j(e.label), 3), e.description ? (w(), s("p", {
|
|
4550
4554
|
key: 0,
|
|
4551
4555
|
id: l,
|
|
4552
|
-
class: "text-xs text-
|
|
4553
|
-
}, j(e.description), 1)) : o("", !0)], 2)]), d(
|
|
4556
|
+
class: "text-xs text-ink/65"
|
|
4557
|
+
}, j(e.description), 1)) : o("", !0)], 2)]), d(ka, {
|
|
4554
4558
|
id: u,
|
|
4555
4559
|
status: f.value,
|
|
4556
4560
|
text: p.value
|
|
4557
4561
|
}, null, 8, ["status", "text"])], 2));
|
|
4558
4562
|
}
|
|
4559
|
-
}),
|
|
4563
|
+
}), is = [
|
|
4560
4564
|
"id",
|
|
4561
4565
|
"placeholder",
|
|
4562
4566
|
"disabled",
|
|
4563
4567
|
"aria-invalid",
|
|
4564
4568
|
"aria-describedby"
|
|
4565
|
-
],
|
|
4569
|
+
], as = /* @__PURE__ */ f({
|
|
4566
4570
|
inheritAttrs: !1,
|
|
4567
4571
|
__name: "InputTextArea",
|
|
4568
4572
|
props: /*@__PURE__*/ g({
|
|
@@ -4590,7 +4594,7 @@ var vo = [
|
|
|
4590
4594
|
emits: ["update:modelValue"],
|
|
4591
4595
|
setup(e, { expose: t }) {
|
|
4592
4596
|
let n = e, { t: r } = K(), o = F(e, "modelValue"), s = i(() => n.maxLength !== void 0 && o.value.length > n.maxLength ? r("ui.input.maxLength", { count: n.maxLength }) : void 0), l = i(() => n.status ?? (s.value ? "error" : void 0)), u = i(() => n.statusText ?? s.value), d = E();
|
|
4593
|
-
return t({ focus: () => d.value?.focus() }), (t, r) => (w(), a(
|
|
4597
|
+
return t({ focus: () => d.value?.focus() }), (t, r) => (w(), a(Pa, {
|
|
4594
4598
|
label: e.label,
|
|
4595
4599
|
helper: e.helper,
|
|
4596
4600
|
"helper-placement": e.helperPlacement,
|
|
@@ -4611,8 +4615,8 @@ var vo = [
|
|
|
4611
4615
|
disabled: e.disabled,
|
|
4612
4616
|
"aria-invalid": a,
|
|
4613
4617
|
"aria-describedby": i,
|
|
4614
|
-
class: "field-sizing-content -my-0.5 max-h-80 min-h-24 min-w-0 flex-1 resize-none bg-transparent text-sm leading-5 outline-none placeholder:text-
|
|
4615
|
-
}), null, 16,
|
|
4618
|
+
class: "field-sizing-content -my-0.5 max-h-80 min-h-24 min-w-0 flex-1 resize-none bg-transparent text-sm leading-5 outline-none placeholder:text-ink/55 disabled:cursor-not-allowed pointer-coarse:text-base"
|
|
4619
|
+
}), null, 16, is), [[R, o.value]])]),
|
|
4616
4620
|
_: 1
|
|
4617
4621
|
}, 8, [
|
|
4618
4622
|
"label",
|
|
@@ -4626,7 +4630,7 @@ var vo = [
|
|
|
4626
4630
|
"class"
|
|
4627
4631
|
]));
|
|
4628
4632
|
}
|
|
4629
|
-
}),
|
|
4633
|
+
}), os = { class: "flex items-center gap-1" }, ss = ["hidden"], cs = ["aria-describedby", "aria-invalid"], ls = /* @__PURE__ */ f({
|
|
4630
4634
|
__name: "CheckboxGroup",
|
|
4631
4635
|
props: /*@__PURE__*/ g({
|
|
4632
4636
|
label: {},
|
|
@@ -4653,11 +4657,11 @@ var vo = [
|
|
|
4653
4657
|
function g(e, t) {
|
|
4654
4658
|
l.value = t ? [...l.value, e] : l.value.filter((t) => t !== e);
|
|
4655
4659
|
}
|
|
4656
|
-
return (i, u) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-
|
|
4657
|
-
c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div",
|
|
4660
|
+
return (i, u) => (w(), s("div", { class: y(M(X)("flex flex-col gap-1.5 text-ink", t.class)) }, [
|
|
4661
|
+
c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", os, [c("span", {
|
|
4658
4662
|
id: f,
|
|
4659
4663
|
class: "text-sm"
|
|
4660
|
-
}, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(
|
|
4664
|
+
}, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ea, {
|
|
4661
4665
|
key: 0,
|
|
4662
4666
|
text: e.helper,
|
|
4663
4667
|
label: M(r)("ui.formField.about", { label: e.label })
|
|
@@ -4665,15 +4669,15 @@ var vo = [
|
|
|
4665
4669
|
key: 0,
|
|
4666
4670
|
id: p,
|
|
4667
4671
|
hidden: e.helperPlacement === "icon",
|
|
4668
|
-
class: "text-xs text-
|
|
4669
|
-
}, j(e.helper), 9,
|
|
4672
|
+
class: "text-xs text-ink/65"
|
|
4673
|
+
}, j(e.helper), 9, ss)) : o("", !0)], 2),
|
|
4670
4674
|
c("div", {
|
|
4671
4675
|
role: "group",
|
|
4672
4676
|
"aria-labelledby": f,
|
|
4673
4677
|
"aria-describedby": h.value,
|
|
4674
4678
|
"aria-invalid": e.errorText ? !0 : void 0,
|
|
4675
4679
|
class: "flex flex-col gap-3"
|
|
4676
|
-
}, [(w(!0), s(n, null, D(e.options, (t) => (w(), a(
|
|
4680
|
+
}, [(w(!0), s(n, null, D(e.options, (t) => (w(), a(qo, {
|
|
4677
4681
|
key: String(t.value),
|
|
4678
4682
|
"model-value": l.value.includes(t.value),
|
|
4679
4683
|
label: t.label,
|
|
@@ -4686,15 +4690,15 @@ var vo = [
|
|
|
4686
4690
|
"description",
|
|
4687
4691
|
"disabled",
|
|
4688
4692
|
"onUpdate:modelValue"
|
|
4689
|
-
]))), 128))], 8,
|
|
4690
|
-
d(
|
|
4693
|
+
]))), 128))], 8, cs),
|
|
4694
|
+
d(ka, {
|
|
4691
4695
|
id: m,
|
|
4692
4696
|
status: e.errorText ? "error" : void 0,
|
|
4693
4697
|
text: e.errorText
|
|
4694
4698
|
}, null, 8, ["status", "text"])
|
|
4695
4699
|
], 2));
|
|
4696
4700
|
}
|
|
4697
|
-
}),
|
|
4701
|
+
}), us = /* @__PURE__ */ f({
|
|
4698
4702
|
__name: "LanguageSwitcher",
|
|
4699
4703
|
props: {
|
|
4700
4704
|
label: {},
|
|
@@ -4724,7 +4728,7 @@ var vo = [
|
|
|
4724
4728
|
label: s(e),
|
|
4725
4729
|
value: e
|
|
4726
4730
|
})));
|
|
4727
|
-
return (i, o) => (w(), a(
|
|
4731
|
+
return (i, o) => (w(), a(Go, {
|
|
4728
4732
|
modelValue: M(r),
|
|
4729
4733
|
"onUpdate:modelValue": o[0] ||= (e) => h(r) ? r.value = e : null,
|
|
4730
4734
|
label: e.label ?? M(n)("ui.languageSwitcher.label"),
|
|
@@ -4744,7 +4748,7 @@ var vo = [
|
|
|
4744
4748
|
"class"
|
|
4745
4749
|
]));
|
|
4746
4750
|
}
|
|
4747
|
-
}),
|
|
4751
|
+
}), ds = { class: "flex items-center gap-1" }, fs = ["hidden"], ps = { class: "flex min-w-0 flex-1 flex-col gap-0.5" }, ms = { class: "text-sm font-bold" }, hs = ["id"], gs = /* @__PURE__ */ f({
|
|
4748
4752
|
__name: "CardSelect",
|
|
4749
4753
|
props: /*@__PURE__*/ g({
|
|
4750
4754
|
label: {},
|
|
@@ -4779,18 +4783,18 @@ var vo = [
|
|
|
4779
4783
|
default: return "grid-cols-[repeat(auto-fit,minmax(min(10rem,100%),1fr))]";
|
|
4780
4784
|
}
|
|
4781
4785
|
}), _ = [
|
|
4782
|
-
"group relative flex w-full cursor-pointer items-start gap-3 rounded-lg border border-
|
|
4786
|
+
"group relative flex w-full cursor-pointer items-start gap-3 rounded-lg border border-ink/10 bg-surface p-3 pt-2.5 text-left text-ink shadow-xs transition-colors",
|
|
4783
4787
|
"outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus",
|
|
4784
|
-
"not-disabled:not-data-[state=checked]:hover:bg-surface-
|
|
4788
|
+
"not-disabled:not-data-[state=checked]:hover:bg-surface-hover",
|
|
4785
4789
|
"data-[state=checked]:border-primary data-[state=checked]:bg-primary/6 data-[state=checked]:shadow-[inset_0_0_0_1px_var(--color-primary)]",
|
|
4786
4790
|
"disabled:cursor-not-allowed disabled:opacity-40",
|
|
4787
4791
|
"motion-reduce:transition-none"
|
|
4788
4792
|
];
|
|
4789
|
-
return (i, v) => (w(), s("div", { class: y(M(X)("flex flex-col gap-2 text-
|
|
4790
|
-
c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div",
|
|
4793
|
+
return (i, v) => (w(), s("div", { class: y(M(X)("flex flex-col gap-2 text-ink", e.disabled && "opacity-40", r.class)) }, [
|
|
4794
|
+
c("div", { class: y(M(X)("flex flex-col gap-0.5", e.hideLabel && "sr-only")) }, [c("div", ds, [c("span", {
|
|
4791
4795
|
id: f,
|
|
4792
4796
|
class: "text-sm"
|
|
4793
|
-
}, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(
|
|
4797
|
+
}, j(e.label), 1), e.helper && e.helperPlacement === "icon" ? (w(), a(Ea, {
|
|
4794
4798
|
key: 0,
|
|
4795
4799
|
text: e.helper,
|
|
4796
4800
|
label: M(t)("ui.formField.about", { label: e.label })
|
|
@@ -4798,8 +4802,8 @@ var vo = [
|
|
|
4798
4802
|
key: 0,
|
|
4799
4803
|
id: p,
|
|
4800
4804
|
hidden: e.helperPlacement === "icon",
|
|
4801
|
-
class: "text-xs text-
|
|
4802
|
-
}, j(e.helper), 9,
|
|
4805
|
+
class: "text-xs text-ink/65"
|
|
4806
|
+
}, j(e.helper), 9, fs)) : o("", !0)], 2),
|
|
4803
4807
|
d(M(qt), {
|
|
4804
4808
|
modelValue: l.value,
|
|
4805
4809
|
"onUpdate:modelValue": v[0] ||= (e) => l.value = e,
|
|
@@ -4823,16 +4827,16 @@ var vo = [
|
|
|
4823
4827
|
t.icon ? (w(), a(k(t.icon), {
|
|
4824
4828
|
key: 0,
|
|
4825
4829
|
"aria-hidden": "true",
|
|
4826
|
-
class: "mt-0.5 size-4 shrink-0 text-
|
|
4830
|
+
class: "mt-0.5 size-4 shrink-0 text-ink/65 group-data-[state=checked]:text-primary-fg"
|
|
4827
4831
|
})) : o("", !0),
|
|
4828
|
-
c("span",
|
|
4832
|
+
c("span", ps, [c("span", ms, j(t.title), 1), t.description ? (w(), s("span", {
|
|
4829
4833
|
key: 0,
|
|
4830
4834
|
id: `${M(u)}-${n}-description`,
|
|
4831
|
-
class: "text-xs text-
|
|
4832
|
-
}, j(t.description), 9,
|
|
4835
|
+
class: "text-xs text-ink/65"
|
|
4836
|
+
}, j(t.description), 9, hs)) : o("", !0)]),
|
|
4833
4837
|
v[1] ||= c("span", {
|
|
4834
4838
|
"aria-hidden": "true",
|
|
4835
|
-
class: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border border-
|
|
4839
|
+
class: "mt-0.5 flex size-4 shrink-0 items-center justify-center rounded-full border border-ink/45 bg-surface group-data-[state=checked]:border-primary"
|
|
4836
4840
|
}, [c("span", { class: "size-2 scale-0 rounded-full bg-primary transition-transform group-data-[state=checked]:scale-100 motion-reduce:transition-none" })], -1)
|
|
4837
4841
|
]),
|
|
4838
4842
|
_: 2
|
|
@@ -4853,14 +4857,14 @@ var vo = [
|
|
|
4853
4857
|
"aria-invalid",
|
|
4854
4858
|
"class"
|
|
4855
4859
|
]),
|
|
4856
|
-
d(
|
|
4860
|
+
d(ka, {
|
|
4857
4861
|
id: m,
|
|
4858
4862
|
status: e.errorText ? "error" : void 0,
|
|
4859
4863
|
text: e.errorText
|
|
4860
4864
|
}, null, 8, ["status", "text"])
|
|
4861
4865
|
], 2));
|
|
4862
4866
|
}
|
|
4863
|
-
}),
|
|
4867
|
+
}), _s = /* @__PURE__ */ f({
|
|
4864
4868
|
__name: "EmptyState",
|
|
4865
4869
|
props: {
|
|
4866
4870
|
title: {},
|
|
@@ -4895,19 +4899,19 @@ var vo = [
|
|
|
4895
4899
|
return (r, i) => (w(), s("div", { class: y(M(X)("flex flex-col items-center text-center", n[e.size].root, t.class)) }, [
|
|
4896
4900
|
e.icon ? (w(), s("div", {
|
|
4897
4901
|
key: 0,
|
|
4898
|
-
class: y(M(X)("flex text-
|
|
4902
|
+
class: y(M(X)("flex text-ink/45", e.size === "md" && "mb-1", e.ui?.icon)),
|
|
4899
4903
|
"aria-hidden": "true"
|
|
4900
4904
|
}, [(w(), a(k(e.icon), { class: y(n[e.size].icon) }, null, 8, ["class"]))], 2)) : o("", !0),
|
|
4901
4905
|
r.$slots.title || e.title ? (w(), a(k(e.headingLevel ? `h${e.headingLevel}` : "p"), {
|
|
4902
4906
|
key: 1,
|
|
4903
|
-
class: y(M(X)("font-bold text-
|
|
4907
|
+
class: y(M(X)("font-bold text-ink", n[e.size].title, e.ui?.title))
|
|
4904
4908
|
}, {
|
|
4905
4909
|
default: V(() => [O(r.$slots, "title", {}, () => [u(j(e.title), 1)])]),
|
|
4906
4910
|
_: 3
|
|
4907
4911
|
}, 8, ["class"])) : o("", !0),
|
|
4908
4912
|
r.$slots.description || e.description ? (w(), s("p", {
|
|
4909
4913
|
key: 2,
|
|
4910
|
-
class: y(M(X)("max-w-sm text-
|
|
4914
|
+
class: y(M(X)("max-w-sm text-ink/65", n[e.size].description, e.ui?.description))
|
|
4911
4915
|
}, [O(r.$slots, "description", {}, () => [u(j(e.description), 1)])], 2)) : o("", !0),
|
|
4912
4916
|
O(r.$slots, "default"),
|
|
4913
4917
|
r.$slots.actions ? (w(), s("div", {
|
|
@@ -4916,15 +4920,15 @@ var vo = [
|
|
|
4916
4920
|
}, [O(r.$slots, "actions")], 2)) : o("", !0)
|
|
4917
4921
|
], 2));
|
|
4918
4922
|
}
|
|
4919
|
-
}),
|
|
4923
|
+
}), vs = new Intl.Collator("en-GB", {
|
|
4920
4924
|
numeric: !0,
|
|
4921
4925
|
sensitivity: "base"
|
|
4922
4926
|
});
|
|
4923
|
-
function
|
|
4927
|
+
function ys(e, t) {
|
|
4924
4928
|
let n = e == null || e === "", r = t == null || t === "";
|
|
4925
|
-
return n || r ? n === r ? 0 : n ? 1 : -1 : typeof e == "number" && typeof t == "number" ? e - t : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : typeof e == "boolean" && typeof t == "boolean" ? Number(e) - Number(t) :
|
|
4929
|
+
return n || r ? n === r ? 0 : n ? 1 : -1 : typeof e == "number" && typeof t == "number" ? e - t : e instanceof Date && t instanceof Date ? e.getTime() - t.getTime() : typeof e == "boolean" && typeof t == "boolean" ? Number(e) - Number(t) : vs.compare(String(e), String(t));
|
|
4926
4930
|
}
|
|
4927
|
-
function
|
|
4931
|
+
function bs(e, t, n) {
|
|
4928
4932
|
let r = n && t.find((e) => e.key === n.key);
|
|
4929
4933
|
if (!n || !r) return [...e];
|
|
4930
4934
|
let i = r.sortValue ?? ((e) => e[r.key]), a = n.direction === "asc" ? 1 : -1;
|
|
@@ -4934,10 +4938,10 @@ function Ss(e, t, n) {
|
|
|
4934
4938
|
value: i(e)
|
|
4935
4939
|
})).sort((e, t) => {
|
|
4936
4940
|
let n = e.value === null || e.value === void 0 || e.value === "", r = t.value === null || t.value === void 0 || t.value === "";
|
|
4937
|
-
return (n || r ?
|
|
4941
|
+
return (n || r ? ys(e.value, t.value) : a * ys(e.value, t.value)) || e.index - t.index;
|
|
4938
4942
|
}).map((e) => e.row);
|
|
4939
4943
|
}
|
|
4940
|
-
function
|
|
4944
|
+
function xs(e, t) {
|
|
4941
4945
|
return e?.key === t ? e.direction === "asc" ? {
|
|
4942
4946
|
key: t,
|
|
4943
4947
|
direction: "desc"
|
|
@@ -4947,24 +4951,24 @@ function Cs(e, t) {
|
|
|
4947
4951
|
};
|
|
4948
4952
|
}
|
|
4949
4953
|
// src/components/Table/Table.vue?vue&type=script&setup=true&lang.ts
|
|
4950
|
-
var
|
|
4954
|
+
var Ss = [
|
|
4951
4955
|
"tabindex",
|
|
4952
4956
|
"role",
|
|
4953
4957
|
"aria-labelledby",
|
|
4954
4958
|
"aria-label"
|
|
4955
|
-
],
|
|
4959
|
+
], Cs = ["aria-busy"], ws = {
|
|
4956
4960
|
key: 1,
|
|
4957
4961
|
class: "sr-only"
|
|
4958
|
-
},
|
|
4962
|
+
}, Ts = ["aria-sort"], Es = {
|
|
4959
4963
|
key: 0,
|
|
4960
4964
|
class: "sr-only"
|
|
4961
|
-
},
|
|
4965
|
+
}, Ds = ["onClick"], Os = { key: 0 }, ks = ["colspan"], As = {
|
|
4962
4966
|
key: 0,
|
|
4963
4967
|
class: "inline-flex items-center gap-2"
|
|
4964
|
-
},
|
|
4968
|
+
}, js = ["onClick"], Ms = {
|
|
4965
4969
|
key: 1,
|
|
4966
4970
|
"aria-hidden": "true"
|
|
4967
|
-
},
|
|
4971
|
+
}, Ns = ["colspan"], Ps = "relative z-1 w-0 cursor-pointer", Fs = "absolute inset-0 outline-none", Is = "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Ls = "outline-2 -outline-offset-2 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", Rs = /* @__PURE__ */ f({
|
|
4968
4972
|
__name: "Table",
|
|
4969
4973
|
props: /*@__PURE__*/ g({
|
|
4970
4974
|
columns: {},
|
|
@@ -5014,7 +5018,7 @@ var ws = [
|
|
|
5014
5018
|
function T(e, t) {
|
|
5015
5019
|
e.target.closest("button, label, .sr-only") || t();
|
|
5016
5020
|
}
|
|
5017
|
-
let A = i(() => r.columns.length + +!!r.selectable), N = i(() => r.manualSort ? r.rows :
|
|
5021
|
+
let A = i(() => r.columns.length + +!!r.selectable), N = i(() => r.manualSort ? r.rows : bs(r.rows, r.columns, l.value));
|
|
5018
5022
|
function I(e, t) {
|
|
5019
5023
|
return typeof r.rowKey == "function" ? r.rowKey(e, t) : r.rowKey ? e[r.rowKey] : t;
|
|
5020
5024
|
}
|
|
@@ -5031,7 +5035,7 @@ var ws = [
|
|
|
5031
5035
|
"after:absolute after:inset-0 after:outline-2 after:-outline-offset-2 after:outline-transparent",
|
|
5032
5036
|
"focus-visible:after:outline-focus forced-colors:not-focus-visible:after:outline-0"
|
|
5033
5037
|
], H = [
|
|
5034
|
-
"cursor-pointer hover:bg-
|
|
5038
|
+
"cursor-pointer hover:bg-hover has-[[data-row-link]:focus-visible]:bg-hover",
|
|
5035
5039
|
"[&_:is(a,button,input,select,textarea,label,[tabindex]):not([data-row-link],[data-row-overlay])]:relative",
|
|
5036
5040
|
"[&_:is(a,button,input,select,textarea,label,[tabindex]):not([data-row-link],[data-row-overlay])]:z-1"
|
|
5037
5041
|
], U = i(() => {
|
|
@@ -5051,13 +5055,13 @@ var ws = [
|
|
|
5051
5055
|
}), S(() => q?.disconnect()), (i, f) => (w(), s("div", {
|
|
5052
5056
|
ref_key: "scroller",
|
|
5053
5057
|
ref: W,
|
|
5054
|
-
class: y(M(X)("relative overflow-auto", G.value &&
|
|
5058
|
+
class: y(M(X)("relative overflow-auto", G.value && Ls, r.class)),
|
|
5055
5059
|
tabindex: G.value ? 0 : void 0,
|
|
5056
5060
|
role: G.value ? "region" : void 0,
|
|
5057
5061
|
"aria-labelledby": G.value && (e.caption || i.$slots.caption) ? p : void 0,
|
|
5058
5062
|
"aria-label": G.value && !e.caption && !i.$slots.caption ? M(t)("ui.table.table") : void 0
|
|
5059
5063
|
}, [c("table", {
|
|
5060
|
-
class: y(M(X)("w-full border-separate border-spacing-0 text-left text-sm text-
|
|
5064
|
+
class: y(M(X)("w-full border-separate border-spacing-0 text-left text-sm text-ink", e.ui?.table)),
|
|
5061
5065
|
"aria-busy": e.loading || void 0
|
|
5062
5066
|
}, [
|
|
5063
5067
|
e.caption || i.$slots.caption ? (w(), s("caption", {
|
|
@@ -5065,27 +5069,27 @@ var ws = [
|
|
|
5065
5069
|
id: p,
|
|
5066
5070
|
class: y(e.showCaption ? M(X)("px-4 pt-4 pb-2 text-left text-base font-bold", e.inset && "sm:px-6") : "sr-only")
|
|
5067
5071
|
}, [O(i.$slots, "caption", {}, () => [u(j(e.caption), 1)])], 2)) : o("", !0),
|
|
5068
|
-
c("thead", { class: y(M(X)(e.stickyHeader && "sticky top-0 z-10 bg-
|
|
5072
|
+
c("thead", { class: y(M(X)(e.stickyHeader && "sticky top-0 z-10 bg-surface", e.ui?.header)) }, [c("tr", null, [e.selectable ? (w(), s("th", {
|
|
5069
5073
|
key: 0,
|
|
5070
5074
|
scope: "col",
|
|
5071
|
-
class: y(M(X)("border-b border-
|
|
5075
|
+
class: y(M(X)("border-b border-ink/10", U.value, h.value.length && Ps)),
|
|
5072
5076
|
onClick: f[1] ||= (e) => T(e, () => h.value.length && x(b.value !== !0))
|
|
5073
|
-
}, [h.value.length ? (w(), a(
|
|
5077
|
+
}, [h.value.length ? (w(), a(qo, {
|
|
5074
5078
|
key: 0,
|
|
5075
5079
|
"model-value": b.value,
|
|
5076
5080
|
label: M(t)("ui.table.selectAll"),
|
|
5077
5081
|
"hide-label": "",
|
|
5078
5082
|
"onUpdate:modelValue": f[0] ||= (e) => x(e === !0)
|
|
5079
|
-
}, null, 8, ["model-value", "label"])) : (w(), s("span",
|
|
5083
|
+
}, null, 8, ["model-value", "label"])) : (w(), s("span", ws, j(M(t)("ui.table.select")), 1))], 2)) : o("", !0), (w(!0), s(n, null, D(e.columns, (e) => (w(), s("th", {
|
|
5080
5084
|
key: e.key,
|
|
5081
5085
|
scope: "col",
|
|
5082
5086
|
"aria-sort": L(e),
|
|
5083
|
-
class: y(M(X)("border-b border-
|
|
5084
|
-
}, [O(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (w(), s("span",
|
|
5087
|
+
class: y(M(X)("border-b border-ink/10 font-bold text-ink/65", U.value, ee(e)))
|
|
5088
|
+
}, [O(i.$slots, `header-${e.key}`, { column: e }, () => [e.hideLabel ? (w(), s("span", Es, j(e.label), 1)) : e.sortable ? (w(), s("button", {
|
|
5085
5089
|
key: 1,
|
|
5086
5090
|
type: "button",
|
|
5087
|
-
class: y(M(X)("-mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 font-bold hover:text-
|
|
5088
|
-
onClick: (t) => l.value = M(
|
|
5091
|
+
class: y(M(X)("-mx-1 inline-flex cursor-pointer items-center gap-1 rounded px-1 font-bold hover:text-ink", e.align === "end" && "flex-row-reverse", l.value?.key === e.key && "text-ink", Is)),
|
|
5092
|
+
onClick: (t) => l.value = M(xs)(l.value, e.key)
|
|
5089
5093
|
}, [u(j(e.label) + " ", 1), l.value?.key === e.key && l.value.direction === "asc" ? (w(), a(M(ie), {
|
|
5090
5094
|
key: 0,
|
|
5091
5095
|
class: "size-4 shrink-0",
|
|
@@ -5096,26 +5100,26 @@ var ws = [
|
|
|
5096
5100
|
"aria-hidden": "true"
|
|
5097
5101
|
})) : (w(), a(M(he), {
|
|
5098
5102
|
key: 2,
|
|
5099
|
-
class: "size-4 shrink-0 text-
|
|
5103
|
+
class: "size-4 shrink-0 text-ink/40",
|
|
5100
5104
|
"aria-hidden": "true"
|
|
5101
|
-
}))], 10,
|
|
5105
|
+
}))], 10, Ds)) : (w(), s(n, { key: 2 }, [u(j(e.label), 1)], 64))])], 10, Ts))), 128))])], 2),
|
|
5102
5106
|
c("tbody", { class: y(M(X)(e.loading && N.value.length && "opacity-50 transition-opacity")) }, [
|
|
5103
|
-
N.value.length ? o("", !0) : (w(), s("tr",
|
|
5107
|
+
N.value.length ? o("", !0) : (w(), s("tr", Os, [c("td", {
|
|
5104
5108
|
colspan: A.value,
|
|
5105
|
-
class: "px-4 py-8 text-center text-
|
|
5106
|
-
}, [e.loading ? (w(), s("span",
|
|
5109
|
+
class: "px-4 py-8 text-center text-ink/65"
|
|
5110
|
+
}, [e.loading ? (w(), s("span", As, [d(Gn, { size: "sm" }), f[2] ||= u(" Loading… ", -1)])) : O(i.$slots, "empty", {}, () => [d(_s, {
|
|
5107
5111
|
size: "sm",
|
|
5108
5112
|
description: e.emptyText ?? M(t)("ui.table.empty"),
|
|
5109
5113
|
class: "p-0"
|
|
5110
|
-
}, null, 8, ["description"])], void 0, 1)], 8,
|
|
5114
|
+
}, null, 8, ["description"])], void 0, 1)], 8, ks)])),
|
|
5111
5115
|
(w(!0), s(n, null, D(N.value, (r, c) => (w(), s("tr", {
|
|
5112
5116
|
key: I(r, c),
|
|
5113
5117
|
class: y(M(X)("group/row", z(r, c) && H, e.ui?.row))
|
|
5114
5118
|
}, [e.selectable ? (w(), s("td", {
|
|
5115
5119
|
key: 0,
|
|
5116
|
-
class: y(M(X)("border-b border-
|
|
5120
|
+
class: y(M(X)("border-b border-ink/10 align-middle", !e.inset && "group-last/row:border-b-0", U.value, m(r) && Ps)),
|
|
5117
5121
|
onClick: (e) => m(r) && T(e, () => v(r, c, !g(r, c)))
|
|
5118
|
-
}, [m(r) ? (w(), a(
|
|
5122
|
+
}, [m(r) ? (w(), a(qo, {
|
|
5119
5123
|
key: 0,
|
|
5120
5124
|
"model-value": g(r, c),
|
|
5121
5125
|
label: e.rowLabel ? e.rowLabel(r, c) : M(t)("ui.table.selectRow", { n: c + 1 }),
|
|
@@ -5125,10 +5129,10 @@ var ws = [
|
|
|
5125
5129
|
"model-value",
|
|
5126
5130
|
"label",
|
|
5127
5131
|
"onUpdate:modelValue"
|
|
5128
|
-
])) : o("", !0)], 10,
|
|
5132
|
+
])) : o("", !0)], 10, js)) : o("", !0), (w(!0), s(n, null, D(e.columns, (t) => (w(), a(k(t.rowHeader ? "th" : "td"), {
|
|
5129
5133
|
key: t.key,
|
|
5130
5134
|
scope: t.rowHeader ? "row" : void 0,
|
|
5131
|
-
class: y(M(X)("border-b border-
|
|
5135
|
+
class: y(M(X)("border-b border-ink/10 align-middle", !e.inset && "group-last/row:border-b-0", t.rowHeader ? "font-bold" : "font-normal", t.align === "end" && "tabular-nums", U.value, z(r, c) && "relative", ee(t)))
|
|
5132
5136
|
}, {
|
|
5133
5137
|
default: V(() => [t.key !== R.value && z(r, c) ? (w(), a(k(e.linkComponent), _({
|
|
5134
5138
|
key: 0,
|
|
@@ -5137,7 +5141,7 @@ var ws = [
|
|
|
5137
5141
|
"data-row-overlay": "",
|
|
5138
5142
|
tabindex: "-1",
|
|
5139
5143
|
"aria-hidden": "true",
|
|
5140
|
-
class:
|
|
5144
|
+
class: Fs
|
|
5141
5145
|
}), null, 16)) : o("", !0), t.key === R.value && z(r, c) ? (w(), a(k(e.linkComponent), _({
|
|
5142
5146
|
key: 1,
|
|
5143
5147
|
ref_for: !0
|
|
@@ -5158,33 +5162,33 @@ var ws = [
|
|
|
5158
5162
|
}, () => [u(j(r[t.key] ?? ""), 1)], void 0, 2)]),
|
|
5159
5163
|
_: 2
|
|
5160
5164
|
}, 1032, ["scope", "class"]))), 128))], 2))), 128)),
|
|
5161
|
-
e.inset && N.value.length && !i.$slots.footer ? (w(), s("tr",
|
|
5165
|
+
e.inset && N.value.length && !i.$slots.footer ? (w(), s("tr", Ms, [c("td", {
|
|
5162
5166
|
colspan: A.value,
|
|
5163
5167
|
class: "h-2 p-0 sm:h-4"
|
|
5164
|
-
}, null, 8,
|
|
5168
|
+
}, null, 8, Ns)])) : o("", !0)
|
|
5165
5169
|
], 2),
|
|
5166
5170
|
i.$slots.footer ? (w(), s("tfoot", {
|
|
5167
5171
|
key: 1,
|
|
5168
|
-
class: y(M(X)("font-bold *:*:border-t *:*:border-
|
|
5172
|
+
class: y(M(X)("font-bold *:*:border-t *:*:border-ink/10", e.size === "sm" ? "*:*:px-4 *:*:py-2" : "*:*:px-4 *:*:py-3", e.inset && "*:*:sm:first:pl-6 *:*:sm:last:pr-6"))
|
|
5169
5173
|
}, [O(i.$slots, "footer")], 2)) : o("", !0)
|
|
5170
|
-
], 10,
|
|
5174
|
+
], 10, Cs)], 10, Ss));
|
|
5171
5175
|
}
|
|
5172
|
-
}),
|
|
5176
|
+
}), zs = { class: "flex flex-wrap items-baseline gap-x-2 gap-y-1" }, Bs = { class: "text-2xl font-bold tabular-nums" }, Vs = {
|
|
5173
5177
|
key: 1,
|
|
5174
5178
|
class: "sr-only"
|
|
5175
|
-
},
|
|
5179
|
+
}, Hs = {
|
|
5176
5180
|
key: 2,
|
|
5177
5181
|
class: "font-bold tabular-nums"
|
|
5178
|
-
},
|
|
5182
|
+
}, Us = {
|
|
5179
5183
|
key: 3,
|
|
5180
|
-
class: "text-
|
|
5181
|
-
},
|
|
5184
|
+
class: "text-ink/65"
|
|
5185
|
+
}, Ws = {
|
|
5182
5186
|
key: 1,
|
|
5183
|
-
class: "text-sm text-
|
|
5184
|
-
},
|
|
5187
|
+
class: "text-sm text-ink/65"
|
|
5188
|
+
}, Gs = {
|
|
5185
5189
|
key: 2,
|
|
5186
5190
|
class: "mt-2 text-sm"
|
|
5187
|
-
},
|
|
5191
|
+
}, Ks = /* @__PURE__ */ f({
|
|
5188
5192
|
__name: "StatTile",
|
|
5189
5193
|
props: {
|
|
5190
5194
|
label: {},
|
|
@@ -5211,9 +5215,9 @@ var ws = [
|
|
|
5211
5215
|
let r = i(() => !!(n.href || n.as));
|
|
5212
5216
|
B(() => {});
|
|
5213
5217
|
let l = i(() => n.sentiment ? n.sentiment : n.trend === "up" ? "positive" : n.trend === "down" ? "negative" : "neutral"), f = {
|
|
5214
|
-
positive: "text-green",
|
|
5215
|
-
negative: "text-red",
|
|
5216
|
-
neutral: "text-
|
|
5218
|
+
positive: "text-green-fg",
|
|
5219
|
+
negative: "text-red-fg",
|
|
5220
|
+
neutral: "text-ink/65"
|
|
5217
5221
|
}, p = i(() => n.trend === "up" ? ae : n.trend === "down" ? te : n.trend === "flat" ? re : void 0), m = i(() => ({
|
|
5218
5222
|
up: t("ui.statTile.up"),
|
|
5219
5223
|
down: t("ui.statTile.down"),
|
|
@@ -5224,23 +5228,23 @@ var ws = [
|
|
|
5224
5228
|
href: r.value ? e.href : void 0,
|
|
5225
5229
|
class: y(r.value && "group block h-full cursor-pointer rounded-lg outline-2 outline-offset-2 outline-transparent focus-visible:outline-focus")
|
|
5226
5230
|
}, {
|
|
5227
|
-
default: V(() => [d(
|
|
5231
|
+
default: V(() => [d(da, {
|
|
5228
5232
|
padding: "sm",
|
|
5229
|
-
class: y(M(X)(r.value && "relative h-full transition-[border-color,box-shadow,background-color] duration-150 motion-reduce:transition-none group-hover:border-
|
|
5233
|
+
class: y(M(X)(r.value && "relative h-full transition-[border-color,box-shadow,background-color] duration-150 motion-reduce:transition-none group-hover:border-ink/20 group-hover:shadow-sm group-active:bg-surface-hover", n.class)),
|
|
5230
5234
|
ui: { body: "gap-1" }
|
|
5231
5235
|
}, {
|
|
5232
5236
|
default: V(() => [
|
|
5233
5237
|
r.value ? (w(), a(M(ae), {
|
|
5234
5238
|
key: 0,
|
|
5235
|
-
class: "absolute end-4 top-4 size-4 text-
|
|
5239
|
+
class: "absolute end-4 top-4 size-4 text-ink/65",
|
|
5236
5240
|
"aria-hidden": "true"
|
|
5237
5241
|
})) : o("", !0),
|
|
5238
|
-
c("p", { class: y(M(X)("flex items-center gap-2 text-sm text-
|
|
5242
|
+
c("p", { class: y(M(X)("flex items-center gap-2 text-sm text-ink/65", r.value && "pe-6")) }, [e.icon ? (w(), a(k(e.icon), {
|
|
5239
5243
|
key: 0,
|
|
5240
5244
|
class: "size-4 shrink-0",
|
|
5241
5245
|
"aria-hidden": "true"
|
|
5242
5246
|
})) : o("", !0), u(" " + j(e.label), 1)], 2),
|
|
5243
|
-
c("div",
|
|
5247
|
+
c("div", zs, [c("p", Bs, [O(t.$slots, "value", {}, () => [u(j(e.value ?? "—"), 1)])]), e.change || e.trend ? (w(), s("p", {
|
|
5244
5248
|
key: 0,
|
|
5245
5249
|
class: y(M(X)("inline-flex items-center gap-0.5 text-sm", f[l.value]))
|
|
5246
5250
|
}, [
|
|
@@ -5249,12 +5253,12 @@ var ws = [
|
|
|
5249
5253
|
class: "size-4 shrink-0",
|
|
5250
5254
|
"aria-hidden": "true"
|
|
5251
5255
|
})) : o("", !0),
|
|
5252
|
-
e.trend ? (w(), s("span",
|
|
5253
|
-
e.change ? (w(), s("span",
|
|
5254
|
-
e.changeLabel ? (w(), s("span",
|
|
5256
|
+
e.trend ? (w(), s("span", Vs, j(m.value[e.trend]), 1)) : o("", !0),
|
|
5257
|
+
e.change ? (w(), s("span", Hs, j(e.change), 1)) : o("", !0),
|
|
5258
|
+
e.changeLabel ? (w(), s("span", Us, "\xA0" + j(e.changeLabel), 1)) : o("", !0)
|
|
5255
5259
|
], 2)) : o("", !0)]),
|
|
5256
|
-
e.description || t.$slots.description ? (w(), s("p",
|
|
5257
|
-
t.$slots.footer && !r.value ? (w(), s("div",
|
|
5260
|
+
e.description || t.$slots.description ? (w(), s("p", Ws, [O(t.$slots, "description", {}, () => [u(j(e.description), 1)])])) : o("", !0),
|
|
5261
|
+
t.$slots.footer && !r.value ? (w(), s("div", Gs, [O(t.$slots, "footer")])) : o("", !0)
|
|
5258
5262
|
]),
|
|
5259
5263
|
_: 3
|
|
5260
5264
|
}, 8, ["class"])]),
|
|
@@ -5265,19 +5269,19 @@ var ws = [
|
|
|
5265
5269
|
"class"
|
|
5266
5270
|
]));
|
|
5267
5271
|
}
|
|
5268
|
-
}),
|
|
5272
|
+
}), qs = { class: "col-span-2 text-ink/65 @sm:col-span-1" }, Js = { class: "sr-only" }, Ys = {
|
|
5269
5273
|
key: 0,
|
|
5270
|
-
class: "mt-0.5 block text-
|
|
5271
|
-
},
|
|
5274
|
+
class: "mt-0.5 block text-ink/65"
|
|
5275
|
+
}, Xs = {
|
|
5272
5276
|
key: 0,
|
|
5273
5277
|
class: "justify-self-end"
|
|
5274
|
-
},
|
|
5278
|
+
}, Zs = { class: "text-ink/65" }, Qs = { class: "sr-only" }, $s = {
|
|
5275
5279
|
key: 0,
|
|
5276
|
-
class: "mt-0.5 block font-normal text-
|
|
5277
|
-
},
|
|
5280
|
+
class: "mt-0.5 block font-normal text-ink/65"
|
|
5281
|
+
}, ec = {
|
|
5278
5282
|
key: 1,
|
|
5279
5283
|
class: "mt-1 block font-normal"
|
|
5280
|
-
},
|
|
5284
|
+
}, tc = /* @__PURE__ */ f({
|
|
5281
5285
|
__name: "SummaryList",
|
|
5282
5286
|
props: {
|
|
5283
5287
|
items: {},
|
|
@@ -5298,41 +5302,41 @@ var ws = [
|
|
|
5298
5302
|
md: "@sm:grid-cols-[12rem_1fr_auto]",
|
|
5299
5303
|
lg: "@sm:grid-cols-[16rem_1fr_auto]"
|
|
5300
5304
|
};
|
|
5301
|
-
return (l, d) => (w(), s("div", { class: y(M(X)("@container text-sm text-
|
|
5305
|
+
return (l, d) => (w(), s("div", { class: y(M(X)("@container text-sm text-ink", r.class)) }, [c("dl", { class: y(M(X)(e.layout === "rows" && "flex flex-col", e.layout === "compact" && "grid grid-cols-[1fr_auto] gap-x-4 gap-y-2", e.layout === "stacked" && "grid grid-cols-1 gap-x-6 gap-y-4 @sm:grid-cols-2 @2xl:grid-cols-3")) }, [e.layout === "rows" ? (w(!0), s(n, { key: 0 }, D(e.items, (r, f) => (w(), s("div", {
|
|
5302
5306
|
key: r.label,
|
|
5303
|
-
class: y(M(X)("grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 border-b border-
|
|
5307
|
+
class: y(M(X)("grid grid-cols-[1fr_auto] gap-x-4 gap-y-1 border-b border-ink/10 py-3 first:pt-0 last:border-b-0 last:pb-0", a[e.labelWidth]))
|
|
5304
5308
|
}, [
|
|
5305
|
-
c("dt",
|
|
5309
|
+
c("dt", qs, j(r.label), 1),
|
|
5306
5310
|
c("dd", { class: y(M(X)("min-w-0 break-words", r.emphasis && "font-bold", !l.$slots.action && "col-span-2")) }, [O(l.$slots, "value", {
|
|
5307
5311
|
item: r,
|
|
5308
5312
|
index: f
|
|
5309
5313
|
}, () => [i(r.value) ? (w(), s(n, { key: 1 }, [d[0] ||= c("span", {
|
|
5310
|
-
class: "text-
|
|
5314
|
+
class: "text-ink/40",
|
|
5311
5315
|
"aria-hidden": "true"
|
|
5312
|
-
}, "—", -1), c("span",
|
|
5313
|
-
l.$slots.action ? (w(), s("dd",
|
|
5316
|
+
}, "—", -1), c("span", Js, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]), r.description ? (w(), s("span", Ys, j(r.description), 1)) : o("", !0)], 2),
|
|
5317
|
+
l.$slots.action ? (w(), s("dd", Xs, [O(l.$slots, "action", {
|
|
5314
5318
|
item: r,
|
|
5315
5319
|
index: f
|
|
5316
5320
|
})])) : o("", !0)
|
|
5317
5321
|
], 2))), 128)) : (w(!0), s(n, { key: 1 }, D(e.items, (r, a) => (w(), s("div", {
|
|
5318
5322
|
key: r.label,
|
|
5319
5323
|
class: y(e.layout === "compact" ? "col-span-2 grid grid-cols-subgrid items-baseline" : "flex min-w-0 flex-col gap-1")
|
|
5320
|
-
}, [c("dt",
|
|
5324
|
+
}, [c("dt", Zs, j(r.label), 1), c("dd", { class: y(M(X)("min-w-0 break-words", e.layout === "compact" && "text-right font-bold tabular-nums", r.emphasis && "font-bold")) }, [
|
|
5321
5325
|
O(l.$slots, "value", {
|
|
5322
5326
|
item: r,
|
|
5323
5327
|
index: a
|
|
5324
5328
|
}, () => [i(r.value) ? (w(), s(n, { key: 1 }, [d[1] ||= c("span", {
|
|
5325
|
-
class: "text-
|
|
5329
|
+
class: "text-ink/40",
|
|
5326
5330
|
"aria-hidden": "true"
|
|
5327
|
-
}, "—", -1), c("span",
|
|
5328
|
-
r.description ? (w(), s("span",
|
|
5329
|
-
l.$slots.action ? (w(), s("span",
|
|
5331
|
+
}, "—", -1), c("span", Qs, j(e.emptyLabel ?? M(t)("ui.summaryList.notSet")), 1)], 64)) : (w(), s(n, { key: 0 }, [u(j(r.value), 1)], 64))]),
|
|
5332
|
+
r.description ? (w(), s("span", $s, j(r.description), 1)) : o("", !0),
|
|
5333
|
+
l.$slots.action ? (w(), s("span", ec, [O(l.$slots, "action", {
|
|
5330
5334
|
item: r,
|
|
5331
5335
|
index: a
|
|
5332
5336
|
})])) : o("", !0)
|
|
5333
5337
|
], 2)], 2))), 128))], 2)], 2));
|
|
5334
5338
|
}
|
|
5335
|
-
}),
|
|
5339
|
+
}), nc = { class: "flex h-5 shrink-0 items-center" }, rc = { class: "sr-only" }, ic = /* @__PURE__ */ f({
|
|
5336
5340
|
__name: "Checklist",
|
|
5337
5341
|
props: {
|
|
5338
5342
|
items: {},
|
|
@@ -5350,19 +5354,19 @@ var ws = [
|
|
|
5350
5354
|
return (r, i) => (w(), s("ul", { class: y(M(X)("flex flex-col gap-2 text-sm", t.class)) }, [(w(!0), s(n, null, D(e.items, (t) => (w(), s("li", {
|
|
5351
5355
|
key: t.label,
|
|
5352
5356
|
class: "flex items-start gap-2"
|
|
5353
|
-
}, [c("span",
|
|
5357
|
+
}, [c("span", nc, [t.done ? (w(), a(M(ve), {
|
|
5354
5358
|
key: 0,
|
|
5355
|
-
class: "size-4 text-green",
|
|
5359
|
+
class: "size-4 text-green-fg",
|
|
5356
5360
|
"aria-hidden": "true"
|
|
5357
5361
|
})) : (w(), a(M(ge), {
|
|
5358
5362
|
key: 1,
|
|
5359
|
-
class: y(M(X)("size-4", e.invalid ? "text-red" : "text-
|
|
5363
|
+
class: y(M(X)("size-4", e.invalid ? "text-red-fg" : "text-ink/40")),
|
|
5360
5364
|
"aria-hidden": "true"
|
|
5361
|
-
}, null, 8, ["class"]))]), c("span", { class: y(t.done ? "text-
|
|
5365
|
+
}, null, 8, ["class"]))]), c("span", { class: y(t.done ? "text-ink" : "text-ink/65") }, [u(j(t.label), 1), c("span", rc, j(t.done ? " (done)" : " (to do)"), 1)], 2)]))), 128))], 2));
|
|
5362
5366
|
}
|
|
5363
5367
|
});
|
|
5364
5368
|
// src/lib/dates.ts
|
|
5365
|
-
function
|
|
5369
|
+
function ac(e) {
|
|
5366
5370
|
if (e instanceof Date) return e;
|
|
5367
5371
|
if (typeof e == "string" && /^\d{4}-\d{2}-\d{2}$/.test(e)) {
|
|
5368
5372
|
let [t, n, r] = e.split("-").map(Number);
|
|
@@ -5370,59 +5374,59 @@ function sc(e) {
|
|
|
5370
5374
|
}
|
|
5371
5375
|
return new Date(e);
|
|
5372
5376
|
}
|
|
5373
|
-
var
|
|
5377
|
+
var oc = [
|
|
5374
5378
|
["year", 31536e3],
|
|
5375
5379
|
["month", 2592e3],
|
|
5376
5380
|
["week", 604800],
|
|
5377
5381
|
["day", 86400],
|
|
5378
5382
|
["hour", 3600],
|
|
5379
5383
|
["minute", 60]
|
|
5380
|
-
],
|
|
5381
|
-
function
|
|
5382
|
-
let n = Math.round((
|
|
5384
|
+
], sc = new Intl.RelativeTimeFormat("en-GB", { numeric: "auto" });
|
|
5385
|
+
function cc(e, t = /* @__PURE__ */ new Date()) {
|
|
5386
|
+
let n = Math.round((ac(e).getTime() - t.getTime()) / 1e3);
|
|
5383
5387
|
if (Math.abs(n) < 60) return "Just now";
|
|
5384
|
-
for (let [e, t] of
|
|
5385
|
-
let r =
|
|
5388
|
+
for (let [e, t] of oc) if (Math.abs(n) >= t) {
|
|
5389
|
+
let r = sc.format(Math.trunc(n / t), e);
|
|
5386
5390
|
return r.charAt(0).toUpperCase() + r.slice(1);
|
|
5387
5391
|
}
|
|
5388
5392
|
return "Just now";
|
|
5389
5393
|
}
|
|
5390
|
-
function
|
|
5391
|
-
let t =
|
|
5394
|
+
function lc(e) {
|
|
5395
|
+
let t = ac(e), n = t.toLocaleDateString("en-GB", { weekday: "long" }), r = t.toLocaleTimeString("en-GB", {
|
|
5392
5396
|
hour: "2-digit",
|
|
5393
5397
|
minute: "2-digit"
|
|
5394
5398
|
});
|
|
5395
|
-
return `${n} ${
|
|
5399
|
+
return `${n} ${uc(t)} at ${r}`;
|
|
5396
5400
|
}
|
|
5397
|
-
function
|
|
5398
|
-
return
|
|
5401
|
+
function uc(e) {
|
|
5402
|
+
return ac(e).toLocaleDateString("en-GB", {
|
|
5399
5403
|
day: "numeric",
|
|
5400
5404
|
month: "long",
|
|
5401
5405
|
year: "numeric"
|
|
5402
5406
|
});
|
|
5403
5407
|
}
|
|
5404
|
-
function
|
|
5405
|
-
let n =
|
|
5408
|
+
function dc(e, t = /* @__PURE__ */ new Date()) {
|
|
5409
|
+
let n = ac(e), r = t.getFullYear() - n.getFullYear(), i = t.getMonth() - n.getMonth();
|
|
5406
5410
|
return (i < 0 || i === 0 && t.getDate() < n.getDate()) && r--, r;
|
|
5407
5411
|
}
|
|
5408
|
-
function
|
|
5409
|
-
let n =
|
|
5412
|
+
function fc(e, t = /* @__PURE__ */ new Date()) {
|
|
5413
|
+
let n = ac(e), r = new Date(t.getFullYear(), t.getMonth(), t.getDate()), i = (e) => {
|
|
5410
5414
|
let t = new Date(e, n.getMonth(), n.getDate());
|
|
5411
5415
|
return t.getMonth() === n.getMonth() ? t : new Date(e, 2, 1);
|
|
5412
5416
|
}, a = i(r.getFullYear());
|
|
5413
5417
|
return a < r && (a = i(r.getFullYear() + 1)), Math.round((a.getTime() - r.getTime()) / 864e5);
|
|
5414
5418
|
}
|
|
5415
5419
|
// src/lib/useNow.ts
|
|
5416
|
-
var
|
|
5417
|
-
function
|
|
5420
|
+
var pc = E(/* @__PURE__ */ new Date()), mc = 0, hc;
|
|
5421
|
+
function gc() {
|
|
5418
5422
|
return C(() => {
|
|
5419
|
-
|
|
5423
|
+
mc++ === 0 && (pc.value = /* @__PURE__ */ new Date(), hc = setInterval(() => pc.value = /* @__PURE__ */ new Date(), 3e4));
|
|
5420
5424
|
}), S(() => {
|
|
5421
|
-
--
|
|
5422
|
-
}),
|
|
5425
|
+
--mc === 0 && clearInterval(hc);
|
|
5426
|
+
}), pc;
|
|
5423
5427
|
}
|
|
5424
5428
|
// src/components/RelativeTime/RelativeTime.vue?vue&type=script&setup=true&lang.ts
|
|
5425
|
-
var
|
|
5429
|
+
var _c = ["datetime"], vc = /* @__PURE__ */ f({
|
|
5426
5430
|
__name: "RelativeTime",
|
|
5427
5431
|
props: {
|
|
5428
5432
|
date: {},
|
|
@@ -5437,17 +5441,17 @@ var yc = ["datetime"], bc = /* @__PURE__ */ f({
|
|
|
5437
5441
|
] }
|
|
5438
5442
|
},
|
|
5439
5443
|
setup(e) {
|
|
5440
|
-
let t = e, n =
|
|
5441
|
-
return (e, n) => (w(), a(
|
|
5444
|
+
let t = e, n = gc(), r = i(() => ac(t.date)), o = i(() => cc(r.value, t.now ?? n.value)), s = i(() => t.tooltip ? t.tooltip(r.value) : lc(r.value));
|
|
5445
|
+
return (e, n) => (w(), a(yo, { text: s.value }, {
|
|
5442
5446
|
default: V(() => [c("time", {
|
|
5443
5447
|
datetime: r.value.toISOString(),
|
|
5444
5448
|
tabindex: "0",
|
|
5445
5449
|
class: y(M(X)("cursor-default rounded-sm underline decoration-current/40 decoration-dotted underline-offset-2", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", t.class))
|
|
5446
|
-
}, j(o.value), 11,
|
|
5450
|
+
}, j(o.value), 11, _c)]),
|
|
5447
5451
|
_: 1
|
|
5448
5452
|
}, 8, ["text"]));
|
|
5449
5453
|
}
|
|
5450
|
-
}),
|
|
5454
|
+
}), yc = ["data-birth-date"], bc = /* @__PURE__ */ f({
|
|
5451
5455
|
__name: "Age",
|
|
5452
5456
|
props: {
|
|
5453
5457
|
birthDate: {},
|
|
@@ -5462,26 +5466,26 @@ var yc = ["datetime"], bc = /* @__PURE__ */ f({
|
|
|
5462
5466
|
] }
|
|
5463
5467
|
},
|
|
5464
5468
|
setup(e) {
|
|
5465
|
-
let { t } = K(), r = e, l =
|
|
5466
|
-
let e =
|
|
5467
|
-
return `${t("ui.age.born", { date:
|
|
5469
|
+
let { t } = K(), r = e, l = gc(), d = i(() => ac(r.birthDate)), f = i(() => r.now ?? l.value), p = i(() => dc(d.value, f.value)), m = i(() => {
|
|
5470
|
+
let e = fc(d.value, f.value), n = e === 0 ? ` · ${t("ui.age.birthdayToday")}` : e === 1 ? ` · ${t("ui.age.birthdayTomorrow")}` : e <= 7 ? ` · ${t("ui.age.birthdayInDays", { days: e })}` : "";
|
|
5471
|
+
return `${t("ui.age.born", { date: uc(d.value) })}${n}`;
|
|
5468
5472
|
}), h = i(() => {
|
|
5469
5473
|
let e = d.value;
|
|
5470
5474
|
return `${e.getFullYear()}-${String(e.getMonth() + 1).padStart(2, "0")}-${String(e.getDate()).padStart(2, "0")}`;
|
|
5471
5475
|
});
|
|
5472
|
-
return (t, i) => (w(), a(
|
|
5476
|
+
return (t, i) => (w(), a(yo, { text: m.value }, {
|
|
5473
5477
|
default: V(() => [c("span", {
|
|
5474
5478
|
tabindex: "0",
|
|
5475
5479
|
"data-birth-date": h.value,
|
|
5476
5480
|
class: y(M(X)("cursor-default rounded-sm tabular-nums underline decoration-current/40 decoration-dotted underline-offset-2", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", r.class))
|
|
5477
|
-
}, [u(j(p.value), 1), e.suffix ? (w(), s(n, { key: 0 }, [u("\xA0" + j(e.suffix), 1)], 64)) : o("", !0)], 10,
|
|
5481
|
+
}, [u(j(p.value), 1), e.suffix ? (w(), s(n, { key: 0 }, [u("\xA0" + j(e.suffix), 1)], 64)) : o("", !0)], 10, yc)]),
|
|
5478
5482
|
_: 1
|
|
5479
5483
|
}, 8, ["text"]));
|
|
5480
5484
|
}
|
|
5481
|
-
}),
|
|
5482
|
-
class: "text-sm text-
|
|
5485
|
+
}), xc = {
|
|
5486
|
+
class: "text-sm text-ink/65",
|
|
5483
5487
|
"aria-live": "polite"
|
|
5484
|
-
},
|
|
5488
|
+
}, Sc = { class: "text-ink" }, Cc = /* @__PURE__ */ f({
|
|
5485
5489
|
__name: "Steps",
|
|
5486
5490
|
props: {
|
|
5487
5491
|
steps: {},
|
|
@@ -5497,16 +5501,16 @@ var yc = ["datetime"], bc = /* @__PURE__ */ f({
|
|
|
5497
5501
|
},
|
|
5498
5502
|
setup(e) {
|
|
5499
5503
|
let t = e;
|
|
5500
|
-
return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3", t.class)) }, [c("p",
|
|
5504
|
+
return (n, r) => (w(), s("div", { class: y(M(X)("flex flex-col gap-3", t.class)) }, [c("p", xc, [d(M(W), {
|
|
5501
5505
|
keypath: "ui.steps.stepOfNamed",
|
|
5502
5506
|
scope: "global",
|
|
5503
5507
|
tag: "span"
|
|
5504
5508
|
}, {
|
|
5505
5509
|
current: V(() => [u(j(e.step + 1), 1)]),
|
|
5506
5510
|
total: V(() => [u(j(e.steps.length), 1)]),
|
|
5507
|
-
name: V(() => [c("span",
|
|
5511
|
+
name: V(() => [c("span", Sc, j(e.steps[e.step]), 1)]),
|
|
5508
5512
|
_: 1
|
|
5509
|
-
})]), d(
|
|
5513
|
+
})]), d(_i, {
|
|
5510
5514
|
label: e.label,
|
|
5511
5515
|
segments: "",
|
|
5512
5516
|
value: e.step + 1,
|
|
@@ -5517,7 +5521,7 @@ var yc = ["datetime"], bc = /* @__PURE__ */ f({
|
|
|
5517
5521
|
"max"
|
|
5518
5522
|
])], 2));
|
|
5519
5523
|
}
|
|
5520
|
-
}),
|
|
5524
|
+
}), wc = /* @__PURE__ */ f({
|
|
5521
5525
|
__name: "Tabs",
|
|
5522
5526
|
props: /*@__PURE__*/ g({
|
|
5523
5527
|
tabs: {},
|
|
@@ -5536,10 +5540,10 @@ var yc = ["datetime"], bc = /* @__PURE__ */ f({
|
|
|
5536
5540
|
emits: ["update:modelValue"],
|
|
5537
5541
|
setup(e) {
|
|
5538
5542
|
let t = e, r = F(e, "modelValue"), i = [
|
|
5539
|
-
"relative inline-flex h-10 items-center gap-2 px-3 text-sm whitespace-nowrap text-
|
|
5543
|
+
"relative inline-flex h-10 items-center gap-2 px-3 text-sm whitespace-nowrap text-ink/65 outline-none",
|
|
5540
5544
|
"[&_svg]:size-4 [&_svg]:shrink-0",
|
|
5541
|
-
"not-data-disabled:hover:text-
|
|
5542
|
-
"data-[state=active]:font-bold data-[state=active]:text-primary",
|
|
5545
|
+
"not-data-disabled:hover:text-ink",
|
|
5546
|
+
"data-[state=active]:font-bold data-[state=active]:text-primary-fg",
|
|
5543
5547
|
"focus-visible:rounded focus-visible:ring-2 focus-visible:ring-primary",
|
|
5544
5548
|
"data-disabled:cursor-not-allowed data-disabled:opacity-40"
|
|
5545
5549
|
];
|
|
@@ -5550,7 +5554,7 @@ var yc = ["datetime"], bc = /* @__PURE__ */ f({
|
|
|
5550
5554
|
}, {
|
|
5551
5555
|
default: V(() => [d(M(dn), {
|
|
5552
5556
|
"aria-label": e.label,
|
|
5553
|
-
class: "relative flex overflow-x-auto overflow-y-hidden border-b border-
|
|
5557
|
+
class: "relative flex overflow-x-auto overflow-y-hidden border-b border-ink/10"
|
|
5554
5558
|
}, {
|
|
5555
5559
|
default: V(() => [(w(!0), s(n, null, D(e.tabs, (e) => (w(), a(M(pn), {
|
|
5556
5560
|
key: e.value,
|
|
@@ -5579,11 +5583,11 @@ var yc = ["datetime"], bc = /* @__PURE__ */ f({
|
|
|
5579
5583
|
_: 3
|
|
5580
5584
|
}, 8, ["model-value", "class"]));
|
|
5581
5585
|
}
|
|
5582
|
-
}),
|
|
5583
|
-
function
|
|
5586
|
+
}), Tc = 0, Ec = () => `notification-${Date.now().toString(36)}-${(Tc++).toString(36)}`;
|
|
5587
|
+
function Dc(e, t) {
|
|
5584
5588
|
return t === void 0 ? e.type === "error" ? Infinity : e.action ? e.compact ? 1e4 : Infinity : 6e3 : t;
|
|
5585
5589
|
}
|
|
5586
|
-
function
|
|
5590
|
+
function Oc(e = []) {
|
|
5587
5591
|
let t = T({
|
|
5588
5592
|
items: e.map(n).sort((e, t) => t.createdAt.getTime() - e.createdAt.getTime()),
|
|
5589
5593
|
toasts: [],
|
|
@@ -5593,7 +5597,7 @@ function Ac(e = []) {
|
|
|
5593
5597
|
function n(e) {
|
|
5594
5598
|
return {
|
|
5595
5599
|
...e,
|
|
5596
|
-
id: e.id ??
|
|
5600
|
+
id: e.id ?? Ec(),
|
|
5597
5601
|
type: e.type ?? "info",
|
|
5598
5602
|
createdAt: e.createdAt ?? /* @__PURE__ */ new Date(),
|
|
5599
5603
|
read: e.read ?? !1
|
|
@@ -5603,7 +5607,7 @@ function Ac(e = []) {
|
|
|
5603
5607
|
let i = n(e);
|
|
5604
5608
|
return t.items = [i, ...t.items.filter((e) => e.id !== i.id)], r.toast !== !1 && !t.paneOpen && (t.toasts = [...t.toasts.filter((e) => e.id !== i.id), {
|
|
5605
5609
|
id: i.id,
|
|
5606
|
-
duration:
|
|
5610
|
+
duration: Dc(i, r.duration),
|
|
5607
5611
|
item: i
|
|
5608
5612
|
}]), i.id;
|
|
5609
5613
|
}
|
|
@@ -5652,25 +5656,25 @@ function Ac(e = []) {
|
|
|
5652
5656
|
markAllRead: c
|
|
5653
5657
|
};
|
|
5654
5658
|
}
|
|
5655
|
-
var
|
|
5656
|
-
function
|
|
5657
|
-
return
|
|
5659
|
+
var kc;
|
|
5660
|
+
function Ac() {
|
|
5661
|
+
return kc ??= Oc();
|
|
5658
5662
|
}
|
|
5659
5663
|
// src/components/Notification/Notification.vue?vue&type=script&setup=true&lang.ts
|
|
5660
|
-
var
|
|
5664
|
+
var jc = { class: "sr-only" }, Mc = {
|
|
5661
5665
|
key: 0,
|
|
5662
|
-
class: "text-
|
|
5663
|
-
},
|
|
5666
|
+
class: "text-ink/65 [&_a]:font-bold [&_a]:text-primary-fg [&_a]:underline [&_b]:font-bold [&_b]:text-ink [&_strong]:font-bold [&_strong]:text-ink"
|
|
5667
|
+
}, Nc = {
|
|
5664
5668
|
key: 1,
|
|
5665
|
-
class: "flex items-center gap-1.5 text-xs text-
|
|
5666
|
-
},
|
|
5669
|
+
class: "flex items-center gap-1.5 text-xs text-ink/65"
|
|
5670
|
+
}, Pc = {
|
|
5667
5671
|
key: 0,
|
|
5668
5672
|
class: "size-2 shrink-0 rounded-full bg-primary",
|
|
5669
5673
|
"aria-hidden": "true"
|
|
5670
|
-
},
|
|
5674
|
+
}, Fc = {
|
|
5671
5675
|
key: 1,
|
|
5672
5676
|
class: "sr-only"
|
|
5673
|
-
},
|
|
5677
|
+
}, Ic = ["href"], Lc = /* @__PURE__ */ f({
|
|
5674
5678
|
__name: "Notification",
|
|
5675
5679
|
props: {
|
|
5676
5680
|
type: { default: "info" },
|
|
@@ -5700,22 +5704,22 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
5700
5704
|
let { t: n } = K(), r = e, l = t, f = `${P()}-title`, p = {
|
|
5701
5705
|
info: {
|
|
5702
5706
|
icon: Te,
|
|
5703
|
-
colour: "text-blue",
|
|
5707
|
+
colour: "text-blue-fg",
|
|
5704
5708
|
word: "Information"
|
|
5705
5709
|
},
|
|
5706
5710
|
success: {
|
|
5707
5711
|
icon: ve,
|
|
5708
|
-
colour: "text-green",
|
|
5712
|
+
colour: "text-green-fg",
|
|
5709
5713
|
word: "Success"
|
|
5710
5714
|
},
|
|
5711
5715
|
warning: {
|
|
5712
5716
|
icon: Re,
|
|
5713
|
-
colour: "text-yellow",
|
|
5717
|
+
colour: "text-yellow-fg",
|
|
5714
5718
|
word: "Warning"
|
|
5715
5719
|
},
|
|
5716
5720
|
error: {
|
|
5717
5721
|
icon: be,
|
|
5718
|
-
colour: "text-red",
|
|
5722
|
+
colour: "text-red-fg",
|
|
5719
5723
|
word: "Error"
|
|
5720
5724
|
}
|
|
5721
5725
|
}, m = () => typeof r.description == "function" ? r.description() : r.description, h = i(() => r.compact && r.appearance === "card");
|
|
@@ -5725,7 +5729,7 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
5725
5729
|
return (t, i) => (w(), s("div", {
|
|
5726
5730
|
"aria-labelledby": f,
|
|
5727
5731
|
role: "group",
|
|
5728
|
-
class: y(M(X)("relative flex text-sm text-
|
|
5732
|
+
class: y(M(X)("relative flex text-sm text-ink", h.value ? "items-center gap-3" : "gap-3", e.appearance === "row" ? "px-4 py-3" : "rounded border border-ink/10 bg-surface shadow-xs", e.appearance === "card" && (h.value ? M(X)("py-1.5 pl-5", e.dismissible ? "pr-1.5" : "pr-4") : "py-4 pr-4 pl-5"), e.appearance === "row" && e.unread && "bg-blue-fg/5", r.class))
|
|
5729
5733
|
}, [
|
|
5730
5734
|
(w(), a(k(p[e.type].icon), {
|
|
5731
5735
|
class: y(M(X)("size-4 shrink-0", !h.value && "mt-0.5", p[e.type].colour)),
|
|
@@ -5735,12 +5739,12 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
5735
5739
|
c("p", {
|
|
5736
5740
|
id: f,
|
|
5737
5741
|
class: y(M(X)("font-bold", h.value && "min-w-0 flex-1 py-1"))
|
|
5738
|
-
}, [c("span",
|
|
5739
|
-
!h.value && (e.description || t.$slots.default) ? (w(), s("div",
|
|
5740
|
-
e.appearance === "row" && (e.createdAt || e.unread) ? (w(), s("p",
|
|
5741
|
-
e.unread ? (w(), s("span",
|
|
5742
|
-
e.unread ? (w(), s("span",
|
|
5743
|
-
e.createdAt ? (w(), a(
|
|
5742
|
+
}, [c("span", jc, j(p[e.type].word) + ": ", 1), u(j(e.title), 1)], 2),
|
|
5743
|
+
!h.value && (e.description || t.$slots.default) ? (w(), s("div", Mc, [O(t.$slots, "default", {}, () => [d(m)])])) : o("", !0),
|
|
5744
|
+
e.appearance === "row" && (e.createdAt || e.unread) ? (w(), s("p", Nc, [
|
|
5745
|
+
e.unread ? (w(), s("span", Pc)) : o("", !0),
|
|
5746
|
+
e.unread ? (w(), s("span", Fc, "Unread, ")) : o("", !0),
|
|
5747
|
+
e.createdAt ? (w(), a(vc, {
|
|
5744
5748
|
key: 2,
|
|
5745
5749
|
date: e.createdAt,
|
|
5746
5750
|
now: e.now
|
|
@@ -5755,7 +5759,7 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
5755
5759
|
"as-child": "",
|
|
5756
5760
|
onClick: g
|
|
5757
5761
|
}, {
|
|
5758
|
-
default: V(() => [c("a", { href: e.action.href }, j(e.action.label), 9,
|
|
5762
|
+
default: V(() => [c("a", { href: e.action.href }, j(e.action.label), 9, Ic)]),
|
|
5759
5763
|
_: 1
|
|
5760
5764
|
})) : e.action ? (w(), a(Z, {
|
|
5761
5765
|
key: 1,
|
|
@@ -5781,11 +5785,11 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
5781
5785
|
}, 8, ["class", "aria-label"])) : o("", !0)
|
|
5782
5786
|
], 2));
|
|
5783
5787
|
}
|
|
5784
|
-
}),
|
|
5788
|
+
}), Rc = {
|
|
5785
5789
|
key: 0,
|
|
5786
|
-
class: "absolute top-1 left-1/2 ml-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red px-1 text-xs leading-none font-bold text-white ring-2 ring-
|
|
5790
|
+
class: "absolute top-1 left-1/2 ml-1 flex h-4 min-w-4 items-center justify-center rounded-full bg-red px-1 text-xs leading-none font-bold text-white ring-2 ring-surface",
|
|
5787
5791
|
"aria-hidden": "true"
|
|
5788
|
-
},
|
|
5792
|
+
}, zc = { class: "flex h-11 shrink-0 items-center justify-between gap-2 border-b border-ink/10 pr-2 pl-4" }, Bc = ["inert"], Vc = /* @__PURE__ */ f({
|
|
5789
5793
|
__name: "NotificationPane",
|
|
5790
5794
|
props: /*@__PURE__*/ g({
|
|
5791
5795
|
notifications: {},
|
|
@@ -5801,7 +5805,7 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
5801
5805
|
}),
|
|
5802
5806
|
emits: ["update:open"],
|
|
5803
5807
|
setup(e) {
|
|
5804
|
-
let { t } = K(), r = e, l = F(e, "open"), f = i(() => r.notifications ??
|
|
5808
|
+
let { t } = K(), r = e, l = F(e, "open"), f = i(() => r.notifications ?? Ac()), p = i(() => f.value.items), m = i(() => f.value.unreadCount.value), h = i(() => m.value > 99 ? "99+" : String(m.value)), g = i(() => r.label ?? t("ui.notifications.title")), _ = i(() => m.value ? t("ui.notifications.withUnread", {
|
|
5805
5809
|
label: g.value,
|
|
5806
5810
|
count: h.value
|
|
5807
5811
|
}) : g.value), b = `${P()}-heading`, x = E(), S = E();
|
|
@@ -5837,7 +5841,7 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
5837
5841
|
easing: "cubic-bezier(0, 0, 0.2, 1)"
|
|
5838
5842
|
});
|
|
5839
5843
|
}
|
|
5840
|
-
return (r, i) => (w(), a(
|
|
5844
|
+
return (r, i) => (w(), a(tr, {
|
|
5841
5845
|
open: l.value,
|
|
5842
5846
|
"onUpdate:open": i[1] ||= (e) => l.value = e,
|
|
5843
5847
|
content: {
|
|
@@ -5851,7 +5855,7 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
5851
5855
|
ref: C,
|
|
5852
5856
|
"aria-labelledby": b,
|
|
5853
5857
|
class: "flex min-h-0 flex-col"
|
|
5854
|
-
}, [c("div",
|
|
5858
|
+
}, [c("div", zc, [c("h2", {
|
|
5855
5859
|
id: b,
|
|
5856
5860
|
ref_key: "heading",
|
|
5857
5861
|
ref: x,
|
|
@@ -5875,8 +5879,8 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
5875
5879
|
onAnimationend: i[0] ||= ee((e) => T.value && I(), ["self"])
|
|
5876
5880
|
}, [(w(!0), s(n, null, D(p.value, (e, t) => (w(), s("li", {
|
|
5877
5881
|
key: e.id,
|
|
5878
|
-
class: "border-b border-
|
|
5879
|
-
}, [d(
|
|
5882
|
+
class: "border-b border-ink/10 last:border-b-0"
|
|
5883
|
+
}, [d(Lc, {
|
|
5880
5884
|
appearance: "row",
|
|
5881
5885
|
type: e.type,
|
|
5882
5886
|
title: e.title,
|
|
@@ -5895,7 +5899,7 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
5895
5899
|
"unread",
|
|
5896
5900
|
"onDismiss",
|
|
5897
5901
|
"onAction"
|
|
5898
|
-
])]))), 128))], 42,
|
|
5902
|
+
])]))), 128))], 42, Bc)) : (w(), a(_s, {
|
|
5899
5903
|
key: 1,
|
|
5900
5904
|
size: "sm",
|
|
5901
5905
|
icon: M(se),
|
|
@@ -5914,13 +5918,13 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
5914
5918
|
"aria-label": _.value,
|
|
5915
5919
|
class: y(M(X)("relative overflow-visible", e.ui?.trigger))
|
|
5916
5920
|
}, {
|
|
5917
|
-
default: V(() => [d(M(oe)), m.value ? (w(), s("span",
|
|
5921
|
+
default: V(() => [d(M(oe)), m.value ? (w(), s("span", Rc, j(h.value), 1)) : o("", !0)]),
|
|
5918
5922
|
_: 1
|
|
5919
5923
|
}, 8, ["aria-label", "class"])]),
|
|
5920
5924
|
_: 1
|
|
5921
5925
|
}, 8, ["open", "ui"]));
|
|
5922
5926
|
}
|
|
5923
|
-
}),
|
|
5927
|
+
}), Hc = { class: "in-data-expanded:hidden" }, Uc = { class: "hidden in-data-expanded:inline" }, Wc = { class: "sr-only" }, Gc = 8, Kc = .5, qc = 80, Jc = /* @__PURE__ */ f({
|
|
5924
5928
|
__name: "Toaster",
|
|
5925
5929
|
props: {
|
|
5926
5930
|
notifications: {},
|
|
@@ -5937,15 +5941,15 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
5937
5941
|
},
|
|
5938
5942
|
emits: ["more"],
|
|
5939
5943
|
setup(e, { emit: t }) {
|
|
5940
|
-
let { t: r } = K(), l = e, f = t, p = i(() => l.notifications ??
|
|
5944
|
+
let { t: r } = K(), l = e, f = t, p = i(() => l.notifications ?? Ac()), m = i(() => l.position === "top-right"), h = E(typeof window > "u" ? 800 : window.innerHeight), g = () => h.value = window.innerHeight;
|
|
5941
5945
|
C(() => window.addEventListener("resize", g)), S(() => window.removeEventListener("resize", g));
|
|
5942
|
-
let _ = i(() => Math.max(h.value -
|
|
5943
|
-
let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? b(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) +
|
|
5946
|
+
let _ = i(() => Math.max(h.value - qc, 108)), b = (e) => e.compact ? 42 : e.action ? 116 : e.description ? 78 : 56, O = i(() => {
|
|
5947
|
+
let e = p.value.toasts.slice(-l.limit).reverse(), t = (e) => L.get(e.id) ?? b(e.item), n = e.filter((e) => !W.has(e.id)), r = n.reduce((e, n) => e + t(n) + Gc, -8), i = /* @__PURE__ */ new Set();
|
|
5944
5948
|
if (r <= _.value) n.forEach((e) => i.add(e.id));
|
|
5945
5949
|
else {
|
|
5946
5950
|
let e = 44;
|
|
5947
5951
|
for (let r of n) {
|
|
5948
|
-
let n = e + t(r) + (i.size ?
|
|
5952
|
+
let n = e + t(r) + (i.size ? Gc : 0);
|
|
5949
5953
|
if (i.size && n > _.value) break;
|
|
5950
5954
|
i.add(r.id), e = n;
|
|
5951
5955
|
}
|
|
@@ -6000,16 +6004,16 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
6000
6004
|
}
|
|
6001
6005
|
let J = i(() => {
|
|
6002
6006
|
let e = k.value.filter((e) => !W.has(e.id)), t = /* @__PURE__ */ new Map(), n = [], r = 0;
|
|
6003
|
-
for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) +
|
|
6004
|
-
let i = Math.max(r -
|
|
6007
|
+
for (let t of e) n.push(r), r += (L.get(t.id) ?? 0) + Gc;
|
|
6008
|
+
let i = Math.max(r - Gc, 0), a = Math.min(l.maxHeight, _.value), o = 0;
|
|
6005
6009
|
for (; o < e.length && (o === 0 || n[o] + (L.get(e[o].id) ?? 0) <= a);) o++;
|
|
6006
|
-
let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u +
|
|
6010
|
+
let s = e[o - 1], c = n[o - 1] ?? 0, u = s ? L.get(s.id) ?? 0 : 0, d = c + u + Gc;
|
|
6007
6011
|
e.forEach((r, i) => {
|
|
6008
6012
|
let a = i >= o;
|
|
6009
6013
|
t.set(r.id, {
|
|
6010
6014
|
spread: n[i],
|
|
6011
6015
|
stacked: a ? d : n[i],
|
|
6012
|
-
scale: a ?
|
|
6016
|
+
scale: a ? Kc : 1,
|
|
6013
6017
|
opacity: +!a,
|
|
6014
6018
|
z: e.length - i
|
|
6015
6019
|
});
|
|
@@ -6020,7 +6024,7 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
6020
6024
|
places: t,
|
|
6021
6025
|
spreadHeight: i + (A.value > 0 ? 44 : 0),
|
|
6022
6026
|
stackedHeight: p,
|
|
6023
|
-
moreOffset: i + (i ?
|
|
6027
|
+
moreOffset: i + (i ? Gc : 0),
|
|
6024
6028
|
notInView: f,
|
|
6025
6029
|
pillOffset: d
|
|
6026
6030
|
};
|
|
@@ -6029,10 +6033,10 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
6029
6033
|
let t = W.has(e) ? G.get(e) : J.value.places.get(e), n = m.value ? 1 : -1, r = (e) => `${n * e}px`, i = {
|
|
6030
6034
|
"--toast-spread": r(J.value.moreOffset),
|
|
6031
6035
|
"--toast-stacked": r(J.value.pillOffset),
|
|
6032
|
-
"--toast-scale":
|
|
6036
|
+
"--toast-scale": Kc,
|
|
6033
6037
|
"--toast-opacity": 0,
|
|
6034
6038
|
"--toast-spread-opacity": 0,
|
|
6035
|
-
"--toast-spread-scale":
|
|
6039
|
+
"--toast-spread-scale": Kc,
|
|
6036
6040
|
"--toast-z": 0
|
|
6037
6041
|
};
|
|
6038
6042
|
if (!t && N.has(e) || t && !U.has(e) && P.has(e)) return i;
|
|
@@ -6090,7 +6094,7 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
6090
6094
|
class: y(M(X)("absolute inset-x-0 z-(--toast-z) list-none rounded", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0", m.value ? "top-0 origin-top" : "bottom-0 origin-bottom", "translate-y-(--toast-stacked) scale-(--toast-scale) opacity-(--toast-opacity)", "data-expanded:translate-y-(--toast-spread) data-expanded:scale-(--toast-spread-scale) data-expanded:opacity-(--toast-spread-opacity)", "transition-[translate,scale,opacity] duration-300 ease-out motion-reduce:transition-none", "data-[state=closed]:animate-fade-out", "data-[swipe=move]:translate-x-(--reka-toast-swipe-move-x) data-[swipe=move]:transition-none", "data-[swipe=cancel]:translate-x-0", "data-[swipe=end]:animate-slide-out-right")),
|
|
6091
6095
|
"onUpdate:open": (t) => q(e.id, t)
|
|
6092
6096
|
}, {
|
|
6093
|
-
default: V(() => [d(
|
|
6097
|
+
default: V(() => [d(Lc, {
|
|
6094
6098
|
ref_for: !0,
|
|
6095
6099
|
ref: (t) => H(e.id, t),
|
|
6096
6100
|
type: e.item.type,
|
|
@@ -6131,9 +6135,9 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
6131
6135
|
class: y(M(X)("absolute inset-x-0 z-0 flex list-none justify-center", m.value ? "top-0" : "bottom-0", "translate-y-(--toast-pill) transition-[translate,opacity,visibility] duration-300 ease-out motion-reduce:transition-none", A.value ? "in-data-expanded:translate-y-(--toast-more)" : "in-data-expanded:invisible in-data-expanded:opacity-0 in-data-expanded:duration-150"))
|
|
6132
6136
|
}, [c("button", {
|
|
6133
6137
|
type: "button",
|
|
6134
|
-
class: y(M(X)("flex cursor-pointer items-center justify-center overflow-hidden border border-
|
|
6138
|
+
class: y(M(X)("flex cursor-pointer items-center justify-center overflow-hidden border border-ink/10 bg-surface font-bold whitespace-nowrap text-ink shadow-md hover:bg-surface-hover", "h-7 w-24 rounded-2xl text-xs", A.value && "in-data-expanded:h-9 in-data-expanded:w-full in-data-expanded:rounded in-data-expanded:text-sm", "transition-[width,height,border-radius,font-size,background-color] duration-300 ease-out motion-reduce:transition-none", "outline-2 outline-offset-1 outline-transparent focus-visible:outline-focus forced-colors:not-focus-visible:outline-0")),
|
|
6135
6139
|
onClick: ie
|
|
6136
|
-
}, [A.value ? (w(), s(n, { key: 0 }, [c("span",
|
|
6140
|
+
}, [A.value ? (w(), s(n, { key: 0 }, [c("span", Hc, j(M(r)("ui.notifications.more", { count: J.value.notInView })), 1), c("span", Uc, j(M(r)("ui.notifications.more", { count: A.value })), 1)], 64)) : (w(), s(n, { key: 1 }, [u(j(M(r)("ui.notifications.more", { count: J.value.notInView })), 1)], 64)), c("span", Wc, "\xA0" + j(M(r)("ui.notifications.notifications")), 1)], 2)], 6)) : o("", !0)]),
|
|
6137
6141
|
_: 1
|
|
6138
6142
|
}, 8, [
|
|
6139
6143
|
"label",
|
|
@@ -6143,14 +6147,14 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
6143
6147
|
_: 1
|
|
6144
6148
|
}, 8, ["label"]));
|
|
6145
6149
|
}
|
|
6146
|
-
}),
|
|
6150
|
+
}), Yc = {
|
|
6147
6151
|
key: 0,
|
|
6148
6152
|
"aria-hidden": "true",
|
|
6149
6153
|
class: "h-20"
|
|
6150
|
-
},
|
|
6154
|
+
}, Xc = ["aria-label"], Zc = { class: "pointer-events-auto flex w-full max-w-2xl items-center justify-between gap-3 rounded-lg border border-ink/10 bg-surface-elevated p-3 pl-4 shadow-lg" }, Qc = {
|
|
6151
6155
|
role: "status",
|
|
6152
6156
|
class: "flex items-center gap-2 text-sm font-bold"
|
|
6153
|
-
},
|
|
6157
|
+
}, $c = { class: "flex shrink-0 items-center gap-2" }, el = /* @__PURE__ */ f({
|
|
6154
6158
|
__name: "UnsavedChangesBar",
|
|
6155
6159
|
props: {
|
|
6156
6160
|
open: { type: Boolean },
|
|
@@ -6173,7 +6177,7 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
6173
6177
|
emits: ["discard", "save"],
|
|
6174
6178
|
setup(e, { emit: t }) {
|
|
6175
6179
|
let { t: a } = K(), l = e, f = t, p = i(() => l.status === "loading");
|
|
6176
|
-
return (t, i) => (w(), s(n, null, [e.open && e.reserveSpace ? (w(), s("div",
|
|
6180
|
+
return (t, i) => (w(), s(n, null, [e.open && e.reserveSpace ? (w(), s("div", Yc)) : o("", !0), d(r, {
|
|
6177
6181
|
"enter-active-class": "transition duration-300 ease-out motion-reduce:transition-none",
|
|
6178
6182
|
"leave-active-class": "transition duration-200 ease-in motion-reduce:transition-none",
|
|
6179
6183
|
"enter-from-class": "translate-y-full motion-reduce:translate-y-0 motion-reduce:opacity-0",
|
|
@@ -6184,10 +6188,10 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
6184
6188
|
role: "region",
|
|
6185
6189
|
"aria-label": e.message ?? M(a)("ui.unsavedChangesBar.message"),
|
|
6186
6190
|
class: y(M(X)("fixed inset-x-0 bottom-0 z-40 flex justify-center px-4 pb-4 pointer-events-none", l.class))
|
|
6187
|
-
}, [c("div",
|
|
6191
|
+
}, [c("div", Zc, [c("p", Qc, [i[2] ||= c("span", {
|
|
6188
6192
|
"aria-hidden": "true",
|
|
6189
6193
|
class: "size-2 shrink-0 rounded-full bg-yellow"
|
|
6190
|
-
}, null, -1), u(" " + j(e.message ?? M(a)("ui.unsavedChangesBar.message")), 1)]), c("div",
|
|
6194
|
+
}, null, -1), u(" " + j(e.message ?? M(a)("ui.unsavedChangesBar.message")), 1)]), c("div", $c, [d(Z, {
|
|
6191
6195
|
disabled: p.value,
|
|
6192
6196
|
onClick: i[0] ||= (e) => f("discard")
|
|
6193
6197
|
}, {
|
|
@@ -6201,11 +6205,11 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
6201
6205
|
}, {
|
|
6202
6206
|
default: V(() => [u(j(e.saveLabel ?? M(a)("ui.unsavedChangesBar.save")), 1)]),
|
|
6203
6207
|
_: 1
|
|
6204
|
-
}, 8, ["status", "disabled"])])])], 10,
|
|
6208
|
+
}, 8, ["status", "disabled"])])])], 10, Xc)) : o("", !0)]),
|
|
6205
6209
|
_: 1
|
|
6206
6210
|
})], 64));
|
|
6207
6211
|
}
|
|
6208
|
-
}),
|
|
6212
|
+
}), tl = { ui: {
|
|
6209
6213
|
age: {
|
|
6210
6214
|
born: "Born {date}",
|
|
6211
6215
|
birthdayToday: "Birthday today",
|
|
@@ -6334,16 +6338,16 @@ var Nc = { class: "sr-only" }, Pc = {
|
|
|
6334
6338
|
discard: "Discard",
|
|
6335
6339
|
save: "Save"
|
|
6336
6340
|
}
|
|
6337
|
-
} },
|
|
6338
|
-
function
|
|
6339
|
-
let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(
|
|
6341
|
+
} }, nl = { en: tl };
|
|
6342
|
+
function rl(e = {}) {
|
|
6343
|
+
let { messages: t = {}, fallbackLocale: n = "en", storageKey: r = "keston-locale" } = e, i = [.../* @__PURE__ */ new Set([...Object.keys(nl), ...Object.keys(t)])], a = {};
|
|
6340
6344
|
for (let e of i) a[e] = {
|
|
6341
|
-
...
|
|
6345
|
+
...nl[e],
|
|
6342
6346
|
...t[e]
|
|
6343
6347
|
};
|
|
6344
6348
|
let o = G({
|
|
6345
6349
|
legacy: !1,
|
|
6346
|
-
locale: e.locale ??
|
|
6350
|
+
locale: e.locale ?? il(i, n, r),
|
|
6347
6351
|
fallbackLocale: n,
|
|
6348
6352
|
messages: a
|
|
6349
6353
|
});
|
|
@@ -6354,7 +6358,7 @@ function al(e = {}) {
|
|
|
6354
6358
|
typeof document < "u" && (document.documentElement.lang = e);
|
|
6355
6359
|
}, { immediate: !0 }), o;
|
|
6356
6360
|
}
|
|
6357
|
-
function
|
|
6361
|
+
function il(e, t, n) {
|
|
6358
6362
|
try {
|
|
6359
6363
|
let t = localStorage.getItem(n);
|
|
6360
6364
|
if (t && e.includes(t)) return t;
|
|
@@ -6365,4 +6369,4 @@ function ol(e, t, n) {
|
|
|
6365
6369
|
}
|
|
6366
6370
|
return t;
|
|
6367
6371
|
}
|
|
6368
|
-
export {
|
|
6372
|
+
export { bc as Age, cr as AppLauncher, ji as AppShell, Ur as Avatar, sa as AvatarGroup, ei as Badge, Bi as Breadcrumb, Z as Button, Ja as Calendar, da as Card, gs as CardSelect, Ca as ChangeIndicator, qo as Checkbox, ls as CheckboxGroup, ic as Checklist, ma as Chip, _a as Divider, _s as EmptyState, Er as Footer, Pa as FormField, Qr as Header, Ea as InfoTip, Ia as Input, jo as InputCode, vo as InputDate, za as InputNumber, Eo as InputPassword, So as InputRichText, as as InputTextArea, us as LanguageSwitcher, lr as Link, Vi as Menu, Lc as Notification, Vc as NotificationPane, Yi as PageHeader, tr as Popover, _i as Progress, es as RadioGroup, vc as RelativeTime, Go as Select, ea as SettingsRow, mi as Sidebar, Ei as Slideover, Gn as Spinner, Ks as StatTile, Cc as Steps, tc as SummaryList, rs as Switch, Rs as Table, wc as Tabs, Jc as Toaster, yo as Tooltip, el as UnsavedChangesBar, dc as age, X as cn, rl as createKestonI18n, Oc as createNotifications, fc as daysToBirthday, tl as en, uc as formatDate, lc as formatDateTime, nr as kestonApps, pr as kestonFooterLinks, mr as kestonGroupLinks, cc as relativeTime, ti as sidebarTrail, bs as sortRows, ac as toDate, nl as uiMessages, Ac as useNotifications, gc as useNow };
|