@thibezer/ui-components-kit 2.21.0 → 2.23.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/CHANGELOG.md +210 -0
- package/README.md +1 -1
- package/dist/camadas.cjs +1 -311
- package/dist/camadas.js +148 -3248
- package/dist/canvas.cjs +82 -82
- package/dist/canvas.js +2964 -3442
- package/dist/components/ui-barra-ferramentas/paleta-ajuste.d.ts +43 -0
- package/dist/components/ui-barra-ferramentas/paleta-excesso.d.ts +8 -0
- package/dist/components/ui-barra-ferramentas/tipos.d.ts +15 -0
- package/dist/components/ui-barra-ferramentas/ui-paleta-ferramentas.d.ts +47 -6
- package/dist/components/ui-canvas-prancha/index.d.ts +13 -0
- package/dist/components/ui-canvas-prancha/prancha-acessibilidade.d.ts +5 -0
- package/dist/components/ui-canvas-prancha/prancha-atributos-sync.d.ts +14 -0
- package/dist/components/ui-canvas-prancha/prancha-bus.d.ts +5 -0
- package/dist/components/ui-canvas-prancha/prancha-comandos-organizacao.d.ts +45 -0
- package/dist/components/ui-canvas-prancha/prancha-comandos-pathfinder.d.ts +3 -0
- package/dist/components/ui-canvas-prancha/prancha-comandos-propriedades.d.ts +12 -0
- package/dist/components/ui-canvas-prancha/prancha-comandos.d.ts +27 -0
- package/dist/components/ui-canvas-prancha/prancha-controlador.d.ts +122 -0
- package/dist/components/ui-canvas-prancha/prancha-cores.d.ts +23 -0
- package/dist/components/ui-canvas-prancha/prancha-documento.d.ts +59 -0
- package/dist/components/ui-canvas-prancha/prancha-estado-ui.d.ts +45 -0
- package/dist/components/ui-canvas-prancha/prancha-ferramentas-edicao.d.ts +7 -0
- package/dist/components/ui-canvas-prancha/prancha-ferramentas.d.ts +38 -0
- package/dist/components/ui-canvas-prancha/prancha-gestos.d.ts +88 -0
- package/dist/components/ui-canvas-prancha/prancha-interacao.d.ts +31 -0
- package/dist/components/ui-canvas-prancha/prancha-medidor-texto.d.ts +6 -0
- package/dist/components/ui-canvas-prancha/prancha-paineis.d.ts +29 -0
- package/dist/components/ui-canvas-prancha/prancha-painel-camadas.d.ts +52 -0
- package/dist/components/ui-canvas-prancha/prancha-painel-propriedades.d.ts +50 -0
- package/dist/components/ui-canvas-prancha/prancha-paleta.d.ts +13 -0
- package/dist/components/ui-canvas-prancha/prancha-pintura.d.ts +55 -0
- package/dist/components/ui-canvas-prancha/prancha-reguas.d.ts +26 -0
- package/dist/components/ui-canvas-prancha/prancha-render.d.ts +35 -0
- package/dist/components/ui-canvas-prancha/prancha-teclado.d.ts +12 -0
- package/dist/components/ui-canvas-prancha/prancha-template.d.ts +1 -0
- package/dist/components/ui-canvas-prancha/prancha-vista.d.ts +31 -0
- package/dist/components/ui-canvas-prancha/tipos.d.ts +138 -0
- package/dist/components/ui-canvas-prancha/ui-canvas-prancha-base.d.ts +158 -0
- package/dist/components/ui-canvas-prancha/ui-canvas-prancha.d.ts +119 -0
- package/dist/components/ui-editor-prancha/editor-tipos.d.ts +12 -0
- package/dist/components/ui-editor-prancha/index.d.ts +2 -0
- package/dist/components/ui-editor-prancha/ui-editor-prancha.d.ts +60 -0
- package/dist/cores-utils-BmkzhA1v.cjs +1 -0
- package/dist/cores-utils-BrdynxRd.js +54 -0
- package/dist/cores.cjs +1 -1
- package/dist/cores.js +12 -11
- package/dist/custom-elements.json +21776 -11591
- package/dist/data.cjs +1 -1
- package/dist/data.js +99 -98
- package/dist/feature_caixa-2Sxv3tGa.js +824 -0
- package/dist/feature_caixa-4M4MkFH7.cjs +1 -0
- package/dist/feature_caixa-CnYPKVFS.cjs +1 -0
- package/dist/feature_caixa-DCs9ZeSk.js +1038 -0
- package/dist/feature_desenho-BH-E1Q9Q.cjs +1 -0
- package/dist/feature_desenho-BVHivWIB.js +222 -0
- package/dist/feature_historico-BAIYk1Me.cjs +3 -0
- package/dist/feature_historico-C4h9y5fu.js +3039 -0
- package/dist/geometria-px-Cyi_oPD6.cjs +1 -0
- package/dist/geometria-px-DKrWq_XY.js +639 -0
- package/dist/geometria-px-DUs5FgLE.js +639 -0
- package/dist/gerencigeo-canvas/booleanas/classificacao.d.ts +41 -0
- package/dist/gerencigeo-canvas/booleanas/index.d.ts +10 -0
- package/dist/gerencigeo-canvas/booleanas/montagem.d.ts +23 -0
- package/dist/gerencigeo-canvas/booleanas/segmentos.d.ts +38 -0
- package/dist/gerencigeo-canvas/booleanas/tipos.d.ts +44 -0
- package/dist/gerencigeo-canvas/espaco/espaco_geografico.d.ts +2 -0
- package/dist/gerencigeo-canvas/espaco/espaco_matriz.d.ts +58 -0
- package/dist/gerencigeo-canvas/espaco/espaco_plano.d.ts +13 -0
- package/dist/gerencigeo-canvas/espaco/espaco_tipos.d.ts +35 -0
- package/dist/gerencigeo-canvas/espaco/index.d.ts +4 -0
- package/dist/gerencigeo-canvas/feature_algoritmos.d.ts +12 -8
- package/dist/gerencigeo-canvas/feature_amostra.d.ts +2 -1
- package/dist/gerencigeo-canvas/feature_caixa.d.ts +3 -2
- package/dist/gerencigeo-canvas/feature_curvas.d.ts +9 -2
- package/dist/gerencigeo-canvas/feature_desenho.d.ts +23 -2
- package/dist/gerencigeo-canvas/feature_edicao_nos.d.ts +68 -0
- package/dist/gerencigeo-canvas/feature_edicao_ops.d.ts +28 -8
- package/dist/gerencigeo-canvas/feature_editor_painel_no.d.ts +40 -0
- package/dist/gerencigeo-canvas/feature_editor_vertices.d.ts +46 -0
- package/dist/gerencigeo-canvas/feature_formas.d.ts +7 -3
- package/dist/gerencigeo-canvas/feature_historico.d.ts +41 -0
- package/dist/gerencigeo-canvas/feature_indice.d.ts +10 -2
- package/dist/gerencigeo-canvas/feature_metricas.d.ts +15 -4
- package/dist/gerencigeo-canvas/feature_types.d.ts +14 -2
- package/dist/gerencigeo-canvas/motor/geometria-px.d.ts +2 -0
- package/dist/gerencigeo-canvas/prancha/ajuste_caixa.d.ts +32 -0
- package/dist/gerencigeo-canvas/prancha/aparencia_estilo.d.ts +86 -0
- package/dist/gerencigeo-canvas/prancha/aparencia_lote.d.ts +49 -0
- package/dist/gerencigeo-canvas/prancha/camadas.d.ts +14 -0
- package/dist/gerencigeo-canvas/prancha/cantos_vivos.d.ts +18 -0
- package/dist/gerencigeo-canvas/prancha/elemento_consulta.d.ts +63 -0
- package/dist/gerencigeo-canvas/prancha/elemento_criacao.d.ts +27 -0
- package/dist/gerencigeo-canvas/prancha/elemento_edicao.d.ts +24 -0
- package/dist/gerencigeo-canvas/prancha/elemento_geometria.d.ts +60 -0
- package/dist/gerencigeo-canvas/prancha/elemento_predefinicoes.d.ts +88 -0
- package/dist/gerencigeo-canvas/prancha/elemento_snap.d.ts +39 -0
- package/dist/gerencigeo-canvas/prancha/elemento_transformacao.d.ts +65 -0
- package/dist/gerencigeo-canvas/prancha/elemento_validacao.d.ts +27 -0
- package/dist/gerencigeo-canvas/prancha/envelope_visual.d.ts +12 -0
- package/dist/gerencigeo-canvas/prancha/exportar_svg.d.ts +18 -0
- package/dist/gerencigeo-canvas/prancha/guias_inteligentes.d.ts +21 -0
- package/dist/gerencigeo-canvas/prancha/index.d.ts +28 -0
- package/dist/gerencigeo-canvas/prancha/operacoes_caminho.d.ts +35 -0
- package/dist/gerencigeo-canvas/prancha/organizacao.d.ts +46 -0
- package/dist/gerencigeo-canvas/prancha/pathfinder.d.ts +17 -0
- package/dist/gerencigeo-canvas/prancha/pintura_canvas.d.ts +118 -0
- package/dist/gerencigeo-canvas/prancha/pintura_contexto.d.ts +54 -0
- package/dist/gerencigeo-canvas/prancha/pintura_formas.d.ts +32 -0
- package/dist/gerencigeo-canvas/prancha/pintura_gradiente_faixas.d.ts +21 -0
- package/dist/gerencigeo-canvas/prancha/pintura_plano.d.ts +126 -0
- package/dist/gerencigeo-canvas/prancha/propriedades.d.ts +15 -0
- package/dist/gerencigeo-canvas/prancha/tipos.d.ts +228 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +8 -0
- package/dist/index.js +252 -248
- package/dist/motor.cjs +1 -1
- package/dist/motor.js +822 -57
- package/dist/prancha-nucleo.cjs +1 -0
- package/dist/prancha-nucleo.d.ts +3 -0
- package/dist/prancha-nucleo.js +302 -0
- package/dist/prancha-paleta-BZ-9QDgh.js +5276 -0
- package/dist/prancha-paleta-Bb24vP71.cjs +17 -0
- package/dist/prancha.cjs +1 -0
- package/dist/prancha.d.ts +13 -0
- package/dist/prancha.js +231 -0
- package/dist/register.cjs +1 -1
- package/dist/register.js +10 -6
- package/dist/tabela.cjs +1 -1
- package/dist/tabela.js +90 -89
- package/dist/tipos-elementos.d.ts +73 -1
- package/dist/tipos-react.d.ts +4 -0
- package/dist/tipos-vue.d.ts +73 -1
- package/dist/tools.cjs +1 -1
- package/dist/tools.js +1 -1
- package/dist/ui-camadas-DoHPnbQm.js +3133 -0
- package/dist/ui-camadas-Vx7wYD4D.cjs +311 -0
- package/dist/ui-controle-cores-BcH9k2Fa.js +292 -0
- package/dist/ui-controle-cores-CvSTP6gJ.cjs +32 -0
- package/dist/ui-editor-prancha-CIngI6yI.js +2886 -0
- package/dist/ui-editor-prancha-DorSe6sC.cjs +31 -0
- package/dist/ui-kit.css +1 -1
- package/dist/ui-paleta-ferramentas-DebHYiwd.js +1615 -0
- package/dist/ui-paleta-ferramentas-jWuICjW8.cjs +22 -0
- package/dist/ui-seletor-cor-0RLjcME6.cjs +83 -0
- package/dist/ui-seletor-cor-Cd8jkzXG.js +354 -0
- package/dist/ui-tabela-CXxqbwXv.cjs +7 -0
- package/dist/ui-tabela-Cd0vOwnT.js +1459 -0
- package/dist/ui-tabela-propriedades-D96Djx-q.cjs +136 -0
- package/dist/ui-tabela-propriedades-ahQhQauu.js +2329 -0
- package/package.json +11 -1
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
"use strict";var lt=Object.defineProperty;var ct=(r,t,e)=>t in r?lt(r,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):r[t]=e;var w=(r,t,e)=>ct(r,typeof t!="symbol"?t+"":t,e);const me=require("./listener-bag-D5omxZ9h.cjs"),dt=require("./svg-seguro-J2RM1Ssf.cjs"),R=require("./parts-vQa2873h.cjs"),ee=require("./ssr-safe-CiHD1adl.cjs"),W=require("./degrade-CIxvOTUv.cjs"),k=Object.freeze({vazio:"Nenhuma propriedade disponível.",vazioBusca:'Nenhuma propriedade encontrada para "{termo}".',sim:"Sim",nao:"Não",editarAcao:"Editar...",selecionarCor:"Selecionar cor...",editarTipo:"Editar tipo",tipoFamilia:"Tipo de Família",restaurarValor:"Restaurar valor original",filtroPlaceholder:"Filtrar propriedades...",aplicar:"Aplicar",desfazer:"Desfazer",ajuda:"Ajuda de propriedades"});function $(r,t){const e=r==null?void 0:r.obterTexto;if(typeof e=="function")try{const i=e.call(r,t);if(typeof i=="string"&&i)return i}catch{}return k[t]}const N=Math.PI/180,ge=64;function D(r){return Math.abs(r)<1e-12?0:Number(r.toPrecision(15))}const ut={sqrt:Math.sqrt,abs:Math.abs,round:Math.round,floor:Math.floor,ceil:Math.ceil,trunc:Math.trunc,sign:Math.sign,log:Math.log10,ln:Math.log,deg:r=>D(r/N),rad:r=>D(r*N),sin:r=>D(Math.sin(r*N)),cos:r=>D(Math.cos(r*N)),tan:r=>D(Math.tan(r*N)),asin:r=>D(Math.asin(r)/N),acos:r=>D(Math.acos(r)/N),atan:r=>D(Math.atan(r)/N)},pt={min:r=>r.length>0?Math.min(...r):NaN,max:r=>r.length>0?Math.max(...r):NaN,pow:r=>r.length===2?Math.pow(r[0],r[1]):NaN,hypot:r=>r.length>=2?Math.hypot(...r):NaN,atan2:r=>r.length===2?D(Math.atan2(r[0],r[1])/N):NaN,mod:r=>r.length===2&&r[1]!==0?r[0]%r[1]:NaN};function _e(r){if(!r||typeof r!="string")return null;let t=r.trim();if(t.startsWith("=")&&(t=t.slice(1).trim()),!t)return null;t=t.replace(/(\d),(\d)/g,"$1.$2");let e=0,i=0,o=!1;function a(){return t[e]||""}function n(){return t[e++]||""}function s(){for(;e<t.length&&/\s/.test(t[e]);)e++}function u(){if(s(),!(e>=t.length)&&n()!==")")throw new Error("Parêntese sem fechamento")}function l(){if(++i>ge)throw new Error("Profundidade máxima excedida");try{s();let c=m();for(s();e<t.length;){const h=a();if(h==="+"||h==="-"){n(),s();const f=m(),g=o;s(),g?c=h==="+"?c+c*f:c-c*f:c=h==="+"?c+f:c-f,o=!1}else break}return c}finally{i--}}function m(){s();let c=d(),h=o;for(s();e<t.length;){const f=a();if(f==="*"||f==="/"||f==="x"||f==="X"){n(),s();const g=d();if(h=!1,f==="/"&&g===0)throw new Error("Divisão por zero");c=f==="/"?c/g:c*g,s()}else break}return o=h,c}function d(){if(++i>ge)throw new Error("Profundidade máxima excedida");try{s();const c=a();if(c==="+"||c==="-"){n();const g=d();return c==="-"?-g:g}let h=p();const f=o;if(s(),a()==="^"){n();const g=d();h=Math.pow(h,g),o=!1}else if(t.slice(e,e+2)==="**"){e+=2;const g=d();h=Math.pow(h,g),o=!1}else o=f;return h}finally{i--}}function p(){s(),o=!1;const c=a();if(c==="+"||c==="-"){n();const b=p();return c==="-"?-b:b}if(c==="("){n();const b=l();return u(),s(),a()==="%"?(n(),o=!0,b/100):(o=!1,b)}const h=t.slice(e).match(/^([a-zA-Z_]\w*)\s*\(/);if(h){const b=h[1].toLowerCase(),v=ut[b],x=pt[b];if(!v&&!x)throw new Error("Função desconhecida: "+h[1]);e+=h[0].length;const y=[l()];for(;;){s();const z=a();if(z===";"||z===",")n(),s(),y.push(l());else if(z!==""&&/[0-9.(a-zA-Zπ]/.test(z))y.push(l());else break}u();const S=x?x(y):y.length===1&&v?v(y[0]):NaN;if(isNaN(S))throw new Error("Resultado inválido de função");return s(),a()==="%"?(n(),o=!0,S/100):(o=!1,S)}const f=t.slice(e).match(/^(pi|π|e)\b/i);if(f){e+=f[0].length;let v=f[1].toLowerCase()==="e"?Math.E:Math.PI;return s(),a()==="%"&&(n(),o=!0,v=v/100),v}const g=t.slice(e).match(/^(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+|,[0-9]+)(?:[eE][+-]?[0-9]+)?/);if(g){e+=g[0].length;let b=parseFloat(g[0].replace(",","."));return s(),a()==="%"&&(n(),o=!0,b=b/100),b}throw new Error("Caractere inválido: "+c)}try{const c=l();return s(),e<t.length?null:typeof c=="number"&&isFinite(c)?c:null}catch{return null}}const ht=Object.freeze([{nome:"abs",tipo:"funcao",assinatura:"(x)",descricao:"Valor absoluto (sem sinal). Ex.: abs(-5) = 5"},{nome:"acos",tipo:"funcao",assinatura:"(x)",descricao:"Arco-cosseno; o resultado é em graus. Ex.: acos(0.5) = 60"},{nome:"asin",tipo:"funcao",assinatura:"(x)",descricao:"Arco-seno; o resultado é em graus. Ex.: asin(0.5) = 30"},{nome:"atan",tipo:"funcao",assinatura:"(x)",descricao:"Arco-tangente; o resultado é em graus. Ex.: atan(1) = 45"},{nome:"atan2",tipo:"funcao",assinatura:"(y; x)",descricao:"Ângulo em graus do ponto (x, y). Ex.: atan2(1; 1) = 45"},{nome:"ceil",tipo:"funcao",assinatura:"(x)",descricao:"Arredonda para cima. Ex.: ceil(2.1) = 3"},{nome:"cos",tipo:"funcao",assinatura:"(x)",descricao:"Cosseno, com x em graus. Ex.: cos(60) = 0.5"},{nome:"deg",tipo:"funcao",assinatura:"(x)",descricao:"Converte radianos em graus. Ex.: deg(pi) = 180"},{nome:"e",tipo:"constante",assinatura:"",descricao:"Número de Euler, 2,71828…"},{nome:"floor",tipo:"funcao",assinatura:"(x)",descricao:"Arredonda para baixo. Ex.: floor(2.9) = 2"},{nome:"hypot",tipo:"funcao",assinatura:"(a; b; …)",descricao:"Hipotenusa: raiz da soma dos quadrados. Ex.: hypot(3; 4) = 5"},{nome:"ln",tipo:"funcao",assinatura:"(x)",descricao:"Logaritmo natural (base e). Ex.: ln(e) = 1"},{nome:"log",tipo:"funcao",assinatura:"(x)",descricao:"Logaritmo na base 10. Ex.: log(100) = 2"},{nome:"max",tipo:"funcao",assinatura:"(a; b; …)",descricao:"Maior dos valores. Ex.: max(3; 1; 2) = 3"},{nome:"min",tipo:"funcao",assinatura:"(a; b; …)",descricao:"Menor dos valores. Ex.: min(3; 1; 2) = 1"},{nome:"mod",tipo:"funcao",assinatura:"(a; b)",descricao:"Resto da divisão de a por b. Ex.: mod(10; 3) = 1"},{nome:"pi",tipo:"constante",assinatura:"",descricao:"Constante π = 3,14159…"},{nome:"pow",tipo:"funcao",assinatura:"(base; expoente)",descricao:"Potência. Ex.: pow(2; 3) = 8 (o mesmo que 2^3)"},{nome:"rad",tipo:"funcao",assinatura:"(x)",descricao:"Converte graus em radianos. Ex.: rad(180) = 3.14159…"},{nome:"round",tipo:"funcao",assinatura:"(x)",descricao:"Arredonda para o inteiro mais próximo. Ex.: round(2.5) = 3"},{nome:"sign",tipo:"funcao",assinatura:"(x)",descricao:"Sinal do número: -1, 0 ou 1. Ex.: sign(-7) = -1"},{nome:"sin",tipo:"funcao",assinatura:"(x)",descricao:"Seno, com x em graus. Ex.: sin(30) = 0.5"},{nome:"sqrt",tipo:"funcao",assinatura:"(x)",descricao:"Raiz quadrada. Ex.: sqrt(16) = 4"},{nome:"tan",tipo:"funcao",assinatura:"(x)",descricao:"Tangente, com x em graus. Ex.: tan(45) = 1"},{nome:"trunc",tipo:"funcao",assinatura:"(x)",descricao:"Remove a parte decimal. Ex.: trunc(-2.9) = -2"}]);function ft(r,t){if(typeof r!="string"||!Number.isFinite(t))return null;const e=Math.max(0,Math.min(r.length,Math.floor(t))),i=r.slice(0,e),o=/[a-zA-Z_]+$/.exec(i);if(!o)return null;const a=e-o[0].length;if(a>0&&/[0-9.,]/.test(r[a-1]))return null;const n=r.slice(e);if(/^[a-zA-Z0-9_]/.test(n))return null;const s=o[0].toLowerCase(),u=ht.filter(l=>!(!l.nome.startsWith(s)||l.nome===s&&(l.tipo==="constante"||n.startsWith("("))));return u.length>0?{entradas:u,inicio:a,fim:e}:null}function mt(r,t,e){const i=e.nome+(e.tipo==="funcao"?"(":"");return{texto:r.slice(0,t.inicio)+i+r.slice(t.fim),cursor:t.inicio+i.length}}let gt=0;function be(r){var e;const t=r.getRootNode();return((e=t.getElementById)==null?void 0:e.call(t,"container"))??null}function bt(r){const t=`ui-prop-ac-${++gt}`;let e=null,i=null,o=[],a=null,n=0;r.setAttribute("role","combobox"),r.setAttribute("aria-autocomplete","list"),r.setAttribute("aria-expanded","false");const s=c=>{var h,f;!a||o.length===0||(n=(c+o.length)%o.length,o.forEach((g,b)=>{const v=b===n;g.classList.toggle("ui-prop__ac-item--ativo",v),g.setAttribute("aria-selected",String(v))}),r.setAttribute("aria-activedescendant",o[n].id),i&&(i.textContent=a.entradas[n].descricao),(f=(h=o[n]).scrollIntoView)==null||f.call(h,{block:"nearest"}))},u=()=>{const c=be(r);if(!e||!c)return;const h=c.getBoundingClientRect(),f=r.getBoundingClientRect(),g=Math.max(f.width,190),b=Math.max(0,Math.min(f.right-h.left-g,h.width-g));e.style.minWidth=`${g}px`,e.style.left=`${b}px`;const v=e.offsetHeight||0,x=f.bottom-h.top;v&&x+v>h.height&&f.top-h.top-v>0?e.style.top=`${f.top-h.top-v}px`:e.style.top=`${x}px`},l=()=>{e&&e.remove(),e=null,i=null,o=[],a=null,n=0,r.setAttribute("aria-expanded","false"),r.removeAttribute("aria-controls"),r.removeAttribute("aria-activedescendant")},m=c=>{if(!a)return;const h=a.entradas[c];if(!h)return;const f=mt(r.value,a,h);l(),r.value=f.texto;try{r.setSelectionRange(f.cursor,f.cursor)}catch{}r.dispatchEvent(new Event("input",{bubbles:!0}))},d=c=>{const h=be(r);if(!h)return;e||(e=document.createElement("div"),e.id=t,e.className="ui-prop__ac",e.setAttribute("part","autocomplete"),e.setAttribute("role","listbox"),e.addEventListener("mousedown",g=>g.preventDefault()),h.appendChild(e));const f=e;f.textContent="",o=c.entradas.map((g,b)=>{const v=document.createElement("div");v.id=`${t}-${b}`,v.className="ui-prop__ac-item",v.setAttribute("part","autocomplete-item"),v.setAttribute("role","option");const x=document.createElement("span");x.className="ui-prop__ac-nome",x.textContent=g.nome;const y=document.createElement("span");return y.className="ui-prop__ac-assinatura",y.textContent=g.assinatura,v.append(x,y),v.addEventListener("mouseenter",()=>s(b)),v.addEventListener("click",()=>m(b)),f.appendChild(v),v}),i=document.createElement("div"),i.className="ui-prop__ac-dica",i.setAttribute("part","autocomplete-dica"),i.setAttribute("aria-live","polite"),f.appendChild(i),a=c,r.setAttribute("aria-expanded","true"),r.setAttribute("aria-controls",t),s(0),u()},p=()=>{const c=ft(r.value,r.selectionStart??r.value.length);c?d(c):l()};return r.addEventListener("input",p),r.addEventListener("click",p),r.addEventListener("keyup",c=>{(c.key==="ArrowLeft"||c.key==="ArrowRight"||c.key==="Home"||c.key==="End")&&p()}),r.addEventListener("blur",l),{aberto:()=>e!==null,fechar:l,tratarTecla:c=>{if(!e)return!1;switch(c.key){case"ArrowDown":return c.preventDefault(),s(n+1),!0;case"ArrowUp":return c.preventDefault(),s(n-1),!0;case"Enter":case"Tab":return c.preventDefault(),m(n),!0;case"Escape":return c.preventDefault(),c.stopPropagation(),l(),!0;default:return!1}}}}const vt="ui_tabela_propriedades_estado_",Y=new Set(["__proto__","constructor","prototype"]);function ve(r){return!!r&&typeof r=="object"&&!Array.isArray(r)}function le(){if(typeof window>"u")return null;try{return typeof localStorage<"u"?localStorage:null}catch{return null}}function H(r,t){const e=typeof r=="string"?r.trim():"",i=typeof t=="string"?t.trim():"";return`${vt}${e||i||"default"}`}function Ee(r){if(!ve(r))return null;const t={};if(ve(r.categorias))for(const[o,a]of Object.entries(r.categorias))!o||Y.has(o)||typeof a=="boolean"&&(t[o]=a);const e=typeof r.versao=="number"&&Number.isFinite(r.versao)?r.versao:1,i=typeof r.ultimaAtualizacao=="number"&&Number.isFinite(r.ultimaAtualizacao)?r.ultimaAtualizacao:void 0;return i!==void 0?{versao:e,categorias:t,ultimaAtualizacao:i}:{versao:e,categorias:t}}function ye(r){const t=le();if(!t)return null;try{const e=t.getItem(r);return e?Ee(JSON.parse(e)):null}catch(e){return console.warn(`[ui-tabela-propriedades] Não foi possível carregar o estado persistido (${r}):`,e),null}}function we(r,t){const e=le();if(e)try{e.setItem(r,JSON.stringify(t))}catch(i){console.warn(`[ui-tabela-propriedades] Não foi possível salvar o estado persistido (${r}):`,i)}}function Ae(r){const t=le();if(t)try{t.removeItem(r)}catch{}}function P(r){if(!r||typeof r!="object")return null;const t=r.id;if(t==null)return null;const e=String(t);return!e||Y.has(e)?null:e}function Z(r){return r.aberto!==void 0?r.aberto!==!1:r.aberta!==!1}function F(r,t){if(!(!r||typeof r!="object"||Object.isFrozen(r)))try{r.aberto=t,"aberta"in r&&(r.aberta=t)}catch{}}class Ce{constructor(t){w(this,"preferencias",new Map);w(this,"origensAberto",new Map);w(this,"origemPorObjeto",new WeakMap);w(this,"ultimaChaveCarregada",null);this.getContexto=t}chaveAtual(){const t=this.getContexto();return H(t.storageKey,t.id)}carregarDoStorage(t=!1){const e=this.getContexto(),i=H(e.storageKey,e.id);if(t&&this.preferencias.clear(),this.ultimaChaveCarregada=i,!e.persistir)return!1;const o=ye(i);if(!o)return!1;for(const[a,n]of Object.entries(o.categorias))(t||!this.preferencias.has(a))&&this.preferencias.set(a,n);return!0}sincronizarSeChaveMudou(){const t=this.getContexto();if(!t.conectado||!t.persistir)return!1;const e=H(t.storageKey,t.id);return this.ultimaChaveCarregada===null?this.carregarDoStorage(!1):e!==this.ultimaChaveCarregada?this.carregarDoStorage(!0):!1}registrarOrigens(t){if(this.origensAberto.clear(),!!Array.isArray(t))for(const e of t){const i=P(e);if(i!==null){let o=this.origemPorObjeto.get(e);o===void 0&&(o=Z(e),this.origemPorObjeto.set(e,o)),this.origensAberto.set(i,o)}}}aplicarEmCategorias(t){if(Array.isArray(t))for(const e of t){const i=P(e);i!==null&&this.preferencias.has(i)&&F(e,this.preferencias.get(i))}}restaurarOrigensEmCategorias(t){if(Array.isArray(t))for(const e of t){const i=P(e);i!==null&&this.origensAberto.has(i)&&F(e,this.origensAberto.get(i))}}estaAberta(t){if(!t||typeof t!="object")return!0;const e=P(t);return e!==null&&this.preferencias.has(e)?this.preferencias.get(e):Z(t)}registrar(t,e,i=!0){!t||Y.has(t)||(this.preferencias.set(t,!!e),i&&this.salvar())}registrarVarias(t,e=!0){let i=!1;for(const[o,a]of t)!o||Y.has(o)||(this.preferencias.set(o,!!a),i=!0);i&&e&&this.salvar()}salvar(){const t=this.getContexto();if(!t.persistir||!t.conectado)return;const e=H(t.storageKey,t.id);if(this.ultimaChaveCarregada=e,this.preferencias.size===0)return;const i={};for(const[o,a]of this.preferencias.entries())i[o]=a;we(e,{versao:1,categorias:i,ultimaAtualizacao:Date.now()})}limpar(t){this.preferencias.clear(),t&&this.restaurarOrigensEmCategorias(t),Ae(this.chaveAtual())}obterEstado(t){const e={};for(const[i,o]of this.preferencias.entries())e[i]=o;if(Array.isArray(t))for(const i of t){const o=P(i);o!==null&&!(o in e)&&(e[o]=this.estaAberta(i))}return e}montarDetalheEvento(t){const e=this.obterEstado(t),i=[],o=[];for(const[a,n]of Object.entries(e))n?i.push(a):o.push(a);return{estado:e,abertas:i,fechadas:o}}}const ce='.ui-prop__categoria--aberta .ui-prop__linha input:not([disabled]):not([type="color"]):not(.ui-prop__cor-picker-oculto), .ui-prop__categoria--aberta .ui-prop__linha select:not([disabled]), .ui-prop__categoria--aberta .ui-prop__linha .ui-prop__btn-acao-inline:not([disabled]), .ui-prop__categoria--aberta .ui-prop__linha .ui-prop__editor-booleano, .ui-prop__categoria--aberta .ui-prop__linha .ui-prop__editor-cor-container';function de(r,t){if(!r)return null;const e=String(t);return Array.from(r.querySelectorAll("[data-prop-id]")).find(i=>i.getAttribute("data-prop-id")===e)??null}const ke=new WeakMap;function M(r,t){ke.set(r,t)}function ae(r,t,e){var a,n;const i=de(r,t),o=(a=i==null?void 0:i.querySelector(".ui-prop__col-valor"))==null?void 0:a.firstElementChild;o&&((n=ke.get(o))==null||n(e))}function U(r,t,e=(o,a)=>o===String(a),i=o=>o==null||o===""?"—":String(o)){var n;(n=r.querySelector("option[data-externa]"))==null||n.remove();const o=Array.from(r.options).find(s=>!s.hasAttribute("data-acao")&&e(s.value,t));if(o){o.selected=!0;return}const a=document.createElement("option");a.value=t==null?"":String(t),a.textContent=i(t),a.setAttribute("data-externa",""),a.hidden=!0,r.insertBefore(a,r.firstChild),a.selected=!0}function K(r,t){var i;(i=r.querySelector("option[data-externa]"))==null||i.remove();const e=document.createElement("option");e.value="",e.textContent=t,e.setAttribute("data-externa",""),e.setAttribute("data-misto",""),e.hidden=!0,e.disabled=!0,r.insertBefore(e,r.firstChild),e.selected=!0}function ze(r,t){const e=Array.from(r.querySelectorAll(ce)),i=e.indexOf(t);if(i!==-1&&i+1<e.length){const o=e[i+1];o.focus(),o instanceof HTMLInputElement&&o.select()}}function Se(r,t){const e=Array.from(r.querySelectorAll(ce)),i=e.indexOf(t);if(i>0){const o=e[i-1];o.focus(),o instanceof HTMLInputElement&&o.select()}}function Le(r){const t=r.querySelector(ce);t&&(t.focus(),t instanceof HTMLInputElement&&t.select())}function te(r,t){var e;r.classList.toggle("ui-prop__categoria--aberta",t),R.alternarPart(r,"categoria-aberta",t),(e=r.querySelector(".ui-prop__categoria-header"))==null||e.setAttribute("aria-expanded",String(t))}function Pe(r,t,e){const i=new Map;r.querySelectorAll(".ui-prop__categoria[data-cat-id]").forEach(o=>{const a=o.getAttribute("data-cat-id");a!==null&&i.set(a,o)}),(Array.isArray(t)?t:[]).forEach(o=>{const a=P(o);if(a===null)return;const n=e(o),s=i.get(a);s&&te(s,n)})}function Me(r,t){(Array.isArray(t)?t:[]).forEach(e=>{F(e,!0)}),r.querySelectorAll(".ui-prop__categoria").forEach(e=>te(e,!0))}function Be(r,t){(Array.isArray(t)?t:[]).forEach(e=>{F(e,!1)}),r.querySelectorAll(".ui-prop__categoria").forEach(e=>te(e,!1))}function Ne(r,t,e,i,o){const a=(Array.isArray(e)?e:[]).find(l=>l&&typeof l=="object"&&String(l.id)===String(i));if(!a)return;const n=Array.from(r.querySelectorAll("[data-cat-id]")).find(l=>l.getAttribute("data-cat-id")===String(i)),u=!(o!==void 0?o:n?n.classList.contains("ui-prop__categoria--aberta"):Z(a));return F(a,u),n&&te(n,u),t.dispatchEvent(new CustomEvent("ui-categoria-toggle",{bubbles:!0,composed:!0,detail:{id:i,aberto:u}})),u}const re=Symbol.for("ui-tabela-propriedades:misto"),ie="Varia";function A(r){return r===re}function B(r){var e;let t;try{t=(e=r.obterTextoMisto)==null?void 0:e.call(r)}catch{}return typeof t=="string"&&t.trim()?t:ie}function T(r,t){return r==null&&t==null?!0:r===t||Object.is(r,t)}function Q(r){return r.misto?re:r.valor}function De(r){if(!Array.isArray(r)||r.length===0)return;const t=r[0];for(let e=1;e<r.length;e++)if(!T(t,r[e]))return re;return t}function xt(r){if(!Array.isArray(r))return{};const t=r.filter(o=>o!==null&&typeof o=="object"&&!Array.isArray(o)),e=new Set;t.forEach(o=>Object.keys(o).forEach(a=>e.add(a)));const i={};return e.forEach(o=>{i[o]=De(t.map(a=>o in a?a[o]:void 0))}),i}function X(r){if(typeof r.casasDecimais=="number"&&r.casasDecimais>=0)return r.casasDecimais;if(typeof r.precisao=="number"&&r.precisao>=0)return r.precisao}function Te(r,t){return typeof r.passo=="number"&&r.passo>0?r.passo:typeof r.step=="number"&&r.step>0?r.step:t!==void 0?Math.pow(10,-t):1}function oe(r,t){let e=r;return typeof t.min=="number"&&Number.isFinite(t.min)&&(e=Math.max(t.min,e)),typeof t.max=="number"&&Number.isFinite(t.max)&&(e=Math.min(t.max,e)),e}function G(r,t){if(typeof r!="string")return null;let e=r.trim();const i=typeof t.unidade=="string"?t.unidade.trim():"";if(i&&e.length>i.length&&e.toLowerCase().endsWith(i.toLowerCase())&&(e=e.slice(0,e.length-i.length).trim()),!e)return null;const o=_e(e);if(o===null||!Number.isFinite(o))return null;const a=X(t),n=oe(o,t);return Number(a!==void 0?n.toFixed(a):n.toPrecision(15))}function Ve(r,t,e,i){r.classList.toggle("ui-prop__editor--misto",e),e?r.placeholder=i:t.placeholder?r.placeholder=t.placeholder:r.removeAttribute("placeholder")}function Oe(r,t,e,i){const o=document.createElement("span"),a=e?X(e):void 0,n=s=>{if(A(s)){o.className="ui-prop__valor-readonly ui-prop__editor--misto",o.textContent=t?B({obterTextoMisto:t}):ie;return}if(s==null){o.className="ui-prop__valor-readonly",o.textContent="—";return}if((e==null?void 0:e.tipo)==="booleano"&&typeof s=="boolean"){o.className="ui-prop__valor-readonly",o.textContent=s?(i==null?void 0:i("sim"))||k.sim:(i==null?void 0:i("nao"))||k.nao;return}if(e!=null&&e.opcoes&&e.opcoes.length>0){const l=e.opcoes.find(m=>m&&String(m.id)===String(s));if(l){o.className="ui-prop__valor-readonly",o.textContent=l.rotulo;return}}const u=typeof s=="number"||typeof s=="string"&&/^-?\d+(\.\d+)?$/.test(s.trim());if(o.className=`ui-prop__valor-readonly ${u?"ui-prop__valor-readonly--numero":""}`.trim(),u&&a!==void 0){const l=Number(s);o.textContent=Number.isFinite(l)?l.toFixed(a):String(s)}else o.textContent=String(s)};return n(r),M(o,n),o}function je(r,t,e,i){const o=document.createElement("label");o.className="ui-prop__editor-booleano",o.setAttribute("role","checkbox"),o.tabIndex=0,o.setAttribute("aria-label",String(t.rotulo??t.id));const a=document.createElement("div");a.className="ui-prop__checkbox-custom";const n=document.createElement("span");n.className="ui-prop__booleano-rotulo";const s=l=>{var p,c;const m=A(l),d=!m&&!!l;o.classList.toggle("ui-prop__editor--misto",m),a.classList.toggle("ui-prop__checkbox-custom--marcado",d),a.classList.toggle("ui-prop__checkbox-custom--misto",m),a.textContent=m?"–":d?"✓":"",n.textContent=m?B(i):d?((p=i.obterTexto)==null?void 0:p.call(i,"sim"))||k.sim:((c=i.obterTexto)==null?void 0:c.call(i,"nao"))||k.nao,o.setAttribute("aria-checked",m?"mixed":String(d))};s(e),M(o,s),o.appendChild(a),o.appendChild(n);const u=()=>{const l=i.obterValorAtual(t.id),m=A(l)?!0:!l;i.registrarAlteracao(r,t.id,m),s(m)};return o.addEventListener("click",l=>{l.preventDefault(),u()}),o.addEventListener("keydown",l=>{l.key===" "?(l.preventDefault(),u()):l.key==="Enter"&&(l.preventDefault(),l.shiftKey&&i.focarEditorAnterior?i.focarEditorAnterior(o):i.focarProximoEditor(o))}),o}function Re(r,t,e,i){const o=document.createElement("select");o.className="ui-prop__editor-select",o.setAttribute("aria-label",String(t.rotulo??t.id)),(Array.isArray(t.opcoes)?t.opcoes:[]).forEach(n=>{if(!n||typeof n!="object")return;const s=document.createElement("option");s.value=String(n.id),s.textContent=String(n.rotulo??n.id),o.appendChild(s)});const a=n=>{o.classList.toggle("ui-prop__editor--misto",A(n)),A(n)?K(o,B(i)):U(o,n)};return a(e),M(o,a),o.addEventListener("change",()=>{const n=(t.opcoes||[]).find(s=>s&&String(s.id)===o.value);i.registrarAlteracao(r,t.id,n?n.id:o.value),a(i.obterValorAtual(t.id))}),o.addEventListener("keydown",n=>{n.key==="Enter"&&(n.shiftKey&&i.focarEditorAnterior?i.focarEditorAnterior(o):i.focarProximoEditor(o))}),o}function Ie(r,t,e){var o;const i=document.createElement("button");return i.type="button",i.className="ui-prop__btn-acao-inline",i.textContent=t.rotuloAcao||((o=e.obterTexto)==null?void 0:o.call(e,"editarAcao"))||k.editarAcao,i.addEventListener("click",()=>{typeof t.onClickAcao=="function"&&t.onClickAcao(t),e.despacharEventoAcao(t,r)}),i}function Fe(r,t,e,i){const o=document.createElement("input");o.type="text",o.inputMode="decimal",o.autocomplete="off",o.spellcheck=!1,o.className="ui-prop__editor-input ui-prop__editor-input--numero",o.setAttribute("aria-label",String(t.rotulo??t.id)),t.placeholder&&(o.placeholder=t.placeholder);const a=X(t),n=c=>{if(c==null||c===""||A(c))return"";const h=Number(c);return isNaN(h)?String(c):a!==void 0?h.toFixed(a):String(h)},s=c=>{o.value=n(c),Ve(o,t,A(c),B(i))};s(e),M(o,s);let u=null;const l=()=>{o.classList.remove("ui-prop__editor-input--calculando"),o.title="",u&&(u.hidden=!0)},m=c=>{if(!u){if(!o.parentElement)return;u=document.createElement("span"),u.className="ui-prop__previa-calculo",u.setAttribute("aria-hidden","true"),o.parentElement.appendChild(u)}u.textContent=c,u.hidden=!1},d=bt(o);o.addEventListener("focus",()=>{o.classList.remove("ui-prop__editor-input--invalido"),o.select()}),o.addEventListener("animationend",()=>o.classList.remove("ui-prop__editor-input--invalido")),o.addEventListener("input",()=>{o.classList.remove("ui-prop__editor-input--invalido");const c=o.value.trim(),f=!/^[+-]?[0-9]*[.,]?[0-9]*$/.test(c)&&(c.startsWith("=")||/[\+\-\*\/\^\%\(\);]|^[a-zA-Z_π]/.test(c));if(o.classList.toggle("ui-prop__editor-input--calculando",f),f){const g=G(c,t),b=g!==null?`= ${n(g)}`:"= ?";o.title=g!==null?b:"",m(b)}else l()});const p=()=>{l();const c=o.value.trim(),h=i.obterValorAtual(t.id);if(c===n(h))return;if(c===""){if(A(h))return;i.registrarAlteracao(r,t.id,null);return}const f=G(c,t);f!==null?(i.registrarAlteracao(r,t.id,f),s(i.obterValorAtual(t.id))):(s(h),o.classList.add("ui-prop__editor-input--invalido"))};return o.addEventListener("change",p),o.addEventListener("blur",p),o.addEventListener("keydown",c=>{if(!d.tratarTecla(c)){if(c.key==="Enter")p(),c.shiftKey&&i.focarEditorAnterior?i.focarEditorAnterior(o):i.focarProximoEditor(o);else if(c.key==="Escape")c.preventDefault(),c.stopPropagation(),l(),s(i.obterValorAtual(t.id)),o.blur();else if(c.key==="ArrowUp"||c.key==="ArrowDown"){c.preventDefault(),l();const h=G(o.value,t),f=i.obterValorAtual(t.id);if(h===null&&A(f))return;const g=h??(Number(f)||0);let b=Te(t,a);c.shiftKey?b*=10:c.altKey&&a===void 0&&(b*=.1);let v=c.key==="ArrowUp"?g+b:g-b;v=oe(v,t),a!==void 0?v=Number(v.toFixed(a)):v=Math.round(v*1e4)/1e4,i.registrarAlteracao(r,t.id,v),s(v)}}}),o}function qe(r,t,e,i){const o=document.createElement("input");o.type="text",o.className="ui-prop__editor-input",o.setAttribute("aria-label",String(t.rotulo??t.id)),t.placeholder&&(o.placeholder=t.placeholder);const a=s=>{const u=A(s);o.value=u||s==null?"":String(s),Ve(o,t,u,B(i))};a(e),M(o,a),o.addEventListener("focus",()=>{o.select()});const n=()=>{o.value===""&&A(i.obterValorAtual(t.id))||(i.registrarAlteracao(r,t.id,o.value),a(i.obterValorAtual(t.id)))};return o.addEventListener("change",n),o.addEventListener("blur",n),o.addEventListener("keydown",s=>{s.key==="Enter"?(n(),s.shiftKey&&i.focarEditorAnterior?i.focarEditorAnterior(o):i.focarProximoEditor(o)):s.key==="Escape"&&(s.preventDefault(),s.stopPropagation(),a(i.obterValorAtual(t.id)),o.blur())}),o}const $e=(r,t)=>r.toLowerCase()===String(t??"").toLowerCase();function ue(r,t){(Array.isArray(t)?t:[]).forEach(e=>{if(!e||typeof e!="object")return;const i=document.createElement("option");i.value=String(e.id),i.textContent=String(e.rotulo??e.id),r.appendChild(i)})}function He(r,t,e,i){const o=document.createElement("div");o.className="ui-prop__editor-linha-container";const a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("class","ui-prop__linha-amostra-svg"),a.setAttribute("viewBox","0 0 44 12"),a.setAttribute("aria-hidden","true");const n=document.createElementNS("http://www.w3.org/2000/svg","line");n.setAttribute("x1","0"),n.setAttribute("y1","6"),n.setAttribute("x2","44"),n.setAttribute("y2","6");const s=d=>{const p=String(d||"").toLowerCase();p.includes("center")||p.includes("eixo")||p.includes("dashdot")||p.includes("traço-ponto")?n.setAttribute("stroke-dasharray","8,3,2,3"):p.includes("dash")||p.includes("tracej")||p.includes("hidden")?n.setAttribute("stroke-dasharray","6,3"):p.includes("dot")||p.includes("ponto")||p.includes("pontilh")?n.setAttribute("stroke-dasharray","2,3"):n.setAttribute("stroke-dasharray","none")};a.appendChild(n);const u=document.createElement("select");u.className="ui-prop__linha-select",u.setAttribute("aria-label",String(t.rotulo??t.id));const l=t.opcoes&&t.opcoes.length>0?t.opcoes:[{id:"ByLayer",rotulo:"ByLayer"},{id:"ByBlock",rotulo:"ByBlock"},{id:"Continuous",rotulo:"Continuous"},{id:"Dashed",rotulo:"Dashed"},{id:"Hidden",rotulo:"Hidden"},{id:"Center",rotulo:"Center"},{id:"Dotted",rotulo:"Dotted"}];ue(u,l);const m=d=>{const p=A(d);if(o.classList.toggle("ui-prop__editor--misto",p),p){s(""),K(u,B(i));return}s(d),U(u,d,$e)};return m(e),M(o,m),u.addEventListener("change",()=>{const d=l.find(p=>p&&String(p.id)===u.value);i.registrarAlteracao(r,t.id,d?d.id:u.value),m(i.obterValorAtual(t.id))}),u.addEventListener("keydown",d=>{d.key==="Enter"&&(d.shiftKey&&i.focarEditorAnterior?i.focarEditorAnterior(u):i.focarProximoEditor(u))}),o.appendChild(a),o.appendChild(u),o}function Ue(r,t,e,i){const o=document.createElement("div");o.className="ui-prop__editor-espessura-container";const a=document.createElementNS("http://www.w3.org/2000/svg","svg");a.setAttribute("class","ui-prop__espessura-amostra-svg"),a.setAttribute("viewBox","0 0 38 12"),a.setAttribute("aria-hidden","true");const n=document.createElementNS("http://www.w3.org/2000/svg","line");n.setAttribute("x1","0"),n.setAttribute("y1","6"),n.setAttribute("x2","38"),n.setAttribute("y2","6");const s=d=>{const p=parseFloat(String(d).replace(/[^0-9.]/g,""));return isNaN(p)||p<=0?1.5:Math.min(8,Math.max(1,p*8))};a.appendChild(n);const u=document.createElement("select");u.className="ui-prop__espessura-select",u.setAttribute("aria-label",String(t.rotulo??t.id));const l=t.opcoes&&t.opcoes.length>0?t.opcoes:[{id:"ByLayer",rotulo:"ByLayer"},{id:"ByBlock",rotulo:"ByBlock"},{id:"0.00 mm",rotulo:"0.00 mm"},{id:"0.05 mm",rotulo:"0.05 mm"},{id:"0.09 mm",rotulo:"0.09 mm"},{id:"0.13 mm",rotulo:"0.13 mm"},{id:"0.15 mm",rotulo:"0.15 mm"},{id:"0.18 mm",rotulo:"0.18 mm"},{id:"0.20 mm",rotulo:"0.20 mm"},{id:"0.25 mm",rotulo:"0.25 mm"},{id:"0.30 mm",rotulo:"0.30 mm"},{id:"0.35 mm",rotulo:"0.35 mm"},{id:"0.40 mm",rotulo:"0.40 mm"},{id:"0.50 mm",rotulo:"0.50 mm"},{id:"0.60 mm",rotulo:"0.60 mm"},{id:"0.70 mm",rotulo:"0.70 mm"},{id:"1.00 mm",rotulo:"1.00 mm"},{id:"1.40 mm",rotulo:"1.40 mm"},{id:"2.00 mm",rotulo:"2.00 mm"}];ue(u,l);const m=d=>{const p=A(d);o.classList.toggle("ui-prop__editor--misto",p),n.setAttribute("stroke-width",String(s(p?"":d))),p?K(u,B(i)):U(u,d,$e)};return m(e),M(o,m),u.addEventListener("change",()=>{const d=l.find(p=>p&&String(p.id)===u.value);i.registrarAlteracao(r,t.id,d?d.id:u.value),m(i.obterValorAtual(t.id))}),u.addEventListener("keydown",d=>{d.key==="Enter"&&(d.shiftKey&&i.focarEditorAnterior?i.focarEditorAnterior(u):i.focarProximoEditor(u))}),o.appendChild(a),o.appendChild(u),o}const pe=[{nome:"Red",indice:1,hex:"#ff0000"},{nome:"Yellow",indice:2,hex:"#ffff00"},{nome:"Green",indice:3,hex:"#00ff00"},{nome:"Cyan",indice:4,hex:"#00ffff"},{nome:"Blue",indice:5,hex:"#0000ff"},{nome:"Magenta",indice:6,hex:"#ff00ff"},{nome:"White",indice:7,hex:"#ffffff"}],he=/^#([0-9a-f]{3}|[0-9a-f]{6})$/i;function ne(r){const t=String(r??"").trim().toLowerCase(),e=pe.find(i=>String(i.indice)===t||i.nome.toLowerCase()===t);return e?e.nome.toLowerCase():t}function _t(r){const t=ne(r),e=pe.find(i=>i.nome.toLowerCase()===t);return e?e.hex:he.test(t)?t:"#ffffff"}function fe(r){return r.length===4?"#"+r.slice(1).split("").map(t=>t+t).join(""):r}function Ke(r,t,e,i){var m;const o=document.createElement("div");o.className="ui-prop__editor-cor-cad-container";const a=document.createElement("div");a.className="ui-prop__cor-amostra";const n=document.createElement("select");n.className="ui-prop__cor-cad-select",n.setAttribute("aria-label",String(t.rotulo??t.id)),ue(n,[{id:"ByLayer",rotulo:"ByLayer"},{id:"ByBlock",rotulo:"ByBlock"},...pe.map(d=>({id:d.nome,rotulo:`${d.nome} (${d.indice})`}))]);const s=document.createElement("option");s.value="__escolher",s.textContent=((m=i.obterTexto)==null?void 0:m.call(i,"selecionarCor"))||k.selecionarCor,s.setAttribute("data-acao",""),n.appendChild(s);const u=document.createElement("input");u.type="color",u.className="ui-prop__cor-picker-oculto",u.tabIndex=-1,u.setAttribute("aria-hidden","true");const l=d=>{const p=A(d);if(o.classList.toggle("ui-prop__editor--misto",p),a.classList.toggle("ui-prop__cor-amostra--misto",p),p){a.style.backgroundColor="",u.value="#ffffff",K(n,B(i));return}const c=_t(d);a.style.backgroundColor=c,u.value=fe(c),U(n,d,(h,f)=>ne(h)===ne(f),h=>h==null||h===""?"—":String(h))};return l(e),M(o,l),u.addEventListener("input",()=>{a.style.backgroundColor=u.value}),u.addEventListener("change",()=>{i.registrarAlteracao(r,t.id,u.value),l(i.obterValorAtual(t.id))}),n.addEventListener("change",()=>{if(n.value==="__escolher"){l(i.obterValorAtual(t.id)),u.click();return}i.registrarAlteracao(r,t.id,n.value),l(i.obterValorAtual(t.id))}),n.addEventListener("keydown",d=>{d.key==="Enter"&&(d.shiftKey&&i.focarEditorAnterior?i.focarEditorAnterior(n):i.focarProximoEditor(n))}),o.appendChild(a),o.appendChild(n),o.appendChild(u),o}function Et(r){try{const t=document.createElement("canvas").getContext("2d");if(!t)return null;t.fillStyle="#000001",t.fillStyle=r;const e=String(t.fillStyle);return e==="#000001"&&r.toLowerCase()!=="#000001"?null:he.test(e)?fe(e):null}catch{return null}}function Xe(r,t,e,i){const o=document.createElement("div");o.className="ui-prop__editor-cor-container",o.setAttribute("role","button"),o.tabIndex=0;const a=document.createElement("div");a.className="ui-prop__cor-amostra";const n=document.createElement("span");n.className="ui-prop__cor-texto";const s=document.createElement("input");s.type="color",s.className="ui-prop__cor-picker-oculto",s.tabIndex=-1,s.setAttribute("aria-hidden","true");const u=l=>{const m=A(l);if(o.classList.toggle("ui-prop__editor--misto",m),a.classList.toggle("ui-prop__cor-amostra--misto",m),m){const p=B(i);a.style.backgroundColor="",n.textContent=p,s.value="#ffffff",o.setAttribute("aria-label",`${t.rotulo??t.id}: ${p}`);return}const d=typeof l=="string"?he.test(l)?fe(l):l.trim()?Et(l.trim()):null:null;a.style.backgroundColor=l||"#ffffff",n.textContent=t.textoAmostra||String(l||"ByLayer"),s.value=d??"#ffffff",o.setAttribute("aria-label",`${t.rotulo??t.id}: ${l||"ByLayer"}`)};return u(e),M(o,u),s.addEventListener("input",()=>{a.style.backgroundColor=s.value,n.textContent=t.textoAmostra||s.value}),s.addEventListener("change",()=>{i.registrarAlteracao(r,t.id,s.value),u(i.obterValorAtual(t.id))}),o.addEventListener("click",l=>{l.target!==s&&s.click()}),o.addEventListener("keydown",l=>{(l.key===" "||l.key==="Enter")&&(l.preventDefault(),s.click())}),o.appendChild(a),o.appendChild(n),o.appendChild(s),o}function We(r,t,e,i){let o;return t.somenteLeitura||t.tipo==="readonly"?o=Oe(e,i.obterTextoMisto,t,i.obterTexto):t.tipo==="booleano"?o=je(r,t,e,i):t.tipo==="linha"||t.tipo==="linetype"?o=He(r,t,e,i):t.tipo==="espessura"||t.tipo==="lineweight"?o=Ue(r,t,e,i):t.tipo==="cor-cad"?o=Ke(r,t,e,i):t.tipo==="selecao"?o=Re(r,t,e,i):t.tipo==="cor"?o=Xe(r,t,e,i):t.tipo==="acao"?o=Ie(r,t,i):t.tipo==="numero"?o=Fe(r,t,e,i):o=qe(r,t,e,i),o.setAttribute("part","editor"),t.dica&&o.setAttribute("aria-description",t.dica),o}function Ge(r){if(!r.tipoContainerElement)return;const t=(Array.isArray(r.tipos)?r.tipos:[]).filter(o=>!!(o&&typeof o=="object"&&o.id!==void 0&&o.id!==null));if(t.length===0){r.tipoContainerElement.style.display="none",r.tipoContainerElement.innerHTML="";return}r.tipoContainerElement.style.display="flex",r.tipoContainerElement.innerHTML="";const e=o=>{var a;return((a=r.obterTexto)==null?void 0:a.call(r,o))||k[o]},i=t.find(o=>String(o.id)===String(r.tipoSelecionadoId))||t[0];if(r.estiloVisual==="revit"){const o=document.createElement("div");o.className="ui-prop__tipo-revit-card",o.title="Editar tipo de família",o.addEventListener("click",()=>r.onEditarTipo(i));const a=document.createElement("div");a.className="ui-prop__tipo-miniatura";const n=i.iconeSvg?dt.higienizarSvg(i.iconeSvg):null;n?a.appendChild(n):a.innerHTML=`
|
|
2
|
+
<svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
3
|
+
<rect x="3" y="3" width="18" height="18" rx="2"></rect>
|
|
4
|
+
<path d="M3 9h18M9 21V9"></path>
|
|
5
|
+
</svg>
|
|
6
|
+
`;const s=document.createElement("div");s.className="ui-prop__tipo-info";const u=document.createElement("div");u.className="ui-prop__tipo-nome",u.textContent=String(i.rotulo??i.id);const l=document.createElement("div");l.className="ui-prop__tipo-subtexto",l.textContent=i.subtipo||e("tipoFamilia"),s.appendChild(u),s.appendChild(l),o.appendChild(a),o.appendChild(s);const m=document.createElement("div");m.className="ui-prop__tipo-revit-subbarra";const d=document.createElement("select");d.className="ui-prop__tipo-select",d.setAttribute("aria-label","Selecionar tipo de família"),t.forEach(h=>{const f=document.createElement("option");f.value=String(h.id),f.textContent=`${h.rotulo??h.id}${h.subtipo?` : ${h.subtipo}`:""}`,String(h.id)===String(i.id)&&(f.selected=!0),d.appendChild(f)}),d.addEventListener("change",()=>{r.onSelecionarTipo(d.value)});const p=document.createElement("button");p.type="button",p.className="ui-prop__btn-editar-tipo",p.innerHTML=`
|
|
7
|
+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" style="margin-right: 4px; vertical-align: -1px;" aria-hidden="true">
|
|
8
|
+
<rect x="3" y="3" width="12" height="12" rx="1"></rect>
|
|
9
|
+
<rect x="9" y="9" width="12" height="12" rx="1"></rect>
|
|
10
|
+
</svg>
|
|
11
|
+
<span></span>
|
|
12
|
+
`;const c=p.querySelector("span");c&&(c.textContent=e("editarTipo")),p.addEventListener("click",()=>{r.onEditarTipo(i)}),m.appendChild(d),m.appendChild(p),r.tipoContainerElement.appendChild(o),r.tipoContainerElement.appendChild(m)}else{const o=document.createElement("div");o.className="ui-prop__tipo-autocad-bar";const a=document.createElement("select");a.className="ui-prop__tipo-select",a.setAttribute("aria-label","Selecionar tipo de objeto"),t.forEach(m=>{const d=document.createElement("option");d.value=String(m.id),d.textContent=String(m.rotulo??m.id),String(m.id)===String(i.id)&&(d.selected=!0),a.appendChild(d)}),a.addEventListener("change",()=>{r.onSelecionarTipo(a.value)});const n=document.createElement("div");n.className="ui-prop__tipo-autocad-acoes";const s=document.createElement("button");s.type="button",s.className="ui-prop__btn-autocad",s.title="Seleção rápida",s.setAttribute("aria-label","Seleção rápida"),s.innerHTML=`
|
|
13
|
+
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
14
|
+
<polygon points="12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2"></polygon>
|
|
15
|
+
</svg>
|
|
16
|
+
`,s.addEventListener("click",()=>{r.onQuickSelect(i)});const u=document.createElement("button");u.type="button",u.className="ui-prop__btn-autocad",u.title="Selecionar objetos",u.setAttribute("aria-label","Selecionar objetos"),u.innerHTML=`
|
|
17
|
+
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
18
|
+
<circle cx="12" cy="12" r="7"></circle>
|
|
19
|
+
<line x1="12" y1="2" x2="12" y2="7"></line>
|
|
20
|
+
<line x1="12" y1="17" x2="12" y2="22"></line>
|
|
21
|
+
<line x1="2" y1="12" x2="7" y2="12"></line>
|
|
22
|
+
<line x1="17" y1="12" x2="22" y2="12"></line>
|
|
23
|
+
<line x1="12" y1="9" x2="12" y2="15" stroke-width="2.5"></line>
|
|
24
|
+
<line x1="9" y1="12" x2="15" y2="12" stroke-width="2.5"></line>
|
|
25
|
+
</svg>
|
|
26
|
+
`,u.addEventListener("click",()=>{r.onSelectObjects(i)});const l=document.createElement("button");l.type="button",l.className="ui-prop__btn-autocad",l.title="Calculadora rápida",l.setAttribute("aria-label","Calculadora rápida"),l.innerHTML=`
|
|
27
|
+
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
28
|
+
<rect x="4" y="2" width="16" height="20" rx="2"></rect>
|
|
29
|
+
<line x1="8" y1="6" x2="16" y2="6"></line>
|
|
30
|
+
<circle cx="8" cy="11" r="1" fill="currentColor"></circle>
|
|
31
|
+
<circle cx="12" cy="11" r="1" fill="currentColor"></circle>
|
|
32
|
+
<circle cx="16" cy="11" r="1" fill="currentColor"></circle>
|
|
33
|
+
<circle cx="8" cy="15" r="1" fill="currentColor"></circle>
|
|
34
|
+
<circle cx="12" cy="15" r="1" fill="currentColor"></circle>
|
|
35
|
+
<circle cx="16" cy="15" r="1" fill="currentColor"></circle>
|
|
36
|
+
</svg>
|
|
37
|
+
`,l.addEventListener("click",()=>{r.onCalculadora(i)}),n.appendChild(s),n.appendChild(u),n.appendChild(l),o.appendChild(a),o.appendChild(n),r.tipoContainerElement.appendChild(o)}}function Ye(r){let t=45;function e(a){if(!Number.isFinite(a))return t;const n=Math.max(20,Math.min(65,a));return t=n,r.hostElement.style.setProperty("--ui-prop-rotulo-largura",`${n}%`),r.splitterElement&&(r.splitterElement.style.left=`calc(${n}% - 4px)`,r.splitterElement.setAttribute("aria-valuenow",String(Math.round(n)))),n}function i(a){r.onLarguraAlterada(a),r.hostElement.dispatchEvent(new CustomEvent("ui-splitter-resize",{bubbles:!0,composed:!0,detail:{larguraPorcentagem:a}}))}function o(){if(!r.splitterElement||!r.corpoElement)return;r.splitterListeners.cleanup();let a=!1;const n=s=>{if(s.button!==0)return;s.preventDefault(),s.stopPropagation(),a=!0,r.splitterElement.classList.add("ui-prop__splitter--ativo");try{r.splitterElement.setPointerCapture(s.pointerId)}catch{}const u=r.corpoElement.getBoundingClientRect(),l=d=>{if(!a)return;const p=u.width;if(p<=0)return;const c=d.clientX-u.left;let b=Math.max(80,Math.min(p-130,c))/p*100;b=Math.max(20,Math.min(65,b)),e(b)},m=d=>{if(a){a=!1,r.splitterElement.classList.remove("ui-prop__splitter--ativo");try{r.splitterElement.hasPointerCapture(d.pointerId)&&r.splitterElement.releasePointerCapture(d.pointerId)}catch{}r.splitterElement.removeEventListener("pointermove",l),r.splitterElement.removeEventListener("pointerup",m),r.splitterElement.removeEventListener("pointercancel",m),i(t)}};r.splitterElement.addEventListener("pointermove",l),r.splitterElement.addEventListener("pointerup",m),r.splitterElement.addEventListener("pointercancel",m)};r.splitterListeners.add(r.splitterElement,"pointerdown",n),r.splitterListeners.add(r.splitterElement,"dblclick",()=>{const s=e(45);i(s)}),r.splitterListeners.add(r.splitterElement,"keydown",s=>{const u=s.shiftKey?5:2;let l=null;if(s.key==="ArrowLeft"?l=t-u:s.key==="ArrowRight"?l=t+u:s.key==="Home"?l=20:s.key==="End"?l=65:s.key==="Enter"&&(l=45),l!==null){s.preventDefault(),s.stopPropagation();const m=e(l);i(m)}})}return{init:o,definirLarguraRotulo:e}}const yt=`:host{display:flex;flex-direction:column;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:var(--ui-tamanho-corpo-sm, 12px);color:var(--ui-cor-texto, #e1e1e6);background:var(--ui-degrade-interno, var(--ui-prop-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417))));border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:var(--ui-raio-borda, 4px);overflow:hidden;width:100%;max-width:100%;height:100%;min-height:200px;-webkit-user-select:none;user-select:none;--ui-prop-altura-linha: 22px;--ui-prop-rotulo-largura: 45%}:host([densidade="compacta"]){--ui-prop-altura-linha: 19px;font-size:var(--ui-prop-fonte-compacta, 10.5px)}:host([densidade="ultracompacta"]){--ui-prop-altura-linha: 17px;font-size:var(--ui-prop-fonte-ultracompacta, 10px)}:host([densidade="relaxada"]){--ui-prop-altura-linha: 28px;font-size:var(--ui-prop-fonte-relaxada, 12px)}:host([colapsado]){width:var(--ui-prop-largura-colapsada, 32px)!important;min-width:var(--ui-prop-largura-colapsada, 32px)!important;max-width:var(--ui-prop-largura-colapsada, 32px)!important;height:100%!important;cursor:pointer;transition:width .2s cubic-bezier(.4,0,.2,1)}:host([colapsado]) .ui-prop__header,:host([colapsado]) .ui-prop__tipo-seletor-container,:host([colapsado]) .ui-prop__filtro-container,:host([colapsado]) .ui-prop__corpo-wrapper,:host([colapsado]) .ui-prop__footer,:host([colapsado]) .ui-prop__resizer-canto{display:none!important}:host([colapsado]) .ui-prop__faixa-estreita{display:flex!important;flex-direction:column;align-items:center;width:100%;height:100%;padding:8px 0;gap:10px;box-sizing:border-box;background:var(--ui-prop-elevado-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #18181d)));-webkit-user-select:none;user-select:none;cursor:pointer}.ui-prop__faixa-estreita{display:none}.ui-prop__faixa-icone{display:flex;align-items:center;justify-content:center;color:var(--ui-cor-destaque, #00E08A);flex-shrink:0}.ui-prop__faixa-btn-expandir{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 5%,transparent);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:3px;color:var(--ui-cor-texto, #e1e1e6);cursor:pointer;padding:0;transition:all .15s ease;flex-shrink:0}.ui-prop__faixa-btn-expandir:hover{background:var(--ui-cor-destaque, #00E08A);color:var(--ui-cor-texto-sobre-primaria, #000000);border-color:var(--ui-cor-destaque, #00E08A)}.ui-prop__faixa-texto{writing-mode:vertical-rl;text-orientation:mixed;transform:rotate(180deg);font-size:10px;font-weight:600;text-transform:uppercase;letter-spacing:2px;color:var(--ui-cor-texto-secundario, #888899);margin-top:8px;flex:1;pointer-events:none}:host([colapsado]):hover .ui-prop__faixa-texto{color:var(--ui-cor-texto, #ffffff)}:host([flutuante]){position:fixed!important;z-index:var(--ui-prop-flutuante-z, var(--ui-z-docked-bar, 600));box-shadow:var(--ui-prop-flutuante-sombra, var(--ui-sombra-lg, 0 16px 48px rgba(0, 0, 0, .75)), 0 0 0 1px color-mix(in srgb, var(--ui-cor-texto, #e1e1e6) 14%, transparent), 0 6px 14px rgba(0, 0, 0, .5));border-radius:var(--ui-prop-flutuante-raio, 6px);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);overflow:hidden;max-width:95vw;max-height:95vh;min-width:220px;min-height:200px}:host([flutuante]) .ui-prop__header{cursor:grab;-webkit-user-select:none;user-select:none}:host([flutuante].arrastando) .ui-prop__header{cursor:grabbing!important}.ui-prop__resizer-canto{display:none}:host([flutuante]) .ui-prop__resizer-canto{display:block;position:absolute;bottom:0;right:0;width:14px;height:14px;cursor:nwse-resize;z-index:50;background:linear-gradient(135deg,transparent 50%,color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 25%,transparent) 50%,color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 25%,transparent) 65%,transparent 65%,transparent 80%,color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 25%,transparent) 80%);pointer-events:auto}.ui-prop__btn-icone--ativo{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 18%,transparent)!important;color:var(--ui-cor-destaque, #00E08A)!important}.ui-prop__container{display:flex;flex-direction:column;width:100%;height:100%;min-height:0;flex:1;overflow:hidden;position:relative;box-sizing:border-box;background:var(--ui-degrade-interno, var(--ui-prop-container-fundo, transparent))}.ui-prop__header{display:flex;align-items:center;justify-content:space-between;height:22px;min-height:22px;padding:0 8px;background:var(--ui-prop-elevado-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1a1a1e)));border-bottom:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));flex-shrink:0;box-sizing:border-box}:host([densidade="compacta"]) .ui-prop__header{height:20px;min-height:20px;padding:0 6px}:host([densidade="ultracompacta"]) .ui-prop__header{height:18px;min-height:18px;padding:0 5px}.ui-prop__header-titulo{display:flex;align-items:center;gap:5px;font-size:10.5px;font-weight:600;color:var(--ui-cor-texto, #ffffff);text-transform:uppercase;letter-spacing:.4px}:host([densidade="compacta"]) .ui-prop__header-titulo{font-size:10px;gap:4px}:host([densidade="ultracompacta"]) .ui-prop__header-titulo{font-size:9.5px;gap:3px}.ui-prop__header-icone{display:flex;align-items:center;color:var(--ui-cor-destaque, #00E08A)}.ui-prop__header-icone svg{width:12px;height:12px}:host([densidade="ultracompacta"]) .ui-prop__header-icone svg{width:10px;height:10px}.ui-prop__header-acoes{display:flex;align-items:center;gap:2px}.ui-prop__btn-icone{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;background:transparent;border:none;border-radius:2px;color:var(--ui-cor-texto-secundario, #888899);cursor:pointer;transition:all .15s ease;padding:0}.ui-prop__btn-icone:hover{background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08));color:var(--ui-cor-texto, #ffffff)}:host([densidade="compacta"]) .ui-prop__btn-icone{width:17px;height:17px}:host([densidade="ultracompacta"]) .ui-prop__btn-icone{width:16px;height:16px}.ui-prop__tipo-seletor-container{padding:3px 6px;background:var(--ui-prop-secao-fundo, var(--ui-cor-superficie, #141417));border-bottom:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));display:flex;flex-direction:column;gap:3px;flex-shrink:0;box-sizing:border-box}:host([densidade="compacta"]) .ui-prop__tipo-seletor-container{padding:2px 5px;gap:2px}:host([densidade="ultracompacta"]) .ui-prop__tipo-seletor-container{padding:1px 4px;gap:1px}.ui-prop__tipo-revit-card{display:flex;align-items:center;gap:10px;background:var(--ui-prop-card-fundo, var(--ui-fundo-card, var(--ui-cor-fundo-card, #18181c)));border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:var(--ui-raio-sm, 4px);padding:6px 8px;cursor:pointer;transition:border-color .15s ease}.ui-prop__tipo-revit-card:hover{border-color:var(--ui-cor-destaque, #00E08A)}.ui-prop__tipo-miniatura{width:32px;height:32px;border-radius:3px;background:var(--ui-cor-fundo-elevado, #24242a);display:flex;align-items:center;justify-content:center;color:var(--ui-cor-destaque, #00E08A);flex-shrink:0}.ui-prop__tipo-info{display:flex;flex-direction:column;flex:1;min-width:0}.ui-prop__tipo-nome{font-weight:600;font-size:12px;color:var(--ui-cor-texto, #ffffff);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ui-prop__tipo-subtexto{font-size:11px;color:var(--ui-cor-texto-secundario, #888899);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.ui-prop__tipo-revit-subbarra{display:flex;align-items:center;gap:6px}.ui-prop__tipo-select{flex:1;min-width:0;width:0;height:20px;--_chevron: url("data:image/svg+xml,%3Csvg width='8' height='5' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888899' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");color:var(--ui-cor-texto, #ffffff);border:none;border-radius:2px;padding:0 16px 0 2px;font-size:10.5px;font-weight:500;cursor:pointer;outline:none;appearance:none;-webkit-appearance:none;-moz-appearance:none;background:var(--_chevron) right 4px center / 8px 5px no-repeat,transparent;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;box-sizing:border-box;transition:background-color .15s ease,color .15s ease}.ui-prop__tipo-select:hover{background:var(--_chevron) right 4px center / 8px 5px no-repeat,color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 5%,transparent);color:var(--ui-cor-texto, #ffffff)}.ui-prop__tipo-select:focus{background:var(--_chevron) right 4px center / 8px 5px no-repeat,color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 8%,transparent);color:var(--ui-cor-destaque, #00E08A)}:host([densidade="compacta"]) .ui-prop__tipo-select{height:18px;font-size:10px;padding:0 14px 0 2px}:host([densidade="ultracompacta"]) .ui-prop__tipo-select{height:16px;font-size:9.5px;padding:0 12px 0 2px}.ui-prop__btn-editar-tipo{height:20px;padding:0 6px;background:transparent;border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:2px;color:var(--ui-cor-texto, #ffffff);font-size:10.5px;font-weight:500;cursor:pointer;white-space:nowrap;transition:all .15s ease}:host([densidade="compacta"]) .ui-prop__btn-editar-tipo{height:18px;font-size:10px}:host([densidade="ultracompacta"]) .ui-prop__btn-editar-tipo{height:16px;font-size:9.5px}.ui-prop__btn-editar-tipo:hover{background:var(--ui-cor-botao-secundario-hover, #2a2a34);border-color:var(--ui-cor-destaque, #00E08A)}.ui-prop__tipo-autocad-bar{display:flex;align-items:center;gap:2px;width:100%;min-width:0;box-sizing:border-box;background:transparent}.ui-prop__tipo-autocad-acoes{display:flex;align-items:center;gap:1px;flex-shrink:0;border-left:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));padding-left:3px;margin-left:1px}.ui-prop__btn-autocad{display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;background:transparent;border:none;border-radius:2px;color:var(--ui-cor-texto-secundario, #888899);cursor:pointer;padding:0;transition:all .15s ease}:host([densidade="compacta"]) .ui-prop__btn-autocad{width:18px;height:18px}:host([densidade="ultracompacta"]) .ui-prop__btn-autocad{width:16px;height:16px}.ui-prop__btn-autocad:hover{background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .1));color:var(--ui-cor-destaque, #00E08A)}.ui-prop__btn-autocad:active{transform:scale(.92);background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 15%,transparent)}.ui-prop__filtro-container{display:flex;align-items:center;padding:4px 8px;background:var(--ui-prop-filtro-fundo, var(--ui-cor-fundo, #0b0b0d));border-bottom:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));gap:6px;flex-shrink:0}.ui-prop__filtro-icone{color:var(--ui-cor-texto-secundario, #888899);flex-shrink:0}.ui-prop__filtro-input{flex:1;background:transparent;border:none;outline:none;font-size:11px;color:var(--ui-cor-texto, #e1e1e6);padding:3px 0}.ui-prop__filtro-limpar{background:transparent;border:none;color:var(--ui-cor-texto-secundario, #888899);cursor:pointer;font-size:11px;padding:0 4px;display:inline-flex;align-items:center;justify-content:center;border-radius:2px}.ui-prop__filtro-limpar:hover{color:var(--ui-cor-texto, #ffffff);background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-prop__filtro-input::placeholder{color:var(--ui-cor-texto-secundario, #666677)}.ui-prop__corpo-wrapper{position:relative;flex:1;min-height:0;width:100%;overflow:hidden;display:flex;flex-direction:column}.ui-prop__corpo{flex:1;min-height:0;width:100%;overflow-y:auto;overflow-x:hidden;background:var(--ui-prop-secao-fundo, var(--ui-cor-superficie, #141417));position:relative;scrollbar-width:thin;scrollbar-color:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 18%,transparent) var(--ui-cor-fundo, #0b0b0d)}.ui-prop__corpo::-webkit-scrollbar{width:8px}.ui-prop__corpo::-webkit-scrollbar-track{background:var(--ui-cor-fundo, #0b0b0d)}.ui-prop__corpo::-webkit-scrollbar-thumb{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 18%,transparent);border-radius:var(--ui-raio-sm, 4px)}.ui-prop__corpo::-webkit-scrollbar-thumb:hover{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 30%,transparent)}.ui-prop__categoria{border-bottom:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .1))}.ui-prop__categoria-header{position:relative;z-index:25;display:flex;align-items:center;justify-content:space-between;height:21px;padding:0 6px;background:var(--ui-prop-categoria-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #18181d)));cursor:pointer;-webkit-user-select:none;user-select:none;font-weight:600;font-size:10.5px;color:var(--ui-cor-texto, #ffffff);border-top:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .05));transition:background-color .15s ease;box-sizing:border-box}:host([densidade="compacta"]) .ui-prop__categoria-header{height:19px;font-size:10px;padding:0 5px}:host([densidade="ultracompacta"]) .ui-prop__categoria-header{height:17px;font-size:9.5px;padding:0 4px}.ui-prop__categoria-header:focus-visible{outline:1.5px solid var(--ui-cor-destaque, #00E08A);outline-offset:-1.5px}.ui-prop__categoria-header:hover{background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .06))}.ui-prop__categoria-titulo-bloco{display:flex;align-items:center;gap:6px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-prop__categoria-seta{display:inline-flex;align-items:center;justify-content:center;font-size:9px;width:12px;height:12px;color:var(--ui-cor-texto-secundario, #888899);transition:transform .15s ease}.ui-prop__categoria--aberta .ui-prop__categoria-seta{transform:rotate(90deg)}.ui-prop__categoria-contador{font-size:10px;font-weight:400;color:var(--ui-cor-texto-secundario, #888899)}.ui-prop__categoria-conteudo{display:none}.ui-prop__categoria--aberta .ui-prop__categoria-conteudo{display:block}.ui-prop__linha{display:flex;align-items:stretch;min-height:var(--ui-prop-altura-linha, 24px);border-bottom:1px dotted var(--ui-cor-borda, rgba(255, 255, 255, .08));box-sizing:border-box;position:relative;z-index:1;transition:background-color .1s ease}.ui-prop__linha:hover{background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .04))}.ui-prop__linha:focus-within{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 8%,transparent)}.ui-prop__linha:focus-within .ui-prop__col-rotulo{color:var(--ui-cor-texto, #ffffff);font-weight:500}.ui-prop__linha--modificada{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 5%,transparent)}.ui-prop__col-rotulo{width:var(--ui-prop-rotulo-largura, 45%);padding:1px 4px 1px 8px;display:flex;align-items:center;color:var(--ui-cor-texto-secundario, #9999aa);border-right:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;position:relative;flex-shrink:0;box-sizing:border-box}:host([densidade="compacta"]) .ui-prop__col-rotulo{padding:0 4px 0 6px;font-size:10px}:host([densidade="ultracompacta"]) .ui-prop__col-rotulo{padding:0 3px 0 5px;font-size:9.5px}.ui-prop__col-rotulo span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-prop__col-rotulo--scrub{cursor:ew-resize;-webkit-user-select:none;user-select:none;transition:color .15s ease,background-color .15s ease}.ui-prop__col-rotulo--scrub:hover{color:var(--ui-cor-destaque, #00E08A);background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 5%,transparent)}.ui-prop__col-rotulo--arrastando{color:var(--ui-cor-texto-sobre-primaria, #000000)!important;background:var(--ui-cor-destaque, #00E08A)!important;font-weight:600;cursor:ew-resize!important}.ui-prop__col-rotulo--arrastando span{color:var(--ui-cor-texto-sobre-primaria, #000000)!important}.ui-prop__splitter{position:absolute;top:0;bottom:0;min-height:100%;left:calc(var(--ui-prop-rotulo-largura, 45%) - 4px);width:8px;cursor:col-resize;z-index:30;touch-action:none;-webkit-user-select:none;user-select:none;display:flex;align-items:center;justify-content:center}.ui-prop__splitter:after{content:"";position:absolute;top:0;bottom:0;left:3px;width:2px;background:transparent;pointer-events:none;transition:background-color .15s ease,box-shadow .15s ease}.ui-prop__splitter:hover:after,.ui-prop__splitter--ativo:after{background:var(--ui-cor-destaque, #00E08A);box-shadow:0 0 6px color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 50%,transparent)}.ui-prop__splitter:focus-visible{outline:none}.ui-prop__splitter:focus-visible:after{background:var(--ui-cor-destaque, #00E08A);box-shadow:0 0 6px color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 50%,transparent)}.ui-prop__splitter--ativo{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 8%,transparent)}.ui-prop__col-valor{width:calc(100% - var(--ui-prop-rotulo-largura, 45%));flex:1 1 0px;min-width:0!important;display:flex;align-items:stretch;padding:0;overflow:hidden;box-sizing:border-box;position:relative;transition:background-color .1s ease,box-shadow .1s ease}.ui-prop__col-valor:focus-within{background:var(--ui-cor-fundo, #0b0b0d);box-shadow:inset 0 0 0 1px var(--ui-cor-destaque, #00E08A)}.ui-prop__editor-input{width:100%;min-width:0;height:100%;min-height:var(--ui-prop-altura-linha, 24px);background:transparent;border:none;border-radius:0;color:var(--ui-cor-texto, #ffffff);font-family:inherit;font-size:11px;padding:0 8px;outline:none;box-sizing:border-box;transition:background-color .1s ease}.ui-prop__editor-input:hover{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 3%,transparent)}.ui-prop__editor-input--numero{text-align:right;font-family:var(--ui-fonte-codigo, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);font-variant-numeric:tabular-nums}.ui-prop__editor-input--calculando{color:var(--ui-cor-destaque, #00E08A)!important;font-weight:500}.ui-prop__col-valor:has(.ui-prop__editor-input--calculando){background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 8%,transparent)!important;box-shadow:inset 0 0 0 1.5px var(--ui-cor-destaque, #00E08A)!important}.ui-prop__editor-select{flex:1 1 0px;min-width:0!important;width:0!important;max-width:100%;height:100%;min-height:var(--ui-prop-altura-linha, 24px);--_chevron: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888899' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");color:var(--ui-cor-texto, #ffffff);border:none;border-radius:0;font-size:11px;padding:0 20px 0 8px;outline:none;cursor:pointer;box-sizing:border-box;appearance:none;-webkit-appearance:none;-moz-appearance:none;background:var(--_chevron) right 6px center / 8px 5px no-repeat,transparent;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;transition:background-color .1s ease}.ui-prop__editor-select:hover{background:var(--_chevron) right 6px center / 8px 5px no-repeat,color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 3%,transparent)}.ui-prop__editor-select option{background:var(--ui-cor-fundo-elevado, #18181c);color:var(--ui-cor-texto, #ffffff)}.ui-prop__editor-cor-container{display:flex;align-items:center;gap:6px;width:100%;max-width:100%;min-width:0!important;height:100%;min-height:var(--ui-prop-altura-linha, 24px);cursor:pointer;padding:0 20px 0 8px;box-sizing:border-box;position:relative;border:none;border-radius:0;--_chevron: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888899' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");background:var(--_chevron) right 6px center / 8px 5px no-repeat,transparent;transition:background-color .1s ease}.ui-prop__editor-cor-container:hover{background:var(--_chevron) right 6px center / 8px 5px no-repeat,color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 4%,transparent)}.ui-prop__cor-amostra{width:13px;height:13px;border-radius:2px;border:1px solid color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 30%,transparent);flex-shrink:0;box-sizing:border-box}.ui-prop__cor-texto{flex:1 1 0px;min-width:0!important;width:0!important;font-size:11px;color:var(--ui-cor-texto, #ffffff);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-prop__cor-picker-oculto{position:absolute;opacity:0;pointer-events:none;width:0;height:0}.ui-prop__editor-linha-container{display:flex;align-items:center;gap:6px;width:100%;max-width:100%;min-width:0!important;height:100%;min-height:var(--ui-prop-altura-linha, 24px);padding:0 0 0 8px;box-sizing:border-box;overflow:hidden;border:none;border-radius:0}.ui-prop__linha-amostra-svg{width:24px;height:10px;flex-shrink:0}.ui-prop__linha-amostra-svg line{stroke:var(--ui-cor-texto, #e1e1e6);stroke-width:1.5}.ui-prop__linha-select{flex:1 1 0px;min-width:0!important;width:0!important;max-width:100%;height:100%;--_chevron: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888899' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");color:var(--ui-cor-texto, #ffffff);border:none;border-radius:0;font-size:11px;padding:0 20px 0 4px;outline:none;cursor:pointer;box-sizing:border-box;appearance:none;-webkit-appearance:none;-moz-appearance:none;background:var(--_chevron) right 6px center / 8px 5px no-repeat,transparent;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ui-prop__linha-select:hover{background:var(--_chevron) right 6px center / 8px 5px no-repeat,color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 3%,transparent)}.ui-prop__linha-select option{background:var(--ui-cor-fundo-elevado, #18181c);color:var(--ui-cor-texto, #ffffff)}.ui-prop__editor-espessura-container{display:flex;align-items:center;gap:6px;width:100%;max-width:100%;min-width:0!important;height:100%;min-height:var(--ui-prop-altura-linha, 24px);padding:0 0 0 8px;box-sizing:border-box;overflow:hidden;border:none;border-radius:0}.ui-prop__espessura-amostra-svg{width:20px;height:10px;flex-shrink:0}.ui-prop__espessura-amostra-svg line{stroke:var(--ui-cor-texto, #e1e1e6)}.ui-prop__espessura-select{flex:1 1 0px;min-width:0!important;width:0!important;max-width:100%;height:100%;--_chevron: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888899' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");color:var(--ui-cor-texto, #ffffff);border:none;border-radius:0;font-size:11px;padding:0 20px 0 4px;outline:none;cursor:pointer;box-sizing:border-box;appearance:none;-webkit-appearance:none;-moz-appearance:none;background:var(--_chevron) right 6px center / 8px 5px no-repeat,transparent;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ui-prop__espessura-select:hover{background:var(--_chevron) right 6px center / 8px 5px no-repeat,color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 3%,transparent)}.ui-prop__espessura-select option{background:var(--ui-cor-fundo-elevado, #18181c);color:var(--ui-cor-texto, #ffffff)}.ui-prop__editor-cor-cad-container{display:flex;align-items:center;gap:6px;width:100%;max-width:100%;min-width:0!important;height:100%;min-height:var(--ui-prop-altura-linha, 24px);padding:0 0 0 8px;box-sizing:border-box;overflow:hidden;border:none;border-radius:0}.ui-prop__cor-cad-select{flex:1 1 0px;min-width:0!important;width:0!important;max-width:100%;height:100%;--_chevron: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1L5 5L9 1' stroke='%23888899' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");color:var(--ui-cor-texto, #ffffff);border:none;border-radius:0;font-size:11px;padding:0 20px 0 4px;outline:none;cursor:pointer;box-sizing:border-box;appearance:none;-webkit-appearance:none;-moz-appearance:none;background:var(--_chevron) right 6px center / 8px 5px no-repeat,transparent;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ui-prop__cor-cad-select:hover{background:var(--_chevron) right 6px center / 8px 5px no-repeat,color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 3%,transparent)}.ui-prop__cor-cad-select option{background:var(--ui-cor-fundo-elevado, #18181c);color:var(--ui-cor-texto, #ffffff)}.ui-prop__editor-booleano{display:flex;align-items:center;gap:6px;width:100%;height:100%;min-height:var(--ui-prop-altura-linha, 24px);cursor:pointer;padding:0 8px;box-sizing:border-box;-webkit-user-select:none;user-select:none}.ui-prop__editor-booleano:hover{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 3%,transparent)}.ui-prop__checkbox-custom{width:13px;height:13px;border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .25));border-radius:2px;background:var(--ui-cor-fundo, #0b0b0d);display:flex;align-items:center;justify-content:center;transition:all .15s ease}.ui-prop__checkbox-custom--marcado{background:var(--ui-cor-destaque, #00E08A);border-color:var(--ui-cor-destaque, #00E08A);color:var(--ui-cor-texto-sobre-primaria, #000000)}.ui-prop__booleano-rotulo{font-size:11px;color:var(--ui-cor-texto, #ffffff)}.ui-prop__btn-acao-inline{width:100%;height:100%;min-height:var(--ui-prop-altura-linha, 24px);padding:0 8px;background:transparent;border:none;border-radius:0;color:var(--ui-cor-texto, #ffffff);font-size:11px;font-weight:500;cursor:pointer;white-space:nowrap;text-align:left;transition:all .15s ease;box-sizing:border-box}.ui-prop__btn-acao-inline:hover{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 4%,transparent);color:var(--ui-cor-destaque, #00E08A)}.ui-prop__valor-readonly{display:flex;align-items:center;width:100%;height:100%;min-height:var(--ui-prop-altura-linha, 24px);font-size:11px;color:var(--ui-cor-texto-secundario, #777788);padding:0 8px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;box-sizing:border-box;-webkit-user-select:text;user-select:text}.ui-prop__valor-readonly--numero{justify-content:flex-end;font-family:var(--ui-fonte-codigo, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);font-variant-numeric:tabular-nums}.ui-prop__unidade-sufixo{display:flex;align-items:center;font-size:10px;color:var(--ui-cor-texto-secundario, #777788);padding-right:8px;flex-shrink:0;-webkit-user-select:none;user-select:none}.ui-prop__vazio{padding:24px 16px;text-align:center;color:var(--ui-cor-texto-secundario, #888899);font-size:12px}.ui-prop__footer{display:flex;align-items:center;justify-content:space-between;padding:6px 10px;background:var(--ui-prop-elevado-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #18181c)));border-top:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .1));flex-shrink:0}.ui-prop__link-ajuda{font-size:11px;color:var(--ui-cor-destaque, #00E08A);text-decoration:none;cursor:pointer}.ui-prop__link-ajuda:hover{text-decoration:underline}.ui-prop__footer-botoes{display:flex;gap:6px}.ui-prop__btn-aplicar{height:24px;padding:0 12px;background:var(--ui-cor-destaque, #00E08A);color:var(--ui-cor-texto-sobre-primaria, #000000);border:none;border-radius:3px;font-size:11px;font-weight:600;cursor:pointer;transition:all .15s ease}.ui-prop__btn-aplicar:disabled{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 10%,transparent);color:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 30%,transparent);cursor:not-allowed}.ui-prop__btn-desfazer{height:24px;padding:0 8px;background:transparent;color:var(--ui-cor-texto-secundario, #888899);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:3px;font-size:11px;cursor:pointer;transition:all .15s ease}.ui-prop__btn-desfazer:hover:not(:disabled){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08));color:var(--ui-cor-texto, #ffffff)}.ui-prop__btn-desfazer:disabled{opacity:.4;cursor:not-allowed}@media (max-width: 640px){:host{--ui-prop-altura-linha: 28px;font-size:13px}.ui-prop__btn-icone{min-width:28px;min-height:28px}.ui-prop__footer-botoes{gap:8px}.ui-prop__btn-aplicar,.ui-prop__btn-desfazer{height:30px;font-size:12px;padding:0 12px;touch-action:manipulation;-webkit-tap-highlight-color:transparent}.ui-prop__editor-input,.ui-prop__editor-select{touch-action:manipulation;font-size:14px}}.ui-prop__editor--misto,.ui-prop__editor--misto .ui-prop__booleano-rotulo,.ui-prop__editor--misto .ui-prop__cor-texto,.ui-prop__editor--misto select,select.ui-prop__editor--misto{font-style:italic;color:var(--ui-prop-misto-cor, var(--ui-cor-texto-secundario, #a0a0ab))}.ui-prop__editor-input.ui-prop__editor--misto::placeholder{font-style:italic;color:var(--ui-prop-misto-cor, var(--ui-cor-texto-secundario, #a0a0ab));opacity:1}.ui-prop__editor--misto option:not([data-misto]),select.ui-prop__editor--misto option:not([data-misto]){font-style:normal;color:var(--ui-cor-texto, #ffffff)}.ui-prop__editor--misto svg{opacity:.35}.ui-prop__checkbox-custom--misto{border-color:var(--ui-prop-misto-cor, var(--ui-cor-texto-secundario, #a0a0ab));color:var(--ui-prop-misto-cor, var(--ui-cor-texto-secundario, #a0a0ab));font-style:normal}.ui-prop__cor-amostra--misto{background:linear-gradient(to top right,transparent calc(50% - 1px),var(--ui-prop-misto-cor, var(--ui-cor-texto-secundario, #a0a0ab)) 50%,transparent calc(50% + 1px))}.ui-prop__linha--modificada .ui-prop__col-rotulo{box-shadow:inset 2px 0 0 var(--ui-cor-destaque, #00E08A)}.ui-prop__btn-reverter{display:none;margin-left:auto;flex-shrink:0;align-items:center;justify-content:center;width:16px;height:16px;padding:0;border:none;border-radius:var(--ui-raio-sm, 3px);background:transparent;color:var(--ui-cor-destaque, #00E08A);font-size:11px;line-height:1;cursor:pointer}.ui-prop__linha--modificada .ui-prop__btn-reverter{display:inline-flex}.ui-prop__btn-reverter:hover{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 15%,transparent)}.ui-prop__btn-reverter:focus-visible{outline:1px solid var(--ui-cor-destaque, #00E08A);outline-offset:-1px}.ui-prop__previa-calculo{position:absolute;left:6px;top:50%;transform:translateY(-50%);pointer-events:none;font-size:10px;font-family:var(--ui-fonte-codigo, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);font-variant-numeric:tabular-nums;color:var(--ui-cor-texto-secundario, #9696a6);white-space:nowrap}.ui-prop__previa-calculo[hidden]{display:none}.ui-prop__editor-input--invalido{animation:ui-prop-invalido .6s ease}.ui-prop__col-valor:has(.ui-prop__editor-input--invalido){box-shadow:inset 0 0 0 1px var(--ui-cor-texto-erro, #ff5555)}@keyframes ui-prop-invalido{0%,60%{color:var(--ui-cor-texto-erro, #ff5555)}to{color:inherit}}@media (prefers-reduced-motion: reduce){.ui-prop__editor-input--invalido{animation-duration:.01ms}}:host(.degrade),:host(.gradiente),:host([data-degrade]:not([data-degrade="false"])),:host([degrade]:not([degrade="false"])),:host([gradiente]:not([gradiente="false"])),:host([gradient]:not([gradient="false"])),.ui-prop__container[data-degrade]:not([data-degrade=false]){--ui-prop-fundo: var(--ui-gradiente-superficie);--ui-prop-container-fundo: var(--ui-gradiente-superficie);--ui-prop-elevado-fundo: var(--ui-gradiente-elevado);--ui-prop-card-fundo: var(--ui-gradiente-card);--ui-prop-secao-fundo: transparent;--ui-prop-filtro-fundo: color-mix(in srgb, var(--ui-cor-fundo, #0b0b0d) 72%, transparent);--ui-prop-categoria-fundo: color-mix(in srgb, var(--ui-cor-texto, #e1e1e6) 4%, transparent)}.ui-prop__ac{position:absolute;z-index:5;max-width:100%;box-sizing:border-box;background:var(--ui-prop-ac-fundo, var(--ui-cor-fundo-elevado, #1a1a1e));color:var(--ui-cor-texto, #e1e1e6);border:1px solid var(--ui-cor-destaque, #00E08A);border-radius:var(--ui-raio-borda, 4px);box-shadow:var(--ui-sombra-md, 0 6px 18px rgba(0, 0, 0, .5));font-size:11px;overflow:hidden}.ui-prop__ac-item{display:flex;gap:6px;align-items:baseline;padding:3px 8px;cursor:pointer;font-family:var(--ui-fonte-codigo, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace)}.ui-prop__ac-item--ativo{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 22%,transparent)}.ui-prop__ac-nome{font-weight:600;color:var(--ui-cor-destaque, #00E08A)}.ui-prop__ac-assinatura{color:var(--ui-cor-texto-secundario, #9696a6)}.ui-prop__ac-dica{padding:4px 8px;border-top:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));color:var(--ui-cor-texto-secundario, #9696a6);font-size:10px;line-height:1.3;white-space:normal;-webkit-user-select:none;user-select:none}`;function wt(){return`
|
|
38
|
+
<style>${yt}</style>
|
|
39
|
+
<div class="ui-prop__container" id="container" part="base">
|
|
40
|
+
<!-- 0. Faixa Vertical da Coluna Estreita (visível quando colapsado) -->
|
|
41
|
+
<div class="ui-prop__faixa-estreita" id="faixa-estreita" part="faixa-estreita" title="Clique para expandir painel">
|
|
42
|
+
<span class="ui-prop__faixa-icone" aria-hidden="true">
|
|
43
|
+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5">
|
|
44
|
+
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
|
45
|
+
<line x1="3" y1="9" x2="21" y2="9"></line>
|
|
46
|
+
<line x1="9" y1="21" x2="9" y2="9"></line>
|
|
47
|
+
</svg>
|
|
48
|
+
</span>
|
|
49
|
+
<button type="button" class="ui-prop__faixa-btn-expandir" id="btn-expandir-faixa" title="Expandir painel de propriedades" aria-label="Expandir painel de propriedades">
|
|
50
|
+
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2">
|
|
51
|
+
<polyline points="9 18 15 12 9 6"></polyline>
|
|
52
|
+
<line x1="5" y1="5" x2="5" y2="19"></line>
|
|
53
|
+
</svg>
|
|
54
|
+
</button>
|
|
55
|
+
<span class="ui-prop__faixa-texto">PROPRIEDADES</span>
|
|
56
|
+
</div>
|
|
57
|
+
|
|
58
|
+
<!-- 1. Header Superior -->
|
|
59
|
+
<header class="ui-prop__header" id="header" part="cabecalho">
|
|
60
|
+
<div class="ui-prop__header-titulo">
|
|
61
|
+
<span class="ui-prop__header-icone" aria-hidden="true">
|
|
62
|
+
<svg width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round">
|
|
63
|
+
<rect x="3" y="3" width="18" height="18" rx="2" ry="2"></rect>
|
|
64
|
+
<line x1="3" y1="9" x2="21" y2="9"></line>
|
|
65
|
+
<line x1="9" y1="21" x2="9" y2="9"></line>
|
|
66
|
+
</svg>
|
|
67
|
+
</span>
|
|
68
|
+
<span id="header-titulo-texto" part="titulo">Propriedades</span>
|
|
69
|
+
</div>
|
|
70
|
+
<div class="ui-prop__header-acoes" part="acoes-cabecalho">
|
|
71
|
+
<button type="button" class="ui-prop__btn-icone" id="btn-flutuante" title="Desacoplar / Modo flutuante (CAD)" aria-label="Modo flutuante">
|
|
72
|
+
<svg width="10" height="10" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
|
|
73
|
+
<rect x="3" y="3" width="14" height="14" rx="2"></rect>
|
|
74
|
+
<polyline points="15 3 21 3 21 9"></polyline>
|
|
75
|
+
<line x1="10" y1="14" x2="21" y2="3"></line>
|
|
76
|
+
</svg>
|
|
77
|
+
</button>
|
|
78
|
+
<button type="button" class="ui-prop__btn-icone" id="btn-colapsar-horizontal" title="Recolher para coluna estreita" aria-label="Recolher para coluna estreita">
|
|
79
|
+
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
|
|
80
|
+
<polyline points="11 17 6 12 11 7"></polyline>
|
|
81
|
+
<line x1="18" y1="5" x2="18" y2="19"></line>
|
|
82
|
+
</svg>
|
|
83
|
+
</button>
|
|
84
|
+
<button type="button" class="ui-prop__btn-icone" id="btn-densidade" title="Alternar compressão vertical" aria-label="Alternar densidade vertical">
|
|
85
|
+
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2.2" stroke-linecap="round" stroke-linejoin="round">
|
|
86
|
+
<polyline points="4 7 12 11 20 7"></polyline>
|
|
87
|
+
<polyline points="4 17 12 13 20 17"></polyline>
|
|
88
|
+
<line x1="4" y1="12" x2="20" y2="12"></line>
|
|
89
|
+
</svg>
|
|
90
|
+
</button>
|
|
91
|
+
<button type="button" class="ui-prop__btn-icone" id="btn-expandir-tudo" title="Expandir/Recolher Tudo" aria-label="Expandir ou recolher tudo">
|
|
92
|
+
<svg width="11" height="11" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2">
|
|
93
|
+
<polyline points="7 13 12 18 17 13"></polyline>
|
|
94
|
+
<polyline points="7 6 12 11 17 6"></polyline>
|
|
95
|
+
</svg>
|
|
96
|
+
</button>
|
|
97
|
+
<button type="button" class="ui-prop__btn-icone" id="btn-fechar" title="Fechar" aria-label="Fechar" style="display: none;">
|
|
98
|
+
✕
|
|
99
|
+
</button>
|
|
100
|
+
</div>
|
|
101
|
+
</header>
|
|
102
|
+
|
|
103
|
+
<!-- 2. Seletor de Tipo (AutoCAD / Revit) -->
|
|
104
|
+
<div class="ui-prop__tipo-seletor-container" id="tipo-container" part="seletor-tipo" style="display: none;"></div>
|
|
105
|
+
|
|
106
|
+
<!-- 3. Busca Rápida de Propriedades -->
|
|
107
|
+
<div class="ui-prop__filtro-container" id="filtro-container" part="filtro" style="display: none;">
|
|
108
|
+
<svg class="ui-prop__filtro-icone" width="12" height="12" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
|
|
109
|
+
<circle cx="11" cy="11" r="8"></circle>
|
|
110
|
+
<line x1="21" y1="21" x2="16.65" y2="16.65"></line>
|
|
111
|
+
</svg>
|
|
112
|
+
<input type="text" class="ui-prop__filtro-input" id="filtro-input" part="filtro-input" placeholder="Filtrar propriedades..." aria-label="Filtrar propriedades" autocomplete="off" spellcheck="false" />
|
|
113
|
+
<button type="button" class="ui-prop__filtro-limpar" id="btn-limpar-filtro" title="Limpar filtro (Esc)" aria-label="Limpar filtro" style="display: none;">✕</button>
|
|
114
|
+
</div>
|
|
115
|
+
|
|
116
|
+
<!-- 4. Corpo Rolável com Grade de Categorias -->
|
|
117
|
+
<div class="ui-prop__corpo-wrapper" id="corpo-wrapper">
|
|
118
|
+
<div class="ui-prop__splitter" id="splitter" part="splitter" role="separator" tabindex="0" aria-orientation="vertical" aria-valuemin="20" aria-valuemax="65" aria-valuenow="45" aria-label="Redimensionar coluna de rótulos" title="Arraste para redimensionar colunas (duplo-clique reseta para 45%)"></div>
|
|
119
|
+
<div class="ui-prop__corpo" id="corpo" part="corpo">
|
|
120
|
+
<div class="ui-prop__lista-categorias" id="lista-categorias" part="lista-categorias"></div>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
|
|
124
|
+
<!-- 5. Rodapé com Ações (Aplicar / Desfazer) -->
|
|
125
|
+
<footer class="ui-prop__footer" id="footer" part="rodape" style="display: none;">
|
|
126
|
+
<a class="ui-prop__link-ajuda" id="link-ajuda" part="ajuda" href="#" role="button">Ajuda de propriedades</a>
|
|
127
|
+
<div class="ui-prop__footer-botoes">
|
|
128
|
+
<button type="button" class="ui-prop__btn-desfazer" id="btn-desfazer" part="desfazer" disabled>Desfazer</button>
|
|
129
|
+
<button type="button" class="ui-prop__btn-aplicar" id="btn-aplicar" part="aplicar" disabled>Aplicar</button>
|
|
130
|
+
</div>
|
|
131
|
+
</footer>
|
|
132
|
+
|
|
133
|
+
<!-- 6. Grip para redimensionar no modo flutuante -->
|
|
134
|
+
<div class="ui-prop__resizer-canto" id="resizer-canto" title="Redimensionar"></div>
|
|
135
|
+
</div>
|
|
136
|
+
`}function Ze(r){const{listaContainer:t,categorias:e,termoBusca:i,onToggleCategoria:o,linhaCtx:a}=r,n=d=>{var p;return((p=r.obterTexto)==null?void 0:p.call(r,d))||k[d]};t.innerHTML="";const s=(Array.isArray(e)?e:[]).filter(d=>!!(d&&typeof d=="object"));if(s.length===0){const d=document.createElement("div");d.className="ui-prop__vazio",d.setAttribute("part","vazio"),d.textContent=n("vazio"),t.appendChild(d);return}const u=document.createDocumentFragment(),l=(i||"").trim().toLowerCase();let m=0;if(s.forEach(d=>{const p=String(d.titulo??d.id??"").toLowerCase(),c=!!l&&p.includes(l),h=(Array.isArray(d.propriedades)?d.propriedades:[]).filter(E=>{if(!E||typeof E!="object"||E.id===void 0||E.id===null)return!1;if(!l||c)return!0;const _=String(E.rotulo??"").toLowerCase(),C=String(E.id).toLowerCase(),I=a.valoresAtuais[E.id],st=A(I)?"":String(I??"").toLowerCase();return _.includes(l)||C.includes(l)||st.includes(l)});if(l&&h.length===0)return;m+=h.length;const f=r.obterCategoriaAberta?r.obterCategoriaAberta(d):d.aberto!==void 0?d.aberto!==!1:d.aberta!==!1,g=!!l||f,b=document.createElement("div");b.className=`ui-prop__categoria ${g?"ui-prop__categoria--aberta":""}`,b.setAttribute("data-cat-id",String(d.id)),b.setAttribute("part","categoria"),R.alternarPart(b,"categoria-aberta",g);const v=document.createElement("div");v.className="ui-prop__categoria-header",v.setAttribute("part","categoria-cabecalho"),v.setAttribute("role","button"),v.tabIndex=0,v.setAttribute("aria-expanded",String(g));const x=document.createElement("div");x.className="ui-prop__categoria-titulo-bloco";const y=document.createElement("span");y.className="ui-prop__categoria-seta",y.setAttribute("aria-hidden","true"),y.textContent="▶";const S=document.createElement("span");S.textContent=String(d.titulo??d.id),x.appendChild(y),x.appendChild(S);const z=document.createElement("span");z.className="ui-prop__categoria-contador",z.textContent=String(h.length),v.appendChild(x),v.appendChild(z),v.addEventListener("click",()=>o(String(d.id))),v.addEventListener("keydown",E=>{if(E.key==="Enter"||E.key===" ")E.preventDefault(),o(String(d.id));else if(E.key==="ArrowRight")b.classList.contains("ui-prop__categoria--aberta")||(E.preventDefault(),o(String(d.id)));else if(E.key==="ArrowLeft")b.classList.contains("ui-prop__categoria--aberta")&&(E.preventDefault(),o(String(d.id)));else if(E.key==="ArrowDown"||E.key==="ArrowUp"){const _=Array.from(t.querySelectorAll(".ui-prop__categoria-header")),C=_.indexOf(v);if(C!==-1){const I=E.key==="ArrowDown"?C+1:C-1;I>=0&&I<_.length&&(E.preventDefault(),_[I].focus())}}else if(E.key==="Home"){const _=t.querySelector(".ui-prop__categoria-header");_&&(E.preventDefault(),_.focus())}else if(E.key==="End"){const _=t.querySelectorAll(".ui-prop__categoria-header");_.length>0&&(E.preventDefault(),_[_.length-1].focus())}});const V=document.createElement("div");V.className="ui-prop__categoria-conteudo",V.setAttribute("part","categoria-conteudo"),h.forEach(E=>{const _=Qe(String(d.id),E,a);V.appendChild(_)}),b.appendChild(v),b.appendChild(V),u.appendChild(b)}),l&&m===0){const d=document.createElement("div");d.className="ui-prop__vazio",d.setAttribute("part","vazio"),d.textContent=n("vazioBusca").split("{termo}").join(i),t.appendChild(d);return}t.appendChild(u)}function Qe(r,t,e){var h,f;const i=document.createElement("div");i.className="ui-prop__linha",i.setAttribute("data-prop-id",String(t.id)),i.setAttribute("part","linha");const o=e.valoresAtuais[t.id]!==void 0?e.valoresAtuais[t.id]:Q(t),a=t.id in e.valoresOriginais?e.valoresOriginais[t.id]:Q(t),n=!T(o,a),s=A(o);n&&(i.classList.add("ui-prop__linha--modificada"),R.alternarPart(i,"linha-modificada",!0)),s&&(i.classList.add("ui-prop__linha--misto"),R.alternarPart(i,"linha-mista",!0)),i.addEventListener("dblclick",()=>{const g=i.querySelector('input:not([type="color"]):not(.ui-prop__cor-picker-oculto), select, .ui-prop__btn-acao-inline');g&&(g.focus(),g instanceof HTMLInputElement&&g.select())});const u=document.createElement("div");u.className="ui-prop__col-rotulo",u.setAttribute("part","rotulo");const l=String(t.rotulo??t.id);u.title=t.dica?`${l} — ${t.dica}`:l;const m=document.createElement("span");if(m.textContent=l,u.appendChild(m),!t.somenteLeitura&&t.tipo!=="readonly"&&t.tipo!=="acao"&&e.onRedefinir){const g=e.onRedefinir,b=document.createElement("button");b.type="button",b.className="ui-prop__btn-reverter";const v=((f=(h=e.editorCtx).obterTexto)==null?void 0:f.call(h,"restaurarValor"))||k.restaurarValor;b.title=v,b.setAttribute("aria-label",`${v}: ${l}`),b.setAttribute("part","restaurar"),b.textContent="↺",b.addEventListener("click",x=>{x.stopPropagation(),g(String(t.id))}),b.addEventListener("dblclick",x=>x.stopPropagation()),u.appendChild(b)}t.tipo==="numero"&&!t.somenteLeitura&&At(u,r,t,e);const p=document.createElement("div");p.className="ui-prop__col-valor",p.setAttribute("part","valor");const c=We(r,t,o,e.editorCtx);if(p.appendChild(c),t.unidade){const g=document.createElement("span");g.className="ui-prop__unidade-sufixo",g.setAttribute("part","unidade"),g.textContent=t.unidade,p.appendChild(g)}return i.appendChild(u),i.appendChild(p),i}function At(r,t,e,i){r.classList.add("ui-prop__col-rotulo--scrub");const o=String(e.rotulo??e.id),a=e.dica?`${o} — ${e.dica}`:o;r.title=`${a} (Arraste para ajustar, duplo-clique para editar)`;let n=0,s=0,u=!1;r.addEventListener("pointerdown",l=>{var c,h;if(l.button!==0||(h=(c=l.target)==null?void 0:c.closest)!=null&&h.call(c,".ui-prop__btn-reverter")||A(i.editorCtx.obterValorAtual(e.id)))return;n=l.clientX;const m=i.editorCtx.obterValorAtual(e.id);s=typeof m=="number"?m:parseFloat(String(m||0))||0,u=!1;try{r.setPointerCapture(l.pointerId)}catch{}r.classList.add("ui-prop__col-rotulo--arrastando");const d=f=>{const g=f.clientX-n;if(Math.abs(g)>2&&(u=!0),u){let b=1;f.shiftKey?b=.1:(f.ctrlKey||f.metaKey)&&(b=10);const v=X(e),x=typeof e.passo=="number"&&e.passo>0?e.passo*.01:typeof e.step=="number"&&e.step>0?e.step*.01:Math.pow(10,-Math.min(v!==void 0?v:2,2));let y=s+g*x*b;y=oe(y,e),v!==void 0?y=Number(y.toFixed(v)):y=Math.round(y*100)/100,i.editorCtx.registrarAlteracao(t,e.id,y),i.onAtualizarCampoVisual(e.id,y)}},p=f=>{r.classList.remove("ui-prop__col-rotulo--arrastando");try{r.hasPointerCapture(f.pointerId)&&r.releasePointerCapture(f.pointerId)}catch{}r.removeEventListener("pointermove",d),r.removeEventListener("pointerup",p),r.removeEventListener("pointercancel",p)};r.addEventListener("pointermove",d),r.addEventListener("pointerup",p),r.addEventListener("pointercancel",p)})}const J=300,Je=480,j=new WeakMap;function et(r){var i,o,a;const t=r.hasAttribute("flutuante"),e=r.style;if(t){const n=j.get(r)??{acoplado:{width:"",height:""}};n.flutuante={left:e.left,top:e.top,width:e.width,height:e.height},j.set(r,n),r.removeAttribute("flutuante"),e.left="",e.top="",e.right="",e.bottom="",e.position="",e.zIndex="",e.width=n.acoplado.width,e.height=n.acoplado.height}else{const n={acoplado:{width:e.width,height:e.height},flutuante:(i=j.get(r))==null?void 0:i.flutuante};if(j.set(r,n),r.setAttribute("flutuante",""),e.position="fixed",(o=n.flutuante)!=null&&o.left||(a=n.flutuante)!=null&&a.top)e.left=n.flutuante.left,e.top=n.flutuante.top,e.width=n.flutuante.width,e.height=n.flutuante.height;else if(!e.left&&!e.top){const s=Math.max(20,(typeof window<"u"?window.innerWidth:1024)-J-30);e.left=`${s}px`,e.top="70px",e.width=`${J}px`,e.height=`${Je}px`}}return!t}function se(r){var e;const t=r.style;if(!r.hasAttribute("flutuante")){if(t.position==="fixed"){const i=j.get(r);t.left="",t.top="",t.right="",t.bottom="",t.position="",t.zIndex="",t.width=(i==null?void 0:i.acoplado.width)??"",t.height=(i==null?void 0:i.acoplado.height)??""}return}if(t.position!=="fixed"&&(j.set(r,{acoplado:{width:t.width,height:t.height},flutuante:(e=j.get(r))==null?void 0:e.flutuante}),t.position="fixed"),!t.left&&!t.top){const i=Math.max(20,(typeof window<"u"?window.innerWidth:1024)-J-30);t.left=`${i}px`,t.top="70px",t.width||(t.width=`${J}px`),t.height||(t.height=`${Je}px`)}}function tt(r,t,e){const i=t.getElementById("header");if(i){let a=null,n=0,s=0,u=0,l=0;const m=p=>{if(a===null)return;const c=p.clientX-n,h=p.clientY-s;let f=u+c,g=l+h;const b=Math.max(0,(typeof window<"u"?window.innerWidth:1024)-r.offsetWidth),v=Math.max(0,(typeof window<"u"?window.innerHeight:768)-30);f=Math.max(0,Math.min(b,f)),g=Math.max(0,Math.min(v,g)),r.style.left=`${f}px`,r.style.top=`${g}px`,r.style.right="auto",r.style.bottom="auto"},d=p=>{if(a!==null){try{i.releasePointerCapture(p.pointerId)}catch{}i.removeEventListener("pointermove",m),i.removeEventListener("pointerup",d),i.removeEventListener("pointercancel",d),a=null,r.classList.remove("arrastando"),r.dispatchEvent(new CustomEvent("ui-mover",{bubbles:!0,composed:!0,detail:{left:r.style.left,top:r.style.top}}))}};e.add(i,"pointerdown",p=>{if(!r.hasAttribute("flutuante")||p.target.closest("button, input, select, a")||p.button!==0)return;p.preventDefault(),a=p.pointerId,n=p.clientX,s=p.clientY;const h=r.getBoundingClientRect();u=h.left,l=h.top,r.classList.add("arrastando");try{i.setPointerCapture(p.pointerId)}catch{}i.addEventListener("pointermove",m),i.addEventListener("pointerup",d),i.addEventListener("pointercancel",d)})}const o=t.getElementById("resizer-canto");if(o){let a=null,n=0,s=0,u=0,l=0;const m=p=>{if(a===null)return;const c=Math.max(200,n+(p.clientX-u)),h=Math.max(180,s+(p.clientY-l));r.style.width=`${c}px`,r.style.height=`${h}px`},d=p=>{if(a!==null){try{o.releasePointerCapture(p.pointerId)}catch{}o.removeEventListener("pointermove",m),o.removeEventListener("pointerup",d),o.removeEventListener("pointercancel",d),a=null,r.dispatchEvent(new CustomEvent("ui-redimensionar",{bubbles:!0,composed:!0,detail:{width:r.style.width,height:r.style.height}}))}};e.add(o,"pointerdown",p=>{if(!r.hasAttribute("flutuante")||p.button!==0)return;p.preventDefault(),p.stopPropagation(),a=p.pointerId,u=p.clientX,l=p.clientY;const c=r.getBoundingClientRect();n=c.width,s=c.height;try{o.setPointerCapture(p.pointerId)}catch{}o.addEventListener("pointermove",m),o.addEventListener("pointerup",d),o.addEventListener("pointercancel",d)})}}function rt(r){return r==="compacta"?"ultracompacta":r==="ultracompacta"?"padrao":"compacta"}const xe=new Set(["__proto__","constructor","prototype"]);class it{constructor(t){w(this,"valoresOriginais",{});w(this,"valoresAtuais",{});this.ctx=t}inicializarCategorias(t){this.valoresOriginais={},this.valoresAtuais={};const e=new Set;(Array.isArray(t)?t:[]).forEach(i=>{!i||typeof i!="object"||(Array.isArray(i.propriedades)?i.propriedades:[]).forEach(o=>{if(!o||typeof o!="object"||o.id===void 0||o.id===null)return;const a=String(o.id);if(xe.has(a))return;e.has(a)&&typeof console<"u"&&console.warn(`[ui-tabela-propriedades] id de propriedade repetido: "${a}". Os valores são indexados por id e serão compartilhados.`),e.add(a);const n=Q(o);this.valoresOriginais[a]=n,this.valoresAtuais[a]=n})}),this.ctx.onAtualizarBotoesFooter(!1)}get isDirty(){return Object.keys(this.valoresAtuais).some(t=>this.isModificada(t))}isModificada(t){return!T(this.valoresAtuais[t],this.valoresOriginais[t])}getValores(){return{...this.valoresAtuais}}getValoresOriginais(){return{...this.valoresOriginais}}setValores(t){if(!t||typeof t!="object")return[];const e=[];return Object.keys(t).forEach(i=>{if(xe.has(i))return;const o=t[i],a=!T(this.valoresAtuais[i],o)||!T(this.valoresOriginais[i],o);this.valoresAtuais[i]=o,this.valoresOriginais[i]=o,a&&e.push(i)}),e.forEach(i=>{this.aposAlterar(i),this.ctx.onAtualizarCampoVisual(i,this.valoresAtuais[i])}),this.ctx.onAtualizarBotoesFooter(this.isDirty),e}obterValor(t){return this.valoresAtuais[t]}obterValorOriginal(t){return this.valoresOriginais[t]}definirValor(t,e,i=!0){if(!Object.prototype.hasOwnProperty.call(this.valoresOriginais,t))return;const o=this.valoresAtuais[t];T(o,e)||(this.valoresAtuais[t]=e,this.aposAlterar(t),this.ctx.onAtualizarCampoVisual(t,e),i&&this.emitirAlteracao(t,e,o,this.categoriaDe(t)))}redefinirValor(t,e=!0){if(!(t in this.valoresOriginais)||!this.isModificada(t))return!1;const i=this.valoresOriginais[t];return this.definirValor(t,i,e&&!this.ctx.isModoManual()),!0}registrarAlteracao(t,e,i){const o=this.valoresAtuais[e];T(o,i)||(this.valoresAtuais[e]=i,this.aposAlterar(e),this.ctx.isModoManual()||this.emitirAlteracao(e,i,o,t))}aplicar(){var i;if(!this.isDirty)return;const t={};Object.keys(this.valoresAtuais).forEach(o=>{this.isModificada(o)&&(t[o]=this.valoresAtuais[o])}),this.valoresOriginais={...this.valoresAtuais},this.ctx.onAtualizarBotoesFooter(!1);const e=(i=this.ctx.hostElement.shadowRoot)==null?void 0:i.querySelectorAll(".ui-prop__linha--modificada");e==null||e.forEach(o=>{o.classList.remove("ui-prop__linha--modificada"),R.alternarPart(o,"linha-modificada",!1)}),this.ctx.hostElement.dispatchEvent(new CustomEvent("ui-aplicar",{bubbles:!0,composed:!0,detail:{valores:{...this.valoresAtuais},alterados:t}}))}desfazer(){this.isDirty&&(this.valoresAtuais={...this.valoresOriginais},this.ctx.onAtualizarBotoesFooter(!1),this.ctx.onRenderCategorias(),this.ctx.hostElement.dispatchEvent(new CustomEvent("ui-desfazer",{bubbles:!0,composed:!0,detail:{valores:{...this.valoresAtuais}}})))}aposAlterar(t){const e=de(this.ctx.hostElement.shadowRoot,t);if(e){const i=this.isModificada(t),o=A(this.valoresAtuais[t]);e.classList.toggle("ui-prop__linha--modificada",i),e.classList.toggle("ui-prop__linha--misto",o),R.alternarPart(e,"linha-modificada",i),R.alternarPart(e,"linha-mista",o)}this.ctx.onAtualizarBotoesFooter(this.isDirty)}categoriaDe(t){for(const e of this.ctx.getCategorias())if(e&&Array.isArray(e.propriedades)&&e.propriedades.some(i=>i&&String(i.id)===String(t)))return e.id;return""}emitirAlteracao(t,e,i,o=""){this.ctx.hostElement.dispatchEvent(new CustomEvent("ui-propriedade-alterada",{bubbles:!0,composed:!0,detail:{id:t,categoriaId:o,valor:e,valorAnterior:i,todosValores:{...this.valoresAtuais}}}))}}function ot(r){const{shadow:t,listeners:e,host:i,onToggleExpandirTodas:o,onFiltrar:a,onAplicar:n,onDesfazer:s,onAlternarDensidade:u,onAlternarFlutuante:l,onAlternarColapsoHorizontal:m,onFocarPrimeiroEditor:d}=r,p=t.getElementById("btn-flutuante");p&&l&&e.add(p,"click",l);const c=t.getElementById("btn-colapsar-horizontal");c&&m&&e.add(c,"click",m);const h=t.getElementById("faixa-estreita");h&&m&&e.add(h,"click",m);const f=t.getElementById("btn-expandir-faixa");f&&m&&e.add(f,"click",_=>{_.stopPropagation(),m()});const g=t.getElementById("btn-densidade");g&&u&&e.add(g,"click",u);const b=t.getElementById("btn-expandir-tudo");b&&e.add(b,"click",o);const v=t.getElementById("btn-fechar");v&&e.add(v,"click",()=>{i.dispatchEvent(new CustomEvent("ui-fechar",{bubbles:!0,composed:!0}))});const x=t.getElementById("filtro-input"),y=t.getElementById("btn-limpar-filtro"),S=()=>{y&&x&&(y.style.display=x.value?"inline-flex":"none")};x&&(e.add(x,"input",()=>{S();const _=(x.value||"").trim().toLowerCase();a(_)}),e.add(x,"keydown",_=>{_.key==="Escape"?x.value?(_.preventDefault(),_.stopPropagation(),x.value="",S(),a("")):x.blur():(_.key==="Enter"||_.key==="ArrowDown")&&d&&(_.preventDefault(),d())})),y&&x&&e.add(y,"click",()=>{x.value="",S(),a(""),x.focus()});const z=t.getElementById("btn-aplicar");z&&e.add(z,"click",n);const V=t.getElementById("btn-desfazer");V&&e.add(V,"click",s);const E=t.getElementById("link-ajuda");if(E){const _=C=>{C.preventDefault(),i.dispatchEvent(new CustomEvent("ui-ajuda",{bubbles:!0,composed:!0}))};e.add(E,"click",_),e.add(E,"keydown",C=>{C.key===" "&&_(C)})}e.add(t,"keydown",_=>{const C=_;(C.ctrlKey||C.metaKey)&&C.key==="Enter"&&i.getAttribute("modo-aplicar")==="manual"&&(C.preventDefault(),n())})}function L(r,t){const e=r.getElementById("header-titulo-texto");e&&(e.textContent=t.getAttribute("titulo")||"Propriedades");const i=r.getElementById("btn-fechar");i&&(i.style.display=t.hasAttribute("fechavel")?"inline-flex":"none");const o=r.getElementById("btn-flutuante");if(o){const f=t.hasAttribute("flutuante");o.title=f?"Acoplar painel (Dock)":"Desacoplar / Modo flutuante (CAD)",o.setAttribute("aria-pressed",String(f)),o.classList.toggle("ui-prop__btn-icone--ativo",f)}const a=r.getElementById("btn-colapsar-horizontal");if(a){const f=t.hasAttribute("colapsado");a.title=f?"Expandir painel":"Recolher para coluna estreita",a.setAttribute("aria-pressed",String(f)),a.classList.toggle("ui-prop__btn-icone--ativo",f)}const n=r.getElementById("btn-densidade");if(n){const f=t.getAttribute("densidade")||"padrão";n.title=`Compressão vertical: ${f} (clique para alternar)`}const s=r.getElementById("filtro-container");s&&(s.style.display=t.hasAttribute("filtro")?"flex":"none");const u=r.getElementById("filtro-input"),l=r.getElementById("btn-limpar-filtro");l&&u&&(l.style.display=u.value?"inline-flex":"none");const m=r.getElementById("filtro-input");m&&(m.placeholder=$(t,"filtroPlaceholder"));const d=r.getElementById("btn-aplicar");d&&(d.textContent=$(t,"aplicar"));const p=r.getElementById("btn-desfazer");p&&(p.textContent=$(t,"desfazer"));const c=r.getElementById("link-ajuda");c&&(c.textContent=$(t,"ajuda"));const h=r.getElementById("footer");h&&(h.style.display=t.getAttribute("modo-aplicar")==="manual"?"flex":"none")}const O=class O extends ee.SafeHTMLElement{constructor(){super();w(this,"shadow");w(this,"listeners",new me.ListenerBag);w(this,"splitterListeners",new me.ListenerBag);w(this,"controladorSplitter");w(this,"gerenciadorValores");w(this,"_conectado",!1);w(this,"lembranca",new Ce(()=>({persistir:this.persistir,conectado:this._conectado,storageKey:this.storageKey,id:this.id})));w(this,"_categorias",[]);w(this,"_tipos",[]);w(this,"_tipoSelecionadoId","");w(this,"_termoBusca","");w(this,"_larguraRotuloPorcentagem",45);w(this,"_sincronizandoFlutuante",!1);w(this,"_textos",{});w(this,"tipoContainerElement");w(this,"corpoElement");w(this,"btnAplicarElement");w(this,"btnDesfazerElement");w(this,"splitterElement");this.shadow=this.attachShadow({mode:"open"}),this.shadow.innerHTML=wt(),this.tipoContainerElement=this.shadow.getElementById("tipo-container"),this.corpoElement=this.shadow.getElementById("corpo"),this.btnAplicarElement=this.shadow.getElementById("btn-aplicar"),this.btnDesfazerElement=this.shadow.getElementById("btn-desfazer"),this.splitterElement=this.shadow.getElementById("splitter"),this.gerenciadorValores=new it({hostElement:this,getCategorias:()=>this._categorias,onAtualizarBotoesFooter:e=>{this.btnAplicarElement.disabled=!e,this.btnDesfazerElement.disabled=!e},onAtualizarCampoVisual:(e,i)=>ae(this.shadow,e,i),onRenderCategorias:()=>this.renderCategorias(),isModoManual:()=>this.getAttribute("modo-aplicar")==="manual"}),this.controladorSplitter=Ye({hostElement:this,corpoElement:this.corpoElement,splitterElement:this.splitterElement,splitterListeners:this.splitterListeners,onLarguraAlterada:e=>{this._larguraRotuloPorcentagem=e}})}static get observedAttributes(){return["titulo","estilo-visual","modo-aplicar","filtro","densidade","largura-rotulo","fechavel","colapsado","flutuante","texto-misto","persistir","storage-key",...W.ATRIBUTOS_DEGRADE]}get larguraRotuloPorcentagem(){return this._larguraRotuloPorcentagem}connectedCallback(){this.listeners.cleanup(),this._conectado=!0,this.atualizarRegistroChavePadrao(),this.persistir&&(this.lembranca.sincronizarSeChaveMudou(),this.lembranca.restaurarOrigensEmCategorias(this._categorias),this.lembranca.aplicarEmCategorias(this._categorias)),ot({shadow:this.shadow,listeners:this.listeners,host:this,onToggleExpandirTodas:()=>this.toggleExpandirTodas(),onFiltrar:e=>{this._termoBusca=e,this.renderCategorias()},onAplicar:()=>this.aplicar(),onDesfazer:()=>this.desfazer(),onAlternarDensidade:()=>this.alternarDensidade(),onAlternarFlutuante:()=>this.alternarFlutuante(),onAlternarColapsoHorizontal:()=>this.alternarColapsoHorizontal(),onFocarPrimeiroEditor:()=>Le(this.shadow)}),this.hasAttribute("flutuante")&&se(this),tt(this,this.shadow,this.listeners),this.controladorSplitter.init(),W.aplicarDegradeNoElemento(this,this.shadow.getElementById("container")),this.syncState()}disconnectedCallback(){this._conectado=!1,this.atualizarRegistroChavePadrao(),this.listeners.cleanup(),this.splitterListeners.cleanup(),this.shadow.querySelectorAll(".ui-prop__ac").forEach(e=>e.remove())}attributeChangedCallback(e,i,o){if(i!==o){if(W.ehAtributoDegrade(e)){W.aplicarDegradeNoElemento(this,this.shadow.getElementById("container"));return}switch(e){case"largura-rotulo":{const a=parseFloat(o??"");isNaN(a)||(this._larguraRotuloPorcentagem=this.controladorSplitter.definirLarguraRotulo(a));return}case"estilo-visual":this.renderSeletorTipos();return;case"texto-misto":this.renderCategorias();return;case"filtro":if(L(this.shadow,this),o===null&&this._termoBusca){this._termoBusca="";const a=this.shadow.getElementById("filtro-input");a&&(a.value=""),this.renderCategorias()}return;case"flutuante":this._sincronizandoFlutuante||(this._conectado&&se(this),L(this.shadow,this));return;case"modo-aplicar":o!=="manual"&&this.gerenciadorValores.isDirty&&this.aplicar(),L(this.shadow,this);return;case"persistir":this.atualizarRegistroChavePadrao(),this._conectado&&this.persistir&&(this.lembranca.sincronizarSeChaveMudou(),this.lembranca.restaurarOrigensEmCategorias(this._categorias),this.lembranca.aplicarEmCategorias(this._categorias),this.atualizarVisaoCategorias());return;case"storage-key":this.atualizarRegistroChavePadrao(),this._conectado&&this.persistir&&(this.lembranca.carregarDoStorage(!0),this.lembranca.restaurarOrigensEmCategorias(this._categorias),this.lembranca.aplicarEmCategorias(this._categorias),this.atualizarVisaoCategorias());return;default:L(this.shadow,this)}}}get titulo(){return this.getAttribute("titulo")||"Propriedades"}set titulo(e){e?this.setAttribute("titulo",e):this.removeAttribute("titulo")}get estiloVisual(){return this.getAttribute("estilo-visual")||"autocad"}set estiloVisual(e){e&&e!=="autocad"?this.setAttribute("estilo-visual",e):this.removeAttribute("estilo-visual")}get modoAplicar(){return this.getAttribute("modo-aplicar")||"imediato"}set modoAplicar(e){e==="manual"?this.setAttribute("modo-aplicar","manual"):this.removeAttribute("modo-aplicar")}get filtro(){return this.hasAttribute("filtro")}set filtro(e){e?this.setAttribute("filtro",""):this.removeAttribute("filtro")}get termoBusca(){return this._termoBusca}set termoBusca(e){this._termoBusca=(e||"").trim().toLowerCase();const i=this.shadow.getElementById("filtro-input");i&&(i.value=e||""),this.renderCategorias()}get larguraRotulo(){return this._larguraRotuloPorcentagem}set larguraRotulo(e){const i=typeof e=="number"?e:parseFloat(String(e));isNaN(i)||this.setAttribute("largura-rotulo",String(i))}get fechavel(){return this.hasAttribute("fechavel")}set fechavel(e){e?this.setAttribute("fechavel",""):this.removeAttribute("fechavel")}get persistir(){return this.getAttribute("persistir")!=="false"}set persistir(e){e===!1?this.setAttribute("persistir","false"):this.removeAttribute("persistir")}get storageKey(){return this.getAttribute("storage-key")}set storageKey(e){e&&e.trim()?this.setAttribute("storage-key",e.trim()):this.removeAttribute("storage-key")}get categorias(){return this._categorias}set categorias(e){this._categorias=Array.isArray(e)?e:[],this.gerenciadorValores.inicializarCategorias(this._categorias),this.lembranca.registrarOrigens(this._categorias),this._conectado&&this.persistir&&this.lembranca.sincronizarSeChaveMudou(),this.lembranca.aplicarEmCategorias(this._categorias),this.renderCategorias()}get textoMisto(){const e=this.getAttribute("texto-misto");return e&&e.trim()?e:ie}set textoMisto(e){typeof e=="string"&&e.trim()?this.setAttribute("texto-misto",e):this.removeAttribute("texto-misto")}get textos(){return{...k,...this._textos}}set textos(e){const i={};e&&typeof e=="object"&&Object.keys(k).forEach(o=>{const a=e[o];typeof a=="string"&&a.trim()&&(i[o]=a)}),this._textos=i,L(this.shadow,this),this.renderSeletorTipos(),this.renderCategorias()}obterTexto(e){return this._textos[e]||k[e]}get tipos(){return this._tipos}set tipos(e){this._tipos=Array.isArray(e)?e:[],this.renderSeletorTipos()}get tipoSelecionado(){const e=this._tipos.filter(o=>o&&o.id!==null&&o.id!==void 0);return!e.some(o=>String(o.id)===this._tipoSelecionadoId)&&e.length>0?String(e[0].id):this._tipoSelecionadoId}set tipoSelecionado(e){this._tipoSelecionadoId=String(e??""),this.renderSeletorTipos()}get valores(){return this.gerenciadorValores.getValores()}set valores(e){this.gerenciadorValores.setValores(e),this._termoBusca&&this.renderCategorias()}get isDirty(){return this.gerenciadorValores.isDirty}get dirty(){return this.gerenciadorValores.isDirty}obterValor(e){return this.gerenciadorValores.obterValor(e)}definirValor(e,i,o=!0){this.gerenciadorValores.definirValor(e,i,o)}redefinirValor(e,i=!0){return this.gerenciadorValores.redefinirValor(e,i)}aplicar(){this.gerenciadorValores.aplicar()}desfazer(){this.gerenciadorValores.desfazer()}expandirTudo(){const e=[];for(const i of this._categorias){const o=P(i);o!==null&&e.push([o,!0])}this.lembranca.registrarVarias(e),Me(this.shadow,this._categorias),e.length>0&&this.emitirEstadoCategorias()}colapsarTudo(){const e=[];for(const i of this._categorias){const o=P(i);o!==null&&e.push([o,!1])}this.lembranca.registrarVarias(e),Be(this.shadow,this._categorias),e.length>0&&this.emitirEstadoCategorias()}toggleCategoria(e){const i=this._categorias.find(n=>P(n)===e);if(!i)return;const o=this._termoBusca?void 0:this.lembranca.estaAberta(i),a=Ne(this.shadow,this,this._categorias,e,o);typeof a=="boolean"&&(this.lembranca.registrar(e,a),this.emitirEstadoCategorias())}obterChaveStorageAtual(){return this.lembranca.chaveAtual()}obterEstadoCategorias(){return this.lembranca.obterEstado(this._categorias)}definirEstadoCategorias(e,i){if(!e||typeof e!="object")return;const o=[];for(const[a,n]of Object.entries(e))typeof n=="boolean"&&o.push([a,n]);o.length!==0&&(this.lembranca.registrarVarias(o,(i==null?void 0:i.persistir)!==!1),this.lembranca.aplicarEmCategorias(this._categorias),this.atualizarVisaoCategorias(),i!=null&&i.emitirEvento&&this.emitirEstadoCategorias())}limparEstadoCategorias(){this.lembranca.limpar(this._categorias),this.atualizarVisaoCategorias()}limparLembranca(){this.limparEstadoCategorias()}get densidade(){return this.getAttribute("densidade")||"padrao"}set densidade(e){!e||e==="padrao"?this.removeAttribute("densidade"):this.setAttribute("densidade",e)}alternarDensidade(){const e=rt(this.getAttribute("densidade")||"padrao");return e==="padrao"?this.removeAttribute("densidade"):this.setAttribute("densidade",e),this.dispatchEvent(new CustomEvent("ui-densidade-alterada",{bubbles:!0,composed:!0,detail:{densidade:e}})),L(this.shadow,this),e}get flutuante(){return this.hasAttribute("flutuante")}set flutuante(e){!!e!==this.hasAttribute("flutuante")&&this.alternarFlutuante()}get colapsado(){return this.hasAttribute("colapsado")}set colapsado(e){!!e!==this.hasAttribute("colapsado")&&this.alternarColapsoHorizontal()}alternarFlutuante(){this._sincronizandoFlutuante=!0;try{const e=et(this);return L(this.shadow,this),this.dispatchEvent(new CustomEvent("ui-flutuante-alterado",{bubbles:!0,composed:!0,detail:{flutuante:e,left:this.style.left,top:this.style.top,width:this.style.width,height:this.style.height}})),e}finally{this._sincronizandoFlutuante=!1}}alternarColapsoHorizontal(){const e=this.hasAttribute("colapsado");e?this.removeAttribute("colapsado"):this.setAttribute("colapsado","");const i=!e;return L(this.shadow,this),this.dispatchEvent(new CustomEvent("ui-colapso-horizontal",{bubbles:!0,composed:!0,detail:{colapsado:i}})),i}syncState(){L(this.shadow,this);const e=this.getAttribute("largura-rotulo");if(e){const i=parseFloat(e);isNaN(i)||(this._larguraRotuloPorcentagem=this.controladorSplitter.definirLarguraRotulo(i))}this.renderSeletorTipos(),this.renderCategorias()}toggleExpandirTodas(){this._categorias.some(i=>!!(i&&typeof i=="object")&&!this.lembranca.estaAberta(i))?this.expandirTudo():this.colapsarTudo()}atualizarRegistroChavePadrao(){var i,o;if(this._conectado&&this.persistir&&!((i=this.getAttribute("storage-key"))!=null&&i.trim())&&!((o=this.id)!=null&&o.trim())){const a=O.instanciasChavePadrao.has(this);O.instanciasChavePadrao.add(this),!a&&O.instanciasChavePadrao.size>1&&console.warn('[ui-tabela-propriedades] Múltiplos painéis persistentes conectados sem "id" ou "storage-key". Todos compartilharão a mesma chave de armazenamento.')}else O.instanciasChavePadrao.delete(this)}atualizarVisaoCategorias(){const e=this.shadow.querySelectorAll(".ui-prop__categoria").length>0;if(!this._termoBusca&&e){Pe(this.shadow,this._categorias,i=>this.lembranca.estaAberta(i));return}this.renderCategorias()}emitirEstadoCategorias(){const e=this.lembranca.montarDetalheEvento(this._categorias);this.dispatchEvent(new CustomEvent("ui-categorias-estado",{bubbles:!0,composed:!0,detail:e}))}renderSeletorTipos(){Ge({tipoContainerElement:this.tipoContainerElement,tipos:this._tipos,tipoSelecionadoId:this._tipoSelecionadoId,estiloVisual:this.getAttribute("estilo-visual")||"autocad",onSelecionarTipo:e=>{this._tipoSelecionadoId=e,this.renderSeletorTipos();const i=this._tipos.find(o=>o&&String(o.id)===String(e));this.dispatchEvent(new CustomEvent("ui-tipo-alterado",{bubbles:!0,composed:!0,detail:{id:e,tipo:i}}))},onEditarTipo:e=>this.dispatchEvent(new CustomEvent("ui-editar-tipo-clique",{bubbles:!0,composed:!0,detail:{tipo:e}})),onQuickSelect:e=>this.dispatchEvent(new CustomEvent("ui-quick-select",{bubbles:!0,composed:!0,detail:{tipo:e}})),onSelectObjects:e=>this.dispatchEvent(new CustomEvent("ui-selecionar-objetos",{bubbles:!0,composed:!0,detail:{tipo:e}})),onCalculadora:e=>this.dispatchEvent(new CustomEvent("ui-calculadora",{bubbles:!0,composed:!0,detail:{tipo:e}})),obterTexto:e=>this.obterTexto(e)})}renderCategorias(){const e=this.shadow.getElementById("lista-categorias");e&&(this.shadow.querySelectorAll(".ui-prop__ac").forEach(i=>i.remove()),Ze({listaContainer:e,categorias:this._categorias,termoBusca:this._termoBusca,obterTexto:i=>this.obterTexto(i),onToggleCategoria:i=>this.toggleCategoria(i),obterCategoriaAberta:i=>this.lembranca.estaAberta(i),linhaCtx:{valoresAtuais:this.gerenciadorValores.getValores(),valoresOriginais:this.gerenciadorValores.getValoresOriginais(),onAtualizarCampoVisual:(i,o)=>ae(this.shadow,i,o),onRedefinir:i=>this.redefinirValor(i),editorCtx:{obterValorAtual:i=>this.gerenciadorValores.obterValor(i),registrarAlteracao:(i,o,a)=>{this.gerenciadorValores.registrarAlteracao(i,o,a)},focarProximoEditor:i=>ze(this.shadow,i),focarEditorAnterior:i=>Se(this.shadow,i),obterTextoMisto:()=>this.textoMisto,obterTexto:i=>this.obterTexto(i),despacharEventoAcao:(i,o)=>{this.dispatchEvent(new CustomEvent("ui-acao-clique",{bubbles:!0,composed:!0,detail:{id:i.id,categoriaId:o,propriedade:i}}))}}}}))}};w(O,"instanciasChavePadrao",new Set);let q=O;class at extends q{}class nt extends q{}ee.definirCustomElement("ui-tabela-propriedades",q);ee.definirCustomElement("ui-painel-propriedades",at);ee.definirCustomElement("ui-propriedades",nt);exports.GerenciadorValoresPropriedades=it;exports.LembrancaCategoriasPropriedades=Ce;exports.TEXTOS_PADRAO=k;exports.TEXTO_MISTO_PADRAO=ie;exports.UIPainelPropriedades=at;exports.UIPropriedades=nt;exports.UITabelaPropriedades=q;exports.VALOR_MISTO=re;exports.abertoPadraoDaCategoria=Z;exports.alternarCategoria=Ne;exports.alternarPosicionamentoFlutuante=et;exports.aplicarLimitesNumericos=oe;exports.atualizarCampoVisual=ae;exports.avaliarExpressaoMatematica=_e;exports.buscarLinhaPropriedade=de;exports.carregarEstadoPropriedades=ye;exports.colapsarTodasCategorias=Be;exports.combinarValores=xt;exports.conectarArrastoFlutuante=tt;exports.conectarPainelControles=ot;exports.criarControladorSplitter=Ye;exports.criarEditorAcao=Ie;exports.criarEditorBooleano=je;exports.criarEditorCorCad=Ke;exports.criarEditorCorSwatch=Xe;exports.criarEditorLinetype=He;exports.criarEditorLineweight=Ue;exports.criarEditorNumero=Fe;exports.criarEditorReadonly=Oe;exports.criarEditorSelecao=Re;exports.criarEditorTexto=qe;exports.criarEditorValor=We;exports.criarLinhaPropriedade=Qe;exports.expandirTodasCategorias=Me;exports.focarEditorAnterior=Se;exports.focarPrimeiroEditor=Le;exports.focarProximoEditor=ze;exports.gerarChaveStoragePropriedades=H;exports.idDaCategoria=P;exports.interpretarEntradaNumerica=G;exports.isValorMisto=A;exports.limparEstadoPropriedades=Ae;exports.marcarSelectMisto=K;exports.normalizarEstadoPersistidoPropriedades=Ee;exports.obterCasasDecimais=X;exports.obterPassoNumerico=Te;exports.proximaDensidade=rt;exports.registrarAtualizadorEditor=M;exports.renderizarCategoriasETree=Ze;exports.renderizarSeletorTipos=Ge;exports.salvarEstadoPropriedades=we;exports.sincronizarCampoAberto=F;exports.sincronizarDomCategorias=Pe;exports.sincronizarFlutuanteExterno=se;exports.sincronizarPainelControles=L;exports.sincronizarSelect=U;exports.textoDoHost=$;exports.textoMistoDe=B;exports.valorComum=De;exports.valorInicialDaPropriedade=Q;exports.valoresIguais=T;
|