@wgalleti/primevue-components 0.28.1 → 0.29.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/crud/WCrudFormDialog.vue.d.ts +10 -1
- package/dist/components/crud/WEditableTable.vue.d.ts +4 -4
- package/dist/{components-jGABNYAb.cjs → components-2IJ-Jyne.cjs} +8 -8
- package/dist/components-2IJ-Jyne.cjs.map +1 -0
- package/dist/{components-BZNvfFed.js → components-DokVE_Ug.js} +497 -473
- package/dist/components-DokVE_Ug.js.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/primevue-components.css +1 -1
- package/dist/types/editableTable.d.ts +7 -2
- package/package.json +1 -1
- package/dist/components-BZNvfFed.js.map +0 -1
- package/dist/components-jGABNYAb.cjs.map +0 -1
|
@@ -965,7 +965,7 @@ var yt = { class: "w-fk-option" }, bt = { class: "w-fk-option__label" }, xt = {
|
|
|
965
965
|
"append-to",
|
|
966
966
|
"header"
|
|
967
967
|
]),
|
|
968
|
-
We.value ? (M(), p(
|
|
968
|
+
We.value ? (M(), p(Ln, {
|
|
969
969
|
key: 0,
|
|
970
970
|
visible: ft.value,
|
|
971
971
|
title: kt.value,
|
|
@@ -2244,7 +2244,10 @@ var cn = { class: "w-crud-form" }, ln = {
|
|
|
2244
2244
|
c[i.field] ? (M(), h("small", jn, L(c[i.field]), 1)) : o[i.field] ? (M(), h("small", Mn, L(o[i.field]), 1)) : m("", !0)
|
|
2245
2245
|
], 6)), [[O, D(i)]])], void 0, i.field)), 128))], 4)]))), 128))]));
|
|
2246
2246
|
}
|
|
2247
|
-
}), Pn = { class: "w-crud-form-
|
|
2247
|
+
}), Pn = { class: "w-crud-form-main" }, Fn = {
|
|
2248
|
+
key: 0,
|
|
2249
|
+
class: "w-crud-form-aside"
|
|
2250
|
+
}, In = { class: "w-crud-form-footer" }, Ln = /* @__PURE__ */ x({
|
|
2248
2251
|
__name: "WCrudFormDialog",
|
|
2249
2252
|
props: {
|
|
2250
2253
|
visible: { type: Boolean },
|
|
@@ -2259,7 +2262,8 @@ var cn = { class: "w-crud-form" }, ln = {
|
|
|
2259
2262
|
},
|
|
2260
2263
|
width: { default: "480px" },
|
|
2261
2264
|
formColumns: { default: void 0 },
|
|
2262
|
-
keyboardNav: { type: Boolean }
|
|
2265
|
+
keyboardNav: { type: Boolean },
|
|
2266
|
+
asideWidth: { default: void 0 }
|
|
2263
2267
|
},
|
|
2264
2268
|
emits: [
|
|
2265
2269
|
"update:visible",
|
|
@@ -2291,11 +2295,12 @@ var cn = { class: "w-crud-form" }, ln = {
|
|
|
2291
2295
|
default: V(() => [g("form", {
|
|
2292
2296
|
ref_key: "formRef",
|
|
2293
2297
|
ref: o,
|
|
2294
|
-
class: "w-crud-form",
|
|
2298
|
+
class: k(["w-crud-form", { "w-crud-form--with-aside": t.$slots.aside }]),
|
|
2299
|
+
style: j(e.asideWidth ? { "--w-form-aside": e.asideWidth } : void 0),
|
|
2295
2300
|
onSubmit: W(c, ["prevent"]),
|
|
2296
2301
|
onKeydownCapture: r[2] ||= (...e) => R(d) && R(d)(...e)
|
|
2297
2302
|
}, [
|
|
2298
|
-
b(Nn, {
|
|
2303
|
+
g("div", Pn, [b(Nn, {
|
|
2299
2304
|
ref_key: "rendererRef",
|
|
2300
2305
|
ref: a,
|
|
2301
2306
|
fields: e.fields,
|
|
@@ -2316,12 +2321,15 @@ var cn = { class: "w-crud-form" }, ln = {
|
|
|
2316
2321
|
"is-editing",
|
|
2317
2322
|
"disabled",
|
|
2318
2323
|
"columns"
|
|
2319
|
-
]),
|
|
2320
|
-
I(t.$slots, "after-fields", {
|
|
2324
|
+
]), I(t.$slots, "after-fields", {
|
|
2321
2325
|
formData: e.formData,
|
|
2322
2326
|
isEditing: e.isEditing
|
|
2323
|
-
}),
|
|
2324
|
-
|
|
2327
|
+
})]),
|
|
2328
|
+
t.$slots.aside ? (M(), h("aside", Fn, [I(t.$slots, "aside", {
|
|
2329
|
+
formData: e.formData,
|
|
2330
|
+
isEditing: e.isEditing
|
|
2331
|
+
})])) : m("", !0),
|
|
2332
|
+
g("div", In, [I(t.$slots, "footer", {
|
|
2325
2333
|
saving: e.saving,
|
|
2326
2334
|
disabled: e.disabled
|
|
2327
2335
|
}, () => [b(R(K), {
|
|
@@ -2339,7 +2347,7 @@ var cn = { class: "w-crud-form" }, ln = {
|
|
|
2339
2347
|
icon: "pi pi-check",
|
|
2340
2348
|
loading: e.saving
|
|
2341
2349
|
}, null, 8, ["label", "loading"]))])])
|
|
2342
|
-
],
|
|
2350
|
+
], 38)]),
|
|
2343
2351
|
_: 3
|
|
2344
2352
|
}, 8, [
|
|
2345
2353
|
"append-to",
|
|
@@ -2352,33 +2360,33 @@ var cn = { class: "w-crud-form" }, ln = {
|
|
|
2352
2360
|
});
|
|
2353
2361
|
//#endregion
|
|
2354
2362
|
//#region src/utils/csv.ts
|
|
2355
|
-
function
|
|
2363
|
+
function Rn(e, t) {
|
|
2356
2364
|
let n = t[e.field];
|
|
2357
2365
|
return e.format ? e.format(n, t) : n == null ? "" : typeof n == "boolean" ? n ? "Sim" : "Não" : String(n);
|
|
2358
2366
|
}
|
|
2359
|
-
function
|
|
2367
|
+
function zn(e, t) {
|
|
2360
2368
|
return e.includes("\"") || e.includes(t) || e.includes("\n") || e.includes("\r") ? `"${e.replace(/"/g, "\"\"")}"` : e;
|
|
2361
2369
|
}
|
|
2362
|
-
function
|
|
2370
|
+
function Bn(e, t, n = {}) {
|
|
2363
2371
|
let r = n.separator ?? ";";
|
|
2364
|
-
return "" + [t.map((e) =>
|
|
2372
|
+
return "" + [t.map((e) => zn(e.header, r)).join(r), ...e.map((e) => t.map((t) => zn(Rn(t, e), r)).join(r))].join("\r\n");
|
|
2365
2373
|
}
|
|
2366
|
-
function
|
|
2374
|
+
function Vn(e, t = "export.csv") {
|
|
2367
2375
|
let n = new Blob([e], { type: "text/csv;charset=utf-8;" }), r = URL.createObjectURL(n), i = document.createElement("a");
|
|
2368
2376
|
i.href = r, i.download = t, document.body.appendChild(i), i.click(), document.body.removeChild(i), URL.revokeObjectURL(r);
|
|
2369
2377
|
}
|
|
2370
2378
|
//#endregion
|
|
2371
2379
|
//#region src/components/crud/WCrudView.vue?vue&type=script&setup=true&lang.ts
|
|
2372
|
-
var
|
|
2380
|
+
var Hn = { class: "w-crud" }, Un = {
|
|
2373
2381
|
key: 0,
|
|
2374
2382
|
class: "w-crud-header"
|
|
2375
|
-
},
|
|
2383
|
+
}, Wn = { class: "w-crud-header-content" }, Gn = { class: "w-crud-title" }, Kn = {
|
|
2376
2384
|
key: 0,
|
|
2377
2385
|
class: "w-crud-subtitle"
|
|
2378
|
-
},
|
|
2386
|
+
}, qn = { class: "w-crud-header-actions" }, Jn = {
|
|
2379
2387
|
key: 0,
|
|
2380
2388
|
class: "w-crud-kpis"
|
|
2381
|
-
},
|
|
2389
|
+
}, Yn = { class: "w-crud-kpi-content" }, Xn = { class: "w-crud-kpi-label" }, Zn = { class: "w-crud-kpi-value" }, Qn = { class: "w-crud-content-main" }, $n = {
|
|
2382
2390
|
key: 0,
|
|
2383
2391
|
class: "w-crud-filters",
|
|
2384
2392
|
style: {
|
|
@@ -2388,10 +2396,10 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
2388
2396
|
"align-items": "center",
|
|
2389
2397
|
"margin-bottom": "0.75rem"
|
|
2390
2398
|
}
|
|
2391
|
-
},
|
|
2399
|
+
}, er = {
|
|
2392
2400
|
key: 1,
|
|
2393
2401
|
class: "w-crud-table"
|
|
2394
|
-
},
|
|
2402
|
+
}, tr = {
|
|
2395
2403
|
key: 0,
|
|
2396
2404
|
class: "w-crud-bulkbar",
|
|
2397
2405
|
style: {
|
|
@@ -2404,47 +2412,47 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
2404
2412
|
background: "var(--p-primary-50, #eef2ff)",
|
|
2405
2413
|
color: "var(--p-primary-700, #3730a3)"
|
|
2406
2414
|
}
|
|
2407
|
-
},
|
|
2415
|
+
}, nr = { style: {
|
|
2408
2416
|
"font-weight": "600",
|
|
2409
2417
|
"font-size": "0.85rem",
|
|
2410
2418
|
"margin-right": "auto"
|
|
2411
|
-
} },
|
|
2419
|
+
} }, rr = { class: "w-crud-toolbar" }, ir = { class: "w-crud-toolbar-start" }, ar = { class: "w-crud-toolbar-end" }, or = { style: {
|
|
2412
2420
|
display: "flex",
|
|
2413
2421
|
"flex-direction": "column",
|
|
2414
2422
|
gap: "0.35rem",
|
|
2415
2423
|
"min-width": "180px"
|
|
2416
|
-
} },
|
|
2424
|
+
} }, sr = ["for"], cr = {
|
|
2417
2425
|
key: 2,
|
|
2418
2426
|
class: "w-crud-view-toggle"
|
|
2419
|
-
},
|
|
2427
|
+
}, lr = { class: "w-crud-actions" }, ur = {
|
|
2420
2428
|
key: 2,
|
|
2421
2429
|
class: "w-crud-cards-wrap"
|
|
2422
|
-
},
|
|
2430
|
+
}, dr = { class: "w-crud-toolbar w-crud-toolbar--standalone" }, fr = { class: "w-crud-toolbar-start" }, pr = { class: "w-crud-toolbar-end" }, mr = {
|
|
2423
2431
|
key: 1,
|
|
2424
2432
|
class: "w-crud-view-toggle"
|
|
2425
|
-
},
|
|
2433
|
+
}, hr = {
|
|
2426
2434
|
key: 0,
|
|
2427
2435
|
class: "w-crud-cards-loading"
|
|
2428
|
-
},
|
|
2436
|
+
}, gr = [
|
|
2429
2437
|
"onClick",
|
|
2430
2438
|
"onDblclick",
|
|
2431
2439
|
"onContextmenu"
|
|
2432
|
-
],
|
|
2440
|
+
], _r = { class: "w-crud-card-body" }, vr = {
|
|
2433
2441
|
key: 0,
|
|
2434
2442
|
class: "w-crud-card-label"
|
|
2435
|
-
},
|
|
2443
|
+
}, yr = { class: "w-crud-card-value" }, br = {
|
|
2436
2444
|
key: 0,
|
|
2437
2445
|
class: "w-crud-card-actions"
|
|
2438
|
-
},
|
|
2446
|
+
}, xr = {
|
|
2439
2447
|
key: 0,
|
|
2440
2448
|
class: "w-crud-rail"
|
|
2441
|
-
},
|
|
2449
|
+
}, Sr = {
|
|
2442
2450
|
key: 1,
|
|
2443
2451
|
class: "w-crud-rail-sep"
|
|
2444
|
-
},
|
|
2452
|
+
}, Cr = {
|
|
2445
2453
|
key: 2,
|
|
2446
2454
|
class: "w-crud-rail-sep"
|
|
2447
|
-
},
|
|
2455
|
+
}, wr = /* @__PURE__ */ x({
|
|
2448
2456
|
__name: "WCrudView",
|
|
2449
2457
|
props: /*@__PURE__*/ E({
|
|
2450
2458
|
crud: {},
|
|
@@ -2710,7 +2718,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
2710
2718
|
if (!$e.value) {
|
|
2711
2719
|
$e.value = !0;
|
|
2712
2720
|
try {
|
|
2713
|
-
|
|
2721
|
+
Vn(Bn(o.csvScope === "page" ? o.crud.items.value : await o.crud.fetchAll(o.csvPageSize), xe.value), o.csvFilename);
|
|
2714
2722
|
} finally {
|
|
2715
2723
|
$e.value = !1;
|
|
2716
2724
|
}
|
|
@@ -2720,21 +2728,21 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
2720
2728
|
se(), U(), o.autoInit && o.crud.init();
|
|
2721
2729
|
}), (e, n) => {
|
|
2722
2730
|
let r = ae("tooltip");
|
|
2723
|
-
return M(), h("div",
|
|
2724
|
-
t.showHeader ? (M(), h("div",
|
|
2731
|
+
return M(), h("div", Hn, [
|
|
2732
|
+
t.showHeader ? (M(), h("div", Un, [g("div", Wn, [g("h1", Gn, L(t.title), 1), t.subtitle ? (M(), h("p", Kn, L(t.subtitle), 1)) : m("", !0)]), g("div", qn, [I(e.$slots, "header-actions"), Pe.value && !t.actionRail ? (M(), p(R(K), {
|
|
2725
2733
|
key: 0,
|
|
2726
2734
|
label: "Novo",
|
|
2727
2735
|
icon: "pi pi-plus",
|
|
2728
2736
|
onClick: n[0] ||= (e) => t.crud.openCreateDialog()
|
|
2729
2737
|
})) : m("", !0)])])) : m("", !0),
|
|
2730
|
-
I(e.$slots, "before-table", {}, () => [Ne.value.length ? (M(), h("div",
|
|
2738
|
+
I(e.$slots, "before-table", {}, () => [Ne.value.length ? (M(), h("div", Jn, [(M(!0), h(d, null, F(Ne.value, (e, t) => (M(), h("div", {
|
|
2731
2739
|
key: t,
|
|
2732
2740
|
class: "w-crud-kpi"
|
|
2733
2741
|
}, [g("div", { class: k(["w-crud-kpi-icon", e.severity ? `w-crud-kpi-icon--${e.severity}` : ""]) }, [g("i", {
|
|
2734
2742
|
class: k([e.icon]),
|
|
2735
2743
|
style: j(e.color ? `color: ${e.color}` : "")
|
|
2736
|
-
}, null, 6)], 2), g("div",
|
|
2737
|
-
g("div", { class: k(["w-crud-content", { "w-crud-content--rail": t.actionRail }]) }, [g("div",
|
|
2744
|
+
}, null, 6)], 2), g("div", Yn, [g("div", Xn, L(e.label), 1), g("div", Zn, L(e.value), 1)])]))), 128))])) : m("", !0)]),
|
|
2745
|
+
g("div", { class: k(["w-crud-content", { "w-crud-content--rail": t.actionRail }]) }, [g("div", Qn, [Ve.value.length ? (M(), h("div", $n, [(M(!0), h(d, null, F(Ve.value, (e) => (M(), h(d, { key: e.field }, [(e.filter?.type || "text") === "text" ? (M(), p(R(q), {
|
|
2738
2746
|
key: 0,
|
|
2739
2747
|
"model-value": t.crud.columnFilters[Ue(e)] ?? "",
|
|
2740
2748
|
placeholder: e.filter?.placeholder || e.header,
|
|
@@ -2790,8 +2798,8 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
2790
2798
|
text: "",
|
|
2791
2799
|
size: "small",
|
|
2792
2800
|
onClick: n[1] ||= (e) => t.crud.clearColumnFilters()
|
|
2793
|
-
})) : m("", !0)])) : m("", !0), O("table") ? (M(), h("div",
|
|
2794
|
-
g("span",
|
|
2801
|
+
})) : m("", !0)])) : m("", !0), O("table") ? (M(), h("div", er, [Q.value && t.crud.selectedItems.value.length ? (M(), h("div", tr, [
|
|
2802
|
+
g("span", nr, L(t.crud.selectedItems.value.length) + " selecionado(s) ", 1),
|
|
2795
2803
|
I(e.$slots, "bulk-actions", {
|
|
2796
2804
|
selected: t.crud.selectedItems.value,
|
|
2797
2805
|
crud: t.crud
|
|
@@ -2864,7 +2872,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
2864
2872
|
onRowCollapse: n[12] ||= (e) => s("row-collapse", e.data),
|
|
2865
2873
|
onCellEditComplete: Be
|
|
2866
2874
|
}, _({
|
|
2867
|
-
header: V(() => [g("div",
|
|
2875
|
+
header: V(() => [g("div", rr, [g("div", ir, [
|
|
2868
2876
|
t.showSearch ? (M(), p(R(he), { key: 0 }, {
|
|
2869
2877
|
default: V(() => [b(R(ge), { class: "pi pi-search" }), b(R(q), {
|
|
2870
2878
|
"model-value": t.crud.search.value,
|
|
@@ -2876,7 +2884,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
2876
2884
|
})) : m("", !0),
|
|
2877
2885
|
I(e.$slots, "toolbar-start"),
|
|
2878
2886
|
I(e.$slots, "toolbar-filters")
|
|
2879
|
-
]), g("div",
|
|
2887
|
+
]), g("div", ar, [
|
|
2880
2888
|
I(e.$slots, "toolbar-actions"),
|
|
2881
2889
|
t.persistState ? (M(), h(d, { key: 0 }, [H(b(R(K), {
|
|
2882
2890
|
icon: "pi pi-sliders-h",
|
|
@@ -2892,7 +2900,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
2892
2900
|
ref_key: "chooser",
|
|
2893
2901
|
ref: ie
|
|
2894
2902
|
}, {
|
|
2895
|
-
default: V(() => [g("div",
|
|
2903
|
+
default: V(() => [g("div", or, [(M(!0), h(d, null, F(be.value, (e) => (M(), h("div", {
|
|
2896
2904
|
key: e.field,
|
|
2897
2905
|
style: {
|
|
2898
2906
|
display: "flex",
|
|
@@ -2914,7 +2922,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
2914
2922
|
"font-size": "0.85rem",
|
|
2915
2923
|
cursor: "pointer"
|
|
2916
2924
|
}
|
|
2917
|
-
}, L(e.header), 9,
|
|
2925
|
+
}, L(e.header), 9, sr)]))), 128))])]),
|
|
2918
2926
|
_: 1
|
|
2919
2927
|
}, 512)], 64)) : m("", !0),
|
|
2920
2928
|
t.exportCsv ? H((M(), p(R(K), {
|
|
@@ -2930,7 +2938,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
2930
2938
|
void 0,
|
|
2931
2939
|
{ top: !0 }
|
|
2932
2940
|
]]) : m("", !0),
|
|
2933
|
-
D.value ? (M(), h("div",
|
|
2941
|
+
D.value ? (M(), h("div", cr, [b(R(K), {
|
|
2934
2942
|
icon: "pi pi-table",
|
|
2935
2943
|
size: "small",
|
|
2936
2944
|
text: !O("table"),
|
|
@@ -3019,7 +3027,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3019
3027
|
"header-class": "w-crud-actions-header",
|
|
3020
3028
|
style: j({ width: `${(Te.value.length + +!!R(c)["row-actions"]) * 2.5 + 1}rem` })
|
|
3021
3029
|
}, {
|
|
3022
|
-
body: V(({ data: n }) => [g("div",
|
|
3030
|
+
body: V(({ data: n }) => [g("div", lr, [(M(!0), h(d, null, F(Te.value, (e) => (M(), h(d, { key: e.action }, [Me(e, n) ? H((M(), p(R(K), {
|
|
3023
3031
|
key: 0,
|
|
3024
3032
|
icon: e.icon,
|
|
3025
3033
|
text: "",
|
|
@@ -3065,8 +3073,8 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3065
3073
|
"context-menu",
|
|
3066
3074
|
"context-menu-selection",
|
|
3067
3075
|
"onPage"
|
|
3068
|
-
])])) : (M(), h("div",
|
|
3069
|
-
g("div",
|
|
3076
|
+
])])) : (M(), h("div", ur, [
|
|
3077
|
+
g("div", dr, [g("div", fr, [
|
|
3070
3078
|
t.showSearch ? (M(), p(R(he), { key: 0 }, {
|
|
3071
3079
|
default: V(() => [b(R(ge), { class: "pi pi-search" }), b(R(q), {
|
|
3072
3080
|
"model-value": t.crud.search.value,
|
|
@@ -3078,7 +3086,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3078
3086
|
})) : m("", !0),
|
|
3079
3087
|
I(e.$slots, "toolbar-start"),
|
|
3080
3088
|
I(e.$slots, "toolbar-filters")
|
|
3081
|
-
]), g("div",
|
|
3089
|
+
]), g("div", pr, [
|
|
3082
3090
|
I(e.$slots, "toolbar-actions"),
|
|
3083
3091
|
t.exportCsv ? H((M(), p(R(K), {
|
|
3084
3092
|
key: 0,
|
|
@@ -3093,7 +3101,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3093
3101
|
void 0,
|
|
3094
3102
|
{ top: !0 }
|
|
3095
3103
|
]]) : m("", !0),
|
|
3096
|
-
D.value ? (M(), h("div",
|
|
3104
|
+
D.value ? (M(), h("div", mr, [b(R(K), {
|
|
3097
3105
|
icon: "pi pi-table",
|
|
3098
3106
|
size: "small",
|
|
3099
3107
|
text: !O("table"),
|
|
@@ -3113,7 +3121,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3113
3121
|
onClick: n[15] ||= (e) => t.crud.openCreateDialog()
|
|
3114
3122
|
})) : m("", !0)
|
|
3115
3123
|
])]),
|
|
3116
|
-
t.crud.loading.value ? (M(), h("div",
|
|
3124
|
+
t.crud.loading.value ? (M(), h("div", hr, [...n[23] ||= [g("i", { class: "pi pi-spin pi-spinner" }, null, -1)]])) : t.crud.items.value.length ? (M(), h("div", {
|
|
3117
3125
|
key: 2,
|
|
3118
3126
|
class: k(["w-crud-cards", { "w-crud-cards--bare": t.cardBare }])
|
|
3119
3127
|
}, [(M(!0), h(d, null, F(t.crud.items.value, (n, i) => (M(), h("div", {
|
|
@@ -3127,10 +3135,10 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3127
3135
|
crud: t.crud,
|
|
3128
3136
|
columns: Ce.value,
|
|
3129
3137
|
index: i
|
|
3130
|
-
}, () => [g("div",
|
|
3138
|
+
}, () => [g("div", _r, [(M(!0), h(d, null, F(Ce.value, (t, r) => (M(), h("div", {
|
|
3131
3139
|
key: t.field,
|
|
3132
3140
|
class: k(["w-crud-card-row", { "w-crud-card-row--title": r === 0 }])
|
|
3133
|
-
}, [r === 0 ? m("", !0) : (M(), h("span",
|
|
3141
|
+
}, [r === 0 ? m("", !0) : (M(), h("span", vr, L(t.header), 1)), g("span", yr, [I(e.$slots, `column-${t.field}`, {
|
|
3134
3142
|
data: n,
|
|
3135
3143
|
value: n[t.field]
|
|
3136
3144
|
}, () => [b(Je, {
|
|
@@ -3141,7 +3149,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3141
3149
|
"column",
|
|
3142
3150
|
"value",
|
|
3143
3151
|
"row-data"
|
|
3144
|
-
])])])], 2))), 128))]), Ee.value && !t.actionRail ? (M(), h("div",
|
|
3152
|
+
])])])], 2))), 128))]), Ee.value && !t.actionRail ? (M(), h("div", br, [(M(!0), h(d, null, F(Te.value, (e) => (M(), h(d, { key: e.action }, [Me(e, n) ? H((M(), p(R(K), {
|
|
3145
3153
|
key: 0,
|
|
3146
3154
|
icon: e.icon,
|
|
3147
3155
|
text: "",
|
|
@@ -3163,7 +3171,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3163
3171
|
]]) : m("", !0)], 64))), 128)), I(e.$slots, "row-actions", {
|
|
3164
3172
|
data: n,
|
|
3165
3173
|
crud: t.crud
|
|
3166
|
-
})])) : m("", !0)])], 42,
|
|
3174
|
+
})])) : m("", !0)])], 42, gr))), 128))], 2)) : I(e.$slots, "empty", {}, () => [n[24] ||= v("<div class=\"w-crud-empty\"><div class=\"w-crud-empty-icon\"><i class=\"pi pi-inbox\"></i></div><p class=\"w-crud-empty-title\">Nenhum registro encontrado</p><p class=\"w-crud-empty-text\">Tente ajustar sua busca ou crie um novo registro</p></div>", 1)], void 0, 1),
|
|
3167
3175
|
t.crud.items.value.length ? (M(), p(R(_e), {
|
|
3168
3176
|
key: 3,
|
|
3169
3177
|
rows: t.crud.pagination.pageSize,
|
|
@@ -3184,7 +3192,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3184
3192
|
"first",
|
|
3185
3193
|
"onPage"
|
|
3186
3194
|
])) : m("", !0)
|
|
3187
|
-
]))]), t.actionRail ? (M(), h("aside",
|
|
3195
|
+
]))]), t.actionRail ? (M(), h("aside", xr, [
|
|
3188
3196
|
Pe.value ? H((M(), p(R(K), {
|
|
3189
3197
|
key: 0,
|
|
3190
3198
|
icon: "pi pi-plus",
|
|
@@ -3196,7 +3204,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3196
3204
|
void 0,
|
|
3197
3205
|
{ left: !0 }
|
|
3198
3206
|
]]) : m("", !0),
|
|
3199
|
-
Pe.value && Te.value.length ? (M(), h("div",
|
|
3207
|
+
Pe.value && Te.value.length ? (M(), h("div", Sr)) : m("", !0),
|
|
3200
3208
|
(M(!0), h(d, null, F(Te.value, (e) => (M(), h(d, { key: e.action }, [!Z.value || Me(e, Z.value) ? H((M(), p(R(K), {
|
|
3201
3209
|
key: 0,
|
|
3202
3210
|
icon: e.icon,
|
|
@@ -3220,7 +3228,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3220
3228
|
selected: Z.value,
|
|
3221
3229
|
crud: t.crud
|
|
3222
3230
|
}),
|
|
3223
|
-
t.showPrint || t.exportCsv ? (M(), h("div",
|
|
3231
|
+
t.showPrint || t.exportCsv ? (M(), h("div", Cr)) : m("", !0),
|
|
3224
3232
|
t.showPrint ? H((M(), p(R(K), {
|
|
3225
3233
|
key: 3,
|
|
3226
3234
|
icon: "pi pi-print",
|
|
@@ -3257,7 +3265,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3257
3265
|
I(e.$slots, "form-dialog", {
|
|
3258
3266
|
crud: t.crud,
|
|
3259
3267
|
dialogWidth: t.dialogWidth
|
|
3260
|
-
}, () => [b(
|
|
3268
|
+
}, () => [b(Ln, {
|
|
3261
3269
|
visible: t.crud.dialogVisible.value,
|
|
3262
3270
|
title: t.crud.dialogTitle.value,
|
|
3263
3271
|
fields: t.crud.config.form,
|
|
@@ -3320,63 +3328,63 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3320
3328
|
]);
|
|
3321
3329
|
};
|
|
3322
3330
|
}
|
|
3323
|
-
}),
|
|
3331
|
+
}), Tr = {
|
|
3324
3332
|
key: 0,
|
|
3325
3333
|
class: "w-editable-table__toolbar"
|
|
3326
|
-
},
|
|
3334
|
+
}, Er = ["disabled"], Dr = ["role"], Or = {
|
|
3327
3335
|
key: 0,
|
|
3328
3336
|
class: "w-editable-table__group-row"
|
|
3329
|
-
},
|
|
3337
|
+
}, kr = {
|
|
3330
3338
|
key: 0,
|
|
3331
3339
|
class: "w-editable-table__toggle-col"
|
|
3332
|
-
},
|
|
3340
|
+
}, Ar = ["colspan"], jr = {
|
|
3333
3341
|
key: 1,
|
|
3334
3342
|
class: "w-editable-table__action-col"
|
|
3335
|
-
},
|
|
3343
|
+
}, Mr = {
|
|
3336
3344
|
key: 0,
|
|
3337
3345
|
class: "w-editable-table__toggle-col"
|
|
3338
|
-
},
|
|
3346
|
+
}, Nr = {
|
|
3339
3347
|
key: 1,
|
|
3340
3348
|
class: "w-editable-table__action-col"
|
|
3341
|
-
},
|
|
3349
|
+
}, Pr = { key: 0 }, Fr = ["colspan"], Ir = {
|
|
3342
3350
|
key: 0,
|
|
3343
3351
|
class: "w-editable-table__toggle-col",
|
|
3344
3352
|
"data-card": "expander"
|
|
3345
|
-
},
|
|
3353
|
+
}, Lr = [
|
|
3346
3354
|
"aria-expanded",
|
|
3347
3355
|
"aria-label",
|
|
3348
3356
|
"onClick"
|
|
3349
|
-
],
|
|
3357
|
+
], Rr = {
|
|
3350
3358
|
key: 0,
|
|
3351
3359
|
class: "w-editable-table__toggle-label"
|
|
3352
|
-
},
|
|
3360
|
+
}, zr = ["data-card"], Br = {
|
|
3353
3361
|
key: 0,
|
|
3354
3362
|
class: "w-editable-table__card-label"
|
|
3355
|
-
},
|
|
3356
|
-
key:
|
|
3363
|
+
}, Vr = {
|
|
3364
|
+
key: 4,
|
|
3357
3365
|
class: "w-editable-table__text"
|
|
3358
|
-
},
|
|
3366
|
+
}, Hr = {
|
|
3359
3367
|
key: 1,
|
|
3360
3368
|
class: "w-editable-table__action-col",
|
|
3361
3369
|
"data-card": "actions"
|
|
3362
|
-
},
|
|
3370
|
+
}, Ur = ["onClick"], Wr = {
|
|
3363
3371
|
key: 0,
|
|
3364
3372
|
class: "w-editable-table__expansion"
|
|
3365
|
-
},
|
|
3373
|
+
}, Gr = ["colspan"], Kr = { key: 1 }, qr = { class: "w-editable-table__footer" }, Jr = {
|
|
3366
3374
|
key: 0,
|
|
3367
3375
|
class: "w-editable-table__toggle-col",
|
|
3368
3376
|
"data-card": "hidden"
|
|
3369
|
-
},
|
|
3377
|
+
}, Yr = ["data-card"], Xr = {
|
|
3370
3378
|
key: 0,
|
|
3371
3379
|
class: "w-editable-table__card-label"
|
|
3372
|
-
},
|
|
3380
|
+
}, Zr = {
|
|
3373
3381
|
key: 0,
|
|
3374
3382
|
class: "w-editable-table__footer-label"
|
|
3375
|
-
},
|
|
3383
|
+
}, Qr = { key: 1 }, $r = {
|
|
3376
3384
|
key: 1,
|
|
3377
3385
|
class: "w-editable-table__action-col",
|
|
3378
3386
|
"data-card": "hidden"
|
|
3379
|
-
},
|
|
3387
|
+
}, ei = /* @__PURE__ */ x({
|
|
3380
3388
|
__name: "WEditableTable",
|
|
3381
3389
|
props: {
|
|
3382
3390
|
modelValue: { default: () => [] },
|
|
@@ -3491,52 +3499,52 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3491
3499
|
}
|
|
3492
3500
|
return e;
|
|
3493
3501
|
});
|
|
3494
|
-
return (e, n) => (M(), h("div", { class: k(["w-editable-table", { "w-editable-table--cards": c.value }]) }, [e.$slots.toolbar || e.$slots["toolbar-extra"] || t.addLabel ? (M(), h("div",
|
|
3502
|
+
return (e, n) => (M(), h("div", { class: k(["w-editable-table", { "w-editable-table--cards": c.value }]) }, [e.$slots.toolbar || e.$slots["toolbar-extra"] || t.addLabel ? (M(), h("div", Tr, [I(e.$slots, "toolbar", {}, () => [t.addLabel ? (M(), h("button", {
|
|
3495
3503
|
key: 0,
|
|
3496
3504
|
type: "button",
|
|
3497
3505
|
class: "w-editable-table__add",
|
|
3498
3506
|
disabled: t.disabled,
|
|
3499
3507
|
onClick: n[0] ||= (e) => a("add")
|
|
3500
|
-
}, [n[1] ||= g("i", { class: "pi pi-plus" }, null, -1), y(L(t.addLabel), 1)], 8,
|
|
3508
|
+
}, [n[1] ||= g("i", { class: "pi pi-plus" }, null, -1), y(L(t.addLabel), 1)], 8, Er)) : m("", !0)]), I(e.$slots, "toolbar-extra")])) : m("", !0), g("table", {
|
|
3501
3509
|
class: "w-editable-table__table",
|
|
3502
3510
|
role: c.value ? "presentation" : void 0
|
|
3503
3511
|
}, [
|
|
3504
|
-
g("thead", null, [ce.value ? (M(), h("tr",
|
|
3505
|
-
t.expandable ? (M(), h("th",
|
|
3512
|
+
g("thead", null, [ce.value ? (M(), h("tr", Or, [
|
|
3513
|
+
t.expandable ? (M(), h("th", kr)) : m("", !0),
|
|
3506
3514
|
(M(!0), h(d, null, F(le.value, (e) => (M(), h("th", {
|
|
3507
3515
|
key: e.key,
|
|
3508
3516
|
colspan: e.span,
|
|
3509
3517
|
class: k(["w-editable-table__group", { "w-editable-table__group--label": e.label }])
|
|
3510
|
-
}, L(e.label), 11,
|
|
3511
|
-
t.removable ? (M(), h("th",
|
|
3518
|
+
}, L(e.label), 11, Ar))), 128)),
|
|
3519
|
+
t.removable ? (M(), h("th", jr)) : m("", !0)
|
|
3512
3520
|
])) : m("", !0), g("tr", null, [
|
|
3513
|
-
t.expandable ? (M(), h("th",
|
|
3521
|
+
t.expandable ? (M(), h("th", Mr)) : m("", !0),
|
|
3514
3522
|
(M(!0), h(d, null, F(t.columns, (e) => (M(), h("th", {
|
|
3515
3523
|
key: e.field,
|
|
3516
3524
|
class: k(E(e)),
|
|
3517
3525
|
style: j(D(e))
|
|
3518
3526
|
}, L(e.header), 7))), 128)),
|
|
3519
|
-
t.removable ? (M(), h("th",
|
|
3527
|
+
t.removable ? (M(), h("th", Nr)) : m("", !0)
|
|
3520
3528
|
])]),
|
|
3521
|
-
t.modelValue.length ? m("", !0) : (M(), h("tbody",
|
|
3529
|
+
t.modelValue.length ? m("", !0) : (M(), h("tbody", Pr, [g("tr", null, [g("td", {
|
|
3522
3530
|
colspan: se.value,
|
|
3523
3531
|
class: "w-editable-table__empty",
|
|
3524
3532
|
"data-card": "expansion"
|
|
3525
|
-
}, [I(e.$slots, "empty", {}, () => [y(L(t.emptyMessage), 1)])], 8,
|
|
3533
|
+
}, [I(e.$slots, "empty", {}, () => [y(L(t.emptyMessage), 1)])], 8, Fr)])])),
|
|
3526
3534
|
(M(!0), h(d, null, F(t.modelValue, (r, i) => (M(), h("tbody", { key: N(r, i) }, [g("tr", { class: k(["w-editable-table__row", { "w-editable-table__row--alt": i % 2 == 1 }]) }, [
|
|
3527
|
-
t.expandable ? (M(), h("td",
|
|
3535
|
+
t.expandable ? (M(), h("td", Ir, [g("button", {
|
|
3528
3536
|
type: "button",
|
|
3529
3537
|
class: "w-editable-table__toggle",
|
|
3530
3538
|
"aria-expanded": b(i),
|
|
3531
3539
|
"aria-label": t.expansionLabel,
|
|
3532
3540
|
onClick: (e) => x(i)
|
|
3533
|
-
}, [g("i", { class: k(b(i) ? "pi pi-chevron-down" : "pi pi-chevron-right") }, null, 2), c.value ? (M(), h("span",
|
|
3541
|
+
}, [g("i", { class: k(b(i) ? "pi pi-chevron-down" : "pi pi-chevron-right") }, null, 2), c.value ? (M(), h("span", Rr, L(t.expansionLabel), 1)) : m("", !0)], 8, Lr)])) : m("", !0),
|
|
3534
3542
|
(M(!0), h(d, null, F(t.columns, (t) => (M(), h("td", {
|
|
3535
3543
|
key: t.field,
|
|
3536
3544
|
class: k(E(t)),
|
|
3537
3545
|
style: j(D(t)),
|
|
3538
3546
|
"data-card": u(t)
|
|
3539
|
-
}, [c.value ? (M(), h("span",
|
|
3547
|
+
}, [c.value ? (M(), h("span", Br, L(_(t)), 1)) : m("", !0), I(e.$slots, `cell-${t.field}`, {
|
|
3540
3548
|
row: r,
|
|
3541
3549
|
index: i,
|
|
3542
3550
|
value: r[t.field],
|
|
@@ -3595,51 +3603,67 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3595
3603
|
"placeholder",
|
|
3596
3604
|
"disabled",
|
|
3597
3605
|
"onUpdate:modelValue"
|
|
3598
|
-
])) :
|
|
3599
|
-
|
|
3606
|
+
])) : t.editor === "date" ? (M(), p(Nt, {
|
|
3607
|
+
key: 3,
|
|
3608
|
+
"model-value": r[t.field],
|
|
3609
|
+
"min-date": t.minDate,
|
|
3610
|
+
"max-date": t.maxDate,
|
|
3611
|
+
placeholder: t.placeholder,
|
|
3612
|
+
disabled: O(t, r, i),
|
|
3613
|
+
"show-clear": !1,
|
|
3614
|
+
"onUpdate:modelValue": (e) => te(i, t.field, e)
|
|
3615
|
+
}, null, 8, [
|
|
3616
|
+
"model-value",
|
|
3617
|
+
"min-date",
|
|
3618
|
+
"max-date",
|
|
3619
|
+
"placeholder",
|
|
3620
|
+
"disabled",
|
|
3621
|
+
"onUpdate:modelValue"
|
|
3622
|
+
])) : (M(), h("span", Vr, L(ee(t, r)), 1))])], 14, zr))), 128)),
|
|
3623
|
+
t.removable ? (M(), h("td", Hr, [g("button", {
|
|
3600
3624
|
type: "button",
|
|
3601
3625
|
class: "w-editable-table__remove",
|
|
3602
3626
|
"aria-label": "Remover linha",
|
|
3603
3627
|
onClick: (e) => ne(r, i)
|
|
3604
|
-
}, [...n[2] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8,
|
|
3605
|
-
], 2), t.expandable && b(i) ? (M(), h("tr",
|
|
3628
|
+
}, [...n[2] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, Ur)])) : m("", !0)
|
|
3629
|
+
], 2), t.expandable && b(i) ? (M(), h("tr", Wr, [g("td", {
|
|
3606
3630
|
colspan: se.value,
|
|
3607
3631
|
"data-card": "expansion"
|
|
3608
3632
|
}, [I(e.$slots, "expansion", {
|
|
3609
3633
|
row: r,
|
|
3610
3634
|
index: i
|
|
3611
|
-
})], 8,
|
|
3612
|
-
re.value ? (M(), h("tfoot",
|
|
3613
|
-
t.expandable ? (M(), h("td",
|
|
3635
|
+
})], 8, Gr)])) : m("", !0)]))), 128)),
|
|
3636
|
+
re.value ? (M(), h("tfoot", Kr, [g("tr", qr, [
|
|
3637
|
+
t.expandable ? (M(), h("td", Jr)) : m("", !0),
|
|
3614
3638
|
(M(!0), h(d, null, F(t.columns, (n) => (M(), h("td", {
|
|
3615
3639
|
key: n.field,
|
|
3616
3640
|
class: k(E(n)),
|
|
3617
3641
|
style: j(D(n)),
|
|
3618
3642
|
"data-card": n.field === oe.value ? "total-label" : ae(n) ? "read" : "hidden"
|
|
3619
|
-
}, [c.value && ae(n) ? (M(), h("span",
|
|
3643
|
+
}, [c.value && ae(n) ? (M(), h("span", Xr, L(_(n)), 1)) : m("", !0), I(e.$slots, `footer-${n.field}`, {
|
|
3620
3644
|
rows: t.modelValue,
|
|
3621
3645
|
column: n
|
|
3622
|
-
}, () => [n.field === oe.value ? (M(), h("span",
|
|
3623
|
-
t.removable ? (M(), h("td",
|
|
3646
|
+
}, () => [n.field === oe.value ? (M(), h("span", Zr, L(t.footerLabel), 1)) : (M(), h("span", Qr, L(ie(n)), 1))])], 14, Yr))), 128)),
|
|
3647
|
+
t.removable ? (M(), h("td", $r)) : m("", !0)
|
|
3624
3648
|
])])) : m("", !0)
|
|
3625
|
-
], 8,
|
|
3649
|
+
], 8, Dr)], 2));
|
|
3626
3650
|
}
|
|
3627
|
-
}),
|
|
3651
|
+
}), ti = { class: "w-crud-subview" }, ni = {
|
|
3628
3652
|
key: 0,
|
|
3629
3653
|
class: "w-crud-subview__header"
|
|
3630
|
-
},
|
|
3654
|
+
}, ri = { class: "w-crud-subview__heading" }, ii = {
|
|
3631
3655
|
key: 0,
|
|
3632
3656
|
class: "w-crud-subview__title"
|
|
3633
|
-
},
|
|
3657
|
+
}, ai = {
|
|
3634
3658
|
key: 0,
|
|
3635
3659
|
class: "w-crud-subview__count"
|
|
3636
|
-
},
|
|
3660
|
+
}, oi = {
|
|
3637
3661
|
key: 1,
|
|
3638
3662
|
class: "w-crud-subview__subtitle"
|
|
3639
|
-
},
|
|
3663
|
+
}, si = {
|
|
3640
3664
|
key: 0,
|
|
3641
3665
|
class: "w-crud-subview__actions"
|
|
3642
|
-
},
|
|
3666
|
+
}, ci = { class: "w-crud-subview__row-actions" }, li = ["onClick"], ui = ["onClick"], di = "__acoes", fi = /* @__PURE__ */ x({
|
|
3643
3667
|
__name: "WCrudSubview",
|
|
3644
3668
|
props: {
|
|
3645
3669
|
crud: {},
|
|
@@ -3665,18 +3689,18 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3665
3689
|
},
|
|
3666
3690
|
setup(e) {
|
|
3667
3691
|
let t = e, n = le(), r = f(() => t.crud.items.value), i = f(() => t.crud.config.canCreate !== !1 && !t.disabled), a = f(() => t.crud.config.canEdit !== !1 && !t.disabled), o = f(() => t.crud.config.canDelete !== !1 && !t.disabled), s = f(() => a.value || o.value), c = f(() => s.value ? [...t.columns, {
|
|
3668
|
-
field:
|
|
3692
|
+
field: di,
|
|
3669
3693
|
header: "",
|
|
3670
3694
|
width: "5rem",
|
|
3671
3695
|
align: "right",
|
|
3672
3696
|
card: "actions"
|
|
3673
|
-
}] : t.columns), l = f(() => Object.keys(n).filter((e) => e.startsWith("cell-") && e !== `cell-${
|
|
3697
|
+
}] : t.columns), l = f(() => Object.keys(n).filter((e) => e.startsWith("cell-") && e !== `cell-${di}`)), u = f(() => Object.keys(n).filter((e) => e.startsWith("field-") || e.startsWith("image-")));
|
|
3674
3698
|
function d(e) {
|
|
3675
3699
|
t.crud.config.onChange(e);
|
|
3676
3700
|
}
|
|
3677
|
-
return (t, n) => (M(), h("div",
|
|
3678
|
-
e.title || t.$slots["toolbar-actions"] ? (M(), h("div",
|
|
3679
|
-
b(
|
|
3701
|
+
return (t, n) => (M(), h("div", ti, [
|
|
3702
|
+
e.title || t.$slots["toolbar-actions"] ? (M(), h("div", ni, [g("div", ri, [e.title ? (M(), h("h3", ii, [y(L(e.title) + " ", 1), r.value.length ? (M(), h("span", ai, L(r.value.length), 1)) : m("", !0)])) : m("", !0), e.subtitle ? (M(), h("p", oi, L(e.subtitle), 1)) : m("", !0)]), t.$slots["toolbar-actions"] ? (M(), h("div", si, [I(t.$slots, "toolbar-actions")])) : m("", !0)])) : m("", !0),
|
|
3703
|
+
b(ei, {
|
|
3680
3704
|
"model-value": r.value,
|
|
3681
3705
|
columns: c.value,
|
|
3682
3706
|
expandable: e.expandable,
|
|
@@ -3690,19 +3714,19 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3690
3714
|
"onUpdate:modelValue": d,
|
|
3691
3715
|
onAdd: n[0] ||= (t) => e.crud.openCreateDialog()
|
|
3692
3716
|
}, _({
|
|
3693
|
-
[`cell-${
|
|
3717
|
+
[`cell-${di}`]: V(({ row: t, index: r }) => [g("div", ci, [a.value ? (M(), h("button", {
|
|
3694
3718
|
key: 0,
|
|
3695
3719
|
type: "button",
|
|
3696
3720
|
class: "w-crud-subview__action",
|
|
3697
3721
|
"aria-label": "Editar",
|
|
3698
3722
|
onClick: (n) => e.crud.openEditDialog(t, r)
|
|
3699
|
-
}, [...n[3] ||= [g("i", { class: "pi pi-pencil" }, null, -1)]], 8,
|
|
3723
|
+
}, [...n[3] ||= [g("i", { class: "pi pi-pencil" }, null, -1)]], 8, li)) : m("", !0), o.value ? (M(), h("button", {
|
|
3700
3724
|
key: 1,
|
|
3701
3725
|
type: "button",
|
|
3702
3726
|
class: "w-crud-subview__action w-crud-subview__action--danger",
|
|
3703
3727
|
"aria-label": "Excluir",
|
|
3704
3728
|
onClick: (n) => e.crud.confirmDelete(t, r)
|
|
3705
|
-
}, [...n[4] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8,
|
|
3729
|
+
}, [...n[4] ||= [g("i", { class: "pi pi-trash" }, null, -1)]], 8, ui)) : m("", !0)])]),
|
|
3706
3730
|
_: 2
|
|
3707
3731
|
}, [
|
|
3708
3732
|
t.$slots["toolbar-extra"] ? {
|
|
@@ -3736,7 +3760,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3736
3760
|
"card-mode",
|
|
3737
3761
|
"expansion-label"
|
|
3738
3762
|
]),
|
|
3739
|
-
b(
|
|
3763
|
+
b(Ln, {
|
|
3740
3764
|
visible: e.crud.dialogVisible.value,
|
|
3741
3765
|
title: e.crud.dialogTitle.value,
|
|
3742
3766
|
fields: e.crud.config.form,
|
|
@@ -3778,7 +3802,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3778
3802
|
])
|
|
3779
3803
|
]));
|
|
3780
3804
|
}
|
|
3781
|
-
}),
|
|
3805
|
+
}), pi = /* @__PURE__ */ x({
|
|
3782
3806
|
__name: "WDateRange",
|
|
3783
3807
|
props: {
|
|
3784
3808
|
modelValue: { default: null },
|
|
@@ -3820,14 +3844,14 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3820
3844
|
"disabled"
|
|
3821
3845
|
]));
|
|
3822
3846
|
}
|
|
3823
|
-
}),
|
|
3847
|
+
}), mi = {
|
|
3824
3848
|
class: "w-fileupload",
|
|
3825
3849
|
style: {
|
|
3826
3850
|
display: "flex",
|
|
3827
3851
|
"flex-direction": "column",
|
|
3828
3852
|
gap: "0.5rem"
|
|
3829
3853
|
}
|
|
3830
|
-
},
|
|
3854
|
+
}, hi = ["accept", "multiple"], gi = {
|
|
3831
3855
|
key: 0,
|
|
3832
3856
|
style: {
|
|
3833
3857
|
"list-style": "none",
|
|
@@ -3837,12 +3861,12 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3837
3861
|
"flex-direction": "column",
|
|
3838
3862
|
gap: "0.35rem"
|
|
3839
3863
|
}
|
|
3840
|
-
},
|
|
3864
|
+
}, _i = { style: {
|
|
3841
3865
|
flex: "1",
|
|
3842
3866
|
overflow: "hidden",
|
|
3843
3867
|
"text-overflow": "ellipsis",
|
|
3844
3868
|
"white-space": "nowrap"
|
|
3845
|
-
} },
|
|
3869
|
+
} }, vi = { style: { opacity: "0.6" } }, yi = /* @__PURE__ */ x({
|
|
3846
3870
|
__name: "WFileUpload",
|
|
3847
3871
|
props: {
|
|
3848
3872
|
modelValue: { default: null },
|
|
@@ -3891,7 +3915,7 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3891
3915
|
function l(e) {
|
|
3892
3916
|
return e < 1024 ? `${e} B` : e < 1048576 ? `${(e / 1024).toFixed(0)} KB` : `${(e / 1048576).toFixed(1)} MB`;
|
|
3893
3917
|
}
|
|
3894
|
-
return (t, n) => (M(), h("div",
|
|
3918
|
+
return (t, n) => (M(), h("div", mi, [
|
|
3895
3919
|
g("div", null, [b(R(K), {
|
|
3896
3920
|
type: "button",
|
|
3897
3921
|
label: e.chooseLabel,
|
|
@@ -3909,8 +3933,8 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3909
3933
|
multiple: e.multiple,
|
|
3910
3934
|
style: { display: "none" },
|
|
3911
3935
|
onChange: s
|
|
3912
|
-
}, null, 40,
|
|
3913
|
-
a.value.length ? (M(), h("ul",
|
|
3936
|
+
}, null, 40, hi),
|
|
3937
|
+
a.value.length ? (M(), h("ul", gi, [(M(!0), h(d, null, F(a.value, (t, r) => (M(), h("li", {
|
|
3914
3938
|
key: `${t.name}-${r}`,
|
|
3915
3939
|
style: {
|
|
3916
3940
|
display: "flex",
|
|
@@ -3923,8 +3947,8 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3923
3947
|
class: "pi pi-file",
|
|
3924
3948
|
style: { opacity: "0.6" }
|
|
3925
3949
|
}, null, -1),
|
|
3926
|
-
g("span",
|
|
3927
|
-
g("span",
|
|
3950
|
+
g("span", _i, L(t.name), 1),
|
|
3951
|
+
g("span", vi, L(l(t.size)), 1),
|
|
3928
3952
|
b(R(K), {
|
|
3929
3953
|
type: "button",
|
|
3930
3954
|
icon: "pi pi-times",
|
|
@@ -3942,10 +3966,10 @@ var Bn = { class: "w-crud" }, Vn = {
|
|
|
3942
3966
|
]));
|
|
3943
3967
|
}
|
|
3944
3968
|
});
|
|
3945
|
-
function
|
|
3969
|
+
function bi(e) {
|
|
3946
3970
|
return String(e ?? "").normalize("NFD").replace(/\p{Diacritic}/gu, "").toLocaleLowerCase();
|
|
3947
3971
|
}
|
|
3948
|
-
function
|
|
3972
|
+
function xi(e, { optionValue: t = "id", optionLabel: n = "nome", groupBy: r, groupLabel: i } = {}) {
|
|
3949
3973
|
let a = [], o = /* @__PURE__ */ new Map();
|
|
3950
3974
|
for (let s of e ?? []) {
|
|
3951
3975
|
let e = s[t];
|
|
@@ -3971,19 +3995,19 @@ function yi(e, { optionValue: t = "id", optionLabel: n = "nome", groupBy: r, gro
|
|
|
3971
3995
|
}
|
|
3972
3996
|
return a;
|
|
3973
3997
|
}
|
|
3974
|
-
function
|
|
3975
|
-
return e.children?.length ? e.children.flatMap(
|
|
3998
|
+
function Si(e) {
|
|
3999
|
+
return e.children?.length ? e.children.flatMap(Si) : e.value === void 0 ? [] : [e.value];
|
|
3976
4000
|
}
|
|
3977
|
-
function
|
|
3978
|
-
return e.flatMap(
|
|
4001
|
+
function Ci(e) {
|
|
4002
|
+
return e.flatMap(Si);
|
|
3979
4003
|
}
|
|
3980
|
-
function
|
|
4004
|
+
function wi(e) {
|
|
3981
4005
|
let t = /* @__PURE__ */ new Map(), n = (e) => {
|
|
3982
4006
|
t.set(e.key, e), e.children?.forEach(n);
|
|
3983
4007
|
};
|
|
3984
4008
|
return e.forEach(n), t;
|
|
3985
4009
|
}
|
|
3986
|
-
function
|
|
4010
|
+
function Ti(e, t) {
|
|
3987
4011
|
let n = new Set(t ?? []), r = {}, i = (e) => {
|
|
3988
4012
|
if (!e.children?.length) {
|
|
3989
4013
|
let t = e.value !== void 0 && n.has(e.value);
|
|
@@ -4013,10 +4037,10 @@ function Ci(e, t) {
|
|
|
4013
4037
|
};
|
|
4014
4038
|
return e.forEach(i), r;
|
|
4015
4039
|
}
|
|
4016
|
-
function
|
|
4017
|
-
let r =
|
|
4040
|
+
function Ei(e, t, n = []) {
|
|
4041
|
+
let r = bi(t).trim();
|
|
4018
4042
|
if (!r) return [...e];
|
|
4019
|
-
let i = (e) =>
|
|
4043
|
+
let i = (e) => bi(e.label).includes(r) ? !0 : n.some((t) => bi(e.data?.[t]).includes(r)), a = [];
|
|
4020
4044
|
for (let r of e) {
|
|
4021
4045
|
if (!r.children?.length) {
|
|
4022
4046
|
i(r) && a.push(r);
|
|
@@ -4026,7 +4050,7 @@ function wi(e, t, n = []) {
|
|
|
4026
4050
|
a.push(r);
|
|
4027
4051
|
continue;
|
|
4028
4052
|
}
|
|
4029
|
-
let e =
|
|
4053
|
+
let e = Ei(r.children, t, n);
|
|
4030
4054
|
e.length && a.push({
|
|
4031
4055
|
...r,
|
|
4032
4056
|
children: e
|
|
@@ -4034,7 +4058,7 @@ function wi(e, t, n = []) {
|
|
|
4034
4058
|
}
|
|
4035
4059
|
return a;
|
|
4036
4060
|
}
|
|
4037
|
-
function
|
|
4061
|
+
function Di(e, t, n) {
|
|
4038
4062
|
let r = new Set(t);
|
|
4039
4063
|
if (!n) return (e ?? []).filter((e) => !r.has(e));
|
|
4040
4064
|
let i = [...e ?? []], a = new Set(i);
|
|
@@ -4043,19 +4067,19 @@ function Ti(e, t, n) {
|
|
|
4043
4067
|
}
|
|
4044
4068
|
//#endregion
|
|
4045
4069
|
//#region src/components/form/WTreeSelect.vue?vue&type=script&setup=true&lang.ts
|
|
4046
|
-
var
|
|
4070
|
+
var Oi = {
|
|
4047
4071
|
key: 0,
|
|
4048
4072
|
class: "w-tree-select__head"
|
|
4049
|
-
},
|
|
4073
|
+
}, ki = {
|
|
4050
4074
|
key: 0,
|
|
4051
4075
|
class: "w-tree-select__count"
|
|
4052
|
-
},
|
|
4076
|
+
}, Ai = { key: 1 }, ji = {
|
|
4053
4077
|
key: 2,
|
|
4054
4078
|
class: "w-tree-select__actions"
|
|
4055
|
-
},
|
|
4079
|
+
}, Mi = {
|
|
4056
4080
|
key: 2,
|
|
4057
4081
|
class: "w-tree-select__empty"
|
|
4058
|
-
},
|
|
4082
|
+
}, Ni = /* @__PURE__ */ x({
|
|
4059
4083
|
__name: "WTreeSelect",
|
|
4060
4084
|
props: {
|
|
4061
4085
|
modelValue: { default: () => [] },
|
|
@@ -4096,13 +4120,13 @@ var Ei = {
|
|
|
4096
4120
|
},
|
|
4097
4121
|
emits: ["update:modelValue"],
|
|
4098
4122
|
setup(e, { emit: t }) {
|
|
4099
|
-
let n = e, r = t, i = P(""), a = P({}), o = f(() =>
|
|
4123
|
+
let n = e, r = t, i = P(""), a = P({}), o = f(() => xi(n.options, {
|
|
4100
4124
|
optionValue: n.optionValue,
|
|
4101
4125
|
optionLabel: n.optionLabel,
|
|
4102
4126
|
groupBy: n.groupBy,
|
|
4103
4127
|
groupLabel: n.groupLabel
|
|
4104
|
-
})), s = f(() =>
|
|
4105
|
-
let e = new Set(
|
|
4128
|
+
})), s = f(() => wi(o.value)), c = f(() => n.filter && i.value.trim().length > 0), l = f(() => c.value ? Ei(o.value, i.value, n.filterFields) : o.value), u = f(() => Ti(o.value, n.modelValue)), d = f(() => Ci(o.value).length), g = f(() => {
|
|
4129
|
+
let e = new Set(Ci(o.value));
|
|
4106
4130
|
return n.modelValue.filter((t) => e.has(t)).length;
|
|
4107
4131
|
}), _ = f(() => (n.showCount || n.showToggleAll) && (d.value > 0 || n.loading)), v = f(() => !n.loading && l.value.length === 0), x = f(() => c.value ? n.filterEmptyMessage : n.emptyMessage);
|
|
4108
4132
|
function S(e) {
|
|
@@ -4121,10 +4145,10 @@ var Ei = {
|
|
|
4121
4145
|
function w(e, t) {
|
|
4122
4146
|
if (n.disabled) return;
|
|
4123
4147
|
let i = s.value.get(e.key);
|
|
4124
|
-
i && r("update:modelValue",
|
|
4148
|
+
i && r("update:modelValue", Di(n.modelValue, Si(i), t));
|
|
4125
4149
|
}
|
|
4126
4150
|
function T() {
|
|
4127
|
-
n.disabled || r("update:modelValue",
|
|
4151
|
+
n.disabled || r("update:modelValue", Ci(o.value));
|
|
4128
4152
|
}
|
|
4129
4153
|
function E() {
|
|
4130
4154
|
n.disabled || r("update:modelValue", []);
|
|
@@ -4133,7 +4157,7 @@ var Ei = {
|
|
|
4133
4157
|
I(t.$slots, "header", {
|
|
4134
4158
|
selectedCount: g.value,
|
|
4135
4159
|
total: d.value
|
|
4136
|
-
}, () => [_.value ? (M(), h("div",
|
|
4160
|
+
}, () => [_.value ? (M(), h("div", Oi, [e.showCount ? (M(), h("span", ki, L(g.value) + " de " + L(d.value) + " selecionados ", 1)) : (M(), h("span", Ai)), e.showToggleAll ? (M(), h("div", ji, [b(R(K), {
|
|
4137
4161
|
type: "button",
|
|
4138
4162
|
label: "Marcar todos",
|
|
4139
4163
|
text: "",
|
|
@@ -4170,7 +4194,7 @@ var Ei = {
|
|
|
4170
4194
|
])]),
|
|
4171
4195
|
_: 1
|
|
4172
4196
|
})) : m("", !0),
|
|
4173
|
-
v.value ? (M(), h("div",
|
|
4197
|
+
v.value ? (M(), h("div", Mi, [I(t.$slots, "empty", { filtering: c.value }, () => [y(L(x.value), 1)])])) : (M(), p(R(Ae), {
|
|
4174
4198
|
key: 1,
|
|
4175
4199
|
value: l.value,
|
|
4176
4200
|
"selection-mode": "checkbox",
|
|
@@ -4194,9 +4218,9 @@ var Ei = {
|
|
|
4194
4218
|
]))
|
|
4195
4219
|
], 2));
|
|
4196
4220
|
}
|
|
4197
|
-
}),
|
|
4198
|
-
function
|
|
4199
|
-
return
|
|
4221
|
+
}), Pi = null;
|
|
4222
|
+
function Fi() {
|
|
4223
|
+
return Pi ||= Promise.all([
|
|
4200
4224
|
import("echarts/core"),
|
|
4201
4225
|
import("echarts/charts"),
|
|
4202
4226
|
import("echarts/components"),
|
|
@@ -4212,11 +4236,11 @@ function Ni() {
|
|
|
4212
4236
|
n.TooltipComponent,
|
|
4213
4237
|
r.CanvasRenderer,
|
|
4214
4238
|
r.SVGRenderer
|
|
4215
|
-
]), e)).catch(() => (
|
|
4239
|
+
]), e)).catch(() => (Pi = null, null)), Pi;
|
|
4216
4240
|
}
|
|
4217
|
-
var
|
|
4218
|
-
function
|
|
4219
|
-
let e =
|
|
4241
|
+
var Ii = (e, t = "") => typeof window > "u" ? t : getComputedStyle(document.documentElement).getPropertyValue(e).trim() || t;
|
|
4242
|
+
function Li() {
|
|
4243
|
+
let e = Ii("--fg"), t = Ii("--fg-muted"), n = Ii("--border"), r = Ii("--surface"), i = Ii("--font-sans", "sans-serif"), a = {
|
|
4220
4244
|
axisLine: { lineStyle: { color: n } },
|
|
4221
4245
|
axisTick: { show: !1 },
|
|
4222
4246
|
axisLabel: { color: t },
|
|
@@ -4231,7 +4255,7 @@ function Fi() {
|
|
|
4231
4255
|
4,
|
|
4232
4256
|
5,
|
|
4233
4257
|
6
|
|
4234
|
-
].map((e) =>
|
|
4258
|
+
].map((e) => Ii(`--viz-${e}`)),
|
|
4235
4259
|
backgroundColor: "transparent",
|
|
4236
4260
|
textStyle: {
|
|
4237
4261
|
color: e,
|
|
@@ -4281,7 +4305,7 @@ function Fi() {
|
|
|
4281
4305
|
] } }
|
|
4282
4306
|
};
|
|
4283
4307
|
}
|
|
4284
|
-
function
|
|
4308
|
+
function Ri() {
|
|
4285
4309
|
let e = [
|
|
4286
4310
|
"#141a22",
|
|
4287
4311
|
"#5a6573",
|
|
@@ -4334,16 +4358,16 @@ function Ii() {
|
|
|
4334
4358
|
bar: { itemStyle: { borderRadius: 0 } }
|
|
4335
4359
|
};
|
|
4336
4360
|
}
|
|
4337
|
-
function
|
|
4361
|
+
function zi() {
|
|
4338
4362
|
return {
|
|
4339
4363
|
text: "",
|
|
4340
|
-
color:
|
|
4364
|
+
color: Ii("--primary"),
|
|
4341
4365
|
maskColor: "transparent",
|
|
4342
4366
|
spinnerRadius: 8,
|
|
4343
4367
|
lineWidth: 2
|
|
4344
4368
|
};
|
|
4345
4369
|
}
|
|
4346
|
-
function
|
|
4370
|
+
function Bi({ data: e, format: t = (e) => String(e), centerLabel: n = "", centerSub: r = "" }) {
|
|
4347
4371
|
return {
|
|
4348
4372
|
tooltip: {
|
|
4349
4373
|
trigger: "item",
|
|
@@ -4377,13 +4401,13 @@ function Ri({ data: e, format: t = (e) => String(e), centerLabel: n = "", center
|
|
|
4377
4401
|
}
|
|
4378
4402
|
//#endregion
|
|
4379
4403
|
//#region src/components/charts/WChart.vue?vue&type=script&setup=true&lang.ts
|
|
4380
|
-
var
|
|
4404
|
+
var Vi = {
|
|
4381
4405
|
key: 0,
|
|
4382
4406
|
class: "w-chart__empty"
|
|
4383
|
-
},
|
|
4407
|
+
}, Hi = {
|
|
4384
4408
|
key: 1,
|
|
4385
4409
|
class: "w-chart__empty"
|
|
4386
|
-
},
|
|
4410
|
+
}, Ui = /*#__PURE__*/ Wt(/* @__PURE__ */ x({
|
|
4387
4411
|
__name: "WChart",
|
|
4388
4412
|
props: {
|
|
4389
4413
|
option: {},
|
|
@@ -4407,15 +4431,15 @@ var zi = {
|
|
|
4407
4431
|
let t = e, n = P(null), r = oe(null), i = P(!1), a = null, o = null, s = () => {
|
|
4408
4432
|
r.value && r.value.setOption(t.option, !0);
|
|
4409
4433
|
}, c = () => {
|
|
4410
|
-
r.value && (t.loading ? r.value.showLoading("default",
|
|
4434
|
+
r.value && (t.loading ? r.value.showLoading("default", zi()) : r.value.hideLoading());
|
|
4411
4435
|
}, l = async () => {
|
|
4412
|
-
let e = await
|
|
4436
|
+
let e = await Fi();
|
|
4413
4437
|
if (n.value) {
|
|
4414
4438
|
if (!e) {
|
|
4415
4439
|
i.value = !0;
|
|
4416
4440
|
return;
|
|
4417
4441
|
}
|
|
4418
|
-
i.value = !1, r.value?.dispose(), r.value = e.init(n.value, t.print ?
|
|
4442
|
+
i.value = !1, r.value?.dispose(), r.value = e.init(n.value, t.print ? Ri() : Li(), { renderer: t.print ? "svg" : t.renderer }), s(), c();
|
|
4419
4443
|
}
|
|
4420
4444
|
};
|
|
4421
4445
|
return B(() => t.option, s, { deep: !0 }), B(() => t.loading, c), B([() => t.print, () => t.renderer], () => void l()), te(() => {
|
|
@@ -4425,13 +4449,13 @@ var zi = {
|
|
|
4425
4449
|
}), (t, r) => (M(), h("div", {
|
|
4426
4450
|
class: "w-chart",
|
|
4427
4451
|
style: j(e.height ? { "--w-chart-h": e.height } : void 0)
|
|
4428
|
-
}, [e.empty && !e.loading ? (M(), h("div",
|
|
4452
|
+
}, [e.empty && !e.loading ? (M(), h("div", Vi, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)], !0)])) : i.value ? (M(), h("div", Hi, [I(t.$slots, "unavailable", {}, () => [r[0] ||= y("Gráfico indisponível.", -1)], !0)])) : m("", !0), H(g("div", {
|
|
4429
4453
|
ref_key: "container",
|
|
4430
4454
|
ref: n,
|
|
4431
4455
|
class: "w-chart__canvas"
|
|
4432
4456
|
}, null, 512), [[z, !e.empty && !i.value]])], 4));
|
|
4433
4457
|
}
|
|
4434
|
-
}), [["__scopeId", "data-v-fe796670"]]),
|
|
4458
|
+
}), [["__scopeId", "data-v-fe796670"]]), Wi = /* @__PURE__ */ x({
|
|
4435
4459
|
__name: "WStatusTag",
|
|
4436
4460
|
props: {
|
|
4437
4461
|
value: {},
|
|
@@ -4552,10 +4576,10 @@ var zi = {
|
|
|
4552
4576
|
severity: r.value.severity
|
|
4553
4577
|
}, null, 8, ["value", "severity"]));
|
|
4554
4578
|
}
|
|
4555
|
-
}),
|
|
4579
|
+
}), Gi = { class: "w-page-header" }, Ki = { class: "w-page-header-content" }, qi = { class: "w-page-header-title" }, Ji = {
|
|
4556
4580
|
key: 0,
|
|
4557
4581
|
class: "w-page-header-subtitle"
|
|
4558
|
-
},
|
|
4582
|
+
}, Yi = { class: "w-page-header-actions" }, Xi = /* @__PURE__ */ x({
|
|
4559
4583
|
__name: "WPageHeader",
|
|
4560
4584
|
props: {
|
|
4561
4585
|
title: {},
|
|
@@ -4566,17 +4590,17 @@ var zi = {
|
|
|
4566
4590
|
emits: ["action"],
|
|
4567
4591
|
setup(e, { emit: t }) {
|
|
4568
4592
|
let n = t;
|
|
4569
|
-
return (t, r) => (M(), h("div",
|
|
4593
|
+
return (t, r) => (M(), h("div", Gi, [g("div", Ki, [g("h2", qi, L(e.title), 1), e.subtitle ? (M(), h("p", Ji, L(e.subtitle), 1)) : m("", !0)]), g("div", Yi, [I(t.$slots, "actions"), e.actionLabel ? (M(), p(R(K), {
|
|
4570
4594
|
key: 0,
|
|
4571
4595
|
label: e.actionLabel,
|
|
4572
4596
|
icon: e.actionIcon,
|
|
4573
4597
|
onClick: r[0] ||= (e) => n("action")
|
|
4574
4598
|
}, null, 8, ["label", "icon"])) : m("", !0)])]));
|
|
4575
4599
|
}
|
|
4576
|
-
}),
|
|
4600
|
+
}), Zi = { class: "w-empty-state" }, Qi = { class: "w-empty-state-icon" }, $i = { class: "w-empty-state-title" }, ea = {
|
|
4577
4601
|
key: 0,
|
|
4578
4602
|
class: "w-empty-state-description"
|
|
4579
|
-
},
|
|
4603
|
+
}, ta = /* @__PURE__ */ x({
|
|
4580
4604
|
__name: "WEmptyState",
|
|
4581
4605
|
props: {
|
|
4582
4606
|
icon: {},
|
|
@@ -4588,10 +4612,10 @@ var zi = {
|
|
|
4588
4612
|
emits: ["action"],
|
|
4589
4613
|
setup(e, { emit: t }) {
|
|
4590
4614
|
let n = t;
|
|
4591
|
-
return (t, r) => (M(), h("div",
|
|
4592
|
-
g("div",
|
|
4593
|
-
g("p",
|
|
4594
|
-
e.description ? (M(), h("p",
|
|
4615
|
+
return (t, r) => (M(), h("div", Zi, [
|
|
4616
|
+
g("div", Qi, [g("i", { class: k(e.icon) }, null, 2)]),
|
|
4617
|
+
g("p", $i, L(e.title), 1),
|
|
4618
|
+
e.description ? (M(), h("p", ea, L(e.description), 1)) : m("", !0),
|
|
4595
4619
|
e.actionLabel ? (M(), p(R(K), {
|
|
4596
4620
|
key: 1,
|
|
4597
4621
|
label: e.actionLabel,
|
|
@@ -4602,10 +4626,10 @@ var zi = {
|
|
|
4602
4626
|
}, null, 8, ["label", "icon"])) : m("", !0)
|
|
4603
4627
|
]));
|
|
4604
4628
|
}
|
|
4605
|
-
}),
|
|
4629
|
+
}), na = { class: "w-detail-header" }, ra = { class: "w-detail-header-left" }, ia = { class: "w-detail-header-content" }, aa = { class: "w-detail-header-title" }, oa = {
|
|
4606
4630
|
key: 0,
|
|
4607
4631
|
class: "w-detail-header-subtitle"
|
|
4608
|
-
},
|
|
4632
|
+
}, sa = { class: "w-detail-header-actions" }, ca = /* @__PURE__ */ x({
|
|
4609
4633
|
__name: "WDetailHeader",
|
|
4610
4634
|
props: {
|
|
4611
4635
|
title: {},
|
|
@@ -4621,7 +4645,7 @@ var zi = {
|
|
|
4621
4645
|
function r() {
|
|
4622
4646
|
t.backTo ? n.push(typeof t.backTo == "string" ? { name: t.backTo } : t.backTo) : t.backRoute ? n.push({ name: t.backRoute }) : n.back();
|
|
4623
4647
|
}
|
|
4624
|
-
return (t, n) => (M(), h("div",
|
|
4648
|
+
return (t, n) => (M(), h("div", na, [g("div", ra, [
|
|
4625
4649
|
b(R(K), {
|
|
4626
4650
|
icon: "pi pi-arrow-left",
|
|
4627
4651
|
text: "",
|
|
@@ -4632,27 +4656,27 @@ var zi = {
|
|
|
4632
4656
|
key: 0,
|
|
4633
4657
|
class: k([e.icon, "w-detail-header-icon"])
|
|
4634
4658
|
}, null, 2)) : m("", !0),
|
|
4635
|
-
g("div",
|
|
4636
|
-
e.status ? (M(), p(
|
|
4659
|
+
g("div", ia, [g("h2", aa, L(e.title), 1), e.subtitle ? (M(), h("p", oa, L(e.subtitle), 1)) : m("", !0)]),
|
|
4660
|
+
e.status ? (M(), p(Wi, {
|
|
4637
4661
|
key: 1,
|
|
4638
4662
|
value: e.status,
|
|
4639
4663
|
map: e.statusMap
|
|
4640
4664
|
}, null, 8, ["value", "map"])) : m("", !0)
|
|
4641
|
-
]), g("div",
|
|
4665
|
+
]), g("div", sa, [I(t.$slots, "actions")])]));
|
|
4642
4666
|
}
|
|
4643
|
-
}),
|
|
4667
|
+
}), la = {
|
|
4644
4668
|
key: 0,
|
|
4645
4669
|
class: "w-info-card-title"
|
|
4646
|
-
},
|
|
4670
|
+
}, ua = {
|
|
4647
4671
|
key: 1,
|
|
4648
4672
|
class: "w-info-card-metrics"
|
|
4649
|
-
},
|
|
4673
|
+
}, da = { class: "w-info-card-metric-label" }, fa = { class: "w-info-card-metric-value" }, pa = {
|
|
4650
4674
|
key: 0,
|
|
4651
4675
|
class: "w-info-card-metric-suffix"
|
|
4652
|
-
},
|
|
4676
|
+
}, ma = {
|
|
4653
4677
|
key: 2,
|
|
4654
4678
|
class: "w-info-card-grid"
|
|
4655
|
-
},
|
|
4679
|
+
}, ha = { class: "w-info-card-label" }, ga = { class: "w-info-card-value" }, _a = /* @__PURE__ */ x({
|
|
4656
4680
|
__name: "WInfoCard",
|
|
4657
4681
|
props: {
|
|
4658
4682
|
title: {},
|
|
@@ -4665,34 +4689,34 @@ var zi = {
|
|
|
4665
4689
|
let n = e.value;
|
|
4666
4690
|
return n == null || n === "" ? "-" : e.format === "currency" ? t(Number(n)) : e.format === "date" ? r(String(n)) : e.format === "datetime" ? r(String(n), "DD/MM/YYYY HH:mm") : e.format === "number" ? i(Number(n), e.decimals ?? 2) : String(n);
|
|
4667
4691
|
}
|
|
4668
|
-
return (t, n) => (M(), h("div", { class: k(["w-info-card", `w-info-card--${e.variant}`]) }, [e.title ? (M(), h("h3",
|
|
4692
|
+
return (t, n) => (M(), h("div", { class: k(["w-info-card", `w-info-card--${e.variant}`]) }, [e.title ? (M(), h("h3", la, L(e.title), 1)) : m("", !0), e.variant === "metric" ? (M(), h("div", ua, [(M(!0), h(d, null, F(e.fields, (e) => (M(), h("div", {
|
|
4669
4693
|
key: e.label,
|
|
4670
4694
|
class: "w-info-card-metric"
|
|
4671
4695
|
}, [
|
|
4672
|
-
g("span",
|
|
4673
|
-
g("span",
|
|
4674
|
-
e.suffix ? (M(), h("span",
|
|
4675
|
-
]))), 128))])) : (M(), h("div",
|
|
4696
|
+
g("span", da, L(e.label), 1),
|
|
4697
|
+
g("span", fa, L(a(e)), 1),
|
|
4698
|
+
e.suffix ? (M(), h("span", pa, L(e.suffix), 1)) : m("", !0)
|
|
4699
|
+
]))), 128))])) : (M(), h("div", ma, [(M(!0), h(d, null, F(e.fields, (e) => (M(), h("div", {
|
|
4676
4700
|
key: e.label,
|
|
4677
4701
|
class: "w-info-card-field"
|
|
4678
|
-
}, [g("span",
|
|
4702
|
+
}, [g("span", ha, L(e.label), 1), g("span", ga, L(a(e)), 1)]))), 128))]))], 2));
|
|
4679
4703
|
}
|
|
4680
|
-
}),
|
|
4704
|
+
}), va = {
|
|
4681
4705
|
key: 0,
|
|
4682
4706
|
class: "w-kpi-card__loading"
|
|
4683
|
-
},
|
|
4707
|
+
}, ya = { class: "w-kpi-card__loading-content" }, ba = { class: "w-kpi-card__header" }, xa = {
|
|
4684
4708
|
key: 0,
|
|
4685
4709
|
class: "w-kpi-card__icon"
|
|
4686
|
-
},
|
|
4710
|
+
}, Sa = {
|
|
4687
4711
|
key: 1,
|
|
4688
4712
|
class: "w-kpi-card__trend"
|
|
4689
|
-
},
|
|
4713
|
+
}, Ca = { class: "w-kpi-card__content" }, wa = { class: "w-kpi-card__label" }, Ta = { class: "w-kpi-card__value" }, Ea = {
|
|
4690
4714
|
key: 0,
|
|
4691
4715
|
class: "w-kpi-card__hint"
|
|
4692
|
-
},
|
|
4716
|
+
}, Da = {
|
|
4693
4717
|
key: 0,
|
|
4694
4718
|
class: "w-kpi-card__footer"
|
|
4695
|
-
},
|
|
4719
|
+
}, Oa = /* @__PURE__ */ x({
|
|
4696
4720
|
__name: "WKpiCard",
|
|
4697
4721
|
props: {
|
|
4698
4722
|
label: {},
|
|
@@ -4704,10 +4728,10 @@ var zi = {
|
|
|
4704
4728
|
loading: { type: Boolean }
|
|
4705
4729
|
},
|
|
4706
4730
|
setup(e) {
|
|
4707
|
-
return (t, n) => (M(), h("article", { class: k(["w-kpi-card", e.severity ? `w-kpi-card--${e.severity}` : ""]) }, [e.loading ? (M(), h("div",
|
|
4731
|
+
return (t, n) => (M(), h("article", { class: k(["w-kpi-card", e.severity ? `w-kpi-card--${e.severity}` : ""]) }, [e.loading ? (M(), h("div", va, [b(R(X), {
|
|
4708
4732
|
shape: "circle",
|
|
4709
4733
|
size: "2.75rem"
|
|
4710
|
-
}), g("div",
|
|
4734
|
+
}), g("div", ya, [
|
|
4711
4735
|
b(R(X), {
|
|
4712
4736
|
width: "6rem",
|
|
4713
4737
|
height: "0.75rem"
|
|
@@ -4721,22 +4745,22 @@ var zi = {
|
|
|
4721
4745
|
height: "0.75rem"
|
|
4722
4746
|
})
|
|
4723
4747
|
])])) : (M(), h(d, { key: 1 }, [
|
|
4724
|
-
g("div",
|
|
4748
|
+
g("div", ba, [e.icon || t.$slots.icon ? (M(), h("div", xa, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
|
|
4725
4749
|
key: 0,
|
|
4726
4750
|
class: k(e.icon)
|
|
4727
|
-
}, null, 2)) : m("", !0)])])) : m("", !0), e.trend || t.$slots.trend ? (M(), h("div",
|
|
4751
|
+
}, null, 2)) : m("", !0)])])) : m("", !0), e.trend || t.$slots.trend ? (M(), h("div", Sa, [I(t.$slots, "trend", {}, () => [e.trend ? (M(), h("span", {
|
|
4728
4752
|
key: 0,
|
|
4729
4753
|
class: k(["w-kpi-card__trend-badge", e.trend.direction ? `w-kpi-card__trend-badge--${e.trend.direction}` : ""])
|
|
4730
4754
|
}, L(e.trend.value), 3)) : m("", !0)])])) : m("", !0)]),
|
|
4731
|
-
g("div",
|
|
4732
|
-
g("p",
|
|
4733
|
-
g("div",
|
|
4734
|
-
e.hint || t.$slots.hint ? (M(), h("p",
|
|
4755
|
+
g("div", Ca, [
|
|
4756
|
+
g("p", wa, L(e.label), 1),
|
|
4757
|
+
g("div", Ta, [I(t.$slots, "value", {}, () => [y(L(e.value), 1)])]),
|
|
4758
|
+
e.hint || t.$slots.hint ? (M(), h("p", Ea, [I(t.$slots, "hint", {}, () => [y(L(e.hint), 1)])])) : m("", !0)
|
|
4735
4759
|
]),
|
|
4736
|
-
t.$slots.footer ? (M(), h("footer",
|
|
4760
|
+
t.$slots.footer ? (M(), h("footer", Da, [I(t.$slots, "footer")])) : m("", !0)
|
|
4737
4761
|
], 64))], 2));
|
|
4738
4762
|
}
|
|
4739
|
-
}),
|
|
4763
|
+
}), ka = /* @__PURE__ */ x({
|
|
4740
4764
|
__name: "WKpiGrid",
|
|
4741
4765
|
props: {
|
|
4742
4766
|
items: { default: () => [] },
|
|
@@ -4752,7 +4776,7 @@ var zi = {
|
|
|
4752
4776
|
key: n,
|
|
4753
4777
|
item: e,
|
|
4754
4778
|
index: n
|
|
4755
|
-
})), 128)) : (M(!0), h(d, { key: 1 }, F(e.items, (e, t) => (M(), p(
|
|
4779
|
+
})), 128)) : (M(!0), h(d, { key: 1 }, F(e.items, (e, t) => (M(), p(Oa, {
|
|
4756
4780
|
key: t,
|
|
4757
4781
|
label: e.label,
|
|
4758
4782
|
value: e.value,
|
|
@@ -4771,16 +4795,16 @@ var zi = {
|
|
|
4771
4795
|
"loading"
|
|
4772
4796
|
]))), 128))], 2));
|
|
4773
4797
|
}
|
|
4774
|
-
}),
|
|
4798
|
+
}), Aa = { class: "w-section-header__main" }, ja = {
|
|
4775
4799
|
key: 0,
|
|
4776
4800
|
class: "w-section-header__icon"
|
|
4777
|
-
},
|
|
4801
|
+
}, Ma = { class: "w-section-header__content" }, Na = { class: "w-section-header__title-row" }, Pa = { class: "w-section-header__title" }, Fa = {
|
|
4778
4802
|
key: 0,
|
|
4779
4803
|
class: "w-section-header__subtitle"
|
|
4780
|
-
},
|
|
4804
|
+
}, Ia = {
|
|
4781
4805
|
key: 0,
|
|
4782
4806
|
class: "w-section-header__actions"
|
|
4783
|
-
},
|
|
4807
|
+
}, La = /* @__PURE__ */ x({
|
|
4784
4808
|
__name: "WSectionHeader",
|
|
4785
4809
|
props: {
|
|
4786
4810
|
title: {},
|
|
@@ -4789,21 +4813,21 @@ var zi = {
|
|
|
4789
4813
|
compact: { type: Boolean }
|
|
4790
4814
|
},
|
|
4791
4815
|
setup(e) {
|
|
4792
|
-
return (t, n) => (M(), h("div", { class: k(["w-section-header", { "w-section-header--compact": e.compact }]) }, [g("div",
|
|
4816
|
+
return (t, n) => (M(), h("div", { class: k(["w-section-header", { "w-section-header--compact": e.compact }]) }, [g("div", Aa, [e.icon || t.$slots.icon ? (M(), h("div", ja, [I(t.$slots, "icon", {}, () => [e.icon ? (M(), h("i", {
|
|
4793
4817
|
key: 0,
|
|
4794
4818
|
class: k(e.icon)
|
|
4795
|
-
}, null, 2)) : m("", !0)])])) : m("", !0), g("div",
|
|
4819
|
+
}, null, 2)) : m("", !0)])])) : m("", !0), g("div", Ma, [g("div", Na, [g("h3", Pa, L(e.title), 1), I(t.$slots, "meta")]), e.subtitle ? (M(), h("p", Fa, L(e.subtitle), 1)) : m("", !0)])]), t.$slots.actions ? (M(), h("div", Ia, [I(t.$slots, "actions")])) : m("", !0)], 2));
|
|
4796
4820
|
}
|
|
4797
|
-
}),
|
|
4821
|
+
}), Ra = {
|
|
4798
4822
|
key: 0,
|
|
4799
4823
|
class: "w-form-section__header"
|
|
4800
|
-
},
|
|
4824
|
+
}, za = { class: "w-form-section__content" }, Ba = { class: "w-form-section__title" }, Va = {
|
|
4801
4825
|
key: 0,
|
|
4802
4826
|
class: "w-form-section__description"
|
|
4803
|
-
},
|
|
4827
|
+
}, Ha = {
|
|
4804
4828
|
key: 0,
|
|
4805
4829
|
class: "w-form-section__actions"
|
|
4806
|
-
},
|
|
4830
|
+
}, Ua = { class: "w-form-section__body" }, Wa = /* @__PURE__ */ x({
|
|
4807
4831
|
__name: "WFormSection",
|
|
4808
4832
|
props: {
|
|
4809
4833
|
title: {},
|
|
@@ -4811,18 +4835,18 @@ var zi = {
|
|
|
4811
4835
|
variant: {}
|
|
4812
4836
|
},
|
|
4813
4837
|
setup(e) {
|
|
4814
|
-
return (t, n) => (M(), h("section", { class: k(["w-form-section", e.variant ? `w-form-section--${e.variant}` : ""]) }, [e.title || e.description || t.$slots.actions ? (M(), h("div",
|
|
4838
|
+
return (t, n) => (M(), h("section", { class: k(["w-form-section", e.variant ? `w-form-section--${e.variant}` : ""]) }, [e.title || e.description || t.$slots.actions ? (M(), h("div", Ra, [g("div", za, [g("h3", Ba, L(e.title), 1), e.description ? (M(), h("p", Va, L(e.description), 1)) : m("", !0)]), t.$slots.actions ? (M(), h("div", Ha, [I(t.$slots, "actions")])) : m("", !0)])) : m("", !0), g("div", Ua, [I(t.$slots, "default")])], 2));
|
|
4815
4839
|
}
|
|
4816
|
-
}),
|
|
4840
|
+
}), Ga = {
|
|
4817
4841
|
key: 0,
|
|
4818
4842
|
class: "w-action-bar__primary"
|
|
4819
|
-
},
|
|
4843
|
+
}, Ka = {
|
|
4820
4844
|
key: 1,
|
|
4821
4845
|
class: "w-action-bar__filters"
|
|
4822
|
-
},
|
|
4846
|
+
}, qa = {
|
|
4823
4847
|
key: 2,
|
|
4824
4848
|
class: "w-action-bar__secondary"
|
|
4825
|
-
},
|
|
4849
|
+
}, Ja = /* @__PURE__ */ x({
|
|
4826
4850
|
__name: "WActionBar",
|
|
4827
4851
|
props: {
|
|
4828
4852
|
align: { default: "between" },
|
|
@@ -4833,15 +4857,15 @@ var zi = {
|
|
|
4833
4857
|
},
|
|
4834
4858
|
setup(e) {
|
|
4835
4859
|
return (t, n) => (M(), h("div", { class: k(["w-action-bar", [`w-action-bar--${e.align}`, { "w-action-bar--stack": e.stackOnMobile }]]) }, [
|
|
4836
|
-
t.$slots.primary || t.$slots.default ? (M(), h("div",
|
|
4837
|
-
t.$slots.filters ? (M(), h("div",
|
|
4838
|
-
t.$slots.secondary ? (M(), h("div",
|
|
4860
|
+
t.$slots.primary || t.$slots.default ? (M(), h("div", Ga, [I(t.$slots, "primary", {}, () => [I(t.$slots, "default")])])) : m("", !0),
|
|
4861
|
+
t.$slots.filters ? (M(), h("div", Ka, [I(t.$slots, "filters")])) : m("", !0),
|
|
4862
|
+
t.$slots.secondary ? (M(), h("div", qa, [I(t.$slots, "secondary")])) : m("", !0)
|
|
4839
4863
|
], 2));
|
|
4840
4864
|
}
|
|
4841
|
-
}),
|
|
4865
|
+
}), Ya = { class: "w-progress-flow__marker" }, Xa = { class: "w-progress-flow__content" }, Za = { class: "w-progress-flow__label" }, Qa = {
|
|
4842
4866
|
key: 0,
|
|
4843
4867
|
class: "w-progress-flow__description"
|
|
4844
|
-
},
|
|
4868
|
+
}, $a = /* @__PURE__ */ x({
|
|
4845
4869
|
__name: "WProgressFlow",
|
|
4846
4870
|
props: {
|
|
4847
4871
|
steps: {},
|
|
@@ -4860,9 +4884,9 @@ var zi = {
|
|
|
4860
4884
|
step: e,
|
|
4861
4885
|
index: n,
|
|
4862
4886
|
state: r(n)
|
|
4863
|
-
}, () => [g("div",
|
|
4887
|
+
}, () => [g("div", Ya, [g("span", null, L(n + 1), 1)]), g("div", Xa, [g("p", Za, L(e.label), 1), e.description ? (M(), h("p", Qa, L(e.description), 1)) : m("", !0)])])], 2))), 128))], 2));
|
|
4864
4888
|
}
|
|
4865
|
-
}),
|
|
4889
|
+
}), eo = Symbol("w-step-flow"), to = /* @__PURE__ */ x({
|
|
4866
4890
|
__name: "WStepFlow",
|
|
4867
4891
|
props: {
|
|
4868
4892
|
modelValue: { default: 0 },
|
|
@@ -4878,7 +4902,7 @@ var zi = {
|
|
|
4878
4902
|
function s(e) {
|
|
4879
4903
|
n.disabled || r("update:modelValue", n.modelValue === e ? 0 : e);
|
|
4880
4904
|
}
|
|
4881
|
-
N(
|
|
4905
|
+
N(eo, {
|
|
4882
4906
|
active: i,
|
|
4883
4907
|
toggle: s,
|
|
4884
4908
|
disabled: a,
|
|
@@ -4906,48 +4930,48 @@ var zi = {
|
|
|
4906
4930
|
onKeydown: l
|
|
4907
4931
|
}, [I(e.$slots, "default")], 34));
|
|
4908
4932
|
}
|
|
4909
|
-
}),
|
|
4933
|
+
}), no = { class: "w-step-section__rail" }, ro = {
|
|
4910
4934
|
key: 0,
|
|
4911
4935
|
class: "w-step-section__line"
|
|
4912
|
-
},
|
|
4936
|
+
}, io = { class: "w-step-section__body" }, ao = { class: "w-step-section__card" }, oo = { class: "w-step-section__header" }, so = [
|
|
4913
4937
|
"aria-expanded",
|
|
4914
4938
|
"aria-current",
|
|
4915
4939
|
"disabled"
|
|
4916
|
-
],
|
|
4940
|
+
], co = { class: "w-step-section__title" }, lo = {
|
|
4917
4941
|
key: 0,
|
|
4918
4942
|
class: "w-step-section__count"
|
|
4919
|
-
},
|
|
4943
|
+
}, uo = {
|
|
4920
4944
|
key: 1,
|
|
4921
4945
|
class: "w-step-section__summary"
|
|
4922
|
-
},
|
|
4946
|
+
}, fo = {
|
|
4923
4947
|
key: 0,
|
|
4924
4948
|
class: "w-step-section__actions"
|
|
4925
|
-
},
|
|
4949
|
+
}, po = { class: "w-step-section__content" }, mo = {
|
|
4926
4950
|
key: 0,
|
|
4927
4951
|
class: "w-step-section__footer"
|
|
4928
|
-
},
|
|
4952
|
+
}, ho = { class: "w-step-section__head" }, go = [
|
|
4929
4953
|
"aria-expanded",
|
|
4930
4954
|
"aria-current",
|
|
4931
4955
|
"disabled"
|
|
4932
|
-
],
|
|
4956
|
+
], _o = {
|
|
4933
4957
|
key: 0,
|
|
4934
4958
|
class: "pi pi-check"
|
|
4935
|
-
},
|
|
4959
|
+
}, vo = { class: "w-step-section__title" }, yo = {
|
|
4936
4960
|
key: 0,
|
|
4937
4961
|
class: "w-step-section__count"
|
|
4938
|
-
},
|
|
4962
|
+
}, bo = {
|
|
4939
4963
|
key: 1,
|
|
4940
4964
|
class: "w-step-section__summary"
|
|
4941
|
-
},
|
|
4965
|
+
}, xo = {
|
|
4942
4966
|
key: 1,
|
|
4943
4967
|
class: "w-step-section__actions"
|
|
4944
|
-
},
|
|
4968
|
+
}, So = {
|
|
4945
4969
|
key: 0,
|
|
4946
4970
|
class: "w-step-section__panel"
|
|
4947
|
-
},
|
|
4971
|
+
}, Co = { class: "w-step-section__content" }, wo = {
|
|
4948
4972
|
key: 0,
|
|
4949
4973
|
class: "w-step-section__footer"
|
|
4950
|
-
},
|
|
4974
|
+
}, To = /* @__PURE__ */ x({
|
|
4951
4975
|
__name: "WStepSection",
|
|
4952
4976
|
props: {
|
|
4953
4977
|
step: {},
|
|
@@ -4960,7 +4984,7 @@ var zi = {
|
|
|
4960
4984
|
}
|
|
4961
4985
|
},
|
|
4962
4986
|
setup(e) {
|
|
4963
|
-
let t = e, n = w(
|
|
4987
|
+
let t = e, n = w(eo, null), r = P(!0), i = f(() => n ? n.active.value === t.step : r.value), a = f(() => t.disabled || (n?.disabled.value ?? !1)), o = f(() => n?.orientation.value === "horizontal"), s = f(() => n !== null), c = f(() => o.value && n != null && t.step < n.active.value);
|
|
4964
4988
|
function l() {
|
|
4965
4989
|
a.value || (n ? n.toggle(t.step) : r.value = !r.value);
|
|
4966
4990
|
}
|
|
@@ -4970,7 +4994,7 @@ var zi = {
|
|
|
4970
4994
|
"w-step-section--open": i.value,
|
|
4971
4995
|
"w-step-section--done": c.value
|
|
4972
4996
|
}])
|
|
4973
|
-
}, [g("div",
|
|
4997
|
+
}, [g("div", ho, [
|
|
4974
4998
|
s.value ? (M(), h("span", {
|
|
4975
4999
|
key: 0,
|
|
4976
5000
|
class: k(["w-step-section__line", { "w-step-section__line--done": c.value || i.value }])
|
|
@@ -4989,19 +5013,19 @@ var zi = {
|
|
|
4989
5013
|
"w-step-section__badge--done": c.value
|
|
4990
5014
|
}]),
|
|
4991
5015
|
"aria-hidden": "true"
|
|
4992
|
-
}, [c.value ? (M(), h("i",
|
|
4993
|
-
g("h2",
|
|
4994
|
-
e.count == null ? m("", !0) : (M(), h("span",
|
|
4995
|
-
e.summary ? (M(), h("span",
|
|
4996
|
-
], 8,
|
|
4997
|
-
t.$slots.actions ? (M(), h("div",
|
|
4998
|
-
]), i.value ? (M(), h("div",
|
|
5016
|
+
}, [c.value ? (M(), h("i", _o)) : (M(), h(d, { key: 1 }, [y(L(e.step), 1)], 64))], 2),
|
|
5017
|
+
g("h2", vo, L(e.title), 1),
|
|
5018
|
+
e.count == null ? m("", !0) : (M(), h("span", yo, L(e.count), 1)),
|
|
5019
|
+
e.summary ? (M(), h("span", bo, L(e.summary), 1)) : m("", !0)
|
|
5020
|
+
], 8, go),
|
|
5021
|
+
t.$slots.actions ? (M(), h("div", xo, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)
|
|
5022
|
+
]), i.value ? (M(), h("div", So, [g("div", Co, [I(t.$slots, "default")]), t.$slots.footer ? (M(), h("div", wo, [I(t.$slots, "footer")])) : m("", !0)])) : m("", !0)], 2)) : (M(), h("div", {
|
|
4999
5023
|
key: 0,
|
|
5000
5024
|
class: k(["w-step-section", { "w-step-section--open": i.value }])
|
|
5001
|
-
}, [g("div",
|
|
5025
|
+
}, [g("div", no, [g("span", {
|
|
5002
5026
|
class: k(["w-step-section__badge", { "w-step-section__badge--on": i.value }]),
|
|
5003
5027
|
"aria-hidden": "true"
|
|
5004
|
-
}, L(e.step), 3), s.value ? (M(), h("span",
|
|
5028
|
+
}, L(e.step), 3), s.value ? (M(), h("span", ro)) : m("", !0)]), g("div", io, [g("div", ao, [g("div", oo, [g("button", {
|
|
5005
5029
|
type: "button",
|
|
5006
5030
|
class: "w-step-section__trigger",
|
|
5007
5031
|
"aria-expanded": i.value,
|
|
@@ -5010,24 +5034,24 @@ var zi = {
|
|
|
5010
5034
|
onClick: l
|
|
5011
5035
|
}, [
|
|
5012
5036
|
g("i", { class: k(["w-step-section__chevron", i.value ? "pi pi-chevron-down" : "pi pi-chevron-right"]) }, null, 2),
|
|
5013
|
-
g("h2",
|
|
5014
|
-
e.count == null ? m("", !0) : (M(), h("span",
|
|
5015
|
-
e.summary ? (M(), h("span",
|
|
5016
|
-
], 8,
|
|
5037
|
+
g("h2", co, L(e.title), 1),
|
|
5038
|
+
e.count == null ? m("", !0) : (M(), h("span", lo, L(e.count), 1)),
|
|
5039
|
+
e.summary ? (M(), h("span", uo, L(e.summary), 1)) : m("", !0)
|
|
5040
|
+
], 8, so), t.$slots.actions ? (M(), h("div", fo, [I(t.$slots, "actions", { open: i.value })])) : m("", !0)]), i.value ? (M(), h(d, { key: 0 }, [g("div", po, [I(t.$slots, "default")]), t.$slots.footer ? (M(), h("div", mo, [I(t.$slots, "footer")])) : m("", !0)], 64)) : m("", !0)])])], 2));
|
|
5017
5041
|
}
|
|
5018
|
-
}),
|
|
5042
|
+
}), Eo = { class: "w-check-list" }, Do = {
|
|
5019
5043
|
key: 0,
|
|
5020
5044
|
class: "w-check-list__header"
|
|
5021
|
-
},
|
|
5045
|
+
}, Oo = { class: "w-check-list__title" }, ko = {
|
|
5022
5046
|
key: 0,
|
|
5023
5047
|
class: "w-check-list__count"
|
|
5024
|
-
},
|
|
5048
|
+
}, Ao = {
|
|
5025
5049
|
key: 1,
|
|
5026
5050
|
class: "w-check-list__items"
|
|
5027
|
-
},
|
|
5051
|
+
}, jo = { class: "w-check-list__label" }, Mo = {
|
|
5028
5052
|
key: 2,
|
|
5029
5053
|
class: "w-check-list__empty"
|
|
5030
|
-
},
|
|
5054
|
+
}, No = /* @__PURE__ */ x({
|
|
5031
5055
|
__name: "WCheckList",
|
|
5032
5056
|
props: {
|
|
5033
5057
|
title: {},
|
|
@@ -5047,62 +5071,62 @@ var zi = {
|
|
|
5047
5071
|
function a(e) {
|
|
5048
5072
|
return i[e] ?? i.warn;
|
|
5049
5073
|
}
|
|
5050
|
-
return (t, n) => (M(), h("div",
|
|
5074
|
+
return (t, n) => (M(), h("div", Eo, [e.title || e.showCount ? (M(), h("div", Do, [g("span", Oo, L(e.title), 1), e.showCount ? (M(), h("span", ko, L(r.value), 1)) : m("", !0)])) : m("", !0), e.items.length ? (M(), h("ul", Ao, [(M(!0), h(d, null, F(e.items, (e, t) => (M(), h("li", {
|
|
5051
5075
|
key: `${e.label}-${t}`,
|
|
5052
5076
|
class: "w-check-list__item"
|
|
5053
|
-
}, [g("i", { class: k([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span",
|
|
5077
|
+
}, [g("i", { class: k([a(e.nivel), `w-check-list__icon--${e.nivel}`]) }, null, 2), g("span", jo, L(e.label), 1)]))), 128))])) : (M(), h("div", Mo, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])]))]));
|
|
5054
5078
|
}
|
|
5055
|
-
}),
|
|
5056
|
-
function
|
|
5079
|
+
}), Po = .85;
|
|
5080
|
+
function Fo(e, t, n) {
|
|
5057
5081
|
return !e || e.largura <= 0 || e.altura <= 0 ? !1 : e.largura <= t && e.altura <= n;
|
|
5058
5082
|
}
|
|
5059
|
-
function
|
|
5083
|
+
function Io(e, t, n, r = Po) {
|
|
5060
5084
|
if (!t || t.largura <= 0 || t.altura <= 0 || e.largura <= 0 || e.altura <= 0) return "completo";
|
|
5061
5085
|
let i = e.largura * r, a = e.altura * r;
|
|
5062
|
-
return
|
|
5086
|
+
return Fo(t, i, a) ? "completo" : Fo(n, i, a) ? "curto" : "oculto";
|
|
5063
5087
|
}
|
|
5064
5088
|
//#endregion
|
|
5065
5089
|
//#region src/components/ui/WMapSelect.vue?vue&type=script&setup=true&lang.ts
|
|
5066
|
-
var
|
|
5090
|
+
var Lo = { class: "w-map-select__body" }, Ro = {
|
|
5067
5091
|
key: 0,
|
|
5068
5092
|
class: "w-map-select__fallback"
|
|
5069
|
-
},
|
|
5093
|
+
}, zo = {
|
|
5070
5094
|
key: 1,
|
|
5071
5095
|
class: "w-map-select__badge"
|
|
5072
|
-
},
|
|
5096
|
+
}, Bo = { class: "w-map-select__detail-nome" }, Vo = {
|
|
5073
5097
|
key: 0,
|
|
5074
5098
|
class: "w-map-select__detail-sub"
|
|
5075
|
-
},
|
|
5099
|
+
}, Ho = {
|
|
5076
5100
|
key: 0,
|
|
5077
5101
|
class: "w-map-select__panel"
|
|
5078
|
-
},
|
|
5102
|
+
}, Uo = [
|
|
5079
5103
|
"aria-expanded",
|
|
5080
5104
|
"aria-label",
|
|
5081
5105
|
"title"
|
|
5082
|
-
],
|
|
5106
|
+
], Wo = {
|
|
5083
5107
|
key: 0,
|
|
5084
5108
|
class: "w-map-select__collapse-count"
|
|
5085
|
-
},
|
|
5109
|
+
}, Go = { class: "w-map-select__panel-head" }, Ko = { class: "w-map-select__meta" }, qo = { class: "w-map-select__count" }, Jo = ["disabled"], Yo = { class: "w-map-select__list" }, Xo = [
|
|
5086
5110
|
"aria-pressed",
|
|
5087
5111
|
"disabled",
|
|
5088
5112
|
"onClick"
|
|
5089
|
-
],
|
|
5113
|
+
], Zo = { class: "w-map-select__box" }, Qo = {
|
|
5090
5114
|
key: 0,
|
|
5091
5115
|
class: "pi pi-check"
|
|
5092
|
-
},
|
|
5116
|
+
}, $o = { class: "w-map-select__item-text" }, es = { class: "w-map-select__item-name" }, ts = {
|
|
5093
5117
|
key: 0,
|
|
5094
5118
|
class: "w-map-select__item-sub"
|
|
5095
|
-
},
|
|
5119
|
+
}, ns = {
|
|
5096
5120
|
key: 0,
|
|
5097
5121
|
class: "pi pi-exclamation-circle w-map-select__item-nogeo",
|
|
5098
5122
|
title: "Talhão sem contorno cadastrado"
|
|
5099
|
-
},
|
|
5123
|
+
}, rs = {
|
|
5100
5124
|
key: 1,
|
|
5101
5125
|
class: "w-map-select__item-area"
|
|
5102
|
-
},
|
|
5126
|
+
}, is = {
|
|
5103
5127
|
key: 0,
|
|
5104
5128
|
class: "w-map-select__empty"
|
|
5105
|
-
},
|
|
5129
|
+
}, as = { class: "w-map-select__area" }, os = { class: "w-map-select__area-unit" }, ss = "O mapa não pôde ser carregado. Selecione os talhões pela lista ao lado.", cs = "O mapa não pôde ser carregado.", ls = /* @__PURE__ */ x({
|
|
5106
5130
|
__name: "WMapSelect",
|
|
5107
5131
|
props: {
|
|
5108
5132
|
modelValue: { default: () => [] },
|
|
@@ -5130,7 +5154,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5130
5154
|
},
|
|
5131
5155
|
badgeLabel: { default: "Satélite" },
|
|
5132
5156
|
emptyMessage: { default: "Nenhum talhão encontrado" },
|
|
5133
|
-
mapErrorMessage: { default:
|
|
5157
|
+
mapErrorMessage: { default: ss },
|
|
5134
5158
|
disabled: {
|
|
5135
5159
|
type: Boolean,
|
|
5136
5160
|
default: !1
|
|
@@ -5168,7 +5192,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5168
5192
|
type: Function,
|
|
5169
5193
|
default: void 0
|
|
5170
5194
|
},
|
|
5171
|
-
labelFitScale: { default:
|
|
5195
|
+
labelFitScale: { default: Po },
|
|
5172
5196
|
labelFullFromZoom: { default: 13 },
|
|
5173
5197
|
featureDetail: { default: "none" },
|
|
5174
5198
|
detailPlacement: { default: "cursor" }
|
|
@@ -5181,7 +5205,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5181
5205
|
"update:collapsed"
|
|
5182
5206
|
],
|
|
5183
5207
|
setup(e, { expose: t, emit: r }) {
|
|
5184
|
-
let i = e, a = r, o = le(), { formatNumber: s } = n(), c = f(() => i.layout === "sobreposto"), l = f(() => !i.readonly && (!!o.footer || i.areaLabel !== "")), u = f(() => i.readonly && i.mapErrorMessage ===
|
|
5208
|
+
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 === ss ? cs : i.mapErrorMessage), p = P(!1), _ = f(() => i.collapsed != null), v = f(() => _.value ? !!i.collapsed : p.value);
|
|
5185
5209
|
function x(e) {
|
|
5186
5210
|
v.value !== e && (_.value || (p.value = e), a("update:collapsed", e));
|
|
5187
5211
|
}
|
|
@@ -5363,7 +5387,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5363
5387
|
if (!r || !a) return;
|
|
5364
5388
|
let o = je(a);
|
|
5365
5389
|
if (!o) return;
|
|
5366
|
-
let s = Me(a), c = t ? "completo" :
|
|
5390
|
+
let s = Me(a), c = t ? "completo" : Io(Le(n), Ie(o), s && s !== o ? Ie(s) : null, i.labelFitScale);
|
|
5367
5391
|
c !== "oculto" && r.setContent(c === "curto" ? s : o), r.getElement()?.classList.toggle("w-map-select__tip--fora", c === "oculto");
|
|
5368
5392
|
});
|
|
5369
5393
|
}
|
|
@@ -5493,7 +5517,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5493
5517
|
"w-map-select--overlay": c.value,
|
|
5494
5518
|
"w-map-select--collapsed": c.value && v.value && !e.readonly
|
|
5495
5519
|
}])
|
|
5496
|
-
}, [g("div",
|
|
5520
|
+
}, [g("div", Lo, [g("div", {
|
|
5497
5521
|
class: "w-map-select__map",
|
|
5498
5522
|
style: j({ "--w-map-h": e.height })
|
|
5499
5523
|
}, [
|
|
@@ -5502,7 +5526,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5502
5526
|
ref: z,
|
|
5503
5527
|
class: "w-map-select__canvas"
|
|
5504
5528
|
}, null, 512),
|
|
5505
|
-
W.value ? (M(), h("div",
|
|
5529
|
+
W.value ? (M(), h("div", Ro, [n[1] ||= g("i", { class: "pi pi-map" }, null, -1), g("span", null, L(u.value), 1)])) : e.badgeLabel ? (M(), h("span", zo, [n[2] ||= g("i", { class: "pi pi-globe" }, null, -1), y(L(e.badgeLabel), 1)])) : m("", !0),
|
|
5506
5530
|
Y.value && e.featureDetail !== "none" ? (M(), h("div", {
|
|
5507
5531
|
key: 2,
|
|
5508
5532
|
class: k(["w-map-select__detail", {
|
|
@@ -5516,8 +5540,8 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5516
5540
|
feature: Y.value,
|
|
5517
5541
|
selected: E(Y.value.id),
|
|
5518
5542
|
close: Ee
|
|
5519
|
-
}, () => [g("span",
|
|
5520
|
-
], 4), e.readonly ? m("", !0) : (M(), h("div",
|
|
5543
|
+
}, () => [g("span", Bo, L(Y.value.nome), 1), Y.value.subtitulo ? (M(), h("span", Vo, L(Y.value.subtitulo), 1)) : m("", !0)])], 6)) : m("", !0)
|
|
5544
|
+
], 4), e.readonly ? m("", !0) : (M(), h("div", Ho, [
|
|
5521
5545
|
c.value ? (M(), h("button", {
|
|
5522
5546
|
key: 0,
|
|
5523
5547
|
type: "button",
|
|
@@ -5526,8 +5550,8 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5526
5550
|
"aria-label": C.value,
|
|
5527
5551
|
title: C.value,
|
|
5528
5552
|
onClick: S
|
|
5529
|
-
}, [g("i", { class: k(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (M(), h("span",
|
|
5530
|
-
g("div",
|
|
5553
|
+
}, [g("i", { class: k(["pi", v.value ? "pi-list" : "pi-chevron-right"]) }, null, 2), e.modelValue.length ? (M(), h("span", Wo, L(e.modelValue.length), 1)) : m("", !0)], 8, Uo)) : m("", !0),
|
|
5554
|
+
g("div", Go, [b(R(he), null, {
|
|
5531
5555
|
default: V(() => [b(R(ge), { class: "pi pi-search" }), b(R(q), {
|
|
5532
5556
|
modelValue: ae.value,
|
|
5533
5557
|
"onUpdate:modelValue": n[0] ||= (e) => ae.value = e,
|
|
@@ -5541,13 +5565,13 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5541
5565
|
"aria-label"
|
|
5542
5566
|
])]),
|
|
5543
5567
|
_: 1
|
|
5544
|
-
}), g("div",
|
|
5568
|
+
}), g("div", Ko, [g("span", qo, L(re.value), 1), g("button", {
|
|
5545
5569
|
type: "button",
|
|
5546
5570
|
class: "w-map-select__clear",
|
|
5547
5571
|
disabled: e.disabled || !e.modelValue.length,
|
|
5548
5572
|
onClick: A
|
|
5549
|
-
}, L(e.clearLabel), 9,
|
|
5550
|
-
g("ul",
|
|
5573
|
+
}, L(e.clearLabel), 9, Jo)])]),
|
|
5574
|
+
g("ul", Yo, [(M(!0), h(d, null, F(se.value, (n) => (M(), h("li", { key: n.id }, [I(t.$slots, "item", {
|
|
5551
5575
|
feature: n,
|
|
5552
5576
|
selected: E(n.id)
|
|
5553
5577
|
}, () => [g("button", {
|
|
@@ -5557,11 +5581,11 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5557
5581
|
disabled: e.disabled,
|
|
5558
5582
|
onClick: (e) => D(n.id)
|
|
5559
5583
|
}, [
|
|
5560
|
-
g("span",
|
|
5561
|
-
g("span",
|
|
5562
|
-
n.geometria ? m("", !0) : (M(), h("i",
|
|
5563
|
-
n.area == null ? m("", !0) : (M(), h("span",
|
|
5564
|
-
], 10,
|
|
5584
|
+
g("span", Zo, [E(n.id) ? (M(), h("i", Qo)) : m("", !0)]),
|
|
5585
|
+
g("span", $o, [g("span", es, L(n.nome), 1), n.subtitulo ? (M(), h("span", ts, L(n.subtitulo), 1)) : m("", !0)]),
|
|
5586
|
+
n.geometria ? m("", !0) : (M(), h("i", ns)),
|
|
5587
|
+
n.area == null ? m("", !0) : (M(), h("span", rs, L(ce(n)), 1))
|
|
5588
|
+
], 10, Xo)])]))), 128)), se.value.length ? m("", !0) : (M(), h("li", is, [I(t.$slots, "empty", {}, () => [y(L(e.emptyMessage), 1)])]))])
|
|
5565
5589
|
]))]), l.value ? (M(), h("div", {
|
|
5566
5590
|
key: 0,
|
|
5567
5591
|
ref_key: "footer",
|
|
@@ -5570,13 +5594,13 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5570
5594
|
}, [I(t.$slots, "footer", {
|
|
5571
5595
|
area: N.value,
|
|
5572
5596
|
features: ne.value
|
|
5573
|
-
}, () => [g("span",
|
|
5597
|
+
}, () => [g("span", as, [
|
|
5574
5598
|
y(L(e.areaLabel) + " ", 1),
|
|
5575
5599
|
g("strong", null, L(ue.value), 1),
|
|
5576
|
-
g("span",
|
|
5600
|
+
g("span", os, L(e.areaSuffix), 1)
|
|
5577
5601
|
])])], 512)) : m("", !0)], 2));
|
|
5578
5602
|
}
|
|
5579
|
-
}),
|
|
5603
|
+
}), us = {
|
|
5580
5604
|
nota: {
|
|
5581
5605
|
tone: "nota",
|
|
5582
5606
|
label: "Nota",
|
|
@@ -5622,7 +5646,7 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5622
5646
|
label: "Em aberto",
|
|
5623
5647
|
icon: "pi pi-question-circle"
|
|
5624
5648
|
}
|
|
5625
|
-
},
|
|
5649
|
+
}, ds = {
|
|
5626
5650
|
note: "nota",
|
|
5627
5651
|
info: "nota",
|
|
5628
5652
|
observacao: "nota",
|
|
@@ -5649,19 +5673,19 @@ var Fo = { class: "w-map-select__body" }, Io = {
|
|
|
5649
5673
|
help: "pergunta",
|
|
5650
5674
|
duvida: "pergunta"
|
|
5651
5675
|
};
|
|
5652
|
-
function
|
|
5676
|
+
function fs(e) {
|
|
5653
5677
|
return e.trim().toLowerCase().normalize("NFD").replace(/[\u0300-\u036f]/g, "");
|
|
5654
5678
|
}
|
|
5655
|
-
function
|
|
5656
|
-
let t =
|
|
5657
|
-
return
|
|
5679
|
+
function ps(e) {
|
|
5680
|
+
let t = fs(e);
|
|
5681
|
+
return us[t] ?? us[ds[t]] ?? null;
|
|
5658
5682
|
}
|
|
5659
|
-
var
|
|
5660
|
-
function
|
|
5683
|
+
var ms = new Ne().utils.escapeHtml;
|
|
5684
|
+
function hs(e, t) {
|
|
5661
5685
|
let n = t?.trim() || e.label;
|
|
5662
|
-
return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${
|
|
5686
|
+
return `<div class="md-alert md-alert--${e.tone}"><p class="md-alert__head"><i class="${e.icon}" aria-hidden="true"></i>${ms(n)}</p><div class="md-alert__body">`;
|
|
5663
5687
|
}
|
|
5664
|
-
var
|
|
5688
|
+
var gs = "</div></div>", _s = {
|
|
5665
5689
|
bash: () => import("highlight.js/lib/languages/bash"),
|
|
5666
5690
|
python: () => import("highlight.js/lib/languages/python"),
|
|
5667
5691
|
javascript: () => import("highlight.js/lib/languages/javascript"),
|
|
@@ -5675,7 +5699,7 @@ var ms = "</div></div>", hs = {
|
|
|
5675
5699
|
ini: () => import("highlight.js/lib/languages/ini"),
|
|
5676
5700
|
markdown: () => import("highlight.js/lib/languages/markdown"),
|
|
5677
5701
|
dockerfile: () => import("highlight.js/lib/languages/dockerfile")
|
|
5678
|
-
},
|
|
5702
|
+
}, vs = {
|
|
5679
5703
|
sh: "bash",
|
|
5680
5704
|
shell: "bash",
|
|
5681
5705
|
zsh: "bash",
|
|
@@ -5703,28 +5727,28 @@ var ms = "</div></div>", hs = {
|
|
|
5703
5727
|
postgres: "sql",
|
|
5704
5728
|
postgresql: "sql",
|
|
5705
5729
|
docker: "dockerfile"
|
|
5706
|
-
},
|
|
5707
|
-
function
|
|
5708
|
-
return
|
|
5730
|
+
}, ys = null, bs = null;
|
|
5731
|
+
function xs() {
|
|
5732
|
+
return ys !== null;
|
|
5709
5733
|
}
|
|
5710
|
-
async function
|
|
5711
|
-
if (
|
|
5712
|
-
|
|
5734
|
+
async function Ss() {
|
|
5735
|
+
if (ys || bs) return bs ?? void 0;
|
|
5736
|
+
bs = (async () => {
|
|
5713
5737
|
let e = (await import("highlight.js/lib/core")).default;
|
|
5714
|
-
await Promise.all(Object.entries(
|
|
5738
|
+
await Promise.all(Object.entries(_s).map(async ([t, n]) => {
|
|
5715
5739
|
let r = await n();
|
|
5716
5740
|
e.registerLanguage(t, r.default);
|
|
5717
|
-
})),
|
|
5718
|
-
})(), await
|
|
5741
|
+
})), ys = (t, n) => e.highlight(t, { language: n }).value;
|
|
5742
|
+
})(), await bs;
|
|
5719
5743
|
}
|
|
5720
|
-
function
|
|
5721
|
-
let t =
|
|
5722
|
-
return
|
|
5744
|
+
function Cs(e) {
|
|
5745
|
+
let t = fs(e);
|
|
5746
|
+
return vs[t] ?? t;
|
|
5723
5747
|
}
|
|
5724
|
-
function
|
|
5725
|
-
return
|
|
5748
|
+
function ws(e) {
|
|
5749
|
+
return fs(e).replace(/[^\w\s-]/g, "").trim().replace(/\s+/g, "-") || "secao";
|
|
5726
5750
|
}
|
|
5727
|
-
var
|
|
5751
|
+
var Ts = /* @__PURE__ */ new Set([
|
|
5728
5752
|
"detalhes",
|
|
5729
5753
|
"details",
|
|
5730
5754
|
"passos",
|
|
@@ -5735,8 +5759,8 @@ var Cs = /* @__PURE__ */ new Set([
|
|
|
5735
5759
|
"tabs",
|
|
5736
5760
|
"aba",
|
|
5737
5761
|
"tab"
|
|
5738
|
-
]),
|
|
5739
|
-
function
|
|
5762
|
+
]), Es = /^\s*([^\s]+)\s*(.*)$/;
|
|
5763
|
+
function Ds() {
|
|
5740
5764
|
let e = new Ne({
|
|
5741
5765
|
html: !1,
|
|
5742
5766
|
linkify: !0,
|
|
@@ -5748,16 +5772,16 @@ function Ts() {
|
|
|
5748
5772
|
3,
|
|
5749
5773
|
4
|
|
5750
5774
|
],
|
|
5751
|
-
slugify:
|
|
5775
|
+
slugify: ws,
|
|
5752
5776
|
permalink: Z.permalink.linkInsideHeader({
|
|
5753
5777
|
symbol: "",
|
|
5754
5778
|
class: "md-anchor",
|
|
5755
5779
|
placement: "after",
|
|
5756
5780
|
ariaHidden: !0
|
|
5757
5781
|
})
|
|
5758
|
-
}),
|
|
5782
|
+
}), Os(e), As(e), js(e), Ms(e), Ns(e), Ps(e), Fs(e), e;
|
|
5759
5783
|
}
|
|
5760
|
-
function
|
|
5784
|
+
function Os(e) {
|
|
5761
5785
|
e.core.ruler.after("block", "lz_alerta", (e) => {
|
|
5762
5786
|
let t = e.tokens;
|
|
5763
5787
|
for (let e = 0; e < t.length; e += 1) {
|
|
@@ -5767,9 +5791,9 @@ function Es(e) {
|
|
|
5767
5791
|
if (r?.type !== "paragraph_open" || i?.type !== "inline") continue;
|
|
5768
5792
|
let a = /^\[!([^\]\n]+)\][ \t]*([^\n]*)\n?/.exec(i.content);
|
|
5769
5793
|
if (!a) continue;
|
|
5770
|
-
let o =
|
|
5794
|
+
let o = ps(a[1]);
|
|
5771
5795
|
if (!o) continue;
|
|
5772
|
-
let s =
|
|
5796
|
+
let s = ks(t, e);
|
|
5773
5797
|
s && (i.content = i.content.slice(a[0].length), n.type = "lz_alerta_open", n.tag = "div", n.meta = {
|
|
5774
5798
|
spec: o,
|
|
5775
5799
|
titulo: a[2]
|
|
@@ -5778,10 +5802,10 @@ function Es(e) {
|
|
|
5778
5802
|
return !0;
|
|
5779
5803
|
}), e.renderer.rules.lz_alerta_open = (e, t) => {
|
|
5780
5804
|
let n = e[t].meta;
|
|
5781
|
-
return
|
|
5782
|
-
}, e.renderer.rules.lz_alerta_close = () =>
|
|
5805
|
+
return hs(n.spec, n.titulo);
|
|
5806
|
+
}, e.renderer.rules.lz_alerta_close = () => gs;
|
|
5783
5807
|
}
|
|
5784
|
-
function
|
|
5808
|
+
function ks(e, t) {
|
|
5785
5809
|
let n = 0;
|
|
5786
5810
|
for (let r = t; r < e.length; r += 1) {
|
|
5787
5811
|
let t = e[r];
|
|
@@ -5790,37 +5814,37 @@ function Ds(e, t) {
|
|
|
5790
5814
|
}
|
|
5791
5815
|
return null;
|
|
5792
5816
|
}
|
|
5793
|
-
function
|
|
5817
|
+
function As(e) {
|
|
5794
5818
|
let t = [];
|
|
5795
5819
|
e.use(Q, "lz", {
|
|
5796
5820
|
validate: (e) => {
|
|
5797
|
-
let t =
|
|
5821
|
+
let t = Es.exec(e);
|
|
5798
5822
|
if (!t) return !1;
|
|
5799
|
-
let n =
|
|
5800
|
-
return
|
|
5823
|
+
let n = fs(t[1]);
|
|
5824
|
+
return Ts.has(n) || ps(n) !== null;
|
|
5801
5825
|
},
|
|
5802
5826
|
render: (e, n) => {
|
|
5803
5827
|
let r = e[n];
|
|
5804
5828
|
if (r.nesting !== 1) {
|
|
5805
5829
|
let e = t.pop();
|
|
5806
|
-
return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${
|
|
5830
|
+
return e === "detalhes" ? "</div></details>\n" : e === "aba" ? "</section>\n" : e === "alerta" ? `${gs}\n` : "</div>\n";
|
|
5807
5831
|
}
|
|
5808
|
-
let i =
|
|
5832
|
+
let i = Es.exec(r.info) ?? [
|
|
5809
5833
|
"",
|
|
5810
5834
|
"",
|
|
5811
5835
|
""
|
|
5812
|
-
], a =
|
|
5813
|
-
if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${
|
|
5836
|
+
], a = fs(i[1]), o = i[2]?.trim();
|
|
5837
|
+
if (a === "detalhes" || a === "details") return t.push("detalhes"), `<details class="md-details"><summary>${ms(o || "Detalhes")}</summary><div class="md-details__body">`;
|
|
5814
5838
|
if (a === "passos" || a === "steps") return t.push("bloco"), "<div class=\"md-steps\">";
|
|
5815
5839
|
if (a === "cards" || a === "grade") return t.push("bloco"), "<div class=\"md-cards\">";
|
|
5816
5840
|
if (a === "abas" || a === "tabs") return t.push("bloco"), "<div class=\"md-tabs\" data-md-tabs>";
|
|
5817
|
-
if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${
|
|
5818
|
-
let s =
|
|
5819
|
-
return s ? (t.push("alerta"),
|
|
5841
|
+
if (a === "aba" || a === "tab") return t.push("aba"), `<section class="md-tabs__panel" data-md-tab="${ms(o || "Aba")}">`;
|
|
5842
|
+
let s = ps(a);
|
|
5843
|
+
return s ? (t.push("alerta"), hs(s, o)) : (t.push("bloco"), "<div>");
|
|
5820
5844
|
}
|
|
5821
5845
|
});
|
|
5822
5846
|
}
|
|
5823
|
-
function
|
|
5847
|
+
function js(e) {
|
|
5824
5848
|
e.core.ruler.after("inline", "lz_tarefas", (e) => {
|
|
5825
5849
|
let t = e.tokens;
|
|
5826
5850
|
for (let n = 2; n < t.length; n += 1) {
|
|
@@ -5837,26 +5861,26 @@ function ks(e) {
|
|
|
5837
5861
|
return !0;
|
|
5838
5862
|
});
|
|
5839
5863
|
}
|
|
5840
|
-
function
|
|
5864
|
+
function Ms(e) {
|
|
5841
5865
|
e.renderer.rules.fence = (e, t) => {
|
|
5842
|
-
let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a =
|
|
5843
|
-
if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${
|
|
5844
|
-
let s =
|
|
5845
|
-
return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${
|
|
5866
|
+
let n = e[t], r = n.info.trim(), i = r.split(/\s+/)[0] ?? "", a = Cs(i), o = /title="([^"]*)"/.exec(r)?.[1];
|
|
5867
|
+
if (a === "mermaid") return `<figure class="md-mermaid" data-md-mermaid><pre class="md-mermaid__fonte">${ms(n.content)}</pre>` + (o ? `<figcaption>${ms(o)}</figcaption>` : "") + "</figure>\n";
|
|
5868
|
+
let s = ys && _s[a] ? ys(n.content, a) : ms(n.content);
|
|
5869
|
+
return `<div class="md-code" data-md-code>${o || i ? `<div class="md-code__bar"><span class="md-code__title">${ms(o ?? "")}</span><span class="md-code__lang">${ms(i)}</span></div>` : ""}<pre class="md-code__pre"><code class="hljs language-${ms(a)}">${s}</code></pre></div>\n`;
|
|
5846
5870
|
};
|
|
5847
5871
|
}
|
|
5848
|
-
function
|
|
5872
|
+
function Ns(e) {
|
|
5849
5873
|
let t = e.renderer.rules.table_open;
|
|
5850
5874
|
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>`;
|
|
5851
5875
|
}
|
|
5852
|
-
function
|
|
5876
|
+
function Ps(e) {
|
|
5853
5877
|
let t = e.renderer.rules.link_open;
|
|
5854
5878
|
e.renderer.rules.link_open = (e, n, r, i, a) => {
|
|
5855
5879
|
let o = String(e[n].attrGet("href") ?? "");
|
|
5856
5880
|
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);
|
|
5857
5881
|
};
|
|
5858
5882
|
}
|
|
5859
|
-
function
|
|
5883
|
+
function Fs(e) {
|
|
5860
5884
|
e.core.ruler.after("inline", "lz_figuras", (e) => {
|
|
5861
5885
|
let t = e.tokens;
|
|
5862
5886
|
for (let e = 1; e < t.length - 1; e += 1) {
|
|
@@ -5872,17 +5896,17 @@ function Ns(e) {
|
|
|
5872
5896
|
let o = t ? t(e, n, r, i, a) : a.renderToken(e, n, r);
|
|
5873
5897
|
if (!e[n].meta?.figura) return o;
|
|
5874
5898
|
let s = e[n].content?.trim();
|
|
5875
|
-
return s ? `${o}<figcaption>${
|
|
5899
|
+
return s ? `${o}<figcaption>${ms(s)}</figcaption>` : o;
|
|
5876
5900
|
};
|
|
5877
5901
|
}
|
|
5878
|
-
var
|
|
5879
|
-
function
|
|
5880
|
-
return
|
|
5902
|
+
var Is = null;
|
|
5903
|
+
function Ls() {
|
|
5904
|
+
return Is ||= Ds(), Is;
|
|
5881
5905
|
}
|
|
5882
|
-
function
|
|
5906
|
+
function Rs(e) {
|
|
5883
5907
|
return (e.children ?? []).filter((e) => e.type === "text" || e.type === "code_inline").map((e) => e.content).join("").trim();
|
|
5884
5908
|
}
|
|
5885
|
-
function
|
|
5909
|
+
function zs(e) {
|
|
5886
5910
|
let t = [];
|
|
5887
5911
|
for (let n = 0; n < e.length; n += 1) {
|
|
5888
5912
|
let r = e[n];
|
|
@@ -5892,13 +5916,13 @@ function Ls(e) {
|
|
|
5892
5916
|
let a = String(r.attrGet("id") ?? ""), o = e[n + 1];
|
|
5893
5917
|
!a || o?.type !== "inline" || t.push({
|
|
5894
5918
|
id: a,
|
|
5895
|
-
text:
|
|
5919
|
+
text: Rs(o),
|
|
5896
5920
|
level: i
|
|
5897
5921
|
});
|
|
5898
5922
|
}
|
|
5899
5923
|
return t;
|
|
5900
5924
|
}
|
|
5901
|
-
function
|
|
5925
|
+
function Bs(e) {
|
|
5902
5926
|
return Pe.sanitize(e, { ADD_ATTR: [
|
|
5903
5927
|
"target",
|
|
5904
5928
|
"open",
|
|
@@ -5906,16 +5930,16 @@ function Rs(e) {
|
|
|
5906
5930
|
"disabled"
|
|
5907
5931
|
] });
|
|
5908
5932
|
}
|
|
5909
|
-
function
|
|
5910
|
-
let t =
|
|
5933
|
+
function Vs(e) {
|
|
5934
|
+
let t = Ls(), n = {}, r = t.parse(e ?? "", n);
|
|
5911
5935
|
return {
|
|
5912
|
-
html:
|
|
5913
|
-
headings:
|
|
5936
|
+
html: Bs(t.renderer.render(r, t.options, n)),
|
|
5937
|
+
headings: zs(r)
|
|
5914
5938
|
};
|
|
5915
5939
|
}
|
|
5916
5940
|
//#endregion
|
|
5917
5941
|
//#region src/utils/markdownEnhance.ts
|
|
5918
|
-
function
|
|
5942
|
+
function Hs(e) {
|
|
5919
5943
|
e.querySelectorAll("[data-md-code]").forEach((e) => {
|
|
5920
5944
|
if (e.dataset.mdPronto) return;
|
|
5921
5945
|
e.dataset.mdPronto = "1";
|
|
@@ -5930,7 +5954,7 @@ function Bs(e) {
|
|
|
5930
5954
|
}), e.appendChild(t);
|
|
5931
5955
|
});
|
|
5932
5956
|
}
|
|
5933
|
-
function
|
|
5957
|
+
function Us(e) {
|
|
5934
5958
|
let t = Array.from(e.querySelectorAll(".md-tabs__panel")).filter((e) => !e.parentElement?.hasAttribute("data-md-tabs")), n = /* @__PURE__ */ new Set();
|
|
5935
5959
|
t.forEach((e) => {
|
|
5936
5960
|
if (n.has(e)) return;
|
|
@@ -5941,8 +5965,8 @@ function Vs(e) {
|
|
|
5941
5965
|
i.className = "md-tabs", i.setAttribute("data-md-tabs", ""), e.before(i), t.forEach((e) => i.appendChild(e));
|
|
5942
5966
|
});
|
|
5943
5967
|
}
|
|
5944
|
-
function
|
|
5945
|
-
|
|
5968
|
+
function Ws(e) {
|
|
5969
|
+
Us(e), e.querySelectorAll("[data-md-tabs]").forEach((e, t) => {
|
|
5946
5970
|
if (e.dataset.mdPronto) return;
|
|
5947
5971
|
let n = Array.from(e.querySelectorAll(":scope > .md-tabs__panel"));
|
|
5948
5972
|
if (!n.length) return;
|
|
@@ -5964,11 +5988,11 @@ function Hs(e) {
|
|
|
5964
5988
|
e.prepend(r), a(0);
|
|
5965
5989
|
});
|
|
5966
5990
|
}
|
|
5967
|
-
var
|
|
5968
|
-
async function
|
|
5969
|
-
return
|
|
5991
|
+
var Gs = null, Ks = 0;
|
|
5992
|
+
async function qs() {
|
|
5993
|
+
return Gs ||= import("mermaid").then((e) => e.default), Gs;
|
|
5970
5994
|
}
|
|
5971
|
-
var
|
|
5995
|
+
var Js = /* @__PURE__ */ new Set([
|
|
5972
5996
|
"script",
|
|
5973
5997
|
"iframe",
|
|
5974
5998
|
"object",
|
|
@@ -5984,59 +6008,59 @@ var Ks = /* @__PURE__ */ new Set([
|
|
|
5984
6008
|
"animate",
|
|
5985
6009
|
"set"
|
|
5986
6010
|
]);
|
|
5987
|
-
function
|
|
6011
|
+
function Ys(e) {
|
|
5988
6012
|
for (let t of Array.from(e.attributes)) {
|
|
5989
6013
|
let n = t.name.toLowerCase(), r = t.value.trim().toLowerCase(), i = n === "href" || n === "xlink:href" || n === "src";
|
|
5990
6014
|
(n.startsWith("on") || i && /^(javascript|data|vbscript):/.test(r)) && e.removeAttribute(t.name);
|
|
5991
6015
|
}
|
|
5992
|
-
for (let t of Array.from(e.children))
|
|
6016
|
+
for (let t of Array.from(e.children)) Js.has(t.localName.toLowerCase()) ? t.remove() : Ys(t);
|
|
5993
6017
|
}
|
|
5994
|
-
function
|
|
6018
|
+
function Xs(e) {
|
|
5995
6019
|
let t = new DOMParser().parseFromString(e, "image/svg+xml");
|
|
5996
6020
|
if (t.querySelector("parsererror")) return null;
|
|
5997
6021
|
let n = t.documentElement;
|
|
5998
|
-
return n.localName.toLowerCase() === "svg" ? (
|
|
6022
|
+
return n.localName.toLowerCase() === "svg" ? (Ys(n), n) : null;
|
|
5999
6023
|
}
|
|
6000
|
-
function
|
|
6024
|
+
function Zs(e, t, n) {
|
|
6001
6025
|
return e.getPropertyValue(t).trim() || n;
|
|
6002
6026
|
}
|
|
6003
|
-
function
|
|
6004
|
-
let t = getComputedStyle(document.documentElement), n =
|
|
6027
|
+
function Qs(e) {
|
|
6028
|
+
let t = getComputedStyle(document.documentElement), n = Zs(t, "--surface", "#ffffff"), r = Zs(t, "--fg", "#141a22"), i = Zs(t, "--primary", "#1f5092"), a = Zs(t, "--primary-soft", "#eef4fb"), o = Zs(t, "--border-strong", "#cdd6e2");
|
|
6005
6029
|
e.initialize({
|
|
6006
6030
|
startOnLoad: !1,
|
|
6007
6031
|
securityLevel: "strict",
|
|
6008
6032
|
theme: "base",
|
|
6009
|
-
fontFamily:
|
|
6033
|
+
fontFamily: Zs(t, "--font-sans", "inherit"),
|
|
6010
6034
|
flowchart: { useMaxWidth: !0 },
|
|
6011
6035
|
themeVariables: {
|
|
6012
6036
|
background: n,
|
|
6013
6037
|
primaryColor: a,
|
|
6014
6038
|
primaryTextColor: r,
|
|
6015
6039
|
primaryBorderColor: i,
|
|
6016
|
-
secondaryColor:
|
|
6017
|
-
tertiaryColor:
|
|
6040
|
+
secondaryColor: Zs(t, "--surface-3", "#eef2f7"),
|
|
6041
|
+
tertiaryColor: Zs(t, "--surface-2", "#f8fafc"),
|
|
6018
6042
|
lineColor: o,
|
|
6019
6043
|
textColor: r,
|
|
6020
6044
|
mainBkg: a,
|
|
6021
6045
|
nodeBorder: i,
|
|
6022
|
-
clusterBkg:
|
|
6046
|
+
clusterBkg: Zs(t, "--surface-2", "#f8fafc"),
|
|
6023
6047
|
clusterBorder: o,
|
|
6024
6048
|
fontSize: "13px"
|
|
6025
6049
|
}
|
|
6026
6050
|
});
|
|
6027
6051
|
}
|
|
6028
|
-
async function
|
|
6052
|
+
async function $s(e, t = !1) {
|
|
6029
6053
|
let n = Array.from(e.querySelectorAll("[data-md-mermaid]")).filter((e) => t || !e.dataset.mdEstado);
|
|
6030
6054
|
if (!n.length) return;
|
|
6031
|
-
let r = await
|
|
6032
|
-
|
|
6055
|
+
let r = await qs();
|
|
6056
|
+
Qs(r);
|
|
6033
6057
|
for (let e of n) {
|
|
6034
6058
|
let t = e.querySelector(".md-mermaid__fonte")?.textContent ?? "";
|
|
6035
6059
|
if (t.trim()) {
|
|
6036
6060
|
e.querySelector(".md-mermaid__svg")?.remove();
|
|
6037
6061
|
try {
|
|
6038
|
-
|
|
6039
|
-
let { svg: n } = await r.render(`md-diagrama-${
|
|
6062
|
+
Ks += 1;
|
|
6063
|
+
let { svg: n } = await r.render(`md-diagrama-${Ks}`, t), i = Xs(n);
|
|
6040
6064
|
if (!i) {
|
|
6041
6065
|
e.dataset.mdEstado = "erro";
|
|
6042
6066
|
continue;
|
|
@@ -6049,15 +6073,15 @@ async function Zs(e, t = !1) {
|
|
|
6049
6073
|
}
|
|
6050
6074
|
}
|
|
6051
6075
|
}
|
|
6052
|
-
async function
|
|
6053
|
-
e && (
|
|
6076
|
+
async function ec(e) {
|
|
6077
|
+
e && (Hs(e), Ws(e), await $s(e));
|
|
6054
6078
|
}
|
|
6055
6079
|
//#endregion
|
|
6056
6080
|
//#region src/components/ui/WMarkdownView.vue?vue&type=script&setup=true&lang.ts
|
|
6057
|
-
var
|
|
6081
|
+
var tc = {
|
|
6058
6082
|
key: 0,
|
|
6059
6083
|
class: "w-markdown-view w-markdown-view--empty"
|
|
6060
|
-
},
|
|
6084
|
+
}, nc = ["innerHTML"], rc = /* @__PURE__ */ x({
|
|
6061
6085
|
__name: "WMarkdownView",
|
|
6062
6086
|
props: {
|
|
6063
6087
|
source: {},
|
|
@@ -6065,42 +6089,42 @@ var $s = {
|
|
|
6065
6089
|
},
|
|
6066
6090
|
emits: ["headings"],
|
|
6067
6091
|
setup(e, { emit: t }) {
|
|
6068
|
-
let n = e, r = t, i = P(null), a = P(
|
|
6069
|
-
B(o, (e) => r("headings", e.headings), { immediate: !0 }), B(s, () => void O(() =>
|
|
6092
|
+
let n = e, r = t, i = P(null), a = P(xs()), o = f(() => (a.value, Vs(n.source ?? ""))), s = f(() => o.value.html), c = f(() => !n.source || !n.source.trim());
|
|
6093
|
+
B(o, (e) => r("headings", e.headings), { immediate: !0 }), B(s, () => void O(() => ec(i.value)));
|
|
6070
6094
|
let l = null;
|
|
6071
6095
|
function u() {
|
|
6072
|
-
typeof MutationObserver > "u" || (l = new MutationObserver(() => void
|
|
6096
|
+
typeof MutationObserver > "u" || (l = new MutationObserver(() => void $s(i.value, !0)), l.observe(document.documentElement, {
|
|
6073
6097
|
attributes: !0,
|
|
6074
6098
|
attributeFilter: ["class"]
|
|
6075
6099
|
}));
|
|
6076
6100
|
}
|
|
6077
6101
|
return te(async () => {
|
|
6078
|
-
await O(), await
|
|
6079
|
-
}), ee(() => l?.disconnect()), (t, n) => c.value ? (M(), h("div",
|
|
6102
|
+
await O(), await ec(i.value), u(), a.value ||= (await Ss(), !0);
|
|
6103
|
+
}), ee(() => l?.disconnect()), (t, n) => c.value ? (M(), h("div", tc, L(e.emptyText), 1)) : (M(), h("div", {
|
|
6080
6104
|
key: 1,
|
|
6081
6105
|
ref_key: "raiz",
|
|
6082
6106
|
ref: i,
|
|
6083
6107
|
class: "w-markdown-view",
|
|
6084
6108
|
innerHTML: s.value
|
|
6085
|
-
}, null, 8,
|
|
6109
|
+
}, null, 8, nc));
|
|
6086
6110
|
}
|
|
6087
|
-
}),
|
|
6111
|
+
}), ic = {
|
|
6088
6112
|
class: "w-markdown-editor__toolbar",
|
|
6089
6113
|
role: "toolbar",
|
|
6090
6114
|
"aria-label": "Formatação markdown"
|
|
6091
|
-
},
|
|
6115
|
+
}, ac = [
|
|
6092
6116
|
"aria-label",
|
|
6093
6117
|
"title",
|
|
6094
6118
|
"disabled",
|
|
6095
6119
|
"onClick"
|
|
6096
|
-
],
|
|
6120
|
+
], oc = ["aria-pressed"], sc = ["aria-pressed"], cc = {
|
|
6097
6121
|
key: 0,
|
|
6098
6122
|
class: "w-markdown-editor__ajuda"
|
|
6099
|
-
},
|
|
6123
|
+
}, lc = [
|
|
6100
6124
|
"value",
|
|
6101
6125
|
"disabled",
|
|
6102
6126
|
"placeholder"
|
|
6103
|
-
],
|
|
6127
|
+
], uc = /* @__PURE__ */ x({
|
|
6104
6128
|
__name: "WMarkdownEditor",
|
|
6105
6129
|
props: {
|
|
6106
6130
|
modelValue: {},
|
|
@@ -6282,7 +6306,7 @@ var $s = {
|
|
|
6282
6306
|
}
|
|
6283
6307
|
];
|
|
6284
6308
|
return (t, n) => (M(), h("div", { class: k(["w-markdown-editor", { "w-markdown-editor--split": o.value }]) }, [
|
|
6285
|
-
g("div",
|
|
6309
|
+
g("div", ic, [
|
|
6286
6310
|
(M(), h(d, null, F(ie, (t) => g("button", {
|
|
6287
6311
|
key: t.label,
|
|
6288
6312
|
type: "button",
|
|
@@ -6302,7 +6326,7 @@ var $s = {
|
|
|
6302
6326
|
"w-markdown-editor__glyph--italic": t.glyph === "I"
|
|
6303
6327
|
}]),
|
|
6304
6328
|
"aria-hidden": "true"
|
|
6305
|
-
}, L(t.glyph), 3))], 8,
|
|
6329
|
+
}, L(t.glyph), 3))], 8, ac)), 64)),
|
|
6306
6330
|
g("button", {
|
|
6307
6331
|
type: "button",
|
|
6308
6332
|
class: k(["w-markdown-editor__tool w-markdown-editor__tool--ajuda", { "w-markdown-editor__tool--active": N.value }]),
|
|
@@ -6313,7 +6337,7 @@ var $s = {
|
|
|
6313
6337
|
}, [...n[1] ||= [g("i", {
|
|
6314
6338
|
class: "pi pi-question-circle",
|
|
6315
6339
|
"aria-hidden": "true"
|
|
6316
|
-
}, null, -1)]], 10,
|
|
6340
|
+
}, null, -1)]], 10, oc),
|
|
6317
6341
|
o.value ? m("", !0) : (M(), h("button", {
|
|
6318
6342
|
key: 0,
|
|
6319
6343
|
type: "button",
|
|
@@ -6325,9 +6349,9 @@ var $s = {
|
|
|
6325
6349
|
}, [g("i", {
|
|
6326
6350
|
class: k(a.value ? "pi pi-pencil" : "pi pi-eye"),
|
|
6327
6351
|
"aria-hidden": "true"
|
|
6328
|
-
}, null, 2)], 10,
|
|
6352
|
+
}, null, 2)], 10, sc))
|
|
6329
6353
|
]),
|
|
6330
|
-
N.value ? (M(), h("dl",
|
|
6354
|
+
N.value ? (M(), h("dl", cc, [(M(), h(d, null, F(re, (e) => (M(), h(d, { key: e.sintaxe }, [g("dt", null, L(e.sintaxe), 1), g("dd", null, L(e.efeito), 1)], 64))), 64))])) : m("", !0),
|
|
6331
6355
|
g("div", {
|
|
6332
6356
|
class: "w-markdown-editor__body",
|
|
6333
6357
|
style: j({
|
|
@@ -6344,7 +6368,7 @@ var $s = {
|
|
|
6344
6368
|
placeholder: e.placeholder,
|
|
6345
6369
|
spellcheck: "false",
|
|
6346
6370
|
onInput: l
|
|
6347
|
-
}, null, 40,
|
|
6371
|
+
}, null, 40, lc)) : m("", !0), c.value ? (M(), p(rc, {
|
|
6348
6372
|
key: 1,
|
|
6349
6373
|
class: "w-markdown-editor__preview",
|
|
6350
6374
|
source: e.modelValue,
|
|
@@ -6352,28 +6376,28 @@ var $s = {
|
|
|
6352
6376
|
}, null, 8, ["source"])) : m("", !0)], 4)
|
|
6353
6377
|
], 2));
|
|
6354
6378
|
}
|
|
6355
|
-
}),
|
|
6379
|
+
}), dc = {
|
|
6356
6380
|
key: 0,
|
|
6357
6381
|
class: "w-md-toc",
|
|
6358
6382
|
"aria-label": "Índice do documento"
|
|
6359
|
-
},
|
|
6383
|
+
}, fc = { class: "w-md-toc__titulo" }, pc = {
|
|
6360
6384
|
key: 0,
|
|
6361
6385
|
class: "w-md-toc__busca"
|
|
6362
|
-
},
|
|
6386
|
+
}, mc = { class: "w-md-toc__lista" }, hc = [
|
|
6363
6387
|
"aria-expanded",
|
|
6364
6388
|
"aria-label",
|
|
6365
6389
|
"onClick"
|
|
6366
|
-
],
|
|
6390
|
+
], gc = {
|
|
6367
6391
|
key: 1,
|
|
6368
6392
|
class: "w-md-toc__chevron w-md-toc__chevron--vazio",
|
|
6369
6393
|
"aria-hidden": "true"
|
|
6370
|
-
},
|
|
6394
|
+
}, _c = ["href", "onClick"], vc = {
|
|
6371
6395
|
key: 0,
|
|
6372
6396
|
class: "w-md-toc__lista"
|
|
6373
|
-
},
|
|
6397
|
+
}, yc = ["href", "onClick"], bc = {
|
|
6374
6398
|
key: 0,
|
|
6375
6399
|
class: "w-md-toc__vazio"
|
|
6376
|
-
},
|
|
6400
|
+
}, xc = /* @__PURE__ */ x({
|
|
6377
6401
|
__name: "WMarkdownToc",
|
|
6378
6402
|
props: {
|
|
6379
6403
|
headings: {},
|
|
@@ -6429,9 +6453,9 @@ var $s = {
|
|
|
6429
6453
|
block: "start"
|
|
6430
6454
|
}));
|
|
6431
6455
|
}
|
|
6432
|
-
return B(() => t.headings, () => void O(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (M(), h("nav",
|
|
6433
|
-
g("p",
|
|
6434
|
-
e.searchable ? (M(), h("div",
|
|
6456
|
+
return B(() => t.headings, () => void O(_), { immediate: !0 }), ee(() => a?.disconnect()), (t, i) => e.headings.length >= e.minHeadings ? (M(), h("nav", dc, [
|
|
6457
|
+
g("p", fc, L(e.title), 1),
|
|
6458
|
+
e.searchable ? (M(), h("div", pc, [i[1] ||= g("i", {
|
|
6435
6459
|
class: "pi pi-search",
|
|
6436
6460
|
"aria-hidden": "true"
|
|
6437
6461
|
}, null, -1), H(g("input", {
|
|
@@ -6443,7 +6467,7 @@ var $s = {
|
|
|
6443
6467
|
g("div", {
|
|
6444
6468
|
class: "w-md-toc__corpo",
|
|
6445
6469
|
style: j({ maxHeight: e.maxHeight })
|
|
6446
|
-
}, [g("ul",
|
|
6470
|
+
}, [g("ul", mc, [(M(!0), h(d, null, F(c.value, (e) => (M(), h("li", {
|
|
6447
6471
|
key: e.titulo.id,
|
|
6448
6472
|
class: "w-md-toc__grupo"
|
|
6449
6473
|
}, [g("div", { class: k(["w-md-toc__item w-md-toc__item--n2", { "w-md-toc__item--ativo": n.value === e.titulo.id }]) }, [e.filhos.length ? (M(), h("button", {
|
|
@@ -6456,19 +6480,19 @@ var $s = {
|
|
|
6456
6480
|
}, [g("i", {
|
|
6457
6481
|
class: k(u(e) ? "pi pi-chevron-down" : "pi pi-chevron-right"),
|
|
6458
6482
|
"aria-hidden": "true"
|
|
6459
|
-
}, null, 2)], 8,
|
|
6483
|
+
}, null, 2)], 8, hc)) : (M(), h("span", gc)), g("a", {
|
|
6460
6484
|
href: `#${e.titulo.id}`,
|
|
6461
6485
|
onClick: W((t) => v(e.titulo.id), ["prevent"])
|
|
6462
|
-
}, L(e.titulo.text), 9,
|
|
6486
|
+
}, L(e.titulo.text), 9, _c)], 2), u(e) ? (M(), h("ul", vc, [(M(!0), h(d, null, F(e.filhos, (e) => (M(), h("li", {
|
|
6463
6487
|
key: e.id,
|
|
6464
6488
|
class: k(["w-md-toc__item w-md-toc__item--n3", { "w-md-toc__item--ativo": n.value === e.id }])
|
|
6465
6489
|
}, [g("a", {
|
|
6466
6490
|
href: `#${e.id}`,
|
|
6467
6491
|
onClick: W((t) => v(e.id), ["prevent"])
|
|
6468
|
-
}, L(e.text), 9,
|
|
6492
|
+
}, L(e.text), 9, yc)], 2))), 128))])) : m("", !0)]))), 128))]), l.value && !c.value.length ? (M(), h("p", bc, "Nenhuma seção encontrada")) : m("", !0)], 4)
|
|
6469
6493
|
])) : m("", !0);
|
|
6470
6494
|
}
|
|
6471
|
-
}),
|
|
6495
|
+
}), Sc = /* @__PURE__ */ x({
|
|
6472
6496
|
name: "WDialog",
|
|
6473
6497
|
inheritAttrs: !1,
|
|
6474
6498
|
__name: "WDialog",
|
|
@@ -6479,16 +6503,16 @@ var $s = {
|
|
|
6479
6503
|
fn: V((t) => [I(e.$slots, n, A(S(t ?? {})))])
|
|
6480
6504
|
}))]), 1040, ["append-to"]));
|
|
6481
6505
|
}
|
|
6482
|
-
}),
|
|
6506
|
+
}), Cc = ["aria-label"], wc = [
|
|
6483
6507
|
"aria-selected",
|
|
6484
6508
|
"tabindex",
|
|
6485
6509
|
"disabled",
|
|
6486
6510
|
"onClick",
|
|
6487
6511
|
"onKeydown"
|
|
6488
|
-
],
|
|
6512
|
+
], Tc = {
|
|
6489
6513
|
key: 1,
|
|
6490
6514
|
class: "w-tab-bar__badge"
|
|
6491
|
-
},
|
|
6515
|
+
}, Ec = /* @__PURE__ */ x({
|
|
6492
6516
|
__name: "WTabBar",
|
|
6493
6517
|
props: {
|
|
6494
6518
|
modelValue: {},
|
|
@@ -6537,20 +6561,20 @@ var $s = {
|
|
|
6537
6561
|
"aria-hidden": "true"
|
|
6538
6562
|
}, null, 2)) : m("", !0),
|
|
6539
6563
|
g("span", null, L(t.label), 1),
|
|
6540
|
-
t.badge !== void 0 && t.badge !== null ? (M(), h("span",
|
|
6541
|
-
], 42,
|
|
6564
|
+
t.badge !== void 0 && t.badge !== null ? (M(), h("span", Tc, L(t.badge), 1)) : m("", !0)
|
|
6565
|
+
], 42, wc))), 128))], 8, Cc));
|
|
6542
6566
|
}
|
|
6543
|
-
}),
|
|
6567
|
+
}), Dc = { class: "w-tab-nav" }, Oc = ["aria-label"], kc = [
|
|
6544
6568
|
"tabindex",
|
|
6545
6569
|
"aria-selected",
|
|
6546
6570
|
"onClick",
|
|
6547
6571
|
"onAuxclick",
|
|
6548
6572
|
"onContextmenu",
|
|
6549
6573
|
"onKeydown"
|
|
6550
|
-
],
|
|
6574
|
+
], Ac = ["title"], jc = ["aria-label", "onClick"], Mc = ["aria-label", "onClick"], Nc = {
|
|
6551
6575
|
key: 0,
|
|
6552
6576
|
class: "w-tab-nav__actions"
|
|
6553
|
-
},
|
|
6577
|
+
}, Pc = /* @__PURE__ */ x({
|
|
6554
6578
|
__name: "WTabNav",
|
|
6555
6579
|
props: {
|
|
6556
6580
|
tabs: {},
|
|
@@ -6647,7 +6671,7 @@ var $s = {
|
|
|
6647
6671
|
let t = i.value[e]?.group;
|
|
6648
6672
|
return !!t && t !== i.value[e - 1]?.group;
|
|
6649
6673
|
}
|
|
6650
|
-
return (t, n) => (M(), h("div",
|
|
6674
|
+
return (t, n) => (M(), h("div", Dc, [
|
|
6651
6675
|
g("div", {
|
|
6652
6676
|
ref_key: "trilho",
|
|
6653
6677
|
ref: s,
|
|
@@ -6689,7 +6713,7 @@ var $s = {
|
|
|
6689
6713
|
}, null, 2)) : m("", !0), g("span", {
|
|
6690
6714
|
class: "w-tab-nav__title",
|
|
6691
6715
|
title: e.title
|
|
6692
|
-
}, L(e.title), 9,
|
|
6716
|
+
}, L(e.title), 9, Ac)]),
|
|
6693
6717
|
g("button", {
|
|
6694
6718
|
type: "button",
|
|
6695
6719
|
class: "w-tab-nav__menu",
|
|
@@ -6699,7 +6723,7 @@ var $s = {
|
|
|
6699
6723
|
}, [...n[0] ||= [g("i", {
|
|
6700
6724
|
class: "pi pi-ellipsis-v",
|
|
6701
6725
|
"aria-hidden": "true"
|
|
6702
|
-
}, null, -1)]], 8,
|
|
6726
|
+
}, null, -1)]], 8, jc),
|
|
6703
6727
|
e.closable ? (M(), h("button", {
|
|
6704
6728
|
key: 0,
|
|
6705
6729
|
type: "button",
|
|
@@ -6710,9 +6734,9 @@ var $s = {
|
|
|
6710
6734
|
}, [...n[1] ||= [g("i", {
|
|
6711
6735
|
class: "pi pi-times",
|
|
6712
6736
|
"aria-hidden": "true"
|
|
6713
|
-
}, null, -1)]], 8,
|
|
6714
|
-
], 46,
|
|
6715
|
-
t.$slots.actions ? (M(), h("div",
|
|
6737
|
+
}, null, -1)]], 8, Mc)) : m("", !0)
|
|
6738
|
+
], 46, kc)], 64))), 128))], 8, Oc),
|
|
6739
|
+
t.$slots.actions ? (M(), h("div", Nc, [I(t.$slots, "actions")])) : m("", !0),
|
|
6716
6740
|
b(R(ve), {
|
|
6717
6741
|
ref_key: "menu",
|
|
6718
6742
|
ref: _,
|
|
@@ -6720,7 +6744,7 @@ var $s = {
|
|
|
6720
6744
|
}, null, 8, ["model"])
|
|
6721
6745
|
]));
|
|
6722
6746
|
}
|
|
6723
|
-
}),
|
|
6747
|
+
}), Fc = x({
|
|
6724
6748
|
name: "WTabPane",
|
|
6725
6749
|
props: {
|
|
6726
6750
|
tab: {
|
|
@@ -6766,7 +6790,7 @@ var $s = {
|
|
|
6766
6790
|
key: e.tab.remount
|
|
6767
6791
|
}) : null;
|
|
6768
6792
|
}
|
|
6769
|
-
}),
|
|
6793
|
+
}), Ic = { class: "w-tab-viewport" }, Lc = { class: "w-tab-viewport__scroll" }, Rc = /* @__PURE__ */ x({
|
|
6770
6794
|
__name: "WTabViewport",
|
|
6771
6795
|
props: { tabs: {} },
|
|
6772
6796
|
setup(e) {
|
|
@@ -6786,12 +6810,12 @@ var $s = {
|
|
|
6786
6810
|
return B(r, (e) => {
|
|
6787
6811
|
let t = new Set(e.map((e) => e.key));
|
|
6788
6812
|
for (let e of i.keys()) t.has(e) || i.delete(e);
|
|
6789
|
-
}), (t, i) => (M(), h("div",
|
|
6813
|
+
}), (t, i) => (M(), h("div", Ic, [(M(!0), h(d, null, F(r.value, (t) => H((M(), h("div", {
|
|
6790
6814
|
key: `${t.key}#${t.remount}`,
|
|
6791
6815
|
ref_for: !0,
|
|
6792
6816
|
ref: (e) => o(t.key, e),
|
|
6793
6817
|
class: "w-tab-viewport__pane"
|
|
6794
|
-
}, [g("div",
|
|
6818
|
+
}, [g("div", Lc, [b(R(Fc), {
|
|
6795
6819
|
tab: t,
|
|
6796
6820
|
api: e.tabs,
|
|
6797
6821
|
active: t.key === n.value,
|
|
@@ -6803,26 +6827,26 @@ var $s = {
|
|
|
6803
6827
|
"host-el"
|
|
6804
6828
|
])])])), [[z, t.key === n.value]])), 128))]));
|
|
6805
6829
|
}
|
|
6806
|
-
}),
|
|
6830
|
+
}), zc = ["aria-busy"], Bc = { class: "w-kanban-board__header" }, Vc = { class: "w-kanban-board__title" }, Hc = { class: "w-kanban-board__count" }, Uc = [
|
|
6807
6831
|
"aria-label",
|
|
6808
6832
|
"onDragover",
|
|
6809
6833
|
"onDragleave",
|
|
6810
6834
|
"onDrop"
|
|
6811
|
-
],
|
|
6835
|
+
], Wc = {
|
|
6812
6836
|
key: 0,
|
|
6813
6837
|
class: "w-kanban-board__indicator"
|
|
6814
|
-
},
|
|
6838
|
+
}, Gc = [
|
|
6815
6839
|
"draggable",
|
|
6816
6840
|
"onDragstart",
|
|
6817
6841
|
"onClick",
|
|
6818
6842
|
"onKeydown"
|
|
6819
|
-
],
|
|
6843
|
+
], Kc = { class: "w-kanban-board__card-fallback" }, qc = {
|
|
6820
6844
|
key: 0,
|
|
6821
6845
|
class: "w-kanban-board__indicator"
|
|
6822
|
-
},
|
|
6846
|
+
}, Jc = {
|
|
6823
6847
|
key: 1,
|
|
6824
6848
|
class: "w-kanban-board__empty"
|
|
6825
|
-
},
|
|
6849
|
+
}, Yc = /* @__PURE__ */ x({
|
|
6826
6850
|
__name: "WKanbanBoard",
|
|
6827
6851
|
props: {
|
|
6828
6852
|
columns: {},
|
|
@@ -6925,7 +6949,7 @@ var $s = {
|
|
|
6925
6949
|
key: r.value,
|
|
6926
6950
|
class: k(["w-kanban-board__column", { "w-kanban-board__column--over": !!i.value && a.value?.column === r.value }]),
|
|
6927
6951
|
style: j(r.accent ? { "--w-kanban-accent": r.accent } : void 0)
|
|
6928
|
-
}, [g("header",
|
|
6952
|
+
}, [g("header", Bc, [I(t.$slots, "column-header", { column: r }, () => [g("span", Vc, L(r.label), 1), g("span", Hc, L(r.items.length), 1)]), I(t.$slots, "column-action", { column: r })]), g("div", {
|
|
6929
6953
|
ref_for: !0,
|
|
6930
6954
|
ref: (e) => s(r.value, e),
|
|
6931
6955
|
class: "w-kanban-board__list",
|
|
@@ -6939,7 +6963,7 @@ var $s = {
|
|
|
6939
6963
|
onDragleave: (e) => b(r, e),
|
|
6940
6964
|
onDrop: (e) => x(r, e)
|
|
6941
6965
|
}, [
|
|
6942
|
-
(M(!0), h(d, null, F(r.items, (e, n) => (M(), h(d, { key: String(c(e)) }, [T(r, n) ? (M(), h("div",
|
|
6966
|
+
(M(!0), h(d, null, F(r.items, (e, n) => (M(), h(d, { key: String(c(e)) }, [T(r, n) ? (M(), h("div", Wc)) : m("", !0), g("div", {
|
|
6943
6967
|
class: k(["w-kanban-board__card", {
|
|
6944
6968
|
"w-kanban-board__card--dragging": f(e),
|
|
6945
6969
|
"w-kanban-board__card--static": !u(e)
|
|
@@ -6954,13 +6978,13 @@ var $s = {
|
|
|
6954
6978
|
}, [I(t.$slots, "card", {
|
|
6955
6979
|
item: e,
|
|
6956
6980
|
column: r
|
|
6957
|
-
}, () => [g("span",
|
|
6958
|
-
T(r, r.items.length) ? (M(), h("div",
|
|
6959
|
-
r.items.length ? m("", !0) : (M(), h("div",
|
|
6960
|
-
], 44,
|
|
6981
|
+
}, () => [g("span", Kc, L(l(e)), 1)])], 42, Gc)], 64))), 128)),
|
|
6982
|
+
T(r, r.items.length) ? (M(), h("div", qc)) : m("", !0),
|
|
6983
|
+
r.items.length ? m("", !0) : (M(), h("div", Jc, [I(t.$slots, "empty-column", { column: r }, () => [n[0] ||= y("Nenhum item", -1)])]))
|
|
6984
|
+
], 44, Uc)], 6))), 128))], 10, zc));
|
|
6961
6985
|
}
|
|
6962
6986
|
});
|
|
6963
6987
|
//#endregion
|
|
6964
|
-
export {
|
|
6988
|
+
export { yi as A, Gt as B, Xi as C, Ri as D, Li as E, Vn as F, mt as G, Nt as H, Bn as I, Je as J, vt as K, Ln as L, fi as M, ei as N, Bi as O, wr as P, Nn as R, ta as S, Ui as T, kt as U, Pt as V, _t as W, La as _, Sc as a, _a as b, rc as c, To as d, to as f, Wa as g, Ja as h, Ec as i, pi as j, Ni as k, ls as l, $a as m, Rc as n, xc as o, eo as p, ht as q, Pc as r, uc as s, Yc as t, No as u, ka as v, Wi as w, ca as x, Oa as y, on as z };
|
|
6965
6989
|
|
|
6966
|
-
//# sourceMappingURL=components-
|
|
6990
|
+
//# sourceMappingURL=components-DokVE_Ug.js.map
|