@topjoao/top-design-system 0.1.8 → 0.1.9
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 +51 -2
- package/dist/TopToast-DDuw-cOV.cjs +2 -0
- package/dist/TopToast-DDuw-cOV.cjs.map +1 -0
- package/dist/{TopToast-CEYrqaEE.js → TopToast-bWBafGfo.js} +399 -306
- package/dist/TopToast-bWBafGfo.js.map +1 -0
- package/dist/components/TopDatePicker.vue.d.ts +2 -0
- package/dist/components/TopTextArea.vue.d.ts +28 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -10
- package/dist/nuxt.cjs +1 -1
- package/dist/nuxt.cjs.map +1 -1
- package/dist/nuxt.js +4 -0
- package/dist/nuxt.js.map +1 -1
- package/dist/plugin.cjs +1 -1
- package/dist/plugin.cjs.map +1 -1
- package/dist/plugin.d.ts +2 -0
- package/dist/plugin.js +4 -4
- package/dist/plugin.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/TopToast-CEYrqaEE.js.map +0 -1
- package/dist/TopToast-D7tOqLWF.cjs +0 -2
- package/dist/TopToast-D7tOqLWF.cjs.map +0 -1
|
@@ -6,22 +6,23 @@ import L from "primevue/dialog";
|
|
|
6
6
|
import R from "primevue/datepicker";
|
|
7
7
|
import z from "primevue/fileupload";
|
|
8
8
|
import B from "primevue/inputtext";
|
|
9
|
-
import V from "primevue/
|
|
9
|
+
import V from "primevue/textarea";
|
|
10
|
+
import H from "primevue/inputnumber";
|
|
10
11
|
import ne from "primevue/drawer";
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
12
|
+
import U from "primevue/menu";
|
|
13
|
+
import re from "primevue/autocomplete";
|
|
14
|
+
import W from "primevue/tab";
|
|
15
|
+
import G from "primevue/tablist";
|
|
16
|
+
import K from "primevue/tabpanel";
|
|
17
|
+
import q from "primevue/tabpanels";
|
|
18
|
+
import ie from "primevue/tabs";
|
|
19
|
+
import J from "primevue/accordion";
|
|
20
|
+
import Y from "primevue/accordioncontent";
|
|
21
|
+
import ae from "primevue/accordionheader";
|
|
22
|
+
import oe from "primevue/accordionpanel";
|
|
23
|
+
import X from "primevue/toast";
|
|
23
24
|
//#region src/components/TopButton.vue?vue&type=script&setup=true&lang.ts
|
|
24
|
-
var
|
|
25
|
+
var se = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px] bg-transparent" }, ce = /* @__PURE__ */ u({
|
|
25
26
|
__name: "TopButton",
|
|
26
27
|
props: {
|
|
27
28
|
tooltip: { default: "" },
|
|
@@ -58,7 +59,7 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
58
59
|
let e = c.unstyled ? "" : u.value === "secondary" ? "rounded-[10px] border px-3 py-2 font-bold dark:!border-zinc-500 dark:!bg-zinc-700 dark:!text-zinc-100 dark:hover:!bg-zinc-600" : c.outlined ? u.value === "primary" ? "shrink-0 rounded-[10px] border-primary-800 px-3 py-2 text-primary-800 hover:bg-primary-50 dark:border-primary-200 dark:bg-transparent dark:text-primary-100 dark:hover:bg-primary-900" : "shrink-0 rounded-[10px] border px-3 py-2 font-bold" : u.value === "primary" ? "rounded-[10px] !border-primary-900 bg-primary-900 px-3 py-2 font-bold text-white hover:!border-primary-800 hover:bg-primary-800 dark:!text-white" : "rounded-[10px] border px-3 py-2 font-bold";
|
|
59
60
|
return I("top-button__control text-xs", e, c.class);
|
|
60
61
|
});
|
|
61
|
-
return (t, n) => (b(), a("span",
|
|
62
|
+
return (t, n) => (b(), a("span", se, [M((b(), r(O(P), {
|
|
62
63
|
type: e.type,
|
|
63
64
|
label: e.label,
|
|
64
65
|
disabled: e.disabled || e.loading,
|
|
@@ -93,7 +94,7 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
93
94
|
{ top: !0 }
|
|
94
95
|
]])]));
|
|
95
96
|
}
|
|
96
|
-
}),
|
|
97
|
+
}), le = {
|
|
97
98
|
primary: {
|
|
98
99
|
50: "#EEF9FF",
|
|
99
100
|
100: "#DFF4FF",
|
|
@@ -159,7 +160,7 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
159
160
|
900: "#5D0803",
|
|
160
161
|
950: "#450501"
|
|
161
162
|
}
|
|
162
|
-
},
|
|
163
|
+
}, ue = ["aria-label", "disabled"], de = { class: "flex flex-col items-center gap-2 pt-2" }, fe = { class: "text-base font-bold text-secondary-900 dark:text-zinc-100" }, Z = { class: "text-sm leading-5 text-secondary-700 dark:text-zinc-300" }, pe = { class: "mt-2 flex w-full items-center justify-center gap-3" }, me = /* @__PURE__ */ u({
|
|
163
164
|
__name: "TopConfirmDialog",
|
|
164
165
|
props: {
|
|
165
166
|
modelValue: {
|
|
@@ -191,8 +192,8 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
191
192
|
!e && i.loading || a("update:modelValue", e);
|
|
192
193
|
}
|
|
193
194
|
}), u = n(() => ({
|
|
194
|
-
"--top-confirm-dialog-accent": i.severity === "danger" ?
|
|
195
|
-
"--top-confirm-dialog-accent-hover": i.severity === "danger" ?
|
|
195
|
+
"--top-confirm-dialog-accent": i.severity === "danger" ? le.danger[600] : le.primary[800],
|
|
196
|
+
"--top-confirm-dialog-accent-hover": i.severity === "danger" ? le.danger[700] : le.primary[700]
|
|
196
197
|
})), d = n(() => ["px-3 py-2 text-sm", i.severity === "danger" ? "!border-red-600 !bg-red-600 hover:!border-red-700 hover:!bg-red-700" : ""].filter(Boolean).join(" "));
|
|
197
198
|
function f() {
|
|
198
199
|
i.loading || a("confirm");
|
|
@@ -237,19 +238,19 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
237
238
|
}, [...n[2] ||= [o("i", {
|
|
238
239
|
class: "pi pi-times text-lg",
|
|
239
240
|
"aria-hidden": "true"
|
|
240
|
-
}, null, -1)]], 8,
|
|
241
|
-
o("div",
|
|
241
|
+
}, null, -1)]], 8, ue),
|
|
242
|
+
o("div", de, [o("i", {
|
|
242
243
|
class: h([e.icon, "top-confirm-dialog__icon text-[40px]"]),
|
|
243
244
|
"aria-hidden": "true"
|
|
244
|
-
}, null, 2), o("p",
|
|
245
|
-
o("div",
|
|
246
|
-
o("div",
|
|
245
|
+
}, null, 2), o("p", fe, D(e.title), 1)]),
|
|
246
|
+
o("div", Z, [w(t.$slots, "message", {}, () => [w(t.$slots, "default", {}, () => [c(D(e.message), 1)])])]),
|
|
247
|
+
o("div", pe, [l(ce, {
|
|
247
248
|
label: e.cancelText,
|
|
248
249
|
secondary: "",
|
|
249
250
|
disabled: e.loading,
|
|
250
251
|
class: "px-3 py-2 text-sm",
|
|
251
252
|
onClick: p
|
|
252
|
-
}, null, 8, ["label", "disabled"]), l(
|
|
253
|
+
}, null, 8, ["label", "disabled"]), l(ce, {
|
|
253
254
|
label: e.loading ? e.loadingText : e.confirmText,
|
|
254
255
|
loading: e.loading,
|
|
255
256
|
class: h(d.value),
|
|
@@ -267,11 +268,11 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
267
268
|
"aria-label"
|
|
268
269
|
]));
|
|
269
270
|
}
|
|
270
|
-
}),
|
|
271
|
+
}), he = { class: "top-date-picker top-solutions-component flex w-full flex-col gap-1" }, ge = ["for"], _e = {
|
|
271
272
|
key: 0,
|
|
272
273
|
"aria-hidden": "true",
|
|
273
274
|
class: "text-red-600 dark:text-red-400"
|
|
274
|
-
},
|
|
275
|
+
}, ve = ["id"], ye = /* @__PURE__ */ u({
|
|
275
276
|
inheritAttrs: !1,
|
|
276
277
|
__name: "TopDatePicker",
|
|
277
278
|
props: {
|
|
@@ -296,6 +297,10 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
296
297
|
default: !1
|
|
297
298
|
},
|
|
298
299
|
selectionMode: { default: "single" },
|
|
300
|
+
showTime: {
|
|
301
|
+
type: Boolean,
|
|
302
|
+
default: !1
|
|
303
|
+
},
|
|
299
304
|
dateFormat: { default: "dd/mm/yy" },
|
|
300
305
|
minDate: { default: void 0 },
|
|
301
306
|
maxDate: { default: void 0 },
|
|
@@ -330,7 +335,7 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
330
335
|
"keydown"
|
|
331
336
|
],
|
|
332
337
|
setup(e, { emit: t }) {
|
|
333
|
-
let r = e, o = t, u = ee(), f = te(), m = k(), h = n(() => u.id === void 0 || u.id === null || u.id === "" ? m : String(u.id)), _ = n(() => `${h.value}-error`), v = n(() => r.invalid || !!r.error), y = n(() => r.manualInput && !r.readonly && !r.disabled && r.selectionMode === "single" && r.dateFormat === "dd/mm/yy"), x = n(() => {
|
|
338
|
+
let r = e, o = t, u = ee(), f = te(), m = k(), h = n(() => u.id === void 0 || u.id === null || u.id === "" ? m : String(u.id)), _ = n(() => `${h.value}-error`), v = n(() => r.invalid || !!r.error), y = n(() => r.manualInput && !r.showTime && !r.readonly && !r.disabled && r.selectionMode === "single" && r.dateFormat === "dd/mm/yy"), x = n(() => {
|
|
334
339
|
if (v.value) return !0;
|
|
335
340
|
let e = u["aria-invalid"];
|
|
336
341
|
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
@@ -362,12 +367,12 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
362
367
|
}
|
|
363
368
|
o("input", e);
|
|
364
369
|
}
|
|
365
|
-
return (t, n) => (b(), a("div",
|
|
370
|
+
return (t, n) => (b(), a("div", he, [
|
|
366
371
|
e.label ? (b(), a("label", {
|
|
367
372
|
key: 0,
|
|
368
373
|
for: h.value,
|
|
369
374
|
class: "top-field-label text-xs font-bold"
|
|
370
|
-
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span",
|
|
375
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", _e, "*")) : i("", !0)], 8, ge)) : i("", !0),
|
|
371
376
|
l(O(R), p(T.value, {
|
|
372
377
|
"model-value": e.modelValue,
|
|
373
378
|
"input-id": h.value,
|
|
@@ -377,6 +382,7 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
377
382
|
disabled: e.disabled,
|
|
378
383
|
readonly: e.readonly,
|
|
379
384
|
"selection-mode": e.selectionMode,
|
|
385
|
+
"show-time": e.showTime,
|
|
380
386
|
"date-format": e.dateFormat,
|
|
381
387
|
"update-model-type": "date",
|
|
382
388
|
"min-date": e.minDate,
|
|
@@ -414,6 +420,7 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
414
420
|
"disabled",
|
|
415
421
|
"readonly",
|
|
416
422
|
"selection-mode",
|
|
423
|
+
"show-time",
|
|
417
424
|
"date-format",
|
|
418
425
|
"min-date",
|
|
419
426
|
"max-date",
|
|
@@ -429,10 +436,10 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
429
436
|
id: _.value,
|
|
430
437
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
431
438
|
role: "alert"
|
|
432
|
-
}, D(e.error), 9,
|
|
439
|
+
}, D(e.error), 9, ve)) : i("", !0)
|
|
433
440
|
]));
|
|
434
441
|
}
|
|
435
|
-
}),
|
|
442
|
+
}), be = [["path", {
|
|
436
443
|
d: "M17.4776 9.01106C17.485 9.01102 17.4925 9.01101 17.5 9.01101C19.9853 9.01101 22 11.0294 22 13.5193C22 15.8398 20.25 17.7508 18 18M17.4776 9.01106C17.4924 8.84606 17.5 8.67896 17.5 8.51009C17.5 5.46695 15.0376 3 12 3C9.12324 3 6.76233 5.21267 6.52042 8.03192M17.4776 9.01106C17.3753 10.1476 16.9286 11.1846 16.2428 12.0165M6.52042 8.03192C3.98398 8.27373 2 10.4139 2 13.0183C2 15.4417 3.71776 17.4632 6 17.9273M6.52042 8.03192C6.67826 8.01687 6.83823 8.00917 7 8.00917C8.12582 8.00917 9.16474 8.38194 10.0005 9.01101",
|
|
437
444
|
stroke: "currentColor",
|
|
438
445
|
strokeLinecap: "round",
|
|
@@ -446,7 +453,7 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
446
453
|
strokeLinejoin: "round",
|
|
447
454
|
strokeWidth: "1.5",
|
|
448
455
|
key: "1"
|
|
449
|
-
}]],
|
|
456
|
+
}]], xe = [["path", {
|
|
450
457
|
d: "M12.8924 2.80982L21.4876 9.59547C21.8112 9.85095 22 10.2405 22 10.6528C22 11.3969 21.3969 12 20.6528 12H20V15.5C20 18.3284 20 19.7426 19.1213 20.6213C18.2426 21.5 16.8284 21.5 14 21.5H10C7.17157 21.5 5.75736 21.5 4.87868 20.6213C4 19.7426 4 18.3284 4 15.5V12H3.34716C2.60315 12 2 11.3969 2 10.6528C2 10.2405 2.1888 9.85095 2.5124 9.59547L11.1076 2.80982C11.3617 2.60915 11.6761 2.5 12 2.5C12.3239 2.5 12.6383 2.60915 12.8924 2.80982Z",
|
|
451
458
|
stroke: "currentColor",
|
|
452
459
|
strokeLinecap: "round",
|
|
@@ -460,7 +467,7 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
460
467
|
strokeLinejoin: "round",
|
|
461
468
|
strokeWidth: "1.5",
|
|
462
469
|
key: "1"
|
|
463
|
-
}]],
|
|
470
|
+
}]], Se = u({
|
|
464
471
|
name: "HugeiconsIcon",
|
|
465
472
|
inheritAttrs: !1,
|
|
466
473
|
props: {
|
|
@@ -518,16 +525,16 @@ var X = { class: "top-button top-solutions-component h-fit w-fit rounded-[12px]
|
|
|
518
525
|
currentIcon: n(() => e.altIcon && e.showAlt ? e.altIcon : e.icon)
|
|
519
526
|
};
|
|
520
527
|
}
|
|
521
|
-
}),
|
|
528
|
+
}), Ce = (e, t) => {
|
|
522
529
|
let n = e.__vccOpts || e;
|
|
523
530
|
for (let [e, r] of t) n[e] = r;
|
|
524
531
|
return n;
|
|
525
|
-
},
|
|
532
|
+
}, we = [
|
|
526
533
|
"width",
|
|
527
534
|
"height",
|
|
528
535
|
"color"
|
|
529
536
|
];
|
|
530
|
-
function
|
|
537
|
+
function Te(t, n, i, o, s, c) {
|
|
531
538
|
return b(), a("svg", p({
|
|
532
539
|
width: t.computedSize,
|
|
533
540
|
height: t.computedSize,
|
|
@@ -538,30 +545,30 @@ function we(t, n, i, o, s, c) {
|
|
|
538
545
|
}, t.$attrs), [(b(!0), a(e, null, C(t.currentIcon, (e, n) => (b(), r(E(e[0]), p({
|
|
539
546
|
key: n,
|
|
540
547
|
ref_for: !0
|
|
541
|
-
}, t.transformAttrs(e[1], t.calculatedStrokeWidth)), null, 16))), 128))], 16,
|
|
548
|
+
}, t.transformAttrs(e[1], t.calculatedStrokeWidth)), null, 16))), 128))], 16, we);
|
|
542
549
|
}
|
|
543
|
-
var
|
|
550
|
+
var Ee = /* @__PURE__ */ Ce(Se, [["render", Te], ["__file", "/Users/mahmudulhasan/Desktop/Projects/Hugeicons/hugeicons-monorepo/packages/vue/src/components/HugeiconsIcon.vue"]]), De = { class: "top-file-upload top-solutions-component flex w-full flex-col gap-1" }, Oe = ["for"], ke = {
|
|
544
551
|
key: 0,
|
|
545
552
|
"aria-hidden": "true",
|
|
546
553
|
class: "text-red-600 dark:text-red-400"
|
|
547
|
-
},
|
|
554
|
+
}, Ae = { class: "flex min-h-[130px] w-full flex-col items-center justify-center gap-3" }, je = {
|
|
548
555
|
class: "top-file-upload__empty-icon",
|
|
549
556
|
"aria-hidden": "true"
|
|
550
|
-
},
|
|
557
|
+
}, Me = {
|
|
551
558
|
key: 0,
|
|
552
559
|
"aria-label": "Carregando...",
|
|
553
560
|
class: "pi pi-spin pi-spinner text-5xl"
|
|
554
|
-
},
|
|
561
|
+
}, Ne = { class: "m-0 text-center text-xs text-secondary-600 dark:text-zinc-300" }, Pe = {
|
|
555
562
|
key: 1,
|
|
556
563
|
class: "flex w-full flex-col gap-2"
|
|
557
|
-
},
|
|
564
|
+
}, Fe = ["src", "alt"], Ie = {
|
|
558
565
|
key: 1,
|
|
559
566
|
class: "flex size-12 shrink-0 items-center justify-center rounded-lg bg-primary-50 text-primary-800 dark:bg-primary-950 dark:text-primary-200"
|
|
560
|
-
},
|
|
567
|
+
}, Le = { class: "min-w-0 flex-1" }, Re = { class: "m-0 truncate text-xs font-bold text-secondary-900 dark:text-zinc-100" }, ze = { class: "text-[11px] text-secondary-500 dark:text-zinc-400" }, Be = [
|
|
561
568
|
"aria-label",
|
|
562
569
|
"disabled",
|
|
563
570
|
"onClick"
|
|
564
|
-
],
|
|
571
|
+
], Ve = ["id"], He = /* @__PURE__ */ u({
|
|
565
572
|
inheritAttrs: !1,
|
|
566
573
|
__name: "TopFileUpload",
|
|
567
574
|
props: {
|
|
@@ -641,23 +648,23 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
641
648
|
}), !1))
|
|
642
649
|
};
|
|
643
650
|
}
|
|
644
|
-
function
|
|
651
|
+
function H(e) {
|
|
645
652
|
let t = e.originalEvent;
|
|
646
653
|
return Array.from(t.dataTransfer?.files ?? t.target?.files ?? []);
|
|
647
654
|
}
|
|
648
|
-
function
|
|
655
|
+
function ne(e) {
|
|
649
656
|
return d.multiple ? [...e] : e[0] ?? null;
|
|
650
657
|
}
|
|
651
|
-
function
|
|
658
|
+
function U() {
|
|
652
659
|
g.value && (g.value.files = [..._.value]);
|
|
653
660
|
}
|
|
654
|
-
function
|
|
655
|
-
_.value = e, x.value = [], Y(), m(
|
|
656
|
-
let n =
|
|
661
|
+
function re(e, t) {
|
|
662
|
+
_.value = e, x.value = [], Y(), m(U);
|
|
663
|
+
let n = ne(e);
|
|
657
664
|
f("update:modelValue", n), f("change", n), t === "select" && f("select", [...e]), t === "clear" && f("clear");
|
|
658
665
|
}
|
|
659
666
|
function W(e) {
|
|
660
|
-
let { errors: t, validFiles: n } = V(
|
|
667
|
+
let { errors: t, validFiles: n } = V(H(e)), r = d.multiple ? [..._.value, ...n.filter((e) => !_.value.some((t) => L(t, e)))] : n.slice(-1);
|
|
661
668
|
if (d.maxFiles && r.length > d.maxFiles) {
|
|
662
669
|
let e = r.slice(d.maxFiles);
|
|
663
670
|
t.push(...e.map((e) => ({
|
|
@@ -666,9 +673,9 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
666
673
|
message: `O limite máximo é de ${d.maxFiles} arquivo(s).`
|
|
667
674
|
}))), r = r.slice(0, d.maxFiles);
|
|
668
675
|
}
|
|
669
|
-
if (t.length ? (x.value = t, f("error", t)) : x.value = [],
|
|
670
|
-
_.value = r, Y(), m(
|
|
671
|
-
let e =
|
|
676
|
+
if (t.length ? (x.value = t, f("error", t)) : x.value = [], U(), n.length && !G(r, _.value)) {
|
|
677
|
+
_.value = r, Y(), m(U);
|
|
678
|
+
let e = ne(r);
|
|
672
679
|
f("update:modelValue", e), f("change", e), f("select", [...r]);
|
|
673
680
|
}
|
|
674
681
|
}
|
|
@@ -684,10 +691,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
684
691
|
if (!n) return;
|
|
685
692
|
e(t);
|
|
686
693
|
let r = _.value.filter((e, n) => n !== t);
|
|
687
|
-
|
|
694
|
+
re(r, "remove"), f("remove", n, t), r.length || f("clear");
|
|
688
695
|
}
|
|
689
696
|
function ie() {
|
|
690
|
-
N.value || !_.value.length ||
|
|
697
|
+
N.value || !_.value.length || re([], "clear");
|
|
691
698
|
}
|
|
692
699
|
function J(e) {
|
|
693
700
|
if (!e.type.startsWith("image/") || typeof URL.createObjectURL != "function") return "";
|
|
@@ -701,22 +708,22 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
701
708
|
}
|
|
702
709
|
return A(() => d.modelValue, (e) => {
|
|
703
710
|
let t = I(e);
|
|
704
|
-
G(t, _.value) || (_.value = t, x.value = [], Y(), m(
|
|
711
|
+
G(t, _.value) || (_.value = t, x.value = [], Y(), m(U));
|
|
705
712
|
}), A(() => d.multiple, () => {
|
|
706
713
|
let e = I(d.modelValue);
|
|
707
|
-
_.value = e, Y(), m(
|
|
708
|
-
}), y(
|
|
714
|
+
_.value = e, Y(), m(U);
|
|
715
|
+
}), y(U), v(() => {
|
|
709
716
|
for (let e of T.values()) URL.revokeObjectURL(e);
|
|
710
717
|
T.clear();
|
|
711
718
|
}), s({
|
|
712
719
|
choose: K,
|
|
713
720
|
clear: ie
|
|
714
|
-
}), (n, s) => (b(), a("div",
|
|
721
|
+
}), (n, s) => (b(), a("div", De, [
|
|
715
722
|
t.label ? (b(), a("label", {
|
|
716
723
|
key: 0,
|
|
717
724
|
for: E.value,
|
|
718
725
|
class: "text-xs font-bold text-secondary-800 dark:text-zinc-200"
|
|
719
|
-
}, [c(D(t.label) + " ", 1), t.required ? (b(), a("span",
|
|
726
|
+
}, [c(D(t.label) + " ", 1), t.required ? (b(), a("span", ke, "*")) : i("", !0)], 8, Oe)) : i("", !0),
|
|
720
727
|
l(O(z), {
|
|
721
728
|
ref_key: "fileUploadRef",
|
|
722
729
|
ref: g,
|
|
@@ -739,7 +746,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
739
746
|
},
|
|
740
747
|
onSelect: W
|
|
741
748
|
}, {
|
|
742
|
-
content: j(({ removeFileCallback: c }) => [o("div",
|
|
749
|
+
content: j(({ removeFileCallback: c }) => [o("div", Ae, [_.value.length ? (b(), a("div", Pe, [(b(!0), a(e, null, C(_.value, (e, r) => (b(), a("div", {
|
|
743
750
|
key: `${e.name}-${e.size}-${e.lastModified}`,
|
|
744
751
|
class: "flex min-w-0 items-center gap-3 rounded-[10px] border border-secondary-300 bg-white p-3 dark:border-zinc-600 dark:bg-zinc-900"
|
|
745
752
|
}, [
|
|
@@ -752,11 +759,11 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
752
759
|
src: J(e),
|
|
753
760
|
alt: `Pré-visualização de ${e.name}`,
|
|
754
761
|
class: "size-12 shrink-0 rounded-lg object-cover"
|
|
755
|
-
}, null, 8,
|
|
762
|
+
}, null, 8, Fe)) : (b(), a("span", Ie, [...s[0] ||= [o("i", {
|
|
756
763
|
class: "pi pi-file text-2xl",
|
|
757
764
|
"aria-hidden": "true"
|
|
758
765
|
}, null, -1)]]))]),
|
|
759
|
-
o("div",
|
|
766
|
+
o("div", Le, [o("p", Re, D(e.name), 1), o("span", ze, D(B(e.size)), 1)]),
|
|
760
767
|
o("button", {
|
|
761
768
|
type: "button",
|
|
762
769
|
class: "flex size-8 shrink-0 items-center justify-center rounded-full border-0 bg-transparent p-0 text-red-600 transition-colors hover:bg-red-50 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-red-500 focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 dark:text-red-400 dark:hover:bg-red-950/40 dark:focus-visible:ring-offset-zinc-900",
|
|
@@ -766,8 +773,8 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
766
773
|
}, [...s[1] ||= [o("i", {
|
|
767
774
|
class: "pi pi-times",
|
|
768
775
|
"aria-hidden": "true"
|
|
769
|
-
}, null, -1)]], 8,
|
|
770
|
-
]))), 128)), t.multiple && (!t.maxFiles || _.value.length < t.maxFiles) ? (b(), r(
|
|
776
|
+
}, null, -1)]], 8, Be)
|
|
777
|
+
]))), 128)), t.multiple && (!t.maxFiles || _.value.length < t.maxFiles) ? (b(), r(ce, {
|
|
771
778
|
key: 0,
|
|
772
779
|
label: t.selectLabel,
|
|
773
780
|
icon: "pi pi-plus-circle",
|
|
@@ -784,15 +791,15 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
784
791
|
choose: K,
|
|
785
792
|
disabled: N.value
|
|
786
793
|
}, () => [
|
|
787
|
-
o("span",
|
|
794
|
+
o("span", je, [t.loading ? (b(), a("i", Me)) : (b(), r(O(Ee), {
|
|
788
795
|
key: 1,
|
|
789
|
-
icon: O(
|
|
796
|
+
icon: O(be),
|
|
790
797
|
size: 72,
|
|
791
798
|
"stroke-width": 1.5,
|
|
792
799
|
class: "text-primary-800 dark:text-primary-300"
|
|
793
800
|
}, null, 8, ["icon"]))]),
|
|
794
|
-
o("p",
|
|
795
|
-
l(
|
|
801
|
+
o("p", Ne, D(t.placeholder), 1),
|
|
802
|
+
l(ce, {
|
|
796
803
|
label: t.selectLabel,
|
|
797
804
|
icon: "pi pi-plus-circle",
|
|
798
805
|
disabled: t.disabled,
|
|
@@ -817,14 +824,14 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
817
824
|
id: te.value,
|
|
818
825
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
819
826
|
role: "alert"
|
|
820
|
-
}, D(M.value), 9,
|
|
827
|
+
}, D(M.value), 9, Ve)) : i("", !0)
|
|
821
828
|
]));
|
|
822
829
|
}
|
|
823
|
-
}),
|
|
830
|
+
}), Ue = { class: "top-input-text top-solutions-component flex w-full flex-col gap-1" }, We = ["for"], Ge = {
|
|
824
831
|
key: 0,
|
|
825
832
|
"aria-hidden": "true",
|
|
826
833
|
class: "text-red-600 dark:text-red-400"
|
|
827
|
-
},
|
|
834
|
+
}, Q = ["id"], $ = /* @__PURE__ */ u({
|
|
828
835
|
inheritAttrs: !1,
|
|
829
836
|
__name: "TopInputText",
|
|
830
837
|
props: {
|
|
@@ -858,12 +865,12 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
858
865
|
function g(e) {
|
|
859
866
|
o("update:modelValue", e ?? "");
|
|
860
867
|
}
|
|
861
|
-
return (t, n) => (b(), a("div",
|
|
868
|
+
return (t, n) => (b(), a("div", Ue, [
|
|
862
869
|
e.label ? (b(), a("label", {
|
|
863
870
|
key: 0,
|
|
864
871
|
for: d.value,
|
|
865
872
|
class: "top-field-label text-xs font-bold"
|
|
866
|
-
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span",
|
|
873
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", Ge, "*")) : i("", !0)], 8, We)) : i("", !0),
|
|
867
874
|
l(O(B), p(t.$attrs, {
|
|
868
875
|
id: d.value,
|
|
869
876
|
"model-value": e.modelValue,
|
|
@@ -894,14 +901,100 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
894
901
|
id: f.value,
|
|
895
902
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
896
903
|
role: "alert"
|
|
897
|
-
}, D(e.error), 9,
|
|
904
|
+
}, D(e.error), 9, Q)) : i("", !0)
|
|
898
905
|
]));
|
|
899
906
|
}
|
|
900
|
-
}),
|
|
907
|
+
}), Ke = { class: "top-text-area top-solutions-component flex w-full flex-col gap-1" }, qe = ["for"], Je = {
|
|
901
908
|
key: 0,
|
|
902
909
|
"aria-hidden": "true",
|
|
903
910
|
class: "text-red-600 dark:text-red-400"
|
|
904
|
-
},
|
|
911
|
+
}, Ye = ["id"], Xe = /* @__PURE__ */ u({
|
|
912
|
+
inheritAttrs: !1,
|
|
913
|
+
__name: "TopTextArea",
|
|
914
|
+
props: {
|
|
915
|
+
modelValue: { default: "" },
|
|
916
|
+
label: { default: "" },
|
|
917
|
+
placeholder: { default: "" },
|
|
918
|
+
required: {
|
|
919
|
+
type: Boolean,
|
|
920
|
+
default: !1
|
|
921
|
+
},
|
|
922
|
+
error: { default: "" },
|
|
923
|
+
disabled: {
|
|
924
|
+
type: Boolean,
|
|
925
|
+
default: !1
|
|
926
|
+
},
|
|
927
|
+
readonly: {
|
|
928
|
+
type: Boolean,
|
|
929
|
+
default: !1
|
|
930
|
+
},
|
|
931
|
+
rows: { default: 4 },
|
|
932
|
+
autoResize: {
|
|
933
|
+
type: Boolean,
|
|
934
|
+
default: !1
|
|
935
|
+
}
|
|
936
|
+
},
|
|
937
|
+
emits: ["update:modelValue"],
|
|
938
|
+
setup(e, { emit: t }) {
|
|
939
|
+
let r = e, o = t, s = ee(), u = k(), d = n(() => s.id === void 0 || s.id === null || s.id === "" ? u : String(s.id)), f = n(() => `${d.value}-error`), m = n(() => {
|
|
940
|
+
if (r.error) return !0;
|
|
941
|
+
let e = s["aria-invalid"];
|
|
942
|
+
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
943
|
+
}), h = n(() => {
|
|
944
|
+
let e = s["aria-describedby"], t = [typeof e == "string" ? e : "", r.error ? f.value : ""].filter(Boolean);
|
|
945
|
+
return t.length ? t.join(" ") : void 0;
|
|
946
|
+
});
|
|
947
|
+
function g(e) {
|
|
948
|
+
o("update:modelValue", e ?? "");
|
|
949
|
+
}
|
|
950
|
+
return (t, n) => (b(), a("div", Ke, [
|
|
951
|
+
e.label ? (b(), a("label", {
|
|
952
|
+
key: 0,
|
|
953
|
+
for: d.value,
|
|
954
|
+
class: "top-field-label text-xs font-bold"
|
|
955
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", Je, "*")) : i("", !0)], 8, qe)) : i("", !0),
|
|
956
|
+
l(O(V), p(t.$attrs, {
|
|
957
|
+
id: d.value,
|
|
958
|
+
"model-value": e.modelValue,
|
|
959
|
+
placeholder: e.placeholder,
|
|
960
|
+
required: e.required,
|
|
961
|
+
disabled: e.disabled,
|
|
962
|
+
readonly: e.readonly,
|
|
963
|
+
rows: e.rows,
|
|
964
|
+
"auto-resize": e.autoResize,
|
|
965
|
+
invalid: !!e.error,
|
|
966
|
+
"aria-invalid": m.value,
|
|
967
|
+
"aria-describedby": h.value,
|
|
968
|
+
fluid: "",
|
|
969
|
+
class: ["top-text-area__control top-field-control w-full rounded-[10px] border px-3 py-2 text-xs read-only:cursor-default disabled:cursor-not-allowed", { "resize-y": !e.autoResize }],
|
|
970
|
+
"onUpdate:modelValue": g
|
|
971
|
+
}), null, 16, [
|
|
972
|
+
"id",
|
|
973
|
+
"model-value",
|
|
974
|
+
"placeholder",
|
|
975
|
+
"required",
|
|
976
|
+
"disabled",
|
|
977
|
+
"readonly",
|
|
978
|
+
"rows",
|
|
979
|
+
"auto-resize",
|
|
980
|
+
"invalid",
|
|
981
|
+
"aria-invalid",
|
|
982
|
+
"aria-describedby",
|
|
983
|
+
"class"
|
|
984
|
+
]),
|
|
985
|
+
e.error ? (b(), a("span", {
|
|
986
|
+
key: 1,
|
|
987
|
+
id: f.value,
|
|
988
|
+
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
989
|
+
role: "alert"
|
|
990
|
+
}, D(e.error), 9, Ye)) : i("", !0)
|
|
991
|
+
]));
|
|
992
|
+
}
|
|
993
|
+
}), Ze = { class: "top-input-number top-solutions-component flex w-full flex-col gap-1" }, Qe = ["for"], $e = {
|
|
994
|
+
key: 0,
|
|
995
|
+
"aria-hidden": "true",
|
|
996
|
+
class: "text-red-600 dark:text-red-400"
|
|
997
|
+
}, et = ["id"], tt = /* @__PURE__ */ u({
|
|
905
998
|
inheritAttrs: !1,
|
|
906
999
|
__name: "TopInputNumber",
|
|
907
1000
|
props: {
|
|
@@ -1030,19 +1123,19 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1030
1123
|
t.value = a;
|
|
1031
1124
|
});
|
|
1032
1125
|
}
|
|
1033
|
-
function
|
|
1126
|
+
function V(e) {
|
|
1034
1127
|
let t = e.target;
|
|
1035
1128
|
l("blur", {
|
|
1036
1129
|
originalEvent: e,
|
|
1037
1130
|
value: t instanceof HTMLInputElement ? t.value : ""
|
|
1038
1131
|
});
|
|
1039
1132
|
}
|
|
1040
|
-
return (t, n) => (b(), a("div",
|
|
1133
|
+
return (t, n) => (b(), a("div", Ze, [
|
|
1041
1134
|
e.label ? (b(), a("label", {
|
|
1042
1135
|
key: 0,
|
|
1043
1136
|
for: _.value,
|
|
1044
1137
|
class: "top-field-label text-xs font-bold"
|
|
1045
|
-
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span",
|
|
1138
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", $e, "*")) : i("", !0)], 8, Qe)) : i("", !0),
|
|
1046
1139
|
T.value ? (b(), r(O(B), p({ key: 1 }, M.value, {
|
|
1047
1140
|
id: _.value,
|
|
1048
1141
|
"model-value": R(e.modelValue),
|
|
@@ -1059,7 +1152,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1059
1152
|
class: N.value,
|
|
1060
1153
|
onInput: z,
|
|
1061
1154
|
onFocus: n[0] ||= (e) => l("focus", e),
|
|
1062
|
-
onBlur:
|
|
1155
|
+
onBlur: V
|
|
1063
1156
|
}), null, 16, [
|
|
1064
1157
|
"id",
|
|
1065
1158
|
"model-value",
|
|
@@ -1071,7 +1164,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1071
1164
|
"aria-invalid",
|
|
1072
1165
|
"aria-describedby",
|
|
1073
1166
|
"class"
|
|
1074
|
-
])) : (b(), r(O(
|
|
1167
|
+
])) : (b(), r(O(H), p({ key: 2 }, M.value, {
|
|
1075
1168
|
"model-value": e.modelValue,
|
|
1076
1169
|
"input-id": _.value,
|
|
1077
1170
|
placeholder: e.placeholder,
|
|
@@ -1114,18 +1207,18 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1114
1207
|
id: v.value,
|
|
1115
1208
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
1116
1209
|
role: "alert"
|
|
1117
|
-
}, D(e.error), 9,
|
|
1210
|
+
}, D(e.error), 9, et)) : i("", !0)
|
|
1118
1211
|
]));
|
|
1119
1212
|
}
|
|
1120
|
-
}),
|
|
1213
|
+
}), nt = [
|
|
1121
1214
|
"disabled",
|
|
1122
1215
|
"aria-expanded",
|
|
1123
1216
|
"onClick"
|
|
1124
|
-
],
|
|
1217
|
+
], rt = { class: "top-nav-bar__mobile-item-label" }, it = {
|
|
1125
1218
|
key: 1,
|
|
1126
1219
|
class: "top-nav-bar__mobile-count",
|
|
1127
1220
|
"aria-hidden": "true"
|
|
1128
|
-
},
|
|
1221
|
+
}, at = /* @__PURE__ */ u({
|
|
1129
1222
|
name: "TopNavMobileTree",
|
|
1130
1223
|
__name: "TopNavMobileTree",
|
|
1131
1224
|
props: {
|
|
@@ -1198,14 +1291,14 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1198
1291
|
class: h(e.icon),
|
|
1199
1292
|
"aria-hidden": "true"
|
|
1200
1293
|
}, null, 2)) : i("", !0),
|
|
1201
|
-
o("span",
|
|
1202
|
-
p(e).length ? (b(), a("span",
|
|
1294
|
+
o("span", rt, D(e.label), 1),
|
|
1295
|
+
p(e).length ? (b(), a("span", it, D(p(e).length), 1)) : i("", !0),
|
|
1203
1296
|
p(e).length ? (b(), a("i", {
|
|
1204
1297
|
key: 2,
|
|
1205
1298
|
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": g(e) }]),
|
|
1206
1299
|
"aria-hidden": "true"
|
|
1207
1300
|
}, null, 2)) : i("", !0)
|
|
1208
|
-
], 10,
|
|
1301
|
+
], 10, nt), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
1209
1302
|
default: j(() => [p(e).length && g(e) ? (b(), r(u, {
|
|
1210
1303
|
key: 0,
|
|
1211
1304
|
items: p(e),
|
|
@@ -1223,178 +1316,178 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1223
1316
|
}, 1024)], 2))), 128))], 6);
|
|
1224
1317
|
};
|
|
1225
1318
|
}
|
|
1226
|
-
}),
|
|
1319
|
+
}), ot = ["aria-expanded"], st = { class: "top-nav-bar__brand" }, ct = {
|
|
1227
1320
|
key: 1,
|
|
1228
1321
|
class: "top-nav-bar__brand-context-divider",
|
|
1229
1322
|
"aria-hidden": "true"
|
|
1230
|
-
},
|
|
1323
|
+
}, lt = {
|
|
1231
1324
|
key: 2,
|
|
1232
1325
|
class: "top-nav-bar__context"
|
|
1233
|
-
},
|
|
1326
|
+
}, ut = {
|
|
1234
1327
|
key: 0,
|
|
1235
1328
|
class: "top-nav-bar__client"
|
|
1236
|
-
},
|
|
1329
|
+
}, dt = ["src"], ft = {
|
|
1237
1330
|
key: 1,
|
|
1238
1331
|
class: "top-nav-bar__client-logo"
|
|
1239
|
-
},
|
|
1332
|
+
}, pt = {
|
|
1240
1333
|
key: 2,
|
|
1241
1334
|
class: "top-nav-bar__client-details"
|
|
1242
|
-
},
|
|
1335
|
+
}, mt = { class: "top-nav-bar__client-name" }, ht = {
|
|
1243
1336
|
key: 0,
|
|
1244
1337
|
class: "top-nav-bar__client-subtitle"
|
|
1245
|
-
},
|
|
1338
|
+
}, gt = { class: "top-nav-bar__desktop-tools" }, _t = {
|
|
1246
1339
|
key: 0,
|
|
1247
1340
|
class: "top-nav-bar__search-shell",
|
|
1248
1341
|
"data-top-nav-search": ""
|
|
1249
|
-
},
|
|
1342
|
+
}, vt = ["value", "placeholder"], yt = ["aria-label"], bt = {
|
|
1250
1343
|
key: 1,
|
|
1251
1344
|
class: "top-nav-bar__search-results",
|
|
1252
1345
|
role: "menu"
|
|
1253
|
-
},
|
|
1346
|
+
}, xt = { class: "top-nav-bar__search-results-scroll" }, St = ["disabled", "onClick"], Ct = {
|
|
1254
1347
|
key: 0,
|
|
1255
1348
|
class: "top-nav-bar__empty"
|
|
1256
|
-
},
|
|
1349
|
+
}, wt = {
|
|
1257
1350
|
key: 1,
|
|
1258
1351
|
class: "top-nav-bar__quick-actions",
|
|
1259
1352
|
"data-top-nav-actions": ""
|
|
1260
|
-
},
|
|
1353
|
+
}, Tt = [
|
|
1261
1354
|
"disabled",
|
|
1262
1355
|
"aria-label",
|
|
1263
1356
|
"aria-pressed",
|
|
1264
1357
|
"title",
|
|
1265
1358
|
"onClick"
|
|
1266
|
-
],
|
|
1359
|
+
], Et = ["aria-expanded"], Dt = {
|
|
1267
1360
|
key: 0,
|
|
1268
1361
|
class: "top-nav-bar__popover-layer top-nav-bar__actions-layer"
|
|
1269
|
-
},
|
|
1362
|
+
}, Ot = {
|
|
1270
1363
|
class: "top-nav-bar__small-panel",
|
|
1271
1364
|
role: "menu"
|
|
1272
|
-
},
|
|
1365
|
+
}, kt = ["disabled", "onClick"], At = {
|
|
1273
1366
|
key: 2,
|
|
1274
1367
|
class: "top-nav-bar__custom-actions"
|
|
1275
|
-
},
|
|
1368
|
+
}, jt = ["aria-haspopup", "aria-expanded"], Mt = ["src"], Nt = {
|
|
1276
1369
|
key: 1,
|
|
1277
1370
|
class: "top-nav-bar__user-avatar"
|
|
1278
|
-
},
|
|
1371
|
+
}, Pt = {
|
|
1279
1372
|
key: 2,
|
|
1280
1373
|
class: "top-nav-bar__user-details"
|
|
1281
|
-
},
|
|
1374
|
+
}, Ft = { class: "top-nav-bar__user-name" }, It = {
|
|
1282
1375
|
key: 0,
|
|
1283
1376
|
class: "top-nav-bar__user-subtitle"
|
|
1284
|
-
},
|
|
1377
|
+
}, Lt = {
|
|
1285
1378
|
key: 0,
|
|
1286
1379
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1287
1380
|
"aria-hidden": "true"
|
|
1288
|
-
},
|
|
1381
|
+
}, Rt = {
|
|
1289
1382
|
key: 0,
|
|
1290
1383
|
class: "top-nav-bar__popover-layer top-nav-bar__user-layer"
|
|
1291
|
-
},
|
|
1384
|
+
}, zt = {
|
|
1292
1385
|
class: "top-nav-bar__small-panel top-nav-bar__user-dropdown",
|
|
1293
1386
|
role: "menu"
|
|
1294
|
-
},
|
|
1387
|
+
}, Bt = {
|
|
1295
1388
|
key: 0,
|
|
1296
1389
|
class: "top-nav-bar__user-separator",
|
|
1297
1390
|
role: "separator"
|
|
1298
|
-
},
|
|
1391
|
+
}, Vt = ["disabled", "onClick"], Ht = {
|
|
1299
1392
|
class: "top-nav-bar__breadcrumbs",
|
|
1300
1393
|
"aria-label": "Breadcrumb"
|
|
1301
|
-
},
|
|
1394
|
+
}, Ut = {
|
|
1302
1395
|
key: 0,
|
|
1303
1396
|
class: "top-nav-bar__separator top-nav-bar__desktop-navigation-separator",
|
|
1304
1397
|
"aria-hidden": "true"
|
|
1305
|
-
},
|
|
1398
|
+
}, Wt = ["aria-expanded"], Gt = {
|
|
1306
1399
|
key: 0,
|
|
1307
1400
|
class: "top-nav-bar__menu-layer"
|
|
1308
|
-
},
|
|
1401
|
+
}, Kt = {
|
|
1309
1402
|
class: "top-nav-bar__menu-panel",
|
|
1310
1403
|
role: "menu"
|
|
1311
|
-
},
|
|
1404
|
+
}, qt = { class: "top-nav-bar__section-list" }, Jt = [
|
|
1312
1405
|
"aria-haspopup",
|
|
1313
1406
|
"aria-expanded",
|
|
1314
1407
|
"onMouseenter",
|
|
1315
1408
|
"onClick"
|
|
1316
|
-
],
|
|
1409
|
+
], Yt = { class: "top-nav-bar__menu-label" }, Xt = {
|
|
1317
1410
|
key: 1,
|
|
1318
1411
|
class: "top-nav-bar__item-count"
|
|
1319
|
-
},
|
|
1412
|
+
}, Zt = {
|
|
1320
1413
|
key: 2,
|
|
1321
1414
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1322
1415
|
"aria-hidden": "true"
|
|
1323
|
-
},
|
|
1416
|
+
}, Qt = {
|
|
1324
1417
|
key: 0,
|
|
1325
1418
|
class: "top-nav-bar__submenu-region"
|
|
1326
|
-
},
|
|
1419
|
+
}, $t = [
|
|
1327
1420
|
"disabled",
|
|
1328
1421
|
"aria-haspopup",
|
|
1329
1422
|
"aria-expanded",
|
|
1330
1423
|
"onMouseenter",
|
|
1331
1424
|
"onClick"
|
|
1332
|
-
],
|
|
1425
|
+
], en = { class: "top-nav-bar__menu-label" }, tn = {
|
|
1333
1426
|
key: 1,
|
|
1334
1427
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1335
1428
|
"aria-hidden": "true"
|
|
1336
|
-
},
|
|
1429
|
+
}, nn = ["onMouseenter"], rn = {
|
|
1337
1430
|
key: 0,
|
|
1338
1431
|
class: "top-nav-bar__crumb top-nav-bar__crumb--static"
|
|
1339
|
-
},
|
|
1432
|
+
}, an = ["aria-expanded", "onClick"], on = {
|
|
1340
1433
|
key: 2,
|
|
1341
1434
|
class: "top-nav-bar__menu-layer"
|
|
1342
|
-
},
|
|
1435
|
+
}, sn = {
|
|
1343
1436
|
class: "top-nav-bar__menu-panel top-nav-bar__breadcrumb-panel",
|
|
1344
1437
|
role: "menu"
|
|
1345
|
-
},
|
|
1438
|
+
}, cn = [
|
|
1346
1439
|
"disabled",
|
|
1347
1440
|
"onMouseenter",
|
|
1348
1441
|
"onClick"
|
|
1349
|
-
],
|
|
1442
|
+
], ln = { class: "top-nav-bar__menu-label" }, un = {
|
|
1350
1443
|
key: 1,
|
|
1351
1444
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1352
1445
|
"aria-hidden": "true"
|
|
1353
|
-
},
|
|
1446
|
+
}, dn = ["onClick"], fn = ["title"], pn = { class: "top-nav-bar__current-label" }, mn = ["aria-label", "aria-pressed"], hn = { class: "top-nav-bar__breadcrumb-actions" }, gn = ["aria-expanded"], _n = {
|
|
1354
1447
|
key: 0,
|
|
1355
1448
|
class: "top-nav-bar__popover-layer top-nav-bar__favorites-layer"
|
|
1356
|
-
},
|
|
1449
|
+
}, vn = {
|
|
1357
1450
|
class: "top-nav-bar__small-panel top-nav-bar__favorites-panel",
|
|
1358
1451
|
role: "menu"
|
|
1359
|
-
},
|
|
1452
|
+
}, yn = ["disabled", "onClick"], bn = { class: "top-nav-bar__favorites-title" }, xn = {
|
|
1360
1453
|
key: 0,
|
|
1361
1454
|
class: "top-nav-bar__favorites-separator"
|
|
1362
|
-
},
|
|
1455
|
+
}, Sn = {
|
|
1363
1456
|
key: 0,
|
|
1364
1457
|
class: "top-nav-bar__favorites-row top-nav-bar__desktop-only"
|
|
1365
|
-
},
|
|
1458
|
+
}, Cn = { class: "top-nav-bar__favorites-title" }, wn = { class: "top-nav-bar__favorites-list" }, Tn = {
|
|
1366
1459
|
key: 0,
|
|
1367
1460
|
class: "top-nav-bar__favorites-separator",
|
|
1368
1461
|
"aria-hidden": "true"
|
|
1369
|
-
},
|
|
1462
|
+
}, En = ["disabled", "onClick"], Dn = { class: "top-nav-bar__mobile-menu" }, On = { class: "top-nav-bar__mobile-menu-header" }, kn = { class: "top-nav-bar__drawer-brand" }, An = ["onClick"], jn = {
|
|
1370
1463
|
key: 0,
|
|
1371
1464
|
class: "top-nav-bar__drawer-tools"
|
|
1372
|
-
},
|
|
1465
|
+
}, Mn = { class: "top-nav-bar__drawer-search" }, Nn = ["value", "placeholder"], Pn = ["disabled", "onClick"], Fn = { class: "top-nav-bar__mobile-menu-scroll" }, In = { class: "top-nav-bar__mobile-menu-track" }, Ln = {
|
|
1373
1466
|
key: 0,
|
|
1374
1467
|
class: "top-nav-bar__mobile-favorites"
|
|
1375
|
-
},
|
|
1468
|
+
}, Rn = ["aria-expanded"], zn = { class: "top-nav-bar__mobile-item-label" }, Bn = { class: "top-nav-bar__mobile-count" }, Vn = {
|
|
1376
1469
|
key: 1,
|
|
1377
1470
|
class: "top-nav-bar__drawer-empty"
|
|
1378
|
-
},
|
|
1471
|
+
}, Hn = {
|
|
1379
1472
|
key: 1,
|
|
1380
1473
|
class: "top-nav-bar__mobile-footer"
|
|
1381
|
-
},
|
|
1474
|
+
}, Un = ["aria-haspopup", "aria-expanded"], Wn = ["src"], Gn = {
|
|
1382
1475
|
key: 1,
|
|
1383
1476
|
class: "top-nav-bar__user-avatar"
|
|
1384
|
-
},
|
|
1477
|
+
}, Kn = {
|
|
1385
1478
|
key: 2,
|
|
1386
1479
|
class: "top-nav-bar__user-details"
|
|
1387
|
-
},
|
|
1480
|
+
}, qn = { class: "top-nav-bar__user-name" }, Jn = {
|
|
1388
1481
|
key: 0,
|
|
1389
1482
|
class: "top-nav-bar__drawer-user-context"
|
|
1390
|
-
},
|
|
1483
|
+
}, Yn = { class: "top-nav-bar__drawer-user-client" }, Xn = {
|
|
1391
1484
|
key: 0,
|
|
1392
1485
|
class: "top-nav-bar__drawer-user-client-subtitle"
|
|
1393
|
-
},
|
|
1486
|
+
}, Zn = {
|
|
1394
1487
|
key: 3,
|
|
1395
1488
|
class: "pi pi-chevron-down top-nav-bar__mobile-chevron",
|
|
1396
1489
|
"aria-hidden": "true"
|
|
1397
|
-
},
|
|
1490
|
+
}, Qn = 120, $n = 24, er = /* @__PURE__ */ u({
|
|
1398
1491
|
__name: "TopNavBar",
|
|
1399
1492
|
props: {
|
|
1400
1493
|
sections: { default: () => [] },
|
|
@@ -1461,7 +1554,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1461
1554
|
"user-click"
|
|
1462
1555
|
],
|
|
1463
1556
|
setup(s, { expose: u, emit: d }) {
|
|
1464
|
-
let f = s, p = d, g = te(), x = S(null), T = S(null), E = S(null), ee = S(null), k = S(null), M = S(null), P = S(f.mobileOpen ?? !1), F = S(!1), I = S(null), L = S([]), R = S(null), z = S([]), B = S(!1), V = S(!1), H = S(!1),
|
|
1557
|
+
let f = s, p = d, g = te(), x = S(null), T = S(null), E = S(null), ee = S(null), k = S(null), M = S(null), P = S(f.mobileOpen ?? !1), F = S(!1), I = S(null), L = S([]), R = S(null), z = S([]), B = S(!1), V = S(!1), H = S(!1), re = S(null), W = S(!1), G = S(!1), K = S(!1), q = S(!0), ie = S(!1), J = S(f.searchValue ?? ""), Y = S(!1), ae = S(!1), oe = S(!1), X = S({
|
|
1465
1558
|
collapseActions: !1,
|
|
1466
1559
|
searchIconOnly: !1,
|
|
1467
1560
|
hideUserName: !1,
|
|
@@ -1518,10 +1611,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1518
1611
|
}
|
|
1519
1612
|
return null;
|
|
1520
1613
|
}
|
|
1521
|
-
function
|
|
1614
|
+
function be(e, t) {
|
|
1522
1615
|
for (let n of e) {
|
|
1523
1616
|
if (n.id === t) return n;
|
|
1524
|
-
let e =
|
|
1617
|
+
let e = be(n.children ?? [], t);
|
|
1525
1618
|
if (e) return e;
|
|
1526
1619
|
}
|
|
1527
1620
|
return null;
|
|
@@ -1548,9 +1641,9 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1548
1641
|
}));
|
|
1549
1642
|
});
|
|
1550
1643
|
function we(e) {
|
|
1551
|
-
return e.menuId ?
|
|
1644
|
+
return e.menuId ? be(Z.value, e.menuId) : e.sectionId ? Z.value.find((t) => t.id === e.sectionId) ?? null : null;
|
|
1552
1645
|
}
|
|
1553
|
-
let
|
|
1646
|
+
let Te = n(() => Z.value.find((e) => e.id === I.value) ?? null);
|
|
1554
1647
|
function De(e, t) {
|
|
1555
1648
|
let n = [], r = e, i = 0;
|
|
1556
1649
|
for (; r.length;) {
|
|
@@ -1563,7 +1656,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1563
1656
|
}
|
|
1564
1657
|
return n;
|
|
1565
1658
|
}
|
|
1566
|
-
let Oe = n(() =>
|
|
1659
|
+
let Oe = n(() => Te.value ? De(Te.value.children ?? [], L.value) : []);
|
|
1567
1660
|
function ke(e, t = 10) {
|
|
1568
1661
|
let n = [];
|
|
1569
1662
|
for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
|
|
@@ -1607,11 +1700,11 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1607
1700
|
}), He = n(() => f.client ? f.client.initials ? f.client.initials : f.client.name.split(/\s+/).filter(Boolean).slice(0, 2).map((e) => e[0]?.toLocaleUpperCase("pt-BR")).join("") : "");
|
|
1608
1701
|
function Ue() {
|
|
1609
1702
|
let e = Math.max(0, window.scrollY);
|
|
1610
|
-
if (!K.value && e >=
|
|
1703
|
+
if (!K.value && e >= Qn) {
|
|
1611
1704
|
K.value = !0;
|
|
1612
1705
|
return;
|
|
1613
1706
|
}
|
|
1614
|
-
K.value && e <=
|
|
1707
|
+
K.value && e <= $n && (K.value = !1);
|
|
1615
1708
|
}
|
|
1616
1709
|
function We() {
|
|
1617
1710
|
let e = E.value, t = ee.value;
|
|
@@ -1641,7 +1734,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1641
1734
|
p("user-click", f.user);
|
|
1642
1735
|
return;
|
|
1643
1736
|
}
|
|
1644
|
-
|
|
1737
|
+
re.value?.toggle(e);
|
|
1645
1738
|
}
|
|
1646
1739
|
function Ye(e) {
|
|
1647
1740
|
J.value = e, p("update:searchValue", e), p("search", e);
|
|
@@ -1655,17 +1748,17 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1655
1748
|
function Qe() {
|
|
1656
1749
|
!Q() || window.innerWidth < 1024 || (F.value = !1, I.value = null, L.value = []);
|
|
1657
1750
|
}
|
|
1658
|
-
function
|
|
1751
|
+
function $e() {
|
|
1659
1752
|
if (Q()) {
|
|
1660
1753
|
F.value = !0;
|
|
1661
1754
|
return;
|
|
1662
1755
|
}
|
|
1663
1756
|
F.value = !F.value, F.value || (I.value = null, L.value = []);
|
|
1664
1757
|
}
|
|
1665
|
-
function
|
|
1758
|
+
function et(e) {
|
|
1666
1759
|
Q() && (I.value = e, L.value = []);
|
|
1667
1760
|
}
|
|
1668
|
-
function
|
|
1761
|
+
function tt(e) {
|
|
1669
1762
|
if (Q()) {
|
|
1670
1763
|
I.value = e, L.value = [];
|
|
1671
1764
|
return;
|
|
@@ -1673,7 +1766,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1673
1766
|
let t = I.value === e;
|
|
1674
1767
|
I.value = t ? null : e, L.value = [];
|
|
1675
1768
|
}
|
|
1676
|
-
function
|
|
1769
|
+
function nt(e, t, n, r) {
|
|
1677
1770
|
if (r && !Q()) return;
|
|
1678
1771
|
let i = e.value[n];
|
|
1679
1772
|
if (!t.children?.length) {
|
|
@@ -1686,11 +1779,11 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1686
1779
|
}
|
|
1687
1780
|
e.value = i === t.id && !r ? e.value.slice(0, n) : [...e.value.slice(0, n), t.id];
|
|
1688
1781
|
}
|
|
1689
|
-
function
|
|
1690
|
-
|
|
1782
|
+
function rt(e, t, n) {
|
|
1783
|
+
nt(L, e, t, n);
|
|
1691
1784
|
}
|
|
1692
|
-
function
|
|
1693
|
-
|
|
1785
|
+
function it(e, t, n) {
|
|
1786
|
+
nt(z, e, t, n);
|
|
1694
1787
|
}
|
|
1695
1788
|
function er(e) {
|
|
1696
1789
|
Q() && (R.value = e, z.value = []);
|
|
@@ -1778,7 +1871,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1778
1871
|
}
|
|
1779
1872
|
if (e.key === "Escape") {
|
|
1780
1873
|
if (H.value) {
|
|
1781
|
-
|
|
1874
|
+
re.value?.hide();
|
|
1782
1875
|
return;
|
|
1783
1876
|
}
|
|
1784
1877
|
P.value &&= !1, rr(), X.value.searchIconOnly && !J.value.trim() && (ae.value = !1);
|
|
@@ -1847,10 +1940,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1847
1940
|
}, [...u[19] ||= [o("i", {
|
|
1848
1941
|
class: "pi pi-bars",
|
|
1849
1942
|
"aria-hidden": "true"
|
|
1850
|
-
}, null, -1)]], 8,
|
|
1851
|
-
o("div",
|
|
1852
|
-
Pe.value ? (b(), a("div",
|
|
1853
|
-
Pe.value ? (b(), a("div",
|
|
1943
|
+
}, null, -1)]], 8, ot)) : i("", !0),
|
|
1944
|
+
o("div", st, [w(n.$slots, "brand", { compact: X.value.hideContextDetails })]),
|
|
1945
|
+
Pe.value ? (b(), a("div", ct)) : i("", !0),
|
|
1946
|
+
Pe.value ? (b(), a("div", lt, [X.value.hideContextDetails && n.$slots["context-compact"] ? w(n.$slots, "context-compact", {
|
|
1854
1947
|
client: s.client,
|
|
1855
1948
|
compact: !0
|
|
1856
1949
|
}, void 0, void 0, 0) : n.$slots.context ? w(n.$slots, "context", {
|
|
@@ -1862,18 +1955,18 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1862
1955
|
}, void 0, void 0, 2) : w(n.$slots, "client", {
|
|
1863
1956
|
client: s.client,
|
|
1864
1957
|
compact: X.value.hideContextDetails
|
|
1865
|
-
}, () => [s.client ? (b(), a("div",
|
|
1958
|
+
}, () => [s.client ? (b(), a("div", ut, [s.client.logoUrl ? (b(), a("img", {
|
|
1866
1959
|
key: 0,
|
|
1867
1960
|
src: s.client.logoUrl,
|
|
1868
1961
|
alt: "",
|
|
1869
1962
|
class: "top-nav-bar__client-logo"
|
|
1870
|
-
}, null, 8,
|
|
1963
|
+
}, null, 8, dt)) : (b(), a("span", ft, D(He.value), 1)), X.value.hideContextDetails ? i("", !0) : (b(), a("span", pt, [o("span", mt, D(s.client.name), 1), s.client.subtitle ? (b(), a("span", ht, D(s.client.subtitle), 1)) : i("", !0)]))])) : i("", !0)], void 0, 3)])) : i("", !0),
|
|
1871
1964
|
u[24] ||= o("div", {
|
|
1872
1965
|
class: "top-nav-bar__spacer",
|
|
1873
1966
|
"aria-hidden": "true"
|
|
1874
1967
|
}, null, -1),
|
|
1875
|
-
o("div",
|
|
1876
|
-
s.searchable ? (b(), a("div",
|
|
1968
|
+
o("div", gt, [
|
|
1969
|
+
s.searchable ? (b(), a("div", _t, [X.value.searchIconOnly && !ae.value ? (b(), a("button", {
|
|
1877
1970
|
key: 0,
|
|
1878
1971
|
class: "top-nav-bar__square-button",
|
|
1879
1972
|
type: "button",
|
|
@@ -1902,7 +1995,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1902
1995
|
onFocus: u[1] ||= (e) => Y.value = !0,
|
|
1903
1996
|
onBlur: ar,
|
|
1904
1997
|
onInput: u[2] ||= (e) => Ye(e.target.value)
|
|
1905
|
-
}, null, 40,
|
|
1998
|
+
}, null, 40, vt),
|
|
1906
1999
|
J.value || X.value.searchIconOnly && ae.value ? (b(), a("button", {
|
|
1907
2000
|
key: 0,
|
|
1908
2001
|
class: "top-nav-bar__search-clear",
|
|
@@ -1913,8 +2006,8 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1913
2006
|
}, [...u[21] ||= [o("i", {
|
|
1914
2007
|
class: "pi pi-times",
|
|
1915
2008
|
"aria-hidden": "true"
|
|
1916
|
-
}, null, -1)]], 40,
|
|
1917
|
-
Y.value ? (b(), a("div",
|
|
2009
|
+
}, null, -1)]], 40, yt)) : i("", !0),
|
|
2010
|
+
Y.value ? (b(), a("div", bt, [o("div", xt, [w(n.$slots, "search-results", {
|
|
1918
2011
|
items: ge.value,
|
|
1919
2012
|
select: $
|
|
1920
2013
|
}, () => [(b(!0), a(e, null, C(ge.value, (e) => (b(), a("button", {
|
|
@@ -1929,9 +2022,9 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1929
2022
|
key: 0,
|
|
1930
2023
|
class: h(e.icon),
|
|
1931
2024
|
"aria-hidden": "true"
|
|
1932
|
-
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 40,
|
|
2025
|
+
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 40, St))), 128)), ge.value.length ? i("", !0) : (b(), a("span", Ct, "Nenhum item encontrado."))])])])) : i("", !0)
|
|
1933
2026
|
], 2))])) : i("", !0),
|
|
1934
|
-
Ae.value.length ? (b(), a("div",
|
|
2027
|
+
Ae.value.length ? (b(), a("div", wt, [X.value.collapseActions ? (b(), a(e, { key: 1 }, [o("button", {
|
|
1935
2028
|
class: "top-nav-bar__square-button",
|
|
1936
2029
|
type: "button",
|
|
1937
2030
|
"aria-label": "Mais ações",
|
|
@@ -1940,7 +2033,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1940
2033
|
}, [...u[23] ||= [o("i", {
|
|
1941
2034
|
class: "pi pi-ellipsis-h",
|
|
1942
2035
|
"aria-hidden": "true"
|
|
1943
|
-
}, null, -1)]], 8,
|
|
2036
|
+
}, null, -1)]], 8, Et), B.value ? (b(), a("div", Dt, [o("div", Ot, [(b(!0), a(e, null, C(Ae.value, (e) => (b(), a("button", {
|
|
1944
2037
|
key: e.id,
|
|
1945
2038
|
class: "top-nav-bar__menu-item",
|
|
1946
2039
|
type: "button",
|
|
@@ -1950,7 +2043,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1950
2043
|
}, [o("i", {
|
|
1951
2044
|
class: h(e.icon),
|
|
1952
2045
|
"aria-hidden": "true"
|
|
1953
|
-
}, null, 2), o("span", null, D(e.label), 1)], 8,
|
|
2046
|
+
}, null, 2), o("span", null, D(e.label), 1)], 8, kt))), 128))])])) : i("", !0)], 64)) : (b(!0), a(e, { key: 0 }, C(Ae.value, (e) => (b(), a("button", {
|
|
1954
2047
|
key: e.id,
|
|
1955
2048
|
class: h(["top-nav-bar__square-button", { "top-nav-bar__square-button--active": e.kind === "aia" && s.aiaActive }]),
|
|
1956
2049
|
type: "button",
|
|
@@ -1969,8 +2062,8 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1969
2062
|
key: 2,
|
|
1970
2063
|
class: h(e.icon),
|
|
1971
2064
|
"aria-hidden": "true"
|
|
1972
|
-
}, null, 2))], 10,
|
|
1973
|
-
n.$slots.actions ? (b(), a("div",
|
|
2065
|
+
}, null, 2))], 10, Tt))), 128))])) : i("", !0),
|
|
2066
|
+
n.$slots.actions ? (b(), a("div", At, [w(n.$slots, "actions", {
|
|
1974
2067
|
compact: X.value.collapseActions,
|
|
1975
2068
|
close: rr
|
|
1976
2069
|
})])) : i("", !0),
|
|
@@ -1994,10 +2087,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1994
2087
|
src: s.user.avatarUrl,
|
|
1995
2088
|
alt: "",
|
|
1996
2089
|
class: "top-nav-bar__user-avatar"
|
|
1997
|
-
}, null, 8,
|
|
2090
|
+
}, null, 8, Mt)) : (b(), a("span", Nt, D(ze.value), 1)), s.user && !X.value.hideUserName ? (b(), a("span", Pt, [o("span", Ft, D(s.user.name), 1), s.user.subtitle ? (b(), a("span", It, D(s.user.subtitle), 1)) : i("", !0)])) : i("", !0)]), Me.value ? (b(), a("i", Lt)) : i("", !0)], 8, jt), Me.value && V.value ? (b(), a("div", Rt, [o("div", zt, [w(n.$slots, "user-menu", {
|
|
1998
2091
|
items: je.value,
|
|
1999
2092
|
select: qe
|
|
2000
|
-
}, () => [(b(!0), a(e, null, C(je.value, (t) => (b(), a(e, { key: t.id }, [t.separator ? (b(), a("div",
|
|
2093
|
+
}, () => [(b(!0), a(e, null, C(je.value, (t) => (b(), a(e, { key: t.id }, [t.separator ? (b(), a("div", Bt)) : (b(), a("button", {
|
|
2001
2094
|
key: 1,
|
|
2002
2095
|
class: "top-nav-bar__menu-item",
|
|
2003
2096
|
type: "button",
|
|
@@ -2008,16 +2101,16 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2008
2101
|
key: 0,
|
|
2009
2102
|
class: h(t.icon),
|
|
2010
2103
|
"aria-hidden": "true"
|
|
2011
|
-
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8,
|
|
2104
|
+
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, Vt))], 64))), 128))])])])) : i("", !0)], 32)) : i("", !0)
|
|
2012
2105
|
])
|
|
2013
2106
|
], 2),
|
|
2014
|
-
o("div",
|
|
2107
|
+
o("div", Ht, [
|
|
2015
2108
|
o("button", {
|
|
2016
2109
|
class: "top-nav-bar__crumb",
|
|
2017
2110
|
type: "button",
|
|
2018
2111
|
onClick: u[9] ||= (e) => $(s.homeItem)
|
|
2019
|
-
}, [l(O(
|
|
2020
|
-
Z.value.length ? (b(), a("span",
|
|
2112
|
+
}, [l(O(Ee), { icon: O(xe) }, null, 8, ["icon"]), o("span", null, D(s.homeItem.label), 1)]),
|
|
2113
|
+
Z.value.length ? (b(), a("span", Ut, "/")) : i("", !0),
|
|
2021
2114
|
Z.value.length ? (b(), a("div", {
|
|
2022
2115
|
key: 1,
|
|
2023
2116
|
class: "top-nav-bar__dropdown top-nav-bar__desktop-navigation",
|
|
@@ -2029,7 +2122,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2029
2122
|
type: "button",
|
|
2030
2123
|
"aria-haspopup": "menu",
|
|
2031
2124
|
"aria-expanded": F.value,
|
|
2032
|
-
onClick:
|
|
2125
|
+
onClick: $e
|
|
2033
2126
|
}, [
|
|
2034
2127
|
u[25] ||= o("i", {
|
|
2035
2128
|
class: "pi pi-bars",
|
|
@@ -2040,25 +2133,25 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2040
2133
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2041
2134
|
"aria-hidden": "true"
|
|
2042
2135
|
}, null, -1)
|
|
2043
|
-
], 8,
|
|
2136
|
+
], 8, Wt), F.value ? (b(), a("div", Gt, [o("div", Kt, [o("div", qt, [(b(!0), a(e, null, C(Z.value, (e) => (b(), a("button", {
|
|
2044
2137
|
key: e.id,
|
|
2045
2138
|
class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": e.children?.length && I.value === e.id }]),
|
|
2046
2139
|
type: "button",
|
|
2047
2140
|
role: "menuitem",
|
|
2048
2141
|
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
2049
2142
|
"aria-expanded": e.children?.length ? I.value === e.id : void 0,
|
|
2050
|
-
onMouseenter: (t) => e.children?.length ?
|
|
2051
|
-
onClick: (t) => e.children?.length ?
|
|
2143
|
+
onMouseenter: (t) => e.children?.length ? et(e.id) : void 0,
|
|
2144
|
+
onClick: (t) => e.children?.length ? tt(e.id) : $(e)
|
|
2052
2145
|
}, [
|
|
2053
2146
|
e.icon ? (b(), a("i", {
|
|
2054
2147
|
key: 0,
|
|
2055
2148
|
class: h(e.icon),
|
|
2056
2149
|
"aria-hidden": "true"
|
|
2057
2150
|
}, null, 2)) : i("", !0),
|
|
2058
|
-
o("span",
|
|
2059
|
-
e.children?.length ? (b(), a("span",
|
|
2060
|
-
e.children?.length ? (b(), a("i",
|
|
2061
|
-
], 42,
|
|
2151
|
+
o("span", Yt, D(e.label), 1),
|
|
2152
|
+
e.children?.length ? (b(), a("span", Xt, D(e.children.length), 1)) : i("", !0),
|
|
2153
|
+
e.children?.length ? (b(), a("i", Zt)) : i("", !0)
|
|
2154
|
+
], 42, Jt))), 128))]), Te.value ? (b(), a("div", Qt, [(b(!0), a(e, null, C(Oe.value, (t, n) => (b(), a("div", {
|
|
2062
2155
|
key: `navigation-level-${n}`,
|
|
2063
2156
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__section-items": n === 0 }]),
|
|
2064
2157
|
role: "menu"
|
|
@@ -2073,17 +2166,17 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2073
2166
|
disabled: e.disabled,
|
|
2074
2167
|
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
2075
2168
|
"aria-expanded": e.children?.length ? L.value[n] === e.id : void 0,
|
|
2076
|
-
onMouseenter: (t) =>
|
|
2077
|
-
onClick: (t) =>
|
|
2169
|
+
onMouseenter: (t) => rt(e, n, !0),
|
|
2170
|
+
onClick: (t) => rt(e, n, !1)
|
|
2078
2171
|
}, [
|
|
2079
2172
|
e.icon ? (b(), a("i", {
|
|
2080
2173
|
key: 0,
|
|
2081
2174
|
class: h(e.icon),
|
|
2082
2175
|
"aria-hidden": "true"
|
|
2083
2176
|
}, null, 2)) : i("", !0),
|
|
2084
|
-
o("span",
|
|
2085
|
-
e.children?.length ? (b(), a("i",
|
|
2086
|
-
], 42,
|
|
2177
|
+
o("span", en, D(e.label), 1),
|
|
2178
|
+
e.children?.length ? (b(), a("i", tn)) : i("", !0)
|
|
2179
|
+
], 42, $t))), 128))]))), 128))], 2))), 128))])) : i("", !0)])])) : i("", !0)], 32)) : i("", !0),
|
|
2087
2180
|
(b(!0), a(e, null, C(Ce.value, (t, n) => (b(), a(e, { key: t.id }, [o("span", {
|
|
2088
2181
|
class: h(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n === Ce.value.length - 1 }]),
|
|
2089
2182
|
"aria-hidden": "true"
|
|
@@ -2093,7 +2186,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2093
2186
|
"data-top-nav-breadcrumb": "",
|
|
2094
2187
|
onMouseenter: (e) => !oe.value && er(t.id),
|
|
2095
2188
|
onMouseleave: u[10] ||= (e) => !oe.value && tr()
|
|
2096
|
-
}, [oe.value ? (b(), a("span",
|
|
2189
|
+
}, [oe.value ? (b(), a("span", rn, D(t.label), 1)) : (b(), a("button", {
|
|
2097
2190
|
key: 1,
|
|
2098
2191
|
class: "top-nav-bar__crumb",
|
|
2099
2192
|
type: "button",
|
|
@@ -2103,7 +2196,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2103
2196
|
}, [o("span", null, D(t.label), 1), u[27] ||= o("i", {
|
|
2104
2197
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2105
2198
|
"aria-hidden": "true"
|
|
2106
|
-
}, null, -1)], 8,
|
|
2199
|
+
}, null, -1)], 8, an)), !oe.value && R.value === t.id ? (b(), a("div", on, [o("div", sn, [(b(!0), a(e, null, C(De(we(t)?.children ?? [], z.value), (n, r) => (b(), a("div", {
|
|
2107
2200
|
key: `breadcrumb-${t.id}-${r}`,
|
|
2108
2201
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__breadcrumb-main-items": r === 0 }])
|
|
2109
2202
|
}, [(b(!0), a(e, null, C(ke(n), (n, s) => (b(), a("div", {
|
|
@@ -2115,26 +2208,26 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2115
2208
|
type: "button",
|
|
2116
2209
|
role: "menuitem",
|
|
2117
2210
|
disabled: e.disabled,
|
|
2118
|
-
onMouseenter: (t) =>
|
|
2119
|
-
onClick: (t) =>
|
|
2211
|
+
onMouseenter: (t) => it(e, r, !0),
|
|
2212
|
+
onClick: (t) => it(e, r, !1)
|
|
2120
2213
|
}, [
|
|
2121
2214
|
e.icon ? (b(), a("i", {
|
|
2122
2215
|
key: 0,
|
|
2123
2216
|
class: h(e.icon),
|
|
2124
2217
|
"aria-hidden": "true"
|
|
2125
2218
|
}, null, 2)) : i("", !0),
|
|
2126
|
-
o("span",
|
|
2127
|
-
e.children?.length ? (b(), a("i",
|
|
2128
|
-
], 42,
|
|
2219
|
+
o("span", ln, D(e.label), 1),
|
|
2220
|
+
e.children?.length ? (b(), a("i", un)) : i("", !0)
|
|
2221
|
+
], 42, cn))), 128))]))), 128))], 2))), 128))])])) : i("", !0)], 40, nn)) : t.to ? (b(), a("button", {
|
|
2129
2222
|
key: 1,
|
|
2130
2223
|
class: "top-nav-bar__crumb",
|
|
2131
2224
|
type: "button",
|
|
2132
2225
|
onClick: (e) => $(t)
|
|
2133
|
-
}, D(t.label), 9,
|
|
2226
|
+
}, D(t.label), 9, dn)) : (b(), a("span", {
|
|
2134
2227
|
key: 2,
|
|
2135
2228
|
class: "top-nav-bar__current",
|
|
2136
2229
|
title: t.label
|
|
2137
|
-
}, [o("span",
|
|
2230
|
+
}, [o("span", pn, D(t.label), 1), s.showFavoriteToggle ? (b(), a("button", {
|
|
2138
2231
|
key: 0,
|
|
2139
2232
|
class: "top-nav-bar__favorite-toggle",
|
|
2140
2233
|
type: "button",
|
|
@@ -2144,8 +2237,8 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2144
2237
|
}, [o("i", {
|
|
2145
2238
|
class: h(s.favoriteActive ? "pi pi-star-fill" : "pi pi-star"),
|
|
2146
2239
|
"aria-hidden": "true"
|
|
2147
|
-
}, null, 2)], 8,
|
|
2148
|
-
o("div",
|
|
2240
|
+
}, null, 2)], 8, mn)) : i("", !0)], 8, fn))], 64))), 128)),
|
|
2241
|
+
o("div", hn, [l(t, {
|
|
2149
2242
|
name: "top-nav-bar-favorites-trigger",
|
|
2150
2243
|
css: ie.value
|
|
2151
2244
|
}, {
|
|
@@ -2171,7 +2264,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2171
2264
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2172
2265
|
"aria-hidden": "true"
|
|
2173
2266
|
}, null, -1)
|
|
2174
|
-
], 8,
|
|
2267
|
+
], 8, gn), W.value ? (b(), a("div", _n, [o("div", vn, [(b(!0), a(e, null, C(Fe.value, (e) => (b(), a("button", {
|
|
2175
2268
|
key: e.id,
|
|
2176
2269
|
class: "top-nav-bar__menu-item",
|
|
2177
2270
|
type: "button",
|
|
@@ -2182,7 +2275,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2182
2275
|
key: 0,
|
|
2183
2276
|
class: h(e.icon),
|
|
2184
2277
|
"aria-hidden": "true"
|
|
2185
|
-
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 8,
|
|
2278
|
+
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 8, yn))), 128))])])) : i("", !0)], 32)) : i("", !0)]),
|
|
2186
2279
|
_: 1
|
|
2187
2280
|
}, 8, ["css"]), w(n.$slots, "breadcrumb-actions")])
|
|
2188
2281
|
]),
|
|
@@ -2195,13 +2288,13 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2195
2288
|
ref_key: "favoritesMeasureContentRef",
|
|
2196
2289
|
ref: ee,
|
|
2197
2290
|
class: "top-nav-bar__favorites-measure-content"
|
|
2198
|
-
}, [o("span",
|
|
2291
|
+
}, [o("span", bn, [u[30] ||= o("i", {
|
|
2199
2292
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2200
2293
|
"aria-hidden": "true"
|
|
2201
2294
|
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), (b(!0), a(e, null, C(Fe.value, (e, t) => (b(), a("span", {
|
|
2202
2295
|
key: `measure-${e.id}`,
|
|
2203
2296
|
class: "top-nav-bar__favorites-measure-item"
|
|
2204
|
-
}, [t > 0 ? (b(), a("span",
|
|
2297
|
+
}, [t > 0 ? (b(), a("span", xn, "|")) : i("", !0), o("span", null, [e.icon ? (b(), a("i", {
|
|
2205
2298
|
key: 0,
|
|
2206
2299
|
class: h(e.icon),
|
|
2207
2300
|
"aria-hidden": "true"
|
|
@@ -2210,10 +2303,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2210
2303
|
name: "top-nav-bar-favorites-row",
|
|
2211
2304
|
css: ie.value
|
|
2212
2305
|
}, {
|
|
2213
|
-
default: j(() => [Le.value ? (b(), a("div",
|
|
2306
|
+
default: j(() => [Le.value ? (b(), a("div", Sn, [o("span", Cn, [u[31] ||= o("i", {
|
|
2214
2307
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2215
2308
|
"aria-hidden": "true"
|
|
2216
|
-
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), o("div",
|
|
2309
|
+
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), o("div", wn, [(b(!0), a(e, null, C(Fe.value, (t, n) => (b(), a(e, { key: `row-${t.id}` }, [n > 0 ? (b(), a("span", Tn, "|")) : i("", !0), o("button", {
|
|
2217
2310
|
class: "top-nav-bar__favorites-row-item",
|
|
2218
2311
|
type: "button",
|
|
2219
2312
|
disabled: t.disabled,
|
|
@@ -2222,7 +2315,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2222
2315
|
key: 0,
|
|
2223
2316
|
class: h(t.icon),
|
|
2224
2317
|
"aria-hidden": "true"
|
|
2225
|
-
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8,
|
|
2318
|
+
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, En)], 64))), 128))])])) : i("", !0)]),
|
|
2226
2319
|
_: 1
|
|
2227
2320
|
}, 8, ["css"]),
|
|
2228
2321
|
l(O(ne), {
|
|
@@ -2232,8 +2325,8 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2232
2325
|
class: "top-nav-bar__mobile-drawer",
|
|
2233
2326
|
style: _([Ve.value, { width: "var(--top-nav-drawer-width, min(22rem, calc(100vw - 1.5rem)))" }])
|
|
2234
2327
|
}, {
|
|
2235
|
-
container: j(({ closeCallback: d }) => [o("div",
|
|
2236
|
-
o("header",
|
|
2328
|
+
container: j(({ closeCallback: d }) => [o("div", Dn, [
|
|
2329
|
+
o("header", On, [w(n.$slots, "drawer-header", { close: d }, () => [o("div", kn, [w(n.$slots, "drawer-brand", {}, () => [w(n.$slots, "brand", { compact: !1 })])]), o("button", {
|
|
2237
2330
|
class: "top-nav-bar__drawer-close top-nav-bar__square-button",
|
|
2238
2331
|
type: "button",
|
|
2239
2332
|
"aria-label": "Fechar navegação",
|
|
@@ -2241,12 +2334,12 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2241
2334
|
}, [...u[32] ||= [o("i", {
|
|
2242
2335
|
class: "pi pi-times",
|
|
2243
2336
|
"aria-hidden": "true"
|
|
2244
|
-
}, null, -1)]], 8,
|
|
2245
|
-
s.searchable || Ae.value.length || n.$slots["drawer-actions"] ? (b(), a("div",
|
|
2337
|
+
}, null, -1)]], 8, An)])]),
|
|
2338
|
+
s.searchable || Ae.value.length || n.$slots["drawer-actions"] ? (b(), a("div", jn, [s.searchable ? w(n.$slots, "drawer-search", {
|
|
2246
2339
|
query: J.value,
|
|
2247
2340
|
update: Ye,
|
|
2248
2341
|
clear: Xe
|
|
2249
|
-
}, () => [o("div",
|
|
2342
|
+
}, () => [o("div", Mn, [
|
|
2250
2343
|
u[34] ||= o("i", {
|
|
2251
2344
|
class: "pi pi-search",
|
|
2252
2345
|
"aria-hidden": "true"
|
|
@@ -2260,7 +2353,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2260
2353
|
placeholder: s.searchPlaceholder,
|
|
2261
2354
|
"aria-label": "Pesquisar no menu",
|
|
2262
2355
|
onInput: u[14] ||= (e) => Ye(e.target.value)
|
|
2263
|
-
}, null, 40,
|
|
2356
|
+
}, null, 40, Nn),
|
|
2264
2357
|
J.value ? (b(), a("button", {
|
|
2265
2358
|
key: 0,
|
|
2266
2359
|
class: "top-nav-bar__search-clear",
|
|
@@ -2284,10 +2377,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2284
2377
|
}, [o("i", {
|
|
2285
2378
|
class: h(e.icon),
|
|
2286
2379
|
"aria-hidden": "true"
|
|
2287
|
-
}, null, 2), o("span", null, D(e.label), 1)], 10,
|
|
2288
|
-
o("div",
|
|
2380
|
+
}, null, 2), o("span", null, D(e.label), 1)], 10, Pn))), 128))])])) : i("", !0),
|
|
2381
|
+
o("div", Fn, [
|
|
2289
2382
|
w(n.$slots, "drawer-before-menu", { close: d }),
|
|
2290
|
-
o("div",
|
|
2383
|
+
o("div", In, [Fe.value.length ? (b(), a("section", Ln, [o("button", {
|
|
2291
2384
|
class: "top-nav-bar__mobile-item",
|
|
2292
2385
|
type: "button",
|
|
2293
2386
|
"aria-expanded": G.value,
|
|
@@ -2297,14 +2390,14 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2297
2390
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2298
2391
|
"aria-hidden": "true"
|
|
2299
2392
|
}, null, -1),
|
|
2300
|
-
o("span",
|
|
2301
|
-
o("span",
|
|
2393
|
+
o("span", zn, D(s.favoriteLabel), 1),
|
|
2394
|
+
o("span", Bn, D(Fe.value.length), 1),
|
|
2302
2395
|
o("i", {
|
|
2303
2396
|
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": G.value }]),
|
|
2304
2397
|
"aria-hidden": "true"
|
|
2305
2398
|
}, null, 2)
|
|
2306
|
-
], 8,
|
|
2307
|
-
default: j(() => [G.value ? (b(), r(
|
|
2399
|
+
], 8, Rn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
2400
|
+
default: j(() => [G.value ? (b(), r(at, {
|
|
2308
2401
|
key: 0,
|
|
2309
2402
|
items: Fe.value,
|
|
2310
2403
|
"active-item-id": s.activeItemId,
|
|
@@ -2316,7 +2409,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2316
2409
|
sections: ve.value,
|
|
2317
2410
|
select: $,
|
|
2318
2411
|
close: d
|
|
2319
|
-
}, () => [ve.value.length ? (b(), r(
|
|
2412
|
+
}, () => [ve.value.length ? (b(), r(at, {
|
|
2320
2413
|
key: 0,
|
|
2321
2414
|
items: ve.value,
|
|
2322
2415
|
"active-item-id": s.activeItemId,
|
|
@@ -2327,10 +2420,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2327
2420
|
"items",
|
|
2328
2421
|
"active-item-id",
|
|
2329
2422
|
"force-open"
|
|
2330
|
-
])) : (b(), a("div",
|
|
2423
|
+
])) : (b(), a("div", Vn, "Nenhum menu encontrado."))])]),
|
|
2331
2424
|
w(n.$slots, "drawer-after-menu", { close: d })
|
|
2332
2425
|
]),
|
|
2333
|
-
Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer",
|
|
2426
|
+
Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer", Hn, [Ne.value ? w(n.$slots, "drawer-user", {
|
|
2334
2427
|
user: s.user,
|
|
2335
2428
|
client: s.client,
|
|
2336
2429
|
open: H.value,
|
|
@@ -2347,19 +2440,19 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2347
2440
|
src: s.user.avatarUrl,
|
|
2348
2441
|
alt: "",
|
|
2349
2442
|
class: "top-nav-bar__user-avatar"
|
|
2350
|
-
}, null, 8,
|
|
2351
|
-
s.user ? (b(), a("span",
|
|
2443
|
+
}, null, 8, Wn)) : (b(), a("span", Gn, D(ze.value), 1)),
|
|
2444
|
+
s.user ? (b(), a("span", Kn, [o("span", qn, D(s.user.name), 1), s.client ? (b(), a("span", Jn, [o("span", Yn, [u[36] ||= o("i", {
|
|
2352
2445
|
class: "pi pi-building",
|
|
2353
2446
|
"aria-hidden": "true"
|
|
2354
|
-
}, null, -1), c(D(s.client.name), 1)]), s.client.subtitle ? (b(), a("span",
|
|
2355
|
-
Me.value ? (b(), a("i",
|
|
2356
|
-
], 8,
|
|
2447
|
+
}, null, -1), c(D(s.client.name), 1)]), s.client.subtitle ? (b(), a("span", Xn, D(s.client.subtitle), 1)) : i("", !0)])) : i("", !0)])) : i("", !0),
|
|
2448
|
+
Me.value ? (b(), a("i", Zn)) : i("", !0)
|
|
2449
|
+
], 8, Un)], void 0, 0) : i("", !0), w(n.$slots, "drawer-footer", { close: d })])) : i("", !0)
|
|
2357
2450
|
])]),
|
|
2358
2451
|
_: 3
|
|
2359
2452
|
}, 8, ["visible", "style"]),
|
|
2360
|
-
l(O(
|
|
2453
|
+
l(O(U), {
|
|
2361
2454
|
ref_key: "drawerUserMenuRef",
|
|
2362
|
-
ref:
|
|
2455
|
+
ref: re,
|
|
2363
2456
|
class: "top-nav-bar__drawer-user-popup",
|
|
2364
2457
|
model: Be.value,
|
|
2365
2458
|
popup: !0,
|
|
@@ -2370,41 +2463,41 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2370
2463
|
}, null, 8, ["model"])
|
|
2371
2464
|
], 4));
|
|
2372
2465
|
}
|
|
2373
|
-
}),
|
|
2466
|
+
}), tr = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, nr = {
|
|
2374
2467
|
key: 0,
|
|
2375
2468
|
class: "pi pi-spin pi-spinner"
|
|
2376
|
-
},
|
|
2469
|
+
}, rr = {
|
|
2377
2470
|
key: 1,
|
|
2378
2471
|
class: "pi pi-search"
|
|
2379
|
-
},
|
|
2472
|
+
}, ir = {
|
|
2380
2473
|
key: 1,
|
|
2381
2474
|
class: "flex items-center gap-1 !text-sm"
|
|
2382
|
-
},
|
|
2475
|
+
}, ar = { class: "flex items-center gap-2 rounded-[9px] bg-primary-500 px-2 py-1 text-white" }, or = ["onClick"], sr = { class: "line-clamp-1 max-w-[300px] overflow-hidden text-ellipsis" }, cr = {
|
|
2383
2476
|
key: 1,
|
|
2384
2477
|
class: "flex min-h-[100px] flex-col items-center justify-center gap-2 py-2"
|
|
2385
|
-
},
|
|
2478
|
+
}, lr = {
|
|
2386
2479
|
key: 0,
|
|
2387
2480
|
class: "text-xs font-medium text-primary-600"
|
|
2388
|
-
},
|
|
2481
|
+
}, ur = {
|
|
2389
2482
|
key: 2,
|
|
2390
2483
|
class: "text-xs text-secondary-500"
|
|
2391
|
-
},
|
|
2484
|
+
}, dr = { key: 1 }, fr = {
|
|
2392
2485
|
key: 1,
|
|
2393
2486
|
class: "flex items-center gap-2 font-semibold"
|
|
2394
|
-
},
|
|
2487
|
+
}, pr = {
|
|
2395
2488
|
key: 1,
|
|
2396
2489
|
class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
|
|
2397
2490
|
style: { "white-space": "normal" }
|
|
2398
|
-
},
|
|
2491
|
+
}, mr = ["title"], hr = {
|
|
2399
2492
|
key: 0,
|
|
2400
2493
|
class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
|
|
2401
|
-
},
|
|
2494
|
+
}, gr = {
|
|
2402
2495
|
key: 0,
|
|
2403
2496
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2404
|
-
},
|
|
2497
|
+
}, _r = {
|
|
2405
2498
|
key: 0,
|
|
2406
2499
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2407
|
-
},
|
|
2500
|
+
}, vr = /* @__PURE__ */ u({
|
|
2408
2501
|
inheritAttrs: !1,
|
|
2409
2502
|
__name: "TopSelect",
|
|
2410
2503
|
props: {
|
|
@@ -2474,21 +2567,21 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2474
2567
|
"change"
|
|
2475
2568
|
],
|
|
2476
2569
|
setup(t, { expose: r, emit: u }) {
|
|
2477
|
-
let f = t, _ = u, x = te(), T = ee(), E =
|
|
2570
|
+
let f = t, _ = u, x = te(), T = ee(), E = re, k = S(""), N = S(!1), P = S(null), L = `top-select-${Math.random().toString(36).slice(2)}`, R = null, z = n({
|
|
2478
2571
|
get: () => f.modelValue,
|
|
2479
2572
|
set: (e) => _("update:modelValue", e)
|
|
2480
2573
|
}), B = n(() => {
|
|
2481
2574
|
let { class: e, ...t } = T;
|
|
2482
2575
|
return t;
|
|
2483
|
-
}), V = n(() => f.multiple ? "w-full border-0 bg-transparent p-0 text-xs !shadow-none outline-none ring-0 rounded-none" : I("top-field-control w-full h-auto border rounded-[10px] !pl-9 min-h-[36px] text-xs", T.class)),
|
|
2484
|
-
function
|
|
2576
|
+
}), V = n(() => f.multiple ? "w-full border-0 bg-transparent p-0 text-xs !shadow-none outline-none ring-0 rounded-none" : I("top-field-control w-full h-auto border rounded-[10px] !pl-9 min-h-[36px] text-xs", T.class)), H = n(() => I("top-field-control w-full h-auto border bg-[var(--top-field-background)] !rounded-l-[10px] !rounded-r-none pl-9 min-h-[40px] text-xs", T.class));
|
|
2577
|
+
function ne(e, t) {
|
|
2485
2578
|
return e == null ? "" : String(typeof e == "object" ? e[t] ?? "" : e);
|
|
2486
2579
|
}
|
|
2487
2580
|
function U(e) {
|
|
2488
|
-
return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) :
|
|
2581
|
+
return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) : ne(e, f.optionLabel);
|
|
2489
2582
|
}
|
|
2490
2583
|
function W(e) {
|
|
2491
|
-
return f.optionPrefix ?
|
|
2584
|
+
return f.optionPrefix ? ne(e, f.optionPrefix) : "";
|
|
2492
2585
|
}
|
|
2493
2586
|
function G(e, t = f.showSelectedPrefix) {
|
|
2494
2587
|
let n = U(e), r = W(e);
|
|
@@ -2542,7 +2635,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2542
2635
|
}), (n, r) => (b(), a("div", {
|
|
2543
2636
|
class: h(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
|
|
2544
2637
|
onFocusin: ae
|
|
2545
|
-
}, [o("span",
|
|
2638
|
+
}, [o("span", tr, [w(n.$slots, "icon", { loading: t.loading }, () => [t.loading ? (b(), a("i", nr)) : (b(), a("i", rr))])]), l(O(E), p({
|
|
2546
2639
|
ref_key: "autocompleteRef",
|
|
2547
2640
|
ref: P
|
|
2548
2641
|
}, B.value, {
|
|
@@ -2577,7 +2670,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2577
2670
|
root: { class: ["w-full text-xs", t.multiple ? "h-auto" : "h-[40px]"].join(" ") },
|
|
2578
2671
|
pcInputText: { root: { class: V.value } },
|
|
2579
2672
|
input: { class: V.value },
|
|
2580
|
-
inputMultiple: { class:
|
|
2673
|
+
inputMultiple: { class: H.value },
|
|
2581
2674
|
inputChip: { class: "py-0" },
|
|
2582
2675
|
token: { class: "bg-primary-100 text-primary-900 rounded-md gap-2 px-2 my-1 dark:bg-primary-900 dark:text-primary-100" },
|
|
2583
2676
|
removeTokenIcon: { class: "text-primary-900 w-3 h-3 cursor-pointer dark:text-primary-100" },
|
|
@@ -2610,18 +2703,18 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2610
2703
|
},
|
|
2611
2704
|
onChange: r[4] ||= (e) => _("change", e)
|
|
2612
2705
|
}), s({
|
|
2613
|
-
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div",
|
|
2706
|
+
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div", ir, [o("div", ar, [o("i", {
|
|
2614
2707
|
class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
|
|
2615
2708
|
onClick: (t) => e.removeCallback(t)
|
|
2616
|
-
}, null, 8,
|
|
2709
|
+
}, null, 8, or), M((b(), a("span", sr, [c(D(G(e.value)), 1)])), [[
|
|
2617
2710
|
O(F),
|
|
2618
2711
|
G(e.value),
|
|
2619
2712
|
void 0,
|
|
2620
2713
|
{ top: !0 }
|
|
2621
2714
|
]])])]))]),
|
|
2622
|
-
empty: j(() => [O(x).empty ? w(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (b(), a("div",
|
|
2623
|
-
"selected-item": j((e) => [O(x)["selected-item"] ? w(n.$slots, "selected-item", g(d(e)), void 0, void 0, 0) : e.item ? (b(), a("span",
|
|
2624
|
-
optiongroup: j((e) => [O(x)["option-group"] ? w(n.$slots, "option-group", g(d(e)), void 0, void 0, 0) : (b(), a("div",
|
|
2715
|
+
empty: j(() => [O(x).empty ? w(n.$slots, "empty", {}, void 0, void 0, 0) : t.loading ? (b(), a("div", cr, [r[5] ||= o("span", { class: "pi pi-spin pi-spinner text-2xl text-primary-600" }, null, -1), t.showLoadingMessage ? (b(), a("span", lr, D(t.loadingMessage), 1)) : i("", !0)])) : (b(), a("span", ur, D(t.emptyMessage), 1))]),
|
|
2716
|
+
"selected-item": j((e) => [O(x)["selected-item"] ? w(n.$slots, "selected-item", g(d(e)), void 0, void 0, 0) : e.item ? (b(), a("span", dr, D(G(e.item)), 1)) : i("", !0)]),
|
|
2717
|
+
optiongroup: j((e) => [O(x)["option-group"] ? w(n.$slots, "option-group", g(d(e)), void 0, void 0, 0) : (b(), a("div", fr, [e.option.icon ? (b(), a("i", {
|
|
2625
2718
|
key: 0,
|
|
2626
2719
|
class: h(e.option.icon)
|
|
2627
2720
|
}, null, 2)) : i("", !0), o("span", null, D(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
|
|
@@ -2629,10 +2722,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2629
2722
|
label: U(s.option),
|
|
2630
2723
|
prefix: W(s.option),
|
|
2631
2724
|
query: k.value
|
|
2632
|
-
}), void 0, void 0, 0) : M((b(), a("div",
|
|
2725
|
+
}), void 0, void 0, 0) : M((b(), a("div", pr, [o("span", {
|
|
2633
2726
|
class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
|
|
2634
2727
|
title: U(s.option)
|
|
2635
|
-
}, [t.showOptionPrefix && W(s.option) ? (b(), a("span",
|
|
2728
|
+
}, [t.showOptionPrefix && W(s.option) ? (b(), a("span", hr, [(b(!0), a(e, null, C(K(W(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", gr, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128)), r[6] ||= o("span", { class: "font-bold text-secondary-500 dark:text-zinc-400" }, "\xA0-\xA0", -1)])) : i("", !0), (b(!0), a(e, null, C(K(U(s.option)), (t, n) => (b(), a(e, { key: n }, [t.highlighted ? (b(), a("mark", _r, D(t.text), 1)) : (b(), a(e, { key: 1 }, [c(D(t.text), 1)], 64))], 64))), 128))], 8, mr)])), [[
|
|
2636
2729
|
O(F),
|
|
2637
2730
|
t.showTooltip ? U(s.option) : null,
|
|
2638
2731
|
void 0,
|
|
@@ -2661,7 +2754,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2661
2754
|
"pt"
|
|
2662
2755
|
])], 34));
|
|
2663
2756
|
}
|
|
2664
|
-
}),
|
|
2757
|
+
}), yr = /* @__PURE__ */ u({
|
|
2665
2758
|
inheritAttrs: !1,
|
|
2666
2759
|
__name: "TopTabs",
|
|
2667
2760
|
props: {
|
|
@@ -2682,15 +2775,15 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2682
2775
|
function o(e) {
|
|
2683
2776
|
return String(e.value);
|
|
2684
2777
|
}
|
|
2685
|
-
return (n, s) => (b(), r(O(
|
|
2778
|
+
return (n, s) => (b(), r(O(ie), p(n.$attrs, {
|
|
2686
2779
|
class: "top-tabs top-solutions-component w-full min-w-0",
|
|
2687
2780
|
value: t.modelValue,
|
|
2688
2781
|
lazy: t.lazy,
|
|
2689
2782
|
scrollable: t.scrollable,
|
|
2690
2783
|
"onUpdate:value": s[0] ||= (e) => i("update:modelValue", e)
|
|
2691
2784
|
}), {
|
|
2692
|
-
default: j(() => [l(O(
|
|
2693
|
-
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(
|
|
2785
|
+
default: j(() => [l(O(G), null, {
|
|
2786
|
+
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(W), {
|
|
2694
2787
|
key: e.value,
|
|
2695
2788
|
value: e.value,
|
|
2696
2789
|
disabled: e.disabled
|
|
@@ -2699,8 +2792,8 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2699
2792
|
_: 2
|
|
2700
2793
|
}, 1032, ["value", "disabled"]))), 128))]),
|
|
2701
2794
|
_: 1
|
|
2702
|
-
}), l(O(
|
|
2703
|
-
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(
|
|
2795
|
+
}), l(O(q), null, {
|
|
2796
|
+
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(K), {
|
|
2704
2797
|
key: e.value,
|
|
2705
2798
|
value: e.value
|
|
2706
2799
|
}, {
|
|
@@ -2722,12 +2815,12 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2722
2815
|
});
|
|
2723
2816
|
//#endregion
|
|
2724
2817
|
//#region src/components/internal/topAccordion.ts
|
|
2725
|
-
function
|
|
2818
|
+
function br(e, t) {
|
|
2726
2819
|
return `${e}--section-${encodeURIComponent(String(t))}`;
|
|
2727
2820
|
}
|
|
2728
2821
|
//#endregion
|
|
2729
2822
|
//#region src/components/TopAccordion.vue?vue&type=script&setup=true&lang.ts
|
|
2730
|
-
var
|
|
2823
|
+
var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
2731
2824
|
inheritAttrs: !1,
|
|
2732
2825
|
__name: "TopAccordion",
|
|
2733
2826
|
props: {
|
|
@@ -2752,7 +2845,7 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2752
2845
|
return s.value.includes(e);
|
|
2753
2846
|
}
|
|
2754
2847
|
function g(e) {
|
|
2755
|
-
return
|
|
2848
|
+
return br(i.id, e);
|
|
2756
2849
|
}
|
|
2757
2850
|
function _(e) {
|
|
2758
2851
|
s.value = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
@@ -2768,7 +2861,7 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2768
2861
|
behavior: t.behavior ?? "smooth"
|
|
2769
2862
|
}), !0;
|
|
2770
2863
|
}
|
|
2771
|
-
return x(
|
|
2864
|
+
return x(xr, {
|
|
2772
2865
|
accordionId: i.id,
|
|
2773
2866
|
sections: c,
|
|
2774
2867
|
openSections: s,
|
|
@@ -2783,7 +2876,7 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2783
2876
|
ref_key: "rootRef",
|
|
2784
2877
|
ref: u,
|
|
2785
2878
|
class: "top-accordion top-solutions-component"
|
|
2786
|
-
}, [l(O(
|
|
2879
|
+
}, [l(O(J), p(t.$attrs, {
|
|
2787
2880
|
value: d.value,
|
|
2788
2881
|
multiple: e.multiple,
|
|
2789
2882
|
"expand-icon": "pi pi-chevron-down",
|
|
@@ -2795,11 +2888,11 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2795
2888
|
_: 3
|
|
2796
2889
|
}, 16, ["value", "multiple"])], 512));
|
|
2797
2890
|
}
|
|
2798
|
-
}),
|
|
2891
|
+
}), Cr = {
|
|
2799
2892
|
key: 0,
|
|
2800
2893
|
class: "top-accordion-summary__separator",
|
|
2801
2894
|
"aria-hidden": "true"
|
|
2802
|
-
},
|
|
2895
|
+
}, wr = { class: "top-accordion-summary__item" }, Tr = /* @__PURE__ */ u({
|
|
2803
2896
|
__name: "TopAccordionSummary",
|
|
2804
2897
|
props: {
|
|
2805
2898
|
items: { default: () => [] },
|
|
@@ -2820,12 +2913,12 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2820
2913
|
return (r, s) => t.visible && (t.items.length || r.$slots.default) ? (b(), a("div", {
|
|
2821
2914
|
key: 0,
|
|
2822
2915
|
class: h(["top-accordion-summary", { "top-accordion-summary--nowrap": t.nowrap }])
|
|
2823
|
-
}, [(b(!0), a(e, null, C(t.items, (t, r) => (b(), a(e, { key: `${t.label}-${r}` }, [r > 0 ? (b(), a("span",
|
|
2916
|
+
}, [(b(!0), a(e, null, C(t.items, (t, r) => (b(), a(e, { key: `${t.label}-${r}` }, [r > 0 ? (b(), a("span", Cr)) : i("", !0), o("span", wr, [o("strong", null, D(t.label) + ":", 1), c(" " + D(n(t)), 1)])], 64))), 128)), w(r.$slots, "default")], 2)) : i("", !0);
|
|
2824
2917
|
}
|
|
2825
|
-
}),
|
|
2918
|
+
}), Er = ["id"], Dr = { class: "top-accordion-panel__heading" }, Or = { class: "top-accordion-panel__title-row" }, kr = {
|
|
2826
2919
|
class: "top-accordion-panel__badge",
|
|
2827
2920
|
"aria-hidden": "true"
|
|
2828
|
-
},
|
|
2921
|
+
}, Ar = { key: 1 }, jr = { class: "top-accordion-panel__title" }, Mr = ["aria-label"], Nr = /* @__PURE__ */ u({
|
|
2829
2922
|
inheritAttrs: !1,
|
|
2830
2923
|
__name: "TopAccordionPanel",
|
|
2831
2924
|
props: {
|
|
@@ -2877,27 +2970,27 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2877
2970
|
}
|
|
2878
2971
|
},
|
|
2879
2972
|
setup(e) {
|
|
2880
|
-
let t = e, r = f(
|
|
2973
|
+
let t = e, r = f(xr);
|
|
2881
2974
|
if (!r) throw Error("TopAccordionPanel deve ser usado dentro de TopAccordion.");
|
|
2882
2975
|
let s = n(() => r.getSection(t.value)), u = n(() => t.title || s.value?.label || String(t.value)), d = n(() => t.icon || s.value?.icon || ""), m = n(() => !!s.value?.disabled), g = n(() => r.sections.value.findIndex((e) => e.value === t.value) + 1), v = n(() => r.isOpen(t.value)), y = n(() => r.getAnchorId(t.value)), x = n(() => t.status === "valid" ? "pi pi-check-circle" : "pi pi-times-circle"), S = n(() => t.status === "valid" ? "top-accordion-panel__status--valid" : "top-accordion-panel__status--error");
|
|
2883
2976
|
return (t, n) => (b(), a("div", {
|
|
2884
2977
|
id: y.value,
|
|
2885
2978
|
class: "top-accordion-panel-anchor"
|
|
2886
|
-
}, [l(O(
|
|
2979
|
+
}, [l(O(oe), p(t.$attrs, {
|
|
2887
2980
|
value: e.value,
|
|
2888
2981
|
disabled: m.value,
|
|
2889
2982
|
class: "top-accordion-panel"
|
|
2890
2983
|
}), {
|
|
2891
|
-
default: j(() => [l(O(
|
|
2984
|
+
default: j(() => [l(O(ae), {
|
|
2892
2985
|
class: h(["top-accordion-panel__header", e.headerClass]),
|
|
2893
2986
|
style: _(e.headerStyle)
|
|
2894
2987
|
}, {
|
|
2895
|
-
default: j(() => [o("div",
|
|
2896
|
-
o("span",
|
|
2988
|
+
default: j(() => [o("div", Dr, [o("div", Or, [
|
|
2989
|
+
o("span", kr, [w(t.$slots, "icon", {}, () => [d.value ? (b(), a("i", {
|
|
2897
2990
|
key: 0,
|
|
2898
2991
|
class: h(d.value)
|
|
2899
|
-
}, null, 2)) : (b(), a("span",
|
|
2900
|
-
o("span",
|
|
2992
|
+
}, null, 2)) : (b(), a("span", Ar, D(g.value), 1))])]),
|
|
2993
|
+
o("span", jr, [w(t.$slots, "title", {}, () => [c(D(u.value), 1)])]),
|
|
2901
2994
|
w(t.$slots, "status", {}, () => [e.status ? (b(), a("i", {
|
|
2902
2995
|
key: 0,
|
|
2903
2996
|
class: h([
|
|
@@ -2907,13 +3000,13 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2907
3000
|
]),
|
|
2908
3001
|
"aria-label": e.statusLabel || (e.status === "valid" ? "Seção válida" : "Existem erros na seção"),
|
|
2909
3002
|
role: "img"
|
|
2910
|
-
}, null, 10,
|
|
2911
|
-
]), t.$slots.preview ? w(t.$slots, "preview", { open: v.value }, void 0, void 0, 0) : w(t.$slots, "summary", { open: v.value }, () => [l(
|
|
3003
|
+
}, null, 10, Mr)) : i("", !0)])
|
|
3004
|
+
]), t.$slots.preview ? w(t.$slots, "preview", { open: v.value }, void 0, void 0, 0) : w(t.$slots, "summary", { open: v.value }, () => [l(Tr, {
|
|
2912
3005
|
items: e.summary,
|
|
2913
3006
|
visible: !v.value
|
|
2914
3007
|
}, null, 8, ["items", "visible"])], void 0, 1)])]),
|
|
2915
3008
|
_: 3
|
|
2916
|
-
}, 8, ["class", "style"]), l(O(
|
|
3009
|
+
}, 8, ["class", "style"]), l(O(Y), null, {
|
|
2917
3010
|
default: j(() => [o("div", {
|
|
2918
3011
|
class: h(["top-accordion-panel__content", e.contentClass]),
|
|
2919
3012
|
style: _(e.contentStyle)
|
|
@@ -2921,16 +3014,16 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2921
3014
|
_: 3
|
|
2922
3015
|
})]),
|
|
2923
3016
|
_: 3
|
|
2924
|
-
}, 16, ["value", "disabled"])], 8,
|
|
3017
|
+
}, 16, ["value", "disabled"])], 8, Er));
|
|
2925
3018
|
}
|
|
2926
|
-
}),
|
|
3019
|
+
}), Pr = { class: "top-accordion-navigator__items" }, Fr = [
|
|
2927
3020
|
"disabled",
|
|
2928
3021
|
"aria-current",
|
|
2929
3022
|
"onClick"
|
|
2930
|
-
],
|
|
3023
|
+
], Ir = { class: "top-accordion-navigator__badge" }, Lr = {
|
|
2931
3024
|
key: 0,
|
|
2932
3025
|
class: "pi pi-lock"
|
|
2933
|
-
},
|
|
3026
|
+
}, Rr = { key: 2 }, zr = { class: "top-accordion-navigator__label" }, Br = /* @__PURE__ */ u({
|
|
2934
3027
|
__name: "TopAccordionNavigator",
|
|
2935
3028
|
props: {
|
|
2936
3029
|
accordionId: {},
|
|
@@ -2966,7 +3059,7 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2966
3059
|
async function E(e) {
|
|
2967
3060
|
if (e.disabled) return;
|
|
2968
3061
|
x(e.value) || (g.value = [...g.value, e.value]), c("navigate", e), await m(), await new Promise((e) => requestAnimationFrame(() => e()));
|
|
2969
|
-
let t = document.getElementById(
|
|
3062
|
+
let t = document.getElementById(br(s.accordionId, e.value));
|
|
2970
3063
|
t && window.scrollTo({
|
|
2971
3064
|
top: t.getBoundingClientRect().top + window.scrollY - s.scrollOffset,
|
|
2972
3065
|
behavior: "smooth"
|
|
@@ -3005,7 +3098,7 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
3005
3098
|
ref_key: "containerRef",
|
|
3006
3099
|
ref: l,
|
|
3007
3100
|
class: "top-accordion-navigator__scroll-area"
|
|
3008
|
-
}, [o("div",
|
|
3101
|
+
}, [o("div", Pr, [(b(!0), a(e, null, C(t.sections, (n, r) => (b(), a(e, { key: n.value }, [o("button", {
|
|
3009
3102
|
class: h(["top-accordion-navigator__item", {
|
|
3010
3103
|
"top-accordion-navigator__item--open": x(n.value),
|
|
3011
3104
|
"top-accordion-navigator__item--disabled": n.disabled
|
|
@@ -3014,20 +3107,20 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
3014
3107
|
type: "button",
|
|
3015
3108
|
"aria-current": x(n.value) ? "step" : void 0,
|
|
3016
3109
|
onClick: (e) => E(n)
|
|
3017
|
-
}, [o("span",
|
|
3110
|
+
}, [o("span", Ir, [n.disabled ? (b(), a("i", Lr)) : n.icon ? (b(), a("i", {
|
|
3018
3111
|
key: 1,
|
|
3019
3112
|
class: h(n.icon)
|
|
3020
|
-
}, null, 2)) : (b(), a("span",
|
|
3113
|
+
}, null, 2)) : (b(), a("span", Rr, D(r + 1), 1))]), o("span", zr, D(n.label), 1)], 10, Fr), r < t.sections.length - 1 ? (b(), a("span", {
|
|
3021
3114
|
key: 0,
|
|
3022
3115
|
class: h(["top-accordion-navigator__connector", { "top-accordion-navigator__connector--open": x(n.value) && x(t.sections[r + 1].value) }]),
|
|
3023
3116
|
"aria-hidden": "true"
|
|
3024
3117
|
}, null, 2)) : i("", !0)], 64))), 128))])], 512)
|
|
3025
3118
|
], 6));
|
|
3026
3119
|
}
|
|
3027
|
-
}),
|
|
3120
|
+
}), Vr = { class: "top-toast__content" }, Hr = { class: "top-toast__detail" }, Ur = ["onClick"], Wr = {
|
|
3028
3121
|
key: 0,
|
|
3029
3122
|
class: "top-toast__footer"
|
|
3030
|
-
},
|
|
3123
|
+
}, Gr = /* @__PURE__ */ u({
|
|
3031
3124
|
__name: "TopToast",
|
|
3032
3125
|
props: { baseZIndex: { default: 3e4 } },
|
|
3033
3126
|
setup(e) {
|
|
@@ -3049,13 +3142,13 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
3049
3142
|
function d(e, t) {
|
|
3050
3143
|
return `top-toast__${t}--${e.severity ?? "info"}`;
|
|
3051
3144
|
}
|
|
3052
|
-
return (f, p) => (b(), r(O(
|
|
3145
|
+
return (f, p) => (b(), r(O(X), {
|
|
3053
3146
|
position: "top-right",
|
|
3054
3147
|
"base-z-index": e.baseZIndex
|
|
3055
3148
|
}, {
|
|
3056
|
-
message: j((e) => [o("div",
|
|
3149
|
+
message: j((e) => [o("div", Vr, [
|
|
3057
3150
|
o("div", { class: h(["top-toast__summary", d(e.message, "summary")]) }, D(e.message.summary), 3),
|
|
3058
|
-
o("div",
|
|
3151
|
+
o("div", Hr, D(e.message.detail), 1),
|
|
3059
3152
|
u(e.message) ? w(f.$slots, "action", {
|
|
3060
3153
|
action: n(e.message),
|
|
3061
3154
|
message: e.message,
|
|
@@ -3069,17 +3162,17 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
3069
3162
|
key: 0,
|
|
3070
3163
|
class: h(n(e.message)?.icon),
|
|
3071
3164
|
"aria-hidden": "true"
|
|
3072
|
-
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10,
|
|
3165
|
+
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10, Ur)) : i("", !0)], void 0, 0) : i("", !0),
|
|
3073
3166
|
l(e.message) ? w(f.$slots, "footer", {
|
|
3074
3167
|
message: e.message,
|
|
3075
3168
|
footer: t(e.message)
|
|
3076
|
-
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div",
|
|
3169
|
+
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div", Wr, D(t(e.message)), 1))], void 0, 1) : i("", !0)
|
|
3077
3170
|
])]),
|
|
3078
3171
|
_: 3
|
|
3079
3172
|
}, 8, ["base-z-index"]));
|
|
3080
3173
|
}
|
|
3081
3174
|
});
|
|
3082
3175
|
//#endregion
|
|
3083
|
-
export {
|
|
3176
|
+
export { Sr as a, er as c, $ as d, He as f, ce as g, le as h, Tr as i, tt as l, me as m, Br as n, yr as o, ye as p, Nr as r, vr as s, Gr as t, Xe as u };
|
|
3084
3177
|
|
|
3085
|
-
//# sourceMappingURL=TopToast-
|
|
3178
|
+
//# sourceMappingURL=TopToast-bWBafGfo.js.map
|