rei-kit 2.4.1 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/{GoogleButton-tEyI7znu.js → GoogleButton-nIRz9G8s.js} +13 -3
- package/dist/GoogleButton-nIRz9G8s.js.map +1 -0
- package/dist/app/TourShell.vue.d.ts +2 -2
- package/dist/app.js +1 -1
- package/dist/components/BasePopover.vue.d.ts +62 -0
- package/dist/components/BaseStepper.vue.d.ts +44 -0
- package/dist/components/CircularProgress.vue.d.ts +35 -0
- package/dist/components/NumberInput.vue.d.ts +42 -0
- package/dist/components/PinInput.vue.d.ts +44 -0
- package/dist/components/ToggleGroup.vue.d.ts +41 -0
- package/dist/composables/use-toast.d.ts +30 -0
- package/dist/index.d.ts +9 -1
- package/dist/index.js +824 -141
- package/dist/index.js.map +1 -1
- package/dist/styles.css +372 -9
- package/package.json +2 -2
- package/dist/GoogleButton-tEyI7znu.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { a as addDays, c as lastNDays, d as toDateKey, f as todayKey, i as needsIosInstall, l as leadingBlanks, n as isApplePortable, o as eachDayOfYear, r as isInstalled, s as fromDateKey, t as SettingsGroup_default, u as startOfWeek } from "./SettingsGroup-BXkajKGl.js";
|
|
2
2
|
import { n as formatNumber, r as setFormatLocale, t as formatDate } from "./format-BEvBK1SJ.js";
|
|
3
|
-
import { _ as safeRedirect, a as useBoundValue, b as ensureSheetRoot, c as useToast, d as applyTheme, f as isThemePreference, g as tapFeedback, h as useTheme, i as BaseInput_default, l as useVisualViewport, m as setThemeStorageKey, n as BaseCheckbox_default, o as FormField_default, p as readStoredTheme, r as BaseSheet_default, s as BaseAlert_default, t as GoogleButton_default, u as useOnline, v as toRedirectPath, y as SHEET_ROOT_ID } from "./GoogleButton-
|
|
3
|
+
import { _ as safeRedirect, a as useBoundValue, b as ensureSheetRoot, c as useToast, d as applyTheme, f as isThemePreference, g as tapFeedback, h as useTheme, i as BaseInput_default, l as useVisualViewport, m as setThemeStorageKey, n as BaseCheckbox_default, o as FormField_default, p as readStoredTheme, r as BaseSheet_default, s as BaseAlert_default, t as GoogleButton_default, u as useOnline, v as toRedirectPath, y as SHEET_ROOT_ID } from "./GoogleButton-nIRz9G8s.js";
|
|
4
4
|
import { n as registerErrorMapper, r as toAppError, t as AppError } from "./app-error-DF9cijE0.js";
|
|
5
5
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.js";
|
|
6
6
|
import { n as BaseButton_default, t as SettingsRow_default } from "./SettingsRow-BXFn8tCk.js";
|
|
7
|
-
import { Fragment, Teleport, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onErrorCaptured, onMounted, onScopeDispose, openBlock, readonly, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useModel, vModelRadio, vModelSelect, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withModifiers } from "vue";
|
|
8
|
-
import { ArrowDown, ArrowRight, ArrowUp, CheckCircle2, ChevronDown, Info, TriangleAlert, X, XCircle } from "lucide-vue-next";
|
|
7
|
+
import { Fragment, Teleport, Transition, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createTextVNode, createVNode, defineComponent, isRef, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onErrorCaptured, onMounted, onScopeDispose, openBlock, readonly, ref, renderList, renderSlot, resolveDynamicComponent, toDisplayString, unref, useId, useModel, vModelRadio, vModelSelect, vModelText, vShow, watch, watchEffect, withCtx, withDirectives, withModifiers } from "vue";
|
|
8
|
+
import { ArrowDown, ArrowRight, ArrowUp, Check, CheckCircle2, ChevronDown, Info, Minus, Plus, TriangleAlert, X, XCircle } from "lucide-vue-next";
|
|
9
9
|
import { RouterLink } from "vue-router";
|
|
10
10
|
import { createI18n } from "vue-i18n";
|
|
11
11
|
//#region src/utils/day-label.ts
|
|
@@ -382,17 +382,17 @@ function useMediaQuery(query) {
|
|
|
382
382
|
}
|
|
383
383
|
//#endregion
|
|
384
384
|
//#region src/components/BaseAvatar.vue?vue&type=script&setup=true&lang.ts
|
|
385
|
-
var _hoisted_1$
|
|
385
|
+
var _hoisted_1$27 = [
|
|
386
386
|
"role",
|
|
387
387
|
"aria-label",
|
|
388
388
|
"aria-hidden"
|
|
389
389
|
];
|
|
390
|
-
var _hoisted_2$
|
|
391
|
-
var _hoisted_3$
|
|
390
|
+
var _hoisted_2$23 = ["src"];
|
|
391
|
+
var _hoisted_3$16 = {
|
|
392
392
|
key: 1,
|
|
393
393
|
class: "rk-avatar-initials"
|
|
394
394
|
};
|
|
395
|
-
var _hoisted_4$
|
|
395
|
+
var _hoisted_4$13 = {
|
|
396
396
|
key: 2,
|
|
397
397
|
viewBox: "0 0 20 20",
|
|
398
398
|
class: "rk-avatar-figure",
|
|
@@ -438,7 +438,7 @@ var BaseAvatar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
438
438
|
alt: "",
|
|
439
439
|
class: "rk-avatar-img",
|
|
440
440
|
onError: _cache[0] || (_cache[0] = ($event) => broken.value = true)
|
|
441
|
-
}, null, 40, _hoisted_2$
|
|
441
|
+
}, null, 40, _hoisted_2$23)) : __props.fallback === "initials" && initials.value ? (openBlock(), createElementBlock("span", _hoisted_3$16, toDisplayString(initials.value), 1)) : (openBlock(), createElementBlock("svg", _hoisted_4$13, [..._cache[1] || (_cache[1] = [createElementVNode("circle", {
|
|
442
442
|
cx: "10",
|
|
443
443
|
cy: "6.75",
|
|
444
444
|
r: "3.25",
|
|
@@ -447,7 +447,7 @@ var BaseAvatar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
447
447
|
d: "M3.75 17c0-3.05 2.8-5.25 6.25-5.25S16.25 13.95 16.25 17",
|
|
448
448
|
"stroke-width": "1.5",
|
|
449
449
|
"stroke-linecap": "round"
|
|
450
|
-
}, null, -1)])]))], 10, _hoisted_1$
|
|
450
|
+
}, null, -1)])]))], 10, _hoisted_1$27);
|
|
451
451
|
};
|
|
452
452
|
}
|
|
453
453
|
}), [["__scopeId", "data-v-47586bec"]]);
|
|
@@ -472,12 +472,12 @@ var BaseBadge_default = /* @__PURE__ */ defineComponent({
|
|
|
472
472
|
});
|
|
473
473
|
//#endregion
|
|
474
474
|
//#region src/components/BaseMenu.vue?vue&type=script&setup=true&lang.ts
|
|
475
|
-
var _hoisted_1$
|
|
475
|
+
var _hoisted_1$26 = [
|
|
476
476
|
"aria-label",
|
|
477
477
|
"aria-expanded",
|
|
478
478
|
"aria-controls"
|
|
479
479
|
];
|
|
480
|
-
var _hoisted_2$
|
|
480
|
+
var _hoisted_2$22 = ["id"];
|
|
481
481
|
//#endregion
|
|
482
482
|
//#region src/components/BaseMenu.vue
|
|
483
483
|
var BaseMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -576,14 +576,14 @@ var BaseMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
576
576
|
"aria-haspopup": true,
|
|
577
577
|
"aria-controls": open.value ? unref(id) : void 0,
|
|
578
578
|
onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value)
|
|
579
|
-
}, [renderSlot(_ctx.$slots, "trigger", { open: open.value }, void 0, true)], 8, _hoisted_1$
|
|
579
|
+
}, [renderSlot(_ctx.$slots, "trigger", { open: open.value }, void 0, true)], 8, _hoisted_1$26), open.value ? (openBlock(), createElementBlock("div", {
|
|
580
580
|
key: 0,
|
|
581
581
|
id: unref(id),
|
|
582
582
|
ref_key: "panel",
|
|
583
583
|
ref: panel,
|
|
584
584
|
class: normalizeClass(["rk-menu-panel surface-overlay", `is-${__props.align}`]),
|
|
585
585
|
role: "menu"
|
|
586
|
-
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 10, _hoisted_2$
|
|
586
|
+
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 10, _hoisted_2$22)) : createCommentVNode("", true)], 544);
|
|
587
587
|
};
|
|
588
588
|
}
|
|
589
589
|
}), [["__scopeId", "data-v-e57ec901"]]);
|
|
@@ -654,9 +654,9 @@ var BaseCard_default = /* @__PURE__ */ defineComponent({
|
|
|
654
654
|
});
|
|
655
655
|
//#endregion
|
|
656
656
|
//#region src/components/BaseCombobox.vue?vue&type=script&setup=true&lang.ts
|
|
657
|
-
var _hoisted_1$
|
|
658
|
-
var _hoisted_2$
|
|
659
|
-
var _hoisted_3$
|
|
657
|
+
var _hoisted_1$25 = ["for"];
|
|
658
|
+
var _hoisted_2$21 = { class: "rk-combo-field" };
|
|
659
|
+
var _hoisted_3$15 = [
|
|
660
660
|
"id",
|
|
661
661
|
"placeholder",
|
|
662
662
|
"disabled",
|
|
@@ -665,15 +665,15 @@ var _hoisted_3$10 = [
|
|
|
665
665
|
"aria-invalid",
|
|
666
666
|
"aria-describedby"
|
|
667
667
|
];
|
|
668
|
-
var _hoisted_4$
|
|
669
|
-
var _hoisted_5$
|
|
670
|
-
var _hoisted_6$
|
|
668
|
+
var _hoisted_4$12 = ["disabled"];
|
|
669
|
+
var _hoisted_5$6 = ["aria-label"];
|
|
670
|
+
var _hoisted_6$2 = [
|
|
671
671
|
"id",
|
|
672
672
|
"aria-selected",
|
|
673
673
|
"onPointerdown",
|
|
674
674
|
"onPointermove"
|
|
675
675
|
];
|
|
676
|
-
var _hoisted_7$
|
|
676
|
+
var _hoisted_7$2 = {
|
|
677
677
|
key: 0,
|
|
678
678
|
class: "rk-combo-empty"
|
|
679
679
|
};
|
|
@@ -793,8 +793,8 @@ var BaseCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
793
793
|
createElementVNode("label", {
|
|
794
794
|
for: unref(id),
|
|
795
795
|
class: "rk-combo-label"
|
|
796
|
-
}, toDisplayString(__props.label), 9, _hoisted_1$
|
|
797
|
-
createElementVNode("div", _hoisted_2$
|
|
796
|
+
}, toDisplayString(__props.label), 9, _hoisted_1$25),
|
|
797
|
+
createElementVNode("div", _hoisted_2$21, [withDirectives(createElementVNode("input", {
|
|
798
798
|
id: unref(id),
|
|
799
799
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => text.value = $event),
|
|
800
800
|
type: "text",
|
|
@@ -811,14 +811,14 @@ var BaseCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
811
811
|
"aria-describedby": describedBy.value,
|
|
812
812
|
onKeydown,
|
|
813
813
|
onFocus: _cache[1] || (_cache[1] = ($event) => open.value = true)
|
|
814
|
-
}, null, 40, _hoisted_3$
|
|
814
|
+
}, null, 40, _hoisted_3$15), [[vModelText, text.value]]), createElementVNode("button", {
|
|
815
815
|
type: "button",
|
|
816
816
|
class: "rk-combo-toggle",
|
|
817
817
|
tabindex: "-1",
|
|
818
818
|
"aria-hidden": "true",
|
|
819
819
|
disabled: __props.disabled,
|
|
820
820
|
onClick: _cache[2] || (_cache[2] = ($event) => open.value = !open.value)
|
|
821
|
-
}, " ▾ ", 8, _hoisted_4$
|
|
821
|
+
}, " ▾ ", 8, _hoisted_4$12)]),
|
|
822
822
|
withDirectives(createElementVNode("ul", {
|
|
823
823
|
id: listId,
|
|
824
824
|
ref_key: "list",
|
|
@@ -838,8 +838,8 @@ var BaseCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
838
838
|
"aria-selected": option.value === model.value,
|
|
839
839
|
onPointerdown: withModifiers(($event) => choose(option), ["prevent"]),
|
|
840
840
|
onPointermove: ($event) => highlighted.value = index
|
|
841
|
-
}, toDisplayString(option.label), 43, _hoisted_6$
|
|
842
|
-
}), 128)), matches.value.length === 0 ? (openBlock(), createElementBlock("li", _hoisted_7$
|
|
841
|
+
}, toDisplayString(option.label), 43, _hoisted_6$2);
|
|
842
|
+
}), 128)), matches.value.length === 0 ? (openBlock(), createElementBlock("li", _hoisted_7$2, toDisplayString(__props.emptyLabel), 1)) : createCommentVNode("", true)], 8, _hoisted_5$6), [[vShow, open.value]]),
|
|
843
843
|
__props.error ? (openBlock(), createElementBlock("p", {
|
|
844
844
|
key: 0,
|
|
845
845
|
id: errorId,
|
|
@@ -855,13 +855,13 @@ var BaseCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
855
855
|
}), [["__scopeId", "data-v-ce4c503f"]]);
|
|
856
856
|
//#endregion
|
|
857
857
|
//#region src/components/BaseRadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
858
|
-
var _hoisted_1$
|
|
859
|
-
var _hoisted_2$
|
|
858
|
+
var _hoisted_1$24 = ["aria-describedby"];
|
|
859
|
+
var _hoisted_2$20 = [
|
|
860
860
|
"name",
|
|
861
861
|
"value",
|
|
862
862
|
"disabled"
|
|
863
863
|
];
|
|
864
|
-
var _hoisted_3$
|
|
864
|
+
var _hoisted_3$14 = { class: "text-ink text-sm" };
|
|
865
865
|
//#endregion
|
|
866
866
|
//#region src/components/BaseRadioGroup.vue
|
|
867
867
|
var BaseRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
@@ -905,7 +905,7 @@ var BaseRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
905
905
|
value: option.value,
|
|
906
906
|
disabled: option.disabled,
|
|
907
907
|
class: "accent-primary focus-visible:outline-primary size-4 shrink-0 focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
908
|
-
}, null, 8, _hoisted_2$
|
|
908
|
+
}, null, 8, _hoisted_2$20), [[vModelRadio, unref(model)]]), createElementVNode("span", _hoisted_3$14, toDisplayString(option.label), 1)], 2);
|
|
909
909
|
}), 128)),
|
|
910
910
|
__props.error ? (openBlock(), createElementBlock("p", {
|
|
911
911
|
key: 0,
|
|
@@ -916,24 +916,24 @@ var BaseRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
916
916
|
id: hintId,
|
|
917
917
|
class: "text-ink-soft text-xs"
|
|
918
918
|
}, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
919
|
-
], 8, _hoisted_1$
|
|
919
|
+
], 8, _hoisted_1$24);
|
|
920
920
|
};
|
|
921
921
|
}
|
|
922
922
|
});
|
|
923
923
|
//#endregion
|
|
924
924
|
//#region src/components/BaseSelect.vue?vue&type=script&setup=true&lang.ts
|
|
925
|
-
var _hoisted_1$
|
|
926
|
-
var _hoisted_2$
|
|
925
|
+
var _hoisted_1$23 = { class: "relative" };
|
|
926
|
+
var _hoisted_2$19 = [
|
|
927
927
|
"id",
|
|
928
928
|
"aria-invalid",
|
|
929
929
|
"aria-describedby"
|
|
930
930
|
];
|
|
931
|
-
var _hoisted_3$
|
|
931
|
+
var _hoisted_3$13 = {
|
|
932
932
|
key: 0,
|
|
933
933
|
value: void 0,
|
|
934
934
|
disabled: ""
|
|
935
935
|
};
|
|
936
|
-
var _hoisted_4$
|
|
936
|
+
var _hoisted_4$11 = ["value", "disabled"];
|
|
937
937
|
//#endregion
|
|
938
938
|
//#region src/components/BaseSelect.vue
|
|
939
939
|
var BaseSelect_default = /* @__PURE__ */ defineComponent({
|
|
@@ -969,7 +969,7 @@ var BaseSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
969
969
|
"label-hidden": __props.labelHidden,
|
|
970
970
|
size: __props.size
|
|
971
971
|
}, {
|
|
972
|
-
default: withCtx(({ id, describedBy, invalid }) => [createElementVNode("div", _hoisted_1$
|
|
972
|
+
default: withCtx(({ id, describedBy, invalid }) => [createElementVNode("div", _hoisted_1$23, [withDirectives(createElementVNode("select", {
|
|
973
973
|
id,
|
|
974
974
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
975
975
|
"aria-invalid": invalid,
|
|
@@ -979,13 +979,13 @@ var BaseSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
979
979
|
__props.variant === "unstyled" ? "" : SIZE_CLASS[__props.size],
|
|
980
980
|
__props.variant !== "unstyled" && invalid ? "border-negative" : ""
|
|
981
981
|
]])
|
|
982
|
-
}, [__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_3$
|
|
982
|
+
}, [__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_3$13, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
983
983
|
return openBlock(), createElementBlock("option", {
|
|
984
984
|
key: option.value,
|
|
985
985
|
value: option.value,
|
|
986
986
|
disabled: option.disabled
|
|
987
|
-
}, toDisplayString(option.label), 9, _hoisted_4$
|
|
988
|
-
}), 128))], 10, _hoisted_2$
|
|
987
|
+
}, toDisplayString(option.label), 9, _hoisted_4$11);
|
|
988
|
+
}), 128))], 10, _hoisted_2$19), [[vModelSelect, model.value]]), createVNode(unref(ChevronDown), {
|
|
989
989
|
class: "text-ink-soft pointer-events-none absolute top-1/2 right-3 size-4 -translate-y-1/2",
|
|
990
990
|
"aria-hidden": "true"
|
|
991
991
|
})])]),
|
|
@@ -1002,11 +1002,11 @@ var BaseSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
1002
1002
|
});
|
|
1003
1003
|
//#endregion
|
|
1004
1004
|
//#region src/components/BaseSlider.vue?vue&type=script&setup=true&lang.ts
|
|
1005
|
-
var _hoisted_1$
|
|
1006
|
-
var _hoisted_2$
|
|
1007
|
-
var _hoisted_3$
|
|
1008
|
-
var _hoisted_4$
|
|
1009
|
-
var _hoisted_5$
|
|
1005
|
+
var _hoisted_1$22 = { class: "rk-slider" };
|
|
1006
|
+
var _hoisted_2$18 = { class: "rk-slider-head" };
|
|
1007
|
+
var _hoisted_3$12 = ["for"];
|
|
1008
|
+
var _hoisted_4$10 = ["for"];
|
|
1009
|
+
var _hoisted_5$5 = [
|
|
1010
1010
|
"id",
|
|
1011
1011
|
"min",
|
|
1012
1012
|
"max",
|
|
@@ -1050,15 +1050,15 @@ var BaseSlider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
1050
1050
|
return span <= 0 ? 0 : (model.value - __props.min) / span * 100;
|
|
1051
1051
|
});
|
|
1052
1052
|
return (_ctx, _cache) => {
|
|
1053
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1054
|
-
createElementVNode("div", _hoisted_2$
|
|
1053
|
+
return openBlock(), createElementBlock("div", _hoisted_1$22, [
|
|
1054
|
+
createElementVNode("div", _hoisted_2$18, [createElementVNode("label", {
|
|
1055
1055
|
for: unref(id),
|
|
1056
1056
|
class: "rk-slider-label"
|
|
1057
|
-
}, toDisplayString(__props.label), 9, _hoisted_3$
|
|
1057
|
+
}, toDisplayString(__props.label), 9, _hoisted_3$12), __props.showValue ? (openBlock(), createElementBlock("output", {
|
|
1058
1058
|
key: 0,
|
|
1059
1059
|
for: unref(id),
|
|
1060
1060
|
class: "rk-slider-value"
|
|
1061
|
-
}, toDisplayString(text.value), 9, _hoisted_4$
|
|
1061
|
+
}, toDisplayString(text.value), 9, _hoisted_4$10)) : createCommentVNode("", true)]),
|
|
1062
1062
|
withDirectives(createElementVNode("input", {
|
|
1063
1063
|
id: unref(id),
|
|
1064
1064
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
@@ -1071,7 +1071,7 @@ var BaseSlider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
1071
1071
|
"aria-valuetext": text.value,
|
|
1072
1072
|
"aria-describedby": __props.hint ? hintId : void 0,
|
|
1073
1073
|
style: normalizeStyle({ "--rk-slider-filled": `${filled.value}%` })
|
|
1074
|
-
}, null, 12, _hoisted_5$
|
|
1074
|
+
}, null, 12, _hoisted_5$5), [[
|
|
1075
1075
|
vModelText,
|
|
1076
1076
|
model.value,
|
|
1077
1077
|
void 0,
|
|
@@ -1088,11 +1088,11 @@ var BaseSlider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
1088
1088
|
}), [["__scopeId", "data-v-7fa2769b"]]);
|
|
1089
1089
|
//#endregion
|
|
1090
1090
|
//#region src/components/BaseSpinner.vue?vue&type=script&setup=true&lang.ts
|
|
1091
|
-
var _hoisted_1$
|
|
1091
|
+
var _hoisted_1$21 = {
|
|
1092
1092
|
class: "rk-spin-wrap",
|
|
1093
1093
|
role: "status"
|
|
1094
1094
|
};
|
|
1095
|
-
var _hoisted_2$
|
|
1095
|
+
var _hoisted_2$17 = { class: "rk-spin-label" };
|
|
1096
1096
|
//#endregion
|
|
1097
1097
|
//#region src/components/BaseSpinner.vue
|
|
1098
1098
|
var BaseSpinner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -1120,26 +1120,26 @@ var BaseSpinner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
1120
1120
|
lg: "2.5rem"
|
|
1121
1121
|
};
|
|
1122
1122
|
return (_ctx, _cache) => {
|
|
1123
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
1123
|
+
return openBlock(), createElementBlock("span", _hoisted_1$21, [createElementVNode("span", {
|
|
1124
1124
|
class: "rk-spin",
|
|
1125
1125
|
style: normalizeStyle({
|
|
1126
1126
|
width: SIZES[__props.size],
|
|
1127
1127
|
height: SIZES[__props.size]
|
|
1128
1128
|
}),
|
|
1129
1129
|
"aria-hidden": "true"
|
|
1130
|
-
}, null, 4), createElementVNode("span", _hoisted_2$
|
|
1130
|
+
}, null, 4), createElementVNode("span", _hoisted_2$17, toDisplayString(__props.label), 1)]);
|
|
1131
1131
|
};
|
|
1132
1132
|
}
|
|
1133
1133
|
}), [["__scopeId", "data-v-842da62c"]]);
|
|
1134
1134
|
//#endregion
|
|
1135
1135
|
//#region src/components/BaseSwitch.vue?vue&type=script&setup=true&lang.ts
|
|
1136
|
-
var _hoisted_1$
|
|
1137
|
-
var _hoisted_2$
|
|
1136
|
+
var _hoisted_1$20 = { class: "flex items-center justify-between gap-4" };
|
|
1137
|
+
var _hoisted_2$16 = {
|
|
1138
1138
|
key: 0,
|
|
1139
1139
|
class: "min-w-0"
|
|
1140
1140
|
};
|
|
1141
|
-
var _hoisted_3$
|
|
1142
|
-
var _hoisted_4$
|
|
1141
|
+
var _hoisted_3$11 = ["id"];
|
|
1142
|
+
var _hoisted_4$9 = [
|
|
1143
1143
|
"aria-checked",
|
|
1144
1144
|
"aria-labelledby",
|
|
1145
1145
|
"aria-label",
|
|
@@ -1178,10 +1178,10 @@ var BaseSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
1178
1178
|
if (!__props.disabled) model.value = !model.value;
|
|
1179
1179
|
}
|
|
1180
1180
|
return (_ctx, _cache) => {
|
|
1181
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1181
|
+
return openBlock(), createElementBlock("div", _hoisted_1$20, [!__props.labelHidden ? (openBlock(), createElementBlock("span", _hoisted_2$16, [createElementVNode("span", {
|
|
1182
1182
|
id: unref(id),
|
|
1183
1183
|
class: "text-ink block text-sm"
|
|
1184
|
-
}, toDisplayString(__props.label), 9, _hoisted_3$
|
|
1184
|
+
}, toDisplayString(__props.label), 9, _hoisted_3$11), __props.hint ? (openBlock(), createElementBlock("span", {
|
|
1185
1185
|
key: 0,
|
|
1186
1186
|
id: hintId,
|
|
1187
1187
|
class: "text-ink-soft mt-0.5 block text-xs"
|
|
@@ -1198,17 +1198,17 @@ var BaseSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
1198
1198
|
}, [..._cache[0] || (_cache[0] = [createElementVNode("span", {
|
|
1199
1199
|
class: "rk-switch-knob",
|
|
1200
1200
|
"aria-hidden": "true"
|
|
1201
|
-
}, null, -1)])], 10, _hoisted_4$
|
|
1201
|
+
}, null, -1)])], 10, _hoisted_4$9)]);
|
|
1202
1202
|
};
|
|
1203
1203
|
}
|
|
1204
1204
|
}), [["__scopeId", "data-v-3f4400a0"]]);
|
|
1205
1205
|
//#endregion
|
|
1206
1206
|
//#region src/components/BaseTable.vue?vue&type=script&setup=true&lang.ts
|
|
1207
|
-
var _hoisted_1$
|
|
1208
|
-
var _hoisted_2$
|
|
1209
|
-
var _hoisted_3$
|
|
1210
|
-
var _hoisted_4$
|
|
1211
|
-
var _hoisted_5$
|
|
1207
|
+
var _hoisted_1$19 = ["aria-label"];
|
|
1208
|
+
var _hoisted_2$15 = { class: "rk-table" };
|
|
1209
|
+
var _hoisted_3$10 = { key: 0 };
|
|
1210
|
+
var _hoisted_4$8 = { key: 1 };
|
|
1211
|
+
var _hoisted_5$4 = ["colspan"];
|
|
1212
1212
|
//#endregion
|
|
1213
1213
|
//#region src/components/BaseTable.vue
|
|
1214
1214
|
var BaseTable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -1231,7 +1231,7 @@ var BaseTable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
1231
1231
|
tabindex: "0",
|
|
1232
1232
|
role: "region",
|
|
1233
1233
|
"aria-label": __props.caption
|
|
1234
|
-
}, [createElementVNode("table", _hoisted_2$
|
|
1234
|
+
}, [createElementVNode("table", _hoisted_2$15, [
|
|
1235
1235
|
createElementVNode("caption", { class: normalizeClass(__props.captionHidden ? "rk-table-caption-hidden" : "rk-table-caption") }, toDisplayString(__props.caption), 3),
|
|
1236
1236
|
createElementVNode("thead", null, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
1237
1237
|
return openBlock(), createElementBlock("th", {
|
|
@@ -1240,7 +1240,7 @@ var BaseTable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
1240
1240
|
class: normalizeClass([column.align === "end" && "is-end", column.nowrap && "is-nowrap"])
|
|
1241
1241
|
}, toDisplayString(column.label), 3);
|
|
1242
1242
|
}), 128))])]),
|
|
1243
|
-
__props.rows.length > 0 ? (openBlock(), createElementBlock("tbody", _hoisted_3$
|
|
1243
|
+
__props.rows.length > 0 ? (openBlock(), createElementBlock("tbody", _hoisted_3$10, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (row, index) => {
|
|
1244
1244
|
return openBlock(), createElementBlock("tr", { key: keyFor(row, index) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
1245
1245
|
return openBlock(), createElementBlock("td", {
|
|
1246
1246
|
key: column.key,
|
|
@@ -1250,17 +1250,17 @@ var BaseTable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
1250
1250
|
value: row[column.key]
|
|
1251
1251
|
}, () => [createTextVNode(toDisplayString(row[column.key]), 1)], true)], 2);
|
|
1252
1252
|
}), 128))]);
|
|
1253
|
-
}), 128))])) : (openBlock(), createElementBlock("tbody", _hoisted_4$
|
|
1253
|
+
}), 128))])) : (openBlock(), createElementBlock("tbody", _hoisted_4$8, [createElementVNode("tr", null, [createElementVNode("td", {
|
|
1254
1254
|
colspan: __props.columns.length,
|
|
1255
1255
|
class: "rk-table-empty"
|
|
1256
|
-
}, [renderSlot(_ctx.$slots, "empty", {}, void 0, true)], 8, _hoisted_5$
|
|
1257
|
-
])], 8, _hoisted_1$
|
|
1256
|
+
}, [renderSlot(_ctx.$slots, "empty", {}, void 0, true)], 8, _hoisted_5$4)])]))
|
|
1257
|
+
])], 8, _hoisted_1$19);
|
|
1258
1258
|
};
|
|
1259
1259
|
}
|
|
1260
1260
|
}), [["__scopeId", "data-v-89958b5a"]]);
|
|
1261
1261
|
//#endregion
|
|
1262
1262
|
//#region src/components/BaseTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
1263
|
-
var _hoisted_1$
|
|
1263
|
+
var _hoisted_1$18 = [
|
|
1264
1264
|
"id",
|
|
1265
1265
|
"rows",
|
|
1266
1266
|
"aria-invalid",
|
|
@@ -1306,7 +1306,7 @@ var BaseTextarea_default = /* @__PURE__ */ defineComponent({
|
|
|
1306
1306
|
__props.variant === "unstyled" ? "" : "control text-ink rounded-card focus-visible:outline-primary resize-y px-3 py-2 leading-relaxed focus-visible:outline-2 focus-visible:outline-offset-1",
|
|
1307
1307
|
"text-base",
|
|
1308
1308
|
__props.variant !== "unstyled" && invalid ? "border-negative" : ""
|
|
1309
|
-
] }), null, 16, _hoisted_1$
|
|
1309
|
+
] }), null, 16, _hoisted_1$18), [[vModelText, unref(model)]])]),
|
|
1310
1310
|
_: 1
|
|
1311
1311
|
}, 8, [
|
|
1312
1312
|
"label",
|
|
@@ -1320,17 +1320,17 @@ var BaseTextarea_default = /* @__PURE__ */ defineComponent({
|
|
|
1320
1320
|
});
|
|
1321
1321
|
//#endregion
|
|
1322
1322
|
//#region src/components/EmptyState.vue?vue&type=script&setup=true&lang.ts
|
|
1323
|
-
var _hoisted_1$
|
|
1324
|
-
var _hoisted_2$
|
|
1323
|
+
var _hoisted_1$17 = { class: "flex flex-col items-center gap-3 px-6 py-10 text-center" };
|
|
1324
|
+
var _hoisted_2$14 = {
|
|
1325
1325
|
key: 0,
|
|
1326
1326
|
class: "bg-muted text-primary rounded-card flex size-12 items-center justify-center"
|
|
1327
1327
|
};
|
|
1328
|
-
var _hoisted_3$
|
|
1329
|
-
var _hoisted_4$
|
|
1328
|
+
var _hoisted_3$9 = { class: "text-ink text-base font-semibold" };
|
|
1329
|
+
var _hoisted_4$7 = {
|
|
1330
1330
|
key: 1,
|
|
1331
1331
|
class: "text-ink-soft max-w-[36ch] text-sm"
|
|
1332
1332
|
};
|
|
1333
|
-
var _hoisted_5$
|
|
1333
|
+
var _hoisted_5$3 = {
|
|
1334
1334
|
key: 2,
|
|
1335
1335
|
class: "mt-2 flex w-full flex-col gap-2"
|
|
1336
1336
|
};
|
|
@@ -1352,11 +1352,11 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
|
|
|
1352
1352
|
* goes — the button that creates the first one.
|
|
1353
1353
|
*/
|
|
1354
1354
|
return (_ctx, _cache) => {
|
|
1355
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1356
|
-
_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1357
|
-
createElementVNode("h3", _hoisted_3$
|
|
1358
|
-
__props.description ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
1359
|
-
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1355
|
+
return openBlock(), createElementBlock("div", _hoisted_1$17, [
|
|
1356
|
+
_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$14, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true),
|
|
1357
|
+
createElementVNode("h3", _hoisted_3$9, toDisplayString(__props.title), 1),
|
|
1358
|
+
__props.description ? (openBlock(), createElementBlock("p", _hoisted_4$7, toDisplayString(__props.description), 1)) : createCommentVNode("", true),
|
|
1359
|
+
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$3, [renderSlot(_ctx.$slots, "action")])) : createCommentVNode("", true)
|
|
1360
1360
|
]);
|
|
1361
1361
|
};
|
|
1362
1362
|
}
|
|
@@ -1423,11 +1423,11 @@ var PageContainer_default = /* @__PURE__ */ defineComponent({
|
|
|
1423
1423
|
});
|
|
1424
1424
|
//#endregion
|
|
1425
1425
|
//#region src/components/PageHeader.vue?vue&type=script&setup=true&lang.ts
|
|
1426
|
-
var _hoisted_1$
|
|
1427
|
-
var _hoisted_2$
|
|
1428
|
-
var _hoisted_3$
|
|
1429
|
-
var _hoisted_4$
|
|
1430
|
-
var _hoisted_5$
|
|
1426
|
+
var _hoisted_1$16 = { class: "grid h-12 shrink-0 grid-cols-[2.5rem_1fr_2.5rem] items-center" };
|
|
1427
|
+
var _hoisted_2$13 = { class: "justify-self-start" };
|
|
1428
|
+
var _hoisted_3$8 = { class: "text-ink flex min-w-0 justify-center text-base font-semibold tabular-nums" };
|
|
1429
|
+
var _hoisted_4$6 = { class: "truncate" };
|
|
1430
|
+
var _hoisted_5$2 = { class: "justify-self-end" };
|
|
1431
1431
|
//#endregion
|
|
1432
1432
|
//#region src/components/PageHeader.vue
|
|
1433
1433
|
var PageHeader_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1444,17 +1444,17 @@ var PageHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
1444
1444
|
* each other.
|
|
1445
1445
|
*/
|
|
1446
1446
|
return (_ctx, _cache) => {
|
|
1447
|
-
return openBlock(), createElementBlock("header", _hoisted_1$
|
|
1448
|
-
createElementVNode("div", _hoisted_2$
|
|
1449
|
-
createElementVNode("h1", _hoisted_3$
|
|
1450
|
-
createElementVNode("div", _hoisted_5$
|
|
1447
|
+
return openBlock(), createElementBlock("header", _hoisted_1$16, [
|
|
1448
|
+
createElementVNode("div", _hoisted_2$13, [renderSlot(_ctx.$slots, "left")]),
|
|
1449
|
+
createElementVNode("h1", _hoisted_3$8, [renderSlot(_ctx.$slots, "title", {}, () => [createElementVNode("span", _hoisted_4$6, toDisplayString(__props.title), 1)])]),
|
|
1450
|
+
createElementVNode("div", _hoisted_5$2, [renderSlot(_ctx.$slots, "right")])
|
|
1451
1451
|
]);
|
|
1452
1452
|
};
|
|
1453
1453
|
}
|
|
1454
1454
|
});
|
|
1455
1455
|
//#endregion
|
|
1456
1456
|
//#region src/components/ProgressBar.vue?vue&type=script&setup=true&lang.ts
|
|
1457
|
-
var _hoisted_1$
|
|
1457
|
+
var _hoisted_1$15 = ["aria-valuenow", "aria-label"];
|
|
1458
1458
|
//#endregion
|
|
1459
1459
|
//#region src/components/ProgressBar.vue
|
|
1460
1460
|
var ProgressBar_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1486,25 +1486,25 @@ var ProgressBar_default = /* @__PURE__ */ defineComponent({
|
|
|
1486
1486
|
}, [createElementVNode("div", {
|
|
1487
1487
|
class: "bg-primary h-full rounded-full transition-[width] duration-700 ease-out",
|
|
1488
1488
|
style: normalizeStyle({ width: `${portion.value}%` })
|
|
1489
|
-
}, null, 4)], 10, _hoisted_1$
|
|
1489
|
+
}, null, 4)], 10, _hoisted_1$15);
|
|
1490
1490
|
};
|
|
1491
1491
|
}
|
|
1492
1492
|
});
|
|
1493
1493
|
//#endregion
|
|
1494
1494
|
//#region src/components/PriceCard.vue?vue&type=script&setup=true&lang.ts
|
|
1495
|
-
var _hoisted_1$
|
|
1495
|
+
var _hoisted_1$14 = {
|
|
1496
1496
|
key: 0,
|
|
1497
1497
|
class: "bg-primary rounded-cell text-on-primary absolute -top-3 left-7 px-3 py-1 text-[0.7rem] font-semibold"
|
|
1498
1498
|
};
|
|
1499
|
-
var _hoisted_2$
|
|
1500
|
-
var _hoisted_3$
|
|
1501
|
-
var _hoisted_4$
|
|
1499
|
+
var _hoisted_2$12 = { class: "flex items-start justify-between gap-4" };
|
|
1500
|
+
var _hoisted_3$7 = { class: "text-ink mt-5 text-lg font-semibold" };
|
|
1501
|
+
var _hoisted_4$5 = {
|
|
1502
1502
|
key: 1,
|
|
1503
1503
|
class: "text-ink-soft mt-1.5 text-sm leading-relaxed"
|
|
1504
1504
|
};
|
|
1505
|
-
var _hoisted_5 = { class: "mt-6 flex items-baseline gap-1.5" };
|
|
1506
|
-
var _hoisted_6 = { class: "text-ink text-3xl font-semibold tracking-tight tabular-nums" };
|
|
1507
|
-
var _hoisted_7 = {
|
|
1505
|
+
var _hoisted_5$1 = { class: "mt-6 flex items-baseline gap-1.5" };
|
|
1506
|
+
var _hoisted_6$1 = { class: "text-ink text-3xl font-semibold tracking-tight tabular-nums" };
|
|
1507
|
+
var _hoisted_7$1 = {
|
|
1508
1508
|
key: 0,
|
|
1509
1509
|
class: "text-ink-soft text-sm"
|
|
1510
1510
|
};
|
|
@@ -1567,17 +1567,17 @@ var PriceCard_default = /* @__PURE__ */ defineComponent({
|
|
|
1567
1567
|
const palette = computed(() => TONE[__props.tone]);
|
|
1568
1568
|
return (_ctx, _cache) => {
|
|
1569
1569
|
return openBlock(), createElementBlock("article", { class: normalizeClass(["surface rounded-card ease-standard relative flex h-full flex-col p-7 transition-[border-color,box-shadow,transform] duration-(--duration-slower) hover:[--surface-border-color:color-mix(in_oklab,var(--color-primary)_60%,transparent)] hover:[--surface-shadow:var(--shadow-raised)] sm:p-8", [palette.value.ring, __props.recommended ? "[--surface-shadow:var(--shadow-raised)]" : "hover:-translate-y-0.5"]]) }, [
|
|
1570
|
-
__props.badge && __props.recommended ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1571
|
-
createElementVNode("div", _hoisted_2$
|
|
1570
|
+
__props.badge && __props.recommended ? (openBlock(), createElementBlock("span", _hoisted_1$14, toDisplayString(__props.badge), 1)) : createCommentVNode("", true),
|
|
1571
|
+
createElementVNode("div", _hoisted_2$12, [_ctx.$slots.icon ? (openBlock(), createElementBlock("span", {
|
|
1572
1572
|
key: 0,
|
|
1573
1573
|
class: normalizeClass(["rounded-card grid size-11 place-items-center text-xl", palette.value.icon])
|
|
1574
1574
|
}, [renderSlot(_ctx.$slots, "icon")], 2)) : createCommentVNode("", true), __props.chip ? (openBlock(), createElementBlock("span", {
|
|
1575
1575
|
key: 1,
|
|
1576
1576
|
class: normalizeClass(["rounded-cell ml-auto px-2.5 py-1 text-[0.7rem] font-medium", palette.value.soft])
|
|
1577
1577
|
}, toDisplayString(__props.chip), 3)) : createCommentVNode("", true)]),
|
|
1578
|
-
createElementVNode("h3", _hoisted_3$
|
|
1579
|
-
__props.lead ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
1580
|
-
createElementVNode("p", _hoisted_5, [createElementVNode("span", _hoisted_6, toDisplayString(__props.price), 1), __props.period ? (openBlock(), createElementBlock("span", _hoisted_7, toDisplayString(__props.period), 1)) : createCommentVNode("", true)]),
|
|
1578
|
+
createElementVNode("h3", _hoisted_3$7, toDisplayString(__props.name), 1),
|
|
1579
|
+
__props.lead ? (openBlock(), createElementBlock("p", _hoisted_4$5, toDisplayString(__props.lead), 1)) : createCommentVNode("", true),
|
|
1580
|
+
createElementVNode("p", _hoisted_5$1, [createElementVNode("span", _hoisted_6$1, toDisplayString(__props.price), 1), __props.period ? (openBlock(), createElementBlock("span", _hoisted_7$1, toDisplayString(__props.period), 1)) : createCommentVNode("", true)]),
|
|
1581
1581
|
__props.note ? (openBlock(), createElementBlock("p", _hoisted_8, toDisplayString(__props.note), 1)) : createCommentVNode("", true),
|
|
1582
1582
|
createElementVNode("ul", _hoisted_9, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.features, (feature) => {
|
|
1583
1583
|
return openBlock(), createElementBlock("li", {
|
|
@@ -1592,8 +1592,8 @@ var PriceCard_default = /* @__PURE__ */ defineComponent({
|
|
|
1592
1592
|
});
|
|
1593
1593
|
//#endregion
|
|
1594
1594
|
//#region src/components/ToneDot.vue?vue&type=script&setup=true&lang.ts
|
|
1595
|
-
var _hoisted_1$
|
|
1596
|
-
var _hoisted_2$
|
|
1595
|
+
var _hoisted_1$13 = { class: "inline-flex items-center gap-1.5" };
|
|
1596
|
+
var _hoisted_2$11 = {
|
|
1597
1597
|
key: 0,
|
|
1598
1598
|
class: "text-ink-soft text-xs font-medium"
|
|
1599
1599
|
};
|
|
@@ -1614,13 +1614,13 @@ var ToneDot_default = /* @__PURE__ */ defineComponent({
|
|
|
1614
1614
|
* priorities — without this component knowing about any of them.
|
|
1615
1615
|
*/
|
|
1616
1616
|
return (_ctx, _cache) => {
|
|
1617
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
1617
|
+
return openBlock(), createElementBlock("span", _hoisted_1$13, [createElementVNode("span", { class: normalizeClass(["size-2 rounded-full", __props.fill]) }, null, 2), __props.label ? (openBlock(), createElementBlock("span", _hoisted_2$11, toDisplayString(__props.label), 1)) : createCommentVNode("", true)]);
|
|
1618
1618
|
};
|
|
1619
1619
|
}
|
|
1620
1620
|
});
|
|
1621
1621
|
//#endregion
|
|
1622
1622
|
//#region src/components/SectionHeading.vue?vue&type=script&setup=true&lang.ts
|
|
1623
|
-
var _hoisted_1$
|
|
1623
|
+
var _hoisted_1$12 = {
|
|
1624
1624
|
key: 0,
|
|
1625
1625
|
class: "text-ink-soft text-xs tabular-nums"
|
|
1626
1626
|
};
|
|
@@ -1638,15 +1638,15 @@ var SectionHeading_default = /* @__PURE__ */ defineComponent({
|
|
|
1638
1638
|
return openBlock(), createElementBlock("h2", { class: normalizeClass(["flex w-fit items-center gap-2 self-start rounded-full border px-3 py-1", __props.tone.card]) }, [
|
|
1639
1639
|
createVNode(ToneDot_default, { fill: __props.tone.fill }, null, 8, ["fill"]),
|
|
1640
1640
|
createElementVNode("span", { class: normalizeClass(["text-xs font-semibold tracking-wide uppercase", __props.tone.text]) }, toDisplayString(__props.label), 3),
|
|
1641
|
-
__props.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1641
|
+
__props.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$12, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1642
1642
|
], 2);
|
|
1643
1643
|
};
|
|
1644
1644
|
}
|
|
1645
1645
|
});
|
|
1646
1646
|
//#endregion
|
|
1647
1647
|
//#region src/components/SegmentedControl.vue?vue&type=script&setup=true&lang.ts
|
|
1648
|
-
var _hoisted_1$
|
|
1649
|
-
var _hoisted_2$
|
|
1648
|
+
var _hoisted_1$11 = { class: "bg-muted rounded-card flex w-full gap-1 p-1" };
|
|
1649
|
+
var _hoisted_2$10 = ["value", "name"];
|
|
1650
1650
|
//#endregion
|
|
1651
1651
|
//#region src/components/SegmentedControl.vue
|
|
1652
1652
|
var SegmentedControl_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1660,7 +1660,7 @@ var SegmentedControl_default = /* @__PURE__ */ defineComponent({
|
|
|
1660
1660
|
const model = useModel(__props, "modelValue");
|
|
1661
1661
|
const name = useId();
|
|
1662
1662
|
return (_ctx, _cache) => {
|
|
1663
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1663
|
+
return openBlock(), createElementBlock("div", _hoisted_1$11, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
1664
1664
|
return openBlock(), createElementBlock("label", {
|
|
1665
1665
|
key: String(option.value),
|
|
1666
1666
|
class: "flex-1 cursor-pointer"
|
|
@@ -1670,18 +1670,18 @@ var SegmentedControl_default = /* @__PURE__ */ defineComponent({
|
|
|
1670
1670
|
value: option.value,
|
|
1671
1671
|
name: unref(name),
|
|
1672
1672
|
class: "peer sr-only"
|
|
1673
|
-
}, null, 8, _hoisted_2$
|
|
1673
|
+
}, null, 8, _hoisted_2$10), [[vModelRadio, model.value]]), createElementVNode("span", { class: normalizeClass(["peer-focus-visible:outline-primary flex h-10 items-center justify-center rounded-xl px-2 text-sm font-medium transition-colors select-none peer-focus-visible:outline-2 peer-focus-visible:outline-offset-2", model.value === option.value ? "bg-surface text-ink shadow-(--shadow-control)" : "text-ink-soft"]) }, toDisplayString(option.label), 3)]);
|
|
1674
1674
|
}), 128))]);
|
|
1675
1675
|
};
|
|
1676
1676
|
}
|
|
1677
1677
|
});
|
|
1678
1678
|
//#endregion
|
|
1679
1679
|
//#region src/components/SkeletonList.vue?vue&type=script&setup=true&lang.ts
|
|
1680
|
-
var _hoisted_1$
|
|
1680
|
+
var _hoisted_1$10 = {
|
|
1681
1681
|
role: "status",
|
|
1682
1682
|
class: "flex flex-col gap-1"
|
|
1683
1683
|
};
|
|
1684
|
-
var _hoisted_2$
|
|
1684
|
+
var _hoisted_2$9 = { class: "sr-only" };
|
|
1685
1685
|
//#endregion
|
|
1686
1686
|
//#region src/components/SkeletonList.vue
|
|
1687
1687
|
var SkeletonList_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1695,7 +1695,7 @@ var SkeletonList_default = /* @__PURE__ */ defineComponent({
|
|
|
1695
1695
|
/** A length starts with a digit, a dot, or opens a CSS function. */
|
|
1696
1696
|
const isLength = computed(() => /^(?:[.\d]|calc\(|var\(|clamp\(|min\(|max\()/.test(__props.rowHeight));
|
|
1697
1697
|
return (_ctx, _cache) => {
|
|
1698
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1698
|
+
return openBlock(), createElementBlock("div", _hoisted_1$10, [createElementVNode("span", _hoisted_2$9, toDisplayString(__props.label), 1), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (row) => {
|
|
1699
1699
|
return openBlock(), createElementBlock("div", {
|
|
1700
1700
|
key: row,
|
|
1701
1701
|
class: normalizeClass(["bg-muted rounded-card animate-pulse", isLength.value ? void 0 : __props.rowHeight]),
|
|
@@ -1708,10 +1708,10 @@ var SkeletonList_default = /* @__PURE__ */ defineComponent({
|
|
|
1708
1708
|
});
|
|
1709
1709
|
//#endregion
|
|
1710
1710
|
//#region src/components/StatCard.vue?vue&type=script&setup=true&lang.ts
|
|
1711
|
-
var _hoisted_1$
|
|
1712
|
-
var _hoisted_2$
|
|
1713
|
-
var _hoisted_3$
|
|
1714
|
-
var _hoisted_4$
|
|
1711
|
+
var _hoisted_1$9 = { class: "surface rounded-card flex flex-1 flex-col gap-0.5 p-3" };
|
|
1712
|
+
var _hoisted_2$8 = { class: "flex items-baseline gap-1" };
|
|
1713
|
+
var _hoisted_3$6 = { class: "text-ink text-xl font-semibold tabular-nums" };
|
|
1714
|
+
var _hoisted_4$4 = { class: "text-ink-soft text-xs" };
|
|
1715
1715
|
//#endregion
|
|
1716
1716
|
//#region src/components/StatCard.vue
|
|
1717
1717
|
var StatCard_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1728,22 +1728,22 @@ var StatCard_default = /* @__PURE__ */ defineComponent({
|
|
|
1728
1728
|
flat: ArrowRight
|
|
1729
1729
|
};
|
|
1730
1730
|
return (_ctx, _cache) => {
|
|
1731
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1731
|
+
return openBlock(), createElementBlock("div", _hoisted_1$9, [createElementVNode("div", _hoisted_2$8, [createElementVNode("span", _hoisted_3$6, toDisplayString(__props.value), 1), __props.trend ? (openBlock(), createBlock(resolveDynamicComponent(TREND_ICON[__props.trend]), {
|
|
1732
1732
|
key: 0,
|
|
1733
1733
|
class: "text-ink-soft size-3"
|
|
1734
|
-
})) : createCommentVNode("", true)]), createElementVNode("span", _hoisted_4$
|
|
1734
|
+
})) : createCommentVNode("", true)]), createElementVNode("span", _hoisted_4$4, toDisplayString(__props.label), 1)]);
|
|
1735
1735
|
};
|
|
1736
1736
|
}
|
|
1737
1737
|
});
|
|
1738
1738
|
//#endregion
|
|
1739
1739
|
//#region src/components/ToastHost.vue?vue&type=script&setup=true&lang.ts
|
|
1740
|
-
var _hoisted_1$
|
|
1740
|
+
var _hoisted_1$8 = [
|
|
1741
1741
|
"onMouseenter",
|
|
1742
1742
|
"onMouseleave",
|
|
1743
1743
|
"onFocusin",
|
|
1744
1744
|
"onFocusout"
|
|
1745
1745
|
];
|
|
1746
|
-
var _hoisted_2$
|
|
1746
|
+
var _hoisted_2$7 = { class: "flex-1 text-sm leading-snug" };
|
|
1747
1747
|
//#endregion
|
|
1748
1748
|
//#region src/components/ToastHost.vue
|
|
1749
1749
|
var ToastHost_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -1757,6 +1757,10 @@ var ToastHost_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
1757
1757
|
},
|
|
1758
1758
|
setup(__props) {
|
|
1759
1759
|
const { toasts, dismiss, pause, resume } = useToast();
|
|
1760
|
+
function runAction(id, onClick) {
|
|
1761
|
+
dismiss(id);
|
|
1762
|
+
onClick();
|
|
1763
|
+
}
|
|
1760
1764
|
/**
|
|
1761
1765
|
* Teleport needs a `body`, and a server has none.
|
|
1762
1766
|
*
|
|
@@ -1800,7 +1804,17 @@ var ToastHost_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
1800
1804
|
class: normalizeClass(["mt-0.5 size-5 shrink-0", TONE_CLASS[toast.tone]]),
|
|
1801
1805
|
"aria-hidden": "true"
|
|
1802
1806
|
}, null, 8, ["class"])),
|
|
1803
|
-
createElementVNode("p", _hoisted_2$
|
|
1807
|
+
createElementVNode("p", _hoisted_2$7, toDisplayString(toast.message), 1),
|
|
1808
|
+
toast.action ? (openBlock(), createBlock(BaseButton_default, {
|
|
1809
|
+
key: 0,
|
|
1810
|
+
variant: "link",
|
|
1811
|
+
size: "sm",
|
|
1812
|
+
class: "-my-1 shrink-0",
|
|
1813
|
+
onClick: ($event) => runAction(toast.id, toast.action.onClick)
|
|
1814
|
+
}, {
|
|
1815
|
+
default: withCtx(() => [createTextVNode(toDisplayString(toast.action.label), 1)]),
|
|
1816
|
+
_: 2
|
|
1817
|
+
}, 1032, ["onClick"])) : createCommentVNode("", true),
|
|
1804
1818
|
createVNode(BaseButton_default, {
|
|
1805
1819
|
variant: "quiet",
|
|
1806
1820
|
icon: "",
|
|
@@ -1813,17 +1827,17 @@ var ToastHost_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
1813
1827
|
default: withCtx(() => [createVNode(unref(X), { class: "size-4" })]),
|
|
1814
1828
|
_: 1
|
|
1815
1829
|
}, 8, ["aria-label", "onClick"])
|
|
1816
|
-
], 40, _hoisted_1$
|
|
1830
|
+
], 40, _hoisted_1$8);
|
|
1817
1831
|
}), 128))]),
|
|
1818
1832
|
_: 1
|
|
1819
1833
|
})], 2)])) : createCommentVNode("", true);
|
|
1820
1834
|
};
|
|
1821
1835
|
}
|
|
1822
|
-
}), [["__scopeId", "data-v-
|
|
1836
|
+
}), [["__scopeId", "data-v-737eb240"]]);
|
|
1823
1837
|
//#endregion
|
|
1824
1838
|
//#region src/components/LocaleLinks.vue?vue&type=script&setup=true&lang.ts
|
|
1825
|
-
var _hoisted_1$
|
|
1826
|
-
var _hoisted_2$
|
|
1839
|
+
var _hoisted_1$7 = ["aria-label"];
|
|
1840
|
+
var _hoisted_2$6 = [
|
|
1827
1841
|
"lang",
|
|
1828
1842
|
"aria-pressed",
|
|
1829
1843
|
"onClick"
|
|
@@ -1867,17 +1881,17 @@ var LocaleLinks_default = /* @__PURE__ */ defineComponent({
|
|
|
1867
1881
|
class: normalizeClass(["focus-ring rounded-full px-2.5 py-1.5 text-xs transition-colors", preference.value === locale ? "bg-muted text-ink font-semibold" : "text-ink-soft hover:text-ink"]),
|
|
1868
1882
|
"aria-pressed": preference.value === locale,
|
|
1869
1883
|
onClick: ($event) => preference.value = locale
|
|
1870
|
-
}, toDisplayString(__props.labels[locale]), 11, _hoisted_2$
|
|
1871
|
-
}), 128))], 8, _hoisted_1$
|
|
1884
|
+
}, toDisplayString(__props.labels[locale]), 11, _hoisted_2$6);
|
|
1885
|
+
}), 128))], 8, _hoisted_1$7);
|
|
1872
1886
|
};
|
|
1873
1887
|
}
|
|
1874
1888
|
});
|
|
1875
1889
|
//#endregion
|
|
1876
1890
|
//#region src/components/TabBar.vue?vue&type=script&setup=true&lang.ts
|
|
1877
|
-
var _hoisted_1 = { class: "tab-bar" };
|
|
1878
|
-
var _hoisted_2 = ["aria-label"];
|
|
1879
|
-
var _hoisted_3 = { class: "tab-icon-slot" };
|
|
1880
|
-
var _hoisted_4 = { class: "tab-label" };
|
|
1891
|
+
var _hoisted_1$6 = { class: "tab-bar" };
|
|
1892
|
+
var _hoisted_2$5 = ["aria-label"];
|
|
1893
|
+
var _hoisted_3$5 = { class: "tab-icon-slot" };
|
|
1894
|
+
var _hoisted_4$3 = { class: "tab-label" };
|
|
1881
1895
|
//#endregion
|
|
1882
1896
|
//#region src/components/TabBar.vue
|
|
1883
1897
|
var TabBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -1889,7 +1903,7 @@ var TabBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
1889
1903
|
},
|
|
1890
1904
|
setup(__props) {
|
|
1891
1905
|
return (_ctx, _cache) => {
|
|
1892
|
-
return openBlock(), createElementBlock("header", _hoisted_1, [createElementVNode("nav", {
|
|
1906
|
+
return openBlock(), createElementBlock("header", _hoisted_1$6, [createElementVNode("nav", {
|
|
1893
1907
|
class: "tab-bar-inner",
|
|
1894
1908
|
"aria-label": __props.label || void 0
|
|
1895
1909
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
@@ -1900,18 +1914,687 @@ var TabBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
1900
1914
|
"aria-current": item.key === __props.active ? "page" : void 0,
|
|
1901
1915
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(tapFeedback)())
|
|
1902
1916
|
}, {
|
|
1903
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_3, [(openBlock(), createBlock(resolveDynamicComponent(item.icon), { class: "tab-icon" }))]), createElementVNode("span", _hoisted_4, toDisplayString(item.label), 1)]),
|
|
1917
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_3$5, [(openBlock(), createBlock(resolveDynamicComponent(item.icon), { class: "tab-icon" }))]), createElementVNode("span", _hoisted_4$3, toDisplayString(item.label), 1)]),
|
|
1904
1918
|
_: 2
|
|
1905
1919
|
}, 1032, [
|
|
1906
1920
|
"to",
|
|
1907
1921
|
"class",
|
|
1908
1922
|
"aria-current"
|
|
1909
1923
|
]);
|
|
1910
|
-
}), 128))], 8, _hoisted_2)]);
|
|
1924
|
+
}), 128))], 8, _hoisted_2$5)]);
|
|
1911
1925
|
};
|
|
1912
1926
|
}
|
|
1913
1927
|
}), [["__scopeId", "data-v-a76891c4"]]);
|
|
1914
1928
|
//#endregion
|
|
1929
|
+
//#region src/components/BasePopover.vue?vue&type=script&setup=true&lang.ts
|
|
1930
|
+
var _hoisted_1$5 = ["id", "aria-label"];
|
|
1931
|
+
var FOCUSABLE = "a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex=\"-1\"])";
|
|
1932
|
+
//#endregion
|
|
1933
|
+
//#region src/components/BasePopover.vue
|
|
1934
|
+
var BasePopover_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
1935
|
+
__name: "BasePopover",
|
|
1936
|
+
props: /*@__PURE__*/ mergeModels({
|
|
1937
|
+
label: {},
|
|
1938
|
+
side: { default: "bottom" },
|
|
1939
|
+
align: { default: "start" }
|
|
1940
|
+
}, {
|
|
1941
|
+
"modelValue": {
|
|
1942
|
+
type: Boolean,
|
|
1943
|
+
default: false
|
|
1944
|
+
},
|
|
1945
|
+
"modelModifiers": {}
|
|
1946
|
+
}),
|
|
1947
|
+
emits: ["update:modelValue"],
|
|
1948
|
+
setup(__props) {
|
|
1949
|
+
/** Open or closed, with `v-model`. Optional: it manages itself. */
|
|
1950
|
+
const open = useModel(__props, "modelValue");
|
|
1951
|
+
const id = useId();
|
|
1952
|
+
const root = ref(null);
|
|
1953
|
+
const panel = ref(null);
|
|
1954
|
+
/** Where it actually opened, after measuring. */
|
|
1955
|
+
const placed = ref(__props.side);
|
|
1956
|
+
/** Pixels slid sideways to stay on screen. */
|
|
1957
|
+
const shift = ref(0);
|
|
1958
|
+
const triggerProps = computed(() => ({
|
|
1959
|
+
"aria-expanded": open.value,
|
|
1960
|
+
"aria-controls": id,
|
|
1961
|
+
"aria-haspopup": "dialog",
|
|
1962
|
+
"data-rk-popover-trigger": "",
|
|
1963
|
+
onClick: () => open.value = !open.value
|
|
1964
|
+
}));
|
|
1965
|
+
function close() {
|
|
1966
|
+
open.value = false;
|
|
1967
|
+
}
|
|
1968
|
+
function trigger() {
|
|
1969
|
+
return root.value?.querySelector("[data-rk-popover-trigger]") ?? null;
|
|
1970
|
+
}
|
|
1971
|
+
/**
|
|
1972
|
+
* Measured once it is on screen, because only then is there a size to
|
|
1973
|
+
* measure. Flips first, then slides: a panel that fits neither above nor
|
|
1974
|
+
* below keeps the side it asked for, where it is at least attached.
|
|
1975
|
+
*/
|
|
1976
|
+
function place() {
|
|
1977
|
+
if (!panel.value || typeof window === "undefined") return;
|
|
1978
|
+
const rect = panel.value.getBoundingClientRect();
|
|
1979
|
+
const anchor = root.value.getBoundingClientRect();
|
|
1980
|
+
const below = window.innerHeight - anchor.bottom;
|
|
1981
|
+
const above = anchor.top;
|
|
1982
|
+
if (__props.side === "bottom" && rect.height > below && above > below) placed.value = "top";
|
|
1983
|
+
if (__props.side === "top" && rect.height > above && below > above) placed.value = "bottom";
|
|
1984
|
+
const margin = 8;
|
|
1985
|
+
if (rect.right > window.innerWidth - margin) shift.value = window.innerWidth - margin - rect.right;
|
|
1986
|
+
if (rect.left + shift.value < margin) shift.value = margin - rect.left;
|
|
1987
|
+
}
|
|
1988
|
+
function onKeydown(event) {
|
|
1989
|
+
if (event.key !== "Escape" || !open.value) return;
|
|
1990
|
+
event.preventDefault();
|
|
1991
|
+
close();
|
|
1992
|
+
trigger()?.focus();
|
|
1993
|
+
}
|
|
1994
|
+
function onFocusout(event) {
|
|
1995
|
+
const next = event.relatedTarget;
|
|
1996
|
+
if (next && root.value && !root.value.contains(next)) close();
|
|
1997
|
+
}
|
|
1998
|
+
function onDocumentPointer(event) {
|
|
1999
|
+
if (root.value && !root.value.contains(event.target)) close();
|
|
2000
|
+
}
|
|
2001
|
+
watch(open, async (isOpen) => {
|
|
2002
|
+
if (typeof document === "undefined") return;
|
|
2003
|
+
if (!isOpen) {
|
|
2004
|
+
document.removeEventListener("pointerdown", onDocumentPointer);
|
|
2005
|
+
return;
|
|
2006
|
+
}
|
|
2007
|
+
document.addEventListener("pointerdown", onDocumentPointer);
|
|
2008
|
+
placed.value = __props.side;
|
|
2009
|
+
shift.value = 0;
|
|
2010
|
+
await nextTick();
|
|
2011
|
+
place();
|
|
2012
|
+
(panel.value?.querySelector(FOCUSABLE) ?? panel.value)?.focus();
|
|
2013
|
+
}, { immediate: true });
|
|
2014
|
+
onBeforeUnmount(() => {
|
|
2015
|
+
if (typeof document !== "undefined") document.removeEventListener("pointerdown", onDocumentPointer);
|
|
2016
|
+
});
|
|
2017
|
+
return (_ctx, _cache) => {
|
|
2018
|
+
return openBlock(), createElementBlock("div", {
|
|
2019
|
+
ref_key: "root",
|
|
2020
|
+
ref: root,
|
|
2021
|
+
class: "rk-popover",
|
|
2022
|
+
onKeydown,
|
|
2023
|
+
onFocusout
|
|
2024
|
+
}, [renderSlot(_ctx.$slots, "trigger", {
|
|
2025
|
+
open: open.value,
|
|
2026
|
+
props: triggerProps.value
|
|
2027
|
+
}, void 0, true), createVNode(Transition, { name: "rk-popover" }, {
|
|
2028
|
+
default: withCtx(() => [open.value ? (openBlock(), createElementBlock("div", {
|
|
2029
|
+
key: 0,
|
|
2030
|
+
id: unref(id),
|
|
2031
|
+
ref_key: "panel",
|
|
2032
|
+
ref: panel,
|
|
2033
|
+
class: normalizeClass(["rk-popover-panel surface-overlay", [`is-${placed.value}`, `is-${__props.align}`]]),
|
|
2034
|
+
style: normalizeStyle(shift.value ? { "--rk-popover-shift": `${shift.value}px` } : void 0),
|
|
2035
|
+
role: "dialog",
|
|
2036
|
+
"aria-label": __props.label,
|
|
2037
|
+
tabindex: "-1"
|
|
2038
|
+
}, [renderSlot(_ctx.$slots, "default", { close }, void 0, true)], 14, _hoisted_1$5)) : createCommentVNode("", true)]),
|
|
2039
|
+
_: 3
|
|
2040
|
+
})], 544);
|
|
2041
|
+
};
|
|
2042
|
+
}
|
|
2043
|
+
}), [["__scopeId", "data-v-1e2d16d3"]]);
|
|
2044
|
+
//#endregion
|
|
2045
|
+
//#region src/components/ToggleGroup.vue?vue&type=script&setup=true&lang.ts
|
|
2046
|
+
var _hoisted_1$4 = ["aria-label"];
|
|
2047
|
+
var _hoisted_2$4 = [
|
|
2048
|
+
"aria-pressed",
|
|
2049
|
+
"aria-label",
|
|
2050
|
+
"disabled",
|
|
2051
|
+
"tabindex",
|
|
2052
|
+
"onClick",
|
|
2053
|
+
"onKeydown"
|
|
2054
|
+
];
|
|
2055
|
+
var _hoisted_3$4 = { key: 1 };
|
|
2056
|
+
//#endregion
|
|
2057
|
+
//#region src/components/ToggleGroup.vue
|
|
2058
|
+
var ToggleGroup_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2059
|
+
__name: "ToggleGroup",
|
|
2060
|
+
props: /*@__PURE__*/ mergeModels({
|
|
2061
|
+
options: {},
|
|
2062
|
+
label: {},
|
|
2063
|
+
mode: { default: "single" },
|
|
2064
|
+
required: {
|
|
2065
|
+
type: Boolean,
|
|
2066
|
+
default: false
|
|
2067
|
+
},
|
|
2068
|
+
size: { default: "md" }
|
|
2069
|
+
}, {
|
|
2070
|
+
"modelValue": {},
|
|
2071
|
+
"modelModifiers": {}
|
|
2072
|
+
}),
|
|
2073
|
+
emits: ["update:modelValue"],
|
|
2074
|
+
setup(__props) {
|
|
2075
|
+
/** The pressed value — or, in `multiple` mode, the pressed values. */
|
|
2076
|
+
const model = useModel(__props, "modelValue");
|
|
2077
|
+
const buttons = ref([]);
|
|
2078
|
+
const pressed = computed(() => {
|
|
2079
|
+
const value = model.value;
|
|
2080
|
+
if (Array.isArray(value)) return new Set(value);
|
|
2081
|
+
return new Set(value === void 0 ? [] : [value]);
|
|
2082
|
+
});
|
|
2083
|
+
function toggle(value) {
|
|
2084
|
+
if (__props.mode === "multiple") {
|
|
2085
|
+
const next = new Set(pressed.value);
|
|
2086
|
+
if (next.has(value)) next.delete(value);
|
|
2087
|
+
else next.add(value);
|
|
2088
|
+
model.value = __props.options.map((option) => option.value).filter((v) => next.has(v));
|
|
2089
|
+
return;
|
|
2090
|
+
}
|
|
2091
|
+
const isPressed = pressed.value.has(value);
|
|
2092
|
+
if (isPressed && __props.required) return;
|
|
2093
|
+
model.value = isPressed ? void 0 : value;
|
|
2094
|
+
}
|
|
2095
|
+
const tabStop = computed(() => {
|
|
2096
|
+
const enabled = __props.options.filter((option) => !option.disabled);
|
|
2097
|
+
return (enabled.find((option) => pressed.value.has(option.value)) ?? enabled[0])?.value;
|
|
2098
|
+
});
|
|
2099
|
+
function onKeydown(event, index) {
|
|
2100
|
+
const step = {
|
|
2101
|
+
ArrowRight: 1,
|
|
2102
|
+
ArrowDown: 1,
|
|
2103
|
+
ArrowLeft: -1,
|
|
2104
|
+
ArrowUp: -1
|
|
2105
|
+
}[event.key];
|
|
2106
|
+
const enabled = buttons.value.filter((button) => !button.disabled);
|
|
2107
|
+
let target;
|
|
2108
|
+
if (step !== void 0) target = enabled[(enabled.indexOf(buttons.value[index]) + step + enabled.length) % enabled.length];
|
|
2109
|
+
else if (event.key === "Home") target = enabled[0];
|
|
2110
|
+
else if (event.key === "End") target = enabled[enabled.length - 1];
|
|
2111
|
+
else return;
|
|
2112
|
+
event.preventDefault();
|
|
2113
|
+
target?.focus();
|
|
2114
|
+
}
|
|
2115
|
+
return (_ctx, _cache) => {
|
|
2116
|
+
return openBlock(), createElementBlock("div", {
|
|
2117
|
+
class: normalizeClass(["rk-toggles control", `is-${__props.size}`]),
|
|
2118
|
+
role: "group",
|
|
2119
|
+
"aria-label": __props.label
|
|
2120
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option, index) => {
|
|
2121
|
+
return openBlock(), createElementBlock("button", {
|
|
2122
|
+
key: option.value,
|
|
2123
|
+
ref_for: true,
|
|
2124
|
+
ref_key: "buttons",
|
|
2125
|
+
ref: buttons,
|
|
2126
|
+
type: "button",
|
|
2127
|
+
class: "rk-toggle focus-ring",
|
|
2128
|
+
"aria-pressed": pressed.value.has(option.value),
|
|
2129
|
+
"aria-label": option.iconOnly ? option.label : void 0,
|
|
2130
|
+
disabled: option.disabled,
|
|
2131
|
+
tabindex: option.value === tabStop.value ? 0 : -1,
|
|
2132
|
+
onClick: ($event) => toggle(option.value),
|
|
2133
|
+
onKeydown: ($event) => onKeydown($event, index)
|
|
2134
|
+
}, [option.icon ? (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
|
|
2135
|
+
key: 0,
|
|
2136
|
+
class: "rk-toggle-icon",
|
|
2137
|
+
"aria-hidden": "true"
|
|
2138
|
+
})) : createCommentVNode("", true), !option.iconOnly ? (openBlock(), createElementBlock("span", _hoisted_3$4, toDisplayString(option.label), 1)) : createCommentVNode("", true)], 40, _hoisted_2$4);
|
|
2139
|
+
}), 128))], 10, _hoisted_1$4);
|
|
2140
|
+
};
|
|
2141
|
+
}
|
|
2142
|
+
}), [["__scopeId", "data-v-9076e36f"]]);
|
|
2143
|
+
//#endregion
|
|
2144
|
+
//#region src/components/NumberInput.vue?vue&type=script&setup=true&lang.ts
|
|
2145
|
+
var _hoisted_1$3 = ["aria-label", "disabled"];
|
|
2146
|
+
var _hoisted_2$3 = [
|
|
2147
|
+
"id",
|
|
2148
|
+
"value",
|
|
2149
|
+
"aria-valuenow",
|
|
2150
|
+
"aria-valuemin",
|
|
2151
|
+
"aria-valuemax",
|
|
2152
|
+
"aria-invalid",
|
|
2153
|
+
"aria-describedby",
|
|
2154
|
+
"disabled"
|
|
2155
|
+
];
|
|
2156
|
+
var _hoisted_3$3 = ["aria-label", "disabled"];
|
|
2157
|
+
//#endregion
|
|
2158
|
+
//#region src/components/NumberInput.vue
|
|
2159
|
+
var NumberInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2160
|
+
__name: "NumberInput",
|
|
2161
|
+
props: /*@__PURE__*/ mergeModels({
|
|
2162
|
+
label: {},
|
|
2163
|
+
min: { default: () => -Infinity },
|
|
2164
|
+
max: { default: () => Infinity },
|
|
2165
|
+
step: { default: 1 },
|
|
2166
|
+
decrementLabel: {},
|
|
2167
|
+
incrementLabel: {},
|
|
2168
|
+
error: { default: "" },
|
|
2169
|
+
hint: { default: "" },
|
|
2170
|
+
size: { default: "md" },
|
|
2171
|
+
labelHidden: {
|
|
2172
|
+
type: Boolean,
|
|
2173
|
+
default: false
|
|
2174
|
+
},
|
|
2175
|
+
disabled: {
|
|
2176
|
+
type: Boolean,
|
|
2177
|
+
default: false
|
|
2178
|
+
}
|
|
2179
|
+
}, {
|
|
2180
|
+
"modelValue": {},
|
|
2181
|
+
"modelModifiers": {}
|
|
2182
|
+
}),
|
|
2183
|
+
emits: ["update:modelValue"],
|
|
2184
|
+
setup(__props) {
|
|
2185
|
+
/** The number, with `v-model`. `undefined` while the field is empty. */
|
|
2186
|
+
const model = useModel(__props, "modelValue");
|
|
2187
|
+
const places = computed(() => (String(__props.step).split(".")[1] ?? "").length);
|
|
2188
|
+
const settle = (value) => Number(Math.min(__props.max, Math.max(__props.min, value)).toFixed(Math.min(places.value, 20)));
|
|
2189
|
+
const draft = ref(model.value === void 0 ? "" : String(model.value));
|
|
2190
|
+
watch(model, (value) => {
|
|
2191
|
+
if ((draft.value === "" ? void 0 : Number(draft.value)) !== value) draft.value = value === void 0 ? "" : String(value);
|
|
2192
|
+
});
|
|
2193
|
+
function onInput(event) {
|
|
2194
|
+
const text = event.target.value.replace(",", ".");
|
|
2195
|
+
draft.value = text;
|
|
2196
|
+
if (text.trim() === "") {
|
|
2197
|
+
model.value = void 0;
|
|
2198
|
+
return;
|
|
2199
|
+
}
|
|
2200
|
+
const value = Number(text);
|
|
2201
|
+
if (Number.isFinite(value)) model.value = value;
|
|
2202
|
+
}
|
|
2203
|
+
function commit() {
|
|
2204
|
+
if (model.value === void 0) {
|
|
2205
|
+
draft.value = "";
|
|
2206
|
+
return;
|
|
2207
|
+
}
|
|
2208
|
+
setTo(model.value);
|
|
2209
|
+
}
|
|
2210
|
+
function setTo(value) {
|
|
2211
|
+
model.value = settle(value);
|
|
2212
|
+
draft.value = String(model.value);
|
|
2213
|
+
}
|
|
2214
|
+
function stepBy(times) {
|
|
2215
|
+
if (__props.disabled) return;
|
|
2216
|
+
setTo((model.value ?? (Number.isFinite(__props.min) ? __props.min : 0)) + __props.step * times);
|
|
2217
|
+
}
|
|
2218
|
+
function onKeydown(event) {
|
|
2219
|
+
const action = {
|
|
2220
|
+
ArrowUp: () => stepBy(1),
|
|
2221
|
+
ArrowDown: () => stepBy(-1),
|
|
2222
|
+
PageUp: () => stepBy(10),
|
|
2223
|
+
PageDown: () => stepBy(-10),
|
|
2224
|
+
Home: () => {
|
|
2225
|
+
if (Number.isFinite(__props.min)) setTo(__props.min);
|
|
2226
|
+
},
|
|
2227
|
+
End: () => {
|
|
2228
|
+
if (Number.isFinite(__props.max)) setTo(__props.max);
|
|
2229
|
+
}
|
|
2230
|
+
}[event.key];
|
|
2231
|
+
if (!action) return;
|
|
2232
|
+
event.preventDefault();
|
|
2233
|
+
action();
|
|
2234
|
+
}
|
|
2235
|
+
const atMin = computed(() => model.value !== void 0 && model.value <= __props.min);
|
|
2236
|
+
const atMax = computed(() => model.value !== void 0 && model.value >= __props.max);
|
|
2237
|
+
return (_ctx, _cache) => {
|
|
2238
|
+
return openBlock(), createBlock(FormField_default, {
|
|
2239
|
+
label: __props.label,
|
|
2240
|
+
error: __props.error,
|
|
2241
|
+
hint: __props.hint,
|
|
2242
|
+
size: __props.size,
|
|
2243
|
+
"label-hidden": __props.labelHidden
|
|
2244
|
+
}, {
|
|
2245
|
+
default: withCtx(({ id, describedBy, invalid }) => [createElementVNode("div", { class: normalizeClass(["rk-number control", {
|
|
2246
|
+
"is-invalid": invalid,
|
|
2247
|
+
"is-disabled": __props.disabled
|
|
2248
|
+
}]) }, [
|
|
2249
|
+
createElementVNode("button", {
|
|
2250
|
+
type: "button",
|
|
2251
|
+
class: "rk-number-step focus-ring",
|
|
2252
|
+
"aria-label": __props.decrementLabel,
|
|
2253
|
+
disabled: __props.disabled || atMin.value,
|
|
2254
|
+
tabindex: "-1",
|
|
2255
|
+
onClick: _cache[0] || (_cache[0] = ($event) => stepBy(-1))
|
|
2256
|
+
}, [createVNode(unref(Minus), {
|
|
2257
|
+
class: "size-4",
|
|
2258
|
+
"aria-hidden": "true"
|
|
2259
|
+
})], 8, _hoisted_1$3),
|
|
2260
|
+
createElementVNode("input", {
|
|
2261
|
+
id,
|
|
2262
|
+
value: draft.value,
|
|
2263
|
+
type: "text",
|
|
2264
|
+
inputmode: "decimal",
|
|
2265
|
+
role: "spinbutton",
|
|
2266
|
+
autocomplete: "off",
|
|
2267
|
+
class: "rk-number-field",
|
|
2268
|
+
"aria-valuenow": model.value,
|
|
2269
|
+
"aria-valuemin": Number.isFinite(__props.min) ? __props.min : void 0,
|
|
2270
|
+
"aria-valuemax": Number.isFinite(__props.max) ? __props.max : void 0,
|
|
2271
|
+
"aria-invalid": invalid,
|
|
2272
|
+
"aria-describedby": describedBy,
|
|
2273
|
+
disabled: __props.disabled,
|
|
2274
|
+
onInput,
|
|
2275
|
+
onBlur: commit,
|
|
2276
|
+
onKeydown
|
|
2277
|
+
}, null, 40, _hoisted_2$3),
|
|
2278
|
+
createElementVNode("button", {
|
|
2279
|
+
type: "button",
|
|
2280
|
+
class: "rk-number-step focus-ring",
|
|
2281
|
+
"aria-label": __props.incrementLabel,
|
|
2282
|
+
disabled: __props.disabled || atMax.value,
|
|
2283
|
+
tabindex: "-1",
|
|
2284
|
+
onClick: _cache[1] || (_cache[1] = ($event) => stepBy(1))
|
|
2285
|
+
}, [createVNode(unref(Plus), {
|
|
2286
|
+
class: "size-4",
|
|
2287
|
+
"aria-hidden": "true"
|
|
2288
|
+
})], 8, _hoisted_3$3)
|
|
2289
|
+
], 2)]),
|
|
2290
|
+
_: 1
|
|
2291
|
+
}, 8, [
|
|
2292
|
+
"label",
|
|
2293
|
+
"error",
|
|
2294
|
+
"hint",
|
|
2295
|
+
"size",
|
|
2296
|
+
"label-hidden"
|
|
2297
|
+
]);
|
|
2298
|
+
};
|
|
2299
|
+
}
|
|
2300
|
+
}), [["__scopeId", "data-v-082bd3d7"]]);
|
|
2301
|
+
//#endregion
|
|
2302
|
+
//#region src/components/PinInput.vue?vue&type=script&setup=true&lang.ts
|
|
2303
|
+
var _hoisted_1$2 = { class: "rk-pin" };
|
|
2304
|
+
var _hoisted_2$2 = ["aria-label"];
|
|
2305
|
+
var _hoisted_3$2 = [
|
|
2306
|
+
"value",
|
|
2307
|
+
"type",
|
|
2308
|
+
"inputmode",
|
|
2309
|
+
"autocomplete",
|
|
2310
|
+
"aria-label",
|
|
2311
|
+
"aria-invalid",
|
|
2312
|
+
"aria-describedby",
|
|
2313
|
+
"disabled",
|
|
2314
|
+
"onInput",
|
|
2315
|
+
"onPaste",
|
|
2316
|
+
"onKeydown"
|
|
2317
|
+
];
|
|
2318
|
+
var _hoisted_4$2 = ["id"];
|
|
2319
|
+
//#endregion
|
|
2320
|
+
//#region src/components/PinInput.vue
|
|
2321
|
+
var PinInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2322
|
+
__name: "PinInput",
|
|
2323
|
+
props: /*@__PURE__*/ mergeModels({
|
|
2324
|
+
length: { default: 6 },
|
|
2325
|
+
label: {},
|
|
2326
|
+
cellLabel: { type: Function },
|
|
2327
|
+
type: { default: "numeric" },
|
|
2328
|
+
mask: {
|
|
2329
|
+
type: Boolean,
|
|
2330
|
+
default: false
|
|
2331
|
+
},
|
|
2332
|
+
error: { default: "" },
|
|
2333
|
+
disabled: {
|
|
2334
|
+
type: Boolean,
|
|
2335
|
+
default: false
|
|
2336
|
+
}
|
|
2337
|
+
}, {
|
|
2338
|
+
"modelValue": { default: "" },
|
|
2339
|
+
"modelModifiers": {}
|
|
2340
|
+
}),
|
|
2341
|
+
emits: /*@__PURE__*/ mergeModels(["complete"], ["update:modelValue"]),
|
|
2342
|
+
setup(__props, { emit: __emit }) {
|
|
2343
|
+
const emit = __emit;
|
|
2344
|
+
/** The code so far, with `v-model`. Always shorter than or as long as `length`. */
|
|
2345
|
+
const model = useModel(__props, "modelValue");
|
|
2346
|
+
const cells = ref([]);
|
|
2347
|
+
const errorId = useId();
|
|
2348
|
+
const allowed = computed(() => __props.type === "numeric" ? /[0-9]/ : /[0-9a-z]/i);
|
|
2349
|
+
const chars = computed(() => Array.from({ length: __props.length }, (_, i) => model.value[i] ?? ""));
|
|
2350
|
+
function clean(text) {
|
|
2351
|
+
return Array.from(text).filter((char) => allowed.value.test(char)).join("");
|
|
2352
|
+
}
|
|
2353
|
+
function write(next) {
|
|
2354
|
+
const code = next.slice(0, __props.length);
|
|
2355
|
+
const wasComplete = model.value.length === __props.length;
|
|
2356
|
+
model.value = code;
|
|
2357
|
+
if (code.length === __props.length && !wasComplete) emit("complete", code);
|
|
2358
|
+
}
|
|
2359
|
+
function focusCell(index) {
|
|
2360
|
+
const cell = cells.value[Math.max(0, Math.min(__props.length - 1, index))];
|
|
2361
|
+
cell?.focus();
|
|
2362
|
+
cell?.select();
|
|
2363
|
+
}
|
|
2364
|
+
function onInput(event, index) {
|
|
2365
|
+
const input = event.target;
|
|
2366
|
+
const typed = clean(input.value);
|
|
2367
|
+
if (typed.length > 1) {
|
|
2368
|
+
write(model.value.slice(0, index) + typed);
|
|
2369
|
+
focusCell(index + typed.length);
|
|
2370
|
+
return;
|
|
2371
|
+
}
|
|
2372
|
+
input.value = typed;
|
|
2373
|
+
if (!typed) return;
|
|
2374
|
+
const at = Math.min(index, model.value.length);
|
|
2375
|
+
write(model.value.slice(0, at) + typed + model.value.slice(at + 1));
|
|
2376
|
+
focusCell(at + 1);
|
|
2377
|
+
}
|
|
2378
|
+
function onPaste(event, index) {
|
|
2379
|
+
const text = clean(event.clipboardData?.getData("text") ?? "");
|
|
2380
|
+
if (!text) return;
|
|
2381
|
+
event.preventDefault();
|
|
2382
|
+
write(model.value.slice(0, index) + text);
|
|
2383
|
+
focusCell(index + text.length);
|
|
2384
|
+
}
|
|
2385
|
+
function onKeydown(event, index) {
|
|
2386
|
+
if (event.key === "Backspace") {
|
|
2387
|
+
event.preventDefault();
|
|
2388
|
+
const target = chars.value[index] ? index : index - 1;
|
|
2389
|
+
if (target < 0) return;
|
|
2390
|
+
write(model.value.slice(0, target) + model.value.slice(target + 1));
|
|
2391
|
+
focusCell(target);
|
|
2392
|
+
} else if (event.key === "ArrowLeft") {
|
|
2393
|
+
event.preventDefault();
|
|
2394
|
+
focusCell(index - 1);
|
|
2395
|
+
} else if (event.key === "ArrowRight") {
|
|
2396
|
+
event.preventDefault();
|
|
2397
|
+
focusCell(index + 1);
|
|
2398
|
+
}
|
|
2399
|
+
}
|
|
2400
|
+
return (_ctx, _cache) => {
|
|
2401
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [createElementVNode("div", {
|
|
2402
|
+
class: "rk-pin-cells",
|
|
2403
|
+
role: "group",
|
|
2404
|
+
"aria-label": __props.label
|
|
2405
|
+
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(chars.value, (char, index) => {
|
|
2406
|
+
return openBlock(), createElementBlock("input", {
|
|
2407
|
+
key: index,
|
|
2408
|
+
ref_for: true,
|
|
2409
|
+
ref_key: "cells",
|
|
2410
|
+
ref: cells,
|
|
2411
|
+
class: normalizeClass(["rk-pin-cell control focus-ring", { "is-invalid": __props.error }]),
|
|
2412
|
+
value: char,
|
|
2413
|
+
type: __props.mask ? "password" : "text",
|
|
2414
|
+
inputmode: __props.type === "numeric" ? "numeric" : "text",
|
|
2415
|
+
autocomplete: index === 0 ? "one-time-code" : "off",
|
|
2416
|
+
"aria-label": __props.cellLabel(index + 1, __props.length),
|
|
2417
|
+
"aria-invalid": Boolean(__props.error),
|
|
2418
|
+
"aria-describedby": __props.error ? unref(errorId) : void 0,
|
|
2419
|
+
disabled: __props.disabled,
|
|
2420
|
+
onInput: ($event) => onInput($event, index),
|
|
2421
|
+
onPaste: ($event) => onPaste($event, index),
|
|
2422
|
+
onKeydown: ($event) => onKeydown($event, index),
|
|
2423
|
+
onFocus: _cache[0] || (_cache[0] = ($event) => $event.target.select())
|
|
2424
|
+
}, null, 42, _hoisted_3$2);
|
|
2425
|
+
}), 128))], 8, _hoisted_2$2), __props.error ? (openBlock(), createElementBlock("p", {
|
|
2426
|
+
key: 0,
|
|
2427
|
+
id: unref(errorId),
|
|
2428
|
+
class: "rk-pin-error",
|
|
2429
|
+
role: "alert"
|
|
2430
|
+
}, toDisplayString(__props.error), 9, _hoisted_4$2)) : createCommentVNode("", true)]);
|
|
2431
|
+
};
|
|
2432
|
+
}
|
|
2433
|
+
}), [["__scopeId", "data-v-ba322d9c"]]);
|
|
2434
|
+
//#endregion
|
|
2435
|
+
//#region src/components/CircularProgress.vue?vue&type=script&setup=true&lang.ts
|
|
2436
|
+
var _hoisted_1$1 = [
|
|
2437
|
+
"aria-label",
|
|
2438
|
+
"aria-valuenow",
|
|
2439
|
+
"aria-valuemin",
|
|
2440
|
+
"aria-valuemax"
|
|
2441
|
+
];
|
|
2442
|
+
var _hoisted_2$1 = {
|
|
2443
|
+
viewBox: "0 0 48 48",
|
|
2444
|
+
"aria-hidden": "true"
|
|
2445
|
+
};
|
|
2446
|
+
var _hoisted_3$1 = ["stroke-dashoffset"];
|
|
2447
|
+
var _hoisted_4$1 = {
|
|
2448
|
+
key: 0,
|
|
2449
|
+
class: "rk-ring-inside"
|
|
2450
|
+
};
|
|
2451
|
+
/**
|
|
2452
|
+
* Progress as a ring — for a small space, a card's corner, a goal.
|
|
2453
|
+
*
|
|
2454
|
+
* With a `value`, a promise about how far: the ring fills and, with
|
|
2455
|
+
* `showValue`, the percentage sits inside it. Without one, it says only
|
|
2456
|
+
* "working" and turns — the same distinction as `ProgressBar` and
|
|
2457
|
+
* `BaseSpinner`, in one shape. For a reader who asked for less motion the
|
|
2458
|
+
* turning ring breathes instead of spinning.
|
|
2459
|
+
*
|
|
2460
|
+
* The inside is a slot, so a ring can hold "3/7", an icon or nothing.
|
|
2461
|
+
*/
|
|
2462
|
+
var RADIUS = 20;
|
|
2463
|
+
//#endregion
|
|
2464
|
+
//#region src/components/CircularProgress.vue
|
|
2465
|
+
var CircularProgress_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2466
|
+
__name: "CircularProgress",
|
|
2467
|
+
props: {
|
|
2468
|
+
value: { default: () => void 0 },
|
|
2469
|
+
max: { default: 100 },
|
|
2470
|
+
label: {},
|
|
2471
|
+
size: { default: "md" },
|
|
2472
|
+
showValue: {
|
|
2473
|
+
type: Boolean,
|
|
2474
|
+
default: false
|
|
2475
|
+
},
|
|
2476
|
+
tone: { default: "primary" }
|
|
2477
|
+
},
|
|
2478
|
+
setup(__props) {
|
|
2479
|
+
const CIRCUMFERENCE = 2 * Math.PI * RADIUS;
|
|
2480
|
+
const indeterminate = computed(() => __props.value === void 0);
|
|
2481
|
+
const portion = computed(() => {
|
|
2482
|
+
if (__props.value === void 0 || __props.max <= 0) return 0;
|
|
2483
|
+
return Math.min(1, Math.max(0, __props.value / __props.max));
|
|
2484
|
+
});
|
|
2485
|
+
const percent = computed(() => Math.round(portion.value * 100));
|
|
2486
|
+
const offset = computed(() => CIRCUMFERENCE * (1 - (indeterminate.value ? .28 : portion.value)));
|
|
2487
|
+
return (_ctx, _cache) => {
|
|
2488
|
+
return openBlock(), createElementBlock("div", {
|
|
2489
|
+
class: normalizeClass(["rk-ring", [
|
|
2490
|
+
`is-${__props.size}`,
|
|
2491
|
+
`is-${__props.tone}`,
|
|
2492
|
+
{ "is-indeterminate": indeterminate.value }
|
|
2493
|
+
]]),
|
|
2494
|
+
role: "progressbar",
|
|
2495
|
+
"aria-label": __props.label,
|
|
2496
|
+
"aria-valuenow": indeterminate.value ? void 0 : percent.value,
|
|
2497
|
+
"aria-valuemin": indeterminate.value ? void 0 : 0,
|
|
2498
|
+
"aria-valuemax": indeterminate.value ? void 0 : 100
|
|
2499
|
+
}, [(openBlock(), createElementBlock("svg", _hoisted_2$1, [createElementVNode("circle", {
|
|
2500
|
+
class: "rk-ring-track",
|
|
2501
|
+
cx: "24",
|
|
2502
|
+
cy: "24",
|
|
2503
|
+
r: RADIUS
|
|
2504
|
+
}), createElementVNode("circle", {
|
|
2505
|
+
class: "rk-ring-bar",
|
|
2506
|
+
cx: "24",
|
|
2507
|
+
cy: "24",
|
|
2508
|
+
r: RADIUS,
|
|
2509
|
+
"stroke-dasharray": CIRCUMFERENCE,
|
|
2510
|
+
"stroke-dashoffset": offset.value
|
|
2511
|
+
}, null, 8, _hoisted_3$1)])), _ctx.$slots.default || __props.showValue && !indeterminate.value ? (openBlock(), createElementBlock("span", _hoisted_4$1, [renderSlot(_ctx.$slots, "default", {}, () => [createTextVNode(toDisplayString(percent.value) + "%", 1)], true)])) : createCommentVNode("", true)], 10, _hoisted_1$1);
|
|
2512
|
+
};
|
|
2513
|
+
}
|
|
2514
|
+
}), [["__scopeId", "data-v-6b1d11db"]]);
|
|
2515
|
+
//#endregion
|
|
2516
|
+
//#region src/components/BaseStepper.vue?vue&type=script&setup=true&lang.ts
|
|
2517
|
+
var _hoisted_1 = ["aria-label"];
|
|
2518
|
+
var _hoisted_2 = ["aria-current"];
|
|
2519
|
+
var _hoisted_3 = {
|
|
2520
|
+
class: "rk-step-mark",
|
|
2521
|
+
"aria-hidden": "true"
|
|
2522
|
+
};
|
|
2523
|
+
var _hoisted_4 = { class: "rk-step-text" };
|
|
2524
|
+
var _hoisted_5 = { class: "rk-step-label" };
|
|
2525
|
+
var _hoisted_6 = {
|
|
2526
|
+
key: 0,
|
|
2527
|
+
class: "rk-step-description"
|
|
2528
|
+
};
|
|
2529
|
+
var _hoisted_7 = {
|
|
2530
|
+
key: 1,
|
|
2531
|
+
class: "sr-only"
|
|
2532
|
+
};
|
|
2533
|
+
//#endregion
|
|
2534
|
+
//#region src/components/BaseStepper.vue
|
|
2535
|
+
var BaseStepper_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2536
|
+
__name: "BaseStepper",
|
|
2537
|
+
props: /*@__PURE__*/ mergeModels({
|
|
2538
|
+
steps: {},
|
|
2539
|
+
label: {},
|
|
2540
|
+
orientation: { default: "horizontal" },
|
|
2541
|
+
interactive: {
|
|
2542
|
+
type: Boolean,
|
|
2543
|
+
default: false
|
|
2544
|
+
},
|
|
2545
|
+
stateLabels: { default: () => void 0 }
|
|
2546
|
+
}, {
|
|
2547
|
+
"modelValue": { required: true },
|
|
2548
|
+
"modelModifiers": {}
|
|
2549
|
+
}),
|
|
2550
|
+
emits: ["update:modelValue"],
|
|
2551
|
+
setup(__props) {
|
|
2552
|
+
/** The step in progress, by key, with `v-model`. */
|
|
2553
|
+
const current = useModel(__props, "modelValue");
|
|
2554
|
+
const currentIndex = computed(() => __props.steps.findIndex((step) => step.key === current.value));
|
|
2555
|
+
const canGoTo = (index) => __props.interactive && index < currentIndex.value;
|
|
2556
|
+
function goTo(index) {
|
|
2557
|
+
if (canGoTo(index)) current.value = __props.steps[index].key;
|
|
2558
|
+
}
|
|
2559
|
+
function state(index) {
|
|
2560
|
+
if (__props.steps[index].error) return "error";
|
|
2561
|
+
if (index < currentIndex.value) return "complete";
|
|
2562
|
+
if (index === currentIndex.value) return "current";
|
|
2563
|
+
return "upcoming";
|
|
2564
|
+
}
|
|
2565
|
+
return (_ctx, _cache) => {
|
|
2566
|
+
return openBlock(), createElementBlock("nav", { "aria-label": __props.label }, [createElementVNode("ol", { class: normalizeClass(["rk-steps", `is-${__props.orientation}`]) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.steps, (step, index) => {
|
|
2567
|
+
return openBlock(), createElementBlock("li", {
|
|
2568
|
+
key: step.key,
|
|
2569
|
+
class: normalizeClass(["rk-step", `is-${state(index)}`]),
|
|
2570
|
+
"aria-current": index === currentIndex.value ? "step" : void 0
|
|
2571
|
+
}, [(openBlock(), createBlock(resolveDynamicComponent(canGoTo(index) ? "button" : "div"), {
|
|
2572
|
+
type: canGoTo(index) ? "button" : void 0,
|
|
2573
|
+
class: normalizeClass(["rk-step-body", { "focus-ring is-clickable": canGoTo(index) }]),
|
|
2574
|
+
onClick: ($event) => goTo(index)
|
|
2575
|
+
}, {
|
|
2576
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_3, [state(index) === "error" ? (openBlock(), createBlock(unref(X), {
|
|
2577
|
+
key: 0,
|
|
2578
|
+
class: "size-3.5"
|
|
2579
|
+
})) : state(index) === "complete" ? (openBlock(), createBlock(unref(Check), {
|
|
2580
|
+
key: 1,
|
|
2581
|
+
class: "size-3.5"
|
|
2582
|
+
})) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [createTextVNode(toDisplayString(index + 1), 1)], 64))]), createElementVNode("span", _hoisted_4, [
|
|
2583
|
+
createElementVNode("span", _hoisted_5, toDisplayString(step.label), 1),
|
|
2584
|
+
step.description ? (openBlock(), createElementBlock("span", _hoisted_6, toDisplayString(step.description), 1)) : createCommentVNode("", true),
|
|
2585
|
+
__props.stateLabels && (state(index) === "complete" || state(index) === "error") ? (openBlock(), createElementBlock("span", _hoisted_7, " — " + toDisplayString(state(index) === "error" ? __props.stateLabels.error : __props.stateLabels.complete), 1)) : createCommentVNode("", true)
|
|
2586
|
+
])]),
|
|
2587
|
+
_: 2
|
|
2588
|
+
}, 1032, [
|
|
2589
|
+
"type",
|
|
2590
|
+
"class",
|
|
2591
|
+
"onClick"
|
|
2592
|
+
]))], 10, _hoisted_2);
|
|
2593
|
+
}), 128))], 2)], 8, _hoisted_1);
|
|
2594
|
+
};
|
|
2595
|
+
}
|
|
2596
|
+
}), [["__scopeId", "data-v-6aa3221b"]]);
|
|
2597
|
+
//#endregion
|
|
1915
2598
|
//#region src/i18n/runtime.ts
|
|
1916
2599
|
/**
|
|
1917
2600
|
* Builds an i18n runtime around an app's own catalogue.
|
|
@@ -2054,8 +2737,8 @@ function createI18nRuntime(options) {
|
|
|
2054
2737
|
*
|
|
2055
2738
|
* The fallback keeps `vitest` and `vite dev` honest, where no define runs.
|
|
2056
2739
|
*/
|
|
2057
|
-
var VERSION = "2.
|
|
2740
|
+
var VERSION = "2.5.0";
|
|
2058
2741
|
//#endregion
|
|
2059
|
-
export { AppError, BaseAlert_default as BaseAlert, BaseAvatar_default as BaseAvatar, BaseBadge_default as BaseBadge, BaseButton_default as BaseButton, BaseCard_default as BaseCard, BaseCheckbox_default as BaseCheckbox, BaseCombobox_default as BaseCombobox, BaseInput_default as BaseInput, BaseMenu_default as BaseMenu, BaseRadioGroup_default as BaseRadioGroup, BaseSelect_default as BaseSelect, BaseSheet_default as BaseSheet, BaseSlider_default as BaseSlider, BaseSpinner_default as BaseSpinner, BaseSwitch_default as BaseSwitch, BaseTable_default as BaseTable, BaseTextarea_default as BaseTextarea, EmptyState_default as EmptyState, ErrorBoundary_default as ErrorBoundary, FormField_default as FormField, GoogleButton_default as GoogleButton, LocaleLinks_default as LocaleLinks, MATERIALS, PALETTES, PageContainer_default as PageContainer, PageHeader_default as PageHeader, PriceCard_default as PriceCard, ProgressBar_default as ProgressBar, SHEET_ROOT_ID, SectionHeading_default as SectionHeading, SegmentedControl_default as SegmentedControl, SettingsGroup_default as SettingsGroup, SettingsRow_default as SettingsRow, SkeletonList_default as SkeletonList, StatCard_default as StatCard, TabBar_default as TabBar, ToastHost_default as ToastHost, ToneDot_default as ToneDot, VERSION, addDays, applyMaterial, applyPalette, applyTheme, createI18nRuntime, downloadJson, eachDayOfYear, ensureSheetRoot, formatDate, formatNumber, fromDateKey, isApplePortable, isInstalled, isMaterial, isPaletteName, isThemePreference, lastNDays, leadingBlanks, needsIosInstall, readStoredTheme, registerErrorMapper, relativeDayLabel, safeRedirect, setFormatLocale, setMaterialStorageKey, setPaletteStorageKey, setThemeStorageKey, startOfWeek, tapFeedback, toAppError, toDateKey, toRedirectPath, todayKey, useDebouncedCallback, useDragScroll, useMaterial, useMediaQuery, useOnline, usePalette, useTheme, useToast, useToday, useVisualViewport };
|
|
2742
|
+
export { AppError, BaseAlert_default as BaseAlert, BaseAvatar_default as BaseAvatar, BaseBadge_default as BaseBadge, BaseButton_default as BaseButton, BaseCard_default as BaseCard, BaseCheckbox_default as BaseCheckbox, BaseCombobox_default as BaseCombobox, BaseInput_default as BaseInput, BaseMenu_default as BaseMenu, BasePopover_default as BasePopover, BaseRadioGroup_default as BaseRadioGroup, BaseSelect_default as BaseSelect, BaseSheet_default as BaseSheet, BaseSlider_default as BaseSlider, BaseSpinner_default as BaseSpinner, BaseStepper_default as BaseStepper, BaseSwitch_default as BaseSwitch, BaseTable_default as BaseTable, BaseTextarea_default as BaseTextarea, CircularProgress_default as CircularProgress, EmptyState_default as EmptyState, ErrorBoundary_default as ErrorBoundary, FormField_default as FormField, GoogleButton_default as GoogleButton, LocaleLinks_default as LocaleLinks, MATERIALS, NumberInput_default as NumberInput, PALETTES, PageContainer_default as PageContainer, PageHeader_default as PageHeader, PinInput_default as PinInput, PriceCard_default as PriceCard, ProgressBar_default as ProgressBar, SHEET_ROOT_ID, SectionHeading_default as SectionHeading, SegmentedControl_default as SegmentedControl, SettingsGroup_default as SettingsGroup, SettingsRow_default as SettingsRow, SkeletonList_default as SkeletonList, StatCard_default as StatCard, TabBar_default as TabBar, ToastHost_default as ToastHost, ToggleGroup_default as ToggleGroup, ToneDot_default as ToneDot, VERSION, addDays, applyMaterial, applyPalette, applyTheme, createI18nRuntime, downloadJson, eachDayOfYear, ensureSheetRoot, formatDate, formatNumber, fromDateKey, isApplePortable, isInstalled, isMaterial, isPaletteName, isThemePreference, lastNDays, leadingBlanks, needsIosInstall, readStoredTheme, registerErrorMapper, relativeDayLabel, safeRedirect, setFormatLocale, setMaterialStorageKey, setPaletteStorageKey, setThemeStorageKey, startOfWeek, tapFeedback, toAppError, toDateKey, toRedirectPath, todayKey, useDebouncedCallback, useDragScroll, useMaterial, useMediaQuery, useOnline, usePalette, useTheme, useToast, useToday, useVisualViewport };
|
|
2060
2743
|
|
|
2061
2744
|
//# sourceMappingURL=index.js.map
|