@wgalleti/primevue-components 0.27.1 → 0.28.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/crud/WCrudSubview.vue.d.ts +5 -0
- package/dist/components/crud/WEditableTable.vue.d.ts +21 -0
- package/dist/{components-IFeCNSdg.js → components-BZNvfFed.js} +542 -496
- package/dist/components-BZNvfFed.js.map +1 -0
- package/dist/components-jGABNYAb.cjs +25 -0
- package/dist/components-jGABNYAb.cjs.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/{composables-S1-B8Ncs.cjs → composables-DPnCytUq.cjs} +2 -2
- package/dist/{composables-S1-B8Ncs.cjs.map → composables-DPnCytUq.cjs.map} +1 -1
- package/dist/{composables-DrTx5qQQ.js → composables-LdwFk9Ri.js} +2 -2
- package/dist/{composables-DrTx5qQQ.js.map → composables-LdwFk9Ri.js.map} +1 -1
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.js +3 -3
- package/dist/primevue-components.css +1 -1
- package/dist/types/editableTable.d.ts +22 -0
- package/dist/types/index.d.ts +1 -1
- package/dist/{useFormKeyboardNav-BsKFhycF.cjs → useFormKeyboardNav-BDVRfk3k.cjs} +2 -2
- package/dist/{useFormKeyboardNav-BsKFhycF.cjs.map → useFormKeyboardNav-BDVRfk3k.cjs.map} +1 -1
- package/dist/{useFormKeyboardNav-Cv8b6Vh3.js → useFormKeyboardNav-DQW9gHzu.js} +12 -17
- package/dist/{useFormKeyboardNav-Cv8b6Vh3.js.map → useFormKeyboardNav-DQW9gHzu.js.map} +1 -1
- package/package.json +1 -1
- package/dist/components-IFeCNSdg.js.map +0 -1
- package/dist/components-olkx_5ZP.cjs +0 -25
- package/dist/components-olkx_5ZP.cjs.map +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e, a as t, f as n, l as r, n as i, o as a, r as o, t as s } from "./useFormKeyboardNav-
|
|
1
|
+
import { _ as e, a as t, f as n, l as r, n as i, o as a, r as o, t as s } from "./useFormKeyboardNav-DQW9gHzu.js";
|
|
2
2
|
import { a as c, n as l, t as u } from "./routeTabs-D6m8PuP6.js";
|
|
3
3
|
import { Fragment as d, computed as f, createBlock as p, createCommentVNode as m, createElementBlock as h, createElementVNode as g, createSlots as _, createStaticVNode as v, createTextVNode as y, createVNode as b, defineComponent as x, guardReactiveProps as S, h as C, inject as w, isRef as T, mergeModels as E, mergeProps as D, nextTick as O, normalizeClass as k, normalizeProps as A, normalizeStyle as j, onBeforeUnmount as ee, onMounted as te, onScopeDispose as ne, openBlock as M, provide as N, reactive as re, readonly as ie, ref as P, renderList as F, renderSlot as I, resolveDirective as ae, shallowRef as oe, toDisplayString as L, toRef as se, unref as R, useModel as ce, useSlots as le, vModelText as ue, vShow as z, watch as B, withCtx as V, withDirectives as H, withKeys as U, withModifiers as W } from "vue";
|
|
4
4
|
import de from "primevue/datatable";
|
|
@@ -735,6 +735,7 @@ var yt = { class: "w-fk-option" }, bt = { class: "w-fk-option__label" }, xt = {
|
|
|
735
735
|
loading: k.value,
|
|
736
736
|
"show-clear": !1,
|
|
737
737
|
fluid: "",
|
|
738
|
+
"auto-option-focus": "",
|
|
738
739
|
onComplete: Ee,
|
|
739
740
|
onItemSelect: De,
|
|
740
741
|
"onUpdate:modelValue": Oe,
|
|
@@ -2292,7 +2293,7 @@ var cn = { class: "w-crud-form" }, ln = {
|
|
|
2292
2293
|
ref: o,
|
|
2293
2294
|
class: "w-crud-form",
|
|
2294
2295
|
onSubmit: W(c, ["prevent"]),
|
|
2295
|
-
|
|
2296
|
+
onKeydownCapture: r[2] ||= (...e) => R(d) && R(d)(...e)
|
|
2296
2297
|
}, [
|
|
2297
2298
|
b(Nn, {
|
|
2298
2299
|
ref_key: "rendererRef",
|
|
@@ -3319,46 +3320,63 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3319
3320
|
]);
|
|
3320
3321
|
};
|
|
3321
3322
|
}
|
|
3322
|
-
}), Cr = {
|
|
3323
|
+
}), Cr = {
|
|
3323
3324
|
key: 0,
|
|
3324
3325
|
class: "w-editable-table__toolbar"
|
|
3325
|
-
},
|
|
3326
|
+
}, wr = ["disabled"], Tr = ["role"], Er = {
|
|
3326
3327
|
key: 0,
|
|
3327
3328
|
class: "w-editable-table__group-row"
|
|
3328
|
-
},
|
|
3329
|
+
}, Dr = {
|
|
3329
3330
|
key: 0,
|
|
3330
3331
|
class: "w-editable-table__toggle-col"
|
|
3331
|
-
},
|
|
3332
|
+
}, Or = ["colspan"], kr = {
|
|
3332
3333
|
key: 1,
|
|
3333
3334
|
class: "w-editable-table__action-col"
|
|
3334
|
-
},
|
|
3335
|
+
}, Ar = {
|
|
3335
3336
|
key: 0,
|
|
3336
3337
|
class: "w-editable-table__toggle-col"
|
|
3337
|
-
},
|
|
3338
|
+
}, jr = {
|
|
3338
3339
|
key: 1,
|
|
3339
3340
|
class: "w-editable-table__action-col"
|
|
3340
|
-
},
|
|
3341
|
+
}, Mr = { key: 0 }, Nr = ["colspan"], Pr = {
|
|
3341
3342
|
key: 0,
|
|
3342
|
-
class: "w-editable-table__toggle-col"
|
|
3343
|
-
|
|
3343
|
+
class: "w-editable-table__toggle-col",
|
|
3344
|
+
"data-card": "expander"
|
|
3345
|
+
}, Fr = [
|
|
3346
|
+
"aria-expanded",
|
|
3347
|
+
"aria-label",
|
|
3348
|
+
"onClick"
|
|
3349
|
+
], Ir = {
|
|
3350
|
+
key: 0,
|
|
3351
|
+
class: "w-editable-table__toggle-label"
|
|
3352
|
+
}, Lr = ["data-card"], Rr = {
|
|
3353
|
+
key: 0,
|
|
3354
|
+
class: "w-editable-table__card-label"
|
|
3355
|
+
}, zr = {
|
|
3344
3356
|
key: 3,
|
|
3345
3357
|
class: "w-editable-table__text"
|
|
3346
|
-
},
|
|
3358
|
+
}, Br = {
|
|
3347
3359
|
key: 1,
|
|
3348
|
-
class: "w-editable-table__action-col"
|
|
3349
|
-
|
|
3360
|
+
class: "w-editable-table__action-col",
|
|
3361
|
+
"data-card": "actions"
|
|
3362
|
+
}, Vr = ["onClick"], Hr = {
|
|
3350
3363
|
key: 0,
|
|
3351
3364
|
class: "w-editable-table__expansion"
|
|
3352
|
-
},
|
|
3365
|
+
}, Ur = ["colspan"], Wr = { key: 1 }, Gr = { class: "w-editable-table__footer" }, Kr = {
|
|
3353
3366
|
key: 0,
|
|
3354
|
-
class: "w-editable-table__toggle-col"
|
|
3355
|
-
|
|
3367
|
+
class: "w-editable-table__toggle-col",
|
|
3368
|
+
"data-card": "hidden"
|
|
3369
|
+
}, qr = ["data-card"], Jr = {
|
|
3370
|
+
key: 0,
|
|
3371
|
+
class: "w-editable-table__card-label"
|
|
3372
|
+
}, Yr = {
|
|
3356
3373
|
key: 0,
|
|
3357
3374
|
class: "w-editable-table__footer-label"
|
|
3358
|
-
},
|
|
3375
|
+
}, Xr = { key: 1 }, Zr = {
|
|
3359
3376
|
key: 1,
|
|
3360
|
-
class: "w-editable-table__action-col"
|
|
3361
|
-
|
|
3377
|
+
class: "w-editable-table__action-col",
|
|
3378
|
+
"data-card": "hidden"
|
|
3379
|
+
}, Qr = /* @__PURE__ */ x({
|
|
3362
3380
|
__name: "WEditableTable",
|
|
3363
3381
|
props: {
|
|
3364
3382
|
modelValue: { default: () => [] },
|
|
@@ -3378,42 +3396,51 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3378
3396
|
type: Boolean,
|
|
3379
3397
|
default: !1
|
|
3380
3398
|
},
|
|
3381
|
-
rowKey: {}
|
|
3399
|
+
rowKey: {},
|
|
3400
|
+
cardMode: { default: "auto" },
|
|
3401
|
+
expansionLabel: { default: "Detalhes" }
|
|
3382
3402
|
},
|
|
3383
3403
|
emits: [
|
|
3384
3404
|
"update:modelValue",
|
|
3385
3405
|
"add",
|
|
3386
3406
|
"remove"
|
|
3387
3407
|
],
|
|
3388
|
-
setup(
|
|
3389
|
-
let
|
|
3390
|
-
function
|
|
3391
|
-
return
|
|
3408
|
+
setup(t, { emit: r }) {
|
|
3409
|
+
let i = t, a = r, { formatNumber: o } = n(), { isRetrato: s } = e(), c = f(() => i.cardMode === "always" || i.cardMode !== "never" && s.value), l = f(() => i.columns.find((e) => e.card === "title")?.field ?? i.columns[0]?.field);
|
|
3410
|
+
function u(e) {
|
|
3411
|
+
return e.card ? e.card : e.field === l.value ? "title" : "field";
|
|
3392
3412
|
}
|
|
3393
|
-
function
|
|
3394
|
-
|
|
3395
|
-
t.has(e) ? t.delete(e) : t.add(e), o.value = t;
|
|
3413
|
+
function _(e) {
|
|
3414
|
+
return e.group ? `${e.group} · ${e.header}` : e.header;
|
|
3396
3415
|
}
|
|
3397
|
-
|
|
3416
|
+
let v = P(/* @__PURE__ */ new Set());
|
|
3417
|
+
function b(e) {
|
|
3418
|
+
return v.value.has(e);
|
|
3419
|
+
}
|
|
3420
|
+
function x(e) {
|
|
3421
|
+
let t = new Set(v.value);
|
|
3422
|
+
t.has(e) ? t.delete(e) : t.add(e), v.value = t;
|
|
3423
|
+
}
|
|
3424
|
+
function S(e) {
|
|
3398
3425
|
let t = e.options;
|
|
3399
3426
|
return t ? T(t) ? t.value : t : [];
|
|
3400
3427
|
}
|
|
3401
|
-
function
|
|
3428
|
+
function C(e) {
|
|
3402
3429
|
return e.align ? e.align : e.editor === "number" ? "right" : "left";
|
|
3403
3430
|
}
|
|
3404
|
-
function
|
|
3431
|
+
function w(e) {
|
|
3405
3432
|
return e.editor === "number" || e.footer === "sum" || e.decimals != null;
|
|
3406
3433
|
}
|
|
3407
|
-
function
|
|
3408
|
-
return [`w-editable-table__cell--${
|
|
3434
|
+
function E(e) {
|
|
3435
|
+
return [`w-editable-table__cell--${C(e)}`, ...w(e) ? ["w-editable-table__cell--num"] : []];
|
|
3409
3436
|
}
|
|
3410
|
-
function
|
|
3411
|
-
if (e.width
|
|
3437
|
+
function D(e) {
|
|
3438
|
+
if (!(c.value || e.width == null)) return { width: typeof e.width == "number" ? `${e.width}px` : e.width };
|
|
3412
3439
|
}
|
|
3413
|
-
function
|
|
3414
|
-
return
|
|
3440
|
+
function O(e, t, n) {
|
|
3441
|
+
return i.disabled ? !0 : typeof e.disabled == "function" ? e.disabled(t, n) : !!e.disabled;
|
|
3415
3442
|
}
|
|
3416
|
-
function
|
|
3443
|
+
function A(e) {
|
|
3417
3444
|
if (typeof e == "number") return Number.isFinite(e) ? e : 0;
|
|
3418
3445
|
if (typeof e == "string" && e.trim()) {
|
|
3419
3446
|
let t = Number(e.replace(/\./g, "").replace(",", "."));
|
|
@@ -3421,37 +3448,40 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3421
3448
|
}
|
|
3422
3449
|
return 0;
|
|
3423
3450
|
}
|
|
3424
|
-
function
|
|
3451
|
+
function ee(e, t) {
|
|
3425
3452
|
let n = t[e.field];
|
|
3426
|
-
return e.format ? e.format(n, t) : n == null || n === "" ? "—" :
|
|
3453
|
+
return e.format ? e.format(n, t) : n == null || n === "" ? "—" : w(e) ? `${o(A(n), e.decimals ?? 2)}${e.suffix ?? ""}` : `${String(n)}${e.suffix ?? ""}`;
|
|
3427
3454
|
}
|
|
3428
|
-
function
|
|
3429
|
-
let
|
|
3455
|
+
function te(e, t, n) {
|
|
3456
|
+
let r = i.modelValue.map((r, i) => i === e ? {
|
|
3430
3457
|
...r,
|
|
3431
3458
|
[t]: n
|
|
3432
3459
|
} : r);
|
|
3433
|
-
|
|
3460
|
+
a("update:modelValue", r);
|
|
3434
3461
|
}
|
|
3435
|
-
function
|
|
3436
|
-
|
|
3462
|
+
function ne(e, t) {
|
|
3463
|
+
a("update:modelValue", i.modelValue.filter((e, n) => n !== t)), v.value = /* @__PURE__ */ new Set(), a("remove", e, t);
|
|
3437
3464
|
}
|
|
3438
|
-
function
|
|
3439
|
-
if (
|
|
3440
|
-
let t = e[
|
|
3465
|
+
function N(e, t) {
|
|
3466
|
+
if (i.rowKey) {
|
|
3467
|
+
let t = e[i.rowKey];
|
|
3441
3468
|
if (typeof t == "string" || typeof t == "number") return t;
|
|
3442
3469
|
}
|
|
3443
3470
|
return t;
|
|
3444
3471
|
}
|
|
3445
|
-
let
|
|
3446
|
-
function
|
|
3447
|
-
if (typeof e.footer == "function") return e.footer(
|
|
3472
|
+
let re = f(() => i.columns.some((e) => typeof e.footer == "function" || e.footer === "sum"));
|
|
3473
|
+
function ie(e) {
|
|
3474
|
+
if (typeof e.footer == "function") return e.footer(i.modelValue);
|
|
3448
3475
|
if (e.footer !== "sum") return "";
|
|
3449
|
-
let t =
|
|
3450
|
-
return `${
|
|
3476
|
+
let t = i.modelValue.reduce((t, n) => t + A(n[e.field]), 0);
|
|
3477
|
+
return `${o(t, e.decimals ?? 2)}${e.suffix ?? ""}`;
|
|
3478
|
+
}
|
|
3479
|
+
function ae(e) {
|
|
3480
|
+
return typeof e.footer == "function" || e.footer === "sum";
|
|
3451
3481
|
}
|
|
3452
|
-
let
|
|
3482
|
+
let oe = f(() => i.columns.find((e) => !e.footer || e.footer === "none")?.field ?? null), se = f(() => i.columns.length + +!!i.expandable + +!!i.removable), ce = f(() => i.columns.some((e) => e.group)), le = f(() => {
|
|
3453
3483
|
let e = [];
|
|
3454
|
-
for (let t of
|
|
3484
|
+
for (let t of i.columns) {
|
|
3455
3485
|
let n = t.group ?? "", r = e[e.length - 1];
|
|
3456
3486
|
r && n && r.label === n ? r.span += 1 : e.push({
|
|
3457
3487
|
label: n,
|
|
@@ -3461,65 +3491,70 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3461
3491
|
}
|
|
3462
3492
|
return e;
|
|
3463
3493
|
});
|
|
3464
|
-
return (
|
|
3494
|
+
return (e, n) => (M(), h("div", { class: k(["w-editable-table", { "w-editable-table--cards": c.value }]) }, [e.$slots.toolbar || e.$slots["toolbar-extra"] || t.addLabel ? (M(), h("div", Cr, [I(e.$slots, "toolbar", {}, () => [t.addLabel ? (M(), h("button", {
|
|
3465
3495
|
key: 0,
|
|
3466
3496
|
type: "button",
|
|
3467
3497
|
class: "w-editable-table__add",
|
|
3468
|
-
disabled:
|
|
3469
|
-
onClick: n[0] ||= (e) =>
|
|
3470
|
-
}, [n[1] ||= g("i", { class: "pi pi-plus" }, null, -1), y(L(
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3498
|
+
disabled: t.disabled,
|
|
3499
|
+
onClick: n[0] ||= (e) => a("add")
|
|
3500
|
+
}, [n[1] ||= g("i", { class: "pi pi-plus" }, null, -1), y(L(t.addLabel), 1)], 8, wr)) : m("", !0)]), I(e.$slots, "toolbar-extra")])) : m("", !0), g("table", {
|
|
3501
|
+
class: "w-editable-table__table",
|
|
3502
|
+
role: c.value ? "presentation" : void 0
|
|
3503
|
+
}, [
|
|
3504
|
+
g("thead", null, [ce.value ? (M(), h("tr", Er, [
|
|
3505
|
+
t.expandable ? (M(), h("th", Dr)) : m("", !0),
|
|
3506
|
+
(M(!0), h(d, null, F(le.value, (e) => (M(), h("th", {
|
|
3474
3507
|
key: e.key,
|
|
3475
3508
|
colspan: e.span,
|
|
3476
3509
|
class: k(["w-editable-table__group", { "w-editable-table__group--label": e.label }])
|
|
3477
|
-
}, L(e.label), 11,
|
|
3478
|
-
|
|
3510
|
+
}, L(e.label), 11, Or))), 128)),
|
|
3511
|
+
t.removable ? (M(), h("th", kr)) : m("", !0)
|
|
3479
3512
|
])) : m("", !0), g("tr", null, [
|
|
3480
|
-
|
|
3481
|
-
(M(!0), h(d, null, F(
|
|
3513
|
+
t.expandable ? (M(), h("th", Ar)) : m("", !0),
|
|
3514
|
+
(M(!0), h(d, null, F(t.columns, (e) => (M(), h("th", {
|
|
3482
3515
|
key: e.field,
|
|
3483
|
-
class: k(
|
|
3484
|
-
style: j(
|
|
3516
|
+
class: k(E(e)),
|
|
3517
|
+
style: j(D(e))
|
|
3485
3518
|
}, L(e.header), 7))), 128)),
|
|
3486
|
-
|
|
3519
|
+
t.removable ? (M(), h("th", jr)) : m("", !0)
|
|
3487
3520
|
])]),
|
|
3488
|
-
|
|
3489
|
-
colspan:
|
|
3490
|
-
class: "w-editable-table__empty"
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3521
|
+
t.modelValue.length ? m("", !0) : (M(), h("tbody", Mr, [g("tr", null, [g("td", {
|
|
3522
|
+
colspan: se.value,
|
|
3523
|
+
class: "w-editable-table__empty",
|
|
3524
|
+
"data-card": "expansion"
|
|
3525
|
+
}, [I(e.$slots, "empty", {}, () => [y(L(t.emptyMessage), 1)])], 8, Nr)])])),
|
|
3526
|
+
(M(!0), h(d, null, F(t.modelValue, (r, i) => (M(), h("tbody", { key: N(r, i) }, [g("tr", { class: k(["w-editable-table__row", { "w-editable-table__row--alt": i % 2 == 1 }]) }, [
|
|
3527
|
+
t.expandable ? (M(), h("td", Pr, [g("button", {
|
|
3494
3528
|
type: "button",
|
|
3495
3529
|
class: "w-editable-table__toggle",
|
|
3496
|
-
"aria-expanded":
|
|
3497
|
-
"aria-label":
|
|
3498
|
-
onClick: (e) =>
|
|
3499
|
-
}, [g("i", { class: k(
|
|
3500
|
-
(M(!0), h(d, null, F(
|
|
3501
|
-
key:
|
|
3502
|
-
class: k(
|
|
3503
|
-
style: j(
|
|
3504
|
-
|
|
3530
|
+
"aria-expanded": b(i),
|
|
3531
|
+
"aria-label": t.expansionLabel,
|
|
3532
|
+
onClick: (e) => x(i)
|
|
3533
|
+
}, [g("i", { class: k(b(i) ? "pi pi-chevron-down" : "pi pi-chevron-right") }, null, 2), c.value ? (M(), h("span", Ir, L(t.expansionLabel), 1)) : m("", !0)], 8, Fr)])) : m("", !0),
|
|
3534
|
+
(M(!0), h(d, null, F(t.columns, (t) => (M(), h("td", {
|
|
3535
|
+
key: t.field,
|
|
3536
|
+
class: k(E(t)),
|
|
3537
|
+
style: j(D(t)),
|
|
3538
|
+
"data-card": u(t)
|
|
3539
|
+
}, [c.value ? (M(), h("span", Rr, L(_(t)), 1)) : m("", !0), I(e.$slots, `cell-${t.field}`, {
|
|
3505
3540
|
row: r,
|
|
3506
3541
|
index: i,
|
|
3507
|
-
value: r[
|
|
3508
|
-
column:
|
|
3509
|
-
}, () => [
|
|
3542
|
+
value: r[t.field],
|
|
3543
|
+
column: t
|
|
3544
|
+
}, () => [t.editor === "number" ? (M(), p(R(fe), {
|
|
3510
3545
|
key: 0,
|
|
3511
|
-
"model-value": r[
|
|
3546
|
+
"model-value": r[t.field],
|
|
3512
3547
|
fluid: "",
|
|
3513
3548
|
locale: "pt-BR",
|
|
3514
|
-
min:
|
|
3515
|
-
max:
|
|
3516
|
-
"min-fraction-digits":
|
|
3517
|
-
"max-fraction-digits":
|
|
3518
|
-
suffix:
|
|
3519
|
-
placeholder:
|
|
3520
|
-
disabled:
|
|
3549
|
+
min: t.min,
|
|
3550
|
+
max: t.max,
|
|
3551
|
+
"min-fraction-digits": t.decimals == null ? void 0 : t.decimals,
|
|
3552
|
+
"max-fraction-digits": t.decimals == null ? void 0 : t.decimals,
|
|
3553
|
+
suffix: t.suffix,
|
|
3554
|
+
placeholder: t.placeholder,
|
|
3555
|
+
disabled: O(t, r, i),
|
|
3521
3556
|
"input-class": "w-editable-table__num",
|
|
3522
|
-
"onUpdate:modelValue": (
|
|
3557
|
+
"onUpdate:modelValue": (e) => te(i, t.field, e)
|
|
3523
3558
|
}, null, 8, [
|
|
3524
3559
|
"model-value",
|
|
3525
3560
|
"min",
|
|
@@ -3530,28 +3565,28 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3530
3565
|
"placeholder",
|
|
3531
3566
|
"disabled",
|
|
3532
3567
|
"onUpdate:modelValue"
|
|
3533
|
-
])) :
|
|
3568
|
+
])) : t.editor === "text" ? (M(), p(R(q), {
|
|
3534
3569
|
key: 1,
|
|
3535
|
-
"model-value": r[
|
|
3570
|
+
"model-value": r[t.field],
|
|
3536
3571
|
fluid: "",
|
|
3537
|
-
placeholder:
|
|
3538
|
-
disabled:
|
|
3539
|
-
"onUpdate:modelValue": (
|
|
3572
|
+
placeholder: t.placeholder,
|
|
3573
|
+
disabled: O(t, r, i),
|
|
3574
|
+
"onUpdate:modelValue": (e) => te(i, t.field, e)
|
|
3540
3575
|
}, null, 8, [
|
|
3541
3576
|
"model-value",
|
|
3542
3577
|
"placeholder",
|
|
3543
3578
|
"disabled",
|
|
3544
3579
|
"onUpdate:modelValue"
|
|
3545
|
-
])) :
|
|
3580
|
+
])) : t.editor === "select" ? (M(), p(R(J), {
|
|
3546
3581
|
key: 2,
|
|
3547
|
-
"model-value": r[
|
|
3582
|
+
"model-value": r[t.field],
|
|
3548
3583
|
fluid: "",
|
|
3549
|
-
options:
|
|
3550
|
-
"option-label":
|
|
3551
|
-
"option-value":
|
|
3552
|
-
placeholder:
|
|
3553
|
-
disabled:
|
|
3554
|
-
"onUpdate:modelValue": (
|
|
3584
|
+
options: S(t),
|
|
3585
|
+
"option-label": t.optionLabel || "label",
|
|
3586
|
+
"option-value": t.optionValue || "value",
|
|
3587
|
+
placeholder: t.placeholder,
|
|
3588
|
+
disabled: O(t, r, i),
|
|
3589
|
+
"onUpdate:modelValue": (e) => te(i, t.field, e)
|
|
3555
3590
|
}, null, 8, [
|
|
3556
3591
|
"model-value",
|
|
3557
3592
|
"options",
|
|
@@ -3560,47 +3595,51 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3560
3595
|
"placeholder",
|
|
3561
3596
|
"disabled",
|
|
3562
3597
|
"onUpdate:modelValue"
|
|
3563
|
-
])) : (M(), h("span",
|
|
3564
|
-
|
|
3598
|
+
])) : (M(), h("span", zr, L(ee(t, r)), 1))])], 14, Lr))), 128)),
|
|
3599
|
+
t.removable ? (M(), h("td", Br, [g("button", {
|
|
3565
3600
|
type: "button",
|
|
3566
3601
|
class: "w-editable-table__remove",
|
|
3567
3602
|
"aria-label": "Remover linha",
|
|
3568
|
-
onClick: (e) =>
|
|
3569
|
-
}, [...n[2] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8,
|
|
3570
|
-
], 2),
|
|
3603
|
+
onClick: (e) => ne(r, i)
|
|
3604
|
+
}, [...n[2] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, Vr)])) : m("", !0)
|
|
3605
|
+
], 2), t.expandable && b(i) ? (M(), h("tr", Hr, [g("td", {
|
|
3606
|
+
colspan: se.value,
|
|
3607
|
+
"data-card": "expansion"
|
|
3608
|
+
}, [I(e.$slots, "expansion", {
|
|
3571
3609
|
row: r,
|
|
3572
3610
|
index: i
|
|
3573
|
-
})], 8,
|
|
3574
|
-
|
|
3575
|
-
|
|
3576
|
-
(M(!0), h(d, null, F(
|
|
3611
|
+
})], 8, Ur)])) : m("", !0)]))), 128)),
|
|
3612
|
+
re.value ? (M(), h("tfoot", Wr, [g("tr", Gr, [
|
|
3613
|
+
t.expandable ? (M(), h("td", Kr)) : m("", !0),
|
|
3614
|
+
(M(!0), h(d, null, F(t.columns, (n) => (M(), h("td", {
|
|
3577
3615
|
key: n.field,
|
|
3578
|
-
class: k(
|
|
3579
|
-
style: j(
|
|
3580
|
-
|
|
3581
|
-
|
|
3616
|
+
class: k(E(n)),
|
|
3617
|
+
style: j(D(n)),
|
|
3618
|
+
"data-card": n.field === oe.value ? "total-label" : ae(n) ? "read" : "hidden"
|
|
3619
|
+
}, [c.value && ae(n) ? (M(), h("span", Jr, L(_(n)), 1)) : m("", !0), I(e.$slots, `footer-${n.field}`, {
|
|
3620
|
+
rows: t.modelValue,
|
|
3582
3621
|
column: n
|
|
3583
|
-
}, () => [n.field ===
|
|
3584
|
-
|
|
3622
|
+
}, () => [n.field === oe.value ? (M(), h("span", Yr, L(t.footerLabel), 1)) : (M(), h("span", Xr, L(ie(n)), 1))])], 14, qr))), 128)),
|
|
3623
|
+
t.removable ? (M(), h("td", Zr)) : m("", !0)
|
|
3585
3624
|
])])) : m("", !0)
|
|
3586
|
-
])]));
|
|
3625
|
+
], 8, Tr)], 2));
|
|
3587
3626
|
}
|
|
3588
|
-
}),
|
|
3627
|
+
}), $r = { class: "w-crud-subview" }, ei = {
|
|
3589
3628
|
key: 0,
|
|
3590
3629
|
class: "w-crud-subview__header"
|
|
3591
|
-
},
|
|
3630
|
+
}, ti = { class: "w-crud-subview__heading" }, ni = {
|
|
3592
3631
|
key: 0,
|
|
3593
3632
|
class: "w-crud-subview__title"
|
|
3594
|
-
},
|
|
3633
|
+
}, ri = {
|
|
3595
3634
|
key: 0,
|
|
3596
3635
|
class: "w-crud-subview__count"
|
|
3597
|
-
},
|
|
3636
|
+
}, ii = {
|
|
3598
3637
|
key: 1,
|
|
3599
3638
|
class: "w-crud-subview__subtitle"
|
|
3600
|
-
},
|
|
3639
|
+
}, ai = {
|
|
3601
3640
|
key: 0,
|
|
3602
3641
|
class: "w-crud-subview__actions"
|
|
3603
|
-
},
|
|
3642
|
+
}, oi = { class: "w-crud-subview__row-actions" }, si = ["onClick"], ci = ["onClick"], li = "__acoes", ui = /* @__PURE__ */ x({
|
|
3604
3643
|
__name: "WCrudSubview",
|
|
3605
3644
|
props: {
|
|
3606
3645
|
crud: {},
|
|
@@ -3620,21 +3659,24 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3620
3659
|
dialogWidth: { default: "520px" },
|
|
3621
3660
|
formColumns: {},
|
|
3622
3661
|
footerLabel: {},
|
|
3623
|
-
rowKey: {}
|
|
3662
|
+
rowKey: {},
|
|
3663
|
+
cardMode: {},
|
|
3664
|
+
expansionLabel: {}
|
|
3624
3665
|
},
|
|
3625
3666
|
setup(e) {
|
|
3626
3667
|
let t = e, n = le(), r = f(() => t.crud.items.value), i = f(() => t.crud.config.canCreate !== !1 && !t.disabled), a = f(() => t.crud.config.canEdit !== !1 && !t.disabled), o = f(() => t.crud.config.canDelete !== !1 && !t.disabled), s = f(() => a.value || o.value), c = f(() => s.value ? [...t.columns, {
|
|
3627
|
-
field:
|
|
3668
|
+
field: li,
|
|
3628
3669
|
header: "",
|
|
3629
3670
|
width: "5rem",
|
|
3630
|
-
align: "right"
|
|
3631
|
-
|
|
3671
|
+
align: "right",
|
|
3672
|
+
card: "actions"
|
|
3673
|
+
}] : t.columns), l = f(() => Object.keys(n).filter((e) => e.startsWith("cell-") && e !== `cell-${li}`)), u = f(() => Object.keys(n).filter((e) => e.startsWith("field-") || e.startsWith("image-")));
|
|
3632
3674
|
function d(e) {
|
|
3633
3675
|
t.crud.config.onChange(e);
|
|
3634
3676
|
}
|
|
3635
|
-
return (t, n) => (M(), h("div",
|
|
3636
|
-
e.title || t.$slots["toolbar-actions"] ? (M(), h("div",
|
|
3637
|
-
b(
|
|
3677
|
+
return (t, n) => (M(), h("div", $r, [
|
|
3678
|
+
e.title || t.$slots["toolbar-actions"] ? (M(), h("div", ei, [g("div", ti, [e.title ? (M(), h("h3", ni, [y(L(e.title) + " ", 1), r.value.length ? (M(), h("span", ri, L(r.value.length), 1)) : m("", !0)])) : m("", !0), e.subtitle ? (M(), h("p", ii, L(e.subtitle), 1)) : m("", !0)]), t.$slots["toolbar-actions"] ? (M(), h("div", ai, [I(t.$slots, "toolbar-actions")])) : m("", !0)])) : m("", !0),
|
|
3679
|
+
b(Qr, {
|
|
3638
3680
|
"model-value": r.value,
|
|
3639
3681
|
columns: c.value,
|
|
3640
3682
|
expandable: e.expandable,
|
|
@@ -3643,22 +3685,24 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3643
3685
|
"empty-message": e.emptyMessage ?? e.crud.labels.emptyMessage,
|
|
3644
3686
|
"footer-label": e.footerLabel,
|
|
3645
3687
|
"row-key": e.rowKey,
|
|
3688
|
+
"card-mode": e.cardMode,
|
|
3689
|
+
"expansion-label": e.expansionLabel,
|
|
3646
3690
|
"onUpdate:modelValue": d,
|
|
3647
3691
|
onAdd: n[0] ||= (t) => e.crud.openCreateDialog()
|
|
3648
3692
|
}, _({
|
|
3649
|
-
[`cell-${
|
|
3693
|
+
[`cell-${li}`]: V(({ row: t, index: r }) => [g("div", oi, [a.value ? (M(), h("button", {
|
|
3650
3694
|
key: 0,
|
|
3651
3695
|
type: "button",
|
|
3652
3696
|
class: "w-crud-subview__action",
|
|
3653
3697
|
"aria-label": "Editar",
|
|
3654
3698
|
onClick: (n) => e.crud.openEditDialog(t, r)
|
|
3655
|
-
}, [...n[3] ||= [g("i", { class: "pi pi-pencil" }, null, -1)]], 8,
|
|
3699
|
+
}, [...n[3] ||= [g("i", { class: "pi pi-pencil" }, null, -1)]], 8, si)) : m("", !0), o.value ? (M(), h("button", {
|
|
3656
3700
|
key: 1,
|
|
3657
3701
|
type: "button",
|
|
3658
3702
|
class: "w-crud-subview__action w-crud-subview__action--danger",
|
|
3659
3703
|
"aria-label": "Excluir",
|
|
3660
3704
|
onClick: (n) => e.crud.confirmDelete(t, r)
|
|
3661
|
-
}, [...n[4] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8,
|
|
3705
|
+
}, [...n[4] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, ci)) : m("", !0)])]),
|
|
3662
3706
|
_: 2
|
|
3663
3707
|
}, [
|
|
3664
3708
|
t.$slots["toolbar-extra"] ? {
|
|
@@ -3688,7 +3732,9 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3688
3732
|
"add-label",
|
|
3689
3733
|
"empty-message",
|
|
3690
3734
|
"footer-label",
|
|
3691
|
-
"row-key"
|
|
3735
|
+
"row-key",
|
|
3736
|
+
"card-mode",
|
|
3737
|
+
"expansion-label"
|
|
3692
3738
|
]),
|
|
3693
3739
|
b(Fn, {
|
|
3694
3740
|
visible: e.crud.dialogVisible.value,
|
|
@@ -3732,7 +3778,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3732
3778
|
])
|
|
3733
3779
|
]));
|
|
3734
3780
|
}
|
|
3735
|
-
}),
|
|
3781
|
+
}), di = /* @__PURE__ */ x({
|
|
3736
3782
|
__name: "WDateRange",
|
|
3737
3783
|
props: {
|
|
3738
3784
|
modelValue: { default: null },
|
|
@@ -3774,14 +3820,14 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3774
3820
|
"disabled"
|
|
3775
3821
|
]));
|
|
3776
3822
|
}
|
|
3777
|
-
}),
|
|
3823
|
+
}), fi = {
|
|
3778
3824
|
class: "w-fileupload",
|
|
3779
3825
|
style: {
|
|
3780
3826
|
display: "flex",
|
|
3781
3827
|
"flex-direction": "column",
|
|
3782
3828
|
gap: "0.5rem"
|
|
3783
3829
|
}
|
|
3784
|
-
},
|
|
3830
|
+
}, pi = ["accept", "multiple"], mi = {
|
|
3785
3831
|
key: 0,
|
|
3786
3832
|
style: {
|
|
3787
3833
|
"list-style": "none",
|
|
@@ -3791,12 +3837,12 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3791
3837
|
"flex-direction": "column",
|
|
3792
3838
|
gap: "0.35rem"
|
|
3793
3839
|
}
|
|
3794
|
-
},
|
|
3840
|
+
}, hi = { style: {
|
|
3795
3841
|
flex: "1",
|
|
3796
3842
|
overflow: "hidden",
|
|
3797
3843
|
"text-overflow": "ellipsis",
|
|
3798
3844
|
"white-space": "nowrap"
|
|
3799
|
-
} },
|
|
3845
|
+
} }, gi = { style: { opacity: "0.6" } }, _i = /* @__PURE__ */ x({
|
|
3800
3846
|
__name: "WFileUpload",
|
|
3801
3847
|
props: {
|
|
3802
3848
|
modelValue: { default: null },
|
|
@@ -3845,7 +3891,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3845
3891
|
function l(e) {
|
|
3846
3892
|
return e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(0)} KB` : `${(e / 1048576).toFixed(1)} MB`;
|
|
3847
3893
|
}
|
|
3848
|
-
return (t, n) => (M(), h("div",
|
|
3894
|
+
return (t, n) => (M(), h("div", fi, [
|
|
3849
3895
|
g("div", null, [b(R(K), {
|
|
3850
3896
|
type: "button",
|
|
3851
3897
|
label: e.chooseLabel,
|
|
@@ -3863,8 +3909,8 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3863
3909
|
multiple: e.multiple,
|
|
3864
3910
|
style: { display: "none" },
|
|
3865
3911
|
onChange: s
|
|
3866
|
-
}, null, 40,
|
|
3867
|
-
a.value.length ? (M(), h("ul",
|
|
3912
|
+
}, null, 40, pi),
|
|
3913
|
+
a.value.length ? (M(), h("ul", mi, [(M(!0), h(d, null, F(a.value, (t, r) => (M(), h("li", {
|
|
3868
3914
|
key: `${t.name}-${r}`,
|
|
3869
3915
|
style: {
|
|
3870
3916
|
display: "flex",
|
|
@@ -3877,8 +3923,8 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3877
3923
|
class: "pi pi-file",
|
|
3878
3924
|
style: { opacity: "0.6" }
|
|
3879
3925
|
}, null, -1),
|
|
3880
|
-
g("span",
|
|
3881
|
-
g("span",
|
|
3926
|
+
g("span", hi, L(t.name), 1),
|
|
3927
|
+
g("span", gi, L(l(t.size)), 1),
|
|
3882
3928
|
b(R(K), {
|
|
3883
3929
|
type: "button",
|
|
3884
3930
|
icon: "pi pi-times",
|
|
@@ -3896,10 +3942,10 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3896
3942
|
]));
|
|
3897
3943
|
}
|
|
3898
3944
|
});
|
|
3899
|
-
function
|
|
3945
|
+
function vi(e) {
|
|
3900
3946
|
return String(e ?? "").normalize("NFD").replace(/\p{Diacritic}/gu, "").toLocaleLowerCase();
|
|
3901
3947
|
}
|
|
3902
|
-
function
|
|
3948
|
+
function yi(e, { optionValue: t = "id", optionLabel: n = "nome", groupBy: r, groupLabel: i } = {}) {
|
|
3903
3949
|
let a = [], o = /* @__PURE__ */ new Map();
|
|
3904
3950
|
for (let s of e ?? []) {
|
|
3905
3951
|
let e = s[t];
|
|
@@ -3925,19 +3971,19 @@ function hi(e, { optionValue: t = "id", optionLabel: n = "nome", groupBy: r, gro
|
|
|
3925
3971
|
}
|
|
3926
3972
|
return a;
|
|
3927
3973
|
}
|
|
3928
|
-
function
|
|
3929
|
-
return e.children?.length ? e.children.flatMap(
|
|
3974
|
+
function bi(e) {
|
|
3975
|
+
return e.children?.length ? e.children.flatMap(bi) : e.value === void 0 ? [] : [e.value];
|
|
3930
3976
|
}
|
|
3931
|
-
function
|
|
3932
|
-
return e.flatMap(
|
|
3977
|
+
function xi(e) {
|
|
3978
|
+
return e.flatMap(bi);
|
|
3933
3979
|
}
|
|
3934
|
-
function
|
|
3980
|
+
function Si(e) {
|
|
3935
3981
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
3936
3982
|
t.set(e.key, e), e.children?.forEach(n);
|
|
3937
3983
|
};
|
|
3938
3984
|
return e.forEach(n), t;
|
|
3939
3985
|
}
|
|
3940
|
-
function
|
|
3986
|
+
function Ci(e, t) {
|
|
3941
3987
|
let n = new Set(t ?? []), r = {}, i = (e) => {
|
|
3942
3988
|
if (!e.children?.length) {
|
|
3943
3989
|
let t = e.value !== void 0 && n.has(e.value);
|
|
@@ -3967,10 +4013,10 @@ function yi(e, t) {
|
|
|
3967
4013
|
};
|
|
3968
4014
|
return e.forEach(i), r;
|
|
3969
4015
|
}
|
|
3970
|
-
function
|
|
3971
|
-
let r =
|
|
4016
|
+
function wi(e, t, n = []) {
|
|
4017
|
+
let r = vi(t).trim();
|
|
3972
4018
|
if (!r) return [...e];
|
|
3973
|
-
let i = (e) =>
|
|
4019
|
+
let i = (e) => vi(e.label).includes(r) ? !0 : n.some((t) => vi(e.data?.[t]).includes(r)), a = [];
|
|
3974
4020
|
for (let r of e) {
|
|
3975
4021
|
if (!r.children?.length) {
|
|
3976
4022
|
i(r) && a.push(r);
|
|
@@ -3980,7 +4026,7 @@ function bi(e, t, n = []) {
|
|
|
3980
4026
|
a.push(r);
|
|
3981
4027
|
continue;
|
|
3982
4028
|
}
|
|
3983
|
-
let e =
|
|
4029
|
+
let e = wi(r.children, t, n);
|
|
3984
4030
|
e.length && a.push({
|
|
3985
4031
|
...r,
|
|
3986
4032
|
children: e
|
|
@@ -3988,7 +4034,7 @@ function bi(e, t, n = []) {
|
|
|
3988
4034
|
}
|
|
3989
4035
|
return a;
|
|
3990
4036
|
}
|
|
3991
|
-
function
|
|
4037
|
+
function Ti(e, t, n) {
|
|
3992
4038
|
let r = new Set(t);
|
|
3993
4039
|
if (!n) return (e ?? []).filter((e) => !r.has(e));
|
|
3994
4040
|
let i = [...e ?? []], a = new Set(i);
|
|
@@ -3997,19 +4043,19 @@ function xi(e, t, n) {
|
|
|
3997
4043
|
}
|
|
3998
4044
|
//#endregion
|
|
3999
4045
|
//#region src/components/form/WTreeSelect.vue?vue&type=script&setup=true&lang.ts
|
|
4000
|
-
var
|
|
4046
|
+
var Ei = {
|
|
4001
4047
|
key: 0,
|
|
4002
4048
|
class: "w-tree-select__head"
|
|
4003
|
-
},
|
|
4049
|
+
}, Di = {
|
|
4004
4050
|
key: 0,
|
|
4005
4051
|
class: "w-tree-select__count"
|
|
4006
|
-
},
|
|
4052
|
+
}, Oi = { key: 1 }, ki = {
|
|
4007
4053
|
key: 2,
|
|
4008
4054
|
class: "w-tree-select__actions"
|
|
4009
|
-
},
|
|
4055
|
+
}, Ai = {
|
|
4010
4056
|
key: 2,
|
|
4011
4057
|
class: "w-tree-select__empty"
|
|
4012
|
-
},
|
|
4058
|
+
}, ji = /* @__PURE__ */ x({
|
|
4013
4059
|
__name: "WTreeSelect",
|
|
4014
4060
|
props: {
|
|
4015
4061
|
modelValue: { default: () => [] },
|
|
@@ -4050,13 +4096,13 @@ var Si = {
|
|
|
4050
4096
|
},
|
|
4051
4097
|
emits: ["update:modelValue"],
|
|
4052
4098
|
setup(e, { emit: t }) {
|
|
4053
|
-
let n = e, r = t, i = P(""), a = P({}), o = f(() =>
|
|
4099
|
+
let n = e, r = t, i = P(""), a = P({}), o = f(() => yi(n.options, {
|
|
4054
4100
|
optionValue: n.optionValue,
|
|
4055
4101
|
optionLabel: n.optionLabel,
|
|
4056
4102
|
groupBy: n.groupBy,
|
|
4057
4103
|
groupLabel: n.groupLabel
|
|
4058
|
-
})), s = f(() =>
|
|
4059
|
-
let e = new Set(
|
|
4104
|
+
})), s = f(() => Si(o.value)), c = f(() => n.filter && i.value.trim().length > 0), l = f(() => c.value ? wi(o.value, i.value, n.filterFields) : o.value), u = f(() => Ci(o.value, n.modelValue)), d = f(() => xi(o.value).length), g = f(() => {
|
|
4105
|
+
let e = new Set(xi(o.value));
|
|
4060
4106
|
return n.modelValue.filter((t) => e.has(t)).length;
|
|
4061
4107
|
}), _ = f(() => (n.showCount || n.showToggleAll) && (d.value > 0 || n.loading)), v = f(() => !n.loading && l.value.length === 0), x = f(() => c.value ? n.filterEmptyMessage : n.emptyMessage);
|
|
4062
4108
|
function S(e) {
|
|
@@ -4075,10 +4121,10 @@ var Si = {
|
|
|
4075
4121
|
function w(e, t) {
|
|
4076
4122
|
if (n.disabled) return;
|
|
4077
4123
|
let i = s.value.get(e.key);
|
|
4078
|
-
i && r("update:modelValue",
|
|
4124
|
+
i && r("update:modelValue", Ti(n.modelValue, bi(i), t));
|
|
4079
4125
|
}
|
|
4080
4126
|
function T() {
|
|
4081
|
-
n.disabled || r("update:modelValue",
|
|
4127
|
+
n.disabled || r("update:modelValue", xi(o.value));
|
|
4082
4128
|
}
|
|
4083
4129
|
function E() {
|
|
4084
4130
|
n.disabled || r("update:modelValue", []);
|
|
@@ -4087,7 +4133,7 @@ var Si = {
|
|
|
4087
4133
|
I(t.$slots, "header", {
|
|
4088
4134
|
selectedCount: g.value,
|
|
4089
4135
|
total: d.value
|
|
4090
|
-
}, () => [_.value ? (M(), h("div",
|
|
4136
|
+
}, () => [_.value ? (M(), h("div", Ei, [e.showCount ? (M(), h("span", Di, L(g.value) + " de " + L(d.value) + " selecionados ", 1)) : (M(), h("span", Oi)), e.showToggleAll ? (M(), h("div", ki, [b(R(K), {
|
|
4091
4137
|
type: "button",
|
|
4092
4138
|
label: "Marcar todos",
|
|
4093
4139
|
text: "",
|
|
@@ -4124,7 +4170,7 @@ var Si = {
|
|
|
4124
4170
|
])]),
|
|
4125
4171
|
_: 1
|
|
4126
4172
|
})) : m("", !0),
|
|
4127
|
-
v.value ? (M(), h("div",
|
|
4173
|
+
v.value ? (M(), h("div", Ai, [I(t.$slots, "empty", { filtering: c.value }, () => [y(L(x.value), 1)])])) : (M(), p(R(Ae), {
|
|
4128
4174
|
key: 1,
|
|
4129
4175
|
value: l.value,
|
|
4130
4176
|
"selection-mode": "checkbox",
|
|
@@ -4148,9 +4194,9 @@ var Si = {
|
|
|
4148
4194
|
]))
|
|
4149
4195
|
], 2));
|
|
4150
4196
|
}
|
|
4151
|
-
}),
|
|
4152
|
-
function
|
|
4153
|
-
return
|
|
4197
|
+
}), Mi = null;
|
|
4198
|
+
function Ni() {
|
|
4199
|
+
return Mi ||= Promise.all([
|
|
4154
4200
|
import("echarts/core"),
|
|
4155
4201
|
import("echarts/charts"),
|
|
4156
4202
|
import("echarts/components"),
|
|
@@ -4166,11 +4212,11 @@ function ki() {
|
|
|
4166
4212
|
n.TooltipComponent,
|
|
4167
4213
|
r.CanvasRenderer,
|
|
4168
4214
|
r.SVGRenderer
|
|
4169
|
-
]), e)).catch(() => (
|
|
4215
|
+
]), e)).catch(() => (Mi = null, null)), Mi;
|
|
4170
4216
|
}
|
|
4171
|
-
var
|
|
4172
|
-
function
|
|
4173
|
-
let e =
|
|
4217
|
+
var Pi = (e, t = "") => typeof window > "u" ? t : getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
|
|
4218
|
+
function Fi() {
|
|
4219
|
+
let e = Pi("--fg"), t = Pi("--fg-muted"), n = Pi("--border"), r = Pi("--surface"), i = Pi("--font-sans", "sans-serif"), a = {
|
|
4174
4220
|
axisLine: { lineStyle: { color: n } },
|
|
4175
4221
|
axisTick: { show: !1 },
|
|
4176
4222
|
axisLabel: { color: t },
|
|
@@ -4185,7 +4231,7 @@ function ji() {
|
|
|
4185
4231
|
4,
|
|
4186
4232
|
5,
|
|
4187
4233
|
6
|
|
4188
|
-
].map((e) =>
|
|
4234
|
+
].map((e) => Pi(`--viz-${e}`)),
|
|
4189
4235
|
backgroundColor: "transparent",
|
|
4190
4236
|
textStyle: {
|
|
4191
4237
|
color: e,
|
|
@@ -4235,7 +4281,7 @@ function ji() {
|
|
|
4235
4281
|
] } }
|
|
4236
4282
|
};
|
|
4237
4283
|
}
|
|
4238
|
-
function
|
|
4284
|
+
function Ii() {
|
|
4239
4285
|
let e = [
|
|
4240
4286
|
"#141a22",
|
|
4241
4287
|
"#5a6573",
|
|
@@ -4288,16 +4334,16 @@ function Mi() {
|
|
|
4288
4334
|
bar: { itemStyle: { borderRadius: 0 } }
|
|
4289
4335
|
};
|
|
4290
4336
|
}
|
|
4291
|
-
function
|
|
4337
|
+
function Li() {
|
|
4292
4338
|
return {
|
|
4293
4339
|
text: "",
|
|
4294
|
-
color:
|
|
4340
|
+
color: Pi("--primary"),
|
|
4295
4341
|
maskColor: "transparent",
|
|
4296
4342
|
spinnerRadius: 8,
|
|
4297
4343
|
lineWidth: 2
|
|
4298
4344
|
};
|
|
4299
4345
|
}
|
|
4300
|
-
function
|
|
4346
|
+
function Ri({ data: e, format: t = (e) => String(e), centerLabel: n = "", centerSub: r = "" }) {
|
|
4301
4347
|
return {
|
|
4302
4348
|
tooltip: {
|
|
4303
4349
|
trigger: "item",
|
|
@@ -4331,13 +4377,13 @@ function Pi({ data: e, format: t = (e) => String(e), centerLabel: n = "", center
|
|
|
4331
4377
|
}
|
|
4332
4378
|
//#endregion
|
|
4333
4379
|
//#region src/components/charts/WChart.vue?vue&type=script&setup=true&lang.ts
|
|
4334
|
-
var
|
|
4380
|
+
var zi = {
|
|
4335
4381
|
key: 0,
|
|
4336
4382
|
class: "w-chart__empty"
|
|
4337
|
-
},
|
|
4383
|
+
}, Bi = {
|
|
4338
4384
|
key: 1,
|
|
4339
4385
|
class: "w-chart__empty"
|
|
4340
|
-
},
|
|
4386
|
+
}, Vi = /*#__PURE__*/ Wt(/* @__PURE__ */ x({
|
|
4341
4387
|
__name: "WChart",
|
|
4342
4388
|
props: {
|
|
4343
4389
|
option: {},
|
|
@@ -4361,15 +4407,15 @@ var Fi = {
|
|
|
4361
4407
|
let t = e, n = P(null), r = oe(null), i = P(!1), a = null, o = null, s = () => {
|
|
4362
4408
|
r.value && r.value.setOption(t.option, !0);
|
|
4363
4409
|
}, c = () => {
|
|
4364
|
-
r.value && (t.loading ? r.value.showLoading("default",
|
|
4410
|
+
r.value && (t.loading ? r.value.showLoading("default", Li()) : r.value.hideLoading());
|
|
4365
4411
|
}, l = async () => {
|
|
4366
|
-
let e = await
|
|
4412
|
+
let e = await Ni();
|
|
4367
4413
|
if (n.value) {
|
|
4368
4414
|
if (!e) {
|
|
4369
4415
|
i.value = !0;
|
|
4370
4416
|
return;
|
|
4371
4417
|
}
|
|
4372
|
-
i.value = !1, r.value?.dispose(), r.value = e.init(n.value, t.print ?
|
|
4418
|
+
i.value = !1, r.value?.dispose(), r.value = e.init(n.value, t.print ? Ii() : Fi(), { renderer: t.print ? "svg" : t.renderer }), s(), c();
|
|
4373
4419
|
}
|
|
4374
4420
|
};
|
|
4375
4421
|
return B(() => t.option, s, { deep: !0 }), B(() => t.loading, c), B([() => t.print, () => t.renderer], () => void l()), te(() => {
|
|
@@ -4379,13 +4425,13 @@ var Fi = {
|
|
|
4379
4425
|
}), (t, r) => (M(), h("div", {
|
|
4380
4426
|
class: "w-chart",
|
|
4381
4427
|
style: j(e.height ? { "--w-chart-h": e.height } : void 0)
|
|
4382
|
-
}, [e.empty && !e.loading ? (M(), h("div",
|
|
4428
|
+
}, [e.empty && !e.loading ? (M(), h("div", zi, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)], !0)])) : i.value ? (M(), h("div", Bi, [I(t.$slots, "unavailable", {}, () => [r[0] ||= y("Gráfico indisponível.", -1)], !0)])) : m("", !0), H(g("div", {
|
|
4383
4429
|
ref_key: "container",
|
|
4384
4430
|
ref: n,
|
|
4385
4431
|
class: "w-chart__canvas"
|
|
4386
4432
|
}, null, 512), [[z, !e.empty && !i.value]])], 4));
|
|
4387
4433
|
}
|
|
4388
|
-
}), [["__scopeId", "data-v-fe796670"]]),
|
|
4434
|
+
}), [["__scopeId", "data-v-fe796670"]]), Hi = /* @__PURE__ */ x({
|
|
4389
4435
|
__name: "WStatusTag",
|
|
4390
4436
|
props: {
|
|
4391
4437
|
value: {},
|
|
@@ -4506,10 +4552,10 @@ var Fi = {
|
|
|
4506
4552
|
severity: r.value.severity
|
|
4507
4553
|
}, null, 8, ["value", "severity"]));
|
|
4508
4554
|
}
|
|
4509
|
-
}),
|
|
4555
|
+
}), Ui = { class: "w-page-header" }, Wi = { class: "w-page-header-content" }, Gi = { class: "w-page-header-title" }, Ki = {
|
|
4510
4556
|
key: 0,
|
|
4511
4557
|
class: "w-page-header-subtitle"
|
|
4512
|
-
},
|
|
4558
|
+
}, qi = { class: "w-page-header-actions" }, Ji = /* @__PURE__ */ x({
|
|
4513
4559
|
__name: "WPageHeader",
|
|
4514
4560
|
props: {
|
|
4515
4561
|
title: {},
|
|
@@ -4520,17 +4566,17 @@ var Fi = {
|
|
|
4520
4566
|
emits: ["action"],
|
|
4521
4567
|
setup(e, { emit: t }) {
|
|
4522
4568
|
let n = t;
|
|
4523
|
-
return (t, r) => (M(), h("div",
|
|
4569
|
+
return (t, r) => (M(), h("div", Ui, [g("div", Wi, [g("h2", Gi, L(e.title), 1), e.subtitle ? (M(), h("p", Ki, L(e.subtitle), 1)) : m("", !0)]), g("div", qi, [I(t.$slots, "actions"), e.actionLabel ? (M(), p(R(K), {
|
|
4524
4570
|
key: 0,
|
|
4525
4571
|
label: e.actionLabel,
|
|
4526
4572
|
icon: e.actionIcon,
|
|
4527
4573
|
onClick: r[0] ||= (e) => n("action")
|
|
4528
4574
|
}, null, 8, ["label", "icon"])) : m("", !0)])]));
|
|
4529
4575
|
}
|
|
4530
|
-
}),
|
|
4576
|
+
}), Yi = { class: "w-empty-state" }, Xi = { class: "w-empty-state-icon" }, Zi = { class: "w-empty-state-title" }, Qi = {
|
|
4531
4577
|
key: 0,
|
|
4532
4578
|
class: "w-empty-state-description"
|
|
4533
|
-
},
|
|
4579
|
+
}, $i = /* @__PURE__ */ x({
|
|
4534
4580
|
__name: "WEmptyState",
|
|
4535
4581
|
props: {
|
|
4536
4582
|
icon: {},
|
|
@@ -4542,10 +4588,10 @@ var Fi = {
|
|
|
4542
4588
|
emits: ["action"],
|
|
4543
4589
|
setup(e, { emit: t }) {
|
|
4544
4590
|
let n = t;
|
|
4545
|
-
return (t, r) => (M(), h("div",
|
|
4546
|
-
g("div",
|
|
4547
|
-
g("p",
|
|
4548
|
-
e.description ? (M(), h("p",
|
|
4591
|
+
return (t, r) => (M(), h("div", Yi, [
|
|
4592
|
+
g("div", Xi, [g("i", { class: k(e.icon) }, null, 2)]),
|
|
4593
|
+
g("p", Zi, L(e.title), 1),
|
|
4594
|
+
e.description ? (M(), h("p", Qi, L(e.description), 1)) : m("", !0),
|
|
4549
4595
|
e.actionLabel ? (M(), p(R(K), {
|
|
4550
4596
|
key: 1,
|
|
4551
4597
|
label: e.actionLabel,
|
|
@@ -4556,10 +4602,10 @@ var Fi = {
|
|
|
4556
4602
|
}, null, 8, ["label", "icon"])) : m("", !0)
|
|
4557
4603
|
]));
|
|
4558
4604
|
}
|
|
4559
|
-
}),
|
|
4605
|
+
}), ea = { class: "w-detail-header" }, ta = { class: "w-detail-header-left" }, na = { class: "w-detail-header-content" }, ra = { class: "w-detail-header-title" }, ia = {
|
|
4560
4606
|
key: 0,
|
|
4561
4607
|
class: "w-detail-header-subtitle"
|
|
4562
|
-
},
|
|
4608
|
+
}, aa = { class: "w-detail-header-actions" }, oa = /* @__PURE__ */ x({
|
|
4563
4609
|
__name: "WDetailHeader",
|
|
4564
4610
|
props: {
|
|
4565
4611
|
title: {},
|
|
@@ -4575,7 +4621,7 @@ var Fi = {
|
|
|
4575
4621
|
function r() {
|
|
4576
4622
|
t.backTo ? n.push(typeof t.backTo == "string" ? { name: t.backTo } : t.backTo) : t.backRoute ? n.push({ name: t.backRoute }) : n.back();
|
|
4577
4623
|
}
|
|
4578
|
-
return (t, n) => (M(), h("div",
|
|
4624
|
+
return (t, n) => (M(), h("div", ea, [g("div", ta, [
|
|
4579
4625
|
b(R(K), {
|
|
4580
4626
|
icon: "pi pi-arrow-left",
|
|
4581
4627
|
text: "",
|
|
@@ -4586,27 +4632,27 @@ var Fi = {
|
|
|
4586
4632
|
key: 0,
|
|
4587
4633
|
class: k([e.icon, "w-detail-header-icon"])
|
|
4588
4634
|
}, null, 2)) : m("", !0),
|
|
4589
|
-
g("div",
|
|
4590
|
-
e.status ? (M(), p(
|
|
4635
|
+
g("div", na, [g("h2", ra, L(e.title), 1), e.subtitle ? (M(), h("p", ia, L(e.subtitle), 1)) : m("", !0)]),
|
|
4636
|
+
e.status ? (M(), p(Hi, {
|
|
4591
4637
|
key: 1,
|
|
4592
4638
|
value: e.status,
|
|
4593
4639
|
map: e.statusMap
|
|
4594
4640
|
}, null, 8, ["value", "map"])) : m("", !0)
|
|
4595
|
-
]), g("div",
|
|
4641
|
+
]), g("div", aa, [I(t.$slots, "actions")])]));
|
|
4596
4642
|
}
|
|
4597
|
-
}),
|
|
4643
|
+
}), sa = {
|
|
4598
4644
|
key: 0,
|
|
4599
4645
|
class: "w-info-card-title"
|
|
4600
|
-
},
|
|
4646
|
+
}, ca = {
|
|
4601
4647
|
key: 1,
|
|
4602
4648
|
class: "w-info-card-metrics"
|
|
4603
|
-
},
|
|
4649
|
+
}, la = { class: "w-info-card-metric-label" }, ua = { class: "w-info-card-metric-value" }, da = {
|
|
4604
4650
|
key: 0,
|
|
4605
4651
|
class: "w-info-card-metric-suffix"
|
|
4606
|
-
},
|
|
4652
|
+
}, fa = {
|
|
4607
4653
|
key: 2,
|
|
4608
4654
|
class: "w-info-card-grid"
|
|
4609
|
-
},
|
|
4655
|
+
}, pa = { class: "w-info-card-label" }, ma = { class: "w-info-card-value" }, ha = /* @__PURE__ */ x({
|
|
4610
4656
|
__name: "WInfoCard",
|
|
4611
4657
|
props: {
|
|
4612
4658
|
title: {},
|
|
@@ -4619,34 +4665,34 @@ var Fi = {
|
|
|
4619
4665
|
let n = e.value;
|
|
4620
4666
|
return n == null || n === "" ? "-" : e.format === "currency" ? t(Number(n)) : e.format === "date" ? r(String(n)) : e.format === "datetime" ? r(String(n), "DD/MM/YYYY HH:mm") : e.format === "number" ? i(Number(n), e.decimals ?? 2) : String(n);
|
|
4621
4667
|
}
|
|
4622
|
-
return (t, n) => (M(), h("div", { class: k(["w-info-card", `w-info-card--${e.variant}`]) }, [e.title ? (M(), h("h3",
|
|
4668
|
+
return (t, n) => (M(), h("div", { class: k(["w-info-card", `w-info-card--${e.variant}`]) }, [e.title ? (M(), h("h3", sa, L(e.title), 1)) : m("", !0), e.variant === "metric" ? (M(), h("div", ca, [(M(!0), h(d, null, F(e.fields, (e) => (M(), h("div", {
|
|
4623
4669
|
key: e.label,
|
|
4624
4670
|
class: "w-info-card-metric"
|
|
4625
4671
|
}, [
|
|
4626
|
-
g("span",
|
|
4627
|
-
g("span",
|
|
4628
|
-
e.suffix ? (M(), h("span",
|
|
4629
|
-
]))), 128))])) : (M(), h("div",
|
|
4672
|
+
g("span", la, L(e.label), 1),
|
|
4673
|
+
g("span", ua, L(a(e)), 1),
|
|
4674
|
+
e.suffix ? (M(), h("span", da, L(e.suffix), 1)) : m("", !0)
|
|
4675
|
+
]))), 128))])) : (M(), h("div", fa, [(M(!0), h(d, null, F(e.fields, (e) => (M(), h("div", {
|
|
4630
4676
|
key: e.label,
|
|
4631
4677
|
class: "w-info-card-field"
|
|
4632
|
-
}, [g("span",
|
|
4678
|
+
}, [g("span", pa, L(e.label), 1), g("span", ma, L(a(e)), 1)]))), 128))]))], 2));
|
|
4633
4679
|
}
|
|
4634
|
-
}),
|
|
4680
|
+
}), ga = {
|
|
4635
4681
|
key: 0,
|
|
4636
4682
|
class: "w-kpi-card__loading"
|
|
4637
|
-
},
|
|
4683
|
+
}, _a = { class: "w-kpi-card__loading-content" }, va = { class: "w-kpi-card__header" }, ya = {
|
|
4638
4684
|
key: 0,
|
|
4639
4685
|
class: "w-kpi-card__icon"
|
|
4640
|
-
},
|
|
4686
|
+
}, ba = {
|
|
4641
4687
|
key: 1,
|
|
4642
4688
|
class: "w-kpi-card__trend"
|
|
4643
|
-
},
|
|
4689
|
+
}, xa = { class: "w-kpi-card__content" }, Sa = { class: "w-kpi-card__label" }, Ca = { class: "w-kpi-card__value" }, wa = {
|
|
4644
4690
|
key: 0,
|
|
4645
4691
|
class: "w-kpi-card__hint"
|
|
4646
|
-
},
|
|
4692
|
+
}, Ta = {
|
|
4647
4693
|
key: 0,
|
|
4648
4694
|
class: "w-kpi-card__footer"
|
|
4649
|
-
},
|
|
4695
|
+
}, Ea = /* @__PURE__ */ x({
|
|
4650
4696
|
__name: "WKpiCard",
|
|
4651
4697
|
props: {
|
|
4652
4698
|
label: {},
|
|
@@ -4658,10 +4704,10 @@ var Fi = {
|
|
|
4658
4704
|
loading: { type: Boolean }
|
|
4659
4705
|
},
|
|
4660
4706
|
setup(e) {
|
|
4661
|
-
return (t, n) => (M(), h("article", { class: k(["w-kpi-card", e.severity ? `w-kpi-card--${e.severity}` : ""]) }, [e.loading ? (M(), h("div",
|
|
4707
|
+
return (t, n) => (M(), h("article", { class: k(["w-kpi-card", e.severity ? `w-kpi-card--${e.severity}` : ""]) }, [e.loading ? (M(), h("div", ga, [b(R(X), {
|
|
4662
4708
|
shape: "circle",
|
|
4663
4709
|
size: "2.75rem"
|
|
4664
|
-
}), g("div",
|
|
4710
|
+
}), g("div", _a, [
|
|
4665
4711
|
b(R(X), {
|
|
4666
4712
|
width: "6rem",
|
|
4667
4713
|
height: "0.75rem"
|
|
@@ -4675,22 +4721,22 @@ var Fi = {
|
|
|
4675
4721
|
height: "0.75rem"
|
|
4676
4722
|
})
|
|
4677
4723
|
])])) : (M(), h(d, { key: 1 }, [
|
|
4678
|
-
g("div",
|
|
4724
|
+
g("div", va, [e.icon || t.$slots.icon ? (M(), h("div", ya, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
|
|
4679
4725
|
key: 0,
|
|
4680
4726
|
class: k(e.icon)
|
|
4681
|
-
}, null, 2)) : m("", !0)])])) : m("", !0), e.trend || t.$slots.trend ? (M(), h("div",
|
|
4727
|
+
}, null, 2)) : m("", !0)])])) : m("", !0), e.trend || t.$slots.trend ? (M(), h("div", ba, [I(t.$slots, "trend", {}, () => [e.trend ? (M(), h("span", {
|
|
4682
4728
|
key: 0,
|
|
4683
4729
|
class: k(["w-kpi-card__trend-badge", e.trend.direction ? `w-kpi-card__trend-badge--${e.trend.direction}` : ""])
|
|
4684
4730
|
}, L(e.trend.value), 3)) : m("", !0)])])) : m("", !0)]),
|
|
4685
|
-
g("div",
|
|
4686
|
-
g("p",
|
|
4687
|
-
g("div",
|
|
4688
|
-
e.hint || t.$slots.hint ? (M(), h("p",
|
|
4731
|
+
g("div", xa, [
|
|
4732
|
+
g("p", Sa, L(e.label), 1),
|
|
4733
|
+
g("div", Ca, [I(t.$slots, "value", {}, () => [y(L(e.value), 1)])]),
|
|
4734
|
+
e.hint || t.$slots.hint ? (M(), h("p", wa, [I(t.$slots, "hint", {}, () => [y(L(e.hint), 1)])])) : m("", !0)
|
|
4689
4735
|
]),
|
|
4690
|
-
t.$slots.footer ? (M(), h("footer",
|
|
4736
|
+
t.$slots.footer ? (M(), h("footer", Ta, [I(t.$slots, "footer")])) : m("", !0)
|
|
4691
4737
|
], 64))], 2));
|
|
4692
4738
|
}
|
|
4693
|
-
}),
|
|
4739
|
+
}), Da = /* @__PURE__ */ x({
|
|
4694
4740
|
__name: "WKpiGrid",
|
|
4695
4741
|
props: {
|
|
4696
4742
|
items: { default: () => [] },
|
|
@@ -4706,7 +4752,7 @@ var Fi = {
|
|
|
4706
4752
|
key: n,
|
|
4707
4753
|
item: e,
|
|
4708
4754
|
index: n
|
|
4709
|
-
})), 128)) : (M(!0), h(d, { key: 1 }, F(e.items, (e, t) => (M(), p(
|
|
4755
|
+
})), 128)) : (M(!0), h(d, { key: 1 }, F(e.items, (e, t) => (M(), p(Ea, {
|
|
4710
4756
|
key: t,
|
|
4711
4757
|
label: e.label,
|
|
4712
4758
|
value: e.value,
|
|
@@ -4725,16 +4771,16 @@ var Fi = {
|
|
|
4725
4771
|
"loading"
|
|
4726
4772
|
]))), 128))], 2));
|
|
4727
4773
|
}
|
|
4728
|
-
}),
|
|
4774
|
+
}), Oa = { class: "w-section-header__main" }, ka = {
|
|
4729
4775
|
key: 0,
|
|
4730
4776
|
class: "w-section-header__icon"
|
|
4731
|
-
},
|
|
4777
|
+
}, Aa = { class: "w-section-header__content" }, ja = { class: "w-section-header__title-row" }, Ma = { class: "w-section-header__title" }, Na = {
|
|
4732
4778
|
key: 0,
|
|
4733
4779
|
class: "w-section-header__subtitle"
|
|
4734
|
-
},
|
|
4780
|
+
}, Pa = {
|
|
4735
4781
|
key: 0,
|
|
4736
4782
|
class: "w-section-header__actions"
|
|
4737
|
-
},
|
|
4783
|
+
}, Fa = /* @__PURE__ */ x({
|
|
4738
4784
|
__name: "WSectionHeader",
|
|
4739
4785
|
props: {
|
|
4740
4786
|
title: {},
|
|
@@ -4743,21 +4789,21 @@ var Fi = {
|
|
|
4743
4789
|
compact: { type: Boolean }
|
|
4744
4790
|
},
|
|
4745
4791
|
setup(e) {
|
|
4746
|
-
return (t, n) => (M(), h("div", { class: k(["w-section-header", { "w-section-header--compact": e.compact }]) }, [g("div",
|
|
4792
|
+
return (t, n) => (M(), h("div", { class: k(["w-section-header", { "w-section-header--compact": e.compact }]) }, [g("div", Oa, [e.icon || t.$slots.icon ? (M(), h("div", ka, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
|
|
4747
4793
|
key: 0,
|
|
4748
4794
|
class: k(e.icon)
|
|
4749
|
-
}, null, 2)) : m("", !0)])])) : m("", !0), g("div",
|
|
4795
|
+
}, null, 2)) : m("", !0)])])) : m("", !0), g("div", Aa, [g("div", ja, [g("h3", Ma, L(e.title), 1), I(t.$slots, "meta")]), e.subtitle ? (M(), h("p", Na, L(e.subtitle), 1)) : m("", !0)])]), t.$slots.actions ? (M(), h("div", Pa, [I(t.$slots, "actions")])) : m("", !0)], 2));
|
|
4750
4796
|
}
|
|
4751
|
-
}),
|
|
4797
|
+
}), Ia = {
|
|
4752
4798
|
key: 0,
|
|
4753
4799
|
class: "w-form-section__header"
|
|
4754
|
-
},
|
|
4800
|
+
}, La = { class: "w-form-section__content" }, Ra = { class: "w-form-section__title" }, za = {
|
|
4755
4801
|
key: 0,
|
|
4756
4802
|
class: "w-form-section__description"
|
|
4757
|
-
},
|
|
4803
|
+
}, Ba = {
|
|
4758
4804
|
key: 0,
|
|
4759
4805
|
class: "w-form-section__actions"
|
|
4760
|
-
},
|
|
4806
|
+
}, Va = { class: "w-form-section__body" }, Ha = /* @__PURE__ */ x({
|
|
4761
4807
|
__name: "WFormSection",
|
|
4762
4808
|
props: {
|
|
4763
4809
|
title: {},
|
|
@@ -4765,18 +4811,18 @@ var Fi = {
|
|
|
4765
4811
|
variant: {}
|
|
4766
4812
|
},
|
|
4767
4813
|
setup(e) {
|
|
4768
|
-
return (t, n) => (M(), h("section", { class: k(["w-form-section", e.variant ? `w-form-section--${e.variant}` : ""]) }, [e.title || e.description || t.$slots.actions ? (M(), h("div",
|
|
4814
|
+
return (t, n) => (M(), h("section", { class: k(["w-form-section", e.variant ? `w-form-section--${e.variant}` : ""]) }, [e.title || e.description || t.$slots.actions ? (M(), h("div", Ia, [g("div", La, [g("h3", Ra, L(e.title), 1), e.description ? (M(), h("p", za, L(e.description), 1)) : m("", !0)]), t.$slots.actions ? (M(), h("div", Ba, [I(t.$slots, "actions")])) : m("", !0)])) : m("", !0), g("div", Va, [I(t.$slots, "default")])], 2));
|
|
4769
4815
|
}
|
|
4770
|
-
}),
|
|
4816
|
+
}), Ua = {
|
|
4771
4817
|
key: 0,
|
|
4772
4818
|
class: "w-action-bar__primary"
|
|
4773
|
-
},
|
|
4819
|
+
}, Wa = {
|
|
4774
4820
|
key: 1,
|
|
4775
4821
|
class: "w-action-bar__filters"
|
|
4776
|
-
},
|
|
4822
|
+
}, Ga = {
|
|
4777
4823
|
key: 2,
|
|
4778
4824
|
class: "w-action-bar__secondary"
|
|
4779
|
-
},
|
|
4825
|
+
}, Ka = /* @__PURE__ */ x({
|
|
4780
4826
|
__name: "WActionBar",
|
|
4781
4827
|
props: {
|
|
4782
4828
|
align: { default: "between" },
|
|
@@ -4787,15 +4833,15 @@ var Fi = {
|
|
|
4787
4833
|
},
|
|
4788
4834
|
setup(e) {
|
|
4789
4835
|
return (t, n) => (M(), h("div", { class: k(["w-action-bar", [`w-action-bar--${e.align}`, { "w-action-bar--stack": e.stackOnMobile }]]) }, [
|
|
4790
|
-
t.$slots.primary || t.$slots.default ? (M(), h("div",
|
|
4791
|
-
t.$slots.filters ? (M(), h("div",
|
|
4792
|
-
t.$slots.secondary ? (M(), h("div",
|
|
4836
|
+
t.$slots.primary || t.$slots.default ? (M(), h("div", Ua, [I(t.$slots, "primary", {}, () => [I(t.$slots, "default")])])) : m("", !0),
|
|
4837
|
+
t.$slots.filters ? (M(), h("div", Wa, [I(t.$slots, "filters")])) : m("", !0),
|
|
4838
|
+
t.$slots.secondary ? (M(), h("div", Ga, [I(t.$slots, "secondary")])) : m("", !0)
|
|
4793
4839
|
], 2));
|
|
4794
4840
|
}
|
|
4795
|
-
}),
|
|
4841
|
+
}), qa = { class: "w-progress-flow__marker" }, Ja = { class: "w-progress-flow__content" }, Ya = { class: "w-progress-flow__label" }, Xa = {
|
|
4796
4842
|
key: 0,
|
|
4797
4843
|
class: "w-progress-flow__description"
|
|
4798
|
-
},
|
|
4844
|
+
}, Za = /* @__PURE__ */ x({
|
|
4799
4845
|
__name: "WProgressFlow",
|
|
4800
4846
|
props: {
|
|
4801
4847
|
steps: {},
|
|
@@ -4814,9 +4860,9 @@ var Fi = {
|
|
|
4814
4860
|
step: e,
|
|
4815
4861
|
index: n,
|
|
4816
4862
|
state: r(n)
|
|
4817
|
-
}, () => [g("div",
|
|
4863
|
+
}, () => [g("div", qa, [g("span", null, L(n + 1), 1)]), g("div", Ja, [g("p", Ya, L(e.label), 1), e.description ? (M(), h("p", Xa, L(e.description), 1)) : m("", !0)])])], 2))), 128))], 2));
|
|
4818
4864
|
}
|
|
4819
|
-
}),
|
|
4865
|
+
}), Qa = Symbol("w-step-flow"), $a = /* @__PURE__ */ x({
|
|
4820
4866
|
__name: "WStepFlow",
|
|
4821
4867
|
props: {
|
|
4822
4868
|
modelValue: { default: 0 },
|
|
@@ -4832,7 +4878,7 @@ var Fi = {
|
|
|
4832
4878
|
function s(e) {
|
|
4833
4879
|
n.disabled || r("update:modelValue", n.modelValue === e ? 0 : e);
|
|
4834
4880
|
}
|
|
4835
|
-
N(
|
|
4881
|
+
N(Qa, {
|
|
4836
4882
|
active: i,
|
|
4837
4883
|
toggle: s,
|
|
4838
4884
|
disabled: a,
|
|
@@ -4860,48 +4906,48 @@ var Fi = {
|
|
|
4860
4906
|
onKeydown: l
|
|
4861
4907
|
}, [I(e.$slots, "default")], 34));
|
|
4862
4908
|
}
|
|
4863
|
-
}),
|
|
4909
|
+
}), eo = { class: "w-step-section__rail" }, to = {
|
|
4864
4910
|
key: 0,
|
|
4865
4911
|
class: "w-step-section__line"
|
|
4866
|
-
},
|
|
4912
|
+
}, no = { class: "w-step-section__body" }, ro = { class: "w-step-section__card" }, io = { class: "w-step-section__header" }, ao = [
|
|
4867
4913
|
"aria-expanded",
|
|
4868
4914
|
"aria-current",
|
|
4869
4915
|
"disabled"
|
|
4870
|
-
],
|
|
4916
|
+
], oo = { class: "w-step-section__title" }, so = {
|
|
4871
4917
|
key: 0,
|
|
4872
4918
|
class: "w-step-section__count"
|
|
4873
|
-
},
|
|
4919
|
+
}, co = {
|
|
4874
4920
|
key: 1,
|
|
4875
4921
|
class: "w-step-section__summary"
|
|
4876
|
-
},
|
|
4922
|
+
}, lo = {
|
|
4877
4923
|
key: 0,
|
|
4878
4924
|
class: "w-step-section__actions"
|
|
4879
|
-
},
|
|
4925
|
+
}, uo = { class: "w-step-section__content" }, fo = {
|
|
4880
4926
|
key: 0,
|
|
4881
4927
|
class: "w-step-section__footer"
|
|
4882
|
-
},
|
|
4928
|
+
}, po = { class: "w-step-section__head" }, mo = [
|
|
4883
4929
|
"aria-expanded",
|
|
4884
4930
|
"aria-current",
|
|
4885
4931
|
"disabled"
|
|
4886
|
-
],
|
|
4932
|
+
], ho = {
|
|
4887
4933
|
key: 0,
|
|
4888
4934
|
class: "pi pi-check"
|
|
4889
|
-
},
|
|
4935
|
+
}, go = { class: "w-step-section__title" }, _o = {
|
|
4890
4936
|
key: 0,
|
|
4891
4937
|
class: "w-step-section__count"
|
|
4892
|
-
},
|
|
4938
|
+
}, vo = {
|
|
4893
4939
|
key: 1,
|
|
4894
4940
|
class: "w-step-section__summary"
|
|
4895
|
-
},
|
|
4941
|
+
}, yo = {
|
|
4896
4942
|
key: 1,
|
|
4897
4943
|
class: "w-step-section__actions"
|
|
4898
|
-
},
|
|
4944
|
+
}, bo = {
|
|
4899
4945
|
key: 0,
|
|
4900
4946
|
class: "w-step-section__panel"
|
|
4901
|
-
},
|
|
4947
|
+
}, xo = { class: "w-step-section__content" }, So = {
|
|
4902
4948
|
key: 0,
|
|
4903
4949
|
class: "w-step-section__footer"
|
|
4904
|
-
},
|
|
4950
|
+
}, Co = /* @__PURE__ */ x({
|
|
4905
4951
|
__name: "WStepSection",
|
|
4906
4952
|
props: {
|
|
4907
4953
|
step: {},
|
|
@@ -4914,7 +4960,7 @@ var Fi = {
|
|
|
4914
4960
|
}
|
|
4915
4961
|
},
|
|
4916
4962
|
setup(e) {
|
|
4917
|
-
let t = e, n = w(
|
|
4963
|
+
let t = e, n = w(Qa, null), r = P(!0), i = f(() => n ? n.active.value === t.step : r.value), a = f(() => t.disabled || (n?.disabled.value ?? !1)), o = f(() => n?.orientation.value === "horizontal"), s = f(() => n !== null), c = f(() => o.value && n != null && t.step < n.active.value);
|
|
4918
4964
|
function l() {
|
|
4919
4965
|
a.value || (n ? n.toggle(t.step) : r.value = !r.value);
|
|
4920
4966
|
}
|
|
@@ -4924,7 +4970,7 @@ var Fi = {
|
|
|
4924
4970
|
"w-step-section--open": i.value,
|
|
4925
4971
|
"w-step-section--done": c.value
|
|
4926
4972
|
}])
|
|
4927
|
-
}, [g("div",
|
|
4973
|
+
}, [g("div", po, [
|
|
4928
4974
|
s.value ? (M(), h("span", {
|
|
4929
4975
|
key: 0,
|
|
4930
4976
|
class: k(["w-step-section__line", { "w-step-section__line--done": c.value || i.value }])
|
|
@@ -4943,19 +4989,19 @@ var Fi = {
|
|
|
4943
4989
|
"w-step-section__badge--done": c.value
|
|
4944
4990
|
}]),
|
|
4945
4991
|
"aria-hidden": "true"
|
|
4946
|
-
}, [c.value ? (M(), h("i",
|
|
4947
|
-
g("h2",
|
|
4948
|
-
e.count == null ? m("", !0) : (M(), h("span",
|
|
4949
|
-
e.summary ? (M(), h("span",
|
|
4950
|
-
], 8,
|
|
4951
|
-
t.$slots.actions ? (M(), h("div",
|
|
4952
|
-
]), i.value ? (M(), h("div",
|
|
4992
|
+
}, [c.value ? (M(), h("i", ho)) : (M(), h(d, { key: 1 }, [y(L(e.step), 1)], 64))], 2),
|
|
4993
|
+
g("h2", go, L(e.title), 1),
|
|
4994
|
+
e.count == null ? m("", !0) : (M(), h("span", _o, L(e.count), 1)),
|
|
4995
|
+
e.summary ? (M(), h("span", vo, L(e.summary), 1)) : m("", !0)
|
|
4996
|
+
], 8, mo),
|
|
4997
|
+
t.$slots.actions ? (M(), h("div", yo, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)
|
|
4998
|
+
]), i.value ? (M(), h("div", bo, [g("div", xo, [I(t.$slots, "default")]), t.$slots.footer ? (M(), h("div", So, [I(t.$slots, "footer")])) : m("", !0)])) : m("", !0)], 2)) : (M(), h("div", {
|
|
4953
4999
|
key: 0,
|
|
4954
5000
|
class: k(["w-step-section", { "w-step-section--open": i.value }])
|
|
4955
|
-
}, [g("div",
|
|
5001
|
+
}, [g("div", eo, [g("span", {
|
|
4956
5002
|
class: k(["w-step-section__badge", { "w-step-section__badge--on": i.value }]),
|
|
4957
5003
|
"aria-hidden": "true"
|
|
4958
|
-
}, L(e.step), 3), s.value ? (M(), h("span",
|
|
5004
|
+
}, L(e.step), 3), s.value ? (M(), h("span", to)) : m("", !0)]), g("div", no, [g("div", ro, [g("div", io, [g("button", {
|
|
4959
5005
|
type: "button",
|
|
4960
5006
|
class: "w-step-section__trigger",
|
|
4961
5007
|
"aria-expanded": i.value,
|
|
@@ -4964,24 +5010,24 @@ var Fi = {
|
|
|
4964
5010
|
onClick: l
|
|
4965
5011
|
}, [
|
|
4966
5012
|
g("i", { class: k(["w-step-section__chevron", i.value ? "pi pi-chevron-down" : "pi pi-chevron-right"]) }, null, 2),
|
|
4967
|
-
g("h2",
|
|
4968
|
-
e.count == null ? m("", !0) : (M(), h("span",
|
|
4969
|
-
e.summary ? (M(), h("span",
|
|
4970
|
-
], 8,
|
|
5013
|
+
g("h2", oo, L(e.title), 1),
|
|
5014
|
+
e.count == null ? m("", !0) : (M(), h("span", so, L(e.count), 1)),
|
|
5015
|
+
e.summary ? (M(), h("span", co, L(e.summary), 1)) : m("", !0)
|
|
5016
|
+
], 8, ao), t.$slots.actions ? (M(), h("div", lo, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)]), i.value ? (M(), h(d, { key: 0 }, [g("div", uo, [I(t.$slots, "default")]), t.$slots.footer ? (M(), h("div", fo, [I(t.$slots, "footer")])) : m("", !0)], 64)) : m("", !0)])])], 2));
|
|
4971
5017
|
}
|
|
4972
|
-
}),
|
|
5018
|
+
}), wo = { class: "w-check-list" }, To = {
|
|
4973
5019
|
key: 0,
|
|
4974
5020
|
class: "w-check-list__header"
|
|
4975
|
-
},
|
|
5021
|
+
}, Eo = { class: "w-check-list__title" }, Do = {
|
|
4976
5022
|
key: 0,
|
|
4977
5023
|
class: "w-check-list__count"
|
|
4978
|
-
},
|
|
5024
|
+
}, Oo = {
|
|
4979
5025
|
key: 1,
|
|
4980
5026
|
class: "w-check-list__items"
|
|
4981
|
-
},
|
|
5027
|
+
}, ko = { class: "w-check-list__label" }, Ao = {
|
|
4982
5028
|
key: 2,
|
|
4983
5029
|
class: "w-check-list__empty"
|
|
4984
|
-
},
|
|
5030
|
+
}, jo = /* @__PURE__ */ x({
|
|
4985
5031
|
__name: "WCheckList",
|
|
4986
5032
|
props: {
|
|
4987
5033
|
title: {},
|
|
@@ -5001,62 +5047,62 @@ var Fi = {
|
|
|
5001
5047
|
function a(e) {
|
|
5002
5048
|
return i[e] ?? i.warn;
|
|
5003
5049
|
}
|
|
5004
|
-
return (t, n) => (M(), h("div",
|
|
5050
|
+
return (t, n) => (M(), h("div", wo, [e.title || e.showCount ? (M(), h("div", To, [g("span", Eo, L(e.title), 1), e.showCount ? (M(), h("span", Do, L(r.value), 1)) : m("", !0)])) : m("", !0), e.items.length ? (M(), h("ul", Oo, [(M(!0), h(d, null, F(e.items, (e, t) => (M(), h("li", {
|
|
5005
5051
|
key: `${e.label}-${t}`,
|
|
5006
5052
|
class: "w-check-list__item"
|
|
5007
|
-
}, [g("i", { class: k([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span",
|
|
5053
|
+
}, [g("i", { class: k([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span", ko, L(e.label), 1)]))), 128))])) : (M(), h("div", Ao, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])]))]));
|
|
5008
5054
|
}
|
|
5009
|
-
}),
|
|
5010
|
-
function
|
|
5055
|
+
}), Mo = .85;
|
|
5056
|
+
function No(e, t, n) {
|
|
5011
5057
|
return !e || e.largura <= 0 || e.altura <= 0 ? !1 : e.largura <= t && e.altura <= n;
|
|
5012
5058
|
}
|
|
5013
|
-
function
|
|
5059
|
+
function Po(e, t, n, r = Mo) {
|
|
5014
5060
|
if (!t || t.largura <= 0 || t.altura <= 0 || e.largura <= 0 || e.altura <= 0) return "completo";
|
|
5015
5061
|
let i = e.largura * r, a = e.altura * r;
|
|
5016
|
-
return
|
|
5062
|
+
return No(t, i, a) ? "completo" : No(n, i, a) ? "curto" : "oculto";
|
|
5017
5063
|
}
|
|
5018
5064
|
//#endregion
|
|
5019
5065
|
//#region src/components/ui/WMapSelect.vue?vue&type=script&setup=true&lang.ts
|
|
5020
|
-
var
|
|
5066
|
+
var Fo = { class: "w-map-select__body" }, Io = {
|
|
5021
5067
|
key: 0,
|
|
5022
5068
|
class: "w-map-select__fallback"
|
|
5023
|
-
},
|
|
5069
|
+
}, Lo = {
|
|
5024
5070
|
key: 1,
|
|
5025
5071
|
class: "w-map-select__badge"
|
|
5026
|
-
},
|
|
5072
|
+
}, Ro = { class: "w-map-select__detail-nome" }, zo = {
|
|
5027
5073
|
key: 0,
|
|
5028
5074
|
class: "w-map-select__detail-sub"
|
|
5029
|
-
},
|
|
5075
|
+
}, Bo = {
|
|
5030
5076
|
key: 0,
|
|
5031
5077
|
class: "w-map-select__panel"
|
|
5032
|
-
},
|
|
5078
|
+
}, Vo = [
|
|
5033
5079
|
"aria-expanded",
|
|
5034
5080
|
"aria-label",
|
|
5035
5081
|
"title"
|
|
5036
|
-
],
|
|
5082
|
+
], Ho = {
|
|
5037
5083
|
key: 0,
|
|
5038
5084
|
class: "w-map-select__collapse-count"
|
|
5039
|
-
},
|
|
5085
|
+
}, Uo = { class: "w-map-select__panel-head" }, Wo = { class: "w-map-select__meta" }, Go = { class: "w-map-select__count" }, Ko = ["disabled"], qo = { class: "w-map-select__list" }, Jo = [
|
|
5040
5086
|
"aria-pressed",
|
|
5041
5087
|
"disabled",
|
|
5042
5088
|
"onClick"
|
|
5043
|
-
],
|
|
5089
|
+
], Yo = { class: "w-map-select__box" }, Xo = {
|
|
5044
5090
|
key: 0,
|
|
5045
5091
|
class: "pi pi-check"
|
|
5046
|
-
},
|
|
5092
|
+
}, Zo = { class: "w-map-select__item-text" }, Qo = { class: "w-map-select__item-name" }, $o = {
|
|
5047
5093
|
key: 0,
|
|
5048
5094
|
class: "w-map-select__item-sub"
|
|
5049
|
-
},
|
|
5095
|
+
}, es = {
|
|
5050
5096
|
key: 0,
|
|
5051
5097
|
class: "pi pi-exclamation-circle w-map-select__item-nogeo",
|
|
5052
5098
|
title: "Talhão sem contorno cadastrado"
|
|
5053
|
-
},
|
|
5099
|
+
}, ts = {
|
|
5054
5100
|
key: 1,
|
|
5055
5101
|
class: "w-map-select__item-area"
|
|
5056
|
-
},
|
|
5102
|
+
}, ns = {
|
|
5057
5103
|
key: 0,
|
|
5058
5104
|
class: "w-map-select__empty"
|
|
5059
|
-
},
|
|
5105
|
+
}, rs = { class: "w-map-select__area" }, is = { class: "w-map-select__area-unit" }, as = "O mapa não pôde ser carregado. Selecione os talhões pela lista ao lado.", os = "O mapa não pôde ser carregado.", ss = /* @__PURE__ */ x({
|
|
5060
5106
|
__name: "WMapSelect",
|
|
5061
5107
|
props: {
|
|
5062
5108
|
modelValue: { default: () => [] },
|
|
@@ -5084,7 +5130,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5084
5130
|
},
|
|
5085
5131
|
badgeLabel: { default: "Satélite" },
|
|
5086
5132
|
emptyMessage: { default: "Nenhum talhão encontrado" },
|
|
5087
|
-
mapErrorMessage: { default:
|
|
5133
|
+
mapErrorMessage: { default: as },
|
|
5088
5134
|
disabled: {
|
|
5089
5135
|
type: Boolean,
|
|
5090
5136
|
default: !1
|
|
@@ -5122,7 +5168,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5122
5168
|
type: Function,
|
|
5123
5169
|
default: void 0
|
|
5124
5170
|
},
|
|
5125
|
-
labelFitScale: { default:
|
|
5171
|
+
labelFitScale: { default: Mo },
|
|
5126
5172
|
labelFullFromZoom: { default: 13 },
|
|
5127
5173
|
featureDetail: { default: "none" },
|
|
5128
5174
|
detailPlacement: { default: "cursor" }
|
|
@@ -5135,7 +5181,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5135
5181
|
"update:collapsed"
|
|
5136
5182
|
],
|
|
5137
5183
|
setup(e, { expose: t, emit: r }) {
|
|
5138
|
-
let i = e, a = r, o = le(), { formatNumber: s } = n(), c = f(() => i.layout === "sobreposto"), l = f(() => !i.readonly && (!!o.footer || i.areaLabel !== "")), u = f(() => i.readonly && i.mapErrorMessage ===
|
|
5184
|
+
let i = e, a = r, o = le(), { formatNumber: s } = n(), c = f(() => i.layout === "sobreposto"), l = f(() => !i.readonly && (!!o.footer || i.areaLabel !== "")), u = f(() => i.readonly && i.mapErrorMessage === as ? os : i.mapErrorMessage), p = P(!1), _ = f(() => i.collapsed != null), v = f(() => _.value ? !!i.collapsed : p.value);
|
|
5139
5185
|
function x(e) {
|
|
5140
5186
|
v.value !== e && (_.value || (p.value = e), a("update:collapsed", e));
|
|
5141
5187
|
}
|
|
@@ -5317,7 +5363,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5317
5363
|
if (!r || !a) return;
|
|
5318
5364
|
let o = je(a);
|
|
5319
5365
|
if (!o) return;
|
|
5320
|
-
let s = Me(a), c = t ? "completo" :
|
|
5366
|
+
let s = Me(a), c = t ? "completo" : Po(Le(n), Ie(o), s && s !== o ? Ie(s) : null, i.labelFitScale);
|
|
5321
5367
|
c !== "oculto" && r.setContent(c === "curto" ? s : o), r.getElement()?.classList.toggle("w-map-select__tip--fora", c === "oculto");
|
|
5322
5368
|
});
|
|
5323
5369
|
}
|
|
@@ -5447,7 +5493,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5447
5493
|
"w-map-select--overlay": c.value,
|
|
5448
5494
|
"w-map-select--collapsed": c.value && v.value && !e.readonly
|
|
5449
5495
|
}])
|
|
5450
|
-
}, [g("div",
|
|
5496
|
+
}, [g("div", Fo, [g("div", {
|
|
5451
5497
|
class: "w-map-select__map",
|
|
5452
5498
|
style: j({ "--w-map-h": e.height })
|
|
5453
5499
|
}, [
|
|
@@ -5456,7 +5502,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5456
5502
|
ref: z,
|
|
5457
5503
|
class: "w-map-select__canvas"
|
|
5458
5504
|
}, null, 512),
|
|
5459
|
-
W.value ? (M(), h("div",
|
|
5505
|
+
W.value ? (M(), h("div", Io, [n[1] ||= g("i", { class: "pi pi-map" }, null, -1), g("span", null, L(u.value), 1)])) : e.badgeLabel ? (M(), h("span", Lo, [n[2] ||= g("i", { class: "pi pi-globe" }, null, -1), y(L(e.badgeLabel), 1)])) : m("", !0),
|
|
5460
5506
|
Y.value && e.featureDetail !== "none" ? (M(), h("div", {
|
|
5461
5507
|
key: 2,
|
|
5462
5508
|
class: k(["w-map-select__detail", {
|
|
@@ -5470,8 +5516,8 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5470
5516
|
feature: Y.value,
|
|
5471
5517
|
selected: E(Y.value.id),
|
|
5472
5518
|
close: Ee
|
|
5473
|
-
}, () => [g("span",
|
|
5474
|
-
], 4), e.readonly ? m("", !0) : (M(), h("div",
|
|
5519
|
+
}, () => [g("span", Ro, L(Y.value.nome), 1), Y.value.subtitulo ? (M(), h("span", zo, L(Y.value.subtitulo), 1)) : m("", !0)])], 6)) : m("", !0)
|
|
5520
|
+
], 4), e.readonly ? m("", !0) : (M(), h("div", Bo, [
|
|
5475
5521
|
c.value ? (M(), h("button", {
|
|
5476
5522
|
key: 0,
|
|
5477
5523
|
type: "button",
|
|
@@ -5480,8 +5526,8 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5480
5526
|
"aria-label": C.value,
|
|
5481
5527
|
title: C.value,
|
|
5482
5528
|
onClick: S
|
|
5483
|
-
}, [g("i", { class: k(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (M(), h("span",
|
|
5484
|
-
g("div",
|
|
5529
|
+
}, [g("i", { class: k(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (M(), h("span", Ho, L(e.modelValue.length), 1)) : m("", !0)], 8, Vo)) : m("", !0),
|
|
5530
|
+
g("div", Uo, [b(R(he), null, {
|
|
5485
5531
|
default: V(() => [b(R(ge), { class: "pi pi-search" }), b(R(q), {
|
|
5486
5532
|
modelValue: ae.value,
|
|
5487
5533
|
"onUpdate:modelValue": n[0] ||= (e) => ae.value = e,
|
|
@@ -5495,13 +5541,13 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5495
5541
|
"aria-label"
|
|
5496
5542
|
])]),
|
|
5497
5543
|
_: 1
|
|
5498
|
-
}), g("div",
|
|
5544
|
+
}), g("div", Wo, [g("span", Go, L(re.value), 1), g("button", {
|
|
5499
5545
|
type: "button",
|
|
5500
5546
|
class: "w-map-select__clear",
|
|
5501
5547
|
disabled: e.disabled || !e.modelValue.length,
|
|
5502
5548
|
onClick: A
|
|
5503
|
-
}, L(e.clearLabel), 9,
|
|
5504
|
-
g("ul",
|
|
5549
|
+
}, L(e.clearLabel), 9, Ko)])]),
|
|
5550
|
+
g("ul", qo, [(M(!0), h(d, null, F(se.value, (n) => (M(), h("li", { key: n.id }, [I(t.$slots, "item", {
|
|
5505
5551
|
feature: n,
|
|
5506
5552
|
selected: E(n.id)
|
|
5507
5553
|
}, () => [g("button", {
|
|
@@ -5511,11 +5557,11 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5511
5557
|
disabled: e.disabled,
|
|
5512
5558
|
onClick: (e) => D(n.id)
|
|
5513
5559
|
}, [
|
|
5514
|
-
g("span",
|
|
5515
|
-
g("span",
|
|
5516
|
-
n.geometria ? m("", !0) : (M(), h("i",
|
|
5517
|
-
n.area == null ? m("", !0) : (M(), h("span",
|
|
5518
|
-
], 10,
|
|
5560
|
+
g("span", Yo, [E(n.id) ? (M(), h("i", Xo)) : m("", !0)]),
|
|
5561
|
+
g("span", Zo, [g("span", Qo, L(n.nome), 1), n.subtitulo ? (M(), h("span", $o, L(n.subtitulo), 1)) : m("", !0)]),
|
|
5562
|
+
n.geometria ? m("", !0) : (M(), h("i", es)),
|
|
5563
|
+
n.area == null ? m("", !0) : (M(), h("span", ts, L(ce(n)), 1))
|
|
5564
|
+
], 10, Jo)])]))), 128)), se.value.length ? m("", !0) : (M(), h("li", ns, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])]))])
|
|
5519
5565
|
]))]), l.value ? (M(), h("div", {
|
|
5520
5566
|
key: 0,
|
|
5521
5567
|
ref_key: "footer",
|
|
@@ -5524,13 +5570,13 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5524
5570
|
}, [I(t.$slots, "footer", {
|
|
5525
5571
|
area: N.value,
|
|
5526
5572
|
features: ne.value
|
|
5527
|
-
}, () => [g("span",
|
|
5573
|
+
}, () => [g("span", rs, [
|
|
5528
5574
|
y(L(e.areaLabel) + " ", 1),
|
|
5529
5575
|
g("strong", null, L(ue.value), 1),
|
|
5530
|
-
g("span",
|
|
5576
|
+
g("span", is, L(e.areaSuffix), 1)
|
|
5531
5577
|
])])], 512)) : m("", !0)], 2));
|
|
5532
5578
|
}
|
|
5533
|
-
}),
|
|
5579
|
+
}), cs = {
|
|
5534
5580
|
nota: {
|
|
5535
5581
|
tone: "nota",
|
|
5536
5582
|
label: "Nota",
|
|
@@ -5576,7 +5622,7 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5576
5622
|
label: "Em aberto",
|
|
5577
5623
|
icon: "pi pi-question-circle"
|
|
5578
5624
|
}
|
|
5579
|
-
},
|
|
5625
|
+
}, ls = {
|
|
5580
5626
|
note: "nota",
|
|
5581
5627
|
info: "nota",
|
|
5582
5628
|
observacao: "nota",
|
|
@@ -5603,19 +5649,19 @@ var jo = { class: "w-map-select__body" }, Mo = {
|
|
|
5603
5649
|
help: "pergunta",
|
|
5604
5650
|
duvida: "pergunta"
|
|
5605
5651
|
};
|
|
5606
|
-
function
|
|
5652
|
+
function us(e) {
|
|
5607
5653
|
return e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
5608
5654
|
}
|
|
5609
|
-
function
|
|
5610
|
-
let t =
|
|
5611
|
-
return
|
|
5655
|
+
function ds(e) {
|
|
5656
|
+
let t = us(e);
|
|
5657
|
+
return cs[t] ?? cs[ls[t]] ?? null;
|
|
5612
5658
|
}
|
|
5613
|
-
var
|
|
5614
|
-
function
|
|
5659
|
+
var fs = new Ne().utils.escapeHtml;
|
|
5660
|
+
function ps(e, t) {
|
|
5615
5661
|
let n = t?.trim() || e.label;
|
|
5616
|
-
return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${
|
|
5662
|
+
return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${fs(n)}</p><div class="md-alert__body">`;
|
|
5617
5663
|
}
|
|
5618
|
-
var
|
|
5664
|
+
var ms = "</div></div>", hs = {
|
|
5619
5665
|
bash: () => import("highlight.js/lib/languages/bash"),
|
|
5620
5666
|
python: () => import("highlight.js/lib/languages/python"),
|
|
5621
5667
|
javascript: () => import("highlight.js/lib/languages/javascript"),
|
|
@@ -5629,7 +5675,7 @@ var us = "</div></div>", ds = {
|
|
|
5629
5675
|
ini: () => import("highlight.js/lib/languages/ini"),
|
|
5630
5676
|
markdown: () => import("highlight.js/lib/languages/markdown"),
|
|
5631
5677
|
dockerfile: () => import("highlight.js/lib/languages/dockerfile")
|
|
5632
|
-
},
|
|
5678
|
+
}, gs = {
|
|
5633
5679
|
sh: "bash",
|
|
5634
5680
|
shell: "bash",
|
|
5635
5681
|
zsh: "bash",
|
|
@@ -5657,28 +5703,28 @@ var us = "</div></div>", ds = {
|
|
|
5657
5703
|
postgres: "sql",
|
|
5658
5704
|
postgresql: "sql",
|
|
5659
5705
|
docker: "dockerfile"
|
|
5660
|
-
},
|
|
5661
|
-
function
|
|
5662
|
-
return
|
|
5706
|
+
}, _s = null, vs = null;
|
|
5707
|
+
function ys() {
|
|
5708
|
+
return _s !== null;
|
|
5663
5709
|
}
|
|
5664
|
-
async function
|
|
5665
|
-
if (
|
|
5666
|
-
|
|
5710
|
+
async function bs() {
|
|
5711
|
+
if (_s || vs) return vs ?? void 0;
|
|
5712
|
+
vs = (async () => {
|
|
5667
5713
|
let e = (await import("highlight.js/lib/core")).default;
|
|
5668
|
-
await Promise.all(Object.entries(
|
|
5714
|
+
await Promise.all(Object.entries(hs).map(async ([t, n]) => {
|
|
5669
5715
|
let r = await n();
|
|
5670
5716
|
e.registerLanguage(t, r.default);
|
|
5671
|
-
})),
|
|
5672
|
-
})(), await
|
|
5717
|
+
})), _s = (t, n) => e.highlight(t, { language: n }).value;
|
|
5718
|
+
})(), await vs;
|
|
5673
5719
|
}
|
|
5674
|
-
function
|
|
5675
|
-
let t =
|
|
5676
|
-
return
|
|
5720
|
+
function xs(e) {
|
|
5721
|
+
let t = us(e);
|
|
5722
|
+
return gs[t] ?? t;
|
|
5677
5723
|
}
|
|
5678
|
-
function
|
|
5679
|
-
return
|
|
5724
|
+
function Ss(e) {
|
|
5725
|
+
return us(e).replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-") || "secao";
|
|
5680
5726
|
}
|
|
5681
|
-
var
|
|
5727
|
+
var Cs = /* @__PURE__ */ new Set([
|
|
5682
5728
|
"detalhes",
|
|
5683
5729
|
"details",
|
|
5684
5730
|
"passos",
|
|
@@ -5689,8 +5735,8 @@ var ys = /* @__PURE__ */ new Set([
|
|
|
5689
5735
|
"tabs",
|
|
5690
5736
|
"aba",
|
|
5691
5737
|
"tab"
|
|
5692
|
-
]),
|
|
5693
|
-
function
|
|
5738
|
+
]), ws = /^\s*([^\s]+)\s*(.*)$/;
|
|
5739
|
+
function Ts() {
|
|
5694
5740
|
let e = new Ne({
|
|
5695
5741
|
html: !1,
|
|
5696
5742
|
linkify: !0,
|
|
@@ -5702,16 +5748,16 @@ function xs() {
|
|
|
5702
5748
|
3,
|
|
5703
5749
|
4
|
|
5704
5750
|
],
|
|
5705
|
-
slugify:
|
|
5751
|
+
slugify: Ss,
|
|
5706
5752
|
permalink: Z.permalink.linkInsideHeader({
|
|
5707
5753
|
symbol: "",
|
|
5708
5754
|
class: "md-anchor",
|
|
5709
5755
|
placement: "after",
|
|
5710
5756
|
ariaHidden: !0
|
|
5711
5757
|
})
|
|
5712
|
-
}),
|
|
5758
|
+
}), Es(e), Os(e), ks(e), As(e), js(e), Ms(e), Ns(e), e;
|
|
5713
5759
|
}
|
|
5714
|
-
function
|
|
5760
|
+
function Es(e) {
|
|
5715
5761
|
e.core.ruler.after("block", "lz_alerta", (e) => {
|
|
5716
5762
|
let t = e.tokens;
|
|
5717
5763
|
for (let e = 0; e < t.length; e += 1) {
|
|
@@ -5721,9 +5767,9 @@ function Ss(e) {
|
|
|
5721
5767
|
if (r?.type !== "paragraph_open" || i?.type !== "inline") continue;
|
|
5722
5768
|
let a = /^\[!([^\]\n]+)\][ \t]*([^\n]*)\n?/.exec(i.content);
|
|
5723
5769
|
if (!a) continue;
|
|
5724
|
-
let o =
|
|
5770
|
+
let o = ds(a[1]);
|
|
5725
5771
|
if (!o) continue;
|
|
5726
|
-
let s =
|
|
5772
|
+
let s = Ds(t, e);
|
|
5727
5773
|
s && (i.content = i.content.slice(a[0].length), n.type = "lz_alerta_open", n.tag = "div", n.meta = {
|
|
5728
5774
|
spec: o,
|
|
5729
5775
|
titulo: a[2]
|
|
@@ -5732,10 +5778,10 @@ function Ss(e) {
|
|
|
5732
5778
|
return !0;
|
|
5733
5779
|
}), e.renderer.rules.lz_alerta_open = (e, t) => {
|
|
5734
5780
|
let n = e[t].meta;
|
|
5735
|
-
return
|
|
5736
|
-
}, e.renderer.rules.lz_alerta_close = () =>
|
|
5781
|
+
return ps(n.spec, n.titulo);
|
|
5782
|
+
}, e.renderer.rules.lz_alerta_close = () => ms;
|
|
5737
5783
|
}
|
|
5738
|
-
function
|
|
5784
|
+
function Ds(e, t) {
|
|
5739
5785
|
let n = 0;
|
|
5740
5786
|
for (let r = t; r < e.length; r += 1) {
|
|
5741
5787
|
let t = e[r];
|
|
@@ -5744,37 +5790,37 @@ function Cs(e, t) {
|
|
|
5744
5790
|
}
|
|
5745
5791
|
return null;
|
|
5746
5792
|
}
|
|
5747
|
-
function
|
|
5793
|
+
function Os(e) {
|
|
5748
5794
|
let t = [];
|
|
5749
5795
|
e.use(Q, "lz", {
|
|
5750
5796
|
validate: (e) => {
|
|
5751
|
-
let t =
|
|
5797
|
+
let t = ws.exec(e);
|
|
5752
5798
|
if (!t) return !1;
|
|
5753
|
-
let n =
|
|
5754
|
-
return
|
|
5799
|
+
let n = us(t[1]);
|
|
5800
|
+
return Cs.has(n) || ds(n) !== null;
|
|
5755
5801
|
},
|
|
5756
5802
|
render: (e, n) => {
|
|
5757
5803
|
let r = e[n];
|
|
5758
5804
|
if (r.nesting !== 1) {
|
|
5759
5805
|
let e = t.pop();
|
|
5760
|
-
return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${
|
|
5806
|
+
return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${ms}\n` : "</div>\n";
|
|
5761
5807
|
}
|
|
5762
|
-
let i =
|
|
5808
|
+
let i = ws.exec(r.info) ?? [
|
|
5763
5809
|
"",
|
|
5764
5810
|
"",
|
|
5765
5811
|
""
|
|
5766
|
-
], a =
|
|
5767
|
-
if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${
|
|
5812
|
+
], a = us(i[1]), o = i[2]?.trim();
|
|
5813
|
+
if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${fs(o || "Detalhes")}</summary><div class="md-details__body">`;
|
|
5768
5814
|
if (a === "passos" || a === "steps") return t.push("bloco"), "<div class=\"md-steps\">";
|
|
5769
5815
|
if (a === "cards" || a === "grade") return t.push("bloco"), "<div class=\"md-cards\">";
|
|
5770
5816
|
if (a === "abas" || a === "tabs") return t.push("bloco"), "<div class=\"md-tabs\" data-md-tabs>";
|
|
5771
|
-
if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${
|
|
5772
|
-
let s =
|
|
5773
|
-
return s ? (t.push("alerta"),
|
|
5817
|
+
if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${fs(o || "Aba")}">`;
|
|
5818
|
+
let s = ds(a);
|
|
5819
|
+
return s ? (t.push("alerta"), ps(s, o)) : (t.push("bloco"), "<div>");
|
|
5774
5820
|
}
|
|
5775
5821
|
});
|
|
5776
5822
|
}
|
|
5777
|
-
function
|
|
5823
|
+
function ks(e) {
|
|
5778
5824
|
e.core.ruler.after("inline", "lz_tarefas", (e) => {
|
|
5779
5825
|
let t = e.tokens;
|
|
5780
5826
|
for (let n = 2; n < t.length; n += 1) {
|
|
@@ -5791,26 +5837,26 @@ function Ts(e) {
|
|
|
5791
5837
|
return !0;
|
|
5792
5838
|
});
|
|
5793
5839
|
}
|
|
5794
|
-
function
|
|
5840
|
+
function As(e) {
|
|
5795
5841
|
e.renderer.rules.fence = (e, t) => {
|
|
5796
|
-
let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a =
|
|
5797
|
-
if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${
|
|
5798
|
-
let s =
|
|
5799
|
-
return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${
|
|
5842
|
+
let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a = xs(i), o = /title="([^"]*)"/.exec(r)?.[1];
|
|
5843
|
+
if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${fs(n.content)}</pre>` + (o ? `<figcaption>${fs(o)}</figcaption>` : "") + "</figure>\n";
|
|
5844
|
+
let s = _s && hs[a] ? _s(n.content, a) : fs(n.content);
|
|
5845
|
+
return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${fs(o ?? "")}</span><span class="md-code__lang">${fs(i)}</span></div>` : ""}<pre class="md-code__pre"><code class="hljs language-${fs(a)}">${s}</code></pre></div>\n`;
|
|
5800
5846
|
};
|
|
5801
5847
|
}
|
|
5802
|
-
function
|
|
5848
|
+
function js(e) {
|
|
5803
5849
|
let t = e.renderer.rules.table_open;
|
|
5804
5850
|
e.renderer.rules.table_open = (e, n, r, i, a) => `<div class="md-table">${t ? t(e, n, r, i, a) : a.renderToken(e, n, r)}`, e.renderer.rules.table_close = (e, t, n, r, i) => `${i.renderToken(e, t, n)}</div>`;
|
|
5805
5851
|
}
|
|
5806
|
-
function
|
|
5852
|
+
function Ms(e) {
|
|
5807
5853
|
let t = e.renderer.rules.link_open;
|
|
5808
5854
|
e.renderer.rules.link_open = (e, n, r, i, a) => {
|
|
5809
5855
|
let o = String(e[n].attrGet("href") ?? "");
|
|
5810
5856
|
return /^https?:\/\//i.test(o) && (e[n].attrSet("target", "_blank"), e[n].attrSet("rel", "noopener noreferrer"), e[n].attrJoin("class", "md-link-externo")), t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
|
|
5811
5857
|
};
|
|
5812
5858
|
}
|
|
5813
|
-
function
|
|
5859
|
+
function Ns(e) {
|
|
5814
5860
|
e.core.ruler.after("inline", "lz_figuras", (e) => {
|
|
5815
5861
|
let t = e.tokens;
|
|
5816
5862
|
for (let e = 1; e < t.length - 1; e += 1) {
|
|
@@ -5826,17 +5872,17 @@ function ks(e) {
|
|
|
5826
5872
|
let o = t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
|
|
5827
5873
|
if (!e[n].meta?.figura) return o;
|
|
5828
5874
|
let s = e[n].content?.trim();
|
|
5829
|
-
return s ? `${o}<figcaption>${
|
|
5875
|
+
return s ? `${o}<figcaption>${fs(s)}</figcaption>` : o;
|
|
5830
5876
|
};
|
|
5831
5877
|
}
|
|
5832
|
-
var
|
|
5833
|
-
function
|
|
5834
|
-
return
|
|
5878
|
+
var Ps = null;
|
|
5879
|
+
function Fs() {
|
|
5880
|
+
return Ps ||= Ts(), Ps;
|
|
5835
5881
|
}
|
|
5836
|
-
function
|
|
5882
|
+
function Is(e) {
|
|
5837
5883
|
return (e.children ?? []).filter((e) => e.type === "text" || e.type === "code_inline").map((e) => e.content).join("").trim();
|
|
5838
5884
|
}
|
|
5839
|
-
function
|
|
5885
|
+
function Ls(e) {
|
|
5840
5886
|
let t = [];
|
|
5841
5887
|
for (let n = 0; n < e.length; n += 1) {
|
|
5842
5888
|
let r = e[n];
|
|
@@ -5846,13 +5892,13 @@ function Ns(e) {
|
|
|
5846
5892
|
let a = String(r.attrGet("id") ?? ""), o = e[n + 1];
|
|
5847
5893
|
!a || o?.type !== "inline" || t.push({
|
|
5848
5894
|
id: a,
|
|
5849
|
-
text:
|
|
5895
|
+
text: Is(o),
|
|
5850
5896
|
level: i
|
|
5851
5897
|
});
|
|
5852
5898
|
}
|
|
5853
5899
|
return t;
|
|
5854
5900
|
}
|
|
5855
|
-
function
|
|
5901
|
+
function Rs(e) {
|
|
5856
5902
|
return Pe.sanitize(e, { ADD_ATTR: [
|
|
5857
5903
|
"target",
|
|
5858
5904
|
"open",
|
|
@@ -5860,16 +5906,16 @@ function Ps(e) {
|
|
|
5860
5906
|
"disabled"
|
|
5861
5907
|
] });
|
|
5862
5908
|
}
|
|
5863
|
-
function
|
|
5864
|
-
let t =
|
|
5909
|
+
function zs(e) {
|
|
5910
|
+
let t = Fs(), n = {}, r = t.parse(e ?? "", n);
|
|
5865
5911
|
return {
|
|
5866
|
-
html:
|
|
5867
|
-
headings:
|
|
5912
|
+
html: Rs(t.renderer.render(r, t.options, n)),
|
|
5913
|
+
headings: Ls(r)
|
|
5868
5914
|
};
|
|
5869
5915
|
}
|
|
5870
5916
|
//#endregion
|
|
5871
5917
|
//#region src/utils/markdownEnhance.ts
|
|
5872
|
-
function
|
|
5918
|
+
function Bs(e) {
|
|
5873
5919
|
e.querySelectorAll("[data-md-code]").forEach((e) => {
|
|
5874
5920
|
if (e.dataset.mdPronto) return;
|
|
5875
5921
|
e.dataset.mdPronto = "1";
|
|
@@ -5884,7 +5930,7 @@ function Is(e) {
|
|
|
5884
5930
|
}), e.appendChild(t);
|
|
5885
5931
|
});
|
|
5886
5932
|
}
|
|
5887
|
-
function
|
|
5933
|
+
function Vs(e) {
|
|
5888
5934
|
let t = Array.from(e.querySelectorAll(".md-tabs__panel")).filter((e) => !e.parentElement?.hasAttribute("data-md-tabs")), n = /* @__PURE__ */ new Set();
|
|
5889
5935
|
t.forEach((e) => {
|
|
5890
5936
|
if (n.has(e)) return;
|
|
@@ -5895,8 +5941,8 @@ function Ls(e) {
|
|
|
5895
5941
|
i.className = "md-tabs", i.setAttribute("data-md-tabs", ""), e.before(i), t.forEach((e) => i.appendChild(e));
|
|
5896
5942
|
});
|
|
5897
5943
|
}
|
|
5898
|
-
function
|
|
5899
|
-
|
|
5944
|
+
function Hs(e) {
|
|
5945
|
+
Vs(e), e.querySelectorAll("[data-md-tabs]").forEach((e, t) => {
|
|
5900
5946
|
if (e.dataset.mdPronto) return;
|
|
5901
5947
|
let n = Array.from(e.querySelectorAll(":scope > .md-tabs__panel"));
|
|
5902
5948
|
if (!n.length) return;
|
|
@@ -5918,11 +5964,11 @@ function Rs(e) {
|
|
|
5918
5964
|
e.prepend(r), a(0);
|
|
5919
5965
|
});
|
|
5920
5966
|
}
|
|
5921
|
-
var
|
|
5922
|
-
async function
|
|
5923
|
-
return
|
|
5967
|
+
var Us = null, Ws = 0;
|
|
5968
|
+
async function Gs() {
|
|
5969
|
+
return Us ||= import("mermaid").then((e) => e.default), Us;
|
|
5924
5970
|
}
|
|
5925
|
-
var
|
|
5971
|
+
var Ks = /* @__PURE__ */ new Set([
|
|
5926
5972
|
"script",
|
|
5927
5973
|
"iframe",
|
|
5928
5974
|
"object",
|
|
@@ -5938,59 +5984,59 @@ var Hs = /* @__PURE__ */ new Set([
|
|
|
5938
5984
|
"animate",
|
|
5939
5985
|
"set"
|
|
5940
5986
|
]);
|
|
5941
|
-
function
|
|
5987
|
+
function qs(e) {
|
|
5942
5988
|
for (let t of Array.from(e.attributes)) {
|
|
5943
5989
|
let n = t.name.toLowerCase(), r = t.value.trim().toLowerCase(), i = n === "href" || n === "xlink:href" || n === "src";
|
|
5944
5990
|
(n.startsWith("on") || i && /^(javascript|data|vbscript):/.test(r)) && e.removeAttribute(t.name);
|
|
5945
5991
|
}
|
|
5946
|
-
for (let t of Array.from(e.children))
|
|
5992
|
+
for (let t of Array.from(e.children)) Ks.has(t.localName.toLowerCase()) ? t.remove() : qs(t);
|
|
5947
5993
|
}
|
|
5948
|
-
function
|
|
5994
|
+
function Js(e) {
|
|
5949
5995
|
let t = new DOMParser().parseFromString(e, "image/svg+xml");
|
|
5950
5996
|
if (t.querySelector("parsererror")) return null;
|
|
5951
5997
|
let n = t.documentElement;
|
|
5952
|
-
return n.localName.toLowerCase() === "svg" ? (
|
|
5998
|
+
return n.localName.toLowerCase() === "svg" ? (qs(n), n) : null;
|
|
5953
5999
|
}
|
|
5954
|
-
function
|
|
6000
|
+
function Ys(e, t, n) {
|
|
5955
6001
|
return e.getPropertyValue(t).trim() || n;
|
|
5956
6002
|
}
|
|
5957
|
-
function
|
|
5958
|
-
let t = getComputedStyle(document.documentElement), n =
|
|
6003
|
+
function Xs(e) {
|
|
6004
|
+
let t = getComputedStyle(document.documentElement), n = Ys(t, "--surface", "#ffffff"), r = Ys(t, "--fg", "#141a22"), i = Ys(t, "--primary", "#1f5092"), a = Ys(t, "--primary-soft", "#eef4fb"), o = Ys(t, "--border-strong", "#cdd6e2");
|
|
5959
6005
|
e.initialize({
|
|
5960
6006
|
startOnLoad: !1,
|
|
5961
6007
|
securityLevel: "strict",
|
|
5962
6008
|
theme: "base",
|
|
5963
|
-
fontFamily:
|
|
6009
|
+
fontFamily: Ys(t, "--font-sans", "inherit"),
|
|
5964
6010
|
flowchart: { useMaxWidth: !0 },
|
|
5965
6011
|
themeVariables: {
|
|
5966
6012
|
background: n,
|
|
5967
6013
|
primaryColor: a,
|
|
5968
6014
|
primaryTextColor: r,
|
|
5969
6015
|
primaryBorderColor: i,
|
|
5970
|
-
secondaryColor:
|
|
5971
|
-
tertiaryColor:
|
|
6016
|
+
secondaryColor: Ys(t, "--surface-3", "#eef2f7"),
|
|
6017
|
+
tertiaryColor: Ys(t, "--surface-2", "#f8fafc"),
|
|
5972
6018
|
lineColor: o,
|
|
5973
6019
|
textColor: r,
|
|
5974
6020
|
mainBkg: a,
|
|
5975
6021
|
nodeBorder: i,
|
|
5976
|
-
clusterBkg:
|
|
6022
|
+
clusterBkg: Ys(t, "--surface-2", "#f8fafc"),
|
|
5977
6023
|
clusterBorder: o,
|
|
5978
6024
|
fontSize: "13px"
|
|
5979
6025
|
}
|
|
5980
6026
|
});
|
|
5981
6027
|
}
|
|
5982
|
-
async function
|
|
6028
|
+
async function Zs(e, t = !1) {
|
|
5983
6029
|
let n = Array.from(e.querySelectorAll("[data-md-mermaid]")).filter((e) => t || !e.dataset.mdEstado);
|
|
5984
6030
|
if (!n.length) return;
|
|
5985
|
-
let r = await
|
|
5986
|
-
|
|
6031
|
+
let r = await Gs();
|
|
6032
|
+
Xs(r);
|
|
5987
6033
|
for (let e of n) {
|
|
5988
6034
|
let t = e.querySelector(".md-mermaid__fonte")?.textContent ?? "";
|
|
5989
6035
|
if (t.trim()) {
|
|
5990
6036
|
e.querySelector(".md-mermaid__svg")?.remove();
|
|
5991
6037
|
try {
|
|
5992
|
-
|
|
5993
|
-
let { svg: n } = await r.render(`md-diagrama-${
|
|
6038
|
+
Ws += 1;
|
|
6039
|
+
let { svg: n } = await r.render(`md-diagrama-${Ws}`, t), i = Js(n);
|
|
5994
6040
|
if (!i) {
|
|
5995
6041
|
e.dataset.mdEstado = "erro";
|
|
5996
6042
|
continue;
|
|
@@ -6003,15 +6049,15 @@ async function qs(e, t = !1) {
|
|
|
6003
6049
|
}
|
|
6004
6050
|
}
|
|
6005
6051
|
}
|
|
6006
|
-
async function
|
|
6007
|
-
e && (
|
|
6052
|
+
async function Qs(e) {
|
|
6053
|
+
e && (Bs(e), Hs(e), await Zs(e));
|
|
6008
6054
|
}
|
|
6009
6055
|
//#endregion
|
|
6010
6056
|
//#region src/components/ui/WMarkdownView.vue?vue&type=script&setup=true&lang.ts
|
|
6011
|
-
var
|
|
6057
|
+
var $s = {
|
|
6012
6058
|
key: 0,
|
|
6013
6059
|
class: "w-markdown-view w-markdown-view--empty"
|
|
6014
|
-
},
|
|
6060
|
+
}, ec = ["innerHTML"], tc = /* @__PURE__ */ x({
|
|
6015
6061
|
__name: "WMarkdownView",
|
|
6016
6062
|
props: {
|
|
6017
6063
|
source: {},
|
|
@@ -6019,42 +6065,42 @@ var Ys = {
|
|
|
6019
6065
|
},
|
|
6020
6066
|
emits: ["headings"],
|
|
6021
6067
|
setup(e, { emit: t }) {
|
|
6022
|
-
let n = e, r = t, i = P(null), a = P(
|
|
6023
|
-
B(o, (e) => r("headings", e.headings), { immediate: !0 }), B(s, () => void O(() =>
|
|
6068
|
+
let n = e, r = t, i = P(null), a = P(ys()), o = f(() => (a.value, zs(n.source ?? ""))), s = f(() => o.value.html), c = f(() => !n.source || !n.source.trim());
|
|
6069
|
+
B(o, (e) => r("headings", e.headings), { immediate: !0 }), B(s, () => void O(() => Qs(i.value)));
|
|
6024
6070
|
let l = null;
|
|
6025
6071
|
function u() {
|
|
6026
|
-
typeof MutationObserver > "u" || (l = new MutationObserver(() => void
|
|
6072
|
+
typeof MutationObserver > "u" || (l = new MutationObserver(() => void Zs(i.value, !0)), l.observe(document.documentElement, {
|
|
6027
6073
|
attributes: !0,
|
|
6028
6074
|
attributeFilter: ["class"]
|
|
6029
6075
|
}));
|
|
6030
6076
|
}
|
|
6031
6077
|
return te(async () => {
|
|
6032
|
-
await O(), await
|
|
6033
|
-
}), ee(() => l?.disconnect()), (t, n) => c.value ? (M(), h("div",
|
|
6078
|
+
await O(), await Qs(i.value), u(), a.value ||= (await bs(), !0);
|
|
6079
|
+
}), ee(() => l?.disconnect()), (t, n) => c.value ? (M(), h("div", $s, L(e.emptyText), 1)) : (M(), h("div", {
|
|
6034
6080
|
key: 1,
|
|
6035
6081
|
ref_key: "raiz",
|
|
6036
6082
|
ref: i,
|
|
6037
6083
|
class: "w-markdown-view",
|
|
6038
6084
|
innerHTML: s.value
|
|
6039
|
-
}, null, 8,
|
|
6085
|
+
}, null, 8, ec));
|
|
6040
6086
|
}
|
|
6041
|
-
}),
|
|
6087
|
+
}), nc = {
|
|
6042
6088
|
class: "w-markdown-editor__toolbar",
|
|
6043
6089
|
role: "toolbar",
|
|
6044
6090
|
"aria-label": "Formatação markdown"
|
|
6045
|
-
},
|
|
6091
|
+
}, rc = [
|
|
6046
6092
|
"aria-label",
|
|
6047
6093
|
"title",
|
|
6048
6094
|
"disabled",
|
|
6049
6095
|
"onClick"
|
|
6050
|
-
],
|
|
6096
|
+
], ic = ["aria-pressed"], ac = ["aria-pressed"], oc = {
|
|
6051
6097
|
key: 0,
|
|
6052
6098
|
class: "w-markdown-editor__ajuda"
|
|
6053
|
-
},
|
|
6099
|
+
}, sc = [
|
|
6054
6100
|
"value",
|
|
6055
6101
|
"disabled",
|
|
6056
6102
|
"placeholder"
|
|
6057
|
-
],
|
|
6103
|
+
], cc = /* @__PURE__ */ x({
|
|
6058
6104
|
__name: "WMarkdownEditor",
|
|
6059
6105
|
props: {
|
|
6060
6106
|
modelValue: {},
|
|
@@ -6236,7 +6282,7 @@ var Ys = {
|
|
|
6236
6282
|
}
|
|
6237
6283
|
];
|
|
6238
6284
|
return (t, n) => (M(), h("div", { class: k(["w-markdown-editor", { "w-markdown-editor--split": o.value }]) }, [
|
|
6239
|
-
g("div",
|
|
6285
|
+
g("div", nc, [
|
|
6240
6286
|
(M(), h(d, null, F(ie, (t) => g("button", {
|
|
6241
6287
|
key: t.label,
|
|
6242
6288
|
type: "button",
|
|
@@ -6256,7 +6302,7 @@ var Ys = {
|
|
|
6256
6302
|
"w-markdown-editor__glyph--italic": t.glyph === "I"
|
|
6257
6303
|
}]),
|
|
6258
6304
|
"aria-hidden": "true"
|
|
6259
|
-
}, L(t.glyph), 3))], 8,
|
|
6305
|
+
}, L(t.glyph), 3))], 8, rc)), 64)),
|
|
6260
6306
|
g("button", {
|
|
6261
6307
|
type: "button",
|
|
6262
6308
|
class: k(["w-markdown-editor__tool w-markdown-editor__tool--ajuda", { "w-markdown-editor__tool--active": N.value }]),
|
|
@@ -6267,7 +6313,7 @@ var Ys = {
|
|
|
6267
6313
|
}, [...n[1] ||= [g("i", {
|
|
6268
6314
|
class: "pi pi-question-circle",
|
|
6269
6315
|
"aria-hidden": "true"
|
|
6270
|
-
}, null, -1)]], 10,
|
|
6316
|
+
}, null, -1)]], 10, ic),
|
|
6271
6317
|
o.value ? m("", !0) : (M(), h("button", {
|
|
6272
6318
|
key: 0,
|
|
6273
6319
|
type: "button",
|
|
@@ -6279,9 +6325,9 @@ var Ys = {
|
|
|
6279
6325
|
}, [g("i", {
|
|
6280
6326
|
class: k(a.value ? "pi pi-pencil" : "pi pi-eye"),
|
|
6281
6327
|
"aria-hidden": "true"
|
|
6282
|
-
}, null, 2)], 10,
|
|
6328
|
+
}, null, 2)], 10, ac))
|
|
6283
6329
|
]),
|
|
6284
|
-
N.value ? (M(), h("dl",
|
|
6330
|
+
N.value ? (M(), h("dl", oc, [(M(), h(d, null, F(re, (e) => (M(), h(d, { key: e.sintaxe }, [g("dt", null, L(e.sintaxe), 1), g("dd", null, L(e.efeito), 1)], 64))), 64))])) : m("", !0),
|
|
6285
6331
|
g("div", {
|
|
6286
6332
|
class: "w-markdown-editor__body",
|
|
6287
6333
|
style: j({
|
|
@@ -6298,7 +6344,7 @@ var Ys = {
|
|
|
6298
6344
|
placeholder: e.placeholder,
|
|
6299
6345
|
spellcheck: "false",
|
|
6300
6346
|
onInput: l
|
|
6301
|
-
}, null, 40,
|
|
6347
|
+
}, null, 40, sc)) : m("", !0), c.value ? (M(), p(tc, {
|
|
6302
6348
|
key: 1,
|
|
6303
6349
|
class: "w-markdown-editor__preview",
|
|
6304
6350
|
source: e.modelValue,
|
|
@@ -6306,28 +6352,28 @@ var Ys = {
|
|
|
6306
6352
|
}, null, 8, ["source"])) : m("", !0)], 4)
|
|
6307
6353
|
], 2));
|
|
6308
6354
|
}
|
|
6309
|
-
}),
|
|
6355
|
+
}), lc = {
|
|
6310
6356
|
key: 0,
|
|
6311
6357
|
class: "w-md-toc",
|
|
6312
6358
|
"aria-label": "Índice do documento"
|
|
6313
|
-
},
|
|
6359
|
+
}, uc = { class: "w-md-toc__titulo" }, dc = {
|
|
6314
6360
|
key: 0,
|
|
6315
6361
|
class: "w-md-toc__busca"
|
|
6316
|
-
},
|
|
6362
|
+
}, fc = { class: "w-md-toc__lista" }, pc = [
|
|
6317
6363
|
"aria-expanded",
|
|
6318
6364
|
"aria-label",
|
|
6319
6365
|
"onClick"
|
|
6320
|
-
],
|
|
6366
|
+
], mc = {
|
|
6321
6367
|
key: 1,
|
|
6322
6368
|
class: "w-md-toc__chevron w-md-toc__chevron--vazio",
|
|
6323
6369
|
"aria-hidden": "true"
|
|
6324
|
-
},
|
|
6370
|
+
}, hc = ["href", "onClick"], gc = {
|
|
6325
6371
|
key: 0,
|
|
6326
6372
|
class: "w-md-toc__lista"
|
|
6327
|
-
},
|
|
6373
|
+
}, _c = ["href", "onClick"], vc = {
|
|
6328
6374
|
key: 0,
|
|
6329
6375
|
class: "w-md-toc__vazio"
|
|
6330
|
-
},
|
|
6376
|
+
}, yc = /* @__PURE__ */ x({
|
|
6331
6377
|
__name: "WMarkdownToc",
|
|
6332
6378
|
props: {
|
|
6333
6379
|
headings: {},
|
|
@@ -6383,9 +6429,9 @@ var Ys = {
|
|
|
6383
6429
|
block: "start"
|
|
6384
6430
|
}));
|
|
6385
6431
|
}
|
|
6386
|
-
return B(() => t.headings, () => void O(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (M(), h("nav",
|
|
6387
|
-
g("p",
|
|
6388
|
-
e.searchable ? (M(), h("div",
|
|
6432
|
+
return B(() => t.headings, () => void O(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (M(), h("nav", lc, [
|
|
6433
|
+
g("p", uc, L(e.title), 1),
|
|
6434
|
+
e.searchable ? (M(), h("div", dc, [i[1] ||= g("i", {
|
|
6389
6435
|
class: "pi pi-search",
|
|
6390
6436
|
"aria-hidden": "true"
|
|
6391
6437
|
}, null, -1), H(g("input", {
|
|
@@ -6397,7 +6443,7 @@ var Ys = {
|
|
|
6397
6443
|
g("div", {
|
|
6398
6444
|
class: "w-md-toc__corpo",
|
|
6399
6445
|
style: j({ maxHeight: e.maxHeight })
|
|
6400
|
-
}, [g("ul",
|
|
6446
|
+
}, [g("ul", fc, [(M(!0), h(d, null, F(c.value, (e) => (M(), h("li", {
|
|
6401
6447
|
key: e.titulo.id,
|
|
6402
6448
|
class: "w-md-toc__grupo"
|
|
6403
6449
|
}, [g("div", { class: k(["w-md-toc__item w-md-toc__item--n2", { "w-md-toc__item--ativo": n.value === e.titulo.id }]) }, [e.filhos.length ? (M(), h("button", {
|
|
@@ -6410,19 +6456,19 @@ var Ys = {
|
|
|
6410
6456
|
}, [g("i", {
|
|
6411
6457
|
class: k(u(e) ? "pi pi-chevron-down" : "pi pi-chevron-right"),
|
|
6412
6458
|
"aria-hidden": "true"
|
|
6413
|
-
}, null, 2)], 8,
|
|
6459
|
+
}, null, 2)], 8, pc)) : (M(), h("span", mc)), g("a", {
|
|
6414
6460
|
href: `#${e.titulo.id}`,
|
|
6415
6461
|
onClick: W((t) => v(e.titulo.id), ["prevent"])
|
|
6416
|
-
}, L(e.titulo.text), 9,
|
|
6462
|
+
}, L(e.titulo.text), 9, hc)], 2), u(e) ? (M(), h("ul", gc, [(M(!0), h(d, null, F(e.filhos, (e) => (M(), h("li", {
|
|
6417
6463
|
key: e.id,
|
|
6418
6464
|
class: k(["w-md-toc__item w-md-toc__item--n3", { "w-md-toc__item--ativo": n.value === e.id }])
|
|
6419
6465
|
}, [g("a", {
|
|
6420
6466
|
href: `#${e.id}`,
|
|
6421
6467
|
onClick: W((t) => v(e.id), ["prevent"])
|
|
6422
|
-
}, L(e.text), 9,
|
|
6468
|
+
}, L(e.text), 9, _c)], 2))), 128))])) : m("", !0)]))), 128))]), l.value && !c.value.length ? (M(), h("p", vc, "Nenhuma seção encontrada")) : m("", !0)], 4)
|
|
6423
6469
|
])) : m("", !0);
|
|
6424
6470
|
}
|
|
6425
|
-
}),
|
|
6471
|
+
}), bc = /* @__PURE__ */ x({
|
|
6426
6472
|
name: "WDialog",
|
|
6427
6473
|
inheritAttrs: !1,
|
|
6428
6474
|
__name: "WDialog",
|
|
@@ -6433,16 +6479,16 @@ var Ys = {
|
|
|
6433
6479
|
fn: V((t) => [I(e.$slots, n, A(S(t ?? {})))])
|
|
6434
6480
|
}))]), 1040, ["append-to"]));
|
|
6435
6481
|
}
|
|
6436
|
-
}),
|
|
6482
|
+
}), xc = ["aria-label"], Sc = [
|
|
6437
6483
|
"aria-selected",
|
|
6438
6484
|
"tabindex",
|
|
6439
6485
|
"disabled",
|
|
6440
6486
|
"onClick",
|
|
6441
6487
|
"onKeydown"
|
|
6442
|
-
],
|
|
6488
|
+
], Cc = {
|
|
6443
6489
|
key: 1,
|
|
6444
6490
|
class: "w-tab-bar__badge"
|
|
6445
|
-
},
|
|
6491
|
+
}, wc = /* @__PURE__ */ x({
|
|
6446
6492
|
__name: "WTabBar",
|
|
6447
6493
|
props: {
|
|
6448
6494
|
modelValue: {},
|
|
@@ -6491,20 +6537,20 @@ var Ys = {
|
|
|
6491
6537
|
"aria-hidden": "true"
|
|
6492
6538
|
}, null, 2)) : m("", !0),
|
|
6493
6539
|
g("span", null, L(t.label), 1),
|
|
6494
|
-
t.badge !== void 0 && t.badge !== null ? (M(), h("span",
|
|
6495
|
-
], 42,
|
|
6540
|
+
t.badge !== void 0 && t.badge !== null ? (M(), h("span", Cc, L(t.badge), 1)) : m("", !0)
|
|
6541
|
+
], 42, Sc))), 128))], 8, xc));
|
|
6496
6542
|
}
|
|
6497
|
-
}),
|
|
6543
|
+
}), Tc = { class: "w-tab-nav" }, Ec = ["aria-label"], Dc = [
|
|
6498
6544
|
"tabindex",
|
|
6499
6545
|
"aria-selected",
|
|
6500
6546
|
"onClick",
|
|
6501
6547
|
"onAuxclick",
|
|
6502
6548
|
"onContextmenu",
|
|
6503
6549
|
"onKeydown"
|
|
6504
|
-
],
|
|
6550
|
+
], Oc = ["title"], kc = ["aria-label", "onClick"], Ac = ["aria-label", "onClick"], jc = {
|
|
6505
6551
|
key: 0,
|
|
6506
6552
|
class: "w-tab-nav__actions"
|
|
6507
|
-
},
|
|
6553
|
+
}, Mc = /* @__PURE__ */ x({
|
|
6508
6554
|
__name: "WTabNav",
|
|
6509
6555
|
props: {
|
|
6510
6556
|
tabs: {},
|
|
@@ -6601,7 +6647,7 @@ var Ys = {
|
|
|
6601
6647
|
let t = i.value[e]?.group;
|
|
6602
6648
|
return !!t && t !== i.value[e - 1]?.group;
|
|
6603
6649
|
}
|
|
6604
|
-
return (t, n) => (M(), h("div",
|
|
6650
|
+
return (t, n) => (M(), h("div", Tc, [
|
|
6605
6651
|
g("div", {
|
|
6606
6652
|
ref_key: "trilho",
|
|
6607
6653
|
ref: s,
|
|
@@ -6643,7 +6689,7 @@ var Ys = {
|
|
|
6643
6689
|
}, null, 2)) : m("", !0), g("span", {
|
|
6644
6690
|
class: "w-tab-nav__title",
|
|
6645
6691
|
title: e.title
|
|
6646
|
-
}, L(e.title), 9,
|
|
6692
|
+
}, L(e.title), 9, Oc)]),
|
|
6647
6693
|
g("button", {
|
|
6648
6694
|
type: "button",
|
|
6649
6695
|
class: "w-tab-nav__menu",
|
|
@@ -6653,7 +6699,7 @@ var Ys = {
|
|
|
6653
6699
|
}, [...n[0] ||= [g("i", {
|
|
6654
6700
|
class: "pi pi-ellipsis-v",
|
|
6655
6701
|
"aria-hidden": "true"
|
|
6656
|
-
}, null, -1)]], 8,
|
|
6702
|
+
}, null, -1)]], 8, kc),
|
|
6657
6703
|
e.closable ? (M(), h("button", {
|
|
6658
6704
|
key: 0,
|
|
6659
6705
|
type: "button",
|
|
@@ -6664,9 +6710,9 @@ var Ys = {
|
|
|
6664
6710
|
}, [...n[1] ||= [g("i", {
|
|
6665
6711
|
class: "pi pi-times",
|
|
6666
6712
|
"aria-hidden": "true"
|
|
6667
|
-
}, null, -1)]], 8,
|
|
6668
|
-
], 46,
|
|
6669
|
-
t.$slots.actions ? (M(), h("div",
|
|
6713
|
+
}, null, -1)]], 8, Ac)) : m("", !0)
|
|
6714
|
+
], 46, Dc)], 64))), 128))], 8, Ec),
|
|
6715
|
+
t.$slots.actions ? (M(), h("div", jc, [I(t.$slots, "actions")])) : m("", !0),
|
|
6670
6716
|
b(R(ve), {
|
|
6671
6717
|
ref_key: "menu",
|
|
6672
6718
|
ref: _,
|
|
@@ -6674,7 +6720,7 @@ var Ys = {
|
|
|
6674
6720
|
}, null, 8, ["model"])
|
|
6675
6721
|
]));
|
|
6676
6722
|
}
|
|
6677
|
-
}),
|
|
6723
|
+
}), Nc = x({
|
|
6678
6724
|
name: "WTabPane",
|
|
6679
6725
|
props: {
|
|
6680
6726
|
tab: {
|
|
@@ -6720,7 +6766,7 @@ var Ys = {
|
|
|
6720
6766
|
key: e.tab.remount
|
|
6721
6767
|
}) : null;
|
|
6722
6768
|
}
|
|
6723
|
-
}),
|
|
6769
|
+
}), Pc = { class: "w-tab-viewport" }, Fc = { class: "w-tab-viewport__scroll" }, Ic = /* @__PURE__ */ x({
|
|
6724
6770
|
__name: "WTabViewport",
|
|
6725
6771
|
props: { tabs: {} },
|
|
6726
6772
|
setup(e) {
|
|
@@ -6740,12 +6786,12 @@ var Ys = {
|
|
|
6740
6786
|
return B(r, (e) => {
|
|
6741
6787
|
let t = new Set(e.map((e) => e.key));
|
|
6742
6788
|
for (let e of i.keys()) t.has(e) || i.delete(e);
|
|
6743
|
-
}), (t, i) => (M(), h("div",
|
|
6789
|
+
}), (t, i) => (M(), h("div", Pc, [(M(!0), h(d, null, F(r.value, (t) => H((M(), h("div", {
|
|
6744
6790
|
key: `${t.key}#${t.remount}`,
|
|
6745
6791
|
ref_for: !0,
|
|
6746
6792
|
ref: (e) => o(t.key, e),
|
|
6747
6793
|
class: "w-tab-viewport__pane"
|
|
6748
|
-
}, [g("div",
|
|
6794
|
+
}, [g("div", Fc, [b(R(Nc), {
|
|
6749
6795
|
tab: t,
|
|
6750
6796
|
api: e.tabs,
|
|
6751
6797
|
active: t.key === n.value,
|
|
@@ -6757,26 +6803,26 @@ var Ys = {
|
|
|
6757
6803
|
"host-el"
|
|
6758
6804
|
])])])), [[z, t.key === n.value]])), 128))]));
|
|
6759
6805
|
}
|
|
6760
|
-
}),
|
|
6806
|
+
}), Lc = ["aria-busy"], Rc = { class: "w-kanban-board__header" }, zc = { class: "w-kanban-board__title" }, Bc = { class: "w-kanban-board__count" }, Vc = [
|
|
6761
6807
|
"aria-label",
|
|
6762
6808
|
"onDragover",
|
|
6763
6809
|
"onDragleave",
|
|
6764
6810
|
"onDrop"
|
|
6765
|
-
],
|
|
6811
|
+
], Hc = {
|
|
6766
6812
|
key: 0,
|
|
6767
6813
|
class: "w-kanban-board__indicator"
|
|
6768
|
-
},
|
|
6814
|
+
}, Uc = [
|
|
6769
6815
|
"draggable",
|
|
6770
6816
|
"onDragstart",
|
|
6771
6817
|
"onClick",
|
|
6772
6818
|
"onKeydown"
|
|
6773
|
-
],
|
|
6819
|
+
], Wc = { class: "w-kanban-board__card-fallback" }, Gc = {
|
|
6774
6820
|
key: 0,
|
|
6775
6821
|
class: "w-kanban-board__indicator"
|
|
6776
|
-
},
|
|
6822
|
+
}, Kc = {
|
|
6777
6823
|
key: 1,
|
|
6778
6824
|
class: "w-kanban-board__empty"
|
|
6779
|
-
},
|
|
6825
|
+
}, qc = /* @__PURE__ */ x({
|
|
6780
6826
|
__name: "WKanbanBoard",
|
|
6781
6827
|
props: {
|
|
6782
6828
|
columns: {},
|
|
@@ -6879,7 +6925,7 @@ var Ys = {
|
|
|
6879
6925
|
key: r.value,
|
|
6880
6926
|
class: k(["w-kanban-board__column", { "w-kanban-board__column--over": !!i.value && a.value?.column === r.value }]),
|
|
6881
6927
|
style: j(r.accent ? { "--w-kanban-accent": r.accent } : void 0)
|
|
6882
|
-
}, [g("header",
|
|
6928
|
+
}, [g("header", Rc, [I(t.$slots, "column-header", { column: r }, () => [g("span", zc, L(r.label), 1), g("span", Bc, L(r.items.length), 1)]), I(t.$slots, "column-action", { column: r })]), g("div", {
|
|
6883
6929
|
ref_for: !0,
|
|
6884
6930
|
ref: (e) => s(r.value, e),
|
|
6885
6931
|
class: "w-kanban-board__list",
|
|
@@ -6893,7 +6939,7 @@ var Ys = {
|
|
|
6893
6939
|
onDragleave: (e) => b(r, e),
|
|
6894
6940
|
onDrop: (e) => x(r, e)
|
|
6895
6941
|
}, [
|
|
6896
|
-
(M(!0), h(d, null, F(r.items, (e, n) => (M(), h(d, { key: String(c(e)) }, [T(r, n) ? (M(), h("div",
|
|
6942
|
+
(M(!0), h(d, null, F(r.items, (e, n) => (M(), h(d, { key: String(c(e)) }, [T(r, n) ? (M(), h("div", Hc)) : m("", !0), g("div", {
|
|
6897
6943
|
class: k(["w-kanban-board__card", {
|
|
6898
6944
|
"w-kanban-board__card--dragging": f(e),
|
|
6899
6945
|
"w-kanban-board__card--static": !u(e)
|
|
@@ -6908,13 +6954,13 @@ var Ys = {
|
|
|
6908
6954
|
}, [I(t.$slots, "card", {
|
|
6909
6955
|
item: e,
|
|
6910
6956
|
column: r
|
|
6911
|
-
}, () => [g("span",
|
|
6912
|
-
T(r, r.items.length) ? (M(), h("div",
|
|
6913
|
-
r.items.length ? m("", !0) : (M(), h("div",
|
|
6914
|
-
], 44,
|
|
6957
|
+
}, () => [g("span", Wc, L(l(e)), 1)])], 42, Uc)], 64))), 128)),
|
|
6958
|
+
T(r, r.items.length) ? (M(), h("div", Gc)) : m("", !0),
|
|
6959
|
+
r.items.length ? m("", !0) : (M(), h("div", Kc, [I(t.$slots, "empty-column", { column: r }, () => [n[0] ||= y("Nenhum item", -1)])]))
|
|
6960
|
+
], 44, Vc)], 6))), 128))], 10, Lc));
|
|
6915
6961
|
}
|
|
6916
6962
|
});
|
|
6917
6963
|
//#endregion
|
|
6918
|
-
export {
|
|
6964
|
+
export { _i as A, Gt as B, Ji as C, Ii as D, Fi as E, zn as F, mt as G, Nt as H, Rn as I, Je as J, vt as K, Fn as L, ui as M, Qr as N, Ri as O, Sr as P, Nn as R, $i as S, Vi as T, kt as U, Pt as V, _t as W, Fa as _, bc as a, ha as b, tc as c, Co as d, $a as f, Ha as g, Ka as h, wc as i, di as j, ji as k, ss as l, Za as m, Ic as n, yc as o, Qa as p, ht as q, Mc as r, cc as s, qc as t, jo as u, Da as v, Hi as w, oa as x, Ea as y, on as z };
|
|
6919
6965
|
|
|
6920
|
-
//# sourceMappingURL=components-
|
|
6966
|
+
//# sourceMappingURL=components-BZNvfFed.js.map
|