@thibezer/ui-components-kit 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +624 -0
- package/dist/botao.cjs +1 -0
- package/dist/botao.d.ts +8 -0
- package/dist/botao.js +6 -0
- package/dist/camadas.cjs +296 -0
- package/dist/camadas.d.ts +14 -0
- package/dist/camadas.js +1857 -0
- package/dist/campo-texto.cjs +1 -0
- package/dist/campo-texto.d.ts +8 -0
- package/dist/campo-texto.js +11 -0
- package/dist/canvas.cjs +254 -0
- package/dist/canvas.d.ts +8 -0
- package/dist/canvas.js +3082 -0
- package/dist/card.cjs +1 -0
- package/dist/card.d.ts +7 -0
- package/dist/card.js +5 -0
- package/dist/components/ui-alerta/index.d.ts +2 -0
- package/dist/components/ui-alerta/ui-alerta-base.d.ts +23 -0
- package/dist/components/ui-alerta/ui-alerta.d.ts +2 -0
- package/dist/components/ui-alerta/ui-toast.d.ts +34 -0
- package/dist/components/ui-avatar/index.d.ts +1 -0
- package/dist/components/ui-avatar/ui-avatar.d.ts +12 -0
- package/dist/components/ui-badge/index.d.ts +1 -0
- package/dist/components/ui-badge/ui-badge.d.ts +20 -0
- package/dist/components/ui-barra-ferramentas/ferramentas-comum.d.ts +22 -0
- package/dist/components/ui-barra-ferramentas/ferramentas-icones.d.ts +24 -0
- package/dist/components/ui-barra-ferramentas/index.d.ts +4 -0
- package/dist/components/ui-barra-ferramentas/tipos.d.ts +55 -0
- package/dist/components/ui-barra-ferramentas/ui-paleta-ferramentas.d.ts +54 -0
- package/dist/components/ui-barra-ferramentas/ui-ribbon.d.ts +52 -0
- package/dist/components/ui-botao/index.d.ts +1 -0
- package/dist/components/ui-botao/ui-botao.d.ts +26 -0
- package/dist/components/ui-camadas/camadas-arvore-renderer.d.ts +18 -0
- package/dist/components/ui-camadas/camadas-drag-drop.d.ts +18 -0
- package/dist/components/ui-camadas/camadas-eventos-arvore.d.ts +2 -0
- package/dist/components/ui-camadas/camadas-eventos-camadas.d.ts +2 -0
- package/dist/components/ui-camadas/camadas-eventos-rodape.d.ts +2 -0
- package/dist/components/ui-camadas/camadas-host.d.ts +23 -0
- package/dist/components/ui-camadas/camadas-icones.d.ts +23 -0
- package/dist/components/ui-camadas/camadas-mapas-base.d.ts +3 -0
- package/dist/components/ui-camadas/camadas-metricas.d.ts +17 -0
- package/dist/components/ui-camadas/camadas-persistencia.d.ts +65 -0
- package/dist/components/ui-camadas/camadas-resizer.d.ts +16 -0
- package/dist/components/ui-camadas/camadas-rodape.d.ts +2 -0
- package/dist/components/ui-camadas/camadas-selecao.d.ts +24 -0
- package/dist/components/ui-camadas/camadas-sincronizacao-dom.d.ts +3 -0
- package/dist/components/ui-camadas/camadas-teclado.d.ts +3 -0
- package/dist/components/ui-camadas/camadas-utils.d.ts +26 -0
- package/dist/components/ui-camadas/index.d.ts +11 -0
- package/dist/components/ui-camadas/tipos.d.ts +116 -0
- package/dist/components/ui-camadas/ui-camadas.d.ts +112 -0
- package/dist/components/ui-campo-texto/campo-texto-estados.d.ts +12 -0
- package/dist/components/ui-campo-texto/campo-texto-template.d.ts +2 -0
- package/dist/components/ui-campo-texto/index.d.ts +1 -0
- package/dist/components/ui-campo-texto/ui-campo-texto.d.ts +57 -0
- package/dist/components/ui-canvas-cad/cad-atributos-sync.d.ts +13 -0
- package/dist/components/ui-canvas-cad/cad-broadcast.d.ts +19 -0
- package/dist/components/ui-canvas-cad/cad-colecoes-dados.d.ts +46 -0
- package/dist/components/ui-canvas-cad/cad-eventos-canvas.d.ts +26 -0
- package/dist/components/ui-canvas-cad/cad-inicializador.d.ts +19 -0
- package/dist/components/ui-canvas-cad/cad-painel-camadas.d.ts +9 -0
- package/dist/components/ui-canvas-cad/cad-tamanho-observer.d.ts +7 -0
- package/dist/components/ui-canvas-cad/cad-template.d.ts +1 -0
- package/dist/components/ui-canvas-cad/cad-toolbar-painel.d.ts +29 -0
- package/dist/components/ui-canvas-cad/index.d.ts +8 -0
- package/dist/components/ui-canvas-cad/ui-canvas-cad.d.ts +91 -0
- package/dist/components/ui-card/index.d.ts +1 -0
- package/dist/components/ui-card/ui-card.d.ts +18 -0
- package/dist/components/ui-checkbox/index.d.ts +1 -0
- package/dist/components/ui-checkbox/ui-checkbox.d.ts +36 -0
- package/dist/components/ui-drawer/drawer-acessibilidade.d.ts +16 -0
- package/dist/components/ui-drawer/index.d.ts +1 -0
- package/dist/components/ui-drawer/ui-drawer.d.ts +37 -0
- package/dist/components/ui-icone/index.d.ts +1 -0
- package/dist/components/ui-icone/ui-icone.d.ts +15 -0
- package/dist/components/ui-lista-flutuante/index.d.ts +1 -0
- package/dist/components/ui-lista-flutuante/lista-flutuante-posicionamento.d.ts +15 -0
- package/dist/components/ui-lista-flutuante/lista-flutuante-render.d.ts +9 -0
- package/dist/components/ui-lista-flutuante/lista-flutuante-teclado.d.ts +13 -0
- package/dist/components/ui-lista-flutuante/lista-flutuante-template.d.ts +2 -0
- package/dist/components/ui-lista-flutuante/tipos.d.ts +4 -0
- package/dist/components/ui-lista-flutuante/ui-lista-flutuante.d.ts +63 -0
- package/dist/components/ui-mapa/index.d.ts +3 -0
- package/dist/components/ui-mapa/ui-mapa-linha.d.ts +12 -0
- package/dist/components/ui-mapa/ui-mapa-marcador.d.ts +15 -0
- package/dist/components/ui-mapa/ui-mapa.d.ts +16 -0
- package/dist/components/ui-modal/index.d.ts +2 -0
- package/dist/components/ui-modal/modal-acessibilidade.d.ts +12 -0
- package/dist/components/ui-modal/ui-modal.d.ts +30 -0
- package/dist/components/ui-radio/index.d.ts +1 -0
- package/dist/components/ui-radio/radio-grupo-registry.d.ts +10 -0
- package/dist/components/ui-radio/ui-radio.d.ts +29 -0
- package/dist/components/ui-segmented/index.d.ts +1 -0
- package/dist/components/ui-segmented/segmented-indicador.d.ts +13 -0
- package/dist/components/ui-segmented/segmented-teclado.d.ts +4 -0
- package/dist/components/ui-segmented/segmented-template.d.ts +4 -0
- package/dist/components/ui-segmented/ui-segmented.d.ts +48 -0
- package/dist/components/ui-seletor-mapa-base/index.d.ts +2 -0
- package/dist/components/ui-seletor-mapa-base/tipos.d.ts +22 -0
- package/dist/components/ui-seletor-mapa-base/ui-seletor-mapa-base.d.ts +43 -0
- package/dist/components/ui-skeleton/index.d.ts +1 -0
- package/dist/components/ui-skeleton/ui-skeleton.d.ts +19 -0
- package/dist/components/ui-stat/index.d.ts +1 -0
- package/dist/components/ui-stat/ui-stat.d.ts +30 -0
- package/dist/components/ui-switch/index.d.ts +1 -0
- package/dist/components/ui-switch/ui-switch.d.ts +36 -0
- package/dist/components/ui-tabela/index.d.ts +7 -0
- package/dist/components/ui-tabela/tabela-atributos-sync.d.ts +14 -0
- package/dist/components/ui-tabela/tabela-corpo.d.ts +18 -0
- package/dist/components/ui-tabela/tabela-dom.d.ts +15 -0
- package/dist/components/ui-tabela/tabela-header.d.ts +18 -0
- package/dist/components/ui-tabela/tabela-interacao.d.ts +9 -0
- package/dist/components/ui-tabela/tabela-localizador.d.ts +4 -0
- package/dist/components/ui-tabela/tabela-ordenacao.d.ts +12 -0
- package/dist/components/ui-tabela/tabela-orquestrador-dados.d.ts +18 -0
- package/dist/components/ui-tabela/tabela-redimensionamento.d.ts +28 -0
- package/dist/components/ui-tabela/tabela-remota.d.ts +15 -0
- package/dist/components/ui-tabela/tabela-renderizador.d.ts +29 -0
- package/dist/components/ui-tabela/tabela-selecao.d.ts +24 -0
- package/dist/components/ui-tabela/tipos.d.ts +27 -0
- package/dist/components/ui-tabela/ui-tabela.d.ts +83 -0
- package/dist/components/ui-tabela-propriedades/avaliador-expressao.d.ts +6 -0
- package/dist/components/ui-tabela-propriedades/editores-basicos.d.ts +7 -0
- package/dist/components/ui-tabela-propriedades/editores-cad.d.ts +17 -0
- package/dist/components/ui-tabela-propriedades/index.d.ts +6 -0
- package/dist/components/ui-tabela-propriedades/propriedades-densidade.d.ts +5 -0
- package/dist/components/ui-tabela-propriedades/propriedades-dom-utils.d.ts +6 -0
- package/dist/components/ui-tabela-propriedades/propriedades-editores.d.ts +5 -0
- package/dist/components/ui-tabela-propriedades/propriedades-flutuante.d.ts +7 -0
- package/dist/components/ui-tabela-propriedades/propriedades-gerenciador-valores.d.ts +26 -0
- package/dist/components/ui-tabela-propriedades/propriedades-painel-controles.d.ts +15 -0
- package/dist/components/ui-tabela-propriedades/propriedades-render-arvore.d.ts +24 -0
- package/dist/components/ui-tabela-propriedades/propriedades-seletor-tipo.d.ts +13 -0
- package/dist/components/ui-tabela-propriedades/propriedades-splitter.d.ts +13 -0
- package/dist/components/ui-tabela-propriedades/propriedades-template.d.ts +1 -0
- package/dist/components/ui-tabela-propriedades/tipos.d.ts +48 -0
- package/dist/components/ui-tabela-propriedades/ui-tabela-propriedades.d.ts +66 -0
- package/dist/components/ui-texto/index.d.ts +1 -0
- package/dist/components/ui-texto/ui-texto.d.ts +15 -0
- package/dist/components/ui-tooltip/index.d.ts +1 -0
- package/dist/components/ui-tooltip/ui-tooltip.d.ts +25 -0
- package/dist/core/acessibilidade.d.ts +21 -0
- package/dist/core/form-associated-element.d.ts +33 -0
- package/dist/core/form-validacao.d.ts +34 -0
- package/dist/core/index.d.ts +7 -0
- package/dist/core/leaflet-loader.d.ts +7 -0
- package/dist/core/leaflet-style.d.ts +7 -0
- package/dist/core/listener-bag.d.ts +21 -0
- package/dist/core/ssr-safe.d.ts +20 -0
- package/dist/core/ui-bus.d.ts +85 -0
- package/dist/core/zero-js-triggers.d.ts +1 -0
- package/dist/core.cjs +1 -0
- package/dist/core.js +22 -0
- package/dist/data.cjs +1 -0
- package/dist/data.d.ts +22 -0
- package/dist/data.js +63 -0
- package/dist/feedback.cjs +1 -0
- package/dist/feedback.d.ts +26 -0
- package/dist/feedback.js +25 -0
- package/dist/form-validacao-BIOXxt-1.js +140 -0
- package/dist/form-validacao-ytRYSF3E.cjs +1 -0
- package/dist/forms.cjs +1 -0
- package/dist/forms.d.ts +22 -0
- package/dist/forms.js +25 -0
- package/dist/gerencigeo-canvas/canvas_destaque.d.ts +13 -0
- package/dist/gerencigeo-canvas/canvas_destaque_marcadores.d.ts +8 -0
- package/dist/gerencigeo-canvas/canvas_interacao.d.ts +56 -0
- package/dist/gerencigeo-canvas/canvas_selecao_box.d.ts +23 -0
- package/dist/gerencigeo-canvas/controller_dados_ops.d.ts +15 -0
- package/dist/gerencigeo-canvas/index.d.ts +17 -0
- package/dist/gerencigeo-canvas/layer_defaults.d.ts +3 -0
- package/dist/gerencigeo-canvas/layer_instance_ops.d.ts +6 -0
- package/dist/gerencigeo-canvas/layer_manager.d.ts +37 -0
- package/dist/gerencigeo-canvas/layer_pane_ops.d.ts +8 -0
- package/dist/gerencigeo-canvas/layer_renderer_factory.d.ts +14 -0
- package/dist/gerencigeo-canvas/layer_state_ops.d.ts +6 -0
- package/dist/gerencigeo-canvas/mapa_config.d.ts +11 -0
- package/dist/gerencigeo-canvas/mapa_controller.d.ts +53 -0
- package/dist/gerencigeo-canvas/mapa_core.d.ts +30 -0
- package/dist/gerencigeo-canvas/mapa_linhas.d.ts +14 -0
- package/dist/gerencigeo-canvas/mapa_marcadores.d.ts +18 -0
- package/dist/gerencigeo-canvas/mapa_pontos_shapes.d.ts +8 -0
- package/dist/gerencigeo-canvas/renderers/grid_renderer.d.ts +9 -0
- package/dist/gerencigeo-canvas/renderers/tile_renderer.d.ts +8 -0
- package/dist/gerencigeo-canvas/renderers/vector_lines_builder.d.ts +4 -0
- package/dist/gerencigeo-canvas/renderers/vector_lines_renderer.d.ts +9 -0
- package/dist/gerencigeo-canvas/renderers/vector_points_renderer.d.ts +11 -0
- package/dist/gerencigeo-canvas/renderers/vector_polygons_renderer.d.ts +9 -0
- package/dist/gerencigeo-canvas/renderers/wms_renderer.d.ts +8 -0
- package/dist/gerencigeo-canvas/sigef_consultor.d.ts +9 -0
- package/dist/gerencigeo-canvas/tile_preloader.d.ts +2 -0
- package/dist/gerencigeo-canvas/types.d.ts +169 -0
- package/dist/gerencigeo-canvas/utils.d.ts +46 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +116 -0
- package/dist/index.js +186 -0
- package/dist/leaflet-Cw6tqYFh.cjs +1 -0
- package/dist/leaflet-DkaFZYc5.js +69 -0
- package/dist/leaflet-loader-94z5VsdY.cjs +2 -0
- package/dist/leaflet-loader-Cjcdgj5R.js +21 -0
- package/dist/listener-bag-D5omxZ9h.cjs +1 -0
- package/dist/listener-bag-DQgv7OON.js +34 -0
- package/dist/mapa.cjs +19 -0
- package/dist/mapa.d.ts +11 -0
- package/dist/mapa.js +264 -0
- package/dist/modal.cjs +1 -0
- package/dist/modal.d.ts +8 -0
- package/dist/modal.js +8 -0
- package/dist/register.cjs +1 -0
- package/dist/register.d.ts +7 -0
- package/dist/register.js +21 -0
- package/dist/seletor-mapa-base.cjs +53 -0
- package/dist/seletor-mapa-base.d.ts +8 -0
- package/dist/seletor-mapa-base.js +275 -0
- package/dist/ssr-safe-5cWfJP-s.js +10 -0
- package/dist/ssr-safe-CiHD1adl.cjs +1 -0
- package/dist/tabela.cjs +1 -0
- package/dist/tabela.d.ts +12 -0
- package/dist/tabela.js +56 -0
- package/dist/tools.cjs +1 -0
- package/dist/tools.d.ts +8 -0
- package/dist/tools.js +30 -0
- package/dist/ui-badge-92yelKls.js +183 -0
- package/dist/ui-badge-B95jSECC.cjs +28 -0
- package/dist/ui-botao-BShEouvi.js +124 -0
- package/dist/ui-botao-DF1yuUUD.cjs +12 -0
- package/dist/ui-campo-texto-BCh5HyCM.cjs +16 -0
- package/dist/ui-campo-texto-B_JF6POq.js +361 -0
- package/dist/ui-card-BJ8SmvVf.js +111 -0
- package/dist/ui-card-Bhm6k91e.cjs +20 -0
- package/dist/ui-kit.css +1 -0
- package/dist/ui-modal-Bi4isGYh.cjs +18 -0
- package/dist/ui-modal-DV-pw2x1.js +194 -0
- package/dist/ui-paleta-ferramentas-B6dJ0O6K.cjs +18 -0
- package/dist/ui-paleta-ferramentas-Bpp4XBVg.js +633 -0
- package/dist/ui-segmented-C8wuycjJ.js +411 -0
- package/dist/ui-segmented-NC5cBXLh.cjs +19 -0
- package/dist/ui-skeleton-B3xQyn0Z.js +396 -0
- package/dist/ui-skeleton-D42oQufF.cjs +33 -0
- package/dist/ui-switch-C6o4yZUF.cjs +53 -0
- package/dist/ui-switch-CO9MoS8x.js +826 -0
- package/dist/ui-tabela-propriedades-7yJ9g7ti.cjs +145 -0
- package/dist/ui-tabela-propriedades-D-XKNVwK.js +2078 -0
- package/dist/ui-toast-CQBqvUm3.cjs +20 -0
- package/dist/ui-toast-CwUmiqyG.js +156 -0
- package/dist/zero-js-triggers-DdESy0tk.js +205 -0
- package/dist/zero-js-triggers-QGD7FOTv.cjs +1 -0
- package/package.json +149 -0
package/dist/index.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const T=require("./ui-botao-DF1yuUUD.cjs"),r=require("./ui-switch-C6o4yZUF.cjs"),i=require("./ui-segmented-NC5cBXLh.cjs"),t=require("./ui-campo-texto-BCh5HyCM.cjs"),l=require("./ui-paleta-ferramentas-B6dJ0O6K.cjs"),n=require("./ui-badge-B95jSECC.cjs"),E=require("./ui-card-Bhm6k91e.cjs"),s=require("./ui-modal-Bi4isGYh.cjs"),o=require("./ui-skeleton-D42oQufF.cjs"),c=require("./ui-toast-CQBqvUm3.cjs"),a=require("./ui-tabela-propriedades-7yJ9g7ti.cjs"),p=require("./tools.cjs"),e=require("./camadas.cjs"),U=require("./seletor-mapa-base.cjs"),d=require("./zero-js-triggers-QGD7FOTv.cjs"),g=require("./listener-bag-D5omxZ9h.cjs"),S=require("./leaflet-loader-94z5VsdY.cjs"),u=require("./ssr-safe-CiHD1adl.cjs"),I=require("./form-validacao-ytRYSF3E.cjs"),C=()=>Promise.resolve().then(()=>require("./mapa.cjs")),P=()=>Promise.resolve().then(()=>require("./canvas.cjs"));if(typeof document<"u"){const m=()=>{document.querySelector("ui-mapa, ui-mapa-marcador, ui-mapa-linha")&&!customElements.get("ui-mapa")&&Promise.resolve().then(()=>require("./mapa.cjs")),document.querySelector("ui-canvas-cad")&&!customElements.get("ui-canvas-cad")&&Promise.resolve().then(()=>require("./canvas.cjs"))};document.readyState==="loading"?document.addEventListener("DOMContentLoaded",m,{once:!0}):m()}typeof document<"u"&&d.initZeroJSTriggers();exports.UIBotao=T.UIBotao;exports.UIBotaoPrimario=T.UIBotaoPrimario;exports.ATRIBUTOS_OBSERVADOS_LISTA_FLUTUANTE=r.ATRIBUTOS_OBSERVADOS_LISTA_FLUTUANTE;exports.ListaFlutuantePosicionamento=r.ListaFlutuantePosicionamento;exports.ListaFlutuanteTeclado=r.ListaFlutuanteTeclado;exports.RadioGrupoRegistry=r.RadioGrupoRegistry;exports.UICheckbox=r.UICheckbox;exports.UIListaFlutuante=r.UIListaFlutuante;exports.UIRadio=r.UIRadio;exports.UISelect=r.UISelect;exports.UISwitch=r.UISwitch;exports.UIToggle=r.UIToggle;exports.atualizarEstadoSelecaoLista=r.atualizarEstadoSelecaoLista;exports.criarTemplateListaFlutuante=r.criarTemplateListaFlutuante;exports.renderizarItensLista=r.renderizarItensLista;exports.ATRIBUTOS_OBSERVADOS_SEGMENTED=i.ATRIBUTOS_OBSERVADOS_SEGMENTED;exports.SegmentedIndicadorController=i.SegmentedIndicadorController;exports.UIAvatar=i.UIAvatar;exports.UISegmented=i.UISegmented;exports.UISegmento=i.UISegmento;exports.UITexto=i.UITexto;exports.criarBotaoOpcao=i.criarBotaoOpcao;exports.criarTemplateSegmented=i.criarTemplateSegmented;exports.tratarTecladoSegmented=i.tratarTecladoSegmented;exports.ATRIBUTOS_OBSERVADOS_CAMPO_TEXTO=t.ATRIBUTOS_OBSERVADOS_CAMPO_TEXTO;exports.UICampoTexto=t.UICampoTexto;exports.UIInput=t.UIInput;exports.criarTemplateCampoTexto=t.criarTemplateCampoTexto;exports.sincronizarFeedbackErro=t.sincronizarFeedbackErro;exports.sincronizarIconeSenha=t.sincronizarIconeSenha;exports.sincronizarLabelEPlaceholder=t.sincronizarLabelEPlaceholder;exports.UIIcone=l.UIIcone;exports.UIPaletaFerramentas=l.UIPaletaFerramentas;exports.UIRibbon=l.UIRibbon;exports.UIBadge=n.UIBadge;exports.UIChip=n.UIChip;exports.UIKpi=n.UIKpi;exports.UIMetrica=n.UIMetrica;exports.UIStat=n.UIStat;exports.UITag=n.UITag;exports.UICard=E.UICard;exports.UIDialog=s.UIDialog;exports.UIModal=s.UIModal;exports.aplicarInertForaDoModal=s.aplicarInertForaDoModal;exports.removerInertForaDoModal=s.removerInertForaDoModal;exports.UIDrawer=o.UIDrawer;exports.UIEsqueleto=o.UIEsqueleto;exports.UIGaveta=o.UIGaveta;exports.UIPainelLateral=o.UIPainelLateral;exports.UIPopover=o.UIPopover;exports.UISheet=o.UISheet;exports.UISkeleton=o.UISkeleton;exports.UITooltip=o.UITooltip;exports.atualizarScrollLockDrawer=o.atualizarScrollLockDrawer;exports.gerenciarTabTrap=o.gerenciarTabTrap;exports.isTopMostDrawer=o.isTopMostDrawer;exports.obterElementosFocaveis=o.obterElementosFocaveis;exports.ICONES_ALERTA=c.ICONES_ALERTA;exports.UIAlerta=c.UIAlerta;exports.UIToast=c.UIToast;exports.GerenciadorValoresPropriedades=a.GerenciadorValoresPropriedades;exports.TabelaOrquestradorDados=a.TabelaOrquestradorDados;exports.TabelaRemotaController=a.TabelaRemotaController;exports.TabelaSelecaoController=a.TabelaSelecaoController;exports.UITabela=a.UITabela;exports.UITabelaPropriedades=a.UITabelaPropriedades;exports.abrirPopoverRedimensionamento=a.abrirPopoverRedimensionamento;exports.alternarCategoria=a.alternarCategoria;exports.alternarDirecaoOrdenacao=a.alternarDirecaoOrdenacao;exports.alternarPosicionamentoFlutuante=a.alternarPosicionamentoFlutuante;exports.aplicarOrdenacaoTabela=a.aplicarOrdenacaoTabela;exports.atualizarCampoVisual=a.atualizarCampoVisual;exports.avaliarExpressaoMatematica=a.avaliarExpressaoMatematica;exports.colapsarTodasCategorias=a.colapsarTodasCategorias;exports.conectarArrastoFlutuante=a.conectarArrastoFlutuante;exports.conectarPainelControles=a.conectarPainelControles;exports.criarControladorSplitter=a.criarControladorSplitter;exports.criarEditorAcao=a.criarEditorAcao;exports.criarEditorBooleano=a.criarEditorBooleano;exports.criarEditorCorCad=a.criarEditorCorCad;exports.criarEditorCorSwatch=a.criarEditorCorSwatch;exports.criarEditorLinetype=a.criarEditorLinetype;exports.criarEditorLineweight=a.criarEditorLineweight;exports.criarEditorNumero=a.criarEditorNumero;exports.criarEditorReadonly=a.criarEditorReadonly;exports.criarEditorSelecao=a.criarEditorSelecao;exports.criarEditorTexto=a.criarEditorTexto;exports.criarEditorValor=a.criarEditorValor;exports.criarLinhaPropriedade=a.criarLinhaPropriedade;exports.executarOrquestracaoCorpo=a.executarOrquestracaoCorpo;exports.executarOrquestracaoHeader=a.executarOrquestracaoHeader;exports.executarRedimensionamentoColuna=a.executarRedimensionamentoColuna;exports.exibirPromptPopoverRedimensionamento=a.exibirPromptPopoverRedimensionamento;exports.expandirTodasCategorias=a.expandirTodasCategorias;exports.focarProximoEditor=a.focarProximoEditor;exports.formatWidth=a.formatWidth;exports.getAlignmentClass=a.getAlignmentClass;exports.getRowHeight=a.getRowHeight;exports.getTextAlign=a.getTextAlign;exports.inicializarScrollVirtualizacao=a.inicializarScrollVirtualizacao;exports.iniciarRedimensionamentoColuna=a.iniciarRedimensionamentoColuna;exports.localizarIndiceItem=a.localizarIndiceItem;exports.montarEstruturaDOM=a.montarEstruturaDOM;exports.orquestrarEstruturaInicial=a.orquestrarEstruturaInicial;exports.proximaDensidade=a.proximaDensidade;exports.renderizarCategoriasETree=a.renderizarCategoriasETree;exports.renderizarCorpoTabela=a.renderizarCorpoTabela;exports.renderizarHeaderTabela=a.renderizarHeaderTabela;exports.renderizarSeletorTipos=a.renderizarSeletorTipos;exports.sincronizarAtributosTabela=a.sincronizarAtributosTabela;exports.sincronizarPainelControles=a.sincronizarPainelControles;exports.tratarMudancaAtributoTabela=a.tratarMudancaAtributoTabela;exports.ICONES_FERRAMENTAS=p.ICONES_FERRAMENTAS;exports.CamadasDragDropManager=e.CamadasDragDropManager;exports.ICONES=e.ICONES;exports.LIMITE_FEICOES_POR_CAMADA=e.LIMITE_FEICOES_POR_CAMADA;exports.MAPAS_BASE_PADRAO=e.MAPAS_BASE_PADRAO;exports.UICamadas=e.UICamadas;exports.UILayerPanel=e.UILayerPanel;exports.UIPainelCamadas=e.UIPainelCamadas;exports.calcularAreaPoligono=e.calcularAreaPoligono;exports.calcularComprimentoLinha=e.calcularComprimentoLinha;exports.calcularDistanciaPontos=e.calcularDistanciaPontos;exports.calcularSelecaoFeicao=e.calcularSelecaoFeicao;exports.carregarEstadoPersistido=e.carregarEstadoPersistido;exports.escapeHtml=e.escapeHtml;exports.filtrarFeicoesPorBusca=e.filtrarFeicoesPorBusca;exports.formatarMetricaFeicoes=e.formatarMetricaFeicoes;exports.gerarChaveStorage=e.gerarChaveStorage;exports.limparEstadoPersistido=e.limparEstadoPersistido;exports.montarEstadoPersistido=e.montarEstadoPersistido;exports.obterIdsVisiveisFeicoes=e.obterIdsVisiveisFeicoes;exports.reidratarCamadasComOverrides=e.reidratarCamadasComOverrides;exports.removerSelecoesInvalidas=e.removerSelecoesInvalidas;exports.renderizarArvoreCamadas=e.renderizarArvoreCamadas;exports.renderizarGridMapasBase=e.renderizarGridMapasBase;exports.renderizarRodapeAcoes=e.renderizarRodapeAcoes;exports.renderizarThumbGeometria=e.renderizarThumbGeometria;exports.salvarEstadoPersistido=e.salvarEstadoPersistido;exports.snapshotCamada=e.snapshotCamada;exports.UIMapaBase=U.UIMapaBase;exports.UISeletorMapaBase=U.UISeletorMapaBase;exports.UIBus=d.UIBus;exports.initZeroJSTriggers=d.initZeroJSTriggers;exports.ListenerBag=g.ListenerBag;exports.carregarLeaflet=S.carregarLeaflet;exports.obterLeafletSincrono=S.obterLeafletSincrono;exports.SafeHTMLElement=u.SafeHTMLElement;exports.definirCustomElement=u.definirCustomElement;exports.isBrowser=u.isBrowser;exports.cliqueVeioDeRotuloExterno=I.cliqueVeioDeRotuloExterno;exports.gerarIdUnico=I.gerarIdUnico;exports.obterRotuloExterno=I.obterRotuloExterno;exports.carregarModuloCanvas=P;exports.carregarModuloMapa=C;
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { UIBotao, UIBotaoPrimario } from './components/ui-botao';
|
|
2
|
+
import { UIListaFlutuante, UISelect } from './components/ui-lista-flutuante';
|
|
3
|
+
import { UITexto } from './components/ui-texto';
|
|
4
|
+
import { UICampoTexto, UIInput } from './components/ui-campo-texto';
|
|
5
|
+
import { UIIcone } from './components/ui-icone';
|
|
6
|
+
import { UICheckbox } from './components/ui-checkbox';
|
|
7
|
+
import { UIRadio } from './components/ui-radio';
|
|
8
|
+
import { UISwitch, UIToggle } from './components/ui-switch';
|
|
9
|
+
import { UIBadge, UIChip, UITag } from './components/ui-badge';
|
|
10
|
+
import { UIAvatar } from './components/ui-avatar';
|
|
11
|
+
import { UISegmented, UISegmento } from './components/ui-segmented';
|
|
12
|
+
import { UICard } from './components/ui-card';
|
|
13
|
+
import { UIModal, UIDialog } from './components/ui-modal';
|
|
14
|
+
import { UIDrawer, UISheet, UIPainelLateral, UIGaveta } from './components/ui-drawer';
|
|
15
|
+
import { UIAlerta, UIToast } from './components/ui-alerta';
|
|
16
|
+
import { UITooltip, UIPopover } from './components/ui-tooltip';
|
|
17
|
+
import { UITabela } from './components/ui-tabela';
|
|
18
|
+
import { UIStat, UIKpi, UIMetrica } from './components/ui-stat';
|
|
19
|
+
import { UIMapa } from './components/ui-mapa';
|
|
20
|
+
import { UIMapaMarcador } from './components/ui-mapa/ui-mapa-marcador';
|
|
21
|
+
import { UIMapaLinha } from './components/ui-mapa/ui-mapa-linha';
|
|
22
|
+
import { UISkeleton, UIEsqueleto } from './components/ui-skeleton';
|
|
23
|
+
import { UICanvasCAD } from './components/ui-canvas-cad';
|
|
24
|
+
import { UITabelaPropriedades } from './components/ui-tabela-propriedades';
|
|
25
|
+
import { UIRibbon, UIPaletaFerramentas } from './components/ui-barra-ferramentas';
|
|
26
|
+
import { UICamadas, UIPainelCamadas, UILayerPanel } from './components/ui-camadas';
|
|
27
|
+
import { UISeletorMapaBase } from './components/ui-seletor-mapa-base';
|
|
28
|
+
export * from './components/ui-botao';
|
|
29
|
+
export * from './components/ui-lista-flutuante';
|
|
30
|
+
export * from './components/ui-texto';
|
|
31
|
+
export * from './components/ui-campo-texto';
|
|
32
|
+
export * from './components/ui-icone';
|
|
33
|
+
export * from './components/ui-checkbox';
|
|
34
|
+
export * from './components/ui-radio';
|
|
35
|
+
export * from './components/ui-switch';
|
|
36
|
+
export * from './components/ui-badge';
|
|
37
|
+
export * from './components/ui-avatar';
|
|
38
|
+
export * from './components/ui-segmented';
|
|
39
|
+
export * from './components/ui-card';
|
|
40
|
+
export * from './components/ui-modal';
|
|
41
|
+
export * from './components/ui-drawer';
|
|
42
|
+
export * from './components/ui-alerta';
|
|
43
|
+
export * from './components/ui-tooltip';
|
|
44
|
+
export * from './components/ui-tabela';
|
|
45
|
+
export * from './components/ui-stat';
|
|
46
|
+
export * from './components/ui-skeleton';
|
|
47
|
+
export * from './components/ui-tabela-propriedades';
|
|
48
|
+
export * from './components/ui-barra-ferramentas';
|
|
49
|
+
export * from './components/ui-camadas';
|
|
50
|
+
export { UISeletorMapaBase, UIMapaBase } from './components/ui-seletor-mapa-base';
|
|
51
|
+
export type { PosicaoSeletorMapaBase, VarianteSeletorMapaBase, UISeletorMapaBaseOpcoes, DetalheEventoMapaBaseAlterado } from './components/ui-seletor-mapa-base';
|
|
52
|
+
export * from './core/ui-bus';
|
|
53
|
+
export * from './core/zero-js-triggers';
|
|
54
|
+
export * from './core/listener-bag';
|
|
55
|
+
export * from './core/leaflet-loader';
|
|
56
|
+
export * from './core/ssr-safe';
|
|
57
|
+
export * from './core/acessibilidade';
|
|
58
|
+
export declare const carregarModuloMapa: () => Promise<typeof import("./mapa")>;
|
|
59
|
+
export declare const carregarModuloCanvas: () => Promise<typeof import("./canvas")>;
|
|
60
|
+
export type { UIMapa } from './components/ui-mapa';
|
|
61
|
+
export type { UIMapaMarcador } from './components/ui-mapa/ui-mapa-marcador';
|
|
62
|
+
export type { UIMapaLinha } from './components/ui-mapa/ui-mapa-linha';
|
|
63
|
+
export type { UICanvasCAD } from './components/ui-canvas-cad';
|
|
64
|
+
declare global {
|
|
65
|
+
interface HTMLElementTagNameMap {
|
|
66
|
+
'ui-botao': UIBotao;
|
|
67
|
+
'ui-botao-primario': UIBotaoPrimario;
|
|
68
|
+
'ui-lista-flutuante': UIListaFlutuante;
|
|
69
|
+
'ui-select': UISelect;
|
|
70
|
+
'ui-texto': UITexto;
|
|
71
|
+
'ui-campo-texto': UICampoTexto;
|
|
72
|
+
'ui-input': UIInput;
|
|
73
|
+
'ui-icone': UIIcone;
|
|
74
|
+
'ui-checkbox': UICheckbox;
|
|
75
|
+
'ui-radio': UIRadio;
|
|
76
|
+
'ui-switch': UISwitch;
|
|
77
|
+
'ui-toggle': UIToggle;
|
|
78
|
+
'ui-badge': UIBadge;
|
|
79
|
+
'ui-chip': UIChip;
|
|
80
|
+
'ui-tag': UITag;
|
|
81
|
+
'ui-avatar': UIAvatar;
|
|
82
|
+
'ui-segmented': UISegmented;
|
|
83
|
+
'ui-segmento': UISegmento;
|
|
84
|
+
'ui-card': UICard;
|
|
85
|
+
'ui-modal': UIModal;
|
|
86
|
+
'ui-dialog': UIDialog;
|
|
87
|
+
'ui-drawer': UIDrawer;
|
|
88
|
+
'ui-sheet': UISheet;
|
|
89
|
+
'ui-painel-lateral': UIPainelLateral;
|
|
90
|
+
'ui-gaveta': UIGaveta;
|
|
91
|
+
'ui-alerta': UIAlerta;
|
|
92
|
+
'ui-toast': UIToast;
|
|
93
|
+
'ui-tooltip': UITooltip;
|
|
94
|
+
'ui-popover': UIPopover;
|
|
95
|
+
'ui-tabela': UITabela;
|
|
96
|
+
'ui-stat': UIStat;
|
|
97
|
+
'ui-kpi': UIKpi;
|
|
98
|
+
'ui-metrica': UIMetrica;
|
|
99
|
+
'ui-mapa': UIMapa;
|
|
100
|
+
'ui-mapa-marcador': UIMapaMarcador;
|
|
101
|
+
'ui-mapa-linha': UIMapaLinha;
|
|
102
|
+
'ui-skeleton': UISkeleton;
|
|
103
|
+
'ui-esqueleto': UIEsqueleto;
|
|
104
|
+
'ui-canvas-cad': UICanvasCAD;
|
|
105
|
+
'ui-tabela-propriedades': UITabelaPropriedades;
|
|
106
|
+
'ui-painel-propriedades': UITabelaPropriedades;
|
|
107
|
+
'ui-propriedades': UITabelaPropriedades;
|
|
108
|
+
'ui-ribbon': UIRibbon;
|
|
109
|
+
'ui-paleta-ferramentas': UIPaletaFerramentas;
|
|
110
|
+
'ui-camadas': UICamadas;
|
|
111
|
+
'ui-painel-camadas': UIPainelCamadas;
|
|
112
|
+
'ui-layer-panel': UILayerPanel;
|
|
113
|
+
'ui-seletor-mapa-base': UISeletorMapaBase;
|
|
114
|
+
'ui-mapa-base': UISeletorMapaBase;
|
|
115
|
+
}
|
|
116
|
+
}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,186 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { U as c, a as l } from "./ui-botao-BShEouvi.js";
|
|
3
|
+
import { A as m, L as p, a as u, R as I, U, b as E, c as T, d as S, e as g, f as C, g as f, h as x, r as A } from "./ui-switch-CO9MoS8x.js";
|
|
4
|
+
import { A as P, S as L, U as O, a as R, b as M, c as D, d as v, e as z, t as B } from "./ui-segmented-C8wuycjJ.js";
|
|
5
|
+
import { A as F, U as _, a as y, c as V, s as q, b as w, d as G } from "./ui-campo-texto-B_JF6POq.js";
|
|
6
|
+
import { U as H, a as k, b as j } from "./ui-paleta-ferramentas-Bpp4XBVg.js";
|
|
7
|
+
import { U as K, a as W, b as X, c as Z, d as Q, e as Y } from "./ui-badge-92yelKls.js";
|
|
8
|
+
import { U as aa } from "./ui-card-BJ8SmvVf.js";
|
|
9
|
+
import { U as ea, a as oa, b as sa, r as ta } from "./ui-modal-DV-pw2x1.js";
|
|
10
|
+
import { U as na, a as ca, b as la, c as da, d as ma, e as pa, f as ua, g as Ia, h as Ua, i as Ea, j as Ta, o as Sa } from "./ui-skeleton-B3xQyn0Z.js";
|
|
11
|
+
import { I as Ca, U as fa, a as xa } from "./ui-toast-CwUmiqyG.js";
|
|
12
|
+
import { G as ba, T as Pa, a as La, b as Oa, U as Ra, c as Ma, d as Da, e as va, f as za, g as Ba, h as ha, i as Fa, j as _a, k as ya, l as Va, m as qa, n as wa, o as Ga, p as Na, q as Ha, 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 pr, P as ur, Q as Ir, R as Ur, S as Er, V as Tr, W as Sr, X as gr, Y as Cr, Z as fr } from "./ui-tabela-propriedades-D-XKNVwK.js";
|
|
13
|
+
import { ICONES_FERRAMENTAS as Ar } from "./tools.js";
|
|
14
|
+
import { CamadasDragDropManager as Pr, ICONES as Lr, LIMITE_FEICOES_POR_CAMADA as Or, MAPAS_BASE_PADRAO as Rr, UICamadas as Mr, UILayerPanel as Dr, UIPainelCamadas as vr, calcularAreaPoligono as zr, calcularComprimentoLinha as Br, calcularDistanciaPontos as hr, calcularSelecaoFeicao as Fr, carregarEstadoPersistido as _r, escapeHtml as yr, filtrarFeicoesPorBusca as Vr, formatarMetricaFeicoes as qr, gerarChaveStorage as wr, limparEstadoPersistido as Gr, montarEstadoPersistido as Nr, obterIdsVisiveisFeicoes as Hr, reidratarCamadasComOverrides as kr, removerSelecoesInvalidas as jr, renderizarArvoreCamadas as Jr, renderizarGridMapasBase as Kr, renderizarRodapeAcoes as Wr, renderizarThumbGeometria as Xr, salvarEstadoPersistido as Zr, snapshotCamada as Qr } from "./camadas.js";
|
|
15
|
+
import { UIMapaBase as $r, UISeletorMapaBase as ae } from "./seletor-mapa-base.js";
|
|
16
|
+
import { i as r } from "./zero-js-triggers-DdESy0tk.js";
|
|
17
|
+
import { U as ee } from "./zero-js-triggers-DdESy0tk.js";
|
|
18
|
+
import { L as se } from "./listener-bag-DQgv7OON.js";
|
|
19
|
+
import { c as ie, o as ne } from "./leaflet-loader-Cjcdgj5R.js";
|
|
20
|
+
import { S as le, d as de, i as me } from "./ssr-safe-5cWfJP-s.js";
|
|
21
|
+
import { c as ue, g as Ie, o as Ue } from "./form-validacao-BIOXxt-1.js";
|
|
22
|
+
const s = () => import("./mapa.js"), t = () => import("./canvas.js");
|
|
23
|
+
if (typeof document < "u") {
|
|
24
|
+
const a = () => {
|
|
25
|
+
document.querySelector("ui-mapa, ui-mapa-marcador, ui-mapa-linha") && !customElements.get("ui-mapa") && import("./mapa.js"), document.querySelector("ui-canvas-cad") && !customElements.get("ui-canvas-cad") && import("./canvas.js");
|
|
26
|
+
};
|
|
27
|
+
document.readyState === "loading" ? document.addEventListener("DOMContentLoaded", a, { once: !0 }) : a();
|
|
28
|
+
}
|
|
29
|
+
typeof document < "u" && r();
|
|
30
|
+
export {
|
|
31
|
+
F as ATRIBUTOS_OBSERVADOS_CAMPO_TEXTO,
|
|
32
|
+
m as ATRIBUTOS_OBSERVADOS_LISTA_FLUTUANTE,
|
|
33
|
+
P as ATRIBUTOS_OBSERVADOS_SEGMENTED,
|
|
34
|
+
Pr as CamadasDragDropManager,
|
|
35
|
+
ba as GerenciadorValoresPropriedades,
|
|
36
|
+
Lr as ICONES,
|
|
37
|
+
Ca as ICONES_ALERTA,
|
|
38
|
+
Ar as ICONES_FERRAMENTAS,
|
|
39
|
+
Or as LIMITE_FEICOES_POR_CAMADA,
|
|
40
|
+
p as ListaFlutuantePosicionamento,
|
|
41
|
+
u as ListaFlutuanteTeclado,
|
|
42
|
+
se as ListenerBag,
|
|
43
|
+
Rr as MAPAS_BASE_PADRAO,
|
|
44
|
+
I as RadioGrupoRegistry,
|
|
45
|
+
le as SafeHTMLElement,
|
|
46
|
+
L as SegmentedIndicadorController,
|
|
47
|
+
Pa as TabelaOrquestradorDados,
|
|
48
|
+
La as TabelaRemotaController,
|
|
49
|
+
Oa as TabelaSelecaoController,
|
|
50
|
+
fa as UIAlerta,
|
|
51
|
+
O as UIAvatar,
|
|
52
|
+
K as UIBadge,
|
|
53
|
+
c as UIBotao,
|
|
54
|
+
l as UIBotaoPrimario,
|
|
55
|
+
ee as UIBus,
|
|
56
|
+
Mr as UICamadas,
|
|
57
|
+
_ as UICampoTexto,
|
|
58
|
+
aa as UICard,
|
|
59
|
+
U as UICheckbox,
|
|
60
|
+
W as UIChip,
|
|
61
|
+
ea as UIDialog,
|
|
62
|
+
na as UIDrawer,
|
|
63
|
+
ca as UIEsqueleto,
|
|
64
|
+
la as UIGaveta,
|
|
65
|
+
H as UIIcone,
|
|
66
|
+
y as UIInput,
|
|
67
|
+
X as UIKpi,
|
|
68
|
+
Dr as UILayerPanel,
|
|
69
|
+
E as UIListaFlutuante,
|
|
70
|
+
$r as UIMapaBase,
|
|
71
|
+
Z as UIMetrica,
|
|
72
|
+
oa as UIModal,
|
|
73
|
+
vr as UIPainelCamadas,
|
|
74
|
+
da as UIPainelLateral,
|
|
75
|
+
k as UIPaletaFerramentas,
|
|
76
|
+
ma as UIPopover,
|
|
77
|
+
T as UIRadio,
|
|
78
|
+
j as UIRibbon,
|
|
79
|
+
R as UISegmented,
|
|
80
|
+
M as UISegmento,
|
|
81
|
+
S as UISelect,
|
|
82
|
+
ae as UISeletorMapaBase,
|
|
83
|
+
pa as UISheet,
|
|
84
|
+
ua as UISkeleton,
|
|
85
|
+
Q as UIStat,
|
|
86
|
+
g as UISwitch,
|
|
87
|
+
Ra as UITabela,
|
|
88
|
+
Ma as UITabelaPropriedades,
|
|
89
|
+
Y as UITag,
|
|
90
|
+
D as UITexto,
|
|
91
|
+
xa as UIToast,
|
|
92
|
+
C as UIToggle,
|
|
93
|
+
Ia as UITooltip,
|
|
94
|
+
Da as abrirPopoverRedimensionamento,
|
|
95
|
+
va as alternarCategoria,
|
|
96
|
+
za as alternarDirecaoOrdenacao,
|
|
97
|
+
Ba as alternarPosicionamentoFlutuante,
|
|
98
|
+
sa as aplicarInertForaDoModal,
|
|
99
|
+
ha as aplicarOrdenacaoTabela,
|
|
100
|
+
Fa as atualizarCampoVisual,
|
|
101
|
+
f as atualizarEstadoSelecaoLista,
|
|
102
|
+
Ua as atualizarScrollLockDrawer,
|
|
103
|
+
_a as avaliarExpressaoMatematica,
|
|
104
|
+
zr as calcularAreaPoligono,
|
|
105
|
+
Br as calcularComprimentoLinha,
|
|
106
|
+
hr as calcularDistanciaPontos,
|
|
107
|
+
Fr as calcularSelecaoFeicao,
|
|
108
|
+
_r as carregarEstadoPersistido,
|
|
109
|
+
ie as carregarLeaflet,
|
|
110
|
+
t as carregarModuloCanvas,
|
|
111
|
+
s as carregarModuloMapa,
|
|
112
|
+
ue as cliqueVeioDeRotuloExterno,
|
|
113
|
+
ya as colapsarTodasCategorias,
|
|
114
|
+
Va as conectarArrastoFlutuante,
|
|
115
|
+
qa as conectarPainelControles,
|
|
116
|
+
v as criarBotaoOpcao,
|
|
117
|
+
wa as criarControladorSplitter,
|
|
118
|
+
Ga as criarEditorAcao,
|
|
119
|
+
Na as criarEditorBooleano,
|
|
120
|
+
Ha as criarEditorCorCad,
|
|
121
|
+
ka as criarEditorCorSwatch,
|
|
122
|
+
ja as criarEditorLinetype,
|
|
123
|
+
Ja as criarEditorLineweight,
|
|
124
|
+
Ka as criarEditorNumero,
|
|
125
|
+
Wa as criarEditorReadonly,
|
|
126
|
+
Xa as criarEditorSelecao,
|
|
127
|
+
Za as criarEditorTexto,
|
|
128
|
+
Qa as criarEditorValor,
|
|
129
|
+
Ya as criarLinhaPropriedade,
|
|
130
|
+
V as criarTemplateCampoTexto,
|
|
131
|
+
x as criarTemplateListaFlutuante,
|
|
132
|
+
z as criarTemplateSegmented,
|
|
133
|
+
de as definirCustomElement,
|
|
134
|
+
yr as escapeHtml,
|
|
135
|
+
$a as executarOrquestracaoCorpo,
|
|
136
|
+
ar as executarOrquestracaoHeader,
|
|
137
|
+
rr as executarRedimensionamentoColuna,
|
|
138
|
+
er as exibirPromptPopoverRedimensionamento,
|
|
139
|
+
or as expandirTodasCategorias,
|
|
140
|
+
Vr as filtrarFeicoesPorBusca,
|
|
141
|
+
sr as focarProximoEditor,
|
|
142
|
+
tr as formatWidth,
|
|
143
|
+
qr as formatarMetricaFeicoes,
|
|
144
|
+
wr as gerarChaveStorage,
|
|
145
|
+
Ie as gerarIdUnico,
|
|
146
|
+
Ea as gerenciarTabTrap,
|
|
147
|
+
ir as getAlignmentClass,
|
|
148
|
+
nr as getRowHeight,
|
|
149
|
+
cr as getTextAlign,
|
|
150
|
+
lr as inicializarScrollVirtualizacao,
|
|
151
|
+
dr as iniciarRedimensionamentoColuna,
|
|
152
|
+
r as initZeroJSTriggers,
|
|
153
|
+
me as isBrowser,
|
|
154
|
+
Ta as isTopMostDrawer,
|
|
155
|
+
Gr as limparEstadoPersistido,
|
|
156
|
+
mr as localizarIndiceItem,
|
|
157
|
+
Nr as montarEstadoPersistido,
|
|
158
|
+
pr as montarEstruturaDOM,
|
|
159
|
+
Sa as obterElementosFocaveis,
|
|
160
|
+
Hr as obterIdsVisiveisFeicoes,
|
|
161
|
+
ne as obterLeafletSincrono,
|
|
162
|
+
Ue as obterRotuloExterno,
|
|
163
|
+
ur as orquestrarEstruturaInicial,
|
|
164
|
+
Ir as proximaDensidade,
|
|
165
|
+
kr as reidratarCamadasComOverrides,
|
|
166
|
+
ta as removerInertForaDoModal,
|
|
167
|
+
jr as removerSelecoesInvalidas,
|
|
168
|
+
Jr as renderizarArvoreCamadas,
|
|
169
|
+
Ur as renderizarCategoriasETree,
|
|
170
|
+
Er as renderizarCorpoTabela,
|
|
171
|
+
Kr as renderizarGridMapasBase,
|
|
172
|
+
Tr as renderizarHeaderTabela,
|
|
173
|
+
A as renderizarItensLista,
|
|
174
|
+
Wr as renderizarRodapeAcoes,
|
|
175
|
+
Sr as renderizarSeletorTipos,
|
|
176
|
+
Xr as renderizarThumbGeometria,
|
|
177
|
+
Zr as salvarEstadoPersistido,
|
|
178
|
+
gr as sincronizarAtributosTabela,
|
|
179
|
+
q as sincronizarFeedbackErro,
|
|
180
|
+
w as sincronizarIconeSenha,
|
|
181
|
+
G as sincronizarLabelEPlaceholder,
|
|
182
|
+
Cr as sincronizarPainelControles,
|
|
183
|
+
Qr as snapshotCamada,
|
|
184
|
+
fr as tratarMudancaAtributoTabela,
|
|
185
|
+
B as tratarTecladoSegmented
|
|
186
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const p=e=>e==null?"":String(e).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),d=(e,l=3)=>e==null||isNaN(e)?"—":e.toLocaleString("pt-BR",{minimumFractionDigits:l,maximumFractionDigits:l}),s=(e,l)=>{if(e==null||l===null||l===void 0)return null;const a=r=>{if(typeof r=="number")return r;if(typeof r=="string"){const i=r.trim().replace(",",".");return parseFloat(i)}return NaN},t=a(e),o=a(l);return isNaN(t)||isNaN(o)?null:Math.abs(t)>90||Math.abs(o)>180?(console.warn(`[gerencigeo-canvas] Coordenada fora do limite geográfico WGS-84 (Lat: ${t}, Lon: ${o}). Parece ser projeção UTM plana.`),null):t===0&&o===0?null:{lat:t,lon:o}},g=(e,l)=>!e||!Array.isArray(e)||e.length===0?"":`<div class="ui-popup-actions-footer">${e.map(t=>{const o=t.variante||"secondary";return`<button type="button" class="ui-popup-btn ui-popup-btn-${p(o)}" data-acao-id="${p(t.id)}" data-elemento-id="${p(String(l))}">${p(t.rotulo)}</button>`}).join("")}</div>`,u=(e,l,a,t)=>{const o=e!=null&&e.getElement?e.getElement():null;if(!o)return;o.querySelectorAll(".ui-popup-btn").forEach(i=>{i.onclick=n=>{n.preventDefault(),n.stopPropagation();const f=i.getAttribute("data-acao-id"),c=i.getAttribute("data-elemento-id")??(l==null?void 0:l.id);f&&c!==void 0&&c!==null&&(a.onPopupAcao&&a.onPopupAcao(f,c,l),t&&typeof t.closePopup=="function"?t.closePopup():e._map&&typeof e._map.closePopup=="function"&&e._map.closePopup())}})},b=(e,l)=>{const a={};return e.forEach(t=>{let o;l&&t[l]!==void 0&&t[l]!==null?o=t[l]:(o=t.grupoId??t.grupoKey,o==null&&(t.matricula_id!==void 0&&t.matricula_id!==null?o=`mat_${t.matricula_id}`:t.planilha_origem?o=t.planilha_origem:o="padrao"));const r=String(o);a[r]||(a[r]=[]),a[r].push(t)}),a},m=e=>[...e].sort((l,a)=>{const t=o=>{const r=o.ordem??o.indice??o.index??o.seq??o.ordem_caminhamento??o.id,i=Number(r);return isNaN(i)?999999:i};return t(l)-t(a)}),x=e=>{if(!e||typeof e!="string")return null;const l=/(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)/g;let a,t=0,o=0,r=0;for(;(a=l.exec(e))!==null;){const i=parseFloat(a[1]),n=parseFloat(a[2]);if(!isNaN(i)&&!isNaN(n)){const f=s(n,i)||s(i,n);f&&(t+=f.lat,o+=f.lon,r++)}}return r>0?{lat:t/r,lon:o/r}:null},h='.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}';exports.agruparPontosPorChave=b;exports.bindPopupAcoesEvents=u;exports.escapeHtml=p;exports.extrairCentroDeWkt=x;exports.formatUTM=d;exports.leafletCss=h;exports.ordenarPontosPorSequencia=m;exports.parseCoordenada=s;exports.renderPopupAcoesHtml=g;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const p = (e) => e == null ? "" : String(e).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'"), d = (e, l = 3) => e == null || isNaN(e) ? "—" : e.toLocaleString("pt-BR", {
|
|
2
|
+
minimumFractionDigits: l,
|
|
3
|
+
maximumFractionDigits: l
|
|
4
|
+
}), s = (e, l) => {
|
|
5
|
+
if (e == null || l === null || l === void 0)
|
|
6
|
+
return null;
|
|
7
|
+
const a = (r) => {
|
|
8
|
+
if (typeof r == "number") return r;
|
|
9
|
+
if (typeof r == "string") {
|
|
10
|
+
const i = r.trim().replace(",", ".");
|
|
11
|
+
return parseFloat(i);
|
|
12
|
+
}
|
|
13
|
+
return NaN;
|
|
14
|
+
}, t = a(e), o = a(l);
|
|
15
|
+
return isNaN(t) || isNaN(o) ? null : Math.abs(t) > 90 || Math.abs(o) > 180 ? (console.warn(`[gerencigeo-canvas] Coordenada fora do limite geográfico WGS-84 (Lat: ${t}, Lon: ${o}). Parece ser projeção UTM plana.`), null) : t === 0 && o === 0 ? null : { lat: t, lon: o };
|
|
16
|
+
}, g = (e, l) => !e || !Array.isArray(e) || e.length === 0 ? "" : `<div class="ui-popup-actions-footer">${e.map((t) => {
|
|
17
|
+
const o = t.variante || "secondary";
|
|
18
|
+
return `<button type="button" class="ui-popup-btn ui-popup-btn-${p(o)}" data-acao-id="${p(t.id)}" data-elemento-id="${p(String(l))}">${p(t.rotulo)}</button>`;
|
|
19
|
+
}).join("")}</div>`, u = (e, l, a, t) => {
|
|
20
|
+
const o = e != null && e.getElement ? e.getElement() : null;
|
|
21
|
+
if (!o) return;
|
|
22
|
+
o.querySelectorAll(".ui-popup-btn").forEach((i) => {
|
|
23
|
+
i.onclick = (n) => {
|
|
24
|
+
n.preventDefault(), n.stopPropagation();
|
|
25
|
+
const f = i.getAttribute("data-acao-id"), c = i.getAttribute("data-elemento-id") ?? (l == null ? void 0 : l.id);
|
|
26
|
+
f && c !== void 0 && c !== null && (a.onPopupAcao && a.onPopupAcao(f, c, l), t && typeof t.closePopup == "function" ? t.closePopup() : e._map && typeof e._map.closePopup == "function" && e._map.closePopup());
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
}, b = (e, l) => {
|
|
30
|
+
const a = {};
|
|
31
|
+
return e.forEach((t) => {
|
|
32
|
+
let o;
|
|
33
|
+
l && t[l] !== void 0 && t[l] !== null ? o = t[l] : (o = t.grupoId ?? t.grupoKey, o == null && (t.matricula_id !== void 0 && t.matricula_id !== null ? o = `mat_${t.matricula_id}` : t.planilha_origem ? o = t.planilha_origem : o = "padrao"));
|
|
34
|
+
const r = String(o);
|
|
35
|
+
a[r] || (a[r] = []), a[r].push(t);
|
|
36
|
+
}), a;
|
|
37
|
+
}, m = (e) => [...e].sort((l, a) => {
|
|
38
|
+
const t = (o) => {
|
|
39
|
+
const r = o.ordem ?? o.indice ?? o.index ?? o.seq ?? o.ordem_caminhamento ?? o.id, i = Number(r);
|
|
40
|
+
return isNaN(i) ? 999999 : i;
|
|
41
|
+
};
|
|
42
|
+
return t(l) - t(a);
|
|
43
|
+
}), x = (e) => {
|
|
44
|
+
if (!e || typeof e != "string") return null;
|
|
45
|
+
const l = /(-?\d+(?:\.\d+)?)\s+(-?\d+(?:\.\d+)?)/g;
|
|
46
|
+
let a, t = 0, o = 0, r = 0;
|
|
47
|
+
for (; (a = l.exec(e)) !== null; ) {
|
|
48
|
+
const i = parseFloat(a[1]), n = parseFloat(a[2]);
|
|
49
|
+
if (!isNaN(i) && !isNaN(n)) {
|
|
50
|
+
const f = s(n, i) || s(i, n);
|
|
51
|
+
f && (t += f.lat, o += f.lon, r++);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return r > 0 ? {
|
|
55
|
+
lat: t / r,
|
|
56
|
+
lon: o / r
|
|
57
|
+
} : null;
|
|
58
|
+
}, h = '.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;-moz-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{-ms-touch-action:pan-x pan-y;touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{-ms-touch-action:pinch-zoom;touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{-ms-touch-action:none;touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;-moz-box-sizing:border-box;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;-webkit-transition:opacity .2s linear;-moz-transition:opacity .2s linear;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{-webkit-transform-origin:0 0;-ms-transform-origin:0 0;transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{-webkit-transition:-webkit-transform .25s cubic-bezier(0,0,.25,1);-moz-transition:-moz-transform .25s cubic-bezier(0,0,.25,1);transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{-webkit-transition:none;-moz-transition:none;transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:-webkit-grab;cursor:-moz-grab;cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:-webkit-grabbing;cursor:-moz-grabbing;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABoAAAAaCAQAAAADQ4RFAAACf0lEQVR4AY1UM3gkARTePdvdoTxXKc+qTl3aU5U6b2Kbkz3Gtq3Zw6ziLGNPzrYx7946Tr6/ee/XeCQ4D3ykPtL5tHno4n0d/h3+xfuWHGLX81cn7r0iTNzjr7LrlxCqPtkbTQEHeqOrTy4Yyt3VCi/IOB0v7rVC7q45Q3Gr5K6jt+3Gl5nCoDD4MtO+j96Wu8atmhGqcNGHObuf8OM/x3AMx38+4Z2sPqzCxRFK2aF2e5Jol56XTLyggAMTL56XOMoS1W4pOyjUcGGQdZxU6qRh7B9Zp+PfpOFlqt0zyDZckPi1ttmIp03jX8gyJ8a/PG2yutpS/Vol7peZIbZcKBAEEheEIAgFbDkz5H6Zrkm2hVWGiXKiF4Ycw0RWKdtC16Q7qe3X4iOMxruonzegJzWaXFrU9utOSsLUmrc0YjeWYjCW4PDMADElpJSSQ0vQvA1Tm6/JlKnqFs1EGyZiFCqnRZTEJJJiKRYzVYzJck2Rm6P4iH+cmSY0YzimYa8l0EtTODFWhcMIMVqdsI2uiTvKmTisIDHJ3od5GILVhBCarCfVRmo4uTjkhrhzkiBV7SsaqS+TzrzM1qpGGUFt28pIySQHR6h7F6KSwGWm97ay+Z+ZqMcEjEWebE7wxCSQwpkhJqoZA5ivCdZDjJepuJ9IQjGGUmuXJdBFUygxVqVsxFsLMbDe8ZbDYVCGKxs+W080max1hFCarCfV+C1KATwcnvE9gRRuMP2prdbWGowm1KB1y+zwMMENkM755cJ2yPDtqhTI6ED1M/82yIDtC/4j4BijjeObflpO9I9MwXTCsSX8jWAFeHr05WoLTJ5G8IQVS/7vwR6ohirYM7f6HzYpogfS3R2OAAAAAElFTkSuQmCC);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADQAAAA0CAQAAABvcdNgAAAEsklEQVR4AWL4TydIhpZK1kpWOlg0w3ZXP6D2soBtG42jeI6ZmQTHzAxiTbSJsYLjO9HhP+WOmcuhciVnmHVQcJnp7DFvScowZorad/+V/fVzMdMT2g9Cv9guXGv/7pYOrXh2U+RRR3dSd9JRx6bIFc/ekqHI29JC6pJ5ZEh1yWkhkbcFeSjxgx3L2m1cb1C7bceyxA+CNjT/Ifff+/kDk2u/w/33/IeCMOSaWZ4glosqT3DNnNZQ7Cs58/3Ce5HL78iZH/vKVIaYlqzfdLu8Vi7dnvUbEza5Idt36tquZFldl6N5Z/POLof0XLK61mZCmJSWjVF9tEjUluu74IUXvgttuVIHE7YxSkaYhJZam7yiM9Pv82JYfl9nptxZaxMJE4YSPty+vF0+Y2up9d3wwijfjZbabqm/3bZ9ecKHsiGmRflnn1MW4pjHf9oLufyn2z3y1D6n8g8TZhxyzipLNPnAUpsOiuWimg52psrTZYnOWYNDTMuWBWa0tJb4rgq1UvmutpaYEbZlwU3CLJm/ayYjHW5/h7xWLn9Hh1vepDkyf7dE7MtT5LR4e7yYpHrkhOUpEfssBLq2pPhAqoSWKUkk7EDqkmK6RrCEzqDjhNDWNE+XSMvkJRDWlZTmCW0l0PHQGRZY5t1L83kT0Y3l2SItk5JAWHl2dCOBm+fPu3fo5/3v61RMCO9Jx2EEYYhb0rmNQMX/vm7gqOEJLcXTGw3CAuRNeyaPWwjR8PRqKQ1PDA/dpv+on9Shox52WFnx0KY8onHayrJzm87i5h9xGw/tfkev0jGsQizqezUKjk12hBMKJ4kbCqGPVNXudyyrShovGw5CgxsRICxF6aRmSjlBnHRzg7Gx8fKqEubI2rahQYdR1YgDIRQO7JvQyD52hoIQx0mxa0ODtW2Iozn1le2iIRdzwWewedyZzewidueOGqlsn1MvcnQpuVwLGG3/IR1hIKxCjelIDZ8ldqWz25jWAsnldEnK0Zxro19TGVb2ffIZEsIO89EIEDvKMPrzmBOQcKQ+rroye6NgRRxqR4U8EAkz0CL6uSGOm6KQCdWjvjRiSP1BPalCRS5iQYiEIvxuBMJEWgzSoHADcVMuN7IuqqTeyUPq22qFimFtxDyBBJEwNyt6TM88blFHao/6tWWhuuOM4SAK4EI4QmFHA+SEyWlp4EQoJ13cYGzMu7yszEIBOm2rVmHUNqwAIQabISNMRstmdhNWcFLsSm+0tjJH1MdRxO5Nx0WDMhCtgD6OKgZeljJqJKc9po8juskR9XN0Y1lZ3mWjLR9JCO1jRDMd0fpYC2VnvjBSEFg7wBENc0R9HFlb0xvF1+TBEpF68d+DHR6IOWVv2BECtxo46hOFUBd/APU57WIoEwJhIi2CdpyZX0m93BZicktMj1AS9dClteUFAUNUIEygRZCtik5zSxI9MubTBH1GOiHsiLJ3OCoSZkILa9PxiN0EbvhsAo8tdAf9Seepd36lGWHmtNANTv5Jd0z4QYyeo/UEJqxKRpg5LZx6btLPsOaEmdMyxYdlc8LMaJnikDlhclqmPiQnTEpLUIZEwkRagjYkEibQErwhkTAKCLQEbUgkzJQWc/0PstHHcfEdQ+UAAAAASUVORK5CYII=);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABkAAAApCAYAAADAk4LOAAAFgUlEQVR4Aa1XA5BjWRTN2oW17d3YaZtr2962HUzbDNpjszW24mRt28p47v7zq/bXZtrp/lWnXr337j3nPCe85NcypgSFdugCpW5YoDAMRaIMqRi6aKq5E3YqDQO3qAwjVWrD8Ncq/RBpykd8oZUb/kaJutow8r1aP9II0WmLKLIsJyv1w/kqw9Ch2MYdB++12Onxee/QMwvf4/Dk/Lfp/i4nxTXtOoQ4pW5Aj7wpici1A9erdAN2OH64x8OSP9j3Ft3b7aWkTg/Fm91siTra0f9on5sQr9INejH6CUUUpavjFNq1B+Oadhxmnfa8RfEmN8VNAsQhPqF55xHkMzz3jSmChWU6f7/XZKNH+9+hBLOHYozuKQPxyMPUKkrX/K0uWnfFaJGS1QPRtZsOPtr3NsW0uyh6NNCOkU3Yz+bXbT3I8G3xE5EXLXtCXbbqwCO9zPQYPRTZ5vIDXD7U+w7rFDEoUUf7ibHIR4y6bLVPXrz8JVZEql13trxwue/uDivd3fkWRbS6/IA2bID4uk0UpF1N8qLlbBlXs4Ee7HLTfV1j54APvODnSfOWBqtKVvjgLKzF5YdEk5ewRkGlK0i33Eofffc7HT56jD7/6U+qH3Cx7SBLNntH5YIPvODnyfIXZYRVDPqgHtLs5ABHD3YzLuespb7t79FY34DjMwrVrcTuwlT55YMPvOBnRrJ4VXTdNnYug5ucHLBjEpt30701A3Ts+HEa73u6dT3FNWwflY86eMHPk+Yu+i6pzUpRrW7SNDg5JHR4KapmM5Wv2E8Tfcb1HoqqHMHU+uWDD7zg54mz5/2BSnizi9T1Dg4QQXLToGNCkb6tb1NU+QAlGr1++eADrzhn/u8Q2YZhQVlZ5+CAOtqfbhmaUCS1ezNFVm2imDbPmPng5wmz+gwh+oHDce0eUtQ6OGDIyR0uUhUsoO3vfDmmgOezH0mZN59x7MBi++WDL1g/eEiU3avlidO671bkLfwbw5XV2P8Pzo0ydy4t2/0eu33xYSOMOD8hTf4CrBtGMSoXfPLchX+J0ruSePw3LZeK0juPJbYzrhkH0io7B3k164hiGvawhOKMLkrQLyVpZg8rHFW7E2uHOL888IBPlNZ1FPzstSJM694fWr6RwpvcJK60+0HCILTBzZLFNdtAzJaohze60T8qBzyh5ZuOg5e7uwQppofEmf2++DYvmySqGBuKaicF1blQjhuHdvCIMvp8whTTfZzI7RldpwtSzL+F1+wkdZ2TBOW2gIF88PBTzD/gpeREAMEbxnJcaJHNHrpzji0gQCS6hdkEeYt9DF/2qPcEC8RM28Hwmr3sdNyht00byAut2k3gufWNtgtOEOFGUwcXWNDbdNbpgBGxEvKkOQsxivJx33iow0Vw5S6SVTrpVq11ysA2Rp7gTfPfktc6zhtXBBC+adRLshf6sG2RfHPZ5EAc4sVZ83yCN00Fk/4kggu40ZTvIEm5g24qtU4KjBrx/BTTH8ifVASAG7gKrnWxJDcU7x8X6Ecczhm3o6YicvsLXWfh3Ch1W0k8x0nXF+0fFxgt4phz8QvypiwCCFKMqXCnqXExjq10beH+UUA7+nG6mdG/Pu0f3LgFcGrl2s0kNNjpmoJ9o4B29CMO8dMT4Q5ox8uitF6fqsrJOr8qnwNbRzv6hSnG5wP+64C7h9lp30hKNtKdWjtdkbuPA19nJ7Tz3zR/ibgARbhb4AlhavcBebmTHcFl2fvYEnW0ox9xMxKBS8btJ+KiEbq9zA4RthQXDhPa0T9TEe69gWupwc6uBUphquXgf+/FrIjweHQS4/pduMe5ERUMHUd9xv8ZR98CxkS4F2n3EUrUZ10EYNw7BWm9x1GiPssi3GgiGRDKWRYZfXlON+dfNbM+GgIwYdwAAAAASUVORK5CYII=)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;-moz-box-sizing:border-box;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;-webkit-transform:rotate(45deg);-moz-transform:rotate(45deg);-ms-transform:rotate(45deg);transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;print-color-adjust:exact}}';
|
|
59
|
+
export {
|
|
60
|
+
b as a,
|
|
61
|
+
u as b,
|
|
62
|
+
x as c,
|
|
63
|
+
p as e,
|
|
64
|
+
d as f,
|
|
65
|
+
h as l,
|
|
66
|
+
m as o,
|
|
67
|
+
s as p,
|
|
68
|
+
g as r
|
|
69
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var u=Object.create;var l=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var d=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var s=(n,e,o,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of c(e))!w.call(n,i)&&i!==o&&l(n,i,{get:()=>e[i],enumerable:!(r=f(e,i))||r.enumerable});return n};var p=(n,e,o)=>(o=n!=null?u(d(n)):{},s(e||!n||!n.__esModule?l(o,"default",{value:n,enumerable:!0}):o,n));let a=null,t=null;async function L(){return typeof window<"u"&&window.L?(t=window.L,t):t||a||(a=(async()=>{try{const n=await import("leaflet");return t=n.default||n,typeof window<"u"&&!window.L&&(window.L=t),t}catch{return a=null,console.warn(`[UI Components Kit] O Leaflet não foi encontrado no ambiente.
|
|
2
|
+
Para utilizar componentes de mapa ou CAD (<ui-mapa>, <ui-canvas-cad>), instale o pacote "leaflet" (npm i leaflet) ou inclua o script no HTML: <script src=".../leaflet.js"><\/script>.`),null}})(),a)}function m(){return typeof window<"u"&&window.L?window.L:t}exports.carregarLeaflet=L;exports.obterLeafletSincrono=m;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
let e = null, n = null;
|
|
2
|
+
async function o() {
|
|
3
|
+
return typeof window < "u" && window.L ? (n = window.L, n) : n || e || (e = (async () => {
|
|
4
|
+
try {
|
|
5
|
+
const t = await import("leaflet");
|
|
6
|
+
return n = t.default || t, typeof window < "u" && !window.L && (window.L = n), n;
|
|
7
|
+
} catch {
|
|
8
|
+
return e = null, console.warn(
|
|
9
|
+
`[UI Components Kit] O Leaflet não foi encontrado no ambiente.
|
|
10
|
+
Para utilizar componentes de mapa ou CAD (<ui-mapa>, <ui-canvas-cad>), instale o pacote "leaflet" (npm i leaflet) ou inclua o script no HTML: <script src=".../leaflet.js"><\/script>.`
|
|
11
|
+
), null;
|
|
12
|
+
}
|
|
13
|
+
})(), e);
|
|
14
|
+
}
|
|
15
|
+
function i() {
|
|
16
|
+
return typeof window < "u" && window.L ? window.L : n;
|
|
17
|
+
}
|
|
18
|
+
export {
|
|
19
|
+
o as c,
|
|
20
|
+
i as o
|
|
21
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var c=Object.defineProperty;var a=(i,e,s)=>e in i?c(i,e,{enumerable:!0,configurable:!0,writable:!0,value:s}):i[e]=s;var h=(i,e,s)=>a(i,typeof e!="symbol"?e+"":e,s);class u{constructor(){h(this,"entries",[])}add(e,s,t,n){if(!e)return;const r=t;e.addEventListener(s,r,n),this.entries.push({target:e,type:s,listener:r,options:n})}cleanup(){this.entries.forEach(({target:e,type:s,listener:t,options:n})=>{e.removeEventListener(s,t,n)}),this.entries=[]}get size(){return this.entries.length}}exports.ListenerBag=u;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
var a = Object.defineProperty;
|
|
2
|
+
var c = (n, e, s) => e in n ? a(n, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : n[e] = s;
|
|
3
|
+
var h = (n, e, s) => c(n, typeof e != "symbol" ? e + "" : e, s);
|
|
4
|
+
class d {
|
|
5
|
+
constructor() {
|
|
6
|
+
h(this, "entries", []);
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Adiciona um ouvinte de evento e rastreia sua referência para limpeza futura.
|
|
10
|
+
* Suporta handlers tipados (MouseEvent, KeyboardEvent, CustomEvent, etc.).
|
|
11
|
+
*/
|
|
12
|
+
add(e, s, r, i) {
|
|
13
|
+
if (!e) return;
|
|
14
|
+
const t = r;
|
|
15
|
+
e.addEventListener(s, t, i), this.entries.push({ target: e, type: s, listener: t, options: i });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Remove todos os ouvintes de eventos atualmente registrados e esvazia a coleção.
|
|
19
|
+
*/
|
|
20
|
+
cleanup() {
|
|
21
|
+
this.entries.forEach(({ target: e, type: s, listener: r, options: i }) => {
|
|
22
|
+
e.removeEventListener(s, r, i);
|
|
23
|
+
}), this.entries = [];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* Retorna a quantidade de ouvintes ativos rastreados.
|
|
27
|
+
*/
|
|
28
|
+
get size() {
|
|
29
|
+
return this.entries.length;
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
d as L
|
|
34
|
+
};
|
package/dist/mapa.cjs
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";var M=Object.defineProperty;var _=(s,o,t)=>o in s?M(s,o,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[o]=t;var a=(s,o,t)=>_(s,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-Cw6tqYFh.cjs"),m=require("./ssr-safe-CiHD1adl.cjs"),C=":host{display:block;width:100%;height:400px;position:relative;border-radius:var(--border-radius-md, 8px);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(s){return{osm:{nome:"OpenStreetMap",layer:()=>s.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:()=>s.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:()=>s.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:()=>s.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=`
|
|
2
|
+
<style>
|
|
3
|
+
${d.leafletCss}
|
|
4
|
+
${C}
|
|
5
|
+
</style>
|
|
6
|
+
<div class="ui-mapa-container" id="map-container"></div>
|
|
7
|
+
<div style="display: none;"><slot></slot></div>
|
|
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"),n=parseFloat(this.getAttribute("lng")||"-46.633308"),c=parseInt(this.getAttribute("zoom")||"13",10);!isNaN(i)&&!isNaN(n)&&this.mapInstance.setView([i,n],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"),n=parseInt(this.getAttribute("zoom")||"13",10);this.mapInstance=t.map(this.mapContainer).setView([r,i],n);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 n=`<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:n,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"),n=h.obterLeafletSincrono()||window.L;n&&(this.marker=n.marker([r.lat,r.lon],{icon:this.createIcon(n)}),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),n=h.obterLeafletSincrono()||window.L;n&&(this.polyline=n.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;
|
package/dist/mapa.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { UIMapa } from './components/ui-mapa';
|
|
2
|
+
import { UIMapaMarcador } from './components/ui-mapa/ui-mapa-marcador';
|
|
3
|
+
import { UIMapaLinha } from './components/ui-mapa/ui-mapa-linha';
|
|
4
|
+
export * from './components/ui-mapa';
|
|
5
|
+
declare global {
|
|
6
|
+
interface HTMLElementTagNameMap {
|
|
7
|
+
'ui-mapa': UIMapa;
|
|
8
|
+
'ui-mapa-marcador': UIMapaMarcador;
|
|
9
|
+
'ui-mapa-linha': UIMapaLinha;
|
|
10
|
+
}
|
|
11
|
+
}
|