@wgalleti/primevue-components 1.7.1 → 1.8.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/form/WMarkdownEditor.vue.d.ts +6 -0
- package/dist/components/index.d.ts +1 -0
- package/dist/components/ui/WGroupedSelectList.vue.d.ts +100 -0
- package/dist/components/ui/WMapSelect.vue.d.ts +3 -3
- package/dist/{components-CUseL9Li.js → components-BV6JxbiL.js} +484 -206
- package/dist/components-BV6JxbiL.js.map +1 -0
- package/dist/{components-C-XiEtDl.cjs → components-D2MkIY-O.cjs} +6 -6
- package/dist/components-D2MkIY-O.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 +2 -2
- package/dist/index.js +29 -29
- package/dist/index.js.map +1 -1
- package/dist/primevue-components.css +1 -1
- package/dist/types/groupedSelectList.d.ts +15 -0
- package/dist/types/index.d.ts +1 -0
- package/package.json +1 -1
- package/dist/components-C-XiEtDl.cjs.map +0 -1
- package/dist/components-CUseL9Li.js.map +0 -1
|
@@ -6132,57 +6132,326 @@ var Ns = ["aria-label"], Ps = ["src"], Fs = {
|
|
|
6132
6132
|
_: 2
|
|
6133
6133
|
}, 1040, ["class"]))]))), 128))])) : (P(), h("p", sc, [R(t.$slots, "empty", {}, () => [y(B(e.emptyMessage), 1)])]))]));
|
|
6134
6134
|
}
|
|
6135
|
-
}), lc =
|
|
6136
|
-
|
|
6135
|
+
}), lc = { class: "w-grouped-select-list" }, uc = {
|
|
6136
|
+
key: 0,
|
|
6137
|
+
class: "w-grouped-select-list__bar"
|
|
6138
|
+
}, dc = {
|
|
6139
|
+
key: 1,
|
|
6140
|
+
class: "w-grouped-select-list__summary"
|
|
6141
|
+
}, fc = {
|
|
6142
|
+
key: 1,
|
|
6143
|
+
class: "w-grouped-select-list__loading",
|
|
6144
|
+
role: "status"
|
|
6145
|
+
}, pc = { class: "w-grouped-select-list__scroll" }, mc = ["aria-busy"], hc = {
|
|
6146
|
+
key: 0,
|
|
6147
|
+
scope: "col",
|
|
6148
|
+
class: "w-grouped-select-list__th"
|
|
6149
|
+
}, gc = {
|
|
6150
|
+
key: 0,
|
|
6151
|
+
class: "w-grouped-select-list__state"
|
|
6152
|
+
}, _c = ["colspan"], vc = {
|
|
6153
|
+
key: 1,
|
|
6154
|
+
class: "w-grouped-select-list__state"
|
|
6155
|
+
}, yc = ["colspan"], bc = ["id"], xc = { class: "w-grouped-select-list__group-row" }, Sc = ["colspan"], Cc = { class: "w-grouped-select-list__group-head" }, wc = [
|
|
6156
|
+
"aria-expanded",
|
|
6157
|
+
"aria-controls",
|
|
6158
|
+
"aria-label",
|
|
6159
|
+
"onClick"
|
|
6160
|
+
], Tc = { class: "w-grouped-select-list__group-label" }, Ec = {
|
|
6161
|
+
key: 1,
|
|
6162
|
+
class: "w-grouped-select-list__group-meta"
|
|
6163
|
+
}, Dc = { class: "w-grouped-select-list__td w-grouped-select-list__td--check" }, Oc = {
|
|
6164
|
+
key: 0,
|
|
6165
|
+
class: "w-grouped-select-list__td"
|
|
6166
|
+
}, kc = /* @__PURE__ */ x({
|
|
6167
|
+
__name: "WGroupedSelectList",
|
|
6168
|
+
props: /*@__PURE__*/ D({
|
|
6169
|
+
items: {},
|
|
6170
|
+
columns: {},
|
|
6171
|
+
dataKey: { default: "id" },
|
|
6172
|
+
groupBy: {},
|
|
6173
|
+
groupLabel: {
|
|
6174
|
+
type: Function,
|
|
6175
|
+
default: void 0
|
|
6176
|
+
},
|
|
6177
|
+
selectable: {
|
|
6178
|
+
type: Boolean,
|
|
6179
|
+
default: !0
|
|
6180
|
+
},
|
|
6181
|
+
isSelectable: {
|
|
6182
|
+
type: Function,
|
|
6183
|
+
default: void 0
|
|
6184
|
+
},
|
|
6185
|
+
disabledReason: {
|
|
6186
|
+
type: Function,
|
|
6187
|
+
default: void 0
|
|
6188
|
+
},
|
|
6189
|
+
loading: {
|
|
6190
|
+
type: Boolean,
|
|
6191
|
+
default: !1
|
|
6192
|
+
},
|
|
6193
|
+
emptyMessage: { default: "Nenhum registro." },
|
|
6194
|
+
selectAllLabel: { default: "Selecionar todos os resultados" },
|
|
6195
|
+
clearSelectionLabel: { default: "Limpar seleção" },
|
|
6196
|
+
collapsible: {
|
|
6197
|
+
type: Boolean,
|
|
6198
|
+
default: !0
|
|
6199
|
+
}
|
|
6200
|
+
}, {
|
|
6201
|
+
selection: { default: () => [] },
|
|
6202
|
+
selectionModifiers: {},
|
|
6203
|
+
collapsed: { default: () => [] },
|
|
6204
|
+
collapsedModifiers: {}
|
|
6205
|
+
}),
|
|
6206
|
+
emits: ["update:selection", "update:collapsed"],
|
|
6207
|
+
setup(e) {
|
|
6208
|
+
let t = e, n = ce(e, "selection"), r = ce(e, "collapsed"), i = le(), a = se(), o = f(() => new Set(n.value)), s = f(() => t.columns.filter((e) => e.visible !== !1)), c = f(() => !!i["row-actions"]), l = f(() => 1 + s.value.length + +!!c.value);
|
|
6209
|
+
function u(e) {
|
|
6210
|
+
return t.selectable && (!t.isSelectable || t.isSelectable(e));
|
|
6211
|
+
}
|
|
6212
|
+
let _ = f(() => {
|
|
6213
|
+
let e = /* @__PURE__ */ new Map();
|
|
6214
|
+
for (let n of t.items) {
|
|
6215
|
+
let r = typeof t.groupBy == "function" ? t.groupBy(n) : String(n[t.groupBy] ?? ""), i = e.get(r);
|
|
6216
|
+
i ? i.push(n) : e.set(r, [n]);
|
|
6217
|
+
}
|
|
6218
|
+
let n = 0;
|
|
6219
|
+
return [...e].map(([e, r]) => {
|
|
6220
|
+
let i = r.map((e) => {
|
|
6221
|
+
let n = u(e), r = t.selectable && !n ? t.disabledReason?.(e) ?? null : null;
|
|
6222
|
+
return {
|
|
6223
|
+
data: e,
|
|
6224
|
+
key: e[t.dataKey],
|
|
6225
|
+
selectable: n,
|
|
6226
|
+
reason: r
|
|
6227
|
+
};
|
|
6228
|
+
});
|
|
6229
|
+
return {
|
|
6230
|
+
key: e,
|
|
6231
|
+
label: t.groupLabel ? t.groupLabel(e, r) : e,
|
|
6232
|
+
id: `${a}-g${n++}`,
|
|
6233
|
+
items: r,
|
|
6234
|
+
rows: i,
|
|
6235
|
+
rowKeys: i.map((e) => e.key),
|
|
6236
|
+
selectableKeys: i.filter((e) => e.selectable).map((e) => e.key)
|
|
6237
|
+
};
|
|
6238
|
+
});
|
|
6239
|
+
}), v = f(() => _.value.map((e) => {
|
|
6240
|
+
let t = e.rowKeys.filter((e) => o.value.has(e)).length, n = e.selectableKeys.filter((e) => o.value.has(e)).length;
|
|
6241
|
+
return {
|
|
6242
|
+
...e,
|
|
6243
|
+
selectedCount: t,
|
|
6244
|
+
checked: e.selectableKeys.length > 0 && n === e.selectableKeys.length,
|
|
6245
|
+
indeterminate: n > 0 && n < e.selectableKeys.length,
|
|
6246
|
+
scope: {
|
|
6247
|
+
groupKey: e.key,
|
|
6248
|
+
label: e.label,
|
|
6249
|
+
items: e.items,
|
|
6250
|
+
selectedCount: t,
|
|
6251
|
+
selectableCount: e.selectableKeys.length,
|
|
6252
|
+
collapsed: r.value.includes(e.key)
|
|
6253
|
+
}
|
|
6254
|
+
};
|
|
6255
|
+
})), x = f(() => _.value.flatMap((e) => e.selectableKeys)), S = f(() => _.value.flatMap((e) => e.rowKeys)), C = f(() => S.value.filter((e) => o.value.has(e))), w = f(() => x.value.length > 0 ? x.value.every((e) => o.value.has(e)) : C.value.length > 0), T = f(() => t.selectable && (x.value.length > 0 || C.value.length > 0)), E = f(() => v.value.length > 0);
|
|
6256
|
+
function D(e) {
|
|
6257
|
+
let t = o.value;
|
|
6258
|
+
return [...n.value, ...e.filter((e) => !t.has(e))];
|
|
6259
|
+
}
|
|
6260
|
+
function j(e) {
|
|
6261
|
+
let t = new Set(e);
|
|
6262
|
+
return n.value.filter((e) => !t.has(e));
|
|
6263
|
+
}
|
|
6264
|
+
function ee(e) {
|
|
6265
|
+
return !t.selectable || !e.selectable && !o.value.has(e.key);
|
|
6266
|
+
}
|
|
6267
|
+
let te = I(0);
|
|
6268
|
+
function N(e) {
|
|
6269
|
+
let t = n.value;
|
|
6270
|
+
n.value = e, k(() => {
|
|
6271
|
+
n.value === t && te.value++;
|
|
6272
|
+
});
|
|
6273
|
+
}
|
|
6274
|
+
function F(e) {
|
|
6275
|
+
ee(e) || N(o.value.has(e.key) ? j([e.key]) : D([e.key]));
|
|
6276
|
+
}
|
|
6277
|
+
function ne(e) {
|
|
6278
|
+
!t.selectable || e.selectableKeys.length === 0 || N(e.checked ? j(e.rowKeys) : D(e.selectableKeys));
|
|
6279
|
+
}
|
|
6280
|
+
function re() {
|
|
6281
|
+
N(w.value ? j(S.value) : D(x.value));
|
|
6282
|
+
}
|
|
6283
|
+
function ie(e) {
|
|
6284
|
+
r.value = r.value.includes(e) ? r.value.filter((t) => t !== e) : [...r.value, e];
|
|
6285
|
+
}
|
|
6286
|
+
function ae(e) {
|
|
6287
|
+
let t = s.value[0];
|
|
6288
|
+
if (!t) return "";
|
|
6289
|
+
let n = e[t.field], r = t.format ? t.format(n, e) : n;
|
|
6290
|
+
return r == null ? "" : String(r);
|
|
6291
|
+
}
|
|
6292
|
+
return (t, n) => (P(), h("div", lc, [
|
|
6293
|
+
T.value || t.$slots.summary ? (P(), h("div", uc, [T.value ? (P(), h("button", {
|
|
6294
|
+
key: 0,
|
|
6295
|
+
type: "button",
|
|
6296
|
+
class: "w-grouped-select-list__link",
|
|
6297
|
+
onClick: re
|
|
6298
|
+
}, B(w.value ? e.clearSelectionLabel : e.selectAllLabel), 1)) : m("", !0), t.$slots.summary ? (P(), h("span", dc, [R(t.$slots, "summary")])) : m("", !0)])) : m("", !0),
|
|
6299
|
+
e.loading && E.value ? (P(), h("div", fc, [...n[0] ||= [g("i", {
|
|
6300
|
+
class: "pi pi-spinner pi-spin",
|
|
6301
|
+
"aria-hidden": "true"
|
|
6302
|
+
}, null, -1), y(" Carregando… ", -1)]])) : m("", !0),
|
|
6303
|
+
g("div", pc, [g("table", {
|
|
6304
|
+
class: "w-grouped-select-list__table",
|
|
6305
|
+
"aria-busy": e.loading
|
|
6306
|
+
}, [g("thead", null, [g("tr", null, [
|
|
6307
|
+
n[2] ||= g("th", {
|
|
6308
|
+
scope: "col",
|
|
6309
|
+
class: "w-grouped-select-list__th w-grouped-select-list__th--check"
|
|
6310
|
+
}, [g("span", { class: "w-grouped-select-list__sr" }, "Seleção")], -1),
|
|
6311
|
+
(P(!0), h(d, null, L(s.value, (e) => (P(), h("th", {
|
|
6312
|
+
key: e.field,
|
|
6313
|
+
scope: "col",
|
|
6314
|
+
class: A(["w-grouped-select-list__th", e.align && `w-grouped-select-list__cell--${e.align}`]),
|
|
6315
|
+
style: M(e.style)
|
|
6316
|
+
}, B(e.header), 7))), 128)),
|
|
6317
|
+
c.value ? (P(), h("th", hc, [...n[1] ||= [g("span", { class: "w-grouped-select-list__sr" }, "Ações", -1)]])) : m("", !0)
|
|
6318
|
+
])]), e.loading && !E.value ? (P(), h("tbody", gc, [g("tr", null, [g("td", {
|
|
6319
|
+
colspan: l.value,
|
|
6320
|
+
role: "status"
|
|
6321
|
+
}, [...n[3] ||= [g("i", {
|
|
6322
|
+
class: "pi pi-spinner pi-spin",
|
|
6323
|
+
"aria-hidden": "true"
|
|
6324
|
+
}, null, -1), y(" Carregando… ", -1)]], 8, _c)])])) : v.value.length === 0 ? (P(), h("tbody", vc, [g("tr", null, [g("td", { colspan: l.value }, [R(t.$slots, "empty", {}, () => [y(B(e.emptyMessage), 1)])], 8, yc)])])) : (P(!0), h(d, { key: 2 }, L(v.value, (n) => (P(), h("tbody", {
|
|
6325
|
+
id: n.id,
|
|
6326
|
+
key: n.key,
|
|
6327
|
+
class: "w-grouped-select-list__group"
|
|
6328
|
+
}, [g("tr", xc, [g("td", { colspan: l.value }, [g("div", Cc, [
|
|
6329
|
+
e.collapsible ? (P(), h("button", {
|
|
6330
|
+
key: 0,
|
|
6331
|
+
type: "button",
|
|
6332
|
+
class: "w-grouped-select-list__toggle",
|
|
6333
|
+
"aria-expanded": !n.scope.collapsed,
|
|
6334
|
+
"aria-controls": n.id,
|
|
6335
|
+
"aria-label": `${n.scope.collapsed ? "Expandir" : "Recolher"} ${n.label}`,
|
|
6336
|
+
onClick: (e) => ie(n.key)
|
|
6337
|
+
}, [g("i", {
|
|
6338
|
+
class: A(n.scope.collapsed ? "pi pi-chevron-right" : "pi pi-chevron-down"),
|
|
6339
|
+
"aria-hidden": "true"
|
|
6340
|
+
}, null, 2)], 8, wc)) : m("", !0),
|
|
6341
|
+
(P(), p(H(_e), {
|
|
6342
|
+
key: te.value,
|
|
6343
|
+
binary: "",
|
|
6344
|
+
"model-value": n.checked,
|
|
6345
|
+
indeterminate: n.indeterminate,
|
|
6346
|
+
disabled: !e.selectable || n.selectableKeys.length === 0,
|
|
6347
|
+
"aria-label": `Selecionar ${n.label}`,
|
|
6348
|
+
"onUpdate:modelValue": (e) => ne(n)
|
|
6349
|
+
}, null, 8, [
|
|
6350
|
+
"model-value",
|
|
6351
|
+
"indeterminate",
|
|
6352
|
+
"disabled",
|
|
6353
|
+
"aria-label",
|
|
6354
|
+
"onUpdate:modelValue"
|
|
6355
|
+
])),
|
|
6356
|
+
g("span", Tc, [R(t.$slots, "group-header", O({ ref_for: !0 }, n.scope), () => [y(B(n.label), 1)])]),
|
|
6357
|
+
t.$slots["group-meta"] ? (P(), h("span", Ec, [R(t.$slots, "group-meta", O({ ref_for: !0 }, n.scope))])) : m("", !0)
|
|
6358
|
+
])], 8, Sc)]), n.scope.collapsed ? m("", !0) : (P(!0), h(d, { key: 0 }, L(n.rows, (e) => (P(), h("tr", {
|
|
6359
|
+
key: String(e.key),
|
|
6360
|
+
class: A(["w-grouped-select-list__row", {
|
|
6361
|
+
"w-grouped-select-list__row--selected": o.value.has(e.key),
|
|
6362
|
+
"w-grouped-select-list__row--locked": !e.selectable
|
|
6363
|
+
}])
|
|
6364
|
+
}, [
|
|
6365
|
+
g("td", Dc, [(P(), p(H(_e), {
|
|
6366
|
+
key: te.value,
|
|
6367
|
+
binary: "",
|
|
6368
|
+
"model-value": o.value.has(e.key),
|
|
6369
|
+
disabled: ee(e),
|
|
6370
|
+
"aria-label": `Selecionar ${ae(e.data)}`,
|
|
6371
|
+
"onUpdate:modelValue": (t) => F(e)
|
|
6372
|
+
}, null, 8, [
|
|
6373
|
+
"model-value",
|
|
6374
|
+
"disabled",
|
|
6375
|
+
"aria-label",
|
|
6376
|
+
"onUpdate:modelValue"
|
|
6377
|
+
]))]),
|
|
6378
|
+
(P(!0), h(d, null, L(s.value, (n, r) => (P(), h("td", {
|
|
6379
|
+
key: n.field,
|
|
6380
|
+
class: A(["w-grouped-select-list__td", n.align && `w-grouped-select-list__cell--${n.align}`]),
|
|
6381
|
+
style: M(n.style)
|
|
6382
|
+
}, [R(t.$slots, `column-${n.field}`, {
|
|
6383
|
+
data: e.data,
|
|
6384
|
+
column: n,
|
|
6385
|
+
value: e.data[n.field]
|
|
6386
|
+
}, () => [b(tt, {
|
|
6387
|
+
column: n,
|
|
6388
|
+
value: e.data[n.field],
|
|
6389
|
+
"row-data": e.data
|
|
6390
|
+
}, null, 8, [
|
|
6391
|
+
"column",
|
|
6392
|
+
"value",
|
|
6393
|
+
"row-data"
|
|
6394
|
+
])]), r === 0 && e.reason ? (P(), p(H(Se), {
|
|
6395
|
+
key: 0,
|
|
6396
|
+
value: e.reason,
|
|
6397
|
+
severity: "secondary",
|
|
6398
|
+
class: "w-tag w-tag--secondary w-grouped-select-list__reason"
|
|
6399
|
+
}, null, 8, ["value"])) : m("", !0)], 6))), 128)),
|
|
6400
|
+
c.value ? (P(), h("td", Oc, [R(t.$slots, "row-actions", { data: e.data })])) : m("", !0)
|
|
6401
|
+
], 2))), 128))], 8, bc))), 128))], 8, mc)])
|
|
6402
|
+
]));
|
|
6403
|
+
}
|
|
6404
|
+
}), Ac = .85;
|
|
6405
|
+
function jc(e, t, n) {
|
|
6137
6406
|
return !e || e.largura <= 0 || e.altura <= 0 ? !1 : e.largura <= t && e.altura <= n;
|
|
6138
6407
|
}
|
|
6139
|
-
function
|
|
6408
|
+
function Mc(e, t, n, r = Ac) {
|
|
6140
6409
|
if (!t || t.largura <= 0 || t.altura <= 0 || e.largura <= 0 || e.altura <= 0) return "completo";
|
|
6141
6410
|
let i = e.largura * r, a = e.altura * r;
|
|
6142
|
-
return
|
|
6411
|
+
return jc(t, i, a) ? "completo" : jc(n, i, a) ? "curto" : "oculto";
|
|
6143
6412
|
}
|
|
6144
6413
|
//#endregion
|
|
6145
6414
|
//#region src/components/ui/WMapSelect.vue?vue&type=script&setup=true&lang.ts
|
|
6146
|
-
var
|
|
6415
|
+
var Nc = { class: "w-map-select__body" }, Pc = {
|
|
6147
6416
|
key: 0,
|
|
6148
6417
|
class: "w-map-select__fallback"
|
|
6149
|
-
},
|
|
6418
|
+
}, Fc = {
|
|
6150
6419
|
key: 1,
|
|
6151
6420
|
class: "w-map-select__badge"
|
|
6152
|
-
},
|
|
6421
|
+
}, Ic = { class: "w-map-select__detail-nome" }, Lc = {
|
|
6153
6422
|
key: 0,
|
|
6154
6423
|
class: "w-map-select__detail-sub"
|
|
6155
|
-
},
|
|
6424
|
+
}, Rc = {
|
|
6156
6425
|
key: 0,
|
|
6157
6426
|
class: "w-map-select__panel"
|
|
6158
|
-
},
|
|
6427
|
+
}, zc = [
|
|
6159
6428
|
"aria-expanded",
|
|
6160
6429
|
"aria-label",
|
|
6161
6430
|
"title"
|
|
6162
|
-
],
|
|
6431
|
+
], Bc = {
|
|
6163
6432
|
key: 0,
|
|
6164
6433
|
class: "w-map-select__collapse-count"
|
|
6165
|
-
},
|
|
6434
|
+
}, Vc = { class: "w-map-select__panel-head" }, Hc = { class: "w-map-select__meta" }, Uc = { class: "w-map-select__count" }, Wc = ["disabled"], Gc = { class: "w-map-select__list" }, Kc = [
|
|
6166
6435
|
"aria-pressed",
|
|
6167
6436
|
"disabled",
|
|
6168
6437
|
"onClick"
|
|
6169
|
-
],
|
|
6438
|
+
], qc = { class: "w-map-select__box" }, Jc = {
|
|
6170
6439
|
key: 0,
|
|
6171
6440
|
class: "pi pi-check"
|
|
6172
|
-
},
|
|
6441
|
+
}, Yc = { class: "w-map-select__item-text" }, Xc = { class: "w-map-select__item-name" }, Zc = {
|
|
6173
6442
|
key: 0,
|
|
6174
6443
|
class: "w-map-select__item-sub"
|
|
6175
|
-
},
|
|
6444
|
+
}, Qc = {
|
|
6176
6445
|
key: 0,
|
|
6177
6446
|
class: "pi pi-exclamation-circle w-map-select__item-nogeo",
|
|
6178
6447
|
title: "Talhão sem contorno cadastrado"
|
|
6179
|
-
},
|
|
6448
|
+
}, $c = {
|
|
6180
6449
|
key: 1,
|
|
6181
6450
|
class: "w-map-select__item-area"
|
|
6182
|
-
},
|
|
6451
|
+
}, el = {
|
|
6183
6452
|
key: 0,
|
|
6184
6453
|
class: "w-map-select__empty"
|
|
6185
|
-
},
|
|
6454
|
+
}, tl = { class: "w-map-select__area" }, nl = { class: "w-map-select__area-unit" }, rl = "O mapa não pôde ser carregado. Selecione os talhões pela lista ao lado.", il = "O mapa não pôde ser carregado.", al = /* @__PURE__ */ x({
|
|
6186
6455
|
__name: "WMapSelect",
|
|
6187
6456
|
props: {
|
|
6188
6457
|
modelValue: { default: () => [] },
|
|
@@ -6210,7 +6479,7 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6210
6479
|
},
|
|
6211
6480
|
badgeLabel: { default: "Satélite" },
|
|
6212
6481
|
emptyMessage: { default: "Nenhum talhão encontrado" },
|
|
6213
|
-
mapErrorMessage: { default:
|
|
6482
|
+
mapErrorMessage: { default: rl },
|
|
6214
6483
|
disabled: {
|
|
6215
6484
|
type: Boolean,
|
|
6216
6485
|
default: !1
|
|
@@ -6248,7 +6517,7 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6248
6517
|
type: Function,
|
|
6249
6518
|
default: void 0
|
|
6250
6519
|
},
|
|
6251
|
-
labelFitScale: { default:
|
|
6520
|
+
labelFitScale: { default: Ac },
|
|
6252
6521
|
labelFullFromZoom: { default: 13 },
|
|
6253
6522
|
featureDetail: { default: "none" },
|
|
6254
6523
|
detailPlacement: { default: "cursor" }
|
|
@@ -6261,7 +6530,7 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6261
6530
|
"update:collapsed"
|
|
6262
6531
|
],
|
|
6263
6532
|
setup(e, { expose: t, emit: r }) {
|
|
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 ===
|
|
6533
|
+
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 === rl ? il : i.mapErrorMessage), p = I(!1), _ = f(() => i.collapsed != null), v = f(() => _.value ? !!i.collapsed : p.value);
|
|
6265
6534
|
function x(e) {
|
|
6266
6535
|
v.value !== e && (_.value || (p.value = e), a("update:collapsed", e));
|
|
6267
6536
|
}
|
|
@@ -6443,7 +6712,7 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6443
6712
|
if (!r || !a) return;
|
|
6444
6713
|
let o = Ae(a);
|
|
6445
6714
|
if (!o) return;
|
|
6446
|
-
let s = je(a), c = t ? "completo" :
|
|
6715
|
+
let s = je(a), c = t ? "completo" : Mc(Z(n), ze(o), s && s !== o ? ze(s) : null, i.labelFitScale);
|
|
6447
6716
|
c !== "oculto" && r.setContent(c === "curto" ? s : o), r.getElement()?.classList.toggle("w-map-select__tip--fora", c === "oculto");
|
|
6448
6717
|
});
|
|
6449
6718
|
}
|
|
@@ -6573,7 +6842,7 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6573
6842
|
"w-map-select--overlay": c.value,
|
|
6574
6843
|
"w-map-select--collapsed": c.value && v.value && !e.readonly
|
|
6575
6844
|
}])
|
|
6576
|
-
}, [g("div",
|
|
6845
|
+
}, [g("div", Nc, [g("div", {
|
|
6577
6846
|
class: "w-map-select__map",
|
|
6578
6847
|
style: M({ "--w-map-h": e.height })
|
|
6579
6848
|
}, [
|
|
@@ -6582,7 +6851,7 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6582
6851
|
ref: V,
|
|
6583
6852
|
class: "w-map-select__canvas"
|
|
6584
6853
|
}, null, 512),
|
|
6585
|
-
ue.value ? (P(), h("div",
|
|
6854
|
+
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", Fc, [n[2] ||= g("i", { class: "pi pi-globe" }, null, -1), y(B(e.badgeLabel), 1)])) : m("", !0),
|
|
6586
6855
|
X.value && e.featureDetail !== "none" ? (P(), h("div", {
|
|
6587
6856
|
key: 2,
|
|
6588
6857
|
class: A(["w-map-select__detail", {
|
|
@@ -6596,8 +6865,8 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6596
6865
|
feature: X.value,
|
|
6597
6866
|
selected: E(X.value.id),
|
|
6598
6867
|
close: Te
|
|
6599
|
-
}, () => [g("span",
|
|
6600
|
-
], 4), e.readonly ? m("", !0) : (P(), h("div",
|
|
6868
|
+
}, () => [g("span", Ic, B(X.value.nome), 1), X.value.subtitulo ? (P(), h("span", Lc, B(X.value.subtitulo), 1)) : m("", !0)])], 6)) : m("", !0)
|
|
6869
|
+
], 4), e.readonly ? m("", !0) : (P(), h("div", Rc, [
|
|
6601
6870
|
c.value ? (P(), h("button", {
|
|
6602
6871
|
key: 0,
|
|
6603
6872
|
type: "button",
|
|
@@ -6606,8 +6875,8 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6606
6875
|
"aria-label": C.value,
|
|
6607
6876
|
title: C.value,
|
|
6608
6877
|
onClick: S
|
|
6609
|
-
}, [g("i", { class: A(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (P(), h("span",
|
|
6610
|
-
g("div",
|
|
6878
|
+
}, [g("i", { class: A(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (P(), h("span", Bc, B(e.modelValue.length), 1)) : m("", !0)], 8, zc)) : m("", !0),
|
|
6879
|
+
g("div", Vc, [b(H(ve), null, {
|
|
6611
6880
|
default: W(() => [b(H(ye), { class: "pi pi-search" }), b(H(Y), {
|
|
6612
6881
|
modelValue: ne.value,
|
|
6613
6882
|
"onUpdate:modelValue": n[0] ||= (e) => ne.value = e,
|
|
@@ -6621,13 +6890,13 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6621
6890
|
"aria-label"
|
|
6622
6891
|
])]),
|
|
6623
6892
|
_: 1
|
|
6624
|
-
}), g("div",
|
|
6893
|
+
}), g("div", Hc, [g("span", Uc, B(F.value), 1), g("button", {
|
|
6625
6894
|
type: "button",
|
|
6626
6895
|
class: "w-map-select__clear",
|
|
6627
6896
|
disabled: e.disabled || !e.modelValue.length,
|
|
6628
6897
|
onClick: O
|
|
6629
|
-
}, B(e.clearLabel), 9,
|
|
6630
|
-
g("ul",
|
|
6898
|
+
}, B(e.clearLabel), 9, Wc)])]),
|
|
6899
|
+
g("ul", Gc, [(P(!0), h(d, null, L(ae.value, (n) => (P(), h("li", { key: n.id }, [R(t.$slots, "item", {
|
|
6631
6900
|
feature: n,
|
|
6632
6901
|
selected: E(n.id)
|
|
6633
6902
|
}, () => [g("button", {
|
|
@@ -6637,11 +6906,11 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6637
6906
|
disabled: e.disabled,
|
|
6638
6907
|
onClick: (e) => D(n.id)
|
|
6639
6908
|
}, [
|
|
6640
|
-
g("span",
|
|
6641
|
-
g("span",
|
|
6642
|
-
n.geometria ? m("", !0) : (P(), h("i",
|
|
6643
|
-
n.area == null ? m("", !0) : (P(), h("span",
|
|
6644
|
-
], 10,
|
|
6909
|
+
g("span", qc, [E(n.id) ? (P(), h("i", Jc)) : m("", !0)]),
|
|
6910
|
+
g("span", Yc, [g("span", Xc, B(n.nome), 1), n.subtitulo ? (P(), h("span", Zc, B(n.subtitulo), 1)) : m("", !0)]),
|
|
6911
|
+
n.geometria ? m("", !0) : (P(), h("i", Qc)),
|
|
6912
|
+
n.area == null ? m("", !0) : (P(), h("span", $c, B(z(n)), 1))
|
|
6913
|
+
], 10, Kc)])]))), 128)), ae.value.length ? m("", !0) : (P(), h("li", el, [R(t.$slots, "empty", {}, () => [y(B(e.emptyMessage), 1)])]))])
|
|
6645
6914
|
]))]), l.value ? (P(), h("div", {
|
|
6646
6915
|
key: 0,
|
|
6647
6916
|
ref_key: "footer",
|
|
@@ -6650,13 +6919,13 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6650
6919
|
}, [R(t.$slots, "footer", {
|
|
6651
6920
|
area: N.value,
|
|
6652
6921
|
features: j.value
|
|
6653
|
-
}, () => [g("span",
|
|
6922
|
+
}, () => [g("span", tl, [
|
|
6654
6923
|
y(B(e.areaLabel) + " ", 1),
|
|
6655
6924
|
g("strong", null, B(oe.value), 1),
|
|
6656
|
-
g("span",
|
|
6925
|
+
g("span", nl, B(e.areaSuffix), 1)
|
|
6657
6926
|
])])], 512)) : m("", !0)], 2));
|
|
6658
6927
|
}
|
|
6659
|
-
}),
|
|
6928
|
+
}), ol = {
|
|
6660
6929
|
nota: {
|
|
6661
6930
|
tone: "nota",
|
|
6662
6931
|
label: "Nota",
|
|
@@ -6702,7 +6971,7 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6702
6971
|
label: "Em aberto",
|
|
6703
6972
|
icon: "pi pi-question-circle"
|
|
6704
6973
|
}
|
|
6705
|
-
},
|
|
6974
|
+
}, sl = {
|
|
6706
6975
|
note: "nota",
|
|
6707
6976
|
info: "nota",
|
|
6708
6977
|
observacao: "nota",
|
|
@@ -6729,19 +6998,19 @@ var fc = { class: "w-map-select__body" }, pc = {
|
|
|
6729
6998
|
help: "pergunta",
|
|
6730
6999
|
duvida: "pergunta"
|
|
6731
7000
|
};
|
|
6732
|
-
function
|
|
7001
|
+
function cl(e) {
|
|
6733
7002
|
return e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
6734
7003
|
}
|
|
6735
|
-
function
|
|
6736
|
-
let t =
|
|
6737
|
-
return
|
|
7004
|
+
function ll(e) {
|
|
7005
|
+
let t = cl(e);
|
|
7006
|
+
return ol[t] ?? ol[sl[t]] ?? null;
|
|
6738
7007
|
}
|
|
6739
|
-
var
|
|
6740
|
-
function
|
|
7008
|
+
var ul = new ze().utils.escapeHtml;
|
|
7009
|
+
function dl(e, t) {
|
|
6741
7010
|
let n = t?.trim() || e.label;
|
|
6742
|
-
return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${
|
|
7011
|
+
return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${ul(n)}</p><div class="md-alert__body">`;
|
|
6743
7012
|
}
|
|
6744
|
-
var
|
|
7013
|
+
var fl = "</div></div>", pl = {
|
|
6745
7014
|
bash: () => import("highlight.js/lib/languages/bash"),
|
|
6746
7015
|
python: () => import("highlight.js/lib/languages/python"),
|
|
6747
7016
|
javascript: () => import("highlight.js/lib/languages/javascript"),
|
|
@@ -6755,7 +7024,7 @@ var Gc = "</div></div>", Kc = {
|
|
|
6755
7024
|
ini: () => import("highlight.js/lib/languages/ini"),
|
|
6756
7025
|
markdown: () => import("highlight.js/lib/languages/markdown"),
|
|
6757
7026
|
dockerfile: () => import("highlight.js/lib/languages/dockerfile")
|
|
6758
|
-
},
|
|
7027
|
+
}, ml = {
|
|
6759
7028
|
sh: "bash",
|
|
6760
7029
|
shell: "bash",
|
|
6761
7030
|
zsh: "bash",
|
|
@@ -6783,28 +7052,28 @@ var Gc = "</div></div>", Kc = {
|
|
|
6783
7052
|
postgres: "sql",
|
|
6784
7053
|
postgresql: "sql",
|
|
6785
7054
|
docker: "dockerfile"
|
|
6786
|
-
},
|
|
6787
|
-
function
|
|
6788
|
-
return
|
|
7055
|
+
}, hl = null, gl = null;
|
|
7056
|
+
function _l() {
|
|
7057
|
+
return hl !== null;
|
|
6789
7058
|
}
|
|
6790
|
-
async function
|
|
6791
|
-
if (
|
|
6792
|
-
|
|
7059
|
+
async function vl() {
|
|
7060
|
+
if (hl || gl) return gl ?? void 0;
|
|
7061
|
+
gl = (async () => {
|
|
6793
7062
|
let e = (await import("highlight.js/lib/core")).default;
|
|
6794
|
-
await Promise.all(Object.entries(
|
|
7063
|
+
await Promise.all(Object.entries(pl).map(async ([t, n]) => {
|
|
6795
7064
|
let r = await n();
|
|
6796
7065
|
e.registerLanguage(t, r.default);
|
|
6797
|
-
})),
|
|
6798
|
-
})(), await
|
|
7066
|
+
})), hl = (t, n) => e.highlight(t, { language: n }).value;
|
|
7067
|
+
})(), await gl;
|
|
6799
7068
|
}
|
|
6800
|
-
function
|
|
6801
|
-
let t =
|
|
6802
|
-
return
|
|
7069
|
+
function yl(e) {
|
|
7070
|
+
let t = cl(e);
|
|
7071
|
+
return ml[t] ?? t;
|
|
6803
7072
|
}
|
|
6804
|
-
function
|
|
6805
|
-
return
|
|
7073
|
+
function bl(e) {
|
|
7074
|
+
return cl(e).replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-") || "secao";
|
|
6806
7075
|
}
|
|
6807
|
-
var
|
|
7076
|
+
var xl = /* @__PURE__ */ new Set([
|
|
6808
7077
|
"detalhes",
|
|
6809
7078
|
"details",
|
|
6810
7079
|
"passos",
|
|
@@ -6815,8 +7084,8 @@ var el = /* @__PURE__ */ new Set([
|
|
|
6815
7084
|
"tabs",
|
|
6816
7085
|
"aba",
|
|
6817
7086
|
"tab"
|
|
6818
|
-
]),
|
|
6819
|
-
function
|
|
7087
|
+
]), Sl = /^\s*([^\s]+)\s*(.*)$/;
|
|
7088
|
+
function Cl() {
|
|
6820
7089
|
let e = new ze({
|
|
6821
7090
|
html: !1,
|
|
6822
7091
|
linkify: !0,
|
|
@@ -6828,16 +7097,16 @@ function nl() {
|
|
|
6828
7097
|
3,
|
|
6829
7098
|
4
|
|
6830
7099
|
],
|
|
6831
|
-
slugify:
|
|
7100
|
+
slugify: bl,
|
|
6832
7101
|
permalink: Be.permalink.linkInsideHeader({
|
|
6833
7102
|
symbol: "",
|
|
6834
7103
|
class: "md-anchor",
|
|
6835
7104
|
placement: "after",
|
|
6836
7105
|
ariaHidden: !0
|
|
6837
7106
|
})
|
|
6838
|
-
}),
|
|
7107
|
+
}), wl(e), El(e), Dl(e), Ol(e), kl(e), Al(e), jl(e), e;
|
|
6839
7108
|
}
|
|
6840
|
-
function
|
|
7109
|
+
function wl(e) {
|
|
6841
7110
|
e.core.ruler.after("block", "lz_alerta", (e) => {
|
|
6842
7111
|
let t = e.tokens;
|
|
6843
7112
|
for (let e = 0; e < t.length; e += 1) {
|
|
@@ -6847,9 +7116,9 @@ function rl(e) {
|
|
|
6847
7116
|
if (r?.type !== "paragraph_open" || i?.type !== "inline") continue;
|
|
6848
7117
|
let a = /^\[!([^\]\n]+)\][ \t]*([^\n]*)\n?/.exec(i.content);
|
|
6849
7118
|
if (!a) continue;
|
|
6850
|
-
let o =
|
|
7119
|
+
let o = ll(a[1]);
|
|
6851
7120
|
if (!o) continue;
|
|
6852
|
-
let s =
|
|
7121
|
+
let s = Tl(t, e);
|
|
6853
7122
|
s && (i.content = i.content.slice(a[0].length), n.type = "lz_alerta_open", n.tag = "div", n.meta = {
|
|
6854
7123
|
spec: o,
|
|
6855
7124
|
titulo: a[2]
|
|
@@ -6858,10 +7127,10 @@ function rl(e) {
|
|
|
6858
7127
|
return !0;
|
|
6859
7128
|
}), e.renderer.rules.lz_alerta_open = (e, t) => {
|
|
6860
7129
|
let n = e[t].meta;
|
|
6861
|
-
return
|
|
6862
|
-
}, e.renderer.rules.lz_alerta_close = () =>
|
|
7130
|
+
return dl(n.spec, n.titulo);
|
|
7131
|
+
}, e.renderer.rules.lz_alerta_close = () => fl;
|
|
6863
7132
|
}
|
|
6864
|
-
function
|
|
7133
|
+
function Tl(e, t) {
|
|
6865
7134
|
let n = 0;
|
|
6866
7135
|
for (let r = t; r < e.length; r += 1) {
|
|
6867
7136
|
let t = e[r];
|
|
@@ -6870,37 +7139,37 @@ function il(e, t) {
|
|
|
6870
7139
|
}
|
|
6871
7140
|
return null;
|
|
6872
7141
|
}
|
|
6873
|
-
function
|
|
7142
|
+
function El(e) {
|
|
6874
7143
|
let t = [];
|
|
6875
7144
|
e.use(Q, "lz", {
|
|
6876
7145
|
validate: (e) => {
|
|
6877
|
-
let t =
|
|
7146
|
+
let t = Sl.exec(e);
|
|
6878
7147
|
if (!t) return !1;
|
|
6879
|
-
let n =
|
|
6880
|
-
return
|
|
7148
|
+
let n = cl(t[1]);
|
|
7149
|
+
return xl.has(n) || ll(n) !== null;
|
|
6881
7150
|
},
|
|
6882
7151
|
render: (e, n) => {
|
|
6883
7152
|
let r = e[n];
|
|
6884
7153
|
if (r.nesting !== 1) {
|
|
6885
7154
|
let e = t.pop();
|
|
6886
|
-
return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${
|
|
7155
|
+
return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${fl}\n` : "</div>\n";
|
|
6887
7156
|
}
|
|
6888
|
-
let i =
|
|
7157
|
+
let i = Sl.exec(r.info) ?? [
|
|
6889
7158
|
"",
|
|
6890
7159
|
"",
|
|
6891
7160
|
""
|
|
6892
|
-
], a =
|
|
6893
|
-
if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${
|
|
7161
|
+
], a = cl(i[1]), o = i[2]?.trim();
|
|
7162
|
+
if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${ul(o || "Detalhes")}</summary><div class="md-details__body">`;
|
|
6894
7163
|
if (a === "passos" || a === "steps") return t.push("bloco"), "<div class=\"md-steps\">";
|
|
6895
7164
|
if (a === "cards" || a === "grade") return t.push("bloco"), "<div class=\"md-cards\">";
|
|
6896
7165
|
if (a === "abas" || a === "tabs") return t.push("bloco"), "<div class=\"md-tabs\" data-md-tabs>";
|
|
6897
|
-
if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${
|
|
6898
|
-
let s =
|
|
6899
|
-
return s ? (t.push("alerta"),
|
|
7166
|
+
if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${ul(o || "Aba")}">`;
|
|
7167
|
+
let s = ll(a);
|
|
7168
|
+
return s ? (t.push("alerta"), dl(s, o)) : (t.push("bloco"), "<div>");
|
|
6900
7169
|
}
|
|
6901
7170
|
});
|
|
6902
7171
|
}
|
|
6903
|
-
function
|
|
7172
|
+
function Dl(e) {
|
|
6904
7173
|
e.core.ruler.after("inline", "lz_tarefas", (e) => {
|
|
6905
7174
|
let t = e.tokens;
|
|
6906
7175
|
for (let n = 2; n < t.length; n += 1) {
|
|
@@ -6917,26 +7186,26 @@ function ol(e) {
|
|
|
6917
7186
|
return !0;
|
|
6918
7187
|
});
|
|
6919
7188
|
}
|
|
6920
|
-
function
|
|
7189
|
+
function Ol(e) {
|
|
6921
7190
|
e.renderer.rules.fence = (e, t) => {
|
|
6922
|
-
let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a =
|
|
6923
|
-
if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${
|
|
6924
|
-
let s =
|
|
6925
|
-
return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${
|
|
7191
|
+
let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a = yl(i), o = /title="([^"]*)"/.exec(r)?.[1];
|
|
7192
|
+
if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${ul(n.content)}</pre>` + (o ? `<figcaption>${ul(o)}</figcaption>` : "") + "</figure>\n";
|
|
7193
|
+
let s = hl && pl[a] ? hl(n.content, a) : ul(n.content);
|
|
7194
|
+
return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${ul(o ?? "")}</span><span class="md-code__lang">${ul(i)}</span></div>` : ""}<pre class="md-code__pre"><code class="hljs language-${ul(a)}">${s}</code></pre></div>\n`;
|
|
6926
7195
|
};
|
|
6927
7196
|
}
|
|
6928
|
-
function
|
|
7197
|
+
function kl(e) {
|
|
6929
7198
|
let t = e.renderer.rules.table_open;
|
|
6930
7199
|
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>`;
|
|
6931
7200
|
}
|
|
6932
|
-
function
|
|
7201
|
+
function Al(e) {
|
|
6933
7202
|
let t = e.renderer.rules.link_open;
|
|
6934
7203
|
e.renderer.rules.link_open = (e, n, r, i, a) => {
|
|
6935
7204
|
let o = String(e[n].attrGet("href") ?? "");
|
|
6936
7205
|
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);
|
|
6937
7206
|
};
|
|
6938
7207
|
}
|
|
6939
|
-
function
|
|
7208
|
+
function jl(e) {
|
|
6940
7209
|
e.core.ruler.after("inline", "lz_figuras", (e) => {
|
|
6941
7210
|
let t = e.tokens;
|
|
6942
7211
|
for (let e = 1; e < t.length - 1; e += 1) {
|
|
@@ -6952,17 +7221,17 @@ function ul(e) {
|
|
|
6952
7221
|
let o = t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
|
|
6953
7222
|
if (!e[n].meta?.figura) return o;
|
|
6954
7223
|
let s = e[n].content?.trim();
|
|
6955
|
-
return s ? `${o}<figcaption>${
|
|
7224
|
+
return s ? `${o}<figcaption>${ul(s)}</figcaption>` : o;
|
|
6956
7225
|
};
|
|
6957
7226
|
}
|
|
6958
|
-
var
|
|
6959
|
-
function
|
|
6960
|
-
return
|
|
7227
|
+
var Ml = null;
|
|
7228
|
+
function Nl() {
|
|
7229
|
+
return Ml ||= Cl(), Ml;
|
|
6961
7230
|
}
|
|
6962
|
-
function
|
|
7231
|
+
function Pl(e) {
|
|
6963
7232
|
return (e.children ?? []).filter((e) => e.type === "text" || e.type === "code_inline").map((e) => e.content).join("").trim();
|
|
6964
7233
|
}
|
|
6965
|
-
function
|
|
7234
|
+
function Fl(e) {
|
|
6966
7235
|
let t = [];
|
|
6967
7236
|
for (let n = 0; n < e.length; n += 1) {
|
|
6968
7237
|
let r = e[n];
|
|
@@ -6972,13 +7241,13 @@ function ml(e) {
|
|
|
6972
7241
|
let a = String(r.attrGet("id") ?? ""), o = e[n + 1];
|
|
6973
7242
|
!a || o?.type !== "inline" || t.push({
|
|
6974
7243
|
id: a,
|
|
6975
|
-
text:
|
|
7244
|
+
text: Pl(o),
|
|
6976
7245
|
level: i
|
|
6977
7246
|
});
|
|
6978
7247
|
}
|
|
6979
7248
|
return t;
|
|
6980
7249
|
}
|
|
6981
|
-
function
|
|
7250
|
+
function Il(e) {
|
|
6982
7251
|
return Z.sanitize(e, { ADD_ATTR: [
|
|
6983
7252
|
"target",
|
|
6984
7253
|
"open",
|
|
@@ -6986,16 +7255,16 @@ function hl(e) {
|
|
|
6986
7255
|
"disabled"
|
|
6987
7256
|
] });
|
|
6988
7257
|
}
|
|
6989
|
-
function
|
|
6990
|
-
let t =
|
|
7258
|
+
function Ll(e) {
|
|
7259
|
+
let t = Nl(), n = {}, r = t.parse(e ?? "", n);
|
|
6991
7260
|
return {
|
|
6992
|
-
html:
|
|
6993
|
-
headings:
|
|
7261
|
+
html: Il(t.renderer.render(r, t.options, n)),
|
|
7262
|
+
headings: Fl(r)
|
|
6994
7263
|
};
|
|
6995
7264
|
}
|
|
6996
7265
|
//#endregion
|
|
6997
7266
|
//#region src/utils/markdownEnhance.ts
|
|
6998
|
-
function
|
|
7267
|
+
function Rl(e) {
|
|
6999
7268
|
e.querySelectorAll("[data-md-code]").forEach((e) => {
|
|
7000
7269
|
if (e.dataset.mdPronto) return;
|
|
7001
7270
|
e.dataset.mdPronto = "1";
|
|
@@ -7010,7 +7279,7 @@ function _l(e) {
|
|
|
7010
7279
|
}), e.appendChild(t);
|
|
7011
7280
|
});
|
|
7012
7281
|
}
|
|
7013
|
-
function
|
|
7282
|
+
function zl(e) {
|
|
7014
7283
|
let t = Array.from(e.querySelectorAll(".md-tabs__panel")).filter((e) => !e.parentElement?.hasAttribute("data-md-tabs")), n = /* @__PURE__ */ new Set();
|
|
7015
7284
|
t.forEach((e) => {
|
|
7016
7285
|
if (n.has(e)) return;
|
|
@@ -7021,8 +7290,8 @@ function vl(e) {
|
|
|
7021
7290
|
i.className = "md-tabs", i.setAttribute("data-md-tabs", ""), e.before(i), t.forEach((e) => i.appendChild(e));
|
|
7022
7291
|
});
|
|
7023
7292
|
}
|
|
7024
|
-
function
|
|
7025
|
-
|
|
7293
|
+
function Bl(e) {
|
|
7294
|
+
zl(e), e.querySelectorAll("[data-md-tabs]").forEach((e, t) => {
|
|
7026
7295
|
if (e.dataset.mdPronto) return;
|
|
7027
7296
|
let n = Array.from(e.querySelectorAll(":scope > .md-tabs__panel"));
|
|
7028
7297
|
if (!n.length) return;
|
|
@@ -7044,11 +7313,11 @@ function yl(e) {
|
|
|
7044
7313
|
e.prepend(r), a(0);
|
|
7045
7314
|
});
|
|
7046
7315
|
}
|
|
7047
|
-
var
|
|
7048
|
-
async function
|
|
7049
|
-
return
|
|
7316
|
+
var Vl = null, Hl = 0;
|
|
7317
|
+
async function Ul() {
|
|
7318
|
+
return Vl ||= import("mermaid").then((e) => e.default), Vl;
|
|
7050
7319
|
}
|
|
7051
|
-
var
|
|
7320
|
+
var Wl = /* @__PURE__ */ new Set([
|
|
7052
7321
|
"script",
|
|
7053
7322
|
"iframe",
|
|
7054
7323
|
"object",
|
|
@@ -7064,72 +7333,72 @@ var Cl = /* @__PURE__ */ new Set([
|
|
|
7064
7333
|
"animate",
|
|
7065
7334
|
"set"
|
|
7066
7335
|
]);
|
|
7067
|
-
function
|
|
7336
|
+
function Gl(e) {
|
|
7068
7337
|
for (let t of Array.from(e.attributes)) {
|
|
7069
7338
|
let n = t.name.toLowerCase(), r = t.value.trim().toLowerCase(), i = n === "href" || n === "xlink:href" || n === "src";
|
|
7070
7339
|
(n.startsWith("on") || i && /^(javascript|data|vbscript):/.test(r)) && e.removeAttribute(t.name);
|
|
7071
7340
|
}
|
|
7072
|
-
for (let t of Array.from(e.children))
|
|
7341
|
+
for (let t of Array.from(e.children)) Wl.has(t.localName.toLowerCase()) ? t.remove() : Gl(t);
|
|
7073
7342
|
}
|
|
7074
|
-
function
|
|
7343
|
+
function Kl(e) {
|
|
7075
7344
|
let t = new DOMParser().parseFromString(e, "image/svg+xml");
|
|
7076
7345
|
if (t.querySelector("parsererror")) return null;
|
|
7077
7346
|
let n = t.documentElement;
|
|
7078
|
-
return n.localName.toLowerCase() === "svg" ? (
|
|
7347
|
+
return n.localName.toLowerCase() === "svg" ? (Gl(n), n) : null;
|
|
7079
7348
|
}
|
|
7080
|
-
function
|
|
7349
|
+
function ql(e, t, n) {
|
|
7081
7350
|
return e.getPropertyValue(t).trim() || n;
|
|
7082
7351
|
}
|
|
7083
|
-
function
|
|
7084
|
-
let r =
|
|
7352
|
+
function Jl(e, t, n) {
|
|
7353
|
+
let r = ql(e, t, n), i = document.createElement("span");
|
|
7085
7354
|
i.style.display = "none", i.style.color = r, document.documentElement.appendChild(i);
|
|
7086
7355
|
let a = getComputedStyle(i).color.trim();
|
|
7087
|
-
return i.remove(),
|
|
7356
|
+
return i.remove(), Yl(a) ?? r;
|
|
7088
7357
|
}
|
|
7089
|
-
function
|
|
7358
|
+
function Yl(e) {
|
|
7090
7359
|
if (!e) return null;
|
|
7091
7360
|
let t = /^color\(srgb\s+(-?[\d.]+)\s+(-?[\d.]+)\s+(-?[\d.]+)(?:\s*\/\s*([\d.%]+))?\)$/.exec(e);
|
|
7092
7361
|
if (!t) return e;
|
|
7093
7362
|
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)}`;
|
|
7094
7363
|
return o === void 0 ? `rgb(${s})` : `rgba(${s}, ${o.endsWith("%") ? Number(o.slice(0, -1)) / 100 : Number(o)})`;
|
|
7095
7364
|
}
|
|
7096
|
-
function
|
|
7097
|
-
let t = getComputedStyle(document.documentElement), n =
|
|
7365
|
+
function Xl(e) {
|
|
7366
|
+
let t = getComputedStyle(document.documentElement), n = Jl(t, "--surface", "#ffffff"), r = Jl(t, "--fg", "#141a22"), i = Jl(t, "--primary", "#1f5092"), a = Jl(t, "--primary-soft", "#eef4fb"), o = Jl(t, "--border-strong", "#cdd6e2");
|
|
7098
7367
|
e.initialize({
|
|
7099
7368
|
startOnLoad: !1,
|
|
7100
7369
|
securityLevel: "strict",
|
|
7101
7370
|
theme: "base",
|
|
7102
|
-
fontFamily:
|
|
7371
|
+
fontFamily: ql(t, "--font-sans", "inherit"),
|
|
7103
7372
|
flowchart: { useMaxWidth: !0 },
|
|
7104
7373
|
themeVariables: {
|
|
7105
7374
|
background: n,
|
|
7106
7375
|
primaryColor: a,
|
|
7107
7376
|
primaryTextColor: r,
|
|
7108
7377
|
primaryBorderColor: i,
|
|
7109
|
-
secondaryColor:
|
|
7110
|
-
tertiaryColor:
|
|
7378
|
+
secondaryColor: Jl(t, "--surface-3", "#eef2f7"),
|
|
7379
|
+
tertiaryColor: Jl(t, "--surface-2", "#f8fafc"),
|
|
7111
7380
|
lineColor: o,
|
|
7112
7381
|
textColor: r,
|
|
7113
7382
|
mainBkg: a,
|
|
7114
7383
|
nodeBorder: i,
|
|
7115
|
-
clusterBkg:
|
|
7384
|
+
clusterBkg: Jl(t, "--surface-2", "#f8fafc"),
|
|
7116
7385
|
clusterBorder: o,
|
|
7117
7386
|
fontSize: "13px"
|
|
7118
7387
|
}
|
|
7119
7388
|
});
|
|
7120
7389
|
}
|
|
7121
|
-
async function
|
|
7390
|
+
async function Zl(e, t = !1) {
|
|
7122
7391
|
let n = Array.from(e.querySelectorAll("[data-md-mermaid]")).filter((e) => t || !e.dataset.mdEstado);
|
|
7123
7392
|
if (!n.length) return;
|
|
7124
|
-
let r = await
|
|
7125
|
-
|
|
7393
|
+
let r = await Ul();
|
|
7394
|
+
Xl(r);
|
|
7126
7395
|
for (let e of n) {
|
|
7127
7396
|
let t = e.querySelector(".md-mermaid__fonte")?.textContent ?? "";
|
|
7128
7397
|
if (t.trim()) {
|
|
7129
7398
|
e.querySelector(".md-mermaid__svg")?.remove();
|
|
7130
7399
|
try {
|
|
7131
|
-
|
|
7132
|
-
let { svg: n } = await r.render(`md-diagrama-${
|
|
7400
|
+
Hl += 1;
|
|
7401
|
+
let { svg: n } = await r.render(`md-diagrama-${Hl}`, t), i = Kl(n);
|
|
7133
7402
|
if (!i) {
|
|
7134
7403
|
e.dataset.mdEstado = "erro";
|
|
7135
7404
|
continue;
|
|
@@ -7142,15 +7411,15 @@ async function Al(e, t = !1) {
|
|
|
7142
7411
|
}
|
|
7143
7412
|
}
|
|
7144
7413
|
}
|
|
7145
|
-
async function
|
|
7146
|
-
e && (
|
|
7414
|
+
async function Ql(e) {
|
|
7415
|
+
e && (Rl(e), Bl(e), await Zl(e));
|
|
7147
7416
|
}
|
|
7148
7417
|
//#endregion
|
|
7149
7418
|
//#region src/components/ui/WMarkdownView.vue?vue&type=script&setup=true&lang.ts
|
|
7150
|
-
var
|
|
7419
|
+
var $l = {
|
|
7151
7420
|
key: 0,
|
|
7152
7421
|
class: "w-markdown-view w-markdown-view--empty"
|
|
7153
|
-
},
|
|
7422
|
+
}, eu = ["innerHTML"], tu = /* @__PURE__ */ x({
|
|
7154
7423
|
__name: "WMarkdownView",
|
|
7155
7424
|
props: {
|
|
7156
7425
|
source: {},
|
|
@@ -7158,42 +7427,45 @@ var Ml = {
|
|
|
7158
7427
|
},
|
|
7159
7428
|
emits: ["headings"],
|
|
7160
7429
|
setup(e, { emit: t }) {
|
|
7161
|
-
let n = e, r = t, i = I(null), a = I(
|
|
7162
|
-
U(o, (e) => r("headings", e.headings), { immediate: !0 }), U(s, () => void k(() =>
|
|
7430
|
+
let n = e, r = t, i = I(null), a = I(_l()), o = f(() => (a.value, Ll(n.source ?? ""))), s = f(() => o.value.html), c = f(() => !n.source || !n.source.trim());
|
|
7431
|
+
U(o, (e) => r("headings", e.headings), { immediate: !0 }), U(s, () => void k(() => Ql(i.value)));
|
|
7163
7432
|
let l = null;
|
|
7164
7433
|
function u() {
|
|
7165
|
-
typeof MutationObserver > "u" || (l = new MutationObserver(() => void
|
|
7434
|
+
typeof MutationObserver > "u" || (l = new MutationObserver(() => void Zl(i.value, !0)), l.observe(document.documentElement, {
|
|
7166
7435
|
attributes: !0,
|
|
7167
7436
|
attributeFilter: ["class"]
|
|
7168
7437
|
}));
|
|
7169
7438
|
}
|
|
7170
7439
|
return te(async () => {
|
|
7171
|
-
await k(), await
|
|
7172
|
-
}), ee(() => l?.disconnect()), (t, n) => c.value ? (P(), h("div",
|
|
7440
|
+
await k(), await Ql(i.value), u(), a.value ||= (await vl(), !0);
|
|
7441
|
+
}), ee(() => l?.disconnect()), (t, n) => c.value ? (P(), h("div", $l, B(e.emptyText), 1)) : (P(), h("div", {
|
|
7173
7442
|
key: 1,
|
|
7174
7443
|
ref_key: "raiz",
|
|
7175
7444
|
ref: i,
|
|
7176
7445
|
class: "w-markdown-view",
|
|
7177
7446
|
innerHTML: s.value
|
|
7178
|
-
}, null, 8,
|
|
7447
|
+
}, null, 8, eu));
|
|
7179
7448
|
}
|
|
7180
|
-
}),
|
|
7449
|
+
}), nu = {
|
|
7181
7450
|
class: "w-markdown-editor__toolbar",
|
|
7182
7451
|
role: "toolbar",
|
|
7183
7452
|
"aria-label": "Formatação markdown"
|
|
7184
|
-
},
|
|
7453
|
+
}, ru = [
|
|
7185
7454
|
"aria-label",
|
|
7186
7455
|
"title",
|
|
7187
7456
|
"disabled",
|
|
7188
7457
|
"onClick"
|
|
7189
|
-
],
|
|
7458
|
+
], iu = ["aria-pressed"], au = ["aria-pressed"], ou = {
|
|
7190
7459
|
key: 0,
|
|
7191
7460
|
class: "w-markdown-editor__ajuda"
|
|
7192
|
-
},
|
|
7461
|
+
}, su = [
|
|
7462
|
+
"id",
|
|
7463
|
+
"aria-label",
|
|
7464
|
+
"aria-labelledby",
|
|
7193
7465
|
"value",
|
|
7194
7466
|
"disabled",
|
|
7195
7467
|
"placeholder"
|
|
7196
|
-
],
|
|
7468
|
+
], cu = /* @__PURE__ */ x({
|
|
7197
7469
|
__name: "WMarkdownEditor",
|
|
7198
7470
|
props: {
|
|
7199
7471
|
modelValue: {},
|
|
@@ -7204,7 +7476,10 @@ var Ml = {
|
|
|
7204
7476
|
placeholder: {},
|
|
7205
7477
|
minHeight: { default: "320px" },
|
|
7206
7478
|
maxHeight: { default: "none" },
|
|
7207
|
-
previewMode: { default: "tab" }
|
|
7479
|
+
previewMode: { default: "tab" },
|
|
7480
|
+
inputId: {},
|
|
7481
|
+
ariaLabel: {},
|
|
7482
|
+
ariaLabelledby: {}
|
|
7208
7483
|
},
|
|
7209
7484
|
emits: ["update:modelValue"],
|
|
7210
7485
|
setup(e, { emit: t }) {
|
|
@@ -7375,7 +7650,7 @@ var Ml = {
|
|
|
7375
7650
|
}
|
|
7376
7651
|
];
|
|
7377
7652
|
return (t, n) => (P(), h("div", { class: A(["w-markdown-editor", { "w-markdown-editor--split": o.value }]) }, [
|
|
7378
|
-
g("div",
|
|
7653
|
+
g("div", nu, [
|
|
7379
7654
|
(P(), h(d, null, L(ne, (t) => g("button", {
|
|
7380
7655
|
key: t.label,
|
|
7381
7656
|
type: "button",
|
|
@@ -7395,7 +7670,7 @@ var Ml = {
|
|
|
7395
7670
|
"w-markdown-editor__glyph--italic": t.glyph === "I"
|
|
7396
7671
|
}]),
|
|
7397
7672
|
"aria-hidden": "true"
|
|
7398
|
-
}, B(t.glyph), 3))], 8,
|
|
7673
|
+
}, B(t.glyph), 3))], 8, ru)), 64)),
|
|
7399
7674
|
g("button", {
|
|
7400
7675
|
type: "button",
|
|
7401
7676
|
class: A(["w-markdown-editor__tool w-markdown-editor__tool--ajuda", { "w-markdown-editor__tool--active": N.value }]),
|
|
@@ -7406,7 +7681,7 @@ var Ml = {
|
|
|
7406
7681
|
}, [...n[1] ||= [g("i", {
|
|
7407
7682
|
class: "pi pi-question-circle",
|
|
7408
7683
|
"aria-hidden": "true"
|
|
7409
|
-
}, null, -1)]], 10,
|
|
7684
|
+
}, null, -1)]], 10, iu),
|
|
7410
7685
|
o.value ? m("", !0) : (P(), h("button", {
|
|
7411
7686
|
key: 0,
|
|
7412
7687
|
type: "button",
|
|
@@ -7418,9 +7693,9 @@ var Ml = {
|
|
|
7418
7693
|
}, [g("i", {
|
|
7419
7694
|
class: A(a.value ? "pi pi-pencil" : "pi pi-eye"),
|
|
7420
7695
|
"aria-hidden": "true"
|
|
7421
|
-
}, null, 2)], 10,
|
|
7696
|
+
}, null, 2)], 10, au))
|
|
7422
7697
|
]),
|
|
7423
|
-
N.value ? (P(), h("dl",
|
|
7698
|
+
N.value ? (P(), h("dl", ou, [(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),
|
|
7424
7699
|
g("div", {
|
|
7425
7700
|
class: "w-markdown-editor__body",
|
|
7426
7701
|
style: M({
|
|
@@ -7429,15 +7704,18 @@ var Ml = {
|
|
|
7429
7704
|
})
|
|
7430
7705
|
}, [s.value ? (P(), h("textarea", {
|
|
7431
7706
|
key: 0,
|
|
7707
|
+
id: e.inputId,
|
|
7432
7708
|
ref_key: "textareaRef",
|
|
7433
7709
|
ref: i,
|
|
7434
7710
|
class: "w-markdown-editor__textarea",
|
|
7711
|
+
"aria-label": e.ariaLabel,
|
|
7712
|
+
"aria-labelledby": e.ariaLabelledby,
|
|
7435
7713
|
value: e.modelValue,
|
|
7436
7714
|
disabled: e.disabled,
|
|
7437
7715
|
placeholder: e.placeholder,
|
|
7438
7716
|
spellcheck: "false",
|
|
7439
7717
|
onInput: l
|
|
7440
|
-
}, null, 40,
|
|
7718
|
+
}, null, 40, su)) : m("", !0), c.value ? (P(), p(tu, {
|
|
7441
7719
|
key: 1,
|
|
7442
7720
|
class: "w-markdown-editor__preview",
|
|
7443
7721
|
source: e.modelValue,
|
|
@@ -7445,28 +7723,28 @@ var Ml = {
|
|
|
7445
7723
|
}, null, 8, ["source"])) : m("", !0)], 4)
|
|
7446
7724
|
], 2));
|
|
7447
7725
|
}
|
|
7448
|
-
}),
|
|
7726
|
+
}), lu = {
|
|
7449
7727
|
key: 0,
|
|
7450
7728
|
class: "w-md-toc",
|
|
7451
7729
|
"aria-label": "Índice do documento"
|
|
7452
|
-
},
|
|
7730
|
+
}, uu = { class: "w-md-toc__titulo" }, du = {
|
|
7453
7731
|
key: 0,
|
|
7454
7732
|
class: "w-md-toc__busca"
|
|
7455
|
-
},
|
|
7733
|
+
}, fu = { class: "w-md-toc__lista" }, pu = [
|
|
7456
7734
|
"aria-expanded",
|
|
7457
7735
|
"aria-label",
|
|
7458
7736
|
"onClick"
|
|
7459
|
-
],
|
|
7737
|
+
], mu = {
|
|
7460
7738
|
key: 1,
|
|
7461
7739
|
class: "w-md-toc__chevron w-md-toc__chevron--vazio",
|
|
7462
7740
|
"aria-hidden": "true"
|
|
7463
|
-
},
|
|
7741
|
+
}, hu = ["href", "onClick"], gu = {
|
|
7464
7742
|
key: 0,
|
|
7465
7743
|
class: "w-md-toc__lista"
|
|
7466
|
-
},
|
|
7744
|
+
}, _u = ["href", "onClick"], vu = {
|
|
7467
7745
|
key: 0,
|
|
7468
7746
|
class: "w-md-toc__vazio"
|
|
7469
|
-
},
|
|
7747
|
+
}, yu = /* @__PURE__ */ x({
|
|
7470
7748
|
__name: "WMarkdownToc",
|
|
7471
7749
|
props: {
|
|
7472
7750
|
headings: {},
|
|
@@ -7522,9 +7800,9 @@ var Ml = {
|
|
|
7522
7800
|
block: "start"
|
|
7523
7801
|
}));
|
|
7524
7802
|
}
|
|
7525
|
-
return U(() => t.headings, () => void k(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (P(), h("nav",
|
|
7526
|
-
g("p",
|
|
7527
|
-
e.searchable ? (P(), h("div",
|
|
7803
|
+
return U(() => t.headings, () => void k(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (P(), h("nav", lu, [
|
|
7804
|
+
g("p", uu, B(e.title), 1),
|
|
7805
|
+
e.searchable ? (P(), h("div", du, [i[1] ||= g("i", {
|
|
7528
7806
|
class: "pi pi-search",
|
|
7529
7807
|
"aria-hidden": "true"
|
|
7530
7808
|
}, null, -1), G(g("input", {
|
|
@@ -7536,7 +7814,7 @@ var Ml = {
|
|
|
7536
7814
|
g("div", {
|
|
7537
7815
|
class: "w-md-toc__corpo",
|
|
7538
7816
|
style: M({ maxHeight: e.maxHeight })
|
|
7539
|
-
}, [g("ul",
|
|
7817
|
+
}, [g("ul", fu, [(P(!0), h(d, null, L(c.value, (e) => (P(), h("li", {
|
|
7540
7818
|
key: e.titulo.id,
|
|
7541
7819
|
class: "w-md-toc__grupo"
|
|
7542
7820
|
}, [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", {
|
|
@@ -7549,19 +7827,19 @@ var Ml = {
|
|
|
7549
7827
|
}, [g("i", {
|
|
7550
7828
|
class: A(u(e) ? "pi pi-chevron-down" : "pi pi-chevron-right"),
|
|
7551
7829
|
"aria-hidden": "true"
|
|
7552
|
-
}, null, 2)], 8,
|
|
7830
|
+
}, null, 2)], 8, pu)) : (P(), h("span", mu)), g("a", {
|
|
7553
7831
|
href: `#${e.titulo.id}`,
|
|
7554
7832
|
onClick: q((t) => v(e.titulo.id), ["prevent"])
|
|
7555
|
-
}, B(e.titulo.text), 9,
|
|
7833
|
+
}, B(e.titulo.text), 9, hu)], 2), u(e) ? (P(), h("ul", gu, [(P(!0), h(d, null, L(e.filhos, (e) => (P(), h("li", {
|
|
7556
7834
|
key: e.id,
|
|
7557
7835
|
class: A(["w-md-toc__item w-md-toc__item--n3", { "w-md-toc__item--ativo": n.value === e.id }])
|
|
7558
7836
|
}, [g("a", {
|
|
7559
7837
|
href: `#${e.id}`,
|
|
7560
7838
|
onClick: q((t) => v(e.id), ["prevent"])
|
|
7561
|
-
}, B(e.text), 9,
|
|
7839
|
+
}, B(e.text), 9, _u)], 2))), 128))])) : m("", !0)]))), 128))]), l.value && !c.value.length ? (P(), h("p", vu, "Nenhuma seção encontrada")) : m("", !0)], 4)
|
|
7562
7840
|
])) : m("", !0);
|
|
7563
7841
|
}
|
|
7564
|
-
}),
|
|
7842
|
+
}), bu = /* @__PURE__ */ x({
|
|
7565
7843
|
name: "WDialog",
|
|
7566
7844
|
inheritAttrs: !1,
|
|
7567
7845
|
__name: "WDialog",
|
|
@@ -7572,16 +7850,16 @@ var Ml = {
|
|
|
7572
7850
|
fn: W((t) => [R(e.$slots, n, j(C(t ?? {})))])
|
|
7573
7851
|
}))]), 1040, ["append-to"]));
|
|
7574
7852
|
}
|
|
7575
|
-
}),
|
|
7853
|
+
}), xu = ["aria-label"], Su = [
|
|
7576
7854
|
"aria-selected",
|
|
7577
7855
|
"tabindex",
|
|
7578
7856
|
"disabled",
|
|
7579
7857
|
"onClick",
|
|
7580
7858
|
"onKeydown"
|
|
7581
|
-
],
|
|
7859
|
+
], Cu = {
|
|
7582
7860
|
key: 1,
|
|
7583
7861
|
class: "w-tab-bar__badge"
|
|
7584
|
-
},
|
|
7862
|
+
}, wu = /* @__PURE__ */ x({
|
|
7585
7863
|
__name: "WTabBar",
|
|
7586
7864
|
props: {
|
|
7587
7865
|
modelValue: {},
|
|
@@ -7630,20 +7908,20 @@ var Ml = {
|
|
|
7630
7908
|
"aria-hidden": "true"
|
|
7631
7909
|
}, null, 2)) : m("", !0),
|
|
7632
7910
|
g("span", null, B(t.label), 1),
|
|
7633
|
-
t.badge !== void 0 && t.badge !== null ? (P(), h("span",
|
|
7634
|
-
], 42,
|
|
7911
|
+
t.badge !== void 0 && t.badge !== null ? (P(), h("span", Cu, B(t.badge), 1)) : m("", !0)
|
|
7912
|
+
], 42, Su))), 128))], 8, xu));
|
|
7635
7913
|
}
|
|
7636
|
-
}),
|
|
7914
|
+
}), Tu = { class: "w-tab-nav" }, Eu = ["aria-label"], Du = [
|
|
7637
7915
|
"tabindex",
|
|
7638
7916
|
"aria-selected",
|
|
7639
7917
|
"onClick",
|
|
7640
7918
|
"onAuxclick",
|
|
7641
7919
|
"onContextmenu",
|
|
7642
7920
|
"onKeydown"
|
|
7643
|
-
],
|
|
7921
|
+
], Ou = ["title"], ku = ["aria-label", "onClick"], Au = ["aria-label", "onClick"], ju = {
|
|
7644
7922
|
key: 0,
|
|
7645
7923
|
class: "w-tab-nav__actions"
|
|
7646
|
-
},
|
|
7924
|
+
}, Mu = 6, Nu = /* @__PURE__ */ x({
|
|
7647
7925
|
__name: "WTabNav",
|
|
7648
7926
|
props: {
|
|
7649
7927
|
tabs: {},
|
|
@@ -7723,7 +8001,7 @@ var Ml = {
|
|
|
7723
8001
|
}
|
|
7724
8002
|
function w(e) {
|
|
7725
8003
|
if (e.color) return e.color;
|
|
7726
|
-
if (e.group) return S(C(e.group) %
|
|
8004
|
+
if (e.group) return S(C(e.group) % Mu + 1);
|
|
7727
8005
|
}
|
|
7728
8006
|
function T(e) {
|
|
7729
8007
|
let t = w(e);
|
|
@@ -7733,7 +8011,7 @@ var Ml = {
|
|
|
7733
8011
|
let t = i.value[e]?.group;
|
|
7734
8012
|
return !!t && t !== i.value[e - 1]?.group;
|
|
7735
8013
|
}
|
|
7736
|
-
return (t, n) => (P(), h("div",
|
|
8014
|
+
return (t, n) => (P(), h("div", Tu, [
|
|
7737
8015
|
g("div", {
|
|
7738
8016
|
ref_key: "trilho",
|
|
7739
8017
|
ref: s,
|
|
@@ -7775,7 +8053,7 @@ var Ml = {
|
|
|
7775
8053
|
}, null, 2)) : m("", !0), g("span", {
|
|
7776
8054
|
class: "w-tab-nav__title",
|
|
7777
8055
|
title: e.title
|
|
7778
|
-
}, B(e.title), 9,
|
|
8056
|
+
}, B(e.title), 9, Ou)]),
|
|
7779
8057
|
g("button", {
|
|
7780
8058
|
type: "button",
|
|
7781
8059
|
class: "w-tab-nav__menu",
|
|
@@ -7785,7 +8063,7 @@ var Ml = {
|
|
|
7785
8063
|
}, [...n[0] ||= [g("i", {
|
|
7786
8064
|
class: "pi pi-ellipsis-v",
|
|
7787
8065
|
"aria-hidden": "true"
|
|
7788
|
-
}, null, -1)]], 8,
|
|
8066
|
+
}, null, -1)]], 8, ku),
|
|
7789
8067
|
e.closable ? (P(), h("button", {
|
|
7790
8068
|
key: 0,
|
|
7791
8069
|
type: "button",
|
|
@@ -7796,9 +8074,9 @@ var Ml = {
|
|
|
7796
8074
|
}, [...n[1] ||= [g("i", {
|
|
7797
8075
|
class: "pi pi-times",
|
|
7798
8076
|
"aria-hidden": "true"
|
|
7799
|
-
}, null, -1)]], 8,
|
|
7800
|
-
], 46,
|
|
7801
|
-
t.$slots.actions ? (P(), h("div",
|
|
8077
|
+
}, null, -1)]], 8, Au)) : m("", !0)
|
|
8078
|
+
], 46, Du)], 64))), 128))], 8, Eu),
|
|
8079
|
+
t.$slots.actions ? (P(), h("div", ju, [R(t.$slots, "actions")])) : m("", !0),
|
|
7802
8080
|
b(H(be), {
|
|
7803
8081
|
ref_key: "menu",
|
|
7804
8082
|
ref: _,
|
|
@@ -7806,7 +8084,7 @@ var Ml = {
|
|
|
7806
8084
|
}, null, 8, ["model"])
|
|
7807
8085
|
]));
|
|
7808
8086
|
}
|
|
7809
|
-
}),
|
|
8087
|
+
}), Pu = x({
|
|
7810
8088
|
name: "WTabPane",
|
|
7811
8089
|
props: {
|
|
7812
8090
|
tab: {
|
|
@@ -7852,7 +8130,7 @@ var Ml = {
|
|
|
7852
8130
|
key: e.tab.remount
|
|
7853
8131
|
}) : null;
|
|
7854
8132
|
}
|
|
7855
|
-
}),
|
|
8133
|
+
}), Fu = { class: "w-tab-viewport" }, Iu = { class: "w-tab-viewport__scroll" }, Lu = /* @__PURE__ */ x({
|
|
7856
8134
|
__name: "WTabViewport",
|
|
7857
8135
|
props: { tabs: {} },
|
|
7858
8136
|
setup(e) {
|
|
@@ -7872,12 +8150,12 @@ var Ml = {
|
|
|
7872
8150
|
return U(r, (e) => {
|
|
7873
8151
|
let t = new Set(e.map((e) => e.key));
|
|
7874
8152
|
for (let e of i.keys()) t.has(e) || i.delete(e);
|
|
7875
|
-
}), (t, i) => (P(), h("div",
|
|
8153
|
+
}), (t, i) => (P(), h("div", Fu, [(P(!0), h(d, null, L(r.value, (t) => G((P(), h("div", {
|
|
7876
8154
|
key: `${t.key}#${t.remount}`,
|
|
7877
8155
|
ref_for: !0,
|
|
7878
8156
|
ref: (e) => o(t.key, e),
|
|
7879
8157
|
class: "w-tab-viewport__pane"
|
|
7880
|
-
}, [g("div",
|
|
8158
|
+
}, [g("div", Iu, [b(H(Pu), {
|
|
7881
8159
|
tab: t,
|
|
7882
8160
|
api: e.tabs,
|
|
7883
8161
|
active: t.key === n.value,
|
|
@@ -7889,29 +8167,29 @@ var Ml = {
|
|
|
7889
8167
|
"host-el"
|
|
7890
8168
|
])])])), [[de, t.key === n.value]])), 128))]));
|
|
7891
8169
|
}
|
|
7892
|
-
}),
|
|
8170
|
+
}), Ru = ["aria-busy"], zu = { class: "w-kanban-board__header" }, Bu = { class: "w-kanban-board__title" }, Vu = { class: "w-kanban-board__count" }, Hu = [
|
|
7893
8171
|
"aria-label",
|
|
7894
8172
|
"onDragover",
|
|
7895
8173
|
"onDragleave",
|
|
7896
8174
|
"onDrop"
|
|
7897
|
-
],
|
|
8175
|
+
], Uu = {
|
|
7898
8176
|
key: 0,
|
|
7899
8177
|
class: "w-kanban-board__indicator"
|
|
7900
|
-
},
|
|
8178
|
+
}, Wu = [
|
|
7901
8179
|
"draggable",
|
|
7902
8180
|
"onDragstart",
|
|
7903
8181
|
"onClick",
|
|
7904
8182
|
"onKeydown"
|
|
7905
|
-
],
|
|
8183
|
+
], Gu = { class: "w-kanban-board__card-fallback" }, Ku = {
|
|
7906
8184
|
key: 0,
|
|
7907
8185
|
class: "w-kanban-board__indicator"
|
|
7908
|
-
},
|
|
8186
|
+
}, qu = {
|
|
7909
8187
|
key: 1,
|
|
7910
8188
|
class: "w-kanban-board__empty"
|
|
7911
|
-
},
|
|
8189
|
+
}, Ju = {
|
|
7912
8190
|
key: 0,
|
|
7913
8191
|
class: "w-kanban-board__footer"
|
|
7914
|
-
},
|
|
8192
|
+
}, Yu = /* @__PURE__ */ x({
|
|
7915
8193
|
__name: "WKanbanBoard",
|
|
7916
8194
|
props: {
|
|
7917
8195
|
columns: {},
|
|
@@ -8015,7 +8293,7 @@ var Ml = {
|
|
|
8015
8293
|
class: A(["w-kanban-board__column", { "w-kanban-board__column--over": !!i.value && a.value?.column === r.value }]),
|
|
8016
8294
|
style: M(r.accent ? { "--w-kanban-accent": r.accent } : void 0)
|
|
8017
8295
|
}, [
|
|
8018
|
-
g("header",
|
|
8296
|
+
g("header", zu, [R(t.$slots, "column-header", { column: r }, () => [g("span", Bu, B(r.label), 1), g("span", Vu, B(r.items.length), 1)]), R(t.$slots, "column-action", { column: r })]),
|
|
8019
8297
|
g("div", {
|
|
8020
8298
|
ref_for: !0,
|
|
8021
8299
|
ref: (e) => s(r.value, e),
|
|
@@ -8030,7 +8308,7 @@ var Ml = {
|
|
|
8030
8308
|
onDragleave: (e) => b(r, e),
|
|
8031
8309
|
onDrop: (e) => x(r, e)
|
|
8032
8310
|
}, [
|
|
8033
|
-
(P(!0), h(d, null, L(r.items, (e, n) => (P(), h(d, { key: String(c(e)) }, [T(r, n) ? (P(), h("div",
|
|
8311
|
+
(P(!0), h(d, null, L(r.items, (e, n) => (P(), h(d, { key: String(c(e)) }, [T(r, n) ? (P(), h("div", Uu)) : m("", !0), g("div", {
|
|
8034
8312
|
class: A(["w-kanban-board__card", {
|
|
8035
8313
|
"w-kanban-board__card--dragging": f(e),
|
|
8036
8314
|
"w-kanban-board__card--static": !u(e)
|
|
@@ -8045,18 +8323,18 @@ var Ml = {
|
|
|
8045
8323
|
}, [R(t.$slots, "card", {
|
|
8046
8324
|
item: e,
|
|
8047
8325
|
column: r
|
|
8048
|
-
}, () => [g("span",
|
|
8049
|
-
T(r, r.items.length) ? (P(), h("div",
|
|
8050
|
-
r.items.length ? m("", !0) : (P(), h("div",
|
|
8051
|
-
], 44,
|
|
8052
|
-
t.$slots["column-footer"] ? (P(), h("footer",
|
|
8326
|
+
}, () => [g("span", Gu, B(l(e)), 1)])], 42, Wu)], 64))), 128)),
|
|
8327
|
+
T(r, r.items.length) ? (P(), h("div", Ku)) : m("", !0),
|
|
8328
|
+
r.items.length ? m("", !0) : (P(), h("div", qu, [R(t.$slots, "empty-column", { column: r }, () => [n[0] ||= y("Nenhum item", -1)])]))
|
|
8329
|
+
], 44, Hu),
|
|
8330
|
+
t.$slots["column-footer"] ? (P(), h("footer", Ju, [R(t.$slots, "column-footer", {
|
|
8053
8331
|
column: r,
|
|
8054
8332
|
items: r.items
|
|
8055
8333
|
})])) : m("", !0)
|
|
8056
|
-
], 6))), 128))], 10,
|
|
8334
|
+
], 6))), 128))], 10, Ru));
|
|
8057
8335
|
}
|
|
8058
8336
|
});
|
|
8059
8337
|
//#endregion
|
|
8060
|
-
export {
|
|
8338
|
+
export { wt as $, Oa as A, ji as B, Co as C, oo as D, so as E, ta as F, er as G, vi as H, na as I, gn as J, Zn as K, ia as L, ga as M, ua as N, ao as O, la as P, Lt as Q, Zi as R, jo as S, bo as T, Hr as U, Ai as V, tr as W, Ht as X, $t as Y, Vt as Z, os as _, bu as a, Xo as b, tu as c, cc as d, xt as et, Js as f, ss as g, As as h, wu as i, xa as j, La as k, al as l, Is as m, Lu as n, St as nt, yu as o, Ws as p, qn as q, Nu as r, tt as rt, cu as s, Yu as t, Tt as tt, kc as u, as as v, xo as w, Uo as x, es as y, Li as z };
|
|
8061
8339
|
|
|
8062
|
-
//# sourceMappingURL=components-
|
|
8340
|
+
//# sourceMappingURL=components-BV6JxbiL.js.map
|