@bobbykim/manguito-theme 0.22.1 → 0.23.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/dist/core.cjs +2 -2
- package/dist/core.d.ts +518 -728
- package/dist/core.js +613 -570
- package/dist/mcl-theme.cjs +1 -1
- package/dist/mcl-theme.d.ts +1 -1
- package/dist/mcl-theme.js +76 -65
- package/package.json +12 -12
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(".collapse-enter-active[data-v-
|
|
1
|
+
(function(){"use strict";try{if(typeof document<"u"){var a=document.createElement("style");a.appendChild(document.createTextNode(".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-1b9c33a1]:before,.hamburger__icon[data-v-1b9c33a1]:after{position:absolute;left:0;transition:all .3s linear}.hamburger__icon[data-v-1b9c33a1]:before{top:-.5rem}.hamburger__icon[data-v-1b9c33a1]:after{top:.5rem}.hamburger__button:focus .hamburger__icon[data-v-1b9c33a1],.hamburger__button:hover .hamburger__icon[data-v-1b9c33a1]{scale:1.05}.hamburger__checkbox:checked+.hamburger__icon[data-v-1b9c33a1]{background-color:transparent}.hamburger__checkbox:checked+.hamburger__icon[data-v-1b9c33a1]:before{top:0;transform:rotate(135deg)}.hamburger__checkbox:checked+.hamburger__icon[data-v-1b9c33a1]:after{top:0;transform:rotate(-135deg)}.collapse-enter-active[data-v-56d20376]{transition:height .5s ease-in}.collapse-leave-active[data-v-56d20376]{transition:height .5s ease-out}.header-desktop[data-v-c48d5ce1]{width:100%}@media screen and (min-width: 1024px){.header-desktop[data-v-c48d5ce1]{width:var(--header-width)}}.slide-down-enter-active[data-v-c48d5ce1]{transition:transform .3s ease-in .2s,opacity .5s ease-in}.slide-down-leave-active[data-v-c48d5ce1]{transition:transform .5s ease-in,opacity .3s ease-in .2s}.slide-down-enter-from[data-v-c48d5ce1],.slide-down-leave-to[data-v-c48d5ce1]{opacity:0;transform:translateY(-100%)}.vertical-placement[data-v-1302a12c]{top:var(--vertical-placement);left:50%;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}.fade-enter-active[data-v-1302a12c],.fade-leave-active[data-v-1302a12c]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-1302a12c],.fade-leave-to[data-v-1302a12c]{opacity:0}.slide-down-enter-active[data-v-1302a12c]{animation:slide-down-1302a12c .3s ease}.slide-down-leave-active[data-v-1302a12c]{animation:slide-down-1302a12c reverse .3s ease}@keyframes slide-down-1302a12c{0%{opacity:0;transform:translateY(-100%) translate(-50%)}to{opacity:1;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}}.sidebar-body[data-v-15e6bcbe]{width:100%}.sidebar-body-height[data-v-15e6bcbe]{min-height:calc(100vh - var(--header-height) - var(--footer-height))}.fade-enter-active[data-v-15e6bcbe],.fade-leave-active[data-v-15e6bcbe]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-15e6bcbe],.fade-leave-to[data-v-15e6bcbe]{opacity:0}.sidebar-left-enter-active[data-v-15e6bcbe],.sidebar-left-leave-active[data-v-15e6bcbe],.sidebar-right-enter-active[data-v-15e6bcbe],.sidebar-right-leave-active[data-v-15e6bcbe]{transition-property:transform,opacity;transition-duration:.3s;transition-timing-function:linear}.sidebar-left-enter-from[data-v-15e6bcbe],.sidebar-left-leave-to[data-v-15e6bcbe]{transform:translate(-100%)}.sidebar-right-enter-from[data-v-15e6bcbe],.sidebar-right-leave-to[data-v-15e6bcbe]{transform:translate(100%)}@media screen and (min-width: 768px){.sidebar-body[data-v-15e6bcbe]{width:var(--sidebar-width)}.sidebar-left-enter-from[data-v-15e6bcbe],.sidebar-left-leave-to[data-v-15e6bcbe]{transform:translate(calc(-1 * var(--sidebar-width)))}.sidebar-right-enter-from[data-v-15e6bcbe],.sidebar-right-leave-to[data-v-15e6bcbe]{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}.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}")),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
2
|
var se = Object.defineProperty;
|
|
3
|
-
var ae = (
|
|
4
|
-
var n = (
|
|
5
|
-
import { defineComponent as
|
|
6
|
-
import { useMutationObserver as
|
|
7
|
-
class
|
|
3
|
+
var ae = (s, r, e) => r in s ? se(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
|
|
4
|
+
var n = (s, r, e) => ae(s, typeof r != "symbol" ? r + "" : r, e);
|
|
5
|
+
import { defineComponent as A, useSlots as D, ref as C, computed as V, watch as L, openBlock as g, createElementBlock as h, normalizeClass as v, createElementVNode as y, renderSlot as B, createCommentVNode as T, onMounted as F, createVNode as S, unref as R, withCtx as E, Transition as G, withDirectives as W, vShow as P, h as le, render as J, provide as Y, withKeys as oe, inject as j, createBlock as z, normalizeStyle as X, vModelCheckbox as ie, Teleport as ne, toDisplayString as Q } from "vue";
|
|
6
|
+
import { useMutationObserver as de, useWindowSize as ce, useWindowScroll as ge, useScrollLock as K, useElementSize as ue } from "@vueuse/core";
|
|
7
|
+
class he {
|
|
8
8
|
constructor() {
|
|
9
9
|
// body text class
|
|
10
10
|
n(this, "bodyText", {
|
|
@@ -28,7 +28,7 @@ class ue {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
class
|
|
31
|
+
class pe {
|
|
32
32
|
constructor() {
|
|
33
33
|
// Border width class
|
|
34
34
|
n(this, "borderWidth", {
|
|
@@ -131,7 +131,7 @@ class he {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
class
|
|
134
|
+
class be {
|
|
135
135
|
constructor() {
|
|
136
136
|
// bg color class
|
|
137
137
|
n(this, "bgColor", {
|
|
@@ -609,7 +609,7 @@ class pe {
|
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
class
|
|
612
|
+
class fe {
|
|
613
613
|
constructor() {
|
|
614
614
|
// h1 class
|
|
615
615
|
n(this, "heading1", {
|
|
@@ -641,7 +641,7 @@ class be {
|
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
class
|
|
644
|
+
class ve {
|
|
645
645
|
constructor() {
|
|
646
646
|
// opacity
|
|
647
647
|
n(this, "backgroundOpacity", {
|
|
@@ -670,7 +670,7 @@ class fe {
|
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
class
|
|
673
|
+
class me {
|
|
674
674
|
constructor() {
|
|
675
675
|
// spacing: margin
|
|
676
676
|
n(this, "margin", {
|
|
@@ -857,48 +857,48 @@ class ve {
|
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
|
-
class
|
|
861
|
-
constructor(
|
|
860
|
+
class xe {
|
|
861
|
+
constructor(r) {
|
|
862
862
|
n(this, "classType");
|
|
863
|
-
this.classType =
|
|
863
|
+
this.classType = r;
|
|
864
864
|
}
|
|
865
|
-
validateColorType(
|
|
865
|
+
validateColorType(r) {
|
|
866
866
|
const e = /(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)/;
|
|
867
|
-
return typeof
|
|
867
|
+
return typeof r != "string" || !e.test(r) ? !1 : H.colorType.includes(this.classType);
|
|
868
868
|
}
|
|
869
|
-
validateSpaceType(
|
|
869
|
+
validateSpaceType(r) {
|
|
870
870
|
const e = /(0|3xs|2xs|xs|sm|md|lg|xl|2xl|3xl)/;
|
|
871
|
-
return typeof
|
|
871
|
+
return typeof r != "string" || !e.test(r) ? !1 : H.spacingType.includes(this.classType);
|
|
872
872
|
}
|
|
873
|
-
validateHeadingTextSizeType(
|
|
873
|
+
validateHeadingTextSizeType(r) {
|
|
874
874
|
const e = /(sm|md|lg|xl)/;
|
|
875
|
-
return typeof
|
|
875
|
+
return typeof r != "string" || !e.test(r) ? !1 : H.headingSizeType.includes(
|
|
876
876
|
this.classType
|
|
877
877
|
);
|
|
878
878
|
}
|
|
879
|
-
validateBodyTextSizeType(
|
|
879
|
+
validateBodyTextSizeType(r) {
|
|
880
880
|
const e = /(xs|sm|md|lg|xl)/;
|
|
881
|
-
return typeof
|
|
881
|
+
return typeof r != "string" || !e.test(r) ? !1 : H.textType.includes(this.classType);
|
|
882
882
|
}
|
|
883
|
-
validateFontWeightType(
|
|
883
|
+
validateFontWeightType(r) {
|
|
884
884
|
const e = /(light|normal|bold)/;
|
|
885
|
-
return typeof
|
|
885
|
+
return typeof r != "string" || !e.test(r) ? !1 : H.fontWeightType.includes(
|
|
886
886
|
this.classType
|
|
887
887
|
);
|
|
888
888
|
}
|
|
889
|
-
validateOpacityType(
|
|
889
|
+
validateOpacityType(r) {
|
|
890
890
|
const e = /\b(0|[1-9]0|100)\b/;
|
|
891
|
-
return typeof
|
|
891
|
+
return typeof r != "number" || !e.test(r.toString()) ? !1 : H.scaleType.includes(this.classType);
|
|
892
892
|
}
|
|
893
|
-
validateRangeType(
|
|
893
|
+
validateRangeType(r) {
|
|
894
894
|
const e = /\b([1-9]|1[0-2])\b/;
|
|
895
|
-
return typeof
|
|
895
|
+
return typeof r != "number" || !e.test(r.toString()) ? !1 : H.borderWidthType.includes(
|
|
896
896
|
this.classType
|
|
897
897
|
);
|
|
898
898
|
}
|
|
899
|
-
validateAlignment(
|
|
899
|
+
validateAlignment(r) {
|
|
900
900
|
const e = /(left|center|right)/;
|
|
901
|
-
return typeof
|
|
901
|
+
return typeof r != "string" || !e.test(r) ? !1 : H.textAlignType.includes(
|
|
902
902
|
this.classType
|
|
903
903
|
);
|
|
904
904
|
}
|
|
@@ -962,8 +962,8 @@ const H = {
|
|
|
962
962
|
"GAP"
|
|
963
963
|
]
|
|
964
964
|
};
|
|
965
|
-
class
|
|
966
|
-
constructor(
|
|
965
|
+
class ye {
|
|
966
|
+
constructor(r, e) {
|
|
967
967
|
n(this, "classType");
|
|
968
968
|
n(this, "classValue");
|
|
969
969
|
n(this, "colorClass");
|
|
@@ -973,10 +973,11 @@ class xe {
|
|
|
973
973
|
n(this, "spacingClass");
|
|
974
974
|
n(this, "textClass");
|
|
975
975
|
n(this, "validator");
|
|
976
|
-
this.classType =
|
|
976
|
+
this.classType = r, this.classValue = e, this.colorClass = new be(), this.headingSizeClass = new fe(), this.borderWidthClass = new pe(), this.opacityClass = new ve(), this.spacingClass = new me(), this.textClass = new he(), this.validator = new xe(r);
|
|
977
977
|
}
|
|
978
978
|
generateClass() {
|
|
979
979
|
switch (this.classType) {
|
|
980
|
+
// case: color classes
|
|
980
981
|
case "BGCOLOR":
|
|
981
982
|
return this.getBgColorClass();
|
|
982
983
|
case "HVBGCOLOR":
|
|
@@ -1025,6 +1026,7 @@ class xe {
|
|
|
1025
1026
|
return this.getBorderLeftColorClass();
|
|
1026
1027
|
case "BORDERR":
|
|
1027
1028
|
return this.getBorderRightColorClass();
|
|
1029
|
+
// case: heading classes
|
|
1028
1030
|
case "H1":
|
|
1029
1031
|
return this.getH1Class();
|
|
1030
1032
|
case "H2":
|
|
@@ -1033,12 +1035,16 @@ class xe {
|
|
|
1033
1035
|
return this.getH3Class();
|
|
1034
1036
|
case "H4":
|
|
1035
1037
|
return this.getH4Class();
|
|
1038
|
+
// case: body text class
|
|
1036
1039
|
case "BODYTEXT":
|
|
1037
1040
|
return this.getBodyTextSizeClass();
|
|
1041
|
+
// case: font weight class
|
|
1038
1042
|
case "FONTWEIGHT":
|
|
1039
1043
|
return this.getFontWeightClass();
|
|
1044
|
+
// case: text alignment class
|
|
1040
1045
|
case "TEXTALIGN":
|
|
1041
1046
|
return this.getTextAlignClass();
|
|
1047
|
+
// case: border width classes
|
|
1042
1048
|
case "BORDERW":
|
|
1043
1049
|
return this.getBorderWidthClass();
|
|
1044
1050
|
case "BORDERXW":
|
|
@@ -1053,10 +1059,12 @@ class xe {
|
|
|
1053
1059
|
return this.getBorderLeftWidthClass();
|
|
1054
1060
|
case "BORDERRW":
|
|
1055
1061
|
return this.getBorderRightWidthClass();
|
|
1062
|
+
// case: opacity classes
|
|
1056
1063
|
case "OPACITY":
|
|
1057
1064
|
return this.getOpacityClass();
|
|
1058
1065
|
case "BGOPACITY":
|
|
1059
1066
|
return this.getBgOpacityClass();
|
|
1067
|
+
// case: margins
|
|
1060
1068
|
case "MARGIN":
|
|
1061
1069
|
return this.getMarginClass();
|
|
1062
1070
|
case "MARGINX":
|
|
@@ -1071,6 +1079,7 @@ class xe {
|
|
|
1071
1079
|
return this.getMarginLeftClass();
|
|
1072
1080
|
case "MARGINR":
|
|
1073
1081
|
return this.getMarginRightClass();
|
|
1082
|
+
// case: paddings
|
|
1074
1083
|
case "PADDING":
|
|
1075
1084
|
return this.getPaddingClass();
|
|
1076
1085
|
case "PADDINGX":
|
|
@@ -1085,6 +1094,7 @@ class xe {
|
|
|
1085
1094
|
return this.getPaddingLeftClass();
|
|
1086
1095
|
case "PADDINGR":
|
|
1087
1096
|
return this.getPaddingRightClass();
|
|
1097
|
+
// case: gap
|
|
1088
1098
|
case "GAP":
|
|
1089
1099
|
return this.getGapClass();
|
|
1090
1100
|
default:
|
|
@@ -1274,16 +1284,7 @@ class xe {
|
|
|
1274
1284
|
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.gap[this.classValue] : " ";
|
|
1275
1285
|
}
|
|
1276
1286
|
}
|
|
1277
|
-
const w = (
|
|
1278
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
1279
|
-
viewBox: "0 0 384 512",
|
|
1280
|
-
fill: "currentColor",
|
|
1281
|
-
class: "h-xs"
|
|
1282
|
-
}, [
|
|
1283
|
-
/* @__PURE__ */ 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" })
|
|
1284
|
-
], -1), Te = [
|
|
1285
|
-
ke
|
|
1286
|
-
], bt = /* @__PURE__ */ V({
|
|
1287
|
+
const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex justify-between gap-2xs" }, ke = { class: "w-full" }, ot = /* @__PURE__ */ A({
|
|
1287
1288
|
__name: "Alert",
|
|
1288
1289
|
props: {
|
|
1289
1290
|
color: { default: "danger" },
|
|
@@ -1293,64 +1294,73 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
1293
1294
|
dismissible: { type: Boolean, default: !1 }
|
|
1294
1295
|
},
|
|
1295
1296
|
emits: ["close"],
|
|
1296
|
-
setup(
|
|
1297
|
-
const
|
|
1298
|
-
|
|
1299
|
-
const
|
|
1300
|
-
const { color:
|
|
1301
|
-
return c &&
|
|
1302
|
-
}), o = (
|
|
1303
|
-
d.value = !1,
|
|
1297
|
+
setup(s, { expose: r, emit: e }) {
|
|
1298
|
+
const l = s;
|
|
1299
|
+
D();
|
|
1300
|
+
const t = e, d = C(l.show), a = V(() => {
|
|
1301
|
+
const { color: u, rounded: c, shadow: m } = l, f = [w("BGCOLOR", u)];
|
|
1302
|
+
return c && f.push("rounded-md"), m && f.push("drop-shadow-md"), f.join(" ");
|
|
1303
|
+
}), o = (u) => {
|
|
1304
|
+
d.value = !1, t("close", u);
|
|
1304
1305
|
}, i = () => {
|
|
1305
1306
|
d.value = !1;
|
|
1306
1307
|
};
|
|
1307
|
-
return
|
|
1308
|
-
() =>
|
|
1309
|
-
(
|
|
1310
|
-
d.value =
|
|
1308
|
+
return L(
|
|
1309
|
+
() => l.show,
|
|
1310
|
+
(u) => {
|
|
1311
|
+
d.value = u;
|
|
1311
1312
|
}
|
|
1312
|
-
),
|
|
1313
|
+
), r({
|
|
1313
1314
|
close: i
|
|
1314
|
-
}), (
|
|
1315
|
+
}), (u, c) => d.value ? (g(), h("div", {
|
|
1315
1316
|
key: 0,
|
|
1316
1317
|
role: "alert",
|
|
1317
1318
|
"aria-live": "polite",
|
|
1318
1319
|
"aria-atomic": "true",
|
|
1319
|
-
class:
|
|
1320
|
+
class: v(["py-[0.75rem] px-[1.25rem] relative", [a.value]])
|
|
1320
1321
|
}, [
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1322
|
+
y("div", Ce, [
|
|
1323
|
+
y("div", ke, [
|
|
1324
|
+
B(u.$slots, "default")
|
|
1324
1325
|
]),
|
|
1325
|
-
|
|
1326
|
+
u.dismissible ? (g(), h("button", {
|
|
1326
1327
|
key: 0,
|
|
1327
1328
|
onClick: o,
|
|
1328
1329
|
class: "flex items-center opacity-60 hover:opacity-40 transition-opacity duration-300 ease-linear"
|
|
1329
|
-
},
|
|
1330
|
+
}, c[0] || (c[0] = [
|
|
1331
|
+
y("svg", {
|
|
1332
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1333
|
+
viewBox: "0 0 384 512",
|
|
1334
|
+
fill: "currentColor",
|
|
1335
|
+
class: "h-xs"
|
|
1336
|
+
}, [
|
|
1337
|
+
y("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" })
|
|
1338
|
+
], -1)
|
|
1339
|
+
]))) : T("", !0)
|
|
1330
1340
|
])
|
|
1331
1341
|
], 2)) : T("", !0);
|
|
1332
1342
|
}
|
|
1333
|
-
}),
|
|
1334
|
-
|
|
1343
|
+
}), U = (s, r) => de(
|
|
1344
|
+
s,
|
|
1335
1345
|
(e) => {
|
|
1336
|
-
let
|
|
1337
|
-
for (let
|
|
1338
|
-
const d = e[
|
|
1339
|
-
if ((
|
|
1340
|
-
const
|
|
1341
|
-
|
|
1346
|
+
let l = !1;
|
|
1347
|
+
for (let t = 0; t < e.length && !l; t++) {
|
|
1348
|
+
const d = e[t], a = d.type, o = d.attributeName, i = d.target;
|
|
1349
|
+
if ((a === "attributes" || o === "visible") && (l = !0), l) {
|
|
1350
|
+
const u = i.getAttribute("visible") === "true";
|
|
1351
|
+
r(u);
|
|
1342
1352
|
}
|
|
1343
1353
|
}
|
|
1344
1354
|
},
|
|
1345
1355
|
{ attributes: !0 }
|
|
1346
|
-
),
|
|
1347
|
-
setup(
|
|
1356
|
+
), Te = A({
|
|
1357
|
+
setup(s, { slots: r }) {
|
|
1348
1358
|
const e = C(!1);
|
|
1349
|
-
return
|
|
1359
|
+
return F(() => {
|
|
1350
1360
|
e.value = !0;
|
|
1351
|
-
}), () => e.value &&
|
|
1361
|
+
}), () => e.value && r.default ? r.default() : null;
|
|
1352
1362
|
}
|
|
1353
|
-
}),
|
|
1363
|
+
}), we = ["accordion", "visible"], Be = /* @__PURE__ */ A({
|
|
1354
1364
|
__name: "Collapse",
|
|
1355
1365
|
props: {
|
|
1356
1366
|
accordion: {},
|
|
@@ -1358,66 +1368,66 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
1358
1368
|
visible: { type: Boolean, default: !1 }
|
|
1359
1369
|
},
|
|
1360
1370
|
emits: ["open", "close"],
|
|
1361
|
-
setup(
|
|
1362
|
-
const
|
|
1363
|
-
|
|
1364
|
-
const
|
|
1365
|
-
|
|
1371
|
+
setup(s, { expose: r, emit: e }) {
|
|
1372
|
+
const l = s;
|
|
1373
|
+
D();
|
|
1374
|
+
const t = e, d = C(), a = C(l.visible), o = () => {
|
|
1375
|
+
a.value = !a.value;
|
|
1366
1376
|
}, i = () => {
|
|
1367
|
-
|
|
1368
|
-
},
|
|
1369
|
-
|
|
1377
|
+
a.value = !0;
|
|
1378
|
+
}, u = () => {
|
|
1379
|
+
a.value = !1;
|
|
1370
1380
|
}, c = () => {
|
|
1371
|
-
|
|
1372
|
-
},
|
|
1373
|
-
|
|
1374
|
-
},
|
|
1375
|
-
|
|
1376
|
-
const
|
|
1377
|
-
|
|
1378
|
-
}, O = (
|
|
1379
|
-
|
|
1380
|
-
}, N = (
|
|
1381
|
-
|
|
1381
|
+
t("open", !0);
|
|
1382
|
+
}, m = () => {
|
|
1383
|
+
t("close", !1);
|
|
1384
|
+
}, f = (p) => {
|
|
1385
|
+
p.style.height = "auto", p.style.opacity = "0";
|
|
1386
|
+
const _ = getComputedStyle(p).height;
|
|
1387
|
+
p.style.height = "0px", p.offsetHeight, p.style.height = _, p.style.opacity = "1";
|
|
1388
|
+
}, O = (p) => {
|
|
1389
|
+
p.style.height = "auto", p.style.opacity = "1";
|
|
1390
|
+
}, N = (p) => {
|
|
1391
|
+
p.style.height = getComputedStyle(p).height, p.offsetHeight, p.style.height = "0px", p.style.opacity = "0";
|
|
1382
1392
|
};
|
|
1383
|
-
return
|
|
1384
|
-
|
|
1385
|
-
}),
|
|
1386
|
-
() =>
|
|
1387
|
-
(
|
|
1388
|
-
|
|
1393
|
+
return U(d, (p = !1) => {
|
|
1394
|
+
a.value = p;
|
|
1395
|
+
}), L(
|
|
1396
|
+
() => l.visible,
|
|
1397
|
+
(p) => {
|
|
1398
|
+
a.value = p;
|
|
1389
1399
|
}
|
|
1390
|
-
),
|
|
1391
|
-
|
|
1392
|
-
}),
|
|
1400
|
+
), L(a, (p) => {
|
|
1401
|
+
p === !0 ? c() : p === !1 && m();
|
|
1402
|
+
}), r({
|
|
1393
1403
|
toggle: o,
|
|
1394
|
-
close:
|
|
1404
|
+
close: u,
|
|
1395
1405
|
open: i
|
|
1396
|
-
}), (
|
|
1397
|
-
accordion:
|
|
1398
|
-
visible:
|
|
1406
|
+
}), (p, _) => (g(), h("div", {
|
|
1407
|
+
accordion: p.accordion,
|
|
1408
|
+
visible: a.value,
|
|
1399
1409
|
ref_key: "collapseRef",
|
|
1400
1410
|
ref: d
|
|
1401
1411
|
}, [
|
|
1402
|
-
|
|
1403
|
-
default:
|
|
1404
|
-
|
|
1412
|
+
S(R(Te), null, {
|
|
1413
|
+
default: E(() => [
|
|
1414
|
+
S(G, {
|
|
1405
1415
|
name: "collapse",
|
|
1406
1416
|
tag: "div",
|
|
1407
|
-
onEnter:
|
|
1417
|
+
onEnter: f,
|
|
1408
1418
|
onAfterEnter: O,
|
|
1409
1419
|
onLeave: N,
|
|
1410
1420
|
class: "overflow-y-clip"
|
|
1411
1421
|
}, {
|
|
1412
|
-
default:
|
|
1413
|
-
W(
|
|
1414
|
-
|
|
1415
|
-
class:
|
|
1422
|
+
default: E(() => [
|
|
1423
|
+
W(y("div", null, [
|
|
1424
|
+
y("div", {
|
|
1425
|
+
class: v(p.className)
|
|
1416
1426
|
}, [
|
|
1417
|
-
|
|
1427
|
+
B(p.$slots, "default", {}, void 0, !0)
|
|
1418
1428
|
], 2)
|
|
1419
1429
|
], 512), [
|
|
1420
|
-
[
|
|
1430
|
+
[P, a.value]
|
|
1421
1431
|
])
|
|
1422
1432
|
]),
|
|
1423
1433
|
_: 3
|
|
@@ -1425,14 +1435,14 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
1425
1435
|
]),
|
|
1426
1436
|
_: 3
|
|
1427
1437
|
})
|
|
1428
|
-
], 8,
|
|
1438
|
+
], 8, we));
|
|
1429
1439
|
}
|
|
1430
|
-
}),
|
|
1431
|
-
const e =
|
|
1432
|
-
for (const [
|
|
1433
|
-
e[
|
|
1440
|
+
}), I = (s, r) => {
|
|
1441
|
+
const e = s.__vccOpts || s;
|
|
1442
|
+
for (const [l, t] of r)
|
|
1443
|
+
e[l] = t;
|
|
1434
1444
|
return e;
|
|
1435
|
-
},
|
|
1445
|
+
}, it = /* @__PURE__ */ I(Be, [["__scopeId", "data-v-5d535dc4"]]), Re = A({
|
|
1436
1446
|
props: {
|
|
1437
1447
|
direction: {
|
|
1438
1448
|
type: String,
|
|
@@ -1459,15 +1469,15 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
1459
1469
|
required: !0
|
|
1460
1470
|
}
|
|
1461
1471
|
},
|
|
1462
|
-
setup(
|
|
1463
|
-
const
|
|
1464
|
-
const { color: d, textColor:
|
|
1472
|
+
setup(s) {
|
|
1473
|
+
const r = "invisible opacity-0 group-hover:visible group-hover:opacity-100 z-[100] tooltip", e = V(() => {
|
|
1474
|
+
const { color: d, textColor: a } = s;
|
|
1465
1475
|
return [
|
|
1466
1476
|
w("BGCOLOR", d),
|
|
1467
|
-
w("TEXTCOLOR",
|
|
1477
|
+
w("TEXTCOLOR", a)
|
|
1468
1478
|
].join(" ");
|
|
1469
|
-
}),
|
|
1470
|
-
switch (
|
|
1479
|
+
}), l = V(() => ({ width: `${s.width}px` })), t = V(() => {
|
|
1480
|
+
switch (s.direction) {
|
|
1471
1481
|
case "left":
|
|
1472
1482
|
return "tooltip-left";
|
|
1473
1483
|
case "top":
|
|
@@ -1480,181 +1490,181 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
1480
1490
|
});
|
|
1481
1491
|
return () => le("div", {
|
|
1482
1492
|
class: [
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1493
|
+
r,
|
|
1494
|
+
s.customClass,
|
|
1495
|
+
t.value,
|
|
1486
1496
|
e.value
|
|
1487
1497
|
],
|
|
1488
1498
|
role: "tooltip",
|
|
1489
|
-
innerHTML:
|
|
1490
|
-
style: [
|
|
1499
|
+
innerHTML: s.title,
|
|
1500
|
+
style: [l.value]
|
|
1491
1501
|
});
|
|
1492
1502
|
}
|
|
1493
|
-
}),
|
|
1494
|
-
mounted(
|
|
1495
|
-
|
|
1496
|
-
|
|
1497
|
-
}, document.body.addEventListener("click",
|
|
1503
|
+
}), q = {
|
|
1504
|
+
mounted(s, r) {
|
|
1505
|
+
s.__ClickOutsideHandler = (e) => {
|
|
1506
|
+
s === e.target || s.contains(e.target) || r.value(e);
|
|
1507
|
+
}, document.body.addEventListener("click", s.__ClickOutsideHandler);
|
|
1498
1508
|
},
|
|
1499
|
-
unmounted(
|
|
1500
|
-
document.body.removeEventListener("click",
|
|
1509
|
+
unmounted(s) {
|
|
1510
|
+
document.body.removeEventListener("click", s.__ClickOutsideHandler);
|
|
1501
1511
|
}
|
|
1502
|
-
},
|
|
1503
|
-
mounted(
|
|
1504
|
-
|
|
1512
|
+
}, nt = {
|
|
1513
|
+
mounted(s, r) {
|
|
1514
|
+
s.__ClickToggleHandler = (e) => {
|
|
1505
1515
|
e.preventDefault();
|
|
1506
|
-
const
|
|
1507
|
-
let
|
|
1508
|
-
if (
|
|
1509
|
-
const o =
|
|
1510
|
-
|
|
1516
|
+
const l = e.target;
|
|
1517
|
+
let t;
|
|
1518
|
+
if (l.tagName === "A") {
|
|
1519
|
+
const o = l.getAttribute("href"), i = (o == null ? void 0 : o.charAt(0)) === "#" ? o.substring(1) : o;
|
|
1520
|
+
t = document.getElementById(i);
|
|
1511
1521
|
} else
|
|
1512
|
-
|
|
1513
|
-
if (!
|
|
1522
|
+
t = document.getElementById(r.arg);
|
|
1523
|
+
if (!t || t.hasAttribute("visible") === !1)
|
|
1514
1524
|
return;
|
|
1515
|
-
const
|
|
1516
|
-
|
|
1517
|
-
},
|
|
1525
|
+
const a = t.getAttribute("visible") === "true" ? "false" : "true";
|
|
1526
|
+
t.setAttribute("visible", a);
|
|
1527
|
+
}, s.addEventListener("click", s.__ClickToggleHandler);
|
|
1518
1528
|
},
|
|
1519
|
-
unmounted(
|
|
1520
|
-
|
|
1529
|
+
unmounted(s) {
|
|
1530
|
+
s.removeEventListener("click", s.__ClickToggleHandler);
|
|
1521
1531
|
}
|
|
1522
|
-
},
|
|
1523
|
-
mounted(
|
|
1524
|
-
|
|
1532
|
+
}, dt = {
|
|
1533
|
+
mounted(s, r) {
|
|
1534
|
+
s.__HandleToggler = (e) => {
|
|
1525
1535
|
e.preventDefault();
|
|
1526
|
-
const
|
|
1527
|
-
let
|
|
1528
|
-
if (
|
|
1529
|
-
const o =
|
|
1530
|
-
|
|
1536
|
+
const l = e.target;
|
|
1537
|
+
let t;
|
|
1538
|
+
if (l.tagName === "A") {
|
|
1539
|
+
const o = l.getAttribute("href"), i = (o == null ? void 0 : o.charAt(0)) === "#" ? o.substring(1) : o;
|
|
1540
|
+
t = document.getElementById(i);
|
|
1531
1541
|
} else
|
|
1532
|
-
|
|
1533
|
-
if (!
|
|
1542
|
+
t = document.getElementById(r.arg);
|
|
1543
|
+
if (!t || t.hasAttribute("visible") === !1)
|
|
1534
1544
|
return;
|
|
1535
|
-
if (!
|
|
1536
|
-
const i =
|
|
1537
|
-
|
|
1545
|
+
if (!t.hasAttribute("accordion")) {
|
|
1546
|
+
const i = t.getAttribute("visible") === "true" ? "false" : "true";
|
|
1547
|
+
t.setAttribute("visible", i);
|
|
1538
1548
|
return;
|
|
1539
1549
|
}
|
|
1540
|
-
const d =
|
|
1550
|
+
const d = t.getAttribute("accordion"), a = document.querySelectorAll(
|
|
1541
1551
|
`div[accordion="${d}"]`
|
|
1542
1552
|
);
|
|
1543
|
-
for (let o = 0; o <
|
|
1544
|
-
const i =
|
|
1545
|
-
if (
|
|
1546
|
-
const c =
|
|
1547
|
-
|
|
1553
|
+
for (let o = 0; o < a.length; o++) {
|
|
1554
|
+
const i = a[o].getAttribute("visible");
|
|
1555
|
+
if (a[o].id !== t.id && i === "true" && a[o].setAttribute("visible", "false"), a[o].id === t.id) {
|
|
1556
|
+
const c = t.getAttribute("visible") === "true" ? "false" : "true";
|
|
1557
|
+
t.setAttribute("visible", c);
|
|
1548
1558
|
}
|
|
1549
1559
|
}
|
|
1550
|
-
},
|
|
1560
|
+
}, s.addEventListener("click", s.__HandleToggler);
|
|
1551
1561
|
},
|
|
1552
|
-
unmounted(
|
|
1553
|
-
|
|
1562
|
+
unmounted(s) {
|
|
1563
|
+
s.removeEventListener("click", s.__HandleToggler);
|
|
1554
1564
|
}
|
|
1555
|
-
},
|
|
1556
|
-
mounted(
|
|
1557
|
-
|
|
1565
|
+
}, ct = {
|
|
1566
|
+
mounted(s, r) {
|
|
1567
|
+
s.__HandleTooltip = (e, l) => {
|
|
1558
1568
|
e.classList.add("relative", "group", "overflow-visible");
|
|
1559
|
-
let
|
|
1560
|
-
e.hasAttribute("title") && (
|
|
1569
|
+
let t;
|
|
1570
|
+
e.hasAttribute("title") && (t = e.getAttribute("title")), !e.hasAttribute("title") && typeof l.value < "u" && typeof l.value == "string" && (t = l.value), !e.hasAttribute("title") && typeof l.value < "u" && typeof l.value != "string" && typeof l.value.title == "string" && (t = l.value.title);
|
|
1561
1571
|
let d;
|
|
1562
|
-
e.hasAttribute("color") && (d = e.getAttribute("color")), !e.hasAttribute("color") && typeof
|
|
1563
|
-
let
|
|
1564
|
-
e.hasAttribute("text-color") && (
|
|
1572
|
+
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);
|
|
1573
|
+
let a;
|
|
1574
|
+
e.hasAttribute("text-color") && (a = e.getAttribute("text-color")), !e.hasAttribute("text-color") && typeof l.value < "u" && typeof l.value != "string" && typeof l.value.textColor == "string" && (a = l.value.textColor);
|
|
1565
1575
|
let o;
|
|
1566
|
-
e.hasAttribute("tooltip-width") && (o = e.getAttribute("tooltip-width")), !e.hasAttribute("tooltip-width") && typeof
|
|
1576
|
+
e.hasAttribute("tooltip-width") && (o = e.getAttribute("tooltip-width")), !e.hasAttribute("tooltip-width") && typeof l.value < "u" && typeof l.value != "string" && ["number", "string"].includes(typeof l.value.width) && (o = l.value.width);
|
|
1567
1577
|
let i;
|
|
1568
|
-
typeof
|
|
1569
|
-
let
|
|
1570
|
-
const c = Object.keys(
|
|
1571
|
-
c.length > 0 && (
|
|
1572
|
-
const
|
|
1573
|
-
direction:
|
|
1574
|
-
title:
|
|
1578
|
+
typeof l.value < "u" && typeof l.value != "string" && typeof l.value.className == "string" && (i = l.value.className);
|
|
1579
|
+
let u;
|
|
1580
|
+
const c = Object.keys(l.modifiers);
|
|
1581
|
+
c.length > 0 && (u = c[0]);
|
|
1582
|
+
const m = S(Re, {
|
|
1583
|
+
direction: u,
|
|
1584
|
+
title: t,
|
|
1575
1585
|
color: d,
|
|
1576
|
-
textColor:
|
|
1586
|
+
textColor: a,
|
|
1577
1587
|
width: o,
|
|
1578
1588
|
customClass: i
|
|
1579
1589
|
});
|
|
1580
|
-
|
|
1581
|
-
},
|
|
1582
|
-
|
|
1583
|
-
},
|
|
1590
|
+
J(m, e);
|
|
1591
|
+
}, s.__UnmountTooltip = (e) => {
|
|
1592
|
+
J(null, e);
|
|
1593
|
+
}, s.__HandleTooltip(s, r);
|
|
1584
1594
|
},
|
|
1585
|
-
updated(
|
|
1586
|
-
|
|
1595
|
+
updated(s, r) {
|
|
1596
|
+
s.__HandleTooltip(s, r);
|
|
1587
1597
|
},
|
|
1588
|
-
unmounted(
|
|
1589
|
-
|
|
1598
|
+
unmounted(s) {
|
|
1599
|
+
s.__UnmountTooltip(s);
|
|
1590
1600
|
}
|
|
1591
|
-
}, Z = Symbol(),
|
|
1601
|
+
}, Z = Symbol(), gt = /* @__PURE__ */ A({
|
|
1592
1602
|
__name: "DropdownContainer",
|
|
1593
1603
|
emits: ["click-outside", "toggle"],
|
|
1594
|
-
setup(
|
|
1595
|
-
|
|
1596
|
-
const e =
|
|
1597
|
-
|
|
1598
|
-
active:
|
|
1604
|
+
setup(s, { emit: r }) {
|
|
1605
|
+
D();
|
|
1606
|
+
const e = r, l = C(), t = C(!1), d = C(0);
|
|
1607
|
+
Y(Z, {
|
|
1608
|
+
active: t,
|
|
1599
1609
|
buttonHeight: d,
|
|
1600
1610
|
closeDropdown: () => {
|
|
1601
|
-
|
|
1611
|
+
t.value = !1;
|
|
1602
1612
|
}
|
|
1603
1613
|
});
|
|
1604
1614
|
const o = (c) => {
|
|
1605
|
-
|
|
1615
|
+
t.value = !t.value, e("toggle", c);
|
|
1606
1616
|
}, i = (c) => {
|
|
1607
|
-
|
|
1608
|
-
},
|
|
1609
|
-
|
|
1617
|
+
t.value = !1, e("click-outside", c);
|
|
1618
|
+
}, u = () => {
|
|
1619
|
+
t.value = !1;
|
|
1610
1620
|
};
|
|
1611
|
-
return
|
|
1612
|
-
d.value =
|
|
1613
|
-
}), (c,
|
|
1621
|
+
return F(() => {
|
|
1622
|
+
d.value = l.value.scrollHeight;
|
|
1623
|
+
}), (c, m) => W((g(), h("div", {
|
|
1614
1624
|
class: "relative",
|
|
1615
1625
|
ref_key: "dropdownTarget",
|
|
1616
|
-
ref:
|
|
1617
|
-
onKeyup: oe(
|
|
1626
|
+
ref: l,
|
|
1627
|
+
onKeyup: oe(u, ["esc"])
|
|
1618
1628
|
}, [
|
|
1619
|
-
|
|
1629
|
+
B(c.$slots, "toggler", {
|
|
1620
1630
|
toggle: o,
|
|
1621
|
-
dropdownState:
|
|
1631
|
+
dropdownState: t.value
|
|
1622
1632
|
}),
|
|
1623
|
-
|
|
1633
|
+
B(c.$slots, "default")
|
|
1624
1634
|
], 32)), [
|
|
1625
|
-
[R(
|
|
1635
|
+
[R(q), i]
|
|
1626
1636
|
]);
|
|
1627
1637
|
}
|
|
1628
|
-
}),
|
|
1638
|
+
}), Oe = /* @__PURE__ */ A({
|
|
1629
1639
|
__name: "DropdownContent",
|
|
1630
1640
|
props: {
|
|
1631
1641
|
className: { default: "" }
|
|
1632
1642
|
},
|
|
1633
|
-
setup(
|
|
1634
|
-
const { height:
|
|
1635
|
-
|
|
1636
|
-
const e = C(), { active:
|
|
1643
|
+
setup(s) {
|
|
1644
|
+
const { height: r } = ce();
|
|
1645
|
+
D();
|
|
1646
|
+
const e = C(), { active: l, buttonHeight: t, closeDropdown: d } = j(
|
|
1637
1647
|
Z
|
|
1638
|
-
),
|
|
1639
|
-
if (!(!
|
|
1648
|
+
), a = V(() => ({ "--button-height": `${t}px` })), o = V(() => {
|
|
1649
|
+
if (!(!l || !e.value) && r.value - e.value.getBoundingClientRect().bottom < 0)
|
|
1640
1650
|
return "dropup-bottom";
|
|
1641
1651
|
});
|
|
1642
|
-
return (i,
|
|
1643
|
-
default:
|
|
1644
|
-
R(
|
|
1652
|
+
return (i, u) => (g(), z(G, { name: "dropdown-content" }, {
|
|
1653
|
+
default: E(() => [
|
|
1654
|
+
R(l) ? (g(), h("div", {
|
|
1645
1655
|
key: 0,
|
|
1646
1656
|
ref_key: "contentRef",
|
|
1647
1657
|
ref: e,
|
|
1648
|
-
class:
|
|
1649
|
-
style:
|
|
1658
|
+
class: v(["absolute my-2xs max-w-[14rem] w-max overflow-hidden", [o.value, i.className]]),
|
|
1659
|
+
style: X(a.value)
|
|
1650
1660
|
}, [
|
|
1651
|
-
|
|
1661
|
+
B(i.$slots, "default", { itemClick: R(d) }, void 0, !0)
|
|
1652
1662
|
], 6)) : T("", !0)
|
|
1653
1663
|
]),
|
|
1654
1664
|
_: 3
|
|
1655
1665
|
}));
|
|
1656
1666
|
}
|
|
1657
|
-
}),
|
|
1667
|
+
}), ut = /* @__PURE__ */ I(Oe, [["__scopeId", "data-v-85c54efe"]]), Ve = ["aria-label", "aria-expanded"], Ae = /* @__PURE__ */ A({
|
|
1658
1668
|
__name: "NavDrawer",
|
|
1659
1669
|
props: {
|
|
1660
1670
|
color: { default: "dark-2" },
|
|
@@ -1663,47 +1673,49 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
1663
1673
|
navColor: {}
|
|
1664
1674
|
},
|
|
1665
1675
|
emits: ["hbg-click"],
|
|
1666
|
-
setup(
|
|
1667
|
-
const e =
|
|
1668
|
-
|
|
1669
|
-
}, d =
|
|
1676
|
+
setup(s, { emit: r }) {
|
|
1677
|
+
const e = s, l = r, t = (i) => {
|
|
1678
|
+
l("hbg-click", i);
|
|
1679
|
+
}, d = V({
|
|
1670
1680
|
get() {
|
|
1671
1681
|
return e.toggle;
|
|
1672
1682
|
},
|
|
1673
1683
|
set(i) {
|
|
1674
1684
|
return i;
|
|
1675
1685
|
}
|
|
1676
|
-
}),
|
|
1677
|
-
const
|
|
1686
|
+
}), a = (i, u, c) => {
|
|
1687
|
+
const m = [
|
|
1678
1688
|
w("RINGCOLOR", i),
|
|
1679
1689
|
w("OFFSETRING", c)
|
|
1680
1690
|
];
|
|
1681
|
-
return
|
|
1691
|
+
return u && (m.push(w("BORDER", i)), m.push("border")), m.join(" ");
|
|
1682
1692
|
}, o = (i) => [
|
|
1683
1693
|
w("BGCOLOR", i),
|
|
1684
1694
|
w("BEFOREBG", i),
|
|
1685
1695
|
w("AFTERBG", i)
|
|
1686
1696
|
].join(" ");
|
|
1687
|
-
return (i,
|
|
1688
|
-
class:
|
|
1689
|
-
onClick:
|
|
1697
|
+
return (i, u) => (g(), h("button", {
|
|
1698
|
+
class: v(["p-3xs rounded-md aspect-square outline-none focus:ring-4 ring-offset-2 transition-all duration-300 ease-linear hover:opacity-70 focus:opacity-70 hamburger__button", a(i.color, i.displayBorder, i.navColor)]),
|
|
1699
|
+
onClick: t,
|
|
1700
|
+
"aria-label": i.toggle ? "Close" : "Open",
|
|
1701
|
+
"aria-expanded": i.toggle
|
|
1690
1702
|
}, [
|
|
1691
|
-
W(
|
|
1703
|
+
W(y("input", {
|
|
1692
1704
|
type: "checkbox",
|
|
1693
|
-
"onUpdate:modelValue":
|
|
1705
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => d.value = c),
|
|
1694
1706
|
class: "hidden hamburger__checkbox"
|
|
1695
1707
|
}, null, 512), [
|
|
1696
1708
|
[ie, d.value]
|
|
1697
1709
|
]),
|
|
1698
|
-
|
|
1699
|
-
class:
|
|
1710
|
+
y("div", {
|
|
1711
|
+
class: v(["relative h-[3px] w-sm hamburger__icon before:w-sm after:w-sm before:h-[3px] after:h-[3px] transition-all duration-300 ease-linear", o(i.color)])
|
|
1700
1712
|
}, null, 2)
|
|
1701
|
-
],
|
|
1713
|
+
], 10, Ve));
|
|
1702
1714
|
}
|
|
1703
|
-
}), ee = /* @__PURE__ */
|
|
1715
|
+
}), ee = /* @__PURE__ */ I(Ae, [["__scopeId", "data-v-1b9c33a1"]]), _e = { class: "flex flex-wrap items-center py-xs md:py-2xs mx-xs md:mx-sm align-middle justify-between sm:max-w-[640px] md:max-w-[768px] lg:max-w-[1024px] xl:max-w-[1280px] 2xl:max-w-[1536px]" }, Le = { class: "min-h-[24px]" }, Se = { class: "ml-auto" }, Ee = {
|
|
1704
1716
|
key: 0,
|
|
1705
1717
|
class: "hidden lg:block"
|
|
1706
|
-
}, De = { class: "overflow-hidden lg:hidden" },
|
|
1718
|
+
}, De = { class: "overflow-hidden lg:hidden" }, Ge = { key: 0 }, Ie = /* @__PURE__ */ A({
|
|
1707
1719
|
__name: "HeaderHorizontal",
|
|
1708
1720
|
props: {
|
|
1709
1721
|
bgColor: { default: "light-1" },
|
|
@@ -1715,63 +1727,63 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
1715
1727
|
sticky: { default: "all" }
|
|
1716
1728
|
},
|
|
1717
1729
|
emits: ["toggle-drawer"],
|
|
1718
|
-
setup(
|
|
1719
|
-
const
|
|
1730
|
+
setup(s, { expose: r, emit: e }) {
|
|
1731
|
+
const l = s, t = D(), d = C(!1), { y: a } = ge(), o = e, i = () => {
|
|
1720
1732
|
d.value = !1;
|
|
1721
|
-
},
|
|
1733
|
+
}, u = (b) => {
|
|
1722
1734
|
d.value = !d.value, o("toggle-drawer", b, d.value);
|
|
1723
1735
|
}, c = (b) => {
|
|
1724
1736
|
b.style.height = "auto";
|
|
1725
|
-
const
|
|
1726
|
-
b.style.height = "0px", b.offsetHeight, b.style.height =
|
|
1727
|
-
},
|
|
1737
|
+
const p = getComputedStyle(b).height;
|
|
1738
|
+
b.style.height = "0px", b.offsetHeight, b.style.height = p;
|
|
1739
|
+
}, m = (b) => {
|
|
1728
1740
|
b.style.height = "auto";
|
|
1729
|
-
},
|
|
1741
|
+
}, f = (b) => {
|
|
1730
1742
|
b.style.height = getComputedStyle(b).height, b.offsetHeight, b.style.height = "0px";
|
|
1731
|
-
}, O =
|
|
1732
|
-
const { bgColor: b, sticky:
|
|
1733
|
-
return
|
|
1734
|
-
}), N =
|
|
1735
|
-
const { fadeInOnScroll: b, scrollDistance:
|
|
1736
|
-
return b ?
|
|
1743
|
+
}, O = V(() => {
|
|
1744
|
+
const { bgColor: b, sticky: p } = l, _ = [w("BGCOLOR", b)];
|
|
1745
|
+
return p === "all" ? (_.push("sticky top-0"), _.join(" ")) : p === "tablet" ? (_.push("md:sticky top-0"), _.join(" ")) : (p === "pc" && _.push("lg:sticky top-0"), _.join(" "));
|
|
1746
|
+
}), N = V(() => {
|
|
1747
|
+
const { fadeInOnScroll: b, scrollDistance: p } = l;
|
|
1748
|
+
return b ? a.value >= p ? "lg:shadow-md bg-opacity-70" : "bg-opacity-100" : "";
|
|
1737
1749
|
});
|
|
1738
|
-
return
|
|
1750
|
+
return r({
|
|
1739
1751
|
headerClose: i
|
|
1740
|
-
}), (b,
|
|
1741
|
-
class:
|
|
1752
|
+
}), (b, p) => (g(), h("header", {
|
|
1753
|
+
class: v(["w-full items-center z-50 transition ease-in duration-500 delay-150", [N.value, O.value]])
|
|
1742
1754
|
}, [
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1755
|
+
y("nav", _e, [
|
|
1756
|
+
y("div", Le, [
|
|
1757
|
+
B(b.$slots, "content", {}, void 0, !0)
|
|
1746
1758
|
]),
|
|
1747
|
-
|
|
1748
|
-
|
|
1759
|
+
y("div", Se, [
|
|
1760
|
+
S(ee, {
|
|
1749
1761
|
color: b.drawerBtnColor,
|
|
1750
1762
|
"display-border": b.drawerBtnBorder,
|
|
1751
1763
|
class: "block lg:hidden",
|
|
1752
|
-
onHbgClick:
|
|
1764
|
+
onHbgClick: u,
|
|
1753
1765
|
toggle: d.value,
|
|
1754
1766
|
"nav-color": b.bgColor
|
|
1755
1767
|
}, null, 8, ["color", "display-border", "toggle", "nav-color"]),
|
|
1756
|
-
|
|
1757
|
-
|
|
1768
|
+
t["content-right"] ? (g(), h("div", Ee, [
|
|
1769
|
+
B(b.$slots, "content-right", {}, void 0, !0)
|
|
1758
1770
|
])) : T("", !0)
|
|
1759
1771
|
])
|
|
1760
1772
|
]),
|
|
1761
|
-
|
|
1762
|
-
|
|
1773
|
+
y("div", De, [
|
|
1774
|
+
S(G, {
|
|
1763
1775
|
name: "collapse",
|
|
1764
1776
|
onEnter: c,
|
|
1765
|
-
onAfterEnter:
|
|
1766
|
-
onLeave:
|
|
1777
|
+
onAfterEnter: m,
|
|
1778
|
+
onLeave: f
|
|
1767
1779
|
}, {
|
|
1768
|
-
default:
|
|
1769
|
-
d.value ? (
|
|
1780
|
+
default: E(() => [
|
|
1781
|
+
d.value ? (g(), h("div", {
|
|
1770
1782
|
key: 0,
|
|
1771
|
-
class:
|
|
1783
|
+
class: v(["bg-opacity-80 rounded-md my-2xs mx-xs overflow-hidden", R(w)("BGCOLOR", b.mobileMenuBgColor)])
|
|
1772
1784
|
}, [
|
|
1773
|
-
|
|
1774
|
-
|
|
1785
|
+
t["mobile-content"] ? (g(), h("div", Ge, [
|
|
1786
|
+
B(b.$slots, "mobile-content", { headerClose: i }, void 0, !0)
|
|
1775
1787
|
])) : T("", !0)
|
|
1776
1788
|
], 2)) : T("", !0)
|
|
1777
1789
|
]),
|
|
@@ -1780,10 +1792,13 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
1780
1792
|
])
|
|
1781
1793
|
], 2));
|
|
1782
1794
|
}
|
|
1783
|
-
}),
|
|
1795
|
+
}), ht = /* @__PURE__ */ I(Ie, [["__scopeId", "data-v-56d20376"]]), He = { class: "flex flex-col justify-between h-full" }, Ne = { key: 0 }, We = { class: "block lg:hidden relative z-40" }, $e = {
|
|
1796
|
+
key: 0,
|
|
1797
|
+
class: "block fixed lg:hidden top-0 right-0 mr-xs mt-xs z-50"
|
|
1798
|
+
}, Me = {
|
|
1784
1799
|
key: 0,
|
|
1785
1800
|
class: "h-full"
|
|
1786
|
-
},
|
|
1801
|
+
}, Fe = /* @__PURE__ */ A({
|
|
1787
1802
|
__name: "HeaderVertical",
|
|
1788
1803
|
props: {
|
|
1789
1804
|
bgColor: { default: "light-1" },
|
|
@@ -1792,77 +1807,77 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
1792
1807
|
headerWidth: { default: 160 }
|
|
1793
1808
|
},
|
|
1794
1809
|
emits: ["toggle-drawer"],
|
|
1795
|
-
setup(
|
|
1796
|
-
const
|
|
1797
|
-
|
|
1810
|
+
setup(s, { expose: r, emit: e }) {
|
|
1811
|
+
const l = s, t = D(), d = e, a = C(!1), o = (c) => {
|
|
1812
|
+
a.value = !a.value, d("toggle-drawer", c, a.value);
|
|
1798
1813
|
}, i = () => {
|
|
1799
|
-
|
|
1800
|
-
},
|
|
1801
|
-
return
|
|
1814
|
+
a.value = !1;
|
|
1815
|
+
}, u = V(() => ({ "--header-width": `${l.headerWidth}px` }));
|
|
1816
|
+
return F(() => {
|
|
1817
|
+
const c = K(document);
|
|
1818
|
+
L(a, (m) => {
|
|
1819
|
+
c.value = m;
|
|
1820
|
+
});
|
|
1821
|
+
}), r({
|
|
1802
1822
|
headerClose: i
|
|
1803
|
-
}), (c,
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1823
|
+
}), (c, m) => (g(), h("header", {
|
|
1824
|
+
class: "relative",
|
|
1825
|
+
style: X(u.value)
|
|
1826
|
+
}, [
|
|
1827
|
+
y("nav", {
|
|
1828
|
+
class: v(["hidden lg:block lg:sticky lg:top-0 lg:left-0 lg:h-[100vh] py-sm header-desktop overscroll-contain overflow-y-scroll", [R(w)("BGCOLOR", c.bgColor)]])
|
|
1807
1829
|
}, [
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
"nav-color"
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
f("div", Me, [
|
|
1831
|
-
L(D, {
|
|
1830
|
+
y("div", He, [
|
|
1831
|
+
y("div", null, [
|
|
1832
|
+
B(c.$slots, "content", {}, void 0, !0)
|
|
1833
|
+
]),
|
|
1834
|
+
t["content-bottom"] ? (g(), h("div", Ne, [
|
|
1835
|
+
B(c.$slots, "content-bottom", {}, void 0, !0)
|
|
1836
|
+
])) : T("", !0)
|
|
1837
|
+
])
|
|
1838
|
+
], 2),
|
|
1839
|
+
(g(), z(ne, { to: "body" }, [
|
|
1840
|
+
y("div", We, [
|
|
1841
|
+
t["mobile-content"] ? (g(), h("div", $e, [
|
|
1842
|
+
S(ee, {
|
|
1843
|
+
color: c.drawerBtnColor,
|
|
1844
|
+
"display-border": c.drawerBtnBorder,
|
|
1845
|
+
class: "block lg:hidden relative",
|
|
1846
|
+
onHbgClick: o,
|
|
1847
|
+
toggle: a.value,
|
|
1848
|
+
"nav-color": c.bgColor
|
|
1849
|
+
}, null, 8, ["color", "display-border", "toggle", "nav-color"])
|
|
1850
|
+
])) : T("", !0),
|
|
1851
|
+
S(G, {
|
|
1832
1852
|
name: "slide-down",
|
|
1833
1853
|
appear: ""
|
|
1834
1854
|
}, {
|
|
1835
|
-
default:
|
|
1836
|
-
|
|
1855
|
+
default: E(() => [
|
|
1856
|
+
a.value ? (g(), h("nav", {
|
|
1837
1857
|
key: 0,
|
|
1838
|
-
class:
|
|
1858
|
+
class: v(["fixed inset-0 overflow-y-scroll overscroll-contain py-lg px-sm", R(w)("BGCOLOR", c.bgColor)])
|
|
1839
1859
|
}, [
|
|
1840
|
-
|
|
1841
|
-
|
|
1860
|
+
t["mobile-content"] ? (g(), h("div", Me, [
|
|
1861
|
+
B(c.$slots, "mobile-content", { headerClose: i }, void 0, !0)
|
|
1842
1862
|
])) : T("", !0)
|
|
1843
1863
|
], 2)) : T("", !0)
|
|
1844
1864
|
]),
|
|
1845
1865
|
_: 3
|
|
1846
1866
|
})
|
|
1847
1867
|
])
|
|
1848
|
-
]
|
|
1849
|
-
|
|
1850
|
-
k(c.$slots, "default", {}, void 0, !0)
|
|
1851
|
-
])
|
|
1852
|
-
]));
|
|
1868
|
+
]))
|
|
1869
|
+
], 4));
|
|
1853
1870
|
}
|
|
1854
|
-
}),
|
|
1871
|
+
}), pt = /* @__PURE__ */ I(Fe, [["__scopeId", "data-v-c48d5ce1"]]), Xe = ["visible"], ze = {
|
|
1855
1872
|
key: 0,
|
|
1856
1873
|
class: "vertical-placement fixed w-full max-w-md z-[110] px-xs"
|
|
1857
|
-
},
|
|
1874
|
+
}, Pe = {
|
|
1858
1875
|
key: 0,
|
|
1859
1876
|
class: "sticky top-0"
|
|
1860
|
-
},
|
|
1861
|
-
Ue
|
|
1862
|
-
], Je = {
|
|
1877
|
+
}, Ye = {
|
|
1863
1878
|
key: 1,
|
|
1864
1879
|
class: "sticky bottom-0"
|
|
1865
|
-
},
|
|
1880
|
+
}, je = /* @__PURE__ */ A({
|
|
1866
1881
|
__name: "Modal",
|
|
1867
1882
|
props: {
|
|
1868
1883
|
title: {},
|
|
@@ -1876,116 +1891,121 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
1876
1891
|
placement: { default: "center" }
|
|
1877
1892
|
},
|
|
1878
1893
|
emits: ["open", "close"],
|
|
1879
|
-
setup(
|
|
1880
|
-
const
|
|
1894
|
+
setup(s, { expose: r, emit: e }) {
|
|
1895
|
+
const l = s, t = D(), d = e, a = C(), o = C(l.visible), i = C(!1), u = () => {
|
|
1881
1896
|
o.value = !o.value;
|
|
1882
1897
|
}, c = () => {
|
|
1883
1898
|
o.value = !0;
|
|
1884
|
-
},
|
|
1899
|
+
}, m = () => {
|
|
1885
1900
|
i.value === !0 && (o.value = !1);
|
|
1886
|
-
},
|
|
1901
|
+
}, f = () => {
|
|
1887
1902
|
d("open", !0);
|
|
1888
1903
|
}, O = () => {
|
|
1889
1904
|
d("close", !1);
|
|
1890
|
-
}, N =
|
|
1891
|
-
let
|
|
1892
|
-
return
|
|
1905
|
+
}, N = V(() => {
|
|
1906
|
+
let x;
|
|
1907
|
+
return l.placement === "top" ? x = 25 : l.placement === "bottom" ? x = 75 : x = 50, { "--vertical-placement": x + "%" };
|
|
1893
1908
|
}), b = () => {
|
|
1894
1909
|
i.value = !0;
|
|
1895
|
-
},
|
|
1910
|
+
}, p = () => {
|
|
1896
1911
|
i.value = !1;
|
|
1897
1912
|
};
|
|
1898
|
-
return
|
|
1899
|
-
o.value =
|
|
1900
|
-
}),
|
|
1901
|
-
() =>
|
|
1902
|
-
(
|
|
1903
|
-
o.value =
|
|
1913
|
+
return U(a, (x = !1) => {
|
|
1914
|
+
o.value = x;
|
|
1915
|
+
}), L(
|
|
1916
|
+
() => l.visible,
|
|
1917
|
+
(x) => {
|
|
1918
|
+
o.value = x;
|
|
1904
1919
|
}
|
|
1905
|
-
),
|
|
1906
|
-
|
|
1907
|
-
}),
|
|
1908
|
-
|
|
1909
|
-
|
|
1920
|
+
), L(o, (x) => {
|
|
1921
|
+
x === !0 ? f() : x === !1 && i.value === !0 && O();
|
|
1922
|
+
}), F(() => {
|
|
1923
|
+
const x = K(document);
|
|
1924
|
+
L(o, ($) => {
|
|
1925
|
+
x.value = $;
|
|
1926
|
+
});
|
|
1927
|
+
}), r({
|
|
1928
|
+
toggle: u,
|
|
1929
|
+
close: m,
|
|
1910
1930
|
open: c
|
|
1911
|
-
}), (
|
|
1912
|
-
style:
|
|
1931
|
+
}), (x, $) => (g(), h("div", {
|
|
1932
|
+
style: X(N.value),
|
|
1913
1933
|
visible: o.value,
|
|
1914
1934
|
ref_key: "modalRef",
|
|
1915
|
-
ref:
|
|
1935
|
+
ref: a
|
|
1916
1936
|
}, [
|
|
1917
|
-
|
|
1937
|
+
x.noBackdrop ? T("", !0) : (g(), z(G, {
|
|
1918
1938
|
key: 0,
|
|
1919
1939
|
name: "fade",
|
|
1920
1940
|
appear: "",
|
|
1921
1941
|
tag: "div"
|
|
1922
1942
|
}, {
|
|
1923
|
-
default:
|
|
1924
|
-
o.value ? (
|
|
1943
|
+
default: E(() => [
|
|
1944
|
+
o.value ? (g(), h("section", {
|
|
1925
1945
|
key: 0,
|
|
1926
|
-
onClick:
|
|
1927
|
-
class:
|
|
1946
|
+
onClick: m,
|
|
1947
|
+
class: v(["fixed inset-0 overflow-y-auto bg-opacity-70 backdrop-blur z-[100]", R(w)("BGCOLOR", x.backdropColor)])
|
|
1928
1948
|
}, null, 2)) : T("", !0)
|
|
1929
1949
|
]),
|
|
1930
1950
|
_: 1
|
|
1931
1951
|
})),
|
|
1932
|
-
|
|
1952
|
+
S(G, {
|
|
1933
1953
|
name: "slide-down",
|
|
1934
1954
|
tag: "div",
|
|
1935
1955
|
onAfterEnter: b,
|
|
1936
|
-
onAfterLeave:
|
|
1956
|
+
onAfterLeave: p,
|
|
1937
1957
|
appear: ""
|
|
1938
1958
|
}, {
|
|
1939
|
-
default:
|
|
1940
|
-
o.value ? (
|
|
1941
|
-
W((
|
|
1942
|
-
class:
|
|
1959
|
+
default: E(() => [
|
|
1960
|
+
o.value ? (g(), h("div", ze, [
|
|
1961
|
+
W((g(), h("div", {
|
|
1962
|
+
class: v([[R(w)("BGCOLOR", x.color), x.className], "relative overscroll-contain overflow-y-scroll max-h-[80vh] md:max-h-[60vh]"])
|
|
1943
1963
|
}, [
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
close:
|
|
1964
|
+
x.noHeader ? T("", !0) : (g(), h("div", Pe, [
|
|
1965
|
+
B(x.$slots, "header", {
|
|
1966
|
+
close: m,
|
|
1947
1967
|
status: o.value
|
|
1948
1968
|
}, () => [
|
|
1949
|
-
|
|
1950
|
-
class:
|
|
1969
|
+
y("div", {
|
|
1970
|
+
class: v(["flex justify-between items-center p-xs border-b-2", R(w)("BGCOLOR", x.color)])
|
|
1951
1971
|
}, [
|
|
1952
|
-
|
|
1972
|
+
x.title ? (g(), h("h3", {
|
|
1953
1973
|
key: 0,
|
|
1954
|
-
class:
|
|
1955
|
-
},
|
|
1956
|
-
|
|
1957
|
-
(
|
|
1974
|
+
class: v(["h3-md", R(w)("TEXTCOLOR", x.titleColor)])
|
|
1975
|
+
}, Q(x.title), 3)) : T("", !0),
|
|
1976
|
+
y("button", { onClick: m }, [
|
|
1977
|
+
(g(), h("svg", {
|
|
1958
1978
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1959
1979
|
height: "1em",
|
|
1960
1980
|
viewBox: "0 0 384 512",
|
|
1961
|
-
class:
|
|
1962
|
-
},
|
|
1981
|
+
class: v(["hover:opacity-75 focus:opacity-75 transition-opacity duration-300 ease-in h-sm", [R(w)("SVGFILL", x.titleColor)]])
|
|
1982
|
+
}, $[0] || ($[0] = [
|
|
1983
|
+
y("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)
|
|
1984
|
+
]), 2))
|
|
1963
1985
|
])
|
|
1964
1986
|
], 2)
|
|
1965
1987
|
], !0)
|
|
1966
1988
|
])),
|
|
1967
|
-
|
|
1968
|
-
close:
|
|
1989
|
+
B(x.$slots, "body", {
|
|
1990
|
+
close: m,
|
|
1969
1991
|
status: o.value
|
|
1970
1992
|
}, void 0, !0),
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
close:
|
|
1993
|
+
t.footer ? (g(), h("div", Ye, [
|
|
1994
|
+
B(x.$slots, "footer", {
|
|
1995
|
+
close: m,
|
|
1974
1996
|
status: o.value
|
|
1975
1997
|
}, void 0, !0)
|
|
1976
1998
|
])) : T("", !0)
|
|
1977
1999
|
], 2)), [
|
|
1978
|
-
[R(
|
|
2000
|
+
[R(q), m]
|
|
1979
2001
|
])
|
|
1980
2002
|
])) : T("", !0)
|
|
1981
2003
|
]),
|
|
1982
2004
|
_: 3
|
|
1983
2005
|
})
|
|
1984
|
-
], 12,
|
|
2006
|
+
], 12, Xe));
|
|
1985
2007
|
}
|
|
1986
|
-
}),
|
|
1987
|
-
tt
|
|
1988
|
-
], st = { class: "sidebar-body-height" }, at = /* @__PURE__ */ V({
|
|
2008
|
+
}), bt = /* @__PURE__ */ I(je, [["__scopeId", "data-v-1302a12c"]]), Ke = ["visible"], Ue = { class: "sidebar-body-height" }, qe = /* @__PURE__ */ A({
|
|
1989
2009
|
__name: "Sidebar",
|
|
1990
2010
|
props: {
|
|
1991
2011
|
title: {},
|
|
@@ -2000,179 +2020,202 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
2000
2020
|
width: { default: 300 }
|
|
2001
2021
|
},
|
|
2002
2022
|
emits: ["open", "close"],
|
|
2003
|
-
setup(
|
|
2004
|
-
const
|
|
2005
|
-
|
|
2006
|
-
},
|
|
2007
|
-
|
|
2023
|
+
setup(s, { expose: r, emit: e }) {
|
|
2024
|
+
const l = s, t = D(), d = e, a = C(l.visible), o = C(!1), i = C(), u = C(), c = C(), m = () => {
|
|
2025
|
+
a.value = !a.value;
|
|
2026
|
+
}, f = () => {
|
|
2027
|
+
a.value = !0;
|
|
2008
2028
|
}, O = () => {
|
|
2009
|
-
o.value === !0 && (
|
|
2029
|
+
o.value === !0 && (a.value = !1);
|
|
2010
2030
|
}, N = () => {
|
|
2011
2031
|
d("open", !0);
|
|
2012
2032
|
}, b = () => {
|
|
2013
2033
|
d("close", !1);
|
|
2014
|
-
},
|
|
2015
|
-
"--sidebar-width": `${
|
|
2016
|
-
"--header-height":
|
|
2017
|
-
"--footer-height": c.value &&
|
|
2018
|
-
})),
|
|
2034
|
+
}, p = V(() => ({
|
|
2035
|
+
"--sidebar-width": `${l.width}px`,
|
|
2036
|
+
"--header-height": u.value && a.value ? u.value.scrollHeight + "px" : "0px",
|
|
2037
|
+
"--footer-height": c.value && a.value ? c.value.scrollHeight + "px" : "0px"
|
|
2038
|
+
})), _ = V(() => l.placement === "left" ? "sidebar-left" : "sidebar-right"), x = () => {
|
|
2019
2039
|
o.value = !0;
|
|
2020
|
-
},
|
|
2040
|
+
}, $ = () => {
|
|
2021
2041
|
o.value = !1;
|
|
2022
2042
|
};
|
|
2023
|
-
return
|
|
2024
|
-
|
|
2025
|
-
}),
|
|
2026
|
-
() =>
|
|
2027
|
-
(
|
|
2028
|
-
|
|
2043
|
+
return U(i, (k = !1) => {
|
|
2044
|
+
a.value = k;
|
|
2045
|
+
}), L(
|
|
2046
|
+
() => l.visible,
|
|
2047
|
+
(k) => {
|
|
2048
|
+
a.value = k;
|
|
2029
2049
|
}
|
|
2030
|
-
),
|
|
2031
|
-
|
|
2032
|
-
}),
|
|
2033
|
-
|
|
2034
|
-
|
|
2050
|
+
), L(a, (k) => {
|
|
2051
|
+
k === !0 ? N() : k === !1 && o.value === !0 && b();
|
|
2052
|
+
}), F(() => {
|
|
2053
|
+
const k = K(document);
|
|
2054
|
+
L(a, (M) => {
|
|
2055
|
+
k.value = M;
|
|
2056
|
+
});
|
|
2057
|
+
}), r({
|
|
2058
|
+
toggle: m,
|
|
2059
|
+
open: f,
|
|
2035
2060
|
close: O
|
|
2036
|
-
}), (
|
|
2037
|
-
style:
|
|
2038
|
-
visible:
|
|
2061
|
+
}), (k, M) => (g(), h("div", {
|
|
2062
|
+
style: X(p.value),
|
|
2063
|
+
visible: a.value,
|
|
2039
2064
|
ref_key: "sidebarRef",
|
|
2040
2065
|
ref: i
|
|
2041
2066
|
}, [
|
|
2042
|
-
|
|
2067
|
+
k.noBackdrop ? T("", !0) : (g(), z(G, {
|
|
2043
2068
|
key: 0,
|
|
2044
2069
|
name: "fade",
|
|
2045
2070
|
appear: "",
|
|
2046
2071
|
tag: "div"
|
|
2047
2072
|
}, {
|
|
2048
|
-
default:
|
|
2049
|
-
|
|
2073
|
+
default: E(() => [
|
|
2074
|
+
a.value ? (g(), h("section", {
|
|
2050
2075
|
key: 0,
|
|
2051
2076
|
onClick: O,
|
|
2052
|
-
class:
|
|
2077
|
+
class: v(["fixed inset-0 overflow-y-auto bg-opacity-70 backdrop-blur z-[100]", R(w)("BGCOLOR", k.backdropColor)])
|
|
2053
2078
|
}, null, 2)) : T("", !0)
|
|
2054
2079
|
]),
|
|
2055
2080
|
_: 1
|
|
2056
2081
|
})),
|
|
2057
|
-
|
|
2058
|
-
name:
|
|
2059
|
-
onAfterEnter:
|
|
2060
|
-
onAfterLeave:
|
|
2082
|
+
S(G, {
|
|
2083
|
+
name: _.value,
|
|
2084
|
+
onAfterEnter: x,
|
|
2085
|
+
onAfterLeave: $,
|
|
2061
2086
|
appear: ""
|
|
2062
2087
|
}, {
|
|
2063
|
-
default:
|
|
2064
|
-
|
|
2088
|
+
default: E(() => [
|
|
2089
|
+
a.value ? W((g(), h("div", {
|
|
2065
2090
|
key: 0,
|
|
2066
|
-
class:
|
|
2091
|
+
class: v(["sidebar-body fixed h-full overflow-hidden inset-y-0 shadow z-[110]", [k.placement === "left" ? "left-0" : "right-0"]])
|
|
2067
2092
|
}, [
|
|
2068
|
-
|
|
2069
|
-
class:
|
|
2093
|
+
y("div", {
|
|
2094
|
+
class: v(["relative h-full overscroll-contain overflow-y-scroll", [R(w)("BGCOLOR", k.color), k.className]])
|
|
2070
2095
|
}, [
|
|
2071
|
-
|
|
2096
|
+
k.noHeader ? T("", !0) : (g(), h("div", {
|
|
2072
2097
|
key: 0,
|
|
2073
2098
|
class: "sticky top-0 z-10",
|
|
2074
2099
|
ref_key: "headerRef",
|
|
2075
|
-
ref:
|
|
2100
|
+
ref: u
|
|
2076
2101
|
}, [
|
|
2077
|
-
k
|
|
2102
|
+
B(k.$slots, "header", {
|
|
2078
2103
|
close: O,
|
|
2079
|
-
status:
|
|
2104
|
+
status: a.value
|
|
2080
2105
|
}, () => [
|
|
2081
|
-
|
|
2082
|
-
class:
|
|
2106
|
+
y("div", {
|
|
2107
|
+
class: v(["flex justify-between items-center p-xs", R(w)("BGCOLOR", k.color)])
|
|
2083
2108
|
}, [
|
|
2084
|
-
|
|
2109
|
+
k.placement === "right" ? (g(), h("button", {
|
|
2085
2110
|
key: 0,
|
|
2086
|
-
|
|
2087
|
-
},
|
|
2088
|
-
|
|
2089
|
-
(h(), p("svg", {
|
|
2111
|
+
onClick: O
|
|
2112
|
+
}, [
|
|
2113
|
+
(g(), h("svg", {
|
|
2090
2114
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2091
2115
|
height: "1em",
|
|
2092
2116
|
viewBox: "0 0 384 512",
|
|
2093
|
-
class:
|
|
2094
|
-
},
|
|
2095
|
-
|
|
2117
|
+
class: v(["hover:opacity-75 focus:opacity-75 transition-opacity duration-300 ease-in h-sm", [R(w)("SVGFILL", k.titleColor)]])
|
|
2118
|
+
}, M[0] || (M[0] = [
|
|
2119
|
+
y("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)
|
|
2120
|
+
]), 2))
|
|
2121
|
+
])) : T("", !0),
|
|
2122
|
+
k.title ? (g(), h("h3", {
|
|
2123
|
+
key: 1,
|
|
2124
|
+
class: v(["h3-md", R(w)("TEXTCOLOR", k.titleColor)])
|
|
2125
|
+
}, Q(k.title), 3)) : T("", !0),
|
|
2126
|
+
k.placement === "left" ? (g(), h("button", {
|
|
2127
|
+
key: 2,
|
|
2128
|
+
onClick: O
|
|
2129
|
+
}, [
|
|
2130
|
+
(g(), h("svg", {
|
|
2131
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2132
|
+
height: "1em",
|
|
2133
|
+
viewBox: "0 0 384 512",
|
|
2134
|
+
class: v(["hover:opacity-75 focus:opacity-75 transition-opacity duration-300 ease-in h-sm", [R(w)("SVGFILL", k.titleColor)]])
|
|
2135
|
+
}, M[1] || (M[1] = [
|
|
2136
|
+
y("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)
|
|
2137
|
+
]), 2))
|
|
2138
|
+
])) : T("", !0)
|
|
2096
2139
|
], 2)
|
|
2097
2140
|
], !0)
|
|
2098
2141
|
], 512)),
|
|
2099
|
-
|
|
2100
|
-
k
|
|
2142
|
+
y("div", Ue, [
|
|
2143
|
+
B(k.$slots, "body", {
|
|
2101
2144
|
close: O,
|
|
2102
|
-
status:
|
|
2145
|
+
status: a.value
|
|
2103
2146
|
}, void 0, !0)
|
|
2104
2147
|
]),
|
|
2105
|
-
|
|
2148
|
+
t.footer ? (g(), h("div", {
|
|
2106
2149
|
key: 1,
|
|
2107
2150
|
class: "sticky bottom-0",
|
|
2108
2151
|
ref_key: "footerRef",
|
|
2109
2152
|
ref: c
|
|
2110
2153
|
}, [
|
|
2111
|
-
k
|
|
2154
|
+
B(k.$slots, "footer", {
|
|
2112
2155
|
close: O,
|
|
2113
|
-
status:
|
|
2156
|
+
status: a.value
|
|
2114
2157
|
}, void 0, !0)
|
|
2115
2158
|
], 512)) : T("", !0)
|
|
2116
2159
|
], 2)
|
|
2117
2160
|
], 2)), [
|
|
2118
|
-
[R(
|
|
2161
|
+
[R(q), O]
|
|
2119
2162
|
]) : T("", !0)
|
|
2120
2163
|
]),
|
|
2121
2164
|
_: 3
|
|
2122
2165
|
}, 8, ["name"])
|
|
2123
|
-
], 12,
|
|
2166
|
+
], 12, Ke));
|
|
2124
2167
|
}
|
|
2125
|
-
}),
|
|
2168
|
+
}), ft = /* @__PURE__ */ I(qe, [["__scopeId", "data-v-15e6bcbe"]]), te = Symbol(), Je = { class: "container-hts transition-[max-height] duration-300 grid grid-cols-1 grid-rows-1" }, Qe = /* @__PURE__ */ A({
|
|
2126
2169
|
__name: "TabContainer",
|
|
2127
2170
|
props: {
|
|
2128
2171
|
bodyClass: { default: "" },
|
|
2129
2172
|
btnContainerClass: { default: "" },
|
|
2130
2173
|
contentContainerClass: { default: "" }
|
|
2131
2174
|
},
|
|
2132
|
-
setup(
|
|
2133
|
-
|
|
2134
|
-
const e = C(0),
|
|
2135
|
-
|
|
2175
|
+
setup(s, { expose: r }) {
|
|
2176
|
+
D();
|
|
2177
|
+
const e = C(0), l = C(0), t = C("slide-next");
|
|
2178
|
+
Y(te, {
|
|
2136
2179
|
activeTabIdx: e,
|
|
2137
|
-
containerHeight:
|
|
2180
|
+
containerHeight: l,
|
|
2138
2181
|
updateHeight: (i) => {
|
|
2139
|
-
|
|
2182
|
+
l.value = i;
|
|
2140
2183
|
}
|
|
2141
2184
|
});
|
|
2142
|
-
const
|
|
2185
|
+
const a = (i) => {
|
|
2143
2186
|
e.value = i;
|
|
2144
|
-
}, o =
|
|
2145
|
-
return
|
|
2146
|
-
update:
|
|
2147
|
-
}),
|
|
2187
|
+
}, o = V(() => ({ "--container-hts": `${l.value}px` }));
|
|
2188
|
+
return r({
|
|
2189
|
+
update: a
|
|
2190
|
+
}), L(
|
|
2148
2191
|
() => e.value,
|
|
2149
|
-
(i,
|
|
2150
|
-
i >
|
|
2192
|
+
(i, u) => {
|
|
2193
|
+
i > u ? t.value = "slide-next" : t.value = "slide-prev";
|
|
2151
2194
|
}
|
|
2152
|
-
), (i,
|
|
2153
|
-
class:
|
|
2154
|
-
style:
|
|
2195
|
+
), (i, u) => (g(), h("div", {
|
|
2196
|
+
class: v(i.bodyClass),
|
|
2197
|
+
style: X(o.value)
|
|
2155
2198
|
}, [
|
|
2156
|
-
|
|
2157
|
-
class:
|
|
2199
|
+
y("div", {
|
|
2200
|
+
class: v(i.btnContainerClass),
|
|
2158
2201
|
role: "tablist"
|
|
2159
2202
|
}, [
|
|
2160
|
-
|
|
2161
|
-
update:
|
|
2203
|
+
B(i.$slots, "tab-button", {
|
|
2204
|
+
update: a,
|
|
2162
2205
|
activeTab: e.value
|
|
2163
2206
|
}, void 0, !0)
|
|
2164
2207
|
], 2),
|
|
2165
|
-
|
|
2166
|
-
class:
|
|
2208
|
+
y("div", {
|
|
2209
|
+
class: v(i.contentContainerClass)
|
|
2167
2210
|
}, [
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
default:
|
|
2171
|
-
(
|
|
2211
|
+
y("div", Je, [
|
|
2212
|
+
S(G, { name: t.value }, {
|
|
2213
|
+
default: E(() => [
|
|
2214
|
+
(g(), h("div", {
|
|
2172
2215
|
key: e.value,
|
|
2173
2216
|
class: "col-start-1 col-end-1 row-start-1 row-end-1 relative"
|
|
2174
2217
|
}, [
|
|
2175
|
-
|
|
2218
|
+
B(i.$slots, "tab-content", {}, void 0, !0)
|
|
2176
2219
|
]))
|
|
2177
2220
|
]),
|
|
2178
2221
|
_: 3
|
|
@@ -2181,31 +2224,31 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
2181
2224
|
], 2)
|
|
2182
2225
|
], 6));
|
|
2183
2226
|
}
|
|
2184
|
-
}),
|
|
2227
|
+
}), vt = /* @__PURE__ */ I(Qe, [["__scopeId", "data-v-1014eb3f"]]), Ze = ["id"], mt = /* @__PURE__ */ A({
|
|
2185
2228
|
__name: "TabContent",
|
|
2186
2229
|
props: {
|
|
2187
2230
|
tabNumber: {},
|
|
2188
2231
|
id: {},
|
|
2189
2232
|
tabClass: { default: "" }
|
|
2190
2233
|
},
|
|
2191
|
-
setup(
|
|
2192
|
-
const
|
|
2234
|
+
setup(s) {
|
|
2235
|
+
const r = s, { activeTabIdx: e, updateHeight: l } = j(
|
|
2193
2236
|
te
|
|
2194
|
-
),
|
|
2195
|
-
return (o, i) => W((
|
|
2237
|
+
), t = C(null), { height: d } = ue(t), a = V(() => e.value === r.tabNumber ? (l(d.value), !0) : !1);
|
|
2238
|
+
return (o, i) => W((g(), h("div", {
|
|
2196
2239
|
ref_key: "slotRef",
|
|
2197
|
-
ref:
|
|
2240
|
+
ref: t,
|
|
2198
2241
|
id: o.id,
|
|
2199
|
-
class:
|
|
2242
|
+
class: v([o.tabClass, "w-full"]),
|
|
2200
2243
|
role: "tabpanel",
|
|
2201
2244
|
tabindex: "-1"
|
|
2202
2245
|
}, [
|
|
2203
|
-
|
|
2204
|
-
], 10,
|
|
2205
|
-
[
|
|
2246
|
+
B(o.$slots, "default")
|
|
2247
|
+
], 10, Ze)), [
|
|
2248
|
+
[P, a.value]
|
|
2206
2249
|
]);
|
|
2207
2250
|
}
|
|
2208
|
-
}), re = Symbol(),
|
|
2251
|
+
}), re = Symbol(), et = /* @__PURE__ */ A({
|
|
2209
2252
|
__name: "CarouselContainer",
|
|
2210
2253
|
props: {
|
|
2211
2254
|
bodyClass: { default: "" },
|
|
@@ -2214,124 +2257,124 @@ const w = (t, s) => new xe(t, s).generateClass(), ye = { class: "w-full flex jus
|
|
|
2214
2257
|
controllerBottomClass: { default: "" },
|
|
2215
2258
|
loop: { type: Boolean, default: !1 }
|
|
2216
2259
|
},
|
|
2217
|
-
setup(
|
|
2218
|
-
const e =
|
|
2219
|
-
d.value.push(
|
|
2220
|
-
},
|
|
2221
|
-
|
|
2260
|
+
setup(s, { expose: r }) {
|
|
2261
|
+
const e = s, l = D(), t = C(0), d = C([]), a = C(0), o = C("slide-next"), i = (f) => {
|
|
2262
|
+
d.value.push(f), a.value = [...new Set(d.value)].length;
|
|
2263
|
+
}, u = (f) => {
|
|
2264
|
+
t.value = f;
|
|
2222
2265
|
};
|
|
2223
|
-
|
|
2224
|
-
activeIdx:
|
|
2266
|
+
Y(re, {
|
|
2267
|
+
activeIdx: t,
|
|
2225
2268
|
setSlide: i
|
|
2226
2269
|
});
|
|
2227
2270
|
const c = () => {
|
|
2228
|
-
const { loop:
|
|
2229
|
-
|
|
2230
|
-
},
|
|
2231
|
-
const { loop:
|
|
2232
|
-
|
|
2271
|
+
const { loop: f } = e;
|
|
2272
|
+
f && t.value === a.value - 1 ? t.value = 0 : t.value < a.value - 1 && (t.value = t.value + 1);
|
|
2273
|
+
}, m = () => {
|
|
2274
|
+
const { loop: f } = e;
|
|
2275
|
+
f && t.value === 0 ? t.value = a.value - 1 : t.value > 0 && (t.value = t.value - 1);
|
|
2233
2276
|
};
|
|
2234
|
-
return
|
|
2235
|
-
() =>
|
|
2236
|
-
(
|
|
2237
|
-
|
|
2277
|
+
return L(
|
|
2278
|
+
() => t.value,
|
|
2279
|
+
(f, O) => {
|
|
2280
|
+
f > O || f === 0 && O === a.value - 1 ? o.value = "slide-next" : o.value = "slide-prev";
|
|
2238
2281
|
}
|
|
2239
|
-
),
|
|
2240
|
-
numberOfSlides:
|
|
2241
|
-
prev:
|
|
2282
|
+
), r({
|
|
2283
|
+
numberOfSlides: a,
|
|
2284
|
+
prev: m,
|
|
2242
2285
|
next: c,
|
|
2243
|
-
setActive:
|
|
2244
|
-
}), (
|
|
2245
|
-
class:
|
|
2286
|
+
setActive: u
|
|
2287
|
+
}), (f, O) => (g(), h("div", {
|
|
2288
|
+
class: v([f.bodyClass, "relative overflow-x-hidden"])
|
|
2246
2289
|
}, [
|
|
2247
|
-
|
|
2290
|
+
l["controller-top"] ? (g(), h("div", {
|
|
2248
2291
|
key: 0,
|
|
2249
|
-
class:
|
|
2292
|
+
class: v(f.controllerTopClass)
|
|
2250
2293
|
}, [
|
|
2251
|
-
|
|
2294
|
+
B(f.$slots, "controller-top", {
|
|
2252
2295
|
next: c,
|
|
2253
|
-
prev:
|
|
2254
|
-
setActive:
|
|
2255
|
-
activeSlide:
|
|
2256
|
-
numberOfSlides:
|
|
2296
|
+
prev: m,
|
|
2297
|
+
setActive: u,
|
|
2298
|
+
activeSlide: t.value,
|
|
2299
|
+
numberOfSlides: a.value
|
|
2257
2300
|
}, void 0, !0)
|
|
2258
2301
|
], 2)) : T("", !0),
|
|
2259
|
-
|
|
2260
|
-
class:
|
|
2302
|
+
y("div", {
|
|
2303
|
+
class: v(["grid grid-cols-1 grid-rows-1", f.contentContainerClass])
|
|
2261
2304
|
}, [
|
|
2262
|
-
|
|
2263
|
-
default:
|
|
2264
|
-
(
|
|
2265
|
-
key:
|
|
2305
|
+
S(G, { name: o.value }, {
|
|
2306
|
+
default: E(() => [
|
|
2307
|
+
(g(), h("div", {
|
|
2308
|
+
key: t.value,
|
|
2266
2309
|
class: "col-start-1 col-end-1 row-start-1 row-end-1"
|
|
2267
2310
|
}, [
|
|
2268
|
-
|
|
2311
|
+
B(f.$slots, "content", {}, void 0, !0)
|
|
2269
2312
|
]))
|
|
2270
2313
|
]),
|
|
2271
2314
|
_: 3
|
|
2272
2315
|
}, 8, ["name"])
|
|
2273
2316
|
], 2),
|
|
2274
|
-
|
|
2317
|
+
l["controller-bottom"] ? (g(), h("div", {
|
|
2275
2318
|
key: 1,
|
|
2276
|
-
class:
|
|
2319
|
+
class: v(f.controllerBottomClass)
|
|
2277
2320
|
}, [
|
|
2278
|
-
|
|
2321
|
+
B(f.$slots, "controller-bottom", {
|
|
2279
2322
|
next: c,
|
|
2280
|
-
prev:
|
|
2281
|
-
setActive:
|
|
2282
|
-
activeSlide:
|
|
2283
|
-
numberOfSlides:
|
|
2323
|
+
prev: m,
|
|
2324
|
+
setActive: u,
|
|
2325
|
+
activeSlide: t.value,
|
|
2326
|
+
numberOfSlides: a.value
|
|
2284
2327
|
}, void 0, !0)
|
|
2285
2328
|
], 2)) : T("", !0)
|
|
2286
2329
|
], 2));
|
|
2287
2330
|
}
|
|
2288
|
-
}),
|
|
2331
|
+
}), xt = /* @__PURE__ */ I(et, [["__scopeId", "data-v-05e275d0"]]), tt = ["id"], yt = /* @__PURE__ */ A({
|
|
2289
2332
|
__name: "CarouselContent",
|
|
2290
2333
|
props: {
|
|
2291
2334
|
slideNumber: {},
|
|
2292
2335
|
id: {},
|
|
2293
2336
|
slideClass: { default: "" }
|
|
2294
2337
|
},
|
|
2295
|
-
setup(
|
|
2296
|
-
const
|
|
2338
|
+
setup(s) {
|
|
2339
|
+
const r = s, { activeIdx: e, setSlide: l } = j(
|
|
2297
2340
|
re
|
|
2298
|
-
),
|
|
2299
|
-
|
|
2300
|
-
const d =
|
|
2301
|
-
const { slideNumber:
|
|
2302
|
-
return e.value ===
|
|
2341
|
+
), t = C(null);
|
|
2342
|
+
l(r.slideNumber), D();
|
|
2343
|
+
const d = V(() => {
|
|
2344
|
+
const { slideNumber: a } = r;
|
|
2345
|
+
return e.value === a;
|
|
2303
2346
|
});
|
|
2304
|
-
return (
|
|
2347
|
+
return (a, o) => W((g(), h("div", {
|
|
2305
2348
|
ref_key: "slideRef",
|
|
2306
|
-
ref:
|
|
2307
|
-
id:
|
|
2308
|
-
class:
|
|
2349
|
+
ref: t,
|
|
2350
|
+
id: a.id,
|
|
2351
|
+
class: v([a.slideClass, "w-full"]),
|
|
2309
2352
|
role: "tabpanel",
|
|
2310
2353
|
tabindex: "-1"
|
|
2311
2354
|
}, [
|
|
2312
|
-
|
|
2313
|
-
], 10,
|
|
2314
|
-
[
|
|
2355
|
+
B(a.$slots, "default")
|
|
2356
|
+
], 10, tt)), [
|
|
2357
|
+
[P, d.value]
|
|
2315
2358
|
]);
|
|
2316
2359
|
}
|
|
2317
2360
|
});
|
|
2318
2361
|
export {
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2362
|
+
ot as Alert,
|
|
2363
|
+
xt as CarouselContainer,
|
|
2364
|
+
yt as CarouselContent,
|
|
2365
|
+
Te as ClientSideRender,
|
|
2366
|
+
it as Collapse,
|
|
2367
|
+
gt as DropdownContainer,
|
|
2368
|
+
ut as DropdownContent,
|
|
2369
|
+
ht as HeaderHorizontal,
|
|
2370
|
+
pt as HeaderVertical,
|
|
2371
|
+
bt as Modal,
|
|
2372
|
+
ft as Sidebar,
|
|
2373
|
+
vt as TabContainer,
|
|
2374
|
+
mt as TabContent,
|
|
2332
2375
|
w as default,
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2376
|
+
q as vClickOutside,
|
|
2377
|
+
dt as vCollapse,
|
|
2378
|
+
nt as vToggle,
|
|
2379
|
+
ct as vTooltip
|
|
2337
2380
|
};
|