@wgalleti/primevue-components 0.32.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components-BT3HHG7W.cjs +25 -0
- package/dist/components-BT3HHG7W.cjs.map +1 -0
- package/dist/{components-SHgQLpCj.js → components-BVJTg_MO.js} +613 -646
- package/dist/components-BVJTg_MO.js.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +58 -22
- package/dist/index.js.map +1 -1
- package/dist/primevue-components.css +1 -1
- package/dist/routeTabs-BnVpnSeJ.cjs.map +1 -1
- package/dist/routeTabs-D6m8PuP6.js.map +1 -1
- package/dist/types/plugin.d.ts +5 -0
- package/dist/utils/chart.d.ts +3 -2
- package/dist/utils/dialogEscapeStack.d.ts +14 -0
- package/dist/utils/markdownEnhance.d.ts +2 -0
- package/package.json +7 -3
- package/skill/SKILL.md +2 -0
- package/dist/components-CwXJtumP.cjs +0 -25
- package/dist/components-CwXJtumP.cjs.map +0 -1
- package/dist/components-SHgQLpCj.js.map +0 -1
|
@@ -42,25 +42,25 @@ import He from "markdown-it-sup";
|
|
|
42
42
|
//#region src/components/crud/WCrudColumnRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
43
43
|
var Ue = {
|
|
44
44
|
key: 0,
|
|
45
|
-
class: "
|
|
45
|
+
class: "w-cell-empty"
|
|
46
46
|
}, We = ["src", "alt"], Ge = {
|
|
47
47
|
key: 0,
|
|
48
48
|
class: "w-cell-neutral"
|
|
49
49
|
}, Ke = {
|
|
50
50
|
key: 3,
|
|
51
|
-
class: "
|
|
51
|
+
class: "w-cell-date"
|
|
52
52
|
}, qe = {
|
|
53
53
|
key: 4,
|
|
54
|
-
class: "
|
|
54
|
+
class: "w-cell-date"
|
|
55
55
|
}, Je = {
|
|
56
56
|
key: 5,
|
|
57
|
-
class: "
|
|
57
|
+
class: "w-cell-number"
|
|
58
58
|
}, $ = {
|
|
59
59
|
key: 6,
|
|
60
|
-
class: "
|
|
60
|
+
class: "w-cell-number"
|
|
61
61
|
}, Ye = {
|
|
62
62
|
key: 7,
|
|
63
|
-
class: "text
|
|
63
|
+
class: "w-cell-text"
|
|
64
64
|
}, Xe = /* @__PURE__ */ x({
|
|
65
65
|
__name: "WCrudColumnRenderer",
|
|
66
66
|
props: {
|
|
@@ -80,7 +80,7 @@ var Ue = {
|
|
|
80
80
|
key: 1,
|
|
81
81
|
src: String(e.value),
|
|
82
82
|
alt: e.column.header,
|
|
83
|
-
class: "
|
|
83
|
+
class: "w-cell-image"
|
|
84
84
|
}, null, 8, We)) : e.column.type === "boolean" ? (M(), h(d, { key: 2 }, [s(e.column, e.value, e.rowData) === null ? (M(), h("span", Ge, L(o(e.column, e.value, e.rowData)), 1)) : (M(), p(R(X), {
|
|
85
85
|
key: 1,
|
|
86
86
|
value: o(e.column, e.value, e.rowData),
|
|
@@ -340,7 +340,7 @@ var xt = ["data-kbd-hold"], St = { class: "w-fk-option" }, Ct = { class: "w-fk-o
|
|
|
340
340
|
}, Tt = {
|
|
341
341
|
key: 2,
|
|
342
342
|
class: "w-autocompletefk-chip-hidden"
|
|
343
|
-
}, Et = ["disabled"], Dt = { class: "w-autocompletefk-toolbar" }, Ot = { class: "w-autocompletefk-toolbar-actions" }, kt = { class: "
|
|
343
|
+
}, Et = ["disabled"], Dt = { class: "w-autocompletefk-toolbar" }, Ot = { class: "w-autocompletefk-toolbar-actions" }, kt = { class: "w-autocompletefk-row-actions" }, At = { class: "w-fk-subrows" }, jt = { class: "w-autocompletefk-footer" }, Mt = /* @__PURE__ */ x({
|
|
344
344
|
inheritAttrs: !1,
|
|
345
345
|
__name: "WAutoCompleteFK",
|
|
346
346
|
props: {
|
|
@@ -949,7 +949,7 @@ var xt = ["data-kbd-hold"], St = { class: "w-fk-option" }, Ct = { class: "w-fk-o
|
|
|
949
949
|
modelValue: Ue.value,
|
|
950
950
|
"onUpdate:modelValue": n[0] ||= (e) => Ue.value = e,
|
|
951
951
|
placeholder: "Pesquisar...",
|
|
952
|
-
|
|
952
|
+
fluid: "",
|
|
953
953
|
autofocus: "",
|
|
954
954
|
onKeydown: Bt
|
|
955
955
|
}, null, 8, ["modelValue"])]),
|
|
@@ -994,7 +994,7 @@ var xt = ["data-kbd-hold"], St = { class: "w-fk-option" }, Ct = { class: "w-fk-o
|
|
|
994
994
|
default: V(() => [
|
|
995
995
|
b(R(fe), {
|
|
996
996
|
"selection-mode": e.multiple ? "multiple" : "single",
|
|
997
|
-
|
|
997
|
+
class: "w-col-narrow"
|
|
998
998
|
}, null, 8, ["selection-mode"]),
|
|
999
999
|
(M(!0), h(d, null, F(pt.value, (e) => (M(), p(R(fe), {
|
|
1000
1000
|
key: e.field,
|
|
@@ -1023,7 +1023,7 @@ var xt = ["data-kbd-hold"], St = { class: "w-fk-option" }, Ct = { class: "w-fk-o
|
|
|
1023
1023
|
dt.value ? (M(), p(R(fe), {
|
|
1024
1024
|
key: 0,
|
|
1025
1025
|
header: "",
|
|
1026
|
-
|
|
1026
|
+
class: "w-col-actions"
|
|
1027
1027
|
}, {
|
|
1028
1028
|
body: V(({ data: e }) => [g("div", kt, [lt.value ? H((M(), p(R(K), {
|
|
1029
1029
|
key: 0,
|
|
@@ -1079,7 +1079,7 @@ var xt = ["data-kbd-hold"], St = { class: "w-fk-option" }, Ct = { class: "w-fk-o
|
|
|
1079
1079
|
"append-to",
|
|
1080
1080
|
"header"
|
|
1081
1081
|
]),
|
|
1082
|
-
ot.value ? (M(), p(
|
|
1082
|
+
ot.value ? (M(), p(Kn, {
|
|
1083
1083
|
key: 0,
|
|
1084
1084
|
visible: Ht.value,
|
|
1085
1085
|
title: qt.value,
|
|
@@ -1538,13 +1538,13 @@ var xt = ["data-kbd-hold"], St = { class: "w-fk-option" }, Ct = { class: "w-fk-o
|
|
|
1538
1538
|
let n = e.__vccOpts || e;
|
|
1539
1539
|
for (let [e, r] of t) n[e] = r;
|
|
1540
1540
|
return n;
|
|
1541
|
-
}, Jt = /*#__PURE__*/ qt(Kt, [["__scopeId", "data-v-
|
|
1541
|
+
}, Jt = /*#__PURE__*/ qt(Kt, [["__scopeId", "data-v-0e244bb1"]]), Yt = { class: "w-transfer__pane" }, Xt = { class: "w-transfer__head" }, Zt = { class: "w-transfer__count" }, Qt = { class: "w-transfer__list" }, $t = ["onClick"], en = { class: "w-transfer__item-label" }, tn = {
|
|
1542
1542
|
key: 0,
|
|
1543
1543
|
class: "w-transfer__empty"
|
|
1544
|
-
},
|
|
1544
|
+
}, nn = { class: "w-transfer__controls" }, rn = { class: "w-transfer__pane" }, an = { class: "w-transfer__head" }, on = { class: "w-transfer__count" }, sn = { class: "w-transfer__list" }, cn = ["onClick"], ln = { class: "w-transfer__item-label" }, un = {
|
|
1545
1545
|
key: 0,
|
|
1546
1546
|
class: "w-transfer__empty"
|
|
1547
|
-
},
|
|
1547
|
+
}, dn = /* @__PURE__ */ x({
|
|
1548
1548
|
__name: "WTransferList",
|
|
1549
1549
|
props: {
|
|
1550
1550
|
source: {},
|
|
@@ -1599,9 +1599,9 @@ var xt = ["data-kbd-hold"], St = { class: "w-fk-option" }, Ct = { class: "w-fk-o
|
|
|
1599
1599
|
key: `a-${c(e)}`,
|
|
1600
1600
|
class: "w-transfer__item",
|
|
1601
1601
|
onClick: (t) => v(e)
|
|
1602
|
-
}, [g("span",
|
|
1602
|
+
}, [g("span", en, L(l(e)), 1), n[3] ||= g("i", { class: "pi pi-angle-right" }, null, -1)], 8, $t))), 128)), p.value.length ? m("", !0) : (M(), h("li", tn, "Nenhum item"))])
|
|
1603
1603
|
]),
|
|
1604
|
-
g("div",
|
|
1604
|
+
g("div", nn, [b(R(K), {
|
|
1605
1605
|
type: "button",
|
|
1606
1606
|
icon: "pi pi-angle-double-right",
|
|
1607
1607
|
"aria-label": "Adicionar todos",
|
|
@@ -1618,8 +1618,8 @@ var xt = ["data-kbd-hold"], St = { class: "w-fk-option" }, Ct = { class: "w-fk-o
|
|
|
1618
1618
|
disabled: e.disabled || !e.selected.length,
|
|
1619
1619
|
onClick: S
|
|
1620
1620
|
}, null, 8, ["disabled"])]),
|
|
1621
|
-
g("div",
|
|
1622
|
-
g("div",
|
|
1621
|
+
g("div", rn, [
|
|
1622
|
+
g("div", an, [n[4] ||= g("span", { class: "w-transfer__title" }, "Selecionados", -1), g("span", on, L(_.value.length), 1)]),
|
|
1623
1623
|
b(R(he), { class: "w-transfer__search" }, {
|
|
1624
1624
|
default: V(() => [b(R(ge), { class: "pi pi-search" }), b(R(q), {
|
|
1625
1625
|
modelValue: a.value,
|
|
@@ -1629,18 +1629,18 @@ var xt = ["data-kbd-hold"], St = { class: "w-fk-option" }, Ct = { class: "w-fk-o
|
|
|
1629
1629
|
}, null, 8, ["modelValue"])]),
|
|
1630
1630
|
_: 1
|
|
1631
1631
|
}),
|
|
1632
|
-
g("ul",
|
|
1632
|
+
g("ul", sn, [(M(!0), h(d, null, F(_.value, (e) => (M(), h("li", {
|
|
1633
1633
|
key: `s-${c(e)}`,
|
|
1634
1634
|
class: "w-transfer__item",
|
|
1635
1635
|
onClick: (t) => y(e)
|
|
1636
|
-
}, [n[5] ||= g("i", { class: "pi pi-angle-left" }, null, -1), g("span",
|
|
1636
|
+
}, [n[5] ||= g("i", { class: "pi pi-angle-left w-transfer__item-icon--lead" }, null, -1), g("span", ln, L(l(e)), 1)], 8, cn))), 128)), _.value.length ? m("", !0) : (M(), h("li", un, "Nenhum item"))])
|
|
1637
1637
|
])
|
|
1638
1638
|
], 2));
|
|
1639
1639
|
}
|
|
1640
1640
|
});
|
|
1641
1641
|
//#endregion
|
|
1642
1642
|
//#region src/utils/cep.ts
|
|
1643
|
-
async function
|
|
1643
|
+
async function fn(e) {
|
|
1644
1644
|
let t = e.replace(/\D/g, "");
|
|
1645
1645
|
if (t.length !== 8) return null;
|
|
1646
1646
|
try {
|
|
@@ -1654,52 +1654,52 @@ async function un(e) {
|
|
|
1654
1654
|
}
|
|
1655
1655
|
//#endregion
|
|
1656
1656
|
//#region src/components/form/WFormRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
1657
|
-
var
|
|
1657
|
+
var pn = { class: "w-crud-form" }, mn = {
|
|
1658
1658
|
key: 0,
|
|
1659
1659
|
class: "w-crud-form-group-header"
|
|
1660
|
-
},
|
|
1660
|
+
}, hn = { class: "w-crud-form-group-title" }, gn = {
|
|
1661
1661
|
key: 0,
|
|
1662
1662
|
class: "w-crud-form-group-desc"
|
|
1663
|
-
},
|
|
1663
|
+
}, _n = ["id", "for"], vn = ["id"], yn = ["id", "for"], bn = {
|
|
1664
1664
|
key: 0,
|
|
1665
1665
|
class: "w-crud-form-required",
|
|
1666
1666
|
"aria-hidden": "true"
|
|
1667
|
-
},
|
|
1667
|
+
}, xn = { class: "w-crud-form-color-row" }, Sn = ["id"], Cn = ["id"], wn = ["id"], Tn = ["id"], En = ["id"], Dn = ["id"], On = {
|
|
1668
1668
|
key: 0,
|
|
1669
1669
|
class: "w-crud-form-required",
|
|
1670
1670
|
"aria-hidden": "true"
|
|
1671
|
-
},
|
|
1671
|
+
}, kn = ["id"], An = ["id", "for"], jn = {
|
|
1672
1672
|
key: 0,
|
|
1673
1673
|
class: "w-crud-form-required",
|
|
1674
1674
|
"aria-hidden": "true"
|
|
1675
|
-
},
|
|
1675
|
+
}, Mn = {
|
|
1676
1676
|
key: 1,
|
|
1677
1677
|
class: "pi pi-spin pi-spinner w-crud-form-cep-spinner",
|
|
1678
1678
|
"aria-hidden": "true"
|
|
1679
|
-
},
|
|
1679
|
+
}, Nn = [
|
|
1680
1680
|
"aria-pressed",
|
|
1681
1681
|
"disabled",
|
|
1682
1682
|
"onClick"
|
|
1683
|
-
],
|
|
1683
|
+
], Pn = [
|
|
1684
1684
|
"aria-pressed",
|
|
1685
1685
|
"disabled",
|
|
1686
1686
|
"onClick"
|
|
1687
|
-
],
|
|
1687
|
+
], Fn = [
|
|
1688
1688
|
"title",
|
|
1689
1689
|
"aria-label",
|
|
1690
1690
|
"disabled",
|
|
1691
1691
|
"onClick"
|
|
1692
|
-
],
|
|
1692
|
+
], In = {
|
|
1693
1693
|
key: 0,
|
|
1694
1694
|
class: "w-chips__empty"
|
|
1695
|
-
},
|
|
1695
|
+
}, Ln = [
|
|
1696
1696
|
"onUpdate:modelValue",
|
|
1697
1697
|
"placeholder",
|
|
1698
1698
|
"disabled",
|
|
1699
1699
|
"aria-label",
|
|
1700
1700
|
"data-kbd-hold",
|
|
1701
1701
|
"onKeydown"
|
|
1702
|
-
],
|
|
1702
|
+
], Rn = { class: "w-chips__summary" }, zn = ["id"], Bn = ["id"], Vn = ["id"], Hn = /* @__PURE__ */ x({
|
|
1703
1703
|
__name: "WFormRenderer",
|
|
1704
1704
|
props: {
|
|
1705
1705
|
fields: {},
|
|
@@ -1762,7 +1762,7 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
1762
1762
|
a("update:field", e.field, n), A[e.field] = null, ee[e.field] && (clearTimeout(ee[e.field]), ee[e.field] = null), r.length === 8 && (ee[e.field] = setTimeout(async () => {
|
|
1763
1763
|
O[e.field] = !0, A[e.field] = null;
|
|
1764
1764
|
try {
|
|
1765
|
-
let t = await
|
|
1765
|
+
let t = await fn(r);
|
|
1766
1766
|
if (!t) A[e.field] = "CEP não encontrado. Preencha os campos manualmente.";
|
|
1767
1767
|
else {
|
|
1768
1768
|
let n = e.cepFields || {}, r = Object.keys(n);
|
|
@@ -1979,10 +1979,10 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
1979
1979
|
return t({
|
|
1980
1980
|
validateAll: Le,
|
|
1981
1981
|
clearErrors: Re
|
|
1982
|
-
}), (t, n) => (M(), h("div",
|
|
1982
|
+
}), (t, n) => (M(), h("div", pn, [(M(!0), h(d, null, F(Ve.value, (r) => (M(), h("div", {
|
|
1983
1983
|
key: r.id,
|
|
1984
1984
|
class: "w-crud-form-group"
|
|
1985
|
-
}, [r.title ? (M(), h("div",
|
|
1985
|
+
}, [r.title ? (M(), h("div", mn, [g("h3", hn, L(r.title), 1), r.description ? (M(), h("p", gn, L(r.description), 1)) : m("", !0)])) : m("", !0), g("div", {
|
|
1986
1986
|
class: "w-crud-form-fields",
|
|
1987
1987
|
style: j({ "--w-form-cols": ze(r) })
|
|
1988
1988
|
}, [(M(!0), h(d, null, F(r.fields, (i) => I(t.$slots, `field-${i.field}`, {
|
|
@@ -2017,12 +2017,12 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2017
2017
|
id: u(i),
|
|
2018
2018
|
for: l(i),
|
|
2019
2019
|
class: "w-crud-form-switch-label"
|
|
2020
|
-
}, L(i.switchLabel || i.label), 9,
|
|
2020
|
+
}, L(i.switchLabel || i.label), 9, _n),
|
|
2021
2021
|
i.hint ? (M(), h("small", {
|
|
2022
2022
|
key: 0,
|
|
2023
2023
|
id: _(i),
|
|
2024
2024
|
class: "w-crud-form-hint"
|
|
2025
|
-
}, L(i.hint), 9,
|
|
2025
|
+
}, L(i.hint), 9, vn)) : m("", !0)
|
|
2026
2026
|
], 4)) : i.type === "color" ? (M(), h("div", {
|
|
2027
2027
|
key: 1,
|
|
2028
2028
|
class: k(Q(i, r)),
|
|
@@ -2032,8 +2032,8 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2032
2032
|
id: u(i),
|
|
2033
2033
|
for: l(i),
|
|
2034
2034
|
class: "w-crud-form-label"
|
|
2035
|
-
}, [y(L(i.label) + " ", 1), i.required ? (M(), h("span",
|
|
2036
|
-
g("div",
|
|
2035
|
+
}, [y(L(i.label) + " ", 1), i.required ? (M(), h("span", bn, " * ")) : m("", !0)], 8, yn),
|
|
2036
|
+
g("div", xn, [b(R(Ce), {
|
|
2037
2037
|
"model-value": Ne(i),
|
|
2038
2038
|
"input-id": `${l(i)}-picker`,
|
|
2039
2039
|
pt: { preview: { "aria-label": `${i.label} (seletor de cor)` } },
|
|
@@ -2047,7 +2047,7 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2047
2047
|
"onUpdate:modelValue"
|
|
2048
2048
|
]), b(R(q), D({ ref_for: !0 }, w(i), {
|
|
2049
2049
|
"model-value": e.formData[i.field],
|
|
2050
|
-
class: "w-
|
|
2050
|
+
class: "w-crud-form-color-input",
|
|
2051
2051
|
maxlength: "7",
|
|
2052
2052
|
placeholder: "#000000",
|
|
2053
2053
|
disabled: N(i),
|
|
@@ -2063,13 +2063,13 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2063
2063
|
key: 0,
|
|
2064
2064
|
id: _(i),
|
|
2065
2065
|
class: "w-crud-form-hint"
|
|
2066
|
-
}, L(i.hint), 9,
|
|
2066
|
+
}, L(i.hint), 9, Sn)) : m("", !0),
|
|
2067
2067
|
s[i.field] ? (M(), h("small", {
|
|
2068
2068
|
key: 1,
|
|
2069
2069
|
id: v(i),
|
|
2070
2070
|
class: "w-crud-form-error",
|
|
2071
2071
|
role: "alert"
|
|
2072
|
-
}, L(s[i.field]), 9,
|
|
2072
|
+
}, L(s[i.field]), 9, Cn)) : m("", !0)
|
|
2073
2073
|
], 6)) : i.type === "image" ? (M(), h("div", {
|
|
2074
2074
|
key: 2,
|
|
2075
2075
|
class: k(Q(i, r)),
|
|
@@ -2078,7 +2078,7 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2078
2078
|
g("label", {
|
|
2079
2079
|
id: u(i),
|
|
2080
2080
|
class: "w-crud-form-label"
|
|
2081
|
-
}, L(i.label), 9,
|
|
2081
|
+
}, L(i.label), 9, wn),
|
|
2082
2082
|
g("div", D({ role: "group" }, { ref_for: !0 }, E(i)), [I(t.$slots, `image-${i.field}`, {
|
|
2083
2083
|
field: i,
|
|
2084
2084
|
formData: e.formData
|
|
@@ -2099,13 +2099,13 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2099
2099
|
key: 0,
|
|
2100
2100
|
id: _(i),
|
|
2101
2101
|
class: "w-crud-form-hint"
|
|
2102
|
-
}, L(i.hint), 9,
|
|
2102
|
+
}, L(i.hint), 9, Tn)) : m("", !0),
|
|
2103
2103
|
s[i.field] ? (M(), h("small", {
|
|
2104
2104
|
key: 1,
|
|
2105
2105
|
id: v(i),
|
|
2106
2106
|
class: "w-crud-form-error",
|
|
2107
2107
|
role: "alert"
|
|
2108
|
-
}, L(s[i.field]), 9,
|
|
2108
|
+
}, L(s[i.field]), 9, En)) : m("", !0)
|
|
2109
2109
|
], 6)) : i.type === "transfer" ? (M(), h("div", {
|
|
2110
2110
|
key: 3,
|
|
2111
2111
|
class: k(Q(i, r)),
|
|
@@ -2114,8 +2114,8 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2114
2114
|
g("label", {
|
|
2115
2115
|
id: u(i),
|
|
2116
2116
|
class: "w-crud-form-label"
|
|
2117
|
-
}, [y(L(i.label) + " ", 1), i.required ? (M(), h("span",
|
|
2118
|
-
g("div", D({ role: "group" }, { ref_for: !0 }, E(i)), [b(
|
|
2117
|
+
}, [y(L(i.label) + " ", 1), i.required ? (M(), h("span", On, " * ")) : m("", !0)], 8, Dn),
|
|
2118
|
+
g("div", D({ role: "group" }, { ref_for: !0 }, E(i)), [b(dn, {
|
|
2119
2119
|
source: oe(i.options) || [],
|
|
2120
2120
|
selected: e.formData[i.field] || [],
|
|
2121
2121
|
"track-by": i.optionValue || "id",
|
|
@@ -2136,7 +2136,7 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2136
2136
|
key: 0,
|
|
2137
2137
|
id: _(i),
|
|
2138
2138
|
class: "w-crud-form-hint"
|
|
2139
|
-
}, L(i.hint), 9,
|
|
2139
|
+
}, L(i.hint), 9, kn)) : m("", !0)
|
|
2140
2140
|
], 6)) : H((M(), h("div", {
|
|
2141
2141
|
key: 4,
|
|
2142
2142
|
class: k(Q(i, r)),
|
|
@@ -2148,9 +2148,9 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2148
2148
|
class: "w-crud-form-label"
|
|
2149
2149
|
}, [
|
|
2150
2150
|
y(L(i.label) + " ", 1),
|
|
2151
|
-
i.required ? (M(), h("span",
|
|
2152
|
-
O[i.field] ? (M(), h("i",
|
|
2153
|
-
], 8,
|
|
2151
|
+
i.required ? (M(), h("span", jn, " * ")) : m("", !0),
|
|
2152
|
+
O[i.field] ? (M(), h("i", Mn)) : m("", !0)
|
|
2153
|
+
], 8, An),
|
|
2154
2154
|
(!i.type || i.type === "text") && i.mask ? H((M(), p(R(q), D({
|
|
2155
2155
|
key: 0,
|
|
2156
2156
|
ref_for: !0
|
|
@@ -2545,7 +2545,7 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2545
2545
|
"aria-pressed": X(i, e),
|
|
2546
2546
|
disabled: N(i),
|
|
2547
2547
|
onClick: (t) => Te(i, e)
|
|
2548
|
-
}, L(ve(i, e)), 11,
|
|
2548
|
+
}, L(ve(i, e)), 11, Nn))), 128))], 16)) : i.type === "choice" ? (M(), h("div", D({
|
|
2549
2549
|
key: 17,
|
|
2550
2550
|
class: "w-choice",
|
|
2551
2551
|
role: "group"
|
|
@@ -2560,7 +2560,7 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2560
2560
|
key: 0,
|
|
2561
2561
|
class: k(i.choiceIcon || "pi pi-check-circle"),
|
|
2562
2562
|
"aria-hidden": "true"
|
|
2563
|
-
}, null, 2)) : m("", !0), y(" " + L(ve(i, e)), 1)], 10,
|
|
2563
|
+
}, null, 2)) : m("", !0), y(" " + L(ve(i, e)), 1)], 10, Pn))), 128))], 16)) : i.type === "chips" ? (M(), h("div", D({
|
|
2564
2564
|
key: 18,
|
|
2565
2565
|
class: "w-chips",
|
|
2566
2566
|
role: "group"
|
|
@@ -2578,8 +2578,8 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2578
2578
|
}, [...n[0] ||= [g("i", {
|
|
2579
2579
|
class: "pi pi-times",
|
|
2580
2580
|
"aria-hidden": "true"
|
|
2581
|
-
}, null, -1)]], 8,
|
|
2582
|
-
!Ee(i).length && i.chipsEmptyLabel ? (M(), h("span",
|
|
2581
|
+
}, null, -1)]], 8, Fn)]))), 128)),
|
|
2582
|
+
!Ee(i).length && i.chipsEmptyLabel ? (M(), h("span", In, L(i.chipsEmptyLabel), 1)) : m("", !0),
|
|
2583
2583
|
I(t.$slots, `chips-trigger-${i.field}`, {
|
|
2584
2584
|
field: i,
|
|
2585
2585
|
formData: e.formData,
|
|
@@ -2596,35 +2596,53 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2596
2596
|
"aria-label": `Adicionar a ${i.label}`,
|
|
2597
2597
|
"data-kbd-hold": (ke[i.field] ?? "").trim() ? "" : void 0,
|
|
2598
2598
|
onKeydown: [U(W((e) => je(i), ["prevent"]), ["enter"]), U((e) => Me(i, e), ["backspace"])]
|
|
2599
|
-
}, null, 40,
|
|
2600
|
-
g("span",
|
|
2599
|
+
}, null, 40, Ln)), [[z, ke[i.field]]]) : m("", !0),
|
|
2600
|
+
g("span", Rn, [I(t.$slots, `chips-summary-${i.field}`, {
|
|
2601
2601
|
field: i,
|
|
2602
2602
|
formData: e.formData,
|
|
2603
2603
|
items: Ee(i)
|
|
2604
2604
|
})])
|
|
2605
|
-
], 16)) :
|
|
2606
|
-
i.hint ? (M(), h("small", {
|
|
2605
|
+
], 16)) : (M(), p(R(q), D({
|
|
2607
2606
|
key: 19,
|
|
2607
|
+
ref_for: !0
|
|
2608
|
+
}, w(i), {
|
|
2609
|
+
"model-value": e.formData[i.field],
|
|
2610
|
+
fluid: "",
|
|
2611
|
+
placeholder: i.placeholder,
|
|
2612
|
+
disabled: N(i),
|
|
2613
|
+
invalid: !!x(i),
|
|
2614
|
+
onVnodeMounted: (e) => void 0,
|
|
2615
|
+
"onUpdate:modelValue": (e) => a("update:field", i.field, e)
|
|
2616
|
+
}), null, 16, [
|
|
2617
|
+
"model-value",
|
|
2618
|
+
"placeholder",
|
|
2619
|
+
"disabled",
|
|
2620
|
+
"invalid",
|
|
2621
|
+
"onVnodeMounted",
|
|
2622
|
+
"onUpdate:modelValue"
|
|
2623
|
+
])),
|
|
2624
|
+
i.hint ? (M(), h("small", {
|
|
2625
|
+
key: 20,
|
|
2608
2626
|
id: _(i),
|
|
2609
2627
|
class: "w-crud-form-hint"
|
|
2610
|
-
}, L(i.hint), 9,
|
|
2628
|
+
}, L(i.hint), 9, zn)) : m("", !0),
|
|
2611
2629
|
A[i.field] ? (M(), h("small", {
|
|
2612
|
-
key:
|
|
2630
|
+
key: 21,
|
|
2613
2631
|
id: v(i),
|
|
2614
2632
|
class: "w-crud-form-cep-error",
|
|
2615
2633
|
role: "alert"
|
|
2616
|
-
}, L(A[i.field]), 9,
|
|
2617
|
-
key:
|
|
2634
|
+
}, L(A[i.field]), 9, Bn)) : s[i.field] ? (M(), h("small", {
|
|
2635
|
+
key: 22,
|
|
2618
2636
|
id: v(i),
|
|
2619
2637
|
class: "w-crud-form-error",
|
|
2620
2638
|
role: "alert"
|
|
2621
|
-
}, L(s[i.field]), 9,
|
|
2639
|
+
}, L(s[i.field]), 9, Vn)) : m("", !0)
|
|
2622
2640
|
], 6)), [[de, le(i)]])], void 0, i.field)), 128))], 4)]))), 128))]));
|
|
2623
2641
|
}
|
|
2624
|
-
}),
|
|
2642
|
+
}), Un = { class: "w-crud-form-main" }, Wn = {
|
|
2625
2643
|
key: 0,
|
|
2626
2644
|
class: "w-crud-form-aside"
|
|
2627
|
-
},
|
|
2645
|
+
}, Gn = { class: "w-crud-form-footer" }, Kn = /* @__PURE__ */ x({
|
|
2628
2646
|
__name: "WCrudFormDialog",
|
|
2629
2647
|
props: {
|
|
2630
2648
|
visible: { type: Boolean },
|
|
@@ -2677,7 +2695,7 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2677
2695
|
onSubmit: W(c, ["prevent"]),
|
|
2678
2696
|
onKeydownCapture: r[2] ||= (...e) => R(d) && R(d)(...e)
|
|
2679
2697
|
}, [
|
|
2680
|
-
g("div",
|
|
2698
|
+
g("div", Un, [b(Hn, {
|
|
2681
2699
|
ref_key: "rendererRef",
|
|
2682
2700
|
ref: a,
|
|
2683
2701
|
fields: e.fields,
|
|
@@ -2702,11 +2720,11 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2702
2720
|
formData: e.formData,
|
|
2703
2721
|
isEditing: e.isEditing
|
|
2704
2722
|
})]),
|
|
2705
|
-
t.$slots.aside ? (M(), h("aside",
|
|
2723
|
+
t.$slots.aside ? (M(), h("aside", Wn, [I(t.$slots, "aside", {
|
|
2706
2724
|
formData: e.formData,
|
|
2707
2725
|
isEditing: e.isEditing
|
|
2708
2726
|
})])) : m("", !0),
|
|
2709
|
-
g("div",
|
|
2727
|
+
g("div", Gn, [I(t.$slots, "footer", {
|
|
2710
2728
|
saving: e.saving,
|
|
2711
2729
|
disabled: e.disabled
|
|
2712
2730
|
}, () => [b(R(K), {
|
|
@@ -2737,89 +2755,70 @@ var dn = { class: "w-crud-form" }, fn = {
|
|
|
2737
2755
|
});
|
|
2738
2756
|
//#endregion
|
|
2739
2757
|
//#region src/utils/csv.ts
|
|
2740
|
-
function
|
|
2758
|
+
function qn(e, t) {
|
|
2741
2759
|
let n = t[e.field];
|
|
2742
2760
|
return e.format ? e.format(n, t) : n == null ? "" : typeof n == "boolean" ? n ? "Sim" : "Não" : String(n);
|
|
2743
2761
|
}
|
|
2744
|
-
function
|
|
2762
|
+
function Jn(e, t) {
|
|
2745
2763
|
return e.includes("\"") || e.includes(t) || e.includes("\n") || e.includes("\r") ? `"${e.replace(/"/g, "\"\"")}"` : e;
|
|
2746
2764
|
}
|
|
2747
|
-
function
|
|
2765
|
+
function Yn(e, t, n = {}) {
|
|
2748
2766
|
let r = n.separator ?? ";";
|
|
2749
|
-
return "" + [t.map((e) =>
|
|
2767
|
+
return "" + [t.map((e) => Jn(e.header, r)).join(r), ...e.map((e) => t.map((t) => Jn(qn(t, e), r)).join(r))].join("\r\n");
|
|
2750
2768
|
}
|
|
2751
|
-
function
|
|
2769
|
+
function Xn(e, t = "export.csv") {
|
|
2752
2770
|
let n = new Blob([e], { type: "text/csv;charset=utf-8;" }), r = URL.createObjectURL(n), i = document.createElement("a");
|
|
2753
2771
|
i.href = r, i.download = t, document.body.appendChild(i), i.click(), document.body.removeChild(i), URL.revokeObjectURL(r);
|
|
2754
2772
|
}
|
|
2755
2773
|
//#endregion
|
|
2756
2774
|
//#region src/components/crud/WCrudView.vue?vue&type=script&setup=true&lang.ts
|
|
2757
|
-
var
|
|
2775
|
+
var Zn = { class: "w-crud" }, Qn = {
|
|
2758
2776
|
key: 0,
|
|
2759
2777
|
class: "w-crud-header"
|
|
2760
|
-
},
|
|
2778
|
+
}, $n = { class: "w-crud-header-content" }, er = { class: "w-crud-title-row" }, tr = { class: "w-crud-title" }, nr = ["aria-busy"], rr = {
|
|
2761
2779
|
key: 0,
|
|
2762
2780
|
class: "w-crud-subtitle"
|
|
2763
|
-
},
|
|
2781
|
+
}, ir = { class: "w-crud-header-actions" }, ar = {
|
|
2764
2782
|
key: 0,
|
|
2765
2783
|
class: "w-crud-kpis"
|
|
2766
|
-
},
|
|
2784
|
+
}, or = { class: "w-crud-kpi-content" }, sr = { class: "w-crud-kpi-label" }, cr = { class: "w-crud-kpi-value" }, lr = { class: "w-crud-content-main" }, ur = {
|
|
2767
2785
|
key: 0,
|
|
2768
2786
|
class: "w-crud-table"
|
|
2769
|
-
},
|
|
2787
|
+
}, dr = {
|
|
2770
2788
|
key: 0,
|
|
2771
|
-
class: "w-crud-bulkbar"
|
|
2772
|
-
|
|
2773
|
-
display: "flex",
|
|
2774
|
-
"align-items": "center",
|
|
2775
|
-
gap: "0.5rem",
|
|
2776
|
-
"margin-bottom": "0.5rem",
|
|
2777
|
-
padding: "0.5rem 0.75rem",
|
|
2778
|
-
"border-radius": "8px",
|
|
2779
|
-
background: "var(--p-primary-50, #eef2ff)",
|
|
2780
|
-
color: "var(--p-primary-700, #3730a3)"
|
|
2781
|
-
}
|
|
2782
|
-
}, ur = { style: {
|
|
2783
|
-
"font-weight": "600",
|
|
2784
|
-
"font-size": "0.85rem",
|
|
2785
|
-
"margin-right": "auto"
|
|
2786
|
-
} }, dr = { class: "w-crud-toolbar" }, fr = { class: "w-crud-toolbar-start" }, pr = ["aria-busy"], mr = { class: "w-crud-toolbar-end" }, hr = { style: {
|
|
2787
|
-
display: "flex",
|
|
2788
|
-
"flex-direction": "column",
|
|
2789
|
-
gap: "0.35rem",
|
|
2790
|
-
"min-width": "180px"
|
|
2791
|
-
} }, gr = ["for"], _r = {
|
|
2789
|
+
class: "w-crud-bulkbar"
|
|
2790
|
+
}, fr = { class: "w-crud-bulkbar__count" }, pr = { class: "w-crud-toolbar" }, mr = { class: "w-crud-toolbar-start" }, hr = ["aria-busy"], gr = { class: "w-crud-toolbar-end" }, _r = { class: "w-crud-chooser" }, vr = ["for"], yr = {
|
|
2792
2791
|
key: 2,
|
|
2793
2792
|
class: "w-crud-view-toggle"
|
|
2794
|
-
},
|
|
2793
|
+
}, br = { class: "w-crud-actions" }, xr = {
|
|
2795
2794
|
key: 1,
|
|
2796
2795
|
class: "w-crud-cards-wrap"
|
|
2797
|
-
},
|
|
2796
|
+
}, Sr = { class: "w-crud-toolbar w-crud-toolbar--standalone" }, Cr = { class: "w-crud-toolbar-start" }, wr = ["aria-busy"], Tr = { class: "w-crud-toolbar-end" }, Er = {
|
|
2798
2797
|
key: 1,
|
|
2799
2798
|
class: "w-crud-view-toggle"
|
|
2800
|
-
},
|
|
2799
|
+
}, Dr = {
|
|
2801
2800
|
key: 0,
|
|
2802
2801
|
class: "w-crud-cards-loading"
|
|
2803
|
-
},
|
|
2802
|
+
}, Or = [
|
|
2804
2803
|
"onClick",
|
|
2805
2804
|
"onDblclick",
|
|
2806
2805
|
"onContextmenu"
|
|
2807
|
-
],
|
|
2806
|
+
], kr = { class: "w-crud-card-body" }, Ar = {
|
|
2808
2807
|
key: 0,
|
|
2809
2808
|
class: "w-crud-card-label"
|
|
2810
|
-
},
|
|
2809
|
+
}, jr = { class: "w-crud-card-value" }, Mr = {
|
|
2811
2810
|
key: 0,
|
|
2812
2811
|
class: "w-crud-card-actions"
|
|
2813
|
-
},
|
|
2812
|
+
}, Nr = {
|
|
2814
2813
|
key: 0,
|
|
2815
2814
|
class: "w-crud-rail"
|
|
2816
|
-
},
|
|
2815
|
+
}, Pr = {
|
|
2817
2816
|
key: 1,
|
|
2818
2817
|
class: "w-crud-rail-sep"
|
|
2819
|
-
},
|
|
2818
|
+
}, Fr = {
|
|
2820
2819
|
key: 2,
|
|
2821
2820
|
class: "w-crud-rail-sep"
|
|
2822
|
-
},
|
|
2821
|
+
}, Ir = "{first}–{last} de {totalRecords}", Lr = /* @__PURE__ */ x({
|
|
2823
2822
|
__name: "WCrudView",
|
|
2824
2823
|
props: /*@__PURE__*/ E({
|
|
2825
2824
|
crud: {},
|
|
@@ -2955,8 +2954,8 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
2955
2954
|
align: "right"
|
|
2956
2955
|
} : e));
|
|
2957
2956
|
function xe(e) {
|
|
2958
|
-
if (e.align === "right") return "text-right";
|
|
2959
|
-
if (e.align === "center") return "text-center";
|
|
2957
|
+
if (e.align === "right") return "w-col-right text-right";
|
|
2958
|
+
if (e.align === "center") return "w-col-center text-center";
|
|
2960
2959
|
}
|
|
2961
2960
|
let Se = f(() => be.value.slice(0, o.cardFields)), Ce = f(() => {
|
|
2962
2961
|
let e = [];
|
|
@@ -3099,7 +3098,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3099
3098
|
if (!it.value) {
|
|
3100
3099
|
it.value = !0;
|
|
3101
3100
|
try {
|
|
3102
|
-
|
|
3101
|
+
Xn(Yn(o.csvScope === "page" ? o.crud.items.value : await o.crud.fetchAll(o.csvPageSize), be.value), o.csvFilename);
|
|
3103
3102
|
} finally {
|
|
3104
3103
|
it.value = !1;
|
|
3105
3104
|
}
|
|
@@ -3109,27 +3108,27 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3109
3108
|
se(), de(), o.autoInit && o.crud.init();
|
|
3110
3109
|
}), (e, n) => {
|
|
3111
3110
|
let r = ae("tooltip");
|
|
3112
|
-
return M(), h("div",
|
|
3113
|
-
t.showHeader ? (M(), h("div",
|
|
3111
|
+
return M(), h("div", Zn, [
|
|
3112
|
+
t.showHeader ? (M(), h("div", Qn, [g("div", $n, [g("div", er, [g("h1", tr, L(t.title), 1), Le.value ? (M(), h("span", {
|
|
3114
3113
|
key: 0,
|
|
3115
3114
|
class: "w-crud-count",
|
|
3116
3115
|
"aria-live": "polite",
|
|
3117
3116
|
"aria-busy": t.crud.loading.value || void 0
|
|
3118
|
-
}, L(Ie.value), 9,
|
|
3117
|
+
}, L(Ie.value), 9, nr)) : m("", !0)]), t.subtitle ? (M(), h("p", rr, L(t.subtitle), 1)) : m("", !0)]), g("div", ir, [I(e.$slots, "header-actions"), ze.value && !t.actionRail ? (M(), p(R(K), {
|
|
3119
3118
|
key: 0,
|
|
3120
3119
|
label: "Novo",
|
|
3121
3120
|
icon: "pi pi-plus",
|
|
3122
3121
|
onClick: n[0] ||= (e) => t.crud.openCreateDialog()
|
|
3123
3122
|
})) : m("", !0)])])) : m("", !0),
|
|
3124
|
-
I(e.$slots, "before-table", {}, () => [Re.value.length ? (M(), h("div",
|
|
3123
|
+
I(e.$slots, "before-table", {}, () => [Re.value.length ? (M(), h("div", ar, [(M(!0), h(d, null, F(Re.value, (e, t) => (M(), h("div", {
|
|
3125
3124
|
key: t,
|
|
3126
3125
|
class: "w-crud-kpi"
|
|
3127
3126
|
}, [g("div", { class: k(["w-crud-kpi-icon", e.severity ? `w-crud-kpi-icon--${e.severity}` : ""]) }, [g("i", {
|
|
3128
3127
|
class: k([e.icon]),
|
|
3129
3128
|
style: j(e.color ? `color: ${e.color}` : "")
|
|
3130
|
-
}, null, 6)], 2), g("div",
|
|
3131
|
-
g("div", { class: k(["w-crud-content", { "w-crud-content--rail": t.actionRail }]) }, [g("div",
|
|
3132
|
-
g("span",
|
|
3129
|
+
}, null, 6)], 2), g("div", or, [g("div", sr, L(e.label), 1), g("div", cr, L(e.value), 1)])]))), 128))])) : m("", !0)]),
|
|
3130
|
+
g("div", { class: k(["w-crud-content", { "w-crud-content--rail": t.actionRail }]) }, [g("div", lr, [O("table") ? (M(), h("div", ur, [Be.value && t.crud.selectedItems.value.length ? (M(), h("div", dr, [
|
|
3131
|
+
g("span", fr, L(t.crud.selectedItems.value.length) + " selecionado(s) ", 1),
|
|
3133
3132
|
I(e.$slots, "bulk-actions", {
|
|
3134
3133
|
selected: t.crud.selectedItems.value,
|
|
3135
3134
|
crud: t.crud
|
|
@@ -3177,7 +3176,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3177
3176
|
50
|
|
3178
3177
|
],
|
|
3179
3178
|
"paginator-template": "CurrentPageReport PrevPageLink NextPageLink",
|
|
3180
|
-
"current-page-report-template":
|
|
3179
|
+
"current-page-report-template": Ir,
|
|
3181
3180
|
pt: { pcPaginator: { root: { class: "w-crud-paginator" } } },
|
|
3182
3181
|
lazy: "",
|
|
3183
3182
|
"striped-rows": "",
|
|
@@ -3203,13 +3202,13 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3203
3202
|
onRowCollapse: n[12] ||= (e) => s("row-collapse", e.data),
|
|
3204
3203
|
onCellEditComplete: Ke
|
|
3205
3204
|
}, _({
|
|
3206
|
-
header: V(() => [g("div",
|
|
3205
|
+
header: V(() => [g("div", pr, [g("div", mr, [
|
|
3207
3206
|
t.showSearch ? (M(), p(R(he), { key: 0 }, {
|
|
3208
3207
|
default: V(() => [b(R(ge), { class: "pi pi-search" }), b(R(q), {
|
|
3209
3208
|
"model-value": t.crud.search.value,
|
|
3210
3209
|
placeholder: "Buscar...",
|
|
3211
3210
|
"aria-label": "Buscar",
|
|
3212
|
-
class: "w-
|
|
3211
|
+
class: "w-crud-search",
|
|
3213
3212
|
onInput: t.crud.onSearch
|
|
3214
3213
|
}, null, 8, ["model-value", "onInput"])]),
|
|
3215
3214
|
_: 1
|
|
@@ -3219,7 +3218,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3219
3218
|
class: "w-crud-count",
|
|
3220
3219
|
"aria-live": "polite",
|
|
3221
3220
|
"aria-busy": t.crud.loading.value || void 0
|
|
3222
|
-
}, L(Ie.value), 9,
|
|
3221
|
+
}, L(Ie.value), 9, hr)) : m("", !0),
|
|
3223
3222
|
I(e.$slots, "toolbar-start"),
|
|
3224
3223
|
(M(!0), h(d, null, F(qe.value, (e) => (M(), h(d, { key: e.field }, [(e.filter?.type || "text") === "text" ? (M(), p(R(q), {
|
|
3225
3224
|
key: 0,
|
|
@@ -3288,7 +3287,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3288
3287
|
size: "small",
|
|
3289
3288
|
onClick: n[2] ||= (e) => t.crud.clearColumnFilters()
|
|
3290
3289
|
})) : m("", !0)
|
|
3291
|
-
]), g("div",
|
|
3290
|
+
]), g("div", gr, [
|
|
3292
3291
|
I(e.$slots, "toolbar-actions"),
|
|
3293
3292
|
t.persistState ? (M(), h(d, { key: 0 }, [H(b(R(K), {
|
|
3294
3293
|
icon: "pi pi-sliders-h",
|
|
@@ -3306,13 +3305,9 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3306
3305
|
ref_key: "chooser",
|
|
3307
3306
|
ref: ie
|
|
3308
3307
|
}, {
|
|
3309
|
-
default: V(() => [g("div",
|
|
3308
|
+
default: V(() => [g("div", _r, [(M(!0), h(d, null, F(W.value, (e) => (M(), h("div", {
|
|
3310
3309
|
key: e.field,
|
|
3311
|
-
|
|
3312
|
-
display: "flex",
|
|
3313
|
-
"align-items": "center",
|
|
3314
|
-
gap: "0.5rem"
|
|
3315
|
-
}
|
|
3310
|
+
class: "w-crud-chooser__item"
|
|
3316
3311
|
}, [b(R(me), {
|
|
3317
3312
|
"model-value": !N.hidden.includes(e.field),
|
|
3318
3313
|
"input-id": `wcrud-col-${e.field}`,
|
|
@@ -3324,11 +3319,8 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3324
3319
|
"onUpdate:modelValue"
|
|
3325
3320
|
]), g("label", {
|
|
3326
3321
|
for: `wcrud-col-${e.field}`,
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
cursor: "pointer"
|
|
3330
|
-
}
|
|
3331
|
-
}, L(e.header), 9, gr)]))), 128))])]),
|
|
3322
|
+
class: "w-crud-chooser__label"
|
|
3323
|
+
}, L(e.header), 9, vr)]))), 128))])]),
|
|
3332
3324
|
_: 1
|
|
3333
3325
|
}, 512)], 64)) : m("", !0),
|
|
3334
3326
|
t.exportCsv ? H((M(), p(R(K), {
|
|
@@ -3345,7 +3337,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3345
3337
|
void 0,
|
|
3346
3338
|
{ top: !0 }
|
|
3347
3339
|
]]) : m("", !0),
|
|
3348
|
-
D.value ? (M(), h("div",
|
|
3340
|
+
D.value ? (M(), h("div", yr, [H(b(R(K), {
|
|
3349
3341
|
icon: "pi pi-table",
|
|
3350
3342
|
"aria-label": "Ver como tabela",
|
|
3351
3343
|
"aria-pressed": O("table"),
|
|
@@ -3396,12 +3388,12 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3396
3388
|
Be.value ? (M(), p(R(fe), {
|
|
3397
3389
|
key: 0,
|
|
3398
3390
|
"selection-mode": "multiple",
|
|
3399
|
-
|
|
3391
|
+
class: "w-col-narrow"
|
|
3400
3392
|
})) : m("", !0),
|
|
3401
3393
|
t.expandable ? (M(), p(R(fe), {
|
|
3402
3394
|
key: 1,
|
|
3403
3395
|
expander: "",
|
|
3404
|
-
|
|
3396
|
+
class: "w-col-narrow"
|
|
3405
3397
|
})) : m("", !0),
|
|
3406
3398
|
(M(!0), h(d, null, F(be.value, (t) => (M(), p(R(fe), {
|
|
3407
3399
|
key: t.field,
|
|
@@ -3456,7 +3448,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3456
3448
|
"header-class": "w-crud-actions-header",
|
|
3457
3449
|
style: j({ width: `${(we.value.length + +!!R(c)["row-actions"]) * 2.5 + 1}rem` })
|
|
3458
3450
|
}, {
|
|
3459
|
-
body: V(({ data: n }) => [g("div",
|
|
3451
|
+
body: V(({ data: n }) => [g("div", br, [(M(!0), h(d, null, F(we.value, (e) => (M(), h(d, { key: e.action }, [Ne(e, n) ? H((M(), p(R(K), {
|
|
3460
3452
|
key: 0,
|
|
3461
3453
|
icon: e.icon,
|
|
3462
3454
|
"aria-label": Ee(e),
|
|
@@ -3504,14 +3496,14 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3504
3496
|
"context-menu",
|
|
3505
3497
|
"context-menu-selection",
|
|
3506
3498
|
"onPage"
|
|
3507
|
-
])])) : (M(), h("div",
|
|
3508
|
-
g("div",
|
|
3499
|
+
])])) : (M(), h("div", xr, [
|
|
3500
|
+
g("div", Sr, [g("div", Cr, [
|
|
3509
3501
|
t.showSearch ? (M(), p(R(he), { key: 0 }, {
|
|
3510
3502
|
default: V(() => [b(R(ge), { class: "pi pi-search" }), b(R(q), {
|
|
3511
3503
|
"model-value": t.crud.search.value,
|
|
3512
3504
|
placeholder: "Buscar...",
|
|
3513
3505
|
"aria-label": "Buscar",
|
|
3514
|
-
class: "w-
|
|
3506
|
+
class: "w-crud-search",
|
|
3515
3507
|
onInput: t.crud.onSearch
|
|
3516
3508
|
}, null, 8, ["model-value", "onInput"])]),
|
|
3517
3509
|
_: 1
|
|
@@ -3521,7 +3513,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3521
3513
|
class: "w-crud-count",
|
|
3522
3514
|
"aria-live": "polite",
|
|
3523
3515
|
"aria-busy": t.crud.loading.value || void 0
|
|
3524
|
-
}, L(Ie.value), 9,
|
|
3516
|
+
}, L(Ie.value), 9, wr)) : m("", !0),
|
|
3525
3517
|
I(e.$slots, "toolbar-start"),
|
|
3526
3518
|
(M(!0), h(d, null, F(qe.value, (e) => (M(), h(d, { key: e.field }, [(e.filter?.type || "text") === "text" ? (M(), p(R(q), {
|
|
3527
3519
|
key: 0,
|
|
@@ -3590,7 +3582,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3590
3582
|
size: "small",
|
|
3591
3583
|
onClick: n[13] ||= (e) => t.crud.clearColumnFilters()
|
|
3592
3584
|
})) : m("", !0)
|
|
3593
|
-
]), g("div",
|
|
3585
|
+
]), g("div", Tr, [
|
|
3594
3586
|
I(e.$slots, "toolbar-actions"),
|
|
3595
3587
|
t.exportCsv ? H((M(), p(R(K), {
|
|
3596
3588
|
key: 0,
|
|
@@ -3606,7 +3598,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3606
3598
|
void 0,
|
|
3607
3599
|
{ top: !0 }
|
|
3608
3600
|
]]) : m("", !0),
|
|
3609
|
-
D.value ? (M(), h("div",
|
|
3601
|
+
D.value ? (M(), h("div", Er, [H(b(R(K), {
|
|
3610
3602
|
icon: "pi pi-table",
|
|
3611
3603
|
"aria-label": "Ver como tabela",
|
|
3612
3604
|
"aria-pressed": O("table"),
|
|
@@ -3648,7 +3640,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3648
3640
|
onClick: n[16] ||= (e) => t.crud.openCreateDialog()
|
|
3649
3641
|
})) : m("", !0)
|
|
3650
3642
|
])]),
|
|
3651
|
-
t.crud.loading.value ? (M(), h("div",
|
|
3643
|
+
t.crud.loading.value ? (M(), h("div", Dr, [...n[24] ||= [g("i", { class: "pi pi-spin pi-spinner" }, null, -1)]])) : t.crud.items.value.length ? (M(), h("div", {
|
|
3652
3644
|
key: 2,
|
|
3653
3645
|
class: k(["w-crud-cards", { "w-crud-cards--bare": t.cardBare }])
|
|
3654
3646
|
}, [(M(!0), h(d, null, F(t.crud.items.value, (n, i) => (M(), h("div", {
|
|
@@ -3662,10 +3654,10 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3662
3654
|
crud: t.crud,
|
|
3663
3655
|
columns: Se.value,
|
|
3664
3656
|
index: i
|
|
3665
|
-
}, () => [g("div",
|
|
3657
|
+
}, () => [g("div", kr, [(M(!0), h(d, null, F(Se.value, (t, r) => (M(), h("div", {
|
|
3666
3658
|
key: t.field,
|
|
3667
3659
|
class: k(["w-crud-card-row", { "w-crud-card-row--title": r === 0 }])
|
|
3668
|
-
}, [r === 0 ? m("", !0) : (M(), h("span",
|
|
3660
|
+
}, [r === 0 ? m("", !0) : (M(), h("span", Ar, L(t.header), 1)), g("span", jr, [I(e.$slots, `column-${t.field}`, {
|
|
3669
3661
|
data: n,
|
|
3670
3662
|
value: n[t.field]
|
|
3671
3663
|
}, () => [b(Xe, {
|
|
@@ -3676,7 +3668,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3676
3668
|
"column",
|
|
3677
3669
|
"value",
|
|
3678
3670
|
"row-data"
|
|
3679
|
-
])])])], 2))), 128))]), Te.value && !t.actionRail ? (M(), h("div",
|
|
3671
|
+
])])])], 2))), 128))]), Te.value && !t.actionRail ? (M(), h("div", Mr, [(M(!0), h(d, null, F(we.value, (e) => (M(), h(d, { key: e.action }, [Ne(e, n) ? H((M(), p(R(K), {
|
|
3680
3672
|
key: 0,
|
|
3681
3673
|
icon: e.icon,
|
|
3682
3674
|
"aria-label": Ee(e),
|
|
@@ -3700,7 +3692,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3700
3692
|
]]) : m("", !0)], 64))), 128)), I(e.$slots, "row-actions", {
|
|
3701
3693
|
data: n,
|
|
3702
3694
|
crud: t.crud
|
|
3703
|
-
})])) : m("", !0)])], 42,
|
|
3695
|
+
})])) : m("", !0)])], 42, Or))), 128))], 2)) : I(e.$slots, "empty", {}, () => [n[25] ||= v("<div class=\"w-crud-empty\"><div class=\"w-crud-empty-icon\"><i class=\"pi pi-inbox\"></i></div><p class=\"w-crud-empty-title\">Nenhum registro encontrado</p><p class=\"w-crud-empty-text\">Tente ajustar sua busca ou crie um novo registro</p></div>", 1)], void 0, 1),
|
|
3704
3696
|
t.crud.items.value.length ? (M(), p(R(_e), {
|
|
3705
3697
|
key: 3,
|
|
3706
3698
|
rows: t.crud.pagination.pageSize,
|
|
@@ -3712,7 +3704,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3712
3704
|
50
|
|
3713
3705
|
],
|
|
3714
3706
|
template: "CurrentPageReport PrevPageLink NextPageLink",
|
|
3715
|
-
"current-page-report-template":
|
|
3707
|
+
"current-page-report-template": Ir,
|
|
3716
3708
|
class: "w-crud-paginator",
|
|
3717
3709
|
onPage: t.crud.onPage
|
|
3718
3710
|
}, null, 8, [
|
|
@@ -3721,7 +3713,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3721
3713
|
"first",
|
|
3722
3714
|
"onPage"
|
|
3723
3715
|
])) : m("", !0)
|
|
3724
|
-
]))]), t.actionRail ? (M(), h("aside",
|
|
3716
|
+
]))]), t.actionRail ? (M(), h("aside", Nr, [
|
|
3725
3717
|
ze.value ? H((M(), p(R(K), {
|
|
3726
3718
|
key: 0,
|
|
3727
3719
|
icon: "pi pi-plus",
|
|
@@ -3734,7 +3726,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3734
3726
|
void 0,
|
|
3735
3727
|
{ left: !0 }
|
|
3736
3728
|
]]) : m("", !0),
|
|
3737
|
-
ze.value && we.value.length ? (M(), h("div",
|
|
3729
|
+
ze.value && we.value.length ? (M(), h("div", Pr)) : m("", !0),
|
|
3738
3730
|
(M(!0), h(d, null, F(we.value, (e) => (M(), h(d, { key: e.action }, [!Z.value || Ne(e, Z.value) ? H((M(), p(R(K), {
|
|
3739
3731
|
key: 0,
|
|
3740
3732
|
icon: e.icon,
|
|
@@ -3760,7 +3752,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3760
3752
|
selected: Z.value,
|
|
3761
3753
|
crud: t.crud
|
|
3762
3754
|
}),
|
|
3763
|
-
t.showPrint || t.exportCsv ? (M(), h("div",
|
|
3755
|
+
t.showPrint || t.exportCsv ? (M(), h("div", Fr)) : m("", !0),
|
|
3764
3756
|
t.showPrint ? H((M(), p(R(K), {
|
|
3765
3757
|
key: 3,
|
|
3766
3758
|
icon: "pi pi-print",
|
|
@@ -3799,7 +3791,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3799
3791
|
I(e.$slots, "form-dialog", {
|
|
3800
3792
|
crud: t.crud,
|
|
3801
3793
|
dialogWidth: t.dialogWidth
|
|
3802
|
-
}, () => [b(
|
|
3794
|
+
}, () => [b(Kn, {
|
|
3803
3795
|
visible: t.crud.dialogVisible.value,
|
|
3804
3796
|
title: t.crud.dialogTitle.value,
|
|
3805
3797
|
fields: t.crud.config.form,
|
|
@@ -3838,8 +3830,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3838
3830
|
header: "Confirmar Exclusão",
|
|
3839
3831
|
modal: "",
|
|
3840
3832
|
draggable: !1,
|
|
3841
|
-
class: "w-crud-delete-dialog"
|
|
3842
|
-
style: { width: "30rem" }
|
|
3833
|
+
class: "w-crud-delete-dialog"
|
|
3843
3834
|
}, {
|
|
3844
3835
|
footer: V(() => [b(R(K), {
|
|
3845
3836
|
type: "button",
|
|
@@ -3862,63 +3853,63 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3862
3853
|
]);
|
|
3863
3854
|
};
|
|
3864
3855
|
}
|
|
3865
|
-
}),
|
|
3856
|
+
}), Rr = {
|
|
3866
3857
|
key: 0,
|
|
3867
3858
|
class: "w-editable-table__toolbar"
|
|
3868
|
-
},
|
|
3859
|
+
}, zr = ["disabled"], Br = ["role"], Vr = {
|
|
3869
3860
|
key: 0,
|
|
3870
3861
|
class: "w-editable-table__group-row"
|
|
3871
|
-
},
|
|
3862
|
+
}, Hr = {
|
|
3872
3863
|
key: 0,
|
|
3873
3864
|
class: "w-editable-table__toggle-col"
|
|
3874
|
-
},
|
|
3865
|
+
}, Ur = ["colspan"], Wr = {
|
|
3875
3866
|
key: 1,
|
|
3876
3867
|
class: "w-editable-table__action-col"
|
|
3877
|
-
},
|
|
3868
|
+
}, Gr = {
|
|
3878
3869
|
key: 0,
|
|
3879
3870
|
class: "w-editable-table__toggle-col"
|
|
3880
|
-
},
|
|
3871
|
+
}, Kr = {
|
|
3881
3872
|
key: 1,
|
|
3882
3873
|
class: "w-editable-table__action-col"
|
|
3883
|
-
},
|
|
3874
|
+
}, qr = { key: 0 }, Jr = ["colspan"], Yr = {
|
|
3884
3875
|
key: 0,
|
|
3885
3876
|
class: "w-editable-table__toggle-col",
|
|
3886
3877
|
"data-card": "expander"
|
|
3887
|
-
},
|
|
3878
|
+
}, Xr = [
|
|
3888
3879
|
"aria-expanded",
|
|
3889
3880
|
"aria-label",
|
|
3890
3881
|
"onClick"
|
|
3891
|
-
],
|
|
3882
|
+
], Zr = {
|
|
3892
3883
|
key: 0,
|
|
3893
3884
|
class: "w-editable-table__toggle-label"
|
|
3894
|
-
},
|
|
3885
|
+
}, Qr = ["data-card"], $r = {
|
|
3895
3886
|
key: 0,
|
|
3896
3887
|
class: "w-editable-table__card-label"
|
|
3897
|
-
},
|
|
3888
|
+
}, ei = {
|
|
3898
3889
|
key: 4,
|
|
3899
3890
|
class: "w-editable-table__text"
|
|
3900
|
-
},
|
|
3891
|
+
}, ti = {
|
|
3901
3892
|
key: 1,
|
|
3902
3893
|
class: "w-editable-table__action-col",
|
|
3903
3894
|
"data-card": "actions"
|
|
3904
|
-
},
|
|
3895
|
+
}, ni = ["onClick"], ri = {
|
|
3905
3896
|
key: 0,
|
|
3906
3897
|
class: "w-editable-table__expansion"
|
|
3907
|
-
},
|
|
3898
|
+
}, ii = ["colspan"], ai = { key: 1 }, oi = { class: "w-editable-table__footer" }, si = {
|
|
3908
3899
|
key: 0,
|
|
3909
3900
|
class: "w-editable-table__toggle-col",
|
|
3910
3901
|
"data-card": "hidden"
|
|
3911
|
-
},
|
|
3902
|
+
}, ci = ["data-card"], li = {
|
|
3912
3903
|
key: 0,
|
|
3913
3904
|
class: "w-editable-table__card-label"
|
|
3914
|
-
},
|
|
3905
|
+
}, ui = {
|
|
3915
3906
|
key: 0,
|
|
3916
3907
|
class: "w-editable-table__footer-label"
|
|
3917
|
-
},
|
|
3908
|
+
}, di = { key: 1 }, fi = {
|
|
3918
3909
|
key: 1,
|
|
3919
3910
|
class: "w-editable-table__action-col",
|
|
3920
3911
|
"data-card": "hidden"
|
|
3921
|
-
},
|
|
3912
|
+
}, pi = /* @__PURE__ */ x({
|
|
3922
3913
|
__name: "WEditableTable",
|
|
3923
3914
|
props: {
|
|
3924
3915
|
modelValue: { default: () => [] },
|
|
@@ -3968,13 +3959,13 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3968
3959
|
return t ? T(t) ? t.value : t : [];
|
|
3969
3960
|
}
|
|
3970
3961
|
function C(e) {
|
|
3971
|
-
return e.
|
|
3962
|
+
return e.editor === "number" || e.footer === "sum" || e.decimals != null;
|
|
3972
3963
|
}
|
|
3973
3964
|
function w(e) {
|
|
3974
|
-
return e.
|
|
3965
|
+
return e.align ? e.align : C(e) ? "right" : "left";
|
|
3975
3966
|
}
|
|
3976
3967
|
function E(e) {
|
|
3977
|
-
return [`w-editable-table__cell--${
|
|
3968
|
+
return [`w-editable-table__cell--${w(e)}`, ...C(e) ? ["w-editable-table__cell--num"] : []];
|
|
3978
3969
|
}
|
|
3979
3970
|
function D(e) {
|
|
3980
3971
|
if (!(c.value || e.width == null)) return { width: typeof e.width == "number" ? `${e.width}px` : e.width };
|
|
@@ -3992,7 +3983,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
3992
3983
|
}
|
|
3993
3984
|
function ee(e, t) {
|
|
3994
3985
|
let n = t[e.field];
|
|
3995
|
-
return e.format ? e.format(n, t) : n == null || n === "" ? "—" :
|
|
3986
|
+
return e.format ? e.format(n, t) : n == null || n === "" ? "—" : C(e) ? `${o(A(n), e.decimals ?? 2)}${e.suffix ?? ""}` : `${String(n)}${e.suffix ?? ""}`;
|
|
3996
3987
|
}
|
|
3997
3988
|
function te(e, t, n) {
|
|
3998
3989
|
let r = i.modelValue.map((r, i) => i === e ? {
|
|
@@ -4033,52 +4024,52 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
4033
4024
|
}
|
|
4034
4025
|
return e;
|
|
4035
4026
|
});
|
|
4036
|
-
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",
|
|
4027
|
+
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", Rr, [I(e.$slots, "toolbar", {}, () => [t.addLabel ? (M(), h("button", {
|
|
4037
4028
|
key: 0,
|
|
4038
4029
|
type: "button",
|
|
4039
4030
|
class: "w-editable-table__add",
|
|
4040
4031
|
disabled: t.disabled,
|
|
4041
4032
|
onClick: n[0] ||= (e) => a("add")
|
|
4042
|
-
}, [n[1] ||= g("i", { class: "pi pi-plus" }, null, -1), y(L(t.addLabel), 1)], 8,
|
|
4033
|
+
}, [n[1] ||= g("i", { class: "pi pi-plus" }, null, -1), y(L(t.addLabel), 1)], 8, zr)) : m("", !0)]), I(e.$slots, "toolbar-extra")])) : m("", !0), g("table", {
|
|
4043
4034
|
class: "w-editable-table__table",
|
|
4044
4035
|
role: c.value ? "presentation" : void 0
|
|
4045
4036
|
}, [
|
|
4046
|
-
g("thead", null, [ce.value ? (M(), h("tr",
|
|
4047
|
-
t.expandable ? (M(), h("th",
|
|
4037
|
+
g("thead", null, [ce.value ? (M(), h("tr", Vr, [
|
|
4038
|
+
t.expandable ? (M(), h("th", Hr)) : m("", !0),
|
|
4048
4039
|
(M(!0), h(d, null, F(le.value, (e) => (M(), h("th", {
|
|
4049
4040
|
key: e.key,
|
|
4050
4041
|
colspan: e.span,
|
|
4051
4042
|
class: k(["w-editable-table__group", { "w-editable-table__group--label": e.label }])
|
|
4052
|
-
}, L(e.label), 11,
|
|
4053
|
-
t.removable ? (M(), h("th",
|
|
4043
|
+
}, L(e.label), 11, Ur))), 128)),
|
|
4044
|
+
t.removable ? (M(), h("th", Wr)) : m("", !0)
|
|
4054
4045
|
])) : m("", !0), g("tr", null, [
|
|
4055
|
-
t.expandable ? (M(), h("th",
|
|
4046
|
+
t.expandable ? (M(), h("th", Gr)) : m("", !0),
|
|
4056
4047
|
(M(!0), h(d, null, F(t.columns, (e) => (M(), h("th", {
|
|
4057
4048
|
key: e.field,
|
|
4058
4049
|
class: k(E(e)),
|
|
4059
4050
|
style: j(D(e))
|
|
4060
4051
|
}, L(e.header), 7))), 128)),
|
|
4061
|
-
t.removable ? (M(), h("th",
|
|
4052
|
+
t.removable ? (M(), h("th", Kr)) : m("", !0)
|
|
4062
4053
|
])]),
|
|
4063
|
-
t.modelValue.length ? m("", !0) : (M(), h("tbody",
|
|
4054
|
+
t.modelValue.length ? m("", !0) : (M(), h("tbody", qr, [g("tr", null, [g("td", {
|
|
4064
4055
|
colspan: se.value,
|
|
4065
4056
|
class: "w-editable-table__empty",
|
|
4066
4057
|
"data-card": "expansion"
|
|
4067
|
-
}, [I(e.$slots, "empty", {}, () => [y(L(t.emptyMessage), 1)])], 8,
|
|
4058
|
+
}, [I(e.$slots, "empty", {}, () => [y(L(t.emptyMessage), 1)])], 8, Jr)])])),
|
|
4068
4059
|
(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 }]) }, [
|
|
4069
|
-
t.expandable ? (M(), h("td",
|
|
4060
|
+
t.expandable ? (M(), h("td", Yr, [g("button", {
|
|
4070
4061
|
type: "button",
|
|
4071
4062
|
class: "w-editable-table__toggle",
|
|
4072
4063
|
"aria-expanded": b(i),
|
|
4073
4064
|
"aria-label": t.expansionLabel,
|
|
4074
4065
|
onClick: (e) => x(i)
|
|
4075
|
-
}, [g("i", { class: k(b(i) ? "pi pi-chevron-down" : "pi pi-chevron-right") }, null, 2), c.value ? (M(), h("span",
|
|
4066
|
+
}, [g("i", { class: k(b(i) ? "pi pi-chevron-down" : "pi pi-chevron-right") }, null, 2), c.value ? (M(), h("span", Zr, L(t.expansionLabel), 1)) : m("", !0)], 8, Xr)])) : m("", !0),
|
|
4076
4067
|
(M(!0), h(d, null, F(t.columns, (t) => (M(), h("td", {
|
|
4077
4068
|
key: t.field,
|
|
4078
4069
|
class: k(E(t)),
|
|
4079
4070
|
style: j(D(t)),
|
|
4080
4071
|
"data-card": u(t)
|
|
4081
|
-
}, [c.value ? (M(), h("span",
|
|
4072
|
+
}, [c.value ? (M(), h("span", $r, L(_(t)), 1)) : m("", !0), I(e.$slots, `cell-${t.field}`, {
|
|
4082
4073
|
row: r,
|
|
4083
4074
|
index: i,
|
|
4084
4075
|
value: r[t.field],
|
|
@@ -4153,51 +4144,51 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
4153
4144
|
"placeholder",
|
|
4154
4145
|
"disabled",
|
|
4155
4146
|
"onUpdate:modelValue"
|
|
4156
|
-
])) : (M(), h("span",
|
|
4157
|
-
t.removable ? (M(), h("td",
|
|
4147
|
+
])) : (M(), h("span", ei, L(ee(t, r)), 1))])], 14, Qr))), 128)),
|
|
4148
|
+
t.removable ? (M(), h("td", ti, [g("button", {
|
|
4158
4149
|
type: "button",
|
|
4159
4150
|
class: "w-editable-table__remove",
|
|
4160
4151
|
"aria-label": "Remover linha",
|
|
4161
4152
|
onClick: (e) => ne(r, i)
|
|
4162
|
-
}, [...n[2] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8,
|
|
4163
|
-
], 2), t.expandable && b(i) ? (M(), h("tr",
|
|
4153
|
+
}, [...n[2] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, ni)])) : m("", !0)
|
|
4154
|
+
], 2), t.expandable && b(i) ? (M(), h("tr", ri, [g("td", {
|
|
4164
4155
|
colspan: se.value,
|
|
4165
4156
|
"data-card": "expansion"
|
|
4166
4157
|
}, [I(e.$slots, "expansion", {
|
|
4167
4158
|
row: r,
|
|
4168
4159
|
index: i
|
|
4169
|
-
})], 8,
|
|
4170
|
-
re.value ? (M(), h("tfoot",
|
|
4171
|
-
t.expandable ? (M(), h("td",
|
|
4160
|
+
})], 8, ii)])) : m("", !0)]))), 128)),
|
|
4161
|
+
re.value ? (M(), h("tfoot", ai, [g("tr", oi, [
|
|
4162
|
+
t.expandable ? (M(), h("td", si)) : m("", !0),
|
|
4172
4163
|
(M(!0), h(d, null, F(t.columns, (n) => (M(), h("td", {
|
|
4173
4164
|
key: n.field,
|
|
4174
4165
|
class: k(E(n)),
|
|
4175
4166
|
style: j(D(n)),
|
|
4176
4167
|
"data-card": n.field === oe.value ? "total-label" : ae(n) ? "read" : "hidden"
|
|
4177
|
-
}, [c.value && ae(n) ? (M(), h("span",
|
|
4168
|
+
}, [c.value && ae(n) ? (M(), h("span", li, L(_(n)), 1)) : m("", !0), I(e.$slots, `footer-${n.field}`, {
|
|
4178
4169
|
rows: t.modelValue,
|
|
4179
4170
|
column: n
|
|
4180
|
-
}, () => [n.field === oe.value ? (M(), h("span",
|
|
4181
|
-
t.removable ? (M(), h("td",
|
|
4171
|
+
}, () => [n.field === oe.value ? (M(), h("span", ui, L(t.footerLabel), 1)) : (M(), h("span", di, L(ie(n)), 1))])], 14, ci))), 128)),
|
|
4172
|
+
t.removable ? (M(), h("td", fi)) : m("", !0)
|
|
4182
4173
|
])])) : m("", !0)
|
|
4183
|
-
], 8,
|
|
4174
|
+
], 8, Br)], 2));
|
|
4184
4175
|
}
|
|
4185
|
-
}),
|
|
4176
|
+
}), mi = { class: "w-crud-subview" }, hi = {
|
|
4186
4177
|
key: 0,
|
|
4187
4178
|
class: "w-crud-subview__header"
|
|
4188
|
-
},
|
|
4179
|
+
}, gi = { class: "w-crud-subview__heading" }, _i = {
|
|
4189
4180
|
key: 0,
|
|
4190
4181
|
class: "w-crud-subview__title"
|
|
4191
|
-
},
|
|
4182
|
+
}, vi = {
|
|
4192
4183
|
key: 0,
|
|
4193
4184
|
class: "w-crud-subview__count"
|
|
4194
|
-
},
|
|
4185
|
+
}, yi = {
|
|
4195
4186
|
key: 1,
|
|
4196
4187
|
class: "w-crud-subview__subtitle"
|
|
4197
|
-
},
|
|
4188
|
+
}, bi = {
|
|
4198
4189
|
key: 0,
|
|
4199
4190
|
class: "w-crud-subview__actions"
|
|
4200
|
-
},
|
|
4191
|
+
}, xi = { class: "w-crud-subview__row-actions" }, Si = ["onClick"], Ci = ["onClick"], wi = "__acoes", Ti = /* @__PURE__ */ x({
|
|
4201
4192
|
__name: "WCrudSubview",
|
|
4202
4193
|
props: {
|
|
4203
4194
|
crud: {},
|
|
@@ -4223,18 +4214,18 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
4223
4214
|
},
|
|
4224
4215
|
setup(e) {
|
|
4225
4216
|
let t = e, n = ue(), 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, {
|
|
4226
|
-
field:
|
|
4217
|
+
field: wi,
|
|
4227
4218
|
header: "",
|
|
4228
4219
|
width: "5rem",
|
|
4229
4220
|
align: "right",
|
|
4230
4221
|
card: "actions"
|
|
4231
|
-
}] : t.columns), l = f(() => Object.keys(n).filter((e) => e.startsWith("cell-") && e !== `cell-${
|
|
4222
|
+
}] : t.columns), l = f(() => Object.keys(n).filter((e) => e.startsWith("cell-") && e !== `cell-${wi}`)), u = f(() => Object.keys(n).filter((e) => e.startsWith("field-") || e.startsWith("image-")));
|
|
4232
4223
|
function d(e) {
|
|
4233
4224
|
t.crud.config.onChange(e);
|
|
4234
4225
|
}
|
|
4235
|
-
return (t, n) => (M(), h("div",
|
|
4236
|
-
e.title || t.$slots["toolbar-actions"] ? (M(), h("div",
|
|
4237
|
-
b(
|
|
4226
|
+
return (t, n) => (M(), h("div", mi, [
|
|
4227
|
+
e.title || t.$slots["toolbar-actions"] ? (M(), h("div", hi, [g("div", gi, [e.title ? (M(), h("h3", _i, [y(L(e.title) + " ", 1), r.value.length ? (M(), h("span", vi, L(r.value.length), 1)) : m("", !0)])) : m("", !0), e.subtitle ? (M(), h("p", yi, L(e.subtitle), 1)) : m("", !0)]), t.$slots["toolbar-actions"] ? (M(), h("div", bi, [I(t.$slots, "toolbar-actions")])) : m("", !0)])) : m("", !0),
|
|
4228
|
+
b(pi, {
|
|
4238
4229
|
"model-value": r.value,
|
|
4239
4230
|
columns: c.value,
|
|
4240
4231
|
expandable: e.expandable,
|
|
@@ -4248,19 +4239,19 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
4248
4239
|
"onUpdate:modelValue": d,
|
|
4249
4240
|
onAdd: n[0] ||= (t) => e.crud.openCreateDialog()
|
|
4250
4241
|
}, _({
|
|
4251
|
-
[`cell-${
|
|
4242
|
+
[`cell-${wi}`]: V(({ row: t, index: r }) => [g("div", xi, [a.value ? (M(), h("button", {
|
|
4252
4243
|
key: 0,
|
|
4253
4244
|
type: "button",
|
|
4254
4245
|
class: "w-crud-subview__action",
|
|
4255
4246
|
"aria-label": "Editar",
|
|
4256
4247
|
onClick: (n) => e.crud.openEditDialog(t, r)
|
|
4257
|
-
}, [...n[3] ||= [g("i", { class: "pi pi-pencil" }, null, -1)]], 8,
|
|
4248
|
+
}, [...n[3] ||= [g("i", { class: "pi pi-pencil" }, null, -1)]], 8, Si)) : m("", !0), o.value ? (M(), h("button", {
|
|
4258
4249
|
key: 1,
|
|
4259
4250
|
type: "button",
|
|
4260
4251
|
class: "w-crud-subview__action w-crud-subview__action--danger",
|
|
4261
4252
|
"aria-label": "Excluir",
|
|
4262
4253
|
onClick: (n) => e.crud.confirmDelete(t, r)
|
|
4263
|
-
}, [...n[4] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8,
|
|
4254
|
+
}, [...n[4] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, Ci)) : m("", !0)])]),
|
|
4264
4255
|
_: 2
|
|
4265
4256
|
}, [
|
|
4266
4257
|
t.$slots["toolbar-extra"] ? {
|
|
@@ -4294,7 +4285,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
4294
4285
|
"card-mode",
|
|
4295
4286
|
"expansion-label"
|
|
4296
4287
|
]),
|
|
4297
|
-
b(
|
|
4288
|
+
b(Kn, {
|
|
4298
4289
|
visible: e.crud.dialogVisible.value,
|
|
4299
4290
|
title: e.crud.dialogTitle.value,
|
|
4300
4291
|
fields: e.crud.config.form,
|
|
@@ -4336,7 +4327,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
4336
4327
|
])
|
|
4337
4328
|
]));
|
|
4338
4329
|
}
|
|
4339
|
-
}),
|
|
4330
|
+
}), Ei = /* @__PURE__ */ x({
|
|
4340
4331
|
__name: "WDateRange",
|
|
4341
4332
|
props: {
|
|
4342
4333
|
modelValue: { default: null },
|
|
@@ -4359,6 +4350,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
4359
4350
|
n("update:modelValue", e ?? null);
|
|
4360
4351
|
}
|
|
4361
4352
|
return (t, n) => (M(), p(R(Ee), {
|
|
4353
|
+
class: "w-date-range",
|
|
4362
4354
|
"model-value": e.modelValue ?? void 0,
|
|
4363
4355
|
"selection-mode": "range",
|
|
4364
4356
|
placeholder: e.placeholder,
|
|
@@ -4378,29 +4370,10 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
4378
4370
|
"disabled"
|
|
4379
4371
|
]));
|
|
4380
4372
|
}
|
|
4381
|
-
}),
|
|
4382
|
-
class: "w-fileupload",
|
|
4383
|
-
style: {
|
|
4384
|
-
display: "flex",
|
|
4385
|
-
"flex-direction": "column",
|
|
4386
|
-
gap: "0.5rem"
|
|
4387
|
-
}
|
|
4388
|
-
}, Ei = ["accept", "multiple"], Di = {
|
|
4373
|
+
}), Di = { class: "w-fileupload" }, Oi = ["accept", "multiple"], ki = {
|
|
4389
4374
|
key: 0,
|
|
4390
|
-
|
|
4391
|
-
|
|
4392
|
-
margin: "0",
|
|
4393
|
-
padding: "0",
|
|
4394
|
-
display: "flex",
|
|
4395
|
-
"flex-direction": "column",
|
|
4396
|
-
gap: "0.35rem"
|
|
4397
|
-
}
|
|
4398
|
-
}, Oi = { style: {
|
|
4399
|
-
flex: "1",
|
|
4400
|
-
overflow: "hidden",
|
|
4401
|
-
"text-overflow": "ellipsis",
|
|
4402
|
-
"white-space": "nowrap"
|
|
4403
|
-
} }, ki = { style: { opacity: "0.6" } }, Ai = /* @__PURE__ */ x({
|
|
4375
|
+
class: "w-fileupload__list"
|
|
4376
|
+
}, Ai = { class: "w-fileupload__name" }, ji = { class: "w-fileupload__size" }, Mi = /* @__PURE__ */ x({
|
|
4404
4377
|
__name: "WFileUpload",
|
|
4405
4378
|
props: {
|
|
4406
4379
|
modelValue: { default: null },
|
|
@@ -4449,7 +4422,7 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
4449
4422
|
function l(e) {
|
|
4450
4423
|
return e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(0)} KB` : `${(e / 1048576).toFixed(1)} MB`;
|
|
4451
4424
|
}
|
|
4452
|
-
return (t, n) => (M(), h("div",
|
|
4425
|
+
return (t, n) => (M(), h("div", Di, [
|
|
4453
4426
|
g("div", null, [b(R(K), {
|
|
4454
4427
|
type: "button",
|
|
4455
4428
|
label: e.chooseLabel,
|
|
@@ -4465,24 +4438,16 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
4465
4438
|
type: "file",
|
|
4466
4439
|
accept: e.accept,
|
|
4467
4440
|
multiple: e.multiple,
|
|
4468
|
-
|
|
4441
|
+
class: "w-fileupload__input",
|
|
4469
4442
|
onChange: s
|
|
4470
|
-
}, null, 40,
|
|
4471
|
-
a.value.length ? (M(), h("ul",
|
|
4443
|
+
}, null, 40, Oi),
|
|
4444
|
+
a.value.length ? (M(), h("ul", ki, [(M(!0), h(d, null, F(a.value, (t, r) => (M(), h("li", {
|
|
4472
4445
|
key: `${t.name}-${r}`,
|
|
4473
|
-
|
|
4474
|
-
display: "flex",
|
|
4475
|
-
"align-items": "center",
|
|
4476
|
-
gap: "0.5rem",
|
|
4477
|
-
"font-size": "0.85rem"
|
|
4478
|
-
}
|
|
4446
|
+
class: "w-fileupload__item"
|
|
4479
4447
|
}, [
|
|
4480
|
-
n[0] ||= g("i", {
|
|
4481
|
-
|
|
4482
|
-
|
|
4483
|
-
}, null, -1),
|
|
4484
|
-
g("span", Oi, L(t.name), 1),
|
|
4485
|
-
g("span", ki, L(l(t.size)), 1),
|
|
4448
|
+
n[0] ||= g("i", { class: "pi pi-file w-fileupload__icon" }, null, -1),
|
|
4449
|
+
g("span", Ai, L(t.name), 1),
|
|
4450
|
+
g("span", ji, L(l(t.size)), 1),
|
|
4486
4451
|
b(R(K), {
|
|
4487
4452
|
type: "button",
|
|
4488
4453
|
icon: "pi pi-times",
|
|
@@ -4498,17 +4463,14 @@ var Yn = { class: "w-crud" }, Xn = {
|
|
|
4498
4463
|
"disabled",
|
|
4499
4464
|
"onClick"
|
|
4500
4465
|
])
|
|
4501
|
-
]))), 128))])) : I(t.$slots, "empty", {}, () => [n[1] ||= g("span", {
|
|
4502
|
-
"font-size": "0.8rem",
|
|
4503
|
-
opacity: "0.6"
|
|
4504
|
-
} }, "Nenhum arquivo selecionado", -1)], void 0, 1)
|
|
4466
|
+
]))), 128))])) : I(t.$slots, "empty", {}, () => [n[1] ||= g("span", { class: "w-fileupload__empty" }, "Nenhum arquivo selecionado", -1)], void 0, 1)
|
|
4505
4467
|
]));
|
|
4506
4468
|
}
|
|
4507
4469
|
});
|
|
4508
|
-
function
|
|
4470
|
+
function Ni(e) {
|
|
4509
4471
|
return String(e ?? "").normalize("NFD").replace(/\p{Diacritic}/gu, "").toLocaleLowerCase();
|
|
4510
4472
|
}
|
|
4511
|
-
function
|
|
4473
|
+
function Pi(e, { optionValue: t = "id", optionLabel: n = "nome", groupBy: r, groupLabel: i } = {}) {
|
|
4512
4474
|
let a = [], o = /* @__PURE__ */ new Map();
|
|
4513
4475
|
for (let s of e ?? []) {
|
|
4514
4476
|
let e = s[t];
|
|
@@ -4534,19 +4496,19 @@ function Mi(e, { optionValue: t = "id", optionLabel: n = "nome", groupBy: r, gro
|
|
|
4534
4496
|
}
|
|
4535
4497
|
return a;
|
|
4536
4498
|
}
|
|
4537
|
-
function
|
|
4538
|
-
return e.children?.length ? e.children.flatMap(
|
|
4499
|
+
function Fi(e) {
|
|
4500
|
+
return e.children?.length ? e.children.flatMap(Fi) : e.value === void 0 ? [] : [e.value];
|
|
4539
4501
|
}
|
|
4540
|
-
function
|
|
4541
|
-
return e.flatMap(
|
|
4502
|
+
function Ii(e) {
|
|
4503
|
+
return e.flatMap(Fi);
|
|
4542
4504
|
}
|
|
4543
|
-
function
|
|
4505
|
+
function Li(e) {
|
|
4544
4506
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
4545
4507
|
t.set(e.key, e), e.children?.forEach(n);
|
|
4546
4508
|
};
|
|
4547
4509
|
return e.forEach(n), t;
|
|
4548
4510
|
}
|
|
4549
|
-
function
|
|
4511
|
+
function Ri(e, t) {
|
|
4550
4512
|
let n = new Set(t ?? []), r = {}, i = (e) => {
|
|
4551
4513
|
if (!e.children?.length) {
|
|
4552
4514
|
let t = e.value !== void 0 && n.has(e.value);
|
|
@@ -4576,10 +4538,10 @@ function Ii(e, t) {
|
|
|
4576
4538
|
};
|
|
4577
4539
|
return e.forEach(i), r;
|
|
4578
4540
|
}
|
|
4579
|
-
function
|
|
4580
|
-
let r =
|
|
4541
|
+
function zi(e, t, n = []) {
|
|
4542
|
+
let r = Ni(t).trim();
|
|
4581
4543
|
if (!r) return [...e];
|
|
4582
|
-
let i = (e) =>
|
|
4544
|
+
let i = (e) => Ni(e.label).includes(r) ? !0 : n.some((t) => Ni(e.data?.[t]).includes(r)), a = [];
|
|
4583
4545
|
for (let r of e) {
|
|
4584
4546
|
if (!r.children?.length) {
|
|
4585
4547
|
i(r) && a.push(r);
|
|
@@ -4589,7 +4551,7 @@ function Li(e, t, n = []) {
|
|
|
4589
4551
|
a.push(r);
|
|
4590
4552
|
continue;
|
|
4591
4553
|
}
|
|
4592
|
-
let e =
|
|
4554
|
+
let e = zi(r.children, t, n);
|
|
4593
4555
|
e.length && a.push({
|
|
4594
4556
|
...r,
|
|
4595
4557
|
children: e
|
|
@@ -4597,7 +4559,7 @@ function Li(e, t, n = []) {
|
|
|
4597
4559
|
}
|
|
4598
4560
|
return a;
|
|
4599
4561
|
}
|
|
4600
|
-
function
|
|
4562
|
+
function Bi(e, t, n) {
|
|
4601
4563
|
let r = new Set(t);
|
|
4602
4564
|
if (!n) return (e ?? []).filter((e) => !r.has(e));
|
|
4603
4565
|
let i = [...e ?? []], a = new Set(i);
|
|
@@ -4606,19 +4568,19 @@ function Ri(e, t, n) {
|
|
|
4606
4568
|
}
|
|
4607
4569
|
//#endregion
|
|
4608
4570
|
//#region src/components/form/WTreeSelect.vue?vue&type=script&setup=true&lang.ts
|
|
4609
|
-
var
|
|
4571
|
+
var Vi = {
|
|
4610
4572
|
key: 0,
|
|
4611
4573
|
class: "w-tree-select__head"
|
|
4612
|
-
},
|
|
4574
|
+
}, Hi = {
|
|
4613
4575
|
key: 0,
|
|
4614
4576
|
class: "w-tree-select__count"
|
|
4615
|
-
},
|
|
4577
|
+
}, Ui = { key: 1 }, Wi = {
|
|
4616
4578
|
key: 2,
|
|
4617
4579
|
class: "w-tree-select__actions"
|
|
4618
|
-
},
|
|
4580
|
+
}, Gi = {
|
|
4619
4581
|
key: 2,
|
|
4620
4582
|
class: "w-tree-select__empty"
|
|
4621
|
-
},
|
|
4583
|
+
}, Ki = /* @__PURE__ */ x({
|
|
4622
4584
|
__name: "WTreeSelect",
|
|
4623
4585
|
props: {
|
|
4624
4586
|
modelValue: { default: () => [] },
|
|
@@ -4659,13 +4621,13 @@ var zi = {
|
|
|
4659
4621
|
},
|
|
4660
4622
|
emits: ["update:modelValue"],
|
|
4661
4623
|
setup(e, { emit: t }) {
|
|
4662
|
-
let n = e, r = t, i = P(""), a = P({}), o = f(() =>
|
|
4624
|
+
let n = e, r = t, i = P(""), a = P({}), o = f(() => Pi(n.options, {
|
|
4663
4625
|
optionValue: n.optionValue,
|
|
4664
4626
|
optionLabel: n.optionLabel,
|
|
4665
4627
|
groupBy: n.groupBy,
|
|
4666
4628
|
groupLabel: n.groupLabel
|
|
4667
|
-
})), s = f(() =>
|
|
4668
|
-
let e = new Set(
|
|
4629
|
+
})), s = f(() => Li(o.value)), c = f(() => n.filter && i.value.trim().length > 0), l = f(() => c.value ? zi(o.value, i.value, n.filterFields) : o.value), u = f(() => Ri(o.value, n.modelValue)), d = f(() => Ii(o.value).length), g = f(() => {
|
|
4630
|
+
let e = new Set(Ii(o.value));
|
|
4669
4631
|
return n.modelValue.filter((t) => e.has(t)).length;
|
|
4670
4632
|
}), _ = 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);
|
|
4671
4633
|
function S(e) {
|
|
@@ -4684,10 +4646,10 @@ var zi = {
|
|
|
4684
4646
|
function w(e, t) {
|
|
4685
4647
|
if (n.disabled) return;
|
|
4686
4648
|
let i = s.value.get(e.key);
|
|
4687
|
-
i && r("update:modelValue",
|
|
4649
|
+
i && r("update:modelValue", Bi(n.modelValue, Fi(i), t));
|
|
4688
4650
|
}
|
|
4689
4651
|
function T() {
|
|
4690
|
-
n.disabled || r("update:modelValue",
|
|
4652
|
+
n.disabled || r("update:modelValue", Ii(o.value));
|
|
4691
4653
|
}
|
|
4692
4654
|
function E() {
|
|
4693
4655
|
n.disabled || r("update:modelValue", []);
|
|
@@ -4696,7 +4658,7 @@ var zi = {
|
|
|
4696
4658
|
I(t.$slots, "header", {
|
|
4697
4659
|
selectedCount: g.value,
|
|
4698
4660
|
total: d.value
|
|
4699
|
-
}, () => [_.value ? (M(), h("div",
|
|
4661
|
+
}, () => [_.value ? (M(), h("div", Vi, [e.showCount ? (M(), h("span", Hi, L(g.value) + " de " + L(d.value) + " selecionados ", 1)) : (M(), h("span", Ui)), e.showToggleAll ? (M(), h("div", Wi, [b(R(K), {
|
|
4700
4662
|
type: "button",
|
|
4701
4663
|
label: "Marcar todos",
|
|
4702
4664
|
text: "",
|
|
@@ -4733,7 +4695,7 @@ var zi = {
|
|
|
4733
4695
|
])]),
|
|
4734
4696
|
_: 1
|
|
4735
4697
|
})) : m("", !0),
|
|
4736
|
-
v.value ? (M(), h("div",
|
|
4698
|
+
v.value ? (M(), h("div", Gi, [I(t.$slots, "empty", { filtering: c.value }, () => [y(L(x.value), 1)])])) : (M(), p(R(Ae), {
|
|
4737
4699
|
key: 1,
|
|
4738
4700
|
value: l.value,
|
|
4739
4701
|
"selection-mode": "checkbox",
|
|
@@ -4757,9 +4719,9 @@ var zi = {
|
|
|
4757
4719
|
]))
|
|
4758
4720
|
], 2));
|
|
4759
4721
|
}
|
|
4760
|
-
}),
|
|
4761
|
-
function
|
|
4762
|
-
return
|
|
4722
|
+
}), qi = null;
|
|
4723
|
+
function Ji() {
|
|
4724
|
+
return qi ||= Promise.all([
|
|
4763
4725
|
import("echarts/core"),
|
|
4764
4726
|
import("echarts/charts"),
|
|
4765
4727
|
import("echarts/components"),
|
|
@@ -4775,11 +4737,11 @@ function Ki() {
|
|
|
4775
4737
|
n.TooltipComponent,
|
|
4776
4738
|
r.CanvasRenderer,
|
|
4777
4739
|
r.SVGRenderer
|
|
4778
|
-
]), e)).catch(() => (
|
|
4740
|
+
]), e)).catch(() => (qi = null, null)), qi;
|
|
4779
4741
|
}
|
|
4780
|
-
var
|
|
4781
|
-
function
|
|
4782
|
-
let e =
|
|
4742
|
+
var Yi = (e, t = "") => typeof window > "u" ? t : getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
|
|
4743
|
+
function Xi() {
|
|
4744
|
+
let e = Yi("--w-fg"), t = Yi("--w-fg-muted"), n = Yi("--w-border"), r = Yi("--w-surface"), i = Yi("--font-sans", "sans-serif"), a = {
|
|
4783
4745
|
axisLine: { lineStyle: { color: n } },
|
|
4784
4746
|
axisTick: { show: !1 },
|
|
4785
4747
|
axisLabel: { color: t },
|
|
@@ -4794,7 +4756,7 @@ function Ji() {
|
|
|
4794
4756
|
4,
|
|
4795
4757
|
5,
|
|
4796
4758
|
6
|
|
4797
|
-
].map((e) =>
|
|
4759
|
+
].map((e) => Yi(`--w-viz-${e}`)),
|
|
4798
4760
|
backgroundColor: "transparent",
|
|
4799
4761
|
textStyle: {
|
|
4800
4762
|
color: e,
|
|
@@ -4823,7 +4785,7 @@ function Ji() {
|
|
|
4823
4785
|
backgroundColor: r,
|
|
4824
4786
|
borderColor: n,
|
|
4825
4787
|
textStyle: { color: e },
|
|
4826
|
-
extraCssText: "box-shadow: var(--shadow-md
|
|
4788
|
+
extraCssText: "box-shadow: var(--w-shadow-md); border-radius: var(--w-radius-sm);"
|
|
4827
4789
|
},
|
|
4828
4790
|
line: {
|
|
4829
4791
|
symbolSize: 6,
|
|
@@ -4844,7 +4806,7 @@ function Ji() {
|
|
|
4844
4806
|
] } }
|
|
4845
4807
|
};
|
|
4846
4808
|
}
|
|
4847
|
-
function
|
|
4809
|
+
function Zi() {
|
|
4848
4810
|
let e = [
|
|
4849
4811
|
"#141a22",
|
|
4850
4812
|
"#5a6573",
|
|
@@ -4897,16 +4859,16 @@ function Yi() {
|
|
|
4897
4859
|
bar: { itemStyle: { borderRadius: 0 } }
|
|
4898
4860
|
};
|
|
4899
4861
|
}
|
|
4900
|
-
function
|
|
4862
|
+
function Qi() {
|
|
4901
4863
|
return {
|
|
4902
4864
|
text: "",
|
|
4903
|
-
color:
|
|
4865
|
+
color: Yi("--w-primary"),
|
|
4904
4866
|
maskColor: "transparent",
|
|
4905
4867
|
spinnerRadius: 8,
|
|
4906
4868
|
lineWidth: 2
|
|
4907
4869
|
};
|
|
4908
4870
|
}
|
|
4909
|
-
function
|
|
4871
|
+
function $i({ data: e, format: t = (e) => String(e), centerLabel: n = "", centerSub: r = "" }) {
|
|
4910
4872
|
return {
|
|
4911
4873
|
tooltip: {
|
|
4912
4874
|
trigger: "item",
|
|
@@ -4940,13 +4902,13 @@ function Zi({ data: e, format: t = (e) => String(e), centerLabel: n = "", center
|
|
|
4940
4902
|
}
|
|
4941
4903
|
//#endregion
|
|
4942
4904
|
//#region src/components/charts/WChart.vue?vue&type=script&setup=true&lang.ts
|
|
4943
|
-
var
|
|
4905
|
+
var ea = {
|
|
4944
4906
|
key: 0,
|
|
4945
4907
|
class: "w-chart__empty"
|
|
4946
|
-
},
|
|
4908
|
+
}, ta = {
|
|
4947
4909
|
key: 1,
|
|
4948
4910
|
class: "w-chart__empty"
|
|
4949
|
-
},
|
|
4911
|
+
}, na = /*#__PURE__*/ qt(/* @__PURE__ */ x({
|
|
4950
4912
|
__name: "WChart",
|
|
4951
4913
|
props: {
|
|
4952
4914
|
option: {},
|
|
@@ -4970,15 +4932,15 @@ var Qi = {
|
|
|
4970
4932
|
let t = e, n = P(null), r = oe(null), i = P(!1), a = null, o = null, s = () => {
|
|
4971
4933
|
r.value && r.value.setOption(t.option, !0);
|
|
4972
4934
|
}, c = () => {
|
|
4973
|
-
r.value && (t.loading ? r.value.showLoading("default",
|
|
4935
|
+
r.value && (t.loading ? r.value.showLoading("default", Qi()) : r.value.hideLoading());
|
|
4974
4936
|
}, l = async () => {
|
|
4975
|
-
let e = await
|
|
4937
|
+
let e = await Ji();
|
|
4976
4938
|
if (n.value) {
|
|
4977
4939
|
if (!e) {
|
|
4978
4940
|
i.value = !0;
|
|
4979
4941
|
return;
|
|
4980
4942
|
}
|
|
4981
|
-
i.value = !1, r.value?.dispose(), r.value = e.init(n.value, t.print ?
|
|
4943
|
+
i.value = !1, r.value?.dispose(), r.value = e.init(n.value, t.print ? Zi() : Xi(), { renderer: t.print ? "svg" : t.renderer }), s(), c();
|
|
4982
4944
|
}
|
|
4983
4945
|
};
|
|
4984
4946
|
return B(() => t.option, s, { deep: !0 }), B(() => t.loading, c), B([() => t.print, () => t.renderer], () => void l()), te(() => {
|
|
@@ -4988,13 +4950,13 @@ var Qi = {
|
|
|
4988
4950
|
}), (t, r) => (M(), h("div", {
|
|
4989
4951
|
class: "w-chart",
|
|
4990
4952
|
style: j(e.height ? { "--w-chart-h": e.height } : void 0)
|
|
4991
|
-
}, [e.empty && !e.loading ? (M(), h("div",
|
|
4953
|
+
}, [e.empty && !e.loading ? (M(), h("div", ea, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)], !0)])) : i.value ? (M(), h("div", ta, [I(t.$slots, "unavailable", {}, () => [r[0] ||= y("Gráfico indisponível.", -1)], !0)])) : m("", !0), H(g("div", {
|
|
4992
4954
|
ref_key: "container",
|
|
4993
4955
|
ref: n,
|
|
4994
4956
|
class: "w-chart__canvas"
|
|
4995
4957
|
}, null, 512), [[de, !e.empty && !i.value]])], 4));
|
|
4996
4958
|
}
|
|
4997
|
-
}), [["__scopeId", "data-v-
|
|
4959
|
+
}), [["__scopeId", "data-v-b56c43bd"]]), ra = /* @__PURE__ */ x({
|
|
4998
4960
|
__name: "WStatusTag",
|
|
4999
4961
|
props: {
|
|
5000
4962
|
value: {},
|
|
@@ -5120,10 +5082,10 @@ var Qi = {
|
|
|
5120
5082
|
"class"
|
|
5121
5083
|
]));
|
|
5122
5084
|
}
|
|
5123
|
-
}),
|
|
5085
|
+
}), ia = { class: "w-page-header" }, aa = { class: "w-page-header-content" }, oa = { class: "w-page-header-title" }, sa = {
|
|
5124
5086
|
key: 0,
|
|
5125
5087
|
class: "w-page-header-subtitle"
|
|
5126
|
-
},
|
|
5088
|
+
}, ca = { class: "w-page-header-actions" }, la = /* @__PURE__ */ x({
|
|
5127
5089
|
__name: "WPageHeader",
|
|
5128
5090
|
props: {
|
|
5129
5091
|
title: {},
|
|
@@ -5134,17 +5096,17 @@ var Qi = {
|
|
|
5134
5096
|
emits: ["action"],
|
|
5135
5097
|
setup(e, { emit: t }) {
|
|
5136
5098
|
let n = t;
|
|
5137
|
-
return (t, r) => (M(), h("div",
|
|
5099
|
+
return (t, r) => (M(), h("div", ia, [g("div", aa, [g("h2", oa, L(e.title), 1), e.subtitle ? (M(), h("p", sa, L(e.subtitle), 1)) : m("", !0)]), g("div", ca, [I(t.$slots, "actions"), e.actionLabel ? (M(), p(R(K), {
|
|
5138
5100
|
key: 0,
|
|
5139
5101
|
label: e.actionLabel,
|
|
5140
5102
|
icon: e.actionIcon,
|
|
5141
5103
|
onClick: r[0] ||= (e) => n("action")
|
|
5142
5104
|
}, null, 8, ["label", "icon"])) : m("", !0)])]));
|
|
5143
5105
|
}
|
|
5144
|
-
}),
|
|
5106
|
+
}), ua = { class: "w-empty-state" }, da = { class: "w-empty-state-icon" }, fa = { class: "w-empty-state-title" }, pa = {
|
|
5145
5107
|
key: 0,
|
|
5146
5108
|
class: "w-empty-state-description"
|
|
5147
|
-
},
|
|
5109
|
+
}, ma = /* @__PURE__ */ x({
|
|
5148
5110
|
__name: "WEmptyState",
|
|
5149
5111
|
props: {
|
|
5150
5112
|
icon: {},
|
|
@@ -5156,24 +5118,24 @@ var Qi = {
|
|
|
5156
5118
|
emits: ["action"],
|
|
5157
5119
|
setup(e, { emit: t }) {
|
|
5158
5120
|
let n = t;
|
|
5159
|
-
return (t, r) => (M(), h("div",
|
|
5160
|
-
g("div",
|
|
5161
|
-
g("p",
|
|
5162
|
-
e.description ? (M(), h("p",
|
|
5121
|
+
return (t, r) => (M(), h("div", ua, [
|
|
5122
|
+
g("div", da, [g("i", { class: k(e.icon) }, null, 2)]),
|
|
5123
|
+
g("p", fa, L(e.title), 1),
|
|
5124
|
+
e.description ? (M(), h("p", pa, L(e.description), 1)) : m("", !0),
|
|
5163
5125
|
e.actionLabel ? (M(), p(R(K), {
|
|
5164
5126
|
key: 1,
|
|
5165
5127
|
label: e.actionLabel,
|
|
5166
5128
|
icon: e.actionIcon,
|
|
5167
5129
|
size: "small",
|
|
5168
|
-
class: "
|
|
5130
|
+
class: "w-empty-state-action",
|
|
5169
5131
|
onClick: r[0] ||= (e) => n("action")
|
|
5170
5132
|
}, null, 8, ["label", "icon"])) : m("", !0)
|
|
5171
5133
|
]));
|
|
5172
5134
|
}
|
|
5173
|
-
}),
|
|
5135
|
+
}), ha = { class: "w-detail-header" }, ga = { class: "w-detail-header-left" }, _a = { class: "w-detail-header-content" }, va = { class: "w-detail-header-title" }, ya = {
|
|
5174
5136
|
key: 0,
|
|
5175
5137
|
class: "w-detail-header-subtitle"
|
|
5176
|
-
},
|
|
5138
|
+
}, ba = { class: "w-detail-header-actions" }, xa = /* @__PURE__ */ x({
|
|
5177
5139
|
__name: "WDetailHeader",
|
|
5178
5140
|
props: {
|
|
5179
5141
|
title: {},
|
|
@@ -5189,7 +5151,7 @@ var Qi = {
|
|
|
5189
5151
|
function r() {
|
|
5190
5152
|
t.backTo ? n.push(typeof t.backTo == "string" ? { name: t.backTo } : t.backTo) : t.backRoute ? n.push({ name: t.backRoute }) : n.back();
|
|
5191
5153
|
}
|
|
5192
|
-
return (t, n) => (M(), h("div",
|
|
5154
|
+
return (t, n) => (M(), h("div", ha, [g("div", ga, [
|
|
5193
5155
|
b(R(K), {
|
|
5194
5156
|
icon: "pi pi-arrow-left",
|
|
5195
5157
|
"aria-label": "Voltar",
|
|
@@ -5201,27 +5163,27 @@ var Qi = {
|
|
|
5201
5163
|
key: 0,
|
|
5202
5164
|
class: k([e.icon, "w-detail-header-icon"])
|
|
5203
5165
|
}, null, 2)) : m("", !0),
|
|
5204
|
-
g("div",
|
|
5205
|
-
e.status ? (M(), p(
|
|
5166
|
+
g("div", _a, [g("h2", va, L(e.title), 1), e.subtitle ? (M(), h("p", ya, L(e.subtitle), 1)) : m("", !0)]),
|
|
5167
|
+
e.status ? (M(), p(ra, {
|
|
5206
5168
|
key: 1,
|
|
5207
5169
|
value: e.status,
|
|
5208
5170
|
map: e.statusMap
|
|
5209
5171
|
}, null, 8, ["value", "map"])) : m("", !0)
|
|
5210
|
-
]), g("div",
|
|
5172
|
+
]), g("div", ba, [I(t.$slots, "actions")])]));
|
|
5211
5173
|
}
|
|
5212
|
-
}),
|
|
5174
|
+
}), Sa = {
|
|
5213
5175
|
key: 0,
|
|
5214
5176
|
class: "w-info-card-title"
|
|
5215
|
-
},
|
|
5177
|
+
}, Ca = {
|
|
5216
5178
|
key: 1,
|
|
5217
5179
|
class: "w-info-card-metrics"
|
|
5218
|
-
},
|
|
5180
|
+
}, wa = { class: "w-info-card-metric-label" }, Ta = { class: "w-info-card-metric-value" }, Ea = {
|
|
5219
5181
|
key: 0,
|
|
5220
5182
|
class: "w-info-card-metric-suffix"
|
|
5221
|
-
},
|
|
5183
|
+
}, Da = {
|
|
5222
5184
|
key: 2,
|
|
5223
5185
|
class: "w-info-card-grid"
|
|
5224
|
-
},
|
|
5186
|
+
}, Oa = { class: "w-info-card-label" }, ka = { class: "w-info-card-value" }, Aa = /* @__PURE__ */ x({
|
|
5225
5187
|
__name: "WInfoCard",
|
|
5226
5188
|
props: {
|
|
5227
5189
|
title: {},
|
|
@@ -5234,34 +5196,34 @@ var Qi = {
|
|
|
5234
5196
|
let n = e.value;
|
|
5235
5197
|
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);
|
|
5236
5198
|
}
|
|
5237
|
-
return (t, n) => (M(), h("div", { class: k(["w-info-card", `w-info-card--${e.variant}`]) }, [e.title ? (M(), h("h3",
|
|
5199
|
+
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", {
|
|
5238
5200
|
key: e.label,
|
|
5239
5201
|
class: "w-info-card-metric"
|
|
5240
5202
|
}, [
|
|
5241
|
-
g("span",
|
|
5242
|
-
g("span",
|
|
5243
|
-
e.suffix ? (M(), h("span",
|
|
5244
|
-
]))), 128))])) : (M(), h("div",
|
|
5203
|
+
g("span", wa, L(e.label), 1),
|
|
5204
|
+
g("span", Ta, L(a(e)), 1),
|
|
5205
|
+
e.suffix ? (M(), h("span", Ea, L(e.suffix), 1)) : m("", !0)
|
|
5206
|
+
]))), 128))])) : (M(), h("div", Da, [(M(!0), h(d, null, F(e.fields, (e) => (M(), h("div", {
|
|
5245
5207
|
key: e.label,
|
|
5246
5208
|
class: "w-info-card-field"
|
|
5247
|
-
}, [g("span",
|
|
5209
|
+
}, [g("span", Oa, L(e.label), 1), g("span", ka, L(a(e)), 1)]))), 128))]))], 2));
|
|
5248
5210
|
}
|
|
5249
|
-
}),
|
|
5211
|
+
}), ja = {
|
|
5250
5212
|
key: 0,
|
|
5251
5213
|
class: "w-kpi-card__loading"
|
|
5252
|
-
},
|
|
5214
|
+
}, Ma = { class: "w-kpi-card__loading-content" }, Na = { class: "w-kpi-card__header" }, Pa = {
|
|
5253
5215
|
key: 0,
|
|
5254
5216
|
class: "w-kpi-card__icon"
|
|
5255
|
-
},
|
|
5217
|
+
}, Fa = {
|
|
5256
5218
|
key: 1,
|
|
5257
5219
|
class: "w-kpi-card__trend"
|
|
5258
|
-
},
|
|
5220
|
+
}, Ia = { class: "w-kpi-card__content" }, La = { class: "w-kpi-card__label" }, Ra = { class: "w-kpi-card__value" }, za = {
|
|
5259
5221
|
key: 0,
|
|
5260
5222
|
class: "w-kpi-card__hint"
|
|
5261
|
-
},
|
|
5223
|
+
}, Ba = {
|
|
5262
5224
|
key: 0,
|
|
5263
5225
|
class: "w-kpi-card__footer"
|
|
5264
|
-
},
|
|
5226
|
+
}, Va = /* @__PURE__ */ x({
|
|
5265
5227
|
__name: "WKpiCard",
|
|
5266
5228
|
props: {
|
|
5267
5229
|
label: {},
|
|
@@ -5273,10 +5235,10 @@ var Qi = {
|
|
|
5273
5235
|
loading: { type: Boolean }
|
|
5274
5236
|
},
|
|
5275
5237
|
setup(e) {
|
|
5276
|
-
return (t, n) => (M(), h("article", { class: k(["w-kpi-card", e.severity ? `w-kpi-card--${e.severity}` : ""]) }, [e.loading ? (M(), h("div",
|
|
5238
|
+
return (t, n) => (M(), h("article", { class: k(["w-kpi-card", e.severity ? `w-kpi-card--${e.severity}` : ""]) }, [e.loading ? (M(), h("div", ja, [b(R(Ne), {
|
|
5277
5239
|
shape: "circle",
|
|
5278
5240
|
size: "2.75rem"
|
|
5279
|
-
}), g("div",
|
|
5241
|
+
}), g("div", Ma, [
|
|
5280
5242
|
b(R(Ne), {
|
|
5281
5243
|
width: "6rem",
|
|
5282
5244
|
height: "0.75rem"
|
|
@@ -5290,22 +5252,22 @@ var Qi = {
|
|
|
5290
5252
|
height: "0.75rem"
|
|
5291
5253
|
})
|
|
5292
5254
|
])])) : (M(), h(d, { key: 1 }, [
|
|
5293
|
-
g("div",
|
|
5255
|
+
g("div", Na, [e.icon || t.$slots.icon ? (M(), h("div", Pa, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
|
|
5294
5256
|
key: 0,
|
|
5295
5257
|
class: k(e.icon)
|
|
5296
|
-
}, null, 2)) : m("", !0)])])) : m("", !0), e.trend || t.$slots.trend ? (M(), h("div",
|
|
5258
|
+
}, null, 2)) : m("", !0)])])) : m("", !0), e.trend || t.$slots.trend ? (M(), h("div", Fa, [I(t.$slots, "trend", {}, () => [e.trend ? (M(), h("span", {
|
|
5297
5259
|
key: 0,
|
|
5298
5260
|
class: k(["w-kpi-card__trend-badge", e.trend.direction ? `w-kpi-card__trend-badge--${e.trend.direction}` : ""])
|
|
5299
5261
|
}, L(e.trend.value), 3)) : m("", !0)])])) : m("", !0)]),
|
|
5300
|
-
g("div",
|
|
5301
|
-
g("p",
|
|
5302
|
-
g("div",
|
|
5303
|
-
e.hint || t.$slots.hint ? (M(), h("p",
|
|
5262
|
+
g("div", Ia, [
|
|
5263
|
+
g("p", La, L(e.label), 1),
|
|
5264
|
+
g("div", Ra, [I(t.$slots, "value", {}, () => [y(L(e.value), 1)])]),
|
|
5265
|
+
e.hint || t.$slots.hint ? (M(), h("p", za, [I(t.$slots, "hint", {}, () => [y(L(e.hint), 1)])])) : m("", !0)
|
|
5304
5266
|
]),
|
|
5305
|
-
t.$slots.footer ? (M(), h("footer",
|
|
5267
|
+
t.$slots.footer ? (M(), h("footer", Ba, [I(t.$slots, "footer")])) : m("", !0)
|
|
5306
5268
|
], 64))], 2));
|
|
5307
5269
|
}
|
|
5308
|
-
}),
|
|
5270
|
+
}), Ha = /* @__PURE__ */ x({
|
|
5309
5271
|
__name: "WKpiGrid",
|
|
5310
5272
|
props: {
|
|
5311
5273
|
items: { default: () => [] },
|
|
@@ -5321,7 +5283,7 @@ var Qi = {
|
|
|
5321
5283
|
key: n,
|
|
5322
5284
|
item: e,
|
|
5323
5285
|
index: n
|
|
5324
|
-
})), 128)) : (M(!0), h(d, { key: 1 }, F(e.items, (e, t) => (M(), p(
|
|
5286
|
+
})), 128)) : (M(!0), h(d, { key: 1 }, F(e.items, (e, t) => (M(), p(Va, {
|
|
5325
5287
|
key: t,
|
|
5326
5288
|
label: e.label,
|
|
5327
5289
|
value: e.value,
|
|
@@ -5340,7 +5302,7 @@ var Qi = {
|
|
|
5340
5302
|
"loading"
|
|
5341
5303
|
]))), 128))], 2));
|
|
5342
5304
|
}
|
|
5343
|
-
}),
|
|
5305
|
+
}), Ua = Symbol("w-section-accordion"), Wa = { class: "w-section-accordion" }, Ga = /* @__PURE__ */ x({
|
|
5344
5306
|
__name: "WSectionAccordion",
|
|
5345
5307
|
props: {
|
|
5346
5308
|
modelValue: { default: void 0 },
|
|
@@ -5365,22 +5327,22 @@ var Qi = {
|
|
|
5365
5327
|
let t = new Set(i.value);
|
|
5366
5328
|
t.has(e) ? t.delete(e) : t.add(e), i.value = t;
|
|
5367
5329
|
}
|
|
5368
|
-
return N(
|
|
5330
|
+
return N(Ua, {
|
|
5369
5331
|
isOpen: s,
|
|
5370
5332
|
toggle: c,
|
|
5371
5333
|
disabled: o
|
|
5372
|
-
}), (e, t) => (M(), h("div",
|
|
5334
|
+
}), (e, t) => (M(), h("div", Wa, [I(e.$slots, "default")]));
|
|
5373
5335
|
}
|
|
5374
|
-
}),
|
|
5336
|
+
}), Ka = { class: "w-section-header__main" }, qa = {
|
|
5375
5337
|
key: 0,
|
|
5376
5338
|
class: "w-section-header__icon"
|
|
5377
|
-
},
|
|
5339
|
+
}, Ja = { class: "w-section-header__content" }, Ya = { class: "w-section-header__title-row" }, Xa = { class: "w-section-header__title" }, Za = {
|
|
5378
5340
|
key: 0,
|
|
5379
5341
|
class: "w-section-header__subtitle"
|
|
5380
|
-
},
|
|
5342
|
+
}, Qa = {
|
|
5381
5343
|
key: 0,
|
|
5382
5344
|
class: "w-section-header__actions"
|
|
5383
|
-
},
|
|
5345
|
+
}, $a = /* @__PURE__ */ x({
|
|
5384
5346
|
__name: "WSectionHeader",
|
|
5385
5347
|
props: {
|
|
5386
5348
|
title: {},
|
|
@@ -5389,29 +5351,29 @@ var Qi = {
|
|
|
5389
5351
|
compact: { type: Boolean }
|
|
5390
5352
|
},
|
|
5391
5353
|
setup(e) {
|
|
5392
|
-
return (t, n) => (M(), h("div", { class: k(["w-section-header", { "w-section-header--compact": e.compact }]) }, [g("div",
|
|
5354
|
+
return (t, n) => (M(), h("div", { class: k(["w-section-header", { "w-section-header--compact": e.compact }]) }, [g("div", Ka, [e.icon || t.$slots.icon ? (M(), h("div", qa, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
|
|
5393
5355
|
key: 0,
|
|
5394
5356
|
class: k(e.icon)
|
|
5395
|
-
}, null, 2)) : m("", !0)])])) : m("", !0), g("div",
|
|
5357
|
+
}, null, 2)) : m("", !0)])])) : m("", !0), g("div", Ja, [g("div", Ya, [g("h3", Xa, L(e.title), 1), I(t.$slots, "meta")]), e.subtitle ? (M(), h("p", Za, L(e.subtitle), 1)) : m("", !0)])]), t.$slots.actions ? (M(), h("div", Qa, [I(t.$slots, "actions")])) : m("", !0)], 2));
|
|
5396
5358
|
}
|
|
5397
|
-
}),
|
|
5359
|
+
}), eo = { class: "w-section-panel__header" }, to = [
|
|
5398
5360
|
"aria-expanded",
|
|
5399
5361
|
"aria-controls",
|
|
5400
5362
|
"disabled"
|
|
5401
|
-
],
|
|
5363
|
+
], no = {
|
|
5402
5364
|
key: 0,
|
|
5403
5365
|
class: "w-section-panel__icon",
|
|
5404
5366
|
"aria-hidden": "true"
|
|
5405
|
-
},
|
|
5367
|
+
}, ro = { class: "w-section-panel__text" }, io = { class: "w-section-panel__title" }, ao = {
|
|
5406
5368
|
key: 0,
|
|
5407
5369
|
class: "w-section-panel__description"
|
|
5408
|
-
},
|
|
5370
|
+
}, oo = {
|
|
5409
5371
|
key: 1,
|
|
5410
5372
|
class: "w-section-panel__count"
|
|
5411
|
-
},
|
|
5373
|
+
}, so = {
|
|
5412
5374
|
key: 0,
|
|
5413
5375
|
class: "w-section-panel__actions"
|
|
5414
|
-
},
|
|
5376
|
+
}, co = ["id"], lo = 0, uo = () => `w-section-panel-${++lo}`, fo = /* @__PURE__ */ x({
|
|
5415
5377
|
__name: "WSectionPanel",
|
|
5416
5378
|
props: {
|
|
5417
5379
|
value: {},
|
|
@@ -5425,11 +5387,11 @@ var Qi = {
|
|
|
5425
5387
|
}
|
|
5426
5388
|
},
|
|
5427
5389
|
setup(e) {
|
|
5428
|
-
let t = e, n = w(
|
|
5390
|
+
let t = e, n = w(Ua, null), r = P(!0), i = f(() => n ? n.isOpen(t.value) : r.value), a = f(() => t.disabled || (n?.disabled.value ?? !1)), o = uo();
|
|
5429
5391
|
function s() {
|
|
5430
5392
|
a.value || (n ? n.toggle(t.value) : r.value = !r.value);
|
|
5431
5393
|
}
|
|
5432
|
-
return (t, n) => (M(), h("section", { class: k(["w-section-panel", { "w-section-panel--open": i.value }]) }, [g("div",
|
|
5394
|
+
return (t, n) => (M(), h("section", { class: k(["w-section-panel", { "w-section-panel--open": i.value }]) }, [g("div", eo, [g("button", {
|
|
5433
5395
|
type: "button",
|
|
5434
5396
|
class: "w-section-panel__trigger",
|
|
5435
5397
|
"aria-expanded": i.value,
|
|
@@ -5437,28 +5399,28 @@ var Qi = {
|
|
|
5437
5399
|
disabled: a.value,
|
|
5438
5400
|
onClick: s
|
|
5439
5401
|
}, [
|
|
5440
|
-
e.icon || t.$slots.icon ? (M(), h("span",
|
|
5441
|
-
g("span",
|
|
5442
|
-
e.count == null ? m("", !0) : (M(), h("span",
|
|
5402
|
+
e.icon || t.$slots.icon ? (M(), h("span", no, [I(t.$slots, "icon", {}, () => [g("i", { class: k(e.icon) }, null, 2)])])) : m("", !0),
|
|
5403
|
+
g("span", ro, [g("span", io, L(e.title), 1), e.description ? (M(), h("span", ao, L(e.description), 1)) : m("", !0)]),
|
|
5404
|
+
e.count == null ? m("", !0) : (M(), h("span", oo, L(e.count), 1)),
|
|
5443
5405
|
g("i", {
|
|
5444
5406
|
class: k(["w-section-panel__chevron", i.value ? "pi pi-chevron-down" : "pi pi-chevron-right"]),
|
|
5445
5407
|
"aria-hidden": "true"
|
|
5446
5408
|
}, null, 2)
|
|
5447
|
-
], 8,
|
|
5409
|
+
], 8, to), t.$slots.actions ? (M(), h("div", so, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)]), H(g("div", {
|
|
5448
5410
|
id: R(o),
|
|
5449
5411
|
class: "w-section-panel__content"
|
|
5450
|
-
}, [I(t.$slots, "default")], 8,
|
|
5412
|
+
}, [I(t.$slots, "default")], 8, co), [[de, i.value]])], 2));
|
|
5451
5413
|
}
|
|
5452
|
-
}),
|
|
5414
|
+
}), po = {
|
|
5453
5415
|
key: 0,
|
|
5454
5416
|
class: "w-form-section__header"
|
|
5455
|
-
},
|
|
5417
|
+
}, mo = { class: "w-form-section__content" }, ho = { class: "w-form-section__title" }, go = {
|
|
5456
5418
|
key: 0,
|
|
5457
5419
|
class: "w-form-section__description"
|
|
5458
|
-
},
|
|
5420
|
+
}, _o = {
|
|
5459
5421
|
key: 0,
|
|
5460
5422
|
class: "w-form-section__actions"
|
|
5461
|
-
},
|
|
5423
|
+
}, vo = { class: "w-form-section__body" }, yo = /* @__PURE__ */ x({
|
|
5462
5424
|
__name: "WFormSection",
|
|
5463
5425
|
props: {
|
|
5464
5426
|
title: {},
|
|
@@ -5466,18 +5428,18 @@ var Qi = {
|
|
|
5466
5428
|
variant: {}
|
|
5467
5429
|
},
|
|
5468
5430
|
setup(e) {
|
|
5469
|
-
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",
|
|
5431
|
+
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", po, [g("div", mo, [g("h3", ho, L(e.title), 1), e.description ? (M(), h("p", go, L(e.description), 1)) : m("", !0)]), t.$slots.actions ? (M(), h("div", _o, [I(t.$slots, "actions")])) : m("", !0)])) : m("", !0), g("div", vo, [I(t.$slots, "default")])], 2));
|
|
5470
5432
|
}
|
|
5471
|
-
}),
|
|
5433
|
+
}), bo = {
|
|
5472
5434
|
key: 0,
|
|
5473
5435
|
class: "w-action-bar__primary"
|
|
5474
|
-
},
|
|
5436
|
+
}, xo = {
|
|
5475
5437
|
key: 1,
|
|
5476
5438
|
class: "w-action-bar__filters"
|
|
5477
|
-
},
|
|
5439
|
+
}, So = {
|
|
5478
5440
|
key: 2,
|
|
5479
5441
|
class: "w-action-bar__secondary"
|
|
5480
|
-
},
|
|
5442
|
+
}, Co = /* @__PURE__ */ x({
|
|
5481
5443
|
__name: "WActionBar",
|
|
5482
5444
|
props: {
|
|
5483
5445
|
align: { default: "between" },
|
|
@@ -5488,15 +5450,15 @@ var Qi = {
|
|
|
5488
5450
|
},
|
|
5489
5451
|
setup(e) {
|
|
5490
5452
|
return (t, n) => (M(), h("div", { class: k(["w-action-bar", [`w-action-bar--${e.align}`, { "w-action-bar--stack": e.stackOnMobile }]]) }, [
|
|
5491
|
-
t.$slots.primary || t.$slots.default ? (M(), h("div",
|
|
5492
|
-
t.$slots.filters ? (M(), h("div",
|
|
5493
|
-
t.$slots.secondary ? (M(), h("div",
|
|
5453
|
+
t.$slots.primary || t.$slots.default ? (M(), h("div", bo, [I(t.$slots, "primary", {}, () => [I(t.$slots, "default")])])) : m("", !0),
|
|
5454
|
+
t.$slots.filters ? (M(), h("div", xo, [I(t.$slots, "filters")])) : m("", !0),
|
|
5455
|
+
t.$slots.secondary ? (M(), h("div", So, [I(t.$slots, "secondary")])) : m("", !0)
|
|
5494
5456
|
], 2));
|
|
5495
5457
|
}
|
|
5496
|
-
}),
|
|
5458
|
+
}), wo = { class: "w-progress-flow__marker" }, To = { class: "w-progress-flow__content" }, Eo = { class: "w-progress-flow__label" }, Do = {
|
|
5497
5459
|
key: 0,
|
|
5498
5460
|
class: "w-progress-flow__description"
|
|
5499
|
-
},
|
|
5461
|
+
}, Oo = /* @__PURE__ */ x({
|
|
5500
5462
|
__name: "WProgressFlow",
|
|
5501
5463
|
props: {
|
|
5502
5464
|
steps: {},
|
|
@@ -5515,9 +5477,9 @@ var Qi = {
|
|
|
5515
5477
|
step: e,
|
|
5516
5478
|
index: n,
|
|
5517
5479
|
state: r(n)
|
|
5518
|
-
}, () => [g("div",
|
|
5480
|
+
}, () => [g("div", wo, [g("span", null, L(n + 1), 1)]), g("div", To, [g("p", Eo, L(e.label), 1), e.description ? (M(), h("p", Do, L(e.description), 1)) : m("", !0)])])], 2))), 128))], 2));
|
|
5519
5481
|
}
|
|
5520
|
-
}),
|
|
5482
|
+
}), ko = Symbol("w-step-flow"), Ao = /* @__PURE__ */ x({
|
|
5521
5483
|
__name: "WStepFlow",
|
|
5522
5484
|
props: {
|
|
5523
5485
|
modelValue: { default: 0 },
|
|
@@ -5533,7 +5495,7 @@ var Qi = {
|
|
|
5533
5495
|
function s(e) {
|
|
5534
5496
|
n.disabled || r("update:modelValue", n.modelValue === e ? 0 : e);
|
|
5535
5497
|
}
|
|
5536
|
-
N(
|
|
5498
|
+
N(ko, {
|
|
5537
5499
|
active: i,
|
|
5538
5500
|
toggle: s,
|
|
5539
5501
|
disabled: a,
|
|
@@ -5561,48 +5523,48 @@ var Qi = {
|
|
|
5561
5523
|
onKeydown: l
|
|
5562
5524
|
}, [I(e.$slots, "default")], 34));
|
|
5563
5525
|
}
|
|
5564
|
-
}),
|
|
5526
|
+
}), jo = { class: "w-step-section__rail" }, Mo = {
|
|
5565
5527
|
key: 0,
|
|
5566
5528
|
class: "w-step-section__line"
|
|
5567
|
-
},
|
|
5529
|
+
}, No = { class: "w-step-section__body" }, Po = { class: "w-step-section__card" }, Fo = { class: "w-step-section__header" }, Io = [
|
|
5568
5530
|
"aria-expanded",
|
|
5569
5531
|
"aria-current",
|
|
5570
5532
|
"disabled"
|
|
5571
|
-
],
|
|
5533
|
+
], Lo = { class: "w-step-section__title" }, Ro = {
|
|
5572
5534
|
key: 0,
|
|
5573
5535
|
class: "w-step-section__count"
|
|
5574
|
-
},
|
|
5536
|
+
}, zo = {
|
|
5575
5537
|
key: 1,
|
|
5576
5538
|
class: "w-step-section__summary"
|
|
5577
|
-
},
|
|
5539
|
+
}, Bo = {
|
|
5578
5540
|
key: 0,
|
|
5579
5541
|
class: "w-step-section__actions"
|
|
5580
|
-
},
|
|
5542
|
+
}, Vo = { class: "w-step-section__content" }, Ho = {
|
|
5581
5543
|
key: 0,
|
|
5582
5544
|
class: "w-step-section__footer"
|
|
5583
|
-
},
|
|
5545
|
+
}, Uo = { class: "w-step-section__head" }, Wo = [
|
|
5584
5546
|
"aria-expanded",
|
|
5585
5547
|
"aria-current",
|
|
5586
5548
|
"disabled"
|
|
5587
|
-
],
|
|
5549
|
+
], Go = {
|
|
5588
5550
|
key: 0,
|
|
5589
5551
|
class: "pi pi-check"
|
|
5590
|
-
},
|
|
5552
|
+
}, Ko = { class: "w-step-section__title" }, qo = {
|
|
5591
5553
|
key: 0,
|
|
5592
5554
|
class: "w-step-section__count"
|
|
5593
|
-
},
|
|
5555
|
+
}, Jo = {
|
|
5594
5556
|
key: 1,
|
|
5595
5557
|
class: "w-step-section__summary"
|
|
5596
|
-
},
|
|
5558
|
+
}, Yo = {
|
|
5597
5559
|
key: 1,
|
|
5598
5560
|
class: "w-step-section__actions"
|
|
5599
|
-
},
|
|
5561
|
+
}, Xo = {
|
|
5600
5562
|
key: 0,
|
|
5601
5563
|
class: "w-step-section__panel"
|
|
5602
|
-
},
|
|
5564
|
+
}, Zo = { class: "w-step-section__content" }, Qo = {
|
|
5603
5565
|
key: 0,
|
|
5604
5566
|
class: "w-step-section__footer"
|
|
5605
|
-
},
|
|
5567
|
+
}, $o = /* @__PURE__ */ x({
|
|
5606
5568
|
__name: "WStepSection",
|
|
5607
5569
|
props: {
|
|
5608
5570
|
step: {},
|
|
@@ -5615,7 +5577,7 @@ var Qi = {
|
|
|
5615
5577
|
}
|
|
5616
5578
|
},
|
|
5617
5579
|
setup(e) {
|
|
5618
|
-
let t = e, n = w(
|
|
5580
|
+
let t = e, n = w(ko, 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);
|
|
5619
5581
|
function l() {
|
|
5620
5582
|
a.value || (n ? n.toggle(t.step) : r.value = !r.value);
|
|
5621
5583
|
}
|
|
@@ -5625,7 +5587,7 @@ var Qi = {
|
|
|
5625
5587
|
"w-step-section--open": i.value,
|
|
5626
5588
|
"w-step-section--done": c.value
|
|
5627
5589
|
}])
|
|
5628
|
-
}, [g("div",
|
|
5590
|
+
}, [g("div", Uo, [
|
|
5629
5591
|
s.value ? (M(), h("span", {
|
|
5630
5592
|
key: 0,
|
|
5631
5593
|
class: k(["w-step-section__line", { "w-step-section__line--done": c.value || i.value }])
|
|
@@ -5644,19 +5606,19 @@ var Qi = {
|
|
|
5644
5606
|
"w-step-section__badge--done": c.value
|
|
5645
5607
|
}]),
|
|
5646
5608
|
"aria-hidden": "true"
|
|
5647
|
-
}, [c.value ? (M(), h("i",
|
|
5648
|
-
g("h2",
|
|
5649
|
-
e.count == null ? m("", !0) : (M(), h("span",
|
|
5650
|
-
e.summary ? (M(), h("span",
|
|
5651
|
-
], 8,
|
|
5652
|
-
t.$slots.actions ? (M(), h("div",
|
|
5653
|
-
]), i.value ? (M(), h("div",
|
|
5609
|
+
}, [c.value ? (M(), h("i", Go)) : (M(), h(d, { key: 1 }, [y(L(e.step), 1)], 64))], 2),
|
|
5610
|
+
g("h2", Ko, L(e.title), 1),
|
|
5611
|
+
e.count == null ? m("", !0) : (M(), h("span", qo, L(e.count), 1)),
|
|
5612
|
+
e.summary ? (M(), h("span", Jo, L(e.summary), 1)) : m("", !0)
|
|
5613
|
+
], 8, Wo),
|
|
5614
|
+
t.$slots.actions ? (M(), h("div", Yo, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)
|
|
5615
|
+
]), i.value ? (M(), h("div", Xo, [g("div", Zo, [I(t.$slots, "default")]), t.$slots.footer ? (M(), h("div", Qo, [I(t.$slots, "footer")])) : m("", !0)])) : m("", !0)], 2)) : (M(), h("div", {
|
|
5654
5616
|
key: 0,
|
|
5655
5617
|
class: k(["w-step-section", { "w-step-section--open": i.value }])
|
|
5656
|
-
}, [g("div",
|
|
5618
|
+
}, [g("div", jo, [g("span", {
|
|
5657
5619
|
class: k(["w-step-section__badge", { "w-step-section__badge--on": i.value }]),
|
|
5658
5620
|
"aria-hidden": "true"
|
|
5659
|
-
}, L(e.step), 3), s.value ? (M(), h("span",
|
|
5621
|
+
}, L(e.step), 3), s.value ? (M(), h("span", Mo)) : m("", !0)]), g("div", No, [g("div", Po, [g("div", Fo, [g("button", {
|
|
5660
5622
|
type: "button",
|
|
5661
5623
|
class: "w-step-section__trigger",
|
|
5662
5624
|
"aria-expanded": i.value,
|
|
@@ -5665,24 +5627,24 @@ var Qi = {
|
|
|
5665
5627
|
onClick: l
|
|
5666
5628
|
}, [
|
|
5667
5629
|
g("i", { class: k(["w-step-section__chevron", i.value ? "pi pi-chevron-down" : "pi pi-chevron-right"]) }, null, 2),
|
|
5668
|
-
g("h2",
|
|
5669
|
-
e.count == null ? m("", !0) : (M(), h("span",
|
|
5670
|
-
e.summary ? (M(), h("span",
|
|
5671
|
-
], 8,
|
|
5630
|
+
g("h2", Lo, L(e.title), 1),
|
|
5631
|
+
e.count == null ? m("", !0) : (M(), h("span", Ro, L(e.count), 1)),
|
|
5632
|
+
e.summary ? (M(), h("span", zo, L(e.summary), 1)) : m("", !0)
|
|
5633
|
+
], 8, Io), t.$slots.actions ? (M(), h("div", Bo, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)]), i.value ? (M(), h(d, { key: 0 }, [g("div", Vo, [I(t.$slots, "default")]), t.$slots.footer ? (M(), h("div", Ho, [I(t.$slots, "footer")])) : m("", !0)], 64)) : m("", !0)])])], 2));
|
|
5672
5634
|
}
|
|
5673
|
-
}),
|
|
5635
|
+
}), es = { class: "w-check-list" }, ts = {
|
|
5674
5636
|
key: 0,
|
|
5675
5637
|
class: "w-check-list__header"
|
|
5676
|
-
},
|
|
5638
|
+
}, ns = { class: "w-check-list__title" }, rs = {
|
|
5677
5639
|
key: 0,
|
|
5678
5640
|
class: "w-check-list__count"
|
|
5679
|
-
},
|
|
5641
|
+
}, is = {
|
|
5680
5642
|
key: 1,
|
|
5681
5643
|
class: "w-check-list__items"
|
|
5682
|
-
},
|
|
5644
|
+
}, as = { class: "w-check-list__label" }, os = {
|
|
5683
5645
|
key: 2,
|
|
5684
5646
|
class: "w-check-list__empty"
|
|
5685
|
-
},
|
|
5647
|
+
}, ss = /* @__PURE__ */ x({
|
|
5686
5648
|
__name: "WCheckList",
|
|
5687
5649
|
props: {
|
|
5688
5650
|
title: {},
|
|
@@ -5702,62 +5664,62 @@ var Qi = {
|
|
|
5702
5664
|
function a(e) {
|
|
5703
5665
|
return i[e] ?? i.warn;
|
|
5704
5666
|
}
|
|
5705
|
-
return (t, n) => (M(), h("div",
|
|
5667
|
+
return (t, n) => (M(), h("div", es, [e.title || e.showCount ? (M(), h("div", ts, [g("span", ns, L(e.title), 1), e.showCount ? (M(), h("span", rs, L(r.value), 1)) : m("", !0)])) : m("", !0), e.items.length ? (M(), h("ul", is, [(M(!0), h(d, null, F(e.items, (e, t) => (M(), h("li", {
|
|
5706
5668
|
key: `${e.label}-${t}`,
|
|
5707
5669
|
class: "w-check-list__item"
|
|
5708
|
-
}, [g("i", { class: k([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span",
|
|
5670
|
+
}, [g("i", { class: k([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span", as, L(e.label), 1)]))), 128))])) : (M(), h("div", os, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])]))]));
|
|
5709
5671
|
}
|
|
5710
|
-
}),
|
|
5711
|
-
function
|
|
5672
|
+
}), cs = .85;
|
|
5673
|
+
function ls(e, t, n) {
|
|
5712
5674
|
return !e || e.largura <= 0 || e.altura <= 0 ? !1 : e.largura <= t && e.altura <= n;
|
|
5713
5675
|
}
|
|
5714
|
-
function
|
|
5676
|
+
function us(e, t, n, r = cs) {
|
|
5715
5677
|
if (!t || t.largura <= 0 || t.altura <= 0 || e.largura <= 0 || e.altura <= 0) return "completo";
|
|
5716
5678
|
let i = e.largura * r, a = e.altura * r;
|
|
5717
|
-
return
|
|
5679
|
+
return ls(t, i, a) ? "completo" : ls(n, i, a) ? "curto" : "oculto";
|
|
5718
5680
|
}
|
|
5719
5681
|
//#endregion
|
|
5720
5682
|
//#region src/components/ui/WMapSelect.vue?vue&type=script&setup=true&lang.ts
|
|
5721
|
-
var
|
|
5683
|
+
var ds = { class: "w-map-select__body" }, fs = {
|
|
5722
5684
|
key: 0,
|
|
5723
5685
|
class: "w-map-select__fallback"
|
|
5724
|
-
},
|
|
5686
|
+
}, ps = {
|
|
5725
5687
|
key: 1,
|
|
5726
5688
|
class: "w-map-select__badge"
|
|
5727
|
-
},
|
|
5689
|
+
}, ms = { class: "w-map-select__detail-nome" }, hs = {
|
|
5728
5690
|
key: 0,
|
|
5729
5691
|
class: "w-map-select__detail-sub"
|
|
5730
|
-
},
|
|
5692
|
+
}, gs = {
|
|
5731
5693
|
key: 0,
|
|
5732
5694
|
class: "w-map-select__panel"
|
|
5733
|
-
},
|
|
5695
|
+
}, _s = [
|
|
5734
5696
|
"aria-expanded",
|
|
5735
5697
|
"aria-label",
|
|
5736
5698
|
"title"
|
|
5737
|
-
],
|
|
5699
|
+
], vs = {
|
|
5738
5700
|
key: 0,
|
|
5739
5701
|
class: "w-map-select__collapse-count"
|
|
5740
|
-
},
|
|
5702
|
+
}, ys = { class: "w-map-select__panel-head" }, bs = { class: "w-map-select__meta" }, xs = { class: "w-map-select__count" }, Ss = ["disabled"], Cs = { class: "w-map-select__list" }, ws = [
|
|
5741
5703
|
"aria-pressed",
|
|
5742
5704
|
"disabled",
|
|
5743
5705
|
"onClick"
|
|
5744
|
-
],
|
|
5706
|
+
], Ts = { class: "w-map-select__box" }, Es = {
|
|
5745
5707
|
key: 0,
|
|
5746
5708
|
class: "pi pi-check"
|
|
5747
|
-
},
|
|
5709
|
+
}, Ds = { class: "w-map-select__item-text" }, Os = { class: "w-map-select__item-name" }, ks = {
|
|
5748
5710
|
key: 0,
|
|
5749
5711
|
class: "w-map-select__item-sub"
|
|
5750
|
-
},
|
|
5712
|
+
}, As = {
|
|
5751
5713
|
key: 0,
|
|
5752
5714
|
class: "pi pi-exclamation-circle w-map-select__item-nogeo",
|
|
5753
5715
|
title: "Talhão sem contorno cadastrado"
|
|
5754
|
-
},
|
|
5716
|
+
}, js = {
|
|
5755
5717
|
key: 1,
|
|
5756
5718
|
class: "w-map-select__item-area"
|
|
5757
|
-
},
|
|
5719
|
+
}, Ms = {
|
|
5758
5720
|
key: 0,
|
|
5759
5721
|
class: "w-map-select__empty"
|
|
5760
|
-
},
|
|
5722
|
+
}, Ns = { class: "w-map-select__area" }, Ps = { class: "w-map-select__area-unit" }, Fs = "O mapa não pôde ser carregado. Selecione os talhões pela lista ao lado.", Is = "O mapa não pôde ser carregado.", Ls = /* @__PURE__ */ x({
|
|
5761
5723
|
__name: "WMapSelect",
|
|
5762
5724
|
props: {
|
|
5763
5725
|
modelValue: { default: () => [] },
|
|
@@ -5785,7 +5747,7 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
5785
5747
|
},
|
|
5786
5748
|
badgeLabel: { default: "Satélite" },
|
|
5787
5749
|
emptyMessage: { default: "Nenhum talhão encontrado" },
|
|
5788
|
-
mapErrorMessage: { default:
|
|
5750
|
+
mapErrorMessage: { default: Fs },
|
|
5789
5751
|
disabled: {
|
|
5790
5752
|
type: Boolean,
|
|
5791
5753
|
default: !1
|
|
@@ -5823,7 +5785,7 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
5823
5785
|
type: Function,
|
|
5824
5786
|
default: void 0
|
|
5825
5787
|
},
|
|
5826
|
-
labelFitScale: { default:
|
|
5788
|
+
labelFitScale: { default: cs },
|
|
5827
5789
|
labelFullFromZoom: { default: 13 },
|
|
5828
5790
|
featureDetail: { default: "none" },
|
|
5829
5791
|
detailPlacement: { default: "cursor" }
|
|
@@ -5836,7 +5798,7 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
5836
5798
|
"update:collapsed"
|
|
5837
5799
|
],
|
|
5838
5800
|
setup(e, { expose: t, emit: r }) {
|
|
5839
|
-
let i = e, a = r, o = ue(), { formatNumber: s } = n(), c = f(() => i.layout === "sobreposto"), l = f(() => !i.readonly && (!!o.footer || i.areaLabel !== "")), u = f(() => i.readonly && i.mapErrorMessage ===
|
|
5801
|
+
let i = e, a = r, o = ue(), { formatNumber: s } = n(), c = f(() => i.layout === "sobreposto"), l = f(() => !i.readonly && (!!o.footer || i.areaLabel !== "")), u = f(() => i.readonly && i.mapErrorMessage === Fs ? Is : i.mapErrorMessage), p = P(!1), _ = f(() => i.collapsed != null), v = f(() => _.value ? !!i.collapsed : p.value);
|
|
5840
5802
|
function x(e) {
|
|
5841
5803
|
v.value !== e && (_.value || (p.value = e), a("update:collapsed", e));
|
|
5842
5804
|
}
|
|
@@ -6018,7 +5980,7 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
6018
5980
|
if (!r || !a) return;
|
|
6019
5981
|
let o = Ae(a);
|
|
6020
5982
|
if (!o) return;
|
|
6021
|
-
let s = je(a), c = t ? "completo" :
|
|
5983
|
+
let s = je(a), c = t ? "completo" : us(Z(n), ze(o), s && s !== o ? ze(s) : null, i.labelFitScale);
|
|
6022
5984
|
c !== "oculto" && r.setContent(c === "curto" ? s : o), r.getElement()?.classList.toggle("w-map-select__tip--fora", c === "oculto");
|
|
6023
5985
|
});
|
|
6024
5986
|
}
|
|
@@ -6148,7 +6110,7 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
6148
6110
|
"w-map-select--overlay": c.value,
|
|
6149
6111
|
"w-map-select--collapsed": c.value && v.value && !e.readonly
|
|
6150
6112
|
}])
|
|
6151
|
-
}, [g("div",
|
|
6113
|
+
}, [g("div", ds, [g("div", {
|
|
6152
6114
|
class: "w-map-select__map",
|
|
6153
6115
|
style: j({ "--w-map-h": e.height })
|
|
6154
6116
|
}, [
|
|
@@ -6157,7 +6119,7 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
6157
6119
|
ref: z,
|
|
6158
6120
|
class: "w-map-select__canvas"
|
|
6159
6121
|
}, null, 512),
|
|
6160
|
-
U.value ? (M(), h("div",
|
|
6122
|
+
U.value ? (M(), h("div", fs, [n[1] ||= g("i", { class: "pi pi-map" }, null, -1), g("span", null, L(u.value), 1)])) : e.badgeLabel ? (M(), h("span", ps, [n[2] ||= g("i", { class: "pi pi-globe" }, null, -1), y(L(e.badgeLabel), 1)])) : m("", !0),
|
|
6161
6123
|
X.value && e.featureDetail !== "none" ? (M(), h("div", {
|
|
6162
6124
|
key: 2,
|
|
6163
6125
|
class: k(["w-map-select__detail", {
|
|
@@ -6171,8 +6133,8 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
6171
6133
|
feature: X.value,
|
|
6172
6134
|
selected: E(X.value.id),
|
|
6173
6135
|
close: Te
|
|
6174
|
-
}, () => [g("span",
|
|
6175
|
-
], 4), e.readonly ? m("", !0) : (M(), h("div",
|
|
6136
|
+
}, () => [g("span", ms, L(X.value.nome), 1), X.value.subtitulo ? (M(), h("span", hs, L(X.value.subtitulo), 1)) : m("", !0)])], 6)) : m("", !0)
|
|
6137
|
+
], 4), e.readonly ? m("", !0) : (M(), h("div", gs, [
|
|
6176
6138
|
c.value ? (M(), h("button", {
|
|
6177
6139
|
key: 0,
|
|
6178
6140
|
type: "button",
|
|
@@ -6181,8 +6143,8 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
6181
6143
|
"aria-label": C.value,
|
|
6182
6144
|
title: C.value,
|
|
6183
6145
|
onClick: S
|
|
6184
|
-
}, [g("i", { class: k(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (M(), h("span",
|
|
6185
|
-
g("div",
|
|
6146
|
+
}, [g("i", { class: k(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (M(), h("span", vs, L(e.modelValue.length), 1)) : m("", !0)], 8, _s)) : m("", !0),
|
|
6147
|
+
g("div", ys, [b(R(he), null, {
|
|
6186
6148
|
default: V(() => [b(R(ge), { class: "pi pi-search" }), b(R(q), {
|
|
6187
6149
|
modelValue: ae.value,
|
|
6188
6150
|
"onUpdate:modelValue": n[0] ||= (e) => ae.value = e,
|
|
@@ -6196,13 +6158,13 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
6196
6158
|
"aria-label"
|
|
6197
6159
|
])]),
|
|
6198
6160
|
_: 1
|
|
6199
|
-
}), g("div",
|
|
6161
|
+
}), g("div", bs, [g("span", xs, L(re.value), 1), g("button", {
|
|
6200
6162
|
type: "button",
|
|
6201
6163
|
class: "w-map-select__clear",
|
|
6202
6164
|
disabled: e.disabled || !e.modelValue.length,
|
|
6203
6165
|
onClick: A
|
|
6204
|
-
}, L(e.clearLabel), 9,
|
|
6205
|
-
g("ul",
|
|
6166
|
+
}, L(e.clearLabel), 9, Ss)])]),
|
|
6167
|
+
g("ul", Cs, [(M(!0), h(d, null, F(se.value, (n) => (M(), h("li", { key: n.id }, [I(t.$slots, "item", {
|
|
6206
6168
|
feature: n,
|
|
6207
6169
|
selected: E(n.id)
|
|
6208
6170
|
}, () => [g("button", {
|
|
@@ -6212,11 +6174,11 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
6212
6174
|
disabled: e.disabled,
|
|
6213
6175
|
onClick: (e) => D(n.id)
|
|
6214
6176
|
}, [
|
|
6215
|
-
g("span",
|
|
6216
|
-
g("span",
|
|
6217
|
-
n.geometria ? m("", !0) : (M(), h("i",
|
|
6218
|
-
n.area == null ? m("", !0) : (M(), h("span",
|
|
6219
|
-
], 10,
|
|
6177
|
+
g("span", Ts, [E(n.id) ? (M(), h("i", Es)) : m("", !0)]),
|
|
6178
|
+
g("span", Ds, [g("span", Os, L(n.nome), 1), n.subtitulo ? (M(), h("span", ks, L(n.subtitulo), 1)) : m("", !0)]),
|
|
6179
|
+
n.geometria ? m("", !0) : (M(), h("i", As)),
|
|
6180
|
+
n.area == null ? m("", !0) : (M(), h("span", js, L(ce(n)), 1))
|
|
6181
|
+
], 10, ws)])]))), 128)), se.value.length ? m("", !0) : (M(), h("li", Ms, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])]))])
|
|
6220
6182
|
]))]), l.value ? (M(), h("div", {
|
|
6221
6183
|
key: 0,
|
|
6222
6184
|
ref_key: "footer",
|
|
@@ -6225,13 +6187,13 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
6225
6187
|
}, [I(t.$slots, "footer", {
|
|
6226
6188
|
area: N.value,
|
|
6227
6189
|
features: ne.value
|
|
6228
|
-
}, () => [g("span",
|
|
6190
|
+
}, () => [g("span", Ns, [
|
|
6229
6191
|
y(L(e.areaLabel) + " ", 1),
|
|
6230
6192
|
g("strong", null, L(le.value), 1),
|
|
6231
|
-
g("span",
|
|
6193
|
+
g("span", Ps, L(e.areaSuffix), 1)
|
|
6232
6194
|
])])], 512)) : m("", !0)], 2));
|
|
6233
6195
|
}
|
|
6234
|
-
}),
|
|
6196
|
+
}), Rs = {
|
|
6235
6197
|
nota: {
|
|
6236
6198
|
tone: "nota",
|
|
6237
6199
|
label: "Nota",
|
|
@@ -6277,7 +6239,7 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
6277
6239
|
label: "Em aberto",
|
|
6278
6240
|
icon: "pi pi-question-circle"
|
|
6279
6241
|
}
|
|
6280
|
-
},
|
|
6242
|
+
}, zs = {
|
|
6281
6243
|
note: "nota",
|
|
6282
6244
|
info: "nota",
|
|
6283
6245
|
observacao: "nota",
|
|
@@ -6304,19 +6266,19 @@ var ls = { class: "w-map-select__body" }, us = {
|
|
|
6304
6266
|
help: "pergunta",
|
|
6305
6267
|
duvida: "pergunta"
|
|
6306
6268
|
};
|
|
6307
|
-
function
|
|
6269
|
+
function Bs(e) {
|
|
6308
6270
|
return e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
6309
6271
|
}
|
|
6310
|
-
function
|
|
6311
|
-
let t =
|
|
6312
|
-
return
|
|
6272
|
+
function Vs(e) {
|
|
6273
|
+
let t = Bs(e);
|
|
6274
|
+
return Rs[t] ?? Rs[zs[t]] ?? null;
|
|
6313
6275
|
}
|
|
6314
|
-
var
|
|
6315
|
-
function
|
|
6276
|
+
var Hs = new Pe().utils.escapeHtml;
|
|
6277
|
+
function Us(e, t) {
|
|
6316
6278
|
let n = t?.trim() || e.label;
|
|
6317
|
-
return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${
|
|
6279
|
+
return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${Hs(n)}</p><div class="md-alert__body">`;
|
|
6318
6280
|
}
|
|
6319
|
-
var
|
|
6281
|
+
var Ws = "</div></div>", Gs = {
|
|
6320
6282
|
bash: () => import("highlight.js/lib/languages/bash"),
|
|
6321
6283
|
python: () => import("highlight.js/lib/languages/python"),
|
|
6322
6284
|
javascript: () => import("highlight.js/lib/languages/javascript"),
|
|
@@ -6330,7 +6292,7 @@ var Hs = "</div></div>", Us = {
|
|
|
6330
6292
|
ini: () => import("highlight.js/lib/languages/ini"),
|
|
6331
6293
|
markdown: () => import("highlight.js/lib/languages/markdown"),
|
|
6332
6294
|
dockerfile: () => import("highlight.js/lib/languages/dockerfile")
|
|
6333
|
-
},
|
|
6295
|
+
}, Ks = {
|
|
6334
6296
|
sh: "bash",
|
|
6335
6297
|
shell: "bash",
|
|
6336
6298
|
zsh: "bash",
|
|
@@ -6358,28 +6320,28 @@ var Hs = "</div></div>", Us = {
|
|
|
6358
6320
|
postgres: "sql",
|
|
6359
6321
|
postgresql: "sql",
|
|
6360
6322
|
docker: "dockerfile"
|
|
6361
|
-
},
|
|
6362
|
-
function
|
|
6363
|
-
return
|
|
6323
|
+
}, qs = null, Js = null;
|
|
6324
|
+
function Ys() {
|
|
6325
|
+
return qs !== null;
|
|
6364
6326
|
}
|
|
6365
|
-
async function
|
|
6366
|
-
if (
|
|
6367
|
-
|
|
6327
|
+
async function Xs() {
|
|
6328
|
+
if (qs || Js) return Js ?? void 0;
|
|
6329
|
+
Js = (async () => {
|
|
6368
6330
|
let e = (await import("highlight.js/lib/core")).default;
|
|
6369
|
-
await Promise.all(Object.entries(
|
|
6331
|
+
await Promise.all(Object.entries(Gs).map(async ([t, n]) => {
|
|
6370
6332
|
let r = await n();
|
|
6371
6333
|
e.registerLanguage(t, r.default);
|
|
6372
|
-
})),
|
|
6373
|
-
})(), await
|
|
6334
|
+
})), qs = (t, n) => e.highlight(t, { language: n }).value;
|
|
6335
|
+
})(), await Js;
|
|
6374
6336
|
}
|
|
6375
|
-
function
|
|
6376
|
-
let t =
|
|
6377
|
-
return
|
|
6337
|
+
function Zs(e) {
|
|
6338
|
+
let t = Bs(e);
|
|
6339
|
+
return Ks[t] ?? t;
|
|
6378
6340
|
}
|
|
6379
|
-
function
|
|
6380
|
-
return
|
|
6341
|
+
function Qs(e) {
|
|
6342
|
+
return Bs(e).replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-") || "secao";
|
|
6381
6343
|
}
|
|
6382
|
-
var
|
|
6344
|
+
var $s = /* @__PURE__ */ new Set([
|
|
6383
6345
|
"detalhes",
|
|
6384
6346
|
"details",
|
|
6385
6347
|
"passos",
|
|
@@ -6390,8 +6352,8 @@ var Zs = /* @__PURE__ */ new Set([
|
|
|
6390
6352
|
"tabs",
|
|
6391
6353
|
"aba",
|
|
6392
6354
|
"tab"
|
|
6393
|
-
]),
|
|
6394
|
-
function
|
|
6355
|
+
]), ec = /^\s*([^\s]+)\s*(.*)$/;
|
|
6356
|
+
function tc() {
|
|
6395
6357
|
let e = new Pe({
|
|
6396
6358
|
html: !1,
|
|
6397
6359
|
linkify: !0,
|
|
@@ -6403,16 +6365,16 @@ function $s() {
|
|
|
6403
6365
|
3,
|
|
6404
6366
|
4
|
|
6405
6367
|
],
|
|
6406
|
-
slugify:
|
|
6368
|
+
slugify: Qs,
|
|
6407
6369
|
permalink: Ie.permalink.linkInsideHeader({
|
|
6408
6370
|
symbol: "",
|
|
6409
6371
|
class: "md-anchor",
|
|
6410
6372
|
placement: "after",
|
|
6411
6373
|
ariaHidden: !0
|
|
6412
6374
|
})
|
|
6413
|
-
}),
|
|
6375
|
+
}), nc(e), ic(e), ac(e), oc(e), sc(e), cc(e), lc(e), e;
|
|
6414
6376
|
}
|
|
6415
|
-
function
|
|
6377
|
+
function nc(e) {
|
|
6416
6378
|
e.core.ruler.after("block", "lz_alerta", (e) => {
|
|
6417
6379
|
let t = e.tokens;
|
|
6418
6380
|
for (let e = 0; e < t.length; e += 1) {
|
|
@@ -6422,9 +6384,9 @@ function ec(e) {
|
|
|
6422
6384
|
if (r?.type !== "paragraph_open" || i?.type !== "inline") continue;
|
|
6423
6385
|
let a = /^\[!([^\]\n]+)\][ \t]*([^\n]*)\n?/.exec(i.content);
|
|
6424
6386
|
if (!a) continue;
|
|
6425
|
-
let o =
|
|
6387
|
+
let o = Vs(a[1]);
|
|
6426
6388
|
if (!o) continue;
|
|
6427
|
-
let s =
|
|
6389
|
+
let s = rc(t, e);
|
|
6428
6390
|
s && (i.content = i.content.slice(a[0].length), n.type = "lz_alerta_open", n.tag = "div", n.meta = {
|
|
6429
6391
|
spec: o,
|
|
6430
6392
|
titulo: a[2]
|
|
@@ -6433,10 +6395,10 @@ function ec(e) {
|
|
|
6433
6395
|
return !0;
|
|
6434
6396
|
}), e.renderer.rules.lz_alerta_open = (e, t) => {
|
|
6435
6397
|
let n = e[t].meta;
|
|
6436
|
-
return
|
|
6437
|
-
}, e.renderer.rules.lz_alerta_close = () =>
|
|
6398
|
+
return Us(n.spec, n.titulo);
|
|
6399
|
+
}, e.renderer.rules.lz_alerta_close = () => Ws;
|
|
6438
6400
|
}
|
|
6439
|
-
function
|
|
6401
|
+
function rc(e, t) {
|
|
6440
6402
|
let n = 0;
|
|
6441
6403
|
for (let r = t; r < e.length; r += 1) {
|
|
6442
6404
|
let t = e[r];
|
|
@@ -6445,37 +6407,37 @@ function tc(e, t) {
|
|
|
6445
6407
|
}
|
|
6446
6408
|
return null;
|
|
6447
6409
|
}
|
|
6448
|
-
function
|
|
6410
|
+
function ic(e) {
|
|
6449
6411
|
let t = [];
|
|
6450
6412
|
e.use(Le, "lz", {
|
|
6451
6413
|
validate: (e) => {
|
|
6452
|
-
let t =
|
|
6414
|
+
let t = ec.exec(e);
|
|
6453
6415
|
if (!t) return !1;
|
|
6454
|
-
let n =
|
|
6455
|
-
return
|
|
6416
|
+
let n = Bs(t[1]);
|
|
6417
|
+
return $s.has(n) || Vs(n) !== null;
|
|
6456
6418
|
},
|
|
6457
6419
|
render: (e, n) => {
|
|
6458
6420
|
let r = e[n];
|
|
6459
6421
|
if (r.nesting !== 1) {
|
|
6460
6422
|
let e = t.pop();
|
|
6461
|
-
return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${
|
|
6423
|
+
return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${Ws}\n` : "</div>\n";
|
|
6462
6424
|
}
|
|
6463
|
-
let i =
|
|
6425
|
+
let i = ec.exec(r.info) ?? [
|
|
6464
6426
|
"",
|
|
6465
6427
|
"",
|
|
6466
6428
|
""
|
|
6467
|
-
], a =
|
|
6468
|
-
if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${
|
|
6429
|
+
], a = Bs(i[1]), o = i[2]?.trim();
|
|
6430
|
+
if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${Hs(o || "Detalhes")}</summary><div class="md-details__body">`;
|
|
6469
6431
|
if (a === "passos" || a === "steps") return t.push("bloco"), "<div class=\"md-steps\">";
|
|
6470
6432
|
if (a === "cards" || a === "grade") return t.push("bloco"), "<div class=\"md-cards\">";
|
|
6471
6433
|
if (a === "abas" || a === "tabs") return t.push("bloco"), "<div class=\"md-tabs\" data-md-tabs>";
|
|
6472
|
-
if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${
|
|
6473
|
-
let s =
|
|
6474
|
-
return s ? (t.push("alerta"),
|
|
6434
|
+
if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${Hs(o || "Aba")}">`;
|
|
6435
|
+
let s = Vs(a);
|
|
6436
|
+
return s ? (t.push("alerta"), Us(s, o)) : (t.push("bloco"), "<div>");
|
|
6475
6437
|
}
|
|
6476
6438
|
});
|
|
6477
6439
|
}
|
|
6478
|
-
function
|
|
6440
|
+
function ac(e) {
|
|
6479
6441
|
e.core.ruler.after("inline", "lz_tarefas", (e) => {
|
|
6480
6442
|
let t = e.tokens;
|
|
6481
6443
|
for (let n = 2; n < t.length; n += 1) {
|
|
@@ -6492,26 +6454,26 @@ function rc(e) {
|
|
|
6492
6454
|
return !0;
|
|
6493
6455
|
});
|
|
6494
6456
|
}
|
|
6495
|
-
function
|
|
6457
|
+
function oc(e) {
|
|
6496
6458
|
e.renderer.rules.fence = (e, t) => {
|
|
6497
|
-
let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a =
|
|
6498
|
-
if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${
|
|
6499
|
-
let s =
|
|
6500
|
-
return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${
|
|
6459
|
+
let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a = Zs(i), o = /title="([^"]*)"/.exec(r)?.[1];
|
|
6460
|
+
if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${Hs(n.content)}</pre>` + (o ? `<figcaption>${Hs(o)}</figcaption>` : "") + "</figure>\n";
|
|
6461
|
+
let s = qs && Gs[a] ? qs(n.content, a) : Hs(n.content);
|
|
6462
|
+
return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${Hs(o ?? "")}</span><span class="md-code__lang">${Hs(i)}</span></div>` : ""}<pre class="md-code__pre"><code class="hljs language-${Hs(a)}">${s}</code></pre></div>\n`;
|
|
6501
6463
|
};
|
|
6502
6464
|
}
|
|
6503
|
-
function
|
|
6465
|
+
function sc(e) {
|
|
6504
6466
|
let t = e.renderer.rules.table_open;
|
|
6505
6467
|
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>`;
|
|
6506
6468
|
}
|
|
6507
|
-
function
|
|
6469
|
+
function cc(e) {
|
|
6508
6470
|
let t = e.renderer.rules.link_open;
|
|
6509
6471
|
e.renderer.rules.link_open = (e, n, r, i, a) => {
|
|
6510
6472
|
let o = String(e[n].attrGet("href") ?? "");
|
|
6511
6473
|
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);
|
|
6512
6474
|
};
|
|
6513
6475
|
}
|
|
6514
|
-
function
|
|
6476
|
+
function lc(e) {
|
|
6515
6477
|
e.core.ruler.after("inline", "lz_figuras", (e) => {
|
|
6516
6478
|
let t = e.tokens;
|
|
6517
6479
|
for (let e = 1; e < t.length - 1; e += 1) {
|
|
@@ -6527,17 +6489,17 @@ function sc(e) {
|
|
|
6527
6489
|
let o = t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
|
|
6528
6490
|
if (!e[n].meta?.figura) return o;
|
|
6529
6491
|
let s = e[n].content?.trim();
|
|
6530
|
-
return s ? `${o}<figcaption>${
|
|
6492
|
+
return s ? `${o}<figcaption>${Hs(s)}</figcaption>` : o;
|
|
6531
6493
|
};
|
|
6532
6494
|
}
|
|
6533
|
-
var
|
|
6534
|
-
function
|
|
6535
|
-
return
|
|
6495
|
+
var uc = null;
|
|
6496
|
+
function dc() {
|
|
6497
|
+
return uc ||= tc(), uc;
|
|
6536
6498
|
}
|
|
6537
|
-
function
|
|
6499
|
+
function fc(e) {
|
|
6538
6500
|
return (e.children ?? []).filter((e) => e.type === "text" || e.type === "code_inline").map((e) => e.content).join("").trim();
|
|
6539
6501
|
}
|
|
6540
|
-
function
|
|
6502
|
+
function pc(e) {
|
|
6541
6503
|
let t = [];
|
|
6542
6504
|
for (let n = 0; n < e.length; n += 1) {
|
|
6543
6505
|
let r = e[n];
|
|
@@ -6547,13 +6509,13 @@ function dc(e) {
|
|
|
6547
6509
|
let a = String(r.attrGet("id") ?? ""), o = e[n + 1];
|
|
6548
6510
|
!a || o?.type !== "inline" || t.push({
|
|
6549
6511
|
id: a,
|
|
6550
|
-
text:
|
|
6512
|
+
text: fc(o),
|
|
6551
6513
|
level: i
|
|
6552
6514
|
});
|
|
6553
6515
|
}
|
|
6554
6516
|
return t;
|
|
6555
6517
|
}
|
|
6556
|
-
function
|
|
6518
|
+
function mc(e) {
|
|
6557
6519
|
return Fe.sanitize(e, { ADD_ATTR: [
|
|
6558
6520
|
"target",
|
|
6559
6521
|
"open",
|
|
@@ -6561,16 +6523,16 @@ function fc(e) {
|
|
|
6561
6523
|
"disabled"
|
|
6562
6524
|
] });
|
|
6563
6525
|
}
|
|
6564
|
-
function
|
|
6565
|
-
let t =
|
|
6526
|
+
function hc(e) {
|
|
6527
|
+
let t = dc(), n = {}, r = t.parse(e ?? "", n);
|
|
6566
6528
|
return {
|
|
6567
|
-
html:
|
|
6568
|
-
headings:
|
|
6529
|
+
html: mc(t.renderer.render(r, t.options, n)),
|
|
6530
|
+
headings: pc(r)
|
|
6569
6531
|
};
|
|
6570
6532
|
}
|
|
6571
6533
|
//#endregion
|
|
6572
6534
|
//#region src/utils/markdownEnhance.ts
|
|
6573
|
-
function
|
|
6535
|
+
function gc(e) {
|
|
6574
6536
|
e.querySelectorAll("[data-md-code]").forEach((e) => {
|
|
6575
6537
|
if (e.dataset.mdPronto) return;
|
|
6576
6538
|
e.dataset.mdPronto = "1";
|
|
@@ -6585,7 +6547,7 @@ function mc(e) {
|
|
|
6585
6547
|
}), e.appendChild(t);
|
|
6586
6548
|
});
|
|
6587
6549
|
}
|
|
6588
|
-
function
|
|
6550
|
+
function _c(e) {
|
|
6589
6551
|
let t = Array.from(e.querySelectorAll(".md-tabs__panel")).filter((e) => !e.parentElement?.hasAttribute("data-md-tabs")), n = /* @__PURE__ */ new Set();
|
|
6590
6552
|
t.forEach((e) => {
|
|
6591
6553
|
if (n.has(e)) return;
|
|
@@ -6596,8 +6558,8 @@ function hc(e) {
|
|
|
6596
6558
|
i.className = "md-tabs", i.setAttribute("data-md-tabs", ""), e.before(i), t.forEach((e) => i.appendChild(e));
|
|
6597
6559
|
});
|
|
6598
6560
|
}
|
|
6599
|
-
function
|
|
6600
|
-
|
|
6561
|
+
function vc(e) {
|
|
6562
|
+
_c(e), e.querySelectorAll("[data-md-tabs]").forEach((e, t) => {
|
|
6601
6563
|
if (e.dataset.mdPronto) return;
|
|
6602
6564
|
let n = Array.from(e.querySelectorAll(":scope > .md-tabs__panel"));
|
|
6603
6565
|
if (!n.length) return;
|
|
@@ -6619,11 +6581,11 @@ function gc(e) {
|
|
|
6619
6581
|
e.prepend(r), a(0);
|
|
6620
6582
|
});
|
|
6621
6583
|
}
|
|
6622
|
-
var
|
|
6623
|
-
async function
|
|
6624
|
-
return
|
|
6584
|
+
var yc = null, bc = 0;
|
|
6585
|
+
async function xc() {
|
|
6586
|
+
return yc ||= import("mermaid").then((e) => e.default), yc;
|
|
6625
6587
|
}
|
|
6626
|
-
var
|
|
6588
|
+
var Sc = /* @__PURE__ */ new Set([
|
|
6627
6589
|
"script",
|
|
6628
6590
|
"iframe",
|
|
6629
6591
|
"object",
|
|
@@ -6639,59 +6601,72 @@ var bc = /* @__PURE__ */ new Set([
|
|
|
6639
6601
|
"animate",
|
|
6640
6602
|
"set"
|
|
6641
6603
|
]);
|
|
6642
|
-
function
|
|
6604
|
+
function Cc(e) {
|
|
6643
6605
|
for (let t of Array.from(e.attributes)) {
|
|
6644
6606
|
let n = t.name.toLowerCase(), r = t.value.trim().toLowerCase(), i = n === "href" || n === "xlink:href" || n === "src";
|
|
6645
6607
|
(n.startsWith("on") || i && /^(javascript|data|vbscript):/.test(r)) && e.removeAttribute(t.name);
|
|
6646
6608
|
}
|
|
6647
|
-
for (let t of Array.from(e.children))
|
|
6609
|
+
for (let t of Array.from(e.children)) Sc.has(t.localName.toLowerCase()) ? t.remove() : Cc(t);
|
|
6648
6610
|
}
|
|
6649
|
-
function
|
|
6611
|
+
function wc(e) {
|
|
6650
6612
|
let t = new DOMParser().parseFromString(e, "image/svg+xml");
|
|
6651
6613
|
if (t.querySelector("parsererror")) return null;
|
|
6652
6614
|
let n = t.documentElement;
|
|
6653
|
-
return n.localName.toLowerCase() === "svg" ? (
|
|
6615
|
+
return n.localName.toLowerCase() === "svg" ? (Cc(n), n) : null;
|
|
6654
6616
|
}
|
|
6655
|
-
function
|
|
6617
|
+
function Tc(e, t, n) {
|
|
6656
6618
|
return e.getPropertyValue(t).trim() || n;
|
|
6657
6619
|
}
|
|
6658
|
-
function
|
|
6659
|
-
let
|
|
6620
|
+
function Ec(e, t, n) {
|
|
6621
|
+
let r = Tc(e, t, n), i = document.createElement("span");
|
|
6622
|
+
i.style.display = "none", i.style.color = r, document.documentElement.appendChild(i);
|
|
6623
|
+
let a = getComputedStyle(i).color.trim();
|
|
6624
|
+
return i.remove(), Dc(a) ?? r;
|
|
6625
|
+
}
|
|
6626
|
+
function Dc(e) {
|
|
6627
|
+
if (!e) return null;
|
|
6628
|
+
let t = /^color\(srgb\s+(-?[\d.]+)\s+(-?[\d.]+)\s+(-?[\d.]+)(?:\s*\/\s*([\d.%]+))?\)$/.exec(e);
|
|
6629
|
+
if (!t) return e;
|
|
6630
|
+
let n = (e) => Math.round(Math.min(1, Math.max(0, Number(e))) * 255), [, r, i, a, o] = t, s = `${n(r)}, ${n(i)}, ${n(a)}`;
|
|
6631
|
+
return o === void 0 ? `rgb(${s})` : `rgba(${s}, ${o.endsWith("%") ? Number(o.slice(0, -1)) / 100 : Number(o)})`;
|
|
6632
|
+
}
|
|
6633
|
+
function Oc(e) {
|
|
6634
|
+
let t = getComputedStyle(document.documentElement), n = Ec(t, "--surface", "#ffffff"), r = Ec(t, "--fg", "#141a22"), i = Ec(t, "--primary", "#1f5092"), a = Ec(t, "--primary-soft", "#eef4fb"), o = Ec(t, "--border-strong", "#cdd6e2");
|
|
6660
6635
|
e.initialize({
|
|
6661
6636
|
startOnLoad: !1,
|
|
6662
6637
|
securityLevel: "strict",
|
|
6663
6638
|
theme: "base",
|
|
6664
|
-
fontFamily:
|
|
6639
|
+
fontFamily: Tc(t, "--font-sans", "inherit"),
|
|
6665
6640
|
flowchart: { useMaxWidth: !0 },
|
|
6666
6641
|
themeVariables: {
|
|
6667
6642
|
background: n,
|
|
6668
6643
|
primaryColor: a,
|
|
6669
6644
|
primaryTextColor: r,
|
|
6670
6645
|
primaryBorderColor: i,
|
|
6671
|
-
secondaryColor:
|
|
6672
|
-
tertiaryColor:
|
|
6646
|
+
secondaryColor: Ec(t, "--surface-3", "#eef2f7"),
|
|
6647
|
+
tertiaryColor: Ec(t, "--surface-2", "#f8fafc"),
|
|
6673
6648
|
lineColor: o,
|
|
6674
6649
|
textColor: r,
|
|
6675
6650
|
mainBkg: a,
|
|
6676
6651
|
nodeBorder: i,
|
|
6677
|
-
clusterBkg:
|
|
6652
|
+
clusterBkg: Ec(t, "--surface-2", "#f8fafc"),
|
|
6678
6653
|
clusterBorder: o,
|
|
6679
6654
|
fontSize: "13px"
|
|
6680
6655
|
}
|
|
6681
6656
|
});
|
|
6682
6657
|
}
|
|
6683
|
-
async function
|
|
6658
|
+
async function kc(e, t = !1) {
|
|
6684
6659
|
let n = Array.from(e.querySelectorAll("[data-md-mermaid]")).filter((e) => t || !e.dataset.mdEstado);
|
|
6685
6660
|
if (!n.length) return;
|
|
6686
|
-
let r = await
|
|
6687
|
-
|
|
6661
|
+
let r = await xc();
|
|
6662
|
+
Oc(r);
|
|
6688
6663
|
for (let e of n) {
|
|
6689
6664
|
let t = e.querySelector(".md-mermaid__fonte")?.textContent ?? "";
|
|
6690
6665
|
if (t.trim()) {
|
|
6691
6666
|
e.querySelector(".md-mermaid__svg")?.remove();
|
|
6692
6667
|
try {
|
|
6693
|
-
|
|
6694
|
-
let { svg: n } = await r.render(`md-diagrama-${
|
|
6668
|
+
bc += 1;
|
|
6669
|
+
let { svg: n } = await r.render(`md-diagrama-${bc}`, t), i = wc(n);
|
|
6695
6670
|
if (!i) {
|
|
6696
6671
|
e.dataset.mdEstado = "erro";
|
|
6697
6672
|
continue;
|
|
@@ -6704,15 +6679,15 @@ async function Tc(e, t = !1) {
|
|
|
6704
6679
|
}
|
|
6705
6680
|
}
|
|
6706
6681
|
}
|
|
6707
|
-
async function
|
|
6708
|
-
e && (
|
|
6682
|
+
async function Ac(e) {
|
|
6683
|
+
e && (gc(e), vc(e), await kc(e));
|
|
6709
6684
|
}
|
|
6710
6685
|
//#endregion
|
|
6711
6686
|
//#region src/components/ui/WMarkdownView.vue?vue&type=script&setup=true&lang.ts
|
|
6712
|
-
var
|
|
6687
|
+
var jc = {
|
|
6713
6688
|
key: 0,
|
|
6714
6689
|
class: "w-markdown-view w-markdown-view--empty"
|
|
6715
|
-
},
|
|
6690
|
+
}, Mc = ["innerHTML"], Nc = /* @__PURE__ */ x({
|
|
6716
6691
|
__name: "WMarkdownView",
|
|
6717
6692
|
props: {
|
|
6718
6693
|
source: {},
|
|
@@ -6720,42 +6695,42 @@ var Dc = {
|
|
|
6720
6695
|
},
|
|
6721
6696
|
emits: ["headings"],
|
|
6722
6697
|
setup(e, { emit: t }) {
|
|
6723
|
-
let n = e, r = t, i = P(null), a = P(
|
|
6724
|
-
B(o, (e) => r("headings", e.headings), { immediate: !0 }), B(s, () => void O(() =>
|
|
6698
|
+
let n = e, r = t, i = P(null), a = P(Ys()), o = f(() => (a.value, hc(n.source ?? ""))), s = f(() => o.value.html), c = f(() => !n.source || !n.source.trim());
|
|
6699
|
+
B(o, (e) => r("headings", e.headings), { immediate: !0 }), B(s, () => void O(() => Ac(i.value)));
|
|
6725
6700
|
let l = null;
|
|
6726
6701
|
function u() {
|
|
6727
|
-
typeof MutationObserver > "u" || (l = new MutationObserver(() => void
|
|
6702
|
+
typeof MutationObserver > "u" || (l = new MutationObserver(() => void kc(i.value, !0)), l.observe(document.documentElement, {
|
|
6728
6703
|
attributes: !0,
|
|
6729
6704
|
attributeFilter: ["class"]
|
|
6730
6705
|
}));
|
|
6731
6706
|
}
|
|
6732
6707
|
return te(async () => {
|
|
6733
|
-
await O(), await
|
|
6734
|
-
}), ee(() => l?.disconnect()), (t, n) => c.value ? (M(), h("div",
|
|
6708
|
+
await O(), await Ac(i.value), u(), a.value ||= (await Xs(), !0);
|
|
6709
|
+
}), ee(() => l?.disconnect()), (t, n) => c.value ? (M(), h("div", jc, L(e.emptyText), 1)) : (M(), h("div", {
|
|
6735
6710
|
key: 1,
|
|
6736
6711
|
ref_key: "raiz",
|
|
6737
6712
|
ref: i,
|
|
6738
6713
|
class: "w-markdown-view",
|
|
6739
6714
|
innerHTML: s.value
|
|
6740
|
-
}, null, 8,
|
|
6715
|
+
}, null, 8, Mc));
|
|
6741
6716
|
}
|
|
6742
|
-
}),
|
|
6717
|
+
}), Pc = {
|
|
6743
6718
|
class: "w-markdown-editor__toolbar",
|
|
6744
6719
|
role: "toolbar",
|
|
6745
6720
|
"aria-label": "Formatação markdown"
|
|
6746
|
-
},
|
|
6721
|
+
}, Fc = [
|
|
6747
6722
|
"aria-label",
|
|
6748
6723
|
"title",
|
|
6749
6724
|
"disabled",
|
|
6750
6725
|
"onClick"
|
|
6751
|
-
],
|
|
6726
|
+
], Ic = ["aria-pressed"], Lc = ["aria-pressed"], Rc = {
|
|
6752
6727
|
key: 0,
|
|
6753
6728
|
class: "w-markdown-editor__ajuda"
|
|
6754
|
-
},
|
|
6729
|
+
}, zc = [
|
|
6755
6730
|
"value",
|
|
6756
6731
|
"disabled",
|
|
6757
6732
|
"placeholder"
|
|
6758
|
-
],
|
|
6733
|
+
], Bc = /* @__PURE__ */ x({
|
|
6759
6734
|
__name: "WMarkdownEditor",
|
|
6760
6735
|
props: {
|
|
6761
6736
|
modelValue: {},
|
|
@@ -6937,7 +6912,7 @@ var Dc = {
|
|
|
6937
6912
|
}
|
|
6938
6913
|
];
|
|
6939
6914
|
return (t, n) => (M(), h("div", { class: k(["w-markdown-editor", { "w-markdown-editor--split": o.value }]) }, [
|
|
6940
|
-
g("div",
|
|
6915
|
+
g("div", Pc, [
|
|
6941
6916
|
(M(), h(d, null, F(ie, (t) => g("button", {
|
|
6942
6917
|
key: t.label,
|
|
6943
6918
|
type: "button",
|
|
@@ -6957,7 +6932,7 @@ var Dc = {
|
|
|
6957
6932
|
"w-markdown-editor__glyph--italic": t.glyph === "I"
|
|
6958
6933
|
}]),
|
|
6959
6934
|
"aria-hidden": "true"
|
|
6960
|
-
}, L(t.glyph), 3))], 8,
|
|
6935
|
+
}, L(t.glyph), 3))], 8, Fc)), 64)),
|
|
6961
6936
|
g("button", {
|
|
6962
6937
|
type: "button",
|
|
6963
6938
|
class: k(["w-markdown-editor__tool w-markdown-editor__tool--ajuda", { "w-markdown-editor__tool--active": N.value }]),
|
|
@@ -6968,7 +6943,7 @@ var Dc = {
|
|
|
6968
6943
|
}, [...n[1] ||= [g("i", {
|
|
6969
6944
|
class: "pi pi-question-circle",
|
|
6970
6945
|
"aria-hidden": "true"
|
|
6971
|
-
}, null, -1)]], 10,
|
|
6946
|
+
}, null, -1)]], 10, Ic),
|
|
6972
6947
|
o.value ? m("", !0) : (M(), h("button", {
|
|
6973
6948
|
key: 0,
|
|
6974
6949
|
type: "button",
|
|
@@ -6980,9 +6955,9 @@ var Dc = {
|
|
|
6980
6955
|
}, [g("i", {
|
|
6981
6956
|
class: k(a.value ? "pi pi-pencil" : "pi pi-eye"),
|
|
6982
6957
|
"aria-hidden": "true"
|
|
6983
|
-
}, null, 2)], 10,
|
|
6958
|
+
}, null, 2)], 10, Lc))
|
|
6984
6959
|
]),
|
|
6985
|
-
N.value ? (M(), h("dl",
|
|
6960
|
+
N.value ? (M(), h("dl", Rc, [(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),
|
|
6986
6961
|
g("div", {
|
|
6987
6962
|
class: "w-markdown-editor__body",
|
|
6988
6963
|
style: j({
|
|
@@ -6999,7 +6974,7 @@ var Dc = {
|
|
|
6999
6974
|
placeholder: e.placeholder,
|
|
7000
6975
|
spellcheck: "false",
|
|
7001
6976
|
onInput: l
|
|
7002
|
-
}, null, 40,
|
|
6977
|
+
}, null, 40, zc)) : m("", !0), c.value ? (M(), p(Nc, {
|
|
7003
6978
|
key: 1,
|
|
7004
6979
|
class: "w-markdown-editor__preview",
|
|
7005
6980
|
source: e.modelValue,
|
|
@@ -7007,28 +6982,28 @@ var Dc = {
|
|
|
7007
6982
|
}, null, 8, ["source"])) : m("", !0)], 4)
|
|
7008
6983
|
], 2));
|
|
7009
6984
|
}
|
|
7010
|
-
}),
|
|
6985
|
+
}), Vc = {
|
|
7011
6986
|
key: 0,
|
|
7012
6987
|
class: "w-md-toc",
|
|
7013
6988
|
"aria-label": "Índice do documento"
|
|
7014
|
-
},
|
|
6989
|
+
}, Hc = { class: "w-md-toc__titulo" }, Uc = {
|
|
7015
6990
|
key: 0,
|
|
7016
6991
|
class: "w-md-toc__busca"
|
|
7017
|
-
},
|
|
6992
|
+
}, Wc = { class: "w-md-toc__lista" }, Gc = [
|
|
7018
6993
|
"aria-expanded",
|
|
7019
6994
|
"aria-label",
|
|
7020
6995
|
"onClick"
|
|
7021
|
-
],
|
|
6996
|
+
], Kc = {
|
|
7022
6997
|
key: 1,
|
|
7023
6998
|
class: "w-md-toc__chevron w-md-toc__chevron--vazio",
|
|
7024
6999
|
"aria-hidden": "true"
|
|
7025
|
-
},
|
|
7000
|
+
}, qc = ["href", "onClick"], Jc = {
|
|
7026
7001
|
key: 0,
|
|
7027
7002
|
class: "w-md-toc__lista"
|
|
7028
|
-
},
|
|
7003
|
+
}, Yc = ["href", "onClick"], Xc = {
|
|
7029
7004
|
key: 0,
|
|
7030
7005
|
class: "w-md-toc__vazio"
|
|
7031
|
-
},
|
|
7006
|
+
}, Zc = /* @__PURE__ */ x({
|
|
7032
7007
|
__name: "WMarkdownToc",
|
|
7033
7008
|
props: {
|
|
7034
7009
|
headings: {},
|
|
@@ -7084,9 +7059,9 @@ var Dc = {
|
|
|
7084
7059
|
block: "start"
|
|
7085
7060
|
}));
|
|
7086
7061
|
}
|
|
7087
|
-
return B(() => t.headings, () => void O(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (M(), h("nav",
|
|
7088
|
-
g("p",
|
|
7089
|
-
e.searchable ? (M(), h("div",
|
|
7062
|
+
return B(() => t.headings, () => void O(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (M(), h("nav", Vc, [
|
|
7063
|
+
g("p", Hc, L(e.title), 1),
|
|
7064
|
+
e.searchable ? (M(), h("div", Uc, [i[1] ||= g("i", {
|
|
7090
7065
|
class: "pi pi-search",
|
|
7091
7066
|
"aria-hidden": "true"
|
|
7092
7067
|
}, null, -1), H(g("input", {
|
|
@@ -7098,7 +7073,7 @@ var Dc = {
|
|
|
7098
7073
|
g("div", {
|
|
7099
7074
|
class: "w-md-toc__corpo",
|
|
7100
7075
|
style: j({ maxHeight: e.maxHeight })
|
|
7101
|
-
}, [g("ul",
|
|
7076
|
+
}, [g("ul", Wc, [(M(!0), h(d, null, F(c.value, (e) => (M(), h("li", {
|
|
7102
7077
|
key: e.titulo.id,
|
|
7103
7078
|
class: "w-md-toc__grupo"
|
|
7104
7079
|
}, [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", {
|
|
@@ -7111,19 +7086,19 @@ var Dc = {
|
|
|
7111
7086
|
}, [g("i", {
|
|
7112
7087
|
class: k(u(e) ? "pi pi-chevron-down" : "pi pi-chevron-right"),
|
|
7113
7088
|
"aria-hidden": "true"
|
|
7114
|
-
}, null, 2)], 8,
|
|
7089
|
+
}, null, 2)], 8, Gc)) : (M(), h("span", Kc)), g("a", {
|
|
7115
7090
|
href: `#${e.titulo.id}`,
|
|
7116
7091
|
onClick: W((t) => v(e.titulo.id), ["prevent"])
|
|
7117
|
-
}, L(e.titulo.text), 9,
|
|
7092
|
+
}, L(e.titulo.text), 9, qc)], 2), u(e) ? (M(), h("ul", Jc, [(M(!0), h(d, null, F(e.filhos, (e) => (M(), h("li", {
|
|
7118
7093
|
key: e.id,
|
|
7119
7094
|
class: k(["w-md-toc__item w-md-toc__item--n3", { "w-md-toc__item--ativo": n.value === e.id }])
|
|
7120
7095
|
}, [g("a", {
|
|
7121
7096
|
href: `#${e.id}`,
|
|
7122
7097
|
onClick: W((t) => v(e.id), ["prevent"])
|
|
7123
|
-
}, L(e.text), 9,
|
|
7098
|
+
}, L(e.text), 9, Yc)], 2))), 128))])) : m("", !0)]))), 128))]), l.value && !c.value.length ? (M(), h("p", Xc, "Nenhuma seção encontrada")) : m("", !0)], 4)
|
|
7124
7099
|
])) : m("", !0);
|
|
7125
7100
|
}
|
|
7126
|
-
}),
|
|
7101
|
+
}), Qc = /* @__PURE__ */ x({
|
|
7127
7102
|
name: "WDialog",
|
|
7128
7103
|
inheritAttrs: !1,
|
|
7129
7104
|
__name: "WDialog",
|
|
@@ -7134,16 +7109,16 @@ var Dc = {
|
|
|
7134
7109
|
fn: V((t) => [I(e.$slots, n, A(S(t ?? {})))])
|
|
7135
7110
|
}))]), 1040, ["append-to"]));
|
|
7136
7111
|
}
|
|
7137
|
-
}),
|
|
7112
|
+
}), $c = ["aria-label"], el = [
|
|
7138
7113
|
"aria-selected",
|
|
7139
7114
|
"tabindex",
|
|
7140
7115
|
"disabled",
|
|
7141
7116
|
"onClick",
|
|
7142
7117
|
"onKeydown"
|
|
7143
|
-
],
|
|
7118
|
+
], tl = {
|
|
7144
7119
|
key: 1,
|
|
7145
7120
|
class: "w-tab-bar__badge"
|
|
7146
|
-
},
|
|
7121
|
+
}, nl = /* @__PURE__ */ x({
|
|
7147
7122
|
__name: "WTabBar",
|
|
7148
7123
|
props: {
|
|
7149
7124
|
modelValue: {},
|
|
@@ -7192,20 +7167,20 @@ var Dc = {
|
|
|
7192
7167
|
"aria-hidden": "true"
|
|
7193
7168
|
}, null, 2)) : m("", !0),
|
|
7194
7169
|
g("span", null, L(t.label), 1),
|
|
7195
|
-
t.badge !== void 0 && t.badge !== null ? (M(), h("span",
|
|
7196
|
-
], 42,
|
|
7170
|
+
t.badge !== void 0 && t.badge !== null ? (M(), h("span", tl, L(t.badge), 1)) : m("", !0)
|
|
7171
|
+
], 42, el))), 128))], 8, $c));
|
|
7197
7172
|
}
|
|
7198
|
-
}),
|
|
7173
|
+
}), rl = { class: "w-tab-nav" }, il = ["aria-label"], al = [
|
|
7199
7174
|
"tabindex",
|
|
7200
7175
|
"aria-selected",
|
|
7201
7176
|
"onClick",
|
|
7202
7177
|
"onAuxclick",
|
|
7203
7178
|
"onContextmenu",
|
|
7204
7179
|
"onKeydown"
|
|
7205
|
-
],
|
|
7180
|
+
], ol = ["title"], sl = ["aria-label", "onClick"], cl = ["aria-label", "onClick"], ll = {
|
|
7206
7181
|
key: 0,
|
|
7207
7182
|
class: "w-tab-nav__actions"
|
|
7208
|
-
},
|
|
7183
|
+
}, ul = 6, dl = /* @__PURE__ */ x({
|
|
7209
7184
|
__name: "WTabNav",
|
|
7210
7185
|
props: {
|
|
7211
7186
|
tabs: {},
|
|
@@ -7275,45 +7250,37 @@ var Dc = {
|
|
|
7275
7250
|
function x(e, t) {
|
|
7276
7251
|
v.value = t, _.value?.show(e);
|
|
7277
7252
|
}
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
"oklch(64% 0.13 150)",
|
|
7281
|
-
"oklch(66% 0.14 45)",
|
|
7282
|
-
"oklch(64% 0.12 195)",
|
|
7283
|
-
"oklch(68% 0.12 95)",
|
|
7284
|
-
"oklch(60% 0.12 20)"
|
|
7285
|
-
];
|
|
7286
|
-
function C(e) {
|
|
7287
|
-
return `var(--w-tab-group-${e}, var(--viz-${e}, ${S[e - 1]}))`;
|
|
7253
|
+
function S(e) {
|
|
7254
|
+
return `var(--w-tab-group-${e}, var(--w-viz-${e}))`;
|
|
7288
7255
|
}
|
|
7289
|
-
function
|
|
7256
|
+
function C(e) {
|
|
7290
7257
|
let t = 0;
|
|
7291
7258
|
for (let n = 0; n < e.length; n++) t = t * 31 + e.charCodeAt(n) >>> 0;
|
|
7292
7259
|
return t;
|
|
7293
7260
|
}
|
|
7294
|
-
function
|
|
7261
|
+
function w(e) {
|
|
7295
7262
|
if (e.color) return e.color;
|
|
7296
|
-
if (e.group) return C(
|
|
7263
|
+
if (e.group) return S(C(e.group) % ul + 1);
|
|
7297
7264
|
}
|
|
7298
|
-
function
|
|
7299
|
-
let t =
|
|
7265
|
+
function T(e) {
|
|
7266
|
+
let t = w(e);
|
|
7300
7267
|
return t ? { "--w-tab-group-color": t } : void 0;
|
|
7301
7268
|
}
|
|
7302
|
-
function
|
|
7269
|
+
function E(e) {
|
|
7303
7270
|
let t = i.value[e]?.group;
|
|
7304
7271
|
return !!t && t !== i.value[e - 1]?.group;
|
|
7305
7272
|
}
|
|
7306
|
-
return (t, n) => (M(), h("div",
|
|
7273
|
+
return (t, n) => (M(), h("div", rl, [
|
|
7307
7274
|
g("div", {
|
|
7308
7275
|
ref_key: "trilho",
|
|
7309
7276
|
ref: s,
|
|
7310
7277
|
class: "w-tab-nav__list",
|
|
7311
7278
|
role: "tablist",
|
|
7312
7279
|
"aria-label": e.ariaLabel ?? "Abas abertas"
|
|
7313
|
-
}, [(M(!0), h(d, null, F(i.value, (e, r) => (M(), h(d, { key: e.key }, [
|
|
7280
|
+
}, [(M(!0), h(d, null, F(i.value, (e, r) => (M(), h(d, { key: e.key }, [E(r) ? (M(), h("span", {
|
|
7314
7281
|
key: 0,
|
|
7315
7282
|
class: "w-tab-nav__group",
|
|
7316
|
-
style: j(
|
|
7283
|
+
style: j(T(e)),
|
|
7317
7284
|
"aria-hidden": "true"
|
|
7318
7285
|
}, L(e.group), 5)) : m("", !0), g("div", {
|
|
7319
7286
|
ref_for: !0,
|
|
@@ -7322,9 +7289,9 @@ var Dc = {
|
|
|
7322
7289
|
tabindex: e.key === a.value ? 0 : -1,
|
|
7323
7290
|
class: k(["w-tab-nav__item", {
|
|
7324
7291
|
"w-tab-nav__item--ativa": e.key === a.value,
|
|
7325
|
-
"w-tab-nav__item--grupo": !!
|
|
7292
|
+
"w-tab-nav__item--grupo": !!w(e)
|
|
7326
7293
|
}]),
|
|
7327
|
-
style: j(
|
|
7294
|
+
style: j(T(e)),
|
|
7328
7295
|
"aria-selected": e.key === a.value,
|
|
7329
7296
|
onClick: (t) => l(e),
|
|
7330
7297
|
onAuxclick: W((t) => u(e), ["middle", "prevent"]),
|
|
@@ -7345,7 +7312,7 @@ var Dc = {
|
|
|
7345
7312
|
}, null, 2)) : m("", !0), g("span", {
|
|
7346
7313
|
class: "w-tab-nav__title",
|
|
7347
7314
|
title: e.title
|
|
7348
|
-
}, L(e.title), 9,
|
|
7315
|
+
}, L(e.title), 9, ol)]),
|
|
7349
7316
|
g("button", {
|
|
7350
7317
|
type: "button",
|
|
7351
7318
|
class: "w-tab-nav__menu",
|
|
@@ -7355,7 +7322,7 @@ var Dc = {
|
|
|
7355
7322
|
}, [...n[0] ||= [g("i", {
|
|
7356
7323
|
class: "pi pi-ellipsis-v",
|
|
7357
7324
|
"aria-hidden": "true"
|
|
7358
|
-
}, null, -1)]], 8,
|
|
7325
|
+
}, null, -1)]], 8, sl),
|
|
7359
7326
|
e.closable ? (M(), h("button", {
|
|
7360
7327
|
key: 0,
|
|
7361
7328
|
type: "button",
|
|
@@ -7366,9 +7333,9 @@ var Dc = {
|
|
|
7366
7333
|
}, [...n[1] ||= [g("i", {
|
|
7367
7334
|
class: "pi pi-times",
|
|
7368
7335
|
"aria-hidden": "true"
|
|
7369
|
-
}, null, -1)]], 8,
|
|
7370
|
-
], 46,
|
|
7371
|
-
t.$slots.actions ? (M(), h("div",
|
|
7336
|
+
}, null, -1)]], 8, cl)) : m("", !0)
|
|
7337
|
+
], 46, al)], 64))), 128))], 8, il),
|
|
7338
|
+
t.$slots.actions ? (M(), h("div", ll, [I(t.$slots, "actions")])) : m("", !0),
|
|
7372
7339
|
b(R(ve), {
|
|
7373
7340
|
ref_key: "menu",
|
|
7374
7341
|
ref: _,
|
|
@@ -7376,7 +7343,7 @@ var Dc = {
|
|
|
7376
7343
|
}, null, 8, ["model"])
|
|
7377
7344
|
]));
|
|
7378
7345
|
}
|
|
7379
|
-
}),
|
|
7346
|
+
}), fl = x({
|
|
7380
7347
|
name: "WTabPane",
|
|
7381
7348
|
props: {
|
|
7382
7349
|
tab: {
|
|
@@ -7422,7 +7389,7 @@ var Dc = {
|
|
|
7422
7389
|
key: e.tab.remount
|
|
7423
7390
|
}) : null;
|
|
7424
7391
|
}
|
|
7425
|
-
}),
|
|
7392
|
+
}), pl = { class: "w-tab-viewport" }, ml = { class: "w-tab-viewport__scroll" }, hl = /* @__PURE__ */ x({
|
|
7426
7393
|
__name: "WTabViewport",
|
|
7427
7394
|
props: { tabs: {} },
|
|
7428
7395
|
setup(e) {
|
|
@@ -7442,12 +7409,12 @@ var Dc = {
|
|
|
7442
7409
|
return B(r, (e) => {
|
|
7443
7410
|
let t = new Set(e.map((e) => e.key));
|
|
7444
7411
|
for (let e of i.keys()) t.has(e) || i.delete(e);
|
|
7445
|
-
}), (t, i) => (M(), h("div",
|
|
7412
|
+
}), (t, i) => (M(), h("div", pl, [(M(!0), h(d, null, F(r.value, (t) => H((M(), h("div", {
|
|
7446
7413
|
key: `${t.key}#${t.remount}`,
|
|
7447
7414
|
ref_for: !0,
|
|
7448
7415
|
ref: (e) => o(t.key, e),
|
|
7449
7416
|
class: "w-tab-viewport__pane"
|
|
7450
|
-
}, [g("div",
|
|
7417
|
+
}, [g("div", ml, [b(R(fl), {
|
|
7451
7418
|
tab: t,
|
|
7452
7419
|
api: e.tabs,
|
|
7453
7420
|
active: t.key === n.value,
|
|
@@ -7459,26 +7426,26 @@ var Dc = {
|
|
|
7459
7426
|
"host-el"
|
|
7460
7427
|
])])])), [[de, t.key === n.value]])), 128))]));
|
|
7461
7428
|
}
|
|
7462
|
-
}),
|
|
7429
|
+
}), gl = ["aria-busy"], _l = { class: "w-kanban-board__header" }, vl = { class: "w-kanban-board__title" }, yl = { class: "w-kanban-board__count" }, bl = [
|
|
7463
7430
|
"aria-label",
|
|
7464
7431
|
"onDragover",
|
|
7465
7432
|
"onDragleave",
|
|
7466
7433
|
"onDrop"
|
|
7467
|
-
],
|
|
7434
|
+
], xl = {
|
|
7468
7435
|
key: 0,
|
|
7469
7436
|
class: "w-kanban-board__indicator"
|
|
7470
|
-
},
|
|
7437
|
+
}, Sl = [
|
|
7471
7438
|
"draggable",
|
|
7472
7439
|
"onDragstart",
|
|
7473
7440
|
"onClick",
|
|
7474
7441
|
"onKeydown"
|
|
7475
|
-
],
|
|
7442
|
+
], Cl = { class: "w-kanban-board__card-fallback" }, wl = {
|
|
7476
7443
|
key: 0,
|
|
7477
7444
|
class: "w-kanban-board__indicator"
|
|
7478
|
-
},
|
|
7445
|
+
}, Tl = {
|
|
7479
7446
|
key: 1,
|
|
7480
7447
|
class: "w-kanban-board__empty"
|
|
7481
|
-
},
|
|
7448
|
+
}, El = /* @__PURE__ */ x({
|
|
7482
7449
|
__name: "WKanbanBoard",
|
|
7483
7450
|
props: {
|
|
7484
7451
|
columns: {},
|
|
@@ -7581,7 +7548,7 @@ var Dc = {
|
|
|
7581
7548
|
key: r.value,
|
|
7582
7549
|
class: k(["w-kanban-board__column", { "w-kanban-board__column--over": !!i.value && a.value?.column === r.value }]),
|
|
7583
7550
|
style: j(r.accent ? { "--w-kanban-accent": r.accent } : void 0)
|
|
7584
|
-
}, [g("header",
|
|
7551
|
+
}, [g("header", _l, [I(t.$slots, "column-header", { column: r }, () => [g("span", vl, L(r.label), 1), g("span", yl, L(r.items.length), 1)]), I(t.$slots, "column-action", { column: r })]), g("div", {
|
|
7585
7552
|
ref_for: !0,
|
|
7586
7553
|
ref: (e) => s(r.value, e),
|
|
7587
7554
|
class: "w-kanban-board__list",
|
|
@@ -7595,7 +7562,7 @@ var Dc = {
|
|
|
7595
7562
|
onDragleave: (e) => b(r, e),
|
|
7596
7563
|
onDrop: (e) => x(r, e)
|
|
7597
7564
|
}, [
|
|
7598
|
-
(M(!0), h(d, null, F(r.items, (e, n) => (M(), h(d, { key: String(c(e)) }, [T(r, n) ? (M(), h("div",
|
|
7565
|
+
(M(!0), h(d, null, F(r.items, (e, n) => (M(), h(d, { key: String(c(e)) }, [T(r, n) ? (M(), h("div", xl)) : m("", !0), g("div", {
|
|
7599
7566
|
class: k(["w-kanban-board__card", {
|
|
7600
7567
|
"w-kanban-board__card--dragging": f(e),
|
|
7601
7568
|
"w-kanban-board__card--static": !u(e)
|
|
@@ -7610,13 +7577,13 @@ var Dc = {
|
|
|
7610
7577
|
}, [I(t.$slots, "card", {
|
|
7611
7578
|
item: e,
|
|
7612
7579
|
column: r
|
|
7613
|
-
}, () => [g("span",
|
|
7614
|
-
T(r, r.items.length) ? (M(), h("div",
|
|
7615
|
-
r.items.length ? m("", !0) : (M(), h("div",
|
|
7616
|
-
], 44,
|
|
7580
|
+
}, () => [g("span", Cl, L(l(e)), 1)])], 42, Sl)], 64))), 128)),
|
|
7581
|
+
T(r, r.items.length) ? (M(), h("div", wl)) : m("", !0),
|
|
7582
|
+
r.items.length ? m("", !0) : (M(), h("div", Tl, [I(t.$slots, "empty-column", { column: r }, () => [n[0] ||= y("Nenhum item", -1)])]))
|
|
7583
|
+
], 44, bl)], 6))), 128))], 10, gl));
|
|
7617
7584
|
}
|
|
7618
7585
|
});
|
|
7619
7586
|
//#endregion
|
|
7620
|
-
export {
|
|
7587
|
+
export { Zi as A, Kn as B, Aa as C, ra as D, la as E, Ti as F, It as G, dn as H, pi as I, gt as J, Mt as K, Lr as L, Ki as M, Mi as N, na as O, Ei as P, Xn as R, Va as S, ma as T, Jt as U, Hn as V, Lt as W, _t as X, bt as Y, Xe as Z, fo as _, Qc as a, Ua as b, Nc as c, $o as d, Ao as f, yo as g, Co as h, nl as i, $i as j, Xi as k, Ls as l, Oo as m, hl as n, Zc as o, ko as p, yt as q, dl as r, Bc as s, El as t, ss as u, $a as v, xa as w, Ha as x, Ga as y, Yn as z };
|
|
7621
7588
|
|
|
7622
|
-
//# sourceMappingURL=components-
|
|
7589
|
+
//# sourceMappingURL=components-BVJTg_MO.js.map
|