@wgalleti/primevue-components 1.6.0 → 1.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +2 -0
- package/dist/components/ui/WAvatar.vue.d.ts +18 -0
- package/dist/components/ui/WInlineCell.vue.d.ts +45 -0
- package/dist/{components-bj4hg7HR.cjs → components-C-XiEtDl.cjs} +6 -6
- package/dist/components-C-XiEtDl.cjs.map +1 -0
- package/dist/{components-BcZQ6MJV.js → components-CUseL9Li.js} +326 -231
- package/dist/components-CUseL9Li.js.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +2 -2
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +38 -38
- package/dist/index.js.map +1 -1
- package/dist/primevue-components.css +1 -1
- package/dist/utils/chart.d.ts +4 -1
- package/dist/utils/initials.d.ts +4 -0
- package/package.json +1 -1
- package/dist/components-BcZQ6MJV.js.map +0 -1
- package/dist/components-bj4hg7HR.cjs.map +0 -1
|
@@ -4767,8 +4767,9 @@ function $i() {
|
|
|
4767
4767
|
import("echarts/core"),
|
|
4768
4768
|
import("echarts/charts"),
|
|
4769
4769
|
import("echarts/components"),
|
|
4770
|
-
import("echarts/renderers")
|
|
4771
|
-
|
|
4770
|
+
import("echarts/renderers"),
|
|
4771
|
+
import("echarts/features")
|
|
4772
|
+
]).then(([e, t, n, r, i]) => (e.use([
|
|
4772
4773
|
t.BarChart,
|
|
4773
4774
|
t.LineChart,
|
|
4774
4775
|
t.PieChart,
|
|
@@ -4778,7 +4779,8 @@ function $i() {
|
|
|
4778
4779
|
n.TitleComponent,
|
|
4779
4780
|
n.TooltipComponent,
|
|
4780
4781
|
r.CanvasRenderer,
|
|
4781
|
-
r.SVGRenderer
|
|
4782
|
+
r.SVGRenderer,
|
|
4783
|
+
i.LabelLayout
|
|
4782
4784
|
]), e)).catch(() => (Qi = null, null)), Qi;
|
|
4783
4785
|
}
|
|
4784
4786
|
var ea = (e, t = "") => typeof window > "u" ? t : getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
|
|
@@ -5927,19 +5929,57 @@ var co = { class: "w-meter__header" }, lo = { class: "w-meter__label" }, uo = {
|
|
|
5927
5929
|
e.summary ? (P(), h("span", gs, B(e.summary), 1)) : m("", !0)
|
|
5928
5930
|
], 8, ps), t.$slots.actions ? (P(), h("div", _s, [R(t.$slots, "actions", { open: i.value })])) : m("", !0)]), i.value ? (P(), h(d, { key: 0 }, [g("div", vs, [R(t.$slots, "default")]), t.$slots.footer ? (P(), h("div", ys, [R(t.$slots, "footer")])) : m("", !0)], 64)) : m("", !0)])])], 2));
|
|
5929
5931
|
}
|
|
5930
|
-
})
|
|
5932
|
+
});
|
|
5933
|
+
//#endregion
|
|
5934
|
+
//#region src/utils/initials.ts
|
|
5935
|
+
function js(e) {
|
|
5936
|
+
let t = (e ?? "").trim().split(/\s+/).filter(Boolean);
|
|
5937
|
+
return t.length === 0 ? "" : (t[0].charAt(0) + (t.length > 1 ? t[t.length - 1].charAt(0) : "")).toUpperCase();
|
|
5938
|
+
}
|
|
5939
|
+
function Ms(e, t = 6) {
|
|
5940
|
+
let n = (e ?? "").trim().toLowerCase(), r = 0;
|
|
5941
|
+
for (let e = 0; e < n.length; e++) r = r * 31 + n.charCodeAt(e) >>> 0;
|
|
5942
|
+
return r % t + 1;
|
|
5943
|
+
}
|
|
5944
|
+
//#endregion
|
|
5945
|
+
//#region src/components/ui/WAvatar.vue?vue&type=script&setup=true&lang.ts
|
|
5946
|
+
var Ns = ["aria-label"], Ps = ["src"], Fs = {
|
|
5947
|
+
key: 2,
|
|
5948
|
+
class: "pi pi-user",
|
|
5949
|
+
"aria-hidden": "true"
|
|
5950
|
+
}, Is = /* @__PURE__ */ x({
|
|
5951
|
+
__name: "WAvatar",
|
|
5952
|
+
props: {
|
|
5953
|
+
name: { default: null },
|
|
5954
|
+
src: { default: null },
|
|
5955
|
+
size: { default: "md" }
|
|
5956
|
+
},
|
|
5957
|
+
setup(e) {
|
|
5958
|
+
let t = e, n = f(() => js(t.name)), r = f(() => Ms(t.name)), i = f(() => !t.src && !n.value);
|
|
5959
|
+
return (t, a) => (P(), h("span", {
|
|
5960
|
+
class: A(["w-avatar", [`w-avatar--${e.size}`, i.value ? "w-avatar--empty" : `w-avatar--tone-${r.value}`]]),
|
|
5961
|
+
role: "img",
|
|
5962
|
+
"aria-label": e.name || "Sem pessoa"
|
|
5963
|
+
}, [e.src ? (P(), h("img", {
|
|
5964
|
+
key: 0,
|
|
5965
|
+
class: "w-avatar__img",
|
|
5966
|
+
src: e.src,
|
|
5967
|
+
alt: ""
|
|
5968
|
+
}, null, 8, Ps)) : n.value ? (P(), h(d, { key: 1 }, [y(B(n.value), 1)], 64)) : (P(), h("i", Fs))], 10, Ns));
|
|
5969
|
+
}
|
|
5970
|
+
}), Ls = { class: "w-check-list" }, Rs = {
|
|
5931
5971
|
key: 0,
|
|
5932
5972
|
class: "w-check-list__header"
|
|
5933
|
-
},
|
|
5973
|
+
}, zs = { class: "w-check-list__title" }, Bs = {
|
|
5934
5974
|
key: 0,
|
|
5935
5975
|
class: "w-check-list__count"
|
|
5936
|
-
},
|
|
5976
|
+
}, Vs = {
|
|
5937
5977
|
key: 1,
|
|
5938
5978
|
class: "w-check-list__items"
|
|
5939
|
-
},
|
|
5979
|
+
}, Hs = { class: "w-check-list__label" }, Us = {
|
|
5940
5980
|
key: 2,
|
|
5941
5981
|
class: "w-check-list__empty"
|
|
5942
|
-
},
|
|
5982
|
+
}, Ws = /* @__PURE__ */ x({
|
|
5943
5983
|
__name: "WCheckList",
|
|
5944
5984
|
props: {
|
|
5945
5985
|
title: {},
|
|
@@ -5959,43 +5999,98 @@ var co = { class: "w-meter__header" }, lo = { class: "w-meter__label" }, uo = {
|
|
|
5959
5999
|
function a(e) {
|
|
5960
6000
|
return i[e] ?? i.warn;
|
|
5961
6001
|
}
|
|
5962
|
-
return (t, n) => (P(), h("div",
|
|
6002
|
+
return (t, n) => (P(), h("div", Ls, [e.title || e.showCount ? (P(), h("div", Rs, [g("span", zs, B(e.title), 1), e.showCount ? (P(), h("span", Bs, B(r.value), 1)) : m("", !0)])) : m("", !0), e.items.length ? (P(), h("ul", Vs, [(P(!0), h(d, null, L(e.items, (e, t) => (P(), h("li", {
|
|
5963
6003
|
key: `${e.label}-${t}`,
|
|
5964
6004
|
class: "w-check-list__item"
|
|
5965
|
-
}, [g("i", { class: A([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span",
|
|
6005
|
+
}, [g("i", { class: A([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span", Hs, B(e.label), 1)]))), 128))])) : (P(), h("div", Us, [R(t.$slots, "empty", {}, () => [y(B(e.emptyMessage), 1)])]))]));
|
|
5966
6006
|
}
|
|
5967
|
-
}),
|
|
6007
|
+
}), Gs = ["aria-label", "aria-expanded"], Ks = {
|
|
6008
|
+
key: 1,
|
|
6009
|
+
class: "w-inline-cell__static"
|
|
6010
|
+
}, qs = "input, button, [href], select, textarea, [tabindex]:not([tabindex=\"-1\"])", Js = /* @__PURE__ */ x({
|
|
6011
|
+
__name: "WInlineCell",
|
|
6012
|
+
props: {
|
|
6013
|
+
label: {},
|
|
6014
|
+
valueText: { default: "" },
|
|
6015
|
+
editable: {
|
|
6016
|
+
type: Boolean,
|
|
6017
|
+
default: !0
|
|
6018
|
+
}
|
|
6019
|
+
},
|
|
6020
|
+
emits: ["open", "close"],
|
|
6021
|
+
setup(e, { expose: t, emit: n }) {
|
|
6022
|
+
let r = e, i = n, a = I(null), o = I(null), s = I(!1), c = I(null), l = f(() => r.valueText ? `${r.label}: ${r.valueText}` : r.label);
|
|
6023
|
+
function u(e) {
|
|
6024
|
+
r.editable && a.value?.toggle(e);
|
|
6025
|
+
}
|
|
6026
|
+
function d() {
|
|
6027
|
+
a.value?.hide();
|
|
6028
|
+
}
|
|
6029
|
+
async function _() {
|
|
6030
|
+
s.value = !0, i("open"), await k(), (c.value?.querySelector(`${qs}:not([disabled])`))?.focus();
|
|
6031
|
+
}
|
|
6032
|
+
function v() {
|
|
6033
|
+
s.value = !1, i("close");
|
|
6034
|
+
let e = document.activeElement;
|
|
6035
|
+
(!e || e === document.body || c.value?.contains(e)) && o.value?.focus();
|
|
6036
|
+
}
|
|
6037
|
+
return t({ close: d }), (t, n) => (P(), h("span", { class: A(["w-inline-cell", { "w-inline-cell--editable": e.editable }]) }, [e.editable ? (P(), h("button", {
|
|
6038
|
+
key: 0,
|
|
6039
|
+
ref_key: "trigger",
|
|
6040
|
+
ref: o,
|
|
6041
|
+
type: "button",
|
|
6042
|
+
class: "w-inline-cell__trigger",
|
|
6043
|
+
"aria-label": l.value,
|
|
6044
|
+
"aria-haspopup": "dialog",
|
|
6045
|
+
"aria-expanded": s.value,
|
|
6046
|
+
onClick: u
|
|
6047
|
+
}, [R(t.$slots, "default")], 8, Gs)) : (P(), h("span", Ks, [R(t.$slots, "default")])), e.editable ? (P(), p(H(ge), {
|
|
6048
|
+
key: 2,
|
|
6049
|
+
ref_key: "popover",
|
|
6050
|
+
ref: a,
|
|
6051
|
+
onShow: _,
|
|
6052
|
+
onHide: v
|
|
6053
|
+
}, {
|
|
6054
|
+
default: W(() => [g("div", {
|
|
6055
|
+
ref_key: "editor",
|
|
6056
|
+
ref: c,
|
|
6057
|
+
class: "w-inline-cell__editor"
|
|
6058
|
+
}, [R(t.$slots, "editor", { close: d })], 512)]),
|
|
6059
|
+
_: 3
|
|
6060
|
+
}, 512)) : m("", !0)], 2));
|
|
6061
|
+
}
|
|
6062
|
+
}), Ys = { class: "w-attention-list" }, Xs = {
|
|
5968
6063
|
key: 0,
|
|
5969
6064
|
class: "w-attention-list__header"
|
|
5970
|
-
},
|
|
6065
|
+
}, Zs = {
|
|
5971
6066
|
key: 0,
|
|
5972
6067
|
class: "w-attention-list__title"
|
|
5973
|
-
},
|
|
6068
|
+
}, Qs = {
|
|
5974
6069
|
key: 1,
|
|
5975
6070
|
class: "w-attention-list__subtitle"
|
|
5976
|
-
},
|
|
6071
|
+
}, $s = {
|
|
5977
6072
|
key: 1,
|
|
5978
6073
|
class: "w-attention-list__items"
|
|
5979
|
-
},
|
|
6074
|
+
}, ec = {
|
|
5980
6075
|
class: "w-attention-list__icon",
|
|
5981
6076
|
"aria-hidden": "true"
|
|
5982
|
-
},
|
|
6077
|
+
}, tc = { class: "w-attention-list__text" }, nc = { class: "w-attention-list__label" }, rc = {
|
|
5983
6078
|
key: 0,
|
|
5984
6079
|
class: "w-attention-list__hint"
|
|
5985
|
-
},
|
|
6080
|
+
}, ic = {
|
|
5986
6081
|
key: 0,
|
|
5987
6082
|
class: "w-attention-list__end"
|
|
5988
|
-
},
|
|
6083
|
+
}, ac = {
|
|
5989
6084
|
key: 0,
|
|
5990
6085
|
class: "w-attention-list__value"
|
|
5991
|
-
},
|
|
6086
|
+
}, oc = {
|
|
5992
6087
|
key: 1,
|
|
5993
6088
|
class: "pi pi-chevron-right w-attention-list__chevron",
|
|
5994
6089
|
"aria-hidden": "true"
|
|
5995
|
-
},
|
|
6090
|
+
}, sc = {
|
|
5996
6091
|
key: 2,
|
|
5997
6092
|
class: "w-attention-list__empty"
|
|
5998
|
-
},
|
|
6093
|
+
}, cc = /* @__PURE__ */ x({
|
|
5999
6094
|
__name: "WAttentionList",
|
|
6000
6095
|
props: {
|
|
6001
6096
|
title: {},
|
|
@@ -6025,69 +6120,69 @@ var co = { class: "w-meter__header" }, lo = { class: "w-meter__label" }, uo = {
|
|
|
6025
6120
|
})
|
|
6026
6121
|
} : {};
|
|
6027
6122
|
}
|
|
6028
|
-
return (t, n) => (P(), h("section",
|
|
6123
|
+
return (t, n) => (P(), h("section", Ys, [e.title || e.subtitle || t.$slots.actions ? (P(), h("header", Xs, [g("div", null, [e.title ? (P(), h("p", Zs, B(e.title), 1)) : m("", !0), e.subtitle ? (P(), h("p", Qs, B(e.subtitle), 1)) : m("", !0)]), R(t.$slots, "actions")])) : m("", !0), e.items.length ? (P(), h("ul", $s, [(P(!0), h(d, null, L(e.items, (e, t) => (P(), h("li", { key: `${e.key ?? ""}#${t}` }, [(P(), p(ae(a(e)), O({ ref_for: !0 }, o(e, t), { class: ["w-attention-list__item", [`w-attention-list__item--${e.severity ?? "neutral"}`, {
|
|
6029
6124
|
"w-attention-list__item--active": e.active,
|
|
6030
6125
|
"w-attention-list__item--interactive": a(e) !== "div"
|
|
6031
6126
|
}]] }), {
|
|
6032
6127
|
default: W(() => [
|
|
6033
|
-
g("span",
|
|
6034
|
-
g("span",
|
|
6035
|
-
e.value != null || a(e) !== "div" ? (P(), h("span",
|
|
6128
|
+
g("span", ec, [g("i", { class: A(e.icon) }, null, 2)]),
|
|
6129
|
+
g("span", tc, [g("span", nc, B(e.label), 1), e.hint ? (P(), h("span", rc, B(e.hint), 1)) : m("", !0)]),
|
|
6130
|
+
e.value != null || a(e) !== "div" ? (P(), h("span", ic, [e.value == null ? m("", !0) : (P(), h("span", ac, B(e.value), 1)), a(e) === "div" ? m("", !0) : (P(), h("i", oc))])) : m("", !0)
|
|
6036
6131
|
]),
|
|
6037
6132
|
_: 2
|
|
6038
|
-
}, 1040, ["class"]))]))), 128))])) : (P(), h("p",
|
|
6133
|
+
}, 1040, ["class"]))]))), 128))])) : (P(), h("p", sc, [R(t.$slots, "empty", {}, () => [y(B(e.emptyMessage), 1)])]))]));
|
|
6039
6134
|
}
|
|
6040
|
-
}),
|
|
6041
|
-
function
|
|
6135
|
+
}), lc = .85;
|
|
6136
|
+
function uc(e, t, n) {
|
|
6042
6137
|
return !e || e.largura <= 0 || e.altura <= 0 ? !1 : e.largura <= t && e.altura <= n;
|
|
6043
6138
|
}
|
|
6044
|
-
function
|
|
6139
|
+
function dc(e, t, n, r = lc) {
|
|
6045
6140
|
if (!t || t.largura <= 0 || t.altura <= 0 || e.largura <= 0 || e.altura <= 0) return "completo";
|
|
6046
6141
|
let i = e.largura * r, a = e.altura * r;
|
|
6047
|
-
return
|
|
6142
|
+
return uc(t, i, a) ? "completo" : uc(n, i, a) ? "curto" : "oculto";
|
|
6048
6143
|
}
|
|
6049
6144
|
//#endregion
|
|
6050
6145
|
//#region src/components/ui/WMapSelect.vue?vue&type=script&setup=true&lang.ts
|
|
6051
|
-
var
|
|
6146
|
+
var fc = { class: "w-map-select__body" }, pc = {
|
|
6052
6147
|
key: 0,
|
|
6053
6148
|
class: "w-map-select__fallback"
|
|
6054
|
-
},
|
|
6149
|
+
}, mc = {
|
|
6055
6150
|
key: 1,
|
|
6056
6151
|
class: "w-map-select__badge"
|
|
6057
|
-
},
|
|
6152
|
+
}, hc = { class: "w-map-select__detail-nome" }, gc = {
|
|
6058
6153
|
key: 0,
|
|
6059
6154
|
class: "w-map-select__detail-sub"
|
|
6060
|
-
},
|
|
6155
|
+
}, _c = {
|
|
6061
6156
|
key: 0,
|
|
6062
6157
|
class: "w-map-select__panel"
|
|
6063
|
-
},
|
|
6158
|
+
}, vc = [
|
|
6064
6159
|
"aria-expanded",
|
|
6065
6160
|
"aria-label",
|
|
6066
6161
|
"title"
|
|
6067
|
-
],
|
|
6162
|
+
], yc = {
|
|
6068
6163
|
key: 0,
|
|
6069
6164
|
class: "w-map-select__collapse-count"
|
|
6070
|
-
},
|
|
6165
|
+
}, bc = { class: "w-map-select__panel-head" }, xc = { class: "w-map-select__meta" }, Sc = { class: "w-map-select__count" }, Cc = ["disabled"], wc = { class: "w-map-select__list" }, Tc = [
|
|
6071
6166
|
"aria-pressed",
|
|
6072
6167
|
"disabled",
|
|
6073
6168
|
"onClick"
|
|
6074
|
-
],
|
|
6169
|
+
], Ec = { class: "w-map-select__box" }, Dc = {
|
|
6075
6170
|
key: 0,
|
|
6076
6171
|
class: "pi pi-check"
|
|
6077
|
-
},
|
|
6172
|
+
}, Oc = { class: "w-map-select__item-text" }, kc = { class: "w-map-select__item-name" }, Ac = {
|
|
6078
6173
|
key: 0,
|
|
6079
6174
|
class: "w-map-select__item-sub"
|
|
6080
|
-
},
|
|
6175
|
+
}, jc = {
|
|
6081
6176
|
key: 0,
|
|
6082
6177
|
class: "pi pi-exclamation-circle w-map-select__item-nogeo",
|
|
6083
6178
|
title: "Talhão sem contorno cadastrado"
|
|
6084
|
-
},
|
|
6179
|
+
}, Mc = {
|
|
6085
6180
|
key: 1,
|
|
6086
6181
|
class: "w-map-select__item-area"
|
|
6087
|
-
},
|
|
6182
|
+
}, Nc = {
|
|
6088
6183
|
key: 0,
|
|
6089
6184
|
class: "w-map-select__empty"
|
|
6090
|
-
},
|
|
6185
|
+
}, Pc = { class: "w-map-select__area" }, Fc = { class: "w-map-select__area-unit" }, Ic = "O mapa não pôde ser carregado. Selecione os talhões pela lista ao lado.", Lc = "O mapa não pôde ser carregado.", Rc = /* @__PURE__ */ x({
|
|
6091
6186
|
__name: "WMapSelect",
|
|
6092
6187
|
props: {
|
|
6093
6188
|
modelValue: { default: () => [] },
|
|
@@ -6115,7 +6210,7 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6115
6210
|
},
|
|
6116
6211
|
badgeLabel: { default: "Satélite" },
|
|
6117
6212
|
emptyMessage: { default: "Nenhum talhão encontrado" },
|
|
6118
|
-
mapErrorMessage: { default:
|
|
6213
|
+
mapErrorMessage: { default: Ic },
|
|
6119
6214
|
disabled: {
|
|
6120
6215
|
type: Boolean,
|
|
6121
6216
|
default: !1
|
|
@@ -6153,7 +6248,7 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6153
6248
|
type: Function,
|
|
6154
6249
|
default: void 0
|
|
6155
6250
|
},
|
|
6156
|
-
labelFitScale: { default:
|
|
6251
|
+
labelFitScale: { default: lc },
|
|
6157
6252
|
labelFullFromZoom: { default: 13 },
|
|
6158
6253
|
featureDetail: { default: "none" },
|
|
6159
6254
|
detailPlacement: { default: "cursor" }
|
|
@@ -6166,7 +6261,7 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6166
6261
|
"update:collapsed"
|
|
6167
6262
|
],
|
|
6168
6263
|
setup(e, { expose: t, emit: r }) {
|
|
6169
|
-
let i = e, a = r, o = le(), { formatNumber: s } = n(), c = f(() => i.layout === "sobreposto"), l = f(() => !i.readonly && (!!o.footer || i.areaLabel !== "")), u = f(() => i.readonly && i.mapErrorMessage ===
|
|
6264
|
+
let i = e, a = r, o = le(), { formatNumber: s } = n(), c = f(() => i.layout === "sobreposto"), l = f(() => !i.readonly && (!!o.footer || i.areaLabel !== "")), u = f(() => i.readonly && i.mapErrorMessage === Ic ? Lc : i.mapErrorMessage), p = I(!1), _ = f(() => i.collapsed != null), v = f(() => _.value ? !!i.collapsed : p.value);
|
|
6170
6265
|
function x(e) {
|
|
6171
6266
|
v.value !== e && (_.value || (p.value = e), a("update:collapsed", e));
|
|
6172
6267
|
}
|
|
@@ -6348,7 +6443,7 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6348
6443
|
if (!r || !a) return;
|
|
6349
6444
|
let o = Ae(a);
|
|
6350
6445
|
if (!o) return;
|
|
6351
|
-
let s = je(a), c = t ? "completo" :
|
|
6446
|
+
let s = je(a), c = t ? "completo" : dc(Z(n), ze(o), s && s !== o ? ze(s) : null, i.labelFitScale);
|
|
6352
6447
|
c !== "oculto" && r.setContent(c === "curto" ? s : o), r.getElement()?.classList.toggle("w-map-select__tip--fora", c === "oculto");
|
|
6353
6448
|
});
|
|
6354
6449
|
}
|
|
@@ -6478,7 +6573,7 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6478
6573
|
"w-map-select--overlay": c.value,
|
|
6479
6574
|
"w-map-select--collapsed": c.value && v.value && !e.readonly
|
|
6480
6575
|
}])
|
|
6481
|
-
}, [g("div",
|
|
6576
|
+
}, [g("div", fc, [g("div", {
|
|
6482
6577
|
class: "w-map-select__map",
|
|
6483
6578
|
style: M({ "--w-map-h": e.height })
|
|
6484
6579
|
}, [
|
|
@@ -6487,7 +6582,7 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6487
6582
|
ref: V,
|
|
6488
6583
|
class: "w-map-select__canvas"
|
|
6489
6584
|
}, null, 512),
|
|
6490
|
-
ue.value ? (P(), h("div",
|
|
6585
|
+
ue.value ? (P(), h("div", pc, [n[1] ||= g("i", { class: "pi pi-map" }, null, -1), g("span", null, B(u.value), 1)])) : e.badgeLabel ? (P(), h("span", mc, [n[2] ||= g("i", { class: "pi pi-globe" }, null, -1), y(B(e.badgeLabel), 1)])) : m("", !0),
|
|
6491
6586
|
X.value && e.featureDetail !== "none" ? (P(), h("div", {
|
|
6492
6587
|
key: 2,
|
|
6493
6588
|
class: A(["w-map-select__detail", {
|
|
@@ -6501,8 +6596,8 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6501
6596
|
feature: X.value,
|
|
6502
6597
|
selected: E(X.value.id),
|
|
6503
6598
|
close: Te
|
|
6504
|
-
}, () => [g("span",
|
|
6505
|
-
], 4), e.readonly ? m("", !0) : (P(), h("div",
|
|
6599
|
+
}, () => [g("span", hc, B(X.value.nome), 1), X.value.subtitulo ? (P(), h("span", gc, B(X.value.subtitulo), 1)) : m("", !0)])], 6)) : m("", !0)
|
|
6600
|
+
], 4), e.readonly ? m("", !0) : (P(), h("div", _c, [
|
|
6506
6601
|
c.value ? (P(), h("button", {
|
|
6507
6602
|
key: 0,
|
|
6508
6603
|
type: "button",
|
|
@@ -6511,8 +6606,8 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6511
6606
|
"aria-label": C.value,
|
|
6512
6607
|
title: C.value,
|
|
6513
6608
|
onClick: S
|
|
6514
|
-
}, [g("i", { class: A(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (P(), h("span",
|
|
6515
|
-
g("div",
|
|
6609
|
+
}, [g("i", { class: A(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (P(), h("span", yc, B(e.modelValue.length), 1)) : m("", !0)], 8, vc)) : m("", !0),
|
|
6610
|
+
g("div", bc, [b(H(ve), null, {
|
|
6516
6611
|
default: W(() => [b(H(ye), { class: "pi pi-search" }), b(H(Y), {
|
|
6517
6612
|
modelValue: ne.value,
|
|
6518
6613
|
"onUpdate:modelValue": n[0] ||= (e) => ne.value = e,
|
|
@@ -6526,13 +6621,13 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6526
6621
|
"aria-label"
|
|
6527
6622
|
])]),
|
|
6528
6623
|
_: 1
|
|
6529
|
-
}), g("div",
|
|
6624
|
+
}), g("div", xc, [g("span", Sc, B(F.value), 1), g("button", {
|
|
6530
6625
|
type: "button",
|
|
6531
6626
|
class: "w-map-select__clear",
|
|
6532
6627
|
disabled: e.disabled || !e.modelValue.length,
|
|
6533
6628
|
onClick: O
|
|
6534
|
-
}, B(e.clearLabel), 9,
|
|
6535
|
-
g("ul",
|
|
6629
|
+
}, B(e.clearLabel), 9, Cc)])]),
|
|
6630
|
+
g("ul", wc, [(P(!0), h(d, null, L(ae.value, (n) => (P(), h("li", { key: n.id }, [R(t.$slots, "item", {
|
|
6536
6631
|
feature: n,
|
|
6537
6632
|
selected: E(n.id)
|
|
6538
6633
|
}, () => [g("button", {
|
|
@@ -6542,11 +6637,11 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6542
6637
|
disabled: e.disabled,
|
|
6543
6638
|
onClick: (e) => D(n.id)
|
|
6544
6639
|
}, [
|
|
6545
|
-
g("span",
|
|
6546
|
-
g("span",
|
|
6547
|
-
n.geometria ? m("", !0) : (P(), h("i",
|
|
6548
|
-
n.area == null ? m("", !0) : (P(), h("span",
|
|
6549
|
-
], 10,
|
|
6640
|
+
g("span", Ec, [E(n.id) ? (P(), h("i", Dc)) : m("", !0)]),
|
|
6641
|
+
g("span", Oc, [g("span", kc, B(n.nome), 1), n.subtitulo ? (P(), h("span", Ac, B(n.subtitulo), 1)) : m("", !0)]),
|
|
6642
|
+
n.geometria ? m("", !0) : (P(), h("i", jc)),
|
|
6643
|
+
n.area == null ? m("", !0) : (P(), h("span", Mc, B(z(n)), 1))
|
|
6644
|
+
], 10, Tc)])]))), 128)), ae.value.length ? m("", !0) : (P(), h("li", Nc, [R(t.$slots, "empty", {}, () => [y(B(e.emptyMessage), 1)])]))])
|
|
6550
6645
|
]))]), l.value ? (P(), h("div", {
|
|
6551
6646
|
key: 0,
|
|
6552
6647
|
ref_key: "footer",
|
|
@@ -6555,13 +6650,13 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6555
6650
|
}, [R(t.$slots, "footer", {
|
|
6556
6651
|
area: N.value,
|
|
6557
6652
|
features: j.value
|
|
6558
|
-
}, () => [g("span",
|
|
6653
|
+
}, () => [g("span", Pc, [
|
|
6559
6654
|
y(B(e.areaLabel) + " ", 1),
|
|
6560
6655
|
g("strong", null, B(oe.value), 1),
|
|
6561
|
-
g("span",
|
|
6656
|
+
g("span", Fc, B(e.areaSuffix), 1)
|
|
6562
6657
|
])])], 512)) : m("", !0)], 2));
|
|
6563
6658
|
}
|
|
6564
|
-
}),
|
|
6659
|
+
}), zc = {
|
|
6565
6660
|
nota: {
|
|
6566
6661
|
tone: "nota",
|
|
6567
6662
|
label: "Nota",
|
|
@@ -6607,7 +6702,7 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6607
6702
|
label: "Em aberto",
|
|
6608
6703
|
icon: "pi pi-question-circle"
|
|
6609
6704
|
}
|
|
6610
|
-
},
|
|
6705
|
+
}, Bc = {
|
|
6611
6706
|
note: "nota",
|
|
6612
6707
|
info: "nota",
|
|
6613
6708
|
observacao: "nota",
|
|
@@ -6634,19 +6729,19 @@ var nc = { class: "w-map-select__body" }, rc = {
|
|
|
6634
6729
|
help: "pergunta",
|
|
6635
6730
|
duvida: "pergunta"
|
|
6636
6731
|
};
|
|
6637
|
-
function
|
|
6732
|
+
function Vc(e) {
|
|
6638
6733
|
return e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
6639
6734
|
}
|
|
6640
|
-
function
|
|
6641
|
-
let t =
|
|
6642
|
-
return
|
|
6735
|
+
function Hc(e) {
|
|
6736
|
+
let t = Vc(e);
|
|
6737
|
+
return zc[t] ?? zc[Bc[t]] ?? null;
|
|
6643
6738
|
}
|
|
6644
|
-
var
|
|
6645
|
-
function
|
|
6739
|
+
var Uc = new ze().utils.escapeHtml;
|
|
6740
|
+
function Wc(e, t) {
|
|
6646
6741
|
let n = t?.trim() || e.label;
|
|
6647
|
-
return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${
|
|
6742
|
+
return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${Uc(n)}</p><div class="md-alert__body">`;
|
|
6648
6743
|
}
|
|
6649
|
-
var
|
|
6744
|
+
var Gc = "</div></div>", Kc = {
|
|
6650
6745
|
bash: () => import("highlight.js/lib/languages/bash"),
|
|
6651
6746
|
python: () => import("highlight.js/lib/languages/python"),
|
|
6652
6747
|
javascript: () => import("highlight.js/lib/languages/javascript"),
|
|
@@ -6660,7 +6755,7 @@ var Fc = "</div></div>", Ic = {
|
|
|
6660
6755
|
ini: () => import("highlight.js/lib/languages/ini"),
|
|
6661
6756
|
markdown: () => import("highlight.js/lib/languages/markdown"),
|
|
6662
6757
|
dockerfile: () => import("highlight.js/lib/languages/dockerfile")
|
|
6663
|
-
},
|
|
6758
|
+
}, qc = {
|
|
6664
6759
|
sh: "bash",
|
|
6665
6760
|
shell: "bash",
|
|
6666
6761
|
zsh: "bash",
|
|
@@ -6688,28 +6783,28 @@ var Fc = "</div></div>", Ic = {
|
|
|
6688
6783
|
postgres: "sql",
|
|
6689
6784
|
postgresql: "sql",
|
|
6690
6785
|
docker: "dockerfile"
|
|
6691
|
-
},
|
|
6692
|
-
function
|
|
6693
|
-
return
|
|
6786
|
+
}, Jc = null, Yc = null;
|
|
6787
|
+
function Xc() {
|
|
6788
|
+
return Jc !== null;
|
|
6694
6789
|
}
|
|
6695
|
-
async function
|
|
6696
|
-
if (
|
|
6697
|
-
|
|
6790
|
+
async function Zc() {
|
|
6791
|
+
if (Jc || Yc) return Yc ?? void 0;
|
|
6792
|
+
Yc = (async () => {
|
|
6698
6793
|
let e = (await import("highlight.js/lib/core")).default;
|
|
6699
|
-
await Promise.all(Object.entries(
|
|
6794
|
+
await Promise.all(Object.entries(Kc).map(async ([t, n]) => {
|
|
6700
6795
|
let r = await n();
|
|
6701
6796
|
e.registerLanguage(t, r.default);
|
|
6702
|
-
})),
|
|
6703
|
-
})(), await
|
|
6797
|
+
})), Jc = (t, n) => e.highlight(t, { language: n }).value;
|
|
6798
|
+
})(), await Yc;
|
|
6704
6799
|
}
|
|
6705
|
-
function
|
|
6706
|
-
let t =
|
|
6707
|
-
return
|
|
6800
|
+
function Qc(e) {
|
|
6801
|
+
let t = Vc(e);
|
|
6802
|
+
return qc[t] ?? t;
|
|
6708
6803
|
}
|
|
6709
|
-
function
|
|
6710
|
-
return
|
|
6804
|
+
function $c(e) {
|
|
6805
|
+
return Vc(e).replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-") || "secao";
|
|
6711
6806
|
}
|
|
6712
|
-
var
|
|
6807
|
+
var el = /* @__PURE__ */ new Set([
|
|
6713
6808
|
"detalhes",
|
|
6714
6809
|
"details",
|
|
6715
6810
|
"passos",
|
|
@@ -6720,8 +6815,8 @@ var Wc = /* @__PURE__ */ new Set([
|
|
|
6720
6815
|
"tabs",
|
|
6721
6816
|
"aba",
|
|
6722
6817
|
"tab"
|
|
6723
|
-
]),
|
|
6724
|
-
function
|
|
6818
|
+
]), tl = /^\s*([^\s]+)\s*(.*)$/;
|
|
6819
|
+
function nl() {
|
|
6725
6820
|
let e = new ze({
|
|
6726
6821
|
html: !1,
|
|
6727
6822
|
linkify: !0,
|
|
@@ -6733,16 +6828,16 @@ function Kc() {
|
|
|
6733
6828
|
3,
|
|
6734
6829
|
4
|
|
6735
6830
|
],
|
|
6736
|
-
slugify:
|
|
6831
|
+
slugify: $c,
|
|
6737
6832
|
permalink: Be.permalink.linkInsideHeader({
|
|
6738
6833
|
symbol: "",
|
|
6739
6834
|
class: "md-anchor",
|
|
6740
6835
|
placement: "after",
|
|
6741
6836
|
ariaHidden: !0
|
|
6742
6837
|
})
|
|
6743
|
-
}),
|
|
6838
|
+
}), rl(e), al(e), ol(e), sl(e), cl(e), ll(e), ul(e), e;
|
|
6744
6839
|
}
|
|
6745
|
-
function
|
|
6840
|
+
function rl(e) {
|
|
6746
6841
|
e.core.ruler.after("block", "lz_alerta", (e) => {
|
|
6747
6842
|
let t = e.tokens;
|
|
6748
6843
|
for (let e = 0; e < t.length; e += 1) {
|
|
@@ -6752,9 +6847,9 @@ function qc(e) {
|
|
|
6752
6847
|
if (r?.type !== "paragraph_open" || i?.type !== "inline") continue;
|
|
6753
6848
|
let a = /^\[!([^\]\n]+)\][ \t]*([^\n]*)\n?/.exec(i.content);
|
|
6754
6849
|
if (!a) continue;
|
|
6755
|
-
let o =
|
|
6850
|
+
let o = Hc(a[1]);
|
|
6756
6851
|
if (!o) continue;
|
|
6757
|
-
let s =
|
|
6852
|
+
let s = il(t, e);
|
|
6758
6853
|
s && (i.content = i.content.slice(a[0].length), n.type = "lz_alerta_open", n.tag = "div", n.meta = {
|
|
6759
6854
|
spec: o,
|
|
6760
6855
|
titulo: a[2]
|
|
@@ -6763,10 +6858,10 @@ function qc(e) {
|
|
|
6763
6858
|
return !0;
|
|
6764
6859
|
}), e.renderer.rules.lz_alerta_open = (e, t) => {
|
|
6765
6860
|
let n = e[t].meta;
|
|
6766
|
-
return
|
|
6767
|
-
}, e.renderer.rules.lz_alerta_close = () =>
|
|
6861
|
+
return Wc(n.spec, n.titulo);
|
|
6862
|
+
}, e.renderer.rules.lz_alerta_close = () => Gc;
|
|
6768
6863
|
}
|
|
6769
|
-
function
|
|
6864
|
+
function il(e, t) {
|
|
6770
6865
|
let n = 0;
|
|
6771
6866
|
for (let r = t; r < e.length; r += 1) {
|
|
6772
6867
|
let t = e[r];
|
|
@@ -6775,37 +6870,37 @@ function Jc(e, t) {
|
|
|
6775
6870
|
}
|
|
6776
6871
|
return null;
|
|
6777
6872
|
}
|
|
6778
|
-
function
|
|
6873
|
+
function al(e) {
|
|
6779
6874
|
let t = [];
|
|
6780
6875
|
e.use(Q, "lz", {
|
|
6781
6876
|
validate: (e) => {
|
|
6782
|
-
let t =
|
|
6877
|
+
let t = tl.exec(e);
|
|
6783
6878
|
if (!t) return !1;
|
|
6784
|
-
let n =
|
|
6785
|
-
return
|
|
6879
|
+
let n = Vc(t[1]);
|
|
6880
|
+
return el.has(n) || Hc(n) !== null;
|
|
6786
6881
|
},
|
|
6787
6882
|
render: (e, n) => {
|
|
6788
6883
|
let r = e[n];
|
|
6789
6884
|
if (r.nesting !== 1) {
|
|
6790
6885
|
let e = t.pop();
|
|
6791
|
-
return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${
|
|
6886
|
+
return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${Gc}\n` : "</div>\n";
|
|
6792
6887
|
}
|
|
6793
|
-
let i =
|
|
6888
|
+
let i = tl.exec(r.info) ?? [
|
|
6794
6889
|
"",
|
|
6795
6890
|
"",
|
|
6796
6891
|
""
|
|
6797
|
-
], a =
|
|
6798
|
-
if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${
|
|
6892
|
+
], a = Vc(i[1]), o = i[2]?.trim();
|
|
6893
|
+
if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${Uc(o || "Detalhes")}</summary><div class="md-details__body">`;
|
|
6799
6894
|
if (a === "passos" || a === "steps") return t.push("bloco"), "<div class=\"md-steps\">";
|
|
6800
6895
|
if (a === "cards" || a === "grade") return t.push("bloco"), "<div class=\"md-cards\">";
|
|
6801
6896
|
if (a === "abas" || a === "tabs") return t.push("bloco"), "<div class=\"md-tabs\" data-md-tabs>";
|
|
6802
|
-
if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${
|
|
6803
|
-
let s =
|
|
6804
|
-
return s ? (t.push("alerta"),
|
|
6897
|
+
if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${Uc(o || "Aba")}">`;
|
|
6898
|
+
let s = Hc(a);
|
|
6899
|
+
return s ? (t.push("alerta"), Wc(s, o)) : (t.push("bloco"), "<div>");
|
|
6805
6900
|
}
|
|
6806
6901
|
});
|
|
6807
6902
|
}
|
|
6808
|
-
function
|
|
6903
|
+
function ol(e) {
|
|
6809
6904
|
e.core.ruler.after("inline", "lz_tarefas", (e) => {
|
|
6810
6905
|
let t = e.tokens;
|
|
6811
6906
|
for (let n = 2; n < t.length; n += 1) {
|
|
@@ -6822,26 +6917,26 @@ function Xc(e) {
|
|
|
6822
6917
|
return !0;
|
|
6823
6918
|
});
|
|
6824
6919
|
}
|
|
6825
|
-
function
|
|
6920
|
+
function sl(e) {
|
|
6826
6921
|
e.renderer.rules.fence = (e, t) => {
|
|
6827
|
-
let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a =
|
|
6828
|
-
if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${
|
|
6829
|
-
let s =
|
|
6830
|
-
return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${
|
|
6922
|
+
let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a = Qc(i), o = /title="([^"]*)"/.exec(r)?.[1];
|
|
6923
|
+
if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${Uc(n.content)}</pre>` + (o ? `<figcaption>${Uc(o)}</figcaption>` : "") + "</figure>\n";
|
|
6924
|
+
let s = Jc && Kc[a] ? Jc(n.content, a) : Uc(n.content);
|
|
6925
|
+
return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${Uc(o ?? "")}</span><span class="md-code__lang">${Uc(i)}</span></div>` : ""}<pre class="md-code__pre"><code class="hljs language-${Uc(a)}">${s}</code></pre></div>\n`;
|
|
6831
6926
|
};
|
|
6832
6927
|
}
|
|
6833
|
-
function
|
|
6928
|
+
function cl(e) {
|
|
6834
6929
|
let t = e.renderer.rules.table_open;
|
|
6835
6930
|
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>`;
|
|
6836
6931
|
}
|
|
6837
|
-
function
|
|
6932
|
+
function ll(e) {
|
|
6838
6933
|
let t = e.renderer.rules.link_open;
|
|
6839
6934
|
e.renderer.rules.link_open = (e, n, r, i, a) => {
|
|
6840
6935
|
let o = String(e[n].attrGet("href") ?? "");
|
|
6841
6936
|
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);
|
|
6842
6937
|
};
|
|
6843
6938
|
}
|
|
6844
|
-
function
|
|
6939
|
+
function ul(e) {
|
|
6845
6940
|
e.core.ruler.after("inline", "lz_figuras", (e) => {
|
|
6846
6941
|
let t = e.tokens;
|
|
6847
6942
|
for (let e = 1; e < t.length - 1; e += 1) {
|
|
@@ -6857,17 +6952,17 @@ function el(e) {
|
|
|
6857
6952
|
let o = t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
|
|
6858
6953
|
if (!e[n].meta?.figura) return o;
|
|
6859
6954
|
let s = e[n].content?.trim();
|
|
6860
|
-
return s ? `${o}<figcaption>${
|
|
6955
|
+
return s ? `${o}<figcaption>${Uc(s)}</figcaption>` : o;
|
|
6861
6956
|
};
|
|
6862
6957
|
}
|
|
6863
|
-
var
|
|
6864
|
-
function
|
|
6865
|
-
return
|
|
6958
|
+
var dl = null;
|
|
6959
|
+
function fl() {
|
|
6960
|
+
return dl ||= nl(), dl;
|
|
6866
6961
|
}
|
|
6867
|
-
function
|
|
6962
|
+
function pl(e) {
|
|
6868
6963
|
return (e.children ?? []).filter((e) => e.type === "text" || e.type === "code_inline").map((e) => e.content).join("").trim();
|
|
6869
6964
|
}
|
|
6870
|
-
function
|
|
6965
|
+
function ml(e) {
|
|
6871
6966
|
let t = [];
|
|
6872
6967
|
for (let n = 0; n < e.length; n += 1) {
|
|
6873
6968
|
let r = e[n];
|
|
@@ -6877,13 +6972,13 @@ function il(e) {
|
|
|
6877
6972
|
let a = String(r.attrGet("id") ?? ""), o = e[n + 1];
|
|
6878
6973
|
!a || o?.type !== "inline" || t.push({
|
|
6879
6974
|
id: a,
|
|
6880
|
-
text:
|
|
6975
|
+
text: pl(o),
|
|
6881
6976
|
level: i
|
|
6882
6977
|
});
|
|
6883
6978
|
}
|
|
6884
6979
|
return t;
|
|
6885
6980
|
}
|
|
6886
|
-
function
|
|
6981
|
+
function hl(e) {
|
|
6887
6982
|
return Z.sanitize(e, { ADD_ATTR: [
|
|
6888
6983
|
"target",
|
|
6889
6984
|
"open",
|
|
@@ -6891,16 +6986,16 @@ function al(e) {
|
|
|
6891
6986
|
"disabled"
|
|
6892
6987
|
] });
|
|
6893
6988
|
}
|
|
6894
|
-
function
|
|
6895
|
-
let t =
|
|
6989
|
+
function gl(e) {
|
|
6990
|
+
let t = fl(), n = {}, r = t.parse(e ?? "", n);
|
|
6896
6991
|
return {
|
|
6897
|
-
html:
|
|
6898
|
-
headings:
|
|
6992
|
+
html: hl(t.renderer.render(r, t.options, n)),
|
|
6993
|
+
headings: ml(r)
|
|
6899
6994
|
};
|
|
6900
6995
|
}
|
|
6901
6996
|
//#endregion
|
|
6902
6997
|
//#region src/utils/markdownEnhance.ts
|
|
6903
|
-
function
|
|
6998
|
+
function _l(e) {
|
|
6904
6999
|
e.querySelectorAll("[data-md-code]").forEach((e) => {
|
|
6905
7000
|
if (e.dataset.mdPronto) return;
|
|
6906
7001
|
e.dataset.mdPronto = "1";
|
|
@@ -6915,7 +7010,7 @@ function sl(e) {
|
|
|
6915
7010
|
}), e.appendChild(t);
|
|
6916
7011
|
});
|
|
6917
7012
|
}
|
|
6918
|
-
function
|
|
7013
|
+
function vl(e) {
|
|
6919
7014
|
let t = Array.from(e.querySelectorAll(".md-tabs__panel")).filter((e) => !e.parentElement?.hasAttribute("data-md-tabs")), n = /* @__PURE__ */ new Set();
|
|
6920
7015
|
t.forEach((e) => {
|
|
6921
7016
|
if (n.has(e)) return;
|
|
@@ -6926,8 +7021,8 @@ function cl(e) {
|
|
|
6926
7021
|
i.className = "md-tabs", i.setAttribute("data-md-tabs", ""), e.before(i), t.forEach((e) => i.appendChild(e));
|
|
6927
7022
|
});
|
|
6928
7023
|
}
|
|
6929
|
-
function
|
|
6930
|
-
|
|
7024
|
+
function yl(e) {
|
|
7025
|
+
vl(e), e.querySelectorAll("[data-md-tabs]").forEach((e, t) => {
|
|
6931
7026
|
if (e.dataset.mdPronto) return;
|
|
6932
7027
|
let n = Array.from(e.querySelectorAll(":scope > .md-tabs__panel"));
|
|
6933
7028
|
if (!n.length) return;
|
|
@@ -6949,11 +7044,11 @@ function ll(e) {
|
|
|
6949
7044
|
e.prepend(r), a(0);
|
|
6950
7045
|
});
|
|
6951
7046
|
}
|
|
6952
|
-
var
|
|
6953
|
-
async function
|
|
6954
|
-
return
|
|
7047
|
+
var bl = null, xl = 0;
|
|
7048
|
+
async function Sl() {
|
|
7049
|
+
return bl ||= import("mermaid").then((e) => e.default), bl;
|
|
6955
7050
|
}
|
|
6956
|
-
var
|
|
7051
|
+
var Cl = /* @__PURE__ */ new Set([
|
|
6957
7052
|
"script",
|
|
6958
7053
|
"iframe",
|
|
6959
7054
|
"object",
|
|
@@ -6969,72 +7064,72 @@ var pl = /* @__PURE__ */ new Set([
|
|
|
6969
7064
|
"animate",
|
|
6970
7065
|
"set"
|
|
6971
7066
|
]);
|
|
6972
|
-
function
|
|
7067
|
+
function wl(e) {
|
|
6973
7068
|
for (let t of Array.from(e.attributes)) {
|
|
6974
7069
|
let n = t.name.toLowerCase(), r = t.value.trim().toLowerCase(), i = n === "href" || n === "xlink:href" || n === "src";
|
|
6975
7070
|
(n.startsWith("on") || i && /^(javascript|data|vbscript):/.test(r)) && e.removeAttribute(t.name);
|
|
6976
7071
|
}
|
|
6977
|
-
for (let t of Array.from(e.children))
|
|
7072
|
+
for (let t of Array.from(e.children)) Cl.has(t.localName.toLowerCase()) ? t.remove() : wl(t);
|
|
6978
7073
|
}
|
|
6979
|
-
function
|
|
7074
|
+
function Tl(e) {
|
|
6980
7075
|
let t = new DOMParser().parseFromString(e, "image/svg+xml");
|
|
6981
7076
|
if (t.querySelector("parsererror")) return null;
|
|
6982
7077
|
let n = t.documentElement;
|
|
6983
|
-
return n.localName.toLowerCase() === "svg" ? (
|
|
7078
|
+
return n.localName.toLowerCase() === "svg" ? (wl(n), n) : null;
|
|
6984
7079
|
}
|
|
6985
|
-
function
|
|
7080
|
+
function El(e, t, n) {
|
|
6986
7081
|
return e.getPropertyValue(t).trim() || n;
|
|
6987
7082
|
}
|
|
6988
|
-
function
|
|
6989
|
-
let r =
|
|
7083
|
+
function Dl(e, t, n) {
|
|
7084
|
+
let r = El(e, t, n), i = document.createElement("span");
|
|
6990
7085
|
i.style.display = "none", i.style.color = r, document.documentElement.appendChild(i);
|
|
6991
7086
|
let a = getComputedStyle(i).color.trim();
|
|
6992
|
-
return i.remove(),
|
|
7087
|
+
return i.remove(), Ol(a) ?? r;
|
|
6993
7088
|
}
|
|
6994
|
-
function
|
|
7089
|
+
function Ol(e) {
|
|
6995
7090
|
if (!e) return null;
|
|
6996
7091
|
let t = /^color\(srgb\s+(-?[\d.]+)\s+(-?[\d.]+)\s+(-?[\d.]+)(?:\s*\/\s*([\d.%]+))?\)$/.exec(e);
|
|
6997
7092
|
if (!t) return e;
|
|
6998
7093
|
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)}`;
|
|
6999
7094
|
return o === void 0 ? `rgb(${s})` : `rgba(${s}, ${o.endsWith("%") ? Number(o.slice(0, -1)) / 100 : Number(o)})`;
|
|
7000
7095
|
}
|
|
7001
|
-
function
|
|
7002
|
-
let t = getComputedStyle(document.documentElement), n =
|
|
7096
|
+
function kl(e) {
|
|
7097
|
+
let t = getComputedStyle(document.documentElement), n = Dl(t, "--surface", "#ffffff"), r = Dl(t, "--fg", "#141a22"), i = Dl(t, "--primary", "#1f5092"), a = Dl(t, "--primary-soft", "#eef4fb"), o = Dl(t, "--border-strong", "#cdd6e2");
|
|
7003
7098
|
e.initialize({
|
|
7004
7099
|
startOnLoad: !1,
|
|
7005
7100
|
securityLevel: "strict",
|
|
7006
7101
|
theme: "base",
|
|
7007
|
-
fontFamily:
|
|
7102
|
+
fontFamily: El(t, "--font-sans", "inherit"),
|
|
7008
7103
|
flowchart: { useMaxWidth: !0 },
|
|
7009
7104
|
themeVariables: {
|
|
7010
7105
|
background: n,
|
|
7011
7106
|
primaryColor: a,
|
|
7012
7107
|
primaryTextColor: r,
|
|
7013
7108
|
primaryBorderColor: i,
|
|
7014
|
-
secondaryColor:
|
|
7015
|
-
tertiaryColor:
|
|
7109
|
+
secondaryColor: Dl(t, "--surface-3", "#eef2f7"),
|
|
7110
|
+
tertiaryColor: Dl(t, "--surface-2", "#f8fafc"),
|
|
7016
7111
|
lineColor: o,
|
|
7017
7112
|
textColor: r,
|
|
7018
7113
|
mainBkg: a,
|
|
7019
7114
|
nodeBorder: i,
|
|
7020
|
-
clusterBkg:
|
|
7115
|
+
clusterBkg: Dl(t, "--surface-2", "#f8fafc"),
|
|
7021
7116
|
clusterBorder: o,
|
|
7022
7117
|
fontSize: "13px"
|
|
7023
7118
|
}
|
|
7024
7119
|
});
|
|
7025
7120
|
}
|
|
7026
|
-
async function
|
|
7121
|
+
async function Al(e, t = !1) {
|
|
7027
7122
|
let n = Array.from(e.querySelectorAll("[data-md-mermaid]")).filter((e) => t || !e.dataset.mdEstado);
|
|
7028
7123
|
if (!n.length) return;
|
|
7029
|
-
let r = await
|
|
7030
|
-
|
|
7124
|
+
let r = await Sl();
|
|
7125
|
+
kl(r);
|
|
7031
7126
|
for (let e of n) {
|
|
7032
7127
|
let t = e.querySelector(".md-mermaid__fonte")?.textContent ?? "";
|
|
7033
7128
|
if (t.trim()) {
|
|
7034
7129
|
e.querySelector(".md-mermaid__svg")?.remove();
|
|
7035
7130
|
try {
|
|
7036
|
-
|
|
7037
|
-
let { svg: n } = await r.render(`md-diagrama-${
|
|
7131
|
+
xl += 1;
|
|
7132
|
+
let { svg: n } = await r.render(`md-diagrama-${xl}`, t), i = Tl(n);
|
|
7038
7133
|
if (!i) {
|
|
7039
7134
|
e.dataset.mdEstado = "erro";
|
|
7040
7135
|
continue;
|
|
@@ -7047,15 +7142,15 @@ async function bl(e, t = !1) {
|
|
|
7047
7142
|
}
|
|
7048
7143
|
}
|
|
7049
7144
|
}
|
|
7050
|
-
async function
|
|
7051
|
-
e && (
|
|
7145
|
+
async function jl(e) {
|
|
7146
|
+
e && (_l(e), yl(e), await Al(e));
|
|
7052
7147
|
}
|
|
7053
7148
|
//#endregion
|
|
7054
7149
|
//#region src/components/ui/WMarkdownView.vue?vue&type=script&setup=true&lang.ts
|
|
7055
|
-
var
|
|
7150
|
+
var Ml = {
|
|
7056
7151
|
key: 0,
|
|
7057
7152
|
class: "w-markdown-view w-markdown-view--empty"
|
|
7058
|
-
},
|
|
7153
|
+
}, Nl = ["innerHTML"], Pl = /* @__PURE__ */ x({
|
|
7059
7154
|
__name: "WMarkdownView",
|
|
7060
7155
|
props: {
|
|
7061
7156
|
source: {},
|
|
@@ -7063,42 +7158,42 @@ var Sl = {
|
|
|
7063
7158
|
},
|
|
7064
7159
|
emits: ["headings"],
|
|
7065
7160
|
setup(e, { emit: t }) {
|
|
7066
|
-
let n = e, r = t, i = I(null), a = I(
|
|
7067
|
-
U(o, (e) => r("headings", e.headings), { immediate: !0 }), U(s, () => void k(() =>
|
|
7161
|
+
let n = e, r = t, i = I(null), a = I(Xc()), o = f(() => (a.value, gl(n.source ?? ""))), s = f(() => o.value.html), c = f(() => !n.source || !n.source.trim());
|
|
7162
|
+
U(o, (e) => r("headings", e.headings), { immediate: !0 }), U(s, () => void k(() => jl(i.value)));
|
|
7068
7163
|
let l = null;
|
|
7069
7164
|
function u() {
|
|
7070
|
-
typeof MutationObserver > "u" || (l = new MutationObserver(() => void
|
|
7165
|
+
typeof MutationObserver > "u" || (l = new MutationObserver(() => void Al(i.value, !0)), l.observe(document.documentElement, {
|
|
7071
7166
|
attributes: !0,
|
|
7072
7167
|
attributeFilter: ["class"]
|
|
7073
7168
|
}));
|
|
7074
7169
|
}
|
|
7075
7170
|
return te(async () => {
|
|
7076
|
-
await k(), await
|
|
7077
|
-
}), ee(() => l?.disconnect()), (t, n) => c.value ? (P(), h("div",
|
|
7171
|
+
await k(), await jl(i.value), u(), a.value ||= (await Zc(), !0);
|
|
7172
|
+
}), ee(() => l?.disconnect()), (t, n) => c.value ? (P(), h("div", Ml, B(e.emptyText), 1)) : (P(), h("div", {
|
|
7078
7173
|
key: 1,
|
|
7079
7174
|
ref_key: "raiz",
|
|
7080
7175
|
ref: i,
|
|
7081
7176
|
class: "w-markdown-view",
|
|
7082
7177
|
innerHTML: s.value
|
|
7083
|
-
}, null, 8,
|
|
7178
|
+
}, null, 8, Nl));
|
|
7084
7179
|
}
|
|
7085
|
-
}),
|
|
7180
|
+
}), Fl = {
|
|
7086
7181
|
class: "w-markdown-editor__toolbar",
|
|
7087
7182
|
role: "toolbar",
|
|
7088
7183
|
"aria-label": "Formatação markdown"
|
|
7089
|
-
},
|
|
7184
|
+
}, Il = [
|
|
7090
7185
|
"aria-label",
|
|
7091
7186
|
"title",
|
|
7092
7187
|
"disabled",
|
|
7093
7188
|
"onClick"
|
|
7094
|
-
],
|
|
7189
|
+
], Ll = ["aria-pressed"], Rl = ["aria-pressed"], zl = {
|
|
7095
7190
|
key: 0,
|
|
7096
7191
|
class: "w-markdown-editor__ajuda"
|
|
7097
|
-
},
|
|
7192
|
+
}, Bl = [
|
|
7098
7193
|
"value",
|
|
7099
7194
|
"disabled",
|
|
7100
7195
|
"placeholder"
|
|
7101
|
-
],
|
|
7196
|
+
], Vl = /* @__PURE__ */ x({
|
|
7102
7197
|
__name: "WMarkdownEditor",
|
|
7103
7198
|
props: {
|
|
7104
7199
|
modelValue: {},
|
|
@@ -7280,7 +7375,7 @@ var Sl = {
|
|
|
7280
7375
|
}
|
|
7281
7376
|
];
|
|
7282
7377
|
return (t, n) => (P(), h("div", { class: A(["w-markdown-editor", { "w-markdown-editor--split": o.value }]) }, [
|
|
7283
|
-
g("div",
|
|
7378
|
+
g("div", Fl, [
|
|
7284
7379
|
(P(), h(d, null, L(ne, (t) => g("button", {
|
|
7285
7380
|
key: t.label,
|
|
7286
7381
|
type: "button",
|
|
@@ -7300,7 +7395,7 @@ var Sl = {
|
|
|
7300
7395
|
"w-markdown-editor__glyph--italic": t.glyph === "I"
|
|
7301
7396
|
}]),
|
|
7302
7397
|
"aria-hidden": "true"
|
|
7303
|
-
}, B(t.glyph), 3))], 8,
|
|
7398
|
+
}, B(t.glyph), 3))], 8, Il)), 64)),
|
|
7304
7399
|
g("button", {
|
|
7305
7400
|
type: "button",
|
|
7306
7401
|
class: A(["w-markdown-editor__tool w-markdown-editor__tool--ajuda", { "w-markdown-editor__tool--active": N.value }]),
|
|
@@ -7311,7 +7406,7 @@ var Sl = {
|
|
|
7311
7406
|
}, [...n[1] ||= [g("i", {
|
|
7312
7407
|
class: "pi pi-question-circle",
|
|
7313
7408
|
"aria-hidden": "true"
|
|
7314
|
-
}, null, -1)]], 10,
|
|
7409
|
+
}, null, -1)]], 10, Ll),
|
|
7315
7410
|
o.value ? m("", !0) : (P(), h("button", {
|
|
7316
7411
|
key: 0,
|
|
7317
7412
|
type: "button",
|
|
@@ -7323,9 +7418,9 @@ var Sl = {
|
|
|
7323
7418
|
}, [g("i", {
|
|
7324
7419
|
class: A(a.value ? "pi pi-pencil" : "pi pi-eye"),
|
|
7325
7420
|
"aria-hidden": "true"
|
|
7326
|
-
}, null, 2)], 10,
|
|
7421
|
+
}, null, 2)], 10, Rl))
|
|
7327
7422
|
]),
|
|
7328
|
-
N.value ? (P(), h("dl",
|
|
7423
|
+
N.value ? (P(), h("dl", zl, [(P(), h(d, null, L(F, (e) => (P(), h(d, { key: e.sintaxe }, [g("dt", null, B(e.sintaxe), 1), g("dd", null, B(e.efeito), 1)], 64))), 64))])) : m("", !0),
|
|
7329
7424
|
g("div", {
|
|
7330
7425
|
class: "w-markdown-editor__body",
|
|
7331
7426
|
style: M({
|
|
@@ -7342,7 +7437,7 @@ var Sl = {
|
|
|
7342
7437
|
placeholder: e.placeholder,
|
|
7343
7438
|
spellcheck: "false",
|
|
7344
7439
|
onInput: l
|
|
7345
|
-
}, null, 40,
|
|
7440
|
+
}, null, 40, Bl)) : m("", !0), c.value ? (P(), p(Pl, {
|
|
7346
7441
|
key: 1,
|
|
7347
7442
|
class: "w-markdown-editor__preview",
|
|
7348
7443
|
source: e.modelValue,
|
|
@@ -7350,28 +7445,28 @@ var Sl = {
|
|
|
7350
7445
|
}, null, 8, ["source"])) : m("", !0)], 4)
|
|
7351
7446
|
], 2));
|
|
7352
7447
|
}
|
|
7353
|
-
}),
|
|
7448
|
+
}), Hl = {
|
|
7354
7449
|
key: 0,
|
|
7355
7450
|
class: "w-md-toc",
|
|
7356
7451
|
"aria-label": "Índice do documento"
|
|
7357
|
-
},
|
|
7452
|
+
}, Ul = { class: "w-md-toc__titulo" }, Wl = {
|
|
7358
7453
|
key: 0,
|
|
7359
7454
|
class: "w-md-toc__busca"
|
|
7360
|
-
},
|
|
7455
|
+
}, Gl = { class: "w-md-toc__lista" }, Kl = [
|
|
7361
7456
|
"aria-expanded",
|
|
7362
7457
|
"aria-label",
|
|
7363
7458
|
"onClick"
|
|
7364
|
-
],
|
|
7459
|
+
], ql = {
|
|
7365
7460
|
key: 1,
|
|
7366
7461
|
class: "w-md-toc__chevron w-md-toc__chevron--vazio",
|
|
7367
7462
|
"aria-hidden": "true"
|
|
7368
|
-
},
|
|
7463
|
+
}, Jl = ["href", "onClick"], Yl = {
|
|
7369
7464
|
key: 0,
|
|
7370
7465
|
class: "w-md-toc__lista"
|
|
7371
|
-
},
|
|
7466
|
+
}, Xl = ["href", "onClick"], Zl = {
|
|
7372
7467
|
key: 0,
|
|
7373
7468
|
class: "w-md-toc__vazio"
|
|
7374
|
-
},
|
|
7469
|
+
}, Ql = /* @__PURE__ */ x({
|
|
7375
7470
|
__name: "WMarkdownToc",
|
|
7376
7471
|
props: {
|
|
7377
7472
|
headings: {},
|
|
@@ -7427,9 +7522,9 @@ var Sl = {
|
|
|
7427
7522
|
block: "start"
|
|
7428
7523
|
}));
|
|
7429
7524
|
}
|
|
7430
|
-
return U(() => t.headings, () => void k(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (P(), h("nav",
|
|
7431
|
-
g("p",
|
|
7432
|
-
e.searchable ? (P(), h("div",
|
|
7525
|
+
return U(() => t.headings, () => void k(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (P(), h("nav", Hl, [
|
|
7526
|
+
g("p", Ul, B(e.title), 1),
|
|
7527
|
+
e.searchable ? (P(), h("div", Wl, [i[1] ||= g("i", {
|
|
7433
7528
|
class: "pi pi-search",
|
|
7434
7529
|
"aria-hidden": "true"
|
|
7435
7530
|
}, null, -1), G(g("input", {
|
|
@@ -7441,7 +7536,7 @@ var Sl = {
|
|
|
7441
7536
|
g("div", {
|
|
7442
7537
|
class: "w-md-toc__corpo",
|
|
7443
7538
|
style: M({ maxHeight: e.maxHeight })
|
|
7444
|
-
}, [g("ul",
|
|
7539
|
+
}, [g("ul", Gl, [(P(!0), h(d, null, L(c.value, (e) => (P(), h("li", {
|
|
7445
7540
|
key: e.titulo.id,
|
|
7446
7541
|
class: "w-md-toc__grupo"
|
|
7447
7542
|
}, [g("div", { class: A(["w-md-toc__item w-md-toc__item--n2", { "w-md-toc__item--ativo": n.value === e.titulo.id }]) }, [e.filhos.length ? (P(), h("button", {
|
|
@@ -7454,19 +7549,19 @@ var Sl = {
|
|
|
7454
7549
|
}, [g("i", {
|
|
7455
7550
|
class: A(u(e) ? "pi pi-chevron-down" : "pi pi-chevron-right"),
|
|
7456
7551
|
"aria-hidden": "true"
|
|
7457
|
-
}, null, 2)], 8,
|
|
7552
|
+
}, null, 2)], 8, Kl)) : (P(), h("span", ql)), g("a", {
|
|
7458
7553
|
href: `#${e.titulo.id}`,
|
|
7459
7554
|
onClick: q((t) => v(e.titulo.id), ["prevent"])
|
|
7460
|
-
}, B(e.titulo.text), 9,
|
|
7555
|
+
}, B(e.titulo.text), 9, Jl)], 2), u(e) ? (P(), h("ul", Yl, [(P(!0), h(d, null, L(e.filhos, (e) => (P(), h("li", {
|
|
7461
7556
|
key: e.id,
|
|
7462
7557
|
class: A(["w-md-toc__item w-md-toc__item--n3", { "w-md-toc__item--ativo": n.value === e.id }])
|
|
7463
7558
|
}, [g("a", {
|
|
7464
7559
|
href: `#${e.id}`,
|
|
7465
7560
|
onClick: q((t) => v(e.id), ["prevent"])
|
|
7466
|
-
}, B(e.text), 9,
|
|
7561
|
+
}, B(e.text), 9, Xl)], 2))), 128))])) : m("", !0)]))), 128))]), l.value && !c.value.length ? (P(), h("p", Zl, "Nenhuma seção encontrada")) : m("", !0)], 4)
|
|
7467
7562
|
])) : m("", !0);
|
|
7468
7563
|
}
|
|
7469
|
-
}),
|
|
7564
|
+
}), $l = /* @__PURE__ */ x({
|
|
7470
7565
|
name: "WDialog",
|
|
7471
7566
|
inheritAttrs: !1,
|
|
7472
7567
|
__name: "WDialog",
|
|
@@ -7477,16 +7572,16 @@ var Sl = {
|
|
|
7477
7572
|
fn: W((t) => [R(e.$slots, n, j(C(t ?? {})))])
|
|
7478
7573
|
}))]), 1040, ["append-to"]));
|
|
7479
7574
|
}
|
|
7480
|
-
}),
|
|
7575
|
+
}), eu = ["aria-label"], tu = [
|
|
7481
7576
|
"aria-selected",
|
|
7482
7577
|
"tabindex",
|
|
7483
7578
|
"disabled",
|
|
7484
7579
|
"onClick",
|
|
7485
7580
|
"onKeydown"
|
|
7486
|
-
],
|
|
7581
|
+
], nu = {
|
|
7487
7582
|
key: 1,
|
|
7488
7583
|
class: "w-tab-bar__badge"
|
|
7489
|
-
},
|
|
7584
|
+
}, ru = /* @__PURE__ */ x({
|
|
7490
7585
|
__name: "WTabBar",
|
|
7491
7586
|
props: {
|
|
7492
7587
|
modelValue: {},
|
|
@@ -7535,20 +7630,20 @@ var Sl = {
|
|
|
7535
7630
|
"aria-hidden": "true"
|
|
7536
7631
|
}, null, 2)) : m("", !0),
|
|
7537
7632
|
g("span", null, B(t.label), 1),
|
|
7538
|
-
t.badge !== void 0 && t.badge !== null ? (P(), h("span",
|
|
7539
|
-
], 42,
|
|
7633
|
+
t.badge !== void 0 && t.badge !== null ? (P(), h("span", nu, B(t.badge), 1)) : m("", !0)
|
|
7634
|
+
], 42, tu))), 128))], 8, eu));
|
|
7540
7635
|
}
|
|
7541
|
-
}),
|
|
7636
|
+
}), iu = { class: "w-tab-nav" }, au = ["aria-label"], ou = [
|
|
7542
7637
|
"tabindex",
|
|
7543
7638
|
"aria-selected",
|
|
7544
7639
|
"onClick",
|
|
7545
7640
|
"onAuxclick",
|
|
7546
7641
|
"onContextmenu",
|
|
7547
7642
|
"onKeydown"
|
|
7548
|
-
],
|
|
7643
|
+
], su = ["title"], cu = ["aria-label", "onClick"], lu = ["aria-label", "onClick"], uu = {
|
|
7549
7644
|
key: 0,
|
|
7550
7645
|
class: "w-tab-nav__actions"
|
|
7551
|
-
},
|
|
7646
|
+
}, du = 6, fu = /* @__PURE__ */ x({
|
|
7552
7647
|
__name: "WTabNav",
|
|
7553
7648
|
props: {
|
|
7554
7649
|
tabs: {},
|
|
@@ -7628,7 +7723,7 @@ var Sl = {
|
|
|
7628
7723
|
}
|
|
7629
7724
|
function w(e) {
|
|
7630
7725
|
if (e.color) return e.color;
|
|
7631
|
-
if (e.group) return S(C(e.group) %
|
|
7726
|
+
if (e.group) return S(C(e.group) % du + 1);
|
|
7632
7727
|
}
|
|
7633
7728
|
function T(e) {
|
|
7634
7729
|
let t = w(e);
|
|
@@ -7638,7 +7733,7 @@ var Sl = {
|
|
|
7638
7733
|
let t = i.value[e]?.group;
|
|
7639
7734
|
return !!t && t !== i.value[e - 1]?.group;
|
|
7640
7735
|
}
|
|
7641
|
-
return (t, n) => (P(), h("div",
|
|
7736
|
+
return (t, n) => (P(), h("div", iu, [
|
|
7642
7737
|
g("div", {
|
|
7643
7738
|
ref_key: "trilho",
|
|
7644
7739
|
ref: s,
|
|
@@ -7680,7 +7775,7 @@ var Sl = {
|
|
|
7680
7775
|
}, null, 2)) : m("", !0), g("span", {
|
|
7681
7776
|
class: "w-tab-nav__title",
|
|
7682
7777
|
title: e.title
|
|
7683
|
-
}, B(e.title), 9,
|
|
7778
|
+
}, B(e.title), 9, su)]),
|
|
7684
7779
|
g("button", {
|
|
7685
7780
|
type: "button",
|
|
7686
7781
|
class: "w-tab-nav__menu",
|
|
@@ -7690,7 +7785,7 @@ var Sl = {
|
|
|
7690
7785
|
}, [...n[0] ||= [g("i", {
|
|
7691
7786
|
class: "pi pi-ellipsis-v",
|
|
7692
7787
|
"aria-hidden": "true"
|
|
7693
|
-
}, null, -1)]], 8,
|
|
7788
|
+
}, null, -1)]], 8, cu),
|
|
7694
7789
|
e.closable ? (P(), h("button", {
|
|
7695
7790
|
key: 0,
|
|
7696
7791
|
type: "button",
|
|
@@ -7701,9 +7796,9 @@ var Sl = {
|
|
|
7701
7796
|
}, [...n[1] ||= [g("i", {
|
|
7702
7797
|
class: "pi pi-times",
|
|
7703
7798
|
"aria-hidden": "true"
|
|
7704
|
-
}, null, -1)]], 8,
|
|
7705
|
-
], 46,
|
|
7706
|
-
t.$slots.actions ? (P(), h("div",
|
|
7799
|
+
}, null, -1)]], 8, lu)) : m("", !0)
|
|
7800
|
+
], 46, ou)], 64))), 128))], 8, au),
|
|
7801
|
+
t.$slots.actions ? (P(), h("div", uu, [R(t.$slots, "actions")])) : m("", !0),
|
|
7707
7802
|
b(H(be), {
|
|
7708
7803
|
ref_key: "menu",
|
|
7709
7804
|
ref: _,
|
|
@@ -7711,7 +7806,7 @@ var Sl = {
|
|
|
7711
7806
|
}, null, 8, ["model"])
|
|
7712
7807
|
]));
|
|
7713
7808
|
}
|
|
7714
|
-
}),
|
|
7809
|
+
}), pu = x({
|
|
7715
7810
|
name: "WTabPane",
|
|
7716
7811
|
props: {
|
|
7717
7812
|
tab: {
|
|
@@ -7757,7 +7852,7 @@ var Sl = {
|
|
|
7757
7852
|
key: e.tab.remount
|
|
7758
7853
|
}) : null;
|
|
7759
7854
|
}
|
|
7760
|
-
}),
|
|
7855
|
+
}), mu = { class: "w-tab-viewport" }, hu = { class: "w-tab-viewport__scroll" }, gu = /* @__PURE__ */ x({
|
|
7761
7856
|
__name: "WTabViewport",
|
|
7762
7857
|
props: { tabs: {} },
|
|
7763
7858
|
setup(e) {
|
|
@@ -7777,12 +7872,12 @@ var Sl = {
|
|
|
7777
7872
|
return U(r, (e) => {
|
|
7778
7873
|
let t = new Set(e.map((e) => e.key));
|
|
7779
7874
|
for (let e of i.keys()) t.has(e) || i.delete(e);
|
|
7780
|
-
}), (t, i) => (P(), h("div",
|
|
7875
|
+
}), (t, i) => (P(), h("div", mu, [(P(!0), h(d, null, L(r.value, (t) => G((P(), h("div", {
|
|
7781
7876
|
key: `${t.key}#${t.remount}`,
|
|
7782
7877
|
ref_for: !0,
|
|
7783
7878
|
ref: (e) => o(t.key, e),
|
|
7784
7879
|
class: "w-tab-viewport__pane"
|
|
7785
|
-
}, [g("div",
|
|
7880
|
+
}, [g("div", hu, [b(H(pu), {
|
|
7786
7881
|
tab: t,
|
|
7787
7882
|
api: e.tabs,
|
|
7788
7883
|
active: t.key === n.value,
|
|
@@ -7794,29 +7889,29 @@ var Sl = {
|
|
|
7794
7889
|
"host-el"
|
|
7795
7890
|
])])])), [[de, t.key === n.value]])), 128))]));
|
|
7796
7891
|
}
|
|
7797
|
-
}),
|
|
7892
|
+
}), _u = ["aria-busy"], vu = { class: "w-kanban-board__header" }, yu = { class: "w-kanban-board__title" }, bu = { class: "w-kanban-board__count" }, xu = [
|
|
7798
7893
|
"aria-label",
|
|
7799
7894
|
"onDragover",
|
|
7800
7895
|
"onDragleave",
|
|
7801
7896
|
"onDrop"
|
|
7802
|
-
],
|
|
7897
|
+
], Su = {
|
|
7803
7898
|
key: 0,
|
|
7804
7899
|
class: "w-kanban-board__indicator"
|
|
7805
|
-
},
|
|
7900
|
+
}, Cu = [
|
|
7806
7901
|
"draggable",
|
|
7807
7902
|
"onDragstart",
|
|
7808
7903
|
"onClick",
|
|
7809
7904
|
"onKeydown"
|
|
7810
|
-
],
|
|
7905
|
+
], wu = { class: "w-kanban-board__card-fallback" }, Tu = {
|
|
7811
7906
|
key: 0,
|
|
7812
7907
|
class: "w-kanban-board__indicator"
|
|
7813
|
-
},
|
|
7908
|
+
}, Eu = {
|
|
7814
7909
|
key: 1,
|
|
7815
7910
|
class: "w-kanban-board__empty"
|
|
7816
|
-
},
|
|
7911
|
+
}, Du = {
|
|
7817
7912
|
key: 0,
|
|
7818
7913
|
class: "w-kanban-board__footer"
|
|
7819
|
-
},
|
|
7914
|
+
}, Ou = /* @__PURE__ */ x({
|
|
7820
7915
|
__name: "WKanbanBoard",
|
|
7821
7916
|
props: {
|
|
7822
7917
|
columns: {},
|
|
@@ -7920,7 +8015,7 @@ var Sl = {
|
|
|
7920
8015
|
class: A(["w-kanban-board__column", { "w-kanban-board__column--over": !!i.value && a.value?.column === r.value }]),
|
|
7921
8016
|
style: M(r.accent ? { "--w-kanban-accent": r.accent } : void 0)
|
|
7922
8017
|
}, [
|
|
7923
|
-
g("header",
|
|
8018
|
+
g("header", vu, [R(t.$slots, "column-header", { column: r }, () => [g("span", yu, B(r.label), 1), g("span", bu, B(r.items.length), 1)]), R(t.$slots, "column-action", { column: r })]),
|
|
7924
8019
|
g("div", {
|
|
7925
8020
|
ref_for: !0,
|
|
7926
8021
|
ref: (e) => s(r.value, e),
|
|
@@ -7935,7 +8030,7 @@ var Sl = {
|
|
|
7935
8030
|
onDragleave: (e) => b(r, e),
|
|
7936
8031
|
onDrop: (e) => x(r, e)
|
|
7937
8032
|
}, [
|
|
7938
|
-
(P(!0), h(d, null, L(r.items, (e, n) => (P(), h(d, { key: String(c(e)) }, [T(r, n) ? (P(), h("div",
|
|
8033
|
+
(P(!0), h(d, null, L(r.items, (e, n) => (P(), h(d, { key: String(c(e)) }, [T(r, n) ? (P(), h("div", Su)) : m("", !0), g("div", {
|
|
7939
8034
|
class: A(["w-kanban-board__card", {
|
|
7940
8035
|
"w-kanban-board__card--dragging": f(e),
|
|
7941
8036
|
"w-kanban-board__card--static": !u(e)
|
|
@@ -7950,18 +8045,18 @@ var Sl = {
|
|
|
7950
8045
|
}, [R(t.$slots, "card", {
|
|
7951
8046
|
item: e,
|
|
7952
8047
|
column: r
|
|
7953
|
-
}, () => [g("span",
|
|
7954
|
-
T(r, r.items.length) ? (P(), h("div",
|
|
7955
|
-
r.items.length ? m("", !0) : (P(), h("div",
|
|
7956
|
-
], 44,
|
|
7957
|
-
t.$slots["column-footer"] ? (P(), h("footer",
|
|
8048
|
+
}, () => [g("span", wu, B(l(e)), 1)])], 42, Cu)], 64))), 128)),
|
|
8049
|
+
T(r, r.items.length) ? (P(), h("div", Tu)) : m("", !0),
|
|
8050
|
+
r.items.length ? m("", !0) : (P(), h("div", Eu, [R(t.$slots, "empty-column", { column: r }, () => [n[0] ||= y("Nenhum item", -1)])]))
|
|
8051
|
+
], 44, xu),
|
|
8052
|
+
t.$slots["column-footer"] ? (P(), h("footer", Du, [R(t.$slots, "column-footer", {
|
|
7958
8053
|
column: r,
|
|
7959
8054
|
items: r.items
|
|
7960
8055
|
})])) : m("", !0)
|
|
7961
|
-
], 6))), 128))], 10,
|
|
8056
|
+
], 6))), 128))], 10, _u));
|
|
7962
8057
|
}
|
|
7963
8058
|
});
|
|
7964
8059
|
//#endregion
|
|
7965
|
-
export {
|
|
8060
|
+
export { xt as $, xa as A, Ai as B, xo as C, ao as D, oo as E, na as F, Zn as G, Hr as H, ia as I, $t as J, qn as K, Zi as L, ua as M, la as N, La as O, ta as P, wt as Q, Li as R, Co as S, so as T, tr as U, vi as V, er as W, Vt as X, Ht as Y, Lt as Z, as as _, $l as a, Uo as b, Pl as c, Js as d, Tt as et, Ws as f, os as g, ss as h, ru as i, ga as j, Oa as k, Rc as l, As as m, gu as n, tt as nt, Ql as o, Is as p, gn as q, fu as r, Vl as s, Ou as t, St as tt, cc as u, es as v, bo as w, jo as x, Xo as y, ji as z };
|
|
7966
8061
|
|
|
7967
|
-
//# sourceMappingURL=components-
|
|
8062
|
+
//# sourceMappingURL=components-CUseL9Li.js.map
|