@comercti/react-components-hmg 0.23.37 → 0.24.2
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/comerc-style-guide.cjs.js +1 -1
- package/comerc-style-guide.es.js +208 -194
- package/comerc-style-guide.umd.js +1 -1
- package/index.d.ts +5 -0
- package/package.json +1 -1
package/comerc-style-guide.es.js
CHANGED
|
@@ -276,7 +276,7 @@ const we = () => {
|
|
|
276
276
|
if (e.value = o, l) {
|
|
277
277
|
const d = JSON.parse(l);
|
|
278
278
|
e.value = d.current === "dark";
|
|
279
|
-
const s = document.getElementsByClassName("docs-story css-kdwx3d"), c = document.getElementsByClassName("sbdocs sbdocs-wrapper css-k7lbue"), g = document.getElementsByClassName("css-p1dfi6"), m = document.getElementsByClassName("css-11knh3z"), h = document.getElementsByClassName("css-18rvurk"), b = document.getElementsByTagName("span"), v = document.getElementsByTagName("td"), k = document.getElementsByTagName("p"),
|
|
279
|
+
const s = document.getElementsByClassName("docs-story css-kdwx3d"), c = document.getElementsByClassName("sbdocs sbdocs-wrapper css-k7lbue"), g = document.getElementsByClassName("css-p1dfi6"), m = document.getElementsByClassName("css-11knh3z"), h = document.getElementsByClassName("css-18rvurk"), b = document.getElementsByTagName("span"), v = document.getElementsByTagName("td"), k = document.getElementsByTagName("p"), M = document.getElementsByClassName("css-o1d7ko"), C = document.getElementsByClassName("css-r7fl1p"), V = document.getElementsByClassName("css-177r6r9"), O = document.getElementsByClassName("css-1gcb13n"), F = document.getElementsByClassName("css-10lkeuu"), T = document.getElementsByClassName("css-1vgq5xr"), N = document.getElementsByClassName("css-bi6jn4"), R = document.getElementsByClassName("css-1gcb13n"), W = document.getElementsByClassName("css-14o1cbe"), $ = document.getElementsByClassName("css-7mc623"), B = document.getElementsByClassName("css-15ubt3n"), P = document.getElementsByClassName("css-1fdphfk"), j = document.getElementsByTagName("html"), E = document.getElementsByClassName("css-wzniqs"), S = document.getElementsByClassName("css-r7fl1p"), A = (p) => {
|
|
280
280
|
const z = p;
|
|
281
281
|
z.tagName === "SPAN" && Array.from(z.classList).some((Z) => Z.startsWith("hljs")) || (e.value ? z.ariaHidden === "true" ? z.style.setProperty("color", "#467541", "important") : z.style.setProperty("color", "#d6d6d6") : z.style.setProperty("color", "#000"));
|
|
282
282
|
}, w = (p) => {
|
|
@@ -310,11 +310,11 @@ const we = () => {
|
|
|
310
310
|
w(p), y(p), A(p);
|
|
311
311
|
}), Array.from(k).forEach((p) => {
|
|
312
312
|
A(p);
|
|
313
|
-
}), Array.from(
|
|
313
|
+
}), Array.from(C).forEach((p) => {
|
|
314
314
|
w(p), y(p);
|
|
315
315
|
}), Array.from(V).forEach((p) => {
|
|
316
316
|
w(p);
|
|
317
|
-
}), Array.from(
|
|
317
|
+
}), Array.from(M).forEach((p) => {
|
|
318
318
|
w(p);
|
|
319
319
|
}), Array.from(v).forEach((p) => {
|
|
320
320
|
w(p);
|
|
@@ -397,15 +397,15 @@ const sa = {
|
|
|
397
397
|
var n, o, l, d;
|
|
398
398
|
const s = ((n = a.number) == null ? void 0 : n.unsigned) !== !0 && e.startsWith("-") ? "-" : "", c = ((o = a.number) == null ? void 0 : o.fraction) ?? 0;
|
|
399
399
|
let g = da(0, c, a);
|
|
400
|
-
const m = g.formatToParts(1000.12), h = ((l = m.find((
|
|
400
|
+
const m = g.formatToParts(1000.12), h = ((l = m.find((C) => C.type === "group")) == null ? void 0 : l.value) ?? " ", b = ((d = m.find((C) => C.type === "decimal")) == null ? void 0 : d.value) ?? ".", v = ia(e, h, b);
|
|
401
401
|
if (Number.isNaN(parseFloat(v))) return s;
|
|
402
402
|
const k = v.split(".");
|
|
403
403
|
if (k[1] != null && k[1].length >= 1) {
|
|
404
|
-
const
|
|
405
|
-
g = da(
|
|
404
|
+
const C = k[1].length <= c ? k[1].length : c;
|
|
405
|
+
g = da(C, c, a);
|
|
406
406
|
}
|
|
407
|
-
let
|
|
408
|
-
return t ? c > 0 && v.endsWith(".") && !v.slice(0, -1).includes(".") && (
|
|
407
|
+
let M = g.format(parseFloat(v));
|
|
408
|
+
return t ? c > 0 && v.endsWith(".") && !v.slice(0, -1).includes(".") && (M += b) : M = ia(M, h, b), s + M;
|
|
409
409
|
}, Oa = (e) => JSON.parse(e.replaceAll("'", '"')), _n = (e, t = {}) => {
|
|
410
410
|
const a = { ...t };
|
|
411
411
|
e.dataset.maska != null && e.dataset.maska !== "" && (a.mask = er(e.dataset.maska)), e.dataset.maskaEager != null && (a.eager = ut(e.dataset.maskaEager)), e.dataset.maskaReversed != null && (a.reversed = ut(e.dataset.maskaReversed)), e.dataset.maskaTokensReplace != null && (a.tokensReplace = ut(e.dataset.maskaTokensReplace)), e.dataset.maskaTokens != null && (a.tokens = tr(e.dataset.maskaTokens));
|
|
@@ -483,19 +483,19 @@ class ar {
|
|
|
483
483
|
if (a == null) return t;
|
|
484
484
|
const o = `v=${t},mr=${a},m=${n ? 1 : 0}`;
|
|
485
485
|
if (this.memo.has(o)) return this.memo.get(o);
|
|
486
|
-
const { mask: l, escaped: d } = this.escapeMask(a), s = [], c = this.opts.tokens != null ? this.opts.tokens : {}, g = this.isReversed() ? -1 : 1, m = this.isReversed() ? "unshift" : "push", h = this.isReversed() ? 0 : l.length - 1, b = this.isReversed() ? () =>
|
|
487
|
-
let k,
|
|
486
|
+
const { mask: l, escaped: d } = this.escapeMask(a), s = [], c = this.opts.tokens != null ? this.opts.tokens : {}, g = this.isReversed() ? -1 : 1, m = this.isReversed() ? "unshift" : "push", h = this.isReversed() ? 0 : l.length - 1, b = this.isReversed() ? () => C > -1 && V > -1 : () => C < l.length && V < t.length, v = (F) => !this.isReversed() && F <= h || this.isReversed() && F >= h;
|
|
487
|
+
let k, M = -1, C = this.isReversed() ? l.length - 1 : 0, V = this.isReversed() ? t.length - 1 : 0, O = !1;
|
|
488
488
|
for (; b(); ) {
|
|
489
|
-
const F = l.charAt(
|
|
490
|
-
if (!d.includes(
|
|
491
|
-
for (; v(
|
|
489
|
+
const F = l.charAt(C), T = c[F], N = (T == null ? void 0 : T.transform) != null ? T.transform(t.charAt(V)) : t.charAt(V);
|
|
490
|
+
if (!d.includes(C) && T != null ? (N.match(T.pattern) != null ? (s[m](N), T.repeated ? (M === -1 ? M = C : C === h && C !== M && (C = M - g), h === M && (C -= g)) : T.multiple && (O = !0, C -= g), C += g) : T.multiple ? O && (C += g, V -= g, O = !1) : N === k ? k = void 0 : T.optional && (C += g, V -= g), V += g) : (n && !this.isEager() && s[m](F), N === F && !this.isEager() ? V += g : k = F, this.isEager() || (C += g)), this.isEager())
|
|
491
|
+
for (; v(C) && (c[l.charAt(C)] == null || d.includes(C)); ) {
|
|
492
492
|
if (n) {
|
|
493
|
-
if (s[m](l.charAt(
|
|
494
|
-
|
|
493
|
+
if (s[m](l.charAt(C)), t.charAt(V) === l.charAt(C)) {
|
|
494
|
+
C += g, V += g;
|
|
495
495
|
continue;
|
|
496
496
|
}
|
|
497
|
-
} else l.charAt(
|
|
498
|
-
|
|
497
|
+
} else l.charAt(C) === t.charAt(V) && (V += g);
|
|
498
|
+
C += g;
|
|
499
499
|
}
|
|
500
500
|
}
|
|
501
501
|
return this.memo.set(o, s.join("")), this.memo.get(o);
|
|
@@ -615,7 +615,7 @@ const Mt = /* @__PURE__ */ new WeakMap(), rr = (e, t) => {
|
|
|
615
615
|
},
|
|
616
616
|
emits: ["update:modelValue", "blur", "input", "change"],
|
|
617
617
|
setup(e, { expose: t, emit: a }) {
|
|
618
|
-
const { modoDarkAplicado: n } = we(), o = e, l = a, d = be(), s = L(null), { hasSlot: c } = fe("prepend-inner", s, d), { hasSlot: g } = fe("append-inner", s, d), m = U(() => o.id || ze("input")), h = L(), { valorComMascara: b, maskOptions: v, valorSemMascara: k, emitValor:
|
|
618
|
+
const { modoDarkAplicado: n } = we(), o = e, l = a, d = be(), s = L(null), { hasSlot: c } = fe("prepend-inner", s, d), { hasSlot: g } = fe("append-inner", s, d), m = U(() => o.id || ze("input")), h = L(), { valorComMascara: b, maskOptions: v, valorSemMascara: k, emitValor: M, emitBlur: C } = Yn(o, l), V = () => {
|
|
619
619
|
var O;
|
|
620
620
|
(O = h.value) == null || O.focus();
|
|
621
621
|
};
|
|
@@ -665,11 +665,11 @@ const Mt = /* @__PURE__ */ new WeakMap(), rr = (e, t) => {
|
|
|
665
665
|
maxlength: e.maxlength,
|
|
666
666
|
disabled: e.disabled,
|
|
667
667
|
onBlur: F[3] || (F[3] = //@ts-ignore
|
|
668
|
-
(...T) => r(M) && r(M)(...T)),
|
|
669
|
-
onInput: F[4] || (F[4] = //@ts-ignore
|
|
670
668
|
(...T) => r(C) && r(C)(...T)),
|
|
669
|
+
onInput: F[4] || (F[4] = //@ts-ignore
|
|
670
|
+
(...T) => r(M) && r(M)(...T)),
|
|
671
671
|
onKeyup: F[5] || (F[5] = //@ts-ignore
|
|
672
|
-
(...T) => r(
|
|
672
|
+
(...T) => r(M) && r(M)(...T)),
|
|
673
673
|
step: e.type === "time" || e.type === "datetime-local" ? "1" : null,
|
|
674
674
|
class: x([
|
|
675
675
|
{ "dark-icon": r(n) },
|
|
@@ -748,10 +748,10 @@ const hr = (e, t) => {
|
|
|
748
748
|
function k(w) {
|
|
749
749
|
e.expandLine && (g.value[w] = !g.value[w]);
|
|
750
750
|
}
|
|
751
|
-
function
|
|
751
|
+
function M(w, y) {
|
|
752
752
|
n.value === w ? o.value = !o.value : (n.value = w, o.value = !1), e.orderByServer && y("orderBy", { key: w, order: o.value ? "desc" : "asc" });
|
|
753
753
|
}
|
|
754
|
-
function
|
|
754
|
+
function C(w, y) {
|
|
755
755
|
c.value = String(w).toLowerCase(), O(y, !0);
|
|
756
756
|
}
|
|
757
757
|
function V(w, y) {
|
|
@@ -815,8 +815,8 @@ const hr = (e, t) => {
|
|
|
815
815
|
},
|
|
816
816
|
truncarTexto: R,
|
|
817
817
|
alternarExpansao: k,
|
|
818
|
-
ordernacao:
|
|
819
|
-
buscar:
|
|
818
|
+
ordernacao: M,
|
|
819
|
+
buscar: C,
|
|
820
820
|
alternarSelecao: V,
|
|
821
821
|
alternarSelecionarTudo: O,
|
|
822
822
|
atualizarSelecionado: F,
|
|
@@ -1075,7 +1075,7 @@ var Hr = function(t, a) {
|
|
|
1075
1075
|
function Pr(e) {
|
|
1076
1076
|
var t, a = e.state, n = e.name, o = e.options, l = a.elements.arrow, d = a.modifiersData.popperOffsets, s = ke(a.placement), c = It(s), g = [de, ve].indexOf(s) >= 0, m = g ? "height" : "width";
|
|
1077
1077
|
if (!(!l || !d)) {
|
|
1078
|
-
var h = Hr(o.padding, a), b = Rt(l), v = c === "y" ? ie : de, k = c === "y" ? ge : ve,
|
|
1078
|
+
var h = Hr(o.padding, a), b = Rt(l), v = c === "y" ? ie : de, k = c === "y" ? ge : ve, M = a.rects.reference[m] + a.rects.reference[c] - d[c] - a.rects.popper[m], C = d[c] - a.rects.reference[c], V = st(l), O = V ? c === "y" ? V.clientHeight || 0 : V.clientWidth || 0 : 0, F = M / 2 - C / 2, T = h[v], N = O - b[m] - h[k], R = O / 2 - b[m] / 2 + F, W = Ke(T, R, N), $ = c;
|
|
1079
1079
|
a.modifiersData[n] = (t = {}, t[$] = W, t.centerOffset = W - R, t);
|
|
1080
1080
|
}
|
|
1081
1081
|
}
|
|
@@ -1109,14 +1109,14 @@ function Nr(e, t) {
|
|
|
1109
1109
|
};
|
|
1110
1110
|
}
|
|
1111
1111
|
function fa(e) {
|
|
1112
|
-
var t, a = e.popper, n = e.popperRect, o = e.placement, l = e.variation, d = e.offsets, s = e.position, c = e.gpuAcceleration, g = e.adaptive, m = e.roundOffsets, h = e.isFixed, b = d.x, v = b === void 0 ? 0 : b, k = d.y,
|
|
1112
|
+
var t, a = e.popper, n = e.popperRect, o = e.placement, l = e.variation, d = e.offsets, s = e.position, c = e.gpuAcceleration, g = e.adaptive, m = e.roundOffsets, h = e.isFixed, b = d.x, v = b === void 0 ? 0 : b, k = d.y, M = k === void 0 ? 0 : k, C = typeof m == "function" ? m({
|
|
1113
1113
|
x: v,
|
|
1114
|
-
y:
|
|
1114
|
+
y: M
|
|
1115
1115
|
}) : {
|
|
1116
1116
|
x: v,
|
|
1117
|
-
y:
|
|
1117
|
+
y: M
|
|
1118
1118
|
};
|
|
1119
|
-
v =
|
|
1119
|
+
v = C.x, M = C.y;
|
|
1120
1120
|
var V = d.hasOwnProperty("x"), O = d.hasOwnProperty("y"), F = de, T = ie, N = window;
|
|
1121
1121
|
if (g) {
|
|
1122
1122
|
var R = st(a), W = "clientHeight", $ = "clientWidth";
|
|
@@ -1126,7 +1126,7 @@ function fa(e) {
|
|
|
1126
1126
|
// $FlowFixMe[prop-missing]
|
|
1127
1127
|
R[W]
|
|
1128
1128
|
);
|
|
1129
|
-
|
|
1129
|
+
M -= B - n.height, M *= c ? 1 : -1;
|
|
1130
1130
|
}
|
|
1131
1131
|
if (o === de || (o === ie || o === ge) && l === tt) {
|
|
1132
1132
|
F = ve;
|
|
@@ -1141,16 +1141,16 @@ function fa(e) {
|
|
|
1141
1141
|
position: s
|
|
1142
1142
|
}, g && Ir), E = m === !0 ? Nr({
|
|
1143
1143
|
x: v,
|
|
1144
|
-
y:
|
|
1144
|
+
y: M
|
|
1145
1145
|
}, ue(a)) : {
|
|
1146
1146
|
x: v,
|
|
1147
|
-
y:
|
|
1147
|
+
y: M
|
|
1148
1148
|
};
|
|
1149
|
-
if (v = E.x,
|
|
1149
|
+
if (v = E.x, M = E.y, c) {
|
|
1150
1150
|
var S;
|
|
1151
|
-
return Object.assign({}, j, (S = {}, S[T] = O ? "0" : "", S[F] = V ? "0" : "", S.transform = (N.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " +
|
|
1151
|
+
return Object.assign({}, j, (S = {}, S[T] = O ? "0" : "", S[F] = V ? "0" : "", S.transform = (N.devicePixelRatio || 1) <= 1 ? "translate(" + v + "px, " + M + "px)" : "translate3d(" + v + "px, " + M + "px, 0)", S));
|
|
1152
1152
|
}
|
|
1153
|
-
return Object.assign({}, j, (t = {}, t[T] = O ?
|
|
1153
|
+
return Object.assign({}, j, (t = {}, t[T] = O ? M + "px" : "", t[F] = V ? v + "px" : "", t.transform = "", t));
|
|
1154
1154
|
}
|
|
1155
1155
|
function qr(e) {
|
|
1156
1156
|
var t = e.state, a = e.options, n = a.gpuAcceleration, o = n === void 0 ? !0 : n, l = a.adaptive, d = l === void 0 ? !0 : l, s = a.roundOffsets, c = s === void 0 ? !0 : s, g = {
|
|
@@ -1350,7 +1350,7 @@ function Ga(e) {
|
|
|
1350
1350
|
}
|
|
1351
1351
|
function at(e, t) {
|
|
1352
1352
|
t === void 0 && (t = {});
|
|
1353
|
-
var a = t, n = a.placement, o = n === void 0 ? e.placement : n, l = a.strategy, d = l === void 0 ? e.strategy : l, s = a.boundary, c = s === void 0 ? kr : s, g = a.rootBoundary, m = g === void 0 ? Na : g, h = a.elementContext, b = h === void 0 ? Qe : h, v = a.altBoundary, k = v === void 0 ? !1 : v,
|
|
1353
|
+
var a = t, n = a.placement, o = n === void 0 ? e.placement : n, l = a.strategy, d = l === void 0 ? e.strategy : l, s = a.boundary, c = s === void 0 ? kr : s, g = a.rootBoundary, m = g === void 0 ? Na : g, h = a.elementContext, b = h === void 0 ? Qe : h, v = a.altBoundary, k = v === void 0 ? !1 : v, M = a.padding, C = M === void 0 ? 0 : M, V = Xa(typeof C != "number" ? C : Qa(C, lt)), O = b === Qe ? yr : Qe, F = e.rects.popper, T = e.elements[k ? O : b], N = _r(Le(T) ? T : T.contextElement || Ae(e.elements.popper), c, m, d), R = Ue(e.elements.reference), W = Ga({
|
|
1354
1354
|
reference: R,
|
|
1355
1355
|
element: F,
|
|
1356
1356
|
placement: o
|
|
@@ -1377,16 +1377,16 @@ function eo(e, t) {
|
|
|
1377
1377
|
return g.indexOf(k) >= 0;
|
|
1378
1378
|
});
|
|
1379
1379
|
b.length === 0 && (b = h);
|
|
1380
|
-
var v = b.reduce(function(k,
|
|
1381
|
-
return k[
|
|
1382
|
-
placement:
|
|
1380
|
+
var v = b.reduce(function(k, M) {
|
|
1381
|
+
return k[M] = at(e, {
|
|
1382
|
+
placement: M,
|
|
1383
1383
|
boundary: o,
|
|
1384
1384
|
rootBoundary: l,
|
|
1385
1385
|
padding: d
|
|
1386
|
-
})[ke(
|
|
1386
|
+
})[ke(M)], k;
|
|
1387
1387
|
}, {});
|
|
1388
|
-
return Object.keys(v).sort(function(k,
|
|
1389
|
-
return v[k] - v[
|
|
1388
|
+
return Object.keys(v).sort(function(k, M) {
|
|
1389
|
+
return v[k] - v[M];
|
|
1390
1390
|
});
|
|
1391
1391
|
}
|
|
1392
1392
|
function to(e) {
|
|
@@ -1398,14 +1398,14 @@ function to(e) {
|
|
|
1398
1398
|
function ao(e) {
|
|
1399
1399
|
var t = e.state, a = e.options, n = e.name;
|
|
1400
1400
|
if (!t.modifiersData[n]._skip) {
|
|
1401
|
-
for (var o = a.mainAxis, l = o === void 0 ? !0 : o, d = a.altAxis, s = d === void 0 ? !0 : d, c = a.fallbackPlacements, g = a.padding, m = a.boundary, h = a.rootBoundary, b = a.altBoundary, v = a.flipVariations, k = v === void 0 ? !0 : v,
|
|
1401
|
+
for (var o = a.mainAxis, l = o === void 0 ? !0 : o, d = a.altAxis, s = d === void 0 ? !0 : d, c = a.fallbackPlacements, g = a.padding, m = a.boundary, h = a.rootBoundary, b = a.altBoundary, v = a.flipVariations, k = v === void 0 ? !0 : v, M = a.allowedAutoPlacements, C = t.options.placement, V = ke(C), O = V === C, F = c || (O || !k ? [mt(C)] : to(C)), T = [C].concat(F).reduce(function(he, pe) {
|
|
1402
1402
|
return he.concat(ke(pe) === Pt ? eo(t, {
|
|
1403
1403
|
placement: pe,
|
|
1404
1404
|
boundary: m,
|
|
1405
1405
|
rootBoundary: h,
|
|
1406
1406
|
padding: g,
|
|
1407
1407
|
flipVariations: k,
|
|
1408
|
-
allowedAutoPlacements:
|
|
1408
|
+
allowedAutoPlacements: M
|
|
1409
1409
|
}) : pe);
|
|
1410
1410
|
}, []), N = t.rects.reference, R = t.rects.popper, W = /* @__PURE__ */ new Map(), $ = !0, B = T[0], P = 0; P < T.length; P++) {
|
|
1411
1411
|
var j = T[P], E = ke(j), S = Ze(j) === Ne, A = [ie, ge].indexOf(E) >= 0, w = A ? "width" : "height", y = at(t, {
|
|
@@ -1536,14 +1536,14 @@ function fo(e) {
|
|
|
1536
1536
|
return e === "x" ? "y" : "x";
|
|
1537
1537
|
}
|
|
1538
1538
|
function mo(e) {
|
|
1539
|
-
var t = e.state, a = e.options, n = e.name, o = a.mainAxis, l = o === void 0 ? !0 : o, d = a.altAxis, s = d === void 0 ? !1 : d, c = a.boundary, g = a.rootBoundary, m = a.altBoundary, h = a.padding, b = a.tether, v = b === void 0 ? !0 : b, k = a.tetherOffset,
|
|
1539
|
+
var t = e.state, a = e.options, n = e.name, o = a.mainAxis, l = o === void 0 ? !0 : o, d = a.altAxis, s = d === void 0 ? !1 : d, c = a.boundary, g = a.rootBoundary, m = a.altBoundary, h = a.padding, b = a.tether, v = b === void 0 ? !0 : b, k = a.tetherOffset, M = k === void 0 ? 0 : k, C = at(t, {
|
|
1540
1540
|
boundary: c,
|
|
1541
1541
|
rootBoundary: g,
|
|
1542
1542
|
padding: h,
|
|
1543
1543
|
altBoundary: m
|
|
1544
|
-
}), V = ke(t.placement), O = Ze(t.placement), F = !O, T = It(V), N = fo(T), R = t.modifiersData.popperOffsets, W = t.rects.reference, $ = t.rects.popper, B = typeof
|
|
1544
|
+
}), V = ke(t.placement), O = Ze(t.placement), F = !O, T = It(V), N = fo(T), R = t.modifiersData.popperOffsets, W = t.rects.reference, $ = t.rects.popper, B = typeof M == "function" ? M(Object.assign({}, t.rects, {
|
|
1545
1545
|
placement: t.placement
|
|
1546
|
-
})) :
|
|
1546
|
+
})) : M, P = typeof B == "number" ? {
|
|
1547
1547
|
mainAxis: B,
|
|
1548
1548
|
altAxis: B
|
|
1549
1549
|
} : Object.assign({
|
|
@@ -1555,14 +1555,14 @@ function mo(e) {
|
|
|
1555
1555
|
};
|
|
1556
1556
|
if (R) {
|
|
1557
1557
|
if (l) {
|
|
1558
|
-
var S, A = T === "y" ? ie : de, w = T === "y" ? ge : ve, y = T === "y" ? "height" : "width", p = R[T], z = p +
|
|
1558
|
+
var S, A = T === "y" ? ie : de, w = T === "y" ? ge : ve, y = T === "y" ? "height" : "width", p = R[T], z = p + C[A], Z = p - C[w], te = v ? -$[y] / 2 : 0, le = O === Ne ? W[y] : $[y], ae = O === Ne ? -$[y] : -W[y], ne = t.elements.arrow, he = v && ne ? Rt(ne) : {
|
|
1559
1559
|
width: 0,
|
|
1560
1560
|
height: 0
|
|
1561
1561
|
}, pe = t.modifiersData["arrow#persistent"] ? t.modifiersData["arrow#persistent"].padding : Wa(), Xe = pe[A], it = pe[w], Be = Ke(0, W[y], he[y]), xt = F ? W[y] / 2 - te - Be - Xe - P.mainAxis : le - Be - Xe - P.mainAxis, on = F ? -W[y] / 2 + te + Be + it + P.mainAxis : ae + Be + it + P.mainAxis, wt = t.elements.arrow && st(t.elements.arrow), ln = wt ? T === "y" ? wt.clientTop || 0 : wt.clientLeft || 0 : 0, Gt = (S = j == null ? void 0 : j[T]) != null ? S : 0, sn = p + xt - Gt - ln, dn = p + on - Gt, Jt = Ke(v ? gt(z, sn) : z, p, v ? Ve(Z, dn) : Z);
|
|
1562
1562
|
R[T] = Jt, E[T] = Jt - p;
|
|
1563
1563
|
}
|
|
1564
1564
|
if (s) {
|
|
1565
|
-
var Kt, un = T === "x" ? ie : de, cn = T === "x" ? ge : ve, De = R[N], dt = N === "y" ? "height" : "width", _t = De +
|
|
1565
|
+
var Kt, un = T === "x" ? ie : de, cn = T === "x" ? ge : ve, De = R[N], dt = N === "y" ? "height" : "width", _t = De + C[un], ea = De - C[cn], Ct = [ie, de].indexOf(V) !== -1, ta = (Kt = j == null ? void 0 : j[N]) != null ? Kt : 0, aa = Ct ? _t : De - W[dt] - $[dt] - ta + P.altAxis, na = Ct ? De + W[dt] + $[dt] - ta - P.altAxis : ea, ra = v && Ct ? zr(aa, De, na) : Ke(v ? aa : _t, De, v ? na : ea);
|
|
1566
1566
|
R[N] = ra, E[N] = ra - De;
|
|
1567
1567
|
}
|
|
1568
1568
|
t.modifiersData[n] = E;
|
|
@@ -1686,7 +1686,7 @@ function Co(e) {
|
|
|
1686
1686
|
state: m,
|
|
1687
1687
|
setOptions: function(V) {
|
|
1688
1688
|
var O = typeof V == "function" ? V(m.options) : V;
|
|
1689
|
-
|
|
1689
|
+
M(), m.options = Object.assign({}, l, m.options, O), m.scrollParents = {
|
|
1690
1690
|
reference: Le(s) ? _e(s) : s.contextElement ? _e(s.contextElement) : [],
|
|
1691
1691
|
popper: _e(c)
|
|
1692
1692
|
};
|
|
@@ -1729,22 +1729,22 @@ function Co(e) {
|
|
|
1729
1729
|
// Async and optimistically optimized update – it will not be executed if
|
|
1730
1730
|
// not necessary (debounced to run at most once-per-tick)
|
|
1731
1731
|
update: xo(function() {
|
|
1732
|
-
return new Promise(function(
|
|
1733
|
-
v.forceUpdate(),
|
|
1732
|
+
return new Promise(function(C) {
|
|
1733
|
+
v.forceUpdate(), C(m);
|
|
1734
1734
|
});
|
|
1735
1735
|
}),
|
|
1736
1736
|
destroy: function() {
|
|
1737
|
-
|
|
1737
|
+
M(), b = !0;
|
|
1738
1738
|
}
|
|
1739
1739
|
};
|
|
1740
1740
|
if (!ba(s, c))
|
|
1741
1741
|
return v;
|
|
1742
|
-
v.setOptions(g).then(function(
|
|
1743
|
-
!b && g.onFirstUpdate && g.onFirstUpdate(
|
|
1742
|
+
v.setOptions(g).then(function(C) {
|
|
1743
|
+
!b && g.onFirstUpdate && g.onFirstUpdate(C);
|
|
1744
1744
|
});
|
|
1745
1745
|
function k() {
|
|
1746
|
-
m.orderedModifiers.forEach(function(
|
|
1747
|
-
var V =
|
|
1746
|
+
m.orderedModifiers.forEach(function(C) {
|
|
1747
|
+
var V = C.name, O = C.options, F = O === void 0 ? {} : O, T = C.effect;
|
|
1748
1748
|
if (typeof T == "function") {
|
|
1749
1749
|
var N = T({
|
|
1750
1750
|
state: m,
|
|
@@ -1757,9 +1757,9 @@ function Co(e) {
|
|
|
1757
1757
|
}
|
|
1758
1758
|
});
|
|
1759
1759
|
}
|
|
1760
|
-
function
|
|
1761
|
-
h.forEach(function(
|
|
1762
|
-
return
|
|
1760
|
+
function M() {
|
|
1761
|
+
h.forEach(function(C) {
|
|
1762
|
+
return C();
|
|
1763
1763
|
}), h = [];
|
|
1764
1764
|
}
|
|
1765
1765
|
return v;
|
|
@@ -1885,8 +1885,8 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
1885
1885
|
temSlotTitle: b,
|
|
1886
1886
|
editarEspacamento: v,
|
|
1887
1887
|
copiadoId: k,
|
|
1888
|
-
hoverId:
|
|
1889
|
-
temSlots:
|
|
1888
|
+
hoverId: M,
|
|
1889
|
+
temSlots: C,
|
|
1890
1890
|
temSlotPagination: V,
|
|
1891
1891
|
obterSlotName: O,
|
|
1892
1892
|
ativarIconeDeCopiarCelula: F,
|
|
@@ -1974,7 +1974,7 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
1974
1974
|
])])),
|
|
1975
1975
|
i("div", Lo, [
|
|
1976
1976
|
i("table", {
|
|
1977
|
-
class: x([r(
|
|
1977
|
+
class: x([r(C) || e.search ? "border-t rounded-lg" : "border-none", "w-full min-w-max border-collapse text-ce_gray dark:text-ce_light_gray font-normal sm:hidden"])
|
|
1978
1978
|
}, [
|
|
1979
1979
|
i("thead", {
|
|
1980
1980
|
class: x({ "bg-ce_white dark:bg-transparent": !e.striped })
|
|
@@ -2065,7 +2065,7 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2065
2065
|
_: 2
|
|
2066
2066
|
}, 1032, ["text"])) : (u(), f("p", Wo, H(typeof p.value == "function" ? p.value(w) : r(E)(w, p.value)), 1)),
|
|
2067
2067
|
e.copyable ? (u(), f("span", Xo, [
|
|
2068
|
-
r(
|
|
2068
|
+
r(M) === `${y}-${z}` ? (u(), _(Y, {
|
|
2069
2069
|
key: 0,
|
|
2070
2070
|
name: r(Bn),
|
|
2071
2071
|
size: "15",
|
|
@@ -2107,7 +2107,7 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2107
2107
|
], 512));
|
|
2108
2108
|
}
|
|
2109
2109
|
}), Go = /* @__PURE__ */ pt(Yo, [["__scopeId", "data-v-7a33d535"]]), Jo = (e) => {
|
|
2110
|
-
const t = L(e.currentPage), a = 6, n = L(1), o = U(() => l.value.length), l = U(() => {
|
|
2110
|
+
const t = L(e.currentPage), a = L(e.paginationPages || 6), n = L(1), o = U(() => l.value.length), l = U(() => {
|
|
2111
2111
|
if (e.totalItems && e.itemsPerPage) {
|
|
2112
2112
|
const h = Math.ceil(e.totalItems / e.itemsPerPage);
|
|
2113
2113
|
return Array.from({ length: h }, (b, v) => v + 1);
|
|
@@ -2115,9 +2115,15 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2115
2115
|
return Array.from({ length: e.totalPages }, (h, b) => b + 1);
|
|
2116
2116
|
});
|
|
2117
2117
|
K(
|
|
2118
|
+
() => e.paginationPages,
|
|
2119
|
+
(h) => {
|
|
2120
|
+
a.value = h <= 0 ? 1 : h;
|
|
2121
|
+
},
|
|
2122
|
+
{ immediate: !0 }
|
|
2123
|
+
), K(
|
|
2118
2124
|
() => e.currentPage,
|
|
2119
2125
|
(h) => {
|
|
2120
|
-
h > 0 && h <= o.value ? t.value = h : t.value = 1, t.value <= a ? n.value = 1 : t.value > o.value - a ? n.value = o.value - a + 1 : n.value = t.value - Math.floor(a / 2);
|
|
2126
|
+
h > 0 && h <= o.value ? t.value = h : t.value = 1, t.value <= a.value ? n.value = 1 : t.value > o.value - a.value ? n.value = o.value - a.value + 1 : n.value = t.value - Math.floor(a.value / 2);
|
|
2121
2127
|
},
|
|
2122
2128
|
{ immediate: !0 }
|
|
2123
2129
|
), K(
|
|
@@ -2136,17 +2142,17 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2136
2142
|
}
|
|
2137
2143
|
}
|
|
2138
2144
|
function s(h) {
|
|
2139
|
-
t.value < o.value && (t.value++, se("ce-pagination") ? h("paginate", t.value) : h("update:modelValue", t.value), t.value > n.value + a - 1 && n.value++);
|
|
2145
|
+
t.value < o.value && (t.value++, se("ce-pagination") ? h("paginate", t.value) : h("update:modelValue", t.value), t.value > n.value + a.value - 1 && n.value++);
|
|
2140
2146
|
}
|
|
2141
2147
|
function c(h) {
|
|
2142
2148
|
t.value > 1 && (t.value--, se("ce-pagination") ? h("paginate", t.value) : h("update:modelValue", t.value), t.value < n.value && n.value--);
|
|
2143
2149
|
}
|
|
2144
2150
|
function g() {
|
|
2145
|
-
const h = n.value +
|
|
2151
|
+
const h = n.value + a.value;
|
|
2146
2152
|
n.value = Math.min(h, o.value), t.value = n.value;
|
|
2147
2153
|
}
|
|
2148
2154
|
function m() {
|
|
2149
|
-
const h = n.value -
|
|
2155
|
+
const h = n.value - a.value;
|
|
2150
2156
|
n.value = Math.max(h, 1), t.value = n.value;
|
|
2151
2157
|
}
|
|
2152
2158
|
return {
|
|
@@ -2171,7 +2177,8 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2171
2177
|
currentPage: { default: 1 },
|
|
2172
2178
|
itemsPerPage: { default: 10 },
|
|
2173
2179
|
totalItems: {},
|
|
2174
|
-
modelValue: {}
|
|
2180
|
+
modelValue: {},
|
|
2181
|
+
paginationPages: { default: 6 }
|
|
2175
2182
|
},
|
|
2176
2183
|
emits: ["paginate", "update:modelValue"],
|
|
2177
2184
|
setup(e, { emit: t }) {
|
|
@@ -2179,18 +2186,19 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2179
2186
|
paginaAtual: l,
|
|
2180
2187
|
totalPaginas: d,
|
|
2181
2188
|
maximoPaginas: s,
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2189
|
+
itensExibidos: c,
|
|
2190
|
+
inicio: g,
|
|
2191
|
+
contador: m,
|
|
2192
|
+
proximo: h,
|
|
2193
|
+
anterior: b,
|
|
2194
|
+
avancar: v,
|
|
2195
|
+
retoceder: k
|
|
2188
2196
|
} = Jo(n);
|
|
2189
|
-
return (
|
|
2197
|
+
return (M, C) => (u(), f("div", Ko, [
|
|
2190
2198
|
i("button", {
|
|
2191
2199
|
type: "button",
|
|
2192
2200
|
class: "flex items-center justify-center w-28 sm:border rounded-l-lg sm:w-12 hover:bg-ce_white transition-transform duration-500 ease-in-out active:scale-90 dark:hover:bg-ce_dark_gray",
|
|
2193
|
-
onClick: C[0] || (C[0] = (
|
|
2201
|
+
onClick: C[0] || (C[0] = (V) => r(b)(o)),
|
|
2194
2202
|
disabled: r(l) === 1
|
|
2195
2203
|
}, [
|
|
2196
2204
|
i("div", el, [
|
|
@@ -2206,8 +2214,8 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2206
2214
|
key: 0,
|
|
2207
2215
|
type: "button",
|
|
2208
2216
|
class: "border-l h-full flex items-center justify-center w-10 sm:hidden hover:bg-ce_white transition-transform duration-500 ease-in-out active:scale-90 dark:hover:bg-ce_dark_gray",
|
|
2209
|
-
onClick: C[1] || (C[1] = (
|
|
2210
|
-
disabled: r(l)
|
|
2217
|
+
onClick: C[1] || (C[1] = (V) => r(k)()),
|
|
2218
|
+
disabled: r(l) <= 1
|
|
2211
2219
|
}, [
|
|
2212
2220
|
q(Y, {
|
|
2213
2221
|
name: r(Sn),
|
|
@@ -2216,25 +2224,25 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2216
2224
|
}, null, 8, ["name", "color"])
|
|
2217
2225
|
], 8, tl)) : D("", !0),
|
|
2218
2226
|
i("div", al, [
|
|
2219
|
-
(u(!0), f(X, null, J(r(d).slice(r(
|
|
2220
|
-
key:
|
|
2227
|
+
(u(!0), f(X, null, J(r(d).slice(r(g) - 1, r(g) - 1 + r(c)), (V, O) => (u(), f("button", {
|
|
2228
|
+
key: O,
|
|
2221
2229
|
class: x([[
|
|
2222
|
-
r(l) ===
|
|
2223
|
-
r(s) >
|
|
2230
|
+
r(l) === V ? "bg-ce_white dark:bg-ce_dark_gray" : "",
|
|
2231
|
+
r(s) > r(c) ? "border-r-0" : "border-r"
|
|
2224
2232
|
], "px-3 py-[0.45rem] border-l w-10 text-ce_dark_gray sm:hidden hover:bg-ce_white transition-transform duration-500 ease-in-out active:scale-90 dark:text-ce_light_gray dark:hover:bg-ce_dark_gray"]),
|
|
2225
2233
|
type: "button",
|
|
2226
|
-
onClick: (
|
|
2234
|
+
onClick: (F) => r(m)(V, o)
|
|
2227
2235
|
}, [
|
|
2228
|
-
i("p", null, H(
|
|
2236
|
+
i("p", null, H(V), 1)
|
|
2229
2237
|
], 10, nl))), 128)),
|
|
2230
2238
|
i("p", rl, " Página " + H(r(l)) + " de " + H(r(d).length), 1)
|
|
2231
2239
|
]),
|
|
2232
|
-
r(s) >
|
|
2240
|
+
r(s) > r(c) ? (u(), f("button", {
|
|
2233
2241
|
key: 1,
|
|
2234
2242
|
class: "border-r border-l h-full flex items-center justify-center w-10 sm:hidden hover:bg-ce_white dark:hover:bg-ce_dark_gray transition-transform duration-500 ease-in-out active:scale-90",
|
|
2235
2243
|
type: "button",
|
|
2236
|
-
onClick: C[2] || (C[2] = (
|
|
2237
|
-
disabled: r(
|
|
2244
|
+
onClick: C[2] || (C[2] = (V) => r(v)()),
|
|
2245
|
+
disabled: r(g) + r(c) - 1 >= r(s)
|
|
2238
2246
|
}, [
|
|
2239
2247
|
q(Y, {
|
|
2240
2248
|
name: r($n),
|
|
@@ -2245,7 +2253,7 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2245
2253
|
i("button", {
|
|
2246
2254
|
type: "button",
|
|
2247
2255
|
class: "flex items-center justify-center w-28 sm:border rounded-r-lg sm:w-12 hover:bg-ce_white dark:hover:bg-ce_dark_gray transition-transform duration-500 ease-in-out active:scale-90",
|
|
2248
|
-
onClick: C[3] || (C[3] = (
|
|
2256
|
+
onClick: C[3] || (C[3] = (V) => r(h)(o)),
|
|
2249
2257
|
disabled: r(l) >= r(s)
|
|
2250
2258
|
}, [
|
|
2251
2259
|
i("div", sl, [
|
|
@@ -2445,8 +2453,8 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2445
2453
|
t("update:modelValue", k);
|
|
2446
2454
|
}, v = (k) => {
|
|
2447
2455
|
var O, F;
|
|
2448
|
-
const
|
|
2449
|
-
!
|
|
2456
|
+
const M = k.target, C = (O = o.value) == null ? void 0 : O.contains(M), V = (F = l.value) == null ? void 0 : F.contains(M);
|
|
2457
|
+
!C && !V && (s.value = !1);
|
|
2450
2458
|
};
|
|
2451
2459
|
return K(
|
|
2452
2460
|
() => s.value,
|
|
@@ -2502,7 +2510,7 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2502
2510
|
fechar: b,
|
|
2503
2511
|
selecionarOpcoes: v
|
|
2504
2512
|
} = Cl(a, n);
|
|
2505
|
-
return (k,
|
|
2513
|
+
return (k, M) => (u(), f(X, null, [
|
|
2506
2514
|
i("div", {
|
|
2507
2515
|
class: x(["flex items-center gap-2 select-none flex-wrap", { "flex-row-reverse": e.textDirection === "right", "flex-row": e.textDirection === "left" }]),
|
|
2508
2516
|
ref_key: "menuRef",
|
|
@@ -2515,7 +2523,7 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2515
2523
|
ref: s,
|
|
2516
2524
|
type: "button",
|
|
2517
2525
|
disabled: e.disabled,
|
|
2518
|
-
onClick:
|
|
2526
|
+
onClick: M[0] || (M[0] = (C) => r(h)()),
|
|
2519
2527
|
class: x([e.disabled ? "bg-ce_light_gray" : "bg-white dark:bg-ce_black", "min-w-16 h-10 text-left p-3 border border-[#D6D6D6] rounded shadow-sm flex items-center justify-between dark:text-ce_light_gray"])
|
|
2520
2528
|
}, [
|
|
2521
2529
|
i("p", {
|
|
@@ -2540,15 +2548,15 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2540
2548
|
"absolute z-50 bg-white dark:bg-ce_black border border-gray-300 rounded-md shadow-md",
|
|
2541
2549
|
r(g)
|
|
2542
2550
|
]),
|
|
2543
|
-
onKeydown:
|
|
2551
|
+
onKeydown: M[1] || (M[1] = Ta(Ee((C) => r(b)(), ["prevent"]), ["esc"]))
|
|
2544
2552
|
}, [
|
|
2545
|
-
(u(!0), f(X, null, J(e.options, (
|
|
2546
|
-
key:
|
|
2547
|
-
onClick: (V) => r(v)(
|
|
2553
|
+
(u(!0), f(X, null, J(e.options, (C) => (u(), f("li", {
|
|
2554
|
+
key: C,
|
|
2555
|
+
onClick: (V) => r(v)(C),
|
|
2548
2556
|
tabindex: "0",
|
|
2549
2557
|
role: "option",
|
|
2550
2558
|
class: "px-3 py-1.5 hover:bg-gray-100 dark:hover:bg-ce_medium_gray cursor-pointer dark:text-ce_light_gray"
|
|
2551
|
-
}, H(
|
|
2559
|
+
}, H(C), 9, Sl))), 128))
|
|
2552
2560
|
], 42, Dl)) : D("", !0)
|
|
2553
2561
|
]))
|
|
2554
2562
|
], 64));
|
|
@@ -2671,9 +2679,9 @@ const Ka = /* @__PURE__ */ Q({
|
|
|
2671
2679
|
key: 0,
|
|
2672
2680
|
class: x(["absolute w-full border mt-1 rounded-md shadow-lg z-10", e.background == "white" ? "bg-white dark:bg-ce_black" : "bg-ce_black"])
|
|
2673
2681
|
}, [
|
|
2674
|
-
(u(!0), f(X, null, J(r(l), (k,
|
|
2675
|
-
key:
|
|
2676
|
-
onMousedown: (
|
|
2682
|
+
(u(!0), f(X, null, J(r(l), (k, M) => (u(), f("li", {
|
|
2683
|
+
key: M,
|
|
2684
|
+
onMousedown: (C) => r(m)(k),
|
|
2677
2685
|
class: x([
|
|
2678
2686
|
"p-2 cursor-pointer",
|
|
2679
2687
|
e.background == "white" ? "dark:text-white hover:text-ce_light_gray hover:bg-gray-100 dark:hover:bg-ce_dark_gray" : "hover:bg-ce_dark_gray text-white hover:text-ce_light_gray"
|
|
@@ -3065,7 +3073,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3065
3073
|
const v = { month: "long", year: "numeric" }, k = a.value.toLocaleDateString("pt-BR", v);
|
|
3066
3074
|
return k.charAt(0).toUpperCase() + k.slice(1);
|
|
3067
3075
|
}), o = U(() => {
|
|
3068
|
-
const v = a.value.getFullYear(), k = a.value.getMonth(),
|
|
3076
|
+
const v = a.value.getFullYear(), k = a.value.getMonth(), C = new Date(v, k, 1).getDay(), V = new Date(v, k, 1 - (C + 6) % 7), O = [];
|
|
3069
3077
|
for (let F = 0; F < 42; F++) {
|
|
3070
3078
|
const T = new Date(
|
|
3071
3079
|
V.getFullYear(),
|
|
@@ -3100,15 +3108,15 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3100
3108
|
checkDataSelecionada: (v) => e.rangeStart || e.rangeEnd ? e.rangeStart && Bt(v, e.rangeStart) || e.rangeEnd && Bt(v, e.rangeEnd) : e.internalDate ? Bt(v, e.internalDate) : !1,
|
|
3101
3109
|
checkFinalRange: (v) => {
|
|
3102
3110
|
if (e.rangeStart && e.rangeEnd) {
|
|
3103
|
-
const k = e.rangeStart.getTime(),
|
|
3104
|
-
return
|
|
3111
|
+
const k = e.rangeStart.getTime(), M = e.rangeEnd.getTime(), C = v.getTime();
|
|
3112
|
+
return C > Math.min(k, M) && C < Math.max(k, M);
|
|
3105
3113
|
}
|
|
3106
3114
|
return !1;
|
|
3107
3115
|
},
|
|
3108
3116
|
aplicaHoverRange: (v) => {
|
|
3109
3117
|
if (e.rangeStart && !e.rangeEnd && e.hoveredDate) {
|
|
3110
|
-
const k = e.rangeStart.getTime(),
|
|
3111
|
-
return
|
|
3118
|
+
const k = e.rangeStart.getTime(), M = e.hoveredDate.getTime(), C = v.getTime();
|
|
3119
|
+
return C > Math.min(k, M) && C < Math.max(k, M);
|
|
3112
3120
|
}
|
|
3113
3121
|
return !1;
|
|
3114
3122
|
},
|
|
@@ -3147,11 +3155,11 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3147
3155
|
handleMouseEnter: v,
|
|
3148
3156
|
handleMouseLeave: k
|
|
3149
3157
|
} = ls(n);
|
|
3150
|
-
return (
|
|
3158
|
+
return (M, C) => (u(), f("div", re({ class: "min-w-[300px] text-sm" }, M.$attrs), [
|
|
3151
3159
|
i("div", ss, [
|
|
3152
3160
|
i("button", {
|
|
3153
3161
|
type: "button",
|
|
3154
|
-
onClick:
|
|
3162
|
+
onClick: C[0] || (C[0] = (V) => r(s)(o)),
|
|
3155
3163
|
class: "p-2 rounded-md hover:bg-gray-100 dark:hover:bg-ce_medium_gray"
|
|
3156
3164
|
}, [
|
|
3157
3165
|
(u(), f("svg", {
|
|
@@ -3160,7 +3168,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3160
3168
|
stroke: r(a) ? "#d6d6d6" : "currentColor",
|
|
3161
3169
|
"stroke-width": "2",
|
|
3162
3170
|
viewBox: "0 0 24 24"
|
|
3163
|
-
}, [...
|
|
3171
|
+
}, [...C[3] || (C[3] = [
|
|
3164
3172
|
i("path", {
|
|
3165
3173
|
"stroke-linecap": "round",
|
|
3166
3174
|
"stroke-linejoin": "round",
|
|
@@ -3171,7 +3179,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3171
3179
|
i("div", ds, H(r(d)), 1),
|
|
3172
3180
|
i("button", {
|
|
3173
3181
|
type: "button",
|
|
3174
|
-
onClick:
|
|
3182
|
+
onClick: C[1] || (C[1] = (V) => r(c)(o)),
|
|
3175
3183
|
class: "p-2 rounded-md hover:bg-gray-100 dark:hover:bg-ce_medium_gray"
|
|
3176
3184
|
}, [
|
|
3177
3185
|
(u(), f("svg", {
|
|
@@ -3180,7 +3188,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3180
3188
|
stroke: r(a) ? "#d6d6d6" : "currentColor",
|
|
3181
3189
|
"stroke-width": "2",
|
|
3182
3190
|
viewBox: "0 0 24 24"
|
|
3183
|
-
}, [...
|
|
3191
|
+
}, [...C[4] || (C[4] = [
|
|
3184
3192
|
i("path", {
|
|
3185
3193
|
"stroke-linecap": "round",
|
|
3186
3194
|
"stroke-linejoin": "round",
|
|
@@ -3200,7 +3208,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3200
3208
|
key: O,
|
|
3201
3209
|
onClick: () => r(b)(V, o),
|
|
3202
3210
|
onMouseenter: () => r(v)(V, o),
|
|
3203
|
-
onMouseleave:
|
|
3211
|
+
onMouseleave: C[2] || (C[2] = () => r(k)(o)),
|
|
3204
3212
|
class: x(["cursor-pointer", {
|
|
3205
3213
|
"select-date": r(g)(V.date),
|
|
3206
3214
|
"text-gray-400 dark:text-gray-500": !V.currentMonth,
|
|
@@ -3315,7 +3323,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3315
3323
|
const P = ft(s.value, B);
|
|
3316
3324
|
s.value = P, d.value = ft(P, -1);
|
|
3317
3325
|
}
|
|
3318
|
-
},
|
|
3326
|
+
}, M = () => k("left", -1), C = () => k("left", 1), V = () => k("right", -1), O = () => k("right", 1), F = ($) => {
|
|
3319
3327
|
d.value = new Date($.getFullYear(), $.getMonth(), 1), s.value = new Date(
|
|
3320
3328
|
d.value.getFullYear(),
|
|
3321
3329
|
d.value.getMonth() + 1,
|
|
@@ -3354,8 +3362,8 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3354
3362
|
closeCalendario: h,
|
|
3355
3363
|
selectSingleData: b,
|
|
3356
3364
|
handleRangeSelect: v,
|
|
3357
|
-
handleLeftPrevMes:
|
|
3358
|
-
handleLeftNextMes:
|
|
3365
|
+
handleLeftPrevMes: M,
|
|
3366
|
+
handleLeftNextMes: C,
|
|
3359
3367
|
handleRightPrevMes: V,
|
|
3360
3368
|
handleRightNextMes: O,
|
|
3361
3369
|
handleLeftUpdateMes: F,
|
|
@@ -3407,8 +3415,8 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3407
3415
|
hoveredDate: b,
|
|
3408
3416
|
selectSingleData: v,
|
|
3409
3417
|
updateSingleMes: k,
|
|
3410
|
-
handleRangeSelect:
|
|
3411
|
-
handleLeftPrevMes:
|
|
3418
|
+
handleRangeSelect: M,
|
|
3419
|
+
handleLeftPrevMes: C,
|
|
3412
3420
|
handleLeftNextMes: V,
|
|
3413
3421
|
handleLeftUpdateMes: O,
|
|
3414
3422
|
handleRightPrevMes: F,
|
|
@@ -3496,8 +3504,8 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3496
3504
|
rangeStart: r(c),
|
|
3497
3505
|
rangeEnd: r(g),
|
|
3498
3506
|
hoveredDate: r(b),
|
|
3499
|
-
onSelectDate: S[3] || (S[3] = (A) => r(
|
|
3500
|
-
onPrevMonth: r(
|
|
3507
|
+
onSelectDate: S[3] || (S[3] = (A) => r(M)(A, n, e.format)),
|
|
3508
|
+
onPrevMonth: r(C),
|
|
3501
3509
|
onNextMonth: r(V),
|
|
3502
3510
|
onUpdateMonth: r(O),
|
|
3503
3511
|
onHoverDate: r(R)
|
|
@@ -3509,7 +3517,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3509
3517
|
rangeStart: r(c),
|
|
3510
3518
|
rangeEnd: r(g),
|
|
3511
3519
|
hoveredDate: r(b),
|
|
3512
|
-
onSelectDate: S[4] || (S[4] = (A) => r(
|
|
3520
|
+
onSelectDate: S[4] || (S[4] = (A) => r(M)(A, n, e.format)),
|
|
3513
3521
|
onPrevMonth: r(F),
|
|
3514
3522
|
onNextMonth: r(T),
|
|
3515
3523
|
onUpdateMonth: r(N),
|
|
@@ -3541,8 +3549,8 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3541
3549
|
rangeStart: r(c),
|
|
3542
3550
|
rangeEnd: r(g),
|
|
3543
3551
|
hoveredDate: r(b),
|
|
3544
|
-
onSelectDate: S[8] || (S[8] = (A) => r(
|
|
3545
|
-
onPrevMonth: r(
|
|
3552
|
+
onSelectDate: S[8] || (S[8] = (A) => r(M)(A, n, e.format)),
|
|
3553
|
+
onPrevMonth: r(C),
|
|
3546
3554
|
onNextMonth: r(V),
|
|
3547
3555
|
onUpdateMonth: r(O),
|
|
3548
3556
|
onHoverDate: r(R)
|
|
@@ -3554,7 +3562,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3554
3562
|
rangeStart: r(c),
|
|
3555
3563
|
rangeEnd: r(g),
|
|
3556
3564
|
hoveredDate: r(b),
|
|
3557
|
-
onSelectDate: S[9] || (S[9] = (A) => r(
|
|
3565
|
+
onSelectDate: S[9] || (S[9] = (A) => r(M)(A, n, e.format)),
|
|
3558
3566
|
onPrevMonth: r(F),
|
|
3559
3567
|
onNextMonth: r(T),
|
|
3560
3568
|
onUpdateMonth: r(N),
|
|
@@ -3702,10 +3710,10 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3702
3710
|
function k(A) {
|
|
3703
3711
|
n.value = !n.value, e.value = n.value, d.value = !d.value, F(l.value), A("toggleMenu", n.value);
|
|
3704
3712
|
}
|
|
3705
|
-
function
|
|
3713
|
+
function M() {
|
|
3706
3714
|
return "opacity-0 max-w-0 overflow-hidden whitespace-nowrap flex items-center";
|
|
3707
3715
|
}
|
|
3708
|
-
function
|
|
3716
|
+
function C() {
|
|
3709
3717
|
return "opacity-100 max-w-[300px] transition-all duration-300";
|
|
3710
3718
|
}
|
|
3711
3719
|
function V(A) {
|
|
@@ -3815,8 +3823,8 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3815
3823
|
setarIndiceDropdowns: P,
|
|
3816
3824
|
setarBackupMenu: R,
|
|
3817
3825
|
obterTextosMenu: V,
|
|
3818
|
-
esconderComEfeito:
|
|
3819
|
-
mostrarComEfeito:
|
|
3826
|
+
esconderComEfeito: M,
|
|
3827
|
+
mostrarComEfeito: C,
|
|
3820
3828
|
alternarMenuPorClique: k,
|
|
3821
3829
|
expandirMenu: g,
|
|
3822
3830
|
colapsarMenu: m,
|
|
@@ -3907,13 +3915,13 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3907
3915
|
"py-2 px-3 text-sm space-y-1"
|
|
3908
3916
|
])
|
|
3909
3917
|
}, [
|
|
3910
|
-
(u(!0), f(X, null, J(r(d), (k,
|
|
3911
|
-
key:
|
|
3918
|
+
(u(!0), f(X, null, J(r(d), (k, M) => (u(), f("li", {
|
|
3919
|
+
key: M,
|
|
3912
3920
|
class: x([
|
|
3913
3921
|
e.background == "white" ? "hover:bg-gray-100 dark:hover:bg-ce_dark_gray" : "hover:bg-ce_dark_gray",
|
|
3914
3922
|
"flex items-center justify-between px-2 py-1 rounded cursor-pointer"
|
|
3915
3923
|
]),
|
|
3916
|
-
onClick: (
|
|
3924
|
+
onClick: (C) => r(g)(k, n)
|
|
3917
3925
|
}, [
|
|
3918
3926
|
i("div", Zs, [
|
|
3919
3927
|
k.icon ? (u(), _(Y, {
|
|
@@ -3963,13 +3971,13 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
3963
3971
|
ref: m,
|
|
3964
3972
|
class: x([e.background == "white" ? "bg-white dark:bg-ce_black " : "bg-ce_black", "absolute border border-gray-200 rounded-md shadow-md z-10 max-w-max py-2 px-4"])
|
|
3965
3973
|
}, [
|
|
3966
|
-
(u(!0), f(X, null, J(e.itemsMenu, (k,
|
|
3967
|
-
key:
|
|
3974
|
+
(u(!0), f(X, null, J(e.itemsMenu, (k, M) => (u(), f("div", {
|
|
3975
|
+
key: M,
|
|
3968
3976
|
ref_for: !0,
|
|
3969
3977
|
ref_key: "dropdownRef",
|
|
3970
3978
|
ref: m,
|
|
3971
|
-
class: x(["w-full", ["flex flex-col w-full flex-wrap",
|
|
3972
|
-
onClick: (
|
|
3979
|
+
class: x(["w-full", ["flex flex-col w-full flex-wrap", M !== e.itemsMenu.length - 1 && "mb-5"]]),
|
|
3980
|
+
onClick: (C) => r(c)(k, n)
|
|
3973
3981
|
}, [
|
|
3974
3982
|
i("div", Xs, [
|
|
3975
3983
|
k.icon ? (u(), f("div", {
|
|
@@ -4037,7 +4045,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
4037
4045
|
function k(y) {
|
|
4038
4046
|
s.value = [], m(y);
|
|
4039
4047
|
}
|
|
4040
|
-
const
|
|
4048
|
+
const M = (y) => e.accept.includes(y.type), C = (y) => {
|
|
4041
4049
|
var Z;
|
|
4042
4050
|
const p = (Z = y.split(".").pop()) == null ? void 0 : Z.toLowerCase();
|
|
4043
4051
|
return {
|
|
@@ -4099,7 +4107,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
4099
4107
|
if (y.preventDefault(), $(), (z = y.dataTransfer) != null && z.files) {
|
|
4100
4108
|
const Z = Array.from(y.dataTransfer.files);
|
|
4101
4109
|
if (j(y.dataTransfer.files)) return;
|
|
4102
|
-
if (Z.some((le) => !
|
|
4110
|
+
if (Z.some((le) => !M(le))) {
|
|
4103
4111
|
n.value = "Arquivo inválido! Formatos permitidos: " + R.value;
|
|
4104
4112
|
return;
|
|
4105
4113
|
}
|
|
@@ -4213,12 +4221,12 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
4213
4221
|
removerSelecionados: b,
|
|
4214
4222
|
removeArquivos: v,
|
|
4215
4223
|
manipulaArquivos: E,
|
|
4216
|
-
validaArquivo:
|
|
4224
|
+
validaArquivo: M,
|
|
4217
4225
|
recebeArquivo: N,
|
|
4218
4226
|
manipulaArquivoViaArrastaSolta: W,
|
|
4219
4227
|
simularProgresso: T,
|
|
4220
4228
|
manipulaArrastar: P,
|
|
4221
|
-
obterCorPorExtensao:
|
|
4229
|
+
obterCorPorExtensao: C,
|
|
4222
4230
|
validarArquivosRepetidos: j,
|
|
4223
4231
|
abrirSeletorDeArquivo: () => {
|
|
4224
4232
|
var y;
|
|
@@ -4305,8 +4313,11 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
4305
4313
|
}, ri = ["innerHTML"], oi = {
|
|
4306
4314
|
key: 1,
|
|
4307
4315
|
class: "text-red-600 text-sm"
|
|
4308
|
-
}, li = ["innerHTML"], si = { key: 3 }, ii = { class: "grid grid-cols-[auto_1fr] sm:grid-cols-1 sm:grid-rows-[auto_auto_auto] sm:gap-4 w-full gap-3" }, di = { class: "relative" }, ui = { class: "grid grid-rows-[1fr_auto] w-full" }, ci = { class: "flex items-start justify-between w-full sm:flex-col sm:gap-4" }, fi = {
|
|
4316
|
+
}, li = ["innerHTML"], si = { key: 3 }, ii = { class: "grid grid-cols-[auto_1fr] sm:grid-cols-1 sm:grid-rows-[auto_auto_auto] sm:gap-4 w-full gap-3" }, di = { class: "relative" }, ui = { class: "grid grid-rows-[1fr_auto] w-full" }, ci = { class: "flex items-start justify-between w-full sm:flex-col sm:gap-4" }, fi = {
|
|
4309
4317
|
key: 0,
|
|
4318
|
+
class: "text-gray-500"
|
|
4319
|
+
}, mi = {
|
|
4320
|
+
key: 1,
|
|
4310
4321
|
class: "font-semibold text-gray-500 mt-2"
|
|
4311
4322
|
}, gi = { class: "w-full flex items-center justify-end sm:mb-5 relative sm:justify-start gap-3" }, vi = { class: "flex flex-row items-center gap-1" }, hi = { key: 1 }, pi = { key: 2 }, bi = { key: 3 }, ki = ["onClick", "disabled"], yi = {
|
|
4312
4323
|
key: 0,
|
|
@@ -4354,8 +4365,8 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
4354
4365
|
carregando: b,
|
|
4355
4366
|
idComputado: v,
|
|
4356
4367
|
removerSelecionados: k,
|
|
4357
|
-
selecionaArquivo:
|
|
4358
|
-
manipulaArquivoViaArrastaSolta:
|
|
4368
|
+
selecionaArquivo: M,
|
|
4369
|
+
manipulaArquivoViaArrastaSolta: C,
|
|
4359
4370
|
manipulaArquivos: V,
|
|
4360
4371
|
removeArquivos: O,
|
|
4361
4372
|
restauraEstado: F,
|
|
@@ -4383,7 +4394,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
4383
4394
|
(...B) => r(T) && r(T)(...B)),
|
|
4384
4395
|
onDragleave: $[4] || ($[4] = //@ts-ignore
|
|
4385
4396
|
(...B) => r(F) && r(F)(...B)),
|
|
4386
|
-
onDrop: $[5] || ($[5] = (B) => r(
|
|
4397
|
+
onDrop: $[5] || ($[5] = (B) => r(C)(B, n))
|
|
4387
4398
|
}, [
|
|
4388
4399
|
a.selectAll && r(h).length > 0 ? (u(), f("button", {
|
|
4389
4400
|
key: 0,
|
|
@@ -4446,7 +4457,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
4446
4457
|
(...B) => r(T) && r(T)(...B)),
|
|
4447
4458
|
onDragleave: $[9] || ($[9] = //@ts-ignore
|
|
4448
4459
|
(...B) => r(F) && r(F)(...B)),
|
|
4449
|
-
onDrop: $[10] || ($[10] = (B) => r(
|
|
4460
|
+
onDrop: $[10] || ($[10] = (B) => r(C)(B, n))
|
|
4450
4461
|
}, [
|
|
4451
4462
|
i("p", {
|
|
4452
4463
|
class: x(["cursor-pointer flex items-center gap-2", {
|
|
@@ -4520,7 +4531,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
4520
4531
|
{ "!text-ce_black": B.status == "success" || B.status == "error" }
|
|
4521
4532
|
]])
|
|
4522
4533
|
}, H(B.file.name), 3),
|
|
4523
|
-
|
|
4534
|
+
B.file.size ? (u(), f("p", fi, H((B.file.size / 1024).toFixed(1)) + " KB ", 1)) : D("", !0),
|
|
4524
4535
|
I(W.$slots, "content"),
|
|
4525
4536
|
B.message ? (u(), f("p", mi, H(B.message), 1)) : D("", !0)
|
|
4526
4537
|
], 2),
|
|
@@ -4546,7 +4557,7 @@ const Zl = /* @__PURE__ */ pt(Nl, [["render", Ul]]), Wl = ["id", "checked", "dis
|
|
|
4546
4557
|
key: B.file.name + B.file.lastModified,
|
|
4547
4558
|
value: B,
|
|
4548
4559
|
disabled: r(b),
|
|
4549
|
-
onChange: (E) => r(
|
|
4560
|
+
onChange: (E) => r(M)(B, E)
|
|
4550
4561
|
}, null, 8, ["value", "disabled", "onChange"])) : D("", !0),
|
|
4551
4562
|
e.showRemoveButton ? (u(), f("button", {
|
|
4552
4563
|
key: 1,
|
|
@@ -4788,26 +4799,26 @@ const Oi = { class: "flex flex-row items-center gap-2 mb-1" }, Ri = ["for", "inn
|
|
|
4788
4799
|
},
|
|
4789
4800
|
emits: ["update:modelValue", "change", "openDropdown", "closeDropdown", "inputSearch"],
|
|
4790
4801
|
setup(e, { expose: t, emit: a }) {
|
|
4791
|
-
const n = e, o = a, l = be(), d = L(null), s = L(null), c = L(null), g = L(null), { hasSlot: m } = fe("selection", d, l), { selectAbertoRef: h, aberturaSelect: b } = zi(d, g), { termoBuscaRef: v, optsFiltradas: k } = Hi(n, o), { valorInternoRef:
|
|
4802
|
+
const n = e, o = a, l = be(), d = L(null), s = L(null), c = L(null), g = L(null), { hasSlot: m } = fe("selection", d, l), { selectAbertoRef: h, aberturaSelect: b } = zi(d, g), { termoBuscaRef: v, optsFiltradas: k } = Hi(n, o), { valorInternoRef: M, verValueSelecionado: C, valorInterno: V } = Pi(n), O = U(() => n.id || ze("select")), F = U(() => n.multiple && Array.isArray(M.value) ? M.value : []);
|
|
4792
4803
|
K(h, (j) => {
|
|
4793
4804
|
j ? (v.value = "", o("openDropdown")) : o("closeDropdown");
|
|
4794
4805
|
});
|
|
4795
|
-
const T = (j) => n.multiple ? Array.isArray(
|
|
4806
|
+
const T = (j) => n.multiple ? Array.isArray(M.value) && M.value.includes(j.value) : M.value === j.value, N = (j) => {
|
|
4796
4807
|
const E = n.options.find((S) => S.value === j);
|
|
4797
4808
|
return E ? E.label || E.value : j;
|
|
4798
4809
|
}, R = (j) => {
|
|
4799
4810
|
if (!n.multiple) return;
|
|
4800
|
-
const E = Array.isArray(
|
|
4801
|
-
S !== -1 && (E.splice(S, 1),
|
|
4811
|
+
const E = Array.isArray(M.value) ? [...M.value] : [], S = E.findIndex((A) => A === j);
|
|
4812
|
+
S !== -1 && (E.splice(S, 1), M.value = E, o("update:modelValue", E), o("change", E));
|
|
4802
4813
|
}, W = (j) => {
|
|
4803
4814
|
if (!T(j)) {
|
|
4804
|
-
const E = Array.isArray(
|
|
4805
|
-
E.push(j.value),
|
|
4815
|
+
const E = Array.isArray(M.value) ? [...M.value] : [];
|
|
4816
|
+
E.push(j.value), M.value = E, o("update:modelValue", E), o("change", E);
|
|
4806
4817
|
}
|
|
4807
4818
|
}, $ = (j) => {
|
|
4808
4819
|
if (T(j)) {
|
|
4809
|
-
const E = Array.isArray(
|
|
4810
|
-
S !== -1 && (E.splice(S, 1),
|
|
4820
|
+
const E = Array.isArray(M.value) ? [...M.value] : [], S = E.indexOf(j.value);
|
|
4821
|
+
S !== -1 && (E.splice(S, 1), M.value = E, o("update:modelValue", E), o("change", E));
|
|
4811
4822
|
}
|
|
4812
4823
|
}, B = (j, E, S) => {
|
|
4813
4824
|
if (n.multiple && E.shiftKey && s.value !== null) {
|
|
@@ -4822,14 +4833,14 @@ const Oi = { class: "flex flex-row items-center gap-2 mb-1" }, Ri = ["for", "inn
|
|
|
4822
4833
|
}, P = (j) => {
|
|
4823
4834
|
if (!j.disabled) {
|
|
4824
4835
|
if (n.multiple && (j.value === "" || j.value === null)) {
|
|
4825
|
-
|
|
4836
|
+
M.value = [], o("update:modelValue", []), o("change", []);
|
|
4826
4837
|
return;
|
|
4827
4838
|
}
|
|
4828
4839
|
if (n.multiple) {
|
|
4829
|
-
const E = Array.isArray(
|
|
4830
|
-
S === -1 ? E.push(j.value) : E.splice(S, 1),
|
|
4840
|
+
const E = Array.isArray(M.value) ? [...M.value] : [], S = E.indexOf(j.value);
|
|
4841
|
+
S === -1 ? E.push(j.value) : E.splice(S, 1), M.value = E, o("update:modelValue", E), o("change", E);
|
|
4831
4842
|
} else
|
|
4832
|
-
|
|
4843
|
+
M.value = j.value, o("update:modelValue", j.value), o("change", j.value), h.value = !1;
|
|
4833
4844
|
}
|
|
4834
4845
|
};
|
|
4835
4846
|
return t({
|
|
@@ -4877,7 +4888,7 @@ const Oi = { class: "flex flex-row items-center gap-2 mb-1" }, Ri = ["for", "inn
|
|
|
4877
4888
|
I(j.$slots, "prepend-inner"),
|
|
4878
4889
|
i("div", qi, [
|
|
4879
4890
|
e.multiple ? (u(), f(X, { key: 0 }, [
|
|
4880
|
-
I(j.$slots, "selection", { value: r(
|
|
4891
|
+
I(j.$slots, "selection", { value: r(C) }),
|
|
4881
4892
|
!r(m) && F.value.length ? (u(), f("div", Ui, [
|
|
4882
4893
|
(u(!0), f(X, null, J(F.value, (S, A) => (u(), f("div", {
|
|
4883
4894
|
key: A,
|
|
@@ -4900,15 +4911,15 @@ const Oi = { class: "flex flex-row items-center gap-2 mb-1" }, Ri = ["for", "inn
|
|
|
4900
4911
|
}, "font-normal text-sm"])
|
|
4901
4912
|
}, H(e.placeholder), 3))
|
|
4902
4913
|
], 64)) : (u(), f(X, { key: 1 }, [
|
|
4903
|
-
I(j.$slots, "selection", { value: r(
|
|
4904
|
-
!r(m) && r(
|
|
4914
|
+
I(j.$slots, "selection", { value: r(C) }),
|
|
4915
|
+
!r(m) && r(C) ? (u(), f("span", {
|
|
4905
4916
|
key: 0,
|
|
4906
4917
|
class: x(["text-sm", {
|
|
4907
4918
|
"dark:text-ce_light_gray text-gray-900": !e.disabled,
|
|
4908
4919
|
"dark:text-ce_medium_gray": e.disabled
|
|
4909
4920
|
}])
|
|
4910
|
-
}, H(r(
|
|
4911
|
-
r(
|
|
4921
|
+
}, H(r(C)), 3)) : D("", !0),
|
|
4922
|
+
r(C) ? D("", !0) : (u(), f("span", {
|
|
4912
4923
|
key: 1,
|
|
4913
4924
|
class: x(["font-normal text-sm", {
|
|
4914
4925
|
"dark:text-ce_light_gray text-gray-400": !e.disabled,
|
|
@@ -5089,8 +5100,8 @@ const Oi = { class: "flex flex-row items-center gap-2 mb-1" }, Ri = ["for", "inn
|
|
|
5089
5100
|
type: "range",
|
|
5090
5101
|
min: e.minValue,
|
|
5091
5102
|
max: e.maxValue,
|
|
5092
|
-
"onUpdate:modelValue": k[0] || (k[0] = (
|
|
5093
|
-
onInput: k[1] || (k[1] = (
|
|
5103
|
+
"onUpdate:modelValue": k[0] || (k[0] = (M) => $e(l) ? l.value = M : null),
|
|
5104
|
+
onInput: k[1] || (k[1] = (M) => r(g)(M, b)),
|
|
5094
5105
|
disabled: e.disabled || r(c),
|
|
5095
5106
|
class: "appearance-none bg-transparent cursor-pointer relative z-10 w-full"
|
|
5096
5107
|
}, null, 40, id), [
|
|
@@ -5145,8 +5156,8 @@ const Oi = { class: "flex flex-row items-center gap-2 mb-1" }, Ri = ["for", "inn
|
|
|
5145
5156
|
type: "range",
|
|
5146
5157
|
min: e.minValue,
|
|
5147
5158
|
max: e.maxValue,
|
|
5148
|
-
"onUpdate:modelValue": k[2] || (k[2] = (
|
|
5149
|
-
onInput: k[3] || (k[3] = (
|
|
5159
|
+
"onUpdate:modelValue": k[2] || (k[2] = (M) => $e(n) ? n.value = M : null),
|
|
5160
|
+
onInput: k[3] || (k[3] = (M) => r(m)(M, b)),
|
|
5150
5161
|
disabled: e.disabled || r(c),
|
|
5151
5162
|
class: x([e.size == "small" ? "top-0" : "top-[0.15rem]", "absolute cursor-pointer w-full pointer-events-none appearance-none"])
|
|
5152
5163
|
}, null, 42, cd), [
|
|
@@ -5156,8 +5167,8 @@ const Oi = { class: "flex flex-row items-center gap-2 mb-1" }, Ri = ["for", "inn
|
|
|
5156
5167
|
type: "range",
|
|
5157
5168
|
min: e.minValue,
|
|
5158
5169
|
max: e.maxValue,
|
|
5159
|
-
"onUpdate:modelValue": k[4] || (k[4] = (
|
|
5160
|
-
onInput: k[5] || (k[5] = (
|
|
5170
|
+
"onUpdate:modelValue": k[4] || (k[4] = (M) => $e(o) ? o.value = M : null),
|
|
5171
|
+
onInput: k[5] || (k[5] = (M) => r(h)(M, b)),
|
|
5161
5172
|
disabled: e.disabled || r(c),
|
|
5162
5173
|
class: x([e.size == "small" ? "top-0" : "top-[0.15rem]", "absolute cursor-pointer w-full pointer-events-none appearance-none"])
|
|
5163
5174
|
}, null, 42, fd), [
|
|
@@ -5314,7 +5325,7 @@ const Oi = { class: "flex flex-row items-center gap-2 mb-1" }, Ri = ["for", "inn
|
|
|
5314
5325
|
K(
|
|
5315
5326
|
() => e.modelValue,
|
|
5316
5327
|
(v) => {
|
|
5317
|
-
o.value = Array.from({ length: e.length }, (k,
|
|
5328
|
+
o.value = Array.from({ length: e.length }, (k, M) => v[M] || "");
|
|
5318
5329
|
}
|
|
5319
5330
|
), K(
|
|
5320
5331
|
() => e.length,
|
|
@@ -5325,12 +5336,12 @@ const Oi = { class: "flex flex-row items-center gap-2 mb-1" }, Ri = ["for", "inn
|
|
|
5325
5336
|
const s = () => {
|
|
5326
5337
|
t("change", o.value.join(""));
|
|
5327
5338
|
}, c = async (v) => {
|
|
5328
|
-
var
|
|
5339
|
+
var C;
|
|
5329
5340
|
await Ht();
|
|
5330
5341
|
const k = n.value;
|
|
5331
5342
|
if (!k) return;
|
|
5332
|
-
const
|
|
5333
|
-
(
|
|
5343
|
+
const M = k.querySelectorAll(".code-input");
|
|
5344
|
+
(C = M == null ? void 0 : M[v]) == null || C.focus();
|
|
5334
5345
|
}, g = (v) => {
|
|
5335
5346
|
const k = o.value[v];
|
|
5336
5347
|
if (e.type === "number" && k && !/^[0-9]$/.test(k)) {
|
|
@@ -5348,8 +5359,8 @@ const Oi = { class: "flex flex-row items-center gap-2 mb-1" }, Ri = ["for", "inn
|
|
|
5348
5359
|
k.slice(0, e.length).split("").forEach((O, F) => {
|
|
5349
5360
|
e.type === "number" && !/^[0-9]$/.test(O) || o.value[F] !== void 0 && (o.value[F] = O);
|
|
5350
5361
|
}), t("update:modelValue", h());
|
|
5351
|
-
const
|
|
5352
|
-
|
|
5362
|
+
const C = o.value.findIndex((O) => O === "");
|
|
5363
|
+
C >= 0 && c(C);
|
|
5353
5364
|
};
|
|
5354
5365
|
return zt(() => {
|
|
5355
5366
|
e.shouldAutoFocus && c(0);
|
|
@@ -5423,13 +5434,13 @@ const Oi = { class: "flex flex-row items-center gap-2 mb-1" }, Ri = ["for", "inn
|
|
|
5423
5434
|
ref: d,
|
|
5424
5435
|
class: x(["flex gap-2", e.centralized ? "justify-center" : "justify-start"])
|
|
5425
5436
|
}, [
|
|
5426
|
-
(u(!0), f(X, null, J(r(l), (
|
|
5427
|
-
key:
|
|
5428
|
-
"onUpdate:modelValue": (V) => r(l)[
|
|
5429
|
-
id:
|
|
5437
|
+
(u(!0), f(X, null, J(r(l), (M, C) => Me((u(), f("input", {
|
|
5438
|
+
key: C,
|
|
5439
|
+
"onUpdate:modelValue": (V) => r(l)[C] = V,
|
|
5440
|
+
id: C === 0 ? "primeiro" : String(C),
|
|
5430
5441
|
type: e.type === "password" ? "password" : "text",
|
|
5431
5442
|
maxlength: "1",
|
|
5432
|
-
placeholder: e.placeholder[
|
|
5443
|
+
placeholder: e.placeholder[C] || "",
|
|
5433
5444
|
disabled: e.disabled,
|
|
5434
5445
|
class: x([[
|
|
5435
5446
|
{ "h-14 w-14 text-3xl": e.size === "small" },
|
|
@@ -5437,12 +5448,12 @@ const Oi = { class: "flex flex-row items-center gap-2 mb-1" }, Ri = ["for", "inn
|
|
|
5437
5448
|
{ "h-24 w-24 text-6xl": e.size === "large" },
|
|
5438
5449
|
e.invalid || e.invalidFeedback ? "focus:ring-[#fecaca] focus:border-[#ee5578] border-[#ee5578]" : "focus:ring-green-200 focus:border-green-500 border-ce_light_gray"
|
|
5439
5450
|
], "code-input focus:text-black dark:text-ce_light_gray dark:bg-ce_black focus:border-2 text-center border rounded-lg focus:outline-none focus:ring-4 transition-all"]),
|
|
5440
|
-
onInput: (V) => r(h)(
|
|
5441
|
-
onKeydown: Ta(Ee((V) => r(b)(
|
|
5451
|
+
onInput: (V) => r(h)(C),
|
|
5452
|
+
onKeydown: Ta(Ee((V) => r(b)(C), ["prevent"]), ["backspace"]),
|
|
5442
5453
|
onChange: k[0] || (k[0] = //@ts-ignore
|
|
5443
5454
|
(...V) => r(c) && r(c)(...V))
|
|
5444
5455
|
}, null, 42, Fd)), [
|
|
5445
|
-
[La, r(l)[
|
|
5456
|
+
[La, r(l)[C]]
|
|
5446
5457
|
])), 128))
|
|
5447
5458
|
], 2),
|
|
5448
5459
|
e.hint || e.invalidFeedback ? (u(), f("div", Td, [
|
|
@@ -6873,8 +6884,8 @@ const Gd = /* @__PURE__ */ Q({
|
|
|
6873
6884
|
setarIndiceDropdowns: b,
|
|
6874
6885
|
setarIndiceMenu: v,
|
|
6875
6886
|
limparArrayIndicesDropdown: k,
|
|
6876
|
-
setarBackupMenu:
|
|
6877
|
-
obterTextosMenu:
|
|
6887
|
+
setarBackupMenu: M,
|
|
6888
|
+
obterTextosMenu: C,
|
|
6878
6889
|
alternarDropdown: V,
|
|
6879
6890
|
buscarNoMenu: O,
|
|
6880
6891
|
definirOpcoesMenu: F,
|
|
@@ -6898,7 +6909,7 @@ const Gd = /* @__PURE__ */ Q({
|
|
|
6898
6909
|
return K(
|
|
6899
6910
|
() => W.itemsMenu,
|
|
6900
6911
|
(j) => {
|
|
6901
|
-
F(j),
|
|
6912
|
+
F(j), M(j), T(W.itemsMenuMyService, W.itemsMenu, W.itemsModules);
|
|
6902
6913
|
},
|
|
6903
6914
|
{ deep: !0, immediate: !0 }
|
|
6904
6915
|
), (j, E) => (u(), f(X, null, [
|
|
@@ -6996,7 +7007,7 @@ const Gd = /* @__PURE__ */ Q({
|
|
|
6996
7007
|
key: 1,
|
|
6997
7008
|
background: e.background,
|
|
6998
7009
|
placeholder: "Pesquisar",
|
|
6999
|
-
items: r(
|
|
7010
|
+
items: r(C)(e.itemsSearch.length > 0 ? e.itemsSearch : r(s)),
|
|
7000
7011
|
"onUpdate:modelValue": E[2] || (E[2] = (S) => r(O)(e.itemsSearch.length > 0 ? e.itemsSearch : r(s), String(S))),
|
|
7001
7012
|
onFilterList: E[3] || (E[3] = (S) => r(O)(r(s), String(S))),
|
|
7002
7013
|
onClearFilter: E[4] || (E[4] = (S) => r(F)(r(s)))
|
|
@@ -7189,8 +7200,8 @@ const Gd = /* @__PURE__ */ Q({
|
|
|
7189
7200
|
backupMenu: b,
|
|
7190
7201
|
arrayIndicesDropdown: v,
|
|
7191
7202
|
clicado: k,
|
|
7192
|
-
setarBackupMenu:
|
|
7193
|
-
obterTextosMenu:
|
|
7203
|
+
setarBackupMenu: M,
|
|
7204
|
+
obterTextosMenu: C,
|
|
7194
7205
|
alternarDropdown: V,
|
|
7195
7206
|
buscarNoMenu: O,
|
|
7196
7207
|
definirOpcoesMenu: F,
|
|
@@ -7202,7 +7213,7 @@ const Gd = /* @__PURE__ */ Q({
|
|
|
7202
7213
|
}), K(
|
|
7203
7214
|
() => R.items,
|
|
7204
7215
|
($) => {
|
|
7205
|
-
F($),
|
|
7216
|
+
F($), M([...$]);
|
|
7206
7217
|
},
|
|
7207
7218
|
{ immediate: !0, deep: !0 }
|
|
7208
7219
|
), K(R, () => {
|
|
@@ -7241,7 +7252,7 @@ const Gd = /* @__PURE__ */ Q({
|
|
|
7241
7252
|
r(a) ? (u(), _(Zt, {
|
|
7242
7253
|
key: 1,
|
|
7243
7254
|
placeholder: "Pesquisar",
|
|
7244
|
-
items: r(
|
|
7255
|
+
items: r(C)(e.itemsSearch.length > 0 ? e.itemsSearch : r(b)),
|
|
7245
7256
|
"onUpdate:modelValue": B[1] || (B[1] = (P) => r(O)(e.itemsSearch.length > 0 ? e.itemsSearch : r(b), String(P))),
|
|
7246
7257
|
onFilterList: B[2] || (B[2] = (P) => r(O)(r(b), String(P))),
|
|
7247
7258
|
onClearFilter: B[3] || (B[3] = (P) => r(F)(r(b))),
|
|
@@ -8350,7 +8361,9 @@ const xu = /* @__PURE__ */ Q({
|
|
|
8350
8361
|
}), s2 = (e, t) => {
|
|
8351
8362
|
const a = L([]);
|
|
8352
8363
|
zt(() => {
|
|
8353
|
-
e.allOpen ? a.value = e.items.map(() => !0) : e.openTheFirst ? a.value = e.items.map((c, g) => g === 0) : a.value = e.items.map(() => !1), e.closeCollapse && (a.value[e.closeCollapse] = !1)
|
|
8364
|
+
e.allOpen ? a.value = e.items.map(() => !0) : e.openTheFirst ? a.value = e.items.map((c, g) => g === 0) : a.value = e.items.map(() => !1), e.closeCollapse >= 0 && (a.value[e.closeCollapse] = !1), e.openCollapse && e.openCollapse.length > 0 && e.openCollapse.forEach((c) => {
|
|
8365
|
+
a.value[c] = !0;
|
|
8366
|
+
});
|
|
8354
8367
|
});
|
|
8355
8368
|
const n = (c) => {
|
|
8356
8369
|
a.value[c] = !a.value[c];
|
|
@@ -8407,7 +8420,8 @@ const xu = /* @__PURE__ */ Q({
|
|
|
8407
8420
|
direction: { default: "row" },
|
|
8408
8421
|
closeCollapse: { default: null },
|
|
8409
8422
|
disabled: { default: () => ({ field: "", value: "" }) },
|
|
8410
|
-
invalid: { default: () => [] }
|
|
8423
|
+
invalid: { default: () => [] },
|
|
8424
|
+
openCollapse: { default: null }
|
|
8411
8425
|
},
|
|
8412
8426
|
emits: ["toggle-collapse"],
|
|
8413
8427
|
setup(e, { emit: t }) {
|