@topjoao/top-design-system 0.1.8 → 0.2.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 +487 -436
- package/dist/TopToast-CInWA4Cm.cjs +2 -0
- package/dist/TopToast-CInWA4Cm.cjs.map +1 -0
- package/dist/{TopToast-CEYrqaEE.js → TopToast-NcOUE0L3.js} +402 -307
- package/dist/TopToast-NcOUE0L3.js.map +1 -0
- package/dist/components/TopDatePicker.vue.d.ts +2 -0
- package/dist/components/TopInputText.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,18 +824,19 @@ 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: {
|
|
831
838
|
modelValue: { default: "" },
|
|
839
|
+
type: { default: "text" },
|
|
832
840
|
label: { default: "" },
|
|
833
841
|
placeholder: { default: "" },
|
|
834
842
|
required: {
|
|
@@ -858,16 +866,16 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
858
866
|
function g(e) {
|
|
859
867
|
o("update:modelValue", e ?? "");
|
|
860
868
|
}
|
|
861
|
-
return (t, n) => (b(), a("div",
|
|
869
|
+
return (t, n) => (b(), a("div", Ue, [
|
|
862
870
|
e.label ? (b(), a("label", {
|
|
863
871
|
key: 0,
|
|
864
872
|
for: d.value,
|
|
865
873
|
class: "top-field-label text-xs font-bold"
|
|
866
|
-
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span",
|
|
874
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", Ge, "*")) : i("", !0)], 8, We)) : i("", !0),
|
|
867
875
|
l(O(B), p(t.$attrs, {
|
|
868
876
|
id: d.value,
|
|
869
877
|
"model-value": e.modelValue,
|
|
870
|
-
type:
|
|
878
|
+
type: e.type,
|
|
871
879
|
placeholder: e.placeholder,
|
|
872
880
|
required: e.required,
|
|
873
881
|
disabled: e.disabled,
|
|
@@ -881,6 +889,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
881
889
|
}), null, 16, [
|
|
882
890
|
"id",
|
|
883
891
|
"model-value",
|
|
892
|
+
"type",
|
|
884
893
|
"placeholder",
|
|
885
894
|
"required",
|
|
886
895
|
"disabled",
|
|
@@ -894,14 +903,100 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
894
903
|
id: f.value,
|
|
895
904
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
896
905
|
role: "alert"
|
|
897
|
-
}, D(e.error), 9,
|
|
906
|
+
}, D(e.error), 9, Q)) : i("", !0)
|
|
907
|
+
]));
|
|
908
|
+
}
|
|
909
|
+
}), Ke = { class: "top-text-area top-solutions-component flex w-full flex-col gap-1" }, qe = ["for"], Je = {
|
|
910
|
+
key: 0,
|
|
911
|
+
"aria-hidden": "true",
|
|
912
|
+
class: "text-red-600 dark:text-red-400"
|
|
913
|
+
}, Ye = ["id"], Xe = /* @__PURE__ */ u({
|
|
914
|
+
inheritAttrs: !1,
|
|
915
|
+
__name: "TopTextArea",
|
|
916
|
+
props: {
|
|
917
|
+
modelValue: { default: "" },
|
|
918
|
+
label: { default: "" },
|
|
919
|
+
placeholder: { default: "" },
|
|
920
|
+
required: {
|
|
921
|
+
type: Boolean,
|
|
922
|
+
default: !1
|
|
923
|
+
},
|
|
924
|
+
error: { default: "" },
|
|
925
|
+
disabled: {
|
|
926
|
+
type: Boolean,
|
|
927
|
+
default: !1
|
|
928
|
+
},
|
|
929
|
+
readonly: {
|
|
930
|
+
type: Boolean,
|
|
931
|
+
default: !1
|
|
932
|
+
},
|
|
933
|
+
rows: { default: 4 },
|
|
934
|
+
autoResize: {
|
|
935
|
+
type: Boolean,
|
|
936
|
+
default: !1
|
|
937
|
+
}
|
|
938
|
+
},
|
|
939
|
+
emits: ["update:modelValue"],
|
|
940
|
+
setup(e, { emit: t }) {
|
|
941
|
+
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(() => {
|
|
942
|
+
if (r.error) return !0;
|
|
943
|
+
let e = s["aria-invalid"];
|
|
944
|
+
return typeof e == "boolean" || e === "true" || e === "false" || e === "grammar" || e === "spelling" ? e : void 0;
|
|
945
|
+
}), h = n(() => {
|
|
946
|
+
let e = s["aria-describedby"], t = [typeof e == "string" ? e : "", r.error ? f.value : ""].filter(Boolean);
|
|
947
|
+
return t.length ? t.join(" ") : void 0;
|
|
948
|
+
});
|
|
949
|
+
function g(e) {
|
|
950
|
+
o("update:modelValue", e ?? "");
|
|
951
|
+
}
|
|
952
|
+
return (t, n) => (b(), a("div", Ke, [
|
|
953
|
+
e.label ? (b(), a("label", {
|
|
954
|
+
key: 0,
|
|
955
|
+
for: d.value,
|
|
956
|
+
class: "top-field-label text-xs font-bold"
|
|
957
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", Je, "*")) : i("", !0)], 8, qe)) : i("", !0),
|
|
958
|
+
l(O(V), p(t.$attrs, {
|
|
959
|
+
id: d.value,
|
|
960
|
+
"model-value": e.modelValue,
|
|
961
|
+
placeholder: e.placeholder,
|
|
962
|
+
required: e.required,
|
|
963
|
+
disabled: e.disabled,
|
|
964
|
+
readonly: e.readonly,
|
|
965
|
+
rows: e.rows,
|
|
966
|
+
"auto-resize": e.autoResize,
|
|
967
|
+
invalid: !!e.error,
|
|
968
|
+
"aria-invalid": m.value,
|
|
969
|
+
"aria-describedby": h.value,
|
|
970
|
+
fluid: "",
|
|
971
|
+
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 }],
|
|
972
|
+
"onUpdate:modelValue": g
|
|
973
|
+
}), null, 16, [
|
|
974
|
+
"id",
|
|
975
|
+
"model-value",
|
|
976
|
+
"placeholder",
|
|
977
|
+
"required",
|
|
978
|
+
"disabled",
|
|
979
|
+
"readonly",
|
|
980
|
+
"rows",
|
|
981
|
+
"auto-resize",
|
|
982
|
+
"invalid",
|
|
983
|
+
"aria-invalid",
|
|
984
|
+
"aria-describedby",
|
|
985
|
+
"class"
|
|
986
|
+
]),
|
|
987
|
+
e.error ? (b(), a("span", {
|
|
988
|
+
key: 1,
|
|
989
|
+
id: f.value,
|
|
990
|
+
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
991
|
+
role: "alert"
|
|
992
|
+
}, D(e.error), 9, Ye)) : i("", !0)
|
|
898
993
|
]));
|
|
899
994
|
}
|
|
900
|
-
}),
|
|
995
|
+
}), Ze = { class: "top-input-number top-solutions-component flex w-full flex-col gap-1" }, Qe = ["for"], $e = {
|
|
901
996
|
key: 0,
|
|
902
997
|
"aria-hidden": "true",
|
|
903
998
|
class: "text-red-600 dark:text-red-400"
|
|
904
|
-
},
|
|
999
|
+
}, et = ["id"], tt = /* @__PURE__ */ u({
|
|
905
1000
|
inheritAttrs: !1,
|
|
906
1001
|
__name: "TopInputNumber",
|
|
907
1002
|
props: {
|
|
@@ -1030,19 +1125,19 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1030
1125
|
t.value = a;
|
|
1031
1126
|
});
|
|
1032
1127
|
}
|
|
1033
|
-
function
|
|
1128
|
+
function V(e) {
|
|
1034
1129
|
let t = e.target;
|
|
1035
1130
|
l("blur", {
|
|
1036
1131
|
originalEvent: e,
|
|
1037
1132
|
value: t instanceof HTMLInputElement ? t.value : ""
|
|
1038
1133
|
});
|
|
1039
1134
|
}
|
|
1040
|
-
return (t, n) => (b(), a("div",
|
|
1135
|
+
return (t, n) => (b(), a("div", Ze, [
|
|
1041
1136
|
e.label ? (b(), a("label", {
|
|
1042
1137
|
key: 0,
|
|
1043
1138
|
for: _.value,
|
|
1044
1139
|
class: "top-field-label text-xs font-bold"
|
|
1045
|
-
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span",
|
|
1140
|
+
}, [c(D(e.label) + " ", 1), e.required ? (b(), a("span", $e, "*")) : i("", !0)], 8, Qe)) : i("", !0),
|
|
1046
1141
|
T.value ? (b(), r(O(B), p({ key: 1 }, M.value, {
|
|
1047
1142
|
id: _.value,
|
|
1048
1143
|
"model-value": R(e.modelValue),
|
|
@@ -1059,7 +1154,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1059
1154
|
class: N.value,
|
|
1060
1155
|
onInput: z,
|
|
1061
1156
|
onFocus: n[0] ||= (e) => l("focus", e),
|
|
1062
|
-
onBlur:
|
|
1157
|
+
onBlur: V
|
|
1063
1158
|
}), null, 16, [
|
|
1064
1159
|
"id",
|
|
1065
1160
|
"model-value",
|
|
@@ -1071,7 +1166,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1071
1166
|
"aria-invalid",
|
|
1072
1167
|
"aria-describedby",
|
|
1073
1168
|
"class"
|
|
1074
|
-
])) : (b(), r(O(
|
|
1169
|
+
])) : (b(), r(O(H), p({ key: 2 }, M.value, {
|
|
1075
1170
|
"model-value": e.modelValue,
|
|
1076
1171
|
"input-id": _.value,
|
|
1077
1172
|
placeholder: e.placeholder,
|
|
@@ -1114,18 +1209,18 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1114
1209
|
id: v.value,
|
|
1115
1210
|
class: "text-[11px] text-red-600 dark:text-red-400",
|
|
1116
1211
|
role: "alert"
|
|
1117
|
-
}, D(e.error), 9,
|
|
1212
|
+
}, D(e.error), 9, et)) : i("", !0)
|
|
1118
1213
|
]));
|
|
1119
1214
|
}
|
|
1120
|
-
}),
|
|
1215
|
+
}), nt = [
|
|
1121
1216
|
"disabled",
|
|
1122
1217
|
"aria-expanded",
|
|
1123
1218
|
"onClick"
|
|
1124
|
-
],
|
|
1219
|
+
], rt = { class: "top-nav-bar__mobile-item-label" }, it = {
|
|
1125
1220
|
key: 1,
|
|
1126
1221
|
class: "top-nav-bar__mobile-count",
|
|
1127
1222
|
"aria-hidden": "true"
|
|
1128
|
-
},
|
|
1223
|
+
}, at = /* @__PURE__ */ u({
|
|
1129
1224
|
name: "TopNavMobileTree",
|
|
1130
1225
|
__name: "TopNavMobileTree",
|
|
1131
1226
|
props: {
|
|
@@ -1198,14 +1293,14 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1198
1293
|
class: h(e.icon),
|
|
1199
1294
|
"aria-hidden": "true"
|
|
1200
1295
|
}, null, 2)) : i("", !0),
|
|
1201
|
-
o("span",
|
|
1202
|
-
p(e).length ? (b(), a("span",
|
|
1296
|
+
o("span", rt, D(e.label), 1),
|
|
1297
|
+
p(e).length ? (b(), a("span", it, D(p(e).length), 1)) : i("", !0),
|
|
1203
1298
|
p(e).length ? (b(), a("i", {
|
|
1204
1299
|
key: 2,
|
|
1205
1300
|
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": g(e) }]),
|
|
1206
1301
|
"aria-hidden": "true"
|
|
1207
1302
|
}, null, 2)) : i("", !0)
|
|
1208
|
-
], 10,
|
|
1303
|
+
], 10, nt), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
1209
1304
|
default: j(() => [p(e).length && g(e) ? (b(), r(u, {
|
|
1210
1305
|
key: 0,
|
|
1211
1306
|
items: p(e),
|
|
@@ -1223,178 +1318,178 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1223
1318
|
}, 1024)], 2))), 128))], 6);
|
|
1224
1319
|
};
|
|
1225
1320
|
}
|
|
1226
|
-
}),
|
|
1321
|
+
}), ot = ["aria-expanded"], st = { class: "top-nav-bar__brand" }, ct = {
|
|
1227
1322
|
key: 1,
|
|
1228
1323
|
class: "top-nav-bar__brand-context-divider",
|
|
1229
1324
|
"aria-hidden": "true"
|
|
1230
|
-
},
|
|
1325
|
+
}, lt = {
|
|
1231
1326
|
key: 2,
|
|
1232
1327
|
class: "top-nav-bar__context"
|
|
1233
|
-
},
|
|
1328
|
+
}, ut = {
|
|
1234
1329
|
key: 0,
|
|
1235
1330
|
class: "top-nav-bar__client"
|
|
1236
|
-
},
|
|
1331
|
+
}, dt = ["src"], ft = {
|
|
1237
1332
|
key: 1,
|
|
1238
1333
|
class: "top-nav-bar__client-logo"
|
|
1239
|
-
},
|
|
1334
|
+
}, pt = {
|
|
1240
1335
|
key: 2,
|
|
1241
1336
|
class: "top-nav-bar__client-details"
|
|
1242
|
-
},
|
|
1337
|
+
}, mt = { class: "top-nav-bar__client-name" }, ht = {
|
|
1243
1338
|
key: 0,
|
|
1244
1339
|
class: "top-nav-bar__client-subtitle"
|
|
1245
|
-
},
|
|
1340
|
+
}, gt = { class: "top-nav-bar__desktop-tools" }, _t = {
|
|
1246
1341
|
key: 0,
|
|
1247
1342
|
class: "top-nav-bar__search-shell",
|
|
1248
1343
|
"data-top-nav-search": ""
|
|
1249
|
-
},
|
|
1344
|
+
}, vt = ["value", "placeholder"], yt = ["aria-label"], bt = {
|
|
1250
1345
|
key: 1,
|
|
1251
1346
|
class: "top-nav-bar__search-results",
|
|
1252
1347
|
role: "menu"
|
|
1253
|
-
},
|
|
1348
|
+
}, xt = { class: "top-nav-bar__search-results-scroll" }, St = ["disabled", "onClick"], Ct = {
|
|
1254
1349
|
key: 0,
|
|
1255
1350
|
class: "top-nav-bar__empty"
|
|
1256
|
-
},
|
|
1351
|
+
}, wt = {
|
|
1257
1352
|
key: 1,
|
|
1258
1353
|
class: "top-nav-bar__quick-actions",
|
|
1259
1354
|
"data-top-nav-actions": ""
|
|
1260
|
-
},
|
|
1355
|
+
}, Tt = [
|
|
1261
1356
|
"disabled",
|
|
1262
1357
|
"aria-label",
|
|
1263
1358
|
"aria-pressed",
|
|
1264
1359
|
"title",
|
|
1265
1360
|
"onClick"
|
|
1266
|
-
],
|
|
1361
|
+
], Et = ["aria-expanded"], Dt = {
|
|
1267
1362
|
key: 0,
|
|
1268
1363
|
class: "top-nav-bar__popover-layer top-nav-bar__actions-layer"
|
|
1269
|
-
},
|
|
1364
|
+
}, Ot = {
|
|
1270
1365
|
class: "top-nav-bar__small-panel",
|
|
1271
1366
|
role: "menu"
|
|
1272
|
-
},
|
|
1367
|
+
}, kt = ["disabled", "onClick"], At = {
|
|
1273
1368
|
key: 2,
|
|
1274
1369
|
class: "top-nav-bar__custom-actions"
|
|
1275
|
-
},
|
|
1370
|
+
}, jt = ["aria-haspopup", "aria-expanded"], Mt = ["src"], Nt = {
|
|
1276
1371
|
key: 1,
|
|
1277
1372
|
class: "top-nav-bar__user-avatar"
|
|
1278
|
-
},
|
|
1373
|
+
}, Pt = {
|
|
1279
1374
|
key: 2,
|
|
1280
1375
|
class: "top-nav-bar__user-details"
|
|
1281
|
-
},
|
|
1376
|
+
}, Ft = { class: "top-nav-bar__user-name" }, It = {
|
|
1282
1377
|
key: 0,
|
|
1283
1378
|
class: "top-nav-bar__user-subtitle"
|
|
1284
|
-
},
|
|
1379
|
+
}, Lt = {
|
|
1285
1380
|
key: 0,
|
|
1286
1381
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
1287
1382
|
"aria-hidden": "true"
|
|
1288
|
-
},
|
|
1383
|
+
}, Rt = {
|
|
1289
1384
|
key: 0,
|
|
1290
1385
|
class: "top-nav-bar__popover-layer top-nav-bar__user-layer"
|
|
1291
|
-
},
|
|
1386
|
+
}, zt = {
|
|
1292
1387
|
class: "top-nav-bar__small-panel top-nav-bar__user-dropdown",
|
|
1293
1388
|
role: "menu"
|
|
1294
|
-
},
|
|
1389
|
+
}, Bt = {
|
|
1295
1390
|
key: 0,
|
|
1296
1391
|
class: "top-nav-bar__user-separator",
|
|
1297
1392
|
role: "separator"
|
|
1298
|
-
},
|
|
1393
|
+
}, Vt = ["disabled", "onClick"], Ht = {
|
|
1299
1394
|
class: "top-nav-bar__breadcrumbs",
|
|
1300
1395
|
"aria-label": "Breadcrumb"
|
|
1301
|
-
},
|
|
1396
|
+
}, Ut = {
|
|
1302
1397
|
key: 0,
|
|
1303
1398
|
class: "top-nav-bar__separator top-nav-bar__desktop-navigation-separator",
|
|
1304
1399
|
"aria-hidden": "true"
|
|
1305
|
-
},
|
|
1400
|
+
}, Wt = ["aria-expanded"], Gt = {
|
|
1306
1401
|
key: 0,
|
|
1307
1402
|
class: "top-nav-bar__menu-layer"
|
|
1308
|
-
},
|
|
1403
|
+
}, Kt = {
|
|
1309
1404
|
class: "top-nav-bar__menu-panel",
|
|
1310
1405
|
role: "menu"
|
|
1311
|
-
},
|
|
1406
|
+
}, qt = { class: "top-nav-bar__section-list" }, Jt = [
|
|
1312
1407
|
"aria-haspopup",
|
|
1313
1408
|
"aria-expanded",
|
|
1314
1409
|
"onMouseenter",
|
|
1315
1410
|
"onClick"
|
|
1316
|
-
],
|
|
1411
|
+
], Yt = { class: "top-nav-bar__menu-label" }, Xt = {
|
|
1317
1412
|
key: 1,
|
|
1318
1413
|
class: "top-nav-bar__item-count"
|
|
1319
|
-
},
|
|
1414
|
+
}, Zt = {
|
|
1320
1415
|
key: 2,
|
|
1321
1416
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1322
1417
|
"aria-hidden": "true"
|
|
1323
|
-
},
|
|
1418
|
+
}, Qt = {
|
|
1324
1419
|
key: 0,
|
|
1325
1420
|
class: "top-nav-bar__submenu-region"
|
|
1326
|
-
},
|
|
1421
|
+
}, $t = [
|
|
1327
1422
|
"disabled",
|
|
1328
1423
|
"aria-haspopup",
|
|
1329
1424
|
"aria-expanded",
|
|
1330
1425
|
"onMouseenter",
|
|
1331
1426
|
"onClick"
|
|
1332
|
-
],
|
|
1427
|
+
], en = { class: "top-nav-bar__menu-label" }, tn = {
|
|
1333
1428
|
key: 1,
|
|
1334
1429
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1335
1430
|
"aria-hidden": "true"
|
|
1336
|
-
},
|
|
1431
|
+
}, nn = ["onMouseenter"], rn = {
|
|
1337
1432
|
key: 0,
|
|
1338
1433
|
class: "top-nav-bar__crumb top-nav-bar__crumb--static"
|
|
1339
|
-
},
|
|
1434
|
+
}, an = ["aria-expanded", "onClick"], on = {
|
|
1340
1435
|
key: 2,
|
|
1341
1436
|
class: "top-nav-bar__menu-layer"
|
|
1342
|
-
},
|
|
1437
|
+
}, sn = {
|
|
1343
1438
|
class: "top-nav-bar__menu-panel top-nav-bar__breadcrumb-panel",
|
|
1344
1439
|
role: "menu"
|
|
1345
|
-
},
|
|
1440
|
+
}, cn = [
|
|
1346
1441
|
"disabled",
|
|
1347
1442
|
"onMouseenter",
|
|
1348
1443
|
"onClick"
|
|
1349
|
-
],
|
|
1444
|
+
], ln = { class: "top-nav-bar__menu-label" }, un = {
|
|
1350
1445
|
key: 1,
|
|
1351
1446
|
class: "pi pi-chevron-right top-nav-bar__menu-arrow",
|
|
1352
1447
|
"aria-hidden": "true"
|
|
1353
|
-
},
|
|
1448
|
+
}, 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
1449
|
key: 0,
|
|
1355
1450
|
class: "top-nav-bar__popover-layer top-nav-bar__favorites-layer"
|
|
1356
|
-
},
|
|
1451
|
+
}, vn = {
|
|
1357
1452
|
class: "top-nav-bar__small-panel top-nav-bar__favorites-panel",
|
|
1358
1453
|
role: "menu"
|
|
1359
|
-
},
|
|
1454
|
+
}, yn = ["disabled", "onClick"], bn = { class: "top-nav-bar__favorites-title" }, xn = {
|
|
1360
1455
|
key: 0,
|
|
1361
1456
|
class: "top-nav-bar__favorites-separator"
|
|
1362
|
-
},
|
|
1457
|
+
}, Sn = {
|
|
1363
1458
|
key: 0,
|
|
1364
1459
|
class: "top-nav-bar__favorites-row top-nav-bar__desktop-only"
|
|
1365
|
-
},
|
|
1460
|
+
}, Cn = { class: "top-nav-bar__favorites-title" }, wn = { class: "top-nav-bar__favorites-list" }, Tn = {
|
|
1366
1461
|
key: 0,
|
|
1367
1462
|
class: "top-nav-bar__favorites-separator",
|
|
1368
1463
|
"aria-hidden": "true"
|
|
1369
|
-
},
|
|
1464
|
+
}, 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
1465
|
key: 0,
|
|
1371
1466
|
class: "top-nav-bar__drawer-tools"
|
|
1372
|
-
},
|
|
1467
|
+
}, 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
1468
|
key: 0,
|
|
1374
1469
|
class: "top-nav-bar__mobile-favorites"
|
|
1375
|
-
},
|
|
1470
|
+
}, Rn = ["aria-expanded"], zn = { class: "top-nav-bar__mobile-item-label" }, Bn = { class: "top-nav-bar__mobile-count" }, Vn = {
|
|
1376
1471
|
key: 1,
|
|
1377
1472
|
class: "top-nav-bar__drawer-empty"
|
|
1378
|
-
},
|
|
1473
|
+
}, Hn = {
|
|
1379
1474
|
key: 1,
|
|
1380
1475
|
class: "top-nav-bar__mobile-footer"
|
|
1381
|
-
},
|
|
1476
|
+
}, Un = ["aria-haspopup", "aria-expanded"], Wn = ["src"], Gn = {
|
|
1382
1477
|
key: 1,
|
|
1383
1478
|
class: "top-nav-bar__user-avatar"
|
|
1384
|
-
},
|
|
1479
|
+
}, Kn = {
|
|
1385
1480
|
key: 2,
|
|
1386
1481
|
class: "top-nav-bar__user-details"
|
|
1387
|
-
},
|
|
1482
|
+
}, qn = { class: "top-nav-bar__user-name" }, Jn = {
|
|
1388
1483
|
key: 0,
|
|
1389
1484
|
class: "top-nav-bar__drawer-user-context"
|
|
1390
|
-
},
|
|
1485
|
+
}, Yn = { class: "top-nav-bar__drawer-user-client" }, Xn = {
|
|
1391
1486
|
key: 0,
|
|
1392
1487
|
class: "top-nav-bar__drawer-user-client-subtitle"
|
|
1393
|
-
},
|
|
1488
|
+
}, Zn = {
|
|
1394
1489
|
key: 3,
|
|
1395
1490
|
class: "pi pi-chevron-down top-nav-bar__mobile-chevron",
|
|
1396
1491
|
"aria-hidden": "true"
|
|
1397
|
-
},
|
|
1492
|
+
}, Qn = 120, $n = 24, er = /* @__PURE__ */ u({
|
|
1398
1493
|
__name: "TopNavBar",
|
|
1399
1494
|
props: {
|
|
1400
1495
|
sections: { default: () => [] },
|
|
@@ -1461,7 +1556,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1461
1556
|
"user-click"
|
|
1462
1557
|
],
|
|
1463
1558
|
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),
|
|
1559
|
+
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
1560
|
collapseActions: !1,
|
|
1466
1561
|
searchIconOnly: !1,
|
|
1467
1562
|
hideUserName: !1,
|
|
@@ -1518,10 +1613,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1518
1613
|
}
|
|
1519
1614
|
return null;
|
|
1520
1615
|
}
|
|
1521
|
-
function
|
|
1616
|
+
function be(e, t) {
|
|
1522
1617
|
for (let n of e) {
|
|
1523
1618
|
if (n.id === t) return n;
|
|
1524
|
-
let e =
|
|
1619
|
+
let e = be(n.children ?? [], t);
|
|
1525
1620
|
if (e) return e;
|
|
1526
1621
|
}
|
|
1527
1622
|
return null;
|
|
@@ -1548,9 +1643,9 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1548
1643
|
}));
|
|
1549
1644
|
});
|
|
1550
1645
|
function we(e) {
|
|
1551
|
-
return e.menuId ?
|
|
1646
|
+
return e.menuId ? be(Z.value, e.menuId) : e.sectionId ? Z.value.find((t) => t.id === e.sectionId) ?? null : null;
|
|
1552
1647
|
}
|
|
1553
|
-
let
|
|
1648
|
+
let Te = n(() => Z.value.find((e) => e.id === I.value) ?? null);
|
|
1554
1649
|
function De(e, t) {
|
|
1555
1650
|
let n = [], r = e, i = 0;
|
|
1556
1651
|
for (; r.length;) {
|
|
@@ -1563,7 +1658,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1563
1658
|
}
|
|
1564
1659
|
return n;
|
|
1565
1660
|
}
|
|
1566
|
-
let Oe = n(() =>
|
|
1661
|
+
let Oe = n(() => Te.value ? De(Te.value.children ?? [], L.value) : []);
|
|
1567
1662
|
function ke(e, t = 10) {
|
|
1568
1663
|
let n = [];
|
|
1569
1664
|
for (let r = 0; r < e.length; r += t) n.push(e.slice(r, r + t));
|
|
@@ -1607,11 +1702,11 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1607
1702
|
}), 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
1703
|
function Ue() {
|
|
1609
1704
|
let e = Math.max(0, window.scrollY);
|
|
1610
|
-
if (!K.value && e >=
|
|
1705
|
+
if (!K.value && e >= Qn) {
|
|
1611
1706
|
K.value = !0;
|
|
1612
1707
|
return;
|
|
1613
1708
|
}
|
|
1614
|
-
K.value && e <=
|
|
1709
|
+
K.value && e <= $n && (K.value = !1);
|
|
1615
1710
|
}
|
|
1616
1711
|
function We() {
|
|
1617
1712
|
let e = E.value, t = ee.value;
|
|
@@ -1641,7 +1736,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1641
1736
|
p("user-click", f.user);
|
|
1642
1737
|
return;
|
|
1643
1738
|
}
|
|
1644
|
-
|
|
1739
|
+
re.value?.toggle(e);
|
|
1645
1740
|
}
|
|
1646
1741
|
function Ye(e) {
|
|
1647
1742
|
J.value = e, p("update:searchValue", e), p("search", e);
|
|
@@ -1655,17 +1750,17 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1655
1750
|
function Qe() {
|
|
1656
1751
|
!Q() || window.innerWidth < 1024 || (F.value = !1, I.value = null, L.value = []);
|
|
1657
1752
|
}
|
|
1658
|
-
function
|
|
1753
|
+
function $e() {
|
|
1659
1754
|
if (Q()) {
|
|
1660
1755
|
F.value = !0;
|
|
1661
1756
|
return;
|
|
1662
1757
|
}
|
|
1663
1758
|
F.value = !F.value, F.value || (I.value = null, L.value = []);
|
|
1664
1759
|
}
|
|
1665
|
-
function
|
|
1760
|
+
function et(e) {
|
|
1666
1761
|
Q() && (I.value = e, L.value = []);
|
|
1667
1762
|
}
|
|
1668
|
-
function
|
|
1763
|
+
function tt(e) {
|
|
1669
1764
|
if (Q()) {
|
|
1670
1765
|
I.value = e, L.value = [];
|
|
1671
1766
|
return;
|
|
@@ -1673,7 +1768,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1673
1768
|
let t = I.value === e;
|
|
1674
1769
|
I.value = t ? null : e, L.value = [];
|
|
1675
1770
|
}
|
|
1676
|
-
function
|
|
1771
|
+
function nt(e, t, n, r) {
|
|
1677
1772
|
if (r && !Q()) return;
|
|
1678
1773
|
let i = e.value[n];
|
|
1679
1774
|
if (!t.children?.length) {
|
|
@@ -1686,11 +1781,11 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1686
1781
|
}
|
|
1687
1782
|
e.value = i === t.id && !r ? e.value.slice(0, n) : [...e.value.slice(0, n), t.id];
|
|
1688
1783
|
}
|
|
1689
|
-
function
|
|
1690
|
-
|
|
1784
|
+
function rt(e, t, n) {
|
|
1785
|
+
nt(L, e, t, n);
|
|
1691
1786
|
}
|
|
1692
|
-
function
|
|
1693
|
-
|
|
1787
|
+
function it(e, t, n) {
|
|
1788
|
+
nt(z, e, t, n);
|
|
1694
1789
|
}
|
|
1695
1790
|
function er(e) {
|
|
1696
1791
|
Q() && (R.value = e, z.value = []);
|
|
@@ -1778,7 +1873,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1778
1873
|
}
|
|
1779
1874
|
if (e.key === "Escape") {
|
|
1780
1875
|
if (H.value) {
|
|
1781
|
-
|
|
1876
|
+
re.value?.hide();
|
|
1782
1877
|
return;
|
|
1783
1878
|
}
|
|
1784
1879
|
P.value &&= !1, rr(), X.value.searchIconOnly && !J.value.trim() && (ae.value = !1);
|
|
@@ -1847,10 +1942,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1847
1942
|
}, [...u[19] ||= [o("i", {
|
|
1848
1943
|
class: "pi pi-bars",
|
|
1849
1944
|
"aria-hidden": "true"
|
|
1850
|
-
}, null, -1)]], 8,
|
|
1851
|
-
o("div",
|
|
1852
|
-
Pe.value ? (b(), a("div",
|
|
1853
|
-
Pe.value ? (b(), a("div",
|
|
1945
|
+
}, null, -1)]], 8, ot)) : i("", !0),
|
|
1946
|
+
o("div", st, [w(n.$slots, "brand", { compact: X.value.hideContextDetails })]),
|
|
1947
|
+
Pe.value ? (b(), a("div", ct)) : i("", !0),
|
|
1948
|
+
Pe.value ? (b(), a("div", lt, [X.value.hideContextDetails && n.$slots["context-compact"] ? w(n.$slots, "context-compact", {
|
|
1854
1949
|
client: s.client,
|
|
1855
1950
|
compact: !0
|
|
1856
1951
|
}, void 0, void 0, 0) : n.$slots.context ? w(n.$slots, "context", {
|
|
@@ -1862,18 +1957,18 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1862
1957
|
}, void 0, void 0, 2) : w(n.$slots, "client", {
|
|
1863
1958
|
client: s.client,
|
|
1864
1959
|
compact: X.value.hideContextDetails
|
|
1865
|
-
}, () => [s.client ? (b(), a("div",
|
|
1960
|
+
}, () => [s.client ? (b(), a("div", ut, [s.client.logoUrl ? (b(), a("img", {
|
|
1866
1961
|
key: 0,
|
|
1867
1962
|
src: s.client.logoUrl,
|
|
1868
1963
|
alt: "",
|
|
1869
1964
|
class: "top-nav-bar__client-logo"
|
|
1870
|
-
}, null, 8,
|
|
1965
|
+
}, 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
1966
|
u[24] ||= o("div", {
|
|
1872
1967
|
class: "top-nav-bar__spacer",
|
|
1873
1968
|
"aria-hidden": "true"
|
|
1874
1969
|
}, null, -1),
|
|
1875
|
-
o("div",
|
|
1876
|
-
s.searchable ? (b(), a("div",
|
|
1970
|
+
o("div", gt, [
|
|
1971
|
+
s.searchable ? (b(), a("div", _t, [X.value.searchIconOnly && !ae.value ? (b(), a("button", {
|
|
1877
1972
|
key: 0,
|
|
1878
1973
|
class: "top-nav-bar__square-button",
|
|
1879
1974
|
type: "button",
|
|
@@ -1902,7 +1997,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1902
1997
|
onFocus: u[1] ||= (e) => Y.value = !0,
|
|
1903
1998
|
onBlur: ar,
|
|
1904
1999
|
onInput: u[2] ||= (e) => Ye(e.target.value)
|
|
1905
|
-
}, null, 40,
|
|
2000
|
+
}, null, 40, vt),
|
|
1906
2001
|
J.value || X.value.searchIconOnly && ae.value ? (b(), a("button", {
|
|
1907
2002
|
key: 0,
|
|
1908
2003
|
class: "top-nav-bar__search-clear",
|
|
@@ -1913,8 +2008,8 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1913
2008
|
}, [...u[21] ||= [o("i", {
|
|
1914
2009
|
class: "pi pi-times",
|
|
1915
2010
|
"aria-hidden": "true"
|
|
1916
|
-
}, null, -1)]], 40,
|
|
1917
|
-
Y.value ? (b(), a("div",
|
|
2011
|
+
}, null, -1)]], 40, yt)) : i("", !0),
|
|
2012
|
+
Y.value ? (b(), a("div", bt, [o("div", xt, [w(n.$slots, "search-results", {
|
|
1918
2013
|
items: ge.value,
|
|
1919
2014
|
select: $
|
|
1920
2015
|
}, () => [(b(!0), a(e, null, C(ge.value, (e) => (b(), a("button", {
|
|
@@ -1929,9 +2024,9 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1929
2024
|
key: 0,
|
|
1930
2025
|
class: h(e.icon),
|
|
1931
2026
|
"aria-hidden": "true"
|
|
1932
|
-
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 40,
|
|
2027
|
+
}, 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
2028
|
], 2))])) : i("", !0),
|
|
1934
|
-
Ae.value.length ? (b(), a("div",
|
|
2029
|
+
Ae.value.length ? (b(), a("div", wt, [X.value.collapseActions ? (b(), a(e, { key: 1 }, [o("button", {
|
|
1935
2030
|
class: "top-nav-bar__square-button",
|
|
1936
2031
|
type: "button",
|
|
1937
2032
|
"aria-label": "Mais ações",
|
|
@@ -1940,7 +2035,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1940
2035
|
}, [...u[23] ||= [o("i", {
|
|
1941
2036
|
class: "pi pi-ellipsis-h",
|
|
1942
2037
|
"aria-hidden": "true"
|
|
1943
|
-
}, null, -1)]], 8,
|
|
2038
|
+
}, 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
2039
|
key: e.id,
|
|
1945
2040
|
class: "top-nav-bar__menu-item",
|
|
1946
2041
|
type: "button",
|
|
@@ -1950,7 +2045,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1950
2045
|
}, [o("i", {
|
|
1951
2046
|
class: h(e.icon),
|
|
1952
2047
|
"aria-hidden": "true"
|
|
1953
|
-
}, null, 2), o("span", null, D(e.label), 1)], 8,
|
|
2048
|
+
}, 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
2049
|
key: e.id,
|
|
1955
2050
|
class: h(["top-nav-bar__square-button", { "top-nav-bar__square-button--active": e.kind === "aia" && s.aiaActive }]),
|
|
1956
2051
|
type: "button",
|
|
@@ -1969,8 +2064,8 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1969
2064
|
key: 2,
|
|
1970
2065
|
class: h(e.icon),
|
|
1971
2066
|
"aria-hidden": "true"
|
|
1972
|
-
}, null, 2))], 10,
|
|
1973
|
-
n.$slots.actions ? (b(), a("div",
|
|
2067
|
+
}, null, 2))], 10, Tt))), 128))])) : i("", !0),
|
|
2068
|
+
n.$slots.actions ? (b(), a("div", At, [w(n.$slots, "actions", {
|
|
1974
2069
|
compact: X.value.collapseActions,
|
|
1975
2070
|
close: rr
|
|
1976
2071
|
})])) : i("", !0),
|
|
@@ -1994,10 +2089,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
1994
2089
|
src: s.user.avatarUrl,
|
|
1995
2090
|
alt: "",
|
|
1996
2091
|
class: "top-nav-bar__user-avatar"
|
|
1997
|
-
}, null, 8,
|
|
2092
|
+
}, 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
2093
|
items: je.value,
|
|
1999
2094
|
select: qe
|
|
2000
|
-
}, () => [(b(!0), a(e, null, C(je.value, (t) => (b(), a(e, { key: t.id }, [t.separator ? (b(), a("div",
|
|
2095
|
+
}, () => [(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
2096
|
key: 1,
|
|
2002
2097
|
class: "top-nav-bar__menu-item",
|
|
2003
2098
|
type: "button",
|
|
@@ -2008,16 +2103,16 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2008
2103
|
key: 0,
|
|
2009
2104
|
class: h(t.icon),
|
|
2010
2105
|
"aria-hidden": "true"
|
|
2011
|
-
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8,
|
|
2106
|
+
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, Vt))], 64))), 128))])])])) : i("", !0)], 32)) : i("", !0)
|
|
2012
2107
|
])
|
|
2013
2108
|
], 2),
|
|
2014
|
-
o("div",
|
|
2109
|
+
o("div", Ht, [
|
|
2015
2110
|
o("button", {
|
|
2016
2111
|
class: "top-nav-bar__crumb",
|
|
2017
2112
|
type: "button",
|
|
2018
2113
|
onClick: u[9] ||= (e) => $(s.homeItem)
|
|
2019
|
-
}, [l(O(
|
|
2020
|
-
Z.value.length ? (b(), a("span",
|
|
2114
|
+
}, [l(O(Ee), { icon: O(xe) }, null, 8, ["icon"]), o("span", null, D(s.homeItem.label), 1)]),
|
|
2115
|
+
Z.value.length ? (b(), a("span", Ut, "/")) : i("", !0),
|
|
2021
2116
|
Z.value.length ? (b(), a("div", {
|
|
2022
2117
|
key: 1,
|
|
2023
2118
|
class: "top-nav-bar__dropdown top-nav-bar__desktop-navigation",
|
|
@@ -2029,7 +2124,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2029
2124
|
type: "button",
|
|
2030
2125
|
"aria-haspopup": "menu",
|
|
2031
2126
|
"aria-expanded": F.value,
|
|
2032
|
-
onClick:
|
|
2127
|
+
onClick: $e
|
|
2033
2128
|
}, [
|
|
2034
2129
|
u[25] ||= o("i", {
|
|
2035
2130
|
class: "pi pi-bars",
|
|
@@ -2040,25 +2135,25 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2040
2135
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2041
2136
|
"aria-hidden": "true"
|
|
2042
2137
|
}, null, -1)
|
|
2043
|
-
], 8,
|
|
2138
|
+
], 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
2139
|
key: e.id,
|
|
2045
2140
|
class: h(["top-nav-bar__menu-item", { "top-nav-bar__menu-item--explored": e.children?.length && I.value === e.id }]),
|
|
2046
2141
|
type: "button",
|
|
2047
2142
|
role: "menuitem",
|
|
2048
2143
|
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
2049
2144
|
"aria-expanded": e.children?.length ? I.value === e.id : void 0,
|
|
2050
|
-
onMouseenter: (t) => e.children?.length ?
|
|
2051
|
-
onClick: (t) => e.children?.length ?
|
|
2145
|
+
onMouseenter: (t) => e.children?.length ? et(e.id) : void 0,
|
|
2146
|
+
onClick: (t) => e.children?.length ? tt(e.id) : $(e)
|
|
2052
2147
|
}, [
|
|
2053
2148
|
e.icon ? (b(), a("i", {
|
|
2054
2149
|
key: 0,
|
|
2055
2150
|
class: h(e.icon),
|
|
2056
2151
|
"aria-hidden": "true"
|
|
2057
2152
|
}, null, 2)) : i("", !0),
|
|
2058
|
-
o("span",
|
|
2059
|
-
e.children?.length ? (b(), a("span",
|
|
2060
|
-
e.children?.length ? (b(), a("i",
|
|
2061
|
-
], 42,
|
|
2153
|
+
o("span", Yt, D(e.label), 1),
|
|
2154
|
+
e.children?.length ? (b(), a("span", Xt, D(e.children.length), 1)) : i("", !0),
|
|
2155
|
+
e.children?.length ? (b(), a("i", Zt)) : i("", !0)
|
|
2156
|
+
], 42, Jt))), 128))]), Te.value ? (b(), a("div", Qt, [(b(!0), a(e, null, C(Oe.value, (t, n) => (b(), a("div", {
|
|
2062
2157
|
key: `navigation-level-${n}`,
|
|
2063
2158
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__section-items": n === 0 }]),
|
|
2064
2159
|
role: "menu"
|
|
@@ -2073,17 +2168,17 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2073
2168
|
disabled: e.disabled,
|
|
2074
2169
|
"aria-haspopup": e.children?.length ? "menu" : void 0,
|
|
2075
2170
|
"aria-expanded": e.children?.length ? L.value[n] === e.id : void 0,
|
|
2076
|
-
onMouseenter: (t) =>
|
|
2077
|
-
onClick: (t) =>
|
|
2171
|
+
onMouseenter: (t) => rt(e, n, !0),
|
|
2172
|
+
onClick: (t) => rt(e, n, !1)
|
|
2078
2173
|
}, [
|
|
2079
2174
|
e.icon ? (b(), a("i", {
|
|
2080
2175
|
key: 0,
|
|
2081
2176
|
class: h(e.icon),
|
|
2082
2177
|
"aria-hidden": "true"
|
|
2083
2178
|
}, null, 2)) : i("", !0),
|
|
2084
|
-
o("span",
|
|
2085
|
-
e.children?.length ? (b(), a("i",
|
|
2086
|
-
], 42,
|
|
2179
|
+
o("span", en, D(e.label), 1),
|
|
2180
|
+
e.children?.length ? (b(), a("i", tn)) : i("", !0)
|
|
2181
|
+
], 42, $t))), 128))]))), 128))], 2))), 128))])) : i("", !0)])])) : i("", !0)], 32)) : i("", !0),
|
|
2087
2182
|
(b(!0), a(e, null, C(Ce.value, (t, n) => (b(), a(e, { key: t.id }, [o("span", {
|
|
2088
2183
|
class: h(["top-nav-bar__separator", { "top-nav-bar__separator--current": !t.to && n === Ce.value.length - 1 }]),
|
|
2089
2184
|
"aria-hidden": "true"
|
|
@@ -2093,7 +2188,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2093
2188
|
"data-top-nav-breadcrumb": "",
|
|
2094
2189
|
onMouseenter: (e) => !oe.value && er(t.id),
|
|
2095
2190
|
onMouseleave: u[10] ||= (e) => !oe.value && tr()
|
|
2096
|
-
}, [oe.value ? (b(), a("span",
|
|
2191
|
+
}, [oe.value ? (b(), a("span", rn, D(t.label), 1)) : (b(), a("button", {
|
|
2097
2192
|
key: 1,
|
|
2098
2193
|
class: "top-nav-bar__crumb",
|
|
2099
2194
|
type: "button",
|
|
@@ -2103,7 +2198,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2103
2198
|
}, [o("span", null, D(t.label), 1), u[27] ||= o("i", {
|
|
2104
2199
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2105
2200
|
"aria-hidden": "true"
|
|
2106
|
-
}, null, -1)], 8,
|
|
2201
|
+
}, 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
2202
|
key: `breadcrumb-${t.id}-${r}`,
|
|
2108
2203
|
class: h(["top-nav-bar__cascade-level", { "top-nav-bar__breadcrumb-main-items": r === 0 }])
|
|
2109
2204
|
}, [(b(!0), a(e, null, C(ke(n), (n, s) => (b(), a("div", {
|
|
@@ -2115,26 +2210,26 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2115
2210
|
type: "button",
|
|
2116
2211
|
role: "menuitem",
|
|
2117
2212
|
disabled: e.disabled,
|
|
2118
|
-
onMouseenter: (t) =>
|
|
2119
|
-
onClick: (t) =>
|
|
2213
|
+
onMouseenter: (t) => it(e, r, !0),
|
|
2214
|
+
onClick: (t) => it(e, r, !1)
|
|
2120
2215
|
}, [
|
|
2121
2216
|
e.icon ? (b(), a("i", {
|
|
2122
2217
|
key: 0,
|
|
2123
2218
|
class: h(e.icon),
|
|
2124
2219
|
"aria-hidden": "true"
|
|
2125
2220
|
}, null, 2)) : i("", !0),
|
|
2126
|
-
o("span",
|
|
2127
|
-
e.children?.length ? (b(), a("i",
|
|
2128
|
-
], 42,
|
|
2221
|
+
o("span", ln, D(e.label), 1),
|
|
2222
|
+
e.children?.length ? (b(), a("i", un)) : i("", !0)
|
|
2223
|
+
], 42, cn))), 128))]))), 128))], 2))), 128))])])) : i("", !0)], 40, nn)) : t.to ? (b(), a("button", {
|
|
2129
2224
|
key: 1,
|
|
2130
2225
|
class: "top-nav-bar__crumb",
|
|
2131
2226
|
type: "button",
|
|
2132
2227
|
onClick: (e) => $(t)
|
|
2133
|
-
}, D(t.label), 9,
|
|
2228
|
+
}, D(t.label), 9, dn)) : (b(), a("span", {
|
|
2134
2229
|
key: 2,
|
|
2135
2230
|
class: "top-nav-bar__current",
|
|
2136
2231
|
title: t.label
|
|
2137
|
-
}, [o("span",
|
|
2232
|
+
}, [o("span", pn, D(t.label), 1), s.showFavoriteToggle ? (b(), a("button", {
|
|
2138
2233
|
key: 0,
|
|
2139
2234
|
class: "top-nav-bar__favorite-toggle",
|
|
2140
2235
|
type: "button",
|
|
@@ -2144,8 +2239,8 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2144
2239
|
}, [o("i", {
|
|
2145
2240
|
class: h(s.favoriteActive ? "pi pi-star-fill" : "pi pi-star"),
|
|
2146
2241
|
"aria-hidden": "true"
|
|
2147
|
-
}, null, 2)], 8,
|
|
2148
|
-
o("div",
|
|
2242
|
+
}, null, 2)], 8, mn)) : i("", !0)], 8, fn))], 64))), 128)),
|
|
2243
|
+
o("div", hn, [l(t, {
|
|
2149
2244
|
name: "top-nav-bar-favorites-trigger",
|
|
2150
2245
|
css: ie.value
|
|
2151
2246
|
}, {
|
|
@@ -2171,7 +2266,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2171
2266
|
class: "pi pi-chevron-down top-nav-bar__chevron",
|
|
2172
2267
|
"aria-hidden": "true"
|
|
2173
2268
|
}, null, -1)
|
|
2174
|
-
], 8,
|
|
2269
|
+
], 8, gn), W.value ? (b(), a("div", _n, [o("div", vn, [(b(!0), a(e, null, C(Fe.value, (e) => (b(), a("button", {
|
|
2175
2270
|
key: e.id,
|
|
2176
2271
|
class: "top-nav-bar__menu-item",
|
|
2177
2272
|
type: "button",
|
|
@@ -2182,7 +2277,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2182
2277
|
key: 0,
|
|
2183
2278
|
class: h(e.icon),
|
|
2184
2279
|
"aria-hidden": "true"
|
|
2185
|
-
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 8,
|
|
2280
|
+
}, null, 2)) : i("", !0), o("span", null, D(e.label), 1)], 8, yn))), 128))])])) : i("", !0)], 32)) : i("", !0)]),
|
|
2186
2281
|
_: 1
|
|
2187
2282
|
}, 8, ["css"]), w(n.$slots, "breadcrumb-actions")])
|
|
2188
2283
|
]),
|
|
@@ -2195,13 +2290,13 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2195
2290
|
ref_key: "favoritesMeasureContentRef",
|
|
2196
2291
|
ref: ee,
|
|
2197
2292
|
class: "top-nav-bar__favorites-measure-content"
|
|
2198
|
-
}, [o("span",
|
|
2293
|
+
}, [o("span", bn, [u[30] ||= o("i", {
|
|
2199
2294
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2200
2295
|
"aria-hidden": "true"
|
|
2201
2296
|
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), (b(!0), a(e, null, C(Fe.value, (e, t) => (b(), a("span", {
|
|
2202
2297
|
key: `measure-${e.id}`,
|
|
2203
2298
|
class: "top-nav-bar__favorites-measure-item"
|
|
2204
|
-
}, [t > 0 ? (b(), a("span",
|
|
2299
|
+
}, [t > 0 ? (b(), a("span", xn, "|")) : i("", !0), o("span", null, [e.icon ? (b(), a("i", {
|
|
2205
2300
|
key: 0,
|
|
2206
2301
|
class: h(e.icon),
|
|
2207
2302
|
"aria-hidden": "true"
|
|
@@ -2210,10 +2305,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2210
2305
|
name: "top-nav-bar-favorites-row",
|
|
2211
2306
|
css: ie.value
|
|
2212
2307
|
}, {
|
|
2213
|
-
default: j(() => [Le.value ? (b(), a("div",
|
|
2308
|
+
default: j(() => [Le.value ? (b(), a("div", Sn, [o("span", Cn, [u[31] ||= o("i", {
|
|
2214
2309
|
class: "pi pi-star-fill top-nav-bar__favorites-icon",
|
|
2215
2310
|
"aria-hidden": "true"
|
|
2216
|
-
}, null, -1), o("span", null, D(s.favoriteLabel), 1)]), o("div",
|
|
2311
|
+
}, 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
2312
|
class: "top-nav-bar__favorites-row-item",
|
|
2218
2313
|
type: "button",
|
|
2219
2314
|
disabled: t.disabled,
|
|
@@ -2222,7 +2317,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2222
2317
|
key: 0,
|
|
2223
2318
|
class: h(t.icon),
|
|
2224
2319
|
"aria-hidden": "true"
|
|
2225
|
-
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8,
|
|
2320
|
+
}, null, 2)) : i("", !0), o("span", null, D(t.label), 1)], 8, En)], 64))), 128))])])) : i("", !0)]),
|
|
2226
2321
|
_: 1
|
|
2227
2322
|
}, 8, ["css"]),
|
|
2228
2323
|
l(O(ne), {
|
|
@@ -2232,8 +2327,8 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2232
2327
|
class: "top-nav-bar__mobile-drawer",
|
|
2233
2328
|
style: _([Ve.value, { width: "var(--top-nav-drawer-width, min(22rem, calc(100vw - 1.5rem)))" }])
|
|
2234
2329
|
}, {
|
|
2235
|
-
container: j(({ closeCallback: d }) => [o("div",
|
|
2236
|
-
o("header",
|
|
2330
|
+
container: j(({ closeCallback: d }) => [o("div", Dn, [
|
|
2331
|
+
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
2332
|
class: "top-nav-bar__drawer-close top-nav-bar__square-button",
|
|
2238
2333
|
type: "button",
|
|
2239
2334
|
"aria-label": "Fechar navegação",
|
|
@@ -2241,12 +2336,12 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2241
2336
|
}, [...u[32] ||= [o("i", {
|
|
2242
2337
|
class: "pi pi-times",
|
|
2243
2338
|
"aria-hidden": "true"
|
|
2244
|
-
}, null, -1)]], 8,
|
|
2245
|
-
s.searchable || Ae.value.length || n.$slots["drawer-actions"] ? (b(), a("div",
|
|
2339
|
+
}, null, -1)]], 8, An)])]),
|
|
2340
|
+
s.searchable || Ae.value.length || n.$slots["drawer-actions"] ? (b(), a("div", jn, [s.searchable ? w(n.$slots, "drawer-search", {
|
|
2246
2341
|
query: J.value,
|
|
2247
2342
|
update: Ye,
|
|
2248
2343
|
clear: Xe
|
|
2249
|
-
}, () => [o("div",
|
|
2344
|
+
}, () => [o("div", Mn, [
|
|
2250
2345
|
u[34] ||= o("i", {
|
|
2251
2346
|
class: "pi pi-search",
|
|
2252
2347
|
"aria-hidden": "true"
|
|
@@ -2260,7 +2355,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2260
2355
|
placeholder: s.searchPlaceholder,
|
|
2261
2356
|
"aria-label": "Pesquisar no menu",
|
|
2262
2357
|
onInput: u[14] ||= (e) => Ye(e.target.value)
|
|
2263
|
-
}, null, 40,
|
|
2358
|
+
}, null, 40, Nn),
|
|
2264
2359
|
J.value ? (b(), a("button", {
|
|
2265
2360
|
key: 0,
|
|
2266
2361
|
class: "top-nav-bar__search-clear",
|
|
@@ -2284,10 +2379,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2284
2379
|
}, [o("i", {
|
|
2285
2380
|
class: h(e.icon),
|
|
2286
2381
|
"aria-hidden": "true"
|
|
2287
|
-
}, null, 2), o("span", null, D(e.label), 1)], 10,
|
|
2288
|
-
o("div",
|
|
2382
|
+
}, null, 2), o("span", null, D(e.label), 1)], 10, Pn))), 128))])])) : i("", !0),
|
|
2383
|
+
o("div", Fn, [
|
|
2289
2384
|
w(n.$slots, "drawer-before-menu", { close: d }),
|
|
2290
|
-
o("div",
|
|
2385
|
+
o("div", In, [Fe.value.length ? (b(), a("section", Ln, [o("button", {
|
|
2291
2386
|
class: "top-nav-bar__mobile-item",
|
|
2292
2387
|
type: "button",
|
|
2293
2388
|
"aria-expanded": G.value,
|
|
@@ -2297,14 +2392,14 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2297
2392
|
class: "pi pi-star-fill top-nav-bar__accent",
|
|
2298
2393
|
"aria-hidden": "true"
|
|
2299
2394
|
}, null, -1),
|
|
2300
|
-
o("span",
|
|
2301
|
-
o("span",
|
|
2395
|
+
o("span", zn, D(s.favoriteLabel), 1),
|
|
2396
|
+
o("span", Bn, D(Fe.value.length), 1),
|
|
2302
2397
|
o("i", {
|
|
2303
2398
|
class: h(["pi pi-chevron-down top-nav-bar__mobile-chevron", { "top-nav-bar__mobile-chevron--open": G.value }]),
|
|
2304
2399
|
"aria-hidden": "true"
|
|
2305
2400
|
}, null, 2)
|
|
2306
|
-
], 8,
|
|
2307
|
-
default: j(() => [G.value ? (b(), r(
|
|
2401
|
+
], 8, Rn), l(t, { name: "top-nav-bar-menu-expand" }, {
|
|
2402
|
+
default: j(() => [G.value ? (b(), r(at, {
|
|
2308
2403
|
key: 0,
|
|
2309
2404
|
items: Fe.value,
|
|
2310
2405
|
"active-item-id": s.activeItemId,
|
|
@@ -2316,7 +2411,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2316
2411
|
sections: ve.value,
|
|
2317
2412
|
select: $,
|
|
2318
2413
|
close: d
|
|
2319
|
-
}, () => [ve.value.length ? (b(), r(
|
|
2414
|
+
}, () => [ve.value.length ? (b(), r(at, {
|
|
2320
2415
|
key: 0,
|
|
2321
2416
|
items: ve.value,
|
|
2322
2417
|
"active-item-id": s.activeItemId,
|
|
@@ -2327,10 +2422,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2327
2422
|
"items",
|
|
2328
2423
|
"active-item-id",
|
|
2329
2424
|
"force-open"
|
|
2330
|
-
])) : (b(), a("div",
|
|
2425
|
+
])) : (b(), a("div", Vn, "Nenhum menu encontrado."))])]),
|
|
2331
2426
|
w(n.$slots, "drawer-after-menu", { close: d })
|
|
2332
2427
|
]),
|
|
2333
|
-
Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer",
|
|
2428
|
+
Ne.value || n.$slots["drawer-footer"] ? (b(), a("footer", Hn, [Ne.value ? w(n.$slots, "drawer-user", {
|
|
2334
2429
|
user: s.user,
|
|
2335
2430
|
client: s.client,
|
|
2336
2431
|
open: H.value,
|
|
@@ -2347,19 +2442,19 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2347
2442
|
src: s.user.avatarUrl,
|
|
2348
2443
|
alt: "",
|
|
2349
2444
|
class: "top-nav-bar__user-avatar"
|
|
2350
|
-
}, null, 8,
|
|
2351
|
-
s.user ? (b(), a("span",
|
|
2445
|
+
}, null, 8, Wn)) : (b(), a("span", Gn, D(ze.value), 1)),
|
|
2446
|
+
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
2447
|
class: "pi pi-building",
|
|
2353
2448
|
"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,
|
|
2449
|
+
}, 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),
|
|
2450
|
+
Me.value ? (b(), a("i", Zn)) : i("", !0)
|
|
2451
|
+
], 8, Un)], void 0, 0) : i("", !0), w(n.$slots, "drawer-footer", { close: d })])) : i("", !0)
|
|
2357
2452
|
])]),
|
|
2358
2453
|
_: 3
|
|
2359
2454
|
}, 8, ["visible", "style"]),
|
|
2360
|
-
l(O(
|
|
2455
|
+
l(O(U), {
|
|
2361
2456
|
ref_key: "drawerUserMenuRef",
|
|
2362
|
-
ref:
|
|
2457
|
+
ref: re,
|
|
2363
2458
|
class: "top-nav-bar__drawer-user-popup",
|
|
2364
2459
|
model: Be.value,
|
|
2365
2460
|
popup: !0,
|
|
@@ -2370,41 +2465,41 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2370
2465
|
}, null, 8, ["model"])
|
|
2371
2466
|
], 4));
|
|
2372
2467
|
}
|
|
2373
|
-
}),
|
|
2468
|
+
}), tr = { class: "top-field-icon pointer-events-none absolute left-3 top-1/2 z-10 -translate-y-1/2" }, nr = {
|
|
2374
2469
|
key: 0,
|
|
2375
2470
|
class: "pi pi-spin pi-spinner"
|
|
2376
|
-
},
|
|
2471
|
+
}, rr = {
|
|
2377
2472
|
key: 1,
|
|
2378
2473
|
class: "pi pi-search"
|
|
2379
|
-
},
|
|
2474
|
+
}, ir = {
|
|
2380
2475
|
key: 1,
|
|
2381
2476
|
class: "flex items-center gap-1 !text-sm"
|
|
2382
|
-
},
|
|
2477
|
+
}, 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
2478
|
key: 1,
|
|
2384
2479
|
class: "flex min-h-[100px] flex-col items-center justify-center gap-2 py-2"
|
|
2385
|
-
},
|
|
2480
|
+
}, lr = {
|
|
2386
2481
|
key: 0,
|
|
2387
2482
|
class: "text-xs font-medium text-primary-600"
|
|
2388
|
-
},
|
|
2483
|
+
}, ur = {
|
|
2389
2484
|
key: 2,
|
|
2390
2485
|
class: "text-xs text-secondary-500"
|
|
2391
|
-
},
|
|
2486
|
+
}, dr = { key: 1 }, fr = {
|
|
2392
2487
|
key: 1,
|
|
2393
2488
|
class: "flex items-center gap-2 font-semibold"
|
|
2394
|
-
},
|
|
2489
|
+
}, pr = {
|
|
2395
2490
|
key: 1,
|
|
2396
2491
|
class: "flex w-full min-w-0 items-start gap-2 overflow-hidden px-2 py-3 text-sm",
|
|
2397
2492
|
style: { "white-space": "normal" }
|
|
2398
|
-
},
|
|
2493
|
+
}, mr = ["title"], hr = {
|
|
2399
2494
|
key: 0,
|
|
2400
2495
|
class: "top-select-option-prefix whitespace-nowrap font-bold text-primary-800 dark:text-primary-100"
|
|
2401
|
-
},
|
|
2496
|
+
}, gr = {
|
|
2402
2497
|
key: 0,
|
|
2403
2498
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2404
|
-
},
|
|
2499
|
+
}, _r = {
|
|
2405
2500
|
key: 0,
|
|
2406
2501
|
class: "rounded-sm bg-primary-200 p-0 font-bold text-black dark:bg-cyan-700 dark:text-white"
|
|
2407
|
-
},
|
|
2502
|
+
}, vr = /* @__PURE__ */ u({
|
|
2408
2503
|
inheritAttrs: !1,
|
|
2409
2504
|
__name: "TopSelect",
|
|
2410
2505
|
props: {
|
|
@@ -2474,21 +2569,21 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2474
2569
|
"change"
|
|
2475
2570
|
],
|
|
2476
2571
|
setup(t, { expose: r, emit: u }) {
|
|
2477
|
-
let f = t, _ = u, x = te(), T = ee(), E =
|
|
2572
|
+
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
2573
|
get: () => f.modelValue,
|
|
2479
2574
|
set: (e) => _("update:modelValue", e)
|
|
2480
2575
|
}), B = n(() => {
|
|
2481
2576
|
let { class: e, ...t } = T;
|
|
2482
2577
|
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
|
|
2578
|
+
}), 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));
|
|
2579
|
+
function ne(e, t) {
|
|
2485
2580
|
return e == null ? "" : String(typeof e == "object" ? e[t] ?? "" : e);
|
|
2486
2581
|
}
|
|
2487
2582
|
function U(e) {
|
|
2488
|
-
return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) :
|
|
2583
|
+
return e == null ? "" : typeof f.optionLabel == "function" ? f.optionLabel(e) : ne(e, f.optionLabel);
|
|
2489
2584
|
}
|
|
2490
2585
|
function W(e) {
|
|
2491
|
-
return f.optionPrefix ?
|
|
2586
|
+
return f.optionPrefix ? ne(e, f.optionPrefix) : "";
|
|
2492
2587
|
}
|
|
2493
2588
|
function G(e, t = f.showSelectedPrefix) {
|
|
2494
2589
|
let n = U(e), r = W(e);
|
|
@@ -2542,7 +2637,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2542
2637
|
}), (n, r) => (b(), a("div", {
|
|
2543
2638
|
class: h(["top-select top-solutions-component relative w-full", { "pointer-events-none": t.disabled }]),
|
|
2544
2639
|
onFocusin: ae
|
|
2545
|
-
}, [o("span",
|
|
2640
|
+
}, [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
2641
|
ref_key: "autocompleteRef",
|
|
2547
2642
|
ref: P
|
|
2548
2643
|
}, B.value, {
|
|
@@ -2577,7 +2672,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2577
2672
|
root: { class: ["w-full text-xs", t.multiple ? "h-auto" : "h-[40px]"].join(" ") },
|
|
2578
2673
|
pcInputText: { root: { class: V.value } },
|
|
2579
2674
|
input: { class: V.value },
|
|
2580
|
-
inputMultiple: { class:
|
|
2675
|
+
inputMultiple: { class: H.value },
|
|
2581
2676
|
inputChip: { class: "py-0" },
|
|
2582
2677
|
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
2678
|
removeTokenIcon: { class: "text-primary-900 w-3 h-3 cursor-pointer dark:text-primary-100" },
|
|
@@ -2610,18 +2705,18 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2610
2705
|
},
|
|
2611
2706
|
onChange: r[4] ||= (e) => _("change", e)
|
|
2612
2707
|
}), s({
|
|
2613
|
-
chip: j((e) => [O(x).chip ? w(n.$slots, "chip", g(d(e)), void 0, void 0, 0) : (b(), a("div",
|
|
2708
|
+
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
2709
|
class: "pi pi-times-circle shrink-0 cursor-pointer rounded-full hover:bg-primary-800",
|
|
2615
2710
|
onClick: (t) => e.removeCallback(t)
|
|
2616
|
-
}, null, 8,
|
|
2711
|
+
}, null, 8, or), M((b(), a("span", sr, [c(D(G(e.value)), 1)])), [[
|
|
2617
2712
|
O(F),
|
|
2618
2713
|
G(e.value),
|
|
2619
2714
|
void 0,
|
|
2620
2715
|
{ top: !0 }
|
|
2621
2716
|
]])])]))]),
|
|
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",
|
|
2717
|
+
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))]),
|
|
2718
|
+
"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)]),
|
|
2719
|
+
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
2720
|
key: 0,
|
|
2626
2721
|
class: h(e.option.icon)
|
|
2627
2722
|
}, null, 2)) : i("", !0), o("span", null, D(e.option[t.optionGroupLabel ?? "label"]), 1)]))]),
|
|
@@ -2629,10 +2724,10 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2629
2724
|
label: U(s.option),
|
|
2630
2725
|
prefix: W(s.option),
|
|
2631
2726
|
query: k.value
|
|
2632
|
-
}), void 0, void 0, 0) : M((b(), a("div",
|
|
2727
|
+
}), void 0, void 0, 0) : M((b(), a("div", pr, [o("span", {
|
|
2633
2728
|
class: "top-select-option-label line-clamp-2 min-w-0 flex-1 text-secondary-700 dark:text-zinc-200",
|
|
2634
2729
|
title: U(s.option)
|
|
2635
|
-
}, [t.showOptionPrefix && W(s.option) ? (b(), a("span",
|
|
2730
|
+
}, [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
2731
|
O(F),
|
|
2637
2732
|
t.showTooltip ? U(s.option) : null,
|
|
2638
2733
|
void 0,
|
|
@@ -2661,7 +2756,7 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2661
2756
|
"pt"
|
|
2662
2757
|
])], 34));
|
|
2663
2758
|
}
|
|
2664
|
-
}),
|
|
2759
|
+
}), yr = /* @__PURE__ */ u({
|
|
2665
2760
|
inheritAttrs: !1,
|
|
2666
2761
|
__name: "TopTabs",
|
|
2667
2762
|
props: {
|
|
@@ -2682,15 +2777,15 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2682
2777
|
function o(e) {
|
|
2683
2778
|
return String(e.value);
|
|
2684
2779
|
}
|
|
2685
|
-
return (n, s) => (b(), r(O(
|
|
2780
|
+
return (n, s) => (b(), r(O(ie), p(n.$attrs, {
|
|
2686
2781
|
class: "top-tabs top-solutions-component w-full min-w-0",
|
|
2687
2782
|
value: t.modelValue,
|
|
2688
2783
|
lazy: t.lazy,
|
|
2689
2784
|
scrollable: t.scrollable,
|
|
2690
2785
|
"onUpdate:value": s[0] ||= (e) => i("update:modelValue", e)
|
|
2691
2786
|
}), {
|
|
2692
|
-
default: j(() => [l(O(
|
|
2693
|
-
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(
|
|
2787
|
+
default: j(() => [l(O(G), null, {
|
|
2788
|
+
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(W), {
|
|
2694
2789
|
key: e.value,
|
|
2695
2790
|
value: e.value,
|
|
2696
2791
|
disabled: e.disabled
|
|
@@ -2699,8 +2794,8 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2699
2794
|
_: 2
|
|
2700
2795
|
}, 1032, ["value", "disabled"]))), 128))]),
|
|
2701
2796
|
_: 1
|
|
2702
|
-
}), l(O(
|
|
2703
|
-
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(
|
|
2797
|
+
}), l(O(q), null, {
|
|
2798
|
+
default: j(() => [(b(!0), a(e, null, C(t.tabs, (e) => (b(), r(O(K), {
|
|
2704
2799
|
key: e.value,
|
|
2705
2800
|
value: e.value
|
|
2706
2801
|
}, {
|
|
@@ -2722,12 +2817,12 @@ var Te = /* @__PURE__ */ Se(xe, [["render", we], ["__file", "/Users/mahmudulhasa
|
|
|
2722
2817
|
});
|
|
2723
2818
|
//#endregion
|
|
2724
2819
|
//#region src/components/internal/topAccordion.ts
|
|
2725
|
-
function
|
|
2820
|
+
function br(e, t) {
|
|
2726
2821
|
return `${e}--section-${encodeURIComponent(String(t))}`;
|
|
2727
2822
|
}
|
|
2728
2823
|
//#endregion
|
|
2729
2824
|
//#region src/components/TopAccordion.vue?vue&type=script&setup=true&lang.ts
|
|
2730
|
-
var
|
|
2825
|
+
var xr = Symbol("top-accordion-context"), Sr = /* @__PURE__ */ u({
|
|
2731
2826
|
inheritAttrs: !1,
|
|
2732
2827
|
__name: "TopAccordion",
|
|
2733
2828
|
props: {
|
|
@@ -2752,7 +2847,7 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2752
2847
|
return s.value.includes(e);
|
|
2753
2848
|
}
|
|
2754
2849
|
function g(e) {
|
|
2755
|
-
return
|
|
2850
|
+
return br(i.id, e);
|
|
2756
2851
|
}
|
|
2757
2852
|
function _(e) {
|
|
2758
2853
|
s.value = Array.isArray(e) ? e : e == null ? [] : [e];
|
|
@@ -2768,7 +2863,7 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2768
2863
|
behavior: t.behavior ?? "smooth"
|
|
2769
2864
|
}), !0;
|
|
2770
2865
|
}
|
|
2771
|
-
return x(
|
|
2866
|
+
return x(xr, {
|
|
2772
2867
|
accordionId: i.id,
|
|
2773
2868
|
sections: c,
|
|
2774
2869
|
openSections: s,
|
|
@@ -2783,7 +2878,7 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2783
2878
|
ref_key: "rootRef",
|
|
2784
2879
|
ref: u,
|
|
2785
2880
|
class: "top-accordion top-solutions-component"
|
|
2786
|
-
}, [l(O(
|
|
2881
|
+
}, [l(O(J), p(t.$attrs, {
|
|
2787
2882
|
value: d.value,
|
|
2788
2883
|
multiple: e.multiple,
|
|
2789
2884
|
"expand-icon": "pi pi-chevron-down",
|
|
@@ -2795,11 +2890,11 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2795
2890
|
_: 3
|
|
2796
2891
|
}, 16, ["value", "multiple"])], 512));
|
|
2797
2892
|
}
|
|
2798
|
-
}),
|
|
2893
|
+
}), Cr = {
|
|
2799
2894
|
key: 0,
|
|
2800
2895
|
class: "top-accordion-summary__separator",
|
|
2801
2896
|
"aria-hidden": "true"
|
|
2802
|
-
},
|
|
2897
|
+
}, wr = { class: "top-accordion-summary__item" }, Tr = /* @__PURE__ */ u({
|
|
2803
2898
|
__name: "TopAccordionSummary",
|
|
2804
2899
|
props: {
|
|
2805
2900
|
items: { default: () => [] },
|
|
@@ -2820,12 +2915,12 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2820
2915
|
return (r, s) => t.visible && (t.items.length || r.$slots.default) ? (b(), a("div", {
|
|
2821
2916
|
key: 0,
|
|
2822
2917
|
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",
|
|
2918
|
+
}, [(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
2919
|
}
|
|
2825
|
-
}),
|
|
2920
|
+
}), Er = ["id"], Dr = { class: "top-accordion-panel__heading" }, Or = { class: "top-accordion-panel__title-row" }, kr = {
|
|
2826
2921
|
class: "top-accordion-panel__badge",
|
|
2827
2922
|
"aria-hidden": "true"
|
|
2828
|
-
},
|
|
2923
|
+
}, Ar = { key: 1 }, jr = { class: "top-accordion-panel__title" }, Mr = ["aria-label"], Nr = /* @__PURE__ */ u({
|
|
2829
2924
|
inheritAttrs: !1,
|
|
2830
2925
|
__name: "TopAccordionPanel",
|
|
2831
2926
|
props: {
|
|
@@ -2877,27 +2972,27 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2877
2972
|
}
|
|
2878
2973
|
},
|
|
2879
2974
|
setup(e) {
|
|
2880
|
-
let t = e, r = f(
|
|
2975
|
+
let t = e, r = f(xr);
|
|
2881
2976
|
if (!r) throw Error("TopAccordionPanel deve ser usado dentro de TopAccordion.");
|
|
2882
2977
|
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
2978
|
return (t, n) => (b(), a("div", {
|
|
2884
2979
|
id: y.value,
|
|
2885
2980
|
class: "top-accordion-panel-anchor"
|
|
2886
|
-
}, [l(O(
|
|
2981
|
+
}, [l(O(oe), p(t.$attrs, {
|
|
2887
2982
|
value: e.value,
|
|
2888
2983
|
disabled: m.value,
|
|
2889
2984
|
class: "top-accordion-panel"
|
|
2890
2985
|
}), {
|
|
2891
|
-
default: j(() => [l(O(
|
|
2986
|
+
default: j(() => [l(O(ae), {
|
|
2892
2987
|
class: h(["top-accordion-panel__header", e.headerClass]),
|
|
2893
2988
|
style: _(e.headerStyle)
|
|
2894
2989
|
}, {
|
|
2895
|
-
default: j(() => [o("div",
|
|
2896
|
-
o("span",
|
|
2990
|
+
default: j(() => [o("div", Dr, [o("div", Or, [
|
|
2991
|
+
o("span", kr, [w(t.$slots, "icon", {}, () => [d.value ? (b(), a("i", {
|
|
2897
2992
|
key: 0,
|
|
2898
2993
|
class: h(d.value)
|
|
2899
|
-
}, null, 2)) : (b(), a("span",
|
|
2900
|
-
o("span",
|
|
2994
|
+
}, null, 2)) : (b(), a("span", Ar, D(g.value), 1))])]),
|
|
2995
|
+
o("span", jr, [w(t.$slots, "title", {}, () => [c(D(u.value), 1)])]),
|
|
2901
2996
|
w(t.$slots, "status", {}, () => [e.status ? (b(), a("i", {
|
|
2902
2997
|
key: 0,
|
|
2903
2998
|
class: h([
|
|
@@ -2907,13 +3002,13 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2907
3002
|
]),
|
|
2908
3003
|
"aria-label": e.statusLabel || (e.status === "valid" ? "Seção válida" : "Existem erros na seção"),
|
|
2909
3004
|
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(
|
|
3005
|
+
}, null, 10, Mr)) : i("", !0)])
|
|
3006
|
+
]), 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
3007
|
items: e.summary,
|
|
2913
3008
|
visible: !v.value
|
|
2914
3009
|
}, null, 8, ["items", "visible"])], void 0, 1)])]),
|
|
2915
3010
|
_: 3
|
|
2916
|
-
}, 8, ["class", "style"]), l(O(
|
|
3011
|
+
}, 8, ["class", "style"]), l(O(Y), null, {
|
|
2917
3012
|
default: j(() => [o("div", {
|
|
2918
3013
|
class: h(["top-accordion-panel__content", e.contentClass]),
|
|
2919
3014
|
style: _(e.contentStyle)
|
|
@@ -2921,16 +3016,16 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2921
3016
|
_: 3
|
|
2922
3017
|
})]),
|
|
2923
3018
|
_: 3
|
|
2924
|
-
}, 16, ["value", "disabled"])], 8,
|
|
3019
|
+
}, 16, ["value", "disabled"])], 8, Er));
|
|
2925
3020
|
}
|
|
2926
|
-
}),
|
|
3021
|
+
}), Pr = { class: "top-accordion-navigator__items" }, Fr = [
|
|
2927
3022
|
"disabled",
|
|
2928
3023
|
"aria-current",
|
|
2929
3024
|
"onClick"
|
|
2930
|
-
],
|
|
3025
|
+
], Ir = { class: "top-accordion-navigator__badge" }, Lr = {
|
|
2931
3026
|
key: 0,
|
|
2932
3027
|
class: "pi pi-lock"
|
|
2933
|
-
},
|
|
3028
|
+
}, Rr = { key: 2 }, zr = { class: "top-accordion-navigator__label" }, Br = /* @__PURE__ */ u({
|
|
2934
3029
|
__name: "TopAccordionNavigator",
|
|
2935
3030
|
props: {
|
|
2936
3031
|
accordionId: {},
|
|
@@ -2966,7 +3061,7 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
2966
3061
|
async function E(e) {
|
|
2967
3062
|
if (e.disabled) return;
|
|
2968
3063
|
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(
|
|
3064
|
+
let t = document.getElementById(br(s.accordionId, e.value));
|
|
2970
3065
|
t && window.scrollTo({
|
|
2971
3066
|
top: t.getBoundingClientRect().top + window.scrollY - s.scrollOffset,
|
|
2972
3067
|
behavior: "smooth"
|
|
@@ -3005,7 +3100,7 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
3005
3100
|
ref_key: "containerRef",
|
|
3006
3101
|
ref: l,
|
|
3007
3102
|
class: "top-accordion-navigator__scroll-area"
|
|
3008
|
-
}, [o("div",
|
|
3103
|
+
}, [o("div", Pr, [(b(!0), a(e, null, C(t.sections, (n, r) => (b(), a(e, { key: n.value }, [o("button", {
|
|
3009
3104
|
class: h(["top-accordion-navigator__item", {
|
|
3010
3105
|
"top-accordion-navigator__item--open": x(n.value),
|
|
3011
3106
|
"top-accordion-navigator__item--disabled": n.disabled
|
|
@@ -3014,20 +3109,20 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
3014
3109
|
type: "button",
|
|
3015
3110
|
"aria-current": x(n.value) ? "step" : void 0,
|
|
3016
3111
|
onClick: (e) => E(n)
|
|
3017
|
-
}, [o("span",
|
|
3112
|
+
}, [o("span", Ir, [n.disabled ? (b(), a("i", Lr)) : n.icon ? (b(), a("i", {
|
|
3018
3113
|
key: 1,
|
|
3019
3114
|
class: h(n.icon)
|
|
3020
|
-
}, null, 2)) : (b(), a("span",
|
|
3115
|
+
}, 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
3116
|
key: 0,
|
|
3022
3117
|
class: h(["top-accordion-navigator__connector", { "top-accordion-navigator__connector--open": x(n.value) && x(t.sections[r + 1].value) }]),
|
|
3023
3118
|
"aria-hidden": "true"
|
|
3024
3119
|
}, null, 2)) : i("", !0)], 64))), 128))])], 512)
|
|
3025
3120
|
], 6));
|
|
3026
3121
|
}
|
|
3027
|
-
}),
|
|
3122
|
+
}), Vr = { class: "top-toast__content" }, Hr = { class: "top-toast__detail" }, Ur = ["onClick"], Wr = {
|
|
3028
3123
|
key: 0,
|
|
3029
3124
|
class: "top-toast__footer"
|
|
3030
|
-
},
|
|
3125
|
+
}, Gr = /* @__PURE__ */ u({
|
|
3031
3126
|
__name: "TopToast",
|
|
3032
3127
|
props: { baseZIndex: { default: 3e4 } },
|
|
3033
3128
|
setup(e) {
|
|
@@ -3049,13 +3144,13 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
3049
3144
|
function d(e, t) {
|
|
3050
3145
|
return `top-toast__${t}--${e.severity ?? "info"}`;
|
|
3051
3146
|
}
|
|
3052
|
-
return (f, p) => (b(), r(O(
|
|
3147
|
+
return (f, p) => (b(), r(O(X), {
|
|
3053
3148
|
position: "top-right",
|
|
3054
3149
|
"base-z-index": e.baseZIndex
|
|
3055
3150
|
}, {
|
|
3056
|
-
message: j((e) => [o("div",
|
|
3151
|
+
message: j((e) => [o("div", Vr, [
|
|
3057
3152
|
o("div", { class: h(["top-toast__summary", d(e.message, "summary")]) }, D(e.message.summary), 3),
|
|
3058
|
-
o("div",
|
|
3153
|
+
o("div", Hr, D(e.message.detail), 1),
|
|
3059
3154
|
u(e.message) ? w(f.$slots, "action", {
|
|
3060
3155
|
action: n(e.message),
|
|
3061
3156
|
message: e.message,
|
|
@@ -3069,17 +3164,17 @@ var hr = Symbol("top-accordion-context"), gr = /* @__PURE__ */ u({
|
|
|
3069
3164
|
key: 0,
|
|
3070
3165
|
class: h(n(e.message)?.icon),
|
|
3071
3166
|
"aria-hidden": "true"
|
|
3072
|
-
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10,
|
|
3167
|
+
}, null, 2)) : i("", !0), c(" " + D(n(e.message)?.label), 1)], 10, Ur)) : i("", !0)], void 0, 0) : i("", !0),
|
|
3073
3168
|
l(e.message) ? w(f.$slots, "footer", {
|
|
3074
3169
|
message: e.message,
|
|
3075
3170
|
footer: t(e.message)
|
|
3076
|
-
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div",
|
|
3171
|
+
}, () => [t(e.message) === void 0 ? i("", !0) : (b(), a("div", Wr, D(t(e.message)), 1))], void 0, 1) : i("", !0)
|
|
3077
3172
|
])]),
|
|
3078
3173
|
_: 3
|
|
3079
3174
|
}, 8, ["base-z-index"]));
|
|
3080
3175
|
}
|
|
3081
3176
|
});
|
|
3082
3177
|
//#endregion
|
|
3083
|
-
export {
|
|
3178
|
+
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
3179
|
|
|
3085
|
-
//# sourceMappingURL=TopToast-
|
|
3180
|
+
//# sourceMappingURL=TopToast-NcOUE0L3.js.map
|