@bobbykim/manguito-theme 0.28.0 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +13 -0
- package/README.md +3 -1
- package/dist/core.cjs +2 -2
- package/dist/core.d.ts +79 -7
- package/dist/core.js +736 -680
- package/package.json +2 -2
package/dist/core.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".slide-prev-enter-active[data-v-05e275d0]{transition:all .5s linear}.slide-prev-leave-active[data-v-05e275d0]{transition:all .5s}.slide-prev-enter-from[data-v-05e275d0]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-05e275d0]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-05e275d0]{transition:all .5s linear}.slide-next-leave-active[data-v-05e275d0]{transition:all .5s}.slide-next-enter-from[data-v-05e275d0]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-05e275d0]{transform:translate(-100%);opacity:0}.collapse-enter-active[data-v-5d535dc4],.collapse-leave-active[data-v-5d535dc4]{transition-property:height,opacity;transition-duration:.5s;transition-timing-function:ease}.dropup-bottom[data-v-85c54efe]{bottom:var(--button-height)}.dropdown-content-enter-active[data-v-85c54efe],.dropdown-content-leave-active[data-v-85c54efe]{transition:all .3s}.dropdown-content-enter-from[data-v-85c54efe],.dropdown-content-leave-to[data-v-85c54efe]{opacity:0;transform:translateY(-10px)}.hamburger__icon[data-v-f366929e]:before,.hamburger__icon[data-v-f366929e]:after{position:absolute;left:0;transition:all .3s linear}.hamburger__icon[data-v-f366929e]:before{top:-.5rem}.hamburger__icon[data-v-f366929e]:after{top:.5rem}.hamburger__button:focus .hamburger__icon[data-v-f366929e],.hamburger__button:hover .hamburger__icon[data-v-f366929e]{scale:1.05}.hamburger__checkbox:checked+.hamburger__icon[data-v-f366929e]{background-color:transparent}.hamburger__checkbox:checked+.hamburger__icon[data-v-f366929e]:before{top:0;transform:rotate(135deg)}.hamburger__checkbox:checked+.hamburger__icon[data-v-f366929e]:after{top:0;transform:rotate(-135deg)}.collapse-enter-active[data-v-e0d15366]{transition:height .5s ease-in}.collapse-leave-active[data-v-e0d15366]{transition:height .5s ease-out}.header-desktop[data-v-b9d1f493]{width:100%}@media screen and (min-width: 1024px){.header-desktop[data-v-b9d1f493]{width:var(--header-width)}}.slide-down-enter-active[data-v-b9d1f493]{transition:transform .3s ease-in .2s,opacity .5s ease-in}.slide-down-leave-active[data-v-b9d1f493]{transition:transform .5s ease-in,opacity .3s ease-in .2s}.slide-down-enter-from[data-v-b9d1f493],.slide-down-leave-to[data-v-b9d1f493]{opacity:0;transform:translateY(-100%)}.vertical-placement[data-v-
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var n = (
|
|
5
|
-
import { defineComponent as
|
|
6
|
-
import { useMutationObserver as
|
|
7
|
-
class
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".slide-prev-enter-active[data-v-05e275d0]{transition:all .5s linear}.slide-prev-leave-active[data-v-05e275d0]{transition:all .5s}.slide-prev-enter-from[data-v-05e275d0]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-05e275d0]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-05e275d0]{transition:all .5s linear}.slide-next-leave-active[data-v-05e275d0]{transition:all .5s}.slide-next-enter-from[data-v-05e275d0]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-05e275d0]{transform:translate(-100%);opacity:0}.collapse-enter-active[data-v-5d535dc4],.collapse-leave-active[data-v-5d535dc4]{transition-property:height,opacity;transition-duration:.5s;transition-timing-function:ease}.dropup-bottom[data-v-85c54efe]{bottom:var(--button-height)}.dropdown-content-enter-active[data-v-85c54efe],.dropdown-content-leave-active[data-v-85c54efe]{transition:all .3s}.dropdown-content-enter-from[data-v-85c54efe],.dropdown-content-leave-to[data-v-85c54efe]{opacity:0;transform:translateY(-10px)}.hamburger__icon[data-v-f366929e]:before,.hamburger__icon[data-v-f366929e]:after{position:absolute;left:0;transition:all .3s linear}.hamburger__icon[data-v-f366929e]:before{top:-.5rem}.hamburger__icon[data-v-f366929e]:after{top:.5rem}.hamburger__button:focus .hamburger__icon[data-v-f366929e],.hamburger__button:hover .hamburger__icon[data-v-f366929e]{scale:1.05}.hamburger__checkbox:checked+.hamburger__icon[data-v-f366929e]{background-color:transparent}.hamburger__checkbox:checked+.hamburger__icon[data-v-f366929e]:before{top:0;transform:rotate(135deg)}.hamburger__checkbox:checked+.hamburger__icon[data-v-f366929e]:after{top:0;transform:rotate(-135deg)}.collapse-enter-active[data-v-e0d15366]{transition:height .5s ease-in}.collapse-leave-active[data-v-e0d15366]{transition:height .5s ease-out}.header-desktop[data-v-b9d1f493]{width:100%}@media screen and (min-width: 1024px){.header-desktop[data-v-b9d1f493]{width:var(--header-width)}}.slide-down-enter-active[data-v-b9d1f493]{transition:transform .3s ease-in .2s,opacity .5s ease-in}.slide-down-leave-active[data-v-b9d1f493]{transition:transform .5s ease-in,opacity .3s ease-in .2s}.slide-down-enter-from[data-v-b9d1f493],.slide-down-leave-to[data-v-b9d1f493]{opacity:0;transform:translateY(-100%)}.vertical-placement[data-v-84fc20eb]{top:var(--vertical-placement);left:50%;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}.fade-enter-active[data-v-84fc20eb],.fade-leave-active[data-v-84fc20eb]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-84fc20eb],.fade-leave-to[data-v-84fc20eb]{opacity:0}.slide-down-enter-active[data-v-84fc20eb]{animation:slide-down-84fc20eb .3s ease}.slide-down-leave-active[data-v-84fc20eb]{animation:slide-down-84fc20eb reverse .3s ease}@keyframes slide-down-84fc20eb{0%{opacity:0;transform:translateY(-100%) translate(-50%)}to{opacity:1;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}}.sidebar-body[data-v-a7de0a1c]{width:100%}.sidebar-body-height[data-v-a7de0a1c]{min-height:calc(100vh - var(--header-height) - var(--footer-height))}.fade-enter-active[data-v-a7de0a1c],.fade-leave-active[data-v-a7de0a1c]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-a7de0a1c],.fade-leave-to[data-v-a7de0a1c]{opacity:0}.sidebar-left-enter-active[data-v-a7de0a1c],.sidebar-left-leave-active[data-v-a7de0a1c],.sidebar-right-enter-active[data-v-a7de0a1c],.sidebar-right-leave-active[data-v-a7de0a1c]{transition-property:transform,opacity;transition-duration:.3s;transition-timing-function:linear}.sidebar-left-enter-from[data-v-a7de0a1c],.sidebar-left-leave-to[data-v-a7de0a1c]{transform:translate(-100%)}.sidebar-right-enter-from[data-v-a7de0a1c],.sidebar-right-leave-to[data-v-a7de0a1c]{transform:translate(100%)}@media screen and (min-width: 768px){.sidebar-body[data-v-a7de0a1c]{width:var(--sidebar-width)}.sidebar-left-enter-from[data-v-a7de0a1c],.sidebar-left-leave-to[data-v-a7de0a1c]{transform:translate(calc(-1 * var(--sidebar-width)))}.sidebar-right-enter-from[data-v-a7de0a1c],.sidebar-right-leave-to[data-v-a7de0a1c]{transform:translate(var(--sidebar-width))}}.container-hts[data-v-1014eb3f]{max-height:var(--container-hts)}.slide-prev-enter-active[data-v-1014eb3f]{transition:all .5s linear}.slide-prev-leave-active[data-v-1014eb3f]{transition:all .5s}.slide-prev-enter-from[data-v-1014eb3f]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-1014eb3f]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-1014eb3f]{transition:all .5s linear}.slide-next-leave-active[data-v-1014eb3f]{transition:all .5s}.slide-next-enter-from[data-v-1014eb3f]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-1014eb3f]{transform:translate(-100%);opacity:0}")),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
var ge = Object.defineProperty;
|
|
3
|
+
var he = (e, t, r) => t in e ? ge(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
|
|
4
|
+
var n = (e, t, r) => he(e, typeof t != "symbol" ? t + "" : t, r);
|
|
5
|
+
import { defineComponent as _, useSlots as E, ref as B, computed as O, watch as A, createElementBlock as u, createCommentVNode as m, openBlock as c, normalizeClass as b, createElementVNode as f, renderSlot as w, onMounted as X, toDisplayString as F, provide as U, createVNode as S, Transition as H, withCtx as I, inject as K, withDirectives as M, vShow as q, unref as V, h as pe, render as ae, withKeys as be, createBlock as Y, normalizeStyle as P, vModelCheckbox as fe, Teleport as ve } from "vue";
|
|
6
|
+
import { useMutationObserver as me, useWindowSize as Ce, useWindowScroll as ye, useScrollLock as J, useElementSize as xe } from "@vueuse/core";
|
|
7
|
+
class ke {
|
|
8
8
|
constructor() {
|
|
9
9
|
// body text class
|
|
10
10
|
n(this, "bodyText", {
|
|
@@ -28,7 +28,7 @@ class pe {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
class
|
|
31
|
+
class Te {
|
|
32
32
|
constructor() {
|
|
33
33
|
// Border width class
|
|
34
34
|
n(this, "borderWidth", {
|
|
@@ -131,7 +131,7 @@ class be {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
class
|
|
134
|
+
class we {
|
|
135
135
|
constructor() {
|
|
136
136
|
// bg color class
|
|
137
137
|
n(this, "bgColor", {
|
|
@@ -669,7 +669,7 @@ class fe {
|
|
|
669
669
|
});
|
|
670
670
|
}
|
|
671
671
|
}
|
|
672
|
-
class
|
|
672
|
+
class Be {
|
|
673
673
|
constructor() {
|
|
674
674
|
// h1 class
|
|
675
675
|
n(this, "heading1", {
|
|
@@ -701,7 +701,7 @@ class ve {
|
|
|
701
701
|
});
|
|
702
702
|
}
|
|
703
703
|
}
|
|
704
|
-
class
|
|
704
|
+
class Oe {
|
|
705
705
|
constructor() {
|
|
706
706
|
// opacity
|
|
707
707
|
n(this, "backgroundOpacity", {
|
|
@@ -742,7 +742,7 @@ class me {
|
|
|
742
742
|
});
|
|
743
743
|
}
|
|
744
744
|
}
|
|
745
|
-
class
|
|
745
|
+
class Re {
|
|
746
746
|
constructor() {
|
|
747
747
|
// spacing: margin
|
|
748
748
|
n(this, "margin", {
|
|
@@ -929,48 +929,48 @@ class ye {
|
|
|
929
929
|
});
|
|
930
930
|
}
|
|
931
931
|
}
|
|
932
|
-
class
|
|
933
|
-
constructor(
|
|
932
|
+
class Ve {
|
|
933
|
+
constructor(t) {
|
|
934
934
|
n(this, "classType");
|
|
935
|
-
this.classType =
|
|
935
|
+
this.classType = t;
|
|
936
936
|
}
|
|
937
|
-
validateColorType(
|
|
938
|
-
const
|
|
939
|
-
return typeof
|
|
937
|
+
validateColorType(t) {
|
|
938
|
+
const r = /(primary|secondary|success|info|warning|danger|light-1|light-2|light-3|light-4|dark-1|dark-2|dark-3|dark-4|black|white|transparent)/;
|
|
939
|
+
return typeof t != "string" || !r.test(t) ? !1 : $.colorType.includes(this.classType);
|
|
940
940
|
}
|
|
941
|
-
validateSpaceType(
|
|
942
|
-
const
|
|
943
|
-
return typeof
|
|
941
|
+
validateSpaceType(t) {
|
|
942
|
+
const r = /(0|3xs|2xs|xs|sm|md|lg|xl|2xl|3xl)/;
|
|
943
|
+
return typeof t != "string" || !r.test(t) ? !1 : $.spacingType.includes(this.classType);
|
|
944
944
|
}
|
|
945
|
-
validateHeadingTextSizeType(
|
|
946
|
-
const
|
|
947
|
-
return typeof
|
|
945
|
+
validateHeadingTextSizeType(t) {
|
|
946
|
+
const r = /(sm|md|lg|xl)/;
|
|
947
|
+
return typeof t != "string" || !r.test(t) ? !1 : $.headingSizeType.includes(
|
|
948
948
|
this.classType
|
|
949
949
|
);
|
|
950
950
|
}
|
|
951
|
-
validateBodyTextSizeType(
|
|
952
|
-
const
|
|
953
|
-
return typeof
|
|
951
|
+
validateBodyTextSizeType(t) {
|
|
952
|
+
const r = /(xs|sm|md|lg|xl)/;
|
|
953
|
+
return typeof t != "string" || !r.test(t) ? !1 : $.textType.includes(this.classType);
|
|
954
954
|
}
|
|
955
|
-
validateFontWeightType(
|
|
956
|
-
const
|
|
957
|
-
return typeof
|
|
955
|
+
validateFontWeightType(t) {
|
|
956
|
+
const r = /(light|normal|bold)/;
|
|
957
|
+
return typeof t != "string" || !r.test(t) ? !1 : $.fontWeightType.includes(
|
|
958
958
|
this.classType
|
|
959
959
|
);
|
|
960
960
|
}
|
|
961
|
-
validateOpacityType(
|
|
962
|
-
const
|
|
963
|
-
return typeof
|
|
961
|
+
validateOpacityType(t) {
|
|
962
|
+
const r = /\b(0|[1-9]0|100)\b/;
|
|
963
|
+
return typeof t != "number" || !r.test(t.toString()) ? !1 : $.scaleType.includes(this.classType);
|
|
964
964
|
}
|
|
965
|
-
validateRangeType(
|
|
966
|
-
const
|
|
967
|
-
return typeof
|
|
965
|
+
validateRangeType(t) {
|
|
966
|
+
const r = /\b([1-9]|1[0-2])\b/;
|
|
967
|
+
return typeof t != "number" || !r.test(t.toString()) ? !1 : $.borderWidthType.includes(
|
|
968
968
|
this.classType
|
|
969
969
|
);
|
|
970
970
|
}
|
|
971
|
-
validateAlignment(
|
|
972
|
-
const
|
|
973
|
-
return typeof
|
|
971
|
+
validateAlignment(t) {
|
|
972
|
+
const r = /(left|center|right)/;
|
|
973
|
+
return typeof t != "string" || !r.test(t) ? !1 : $.textAlignType.includes(
|
|
974
974
|
this.classType
|
|
975
975
|
);
|
|
976
976
|
}
|
|
@@ -1037,8 +1037,8 @@ const $ = {
|
|
|
1037
1037
|
"GAP"
|
|
1038
1038
|
]
|
|
1039
1039
|
};
|
|
1040
|
-
class
|
|
1041
|
-
constructor(
|
|
1040
|
+
class _e {
|
|
1041
|
+
constructor(t, r) {
|
|
1042
1042
|
n(this, "classType");
|
|
1043
1043
|
n(this, "classValue");
|
|
1044
1044
|
n(this, "colorClass");
|
|
@@ -1048,7 +1048,7 @@ class xe {
|
|
|
1048
1048
|
n(this, "spacingClass");
|
|
1049
1049
|
n(this, "textClass");
|
|
1050
1050
|
n(this, "validator");
|
|
1051
|
-
this.classType =
|
|
1051
|
+
this.classType = t, this.classValue = r, this.colorClass = new we(), this.headingSizeClass = new Be(), this.borderWidthClass = new Te(), this.opacityClass = new Oe(), this.spacingClass = new Re(), this.textClass = new ke(), this.validator = new Ve(t);
|
|
1052
1052
|
}
|
|
1053
1053
|
generateClass() {
|
|
1054
1054
|
switch (this.classType) {
|
|
@@ -1380,7 +1380,7 @@ class xe {
|
|
|
1380
1380
|
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.gap[this.classValue] : " ";
|
|
1381
1381
|
}
|
|
1382
1382
|
}
|
|
1383
|
-
const
|
|
1383
|
+
const C = (e, t) => new _e(e, t).generateClass(), Le = { class: "gap-2xs flex w-full justify-between" }, Ae = { class: "w-full" }, St = /* @__PURE__ */ _({
|
|
1384
1384
|
__name: "Alert",
|
|
1385
1385
|
props: {
|
|
1386
1386
|
color: { default: "danger" },
|
|
@@ -1390,40 +1390,40 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
1390
1390
|
dismissible: { type: Boolean, default: !1 }
|
|
1391
1391
|
},
|
|
1392
1392
|
emits: ["close"],
|
|
1393
|
-
setup(
|
|
1394
|
-
const
|
|
1395
|
-
|
|
1396
|
-
const
|
|
1397
|
-
const { color:
|
|
1398
|
-
return
|
|
1399
|
-
}),
|
|
1400
|
-
d.value = !1,
|
|
1393
|
+
setup(e, { expose: t, emit: r }) {
|
|
1394
|
+
const s = e;
|
|
1395
|
+
E();
|
|
1396
|
+
const a = r, d = B(s.show), o = O(() => {
|
|
1397
|
+
const { color: p, rounded: g, shadow: k } = s, v = [C("BGCOLOR", p)];
|
|
1398
|
+
return g && v.push("rounded-md"), k && v.push("drop-shadow-md"), v.join(" ");
|
|
1399
|
+
}), l = (p) => {
|
|
1400
|
+
d.value = !1, a("close", p);
|
|
1401
1401
|
}, i = () => {
|
|
1402
1402
|
d.value = !1;
|
|
1403
1403
|
};
|
|
1404
|
-
return
|
|
1405
|
-
() =>
|
|
1406
|
-
(
|
|
1407
|
-
d.value =
|
|
1404
|
+
return A(
|
|
1405
|
+
() => s.show,
|
|
1406
|
+
(p) => {
|
|
1407
|
+
d.value = p;
|
|
1408
1408
|
}
|
|
1409
|
-
),
|
|
1409
|
+
), t({
|
|
1410
1410
|
close: i
|
|
1411
|
-
}), (
|
|
1411
|
+
}), (p, g) => d.value ? (c(), u("div", {
|
|
1412
1412
|
key: 0,
|
|
1413
1413
|
role: "alert",
|
|
1414
1414
|
"aria-live": "polite",
|
|
1415
1415
|
"aria-atomic": "true",
|
|
1416
1416
|
class: b(["relative px-[1.25rem] py-[0.75rem]", [o.value]])
|
|
1417
1417
|
}, [
|
|
1418
|
-
f("div",
|
|
1419
|
-
f("div",
|
|
1420
|
-
|
|
1418
|
+
f("div", Le, [
|
|
1419
|
+
f("div", Ae, [
|
|
1420
|
+
w(p.$slots, "default")
|
|
1421
1421
|
]),
|
|
1422
|
-
|
|
1422
|
+
p.dismissible ? (c(), u("button", {
|
|
1423
1423
|
key: 0,
|
|
1424
|
-
onClick:
|
|
1424
|
+
onClick: l,
|
|
1425
1425
|
class: "flex items-center opacity-60 transition-opacity duration-300 ease-linear hover:opacity-40"
|
|
1426
|
-
},
|
|
1426
|
+
}, g[0] || (g[0] = [
|
|
1427
1427
|
f("svg", {
|
|
1428
1428
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1429
1429
|
viewBox: "0 0 384 512",
|
|
@@ -1436,20 +1436,20 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
1436
1436
|
])
|
|
1437
1437
|
], 2)) : m("", !0);
|
|
1438
1438
|
}
|
|
1439
|
-
}),
|
|
1440
|
-
setup(
|
|
1441
|
-
const
|
|
1439
|
+
}), Ee = _({
|
|
1440
|
+
setup(e, { slots: t }) {
|
|
1441
|
+
const r = B(!1);
|
|
1442
1442
|
return X(() => {
|
|
1443
|
-
|
|
1444
|
-
}), () =>
|
|
1443
|
+
r.value = !0;
|
|
1444
|
+
}), () => r.value && t.default ? t.default() : null;
|
|
1445
1445
|
}
|
|
1446
|
-
}),
|
|
1446
|
+
}), Se = {
|
|
1447
1447
|
xs: "backdrop-blur-xs",
|
|
1448
1448
|
sm: "backdrop-blur-sm",
|
|
1449
1449
|
md: "backdrop-blur-md",
|
|
1450
1450
|
lg: "backdrop-blur-lg",
|
|
1451
1451
|
xl: "backdrop-blur-xl"
|
|
1452
|
-
},
|
|
1452
|
+
}, Ie = {
|
|
1453
1453
|
primary: "mcl-glass-primary",
|
|
1454
1454
|
secondary: "mcl-glass-secondary",
|
|
1455
1455
|
success: "mcl-glass-success",
|
|
@@ -1467,7 +1467,7 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
1467
1467
|
black: "mcl-glass-black",
|
|
1468
1468
|
white: "mcl-glass-white",
|
|
1469
1469
|
transparent: "mcl-glass-transparent"
|
|
1470
|
-
},
|
|
1470
|
+
}, De = {
|
|
1471
1471
|
10: "mcl-depth-10",
|
|
1472
1472
|
20: "mcl-depth-20",
|
|
1473
1473
|
30: "mcl-depth-30",
|
|
@@ -1478,19 +1478,19 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
1478
1478
|
80: "mcl-depth-80",
|
|
1479
1479
|
90: "mcl-depth-90",
|
|
1480
1480
|
100: "mcl-depth-100"
|
|
1481
|
-
},
|
|
1481
|
+
}, He = (e, t, r, s = 10) => [
|
|
1482
1482
|
"mcl-glassmorphism",
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
].filter(Boolean).join(" "),
|
|
1483
|
+
Ie[e],
|
|
1484
|
+
Se[t],
|
|
1485
|
+
C("BGOPACITY", r),
|
|
1486
|
+
De[s]
|
|
1487
|
+
].filter(Boolean).join(" "), Ge = ["src", "alt"], Ne = {
|
|
1488
1488
|
key: 2,
|
|
1489
1489
|
class: "px-xs pt-xs pb-2xs flex-1"
|
|
1490
|
-
},
|
|
1490
|
+
}, We = {
|
|
1491
1491
|
key: 3,
|
|
1492
1492
|
class: "flex-1"
|
|
1493
|
-
},
|
|
1493
|
+
}, It = /* @__PURE__ */ _({
|
|
1494
1494
|
__name: "Card",
|
|
1495
1495
|
props: {
|
|
1496
1496
|
variant: { default: "light-1" },
|
|
@@ -1512,81 +1512,81 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
1512
1512
|
titleSize: { default: "md" },
|
|
1513
1513
|
cardClass: { default: "" }
|
|
1514
1514
|
},
|
|
1515
|
-
setup(
|
|
1516
|
-
const
|
|
1515
|
+
setup(e) {
|
|
1516
|
+
const t = e, r = E(), s = O(() => {
|
|
1517
1517
|
const {
|
|
1518
|
-
variant:
|
|
1518
|
+
variant: l,
|
|
1519
1519
|
rounded: i,
|
|
1520
|
-
shadow:
|
|
1521
|
-
border:
|
|
1522
|
-
borderVariant:
|
|
1520
|
+
shadow: p,
|
|
1521
|
+
border: g,
|
|
1522
|
+
borderVariant: k,
|
|
1523
1523
|
glass: v,
|
|
1524
|
-
glassBlur:
|
|
1525
|
-
glassOpacity:
|
|
1526
|
-
} =
|
|
1524
|
+
glassBlur: R,
|
|
1525
|
+
glassOpacity: G
|
|
1526
|
+
} = t;
|
|
1527
1527
|
return [
|
|
1528
|
-
|
|
1528
|
+
C("BGCOLOR", l),
|
|
1529
1529
|
i ? "rounded-lg" : "rounded-sm",
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
v &&
|
|
1530
|
+
p && "drop-shadow-md",
|
|
1531
|
+
g && "border",
|
|
1532
|
+
g && C("BORDER", k),
|
|
1533
|
+
v && He(l, R, G)
|
|
1534
1534
|
].filter(Boolean).join(" ");
|
|
1535
|
-
}),
|
|
1536
|
-
const { titleVariant:
|
|
1535
|
+
}), a = O(() => {
|
|
1536
|
+
const { titleVariant: l, titleSize: i } = t;
|
|
1537
1537
|
return [
|
|
1538
|
-
|
|
1539
|
-
|
|
1538
|
+
C("TEXTCOLOR", l),
|
|
1539
|
+
C("H3", i)
|
|
1540
1540
|
].join(" ");
|
|
1541
|
-
}), d =
|
|
1542
|
-
const { border:
|
|
1541
|
+
}), d = O(() => {
|
|
1542
|
+
const { border: l, borderVariant: i, titleVariant: p } = t;
|
|
1543
1543
|
return [
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1544
|
+
C("TEXTCOLOR", p),
|
|
1545
|
+
l && "border-b",
|
|
1546
|
+
C("BORDER", i)
|
|
1547
1547
|
].filter(Boolean).join(" ");
|
|
1548
|
-
}), o =
|
|
1549
|
-
const { border:
|
|
1548
|
+
}), o = O(() => {
|
|
1549
|
+
const { border: l, borderVariant: i } = t;
|
|
1550
1550
|
return [
|
|
1551
|
-
|
|
1552
|
-
|
|
1551
|
+
l && "border-t",
|
|
1552
|
+
l && C("BORDER", i)
|
|
1553
1553
|
].filter(Boolean).join(" ");
|
|
1554
1554
|
});
|
|
1555
|
-
return (
|
|
1556
|
-
class: b(["flex h-full w-full flex-col overflow-hidden", [
|
|
1555
|
+
return (l, i) => (c(), u("div", {
|
|
1556
|
+
class: b(["flex h-full w-full flex-col overflow-hidden", [s.value, l.cardClass]])
|
|
1557
1557
|
}, [
|
|
1558
|
-
|
|
1558
|
+
l.header || r.header ? w(l.$slots, "header", { key: 0 }, () => [
|
|
1559
1559
|
f("div", {
|
|
1560
1560
|
class: b([[d.value], "py-2xs px-xs font-bold"])
|
|
1561
1561
|
}, [
|
|
1562
|
-
f("p", null, F(
|
|
1562
|
+
f("p", null, F(l.header), 1)
|
|
1563
1563
|
], 2)
|
|
1564
1564
|
]) : m("", !0),
|
|
1565
|
-
|
|
1565
|
+
l.imageSrc && !l.noImage ? (c(), u("img", {
|
|
1566
1566
|
key: 1,
|
|
1567
|
-
src:
|
|
1568
|
-
alt:
|
|
1567
|
+
src: l.imageSrc,
|
|
1568
|
+
alt: l.imageAlt,
|
|
1569
1569
|
class: "aspect-video min-w-full object-cover object-top"
|
|
1570
|
-
}, null, 8,
|
|
1571
|
-
|
|
1570
|
+
}, null, 8, Ge)) : m("", !0),
|
|
1571
|
+
l.noBody ? m("", !0) : (c(), u("div", Ne, [
|
|
1572
1572
|
f("h3", {
|
|
1573
|
-
class: b([[
|
|
1574
|
-
}, F(
|
|
1575
|
-
|
|
1573
|
+
class: b([[a.value], "mb-xs"])
|
|
1574
|
+
}, F(l.title), 3),
|
|
1575
|
+
r.body ? w(l.$slots, "body", { key: 0 }) : m("", !0)
|
|
1576
1576
|
])),
|
|
1577
|
-
|
|
1578
|
-
|
|
1577
|
+
l.noBody && r.default ? (c(), u("div", We, [
|
|
1578
|
+
w(l.$slots, "default")
|
|
1579
1579
|
])) : m("", !0),
|
|
1580
|
-
|
|
1580
|
+
l.footer || r.footer ? w(l.$slots, "footer", { key: 4 }, () => [
|
|
1581
1581
|
f("div", {
|
|
1582
1582
|
class: b(["py-2xs px-xs", [o.value]])
|
|
1583
1583
|
}, [
|
|
1584
|
-
f("p", null, F(
|
|
1584
|
+
f("p", null, F(l.footer), 1)
|
|
1585
1585
|
], 2)
|
|
1586
1586
|
]) : m("", !0)
|
|
1587
1587
|
], 2));
|
|
1588
1588
|
}
|
|
1589
|
-
}),
|
|
1589
|
+
}), le = Symbol(), $e = /* @__PURE__ */ _({
|
|
1590
1590
|
__name: "CarouselContainer",
|
|
1591
1591
|
props: {
|
|
1592
1592
|
bodyClass: { default: "" },
|
|
@@ -1595,125 +1595,126 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
1595
1595
|
controllerBottomClass: { default: "" },
|
|
1596
1596
|
loop: { type: Boolean, default: !1 }
|
|
1597
1597
|
},
|
|
1598
|
-
setup(
|
|
1599
|
-
const
|
|
1598
|
+
setup(e, { expose: t }) {
|
|
1599
|
+
const r = e, s = E(), a = B(0), d = B([]), o = B(0), l = B("slide-next"), i = (v) => {
|
|
1600
1600
|
d.value.push(v), o.value = [...new Set(d.value)].length;
|
|
1601
|
-
},
|
|
1602
|
-
|
|
1601
|
+
}, p = (v) => {
|
|
1602
|
+
a.value = v;
|
|
1603
1603
|
};
|
|
1604
|
-
|
|
1605
|
-
activeIdx:
|
|
1604
|
+
U(le, {
|
|
1605
|
+
activeIdx: a,
|
|
1606
1606
|
setSlide: i
|
|
1607
1607
|
});
|
|
1608
|
-
const
|
|
1609
|
-
const { loop: v } =
|
|
1610
|
-
v &&
|
|
1611
|
-
},
|
|
1612
|
-
const { loop: v } =
|
|
1613
|
-
v &&
|
|
1608
|
+
const g = () => {
|
|
1609
|
+
const { loop: v } = r;
|
|
1610
|
+
v && a.value === o.value - 1 ? a.value = 0 : a.value < o.value - 1 && (a.value = a.value + 1);
|
|
1611
|
+
}, k = () => {
|
|
1612
|
+
const { loop: v } = r;
|
|
1613
|
+
v && a.value === 0 ? a.value = o.value - 1 : a.value > 0 && (a.value = a.value - 1);
|
|
1614
1614
|
};
|
|
1615
|
-
return
|
|
1616
|
-
() =>
|
|
1617
|
-
(v,
|
|
1618
|
-
v >
|
|
1615
|
+
return A(
|
|
1616
|
+
() => a.value,
|
|
1617
|
+
(v, R) => {
|
|
1618
|
+
v > R || v === 0 && R === o.value - 1 ? l.value = "slide-next" : l.value = "slide-prev";
|
|
1619
1619
|
}
|
|
1620
|
-
),
|
|
1620
|
+
), t({
|
|
1621
1621
|
numberOfSlides: o,
|
|
1622
|
-
prev:
|
|
1623
|
-
next:
|
|
1624
|
-
setActive:
|
|
1625
|
-
}), (v,
|
|
1622
|
+
prev: k,
|
|
1623
|
+
next: g,
|
|
1624
|
+
setActive: p
|
|
1625
|
+
}), (v, R) => (c(), u("div", {
|
|
1626
1626
|
class: b([v.bodyClass, "relative overflow-x-hidden"])
|
|
1627
1627
|
}, [
|
|
1628
|
-
|
|
1628
|
+
s["controller-top"] ? (c(), u("div", {
|
|
1629
1629
|
key: 0,
|
|
1630
1630
|
class: b(v.controllerTopClass)
|
|
1631
1631
|
}, [
|
|
1632
|
-
|
|
1633
|
-
next:
|
|
1634
|
-
prev:
|
|
1635
|
-
setActive:
|
|
1636
|
-
activeSlide:
|
|
1632
|
+
w(v.$slots, "controller-top", {
|
|
1633
|
+
next: g,
|
|
1634
|
+
prev: k,
|
|
1635
|
+
setActive: p,
|
|
1636
|
+
activeSlide: a.value,
|
|
1637
1637
|
numberOfSlides: o.value
|
|
1638
1638
|
}, void 0, !0)
|
|
1639
1639
|
], 2)) : m("", !0),
|
|
1640
1640
|
f("div", {
|
|
1641
1641
|
class: b(["grid grid-cols-1 grid-rows-1", v.contentContainerClass])
|
|
1642
1642
|
}, [
|
|
1643
|
-
|
|
1643
|
+
S(H, { name: l.value }, {
|
|
1644
1644
|
default: I(() => [
|
|
1645
|
-
(
|
|
1646
|
-
key:
|
|
1645
|
+
(c(), u("div", {
|
|
1646
|
+
key: a.value,
|
|
1647
1647
|
class: "col-start-1 col-end-1 row-start-1 row-end-1"
|
|
1648
1648
|
}, [
|
|
1649
|
-
|
|
1649
|
+
w(v.$slots, "content", {}, void 0, !0)
|
|
1650
1650
|
]))
|
|
1651
1651
|
]),
|
|
1652
1652
|
_: 3
|
|
1653
1653
|
}, 8, ["name"])
|
|
1654
1654
|
], 2),
|
|
1655
|
-
|
|
1655
|
+
s["controller-bottom"] ? (c(), u("div", {
|
|
1656
1656
|
key: 1,
|
|
1657
1657
|
class: b(v.controllerBottomClass)
|
|
1658
1658
|
}, [
|
|
1659
|
-
|
|
1660
|
-
next:
|
|
1661
|
-
prev:
|
|
1662
|
-
setActive:
|
|
1663
|
-
activeSlide:
|
|
1659
|
+
w(v.$slots, "controller-bottom", {
|
|
1660
|
+
next: g,
|
|
1661
|
+
prev: k,
|
|
1662
|
+
setActive: p,
|
|
1663
|
+
activeSlide: a.value,
|
|
1664
1664
|
numberOfSlides: o.value
|
|
1665
1665
|
}, void 0, !0)
|
|
1666
1666
|
], 2)) : m("", !0)
|
|
1667
1667
|
], 2));
|
|
1668
1668
|
}
|
|
1669
|
-
}), W = (
|
|
1670
|
-
const
|
|
1671
|
-
for (const [
|
|
1672
|
-
|
|
1673
|
-
return
|
|
1674
|
-
},
|
|
1669
|
+
}), W = (e, t) => {
|
|
1670
|
+
const r = e.__vccOpts || e;
|
|
1671
|
+
for (const [s, a] of t)
|
|
1672
|
+
r[s] = a;
|
|
1673
|
+
return r;
|
|
1674
|
+
}, Dt = /* @__PURE__ */ W($e, [["__scopeId", "data-v-05e275d0"]]), Me = ["id"], Ht = /* @__PURE__ */ _({
|
|
1675
1675
|
__name: "CarouselContent",
|
|
1676
1676
|
props: {
|
|
1677
1677
|
slideNumber: {},
|
|
1678
1678
|
id: {},
|
|
1679
1679
|
slideClass: { default: "" }
|
|
1680
1680
|
},
|
|
1681
|
-
setup(
|
|
1682
|
-
const
|
|
1683
|
-
|
|
1684
|
-
),
|
|
1685
|
-
|
|
1686
|
-
const d =
|
|
1687
|
-
const { slideNumber: o } =
|
|
1688
|
-
return
|
|
1689
|
-
});
|
|
1690
|
-
return (o,
|
|
1681
|
+
setup(e) {
|
|
1682
|
+
const t = e, { activeIdx: r, setSlide: s } = K(
|
|
1683
|
+
le
|
|
1684
|
+
), a = B(null);
|
|
1685
|
+
s(t.slideNumber), E();
|
|
1686
|
+
const d = O(() => {
|
|
1687
|
+
const { slideNumber: o } = t;
|
|
1688
|
+
return r.value === o;
|
|
1689
|
+
});
|
|
1690
|
+
return (o, l) => M((c(), u("div", {
|
|
1691
1691
|
ref_key: "slideRef",
|
|
1692
|
-
ref:
|
|
1692
|
+
ref: a,
|
|
1693
1693
|
id: o.id,
|
|
1694
1694
|
class: b([o.slideClass, "w-full"]),
|
|
1695
1695
|
role: "tabpanel",
|
|
1696
1696
|
tabindex: "-1"
|
|
1697
1697
|
}, [
|
|
1698
|
-
|
|
1699
|
-
], 10,
|
|
1700
|
-
[
|
|
1698
|
+
w(o.$slots, "default")
|
|
1699
|
+
], 10, Me)), [
|
|
1700
|
+
[q, d.value]
|
|
1701
1701
|
]);
|
|
1702
1702
|
}
|
|
1703
|
-
}),
|
|
1704
|
-
|
|
1705
|
-
(
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
r(g);
|
|
1712
|
-
}
|
|
1713
|
-
}
|
|
1703
|
+
}), Fe = (e) => e.getAttribute("visible") === "true", Xe = (e) => e.type === "attributes" && e.attributeName === "visible", Q = (e, t) => me(
|
|
1704
|
+
e,
|
|
1705
|
+
(r) => {
|
|
1706
|
+
const s = r.find(Xe);
|
|
1707
|
+
if (!s)
|
|
1708
|
+
return;
|
|
1709
|
+
const a = s.target, d = Fe(a);
|
|
1710
|
+
t(d);
|
|
1714
1711
|
},
|
|
1715
|
-
{
|
|
1716
|
-
|
|
1712
|
+
{
|
|
1713
|
+
attributes: !0,
|
|
1714
|
+
attributeFilter: ["visible"]
|
|
1715
|
+
// only watch the visible attribute
|
|
1716
|
+
}
|
|
1717
|
+
), Pe = ["accordion", "visible"], ze = /* @__PURE__ */ _({
|
|
1717
1718
|
__name: "Collapse",
|
|
1718
1719
|
props: {
|
|
1719
1720
|
accordion: {},
|
|
@@ -1721,66 +1722,66 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
1721
1722
|
visible: { type: Boolean, default: !1 }
|
|
1722
1723
|
},
|
|
1723
1724
|
emits: ["open", "close"],
|
|
1724
|
-
setup(
|
|
1725
|
-
const
|
|
1726
|
-
|
|
1727
|
-
const
|
|
1725
|
+
setup(e, { expose: t, emit: r }) {
|
|
1726
|
+
const s = e;
|
|
1727
|
+
E();
|
|
1728
|
+
const a = r, d = B(), o = B(s.visible), l = () => {
|
|
1728
1729
|
o.value = !o.value;
|
|
1729
1730
|
}, i = () => {
|
|
1730
1731
|
o.value = !0;
|
|
1731
|
-
},
|
|
1732
|
+
}, p = () => {
|
|
1732
1733
|
o.value = !1;
|
|
1733
|
-
},
|
|
1734
|
-
|
|
1735
|
-
},
|
|
1736
|
-
|
|
1737
|
-
}, v = (
|
|
1738
|
-
|
|
1739
|
-
const L = getComputedStyle(
|
|
1740
|
-
|
|
1741
|
-
},
|
|
1742
|
-
|
|
1743
|
-
},
|
|
1744
|
-
|
|
1734
|
+
}, g = () => {
|
|
1735
|
+
a("open", !0);
|
|
1736
|
+
}, k = () => {
|
|
1737
|
+
a("close", !1);
|
|
1738
|
+
}, v = (h) => {
|
|
1739
|
+
h.style.height = "auto", h.style.opacity = "0";
|
|
1740
|
+
const L = getComputedStyle(h).height;
|
|
1741
|
+
h.style.height = "0px", h.offsetHeight, h.style.height = L, h.style.opacity = "1";
|
|
1742
|
+
}, R = (h) => {
|
|
1743
|
+
h.style.height = "auto", h.style.opacity = "1";
|
|
1744
|
+
}, G = (h) => {
|
|
1745
|
+
h.style.height = getComputedStyle(h).height, h.offsetHeight, h.style.height = "0px", h.style.opacity = "0";
|
|
1745
1746
|
};
|
|
1746
|
-
return
|
|
1747
|
-
o.value =
|
|
1748
|
-
}),
|
|
1749
|
-
() =>
|
|
1750
|
-
(
|
|
1751
|
-
o.value =
|
|
1747
|
+
return Q(d, (h = !1) => {
|
|
1748
|
+
o.value = h;
|
|
1749
|
+
}), A(
|
|
1750
|
+
() => s.visible,
|
|
1751
|
+
(h) => {
|
|
1752
|
+
o.value = h;
|
|
1752
1753
|
}
|
|
1753
|
-
),
|
|
1754
|
-
|
|
1755
|
-
}),
|
|
1756
|
-
toggle:
|
|
1757
|
-
close:
|
|
1754
|
+
), A(o, (h) => {
|
|
1755
|
+
h === !0 ? g() : h === !1 && k();
|
|
1756
|
+
}), t({
|
|
1757
|
+
toggle: l,
|
|
1758
|
+
close: p,
|
|
1758
1759
|
open: i
|
|
1759
|
-
}), (
|
|
1760
|
-
accordion:
|
|
1760
|
+
}), (h, L) => (c(), u("div", {
|
|
1761
|
+
accordion: h.accordion,
|
|
1761
1762
|
visible: o.value,
|
|
1762
1763
|
ref_key: "collapseRef",
|
|
1763
1764
|
ref: d
|
|
1764
1765
|
}, [
|
|
1765
|
-
|
|
1766
|
+
S(V(Ee), null, {
|
|
1766
1767
|
default: I(() => [
|
|
1767
|
-
|
|
1768
|
+
S(H, {
|
|
1768
1769
|
name: "collapse",
|
|
1769
1770
|
tag: "div",
|
|
1770
1771
|
onEnter: v,
|
|
1771
|
-
onAfterEnter:
|
|
1772
|
-
onLeave:
|
|
1772
|
+
onAfterEnter: R,
|
|
1773
|
+
onLeave: G,
|
|
1773
1774
|
class: "overflow-y-clip"
|
|
1774
1775
|
}, {
|
|
1775
1776
|
default: I(() => [
|
|
1776
1777
|
M(f("div", null, [
|
|
1777
1778
|
f("div", {
|
|
1778
|
-
class: b(
|
|
1779
|
+
class: b(h.className)
|
|
1779
1780
|
}, [
|
|
1780
|
-
|
|
1781
|
+
w(h.$slots, "default", {}, void 0, !0)
|
|
1781
1782
|
], 2)
|
|
1782
1783
|
], 512), [
|
|
1783
|
-
[
|
|
1784
|
+
[q, o.value]
|
|
1784
1785
|
])
|
|
1785
1786
|
]),
|
|
1786
1787
|
_: 3
|
|
@@ -1788,9 +1789,114 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
1788
1789
|
]),
|
|
1789
1790
|
_: 3
|
|
1790
1791
|
})
|
|
1791
|
-
], 8,
|
|
1792
|
+
], 8, Pe));
|
|
1793
|
+
}
|
|
1794
|
+
}), Gt = /* @__PURE__ */ W(ze, [["__scopeId", "data-v-5d535dc4"]]), Ye = (e, t, r) => !t || !(t instanceof Node) || e === t || e.contains(t) ? !1 : r != null && r.length ? !r.some(
|
|
1795
|
+
(s) => s === t || s.contains(t)
|
|
1796
|
+
) : !0, z = (e) => typeof e.value == "function" ? {
|
|
1797
|
+
handler: e.value,
|
|
1798
|
+
events: ["click"]
|
|
1799
|
+
} : {
|
|
1800
|
+
handler: e.value.handler,
|
|
1801
|
+
events: e.value.events || ["click"],
|
|
1802
|
+
excludeElements: e.value.excludeElements
|
|
1803
|
+
}, re = (e, t, r) => (s) => {
|
|
1804
|
+
Ye(e, s.target, r) && t(s);
|
|
1805
|
+
}, Z = {
|
|
1806
|
+
mounted(e, t) {
|
|
1807
|
+
const { handler: r, events: s, excludeElements: a } = z(t);
|
|
1808
|
+
e.__ClickOutsideHandler = re(e, r, a), s.forEach((d) => {
|
|
1809
|
+
document.addEventListener(d, e.__ClickOutsideHandler, !0);
|
|
1810
|
+
});
|
|
1811
|
+
},
|
|
1812
|
+
updated(e, t) {
|
|
1813
|
+
e.__ClickOutsideHandler && z({
|
|
1814
|
+
...t,
|
|
1815
|
+
value: t.oldValue
|
|
1816
|
+
}).events.forEach((o) => {
|
|
1817
|
+
document.removeEventListener(o, e.__ClickOutsideHandler, !0);
|
|
1818
|
+
});
|
|
1819
|
+
const { handler: r, events: s, excludeElements: a } = z(t);
|
|
1820
|
+
e.__ClickOutsideHandler = re(e, r, a), s.forEach((d) => {
|
|
1821
|
+
document.addEventListener(d, e.__ClickOutsideHandler, !0);
|
|
1822
|
+
});
|
|
1823
|
+
},
|
|
1824
|
+
unmounted(e, t) {
|
|
1825
|
+
if (e.__ClickOutsideHandler) {
|
|
1826
|
+
const { events: r } = z(t);
|
|
1827
|
+
r.forEach((s) => {
|
|
1828
|
+
document.removeEventListener(s, e.__ClickOutsideHandler, !0);
|
|
1829
|
+
}), delete e.__ClickOutsideHandler;
|
|
1830
|
+
}
|
|
1792
1831
|
}
|
|
1793
|
-
}
|
|
1832
|
+
}, oe = (e, t) => {
|
|
1833
|
+
if (e.tagName === "A") {
|
|
1834
|
+
const r = e.getAttribute("href");
|
|
1835
|
+
return r ? r.charAt(0) === "#" ? r.substring(1) : r : null;
|
|
1836
|
+
}
|
|
1837
|
+
return t || null;
|
|
1838
|
+
}, ie = (e) => e ? document.getElementById(e) : null, ne = (e) => e.hasAttribute("visible"), ee = (e) => {
|
|
1839
|
+
const r = e.getAttribute("visible") === "true" ? "false" : "true";
|
|
1840
|
+
e.setAttribute("visible", r);
|
|
1841
|
+
}, je = (e) => {
|
|
1842
|
+
const t = `div[accordion="${e}"]`;
|
|
1843
|
+
return Array.from(document.querySelectorAll(t));
|
|
1844
|
+
}, Ue = (e, t) => {
|
|
1845
|
+
je(t).forEach((s) => {
|
|
1846
|
+
s.id === e.id ? ee(s) : s.getAttribute("visible") === "true" && s.setAttribute("visible", "false");
|
|
1847
|
+
});
|
|
1848
|
+
}, Ke = (e) => {
|
|
1849
|
+
ee(e);
|
|
1850
|
+
}, qe = (e) => (t) => {
|
|
1851
|
+
t.preventDefault();
|
|
1852
|
+
const r = t.target, s = oe(r, e), a = ie(s);
|
|
1853
|
+
if (!a) {
|
|
1854
|
+
console.warn(`[v-collapse] Target element not found: ${s}`);
|
|
1855
|
+
return;
|
|
1856
|
+
}
|
|
1857
|
+
if (!ne(a)) {
|
|
1858
|
+
console.warn(
|
|
1859
|
+
`[v-collapse] Target element missing 'visible' attribute: ${s}`
|
|
1860
|
+
);
|
|
1861
|
+
return;
|
|
1862
|
+
}
|
|
1863
|
+
const d = a.getAttribute("accordion");
|
|
1864
|
+
d ? Ue(a, d) : Ke(a);
|
|
1865
|
+
}, Nt = {
|
|
1866
|
+
mounted(e, t) {
|
|
1867
|
+
e.__HandleToggler = qe(t.arg), e.addEventListener("click", e.__HandleToggler);
|
|
1868
|
+
},
|
|
1869
|
+
unmounted(e) {
|
|
1870
|
+
e.__HandleToggler && (e.removeEventListener("click", e.__HandleToggler), delete e.__HandleToggler);
|
|
1871
|
+
}
|
|
1872
|
+
}, Je = (e) => (t) => {
|
|
1873
|
+
t.preventDefault();
|
|
1874
|
+
const r = t.target, s = oe(r, e), a = ie(s);
|
|
1875
|
+
if (!a) {
|
|
1876
|
+
console.warn(`[v-toggle] Target element not found: ${s}`);
|
|
1877
|
+
return;
|
|
1878
|
+
}
|
|
1879
|
+
if (!ne(a)) {
|
|
1880
|
+
console.warn(
|
|
1881
|
+
`[v-toggle] Target element mission visible 'visible' attribute: ${s}`
|
|
1882
|
+
);
|
|
1883
|
+
return;
|
|
1884
|
+
}
|
|
1885
|
+
ee(a);
|
|
1886
|
+
}, Wt = {
|
|
1887
|
+
mounted(e, t) {
|
|
1888
|
+
e.__ClickToggleHandler = Je(t.arg), e.addEventListener("click", e.__ClickToggleHandler);
|
|
1889
|
+
},
|
|
1890
|
+
unmounted(e) {
|
|
1891
|
+
e.__ClickToggleHandler && (e.removeEventListener("click", e.__ClickToggleHandler), delete e.__ClickToggleHandler);
|
|
1892
|
+
}
|
|
1893
|
+
}, se = {
|
|
1894
|
+
left: "tooltip-left",
|
|
1895
|
+
top: "tooltip-top",
|
|
1896
|
+
bottom: "tooltip-bottom",
|
|
1897
|
+
right: "tooltip-right"
|
|
1898
|
+
}, Qe = _({
|
|
1899
|
+
name: "Tooltip",
|
|
1794
1900
|
props: {
|
|
1795
1901
|
direction: {
|
|
1796
1902
|
type: String,
|
|
@@ -1817,202 +1923,151 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
1817
1923
|
required: !0
|
|
1818
1924
|
}
|
|
1819
1925
|
},
|
|
1820
|
-
setup(
|
|
1821
|
-
const
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
return "tooltip-top";
|
|
1833
|
-
case "bottom":
|
|
1834
|
-
return "tooltip-bottom";
|
|
1835
|
-
default:
|
|
1836
|
-
return "tooltip-right";
|
|
1837
|
-
}
|
|
1838
|
-
});
|
|
1839
|
-
return () => oe("div", {
|
|
1840
|
-
class: [
|
|
1841
|
-
r,
|
|
1842
|
-
a.customClass,
|
|
1843
|
-
s.value,
|
|
1844
|
-
e.value
|
|
1845
|
-
],
|
|
1926
|
+
setup(e) {
|
|
1927
|
+
const t = "invisible opacity-0 group-hover:visible group-hover:opacity-100 z-[100] tooltip", r = O(() => [
|
|
1928
|
+
C("BGCOLOR", e.color),
|
|
1929
|
+
C("TEXTCOLOR", e.textColor)
|
|
1930
|
+
].join(" ")), s = O(() => ({ width: `${e.width}px` })), a = O(() => se[e.direction] || se.right), d = O(() => [
|
|
1931
|
+
t,
|
|
1932
|
+
a.value,
|
|
1933
|
+
r.value,
|
|
1934
|
+
e.customClass
|
|
1935
|
+
]);
|
|
1936
|
+
return () => pe("div", {
|
|
1937
|
+
class: d.value,
|
|
1846
1938
|
role: "tooltip",
|
|
1847
|
-
innerHTML:
|
|
1848
|
-
style: [
|
|
1849
|
-
});
|
|
1850
|
-
}
|
|
1851
|
-
}),
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
|
|
1873
|
-
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
}
|
|
1898
|
-
const d = s.getAttribute("accordion"), o = document.querySelectorAll(
|
|
1899
|
-
`div[accordion="${d}"]`
|
|
1900
|
-
);
|
|
1901
|
-
for (let t = 0; t < o.length; t++) {
|
|
1902
|
-
const i = o[t].getAttribute("visible");
|
|
1903
|
-
if (o[t].id !== s.id && i === "true" && o[t].setAttribute("visible", "false"), o[t].id === s.id) {
|
|
1904
|
-
const c = s.getAttribute("visible") === "true" ? "false" : "true";
|
|
1905
|
-
s.setAttribute("visible", c);
|
|
1906
|
-
}
|
|
1907
|
-
}
|
|
1908
|
-
}, a.addEventListener("click", a.__HandleToggler);
|
|
1939
|
+
innerHTML: e.title,
|
|
1940
|
+
style: [s.value]
|
|
1941
|
+
});
|
|
1942
|
+
}
|
|
1943
|
+
}), j = (e, t, r, s) => {
|
|
1944
|
+
if (e.hasAttribute(r))
|
|
1945
|
+
return e.getAttribute(r);
|
|
1946
|
+
if (typeof t.value == "object" && t.value !== null && s in t.value)
|
|
1947
|
+
return t.value[s];
|
|
1948
|
+
}, Ze = (e, t) => {
|
|
1949
|
+
var r;
|
|
1950
|
+
if (e.hasAttribute("title"))
|
|
1951
|
+
return e.getAttribute("title") || void 0;
|
|
1952
|
+
if (typeof t.value == "string")
|
|
1953
|
+
return t.value;
|
|
1954
|
+
if (typeof t.value == "object" && ((r = t.value) != null && r.title))
|
|
1955
|
+
return t.value.title;
|
|
1956
|
+
}, et = (e) => {
|
|
1957
|
+
const t = Object.keys(e.modifiers);
|
|
1958
|
+
return t.length > 0 ? t[0] : void 0;
|
|
1959
|
+
}, tt = (e, t) => {
|
|
1960
|
+
e.classList.add("relative", "group", "overflow-visible");
|
|
1961
|
+
const r = Ze(e, t), s = j(e, t, "color", "color"), a = j(
|
|
1962
|
+
e,
|
|
1963
|
+
t,
|
|
1964
|
+
"text-color",
|
|
1965
|
+
"textColor"
|
|
1966
|
+
), d = j(
|
|
1967
|
+
e,
|
|
1968
|
+
t,
|
|
1969
|
+
"tooltip-width",
|
|
1970
|
+
"width"
|
|
1971
|
+
), o = typeof t.value == "object" ? t.value.className : void 0, l = et(t);
|
|
1972
|
+
console.log(
|
|
1973
|
+
`color: ${s}, txt color: ${a}, width: ${d}`
|
|
1974
|
+
);
|
|
1975
|
+
const i = S(Qe, {
|
|
1976
|
+
direction: l,
|
|
1977
|
+
title: r,
|
|
1978
|
+
color: s,
|
|
1979
|
+
textColor: a,
|
|
1980
|
+
width: d,
|
|
1981
|
+
customClass: o
|
|
1982
|
+
});
|
|
1983
|
+
ae(i, e);
|
|
1984
|
+
}, rt = (e) => {
|
|
1985
|
+
ae(null, e);
|
|
1986
|
+
}, st = {
|
|
1987
|
+
mounted(e, t) {
|
|
1988
|
+
e.__HandleTooltip = (r) => tt(e, r), e.__UnmountTooltip = () => rt(e), e.__HandleTooltip(t);
|
|
1909
1989
|
},
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
e.hasAttribute("color") && (d = e.getAttribute("color")), !e.hasAttribute("color") && typeof l.value < "u" && typeof l.value != "string" && typeof l.value.color == "string" && (d = l.value.color);
|
|
1921
|
-
let o;
|
|
1922
|
-
e.hasAttribute("text-color") && (o = e.getAttribute("text-color")), !e.hasAttribute("text-color") && typeof l.value < "u" && typeof l.value != "string" && typeof l.value.textColor == "string" && (o = l.value.textColor);
|
|
1923
|
-
let t;
|
|
1924
|
-
e.hasAttribute("tooltip-width") && (t = e.getAttribute("tooltip-width")), !e.hasAttribute("tooltip-width") && typeof l.value < "u" && typeof l.value != "string" && ["number", "string"].includes(typeof l.value.width) && (t = l.value.width);
|
|
1925
|
-
let i;
|
|
1926
|
-
typeof l.value < "u" && typeof l.value != "string" && typeof l.value.className == "string" && (i = l.value.className);
|
|
1927
|
-
let g;
|
|
1928
|
-
const c = Object.keys(l.modifiers);
|
|
1929
|
-
c.length > 0 && (g = c[0]);
|
|
1930
|
-
const C = E(Ge, {
|
|
1931
|
-
direction: g,
|
|
1932
|
-
title: s,
|
|
1933
|
-
color: d,
|
|
1934
|
-
textColor: o,
|
|
1935
|
-
width: t,
|
|
1936
|
-
customClass: i
|
|
1937
|
-
});
|
|
1938
|
-
Z(C, e);
|
|
1939
|
-
}, a.__UnmountTooltip = (e) => {
|
|
1940
|
-
Z(null, e);
|
|
1941
|
-
}, a.__HandleTooltip(a, r);
|
|
1942
|
-
},
|
|
1943
|
-
updated(a, r) {
|
|
1944
|
-
a.__HandleTooltip(a, r);
|
|
1990
|
+
updated(e, t, r, s) {
|
|
1991
|
+
var l;
|
|
1992
|
+
const a = t.value !== t.oldValue;
|
|
1993
|
+
let d = !1;
|
|
1994
|
+
const o = (l = s.dirs) == null ? void 0 : l.find((i) => i.dir === st);
|
|
1995
|
+
if (o) {
|
|
1996
|
+
const i = o.arg;
|
|
1997
|
+
t.arg !== i && (d = !0);
|
|
1998
|
+
}
|
|
1999
|
+
(a || d) && e.__HandleTooltip(t);
|
|
1945
2000
|
},
|
|
1946
|
-
unmounted(
|
|
1947
|
-
|
|
2001
|
+
unmounted(e) {
|
|
2002
|
+
e.__UnmountTooltip();
|
|
1948
2003
|
}
|
|
1949
|
-
},
|
|
2004
|
+
}, de = Symbol(), $t = /* @__PURE__ */ _({
|
|
1950
2005
|
__name: "DropdownContainer",
|
|
1951
2006
|
emits: ["click-outside", "toggle"],
|
|
1952
|
-
setup(
|
|
1953
|
-
|
|
1954
|
-
const
|
|
1955
|
-
|
|
1956
|
-
active:
|
|
2007
|
+
setup(e, { emit: t }) {
|
|
2008
|
+
E();
|
|
2009
|
+
const r = t, s = B(), a = B(!1), d = B(0);
|
|
2010
|
+
U(de, {
|
|
2011
|
+
active: a,
|
|
1957
2012
|
buttonHeight: d,
|
|
1958
2013
|
closeDropdown: () => {
|
|
1959
|
-
|
|
2014
|
+
a.value = !1;
|
|
1960
2015
|
}
|
|
1961
2016
|
});
|
|
1962
|
-
const
|
|
1963
|
-
|
|
1964
|
-
}, i = (
|
|
1965
|
-
|
|
1966
|
-
},
|
|
1967
|
-
|
|
2017
|
+
const l = (g) => {
|
|
2018
|
+
a.value = !a.value, r("toggle", g);
|
|
2019
|
+
}, i = (g) => {
|
|
2020
|
+
a.value = !1, r("click-outside", g);
|
|
2021
|
+
}, p = () => {
|
|
2022
|
+
a.value = !1;
|
|
1968
2023
|
};
|
|
1969
2024
|
return X(() => {
|
|
1970
|
-
d.value =
|
|
1971
|
-
}), (
|
|
2025
|
+
d.value = s.value.scrollHeight;
|
|
2026
|
+
}), (g, k) => M((c(), u("div", {
|
|
1972
2027
|
class: "relative",
|
|
1973
2028
|
ref_key: "dropdownTarget",
|
|
1974
|
-
ref:
|
|
1975
|
-
onKeyup:
|
|
2029
|
+
ref: s,
|
|
2030
|
+
onKeyup: be(p, ["esc"])
|
|
1976
2031
|
}, [
|
|
1977
|
-
|
|
1978
|
-
toggle:
|
|
1979
|
-
dropdownState:
|
|
2032
|
+
w(g.$slots, "toggler", {
|
|
2033
|
+
toggle: l,
|
|
2034
|
+
dropdownState: a.value
|
|
1980
2035
|
}),
|
|
1981
|
-
|
|
2036
|
+
w(g.$slots, "default")
|
|
1982
2037
|
], 32)), [
|
|
1983
|
-
[V(
|
|
2038
|
+
[V(Z), i]
|
|
1984
2039
|
]);
|
|
1985
2040
|
}
|
|
1986
|
-
}),
|
|
2041
|
+
}), at = /* @__PURE__ */ _({
|
|
1987
2042
|
__name: "DropdownContent",
|
|
1988
2043
|
props: {
|
|
1989
2044
|
className: { default: "" }
|
|
1990
2045
|
},
|
|
1991
|
-
setup(
|
|
1992
|
-
const { height:
|
|
1993
|
-
|
|
1994
|
-
const
|
|
1995
|
-
|
|
1996
|
-
), o =
|
|
1997
|
-
if (!(!
|
|
2046
|
+
setup(e) {
|
|
2047
|
+
const { height: t } = Ce();
|
|
2048
|
+
E();
|
|
2049
|
+
const r = B(), { active: s, buttonHeight: a, closeDropdown: d } = K(
|
|
2050
|
+
de
|
|
2051
|
+
), o = O(() => ({ "--button-height": `${a}px` })), l = O(() => {
|
|
2052
|
+
if (!(!s || !r.value) && t.value - r.value.getBoundingClientRect().bottom < 0)
|
|
1998
2053
|
return "dropup-bottom";
|
|
1999
2054
|
});
|
|
2000
|
-
return (i,
|
|
2055
|
+
return (i, p) => (c(), Y(H, { name: "dropdown-content" }, {
|
|
2001
2056
|
default: I(() => [
|
|
2002
|
-
V(
|
|
2057
|
+
V(s) ? (c(), u("div", {
|
|
2003
2058
|
key: 0,
|
|
2004
2059
|
ref_key: "contentRef",
|
|
2005
|
-
ref:
|
|
2006
|
-
class: b(["absolute my-2xs max-w-[14rem] w-max overflow-hidden", [
|
|
2007
|
-
style:
|
|
2060
|
+
ref: r,
|
|
2061
|
+
class: b(["absolute my-2xs max-w-[14rem] w-max overflow-hidden", [l.value, i.className]]),
|
|
2062
|
+
style: P(o.value)
|
|
2008
2063
|
}, [
|
|
2009
|
-
|
|
2064
|
+
w(i.$slots, "default", { itemClick: V(d) }, void 0, !0)
|
|
2010
2065
|
], 6)) : m("", !0)
|
|
2011
2066
|
]),
|
|
2012
2067
|
_: 3
|
|
2013
2068
|
}));
|
|
2014
2069
|
}
|
|
2015
|
-
}),
|
|
2070
|
+
}), Mt = /* @__PURE__ */ W(at, [["__scopeId", "data-v-85c54efe"]]), lt = ["aria-label", "aria-expanded"], ot = /* @__PURE__ */ _({
|
|
2016
2071
|
__name: "NavDrawer",
|
|
2017
2072
|
props: {
|
|
2018
2073
|
color: { default: "dark-2" },
|
|
@@ -2021,49 +2076,49 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
2021
2076
|
navColor: {}
|
|
2022
2077
|
},
|
|
2023
2078
|
emits: ["hbg-click"],
|
|
2024
|
-
setup(
|
|
2025
|
-
const
|
|
2026
|
-
|
|
2027
|
-
}, d =
|
|
2079
|
+
setup(e, { emit: t }) {
|
|
2080
|
+
const r = e, s = t, a = (i) => {
|
|
2081
|
+
s("hbg-click", i);
|
|
2082
|
+
}, d = O({
|
|
2028
2083
|
get() {
|
|
2029
|
-
return
|
|
2084
|
+
return r.toggle;
|
|
2030
2085
|
},
|
|
2031
2086
|
set(i) {
|
|
2032
2087
|
return i;
|
|
2033
2088
|
}
|
|
2034
|
-
}), o = (i,
|
|
2035
|
-
const
|
|
2036
|
-
|
|
2037
|
-
|
|
2089
|
+
}), o = (i, p, g) => {
|
|
2090
|
+
const k = [
|
|
2091
|
+
C("RINGCOLOR", i),
|
|
2092
|
+
C("OFFSETRING", g)
|
|
2038
2093
|
];
|
|
2039
|
-
return
|
|
2040
|
-
},
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
|
|
2094
|
+
return p && (k.push(C("BORDER", i)), k.push("border")), k.join(" ");
|
|
2095
|
+
}, l = (i) => [
|
|
2096
|
+
C("BGCOLOR", i),
|
|
2097
|
+
C("BEFOREBG", i),
|
|
2098
|
+
C("AFTERBG", i)
|
|
2044
2099
|
].join(" ");
|
|
2045
|
-
return (i,
|
|
2100
|
+
return (i, p) => (c(), u("button", {
|
|
2046
2101
|
class: b(["p-3xs hamburger__button aspect-square rounded-md outline-none ring-offset-2 transition-all duration-300 ease-linear hover:opacity-70 focus:opacity-70 focus:ring-4", o(i.color, i.displayBorder, i.navColor)]),
|
|
2047
|
-
onClick:
|
|
2102
|
+
onClick: a,
|
|
2048
2103
|
"aria-label": i.toggle ? "Close" : "Open",
|
|
2049
2104
|
"aria-expanded": i.toggle
|
|
2050
2105
|
}, [
|
|
2051
2106
|
M(f("input", {
|
|
2052
2107
|
type: "checkbox",
|
|
2053
|
-
"onUpdate:modelValue":
|
|
2108
|
+
"onUpdate:modelValue": p[0] || (p[0] = (g) => d.value = g),
|
|
2054
2109
|
class: "hamburger__checkbox hidden"
|
|
2055
2110
|
}, null, 512), [
|
|
2056
|
-
[
|
|
2111
|
+
[fe, d.value]
|
|
2057
2112
|
]),
|
|
2058
2113
|
f("div", {
|
|
2059
|
-
class: b(["w-sm hamburger__icon before:w-sm after:w-sm relative h-[3px] transition-all duration-300 ease-linear before:h-[3px] after:h-[3px]",
|
|
2114
|
+
class: b(["w-sm hamburger__icon before:w-sm after:w-sm relative h-[3px] transition-all duration-300 ease-linear before:h-[3px] after:h-[3px]", l(i.color)])
|
|
2060
2115
|
}, null, 2)
|
|
2061
|
-
], 10,
|
|
2116
|
+
], 10, lt));
|
|
2062
2117
|
}
|
|
2063
|
-
}),
|
|
2118
|
+
}), ce = /* @__PURE__ */ W(ot, [["__scopeId", "data-v-f366929e"]]), it = { class: "py-xs md:py-2xs mx-xs md:mx-sm flex flex-wrap items-center justify-between align-middle sm:max-w-[640px] md:max-w-[768px] lg:max-w-[1024px] xl:max-w-[1280px] 2xl:max-w-[1536px]" }, nt = { class: "min-h-[24px]" }, dt = { class: "ml-auto" }, ct = {
|
|
2064
2119
|
key: 0,
|
|
2065
2120
|
class: "hidden lg:block"
|
|
2066
|
-
},
|
|
2121
|
+
}, ut = { class: "overflow-hidden lg:hidden" }, gt = { key: 0 }, ht = /* @__PURE__ */ _({
|
|
2067
2122
|
__name: "HeaderHorizontal",
|
|
2068
2123
|
props: {
|
|
2069
2124
|
bgColor: { default: "light-1" },
|
|
@@ -2075,63 +2130,63 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
2075
2130
|
sticky: { default: "all" }
|
|
2076
2131
|
},
|
|
2077
2132
|
emits: ["toggle-drawer"],
|
|
2078
|
-
setup(
|
|
2079
|
-
const
|
|
2133
|
+
setup(e, { expose: t, emit: r }) {
|
|
2134
|
+
const s = e, a = E(), d = B(!1), { y: o } = ye(), l = r, i = () => {
|
|
2080
2135
|
d.value = !1;
|
|
2081
|
-
},
|
|
2082
|
-
d.value = !d.value,
|
|
2083
|
-
},
|
|
2084
|
-
|
|
2085
|
-
const
|
|
2086
|
-
|
|
2087
|
-
},
|
|
2088
|
-
|
|
2089
|
-
}, v = (
|
|
2090
|
-
|
|
2091
|
-
},
|
|
2092
|
-
const { bgColor:
|
|
2093
|
-
return
|
|
2094
|
-
}),
|
|
2095
|
-
const { fadeInOnScroll:
|
|
2096
|
-
return
|
|
2097
|
-
});
|
|
2098
|
-
return
|
|
2136
|
+
}, p = (y) => {
|
|
2137
|
+
d.value = !d.value, l("toggle-drawer", y, d.value);
|
|
2138
|
+
}, g = (y) => {
|
|
2139
|
+
y.style.height = "auto";
|
|
2140
|
+
const h = getComputedStyle(y).height;
|
|
2141
|
+
y.style.height = "0px", y.offsetHeight, y.style.height = h;
|
|
2142
|
+
}, k = (y) => {
|
|
2143
|
+
y.style.height = "auto";
|
|
2144
|
+
}, v = (y) => {
|
|
2145
|
+
y.style.height = getComputedStyle(y).height, y.offsetHeight, y.style.height = "0px";
|
|
2146
|
+
}, R = O(() => {
|
|
2147
|
+
const { bgColor: y, sticky: h } = s, L = [C("BGCOLOR", y)];
|
|
2148
|
+
return h === "all" ? (L.push("sticky top-0"), L.join(" ")) : h === "tablet" ? (L.push("md:sticky top-0"), L.join(" ")) : (h === "pc" && L.push("lg:sticky top-0"), L.join(" "));
|
|
2149
|
+
}), G = O(() => {
|
|
2150
|
+
const { fadeInOnScroll: y, scrollDistance: h } = s;
|
|
2151
|
+
return y ? o.value >= h ? "lg:shadow-md bg-opacity-70" : "bg-opacity-100" : "";
|
|
2152
|
+
});
|
|
2153
|
+
return t({
|
|
2099
2154
|
headerClose: i
|
|
2100
|
-
}), (
|
|
2101
|
-
class: b(["z-50 w-full items-center transition delay-150 duration-500 ease-in", [
|
|
2155
|
+
}), (y, h) => (c(), u("header", {
|
|
2156
|
+
class: b(["z-50 w-full items-center transition delay-150 duration-500 ease-in", [G.value, R.value]])
|
|
2102
2157
|
}, [
|
|
2103
|
-
f("nav",
|
|
2104
|
-
f("div",
|
|
2105
|
-
|
|
2158
|
+
f("nav", it, [
|
|
2159
|
+
f("div", nt, [
|
|
2160
|
+
w(y.$slots, "content", {}, void 0, !0)
|
|
2106
2161
|
]),
|
|
2107
|
-
f("div",
|
|
2108
|
-
|
|
2109
|
-
color:
|
|
2110
|
-
"display-border":
|
|
2162
|
+
f("div", dt, [
|
|
2163
|
+
S(ce, {
|
|
2164
|
+
color: y.drawerBtnColor,
|
|
2165
|
+
"display-border": y.drawerBtnBorder,
|
|
2111
2166
|
class: "block lg:hidden",
|
|
2112
|
-
onHbgClick:
|
|
2167
|
+
onHbgClick: p,
|
|
2113
2168
|
toggle: d.value,
|
|
2114
|
-
"nav-color":
|
|
2169
|
+
"nav-color": y.bgColor
|
|
2115
2170
|
}, null, 8, ["color", "display-border", "toggle", "nav-color"]),
|
|
2116
|
-
|
|
2117
|
-
|
|
2171
|
+
a["content-right"] ? (c(), u("div", ct, [
|
|
2172
|
+
w(y.$slots, "content-right", {}, void 0, !0)
|
|
2118
2173
|
])) : m("", !0)
|
|
2119
2174
|
])
|
|
2120
2175
|
]),
|
|
2121
|
-
f("div",
|
|
2122
|
-
|
|
2176
|
+
f("div", ut, [
|
|
2177
|
+
S(H, {
|
|
2123
2178
|
name: "collapse",
|
|
2124
|
-
onEnter:
|
|
2125
|
-
onAfterEnter:
|
|
2179
|
+
onEnter: g,
|
|
2180
|
+
onAfterEnter: k,
|
|
2126
2181
|
onLeave: v
|
|
2127
2182
|
}, {
|
|
2128
2183
|
default: I(() => [
|
|
2129
|
-
d.value ? (
|
|
2184
|
+
d.value ? (c(), u("div", {
|
|
2130
2185
|
key: 0,
|
|
2131
|
-
class: b(["my-2xs mx-xs overflow-hidden rounded-md bg-opacity-80", V(
|
|
2186
|
+
class: b(["my-2xs mx-xs overflow-hidden rounded-md bg-opacity-80", V(C)("BGCOLOR", y.mobileMenuBgColor)])
|
|
2132
2187
|
}, [
|
|
2133
|
-
|
|
2134
|
-
|
|
2188
|
+
a["mobile-content"] ? (c(), u("div", gt, [
|
|
2189
|
+
w(y.$slots, "mobile-content", { headerClose: i }, void 0, !0)
|
|
2135
2190
|
])) : m("", !0)
|
|
2136
2191
|
], 2)) : m("", !0)
|
|
2137
2192
|
]),
|
|
@@ -2140,13 +2195,13 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
2140
2195
|
])
|
|
2141
2196
|
], 2));
|
|
2142
2197
|
}
|
|
2143
|
-
}),
|
|
2198
|
+
}), Ft = /* @__PURE__ */ W(ht, [["__scopeId", "data-v-e0d15366"]]), pt = { class: "flex h-full flex-col justify-between" }, bt = { key: 0 }, ft = { class: "relative z-40 block lg:hidden" }, vt = {
|
|
2144
2199
|
key: 0,
|
|
2145
2200
|
class: "mr-xs mt-xs fixed right-0 top-0 z-50 block lg:hidden"
|
|
2146
|
-
},
|
|
2201
|
+
}, mt = {
|
|
2147
2202
|
key: 0,
|
|
2148
2203
|
class: "h-full"
|
|
2149
|
-
},
|
|
2204
|
+
}, Ct = /* @__PURE__ */ _({
|
|
2150
2205
|
__name: "HeaderVertical",
|
|
2151
2206
|
props: {
|
|
2152
2207
|
bgColor: { default: "light-1" },
|
|
@@ -2155,58 +2210,58 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
2155
2210
|
headerWidth: { default: 160 }
|
|
2156
2211
|
},
|
|
2157
2212
|
emits: ["toggle-drawer"],
|
|
2158
|
-
setup(
|
|
2159
|
-
const
|
|
2160
|
-
o.value = !o.value, d("toggle-drawer",
|
|
2213
|
+
setup(e, { expose: t, emit: r }) {
|
|
2214
|
+
const s = e, a = E(), d = r, o = B(!1), l = (g) => {
|
|
2215
|
+
o.value = !o.value, d("toggle-drawer", g, o.value);
|
|
2161
2216
|
}, i = () => {
|
|
2162
2217
|
o.value = !1;
|
|
2163
|
-
},
|
|
2218
|
+
}, p = O(() => ({ "--header-width": `${s.headerWidth}px` }));
|
|
2164
2219
|
return X(() => {
|
|
2165
|
-
const
|
|
2166
|
-
|
|
2167
|
-
|
|
2220
|
+
const g = J(document);
|
|
2221
|
+
A(o, (k) => {
|
|
2222
|
+
g.value = k;
|
|
2168
2223
|
});
|
|
2169
|
-
}),
|
|
2224
|
+
}), t({
|
|
2170
2225
|
headerClose: i
|
|
2171
|
-
}), (
|
|
2226
|
+
}), (g, k) => (c(), u("header", {
|
|
2172
2227
|
class: "relative",
|
|
2173
|
-
style:
|
|
2228
|
+
style: P(p.value)
|
|
2174
2229
|
}, [
|
|
2175
2230
|
f("nav", {
|
|
2176
|
-
class: b(["py-sm header-desktop hidden overflow-y-scroll overscroll-contain lg:sticky lg:left-0 lg:top-0 lg:block lg:h-[100vh]", [V(
|
|
2231
|
+
class: b(["py-sm header-desktop hidden overflow-y-scroll overscroll-contain lg:sticky lg:left-0 lg:top-0 lg:block lg:h-[100vh]", [V(C)("BGCOLOR", g.bgColor)]])
|
|
2177
2232
|
}, [
|
|
2178
|
-
f("div",
|
|
2233
|
+
f("div", pt, [
|
|
2179
2234
|
f("div", null, [
|
|
2180
|
-
|
|
2235
|
+
w(g.$slots, "content", {}, void 0, !0)
|
|
2181
2236
|
]),
|
|
2182
|
-
|
|
2183
|
-
|
|
2237
|
+
a["content-bottom"] ? (c(), u("div", bt, [
|
|
2238
|
+
w(g.$slots, "content-bottom", {}, void 0, !0)
|
|
2184
2239
|
])) : m("", !0)
|
|
2185
2240
|
])
|
|
2186
2241
|
], 2),
|
|
2187
|
-
(
|
|
2188
|
-
f("div",
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
color:
|
|
2192
|
-
"display-border":
|
|
2242
|
+
(c(), Y(ve, { to: "body" }, [
|
|
2243
|
+
f("div", ft, [
|
|
2244
|
+
a["mobile-content"] ? (c(), u("div", vt, [
|
|
2245
|
+
S(ce, {
|
|
2246
|
+
color: g.drawerBtnColor,
|
|
2247
|
+
"display-border": g.drawerBtnBorder,
|
|
2193
2248
|
class: "relative block lg:hidden",
|
|
2194
|
-
onHbgClick:
|
|
2249
|
+
onHbgClick: l,
|
|
2195
2250
|
toggle: o.value,
|
|
2196
|
-
"nav-color":
|
|
2251
|
+
"nav-color": g.bgColor
|
|
2197
2252
|
}, null, 8, ["color", "display-border", "toggle", "nav-color"])
|
|
2198
2253
|
])) : m("", !0),
|
|
2199
|
-
|
|
2254
|
+
S(H, {
|
|
2200
2255
|
name: "slide-down",
|
|
2201
2256
|
appear: ""
|
|
2202
2257
|
}, {
|
|
2203
2258
|
default: I(() => [
|
|
2204
|
-
o.value ? (
|
|
2259
|
+
o.value ? (c(), u("nav", {
|
|
2205
2260
|
key: 0,
|
|
2206
|
-
class: b(["py-lg px-sm fixed inset-0 overflow-y-scroll overscroll-contain", V(
|
|
2261
|
+
class: b(["py-lg px-sm fixed inset-0 overflow-y-scroll overscroll-contain", V(C)("BGCOLOR", g.bgColor)])
|
|
2207
2262
|
}, [
|
|
2208
|
-
|
|
2209
|
-
|
|
2263
|
+
a["mobile-content"] ? (c(), u("div", mt, [
|
|
2264
|
+
w(g.$slots, "mobile-content", { headerClose: i }, void 0, !0)
|
|
2210
2265
|
])) : m("", !0)
|
|
2211
2266
|
], 2)) : m("", !0)
|
|
2212
2267
|
]),
|
|
@@ -2216,13 +2271,13 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
2216
2271
|
]))
|
|
2217
2272
|
], 4));
|
|
2218
2273
|
}
|
|
2219
|
-
}),
|
|
2274
|
+
}), Xt = /* @__PURE__ */ W(Ct, [["__scopeId", "data-v-b9d1f493"]]), yt = ["visible"], xt = {
|
|
2220
2275
|
key: 0,
|
|
2221
2276
|
class: "sticky top-0"
|
|
2222
|
-
},
|
|
2277
|
+
}, kt = {
|
|
2223
2278
|
key: 1,
|
|
2224
2279
|
class: "sticky bottom-0"
|
|
2225
|
-
},
|
|
2280
|
+
}, Tt = /* @__PURE__ */ _({
|
|
2226
2281
|
__name: "Modal",
|
|
2227
2282
|
props: {
|
|
2228
2283
|
title: {},
|
|
@@ -2237,108 +2292,108 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
2237
2292
|
modalWidth: { default: "small" }
|
|
2238
2293
|
},
|
|
2239
2294
|
emits: ["open", "close"],
|
|
2240
|
-
setup(
|
|
2241
|
-
const
|
|
2242
|
-
|
|
2243
|
-
},
|
|
2244
|
-
|
|
2245
|
-
},
|
|
2246
|
-
i.value === !0 && (
|
|
2295
|
+
setup(e, { expose: t, emit: r }) {
|
|
2296
|
+
const s = e, a = E(), d = r, o = B(), l = B(s.visible), i = B(!1), p = () => {
|
|
2297
|
+
l.value = !l.value;
|
|
2298
|
+
}, g = () => {
|
|
2299
|
+
l.value = !0;
|
|
2300
|
+
}, k = () => {
|
|
2301
|
+
i.value === !0 && (l.value = !1);
|
|
2247
2302
|
}, v = () => {
|
|
2248
2303
|
d("open", !0);
|
|
2249
|
-
},
|
|
2304
|
+
}, R = () => {
|
|
2250
2305
|
d("close", !1);
|
|
2251
|
-
},
|
|
2252
|
-
const
|
|
2306
|
+
}, G = O(() => {
|
|
2307
|
+
const T = {
|
|
2253
2308
|
top: 25,
|
|
2254
2309
|
center: 50,
|
|
2255
2310
|
bottom: 75
|
|
2256
|
-
}, { placement: D } =
|
|
2257
|
-
return { "--vertical-placement": (
|
|
2258
|
-
}),
|
|
2259
|
-
const { modalWidth:
|
|
2311
|
+
}, { placement: D } = s;
|
|
2312
|
+
return { "--vertical-placement": (T[D] ?? T.center) + "%" };
|
|
2313
|
+
}), y = O(() => {
|
|
2314
|
+
const { modalWidth: T } = s, D = {
|
|
2260
2315
|
small: "max-w-[28rem]",
|
|
2261
2316
|
medium: "max-w-[28rem] md:max-w-[36rem]",
|
|
2262
2317
|
large: "max-w-[28rem] md:max-w-[56rem]"
|
|
2263
2318
|
};
|
|
2264
|
-
return D[
|
|
2265
|
-
}),
|
|
2319
|
+
return D[T] ?? D.small;
|
|
2320
|
+
}), h = () => {
|
|
2266
2321
|
i.value = !0;
|
|
2267
2322
|
}, L = () => {
|
|
2268
2323
|
i.value = !1;
|
|
2269
2324
|
};
|
|
2270
|
-
return
|
|
2271
|
-
|
|
2272
|
-
}),
|
|
2273
|
-
() =>
|
|
2274
|
-
(
|
|
2275
|
-
|
|
2325
|
+
return Q(o, (T = !1) => {
|
|
2326
|
+
l.value = T;
|
|
2327
|
+
}), A(
|
|
2328
|
+
() => s.visible,
|
|
2329
|
+
(T) => {
|
|
2330
|
+
l.value = T;
|
|
2276
2331
|
}
|
|
2277
|
-
),
|
|
2278
|
-
|
|
2332
|
+
), A(l, (T) => {
|
|
2333
|
+
T === !0 ? v() : T === !1 && i.value === !0 && R();
|
|
2279
2334
|
}), X(() => {
|
|
2280
|
-
const
|
|
2281
|
-
|
|
2282
|
-
|
|
2335
|
+
const T = J(document);
|
|
2336
|
+
A(l, (D) => {
|
|
2337
|
+
T.value = D;
|
|
2283
2338
|
});
|
|
2284
|
-
}),
|
|
2285
|
-
toggle:
|
|
2286
|
-
close:
|
|
2287
|
-
open:
|
|
2288
|
-
}), (
|
|
2289
|
-
style:
|
|
2290
|
-
visible:
|
|
2339
|
+
}), t({
|
|
2340
|
+
toggle: p,
|
|
2341
|
+
close: k,
|
|
2342
|
+
open: g
|
|
2343
|
+
}), (T, D) => (c(), u("div", {
|
|
2344
|
+
style: P(G.value),
|
|
2345
|
+
visible: l.value,
|
|
2291
2346
|
ref_key: "modalRef",
|
|
2292
2347
|
ref: o
|
|
2293
2348
|
}, [
|
|
2294
|
-
|
|
2349
|
+
T.noBackdrop ? m("", !0) : (c(), Y(H, {
|
|
2295
2350
|
key: 0,
|
|
2296
2351
|
name: "fade",
|
|
2297
2352
|
appear: "",
|
|
2298
2353
|
tag: "div"
|
|
2299
2354
|
}, {
|
|
2300
2355
|
default: I(() => [
|
|
2301
|
-
|
|
2356
|
+
l.value ? (c(), u("section", {
|
|
2302
2357
|
key: 0,
|
|
2303
|
-
onClick:
|
|
2304
|
-
class: b(["fixed inset-0 z-[100] overflow-y-auto bg-opacity-70 backdrop-blur", V(
|
|
2358
|
+
onClick: k,
|
|
2359
|
+
class: b(["fixed inset-0 z-[100] overflow-y-auto bg-opacity-70 backdrop-blur", V(C)("BGCOLOR", T.backdropColor)])
|
|
2305
2360
|
}, null, 2)) : m("", !0)
|
|
2306
2361
|
]),
|
|
2307
2362
|
_: 1
|
|
2308
2363
|
})),
|
|
2309
|
-
|
|
2364
|
+
S(H, {
|
|
2310
2365
|
name: "slide-down",
|
|
2311
2366
|
tag: "div",
|
|
2312
|
-
onAfterEnter:
|
|
2367
|
+
onAfterEnter: h,
|
|
2313
2368
|
onAfterLeave: L,
|
|
2314
2369
|
appear: ""
|
|
2315
2370
|
}, {
|
|
2316
2371
|
default: I(() => [
|
|
2317
|
-
|
|
2372
|
+
l.value ? (c(), u("div", {
|
|
2318
2373
|
key: 0,
|
|
2319
|
-
class: b(["vertical-placement px-xs fixed z-[110] w-full",
|
|
2374
|
+
class: b(["vertical-placement px-xs fixed z-[110] w-full", y.value])
|
|
2320
2375
|
}, [
|
|
2321
|
-
M((
|
|
2322
|
-
class: b([[V(
|
|
2376
|
+
M((c(), u("div", {
|
|
2377
|
+
class: b([[V(C)("BGCOLOR", T.color), T.className], "relative max-h-[80vh] overflow-y-scroll overscroll-contain md:max-h-[60vh]"])
|
|
2323
2378
|
}, [
|
|
2324
|
-
|
|
2325
|
-
T
|
|
2326
|
-
close:
|
|
2327
|
-
status:
|
|
2379
|
+
T.noHeader ? m("", !0) : (c(), u("div", xt, [
|
|
2380
|
+
w(T.$slots, "header", {
|
|
2381
|
+
close: k,
|
|
2382
|
+
status: l.value
|
|
2328
2383
|
}, () => [
|
|
2329
2384
|
f("div", {
|
|
2330
|
-
class: b(["p-xs flex items-center justify-between border-b-2", V(
|
|
2385
|
+
class: b(["p-xs border-b-light-4 flex items-center justify-between border-b-2", V(C)("BGCOLOR", T.color)])
|
|
2331
2386
|
}, [
|
|
2332
|
-
|
|
2387
|
+
T.title ? (c(), u("h3", {
|
|
2333
2388
|
key: 0,
|
|
2334
|
-
class: b(["h3-md", V(
|
|
2335
|
-
}, F(
|
|
2336
|
-
f("button", { onClick:
|
|
2337
|
-
(
|
|
2389
|
+
class: b(["h3-md", V(C)("TEXTCOLOR", T.titleColor)])
|
|
2390
|
+
}, F(T.title), 3)) : m("", !0),
|
|
2391
|
+
f("button", { onClick: k }, [
|
|
2392
|
+
(c(), u("svg", {
|
|
2338
2393
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2339
2394
|
height: "1em",
|
|
2340
2395
|
viewBox: "0 0 384 512",
|
|
2341
|
-
class: b(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [V(
|
|
2396
|
+
class: b(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [V(C)("SVGFILL", T.titleColor)]])
|
|
2342
2397
|
}, D[0] || (D[0] = [
|
|
2343
2398
|
f("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
2344
2399
|
]), 2))
|
|
@@ -2346,26 +2401,26 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
2346
2401
|
], 2)
|
|
2347
2402
|
], !0)
|
|
2348
2403
|
])),
|
|
2349
|
-
T
|
|
2350
|
-
close:
|
|
2351
|
-
status:
|
|
2404
|
+
w(T.$slots, "body", {
|
|
2405
|
+
close: k,
|
|
2406
|
+
status: l.value
|
|
2352
2407
|
}, void 0, !0),
|
|
2353
|
-
|
|
2354
|
-
T
|
|
2355
|
-
close:
|
|
2356
|
-
status:
|
|
2408
|
+
a.footer ? (c(), u("div", kt, [
|
|
2409
|
+
w(T.$slots, "footer", {
|
|
2410
|
+
close: k,
|
|
2411
|
+
status: l.value
|
|
2357
2412
|
}, void 0, !0)
|
|
2358
2413
|
])) : m("", !0)
|
|
2359
2414
|
], 2)), [
|
|
2360
|
-
[V(
|
|
2415
|
+
[V(Z), k]
|
|
2361
2416
|
])
|
|
2362
2417
|
], 2)) : m("", !0)
|
|
2363
2418
|
]),
|
|
2364
2419
|
_: 3
|
|
2365
2420
|
})
|
|
2366
|
-
], 12,
|
|
2421
|
+
], 12, yt));
|
|
2367
2422
|
}
|
|
2368
|
-
}),
|
|
2423
|
+
}), Pt = /* @__PURE__ */ W(Tt, [["__scopeId", "data-v-84fc20eb"]]), wt = ["visible"], Bt = { class: "sidebar-body-height" }, Ot = /* @__PURE__ */ _({
|
|
2369
2424
|
__name: "Sidebar",
|
|
2370
2425
|
props: {
|
|
2371
2426
|
title: {},
|
|
@@ -2380,205 +2435,205 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
2380
2435
|
width: { default: 300 }
|
|
2381
2436
|
},
|
|
2382
2437
|
emits: ["open", "close"],
|
|
2383
|
-
setup(
|
|
2384
|
-
const
|
|
2438
|
+
setup(e, { expose: t, emit: r }) {
|
|
2439
|
+
const s = e, a = E(), d = r, o = B(s.visible), l = B(!1), i = B(), p = B(), g = B(), k = () => {
|
|
2385
2440
|
o.value = !o.value;
|
|
2386
2441
|
}, v = () => {
|
|
2387
2442
|
o.value = !0;
|
|
2388
|
-
},
|
|
2389
|
-
|
|
2390
|
-
},
|
|
2443
|
+
}, R = () => {
|
|
2444
|
+
l.value === !0 && (o.value = !1);
|
|
2445
|
+
}, G = () => {
|
|
2391
2446
|
d("open", !0);
|
|
2392
|
-
},
|
|
2447
|
+
}, y = () => {
|
|
2393
2448
|
d("close", !1);
|
|
2394
|
-
},
|
|
2395
|
-
const
|
|
2449
|
+
}, h = O(() => {
|
|
2450
|
+
const x = (N) => N && o.value ? `${N.scrollHeight}px` : "0px";
|
|
2396
2451
|
return {
|
|
2397
|
-
"--sidebar-width": `${
|
|
2398
|
-
"--header-height":
|
|
2399
|
-
"--footer-height":
|
|
2452
|
+
"--sidebar-width": `${s.width}px`,
|
|
2453
|
+
"--header-height": x(p.value),
|
|
2454
|
+
"--footer-height": x(g.value)
|
|
2400
2455
|
};
|
|
2401
|
-
}), L =
|
|
2402
|
-
|
|
2403
|
-
},
|
|
2404
|
-
|
|
2456
|
+
}), L = O(() => s.placement === "left" ? "sidebar-left" : "sidebar-right"), te = () => {
|
|
2457
|
+
l.value = !0;
|
|
2458
|
+
}, T = () => {
|
|
2459
|
+
l.value = !1;
|
|
2405
2460
|
};
|
|
2406
|
-
return
|
|
2407
|
-
o.value =
|
|
2408
|
-
}),
|
|
2409
|
-
() =>
|
|
2410
|
-
(
|
|
2411
|
-
o.value =
|
|
2461
|
+
return Q(i, (x = !1) => {
|
|
2462
|
+
o.value = x;
|
|
2463
|
+
}), A(
|
|
2464
|
+
() => s.visible,
|
|
2465
|
+
(x) => {
|
|
2466
|
+
o.value = x;
|
|
2412
2467
|
}
|
|
2413
|
-
),
|
|
2414
|
-
|
|
2468
|
+
), A(o, (x) => {
|
|
2469
|
+
x === !0 ? G() : x === !1 && l.value === !0 && y();
|
|
2415
2470
|
}), X(() => {
|
|
2416
|
-
const
|
|
2417
|
-
|
|
2418
|
-
|
|
2471
|
+
const x = J(document);
|
|
2472
|
+
A(o, (N) => {
|
|
2473
|
+
x.value = N;
|
|
2419
2474
|
});
|
|
2420
|
-
}),
|
|
2421
|
-
toggle:
|
|
2475
|
+
}), t({
|
|
2476
|
+
toggle: k,
|
|
2422
2477
|
open: v,
|
|
2423
|
-
close:
|
|
2424
|
-
}), (
|
|
2425
|
-
style:
|
|
2478
|
+
close: R
|
|
2479
|
+
}), (x, N) => (c(), u("div", {
|
|
2480
|
+
style: P(h.value),
|
|
2426
2481
|
visible: o.value,
|
|
2427
2482
|
ref_key: "sidebarRef",
|
|
2428
2483
|
ref: i
|
|
2429
2484
|
}, [
|
|
2430
|
-
|
|
2485
|
+
x.noBackdrop ? m("", !0) : (c(), Y(H, {
|
|
2431
2486
|
key: 0,
|
|
2432
2487
|
name: "fade",
|
|
2433
2488
|
appear: "",
|
|
2434
2489
|
tag: "div"
|
|
2435
2490
|
}, {
|
|
2436
2491
|
default: I(() => [
|
|
2437
|
-
o.value ? (
|
|
2492
|
+
o.value ? (c(), u("section", {
|
|
2438
2493
|
key: 0,
|
|
2439
|
-
onClick:
|
|
2440
|
-
class: b(["fixed inset-0 z-[100] overflow-y-auto bg-opacity-70 backdrop-blur", V(
|
|
2494
|
+
onClick: R,
|
|
2495
|
+
class: b(["fixed inset-0 z-[100] overflow-y-auto bg-opacity-70 backdrop-blur", V(C)("BGCOLOR", x.backdropColor)])
|
|
2441
2496
|
}, null, 2)) : m("", !0)
|
|
2442
2497
|
]),
|
|
2443
2498
|
_: 1
|
|
2444
2499
|
})),
|
|
2445
|
-
|
|
2500
|
+
S(H, {
|
|
2446
2501
|
name: L.value,
|
|
2447
|
-
onAfterEnter:
|
|
2448
|
-
onAfterLeave:
|
|
2502
|
+
onAfterEnter: te,
|
|
2503
|
+
onAfterLeave: T,
|
|
2449
2504
|
appear: ""
|
|
2450
2505
|
}, {
|
|
2451
2506
|
default: I(() => [
|
|
2452
|
-
o.value ? M((
|
|
2507
|
+
o.value ? M((c(), u("div", {
|
|
2453
2508
|
key: 0,
|
|
2454
|
-
class: b(["sidebar-body fixed inset-y-0 z-[110] h-full overflow-hidden shadow", [
|
|
2509
|
+
class: b(["sidebar-body fixed inset-y-0 z-[110] h-full overflow-hidden shadow", [x.placement === "left" ? "left-0" : "right-0"]])
|
|
2455
2510
|
}, [
|
|
2456
2511
|
f("div", {
|
|
2457
|
-
class: b(["relative h-full overflow-y-scroll overscroll-contain", [V(
|
|
2512
|
+
class: b(["relative h-full overflow-y-scroll overscroll-contain", [V(C)("BGCOLOR", x.color), x.className]])
|
|
2458
2513
|
}, [
|
|
2459
|
-
|
|
2514
|
+
x.noHeader ? m("", !0) : (c(), u("div", {
|
|
2460
2515
|
key: 0,
|
|
2461
2516
|
class: "sticky top-0 z-10",
|
|
2462
2517
|
ref_key: "headerRef",
|
|
2463
|
-
ref:
|
|
2518
|
+
ref: p
|
|
2464
2519
|
}, [
|
|
2465
|
-
|
|
2466
|
-
close:
|
|
2520
|
+
w(x.$slots, "header", {
|
|
2521
|
+
close: R,
|
|
2467
2522
|
status: o.value
|
|
2468
2523
|
}, () => [
|
|
2469
2524
|
f("div", {
|
|
2470
|
-
class: b(["p-xs flex items-center justify-between", V(
|
|
2525
|
+
class: b(["p-xs flex items-center justify-between", V(C)("BGCOLOR", x.color)])
|
|
2471
2526
|
}, [
|
|
2472
|
-
|
|
2527
|
+
x.placement === "right" ? (c(), u("button", {
|
|
2473
2528
|
key: 0,
|
|
2474
|
-
onClick:
|
|
2529
|
+
onClick: R
|
|
2475
2530
|
}, [
|
|
2476
|
-
(
|
|
2531
|
+
(c(), u("svg", {
|
|
2477
2532
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2478
2533
|
height: "1em",
|
|
2479
2534
|
viewBox: "0 0 384 512",
|
|
2480
|
-
class: b(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [V(
|
|
2481
|
-
},
|
|
2535
|
+
class: b(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [V(C)("SVGFILL", x.titleColor)]])
|
|
2536
|
+
}, N[0] || (N[0] = [
|
|
2482
2537
|
f("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
2483
2538
|
]), 2))
|
|
2484
2539
|
])) : m("", !0),
|
|
2485
|
-
|
|
2540
|
+
x.title ? (c(), u("h3", {
|
|
2486
2541
|
key: 1,
|
|
2487
|
-
class: b(["h3-md", V(
|
|
2488
|
-
}, F(
|
|
2489
|
-
|
|
2542
|
+
class: b(["h3-md", V(C)("TEXTCOLOR", x.titleColor)])
|
|
2543
|
+
}, F(x.title), 3)) : m("", !0),
|
|
2544
|
+
x.placement === "left" ? (c(), u("button", {
|
|
2490
2545
|
key: 2,
|
|
2491
|
-
onClick:
|
|
2546
|
+
onClick: R
|
|
2492
2547
|
}, [
|
|
2493
|
-
(
|
|
2548
|
+
(c(), u("svg", {
|
|
2494
2549
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2495
2550
|
height: "1em",
|
|
2496
2551
|
viewBox: "0 0 384 512",
|
|
2497
|
-
class: b(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [V(
|
|
2498
|
-
},
|
|
2552
|
+
class: b(["h-sm transition-opacity duration-300 ease-in hover:opacity-75 focus:opacity-75", [V(C)("SVGFILL", x.titleColor)]])
|
|
2553
|
+
}, N[1] || (N[1] = [
|
|
2499
2554
|
f("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
2500
2555
|
]), 2))
|
|
2501
2556
|
])) : m("", !0)
|
|
2502
2557
|
], 2)
|
|
2503
2558
|
], !0)
|
|
2504
2559
|
], 512)),
|
|
2505
|
-
f("div",
|
|
2506
|
-
|
|
2507
|
-
close:
|
|
2560
|
+
f("div", Bt, [
|
|
2561
|
+
w(x.$slots, "body", {
|
|
2562
|
+
close: R,
|
|
2508
2563
|
status: o.value
|
|
2509
2564
|
}, void 0, !0)
|
|
2510
2565
|
]),
|
|
2511
|
-
|
|
2566
|
+
a.footer ? (c(), u("div", {
|
|
2512
2567
|
key: 1,
|
|
2513
2568
|
class: "sticky bottom-0",
|
|
2514
2569
|
ref_key: "footerRef",
|
|
2515
|
-
ref:
|
|
2570
|
+
ref: g
|
|
2516
2571
|
}, [
|
|
2517
|
-
|
|
2518
|
-
close:
|
|
2572
|
+
w(x.$slots, "footer", {
|
|
2573
|
+
close: R,
|
|
2519
2574
|
status: o.value
|
|
2520
2575
|
}, void 0, !0)
|
|
2521
2576
|
], 512)) : m("", !0)
|
|
2522
2577
|
], 2)
|
|
2523
2578
|
], 2)), [
|
|
2524
|
-
[V(
|
|
2579
|
+
[V(Z), R]
|
|
2525
2580
|
]) : m("", !0)
|
|
2526
2581
|
]),
|
|
2527
2582
|
_: 3
|
|
2528
2583
|
}, 8, ["name"])
|
|
2529
|
-
], 12,
|
|
2584
|
+
], 12, wt));
|
|
2530
2585
|
}
|
|
2531
|
-
}),
|
|
2586
|
+
}), zt = /* @__PURE__ */ W(Ot, [["__scopeId", "data-v-a7de0a1c"]]), ue = Symbol(), Rt = { class: "container-hts transition-[max-height] duration-300 grid grid-cols-1 grid-rows-1" }, Vt = /* @__PURE__ */ _({
|
|
2532
2587
|
__name: "TabContainer",
|
|
2533
2588
|
props: {
|
|
2534
2589
|
bodyClass: { default: "" },
|
|
2535
2590
|
btnContainerClass: { default: "" },
|
|
2536
2591
|
contentContainerClass: { default: "" }
|
|
2537
2592
|
},
|
|
2538
|
-
setup(
|
|
2539
|
-
|
|
2540
|
-
const
|
|
2541
|
-
|
|
2542
|
-
activeTabIdx:
|
|
2543
|
-
containerHeight:
|
|
2593
|
+
setup(e, { expose: t }) {
|
|
2594
|
+
E();
|
|
2595
|
+
const r = B(0), s = B(0), a = B("slide-next");
|
|
2596
|
+
U(ue, {
|
|
2597
|
+
activeTabIdx: r,
|
|
2598
|
+
containerHeight: s,
|
|
2544
2599
|
updateHeight: (i) => {
|
|
2545
|
-
|
|
2600
|
+
s.value = i;
|
|
2546
2601
|
}
|
|
2547
2602
|
});
|
|
2548
2603
|
const o = (i) => {
|
|
2549
|
-
|
|
2550
|
-
},
|
|
2551
|
-
return
|
|
2604
|
+
r.value = i;
|
|
2605
|
+
}, l = O(() => ({ "--container-hts": `${s.value}px` }));
|
|
2606
|
+
return t({
|
|
2552
2607
|
update: o
|
|
2553
|
-
}),
|
|
2554
|
-
() =>
|
|
2555
|
-
(i,
|
|
2556
|
-
i >
|
|
2608
|
+
}), A(
|
|
2609
|
+
() => r.value,
|
|
2610
|
+
(i, p) => {
|
|
2611
|
+
i > p ? a.value = "slide-next" : a.value = "slide-prev";
|
|
2557
2612
|
}
|
|
2558
|
-
), (i,
|
|
2613
|
+
), (i, p) => (c(), u("div", {
|
|
2559
2614
|
class: b(i.bodyClass),
|
|
2560
|
-
style:
|
|
2615
|
+
style: P(l.value)
|
|
2561
2616
|
}, [
|
|
2562
2617
|
f("div", {
|
|
2563
2618
|
class: b(i.btnContainerClass),
|
|
2564
2619
|
role: "tablist"
|
|
2565
2620
|
}, [
|
|
2566
|
-
|
|
2621
|
+
w(i.$slots, "tab-button", {
|
|
2567
2622
|
update: o,
|
|
2568
|
-
activeTab:
|
|
2623
|
+
activeTab: r.value
|
|
2569
2624
|
}, void 0, !0)
|
|
2570
2625
|
], 2),
|
|
2571
2626
|
f("div", {
|
|
2572
2627
|
class: b(i.contentContainerClass)
|
|
2573
2628
|
}, [
|
|
2574
|
-
f("div",
|
|
2575
|
-
|
|
2629
|
+
f("div", Rt, [
|
|
2630
|
+
S(H, { name: a.value }, {
|
|
2576
2631
|
default: I(() => [
|
|
2577
|
-
(
|
|
2578
|
-
key:
|
|
2632
|
+
(c(), u("div", {
|
|
2633
|
+
key: r.value,
|
|
2579
2634
|
class: "col-start-1 col-end-1 row-start-1 row-end-1 relative"
|
|
2580
2635
|
}, [
|
|
2581
|
-
|
|
2636
|
+
w(i.$slots, "tab-content", {}, void 0, !0)
|
|
2582
2637
|
]))
|
|
2583
2638
|
]),
|
|
2584
2639
|
_: 3
|
|
@@ -2587,50 +2642,51 @@ const y = (a, r) => new xe(a, r).generateClass(), ke = { class: "gap-2xs flex w-
|
|
|
2587
2642
|
], 2)
|
|
2588
2643
|
], 6));
|
|
2589
2644
|
}
|
|
2590
|
-
}),
|
|
2645
|
+
}), Yt = /* @__PURE__ */ W(Vt, [["__scopeId", "data-v-1014eb3f"]]), _t = ["id"], jt = /* @__PURE__ */ _({
|
|
2591
2646
|
__name: "TabContent",
|
|
2592
2647
|
props: {
|
|
2593
2648
|
tabNumber: {},
|
|
2594
2649
|
id: {},
|
|
2595
2650
|
tabClass: { default: "" }
|
|
2596
2651
|
},
|
|
2597
|
-
setup(
|
|
2598
|
-
const
|
|
2599
|
-
|
|
2600
|
-
),
|
|
2601
|
-
return (
|
|
2652
|
+
setup(e) {
|
|
2653
|
+
const t = e, { activeTabIdx: r, updateHeight: s } = K(
|
|
2654
|
+
ue
|
|
2655
|
+
), a = B(null), { height: d } = xe(a), o = O(() => r.value === t.tabNumber ? (s(d.value), !0) : !1);
|
|
2656
|
+
return (l, i) => M((c(), u("div", {
|
|
2602
2657
|
ref_key: "slotRef",
|
|
2603
|
-
ref:
|
|
2604
|
-
id:
|
|
2605
|
-
class: b([
|
|
2658
|
+
ref: a,
|
|
2659
|
+
id: l.id,
|
|
2660
|
+
class: b([l.tabClass, "w-full"]),
|
|
2606
2661
|
role: "tabpanel",
|
|
2607
2662
|
tabindex: "-1"
|
|
2608
2663
|
}, [
|
|
2609
|
-
|
|
2610
|
-
], 10,
|
|
2611
|
-
[
|
|
2664
|
+
w(l.$slots, "default")
|
|
2665
|
+
], 10, _t)), [
|
|
2666
|
+
[q, o.value]
|
|
2612
2667
|
]);
|
|
2613
2668
|
}
|
|
2614
2669
|
});
|
|
2615
2670
|
export {
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2671
|
+
St as Alert,
|
|
2672
|
+
It as Card,
|
|
2673
|
+
Dt as CarouselContainer,
|
|
2674
|
+
Ht as CarouselContent,
|
|
2675
|
+
Ee as ClientSideRender,
|
|
2676
|
+
Gt as Collapse,
|
|
2677
|
+
$t as DropdownContainer,
|
|
2678
|
+
Mt as DropdownContent,
|
|
2679
|
+
Ft as HeaderHorizontal,
|
|
2680
|
+
Xt as HeaderVertical,
|
|
2681
|
+
Pt as Modal,
|
|
2682
|
+
zt as Sidebar,
|
|
2683
|
+
Yt as TabContainer,
|
|
2684
|
+
jt as TabContent,
|
|
2685
|
+
C as default,
|
|
2686
|
+
He as getGlassmorphismClass,
|
|
2687
|
+
Q as observeVisibleAttr,
|
|
2688
|
+
Z as vClickOutside,
|
|
2689
|
+
Nt as vCollapse,
|
|
2690
|
+
Wt as vToggle,
|
|
2691
|
+
st as vTooltip
|
|
2636
2692
|
};
|