@roku-ui/vue 0.30.0 → 0.31.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 +74 -15
- package/dist/components/Avatar.vue.d.ts +2 -1
- package/dist/components/Icon.vue.d.ts +37 -0
- package/dist/components/Step.vue.d.ts +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/index.js +338 -1044
- package/dist/index.umd.cjs +4 -4
- package/dist/shared/theme.d.ts +10 -2
- package/dist/style.css +2 -0
- package/dist/test/demo/IconDemo.vue.d.ts +2 -0
- package/dist/test/demo/WaterfallDemo.vue.d.ts +1 -1
- package/dist/test/demoPages.d.ts +9 -5
- package/dist/types/index.d.ts +2 -1
- package/dist/utils/classGenerator.d.ts +3 -1
- package/package.json +17 -16
- package/dist/index.css +0 -2
package/dist/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { Fragment, Teleport, Transition, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, customRef, defineComponent, getCurrentInstance, getCurrentScope, h, hasInjectionContext, inject, isRef, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, onScopeDispose, onUnmounted, onUpdated, openBlock, provide, reactive,
|
|
2
|
-
|
|
1
|
+
import { Fragment, Teleport, Transition, TransitionGroup, computed, createBlock, createCommentVNode, createElementBlock, createElementVNode, createSlots, createTextVNode, createVNode, customRef, defineComponent, getCurrentInstance, getCurrentScope, h, hasInjectionContext, inject, isRef, mergeModels, mergeProps, nextTick, normalizeClass, normalizeStyle, onMounted, onScopeDispose, onUnmounted, onUpdated, openBlock, provide, reactive, ref, renderList, renderSlot, resolveDynamicComponent, shallowRef, toDisplayString, toValue, unref, useAttrs, useModel, useSlots, vModelCheckbox, vShow, watch, watchEffect, withCtx, withDirectives, withKeys, withModifiers } from "vue";
|
|
2
|
+
import { isClient, onClickOutside, onKeyStroke, tryOnMounted, unrefElement, useDebounce, useDropZone, useElementBounding, useElementHover, useEventListener, useFileDialog, useLocalStorage, useMagicKeys, useMediaQuery, useMouse, useMutationObserver, useRafFn, useResizeObserver, useScroll, useToggle } from "@vueuse/core";
|
|
3
|
+
var _hoisted_1$29 = {
|
|
3
4
|
key: 1,
|
|
4
5
|
class: "flex flex-1 overflow-hidden"
|
|
5
6
|
}, _hoisted_2$17 = { class: "flex flex-1 flex-col overflow-hidden" }, _hoisted_3$14 = { class: "flex flex-1 overflow-hidden" }, _hoisted_4$10 = { class: "flex-1 overflow-y-auto" }, _hoisted_5$7 = { class: "flex flex-1 flex-col overflow-hidden" }, _hoisted_6$5 = { class: "flex-1 overflow-y-auto" }, _hoisted_7$2 = { class: "flex-1 overflow-y-auto" }, _hoisted_8$1 = {
|
|
@@ -44,7 +45,7 @@ var _hoisted_1$28 = {
|
|
|
44
45
|
class: "flex shrink-0 items-center",
|
|
45
46
|
style: normalizeStyle(y.value)
|
|
46
47
|
}, [renderSlot(t.$slots, "header")], 4)) : createCommentVNode("", !0),
|
|
47
|
-
a.value && n.headerSpansNav && !n.headerSpansAside ? (openBlock(), createElementBlock("div", _hoisted_1$
|
|
48
|
+
a.value && n.headerSpansNav && !n.headerSpansAside ? (openBlock(), createElementBlock("div", _hoisted_1$29, [createElementVNode("div", _hoisted_2$17, [
|
|
48
49
|
createElementVNode("header", {
|
|
49
50
|
class: "flex shrink-0 items-center",
|
|
50
51
|
style: normalizeStyle(y.value)
|
|
@@ -458,14 +459,14 @@ var rgb_num_old = /* @__PURE__ */ RegExp(`^rgba?\\(\\s*${num$1}${c}${num$1}${c}$
|
|
|
458
459
|
}, _prepare_default = (t, n) => t === void 0 ? void 0 : typeof t == "object" ? t.mode === void 0 ? n ? {
|
|
459
460
|
...t,
|
|
460
461
|
mode: n
|
|
461
|
-
} : void 0 : t : parse_default(t), converter_default = (t = "rgb") => (n) => (n = _prepare_default(n, t)) === void 0 ? void 0 : n.mode === t ? n : converters[n.mode][t] ? converters[n.mode][t](n) : t === "rgb" ? converters[n.mode].rgb(n) : converters.rgb[t](converters[n.mode].rgb(n)), converters = {}, modes = {}, parsers = [], colorProfiles = {}, identity
|
|
462
|
+
} : void 0 : t : parse_default(t), converter_default = (t = "rgb") => (n) => (n = _prepare_default(n, t)) === void 0 ? void 0 : n.mode === t ? n : converters[n.mode][t] ? converters[n.mode][t](n) : t === "rgb" ? converters[n.mode].rgb(n) : converters.rgb[t](converters[n.mode].rgb(n)), converters = {}, modes = {}, parsers = [], colorProfiles = {}, identity = (t) => t, useMode = (t) => (converters[t.mode] = {
|
|
462
463
|
...converters[t.mode],
|
|
463
464
|
...t.toMode
|
|
464
465
|
}, Object.keys(t.fromMode || {}).forEach((n) => {
|
|
465
466
|
converters[n] || (converters[n] = {}), converters[n][t.mode] = t.fromMode[n];
|
|
466
467
|
}), t.ranges ||= {}, t.difference ||= {}, t.channels.forEach((n) => {
|
|
467
468
|
if (t.ranges[n] === void 0 && (t.ranges[n] = [0, 1]), !t.interpolate[n]) throw Error(`Missing interpolator for: ${n}`);
|
|
468
|
-
typeof t.interpolate[n] == "function" && (t.interpolate[n] = { use: t.interpolate[n] }), t.interpolate[n].fixup || (t.interpolate[n].fixup = identity
|
|
469
|
+
typeof t.interpolate[n] == "function" && (t.interpolate[n] = { use: t.interpolate[n] }), t.interpolate[n].fixup || (t.interpolate[n].fixup = identity);
|
|
469
470
|
}), modes[t.mode] = t, (t.parse || []).forEach((n) => {
|
|
470
471
|
useParser(n, t.mode);
|
|
471
472
|
}), converter_default(t.mode)), getMode = (t) => modes[t], useParser = (t, n) => {
|
|
@@ -1914,8 +1915,8 @@ function find_gamut_intersection(t, n, i, a, o, s = null) {
|
|
|
1914
1915
|
{
|
|
1915
1916
|
let s = i - o, u = a, d = .3963377774 * t + .2158037573 * n, m = -.1055613458 * t - .0638541728 * n, g = -.0894841775 * t - 1.291485548 * n, _ = s + u * d, v = s + u * m, y = s + u * g;
|
|
1916
1917
|
{
|
|
1917
|
-
let t = o * (1 - l) + l * i, n = l * a, s = t + n * d, u = t + n * m, b = t + n * g, x = s * s * s, S = u * u * u, C = b * b * b, w = 3 * _ * s * s, T = 3 * v * u * u, E = 3 * y * b * b, D = 6 * _ * _ * s, O = 6 * v * v * u, A = 6 * y * y * b, j = 4.0767416621 * x - 3.3077115913 * S + .2309699292 * C - 1, N = 4.0767416621 * w - 3.3077115913 * T + .2309699292 * E, P = 4.0767416621 * D - 3.3077115913 * O + .2309699292 * A, F = N / (N * N - .5 * j * P), L = -j * F,
|
|
1918
|
-
L = F >= 0 ? L : 1e6,
|
|
1918
|
+
let t = o * (1 - l) + l * i, n = l * a, s = t + n * d, u = t + n * m, b = t + n * g, x = s * s * s, S = u * u * u, C = b * b * b, w = 3 * _ * s * s, T = 3 * v * u * u, E = 3 * y * b * b, D = 6 * _ * _ * s, O = 6 * v * v * u, A = 6 * y * y * b, j = 4.0767416621 * x - 3.3077115913 * S + .2309699292 * C - 1, N = 4.0767416621 * w - 3.3077115913 * T + .2309699292 * E, P = 4.0767416621 * D - 3.3077115913 * O + .2309699292 * A, F = N / (N * N - .5 * j * P), L = -j * F, Qu = -1.2684380046 * x + 2.6097574011 * S - .3413193965 * C - 1, R = -1.2684380046 * w + 2.6097574011 * T - .3413193965 * E, z = -1.2684380046 * D + 2.6097574011 * O - .3413193965 * A, $u = R / (R * R - .5 * Qu * z), B = -Qu * $u, H = -.0041960863 * x - .7034186147 * S + 1.707614701 * C - 1, ed = -.0041960863 * w - .7034186147 * T + 1.707614701 * E, U = -.0041960863 * D - .7034186147 * O + 1.707614701 * A, W = ed / (ed * ed - .5 * H * U), K = -H * W;
|
|
1919
|
+
L = F >= 0 ? L : 1e6, B = $u >= 0 ? B : 1e6, K = W >= 0 ? K : 1e6, l += Math.min(L, Math.min(B, K));
|
|
1919
1920
|
}
|
|
1920
1921
|
}
|
|
1921
1922
|
}
|
|
@@ -2356,7 +2357,7 @@ var transfer$1 = (t) => Math.cbrt(t) - bias_cbrt, convertRgbToXyb_default = (t)
|
|
|
2356
2357
|
}
|
|
2357
2358
|
}, r = (t, n) => Math.round(t * (n = 10 ** n)) / n;
|
|
2358
2359
|
((t = 4) => (n) => typeof n == "number" ? r(n, t) : n)(2);
|
|
2359
|
-
var clamp
|
|
2360
|
+
var clamp = (t) => Math.max(0, Math.min(1, t || 0)), fixup = (t) => Math.round(clamp(t) * 255), rgb$1 = converter_default("rgb");
|
|
2360
2361
|
converter_default("hsl");
|
|
2361
2362
|
const serializeHex = (t) => {
|
|
2362
2363
|
if (t === void 0) return;
|
|
@@ -2710,22 +2711,28 @@ function resolveTailwindPalette(t) {
|
|
|
2710
2711
|
};
|
|
2711
2712
|
}
|
|
2712
2713
|
function useRounded(t) {
|
|
2713
|
-
return computed(() =>
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2714
|
+
return computed(() => {
|
|
2715
|
+
let n = getRoundedStyle(t.rounded), i = getCornerShapeStyle(t.cornerShape), a = i !== "";
|
|
2716
|
+
return {
|
|
2717
|
+
style: a ? `${n} ${i}`.trim() : n,
|
|
2718
|
+
class: a ? "rounded-[--r-rounded] [corner-shape:var(--r-corner-shape)]" : "rounded-[--r-rounded]"
|
|
2719
|
+
};
|
|
2720
|
+
});
|
|
2717
2721
|
}
|
|
2718
2722
|
function getRoundedStyle(t) {
|
|
2719
2723
|
let n = /^-?(?:\d+(?:\.\d+)?|\.\d+)(?:px|em|rem|vh|vw|in|cm|mm|pt|pc|%)?$/;
|
|
2720
2724
|
switch (t) {
|
|
2721
|
-
case "none": return "--r-rounded: 0";
|
|
2722
|
-
case "sm": return "--r-rounded: 0.125rem";
|
|
2723
|
-
case "md": return "--r-rounded: 0.25rem";
|
|
2724
|
-
case "lg": return "--r-rounded: 0.5rem";
|
|
2725
|
-
case "full": return "--r-rounded: 9999px";
|
|
2726
|
-
default: return typeof t == "string" && n.test(t) ? `--r-rounded: ${t};` : typeof t == "number" || !Number.isNaN(Number(t)) ? `--r-rounded: ${t}rem;` : "
|
|
2725
|
+
case "none": return "--r-rounded: 0;";
|
|
2726
|
+
case "sm": return "--r-rounded: 0.125rem;";
|
|
2727
|
+
case "md": return "--r-rounded: 0.25rem;";
|
|
2728
|
+
case "lg": return "--r-rounded: 0.5rem;";
|
|
2729
|
+
case "full": return "--r-rounded: 9999px;";
|
|
2730
|
+
default: return typeof t == "string" && n.test(t) ? `--r-rounded: ${t};` : typeof t == "number" || !Number.isNaN(Number(t)) ? `--r-rounded: ${typeof t == "number" ? t : Number(t)}rem;` : "--r-rounded: 0.25rem;";
|
|
2727
2731
|
}
|
|
2728
2732
|
}
|
|
2733
|
+
function getCornerShapeStyle(t) {
|
|
2734
|
+
return t == null || t === "" ? "" : `--r-corner-shape: ${t};`;
|
|
2735
|
+
}
|
|
2729
2736
|
var notifications = shallowRef([]);
|
|
2730
2737
|
function useNotifications(t) {
|
|
2731
2738
|
return computed({
|
|
@@ -3593,6 +3600,36 @@ var buttonVariantConfigs = {
|
|
|
3593
3600
|
value: "transparent"
|
|
3594
3601
|
}
|
|
3595
3602
|
},
|
|
3603
|
+
tonal: {
|
|
3604
|
+
"--d-border": {
|
|
3605
|
+
source: "literal",
|
|
3606
|
+
value: "transparent"
|
|
3607
|
+
},
|
|
3608
|
+
"--d-bg": { index: COLOR_BG.solid.dark },
|
|
3609
|
+
"--d-bg-h": { index: COLOR_BG.hover.dark },
|
|
3610
|
+
"--d-text": {
|
|
3611
|
+
palette: "surface",
|
|
3612
|
+
index: SURFACE_BG.base.dark
|
|
3613
|
+
},
|
|
3614
|
+
"--d-text-h": {
|
|
3615
|
+
palette: "surface",
|
|
3616
|
+
index: SURFACE_BG.base.dark
|
|
3617
|
+
},
|
|
3618
|
+
"--l-bg": { index: COLOR_BG.solid.light },
|
|
3619
|
+
"--l-bg-h": { index: COLOR_BG.hover.light },
|
|
3620
|
+
"--l-text": {
|
|
3621
|
+
palette: "surface",
|
|
3622
|
+
index: SURFACE_BG.base.light
|
|
3623
|
+
},
|
|
3624
|
+
"--l-text-h": {
|
|
3625
|
+
palette: "surface",
|
|
3626
|
+
index: SURFACE_BG.base.light
|
|
3627
|
+
},
|
|
3628
|
+
"--l-border": {
|
|
3629
|
+
source: "literal",
|
|
3630
|
+
value: "transparent"
|
|
3631
|
+
}
|
|
3632
|
+
},
|
|
3596
3633
|
light: {
|
|
3597
3634
|
"--d-border": {
|
|
3598
3635
|
source: "literal",
|
|
@@ -3963,6 +4000,7 @@ function useTagCS(t = "default", n = "primary", i = !1) {
|
|
|
3963
4000
|
default: () => getDefaultTagVariantStyle(s, l),
|
|
3964
4001
|
inverted: () => getInvertedTagVariantStyle(s, l),
|
|
3965
4002
|
filled: () => getFilledTagVariantStyle(a, l),
|
|
4003
|
+
tonal: () => getTonalTagVariantStyle(a, s, l),
|
|
3966
4004
|
light: () => getLightTagVariantStyle(a, l),
|
|
3967
4005
|
outline: () => getOutlineTagVariantStyle(a, l),
|
|
3968
4006
|
transparent: () => getTransparentTagVariantStyle(a, l),
|
|
@@ -4045,6 +4083,37 @@ function getFilledTagVariantStyle(t, n) {
|
|
|
4045
4083
|
class: a
|
|
4046
4084
|
};
|
|
4047
4085
|
}
|
|
4086
|
+
function getTonalTagVariantStyle(t, n, i) {
|
|
4087
|
+
let a = {
|
|
4088
|
+
"--d-border": "transparent",
|
|
4089
|
+
"--d-bg": formatHex(t[COLOR_BG.solid.dark]) || "#000000",
|
|
4090
|
+
"--d-text": formatHex(n[SURFACE_BG.base.dark]) || "#000000",
|
|
4091
|
+
"--l-bg": formatHex(t[COLOR_BG.solid.light]) || "#000000",
|
|
4092
|
+
"--l-text": formatHex(n[SURFACE_BG.base.light]) || "#000000",
|
|
4093
|
+
"--l-border": "transparent"
|
|
4094
|
+
}, o = [
|
|
4095
|
+
"border-[var(--r-scheme-border)]",
|
|
4096
|
+
"bg-[var(--r-scheme-bg)]",
|
|
4097
|
+
"text-[var(--r-scheme-text)]"
|
|
4098
|
+
];
|
|
4099
|
+
return i ? {
|
|
4100
|
+
style: {
|
|
4101
|
+
...a,
|
|
4102
|
+
"--d-bg-h": formatHex(t[COLOR_BG.hover.dark]) || "#000000",
|
|
4103
|
+
"--d-text-h": formatHex(n[SURFACE_BG.base.dark]) || "#000000",
|
|
4104
|
+
"--l-bg-h": formatHex(t[COLOR_BG.hover.light]) || "#000000",
|
|
4105
|
+
"--l-text-h": formatHex(n[SURFACE_BG.base.light]) || "#000000"
|
|
4106
|
+
},
|
|
4107
|
+
class: [
|
|
4108
|
+
...o,
|
|
4109
|
+
"hover:bg-[var(--r-scheme-bg-hover)]",
|
|
4110
|
+
"hover:text-[var(--r-scheme-text-hover)]"
|
|
4111
|
+
]
|
|
4112
|
+
} : {
|
|
4113
|
+
style: a,
|
|
4114
|
+
class: o
|
|
4115
|
+
};
|
|
4116
|
+
}
|
|
4048
4117
|
function getLightTagVariantStyle(t, n) {
|
|
4049
4118
|
let i = {
|
|
4050
4119
|
"--d-border": "transparent",
|
|
@@ -4194,7 +4263,7 @@ function getContrastTagVariantStyle(t, n) {
|
|
|
4194
4263
|
class: a
|
|
4195
4264
|
};
|
|
4196
4265
|
}
|
|
4197
|
-
var _hoisted_1$
|
|
4266
|
+
var _hoisted_1$28 = {
|
|
4198
4267
|
key: 2,
|
|
4199
4268
|
class: "i-fluent-person-24-filled"
|
|
4200
4269
|
}, Avatar_default = /* @__PURE__ */ defineComponent({
|
|
@@ -4207,6 +4276,7 @@ var _hoisted_1$27 = {
|
|
|
4207
4276
|
variant: { default: "default" },
|
|
4208
4277
|
color: {},
|
|
4209
4278
|
rounded: {},
|
|
4279
|
+
cornerShape: {},
|
|
4210
4280
|
skeleton: { type: Boolean }
|
|
4211
4281
|
},
|
|
4212
4282
|
setup(n) {
|
|
@@ -4214,15 +4284,16 @@ var _hoisted_1$27 = {
|
|
|
4214
4284
|
...i,
|
|
4215
4285
|
size: i.size ?? d?.size ?? a.value.defaultSize,
|
|
4216
4286
|
color: i.color ?? d?.color ?? "default",
|
|
4217
|
-
rounded: i.rounded ?? d?.rounded ?? "full"
|
|
4287
|
+
rounded: i.rounded ?? d?.rounded ?? "full",
|
|
4288
|
+
cornerShape: i.cornerShape ?? d?.cornerShape
|
|
4218
4289
|
})), _ = useRounded(m.value), v = computed(() => i.name || ""), y = computed(() => {
|
|
4219
4290
|
switch (m.value.size) {
|
|
4220
|
-
case "xs": return "--size:
|
|
4221
|
-
case "sm": return "--size:
|
|
4222
|
-
case "md": return "--size:
|
|
4223
|
-
case "lg": return "--size:
|
|
4224
|
-
case "xl": return "--size:
|
|
4225
|
-
default: return typeof m.value.size == "number" && !Number.isNaN(Number(m.value.size)) ? `--size: ${m.value.size}rem; --font-size: ${Number(m.value.size) / 2}rem;` : "--size:
|
|
4291
|
+
case "xs": return "--size: 1.75rem; --font-size: 0.875rem;";
|
|
4292
|
+
case "sm": return "--size: 2.5rem; --font-size: 1.125rem;";
|
|
4293
|
+
case "md": return "--size: 3rem; --font-size: 1.5rem;";
|
|
4294
|
+
case "lg": return "--size: 4.5rem; --font-size: 2.25rem;";
|
|
4295
|
+
case "xl": return "--size: 6rem; --font-size: 3rem;";
|
|
4296
|
+
default: return typeof m.value.size == "number" && !Number.isNaN(Number(m.value.size)) ? `--size: ${m.value.size}rem; --font-size: ${Number(m.value.size) / 2}rem;` : "--size: 3rem; --font-size: 1.5rem;";
|
|
4226
4297
|
}
|
|
4227
4298
|
}), b = ref(!1), x = ref(!1), S = ref(null);
|
|
4228
4299
|
function C() {
|
|
@@ -4240,9 +4311,9 @@ var _hoisted_1$27 = {
|
|
|
4240
4311
|
let E = computed(() => m.value.color), O = useContainerCS(i.variant, E);
|
|
4241
4312
|
return (i, a) => n.skeleton ? (openBlock(), createElementBlock("div", {
|
|
4242
4313
|
key: 0,
|
|
4243
|
-
class: "bg-container
|
|
4314
|
+
class: normalizeClass(["bg-container min-h-[--size] min-w-[--size] inline-block animate-pulse", unref(_).class]),
|
|
4244
4315
|
style: normalizeStyle([unref(_).style, y.value])
|
|
4245
|
-
}, null,
|
|
4316
|
+
}, null, 6)) : (openBlock(), createElementBlock("div", {
|
|
4246
4317
|
key: 1,
|
|
4247
4318
|
class: "min-h-[--size] min-w-[--size] inline-block relative",
|
|
4248
4319
|
style: normalizeStyle(y.value)
|
|
@@ -4255,7 +4326,7 @@ var _hoisted_1$27 = {
|
|
|
4255
4326
|
unref(_).class,
|
|
4256
4327
|
unref(O).class,
|
|
4257
4328
|
{ "opacity-0": !b.value }
|
|
4258
|
-
], "
|
|
4329
|
+
], "h-full w-full inset-0 absolute object-cover"],
|
|
4259
4330
|
style: [unref(_).style, unref(O).style],
|
|
4260
4331
|
src: n.src
|
|
4261
4332
|
}, i.$attrs, {
|
|
@@ -4268,857 +4339,11 @@ var _hoisted_1$27 = {
|
|
|
4268
4339
|
"src"
|
|
4269
4340
|
])) : createCommentVNode("", !0), !n.src || x.value || !b.value ? (openBlock(), createElementBlock("div", mergeProps({
|
|
4270
4341
|
key: 1,
|
|
4271
|
-
class: ["font-size-[--font-size] border-
|
|
4342
|
+
class: ["font-size-[--font-size] border-2 flex h-full w-full items-center inset-0 justify-center absolute object-cover", [unref(_).class, unref(O).class]],
|
|
4272
4343
|
style: [unref(_).style, unref(O).style]
|
|
4273
|
-
}, i.$attrs), [i.$slots.default ? renderSlot(i.$slots, "default", { key: 0 }) : v.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(T(v.value)), 1)], 64)) : (openBlock(), createElementBlock("i", _hoisted_1$
|
|
4344
|
+
}, i.$attrs), [i.$slots.default ? renderSlot(i.$slots, "default", { key: 0 }) : v.value ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [createTextVNode(toDisplayString(T(v.value)), 1)], 64)) : (openBlock(), createElementBlock("i", _hoisted_1$28))], 16)) : createCommentVNode("", !0)], 4));
|
|
4274
4345
|
}
|
|
4275
|
-
})
|
|
4276
|
-
function tryOnScopeDispose(t, n) {
|
|
4277
|
-
return getCurrentScope() ? (onScopeDispose(t, n), !0) : !1;
|
|
4278
|
-
}
|
|
4279
|
-
function createEventHook() {
|
|
4280
|
-
let t = /* @__PURE__ */ new Set(), n = (n) => {
|
|
4281
|
-
t.delete(n);
|
|
4282
|
-
};
|
|
4283
|
-
return {
|
|
4284
|
-
on: (i) => {
|
|
4285
|
-
t.add(i);
|
|
4286
|
-
let a = () => n(i);
|
|
4287
|
-
return tryOnScopeDispose(a), { off: a };
|
|
4288
|
-
},
|
|
4289
|
-
off: n,
|
|
4290
|
-
trigger: (...n) => Promise.all(Array.from(t).map((t) => t(...n))),
|
|
4291
|
-
clear: () => {
|
|
4292
|
-
t.clear();
|
|
4293
|
-
}
|
|
4294
|
-
};
|
|
4295
|
-
}
|
|
4296
|
-
var localProvidedStateMap = /* @__PURE__ */ new WeakMap(), injectLocal = (...t) => {
|
|
4297
|
-
let n = t[0], i = getCurrentInstance()?.proxy ?? getCurrentScope();
|
|
4298
|
-
if (i == null && !hasInjectionContext()) throw Error("injectLocal must be called in setup");
|
|
4299
|
-
return i && localProvidedStateMap.has(i) && n in localProvidedStateMap.get(i) ? localProvidedStateMap.get(i)[n] : inject(...t);
|
|
4300
|
-
}, isClient = typeof window < "u" && typeof document < "u";
|
|
4301
|
-
typeof WorkerGlobalScope < "u" && globalThis instanceof WorkerGlobalScope;
|
|
4302
|
-
var notNullish = (t) => t != null, toString = Object.prototype.toString, isObject = (t) => toString.call(t) === "[object Object]", noop = () => {}, hasOwn = (t, n) => Object.prototype.hasOwnProperty.call(t, n), isIOS = /* @__PURE__ */ getIsIOS();
|
|
4303
|
-
function getIsIOS() {
|
|
4304
|
-
var t, n;
|
|
4305
|
-
return isClient && ((t = window) == null || (t = t.navigator) == null ? void 0 : t.userAgent) && (/iP(?:ad|hone|od)/.test(window.navigator.userAgent) || ((n = window) == null || (n = n.navigator) == null ? void 0 : n.maxTouchPoints) > 2 && /iPad|Macintosh/.test(window?.navigator.userAgent));
|
|
4306
|
-
}
|
|
4307
|
-
function toRef$1(...t) {
|
|
4308
|
-
if (t.length !== 1) return toRef(...t);
|
|
4309
|
-
let n = t[0];
|
|
4310
|
-
return typeof n == "function" ? readonly(customRef(() => ({
|
|
4311
|
-
get: n,
|
|
4312
|
-
set: noop
|
|
4313
|
-
}))) : ref(n);
|
|
4314
|
-
}
|
|
4315
|
-
function createFilterWrapper(t, n) {
|
|
4316
|
-
function i(...i) {
|
|
4317
|
-
return new Promise((a, o) => {
|
|
4318
|
-
Promise.resolve(t(() => n.apply(this, i), {
|
|
4319
|
-
fn: n,
|
|
4320
|
-
thisArg: this,
|
|
4321
|
-
args: i
|
|
4322
|
-
})).then(a).catch(o);
|
|
4323
|
-
});
|
|
4324
|
-
}
|
|
4325
|
-
return i;
|
|
4326
|
-
}
|
|
4327
|
-
var bypassFilter = (t) => t();
|
|
4328
|
-
function debounceFilter(t, n = {}) {
|
|
4329
|
-
let i, a, o = noop, s = (t) => {
|
|
4330
|
-
clearTimeout(t), o(), o = noop;
|
|
4331
|
-
}, l;
|
|
4332
|
-
return (u) => {
|
|
4333
|
-
let d = toValue(t), m = toValue(n.maxWait);
|
|
4334
|
-
return i && s(i), d <= 0 || m !== void 0 && m <= 0 ? (a &&= (s(a), void 0), Promise.resolve(u())) : new Promise((t, g) => {
|
|
4335
|
-
o = n.rejectOnCancel ? g : t, l = u, m && !a && (a = setTimeout(() => {
|
|
4336
|
-
i && s(i), a = void 0, t(l());
|
|
4337
|
-
}, m)), i = setTimeout(() => {
|
|
4338
|
-
a && s(a), a = void 0, t(u());
|
|
4339
|
-
}, d);
|
|
4340
|
-
});
|
|
4341
|
-
};
|
|
4342
|
-
}
|
|
4343
|
-
function throttleFilter(...t) {
|
|
4344
|
-
let n = 0, i, a = !0, o = noop, s, l, u, d, m;
|
|
4345
|
-
!isRef(t[0]) && typeof t[0] == "object" ? {delay: l, trailing: u = !0, leading: d = !0, rejectOnCancel: m = !1} = t[0] : [l, u = !0, d = !0, m = !1] = t;
|
|
4346
|
-
let g = () => {
|
|
4347
|
-
i && (clearTimeout(i), i = void 0, o(), o = noop);
|
|
4348
|
-
};
|
|
4349
|
-
return (t) => {
|
|
4350
|
-
let _ = toValue(l), v = Date.now() - n, y = () => s = t();
|
|
4351
|
-
return g(), _ <= 0 ? (n = Date.now(), y()) : (v > _ ? (n = Date.now(), (d || !a) && y()) : u && (s = new Promise((t, s) => {
|
|
4352
|
-
o = m ? s : t, i = setTimeout(() => {
|
|
4353
|
-
n = Date.now(), a = !0, t(y()), g();
|
|
4354
|
-
}, Math.max(0, _ - v));
|
|
4355
|
-
})), !d && !i && (i = setTimeout(() => a = !0, _)), a = !1, s);
|
|
4356
|
-
};
|
|
4357
|
-
}
|
|
4358
|
-
function pausableFilter(t = bypassFilter, n = {}) {
|
|
4359
|
-
let { initialState: i = "active" } = n, a = toRef$1(i === "active");
|
|
4360
|
-
function o() {
|
|
4361
|
-
a.value = !1;
|
|
4362
|
-
}
|
|
4363
|
-
function s() {
|
|
4364
|
-
a.value = !0;
|
|
4365
|
-
}
|
|
4366
|
-
return {
|
|
4367
|
-
isActive: readonly(a),
|
|
4368
|
-
pause: o,
|
|
4369
|
-
resume: s,
|
|
4370
|
-
eventFilter: (...n) => {
|
|
4371
|
-
a.value && t(...n);
|
|
4372
|
-
}
|
|
4373
|
-
};
|
|
4374
|
-
}
|
|
4375
|
-
function pxValue(t) {
|
|
4376
|
-
return t.endsWith("rem") ? Number.parseFloat(t) * 16 : Number.parseFloat(t);
|
|
4377
|
-
}
|
|
4378
|
-
function toArray(t) {
|
|
4379
|
-
return Array.isArray(t) ? t : [t];
|
|
4380
|
-
}
|
|
4381
|
-
function getLifeCycleTarget(t) {
|
|
4382
|
-
return t || getCurrentInstance();
|
|
4383
|
-
}
|
|
4384
|
-
function useDebounceFn(t, n = 200, i = {}) {
|
|
4385
|
-
return createFilterWrapper(debounceFilter(n, i), t);
|
|
4386
|
-
}
|
|
4387
|
-
function refDebounced(t, n = 200, i = {}) {
|
|
4388
|
-
let a = ref(toValue(t)), o = useDebounceFn(() => {
|
|
4389
|
-
a.value = t.value;
|
|
4390
|
-
}, n, i);
|
|
4391
|
-
return watch(t, () => o()), shallowReadonly(a);
|
|
4392
|
-
}
|
|
4393
|
-
var useDebounce = refDebounced;
|
|
4394
|
-
function useThrottleFn(t, n = 200, i = !1, a = !0, o = !1) {
|
|
4395
|
-
return createFilterWrapper(throttleFilter(n, i, a, o), t);
|
|
4396
|
-
}
|
|
4397
|
-
function watchWithFilter(t, n, i = {}) {
|
|
4398
|
-
let { eventFilter: a = bypassFilter, ...o } = i;
|
|
4399
|
-
return watch(t, createFilterWrapper(a, n), o);
|
|
4400
|
-
}
|
|
4401
|
-
function watchPausable(t, n, i = {}) {
|
|
4402
|
-
let { eventFilter: a, initialState: o = "active", ...s } = i, { eventFilter: l, pause: u, resume: d, isActive: m } = pausableFilter(a, { initialState: o });
|
|
4403
|
-
return {
|
|
4404
|
-
stop: watchWithFilter(t, n, {
|
|
4405
|
-
...s,
|
|
4406
|
-
eventFilter: l
|
|
4407
|
-
}),
|
|
4408
|
-
pause: u,
|
|
4409
|
-
resume: d,
|
|
4410
|
-
isActive: m
|
|
4411
|
-
};
|
|
4412
|
-
}
|
|
4413
|
-
var pausableWatch = watchPausable;
|
|
4414
|
-
function tryOnMounted(t, n = !0, i) {
|
|
4415
|
-
getLifeCycleTarget(i) ? onMounted(t, i) : n ? t() : nextTick(t);
|
|
4416
|
-
}
|
|
4417
|
-
function useToggle(t = !1, n = {}) {
|
|
4418
|
-
let { truthyValue: i = !0, falsyValue: a = !1 } = n, o = isRef(t), s = shallowRef(t);
|
|
4419
|
-
function l(t) {
|
|
4420
|
-
if (arguments.length) return s.value = t, s.value;
|
|
4421
|
-
{
|
|
4422
|
-
let t = toValue(i);
|
|
4423
|
-
return s.value = s.value === t ? toValue(a) : t, s.value;
|
|
4424
|
-
}
|
|
4425
|
-
}
|
|
4426
|
-
return o ? l : [s, l];
|
|
4427
|
-
}
|
|
4428
|
-
function watchImmediate(t, n, i) {
|
|
4429
|
-
return watch(t, n, {
|
|
4430
|
-
...i,
|
|
4431
|
-
immediate: !0
|
|
4432
|
-
});
|
|
4433
|
-
}
|
|
4434
|
-
var defaultWindow = isClient ? window : void 0, defaultDocument = isClient ? window.document : void 0;
|
|
4435
|
-
isClient && window.navigator, isClient && window.location;
|
|
4436
|
-
function unrefElement(t) {
|
|
4437
|
-
let n = toValue(t);
|
|
4438
|
-
return n?.$el ?? n;
|
|
4439
|
-
}
|
|
4440
|
-
function useEventListener(...t) {
|
|
4441
|
-
let n = [], i = () => {
|
|
4442
|
-
n.forEach((t) => t()), n.length = 0;
|
|
4443
|
-
}, a = (t, n, i, a) => (t.addEventListener(n, i, a), () => t.removeEventListener(n, i, a)), s = computed(() => {
|
|
4444
|
-
let n = toArray(toValue(t[0])).filter((t) => t != null);
|
|
4445
|
-
return n.every((t) => typeof t != "string") ? n : void 0;
|
|
4446
|
-
}), l = watchImmediate(() => [
|
|
4447
|
-
s.value?.map((t) => unrefElement(t)) ?? [defaultWindow].filter((t) => t != null),
|
|
4448
|
-
toArray(toValue(s.value ? t[1] : t[0])),
|
|
4449
|
-
toArray(unref(s.value ? t[2] : t[1])),
|
|
4450
|
-
toValue(s.value ? t[3] : t[2])
|
|
4451
|
-
], ([t, o, s, l]) => {
|
|
4452
|
-
if (i(), !t?.length || !o?.length || !s?.length) return;
|
|
4453
|
-
let u = isObject(l) ? { ...l } : l;
|
|
4454
|
-
n.push(...t.flatMap((t) => o.flatMap((n) => s.map((i) => a(t, n, i, u)))));
|
|
4455
|
-
}, { flush: "post" });
|
|
4456
|
-
return tryOnScopeDispose(i), () => {
|
|
4457
|
-
l(), i();
|
|
4458
|
-
};
|
|
4459
|
-
}
|
|
4460
|
-
var _iOSWorkaround = !1;
|
|
4461
|
-
function onClickOutside(t, n, i = {}) {
|
|
4462
|
-
let { window: a = defaultWindow, ignore: o = [], capture: s = !0, detectIframe: l = !1, controls: u = !1 } = i;
|
|
4463
|
-
if (!a) return u ? {
|
|
4464
|
-
stop: noop,
|
|
4465
|
-
cancel: noop,
|
|
4466
|
-
trigger: noop
|
|
4467
|
-
} : noop;
|
|
4468
|
-
if (isIOS && !_iOSWorkaround) {
|
|
4469
|
-
_iOSWorkaround = !0;
|
|
4470
|
-
let t = { passive: !0 };
|
|
4471
|
-
Array.from(a.document.body.children).forEach((n) => n.addEventListener("click", noop, t)), a.document.documentElement.addEventListener("click", noop, t);
|
|
4472
|
-
}
|
|
4473
|
-
let d = !0, m = (t) => toValue(o).some((n) => {
|
|
4474
|
-
if (typeof n == "string") return Array.from(a.document.querySelectorAll(n)).some((n) => n === t.target || t.composedPath().includes(n));
|
|
4475
|
-
{
|
|
4476
|
-
let i = unrefElement(n);
|
|
4477
|
-
return i && (t.target === i || t.composedPath().includes(i));
|
|
4478
|
-
}
|
|
4479
|
-
});
|
|
4480
|
-
function g(t) {
|
|
4481
|
-
let n = toValue(t);
|
|
4482
|
-
return n && n.$.subTree.shapeFlag === 16;
|
|
4483
|
-
}
|
|
4484
|
-
function _(t, n) {
|
|
4485
|
-
let i = toValue(t), a = i.$.subTree && i.$.subTree.children;
|
|
4486
|
-
return a == null || !Array.isArray(a) ? !1 : a.some((t) => t.el === n.target || n.composedPath().includes(t.el));
|
|
4487
|
-
}
|
|
4488
|
-
let v = (i) => {
|
|
4489
|
-
let a = unrefElement(t);
|
|
4490
|
-
if (i.target != null && !(!(a instanceof Element) && g(t) && _(t, i)) && !(!a || a === i.target || i.composedPath().includes(a))) {
|
|
4491
|
-
if ("detail" in i && i.detail === 0 && (d = !m(i)), !d) {
|
|
4492
|
-
d = !0;
|
|
4493
|
-
return;
|
|
4494
|
-
}
|
|
4495
|
-
n(i);
|
|
4496
|
-
}
|
|
4497
|
-
}, y = !1, b = [
|
|
4498
|
-
useEventListener(a, "click", (t) => {
|
|
4499
|
-
y || (y = !0, setTimeout(() => {
|
|
4500
|
-
y = !1;
|
|
4501
|
-
}, 0), v(t));
|
|
4502
|
-
}, {
|
|
4503
|
-
passive: !0,
|
|
4504
|
-
capture: s
|
|
4505
|
-
}),
|
|
4506
|
-
useEventListener(a, "pointerdown", (n) => {
|
|
4507
|
-
let i = unrefElement(t);
|
|
4508
|
-
d = !m(n) && !!(i && !n.composedPath().includes(i));
|
|
4509
|
-
}, { passive: !0 }),
|
|
4510
|
-
l && useEventListener(a, "blur", (i) => {
|
|
4511
|
-
setTimeout(() => {
|
|
4512
|
-
let o = unrefElement(t);
|
|
4513
|
-
a.document.activeElement?.tagName === "IFRAME" && !o?.contains(a.document.activeElement) && n(i);
|
|
4514
|
-
}, 0);
|
|
4515
|
-
}, { passive: !0 })
|
|
4516
|
-
].filter(Boolean), x = () => b.forEach((t) => t());
|
|
4517
|
-
return u ? {
|
|
4518
|
-
stop: x,
|
|
4519
|
-
cancel: () => {
|
|
4520
|
-
d = !1;
|
|
4521
|
-
},
|
|
4522
|
-
trigger: (t) => {
|
|
4523
|
-
d = !0, v(t), d = !1;
|
|
4524
|
-
}
|
|
4525
|
-
} : x;
|
|
4526
|
-
}
|
|
4527
|
-
function useMounted() {
|
|
4528
|
-
let t = shallowRef(!1), n = getCurrentInstance();
|
|
4529
|
-
return n && onMounted(() => {
|
|
4530
|
-
t.value = !0;
|
|
4531
|
-
}, n), t;
|
|
4532
|
-
}
|
|
4533
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
4534
|
-
function useSupported(t) {
|
|
4535
|
-
let n = useMounted();
|
|
4536
|
-
return computed(() => (n.value, !!t()));
|
|
4537
|
-
}
|
|
4538
|
-
function useMutationObserver(t, n, i = {}) {
|
|
4539
|
-
let { window: a = defaultWindow, ...s } = i, l, u = /* @__PURE__ */ useSupported(() => a && "MutationObserver" in a), d = () => {
|
|
4540
|
-
l &&= (l.disconnect(), void 0);
|
|
4541
|
-
}, m = watch(computed(() => {
|
|
4542
|
-
let n = toArray(toValue(t)).map(unrefElement).filter(notNullish);
|
|
4543
|
-
return new Set(n);
|
|
4544
|
-
}), (t) => {
|
|
4545
|
-
d(), u.value && t.size && (l = new MutationObserver(n), t.forEach((t) => l.observe(t, s)));
|
|
4546
|
-
}, {
|
|
4547
|
-
immediate: !0,
|
|
4548
|
-
flush: "post"
|
|
4549
|
-
}), g = () => l?.takeRecords(), _ = () => {
|
|
4550
|
-
m(), d();
|
|
4551
|
-
};
|
|
4552
|
-
return tryOnScopeDispose(_), {
|
|
4553
|
-
isSupported: u,
|
|
4554
|
-
stop: _,
|
|
4555
|
-
takeRecords: g
|
|
4556
|
-
};
|
|
4557
|
-
}
|
|
4558
|
-
function onElementRemoval(t, n, i = {}) {
|
|
4559
|
-
let { window: a = defaultWindow, document: o = a?.document, flush: s = "sync" } = i;
|
|
4560
|
-
if (!a || !o) return noop;
|
|
4561
|
-
let l, u = (t) => {
|
|
4562
|
-
l?.(), l = t;
|
|
4563
|
-
}, d = watchEffect(() => {
|
|
4564
|
-
let i = unrefElement(t);
|
|
4565
|
-
if (i) {
|
|
4566
|
-
let { stop: t } = useMutationObserver(o, (t) => {
|
|
4567
|
-
t.map((t) => [...t.removedNodes]).flat().some((t) => t === i || t.contains(i)) && n(t);
|
|
4568
|
-
}, {
|
|
4569
|
-
window: a,
|
|
4570
|
-
childList: !0,
|
|
4571
|
-
subtree: !0
|
|
4572
|
-
});
|
|
4573
|
-
u(t);
|
|
4574
|
-
}
|
|
4575
|
-
}, { flush: s }), m = () => {
|
|
4576
|
-
d(), u();
|
|
4577
|
-
};
|
|
4578
|
-
return tryOnScopeDispose(m), m;
|
|
4579
|
-
}
|
|
4580
|
-
function createKeyPredicate(t) {
|
|
4581
|
-
return typeof t == "function" ? t : typeof t == "string" ? (n) => n.key === t : Array.isArray(t) ? (n) => t.includes(n.key) : () => !0;
|
|
4582
|
-
}
|
|
4583
|
-
function onKeyStroke(...t) {
|
|
4584
|
-
let n, i, a = {};
|
|
4585
|
-
t.length === 3 ? (n = t[0], i = t[1], a = t[2]) : t.length === 2 ? typeof t[1] == "object" ? (n = !0, i = t[0], a = t[1]) : (n = t[0], i = t[1]) : (n = !0, i = t[0]);
|
|
4586
|
-
let { target: o = defaultWindow, eventName: s = "keydown", passive: l = !1, dedupe: u = !1 } = a, d = createKeyPredicate(n);
|
|
4587
|
-
return useEventListener(o, s, (t) => {
|
|
4588
|
-
t.repeat && toValue(u) || d(t) && i(t);
|
|
4589
|
-
}, l);
|
|
4590
|
-
}
|
|
4591
|
-
function useRafFn(t, n = {}) {
|
|
4592
|
-
let { immediate: i = !0, fpsLimit: a = void 0, window: s = defaultWindow, once: l = !1 } = n, u = shallowRef(!1), d = computed(() => a ? 1e3 / toValue(a) : null), m = 0, g = null;
|
|
4593
|
-
function _(n) {
|
|
4594
|
-
if (!u.value || !s) return;
|
|
4595
|
-
m ||= n;
|
|
4596
|
-
let i = n - m;
|
|
4597
|
-
if (d.value && i < d.value) {
|
|
4598
|
-
g = s.requestAnimationFrame(_);
|
|
4599
|
-
return;
|
|
4600
|
-
}
|
|
4601
|
-
if (m = n, t({
|
|
4602
|
-
delta: i,
|
|
4603
|
-
timestamp: n
|
|
4604
|
-
}), l) {
|
|
4605
|
-
u.value = !1, g = null;
|
|
4606
|
-
return;
|
|
4607
|
-
}
|
|
4608
|
-
g = s.requestAnimationFrame(_);
|
|
4609
|
-
}
|
|
4610
|
-
function v() {
|
|
4611
|
-
!u.value && s && (u.value = !0, m = 0, g = s.requestAnimationFrame(_));
|
|
4612
|
-
}
|
|
4613
|
-
function y() {
|
|
4614
|
-
u.value = !1, g != null && s && (s.cancelAnimationFrame(g), g = null);
|
|
4615
|
-
}
|
|
4616
|
-
return i && v(), tryOnScopeDispose(y), {
|
|
4617
|
-
isActive: readonly(u),
|
|
4618
|
-
pause: y,
|
|
4619
|
-
resume: v
|
|
4620
|
-
};
|
|
4621
|
-
}
|
|
4622
|
-
var ssrWidthSymbol = Symbol("vueuse-ssr-width");
|
|
4623
|
-
/* @__NO_SIDE_EFFECTS__ */
|
|
4624
|
-
function useSSRWidth() {
|
|
4625
|
-
let t = hasInjectionContext() ? injectLocal(ssrWidthSymbol, null) : null;
|
|
4626
|
-
return typeof t == "number" ? t : void 0;
|
|
4627
|
-
}
|
|
4628
|
-
function useMediaQuery(t, n = {}) {
|
|
4629
|
-
let { window: i = defaultWindow, ssrWidth: a = /* @__PURE__ */ useSSRWidth() } = n, s = /* @__PURE__ */ useSupported(() => i && "matchMedia" in i && typeof i.matchMedia == "function"), l = shallowRef(typeof a == "number"), u = shallowRef(), d = shallowRef(!1);
|
|
4630
|
-
return watchEffect(() => {
|
|
4631
|
-
if (l.value) {
|
|
4632
|
-
l.value = !s.value, d.value = toValue(t).split(",").some((t) => {
|
|
4633
|
-
let n = t.includes("not all"), i = t.match(/\(\s*min-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), o = t.match(/\(\s*max-width:\s*(-?\d+(?:\.\d*)?[a-z]+\s*)\)/), s = !!(i || o);
|
|
4634
|
-
return i && s && (s = a >= pxValue(i[1])), o && s && (s = a <= pxValue(o[1])), n ? !s : s;
|
|
4635
|
-
});
|
|
4636
|
-
return;
|
|
4637
|
-
}
|
|
4638
|
-
s.value && (u.value = i.matchMedia(toValue(t)), d.value = u.value.matches);
|
|
4639
|
-
}), useEventListener(u, "change", (t) => {
|
|
4640
|
-
d.value = t.matches;
|
|
4641
|
-
}, { passive: !0 }), computed(() => d.value);
|
|
4642
|
-
}
|
|
4643
|
-
var _global = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {}, globalKey = "__vueuse_ssr_handlers__", handlers = /* @__PURE__ */ getHandlers();
|
|
4644
|
-
function getHandlers() {
|
|
4645
|
-
return globalKey in _global || (_global[globalKey] = _global[globalKey] || {}), _global[globalKey];
|
|
4646
|
-
}
|
|
4647
|
-
function getSSRHandler(t, n) {
|
|
4648
|
-
return handlers[t] || n;
|
|
4649
|
-
}
|
|
4650
|
-
function guessSerializerType(t) {
|
|
4651
|
-
return t == null ? "any" : t instanceof Set ? "set" : t instanceof Map ? "map" : t instanceof Date ? "date" : typeof t == "boolean" ? "boolean" : typeof t == "string" ? "string" : typeof t == "object" ? "object" : Number.isNaN(t) ? "any" : "number";
|
|
4652
|
-
}
|
|
4653
|
-
var StorageSerializers = {
|
|
4654
|
-
boolean: {
|
|
4655
|
-
read: (t) => t === "true",
|
|
4656
|
-
write: (t) => String(t)
|
|
4657
|
-
},
|
|
4658
|
-
object: {
|
|
4659
|
-
read: (t) => JSON.parse(t),
|
|
4660
|
-
write: (t) => JSON.stringify(t)
|
|
4661
|
-
},
|
|
4662
|
-
number: {
|
|
4663
|
-
read: (t) => Number.parseFloat(t),
|
|
4664
|
-
write: (t) => String(t)
|
|
4665
|
-
},
|
|
4666
|
-
any: {
|
|
4667
|
-
read: (t) => t,
|
|
4668
|
-
write: (t) => String(t)
|
|
4669
|
-
},
|
|
4670
|
-
string: {
|
|
4671
|
-
read: (t) => t,
|
|
4672
|
-
write: (t) => String(t)
|
|
4673
|
-
},
|
|
4674
|
-
map: {
|
|
4675
|
-
read: (t) => new Map(JSON.parse(t)),
|
|
4676
|
-
write: (t) => JSON.stringify(Array.from(t.entries()))
|
|
4677
|
-
},
|
|
4678
|
-
set: {
|
|
4679
|
-
read: (t) => new Set(JSON.parse(t)),
|
|
4680
|
-
write: (t) => JSON.stringify(Array.from(t))
|
|
4681
|
-
},
|
|
4682
|
-
date: {
|
|
4683
|
-
read: (t) => new Date(t),
|
|
4684
|
-
write: (t) => t.toISOString()
|
|
4685
|
-
}
|
|
4686
|
-
}, customStorageEventName = "vueuse-storage";
|
|
4687
|
-
function useStorage(t, n, i, a = {}) {
|
|
4688
|
-
let { flush: s = "pre", deep: l = !0, listenToStorageChanges: u = !0, writeDefaults: d = !0, mergeDefaults: m = !1, shallow: g, window: _ = defaultWindow, eventFilter: v, onError: y = (t) => {
|
|
4689
|
-
console.error(t);
|
|
4690
|
-
}, initOnMounted: b } = a, x = (g ? shallowRef : ref)(typeof n == "function" ? n() : n), S = computed(() => toValue(t));
|
|
4691
|
-
if (!i) try {
|
|
4692
|
-
i = getSSRHandler("getDefaultStorage", () => defaultWindow?.localStorage)();
|
|
4693
|
-
} catch (t) {
|
|
4694
|
-
y(t);
|
|
4695
|
-
}
|
|
4696
|
-
if (!i) return x;
|
|
4697
|
-
let C = toValue(n), w = guessSerializerType(C), T = a.serializer ?? StorageSerializers[w], { pause: E, resume: D } = pausableWatch(x, (t) => N(t), {
|
|
4698
|
-
flush: s,
|
|
4699
|
-
deep: l,
|
|
4700
|
-
eventFilter: v
|
|
4701
|
-
});
|
|
4702
|
-
watch(S, () => F(), { flush: s });
|
|
4703
|
-
let A = !1;
|
|
4704
|
-
_ && u && (i instanceof Storage ? useEventListener(_, "storage", (t) => {
|
|
4705
|
-
b && !A || F(t);
|
|
4706
|
-
}, { passive: !0 }) : useEventListener(_, customStorageEventName, (t) => {
|
|
4707
|
-
b && !A || L(t);
|
|
4708
|
-
})), b ? tryOnMounted(() => {
|
|
4709
|
-
A = !0, F();
|
|
4710
|
-
}) : F();
|
|
4711
|
-
function j(t, n) {
|
|
4712
|
-
if (_) {
|
|
4713
|
-
let a = {
|
|
4714
|
-
key: S.value,
|
|
4715
|
-
oldValue: t,
|
|
4716
|
-
newValue: n,
|
|
4717
|
-
storageArea: i
|
|
4718
|
-
};
|
|
4719
|
-
_.dispatchEvent(i instanceof Storage ? new StorageEvent("storage", a) : new CustomEvent(customStorageEventName, { detail: a }));
|
|
4720
|
-
}
|
|
4721
|
-
}
|
|
4722
|
-
function N(t) {
|
|
4723
|
-
try {
|
|
4724
|
-
let n = i.getItem(S.value);
|
|
4725
|
-
if (t == null) j(n, null), i.removeItem(S.value);
|
|
4726
|
-
else {
|
|
4727
|
-
let a = T.write(t);
|
|
4728
|
-
n !== a && (i.setItem(S.value, a), j(n, a));
|
|
4729
|
-
}
|
|
4730
|
-
} catch (t) {
|
|
4731
|
-
y(t);
|
|
4732
|
-
}
|
|
4733
|
-
}
|
|
4734
|
-
function P(t) {
|
|
4735
|
-
let n = t ? t.newValue : i.getItem(S.value);
|
|
4736
|
-
if (n == null) return d && C != null && i.setItem(S.value, T.write(C)), C;
|
|
4737
|
-
if (!t && m) {
|
|
4738
|
-
let t = T.read(n);
|
|
4739
|
-
return typeof m == "function" ? m(t, C) : w === "object" && !Array.isArray(t) ? {
|
|
4740
|
-
...C,
|
|
4741
|
-
...t
|
|
4742
|
-
} : t;
|
|
4743
|
-
} else if (typeof n != "string") return n;
|
|
4744
|
-
else return T.read(n);
|
|
4745
|
-
}
|
|
4746
|
-
function F(t) {
|
|
4747
|
-
if (!(t && t.storageArea !== i)) {
|
|
4748
|
-
if (t && t.key == null) {
|
|
4749
|
-
x.value = C;
|
|
4750
|
-
return;
|
|
4751
|
-
}
|
|
4752
|
-
if (!(t && t.key !== S.value)) {
|
|
4753
|
-
E();
|
|
4754
|
-
try {
|
|
4755
|
-
let n = T.write(x.value);
|
|
4756
|
-
(t === void 0 || t?.newValue !== n) && (x.value = P(t));
|
|
4757
|
-
} catch (t) {
|
|
4758
|
-
y(t);
|
|
4759
|
-
} finally {
|
|
4760
|
-
t ? nextTick(D) : D();
|
|
4761
|
-
}
|
|
4762
|
-
}
|
|
4763
|
-
}
|
|
4764
|
-
}
|
|
4765
|
-
function L(t) {
|
|
4766
|
-
F(t.detail);
|
|
4767
|
-
}
|
|
4768
|
-
return x;
|
|
4769
|
-
}
|
|
4770
|
-
function useDropZone(t, n = {}) {
|
|
4771
|
-
let i = shallowRef(!1), a = shallowRef(null), o = 0, s = !0;
|
|
4772
|
-
if (isClient) {
|
|
4773
|
-
let l = typeof n == "function" ? { onDrop: n } : n, u = l.multiple ?? !0, d = l.preventDefaultForUnhandled ?? !1, m = (t) => {
|
|
4774
|
-
let n = Array.from(t.dataTransfer?.files ?? []);
|
|
4775
|
-
return n.length === 0 ? null : u ? n : [n[0]];
|
|
4776
|
-
}, g = (t) => {
|
|
4777
|
-
let n = unref(l.dataTypes);
|
|
4778
|
-
return typeof n == "function" ? n(t) : n?.length ? t.length === 0 ? !1 : t.every((t) => n.some((n) => t.includes(n))) : !0;
|
|
4779
|
-
}, _ = (t) => {
|
|
4780
|
-
let n = g(Array.from(t ?? []).map((t) => t.type)), i = u || t.length <= 1;
|
|
4781
|
-
return n && i;
|
|
4782
|
-
}, v = () => /^(?:(?!chrome|android).)*safari/i.test(navigator.userAgent) && !("chrome" in window), y = (t, n) => {
|
|
4783
|
-
let u = t.dataTransfer?.items;
|
|
4784
|
-
if (s = (u && _(u)) ?? !1, d && t.preventDefault(), !v() && !s) {
|
|
4785
|
-
t.dataTransfer && (t.dataTransfer.dropEffect = "none");
|
|
4786
|
-
return;
|
|
4787
|
-
}
|
|
4788
|
-
t.preventDefault(), t.dataTransfer && (t.dataTransfer.dropEffect = "copy");
|
|
4789
|
-
let g = m(t);
|
|
4790
|
-
switch (n) {
|
|
4791
|
-
case "enter":
|
|
4792
|
-
var y;
|
|
4793
|
-
o += 1, i.value = !0, (y = l.onEnter) == null || y.call(l, null, t);
|
|
4794
|
-
break;
|
|
4795
|
-
case "over":
|
|
4796
|
-
var b;
|
|
4797
|
-
(b = l.onOver) == null || b.call(l, null, t);
|
|
4798
|
-
break;
|
|
4799
|
-
case "leave":
|
|
4800
|
-
var x;
|
|
4801
|
-
--o, o === 0 && (i.value = !1), (x = l.onLeave) == null || x.call(l, null, t);
|
|
4802
|
-
break;
|
|
4803
|
-
case "drop":
|
|
4804
|
-
if (o = 0, i.value = !1, s) {
|
|
4805
|
-
var S;
|
|
4806
|
-
a.value = g, (S = l.onDrop) == null || S.call(l, g, t);
|
|
4807
|
-
}
|
|
4808
|
-
break;
|
|
4809
|
-
}
|
|
4810
|
-
};
|
|
4811
|
-
useEventListener(t, "dragenter", (t) => y(t, "enter")), useEventListener(t, "dragover", (t) => y(t, "over")), useEventListener(t, "dragleave", (t) => y(t, "leave")), useEventListener(t, "drop", (t) => y(t, "drop"));
|
|
4812
|
-
}
|
|
4813
|
-
return {
|
|
4814
|
-
files: a,
|
|
4815
|
-
isOverDropZone: i
|
|
4816
|
-
};
|
|
4817
|
-
}
|
|
4818
|
-
function useResizeObserver(t, n, i = {}) {
|
|
4819
|
-
let { window: a = defaultWindow, ...s } = i, l, u = /* @__PURE__ */ useSupported(() => a && "ResizeObserver" in a), d = () => {
|
|
4820
|
-
l &&= (l.disconnect(), void 0);
|
|
4821
|
-
}, m = watch(computed(() => {
|
|
4822
|
-
let n = toValue(t);
|
|
4823
|
-
return Array.isArray(n) ? n.map((t) => unrefElement(t)) : [unrefElement(n)];
|
|
4824
|
-
}), (t) => {
|
|
4825
|
-
if (d(), u.value && a) {
|
|
4826
|
-
l = new ResizeObserver(n);
|
|
4827
|
-
for (let n of t) n && l.observe(n, s);
|
|
4828
|
-
}
|
|
4829
|
-
}, {
|
|
4830
|
-
immediate: !0,
|
|
4831
|
-
flush: "post"
|
|
4832
|
-
}), g = () => {
|
|
4833
|
-
d(), m();
|
|
4834
|
-
};
|
|
4835
|
-
return tryOnScopeDispose(g), {
|
|
4836
|
-
isSupported: u,
|
|
4837
|
-
stop: g
|
|
4838
|
-
};
|
|
4839
|
-
}
|
|
4840
|
-
function useElementBounding(t, n = {}) {
|
|
4841
|
-
let { reset: i = !0, windowResize: a = !0, windowScroll: o = !0, immediate: s = !0, updateTiming: l = "sync" } = n, u = shallowRef(0), d = shallowRef(0), m = shallowRef(0), g = shallowRef(0), _ = shallowRef(0), v = shallowRef(0), y = shallowRef(0), b = shallowRef(0);
|
|
4842
|
-
function x() {
|
|
4843
|
-
let n = unrefElement(t);
|
|
4844
|
-
if (!n) {
|
|
4845
|
-
i && (u.value = 0, d.value = 0, m.value = 0, g.value = 0, _.value = 0, v.value = 0, y.value = 0, b.value = 0);
|
|
4846
|
-
return;
|
|
4847
|
-
}
|
|
4848
|
-
let a = n.getBoundingClientRect();
|
|
4849
|
-
u.value = a.height, d.value = a.bottom, m.value = a.left, g.value = a.right, _.value = a.top, v.value = a.width, y.value = a.x, b.value = a.y;
|
|
4850
|
-
}
|
|
4851
|
-
function S() {
|
|
4852
|
-
l === "sync" ? x() : l === "next-frame" && requestAnimationFrame(() => x());
|
|
4853
|
-
}
|
|
4854
|
-
return useResizeObserver(t, S), watch(() => unrefElement(t), (t) => !t && S()), useMutationObserver(t, S, { attributeFilter: ["style", "class"] }), o && useEventListener("scroll", S, {
|
|
4855
|
-
capture: !0,
|
|
4856
|
-
passive: !0
|
|
4857
|
-
}), a && useEventListener("resize", S, { passive: !0 }), tryOnMounted(() => {
|
|
4858
|
-
s && S();
|
|
4859
|
-
}), {
|
|
4860
|
-
height: u,
|
|
4861
|
-
bottom: d,
|
|
4862
|
-
left: m,
|
|
4863
|
-
right: g,
|
|
4864
|
-
top: _,
|
|
4865
|
-
width: v,
|
|
4866
|
-
x: y,
|
|
4867
|
-
y: b,
|
|
4868
|
-
update: S
|
|
4869
|
-
};
|
|
4870
|
-
}
|
|
4871
|
-
function useElementHover(t, n = {}) {
|
|
4872
|
-
let { delayEnter: i = 0, delayLeave: a = 0, triggerOnRemoval: s = !1, window: l = defaultWindow } = n, u = shallowRef(!1), d, m = (t) => {
|
|
4873
|
-
let n = t ? i : a;
|
|
4874
|
-
d &&= (clearTimeout(d), void 0), n ? d = setTimeout(() => u.value = t, n) : u.value = t;
|
|
4875
|
-
};
|
|
4876
|
-
return l ? (useEventListener(t, "mouseenter", () => m(!0), { passive: !0 }), useEventListener(t, "mouseleave", () => m(!1), { passive: !0 }), s && onElementRemoval(computed(() => unrefElement(t)), () => m(!1)), u) : u;
|
|
4877
|
-
}
|
|
4878
|
-
var DEFAULT_OPTIONS = {
|
|
4879
|
-
multiple: !0,
|
|
4880
|
-
accept: "*",
|
|
4881
|
-
reset: !1,
|
|
4882
|
-
directory: !1
|
|
4883
|
-
};
|
|
4884
|
-
function prepareInitialFiles(t) {
|
|
4885
|
-
if (!t) return null;
|
|
4886
|
-
if (t instanceof FileList) return t;
|
|
4887
|
-
let n = new DataTransfer();
|
|
4888
|
-
for (let i of t) n.items.add(i);
|
|
4889
|
-
return n.files;
|
|
4890
|
-
}
|
|
4891
|
-
function useFileDialog(t = {}) {
|
|
4892
|
-
let { document: n = defaultDocument } = t, i = ref(prepareInitialFiles(t.initialFiles)), { on: a, trigger: s } = createEventHook(), { on: l, trigger: u } = createEventHook(), d = computed(() => {
|
|
4893
|
-
let a = unrefElement(t.input) ?? (n ? n.createElement("input") : void 0);
|
|
4894
|
-
return a && (a.type = "file", a.onchange = (t) => {
|
|
4895
|
-
i.value = t.target.files, s(i.value);
|
|
4896
|
-
}, a.oncancel = () => {
|
|
4897
|
-
u();
|
|
4898
|
-
}), a;
|
|
4899
|
-
}), m = () => {
|
|
4900
|
-
i.value = null, d.value && d.value.value && (d.value.value = "", s(null));
|
|
4901
|
-
}, g = (t) => {
|
|
4902
|
-
let n = d.value;
|
|
4903
|
-
n && (n.multiple = toValue(t.multiple), n.accept = toValue(t.accept), n.webkitdirectory = toValue(t.directory), hasOwn(t, "capture") && (n.capture = toValue(t.capture)));
|
|
4904
|
-
};
|
|
4905
|
-
return watchEffect(() => {
|
|
4906
|
-
g(t);
|
|
4907
|
-
}), {
|
|
4908
|
-
files: readonly(i),
|
|
4909
|
-
open: (n) => {
|
|
4910
|
-
let i = d.value;
|
|
4911
|
-
if (!i) return;
|
|
4912
|
-
let a = {
|
|
4913
|
-
...DEFAULT_OPTIONS,
|
|
4914
|
-
...t,
|
|
4915
|
-
...n
|
|
4916
|
-
};
|
|
4917
|
-
g(a), toValue(a.reset) && m(), i.click();
|
|
4918
|
-
},
|
|
4919
|
-
reset: m,
|
|
4920
|
-
onCancel: l,
|
|
4921
|
-
onChange: a
|
|
4922
|
-
};
|
|
4923
|
-
}
|
|
4924
|
-
var ARRIVED_STATE_THRESHOLD_PIXELS = 1;
|
|
4925
|
-
function useScroll(t, n = {}) {
|
|
4926
|
-
let { throttle: i = 0, idle: a = 200, onStop: s = noop, onScroll: l = noop, offset: u = {
|
|
4927
|
-
left: 0,
|
|
4928
|
-
right: 0,
|
|
4929
|
-
top: 0,
|
|
4930
|
-
bottom: 0
|
|
4931
|
-
}, observe: d = { mutation: !1 }, eventListenerOptions: m = {
|
|
4932
|
-
capture: !1,
|
|
4933
|
-
passive: !0
|
|
4934
|
-
}, behavior: g = "auto", window: _ = defaultWindow, onError: v = (t) => {
|
|
4935
|
-
console.error(t);
|
|
4936
|
-
} } = n, y = typeof d == "boolean" ? { mutation: d } : d, b = shallowRef(0), x = shallowRef(0), S = computed({
|
|
4937
|
-
get() {
|
|
4938
|
-
return b.value;
|
|
4939
|
-
},
|
|
4940
|
-
set(t) {
|
|
4941
|
-
w(t, void 0);
|
|
4942
|
-
}
|
|
4943
|
-
}), C = computed({
|
|
4944
|
-
get() {
|
|
4945
|
-
return x.value;
|
|
4946
|
-
},
|
|
4947
|
-
set(t) {
|
|
4948
|
-
w(void 0, t);
|
|
4949
|
-
}
|
|
4950
|
-
});
|
|
4951
|
-
function w(n, i) {
|
|
4952
|
-
var a, o;
|
|
4953
|
-
if (!_) return;
|
|
4954
|
-
let s = toValue(t);
|
|
4955
|
-
if (!s) return;
|
|
4956
|
-
(a = s instanceof Document ? _.document.body : s) == null || a.scrollTo({
|
|
4957
|
-
top: toValue(i) ?? C.value,
|
|
4958
|
-
left: toValue(n) ?? S.value,
|
|
4959
|
-
behavior: toValue(g)
|
|
4960
|
-
});
|
|
4961
|
-
let l = (s == null || (o = s.document) == null ? void 0 : o.documentElement) || s?.documentElement || s;
|
|
4962
|
-
S != null && (b.value = l.scrollLeft), C != null && (x.value = l.scrollTop);
|
|
4963
|
-
}
|
|
4964
|
-
let T = shallowRef(!1), E = reactive({
|
|
4965
|
-
left: !0,
|
|
4966
|
-
right: !1,
|
|
4967
|
-
top: !0,
|
|
4968
|
-
bottom: !1
|
|
4969
|
-
}), D = reactive({
|
|
4970
|
-
left: !1,
|
|
4971
|
-
right: !1,
|
|
4972
|
-
top: !1,
|
|
4973
|
-
bottom: !1
|
|
4974
|
-
}), O = (t) => {
|
|
4975
|
-
T.value && (T.value = !1, D.left = !1, D.right = !1, D.top = !1, D.bottom = !1, s(t));
|
|
4976
|
-
}, A = useDebounceFn(O, i + a), j = (t) => {
|
|
4977
|
-
var n;
|
|
4978
|
-
if (!_) return;
|
|
4979
|
-
let i = (t == null || (n = t.document) == null ? void 0 : n.documentElement) || t?.documentElement || unrefElement(t), { display: a, flexDirection: o, direction: s } = getComputedStyle(i), l = s === "rtl" ? -1 : 1, d = i.scrollLeft;
|
|
4980
|
-
D.left = d < b.value, D.right = d > b.value;
|
|
4981
|
-
let m = Math.abs(d * l) <= (u.left || 0), g = Math.abs(d * l) + i.clientWidth >= i.scrollWidth - (u.right || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
|
|
4982
|
-
a === "flex" && o === "row-reverse" ? (E.left = g, E.right = m) : (E.left = m, E.right = g), b.value = d;
|
|
4983
|
-
let v = i.scrollTop;
|
|
4984
|
-
t === _.document && !v && (v = _.document.body.scrollTop), D.top = v < x.value, D.bottom = v > x.value;
|
|
4985
|
-
let y = Math.abs(v) <= (u.top || 0), S = Math.abs(v) + i.clientHeight >= i.scrollHeight - (u.bottom || 0) - ARRIVED_STATE_THRESHOLD_PIXELS;
|
|
4986
|
-
a === "flex" && o === "column-reverse" ? (E.top = S, E.bottom = y) : (E.top = y, E.bottom = S), x.value = v;
|
|
4987
|
-
}, N = (t) => {
|
|
4988
|
-
_ && (j(t.target.documentElement ?? t.target), T.value = !0, A(t), l(t));
|
|
4989
|
-
};
|
|
4990
|
-
return useEventListener(t, "scroll", i ? useThrottleFn(N, i, !0, !1) : N, m), tryOnMounted(() => {
|
|
4991
|
-
try {
|
|
4992
|
-
let n = toValue(t);
|
|
4993
|
-
if (!n) return;
|
|
4994
|
-
j(n);
|
|
4995
|
-
} catch (t) {
|
|
4996
|
-
v(t);
|
|
4997
|
-
}
|
|
4998
|
-
}), y?.mutation && t != null && t !== _ && t !== document && useMutationObserver(t, () => {
|
|
4999
|
-
let n = toValue(t);
|
|
5000
|
-
n && j(n);
|
|
5001
|
-
}, {
|
|
5002
|
-
attributes: !0,
|
|
5003
|
-
childList: !0,
|
|
5004
|
-
subtree: !0
|
|
5005
|
-
}), useEventListener(t, "scrollend", O, m), {
|
|
5006
|
-
x: S,
|
|
5007
|
-
y: C,
|
|
5008
|
-
isScrolling: T,
|
|
5009
|
-
arrivedState: E,
|
|
5010
|
-
directions: D,
|
|
5011
|
-
measure() {
|
|
5012
|
-
let n = toValue(t);
|
|
5013
|
-
_ && n && j(n);
|
|
5014
|
-
}
|
|
5015
|
-
};
|
|
5016
|
-
}
|
|
5017
|
-
function useLocalStorage(t, n, i = {}) {
|
|
5018
|
-
let { window: a = defaultWindow } = i;
|
|
5019
|
-
return useStorage(t, n, a?.localStorage, i);
|
|
5020
|
-
}
|
|
5021
|
-
var DefaultMagicKeysAliasMap = {
|
|
5022
|
-
ctrl: "control",
|
|
5023
|
-
command: "meta",
|
|
5024
|
-
cmd: "meta",
|
|
5025
|
-
option: "alt",
|
|
5026
|
-
up: "arrowup",
|
|
5027
|
-
down: "arrowdown",
|
|
5028
|
-
left: "arrowleft",
|
|
5029
|
-
right: "arrowright"
|
|
5030
|
-
};
|
|
5031
|
-
function useMagicKeys(t = {}) {
|
|
5032
|
-
let { reactive: n = !1, target: i = defaultWindow, aliasMap: a = DefaultMagicKeysAliasMap, passive: s = !0, onEventFired: l = noop } = t, u = reactive(/* @__PURE__ */ new Set()), d = {
|
|
5033
|
-
toJSON() {
|
|
5034
|
-
return {};
|
|
5035
|
-
},
|
|
5036
|
-
current: u
|
|
5037
|
-
}, m = n ? reactive(d) : d, g = /* @__PURE__ */ new Set(), _ = new Map([
|
|
5038
|
-
["Meta", g],
|
|
5039
|
-
["Shift", /* @__PURE__ */ new Set()],
|
|
5040
|
-
["Alt", /* @__PURE__ */ new Set()]
|
|
5041
|
-
]), v = /* @__PURE__ */ new Set();
|
|
5042
|
-
function y(t, i) {
|
|
5043
|
-
t in m && (n ? m[t] = i : m[t].value = i);
|
|
5044
|
-
}
|
|
5045
|
-
function b() {
|
|
5046
|
-
u.clear();
|
|
5047
|
-
for (let t of v) y(t, !1);
|
|
5048
|
-
}
|
|
5049
|
-
function x(t, n, i) {
|
|
5050
|
-
if (!(!t || typeof n.getModifierState != "function")) {
|
|
5051
|
-
for (let [t, a] of _) if (n.getModifierState(t)) {
|
|
5052
|
-
i.forEach((t) => a.add(t));
|
|
5053
|
-
break;
|
|
5054
|
-
}
|
|
5055
|
-
}
|
|
5056
|
-
}
|
|
5057
|
-
function S(t, n) {
|
|
5058
|
-
if (t) return;
|
|
5059
|
-
let i = `${n[0].toUpperCase()}${n.slice(1)}`, a = _.get(i);
|
|
5060
|
-
if (!["shift", "alt"].includes(n) || !a) return;
|
|
5061
|
-
let o = Array.from(a), s = o.indexOf(n);
|
|
5062
|
-
o.forEach((t, n) => {
|
|
5063
|
-
n >= s && (u.delete(t), y(t, !1));
|
|
5064
|
-
}), a.clear();
|
|
5065
|
-
}
|
|
5066
|
-
function C(t, n) {
|
|
5067
|
-
let i = t.key?.toLowerCase(), a = [t.code?.toLowerCase(), i].filter(Boolean);
|
|
5068
|
-
i && (n ? u.add(i) : u.delete(i));
|
|
5069
|
-
for (let t of a) v.add(t), y(t, n);
|
|
5070
|
-
x(n, t, [...u, ...a]), S(n, i), i === "meta" && !n && (g.forEach((t) => {
|
|
5071
|
-
u.delete(t), y(t, !1);
|
|
5072
|
-
}), g.clear());
|
|
5073
|
-
}
|
|
5074
|
-
useEventListener(i, "keydown", (t) => (C(t, !0), l(t)), { passive: s }), useEventListener(i, "keyup", (t) => (C(t, !1), l(t)), { passive: s }), useEventListener("blur", b, { passive: s }), useEventListener("focus", b, { passive: s });
|
|
5075
|
-
let w = new Proxy(m, { get(t, i, s) {
|
|
5076
|
-
if (typeof i != "string") return Reflect.get(t, i, s);
|
|
5077
|
-
if (i = i.toLowerCase(), i in a && (i = a[i]), !(i in m)) if (/[+_-]/.test(i)) {
|
|
5078
|
-
let t = i.split(/[+_-]/g).map((t) => t.trim());
|
|
5079
|
-
m[i] = computed(() => t.map((t) => toValue(w[t])).every(Boolean));
|
|
5080
|
-
} else m[i] = shallowRef(!1);
|
|
5081
|
-
let l = Reflect.get(t, i, s);
|
|
5082
|
-
return n ? toValue(l) : l;
|
|
5083
|
-
} });
|
|
5084
|
-
return w;
|
|
5085
|
-
}
|
|
5086
|
-
var UseMouseBuiltinExtractors = {
|
|
5087
|
-
page: (t) => [t.pageX, t.pageY],
|
|
5088
|
-
client: (t) => [t.clientX, t.clientY],
|
|
5089
|
-
screen: (t) => [t.screenX, t.screenY],
|
|
5090
|
-
movement: (t) => t instanceof MouseEvent ? [t.movementX, t.movementY] : null
|
|
5091
|
-
};
|
|
5092
|
-
function useMouse(t = {}) {
|
|
5093
|
-
let { type: n = "page", touch: i = !0, resetOnTouchEnds: a = !1, initialValue: o = {
|
|
5094
|
-
x: 0,
|
|
5095
|
-
y: 0
|
|
5096
|
-
}, window: s = defaultWindow, target: l = s, scroll: u = !0, eventFilter: d } = t, m = null, g = 0, _ = 0, v = shallowRef(o.x), y = shallowRef(o.y), b = shallowRef(null), x = typeof n == "function" ? n : UseMouseBuiltinExtractors[n], S = (t) => {
|
|
5097
|
-
let n = x(t);
|
|
5098
|
-
m = t, n && ([v.value, y.value] = n, b.value = "mouse"), s && (g = s.scrollX, _ = s.scrollY);
|
|
5099
|
-
}, C = (t) => {
|
|
5100
|
-
if (t.touches.length > 0) {
|
|
5101
|
-
let n = x(t.touches[0]);
|
|
5102
|
-
n && ([v.value, y.value] = n, b.value = "touch");
|
|
5103
|
-
}
|
|
5104
|
-
}, w = () => {
|
|
5105
|
-
if (!m || !s) return;
|
|
5106
|
-
let t = x(m);
|
|
5107
|
-
m instanceof MouseEvent && t && (v.value = t[0] + s.scrollX - g, y.value = t[1] + s.scrollY - _);
|
|
5108
|
-
}, T = () => {
|
|
5109
|
-
v.value = o.x, y.value = o.y;
|
|
5110
|
-
}, E = d ? (t) => d(() => S(t), {}) : (t) => S(t), D = d ? (t) => d(() => C(t), {}) : (t) => C(t), O = d ? () => d(() => w(), {}) : () => w();
|
|
5111
|
-
if (l) {
|
|
5112
|
-
let t = { passive: !0 };
|
|
5113
|
-
useEventListener(l, ["mousemove", "dragover"], E, t), i && n !== "movement" && (useEventListener(l, ["touchstart", "touchmove"], D, t), a && useEventListener(l, "touchend", T, t)), u && n === "page" && useEventListener(s, "scroll", O, t);
|
|
5114
|
-
}
|
|
5115
|
-
return {
|
|
5116
|
-
x: v,
|
|
5117
|
-
y,
|
|
5118
|
-
sourceType: b
|
|
5119
|
-
};
|
|
5120
|
-
}
|
|
5121
|
-
var Btn_default = /* @__PURE__ */ defineComponent({
|
|
4346
|
+
}), Btn_default = /* @__PURE__ */ defineComponent({
|
|
5122
4347
|
__name: "Btn",
|
|
5123
4348
|
props: {
|
|
5124
4349
|
type: { default: "button" },
|
|
@@ -5152,15 +4377,15 @@ var Btn_default = /* @__PURE__ */ defineComponent({
|
|
|
5152
4377
|
switch (d.value.size) {
|
|
5153
4378
|
case "sm": return {
|
|
5154
4379
|
normalContent: "min-w-16 h-6 px-2 py-1 text-xs gap-1",
|
|
5155
|
-
iconContent: "h-6 w-6 p-1"
|
|
4380
|
+
iconContent: "h-6 w-6 p-1 text-base"
|
|
5156
4381
|
};
|
|
5157
4382
|
case "lg": return {
|
|
5158
4383
|
normalContent: "min-w-24 h-10 px-4 py-2 text-base gap-2",
|
|
5159
|
-
iconContent: "h-10 w-10 p-2.5"
|
|
4384
|
+
iconContent: "h-10 w-10 p-2.5 text-2xl"
|
|
5160
4385
|
};
|
|
5161
4386
|
default: return {
|
|
5162
4387
|
normalContent: "min-w-20 h-8 px-3 py-1 text-sm gap-1.5",
|
|
5163
|
-
iconContent: "h-8 w-8 p-2"
|
|
4388
|
+
iconContent: "h-8 w-8 p-2 text-xl"
|
|
5164
4389
|
};
|
|
5165
4390
|
}
|
|
5166
4391
|
}), _ = ref(null), v = useElementHover(_), y = computed(() => n.hoverVariant && v.value ? n.hoverVariant : d.value.variant ?? "default"), b = computed(() => d.value.color ?? i.value.defaultColor), x = useButtonCS(y, b), S = useOutlineCS(computed(() => n.outlineColor ?? b.value));
|
|
@@ -5266,7 +4491,7 @@ var Btn_default = /* @__PURE__ */ defineComponent({
|
|
|
5266
4491
|
"onClick"
|
|
5267
4492
|
]))), 128))], 2));
|
|
5268
4493
|
}
|
|
5269
|
-
}), _hoisted_1$
|
|
4494
|
+
}), _hoisted_1$27 = { class: "flex gap-1 items-center" }, _hoisted_2$16 = { class: "flex gap-1 items-center" }, _hoisted_3$13 = { class: "bg-container border-container border-x border-b border-t grid grid-cols-7 divide-x" }, _hoisted_4$9 = { class: "border-container border-x grid grid-cols-7 divide-x" }, _hoisted_5$6 = ["onClick", "onMouseenter"], _hoisted_6$4 = {
|
|
5270
4495
|
key: 0,
|
|
5271
4496
|
class: "bg-primary opacity-20 inset-0 absolute z-0"
|
|
5272
4497
|
}, _hoisted_7$1 = {
|
|
@@ -5463,7 +4688,7 @@ var Btn_default = /* @__PURE__ */ defineComponent({
|
|
|
5463
4688
|
style: normalizeStyle([unref(b).style])
|
|
5464
4689
|
}, [
|
|
5465
4690
|
createElementVNode("div", { class: normalizeClass(["bg-container border-container flex items-center justify-between", [x.value.header]]) }, [
|
|
5466
|
-
createElementVNode("div", _hoisted_1$
|
|
4691
|
+
createElementVNode("div", _hoisted_1$27, [createVNode(unref(Btn_default), {
|
|
5467
4692
|
size: "sm",
|
|
5468
4693
|
variant: "transparent",
|
|
5469
4694
|
icon: "",
|
|
@@ -5608,7 +4833,7 @@ function useSchemeString() {
|
|
|
5608
4833
|
attributeFilter: ["data-scheme"]
|
|
5609
4834
|
}), t;
|
|
5610
4835
|
}
|
|
5611
|
-
var _hoisted_1$
|
|
4836
|
+
var _hoisted_1$26 = ["for"], _hoisted_2$15 = { key: 1 }, _hoisted_3$12 = [
|
|
5612
4837
|
"id",
|
|
5613
4838
|
"value",
|
|
5614
4839
|
"disabled",
|
|
@@ -5680,7 +4905,7 @@ var _hoisted_1$25 = ["for"], _hoisted_2$15 = { key: 1 }, _hoisted_3$12 = [
|
|
|
5680
4905
|
key: 0,
|
|
5681
4906
|
for: unref(C),
|
|
5682
4907
|
class: normalizeClass(["mb-1 block", [m.value]])
|
|
5683
|
-
}, [n.$slots.label ? renderSlot(n.$slots, "label", { key: 0 }) : (openBlock(), createElementBlock("span", _hoisted_2$15, toDisplayString(t.label), 1))], 10, _hoisted_1$
|
|
4908
|
+
}, [n.$slots.label ? renderSlot(n.$slots, "label", { key: 0 }) : (openBlock(), createElementBlock("span", _hoisted_2$15, toDisplayString(t.label), 1))], 10, _hoisted_1$26)) : createCommentVNode("", !0), createVNode(unref(Popover_default), {
|
|
5684
4909
|
modelValue: S.value,
|
|
5685
4910
|
"onUpdate:modelValue": i[0] ||= (t) => S.value = t,
|
|
5686
4911
|
position: "bottom-start",
|
|
@@ -5735,9 +4960,9 @@ var _hoisted_1$25 = ["for"], _hoisted_2$15 = { key: 1 }, _hoisted_3$12 = [
|
|
|
5735
4960
|
let i = t.__vccOpts || t;
|
|
5736
4961
|
for (let [t, a] of n) i[t] = a;
|
|
5737
4962
|
return i;
|
|
5738
|
-
}, _sfc_main = {}, _hoisted_1$
|
|
4963
|
+
}, _sfc_main = {}, _hoisted_1$25 = { class: "container flex flex-col gap-4" };
|
|
5739
4964
|
function _sfc_render(t, n) {
|
|
5740
|
-
return openBlock(), createElementBlock("div", _hoisted_1$
|
|
4965
|
+
return openBlock(), createElementBlock("div", _hoisted_1$25, [renderSlot(t.$slots, "default")]);
|
|
5741
4966
|
}
|
|
5742
4967
|
var ChatContainer_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_sfc_main, [["render", _sfc_render]]), ChatMessage_default = /* @__PURE__ */ defineComponent({
|
|
5743
4968
|
__name: "ChatMessage",
|
|
@@ -5769,7 +4994,7 @@ var ChatContainer_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_
|
|
|
5769
4994
|
style: normalizeStyle([unref(i).style])
|
|
5770
4995
|
}, [renderSlot(n.$slots, "default")], 6)], 2));
|
|
5771
4996
|
}
|
|
5772
|
-
}), _hoisted_1$
|
|
4997
|
+
}), _hoisted_1$24 = { class: "text-center flex gap-2 w-full self-center" }, ChatSystem_default = /* @__PURE__ */ defineComponent({
|
|
5773
4998
|
__name: "ChatSystem",
|
|
5774
4999
|
props: {
|
|
5775
5000
|
position: {},
|
|
@@ -5782,12 +5007,12 @@ var ChatContainer_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_
|
|
|
5782
5007
|
},
|
|
5783
5008
|
setup(t) {
|
|
5784
5009
|
let n = t, i = useContainerCS(computed(() => n.variant), computed(() => n.color));
|
|
5785
|
-
return (t, n) => (openBlock(), createElementBlock("div", _hoisted_1$
|
|
5010
|
+
return (t, n) => (openBlock(), createElementBlock("div", _hoisted_1$24, [createElementVNode("div", {
|
|
5786
5011
|
class: normalizeClass(["px-3 py-2 rounded-xl w-full", [unref(i).class]]),
|
|
5787
5012
|
style: normalizeStyle(unref(i).style)
|
|
5788
5013
|
}, [renderSlot(t.$slots, "default")], 6)]));
|
|
5789
5014
|
}
|
|
5790
|
-
}), _hoisted_1$
|
|
5015
|
+
}), _hoisted_1$23 = ["aria-checked"], _hoisted_2$14 = ["id", "disabled"], _hoisted_3$11 = ["for"], _hoisted_4$8 = ["for"], Checkbox_default = /* @__PURE__ */ defineComponent({
|
|
5791
5016
|
inheritAttrs: !1,
|
|
5792
5017
|
__name: "Checkbox",
|
|
5793
5018
|
props: /* @__PURE__ */ mergeModels({
|
|
@@ -5933,7 +5158,7 @@ var ChatContainer_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_
|
|
|
5933
5158
|
for: unref(w),
|
|
5934
5159
|
class: "cursor-pointer select-none"
|
|
5935
5160
|
}, toDisplayString(t.label), 9, _hoisted_4$8)) : createCommentVNode("", !0)
|
|
5936
|
-
], 14, _hoisted_1$
|
|
5161
|
+
], 14, _hoisted_1$23));
|
|
5937
5162
|
}
|
|
5938
5163
|
}), Chip_default = /* @__PURE__ */ defineComponent({
|
|
5939
5164
|
__name: "Chip",
|
|
@@ -5967,7 +5192,7 @@ var ChatContainer_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_
|
|
|
5967
5192
|
t.$slots.rightSection ? renderSlot(t.$slots, "rightSection", { key: 1 }) : createCommentVNode("", !0)
|
|
5968
5193
|
], 6));
|
|
5969
5194
|
}
|
|
5970
|
-
}), _hoisted_1$
|
|
5195
|
+
}), _hoisted_1$22 = ["for"], _hoisted_2$13 = { key: 1 }, _hoisted_3$10 = {
|
|
5971
5196
|
key: 0,
|
|
5972
5197
|
class: "flex items-center justify-center"
|
|
5973
5198
|
}, _hoisted_4$7 = ["value", "disabled"], _hoisted_5$5 = [
|
|
@@ -6059,7 +5284,7 @@ var ChatContainer_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_
|
|
|
6059
5284
|
key: 0,
|
|
6060
5285
|
for: unref(C),
|
|
6061
5286
|
class: normalizeClass(["mb-1 block", [_.value]])
|
|
6062
|
-
}, [n.$slots.label ? renderSlot(n.$slots, "label", { key: 0 }) : (openBlock(), createElementBlock("span", _hoisted_2$13, toDisplayString(t.label), 1))], 10, _hoisted_1$
|
|
5287
|
+
}, [n.$slots.label ? renderSlot(n.$slots, "label", { key: 0 }) : (openBlock(), createElementBlock("span", _hoisted_2$13, toDisplayString(t.label), 1))], 10, _hoisted_1$22)) : createCommentVNode("", !0), createElementVNode("div", {
|
|
6063
5288
|
class: normalizeClass(["custom-input-colors outline-none border inline-flex items-center relative", [
|
|
6064
5289
|
y.value,
|
|
6065
5290
|
unref(b).class,
|
|
@@ -6112,7 +5337,7 @@ var ChatContainer_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_
|
|
|
6112
5337
|
setup(t) {
|
|
6113
5338
|
return (n, i) => (openBlock(), createBlock(resolveDynamicComponent(t.is), mergeProps({ class: ["border rounded-full h-6 w-6", [{ border: t.withBorder }]] }, unref(borderCS), { style: { backgroundColor: t.color } }), null, 16, ["class", "style"]));
|
|
6114
5339
|
}
|
|
6115
|
-
}), _hoisted_1$
|
|
5340
|
+
}), _hoisted_1$21 = { class: "p-4 flex justify-end md:px-6 md:py-4 md:pb-0" }, _hoisted_2$12 = { class: "px-4 flex flex-col h-full items-center justify-center md:px-6" }, Drawer_default = /* @__PURE__ */ defineComponent({
|
|
6116
5341
|
__name: "Drawer",
|
|
6117
5342
|
props: /* @__PURE__ */ mergeModels({
|
|
6118
5343
|
persistent: {
|
|
@@ -6148,7 +5373,7 @@ var ChatContainer_default = /* @__PURE__ */ __plugin_vue_export_helper_default(_
|
|
|
6148
5373
|
default: withCtx(() => [a.value ? (openBlock(), createElementBlock("div", {
|
|
6149
5374
|
key: 0,
|
|
6150
5375
|
class: normalizeClass(["bg-surface-low h-full w-full fixed md:w-md", t.position === "left" ? "left-0" : "right-0"])
|
|
6151
|
-
}, [createElementVNode("div", _hoisted_1$
|
|
5376
|
+
}, [createElementVNode("div", _hoisted_1$21, [createVNode(unref(Btn_default), {
|
|
6152
5377
|
icon: "",
|
|
6153
5378
|
variant: "transparent",
|
|
6154
5379
|
class: "text-surface-on hover:text-surface-on",
|
|
@@ -6290,6 +5515,75 @@ var FullscreenOverlay_default = /* @__PURE__ */ defineComponent({
|
|
|
6290
5515
|
onMouseup: b
|
|
6291
5516
|
}, [renderSlot(a.$slots, "default")], 34)) : createCommentVNode("", !0)], 8, ["to"]));
|
|
6292
5517
|
}
|
|
5518
|
+
}), _hoisted_1$20 = ["data-size"], Icon_default = /* @__PURE__ */ defineComponent({
|
|
5519
|
+
__name: "Icon",
|
|
5520
|
+
props: {
|
|
5521
|
+
icon: { default: void 0 },
|
|
5522
|
+
size: { default: void 0 },
|
|
5523
|
+
variant: { default: void 0 },
|
|
5524
|
+
color: { default: void 0 },
|
|
5525
|
+
rounded: { default: void 0 },
|
|
5526
|
+
outlineColor: { default: void 0 },
|
|
5527
|
+
skeleton: {
|
|
5528
|
+
type: Boolean,
|
|
5529
|
+
default: !1
|
|
5530
|
+
}
|
|
5531
|
+
},
|
|
5532
|
+
setup(t) {
|
|
5533
|
+
let n = t;
|
|
5534
|
+
useSlots();
|
|
5535
|
+
let i = useTheme(), a = useComponentDefaults("Icon"), l = computed(() => ({
|
|
5536
|
+
...n,
|
|
5537
|
+
size: n.size ?? a?.size ?? i.value.defaultSize,
|
|
5538
|
+
color: n.color ?? a?.color ?? i.value.defaultColor,
|
|
5539
|
+
variant: n.variant ?? a?.variant,
|
|
5540
|
+
rounded: n.rounded ?? a?.rounded ?? i.value.rounded,
|
|
5541
|
+
outlineColor: n.outlineColor ?? a?.outlineColor
|
|
5542
|
+
})), d = useRounded(l.value), m = computed(() => l.value.variant ?? "default"), g = computed(() => l.value.color), _ = computed(() => l.value.outlineColor ?? g.value), v = useButtonCS(m, g), y = useOutlineCS(_), b = computed(() => {
|
|
5543
|
+
let t = v.value.style, n = {};
|
|
5544
|
+
for (let [i, a] of [
|
|
5545
|
+
["--d-bg-h", "--d-bg"],
|
|
5546
|
+
["--l-bg-h", "--l-bg"],
|
|
5547
|
+
["--d-text-h", "--d-text"],
|
|
5548
|
+
["--l-text-h", "--l-text"],
|
|
5549
|
+
["--d-border-h", "--d-border"],
|
|
5550
|
+
["--l-border-h", "--l-border"]
|
|
5551
|
+
]) {
|
|
5552
|
+
let o = t[a], s = t[i];
|
|
5553
|
+
o ? n[i] = o : s && (n[i] = s);
|
|
5554
|
+
}
|
|
5555
|
+
return n;
|
|
5556
|
+
}), x = computed(() => {
|
|
5557
|
+
switch (l.value.size) {
|
|
5558
|
+
case "sm": return "h-6 w-6 p-1 text-base";
|
|
5559
|
+
case "lg": return "h-10 w-10 p-2.5 text-2xl";
|
|
5560
|
+
default: return "h-8 w-8 p-2 text-xl";
|
|
5561
|
+
}
|
|
5562
|
+
}), S = computed(() => typeof n.icon == "string" ? "i" : n.icon), C = computed(() => typeof n.icon == "string" ? n.icon : "");
|
|
5563
|
+
return (n, i) => t.skeleton ? (openBlock(), createElementBlock("span", {
|
|
5564
|
+
key: 0,
|
|
5565
|
+
class: normalizeClass(["bg-container inline-flex animate-pulse", [unref(d).class, x.value]]),
|
|
5566
|
+
style: normalizeStyle(unref(d).style)
|
|
5567
|
+
}, null, 6)) : (openBlock(), createElementBlock("span", mergeProps({
|
|
5568
|
+
key: 1,
|
|
5569
|
+
"data-size": l.value.size,
|
|
5570
|
+
class: ["inline-flex select-none items-center justify-center children:flex-shrink-0", [
|
|
5571
|
+
unref(v).class,
|
|
5572
|
+
unref(d).class,
|
|
5573
|
+
unref(y).class,
|
|
5574
|
+
x.value
|
|
5575
|
+
]],
|
|
5576
|
+
style: [
|
|
5577
|
+
unref(v).style,
|
|
5578
|
+
b.value,
|
|
5579
|
+
unref(d).style,
|
|
5580
|
+
unref(y).style
|
|
5581
|
+
]
|
|
5582
|
+
}, n.$attrs), [t.icon ? (openBlock(), createBlock(resolveDynamicComponent(S.value), {
|
|
5583
|
+
key: 0,
|
|
5584
|
+
class: normalizeClass(C.value)
|
|
5585
|
+
}, null, 8, ["class"])) : renderSlot(n.$slots, "default", { key: 1 })], 16, _hoisted_1$20));
|
|
5586
|
+
}
|
|
6293
5587
|
}), Image_default = /* @__PURE__ */ defineComponent({
|
|
6294
5588
|
__name: "Image",
|
|
6295
5589
|
props: {
|
|
@@ -6464,62 +5758,62 @@ var _hoisted_1$18 = ["aria-hidden"], _hoisted_2$11 = {
|
|
|
6464
5758
|
watchEffect(() => {
|
|
6465
5759
|
S.value || (z.value = [-1]);
|
|
6466
5760
|
}), provide("menuCurrentIdx", z);
|
|
6467
|
-
function
|
|
5761
|
+
function U(t, n) {
|
|
6468
5762
|
let i = t;
|
|
6469
5763
|
if (n.length <= 1) return i.length;
|
|
6470
5764
|
let a = n[0];
|
|
6471
5765
|
if (a === void 0 || a < 0 || a >= i.length) return 0;
|
|
6472
5766
|
let o = i[a];
|
|
6473
|
-
return !isMenuItem(o) || o.children === void 0 ? 0 :
|
|
5767
|
+
return !isMenuItem(o) || o.children === void 0 ? 0 : U(o.children, n.slice(1));
|
|
6474
5768
|
}
|
|
6475
|
-
let
|
|
6476
|
-
let t = Q(
|
|
5769
|
+
let K = computed(() => m.data === void 0 ? 0 : U(m.data, z.value)), td = computed(() => m.data), nd = computed(() => {
|
|
5770
|
+
let t = Q(td.value, z.value);
|
|
6477
5771
|
return isMenuItem(t) ? t : void 0;
|
|
6478
|
-
}),
|
|
5772
|
+
}), rd = computed(() => someHasIcon(m.data));
|
|
6479
5773
|
function Y(t) {
|
|
6480
5774
|
return isMenuItem(t) && t.disabled !== !0 && !t.render;
|
|
6481
5775
|
}
|
|
6482
|
-
function
|
|
5776
|
+
function id(t) {
|
|
6483
5777
|
return !isMenuItem(t) || t.disabled ? !1 : t.value !== void 0 || typeof t.onSelect == "function";
|
|
6484
5778
|
}
|
|
6485
|
-
function
|
|
6486
|
-
return
|
|
5779
|
+
function Z(t) {
|
|
5780
|
+
return id(t) ? t.closeOnSelect !== !1 : !1;
|
|
6487
5781
|
}
|
|
6488
|
-
function
|
|
5782
|
+
function od(t, n) {
|
|
6489
5783
|
if (t.disabled) return;
|
|
6490
5784
|
let i = {
|
|
6491
5785
|
value: t.value,
|
|
6492
5786
|
event: n,
|
|
6493
5787
|
data: t
|
|
6494
5788
|
};
|
|
6495
|
-
t.onSelect?.(i), t.value !== void 0 && g("select", t.value),
|
|
5789
|
+
t.onSelect?.(i), t.value !== void 0 && g("select", t.value), Z(t) && w(!1);
|
|
6496
5790
|
}
|
|
6497
5791
|
onKeyStroke("ArrowDown", (t) => {
|
|
6498
|
-
if (!S.value ||
|
|
5792
|
+
if (!S.value || K.value === 0) return;
|
|
6499
5793
|
t.preventDefault();
|
|
6500
|
-
let n = z.value, i = n.slice(0, -1), a = ((n.at(-1) ?? -1) + 1) %
|
|
6501
|
-
for (; o <
|
|
6502
|
-
if (Y(Q(
|
|
5794
|
+
let n = z.value, i = n.slice(0, -1), a = ((n.at(-1) ?? -1) + 1) % K.value, o = 0;
|
|
5795
|
+
for (; o < K.value;) {
|
|
5796
|
+
if (Y(Q(td.value, [...i, a]))) {
|
|
6503
5797
|
z.value = [...i, a];
|
|
6504
5798
|
return;
|
|
6505
5799
|
}
|
|
6506
|
-
a = (a + 1) %
|
|
5800
|
+
a = (a + 1) % K.value, o += 1;
|
|
6507
5801
|
}
|
|
6508
5802
|
}), onKeyStroke("ArrowUp", (t) => {
|
|
6509
|
-
if (!S.value ||
|
|
5803
|
+
if (!S.value || K.value === 0) return;
|
|
6510
5804
|
t.preventDefault();
|
|
6511
|
-
let n = z.value, i = n.slice(0, -1), a = n.at(-1) ?? -1, o = a === -1 ? (
|
|
6512
|
-
for (; s <
|
|
6513
|
-
if (Y(Q(
|
|
5805
|
+
let n = z.value, i = n.slice(0, -1), a = n.at(-1) ?? -1, o = a === -1 ? (K.value - 1 + K.value) % K.value : (a - 1 + K.value) % K.value, s = 0;
|
|
5806
|
+
for (; s < K.value;) {
|
|
5807
|
+
if (Y(Q(td.value, [...i, o]))) {
|
|
6514
5808
|
z.value = [...i, o];
|
|
6515
5809
|
return;
|
|
6516
5810
|
}
|
|
6517
|
-
o = (o - 1 +
|
|
5811
|
+
o = (o - 1 + K.value) % K.value, s += 1;
|
|
6518
5812
|
}
|
|
6519
5813
|
}), onKeyStroke("ArrowRight", (t) => {
|
|
6520
5814
|
if (!S.value) return;
|
|
6521
5815
|
t.preventDefault();
|
|
6522
|
-
let n =
|
|
5816
|
+
let n = nd.value;
|
|
6523
5817
|
if (!n || n.children === void 0) return;
|
|
6524
5818
|
let i = 0;
|
|
6525
5819
|
for (; i < n.children.length;) {
|
|
@@ -6548,18 +5842,18 @@ var _hoisted_1$18 = ["aria-hidden"], _hoisted_2$11 = {
|
|
|
6548
5842
|
if (!(!i || a === void 0 || a < 0 || a >= i.length)) return i[a];
|
|
6549
5843
|
}
|
|
6550
5844
|
provide("selectMenuItem", (t, n) => {
|
|
6551
|
-
|
|
5845
|
+
od(t, n);
|
|
6552
5846
|
}), onKeyStroke("Enter", (t) => {
|
|
6553
5847
|
if (!S.value) return;
|
|
6554
5848
|
t.preventDefault();
|
|
6555
|
-
let n =
|
|
6556
|
-
|
|
5849
|
+
let n = nd.value;
|
|
5850
|
+
id(n) && od(n, t);
|
|
6557
5851
|
});
|
|
6558
5852
|
let $ = computed(() => m.trigger === "contextmenu" ? "" : "absolute mt-2");
|
|
6559
5853
|
useEventListener(globalThis, "scroll", () => {
|
|
6560
5854
|
S.value && w(!1);
|
|
6561
5855
|
});
|
|
6562
|
-
let
|
|
5856
|
+
let ld = computed(() => {
|
|
6563
5857
|
let t = window.innerWidth, n = N.value?.clientWidth ?? 0, i = t - (N.value?.getBoundingClientRect().left ?? 0) > n, a = window.innerHeight, o = N.value?.clientHeight ?? 0, s = a - (N.value?.getBoundingClientRect().top ?? 0) > o;
|
|
6564
5858
|
return m.trigger === "contextmenu" ? {
|
|
6565
5859
|
left: `${i ? L.value.x : L.value.x - n}px`,
|
|
@@ -6582,7 +5876,7 @@ var _hoisted_1$18 = ["aria-hidden"], _hoisted_2$11 = {
|
|
|
6582
5876
|
default: withCtx(() => [S.value && m.data?.length ? (openBlock(), createElementBlock("menu", {
|
|
6583
5877
|
key: 0,
|
|
6584
5878
|
class: "m-0 p-0 list-none flex justify-center relative z-10",
|
|
6585
|
-
style: normalizeStyle(
|
|
5879
|
+
style: normalizeStyle(ld.value),
|
|
6586
5880
|
role: "menu",
|
|
6587
5881
|
"aria-orientation": "vertical",
|
|
6588
5882
|
"aria-hidden": S.value ? "false" : "true"
|
|
@@ -6599,7 +5893,7 @@ var _hoisted_1$18 = ["aria-hidden"], _hoisted_2$11 = {
|
|
|
6599
5893
|
data: n
|
|
6600
5894
|
}, {
|
|
6601
5895
|
idx: [i],
|
|
6602
|
-
"has-icon":
|
|
5896
|
+
"has-icon": rd.value
|
|
6603
5897
|
}), null, 16, ["idx", "has-icon"]))], 64))], 64))), 128))], 6)], 12, _hoisted_1$18)) : createCommentVNode("", !0)]),
|
|
6604
5898
|
_: 1
|
|
6605
5899
|
}, 8, ["enter-active-class", "leave-active-class"])], 2));
|
|
@@ -7362,13 +6656,13 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
7362
6656
|
function B(t) {
|
|
7363
6657
|
l.value = b(y(t));
|
|
7364
6658
|
}
|
|
7365
|
-
function
|
|
6659
|
+
function ed() {
|
|
7366
6660
|
j.value = !0;
|
|
7367
6661
|
}
|
|
7368
|
-
function
|
|
6662
|
+
function U() {
|
|
7369
6663
|
j.value = !1;
|
|
7370
6664
|
}
|
|
7371
|
-
function
|
|
6665
|
+
function W(t) {
|
|
7372
6666
|
if (!(!j.value || !N.value) && !n.disabled && t.deltaY !== 0) {
|
|
7373
6667
|
if (t.deltaY < 0) {
|
|
7374
6668
|
if (P.value) return;
|
|
@@ -7402,9 +6696,9 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
7402
6696
|
"onUpdate:modelValue": L,
|
|
7403
6697
|
onFocusin: R,
|
|
7404
6698
|
onFocusout: z,
|
|
7405
|
-
onMouseenter:
|
|
7406
|
-
onMouseleave:
|
|
7407
|
-
onWheel: withModifiers(
|
|
6699
|
+
onMouseenter: ed,
|
|
6700
|
+
onMouseleave: U,
|
|
6701
|
+
onWheel: withModifiers(W, ["prevent"])
|
|
7408
6702
|
}, createSlots({
|
|
7409
6703
|
rightSection: withCtx(() => [createElementVNode("div", { class: normalizeClass(["flex items-stretch self-stretch", C.value.wrapper]) }, [createElementVNode("div", mergeProps({ class: ["rounded-r-inherit flex flex-col self-stretch overflow-hidden", C.value.container] }, unref(w)), [createElementVNode("button", mergeProps({
|
|
7410
6704
|
type: "button",
|
|
@@ -7929,19 +7223,19 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
7929
7223
|
function z(t) {
|
|
7930
7224
|
return L(t) === "half";
|
|
7931
7225
|
}
|
|
7932
|
-
function
|
|
7226
|
+
function H(t) {
|
|
7933
7227
|
return S.value[t]?.normal || x.normal;
|
|
7934
7228
|
}
|
|
7935
|
-
function
|
|
7229
|
+
function U(t) {
|
|
7936
7230
|
return S.value[t]?.active || x.active;
|
|
7937
7231
|
}
|
|
7938
|
-
function
|
|
7232
|
+
function W(t) {
|
|
7939
7233
|
return T[t]?.value || w.value;
|
|
7940
7234
|
}
|
|
7941
|
-
function
|
|
7235
|
+
function K(t) {
|
|
7942
7236
|
if (D.value) return E[t]?.value;
|
|
7943
7237
|
}
|
|
7944
|
-
function
|
|
7238
|
+
function td(t, n) {
|
|
7945
7239
|
if (!N.value) {
|
|
7946
7240
|
P.value = n + 1;
|
|
7947
7241
|
return;
|
|
@@ -7949,10 +7243,10 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
7949
7243
|
let i = t.currentTarget.getBoundingClientRect();
|
|
7950
7244
|
P.value = n + (t.clientX - i.left < i.width / 2 ? .5 : 1);
|
|
7951
7245
|
}
|
|
7952
|
-
function
|
|
7246
|
+
function nd() {
|
|
7953
7247
|
P.value = null;
|
|
7954
7248
|
}
|
|
7955
|
-
function
|
|
7249
|
+
function rd(t, n) {
|
|
7956
7250
|
let i;
|
|
7957
7251
|
if (N.value) if (P.value === null) {
|
|
7958
7252
|
let a = n.currentTarget.getBoundingClientRect();
|
|
@@ -7971,34 +7265,34 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
7971
7265
|
return (n, i) => (openBlock(), createElementBlock("div", { class: normalizeClass(["flex cursor-pointer select-none", Y.value]) }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(a.count, (n, i) => (openBlock(), createElementBlock("div", {
|
|
7972
7266
|
key: i,
|
|
7973
7267
|
class: "pr-1 inline-flex relative",
|
|
7974
|
-
onPointermove: (t) =>
|
|
7975
|
-
onMouseleave:
|
|
7976
|
-
onPointerdown: (t) =>
|
|
7977
|
-
}, [R(i) ? (openBlock(), createBlock(resolveDynamicComponent(
|
|
7268
|
+
onPointermove: (t) => td(t, i),
|
|
7269
|
+
onMouseleave: nd,
|
|
7270
|
+
onPointerdown: (t) => rd(i, t)
|
|
7271
|
+
}, [R(i) ? (openBlock(), createBlock(resolveDynamicComponent(U(i).is), {
|
|
7978
7272
|
key: 0,
|
|
7979
7273
|
class: normalizeClass(["transition-colors duration-150 active:translate-y-1px", [
|
|
7980
|
-
|
|
7981
|
-
D.value &&
|
|
7982
|
-
|
|
7274
|
+
W(i).class,
|
|
7275
|
+
D.value && K(i) ? K(i)?.class : "",
|
|
7276
|
+
U(i).class
|
|
7983
7277
|
]]),
|
|
7984
|
-
style: normalizeStyle([
|
|
7985
|
-
}, null, 8, ["class", "style"])) : z(i) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [(openBlock(), createBlock(resolveDynamicComponent(
|
|
7986
|
-
class: normalizeClass(["transition-colors duration-150 active:translate-y-1px", [unref(w).class,
|
|
7278
|
+
style: normalizeStyle([W(i).style, D.value && K(i) ? K(i)?.style : {}])
|
|
7279
|
+
}, null, 8, ["class", "style"])) : z(i) ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [(openBlock(), createBlock(resolveDynamicComponent(H(i).is), {
|
|
7280
|
+
class: normalizeClass(["transition-colors duration-150 active:translate-y-1px", [unref(w).class, H(i).class]]),
|
|
7987
7281
|
style: normalizeStyle([unref(w).style])
|
|
7988
|
-
}, null, 8, ["class", "style"])), (openBlock(), createBlock(resolveDynamicComponent(
|
|
7282
|
+
}, null, 8, ["class", "style"])), (openBlock(), createBlock(resolveDynamicComponent(U(i).is), {
|
|
7989
7283
|
class: normalizeClass(["transition-colors duration-150 left-0 top-0 absolute", [
|
|
7990
|
-
|
|
7991
|
-
D.value &&
|
|
7992
|
-
|
|
7284
|
+
W(i).class,
|
|
7285
|
+
D.value && K(i) ? K(i)?.class : "",
|
|
7286
|
+
U(i).class
|
|
7993
7287
|
]]),
|
|
7994
7288
|
style: normalizeStyle([
|
|
7995
|
-
|
|
7996
|
-
D.value &&
|
|
7289
|
+
W(i).style,
|
|
7290
|
+
D.value && K(i) ? K(i)?.style : {},
|
|
7997
7291
|
{ clipPath: "inset(0 50% 0 0)" }
|
|
7998
7292
|
])
|
|
7999
|
-
}, null, 8, ["class", "style"]))], 64)) : (openBlock(), createBlock(resolveDynamicComponent(
|
|
7293
|
+
}, null, 8, ["class", "style"]))], 64)) : (openBlock(), createBlock(resolveDynamicComponent(H(i).is), {
|
|
8000
7294
|
key: 2,
|
|
8001
|
-
class: normalizeClass(["transition-colors duration-150 active:translate-y-1px", [unref(w).class,
|
|
7295
|
+
class: normalizeClass(["transition-colors duration-150 active:translate-y-1px", [unref(w).class, H(i).class]]),
|
|
8002
7296
|
style: normalizeStyle([unref(w).style])
|
|
8003
7297
|
}, null, 8, ["class", "style"]))], 40, _hoisted_1$7))), 128))], 2));
|
|
8004
7298
|
}
|
|
@@ -8153,7 +7447,7 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
8153
7447
|
}, [withDirectives(createElementVNode("div", {
|
|
8154
7448
|
ref_key: "scrollBarIndicatorRef",
|
|
8155
7449
|
ref: a,
|
|
8156
|
-
class: "rounded-full
|
|
7450
|
+
class: "bg-inverted rounded-full opacity-70 right-0 absolute",
|
|
8157
7451
|
style: normalizeStyle({
|
|
8158
7452
|
right: "0px",
|
|
8159
7453
|
width: `${t.barWidth}px`,
|
|
@@ -8267,7 +7561,7 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
8267
7561
|
}
|
|
8268
7562
|
b.value = t, C.value = !1;
|
|
8269
7563
|
}
|
|
8270
|
-
let z = computed(() => v.value.color),
|
|
7564
|
+
let z = computed(() => v.value.color), ed = useInputColorStyle(z, "default"), U = computed(() => {
|
|
8271
7565
|
switch (v.value.size) {
|
|
8272
7566
|
case "sm": return {
|
|
8273
7567
|
wrapper: "h-6 w-full py-1 pl-1.5 pr-6 text-sm",
|
|
@@ -8282,13 +7576,13 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
8282
7576
|
dropdown: "text-base children:py-1"
|
|
8283
7577
|
};
|
|
8284
7578
|
}
|
|
8285
|
-
}),
|
|
7579
|
+
}), K = ref(null), { bottom: td, top: nd } = useElementBounding(x);
|
|
8286
7580
|
watch([C], () => {
|
|
8287
7581
|
T.value = -1, w.value = -1;
|
|
8288
7582
|
});
|
|
8289
|
-
let
|
|
7583
|
+
let rd = computed(() => {
|
|
8290
7584
|
if (!C.value || !isClient) return null;
|
|
8291
|
-
let t = document.documentElement.clientHeight -
|
|
7585
|
+
let t = document.documentElement.clientHeight - td.value - 16, n = nd.value - 16;
|
|
8292
7586
|
return t >= 256 ? { maxHeight: "256px" } : t >= 100 ? { maxHeight: `${t}px` } : n >= 256 ? {
|
|
8293
7587
|
maxHeight: "256px",
|
|
8294
7588
|
bottom: "100%"
|
|
@@ -8300,25 +7594,25 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
8300
7594
|
function Y(t, n) {
|
|
8301
7595
|
return n == null ? !1 : t === n;
|
|
8302
7596
|
}
|
|
8303
|
-
let
|
|
8304
|
-
function
|
|
7597
|
+
let X = computed(() => a.searchable ? "cursor-text" : "cursor-pointer"), Z = useContainerDefaultCS(), od = useContainerDefaultVariantCS(), Q = useContainerFilledCS(z);
|
|
7598
|
+
function ld(t) {
|
|
8305
7599
|
w.value = t, T.value = -1;
|
|
8306
7600
|
}
|
|
8307
7601
|
return (i, a) => (openBlock(), createElementBlock("div", {
|
|
8308
7602
|
ref_key: "wrapperRef",
|
|
8309
7603
|
ref: S,
|
|
8310
7604
|
class: "relative",
|
|
8311
|
-
style: normalizeStyle(unref(
|
|
7605
|
+
style: normalizeStyle(unref(ed))
|
|
8312
7606
|
}, [createElementVNode("div", _hoisted_1$4, [createElementVNode("input", {
|
|
8313
7607
|
ref_key: "inputRef",
|
|
8314
7608
|
ref: x,
|
|
8315
7609
|
class: normalizeClass([[
|
|
8316
|
-
|
|
7610
|
+
U.value.wrapper,
|
|
8317
7611
|
unref(y).class,
|
|
8318
|
-
|
|
7612
|
+
X.value
|
|
8319
7613
|
], "custom-input-colors outline-none border focus-visible:outline-2"]),
|
|
8320
7614
|
placeholder: n.placeholder,
|
|
8321
|
-
style: normalizeStyle([unref(y).style, unref(
|
|
7615
|
+
style: normalizeStyle([unref(y).style, unref(ed)]),
|
|
8322
7616
|
readonly: !n.searchable,
|
|
8323
7617
|
value: N.value,
|
|
8324
7618
|
"aria-label": n.ariaLabel,
|
|
@@ -8331,19 +7625,19 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
8331
7625
|
}, null, 46, _hoisted_2$2), a[2] ||= createElementVNode("i", { class: "i-fluent-chevron-down-12-filled pointer-events-none right-2 absolute" }, null, -1)]), C.value ? (openBlock(), createElementBlock("div", {
|
|
8332
7626
|
key: 0,
|
|
8333
7627
|
ref_key: "dropdownRef",
|
|
8334
|
-
ref:
|
|
8335
|
-
class: normalizeClass(["p-1 border rounded flex-col w-full absolute z-10 overflow-auto", [unref(
|
|
8336
|
-
style: normalizeStyle([unref(
|
|
7628
|
+
ref: K,
|
|
7629
|
+
class: normalizeClass(["p-1 border rounded flex-col w-full absolute z-10 overflow-auto", [unref(Z).class, U.value.dropdown]]),
|
|
7630
|
+
style: normalizeStyle([unref(Z).style, rd.value]),
|
|
8337
7631
|
role: "listbox"
|
|
8338
7632
|
}, [n.options.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_3$2, [renderSlot(i.$slots, "none", {}, () => [createTextVNode(toDisplayString(n.noneText), 1)])])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [(openBlock(!0), createElementBlock(Fragment, null, renderList(L.value, (t, n) => (openBlock(), createElementBlock("div", {
|
|
8339
7633
|
id: `option-${n}`,
|
|
8340
7634
|
key: n,
|
|
8341
|
-
class: normalizeClass([[T.value === n && unref(
|
|
8342
|
-
style: normalizeStyle([T.value === n && unref(
|
|
7635
|
+
class: normalizeClass([[T.value === n && unref(Q).class, w.value === n && T.value === -1 && unref(od).class], "p-1 px-2 rounded flex gap-2 cursor-pointer items-center justify-between"]),
|
|
7636
|
+
style: normalizeStyle([T.value === n && unref(Q).style, w.value === n && T.value === -1 && unref(od).style]),
|
|
8343
7637
|
role: "option",
|
|
8344
7638
|
"aria-selected": Y(t, E.value),
|
|
8345
7639
|
onPointerdown: (n) => R(t),
|
|
8346
|
-
onMousemove: (t) =>
|
|
7640
|
+
onMousemove: (t) => ld(n),
|
|
8347
7641
|
onMouseleave: a[1] ||= (t) => w.value = -1
|
|
8348
7642
|
}, [renderSlot(i.$slots, "item", {
|
|
8349
7643
|
data: t,
|
|
@@ -8860,28 +8154,28 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
8860
8154
|
dark: 5,
|
|
8861
8155
|
light: 4
|
|
8862
8156
|
}
|
|
8863
|
-
}),
|
|
8157
|
+
}), H = useCS({
|
|
8864
8158
|
color: computed(() => v.value.color),
|
|
8865
8159
|
type: "border",
|
|
8866
8160
|
index: {
|
|
8867
8161
|
dark: 5,
|
|
8868
8162
|
light: 4
|
|
8869
8163
|
}
|
|
8870
|
-
}),
|
|
8164
|
+
}), U = useCS({
|
|
8871
8165
|
color: computed(() => v.value.color),
|
|
8872
8166
|
type: "text",
|
|
8873
8167
|
index: {
|
|
8874
8168
|
dark: 5,
|
|
8875
8169
|
light: 4
|
|
8876
8170
|
}
|
|
8877
|
-
}),
|
|
8171
|
+
}), K = useCS({
|
|
8878
8172
|
color: "surface",
|
|
8879
8173
|
type: "border",
|
|
8880
8174
|
index: {
|
|
8881
8175
|
dark: 5,
|
|
8882
8176
|
light: 4
|
|
8883
8177
|
}
|
|
8884
|
-
}),
|
|
8178
|
+
}), td = useCS({
|
|
8885
8179
|
color: "surface",
|
|
8886
8180
|
type: "text",
|
|
8887
8181
|
index: {
|
|
@@ -8895,21 +8189,21 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
8895
8189
|
dark: 6,
|
|
8896
8190
|
light: 3
|
|
8897
8191
|
}
|
|
8898
|
-
}),
|
|
8192
|
+
}), nd = useCS({
|
|
8899
8193
|
color: "error",
|
|
8900
8194
|
type: "border",
|
|
8901
8195
|
index: {
|
|
8902
8196
|
dark: 5,
|
|
8903
8197
|
light: 4
|
|
8904
8198
|
}
|
|
8905
|
-
}),
|
|
8199
|
+
}), rd = useCS({
|
|
8906
8200
|
color: "error",
|
|
8907
8201
|
type: "text",
|
|
8908
8202
|
index: {
|
|
8909
8203
|
dark: 5,
|
|
8910
8204
|
light: 4
|
|
8911
8205
|
}
|
|
8912
|
-
}),
|
|
8206
|
+
}), Y = useMergedCS([F], ["shadow-sm"]), id = useMergedCS([H, useCS({
|
|
8913
8207
|
color: computed(() => v.value.color),
|
|
8914
8208
|
type: "bg",
|
|
8915
8209
|
index: {
|
|
@@ -8920,7 +8214,7 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
8920
8214
|
dark: .2,
|
|
8921
8215
|
light: .1
|
|
8922
8216
|
}
|
|
8923
|
-
})], ["border-2"]),
|
|
8217
|
+
})], ["border-2"]), ad = useMergedCS([K, useCS({
|
|
8924
8218
|
color: "surface",
|
|
8925
8219
|
type: "bg",
|
|
8926
8220
|
index: {
|
|
@@ -8931,7 +8225,7 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
8931
8225
|
dark: .2,
|
|
8932
8226
|
light: .12
|
|
8933
8227
|
}
|
|
8934
|
-
})], ["border-2"]),
|
|
8228
|
+
})], ["border-2"]), X = useMergedCS([nd, useCS({
|
|
8935
8229
|
color: "error",
|
|
8936
8230
|
type: "bg",
|
|
8937
8231
|
index: {
|
|
@@ -8942,75 +8236,75 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
8942
8236
|
dark: .2,
|
|
8943
8237
|
light: .1
|
|
8944
8238
|
}
|
|
8945
|
-
})], ["border-2"]),
|
|
8239
|
+
})], ["border-2"]), Z = useCS({
|
|
8946
8240
|
color: computed(() => v.value.color),
|
|
8947
8241
|
type: "bg",
|
|
8948
8242
|
index: {
|
|
8949
8243
|
dark: 5,
|
|
8950
8244
|
light: 4
|
|
8951
8245
|
}
|
|
8952
|
-
}),
|
|
8246
|
+
}), $ = useSurfaceCS("bg", {
|
|
8953
8247
|
dark: 6,
|
|
8954
8248
|
light: 3
|
|
8955
|
-
}),
|
|
8249
|
+
}), sd = useSurfaceCS("text", {
|
|
8956
8250
|
dark: 3,
|
|
8957
8251
|
light: 2
|
|
8958
|
-
}),
|
|
8252
|
+
}), ld = useSurfaceCS("text", {
|
|
8959
8253
|
dark: 2,
|
|
8960
8254
|
light: 1
|
|
8961
|
-
}),
|
|
8255
|
+
}), ud = useSurfaceCS("text", {
|
|
8962
8256
|
dark: 3,
|
|
8963
8257
|
light: 4
|
|
8964
|
-
}),
|
|
8258
|
+
}), dd = computed(() => useRounded({ rounded: a.iconRounded ?? g.value.rounded }).value), fd = computed(() => a.progressDot || a.type === "dot"), pd = computed(() => fd.value ? {
|
|
8965
8259
|
class: "rounded-full",
|
|
8966
8260
|
style: {}
|
|
8967
|
-
} :
|
|
8968
|
-
let t =
|
|
8261
|
+
} : dd.value), md = computed(() => {
|
|
8262
|
+
let t = pd.value.class;
|
|
8969
8263
|
return t ? Array.isArray(t) ? t : [t] : [];
|
|
8970
|
-
}),
|
|
8971
|
-
function
|
|
8264
|
+
}), hd = computed(() => pd.value.style || {});
|
|
8265
|
+
function gd(t) {
|
|
8972
8266
|
return t ? Array.isArray(t) ? t : [t] : [];
|
|
8973
8267
|
}
|
|
8974
|
-
function
|
|
8268
|
+
function _d(t) {
|
|
8975
8269
|
return t ?? {};
|
|
8976
8270
|
}
|
|
8977
|
-
let
|
|
8271
|
+
let vd = computed(() => ({
|
|
8978
8272
|
finish: {
|
|
8979
|
-
icon:
|
|
8273
|
+
icon: Y.value,
|
|
8980
8274
|
title: L.value,
|
|
8981
8275
|
connector: z.value
|
|
8982
8276
|
},
|
|
8983
8277
|
process: {
|
|
8984
|
-
icon:
|
|
8985
|
-
title:
|
|
8278
|
+
icon: id.value,
|
|
8279
|
+
title: U.value,
|
|
8986
8280
|
connector: q.value
|
|
8987
8281
|
},
|
|
8988
8282
|
error: {
|
|
8989
|
-
icon:
|
|
8990
|
-
title:
|
|
8283
|
+
icon: X.value,
|
|
8284
|
+
title: rd.value,
|
|
8991
8285
|
connector: q.value
|
|
8992
8286
|
},
|
|
8993
8287
|
wait: {
|
|
8994
|
-
icon:
|
|
8995
|
-
title:
|
|
8288
|
+
icon: ad.value,
|
|
8289
|
+
title: td.value,
|
|
8996
8290
|
connector: q.value
|
|
8997
8291
|
}
|
|
8998
8292
|
}));
|
|
8999
|
-
function
|
|
9000
|
-
return
|
|
8293
|
+
function yd(t = "wait") {
|
|
8294
|
+
return vd.value[t];
|
|
9001
8295
|
}
|
|
9002
|
-
let
|
|
9003
|
-
let n =
|
|
8296
|
+
let bd = computed(() => S.value.map((t) => {
|
|
8297
|
+
let n = yd(t.status);
|
|
9004
8298
|
return {
|
|
9005
8299
|
...t,
|
|
9006
8300
|
styles: n,
|
|
9007
|
-
iconClassList:
|
|
9008
|
-
iconStyle:
|
|
8301
|
+
iconClassList: gd(n.icon.class),
|
|
8302
|
+
iconStyle: _d(n.icon.style)
|
|
9009
8303
|
};
|
|
9010
|
-
})),
|
|
9011
|
-
active:
|
|
9012
|
-
idle:
|
|
9013
|
-
})),
|
|
8304
|
+
})), xd = computed(() => ({
|
|
8305
|
+
active: vd.value.finish.connector,
|
|
8306
|
+
idle: vd.value.wait.connector
|
|
8307
|
+
})), Sd = computed(() => a.items.length === 0 ? 0 : (x.value + 1) / a.items.length * 100);
|
|
9014
8308
|
return (i, a) => (openBlock(), createElementBlock("div", {
|
|
9015
8309
|
ref_key: "stepRef",
|
|
9016
8310
|
ref: _,
|
|
@@ -9018,10 +8312,10 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
9018
8312
|
role: "tablist",
|
|
9019
8313
|
"aria-orientation": n.direction
|
|
9020
8314
|
}, [n.type === "simple" ? (openBlock(), createElementBlock("div", _hoisted_2$1, [
|
|
9021
|
-
createElementVNode("div", mergeProps({ class: "text-sm mb-2 flex items-center justify-between" }, unref(
|
|
9022
|
-
createElementVNode("div", mergeProps({ class: "rounded-full h-2 w-full" }, unref(
|
|
9023
|
-
createElementVNode("div", mergeProps({ class: "text-sm font-medium mt-2" }, unref(
|
|
9024
|
-
])) : createCommentVNode("", !0), (openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
8315
|
+
createElementVNode("div", mergeProps({ class: "text-sm mb-2 flex items-center justify-between" }, unref(sd)), [createElementVNode("span", _hoisted_3$1, "Step " + toDisplayString(x.value + 1) + " of " + toDisplayString(n.items.length), 1), createElementVNode("span", _hoisted_4, toDisplayString(Math.round(Sd.value)) + "%", 1)], 16),
|
|
8316
|
+
createElementVNode("div", mergeProps({ class: "rounded-full h-2 w-full" }, unref($)), [createElementVNode("div", mergeProps({ class: "rounded-full h-full" }, unref(Z), { style: { width: `${Sd.value}%` } }), null, 16)], 16),
|
|
8317
|
+
createElementVNode("div", mergeProps({ class: "text-sm font-medium mt-2" }, unref(ld)), toDisplayString(bd.value[x.value]?.title), 17)
|
|
8318
|
+
])) : createCommentVNode("", !0), (openBlock(!0), createElementBlock(Fragment, null, renderList(bd.value, (i, a) => (openBlock(), createElementBlock(Fragment, { key: i.index }, [createElementVNode("div", {
|
|
9025
8319
|
class: normalizeClass(["step-item flex relative", [
|
|
9026
8320
|
n.direction === "vertical" ? "items-start mb-4 last:mb-0" : "items-center flex-shrink-0",
|
|
9027
8321
|
n.direction === "horizontal" && n.alternativeLabel ? "flex-col items-center text-center" : "",
|
|
@@ -9039,12 +8333,12 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
9039
8333
|
}, [createElementVNode("div", {
|
|
9040
8334
|
class: normalizeClass(["step-icon-container flex flex-shrink-0 items-center justify-center relative overflow-hidden", [
|
|
9041
8335
|
P.value.icon,
|
|
9042
|
-
...
|
|
8336
|
+
...md.value,
|
|
9043
8337
|
n.progressDot ? "w-4 h-4 border-0" : "",
|
|
9044
8338
|
n.type === "dot" ? "w-3 h-3 border-0" : "",
|
|
9045
8339
|
...i.iconClassList
|
|
9046
8340
|
]]),
|
|
9047
|
-
style: normalizeStyle([
|
|
8341
|
+
style: normalizeStyle([hd.value, i.iconStyle])
|
|
9048
8342
|
}, [i.icon && !n.progressDot && n.type !== "dot" ? (openBlock(), createBlock(resolveDynamicComponent(typeof i.icon == "string" ? "span" : i.icon), {
|
|
9049
8343
|
key: 0,
|
|
9050
8344
|
class: normalizeClass(typeof i.icon == "string" ? i.icon : "")
|
|
@@ -9058,7 +8352,7 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
9058
8352
|
}, [createElementVNode("div", mergeProps({ class: ["step-title leading-tight", P.value.title] }, { ref_for: !0 }, i.styles.title), toDisplayString(i.title), 17), n.showDescription && i.description ? (openBlock(), createElementBlock("div", mergeProps({
|
|
9059
8353
|
key: 0,
|
|
9060
8354
|
class: "step-description mt-1.5"
|
|
9061
|
-
}, { ref_for: !0 }, unref(
|
|
8355
|
+
}, { ref_for: !0 }, unref(ud), { class: P.value.description }), toDisplayString(i.description), 17)) : createCommentVNode("", !0)], 2)) : createCommentVNode("", !0)], 42, _hoisted_5), a < n.items.length - 1 && n.type !== "simple" ? (openBlock(), createElementBlock("div", mergeProps({
|
|
9062
8356
|
key: 0,
|
|
9063
8357
|
class: ["step-connector", [n.direction === "horizontal" ? [
|
|
9064
8358
|
"flex-1",
|
|
@@ -9072,7 +8366,7 @@ var _hoisted_1$15 = { class: "space-y-5" }, _hoisted_2$8 = { class: "text-center
|
|
|
9072
8366
|
P.value.connector,
|
|
9073
8367
|
"min-h-4 rounded"
|
|
9074
8368
|
]]]
|
|
9075
|
-
}, { ref_for: !0 }, a < x.value ?
|
|
8369
|
+
}, { ref_for: !0 }, a < x.value ? xd.value.active : xd.value.idle), null, 16)) : createCommentVNode("", !0)], 64))), 128))], 10, _hoisted_1$3));
|
|
9076
8370
|
}
|
|
9077
8371
|
}), _hoisted_1$2 = ["id"], _hoisted_2 = ["for"], _hoisted_3 = ["for"], Switch_default = /* @__PURE__ */ defineComponent({
|
|
9078
8372
|
inheritAttrs: !1,
|
|
@@ -9984,11 +9278,11 @@ var gt = /* @__PURE__ */ defineComponent({
|
|
|
9984
9278
|
};
|
|
9985
9279
|
})), R = computed(() => (S.value - A.value) / 2), z = computed(() => {
|
|
9986
9280
|
if (a.wrapperWidth !== void 0) return unref(a.wrapperWidth);
|
|
9987
|
-
}),
|
|
9281
|
+
}), H = computed(() => z.value === void 0 ? a.itemWidth && a.cols ? A.value : 400 : z.value), U = computed(() => C.style), W = computed(() => {
|
|
9988
9282
|
let { style: t, ...n } = C;
|
|
9989
9283
|
return n;
|
|
9990
9284
|
});
|
|
9991
|
-
function
|
|
9285
|
+
function K(t, n, i, a) {
|
|
9992
9286
|
let o = unref(t);
|
|
9993
9287
|
if (o.length === 0) return [];
|
|
9994
9288
|
let s = Math.max(1, unref(n)), l = Math.min(s, o.length), u = Array.from({ length: s }).fill(0), d = [], m = F.value * l + unref(i) * (l - 1), g = Math.max(0, A.value - unref(a) * 2 - m) / 2;
|
|
@@ -10008,10 +9302,10 @@ var gt = /* @__PURE__ */ defineComponent({
|
|
|
10008
9302
|
}
|
|
10009
9303
|
return d;
|
|
10010
9304
|
}
|
|
10011
|
-
let
|
|
10012
|
-
function
|
|
10013
|
-
if (!E(
|
|
10014
|
-
let n =
|
|
9305
|
+
let q = computed(() => K(L, w, g, _)), rd = computed(() => !E(q.value) || q.value.length === 0 ? 0 : Math.max(...q.value.map((t) => t.y + t.height)) + v.value * 2), Y = computed(() => l.default?.() ?? []);
|
|
9306
|
+
function id(t) {
|
|
9307
|
+
if (!E(q.value)) return {};
|
|
9308
|
+
let n = q.value[t];
|
|
10015
9309
|
return n ? {
|
|
10016
9310
|
left: `${n.x ?? 0}px`,
|
|
10017
9311
|
top: `${n.y ?? 0}px`,
|
|
@@ -10019,45 +9313,45 @@ var gt = /* @__PURE__ */ defineComponent({
|
|
|
10019
9313
|
maxWidth: `${F.value}px`
|
|
10020
9314
|
} : {};
|
|
10021
9315
|
}
|
|
10022
|
-
let
|
|
10023
|
-
x:
|
|
10024
|
-
y:
|
|
10025
|
-
})), $ = computed(() => [
|
|
10026
|
-
let n = t.y +
|
|
9316
|
+
let ad = ref(!1), X = pt(x, { behavior: computed(() => ad.value ? "smooth" : "auto") }), Z = Se(x), od = Se(y), Q = computed(() => ({
|
|
9317
|
+
x: od.left.value - Z.left.value + X.x.value,
|
|
9318
|
+
y: od.top.value - Z.top.value + X.y.value
|
|
9319
|
+
})), $ = computed(() => [X.y.value - m.value, X.y.value + Z.height.value + m.value]), sd = computed(() => q.value.map((t) => {
|
|
9320
|
+
let n = t.y + Q.value.y, i = t.y + t.height + Q.value.y;
|
|
10027
9321
|
return n >= $.value[0] && n <= $.value[1] || i >= $.value[0] && i <= $.value[1] || n <= $.value[0] && i >= $.value[1];
|
|
10028
|
-
})),
|
|
10029
|
-
let t = O(
|
|
10030
|
-
for (let [i, a] of t.entries())
|
|
9322
|
+
})), cd = computed(() => {
|
|
9323
|
+
let t = O(Y.value), n = [];
|
|
9324
|
+
for (let [i, a] of t.entries()) sd.value[i] && n.push([a, i]);
|
|
10031
9325
|
return n;
|
|
10032
|
-
}),
|
|
9326
|
+
}), ld = ref();
|
|
10033
9327
|
return i({
|
|
10034
|
-
scroll:
|
|
9328
|
+
scroll: X,
|
|
10035
9329
|
scrollTo: (t, n = !1) => {
|
|
10036
|
-
let i =
|
|
10037
|
-
|
|
9330
|
+
let i = ad.value;
|
|
9331
|
+
ad.value = n, X.y.value = t, ad.value = i;
|
|
10038
9332
|
},
|
|
10039
9333
|
wrapper: y,
|
|
10040
|
-
contentDom:
|
|
10041
|
-
layoutData:
|
|
9334
|
+
contentDom: ld,
|
|
9335
|
+
layoutData: q
|
|
10042
9336
|
}), (n, i) => (openBlock(), createElementBlock("div", mergeProps({
|
|
10043
9337
|
ref_key: "wrapper",
|
|
10044
9338
|
ref: y
|
|
10045
|
-
},
|
|
9339
|
+
}, W.value, { style: [{
|
|
10046
9340
|
position: "relative",
|
|
10047
9341
|
width: z.value === void 0 ? void 0 : `${z.value}px`,
|
|
10048
|
-
minWidth: z.value === void 0 &&
|
|
10049
|
-
},
|
|
9342
|
+
minWidth: z.value === void 0 && H.value !== void 0 ? `${H.value}px` : void 0
|
|
9343
|
+
}, U.value] }), [createElementVNode("div", {
|
|
10050
9344
|
ref_key: "contentDom",
|
|
10051
|
-
ref:
|
|
9345
|
+
ref: ld,
|
|
10052
9346
|
style: normalizeStyle({
|
|
10053
|
-
height: `${
|
|
9347
|
+
height: `${rd.value}px`,
|
|
10054
9348
|
minHeight: "100%",
|
|
10055
9349
|
position: "relative"
|
|
10056
9350
|
})
|
|
10057
|
-
}, [(openBlock(!0), createElementBlock(Fragment, null, renderList(
|
|
9351
|
+
}, [(openBlock(!0), createElementBlock(Fragment, null, renderList(cd.value, ([t, n]) => (openBlock(), createElementBlock("div", {
|
|
10058
9352
|
key: n,
|
|
10059
|
-
style: normalizeStyle([
|
|
9353
|
+
style: normalizeStyle([id(n), { position: "absolute" }])
|
|
10060
9354
|
}, [(openBlock(), createBlock(resolveDynamicComponent(t), { style: normalizeStyle({ width: `${P.value}px` }) }, null, 8, ["style"]))], 4))), 128))], 4)], 16));
|
|
10061
9355
|
}
|
|
10062
9356
|
});
|
|
10063
|
-
export { AppShell_default as AppShell, AppShellAside_default as AppShellAside, AppShellFooter_default as AppShellFooter, AppShellHeader_default as AppShellHeader, AppShellMain_default as AppShellMain, AppShellNavbar_default as AppShellNavbar, AspectRatio_default as AspectRatio, AutoHeightTransition_default as AutoHeightTransition, Avatar_default as Avatar, Btn_default as Btn, BtnGroup_default as BtnGroup, COLOR_BG, COLOR_BORDER, COLOR_LIGHTNESS_MAP, COLOR_TEXT, COLOR_TINT_INDEX, Calendar_default as Calendar, CalendarInput_default as CalendarInput, ChatContainer_default as ChatContainer, ChatMessage_default as ChatMessage, ChatSystem_default as ChatSystem, Checkbox_default as Checkbox, Chip_default as Chip, ColorInput_default as ColorInput, ColorPalettePerformance, ColorSwatch_default as ColorSwatch, Drawer_default as Drawer, Dropzone_default as Dropzone, FullscreenOverlay_default as FullscreenOverlay, GAMUT_DEFINITIONS, Image_default as Image, Indicator_default as Indicator, Menu_default as Menu, MenuItem_default as MenuItem, Modal_default as Modal, ModalSystem_default as ModalSystem, Notification_default as Notification, NotificationSystem_default as NotificationSystem, Notifications, NumberField_default as NumberField, OPACITY_SCALE, Overlay_default as Overlay, Paper_default as Paper, PinInput_default as PinInput, Popover_default as Popover, Progress_default as Progress, Rating_default as Rating, RokuProvider_default as RokuProvider, SURFACE_BG, SURFACE_BORDER, SURFACE_TEXT, SchemeSwitch_default as SchemeSwitch, ScrollArea_default as ScrollArea, Select_default as Select, SelectArea_default as SelectArea, Slider_default as Slider, Step_default as Step, Switch_default as Switch, TabItem_default as TabItem, Tabs_default as Tabs, Tag_default as Tag, TextField_default as TextField, ThemeProvider_default as ThemeProvider, Tooltip_default as Tooltip, TreeList_default as TreeList, gt as VirtualWaterfall, gt as Waterfall, analyzeColorGamut, borderCS, childrenElementMapSymbol, defaultThemeData, directionSymbol, generateAdaptiveColors, generateAdaptiveLightnessMap, generateAdvancedColorPalette, generateAdvancedColorPaletteCached, generateColors, generateColorsMap, generateColorsOKLCH, generateColorsObjMap, generateColorsObjMapOKLCH, generateContrastAwareColors, generateEditorFriendlyColors, generateOKLCHString, getCSInner, getComponentDefault, getThemeColorString, isColorInGamut, provideTheme, schemeSymbol, symbolStyle, tabCurrentSymbol, useButtonCS, useCS, useClientHeight, useColorCS, useColors, useComponentDefaults, useContainerCS, useContainerDefaultCS, useContainerDefaultVariantCS, useContainerFilledCS, useContainerInvertedCS, useContainerLightCS, useContainerOutlineCS, useId, useIndicatorFilledCS, useInputColorStyle, useMergedCS, useNotifications, useOutlineCS, useRounded, useSchemeString, useScrollHeight, useSurfaceCS, useSurfaceColors, useTagCS, useTextCS, useTheme, useThemeStyles };
|
|
9357
|
+
export { AppShell_default as AppShell, AppShellAside_default as AppShellAside, AppShellFooter_default as AppShellFooter, AppShellHeader_default as AppShellHeader, AppShellMain_default as AppShellMain, AppShellNavbar_default as AppShellNavbar, AspectRatio_default as AspectRatio, AutoHeightTransition_default as AutoHeightTransition, Avatar_default as Avatar, Btn_default as Btn, BtnGroup_default as BtnGroup, COLOR_BG, COLOR_BORDER, COLOR_LIGHTNESS_MAP, COLOR_TEXT, COLOR_TINT_INDEX, Calendar_default as Calendar, CalendarInput_default as CalendarInput, ChatContainer_default as ChatContainer, ChatMessage_default as ChatMessage, ChatSystem_default as ChatSystem, Checkbox_default as Checkbox, Chip_default as Chip, ColorInput_default as ColorInput, ColorPalettePerformance, ColorSwatch_default as ColorSwatch, Drawer_default as Drawer, Dropzone_default as Dropzone, FullscreenOverlay_default as FullscreenOverlay, GAMUT_DEFINITIONS, Icon_default as Icon, Image_default as Image, Indicator_default as Indicator, Menu_default as Menu, MenuItem_default as MenuItem, Modal_default as Modal, ModalSystem_default as ModalSystem, Notification_default as Notification, NotificationSystem_default as NotificationSystem, Notifications, NumberField_default as NumberField, OPACITY_SCALE, Overlay_default as Overlay, Paper_default as Paper, PinInput_default as PinInput, Popover_default as Popover, Progress_default as Progress, Rating_default as Rating, RokuProvider_default as RokuProvider, SURFACE_BG, SURFACE_BORDER, SURFACE_TEXT, SchemeSwitch_default as SchemeSwitch, ScrollArea_default as ScrollArea, Select_default as Select, SelectArea_default as SelectArea, Slider_default as Slider, Step_default as Step, Switch_default as Switch, TabItem_default as TabItem, Tabs_default as Tabs, Tag_default as Tag, TextField_default as TextField, ThemeProvider_default as ThemeProvider, Tooltip_default as Tooltip, TreeList_default as TreeList, gt as VirtualWaterfall, gt as Waterfall, analyzeColorGamut, borderCS, childrenElementMapSymbol, defaultThemeData, directionSymbol, generateAdaptiveColors, generateAdaptiveLightnessMap, generateAdvancedColorPalette, generateAdvancedColorPaletteCached, generateColors, generateColorsMap, generateColorsOKLCH, generateColorsObjMap, generateColorsObjMapOKLCH, generateContrastAwareColors, generateEditorFriendlyColors, generateOKLCHString, getCSInner, getComponentDefault, getThemeColorString, isColorInGamut, provideTheme, schemeSymbol, symbolStyle, tabCurrentSymbol, useButtonCS, useCS, useClientHeight, useColorCS, useColors, useComponentDefaults, useContainerCS, useContainerDefaultCS, useContainerDefaultVariantCS, useContainerFilledCS, useContainerInvertedCS, useContainerLightCS, useContainerOutlineCS, useId, useIndicatorFilledCS, useInputColorStyle, useMergedCS, useNotifications, useOutlineCS, useRounded, useSchemeString, useScrollHeight, useSurfaceCS, useSurfaceColors, useTagCS, useTextCS, useTheme, useThemeStyles };
|