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