@thibezer/ui-components-kit 2.8.0 → 2.8.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 +203 -265
- package/README.md +791 -815
- package/dist/botao.cjs +1 -1
- package/dist/botao.js +1 -1
- package/dist/camadas.cjs +94 -94
- package/dist/camadas.js +1124 -1218
- package/dist/campo-texto.cjs +1 -1
- package/dist/campo-texto.js +1 -1
- package/dist/canvas.cjs +65 -66
- package/dist/canvas.js +3444 -3795
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/components/ui-avatar/ui-avatar.d.ts +0 -11
- package/dist/components/ui-badge/ui-badge.d.ts +0 -2
- package/dist/components/ui-barra-ferramentas/ferramentas-comum.d.ts +22 -1
- package/dist/components/ui-barra-ferramentas/tipos.d.ts +31 -0
- package/dist/components/ui-barra-ferramentas/ui-paleta-ferramentas.d.ts +17 -1
- package/dist/components/ui-barra-ferramentas/ui-ribbon.d.ts +17 -0
- package/dist/components/ui-camadas/camadas-arraste-controles.d.ts +0 -2
- package/dist/components/ui-camadas/camadas-arvore-renderer.d.ts +11 -4
- package/dist/components/ui-camadas/camadas-drag-drop.d.ts +1 -13
- package/dist/components/ui-camadas/ui-camadas.d.ts +5 -3
- package/dist/components/ui-canvas-cad/cad-atributos-sync.d.ts +1 -2
- package/dist/components/ui-canvas-cad/cad-broadcast.d.ts +1 -1
- package/dist/components/ui-canvas-cad/cad-eventos-canvas.d.ts +8 -3
- package/dist/components/ui-canvas-cad/cad-feicoes.d.ts +106 -26
- package/dist/components/ui-canvas-cad/cad-inicializador.d.ts +1 -3
- package/dist/components/ui-canvas-cad/ui-canvas-cad.d.ts +1 -4
- package/dist/components/ui-checkbox/ui-checkbox.d.ts +1 -4
- package/dist/components/ui-cores/tipos.d.ts +0 -2
- package/dist/components/ui-cores/ui-controle-cores.d.ts +3 -8
- package/dist/components/ui-cores/ui-seletor-cor.d.ts +1 -3
- package/dist/components/ui-mapa/ui-mapa-linha.d.ts +5 -12
- package/dist/components/ui-mapa/ui-mapa-marcador.d.ts +6 -15
- package/dist/components/ui-mapa/ui-mapa.d.ts +1 -14
- package/dist/components/ui-modal/modal-acessibilidade.d.ts +5 -5
- package/dist/components/ui-modal/ui-modal.d.ts +11 -1
- package/dist/components/ui-radio/radio-grupo-registry.d.ts +0 -10
- package/dist/components/ui-radio/ui-radio.d.ts +2 -9
- package/dist/components/ui-skeleton/ui-skeleton.d.ts +0 -9
- package/dist/components/ui-switch/ui-switch.d.ts +1 -3
- package/dist/components/ui-tabela/ui-tabela.d.ts +19 -1
- package/dist/components/ui-tooltip/ui-tooltip.d.ts +1 -24
- package/dist/core/index.d.ts +0 -1
- package/dist/core.cjs +1 -1
- package/dist/core.js +18 -28
- package/dist/cores.cjs +1 -1
- package/dist/cores.js +1 -1
- package/dist/custom-elements.json +18859 -23721
- package/dist/data.cjs +1 -1
- package/dist/data.js +2 -2
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.js +2 -2
- package/dist/form-validacao-BIOXxt-1.js +140 -0
- package/dist/form-validacao-ytRYSF3E.cjs +1 -0
- package/dist/forms.cjs +1 -1
- package/dist/forms.js +2 -2
- package/dist/gerencigeo-canvas/feature_metricas.d.ts +9 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +0 -3
- package/dist/index.js +178 -179
- package/dist/mapa.cjs +16 -11
- package/dist/mapa.js +170 -242
- package/dist/modal.cjs +1 -1
- package/dist/modal.js +1 -1
- package/dist/register.cjs +1 -1
- package/dist/register.js +11 -11
- package/dist/svg-seguro-ChVJ2L2z.js +74 -0
- package/dist/svg-seguro-J2RM1Ssf.cjs +1 -0
- package/dist/tabela.cjs +1 -1
- package/dist/tabela.js +1 -1
- package/dist/tipos-elementos.d.ts +17 -35
- package/dist/tipos-react.d.ts +0 -2
- package/dist/tipos-vue.d.ts +12 -34
- package/dist/tools.cjs +1 -1
- package/dist/tools.js +1 -1
- package/dist/ui-badge-BxT-sDmV.cjs +28 -0
- package/dist/ui-badge-C0eKBI8E.js +183 -0
- package/dist/ui-botao-BOOnP8ds.cjs +12 -0
- package/dist/ui-botao-DfqSivHl.js +165 -0
- package/dist/ui-botao-OGJV6Vfk.js +165 -0
- package/dist/ui-botao-psS1juof.cjs +12 -0
- package/dist/ui-campo-texto-Cnn2UAkS.cjs +16 -0
- package/dist/{ui-campo-texto-B_OHVGiN.js → ui-campo-texto-Uu2dJE_0.js} +51 -51
- package/dist/ui-card-B86lJXTP.cjs +20 -0
- package/dist/{ui-card-BNYCQ7g-.js → ui-card-C_o5_0cB.js} +42 -50
- package/dist/ui-controle-cores-BS0WYPdi.js +572 -0
- package/dist/ui-controle-cores-Er6ZcQ7U.cjs +111 -0
- package/dist/ui-kit.css +1 -1
- package/dist/ui-modal-CvGFGh1h.cjs +18 -0
- package/dist/{ui-modal-BkYvNP0G.js → ui-modal-DBOtSTbR.js} +140 -116
- package/dist/ui-paleta-ferramentas-CEZYcN4J.js +624 -0
- package/dist/ui-paleta-ferramentas-CU4icLl0.js +1171 -0
- package/dist/{ui-paleta-ferramentas-bDLPbiGA.cjs → ui-paleta-ferramentas-Ccmo-rB5.cjs} +7 -7
- package/dist/ui-paleta-ferramentas-DLwZHIDv.cjs +21 -0
- package/dist/{ui-paleta-ferramentas-Ksh6gMW3.js → ui-paleta-ferramentas-DNN5i6nL.js} +329 -359
- package/dist/ui-paleta-ferramentas-Dbj1kBS9.cjs +18 -0
- package/dist/ui-paleta-ferramentas-DbwdWVtT.js +1173 -0
- package/dist/ui-paleta-ferramentas-bvqxj1Yd.cjs +21 -0
- package/dist/ui-segmented-D6b6zxVs.cjs +19 -0
- package/dist/ui-segmented-DyF5YLsV.js +418 -0
- package/dist/ui-segmented-rn9RxRGM.cjs +19 -0
- package/dist/{ui-linha-nCDh2wPm.js → ui-segmented-wUraId2e.js} +105 -200
- package/dist/ui-skeleton-DI4_9WOX.js +428 -0
- package/dist/{ui-skeleton-DiOxTBZK.cjs → ui-skeleton-SPYqku8P.cjs} +10 -10
- package/dist/{ui-skeleton-B2Rgrv8o.js → ui-skeleton-W9uwIceA.js} +191 -254
- package/dist/ui-skeleton-elhKIh2B.cjs +33 -0
- package/dist/{ui-switch-DO1R0Ce7.js → ui-switch-BcOqOkiV.js} +128 -187
- package/dist/ui-switch-D7iPKDj-.cjs +53 -0
- package/dist/ui-tabela-propriedades-BBr5sqki.cjs +145 -0
- package/dist/{ui-tabela-propriedades-DzZlyNZ_.cjs → ui-tabela-propriedades-BecPqC-e.cjs} +10 -10
- package/dist/{ui-tabela-propriedades-D9Echt2X.js → ui-tabela-propriedades-BokvDD3b.js} +826 -845
- package/dist/ui-tabela-propriedades-Boy7I5yW.js +2412 -0
- package/dist/ui-tabela-propriedades-C-PeuW1i.cjs +141 -0
- package/dist/ui-tabela-propriedades-Df9ajC6M.js +2648 -0
- package/dist/ui-toast-Bp_NlM5G.js +156 -0
- package/dist/ui-toast-DGTZKne5.cjs +20 -0
- package/dist/zero-js-triggers-C_KrvFOQ.js +244 -0
- package/dist/zero-js-triggers-C_gtaojZ.cjs +1 -0
- package/package.json +3 -3
- package/dist/acessibilidade-CSzX-DkG.cjs +0 -1
- package/dist/acessibilidade-CUlSXc2X.js +0 -38
- package/dist/altura-controle-ukMRPckR.cjs +0 -1
- package/dist/altura-controle-vxQiXG4q.js +0 -62
- package/dist/components/ui-barra-ferramentas/paleta-atalhos.d.ts +0 -16
- package/dist/components/ui-barra-ferramentas/paleta-pressao-longa.d.ts +0 -24
- package/dist/components/ui-barra-ferramentas/ribbon-render.d.ts +0 -14
- package/dist/components/ui-barra-ferramentas/ribbon-teclado.d.ts +0 -17
- package/dist/components/ui-camadas/camadas-colecao.d.ts +0 -27
- package/dist/components/ui-camadas/camadas-drop-ops.d.ts +0 -31
- package/dist/components/ui-camadas/camadas-hierarquia.d.ts +0 -10
- package/dist/components/ui-camadas/camadas-lembranca.d.ts +0 -34
- package/dist/components/ui-camadas/camadas-render.d.ts +0 -14
- package/dist/components/ui-camadas/camadas-renomear.d.ts +0 -12
- package/dist/components/ui-camadas/camadas-selecao-api.d.ts +0 -17
- package/dist/components/ui-camadas/camadas-thumb.d.ts +0 -1
- package/dist/components/ui-canvas-cad/cad-acessibilidade.d.ts +0 -15
- package/dist/components/ui-canvas-cad/cad-evento-coordenadas.d.ts +0 -22
- package/dist/components/ui-canvas-cad/cad-feicoes-camera.d.ts +0 -26
- package/dist/components/ui-canvas-cad/cad-feicoes-consulta.d.ts +0 -21
- package/dist/components/ui-canvas-cad/cad-feicoes-dados.d.ts +0 -39
- package/dist/components/ui-canvas-cad/cad-feicoes-desenho.d.ts +0 -68
- package/dist/components/ui-canvas-cad/cad-feicoes-edicao.d.ts +0 -37
- package/dist/components/ui-canvas-cad/cad-feicoes-operacoes.d.ts +0 -48
- package/dist/components/ui-canvas-cad/cad-feicoes-ponteiro.d.ts +0 -24
- package/dist/components/ui-canvas-cad/cad-feicoes-selecao-regiao.d.ts +0 -22
- package/dist/components/ui-canvas-cad/cad-feicoes-tipos.d.ts +0 -53
- package/dist/components/ui-canvas-cad/cad-feicoes-versoes.d.ts +0 -33
- package/dist/components/ui-canvas-cad/cad-leaflet-adaptador.d.ts +0 -5
- package/dist/components/ui-canvas-cad/cad-selecao-pontos.d.ts +0 -5
- package/dist/components/ui-canvas-cad/tipos.d.ts +0 -37
- package/dist/components/ui-linha/index.d.ts +0 -1
- package/dist/components/ui-linha/ui-linha.d.ts +0 -48
- package/dist/components/ui-mapa/mapa-atributos.d.ts +0 -14
- package/dist/components/ui-mapa/mapa-basemaps.d.ts +0 -7
- package/dist/components/ui-mapa/mapa-icones.d.ts +0 -4
- package/dist/components/ui-mapa/mapa-leaflet.d.ts +0 -5
- package/dist/components/ui-mapa/mapa-vinculo-pai.d.ts +0 -22
- package/dist/components/ui-mapa/tipos.d.ts +0 -13
- package/dist/components/ui-modal/modal-foco.d.ts +0 -28
- package/dist/components/ui-tabela/tabela-estados.d.ts +0 -16
- package/dist/components/ui-tabela/tabela-rolagem.d.ts +0 -44
- package/dist/components/ui-tabela/tabela-teclado.d.ts +0 -16
- package/dist/components/ui-tooltip/tooltip-popover.d.ts +0 -7
- package/dist/components/ui-tooltip/tooltip-posicionamento.d.ts +0 -29
- package/dist/core/altura-controle.d.ts +0 -34
- package/dist/core/opcoes.d.ts +0 -9
- package/dist/core/rotulo-controle.d.ts +0 -13
- package/dist/form-validacao-BlQFxUVj.js +0 -104
- package/dist/form-validacao-DIeyQVH5.cjs +0 -1
- package/dist/opcoes-CJYLi6kd.js +0 -12
- package/dist/opcoes-CkyDxBuQ.cjs +0 -1
- package/dist/ui-badge-BWhoGgo9.js +0 -197
- package/dist/ui-badge-SIR81R9l.cjs +0 -28
- package/dist/ui-botao-D24oXySA.cjs +0 -12
- package/dist/ui-botao-Dsj08jjw.js +0 -165
- package/dist/ui-campo-texto-DauJCde3.cjs +0 -16
- package/dist/ui-card-BrjBL-yo.cjs +0 -20
- package/dist/ui-controle-cores-DgEza3wF.js +0 -612
- package/dist/ui-controle-cores-uY__TgwW.cjs +0 -117
- package/dist/ui-linha-C6HBnsaw.cjs +0 -19
- package/dist/ui-modal-CUNbpbZ1.cjs +0 -18
- package/dist/ui-switch-D9a8XlVX.cjs +0 -53
package/dist/index.js
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
import { U as c, a as l } from "./ui-botao-
|
|
3
|
-
import { A as m, L as u, a as p, R as I, U, b as C, c as S, d as T, e as E, f as g, g as f, h as A, r as x } from "./ui-switch-
|
|
4
|
-
import { A as b, S as L, U as O, a as R, b as v, c as z, d as M, e as D,
|
|
5
|
-
import { A as
|
|
6
|
-
import { U as
|
|
7
|
-
import { U as
|
|
8
|
-
import { U as
|
|
9
|
-
import { U as
|
|
10
|
-
import { I as
|
|
11
|
-
import { G as
|
|
12
|
-
import { ICONES_FERRAMENTAS as
|
|
13
|
-
import { P as
|
|
14
|
-
import { CamadasDragDropManager as
|
|
15
|
-
import { UIMapaBase as
|
|
16
|
-
import { U as
|
|
2
|
+
import { U as c, a as l } from "./ui-botao-DfqSivHl.js";
|
|
3
|
+
import { A as m, L as u, a as p, R as I, U, b as C, c as S, d as T, e as E, f as g, g as f, h as A, r as x } from "./ui-switch-BcOqOkiV.js";
|
|
4
|
+
import { A as b, S as L, U as O, a as R, b as v, c as z, d as M, e as D, t as h } from "./ui-segmented-DyF5YLsV.js";
|
|
5
|
+
import { A as F, U as _, a as y, c as q, s as V, b as w, d as H } from "./ui-campo-texto-Uu2dJE_0.js";
|
|
6
|
+
import { U as G, a as k, b as j } from "./ui-paleta-ferramentas-DbwdWVtT.js";
|
|
7
|
+
import { U as K, a as W, b as X, c as Z, d as Q, e as Y } from "./ui-badge-C0eKBI8E.js";
|
|
8
|
+
import { U as aa } from "./ui-card-C_o5_0cB.js";
|
|
9
|
+
import { U as ea, a as oa, b as sa, r as ta } from "./ui-modal-DBOtSTbR.js";
|
|
10
|
+
import { I as na, U as ca, a as la, b as da, c as ma, d as ua, e as pa, f as Ia, g as Ua, h as Ca, i as Sa, j as Ta, k as Ea, l as ga, o as fa, r as Aa } from "./ui-skeleton-W9uwIceA.js";
|
|
11
|
+
import { G as Pa, T as ba, a as La, b as Oa, U as Ra, c as va, d as za, e as Ma, f as Da, g as ha, h as Ba, i as Fa, j as _a, k as ya, l as qa, m as Va, n as wa, o as Ha, p as Na, q as Ga, r as ka, s as ja, t as Ja, u as Ka, v as Wa, w as Xa, x as Za, y as Qa, z as Ya, A as $a, B as ar, C as rr, D as er, E as or, F as sr, H as tr, I as ir, J as nr, K as cr, L as lr, M as dr, N as mr, O as ur, P as pr, Q as Ir, R as Ur, S as Cr, V as Sr, W as Tr, X as Er, Y as gr, Z as fr, _ as Ar, $ as xr, a0 as Pr, a1 as br, a2 as Lr, a3 as Or, a4 as Rr, a5 as vr, a6 as zr } from "./ui-tabela-propriedades-Df9ajC6M.js";
|
|
12
|
+
import { ICONES_FERRAMENTAS as Dr } from "./tools.js";
|
|
13
|
+
import { P as Br, U as Fr, a as _r, b as yr, c as qr, e as Vr, f as wr, n as Hr, d as Nr } from "./ui-controle-cores-BS0WYPdi.js";
|
|
14
|
+
import { CamadasDragDropManager as kr, ICONES as jr, LIMITE_FEICOES_POR_CAMADA as Jr, MAPAS_BASE_PADRAO as Kr, UICamadas as Wr, UILayerPanel as Xr, UIPainelCamadas as Zr, calcularAreaAnelSimples as Qr, calcularAreaPoligono as Yr, calcularComprimentoLinha as $r, calcularDistanciaPontos as ae, calcularSelecaoFeicao as re, carregarEstadoPersistido as ee, construirHierarquiaCamadas as oe, converterCamadaItemParaCanvasLayer as se, converterCanvasLayerParaCamadaItem as te, converterFeicaoParaItem as ie, escapeHtml as ne, filtrarFeicoesPorBusca as ce, formatarMetricaFeicoes as le, formatarOpcoesCamadasHierarquicas as de, gerarChaveStorage as me, limparEstadoPersistido as ue, montarEstadoPersistido as pe, obterIdsVisiveisFeicoes as Ie, reidratarCamadasComOverrides as Ue, removerSelecoesInvalidas as Ce, renderizarArvoreCamadas as Se, renderizarGridMapasBase as Te, renderizarRodapeAcoes as Ee, renderizarThumbGeometria as ge, salvarEstadoPersistido as fe, snapshotCamada as Ae } from "./camadas.js";
|
|
15
|
+
import { UIMapaBase as Pe, UISeletorMapaBase as be } from "./seletor-mapa-base.js";
|
|
16
|
+
import { U as Oe } from "./ui-bus-CUd99VJi.js";
|
|
17
17
|
import { i as r } from "./zero-js-triggers-CJT988bR.js";
|
|
18
|
-
import { L as
|
|
19
|
-
import { c as
|
|
20
|
-
import { S as
|
|
21
|
-
import { c as
|
|
18
|
+
import { L as ve } from "./listener-bag-DQgv7OON.js";
|
|
19
|
+
import { c as Me, o as De } from "./leaflet-loader-Cjcdgj5R.js";
|
|
20
|
+
import { S as Be, d as Fe, i as _e } from "./ssr-safe-5cWfJP-s.js";
|
|
21
|
+
import { c as qe, g as Ve, o as we } from "./form-validacao-BIOXxt-1.js";
|
|
22
22
|
const s = () => import("./mapa.js"), t = () => import("./canvas.js");
|
|
23
23
|
if (typeof document < "u") {
|
|
24
24
|
const a = () => {
|
|
@@ -28,185 +28,184 @@ if (typeof document < "u") {
|
|
|
28
28
|
}
|
|
29
29
|
typeof document < "u" && r();
|
|
30
30
|
export {
|
|
31
|
-
|
|
31
|
+
F as ATRIBUTOS_OBSERVADOS_CAMPO_TEXTO,
|
|
32
32
|
m as ATRIBUTOS_OBSERVADOS_LISTA_FLUTUANTE,
|
|
33
33
|
b as ATRIBUTOS_OBSERVADOS_SEGMENTED,
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
34
|
+
kr as CamadasDragDropManager,
|
|
35
|
+
Pa as GerenciadorValoresPropriedades,
|
|
36
|
+
jr as ICONES,
|
|
37
|
+
na as ICONES_ALERTA,
|
|
38
|
+
Dr as ICONES_FERRAMENTAS,
|
|
39
|
+
Jr as LIMITE_FEICOES_POR_CAMADA,
|
|
40
40
|
u as ListaFlutuantePosicionamento,
|
|
41
41
|
p as ListaFlutuanteTeclado,
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
ve as ListenerBag,
|
|
43
|
+
Kr as MAPAS_BASE_PADRAO,
|
|
44
|
+
Br as PALETA_CORES_PADRAO,
|
|
45
45
|
I as RadioGrupoRegistry,
|
|
46
|
-
|
|
46
|
+
Be as SafeHTMLElement,
|
|
47
47
|
L as SegmentedIndicadorController,
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
48
|
+
ba as TabelaOrquestradorDados,
|
|
49
|
+
La as TabelaRemotaController,
|
|
50
|
+
Oa as TabelaSelecaoController,
|
|
51
|
+
ca as UIAlerta,
|
|
52
52
|
O as UIAvatar,
|
|
53
|
-
|
|
53
|
+
K as UIBadge,
|
|
54
54
|
c as UIBotao,
|
|
55
55
|
l as UIBotaoPrimario,
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
56
|
+
Oe as UIBus,
|
|
57
|
+
Wr as UICamadas,
|
|
58
|
+
_ as UICampoTexto,
|
|
59
|
+
aa as UICard,
|
|
60
60
|
U as UICheckbox,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
R as UILinha,
|
|
61
|
+
W as UIChip,
|
|
62
|
+
Fr as UIControleCores,
|
|
63
|
+
ea as UIDialog,
|
|
64
|
+
la as UIDrawer,
|
|
65
|
+
da as UIEsqueleto,
|
|
66
|
+
ma as UIGaveta,
|
|
67
|
+
G as UIIcone,
|
|
68
|
+
y as UIInput,
|
|
69
|
+
X as UIKpi,
|
|
70
|
+
Xr as UILayerPanel,
|
|
72
71
|
C as UIListaFlutuante,
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
72
|
+
Pe as UIMapaBase,
|
|
73
|
+
Z as UIMetrica,
|
|
74
|
+
oa as UIModal,
|
|
75
|
+
Zr as UIPainelCamadas,
|
|
76
|
+
ua as UIPainelLateral,
|
|
77
|
+
k as UIPaletaFerramentas,
|
|
78
|
+
pa as UIPopover,
|
|
80
79
|
S as UIRadio,
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
80
|
+
j as UIRibbon,
|
|
81
|
+
R as UISegmented,
|
|
82
|
+
v as UISegmento,
|
|
84
83
|
T as UISelect,
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
84
|
+
_r as UISeletorCor,
|
|
85
|
+
be as UISeletorMapaBase,
|
|
86
|
+
Ia as UISheet,
|
|
87
|
+
Ua as UISkeleton,
|
|
88
|
+
Q as UIStat,
|
|
90
89
|
E as UISwitch,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
90
|
+
Ra as UITabela,
|
|
91
|
+
va as UITabelaPropriedades,
|
|
92
|
+
Y as UITag,
|
|
93
|
+
z as UITexto,
|
|
94
|
+
Ca as UIToast,
|
|
96
95
|
g as UIToggle,
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
96
|
+
Sa as UITooltip,
|
|
97
|
+
za as abrirPopoverRedimensionamento,
|
|
98
|
+
yr as abrirSeletorCor,
|
|
99
|
+
Ma as alternarCategoria,
|
|
100
|
+
Da as alternarDirecaoOrdenacao,
|
|
101
|
+
ha as alternarPosicionamentoFlutuante,
|
|
102
|
+
sa as aplicarInertForaDoModal,
|
|
103
|
+
Ba as aplicarOrdenacaoTabela,
|
|
104
|
+
Fa as atualizarCampoVisual,
|
|
106
105
|
f as atualizarEstadoSelecaoLista,
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
106
|
+
Ta as atualizarScrollLockDrawer,
|
|
107
|
+
_a as avaliarExpressaoMatematica,
|
|
108
|
+
ya as buscarLinhaPropriedade,
|
|
109
|
+
Qr as calcularAreaAnelSimples,
|
|
110
|
+
Yr as calcularAreaPoligono,
|
|
111
|
+
$r as calcularComprimentoLinha,
|
|
112
|
+
ae as calcularDistanciaPontos,
|
|
113
|
+
re as calcularSelecaoFeicao,
|
|
114
|
+
ee as carregarEstadoPersistido,
|
|
115
|
+
Me as carregarLeaflet,
|
|
117
116
|
t as carregarModuloCanvas,
|
|
118
117
|
s as carregarModuloMapa,
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
118
|
+
qe as cliqueVeioDeRotuloExterno,
|
|
119
|
+
qa as colapsarTodasCategorias,
|
|
120
|
+
Va as conectarArrastoFlutuante,
|
|
121
|
+
wa as conectarPainelControles,
|
|
122
|
+
oe as construirHierarquiaCamadas,
|
|
123
|
+
se as converterCamadaItemParaCanvasLayer,
|
|
124
|
+
te as converterCanvasLayerParaCamadaItem,
|
|
125
|
+
ie as converterFeicaoParaItem,
|
|
126
|
+
qr as coresUnicas,
|
|
127
|
+
M as criarBotaoOpcao,
|
|
128
|
+
Ha as criarControladorSplitter,
|
|
129
|
+
Na as criarEditorAcao,
|
|
130
|
+
Ga as criarEditorBooleano,
|
|
131
|
+
ka as criarEditorCorCad,
|
|
132
|
+
ja as criarEditorCorSwatch,
|
|
133
|
+
Ja as criarEditorLinetype,
|
|
134
|
+
Ka as criarEditorLineweight,
|
|
135
|
+
Wa as criarEditorNumero,
|
|
136
|
+
Xa as criarEditorReadonly,
|
|
137
|
+
Za as criarEditorSelecao,
|
|
138
|
+
Qa as criarEditorTexto,
|
|
139
|
+
Ya as criarEditorValor,
|
|
140
|
+
$a as criarLinhaPropriedade,
|
|
141
|
+
q as criarTemplateCampoTexto,
|
|
143
142
|
A as criarTemplateListaFlutuante,
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
143
|
+
D as criarTemplateSegmented,
|
|
144
|
+
Fe as definirCustomElement,
|
|
145
|
+
Vr as escaparHtml,
|
|
146
|
+
ne as escapeHtml,
|
|
147
|
+
ar as executarOrquestracaoCorpo,
|
|
148
|
+
rr as executarOrquestracaoHeader,
|
|
149
|
+
er as executarRedimensionamentoColuna,
|
|
150
|
+
or as executarRedimensionamentoTeclado,
|
|
151
|
+
sr as exibirPromptPopoverRedimensionamento,
|
|
152
|
+
tr as expandirTodasCategorias,
|
|
153
|
+
wr as fecharSeletorCor,
|
|
154
|
+
ce as filtrarFeicoesPorBusca,
|
|
155
|
+
ir as focarProximoEditor,
|
|
156
|
+
nr as formatWidth,
|
|
157
|
+
le as formatarMetricaFeicoes,
|
|
158
|
+
de as formatarOpcoesCamadasHierarquicas,
|
|
159
|
+
me as gerarChaveStorage,
|
|
160
|
+
Ve as gerarIdUnico,
|
|
161
|
+
Ea as gerenciarTabTrap,
|
|
162
|
+
cr as getAlignmentClass,
|
|
163
|
+
lr as getRowHeight,
|
|
164
|
+
dr as getTextAlign,
|
|
165
|
+
mr as inicializarScrollVirtualizacao,
|
|
166
|
+
ur as iniciarRedimensionamentoColuna,
|
|
168
167
|
r as initZeroJSTriggers,
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
168
|
+
pr as interpretarIndice,
|
|
169
|
+
_e as isBrowser,
|
|
170
|
+
ga as isTopMostDrawer,
|
|
171
|
+
Ir as limitarLarguraColuna,
|
|
172
|
+
ue as limparEstadoPersistido,
|
|
173
|
+
Ur as localizarIndiceItem,
|
|
174
|
+
pe as montarEstadoPersistido,
|
|
175
|
+
Cr as montarEstruturaDOM,
|
|
176
|
+
Hr as normalizarCor,
|
|
177
|
+
Nr as normalizarOpacidade,
|
|
178
|
+
Sr as normalizarTexto,
|
|
179
|
+
fa as obterElementosFocaveis,
|
|
180
|
+
Ie as obterIdsVisiveisFeicoes,
|
|
181
|
+
De as obterLeafletSincrono,
|
|
182
|
+
we as obterRotuloExterno,
|
|
183
|
+
Tr as orquestrarEstruturaInicial,
|
|
184
|
+
Er as proximaDensidade,
|
|
185
|
+
gr as redimensionarColunaPorDelta,
|
|
186
|
+
fr as registrarAtualizadorEditor,
|
|
187
|
+
Aa as registrarToastNoBus,
|
|
188
|
+
Ue as reidratarCamadasComOverrides,
|
|
189
|
+
ta as removerInertForaDoModal,
|
|
190
|
+
Ce as removerSelecoesInvalidas,
|
|
191
|
+
Se as renderizarArvoreCamadas,
|
|
192
|
+
Ar as renderizarCategoriasETree,
|
|
193
|
+
xr as renderizarCorpoTabela,
|
|
194
|
+
Te as renderizarGridMapasBase,
|
|
195
|
+
Pr as renderizarHeaderTabela,
|
|
197
196
|
x as renderizarItensLista,
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
197
|
+
Ee as renderizarRodapeAcoes,
|
|
198
|
+
br as renderizarSeletorTipos,
|
|
199
|
+
ge as renderizarThumbGeometria,
|
|
200
|
+
fe as salvarEstadoPersistido,
|
|
201
|
+
Lr as sincronizarAtributosTabela,
|
|
202
|
+
V as sincronizarFeedbackErro,
|
|
203
|
+
w as sincronizarIconeSenha,
|
|
204
|
+
H as sincronizarLabelEPlaceholder,
|
|
205
|
+
Or as sincronizarPainelControles,
|
|
206
|
+
Rr as sincronizarSelect,
|
|
207
|
+
Ae as snapshotCamada,
|
|
208
|
+
vr as tratarMudancaAtributoTabela,
|
|
209
|
+
h as tratarTecladoSegmented,
|
|
210
|
+
zr as valoresIguais
|
|
212
211
|
};
|
package/dist/mapa.cjs
CHANGED
|
@@ -1,14 +1,19 @@
|
|
|
1
|
-
"use strict";var
|
|
2
|
-
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 140px; padding: 16px; box-sizing: border-box; text-align: center; color: var(--ui-cor-texto-secundario, #888899); font-family: var(--ui-fonte-base, 'Inter', sans-serif); font-size: 12px; background: var(--ui-cor-superficie, #141417); border-radius: var(--ui-raio-borda, 6px); border: 1px dashed var(--ui-cor-borda, rgba(255,255,255,0.15));">
|
|
3
|
-
<span style="font-size: 20px; margin-bottom: 6px;" aria-hidden="true">🗺️</span>
|
|
4
|
-
<strong style="color: var(--ui-cor-texto, #e1e1e6); margin-bottom: 4px;">Leaflet não encontrado</strong>
|
|
5
|
-
<span style="max-width: 320px; line-height: 1.4;">Para utilizar o componente <code><ui-mapa></code>, instale a biblioteca <code>leaflet</code> ou inclua seu script no HTML: <code><script src=".../leaflet.js"></script></code>.</span>
|
|
6
|
-
</div>
|
|
7
|
-
`;class M extends p.SafeHTMLElement{constructor(){super();s(this,"mapContainer");s(this,"mapInstance",null);s(this,"_initTimer",null);s(this,"_resizeObserver");s(this,"_resizeTimer");s(this,"_invalidarTimer");const t=this.attachShadow({mode:"open"});t.innerHTML=`
|
|
1
|
+
"use strict";var M=Object.defineProperty;var _=(n,o,t)=>o in n?M(n,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[o]=t;var a=(n,o,t)=>_(n,typeof o!="symbol"?o+"":o,t);Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const h=require("./leaflet-loader-94z5VsdY.cjs"),d=require("./leaflet-DcO7uRC-.cjs"),m=require("./ssr-safe-CiHD1adl.cjs"),C=":host{display:block;width:100%;height:400px;position:relative;border-radius:var(--ui-raio-lg, 10px);overflow:hidden;box-shadow:var(--shadow-sm, 0 1px 3px rgba(0,0,0,.1))}.ui-mapa-container{width:100%;height:100%;z-index:1}.leaflet-top,.leaflet-bottom{z-index:1000}.ui-mapa-popup{font-family:inherit;font-size:13px;font-weight:500;color:#111827;padding:2px 4px}.ui-mapa-svg-pin,.ui-mapa-div-marker{background:transparent!important;border:none!important;cursor:pointer;transition:transform .15s ease,filter .15s ease}.ui-mapa-svg-pin:hover,.ui-mapa-div-marker:hover{transform:scale(1.15);filter:brightness(1.2)}";function I(n){return{osm:{nome:"OpenStreetMap",layer:()=>n.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png",{attribution:'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors'})},satelite:{nome:"Satélite (Esri)",layer:()=>n.tileLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer/tile/{z}/{y}/{x}",{attribution:"Tiles © Esri — Source: Esri, i-cubed, USDA, USGS, AEX, GeoEye, Getmapping, Aerogrid, IGN, IGP, UPR-EGP, and the GIS User Community"})},topografia:{nome:"Topografia",layer:()=>n.tileLayer("https://{s}.tile.opentopomap.org/{z}/{x}/{y}.png",{attribution:'Map data: © <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors, <a href="http://viewfinderpanoramas.org">SRTM</a> | Map style: © <a href="https://opentopomap.org">OpenTopoMap</a> (<a href="https://creativecommons.org/licenses/by-sa/3.0/">CC-BY-SA</a>)'})},ruas:{nome:"Ruas (Esri)",layer:()=>n.tileLayer("https://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer/tile/{z}/{y}/{x}",{attribution:"Tiles © Esri — Source: Esri, DeLorme, NAVTEQ, USGS, Intermap, iPC, NRCAN, Esri Japan, METI, Esri China (Hong Kong), Esri (Thailand), TomTom, 2012"})}}}class y extends m.SafeHTMLElement{constructor(){super();a(this,"mapContainer");a(this,"mapInstance",null);a(this,"_initTimer",null);a(this,"_resizeObserver");a(this,"_resizeTimer");const t=this.attachShadow({mode:"open"});t.innerHTML=`
|
|
8
2
|
<style>
|
|
9
|
-
${
|
|
10
|
-
${
|
|
3
|
+
${d.leafletCss}
|
|
4
|
+
${C}
|
|
11
5
|
</style>
|
|
12
|
-
<div class="ui-mapa-container" id="map-container"
|
|
6
|
+
<div class="ui-mapa-container" id="map-container"></div>
|
|
13
7
|
<div style="display: none;"><slot></slot></div>
|
|
14
|
-
`,this.mapContainer=t.getElementById("map-container")
|
|
8
|
+
`,this.mapContainer=t.getElementById("map-container")}static get observedAttributes(){return["lat","lng","zoom"]}connectedCallback(){this._initTimer=window.setTimeout(()=>{this.initMap()},0)}disconnectedCallback(){this._initTimer&&(window.clearTimeout(this._initTimer),this._initTimer=null),this._resizeObserver&&(this._resizeObserver.disconnect(),this._resizeObserver=void 0),this._resizeTimer&&(window.clearTimeout(this._resizeTimer),this._resizeTimer=null),this.mapInstance&&(this.mapInstance.remove(),this.mapInstance=null)}attributeChangedCallback(t,e,r){if(e!==r&&this.mapInstance){const i=parseFloat(this.getAttribute("lat")||"-23.550520"),s=parseFloat(this.getAttribute("lng")||"-46.633308"),c=parseInt(this.getAttribute("zoom")||"13",10);!isNaN(i)&&!isNaN(s)&&this.mapInstance.setView([i,s],c)}}async initMap(){var g;if(this.mapInstance)return;const t=await h.carregarLeaflet();if(!t){this.mapContainer.innerHTML=`
|
|
9
|
+
<div style="display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; min-height: 140px; padding: 16px; box-sizing: border-box; text-align: center; color: var(--ui-cor-texto-secundario, #888899); font-family: var(--ui-fonte-base, 'Inter', sans-serif); font-size: 12px; background: var(--ui-cor-superficie, #141417); border-radius: var(--ui-raio-borda, 6px); border: 1px dashed var(--ui-cor-borda, rgba(255,255,255,0.15));">
|
|
10
|
+
<span style="font-size: 20px; margin-bottom: 6px;">🗺️</span>
|
|
11
|
+
<strong style="color: var(--ui-cor-texto, #e1e1e6); margin-bottom: 4px;">Leaflet não encontrado</strong>
|
|
12
|
+
<span style="max-width: 320px; line-height: 1.4;">Para utilizar o componente <code><ui-mapa></code>, instale a biblioteca <code>leaflet</code> ou inclua seu script no HTML: <code><script src=".../leaflet.js"></script></code>.</span>
|
|
13
|
+
</div>
|
|
14
|
+
`;return}const e=I(t),r=parseFloat(this.getAttribute("lat")||"-23.550520"),i=parseFloat(this.getAttribute("lng")||"-46.633308"),s=parseInt(this.getAttribute("zoom")||"13",10);this.mapInstance=t.map(this.mapContainer).setView([r,i],s);const c=this.getAttribute("camadas");let l=["osm"];c&&(l=c.split(",").map(p=>p.trim().toLowerCase()).filter(p=>e[p]),l.length===0&&(l=["osm"]));const f=e[l[0]].layer();if(f.addTo(this.mapInstance),l.length>1){const p={};p[e[l[0]].nome]=f;for(let u=1;u<l.length;u++){const b=l[u];p[e[b].nome]=e[b].layer()}t.control.layers(p,void 0,{position:"topright"}).addTo(this.mapInstance)}(g=t.Icon)!=null&&g.Default&&(t.Icon.Default.imagePath="https://unpkg.com/leaflet@1.9.4/dist/images/"),typeof ResizeObserver<"u"&&this.mapContainer&&(this._resizeObserver=new ResizeObserver(()=>{this._resizeTimer&&clearTimeout(this._resizeTimer),this._resizeTimer=setTimeout(()=>{this.mapInstance&&this.mapInstance.invalidateSize()},60)}),this._resizeObserver.observe(this.mapContainer)),setTimeout(()=>{this.mapInstance&&this.mapInstance.invalidateSize()},100),this.dispatchEvent(new CustomEvent("ui-mapa-pronto",{detail:{map:this.mapInstance},bubbles:!0,composed:!0}))}getMap(){return this.mapInstance}}m.definirCustomElement("ui-mapa",y);class v extends m.SafeHTMLElement{constructor(){super(...arguments);a(this,"marker",null);a(this,"_initTimer",null);a(this,"_retryCount",0);a(this,"_parentMap",null);a(this,"handleMapReady",()=>{this.marker&&(this.marker.remove(),this.marker=null),this.initMarker()})}static get observedAttributes(){return["lat","lng","titulo","cor","formato"]}connectedCallback(){this._parentMap=this.closest("ui-mapa"),this._parentMap&&this._parentMap.addEventListener("ui-mapa-pronto",this.handleMapReady),this._initTimer=setTimeout(()=>this.initMarker(),0)}disconnectedCallback(){this._initTimer&&(clearTimeout(this._initTimer),this._initTimer=null),this._parentMap&&(this._parentMap.removeEventListener("ui-mapa-pronto",this.handleMapReady),this._parentMap=null),this.marker&&(this.marker.remove(),this.marker=null)}attributeChangedCallback(t,e,r){if(e!==r&&this.marker){if(t==="lat"||t==="lng"){const i=d.parseCoordenada(this.getAttribute("lat"),this.getAttribute("lng"));i&&this.marker.setLatLng([i.lat,i.lon])}if(t==="titulo"&&(this.marker.unbindPopup(),r&&this.marker.bindPopup(this.createPopupContent(r))),t==="cor"||t==="formato"){const i=h.obterLeafletSincrono()||window.L;i&&this.marker.setIcon(this.createIcon(i))}}}createPopupContent(t){const e=document.createElement("div");return e.className="ui-mapa-popup",e.textContent=t,e}createIcon(t){const e=this.getAttribute("cor")||"#00f5a0";if((this.getAttribute("formato")||"pin")==="circle"){const s=`<div style="width:14px; height:14px; background-color:${e}; border-radius:50%; border:2px solid #ffffff; box-shadow:0 1px 4px rgba(0,0,0,0.6);"></div>`;return t.divIcon({className:"ui-mapa-div-marker",html:s,iconSize:[14,14],iconAnchor:[7,7]})}const i=`
|
|
15
|
+
<svg width="24" height="32" viewBox="0 0 24 32" fill="none" xmlns="http://www.w3.org/2000/svg" style="filter: drop-shadow(0 2px 4px rgba(0,0,0,0.45));">
|
|
16
|
+
<path d="M12 0C5.372 0 0 5.372 0 12C0 21 12 32 12 32C12 32 24 21 24 12C24 5.372 18.628 0 12 0Z" fill="${e}"/>
|
|
17
|
+
<circle cx="12" cy="11" r="4.5" fill="#ffffff"/>
|
|
18
|
+
</svg>
|
|
19
|
+
`;return t.divIcon({className:"ui-mapa-svg-pin",html:i,iconSize:[24,32],iconAnchor:[12,32],popupAnchor:[0,-30]})}initMarker(){const t=this._parentMap||this.closest("ui-mapa");if(!t){console.warn("<ui-mapa-marcador> deve estar dentro de um elemento <ui-mapa>");return}const e=t.getMap();if(!e){if(this._retryCount>=30){console.warn("<ui-mapa-marcador> Tempo limite esgotado aguardando inicialização do mapa pai.");return}this._retryCount++,this._initTimer=setTimeout(()=>this.initMarker(),50);return}this._retryCount=0;const r=d.parseCoordenada(this.getAttribute("lat"),this.getAttribute("lng"));if(!r)return;const i=this.getAttribute("titulo"),s=h.obterLeafletSincrono()||window.L;s&&(this.marker=s.marker([r.lat,r.lon],{icon:this.createIcon(s)}),this.marker&&(i&&this.marker.bindPopup(this.createPopupContent(i)),this.marker.addTo(e)))}}m.definirCustomElement("ui-mapa-marcador",v);class T extends m.SafeHTMLElement{constructor(){super(...arguments);a(this,"polyline",null);a(this,"_initTimer",null);a(this,"_retryCount",0)}static get observedAttributes(){return["pontos","cor","espessura"]}connectedCallback(){this._initTimer=setTimeout(()=>this.initLinha(),0)}disconnectedCallback(){this._initTimer&&(clearTimeout(this._initTimer),this._initTimer=null),this.polyline&&(this.polyline.remove(),this.polyline=null)}attributeChangedCallback(t,e,r){e!==r&&this.polyline&&(t==="pontos"?this.polyline.setLatLngs(this.getPontos()):(t==="cor"||t==="espessura")&&this.polyline.setStyle({color:this.getAttribute("cor")||"#3388ff",weight:parseInt(this.getAttribute("espessura")||"3",10)}))}getPontos(){try{const t=this.getAttribute("pontos");if(t)return JSON.parse(t)}catch(t){console.error('Formato inválido para atributo pontos no <ui-mapa-linha>. Deve ser um JSON array, ex: "[[lat, lng], ...]"',t)}return[]}initLinha(){const t=this.closest("ui-mapa");if(!t){console.warn("<ui-mapa-linha> deve estar dentro de um elemento <ui-mapa>");return}const e=t.getMap();if(!e){if(this._retryCount>=30){console.warn("<ui-mapa-linha> Tempo limite esgotado aguardando inicialização do mapa pai.");return}this._retryCount++,this._initTimer=setTimeout(()=>this.initLinha(),50);return}this._retryCount=0;const r=this.getAttribute("cor")||"#3388ff",i=parseInt(this.getAttribute("espessura")||"3",10),s=h.obterLeafletSincrono()||window.L;s&&(this.polyline=s.polyline(this.getPontos(),{color:r,weight:i}),this.polyline&&this.polyline.addTo(e))}}m.definirCustomElement("ui-mapa-linha",T);exports.UIMapa=y;exports.UIMapaLinha=T;exports.UIMapaMarcador=v;
|