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