@code-coaching/vuetiful 0.17.1 → 0.18.1
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 +1 -1
- package/dist/style.css +1 -1
- package/dist/styles/all.css +103 -5
- package/dist/types/components/molecules/VTabs/VTab.test.d.ts +1 -0
- package/dist/types/components/molecules/VTabs/VTab.vue.d.ts +14 -0
- package/dist/types/components/molecules/VTabs/VTabPanel.test.d.ts +1 -0
- package/dist/types/components/molecules/VTabs/VTabPanel.vue.d.ts +2 -0
- package/dist/types/components/molecules/VTabs/VTabs.test.d.ts +1 -0
- package/dist/types/components/molecules/VTabs/VTabs.vue.d.ts +86 -0
- package/dist/types/components/molecules/index.d.ts +6 -3
- package/dist/vuetiful.es.mjs +645 -308
- package/dist/vuetiful.umd.js +12 -12
- package/package.json +1 -1
- package/src/components/molecules/VListbox/VListbox.vue +3 -1
- package/src/components/molecules/VTabs/VTab.test.ts +122 -0
- package/src/components/molecules/VTabs/VTab.vue +39 -0
- package/src/components/molecules/VTabs/VTabPanel.test.ts +23 -0
- package/src/components/molecules/VTabs/VTabPanel.vue +9 -0
- package/src/components/molecules/VTabs/VTabs.test.ts +90 -0
- package/src/components/molecules/VTabs/VTabs.vue +84 -0
- package/src/components/molecules/index.ts +15 -7
package/dist/vuetiful.es.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { defineComponent, ref, computed, useAttrs, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, toDisplayString, renderSlot, createBlock, resolveDynamicComponent, withCtx, withDirectives, createTextVNode, onMounted, Fragment, cloneVNode, h as h$1, inject, provide, watchEffect, onUnmounted, watch, nextTick, toRaw, createCommentVNode, reactive, readonly, toRefs, createVNode, Transition,
|
|
1
|
+
import { defineComponent, ref, computed, useAttrs, openBlock, createElementBlock, normalizeClass, createElementVNode, unref, toDisplayString, renderSlot, createBlock, resolveDynamicComponent, withCtx, withDirectives, createTextVNode, onMounted, Fragment, cloneVNode, h as h$1, inject, provide, watchEffect, onUnmounted, watch, nextTick, toRaw, createCommentVNode, reactive, readonly, toRefs, createVNode, Transition, renderList, pushScopeId, popScopeId, mergeProps, vShow, resolveComponent } from "vue";
|
|
2
2
|
const _hoisted_1$b = ["src", "alt"];
|
|
3
3
|
const _hoisted_2$6 = {
|
|
4
4
|
key: 1,
|
|
5
5
|
class: "avatar-initials h-full w-full",
|
|
6
6
|
viewBox: "0 0 512 512"
|
|
7
7
|
};
|
|
8
|
-
const _sfc_main$
|
|
8
|
+
const _sfc_main$r = /* @__PURE__ */ defineComponent({
|
|
9
9
|
__name: "VAvatar",
|
|
10
10
|
props: {
|
|
11
11
|
initials: { type: String, default: "" },
|
|
@@ -61,7 +61,7 @@ var _export_sfc = (sfc, props) => {
|
|
|
61
61
|
}
|
|
62
62
|
return target;
|
|
63
63
|
};
|
|
64
|
-
const _sfc_main$
|
|
64
|
+
const _sfc_main$q = {};
|
|
65
65
|
const _hoisted_1$a = {
|
|
66
66
|
class: /* @__PURE__ */ normalizeClass(`vuetiful-badge badge`)
|
|
67
67
|
};
|
|
@@ -70,8 +70,8 @@ function _sfc_render$3(_ctx, _cache) {
|
|
|
70
70
|
renderSlot(_ctx.$slots, "default")
|
|
71
71
|
]);
|
|
72
72
|
}
|
|
73
|
-
var VBadge = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
74
|
-
const _sfc_main$
|
|
73
|
+
var VBadge = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$3]]);
|
|
74
|
+
const _sfc_main$p = /* @__PURE__ */ defineComponent({
|
|
75
75
|
__name: "VButton",
|
|
76
76
|
props: {
|
|
77
77
|
icon: {
|
|
@@ -121,7 +121,7 @@ const _sfc_main$m = /* @__PURE__ */ defineComponent({
|
|
|
121
121
|
};
|
|
122
122
|
}
|
|
123
123
|
});
|
|
124
|
-
const _sfc_main$
|
|
124
|
+
const _sfc_main$o = {};
|
|
125
125
|
const _hoisted_1$9 = {
|
|
126
126
|
class: /* @__PURE__ */ normalizeClass(`vuetiful-chip chip`)
|
|
127
127
|
};
|
|
@@ -130,7 +130,7 @@ function _sfc_render$2(_ctx, _cache) {
|
|
|
130
130
|
renderSlot(_ctx.$slots, "default")
|
|
131
131
|
]);
|
|
132
132
|
}
|
|
133
|
-
var VChip = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
133
|
+
var VChip = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$2]]);
|
|
134
134
|
var deepFreezeEs6 = { exports: {} };
|
|
135
135
|
function deepFreeze(obj) {
|
|
136
136
|
if (obj instanceof Map) {
|
|
@@ -9352,7 +9352,7 @@ function css(hljs2) {
|
|
|
9352
9352
|
};
|
|
9353
9353
|
}
|
|
9354
9354
|
var css_1 = css;
|
|
9355
|
-
function d$
|
|
9355
|
+
function d$4(hljs2) {
|
|
9356
9356
|
const D_KEYWORDS = {
|
|
9357
9357
|
$pattern: hljs2.UNDERSCORE_IDENT_RE,
|
|
9358
9358
|
keyword: "abstract alias align asm assert auto body break byte case cast catch class const continue debug default delete deprecated do else enum export extern final finally for foreach foreach_reverse|10 goto if immutable import in inout int interface invariant is lazy macro mixin module new nothrow out override package pragma private protected public pure ref return scope shared static struct super switch synchronized template this throw try typedef typeid typeof union unittest version void volatile while with __FILE__ __LINE__ __gshared|10 __thread __traits __DATE__ __EOF__ __TIME__ __TIMESTAMP__ __VENDOR__ __VERSION__",
|
|
@@ -9462,7 +9462,7 @@ function d$3(hljs2) {
|
|
|
9462
9462
|
]
|
|
9463
9463
|
};
|
|
9464
9464
|
}
|
|
9465
|
-
var d_1 = d$
|
|
9465
|
+
var d_1 = d$4;
|
|
9466
9466
|
function markdown(hljs2) {
|
|
9467
9467
|
const regex = hljs2.regex;
|
|
9468
9468
|
const INLINE_HTML = {
|
|
@@ -46476,7 +46476,7 @@ const _hoisted_2$5 = {
|
|
|
46476
46476
|
class: /* @__PURE__ */ normalizeClass(`code-block-language`)
|
|
46477
46477
|
};
|
|
46478
46478
|
const _hoisted_3$3 = ["innerHTML"];
|
|
46479
|
-
const _sfc_main$
|
|
46479
|
+
const _sfc_main$n = /* @__PURE__ */ defineComponent({
|
|
46480
46480
|
__name: "VCodeBlock",
|
|
46481
46481
|
props: {
|
|
46482
46482
|
language: {
|
|
@@ -46539,7 +46539,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
46539
46539
|
class: normalizeClass(`code-block-header flex items-center justify-between p-2 pb-0 pl-4 text-xs uppercase text-white/50 ${__props.headerClass}`)
|
|
46540
46540
|
}, [
|
|
46541
46541
|
createElementVNode("span", _hoisted_2$5, toDisplayString(languageFormatter(__props.language)), 1),
|
|
46542
|
-
withDirectives((openBlock(), createBlock(unref(_sfc_main$
|
|
46542
|
+
withDirectives((openBlock(), createBlock(unref(_sfc_main$p), {
|
|
46543
46543
|
class: normalizeClass(`code-block-btn ${__props.buttonClass}`),
|
|
46544
46544
|
onClick: _cache[0] || (_cache[0] = ($event) => onCopyClick())
|
|
46545
46545
|
}, {
|
|
@@ -46563,7 +46563,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
|
46563
46563
|
};
|
|
46564
46564
|
}
|
|
46565
46565
|
});
|
|
46566
|
-
const _sfc_main$
|
|
46566
|
+
const _sfc_main$m = defineComponent({
|
|
46567
46567
|
props: {
|
|
46568
46568
|
bgLight: {
|
|
46569
46569
|
type: String,
|
|
@@ -46685,7 +46685,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
46685
46685
|
], 2)
|
|
46686
46686
|
], 42, _hoisted_1$7);
|
|
46687
46687
|
}
|
|
46688
|
-
var VLightSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
46688
|
+
var VLightSwitch = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$1]]);
|
|
46689
46689
|
function u$2(r2, n2, ...a2) {
|
|
46690
46690
|
if (r2 in n2) {
|
|
46691
46691
|
let e2 = n2[r2];
|
|
@@ -46697,7 +46697,7 @@ function u$2(r2, n2, ...a2) {
|
|
|
46697
46697
|
var N$1 = ((o2) => (o2[o2.None = 0] = "None", o2[o2.RenderStrategy = 1] = "RenderStrategy", o2[o2.Static = 2] = "Static", o2))(N$1 || {}), S$1 = ((e2) => (e2[e2.Unmount = 0] = "Unmount", e2[e2.Hidden = 1] = "Hidden", e2))(S$1 || {});
|
|
46698
46698
|
function H$2({ visible: r2 = true, features: t2 = 0, ourProps: e2, theirProps: o2, ...i2 }) {
|
|
46699
46699
|
var a2;
|
|
46700
|
-
let n2 = j$
|
|
46700
|
+
let n2 = j$3(o2, e2), l2 = Object.assign(i2, { props: n2 });
|
|
46701
46701
|
if (r2 || t2 & 2 && n2.static)
|
|
46702
46702
|
return y$2(l2);
|
|
46703
46703
|
if (t2 & 1) {
|
|
@@ -46727,7 +46727,7 @@ function y$2({ props: r2, attrs: t2, slots: e2, slot: o2, name: i2 }) {
|
|
|
46727
46727
|
`), "", "You can apply a few solutions:", ['Add an `as="..."` prop, to ensure that we render an actual element instead of a "template".', "Render a single element as the child so that we can forward the props onto that element."].map((s2) => ` - ${s2}`).join(`
|
|
46728
46728
|
`)].join(`
|
|
46729
46729
|
`));
|
|
46730
|
-
let p2 = j$
|
|
46730
|
+
let p2 = j$3((h2 = u2.props) != null ? h2 : {}, l2), f2 = cloneVNode(u2, p2);
|
|
46731
46731
|
for (let s2 in p2)
|
|
46732
46732
|
s2.startsWith("on") && (f2.props || (f2.props = {}), f2.props[s2] = p2[s2]);
|
|
46733
46733
|
return f2;
|
|
@@ -46739,7 +46739,7 @@ function y$2({ props: r2, attrs: t2, slots: e2, slot: o2, name: i2 }) {
|
|
|
46739
46739
|
function b$2(r2) {
|
|
46740
46740
|
return r2.flatMap((t2) => t2.type === Fragment ? b$2(t2.children) : [t2]);
|
|
46741
46741
|
}
|
|
46742
|
-
function j$
|
|
46742
|
+
function j$3(...r2) {
|
|
46743
46743
|
if (r2.length === 0)
|
|
46744
46744
|
return {};
|
|
46745
46745
|
if (r2.length === 1)
|
|
@@ -46780,7 +46780,7 @@ let e$1 = 0;
|
|
|
46780
46780
|
function n$2() {
|
|
46781
46781
|
return ++e$1;
|
|
46782
46782
|
}
|
|
46783
|
-
function t() {
|
|
46783
|
+
function t$1() {
|
|
46784
46784
|
return n$2();
|
|
46785
46785
|
}
|
|
46786
46786
|
var o$1 = ((r2) => (r2.Space = " ", r2.Enter = "Enter", r2.Escape = "Escape", r2.Backspace = "Backspace", r2.Delete = "Delete", r2.ArrowLeft = "ArrowLeft", r2.ArrowUp = "ArrowUp", r2.ArrowRight = "ArrowRight", r2.ArrowDown = "ArrowDown", r2.Home = "Home", r2.End = "End", r2.PageUp = "PageUp", r2.PageDown = "PageDown", r2.Tab = "Tab", r2))(o$1 || {});
|
|
@@ -46845,8 +46845,8 @@ function b$1(t2, e2) {
|
|
|
46845
46845
|
}), n2;
|
|
46846
46846
|
}
|
|
46847
46847
|
var i = Object.defineProperty;
|
|
46848
|
-
var d$
|
|
46849
|
-
var n = (t2, e2, r2) => (d$
|
|
46848
|
+
var d$3 = (t2, e2, r2) => e2 in t2 ? i(t2, e2, { enumerable: true, configurable: true, writable: true, value: r2 }) : t2[e2] = r2;
|
|
46849
|
+
var n = (t2, e2, r2) => (d$3(t2, typeof e2 != "symbol" ? e2 + "" : e2, r2), r2);
|
|
46850
46850
|
class s$1 {
|
|
46851
46851
|
constructor() {
|
|
46852
46852
|
n(this, "current", this.detect());
|
|
@@ -47039,7 +47039,7 @@ function p$1(n2) {
|
|
|
47039
47039
|
}
|
|
47040
47040
|
}
|
|
47041
47041
|
}
|
|
47042
|
-
function d$
|
|
47042
|
+
function d$2(u2, e2, r2) {
|
|
47043
47043
|
let i2 = ref(r2 == null ? void 0 : r2.value), f2 = computed(() => u2.value !== void 0);
|
|
47044
47044
|
return [computed(() => f2.value ? u2.value : i2.value), function(t2) {
|
|
47045
47045
|
return f2.value || (i2.value = t2), e2 == null ? void 0 : e2(t2);
|
|
@@ -47057,6 +47057,11 @@ function u() {
|
|
|
47057
47057
|
e2.value = r(n2);
|
|
47058
47058
|
} };
|
|
47059
47059
|
}
|
|
47060
|
+
function t(e2) {
|
|
47061
|
+
typeof queueMicrotask == "function" ? queueMicrotask(e2) : Promise.resolve().then(e2).catch((o2) => setTimeout(() => {
|
|
47062
|
+
throw o2;
|
|
47063
|
+
}));
|
|
47064
|
+
}
|
|
47060
47065
|
let p = Symbol("DescriptionContext");
|
|
47061
47066
|
function b() {
|
|
47062
47067
|
let t2 = inject(p, null);
|
|
@@ -47074,7 +47079,7 @@ function M({ slot: t2 = ref({}), name: i2 = "Description", props: o2 = {} } = {}
|
|
|
47074
47079
|
}
|
|
47075
47080
|
return provide(p, { register: s2, slot: t2, name: i2, props: o2 }), computed(() => e2.value.length > 0 ? e2.value.join(" ") : void 0);
|
|
47076
47081
|
}
|
|
47077
|
-
let E = defineComponent({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${t()}` } }, setup(t2, { attrs: i2, slots: o2 }) {
|
|
47082
|
+
let E = defineComponent({ name: "Description", props: { as: { type: [Object, String], default: "p" }, id: { type: String, default: () => `headlessui-description-${t$1()}` } }, setup(t2, { attrs: i2, slots: o2 }) {
|
|
47078
47083
|
let e2 = b();
|
|
47079
47084
|
return onMounted(() => onUnmounted(e2.register(t2.id))), () => {
|
|
47080
47085
|
let { name: s2 = "Description", slot: n2 = ref({}), props: r2 = {} } = e2, { id: d2, ...l2 } = t2, c2 = { ...Object.entries(r2).reduce((f2, [a2, g]) => Object.assign(f2, { [a2]: unref(g) }), {}), id: d2 };
|
|
@@ -47088,12 +47093,12 @@ var fe = ((u2) => (u2[u2.Open = 0] = "Open", u2[u2.Closed = 1] = "Closed", u2))(
|
|
|
47088
47093
|
function ve(t2) {
|
|
47089
47094
|
requestAnimationFrame(() => requestAnimationFrame(t2));
|
|
47090
47095
|
}
|
|
47091
|
-
let U = Symbol("ListboxContext");
|
|
47092
|
-
function j$
|
|
47093
|
-
let b2 = inject(U, null);
|
|
47096
|
+
let U$1 = Symbol("ListboxContext");
|
|
47097
|
+
function j$2(t2) {
|
|
47098
|
+
let b2 = inject(U$1, null);
|
|
47094
47099
|
if (b2 === null) {
|
|
47095
47100
|
let u2 = new Error(`<${t2} /> is missing a parent <Listbox /> component.`);
|
|
47096
|
-
throw Error.captureStackTrace && Error.captureStackTrace(u2, j$
|
|
47101
|
+
throw Error.captureStackTrace && Error.captureStackTrace(u2, j$2), u2;
|
|
47097
47102
|
}
|
|
47098
47103
|
return b2;
|
|
47099
47104
|
}
|
|
@@ -47103,7 +47108,7 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
|
|
|
47103
47108
|
let l2 = i2.value !== null ? f2.value[i2.value] : null, r2 = O(a2(f2.value.slice()), (S2) => o(S2.dataRef.domRef)), s2 = l2 ? r2.indexOf(l2) : null;
|
|
47104
47109
|
return s2 === -1 && (s2 = null), { options: r2, activeOptionIndex: s2 };
|
|
47105
47110
|
}
|
|
47106
|
-
let h$2 = computed(() => t2.multiple ? 1 : 0), [y$12, M2] = d$
|
|
47111
|
+
let h$2 = computed(() => t2.multiple ? 1 : 0), [y$12, M2] = d$2(computed(() => t2.modelValue === void 0 ? u$2(h$2.value, { [1]: [], [0]: void 0 }) : t2.modelValue), (a2) => L("update:modelValue", a2), computed(() => t2.defaultValue)), n2 = { listboxState: e$12, value: y$12, mode: h$2, compare(a2, l2) {
|
|
47107
47112
|
if (typeof t2.by == "string") {
|
|
47108
47113
|
let r2 = t2.by;
|
|
47109
47114
|
return (a2 == null ? void 0 : a2[r2]) === (l2 == null ? void 0 : l2[r2]);
|
|
@@ -47116,15 +47121,15 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
|
|
|
47116
47121
|
}, goToOption(a2, l2, r2) {
|
|
47117
47122
|
if (t2.disabled || e$12.value === 1)
|
|
47118
47123
|
return;
|
|
47119
|
-
let s2 = R(), S2 = x(a2 === a$2.Specific ? { focus: a$2.Specific, id: l2 } : { focus: a2 }, { resolveItems: () => s2.options, resolveActiveIndex: () => s2.activeOptionIndex, resolveId: (
|
|
47124
|
+
let s2 = R(), S2 = x(a2 === a$2.Specific ? { focus: a$2.Specific, id: l2 } : { focus: a2 }, { resolveItems: () => s2.options, resolveActiveIndex: () => s2.activeOptionIndex, resolveId: (k2) => k2.id, resolveDisabled: (k2) => k2.dataRef.disabled });
|
|
47120
47125
|
o$12.value = "", i2.value = S2, w$1.value = r2 != null ? r2 : 1, f2.value = s2.options;
|
|
47121
47126
|
}, search(a2) {
|
|
47122
47127
|
if (t2.disabled || e$12.value === 1)
|
|
47123
47128
|
return;
|
|
47124
47129
|
let r2 = o$12.value !== "" ? 0 : 1;
|
|
47125
47130
|
o$12.value += a2.toLowerCase();
|
|
47126
|
-
let S2 = (i2.value !== null ? f2.value.slice(i2.value + r2).concat(f2.value.slice(0, i2.value + r2)) : f2.value).find((V) => V.dataRef.textValue.startsWith(o$12.value) && !V.dataRef.disabled),
|
|
47127
|
-
|
|
47131
|
+
let S2 = (i2.value !== null ? f2.value.slice(i2.value + r2).concat(f2.value.slice(0, i2.value + r2)) : f2.value).find((V) => V.dataRef.textValue.startsWith(o$12.value) && !V.dataRef.disabled), k2 = S2 ? f2.value.indexOf(S2) : -1;
|
|
47132
|
+
k2 === -1 || k2 === i2.value || (i2.value = k2, w$1.value = 1);
|
|
47128
47133
|
}, clearSearch() {
|
|
47129
47134
|
t2.disabled || e$12.value !== 1 && o$12.value !== "" && (o$12.value = "");
|
|
47130
47135
|
}, registerOption(a2, l2) {
|
|
@@ -47145,7 +47150,7 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
|
|
|
47145
47150
|
y([m2, x$1], (a2, l2) => {
|
|
47146
47151
|
var r2;
|
|
47147
47152
|
n2.closeListbox(), w(l2, h.Loose) || (a2.preventDefault(), (r2 = o(m2)) == null || r2.focus());
|
|
47148
|
-
}, computed(() => e$12.value === 0)), provide(U, n2), c$2(computed(() => u$2(e$12.value, { [0]: l.Open, [1]: l.Closed })));
|
|
47153
|
+
}, computed(() => e$12.value === 0)), provide(U$1, n2), c$2(computed(() => u$2(e$12.value, { [0]: l.Open, [1]: l.Closed })));
|
|
47149
47154
|
let p2 = computed(() => {
|
|
47150
47155
|
var a2;
|
|
47151
47156
|
return (a2 = o(m2)) == null ? void 0 : a2.closest("form");
|
|
@@ -47163,11 +47168,11 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
|
|
|
47163
47168
|
};
|
|
47164
47169
|
}, { immediate: true });
|
|
47165
47170
|
}), () => {
|
|
47166
|
-
let { name: a2, modelValue: l2, disabled: r2, form: s2, ...S2 } = t2,
|
|
47167
|
-
return h$1(Fragment, [...a2 != null && y$12.value != null ? e({ [a2]: y$12.value }).map(([V, $]) => h$1(f$1, K$1({ features: a$1.Hidden, key: V, as: "input", type: "hidden", hidden: true, readOnly: true, form: s2, name: V, value: $ }))) : [], H$2({ ourProps: {}, theirProps: { ...u2, ...T$2(S2, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot:
|
|
47171
|
+
let { name: a2, modelValue: l2, disabled: r2, form: s2, ...S2 } = t2, k2 = { open: e$12.value === 0, disabled: r2, value: y$12.value };
|
|
47172
|
+
return h$1(Fragment, [...a2 != null && y$12.value != null ? e({ [a2]: y$12.value }).map(([V, $]) => h$1(f$1, K$1({ features: a$1.Hidden, key: V, as: "input", type: "hidden", hidden: true, readOnly: true, form: s2, name: V, value: $ }))) : [], H$2({ ourProps: {}, theirProps: { ...u2, ...T$2(S2, ["defaultValue", "onUpdate:modelValue", "horizontal", "multiple", "by"]) }, slot: k2, slots: b2, attrs: u2, name: "Listbox" })]);
|
|
47168
47173
|
};
|
|
47169
|
-
} }), Ae = defineComponent({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-listbox-label-${t()}` } }, setup(t2, { attrs: b2, slots: u2 }) {
|
|
47170
|
-
let L = j$
|
|
47174
|
+
} }), Ae = defineComponent({ name: "ListboxLabel", props: { as: { type: [Object, String], default: "label" }, id: { type: String, default: () => `headlessui-listbox-label-${t$1()}` } }, setup(t2, { attrs: b2, slots: u2 }) {
|
|
47175
|
+
let L = j$2("ListboxLabel");
|
|
47171
47176
|
function e2() {
|
|
47172
47177
|
var d2;
|
|
47173
47178
|
(d2 = o(L.buttonRef)) == null || d2.focus({ preventScroll: true });
|
|
@@ -47176,8 +47181,8 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
|
|
|
47176
47181
|
let d2 = { open: L.listboxState.value === 0, disabled: L.disabled.value }, { id: m2, ...x2 } = t2, f2 = { id: m2, ref: L.labelRef, onClick: e2 };
|
|
47177
47182
|
return H$2({ ourProps: f2, theirProps: x2, slot: d2, attrs: b2, slots: u2, name: "ListboxLabel" });
|
|
47178
47183
|
};
|
|
47179
|
-
} }), Fe = defineComponent({ name: "ListboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-listbox-button-${t()}` } }, setup(t2, { attrs: b2, slots: u2, expose: L }) {
|
|
47180
|
-
let e2 = j$
|
|
47184
|
+
} }), Fe = defineComponent({ name: "ListboxButton", props: { as: { type: [Object, String], default: "button" }, id: { type: String, default: () => `headlessui-listbox-button-${t$1()}` } }, setup(t2, { attrs: b2, slots: u2, expose: L }) {
|
|
47185
|
+
let e2 = j$2("ListboxButton");
|
|
47181
47186
|
L({ el: e2.buttonRef, $el: e2.buttonRef });
|
|
47182
47187
|
function d2(o$2) {
|
|
47183
47188
|
switch (o$2.key) {
|
|
@@ -47219,8 +47224,8 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
|
|
|
47219
47224
|
let o$12 = { open: e2.listboxState.value === 0, disabled: e2.disabled.value, value: e2.value.value }, { id: i2, ...w2 } = t2, R = { ref: e2.buttonRef, id: i2, type: f2.value, "aria-haspopup": "listbox", "aria-controls": (h2 = o(e2.optionsRef)) == null ? void 0 : h2.id, "aria-expanded": e2.disabled.value ? void 0 : e2.listboxState.value === 0, "aria-labelledby": e2.labelRef.value ? [(y2 = o(e2.labelRef)) == null ? void 0 : y2.id, i2].join(" ") : void 0, disabled: e2.disabled.value === true ? true : void 0, onKeydown: d2, onKeyup: m2, onClick: x2 };
|
|
47220
47225
|
return H$2({ ourProps: R, theirProps: w2, slot: o$12, attrs: b2, slots: u2, name: "ListboxButton" });
|
|
47221
47226
|
};
|
|
47222
|
-
} }), Be = defineComponent({ name: "ListboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: () => `headlessui-listbox-options-${t()}` } }, setup(t2, { attrs: b2, slots: u2, expose: L }) {
|
|
47223
|
-
let e2 = j$
|
|
47227
|
+
} }), Be = defineComponent({ name: "ListboxOptions", props: { as: { type: [Object, String], default: "ul" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: () => `headlessui-listbox-options-${t$1()}` } }, setup(t2, { attrs: b2, slots: u2, expose: L }) {
|
|
47228
|
+
let e2 = j$2("ListboxOptions"), d2 = ref(null);
|
|
47224
47229
|
L({ el: e2.optionsRef, $el: e2.optionsRef });
|
|
47225
47230
|
function m2(o$2) {
|
|
47226
47231
|
switch (d2.value && clearTimeout(d2.value), o$2.key) {
|
|
@@ -47267,8 +47272,8 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
|
|
|
47267
47272
|
let o$12 = { open: e2.listboxState.value === 0 }, { id: i2, ...w2 } = t2, R = { "aria-activedescendant": e2.activeOptionIndex.value === null || (h2 = e2.options.value[e2.activeOptionIndex.value]) == null ? void 0 : h2.id, "aria-multiselectable": e2.mode.value === 1 ? true : void 0, "aria-labelledby": (n2 = (y2 = o(e2.labelRef)) == null ? void 0 : y2.id) != null ? n2 : (M2 = o(e2.buttonRef)) == null ? void 0 : M2.id, "aria-orientation": e2.orientation.value, id: i2, onKeydown: m2, role: "listbox", tabIndex: 0, ref: e2.optionsRef };
|
|
47268
47273
|
return H$2({ ourProps: R, theirProps: w2, slot: o$12, attrs: b2, slots: u2, features: N$1.RenderStrategy | N$1.Static, visible: f2.value, name: "ListboxOptions" });
|
|
47269
47274
|
};
|
|
47270
|
-
} }), Ke = defineComponent({ name: "ListboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: false }, id: { type: String, default: () => `headlessui-listbox.option-${t()}` } }, setup(t2, { slots: b2, attrs: u$12, expose: L }) {
|
|
47271
|
-
let e2 = j$
|
|
47275
|
+
} }), Ke = defineComponent({ name: "ListboxOption", props: { as: { type: [Object, String], default: "li" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: false }, id: { type: String, default: () => `headlessui-listbox.option-${t$1()}` } }, setup(t2, { slots: b2, attrs: u$12, expose: L }) {
|
|
47276
|
+
let e2 = j$2("ListboxOption"), d2 = ref(null);
|
|
47272
47277
|
L({ el: d2, $el: d2 });
|
|
47273
47278
|
let m2 = computed(() => e2.activeOptionIndex.value !== null ? e2.options.value[e2.activeOptionIndex.value].id === t2.id : false), x2 = computed(() => u$2(e2.mode.value, { [0]: () => e2.compare(toRaw(e2.value.value), toRaw(t2.value)), [1]: () => toRaw(e2.value.value).some((n2) => e2.compare(toRaw(n2), toRaw(t2.value))) })), f2 = computed(() => u$2(e2.mode.value, { [1]: () => {
|
|
47274
47279
|
var p2;
|
|
@@ -47322,11 +47327,11 @@ let je = defineComponent({ name: "Listbox", emits: { "update:modelValue": (t2) =
|
|
|
47322
47327
|
};
|
|
47323
47328
|
} });
|
|
47324
47329
|
let a = Symbol("LabelContext");
|
|
47325
|
-
function d() {
|
|
47330
|
+
function d$1() {
|
|
47326
47331
|
let t2 = inject(a, null);
|
|
47327
47332
|
if (t2 === null) {
|
|
47328
47333
|
let n2 = new Error("You used a <Label /> component, but it is not inside a parent.");
|
|
47329
|
-
throw Error.captureStackTrace && Error.captureStackTrace(n2, d), n2;
|
|
47334
|
+
throw Error.captureStackTrace && Error.captureStackTrace(n2, d$1), n2;
|
|
47330
47335
|
}
|
|
47331
47336
|
return t2;
|
|
47332
47337
|
}
|
|
@@ -47340,8 +47345,8 @@ function K({ slot: t2 = {}, name: n2 = "Label", props: i2 = {} } = {}) {
|
|
|
47340
47345
|
}
|
|
47341
47346
|
return provide(a, { register: l2, slot: t2, name: n2, props: i2 }), computed(() => e2.value.length > 0 ? e2.value.join(" ") : void 0);
|
|
47342
47347
|
}
|
|
47343
|
-
let T = defineComponent({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false }, id: { type: String, default: () => `headlessui-label-${t()}` } }, setup(t2, { slots: n2, attrs: i2 }) {
|
|
47344
|
-
let e2 = d();
|
|
47348
|
+
let T = defineComponent({ name: "Label", props: { as: { type: [Object, String], default: "label" }, passive: { type: [Boolean], default: false }, id: { type: String, default: () => `headlessui-label-${t$1()}` } }, setup(t2, { slots: n2, attrs: i2 }) {
|
|
47349
|
+
let e2 = d$1();
|
|
47345
47350
|
return onMounted(() => onUnmounted(e2.register(t2.id))), () => {
|
|
47346
47351
|
let { name: l2 = "Label", slot: r2 = {}, props: o2 = {} } = e2, { id: p2, passive: c2, ...u2 } = t2, s2 = { ...Object.entries(o2).reduce((f2, [b2, g]) => Object.assign(f2, { [b2]: unref(g) }), {}), id: p2 };
|
|
47347
47352
|
return c2 && (delete s2.onClick, delete s2.htmlFor, delete u2.onClick), H$2({ ourProps: s2, theirProps: u2, slot: r2, attrs: i2, slots: n2, name: l2 });
|
|
@@ -47350,19 +47355,19 @@ let T = defineComponent({ name: "Label", props: { as: { type: [Object, String],
|
|
|
47350
47355
|
function re(t2, c2) {
|
|
47351
47356
|
return t2 === c2;
|
|
47352
47357
|
}
|
|
47353
|
-
let j = Symbol("RadioGroupContext");
|
|
47358
|
+
let j$1 = Symbol("RadioGroupContext");
|
|
47354
47359
|
function H(t2) {
|
|
47355
|
-
let c2 = inject(j, null);
|
|
47360
|
+
let c2 = inject(j$1, null);
|
|
47356
47361
|
if (c2 === null) {
|
|
47357
47362
|
let u2 = new Error(`<${t2} /> is missing a parent <RadioGroup /> component.`);
|
|
47358
47363
|
throw Error.captureStackTrace && Error.captureStackTrace(u2, H), u2;
|
|
47359
47364
|
}
|
|
47360
47365
|
return c2;
|
|
47361
47366
|
}
|
|
47362
|
-
let ke = defineComponent({ name: "RadioGroup", emits: { "update:modelValue": (t2) => true }, props: { as: { type: [Object, String], default: "div" }, disabled: { type: [Boolean], default: false }, by: { type: [String, Function], default: () => re }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: true }, name: { type: String, optional: true }, id: { type: String, default: () => `headlessui-radiogroup-${t()}` } }, inheritAttrs: false, setup(t2, { emit: c2, attrs: u2, slots: E2, expose: d2 }) {
|
|
47367
|
+
let ke = defineComponent({ name: "RadioGroup", emits: { "update:modelValue": (t2) => true }, props: { as: { type: [Object, String], default: "div" }, disabled: { type: [Boolean], default: false }, by: { type: [String, Function], default: () => re }, modelValue: { type: [Object, String, Number, Boolean], default: void 0 }, defaultValue: { type: [Object, String, Number, Boolean], default: void 0 }, form: { type: String, optional: true }, name: { type: String, optional: true }, id: { type: String, default: () => `headlessui-radiogroup-${t$1()}` } }, inheritAttrs: false, setup(t2, { emit: c2, attrs: u2, slots: E2, expose: d2 }) {
|
|
47363
47368
|
let s2 = ref(null), i2 = ref([]), R = K({ name: "RadioGroupLabel" }), w2 = M({ name: "RadioGroupDescription" });
|
|
47364
47369
|
d2({ el: s2, $el: s2 });
|
|
47365
|
-
let [f2, S2] = d$
|
|
47370
|
+
let [f2, S2] = d$2(computed(() => t2.modelValue), (e2) => c2("update:modelValue", e2), computed(() => t2.defaultValue)), p2 = { options: i2, value: f2, disabled: computed(() => t2.disabled), firstOption: computed(() => i2.value.find((e2) => !e2.propsRef.disabled)), containsCheckedOption: computed(() => i2.value.some((e2) => p2.compare(toRaw(e2.propsRef.value), toRaw(t2.modelValue)))), compare(e2, a2) {
|
|
47366
47371
|
if (typeof t2.by == "string") {
|
|
47367
47372
|
let n2 = t2.by;
|
|
47368
47373
|
return (e2 == null ? void 0 : e2[n2]) === (a2 == null ? void 0 : a2[n2]);
|
|
@@ -47380,7 +47385,7 @@ let ke = defineComponent({ name: "RadioGroup", emits: { "update:modelValue": (t2
|
|
|
47380
47385
|
let a2 = i2.value.findIndex((n2) => n2.id === e2);
|
|
47381
47386
|
a2 !== -1 && i2.value.splice(a2, 1);
|
|
47382
47387
|
} };
|
|
47383
|
-
provide(j, p2), p$2({ container: computed(() => o(s2)), accept(e2) {
|
|
47388
|
+
provide(j$1, p2), p$2({ container: computed(() => o(s2)), accept(e2) {
|
|
47384
47389
|
return e2.getAttribute("role") === "radio" ? NodeFilter.FILTER_REJECT : e2.hasAttribute("role") ? NodeFilter.FILTER_SKIP : NodeFilter.FILTER_ACCEPT;
|
|
47385
47390
|
}, walk(e2) {
|
|
47386
47391
|
e2.setAttribute("role", "none");
|
|
@@ -47447,7 +47452,7 @@ let ke = defineComponent({ name: "RadioGroup", emits: { "update:modelValue": (t2
|
|
|
47447
47452
|
};
|
|
47448
47453
|
} });
|
|
47449
47454
|
var ie = ((u2) => (u2[u2.Empty = 1] = "Empty", u2[u2.Active = 2] = "Active", u2))(ie || {});
|
|
47450
|
-
let Ee = defineComponent({ name: "RadioGroupOption", props: { as: { type: [Object, String], default: "div" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: false }, id: { type: String, default: () => `headlessui-radiogroup-option-${t()}` } }, setup(t2, { attrs: c2, slots: u2, expose: E2 }) {
|
|
47455
|
+
let Ee = defineComponent({ name: "RadioGroupOption", props: { as: { type: [Object, String], default: "div" }, value: { type: [Object, String, Number, Boolean] }, disabled: { type: Boolean, default: false }, id: { type: String, default: () => `headlessui-radiogroup-option-${t$1()}` } }, setup(t2, { attrs: c2, slots: u2, expose: E2 }) {
|
|
47451
47456
|
let d2 = H("RadioGroupOption"), s2 = K({ name: "RadioGroupLabel" }), i2 = M({ name: "RadioGroupDescription" }), R = ref(null), w2 = computed(() => ({ value: t2.value, disabled: t2.disabled })), f2 = ref(1);
|
|
47452
47457
|
E2({ el: R, $el: R });
|
|
47453
47458
|
let S2 = computed(() => o(R));
|
|
@@ -47470,7 +47475,7 @@ let Ee = defineComponent({ name: "RadioGroupOption", props: { as: { type: [Objec
|
|
|
47470
47475
|
let { id: r2, value: b2, disabled: T2, ...G } = t2, N2 = { checked: v2.value, disabled: m2.value, active: Boolean(f2.value & 2) }, K2 = { id: r2, ref: R, role: "radio", "aria-checked": v2.value ? "true" : "false", "aria-labelledby": s2.value, "aria-describedby": i2.value, "aria-disabled": m2.value ? true : void 0, tabIndex: e2.value, onClick: m2.value ? void 0 : a2, onFocus: m2.value ? void 0 : n2, onBlur: m2.value ? void 0 : l2 };
|
|
47471
47476
|
return H$2({ ourProps: K2, theirProps: G, slot: N2, attrs: c2, slots: u2, name: "RadioGroupOption" });
|
|
47472
47477
|
};
|
|
47473
|
-
} }), we = T, Se = E;
|
|
47478
|
+
} }), we = T, Se$1 = E;
|
|
47474
47479
|
let S = Symbol("GroupContext"), ae = defineComponent({ name: "SwitchGroup", props: { as: { type: [Object, String], default: "template" } }, setup(l2, { slots: p2, attrs: a2 }) {
|
|
47475
47480
|
let o2 = ref(null), f2 = K({ name: "SwitchLabel", props: { htmlFor: computed(() => {
|
|
47476
47481
|
var r2;
|
|
@@ -47479,14 +47484,14 @@ let S = Symbol("GroupContext"), ae = defineComponent({ name: "SwitchGroup", prop
|
|
|
47479
47484
|
o2.value && (r2.currentTarget.tagName === "LABEL" && r2.preventDefault(), o2.value.click(), o2.value.focus({ preventScroll: true }));
|
|
47480
47485
|
} } }), t2 = M({ name: "SwitchDescription" });
|
|
47481
47486
|
return provide(S, { switchRef: o2, labelledby: f2, describedby: t2 }), () => H$2({ theirProps: l2, ourProps: {}, slot: {}, slots: p2, attrs: a2, name: "SwitchGroup" });
|
|
47482
|
-
} }), ue = defineComponent({ name: "Switch", emits: { "update:modelValue": (l2) => true }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: true }, form: { type: String, optional: true }, name: { type: String, optional: true }, value: { type: String, optional: true }, id: { type: String, default: () => `headlessui-switch-${t()}` } }, inheritAttrs: false, setup(l2, { emit: p2, attrs: a2, slots: o$2, expose: f2 }) {
|
|
47483
|
-
let t2 = inject(S, null), [i2, r2] = d$
|
|
47487
|
+
} }), ue = defineComponent({ name: "Switch", emits: { "update:modelValue": (l2) => true }, props: { as: { type: [Object, String], default: "button" }, modelValue: { type: Boolean, default: void 0 }, defaultChecked: { type: Boolean, optional: true }, form: { type: String, optional: true }, name: { type: String, optional: true }, value: { type: String, optional: true }, id: { type: String, default: () => `headlessui-switch-${t$1()}` } }, inheritAttrs: false, setup(l2, { emit: p2, attrs: a2, slots: o$2, expose: f2 }) {
|
|
47488
|
+
let t2 = inject(S, null), [i2, r2] = d$2(computed(() => l2.modelValue), (e2) => p2("update:modelValue", e2), computed(() => l2.defaultChecked));
|
|
47484
47489
|
function s2() {
|
|
47485
47490
|
r2(!i2.value);
|
|
47486
47491
|
}
|
|
47487
47492
|
let w2 = ref(null), u2 = t2 === null ? w2 : t2.switchRef, g = b$1(computed(() => ({ as: l2.as, type: a2.type })), u2);
|
|
47488
47493
|
f2({ el: u2, $el: u2 });
|
|
47489
|
-
function
|
|
47494
|
+
function k2(e2) {
|
|
47490
47495
|
e2.preventDefault(), s2();
|
|
47491
47496
|
}
|
|
47492
47497
|
function C(e2) {
|
|
@@ -47512,11 +47517,200 @@ let S = Symbol("GroupContext"), ae = defineComponent({ name: "SwitchGroup", prop
|
|
|
47512
47517
|
};
|
|
47513
47518
|
}, { immediate: true });
|
|
47514
47519
|
}), () => {
|
|
47515
|
-
let { id: e2, name: n2, value: L, form: D, ...R } = l2, K2 = { checked: i2.value }, x2 = { id: e2, ref: u2, role: "switch", type: g.value, tabIndex: 0, "aria-checked": i2.value, "aria-labelledby": t2 == null ? void 0 : t2.labelledby.value, "aria-describedby": t2 == null ? void 0 : t2.describedby.value, onClick:
|
|
47520
|
+
let { id: e2, name: n2, value: L, form: D, ...R } = l2, K2 = { checked: i2.value }, x2 = { id: e2, ref: u2, role: "switch", type: g.value, tabIndex: 0, "aria-checked": i2.value, "aria-labelledby": t2 == null ? void 0 : t2.labelledby.value, "aria-describedby": t2 == null ? void 0 : t2.describedby.value, onClick: k2, onKeyup: C, onKeypress: E2 };
|
|
47516
47521
|
return h$1(Fragment, [n2 != null && i2.value != null ? h$1(f$1, K$1({ features: a$1.Hidden, as: "input", type: "checkbox", hidden: true, readOnly: true, checked: i2.value, form: D, name: n2, value: L })) : null, H$2({ ourProps: x2, theirProps: { ...a2, ...T$2(R, ["modelValue", "defaultChecked"]) }, slot: K2, attrs: a2, slots: o$2, name: "Switch" })]);
|
|
47517
47522
|
};
|
|
47518
47523
|
} }), de = T, ce = E;
|
|
47519
|
-
|
|
47524
|
+
let d = defineComponent({ props: { onFocus: { type: Function, required: true } }, setup(t2) {
|
|
47525
|
+
let n2 = ref(true);
|
|
47526
|
+
return () => n2.value ? h$1(f$1, { as: "button", type: "button", features: a$1.Focusable, onFocus(o2) {
|
|
47527
|
+
o2.preventDefault();
|
|
47528
|
+
let e2, a2 = 50;
|
|
47529
|
+
function r2() {
|
|
47530
|
+
var u2;
|
|
47531
|
+
if (a2-- <= 0) {
|
|
47532
|
+
e2 && cancelAnimationFrame(e2);
|
|
47533
|
+
return;
|
|
47534
|
+
}
|
|
47535
|
+
if ((u2 = t2.onFocus) != null && u2.call(t2)) {
|
|
47536
|
+
n2.value = false, cancelAnimationFrame(e2);
|
|
47537
|
+
return;
|
|
47538
|
+
}
|
|
47539
|
+
e2 = requestAnimationFrame(r2);
|
|
47540
|
+
}
|
|
47541
|
+
e2 = requestAnimationFrame(r2);
|
|
47542
|
+
} }) : null;
|
|
47543
|
+
} });
|
|
47544
|
+
var te = ((i2) => (i2[i2.Forwards = 0] = "Forwards", i2[i2.Backwards = 1] = "Backwards", i2))(te || {}), le = ((s2) => (s2[s2.Less = -1] = "Less", s2[s2.Equal = 0] = "Equal", s2[s2.Greater = 1] = "Greater", s2))(le || {});
|
|
47545
|
+
let U = Symbol("TabsContext");
|
|
47546
|
+
function k(a2) {
|
|
47547
|
+
let v2 = inject(U, null);
|
|
47548
|
+
if (v2 === null) {
|
|
47549
|
+
let i2 = new Error(`<${a2} /> is missing a parent <TabGroup /> component.`);
|
|
47550
|
+
throw Error.captureStackTrace && Error.captureStackTrace(i2, k), i2;
|
|
47551
|
+
}
|
|
47552
|
+
return v2;
|
|
47553
|
+
}
|
|
47554
|
+
let j = Symbol("TabsSSRContext"), xe = defineComponent({ name: "TabGroup", emits: { change: (a2) => true }, props: { as: { type: [Object, String], default: "template" }, selectedIndex: { type: [Number], default: null }, defaultIndex: { type: [Number], default: 0 }, vertical: { type: [Boolean], default: false }, manual: { type: [Boolean], default: false } }, inheritAttrs: false, setup(a2, { slots: v2, attrs: i2, emit: s2 }) {
|
|
47555
|
+
var h2;
|
|
47556
|
+
let l2 = ref((h2 = a2.selectedIndex) != null ? h2 : a2.defaultIndex), n2 = ref([]), o$12 = ref([]), T2 = computed(() => a2.selectedIndex !== null), b2 = computed(() => T2.value ? a2.selectedIndex : l2.value);
|
|
47557
|
+
function m2(t2) {
|
|
47558
|
+
var S2;
|
|
47559
|
+
let e2 = O(r2.tabs.value, o), u2 = O(r2.panels.value, o), f2 = e2.filter((p2) => {
|
|
47560
|
+
var E2;
|
|
47561
|
+
return !((E2 = o(p2)) != null && E2.hasAttribute("disabled"));
|
|
47562
|
+
});
|
|
47563
|
+
if (t2 < 0 || t2 > e2.length - 1) {
|
|
47564
|
+
let p2 = u$2(l2.value === null ? 0 : Math.sign(t2 - l2.value), { [-1]: () => 1, [0]: () => u$2(Math.sign(t2), { [-1]: () => 0, [0]: () => 0, [1]: () => 1 }), [1]: () => 0 });
|
|
47565
|
+
l2.value = u$2(p2, { [0]: () => e2.indexOf(f2[0]), [1]: () => e2.indexOf(f2[f2.length - 1]) }), r2.tabs.value = e2, r2.panels.value = u2;
|
|
47566
|
+
} else {
|
|
47567
|
+
let p2 = e2.slice(0, t2), G = [...e2.slice(t2), ...p2].find((W) => f2.includes(W));
|
|
47568
|
+
if (!G)
|
|
47569
|
+
return;
|
|
47570
|
+
let B = (S2 = e2.indexOf(G)) != null ? S2 : r2.selectedIndex.value;
|
|
47571
|
+
B === -1 && (B = r2.selectedIndex.value), l2.value = B, r2.tabs.value = e2, r2.panels.value = u2;
|
|
47572
|
+
}
|
|
47573
|
+
}
|
|
47574
|
+
let r2 = { selectedIndex: computed(() => {
|
|
47575
|
+
var t2, e2;
|
|
47576
|
+
return (e2 = (t2 = l2.value) != null ? t2 : a2.defaultIndex) != null ? e2 : null;
|
|
47577
|
+
}), orientation: computed(() => a2.vertical ? "vertical" : "horizontal"), activation: computed(() => a2.manual ? "manual" : "auto"), tabs: n2, panels: o$12, setSelectedIndex(t2) {
|
|
47578
|
+
b2.value !== t2 && s2("change", t2), T2.value || m2(t2);
|
|
47579
|
+
}, registerTab(t2) {
|
|
47580
|
+
var f2;
|
|
47581
|
+
if (n2.value.includes(t2))
|
|
47582
|
+
return;
|
|
47583
|
+
let e2 = n2.value[l2.value];
|
|
47584
|
+
n2.value.push(t2), n2.value = O(n2.value, o);
|
|
47585
|
+
let u2 = (f2 = n2.value.indexOf(e2)) != null ? f2 : l2.value;
|
|
47586
|
+
u2 !== -1 && (l2.value = u2);
|
|
47587
|
+
}, unregisterTab(t2) {
|
|
47588
|
+
let e2 = n2.value.indexOf(t2);
|
|
47589
|
+
e2 !== -1 && n2.value.splice(e2, 1);
|
|
47590
|
+
}, registerPanel(t2) {
|
|
47591
|
+
o$12.value.includes(t2) || (o$12.value.push(t2), o$12.value = O(o$12.value, o));
|
|
47592
|
+
}, unregisterPanel(t2) {
|
|
47593
|
+
let e2 = o$12.value.indexOf(t2);
|
|
47594
|
+
e2 !== -1 && o$12.value.splice(e2, 1);
|
|
47595
|
+
} };
|
|
47596
|
+
provide(U, r2);
|
|
47597
|
+
let R = ref({ tabs: [], panels: [] }), y2 = ref(false);
|
|
47598
|
+
onMounted(() => {
|
|
47599
|
+
y2.value = true;
|
|
47600
|
+
}), provide(j, computed(() => y2.value ? null : R.value));
|
|
47601
|
+
let w2 = computed(() => a2.selectedIndex);
|
|
47602
|
+
return onMounted(() => {
|
|
47603
|
+
watch([w2], () => {
|
|
47604
|
+
var t2;
|
|
47605
|
+
return m2((t2 = a2.selectedIndex) != null ? t2 : a2.defaultIndex);
|
|
47606
|
+
}, { immediate: true });
|
|
47607
|
+
}), watchEffect(() => {
|
|
47608
|
+
if (!T2.value || b2.value == null || r2.tabs.value.length <= 0)
|
|
47609
|
+
return;
|
|
47610
|
+
let t2 = O(r2.tabs.value, o);
|
|
47611
|
+
t2.some((u2, f2) => o(r2.tabs.value[f2]) !== o(u2)) && r2.setSelectedIndex(t2.findIndex((u2) => o(u2) === o(r2.tabs.value[b2.value])));
|
|
47612
|
+
}), () => {
|
|
47613
|
+
let t2 = { selectedIndex: l2.value };
|
|
47614
|
+
return h$1(Fragment, [n2.value.length <= 0 && h$1(d, { onFocus: () => {
|
|
47615
|
+
for (let e2 of n2.value) {
|
|
47616
|
+
let u2 = o(e2);
|
|
47617
|
+
if ((u2 == null ? void 0 : u2.tabIndex) === 0)
|
|
47618
|
+
return u2.focus(), true;
|
|
47619
|
+
}
|
|
47620
|
+
return false;
|
|
47621
|
+
} }), H$2({ theirProps: { ...i2, ...T$2(a2, ["selectedIndex", "defaultIndex", "manual", "vertical", "onChange"]) }, ourProps: {}, slot: t2, slots: v2, attrs: i2, name: "TabGroup" })]);
|
|
47622
|
+
};
|
|
47623
|
+
} }), Ie = defineComponent({ name: "TabList", props: { as: { type: [Object, String], default: "div" } }, setup(a2, { attrs: v2, slots: i2 }) {
|
|
47624
|
+
let s2 = k("TabList");
|
|
47625
|
+
return () => {
|
|
47626
|
+
let l2 = { selectedIndex: s2.selectedIndex.value }, n2 = { role: "tablist", "aria-orientation": s2.orientation.value };
|
|
47627
|
+
return H$2({ ourProps: n2, theirProps: a2, slot: l2, attrs: v2, slots: i2, name: "TabList" });
|
|
47628
|
+
};
|
|
47629
|
+
} }), ye = defineComponent({ name: "Tab", props: { as: { type: [Object, String], default: "button" }, disabled: { type: [Boolean], default: false }, id: { type: String, default: () => `headlessui-tabs-tab-${t$1()}` } }, setup(a2, { attrs: v2, slots: i2, expose: s2 }) {
|
|
47630
|
+
let l2 = k("Tab"), n2 = ref(null);
|
|
47631
|
+
s2({ el: n2, $el: n2 }), onMounted(() => l2.registerTab(n2)), onUnmounted(() => l2.unregisterTab(n2));
|
|
47632
|
+
let o$2 = inject(j), T2 = computed(() => {
|
|
47633
|
+
if (o$2.value) {
|
|
47634
|
+
let e2 = o$2.value.tabs.indexOf(a2.id);
|
|
47635
|
+
return e2 === -1 ? o$2.value.tabs.push(a2.id) - 1 : e2;
|
|
47636
|
+
}
|
|
47637
|
+
return -1;
|
|
47638
|
+
}), b2 = computed(() => {
|
|
47639
|
+
let e2 = l2.tabs.value.indexOf(n2);
|
|
47640
|
+
return e2 === -1 ? T2.value : e2;
|
|
47641
|
+
}), m$1 = computed(() => b2.value === l2.selectedIndex.value);
|
|
47642
|
+
function r2(e2) {
|
|
47643
|
+
var f2;
|
|
47644
|
+
let u2 = e2();
|
|
47645
|
+
if (u2 === T$1.Success && l2.activation.value === "auto") {
|
|
47646
|
+
let S2 = (f2 = m(n2)) == null ? void 0 : f2.activeElement, p2 = l2.tabs.value.findIndex((E2) => o(E2) === S2);
|
|
47647
|
+
p2 !== -1 && l2.setSelectedIndex(p2);
|
|
47648
|
+
}
|
|
47649
|
+
return u2;
|
|
47650
|
+
}
|
|
47651
|
+
function R(e2) {
|
|
47652
|
+
let u2 = l2.tabs.value.map((S2) => o(S2)).filter(Boolean);
|
|
47653
|
+
if (e2.key === o$1.Space || e2.key === o$1.Enter) {
|
|
47654
|
+
e2.preventDefault(), e2.stopPropagation(), l2.setSelectedIndex(b2.value);
|
|
47655
|
+
return;
|
|
47656
|
+
}
|
|
47657
|
+
switch (e2.key) {
|
|
47658
|
+
case o$1.Home:
|
|
47659
|
+
case o$1.PageUp:
|
|
47660
|
+
return e2.preventDefault(), e2.stopPropagation(), r2(() => P(u2, N.First));
|
|
47661
|
+
case o$1.End:
|
|
47662
|
+
case o$1.PageDown:
|
|
47663
|
+
return e2.preventDefault(), e2.stopPropagation(), r2(() => P(u2, N.Last));
|
|
47664
|
+
}
|
|
47665
|
+
if (r2(() => u$2(l2.orientation.value, { vertical() {
|
|
47666
|
+
return e2.key === o$1.ArrowUp ? P(u2, N.Previous | N.WrapAround) : e2.key === o$1.ArrowDown ? P(u2, N.Next | N.WrapAround) : T$1.Error;
|
|
47667
|
+
}, horizontal() {
|
|
47668
|
+
return e2.key === o$1.ArrowLeft ? P(u2, N.Previous | N.WrapAround) : e2.key === o$1.ArrowRight ? P(u2, N.Next | N.WrapAround) : T$1.Error;
|
|
47669
|
+
} })) === T$1.Success)
|
|
47670
|
+
return e2.preventDefault();
|
|
47671
|
+
}
|
|
47672
|
+
let y2 = ref(false);
|
|
47673
|
+
function w2() {
|
|
47674
|
+
var e2;
|
|
47675
|
+
y2.value || (y2.value = true, !a2.disabled && ((e2 = o(n2)) == null || e2.focus(), l2.setSelectedIndex(b2.value), t(() => {
|
|
47676
|
+
y2.value = false;
|
|
47677
|
+
})));
|
|
47678
|
+
}
|
|
47679
|
+
function h2(e2) {
|
|
47680
|
+
e2.preventDefault();
|
|
47681
|
+
}
|
|
47682
|
+
let t$12 = b$1(computed(() => ({ as: a2.as, type: v2.type })), n2);
|
|
47683
|
+
return () => {
|
|
47684
|
+
var p2;
|
|
47685
|
+
let e2 = { selected: m$1.value }, { id: u2, ...f2 } = a2, S2 = { ref: n2, onKeydown: R, onMousedown: h2, onClick: w2, id: u2, role: "tab", type: t$12.value, "aria-controls": (p2 = o(l2.panels.value[b2.value])) == null ? void 0 : p2.id, "aria-selected": m$1.value, tabIndex: m$1.value ? 0 : -1, disabled: a2.disabled ? true : void 0 };
|
|
47686
|
+
return H$2({ ourProps: S2, theirProps: f2, slot: e2, attrs: v2, slots: i2, name: "Tab" });
|
|
47687
|
+
};
|
|
47688
|
+
} }), Se = defineComponent({ name: "TabPanels", props: { as: { type: [Object, String], default: "div" } }, setup(a2, { slots: v2, attrs: i2 }) {
|
|
47689
|
+
let s2 = k("TabPanels");
|
|
47690
|
+
return () => {
|
|
47691
|
+
let l2 = { selectedIndex: s2.selectedIndex.value };
|
|
47692
|
+
return H$2({ theirProps: a2, ourProps: {}, slot: l2, attrs: i2, slots: v2, name: "TabPanels" });
|
|
47693
|
+
};
|
|
47694
|
+
} }), ge = defineComponent({ name: "TabPanel", props: { as: { type: [Object, String], default: "div" }, static: { type: Boolean, default: false }, unmount: { type: Boolean, default: true }, id: { type: String, default: () => `headlessui-tabs-panel-${t$1()}` }, tabIndex: { type: Number, default: 0 } }, setup(a2, { attrs: v2, slots: i2, expose: s2 }) {
|
|
47695
|
+
let l2 = k("TabPanel"), n2 = ref(null);
|
|
47696
|
+
s2({ el: n2, $el: n2 }), onMounted(() => l2.registerPanel(n2)), onUnmounted(() => l2.unregisterPanel(n2));
|
|
47697
|
+
let o$12 = inject(j), T2 = computed(() => {
|
|
47698
|
+
if (o$12.value) {
|
|
47699
|
+
let r2 = o$12.value.panels.indexOf(a2.id);
|
|
47700
|
+
return r2 === -1 ? o$12.value.panels.push(a2.id) - 1 : r2;
|
|
47701
|
+
}
|
|
47702
|
+
return -1;
|
|
47703
|
+
}), b2 = computed(() => {
|
|
47704
|
+
let r2 = l2.panels.value.indexOf(n2);
|
|
47705
|
+
return r2 === -1 ? T2.value : r2;
|
|
47706
|
+
}), m2 = computed(() => b2.value === l2.selectedIndex.value);
|
|
47707
|
+
return () => {
|
|
47708
|
+
var t2;
|
|
47709
|
+
let r2 = { selected: m2.value }, { id: R, tabIndex: y2, ...w2 } = a2, h2 = { ref: n2, id: R, role: "tabpanel", "aria-labelledby": (t2 = o(l2.tabs.value[b2.value])) == null ? void 0 : t2.id, tabIndex: m2.value ? y2 : -1 };
|
|
47710
|
+
return !m2.value && a2.unmount && !a2.static ? h$1(f$1, { as: "span", ...h2 }) : H$2({ ourProps: h2, theirProps: w2, slot: r2, attrs: v2, slots: i2, features: N$1.Static | N$1.RenderStrategy, visible: m2.value, name: "TabPanel" });
|
|
47711
|
+
};
|
|
47712
|
+
} });
|
|
47713
|
+
const _sfc_main$l = /* @__PURE__ */ defineComponent({
|
|
47520
47714
|
__name: "VRadioDescription",
|
|
47521
47715
|
props: {
|
|
47522
47716
|
as: {
|
|
@@ -47526,7 +47720,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
47526
47720
|
},
|
|
47527
47721
|
setup(__props) {
|
|
47528
47722
|
return (_ctx, _cache) => {
|
|
47529
|
-
return openBlock(), createBlock(unref(Se), { as: __props.as }, {
|
|
47723
|
+
return openBlock(), createBlock(unref(Se$1), { as: __props.as }, {
|
|
47530
47724
|
default: withCtx(() => [
|
|
47531
47725
|
renderSlot(_ctx.$slots, "default")
|
|
47532
47726
|
]),
|
|
@@ -47535,7 +47729,7 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
|
47535
47729
|
};
|
|
47536
47730
|
}
|
|
47537
47731
|
});
|
|
47538
|
-
const _sfc_main$
|
|
47732
|
+
const _sfc_main$k = /* @__PURE__ */ defineComponent({
|
|
47539
47733
|
__name: "VRadioGroup",
|
|
47540
47734
|
props: {
|
|
47541
47735
|
as: {
|
|
@@ -47603,7 +47797,7 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
|
47603
47797
|
};
|
|
47604
47798
|
}
|
|
47605
47799
|
});
|
|
47606
|
-
const _sfc_main$
|
|
47800
|
+
const _sfc_main$j = /* @__PURE__ */ defineComponent({
|
|
47607
47801
|
__name: "VRadioItem",
|
|
47608
47802
|
props: {
|
|
47609
47803
|
value: {
|
|
@@ -47629,7 +47823,7 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
|
47629
47823
|
};
|
|
47630
47824
|
}
|
|
47631
47825
|
});
|
|
47632
|
-
const _sfc_main$
|
|
47826
|
+
const _sfc_main$i = /* @__PURE__ */ defineComponent({
|
|
47633
47827
|
__name: "VRadioLabel",
|
|
47634
47828
|
props: {
|
|
47635
47829
|
as: {
|
|
@@ -47652,7 +47846,7 @@ const _hoisted_1$6 = {
|
|
|
47652
47846
|
key: 0,
|
|
47653
47847
|
class: "sr-only"
|
|
47654
47848
|
};
|
|
47655
|
-
const _sfc_main$
|
|
47849
|
+
const _sfc_main$h = /* @__PURE__ */ defineComponent({
|
|
47656
47850
|
__name: "VSwitch",
|
|
47657
47851
|
props: {
|
|
47658
47852
|
modelValue: {
|
|
@@ -47741,7 +47935,7 @@ const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
|
47741
47935
|
};
|
|
47742
47936
|
}
|
|
47743
47937
|
});
|
|
47744
|
-
const _sfc_main$
|
|
47938
|
+
const _sfc_main$g = /* @__PURE__ */ defineComponent({
|
|
47745
47939
|
__name: "VSwitchDescription",
|
|
47746
47940
|
props: {
|
|
47747
47941
|
as: {
|
|
@@ -47760,7 +47954,7 @@ const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
|
47760
47954
|
};
|
|
47761
47955
|
}
|
|
47762
47956
|
});
|
|
47763
|
-
const _sfc_main$
|
|
47957
|
+
const _sfc_main$f = /* @__PURE__ */ defineComponent({
|
|
47764
47958
|
__name: "VSwitchGroup",
|
|
47765
47959
|
props: {
|
|
47766
47960
|
as: {
|
|
@@ -47779,7 +47973,7 @@ const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
|
47779
47973
|
};
|
|
47780
47974
|
}
|
|
47781
47975
|
});
|
|
47782
|
-
const _sfc_main$
|
|
47976
|
+
const _sfc_main$e = /* @__PURE__ */ defineComponent({
|
|
47783
47977
|
__name: "VSwitchLabel",
|
|
47784
47978
|
props: {
|
|
47785
47979
|
as: {
|
|
@@ -47925,7 +48119,7 @@ const useDarkMode = () => {
|
|
|
47925
48119
|
};
|
|
47926
48120
|
};
|
|
47927
48121
|
const _hoisted_1$5 = ["aria-labelledby", "aria-describedby"];
|
|
47928
|
-
const _sfc_main$
|
|
48122
|
+
const _sfc_main$d = /* @__PURE__ */ defineComponent({
|
|
47929
48123
|
__name: "VDrawer",
|
|
47930
48124
|
props: {
|
|
47931
48125
|
regionBackdrop: {
|
|
@@ -48012,206 +48206,10 @@ const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
|
48012
48206
|
};
|
|
48013
48207
|
}
|
|
48014
48208
|
});
|
|
48015
|
-
const _hoisted_1$4 = { class: "v-rail grid h-full w-[70px] grid-rows-[auto_1fr_auto] gap-0 overflow-y-auto sm:w-20" };
|
|
48016
|
-
const _sfc_main$9 = /* @__PURE__ */ defineComponent({
|
|
48017
|
-
__name: "VRail",
|
|
48018
|
-
props: {
|
|
48019
|
-
active: {
|
|
48020
|
-
type: String,
|
|
48021
|
-
default: "bg-secondary-active-token"
|
|
48022
|
-
},
|
|
48023
|
-
hover: {
|
|
48024
|
-
type: String,
|
|
48025
|
-
default: "hover:bg-secondary-hover-token"
|
|
48026
|
-
},
|
|
48027
|
-
regionLead: {
|
|
48028
|
-
type: String,
|
|
48029
|
-
default: ""
|
|
48030
|
-
},
|
|
48031
|
-
regionDefault: {
|
|
48032
|
-
type: String,
|
|
48033
|
-
default: ""
|
|
48034
|
-
},
|
|
48035
|
-
regionTrail: {
|
|
48036
|
-
type: String,
|
|
48037
|
-
default: ""
|
|
48038
|
-
}
|
|
48039
|
-
},
|
|
48040
|
-
setup(__props) {
|
|
48041
|
-
const props = __props;
|
|
48042
|
-
provide("active", props.active);
|
|
48043
|
-
provide("hover", props.hover);
|
|
48044
|
-
return (_ctx, _cache) => {
|
|
48045
|
-
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
48046
|
-
createElementVNode("div", {
|
|
48047
|
-
class: normalizeClass(["v-bar-lead", __props.regionLead])
|
|
48048
|
-
}, [
|
|
48049
|
-
renderSlot(_ctx.$slots, "lead")
|
|
48050
|
-
], 2),
|
|
48051
|
-
createElementVNode("div", {
|
|
48052
|
-
class: normalizeClass(["v-bar-default", __props.regionDefault])
|
|
48053
|
-
}, [
|
|
48054
|
-
renderSlot(_ctx.$slots, "default")
|
|
48055
|
-
], 2),
|
|
48056
|
-
createElementVNode("div", {
|
|
48057
|
-
class: normalizeClass(["v-bar-trail", __props.regionTrail])
|
|
48058
|
-
}, [
|
|
48059
|
-
renderSlot(_ctx.$slots, "trail")
|
|
48060
|
-
], 2)
|
|
48061
|
-
]);
|
|
48062
|
-
};
|
|
48063
|
-
}
|
|
48064
|
-
});
|
|
48065
|
-
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
48066
|
-
__name: "VRailTile",
|
|
48067
|
-
props: {
|
|
48068
|
-
value: {
|
|
48069
|
-
type: String,
|
|
48070
|
-
default: ""
|
|
48071
|
-
},
|
|
48072
|
-
tag: {
|
|
48073
|
-
type: String,
|
|
48074
|
-
default: "button"
|
|
48075
|
-
},
|
|
48076
|
-
label: {
|
|
48077
|
-
type: String,
|
|
48078
|
-
default: ""
|
|
48079
|
-
},
|
|
48080
|
-
regionIcon: {
|
|
48081
|
-
type: String,
|
|
48082
|
-
default: ""
|
|
48083
|
-
},
|
|
48084
|
-
regionLabel: {
|
|
48085
|
-
type: String,
|
|
48086
|
-
default: ""
|
|
48087
|
-
}
|
|
48088
|
-
},
|
|
48089
|
-
emits: ["click"],
|
|
48090
|
-
setup(__props, { emit }) {
|
|
48091
|
-
const props = __props;
|
|
48092
|
-
const attrs = useAttrs();
|
|
48093
|
-
const { selectedRailTile: selectedRailTile2 } = useRail();
|
|
48094
|
-
const active = inject("active");
|
|
48095
|
-
const hover = inject("hover");
|
|
48096
|
-
const activate = () => {
|
|
48097
|
-
selectedRailTile2.value = props.value;
|
|
48098
|
-
emit("click");
|
|
48099
|
-
};
|
|
48100
|
-
const clickHandler = (event) => {
|
|
48101
|
-
event.preventDefault();
|
|
48102
|
-
activate();
|
|
48103
|
-
};
|
|
48104
|
-
const keydownHandler = (event) => {
|
|
48105
|
-
if (["Enter", " "].includes(event.key))
|
|
48106
|
-
event.preventDefault();
|
|
48107
|
-
if (event.key === "Enter")
|
|
48108
|
-
activate();
|
|
48109
|
-
};
|
|
48110
|
-
const keyupHandler = (event) => {
|
|
48111
|
-
if (event.key === " ") {
|
|
48112
|
-
event.preventDefault();
|
|
48113
|
-
activate();
|
|
48114
|
-
}
|
|
48115
|
-
};
|
|
48116
|
-
return (_ctx, _cache) => {
|
|
48117
|
-
return openBlock(), createBlock(resolveDynamicComponent(__props.tag), mergeProps({
|
|
48118
|
-
onClick: clickHandler,
|
|
48119
|
-
onKeydown: keydownHandler,
|
|
48120
|
-
onKeyup: keyupHandler
|
|
48121
|
-
}, unref(attrs), {
|
|
48122
|
-
class: `app-rail-tile unstyled grid aspect-square w-full cursor-pointer place-content-center place-items-center space-y-1.5 ${unref(hover)} ${unref(selectedRailTile2) === __props.value ? `${unref(active)}` : ""}`
|
|
48123
|
-
}), {
|
|
48124
|
-
default: withCtx(() => [
|
|
48125
|
-
_ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
48126
|
-
key: 0,
|
|
48127
|
-
class: normalizeClass(`app-rail-tile-icon ${__props.regionIcon}`)
|
|
48128
|
-
}, [
|
|
48129
|
-
renderSlot(_ctx.$slots, "default")
|
|
48130
|
-
], 2)) : createCommentVNode("", true),
|
|
48131
|
-
__props.label ? (openBlock(), createElementBlock("div", {
|
|
48132
|
-
key: 1,
|
|
48133
|
-
class: normalizeClass(`app-rail-tile-label text-center text-xs font-bold ${__props.regionLabel}`)
|
|
48134
|
-
}, toDisplayString(__props.label), 3)) : createCommentVNode("", true)
|
|
48135
|
-
]),
|
|
48136
|
-
_: 3
|
|
48137
|
-
}, 16, ["class"]);
|
|
48138
|
-
};
|
|
48139
|
-
}
|
|
48140
|
-
});
|
|
48141
|
-
const _hoisted_1$3 = { class: "vuetiful-shell flex h-full w-full flex-col overflow-hidden" };
|
|
48142
|
-
const _hoisted_2$3 = { class: "vuetiful-shell-content flex h-full w-full flex-auto overflow-hidden" };
|
|
48143
|
-
const _sfc_main$7 = defineComponent({
|
|
48144
|
-
__name: "VShell",
|
|
48145
|
-
props: {
|
|
48146
|
-
regionPage: { type: String, default: "" },
|
|
48147
|
-
slotFixedHeader: { type: String, default: "z-10" },
|
|
48148
|
-
slotSidebarLeft: { type: String, default: "w-auto" },
|
|
48149
|
-
slotSidebarRight: { type: String, default: "w-auto" },
|
|
48150
|
-
slotPageHeader: { type: String, default: "" },
|
|
48151
|
-
slotPageContent: { type: String, default: "" },
|
|
48152
|
-
slotPageFooter: { type: String, default: "" },
|
|
48153
|
-
slotFixedFooter: { type: String, default: "" }
|
|
48154
|
-
},
|
|
48155
|
-
setup(__props) {
|
|
48156
|
-
return (_ctx, _cache) => {
|
|
48157
|
-
var _a;
|
|
48158
|
-
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
48159
|
-
_ctx.$slots.fixedHeader ? (openBlock(), createElementBlock("header", {
|
|
48160
|
-
key: 0,
|
|
48161
|
-
class: normalizeClass(`vuetiful-fixed-header ${__props.slotFixedHeader}`)
|
|
48162
|
-
}, [
|
|
48163
|
-
renderSlot(_ctx.$slots, "fixedHeader")
|
|
48164
|
-
], 2)) : createCommentVNode("", true),
|
|
48165
|
-
createElementVNode("div", _hoisted_2$3, [
|
|
48166
|
-
_ctx.$slots.sidebarLeft ? (openBlock(), createElementBlock("aside", {
|
|
48167
|
-
key: 0,
|
|
48168
|
-
class: normalizeClass(`vuetiful-sidebar-left overflow-y-auto overflow-x-hidden ${__props.slotSidebarLeft}`)
|
|
48169
|
-
}, [
|
|
48170
|
-
renderSlot(_ctx.$slots, "sidebarLeft")
|
|
48171
|
-
], 2)) : createCommentVNode("", true),
|
|
48172
|
-
createElementVNode("div", {
|
|
48173
|
-
tabindex: "-1",
|
|
48174
|
-
class: normalizeClass(`vuetiful-page flex flex-1 flex-col overflow-x-hidden ${(_a = __props.regionPage) != null ? _a : ""}`)
|
|
48175
|
-
}, [
|
|
48176
|
-
_ctx.$slots.pageHeader ? (openBlock(), createElementBlock("header", {
|
|
48177
|
-
key: 0,
|
|
48178
|
-
class: normalizeClass(`vuetiful-page-header flex-none ${__props.slotPageHeader}`)
|
|
48179
|
-
}, [
|
|
48180
|
-
renderSlot(_ctx.$slots, "pageHeader")
|
|
48181
|
-
], 2)) : createCommentVNode("", true),
|
|
48182
|
-
createElementVNode("main", {
|
|
48183
|
-
class: normalizeClass(`vuetiful-page-content flex-auto ${__props.slotPageContent}`)
|
|
48184
|
-
}, [
|
|
48185
|
-
renderSlot(_ctx.$slots, "default")
|
|
48186
|
-
], 2),
|
|
48187
|
-
_ctx.$slots.pageFooter ? (openBlock(), createElementBlock("footer", {
|
|
48188
|
-
key: 1,
|
|
48189
|
-
class: normalizeClass(`vuetiful-page-footer flex-none ${__props.slotPageFooter}`)
|
|
48190
|
-
}, [
|
|
48191
|
-
renderSlot(_ctx.$slots, "pageFooter")
|
|
48192
|
-
], 2)) : createCommentVNode("", true)
|
|
48193
|
-
], 2),
|
|
48194
|
-
_ctx.$slots.sidebarRight ? (openBlock(), createElementBlock("aside", {
|
|
48195
|
-
key: 1,
|
|
48196
|
-
class: normalizeClass(`vuetiful-sidebar-right flex-none overflow-y-auto overflow-x-hidden ${__props.slotSidebarRight}`)
|
|
48197
|
-
}, [
|
|
48198
|
-
renderSlot(_ctx.$slots, "sidebarRight")
|
|
48199
|
-
], 2)) : createCommentVNode("", true)
|
|
48200
|
-
]),
|
|
48201
|
-
_ctx.$slots.fixedFooter ? (openBlock(), createElementBlock("footer", {
|
|
48202
|
-
key: 1,
|
|
48203
|
-
class: normalizeClass(`vuetiful-fixed-footer ${__props.slotFixedFooter}`)
|
|
48204
|
-
}, [
|
|
48205
|
-
renderSlot(_ctx.$slots, "fixedFooter")
|
|
48206
|
-
], 2)) : createCommentVNode("", true)
|
|
48207
|
-
]);
|
|
48208
|
-
};
|
|
48209
|
-
}
|
|
48210
|
-
});
|
|
48211
48209
|
var VPreview_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
48212
48210
|
const _withScopeId$1 = (n2) => (pushScopeId("data-v-0d055d3d"), n2 = n2(), popScopeId(), n2);
|
|
48213
|
-
const _hoisted_1$
|
|
48214
|
-
const _hoisted_2$
|
|
48211
|
+
const _hoisted_1$4 = { class: "vuetiful-previewer overflow-hidden shadow-2xl shadow-surface-500/10 rounded-container-token dark:shadow-black/10" };
|
|
48212
|
+
const _hoisted_2$3 = { class: "flex items-center gap-2" };
|
|
48215
48213
|
const _hoisted_3$2 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("svg", {
|
|
48216
48214
|
class: "icon",
|
|
48217
48215
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -48261,7 +48259,7 @@ const _hoisted_9 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createEl
|
|
|
48261
48259
|
}, [
|
|
48262
48260
|
/* @__PURE__ */ createElementVNode("path", { d: "M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM369 209L241 337c-9.4 9.4-24.6 9.4-33.9 0l-64-64c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l47 47L335 175c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9z" })
|
|
48263
48261
|
], -1));
|
|
48264
|
-
const _sfc_main$
|
|
48262
|
+
const _sfc_main$c = /* @__PURE__ */ defineComponent({
|
|
48265
48263
|
__name: "VPreview",
|
|
48266
48264
|
props: {
|
|
48267
48265
|
hideMobileToggle: {
|
|
@@ -48317,17 +48315,17 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
48317
48315
|
const swatches = ref(false);
|
|
48318
48316
|
const toggleSwatches = () => swatches.value = !swatches.value;
|
|
48319
48317
|
return (_ctx, _cache) => {
|
|
48320
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
48318
|
+
return openBlock(), createElementBlock("div", _hoisted_1$4, [
|
|
48321
48319
|
createElementVNode("header", {
|
|
48322
48320
|
class: normalizeClass(`vuetiful-previewer-header flex items-center justify-between gap-4 p-4 bg-surface-200-700-token ${__props.regionHeader}`)
|
|
48323
48321
|
}, [
|
|
48324
|
-
createElementVNode("div", _hoisted_2$
|
|
48325
|
-
createVNode(unref(_sfc_main$
|
|
48322
|
+
createElementVNode("div", _hoisted_2$3, [
|
|
48323
|
+
createVNode(unref(_sfc_main$k), {
|
|
48326
48324
|
modelValue: tabView.value,
|
|
48327
48325
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => tabView.value = $event)
|
|
48328
48326
|
}, {
|
|
48329
48327
|
default: withCtx(() => [
|
|
48330
|
-
createVNode(unref(_sfc_main$
|
|
48328
|
+
createVNode(unref(_sfc_main$j), {
|
|
48331
48329
|
"data-test": "radio-item-preview",
|
|
48332
48330
|
value: "preview",
|
|
48333
48331
|
title: "Preview"
|
|
@@ -48339,7 +48337,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
48339
48337
|
]),
|
|
48340
48338
|
_: 3
|
|
48341
48339
|
}),
|
|
48342
|
-
createVNode(unref(_sfc_main$
|
|
48340
|
+
createVNode(unref(_sfc_main$j), {
|
|
48343
48341
|
"data-test": "radio-item-code",
|
|
48344
48342
|
value: "code",
|
|
48345
48343
|
title: "Code"
|
|
@@ -48354,14 +48352,14 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
48354
48352
|
]),
|
|
48355
48353
|
_: 3
|
|
48356
48354
|
}, 8, ["modelValue"]),
|
|
48357
|
-
!__props.hideMobileToggle && tabView.value === "preview" ? (openBlock(), createBlock(unref(_sfc_main$
|
|
48355
|
+
!__props.hideMobileToggle && tabView.value === "preview" ? (openBlock(), createBlock(unref(_sfc_main$k), {
|
|
48358
48356
|
key: 0,
|
|
48359
48357
|
class: "hidden sm:!inline-flex",
|
|
48360
48358
|
modelValue: radioSize.value,
|
|
48361
48359
|
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => radioSize.value = $event)
|
|
48362
48360
|
}, {
|
|
48363
48361
|
default: withCtx(() => [
|
|
48364
|
-
createVNode(unref(_sfc_main$
|
|
48362
|
+
createVNode(unref(_sfc_main$j), {
|
|
48365
48363
|
"data-test": "radio-item-mobile",
|
|
48366
48364
|
value: "mobile"
|
|
48367
48365
|
}, {
|
|
@@ -48372,7 +48370,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
48372
48370
|
]),
|
|
48373
48371
|
_: 3
|
|
48374
48372
|
}),
|
|
48375
|
-
createVNode(unref(_sfc_main$
|
|
48373
|
+
createVNode(unref(_sfc_main$j), { value: "full" }, {
|
|
48376
48374
|
default: withCtx(() => [
|
|
48377
48375
|
renderSlot(_ctx.$slots, "desktop-item", {}, () => [
|
|
48378
48376
|
_hoisted_6$1
|
|
@@ -48384,7 +48382,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
48384
48382
|
_: 3
|
|
48385
48383
|
}, 8, ["modelValue"])) : createCommentVNode("", true)
|
|
48386
48384
|
]),
|
|
48387
|
-
!__props.hideSwatches ? (openBlock(), createBlock(unref(_sfc_main$
|
|
48385
|
+
!__props.hideSwatches ? (openBlock(), createBlock(unref(_sfc_main$p), {
|
|
48388
48386
|
key: 0,
|
|
48389
48387
|
"data-test": "swatch-button",
|
|
48390
48388
|
class: normalizeClass(`${swatches.value ? "variant-filled" : "variant-ghost"} px-4 py-1 border-token border-surface-400-500-token`),
|
|
@@ -48399,7 +48397,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
48399
48397
|
_: 3
|
|
48400
48398
|
}, 8, ["class"])) : createCommentVNode("", true)
|
|
48401
48399
|
], 2),
|
|
48402
|
-
swatches.value ? (openBlock(), createBlock(unref(_sfc_main$
|
|
48400
|
+
swatches.value ? (openBlock(), createBlock(unref(_sfc_main$k), {
|
|
48403
48401
|
key: 0,
|
|
48404
48402
|
"data-test": "swatches",
|
|
48405
48403
|
class: normalizeClass(`vuetiful-previewer-swatches variant-soft grid grid-cols-6 gap-2 !rounded-none p-4 sm:grid-cols-12`),
|
|
@@ -48410,7 +48408,7 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
48410
48408
|
}, {
|
|
48411
48409
|
default: withCtx(() => [
|
|
48412
48410
|
(openBlock(true), createElementBlock(Fragment, null, renderList(Object.entries(backgrounds), ([key, value], index2) => {
|
|
48413
|
-
return openBlock(), createBlock(unref(_sfc_main$
|
|
48411
|
+
return openBlock(), createBlock(unref(_sfc_main$j), {
|
|
48414
48412
|
value: key,
|
|
48415
48413
|
key: index2,
|
|
48416
48414
|
class: normalizeClass(`${value} flex aspect-square cursor-pointer items-center justify-center rounded ring-[1px] ring-surface-500/50`),
|
|
@@ -48463,7 +48461,203 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
48463
48461
|
};
|
|
48464
48462
|
}
|
|
48465
48463
|
});
|
|
48466
|
-
var VPreview = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
48464
|
+
var VPreview = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["__scopeId", "data-v-0d055d3d"]]);
|
|
48465
|
+
const _hoisted_1$3 = { class: "v-rail grid h-full w-[70px] grid-rows-[auto_1fr_auto] gap-0 overflow-y-auto sm:w-20" };
|
|
48466
|
+
const _sfc_main$b = /* @__PURE__ */ defineComponent({
|
|
48467
|
+
__name: "VRail",
|
|
48468
|
+
props: {
|
|
48469
|
+
active: {
|
|
48470
|
+
type: String,
|
|
48471
|
+
default: "bg-secondary-active-token"
|
|
48472
|
+
},
|
|
48473
|
+
hover: {
|
|
48474
|
+
type: String,
|
|
48475
|
+
default: "hover:bg-secondary-hover-token"
|
|
48476
|
+
},
|
|
48477
|
+
regionLead: {
|
|
48478
|
+
type: String,
|
|
48479
|
+
default: ""
|
|
48480
|
+
},
|
|
48481
|
+
regionDefault: {
|
|
48482
|
+
type: String,
|
|
48483
|
+
default: ""
|
|
48484
|
+
},
|
|
48485
|
+
regionTrail: {
|
|
48486
|
+
type: String,
|
|
48487
|
+
default: ""
|
|
48488
|
+
}
|
|
48489
|
+
},
|
|
48490
|
+
setup(__props) {
|
|
48491
|
+
const props = __props;
|
|
48492
|
+
provide("active", props.active);
|
|
48493
|
+
provide("hover", props.hover);
|
|
48494
|
+
return (_ctx, _cache) => {
|
|
48495
|
+
return openBlock(), createElementBlock("div", _hoisted_1$3, [
|
|
48496
|
+
createElementVNode("div", {
|
|
48497
|
+
class: normalizeClass(["v-bar-lead", __props.regionLead])
|
|
48498
|
+
}, [
|
|
48499
|
+
renderSlot(_ctx.$slots, "lead")
|
|
48500
|
+
], 2),
|
|
48501
|
+
createElementVNode("div", {
|
|
48502
|
+
class: normalizeClass(["v-bar-default", __props.regionDefault])
|
|
48503
|
+
}, [
|
|
48504
|
+
renderSlot(_ctx.$slots, "default")
|
|
48505
|
+
], 2),
|
|
48506
|
+
createElementVNode("div", {
|
|
48507
|
+
class: normalizeClass(["v-bar-trail", __props.regionTrail])
|
|
48508
|
+
}, [
|
|
48509
|
+
renderSlot(_ctx.$slots, "trail")
|
|
48510
|
+
], 2)
|
|
48511
|
+
]);
|
|
48512
|
+
};
|
|
48513
|
+
}
|
|
48514
|
+
});
|
|
48515
|
+
const _sfc_main$a = /* @__PURE__ */ defineComponent({
|
|
48516
|
+
__name: "VRailTile",
|
|
48517
|
+
props: {
|
|
48518
|
+
value: {
|
|
48519
|
+
type: String,
|
|
48520
|
+
default: ""
|
|
48521
|
+
},
|
|
48522
|
+
tag: {
|
|
48523
|
+
type: String,
|
|
48524
|
+
default: "button"
|
|
48525
|
+
},
|
|
48526
|
+
label: {
|
|
48527
|
+
type: String,
|
|
48528
|
+
default: ""
|
|
48529
|
+
},
|
|
48530
|
+
regionIcon: {
|
|
48531
|
+
type: String,
|
|
48532
|
+
default: ""
|
|
48533
|
+
},
|
|
48534
|
+
regionLabel: {
|
|
48535
|
+
type: String,
|
|
48536
|
+
default: ""
|
|
48537
|
+
}
|
|
48538
|
+
},
|
|
48539
|
+
emits: ["click"],
|
|
48540
|
+
setup(__props, { emit }) {
|
|
48541
|
+
const props = __props;
|
|
48542
|
+
const attrs = useAttrs();
|
|
48543
|
+
const { selectedRailTile: selectedRailTile2 } = useRail();
|
|
48544
|
+
const active = inject("active");
|
|
48545
|
+
const hover = inject("hover");
|
|
48546
|
+
const activate = () => {
|
|
48547
|
+
selectedRailTile2.value = props.value;
|
|
48548
|
+
emit("click");
|
|
48549
|
+
};
|
|
48550
|
+
const clickHandler = (event) => {
|
|
48551
|
+
event.preventDefault();
|
|
48552
|
+
activate();
|
|
48553
|
+
};
|
|
48554
|
+
const keydownHandler = (event) => {
|
|
48555
|
+
if (["Enter", " "].includes(event.key))
|
|
48556
|
+
event.preventDefault();
|
|
48557
|
+
if (event.key === "Enter")
|
|
48558
|
+
activate();
|
|
48559
|
+
};
|
|
48560
|
+
const keyupHandler = (event) => {
|
|
48561
|
+
if (event.key === " ") {
|
|
48562
|
+
event.preventDefault();
|
|
48563
|
+
activate();
|
|
48564
|
+
}
|
|
48565
|
+
};
|
|
48566
|
+
return (_ctx, _cache) => {
|
|
48567
|
+
return openBlock(), createBlock(resolveDynamicComponent(__props.tag), mergeProps({
|
|
48568
|
+
onClick: clickHandler,
|
|
48569
|
+
onKeydown: keydownHandler,
|
|
48570
|
+
onKeyup: keyupHandler
|
|
48571
|
+
}, unref(attrs), {
|
|
48572
|
+
class: `app-rail-tile unstyled grid aspect-square w-full cursor-pointer place-content-center place-items-center space-y-1.5 ${unref(hover)} ${unref(selectedRailTile2) === __props.value ? `${unref(active)}` : ""}`
|
|
48573
|
+
}), {
|
|
48574
|
+
default: withCtx(() => [
|
|
48575
|
+
_ctx.$slots.default ? (openBlock(), createElementBlock("div", {
|
|
48576
|
+
key: 0,
|
|
48577
|
+
class: normalizeClass(`app-rail-tile-icon ${__props.regionIcon}`)
|
|
48578
|
+
}, [
|
|
48579
|
+
renderSlot(_ctx.$slots, "default")
|
|
48580
|
+
], 2)) : createCommentVNode("", true),
|
|
48581
|
+
__props.label ? (openBlock(), createElementBlock("div", {
|
|
48582
|
+
key: 1,
|
|
48583
|
+
class: normalizeClass(`app-rail-tile-label text-center text-xs font-bold ${__props.regionLabel}`)
|
|
48584
|
+
}, toDisplayString(__props.label), 3)) : createCommentVNode("", true)
|
|
48585
|
+
]),
|
|
48586
|
+
_: 3
|
|
48587
|
+
}, 16, ["class"]);
|
|
48588
|
+
};
|
|
48589
|
+
}
|
|
48590
|
+
});
|
|
48591
|
+
const _hoisted_1$2 = { class: "vuetiful-shell flex h-full w-full flex-col overflow-hidden" };
|
|
48592
|
+
const _hoisted_2$2 = { class: "vuetiful-shell-content flex h-full w-full flex-auto overflow-hidden" };
|
|
48593
|
+
const _sfc_main$9 = defineComponent({
|
|
48594
|
+
__name: "VShell",
|
|
48595
|
+
props: {
|
|
48596
|
+
regionPage: { type: String, default: "" },
|
|
48597
|
+
slotFixedHeader: { type: String, default: "z-10" },
|
|
48598
|
+
slotSidebarLeft: { type: String, default: "w-auto" },
|
|
48599
|
+
slotSidebarRight: { type: String, default: "w-auto" },
|
|
48600
|
+
slotPageHeader: { type: String, default: "" },
|
|
48601
|
+
slotPageContent: { type: String, default: "" },
|
|
48602
|
+
slotPageFooter: { type: String, default: "" },
|
|
48603
|
+
slotFixedFooter: { type: String, default: "" }
|
|
48604
|
+
},
|
|
48605
|
+
setup(__props) {
|
|
48606
|
+
return (_ctx, _cache) => {
|
|
48607
|
+
var _a;
|
|
48608
|
+
return openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
48609
|
+
_ctx.$slots.fixedHeader ? (openBlock(), createElementBlock("header", {
|
|
48610
|
+
key: 0,
|
|
48611
|
+
class: normalizeClass(`vuetiful-fixed-header ${__props.slotFixedHeader}`)
|
|
48612
|
+
}, [
|
|
48613
|
+
renderSlot(_ctx.$slots, "fixedHeader")
|
|
48614
|
+
], 2)) : createCommentVNode("", true),
|
|
48615
|
+
createElementVNode("div", _hoisted_2$2, [
|
|
48616
|
+
_ctx.$slots.sidebarLeft ? (openBlock(), createElementBlock("aside", {
|
|
48617
|
+
key: 0,
|
|
48618
|
+
class: normalizeClass(`vuetiful-sidebar-left overflow-y-auto overflow-x-hidden ${__props.slotSidebarLeft}`)
|
|
48619
|
+
}, [
|
|
48620
|
+
renderSlot(_ctx.$slots, "sidebarLeft")
|
|
48621
|
+
], 2)) : createCommentVNode("", true),
|
|
48622
|
+
createElementVNode("div", {
|
|
48623
|
+
tabindex: "-1",
|
|
48624
|
+
class: normalizeClass(`vuetiful-page flex flex-1 flex-col overflow-x-hidden ${(_a = __props.regionPage) != null ? _a : ""}`)
|
|
48625
|
+
}, [
|
|
48626
|
+
_ctx.$slots.pageHeader ? (openBlock(), createElementBlock("header", {
|
|
48627
|
+
key: 0,
|
|
48628
|
+
class: normalizeClass(`vuetiful-page-header flex-none ${__props.slotPageHeader}`)
|
|
48629
|
+
}, [
|
|
48630
|
+
renderSlot(_ctx.$slots, "pageHeader")
|
|
48631
|
+
], 2)) : createCommentVNode("", true),
|
|
48632
|
+
createElementVNode("main", {
|
|
48633
|
+
class: normalizeClass(`vuetiful-page-content flex-auto ${__props.slotPageContent}`)
|
|
48634
|
+
}, [
|
|
48635
|
+
renderSlot(_ctx.$slots, "default")
|
|
48636
|
+
], 2),
|
|
48637
|
+
_ctx.$slots.pageFooter ? (openBlock(), createElementBlock("footer", {
|
|
48638
|
+
key: 1,
|
|
48639
|
+
class: normalizeClass(`vuetiful-page-footer flex-none ${__props.slotPageFooter}`)
|
|
48640
|
+
}, [
|
|
48641
|
+
renderSlot(_ctx.$slots, "pageFooter")
|
|
48642
|
+
], 2)) : createCommentVNode("", true)
|
|
48643
|
+
], 2),
|
|
48644
|
+
_ctx.$slots.sidebarRight ? (openBlock(), createElementBlock("aside", {
|
|
48645
|
+
key: 1,
|
|
48646
|
+
class: normalizeClass(`vuetiful-sidebar-right flex-none overflow-y-auto overflow-x-hidden ${__props.slotSidebarRight}`)
|
|
48647
|
+
}, [
|
|
48648
|
+
renderSlot(_ctx.$slots, "sidebarRight")
|
|
48649
|
+
], 2)) : createCommentVNode("", true)
|
|
48650
|
+
]),
|
|
48651
|
+
_ctx.$slots.fixedFooter ? (openBlock(), createElementBlock("footer", {
|
|
48652
|
+
key: 1,
|
|
48653
|
+
class: normalizeClass(`vuetiful-fixed-footer ${__props.slotFixedFooter}`)
|
|
48654
|
+
}, [
|
|
48655
|
+
renderSlot(_ctx.$slots, "fixedFooter")
|
|
48656
|
+
], 2)) : createCommentVNode("", true)
|
|
48657
|
+
]);
|
|
48658
|
+
};
|
|
48659
|
+
}
|
|
48660
|
+
});
|
|
48467
48661
|
var VListboxButton_vue_vue_type_style_index_0_scoped_true_lang = "";
|
|
48468
48662
|
const _withScopeId = (n2) => (pushScopeId("data-v-85546624"), n2 = n2(), popScopeId(), n2);
|
|
48469
48663
|
const _hoisted_1$1 = { key: 0 };
|
|
@@ -48481,7 +48675,7 @@ const _hoisted_3$1 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
|
|
|
48481
48675
|
}, [
|
|
48482
48676
|
/* @__PURE__ */ createElementVNode("path", { d: "M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z" })
|
|
48483
48677
|
], -1));
|
|
48484
|
-
const _sfc_main$
|
|
48678
|
+
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
48485
48679
|
__name: "VListboxButton",
|
|
48486
48680
|
props: {
|
|
48487
48681
|
as: {
|
|
@@ -48515,8 +48709,8 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
|
48515
48709
|
};
|
|
48516
48710
|
}
|
|
48517
48711
|
});
|
|
48518
|
-
var VListboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$
|
|
48519
|
-
const _sfc_main$
|
|
48712
|
+
var VListboxButton = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["__scopeId", "data-v-85546624"]]);
|
|
48713
|
+
const _sfc_main$7 = /* @__PURE__ */ defineComponent({
|
|
48520
48714
|
__name: "VListboxItems",
|
|
48521
48715
|
props: {
|
|
48522
48716
|
as: {
|
|
@@ -48551,7 +48745,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
48551
48745
|
};
|
|
48552
48746
|
}
|
|
48553
48747
|
});
|
|
48554
|
-
const _sfc_main$
|
|
48748
|
+
const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
48555
48749
|
__name: "VListboxLabel",
|
|
48556
48750
|
props: {
|
|
48557
48751
|
as: {
|
|
@@ -48570,7 +48764,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
48570
48764
|
};
|
|
48571
48765
|
}
|
|
48572
48766
|
});
|
|
48573
|
-
const _sfc_main$
|
|
48767
|
+
const _sfc_main$5 = /* @__PURE__ */ defineComponent({
|
|
48574
48768
|
__name: "VListbox",
|
|
48575
48769
|
props: {
|
|
48576
48770
|
by: {
|
|
@@ -48663,7 +48857,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
48663
48857
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => parentModelValue.value = $event)
|
|
48664
48858
|
}, {
|
|
48665
48859
|
default: withCtx(() => [
|
|
48666
|
-
__props.labelText ? (openBlock(), createBlock(_sfc_main$
|
|
48860
|
+
__props.labelText ? (openBlock(), createBlock(_sfc_main$6, {
|
|
48667
48861
|
key: 0,
|
|
48668
48862
|
class: normalizeClass(__props.labelClasses)
|
|
48669
48863
|
}, {
|
|
@@ -48672,12 +48866,15 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
48672
48866
|
]),
|
|
48673
48867
|
_: 1
|
|
48674
48868
|
}, 8, ["class"])) : createCommentVNode("", true),
|
|
48675
|
-
createVNode(VListboxButton, {
|
|
48869
|
+
createVNode(VListboxButton, {
|
|
48870
|
+
"data-test": "v-listbox-button",
|
|
48871
|
+
class: normalizeClass(`${__props.background} ${__props.text}`)
|
|
48872
|
+
}, {
|
|
48676
48873
|
default: withCtx(() => [
|
|
48677
48874
|
createTextVNode(toDisplayString(unref(showText)), 1)
|
|
48678
48875
|
]),
|
|
48679
48876
|
_: 1
|
|
48680
|
-
}),
|
|
48877
|
+
}, 8, ["class"]),
|
|
48681
48878
|
createVNode(Transition, {
|
|
48682
48879
|
"enter-active-class": "transition duration-150 ease-in-out",
|
|
48683
48880
|
"enter-from-class": "opacity-0",
|
|
@@ -48687,7 +48884,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
48687
48884
|
"leave-to-class": "opacity-0"
|
|
48688
48885
|
}, {
|
|
48689
48886
|
default: withCtx(() => [
|
|
48690
|
-
createVNode(_sfc_main$
|
|
48887
|
+
createVNode(_sfc_main$7, { class: "absolute mt-1 min-w-full" }, {
|
|
48691
48888
|
default: withCtx(() => [
|
|
48692
48889
|
renderSlot(_ctx.$slots, "default")
|
|
48693
48890
|
]),
|
|
@@ -48702,7 +48899,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
48702
48899
|
};
|
|
48703
48900
|
}
|
|
48704
48901
|
});
|
|
48705
|
-
const _sfc_main$
|
|
48902
|
+
const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
48706
48903
|
__name: "VListboxItem",
|
|
48707
48904
|
props: {
|
|
48708
48905
|
value: {
|
|
@@ -48728,40 +48925,180 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
48728
48925
|
};
|
|
48729
48926
|
}
|
|
48730
48927
|
});
|
|
48928
|
+
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
48929
|
+
__name: "VTab",
|
|
48930
|
+
props: {
|
|
48931
|
+
disabled: {
|
|
48932
|
+
type: Boolean,
|
|
48933
|
+
default: false
|
|
48934
|
+
}
|
|
48935
|
+
},
|
|
48936
|
+
setup(__props) {
|
|
48937
|
+
const activeClass = inject("active");
|
|
48938
|
+
const hoverClass = inject("hover");
|
|
48939
|
+
const vertical = inject("vertical");
|
|
48940
|
+
const classTab = inject("classTab");
|
|
48941
|
+
const hideSeparator = inject("hideSeparator");
|
|
48942
|
+
const tabClass = computed(() => {
|
|
48943
|
+
return classTab ? classTab : "w-full px-4 py-2";
|
|
48944
|
+
});
|
|
48945
|
+
return (_ctx, _cache) => {
|
|
48946
|
+
return openBlock(), createBlock(unref(ye), {
|
|
48947
|
+
disabled: __props.disabled,
|
|
48948
|
+
class: normalizeClass(`flex ${unref(vertical) ? "flex-row justify-between" : "flex-col"}`)
|
|
48949
|
+
}, {
|
|
48950
|
+
default: withCtx(({ selected }) => [
|
|
48951
|
+
createElementVNode("div", {
|
|
48952
|
+
"data-test": "slot-container",
|
|
48953
|
+
class: normalizeClass(`text-base rounded-token ${selected ? unref(activeClass) : unref(hoverClass)} ${unref(tabClass)}`)
|
|
48954
|
+
}, [
|
|
48955
|
+
renderSlot(_ctx.$slots, "default")
|
|
48956
|
+
], 2),
|
|
48957
|
+
withDirectives(createElementVNode("div", {
|
|
48958
|
+
class: normalizeClass(`z-10 border-surface-900-50-token ${unref(vertical) ? "mr-[-2px] h-full border-r-2" : "mb-[-2px] border-b-2"}`)
|
|
48959
|
+
}, null, 2), [
|
|
48960
|
+
[vShow, selected && !unref(hideSeparator)]
|
|
48961
|
+
])
|
|
48962
|
+
]),
|
|
48963
|
+
_: 3
|
|
48964
|
+
}, 8, ["disabled", "class"]);
|
|
48965
|
+
};
|
|
48966
|
+
}
|
|
48967
|
+
});
|
|
48968
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
48969
|
+
__name: "VTabPanel",
|
|
48970
|
+
setup(__props) {
|
|
48971
|
+
return (_ctx, _cache) => {
|
|
48972
|
+
return openBlock(), createBlock(unref(ge), null, {
|
|
48973
|
+
default: withCtx(() => [
|
|
48974
|
+
renderSlot(_ctx.$slots, "default")
|
|
48975
|
+
]),
|
|
48976
|
+
_: 3
|
|
48977
|
+
});
|
|
48978
|
+
};
|
|
48979
|
+
}
|
|
48980
|
+
});
|
|
48981
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
48982
|
+
__name: "VTabs",
|
|
48983
|
+
props: {
|
|
48984
|
+
hideSeparator: {
|
|
48985
|
+
type: Boolean,
|
|
48986
|
+
default: false
|
|
48987
|
+
},
|
|
48988
|
+
vertical: {
|
|
48989
|
+
type: Boolean,
|
|
48990
|
+
default: false
|
|
48991
|
+
},
|
|
48992
|
+
active: {
|
|
48993
|
+
type: String,
|
|
48994
|
+
default: ""
|
|
48995
|
+
},
|
|
48996
|
+
hover: {
|
|
48997
|
+
type: String,
|
|
48998
|
+
default: "hover:variant-ghost"
|
|
48999
|
+
},
|
|
49000
|
+
classPanels: {
|
|
49001
|
+
type: String,
|
|
49002
|
+
default: ""
|
|
49003
|
+
},
|
|
49004
|
+
classTabs: {
|
|
49005
|
+
type: String,
|
|
49006
|
+
default: ""
|
|
49007
|
+
},
|
|
49008
|
+
classTab: {
|
|
49009
|
+
type: String,
|
|
49010
|
+
default: ""
|
|
49011
|
+
},
|
|
49012
|
+
classSeparator: {
|
|
49013
|
+
type: String,
|
|
49014
|
+
default: "border border-surface-400-500-token"
|
|
49015
|
+
},
|
|
49016
|
+
defaultIndex: {
|
|
49017
|
+
type: Number,
|
|
49018
|
+
default: 0
|
|
49019
|
+
}
|
|
49020
|
+
},
|
|
49021
|
+
setup(__props) {
|
|
49022
|
+
const props = __props;
|
|
49023
|
+
provide("active", props.active);
|
|
49024
|
+
provide("hover", props.hover);
|
|
49025
|
+
provide("vertical", props.vertical);
|
|
49026
|
+
provide("classTab", props.classTab);
|
|
49027
|
+
provide("hideSeparator", props.hideSeparator);
|
|
49028
|
+
return (_ctx, _cache) => {
|
|
49029
|
+
return openBlock(), createBlock(unref(xe), {
|
|
49030
|
+
as: "div",
|
|
49031
|
+
vertical: __props.vertical,
|
|
49032
|
+
defaultIndex: __props.defaultIndex,
|
|
49033
|
+
class: normalizeClass(`${__props.vertical ? "flex" : ""}`)
|
|
49034
|
+
}, {
|
|
49035
|
+
default: withCtx(() => [
|
|
49036
|
+
createVNode(unref(Ie), {
|
|
49037
|
+
"data-test": "vuetiful-tab-list",
|
|
49038
|
+
class: normalizeClass(`vuetiful-tab-list flex ${__props.vertical ? "flex-col" : ""} ${__props.vertical ? "!rounded-br-none !rounded-tr-none" : "!rounded-bl-none !rounded-br-none"} rounded-container-token ${__props.classTabs}`)
|
|
49039
|
+
}, {
|
|
49040
|
+
default: withCtx(() => [
|
|
49041
|
+
renderSlot(_ctx.$slots, "tabs")
|
|
49042
|
+
]),
|
|
49043
|
+
_: 3
|
|
49044
|
+
}, 8, ["class"]),
|
|
49045
|
+
!__props.hideSeparator ? (openBlock(), createElementBlock("div", {
|
|
49046
|
+
key: 0,
|
|
49047
|
+
"data-test": "vuetiful-tab-separator",
|
|
49048
|
+
class: normalizeClass(`${__props.classSeparator}`)
|
|
49049
|
+
}, null, 2)) : createCommentVNode("", true),
|
|
49050
|
+
createVNode(unref(Se), {
|
|
49051
|
+
"data-test": "vuetiful-tab-panels",
|
|
49052
|
+
class: normalizeClass(`vuetiful-tab-panels ${__props.vertical ? "!rounded-bl-none !rounded-tl-none" : "!rounded-tl-none !rounded-tr-none"} rounded-container-token ${__props.classPanels}`)
|
|
49053
|
+
}, {
|
|
49054
|
+
default: withCtx(() => [
|
|
49055
|
+
renderSlot(_ctx.$slots, "default")
|
|
49056
|
+
]),
|
|
49057
|
+
_: 3
|
|
49058
|
+
}, 8, ["class"])
|
|
49059
|
+
]),
|
|
49060
|
+
_: 3
|
|
49061
|
+
}, 8, ["vertical", "defaultIndex", "class"]);
|
|
49062
|
+
};
|
|
49063
|
+
}
|
|
49064
|
+
});
|
|
48731
49065
|
var components = /* @__PURE__ */ Object.freeze({
|
|
48732
49066
|
__proto__: null,
|
|
48733
49067
|
[Symbol.toStringTag]: "Module",
|
|
48734
|
-
VAvatar: _sfc_main$
|
|
48735
|
-
VButton: _sfc_main$
|
|
49068
|
+
VAvatar: _sfc_main$r,
|
|
49069
|
+
VButton: _sfc_main$p,
|
|
48736
49070
|
VBadge,
|
|
48737
49071
|
VChip,
|
|
48738
|
-
VCodeBlock: _sfc_main$
|
|
49072
|
+
VCodeBlock: _sfc_main$n,
|
|
48739
49073
|
VLightSwitch,
|
|
48740
|
-
VRadioGroup: _sfc_main$
|
|
48741
|
-
VRadioItem: _sfc_main$
|
|
48742
|
-
VRadioLabel: _sfc_main$
|
|
48743
|
-
VRadioDescription: _sfc_main$
|
|
48744
|
-
VSwitchGroup: _sfc_main$
|
|
48745
|
-
VSwitchLabel: _sfc_main$
|
|
48746
|
-
VSwitchDescription: _sfc_main$
|
|
48747
|
-
VSwitch: _sfc_main$
|
|
48748
|
-
|
|
48749
|
-
|
|
48750
|
-
|
|
48751
|
-
|
|
49074
|
+
VRadioGroup: _sfc_main$k,
|
|
49075
|
+
VRadioItem: _sfc_main$j,
|
|
49076
|
+
VRadioLabel: _sfc_main$i,
|
|
49077
|
+
VRadioDescription: _sfc_main$l,
|
|
49078
|
+
VSwitchGroup: _sfc_main$f,
|
|
49079
|
+
VSwitchLabel: _sfc_main$e,
|
|
49080
|
+
VSwitchDescription: _sfc_main$g,
|
|
49081
|
+
VSwitch: _sfc_main$h,
|
|
49082
|
+
VDrawer: _sfc_main$d,
|
|
49083
|
+
VListbox: _sfc_main$5,
|
|
49084
|
+
VListboxButton,
|
|
49085
|
+
VListboxItem: _sfc_main$4,
|
|
49086
|
+
VListboxItems: _sfc_main$7,
|
|
49087
|
+
VListboxLabel: _sfc_main$6,
|
|
48752
49088
|
VPreview,
|
|
48753
|
-
|
|
48754
|
-
|
|
48755
|
-
|
|
48756
|
-
|
|
48757
|
-
|
|
49089
|
+
VRail: _sfc_main$b,
|
|
49090
|
+
VRailTile: _sfc_main$a,
|
|
49091
|
+
VShell: _sfc_main$9,
|
|
49092
|
+
VTab: _sfc_main$3,
|
|
49093
|
+
VTabPanel: _sfc_main$2,
|
|
49094
|
+
VTabs: _sfc_main$1
|
|
48758
49095
|
});
|
|
48759
49096
|
var main = "";
|
|
48760
49097
|
var tailwind = "";
|
|
48761
49098
|
const _sfc_main = defineComponent({
|
|
48762
49099
|
components: {
|
|
48763
49100
|
VLightSwitch,
|
|
48764
|
-
VButton: _sfc_main$
|
|
49101
|
+
VButton: _sfc_main$p
|
|
48765
49102
|
},
|
|
48766
49103
|
props: {
|
|
48767
49104
|
bgLight: {
|
|
@@ -49001,4 +49338,4 @@ function install(app) {
|
|
|
49001
49338
|
}
|
|
49002
49339
|
}
|
|
49003
49340
|
var index = { install };
|
|
49004
|
-
export { themeSwitcher as ThemeSwitcher, _sfc_main$
|
|
49341
|
+
export { themeSwitcher as ThemeSwitcher, _sfc_main$r as VAvatar, VBadge, _sfc_main$p as VButton, VChip, _sfc_main$n as VCodeBlock, _sfc_main$d as VDrawer, VLightSwitch, _sfc_main$5 as VListbox, VListboxButton, _sfc_main$4 as VListboxItem, _sfc_main$7 as VListboxItems, _sfc_main$6 as VListboxLabel, VPreview, _sfc_main$l as VRadioDescription, _sfc_main$k as VRadioGroup, _sfc_main$j as VRadioItem, _sfc_main$i as VRadioLabel, _sfc_main$b as VRail, _sfc_main$a as VRailTile, _sfc_main$9 as VShell, _sfc_main$h as VSwitch, _sfc_main$g as VSwitchDescription, _sfc_main$f as VSwitchGroup, _sfc_main$e as VSwitchLabel, _sfc_main$3 as VTab, _sfc_main$2 as VTabPanel, _sfc_main$1 as VTabs, index as default, useDarkMode, useDrawer, useHighlight, useRail, useTheme, clipboard as vClipboard };
|