@wgalleti/primevue-components 1.17.0 → 1.17.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components-BOnwAcU6.cjs +25 -0
- package/dist/components-BOnwAcU6.cjs.map +1 -0
- package/dist/{components-B2_5tJ39.js → components-lO0I43CU.js} +399 -500
- package/dist/components-lO0I43CU.js.map +1 -0
- package/dist/components.cjs +1 -1
- package/dist/components.js +1 -2
- package/dist/{composables-BnvruxBD.cjs → composables-B5lQK7vG.cjs} +2 -2
- package/dist/composables-B5lQK7vG.cjs.map +1 -0
- package/dist/{composables-DSKGBKCD.js → composables-BYOQ7IBQ.js} +77 -90
- package/dist/composables-BYOQ7IBQ.js.map +1 -0
- package/dist/composables.cjs +1 -1
- package/dist/composables.js +2 -2
- package/dist/connect.cjs +1 -1
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.js +3 -5
- package/dist/connect.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +25 -29
- package/dist/index.js.map +1 -1
- package/dist/{labels-CXBhCk2N.js → labels-Dgz3NmZ4.js} +2 -3
- package/dist/labels-Dgz3NmZ4.js.map +1 -0
- package/dist/labels-DiFDhFhQ.cjs.map +1 -1
- package/dist/routeTabs-BnVpnSeJ.cjs.map +1 -1
- package/dist/{routeTabs-D6m8PuP6.js → routeTabs-C86S8jNU.js} +2 -3
- package/dist/routeTabs-C86S8jNU.js.map +1 -0
- package/dist/types.cjs +1 -1
- package/dist/types.js +3 -3
- package/dist/useFormKeyboardNav-P-sZq9cy.cjs +3 -0
- package/dist/useFormKeyboardNav-P-sZq9cy.cjs.map +1 -0
- package/dist/{useFormKeyboardNav-DuQrZphr.js → useFormKeyboardNav-wVvZqL_0.js} +16 -33
- package/dist/useFormKeyboardNav-wVvZqL_0.js.map +1 -0
- package/dist/vite.cjs.map +1 -1
- package/dist/vite.js +1 -2
- package/dist/vite.js.map +1 -1
- package/package.json +6 -5
- package/dist/components-B2_5tJ39.js.map +0 -1
- package/dist/components-CT7QtoAm.cjs +0 -25
- package/dist/components-CT7QtoAm.cjs.map +0 -1
- package/dist/composables-BnvruxBD.cjs.map +0 -1
- package/dist/composables-DSKGBKCD.js.map +0 -1
- package/dist/labels-CXBhCk2N.js.map +0 -1
- package/dist/routeTabs-D6m8PuP6.js.map +0 -1
- package/dist/useFormKeyboardNav-5Y2oB60G.cjs +0 -3
- package/dist/useFormKeyboardNav-5Y2oB60G.cjs.map +0 -1
- package/dist/useFormKeyboardNav-DuQrZphr.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { a as e, n as t, t as n } from "./routeTabs-C86S8jNU.js";
|
|
2
|
+
import { _ as r, n as i, o as a, p as o, r as s, s as c, t as l, u } from "./useFormKeyboardNav-wVvZqL_0.js";
|
|
3
3
|
import { Fragment as d, Transition as f, computed as p, createBlock as m, createCommentVNode as h, createElementBlock as g, createElementVNode as _, createSlots as v, createStaticVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, getCurrentInstance as C, guardReactiveProps as w, h as T, inject as E, isRef as D, mergeModels as O, mergeProps as k, nextTick as A, normalizeClass as j, normalizeProps as M, normalizeStyle as N, onBeforeUnmount as P, onBeforeUpdate as F, onMounted as I, onScopeDispose as L, onUpdated as ee, openBlock as R, provide as te, reactive as ne, readonly as z, ref as B, renderList as V, renderSlot as H, resolveDirective as re, resolveDynamicComponent as U, shallowRef as ie, toDisplayString as W, toHandlers as ae, toRef as oe, unref as G, useId as se, useModel as K, useSlots as ce, vModelText as le, vShow as ue, watch as q, withCtx as J, withDirectives as Y, withKeys as de, withModifiers as X } from "vue";
|
|
4
4
|
import fe from "primevue/datatable";
|
|
5
5
|
import pe from "primevue/column";
|
|
@@ -40,13 +40,13 @@ import qe from "markdown-it-ins";
|
|
|
40
40
|
import Je from "markdown-it-mark";
|
|
41
41
|
import Ye from "markdown-it-sub";
|
|
42
42
|
import Xe from "markdown-it-sup";
|
|
43
|
-
|
|
43
|
+
// src/composables/useCardFit.ts
|
|
44
44
|
var Ze = 24;
|
|
45
|
-
function Qe(
|
|
45
|
+
function Qe(e, t, { regua: n = r.retrato } = {}) {
|
|
46
46
|
let i = B(!1), a = 0, o = 0, s = null, c = 0, l = !1;
|
|
47
47
|
function u() {
|
|
48
48
|
if (a <= 0) return null;
|
|
49
|
-
let e = Math.max(
|
|
49
|
+
let e = Math.max(n, o), t = i.value && l ? Ze : 0;
|
|
50
50
|
return a < e + t;
|
|
51
51
|
}
|
|
52
52
|
function d(e) {
|
|
@@ -55,19 +55,18 @@ function Qe(t, n, { regua: r = e.retrato } = {}) {
|
|
|
55
55
|
}));
|
|
56
56
|
}
|
|
57
57
|
return I(() => {
|
|
58
|
-
if (!
|
|
59
|
-
a =
|
|
60
|
-
let
|
|
61
|
-
|
|
62
|
-
for (let
|
|
58
|
+
if (!e.value) return;
|
|
59
|
+
a = e.value.getBoundingClientRect().width, o = t.value?.getBoundingClientRect().width ?? 0;
|
|
60
|
+
let n = u();
|
|
61
|
+
n != null && (i.value = n), typeof ResizeObserver < "u" && (s = new ResizeObserver((e) => {
|
|
62
|
+
for (let n of e) t.value && n.target === t.value ? o = n.contentRect.width : a = n.contentRect.width;
|
|
63
63
|
d(u());
|
|
64
|
-
}), s.observe(
|
|
64
|
+
}), s.observe(e.value), t.value && s.observe(t.value));
|
|
65
65
|
}), P(() => {
|
|
66
66
|
s?.disconnect(), cancelAnimationFrame(c);
|
|
67
67
|
}), { estreito: z(i) };
|
|
68
68
|
}
|
|
69
|
-
|
|
70
|
-
//#region src/components/crud/WCrudColumnRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
69
|
+
// src/components/crud/WCrudColumnRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
71
70
|
var $e = {
|
|
72
71
|
key: 0,
|
|
73
72
|
class: "w-cell-empty"
|
|
@@ -97,8 +96,8 @@ var $e = {
|
|
|
97
96
|
rowData: {}
|
|
98
97
|
},
|
|
99
98
|
setup(e) {
|
|
100
|
-
let { formatDate: t, formatDateTime: n, formatCurrency:
|
|
101
|
-
function
|
|
99
|
+
let { formatDate: t, formatDateTime: n, formatCurrency: r, formatNumber: i } = o();
|
|
100
|
+
function a(e, t, n) {
|
|
102
101
|
return e.tagValue ? e.tagValue(t, n) : t ? e.trueLabel ?? "Ativo" : e.falseLabel ?? "Inativo";
|
|
103
102
|
}
|
|
104
103
|
function s(e) {
|
|
@@ -113,14 +112,14 @@ var $e = {
|
|
|
113
112
|
function u(e, t, n) {
|
|
114
113
|
return e.tagSeverity ? e.tagSeverity(t, n) : t ? e.trueSeverity === void 0 ? "success" : e.trueSeverity : e.falseSeverity === void 0 ? "danger" : e.falseSeverity;
|
|
115
114
|
}
|
|
116
|
-
return (
|
|
115
|
+
return (o, f) => e.value == null ? (R(), g("span", $e, "—")) : e.column.type === "image" ? (R(), g("img", {
|
|
117
116
|
key: 1,
|
|
118
117
|
src: String(e.value),
|
|
119
118
|
alt: e.column.header,
|
|
120
119
|
class: "w-cell-image"
|
|
121
|
-
}, null, 8, et)) : e.column.type === "boolean" ? (R(), g(d, { key: 2 }, [u(e.column, e.value, e.rowData) === null ? (R(), g("span", tt, W(
|
|
120
|
+
}, null, 8, et)) : e.column.type === "boolean" ? (R(), g(d, { key: 2 }, [u(e.column, e.value, e.rowData) === null ? (R(), g("span", tt, W(a(e.column, e.value, e.rowData)), 1)) : (R(), m(G(Q), {
|
|
122
121
|
key: 1,
|
|
123
|
-
value:
|
|
122
|
+
value: a(e.column, e.value, e.rowData),
|
|
124
123
|
severity: u(e.column, e.value, e.rowData),
|
|
125
124
|
class: j(["w-tag", `w-tag--${u(e.column, e.value, e.rowData)}`])
|
|
126
125
|
}, null, 8, [
|
|
@@ -136,7 +135,7 @@ var $e = {
|
|
|
136
135
|
"value",
|
|
137
136
|
"severity",
|
|
138
137
|
"class"
|
|
139
|
-
])) : e.column.type === "date" ? (R(), g("span", nt, W(e.column.format ? e.column.format(e.value, e.rowData) : G(t)(e.value)), 1)) : e.column.type === "datetime" ? (R(), g("span", rt, W(e.column.format ? e.column.format(e.value, e.rowData) : G(n)(e.value)), 1)) : e.column.type === "currency" ? (R(), g("span", it, W(e.column.format ? e.column.format(e.value, e.rowData) : G(
|
|
138
|
+
])) : e.column.type === "date" ? (R(), g("span", nt, W(e.column.format ? e.column.format(e.value, e.rowData) : G(t)(e.value)), 1)) : e.column.type === "datetime" ? (R(), g("span", rt, W(e.column.format ? e.column.format(e.value, e.rowData) : G(n)(e.value)), 1)) : e.column.type === "currency" ? (R(), g("span", it, W(e.column.format ? e.column.format(e.value, e.rowData) : G(r)(e.value)), 1)) : e.column.type === "number" ? (R(), g("span", at, W(e.column.format ? e.column.format(e.value, e.rowData) : G(i)(e.value, e.column.decimals ?? 0)), 1)) : (R(), g("span", ot, W(e.column.format ? e.column.format(e.value, e.rowData) : e.value), 1));
|
|
140
139
|
}
|
|
141
140
|
}), ct = Object.defineProperty, lt = (e, t, n) => t in e ? ct(e, t, {
|
|
142
141
|
enumerable: !0,
|
|
@@ -378,8 +377,7 @@ function At(e) {
|
|
|
378
377
|
function jt(e, t = 6) {
|
|
379
378
|
return e.filter((e) => !e.read_only && e.name !== "id").slice(0, t).map(At);
|
|
380
379
|
}
|
|
381
|
-
|
|
382
|
-
//#region src/components/form/WAutoCompleteFK.vue?vue&type=script&setup=true&lang.ts
|
|
380
|
+
// src/components/form/WAutoCompleteFK.vue?vue&type=script&setup=true&lang.ts
|
|
383
381
|
var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-option__label" }, Ft = {
|
|
384
382
|
key: 0,
|
|
385
383
|
class: "w-fk-option__desc"
|
|
@@ -448,10 +446,10 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
448
446
|
inputAttrs: {}
|
|
449
447
|
},
|
|
450
448
|
emits: ["update:modelValue"],
|
|
451
|
-
setup(
|
|
452
|
-
let
|
|
449
|
+
setup(n, { emit: r }) {
|
|
450
|
+
let i = t(), o = n, l = p(() => ({ pcInputText: { root: o.inputAttrs } })), u = r, f = E(e);
|
|
453
451
|
if (!f) throw Error("[wPrimeVueComponents] dataProvider não encontrado. Registre o WPrimeVuePlugin.");
|
|
454
|
-
let y = f, S =
|
|
452
|
+
let y = f, S = c(), { confirmDelete: C } = a(), w = B(null), T = B([]), D = B([]), O = B(!1), j = p(() => o.multiple ? T.value : w.value);
|
|
455
453
|
function M(e) {
|
|
456
454
|
return e && typeof e == "object" ? e[o.optionValue] : e;
|
|
457
455
|
}
|
|
@@ -557,40 +555,31 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
557
555
|
let De = 0, Oe = null, ke = null, je = !1;
|
|
558
556
|
async function Me(e) {
|
|
559
557
|
let t = ++De;
|
|
560
|
-
if (_e.value)
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
t === De && (O.value = !1);
|
|
558
|
+
if (_e.value) D.value = [];
|
|
559
|
+
else {
|
|
560
|
+
O.value = !0;
|
|
561
|
+
try {
|
|
562
|
+
let n = {
|
|
563
|
+
page_size: 20,
|
|
564
|
+
...o.endpointParams,
|
|
565
|
+
...ve()
|
|
566
|
+
};
|
|
567
|
+
e && (n.search = e);
|
|
568
|
+
let r = await y.list(o.endpoint, n);
|
|
569
|
+
if (t !== De) return;
|
|
570
|
+
D.value = r.data, ke = e, r.extras?.fields && !o.columns?.length && !rt.value?.length && (nt.value = r.extras.fields);
|
|
571
|
+
} catch {
|
|
572
|
+
t === De && (D.value = []);
|
|
573
|
+
} finally {
|
|
574
|
+
t === De && (O.value = !1);
|
|
575
|
+
}
|
|
579
576
|
}
|
|
580
577
|
}
|
|
581
578
|
function Ne(e) {
|
|
582
579
|
let t = e.query || "";
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
});
|
|
587
|
-
return;
|
|
588
|
-
}
|
|
589
|
-
if (t.length < o.minLength) {
|
|
590
|
-
D.value = [];
|
|
591
|
-
return;
|
|
592
|
-
}
|
|
593
|
-
oe = setTimeout(() => {
|
|
580
|
+
oe &&= (clearTimeout(oe), null), je ? (je = !1, Oe = Me(t).finally(() => {
|
|
581
|
+
Oe = null;
|
|
582
|
+
})) : t.length < o.minLength ? D.value = [] : oe = setTimeout(() => {
|
|
594
583
|
oe = null, Oe = Me(t).finally(() => {
|
|
595
584
|
Oe = null;
|
|
596
585
|
});
|
|
@@ -601,27 +590,25 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
601
590
|
n?.search && (je = !0, n.search(e, t, "dropdown"), je = !1);
|
|
602
591
|
}
|
|
603
592
|
function Fe(e) {
|
|
604
|
-
ce.value = "",
|
|
593
|
+
ce.value = "", o.multiple || (w.value = e.value, u("update:modelValue", e.value));
|
|
605
594
|
}
|
|
606
595
|
function Ie(e) {
|
|
607
596
|
o.multiple && (T.value = P(Array.isArray(e) ? e : []), F());
|
|
608
597
|
}
|
|
609
598
|
function Le() {
|
|
610
|
-
ce.value = "",
|
|
599
|
+
ce.value = "", o.multiple || (w.value = null, F());
|
|
611
600
|
}
|
|
612
601
|
q(() => o.modelValue, async (e) => {
|
|
613
602
|
if (o.multiple) {
|
|
614
603
|
let t = e == null ? [] : Array.isArray(e) ? e : [e], n = t.map(M), r = T.value.map((e) => e[o.optionValue]);
|
|
615
604
|
if (n.length === r.length && n.every((e, t) => e === r[t])) return;
|
|
616
605
|
T.value = await Te(t);
|
|
617
|
-
|
|
618
|
-
}
|
|
619
|
-
if (e != null) {
|
|
606
|
+
} else if (e != null) {
|
|
620
607
|
if (typeof e == "object" && e && o.optionLabel in e) {
|
|
621
608
|
w.value = e;
|
|
622
609
|
return;
|
|
623
610
|
}
|
|
624
|
-
|
|
611
|
+
w.value && w.value[o.optionValue] === e || await we(e);
|
|
625
612
|
} else w.value = null;
|
|
626
613
|
}, { immediate: !0 });
|
|
627
614
|
let Re = 0;
|
|
@@ -672,39 +659,33 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
672
659
|
sortable: !0
|
|
673
660
|
}]);
|
|
674
661
|
async function mt() {
|
|
675
|
-
if (_e.value)
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
Ve.value = !1;
|
|
662
|
+
if (_e.value) Be.value = [], Ge.value = 0;
|
|
663
|
+
else {
|
|
664
|
+
Ve.value = !0;
|
|
665
|
+
try {
|
|
666
|
+
let e = {
|
|
667
|
+
page: Ue.value,
|
|
668
|
+
page_size: We.value,
|
|
669
|
+
...o.endpointParams,
|
|
670
|
+
...ve()
|
|
671
|
+
};
|
|
672
|
+
He.value && (e.search = He.value), Je.value && Ye.value !== 0 && (e.ordering = Ye.value === -1 ? `-${Je.value}` : Je.value);
|
|
673
|
+
let t = await y.list(o.endpoint, e);
|
|
674
|
+
Be.value = t.data, Ge.value = t.rows, et(), t.extras?.fields && !o.columns?.length && !rt.value?.length && (nt.value = t.extras.fields);
|
|
675
|
+
} catch {
|
|
676
|
+
Be.value = [], Ge.value = 0;
|
|
677
|
+
} finally {
|
|
678
|
+
Ve.value = !1;
|
|
679
|
+
}
|
|
694
680
|
}
|
|
695
681
|
}
|
|
696
682
|
function ht(e) {
|
|
697
683
|
if (!o.disabled) {
|
|
698
|
-
if (e.key === "F2")
|
|
699
|
-
|
|
700
|
-
return;
|
|
701
|
-
}
|
|
702
|
-
if (e.key === "ArrowDown" && se.value && se.value.overlayVisible === !1) {
|
|
684
|
+
if (e.key === "F2") e.preventDefault(), _t();
|
|
685
|
+
else if (e.key === "ArrowDown" && se.value && se.value.overlayVisible === !1) {
|
|
703
686
|
if (_e.value) return;
|
|
704
687
|
e.preventDefault(), Pe(e, e.target?.value ?? "");
|
|
705
|
-
|
|
706
|
-
}
|
|
707
|
-
e.key === "Enter" && !e.isComposing && gt(e);
|
|
688
|
+
} else e.key === "Enter" && !e.isComposing && gt(e);
|
|
708
689
|
}
|
|
709
690
|
}
|
|
710
691
|
async function gt(e) {
|
|
@@ -712,13 +693,7 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
712
693
|
if (!t || !ct.value || _e.value) return;
|
|
713
694
|
(ke !== t || Oe) && (Pe(e, t), Oe && await Oe);
|
|
714
695
|
let n = ce.value.trim();
|
|
715
|
-
|
|
716
|
-
if (D.value.length) {
|
|
717
|
-
se.value?.overlayVisible === !1 && se.value.show?.();
|
|
718
|
-
return;
|
|
719
|
-
}
|
|
720
|
-
e.preventDefault(), e.stopPropagation(), Zt(t);
|
|
721
|
-
}
|
|
696
|
+
(n === "" || n === t) && (D.value.length ? se.value?.overlayVisible === !1 && se.value.show?.() : (e.preventDefault(), e.stopPropagation(), Zt(t)));
|
|
722
697
|
}
|
|
723
698
|
function _t() {
|
|
724
699
|
o.disabled || (He.value = "", Ue.value = 1, Je.value = null, Ye.value = 0, Ke.value = o.multiple ? [...T.value] : null, $.value = !0, mt());
|
|
@@ -738,11 +713,7 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
738
713
|
e && (w.value = e, u("update:modelValue", e), $.value = !1);
|
|
739
714
|
}
|
|
740
715
|
function xt(e) {
|
|
741
|
-
|
|
742
|
-
Ke.value = P([...qe.value, e.data]);
|
|
743
|
-
return;
|
|
744
|
-
}
|
|
745
|
-
w.value = e.data, u("update:modelValue", e.data), $.value = !1;
|
|
716
|
+
o.multiple ? Ke.value = P([...qe.value, e.data]) : (w.value = e.data, u("update:modelValue", e.data), $.value = !1);
|
|
746
717
|
}
|
|
747
718
|
let St = B(null), Ct = B(null), wt = "";
|
|
748
719
|
function Tt() {
|
|
@@ -760,11 +731,7 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
760
731
|
if (e.key !== "Enter" || e.isComposing) return;
|
|
761
732
|
e.preventDefault();
|
|
762
733
|
let t = He.value.trim();
|
|
763
|
-
|
|
764
|
-
Et();
|
|
765
|
-
return;
|
|
766
|
-
}
|
|
767
|
-
Xe && clearTimeout(Xe), wt = t, Ue.value = 1, mt();
|
|
734
|
+
t === "" || t === wt ? Et() : (Xe && clearTimeout(Xe), wt = t, Ue.value = 1, mt());
|
|
768
735
|
}
|
|
769
736
|
function kt(e) {
|
|
770
737
|
e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), (o.multiple || qe.value.length) && bt());
|
|
@@ -849,7 +816,7 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
849
816
|
}
|
|
850
817
|
Ke.value = o.multiple ? P([...qe.value, t.data]) : t.data;
|
|
851
818
|
} catch (e) {
|
|
852
|
-
S.error(
|
|
819
|
+
S.error(s(e, "Erro ao salvar registro"));
|
|
853
820
|
} finally {
|
|
854
821
|
Ut.value = !1;
|
|
855
822
|
}
|
|
@@ -862,32 +829,32 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
862
829
|
let n = Be.value.findIndex((e) => e[o.optionValue] === t);
|
|
863
830
|
n !== -1 && (Be.value.splice(n, 1), Ge.value--), o.multiple ? (T.value.some((e) => e[o.optionValue] === t) && (T.value = T.value.filter((e) => e[o.optionValue] !== t), F()), Ke.value = qe.value.filter((e) => e[o.optionValue] !== t)) : (w.value && w.value[o.optionValue] === t && (w.value = null, u("update:modelValue", null)), qe.value[0]?.[o.optionValue] === t && (Ke.value = null)), S.success("Registro excluído com sucesso");
|
|
864
831
|
} catch (e) {
|
|
865
|
-
S.error(
|
|
832
|
+
S.error(s(e, "Erro ao excluir registro"));
|
|
866
833
|
}
|
|
867
834
|
});
|
|
868
835
|
}
|
|
869
|
-
return (
|
|
870
|
-
let
|
|
836
|
+
return (e, t) => {
|
|
837
|
+
let r = re("tooltip");
|
|
871
838
|
return R(), g(d, null, [
|
|
872
839
|
_("div", k({
|
|
873
840
|
class: ["w-autocompletefk", { "w-autocompletefk-has-clear": ae.value }],
|
|
874
841
|
style: ie.value,
|
|
875
842
|
"data-kbd-hold": de.value || void 0
|
|
876
|
-
},
|
|
843
|
+
}, e.$attrs, { onInput: le }), [
|
|
877
844
|
x(G(Ee), {
|
|
878
845
|
ref_key: "acRef",
|
|
879
846
|
ref: se,
|
|
880
847
|
"model-value": j.value,
|
|
881
848
|
suggestions: D.value,
|
|
882
|
-
multiple:
|
|
883
|
-
"option-label":
|
|
849
|
+
multiple: n.multiple,
|
|
850
|
+
"option-label": n.optionLabel,
|
|
884
851
|
placeholder: Se.value,
|
|
885
|
-
disabled:
|
|
886
|
-
"force-selection":
|
|
852
|
+
disabled: n.disabled,
|
|
853
|
+
"force-selection": n.forceSelection,
|
|
887
854
|
loading: O.value,
|
|
888
855
|
"show-clear": !1,
|
|
889
|
-
"input-id":
|
|
890
|
-
pt:
|
|
856
|
+
"input-id": n.inputId,
|
|
857
|
+
pt: l.value,
|
|
891
858
|
fluid: "",
|
|
892
859
|
"auto-option-focus": "",
|
|
893
860
|
onComplete: Ne,
|
|
@@ -895,31 +862,31 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
895
862
|
"onUpdate:modelValue": Ie,
|
|
896
863
|
onClear: Le,
|
|
897
864
|
onKeydown: ht
|
|
898
|
-
}, v({ _: 2 }, [
|
|
865
|
+
}, v({ _: 2 }, [n.optionDescription ? {
|
|
899
866
|
name: "option",
|
|
900
867
|
fn: J(({ option: e }) => [_("span", Nt, [_("span", Pt, W(L(e)), 1), ee(e) ? (R(), g("span", Ft, W(ee(e)), 1)) : h("", !0)])]),
|
|
901
868
|
key: "0"
|
|
902
|
-
} : void 0,
|
|
869
|
+
} : void 0, n.multiple ? {
|
|
903
870
|
name: "chip",
|
|
904
|
-
fn: J(({ value:
|
|
871
|
+
fn: J(({ value: e, index: t, removeCallback: i }) => [!n.maxChips || t < n.maxChips ? Y((R(), m(G(Ae), {
|
|
905
872
|
key: 0,
|
|
906
873
|
class: "p-autocomplete-chip w-autocompletefk-chip",
|
|
907
|
-
label: L(
|
|
874
|
+
label: L(e),
|
|
908
875
|
removable: "",
|
|
909
876
|
onClick: _t,
|
|
910
|
-
onRemove: (e) => H(e,
|
|
877
|
+
onRemove: (e) => H(e, i)
|
|
911
878
|
}, null, 8, ["label", "onRemove"])), [[
|
|
912
|
-
|
|
913
|
-
L(
|
|
879
|
+
r,
|
|
880
|
+
L(e),
|
|
914
881
|
void 0,
|
|
915
882
|
{ top: !0 }
|
|
916
|
-
]]) :
|
|
883
|
+
]]) : t === n.maxChips ? Y((R(), m(G(Ae), {
|
|
917
884
|
key: 1,
|
|
918
885
|
class: "p-autocomplete-chip w-autocompletefk-chip w-autocompletefk-chip-more",
|
|
919
886
|
label: `+${te.value}`,
|
|
920
887
|
onClick: _t
|
|
921
888
|
}, null, 8, ["label"])), [[
|
|
922
|
-
|
|
889
|
+
r,
|
|
923
890
|
z.value,
|
|
924
891
|
void 0,
|
|
925
892
|
{ top: !0 }
|
|
@@ -945,8 +912,8 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
945
912
|
tabindex: "-1",
|
|
946
913
|
class: "w-autocompletefk-clear",
|
|
947
914
|
onClick: U
|
|
948
|
-
}, [...
|
|
949
|
-
|
|
915
|
+
}, [...t[7] ||= [_("i", { class: "pi pi-times" }, null, -1)]])), [[
|
|
916
|
+
r,
|
|
950
917
|
"Limpar",
|
|
951
918
|
void 0,
|
|
952
919
|
{ top: !0 }
|
|
@@ -954,13 +921,13 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
954
921
|
Y((R(), g("button", {
|
|
955
922
|
type: "button",
|
|
956
923
|
"aria-label": "Pesquisar (F2)",
|
|
957
|
-
disabled:
|
|
924
|
+
disabled: n.disabled,
|
|
958
925
|
"data-kbd-skip": "",
|
|
959
926
|
tabindex: "-1",
|
|
960
927
|
class: "w-autocompletefk-trigger",
|
|
961
928
|
onClick: _t
|
|
962
|
-
}, [...
|
|
963
|
-
|
|
929
|
+
}, [...t[8] ||= [_("i", { class: "pi pi-search" }, null, -1)]], 8, Lt)), [[
|
|
930
|
+
r,
|
|
964
931
|
"Pesquisar (F2)",
|
|
965
932
|
void 0,
|
|
966
933
|
{ top: !0 }
|
|
@@ -968,9 +935,9 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
968
935
|
], 16, Mt),
|
|
969
936
|
x(G(Ce), {
|
|
970
937
|
visible: $.value,
|
|
971
|
-
"onUpdate:visible":
|
|
972
|
-
"append-to": G(
|
|
973
|
-
header:
|
|
938
|
+
"onUpdate:visible": t[5] ||= (e) => $.value = e,
|
|
939
|
+
"append-to": G(i)?.hostEl.value ?? "body",
|
|
940
|
+
header: n.dialogHeader || "Pesquisar",
|
|
974
941
|
style: { width: "80vw" },
|
|
975
942
|
modal: "",
|
|
976
943
|
draggable: !1,
|
|
@@ -981,11 +948,11 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
981
948
|
label: "Cancelar",
|
|
982
949
|
severity: "secondary",
|
|
983
950
|
text: "",
|
|
984
|
-
onClick:
|
|
951
|
+
onClick: t[4] ||= (e) => $.value = !1
|
|
985
952
|
}), x(G(Z), {
|
|
986
|
-
label:
|
|
953
|
+
label: n.multiple && qe.value.length ? `Selecionar (${qe.value.length})` : "Selecionar",
|
|
987
954
|
icon: "pi pi-check",
|
|
988
|
-
disabled: !
|
|
955
|
+
disabled: !n.multiple && !qe.value.length,
|
|
989
956
|
onClick: bt
|
|
990
957
|
}, null, 8, ["label", "disabled"])])]),
|
|
991
958
|
default: J(() => [_("div", Rt, [x(G(ye), { class: "w-autocompletefk-toolbar-search" }, {
|
|
@@ -993,7 +960,7 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
993
960
|
ref_key: "modalSearchInput",
|
|
994
961
|
ref: St,
|
|
995
962
|
modelValue: He.value,
|
|
996
|
-
"onUpdate:modelValue":
|
|
963
|
+
"onUpdate:modelValue": t[0] ||= (e) => He.value = e,
|
|
997
964
|
placeholder: "Pesquisar...",
|
|
998
965
|
fluid: "",
|
|
999
966
|
autofocus: "",
|
|
@@ -1012,9 +979,9 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1012
979
|
onKeydownCapture: kt
|
|
1013
980
|
}, [x(G(fe), {
|
|
1014
981
|
selection: Ke.value,
|
|
1015
|
-
"onUpdate:selection":
|
|
982
|
+
"onUpdate:selection": t[1] ||= (e) => Ke.value = e,
|
|
1016
983
|
"expanded-rows": $e.value,
|
|
1017
|
-
"onUpdate:expandedRows":
|
|
984
|
+
"onUpdate:expandedRows": t[2] ||= (e) => $e.value = e,
|
|
1018
985
|
"meta-key-selection": !1,
|
|
1019
986
|
value: Be.value,
|
|
1020
987
|
loading: Ve.value,
|
|
@@ -1027,19 +994,19 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1027
994
|
"total-records": Ge.value,
|
|
1028
995
|
"sort-field": Je.value ?? void 0,
|
|
1029
996
|
"sort-order": Ye.value,
|
|
1030
|
-
"selection-mode":
|
|
1031
|
-
"data-key":
|
|
997
|
+
"selection-mode": n.multiple ? "multiple" : "single",
|
|
998
|
+
"data-key": n.optionValue,
|
|
1032
999
|
onPage: vt,
|
|
1033
|
-
onSort:
|
|
1000
|
+
onSort: t[3] ||= (e) => yt({
|
|
1034
1001
|
sortField: e.sortField,
|
|
1035
1002
|
sortOrder: e.sortOrder
|
|
1036
1003
|
}),
|
|
1037
1004
|
onRowDblclick: xt
|
|
1038
1005
|
}, v({
|
|
1039
|
-
empty: J(() => [
|
|
1006
|
+
empty: J(() => [t[9] ||= _("div", { class: "w-autocompletefk-empty" }, "Nenhum registro encontrado", -1)]),
|
|
1040
1007
|
default: J(() => [
|
|
1041
1008
|
x(G(pe), {
|
|
1042
|
-
"selection-mode":
|
|
1009
|
+
"selection-mode": n.multiple ? "multiple" : "single",
|
|
1043
1010
|
class: "w-col-narrow"
|
|
1044
1011
|
}, null, 8, ["selection-mode"]),
|
|
1045
1012
|
(R(!0), g(d, null, V(pt.value, (e) => (R(), m(G(pe), {
|
|
@@ -1080,7 +1047,7 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1080
1047
|
size: "small",
|
|
1081
1048
|
onClick: (t) => $t(e)
|
|
1082
1049
|
}, null, 8, ["onClick"])), [[
|
|
1083
|
-
|
|
1050
|
+
r,
|
|
1084
1051
|
"Editar",
|
|
1085
1052
|
void 0,
|
|
1086
1053
|
{ top: !0 }
|
|
@@ -1094,7 +1061,7 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1094
1061
|
severity: "danger",
|
|
1095
1062
|
onClick: (t) => nn(e)
|
|
1096
1063
|
}, null, 8, ["onClick"])), [[
|
|
1097
|
-
|
|
1064
|
+
r,
|
|
1098
1065
|
"Excluir",
|
|
1099
1066
|
void 0,
|
|
1100
1067
|
{ top: !0 }
|
|
@@ -1103,7 +1070,7 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1103
1070
|
})) : h("", !0)
|
|
1104
1071
|
]),
|
|
1105
1072
|
_: 2
|
|
1106
|
-
}, [
|
|
1073
|
+
}, [n.subRows ? {
|
|
1107
1074
|
name: "expansion",
|
|
1108
1075
|
fn: J(({ data: e }) => [_("table", Vt, [_("thead", null, [_("tr", null, [(R(!0), g(d, null, V(Qe.value, (e) => (R(), g("th", { key: e.field }, W(e.header), 1))), 128))])]), _("tbody", null, [(R(!0), g(d, null, V(tt(e), (e, t) => (R(), g("tr", { key: t }, [(R(!0), g(d, null, V(Qe.value, (t) => (R(), g("td", { key: t.field }, W(e[t.field] ?? "—"), 1))), 128))]))), 128))])])]),
|
|
1109
1076
|
key: "0"
|
|
@@ -1133,9 +1100,9 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1133
1100
|
"form-data": Gt,
|
|
1134
1101
|
"is-editing": Kt.value,
|
|
1135
1102
|
saving: Ut.value,
|
|
1136
|
-
width:
|
|
1137
|
-
"form-columns":
|
|
1138
|
-
"onUpdate:visible":
|
|
1103
|
+
width: n.crud?.dialogWidth || n.dialogWidth,
|
|
1104
|
+
"form-columns": n.crud?.formColumns,
|
|
1105
|
+
"onUpdate:visible": t[6] ||= (e) => {
|
|
1139
1106
|
At.value = e, e || (Wt.value = null);
|
|
1140
1107
|
},
|
|
1141
1108
|
"onUpdate:field": en,
|
|
@@ -1185,17 +1152,17 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1185
1152
|
inputAttrs: {}
|
|
1186
1153
|
},
|
|
1187
1154
|
emits: ["update:modelValue"],
|
|
1188
|
-
setup(e, { emit:
|
|
1189
|
-
let
|
|
1190
|
-
showTime: () =>
|
|
1191
|
-
valueFormat: () =>
|
|
1192
|
-
}), o = B(""), s = B(null), c = B(null), l = p(() => ({ mask: a.mask() })), u = p(() => a.toDate(
|
|
1193
|
-
q(() =>
|
|
1155
|
+
setup(e, { emit: t }) {
|
|
1156
|
+
let n = e, r = t, a = i({
|
|
1157
|
+
showTime: () => n.showTime,
|
|
1158
|
+
valueFormat: () => n.valueFormat
|
|
1159
|
+
}), o = B(""), s = B(null), c = B(null), l = p(() => ({ mask: a.mask() })), u = p(() => a.toDate(n.minDate) ?? void 0), d = p(() => a.toDate(n.maxDate) ?? void 0);
|
|
1160
|
+
q(() => n.modelValue, (e) => {
|
|
1194
1161
|
let t = a.toDate(e);
|
|
1195
1162
|
s.value = t, o.value = a.toDisplay(t);
|
|
1196
1163
|
}, { immediate: !0 });
|
|
1197
1164
|
function f(e) {
|
|
1198
|
-
|
|
1165
|
+
r("update:modelValue", a.toValue(e));
|
|
1199
1166
|
}
|
|
1200
1167
|
function v() {
|
|
1201
1168
|
if (o.value === "") {
|
|
@@ -1206,13 +1173,13 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1206
1173
|
e && f(e);
|
|
1207
1174
|
}
|
|
1208
1175
|
function y() {
|
|
1209
|
-
o.value = a.toDisplay(a.toDate(
|
|
1176
|
+
o.value = a.toDisplay(a.toDate(n.modelValue));
|
|
1210
1177
|
}
|
|
1211
1178
|
function b(e) {
|
|
1212
|
-
e.key === "F2" && !
|
|
1179
|
+
e.key === "F2" && !n.disabled && (e.preventDefault(), C());
|
|
1213
1180
|
}
|
|
1214
1181
|
function S(e) {
|
|
1215
|
-
f(e ?? null),
|
|
1182
|
+
f(e ?? null), n.showTime || c.value?.hide();
|
|
1216
1183
|
}
|
|
1217
1184
|
function C() {
|
|
1218
1185
|
f(a.today());
|
|
@@ -1221,10 +1188,10 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1221
1188
|
f(null), c.value?.hide();
|
|
1222
1189
|
}
|
|
1223
1190
|
function T(e) {
|
|
1224
|
-
|
|
1191
|
+
n.disabled || c.value?.toggle(e);
|
|
1225
1192
|
}
|
|
1226
1193
|
return I(() => {
|
|
1227
|
-
|
|
1194
|
+
n.autonow && n.modelValue == null && C();
|
|
1228
1195
|
}), (t, n) => (R(), g("div", Wt, [x(G(ye), null, {
|
|
1229
1196
|
default: J(() => [Y(x(G(me), k({ id: e.inputId }, e.inputAttrs, {
|
|
1230
1197
|
modelValue: o.value,
|
|
@@ -1389,19 +1356,19 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1389
1356
|
height: { default: 200 }
|
|
1390
1357
|
},
|
|
1391
1358
|
emits: ["update:modelValue", "error"],
|
|
1392
|
-
setup(e, { emit:
|
|
1393
|
-
let
|
|
1394
|
-
q(() =>
|
|
1395
|
-
|
|
1359
|
+
setup(e, { emit: n }) {
|
|
1360
|
+
let r = t(), i = e, a = n, o = B(null);
|
|
1361
|
+
q(() => i.modelValue, (e) => {
|
|
1362
|
+
o.value &&= (URL.revokeObjectURL(o.value), null), e instanceof File && (o.value = URL.createObjectURL(e));
|
|
1396
1363
|
}, { immediate: !0 }), P(() => {
|
|
1397
|
-
|
|
1364
|
+
o.value && URL.revokeObjectURL(o.value);
|
|
1398
1365
|
});
|
|
1399
|
-
let
|
|
1400
|
-
function
|
|
1401
|
-
|
|
1366
|
+
let s = p(() => i.modelValue instanceof File ? o.value : typeof i.modelValue == "string" && i.modelValue ? i.modelValue : null), c = B(null);
|
|
1367
|
+
function l() {
|
|
1368
|
+
c.value?.click();
|
|
1402
1369
|
}
|
|
1403
1370
|
function u(e) {
|
|
1404
|
-
let t = (
|
|
1371
|
+
let t = (i.accept || "").trim();
|
|
1405
1372
|
return !t || t === "*" || t.includes("image/*") ? e.type.startsWith("image/") : t.split(",").map((e) => e.trim()).filter(Boolean).some((t) => t.endsWith("/*") ? e.type.startsWith(t.slice(0, -1)) : t.startsWith(".") ? e.name.toLowerCase().endsWith(t.toLowerCase()) : e.type === t);
|
|
1406
1373
|
}
|
|
1407
1374
|
let f = "image.png", m = "image/png", v = null;
|
|
@@ -1409,29 +1376,29 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1409
1376
|
let t = e.target, n = t.files?.[0];
|
|
1410
1377
|
if (t.value = "", !n) return;
|
|
1411
1378
|
if (!u(n)) {
|
|
1412
|
-
|
|
1379
|
+
a("error", "Tipo de arquivo não suportado.");
|
|
1413
1380
|
return;
|
|
1414
1381
|
}
|
|
1415
|
-
if (n.size >
|
|
1416
|
-
|
|
1382
|
+
if (n.size > i.maxSize) {
|
|
1383
|
+
a("error", `Imagem acima do limite de ${(i.maxSize / 1048576).toFixed(1)}MB.`);
|
|
1417
1384
|
return;
|
|
1418
1385
|
}
|
|
1419
1386
|
f = n.name, m = n.type || "image/png";
|
|
1420
|
-
let
|
|
1421
|
-
|
|
1387
|
+
let r = new FileReader();
|
|
1388
|
+
r.onload = () => {
|
|
1422
1389
|
let e = new Image();
|
|
1423
1390
|
e.onload = () => {
|
|
1424
1391
|
v = e, w.value = e.naturalWidth, T.value = e.naturalHeight, E.value = 1, C.value = e.src, D.x = (k.value - I.value) / 2, D.y = (A.value - L.value) / 2, S.value = !0;
|
|
1425
|
-
}, e.onerror = () =>
|
|
1426
|
-
},
|
|
1392
|
+
}, e.onerror = () => a("error", "Não foi possível carregar a imagem."), e.src = String(r.result);
|
|
1393
|
+
}, r.onerror = () => a("error", "Falha ao ler o arquivo."), r.readAsDataURL(n);
|
|
1427
1394
|
}
|
|
1428
1395
|
function b() {
|
|
1429
|
-
|
|
1396
|
+
a("update:modelValue", null);
|
|
1430
1397
|
}
|
|
1431
1398
|
let S = B(!1), C = B(""), w = B(0), T = B(0), E = B(1), D = ne({
|
|
1432
1399
|
x: 0,
|
|
1433
1400
|
y: 0
|
|
1434
|
-
}), O = p(() =>
|
|
1401
|
+
}), O = p(() => i.circular ? 1 : i.aspectRatio || 1), k = p(() => O.value >= 1 ? nn : Math.round(nn * O.value)), A = p(() => O.value >= 1 ? Math.round(nn / O.value) : nn), M = p(() => w.value && T.value ? Math.max(k.value / w.value, A.value / T.value) : 1), F = p(() => M.value * E.value), I = p(() => w.value * F.value), L = p(() => T.value * F.value);
|
|
1435
1402
|
function ee() {
|
|
1436
1403
|
D.x = Math.min(0, Math.max(k.value - I.value, D.x)), D.y = Math.min(0, Math.max(A.value - L.value, D.y));
|
|
1437
1404
|
}
|
|
@@ -1461,7 +1428,7 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1461
1428
|
z.value = !1;
|
|
1462
1429
|
}
|
|
1463
1430
|
function W() {
|
|
1464
|
-
return
|
|
1431
|
+
return i.circular ? "image/png" : m === "image/jpeg" || m === "image/png" || m === "image/webp" ? m : "image/png";
|
|
1465
1432
|
}
|
|
1466
1433
|
function ae(e) {
|
|
1467
1434
|
let t = e === "image/png" ? "png" : e === "image/webp" ? "webp" : "jpg";
|
|
@@ -1469,35 +1436,31 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1469
1436
|
}
|
|
1470
1437
|
function oe() {
|
|
1471
1438
|
if (!v) return;
|
|
1472
|
-
let e = F.value, t = -D.x / e, n = -D.y / e,
|
|
1473
|
-
s.width = Math.max(1, Math.round(
|
|
1439
|
+
let e = F.value, t = -D.x / e, n = -D.y / e, r = k.value / e, o = A.value / e, s = document.createElement("canvas");
|
|
1440
|
+
s.width = Math.max(1, Math.round(r)), s.height = Math.max(1, Math.round(o));
|
|
1474
1441
|
let c = s.getContext("2d");
|
|
1475
1442
|
if (!c) {
|
|
1476
|
-
|
|
1443
|
+
a("error", "Canvas indisponível neste ambiente.");
|
|
1477
1444
|
return;
|
|
1478
1445
|
}
|
|
1479
|
-
|
|
1446
|
+
i.circular && (c.beginPath(), c.ellipse(s.width / 2, s.height / 2, s.width / 2, s.height / 2, 0, 0, Math.PI * 2), c.clip()), c.drawImage(v, t, n, r, o, 0, 0, s.width, s.height);
|
|
1480
1447
|
let l = W();
|
|
1481
1448
|
s.toBlob((e) => {
|
|
1482
|
-
|
|
1483
|
-
i("error", "Falha ao processar a imagem.");
|
|
1484
|
-
return;
|
|
1485
|
-
}
|
|
1486
|
-
i("update:modelValue", new File([e], ae(l), { type: l })), S.value = !1;
|
|
1449
|
+
e ? (a("update:modelValue", new File([e], ae(l), { type: l })), S.value = !1) : a("error", "Falha ao processar a imagem.");
|
|
1487
1450
|
}, l, .92);
|
|
1488
1451
|
}
|
|
1489
|
-
return (t,
|
|
1452
|
+
return (t, n) => (R(), g("div", Yt, [
|
|
1490
1453
|
_("div", {
|
|
1491
1454
|
class: j(["w-imgcropper-preview", {
|
|
1492
1455
|
"is-circular": e.circular,
|
|
1493
|
-
"is-empty": !
|
|
1456
|
+
"is-empty": !s.value
|
|
1494
1457
|
}]),
|
|
1495
1458
|
style: N({
|
|
1496
1459
|
width: `${e.width}px`,
|
|
1497
1460
|
height: `${e.height}px`
|
|
1498
1461
|
})
|
|
1499
|
-
}, [
|
|
1500
|
-
src:
|
|
1462
|
+
}, [s.value ? (R(), g(d, { key: 0 }, [_("img", {
|
|
1463
|
+
src: s.value,
|
|
1501
1464
|
alt: "",
|
|
1502
1465
|
class: "w-imgcropper-img"
|
|
1503
1466
|
}, null, 8, Xt), _("div", Zt, [x(G(Z), {
|
|
@@ -1506,7 +1469,7 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1506
1469
|
rounded: "",
|
|
1507
1470
|
text: "",
|
|
1508
1471
|
"aria-label": "Trocar imagem",
|
|
1509
|
-
onClick:
|
|
1472
|
+
onClick: l
|
|
1510
1473
|
}), x(G(Z), {
|
|
1511
1474
|
type: "button",
|
|
1512
1475
|
icon: "pi pi-trash",
|
|
@@ -1515,14 +1478,14 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1515
1478
|
severity: "danger",
|
|
1516
1479
|
"aria-label": "Remover imagem",
|
|
1517
1480
|
onClick: b
|
|
1518
|
-
})])], 64)) : H(t.$slots, "placeholder", { open:
|
|
1481
|
+
})])], 64)) : H(t.$slots, "placeholder", { open: l }, () => [_("button", {
|
|
1519
1482
|
type: "button",
|
|
1520
1483
|
class: "w-imgcropper-empty",
|
|
1521
|
-
onClick:
|
|
1522
|
-
}, [...
|
|
1484
|
+
onClick: l
|
|
1485
|
+
}, [...n[3] ||= [_("i", { class: "pi pi-image" }, null, -1), _("span", null, "Selecionar imagem", -1)]])], !0, 1)], 6),
|
|
1523
1486
|
_("input", {
|
|
1524
1487
|
ref_key: "fileInput",
|
|
1525
|
-
ref:
|
|
1488
|
+
ref: c,
|
|
1526
1489
|
type: "file",
|
|
1527
1490
|
accept: e.accept,
|
|
1528
1491
|
class: "w-imgcropper-file",
|
|
@@ -1530,8 +1493,8 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1530
1493
|
}, null, 40, Qt),
|
|
1531
1494
|
x(G(Ce), {
|
|
1532
1495
|
visible: S.value,
|
|
1533
|
-
"onUpdate:visible":
|
|
1534
|
-
"append-to": G(
|
|
1496
|
+
"onUpdate:visible": n[2] ||= (e) => S.value = e,
|
|
1497
|
+
"append-to": G(r)?.hostEl.value ?? "body",
|
|
1535
1498
|
modal: "",
|
|
1536
1499
|
header: "Ajustar imagem",
|
|
1537
1500
|
"dismissable-mask": !1,
|
|
@@ -1541,7 +1504,7 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1541
1504
|
type: "button",
|
|
1542
1505
|
label: "Cancelar",
|
|
1543
1506
|
text: "",
|
|
1544
|
-
onClick:
|
|
1507
|
+
onClick: n[1] ||= (e) => S.value = !1
|
|
1545
1508
|
}), x(G(Z), {
|
|
1546
1509
|
type: "button",
|
|
1547
1510
|
label: "Confirmar",
|
|
@@ -1565,16 +1528,16 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1565
1528
|
style: N(te.value),
|
|
1566
1529
|
draggable: "false"
|
|
1567
1530
|
}, null, 12, en)) : h("", !0), _("div", { class: j(["w-imgcropper-stencil", { "is-circular": e.circular }]) }, null, 2)], 38), _("div", tn, [
|
|
1568
|
-
|
|
1531
|
+
n[4] ||= _("i", { class: "pi pi-search-minus" }, null, -1),
|
|
1569
1532
|
x(G(Pe), {
|
|
1570
1533
|
modelValue: E.value,
|
|
1571
|
-
"onUpdate:modelValue":
|
|
1534
|
+
"onUpdate:modelValue": n[0] ||= (e) => E.value = e,
|
|
1572
1535
|
min: 1,
|
|
1573
1536
|
max: 4,
|
|
1574
1537
|
step: .01,
|
|
1575
1538
|
class: "w-imgcropper-slider"
|
|
1576
1539
|
}, null, 8, ["modelValue"]),
|
|
1577
|
-
|
|
1540
|
+
n[5] ||= _("i", { class: "pi pi-search-plus" }, null, -1)
|
|
1578
1541
|
])])]),
|
|
1579
1542
|
_: 1
|
|
1580
1543
|
}, 8, ["visible", "append-to"])
|
|
@@ -1688,8 +1651,7 @@ var Mt = ["data-kbd-hold"], Nt = { class: "w-fk-option" }, Pt = { class: "w-fk-o
|
|
|
1688
1651
|
], 6));
|
|
1689
1652
|
}
|
|
1690
1653
|
});
|
|
1691
|
-
|
|
1692
|
-
//#region src/utils/cep.ts
|
|
1654
|
+
// src/utils/cep.ts
|
|
1693
1655
|
async function Cn(e) {
|
|
1694
1656
|
let t = e.replace(/\D/g, "");
|
|
1695
1657
|
if (t.length !== 8) return null;
|
|
@@ -1702,8 +1664,7 @@ async function Cn(e) {
|
|
|
1702
1664
|
return null;
|
|
1703
1665
|
}
|
|
1704
1666
|
}
|
|
1705
|
-
|
|
1706
|
-
//#region src/components/form/WFormRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
1667
|
+
// src/components/form/WFormRenderer.vue?vue&type=script&setup=true&lang.ts
|
|
1707
1668
|
var wn = { class: "w-crud-form" }, Tn = {
|
|
1708
1669
|
key: 0,
|
|
1709
1670
|
class: "w-crud-form-group-header"
|
|
@@ -1764,27 +1725,27 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
1764
1725
|
},
|
|
1765
1726
|
emits: ["update:field"],
|
|
1766
1727
|
setup(e, { expose: t, emit: n }) {
|
|
1767
|
-
let r = e, i = n, a = ce(), o = ne({}),
|
|
1728
|
+
let r = e, i = n, a = ce(), o = ne({}), s = [];
|
|
1768
1729
|
q(() => r.errors, (e) => {
|
|
1769
|
-
for (let e of
|
|
1770
|
-
|
|
1771
|
-
for (let t of
|
|
1730
|
+
for (let e of s) o[e] = null;
|
|
1731
|
+
s = Object.keys(e ?? {});
|
|
1732
|
+
for (let t of s) o[t] = e[t];
|
|
1772
1733
|
}, {
|
|
1773
1734
|
deep: !0,
|
|
1774
1735
|
immediate: !0
|
|
1775
1736
|
});
|
|
1776
|
-
let
|
|
1777
|
-
function
|
|
1778
|
-
return `${
|
|
1737
|
+
let c = se();
|
|
1738
|
+
function l(e) {
|
|
1739
|
+
return `${c}-${e.field}`;
|
|
1779
1740
|
}
|
|
1780
1741
|
function f(e) {
|
|
1781
|
-
return `${
|
|
1742
|
+
return `${l(e)}-label`;
|
|
1782
1743
|
}
|
|
1783
1744
|
function v(e) {
|
|
1784
|
-
return `${
|
|
1745
|
+
return `${l(e)}-hint`;
|
|
1785
1746
|
}
|
|
1786
1747
|
function y(e) {
|
|
1787
|
-
return `${
|
|
1748
|
+
return `${l(e)}-error`;
|
|
1788
1749
|
}
|
|
1789
1750
|
function S(e) {
|
|
1790
1751
|
return A[e.field] ?? o[e.field] ?? null;
|
|
@@ -1803,13 +1764,13 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
1803
1764
|
}
|
|
1804
1765
|
function T(e) {
|
|
1805
1766
|
return {
|
|
1806
|
-
id:
|
|
1767
|
+
id: l(e),
|
|
1807
1768
|
...w(e)
|
|
1808
1769
|
};
|
|
1809
1770
|
}
|
|
1810
1771
|
function E(e) {
|
|
1811
1772
|
return {
|
|
1812
|
-
id:
|
|
1773
|
+
id: l(e),
|
|
1813
1774
|
"aria-labelledby": f(e),
|
|
1814
1775
|
"aria-describedby": C(e),
|
|
1815
1776
|
"aria-required": e.required ? "true" : void 0,
|
|
@@ -1838,7 +1799,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
1838
1799
|
}
|
|
1839
1800
|
}, 400));
|
|
1840
1801
|
}
|
|
1841
|
-
let F = p(() => r.fields.filter((e) =>
|
|
1802
|
+
let F = p(() => r.fields.filter((e) => u(e, r.formData, r.isEditing)));
|
|
1842
1803
|
function I(e) {
|
|
1843
1804
|
return r.disabled || e.readonly || e.computed || e.disabledOnEdit && r.isEditing ? !0 : typeof e.disabled == "function" ? e.disabled(r.formData, r.isEditing) : !!e.disabled;
|
|
1844
1805
|
}
|
|
@@ -1961,12 +1922,12 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
1961
1922
|
let t = (Q[e.field] ?? "").trim();
|
|
1962
1923
|
if (!t) return;
|
|
1963
1924
|
let n = r.formData[e.field], a = Array.isArray(n) ? n : [];
|
|
1964
|
-
Q[e.field] = "",
|
|
1925
|
+
Q[e.field] = "", a.some((e) => String(e) === t) || i("update:field", e.field, [...a, t]);
|
|
1965
1926
|
}
|
|
1966
1927
|
function je(e, t) {
|
|
1967
1928
|
if ((Q[e.field] ?? "") !== "") return;
|
|
1968
1929
|
let n = r.formData[e.field];
|
|
1969
|
-
|
|
1930
|
+
Array.isArray(n) && n.length && (t.preventDefault(), Se(e, n.length - 1));
|
|
1970
1931
|
}
|
|
1971
1932
|
function Me(e) {
|
|
1972
1933
|
let t = r.formData[e.field];
|
|
@@ -1991,15 +1952,10 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
1991
1952
|
}
|
|
1992
1953
|
function Ie() {
|
|
1993
1954
|
let e = [];
|
|
1994
|
-
for (let t of r.fields)
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
}
|
|
1999
|
-
if (typeof t.validate == "function") {
|
|
2000
|
-
let n = t.validate(r.formData[t.field], Ce());
|
|
2001
|
-
o[t.field] = n || null, n && e.push(n);
|
|
2002
|
-
}
|
|
1955
|
+
for (let t of r.fields) if (!u(t, r.formData, r.isEditing)) o[t.field] = null;
|
|
1956
|
+
else if (typeof t.validate == "function") {
|
|
1957
|
+
let n = t.validate(r.formData[t.field], Ce());
|
|
1958
|
+
o[t.field] = n || null, n && e.push(n);
|
|
2003
1959
|
}
|
|
2004
1960
|
return e;
|
|
2005
1961
|
}
|
|
@@ -2049,7 +2005,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2049
2005
|
field: a,
|
|
2050
2006
|
formData: e.formData,
|
|
2051
2007
|
isEditing: e.isEditing,
|
|
2052
|
-
fieldId:
|
|
2008
|
+
fieldId: l(a),
|
|
2053
2009
|
setFormField: (e, t) => i("update:field", e, t)
|
|
2054
2010
|
}, () => [a.type === "switch" ? (R(), g("div", {
|
|
2055
2011
|
key: 0,
|
|
@@ -2058,7 +2014,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2058
2014
|
}, [
|
|
2059
2015
|
x(G(De), {
|
|
2060
2016
|
"model-value": e.formData[a.field],
|
|
2061
|
-
"input-id":
|
|
2017
|
+
"input-id": l(a),
|
|
2062
2018
|
"aria-labelledby": f(a),
|
|
2063
2019
|
invalid: !!S(a),
|
|
2064
2020
|
pt: { input: { "aria-describedby": C(a) } },
|
|
@@ -2075,7 +2031,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2075
2031
|
]),
|
|
2076
2032
|
_("label", {
|
|
2077
2033
|
id: f(a),
|
|
2078
|
-
for:
|
|
2034
|
+
for: l(a),
|
|
2079
2035
|
class: "w-crud-form-switch-label"
|
|
2080
2036
|
}, W(a.switchLabel || a.label), 9, On),
|
|
2081
2037
|
a.hint ? (R(), g("small", {
|
|
@@ -2090,12 +2046,12 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2090
2046
|
}, [
|
|
2091
2047
|
_("label", {
|
|
2092
2048
|
id: f(a),
|
|
2093
|
-
for:
|
|
2049
|
+
for: l(a),
|
|
2094
2050
|
class: "w-crud-form-label"
|
|
2095
2051
|
}, [b(W(a.label) + " ", 1), a.required ? (R(), g("span", jn, " * ")) : h("", !0)], 8, An),
|
|
2096
2052
|
_("div", Mn, [x(G(Oe), {
|
|
2097
2053
|
"model-value": Me(a),
|
|
2098
|
-
"input-id": `${
|
|
2054
|
+
"input-id": `${l(a)}-picker`,
|
|
2099
2055
|
pt: { preview: { "aria-label": `${a.label} (seletor de cor)` } },
|
|
2100
2056
|
disabled: I(a),
|
|
2101
2057
|
"onUpdate:modelValue": (e) => Ne(a, e)
|
|
@@ -2206,7 +2162,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2206
2162
|
}, [
|
|
2207
2163
|
_("label", {
|
|
2208
2164
|
id: f(a),
|
|
2209
|
-
for:
|
|
2165
|
+
for: l(a),
|
|
2210
2166
|
class: "w-crud-form-label"
|
|
2211
2167
|
}, [
|
|
2212
2168
|
b(W(a.label) + " ", 1),
|
|
@@ -2271,7 +2227,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2271
2227
|
])) : a.type === "password" ? (R(), m(G(ke), {
|
|
2272
2228
|
key: 3,
|
|
2273
2229
|
"model-value": e.formData[a.field],
|
|
2274
|
-
"input-id":
|
|
2230
|
+
"input-id": l(a),
|
|
2275
2231
|
"input-props": w(a),
|
|
2276
2232
|
fluid: "",
|
|
2277
2233
|
"toggle-mask": "",
|
|
@@ -2292,7 +2248,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2292
2248
|
])) : a.type === "number" ? (R(), m(G(he), {
|
|
2293
2249
|
key: 4,
|
|
2294
2250
|
"model-value": e.formData[a.field],
|
|
2295
|
-
"input-id":
|
|
2251
|
+
"input-id": l(a),
|
|
2296
2252
|
pt: { pcInputText: { root: w(a) } },
|
|
2297
2253
|
fluid: "",
|
|
2298
2254
|
locale: "pt-BR",
|
|
@@ -2325,7 +2281,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2325
2281
|
])) : a.type === "currency" && a.fillFromRight ? (R(), m(Jt, {
|
|
2326
2282
|
key: 5,
|
|
2327
2283
|
"model-value": e.formData[a.field],
|
|
2328
|
-
"input-id":
|
|
2284
|
+
"input-id": l(a),
|
|
2329
2285
|
"input-attrs": w(a),
|
|
2330
2286
|
decimals: a.decimals ?? 2,
|
|
2331
2287
|
currency: "",
|
|
@@ -2349,7 +2305,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2349
2305
|
])) : a.type === "currency" ? (R(), m(G(he), {
|
|
2350
2306
|
key: 6,
|
|
2351
2307
|
"model-value": e.formData[a.field],
|
|
2352
|
-
"input-id":
|
|
2308
|
+
"input-id": l(a),
|
|
2353
2309
|
pt: { pcInputText: { root: w(a) } },
|
|
2354
2310
|
fluid: "",
|
|
2355
2311
|
mode: "currency",
|
|
@@ -2374,7 +2330,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2374
2330
|
])) : a.type === "select" ? (R(), m(G(ge), {
|
|
2375
2331
|
key: 7,
|
|
2376
2332
|
"model-value": e.formData[a.field],
|
|
2377
|
-
"label-id":
|
|
2333
|
+
"label-id": l(a),
|
|
2378
2334
|
"aria-labelledby": f(a),
|
|
2379
2335
|
pt: { label: w(a) },
|
|
2380
2336
|
fluid: "",
|
|
@@ -2402,7 +2358,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2402
2358
|
])) : a.type === "autocomplete" ? (R(), m(G(Ee), {
|
|
2403
2359
|
key: 8,
|
|
2404
2360
|
"model-value": ue(a),
|
|
2405
|
-
"input-id":
|
|
2361
|
+
"input-id": l(a),
|
|
2406
2362
|
pt: { pcInputText: { root: w(a) } },
|
|
2407
2363
|
fluid: "",
|
|
2408
2364
|
suggestions: J(a),
|
|
@@ -2428,7 +2384,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2428
2384
|
])) : a.type === "fk" ? (R(), m(Ut, {
|
|
2429
2385
|
key: 9,
|
|
2430
2386
|
"model-value": e.formData[a.field],
|
|
2431
|
-
"input-id":
|
|
2387
|
+
"input-id": l(a),
|
|
2432
2388
|
"input-attrs": w(a),
|
|
2433
2389
|
autofocus: re(a) || void 0,
|
|
2434
2390
|
endpoint: a.endpoint,
|
|
@@ -2479,7 +2435,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2479
2435
|
])) : a.type === "date" ? (R(), m(qt, {
|
|
2480
2436
|
key: 10,
|
|
2481
2437
|
"model-value": e.formData[a.field],
|
|
2482
|
-
"input-id":
|
|
2438
|
+
"input-id": l(a),
|
|
2483
2439
|
"input-attrs": w(a),
|
|
2484
2440
|
"value-format": "date",
|
|
2485
2441
|
autonow: a.autonow,
|
|
@@ -2503,7 +2459,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2503
2459
|
])) : a.type === "datetime" ? (R(), m(qt, {
|
|
2504
2460
|
key: 11,
|
|
2505
2461
|
"model-value": e.formData[a.field],
|
|
2506
|
-
"input-id":
|
|
2462
|
+
"input-id": l(a),
|
|
2507
2463
|
"input-attrs": w(a),
|
|
2508
2464
|
"value-format": "date",
|
|
2509
2465
|
"show-time": "",
|
|
@@ -2730,26 +2686,26 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2730
2686
|
"update:field",
|
|
2731
2687
|
"save"
|
|
2732
2688
|
],
|
|
2733
|
-
setup(e, { emit:
|
|
2734
|
-
let
|
|
2689
|
+
setup(e, { emit: n }) {
|
|
2690
|
+
let r = t(), i = e, a = n, o = B(null), s = B(null);
|
|
2735
2691
|
function c() {
|
|
2736
|
-
|
|
2692
|
+
o.value ? o.value.validateAll().length === 0 && a("save") : a("save");
|
|
2737
2693
|
}
|
|
2738
|
-
let { focusFirst: u, handleKeydown: d } =
|
|
2739
|
-
enabled: () =>
|
|
2694
|
+
let { focusFirst: u, handleKeydown: d } = l(s, {
|
|
2695
|
+
enabled: () => i.keyboardNav === !0,
|
|
2740
2696
|
onSubmit: c
|
|
2741
2697
|
});
|
|
2742
|
-
return q(() =>
|
|
2743
|
-
e &&
|
|
2744
|
-
}), (t,
|
|
2745
|
-
"append-to": G(
|
|
2698
|
+
return q(() => i.visible, (e) => {
|
|
2699
|
+
e && o.value && o.value.clearErrors();
|
|
2700
|
+
}), (t, n) => (R(), m(G(Ce), {
|
|
2701
|
+
"append-to": G(r)?.hostEl.value ?? "body",
|
|
2746
2702
|
visible: e.visible,
|
|
2747
2703
|
header: e.title,
|
|
2748
2704
|
style: N({ width: e.width }),
|
|
2749
2705
|
modal: "",
|
|
2750
2706
|
draggable: !1,
|
|
2751
2707
|
class: "w-crud-form-dialog",
|
|
2752
|
-
"onUpdate:visible":
|
|
2708
|
+
"onUpdate:visible": n[3] ||= (e) => a("update:visible", e),
|
|
2753
2709
|
onShow: G(u)
|
|
2754
2710
|
}, {
|
|
2755
2711
|
default: J(() => [_("form", {
|
|
@@ -2758,18 +2714,18 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2758
2714
|
class: j(["w-crud-form", { "w-crud-form--with-aside": t.$slots.aside }]),
|
|
2759
2715
|
style: N(e.asideWidth ? { "--w-form-aside": e.asideWidth } : void 0),
|
|
2760
2716
|
onSubmit: X(c, ["prevent"]),
|
|
2761
|
-
onKeydownCapture:
|
|
2717
|
+
onKeydownCapture: n[2] ||= (...e) => G(d) && G(d)(...e)
|
|
2762
2718
|
}, [
|
|
2763
2719
|
_("div", er, [x($n, {
|
|
2764
2720
|
ref_key: "rendererRef",
|
|
2765
|
-
ref:
|
|
2721
|
+
ref: o,
|
|
2766
2722
|
fields: e.fields,
|
|
2767
2723
|
"form-data": e.formData,
|
|
2768
2724
|
"is-editing": e.isEditing,
|
|
2769
2725
|
disabled: e.disabled,
|
|
2770
2726
|
columns: e.formColumns,
|
|
2771
2727
|
errors: e.errors,
|
|
2772
|
-
"onUpdate:field":
|
|
2728
|
+
"onUpdate:field": n[0] ||= (e, t) => a("update:field", e, t)
|
|
2773
2729
|
}, v({ _: 2 }, [V(e.fields, (e) => ({
|
|
2774
2730
|
name: `field-${e.field}`,
|
|
2775
2731
|
fn: J((n) => [H(t.$slots, `field-${e.field}`, M(w(n)))])
|
|
@@ -2801,7 +2757,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2801
2757
|
text: "",
|
|
2802
2758
|
disabled: e.saving,
|
|
2803
2759
|
"data-kbd-skip": "",
|
|
2804
|
-
onClick:
|
|
2760
|
+
onClick: n[1] ||= (e) => a("update:visible", !1)
|
|
2805
2761
|
}, null, 8, ["label", "disabled"]), e.disabled ? h("", !0) : (R(), m(G(Z), {
|
|
2806
2762
|
key: 0,
|
|
2807
2763
|
type: "submit",
|
|
@@ -2820,8 +2776,7 @@ var wn = { class: "w-crud-form" }, Tn = {
|
|
|
2820
2776
|
]));
|
|
2821
2777
|
}
|
|
2822
2778
|
});
|
|
2823
|
-
|
|
2824
|
-
//#region src/utils/csv.ts
|
|
2779
|
+
// src/utils/csv.ts
|
|
2825
2780
|
function ir(e, t) {
|
|
2826
2781
|
let n = t[e.field];
|
|
2827
2782
|
return e.format ? e.format(n, t) : n == null ? "" : typeof n == "boolean" ? n ? "Sim" : "Não" : String(n);
|
|
@@ -2837,8 +2792,7 @@ function sr(e, t = "export.csv") {
|
|
|
2837
2792
|
let n = new Blob([e], { type: "text/csv;charset=utf-8;" }), r = URL.createObjectURL(n), i = document.createElement("a");
|
|
2838
2793
|
i.href = r, i.download = t, document.body.appendChild(i), i.click(), document.body.removeChild(i), URL.revokeObjectURL(r);
|
|
2839
2794
|
}
|
|
2840
|
-
|
|
2841
|
-
//#region src/components/crud/WCrudView.vue?vue&type=script&setup=true&lang.ts
|
|
2795
|
+
// src/components/crud/WCrudView.vue?vue&type=script&setup=true&lang.ts
|
|
2842
2796
|
var cr = { class: "w-crud" }, lr = {
|
|
2843
2797
|
key: 0,
|
|
2844
2798
|
class: "w-crud-header"
|
|
@@ -2963,8 +2917,8 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
2963
2917
|
"print",
|
|
2964
2918
|
"row-click"
|
|
2965
2919
|
], ["update:selectedRow"]),
|
|
2966
|
-
setup(e, { expose:
|
|
2967
|
-
let i =
|
|
2920
|
+
setup(e, { expose: n, emit: r }) {
|
|
2921
|
+
let i = t(), a = e, s = r, c = ce(), { formatNumber: l } = o(), u = B({});
|
|
2968
2922
|
function f() {
|
|
2969
2923
|
return a.persistState ? `wcrud:view:${a.persistState}` : null;
|
|
2970
2924
|
}
|
|
@@ -3060,17 +3014,13 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3060
3014
|
tooltip: "Excluir",
|
|
3061
3015
|
severity: "danger"
|
|
3062
3016
|
}), e;
|
|
3063
|
-
}), De = p(() => a.crud.config.rowActions ?? Ee.value), Oe = p(() => De.value.length > 0 || !!
|
|
3017
|
+
}), De = p(() => a.crud.config.rowActions ?? Ee.value), Oe = p(() => De.value.length > 0 || !!c["row-actions"]), ke = p(() => `${(De.value.length + +!!c["row-actions"]) * 2.5 + 1}rem`);
|
|
3064
3018
|
function Ae(e) {
|
|
3065
3019
|
return e.tooltip ?? e.action;
|
|
3066
3020
|
}
|
|
3067
3021
|
let je = p(() => a.csvScope === "all" ? "Exportar tudo (CSV)" : "Exportar página (CSV)");
|
|
3068
3022
|
function Me(e, t) {
|
|
3069
|
-
|
|
3070
|
-
e.handler(t);
|
|
3071
|
-
return;
|
|
3072
|
-
}
|
|
3073
|
-
e.action === "edit" ? a.crud.openEditDialog(t) : e.action === "view" ? a.crud.openViewDialog(t) : e.action === "duplicate" ? a.crud.openDuplicateDialog(t) : e.action === "delete" && (s["delete-message"] ? (Ne.value = t, Pe.value = !0) : a.crud.confirmDelete(t));
|
|
3023
|
+
e.handler ? e.handler(t) : e.action === "edit" ? a.crud.openEditDialog(t) : e.action === "view" ? a.crud.openViewDialog(t) : e.action === "duplicate" ? a.crud.openDuplicateDialog(t) : e.action === "delete" && (c["delete-message"] ? (Ne.value = t, Pe.value = !0) : a.crud.confirmDelete(t));
|
|
3074
3024
|
}
|
|
3075
3025
|
let Ne = B(null), Pe = B(!1), Fe = B(!1);
|
|
3076
3026
|
async function Ie() {
|
|
@@ -3094,25 +3044,25 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3094
3044
|
return typeof e == "number" && e > 0 ? e : a.crud.items.value.length;
|
|
3095
3045
|
}), $ = p(() => {
|
|
3096
3046
|
let e = ze.value;
|
|
3097
|
-
return `${
|
|
3047
|
+
return `${l(e, 0)} ${e === 1 ? "registro" : "registros"}`;
|
|
3098
3048
|
}), Be = p(() => !a.hideCount), Ve = p(() => {
|
|
3099
3049
|
let e = [];
|
|
3100
3050
|
return a.showKpi && e.push({
|
|
3101
3051
|
icon: a.kpiIcon,
|
|
3102
3052
|
label: a.kpiLabel,
|
|
3103
|
-
value:
|
|
3053
|
+
value: l(a.crud.pagination.rows, 0)
|
|
3104
3054
|
}), e.push(...a.extraKpis), e;
|
|
3105
3055
|
}), He = p(() => a.crud.config.canCreate !== !1), Ue = K(e, "selectedRow"), We = p(() => a.crud.config.selectionMode === "multiple"), Ge = B(null);
|
|
3106
3056
|
function Ke(e) {
|
|
3107
3057
|
let t = a.crud.config.pk || "id", n = a.crud.items.value.findIndex((n) => n[t] === e);
|
|
3108
3058
|
if (n < 0) return;
|
|
3109
3059
|
let r = (Ge.value?.$el)?.querySelectorAll("tbody > tr");
|
|
3110
|
-
|
|
3060
|
+
r && r.length === a.crud.items.value.length && r[n]?.scrollIntoView({
|
|
3111
3061
|
block: "nearest",
|
|
3112
3062
|
behavior: "smooth"
|
|
3113
3063
|
});
|
|
3114
3064
|
}
|
|
3115
|
-
|
|
3065
|
+
n({ scrollToRow: Ke });
|
|
3116
3066
|
let qe = p(() => a.crud.config.editMode === "cell"), Je = p(() => new Map(a.crud.config.form.map((e) => [e.field, e]))), Ye = [
|
|
3117
3067
|
"text",
|
|
3118
3068
|
"email",
|
|
@@ -3145,59 +3095,45 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3145
3095
|
function at(e) {
|
|
3146
3096
|
Ue.value = e;
|
|
3147
3097
|
}
|
|
3148
|
-
let ot = p(() => a.crud.config.openOnRowClick === !0)
|
|
3149
|
-
|
|
3150
|
-
"a",
|
|
3151
|
-
"input",
|
|
3152
|
-
"select",
|
|
3153
|
-
"textarea",
|
|
3154
|
-
"label",
|
|
3155
|
-
"[role=\"button\"]",
|
|
3156
|
-
"[role=\"checkbox\"]",
|
|
3157
|
-
"[role=\"menu\"]",
|
|
3158
|
-
"[role=\"menuitem\"]",
|
|
3159
|
-
"[contenteditable]",
|
|
3160
|
-
"[data-p-selection-column=\"true\"]",
|
|
3161
|
-
"[data-p-cell-editing=\"true\"]"
|
|
3162
|
-
].join(",");
|
|
3163
|
-
function lt(e) {
|
|
3098
|
+
let ot = p(() => a.crud.config.openOnRowClick === !0);
|
|
3099
|
+
function ct(e) {
|
|
3164
3100
|
let t = e.target;
|
|
3165
|
-
return t instanceof Element && t.closest(
|
|
3101
|
+
return t instanceof Element && t.closest("button,a,input,select,textarea,label,[role=\"button\"],[role=\"checkbox\"],[role=\"menu\"],[role=\"menuitem\"],[contenteditable],[data-p-selection-column=\"true\"],[data-p-cell-editing=\"true\"]") !== null;
|
|
3166
3102
|
}
|
|
3167
|
-
let
|
|
3168
|
-
function
|
|
3169
|
-
if (a.crud.config.canEdit === !1 || a.crud.dialogVisible.value ||
|
|
3103
|
+
let lt = !1;
|
|
3104
|
+
function ut(e) {
|
|
3105
|
+
if (a.crud.config.canEdit === !1 || a.crud.dialogVisible.value || lt) return;
|
|
3170
3106
|
let t = a.crud.openEditDialog(e);
|
|
3171
|
-
t && (
|
|
3107
|
+
t && (lt = !0, t.finally(() => lt = !1));
|
|
3172
3108
|
}
|
|
3173
|
-
function
|
|
3174
|
-
|
|
3109
|
+
function dt(e, t) {
|
|
3110
|
+
ct(e) || e instanceof KeyboardEvent && e.key !== "Enter" || (s("row-click", t), ot.value || (Ue.value = t), ot.value && !qe.value && ut(t));
|
|
3175
3111
|
}
|
|
3176
|
-
let
|
|
3112
|
+
let ft = p(() => {
|
|
3177
3113
|
if (Ue.value) return Ue.value;
|
|
3178
3114
|
let e = a.crud.selectedItems.value;
|
|
3179
3115
|
return We.value && e.length === 1 ? e[0] : null;
|
|
3180
3116
|
});
|
|
3181
|
-
function
|
|
3117
|
+
function pt(e) {
|
|
3182
3118
|
let t = a.crud.config.pk || "id";
|
|
3183
3119
|
return We.value && Ue.value?.[t] === e[t] ? "p-datatable-row-selected" : void 0;
|
|
3184
3120
|
}
|
|
3185
|
-
function
|
|
3186
|
-
|
|
3121
|
+
function mt(e) {
|
|
3122
|
+
dt(e.originalEvent, e.data);
|
|
3187
3123
|
}
|
|
3188
|
-
function
|
|
3189
|
-
a.cardBare || (at(t),
|
|
3124
|
+
function ht(e, t) {
|
|
3125
|
+
a.cardBare || (at(t), dt(e, t));
|
|
3190
3126
|
}
|
|
3191
|
-
function
|
|
3192
|
-
a.cardBare || ot.value ||
|
|
3127
|
+
function gt(e) {
|
|
3128
|
+
a.cardBare || ot.value || ut(e);
|
|
3193
3129
|
}
|
|
3194
|
-
function
|
|
3130
|
+
function _t(e) {
|
|
3195
3131
|
a.contextMenu && (Ue.value = e.data, it.value?.show(e.originalEvent));
|
|
3196
3132
|
}
|
|
3197
|
-
function
|
|
3133
|
+
function vt(e, t) {
|
|
3198
3134
|
a.contextMenu && (e.preventDefault(), Ue.value = t, it.value?.show(e));
|
|
3199
3135
|
}
|
|
3200
|
-
let
|
|
3136
|
+
let yt = p(() => {
|
|
3201
3137
|
let e = Ue.value;
|
|
3202
3138
|
if (!e) return [];
|
|
3203
3139
|
let t = [{
|
|
@@ -3215,45 +3151,45 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3215
3151
|
return a.showPrint && t.push({
|
|
3216
3152
|
label: "Imprimir",
|
|
3217
3153
|
icon: "pi pi-print",
|
|
3218
|
-
command: () =>
|
|
3154
|
+
command: () => s("print", e)
|
|
3219
3155
|
}), a.exportCsv && (t.push({ separator: !0 }), t.push({
|
|
3220
3156
|
label: a.csvScope === "all" ? "Exportar tudo (CSV)" : "Exportar página (CSV)",
|
|
3221
3157
|
icon: "pi pi-download",
|
|
3222
|
-
command: () =>
|
|
3158
|
+
command: () => St()
|
|
3223
3159
|
})), t;
|
|
3224
3160
|
});
|
|
3225
|
-
function
|
|
3226
|
-
|
|
3161
|
+
function bt() {
|
|
3162
|
+
ft.value && s("print", ft.value);
|
|
3227
3163
|
}
|
|
3228
|
-
let
|
|
3229
|
-
async function
|
|
3230
|
-
if (!
|
|
3231
|
-
|
|
3164
|
+
let xt = B(!1);
|
|
3165
|
+
async function St() {
|
|
3166
|
+
if (!xt.value) {
|
|
3167
|
+
xt.value = !0;
|
|
3232
3168
|
try {
|
|
3233
3169
|
sr(or(a.csvScope === "page" ? a.crud.items.value : await a.crud.fetchAll(a.csvPageSize), Q.value), a.csvFilename);
|
|
3234
3170
|
} finally {
|
|
3235
|
-
|
|
3171
|
+
xt.value = !1;
|
|
3236
3172
|
}
|
|
3237
3173
|
}
|
|
3238
3174
|
}
|
|
3239
|
-
function
|
|
3175
|
+
function Ct(e) {
|
|
3240
3176
|
if (!e) return;
|
|
3241
3177
|
let t = /(?:^|;)\s*min-width\s*:\s*([^;!]+)/i.exec(e)?.[1], n = /(?:^|;)\s*width\s*:\s*([^;!]+)/i.exec(e)?.[1];
|
|
3242
3178
|
return (t ?? n)?.trim();
|
|
3243
3179
|
}
|
|
3244
|
-
let
|
|
3245
|
-
function
|
|
3246
|
-
return [we(e), e.field ===
|
|
3180
|
+
let wt = p(() => (Q.value.find((e) => !Ct(e.style)) ?? Q.value[0])?.field);
|
|
3181
|
+
function Tt(e) {
|
|
3182
|
+
return [we(e), e.field === wt.value ? "w-crud-col-title" : ""].filter(Boolean).join(" ");
|
|
3247
3183
|
}
|
|
3248
|
-
let
|
|
3184
|
+
let Et = p(() => {
|
|
3249
3185
|
let e = [];
|
|
3250
3186
|
We.value && e.push("var(--w-col-narrow)"), a.expandable && e.push("var(--w-col-narrow)");
|
|
3251
3187
|
for (let t of Q.value) {
|
|
3252
|
-
let n =
|
|
3253
|
-
t.field ===
|
|
3188
|
+
let n = Ct(t.style);
|
|
3189
|
+
t.field === wt.value ? n ? e.push(`max(var(--w-col-title-min), ${n})`) : e.push("var(--w-col-title-min)") : e.push(n ?? "var(--w-col-min)");
|
|
3254
3190
|
}
|
|
3255
3191
|
return Oe.value && !a.actionRail && e.push(ke.value), e.length ? `calc(${e.join(" + ")})` : void 0;
|
|
3256
|
-
}),
|
|
3192
|
+
}), Dt = p(() => Et.value ? { "--w-crud-min": Et.value } : void 0);
|
|
3257
3193
|
return I(() => {
|
|
3258
3194
|
ae(), le(), a.autoInit && a.crud.init();
|
|
3259
3195
|
}), (t, n) => {
|
|
@@ -3284,7 +3220,7 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3284
3220
|
}, [O ? (R(), g("div", br, [_("div", {
|
|
3285
3221
|
ref_key: "sonda",
|
|
3286
3222
|
ref: D,
|
|
3287
|
-
style: N({ width:
|
|
3223
|
+
style: N({ width: Et.value ?? "0" })
|
|
3288
3224
|
}, null, 4)])) : h("", !0), L("table") ? (R(), g("div", xr, [We.value && e.crud.selectedItems.value.length ? (R(), g("div", Sr, [
|
|
3289
3225
|
_("span", Cr, W(e.crud.selectedItems.value.length) + " selecionado(s) ", 1),
|
|
3290
3226
|
H(t.$slots, "bulk-actions", {
|
|
@@ -3343,7 +3279,7 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3343
3279
|
"sort-field": e.crud.sort.field ?? void 0,
|
|
3344
3280
|
"sort-order": e.crud.sort.order,
|
|
3345
3281
|
"data-key": e.crud.config.pk || "id",
|
|
3346
|
-
"table-style":
|
|
3282
|
+
"table-style": Dt.value,
|
|
3347
3283
|
"edit-mode": qe.value ? "cell" : void 0,
|
|
3348
3284
|
selection: We.value ? e.crud.selectedItems.value : e.actionRail || e.contextMenu ? Ue.value : void 0,
|
|
3349
3285
|
"selection-mode": We.value ? void 0 : e.actionRail || e.contextMenu ? "single" : void 0,
|
|
@@ -3351,16 +3287,16 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3351
3287
|
"context-menu-selection": e.contextMenu ? Ue.value : void 0,
|
|
3352
3288
|
"onUpdate:selection": n[8] ||= (t) => We.value ? e.crud.selectedItems.value = t : Ue.value = t,
|
|
3353
3289
|
"onUpdate:contextMenuSelection": n[9] ||= (e) => Ue.value = e,
|
|
3354
|
-
onRowContextmenu:
|
|
3355
|
-
"row-class":
|
|
3356
|
-
onRowClick:
|
|
3290
|
+
onRowContextmenu: _t,
|
|
3291
|
+
"row-class": pt,
|
|
3292
|
+
onRowClick: mt,
|
|
3357
3293
|
onPage: e.crud.onPage,
|
|
3358
3294
|
onSort: n[10] ||= (t) => e.crud.onSort({
|
|
3359
3295
|
sortField: t.sortField,
|
|
3360
3296
|
sortOrder: t.sortOrder
|
|
3361
3297
|
}),
|
|
3362
|
-
onRowExpand: n[11] ||= (e) =>
|
|
3363
|
-
onRowCollapse: n[12] ||= (e) =>
|
|
3298
|
+
onRowExpand: n[11] ||= (e) => s("row-expand", e.data),
|
|
3299
|
+
onRowCollapse: n[12] ||= (e) => s("row-collapse", e.data),
|
|
3364
3300
|
onCellEditComplete: Ze
|
|
3365
3301
|
}, v({
|
|
3366
3302
|
header: J(() => [_("div", wr, [_("div", Tr, [
|
|
@@ -3490,8 +3426,8 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3490
3426
|
"aria-label": je.value,
|
|
3491
3427
|
text: "",
|
|
3492
3428
|
size: "small",
|
|
3493
|
-
loading:
|
|
3494
|
-
onClick:
|
|
3429
|
+
loading: xt.value,
|
|
3430
|
+
onClick: St
|
|
3495
3431
|
}, null, 8, ["aria-label", "loading"])), [[
|
|
3496
3432
|
r,
|
|
3497
3433
|
je.value,
|
|
@@ -3562,8 +3498,8 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3562
3498
|
header: e.header,
|
|
3563
3499
|
sortable: e.sortable,
|
|
3564
3500
|
style: N(e.style),
|
|
3565
|
-
"header-class":
|
|
3566
|
-
"body-class":
|
|
3501
|
+
"header-class": Tt(e),
|
|
3502
|
+
"body-class": Tt(e)
|
|
3567
3503
|
}, v({
|
|
3568
3504
|
body: J(({ data: n }) => [H(t.$slots, `column-${e.field}`, {
|
|
3569
3505
|
data: n,
|
|
@@ -3752,8 +3688,8 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3752
3688
|
"aria-label": je.value,
|
|
3753
3689
|
text: "",
|
|
3754
3690
|
size: "small",
|
|
3755
|
-
loading:
|
|
3756
|
-
onClick:
|
|
3691
|
+
loading: xt.value,
|
|
3692
|
+
onClick: St
|
|
3757
3693
|
}, null, 8, ["aria-label", "loading"])), [[
|
|
3758
3694
|
r,
|
|
3759
3695
|
je.value,
|
|
@@ -3811,9 +3747,9 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3811
3747
|
key: n[e.crud.config.pk || "id"] ?? i,
|
|
3812
3748
|
role: "listitem",
|
|
3813
3749
|
class: j(e.cardBare ? "w-crud-card-bare" : ["w-crud-card", { "w-crud-card--selected": Ue.value === n }]),
|
|
3814
|
-
onClick: (e) =>
|
|
3815
|
-
onDblclick: (e) =>
|
|
3816
|
-
onContextmenu: (t) => !e.cardBare &&
|
|
3750
|
+
onClick: (e) => ht(e, n),
|
|
3751
|
+
onDblclick: (e) => gt(n),
|
|
3752
|
+
onContextmenu: (t) => !e.cardBare && vt(t, n)
|
|
3817
3753
|
}, [H(t.$slots, "card", {
|
|
3818
3754
|
data: n,
|
|
3819
3755
|
crud: e.crud,
|
|
@@ -3892,15 +3828,15 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3892
3828
|
{ left: !0 }
|
|
3893
3829
|
]]) : h("", !0),
|
|
3894
3830
|
He.value && De.value.length ? (R(), g("div", Kr)) : h("", !0),
|
|
3895
|
-
(R(!0), g(d, null, V(De.value, (e) => (R(), g(d, { key: e.action }, [!
|
|
3831
|
+
(R(!0), g(d, null, V(De.value, (e) => (R(), g(d, { key: e.action }, [!ft.value || Le(e, ft.value) ? Y((R(), m(G(Z), {
|
|
3896
3832
|
key: 0,
|
|
3897
3833
|
icon: e.icon,
|
|
3898
3834
|
"aria-label": Ae(e),
|
|
3899
3835
|
text: "",
|
|
3900
3836
|
rounded: "",
|
|
3901
3837
|
severity: e.severity,
|
|
3902
|
-
disabled: !
|
|
3903
|
-
onClick: (t) =>
|
|
3838
|
+
disabled: !ft.value || Re(e, ft.value),
|
|
3839
|
+
onClick: (t) => ft.value && Me(e, ft.value)
|
|
3904
3840
|
}, null, 8, [
|
|
3905
3841
|
"icon",
|
|
3906
3842
|
"aria-label",
|
|
@@ -3914,7 +3850,7 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3914
3850
|
{ left: !0 }
|
|
3915
3851
|
]]) : h("", !0)], 64))), 128)),
|
|
3916
3852
|
H(t.$slots, "rail-actions", {
|
|
3917
|
-
selected:
|
|
3853
|
+
selected: ft.value,
|
|
3918
3854
|
crud: e.crud
|
|
3919
3855
|
}),
|
|
3920
3856
|
e.showPrint || e.exportCsv ? (R(), g("div", qr)) : h("", !0),
|
|
@@ -3924,8 +3860,8 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3924
3860
|
"aria-label": "Imprimir",
|
|
3925
3861
|
text: "",
|
|
3926
3862
|
rounded: "",
|
|
3927
|
-
disabled: !
|
|
3928
|
-
onClick:
|
|
3863
|
+
disabled: !ft.value,
|
|
3864
|
+
onClick: bt
|
|
3929
3865
|
}, null, 8, ["disabled"])), [[
|
|
3930
3866
|
r,
|
|
3931
3867
|
"Imprimir",
|
|
@@ -3938,8 +3874,8 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3938
3874
|
"aria-label": je.value,
|
|
3939
3875
|
text: "",
|
|
3940
3876
|
rounded: "",
|
|
3941
|
-
loading:
|
|
3942
|
-
onClick:
|
|
3877
|
+
loading: xt.value,
|
|
3878
|
+
onClick: St
|
|
3943
3879
|
}, null, 8, ["aria-label", "loading"])), [[
|
|
3944
3880
|
r,
|
|
3945
3881
|
je.value,
|
|
@@ -3951,7 +3887,7 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
3951
3887
|
key: 1,
|
|
3952
3888
|
ref_key: "cm",
|
|
3953
3889
|
ref: it,
|
|
3954
|
-
model:
|
|
3890
|
+
model: yt.value
|
|
3955
3891
|
}, null, 8, ["model"])) : h("", !0),
|
|
3956
3892
|
H(t.$slots, "form-dialog", {
|
|
3957
3893
|
crud: e.crud,
|
|
@@ -4128,7 +4064,7 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
4128
4064
|
"remove"
|
|
4129
4065
|
],
|
|
4130
4066
|
setup(e, { emit: t }) {
|
|
4131
|
-
let n = e,
|
|
4067
|
+
let n = e, r = t, { formatNumber: i } = o(), a = B(null), s = B(null), { estreito: c } = Qe(a, s), l = p(() => n.cardMode === "always" || n.cardMode !== "never" && c.value), u = p(() => n.columns.find((e) => e.card === "title")?.field ?? n.columns[0]?.field);
|
|
4132
4068
|
function f(e, t) {
|
|
4133
4069
|
let n = (typeof e.card == "function" ? e.card(t) : e.card) ?? (e.field === u.value ? "title" : "field");
|
|
4134
4070
|
return n === "title" && e.field !== u.value ? "field" : n;
|
|
@@ -4180,20 +4116,20 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
4180
4116
|
}
|
|
4181
4117
|
function te(e, t) {
|
|
4182
4118
|
let n = t[e.field];
|
|
4183
|
-
return e.format ? e.format(n, t) : ne(n) ? "—" : w(e) ? `${
|
|
4119
|
+
return e.format ? e.format(n, t) : ne(n) ? "—" : w(e) ? `${i(L(n), e.decimals ?? 2)}${e.suffix ?? ""}` : `${String(n)}${e.suffix ?? ""}`;
|
|
4184
4120
|
}
|
|
4185
4121
|
function ne(e) {
|
|
4186
4122
|
return e == null || e === "";
|
|
4187
4123
|
}
|
|
4188
|
-
function z(e, t,
|
|
4189
|
-
let a = n.modelValue.map((n,
|
|
4124
|
+
function z(e, t, i) {
|
|
4125
|
+
let a = n.modelValue.map((n, r) => r === e ? {
|
|
4190
4126
|
...n,
|
|
4191
|
-
[t]:
|
|
4127
|
+
[t]: i
|
|
4192
4128
|
} : n);
|
|
4193
|
-
|
|
4129
|
+
r("update:modelValue", a);
|
|
4194
4130
|
}
|
|
4195
4131
|
function re(e, t) {
|
|
4196
|
-
|
|
4132
|
+
r("update:modelValue", n.modelValue.filter((e, n) => n !== t)), y.value = /* @__PURE__ */ new Set(), r("remove", e, t);
|
|
4197
4133
|
}
|
|
4198
4134
|
function U(e, t) {
|
|
4199
4135
|
if (n.rowKey) {
|
|
@@ -4214,11 +4150,11 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
4214
4150
|
let e = document.activeElement;
|
|
4215
4151
|
if (!(e instanceof HTMLInputElement || e instanceof HTMLTextAreaElement)) return;
|
|
4216
4152
|
let t = e.closest("td[data-field]");
|
|
4217
|
-
if (!t || t.closest(".w-editable-table") !==
|
|
4153
|
+
if (!t || t.closest(".w-editable-table") !== a.value) return;
|
|
4218
4154
|
let r = t.dataset.field, i = t.closest("tbody[data-row-key]")?.dataset.rowKey;
|
|
4219
4155
|
if (r == null || i == null) return;
|
|
4220
|
-
let
|
|
4221
|
-
Object.is(
|
|
4156
|
+
let o = se(ie, i, r);
|
|
4157
|
+
Object.is(o, se(n.modelValue, i, r)) && (oe = {
|
|
4222
4158
|
el: e,
|
|
4223
4159
|
value: e.value,
|
|
4224
4160
|
start: e.selectionStart,
|
|
@@ -4227,7 +4163,7 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
4227
4163
|
}), ee(() => {
|
|
4228
4164
|
ae();
|
|
4229
4165
|
let e = oe;
|
|
4230
|
-
if (oe = null,
|
|
4166
|
+
if (oe = null, e && e.el.isConnected && document.activeElement === e.el && e.el.value !== e.value) {
|
|
4231
4167
|
e.el.value = e.value;
|
|
4232
4168
|
try {
|
|
4233
4169
|
e.start != null && e.end != null && e.el.setSelectionRange(e.start, e.end);
|
|
@@ -4239,7 +4175,7 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
4239
4175
|
if (typeof e.footer == "function") return e.footer(n.modelValue);
|
|
4240
4176
|
if (e.footer !== "sum") return "";
|
|
4241
4177
|
let t = n.modelValue.reduce((t, n) => t + L(n[e.field]), 0);
|
|
4242
|
-
return `${
|
|
4178
|
+
return `${i(t, e.decimals ?? 2)}${e.suffix ?? ""}`;
|
|
4243
4179
|
}
|
|
4244
4180
|
function le(e) {
|
|
4245
4181
|
return typeof e.footer == "function" || e.footer === "sum";
|
|
@@ -4264,7 +4200,7 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
4264
4200
|
});
|
|
4265
4201
|
return (t, n) => (R(), g("div", {
|
|
4266
4202
|
ref_key: "raiz",
|
|
4267
|
-
ref:
|
|
4203
|
+
ref: a,
|
|
4268
4204
|
class: j(["w-editable-table", { "w-editable-table--cards": l.value }])
|
|
4269
4205
|
}, [
|
|
4270
4206
|
t.$slots.toolbar || t.$slots["toolbar-extra"] || e.addLabel ? (R(), g("div", Xr, [H(t.$slots, "toolbar", {}, () => [e.addLabel ? (R(), g("button", {
|
|
@@ -4272,7 +4208,7 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
4272
4208
|
type: "button",
|
|
4273
4209
|
class: "w-editable-table__add",
|
|
4274
4210
|
disabled: e.disabled,
|
|
4275
|
-
onClick: n[0] ||= (e) =>
|
|
4211
|
+
onClick: n[0] ||= (e) => r("add")
|
|
4276
4212
|
}, [n[1] ||= _("i", { class: "pi pi-plus" }, null, -1), b(W(e.addLabel), 1)], 8, Zr)) : h("", !0)]), H(t.$slots, "toolbar-extra")])) : h("", !0),
|
|
4277
4213
|
e.cardMode === "auto" ? (R(), g("div", Qr, [_("div", {
|
|
4278
4214
|
ref_key: "sonda",
|
|
@@ -4660,13 +4596,7 @@ var cr = { class: "w-crud" }, lr = {
|
|
|
4660
4596
|
let t = e.target, i = Array.from(t.files || []);
|
|
4661
4597
|
t.value = "";
|
|
4662
4598
|
let o = [];
|
|
4663
|
-
for (let e of i) {
|
|
4664
|
-
if (e.size > n.maxSize) {
|
|
4665
|
-
r("error", `"${e.name}" acima do limite de ${(n.maxSize / 1048576).toFixed(1)}MB.`);
|
|
4666
|
-
continue;
|
|
4667
|
-
}
|
|
4668
|
-
o.push(e);
|
|
4669
|
-
}
|
|
4599
|
+
for (let e of i) e.size > n.maxSize ? r("error", `"${e.name}" acima do limite de ${(n.maxSize / 1048576).toFixed(1)}MB.`) : o.push(e);
|
|
4670
4600
|
o.length && r("update:modelValue", n.multiple ? [...a.value, ...o] : o[0]);
|
|
4671
4601
|
}
|
|
4672
4602
|
function c(e) {
|
|
@@ -4824,8 +4754,7 @@ function ta(e, t, n) {
|
|
|
4824
4754
|
for (let e of t) a.has(e) || (a.add(e), i.push(e));
|
|
4825
4755
|
return i;
|
|
4826
4756
|
}
|
|
4827
|
-
|
|
4828
|
-
//#region src/components/form/WTreeSelect.vue?vue&type=script&setup=true&lang.ts
|
|
4757
|
+
// src/components/form/WTreeSelect.vue?vue&type=script&setup=true&lang.ts
|
|
4829
4758
|
var na = {
|
|
4830
4759
|
key: 0,
|
|
4831
4760
|
class: "w-tree-select__head"
|
|
@@ -5192,8 +5121,7 @@ function ga(e) {
|
|
|
5192
5121
|
series: Array.isArray(t) ? t.map(n) : n(t)
|
|
5193
5122
|
};
|
|
5194
5123
|
}
|
|
5195
|
-
|
|
5196
|
-
//#region src/components/charts/WChart.vue?vue&type=script&setup=true&lang.ts
|
|
5124
|
+
// src/components/charts/WChart.vue?vue&type=script&setup=true&lang.ts
|
|
5197
5125
|
var _a = {
|
|
5198
5126
|
key: 0,
|
|
5199
5127
|
class: "w-chart__empty"
|
|
@@ -5240,13 +5168,7 @@ var _a = {
|
|
|
5240
5168
|
a.value && (n.loading ? a.value.showLoading("default", pa()) : a.value.hideLoading());
|
|
5241
5169
|
}, p = async () => {
|
|
5242
5170
|
let e = await la();
|
|
5243
|
-
|
|
5244
|
-
if (!e) {
|
|
5245
|
-
o.value = !0;
|
|
5246
|
-
return;
|
|
5247
|
-
}
|
|
5248
|
-
o.value = !1, d(), a.value = e.init(i.value, n.print ? fa() : da(), { renderer: n.print ? "svg" : n.renderer }), a.value.on("click", u), l(), f();
|
|
5249
|
-
}
|
|
5171
|
+
i.value && (e ? (o.value = !1, d(), a.value = e.init(i.value, n.print ? fa() : da(), { renderer: n.print ? "svg" : n.renderer }), a.value.on("click", u), l(), f()) : o.value = !0);
|
|
5250
5172
|
};
|
|
5251
5173
|
return q(() => n.option, l, { deep: !0 }), q(() => n.loading, f), q(() => n.clickable, l), q([() => n.print, () => n.renderer], () => void p()), I(() => {
|
|
5252
5174
|
p(), s = new ResizeObserver(() => a.value?.resize()), i.value && s.observe(i.value), c = new MutationObserver(() => void p()), c.observe(document.documentElement, { attributes: !0 });
|
|
@@ -5506,22 +5428,22 @@ var _a = {
|
|
|
5506
5428
|
variant: { default: "default" }
|
|
5507
5429
|
},
|
|
5508
5430
|
setup(e) {
|
|
5509
|
-
let { formatCurrency: t, formatDate: n, formatNumber:
|
|
5510
|
-
function
|
|
5511
|
-
let
|
|
5512
|
-
return
|
|
5431
|
+
let { formatCurrency: t, formatDate: n, formatNumber: r } = o();
|
|
5432
|
+
function i(e) {
|
|
5433
|
+
let i = e.value;
|
|
5434
|
+
return i == null || i === "" ? "-" : e.format === "currency" ? t(Number(i)) : e.format === "date" ? n(String(i)) : e.format === "datetime" ? n(String(i), "DD/MM/YYYY HH:mm") : e.format === "number" ? r(Number(i), e.decimals ?? 2) : String(i);
|
|
5513
5435
|
}
|
|
5514
5436
|
return (t, n) => (R(), g("div", { class: j(["w-info-card", `w-info-card--${e.variant}`]) }, [e.title ? (R(), g("h3", za, W(e.title), 1)) : h("", !0), e.variant === "metric" ? (R(), g("div", Ba, [(R(!0), g(d, null, V(e.fields, (e) => (R(), g("div", {
|
|
5515
5437
|
key: e.label,
|
|
5516
5438
|
class: "w-info-card-metric"
|
|
5517
5439
|
}, [
|
|
5518
5440
|
_("span", Va, W(e.label), 1),
|
|
5519
|
-
_("span", Ha, W(
|
|
5441
|
+
_("span", Ha, W(i(e)), 1),
|
|
5520
5442
|
e.suffix ? (R(), g("span", Ua, W(e.suffix), 1)) : h("", !0)
|
|
5521
5443
|
]))), 128))])) : (R(), g("div", Wa, [(R(!0), g(d, null, V(e.fields, (e) => (R(), g("div", {
|
|
5522
5444
|
key: e.label,
|
|
5523
5445
|
class: "w-info-card-field"
|
|
5524
|
-
}, [_("span", Ga, W(e.label), 1), _("span", Ka, W(
|
|
5446
|
+
}, [_("span", Ga, W(e.label), 1), _("span", Ka, W(i(e)), 1)]))), 128))]))], 2));
|
|
5525
5447
|
}
|
|
5526
5448
|
}), Ja = (e) => e.replace(/-(\w)/g, (e, t) => t.toUpperCase()), Ya = (e) => e.charAt(0).toUpperCase() + e.slice(1);
|
|
5527
5449
|
function Xa(e, t) {
|
|
@@ -5533,7 +5455,7 @@ function Xa(e, t) {
|
|
|
5533
5455
|
}
|
|
5534
5456
|
function Za(e) {
|
|
5535
5457
|
let t = C(), n = (t) => {
|
|
5536
|
-
t.target === t.currentTarget && (t.key === "Enter" || t.key === " ") && (t.preventDefault(),
|
|
5458
|
+
t.target === t.currentTarget && (t.key === "Enter" || t.key === " ") && (t.preventDefault(), t.key === " " && t.repeat || e(t));
|
|
5537
5459
|
};
|
|
5538
5460
|
function r(r) {
|
|
5539
5461
|
return r != null && r !== "" ? {
|
|
@@ -5573,8 +5495,7 @@ function eo(e) {
|
|
|
5573
5495
|
area: `0,24 ${o} 100,24`
|
|
5574
5496
|
};
|
|
5575
5497
|
}
|
|
5576
|
-
|
|
5577
|
-
//#region src/components/ui/WKpiCard.vue?vue&type=script&setup=true&lang.ts
|
|
5498
|
+
// src/components/ui/WKpiCard.vue?vue&type=script&setup=true&lang.ts
|
|
5578
5499
|
var to = {
|
|
5579
5500
|
key: 0,
|
|
5580
5501
|
class: "w-kpi-card__loading"
|
|
@@ -5738,13 +5659,11 @@ var to = {
|
|
|
5738
5659
|
]))), 128))])], 10, _o));
|
|
5739
5660
|
}
|
|
5740
5661
|
});
|
|
5741
|
-
|
|
5742
|
-
//#region src/utils/meter.ts
|
|
5662
|
+
// src/utils/meter.ts
|
|
5743
5663
|
function xo({ value: e, goal: t, expected: n }) {
|
|
5744
5664
|
return t == null || t <= 0 ? "neutral" : n != null && n > 0 ? e >= n ? "success" : e >= n * .9 ? "warning" : "danger" : e >= t ? "success" : "primary";
|
|
5745
5665
|
}
|
|
5746
|
-
|
|
5747
|
-
//#region src/components/ui/WMeter.vue?vue&type=script&setup=true&lang.ts
|
|
5666
|
+
// src/components/ui/WMeter.vue?vue&type=script&setup=true&lang.ts
|
|
5748
5667
|
var So = { class: "w-meter__header" }, Co = { class: "w-meter__label" }, wo = {
|
|
5749
5668
|
key: 0,
|
|
5750
5669
|
class: "w-meter__percent"
|
|
@@ -5781,7 +5700,7 @@ var So = { class: "w-meter__header" }, Co = { class: "w-meter__label" }, wo = {
|
|
|
5781
5700
|
},
|
|
5782
5701
|
emits: ["click"],
|
|
5783
5702
|
setup(e, { emit: t }) {
|
|
5784
|
-
let n = e,
|
|
5703
|
+
let n = e, r = t, { binding: i } = Za((e) => r("click", e)), a = () => i(n.to), { formatCurrency: s, formatCurrencyCompact: c, formatNumber: l, formatNumberCompact: u } = o(), f = (e) => +!Number.isInteger(e);
|
|
5785
5704
|
function v(e) {
|
|
5786
5705
|
let t = n.notation === "compact";
|
|
5787
5706
|
return n.format === "currency" ? t ? c(e) : s(e) : n.format === "percent" ? `${l(e, f(e))}%` : t ? u(e) : l(e, f(e));
|
|
@@ -5795,9 +5714,9 @@ var So = { class: "w-meter__header" }, Co = { class: "w-meter__label" }, wo = {
|
|
|
5795
5714
|
goal: n.goal,
|
|
5796
5715
|
expected: n.expected
|
|
5797
5716
|
})), P = B(!1);
|
|
5798
|
-
return I(() => requestAnimationFrame(() => P.value = !0)), (t, n) => (R(), m(U(
|
|
5717
|
+
return I(() => requestAnimationFrame(() => P.value = !0)), (t, n) => (R(), m(U(a().is), k(a().attrs, { class: ["w-meter", [`w-meter--${M.value}`, {
|
|
5799
5718
|
"w-meter--compact": e.size === "compact",
|
|
5800
|
-
"w-meter--interactive":
|
|
5719
|
+
"w-meter--interactive": a().interactive
|
|
5801
5720
|
}]] }), {
|
|
5802
5721
|
default: J(() => [
|
|
5803
5722
|
_("div", So, [_("span", Co, W(e.label), 1), y.value ? (R(), g("span", wo, W(E.value), 1)) : h("", !0)]),
|
|
@@ -6160,8 +6079,7 @@ var So = { class: "w-meter__header" }, Co = { class: "w-meter__label" }, wo = {
|
|
|
6160
6079
|
], 8, Es), t.$slots.actions ? (R(), g("div", As, [H(t.$slots, "actions", { open: i.value })])) : h("", !0)]), i.value ? (R(), g(d, { key: 0 }, [_("div", js, [H(t.$slots, "default")]), t.$slots.footer ? (R(), g("div", Ms, [H(t.$slots, "footer")])) : h("", !0)], 64)) : h("", !0)])])], 2));
|
|
6161
6080
|
}
|
|
6162
6081
|
});
|
|
6163
|
-
|
|
6164
|
-
//#region src/utils/initials.ts
|
|
6082
|
+
// src/utils/initials.ts
|
|
6165
6083
|
function Ws(e) {
|
|
6166
6084
|
let t = (e ?? "").trim().split(/\s+/).filter(Boolean);
|
|
6167
6085
|
return t.length === 0 ? "" : (t[0].charAt(0) + (t.length > 1 ? t[t.length - 1].charAt(0) : "")).toUpperCase();
|
|
@@ -6171,8 +6089,7 @@ function Gs(e, t = 6) {
|
|
|
6171
6089
|
for (let e = 0; e < n.length; e++) r = r * 31 + n.charCodeAt(e) >>> 0;
|
|
6172
6090
|
return r % t + 1;
|
|
6173
6091
|
}
|
|
6174
|
-
|
|
6175
|
-
//#region src/components/ui/WAvatar.vue?vue&type=script&setup=true&lang.ts
|
|
6092
|
+
// src/components/ui/WAvatar.vue?vue&type=script&setup=true&lang.ts
|
|
6176
6093
|
var Ks = ["aria-label"], qs = ["src"], Js = {
|
|
6177
6094
|
key: 2,
|
|
6178
6095
|
class: "pi pi-user",
|
|
@@ -6505,7 +6422,7 @@ var Ks = ["aria-label"], qs = ["src"], Js = {
|
|
|
6505
6422
|
M(e) || F(o.value.has(e.key) ? O([e.key]) : D([e.key]));
|
|
6506
6423
|
}
|
|
6507
6424
|
function L(e) {
|
|
6508
|
-
|
|
6425
|
+
t.selectable && e.selectableKeys.length !== 0 && F(e.checked ? O(e.rowKeys) : D(e.selectableKeys));
|
|
6509
6426
|
}
|
|
6510
6427
|
function ee() {
|
|
6511
6428
|
F(w.value ? O(S.value) : D(y.value));
|
|
@@ -6640,8 +6557,7 @@ function Gc(e, t, n, r = Uc) {
|
|
|
6640
6557
|
let i = e.largura * r, a = e.altura * r;
|
|
6641
6558
|
return Wc(t, i, a) ? "completo" : Wc(n, i, a) ? "curto" : "oculto";
|
|
6642
6559
|
}
|
|
6643
|
-
|
|
6644
|
-
//#region src/components/ui/WMapSelect.vue?vue&type=script&setup=true&lang.ts
|
|
6560
|
+
// src/components/ui/WMapSelect.vue?vue&type=script&setup=true&lang.ts
|
|
6645
6561
|
var Kc = { class: "w-map-select__body" }, qc = {
|
|
6646
6562
|
key: 0,
|
|
6647
6563
|
class: "w-map-select__fallback"
|
|
@@ -6760,55 +6676,55 @@ var Kc = { class: "w-map-select__body" }, qc = {
|
|
|
6760
6676
|
"update:collapsed"
|
|
6761
6677
|
],
|
|
6762
6678
|
setup(e, { expose: t, emit: n }) {
|
|
6763
|
-
let
|
|
6679
|
+
let r = e, i = n, a = ce(), { formatNumber: s } = o(), c = p(() => r.layout === "sobreposto"), l = p(() => !r.readonly && (!!a.footer || r.areaLabel !== "")), u = p(() => r.readonly && r.mapErrorMessage === gl ? _l : r.mapErrorMessage), f = B(!1), m = p(() => r.collapsed != null), v = p(() => m.value ? !!r.collapsed : f.value);
|
|
6764
6680
|
function y(e) {
|
|
6765
|
-
v.value !== e && (m.value || (f.value = e),
|
|
6681
|
+
v.value !== e && (m.value || (f.value = e), i("update:collapsed", e));
|
|
6766
6682
|
}
|
|
6767
6683
|
function S() {
|
|
6768
6684
|
y(!v.value);
|
|
6769
6685
|
}
|
|
6770
|
-
let C = p(() => v.value ?
|
|
6686
|
+
let C = p(() => v.value ? r.expandLabel : r.collapseLabel), w = p(() => new Set(r.modelValue)), T = p(() => r.selectionMode ?? (r.readonly ? "none" : "multiple"));
|
|
6771
6687
|
function E(e) {
|
|
6772
6688
|
return w.value.has(e);
|
|
6773
6689
|
}
|
|
6774
6690
|
function D(e) {
|
|
6775
|
-
if (
|
|
6691
|
+
if (r.disabled) return;
|
|
6776
6692
|
let t = T.value;
|
|
6777
6693
|
if (t === "none") return;
|
|
6778
|
-
let n = t === "single" ? E(e) ? [] : [e] : E(e) ?
|
|
6779
|
-
|
|
6694
|
+
let n = t === "single" ? E(e) ? [] : [e] : E(e) ? r.modelValue.filter((t) => t !== e) : [...r.modelValue, e];
|
|
6695
|
+
i("update:modelValue", n);
|
|
6780
6696
|
}
|
|
6781
6697
|
function O() {
|
|
6782
|
-
|
|
6698
|
+
!r.disabled && T.value !== "none" && r.modelValue.length && i("update:modelValue", []);
|
|
6783
6699
|
}
|
|
6784
|
-
let k = p(() =>
|
|
6700
|
+
let k = p(() => r.features.filter((e) => E(e.id))), M = p(() => k.value.reduce((e, t) => e + (t.area ?? 0), 0)), F = p(() => r.selectionLabel(k.value.length)), L = B("");
|
|
6785
6701
|
function ee(e) {
|
|
6786
6702
|
return e.normalize("NFD").replace(/[\u0300-\u036f]/g, "").toLowerCase();
|
|
6787
6703
|
}
|
|
6788
6704
|
let te = p(() => {
|
|
6789
6705
|
let e = ee(L.value.trim());
|
|
6790
|
-
return e ?
|
|
6706
|
+
return e ? r.features.filter((t) => ee(`${t.nome} ${t.subtitulo ?? ""}`).includes(e)) : r.features;
|
|
6791
6707
|
});
|
|
6792
6708
|
function ne(e) {
|
|
6793
|
-
return e.area == null ? "" : `${s(e.area,
|
|
6709
|
+
return e.area == null ? "" : `${s(e.area, r.areaDecimals)} ${r.areaSuffix}`.trim();
|
|
6794
6710
|
}
|
|
6795
|
-
let re = p(() => s(M.value,
|
|
6711
|
+
let re = p(() => s(M.value, r.areaDecimals)), U = B(null), ie = B(null), ae = B(null), oe = B(!1), se = null, K = null, le = null, ue = null, Y = /* @__PURE__ */ new Map(), de = /* @__PURE__ */ new Map(), X = /* @__PURE__ */ new Map(), fe = !1, pe = !1, Z = p(() => {
|
|
6796
6712
|
let e = /* @__PURE__ */ new Map();
|
|
6797
|
-
for (let t of
|
|
6713
|
+
for (let t of r.features) e.set(t.id, t);
|
|
6798
6714
|
return e;
|
|
6799
6715
|
});
|
|
6800
6716
|
function he(e) {
|
|
6801
|
-
let t = E(e), n = t ?
|
|
6802
|
-
if (
|
|
6803
|
-
let
|
|
6717
|
+
let t = E(e), n = t ? r.polygonSelectedStyle : r.polygonStyle;
|
|
6718
|
+
if (r.featureStyle) {
|
|
6719
|
+
let i = Z.value.get(e), a = i ? r.featureStyle(i, t) : null;
|
|
6804
6720
|
a && (n = {
|
|
6805
6721
|
...n,
|
|
6806
6722
|
...a
|
|
6807
6723
|
});
|
|
6808
6724
|
}
|
|
6809
|
-
return
|
|
6725
|
+
return r.highlightFeature != null && r.highlightFeature === e && (n = {
|
|
6810
6726
|
...n,
|
|
6811
|
-
...
|
|
6727
|
+
...r.polygonSelectedStyle
|
|
6812
6728
|
}), n;
|
|
6813
6729
|
}
|
|
6814
6730
|
let ge = B(null), _e = B({
|
|
@@ -6828,22 +6744,18 @@ var Kc = { class: "w-map-select__body" }, qc = {
|
|
|
6828
6744
|
};
|
|
6829
6745
|
}
|
|
6830
6746
|
function Se(e, t) {
|
|
6831
|
-
xe(t), ge.value?.id !== e.id && (ge.value = e,
|
|
6747
|
+
xe(t), ge.value?.id !== e.id && (ge.value = e, i("feature-enter", e));
|
|
6832
6748
|
}
|
|
6833
6749
|
function Ce(e) {
|
|
6834
6750
|
ge.value && xe(e);
|
|
6835
6751
|
}
|
|
6836
6752
|
function Q() {
|
|
6837
|
-
ge.value && (ge.value = null,
|
|
6753
|
+
ge.value && (ge.value = null, i("feature-leave"));
|
|
6838
6754
|
}
|
|
6839
6755
|
function we(e, t) {
|
|
6840
|
-
|
|
6841
|
-
Q();
|
|
6842
|
-
return;
|
|
6843
|
-
}
|
|
6844
|
-
ge.value = null, Se(e, t);
|
|
6756
|
+
ge.value?.id === e.id ? Q() : (ge.value = null, Se(e, t));
|
|
6845
6757
|
}
|
|
6846
|
-
let Te = p(() => _e.value.y < 150), Ee = p(() =>
|
|
6758
|
+
let Te = p(() => _e.value.y < 150), Ee = p(() => r.detailPlacement === "canto" ? void 0 : {
|
|
6847
6759
|
left: `${_e.value.x}px`,
|
|
6848
6760
|
top: `${_e.value.y}px`
|
|
6849
6761
|
});
|
|
@@ -6851,17 +6763,17 @@ var Kc = { class: "w-map-select__body" }, qc = {
|
|
|
6851
6763
|
e.key === "Escape" && Q();
|
|
6852
6764
|
}
|
|
6853
6765
|
function Oe(e) {
|
|
6854
|
-
if (
|
|
6766
|
+
if (r.featureLabel) return r.featureLabel(e);
|
|
6855
6767
|
let t = ne(e);
|
|
6856
6768
|
return t ? `${e.nome} · ${t}` : e.nome;
|
|
6857
6769
|
}
|
|
6858
6770
|
function ke(e) {
|
|
6859
|
-
return
|
|
6771
|
+
return r.featureLabelShort ? r.featureLabelShort(e) : e.nome;
|
|
6860
6772
|
}
|
|
6861
|
-
let Ae = p(() =>
|
|
6773
|
+
let Ae = p(() => r.tooltips === "auto");
|
|
6862
6774
|
function je(e, t) {
|
|
6863
6775
|
let n = Oe(t);
|
|
6864
|
-
n && e.bindTooltip(n,
|
|
6776
|
+
n && e.bindTooltip(n, r.tooltips === "hover" ? {
|
|
6865
6777
|
permanent: !1,
|
|
6866
6778
|
sticky: !0,
|
|
6867
6779
|
direction: "center",
|
|
@@ -6874,7 +6786,7 @@ var Kc = { class: "w-map-select__body" }, qc = {
|
|
|
6874
6786
|
opacity: 1
|
|
6875
6787
|
});
|
|
6876
6788
|
}
|
|
6877
|
-
let Me = p(() => T.value !== "none" ||
|
|
6789
|
+
let Me = p(() => T.value !== "none" || r.tooltips === "hover" || r.featureDetail !== "none");
|
|
6878
6790
|
function Ne(e) {
|
|
6879
6791
|
if (!se || !K || !e.geometria) return;
|
|
6880
6792
|
let t = se.geoJSON(e.geometria, {
|
|
@@ -6882,13 +6794,13 @@ var Kc = { class: "w-map-select__body" }, qc = {
|
|
|
6882
6794
|
interactive: Me.value
|
|
6883
6795
|
});
|
|
6884
6796
|
t.on("click", (t) => {
|
|
6885
|
-
D(e.id),
|
|
6886
|
-
}),
|
|
6797
|
+
D(e.id), i("feature-click", e), r.featureDetail === "click" && we(e, ve(t));
|
|
6798
|
+
}), r.featureDetail === "hover" && (t.on("mouseover", (t) => Se(e, ve(t))), t.on("mousemove", (e) => Ce(ve(e))), t.on("mouseout", () => Q())), je(t, e), t.addTo(K), Y.set(e.id, t), de.set(e.id, e.geometria), X.set(e.id, t.getBounds());
|
|
6887
6799
|
}
|
|
6888
6800
|
function Pe() {
|
|
6889
6801
|
if (!se || !K) return;
|
|
6890
6802
|
let e = /* @__PURE__ */ new Map();
|
|
6891
|
-
for (let t of
|
|
6803
|
+
for (let t of r.features) t.geometria && e.set(t.id, t);
|
|
6892
6804
|
Y.forEach((t, n) => {
|
|
6893
6805
|
e.has(n) || (t.remove(), Y.delete(n), de.delete(n), X.delete(n));
|
|
6894
6806
|
}), e.forEach((e, t) => {
|
|
@@ -6896,10 +6808,8 @@ var Kc = { class: "w-map-select__body" }, qc = {
|
|
|
6896
6808
|
if (n && de.get(t) === e.geometria) {
|
|
6897
6809
|
let t = Oe(e), r = n.getTooltip();
|
|
6898
6810
|
t ? r ? r.setContent(t) : je(n, e) : n.unbindTooltip();
|
|
6899
|
-
|
|
6900
|
-
|
|
6901
|
-
n && (n.remove(), Y.delete(t), de.delete(t), X.delete(t)), Ne(e);
|
|
6902
|
-
}), Be(), !fe && (Y.size || i.scopeGeometry) && (Ve(), fe = !0, pe = !!i.scopeGeometry), $();
|
|
6811
|
+
} else n && (n.remove(), Y.delete(t), de.delete(t), X.delete(t)), Ne(e);
|
|
6812
|
+
}), Be(), !fe && (Y.size || r.scopeGeometry) && (Ve(), fe = !0, pe = !!r.scopeGeometry), $();
|
|
6903
6813
|
}
|
|
6904
6814
|
let Fe = null, Ie = /* @__PURE__ */ new Map();
|
|
6905
6815
|
function Le(e) {
|
|
@@ -6936,14 +6846,14 @@ var Kc = { class: "w-map-select__body" }, qc = {
|
|
|
6936
6846
|
}
|
|
6937
6847
|
function $() {
|
|
6938
6848
|
if (!Ae.value || !ze()) return;
|
|
6939
|
-
let e =
|
|
6849
|
+
let e = r.labelFullFromZoom, t = e != null && (K?.getZoom() ?? 0) >= e;
|
|
6940
6850
|
Y.forEach((e, n) => {
|
|
6941
|
-
let
|
|
6942
|
-
if (!
|
|
6851
|
+
let i = e.getTooltip(), a = Z.value.get(n);
|
|
6852
|
+
if (!i || !a) return;
|
|
6943
6853
|
let o = Oe(a);
|
|
6944
6854
|
if (!o) return;
|
|
6945
|
-
let s = ke(a), c = t ? "completo" : Gc(Re(n), Le(o), s && s !== o ? Le(s) : null,
|
|
6946
|
-
c !== "oculto" &&
|
|
6855
|
+
let s = ke(a), c = t ? "completo" : Gc(Re(n), Le(o), s && s !== o ? Le(s) : null, r.labelFitScale);
|
|
6856
|
+
c !== "oculto" && i.setContent(c === "curto" ? s : o), i.getElement()?.classList.toggle("w-map-select__tip--fora", c === "oculto");
|
|
6947
6857
|
});
|
|
6948
6858
|
}
|
|
6949
6859
|
function Be() {
|
|
@@ -6955,8 +6865,8 @@ var Kc = { class: "w-map-select__body" }, qc = {
|
|
|
6955
6865
|
function Ve() {
|
|
6956
6866
|
if (!se || !K) return;
|
|
6957
6867
|
let e = [];
|
|
6958
|
-
if (
|
|
6959
|
-
let t = se.geoJSON(
|
|
6868
|
+
if (r.scopeGeometry) {
|
|
6869
|
+
let t = se.geoJSON(r.scopeGeometry).getBounds();
|
|
6960
6870
|
t.isValid() && e.push(t.getSouthWest(), t.getNorthEast());
|
|
6961
6871
|
}
|
|
6962
6872
|
e.length || Y.forEach((t) => {
|
|
@@ -6984,22 +6894,22 @@ var Kc = { class: "w-map-select__body" }, qc = {
|
|
|
6984
6894
|
}
|
|
6985
6895
|
function We(e, t, n) {
|
|
6986
6896
|
let r = n.type === "Polygon" ? [n.coordinates] : n.coordinates;
|
|
6987
|
-
for (let n of r) if (
|
|
6897
|
+
for (let n of r) if (n.length && Ue(e, t, n[0]) && !n.slice(1).some((n) => Ue(e, t, n))) return !0;
|
|
6988
6898
|
return !1;
|
|
6989
6899
|
}
|
|
6990
6900
|
function Ge(e, t) {
|
|
6991
6901
|
if (!K || !U.value) return null;
|
|
6992
|
-
let n = U.value.getBoundingClientRect(),
|
|
6993
|
-
if (n.width > 0 && n.height > 0 && (
|
|
6994
|
-
let o = K.containerPointToLatLng([
|
|
6995
|
-
for (let e of
|
|
6902
|
+
let n = U.value.getBoundingClientRect(), i = e - n.left, a = t - n.top;
|
|
6903
|
+
if (n.width > 0 && n.height > 0 && (i < 0 || a < 0 || i > n.width || a > n.height)) return null;
|
|
6904
|
+
let o = K.containerPointToLatLng([i, a]);
|
|
6905
|
+
for (let e of r.features) if (e.geometria && We(o.lng, o.lat, e.geometria)) return e.id;
|
|
6996
6906
|
return null;
|
|
6997
6907
|
}
|
|
6998
6908
|
function Ke() {
|
|
6999
|
-
|
|
6909
|
+
se && K && (Y.forEach((e) => e.remove()), Y.clear(), de.clear(), X.clear(), Pe());
|
|
7000
6910
|
}
|
|
7001
6911
|
function qe() {
|
|
7002
|
-
|
|
6912
|
+
K && U.value && U.value.clientWidth > 0 && U.value.clientHeight > 0 && K.invalidateSize();
|
|
7003
6913
|
}
|
|
7004
6914
|
function Je() {
|
|
7005
6915
|
if (!ie.value) return;
|
|
@@ -7026,11 +6936,11 @@ var Kc = { class: "w-map-select__body" }, qc = {
|
|
|
7026
6936
|
if (U.value) try {
|
|
7027
6937
|
K = se.map(U.value, {
|
|
7028
6938
|
zoomControl: !0,
|
|
7029
|
-
attributionControl: !!
|
|
6939
|
+
attributionControl: !!r.tileAttribution,
|
|
7030
6940
|
preferCanvas: !0
|
|
7031
|
-
}), K.attributionControl?.setPrefix(!1), se.tileLayer(
|
|
7032
|
-
maxZoom:
|
|
7033
|
-
attribution:
|
|
6941
|
+
}), K.attributionControl?.setPrefix(!1), se.tileLayer(r.tileUrl, {
|
|
6942
|
+
maxZoom: r.maxZoom,
|
|
6943
|
+
attribution: r.tileAttribution
|
|
7034
6944
|
}).addTo(K), K.on("zoomend", $), Pe(), fe || K.setView([0, 0], 2), qe(), typeof ResizeObserver < "u" && (le = new ResizeObserver(() => qe()), le.observe(U.value));
|
|
7035
6945
|
} catch {
|
|
7036
6946
|
oe.value = !0;
|
|
@@ -7041,14 +6951,14 @@ var Kc = { class: "w-map-select__body" }, qc = {
|
|
|
7041
6951
|
typeof window < "u" && window.addEventListener("keydown", De), Ye(), Je(), typeof ResizeObserver < "u" && ae.value && (ue = new ResizeObserver(() => Je()), ue.observe(ae.value));
|
|
7042
6952
|
}), P(() => {
|
|
7043
6953
|
typeof window < "u" && window.removeEventListener("keydown", De), le?.disconnect(), le = null, ue?.disconnect(), ue = null, Y.clear(), de.clear(), X.clear(), Ie.clear(), Fe?.remove(), Fe = null, K?.remove(), K = null;
|
|
7044
|
-
}), q(() =>
|
|
6954
|
+
}), q(() => r.features, Pe), q([() => r.featureDetail, () => r.detailPlacement], () => {
|
|
7045
6955
|
Q(), Ke();
|
|
7046
|
-
}), q(() =>
|
|
7047
|
-
|
|
7048
|
-
}), q([() =>
|
|
7049
|
-
() =>
|
|
7050
|
-
() =>
|
|
7051
|
-
() =>
|
|
6956
|
+
}), q(() => r.modelValue, Be, { deep: !0 }), q(() => r.featureStyle, Be), q(() => r.highlightFeature, Be), q(() => r.scopeGeometry, (e) => {
|
|
6957
|
+
K && e && !pe && (Ve(), fe = !0, pe = !0);
|
|
6958
|
+
}), q([() => r.tooltips, Me], () => Ke()), q([
|
|
6959
|
+
() => r.featureLabel,
|
|
6960
|
+
() => r.featureLabelShort,
|
|
6961
|
+
() => r.labelFitScale
|
|
7052
6962
|
], () => $()), q([v, c], () => {
|
|
7053
6963
|
A(() => {
|
|
7054
6964
|
Je(), qe();
|
|
@@ -7469,7 +7379,7 @@ function Jl(e) {
|
|
|
7469
7379
|
let i = Number(r.tag.slice(1));
|
|
7470
7380
|
if (i < 2 || i > 3) continue;
|
|
7471
7381
|
let a = String(r.attrGet("id") ?? ""), o = e[n + 1];
|
|
7472
|
-
|
|
7382
|
+
a && o?.type === "inline" && t.push({
|
|
7473
7383
|
id: a,
|
|
7474
7384
|
text: ql(o),
|
|
7475
7385
|
level: i
|
|
@@ -7492,8 +7402,7 @@ function Xl(e) {
|
|
|
7492
7402
|
headings: Jl(r)
|
|
7493
7403
|
};
|
|
7494
7404
|
}
|
|
7495
|
-
|
|
7496
|
-
//#region src/utils/markdownEnhance.ts
|
|
7405
|
+
// src/utils/markdownEnhance.ts
|
|
7497
7406
|
function Zl(e) {
|
|
7498
7407
|
e.querySelectorAll("[data-md-code]").forEach((e) => {
|
|
7499
7408
|
if (e.dataset.mdPronto) return;
|
|
@@ -7644,8 +7553,7 @@ async function uu(e, t = !1) {
|
|
|
7644
7553
|
async function du(e) {
|
|
7645
7554
|
e && (Zl(e), $l(e), await uu(e));
|
|
7646
7555
|
}
|
|
7647
|
-
|
|
7648
|
-
//#region src/components/ui/WMarkdownView.vue?vue&type=script&setup=true&lang.ts
|
|
7556
|
+
// src/components/ui/WMarkdownView.vue?vue&type=script&setup=true&lang.ts
|
|
7649
7557
|
var fu = {
|
|
7650
7558
|
key: 0,
|
|
7651
7559
|
class: "w-markdown-view w-markdown-view--empty"
|
|
@@ -7661,7 +7569,7 @@ var fu = {
|
|
|
7661
7569
|
q(o, (e) => r("headings", e.headings), { immediate: !0 }), q(s, () => void A(() => du(i.value)));
|
|
7662
7570
|
let l = null;
|
|
7663
7571
|
function u() {
|
|
7664
|
-
typeof MutationObserver
|
|
7572
|
+
typeof MutationObserver < "u" && (l = new MutationObserver(() => void uu(i.value, !0)), l.observe(document.documentElement, {
|
|
7665
7573
|
attributes: !0,
|
|
7666
7574
|
attributeFilter: ["class"]
|
|
7667
7575
|
}));
|
|
@@ -7758,7 +7666,7 @@ var fu = {
|
|
|
7758
7666
|
}
|
|
7759
7667
|
function T() {
|
|
7760
7668
|
let e = i.value;
|
|
7761
|
-
|
|
7669
|
+
e && !n.disabled && ((n.modelValue ?? "").slice(e.selectionStart, e.selectionEnd).includes("\n") ? f("```\n", "\n```", "código") : f("`", "`", "código"));
|
|
7762
7670
|
}
|
|
7763
7671
|
function E(e, t) {
|
|
7764
7672
|
let r = i.value;
|
|
@@ -8012,7 +7920,7 @@ var fu = {
|
|
|
8012
7920
|
i.value = i.value === e.titulo.id ? null : e.titulo.id;
|
|
8013
7921
|
}
|
|
8014
7922
|
function m() {
|
|
8015
|
-
a?.disconnect(),
|
|
7923
|
+
a?.disconnect(), typeof IntersectionObserver < "u" && (a = new IntersectionObserver((e) => {
|
|
8016
7924
|
let t = e.find((e) => e.isIntersecting);
|
|
8017
7925
|
t && (n.value = t.target.id);
|
|
8018
7926
|
}, {
|
|
@@ -8074,8 +7982,8 @@ var fu = {
|
|
|
8074
7982
|
inheritAttrs: !1,
|
|
8075
7983
|
__name: "WDialog",
|
|
8076
7984
|
setup(e) {
|
|
8077
|
-
let
|
|
8078
|
-
return (e,
|
|
7985
|
+
let n = t();
|
|
7986
|
+
return (e, t) => (R(), m(G(Ce), k({ "append-to": G(n)?.hostEl.value ?? "body" }, e.$attrs), v({ _: 2 }, [V(e.$slots, (t, n) => ({
|
|
8079
7987
|
name: n,
|
|
8080
7988
|
fn: J((t) => [H(e.$slots, n, M(w(t ?? {})))])
|
|
8081
7989
|
}))]), 1040, ["append-to"]));
|
|
@@ -8385,21 +8293,21 @@ var fu = {
|
|
|
8385
8293
|
let t = e.api.runtime(e.tab.key);
|
|
8386
8294
|
if (!t) return () => null;
|
|
8387
8295
|
te(Re, t.route);
|
|
8388
|
-
function
|
|
8296
|
+
function r(e, t) {
|
|
8389
8297
|
e.push(t), L(() => {
|
|
8390
8298
|
let n = e.indexOf(t);
|
|
8391
8299
|
n !== -1 && e.splice(n, 1);
|
|
8392
8300
|
});
|
|
8393
8301
|
}
|
|
8394
|
-
let
|
|
8302
|
+
let i = {
|
|
8395
8303
|
hostEl: e.hostEl,
|
|
8396
8304
|
active: oe(e, "active"),
|
|
8397
8305
|
setTitle: (t) => e.api.setTitle(e.tab.key, t),
|
|
8398
|
-
onTabActivated: (e) =>
|
|
8399
|
-
onTabDeactivated: (e) =>
|
|
8400
|
-
registerCloseGuard: (e) =>
|
|
8306
|
+
onTabActivated: (e) => r(t.activatedHooks, e),
|
|
8307
|
+
onTabDeactivated: (e) => r(t.deactivatedHooks, e),
|
|
8308
|
+
registerCloseGuard: (e) => r(t.closeGuards, e)
|
|
8401
8309
|
};
|
|
8402
|
-
return te(
|
|
8310
|
+
return te(n, i), q(() => e.active, (e) => {
|
|
8403
8311
|
let n = e ? t.activatedHooks : t.deactivatedHooks;
|
|
8404
8312
|
for (let e of [...n]) e();
|
|
8405
8313
|
}), () => t.component ? T(Le, {
|
|
@@ -8418,11 +8326,7 @@ var fu = {
|
|
|
8418
8326
|
}
|
|
8419
8327
|
function o(e, t) {
|
|
8420
8328
|
let n = a(e);
|
|
8421
|
-
|
|
8422
|
-
n.value = t;
|
|
8423
|
-
return;
|
|
8424
|
-
}
|
|
8425
|
-
n.value && !n.value.isConnected && (n.value = null);
|
|
8329
|
+
t instanceof HTMLElement ? n.value = t : n.value && !n.value.isConnected && (n.value = null);
|
|
8426
8330
|
}
|
|
8427
8331
|
return q(r, (e) => {
|
|
8428
8332
|
let t = new Set(e.map((e) => e.key));
|
|
@@ -8562,7 +8466,7 @@ var fu = {
|
|
|
8562
8466
|
});
|
|
8563
8467
|
}
|
|
8564
8468
|
function I(e, t) {
|
|
8565
|
-
|
|
8469
|
+
n.creatable && !n.loading && r("create", { start: k(t, O(e, n.createStep)) });
|
|
8566
8470
|
}
|
|
8567
8471
|
let L = (e) => !!e.draggable && !n.loading;
|
|
8568
8472
|
function ee(e, t) {
|
|
@@ -8749,15 +8653,11 @@ var fu = {
|
|
|
8749
8653
|
return i;
|
|
8750
8654
|
}
|
|
8751
8655
|
function m(e, t, n) {
|
|
8752
|
-
|
|
8753
|
-
n.preventDefault();
|
|
8754
|
-
return;
|
|
8755
|
-
}
|
|
8756
|
-
i.value = {
|
|
8656
|
+
u(e) ? (i.value = {
|
|
8757
8657
|
item: e,
|
|
8758
8658
|
from: t.value,
|
|
8759
8659
|
key: c(e)
|
|
8760
|
-
}, n.dataTransfer && (n.dataTransfer.effectAllowed = "move", n.dataTransfer.setData("text/plain", String(c(e))));
|
|
8660
|
+
}, n.dataTransfer && (n.dataTransfer.effectAllowed = "move", n.dataTransfer.setData("text/plain", String(c(e))))) : n.preventDefault();
|
|
8761
8661
|
}
|
|
8762
8662
|
function v(e, t) {
|
|
8763
8663
|
i.value && (t.preventDefault(), t.dataTransfer && (t.dataTransfer.dropEffect = "move"), a.value = {
|
|
@@ -8849,7 +8749,6 @@ var fu = {
|
|
|
8849
8749
|
], 6))), 128))], 10, gd));
|
|
8850
8750
|
}
|
|
8851
8751
|
});
|
|
8852
|
-
//#endregion
|
|
8853
8752
|
export { qt as $, go as A, sa as B, ns as C, No as D, Po as E, ba as F, Yr as G, Vi as H, ya as I, rr as J, sr as K, da as L, Ra as M, ja as N, xo as O, Ea as P, Jt as Q, fa as R, ls as S, Io as T, Bi as U, qi as V, Oi as W, Sn as X, $n as Y, on as Z, Us as _, Vu as a, st as at, vs as b, Mu as c, vl as d, Ut as et, Hc as f, Ys as g, rc as h, Xu as i, Ot as it, qa as j, bo as k, xu as l, sc as m, hd as n, Dt as nt, Lu as o, xc as p, or as q, ed as r, jt as rt, Nu as s, Dd as t, At as tt, mu as u, bs as v, Wo as w, ps as x, ys as y, ma as z };
|
|
8854
8753
|
|
|
8855
|
-
//# sourceMappingURL=components-
|
|
8754
|
+
//# sourceMappingURL=components-lO0I43CU.js.map
|