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