@thibezer/ui-components-kit 2.28.0 → 2.28.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/CHANGELOG.md +35 -0
- package/dist/camadas.cjs +82 -82
- package/dist/camadas.js +1135 -1037
- package/dist/campo-texto.cjs +2 -2
- package/dist/campo-texto.js +29 -29
- package/dist/canvas.cjs +38 -38
- package/dist/canvas.js +1045 -1022
- package/dist/components/ui-area-texto/ui-area-texto.d.ts +3 -0
- package/dist/components/ui-camadas/camadas-metricas.d.ts +2 -3
- package/dist/components/ui-camadas/camadas-selecao-api.d.ts +1 -0
- package/dist/components/ui-camadas/camadas-selecao.d.ts +17 -2
- package/dist/components/ui-camadas/camadas-sincronizacao-dom.d.ts +2 -0
- package/dist/components/ui-camadas/tipos.d.ts +2 -0
- package/dist/components/ui-camadas/ui-camadas.d.ts +2 -0
- package/dist/components/ui-campo-texto/ui-campo-texto.d.ts +3 -0
- package/dist/components/ui-canvas-cad/cad-hud-coordenadas.d.ts +12 -0
- package/dist/components/ui-canvas-cad/ui-canvas-cad.d.ts +6 -1
- package/dist/components/ui-tabela/tabela-corpo.d.ts +10 -0
- package/dist/components/ui-tabela/tabela-declarativa.d.ts +11 -0
- package/dist/components/ui-tabela/tabela-dom.d.ts +1 -0
- package/dist/components/ui-tabela/tabela-header.d.ts +1 -0
- package/dist/components/ui-tabela/tabela-renderizador.d.ts +4 -0
- package/dist/components/ui-tabela/tipos.d.ts +11 -0
- package/dist/components/ui-tabela/ui-tabela.d.ts +22 -2
- package/dist/components/ui-tabela-propriedades/editores-basicos.d.ts +6 -6
- package/dist/components/ui-tabela-propriedades/editores-cad.d.ts +5 -5
- package/dist/components/ui-tabela-propriedades/propriedades-dom-utils.d.ts +6 -4
- package/dist/components/ui-tabela-propriedades/propriedades-editores.d.ts +2 -2
- package/dist/components/ui-tabela-propriedades/propriedades-flutuante.d.ts +1 -1
- package/dist/components/ui-tabela-propriedades/propriedades-gerenciador-valores.d.ts +11 -11
- package/dist/components/ui-tabela-propriedades/propriedades-render-arvore.d.ts +4 -4
- package/dist/components/ui-tabela-propriedades/propriedades-splitter.d.ts +1 -0
- package/dist/components/ui-tabela-propriedades/propriedades-valor-misto.d.ts +9 -5
- package/dist/components/ui-tabela-propriedades/tipos.d.ts +10 -8
- package/dist/components/ui-tabela-propriedades/ui-tabela-propriedades.d.ts +9 -7
- package/dist/custom-elements.json +13485 -12764
- package/dist/data.cjs +1 -1
- package/dist/data.js +107 -100
- package/dist/feature_caixa-BLVtatpp.cjs +1 -0
- package/dist/feature_caixa-CHAdzESq.js +806 -0
- package/dist/{feature_desenho-BH-E1Q9Q.cjs → feature_desenho-DRHnu8u8.cjs} +1 -1
- package/dist/{feature_desenho-CC8Mp5Gp.js → feature_desenho-edf-dHuf.js} +2 -2
- package/dist/feature_metricas-CKQGG2nz.cjs +1 -0
- package/dist/feature_metricas-DGfd21VR.js +130 -0
- package/dist/forms.cjs +7 -7
- package/dist/forms.js +24 -24
- package/dist/geometria-px-DEAIxMG5.js +512 -0
- package/dist/geometria-px-DJcNHXbE.cjs +1 -0
- package/dist/gerencigeo-canvas/dms.d.ts +7 -0
- package/dist/gerencigeo-canvas/feature_algoritmos.d.ts +1 -4
- package/dist/gerencigeo-canvas/utils.d.ts +1 -3
- package/dist/index.cjs +7 -7
- package/dist/index.js +228 -219
- package/dist/mapa.cjs +1 -1
- package/dist/mapa.js +1 -1
- package/dist/motor.cjs +1 -1
- package/dist/motor.js +113 -111
- package/dist/prancha-nucleo.cjs +3 -3
- package/dist/prancha-nucleo.js +283 -282
- package/dist/prancha.cjs +1 -1
- package/dist/prancha.js +3 -3
- package/dist/tabela.cjs +8 -8
- package/dist/tabela.js +1367 -1136
- package/dist/tipos-elementos.d.ts +28 -8
- package/dist/tipos-vue.d.ts +30 -12
- package/dist/utils-B2HuBLwz.js +108 -0
- package/dist/utils-DpPysTeU.cjs +1 -0
- package/package.json +1 -1
- package/dist/feature_caixa-4M4MkFH7.cjs +0 -1
- package/dist/feature_caixa-BVc5LenS.js +0 -824
- package/dist/geometria-px-Cyi_oPD6.cjs +0 -1
- package/dist/geometria-px-DHMPUsxC.js +0 -639
- package/dist/utils-ClVgqVyJ.cjs +0 -1
- package/dist/utils-DrHoxxmf.js +0 -83
package/dist/utils-DrHoxxmf.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
const b = (t) => t == null ? "" : String(t).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), D = (t, o = 3) => t == null || isNaN(t) ? "—" : t.toLocaleString("pt-BR", {
|
|
2
|
-
minimumFractionDigits: o,
|
|
3
|
-
maximumFractionDigits: o
|
|
4
|
-
});
|
|
5
|
-
function F(t, o, i) {
|
|
6
|
-
if (!Number.isFinite(t) || !Number.isFinite(o) || Math.abs(t) > 84 || Math.abs(o) > 180)
|
|
7
|
-
return null;
|
|
8
|
-
const e = 6378137, n = 1 / 298.257222101, s = 0.9996, r = n * (2 - n), a = r / (1 - r), c = Number.isInteger(i) && i >= 1 && i <= 60 ? i : Math.floor((o + 180) / 6) + 1, f = (c * 6 - 183) * (Math.PI / 180), u = t * (Math.PI / 180), $ = o * (Math.PI / 180), A = Math.sin(u), P = Math.cos(u), N = Math.tan(u), y = e / Math.sqrt(1 - r * A * A), l = N * N, d = a * P * P, m = ($ - f) * P, g = r * r, h = g * r, I = e * ((1 - r / 4 - 3 * g / 64 - 5 * h / 256) * u - (3 * r / 8 + 3 * g / 32 + 45 * h / 1024) * Math.sin(2 * u) + (15 * g / 256 + 45 * h / 1024) * Math.sin(4 * u) - 35 * h / 3072 * Math.sin(6 * u)), p = m * m, M = p * m, _ = p * p, q = _ * m, E = M * M, x = s * y * (m + (1 - l + d) * M / 6 + (5 - 18 * l + l * l + 72 * d - 58 * a) * q / 120) + 5e5;
|
|
9
|
-
let v = s * (I + y * N * (p / 2 + (5 - l + 9 * d + 4 * d * d) * _ / 24 + (61 - 58 * l + l * l + 600 * d - 330 * a) * E / 720));
|
|
10
|
-
const C = t < 0 ? "S" : "N";
|
|
11
|
-
return t < 0 && (v += 1e7), {
|
|
12
|
-
este: Math.round(x * 1e3) / 1e3,
|
|
13
|
-
norte: Math.round(v * 1e3) / 1e3,
|
|
14
|
-
fuso: c,
|
|
15
|
-
hemisferio: C
|
|
16
|
-
};
|
|
17
|
-
}
|
|
18
|
-
const S = (t, o, i) => {
|
|
19
|
-
if (t == null || o === null || o === void 0)
|
|
20
|
-
return null;
|
|
21
|
-
const e = (r) => {
|
|
22
|
-
if (typeof r == "number") return r;
|
|
23
|
-
if (typeof r == "string") {
|
|
24
|
-
const a = r.trim().replace(",", ".");
|
|
25
|
-
return parseFloat(a);
|
|
26
|
-
}
|
|
27
|
-
return NaN;
|
|
28
|
-
}, n = e(t), s = e(o);
|
|
29
|
-
return isNaN(n) || isNaN(s) ? null : Math.abs(n) > 90 || Math.abs(s) > 180 ? (console.warn(`[gerencigeo-canvas] Coordenada fora do limite geográfico WGS-84 (Lat: ${n}, Lon: ${s}). Parece ser projeção UTM plana.`), null) : n === 0 && s === 0 && !(i != null && i.aceitarOrigem) ? null : { lat: n, lon: s };
|
|
30
|
-
}, T = (t, o) => !t || !Array.isArray(t) || t.length === 0 ? "" : `<div class="ui-popup-actions-footer">${t.map((e) => {
|
|
31
|
-
const n = e.variante || "secondary";
|
|
32
|
-
return `<button type="button" class="ui-popup-btn ui-popup-btn-${b(n)}" data-acao-id="${b(e.id)}" data-elemento-id="${b(String(o))}">${b(e.rotulo)}</button>`;
|
|
33
|
-
}).join("")}</div>`, U = (t, o, i, e) => {
|
|
34
|
-
const n = t != null && t.getElement ? t.getElement() : null;
|
|
35
|
-
if (!n) return;
|
|
36
|
-
n.querySelectorAll(".ui-popup-btn").forEach((r) => {
|
|
37
|
-
r.onclick = (a) => {
|
|
38
|
-
a.preventDefault(), a.stopPropagation();
|
|
39
|
-
const c = r.getAttribute("data-acao-id"), f = r.getAttribute("data-elemento-id") ?? (o == null ? void 0 : o.id);
|
|
40
|
-
c && f !== void 0 && f !== null && (i.onPopupAcao && i.onPopupAcao(c, f, o), e && typeof e.closePopup == "function" ? e.closePopup() : t._map && typeof t._map.closePopup == "function" && t._map.closePopup());
|
|
41
|
-
};
|
|
42
|
-
});
|
|
43
|
-
}, j = (t, o) => {
|
|
44
|
-
const i = {};
|
|
45
|
-
return t.forEach((e) => {
|
|
46
|
-
let n;
|
|
47
|
-
o && e[o] !== void 0 && e[o] !== null ? n = e[o] : (n = e.grupoId ?? e.grupoKey, n == null && (e.matricula_id !== void 0 && e.matricula_id !== null ? n = `mat_${e.matricula_id}` : e.planilha_origem ? n = e.planilha_origem : n = "padrao"));
|
|
48
|
-
const s = String(n);
|
|
49
|
-
i[s] || (i[s] = []), i[s].push(e);
|
|
50
|
-
}), i;
|
|
51
|
-
}, k = (t) => [...t].sort((o, i) => {
|
|
52
|
-
const e = (n) => {
|
|
53
|
-
const s = n.ordem ?? n.indice ?? n.index ?? n.seq ?? n.ordem_caminhamento ?? n.id, r = Number(s);
|
|
54
|
-
return isNaN(r) ? 999999 : r;
|
|
55
|
-
};
|
|
56
|
-
return e(o) - e(i);
|
|
57
|
-
}), H = (t) => {
|
|
58
|
-
if (!t || typeof t != "string") return null;
|
|
59
|
-
const o = /(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)/g;
|
|
60
|
-
let i, e = 0, n = 0, s = 0;
|
|
61
|
-
for (; (i = o.exec(t)) !== null; ) {
|
|
62
|
-
const r = parseFloat(i[1]), a = parseFloat(i[2]);
|
|
63
|
-
if (!isNaN(r) && !isNaN(a)) {
|
|
64
|
-
const c = S(a, r) || S(r, a);
|
|
65
|
-
c && (e += c.lat, n += c.lon, s++);
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
return s > 0 ? {
|
|
69
|
-
lat: e / s,
|
|
70
|
-
lon: n / s
|
|
71
|
-
} : null;
|
|
72
|
-
};
|
|
73
|
-
export {
|
|
74
|
-
j as a,
|
|
75
|
-
U as b,
|
|
76
|
-
H as c,
|
|
77
|
-
b as e,
|
|
78
|
-
D as f,
|
|
79
|
-
F as l,
|
|
80
|
-
k as o,
|
|
81
|
-
S as p,
|
|
82
|
-
T as r
|
|
83
|
-
};
|