@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
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
var u = Object.defineProperty;
|
|
2
|
+
var m = (o, p, e) => p in o ? u(o, p, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[p] = e;
|
|
3
|
+
var r = (o, p, e) => m(o, typeof p != "symbol" ? p + "" : p, e);
|
|
4
|
+
/* empty css */
|
|
5
|
+
import { d as c, S as d } from "./ssr-safe-5cWfJP-s.js";
|
|
6
|
+
import { L as h } from "./listener-bag-DQgv7OON.js";
|
|
7
|
+
const f = ':host{display:inline-block;font-family:var(--ui-fonte-principal, "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);color:var(--ui-cor-texto, #f1f1f5);box-sizing:border-box;-webkit-user-select:none;user-select:none}:host *,:host *:before,:host *:after{box-sizing:border-box}:host([posicao="bottom-right"]){position:absolute;bottom:16px;right:16px;z-index:var(--ui-z-workspace-hud, 500)}:host([posicao="bottom-left"]){position:absolute;bottom:16px;left:16px;z-index:var(--ui-z-workspace-hud, 500)}:host([posicao="top-right"]){position:absolute;top:16px;right:16px;z-index:var(--ui-z-workspace-hud, 500)}:host([posicao="top-left"]){position:absolute;top:16px;left:16px;z-index:var(--ui-z-workspace-hud, 500)}:host([posicao="inline"]){position:relative;display:inline-flex}.ui-basemap-wrapper{position:relative;display:inline-flex;align-items:center}.ui-basemap-trigger{display:inline-flex;align-items:center;gap:8px;height:34px;padding:0 12px 0 6px;background:var(--ui-cor-fundo-elevado, rgba(18, 18, 24, .88));backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:9999px;color:var(--ui-cor-texto, #f1f1f5);cursor:pointer;outline:none;font-size:11.5px;font-weight:500;letter-spacing:.2px;box-shadow:0 4px 14px #00000059,0 1px 3px #0003;transition:all .18s cubic-bezier(.16,1,.3,1)}.ui-basemap-trigger:hover{background:var(--ui-cor-fundo-hover, rgba(28, 28, 36, .95));border-color:var(--ui-cor-primaria, #00E08A);transform:translateY(-1px);box-shadow:0 6px 20px #00000073,0 0 12px #00e08a33}.ui-basemap-trigger:focus-visible{border-color:var(--ui-cor-primaria, #00E08A);box-shadow:0 0 0 2px #00e08a59}.ui-basemap-trigger.active{border-color:var(--ui-cor-primaria, #00E08A);background:var(--ui-cor-fundo-ativo, rgba(22, 26, 32, .95));box-shadow:0 4px 16px #0006,0 0 10px #00e08a40}:host([compacto]) .ui-basemap-trigger,.ui-basemap-trigger.compacto{width:36px;height:36px;padding:0;justify-content:center;border-radius:50%}:host([compacto]) .ui-basemap-label,:host([compacto]) .ui-basemap-chevron,.ui-basemap-trigger.compacto .ui-basemap-label,.ui-basemap-trigger.compacto .ui-basemap-chevron{display:none!important}.ui-basemap-thumb-mini{width:22px;height:22px;border-radius:50%;object-fit:cover;flex-shrink:0;border:1.5px solid var(--ui-cor-borda, rgba(255, 255, 255, .2));box-shadow:0 1px 3px #0006}.ui-basemap-thumb-mini.fallback{display:flex;align-items:center;justify-content:center;background:#ffffff14;color:var(--ui-cor-primaria, #00E08A)}.ui-basemap-thumb-mini.fallback svg{width:13px;height:13px}.ui-basemap-label{white-space:nowrap;max-width:130px;overflow:hidden;text-overflow:ellipsis}.ui-basemap-chevron{display:inline-flex;align-items:center;justify-content:center;color:var(--ui-cor-texto-secundario, #888899);transition:transform .2s cubic-bezier(.16,1,.3,1);margin-left:2px}.ui-basemap-chevron svg{width:12px;height:12px}.ui-basemap-trigger.active .ui-basemap-chevron{transform:rotate(180deg);color:var(--ui-cor-primaria, #00E08A)}.ui-basemap-popover{position:absolute;min-width:210px;max-width:250px;background:var(--ui-cor-fundo-elevado, rgba(16, 16, 22, .95));backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:12px;padding:6px;box-shadow:0 12px 32px #0009,0 2px 8px #0000004d;z-index:var(--ui-z-popover, 1050);display:flex;flex-direction:column;gap:3px;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px) scale(.97);transition:opacity .18s cubic-bezier(.16,1,.3,1),transform .18s cubic-bezier(.16,1,.3,1),visibility .18s}.ui-basemap-wrapper.pos-bottom-right .ui-basemap-popover,.ui-basemap-wrapper.pos-bottom-left .ui-basemap-popover,.ui-basemap-wrapper.pos-bottom .ui-basemap-popover{bottom:calc(100% + 8px);transform:translateY(8px) scale(.97)}.ui-basemap-wrapper.pos-bottom-right .ui-basemap-popover{right:0}.ui-basemap-wrapper.pos-bottom-left .ui-basemap-popover{left:0}.ui-basemap-wrapper.pos-top-right .ui-basemap-popover,.ui-basemap-wrapper.pos-top-left .ui-basemap-popover,.ui-basemap-wrapper.pos-top .ui-basemap-popover{top:calc(100% + 8px);transform:translateY(-8px) scale(.97)}.ui-basemap-wrapper.pos-top-right .ui-basemap-popover{right:0}.ui-basemap-wrapper.pos-top-left .ui-basemap-popover{left:0}.ui-basemap-popover.aberto{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0) scale(1)}.ui-basemap-popover-header{display:flex;align-items:center;justify-content:space-between;padding:4px 8px 6px;border-bottom:1px solid rgba(255,255,255,.06);margin-bottom:2px}.ui-basemap-popover-titulo{font-size:9.5px;font-weight:700;text-transform:uppercase;letter-spacing:.6px;color:var(--ui-cor-texto-secundario, #888899)}.ui-basemap-popover-badge{font-size:9px;font-weight:600;padding:1px 5px;border-radius:4px;background:#00e08a1f;color:var(--ui-cor-primaria, #00E08A);font-variant-numeric:tabular-nums}.ui-basemap-list{display:flex;flex-direction:column;gap:2px;max-height:280px;overflow-y:auto;overflow-x:hidden;padding-right:2px}.ui-basemap-list::-webkit-scrollbar{width:4px}.ui-basemap-list::-webkit-scrollbar-track{background:transparent}.ui-basemap-list::-webkit-scrollbar-thumb{background:#ffffff26;border-radius:2px}.ui-basemap-item{display:flex;align-items:center;gap:8px;padding:5px 8px;border-radius:7px;background:transparent;border:1px solid transparent;cursor:pointer;transition:all .12s ease;outline:none}.ui-basemap-item:hover{background:#ffffff0f;border-color:#ffffff14}.ui-basemap-item:focus-visible{border-color:var(--ui-cor-primaria, #00E08A);background:#00e08a0f}.ui-basemap-item.active{background:#00e08a1f;border-color:#00e08a59}.ui-basemap-item-preview{width:32px;height:24px;border-radius:4px;object-fit:cover;flex-shrink:0;border:1px solid rgba(255,255,255,.1);box-shadow:0 1px 3px #0000004d}.ui-basemap-item-preview-none{width:32px;height:24px;border-radius:4px;flex-shrink:0;display:flex;align-items:center;justify-content:center;background:#ffffff0a;border:1px solid rgba(255,255,255,.08);color:var(--ui-cor-texto-secundario, #888899)}.ui-basemap-item-preview-none svg{width:14px;height:14px}.ui-basemap-item-info{display:flex;flex-direction:column;min-width:0;flex:1}.ui-basemap-item-nome{font-size:11px;font-weight:500;color:var(--ui-cor-texto, #f1f1f5);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ui-basemap-item.active .ui-basemap-item-nome{color:var(--ui-cor-primaria, #00E08A);font-weight:600}.ui-basemap-item-desc{font-size:9.5px;color:var(--ui-cor-texto-secundario, #77778b);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ui-basemap-item-check{display:flex;align-items:center;justify-content:center;width:14px;height:14px;flex-shrink:0;color:var(--ui-cor-primaria, #00E08A);opacity:0;transform:scale(.6);transition:all .15s cubic-bezier(.16,1,.3,1)}.ui-basemap-item.active .ui-basemap-item-check{opacity:1;transform:scale(1)}.ui-basemap-item-check svg{width:13px;height:13px}:host-context([data-tema="claro"]),:host-context(.light),:host([data-tema="claro"]){--ui-cor-texto: #1a1a1e;--ui-cor-texto-secundario: #666677}:host-context([data-tema="claro"]) .ui-basemap-trigger,:host([data-tema="claro"]) .ui-basemap-trigger{background:#ffffffeb;border-color:#0000001f;color:#1a1a1e;box-shadow:0 4px 14px #0000001a}:host-context([data-tema="claro"]) .ui-basemap-popover,:host([data-tema="claro"]) .ui-basemap-popover{background:#fffffff7;border-color:#0000001f;box-shadow:0 12px 32px #0000002e}:host-context([data-tema="claro"]) .ui-basemap-item:hover,:host([data-tema="claro"]) .ui-basemap-item:hover{background:#0000000a}:host-context([data-tema="claro"]) .ui-basemap-item.active,:host([data-tema="claro"]) .ui-basemap-item.active{background:#00b46e1f;border-color:#00b46e59}', g = [
|
|
8
|
+
{
|
|
9
|
+
id: "none",
|
|
10
|
+
nome: "Sem Mapa",
|
|
11
|
+
descricao: "Tela CAD neutra com grade quadriculada"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
id: "google_satelite_puro",
|
|
15
|
+
nome: "Google Puro",
|
|
16
|
+
descricao: "Satélite limpo sem ruas ou rótulos",
|
|
17
|
+
thumbnailUrl: "https://images.unsplash.com/photo-1524661135-423995f22d0b?w=160&auto=format&fit=crop&q=80"
|
|
18
|
+
},
|
|
19
|
+
{
|
|
20
|
+
id: "google_satelite",
|
|
21
|
+
nome: "Google Híbrido",
|
|
22
|
+
descricao: "Satélite com nomes de ruas e divisas",
|
|
23
|
+
thumbnailUrl: "https://images.unsplash.com/photo-1524661135-423995f22d0b?w=160&auto=format&fit=crop&q=80"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
id: "satelite",
|
|
27
|
+
nome: "Esri Satélite",
|
|
28
|
+
descricao: "Imagens orbitais de alta resolução",
|
|
29
|
+
thumbnailUrl: "https://images.unsplash.com/photo-1451187580459-43490279c0fa?w=160&auto=format&fit=crop&q=80"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
id: "osm",
|
|
33
|
+
nome: "OpenStreetMap",
|
|
34
|
+
descricao: "Mapa viário e urbano colaborativo",
|
|
35
|
+
thumbnailUrl: "https://images.unsplash.com/photo-1569336415962-a4bd9f69cd83?w=160&auto=format&fit=crop&q=80"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "topografia",
|
|
39
|
+
nome: "Topografia",
|
|
40
|
+
descricao: "Curvas de nível e relevo sombreado",
|
|
41
|
+
thumbnailUrl: "https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?w=160&auto=format&fit=crop&q=80"
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
id: "dark",
|
|
45
|
+
nome: "Dark Canvas",
|
|
46
|
+
descricao: "Mapa escuro de alto contraste para CAD",
|
|
47
|
+
thumbnailUrl: "https://images.unsplash.com/photo-1518709268805-4e9042af9f23?w=160&auto=format&fit=crop&q=80"
|
|
48
|
+
}
|
|
49
|
+
], x = `
|
|
50
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
51
|
+
<circle cx="12" cy="12" r="10"></circle>
|
|
52
|
+
<line x1="2" y1="12" x2="22" y2="12"></line>
|
|
53
|
+
<path d="M12 2a15.3 15.3 0 0 1 4 10 15.3 15.3 0 0 1-4 10 15.3 15.3 0 0 1-4-10 15.3 15.3 0 0 1 4-10z"></path>
|
|
54
|
+
</svg>
|
|
55
|
+
`, v = `
|
|
56
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
57
|
+
<polyline points="6 9 12 15 18 9"></polyline>
|
|
58
|
+
</svg>
|
|
59
|
+
`, w = `
|
|
60
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="3" stroke-linecap="round" stroke-linejoin="round">
|
|
61
|
+
<polyline points="20 6 9 17 4 12"></polyline>
|
|
62
|
+
</svg>
|
|
63
|
+
`, n = `
|
|
64
|
+
<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
|
|
65
|
+
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
|
66
|
+
<line x1="3" y1="9" x2="21" y2="9"></line>
|
|
67
|
+
<line x1="3" y1="15" x2="21" y2="15"></line>
|
|
68
|
+
<line x1="9" y1="3" x2="9" y2="21"></line>
|
|
69
|
+
<line x1="15" y1="3" x2="15" y2="21"></line>
|
|
70
|
+
</svg>
|
|
71
|
+
`;
|
|
72
|
+
class b extends d {
|
|
73
|
+
constructor() {
|
|
74
|
+
super();
|
|
75
|
+
r(this, "shadow");
|
|
76
|
+
r(this, "listeners", new h());
|
|
77
|
+
r(this, "_mapasBase", [...g]);
|
|
78
|
+
r(this, "wrapperEl");
|
|
79
|
+
r(this, "triggerBtn");
|
|
80
|
+
r(this, "popoverEl");
|
|
81
|
+
r(this, "listEl");
|
|
82
|
+
r(this, "thumbEl");
|
|
83
|
+
r(this, "labelEl");
|
|
84
|
+
this.shadow = this.attachShadow({ mode: "open" }), this.shadow.innerHTML = `
|
|
85
|
+
<style>${f}</style>
|
|
86
|
+
<div class="ui-basemap-wrapper" id="basemap-wrapper">
|
|
87
|
+
<button class="ui-basemap-trigger" id="basemap-trigger" type="button" aria-haspopup="listbox" aria-expanded="false" title="Alternar Mapa Base">
|
|
88
|
+
<span class="ui-basemap-thumb-container" id="thumb-container"></span>
|
|
89
|
+
<span class="ui-basemap-label" id="basemap-label">Esri Satélite</span>
|
|
90
|
+
<span class="ui-basemap-chevron">${v}</span>
|
|
91
|
+
</button>
|
|
92
|
+
|
|
93
|
+
<div class="ui-basemap-popover" id="basemap-popover" role="listbox" aria-label="Selecione o Mapa Base">
|
|
94
|
+
<div class="ui-basemap-popover-header">
|
|
95
|
+
<span class="ui-basemap-popover-titulo">Mapa Base</span>
|
|
96
|
+
<span class="ui-basemap-popover-badge" id="popover-count">7 opções</span>
|
|
97
|
+
</div>
|
|
98
|
+
<div class="ui-basemap-list" id="basemap-list"></div>
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
`, this.wrapperEl = this.shadow.getElementById("basemap-wrapper"), this.triggerBtn = this.shadow.getElementById("basemap-trigger"), this.popoverEl = this.shadow.getElementById("basemap-popover"), this.listEl = this.shadow.getElementById("basemap-list"), this.thumbEl = this.shadow.getElementById("thumb-container"), this.labelEl = this.shadow.getElementById("basemap-label");
|
|
102
|
+
}
|
|
103
|
+
static get observedAttributes() {
|
|
104
|
+
return [
|
|
105
|
+
"mapa-base-ativo",
|
|
106
|
+
"valor",
|
|
107
|
+
"posicao",
|
|
108
|
+
"aberto",
|
|
109
|
+
"compacto",
|
|
110
|
+
"desabilitado"
|
|
111
|
+
];
|
|
112
|
+
}
|
|
113
|
+
connectedCallback() {
|
|
114
|
+
this.atualizarPosicaoClasses(), this.renderizarOpcoes(), this.atualizarGatilho(), this.conectarEventos();
|
|
115
|
+
}
|
|
116
|
+
disconnectedCallback() {
|
|
117
|
+
this.listeners.cleanup();
|
|
118
|
+
}
|
|
119
|
+
attributeChangedCallback(e, t, a) {
|
|
120
|
+
if (t !== a)
|
|
121
|
+
if (e === "mapa-base-ativo" || e === "valor")
|
|
122
|
+
this.atualizarSelecaoVisual(), this.atualizarGatilho();
|
|
123
|
+
else if (e === "posicao")
|
|
124
|
+
this.atualizarPosicaoClasses();
|
|
125
|
+
else if (e === "aberto") {
|
|
126
|
+
const i = a !== null && a !== "false";
|
|
127
|
+
this.aplicarEstadoAberto(i);
|
|
128
|
+
} else e === "compacto" && this.triggerBtn.classList.toggle("compacto", a !== null && a !== "false");
|
|
129
|
+
}
|
|
130
|
+
// --- Getters e Setters de Propriedades ---
|
|
131
|
+
get mapaBaseAtivo() {
|
|
132
|
+
return this.getAttribute("mapa-base-ativo") || this.getAttribute("valor") || "satelite";
|
|
133
|
+
}
|
|
134
|
+
set mapaBaseAtivo(e) {
|
|
135
|
+
this.setAttribute("mapa-base-ativo", e), this.setAttribute("valor", e);
|
|
136
|
+
}
|
|
137
|
+
get valor() {
|
|
138
|
+
return this.mapaBaseAtivo;
|
|
139
|
+
}
|
|
140
|
+
set valor(e) {
|
|
141
|
+
this.mapaBaseAtivo = e;
|
|
142
|
+
}
|
|
143
|
+
get posicao() {
|
|
144
|
+
return this.getAttribute("posicao") || "inline";
|
|
145
|
+
}
|
|
146
|
+
set posicao(e) {
|
|
147
|
+
this.setAttribute("posicao", e);
|
|
148
|
+
}
|
|
149
|
+
get aberto() {
|
|
150
|
+
return this.hasAttribute("aberto") && this.getAttribute("aberto") !== "false";
|
|
151
|
+
}
|
|
152
|
+
set aberto(e) {
|
|
153
|
+
e ? this.setAttribute("aberto", "") : this.removeAttribute("aberto");
|
|
154
|
+
}
|
|
155
|
+
get compacto() {
|
|
156
|
+
return this.hasAttribute("compacto") && this.getAttribute("compacto") !== "false";
|
|
157
|
+
}
|
|
158
|
+
set compacto(e) {
|
|
159
|
+
e ? this.setAttribute("compacto", "") : this.removeAttribute("compacto");
|
|
160
|
+
}
|
|
161
|
+
get mapasBase() {
|
|
162
|
+
return this._mapasBase;
|
|
163
|
+
}
|
|
164
|
+
definirMapasBase(e) {
|
|
165
|
+
Array.isArray(e) && (this._mapasBase = [...e], this.renderizarOpcoes(), this.atualizarGatilho());
|
|
166
|
+
}
|
|
167
|
+
// --- Ações Públicas ---
|
|
168
|
+
abrir() {
|
|
169
|
+
this.aberto = !0;
|
|
170
|
+
}
|
|
171
|
+
fechar() {
|
|
172
|
+
this.aberto = !1;
|
|
173
|
+
}
|
|
174
|
+
alternar() {
|
|
175
|
+
this.aberto = !this.aberto;
|
|
176
|
+
}
|
|
177
|
+
selecionar(e) {
|
|
178
|
+
if (!e || this.mapaBaseAtivo === e) {
|
|
179
|
+
this.fechar();
|
|
180
|
+
return;
|
|
181
|
+
}
|
|
182
|
+
this.mapaBaseAtivo = e;
|
|
183
|
+
const t = this._mapasBase.find((i) => i.id === e), a = { mapaBaseId: e, item: t };
|
|
184
|
+
this.dispatchEvent(new CustomEvent("ui-mapa-base-alterado", {
|
|
185
|
+
detail: a,
|
|
186
|
+
bubbles: !0,
|
|
187
|
+
composed: !0
|
|
188
|
+
})), this.dispatchEvent(new CustomEvent("change", {
|
|
189
|
+
detail: { value: e },
|
|
190
|
+
bubbles: !0,
|
|
191
|
+
composed: !0
|
|
192
|
+
})), this.fechar();
|
|
193
|
+
}
|
|
194
|
+
// --- Renderização Interna ---
|
|
195
|
+
atualizarPosicaoClasses() {
|
|
196
|
+
const e = this.posicao;
|
|
197
|
+
this.wrapperEl.className = `ui-basemap-wrapper pos-${e}`;
|
|
198
|
+
}
|
|
199
|
+
aplicarEstadoAberto(e) {
|
|
200
|
+
this.popoverEl.classList.toggle("aberto", e), this.triggerBtn.classList.toggle("active", e), this.triggerBtn.setAttribute("aria-expanded", String(e));
|
|
201
|
+
}
|
|
202
|
+
atualizarGatilho() {
|
|
203
|
+
const e = this.mapaBaseAtivo, t = this._mapasBase.find((a) => a.id === e) || this._mapasBase[0];
|
|
204
|
+
t ? (this.labelEl.textContent = t.nome, this.triggerBtn.title = `Mapa Base: ${t.nome} (${t.descricao || ""})`, t.thumbnailUrl ? this.thumbEl.innerHTML = `<img class="ui-basemap-thumb-mini" src="${l(t.thumbnailUrl)}" alt="${l(t.nome)}" />` : this.thumbEl.innerHTML = `<span class="ui-basemap-thumb-mini fallback">${n}</span>`) : (this.labelEl.textContent = "Mapa Base", this.thumbEl.innerHTML = `<span class="ui-basemap-thumb-mini fallback">${x}</span>`);
|
|
205
|
+
}
|
|
206
|
+
renderizarOpcoes() {
|
|
207
|
+
const e = this.shadow.getElementById("popover-count");
|
|
208
|
+
e && (e.textContent = `${this._mapasBase.length} opções`);
|
|
209
|
+
const t = this.mapaBaseAtivo;
|
|
210
|
+
this.listEl.innerHTML = this._mapasBase.map((a) => {
|
|
211
|
+
const i = a.id === t, s = a.thumbnailUrl ? `<img class="ui-basemap-item-preview" src="${l(a.thumbnailUrl)}" alt="${l(a.nome)}" loading="lazy" />` : `<div class="ui-basemap-item-preview-none">${n}</div>`;
|
|
212
|
+
return `
|
|
213
|
+
<div class="ui-basemap-item ${i ? "active" : ""}"
|
|
214
|
+
data-id="${l(a.id)}"
|
|
215
|
+
role="option"
|
|
216
|
+
aria-selected="${i}"
|
|
217
|
+
tabindex="0">
|
|
218
|
+
${s}
|
|
219
|
+
<div class="ui-basemap-item-info">
|
|
220
|
+
<span class="ui-basemap-item-nome">${l(a.nome)}</span>
|
|
221
|
+
${a.descricao ? `<span class="ui-basemap-item-desc">${l(a.descricao)}</span>` : ""}
|
|
222
|
+
</div>
|
|
223
|
+
<span class="ui-basemap-item-check">${w}</span>
|
|
224
|
+
</div>
|
|
225
|
+
`;
|
|
226
|
+
}).join("");
|
|
227
|
+
}
|
|
228
|
+
atualizarSelecaoVisual() {
|
|
229
|
+
const e = this.mapaBaseAtivo;
|
|
230
|
+
this.listEl.querySelectorAll(".ui-basemap-item").forEach((a) => {
|
|
231
|
+
const s = a.getAttribute("data-id") === e;
|
|
232
|
+
a.classList.toggle("active", s), a.setAttribute("aria-selected", String(s));
|
|
233
|
+
});
|
|
234
|
+
}
|
|
235
|
+
conectarEventos() {
|
|
236
|
+
this.listeners.add(this.triggerBtn, "click", (a) => {
|
|
237
|
+
a.stopPropagation(), this.alternar();
|
|
238
|
+
}), this.listeners.add(this.listEl, "click", (a) => {
|
|
239
|
+
const i = a.target.closest(".ui-basemap-item");
|
|
240
|
+
if (!i) return;
|
|
241
|
+
const s = i.getAttribute("data-id");
|
|
242
|
+
s && this.selecionar(s);
|
|
243
|
+
}), this.listeners.add(this.listEl, "keydown", (a) => {
|
|
244
|
+
if (a.key === "Enter" || a.key === " ") {
|
|
245
|
+
const i = a.target.closest(".ui-basemap-item");
|
|
246
|
+
if (i) {
|
|
247
|
+
a.preventDefault();
|
|
248
|
+
const s = i.getAttribute("data-id");
|
|
249
|
+
s && this.selecionar(s);
|
|
250
|
+
}
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
const e = (a) => {
|
|
254
|
+
if (!this.aberto) return;
|
|
255
|
+
a.composedPath().includes(this) || this.fechar();
|
|
256
|
+
};
|
|
257
|
+
this.listeners.add(document, "click", e);
|
|
258
|
+
const t = (a) => {
|
|
259
|
+
a.key === "Escape" && this.aberto && (this.fechar(), this.triggerBtn.focus());
|
|
260
|
+
};
|
|
261
|
+
this.listeners.add(document, "keydown", t);
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
function l(o) {
|
|
265
|
+
return o ? String(o).replace(/&/g, "&").replace(/</g, "<").replace(/>/g, ">").replace(/"/g, """).replace(/'/g, "'") : "";
|
|
266
|
+
}
|
|
267
|
+
class k extends b {
|
|
268
|
+
}
|
|
269
|
+
c("ui-seletor-mapa-base", b);
|
|
270
|
+
c("ui-mapa-base", k);
|
|
271
|
+
export {
|
|
272
|
+
g as MAPAS_BASE_PADRAO,
|
|
273
|
+
k as UIMapaBase,
|
|
274
|
+
b as UISeletorMapaBase
|
|
275
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
const t = typeof window < "u" && typeof document < "u", s = typeof HTMLElement < "u" ? HTMLElement : class {
|
|
2
|
+
};
|
|
3
|
+
function o(e, n) {
|
|
4
|
+
typeof customElements < "u" && !customElements.get(e) && customElements.define(e, n);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
s as S,
|
|
8
|
+
o as d,
|
|
9
|
+
t as i
|
|
10
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const t=typeof window<"u"&&typeof document<"u",s=typeof HTMLElement<"u"?HTMLElement:class{};function o(e,n){typeof customElements<"u"&&!customElements.get(e)&&customElements.define(e,n)}exports.SafeHTMLElement=s;exports.definirCustomElement=o;exports.isBrowser=t;
|
package/dist/tabela.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const r=require("./ui-tabela-propriedades-7yJ9g7ti.cjs");exports.GerenciadorValoresPropriedades=r.GerenciadorValoresPropriedades;exports.TabelaOrquestradorDados=r.TabelaOrquestradorDados;exports.TabelaRemotaController=r.TabelaRemotaController;exports.TabelaSelecaoController=r.TabelaSelecaoController;exports.UITabela=r.UITabela;exports.UITabelaPropriedades=r.UITabelaPropriedades;exports.abrirPopoverRedimensionamento=r.abrirPopoverRedimensionamento;exports.alternarCategoria=r.alternarCategoria;exports.alternarDirecaoOrdenacao=r.alternarDirecaoOrdenacao;exports.alternarPosicionamentoFlutuante=r.alternarPosicionamentoFlutuante;exports.aplicarOrdenacaoTabela=r.aplicarOrdenacaoTabela;exports.atualizarCampoVisual=r.atualizarCampoVisual;exports.avaliarExpressaoMatematica=r.avaliarExpressaoMatematica;exports.colapsarTodasCategorias=r.colapsarTodasCategorias;exports.conectarArrastoFlutuante=r.conectarArrastoFlutuante;exports.conectarPainelControles=r.conectarPainelControles;exports.criarControladorSplitter=r.criarControladorSplitter;exports.criarEditorAcao=r.criarEditorAcao;exports.criarEditorBooleano=r.criarEditorBooleano;exports.criarEditorCorCad=r.criarEditorCorCad;exports.criarEditorCorSwatch=r.criarEditorCorSwatch;exports.criarEditorLinetype=r.criarEditorLinetype;exports.criarEditorLineweight=r.criarEditorLineweight;exports.criarEditorNumero=r.criarEditorNumero;exports.criarEditorReadonly=r.criarEditorReadonly;exports.criarEditorSelecao=r.criarEditorSelecao;exports.criarEditorTexto=r.criarEditorTexto;exports.criarEditorValor=r.criarEditorValor;exports.criarLinhaPropriedade=r.criarLinhaPropriedade;exports.executarOrquestracaoCorpo=r.executarOrquestracaoCorpo;exports.executarOrquestracaoHeader=r.executarOrquestracaoHeader;exports.executarRedimensionamentoColuna=r.executarRedimensionamentoColuna;exports.exibirPromptPopoverRedimensionamento=r.exibirPromptPopoverRedimensionamento;exports.expandirTodasCategorias=r.expandirTodasCategorias;exports.focarProximoEditor=r.focarProximoEditor;exports.formatWidth=r.formatWidth;exports.getAlignmentClass=r.getAlignmentClass;exports.getRowHeight=r.getRowHeight;exports.getTextAlign=r.getTextAlign;exports.inicializarScrollVirtualizacao=r.inicializarScrollVirtualizacao;exports.iniciarRedimensionamentoColuna=r.iniciarRedimensionamentoColuna;exports.localizarIndiceItem=r.localizarIndiceItem;exports.montarEstruturaDOM=r.montarEstruturaDOM;exports.orquestrarEstruturaInicial=r.orquestrarEstruturaInicial;exports.proximaDensidade=r.proximaDensidade;exports.renderizarCategoriasETree=r.renderizarCategoriasETree;exports.renderizarCorpoTabela=r.renderizarCorpoTabela;exports.renderizarHeaderTabela=r.renderizarHeaderTabela;exports.renderizarSeletorTipos=r.renderizarSeletorTipos;exports.sincronizarAtributosTabela=r.sincronizarAtributosTabela;exports.sincronizarPainelControles=r.sincronizarPainelControles;exports.tratarMudancaAtributoTabela=r.tratarMudancaAtributoTabela;
|
package/dist/tabela.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { UITabela } from './components/ui-tabela';
|
|
2
|
+
import { UITabelaPropriedades } from './components/ui-tabela-propriedades';
|
|
3
|
+
export * from './components/ui-tabela';
|
|
4
|
+
export * from './components/ui-tabela-propriedades';
|
|
5
|
+
declare global {
|
|
6
|
+
interface HTMLElementTagNameMap {
|
|
7
|
+
'ui-tabela': UITabela;
|
|
8
|
+
'ui-tabela-propriedades': UITabelaPropriedades;
|
|
9
|
+
'ui-painel-propriedades': UITabelaPropriedades;
|
|
10
|
+
'ui-propriedades': UITabelaPropriedades;
|
|
11
|
+
}
|
|
12
|
+
}
|
package/dist/tabela.js
ADDED
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { G as o, T as i, a as s, b as t, U as n, c as l, d as c, e as d, f as u, g as m, h as p, i as C, j as E, k as T, l as b, m as g, n as x, o as z, p as P, q as R, r as A, s as O, t as S, u as h, v as I, w as q, x as D, y as V, z as f, A as v, B as w, C as H, D as L, E as M, F as y, H as F, I as U, J as B, K as G, L as N, M as W, N as j, O as k, P as J, Q as K, R as Q, S as X, V as Y, W as Z, X as _, Y as $, Z as aa } from "./ui-tabela-propriedades-D-XKNVwK.js";
|
|
3
|
+
export {
|
|
4
|
+
o as GerenciadorValoresPropriedades,
|
|
5
|
+
i as TabelaOrquestradorDados,
|
|
6
|
+
s as TabelaRemotaController,
|
|
7
|
+
t as TabelaSelecaoController,
|
|
8
|
+
n as UITabela,
|
|
9
|
+
l as UITabelaPropriedades,
|
|
10
|
+
c as abrirPopoverRedimensionamento,
|
|
11
|
+
d as alternarCategoria,
|
|
12
|
+
u as alternarDirecaoOrdenacao,
|
|
13
|
+
m as alternarPosicionamentoFlutuante,
|
|
14
|
+
p as aplicarOrdenacaoTabela,
|
|
15
|
+
C as atualizarCampoVisual,
|
|
16
|
+
E as avaliarExpressaoMatematica,
|
|
17
|
+
T as colapsarTodasCategorias,
|
|
18
|
+
b as conectarArrastoFlutuante,
|
|
19
|
+
g as conectarPainelControles,
|
|
20
|
+
x as criarControladorSplitter,
|
|
21
|
+
z as criarEditorAcao,
|
|
22
|
+
P as criarEditorBooleano,
|
|
23
|
+
R as criarEditorCorCad,
|
|
24
|
+
A as criarEditorCorSwatch,
|
|
25
|
+
O as criarEditorLinetype,
|
|
26
|
+
S as criarEditorLineweight,
|
|
27
|
+
h as criarEditorNumero,
|
|
28
|
+
I as criarEditorReadonly,
|
|
29
|
+
q as criarEditorSelecao,
|
|
30
|
+
D as criarEditorTexto,
|
|
31
|
+
V as criarEditorValor,
|
|
32
|
+
f as criarLinhaPropriedade,
|
|
33
|
+
v as executarOrquestracaoCorpo,
|
|
34
|
+
w as executarOrquestracaoHeader,
|
|
35
|
+
H as executarRedimensionamentoColuna,
|
|
36
|
+
L as exibirPromptPopoverRedimensionamento,
|
|
37
|
+
M as expandirTodasCategorias,
|
|
38
|
+
y as focarProximoEditor,
|
|
39
|
+
F as formatWidth,
|
|
40
|
+
U as getAlignmentClass,
|
|
41
|
+
B as getRowHeight,
|
|
42
|
+
G as getTextAlign,
|
|
43
|
+
N as inicializarScrollVirtualizacao,
|
|
44
|
+
W as iniciarRedimensionamentoColuna,
|
|
45
|
+
j as localizarIndiceItem,
|
|
46
|
+
k as montarEstruturaDOM,
|
|
47
|
+
J as orquestrarEstruturaInicial,
|
|
48
|
+
K as proximaDensidade,
|
|
49
|
+
Q as renderizarCategoriasETree,
|
|
50
|
+
X as renderizarCorpoTabela,
|
|
51
|
+
Y as renderizarHeaderTabela,
|
|
52
|
+
Z as renderizarSeletorTipos,
|
|
53
|
+
_ as sincronizarAtributosTabela,
|
|
54
|
+
$ as sincronizarPainelControles,
|
|
55
|
+
aa as tratarMudancaAtributoTabela
|
|
56
|
+
};
|
package/dist/tools.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});;/* empty css */const e=require("./ui-paleta-ferramentas-B6dJ0O6K.cjs"),a=t=>`<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${t}</svg>`,r={selecionar:a('<path d="M4 3l7 17 2.5-7.5L21 10z"/>'),mover:a('<path d="M5 9l-3 3 3 3M9 5l3-3 3 3M15 19l-3 3-3-3M19 9l3 3-3 3M2 12h20M12 2v20"/>'),mao:a('<path d="M18 11V6a2 2 0 0 0-4 0M14 10V4a2 2 0 0 0-4 0v2M10 10.5V6a2 2 0 0 0-4 0v8M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.9-5.9-2.4L3.4 16a2 2 0 0 1 3.2-2.4L8 15"/>'),zoom:a('<circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><path d="M11 8v6M8 11h6"/>'),linha:a('<line x1="5" y1="19" x2="19" y2="5"/><circle cx="5" cy="19" r="1.5"/><circle cx="19" cy="5" r="1.5"/>'),polilinha:a('<polyline points="3 17 9 11 13 15 21 7"/>'),retangulo:a('<rect x="3" y="5" width="18" height="14" rx="1"/>'),circulo:a('<circle cx="12" cy="12" r="9"/>'),arco:a('<path d="M4 18a9 9 0 0 1 16 0"/>'),ponto:a('<circle cx="12" cy="12" r="3"/>'),texto:a('<path d="M4 7V4h16v3M9 20h6M12 4v16"/>'),caneta:a('<path d="M12 19l7-7 3 3-7 7-3-3z"/><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"/><path d="M2 2l7.6 7.6"/>'),medir:a('<rect x="2" y="8" width="20" height="8" rx="1"/><path d="M6 8v3M10 8v4M14 8v3M18 8v4"/>'),camadas:a('<polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/>'),grade:a('<path d="M3 3h18v18H3zM3 9h18M3 15h18M9 3v18M15 3v18"/>'),desfazer:a('<path d="M3 7v6h6"/><path d="M21 17a9 9 0 0 0-15-6.7L3 13"/>'),refazer:a('<path d="M21 7v6h-6"/><path d="M3 17a9 9 0 0 1 15-6.7L21 13"/>'),colar:a('<rect x="8" y="2" width="8" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/>'),copiar:a('<rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>'),negrito:a('<path d="M6 4h8a4 4 0 0 1 0 8H6zM6 12h9a4 4 0 0 1 0 8H6z"/>'),italico:a('<line x1="19" y1="4" x2="10" y2="4"/><line x1="14" y1="20" x2="5" y2="20"/><line x1="15" y1="4" x2="9" y2="20"/>')};exports.UIPaletaFerramentas=e.UIPaletaFerramentas;exports.UIRibbon=e.UIRibbon;exports.ICONES_FERRAMENTAS=r;
|
package/dist/tools.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { UIRibbon, UIPaletaFerramentas } from './components/ui-barra-ferramentas';
|
|
2
|
+
export * from './components/ui-barra-ferramentas';
|
|
3
|
+
declare global {
|
|
4
|
+
interface HTMLElementTagNameMap {
|
|
5
|
+
'ui-ribbon': UIRibbon;
|
|
6
|
+
'ui-paleta-ferramentas': UIPaletaFerramentas;
|
|
7
|
+
}
|
|
8
|
+
}
|
package/dist/tools.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/* empty css */
|
|
2
|
+
import { a as o, b as l } from "./ui-paleta-ferramentas-Bpp4XBVg.js";
|
|
3
|
+
const a = (t) => `<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">${t}</svg>`, h = {
|
|
4
|
+
selecionar: a('<path d="M4 3l7 17 2.5-7.5L21 10z"/>'),
|
|
5
|
+
mover: a('<path d="M5 9l-3 3 3 3M9 5l3-3 3 3M15 19l-3 3-3-3M19 9l3 3-3 3M2 12h20M12 2v20"/>'),
|
|
6
|
+
mao: a('<path d="M18 11V6a2 2 0 0 0-4 0M14 10V4a2 2 0 0 0-4 0v2M10 10.5V6a2 2 0 0 0-4 0v8M18 8a2 2 0 1 1 4 0v6a8 8 0 0 1-8 8h-2c-2.8 0-4.5-.9-5.9-2.4L3.4 16a2 2 0 0 1 3.2-2.4L8 15"/>'),
|
|
7
|
+
zoom: a('<circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/><path d="M11 8v6M8 11h6"/>'),
|
|
8
|
+
linha: a('<line x1="5" y1="19" x2="19" y2="5"/><circle cx="5" cy="19" r="1.5"/><circle cx="19" cy="5" r="1.5"/>'),
|
|
9
|
+
polilinha: a('<polyline points="3 17 9 11 13 15 21 7"/>'),
|
|
10
|
+
retangulo: a('<rect x="3" y="5" width="18" height="14" rx="1"/>'),
|
|
11
|
+
circulo: a('<circle cx="12" cy="12" r="9"/>'),
|
|
12
|
+
arco: a('<path d="M4 18a9 9 0 0 1 16 0"/>'),
|
|
13
|
+
ponto: a('<circle cx="12" cy="12" r="3"/>'),
|
|
14
|
+
texto: a('<path d="M4 7V4h16v3M9 20h6M12 4v16"/>'),
|
|
15
|
+
caneta: a('<path d="M12 19l7-7 3 3-7 7-3-3z"/><path d="M18 13l-1.5-7.5L2 2l3.5 14.5L13 18l5-5z"/><path d="M2 2l7.6 7.6"/>'),
|
|
16
|
+
medir: a('<rect x="2" y="8" width="20" height="8" rx="1"/><path d="M6 8v3M10 8v4M14 8v3M18 8v4"/>'),
|
|
17
|
+
camadas: a('<polygon points="12 2 2 7 12 12 22 7 12 2"/><polyline points="2 17 12 22 22 17"/><polyline points="2 12 12 17 22 12"/>'),
|
|
18
|
+
grade: a('<path d="M3 3h18v18H3zM3 9h18M3 15h18M9 3v18M15 3v18"/>'),
|
|
19
|
+
desfazer: a('<path d="M3 7v6h6"/><path d="M21 17a9 9 0 0 0-15-6.7L3 13"/>'),
|
|
20
|
+
refazer: a('<path d="M21 7v6h-6"/><path d="M3 17a9 9 0 0 1 15-6.7L21 13"/>'),
|
|
21
|
+
colar: a('<rect x="8" y="2" width="8" height="4" rx="1"/><path d="M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2"/>'),
|
|
22
|
+
copiar: a('<rect x="9" y="9" width="13" height="13" rx="2"/><path d="M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1"/>'),
|
|
23
|
+
negrito: a('<path d="M6 4h8a4 4 0 0 1 0 8H6zM6 12h9a4 4 0 0 1 0 8H6z"/>'),
|
|
24
|
+
italico: a('<line x1="19" y1="4" x2="10" y2="4"/><line x1="14" y1="20" x2="5" y2="20"/><line x1="15" y1="4" x2="9" y2="20"/>')
|
|
25
|
+
};
|
|
26
|
+
export {
|
|
27
|
+
h as ICONES_FERRAMENTAS,
|
|
28
|
+
o as UIPaletaFerramentas,
|
|
29
|
+
l as UIRibbon
|
|
30
|
+
};
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var h = (a, o, e) => o in a ? g(a, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[o] = e;
|
|
3
|
+
var t = (a, o, e) => h(a, typeof o != "symbol" ? o + "" : o, e);
|
|
4
|
+
import { d as s, S as u } from "./ssr-safe-5cWfJP-s.js";
|
|
5
|
+
import { L as p } from "./listener-bag-DQgv7OON.js";
|
|
6
|
+
const m = ':host{display:block;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif)}.ui-stat{padding:18px 20px;border-radius:var(--ui-raio-borda, 10px);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));background-color:var(--ui-cor-fundo-card, #18181c);color:var(--ui-cor-texto, #e1e1e6);box-sizing:border-box;display:flex;flex-direction:column;position:relative;transition:border-color .15s ease,box-shadow .15s ease}:root[data-tema=claro] .ui-stat,[data-tema=claro] .ui-stat{background-color:#fff;border-color:#00000017;color:#1a1a1e;box-shadow:0 1px 3px #0000000a}.ui-stat--baixa{box-shadow:0 2px 6px #0000004d}.ui-stat--media{box-shadow:0 4px 14px #0006}.ui-stat--alta{box-shadow:0 8px 24px #00000080}.ui-stat__cabecalho{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px;gap:8px}.ui-stat__rotulo{font-size:13px;font-weight:500;color:var(--ui-cor-texto-secundario, #888899);letter-spacing:.01em}:root[data-tema=claro] .ui-stat__rotulo,[data-tema=claro] .ui-stat__rotulo{color:#6c757d}.ui-stat__icone-slot{display:flex;align-items:center;color:var(--ui-cor-texto-secundario, #888899)}.ui-stat__icone-slot svg,.ui-stat__icone-slot ::slotted(svg),.ui-stat__icone-slot ::slotted(ui-icone){shape-rendering:geometricPrecision}.ui-stat__conteudo{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-bottom:6px}.ui-stat__valor{font-size:28px;font-weight:700;color:var(--ui-cor-texto, #ffffff);line-height:1.15;letter-spacing:-.025em}:root[data-tema=claro] .ui-stat__valor,[data-tema=claro] .ui-stat__valor{color:#111114}.ui-stat__indicador{display:inline-flex;align-items:center;gap:4px;padding:3px 8px;border-radius:5px;font-size:12px;font-weight:600;line-height:1}.ui-stat__indicador--positivo,.ui-stat__indicador--alta{background-color:#00e08a24;color:var(--ui-cor-primaria, #00E08A)}.ui-stat__indicador--negativo,.ui-stat__indicador--baixa{background-color:#ff444424;color:var(--ui-cor-texto-erro, #ff5555)}.ui-stat__indicador--neutro{background-color:#ffffff14;color:var(--ui-cor-texto-secundario, #888899)}:root[data-tema=claro] .ui-stat__indicador--neutro,[data-tema=claro] .ui-stat__indicador--neutro{background-color:#f1f3f5;color:#495057}.ui-stat__seta{font-size:.85em;line-height:1}.ui-stat__rodape{display:flex;flex-direction:column;gap:6px}.ui-stat__descricao{font-size:12px;color:var(--ui-cor-texto-secundario, #888899);line-height:1.3}:root[data-tema=claro] .ui-stat__descricao,[data-tema=claro] .ui-stat__descricao{color:#6c757d}';
|
|
7
|
+
class n extends u {
|
|
8
|
+
constructor() {
|
|
9
|
+
super();
|
|
10
|
+
t(this, "statElement");
|
|
11
|
+
t(this, "rotuloElement");
|
|
12
|
+
t(this, "valorElement");
|
|
13
|
+
t(this, "indicadorElement");
|
|
14
|
+
t(this, "setaElement");
|
|
15
|
+
t(this, "variacaoElement");
|
|
16
|
+
t(this, "descricaoElement");
|
|
17
|
+
const e = this.attachShadow({ mode: "open" });
|
|
18
|
+
e.innerHTML = `
|
|
19
|
+
<style>${m}</style>
|
|
20
|
+
<div class="ui-stat">
|
|
21
|
+
<div class="ui-stat__cabecalho">
|
|
22
|
+
<span class="ui-stat__rotulo"></span>
|
|
23
|
+
<div class="ui-stat__icone-slot"><slot name="icone"></slot></div>
|
|
24
|
+
</div>
|
|
25
|
+
<div class="ui-stat__conteudo">
|
|
26
|
+
<div class="ui-stat__valor"></div>
|
|
27
|
+
<div class="ui-stat__indicador" style="display: none;">
|
|
28
|
+
<span class="ui-stat__seta" aria-hidden="true"></span>
|
|
29
|
+
<span class="ui-stat__variacao"></span>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="ui-stat__rodape">
|
|
33
|
+
<span class="ui-stat__descricao" style="display: none;"></span>
|
|
34
|
+
<slot name="grafico"></slot>
|
|
35
|
+
<slot></slot>
|
|
36
|
+
</div>
|
|
37
|
+
</div>
|
|
38
|
+
`, this.statElement = e.querySelector(".ui-stat"), this.rotuloElement = e.querySelector(".ui-stat__rotulo"), this.valorElement = e.querySelector(".ui-stat__valor"), this.indicadorElement = e.querySelector(".ui-stat__indicador"), this.setaElement = e.querySelector(".ui-stat__seta"), this.variacaoElement = e.querySelector(".ui-stat__variacao"), this.descricaoElement = e.querySelector(".ui-stat__descricao");
|
|
39
|
+
}
|
|
40
|
+
static get observedAttributes() {
|
|
41
|
+
return [
|
|
42
|
+
"rotulo",
|
|
43
|
+
"label",
|
|
44
|
+
"valor",
|
|
45
|
+
"value",
|
|
46
|
+
"variacao",
|
|
47
|
+
"trend",
|
|
48
|
+
"tendencia",
|
|
49
|
+
"direction",
|
|
50
|
+
"descricao",
|
|
51
|
+
"description",
|
|
52
|
+
"elevacao",
|
|
53
|
+
"elevation"
|
|
54
|
+
];
|
|
55
|
+
}
|
|
56
|
+
connectedCallback() {
|
|
57
|
+
this.syncState();
|
|
58
|
+
}
|
|
59
|
+
attributeChangedCallback(e, r, i) {
|
|
60
|
+
this.syncState();
|
|
61
|
+
}
|
|
62
|
+
get rotulo() {
|
|
63
|
+
return this.getAttribute("rotulo") || this.getAttribute("label") || "";
|
|
64
|
+
}
|
|
65
|
+
set rotulo(e) {
|
|
66
|
+
this.setAttribute("rotulo", e);
|
|
67
|
+
}
|
|
68
|
+
get valor() {
|
|
69
|
+
return this.getAttribute("valor") || this.getAttribute("value") || "";
|
|
70
|
+
}
|
|
71
|
+
set valor(e) {
|
|
72
|
+
this.setAttribute("valor", e);
|
|
73
|
+
}
|
|
74
|
+
get variacao() {
|
|
75
|
+
return this.getAttribute("variacao") || this.getAttribute("trend") || "";
|
|
76
|
+
}
|
|
77
|
+
set variacao(e) {
|
|
78
|
+
this.setAttribute("variacao", e);
|
|
79
|
+
}
|
|
80
|
+
get tendencia() {
|
|
81
|
+
const e = (this.getAttribute("tendencia") || this.getAttribute("direction") || "positivo").toLowerCase();
|
|
82
|
+
return e === "baixa" || e === "negativo" || e === "down" ? "baixa" : e === "neutro" || e === "neutral" ? "neutro" : "alta";
|
|
83
|
+
}
|
|
84
|
+
set tendencia(e) {
|
|
85
|
+
this.setAttribute("tendencia", e);
|
|
86
|
+
}
|
|
87
|
+
get descricao() {
|
|
88
|
+
return this.getAttribute("descricao") || this.getAttribute("description") || "";
|
|
89
|
+
}
|
|
90
|
+
set descricao(e) {
|
|
91
|
+
this.setAttribute("descricao", e);
|
|
92
|
+
}
|
|
93
|
+
syncState() {
|
|
94
|
+
const e = this.rotulo, r = this.valor, i = this.variacao, l = this.tendencia, d = this.descricao, b = this.getAttribute("elevacao") || this.getAttribute("elevation") || "baixa";
|
|
95
|
+
this.statElement.className = `ui-stat ui-stat--${b}`, this.rotuloElement.textContent = e, this.valorElement.textContent = r, i ? (this.variacaoElement.textContent = i, this.indicadorElement.style.display = "inline-flex", l === "baixa" ? (this.indicadorElement.className = "ui-stat__indicador ui-stat__indicador--negativo", this.setaElement.textContent = "↓", this.indicadorElement.setAttribute("aria-label", `Queda de ${i}`)) : l === "neutro" ? (this.indicadorElement.className = "ui-stat__indicador ui-stat__indicador--neutro", this.setaElement.textContent = "→", this.indicadorElement.setAttribute("aria-label", `Variação estável de ${i}`)) : (this.indicadorElement.className = "ui-stat__indicador ui-stat__indicador--positivo", this.setaElement.textContent = "↑", this.indicadorElement.setAttribute("aria-label", `Aumento de ${i}`))) : this.indicadorElement.style.display = "none", d ? (this.descricaoElement.textContent = d, this.descricaoElement.style.display = "block") : this.descricaoElement.style.display = "none";
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
class v extends n {
|
|
99
|
+
}
|
|
100
|
+
class f extends n {
|
|
101
|
+
}
|
|
102
|
+
s("ui-stat", n);
|
|
103
|
+
s("ui-kpi", v);
|
|
104
|
+
s("ui-metrica", f);
|
|
105
|
+
const x = ':host{display:inline-flex;align-items:center;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif);vertical-align:middle}.ui-badge{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:3px 8px;border-radius:999px;font-size:11px;font-weight:600;line-height:1;-webkit-user-select:none;user-select:none;box-sizing:border-box;transition:background-color .15s ease,color .15s ease,border-color .15s ease;white-space:nowrap}::slotted(svg),::slotted(ui-icone){width:12px!important;height:12px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;line-height:1!important;vertical-align:middle!important;shape-rendering:geometricPrecision;flex-shrink:0}::slotted(span){display:inline-flex;align-items:center;line-height:1}.ui-badge--suave{background-color:var(--ui-cor-badge-fundo, rgba(255, 255, 255, .08));color:var(--ui-cor-badge-texto, #e1e1e6);border:1px solid transparent}.ui-badge--solido{background-color:var(--ui-cor-badge-solido, #888899);color:#000;border:1px solid transparent}.ui-badge--contornado{background-color:transparent;color:var(--ui-cor-badge-texto, #e1e1e6);border:1px solid var(--ui-cor-badge-borda, rgba(255, 255, 255, .2))}.ui-badge--sucesso.ui-badge--suave{background-color:#00e08a26;color:var(--ui-cor-primaria, #00E08A)}.ui-badge--sucesso.ui-badge--solido{background-color:var(--ui-cor-primaria, #00E08A);color:#000}.ui-badge--sucesso.ui-badge--contornado{color:var(--ui-cor-primaria, #00E08A);border-color:#00e08a66}.ui-badge--erro.ui-badge--suave{background-color:#ff555526;color:var(--ui-cor-texto-erro, #ff5555)}.ui-badge--erro.ui-badge--solido{background-color:var(--ui-cor-texto-erro, #ff5555);color:#fff}.ui-badge--erro.ui-badge--contornado{color:var(--ui-cor-texto-erro, #ff5555);border-color:#f556}.ui-badge--alerta.ui-badge--suave{background-color:#ffb86c26;color:var(--ui-cor-texto-alerta, #ffb86c)}.ui-badge--alerta.ui-badge--solido{background-color:var(--ui-cor-texto-alerta, #ffb86c);color:#000}.ui-badge--alerta.ui-badge--contornado{color:var(--ui-cor-texto-alerta, #ffb86c);border-color:#ffb86c66}.ui-badge--info.ui-badge--suave,.ui-badge--primaria.ui-badge--suave{background-color:#00aaff26;color:#0af}.ui-badge--info.ui-badge--solido,.ui-badge--primaria.ui-badge--solido{background-color:#0af;color:#fff}.ui-badge--info.ui-badge--contornado,.ui-badge--primaria.ui-badge--contornado{color:#0af;border-color:#0af6}.ui-badge--neutro.ui-badge--suave{background-color:#ffffff14;color:var(--ui-cor-texto-secundario, #888899)}.ui-badge__close{display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;border-radius:50%;cursor:pointer;opacity:.7;transition:opacity .15s ease,background-color .15s ease;font-size:10px;line-height:1;margin-left:2px}.ui-badge__close:hover{opacity:1;background-color:#fff3}';
|
|
106
|
+
class c extends u {
|
|
107
|
+
constructor() {
|
|
108
|
+
super();
|
|
109
|
+
t(this, "badgeElement");
|
|
110
|
+
t(this, "labelElement");
|
|
111
|
+
t(this, "closeElement");
|
|
112
|
+
t(this, "listeners", new p());
|
|
113
|
+
t(this, "handleRemove", (e) => {
|
|
114
|
+
var r;
|
|
115
|
+
e.stopPropagation(), this.dispatchEvent(
|
|
116
|
+
new CustomEvent("ui-remove", {
|
|
117
|
+
detail: {
|
|
118
|
+
value: this.getAttribute("value") || ((r = this.textContent) == null ? void 0 : r.trim()) || ""
|
|
119
|
+
},
|
|
120
|
+
bubbles: !0,
|
|
121
|
+
composed: !0
|
|
122
|
+
})
|
|
123
|
+
);
|
|
124
|
+
});
|
|
125
|
+
const e = this.attachShadow({ mode: "open" });
|
|
126
|
+
e.innerHTML = `
|
|
127
|
+
<style>${x}</style>
|
|
128
|
+
<span class="ui-badge">
|
|
129
|
+
<slot></slot>
|
|
130
|
+
<span class="ui-badge__label" style="display: none;"></span>
|
|
131
|
+
<span class="ui-badge__close" role="button" tabindex="0" aria-label="Remover" style="display: none;" title="Remover">✕</span>
|
|
132
|
+
</span>
|
|
133
|
+
`, this.badgeElement = e.querySelector(".ui-badge"), this.labelElement = e.querySelector(".ui-badge__label"), this.closeElement = e.querySelector(".ui-badge__close");
|
|
134
|
+
}
|
|
135
|
+
static get observedAttributes() {
|
|
136
|
+
return [
|
|
137
|
+
"variante",
|
|
138
|
+
"variant",
|
|
139
|
+
"estilo",
|
|
140
|
+
"removivel",
|
|
141
|
+
"removable",
|
|
142
|
+
"disabled",
|
|
143
|
+
"label",
|
|
144
|
+
"value"
|
|
145
|
+
];
|
|
146
|
+
}
|
|
147
|
+
connectedCallback() {
|
|
148
|
+
this.listeners.cleanup(), this.listeners.add(this.closeElement, "click", this.handleRemove), this.listeners.add(this.closeElement, "keydown", (e) => {
|
|
149
|
+
(e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.handleRemove(e));
|
|
150
|
+
}), this.syncState();
|
|
151
|
+
}
|
|
152
|
+
disconnectedCallback() {
|
|
153
|
+
this.listeners.cleanup();
|
|
154
|
+
}
|
|
155
|
+
attributeChangedCallback(e, r, i) {
|
|
156
|
+
this.syncState();
|
|
157
|
+
}
|
|
158
|
+
get removivel() {
|
|
159
|
+
return this.hasAttribute("removivel") || this.hasAttribute("removable");
|
|
160
|
+
}
|
|
161
|
+
set removivel(e) {
|
|
162
|
+
e ? this.setAttribute("removivel", "") : (this.removeAttribute("removivel"), this.removeAttribute("removable"));
|
|
163
|
+
}
|
|
164
|
+
syncState() {
|
|
165
|
+
const e = this.getAttribute("variante") || this.getAttribute("variant") || "neutro", r = this.getAttribute("estilo") || "suave", i = this.getAttribute("label"), l = this.removivel;
|
|
166
|
+
this.badgeElement.className = "ui-badge", this.badgeElement.classList.add(`ui-badge--${e}`), this.badgeElement.classList.add(`ui-badge--${r}`), i ? (this.labelElement.textContent = i, this.labelElement.style.display = "inline") : this.labelElement.style.display = "none", l ? this.closeElement.style.display = "inline-flex" : this.closeElement.style.display = "none";
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
class _ extends c {
|
|
170
|
+
}
|
|
171
|
+
class y extends c {
|
|
172
|
+
}
|
|
173
|
+
s("ui-badge", c);
|
|
174
|
+
s("ui-chip", _);
|
|
175
|
+
s("ui-tag", y);
|
|
176
|
+
export {
|
|
177
|
+
c as U,
|
|
178
|
+
_ as a,
|
|
179
|
+
v as b,
|
|
180
|
+
f as c,
|
|
181
|
+
n as d,
|
|
182
|
+
y as e
|
|
183
|
+
};
|