rei-kit 2.21.0 → 2.22.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/{BaseListbox-Btibgnaf.js → BaseListbox-DMR-Zn1u.js} +232 -4
- package/dist/BaseListbox-DMR-Zn1u.js.map +1 -0
- package/dist/app/guards.d.ts +43 -1
- package/dist/app/index.d.ts +1 -1
- package/dist/app.js +51 -5
- package/dist/app.js.map +1 -1
- package/dist/components/AnnounceHost.vue.d.ts +3 -0
- package/dist/components/BaseCheckbox.vue.d.ts +19 -0
- package/dist/components/ErrorSummary.vue.d.ts +60 -0
- package/dist/components/FormField.vue.d.ts +6 -0
- package/dist/composables/use-announce.d.ts +65 -0
- package/dist/{BaseSheet-B7401rS7.js → focus-target-D0WsXwKh.js} +109 -9
- package/dist/focus-target-D0WsXwKh.js.map +1 -0
- package/dist/index.d.ts +21 -0
- package/dist/index.js +323 -422
- package/dist/index.js.map +1 -1
- package/dist/motion.js +1 -1
- package/dist/motion.js.map +1 -1
- package/dist/styles.css +456 -389
- package/dist/{GoogleButton-mCqGbrXm.js → use-announce-B1LsfsZx.js} +59 -86
- package/dist/use-announce-B1LsfsZx.js.map +1 -0
- package/dist/utils/direction.d.ts +20 -0
- package/dist/utils/focus-target.d.ts +18 -0
- package/dist/web/SkipLink.vue.d.ts +43 -0
- package/dist/web/index.d.ts +6 -0
- package/dist/web.js +154 -133
- package/dist/web.js.map +1 -1
- package/package.json +2 -2
- package/dist/BaseListbox-Btibgnaf.js.map +0 -1
- package/dist/BaseSheet-B7401rS7.js.map +0 -1
- package/dist/GoogleButton-mCqGbrXm.js.map +0 -1
package/dist/web.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as useBoundValue, c as ensureSheetRoot, i as inertOutside, n as BaseCheckbox_default, r as BaseSheet_default, t as focusTarget } from "./focus-target-D0WsXwKh.js";
|
|
2
|
+
import { a as useMediaQuery, i as useMenuKeys, n as ScrollArea_default, r as BaseSkeleton_default, t as BaseListbox_default } from "./BaseListbox-DMR-Zn1u.js";
|
|
3
3
|
import { t as _plugin_vue_export_helper_default } from "./_plugin-vue_export-helper-BOaGB7Aw.js";
|
|
4
4
|
import { t as BaseButton_default } from "./BaseButton-RN2an975.js";
|
|
5
5
|
import { Fragment, Teleport, Transition, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, defineComponent, mergeModels, nextTick, normalizeClass, normalizeStyle, onBeforeUnmount, onMounted, openBlock, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, unref, useId, useModel, useTemplateRef, vModelText, vShow, watch, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
6
6
|
import { ArrowDown, ArrowUp, ChevronDown, ChevronLeft, ChevronRight, ChevronsUpDown, Search, X } from "lucide-vue-next";
|
|
7
7
|
import { RouterLink } from "vue-router";
|
|
8
8
|
//#region src/web/BaseAccordion.vue?vue&type=script&setup=true&lang.ts
|
|
9
|
-
var _hoisted_1$
|
|
9
|
+
var _hoisted_1$19 = { class: "rk-accordion" };
|
|
10
10
|
var _hoisted_2$13 = [
|
|
11
11
|
"aria-expanded",
|
|
12
12
|
"aria-controls",
|
|
@@ -40,7 +40,7 @@ var BaseAccordion_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
40
40
|
else open.value = __props.multiple ? [...open.value, key] : [key];
|
|
41
41
|
}
|
|
42
42
|
return (_ctx, _cache) => {
|
|
43
|
-
return openBlock(), createElementBlock("ul", _hoisted_1$
|
|
43
|
+
return openBlock(), createElementBlock("ul", _hoisted_1$19, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
44
44
|
return openBlock(), createElementBlock("li", {
|
|
45
45
|
key: item.key,
|
|
46
46
|
class: "rk-accordion-item"
|
|
@@ -66,10 +66,10 @@ var BaseAccordion_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
66
66
|
}), 128))]);
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
|
-
}), [["__scopeId", "data-v-
|
|
69
|
+
}), [["__scopeId", "data-v-d558aa6a"]]);
|
|
70
70
|
//#endregion
|
|
71
71
|
//#region src/web/BaseBreadcrumb.vue?vue&type=script&setup=true&lang.ts
|
|
72
|
-
var _hoisted_1$
|
|
72
|
+
var _hoisted_1$18 = ["aria-label"];
|
|
73
73
|
var _hoisted_2$12 = { class: "rk-crumbs" };
|
|
74
74
|
var _hoisted_3$11 = {
|
|
75
75
|
key: 1,
|
|
@@ -103,13 +103,13 @@ var BaseBreadcrumb_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
103
103
|
default: withCtx(() => [createTextVNode(toDisplayString(item.label), 1)]),
|
|
104
104
|
_: 2
|
|
105
105
|
}, 1032, ["to"])) : (openBlock(), createElementBlock("span", _hoisted_3$11, toDisplayString(item.label), 1)), index < __props.items.length - 1 ? (openBlock(), createElementBlock("span", _hoisted_4$9, "/")) : createCommentVNode("", true)]);
|
|
106
|
-
}), 128))])], 8, _hoisted_1$
|
|
106
|
+
}), 128))])], 8, _hoisted_1$18);
|
|
107
107
|
};
|
|
108
108
|
}
|
|
109
109
|
}), [["__scopeId", "data-v-dcc01b03"]]);
|
|
110
110
|
//#endregion
|
|
111
111
|
//#region src/web/BaseContextMenu.vue?vue&type=script&setup=true&lang.ts
|
|
112
|
-
var _hoisted_1$
|
|
112
|
+
var _hoisted_1$17 = ["id", "aria-label"];
|
|
113
113
|
//#endregion
|
|
114
114
|
//#region src/web/BaseContextMenu.vue
|
|
115
115
|
var BaseContextMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -244,13 +244,13 @@ var BaseContextMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
244
244
|
top: `${at.value.y}px`
|
|
245
245
|
}),
|
|
246
246
|
onKeydown: onPanelKeydown
|
|
247
|
-
}, [renderSlot(_ctx.$slots, "items", { close }, void 0, true)], 44, _hoisted_1$
|
|
247
|
+
}, [renderSlot(_ctx.$slots, "items", { close }, void 0, true)], 44, _hoisted_1$17)) : createCommentVNode("", true)]))], 544);
|
|
248
248
|
};
|
|
249
249
|
}
|
|
250
250
|
}), [["__scopeId", "data-v-4888e5a2"]]);
|
|
251
251
|
//#endregion
|
|
252
252
|
//#region src/web/BaseDisclosure.vue?vue&type=script&setup=true&lang.ts
|
|
253
|
-
var _hoisted_1$
|
|
253
|
+
var _hoisted_1$16 = { class: "rk-disclosure" };
|
|
254
254
|
var _hoisted_2$11 = ["aria-expanded", "aria-controls"];
|
|
255
255
|
var _hoisted_3$10 = { class: "rk-disclosure-title" };
|
|
256
256
|
var _hoisted_4$8 = {
|
|
@@ -278,7 +278,7 @@ var BaseDisclosure_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
278
278
|
const open = useModel(__props, "modelValue");
|
|
279
279
|
const id = useId();
|
|
280
280
|
return (_ctx, _cache) => {
|
|
281
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
281
|
+
return openBlock(), createElementBlock("div", _hoisted_1$16, [(openBlock(), createBlock(resolveDynamicComponent(`h${__props.headingLevel}`), null, {
|
|
282
282
|
default: withCtx(() => [createElementVNode("button", {
|
|
283
283
|
type: "button",
|
|
284
284
|
class: "rk-disclosure-control",
|
|
@@ -293,10 +293,10 @@ var BaseDisclosure_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
293
293
|
}, [createElementVNode("div", _hoisted_6$5, [createElementVNode("div", { class: normalizeClass(["rk-disclosure-body", { "is-open": open.value }]) }, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 2)])], 10, _hoisted_5$7)]);
|
|
294
294
|
};
|
|
295
295
|
}
|
|
296
|
-
}), [["__scopeId", "data-v-
|
|
296
|
+
}), [["__scopeId", "data-v-f3a3f8c7"]]);
|
|
297
297
|
//#endregion
|
|
298
298
|
//#region src/web/BaseHoverCard.vue?vue&type=script&setup=true&lang.ts
|
|
299
|
-
var _hoisted_1$
|
|
299
|
+
var _hoisted_1$15 = ["id", "aria-label"];
|
|
300
300
|
//#endregion
|
|
301
301
|
//#region src/web/BaseHoverCard.vue
|
|
302
302
|
var BaseHoverCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -361,7 +361,7 @@ var BaseHoverCard_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @
|
|
|
361
361
|
class: normalizeClass(["rk-hovercard-panel surface-raised", `is-${__props.placement}`]),
|
|
362
362
|
role: "group",
|
|
363
363
|
"aria-label": __props.label
|
|
364
|
-
}, [renderSlot(_ctx.$slots, "card", {}, void 0, true)], 10, _hoisted_1$
|
|
364
|
+
}, [renderSlot(_ctx.$slots, "card", {}, void 0, true)], 10, _hoisted_1$15)) : createCommentVNode("", true)], 32);
|
|
365
365
|
};
|
|
366
366
|
}
|
|
367
367
|
}), [["__scopeId", "data-v-70c09916"]]);
|
|
@@ -435,7 +435,7 @@ function useDialogShell(open, panel, { dismissible = () => true, onClose }) {
|
|
|
435
435
|
}
|
|
436
436
|
//#endregion
|
|
437
437
|
//#region src/web/BaseDrawer.vue?vue&type=script&setup=true&lang.ts
|
|
438
|
-
var _hoisted_1$
|
|
438
|
+
var _hoisted_1$14 = ["aria-label"];
|
|
439
439
|
var _hoisted_2$10 = { class: "rk-drawer-head" };
|
|
440
440
|
var _hoisted_3$9 = { class: "rk-drawer-title" };
|
|
441
441
|
var _hoisted_4$7 = { class: "rk-drawer-body" };
|
|
@@ -510,7 +510,7 @@ var BaseDrawer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
510
510
|
}, 8, ["aria-label"])) : createCommentVNode("", true)]),
|
|
511
511
|
createElementVNode("div", _hoisted_4$7, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
512
512
|
_ctx.$slots.actions ? (openBlock(), createElementBlock("footer", _hoisted_5$6, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])) : createCommentVNode("", true)
|
|
513
|
-
], 14, _hoisted_1$
|
|
513
|
+
], 14, _hoisted_1$14)], 32)) : createCommentVNode("", true)]),
|
|
514
514
|
_: 3
|
|
515
515
|
}, 8, ["name"])]);
|
|
516
516
|
};
|
|
@@ -518,7 +518,7 @@ var BaseDrawer_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__P
|
|
|
518
518
|
}), [["__scopeId", "data-v-de2cccb9"]]);
|
|
519
519
|
//#endregion
|
|
520
520
|
//#region src/web/BaseModal.vue?vue&type=script&setup=true&lang.ts
|
|
521
|
-
var _hoisted_1$
|
|
521
|
+
var _hoisted_1$13 = ["role", "aria-label"];
|
|
522
522
|
var _hoisted_2$9 = { class: "rk-modal-head" };
|
|
523
523
|
var _hoisted_3$8 = { class: "rk-modal-title" };
|
|
524
524
|
var _hoisted_4$6 = ["aria-label"];
|
|
@@ -587,7 +587,7 @@ var BaseModal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
587
587
|
})], -1)])], 8, _hoisted_4$6)) : createCommentVNode("", true)]),
|
|
588
588
|
createElementVNode("div", _hoisted_5$5, [renderSlot(_ctx.$slots, "default", {}, void 0, true)]),
|
|
589
589
|
_ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_6$4, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])) : createCommentVNode("", true)
|
|
590
|
-
], 8, _hoisted_1$
|
|
590
|
+
], 8, _hoisted_1$13)], 32)) : createCommentVNode("", true)]),
|
|
591
591
|
_: 3
|
|
592
592
|
})]);
|
|
593
593
|
};
|
|
@@ -595,7 +595,7 @@ var BaseModal_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
595
595
|
}), [["__scopeId", "data-v-92ea084c"]]);
|
|
596
596
|
//#endregion
|
|
597
597
|
//#region src/web/BasePagination.vue?vue&type=script&setup=true&lang.ts
|
|
598
|
-
var _hoisted_1$
|
|
598
|
+
var _hoisted_1$12 = ["aria-label"];
|
|
599
599
|
var _hoisted_2$8 = ["disabled", "aria-label"];
|
|
600
600
|
var _hoisted_3$7 = {
|
|
601
601
|
key: 0,
|
|
@@ -683,13 +683,13 @@ var BasePagination_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/*
|
|
|
683
683
|
"aria-label": __props.nextLabel,
|
|
684
684
|
onClick: _cache[1] || (_cache[1] = ($event) => go(__props.page + 1))
|
|
685
685
|
}, " › ", 8, _hoisted_5$4)
|
|
686
|
-
], 8, _hoisted_1$
|
|
686
|
+
], 8, _hoisted_1$12);
|
|
687
687
|
};
|
|
688
688
|
}
|
|
689
689
|
}), [["__scopeId", "data-v-29950578"]]);
|
|
690
690
|
//#endregion
|
|
691
691
|
//#region src/web/CommandMenu.vue?vue&type=script&setup=true&lang.ts
|
|
692
|
-
var _hoisted_1$
|
|
692
|
+
var _hoisted_1$11 = ["aria-label"];
|
|
693
693
|
var _hoisted_2$7 = { class: "rk-command-field" };
|
|
694
694
|
var _hoisted_3$6 = [
|
|
695
695
|
"placeholder",
|
|
@@ -889,44 +889,33 @@ var CommandMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
889
889
|
item.hint ? (openBlock(), createElementBlock("span", _hoisted_8$2, toDisplayString(item.hint), 1)) : createCommentVNode("", true)
|
|
890
890
|
], 42, _hoisted_6$3);
|
|
891
891
|
}), 128))], 64);
|
|
892
|
-
}), 128)), flat.value.length === 0 ? (openBlock(), createElementBlock("p", _hoisted_9$2, toDisplayString(__props.emptyLabel), 1)) : createCommentVNode("", true)], 8, _hoisted_4$4)], 8, _hoisted_1$
|
|
892
|
+
}), 128)), flat.value.length === 0 ? (openBlock(), createElementBlock("p", _hoisted_9$2, toDisplayString(__props.emptyLabel), 1)) : createCommentVNode("", true)], 8, _hoisted_4$4)], 8, _hoisted_1$11)], 32)) : createCommentVNode("", true)]),
|
|
893
893
|
_: 1
|
|
894
894
|
})], 8, ["to"]);
|
|
895
895
|
};
|
|
896
896
|
}
|
|
897
|
-
}), [["__scopeId", "data-v-
|
|
897
|
+
}), [["__scopeId", "data-v-64849895"]]);
|
|
898
898
|
//#endregion
|
|
899
899
|
//#region src/web/DataTable.vue?vue&type=script&setup=true&lang.ts
|
|
900
|
-
var _hoisted_1$
|
|
901
|
-
var _hoisted_2$6 = {
|
|
900
|
+
var _hoisted_1$10 = {
|
|
902
901
|
key: 0,
|
|
903
902
|
scope: "col",
|
|
904
903
|
class: "rk-data-pick"
|
|
905
904
|
};
|
|
906
|
-
var
|
|
907
|
-
|
|
908
|
-
|
|
909
|
-
"aria-label"
|
|
910
|
-
];
|
|
911
|
-
var _hoisted_4$3 = ["aria-sort"];
|
|
912
|
-
var _hoisted_5$2 = ["onClick"];
|
|
913
|
-
var _hoisted_6$2 = {
|
|
905
|
+
var _hoisted_2$6 = ["aria-sort"];
|
|
906
|
+
var _hoisted_3$5 = ["onClick"];
|
|
907
|
+
var _hoisted_4$3 = {
|
|
914
908
|
key: 0,
|
|
915
909
|
"aria-busy": "true"
|
|
916
910
|
};
|
|
917
|
-
var
|
|
918
|
-
var
|
|
919
|
-
var
|
|
911
|
+
var _hoisted_5$2 = { key: 0 };
|
|
912
|
+
var _hoisted_6$2 = { key: 1 };
|
|
913
|
+
var _hoisted_7$1 = {
|
|
920
914
|
key: 0,
|
|
921
915
|
class: "rk-data-pick"
|
|
922
916
|
};
|
|
923
|
-
var
|
|
924
|
-
|
|
925
|
-
"aria-label",
|
|
926
|
-
"onChange"
|
|
927
|
-
];
|
|
928
|
-
var _hoisted_11 = { key: 2 };
|
|
929
|
-
var _hoisted_12 = ["colspan"];
|
|
917
|
+
var _hoisted_8$1 = { key: 2 };
|
|
918
|
+
var _hoisted_9$1 = ["colspan"];
|
|
930
919
|
//#endregion
|
|
931
920
|
//#region src/web/DataTable.vue
|
|
932
921
|
var DataTable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -1015,83 +1004,91 @@ var DataTable_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PU
|
|
|
1015
1004
|
}
|
|
1016
1005
|
const columnCount = computed(() => __props.columns.length + (selectable.value ? 1 : 0));
|
|
1017
1006
|
return (_ctx, _cache) => {
|
|
1018
|
-
return openBlock(),
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
class: normalizeClass([column.align && `is-${column.align}`, column.nowrap && "is-nowrap"])
|
|
1038
|
-
}, [column.sortable ? (openBlock(), createElementBlock("button", {
|
|
1039
|
-
key: 0,
|
|
1040
|
-
type: "button",
|
|
1041
|
-
class: "rk-data-sort focus-ring",
|
|
1042
|
-
onClick: ($event) => toggleSort(column)
|
|
1043
|
-
}, [createTextVNode(toDisplayString(column.label) + " ", 1), ariaSort(column) === "ascending" ? (openBlock(), createBlock(unref(ArrowUp), {
|
|
1044
|
-
key: 0,
|
|
1045
|
-
class: "size-3.5",
|
|
1046
|
-
"aria-hidden": "true"
|
|
1047
|
-
})) : ariaSort(column) === "descending" ? (openBlock(), createBlock(unref(ArrowDown), {
|
|
1048
|
-
key: 1,
|
|
1049
|
-
class: "size-3.5",
|
|
1050
|
-
"aria-hidden": "true"
|
|
1051
|
-
})) : (openBlock(), createBlock(unref(ChevronsUpDown), {
|
|
1052
|
-
key: 2,
|
|
1053
|
-
class: "size-3.5 opacity-40",
|
|
1054
|
-
"aria-hidden": "true"
|
|
1055
|
-
}))], 8, _hoisted_5$2)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(column.label), 1)], 64))], 10, _hoisted_4$3);
|
|
1056
|
-
}), 128))])]),
|
|
1057
|
-
__props.loading ? (openBlock(), createElementBlock("tbody", _hoisted_6$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.loadingRows, (row) => {
|
|
1058
|
-
return openBlock(), createElementBlock("tr", { key: row }, [selectable.value ? (openBlock(), createElementBlock("td", _hoisted_7$1)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
1059
|
-
return openBlock(), createElementBlock("td", { key: column.key }, [createVNode(BaseSkeleton_default, {
|
|
1060
|
-
shape: "text",
|
|
1061
|
-
height: "0.75rem",
|
|
1062
|
-
width: "70%"
|
|
1063
|
-
})]);
|
|
1064
|
-
}), 128))]);
|
|
1065
|
-
}), 128))])) : shown.value.length > 0 ? (openBlock(), createElementBlock("tbody", _hoisted_8$1, [(openBlock(true), createElementBlock(Fragment, null, renderList(shown.value, (row, index) => {
|
|
1066
|
-
return openBlock(), createElementBlock("tr", {
|
|
1067
|
-
key: keyOf(row, index),
|
|
1068
|
-
class: normalizeClass({ "is-chosen": selected.value.includes(keyOf(row, index)) })
|
|
1069
|
-
}, [selectable.value ? (openBlock(), createElementBlock("td", _hoisted_9$1, [createElementVNode("input", {
|
|
1070
|
-
type: "checkbox",
|
|
1071
|
-
class: "rk-data-box focus-ring",
|
|
1072
|
-
checked: selected.value.includes(keyOf(row, index)),
|
|
1073
|
-
"aria-label": __props.rowLabel(row),
|
|
1074
|
-
onChange: ($event) => toggleRow(keyOf(row, index))
|
|
1075
|
-
}, null, 40, _hoisted_10$1)])) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
1076
|
-
return openBlock(), createElementBlock("td", {
|
|
1007
|
+
return openBlock(), createBlock(ScrollArea_default, {
|
|
1008
|
+
axis: "x",
|
|
1009
|
+
label: __props.caption,
|
|
1010
|
+
class: "rk-data-scroll"
|
|
1011
|
+
}, {
|
|
1012
|
+
default: withCtx(() => [createElementVNode("table", { class: normalizeClass(["rk-data", { "is-sticky": __props.stickyHeader }]) }, [
|
|
1013
|
+
createElementVNode("caption", { class: normalizeClass(__props.captionHidden ? "rk-data-caption-hidden" : "rk-data-caption") }, toDisplayString(__props.caption), 3),
|
|
1014
|
+
createElementVNode("thead", null, [createElementVNode("tr", null, [selectable.value ? (openBlock(), createElementBlock("th", _hoisted_1$10, [createVNode(BaseCheckbox_default, {
|
|
1015
|
+
"model-value": allChosen.value,
|
|
1016
|
+
indeterminate: someChosen.value,
|
|
1017
|
+
label: __props.selectAllLabel,
|
|
1018
|
+
"label-hidden": "",
|
|
1019
|
+
"onUpdate:modelValue": toggleAll
|
|
1020
|
+
}, null, 8, [
|
|
1021
|
+
"model-value",
|
|
1022
|
+
"indeterminate",
|
|
1023
|
+
"label"
|
|
1024
|
+
])])) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
1025
|
+
return openBlock(), createElementBlock("th", {
|
|
1077
1026
|
key: column.key,
|
|
1027
|
+
scope: "col",
|
|
1028
|
+
"aria-sort": ariaSort(column),
|
|
1078
1029
|
class: normalizeClass([column.align && `is-${column.align}`, column.nowrap && "is-nowrap"])
|
|
1079
|
-
}, [
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1030
|
+
}, [column.sortable ? (openBlock(), createElementBlock("button", {
|
|
1031
|
+
key: 0,
|
|
1032
|
+
type: "button",
|
|
1033
|
+
class: "rk-data-sort focus-ring",
|
|
1034
|
+
onClick: ($event) => toggleSort(column)
|
|
1035
|
+
}, [createTextVNode(toDisplayString(column.label) + " ", 1), ariaSort(column) === "ascending" ? (openBlock(), createBlock(unref(ArrowUp), {
|
|
1036
|
+
key: 0,
|
|
1037
|
+
class: "size-3.5",
|
|
1038
|
+
"aria-hidden": "true"
|
|
1039
|
+
})) : ariaSort(column) === "descending" ? (openBlock(), createBlock(unref(ArrowDown), {
|
|
1040
|
+
key: 1,
|
|
1041
|
+
class: "size-3.5",
|
|
1042
|
+
"aria-hidden": "true"
|
|
1043
|
+
})) : (openBlock(), createBlock(unref(ChevronsUpDown), {
|
|
1044
|
+
key: 2,
|
|
1045
|
+
class: "size-3.5 opacity-40",
|
|
1046
|
+
"aria-hidden": "true"
|
|
1047
|
+
}))], 8, _hoisted_3$5)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(column.label), 1)], 64))], 10, _hoisted_2$6);
|
|
1048
|
+
}), 128))])]),
|
|
1049
|
+
__props.loading ? (openBlock(), createElementBlock("tbody", _hoisted_4$3, [(openBlock(true), createElementBlock(Fragment, null, renderList(__props.loadingRows, (row) => {
|
|
1050
|
+
return openBlock(), createElementBlock("tr", { key: row }, [selectable.value ? (openBlock(), createElementBlock("td", _hoisted_5$2)) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
1051
|
+
return openBlock(), createElementBlock("td", { key: column.key }, [createVNode(BaseSkeleton_default, {
|
|
1052
|
+
shape: "text",
|
|
1053
|
+
height: "0.75rem",
|
|
1054
|
+
width: "70%"
|
|
1055
|
+
})]);
|
|
1056
|
+
}), 128))]);
|
|
1057
|
+
}), 128))])) : shown.value.length > 0 ? (openBlock(), createElementBlock("tbody", _hoisted_6$2, [(openBlock(true), createElementBlock(Fragment, null, renderList(shown.value, (row, index) => {
|
|
1058
|
+
return openBlock(), createElementBlock("tr", {
|
|
1059
|
+
key: keyOf(row, index),
|
|
1060
|
+
class: normalizeClass({ "is-chosen": selected.value.includes(keyOf(row, index)) })
|
|
1061
|
+
}, [selectable.value ? (openBlock(), createElementBlock("td", _hoisted_7$1, [createVNode(BaseCheckbox_default, {
|
|
1062
|
+
"model-value": selected.value.includes(keyOf(row, index)),
|
|
1063
|
+
label: __props.rowLabel(row),
|
|
1064
|
+
"label-hidden": "",
|
|
1065
|
+
"onUpdate:modelValue": ($event) => toggleRow(keyOf(row, index))
|
|
1066
|
+
}, null, 8, [
|
|
1067
|
+
"model-value",
|
|
1068
|
+
"label",
|
|
1069
|
+
"onUpdate:modelValue"
|
|
1070
|
+
])])) : createCommentVNode("", true), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.columns, (column) => {
|
|
1071
|
+
return openBlock(), createElementBlock("td", {
|
|
1072
|
+
key: column.key,
|
|
1073
|
+
class: normalizeClass([column.align && `is-${column.align}`, column.nowrap && "is-nowrap"])
|
|
1074
|
+
}, [renderSlot(_ctx.$slots, column.key, {
|
|
1075
|
+
row,
|
|
1076
|
+
value: row[column.key]
|
|
1077
|
+
}, () => [createTextVNode(toDisplayString(row[column.key]), 1)], true)], 2);
|
|
1078
|
+
}), 128))], 2);
|
|
1079
|
+
}), 128))])) : (openBlock(), createElementBlock("tbody", _hoisted_8$1, [createElementVNode("tr", null, [createElementVNode("td", {
|
|
1080
|
+
colspan: columnCount.value,
|
|
1081
|
+
class: "rk-data-empty"
|
|
1082
|
+
}, [renderSlot(_ctx.$slots, "empty", {}, void 0, true)], 8, _hoisted_9$1)])]))
|
|
1083
|
+
], 2)]),
|
|
1084
|
+
_: 3
|
|
1085
|
+
}, 8, ["label"]);
|
|
1089
1086
|
};
|
|
1090
1087
|
}
|
|
1091
|
-
}), [["__scopeId", "data-v-
|
|
1088
|
+
}), [["__scopeId", "data-v-54510109"]]);
|
|
1092
1089
|
//#endregion
|
|
1093
1090
|
//#region src/web/BaseSplitter.vue?vue&type=script&setup=true&lang.ts
|
|
1094
|
-
var _hoisted_1$
|
|
1091
|
+
var _hoisted_1$9 = { class: "rk-split-pane is-start" };
|
|
1095
1092
|
var _hoisted_2$5 = [
|
|
1096
1093
|
"aria-label",
|
|
1097
1094
|
"aria-orientation",
|
|
@@ -1164,7 +1161,7 @@ var BaseSplitter_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
1164
1161
|
class: normalizeClass(["rk-split", [`is-${__props.orientation}`, { "is-dragging": dragging.value }]]),
|
|
1165
1162
|
style: normalizeStyle({ "--rk-split": `${split.value}%` })
|
|
1166
1163
|
}, [
|
|
1167
|
-
createElementVNode("div", _hoisted_1$
|
|
1164
|
+
createElementVNode("div", _hoisted_1$9, [renderSlot(_ctx.$slots, "start", {}, void 0, true)]),
|
|
1168
1165
|
createElementVNode("div", {
|
|
1169
1166
|
class: "rk-split-handle focus-ring",
|
|
1170
1167
|
role: "separator",
|
|
@@ -1190,7 +1187,7 @@ var BaseSplitter_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
1190
1187
|
}), [["__scopeId", "data-v-159a4f08"]]);
|
|
1191
1188
|
//#endregion
|
|
1192
1189
|
//#region src/web/BaseToolbar.vue?vue&type=script&setup=true&lang.ts
|
|
1193
|
-
var _hoisted_1$
|
|
1190
|
+
var _hoisted_1$8 = ["aria-label", "aria-orientation"];
|
|
1194
1191
|
/**
|
|
1195
1192
|
* A row of controls that belong together: a formatting bar, a row of view
|
|
1196
1193
|
* switches, the actions over a table.
|
|
@@ -1270,13 +1267,13 @@ var BaseToolbar_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
1270
1267
|
"aria-orientation": __props.orientation,
|
|
1271
1268
|
onKeydown,
|
|
1272
1269
|
onFocusin
|
|
1273
|
-
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 42, _hoisted_1$
|
|
1270
|
+
}, [renderSlot(_ctx.$slots, "default", {}, void 0, true)], 42, _hoisted_1$8);
|
|
1274
1271
|
};
|
|
1275
1272
|
}
|
|
1276
1273
|
}), [["__scopeId", "data-v-a65164b7"]]);
|
|
1277
1274
|
//#endregion
|
|
1278
1275
|
//#region src/web/BaseTree.vue?vue&type=script&setup=true&lang.ts
|
|
1279
|
-
var _hoisted_1$
|
|
1276
|
+
var _hoisted_1$7 = ["aria-label", "aria-multiselectable"];
|
|
1280
1277
|
var _hoisted_2$4 = [
|
|
1281
1278
|
"aria-level",
|
|
1282
1279
|
"aria-setsize",
|
|
@@ -1438,13 +1435,13 @@ var BaseTree_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
1438
1435
|
})) : createCommentVNode("", true),
|
|
1439
1436
|
createElementVNode("span", _hoisted_4$2, toDisplayString(row.node.label), 1)
|
|
1440
1437
|
], 14, _hoisted_2$4);
|
|
1441
|
-
}), 128))], 40, _hoisted_1$
|
|
1438
|
+
}), 128))], 40, _hoisted_1$7);
|
|
1442
1439
|
};
|
|
1443
1440
|
}
|
|
1444
1441
|
}), [["__scopeId", "data-v-f91deddf"]]);
|
|
1445
1442
|
//#endregion
|
|
1446
1443
|
//#region src/web/TransferList.vue?vue&type=script&setup=true&lang.ts
|
|
1447
|
-
var _hoisted_1$
|
|
1444
|
+
var _hoisted_1$6 = { class: "rk-transfer" };
|
|
1448
1445
|
var _hoisted_2$3 = { class: "rk-transfer-side" };
|
|
1449
1446
|
var _hoisted_3$2 = { class: "rk-transfer-title" };
|
|
1450
1447
|
var _hoisted_4$1 = { class: "rk-transfer-middle" };
|
|
@@ -1482,7 +1479,7 @@ var TransferList_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
1482
1479
|
markedChosen.value = [];
|
|
1483
1480
|
}
|
|
1484
1481
|
return (_ctx, _cache) => {
|
|
1485
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
1482
|
+
return openBlock(), createElementBlock("div", _hoisted_1$6, [
|
|
1486
1483
|
createElementVNode("div", _hoisted_2$3, [createElementVNode("p", _hoisted_3$2, toDisplayString(__props.availableLabel), 1), createVNode(BaseListbox_default, {
|
|
1487
1484
|
modelValue: markedAvailable.value,
|
|
1488
1485
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => markedAvailable.value = $event),
|
|
@@ -1534,7 +1531,7 @@ var TransferList_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @_
|
|
|
1534
1531
|
}), [["__scopeId", "data-v-1d75b0da"]]);
|
|
1535
1532
|
//#endregion
|
|
1536
1533
|
//#region src/web/ResponsiveDialog.vue?vue&type=script&setup=true&lang.ts
|
|
1537
|
-
var _hoisted_1$
|
|
1534
|
+
var _hoisted_1$5 = {
|
|
1538
1535
|
key: 0,
|
|
1539
1536
|
class: "rk-responsive-actions"
|
|
1540
1537
|
};
|
|
@@ -1595,7 +1592,7 @@ var ResponsiveDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
1595
1592
|
subtitle: __props.subtitle,
|
|
1596
1593
|
"close-label": __props.closeLabel
|
|
1597
1594
|
}, {
|
|
1598
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true), _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
1595
|
+
default: withCtx(() => [renderSlot(_ctx.$slots, "default", {}, void 0, true), _ctx.$slots.actions ? (openBlock(), createElementBlock("div", _hoisted_1$5, [renderSlot(_ctx.$slots, "actions", {}, void 0, true)])) : createCommentVNode("", true)]),
|
|
1599
1596
|
_: 3
|
|
1600
1597
|
}, 8, [
|
|
1601
1598
|
"modelValue",
|
|
@@ -1608,7 +1605,7 @@ var ResponsiveDialog_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/
|
|
|
1608
1605
|
}), [["__scopeId", "data-v-85131850"]]);
|
|
1609
1606
|
//#endregion
|
|
1610
1607
|
//#region src/web/BaseTabs.vue?vue&type=script&setup=true&lang.ts
|
|
1611
|
-
var _hoisted_1$
|
|
1608
|
+
var _hoisted_1$4 = ["aria-label"];
|
|
1612
1609
|
var _hoisted_2$2 = [
|
|
1613
1610
|
"id",
|
|
1614
1611
|
"aria-selected",
|
|
@@ -1676,7 +1673,7 @@ var BaseTabs_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
1676
1673
|
tabindex: item.key === active.value ? 0 : -1,
|
|
1677
1674
|
onClick: ($event) => select(item.key)
|
|
1678
1675
|
}, toDisplayString(item.label), 11, _hoisted_2$2);
|
|
1679
|
-
}), 128))], 40, _hoisted_1$
|
|
1676
|
+
}), 128))], 40, _hoisted_1$4), (openBlock(true), createElementBlock(Fragment, null, renderList(__props.items, (item) => {
|
|
1680
1677
|
return withDirectives((openBlock(), createElementBlock("div", {
|
|
1681
1678
|
id: panelId(item.key),
|
|
1682
1679
|
key: item.key,
|
|
@@ -1694,7 +1691,7 @@ var BaseTabs_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
1694
1691
|
}), [["__scopeId", "data-v-8135ecab"]]);
|
|
1695
1692
|
//#endregion
|
|
1696
1693
|
//#region src/web/BaseTooltip.vue?vue&type=script&setup=true&lang.ts
|
|
1697
|
-
var _hoisted_1$
|
|
1694
|
+
var _hoisted_1$3 = ["id"];
|
|
1698
1695
|
//#endregion
|
|
1699
1696
|
//#region src/web/BaseTooltip.vue
|
|
1700
1697
|
var BaseTooltip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
@@ -1754,13 +1751,13 @@ var BaseTooltip_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__
|
|
|
1754
1751
|
left: `${at.value.x}px`,
|
|
1755
1752
|
top: __props.placement === "top" ? `${at.value.y - __props.offset}px` : `${at.value.y + __props.offset}px`
|
|
1756
1753
|
} : void 0)
|
|
1757
|
-
}, toDisplayString(__props.label), 15, _hoisted_1$
|
|
1754
|
+
}, toDisplayString(__props.label), 15, _hoisted_1$3)], 32);
|
|
1758
1755
|
};
|
|
1759
1756
|
}
|
|
1760
1757
|
}), [["__scopeId", "data-v-c31426f8"]]);
|
|
1761
1758
|
//#endregion
|
|
1762
1759
|
//#region src/web/MegaMenu.vue?vue&type=script&setup=true&lang.ts
|
|
1763
|
-
var _hoisted_1$
|
|
1760
|
+
var _hoisted_1$2 = ["aria-label"];
|
|
1764
1761
|
var _hoisted_2$1 = { class: "rk-mega-bar" };
|
|
1765
1762
|
var _hoisted_3 = ["onPointerenter"];
|
|
1766
1763
|
var _hoisted_4 = [
|
|
@@ -1939,13 +1936,13 @@ var MegaMenu_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
1939
1936
|
}, 1032, ["to"])]);
|
|
1940
1937
|
}), 128))])]);
|
|
1941
1938
|
}), 128))]), renderSlot(_ctx.$slots, item.key, {}, void 0, true)], 8, _hoisted_5)) : createCommentVNode("", true)], 40, _hoisted_3);
|
|
1942
|
-
}), 128))])], 40, _hoisted_1$
|
|
1939
|
+
}), 128))])], 40, _hoisted_1$2);
|
|
1943
1940
|
};
|
|
1944
1941
|
}
|
|
1945
|
-
}), [["__scopeId", "data-v-
|
|
1942
|
+
}), [["__scopeId", "data-v-a6df77ff"]]);
|
|
1946
1943
|
//#endregion
|
|
1947
1944
|
//#region src/web/NavLinks.vue?vue&type=script&setup=true&lang.ts
|
|
1948
|
-
var _hoisted_1 = ["aria-label"];
|
|
1945
|
+
var _hoisted_1$1 = ["aria-label"];
|
|
1949
1946
|
var _hoisted_2 = { class: "rk-nav-inner" };
|
|
1950
1947
|
//#endregion
|
|
1951
1948
|
//#region src/web/NavLinks.vue
|
|
@@ -1975,11 +1972,35 @@ var NavLinks_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PUR
|
|
|
1975
1972
|
"class",
|
|
1976
1973
|
"aria-current"
|
|
1977
1974
|
]);
|
|
1978
|
-
}), 128))])], 8, _hoisted_1);
|
|
1975
|
+
}), 128))])], 8, _hoisted_1$1);
|
|
1979
1976
|
};
|
|
1980
1977
|
}
|
|
1981
1978
|
}), [["__scopeId", "data-v-52e5d553"]]);
|
|
1982
1979
|
//#endregion
|
|
1983
|
-
|
|
1980
|
+
//#region src/web/SkipLink.vue?vue&type=script&setup=true&lang.ts
|
|
1981
|
+
var _hoisted_1 = ["href"];
|
|
1982
|
+
//#endregion
|
|
1983
|
+
//#region src/web/SkipLink.vue
|
|
1984
|
+
var SkipLink_default = /*#__PURE__*/ _plugin_vue_export_helper_default(/* @__PURE__ */ defineComponent({
|
|
1985
|
+
__name: "SkipLink",
|
|
1986
|
+
props: {
|
|
1987
|
+
for: {},
|
|
1988
|
+
label: {}
|
|
1989
|
+
},
|
|
1990
|
+
setup(__props) {
|
|
1991
|
+
function skip(event) {
|
|
1992
|
+
if (focusTarget(__props.for)) event.preventDefault();
|
|
1993
|
+
}
|
|
1994
|
+
return (_ctx, _cache) => {
|
|
1995
|
+
return openBlock(), createElementBlock("a", {
|
|
1996
|
+
href: `#${_ctx.$props.for}`,
|
|
1997
|
+
class: "rk-skip",
|
|
1998
|
+
onClick: skip
|
|
1999
|
+
}, toDisplayString(__props.label), 9, _hoisted_1);
|
|
2000
|
+
};
|
|
2001
|
+
}
|
|
2002
|
+
}), [["__scopeId", "data-v-cafce238"]]);
|
|
2003
|
+
//#endregion
|
|
2004
|
+
export { BaseAccordion_default as BaseAccordion, BaseBreadcrumb_default as BaseBreadcrumb, BaseContextMenu_default as BaseContextMenu, BaseDisclosure_default as BaseDisclosure, BaseDrawer_default as BaseDrawer, BaseHoverCard_default as BaseHoverCard, BaseModal_default as BaseModal, BasePagination_default as BasePagination, BaseSplitter_default as BaseSplitter, BaseTabs_default as BaseTabs, BaseToolbar_default as BaseToolbar, BaseTooltip_default as BaseTooltip, BaseTree_default as BaseTree, CommandMenu_default as CommandMenu, DataTable_default as DataTable, MegaMenu_default as MegaMenu, NavLinks_default as NavLinks, ResponsiveDialog_default as ResponsiveDialog, SkipLink_default as SkipLink, TransferList_default as TransferList };
|
|
1984
2005
|
|
|
1985
2006
|
//# sourceMappingURL=web.js.map
|