@bobbykim/manguito-theme 0.23.1 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -0
- package/dist/core.cjs +2 -2
- package/dist/core.d.ts +5 -2
- package/dist/core.js +320 -305
- package/dist/mcl-theme.cjs +1 -1
- package/dist/mcl-theme.js +129 -215
- 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(".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-
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var n = (s, r, e) =>
|
|
5
|
-
import { defineComponent as A, useSlots as D, ref 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(".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-37ba23d2]{top:var(--vertical-placement);left:50%;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}.fade-enter-active[data-v-37ba23d2],.fade-leave-active[data-v-37ba23d2]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-37ba23d2],.fade-leave-to[data-v-37ba23d2]{opacity:0}.slide-down-enter-active[data-v-37ba23d2]{animation:slide-down-37ba23d2 .3s ease}.slide-down-leave-active[data-v-37ba23d2]{animation:slide-down-37ba23d2 reverse .3s ease}@keyframes slide-down-37ba23d2{0%{opacity:0;transform:translateY(-100%) translate(-50%)}to{opacity:1;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}}.sidebar-body[data-v-048c4fe4]{width:100%}.sidebar-body-height[data-v-048c4fe4]{min-height:calc(100vh - var(--header-height) - var(--footer-height))}.fade-enter-active[data-v-048c4fe4],.fade-leave-active[data-v-048c4fe4]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-048c4fe4],.fade-leave-to[data-v-048c4fe4]{opacity:0}.sidebar-left-enter-active[data-v-048c4fe4],.sidebar-left-leave-active[data-v-048c4fe4],.sidebar-right-enter-active[data-v-048c4fe4],.sidebar-right-leave-active[data-v-048c4fe4]{transition-property:transform,opacity;transition-duration:.3s;transition-timing-function:linear}.sidebar-left-enter-from[data-v-048c4fe4],.sidebar-left-leave-to[data-v-048c4fe4]{transform:translate(-100%)}.sidebar-right-enter-from[data-v-048c4fe4],.sidebar-right-leave-to[data-v-048c4fe4]{transform:translate(100%)}@media screen and (min-width: 768px){.sidebar-body[data-v-048c4fe4]{width:var(--sidebar-width)}.sidebar-left-enter-from[data-v-048c4fe4],.sidebar-left-leave-to[data-v-048c4fe4]{transform:translate(calc(-1 * var(--sidebar-width)))}.sidebar-right-enter-from[data-v-048c4fe4],.sidebar-right-leave-to[data-v-048c4fe4]{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
|
+
var ae = Object.defineProperty;
|
|
3
|
+
var le = (s, r, e) => r in s ? ae(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
|
|
4
|
+
var n = (s, r, e) => le(s, typeof r != "symbol" ? r + "" : r, e);
|
|
5
|
+
import { defineComponent as A, useSlots as D, ref as k, computed as V, watch as L, openBlock as g, createElementBlock as h, normalizeClass as f, createElementVNode as C, renderSlot as B, createCommentVNode as w, onMounted as F, createVNode as S, unref as R, withCtx as E, Transition as I, withDirectives as M, vShow as P, h as oe, render as Q, provide as Y, withKeys as ie, inject as j, createBlock as z, normalizeStyle as X, vModelCheckbox as ne, Teleport as de, toDisplayString as Z } from "vue";
|
|
6
|
+
import { useMutationObserver as ce, useWindowSize as ge, useWindowScroll as ue, useScrollLock as K, useElementSize as he } from "@vueuse/core";
|
|
7
|
+
class pe {
|
|
8
8
|
constructor() {
|
|
9
9
|
// body text class
|
|
10
10
|
n(this, "bodyText", {
|
|
@@ -28,7 +28,7 @@ class he {
|
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
30
|
}
|
|
31
|
-
class
|
|
31
|
+
class be {
|
|
32
32
|
constructor() {
|
|
33
33
|
// Border width class
|
|
34
34
|
n(this, "borderWidth", {
|
|
@@ -131,7 +131,7 @@ class pe {
|
|
|
131
131
|
});
|
|
132
132
|
}
|
|
133
133
|
}
|
|
134
|
-
class
|
|
134
|
+
class fe {
|
|
135
135
|
constructor() {
|
|
136
136
|
// bg color class
|
|
137
137
|
n(this, "bgColor", {
|
|
@@ -609,7 +609,7 @@ class be {
|
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
class
|
|
612
|
+
class ve {
|
|
613
613
|
constructor() {
|
|
614
614
|
// h1 class
|
|
615
615
|
n(this, "heading1", {
|
|
@@ -641,7 +641,7 @@ class fe {
|
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
class
|
|
644
|
+
class me {
|
|
645
645
|
constructor() {
|
|
646
646
|
// opacity
|
|
647
647
|
n(this, "backgroundOpacity", {
|
|
@@ -670,7 +670,7 @@ class ve {
|
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
class
|
|
673
|
+
class xe {
|
|
674
674
|
constructor() {
|
|
675
675
|
// spacing: margin
|
|
676
676
|
n(this, "margin", {
|
|
@@ -857,53 +857,53 @@ class me {
|
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
|
-
class
|
|
860
|
+
class ye {
|
|
861
861
|
constructor(r) {
|
|
862
862
|
n(this, "classType");
|
|
863
863
|
this.classType = r;
|
|
864
864
|
}
|
|
865
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 r != "string" || !e.test(r) ? !1 :
|
|
867
|
+
return typeof r != "string" || !e.test(r) ? !1 : W.colorType.includes(this.classType);
|
|
868
868
|
}
|
|
869
869
|
validateSpaceType(r) {
|
|
870
870
|
const e = /(0|3xs|2xs|xs|sm|md|lg|xl|2xl|3xl)/;
|
|
871
|
-
return typeof r != "string" || !e.test(r) ? !1 :
|
|
871
|
+
return typeof r != "string" || !e.test(r) ? !1 : W.spacingType.includes(this.classType);
|
|
872
872
|
}
|
|
873
873
|
validateHeadingTextSizeType(r) {
|
|
874
874
|
const e = /(sm|md|lg|xl)/;
|
|
875
|
-
return typeof r != "string" || !e.test(r) ? !1 :
|
|
875
|
+
return typeof r != "string" || !e.test(r) ? !1 : W.headingSizeType.includes(
|
|
876
876
|
this.classType
|
|
877
877
|
);
|
|
878
878
|
}
|
|
879
879
|
validateBodyTextSizeType(r) {
|
|
880
880
|
const e = /(xs|sm|md|lg|xl)/;
|
|
881
|
-
return typeof r != "string" || !e.test(r) ? !1 :
|
|
881
|
+
return typeof r != "string" || !e.test(r) ? !1 : W.textType.includes(this.classType);
|
|
882
882
|
}
|
|
883
883
|
validateFontWeightType(r) {
|
|
884
884
|
const e = /(light|normal|bold)/;
|
|
885
|
-
return typeof r != "string" || !e.test(r) ? !1 :
|
|
885
|
+
return typeof r != "string" || !e.test(r) ? !1 : W.fontWeightType.includes(
|
|
886
886
|
this.classType
|
|
887
887
|
);
|
|
888
888
|
}
|
|
889
889
|
validateOpacityType(r) {
|
|
890
890
|
const e = /\b(0|[1-9]0|100)\b/;
|
|
891
|
-
return typeof r != "number" || !e.test(r.toString()) ? !1 :
|
|
891
|
+
return typeof r != "number" || !e.test(r.toString()) ? !1 : W.scaleType.includes(this.classType);
|
|
892
892
|
}
|
|
893
893
|
validateRangeType(r) {
|
|
894
894
|
const e = /\b([1-9]|1[0-2])\b/;
|
|
895
|
-
return typeof r != "number" || !e.test(r.toString()) ? !1 :
|
|
895
|
+
return typeof r != "number" || !e.test(r.toString()) ? !1 : W.borderWidthType.includes(
|
|
896
896
|
this.classType
|
|
897
897
|
);
|
|
898
898
|
}
|
|
899
899
|
validateAlignment(r) {
|
|
900
900
|
const e = /(left|center|right)/;
|
|
901
|
-
return typeof r != "string" || !e.test(r) ? !1 :
|
|
901
|
+
return typeof r != "string" || !e.test(r) ? !1 : W.textAlignType.includes(
|
|
902
902
|
this.classType
|
|
903
903
|
);
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
|
-
const
|
|
906
|
+
const W = {
|
|
907
907
|
colorType: [
|
|
908
908
|
"BGCOLOR",
|
|
909
909
|
"BEFOREBG",
|
|
@@ -962,7 +962,7 @@ const H = {
|
|
|
962
962
|
"GAP"
|
|
963
963
|
]
|
|
964
964
|
};
|
|
965
|
-
class
|
|
965
|
+
class Ce {
|
|
966
966
|
constructor(r, e) {
|
|
967
967
|
n(this, "classType");
|
|
968
968
|
n(this, "classValue");
|
|
@@ -973,7 +973,7 @@ class ye {
|
|
|
973
973
|
n(this, "spacingClass");
|
|
974
974
|
n(this, "textClass");
|
|
975
975
|
n(this, "validator");
|
|
976
|
-
this.classType = r, this.classValue = e, this.colorClass = new
|
|
976
|
+
this.classType = r, this.classValue = e, this.colorClass = new fe(), this.headingSizeClass = new ve(), this.borderWidthClass = new be(), this.opacityClass = new me(), this.spacingClass = new xe(), this.textClass = new pe(), this.validator = new ye(r);
|
|
977
977
|
}
|
|
978
978
|
generateClass() {
|
|
979
979
|
switch (this.classType) {
|
|
@@ -1284,7 +1284,7 @@ class ye {
|
|
|
1284
1284
|
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.gap[this.classValue] : " ";
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
|
-
const
|
|
1287
|
+
const T = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex justify-between gap-2xs" }, we = { class: "w-full" }, lt = /* @__PURE__ */ A({
|
|
1288
1288
|
__name: "Alert",
|
|
1289
1289
|
props: {
|
|
1290
1290
|
color: { default: "danger" },
|
|
@@ -1297,9 +1297,9 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1297
1297
|
setup(s, { expose: r, emit: e }) {
|
|
1298
1298
|
const l = s;
|
|
1299
1299
|
D();
|
|
1300
|
-
const t = e, d =
|
|
1301
|
-
const { color: u, rounded: c, shadow:
|
|
1302
|
-
return c &&
|
|
1300
|
+
const t = e, d = k(l.show), a = V(() => {
|
|
1301
|
+
const { color: u, rounded: c, shadow: x } = l, v = [T("BGCOLOR", u)];
|
|
1302
|
+
return c && v.push("rounded-md"), x && v.push("drop-shadow-md"), v.join(" ");
|
|
1303
1303
|
}), o = (u) => {
|
|
1304
1304
|
d.value = !1, t("close", u);
|
|
1305
1305
|
}, i = () => {
|
|
@@ -1317,10 +1317,10 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1317
1317
|
role: "alert",
|
|
1318
1318
|
"aria-live": "polite",
|
|
1319
1319
|
"aria-atomic": "true",
|
|
1320
|
-
class:
|
|
1320
|
+
class: f(["py-[0.75rem] px-[1.25rem] relative", [a.value]])
|
|
1321
1321
|
}, [
|
|
1322
|
-
|
|
1323
|
-
|
|
1322
|
+
C("div", ke, [
|
|
1323
|
+
C("div", we, [
|
|
1324
1324
|
B(u.$slots, "default")
|
|
1325
1325
|
]),
|
|
1326
1326
|
u.dismissible ? (g(), h("button", {
|
|
@@ -1328,19 +1328,19 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1328
1328
|
onClick: o,
|
|
1329
1329
|
class: "flex items-center opacity-60 hover:opacity-40 transition-opacity duration-300 ease-linear"
|
|
1330
1330
|
}, c[0] || (c[0] = [
|
|
1331
|
-
|
|
1331
|
+
C("svg", {
|
|
1332
1332
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1333
1333
|
viewBox: "0 0 384 512",
|
|
1334
1334
|
fill: "currentColor",
|
|
1335
1335
|
class: "h-xs"
|
|
1336
1336
|
}, [
|
|
1337
|
-
|
|
1337
|
+
C("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
1338
|
], -1)
|
|
1339
|
-
]))) :
|
|
1339
|
+
]))) : w("", !0)
|
|
1340
1340
|
])
|
|
1341
|
-
], 2)) :
|
|
1341
|
+
], 2)) : w("", !0);
|
|
1342
1342
|
}
|
|
1343
|
-
}), U = (s, r) =>
|
|
1343
|
+
}), U = (s, r) => ce(
|
|
1344
1344
|
s,
|
|
1345
1345
|
(e) => {
|
|
1346
1346
|
let l = !1;
|
|
@@ -1355,12 +1355,12 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1355
1355
|
{ attributes: !0 }
|
|
1356
1356
|
), Te = A({
|
|
1357
1357
|
setup(s, { slots: r }) {
|
|
1358
|
-
const e =
|
|
1358
|
+
const e = k(!1);
|
|
1359
1359
|
return F(() => {
|
|
1360
1360
|
e.value = !0;
|
|
1361
1361
|
}), () => e.value && r.default ? r.default() : null;
|
|
1362
1362
|
}
|
|
1363
|
-
}),
|
|
1363
|
+
}), Be = ["accordion", "visible"], Re = /* @__PURE__ */ A({
|
|
1364
1364
|
__name: "Collapse",
|
|
1365
1365
|
props: {
|
|
1366
1366
|
accordion: {},
|
|
@@ -1371,7 +1371,7 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1371
1371
|
setup(s, { expose: r, emit: e }) {
|
|
1372
1372
|
const l = s;
|
|
1373
1373
|
D();
|
|
1374
|
-
const t = e, d =
|
|
1374
|
+
const t = e, d = k(), a = k(l.visible), o = () => {
|
|
1375
1375
|
a.value = !a.value;
|
|
1376
1376
|
}, i = () => {
|
|
1377
1377
|
a.value = !0;
|
|
@@ -1379,15 +1379,15 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1379
1379
|
a.value = !1;
|
|
1380
1380
|
}, c = () => {
|
|
1381
1381
|
t("open", !0);
|
|
1382
|
-
},
|
|
1382
|
+
}, x = () => {
|
|
1383
1383
|
t("close", !1);
|
|
1384
|
-
},
|
|
1384
|
+
}, v = (p) => {
|
|
1385
1385
|
p.style.height = "auto", p.style.opacity = "0";
|
|
1386
1386
|
const _ = getComputedStyle(p).height;
|
|
1387
1387
|
p.style.height = "0px", p.offsetHeight, p.style.height = _, p.style.opacity = "1";
|
|
1388
1388
|
}, O = (p) => {
|
|
1389
1389
|
p.style.height = "auto", p.style.opacity = "1";
|
|
1390
|
-
},
|
|
1390
|
+
}, $ = (p) => {
|
|
1391
1391
|
p.style.height = getComputedStyle(p).height, p.offsetHeight, p.style.height = "0px", p.style.opacity = "0";
|
|
1392
1392
|
};
|
|
1393
1393
|
return U(d, (p = !1) => {
|
|
@@ -1398,7 +1398,7 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1398
1398
|
a.value = p;
|
|
1399
1399
|
}
|
|
1400
1400
|
), L(a, (p) => {
|
|
1401
|
-
p === !0 ? c() : p === !1 &&
|
|
1401
|
+
p === !0 ? c() : p === !1 && x();
|
|
1402
1402
|
}), r({
|
|
1403
1403
|
toggle: o,
|
|
1404
1404
|
close: u,
|
|
@@ -1411,18 +1411,18 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1411
1411
|
}, [
|
|
1412
1412
|
S(R(Te), null, {
|
|
1413
1413
|
default: E(() => [
|
|
1414
|
-
S(
|
|
1414
|
+
S(I, {
|
|
1415
1415
|
name: "collapse",
|
|
1416
1416
|
tag: "div",
|
|
1417
|
-
onEnter:
|
|
1417
|
+
onEnter: v,
|
|
1418
1418
|
onAfterEnter: O,
|
|
1419
|
-
onLeave:
|
|
1419
|
+
onLeave: $,
|
|
1420
1420
|
class: "overflow-y-clip"
|
|
1421
1421
|
}, {
|
|
1422
1422
|
default: E(() => [
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
class:
|
|
1423
|
+
M(C("div", null, [
|
|
1424
|
+
C("div", {
|
|
1425
|
+
class: f(p.className)
|
|
1426
1426
|
}, [
|
|
1427
1427
|
B(p.$slots, "default", {}, void 0, !0)
|
|
1428
1428
|
], 2)
|
|
@@ -1435,14 +1435,14 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1435
1435
|
]),
|
|
1436
1436
|
_: 3
|
|
1437
1437
|
})
|
|
1438
|
-
], 8,
|
|
1438
|
+
], 8, Be));
|
|
1439
1439
|
}
|
|
1440
|
-
}),
|
|
1440
|
+
}), N = (s, r) => {
|
|
1441
1441
|
const e = s.__vccOpts || s;
|
|
1442
1442
|
for (const [l, t] of r)
|
|
1443
1443
|
e[l] = t;
|
|
1444
1444
|
return e;
|
|
1445
|
-
},
|
|
1445
|
+
}, ot = /* @__PURE__ */ N(Re, [["__scopeId", "data-v-5d535dc4"]]), Oe = A({
|
|
1446
1446
|
props: {
|
|
1447
1447
|
direction: {
|
|
1448
1448
|
type: String,
|
|
@@ -1473,8 +1473,8 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1473
1473
|
const r = "invisible opacity-0 group-hover:visible group-hover:opacity-100 z-[100] tooltip", e = V(() => {
|
|
1474
1474
|
const { color: d, textColor: a } = s;
|
|
1475
1475
|
return [
|
|
1476
|
-
|
|
1477
|
-
|
|
1476
|
+
T("BGCOLOR", d),
|
|
1477
|
+
T("TEXTCOLOR", a)
|
|
1478
1478
|
].join(" ");
|
|
1479
1479
|
}), l = V(() => ({ width: `${s.width}px` })), t = V(() => {
|
|
1480
1480
|
switch (s.direction) {
|
|
@@ -1488,7 +1488,7 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1488
1488
|
return "tooltip-right";
|
|
1489
1489
|
}
|
|
1490
1490
|
});
|
|
1491
|
-
return () =>
|
|
1491
|
+
return () => oe("div", {
|
|
1492
1492
|
class: [
|
|
1493
1493
|
r,
|
|
1494
1494
|
s.customClass,
|
|
@@ -1509,7 +1509,7 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1509
1509
|
unmounted(s) {
|
|
1510
1510
|
document.body.removeEventListener("click", s.__ClickOutsideHandler);
|
|
1511
1511
|
}
|
|
1512
|
-
},
|
|
1512
|
+
}, it = {
|
|
1513
1513
|
mounted(s, r) {
|
|
1514
1514
|
s.__ClickToggleHandler = (e) => {
|
|
1515
1515
|
e.preventDefault();
|
|
@@ -1529,7 +1529,7 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1529
1529
|
unmounted(s) {
|
|
1530
1530
|
s.removeEventListener("click", s.__ClickToggleHandler);
|
|
1531
1531
|
}
|
|
1532
|
-
},
|
|
1532
|
+
}, nt = {
|
|
1533
1533
|
mounted(s, r) {
|
|
1534
1534
|
s.__HandleToggler = (e) => {
|
|
1535
1535
|
e.preventDefault();
|
|
@@ -1562,7 +1562,7 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1562
1562
|
unmounted(s) {
|
|
1563
1563
|
s.removeEventListener("click", s.__HandleToggler);
|
|
1564
1564
|
}
|
|
1565
|
-
},
|
|
1565
|
+
}, dt = {
|
|
1566
1566
|
mounted(s, r) {
|
|
1567
1567
|
s.__HandleTooltip = (e, l) => {
|
|
1568
1568
|
e.classList.add("relative", "group", "overflow-visible");
|
|
@@ -1579,7 +1579,7 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1579
1579
|
let u;
|
|
1580
1580
|
const c = Object.keys(l.modifiers);
|
|
1581
1581
|
c.length > 0 && (u = c[0]);
|
|
1582
|
-
const
|
|
1582
|
+
const x = S(Oe, {
|
|
1583
1583
|
direction: u,
|
|
1584
1584
|
title: t,
|
|
1585
1585
|
color: d,
|
|
@@ -1587,9 +1587,9 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1587
1587
|
width: o,
|
|
1588
1588
|
customClass: i
|
|
1589
1589
|
});
|
|
1590
|
-
|
|
1590
|
+
Q(x, e);
|
|
1591
1591
|
}, s.__UnmountTooltip = (e) => {
|
|
1592
|
-
|
|
1592
|
+
Q(null, e);
|
|
1593
1593
|
}, s.__HandleTooltip(s, r);
|
|
1594
1594
|
},
|
|
1595
1595
|
updated(s, r) {
|
|
@@ -1598,13 +1598,13 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1598
1598
|
unmounted(s) {
|
|
1599
1599
|
s.__UnmountTooltip(s);
|
|
1600
1600
|
}
|
|
1601
|
-
},
|
|
1601
|
+
}, ee = Symbol(), ct = /* @__PURE__ */ A({
|
|
1602
1602
|
__name: "DropdownContainer",
|
|
1603
1603
|
emits: ["click-outside", "toggle"],
|
|
1604
1604
|
setup(s, { emit: r }) {
|
|
1605
1605
|
D();
|
|
1606
|
-
const e = r, l =
|
|
1607
|
-
Y(
|
|
1606
|
+
const e = r, l = k(), t = k(!1), d = k(0);
|
|
1607
|
+
Y(ee, {
|
|
1608
1608
|
active: t,
|
|
1609
1609
|
buttonHeight: d,
|
|
1610
1610
|
closeDropdown: () => {
|
|
@@ -1620,11 +1620,11 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1620
1620
|
};
|
|
1621
1621
|
return F(() => {
|
|
1622
1622
|
d.value = l.value.scrollHeight;
|
|
1623
|
-
}), (c,
|
|
1623
|
+
}), (c, x) => M((g(), h("div", {
|
|
1624
1624
|
class: "relative",
|
|
1625
1625
|
ref_key: "dropdownTarget",
|
|
1626
1626
|
ref: l,
|
|
1627
|
-
onKeyup:
|
|
1627
|
+
onKeyup: ie(u, ["esc"])
|
|
1628
1628
|
}, [
|
|
1629
1629
|
B(c.$slots, "toggler", {
|
|
1630
1630
|
toggle: o,
|
|
@@ -1635,36 +1635,36 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1635
1635
|
[R(q), i]
|
|
1636
1636
|
]);
|
|
1637
1637
|
}
|
|
1638
|
-
}),
|
|
1638
|
+
}), Ve = /* @__PURE__ */ A({
|
|
1639
1639
|
__name: "DropdownContent",
|
|
1640
1640
|
props: {
|
|
1641
1641
|
className: { default: "" }
|
|
1642
1642
|
},
|
|
1643
1643
|
setup(s) {
|
|
1644
|
-
const { height: r } =
|
|
1644
|
+
const { height: r } = ge();
|
|
1645
1645
|
D();
|
|
1646
|
-
const e =
|
|
1647
|
-
|
|
1646
|
+
const e = k(), { active: l, buttonHeight: t, closeDropdown: d } = j(
|
|
1647
|
+
ee
|
|
1648
1648
|
), a = V(() => ({ "--button-height": `${t}px` })), o = V(() => {
|
|
1649
1649
|
if (!(!l || !e.value) && r.value - e.value.getBoundingClientRect().bottom < 0)
|
|
1650
1650
|
return "dropup-bottom";
|
|
1651
1651
|
});
|
|
1652
|
-
return (i, u) => (g(), z(
|
|
1652
|
+
return (i, u) => (g(), z(I, { name: "dropdown-content" }, {
|
|
1653
1653
|
default: E(() => [
|
|
1654
1654
|
R(l) ? (g(), h("div", {
|
|
1655
1655
|
key: 0,
|
|
1656
1656
|
ref_key: "contentRef",
|
|
1657
1657
|
ref: e,
|
|
1658
|
-
class:
|
|
1658
|
+
class: f(["absolute my-2xs max-w-[14rem] w-max overflow-hidden", [o.value, i.className]]),
|
|
1659
1659
|
style: X(a.value)
|
|
1660
1660
|
}, [
|
|
1661
1661
|
B(i.$slots, "default", { itemClick: R(d) }, void 0, !0)
|
|
1662
|
-
], 6)) :
|
|
1662
|
+
], 6)) : w("", !0)
|
|
1663
1663
|
]),
|
|
1664
1664
|
_: 3
|
|
1665
1665
|
}));
|
|
1666
1666
|
}
|
|
1667
|
-
}),
|
|
1667
|
+
}), gt = /* @__PURE__ */ N(Ve, [["__scopeId", "data-v-85c54efe"]]), Ae = ["aria-label", "aria-expanded"], _e = /* @__PURE__ */ A({
|
|
1668
1668
|
__name: "NavDrawer",
|
|
1669
1669
|
props: {
|
|
1670
1670
|
color: { default: "dark-2" },
|
|
@@ -1684,38 +1684,38 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1684
1684
|
return i;
|
|
1685
1685
|
}
|
|
1686
1686
|
}), a = (i, u, c) => {
|
|
1687
|
-
const
|
|
1688
|
-
|
|
1689
|
-
|
|
1687
|
+
const x = [
|
|
1688
|
+
T("RINGCOLOR", i),
|
|
1689
|
+
T("OFFSETRING", c)
|
|
1690
1690
|
];
|
|
1691
|
-
return u && (
|
|
1691
|
+
return u && (x.push(T("BORDER", i)), x.push("border")), x.join(" ");
|
|
1692
1692
|
}, o = (i) => [
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1693
|
+
T("BGCOLOR", i),
|
|
1694
|
+
T("BEFOREBG", i),
|
|
1695
|
+
T("AFTERBG", i)
|
|
1696
1696
|
].join(" ");
|
|
1697
1697
|
return (i, u) => (g(), h("button", {
|
|
1698
|
-
class:
|
|
1698
|
+
class: f(["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
1699
|
onClick: t,
|
|
1700
1700
|
"aria-label": i.toggle ? "Close" : "Open",
|
|
1701
1701
|
"aria-expanded": i.toggle
|
|
1702
1702
|
}, [
|
|
1703
|
-
|
|
1703
|
+
M(C("input", {
|
|
1704
1704
|
type: "checkbox",
|
|
1705
1705
|
"onUpdate:modelValue": u[0] || (u[0] = (c) => d.value = c),
|
|
1706
1706
|
class: "hidden hamburger__checkbox"
|
|
1707
1707
|
}, null, 512), [
|
|
1708
|
-
[
|
|
1708
|
+
[ne, d.value]
|
|
1709
1709
|
]),
|
|
1710
|
-
|
|
1711
|
-
class:
|
|
1710
|
+
C("div", {
|
|
1711
|
+
class: f(["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)])
|
|
1712
1712
|
}, null, 2)
|
|
1713
|
-
], 10,
|
|
1713
|
+
], 10, Ae));
|
|
1714
1714
|
}
|
|
1715
|
-
}),
|
|
1715
|
+
}), te = /* @__PURE__ */ N(_e, [["__scopeId", "data-v-1b9c33a1"]]), Le = { 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]" }, Se = { class: "min-h-[24px]" }, Ee = { class: "ml-auto" }, De = {
|
|
1716
1716
|
key: 0,
|
|
1717
1717
|
class: "hidden lg:block"
|
|
1718
|
-
},
|
|
1718
|
+
}, Ge = { class: "overflow-hidden lg:hidden" }, Ie = { key: 0 }, He = /* @__PURE__ */ A({
|
|
1719
1719
|
__name: "HeaderHorizontal",
|
|
1720
1720
|
props: {
|
|
1721
1721
|
bgColor: { default: "light-1" },
|
|
@@ -1728,7 +1728,7 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1728
1728
|
},
|
|
1729
1729
|
emits: ["toggle-drawer"],
|
|
1730
1730
|
setup(s, { expose: r, emit: e }) {
|
|
1731
|
-
const l = s, t = D(), d =
|
|
1731
|
+
const l = s, t = D(), d = k(!1), { y: a } = ue(), o = e, i = () => {
|
|
1732
1732
|
d.value = !1;
|
|
1733
1733
|
}, u = (b) => {
|
|
1734
1734
|
d.value = !d.value, o("toggle-drawer", b, d.value);
|
|
@@ -1736,28 +1736,28 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1736
1736
|
b.style.height = "auto";
|
|
1737
1737
|
const p = getComputedStyle(b).height;
|
|
1738
1738
|
b.style.height = "0px", b.offsetHeight, b.style.height = p;
|
|
1739
|
-
},
|
|
1739
|
+
}, x = (b) => {
|
|
1740
1740
|
b.style.height = "auto";
|
|
1741
|
-
},
|
|
1741
|
+
}, v = (b) => {
|
|
1742
1742
|
b.style.height = getComputedStyle(b).height, b.offsetHeight, b.style.height = "0px";
|
|
1743
1743
|
}, O = V(() => {
|
|
1744
|
-
const { bgColor: b, sticky: p } = l, _ = [
|
|
1744
|
+
const { bgColor: b, sticky: p } = l, _ = [T("BGCOLOR", b)];
|
|
1745
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
|
-
}),
|
|
1746
|
+
}), $ = V(() => {
|
|
1747
1747
|
const { fadeInOnScroll: b, scrollDistance: p } = l;
|
|
1748
1748
|
return b ? a.value >= p ? "lg:shadow-md bg-opacity-70" : "bg-opacity-100" : "";
|
|
1749
1749
|
});
|
|
1750
1750
|
return r({
|
|
1751
1751
|
headerClose: i
|
|
1752
1752
|
}), (b, p) => (g(), h("header", {
|
|
1753
|
-
class:
|
|
1753
|
+
class: f(["w-full items-center z-50 transition ease-in duration-500 delay-150", [$.value, O.value]])
|
|
1754
1754
|
}, [
|
|
1755
|
-
|
|
1756
|
-
|
|
1755
|
+
C("nav", Le, [
|
|
1756
|
+
C("div", Se, [
|
|
1757
1757
|
B(b.$slots, "content", {}, void 0, !0)
|
|
1758
1758
|
]),
|
|
1759
|
-
|
|
1760
|
-
S(
|
|
1759
|
+
C("div", Ee, [
|
|
1760
|
+
S(te, {
|
|
1761
1761
|
color: b.drawerBtnColor,
|
|
1762
1762
|
"display-border": b.drawerBtnBorder,
|
|
1763
1763
|
class: "block lg:hidden",
|
|
@@ -1765,40 +1765,40 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1765
1765
|
toggle: d.value,
|
|
1766
1766
|
"nav-color": b.bgColor
|
|
1767
1767
|
}, null, 8, ["color", "display-border", "toggle", "nav-color"]),
|
|
1768
|
-
t["content-right"] ? (g(), h("div",
|
|
1768
|
+
t["content-right"] ? (g(), h("div", De, [
|
|
1769
1769
|
B(b.$slots, "content-right", {}, void 0, !0)
|
|
1770
|
-
])) :
|
|
1770
|
+
])) : w("", !0)
|
|
1771
1771
|
])
|
|
1772
1772
|
]),
|
|
1773
|
-
|
|
1774
|
-
S(
|
|
1773
|
+
C("div", Ge, [
|
|
1774
|
+
S(I, {
|
|
1775
1775
|
name: "collapse",
|
|
1776
1776
|
onEnter: c,
|
|
1777
|
-
onAfterEnter:
|
|
1778
|
-
onLeave:
|
|
1777
|
+
onAfterEnter: x,
|
|
1778
|
+
onLeave: v
|
|
1779
1779
|
}, {
|
|
1780
1780
|
default: E(() => [
|
|
1781
1781
|
d.value ? (g(), h("div", {
|
|
1782
1782
|
key: 0,
|
|
1783
|
-
class:
|
|
1783
|
+
class: f(["bg-opacity-80 rounded-md my-2xs mx-xs overflow-hidden", R(T)("BGCOLOR", b.mobileMenuBgColor)])
|
|
1784
1784
|
}, [
|
|
1785
|
-
t["mobile-content"] ? (g(), h("div",
|
|
1785
|
+
t["mobile-content"] ? (g(), h("div", Ie, [
|
|
1786
1786
|
B(b.$slots, "mobile-content", { headerClose: i }, void 0, !0)
|
|
1787
|
-
])) :
|
|
1788
|
-
], 2)) :
|
|
1787
|
+
])) : w("", !0)
|
|
1788
|
+
], 2)) : w("", !0)
|
|
1789
1789
|
]),
|
|
1790
1790
|
_: 3
|
|
1791
1791
|
})
|
|
1792
1792
|
])
|
|
1793
1793
|
], 2));
|
|
1794
1794
|
}
|
|
1795
|
-
}),
|
|
1795
|
+
}), ut = /* @__PURE__ */ N(He, [["__scopeId", "data-v-56d20376"]]), Ne = { class: "flex flex-col justify-between h-full" }, We = { key: 0 }, $e = { class: "block lg:hidden relative z-40" }, Me = {
|
|
1796
1796
|
key: 0,
|
|
1797
1797
|
class: "block fixed lg:hidden top-0 right-0 mr-xs mt-xs z-50"
|
|
1798
|
-
},
|
|
1798
|
+
}, Fe = {
|
|
1799
1799
|
key: 0,
|
|
1800
1800
|
class: "h-full"
|
|
1801
|
-
},
|
|
1801
|
+
}, Xe = /* @__PURE__ */ A({
|
|
1802
1802
|
__name: "HeaderVertical",
|
|
1803
1803
|
props: {
|
|
1804
1804
|
bgColor: { default: "light-1" },
|
|
@@ -1808,38 +1808,38 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1808
1808
|
},
|
|
1809
1809
|
emits: ["toggle-drawer"],
|
|
1810
1810
|
setup(s, { expose: r, emit: e }) {
|
|
1811
|
-
const l = s, t = D(), d = e, a =
|
|
1811
|
+
const l = s, t = D(), d = e, a = k(!1), o = (c) => {
|
|
1812
1812
|
a.value = !a.value, d("toggle-drawer", c, a.value);
|
|
1813
1813
|
}, i = () => {
|
|
1814
1814
|
a.value = !1;
|
|
1815
1815
|
}, u = V(() => ({ "--header-width": `${l.headerWidth}px` }));
|
|
1816
1816
|
return F(() => {
|
|
1817
1817
|
const c = K(document);
|
|
1818
|
-
L(a, (
|
|
1819
|
-
c.value =
|
|
1818
|
+
L(a, (x) => {
|
|
1819
|
+
c.value = x;
|
|
1820
1820
|
});
|
|
1821
1821
|
}), r({
|
|
1822
1822
|
headerClose: i
|
|
1823
|
-
}), (c,
|
|
1823
|
+
}), (c, x) => (g(), h("header", {
|
|
1824
1824
|
class: "relative",
|
|
1825
1825
|
style: X(u.value)
|
|
1826
1826
|
}, [
|
|
1827
|
-
|
|
1828
|
-
class:
|
|
1827
|
+
C("nav", {
|
|
1828
|
+
class: f(["hidden lg:block lg:sticky lg:top-0 lg:left-0 lg:h-[100vh] py-sm header-desktop overscroll-contain overflow-y-scroll", [R(T)("BGCOLOR", c.bgColor)]])
|
|
1829
1829
|
}, [
|
|
1830
|
-
|
|
1831
|
-
|
|
1830
|
+
C("div", Ne, [
|
|
1831
|
+
C("div", null, [
|
|
1832
1832
|
B(c.$slots, "content", {}, void 0, !0)
|
|
1833
1833
|
]),
|
|
1834
|
-
t["content-bottom"] ? (g(), h("div",
|
|
1834
|
+
t["content-bottom"] ? (g(), h("div", We, [
|
|
1835
1835
|
B(c.$slots, "content-bottom", {}, void 0, !0)
|
|
1836
|
-
])) :
|
|
1836
|
+
])) : w("", !0)
|
|
1837
1837
|
])
|
|
1838
1838
|
], 2),
|
|
1839
|
-
(g(), z(
|
|
1840
|
-
|
|
1841
|
-
t["mobile-content"] ? (g(), h("div",
|
|
1842
|
-
S(
|
|
1839
|
+
(g(), z(de, { to: "body" }, [
|
|
1840
|
+
C("div", $e, [
|
|
1841
|
+
t["mobile-content"] ? (g(), h("div", Me, [
|
|
1842
|
+
S(te, {
|
|
1843
1843
|
color: c.drawerBtnColor,
|
|
1844
1844
|
"display-border": c.drawerBtnBorder,
|
|
1845
1845
|
class: "block lg:hidden relative",
|
|
@@ -1847,20 +1847,20 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1847
1847
|
toggle: a.value,
|
|
1848
1848
|
"nav-color": c.bgColor
|
|
1849
1849
|
}, null, 8, ["color", "display-border", "toggle", "nav-color"])
|
|
1850
|
-
])) :
|
|
1851
|
-
S(
|
|
1850
|
+
])) : w("", !0),
|
|
1851
|
+
S(I, {
|
|
1852
1852
|
name: "slide-down",
|
|
1853
1853
|
appear: ""
|
|
1854
1854
|
}, {
|
|
1855
1855
|
default: E(() => [
|
|
1856
1856
|
a.value ? (g(), h("nav", {
|
|
1857
1857
|
key: 0,
|
|
1858
|
-
class:
|
|
1858
|
+
class: f(["fixed inset-0 overflow-y-scroll overscroll-contain py-lg px-sm", R(T)("BGCOLOR", c.bgColor)])
|
|
1859
1859
|
}, [
|
|
1860
|
-
t["mobile-content"] ? (g(), h("div",
|
|
1860
|
+
t["mobile-content"] ? (g(), h("div", Fe, [
|
|
1861
1861
|
B(c.$slots, "mobile-content", { headerClose: i }, void 0, !0)
|
|
1862
|
-
])) :
|
|
1863
|
-
], 2)) :
|
|
1862
|
+
])) : w("", !0)
|
|
1863
|
+
], 2)) : w("", !0)
|
|
1864
1864
|
]),
|
|
1865
1865
|
_: 3
|
|
1866
1866
|
})
|
|
@@ -1868,10 +1868,7 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1868
1868
|
]))
|
|
1869
1869
|
], 4));
|
|
1870
1870
|
}
|
|
1871
|
-
}),
|
|
1872
|
-
key: 0,
|
|
1873
|
-
class: "vertical-placement fixed w-full max-w-md z-[110] px-xs"
|
|
1874
|
-
}, Pe = {
|
|
1871
|
+
}), ht = /* @__PURE__ */ N(Xe, [["__scopeId", "data-v-c48d5ce1"]]), ze = ["visible"], Pe = {
|
|
1875
1872
|
key: 0,
|
|
1876
1873
|
class: "sticky top-0"
|
|
1877
1874
|
}, Ye = {
|
|
@@ -1888,53 +1885,65 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1888
1885
|
noHeader: { type: Boolean, default: !1 },
|
|
1889
1886
|
color: { default: "light-1" },
|
|
1890
1887
|
backdropColor: { default: "dark-4" },
|
|
1891
|
-
placement: { default: "center" }
|
|
1888
|
+
placement: { default: "center" },
|
|
1889
|
+
modalWidth: { default: "small" }
|
|
1892
1890
|
},
|
|
1893
1891
|
emits: ["open", "close"],
|
|
1894
1892
|
setup(s, { expose: r, emit: e }) {
|
|
1895
|
-
const l = s, t = D(), d = e, a =
|
|
1893
|
+
const l = s, t = D(), d = e, a = k(), o = k(l.visible), i = k(!1), u = () => {
|
|
1896
1894
|
o.value = !o.value;
|
|
1897
1895
|
}, c = () => {
|
|
1898
1896
|
o.value = !0;
|
|
1899
|
-
},
|
|
1897
|
+
}, x = () => {
|
|
1900
1898
|
i.value === !0 && (o.value = !1);
|
|
1901
|
-
},
|
|
1899
|
+
}, v = () => {
|
|
1902
1900
|
d("open", !0);
|
|
1903
1901
|
}, O = () => {
|
|
1904
1902
|
d("close", !1);
|
|
1905
|
-
},
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1903
|
+
}, $ = V(() => {
|
|
1904
|
+
const y = {
|
|
1905
|
+
top: 25,
|
|
1906
|
+
center: 50,
|
|
1907
|
+
bottom: 75
|
|
1908
|
+
}, { placement: G } = l;
|
|
1909
|
+
return { "--vertical-placement": (y[G] ?? y.center) + "%" };
|
|
1910
|
+
}), b = V(() => {
|
|
1911
|
+
const { modalWidth: y } = l, G = {
|
|
1912
|
+
small: "max-w-md",
|
|
1913
|
+
medium: "max-w-md md:max-w-xl",
|
|
1914
|
+
large: "max-w-md md:max-w-4xl"
|
|
1915
|
+
};
|
|
1916
|
+
return G[y] ?? G.small;
|
|
1917
|
+
}), p = () => {
|
|
1909
1918
|
i.value = !0;
|
|
1910
|
-
},
|
|
1919
|
+
}, _ = () => {
|
|
1911
1920
|
i.value = !1;
|
|
1912
1921
|
};
|
|
1913
|
-
return U(a, (
|
|
1914
|
-
o.value =
|
|
1922
|
+
return U(a, (y = !1) => {
|
|
1923
|
+
o.value = y;
|
|
1915
1924
|
}), L(
|
|
1916
1925
|
() => l.visible,
|
|
1917
|
-
(
|
|
1918
|
-
o.value =
|
|
1926
|
+
(y) => {
|
|
1927
|
+
o.value = y;
|
|
1919
1928
|
}
|
|
1920
|
-
), L(o, (
|
|
1921
|
-
|
|
1929
|
+
), L(o, (y) => {
|
|
1930
|
+
y === !0 ? v() : y === !1 && i.value === !0 && O();
|
|
1922
1931
|
}), F(() => {
|
|
1923
|
-
const
|
|
1924
|
-
L(o, (
|
|
1925
|
-
|
|
1932
|
+
const y = K(document);
|
|
1933
|
+
L(o, (G) => {
|
|
1934
|
+
y.value = G;
|
|
1926
1935
|
});
|
|
1927
1936
|
}), r({
|
|
1928
1937
|
toggle: u,
|
|
1929
|
-
close:
|
|
1938
|
+
close: x,
|
|
1930
1939
|
open: c
|
|
1931
|
-
}), (
|
|
1932
|
-
style: X(
|
|
1940
|
+
}), (y, G) => (g(), h("div", {
|
|
1941
|
+
style: X($.value),
|
|
1933
1942
|
visible: o.value,
|
|
1934
1943
|
ref_key: "modalRef",
|
|
1935
1944
|
ref: a
|
|
1936
1945
|
}, [
|
|
1937
|
-
|
|
1946
|
+
y.noBackdrop ? w("", !0) : (g(), z(I, {
|
|
1938
1947
|
key: 0,
|
|
1939
1948
|
name: "fade",
|
|
1940
1949
|
appear: "",
|
|
@@ -1943,69 +1952,72 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
1943
1952
|
default: E(() => [
|
|
1944
1953
|
o.value ? (g(), h("section", {
|
|
1945
1954
|
key: 0,
|
|
1946
|
-
onClick:
|
|
1947
|
-
class:
|
|
1948
|
-
}, null, 2)) :
|
|
1955
|
+
onClick: x,
|
|
1956
|
+
class: f(["fixed inset-0 overflow-y-auto bg-opacity-70 backdrop-blur z-[100]", R(T)("BGCOLOR", y.backdropColor)])
|
|
1957
|
+
}, null, 2)) : w("", !0)
|
|
1949
1958
|
]),
|
|
1950
1959
|
_: 1
|
|
1951
1960
|
})),
|
|
1952
|
-
S(
|
|
1961
|
+
S(I, {
|
|
1953
1962
|
name: "slide-down",
|
|
1954
1963
|
tag: "div",
|
|
1955
|
-
onAfterEnter:
|
|
1956
|
-
onAfterLeave:
|
|
1964
|
+
onAfterEnter: p,
|
|
1965
|
+
onAfterLeave: _,
|
|
1957
1966
|
appear: ""
|
|
1958
1967
|
}, {
|
|
1959
1968
|
default: E(() => [
|
|
1960
|
-
o.value ? (g(), h("div",
|
|
1961
|
-
|
|
1962
|
-
|
|
1969
|
+
o.value ? (g(), h("div", {
|
|
1970
|
+
key: 0,
|
|
1971
|
+
class: f(["vertical-placement fixed w-full z-[110] px-xs", b.value])
|
|
1972
|
+
}, [
|
|
1973
|
+
M((g(), h("div", {
|
|
1974
|
+
class: f([[R(T)("BGCOLOR", y.color), y.className], "relative overscroll-contain overflow-y-scroll max-h-[80vh] md:max-h-[60vh]"])
|
|
1963
1975
|
}, [
|
|
1964
|
-
|
|
1965
|
-
B(
|
|
1966
|
-
close:
|
|
1976
|
+
y.noHeader ? w("", !0) : (g(), h("div", Pe, [
|
|
1977
|
+
B(y.$slots, "header", {
|
|
1978
|
+
close: x,
|
|
1967
1979
|
status: o.value
|
|
1968
1980
|
}, () => [
|
|
1969
|
-
|
|
1970
|
-
class:
|
|
1981
|
+
C("div", {
|
|
1982
|
+
class: f(["flex justify-between items-center p-xs border-b-2", R(T)("BGCOLOR", y.color)])
|
|
1971
1983
|
}, [
|
|
1972
|
-
|
|
1984
|
+
y.title ? (g(), h("h3", {
|
|
1973
1985
|
key: 0,
|
|
1974
|
-
class:
|
|
1975
|
-
},
|
|
1976
|
-
|
|
1986
|
+
class: f(["h3-md", R(T)("TEXTCOLOR", y.titleColor)])
|
|
1987
|
+
}, Z(y.title), 3)) : w("", !0),
|
|
1988
|
+
C("button", { onClick: x }, [
|
|
1977
1989
|
(g(), h("svg", {
|
|
1978
1990
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1979
1991
|
height: "1em",
|
|
1980
1992
|
viewBox: "0 0 384 512",
|
|
1981
|
-
class:
|
|
1982
|
-
},
|
|
1983
|
-
|
|
1993
|
+
class: f(["hover:opacity-75 focus:opacity-75 transition-opacity duration-300 ease-in h-sm", [R(T)("SVGFILL", y.titleColor)]])
|
|
1994
|
+
}, G[0] || (G[0] = [
|
|
1995
|
+
C("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
1996
|
]), 2))
|
|
1985
1997
|
])
|
|
1986
1998
|
], 2)
|
|
1987
1999
|
], !0)
|
|
1988
2000
|
])),
|
|
1989
|
-
B(
|
|
1990
|
-
close:
|
|
2001
|
+
B(y.$slots, "body", {
|
|
2002
|
+
close: x,
|
|
1991
2003
|
status: o.value
|
|
1992
2004
|
}, void 0, !0),
|
|
1993
2005
|
t.footer ? (g(), h("div", Ye, [
|
|
1994
|
-
B(
|
|
1995
|
-
close:
|
|
2006
|
+
B(y.$slots, "footer", {
|
|
2007
|
+
close: x,
|
|
1996
2008
|
status: o.value
|
|
1997
2009
|
}, void 0, !0)
|
|
1998
|
-
])) :
|
|
2010
|
+
])) : w("", !0)
|
|
1999
2011
|
], 2)), [
|
|
2000
|
-
[R(q),
|
|
2012
|
+
[R(q), x]
|
|
2001
2013
|
])
|
|
2002
|
-
])) :
|
|
2014
|
+
], 2)) : w("", !0)
|
|
2003
2015
|
]),
|
|
2004
2016
|
_: 3
|
|
2005
2017
|
})
|
|
2006
|
-
], 12,
|
|
2018
|
+
], 12, ze));
|
|
2007
2019
|
}
|
|
2008
|
-
}),
|
|
2020
|
+
}), pt = /* @__PURE__ */ N(je, [["__scopeId", "data-v-37ba23d2"]]), Ke = ["visible"], Ue = { class: "sidebar-body-height" }, qe = /* @__PURE__ */ A({
|
|
2009
2021
|
__name: "Sidebar",
|
|
2010
2022
|
props: {
|
|
2011
2023
|
title: {},
|
|
@@ -2021,50 +2033,53 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2021
2033
|
},
|
|
2022
2034
|
emits: ["open", "close"],
|
|
2023
2035
|
setup(s, { expose: r, emit: e }) {
|
|
2024
|
-
const l = s, t = D(), d = e, a =
|
|
2036
|
+
const l = s, t = D(), d = e, a = k(l.visible), o = k(!1), i = k(), u = k(), c = k(), x = () => {
|
|
2025
2037
|
a.value = !a.value;
|
|
2026
|
-
},
|
|
2038
|
+
}, v = () => {
|
|
2027
2039
|
a.value = !0;
|
|
2028
2040
|
}, O = () => {
|
|
2029
2041
|
o.value === !0 && (a.value = !1);
|
|
2030
|
-
},
|
|
2042
|
+
}, $ = () => {
|
|
2031
2043
|
d("open", !0);
|
|
2032
2044
|
}, b = () => {
|
|
2033
2045
|
d("close", !1);
|
|
2034
|
-
}, p = V(() =>
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2046
|
+
}, p = V(() => {
|
|
2047
|
+
const m = (H) => H && a.value ? `${H.scrollHeight}px` : "0px";
|
|
2048
|
+
return {
|
|
2049
|
+
"--sidebar-width": `${l.width}px`,
|
|
2050
|
+
"--header-height": m(u.value),
|
|
2051
|
+
"--footer-height": m(c.value)
|
|
2052
|
+
};
|
|
2053
|
+
}), _ = V(() => l.placement === "left" ? "sidebar-left" : "sidebar-right"), J = () => {
|
|
2039
2054
|
o.value = !0;
|
|
2040
|
-
},
|
|
2055
|
+
}, y = () => {
|
|
2041
2056
|
o.value = !1;
|
|
2042
2057
|
};
|
|
2043
|
-
return U(i, (
|
|
2044
|
-
a.value =
|
|
2058
|
+
return U(i, (m = !1) => {
|
|
2059
|
+
a.value = m;
|
|
2045
2060
|
}), L(
|
|
2046
2061
|
() => l.visible,
|
|
2047
|
-
(
|
|
2048
|
-
a.value =
|
|
2062
|
+
(m) => {
|
|
2063
|
+
a.value = m;
|
|
2049
2064
|
}
|
|
2050
|
-
), L(a, (
|
|
2051
|
-
|
|
2065
|
+
), L(a, (m) => {
|
|
2066
|
+
m === !0 ? $() : m === !1 && o.value === !0 && b();
|
|
2052
2067
|
}), F(() => {
|
|
2053
|
-
const
|
|
2054
|
-
L(a, (
|
|
2055
|
-
|
|
2068
|
+
const m = K(document);
|
|
2069
|
+
L(a, (H) => {
|
|
2070
|
+
m.value = H;
|
|
2056
2071
|
});
|
|
2057
2072
|
}), r({
|
|
2058
|
-
toggle:
|
|
2059
|
-
open:
|
|
2073
|
+
toggle: x,
|
|
2074
|
+
open: v,
|
|
2060
2075
|
close: O
|
|
2061
|
-
}), (
|
|
2076
|
+
}), (m, H) => (g(), h("div", {
|
|
2062
2077
|
style: X(p.value),
|
|
2063
2078
|
visible: a.value,
|
|
2064
2079
|
ref_key: "sidebarRef",
|
|
2065
2080
|
ref: i
|
|
2066
2081
|
}, [
|
|
2067
|
-
|
|
2082
|
+
m.noBackdrop ? w("", !0) : (g(), z(I, {
|
|
2068
2083
|
key: 0,
|
|
2069
2084
|
name: "fade",
|
|
2070
2085
|
appear: "",
|
|
@@ -2074,39 +2089,39 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2074
2089
|
a.value ? (g(), h("section", {
|
|
2075
2090
|
key: 0,
|
|
2076
2091
|
onClick: O,
|
|
2077
|
-
class:
|
|
2078
|
-
}, null, 2)) :
|
|
2092
|
+
class: f(["fixed inset-0 overflow-y-auto bg-opacity-70 backdrop-blur z-[100]", R(T)("BGCOLOR", m.backdropColor)])
|
|
2093
|
+
}, null, 2)) : w("", !0)
|
|
2079
2094
|
]),
|
|
2080
2095
|
_: 1
|
|
2081
2096
|
})),
|
|
2082
|
-
S(
|
|
2097
|
+
S(I, {
|
|
2083
2098
|
name: _.value,
|
|
2084
|
-
onAfterEnter:
|
|
2085
|
-
onAfterLeave:
|
|
2099
|
+
onAfterEnter: J,
|
|
2100
|
+
onAfterLeave: y,
|
|
2086
2101
|
appear: ""
|
|
2087
2102
|
}, {
|
|
2088
2103
|
default: E(() => [
|
|
2089
|
-
a.value ?
|
|
2104
|
+
a.value ? M((g(), h("div", {
|
|
2090
2105
|
key: 0,
|
|
2091
|
-
class:
|
|
2106
|
+
class: f(["sidebar-body fixed h-full overflow-hidden inset-y-0 shadow z-[110]", [m.placement === "left" ? "left-0" : "right-0"]])
|
|
2092
2107
|
}, [
|
|
2093
|
-
|
|
2094
|
-
class:
|
|
2108
|
+
C("div", {
|
|
2109
|
+
class: f(["relative h-full overscroll-contain overflow-y-scroll", [R(T)("BGCOLOR", m.color), m.className]])
|
|
2095
2110
|
}, [
|
|
2096
|
-
|
|
2111
|
+
m.noHeader ? w("", !0) : (g(), h("div", {
|
|
2097
2112
|
key: 0,
|
|
2098
2113
|
class: "sticky top-0 z-10",
|
|
2099
2114
|
ref_key: "headerRef",
|
|
2100
2115
|
ref: u
|
|
2101
2116
|
}, [
|
|
2102
|
-
B(
|
|
2117
|
+
B(m.$slots, "header", {
|
|
2103
2118
|
close: O,
|
|
2104
2119
|
status: a.value
|
|
2105
2120
|
}, () => [
|
|
2106
|
-
|
|
2107
|
-
class:
|
|
2121
|
+
C("div", {
|
|
2122
|
+
class: f(["flex justify-between items-center p-xs", R(T)("BGCOLOR", m.color)])
|
|
2108
2123
|
}, [
|
|
2109
|
-
|
|
2124
|
+
m.placement === "right" ? (g(), h("button", {
|
|
2110
2125
|
key: 0,
|
|
2111
2126
|
onClick: O
|
|
2112
2127
|
}, [
|
|
@@ -2114,16 +2129,16 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2114
2129
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2115
2130
|
height: "1em",
|
|
2116
2131
|
viewBox: "0 0 384 512",
|
|
2117
|
-
class:
|
|
2118
|
-
},
|
|
2119
|
-
|
|
2132
|
+
class: f(["hover:opacity-75 focus:opacity-75 transition-opacity duration-300 ease-in h-sm", [R(T)("SVGFILL", m.titleColor)]])
|
|
2133
|
+
}, H[0] || (H[0] = [
|
|
2134
|
+
C("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
2135
|
]), 2))
|
|
2121
|
-
])) :
|
|
2122
|
-
|
|
2136
|
+
])) : w("", !0),
|
|
2137
|
+
m.title ? (g(), h("h3", {
|
|
2123
2138
|
key: 1,
|
|
2124
|
-
class:
|
|
2125
|
-
},
|
|
2126
|
-
|
|
2139
|
+
class: f(["h3-md", R(T)("TEXTCOLOR", m.titleColor)])
|
|
2140
|
+
}, Z(m.title), 3)) : w("", !0),
|
|
2141
|
+
m.placement === "left" ? (g(), h("button", {
|
|
2127
2142
|
key: 2,
|
|
2128
2143
|
onClick: O
|
|
2129
2144
|
}, [
|
|
@@ -2131,16 +2146,16 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2131
2146
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2132
2147
|
height: "1em",
|
|
2133
2148
|
viewBox: "0 0 384 512",
|
|
2134
|
-
class:
|
|
2135
|
-
},
|
|
2136
|
-
|
|
2149
|
+
class: f(["hover:opacity-75 focus:opacity-75 transition-opacity duration-300 ease-in h-sm", [R(T)("SVGFILL", m.titleColor)]])
|
|
2150
|
+
}, H[1] || (H[1] = [
|
|
2151
|
+
C("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
2152
|
]), 2))
|
|
2138
|
-
])) :
|
|
2153
|
+
])) : w("", !0)
|
|
2139
2154
|
], 2)
|
|
2140
2155
|
], !0)
|
|
2141
2156
|
], 512)),
|
|
2142
|
-
|
|
2143
|
-
B(
|
|
2157
|
+
C("div", Ue, [
|
|
2158
|
+
B(m.$slots, "body", {
|
|
2144
2159
|
close: O,
|
|
2145
2160
|
status: a.value
|
|
2146
2161
|
}, void 0, !0)
|
|
@@ -2151,21 +2166,21 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2151
2166
|
ref_key: "footerRef",
|
|
2152
2167
|
ref: c
|
|
2153
2168
|
}, [
|
|
2154
|
-
B(
|
|
2169
|
+
B(m.$slots, "footer", {
|
|
2155
2170
|
close: O,
|
|
2156
2171
|
status: a.value
|
|
2157
2172
|
}, void 0, !0)
|
|
2158
|
-
], 512)) :
|
|
2173
|
+
], 512)) : w("", !0)
|
|
2159
2174
|
], 2)
|
|
2160
2175
|
], 2)), [
|
|
2161
2176
|
[R(q), O]
|
|
2162
|
-
]) :
|
|
2177
|
+
]) : w("", !0)
|
|
2163
2178
|
]),
|
|
2164
2179
|
_: 3
|
|
2165
2180
|
}, 8, ["name"])
|
|
2166
2181
|
], 12, Ke));
|
|
2167
2182
|
}
|
|
2168
|
-
}),
|
|
2183
|
+
}), bt = /* @__PURE__ */ N(qe, [["__scopeId", "data-v-048c4fe4"]]), re = Symbol(), Je = { class: "container-hts transition-[max-height] duration-300 grid grid-cols-1 grid-rows-1" }, Qe = /* @__PURE__ */ A({
|
|
2169
2184
|
__name: "TabContainer",
|
|
2170
2185
|
props: {
|
|
2171
2186
|
bodyClass: { default: "" },
|
|
@@ -2174,8 +2189,8 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2174
2189
|
},
|
|
2175
2190
|
setup(s, { expose: r }) {
|
|
2176
2191
|
D();
|
|
2177
|
-
const e =
|
|
2178
|
-
Y(
|
|
2192
|
+
const e = k(0), l = k(0), t = k("slide-next");
|
|
2193
|
+
Y(re, {
|
|
2179
2194
|
activeTabIdx: e,
|
|
2180
2195
|
containerHeight: l,
|
|
2181
2196
|
updateHeight: (i) => {
|
|
@@ -2193,11 +2208,11 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2193
2208
|
i > u ? t.value = "slide-next" : t.value = "slide-prev";
|
|
2194
2209
|
}
|
|
2195
2210
|
), (i, u) => (g(), h("div", {
|
|
2196
|
-
class:
|
|
2211
|
+
class: f(i.bodyClass),
|
|
2197
2212
|
style: X(o.value)
|
|
2198
2213
|
}, [
|
|
2199
|
-
|
|
2200
|
-
class:
|
|
2214
|
+
C("div", {
|
|
2215
|
+
class: f(i.btnContainerClass),
|
|
2201
2216
|
role: "tablist"
|
|
2202
2217
|
}, [
|
|
2203
2218
|
B(i.$slots, "tab-button", {
|
|
@@ -2205,11 +2220,11 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2205
2220
|
activeTab: e.value
|
|
2206
2221
|
}, void 0, !0)
|
|
2207
2222
|
], 2),
|
|
2208
|
-
|
|
2209
|
-
class:
|
|
2223
|
+
C("div", {
|
|
2224
|
+
class: f(i.contentContainerClass)
|
|
2210
2225
|
}, [
|
|
2211
|
-
|
|
2212
|
-
S(
|
|
2226
|
+
C("div", Je, [
|
|
2227
|
+
S(I, { name: t.value }, {
|
|
2213
2228
|
default: E(() => [
|
|
2214
2229
|
(g(), h("div", {
|
|
2215
2230
|
key: e.value,
|
|
@@ -2224,7 +2239,7 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2224
2239
|
], 2)
|
|
2225
2240
|
], 6));
|
|
2226
2241
|
}
|
|
2227
|
-
}),
|
|
2242
|
+
}), ft = /* @__PURE__ */ N(Qe, [["__scopeId", "data-v-1014eb3f"]]), Ze = ["id"], vt = /* @__PURE__ */ A({
|
|
2228
2243
|
__name: "TabContent",
|
|
2229
2244
|
props: {
|
|
2230
2245
|
tabNumber: {},
|
|
@@ -2233,13 +2248,13 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2233
2248
|
},
|
|
2234
2249
|
setup(s) {
|
|
2235
2250
|
const r = s, { activeTabIdx: e, updateHeight: l } = j(
|
|
2236
|
-
|
|
2237
|
-
), t =
|
|
2238
|
-
return (o, i) =>
|
|
2251
|
+
re
|
|
2252
|
+
), t = k(null), { height: d } = he(t), a = V(() => e.value === r.tabNumber ? (l(d.value), !0) : !1);
|
|
2253
|
+
return (o, i) => M((g(), h("div", {
|
|
2239
2254
|
ref_key: "slotRef",
|
|
2240
2255
|
ref: t,
|
|
2241
2256
|
id: o.id,
|
|
2242
|
-
class:
|
|
2257
|
+
class: f([o.tabClass, "w-full"]),
|
|
2243
2258
|
role: "tabpanel",
|
|
2244
2259
|
tabindex: "-1"
|
|
2245
2260
|
}, [
|
|
@@ -2248,7 +2263,7 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2248
2263
|
[P, a.value]
|
|
2249
2264
|
]);
|
|
2250
2265
|
}
|
|
2251
|
-
}),
|
|
2266
|
+
}), se = Symbol(), et = /* @__PURE__ */ A({
|
|
2252
2267
|
__name: "CarouselContainer",
|
|
2253
2268
|
props: {
|
|
2254
2269
|
bodyClass: { default: "" },
|
|
@@ -2258,57 +2273,57 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2258
2273
|
loop: { type: Boolean, default: !1 }
|
|
2259
2274
|
},
|
|
2260
2275
|
setup(s, { expose: r }) {
|
|
2261
|
-
const e = s, l = D(), t =
|
|
2262
|
-
d.value.push(
|
|
2263
|
-
}, u = (
|
|
2264
|
-
t.value =
|
|
2276
|
+
const e = s, l = D(), t = k(0), d = k([]), a = k(0), o = k("slide-next"), i = (v) => {
|
|
2277
|
+
d.value.push(v), a.value = [...new Set(d.value)].length;
|
|
2278
|
+
}, u = (v) => {
|
|
2279
|
+
t.value = v;
|
|
2265
2280
|
};
|
|
2266
|
-
Y(
|
|
2281
|
+
Y(se, {
|
|
2267
2282
|
activeIdx: t,
|
|
2268
2283
|
setSlide: i
|
|
2269
2284
|
});
|
|
2270
2285
|
const c = () => {
|
|
2271
|
-
const { loop:
|
|
2272
|
-
|
|
2273
|
-
},
|
|
2274
|
-
const { loop:
|
|
2275
|
-
|
|
2286
|
+
const { loop: v } = e;
|
|
2287
|
+
v && t.value === a.value - 1 ? t.value = 0 : t.value < a.value - 1 && (t.value = t.value + 1);
|
|
2288
|
+
}, x = () => {
|
|
2289
|
+
const { loop: v } = e;
|
|
2290
|
+
v && t.value === 0 ? t.value = a.value - 1 : t.value > 0 && (t.value = t.value - 1);
|
|
2276
2291
|
};
|
|
2277
2292
|
return L(
|
|
2278
2293
|
() => t.value,
|
|
2279
|
-
(
|
|
2280
|
-
|
|
2294
|
+
(v, O) => {
|
|
2295
|
+
v > O || v === 0 && O === a.value - 1 ? o.value = "slide-next" : o.value = "slide-prev";
|
|
2281
2296
|
}
|
|
2282
2297
|
), r({
|
|
2283
2298
|
numberOfSlides: a,
|
|
2284
|
-
prev:
|
|
2299
|
+
prev: x,
|
|
2285
2300
|
next: c,
|
|
2286
2301
|
setActive: u
|
|
2287
|
-
}), (
|
|
2288
|
-
class:
|
|
2302
|
+
}), (v, O) => (g(), h("div", {
|
|
2303
|
+
class: f([v.bodyClass, "relative overflow-x-hidden"])
|
|
2289
2304
|
}, [
|
|
2290
2305
|
l["controller-top"] ? (g(), h("div", {
|
|
2291
2306
|
key: 0,
|
|
2292
|
-
class: v
|
|
2307
|
+
class: f(v.controllerTopClass)
|
|
2293
2308
|
}, [
|
|
2294
|
-
B(
|
|
2309
|
+
B(v.$slots, "controller-top", {
|
|
2295
2310
|
next: c,
|
|
2296
|
-
prev:
|
|
2311
|
+
prev: x,
|
|
2297
2312
|
setActive: u,
|
|
2298
2313
|
activeSlide: t.value,
|
|
2299
2314
|
numberOfSlides: a.value
|
|
2300
2315
|
}, void 0, !0)
|
|
2301
|
-
], 2)) :
|
|
2302
|
-
|
|
2303
|
-
class:
|
|
2316
|
+
], 2)) : w("", !0),
|
|
2317
|
+
C("div", {
|
|
2318
|
+
class: f(["grid grid-cols-1 grid-rows-1", v.contentContainerClass])
|
|
2304
2319
|
}, [
|
|
2305
|
-
S(
|
|
2320
|
+
S(I, { name: o.value }, {
|
|
2306
2321
|
default: E(() => [
|
|
2307
2322
|
(g(), h("div", {
|
|
2308
2323
|
key: t.value,
|
|
2309
2324
|
class: "col-start-1 col-end-1 row-start-1 row-end-1"
|
|
2310
2325
|
}, [
|
|
2311
|
-
B(
|
|
2326
|
+
B(v.$slots, "content", {}, void 0, !0)
|
|
2312
2327
|
]))
|
|
2313
2328
|
]),
|
|
2314
2329
|
_: 3
|
|
@@ -2316,19 +2331,19 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2316
2331
|
], 2),
|
|
2317
2332
|
l["controller-bottom"] ? (g(), h("div", {
|
|
2318
2333
|
key: 1,
|
|
2319
|
-
class: v
|
|
2334
|
+
class: f(v.controllerBottomClass)
|
|
2320
2335
|
}, [
|
|
2321
|
-
B(
|
|
2336
|
+
B(v.$slots, "controller-bottom", {
|
|
2322
2337
|
next: c,
|
|
2323
|
-
prev:
|
|
2338
|
+
prev: x,
|
|
2324
2339
|
setActive: u,
|
|
2325
2340
|
activeSlide: t.value,
|
|
2326
2341
|
numberOfSlides: a.value
|
|
2327
2342
|
}, void 0, !0)
|
|
2328
|
-
], 2)) :
|
|
2343
|
+
], 2)) : w("", !0)
|
|
2329
2344
|
], 2));
|
|
2330
2345
|
}
|
|
2331
|
-
}),
|
|
2346
|
+
}), mt = /* @__PURE__ */ N(et, [["__scopeId", "data-v-05e275d0"]]), tt = ["id"], xt = /* @__PURE__ */ A({
|
|
2332
2347
|
__name: "CarouselContent",
|
|
2333
2348
|
props: {
|
|
2334
2349
|
slideNumber: {},
|
|
@@ -2337,18 +2352,18 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2337
2352
|
},
|
|
2338
2353
|
setup(s) {
|
|
2339
2354
|
const r = s, { activeIdx: e, setSlide: l } = j(
|
|
2340
|
-
|
|
2341
|
-
), t =
|
|
2355
|
+
se
|
|
2356
|
+
), t = k(null);
|
|
2342
2357
|
l(r.slideNumber), D();
|
|
2343
2358
|
const d = V(() => {
|
|
2344
2359
|
const { slideNumber: a } = r;
|
|
2345
2360
|
return e.value === a;
|
|
2346
2361
|
});
|
|
2347
|
-
return (a, o) =>
|
|
2362
|
+
return (a, o) => M((g(), h("div", {
|
|
2348
2363
|
ref_key: "slideRef",
|
|
2349
2364
|
ref: t,
|
|
2350
2365
|
id: a.id,
|
|
2351
|
-
class:
|
|
2366
|
+
class: f([a.slideClass, "w-full"]),
|
|
2352
2367
|
role: "tabpanel",
|
|
2353
2368
|
tabindex: "-1"
|
|
2354
2369
|
}, [
|
|
@@ -2359,22 +2374,22 @@ const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex jus
|
|
|
2359
2374
|
}
|
|
2360
2375
|
});
|
|
2361
2376
|
export {
|
|
2362
|
-
|
|
2363
|
-
|
|
2364
|
-
|
|
2377
|
+
lt as Alert,
|
|
2378
|
+
mt as CarouselContainer,
|
|
2379
|
+
xt as CarouselContent,
|
|
2365
2380
|
Te as ClientSideRender,
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2381
|
+
ot as Collapse,
|
|
2382
|
+
ct as DropdownContainer,
|
|
2383
|
+
gt as DropdownContent,
|
|
2384
|
+
ut as HeaderHorizontal,
|
|
2385
|
+
ht as HeaderVertical,
|
|
2386
|
+
pt as Modal,
|
|
2387
|
+
bt as Sidebar,
|
|
2388
|
+
ft as TabContainer,
|
|
2389
|
+
vt as TabContent,
|
|
2390
|
+
T as default,
|
|
2376
2391
|
q as vClickOutside,
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2392
|
+
nt as vCollapse,
|
|
2393
|
+
it as vToggle,
|
|
2394
|
+
dt as vTooltip
|
|
2380
2395
|
};
|