rei-kit 2.19.0 → 2.20.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 +3 -3
- package/dist/components/ActivityGrid.vue.d.ts +52 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +326 -143
- package/dist/index.js.map +1 -1
- package/dist/styles.css +37 -0
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -348,17 +348,17 @@ function useDragScroll(target) {
|
|
|
348
348
|
}
|
|
349
349
|
//#endregion
|
|
350
350
|
//#region src/components/BaseAvatar.vue?vue&type=script&setup=true&lang.ts
|
|
351
|
-
var _hoisted_1$
|
|
351
|
+
var _hoisted_1$45 = [
|
|
352
352
|
"role",
|
|
353
353
|
"aria-label",
|
|
354
354
|
"aria-hidden"
|
|
355
355
|
];
|
|
356
|
-
var _hoisted_2$
|
|
357
|
-
var _hoisted_3$
|
|
356
|
+
var _hoisted_2$39 = ["src"];
|
|
357
|
+
var _hoisted_3$26 = {
|
|
358
358
|
key: 1,
|
|
359
359
|
class: "rk-avatar-initials"
|
|
360
360
|
};
|
|
361
|
-
var _hoisted_4$
|
|
361
|
+
var _hoisted_4$20 = {
|
|
362
362
|
key: 2,
|
|
363
363
|
viewBox: "0 0 20 20",
|
|
364
364
|
class: "rk-avatar-figure",
|
|
@@ -404,7 +404,7 @@ var BaseAvatar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
404
404
|
alt: "",
|
|
405
405
|
class: "rk-avatar-img",
|
|
406
406
|
onError: _cache[0] || (_cache[0] = ($event) => broken.value = true)
|
|
407
|
-
}, null, 40, _hoisted_2$
|
|
407
|
+
}, null, 40, _hoisted_2$39)) : __props.fallback === "initials" && initials.value ? (openBlock(), createElementBlock("span", _hoisted_3$26, toDisplayString(initials.value), 1)) : (openBlock(), createElementBlock("svg", _hoisted_4$20, [..._cache[1] || (_cache[1] = [createElementVNode("circle", {
|
|
408
408
|
cx: "10",
|
|
409
409
|
cy: "6.75",
|
|
410
410
|
r: "3.25",
|
|
@@ -413,7 +413,7 @@ var BaseAvatar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
413
413
|
d: "M3.75 17c0-3.05 2.8-5.25 6.25-5.25S16.25 13.95 16.25 17",
|
|
414
414
|
"stroke-width": "1.5",
|
|
415
415
|
"stroke-linecap": "round"
|
|
416
|
-
}, null, -1)])]))], 10, _hoisted_1$
|
|
416
|
+
}, null, -1)])]))], 10, _hoisted_1$45);
|
|
417
417
|
};
|
|
418
418
|
}
|
|
419
419
|
}), [["__scopeId", "data-v-47586bec"]]);
|
|
@@ -438,12 +438,12 @@ var BaseBadge_default = /* @__PURE__ */ defineComponent({
|
|
|
438
438
|
});
|
|
439
439
|
//#endregion
|
|
440
440
|
//#region src/components/BaseMenu.vue?vue&type=script&setup=true&lang.ts
|
|
441
|
-
var _hoisted_1$
|
|
441
|
+
var _hoisted_1$44 = [
|
|
442
442
|
"aria-label",
|
|
443
443
|
"aria-expanded",
|
|
444
444
|
"aria-controls"
|
|
445
445
|
];
|
|
446
|
-
var _hoisted_2$
|
|
446
|
+
var _hoisted_2$38 = ["id"];
|
|
447
447
|
//#endregion
|
|
448
448
|
//#region src/components/BaseMenu.vue
|
|
449
449
|
var BaseMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -512,14 +512,14 @@ var BaseMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
512
512
|
"aria-haspopup": true,
|
|
513
513
|
"aria-controls": open.value ? unref(id) : void 0,
|
|
514
514
|
onClick: _cache[0] || (_cache[0] = ($event) => open.value = !open.value)
|
|
515
|
-
}, [renderSlot(_ctx.$slots, "trigger", { open: open.value }, void 0, true)], 8, _hoisted_1$
|
|
515
|
+
}, [renderSlot(_ctx.$slots, "trigger", { open: open.value }, void 0, true)], 8, _hoisted_1$44), open.value ? (openBlock(), createElementBlock("div", {
|
|
516
516
|
key: 0,
|
|
517
517
|
id: unref(id),
|
|
518
518
|
ref_key: "panel",
|
|
519
519
|
ref: panel,
|
|
520
520
|
class: normalizeClass(["rk-menu-panel surface-overlay", `is-${__props.align}`]),
|
|
521
521
|
role: "menu"
|
|
522
|
-
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 10, _hoisted_2$
|
|
522
|
+
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 10, _hoisted_2$38)) : createCommentVNode("", true)], 544);
|
|
523
523
|
};
|
|
524
524
|
}
|
|
525
525
|
}), [["__scopeId", "data-v-ee62de72"]]);
|
|
@@ -590,13 +590,13 @@ var BaseCard_default = /* @__PURE__ */ defineComponent({
|
|
|
590
590
|
});
|
|
591
591
|
//#endregion
|
|
592
592
|
//#region src/components/BaseCombobox.vue?vue&type=script&setup=true&lang.ts
|
|
593
|
-
var _hoisted_1$
|
|
594
|
-
var _hoisted_2$
|
|
593
|
+
var _hoisted_1$43 = ["for"];
|
|
594
|
+
var _hoisted_2$37 = [
|
|
595
595
|
"aria-label",
|
|
596
596
|
"disabled",
|
|
597
597
|
"onClick"
|
|
598
598
|
];
|
|
599
|
-
var _hoisted_3$
|
|
599
|
+
var _hoisted_3$25 = [
|
|
600
600
|
"id",
|
|
601
601
|
"placeholder",
|
|
602
602
|
"disabled",
|
|
@@ -605,13 +605,13 @@ var _hoisted_3$24 = [
|
|
|
605
605
|
"aria-invalid",
|
|
606
606
|
"aria-describedby"
|
|
607
607
|
];
|
|
608
|
-
var _hoisted_4$
|
|
609
|
-
var _hoisted_5$
|
|
608
|
+
var _hoisted_4$19 = ["disabled"];
|
|
609
|
+
var _hoisted_5$12 = [
|
|
610
610
|
"aria-label",
|
|
611
611
|
"aria-multiselectable",
|
|
612
612
|
"aria-busy"
|
|
613
613
|
];
|
|
614
|
-
var _hoisted_6$
|
|
614
|
+
var _hoisted_6$7 = [
|
|
615
615
|
"id",
|
|
616
616
|
"aria-selected",
|
|
617
617
|
"aria-setsize",
|
|
@@ -841,7 +841,7 @@ var BaseCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
841
841
|
createElementVNode("label", {
|
|
842
842
|
for: unref(id),
|
|
843
843
|
class: "rk-combo-label"
|
|
844
|
-
}, toDisplayString(__props.label), 9, _hoisted_1$
|
|
844
|
+
}, toDisplayString(__props.label), 9, _hoisted_1$43),
|
|
845
845
|
createElementVNode("div", { class: normalizeClass(["rk-combo-field", multiple.value ? "is-multiple control" : ""]) }, [
|
|
846
846
|
(openBlock(true), createElementBlock(Fragment, null, renderList(multiple.value ? chosenOptions.value : [], (option) => {
|
|
847
847
|
return openBlock(), createElementBlock("span", {
|
|
@@ -854,7 +854,7 @@ var BaseCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
854
854
|
"aria-label": __props.removeLabel(option.label),
|
|
855
855
|
disabled: __props.disabled,
|
|
856
856
|
onClick: ($event) => remove(option.value)
|
|
857
|
-
}, " × ", 8, _hoisted_2$
|
|
857
|
+
}, " × ", 8, _hoisted_2$37)) : createCommentVNode("", true)]);
|
|
858
858
|
}), 128)),
|
|
859
859
|
withDirectives(createElementVNode("input", {
|
|
860
860
|
id: unref(id),
|
|
@@ -873,7 +873,7 @@ var BaseCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
873
873
|
"aria-describedby": describedBy.value,
|
|
874
874
|
onKeydown,
|
|
875
875
|
onFocus: _cache[1] || (_cache[1] = ($event) => open.value = true)
|
|
876
|
-
}, null, 42, _hoisted_3$
|
|
876
|
+
}, null, 42, _hoisted_3$25), [[vModelText, text.value]]),
|
|
877
877
|
createElementVNode("button", {
|
|
878
878
|
type: "button",
|
|
879
879
|
class: "rk-combo-toggle",
|
|
@@ -881,7 +881,7 @@ var BaseCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
881
881
|
"aria-hidden": "true",
|
|
882
882
|
disabled: __props.disabled,
|
|
883
883
|
onClick: _cache[2] || (_cache[2] = ($event) => open.value = !open.value)
|
|
884
|
-
}, " ▾ ", 8, _hoisted_4$
|
|
884
|
+
}, " ▾ ", 8, _hoisted_4$19)
|
|
885
885
|
], 2),
|
|
886
886
|
withDirectives(createElementVNode("ul", {
|
|
887
887
|
id: listId,
|
|
@@ -914,7 +914,7 @@ var BaseCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
914
914
|
"aria-posinset": row.index + 1,
|
|
915
915
|
onPointerdown: withModifiers(($event) => choose(row.option), ["prevent"]),
|
|
916
916
|
onPointermove: ($event) => highlighted.value = row.index
|
|
917
|
-
}, toDisplayString(row.option.label), 47, _hoisted_6$
|
|
917
|
+
}, toDisplayString(row.option.label), 47, _hoisted_6$7);
|
|
918
918
|
}), 128)),
|
|
919
919
|
padBottom.value > 0 ? (openBlock(), createElementBlock("li", {
|
|
920
920
|
key: 1,
|
|
@@ -928,7 +928,7 @@ var BaseCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
928
928
|
height: "0.75rem"
|
|
929
929
|
});
|
|
930
930
|
}), 64))])])) : matches.value.length === 0 ? (openBlock(), createElementBlock("li", _hoisted_10$3, toDisplayString(__props.emptyLabel), 1)) : createCommentVNode("", true)
|
|
931
|
-
], 40, _hoisted_5$
|
|
931
|
+
], 40, _hoisted_5$12), [[vShow, open.value]]),
|
|
932
932
|
__props.error ? (openBlock(), createElementBlock("p", {
|
|
933
933
|
key: 0,
|
|
934
934
|
id: errorId,
|
|
@@ -944,13 +944,13 @@ var BaseCombobox_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
944
944
|
}), [["__scopeId", "data-v-aa2335fa"]]);
|
|
945
945
|
//#endregion
|
|
946
946
|
//#region src/components/BaseRadioGroup.vue?vue&type=script&setup=true&lang.ts
|
|
947
|
-
var _hoisted_1$
|
|
948
|
-
var _hoisted_2$
|
|
947
|
+
var _hoisted_1$42 = ["aria-describedby"];
|
|
948
|
+
var _hoisted_2$36 = [
|
|
949
949
|
"name",
|
|
950
950
|
"value",
|
|
951
951
|
"disabled"
|
|
952
952
|
];
|
|
953
|
-
var _hoisted_3$
|
|
953
|
+
var _hoisted_3$24 = { class: "text-ink text-sm" };
|
|
954
954
|
//#endregion
|
|
955
955
|
//#region src/components/BaseRadioGroup.vue
|
|
956
956
|
var BaseRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
@@ -994,7 +994,7 @@ var BaseRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
994
994
|
value: option.value,
|
|
995
995
|
disabled: option.disabled,
|
|
996
996
|
class: "accent-primary focus-visible:outline-primary size-4 shrink-0 focus-visible:outline-2 focus-visible:outline-offset-2"
|
|
997
|
-
}, null, 8, _hoisted_2$
|
|
997
|
+
}, null, 8, _hoisted_2$36), [[vModelRadio, unref(model)]]), createElementVNode("span", _hoisted_3$24, toDisplayString(option.label), 1)], 2);
|
|
998
998
|
}), 128)),
|
|
999
999
|
__props.error ? (openBlock(), createElementBlock("p", {
|
|
1000
1000
|
key: 0,
|
|
@@ -1005,24 +1005,24 @@ var BaseRadioGroup_default = /* @__PURE__ */ defineComponent({
|
|
|
1005
1005
|
id: hintId,
|
|
1006
1006
|
class: "text-ink-soft text-xs"
|
|
1007
1007
|
}, toDisplayString(__props.hint), 1)) : createCommentVNode("", true)
|
|
1008
|
-
], 8, _hoisted_1$
|
|
1008
|
+
], 8, _hoisted_1$42);
|
|
1009
1009
|
};
|
|
1010
1010
|
}
|
|
1011
1011
|
});
|
|
1012
1012
|
//#endregion
|
|
1013
1013
|
//#region src/components/BaseSelect.vue?vue&type=script&setup=true&lang.ts
|
|
1014
|
-
var _hoisted_1$
|
|
1015
|
-
var _hoisted_2$
|
|
1014
|
+
var _hoisted_1$41 = { class: "relative" };
|
|
1015
|
+
var _hoisted_2$35 = [
|
|
1016
1016
|
"id",
|
|
1017
1017
|
"aria-invalid",
|
|
1018
1018
|
"aria-describedby"
|
|
1019
1019
|
];
|
|
1020
|
-
var _hoisted_3$
|
|
1020
|
+
var _hoisted_3$23 = {
|
|
1021
1021
|
key: 0,
|
|
1022
1022
|
value: void 0,
|
|
1023
1023
|
disabled: ""
|
|
1024
1024
|
};
|
|
1025
|
-
var _hoisted_4$
|
|
1025
|
+
var _hoisted_4$18 = ["value", "disabled"];
|
|
1026
1026
|
//#endregion
|
|
1027
1027
|
//#region src/components/BaseSelect.vue
|
|
1028
1028
|
var BaseSelect_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1058,7 +1058,7 @@ var BaseSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
1058
1058
|
"label-hidden": __props.labelHidden,
|
|
1059
1059
|
size: __props.size
|
|
1060
1060
|
}, {
|
|
1061
|
-
default: withCtx(({ id, describedBy, invalid }) => [createElementVNode("div", _hoisted_1$
|
|
1061
|
+
default: withCtx(({ id, describedBy, invalid }) => [createElementVNode("div", _hoisted_1$41, [withDirectives(createElementVNode("select", {
|
|
1062
1062
|
id,
|
|
1063
1063
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
1064
1064
|
"aria-invalid": invalid,
|
|
@@ -1068,13 +1068,13 @@ var BaseSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
1068
1068
|
__props.variant === "unstyled" ? "" : SIZE_CLASS[__props.size],
|
|
1069
1069
|
__props.variant !== "unstyled" && invalid ? "border-negative" : ""
|
|
1070
1070
|
]])
|
|
1071
|
-
}, [__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_3$
|
|
1071
|
+
}, [__props.placeholder ? (openBlock(), createElementBlock("option", _hoisted_3$23, toDisplayString(__props.placeholder), 1)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
1072
1072
|
return openBlock(), createElementBlock("option", {
|
|
1073
1073
|
key: option.value,
|
|
1074
1074
|
value: option.value,
|
|
1075
1075
|
disabled: option.disabled
|
|
1076
|
-
}, toDisplayString(option.label), 9, _hoisted_4$
|
|
1077
|
-
}), 128))], 10, _hoisted_2$
|
|
1076
|
+
}, toDisplayString(option.label), 9, _hoisted_4$18);
|
|
1077
|
+
}), 128))], 10, _hoisted_2$35), [[vModelSelect, model.value]]), createVNode(unref(ChevronDown), {
|
|
1078
1078
|
class: "text-ink-soft pointer-events-none absolute top-1/2 right-3 size-4 -translate-y-1/2",
|
|
1079
1079
|
"aria-hidden": "true"
|
|
1080
1080
|
})])]),
|
|
@@ -1091,11 +1091,11 @@ var BaseSelect_default = /* @__PURE__ */ defineComponent({
|
|
|
1091
1091
|
});
|
|
1092
1092
|
//#endregion
|
|
1093
1093
|
//#region src/components/BaseSlider.vue?vue&type=script&setup=true&lang.ts
|
|
1094
|
-
var _hoisted_1$
|
|
1095
|
-
var _hoisted_2$
|
|
1096
|
-
var _hoisted_3$
|
|
1097
|
-
var _hoisted_4$
|
|
1098
|
-
var _hoisted_5$
|
|
1094
|
+
var _hoisted_1$40 = { class: "rk-slider" };
|
|
1095
|
+
var _hoisted_2$34 = { class: "rk-slider-head" };
|
|
1096
|
+
var _hoisted_3$22 = ["for"];
|
|
1097
|
+
var _hoisted_4$17 = ["for"];
|
|
1098
|
+
var _hoisted_5$11 = [
|
|
1099
1099
|
"id",
|
|
1100
1100
|
"min",
|
|
1101
1101
|
"max",
|
|
@@ -1139,15 +1139,15 @@ var BaseSlider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
1139
1139
|
return span <= 0 ? 0 : (model.value - __props.min) / span * 100;
|
|
1140
1140
|
});
|
|
1141
1141
|
return (_ctx, _cache) => {
|
|
1142
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1143
|
-
createElementVNode("div", _hoisted_2$
|
|
1142
|
+
return openBlock(), createElementBlock("div", _hoisted_1$40, [
|
|
1143
|
+
createElementVNode("div", _hoisted_2$34, [createElementVNode("label", {
|
|
1144
1144
|
for: unref(id),
|
|
1145
1145
|
class: "rk-slider-label"
|
|
1146
|
-
}, toDisplayString(__props.label), 9, _hoisted_3$
|
|
1146
|
+
}, toDisplayString(__props.label), 9, _hoisted_3$22), __props.showValue ? (openBlock(), createElementBlock("output", {
|
|
1147
1147
|
key: 0,
|
|
1148
1148
|
for: unref(id),
|
|
1149
1149
|
class: "rk-slider-value"
|
|
1150
|
-
}, toDisplayString(text.value), 9, _hoisted_4$
|
|
1150
|
+
}, toDisplayString(text.value), 9, _hoisted_4$17)) : createCommentVNode("", true)]),
|
|
1151
1151
|
withDirectives(createElementVNode("input", {
|
|
1152
1152
|
id: unref(id),
|
|
1153
1153
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
@@ -1160,7 +1160,7 @@ var BaseSlider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
1160
1160
|
"aria-valuetext": text.value,
|
|
1161
1161
|
"aria-describedby": __props.hint ? hintId : void 0,
|
|
1162
1162
|
style: normalizeStyle({ "--rk-slider-filled": `${filled.value}%` })
|
|
1163
|
-
}, null, 12, _hoisted_5$
|
|
1163
|
+
}, null, 12, _hoisted_5$11), [[
|
|
1164
1164
|
vModelText,
|
|
1165
1165
|
model.value,
|
|
1166
1166
|
void 0,
|
|
@@ -1177,8 +1177,8 @@ var BaseSlider_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
1177
1177
|
}), [["__scopeId", "data-v-7fa2769b"]]);
|
|
1178
1178
|
//#endregion
|
|
1179
1179
|
//#region src/components/NumberInput.vue?vue&type=script&setup=true&lang.ts
|
|
1180
|
-
var _hoisted_1$
|
|
1181
|
-
var _hoisted_2$
|
|
1180
|
+
var _hoisted_1$39 = ["aria-label", "disabled"];
|
|
1181
|
+
var _hoisted_2$33 = [
|
|
1182
1182
|
"id",
|
|
1183
1183
|
"value",
|
|
1184
1184
|
"aria-valuenow",
|
|
@@ -1188,7 +1188,7 @@ var _hoisted_2$32 = [
|
|
|
1188
1188
|
"aria-describedby",
|
|
1189
1189
|
"disabled"
|
|
1190
1190
|
];
|
|
1191
|
-
var _hoisted_3$
|
|
1191
|
+
var _hoisted_3$21 = ["aria-label", "disabled"];
|
|
1192
1192
|
//#endregion
|
|
1193
1193
|
//#region src/components/NumberInput.vue
|
|
1194
1194
|
var NumberInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -1291,7 +1291,7 @@ var NumberInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
1291
1291
|
}, [createVNode(unref(Minus), {
|
|
1292
1292
|
class: "size-4",
|
|
1293
1293
|
"aria-hidden": "true"
|
|
1294
|
-
})], 8, _hoisted_1$
|
|
1294
|
+
})], 8, _hoisted_1$39),
|
|
1295
1295
|
createElementVNode("input", {
|
|
1296
1296
|
id,
|
|
1297
1297
|
value: draft.value,
|
|
@@ -1309,7 +1309,7 @@ var NumberInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
1309
1309
|
onInput,
|
|
1310
1310
|
onBlur: commit,
|
|
1311
1311
|
onKeydown
|
|
1312
|
-
}, null, 40, _hoisted_2$
|
|
1312
|
+
}, null, 40, _hoisted_2$33),
|
|
1313
1313
|
createElementVNode("button", {
|
|
1314
1314
|
type: "button",
|
|
1315
1315
|
class: "rk-number-step focus-ring",
|
|
@@ -1320,7 +1320,7 @@ var NumberInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
1320
1320
|
}, [createVNode(unref(Plus), {
|
|
1321
1321
|
class: "size-4",
|
|
1322
1322
|
"aria-hidden": "true"
|
|
1323
|
-
})], 8, _hoisted_3$
|
|
1323
|
+
})], 8, _hoisted_3$21)
|
|
1324
1324
|
], 2)]),
|
|
1325
1325
|
_: 1
|
|
1326
1326
|
}, 8, [
|
|
@@ -1335,7 +1335,7 @@ var NumberInput_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
1335
1335
|
}), [["__scopeId", "data-v-082bd3d7"]]);
|
|
1336
1336
|
//#endregion
|
|
1337
1337
|
//#region src/components/SliderField.vue?vue&type=script&setup=true&lang.ts
|
|
1338
|
-
var _hoisted_1$
|
|
1338
|
+
var _hoisted_1$38 = { class: "rk-slider-field" };
|
|
1339
1339
|
//#endregion
|
|
1340
1340
|
//#region src/components/SliderField.vue
|
|
1341
1341
|
var SliderField_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -1376,7 +1376,7 @@ var SliderField_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
1376
1376
|
}
|
|
1377
1377
|
});
|
|
1378
1378
|
return (_ctx, _cache) => {
|
|
1379
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1379
|
+
return openBlock(), createElementBlock("div", _hoisted_1$38, [createVNode(BaseSlider_default, {
|
|
1380
1380
|
modelValue: model.value,
|
|
1381
1381
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
1382
1382
|
label: __props.label,
|
|
@@ -1424,11 +1424,11 @@ var SliderField_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
1424
1424
|
}), [["__scopeId", "data-v-6ec3163a"]]);
|
|
1425
1425
|
//#endregion
|
|
1426
1426
|
//#region src/components/BaseSpinner.vue?vue&type=script&setup=true&lang.ts
|
|
1427
|
-
var _hoisted_1$
|
|
1427
|
+
var _hoisted_1$37 = {
|
|
1428
1428
|
class: "rk-spin-wrap",
|
|
1429
1429
|
role: "status"
|
|
1430
1430
|
};
|
|
1431
|
-
var _hoisted_2$
|
|
1431
|
+
var _hoisted_2$32 = { class: "rk-spin-label" };
|
|
1432
1432
|
//#endregion
|
|
1433
1433
|
//#region src/components/BaseSpinner.vue
|
|
1434
1434
|
var BaseSpinner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -1456,26 +1456,26 @@ var BaseSpinner_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
1456
1456
|
lg: "2.5rem"
|
|
1457
1457
|
};
|
|
1458
1458
|
return (_ctx, _cache) => {
|
|
1459
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
1459
|
+
return openBlock(), createElementBlock("span", _hoisted_1$37, [createElementVNode("span", {
|
|
1460
1460
|
class: "rk-spin",
|
|
1461
1461
|
style: normalizeStyle({
|
|
1462
1462
|
width: SIZES[__props.size],
|
|
1463
1463
|
height: SIZES[__props.size]
|
|
1464
1464
|
}),
|
|
1465
1465
|
"aria-hidden": "true"
|
|
1466
|
-
}, null, 4), createElementVNode("span", _hoisted_2$
|
|
1466
|
+
}, null, 4), createElementVNode("span", _hoisted_2$32, toDisplayString(__props.label), 1)]);
|
|
1467
1467
|
};
|
|
1468
1468
|
}
|
|
1469
1469
|
}), [["__scopeId", "data-v-842da62c"]]);
|
|
1470
1470
|
//#endregion
|
|
1471
1471
|
//#region src/components/BaseSwitch.vue?vue&type=script&setup=true&lang.ts
|
|
1472
|
-
var _hoisted_1$
|
|
1473
|
-
var _hoisted_2$
|
|
1472
|
+
var _hoisted_1$36 = { class: "flex items-center justify-between gap-4" };
|
|
1473
|
+
var _hoisted_2$31 = {
|
|
1474
1474
|
key: 0,
|
|
1475
1475
|
class: "min-w-0"
|
|
1476
1476
|
};
|
|
1477
|
-
var _hoisted_3$
|
|
1478
|
-
var _hoisted_4$
|
|
1477
|
+
var _hoisted_3$20 = ["id"];
|
|
1478
|
+
var _hoisted_4$16 = [
|
|
1479
1479
|
"aria-checked",
|
|
1480
1480
|
"aria-labelledby",
|
|
1481
1481
|
"aria-label",
|
|
@@ -1514,10 +1514,10 @@ var BaseSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
1514
1514
|
if (!__props.disabled) model.value = !model.value;
|
|
1515
1515
|
}
|
|
1516
1516
|
return (_ctx, _cache) => {
|
|
1517
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1517
|
+
return openBlock(), createElementBlock("div", _hoisted_1$36, [!__props.labelHidden ? (openBlock(), createElementBlock("span", _hoisted_2$31, [createElementVNode("span", {
|
|
1518
1518
|
id: unref(id),
|
|
1519
1519
|
class: "text-ink block text-sm"
|
|
1520
|
-
}, toDisplayString(__props.label), 9, _hoisted_3$
|
|
1520
|
+
}, toDisplayString(__props.label), 9, _hoisted_3$20), __props.hint ? (openBlock(), createElementBlock("span", {
|
|
1521
1521
|
key: 0,
|
|
1522
1522
|
id: hintId,
|
|
1523
1523
|
class: "text-ink-soft mt-0.5 block text-xs"
|
|
@@ -1534,17 +1534,17 @@ var BaseSwitch_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
1534
1534
|
}, [..._cache[0] || (_cache[0] = [createElementVNode("span", {
|
|
1535
1535
|
class: "rk-switch-knob",
|
|
1536
1536
|
"aria-hidden": "true"
|
|
1537
|
-
}, null, -1)])], 10, _hoisted_4$
|
|
1537
|
+
}, null, -1)])], 10, _hoisted_4$16)]);
|
|
1538
1538
|
};
|
|
1539
1539
|
}
|
|
1540
1540
|
}), [["__scopeId", "data-v-3f4400a0"]]);
|
|
1541
1541
|
//#endregion
|
|
1542
1542
|
//#region src/components/BaseTable.vue?vue&type=script&setup=true&lang.ts
|
|
1543
|
-
var _hoisted_1$
|
|
1544
|
-
var _hoisted_2$
|
|
1545
|
-
var _hoisted_3$
|
|
1546
|
-
var _hoisted_4$
|
|
1547
|
-
var _hoisted_5$
|
|
1543
|
+
var _hoisted_1$35 = ["aria-label"];
|
|
1544
|
+
var _hoisted_2$30 = { class: "rk-table" };
|
|
1545
|
+
var _hoisted_3$19 = { key: 0 };
|
|
1546
|
+
var _hoisted_4$15 = { key: 1 };
|
|
1547
|
+
var _hoisted_5$10 = ["colspan"];
|
|
1548
1548
|
//#endregion
|
|
1549
1549
|
//#region src/components/BaseTable.vue
|
|
1550
1550
|
var BaseTable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -1567,7 +1567,7 @@ var BaseTable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
1567
1567
|
tabindex: "0",
|
|
1568
1568
|
role: "region",
|
|
1569
1569
|
"aria-label": __props.caption
|
|
1570
|
-
}, [createElementVNode("table", _hoisted_2$
|
|
1570
|
+
}, [createElementVNode("table", _hoisted_2$30, [
|
|
1571
1571
|
createElementVNode("caption", { class: normalizeClass(__props.captionHidden ? "rk-table-caption-hidden" : "rk-table-caption") }, toDisplayString(__props.caption), 3),
|
|
1572
1572
|
createElementVNode("thead", null, [createElementVNode("tr", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
1573
1573
|
return openBlock(), createElementBlock("th", {
|
|
@@ -1576,7 +1576,7 @@ var BaseTable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
1576
1576
|
class: normalizeClass([column.align && `is-${column.align}`, column.nowrap && "is-nowrap"])
|
|
1577
1577
|
}, toDisplayString(column.label), 3);
|
|
1578
1578
|
}), 128))])]),
|
|
1579
|
-
__props.rows.length > 0 ? (openBlock(), createElementBlock("tbody", _hoisted_3$
|
|
1579
|
+
__props.rows.length > 0 ? (openBlock(), createElementBlock("tbody", _hoisted_3$19, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (row, index) => {
|
|
1580
1580
|
return openBlock(), createElementBlock("tr", { key: keyFor(row, index) }, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
1581
1581
|
return openBlock(), createElementBlock("td", {
|
|
1582
1582
|
key: column.key,
|
|
@@ -1586,17 +1586,17 @@ var BaseTable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
1586
1586
|
value: row[column.key]
|
|
1587
1587
|
}, () => [createTextVNode(toDisplayString(row[column.key]), 1)], true)], 2);
|
|
1588
1588
|
}), 128))]);
|
|
1589
|
-
}), 128))])) : (openBlock(), createElementBlock("tbody", _hoisted_4$
|
|
1589
|
+
}), 128))])) : (openBlock(), createElementBlock("tbody", _hoisted_4$15, [createElementVNode("tr", null, [createElementVNode("td", {
|
|
1590
1590
|
colspan: __props.columns.length,
|
|
1591
1591
|
class: "rk-table-empty"
|
|
1592
|
-
}, [renderSlot(_ctx.$slots, "empty", {}, void 0, true)], 8, _hoisted_5$
|
|
1593
|
-
])], 8, _hoisted_1$
|
|
1592
|
+
}, [renderSlot(_ctx.$slots, "empty", {}, void 0, true)], 8, _hoisted_5$10)])]))
|
|
1593
|
+
])], 8, _hoisted_1$35);
|
|
1594
1594
|
};
|
|
1595
1595
|
}
|
|
1596
1596
|
}), [["__scopeId", "data-v-ab10e9fa"]]);
|
|
1597
1597
|
//#endregion
|
|
1598
1598
|
//#region src/components/BaseTextarea.vue?vue&type=script&setup=true&lang.ts
|
|
1599
|
-
var _hoisted_1$
|
|
1599
|
+
var _hoisted_1$34 = [
|
|
1600
1600
|
"id",
|
|
1601
1601
|
"rows",
|
|
1602
1602
|
"aria-invalid",
|
|
@@ -1642,7 +1642,7 @@ var BaseTextarea_default = /* @__PURE__ */ defineComponent({
|
|
|
1642
1642
|
__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",
|
|
1643
1643
|
"text-base",
|
|
1644
1644
|
__props.variant !== "unstyled" && invalid ? "border-negative" : ""
|
|
1645
|
-
] }), null, 16, _hoisted_1$
|
|
1645
|
+
] }), null, 16, _hoisted_1$34), [[vModelText, unref(model)]])]),
|
|
1646
1646
|
_: 1
|
|
1647
1647
|
}, 8, [
|
|
1648
1648
|
"label",
|
|
@@ -1656,17 +1656,17 @@ var BaseTextarea_default = /* @__PURE__ */ defineComponent({
|
|
|
1656
1656
|
});
|
|
1657
1657
|
//#endregion
|
|
1658
1658
|
//#region src/components/EmptyState.vue?vue&type=script&setup=true&lang.ts
|
|
1659
|
-
var _hoisted_1$
|
|
1660
|
-
var _hoisted_2$
|
|
1659
|
+
var _hoisted_1$33 = { class: "flex flex-col items-center gap-3 px-6 py-10 text-center" };
|
|
1660
|
+
var _hoisted_2$29 = {
|
|
1661
1661
|
key: 0,
|
|
1662
1662
|
class: "bg-muted text-primary rounded-card flex size-12 items-center justify-center"
|
|
1663
1663
|
};
|
|
1664
|
-
var _hoisted_3$
|
|
1665
|
-
var _hoisted_4$
|
|
1664
|
+
var _hoisted_3$18 = { class: "text-ink text-base font-semibold" };
|
|
1665
|
+
var _hoisted_4$14 = {
|
|
1666
1666
|
key: 1,
|
|
1667
1667
|
class: "text-ink-soft max-w-[36ch] text-sm"
|
|
1668
1668
|
};
|
|
1669
|
-
var _hoisted_5$
|
|
1669
|
+
var _hoisted_5$9 = {
|
|
1670
1670
|
key: 2,
|
|
1671
1671
|
class: "mt-2 flex w-full flex-col gap-2"
|
|
1672
1672
|
};
|
|
@@ -1688,11 +1688,11 @@ var EmptyState_default = /* @__PURE__ */ defineComponent({
|
|
|
1688
1688
|
* goes — the button that creates the first one.
|
|
1689
1689
|
*/
|
|
1690
1690
|
return (_ctx, _cache) => {
|
|
1691
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1692
|
-
_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$
|
|
1693
|
-
createElementVNode("h3", _hoisted_3$
|
|
1694
|
-
__props.description ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
1695
|
-
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$
|
|
1691
|
+
return openBlock(), createElementBlock("div", _hoisted_1$33, [
|
|
1692
|
+
_ctx.$slots.icon ? (openBlock(), createElementBlock("div", _hoisted_2$29, [renderSlot(_ctx.$slots, "icon")])) : createCommentVNode("", true),
|
|
1693
|
+
createElementVNode("h3", _hoisted_3$18, toDisplayString(__props.title), 1),
|
|
1694
|
+
__props.description ? (openBlock(), createElementBlock("p", _hoisted_4$14, toDisplayString(__props.description), 1)) : createCommentVNode("", true),
|
|
1695
|
+
_ctx.$slots.action ? (openBlock(), createElementBlock("div", _hoisted_5$9, [renderSlot(_ctx.$slots, "action")])) : createCommentVNode("", true)
|
|
1696
1696
|
]);
|
|
1697
1697
|
};
|
|
1698
1698
|
}
|
|
@@ -1759,11 +1759,11 @@ var PageContainer_default = /* @__PURE__ */ defineComponent({
|
|
|
1759
1759
|
});
|
|
1760
1760
|
//#endregion
|
|
1761
1761
|
//#region src/components/PageHeader.vue?vue&type=script&setup=true&lang.ts
|
|
1762
|
-
var _hoisted_1$
|
|
1763
|
-
var _hoisted_2$
|
|
1764
|
-
var _hoisted_3$
|
|
1765
|
-
var _hoisted_4$
|
|
1766
|
-
var _hoisted_5$
|
|
1762
|
+
var _hoisted_1$32 = { class: "grid h-12 shrink-0 grid-cols-[2.5rem_1fr_2.5rem] items-center" };
|
|
1763
|
+
var _hoisted_2$28 = { class: "justify-self-start" };
|
|
1764
|
+
var _hoisted_3$17 = { class: "text-ink flex min-w-0 justify-center text-base font-semibold tabular-nums" };
|
|
1765
|
+
var _hoisted_4$13 = { class: "truncate" };
|
|
1766
|
+
var _hoisted_5$8 = { class: "justify-self-end" };
|
|
1767
1767
|
//#endregion
|
|
1768
1768
|
//#region src/components/PageHeader.vue
|
|
1769
1769
|
var PageHeader_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1780,17 +1780,17 @@ var PageHeader_default = /* @__PURE__ */ defineComponent({
|
|
|
1780
1780
|
* each other.
|
|
1781
1781
|
*/
|
|
1782
1782
|
return (_ctx, _cache) => {
|
|
1783
|
-
return openBlock(), createElementBlock("header", _hoisted_1$
|
|
1784
|
-
createElementVNode("div", _hoisted_2$
|
|
1785
|
-
createElementVNode("h1", _hoisted_3$
|
|
1786
|
-
createElementVNode("div", _hoisted_5$
|
|
1783
|
+
return openBlock(), createElementBlock("header", _hoisted_1$32, [
|
|
1784
|
+
createElementVNode("div", _hoisted_2$28, [renderSlot(_ctx.$slots, "left")]),
|
|
1785
|
+
createElementVNode("h1", _hoisted_3$17, [renderSlot(_ctx.$slots, "title", {}, () => [createElementVNode("span", _hoisted_4$13, toDisplayString(__props.title), 1)])]),
|
|
1786
|
+
createElementVNode("div", _hoisted_5$8, [renderSlot(_ctx.$slots, "right")])
|
|
1787
1787
|
]);
|
|
1788
1788
|
};
|
|
1789
1789
|
}
|
|
1790
1790
|
});
|
|
1791
1791
|
//#endregion
|
|
1792
1792
|
//#region src/components/ProgressBar.vue?vue&type=script&setup=true&lang.ts
|
|
1793
|
-
var _hoisted_1$
|
|
1793
|
+
var _hoisted_1$31 = ["aria-valuenow", "aria-label"];
|
|
1794
1794
|
//#endregion
|
|
1795
1795
|
//#region src/components/ProgressBar.vue
|
|
1796
1796
|
var ProgressBar_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1822,24 +1822,24 @@ var ProgressBar_default = /* @__PURE__ */ defineComponent({
|
|
|
1822
1822
|
}, [createElementVNode("div", {
|
|
1823
1823
|
class: "bg-primary h-full rounded-full transition-[width] duration-700 ease-out",
|
|
1824
1824
|
style: normalizeStyle({ width: `${portion.value}%` })
|
|
1825
|
-
}, null, 4)], 10, _hoisted_1$
|
|
1825
|
+
}, null, 4)], 10, _hoisted_1$31);
|
|
1826
1826
|
};
|
|
1827
1827
|
}
|
|
1828
1828
|
});
|
|
1829
1829
|
//#endregion
|
|
1830
1830
|
//#region src/components/PriceCard.vue?vue&type=script&setup=true&lang.ts
|
|
1831
|
-
var _hoisted_1$
|
|
1831
|
+
var _hoisted_1$30 = {
|
|
1832
1832
|
key: 0,
|
|
1833
1833
|
class: "bg-primary rounded-cell text-on-primary absolute -top-3 left-7 px-3 py-1 text-[0.7rem] font-semibold"
|
|
1834
1834
|
};
|
|
1835
|
-
var _hoisted_2$
|
|
1836
|
-
var _hoisted_3$
|
|
1837
|
-
var _hoisted_4$
|
|
1835
|
+
var _hoisted_2$27 = { class: "flex items-start justify-between gap-4" };
|
|
1836
|
+
var _hoisted_3$16 = { class: "text-ink mt-5 text-lg font-semibold" };
|
|
1837
|
+
var _hoisted_4$12 = {
|
|
1838
1838
|
key: 1,
|
|
1839
1839
|
class: "text-ink-soft mt-1.5 text-sm leading-relaxed"
|
|
1840
1840
|
};
|
|
1841
|
-
var _hoisted_5$
|
|
1842
|
-
var _hoisted_6$
|
|
1841
|
+
var _hoisted_5$7 = { class: "mt-6 flex items-baseline gap-1.5" };
|
|
1842
|
+
var _hoisted_6$6 = { class: "text-ink text-3xl font-semibold tracking-tight tabular-nums" };
|
|
1843
1843
|
var _hoisted_7$3 = {
|
|
1844
1844
|
key: 0,
|
|
1845
1845
|
class: "text-ink-soft text-sm"
|
|
@@ -1903,17 +1903,17 @@ var PriceCard_default = /* @__PURE__ */ defineComponent({
|
|
|
1903
1903
|
const palette = computed(() => TONE[__props.tone]);
|
|
1904
1904
|
return (_ctx, _cache) => {
|
|
1905
1905
|
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"]]) }, [
|
|
1906
|
-
__props.badge && __props.recommended ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1907
|
-
createElementVNode("div", _hoisted_2$
|
|
1906
|
+
__props.badge && __props.recommended ? (openBlock(), createElementBlock("span", _hoisted_1$30, toDisplayString(__props.badge), 1)) : createCommentVNode("", true),
|
|
1907
|
+
createElementVNode("div", _hoisted_2$27, [_ctx.$slots.icon ? (openBlock(), createElementBlock("span", {
|
|
1908
1908
|
key: 0,
|
|
1909
1909
|
class: normalizeClass(["rounded-card grid size-11 place-items-center text-xl", palette.value.icon])
|
|
1910
1910
|
}, [renderSlot(_ctx.$slots, "icon")], 2)) : createCommentVNode("", true), __props.chip ? (openBlock(), createElementBlock("span", {
|
|
1911
1911
|
key: 1,
|
|
1912
1912
|
class: normalizeClass(["rounded-cell ml-auto px-2.5 py-1 text-[0.7rem] font-medium", palette.value.soft])
|
|
1913
1913
|
}, toDisplayString(__props.chip), 3)) : createCommentVNode("", true)]),
|
|
1914
|
-
createElementVNode("h3", _hoisted_3$
|
|
1915
|
-
__props.lead ? (openBlock(), createElementBlock("p", _hoisted_4$
|
|
1916
|
-
createElementVNode("p", _hoisted_5$
|
|
1914
|
+
createElementVNode("h3", _hoisted_3$16, toDisplayString(__props.name), 1),
|
|
1915
|
+
__props.lead ? (openBlock(), createElementBlock("p", _hoisted_4$12, toDisplayString(__props.lead), 1)) : createCommentVNode("", true),
|
|
1916
|
+
createElementVNode("p", _hoisted_5$7, [createElementVNode("span", _hoisted_6$6, toDisplayString(__props.price), 1), __props.period ? (openBlock(), createElementBlock("span", _hoisted_7$3, toDisplayString(__props.period), 1)) : createCommentVNode("", true)]),
|
|
1917
1917
|
__props.note ? (openBlock(), createElementBlock("p", _hoisted_8$2, toDisplayString(__props.note), 1)) : createCommentVNode("", true),
|
|
1918
1918
|
createElementVNode("ul", _hoisted_9$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.features, (feature) => {
|
|
1919
1919
|
return openBlock(), createElementBlock("li", {
|
|
@@ -1928,8 +1928,8 @@ var PriceCard_default = /* @__PURE__ */ defineComponent({
|
|
|
1928
1928
|
});
|
|
1929
1929
|
//#endregion
|
|
1930
1930
|
//#region src/components/ToneDot.vue?vue&type=script&setup=true&lang.ts
|
|
1931
|
-
var _hoisted_1$
|
|
1932
|
-
var _hoisted_2$
|
|
1931
|
+
var _hoisted_1$29 = { class: "inline-flex items-center gap-1.5" };
|
|
1932
|
+
var _hoisted_2$26 = {
|
|
1933
1933
|
key: 0,
|
|
1934
1934
|
class: "text-ink-soft text-xs font-medium"
|
|
1935
1935
|
};
|
|
@@ -1950,13 +1950,13 @@ var ToneDot_default = /* @__PURE__ */ defineComponent({
|
|
|
1950
1950
|
* priorities — without this component knowing about any of them.
|
|
1951
1951
|
*/
|
|
1952
1952
|
return (_ctx, _cache) => {
|
|
1953
|
-
return openBlock(), createElementBlock("span", _hoisted_1$
|
|
1953
|
+
return openBlock(), createElementBlock("span", _hoisted_1$29, [createElementVNode("span", { class: normalizeClass(["size-2 rounded-full", __props.fill]) }, null, 2), __props.label ? (openBlock(), createElementBlock("span", _hoisted_2$26, toDisplayString(__props.label), 1)) : createCommentVNode("", true)]);
|
|
1954
1954
|
};
|
|
1955
1955
|
}
|
|
1956
1956
|
});
|
|
1957
1957
|
//#endregion
|
|
1958
1958
|
//#region src/components/SectionHeading.vue?vue&type=script&setup=true&lang.ts
|
|
1959
|
-
var _hoisted_1$
|
|
1959
|
+
var _hoisted_1$28 = {
|
|
1960
1960
|
key: 0,
|
|
1961
1961
|
class: "text-ink-soft text-xs tabular-nums"
|
|
1962
1962
|
};
|
|
@@ -1974,15 +1974,15 @@ var SectionHeading_default = /* @__PURE__ */ defineComponent({
|
|
|
1974
1974
|
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]) }, [
|
|
1975
1975
|
createVNode(ToneDot_default, { fill: __props.tone.fill }, null, 8, ["fill"]),
|
|
1976
1976
|
createElementVNode("span", { class: normalizeClass(["text-xs font-semibold tracking-wide uppercase", __props.tone.text]) }, toDisplayString(__props.label), 3),
|
|
1977
|
-
__props.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$
|
|
1977
|
+
__props.count > 0 ? (openBlock(), createElementBlock("span", _hoisted_1$28, toDisplayString(__props.count), 1)) : createCommentVNode("", true)
|
|
1978
1978
|
], 2);
|
|
1979
1979
|
};
|
|
1980
1980
|
}
|
|
1981
1981
|
});
|
|
1982
1982
|
//#endregion
|
|
1983
1983
|
//#region src/components/SegmentedControl.vue?vue&type=script&setup=true&lang.ts
|
|
1984
|
-
var _hoisted_1$
|
|
1985
|
-
var _hoisted_2$
|
|
1984
|
+
var _hoisted_1$27 = { class: "bg-muted rounded-card flex w-full gap-1 p-1" };
|
|
1985
|
+
var _hoisted_2$25 = ["value", "name"];
|
|
1986
1986
|
//#endregion
|
|
1987
1987
|
//#region src/components/SegmentedControl.vue
|
|
1988
1988
|
var SegmentedControl_default = /* @__PURE__ */ defineComponent({
|
|
@@ -1996,7 +1996,7 @@ var SegmentedControl_default = /* @__PURE__ */ defineComponent({
|
|
|
1996
1996
|
const model = useModel(__props, "modelValue");
|
|
1997
1997
|
const name = useId();
|
|
1998
1998
|
return (_ctx, _cache) => {
|
|
1999
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1999
|
+
return openBlock(), createElementBlock("div", _hoisted_1$27, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.options, (option) => {
|
|
2000
2000
|
return openBlock(), createElementBlock("label", {
|
|
2001
2001
|
key: String(option.value),
|
|
2002
2002
|
class: "flex-1 cursor-pointer"
|
|
@@ -2006,18 +2006,18 @@ var SegmentedControl_default = /* @__PURE__ */ defineComponent({
|
|
|
2006
2006
|
value: option.value,
|
|
2007
2007
|
name: unref(name),
|
|
2008
2008
|
class: "peer sr-only"
|
|
2009
|
-
}, null, 8, _hoisted_2$
|
|
2009
|
+
}, null, 8, _hoisted_2$25), [[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)]);
|
|
2010
2010
|
}), 128))]);
|
|
2011
2011
|
};
|
|
2012
2012
|
}
|
|
2013
2013
|
});
|
|
2014
2014
|
//#endregion
|
|
2015
2015
|
//#region src/components/SkeletonList.vue?vue&type=script&setup=true&lang.ts
|
|
2016
|
-
var _hoisted_1$
|
|
2016
|
+
var _hoisted_1$26 = {
|
|
2017
2017
|
role: "status",
|
|
2018
2018
|
class: "flex flex-col gap-1"
|
|
2019
2019
|
};
|
|
2020
|
-
var _hoisted_2$
|
|
2020
|
+
var _hoisted_2$24 = { class: "sr-only" };
|
|
2021
2021
|
//#endregion
|
|
2022
2022
|
//#region src/components/SkeletonList.vue
|
|
2023
2023
|
var SkeletonList_default = /* @__PURE__ */ defineComponent({
|
|
@@ -2031,7 +2031,7 @@ var SkeletonList_default = /* @__PURE__ */ defineComponent({
|
|
|
2031
2031
|
/** A length starts with a digit, a dot, or opens a CSS function. */
|
|
2032
2032
|
const isLength = computed(() => /^(?:[.\d]|calc\(|var\(|clamp\(|min\(|max\()/.test(__props.rowHeight));
|
|
2033
2033
|
return (_ctx, _cache) => {
|
|
2034
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2034
|
+
return openBlock(), createElementBlock("div", _hoisted_1$26, [createElementVNode("span", _hoisted_2$24, toDisplayString(__props.label), 1), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.rows, (row) => {
|
|
2035
2035
|
return openBlock(), createElementBlock("div", {
|
|
2036
2036
|
key: row,
|
|
2037
2037
|
class: normalizeClass(["bg-muted rounded-card animate-pulse", isLength.value ? void 0 : __props.rowHeight]),
|
|
@@ -2044,10 +2044,10 @@ var SkeletonList_default = /* @__PURE__ */ defineComponent({
|
|
|
2044
2044
|
});
|
|
2045
2045
|
//#endregion
|
|
2046
2046
|
//#region src/components/StatCard.vue?vue&type=script&setup=true&lang.ts
|
|
2047
|
-
var _hoisted_1$
|
|
2048
|
-
var _hoisted_2$
|
|
2049
|
-
var _hoisted_3$
|
|
2050
|
-
var _hoisted_4$
|
|
2047
|
+
var _hoisted_1$25 = { class: "surface rounded-card flex flex-1 flex-col gap-0.5 p-3" };
|
|
2048
|
+
var _hoisted_2$23 = { class: "flex items-baseline gap-1" };
|
|
2049
|
+
var _hoisted_3$15 = { class: "text-ink text-xl font-semibold tabular-nums" };
|
|
2050
|
+
var _hoisted_4$11 = { class: "text-ink-soft text-xs" };
|
|
2051
2051
|
//#endregion
|
|
2052
2052
|
//#region src/components/StatCard.vue
|
|
2053
2053
|
var StatCard_default = /* @__PURE__ */ defineComponent({
|
|
@@ -2064,22 +2064,22 @@ var StatCard_default = /* @__PURE__ */ defineComponent({
|
|
|
2064
2064
|
flat: ArrowRight
|
|
2065
2065
|
};
|
|
2066
2066
|
return (_ctx, _cache) => {
|
|
2067
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
2067
|
+
return openBlock(), createElementBlock("div", _hoisted_1$25, [createElementVNode("div", _hoisted_2$23, [createElementVNode("span", _hoisted_3$15, toDisplayString(__props.value), 1), __props.trend ? (openBlock(), createBlock(resolveDynamicComponent(TREND_ICON[__props.trend]), {
|
|
2068
2068
|
key: 0,
|
|
2069
2069
|
class: "text-ink-soft size-3"
|
|
2070
|
-
})) : createCommentVNode("", true)]), createElementVNode("span", _hoisted_4$
|
|
2070
|
+
})) : createCommentVNode("", true)]), createElementVNode("span", _hoisted_4$11, toDisplayString(__props.label), 1)]);
|
|
2071
2071
|
};
|
|
2072
2072
|
}
|
|
2073
2073
|
});
|
|
2074
2074
|
//#endregion
|
|
2075
2075
|
//#region src/components/ToastHost.vue?vue&type=script&setup=true&lang.ts
|
|
2076
|
-
var _hoisted_1$
|
|
2076
|
+
var _hoisted_1$24 = [
|
|
2077
2077
|
"onMouseenter",
|
|
2078
2078
|
"onMouseleave",
|
|
2079
2079
|
"onFocusin",
|
|
2080
2080
|
"onFocusout"
|
|
2081
2081
|
];
|
|
2082
|
-
var _hoisted_2$
|
|
2082
|
+
var _hoisted_2$22 = { class: "flex-1 text-sm leading-snug" };
|
|
2083
2083
|
//#endregion
|
|
2084
2084
|
//#region src/components/ToastHost.vue
|
|
2085
2085
|
var ToastHost_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -2140,7 +2140,7 @@ var ToastHost_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
2140
2140
|
class: normalizeClass(["mt-0.5 size-5 shrink-0", TONE_CLASS[toast.tone]]),
|
|
2141
2141
|
"aria-hidden": "true"
|
|
2142
2142
|
}, null, 8, ["class"])),
|
|
2143
|
-
createElementVNode("p", _hoisted_2$
|
|
2143
|
+
createElementVNode("p", _hoisted_2$22, toDisplayString(toast.message), 1),
|
|
2144
2144
|
toast.action ? (openBlock(), createBlock(BaseButton_default, {
|
|
2145
2145
|
key: 0,
|
|
2146
2146
|
variant: "link",
|
|
@@ -2163,7 +2163,7 @@ var ToastHost_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
2163
2163
|
default: withCtx(() => [createVNode(unref(X), { class: "size-4" })]),
|
|
2164
2164
|
_: 1
|
|
2165
2165
|
}, 8, ["aria-label", "onClick"])
|
|
2166
|
-
], 40, _hoisted_1$
|
|
2166
|
+
], 40, _hoisted_1$24);
|
|
2167
2167
|
}), 128))]),
|
|
2168
2168
|
_: 1
|
|
2169
2169
|
})], 2)])) : createCommentVNode("", true);
|
|
@@ -2172,8 +2172,8 @@ var ToastHost_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
2172
2172
|
}), [["__scopeId", "data-v-737eb240"]]);
|
|
2173
2173
|
//#endregion
|
|
2174
2174
|
//#region src/components/LocaleLinks.vue?vue&type=script&setup=true&lang.ts
|
|
2175
|
-
var _hoisted_1$
|
|
2176
|
-
var _hoisted_2$
|
|
2175
|
+
var _hoisted_1$23 = ["aria-label"];
|
|
2176
|
+
var _hoisted_2$21 = [
|
|
2177
2177
|
"lang",
|
|
2178
2178
|
"aria-pressed",
|
|
2179
2179
|
"onClick"
|
|
@@ -2217,17 +2217,17 @@ var LocaleLinks_default = /* @__PURE__ */ defineComponent({
|
|
|
2217
2217
|
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"]),
|
|
2218
2218
|
"aria-pressed": preference.value === locale,
|
|
2219
2219
|
onClick: ($event) => preference.value = locale
|
|
2220
|
-
}, toDisplayString(__props.labels[locale]), 11, _hoisted_2$
|
|
2221
|
-
}), 128))], 8, _hoisted_1$
|
|
2220
|
+
}, toDisplayString(__props.labels[locale]), 11, _hoisted_2$21);
|
|
2221
|
+
}), 128))], 8, _hoisted_1$23);
|
|
2222
2222
|
};
|
|
2223
2223
|
}
|
|
2224
2224
|
});
|
|
2225
2225
|
//#endregion
|
|
2226
2226
|
//#region src/components/TabBar.vue?vue&type=script&setup=true&lang.ts
|
|
2227
|
-
var _hoisted_1$
|
|
2228
|
-
var _hoisted_2$
|
|
2229
|
-
var _hoisted_3$
|
|
2230
|
-
var _hoisted_4$
|
|
2227
|
+
var _hoisted_1$22 = { class: "tab-bar" };
|
|
2228
|
+
var _hoisted_2$20 = ["aria-label"];
|
|
2229
|
+
var _hoisted_3$14 = { class: "tab-icon-slot" };
|
|
2230
|
+
var _hoisted_4$10 = { class: "tab-label" };
|
|
2231
2231
|
//#endregion
|
|
2232
2232
|
//#region src/components/TabBar.vue
|
|
2233
2233
|
var TabBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -2239,7 +2239,7 @@ var TabBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
2239
2239
|
},
|
|
2240
2240
|
setup(__props) {
|
|
2241
2241
|
return (_ctx, _cache) => {
|
|
2242
|
-
return openBlock(), createElementBlock("header", _hoisted_1$
|
|
2242
|
+
return openBlock(), createElementBlock("header", _hoisted_1$22, [createElementVNode("nav", {
|
|
2243
2243
|
class: "tab-bar-inner",
|
|
2244
2244
|
"aria-label": __props.label || void 0
|
|
2245
2245
|
}, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
@@ -2250,18 +2250,201 @@ var TabBar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE_
|
|
|
2250
2250
|
"aria-current": item.key === __props.active ? "page" : void 0,
|
|
2251
2251
|
onClick: _cache[0] || (_cache[0] = ($event) => unref(tapFeedback)())
|
|
2252
2252
|
}, {
|
|
2253
|
-
default: withCtx(() => [createElementVNode("span", _hoisted_3$
|
|
2253
|
+
default: withCtx(() => [createElementVNode("span", _hoisted_3$14, [(openBlock(), createBlock(resolveDynamicComponent(item.icon), { class: "tab-icon" }))]), createElementVNode("span", _hoisted_4$10, toDisplayString(item.label), 1)]),
|
|
2254
2254
|
_: 2
|
|
2255
2255
|
}, 1032, [
|
|
2256
2256
|
"to",
|
|
2257
2257
|
"class",
|
|
2258
2258
|
"aria-current"
|
|
2259
2259
|
]);
|
|
2260
|
-
}), 128))], 8, _hoisted_2$
|
|
2260
|
+
}), 128))], 8, _hoisted_2$20)]);
|
|
2261
2261
|
};
|
|
2262
2262
|
}
|
|
2263
2263
|
}), [["__scopeId", "data-v-a76891c4"]]);
|
|
2264
2264
|
//#endregion
|
|
2265
|
+
//#region src/components/ActivityGrid.vue?vue&type=script&setup=true&lang.ts
|
|
2266
|
+
var _hoisted_1$21 = ["aria-label"];
|
|
2267
|
+
var _hoisted_2$19 = ["colspan"];
|
|
2268
|
+
var _hoisted_3$13 = {
|
|
2269
|
+
scope: "row",
|
|
2270
|
+
class: "rk-activity-weekday"
|
|
2271
|
+
};
|
|
2272
|
+
var _hoisted_4$9 = { class: "sr-only" };
|
|
2273
|
+
var _hoisted_5$6 = ["tabindex", "aria-label"];
|
|
2274
|
+
var _hoisted_6$5 = {
|
|
2275
|
+
key: 1,
|
|
2276
|
+
class: "rk-activity-cell is-blank",
|
|
2277
|
+
"aria-hidden": "true"
|
|
2278
|
+
};
|
|
2279
|
+
//#endregion
|
|
2280
|
+
//#region src/components/ActivityGrid.vue
|
|
2281
|
+
var ActivityGrid_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
2282
|
+
__name: "ActivityGrid",
|
|
2283
|
+
props: {
|
|
2284
|
+
days: {},
|
|
2285
|
+
label: {},
|
|
2286
|
+
levelFor: { type: Function },
|
|
2287
|
+
dayLabel: { type: Function },
|
|
2288
|
+
isSelectable: {
|
|
2289
|
+
type: Function,
|
|
2290
|
+
default: void 0
|
|
2291
|
+
},
|
|
2292
|
+
weekStartsOn: { default: 1 },
|
|
2293
|
+
startAtEnd: {
|
|
2294
|
+
type: Boolean,
|
|
2295
|
+
default: true
|
|
2296
|
+
}
|
|
2297
|
+
},
|
|
2298
|
+
emits: ["select"],
|
|
2299
|
+
setup(__props, { emit: __emit }) {
|
|
2300
|
+
const emit = __emit;
|
|
2301
|
+
const scroller = useTemplateRef("scroller");
|
|
2302
|
+
const grid = useTemplateRef("grid");
|
|
2303
|
+
/** Where the keyboard is: an index into `cells`, not a date. */
|
|
2304
|
+
const focused = ref(0);
|
|
2305
|
+
const weeks = computed(() => {
|
|
2306
|
+
if (__props.days.length === 0) return [];
|
|
2307
|
+
const first = __props.days[0];
|
|
2308
|
+
const lead = (fromDateKey(first).getDay() - __props.weekStartsOn + 7) % 7;
|
|
2309
|
+
const slots = [...Array.from({ length: lead }, () => null), ...__props.days];
|
|
2310
|
+
while (slots.length % 7 !== 0) slots.push(null);
|
|
2311
|
+
return Array.from({ length: slots.length / 7 }, (_, week) => slots.slice(week * 7, week * 7 + 7));
|
|
2312
|
+
});
|
|
2313
|
+
/** The weekday names, in the app's locale, starting on the chosen day. */
|
|
2314
|
+
const weekdays = computed(() => Array.from({ length: 7 }, (_, row) => {
|
|
2315
|
+
const date = new Date(2024, 0, 7);
|
|
2316
|
+
date.setDate(date.getDate() + (row + __props.weekStartsOn) % 7);
|
|
2317
|
+
return formatDate(date, { weekday: "long" });
|
|
2318
|
+
}));
|
|
2319
|
+
/**
|
|
2320
|
+
* A month heading per run of weeks.
|
|
2321
|
+
*
|
|
2322
|
+
* A week is counted under the month its first real day falls in, so a week
|
|
2323
|
+
* split across two months does not give the later one a heading of its own
|
|
2324
|
+
* one column wide.
|
|
2325
|
+
*/
|
|
2326
|
+
const months = computed(() => {
|
|
2327
|
+
const runs = [];
|
|
2328
|
+
for (const week of weeks.value) {
|
|
2329
|
+
const day = week.find((one) => one !== null);
|
|
2330
|
+
if (!day) continue;
|
|
2331
|
+
const key = day.slice(0, 7);
|
|
2332
|
+
const last = runs.at(-1);
|
|
2333
|
+
if (last?.key === key) last.span += 1;
|
|
2334
|
+
else runs.push({
|
|
2335
|
+
key,
|
|
2336
|
+
label: formatDate(fromDateKey(day), { month: "short" }),
|
|
2337
|
+
span: 1
|
|
2338
|
+
});
|
|
2339
|
+
}
|
|
2340
|
+
return runs;
|
|
2341
|
+
});
|
|
2342
|
+
/** Every real day, in reading order, which is what the arrows walk. */
|
|
2343
|
+
const cells = computed(() => weeks.value.flatMap((week, column) => week.flatMap((day, row) => day === null ? [] : [{
|
|
2344
|
+
day,
|
|
2345
|
+
column,
|
|
2346
|
+
row
|
|
2347
|
+
}])));
|
|
2348
|
+
const dayAttrs = (day) => ({ "data-day": day });
|
|
2349
|
+
const indexOf = (day) => cells.value.findIndex((cell) => cell.day === day);
|
|
2350
|
+
function moveTo(index) {
|
|
2351
|
+
const next = Math.max(0, Math.min(cells.value.length - 1, index));
|
|
2352
|
+
focused.value = next;
|
|
2353
|
+
nextTick(() => {
|
|
2354
|
+
grid.value?.querySelector("[tabindex=\"0\"]")?.focus();
|
|
2355
|
+
});
|
|
2356
|
+
}
|
|
2357
|
+
/** Steps a whole column, which is a week, in reading order. */
|
|
2358
|
+
function step(by) {
|
|
2359
|
+
const here = cells.value[focused.value];
|
|
2360
|
+
if (!here) return;
|
|
2361
|
+
const wanted = {
|
|
2362
|
+
column: here.column + by,
|
|
2363
|
+
row: here.row
|
|
2364
|
+
};
|
|
2365
|
+
const found = cells.value.findIndex((cell) => cell.column === wanted.column && cell.row === wanted.row);
|
|
2366
|
+
if (found !== -1) moveTo(found);
|
|
2367
|
+
}
|
|
2368
|
+
function choose(day) {
|
|
2369
|
+
if (__props.isSelectable?.(day)) emit("select", day);
|
|
2370
|
+
}
|
|
2371
|
+
function onKeydown(event) {
|
|
2372
|
+
const here = cells.value[focused.value];
|
|
2373
|
+
if (!here) return;
|
|
2374
|
+
switch (event.key) {
|
|
2375
|
+
case "ArrowUp":
|
|
2376
|
+
event.preventDefault();
|
|
2377
|
+
moveTo(focused.value - 1);
|
|
2378
|
+
break;
|
|
2379
|
+
case "ArrowDown":
|
|
2380
|
+
event.preventDefault();
|
|
2381
|
+
moveTo(focused.value + 1);
|
|
2382
|
+
break;
|
|
2383
|
+
case "ArrowLeft":
|
|
2384
|
+
event.preventDefault();
|
|
2385
|
+
step(-1);
|
|
2386
|
+
break;
|
|
2387
|
+
case "ArrowRight":
|
|
2388
|
+
event.preventDefault();
|
|
2389
|
+
step(1);
|
|
2390
|
+
break;
|
|
2391
|
+
case "Home":
|
|
2392
|
+
event.preventDefault();
|
|
2393
|
+
moveTo(0);
|
|
2394
|
+
break;
|
|
2395
|
+
case "End":
|
|
2396
|
+
event.preventDefault();
|
|
2397
|
+
moveTo(cells.value.length - 1);
|
|
2398
|
+
break;
|
|
2399
|
+
case "Enter":
|
|
2400
|
+
case " ":
|
|
2401
|
+
event.preventDefault();
|
|
2402
|
+
choose(here.day);
|
|
2403
|
+
}
|
|
2404
|
+
}
|
|
2405
|
+
function onClick(event) {
|
|
2406
|
+
const day = event.target.closest("[data-day]")?.dataset.day;
|
|
2407
|
+
if (!day) return;
|
|
2408
|
+
focused.value = indexOf(day);
|
|
2409
|
+
choose(day);
|
|
2410
|
+
}
|
|
2411
|
+
onMounted(() => {
|
|
2412
|
+
if (__props.startAtEnd && scroller.value) scroller.value.scrollLeft = scroller.value.scrollWidth;
|
|
2413
|
+
});
|
|
2414
|
+
return (_ctx, _cache) => {
|
|
2415
|
+
return openBlock(), createElementBlock("div", {
|
|
2416
|
+
ref_key: "scroller",
|
|
2417
|
+
ref: scroller,
|
|
2418
|
+
class: "rk-activity no-scrollbar"
|
|
2419
|
+
}, [createElementVNode("table", {
|
|
2420
|
+
ref_key: "grid",
|
|
2421
|
+
ref: grid,
|
|
2422
|
+
class: "rk-activity-table",
|
|
2423
|
+
"aria-label": __props.label,
|
|
2424
|
+
onKeydown,
|
|
2425
|
+
onClick
|
|
2426
|
+
}, [createElementVNode("thead", null, [createElementVNode("tr", null, [_cache[0] || (_cache[0] = createElementVNode("td", { class: "rk-activity-corner" }, null, -1)), (openBlock(true), createElementBlock(Fragment, null, renderList(months.value, (month) => {
|
|
2427
|
+
return openBlock(), createElementBlock("th", {
|
|
2428
|
+
key: month.key,
|
|
2429
|
+
colspan: month.span,
|
|
2430
|
+
scope: "colgroup"
|
|
2431
|
+
}, toDisplayString(month.label), 9, _hoisted_2$19);
|
|
2432
|
+
}), 128))])]), createElementVNode("tbody", null, [(openBlock(true), createElementBlock(Fragment, null, renderList(weekdays.value, (weekday, row) => {
|
|
2433
|
+
return openBlock(), createElementBlock("tr", { key: weekday }, [createElementVNode("th", _hoisted_3$13, [createElementVNode("span", _hoisted_4$9, toDisplayString(weekday), 1)]), (openBlock(true), createElementBlock(Fragment, null, renderList(weeks.value, (week, column) => {
|
|
2434
|
+
return openBlock(), createElementBlock(Fragment, { key: column }, [week[row] ? (openBlock(), createElementBlock("td", mergeProps({
|
|
2435
|
+
key: 0,
|
|
2436
|
+
class: "rk-activity-cell"
|
|
2437
|
+
}, { ref_for: true }, dayAttrs(week[row]), {
|
|
2438
|
+
tabindex: cells.value[focused.value]?.day === week[row] ? 0 : -1,
|
|
2439
|
+
"aria-label": __props.dayLabel(week[row]),
|
|
2440
|
+
class: [__props.levelFor(week[row]), { "is-pickable": __props.isSelectable?.(week[row]) }]
|
|
2441
|
+
}), null, 16, _hoisted_5$6)) : (openBlock(), createElementBlock("td", _hoisted_6$5))], 64);
|
|
2442
|
+
}), 128))]);
|
|
2443
|
+
}), 128))])], 40, _hoisted_1$21)], 512);
|
|
2444
|
+
};
|
|
2445
|
+
}
|
|
2446
|
+
}), [["__scopeId", "data-v-9f622328"]]);
|
|
2447
|
+
//#endregion
|
|
2265
2448
|
//#region src/components/AvatarStack.vue?vue&type=script&setup=true&lang.ts
|
|
2266
2449
|
var _hoisted_1$20 = ["aria-label"];
|
|
2267
2450
|
var _hoisted_2$18 = {
|
|
@@ -4471,8 +4654,8 @@ function createI18nRuntime(options) {
|
|
|
4471
4654
|
*
|
|
4472
4655
|
* The fallback keeps `vitest` and `vite dev` honest, where no define runs.
|
|
4473
4656
|
*/
|
|
4474
|
-
var VERSION = "2.
|
|
4657
|
+
var VERSION = "2.20.0";
|
|
4475
4658
|
//#endregion
|
|
4476
|
-
export { AppError, AvatarStack_default as AvatarStack, BaseAlert_default as BaseAlert, BaseAvatar_default as BaseAvatar, BaseBadge_default as BaseBadge, BaseButton_default as BaseButton, BaseCalendar_default as BaseCalendar, BaseCard_default as BaseCard, BaseCheckbox_default as BaseCheckbox, BaseChip_default as BaseChip, BaseCombobox_default as BaseCombobox, BaseDatePicker_default as BaseDatePicker, BaseInput_default as BaseInput, BaseKbd_default as BaseKbd, BaseLink_default as BaseLink, BaseListbox_default as BaseListbox, BaseMenu_default as BaseMenu, BasePopconfirm_default as BasePopconfirm, BasePopover_default as BasePopover, BaseRadioGroup_default as BaseRadioGroup, BaseRating_default as BaseRating, BaseSelect_default as BaseSelect, BaseSeparator_default as BaseSeparator, BaseSheet_default as BaseSheet, BaseSkeleton_default as BaseSkeleton, BaseSlider_default as BaseSlider, BaseSpinner_default as BaseSpinner, BaseStepper_default as BaseStepper, BaseSwitch_default as BaseSwitch, BaseTable_default as BaseTable, BaseTextarea_default as BaseTextarea, BaseTimeline_default as BaseTimeline, CircularProgress_default as CircularProgress, CodeBlock_default as CodeBlock, ColorPicker_default as ColorPicker, CopyButton_default as CopyButton, DescriptionList_default as DescriptionList, EmptyState_default as EmptyState, ErrorBoundary_default as ErrorBoundary, FileDrop_default as FileDrop, 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, SliderField_default as SliderField, StatCard_default as StatCard, TabBar_default as TabBar, TagsInput_default as TagsInput, TimePicker_default as TimePicker, 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 };
|
|
4659
|
+
export { ActivityGrid_default as ActivityGrid, AppError, AvatarStack_default as AvatarStack, BaseAlert_default as BaseAlert, BaseAvatar_default as BaseAvatar, BaseBadge_default as BaseBadge, BaseButton_default as BaseButton, BaseCalendar_default as BaseCalendar, BaseCard_default as BaseCard, BaseCheckbox_default as BaseCheckbox, BaseChip_default as BaseChip, BaseCombobox_default as BaseCombobox, BaseDatePicker_default as BaseDatePicker, BaseInput_default as BaseInput, BaseKbd_default as BaseKbd, BaseLink_default as BaseLink, BaseListbox_default as BaseListbox, BaseMenu_default as BaseMenu, BasePopconfirm_default as BasePopconfirm, BasePopover_default as BasePopover, BaseRadioGroup_default as BaseRadioGroup, BaseRating_default as BaseRating, BaseSelect_default as BaseSelect, BaseSeparator_default as BaseSeparator, BaseSheet_default as BaseSheet, BaseSkeleton_default as BaseSkeleton, BaseSlider_default as BaseSlider, BaseSpinner_default as BaseSpinner, BaseStepper_default as BaseStepper, BaseSwitch_default as BaseSwitch, BaseTable_default as BaseTable, BaseTextarea_default as BaseTextarea, BaseTimeline_default as BaseTimeline, CircularProgress_default as CircularProgress, CodeBlock_default as CodeBlock, ColorPicker_default as ColorPicker, CopyButton_default as CopyButton, DescriptionList_default as DescriptionList, EmptyState_default as EmptyState, ErrorBoundary_default as ErrorBoundary, FileDrop_default as FileDrop, 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, SliderField_default as SliderField, StatCard_default as StatCard, TabBar_default as TabBar, TagsInput_default as TagsInput, TimePicker_default as TimePicker, 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 };
|
|
4477
4660
|
|
|
4478
4661
|
//# sourceMappingURL=index.js.map
|