@bobbykim/manguito-theme 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core.cjs +2 -2
- package/dist/core.js +550 -533
- 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-
|
|
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(".collapse-enter-active[data-v-5d535dc4],.collapse-leave-active[data-v-5d535dc4]{transition-property:height,opacity;transition-duration:.5s;transition-timing-function:ease}.dropup-bottom[data-v-85c54efe]{bottom:var(--button-height)}.dropdown-content-enter-active[data-v-85c54efe],.dropdown-content-leave-active[data-v-85c54efe]{transition:all .3s}.dropdown-content-enter-from[data-v-85c54efe],.dropdown-content-leave-to[data-v-85c54efe]{opacity:0;transform:translateY(-10px)}.hamburger__icon[data-v-1b9c33a1]:before,.hamburger__icon[data-v-1b9c33a1]:after{position:absolute;left:0;transition:all .3s linear}.hamburger__icon[data-v-1b9c33a1]:before{top:-.5rem}.hamburger__icon[data-v-1b9c33a1]:after{top:.5rem}.hamburger__button:focus .hamburger__icon[data-v-1b9c33a1],.hamburger__button:hover .hamburger__icon[data-v-1b9c33a1]{scale:1.05}.hamburger__checkbox:checked+.hamburger__icon[data-v-1b9c33a1]{background-color:transparent}.hamburger__checkbox:checked+.hamburger__icon[data-v-1b9c33a1]:before{top:0;transform:rotate(135deg)}.hamburger__checkbox:checked+.hamburger__icon[data-v-1b9c33a1]:after{top:0;transform:rotate(-135deg)}.collapse-enter-active[data-v-56d20376]{transition:height .5s ease-in}.collapse-leave-active[data-v-56d20376]{transition:height .5s ease-out}.header-desktop[data-v-c48d5ce1]{width:100%}@media screen and (min-width: 1024px){.header-desktop[data-v-c48d5ce1]{width:var(--header-width)}}.slide-down-enter-active[data-v-c48d5ce1]{transition:transform .3s ease-in .2s,opacity .5s ease-in}.slide-down-leave-active[data-v-c48d5ce1]{transition:transform .5s ease-in,opacity .3s ease-in .2s}.slide-down-enter-from[data-v-c48d5ce1],.slide-down-leave-to[data-v-c48d5ce1]{opacity:0;transform:translateY(-100%)}.vertical-placement[data-v-1302a12c]{top:var(--vertical-placement);left:50%;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}.fade-enter-active[data-v-1302a12c],.fade-leave-active[data-v-1302a12c]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-1302a12c],.fade-leave-to[data-v-1302a12c]{opacity:0}.slide-down-enter-active[data-v-1302a12c]{animation:slide-down-1302a12c .3s ease}.slide-down-leave-active[data-v-1302a12c]{animation:slide-down-1302a12c reverse .3s ease}@keyframes slide-down-1302a12c{0%{opacity:0;transform:translateY(-100%) translate(-50%)}to{opacity:1;transform:translateY(calc(-1 * var(--vertical-placement))) translate(-50%)}}.sidebar-body[data-v-15e6bcbe]{width:100%}.sidebar-body-height[data-v-15e6bcbe]{min-height:calc(100vh - var(--header-height) - var(--footer-height))}.fade-enter-active[data-v-15e6bcbe],.fade-leave-active[data-v-15e6bcbe]{transition-property:opacity;transition-duration:.3s;transition-timing-function:linear}.fade-enter-from[data-v-15e6bcbe],.fade-leave-to[data-v-15e6bcbe]{opacity:0}.sidebar-left-enter-active[data-v-15e6bcbe],.sidebar-left-leave-active[data-v-15e6bcbe],.sidebar-right-enter-active[data-v-15e6bcbe],.sidebar-right-leave-active[data-v-15e6bcbe]{transition-property:transform,opacity;transition-duration:.3s;transition-timing-function:linear}.sidebar-left-enter-from[data-v-15e6bcbe],.sidebar-left-leave-to[data-v-15e6bcbe]{transform:translate(-100%)}.sidebar-right-enter-from[data-v-15e6bcbe],.sidebar-right-leave-to[data-v-15e6bcbe]{transform:translate(100%)}@media screen and (min-width: 768px){.sidebar-body[data-v-15e6bcbe]{width:var(--sidebar-width)}.sidebar-left-enter-from[data-v-15e6bcbe],.sidebar-left-leave-to[data-v-15e6bcbe]{transform:translate(calc(-1 * var(--sidebar-width)))}.sidebar-right-enter-from[data-v-15e6bcbe],.sidebar-right-leave-to[data-v-15e6bcbe]{transform:translate(var(--sidebar-width))}}.container-hts[data-v-1014eb3f]{max-height:var(--container-hts)}.slide-prev-enter-active[data-v-1014eb3f]{transition:all .5s linear}.slide-prev-leave-active[data-v-1014eb3f]{transition:all .5s}.slide-prev-enter-from[data-v-1014eb3f]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-1014eb3f]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-1014eb3f]{transition:all .5s linear}.slide-next-leave-active[data-v-1014eb3f]{transition:all .5s}.slide-next-enter-from[data-v-1014eb3f]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-1014eb3f]{transform:translate(-100%);opacity:0}.slide-prev-enter-active[data-v-05e275d0]{transition:all .5s linear}.slide-prev-leave-active[data-v-05e275d0]{transition:all .5s}.slide-prev-enter-from[data-v-05e275d0]{transform:translate(-100%);opacity:0}.slide-prev-leave-to[data-v-05e275d0]{transform:translate(100%);opacity:0}.slide-next-enter-active[data-v-05e275d0]{transition:all .5s linear}.slide-next-leave-active[data-v-05e275d0]{transition:all .5s}.slide-next-enter-from[data-v-05e275d0]{transform:translate(100%);opacity:0}.slide-next-leave-to[data-v-05e275d0]{transform:translate(-100%);opacity:0}")),document.head.appendChild(a)}}catch(e){console.error("vite-plugin-css-injected-by-js",e)}})();
|
|
2
|
+
var se = Object.defineProperty;
|
|
3
|
+
var ae = (s, r, e) => r in s ? se(s, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : s[r] = e;
|
|
4
|
+
var n = (s, r, e) => ae(s, typeof r != "symbol" ? r + "" : r, e);
|
|
5
|
+
import { defineComponent as A, useSlots as D, ref as C, computed as V, watch as L, openBlock as g, createElementBlock as h, normalizeClass as v, createElementVNode as y, renderSlot as B, createCommentVNode as T, onMounted as F, createVNode as S, unref as R, withCtx as E, Transition as G, withDirectives as W, vShow as P, h as le, render as J, provide as Y, withKeys as oe, inject as j, createBlock as z, normalizeStyle as X, vModelCheckbox as ie, Teleport as ne, toDisplayString as Q } from "vue";
|
|
6
|
+
import { useMutationObserver as de, useWindowSize as ce, useWindowScroll as ge, useScrollLock as K, useElementSize as ue } from "@vueuse/core";
|
|
7
|
+
class he {
|
|
8
8
|
constructor() {
|
|
9
9
|
// body text class
|
|
10
|
-
|
|
10
|
+
n(this, "bodyText", {
|
|
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 pe {
|
|
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 be {
|
|
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
|
// btn color class
|
|
437
|
-
|
|
437
|
+
n(this, "btnColor", {
|
|
438
438
|
primary: "btn-primary",
|
|
439
439
|
secondary: "btn-secondary",
|
|
440
440
|
success: "btn-success",
|
|
@@ -454,7 +454,7 @@ class fe {
|
|
|
454
454
|
transparent: "btn-transparent"
|
|
455
455
|
});
|
|
456
456
|
// list color class
|
|
457
|
-
|
|
457
|
+
n(this, "listColor", {
|
|
458
458
|
primary: "mcl-list-primary",
|
|
459
459
|
secondary: "mcl-list-secondary",
|
|
460
460
|
success: "mcl-list-success",
|
|
@@ -474,7 +474,7 @@ class fe {
|
|
|
474
474
|
transparent: "mcl-list-transparent"
|
|
475
475
|
});
|
|
476
476
|
// border color classes
|
|
477
|
-
|
|
477
|
+
n(this, "borderColor", {
|
|
478
478
|
primary: "border-primary",
|
|
479
479
|
secondary: "border-secondary",
|
|
480
480
|
success: "border-success",
|
|
@@ -493,7 +493,7 @@ class fe {
|
|
|
493
493
|
white: "border-white",
|
|
494
494
|
transparent: "border-transparent"
|
|
495
495
|
});
|
|
496
|
-
|
|
496
|
+
n(this, "borderXColor", {
|
|
497
497
|
primary: "border-x-primary",
|
|
498
498
|
secondary: "border-x-secondary",
|
|
499
499
|
success: "border-x-success",
|
|
@@ -512,7 +512,7 @@ class fe {
|
|
|
512
512
|
white: "border-x-white",
|
|
513
513
|
transparent: "border-x-transparent"
|
|
514
514
|
});
|
|
515
|
-
|
|
515
|
+
n(this, "borderYColor", {
|
|
516
516
|
primary: "border-y-primary",
|
|
517
517
|
secondary: "border-y-secondary",
|
|
518
518
|
success: "border-y-success",
|
|
@@ -531,7 +531,7 @@ class fe {
|
|
|
531
531
|
white: "border-y-white",
|
|
532
532
|
transparent: "border-y-transparent"
|
|
533
533
|
});
|
|
534
|
-
|
|
534
|
+
n(this, "borderTopColor", {
|
|
535
535
|
primary: "border-t-primary",
|
|
536
536
|
secondary: "border-t-secondary",
|
|
537
537
|
success: "border-t-success",
|
|
@@ -550,7 +550,7 @@ class fe {
|
|
|
550
550
|
white: "border-t-white",
|
|
551
551
|
transparent: "border-t-transparent"
|
|
552
552
|
});
|
|
553
|
-
|
|
553
|
+
n(this, "borderBottomColor", {
|
|
554
554
|
primary: "border-b-primary",
|
|
555
555
|
secondary: "border-b-secondary",
|
|
556
556
|
success: "border-b-success",
|
|
@@ -569,7 +569,7 @@ class fe {
|
|
|
569
569
|
white: "border-b-white",
|
|
570
570
|
transparent: "border-b-transparent"
|
|
571
571
|
});
|
|
572
|
-
|
|
572
|
+
n(this, "borderLeftColor", {
|
|
573
573
|
primary: "border-l-primary",
|
|
574
574
|
secondary: "border-l-secondary",
|
|
575
575
|
success: "border-l-success",
|
|
@@ -588,7 +588,7 @@ class fe {
|
|
|
588
588
|
white: "border-l-white",
|
|
589
589
|
transparent: "border-l-transparent"
|
|
590
590
|
});
|
|
591
|
-
|
|
591
|
+
n(this, "borderRightColor", {
|
|
592
592
|
primary: "border-r-primary",
|
|
593
593
|
secondary: "border-r-secondary",
|
|
594
594
|
success: "border-r-success",
|
|
@@ -609,31 +609,31 @@ class fe {
|
|
|
609
609
|
});
|
|
610
610
|
}
|
|
611
611
|
}
|
|
612
|
-
class
|
|
612
|
+
class fe {
|
|
613
613
|
constructor() {
|
|
614
614
|
// h1 class
|
|
615
|
-
|
|
615
|
+
n(this, "heading1", {
|
|
616
616
|
sm: "h1-sm",
|
|
617
617
|
md: "h1-md",
|
|
618
618
|
lg: "h1-lg",
|
|
619
619
|
xl: "h1-xl"
|
|
620
620
|
});
|
|
621
621
|
// h2 class
|
|
622
|
-
|
|
622
|
+
n(this, "heading2", {
|
|
623
623
|
sm: "h2-sm",
|
|
624
624
|
md: "h2-md",
|
|
625
625
|
lg: "h2-lg",
|
|
626
626
|
xl: "h2-xl"
|
|
627
627
|
});
|
|
628
628
|
// h3 class
|
|
629
|
-
|
|
629
|
+
n(this, "heading3", {
|
|
630
630
|
sm: "h3-sm",
|
|
631
631
|
md: "h3-md",
|
|
632
632
|
lg: "h3-lg",
|
|
633
633
|
xl: "h3-xl"
|
|
634
634
|
});
|
|
635
635
|
// h4 class
|
|
636
|
-
|
|
636
|
+
n(this, "heading4", {
|
|
637
637
|
sm: "h4-sm",
|
|
638
638
|
md: "h4-md",
|
|
639
639
|
lg: "h4-lg",
|
|
@@ -641,10 +641,10 @@ class ve {
|
|
|
641
641
|
});
|
|
642
642
|
}
|
|
643
643
|
}
|
|
644
|
-
class
|
|
644
|
+
class ve {
|
|
645
645
|
constructor() {
|
|
646
646
|
// opacity
|
|
647
|
-
|
|
647
|
+
n(this, "backgroundOpacity", {
|
|
648
648
|
10: "bg-opacity-10",
|
|
649
649
|
20: "bg-opacity-20",
|
|
650
650
|
30: "bg-opacity-30",
|
|
@@ -656,7 +656,7 @@ class me {
|
|
|
656
656
|
90: "bg-opacity-90",
|
|
657
657
|
100: "bg-opacity-100"
|
|
658
658
|
});
|
|
659
|
-
|
|
659
|
+
n(this, "opacity", {
|
|
660
660
|
10: "opacity-10",
|
|
661
661
|
20: "opacity-20",
|
|
662
662
|
30: "opacity-30",
|
|
@@ -670,10 +670,10 @@ class me {
|
|
|
670
670
|
});
|
|
671
671
|
}
|
|
672
672
|
}
|
|
673
|
-
class
|
|
673
|
+
class me {
|
|
674
674
|
constructor() {
|
|
675
675
|
// spacing: margin
|
|
676
|
-
|
|
676
|
+
n(this, "margin", {
|
|
677
677
|
0: "m-0",
|
|
678
678
|
"3xs": "m-3xs",
|
|
679
679
|
"2xs": "m-2xs",
|
|
@@ -685,7 +685,7 @@ class xe {
|
|
|
685
685
|
"2xl": "m-2xl",
|
|
686
686
|
"3xl": "m-3xl"
|
|
687
687
|
});
|
|
688
|
-
|
|
688
|
+
n(this, "marginX", {
|
|
689
689
|
0: "mx-0",
|
|
690
690
|
"3xs": "mx-3xs",
|
|
691
691
|
"2xs": "mx-2xs",
|
|
@@ -697,7 +697,7 @@ class xe {
|
|
|
697
697
|
"2xl": "mx-2xl",
|
|
698
698
|
"3xl": "mx-3xl"
|
|
699
699
|
});
|
|
700
|
-
|
|
700
|
+
n(this, "marginY", {
|
|
701
701
|
0: "my-0",
|
|
702
702
|
"3xs": "my-3xs",
|
|
703
703
|
"2xs": "my-2xs",
|
|
@@ -709,7 +709,7 @@ class xe {
|
|
|
709
709
|
"2xl": "my-2xl",
|
|
710
710
|
"3xl": "my-3xl"
|
|
711
711
|
});
|
|
712
|
-
|
|
712
|
+
n(this, "marginTop", {
|
|
713
713
|
0: "mt-0",
|
|
714
714
|
"3xs": "mt-3xs",
|
|
715
715
|
"2xs": "mt-2xs",
|
|
@@ -721,7 +721,7 @@ class xe {
|
|
|
721
721
|
"2xl": "mt-2xl",
|
|
722
722
|
"3xl": "mt-3xl"
|
|
723
723
|
});
|
|
724
|
-
|
|
724
|
+
n(this, "marginBottom", {
|
|
725
725
|
0: "mb-0",
|
|
726
726
|
"3xs": "mb-3xs",
|
|
727
727
|
"2xs": "mb-2xs",
|
|
@@ -733,7 +733,7 @@ class xe {
|
|
|
733
733
|
"2xl": "mb-2xl",
|
|
734
734
|
"3xl": "mb-3xl"
|
|
735
735
|
});
|
|
736
|
-
|
|
736
|
+
n(this, "marginLeft", {
|
|
737
737
|
0: "ml-0",
|
|
738
738
|
"3xs": "ml-3xs",
|
|
739
739
|
"2xs": "ml-2xs",
|
|
@@ -745,7 +745,7 @@ class xe {
|
|
|
745
745
|
"2xl": "ml-2xl",
|
|
746
746
|
"3xl": "ml-3xl"
|
|
747
747
|
});
|
|
748
|
-
|
|
748
|
+
n(this, "marginRight", {
|
|
749
749
|
0: "mr-0",
|
|
750
750
|
"3xs": "mr-3xs",
|
|
751
751
|
"2xs": "mr-2xs",
|
|
@@ -758,7 +758,7 @@ class xe {
|
|
|
758
758
|
"3xl": "mr-3xl"
|
|
759
759
|
});
|
|
760
760
|
// spacing: padding
|
|
761
|
-
|
|
761
|
+
n(this, "padding", {
|
|
762
762
|
0: "p-0",
|
|
763
763
|
"3xs": "p-3xs",
|
|
764
764
|
"2xs": "p-2xs",
|
|
@@ -770,7 +770,7 @@ class xe {
|
|
|
770
770
|
"2xl": "p-2xl",
|
|
771
771
|
"3xl": "p-3xl"
|
|
772
772
|
});
|
|
773
|
-
|
|
773
|
+
n(this, "paddingX", {
|
|
774
774
|
0: "px-0",
|
|
775
775
|
"3xs": "px-3xs",
|
|
776
776
|
"2xs": "px-2xs",
|
|
@@ -782,7 +782,7 @@ class xe {
|
|
|
782
782
|
"2xl": "px-2xl",
|
|
783
783
|
"3xl": "px-3xl"
|
|
784
784
|
});
|
|
785
|
-
|
|
785
|
+
n(this, "paddingY", {
|
|
786
786
|
0: "py-0",
|
|
787
787
|
"3xs": "py-3xs",
|
|
788
788
|
"2xs": "py-2xs",
|
|
@@ -794,7 +794,7 @@ class xe {
|
|
|
794
794
|
"2xl": "py-2xl",
|
|
795
795
|
"3xl": "py-3xl"
|
|
796
796
|
});
|
|
797
|
-
|
|
797
|
+
n(this, "paddingTop", {
|
|
798
798
|
0: "pt-0",
|
|
799
799
|
"3xs": "pt-3xs",
|
|
800
800
|
"2xs": "pt-2xs",
|
|
@@ -806,7 +806,7 @@ class xe {
|
|
|
806
806
|
"2xl": "pt-2xl",
|
|
807
807
|
"3xl": "pt-3xl"
|
|
808
808
|
});
|
|
809
|
-
|
|
809
|
+
n(this, "paddingBottom", {
|
|
810
810
|
0: "pb-0",
|
|
811
811
|
"3xs": "pb-3xs",
|
|
812
812
|
"2xs": "pb-2xs",
|
|
@@ -818,7 +818,7 @@ class xe {
|
|
|
818
818
|
"2xl": "pb-2xl",
|
|
819
819
|
"3xl": "pb-3xl"
|
|
820
820
|
});
|
|
821
|
-
|
|
821
|
+
n(this, "paddingLeft", {
|
|
822
822
|
0: "pl-0",
|
|
823
823
|
"3xs": "pl-3xs",
|
|
824
824
|
"2xs": "pl-2xs",
|
|
@@ -830,7 +830,7 @@ class xe {
|
|
|
830
830
|
"2xl": "pl-2xl",
|
|
831
831
|
"3xl": "pl-3xl"
|
|
832
832
|
});
|
|
833
|
-
|
|
833
|
+
n(this, "paddingRight", {
|
|
834
834
|
0: "pr-0",
|
|
835
835
|
"3xs": "pr-3xs",
|
|
836
836
|
"2xs": "pr-2xs",
|
|
@@ -843,7 +843,7 @@ class xe {
|
|
|
843
843
|
"3xl": "pr-3xl"
|
|
844
844
|
});
|
|
845
845
|
// spacing gap class for flex/grid
|
|
846
|
-
|
|
846
|
+
n(this, "gap", {
|
|
847
847
|
0: "gap-0",
|
|
848
848
|
"3xs": "gap-3xs",
|
|
849
849
|
"2xs": "gap-2xs",
|
|
@@ -857,53 +857,53 @@ class xe {
|
|
|
857
857
|
});
|
|
858
858
|
}
|
|
859
859
|
}
|
|
860
|
-
class
|
|
860
|
+
class xe {
|
|
861
861
|
constructor(r) {
|
|
862
|
-
|
|
862
|
+
n(this, "classType");
|
|
863
863
|
this.classType = r;
|
|
864
864
|
}
|
|
865
865
|
validateColorType(r) {
|
|
866
866
|
const e = /(primary|secondary|success|info|warning|danger|light-1|light-2|light-3|light-4|dark-1|dark-2|dark-3|dark-4|black|white|transparent)/;
|
|
867
|
-
return typeof r != "string" || !e.test(r) ? !1 :
|
|
867
|
+
return typeof r != "string" || !e.test(r) ? !1 : H.colorType.includes(this.classType);
|
|
868
868
|
}
|
|
869
869
|
validateSpaceType(r) {
|
|
870
870
|
const e = /(0|3xs|2xs|xs|sm|md|lg|xl|2xl|3xl)/;
|
|
871
|
-
return typeof r != "string" || !e.test(r) ? !1 :
|
|
871
|
+
return typeof r != "string" || !e.test(r) ? !1 : H.spacingType.includes(this.classType);
|
|
872
872
|
}
|
|
873
873
|
validateHeadingTextSizeType(r) {
|
|
874
874
|
const e = /(sm|md|lg|xl)/;
|
|
875
|
-
return typeof r != "string" || !e.test(r) ? !1 :
|
|
875
|
+
return typeof r != "string" || !e.test(r) ? !1 : H.headingSizeType.includes(
|
|
876
876
|
this.classType
|
|
877
877
|
);
|
|
878
878
|
}
|
|
879
879
|
validateBodyTextSizeType(r) {
|
|
880
880
|
const e = /(xs|sm|md|lg|xl)/;
|
|
881
|
-
return typeof r != "string" || !e.test(r) ? !1 :
|
|
881
|
+
return typeof r != "string" || !e.test(r) ? !1 : H.textType.includes(this.classType);
|
|
882
882
|
}
|
|
883
883
|
validateFontWeightType(r) {
|
|
884
884
|
const e = /(light|normal|bold)/;
|
|
885
|
-
return typeof r != "string" || !e.test(r) ? !1 :
|
|
885
|
+
return typeof r != "string" || !e.test(r) ? !1 : H.fontWeightType.includes(
|
|
886
886
|
this.classType
|
|
887
887
|
);
|
|
888
888
|
}
|
|
889
889
|
validateOpacityType(r) {
|
|
890
890
|
const e = /\b(0|[1-9]0|100)\b/;
|
|
891
|
-
return typeof r != "number" || !e.test(r.toString()) ? !1 :
|
|
891
|
+
return typeof r != "number" || !e.test(r.toString()) ? !1 : H.scaleType.includes(this.classType);
|
|
892
892
|
}
|
|
893
893
|
validateRangeType(r) {
|
|
894
894
|
const e = /\b([1-9]|1[0-2])\b/;
|
|
895
|
-
return typeof r != "number" || !e.test(r.toString()) ? !1 :
|
|
895
|
+
return typeof r != "number" || !e.test(r.toString()) ? !1 : H.borderWidthType.includes(
|
|
896
896
|
this.classType
|
|
897
897
|
);
|
|
898
898
|
}
|
|
899
899
|
validateAlignment(r) {
|
|
900
900
|
const e = /(left|center|right)/;
|
|
901
|
-
return typeof r != "string" || !e.test(r) ? !1 :
|
|
901
|
+
return typeof r != "string" || !e.test(r) ? !1 : H.textAlignType.includes(
|
|
902
902
|
this.classType
|
|
903
903
|
);
|
|
904
904
|
}
|
|
905
905
|
}
|
|
906
|
-
const
|
|
906
|
+
const H = {
|
|
907
907
|
colorType: [
|
|
908
908
|
"BGCOLOR",
|
|
909
909
|
"BEFOREBG",
|
|
@@ -962,18 +962,18 @@ const N = {
|
|
|
962
962
|
"GAP"
|
|
963
963
|
]
|
|
964
964
|
};
|
|
965
|
-
class
|
|
965
|
+
class ye {
|
|
966
966
|
constructor(r, e) {
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
this.classType = r, this.classValue = e, this.colorClass = new
|
|
967
|
+
n(this, "classType");
|
|
968
|
+
n(this, "classValue");
|
|
969
|
+
n(this, "colorClass");
|
|
970
|
+
n(this, "headingSizeClass");
|
|
971
|
+
n(this, "borderWidthClass");
|
|
972
|
+
n(this, "opacityClass");
|
|
973
|
+
n(this, "spacingClass");
|
|
974
|
+
n(this, "textClass");
|
|
975
|
+
n(this, "validator");
|
|
976
|
+
this.classType = r, this.classValue = e, this.colorClass = new be(), this.headingSizeClass = new fe(), this.borderWidthClass = new pe(), this.opacityClass = new ve(), this.spacingClass = new me(), this.textClass = new he(), this.validator = new xe(r);
|
|
977
977
|
}
|
|
978
978
|
generateClass() {
|
|
979
979
|
switch (this.classType) {
|
|
@@ -1284,7 +1284,7 @@ class Ce {
|
|
|
1284
1284
|
return this.validator.validateSpaceType(this.classValue) ? this.spacingClass.gap[this.classValue] : " ";
|
|
1285
1285
|
}
|
|
1286
1286
|
}
|
|
1287
|
-
const w = (s, r) => new
|
|
1287
|
+
const w = (s, r) => new ye(s, r).generateClass(), Ce = { class: "w-full flex justify-between gap-2xs" }, ke = { class: "w-full" }, ot = /* @__PURE__ */ A({
|
|
1288
1288
|
__name: "Alert",
|
|
1289
1289
|
props: {
|
|
1290
1290
|
color: { default: "danger" },
|
|
@@ -1295,39 +1295,39 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1295
1295
|
},
|
|
1296
1296
|
emits: ["close"],
|
|
1297
1297
|
setup(s, { expose: r, emit: e }) {
|
|
1298
|
-
const
|
|
1298
|
+
const l = s;
|
|
1299
1299
|
D();
|
|
1300
|
-
const t = e, d = C(
|
|
1301
|
-
const { color:
|
|
1302
|
-
return
|
|
1303
|
-
}), o = (
|
|
1304
|
-
d.value = !1, t("close",
|
|
1305
|
-
},
|
|
1300
|
+
const t = e, d = C(l.show), a = V(() => {
|
|
1301
|
+
const { color: u, rounded: c, shadow: m } = l, f = [w("BGCOLOR", u)];
|
|
1302
|
+
return c && f.push("rounded-md"), m && f.push("drop-shadow-md"), f.join(" ");
|
|
1303
|
+
}), o = (u) => {
|
|
1304
|
+
d.value = !1, t("close", u);
|
|
1305
|
+
}, i = () => {
|
|
1306
1306
|
d.value = !1;
|
|
1307
1307
|
};
|
|
1308
|
-
return
|
|
1309
|
-
() =>
|
|
1310
|
-
(
|
|
1311
|
-
d.value =
|
|
1308
|
+
return L(
|
|
1309
|
+
() => l.show,
|
|
1310
|
+
(u) => {
|
|
1311
|
+
d.value = u;
|
|
1312
1312
|
}
|
|
1313
1313
|
), r({
|
|
1314
|
-
close:
|
|
1315
|
-
}), (
|
|
1314
|
+
close: i
|
|
1315
|
+
}), (u, c) => d.value ? (g(), h("div", {
|
|
1316
1316
|
key: 0,
|
|
1317
1317
|
role: "alert",
|
|
1318
1318
|
"aria-live": "polite",
|
|
1319
1319
|
"aria-atomic": "true",
|
|
1320
|
-
class:
|
|
1320
|
+
class: v(["py-[0.75rem] px-[1.25rem] relative", [a.value]])
|
|
1321
1321
|
}, [
|
|
1322
|
-
y("div",
|
|
1323
|
-
y("div",
|
|
1324
|
-
B(
|
|
1322
|
+
y("div", Ce, [
|
|
1323
|
+
y("div", ke, [
|
|
1324
|
+
B(u.$slots, "default")
|
|
1325
1325
|
]),
|
|
1326
|
-
|
|
1326
|
+
u.dismissible ? (g(), h("button", {
|
|
1327
1327
|
key: 0,
|
|
1328
1328
|
onClick: o,
|
|
1329
1329
|
class: "flex items-center opacity-60 hover:opacity-40 transition-opacity duration-300 ease-linear"
|
|
1330
|
-
},
|
|
1330
|
+
}, c[0] || (c[0] = [
|
|
1331
1331
|
y("svg", {
|
|
1332
1332
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1333
1333
|
viewBox: "0 0 384 512",
|
|
@@ -1336,31 +1336,31 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1336
1336
|
}, [
|
|
1337
1337
|
y("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" })
|
|
1338
1338
|
], -1)
|
|
1339
|
-
]))) :
|
|
1339
|
+
]))) : T("", !0)
|
|
1340
1340
|
])
|
|
1341
|
-
], 2)) :
|
|
1341
|
+
], 2)) : T("", !0);
|
|
1342
1342
|
}
|
|
1343
|
-
}),
|
|
1343
|
+
}), U = (s, r) => de(
|
|
1344
1344
|
s,
|
|
1345
1345
|
(e) => {
|
|
1346
|
-
let
|
|
1347
|
-
for (let t = 0; t < e.length && !
|
|
1348
|
-
const d = e[t],
|
|
1349
|
-
if ((
|
|
1350
|
-
const
|
|
1351
|
-
r(
|
|
1346
|
+
let l = !1;
|
|
1347
|
+
for (let t = 0; t < e.length && !l; t++) {
|
|
1348
|
+
const d = e[t], a = d.type, o = d.attributeName, i = d.target;
|
|
1349
|
+
if ((a === "attributes" || o === "visible") && (l = !0), l) {
|
|
1350
|
+
const u = i.getAttribute("visible") === "true";
|
|
1351
|
+
r(u);
|
|
1352
1352
|
}
|
|
1353
1353
|
}
|
|
1354
1354
|
},
|
|
1355
1355
|
{ attributes: !0 }
|
|
1356
|
-
),
|
|
1356
|
+
), Te = A({
|
|
1357
1357
|
setup(s, { slots: r }) {
|
|
1358
1358
|
const e = C(!1);
|
|
1359
|
-
return
|
|
1359
|
+
return F(() => {
|
|
1360
1360
|
e.value = !0;
|
|
1361
1361
|
}), () => e.value && r.default ? r.default() : null;
|
|
1362
1362
|
}
|
|
1363
|
-
}),
|
|
1363
|
+
}), we = ["accordion", "visible"], Be = /* @__PURE__ */ A({
|
|
1364
1364
|
__name: "Collapse",
|
|
1365
1365
|
props: {
|
|
1366
1366
|
accordion: {},
|
|
@@ -1369,65 +1369,65 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1369
1369
|
},
|
|
1370
1370
|
emits: ["open", "close"],
|
|
1371
1371
|
setup(s, { expose: r, emit: e }) {
|
|
1372
|
-
const
|
|
1372
|
+
const l = s;
|
|
1373
1373
|
D();
|
|
1374
|
-
const t = e, d = C(),
|
|
1375
|
-
|
|
1376
|
-
},
|
|
1377
|
-
|
|
1374
|
+
const t = e, d = C(), a = C(l.visible), o = () => {
|
|
1375
|
+
a.value = !a.value;
|
|
1376
|
+
}, i = () => {
|
|
1377
|
+
a.value = !0;
|
|
1378
|
+
}, u = () => {
|
|
1379
|
+
a.value = !1;
|
|
1378
1380
|
}, c = () => {
|
|
1379
|
-
l.value = !1;
|
|
1380
|
-
}, b = () => {
|
|
1381
1381
|
t("open", !0);
|
|
1382
|
-
},
|
|
1382
|
+
}, m = () => {
|
|
1383
1383
|
t("close", !1);
|
|
1384
|
-
},
|
|
1385
|
-
|
|
1386
|
-
const _ = getComputedStyle(
|
|
1387
|
-
|
|
1388
|
-
},
|
|
1389
|
-
|
|
1390
|
-
},
|
|
1391
|
-
|
|
1384
|
+
}, f = (p) => {
|
|
1385
|
+
p.style.height = "auto", p.style.opacity = "0";
|
|
1386
|
+
const _ = getComputedStyle(p).height;
|
|
1387
|
+
p.style.height = "0px", p.offsetHeight, p.style.height = _, p.style.opacity = "1";
|
|
1388
|
+
}, O = (p) => {
|
|
1389
|
+
p.style.height = "auto", p.style.opacity = "1";
|
|
1390
|
+
}, N = (p) => {
|
|
1391
|
+
p.style.height = getComputedStyle(p).height, p.offsetHeight, p.style.height = "0px", p.style.opacity = "0";
|
|
1392
1392
|
};
|
|
1393
|
-
return
|
|
1394
|
-
|
|
1395
|
-
}),
|
|
1396
|
-
() =>
|
|
1397
|
-
(
|
|
1398
|
-
|
|
1393
|
+
return U(d, (p = !1) => {
|
|
1394
|
+
a.value = p;
|
|
1395
|
+
}), L(
|
|
1396
|
+
() => l.visible,
|
|
1397
|
+
(p) => {
|
|
1398
|
+
a.value = p;
|
|
1399
1399
|
}
|
|
1400
|
-
),
|
|
1401
|
-
|
|
1400
|
+
), L(a, (p) => {
|
|
1401
|
+
p === !0 ? c() : p === !1 && m();
|
|
1402
1402
|
}), r({
|
|
1403
1403
|
toggle: o,
|
|
1404
|
-
close:
|
|
1405
|
-
open:
|
|
1406
|
-
}), (
|
|
1407
|
-
accordion:
|
|
1408
|
-
visible:
|
|
1404
|
+
close: u,
|
|
1405
|
+
open: i
|
|
1406
|
+
}), (p, _) => (g(), h("div", {
|
|
1407
|
+
accordion: p.accordion,
|
|
1408
|
+
visible: a.value,
|
|
1409
1409
|
ref_key: "collapseRef",
|
|
1410
1410
|
ref: d
|
|
1411
1411
|
}, [
|
|
1412
|
-
S(R(
|
|
1412
|
+
S(R(Te), null, {
|
|
1413
1413
|
default: E(() => [
|
|
1414
1414
|
S(G, {
|
|
1415
1415
|
name: "collapse",
|
|
1416
1416
|
tag: "div",
|
|
1417
|
-
onEnter:
|
|
1418
|
-
onAfterEnter:
|
|
1419
|
-
onLeave:
|
|
1417
|
+
onEnter: f,
|
|
1418
|
+
onAfterEnter: O,
|
|
1419
|
+
onLeave: N,
|
|
1420
1420
|
class: "overflow-y-clip"
|
|
1421
1421
|
}, {
|
|
1422
1422
|
default: E(() => [
|
|
1423
1423
|
W(y("div", null, [
|
|
1424
1424
|
y("div", {
|
|
1425
|
-
class:
|
|
1425
|
+
class: v(p.className)
|
|
1426
1426
|
}, [
|
|
1427
|
-
B(
|
|
1427
|
+
B(p.$slots, "default", {}, void 0, !0)
|
|
1428
1428
|
], 2)
|
|
1429
1429
|
], 512), [
|
|
1430
|
-
[
|
|
1430
|
+
[P, a.value]
|
|
1431
1431
|
])
|
|
1432
1432
|
]),
|
|
1433
1433
|
_: 3
|
|
@@ -1435,14 +1435,14 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1435
1435
|
]),
|
|
1436
1436
|
_: 3
|
|
1437
1437
|
})
|
|
1438
|
-
], 8,
|
|
1438
|
+
], 8, we));
|
|
1439
1439
|
}
|
|
1440
|
-
}),
|
|
1440
|
+
}), I = (s, r) => {
|
|
1441
1441
|
const e = s.__vccOpts || s;
|
|
1442
|
-
for (const [
|
|
1443
|
-
e[
|
|
1442
|
+
for (const [l, t] of r)
|
|
1443
|
+
e[l] = t;
|
|
1444
1444
|
return e;
|
|
1445
|
-
}, it = /* @__PURE__ */
|
|
1445
|
+
}, it = /* @__PURE__ */ I(Be, [["__scopeId", "data-v-5d535dc4"]]), Re = A({
|
|
1446
1446
|
props: {
|
|
1447
1447
|
direction: {
|
|
1448
1448
|
type: String,
|
|
@@ -1470,13 +1470,13 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1470
1470
|
}
|
|
1471
1471
|
},
|
|
1472
1472
|
setup(s) {
|
|
1473
|
-
const r = "invisible opacity-0 group-hover:visible group-hover:opacity-100 z-[100] tooltip", e =
|
|
1474
|
-
const { color: d, textColor:
|
|
1473
|
+
const r = "invisible opacity-0 group-hover:visible group-hover:opacity-100 z-[100] tooltip", e = V(() => {
|
|
1474
|
+
const { color: d, textColor: a } = s;
|
|
1475
1475
|
return [
|
|
1476
1476
|
w("BGCOLOR", d),
|
|
1477
|
-
w("TEXTCOLOR",
|
|
1477
|
+
w("TEXTCOLOR", a)
|
|
1478
1478
|
].join(" ");
|
|
1479
|
-
}),
|
|
1479
|
+
}), l = V(() => ({ width: `${s.width}px` })), t = V(() => {
|
|
1480
1480
|
switch (s.direction) {
|
|
1481
1481
|
case "left":
|
|
1482
1482
|
return "tooltip-left";
|
|
@@ -1488,7 +1488,7 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1488
1488
|
return "tooltip-right";
|
|
1489
1489
|
}
|
|
1490
1490
|
});
|
|
1491
|
-
return () =>
|
|
1491
|
+
return () => le("div", {
|
|
1492
1492
|
class: [
|
|
1493
1493
|
r,
|
|
1494
1494
|
s.customClass,
|
|
@@ -1497,10 +1497,10 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1497
1497
|
],
|
|
1498
1498
|
role: "tooltip",
|
|
1499
1499
|
innerHTML: s.title,
|
|
1500
|
-
style: [
|
|
1500
|
+
style: [l.value]
|
|
1501
1501
|
});
|
|
1502
1502
|
}
|
|
1503
|
-
}),
|
|
1503
|
+
}), q = {
|
|
1504
1504
|
mounted(s, r) {
|
|
1505
1505
|
s.__ClickOutsideHandler = (e) => {
|
|
1506
1506
|
s === e.target || s.contains(e.target) || r.value(e);
|
|
@@ -1513,17 +1513,17 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1513
1513
|
mounted(s, r) {
|
|
1514
1514
|
s.__ClickToggleHandler = (e) => {
|
|
1515
1515
|
e.preventDefault();
|
|
1516
|
-
const
|
|
1516
|
+
const l = e.target;
|
|
1517
1517
|
let t;
|
|
1518
|
-
if (
|
|
1519
|
-
const o =
|
|
1520
|
-
t = document.getElementById(
|
|
1518
|
+
if (l.tagName === "A") {
|
|
1519
|
+
const o = l.getAttribute("href"), i = (o == null ? void 0 : o.charAt(0)) === "#" ? o.substring(1) : o;
|
|
1520
|
+
t = document.getElementById(i);
|
|
1521
1521
|
} else
|
|
1522
1522
|
t = document.getElementById(r.arg);
|
|
1523
1523
|
if (!t || t.hasAttribute("visible") === !1)
|
|
1524
1524
|
return;
|
|
1525
|
-
const
|
|
1526
|
-
t.setAttribute("visible",
|
|
1525
|
+
const a = t.getAttribute("visible") === "true" ? "false" : "true";
|
|
1526
|
+
t.setAttribute("visible", a);
|
|
1527
1527
|
}, s.addEventListener("click", s.__ClickToggleHandler);
|
|
1528
1528
|
},
|
|
1529
1529
|
unmounted(s) {
|
|
@@ -1533,28 +1533,28 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1533
1533
|
mounted(s, r) {
|
|
1534
1534
|
s.__HandleToggler = (e) => {
|
|
1535
1535
|
e.preventDefault();
|
|
1536
|
-
const
|
|
1536
|
+
const l = e.target;
|
|
1537
1537
|
let t;
|
|
1538
|
-
if (
|
|
1539
|
-
const o =
|
|
1540
|
-
t = document.getElementById(
|
|
1538
|
+
if (l.tagName === "A") {
|
|
1539
|
+
const o = l.getAttribute("href"), i = (o == null ? void 0 : o.charAt(0)) === "#" ? o.substring(1) : o;
|
|
1540
|
+
t = document.getElementById(i);
|
|
1541
1541
|
} else
|
|
1542
1542
|
t = document.getElementById(r.arg);
|
|
1543
1543
|
if (!t || t.hasAttribute("visible") === !1)
|
|
1544
1544
|
return;
|
|
1545
1545
|
if (!t.hasAttribute("accordion")) {
|
|
1546
|
-
const
|
|
1547
|
-
t.setAttribute("visible",
|
|
1546
|
+
const i = t.getAttribute("visible") === "true" ? "false" : "true";
|
|
1547
|
+
t.setAttribute("visible", i);
|
|
1548
1548
|
return;
|
|
1549
1549
|
}
|
|
1550
|
-
const d = t.getAttribute("accordion"),
|
|
1550
|
+
const d = t.getAttribute("accordion"), a = document.querySelectorAll(
|
|
1551
1551
|
`div[accordion="${d}"]`
|
|
1552
1552
|
);
|
|
1553
|
-
for (let o = 0; o <
|
|
1554
|
-
const
|
|
1555
|
-
if (
|
|
1556
|
-
const
|
|
1557
|
-
t.setAttribute("visible",
|
|
1553
|
+
for (let o = 0; o < a.length; o++) {
|
|
1554
|
+
const i = a[o].getAttribute("visible");
|
|
1555
|
+
if (a[o].id !== t.id && i === "true" && a[o].setAttribute("visible", "false"), a[o].id === t.id) {
|
|
1556
|
+
const c = t.getAttribute("visible") === "true" ? "false" : "true";
|
|
1557
|
+
t.setAttribute("visible", c);
|
|
1558
1558
|
}
|
|
1559
1559
|
}
|
|
1560
1560
|
}, s.addEventListener("click", s.__HandleToggler);
|
|
@@ -1564,30 +1564,30 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1564
1564
|
}
|
|
1565
1565
|
}, ct = {
|
|
1566
1566
|
mounted(s, r) {
|
|
1567
|
-
s.__HandleTooltip = (e,
|
|
1567
|
+
s.__HandleTooltip = (e, l) => {
|
|
1568
1568
|
e.classList.add("relative", "group", "overflow-visible");
|
|
1569
1569
|
let t;
|
|
1570
|
-
e.hasAttribute("title") && (t = e.getAttribute("title")), !e.hasAttribute("title") && typeof
|
|
1570
|
+
e.hasAttribute("title") && (t = e.getAttribute("title")), !e.hasAttribute("title") && typeof l.value < "u" && typeof l.value == "string" && (t = l.value), !e.hasAttribute("title") && typeof l.value < "u" && typeof l.value != "string" && typeof l.value.title == "string" && (t = l.value.title);
|
|
1571
1571
|
let d;
|
|
1572
|
-
e.hasAttribute("color") && (d = e.getAttribute("color")), !e.hasAttribute("color") && typeof
|
|
1573
|
-
let
|
|
1574
|
-
e.hasAttribute("text-color") && (
|
|
1572
|
+
e.hasAttribute("color") && (d = e.getAttribute("color")), !e.hasAttribute("color") && typeof l.value < "u" && typeof l.value != "string" && typeof l.value.color == "string" && (d = l.value.color);
|
|
1573
|
+
let a;
|
|
1574
|
+
e.hasAttribute("text-color") && (a = e.getAttribute("text-color")), !e.hasAttribute("text-color") && typeof l.value < "u" && typeof l.value != "string" && typeof l.value.textColor == "string" && (a = l.value.textColor);
|
|
1575
1575
|
let o;
|
|
1576
|
-
e.hasAttribute("tooltip-width") && (o = e.getAttribute("tooltip-width")), !e.hasAttribute("tooltip-width") && typeof
|
|
1577
|
-
let
|
|
1578
|
-
typeof
|
|
1579
|
-
let
|
|
1580
|
-
const
|
|
1581
|
-
|
|
1582
|
-
const
|
|
1583
|
-
direction:
|
|
1576
|
+
e.hasAttribute("tooltip-width") && (o = e.getAttribute("tooltip-width")), !e.hasAttribute("tooltip-width") && typeof l.value < "u" && typeof l.value != "string" && ["number", "string"].includes(typeof l.value.width) && (o = l.value.width);
|
|
1577
|
+
let i;
|
|
1578
|
+
typeof l.value < "u" && typeof l.value != "string" && typeof l.value.className == "string" && (i = l.value.className);
|
|
1579
|
+
let u;
|
|
1580
|
+
const c = Object.keys(l.modifiers);
|
|
1581
|
+
c.length > 0 && (u = c[0]);
|
|
1582
|
+
const m = S(Re, {
|
|
1583
|
+
direction: u,
|
|
1584
1584
|
title: t,
|
|
1585
1585
|
color: d,
|
|
1586
|
-
textColor:
|
|
1586
|
+
textColor: a,
|
|
1587
1587
|
width: o,
|
|
1588
|
-
customClass:
|
|
1588
|
+
customClass: i
|
|
1589
1589
|
});
|
|
1590
|
-
J(
|
|
1590
|
+
J(m, e);
|
|
1591
1591
|
}, s.__UnmountTooltip = (e) => {
|
|
1592
1592
|
J(null, e);
|
|
1593
1593
|
}, s.__HandleTooltip(s, r);
|
|
@@ -1598,73 +1598,73 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1598
1598
|
unmounted(s) {
|
|
1599
1599
|
s.__UnmountTooltip(s);
|
|
1600
1600
|
}
|
|
1601
|
-
},
|
|
1601
|
+
}, Z = Symbol(), gt = /* @__PURE__ */ A({
|
|
1602
1602
|
__name: "DropdownContainer",
|
|
1603
1603
|
emits: ["click-outside", "toggle"],
|
|
1604
1604
|
setup(s, { emit: r }) {
|
|
1605
1605
|
D();
|
|
1606
|
-
const e = r,
|
|
1607
|
-
|
|
1606
|
+
const e = r, l = C(), t = C(!1), d = C(0);
|
|
1607
|
+
Y(Z, {
|
|
1608
1608
|
active: t,
|
|
1609
1609
|
buttonHeight: d,
|
|
1610
1610
|
closeDropdown: () => {
|
|
1611
1611
|
t.value = !1;
|
|
1612
1612
|
}
|
|
1613
1613
|
});
|
|
1614
|
-
const o = (
|
|
1615
|
-
t.value = !t.value, e("toggle",
|
|
1616
|
-
},
|
|
1617
|
-
t.value = !1, e("click-outside",
|
|
1618
|
-
},
|
|
1614
|
+
const o = (c) => {
|
|
1615
|
+
t.value = !t.value, e("toggle", c);
|
|
1616
|
+
}, i = (c) => {
|
|
1617
|
+
t.value = !1, e("click-outside", c);
|
|
1618
|
+
}, u = () => {
|
|
1619
1619
|
t.value = !1;
|
|
1620
1620
|
};
|
|
1621
|
-
return
|
|
1622
|
-
d.value =
|
|
1623
|
-
}), (
|
|
1621
|
+
return F(() => {
|
|
1622
|
+
d.value = l.value.scrollHeight;
|
|
1623
|
+
}), (c, m) => W((g(), h("div", {
|
|
1624
1624
|
class: "relative",
|
|
1625
1625
|
ref_key: "dropdownTarget",
|
|
1626
|
-
ref:
|
|
1627
|
-
onKeyup:
|
|
1626
|
+
ref: l,
|
|
1627
|
+
onKeyup: oe(u, ["esc"])
|
|
1628
1628
|
}, [
|
|
1629
|
-
B(
|
|
1629
|
+
B(c.$slots, "toggler", {
|
|
1630
1630
|
toggle: o,
|
|
1631
1631
|
dropdownState: t.value
|
|
1632
1632
|
}),
|
|
1633
|
-
B(
|
|
1633
|
+
B(c.$slots, "default")
|
|
1634
1634
|
], 32)), [
|
|
1635
|
-
[R(
|
|
1635
|
+
[R(q), i]
|
|
1636
1636
|
]);
|
|
1637
1637
|
}
|
|
1638
|
-
}),
|
|
1638
|
+
}), Oe = /* @__PURE__ */ A({
|
|
1639
1639
|
__name: "DropdownContent",
|
|
1640
1640
|
props: {
|
|
1641
1641
|
className: { default: "" }
|
|
1642
1642
|
},
|
|
1643
1643
|
setup(s) {
|
|
1644
|
-
const { height: r } =
|
|
1644
|
+
const { height: r } = ce();
|
|
1645
1645
|
D();
|
|
1646
|
-
const e = C(), { active:
|
|
1647
|
-
|
|
1648
|
-
),
|
|
1649
|
-
if (!(!
|
|
1646
|
+
const e = C(), { active: l, buttonHeight: t, closeDropdown: d } = j(
|
|
1647
|
+
Z
|
|
1648
|
+
), a = V(() => ({ "--button-height": `${t}px` })), o = V(() => {
|
|
1649
|
+
if (!(!l || !e.value) && r.value - e.value.getBoundingClientRect().bottom < 0)
|
|
1650
1650
|
return "dropup-bottom";
|
|
1651
1651
|
});
|
|
1652
|
-
return (
|
|
1652
|
+
return (i, u) => (g(), z(G, { name: "dropdown-content" }, {
|
|
1653
1653
|
default: E(() => [
|
|
1654
|
-
R(
|
|
1654
|
+
R(l) ? (g(), h("div", {
|
|
1655
1655
|
key: 0,
|
|
1656
1656
|
ref_key: "contentRef",
|
|
1657
1657
|
ref: e,
|
|
1658
|
-
class:
|
|
1659
|
-
style:
|
|
1658
|
+
class: v(["absolute my-2xs max-w-[14rem] w-max overflow-hidden", [o.value, i.className]]),
|
|
1659
|
+
style: X(a.value)
|
|
1660
1660
|
}, [
|
|
1661
|
-
B(
|
|
1662
|
-
], 6)) :
|
|
1661
|
+
B(i.$slots, "default", { itemClick: R(d) }, void 0, !0)
|
|
1662
|
+
], 6)) : T("", !0)
|
|
1663
1663
|
]),
|
|
1664
1664
|
_: 3
|
|
1665
1665
|
}));
|
|
1666
1666
|
}
|
|
1667
|
-
}), ut = /* @__PURE__ */
|
|
1667
|
+
}), ut = /* @__PURE__ */ I(Oe, [["__scopeId", "data-v-85c54efe"]]), Ve = ["aria-label", "aria-expanded"], Ae = /* @__PURE__ */ A({
|
|
1668
1668
|
__name: "NavDrawer",
|
|
1669
1669
|
props: {
|
|
1670
1670
|
color: { default: "dark-2" },
|
|
@@ -1674,46 +1674,48 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1674
1674
|
},
|
|
1675
1675
|
emits: ["hbg-click"],
|
|
1676
1676
|
setup(s, { emit: r }) {
|
|
1677
|
-
const e = s,
|
|
1678
|
-
|
|
1679
|
-
}, d =
|
|
1677
|
+
const e = s, l = r, t = (i) => {
|
|
1678
|
+
l("hbg-click", i);
|
|
1679
|
+
}, d = V({
|
|
1680
1680
|
get() {
|
|
1681
1681
|
return e.toggle;
|
|
1682
1682
|
},
|
|
1683
|
-
set(
|
|
1684
|
-
return
|
|
1683
|
+
set(i) {
|
|
1684
|
+
return i;
|
|
1685
1685
|
}
|
|
1686
|
-
}),
|
|
1687
|
-
const
|
|
1688
|
-
w("RINGCOLOR",
|
|
1689
|
-
w("OFFSETRING",
|
|
1686
|
+
}), a = (i, u, c) => {
|
|
1687
|
+
const m = [
|
|
1688
|
+
w("RINGCOLOR", i),
|
|
1689
|
+
w("OFFSETRING", c)
|
|
1690
1690
|
];
|
|
1691
|
-
return
|
|
1692
|
-
}, o = (
|
|
1693
|
-
w("BGCOLOR",
|
|
1694
|
-
w("BEFOREBG",
|
|
1695
|
-
w("AFTERBG",
|
|
1691
|
+
return u && (m.push(w("BORDER", i)), m.push("border")), m.join(" ");
|
|
1692
|
+
}, o = (i) => [
|
|
1693
|
+
w("BGCOLOR", i),
|
|
1694
|
+
w("BEFOREBG", i),
|
|
1695
|
+
w("AFTERBG", i)
|
|
1696
1696
|
].join(" ");
|
|
1697
|
-
return (
|
|
1698
|
-
class:
|
|
1699
|
-
onClick: t
|
|
1697
|
+
return (i, u) => (g(), h("button", {
|
|
1698
|
+
class: v(["p-3xs rounded-md aspect-square outline-none focus:ring-4 ring-offset-2 transition-all duration-300 ease-linear hover:opacity-70 focus:opacity-70 hamburger__button", a(i.color, i.displayBorder, i.navColor)]),
|
|
1699
|
+
onClick: t,
|
|
1700
|
+
"aria-label": i.toggle ? "Close" : "Open",
|
|
1701
|
+
"aria-expanded": i.toggle
|
|
1700
1702
|
}, [
|
|
1701
1703
|
W(y("input", {
|
|
1702
1704
|
type: "checkbox",
|
|
1703
|
-
"onUpdate:modelValue":
|
|
1705
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => d.value = c),
|
|
1704
1706
|
class: "hidden hamburger__checkbox"
|
|
1705
1707
|
}, null, 512), [
|
|
1706
|
-
[
|
|
1708
|
+
[ie, d.value]
|
|
1707
1709
|
]),
|
|
1708
1710
|
y("div", {
|
|
1709
|
-
class:
|
|
1711
|
+
class: v(["relative h-[3px] w-sm hamburger__icon before:w-sm after:w-sm before:h-[3px] after:h-[3px] transition-all duration-300 ease-linear", o(i.color)])
|
|
1710
1712
|
}, null, 2)
|
|
1711
|
-
],
|
|
1713
|
+
], 10, Ve));
|
|
1712
1714
|
}
|
|
1713
|
-
}),
|
|
1715
|
+
}), ee = /* @__PURE__ */ I(Ae, [["__scopeId", "data-v-1b9c33a1"]]), _e = { class: "flex flex-wrap items-center py-xs md:py-2xs mx-xs md:mx-sm align-middle justify-between sm:max-w-[640px] md:max-w-[768px] lg:max-w-[1024px] xl:max-w-[1280px] 2xl:max-w-[1536px]" }, Le = { class: "min-h-[24px]" }, Se = { class: "ml-auto" }, Ee = {
|
|
1714
1716
|
key: 0,
|
|
1715
1717
|
class: "hidden lg:block"
|
|
1716
|
-
}, De = { class: "overflow-hidden lg:hidden" }, Ge = { key: 0 }, Ie = /* @__PURE__ */
|
|
1718
|
+
}, De = { class: "overflow-hidden lg:hidden" }, Ge = { key: 0 }, Ie = /* @__PURE__ */ A({
|
|
1717
1719
|
__name: "HeaderHorizontal",
|
|
1718
1720
|
props: {
|
|
1719
1721
|
bgColor: { default: "light-1" },
|
|
@@ -1726,77 +1728,77 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1726
1728
|
},
|
|
1727
1729
|
emits: ["toggle-drawer"],
|
|
1728
1730
|
setup(s, { expose: r, emit: e }) {
|
|
1729
|
-
const
|
|
1731
|
+
const l = s, t = D(), d = C(!1), { y: a } = ge(), o = e, i = () => {
|
|
1730
1732
|
d.value = !1;
|
|
1731
|
-
},
|
|
1732
|
-
d.value = !d.value, o("toggle-drawer",
|
|
1733
|
-
},
|
|
1734
|
-
|
|
1735
|
-
const
|
|
1736
|
-
|
|
1737
|
-
},
|
|
1738
|
-
|
|
1739
|
-
},
|
|
1740
|
-
|
|
1741
|
-
},
|
|
1742
|
-
const { bgColor:
|
|
1743
|
-
return
|
|
1744
|
-
}),
|
|
1745
|
-
const { fadeInOnScroll:
|
|
1746
|
-
return
|
|
1733
|
+
}, u = (b) => {
|
|
1734
|
+
d.value = !d.value, o("toggle-drawer", b, d.value);
|
|
1735
|
+
}, c = (b) => {
|
|
1736
|
+
b.style.height = "auto";
|
|
1737
|
+
const p = getComputedStyle(b).height;
|
|
1738
|
+
b.style.height = "0px", b.offsetHeight, b.style.height = p;
|
|
1739
|
+
}, m = (b) => {
|
|
1740
|
+
b.style.height = "auto";
|
|
1741
|
+
}, f = (b) => {
|
|
1742
|
+
b.style.height = getComputedStyle(b).height, b.offsetHeight, b.style.height = "0px";
|
|
1743
|
+
}, O = V(() => {
|
|
1744
|
+
const { bgColor: b, sticky: p } = l, _ = [w("BGCOLOR", b)];
|
|
1745
|
+
return p === "all" ? (_.push("sticky top-0"), _.join(" ")) : p === "tablet" ? (_.push("md:sticky top-0"), _.join(" ")) : (p === "pc" && _.push("lg:sticky top-0"), _.join(" "));
|
|
1746
|
+
}), N = V(() => {
|
|
1747
|
+
const { fadeInOnScroll: b, scrollDistance: p } = l;
|
|
1748
|
+
return b ? a.value >= p ? "lg:shadow-md bg-opacity-70" : "bg-opacity-100" : "";
|
|
1747
1749
|
});
|
|
1748
1750
|
return r({
|
|
1749
|
-
headerClose:
|
|
1750
|
-
}), (
|
|
1751
|
-
class:
|
|
1751
|
+
headerClose: i
|
|
1752
|
+
}), (b, p) => (g(), h("header", {
|
|
1753
|
+
class: v(["w-full items-center z-50 transition ease-in duration-500 delay-150", [N.value, O.value]])
|
|
1752
1754
|
}, [
|
|
1753
1755
|
y("nav", _e, [
|
|
1754
1756
|
y("div", Le, [
|
|
1755
|
-
B(
|
|
1757
|
+
B(b.$slots, "content", {}, void 0, !0)
|
|
1756
1758
|
]),
|
|
1757
1759
|
y("div", Se, [
|
|
1758
|
-
S(
|
|
1759
|
-
color:
|
|
1760
|
-
"display-border":
|
|
1760
|
+
S(ee, {
|
|
1761
|
+
color: b.drawerBtnColor,
|
|
1762
|
+
"display-border": b.drawerBtnBorder,
|
|
1761
1763
|
class: "block lg:hidden",
|
|
1762
|
-
onHbgClick:
|
|
1764
|
+
onHbgClick: u,
|
|
1763
1765
|
toggle: d.value,
|
|
1764
|
-
"nav-color":
|
|
1766
|
+
"nav-color": b.bgColor
|
|
1765
1767
|
}, null, 8, ["color", "display-border", "toggle", "nav-color"]),
|
|
1766
|
-
t["content-right"] ? (g(),
|
|
1767
|
-
B(
|
|
1768
|
-
])) :
|
|
1768
|
+
t["content-right"] ? (g(), h("div", Ee, [
|
|
1769
|
+
B(b.$slots, "content-right", {}, void 0, !0)
|
|
1770
|
+
])) : T("", !0)
|
|
1769
1771
|
])
|
|
1770
1772
|
]),
|
|
1771
1773
|
y("div", De, [
|
|
1772
1774
|
S(G, {
|
|
1773
1775
|
name: "collapse",
|
|
1774
|
-
onEnter:
|
|
1775
|
-
onAfterEnter:
|
|
1776
|
-
onLeave:
|
|
1776
|
+
onEnter: c,
|
|
1777
|
+
onAfterEnter: m,
|
|
1778
|
+
onLeave: f
|
|
1777
1779
|
}, {
|
|
1778
1780
|
default: E(() => [
|
|
1779
|
-
d.value ? (g(),
|
|
1781
|
+
d.value ? (g(), h("div", {
|
|
1780
1782
|
key: 0,
|
|
1781
|
-
class:
|
|
1783
|
+
class: v(["bg-opacity-80 rounded-md my-2xs mx-xs overflow-hidden", R(w)("BGCOLOR", b.mobileMenuBgColor)])
|
|
1782
1784
|
}, [
|
|
1783
|
-
t["mobile-content"] ? (g(),
|
|
1784
|
-
B(
|
|
1785
|
-
])) :
|
|
1786
|
-
], 2)) :
|
|
1785
|
+
t["mobile-content"] ? (g(), h("div", Ge, [
|
|
1786
|
+
B(b.$slots, "mobile-content", { headerClose: i }, void 0, !0)
|
|
1787
|
+
])) : T("", !0)
|
|
1788
|
+
], 2)) : T("", !0)
|
|
1787
1789
|
]),
|
|
1788
1790
|
_: 3
|
|
1789
1791
|
})
|
|
1790
1792
|
])
|
|
1791
1793
|
], 2));
|
|
1792
1794
|
}
|
|
1793
|
-
}), ht = /* @__PURE__ */
|
|
1795
|
+
}), ht = /* @__PURE__ */ I(Ie, [["__scopeId", "data-v-56d20376"]]), He = { class: "flex flex-col justify-between h-full" }, Ne = { key: 0 }, We = { class: "block lg:hidden relative z-40" }, $e = {
|
|
1794
1796
|
key: 0,
|
|
1795
1797
|
class: "block fixed lg:hidden top-0 right-0 mr-xs mt-xs z-50"
|
|
1796
1798
|
}, Me = {
|
|
1797
1799
|
key: 0,
|
|
1798
1800
|
class: "h-full"
|
|
1799
|
-
}, Fe = /* @__PURE__ */
|
|
1801
|
+
}, Fe = /* @__PURE__ */ A({
|
|
1800
1802
|
__name: "HeaderVertical",
|
|
1801
1803
|
props: {
|
|
1802
1804
|
bgColor: { default: "light-1" },
|
|
@@ -1806,54 +1808,59 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1806
1808
|
},
|
|
1807
1809
|
emits: ["toggle-drawer"],
|
|
1808
1810
|
setup(s, { expose: r, emit: e }) {
|
|
1809
|
-
const
|
|
1810
|
-
|
|
1811
|
-
},
|
|
1812
|
-
|
|
1813
|
-
},
|
|
1814
|
-
return
|
|
1815
|
-
|
|
1816
|
-
|
|
1811
|
+
const l = s, t = D(), d = e, a = C(!1), o = (c) => {
|
|
1812
|
+
a.value = !a.value, d("toggle-drawer", c, a.value);
|
|
1813
|
+
}, i = () => {
|
|
1814
|
+
a.value = !1;
|
|
1815
|
+
}, u = V(() => ({ "--header-width": `${l.headerWidth}px` }));
|
|
1816
|
+
return F(() => {
|
|
1817
|
+
const c = K(document);
|
|
1818
|
+
L(a, (m) => {
|
|
1819
|
+
c.value = m;
|
|
1820
|
+
});
|
|
1821
|
+
}), r({
|
|
1822
|
+
headerClose: i
|
|
1823
|
+
}), (c, m) => (g(), h("header", {
|
|
1817
1824
|
class: "relative",
|
|
1818
|
-
style:
|
|
1825
|
+
style: X(u.value)
|
|
1819
1826
|
}, [
|
|
1820
1827
|
y("nav", {
|
|
1821
|
-
class:
|
|
1828
|
+
class: v(["hidden lg:block lg:sticky lg:top-0 lg:left-0 lg:h-[100vh] py-sm header-desktop overscroll-contain overflow-y-scroll", [R(w)("BGCOLOR", c.bgColor)]])
|
|
1822
1829
|
}, [
|
|
1823
1830
|
y("div", He, [
|
|
1824
1831
|
y("div", null, [
|
|
1825
|
-
B(
|
|
1832
|
+
B(c.$slots, "content", {}, void 0, !0)
|
|
1826
1833
|
]),
|
|
1827
|
-
t["content-bottom"] ? (g(),
|
|
1828
|
-
B(
|
|
1829
|
-
])) :
|
|
1834
|
+
t["content-bottom"] ? (g(), h("div", Ne, [
|
|
1835
|
+
B(c.$slots, "content-bottom", {}, void 0, !0)
|
|
1836
|
+
])) : T("", !0)
|
|
1830
1837
|
])
|
|
1831
1838
|
], 2),
|
|
1832
|
-
(g(),
|
|
1839
|
+
(g(), z(ne, { to: "body" }, [
|
|
1833
1840
|
y("div", We, [
|
|
1834
|
-
t["mobile-content"] ? (g(),
|
|
1835
|
-
S(
|
|
1836
|
-
color:
|
|
1837
|
-
"display-border":
|
|
1841
|
+
t["mobile-content"] ? (g(), h("div", $e, [
|
|
1842
|
+
S(ee, {
|
|
1843
|
+
color: c.drawerBtnColor,
|
|
1844
|
+
"display-border": c.drawerBtnBorder,
|
|
1838
1845
|
class: "block lg:hidden relative",
|
|
1839
|
-
onHbgClick:
|
|
1840
|
-
toggle:
|
|
1841
|
-
"nav-color":
|
|
1846
|
+
onHbgClick: o,
|
|
1847
|
+
toggle: a.value,
|
|
1848
|
+
"nav-color": c.bgColor
|
|
1842
1849
|
}, null, 8, ["color", "display-border", "toggle", "nav-color"])
|
|
1843
|
-
])) :
|
|
1850
|
+
])) : T("", !0),
|
|
1844
1851
|
S(G, {
|
|
1845
1852
|
name: "slide-down",
|
|
1846
1853
|
appear: ""
|
|
1847
1854
|
}, {
|
|
1848
1855
|
default: E(() => [
|
|
1849
|
-
|
|
1856
|
+
a.value ? (g(), h("nav", {
|
|
1850
1857
|
key: 0,
|
|
1851
|
-
class:
|
|
1858
|
+
class: v(["fixed inset-0 overflow-y-scroll overscroll-contain py-lg px-sm", R(w)("BGCOLOR", c.bgColor)])
|
|
1852
1859
|
}, [
|
|
1853
|
-
t["mobile-content"] ? (g(),
|
|
1854
|
-
B(
|
|
1855
|
-
])) :
|
|
1856
|
-
], 2)) :
|
|
1860
|
+
t["mobile-content"] ? (g(), h("div", Me, [
|
|
1861
|
+
B(c.$slots, "mobile-content", { headerClose: i }, void 0, !0)
|
|
1862
|
+
])) : T("", !0)
|
|
1863
|
+
], 2)) : T("", !0)
|
|
1857
1864
|
]),
|
|
1858
1865
|
_: 3
|
|
1859
1866
|
})
|
|
@@ -1861,7 +1868,7 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1861
1868
|
]))
|
|
1862
1869
|
], 4));
|
|
1863
1870
|
}
|
|
1864
|
-
}), pt = /* @__PURE__ */
|
|
1871
|
+
}), pt = /* @__PURE__ */ I(Fe, [["__scopeId", "data-v-c48d5ce1"]]), Xe = ["visible"], ze = {
|
|
1865
1872
|
key: 0,
|
|
1866
1873
|
class: "vertical-placement fixed w-full max-w-md z-[110] px-xs"
|
|
1867
1874
|
}, Pe = {
|
|
@@ -1870,7 +1877,7 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1870
1877
|
}, Ye = {
|
|
1871
1878
|
key: 1,
|
|
1872
1879
|
class: "sticky bottom-0"
|
|
1873
|
-
}, je = /* @__PURE__ */
|
|
1880
|
+
}, je = /* @__PURE__ */ A({
|
|
1874
1881
|
__name: "Modal",
|
|
1875
1882
|
props: {
|
|
1876
1883
|
title: {},
|
|
@@ -1885,89 +1892,94 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1885
1892
|
},
|
|
1886
1893
|
emits: ["open", "close"],
|
|
1887
1894
|
setup(s, { expose: r, emit: e }) {
|
|
1888
|
-
const
|
|
1889
|
-
o.value = !o.value
|
|
1895
|
+
const l = s, t = D(), d = e, a = C(), o = C(l.visible), i = C(!1), u = () => {
|
|
1896
|
+
o.value = !o.value;
|
|
1897
|
+
}, c = () => {
|
|
1898
|
+
o.value = !0;
|
|
1899
|
+
}, m = () => {
|
|
1900
|
+
i.value === !0 && (o.value = !1);
|
|
1890
1901
|
}, f = () => {
|
|
1891
|
-
o.value = !0, c.value = !0;
|
|
1892
|
-
}, p = () => {
|
|
1893
|
-
n.value === !0 && (o.value = !1, c.value = !1);
|
|
1894
|
-
}, L = () => {
|
|
1895
1902
|
d("open", !0);
|
|
1896
|
-
},
|
|
1903
|
+
}, O = () => {
|
|
1897
1904
|
d("close", !1);
|
|
1898
|
-
},
|
|
1905
|
+
}, N = V(() => {
|
|
1899
1906
|
let x;
|
|
1900
|
-
return
|
|
1901
|
-
}),
|
|
1902
|
-
|
|
1903
|
-
},
|
|
1904
|
-
|
|
1907
|
+
return l.placement === "top" ? x = 25 : l.placement === "bottom" ? x = 75 : x = 50, { "--vertical-placement": x + "%" };
|
|
1908
|
+
}), b = () => {
|
|
1909
|
+
i.value = !0;
|
|
1910
|
+
}, p = () => {
|
|
1911
|
+
i.value = !1;
|
|
1905
1912
|
};
|
|
1906
|
-
return
|
|
1907
|
-
o.value = x
|
|
1908
|
-
}),
|
|
1909
|
-
() =>
|
|
1913
|
+
return U(a, (x = !1) => {
|
|
1914
|
+
o.value = x;
|
|
1915
|
+
}), L(
|
|
1916
|
+
() => l.visible,
|
|
1910
1917
|
(x) => {
|
|
1911
1918
|
o.value = x;
|
|
1912
1919
|
}
|
|
1913
|
-
),
|
|
1914
|
-
x === !0 ?
|
|
1920
|
+
), L(o, (x) => {
|
|
1921
|
+
x === !0 ? f() : x === !1 && i.value === !0 && O();
|
|
1922
|
+
}), F(() => {
|
|
1923
|
+
const x = K(document);
|
|
1924
|
+
L(o, ($) => {
|
|
1925
|
+
x.value = $;
|
|
1926
|
+
});
|
|
1915
1927
|
}), r({
|
|
1916
|
-
toggle:
|
|
1917
|
-
close:
|
|
1918
|
-
open:
|
|
1919
|
-
}), (x,
|
|
1920
|
-
style:
|
|
1928
|
+
toggle: u,
|
|
1929
|
+
close: m,
|
|
1930
|
+
open: c
|
|
1931
|
+
}), (x, $) => (g(), h("div", {
|
|
1932
|
+
style: X(N.value),
|
|
1921
1933
|
visible: o.value,
|
|
1922
1934
|
ref_key: "modalRef",
|
|
1923
|
-
ref:
|
|
1935
|
+
ref: a
|
|
1924
1936
|
}, [
|
|
1925
|
-
x.noBackdrop ?
|
|
1937
|
+
x.noBackdrop ? T("", !0) : (g(), z(G, {
|
|
1926
1938
|
key: 0,
|
|
1927
1939
|
name: "fade",
|
|
1928
1940
|
appear: "",
|
|
1929
1941
|
tag: "div"
|
|
1930
1942
|
}, {
|
|
1931
1943
|
default: E(() => [
|
|
1932
|
-
o.value ? (g(),
|
|
1944
|
+
o.value ? (g(), h("section", {
|
|
1933
1945
|
key: 0,
|
|
1934
|
-
onClick:
|
|
1935
|
-
class:
|
|
1936
|
-
}, null, 2)) :
|
|
1946
|
+
onClick: m,
|
|
1947
|
+
class: v(["fixed inset-0 overflow-y-auto bg-opacity-70 backdrop-blur z-[100]", R(w)("BGCOLOR", x.backdropColor)])
|
|
1948
|
+
}, null, 2)) : T("", !0)
|
|
1937
1949
|
]),
|
|
1938
1950
|
_: 1
|
|
1939
1951
|
})),
|
|
1940
1952
|
S(G, {
|
|
1941
1953
|
name: "slide-down",
|
|
1942
1954
|
tag: "div",
|
|
1943
|
-
onAfterEnter:
|
|
1944
|
-
onAfterLeave:
|
|
1955
|
+
onAfterEnter: b,
|
|
1956
|
+
onAfterLeave: p,
|
|
1945
1957
|
appear: ""
|
|
1946
1958
|
}, {
|
|
1947
1959
|
default: E(() => [
|
|
1948
|
-
o.value ? (g(),
|
|
1949
|
-
W((g(),
|
|
1950
|
-
class:
|
|
1960
|
+
o.value ? (g(), h("div", ze, [
|
|
1961
|
+
W((g(), h("div", {
|
|
1962
|
+
class: v([[R(w)("BGCOLOR", x.color), x.className], "relative overscroll-contain overflow-y-scroll max-h-[80vh] md:max-h-[60vh]"])
|
|
1951
1963
|
}, [
|
|
1952
|
-
x.noHeader ?
|
|
1964
|
+
x.noHeader ? T("", !0) : (g(), h("div", Pe, [
|
|
1953
1965
|
B(x.$slots, "header", {
|
|
1954
|
-
close:
|
|
1966
|
+
close: m,
|
|
1955
1967
|
status: o.value
|
|
1956
1968
|
}, () => [
|
|
1957
1969
|
y("div", {
|
|
1958
|
-
class:
|
|
1970
|
+
class: v(["flex justify-between items-center p-xs border-b-2", R(w)("BGCOLOR", x.color)])
|
|
1959
1971
|
}, [
|
|
1960
|
-
x.title ? (g(),
|
|
1972
|
+
x.title ? (g(), h("h3", {
|
|
1961
1973
|
key: 0,
|
|
1962
|
-
class:
|
|
1963
|
-
},
|
|
1964
|
-
y("button", { onClick:
|
|
1965
|
-
(g(),
|
|
1974
|
+
class: v(["h3-md", R(w)("TEXTCOLOR", x.titleColor)])
|
|
1975
|
+
}, Q(x.title), 3)) : T("", !0),
|
|
1976
|
+
y("button", { onClick: m }, [
|
|
1977
|
+
(g(), h("svg", {
|
|
1966
1978
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1967
1979
|
height: "1em",
|
|
1968
1980
|
viewBox: "0 0 384 512",
|
|
1969
|
-
class:
|
|
1970
|
-
},
|
|
1981
|
+
class: v(["hover:opacity-75 focus:opacity-75 transition-opacity duration-300 ease-in h-sm", [R(w)("SVGFILL", x.titleColor)]])
|
|
1982
|
+
}, $[0] || ($[0] = [
|
|
1971
1983
|
y("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
1972
1984
|
]), 2))
|
|
1973
1985
|
])
|
|
@@ -1975,25 +1987,25 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
1975
1987
|
], !0)
|
|
1976
1988
|
])),
|
|
1977
1989
|
B(x.$slots, "body", {
|
|
1978
|
-
close:
|
|
1990
|
+
close: m,
|
|
1979
1991
|
status: o.value
|
|
1980
1992
|
}, void 0, !0),
|
|
1981
|
-
t.footer ? (g(),
|
|
1993
|
+
t.footer ? (g(), h("div", Ye, [
|
|
1982
1994
|
B(x.$slots, "footer", {
|
|
1983
|
-
close:
|
|
1995
|
+
close: m,
|
|
1984
1996
|
status: o.value
|
|
1985
1997
|
}, void 0, !0)
|
|
1986
|
-
])) :
|
|
1998
|
+
])) : T("", !0)
|
|
1987
1999
|
], 2)), [
|
|
1988
|
-
[R(
|
|
2000
|
+
[R(q), m]
|
|
1989
2001
|
])
|
|
1990
|
-
])) :
|
|
2002
|
+
])) : T("", !0)
|
|
1991
2003
|
]),
|
|
1992
2004
|
_: 3
|
|
1993
2005
|
})
|
|
1994
2006
|
], 12, Xe));
|
|
1995
2007
|
}
|
|
1996
|
-
}), bt = /* @__PURE__ */
|
|
2008
|
+
}), bt = /* @__PURE__ */ I(je, [["__scopeId", "data-v-1302a12c"]]), Ke = ["visible"], Ue = { class: "sidebar-body-height" }, qe = /* @__PURE__ */ A({
|
|
1997
2009
|
__name: "Sidebar",
|
|
1998
2010
|
props: {
|
|
1999
2011
|
title: {},
|
|
@@ -2009,146 +2021,151 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
2009
2021
|
},
|
|
2010
2022
|
emits: ["open", "close"],
|
|
2011
2023
|
setup(s, { expose: r, emit: e }) {
|
|
2012
|
-
const
|
|
2013
|
-
|
|
2014
|
-
},
|
|
2015
|
-
|
|
2016
|
-
},
|
|
2017
|
-
o.value === !0 && (
|
|
2018
|
-
},
|
|
2024
|
+
const l = s, t = D(), d = e, a = C(l.visible), o = C(!1), i = C(), u = C(), c = C(), m = () => {
|
|
2025
|
+
a.value = !a.value;
|
|
2026
|
+
}, f = () => {
|
|
2027
|
+
a.value = !0;
|
|
2028
|
+
}, O = () => {
|
|
2029
|
+
o.value === !0 && (a.value = !1);
|
|
2030
|
+
}, N = () => {
|
|
2019
2031
|
d("open", !0);
|
|
2020
|
-
},
|
|
2032
|
+
}, b = () => {
|
|
2021
2033
|
d("close", !1);
|
|
2022
|
-
},
|
|
2023
|
-
"--sidebar-width": `${
|
|
2024
|
-
"--header-height":
|
|
2025
|
-
"--footer-height":
|
|
2026
|
-
})),
|
|
2034
|
+
}, p = V(() => ({
|
|
2035
|
+
"--sidebar-width": `${l.width}px`,
|
|
2036
|
+
"--header-height": u.value && a.value ? u.value.scrollHeight + "px" : "0px",
|
|
2037
|
+
"--footer-height": c.value && a.value ? c.value.scrollHeight + "px" : "0px"
|
|
2038
|
+
})), _ = V(() => l.placement === "left" ? "sidebar-left" : "sidebar-right"), x = () => {
|
|
2027
2039
|
o.value = !0;
|
|
2028
|
-
},
|
|
2040
|
+
}, $ = () => {
|
|
2029
2041
|
o.value = !1;
|
|
2030
2042
|
};
|
|
2031
|
-
return
|
|
2032
|
-
|
|
2033
|
-
}),
|
|
2034
|
-
() =>
|
|
2035
|
-
(
|
|
2036
|
-
|
|
2043
|
+
return U(i, (k = !1) => {
|
|
2044
|
+
a.value = k;
|
|
2045
|
+
}), L(
|
|
2046
|
+
() => l.visible,
|
|
2047
|
+
(k) => {
|
|
2048
|
+
a.value = k;
|
|
2037
2049
|
}
|
|
2038
|
-
),
|
|
2039
|
-
|
|
2050
|
+
), L(a, (k) => {
|
|
2051
|
+
k === !0 ? N() : k === !1 && o.value === !0 && b();
|
|
2052
|
+
}), F(() => {
|
|
2053
|
+
const k = K(document);
|
|
2054
|
+
L(a, (M) => {
|
|
2055
|
+
k.value = M;
|
|
2056
|
+
});
|
|
2040
2057
|
}), r({
|
|
2041
|
-
toggle:
|
|
2042
|
-
open:
|
|
2043
|
-
close:
|
|
2044
|
-
}), (
|
|
2045
|
-
style:
|
|
2046
|
-
visible:
|
|
2058
|
+
toggle: m,
|
|
2059
|
+
open: f,
|
|
2060
|
+
close: O
|
|
2061
|
+
}), (k, M) => (g(), h("div", {
|
|
2062
|
+
style: X(p.value),
|
|
2063
|
+
visible: a.value,
|
|
2047
2064
|
ref_key: "sidebarRef",
|
|
2048
|
-
ref:
|
|
2065
|
+
ref: i
|
|
2049
2066
|
}, [
|
|
2050
|
-
|
|
2067
|
+
k.noBackdrop ? T("", !0) : (g(), z(G, {
|
|
2051
2068
|
key: 0,
|
|
2052
2069
|
name: "fade",
|
|
2053
2070
|
appear: "",
|
|
2054
2071
|
tag: "div"
|
|
2055
2072
|
}, {
|
|
2056
2073
|
default: E(() => [
|
|
2057
|
-
|
|
2074
|
+
a.value ? (g(), h("section", {
|
|
2058
2075
|
key: 0,
|
|
2059
|
-
onClick:
|
|
2060
|
-
class:
|
|
2061
|
-
}, null, 2)) :
|
|
2076
|
+
onClick: O,
|
|
2077
|
+
class: v(["fixed inset-0 overflow-y-auto bg-opacity-70 backdrop-blur z-[100]", R(w)("BGCOLOR", k.backdropColor)])
|
|
2078
|
+
}, null, 2)) : T("", !0)
|
|
2062
2079
|
]),
|
|
2063
2080
|
_: 1
|
|
2064
2081
|
})),
|
|
2065
2082
|
S(G, {
|
|
2066
|
-
name:
|
|
2083
|
+
name: _.value,
|
|
2067
2084
|
onAfterEnter: x,
|
|
2068
|
-
onAfterLeave:
|
|
2085
|
+
onAfterLeave: $,
|
|
2069
2086
|
appear: ""
|
|
2070
2087
|
}, {
|
|
2071
2088
|
default: E(() => [
|
|
2072
|
-
|
|
2089
|
+
a.value ? W((g(), h("div", {
|
|
2073
2090
|
key: 0,
|
|
2074
|
-
class:
|
|
2091
|
+
class: v(["sidebar-body fixed h-full overflow-hidden inset-y-0 shadow z-[110]", [k.placement === "left" ? "left-0" : "right-0"]])
|
|
2075
2092
|
}, [
|
|
2076
2093
|
y("div", {
|
|
2077
|
-
class:
|
|
2094
|
+
class: v(["relative h-full overscroll-contain overflow-y-scroll", [R(w)("BGCOLOR", k.color), k.className]])
|
|
2078
2095
|
}, [
|
|
2079
|
-
|
|
2096
|
+
k.noHeader ? T("", !0) : (g(), h("div", {
|
|
2080
2097
|
key: 0,
|
|
2081
2098
|
class: "sticky top-0 z-10",
|
|
2082
2099
|
ref_key: "headerRef",
|
|
2083
|
-
ref:
|
|
2100
|
+
ref: u
|
|
2084
2101
|
}, [
|
|
2085
|
-
B(
|
|
2086
|
-
close:
|
|
2087
|
-
status:
|
|
2102
|
+
B(k.$slots, "header", {
|
|
2103
|
+
close: O,
|
|
2104
|
+
status: a.value
|
|
2088
2105
|
}, () => [
|
|
2089
2106
|
y("div", {
|
|
2090
|
-
class:
|
|
2107
|
+
class: v(["flex justify-between items-center p-xs", R(w)("BGCOLOR", k.color)])
|
|
2091
2108
|
}, [
|
|
2092
|
-
|
|
2109
|
+
k.placement === "right" ? (g(), h("button", {
|
|
2093
2110
|
key: 0,
|
|
2094
|
-
onClick:
|
|
2111
|
+
onClick: O
|
|
2095
2112
|
}, [
|
|
2096
|
-
(g(),
|
|
2113
|
+
(g(), h("svg", {
|
|
2097
2114
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2098
2115
|
height: "1em",
|
|
2099
2116
|
viewBox: "0 0 384 512",
|
|
2100
|
-
class:
|
|
2101
|
-
},
|
|
2117
|
+
class: v(["hover:opacity-75 focus:opacity-75 transition-opacity duration-300 ease-in h-sm", [R(w)("SVGFILL", k.titleColor)]])
|
|
2118
|
+
}, M[0] || (M[0] = [
|
|
2102
2119
|
y("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
2103
2120
|
]), 2))
|
|
2104
|
-
])) :
|
|
2105
|
-
|
|
2121
|
+
])) : T("", !0),
|
|
2122
|
+
k.title ? (g(), h("h3", {
|
|
2106
2123
|
key: 1,
|
|
2107
|
-
class:
|
|
2108
|
-
},
|
|
2109
|
-
|
|
2124
|
+
class: v(["h3-md", R(w)("TEXTCOLOR", k.titleColor)])
|
|
2125
|
+
}, Q(k.title), 3)) : T("", !0),
|
|
2126
|
+
k.placement === "left" ? (g(), h("button", {
|
|
2110
2127
|
key: 2,
|
|
2111
|
-
onClick:
|
|
2128
|
+
onClick: O
|
|
2112
2129
|
}, [
|
|
2113
|
-
(g(),
|
|
2130
|
+
(g(), h("svg", {
|
|
2114
2131
|
xmlns: "http://www.w3.org/2000/svg",
|
|
2115
2132
|
height: "1em",
|
|
2116
2133
|
viewBox: "0 0 384 512",
|
|
2117
|
-
class:
|
|
2118
|
-
},
|
|
2134
|
+
class: v(["hover:opacity-75 focus:opacity-75 transition-opacity duration-300 ease-in h-sm", [R(w)("SVGFILL", k.titleColor)]])
|
|
2135
|
+
}, M[1] || (M[1] = [
|
|
2119
2136
|
y("path", { d: "M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z" }, null, -1)
|
|
2120
2137
|
]), 2))
|
|
2121
|
-
])) :
|
|
2138
|
+
])) : T("", !0)
|
|
2122
2139
|
], 2)
|
|
2123
2140
|
], !0)
|
|
2124
2141
|
], 512)),
|
|
2125
2142
|
y("div", Ue, [
|
|
2126
|
-
B(
|
|
2127
|
-
close:
|
|
2128
|
-
status:
|
|
2143
|
+
B(k.$slots, "body", {
|
|
2144
|
+
close: O,
|
|
2145
|
+
status: a.value
|
|
2129
2146
|
}, void 0, !0)
|
|
2130
2147
|
]),
|
|
2131
|
-
t.footer ? (g(),
|
|
2148
|
+
t.footer ? (g(), h("div", {
|
|
2132
2149
|
key: 1,
|
|
2133
2150
|
class: "sticky bottom-0",
|
|
2134
2151
|
ref_key: "footerRef",
|
|
2135
|
-
ref:
|
|
2152
|
+
ref: c
|
|
2136
2153
|
}, [
|
|
2137
|
-
B(
|
|
2138
|
-
close:
|
|
2139
|
-
status:
|
|
2154
|
+
B(k.$slots, "footer", {
|
|
2155
|
+
close: O,
|
|
2156
|
+
status: a.value
|
|
2140
2157
|
}, void 0, !0)
|
|
2141
|
-
], 512)) :
|
|
2158
|
+
], 512)) : T("", !0)
|
|
2142
2159
|
], 2)
|
|
2143
2160
|
], 2)), [
|
|
2144
|
-
[R(
|
|
2145
|
-
]) :
|
|
2161
|
+
[R(q), O]
|
|
2162
|
+
]) : T("", !0)
|
|
2146
2163
|
]),
|
|
2147
2164
|
_: 3
|
|
2148
2165
|
}, 8, ["name"])
|
|
2149
2166
|
], 12, Ke));
|
|
2150
2167
|
}
|
|
2151
|
-
}), ft = /* @__PURE__ */
|
|
2168
|
+
}), ft = /* @__PURE__ */ I(qe, [["__scopeId", "data-v-15e6bcbe"]]), te = Symbol(), Je = { class: "container-hts transition-[max-height] duration-300 grid grid-cols-1 grid-rows-1" }, Qe = /* @__PURE__ */ A({
|
|
2152
2169
|
__name: "TabContainer",
|
|
2153
2170
|
props: {
|
|
2154
2171
|
bodyClass: { default: "" },
|
|
@@ -2157,48 +2174,48 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
2157
2174
|
},
|
|
2158
2175
|
setup(s, { expose: r }) {
|
|
2159
2176
|
D();
|
|
2160
|
-
const e = C(0),
|
|
2161
|
-
|
|
2177
|
+
const e = C(0), l = C(0), t = C("slide-next");
|
|
2178
|
+
Y(te, {
|
|
2162
2179
|
activeTabIdx: e,
|
|
2163
|
-
containerHeight:
|
|
2164
|
-
updateHeight: (
|
|
2165
|
-
|
|
2180
|
+
containerHeight: l,
|
|
2181
|
+
updateHeight: (i) => {
|
|
2182
|
+
l.value = i;
|
|
2166
2183
|
}
|
|
2167
2184
|
});
|
|
2168
|
-
const
|
|
2169
|
-
e.value =
|
|
2170
|
-
}, o =
|
|
2185
|
+
const a = (i) => {
|
|
2186
|
+
e.value = i;
|
|
2187
|
+
}, o = V(() => ({ "--container-hts": `${l.value}px` }));
|
|
2171
2188
|
return r({
|
|
2172
|
-
update:
|
|
2173
|
-
}),
|
|
2189
|
+
update: a
|
|
2190
|
+
}), L(
|
|
2174
2191
|
() => e.value,
|
|
2175
|
-
(
|
|
2176
|
-
|
|
2192
|
+
(i, u) => {
|
|
2193
|
+
i > u ? t.value = "slide-next" : t.value = "slide-prev";
|
|
2177
2194
|
}
|
|
2178
|
-
), (
|
|
2179
|
-
class:
|
|
2180
|
-
style:
|
|
2195
|
+
), (i, u) => (g(), h("div", {
|
|
2196
|
+
class: v(i.bodyClass),
|
|
2197
|
+
style: X(o.value)
|
|
2181
2198
|
}, [
|
|
2182
2199
|
y("div", {
|
|
2183
|
-
class:
|
|
2200
|
+
class: v(i.btnContainerClass),
|
|
2184
2201
|
role: "tablist"
|
|
2185
2202
|
}, [
|
|
2186
|
-
B(
|
|
2187
|
-
update:
|
|
2203
|
+
B(i.$slots, "tab-button", {
|
|
2204
|
+
update: a,
|
|
2188
2205
|
activeTab: e.value
|
|
2189
2206
|
}, void 0, !0)
|
|
2190
2207
|
], 2),
|
|
2191
2208
|
y("div", {
|
|
2192
|
-
class:
|
|
2209
|
+
class: v(i.contentContainerClass)
|
|
2193
2210
|
}, [
|
|
2194
2211
|
y("div", Je, [
|
|
2195
2212
|
S(G, { name: t.value }, {
|
|
2196
2213
|
default: E(() => [
|
|
2197
|
-
(g(),
|
|
2214
|
+
(g(), h("div", {
|
|
2198
2215
|
key: e.value,
|
|
2199
2216
|
class: "col-start-1 col-end-1 row-start-1 row-end-1 relative"
|
|
2200
2217
|
}, [
|
|
2201
|
-
B(
|
|
2218
|
+
B(i.$slots, "tab-content", {}, void 0, !0)
|
|
2202
2219
|
]))
|
|
2203
2220
|
]),
|
|
2204
2221
|
_: 3
|
|
@@ -2207,7 +2224,7 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
2207
2224
|
], 2)
|
|
2208
2225
|
], 6));
|
|
2209
2226
|
}
|
|
2210
|
-
}), vt = /* @__PURE__ */
|
|
2227
|
+
}), vt = /* @__PURE__ */ I(Qe, [["__scopeId", "data-v-1014eb3f"]]), Ze = ["id"], mt = /* @__PURE__ */ A({
|
|
2211
2228
|
__name: "TabContent",
|
|
2212
2229
|
props: {
|
|
2213
2230
|
tabNumber: {},
|
|
@@ -2215,23 +2232,23 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
2215
2232
|
tabClass: { default: "" }
|
|
2216
2233
|
},
|
|
2217
2234
|
setup(s) {
|
|
2218
|
-
const r = s, { activeTabIdx: e, updateHeight:
|
|
2219
|
-
|
|
2220
|
-
), t = C(null), { height: d } =
|
|
2221
|
-
return (o,
|
|
2235
|
+
const r = s, { activeTabIdx: e, updateHeight: l } = j(
|
|
2236
|
+
te
|
|
2237
|
+
), t = C(null), { height: d } = ue(t), a = V(() => e.value === r.tabNumber ? (l(d.value), !0) : !1);
|
|
2238
|
+
return (o, i) => W((g(), h("div", {
|
|
2222
2239
|
ref_key: "slotRef",
|
|
2223
2240
|
ref: t,
|
|
2224
2241
|
id: o.id,
|
|
2225
|
-
class:
|
|
2242
|
+
class: v([o.tabClass, "w-full"]),
|
|
2226
2243
|
role: "tabpanel",
|
|
2227
2244
|
tabindex: "-1"
|
|
2228
2245
|
}, [
|
|
2229
2246
|
B(o.$slots, "default")
|
|
2230
2247
|
], 10, Ze)), [
|
|
2231
|
-
[
|
|
2248
|
+
[P, a.value]
|
|
2232
2249
|
]);
|
|
2233
2250
|
}
|
|
2234
|
-
}),
|
|
2251
|
+
}), re = Symbol(), et = /* @__PURE__ */ A({
|
|
2235
2252
|
__name: "CarouselContainer",
|
|
2236
2253
|
props: {
|
|
2237
2254
|
bodyClass: { default: "" },
|
|
@@ -2241,77 +2258,77 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
2241
2258
|
loop: { type: Boolean, default: !1 }
|
|
2242
2259
|
},
|
|
2243
2260
|
setup(s, { expose: r }) {
|
|
2244
|
-
const e = s,
|
|
2245
|
-
d.value.push(
|
|
2246
|
-
},
|
|
2247
|
-
t.value =
|
|
2261
|
+
const e = s, l = D(), t = C(0), d = C([]), a = C(0), o = C("slide-next"), i = (f) => {
|
|
2262
|
+
d.value.push(f), a.value = [...new Set(d.value)].length;
|
|
2263
|
+
}, u = (f) => {
|
|
2264
|
+
t.value = f;
|
|
2248
2265
|
};
|
|
2249
|
-
|
|
2266
|
+
Y(re, {
|
|
2250
2267
|
activeIdx: t,
|
|
2251
|
-
setSlide:
|
|
2268
|
+
setSlide: i
|
|
2252
2269
|
});
|
|
2253
|
-
const
|
|
2254
|
-
const { loop:
|
|
2255
|
-
|
|
2256
|
-
},
|
|
2257
|
-
const { loop:
|
|
2258
|
-
|
|
2270
|
+
const c = () => {
|
|
2271
|
+
const { loop: f } = e;
|
|
2272
|
+
f && t.value === a.value - 1 ? t.value = 0 : t.value < a.value - 1 && (t.value = t.value + 1);
|
|
2273
|
+
}, m = () => {
|
|
2274
|
+
const { loop: f } = e;
|
|
2275
|
+
f && t.value === 0 ? t.value = a.value - 1 : t.value > 0 && (t.value = t.value - 1);
|
|
2259
2276
|
};
|
|
2260
|
-
return
|
|
2277
|
+
return L(
|
|
2261
2278
|
() => t.value,
|
|
2262
|
-
(
|
|
2263
|
-
|
|
2279
|
+
(f, O) => {
|
|
2280
|
+
f > O || f === 0 && O === a.value - 1 ? o.value = "slide-next" : o.value = "slide-prev";
|
|
2264
2281
|
}
|
|
2265
2282
|
), r({
|
|
2266
|
-
numberOfSlides:
|
|
2267
|
-
prev:
|
|
2268
|
-
next:
|
|
2269
|
-
setActive:
|
|
2270
|
-
}), (
|
|
2271
|
-
class:
|
|
2283
|
+
numberOfSlides: a,
|
|
2284
|
+
prev: m,
|
|
2285
|
+
next: c,
|
|
2286
|
+
setActive: u
|
|
2287
|
+
}), (f, O) => (g(), h("div", {
|
|
2288
|
+
class: v([f.bodyClass, "relative overflow-x-hidden"])
|
|
2272
2289
|
}, [
|
|
2273
|
-
|
|
2290
|
+
l["controller-top"] ? (g(), h("div", {
|
|
2274
2291
|
key: 0,
|
|
2275
|
-
class:
|
|
2292
|
+
class: v(f.controllerTopClass)
|
|
2276
2293
|
}, [
|
|
2277
|
-
B(
|
|
2278
|
-
next:
|
|
2279
|
-
prev:
|
|
2280
|
-
setActive:
|
|
2294
|
+
B(f.$slots, "controller-top", {
|
|
2295
|
+
next: c,
|
|
2296
|
+
prev: m,
|
|
2297
|
+
setActive: u,
|
|
2281
2298
|
activeSlide: t.value,
|
|
2282
|
-
numberOfSlides:
|
|
2299
|
+
numberOfSlides: a.value
|
|
2283
2300
|
}, void 0, !0)
|
|
2284
|
-
], 2)) :
|
|
2301
|
+
], 2)) : T("", !0),
|
|
2285
2302
|
y("div", {
|
|
2286
|
-
class:
|
|
2303
|
+
class: v(["grid grid-cols-1 grid-rows-1", f.contentContainerClass])
|
|
2287
2304
|
}, [
|
|
2288
2305
|
S(G, { name: o.value }, {
|
|
2289
2306
|
default: E(() => [
|
|
2290
|
-
(g(),
|
|
2307
|
+
(g(), h("div", {
|
|
2291
2308
|
key: t.value,
|
|
2292
2309
|
class: "col-start-1 col-end-1 row-start-1 row-end-1"
|
|
2293
2310
|
}, [
|
|
2294
|
-
B(
|
|
2311
|
+
B(f.$slots, "content", {}, void 0, !0)
|
|
2295
2312
|
]))
|
|
2296
2313
|
]),
|
|
2297
2314
|
_: 3
|
|
2298
2315
|
}, 8, ["name"])
|
|
2299
2316
|
], 2),
|
|
2300
|
-
|
|
2317
|
+
l["controller-bottom"] ? (g(), h("div", {
|
|
2301
2318
|
key: 1,
|
|
2302
|
-
class:
|
|
2319
|
+
class: v(f.controllerBottomClass)
|
|
2303
2320
|
}, [
|
|
2304
|
-
B(
|
|
2305
|
-
next:
|
|
2306
|
-
prev:
|
|
2307
|
-
setActive:
|
|
2321
|
+
B(f.$slots, "controller-bottom", {
|
|
2322
|
+
next: c,
|
|
2323
|
+
prev: m,
|
|
2324
|
+
setActive: u,
|
|
2308
2325
|
activeSlide: t.value,
|
|
2309
|
-
numberOfSlides:
|
|
2326
|
+
numberOfSlides: a.value
|
|
2310
2327
|
}, void 0, !0)
|
|
2311
|
-
], 2)) :
|
|
2328
|
+
], 2)) : T("", !0)
|
|
2312
2329
|
], 2));
|
|
2313
2330
|
}
|
|
2314
|
-
}), xt = /* @__PURE__ */
|
|
2331
|
+
}), xt = /* @__PURE__ */ I(et, [["__scopeId", "data-v-05e275d0"]]), tt = ["id"], yt = /* @__PURE__ */ A({
|
|
2315
2332
|
__name: "CarouselContent",
|
|
2316
2333
|
props: {
|
|
2317
2334
|
slideNumber: {},
|
|
@@ -2319,25 +2336,25 @@ const w = (s, r) => new Ce(s, r).generateClass(), ke = { class: "w-full flex jus
|
|
|
2319
2336
|
slideClass: { default: "" }
|
|
2320
2337
|
},
|
|
2321
2338
|
setup(s) {
|
|
2322
|
-
const r = s, { activeIdx: e, setSlide:
|
|
2323
|
-
|
|
2339
|
+
const r = s, { activeIdx: e, setSlide: l } = j(
|
|
2340
|
+
re
|
|
2324
2341
|
), t = C(null);
|
|
2325
|
-
|
|
2326
|
-
const d =
|
|
2327
|
-
const { slideNumber:
|
|
2328
|
-
return e.value ===
|
|
2342
|
+
l(r.slideNumber), D();
|
|
2343
|
+
const d = V(() => {
|
|
2344
|
+
const { slideNumber: a } = r;
|
|
2345
|
+
return e.value === a;
|
|
2329
2346
|
});
|
|
2330
|
-
return (
|
|
2347
|
+
return (a, o) => W((g(), h("div", {
|
|
2331
2348
|
ref_key: "slideRef",
|
|
2332
2349
|
ref: t,
|
|
2333
|
-
id:
|
|
2334
|
-
class:
|
|
2350
|
+
id: a.id,
|
|
2351
|
+
class: v([a.slideClass, "w-full"]),
|
|
2335
2352
|
role: "tabpanel",
|
|
2336
2353
|
tabindex: "-1"
|
|
2337
2354
|
}, [
|
|
2338
|
-
B(
|
|
2355
|
+
B(a.$slots, "default")
|
|
2339
2356
|
], 10, tt)), [
|
|
2340
|
-
[
|
|
2357
|
+
[P, d.value]
|
|
2341
2358
|
]);
|
|
2342
2359
|
}
|
|
2343
2360
|
});
|
|
@@ -2345,7 +2362,7 @@ export {
|
|
|
2345
2362
|
ot as Alert,
|
|
2346
2363
|
xt as CarouselContainer,
|
|
2347
2364
|
yt as CarouselContent,
|
|
2348
|
-
|
|
2365
|
+
Te as ClientSideRender,
|
|
2349
2366
|
it as Collapse,
|
|
2350
2367
|
gt as DropdownContainer,
|
|
2351
2368
|
ut as DropdownContent,
|
|
@@ -2356,7 +2373,7 @@ export {
|
|
|
2356
2373
|
vt as TabContainer,
|
|
2357
2374
|
mt as TabContent,
|
|
2358
2375
|
w as default,
|
|
2359
|
-
|
|
2376
|
+
q as vClickOutside,
|
|
2360
2377
|
dt as vCollapse,
|
|
2361
2378
|
nt as vToggle,
|
|
2362
2379
|
ct as vTooltip
|