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