@thibezer/ui-components-kit 2.28.0 → 2.28.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/camadas.cjs +82 -82
  3. package/dist/camadas.js +1135 -1037
  4. package/dist/campo-texto.cjs +2 -2
  5. package/dist/campo-texto.js +29 -29
  6. package/dist/canvas.cjs +38 -38
  7. package/dist/canvas.js +1045 -1022
  8. package/dist/components/ui-area-texto/ui-area-texto.d.ts +3 -0
  9. package/dist/components/ui-camadas/camadas-metricas.d.ts +2 -3
  10. package/dist/components/ui-camadas/camadas-selecao-api.d.ts +1 -0
  11. package/dist/components/ui-camadas/camadas-selecao.d.ts +17 -2
  12. package/dist/components/ui-camadas/camadas-sincronizacao-dom.d.ts +2 -0
  13. package/dist/components/ui-camadas/tipos.d.ts +2 -0
  14. package/dist/components/ui-camadas/ui-camadas.d.ts +2 -0
  15. package/dist/components/ui-campo-texto/ui-campo-texto.d.ts +3 -0
  16. package/dist/components/ui-canvas-cad/cad-hud-coordenadas.d.ts +12 -0
  17. package/dist/components/ui-canvas-cad/ui-canvas-cad.d.ts +6 -1
  18. package/dist/components/ui-tabela/tabela-corpo.d.ts +10 -0
  19. package/dist/components/ui-tabela/tabela-declarativa.d.ts +11 -0
  20. package/dist/components/ui-tabela/tabela-dom.d.ts +1 -0
  21. package/dist/components/ui-tabela/tabela-header.d.ts +1 -0
  22. package/dist/components/ui-tabela/tabela-renderizador.d.ts +4 -0
  23. package/dist/components/ui-tabela/tipos.d.ts +11 -0
  24. package/dist/components/ui-tabela/ui-tabela.d.ts +22 -2
  25. package/dist/components/ui-tabela-propriedades/editores-basicos.d.ts +6 -6
  26. package/dist/components/ui-tabela-propriedades/editores-cad.d.ts +5 -5
  27. package/dist/components/ui-tabela-propriedades/propriedades-dom-utils.d.ts +6 -4
  28. package/dist/components/ui-tabela-propriedades/propriedades-editores.d.ts +2 -2
  29. package/dist/components/ui-tabela-propriedades/propriedades-flutuante.d.ts +1 -1
  30. package/dist/components/ui-tabela-propriedades/propriedades-gerenciador-valores.d.ts +11 -11
  31. package/dist/components/ui-tabela-propriedades/propriedades-render-arvore.d.ts +4 -4
  32. package/dist/components/ui-tabela-propriedades/propriedades-splitter.d.ts +1 -0
  33. package/dist/components/ui-tabela-propriedades/propriedades-valor-misto.d.ts +9 -5
  34. package/dist/components/ui-tabela-propriedades/tipos.d.ts +10 -8
  35. package/dist/components/ui-tabela-propriedades/ui-tabela-propriedades.d.ts +9 -7
  36. package/dist/custom-elements.json +13485 -12764
  37. package/dist/data.cjs +1 -1
  38. package/dist/data.js +107 -100
  39. package/dist/feature_caixa-BLVtatpp.cjs +1 -0
  40. package/dist/feature_caixa-CHAdzESq.js +806 -0
  41. package/dist/{feature_desenho-BH-E1Q9Q.cjs → feature_desenho-DRHnu8u8.cjs} +1 -1
  42. package/dist/{feature_desenho-CC8Mp5Gp.js → feature_desenho-edf-dHuf.js} +2 -2
  43. package/dist/feature_metricas-CKQGG2nz.cjs +1 -0
  44. package/dist/feature_metricas-DGfd21VR.js +130 -0
  45. package/dist/forms.cjs +7 -7
  46. package/dist/forms.js +24 -24
  47. package/dist/geometria-px-DEAIxMG5.js +512 -0
  48. package/dist/geometria-px-DJcNHXbE.cjs +1 -0
  49. package/dist/gerencigeo-canvas/dms.d.ts +7 -0
  50. package/dist/gerencigeo-canvas/feature_algoritmos.d.ts +1 -4
  51. package/dist/gerencigeo-canvas/utils.d.ts +1 -3
  52. package/dist/index.cjs +7 -7
  53. package/dist/index.js +228 -219
  54. package/dist/mapa.cjs +1 -1
  55. package/dist/mapa.js +1 -1
  56. package/dist/motor.cjs +1 -1
  57. package/dist/motor.js +113 -111
  58. package/dist/prancha-nucleo.cjs +3 -3
  59. package/dist/prancha-nucleo.js +283 -282
  60. package/dist/prancha.cjs +1 -1
  61. package/dist/prancha.js +3 -3
  62. package/dist/tabela.cjs +8 -8
  63. package/dist/tabela.js +1367 -1136
  64. package/dist/tipos-elementos.d.ts +28 -8
  65. package/dist/tipos-vue.d.ts +30 -12
  66. package/dist/utils-B2HuBLwz.js +108 -0
  67. package/dist/utils-DpPysTeU.cjs +1 -0
  68. package/package.json +1 -1
  69. package/dist/feature_caixa-4M4MkFH7.cjs +0 -1
  70. package/dist/feature_caixa-BVc5LenS.js +0 -824
  71. package/dist/geometria-px-Cyi_oPD6.cjs +0 -1
  72. package/dist/geometria-px-DHMPUsxC.js +0 -639
  73. package/dist/utils-ClVgqVyJ.cjs +0 -1
  74. package/dist/utils-DrHoxxmf.js +0 -83
package/dist/tabela.js CHANGED
@@ -1,12 +1,59 @@
1
- var it = Object.defineProperty;
2
- var rt = (i, t, e) => t in i ? it(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
- var _ = (i, t, e) => rt(i, typeof t != "symbol" ? t + "" : t, e);
1
+ var ct = Object.defineProperty;
2
+ var ut = (i, t, e) => t in i ? ct(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
3
+ var v = (i, t, e) => ut(i, typeof t != "symbol" ? t + "" : t, e);
4
4
  /* empty css */
5
- import { h as I, S as qe, A as Ve, L as H, s as $e, g as Z, d as re, Z as at } from "./kit-base-CBXA66aM.js";
6
- class ot {
5
+ import { h as I, S as Ze, A as Je, L as N, s as Qe, g as re, d as le, Z as pt } from "./kit-base-CBXA66aM.js";
6
+ function j(i) {
7
+ if (!i) return null;
8
+ const t = i.trim();
9
+ if (!t) return null;
10
+ try {
11
+ return JSON.parse(t);
12
+ } catch {
13
+ return null;
14
+ }
15
+ }
16
+ function U(i) {
17
+ return Array.isArray(i) ? i : void 0;
18
+ }
19
+ function ht(i) {
20
+ const t = {};
21
+ typeof i.querySelectorAll == "function" && i.querySelectorAll('script[type="application/json"]').forEach((n) => {
22
+ if (n.parentElement !== i) return;
23
+ const l = j(n.textContent);
24
+ if (l === null) return;
25
+ const d = n.getAttribute("data-tabela");
26
+ if (d === "colunas") {
27
+ const s = U(l);
28
+ s && (t.colunas = s);
29
+ return;
30
+ }
31
+ if (d === "dados") {
32
+ const s = U(l);
33
+ s && (t.dados = s);
34
+ return;
35
+ }
36
+ if (d === "rodape") {
37
+ const s = U(l);
38
+ s && (t.rodape = s);
39
+ return;
40
+ }
41
+ if (typeof l == "object" && !Array.isArray(l)) {
42
+ const s = l, h = U(s.colunas), u = U(s.dados), p = U(s.rodape);
43
+ h && (t.colunas = h), u && (t.dados = u), p && (t.rodape = p);
44
+ }
45
+ });
46
+ const e = j(i.getAttribute("colunas"));
47
+ Array.isArray(e) && (t.colunas = e);
48
+ const r = j(i.getAttribute("dados"));
49
+ Array.isArray(r) && (t.dados = r);
50
+ const a = j(i.getAttribute("rodape"));
51
+ return Array.isArray(a) && (t.rodape = a), t;
52
+ }
53
+ class ft {
7
54
  constructor(t) {
8
- _(this, "autoFetchController", null);
9
- _(this, "emVoo", null);
55
+ v(this, "autoFetchController", null);
56
+ v(this, "emVoo", null);
10
57
  this.ctx = t;
11
58
  }
12
59
  /**
@@ -40,14 +87,14 @@ class ot {
40
87
  this.ctx.onCarregandoAlterado(!0), this.emitir("ui-fetch-start", { url: t });
41
88
  let o = "rede", n;
42
89
  try {
43
- const c = { ...((d = (l = this.ctx).getOpcoes) == null ? void 0 : d.call(l)) ?? {}, signal: e.signal }, p = await (((h = (s = this.ctx).getFetcher) == null ? void 0 : h.call(s)) ?? ((b, x) => fetch(b, x)))(t, c);
44
- if (!p.ok)
45
- throw o = "http", n = p.status, new Error(`HTTP ${p.status}: ${p.statusText}`);
90
+ const u = { ...((d = (l = this.ctx).getOpcoes) == null ? void 0 : d.call(l)) ?? {}, signal: e.signal }, c = await (((h = (s = this.ctx).getFetcher) == null ? void 0 : h.call(s)) ?? ((b, _) => fetch(b, _)))(t, u);
91
+ if (!c.ok)
92
+ throw o = "http", n = c.status, new Error(`HTTP ${c.status}: ${c.statusText}`);
46
93
  o = "json";
47
- const f = await p.json(), m = Array.isArray(f) ? f : (f == null ? void 0 : f.dados) || (f == null ? void 0 : f.items) || (f == null ? void 0 : f.data) || (f == null ? void 0 : f.rows) || [], g = Array.isArray(m) ? m : [];
94
+ const f = await c.json(), m = Array.isArray(f) ? f : (f == null ? void 0 : f.dados) || (f == null ? void 0 : f.items) || (f == null ? void 0 : f.data) || (f == null ? void 0 : f.rows) || [], g = Array.isArray(m) ? m : [];
48
95
  return r() ? (o = "render", this.ctx.onDadosRecebidos(g), a(), this.ctx.onCarregandoAlterado(!1), this.emitir("ui-fetch-sucesso", { url: t, total: g.length, dados: g }), !0) : !1;
49
- } catch (c) {
50
- return (c == null ? void 0 : c.name) === "AbortError" ? (r() && (a(), this.ctx.onCarregandoAlterado(!1)), this.emitir("ui-fetch-cancelado", { url: t }), !1) : (r() && (a(), this.ctx.onCarregandoAlterado(!1), this.erro(t, c, o, n)), !1);
96
+ } catch (u) {
97
+ return (u == null ? void 0 : u.name) === "AbortError" ? (r() && (a(), this.ctx.onCarregandoAlterado(!1)), this.emitir("ui-fetch-cancelado", { url: t }), !1) : (r() && (a(), this.ctx.onCarregandoAlterado(!1), this.erro(t, u, o, n)), !1);
51
98
  }
52
99
  }
53
100
  /** Cancela a requisição em andamento (se houver) e libera o indicador de carregamento. */
@@ -61,35 +108,35 @@ class ot {
61
108
  }
62
109
  }
63
110
  }
64
- const nt = ["id", "_id", "codigo", "key"];
65
- function st(i, t) {
111
+ const mt = ["id", "_id", "codigo", "key"];
112
+ function bt(i, t) {
66
113
  return i != null && (i === t || String(i) === String(t));
67
114
  }
68
- function ze(i, t) {
115
+ function qe(i, t) {
69
116
  let e = -1;
70
117
  return typeof i == "number" && Number.isInteger(i) ? e = i : typeof i == "string" && /^\d+$/.test(i.trim()) && (e = parseInt(i.trim(), 10)), e >= 0 && e < t ? e : -1;
71
118
  }
72
- function lt(i, t, e = "id", r = !1) {
119
+ function gt(i, t, e = "id", r = !1) {
73
120
  if (!i || i.length === 0) return -1;
74
121
  if (typeof t == "function")
75
122
  return i.findIndex(t);
76
- if (r) return ze(t, i.length);
77
- const a = [e, ...nt.filter((o) => o !== e)];
123
+ if (r) return qe(t, i.length);
124
+ const a = [e, ...mt.filter((o) => o !== e)];
78
125
  for (const o of a) {
79
- const n = i.findIndex((l) => !!l && typeof l == "object" && st(l[o], t));
126
+ const n = i.findIndex((l) => !!l && typeof l == "object" && bt(l[o], t));
80
127
  if (n !== -1) return n;
81
128
  }
82
- return ze(t, i.length);
129
+ return qe(t, i.length);
83
130
  }
84
- class dt {
131
+ class vt {
85
132
  constructor(t) {
86
- _(this, "modo", "unica");
87
- _(this, "itensSelecionadosLista", []);
88
- _(this, "indicesSelecionadosLista", []);
89
- _(this, "itensSelecionadosSet", /* @__PURE__ */ new Set());
90
- _(this, "indicesSelecionadosSet", /* @__PURE__ */ new Set());
91
- _(this, "chavesSelecionadasSet", /* @__PURE__ */ new Set());
92
- _(this, "linhasMarcadas", /* @__PURE__ */ new Set());
133
+ v(this, "modo", "unica");
134
+ v(this, "itensSelecionadosLista", []);
135
+ v(this, "indicesSelecionadosLista", []);
136
+ v(this, "itensSelecionadosSet", /* @__PURE__ */ new Set());
137
+ v(this, "indicesSelecionadosSet", /* @__PURE__ */ new Set());
138
+ v(this, "chavesSelecionadasSet", /* @__PURE__ */ new Set());
139
+ v(this, "linhasMarcadas", /* @__PURE__ */ new Set());
93
140
  this.ctx = t;
94
141
  }
95
142
  /** Reconstrói os índices de busca rápida O(1) a partir das listas atuais. */
@@ -269,8 +316,8 @@ class dt {
269
316
  this.linhasMarcadas.delete(s);
270
317
  continue;
271
318
  }
272
- const h = s.getAttribute("data-index"), c = h !== null ? parseInt(h, 10) : -1, u = c >= 0 ? e[c] : null;
273
- (u ? this.isItemSelecionado(u, c) : !1) || this.aplicarVisualLinha(s, !1);
319
+ const h = s.getAttribute("data-index"), u = h !== null ? parseInt(h, 10) : -1, p = u >= 0 ? e[u] : null;
320
+ (p ? this.isItemSelecionado(p, u) : !1) || this.aplicarVisualLinha(s, !1);
274
321
  }
275
322
  if (this.indicesSelecionadosSet.size === 0) return;
276
323
  let r = t.firstElementChild;
@@ -288,7 +335,7 @@ class dt {
288
335
  }
289
336
  }
290
337
  rolarPara(t, e) {
291
- const r = this.ctx.getDadosExibicao(), a = lt(r, t, this.ctx.getChaveId(), (e == null ? void 0 : e.porIndice) === !0);
338
+ const r = this.ctx.getDadosExibicao(), a = gt(r, t, this.ctx.getChaveId(), (e == null ? void 0 : e.porIndice) === !0);
292
339
  if (a === -1)
293
340
  return !1;
294
341
  if (e != null && e.selecionar) {
@@ -304,7 +351,7 @@ class dt {
304
351
  return this.ctx.onRolarParaIndice(a, (e == null ? void 0 : e.comportamento) || "smooth");
305
352
  }
306
353
  }
307
- function ct(i, t, e) {
354
+ function _t(i, t, e) {
308
355
  return i !== e ? {
309
356
  idColuna: e,
310
357
  direcao: "asc"
@@ -319,51 +366,51 @@ function ct(i, t, e) {
319
366
  direcao: "asc"
320
367
  };
321
368
  }
322
- const ut = new Intl.Collator("pt-BR", { numeric: !0, sensitivity: "base" });
323
- function Le(i) {
369
+ const xt = new Intl.Collator("pt-BR", { numeric: !0, sensitivity: "base" });
370
+ function Fe(i) {
324
371
  if (i instanceof Date) return i.getTime();
325
372
  if (typeof i == "number") return i;
326
373
  const t = String(i).trim(), e = /^(\d{1,2})\/(\d{1,2})\/(\d{4})(?:[ T](\d{1,2}):(\d{2}))?$/.exec(t);
327
374
  return e ? new Date(+e[3], +e[2] - 1, +e[1], +(e[4] ?? 0), +(e[5] ?? 0)).getTime() : Date.parse(t);
328
375
  }
329
- function pt(i, t, e) {
376
+ function yt(i, t, e) {
330
377
  if (e === "data" || !e && (i instanceof Date || t instanceof Date)) {
331
- const r = Le(i), a = Le(t);
378
+ const r = Fe(i), a = Fe(t);
332
379
  if (!Number.isNaN(r) && !Number.isNaN(a)) return r - a;
333
380
  } else if (e === "numero" || !e && typeof i == "number" && typeof t == "number") {
334
381
  const r = Number(i), a = Number(t);
335
382
  if (!Number.isNaN(r) && !Number.isNaN(a)) return r - a;
336
383
  } else if (e === "booleano" || !e && typeof i == "boolean" && typeof t == "boolean")
337
384
  return +!!i - +!!t;
338
- return ut.compare(String(i), String(t));
385
+ return xt.compare(String(i), String(t));
339
386
  }
340
- function ht(i, t, e, r) {
387
+ function Et(i, t, e, r) {
341
388
  if (!t || e === "original")
342
389
  return [...i];
343
390
  const a = e === "desc" ? -1 : 1;
344
391
  return [...i].sort((o, n) => {
345
392
  const l = o[t], d = n[t], s = l == null, h = d == null;
346
- return s || h ? s === h ? 0 : s ? 1 : -1 : r != null && r.comparador ? r.comparador(l, d, o, n) * a : l === d ? 0 : pt(l, d, r == null ? void 0 : r.tipo) * a;
393
+ return s || h ? s === h ? 0 : s ? 1 : -1 : r != null && r.comparador ? r.comparador(l, d, o, n) * a : l === d ? 0 : yt(l, d, r == null ? void 0 : r.tipo) * a;
347
394
  });
348
395
  }
349
- function de(i) {
396
+ function me(i) {
350
397
  return i.normalize("NFD").replace(/[̀-ͯ]/g, "").toLowerCase();
351
398
  }
352
- const ft = new Intl.DateTimeFormat("pt-BR");
353
- class mt {
399
+ const At = new Intl.DateTimeFormat("pt-BR");
400
+ class wt {
354
401
  constructor() {
355
- _(this, "dadosOriginais", []);
356
- _(this, "dadosExibicao", []);
357
- _(this, "indicePorItem", null);
358
- _(this, "colunaOrdenada", null);
359
- _(this, "direcaoOrdenacao", "original");
360
- _(this, "ultimoFiltro", "");
402
+ v(this, "dadosOriginais", []);
403
+ v(this, "dadosExibicao", []);
404
+ v(this, "indicePorItem", null);
405
+ v(this, "colunaOrdenada", null);
406
+ v(this, "direcaoOrdenacao", "original");
407
+ v(this, "ultimoFiltro", "");
361
408
  /** Colunas declaradas: o filtro olha só elas (vazio = todos os campos do registro). */
362
- _(this, "colunasFiltro", []);
363
- _(this, "colunas", []);
364
- _(this, "colunasPorId", /* @__PURE__ */ new Map());
409
+ v(this, "colunasFiltro", []);
410
+ v(this, "colunas", []);
411
+ v(this, "colunasPorId", /* @__PURE__ */ new Map());
365
412
  /** Ordenação feita pelo servidor: a tabela guarda coluna/direção (indicador) mas não reordena os dados. */
366
- _(this, "ordenacaoRemota", !1);
413
+ v(this, "ordenacaoRemota", !1);
367
414
  }
368
415
  setColunas(t) {
369
416
  this.colunas = t, this.colunasPorId = new Map(t.map((e) => [e.id, e])), this.colunaOrdenada && this.aplicarOrdenacao();
@@ -409,25 +456,25 @@ class mt {
409
456
  }
410
457
  alternarOrdenacaoColuna(t) {
411
458
  if (!t.ordenavel) return null;
412
- const e = ct(this.colunaOrdenada, this.direcaoOrdenacao, t.id);
459
+ const e = _t(this.colunaOrdenada, this.direcaoOrdenacao, t.id);
413
460
  return this.colunaOrdenada = e.idColuna, this.direcaoOrdenacao = e.direcao, this.aplicarOrdenacao(), e;
414
461
  }
415
462
  /** Recalcula a lista exibida: filtro vigente e, sobre o resultado, a ordenação da coluna (valem juntos). */
416
463
  aplicarOrdenacao() {
417
464
  const t = this.ultimoFiltro, e = t ? this.dadosOriginais.filter((a) => this.casaFiltro(a, t)) : this.dadosOriginais, r = this.colunaOrdenada ? this.colunas.find((a) => a.id === this.colunaOrdenada) : null;
418
- this.dadosExibicao = this.ordenacaoRemota ? [...e] : ht(e, this.colunaOrdenada, this.direcaoOrdenacao, r);
465
+ this.dadosExibicao = this.ordenacaoRemota ? [...e] : Et(e, this.colunaOrdenada, this.direcaoOrdenacao, r);
419
466
  }
420
467
  casaFiltro(t, e) {
421
468
  return (this.colunas.length > 0 ? this.colunasFiltro : this.colunasFiltro.length > 0 ? this.colunasFiltro : Object.keys(t)).some((a) => {
422
469
  const o = t[a], n = this.colunasPorId.get(a);
423
470
  if (n != null && n.textoFiltro)
424
471
  try {
425
- if (de(String(n.textoFiltro(o, t) ?? "")).includes(e)) return !0;
472
+ if (me(String(n.textoFiltro(o, t) ?? "")).includes(e)) return !0;
426
473
  } catch {
427
474
  }
428
475
  if (o == null || typeof o == "object" && !(o instanceof Date)) return !1;
429
- const l = o instanceof Date ? `${o.toISOString()} ${ft.format(o)}` : String(o);
430
- return de(l).includes(e);
476
+ const l = o instanceof Date ? `${o.toISOString()} ${At.format(o)}` : String(o);
477
+ return me(l).includes(e);
431
478
  });
432
479
  }
433
480
  /** Há um filtro de texto aplicado (o vazio vira "sem resultados"). */
@@ -435,31 +482,31 @@ class mt {
435
482
  return this.ultimoFiltro !== "";
436
483
  }
437
484
  filtrar(t) {
438
- this.ultimoFiltro = de((t || "").trim()), this.aplicarOrdenacao();
485
+ this.ultimoFiltro = me((t || "").trim()), this.aplicarOrdenacao();
439
486
  }
440
487
  }
441
- const bt = ':host{display:block;width:100%;box-sizing:border-box;font-family:inherit;color:var(--ui-cor-texto, #e1e1e6);position:relative}.ui-tabela-container{width:100%;max-width:100%;max-height:var(--ui-tabela-max-height, 500px);overflow-x:auto;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:var(--ui-raio-borda, 6px);background:var(--ui-degrade-interno, var(--ui-tabela-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417))));box-sizing:border-box;position:relative}.ui-tabela{width:100%;border-collapse:separate;border-spacing:0;text-align:left;font-size:var(--ui-tabela-fonte-tamanho, 14px);font-family:var(--ui-fonte-base, inherit);font-variant-numeric:tabular-nums}.ui-tabela thead{background:var(--ui-tabela-cabecalho-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1a1a1e)))}.ui-tabela th{position:sticky;top:0;z-index:10;padding:var(--ui-tabela-padding-normal, 10px 16px);background:var(--ui-tabela-cabecalho-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1a1a1e)));color:var(--ui-cor-texto-secundario, #9696a6);font-size:var(--ui-tabela-th-fonte-tamanho, 13px);font-weight:600;letter-spacing:.02em;border-bottom:2px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box}.ui-tabela th[aria-sort=ascending],.ui-tabela th[aria-sort=descending]{color:var(--ui-cor-texto, #e1e1e6)}.ui-tabela__resizer{position:absolute;top:0;right:0;width:8px;height:100%;cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;z-index:20;background:linear-gradient(var(--ui-cor-borda, rgba(255, 255, 255, .12)),var(--ui-cor-borda, rgba(255, 255, 255, .12))) center / 1px 60% no-repeat;transition:background-color .15s ease}.ui-tabela__resizer:hover,.ui-tabela__resizer:focus-visible,.ui-tabela__resizer--ativo{background:var(--ui-cor-primaria, #00E08A);outline:none}:host([densidade="compacta"]) th,:host([densidade="compacta"]) td,:host([density="compact"]) th,:host([density="compact"]) td{padding:var(--ui-tabela-padding-compacta, 4px 8px)}:host([densidade="normal"]) th,:host([densidade="normal"]) td,:host([density="normal"]) th,:host([density="normal"]) td{padding:var(--ui-tabela-padding-normal, 10px 16px)}:host([densidade="relaxada"]) th,:host([densidade="relaxada"]) td,:host([density="relaxed"]) th,:host([density="relaxed"]) td{padding:var(--ui-tabela-padding-relaxada, 16px 20px)}:host([altura-linha]) td,:host([row-height]) td{height:var(--ui-tabela-altura-linha);box-sizing:border-box;padding-top:0;padding-bottom:0;overflow:hidden;white-space:nowrap}.ui-tabela__header-content{display:inline-flex;align-items:center;vertical-align:middle;width:100%;box-sizing:border-box}.ui-tabela__header-text{margin-right:var(--ui-tabela-th-gap, 6px);display:inline-block;min-width:0;overflow:hidden;text-overflow:ellipsis}.ui-tabela__sort-icon{width:var(--ui-tabela-th-icone, 16px);min-width:var(--ui-tabela-th-icone, 16px);flex:none;display:inline-flex;justify-content:center;align-items:center}.ui-tabela th.ui-tabela__th--ordenavel{cursor:pointer}@media (hover: hover){.ui-tabela th.ui-tabela__th--ordenavel:hover{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 8%,var(--ui-cor-fundo-elevado, #1a1a1e));color:var(--ui-cor-texto, #e1e1e6)}}.ui-tabela__ordenar{all:unset;display:flex;width:100%;box-sizing:border-box;cursor:pointer;font:inherit;color:inherit;text-align:inherit}.ui-tabela__ordenar:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:2px;border-radius:var(--ui-raio-sm, 4px)}.ui-tabela tbody tr:focus{outline:none}.ui-tabela tbody tr:focus-visible{outline:2px solid var(--ui-tabela-cor-foco, var(--ui-cor-texto, #e1e1e6));outline-offset:-2px;background:var(--ui-tabela-hover, color-mix(in srgb, var(--ui-cor-texto, #e1e1e6) 8%, transparent))}.ui-tabela__sort-arrow{display:inline-block;width:14px;height:14px;vertical-align:middle;shape-rendering:geometricPrecision;fill:var(--ui-cor-primaria, #00E08A)}.ui-tabela__sort-arrow path{transition:opacity .15s ease;opacity:.35}.ui-tabela__sort-arrow--asc .seta-cima,.ui-tabela__sort-arrow--desc .seta-baixo{opacity:1}.ui-tabela__sort-arrow--inativo{fill:var(--ui-cor-texto-secundario, #9696a6)}.ui-tabela__sort-arrow--inativo path{opacity:.6}.ui-tabela td{padding:var(--ui-tabela-padding-normal, 10px 16px);border-bottom:1px solid color-mix(in srgb,var(--ui-cor-borda, rgba(255, 255, 255, .12)) 60%,transparent);white-space:nowrap;vertical-align:middle;color:var(--ui-cor-texto, #e1e1e6);box-sizing:border-box}.ui-tabela__cell-content{display:inline-flex;align-items:center;vertical-align:middle}.ui-tabela__cell-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.ui-tabela--alinhar-esquerda{text-align:left}.ui-tabela--alinhar-esquerda .ui-tabela__header-content,.ui-tabela--alinhar-esquerda .ui-tabela__cell-content{justify-content:flex-start}.ui-tabela--alinhar-centro{text-align:center}.ui-tabela--alinhar-centro .ui-tabela__header-content,.ui-tabela--alinhar-centro .ui-tabela__cell-content{justify-content:center}.ui-tabela--alinhar-direita{text-align:right}.ui-tabela--alinhar-direita .ui-tabela__header-content,.ui-tabela--alinhar-direita .ui-tabela__cell-content{justify-content:flex-end}.ui-tabela tbody tr[data-index]{cursor:pointer}.ui-tabela tbody tr.ui-tabela__tr--par{background:var(--ui-tabela-zebra, color-mix(in srgb, var(--ui-cor-texto, #e1e1e6) 4%, transparent))}@media (hover: hover){.ui-tabela tbody tr[data-index]:hover{background:var(--ui-tabela-hover, color-mix(in srgb, var(--ui-cor-texto, #e1e1e6) 8%, transparent))}}.ui-tabela tbody tr[data-index]:active{background:var(--ui-tabela-hover, color-mix(in srgb, var(--ui-cor-texto, #e1e1e6) 12%, transparent))}:host(:not([selecionar-texto])) .ui-tabela tbody td{-webkit-user-select:none;user-select:none}.ui-tabela tbody tr.ui-tabela__tr--selecionada,.ui-tabela tbody tr[data-selecionada=true]{background:var(--ui-tabela-selecionada, var(--ui-cor-linha-selecionada, color-mix(in srgb, var(--ui-cor-primaria, #00E08A) 14%, transparent)))}.ui-tabela tbody tr.ui-tabela__tr--selecionada td:first-child,.ui-tabela tbody tr[data-selecionada=true] td:first-child{box-shadow:inset 3px 0 0 var(--ui-cor-primaria, #00E08A)}@media (hover: hover){.ui-tabela tbody tr.ui-tabela__tr--selecionada:hover,.ui-tabela tbody tr[data-selecionada=true]:hover{background:var(--ui-tabela-selecionada-hover, var(--ui-cor-linha-selecionada-hover, color-mix(in srgb, var(--ui-cor-primaria, #00E08A) 22%, transparent)))}}.ui-tabela__virtual-spacer td{padding:0!important;border:none!important;height:inherit;background:transparent!important}.ui-tabela__empty{padding:40px 24px;text-align:center;color:var(--ui-cor-texto-secundario, #9696a6);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-sizing:border-box}.ui-tabela__empty-icon{width:32px;height:32px;opacity:.5;fill:currentColor}.ui-tabela__empty-text{font-size:14px;font-weight:500;color:var(--ui-cor-texto-secundario, #9696a6)}.ui-tabela__erro{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px;padding:10px 14px;border:1px solid var(--ui-cor-texto-erro, #ff5555);border-left-width:4px;border-radius:var(--ui-raio-borda, 6px);background:color-mix(in srgb,var(--ui-cor-texto-erro, #ff5555) 10%,transparent);color:var(--ui-cor-texto, #e1e1e6);font-size:14px;box-sizing:border-box}.ui-tabela__erro-texto{flex:1 1 200px;min-width:0}.ui-tabela__erro-detalhe{display:block;margin-top:2px;font-size:12px;color:var(--ui-cor-texto-secundario, #9696a6);overflow-wrap:anywhere}.ui-tabela__erro-acao,.ui-tabela__prompt-actions button{background:var(--ui-cor-botao-secundario-fundo, rgba(255, 255, 255, .12));color:var(--ui-cor-texto, #e1e1e6);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));padding:6px 12px;border-radius:var(--ui-raio-sm, 4px);font:inherit;cursor:pointer}.ui-tabela__erro-acao:hover,.ui-tabela__prompt-actions button:hover{background:var(--ui-cor-botao-secundario-hover, rgba(255, 255, 255, .2))}.ui-tabela__erro-acao:focus-visible,.ui-tabela__prompt-actions button:focus-visible,.ui-tabela__prompt-dialog input:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:2px}.ui-tabela__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.ui-tabela__loading{position:absolute;top:0;left:0;right:0;bottom:0;background:color-mix(in srgb,var(--ui-cor-superficie, #141417) 72%,transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;z-index:50;color:var(--ui-cor-texto, #e1e1e6);font-size:14px}.ui-tabela__spinner{width:32px;height:32px;border:3px solid color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 15%,transparent);border-top-color:var(--ui-cor-primaria, #00E08A);border-radius:50%;animation:ui-tabela-spin .8s linear infinite}@keyframes ui-tabela-spin{to{transform:rotate(360deg)}}.ui-tabela__prompt-dialog{margin:0;max-width:calc(100vw - 16px);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .2));border-radius:var(--ui-raio-borda, 6px);background:var(--ui-tabela-dialogo-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1a1a1e)));color:var(--ui-cor-texto, #e1e1e6);padding:12px;box-shadow:var(--ui-sombra-lg, 0 8px 32px rgba(0, 0, 0, .8));font-family:inherit;font-size:14px}.ui-tabela__prompt-dialog::backdrop{background:#0000004d}.ui-tabela__prompt-title{display:block;margin-bottom:8px;font-weight:500}.ui-tabela__prompt-dialog input{width:100%;padding:6px 8px;border-radius:var(--ui-raio-sm, 4px);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .2));background:var(--ui-cor-superficie, #141417);color:var(--ui-cor-texto, #e1e1e6);margin-bottom:8px;box-sizing:border-box;font:inherit}.ui-tabela__prompt-dialog input[aria-invalid=true]{border-color:var(--ui-cor-texto-erro, #ff5555)}.ui-tabela__prompt-erro{min-height:1.2em;margin-bottom:8px;font-size:12px;color:var(--ui-cor-texto-erro, #ff5555)}.ui-tabela__prompt-actions{display:flex;justify-content:flex-end;gap:8px}.ui-tabela__prompt-actions button:last-child{background:var(--ui-cor-primaria, #00E08A);border-color:transparent;color:var(--ui-cor-texto-sobre-primaria, #000000);font-weight:600}.ui-tabela__prompt-actions button:last-child:hover{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 85%,var(--ui-cor-texto, #e1e1e6))}@media (pointer: coarse){.ui-tabela__resizer{width:16px}:host(:not([altura-linha]):not([row-height])) .ui-tabela tbody tr[data-index]{height:44px}}@media (max-width: 640px){.ui-tabela th{padding:8px 10px;font-size:12px}.ui-tabela td{padding:8px 10px;font-size:13px}}@media (prefers-reduced-motion: reduce){.ui-tabela__resizer,.ui-tabela__sort-arrow path,:host:before,:host:after{transition:none}.ui-tabela__spinner{animation-duration:2.4s}}.ui-tabela th.ui-tabela__celula--fixa-esquerda,.ui-tabela th.ui-tabela__celula--fixa-direita{position:sticky;top:0;z-index:15}.ui-tabela td.ui-tabela__celula--fixa-esquerda,.ui-tabela td.ui-tabela__celula--fixa-direita{position:sticky;z-index:5;background:var(--ui-tabela-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417)))}.ui-tabela tbody tr.ui-tabela__tr--par td.ui-tabela__celula--fixa-esquerda,.ui-tabela tbody tr.ui-tabela__tr--par td.ui-tabela__celula--fixa-direita{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 4%,var(--ui-tabela-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417))))}@media (hover: hover){.ui-tabela tbody tr[data-index]:hover td.ui-tabela__celula--fixa-esquerda,.ui-tabela tbody tr[data-index]:hover td.ui-tabela__celula--fixa-direita{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 8%,var(--ui-tabela-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417))))}}.ui-tabela tbody tr.ui-tabela__tr--selecionada td.ui-tabela__celula--fixa-esquerda,.ui-tabela tbody tr.ui-tabela__tr--selecionada td.ui-tabela__celula--fixa-direita,.ui-tabela tbody tr[data-selecionada=true] td.ui-tabela__celula--fixa-esquerda,.ui-tabela tbody tr[data-selecionada=true] td.ui-tabela__celula--fixa-direita{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 14%,var(--ui-tabela-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417))))}@media (hover: hover){.ui-tabela tbody tr.ui-tabela__tr--selecionada:hover td.ui-tabela__celula--fixa-esquerda,.ui-tabela tbody tr.ui-tabela__tr--selecionada:hover td.ui-tabela__celula--fixa-direita,.ui-tabela tbody tr[data-selecionada=true]:hover td.ui-tabela__celula--fixa-esquerda,.ui-tabela tbody tr[data-selecionada=true]:hover td.ui-tabela__celula--fixa-direita{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 22%,var(--ui-tabela-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417))))}}.ui-tabela .ui-tabela__celula--fixa-esquerda-ultima{border-right:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-tabela .ui-tabela__celula--fixa-direita-primeira{border-left:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12))}:host:before,:host:after{content:"";position:absolute;top:1px;bottom:1px;width:var(--ui-tabela-sombra-largura, 16px);pointer-events:none;opacity:0;z-index:25;transition:opacity .15s ease}:host:before{left:1px;border-radius:var(--ui-raio-borda, 6px) 0 0 var(--ui-raio-borda, 6px);background:linear-gradient(to right,var(--ui-tabela-sombra-scroll, rgba(0, 0, 0, .28)),transparent)}:host:after{right:1px;border-radius:0 var(--ui-raio-borda, 6px) var(--ui-raio-borda, 6px) 0;background:linear-gradient(to left,var(--ui-tabela-sombra-scroll, rgba(0, 0, 0, .28)),transparent)}:host([data-scroll-esquerda="true"]):before,:host([data-scroll-direita="true"]):after{opacity:1}:host(.degrade),:host(.gradiente),:host([data-degrade]:not([data-degrade="false"])),.ui-tabela-container[data-degrade]:not([data-degrade=false]){--ui-tabela-fundo: var(--ui-gradiente-superficie);--ui-tabela-cabecalho-fundo: var(--ui-gradiente-elevado);--ui-tabela-dialogo-fundo: var(--ui-gradiente-elevado)}';
442
- function je(i) {
488
+ const Ct = ':host{display:block;width:100%;box-sizing:border-box;font-family:inherit;color:var(--ui-cor-texto, #e1e1e6);position:relative}.ui-tabela-container{width:100%;max-width:100%;max-height:var(--ui-tabela-max-height, 500px);overflow-x:auto;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:var(--ui-raio-borda, 6px);background:var(--ui-degrade-interno, var(--ui-tabela-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417))));box-sizing:border-box;position:relative}.ui-tabela{width:100%;border-collapse:separate;border-spacing:0;text-align:left;font-size:var(--ui-tabela-fonte-tamanho, 14px);font-family:var(--ui-fonte-base, inherit);font-variant-numeric:tabular-nums}.ui-tabela thead{background:var(--ui-tabela-cabecalho-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1a1a1e)))}.ui-tabela th{position:sticky;top:0;z-index:10;padding:var(--ui-tabela-padding-normal, 10px 16px);background:var(--ui-tabela-cabecalho-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1a1a1e)));color:var(--ui-cor-texto-secundario, #9696a6);font-size:var(--ui-tabela-th-fonte-tamanho, 13px);font-weight:600;letter-spacing:.02em;border-bottom:2px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));white-space:nowrap;-webkit-user-select:none;user-select:none;box-sizing:border-box}.ui-tabela th[aria-sort=ascending],.ui-tabela th[aria-sort=descending]{color:var(--ui-cor-texto, #e1e1e6)}.ui-tabela__resizer{position:absolute;top:0;right:0;width:8px;height:100%;cursor:col-resize;-webkit-user-select:none;user-select:none;touch-action:none;z-index:20;background:linear-gradient(var(--ui-cor-borda, rgba(255, 255, 255, .12)),var(--ui-cor-borda, rgba(255, 255, 255, .12))) center / 1px 60% no-repeat;transition:background-color .15s ease}.ui-tabela__resizer:hover,.ui-tabela__resizer:focus-visible,.ui-tabela__resizer--ativo{background:var(--ui-cor-primaria, #00E08A);outline:none}:host([densidade="compacta"]) th,:host([densidade="compacta"]) td,:host([density="compact"]) th,:host([density="compact"]) td{padding:var(--ui-tabela-padding-compacta, 4px 8px)}:host([densidade="normal"]) th,:host([densidade="normal"]) td,:host([density="normal"]) th,:host([density="normal"]) td{padding:var(--ui-tabela-padding-normal, 10px 16px)}:host([densidade="relaxada"]) th,:host([densidade="relaxada"]) td,:host([density="relaxed"]) th,:host([density="relaxed"]) td{padding:var(--ui-tabela-padding-relaxada, 16px 20px)}:host([altura-linha]) td,:host([row-height]) td{height:var(--ui-tabela-altura-linha);box-sizing:border-box;padding-top:0;padding-bottom:0;overflow:hidden;white-space:nowrap}.ui-tabela__header-content{display:inline-flex;align-items:center;vertical-align:middle;width:100%;box-sizing:border-box}.ui-tabela__header-text{margin-right:var(--ui-tabela-th-gap, 6px);display:inline-block;min-width:0;overflow:hidden;text-overflow:ellipsis}.ui-tabela__sort-icon{width:var(--ui-tabela-th-icone, 16px);min-width:var(--ui-tabela-th-icone, 16px);flex:none;display:inline-flex;justify-content:center;align-items:center}.ui-tabela th.ui-tabela__th--ordenavel{cursor:pointer}@media (hover: hover){.ui-tabela th.ui-tabela__th--ordenavel:hover{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 8%,var(--ui-cor-fundo-elevado, #1a1a1e));color:var(--ui-cor-texto, #e1e1e6)}}.ui-tabela__ordenar{all:unset;display:flex;width:100%;box-sizing:border-box;cursor:pointer;font:inherit;color:inherit;text-align:inherit}.ui-tabela__ordenar:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:2px;border-radius:var(--ui-raio-sm, 4px)}.ui-tabela tbody tr:focus{outline:none}.ui-tabela tbody tr:focus-visible{outline:2px solid var(--ui-tabela-cor-foco, var(--ui-cor-texto, #e1e1e6));outline-offset:-2px;background:var(--ui-tabela-hover, color-mix(in srgb, var(--ui-cor-texto, #e1e1e6) 8%, transparent))}.ui-tabela__sort-arrow{display:inline-block;width:14px;height:14px;vertical-align:middle;shape-rendering:geometricPrecision;fill:var(--ui-cor-primaria, #00E08A)}.ui-tabela__sort-arrow path{transition:opacity .15s ease;opacity:.35}.ui-tabela__sort-arrow--asc .seta-cima,.ui-tabela__sort-arrow--desc .seta-baixo{opacity:1}.ui-tabela__sort-arrow--inativo{fill:var(--ui-cor-texto-secundario, #9696a6)}.ui-tabela__sort-arrow--inativo path{opacity:.6}.ui-tabela td{padding:var(--ui-tabela-padding-normal, 10px 16px);border-bottom:1px solid color-mix(in srgb,var(--ui-cor-borda, rgba(255, 255, 255, .12)) 60%,transparent);white-space:nowrap;vertical-align:middle;color:var(--ui-cor-texto, #e1e1e6);box-sizing:border-box}.ui-tabela__cell-content{display:inline-flex;align-items:center;vertical-align:middle}.ui-tabela__cell-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.ui-tabela--alinhar-esquerda{text-align:left}.ui-tabela--alinhar-esquerda .ui-tabela__header-content,.ui-tabela--alinhar-esquerda .ui-tabela__cell-content{justify-content:flex-start}.ui-tabela--alinhar-centro{text-align:center}.ui-tabela--alinhar-centro .ui-tabela__header-content,.ui-tabela--alinhar-centro .ui-tabela__cell-content{justify-content:center}.ui-tabela--alinhar-direita{text-align:right}.ui-tabela--alinhar-direita .ui-tabela__header-content,.ui-tabela--alinhar-direita .ui-tabela__cell-content{justify-content:flex-end}.ui-tabela tbody tr[data-index]{cursor:pointer}.ui-tabela tbody tr.ui-tabela__tr--par{background:var(--ui-tabela-zebra, color-mix(in srgb, var(--ui-cor-texto, #e1e1e6) 4%, transparent))}@media (hover: hover){.ui-tabela tbody tr[data-index]:hover{background:var(--ui-tabela-hover, color-mix(in srgb, var(--ui-cor-texto, #e1e1e6) 8%, transparent))}}.ui-tabela tbody tr[data-index]:active{background:var(--ui-tabela-hover, color-mix(in srgb, var(--ui-cor-texto, #e1e1e6) 12%, transparent))}:host(:not([selecionar-texto])) .ui-tabela tbody td{-webkit-user-select:none;user-select:none}.ui-tabela tbody tr.ui-tabela__tr--selecionada,.ui-tabela tbody tr[data-selecionada=true]{background:var(--ui-tabela-selecionada, var(--ui-cor-linha-selecionada, color-mix(in srgb, var(--ui-cor-primaria, #00E08A) 14%, transparent)))}.ui-tabela tbody tr.ui-tabela__tr--selecionada td:first-child,.ui-tabela tbody tr[data-selecionada=true] td:first-child{box-shadow:inset 3px 0 0 var(--ui-cor-primaria, #00E08A)}@media (hover: hover){.ui-tabela tbody tr.ui-tabela__tr--selecionada:hover,.ui-tabela tbody tr[data-selecionada=true]:hover{background:var(--ui-tabela-selecionada-hover, var(--ui-cor-linha-selecionada-hover, color-mix(in srgb, var(--ui-cor-primaria, #00E08A) 22%, transparent)))}}.ui-tabela__virtual-spacer td{padding:0!important;border:none!important;height:inherit;background:transparent!important}.ui-tabela__empty{padding:40px 24px;text-align:center;color:var(--ui-cor-texto-secundario, #9696a6);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;box-sizing:border-box}.ui-tabela__empty-icon{width:32px;height:32px;opacity:.5;fill:currentColor}.ui-tabela__empty-text{font-size:14px;font-weight:500;color:var(--ui-cor-texto-secundario, #9696a6)}.ui-tabela__erro{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin:12px;padding:10px 14px;border:1px solid var(--ui-cor-texto-erro, #ff5555);border-left-width:4px;border-radius:var(--ui-raio-borda, 6px);background:color-mix(in srgb,var(--ui-cor-texto-erro, #ff5555) 10%,transparent);color:var(--ui-cor-texto, #e1e1e6);font-size:14px;box-sizing:border-box}.ui-tabela__erro-texto{flex:1 1 200px;min-width:0}.ui-tabela__erro-detalhe{display:block;margin-top:2px;font-size:12px;color:var(--ui-cor-texto-secundario, #9696a6);overflow-wrap:anywhere}.ui-tabela__erro-acao,.ui-tabela__prompt-actions button{background:var(--ui-cor-botao-secundario-fundo, rgba(255, 255, 255, .12));color:var(--ui-cor-texto, #e1e1e6);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));padding:6px 12px;border-radius:var(--ui-raio-sm, 4px);font:inherit;cursor:pointer}.ui-tabela__erro-acao:hover,.ui-tabela__prompt-actions button:hover{background:var(--ui-cor-botao-secundario-hover, rgba(255, 255, 255, .2))}.ui-tabela__erro-acao:focus-visible,.ui-tabela__prompt-actions button:focus-visible,.ui-tabela__prompt-dialog input:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:2px}.ui-tabela__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}.ui-tabela__loading{position:absolute;top:0;left:0;right:0;bottom:0;background:color-mix(in srgb,var(--ui-cor-superficie, #141417) 72%,transparent);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;z-index:50;color:var(--ui-cor-texto, #e1e1e6);font-size:14px}.ui-tabela__spinner{width:32px;height:32px;border:3px solid color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 15%,transparent);border-top-color:var(--ui-cor-primaria, #00E08A);border-radius:50%;animation:ui-tabela-spin .8s linear infinite}@keyframes ui-tabela-spin{to{transform:rotate(360deg)}}.ui-tabela__prompt-dialog{margin:0;max-width:calc(100vw - 16px);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .2));border-radius:var(--ui-raio-borda, 6px);background:var(--ui-tabela-dialogo-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1a1a1e)));color:var(--ui-cor-texto, #e1e1e6);padding:12px;box-shadow:var(--ui-sombra-lg, 0 8px 32px rgba(0, 0, 0, .8));font-family:inherit;font-size:14px}.ui-tabela__prompt-dialog::backdrop{background:#0000004d}.ui-tabela__prompt-title{display:block;margin-bottom:8px;font-weight:500}.ui-tabela__prompt-dialog input{width:100%;padding:6px 8px;border-radius:var(--ui-raio-sm, 4px);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .2));background:var(--ui-cor-superficie, #141417);color:var(--ui-cor-texto, #e1e1e6);margin-bottom:8px;box-sizing:border-box;font:inherit}.ui-tabela__prompt-dialog input[aria-invalid=true]{border-color:var(--ui-cor-texto-erro, #ff5555)}.ui-tabela__prompt-erro{min-height:1.2em;margin-bottom:8px;font-size:12px;color:var(--ui-cor-texto-erro, #ff5555)}.ui-tabela__prompt-actions{display:flex;justify-content:flex-end;gap:8px}.ui-tabela__prompt-actions button:last-child{background:var(--ui-cor-primaria, #00E08A);border-color:transparent;color:var(--ui-cor-texto-sobre-primaria, #000000);font-weight:600}.ui-tabela__prompt-actions button:last-child:hover{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 85%,var(--ui-cor-texto, #e1e1e6))}@media (pointer: coarse){.ui-tabela__resizer{width:16px}:host(:not([altura-linha]):not([row-height])) .ui-tabela tbody tr[data-index]{height:44px}}@media (max-width: 640px){.ui-tabela th{padding:8px 10px;font-size:12px}.ui-tabela td{padding:8px 10px;font-size:13px}}@media (prefers-reduced-motion: reduce){.ui-tabela__resizer,.ui-tabela__sort-arrow path,:host:before,:host:after{transition:none}.ui-tabela__spinner{animation-duration:2.4s}}.ui-tabela th.ui-tabela__celula--fixa-esquerda,.ui-tabela th.ui-tabela__celula--fixa-direita{position:sticky;top:0;z-index:15}.ui-tabela td.ui-tabela__celula--fixa-esquerda,.ui-tabela td.ui-tabela__celula--fixa-direita{position:sticky;z-index:5;background:var(--ui-tabela-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417)))}.ui-tabela tbody tr.ui-tabela__tr--par td.ui-tabela__celula--fixa-esquerda,.ui-tabela tbody tr.ui-tabela__tr--par td.ui-tabela__celula--fixa-direita{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 4%,var(--ui-tabela-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417))))}@media (hover: hover){.ui-tabela tbody tr[data-index]:hover td.ui-tabela__celula--fixa-esquerda,.ui-tabela tbody tr[data-index]:hover td.ui-tabela__celula--fixa-direita{background:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 8%,var(--ui-tabela-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417))))}}.ui-tabela tbody tr.ui-tabela__tr--selecionada td.ui-tabela__celula--fixa-esquerda,.ui-tabela tbody tr.ui-tabela__tr--selecionada td.ui-tabela__celula--fixa-direita,.ui-tabela tbody tr[data-selecionada=true] td.ui-tabela__celula--fixa-esquerda,.ui-tabela tbody tr[data-selecionada=true] td.ui-tabela__celula--fixa-direita{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 14%,var(--ui-tabela-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417))))}@media (hover: hover){.ui-tabela tbody tr.ui-tabela__tr--selecionada:hover td.ui-tabela__celula--fixa-esquerda,.ui-tabela tbody tr.ui-tabela__tr--selecionada:hover td.ui-tabela__celula--fixa-direita,.ui-tabela tbody tr[data-selecionada=true]:hover td.ui-tabela__celula--fixa-esquerda,.ui-tabela tbody tr[data-selecionada=true]:hover td.ui-tabela__celula--fixa-direita{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 22%,var(--ui-tabela-fundo, var(--ui-fundo-superficie, var(--ui-cor-superficie, #141417))))}}.ui-tabela .ui-tabela__celula--fixa-esquerda-ultima{border-right:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-tabela .ui-tabela__celula--fixa-direita-primeira{border-left:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12))}:host:before,:host:after{content:"";position:absolute;top:1px;bottom:1px;width:var(--ui-tabela-sombra-largura, 16px);pointer-events:none;opacity:0;z-index:25;transition:opacity .15s ease}:host:before{left:1px;border-radius:var(--ui-raio-borda, 6px) 0 0 var(--ui-raio-borda, 6px);background:linear-gradient(to right,var(--ui-tabela-sombra-scroll, rgba(0, 0, 0, .28)),transparent)}:host:after{right:1px;border-radius:0 var(--ui-raio-borda, 6px) var(--ui-raio-borda, 6px) 0;background:linear-gradient(to left,var(--ui-tabela-sombra-scroll, rgba(0, 0, 0, .28)),transparent)}:host([data-scroll-esquerda="true"]):before,:host([data-scroll-direita="true"]):after{opacity:1}:host(.degrade),:host(.gradiente),:host([data-degrade]:not([data-degrade="false"])),.ui-tabela-container[data-degrade]:not([data-degrade=false]){--ui-tabela-fundo: var(--ui-gradiente-superficie);--ui-tabela-cabecalho-fundo: var(--ui-gradiente-elevado);--ui-tabela-dialogo-fundo: var(--ui-gradiente-elevado)}.ui-tabela tfoot td{padding:var(--ui-tabela-padding-normal, 10px 16px);background:var(--ui-tabela-rodape-fundo, var(--ui-tabela-cabecalho-fundo, var(--ui-fundo-elevado, var(--ui-cor-fundo-elevado, #1a1a1e))));color:var(--ui-cor-texto, #e1e1e6);font-weight:600;border-top:2px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-bottom:none}:host([densidade="compacta"]) tfoot td,:host([density="compact"]) tfoot td{padding:var(--ui-tabela-padding-compacta, 4px 8px)}:host([densidade="relaxada"]) tfoot td,:host([density="relaxed"]) tfoot td{padding:var(--ui-tabela-padding-relaxada, 16px 20px)}:host([sem-cabecalho]) .ui-tabela thead{display:none}.ui-tabela th.ui-tabela__celula--quebrar,.ui-tabela td.ui-tabela__celula--quebrar{white-space:normal;overflow-wrap:break-word;word-break:break-word}.ui-tabela td.ui-tabela__celula--quebrar .ui-tabela__cell-content{white-space:normal;max-width:100%}.ui-tabela th.ui-tabela__celula--sem-quebra,.ui-tabela td.ui-tabela__celula--sem-quebra{white-space:nowrap}:host([modo="documento"]){color:var(--ui-doc-cor-texto, #0f172a)}:host([modo="documento"]):before,:host([modo="documento"]):after{display:none}:host([modo="documento"]) .ui-tabela-container{max-height:none;overflow:visible;border:1px solid var(--ui-doc-cor-borda, #cbd5e1);border-radius:0;background:var(--ui-doc-fundo, #ffffff)}:host([modo="documento"]) .ui-tabela{border-collapse:collapse;font-size:var(--ui-tabela-fonte-tamanho, 12px);color:var(--ui-doc-cor-texto, #0f172a)}:host([modo="documento"]) .ui-tabela thead{background:var(--ui-doc-cabecalho-fundo, #f8fafc)}:host([modo="documento"]) .ui-tabela th{position:static;background:var(--ui-doc-cabecalho-fundo, #f8fafc);color:var(--ui-doc-cor-texto, #0f172a);font-size:var(--ui-tabela-th-fonte-tamanho, 11.5px);border-bottom:1.5px solid var(--ui-doc-cor-borda-forte, #94a3b8);padding:var(--ui-tabela-padding-compacta, 5px 8px);white-space:normal;overflow-wrap:break-word;word-break:break-word;-webkit-user-select:text;user-select:text}:host([modo="documento"]) .ui-tabela td{color:var(--ui-doc-cor-texto, #0f172a);border-bottom:1px solid var(--ui-doc-cor-borda, #e2e8f0);padding:var(--ui-tabela-padding-compacta, 5px 8px);white-space:normal;overflow-wrap:break-word;word-break:break-word;-webkit-user-select:text;user-select:text}:host([modo="documento"]) .ui-tabela th.ui-tabela__celula--sem-quebra,:host([modo="documento"]) .ui-tabela td.ui-tabela__celula--sem-quebra{white-space:nowrap}:host([modo="documento"]) .ui-tabela__cell-truncate{white-space:normal;overflow:visible;text-overflow:clip}:host([modo="documento"]) .ui-tabela tfoot td{background:var(--ui-doc-rodape-fundo, #f8fafc);color:var(--ui-doc-cor-texto, #0f172a);border-top:1.5px solid var(--ui-doc-cor-borda-forte, #94a3b8);border-bottom:1px solid var(--ui-doc-cor-borda, #e2e8f0)}:host([modo="documento"]) .ui-tabela__resizer,:host([modo="documento"]) .ui-tabela__sort-icon,:host([modo="documento"]) .ui-tabela__sort-arrow{display:none}:host([modo="documento"]) .ui-tabela th.ui-tabela__th--ordenavel,:host([modo="documento"]) .ui-tabela__ordenar,:host([modo="documento"]) .ui-tabela tbody tr[data-index]{cursor:default}:host([modo="documento"]) .ui-tabela tbody tr.ui-tabela__tr--par{background:var(--ui-doc-zebra, #f8fafc)}:host([modo="documento"]) .ui-tabela tbody tr[data-index]:hover,:host([modo="documento"]) .ui-tabela tbody tr[data-index]:active,:host([modo="documento"]) .ui-tabela tbody tr.ui-tabela__tr--selecionada,:host([modo="documento"]) .ui-tabela tbody tr[data-selecionada=true]{background:transparent}:host([modo="documento"]) .ui-tabela tbody tr.ui-tabela__tr--selecionada td:first-child,:host([modo="documento"]) .ui-tabela tbody tr[data-selecionada=true] td:first-child{box-shadow:none}:host([modo="documento"]) .ui-tabela th.ui-tabela__celula--fixa-esquerda,:host([modo="documento"]) .ui-tabela th.ui-tabela__celula--fixa-direita,:host([modo="documento"]) .ui-tabela td.ui-tabela__celula--fixa-esquerda,:host([modo="documento"]) .ui-tabela td.ui-tabela__celula--fixa-direita{position:static;left:auto;right:auto;background:transparent}@media print{:host{color:#0f172a!important;background:transparent!important}:host:before,:host:after{display:none!important}.ui-tabela-container{max-height:none!important;overflow:visible!important;border-radius:0!important;border-color:#cbd5e1!important;background:#fff!important}.ui-tabela{border-collapse:collapse!important;color:#0f172a!important}.ui-tabela thead{display:table-header-group;background:#f8fafc!important}.ui-tabela tfoot{display:table-row-group;background:#f8fafc!important}.ui-tabela tbody tr,.ui-tabela tfoot tr{break-inside:avoid;page-break-inside:avoid;background:transparent!important}.ui-tabela tbody tr.ui-tabela__tr--par{background:#f8fafc!important}.ui-tabela th{position:static!important;background:#f8fafc!important;color:#0f172a!important;border-bottom:1.5px solid #94a3b8!important;white-space:normal!important;overflow-wrap:break-word;word-break:break-word}.ui-tabela td{color:#0f172a!important;border-bottom:1px solid #e2e8f0!important;white-space:normal!important;overflow-wrap:break-word;word-break:break-word;background:transparent!important;box-shadow:none!important}.ui-tabela tfoot td{background:#f8fafc!important;color:#0f172a!important;border-top:1.5px solid #94a3b8!important;border-bottom:1px solid #e2e8f0!important}.ui-tabela th.ui-tabela__celula--sem-quebra,.ui-tabela td.ui-tabela__celula--sem-quebra{white-space:nowrap!important}.ui-tabela__cell-truncate{white-space:normal!important;overflow:visible!important;text-overflow:clip!important}.ui-tabela th.ui-tabela__celula--fixa-esquerda,.ui-tabela th.ui-tabela__celula--fixa-direita,.ui-tabela td.ui-tabela__celula--fixa-esquerda,.ui-tabela td.ui-tabela__celula--fixa-direita{position:static!important;left:auto!important;right:auto!important}.ui-tabela__resizer,.ui-tabela__sort-icon,.ui-tabela__sort-arrow,.ui-tabela__loading,.ui-tabela__erro{display:none!important}}';
489
+ function we(i) {
443
490
  return i == null || i === "" ? "" : typeof i == "number" ? `${i}px` : i;
444
491
  }
445
- function He(i, t) {
492
+ function et(i, t) {
446
493
  if (t)
447
494
  for (const e of t.trim().split(/\s+/))
448
495
  e && i.classList.add(e);
449
496
  }
450
- function We(i) {
497
+ function Ce(i) {
451
498
  return i === "centro" || i === "center" ? "ui-tabela--alinhar-centro" : i === "direita" || i === "right" ? "ui-tabela--alinhar-direita" : "ui-tabela--alinhar-esquerda";
452
499
  }
453
- function Ue(i) {
500
+ function Se(i) {
454
501
  return i === "centro" || i === "center" ? "center" : i === "direita" || i === "right" ? "right" : "left";
455
502
  }
456
- function ke(i) {
503
+ function Ve(i) {
457
504
  return i === "compacta" ? 30 : i === "relaxada" ? 56 : 42;
458
505
  }
459
- function fe(i) {
506
+ function de(i) {
460
507
  return i.filter((t) => !t.oculta);
461
508
  }
462
- function gt(i) {
509
+ function St(i) {
463
510
  if (typeof i == "number") return Number.isFinite(i) && i > 0 ? i : 0;
464
511
  if (typeof i == "string") {
465
512
  const t = i.trim();
@@ -470,11 +517,11 @@ function gt(i) {
470
517
  }
471
518
  return 0;
472
519
  }
473
- function me(i, t) {
520
+ function ce(i, t) {
474
521
  const e = i.map((d) => ({ fixa: d.fixa })), r = (d) => {
475
522
  var h;
476
523
  const s = t == null ? void 0 : t[d];
477
- return s !== void 0 && Number.isFinite(s) && s > 0 ? s : gt((h = i[d]) == null ? void 0 : h.largura);
524
+ return s !== void 0 && Number.isFinite(s) && s > 0 ? s : St((h = i[d]) == null ? void 0 : h.largura);
478
525
  };
479
526
  let a = 0, o = -1;
480
527
  for (let d = 0; d < i.length; d++)
@@ -485,7 +532,7 @@ function me(i, t) {
485
532
  i[d].fixa === "direita" && (e[d].offset = `${n}px`, n += r(d), l = d);
486
533
  return l >= 0 && (e[l].primeiraDireita = !0), e;
487
534
  }
488
- function J(i, t) {
535
+ function ae(i, t) {
489
536
  i.classList.remove(
490
537
  "ui-tabela__celula--fixa-esquerda",
491
538
  "ui-tabela__celula--fixa-direita",
@@ -493,8 +540,8 @@ function J(i, t) {
493
540
  "ui-tabela__celula--fixa-direita-primeira"
494
541
  ), i.style.left = "", i.style.right = "", t != null && t.fixa && (t.fixa === "esquerda" ? (i.classList.add("ui-tabela__celula--fixa-esquerda"), t.ultimaEsquerda && i.classList.add("ui-tabela__celula--fixa-esquerda-ultima"), i.style.left = t.offset ?? "0px") : t.fixa === "direita" && (i.classList.add("ui-tabela__celula--fixa-direita"), t.primeiraDireita && i.classList.add("ui-tabela__celula--fixa-direita-primeira"), i.style.right = t.offset ?? "0px"));
495
542
  }
496
- function vt(i, t, e, r) {
497
- i.innerHTML = `<style>${bt}</style>`;
543
+ function zt(i, t, e, r) {
544
+ i.innerHTML = `<style>${Ct}</style>`;
498
545
  const a = document.createElement("div");
499
546
  a.className = "ui-tabela-container", a.setAttribute("part", "base"), e && (a.style.maxHeight = e);
500
547
  const o = document.createElement("div");
@@ -510,55 +557,58 @@ function vt(i, t, e, r) {
510
557
  d.name = "vazio", d.appendChild(n), d.appendChild(l), o.appendChild(d);
511
558
  const s = document.createElement("table");
512
559
  s.className = "ui-tabela", s.setAttribute("part", "tabela"), s.setAttribute("role", "grid");
513
- const h = document.createElement("colgroup"), c = document.createElement("thead");
514
- c.setAttribute("part", "cabecalho");
515
- const u = document.createElement("tbody");
516
- u.setAttribute("part", "corpo"), s.appendChild(h), s.appendChild(c), s.appendChild(u);
517
- const p = document.createElement("div");
518
- p.className = "ui-tabela__erro", p.setAttribute("part", "erro"), p.setAttribute("role", "alert"), p.style.display = "none";
560
+ const h = document.createElement("colgroup"), u = document.createElement("thead");
561
+ u.setAttribute("part", "cabecalho");
562
+ const p = document.createElement("tbody");
563
+ p.setAttribute("part", "corpo");
564
+ const c = document.createElement("tfoot");
565
+ c.setAttribute("part", "rodape"), c.hidden = !0, s.appendChild(h), s.appendChild(u), s.appendChild(p), s.appendChild(c);
519
566
  const f = document.createElement("div");
520
- f.className = "ui-tabela__erro-texto";
521
- const m = document.createElement("span");
522
- m.className = "ui-tabela__erro-mensagem";
567
+ f.className = "ui-tabela__erro", f.setAttribute("part", "erro"), f.setAttribute("role", "alert"), f.style.display = "none";
568
+ const m = document.createElement("div");
569
+ m.className = "ui-tabela__erro-texto";
523
570
  const g = document.createElement("span");
524
- g.className = "ui-tabela__erro-detalhe", f.appendChild(m), f.appendChild(g);
525
- const b = document.createElement("button");
526
- b.type = "button", b.className = "ui-tabela__erro-acao", b.setAttribute("part", "erro-acao"), b.textContent = "Tentar novamente";
571
+ g.className = "ui-tabela__erro-mensagem";
572
+ const b = document.createElement("span");
573
+ b.className = "ui-tabela__erro-detalhe", m.appendChild(g), m.appendChild(b);
574
+ const _ = document.createElement("button");
575
+ _.type = "button", _.className = "ui-tabela__erro-acao", _.setAttribute("part", "erro-acao"), _.textContent = "Tentar novamente";
527
576
  const x = document.createElement("slot");
528
- x.name = "erro", x.appendChild(f), x.appendChild(b), p.appendChild(x);
529
- const v = document.createElement("div");
530
- v.className = "ui-tabela__sr", v.setAttribute("role", "status"), v.setAttribute("aria-live", "polite"), a.appendChild(p), a.appendChild(s), a.appendChild(o), a.appendChild(v);
577
+ x.name = "erro", x.appendChild(m), x.appendChild(_), f.appendChild(x);
531
578
  const E = document.createElement("div");
532
- return E.className = "ui-tabela__loading", E.setAttribute("part", "carregando"), E.setAttribute("role", "status"), E.setAttribute("aria-live", "polite"), E.style.display = r ? "flex" : "none", E.innerHTML = `
579
+ E.className = "ui-tabela__sr", E.setAttribute("role", "status"), E.setAttribute("aria-live", "polite"), a.appendChild(f), a.appendChild(s), a.appendChild(o), a.appendChild(E);
580
+ const y = document.createElement("div");
581
+ return y.className = "ui-tabela__loading", y.setAttribute("part", "carregando"), y.setAttribute("role", "status"), y.setAttribute("aria-live", "polite"), y.style.display = r ? "flex" : "none", y.innerHTML = `
533
582
  <slot name="carregando">
534
583
  <div class="ui-tabela__spinner" part="spinner" aria-hidden="true"></div>
535
584
  <span class="ui-tabela__loading-texto">Carregando dados...</span>
536
585
  </slot>
537
- `, a.appendChild(E), i.appendChild(a), {
586
+ `, a.appendChild(y), i.appendChild(a), {
538
587
  containerElement: a,
539
588
  tableElement: s,
540
- theadElement: c,
541
- tbodyElement: u,
589
+ theadElement: u,
590
+ tbodyElement: p,
591
+ tfootElement: c,
542
592
  colgroupElement: h,
543
593
  emptyElement: o,
544
- loadingElement: E,
545
- erroElement: p,
546
- anuncioElement: v
594
+ loadingElement: y,
595
+ erroElement: f,
596
+ anuncioElement: E
547
597
  };
548
598
  }
549
- const X = /* @__PURE__ */ new WeakMap(), be = /* @__PURE__ */ new WeakMap();
550
- function Q(i) {
599
+ const Q = /* @__PURE__ */ new WeakMap(), ze = /* @__PURE__ */ new WeakMap();
600
+ function oe(i) {
551
601
  return i instanceof HTMLInputElement || i instanceof HTMLTextAreaElement || i instanceof HTMLSelectElement;
552
602
  }
553
- function Xe(i) {
603
+ function tt(i) {
554
604
  return i instanceof HTMLInputElement && (i.type === "checkbox" || i.type === "radio") ? i.checked : i.value;
555
605
  }
556
- function xt(i) {
606
+ function kt(i) {
557
607
  i.querySelectorAll("input, textarea, select").forEach((t) => {
558
- Q(t) && be.set(t, Xe(t));
608
+ oe(t) && ze.set(t, tt(t));
559
609
  });
560
610
  }
561
- function _t(i) {
611
+ function Lt(i) {
562
612
  try {
563
613
  const t = i;
564
614
  return { inicio: t.selectionStart ?? null, fim: t.selectionEnd ?? null };
@@ -566,16 +616,16 @@ function _t(i) {
566
616
  return { inicio: null, fim: null };
567
617
  }
568
618
  }
569
- function Et(i) {
619
+ function Mt(i) {
570
620
  const e = i.getRootNode().activeElement;
571
621
  if (!e || e === i || !i.contains(e)) return null;
572
622
  const r = e.closest("td"), a = r == null ? void 0 : r.closest("tr");
573
623
  if (!r || !a || a.parentElement !== i || !a.hasAttribute("data-index")) return null;
574
- const { inicio: o, fim: n } = _t(e), l = Q(e) ? be.get(e) : void 0, d = Q(e) ? Xe(e) : void 0, s = l !== void 0 && d !== l;
624
+ const { inicio: o, fim: n } = Lt(e), l = oe(e) ? ze.get(e) : void 0, d = oe(e) ? tt(e) : void 0, s = l !== void 0 && d !== l;
575
625
  return {
576
626
  digitado: s ? d : void 0,
577
627
  valorInicial: s ? l : void 0,
578
- item: X.get(a),
628
+ item: Q.get(a),
579
629
  dataId: a.getAttribute("data-id"),
580
630
  indiceLinha: Number(a.getAttribute("data-index")),
581
631
  indiceColuna: Array.from(a.children).indexOf(r),
@@ -584,10 +634,10 @@ function Et(i) {
584
634
  selecaoFim: n
585
635
  };
586
636
  }
587
- function yt(i, t) {
637
+ function Ot(i, t) {
588
638
  const e = Array.from(i.querySelectorAll("tr[data-index]"));
589
639
  if (t.item) {
590
- const r = e.find((a) => X.get(a) === t.item);
640
+ const r = e.find((a) => Q.get(a) === t.item);
591
641
  if (r) return r;
592
642
  }
593
643
  if (t.dataId !== null) {
@@ -596,16 +646,16 @@ function yt(i, t) {
596
646
  }
597
647
  return e.find((r) => Number(r.getAttribute("data-index")) === t.indiceLinha) ?? null;
598
648
  }
599
- function At(i, t) {
649
+ function Rt(i, t) {
600
650
  if (!t) return;
601
- const e = yt(i, t), r = e == null ? void 0 : e.children[t.indiceColuna], a = r == null ? void 0 : r.querySelectorAll("*")[t.ordinal];
602
- if (!(!a || typeof a.focus != "function") && (a.focus({ preventScroll: !0 }), t.digitado !== void 0 && Q(a) && be.get(a) === t.valorInicial && (typeof t.digitado == "boolean" ? a.checked = t.digitado : a.value = t.digitado), t.selecaoInicio !== null && t.selecaoFim !== null))
651
+ const e = Ot(i, t), r = e == null ? void 0 : e.children[t.indiceColuna], a = r == null ? void 0 : r.querySelectorAll("*")[t.ordinal];
652
+ if (!(!a || typeof a.focus != "function") && (a.focus({ preventScroll: !0 }), t.digitado !== void 0 && oe(a) && ze.get(a) === t.valorInicial && (typeof t.digitado == "boolean" ? a.checked = t.digitado : a.value = t.digitado), t.selecaoInicio !== null && t.selecaoFim !== null))
603
653
  try {
604
654
  a.setSelectionRange(t.selecaoInicio, t.selecaoFim);
605
655
  } catch {
606
656
  }
607
657
  }
608
- const wt = [
658
+ const Dt = [
609
659
  "button",
610
660
  "input",
611
661
  "select",
@@ -626,28 +676,28 @@ const wt = [
626
676
  '[role="link"]',
627
677
  '[contenteditable]:not([contenteditable="false"])',
628
678
  "[data-prevent-select]"
629
- ].join(", "), Ke = /* @__PURE__ */ new WeakMap();
630
- function Ct(i, t) {
679
+ ].join(", "), it = /* @__PURE__ */ new WeakMap();
680
+ function Nt(i, t) {
631
681
  for (const e of i.composedPath()) {
632
682
  if (e === t) return !1;
633
- if (e instanceof Element && e.matches(wt)) return !0;
683
+ if (e instanceof Element && e.matches(Dt)) return !0;
634
684
  }
635
685
  return !1;
636
686
  }
637
- function ee(i, t, e) {
687
+ function ne(i, t, e) {
638
688
  const r = document.createElement("tr");
639
689
  r.className = "ui-tabela__virtual-spacer", r.setAttribute("data-espacador", i), r.setAttribute("aria-hidden", "true"), r.style.height = `${t}px`;
640
690
  const a = document.createElement("td");
641
691
  return a.colSpan = e, r.appendChild(a), r;
642
692
  }
643
- function St(i, t, e, r, a) {
693
+ function rt(i, t, e, r, a) {
644
694
  const o = document.createElement("td"), n = i.getAlignmentClass(t.alinhamento);
645
- if (o.className = n, He(o, t.classe), o.setAttribute("part", "celula"), o.style.textAlign = i.getTextAlign(t.alinhamento), J(o, a), t.larguraMaxima !== void 0) {
695
+ if (o.className = n, t.quebrarLinha === !0 ? o.classList.add("ui-tabela__celula--quebrar") : t.quebrarLinha === !1 && o.classList.add("ui-tabela__celula--sem-quebra"), et(o, t.classe), o.setAttribute("part", "celula"), o.style.textAlign = i.getTextAlign(t.alinhamento), ae(o, a), t.larguraMaxima !== void 0) {
646
696
  const s = i.formatWidth(t.larguraMaxima);
647
- o.style.maxWidth = s, o.style.overflow = "hidden", o.style.textOverflow = "ellipsis", o.style.whiteSpace = "nowrap";
697
+ o.style.maxWidth = s, t.quebrarLinha !== !0 && (o.style.overflow = "hidden", o.style.textOverflow = "ellipsis", o.style.whiteSpace = "nowrap");
648
698
  }
649
699
  const l = document.createElement("div");
650
- l.className = "ui-tabela__cell-content", t.larguraMaxima !== void 0 && l.classList.add("ui-tabela__cell-truncate");
700
+ l.className = "ui-tabela__cell-content", t.larguraMaxima !== void 0 && t.quebrarLinha !== !0 && l.classList.add("ui-tabela__cell-truncate");
651
701
  const d = e[t.id];
652
702
  if (typeof t.render == "function")
653
703
  try {
@@ -655,8 +705,8 @@ function St(i, t, e, r, a) {
655
705
  if (h instanceof Node)
656
706
  l.appendChild(h);
657
707
  else {
658
- const c = String(h ?? "");
659
- l.textContent = c, t.larguraMaxima !== void 0 && !t.tooltip && c && (o.title = c);
708
+ const u = String(h ?? "");
709
+ l.textContent = u, t.larguraMaxima !== void 0 && !t.tooltip && u && (o.title = u);
660
710
  }
661
711
  } catch (s) {
662
712
  console.error(`[ui-tabela] Erro no render da coluna "${t.id}" (linha ${r}):`, s), l.textContent = "";
@@ -667,66 +717,66 @@ function St(i, t, e, r, a) {
667
717
  const s = d != null ? String(d) : "";
668
718
  l.textContent = s, t.larguraMaxima !== void 0 && !t.tooltip && (o.title = s);
669
719
  }
670
- return o.appendChild(l), xt(o), o;
720
+ return o.appendChild(l), kt(o), o;
671
721
  }
672
- function Ge(i, t, e, r, a, o) {
722
+ function at(i, t, e, r, a, o) {
673
723
  var s;
674
724
  const n = document.createElement("tr");
675
- X.set(n, t), Ke.set(n, i.colunas), n.setAttribute("data-index", String(e)), n.setAttribute("part", "linha"), n.setAttribute("aria-rowindex", String(e + 2)), n.setAttribute("aria-selected", "false"), n.tabIndex = e === r ? 0 : -1, e % 2 === 1 && n.classList.add("ui-tabela__tr--par");
725
+ Q.set(n, t), it.set(n, i.colunas), n.setAttribute("data-index", String(e)), n.setAttribute("part", "linha"), n.setAttribute("aria-rowindex", String(e + 2)), n.setAttribute("aria-selected", "false"), n.tabIndex = e === r ? 0 : -1, e % 2 === 1 && n.classList.add("ui-tabela__tr--par");
676
726
  const l = i.chaveId;
677
727
  t[l] != null ? n.setAttribute("data-id", String(t[l])) : t.id != null ? n.setAttribute("data-id", String(t.id)) : t._id != null && n.setAttribute("data-id", String(t._id));
678
728
  const d = i.isItemSelecionado(t, e);
679
- return d && (n.classList.add("ui-tabela__tr--selecionada"), n.setAttribute("part", "linha linha-selecionada"), n.setAttribute("aria-current", "true"), n.setAttribute("aria-selected", "true"), n.setAttribute("data-selecionada", "true")), (s = i.onLinhaSelecionadaRenderizada) == null || s.call(i, n, d), a.forEach((h, c) => {
680
- n.appendChild(St(i, h, t, e, o[c]));
729
+ return d && (n.classList.add("ui-tabela__tr--selecionada"), n.setAttribute("part", "linha linha-selecionada"), n.setAttribute("aria-current", "true"), n.setAttribute("aria-selected", "true"), n.setAttribute("data-selecionada", "true")), (s = i.onLinhaSelecionadaRenderizada) == null || s.call(i, n, d), a.forEach((h, u) => {
730
+ n.appendChild(rt(i, h, t, e, o[u]));
681
731
  }), n;
682
732
  }
683
- function zt(i, t, e, r, a) {
733
+ function Tt(i, t, e, r, a) {
684
734
  var n;
685
735
  t.tabIndex = r === a ? 0 : -1;
686
736
  const o = i.isItemSelecionado(e, r);
687
737
  o !== t.classList.contains("ui-tabela__tr--selecionada") && (t.classList.toggle("ui-tabela__tr--selecionada", o), I(t, "linha-selecionada", o), t.setAttribute("aria-selected", String(o)), o ? (t.setAttribute("aria-current", "true"), t.setAttribute("data-selecionada", "true")) : (t.removeAttribute("aria-current"), t.removeAttribute("data-selecionada")), (n = i.onLinhaSelecionadaRenderizada) == null || n.call(i, t, o));
688
738
  }
689
- function Lt(i, t, e, r, a) {
690
- return e >= r && e < a && X.get(t) === i.dadosExibicao[e] && Ke.get(t) === i.colunas;
739
+ function It(i, t, e, r, a) {
740
+ return e >= r && e < a && Q.get(t) === i.dadosExibicao[e] && it.get(t) === i.colunas;
691
741
  }
692
- function kt(i, t, e, r, a, o, n, l, d) {
693
- const s = i.dadosExibicao.length, h = l.length || 1, c = /* @__PURE__ */ new Map();
694
- let u = null, p = null;
742
+ function Pt(i, t, e, r, a, o, n, l, d) {
743
+ const s = i.dadosExibicao.length, h = l.length || 1, u = /* @__PURE__ */ new Map();
744
+ let p = null, c = null;
695
745
  for (const b of Array.from(t.children)) {
696
- const x = b.getAttribute("data-espacador");
697
- if (x === "topo") {
698
- u = b;
746
+ const _ = b.getAttribute("data-espacador");
747
+ if (_ === "topo") {
748
+ p = b;
699
749
  continue;
700
750
  }
701
- if (x === "base") {
702
- p = b;
751
+ if (_ === "base") {
752
+ c = b;
703
753
  continue;
704
754
  }
705
- const v = Number(b.getAttribute("data-index"));
706
- b.hasAttribute("data-index") && !c.has(v) && Lt(i, b, v, e, r) ? c.set(v, b) : b.remove();
755
+ const x = Number(b.getAttribute("data-index"));
756
+ b.hasAttribute("data-index") && !u.has(x) && It(i, b, x, e, r) ? u.set(x, b) : b.remove();
707
757
  }
708
758
  const f = o && e > 0 ? e * a : 0;
709
- f > 0 ? u ? (u.style.height = `${f}px`, u.firstElementChild.colSpan = h) : (u = ee("topo", f, h), t.insertBefore(u, t.firstChild)) : u && (u.remove(), u = null);
710
- let m = u ? u.nextSibling : t.firstChild;
759
+ f > 0 ? p ? (p.style.height = `${f}px`, p.firstElementChild.colSpan = h) : (p = ne("topo", f, h), t.insertBefore(p, t.firstChild)) : p && (p.remove(), p = null);
760
+ let m = p ? p.nextSibling : t.firstChild;
711
761
  for (let b = e; b < r; b++) {
712
- const x = i.dadosExibicao[b], v = c.get(b);
713
- v ? (zt(i, v, x, b, n), v === m ? m = v.nextSibling : t.insertBefore(v, m)) : t.insertBefore(Ge(i, x, b, n, l, d), m);
762
+ const _ = i.dadosExibicao[b], x = u.get(b);
763
+ x ? (Tt(i, x, _, b, n), x === m ? m = x.nextSibling : t.insertBefore(x, m)) : t.insertBefore(at(i, _, b, n, l, d), m);
714
764
  }
715
765
  const g = o && r < s ? (s - r) * a : 0;
716
- g > 0 ? p ? (p.style.height = `${g}px`, p.firstElementChild.colSpan = h, p.nextSibling && t.appendChild(p)) : t.appendChild(ee("base", g, h)) : p && p.remove();
766
+ g > 0 ? c ? (c.style.height = `${g}px`, c.firstElementChild.colSpan = h, c.nextSibling && t.appendChild(c)) : t.appendChild(ne("base", g, h)) : c && c.remove();
717
767
  }
718
- function Mt(i, t, e, r, a, o, n, l, d) {
768
+ function Bt(i, t, e, r, a, o, n, l, d) {
719
769
  const s = i.dadosExibicao.length, h = l.length || 1;
720
770
  t.innerHTML = "";
721
- const c = document.createDocumentFragment();
722
- o && e > 0 && c.appendChild(ee("topo", e * a, h));
723
- for (let u = e; u < r; u++)
724
- c.appendChild(Ge(i, i.dadosExibicao[u], u, n, l, d));
725
- o && r < s && c.appendChild(ee("base", (s - r) * a, h)), t.appendChild(c);
771
+ const u = document.createDocumentFragment();
772
+ o && e > 0 && u.appendChild(ne("topo", e * a, h));
773
+ for (let p = e; p < r; p++)
774
+ u.appendChild(at(i, i.dadosExibicao[p], p, n, l, d));
775
+ o && r < s && u.appendChild(ne("base", (s - r) * a, h)), t.appendChild(u);
726
776
  }
727
- function Nt(i) {
777
+ function qt(i) {
728
778
  if (!i.tbodyElement || !i.tableElement || !i.emptyElement || !i.containerElement) return;
729
- const t = fe(i.colunas), e = me(t);
779
+ const t = de(i.colunas), e = ce(t);
730
780
  if (i.tableElement.setAttribute("aria-colcount", String(t.length)), !i.dadosExibicao || i.dadosExibicao.length === 0) {
731
781
  i.tbodyElement.innerHTML = "", i.tableElement.setAttribute("aria-rowcount", "1"), i.tableElement.style.display = t.length > 0 ? "table" : "none", i.emptyElement.style.display = "flex";
732
782
  const m = i.emptyElement.querySelector(".ui-tabela__empty-text"), g = i.filtroAtivo ? i.textoSemResultados : i.textoVazio;
@@ -740,13 +790,31 @@ function Nt(i) {
740
790
  const m = i.containerElement.scrollTop, g = i.containerElement.clientHeight || 400, b = 5;
741
791
  n = Math.max(0, Math.floor(m / a) - b), l = Math.min(r, Math.ceil((m + g) / a) + b);
742
792
  }
743
- const d = i.tbodyElement, s = d.getRootNode(), h = s.activeElement, c = h && h.parentElement === d ? h.getAttribute("data-index") : null, u = Et(d), p = i.indiceAtivo ?? null, f = p !== null && p >= n && p < l ? p : n;
744
- if (i.modo === "rolagem" ? kt(i, d, n, l, a, o, f, t, e) : Mt(i, d, n, l, a, o, f, t, e), c !== null) {
745
- const m = d.querySelector(`tr[data-index="${c}"]`);
793
+ const d = i.tbodyElement, s = d.getRootNode(), h = s.activeElement, u = h && h.parentElement === d ? h.getAttribute("data-index") : null, p = Mt(d), c = i.indiceAtivo ?? null, f = c !== null && c >= n && c < l ? c : n;
794
+ if (i.modo === "rolagem" ? Pt(i, d, n, l, a, o, f, t, e) : Bt(i, d, n, l, a, o, f, t, e), u !== null) {
795
+ const m = d.querySelector(`tr[data-index="${u}"]`);
746
796
  m && s.activeElement !== m && m.focus({ preventScroll: !0 });
747
- } else u && !(h && h.isConnected) && At(d, u);
797
+ } else p && !(h && h.isConnected) && Rt(d, p);
798
+ }
799
+ function Ft(i) {
800
+ const t = i.tfootElement;
801
+ if (!t) return;
802
+ t.innerHTML = "";
803
+ const e = de(i.colunas);
804
+ if (!Array.isArray(i.dadosRodape) || i.dadosRodape.length === 0 || e.length === 0) {
805
+ t.hidden = !0;
806
+ return;
807
+ }
808
+ t.hidden = !1;
809
+ const r = ce(e), a = document.createDocumentFragment();
810
+ i.dadosRodape.forEach((o, n) => {
811
+ const l = document.createElement("tr");
812
+ l.className = "ui-tabela__tr-rodape", l.setAttribute("part", "linha-rodape"), e.forEach((d, s) => {
813
+ l.appendChild(rt(i, d, o ?? {}, n, r[s]));
814
+ }), a.appendChild(l);
815
+ }), t.appendChild(a);
748
816
  }
749
- function Ot(i) {
817
+ function Vt(i) {
750
818
  var l, d;
751
819
  if (!i.theadElement || !i.colgroupElement) return;
752
820
  i.headerListeners.cleanup();
@@ -754,92 +822,92 @@ function Ot(i) {
754
822
  i.theadElement.innerHTML = "", i.colgroupElement.innerHTML = "";
755
823
  const a = document.createElement("tr");
756
824
  a.setAttribute("part", "linha-cabecalho"), a.setAttribute("aria-rowindex", "1");
757
- const o = fe(i.colunas), n = me(o);
825
+ const o = de(i.colunas), n = ce(o);
758
826
  if (o.forEach((s, h) => {
759
- const c = document.createElement("col");
760
- s.largura !== void 0 && (c.style.width = i.formatWidth(s.largura)), i.colgroupElement.appendChild(c);
761
- const u = document.createElement("th"), p = i.getAlignmentClass(s.alinhamento);
762
- if (u.className = p, He(u, s.classe), u.setAttribute("part", "celula-cabecalho"), u.scope = "col", u.setAttribute("data-coluna", s.id), u.style.textAlign = i.getTextAlign(s.alinhamento), J(u, n[h]), s.largura !== void 0 && (u.style.width = i.formatWidth(s.largura)), s.larguraMinima !== void 0 && (u.style.minWidth = i.formatWidth(s.larguraMinima)), s.larguraMaxima !== void 0) {
763
- const v = i.formatWidth(s.larguraMaxima);
764
- u.style.maxWidth = v, u.style.overflow = "hidden", u.style.textOverflow = "ellipsis", u.style.whiteSpace = "nowrap";
827
+ const u = document.createElement("col");
828
+ s.largura !== void 0 && (u.style.width = i.formatWidth(s.largura)), i.colgroupElement.appendChild(u);
829
+ const p = document.createElement("th"), c = i.getAlignmentClass(s.alinhamento);
830
+ if (p.className = c, s.quebrarLinha === !0 ? p.classList.add("ui-tabela__celula--quebrar") : s.quebrarLinha === !1 && p.classList.add("ui-tabela__celula--sem-quebra"), et(p, s.classe), p.setAttribute("part", "celula-cabecalho"), p.scope = "col", p.setAttribute("data-coluna", s.id), p.style.textAlign = i.getTextAlign(s.alinhamento), ae(p, n[h]), s.largura !== void 0 && (p.style.width = i.formatWidth(s.largura)), s.larguraMinima !== void 0 && (p.style.minWidth = i.formatWidth(s.larguraMinima)), s.larguraMaxima !== void 0) {
831
+ const y = i.formatWidth(s.larguraMaxima);
832
+ p.style.maxWidth = y, s.quebrarLinha !== !0 && !i.modoDocumento && (p.style.overflow = "hidden", p.style.textOverflow = "ellipsis", p.style.whiteSpace = "nowrap");
765
833
  }
766
- s.tooltip && (u.title = s.tooltip);
767
- const f = !!s.ordenavel && i.colunaOrdenada === s.id && i.direcaoOrdenacao !== "original", m = f && i.direcaoOrdenacao === "desc";
768
- if (s.ordenavel) {
769
- u.classList.add("ui-tabela__th--ordenavel");
770
- const v = () => i.onHeaderClick(s);
771
- i.headerListeners.add(u, "click", v), u.setAttribute("aria-sort", f ? m ? "descending" : "ascending" : "none");
834
+ s.tooltip && (p.title = s.tooltip);
835
+ const f = !!i.modoDocumento, m = !!s.ordenavel && !f, g = m && i.colunaOrdenada === s.id && i.direcaoOrdenacao !== "original", b = g && i.direcaoOrdenacao === "desc";
836
+ if (m) {
837
+ p.classList.add("ui-tabela__th--ordenavel");
838
+ const y = () => i.onHeaderClick(s);
839
+ i.headerListeners.add(p, "click", y), p.setAttribute("aria-sort", g ? b ? "descending" : "ascending" : "none");
772
840
  }
773
- const g = s.redimensionavel !== !1;
774
- if (g) {
775
- const v = (E) => i.onHeaderContextMenu(E, s, h, u);
776
- i.headerListeners.add(u, "contextmenu", v);
841
+ const _ = !f && s.redimensionavel !== !1;
842
+ if (_) {
843
+ const y = (z) => i.onHeaderContextMenu(z, s, h, p);
844
+ i.headerListeners.add(p, "contextmenu", y);
777
845
  }
778
- const b = document.createElement("div");
779
- b.className = "ui-tabela__header-content";
780
- const x = document.createElement("span");
781
- if (x.className = "ui-tabela__header-text", x.textContent = s.rotulo, b.appendChild(x), s.ordenavel) {
782
- const v = document.createElement("span");
783
- v.className = "ui-tabela__sort-icon";
784
- const E = f ? m ? "ui-tabela__sort-arrow--desc" : "ui-tabela__sort-arrow--asc" : "ui-tabela__sort-arrow--inativo";
785
- v.setAttribute("aria-hidden", "true"), v.innerHTML = `<svg class="ui-tabela__sort-arrow ${E}" viewBox="0 0 24 24" focusable="false"><path class="seta-cima" d="M7 11l5-5 5 5H7z"/><path class="seta-baixo" d="M7 13l5 5 5-5H7z"/></svg>`, b.appendChild(v);
846
+ const x = document.createElement("div");
847
+ x.className = "ui-tabela__header-content";
848
+ const E = document.createElement("span");
849
+ if (E.className = "ui-tabela__header-text", E.textContent = s.rotulo, x.appendChild(E), m) {
850
+ const y = document.createElement("span");
851
+ y.className = "ui-tabela__sort-icon";
852
+ const z = g ? b ? "ui-tabela__sort-arrow--desc" : "ui-tabela__sort-arrow--asc" : "ui-tabela__sort-arrow--inativo";
853
+ y.setAttribute("aria-hidden", "true"), y.innerHTML = `<svg class="ui-tabela__sort-arrow ${z}" viewBox="0 0 24 24" focusable="false"><path class="seta-cima" d="M7 11l5-5 5 5H7z"/><path class="seta-baixo" d="M7 13l5 5 5-5H7z"/></svg>`, x.appendChild(y);
786
854
  }
787
- if (s.ordenavel) {
788
- const v = document.createElement("button");
789
- v.type = "button", v.className = "ui-tabela__ordenar", v.setAttribute("part", "ordenar"), v.appendChild(b), u.appendChild(v);
855
+ if (m) {
856
+ const y = document.createElement("button");
857
+ y.type = "button", y.className = "ui-tabela__ordenar", y.setAttribute("part", "ordenar"), y.appendChild(x), p.appendChild(y);
790
858
  } else
791
- u.appendChild(b);
792
- if (g) {
793
- const v = document.createElement("div");
794
- v.className = "ui-tabela__resizer", v.setAttribute("part", "redimensionador"), v.title = "Arrastar para redimensionar largura (duplo-clique para auto-ajuste)", v.tabIndex = 0, v.setAttribute("role", "separator"), v.setAttribute("aria-orientation", "vertical"), v.setAttribute("aria-label", `Redimensionar coluna ${s.rotulo}`);
795
- const E = (A) => i.onInitColumnResize(A, s, h, u, v);
796
- i.headerListeners.add(v, "mousedown", E);
797
- const k = (A) => {
798
- const y = A;
799
- y.pointerType === "mouse" || !y.pointerType || i.onInitColumnResize(y, s, h, u, v);
859
+ p.appendChild(x);
860
+ if (_) {
861
+ const y = document.createElement("div");
862
+ y.className = "ui-tabela__resizer", y.setAttribute("part", "redimensionador"), y.title = "Arrastar para redimensionar largura (duplo-clique para auto-ajuste)", y.tabIndex = 0, y.setAttribute("role", "separator"), y.setAttribute("aria-orientation", "vertical"), y.setAttribute("aria-label", `Redimensionar coluna ${s.rotulo}`);
863
+ const z = (S) => i.onInitColumnResize(S, s, h, p, y);
864
+ i.headerListeners.add(y, "mousedown", z);
865
+ const L = (S) => {
866
+ const w = S;
867
+ w.pointerType === "mouse" || !w.pointerType || i.onInitColumnResize(w, s, h, p, y);
800
868
  };
801
- i.headerListeners.add(v, "pointerdown", k);
802
- const S = (A) => {
803
- var w, P;
804
- const y = A, C = y.shiftKey ? 50 : 10;
805
- if (y.key === "ArrowRight")
806
- y.preventDefault(), (w = i.onResizeTeclado) == null || w.call(i, C, s, h, u, c);
807
- else if (y.key === "ArrowLeft")
808
- y.preventDefault(), (P = i.onResizeTeclado) == null || P.call(i, -C, s, h, u, c);
809
- else if (y.key === "Enter" || y.key === "F2") {
810
- y.preventDefault();
811
- const $ = u.getBoundingClientRect();
812
- i.onHeaderContextMenu(new MouseEvent("contextmenu", { clientX: $.left, clientY: $.bottom }), s, h, u);
869
+ i.headerListeners.add(y, "pointerdown", L);
870
+ const C = (S) => {
871
+ var K, W;
872
+ const w = S, q = w.shiftKey ? 50 : 10;
873
+ if (w.key === "ArrowRight")
874
+ w.preventDefault(), (K = i.onResizeTeclado) == null || K.call(i, q, s, h, p, u);
875
+ else if (w.key === "ArrowLeft")
876
+ w.preventDefault(), (W = i.onResizeTeclado) == null || W.call(i, -q, s, h, p, u);
877
+ else if (w.key === "Enter" || w.key === "F2") {
878
+ w.preventDefault();
879
+ const Be = p.getBoundingClientRect();
880
+ i.onHeaderContextMenu(new MouseEvent("contextmenu", { clientX: Be.left, clientY: Be.bottom }), s, h, p);
813
881
  }
814
882
  };
815
- i.headerListeners.add(v, "keydown", S);
816
- const L = (A) => {
817
- A.stopPropagation(), i.onColumnAutoFit(s, u, c);
883
+ i.headerListeners.add(y, "keydown", C);
884
+ const A = (S) => {
885
+ S.stopPropagation(), i.onColumnAutoFit(s, p, u);
818
886
  };
819
- i.headerListeners.add(v, "dblclick", L), i.headerListeners.add(v, "click", (A) => A.stopPropagation()), u.appendChild(v);
887
+ i.headerListeners.add(y, "dblclick", A), i.headerListeners.add(y, "click", (S) => S.stopPropagation()), p.appendChild(y);
820
888
  }
821
- a.appendChild(u);
889
+ a.appendChild(p);
822
890
  }), i.theadElement.appendChild(a), r !== null) {
823
891
  const s = Array.from(a.children).find((h) => h.getAttribute("data-coluna") === r);
824
892
  (d = s == null ? void 0 : s.querySelector(".ui-tabela__ordenar")) == null || d.focus();
825
893
  }
826
894
  }
827
- function Me(i) {
895
+ function je(i) {
828
896
  if (i === void 0) return null;
829
897
  const t = typeof i == "number" ? i : parseInt(i, 10);
830
898
  return isNaN(t) ? null : t;
831
899
  }
832
- function ge(i, t) {
833
- const e = Me(i.larguraMinima);
900
+ function ke(i, t) {
901
+ const e = je(i.larguraMinima);
834
902
  let r = Math.max(e ?? 60, t);
835
- const a = Me(i.larguraMaxima);
903
+ const a = je(i.larguraMaxima);
836
904
  return a !== null && (r = Math.min(a, r)), r;
837
905
  }
838
- function Rt(i, t, e, r) {
839
- const a = ge(i, t.offsetWidth + r);
906
+ function jt(i, t, e, r) {
907
+ const a = ke(i, t.offsetWidth + r);
840
908
  return i.largura = `${a}px`, t.style.width = `${a}px`, e && (e.style.width = `${a}px`), `${a}px`;
841
909
  }
842
- function Dt(i) {
910
+ function $t(i) {
843
911
  const {
844
912
  evento: t,
845
913
  coluna: e,
@@ -852,36 +920,36 @@ function Dt(i) {
852
920
  onResizeCancel: s
853
921
  } = i;
854
922
  t.stopPropagation(), t.preventDefault(), l(), o.classList.add("ui-tabela__resizer--ativo");
855
- const h = t.pageX, c = a.offsetWidth, u = n == null ? void 0 : n.children[r], p = t.type === "pointerdown", f = p ? t.pointerId : null;
856
- if (p && f !== null && typeof o.setPointerCapture == "function")
923
+ const h = t.pageX, u = a.offsetWidth, p = n == null ? void 0 : n.children[r], c = t.type === "pointerdown", f = c ? t.pointerId : null;
924
+ if (c && f !== null && typeof o.setPointerCapture == "function")
857
925
  try {
858
926
  o.setPointerCapture(f);
859
927
  } catch {
860
928
  }
861
- const m = p ? "pointermove" : "mousemove", g = p ? "pointerup" : "mouseup";
929
+ const m = c ? "pointermove" : "mousemove", g = c ? "pointerup" : "mouseup";
862
930
  let b = !1;
863
- const x = (k) => {
864
- const S = k;
865
- if (f !== null && S.pointerId !== f) return;
931
+ const _ = (y) => {
932
+ const z = y;
933
+ if (f !== null && z.pointerId !== f) return;
866
934
  b = !0;
867
- const L = ge(e, c + (S.pageX - h));
868
- e.largura = `${L}px`, a.style.width = `${L}px`, u && (u.style.width = `${L}px`);
869
- }, v = () => {
935
+ const L = ke(e, u + (z.pageX - h));
936
+ e.largura = `${L}px`, a.style.width = `${L}px`, p && (p.style.width = `${L}px`);
937
+ }, x = () => {
870
938
  E(), b ? d(String(e.largura)) : s == null || s();
871
939
  }, E = () => {
872
- if (o.classList.remove("ui-tabela__resizer--ativo"), p && f !== null && typeof o.releasePointerCapture == "function")
940
+ if (o.classList.remove("ui-tabela__resizer--ativo"), c && f !== null && typeof o.releasePointerCapture == "function")
873
941
  try {
874
942
  (!o.hasPointerCapture || o.hasPointerCapture(f)) && o.releasePointerCapture(f);
875
943
  } catch {
876
944
  }
877
- window.removeEventListener(m, x), window.removeEventListener(g, v), p && window.removeEventListener("pointercancel", v);
945
+ window.removeEventListener(m, _), window.removeEventListener(g, x), c && window.removeEventListener("pointercancel", x);
878
946
  };
879
- return window.addEventListener(m, x), window.addEventListener(g, v), p && window.addEventListener("pointercancel", v), E;
947
+ return window.addEventListener(m, _), window.addEventListener(g, x), c && window.addEventListener("pointercancel", x), E;
880
948
  }
881
- const K = 20;
882
- let It = 0;
883
- function Tt(i) {
884
- var C;
949
+ const ee = 20;
950
+ let Ht = 0;
951
+ function Kt(i) {
952
+ var S;
885
953
  const {
886
954
  evento: t,
887
955
  coluna: e,
@@ -890,57 +958,57 @@ function Tt(i) {
890
958
  colgroupElement: o,
891
959
  shadow: n,
892
960
  onResizeEnd: l
893
- } = i, d = `ui-tabela-dlg-${++It}`, s = document.createElement("dialog");
961
+ } = i, d = `ui-tabela-dlg-${++Ht}`, s = document.createElement("dialog");
894
962
  s.className = "ui-tabela__prompt-dialog", s.setAttribute("part", "dialogo"), s.setAttribute("aria-labelledby", `${d}-titulo`);
895
963
  const h = document.createElement("label");
896
964
  h.className = "ui-tabela__prompt-title", h.id = `${d}-titulo`, h.htmlFor = `${d}-campo`, h.textContent = `Largura de "${e.rotulo}" (px; vazio = automática)`;
897
- const c = document.createElement("input");
898
- c.id = `${d}-campo`, c.type = "number", c.min = String(K), c.step = "1", c.setAttribute("inputmode", "numeric"), c.placeholder = "auto";
899
- const u = e.largura ? parseInt(String(e.largura), 10) : NaN;
900
- c.value = Number.isFinite(u) ? String(u) : "";
901
- const p = document.createElement("div");
902
- p.className = "ui-tabela__prompt-erro", p.id = `${d}-erro`, p.setAttribute("role", "alert");
965
+ const u = document.createElement("input");
966
+ u.id = `${d}-campo`, u.type = "number", u.min = String(ee), u.step = "1", u.setAttribute("inputmode", "numeric"), u.placeholder = "auto";
967
+ const p = e.largura ? parseInt(String(e.largura), 10) : NaN;
968
+ u.value = Number.isFinite(p) ? String(p) : "";
969
+ const c = document.createElement("div");
970
+ c.className = "ui-tabela__prompt-erro", c.id = `${d}-erro`, c.setAttribute("role", "alert");
903
971
  const f = document.createElement("div");
904
972
  f.className = "ui-tabela__prompt-actions";
905
973
  const m = document.createElement("button");
906
974
  m.type = "button", m.textContent = "Aplicar";
907
975
  const g = document.createElement("button");
908
- g.type = "button", g.textContent = "Cancelar", f.appendChild(g), f.appendChild(m), s.appendChild(h), s.appendChild(c), s.appendChild(p), s.appendChild(f), n.appendChild(s), typeof s.showModal == "function" ? s.showModal() : s.setAttribute("open", ""), s.style.position = "fixed";
909
- const b = s.getBoundingClientRect(), x = b.width || 240, v = b.height || 140, E = Math.max(8, Math.min(t.clientX || 0, window.innerWidth - x - 8)), k = Math.max(8, Math.min(t.clientY || 0, window.innerHeight - v - 8));
910
- s.style.left = `${E}px`, s.style.top = `${k}px`;
911
- let S = !1;
976
+ g.type = "button", g.textContent = "Cancelar", f.appendChild(g), f.appendChild(m), s.appendChild(h), s.appendChild(u), s.appendChild(c), s.appendChild(f), n.appendChild(s), typeof s.showModal == "function" ? s.showModal() : s.setAttribute("open", ""), s.style.position = "fixed";
977
+ const b = s.getBoundingClientRect(), _ = b.width || 240, x = b.height || 140, E = Math.max(8, Math.min(t.clientX || 0, window.innerWidth - _ - 8)), y = Math.max(8, Math.min(t.clientY || 0, window.innerHeight - x - 8));
978
+ s.style.left = `${E}px`, s.style.top = `${y}px`;
979
+ let z = !1;
912
980
  const L = () => {
913
981
  var w;
914
- S || (S = !0, s.open && typeof s.close == "function" && s.close(), s.remove(), (w = a.querySelector(".ui-tabela__ordenar, .ui-tabela__resizer")) == null || w.focus());
915
- }, A = (w) => {
916
- p.textContent = w, c.setAttribute("aria-invalid", "true"), c.setAttribute("aria-describedby", p.id), c.focus();
917
- }, y = () => {
918
- const w = e.largura, P = c.value.trim();
919
- if (P === "")
982
+ z || (z = !0, s.open && typeof s.close == "function" && s.close(), s.remove(), (w = a.querySelector(".ui-tabela__ordenar, .ui-tabela__resizer")) == null || w.focus());
983
+ }, C = (w) => {
984
+ c.textContent = w, u.setAttribute("aria-invalid", "true"), u.setAttribute("aria-describedby", c.id), u.focus();
985
+ }, A = () => {
986
+ const w = e.largura, q = u.value.trim();
987
+ if (q === "")
920
988
  e.largura = void 0, a.style.width = "", o != null && o.children[r] && (o.children[r].style.width = "");
921
989
  else {
922
- const $ = Number(P);
923
- if (!Number.isFinite($) || $ < K) {
924
- A(`Informe um valor de pelo menos ${K} px, ou deixe vazio para automática.`);
990
+ const K = Number(q);
991
+ if (!Number.isFinite(K) || K < ee) {
992
+ C(`Informe um valor de pelo menos ${ee} px, ou deixe vazio para automática.`);
925
993
  return;
926
994
  }
927
- const le = Math.round(ge({ ...e, larguraMinima: e.larguraMinima ?? K }, $));
928
- e.largura = `${le}px`, a.style.width = `${le}px`, o != null && o.children[r] && (o.children[r].style.width = `${le}px`);
995
+ const W = Math.round(ke({ ...e, larguraMinima: e.larguraMinima ?? ee }, K));
996
+ e.largura = `${W}px`, a.style.width = `${W}px`, o != null && o.children[r] && (o.children[r].style.width = `${W}px`);
929
997
  }
930
998
  L(), e.largura !== w && l(e.largura ? String(e.largura) : "auto");
931
999
  };
932
1000
  m.addEventListener("click", (w) => {
933
- w.stopPropagation(), y();
1001
+ w.stopPropagation(), A();
934
1002
  }), g.addEventListener("click", (w) => {
935
1003
  w.stopPropagation(), L();
936
- }), s.addEventListener("close", L), c.addEventListener("input", () => {
937
- p.textContent = "", c.removeAttribute("aria-invalid"), c.removeAttribute("aria-describedby");
938
- }), c.addEventListener("keydown", (w) => {
939
- w.key === "Enter" ? (w.preventDefault(), y()) : w.key === "Escape" && (w.preventDefault(), L());
940
- }), c.focus(), (C = c.select) == null || C.call(c);
941
- }
942
- function Bt(i, t, e, r, a, o) {
943
- return Dt({
1004
+ }), s.addEventListener("close", L), u.addEventListener("input", () => {
1005
+ c.textContent = "", u.removeAttribute("aria-invalid"), u.removeAttribute("aria-describedby");
1006
+ }), u.addEventListener("keydown", (w) => {
1007
+ w.key === "Enter" ? (w.preventDefault(), A()) : w.key === "Escape" && (w.preventDefault(), L());
1008
+ }), u.focus(), (S = u.select) == null || S.call(u);
1009
+ }
1010
+ function Wt(i, t, e, r, a, o) {
1011
+ return $t({
944
1012
  evento: i,
945
1013
  coluna: t,
946
1014
  colIndex: e,
@@ -967,8 +1035,8 @@ function Bt(i, t, e, r, a, o) {
967
1035
  }
968
1036
  });
969
1037
  }
970
- function Pt(i, t, e, r, a) {
971
- i.preventDefault(), i.stopPropagation(), Tt({
1038
+ function Ut(i, t, e, r, a) {
1039
+ i.preventDefault(), i.stopPropagation(), Kt({
972
1040
  evento: i,
973
1041
  coluna: t,
974
1042
  colIndex: e,
@@ -986,8 +1054,8 @@ function Pt(i, t, e, r, a) {
986
1054
  }
987
1055
  });
988
1056
  }
989
- function Ft(i, t, e, r, a) {
990
- const o = Rt(t, e, r, i);
1057
+ function Xt(i, t, e, r, a) {
1058
+ const o = jt(t, e, r, i);
991
1059
  a.host.dispatchEvent(
992
1060
  new CustomEvent("ui-column-resize", {
993
1061
  detail: { idColuna: t.id, largura: o },
@@ -996,20 +1064,21 @@ function Ft(i, t, e, r, a) {
996
1064
  })
997
1065
  );
998
1066
  }
999
- function qt(i) {
1000
- Ot({
1067
+ function Gt(i) {
1068
+ Vt({
1001
1069
  theadElement: i.theadElement,
1002
1070
  colgroupElement: i.colgroupElement,
1003
1071
  colunas: i.colunas,
1004
1072
  colunaOrdenada: i.dadosController.getColunaOrdenada(),
1005
1073
  direcaoOrdenacao: i.dadosController.getDirecaoOrdenacao(),
1006
1074
  headerListeners: i.headerListeners,
1007
- formatWidth: je,
1008
- getAlignmentClass: We,
1009
- getTextAlign: Ue,
1075
+ modoDocumento: i.modoDocumento,
1076
+ formatWidth: we,
1077
+ getAlignmentClass: Ce,
1078
+ getTextAlign: Se,
1010
1079
  onHeaderClick: (t) => i.onHeaderClick(t),
1011
1080
  onHeaderContextMenu: (t, e, r, a) => {
1012
- Pt(t, e, r, a, {
1081
+ Ut(t, e, r, a, {
1013
1082
  host: i.host,
1014
1083
  colgroupElement: i.colgroupElement,
1015
1084
  shadow: i.shadow,
@@ -1017,7 +1086,7 @@ function qt(i) {
1017
1086
  });
1018
1087
  },
1019
1088
  onInitColumnResize: (t, e, r, a, o) => {
1020
- const n = Bt(t, e, r, a, o, {
1089
+ const n = Wt(t, e, r, a, o, {
1021
1090
  host: i.host,
1022
1091
  colgroupElement: i.colgroupElement,
1023
1092
  shadow: i.shadow,
@@ -1026,7 +1095,7 @@ function qt(i) {
1026
1095
  i.onActiveResizeCleanup(n);
1027
1096
  },
1028
1097
  onResizeTeclado: (t, e, r, a, o) => {
1029
- Ft(t, e, a, o, {
1098
+ Xt(t, e, a, o, {
1030
1099
  host: i.host,
1031
1100
  colgroupElement: i.colgroupElement,
1032
1101
  shadow: i.shadow,
@@ -1044,8 +1113,8 @@ function qt(i) {
1044
1113
  }
1045
1114
  });
1046
1115
  }
1047
- function Vt(i) {
1048
- Nt({
1116
+ function Yt(i) {
1117
+ qt({
1049
1118
  tbodyElement: i.tbodyElement,
1050
1119
  tableElement: i.tableElement,
1051
1120
  emptyElement: i.emptyElement,
@@ -1072,12 +1141,22 @@ function Vt(i) {
1072
1141
  })
1073
1142
  );
1074
1143
  },
1075
- formatWidth: je,
1076
- getAlignmentClass: We,
1077
- getTextAlign: Ue
1144
+ formatWidth: we,
1145
+ getAlignmentClass: Ce,
1146
+ getTextAlign: Se
1078
1147
  });
1079
1148
  }
1080
- function Qi(i, t) {
1149
+ function Zt(i) {
1150
+ Ft({
1151
+ tfootElement: i.tfootElement,
1152
+ dadosRodape: i.dadosRodape,
1153
+ colunas: i.colunas,
1154
+ formatWidth: we,
1155
+ getAlignmentClass: Ce,
1156
+ getTextAlign: Se
1157
+ });
1158
+ }
1159
+ function ur(i, t) {
1081
1160
  let e = !1;
1082
1161
  const r = () => {
1083
1162
  e || (window.requestAnimationFrame(() => {
@@ -1090,26 +1169,26 @@ function Qi(i, t) {
1090
1169
  };
1091
1170
  return i.addEventListener("scroll", r), r;
1092
1171
  }
1093
- function $t(i, t, e, r) {
1094
- return vt(i, t, e, r);
1172
+ function Jt(i, t, e, r) {
1173
+ return zt(i, t, e, r);
1095
1174
  }
1096
- function j(i, t) {
1175
+ function X(i, t) {
1097
1176
  if (!t) return;
1098
1177
  const { scrollLeft: e, scrollWidth: r, clientWidth: a } = t, o = e > 1, n = e + a < r - 1;
1099
1178
  o ? i.setAttribute("data-scroll-esquerda", "true") : i.removeAttribute("data-scroll-esquerda"), n ? i.setAttribute("data-scroll-direita", "true") : i.removeAttribute("data-scroll-direita"), t.classList.toggle("ui-tabela-container--scroll-esquerda", o), t.classList.toggle("ui-tabela-container--scroll-direita", n);
1100
1179
  }
1101
- function Ne(i, t, e) {
1102
- const r = fe(e);
1180
+ function $e(i, t, e) {
1181
+ const r = de(e);
1103
1182
  if (!r.some((l) => l.fixa)) return;
1104
- const a = i == null ? void 0 : i.querySelectorAll("tr > th"), o = a && a.length === r.length ? Array.from(a, (l) => l.offsetWidth) : void 0, n = me(r, o);
1105
- a == null || a.forEach((l, d) => J(l, n[d])), t == null || t.querySelectorAll("tr[data-index]").forEach((l) => {
1183
+ const a = i == null ? void 0 : i.querySelectorAll("tr > th"), o = a && a.length === r.length ? Array.from(a, (l) => l.offsetWidth) : void 0, n = ce(r, o);
1184
+ a == null || a.forEach((l, d) => ae(l, n[d])), t == null || t.querySelectorAll("tr[data-index]").forEach((l) => {
1106
1185
  const d = l.children;
1107
1186
  for (let s = 0; s < r.length && s < d.length; s++)
1108
- J(d[s], n[s]);
1187
+ ae(d[s], n[s]);
1109
1188
  });
1110
1189
  }
1111
- const jt = "Nenhum registro encontrado";
1112
- function Ye(i) {
1190
+ const Qt = "Nenhum registro encontrado";
1191
+ function ot(i) {
1113
1192
  const t = i.host.getAttribute("texto-vazio") || i.host.getAttribute("empty-text");
1114
1193
  t && i.onTextoVazioAlterado(t);
1115
1194
  const e = i.host.getAttribute("virtualizar") ?? i.host.getAttribute("virtualize");
@@ -1117,8 +1196,8 @@ function Ye(i) {
1117
1196
  const r = i.host.hasAttribute("carregando") || i.host.hasAttribute("loading");
1118
1197
  i.onCarregandoAlterado(r), i.loadingElement && (i.loadingElement.style.display = r ? "flex" : "none");
1119
1198
  }
1120
- function Ht(i, t, e) {
1121
- if (Ye(e), i === "src") {
1199
+ function ei(i, t, e) {
1200
+ if (ot(e), i === "src") {
1122
1201
  t && e.host.isConnected && e.onCarregarSrc(t);
1123
1202
  return;
1124
1203
  }
@@ -1127,7 +1206,7 @@ function Ht(i, t, e) {
1127
1206
  return;
1128
1207
  }
1129
1208
  if (i === "texto-vazio" || i === "empty-text") {
1130
- const r = t || jt;
1209
+ const r = t || Qt;
1131
1210
  if (e.onTextoVazioAlterado(r), e.emptyElement) {
1132
1211
  const a = e.emptyElement.querySelector(".ui-tabela__empty-text");
1133
1212
  a && (a.textContent = r);
@@ -1143,7 +1222,7 @@ function Ht(i, t, e) {
1143
1222
  e.loadingElement && (e.loadingElement.style.display = t !== null ? "flex" : "none");
1144
1223
  return;
1145
1224
  }
1146
- if (!(i === "altura-linha" || i === "row-height") && !(i === "aria-label" || i === "texto-erro" || i === "texto-carregando" || i === "selecao")) {
1225
+ if (!(i === "altura-linha" || i === "row-height") && !(i === "aria-label" || i === "texto-erro" || i === "texto-carregando" || i === "selecao" || i === "sem-cabecalho") && !(i === "colunas" || i === "dados" || i === "rodape")) {
1147
1226
  if (i === "texto-sem-resultados" || i === "densidade" || i === "density") {
1148
1227
  e.onRenderBody();
1149
1228
  return;
@@ -1151,7 +1230,7 @@ function Ht(i, t, e) {
1151
1230
  e.onRenderTotal();
1152
1231
  }
1153
1232
  }
1154
- function Wt(i, t, e, r) {
1233
+ function ti(i, t, e, r) {
1155
1234
  if (i === "Enter" || i === " ") return { tipo: "ativar" };
1156
1235
  if (i === "Escape") return { tipo: "limpar-selecao" };
1157
1236
  if (!Number.isInteger(t) || !Number.isInteger(e) || e < 0) return null;
@@ -1173,37 +1252,37 @@ function Wt(i, t, e, r) {
1173
1252
  return null;
1174
1253
  }
1175
1254
  }
1176
- const Ut = "Não foi possível carregar os dados.", Xt = "Nenhum resultado para o filtro";
1177
- function Kt(i, t, e, r) {
1255
+ const ii = "Não foi possível carregar os dados.", ri = "Nenhum resultado para o filtro";
1256
+ function ai(i, t, e, r) {
1178
1257
  if (!i) return;
1179
1258
  if (!t) {
1180
1259
  i.style.display = "none";
1181
1260
  return;
1182
1261
  }
1183
1262
  const a = i.querySelector(".ui-tabela__erro-mensagem"), o = i.querySelector(".ui-tabela__erro-detalhe");
1184
- a && (a.textContent = e || Ut), o && (o.textContent = t.erro || "");
1263
+ a && (a.textContent = e || ii), o && (o.textContent = t.erro || "");
1185
1264
  const n = i.querySelector(".ui-tabela__erro-acao");
1186
1265
  n && (n.style.display = r ? "" : "none"), i.style.display = "flex";
1187
1266
  }
1188
- function Gt(i, t, e, r) {
1267
+ function oi(i, t, e, r) {
1189
1268
  if (!i) return;
1190
1269
  const a = e ? t === 0 ? r : `${t} ${t === 1 ? "registro encontrado" : "registros encontrados"}` : "";
1191
1270
  i.textContent !== a && (i.textContent = a);
1192
1271
  }
1193
- function Yt({ tabela: i, container: t }, e, r, a = !1) {
1272
+ function ni({ tabela: i, container: t }, e, r, a = !1) {
1194
1273
  i && (e ? i.setAttribute("aria-label", e) : i.removeAttribute("aria-label"), i.setAttribute("aria-busy", String(r)), i.setAttribute("aria-multiselectable", a ? "true" : "false"), t && (e ? (t.setAttribute("role", "region"), t.setAttribute("aria-label", e)) : (t.removeAttribute("role"), t.removeAttribute("aria-label"))));
1195
1274
  }
1196
- const Zt = 800;
1197
- function Oe(i, t, e) {
1275
+ const si = 800;
1276
+ function He(i, t, e) {
1198
1277
  const r = i.getBoundingClientRect(), a = t.getBoundingClientRect(), o = r.top + i.clientTop + e, n = r.top + i.clientTop + i.clientHeight;
1199
1278
  return a.top < o ? a.top - o : a.bottom > n ? Math.min(a.bottom - n, a.top - o) : 0;
1200
1279
  }
1201
- function Re(i, t, e) {
1280
+ function Ke(i, t, e) {
1202
1281
  e === "smooth" && typeof i.scrollTo == "function" ? i.scrollTo({ top: t, behavior: "smooth" }) : i.scrollTop = t;
1203
1282
  }
1204
- class Jt {
1283
+ class li {
1205
1284
  constructor(t) {
1206
- _(this, "cancelarCorrecao", null);
1285
+ v(this, "cancelarCorrecao", null);
1207
1286
  this.p = t;
1208
1287
  }
1209
1288
  alturaCabecalho() {
@@ -1225,7 +1304,7 @@ class Jt {
1225
1304
  let o = r.querySelector(a);
1226
1305
  if (o || (e.scrollTop = Math.max(0, t * this.p.alturaLinha() - e.clientHeight / 2), this.p.renderizarCorpo(), o = r.querySelector(a)), !o) return;
1227
1306
  o.focus({ preventScroll: !0 });
1228
- const n = Oe(e, o, this.alturaCabecalho());
1307
+ const n = He(e, o, this.alturaCabecalho());
1229
1308
  n && (e.scrollTop += n);
1230
1309
  }
1231
1310
  /**
@@ -1238,11 +1317,11 @@ class Jt {
1238
1317
  const r = this.p.container(), a = this.p.tbody();
1239
1318
  if (!r || !a) return !1;
1240
1319
  this.cancelar();
1241
- const o = () => a.querySelector(`tr[data-index="${t}"]`), n = (c) => {
1242
- const u = o();
1243
- if (!u) return;
1244
- const p = Oe(r, u, this.alturaCabecalho());
1245
- p && Re(r, r.scrollTop + p, c);
1320
+ const o = () => a.querySelector(`tr[data-index="${t}"]`), n = (u) => {
1321
+ const p = o();
1322
+ if (!p) return;
1323
+ const c = He(r, p, this.alturaCabecalho());
1324
+ c && Ke(r, r.scrollTop + c, u);
1246
1325
  };
1247
1326
  if (o())
1248
1327
  return n(e), !0;
@@ -1251,11 +1330,11 @@ class Jt {
1251
1330
  };
1252
1331
  if (e === "auto")
1253
1332
  return l(), !0;
1254
- Re(r, Math.max(0, t * this.p.alturaLinha()), "smooth");
1333
+ Ke(r, Math.max(0, t * this.p.alturaLinha()), "smooth");
1255
1334
  let d = !0;
1256
1335
  const s = () => {
1257
1336
  d && (this.cancelar(), this.p.renderizarCorpo(), o() ? n("smooth") : l());
1258
- }, h = window.setTimeout(s, Zt);
1337
+ }, h = window.setTimeout(s, si);
1259
1338
  return r.addEventListener("scrollend", s, { once: !0 }), this.cancelarCorrecao = () => {
1260
1339
  d = !1, window.clearTimeout(h), r.removeEventListener("scrollend", s), this.cancelarCorrecao = null;
1261
1340
  }, !0;
@@ -1266,40 +1345,44 @@ class Jt {
1266
1345
  (t = this.cancelarCorrecao) == null || t.call(this);
1267
1346
  }
1268
1347
  }
1269
- class Qt extends qe {
1348
+ class di extends Ze {
1270
1349
  constructor() {
1271
1350
  super();
1272
- _(this, "shadow");
1273
- _(this, "_colunas", []);
1274
- _(this, "_textoVazio", "Nenhum registro encontrado");
1275
- _(this, "_virtualizar", !0);
1276
- _(this, "_isResizing", !1);
1277
- _(this, "_carregando", !1);
1278
- _(this, "_src", null);
1279
- _(this, "_fetchOpcoes", null);
1280
- _(this, "_fetcher", null);
1281
- _(this, "_containerElement", null);
1282
- _(this, "_tableElement", null);
1283
- _(this, "_theadElement", null);
1284
- _(this, "_tbodyElement", null);
1285
- _(this, "_colgroupElement", null);
1286
- _(this, "_emptyElement", null);
1287
- _(this, "_loadingElement", null);
1288
- _(this, "_erroElement", null);
1289
- _(this, "_anuncioElement", null);
1351
+ v(this, "shadow");
1352
+ v(this, "_colunas", []);
1353
+ v(this, "_dadosRodape", []);
1354
+ v(this, "_textoVazio", "Nenhum registro encontrado");
1355
+ v(this, "_virtualizar", !0);
1356
+ v(this, "_imprimindo", !1);
1357
+ v(this, "_isResizing", !1);
1358
+ v(this, "_carregando", !1);
1359
+ v(this, "_src", null);
1360
+ v(this, "_fetchOpcoes", null);
1361
+ v(this, "_fetcher", null);
1362
+ v(this, "_containerElement", null);
1363
+ v(this, "_tableElement", null);
1364
+ v(this, "_theadElement", null);
1365
+ v(this, "_tbodyElement", null);
1366
+ v(this, "_tfootElement", null);
1367
+ v(this, "_colgroupElement", null);
1368
+ v(this, "_emptyElement", null);
1369
+ v(this, "_loadingElement", null);
1370
+ v(this, "_erroElement", null);
1371
+ v(this, "_anuncioElement", null);
1290
1372
  /** Último erro de carregamento remoto (null = sem erro). */
1291
- _(this, "_erro", null);
1292
- _(this, "_activeResizeCleanup", null);
1293
- _(this, "_resizeObserver", null);
1294
- _(this, "_containerListeners", new H());
1295
- _(this, "_headerListeners", new H());
1296
- _(this, "_corpoListeners", new H());
1297
- _(this, "_erroListeners", new H());
1373
+ v(this, "_erro", null);
1374
+ v(this, "_activeResizeCleanup", null);
1375
+ v(this, "_resizeObserver", null);
1376
+ v(this, "_containerListeners", new N());
1377
+ v(this, "_headerListeners", new N());
1378
+ v(this, "_corpoListeners", new N());
1379
+ v(this, "_erroListeners", new N());
1380
+ v(this, "_windowListeners", new N());
1298
1381
  /** Linha com o foco móvel (navegação por teclado); null = primeira linha visível. */
1299
- _(this, "_indiceAtivo", null);
1382
+ v(this, "_indiceAtivo", null);
1300
1383
  /** Altura real das linhas medida no DOM; null = usa a estimativa da densidade. */
1301
- _(this, "_alturaLinhaMedida", null);
1302
- _(this, "rolagem", new Jt({
1384
+ v(this, "_alturaLinhaMedida", null);
1385
+ v(this, "rolagem", new li({
1303
1386
  container: () => this._containerElement,
1304
1387
  tbody: () => this._tbodyElement,
1305
1388
  cabecalho: () => this._theadElement,
@@ -1309,17 +1392,18 @@ class Qt extends qe {
1309
1392
  this._indiceAtivo = e;
1310
1393
  }
1311
1394
  }));
1312
- _(this, "remotaController");
1313
- _(this, "selecaoController");
1314
- _(this, "dadosController", new mt());
1395
+ v(this, "remotaController");
1396
+ v(this, "selecaoController");
1397
+ v(this, "dadosController", new wt());
1315
1398
  /** Event delegation de clique nas linhas do corpo: evita um listener por `<tr>`. */
1316
- _(this, "handleCliqueCorpo", (e) => {
1399
+ v(this, "handleCliqueCorpo", (e) => {
1317
1400
  var d;
1401
+ if (this.ehModoDocumento()) return;
1318
1402
  const r = this._tbodyElement;
1319
1403
  if (!r) return;
1320
1404
  const a = e.target, o = (d = a == null ? void 0 : a.closest) == null ? void 0 : d.call(a, "tr[data-index]");
1321
- if (!o || o.parentElement !== r || Ct(e, o)) return;
1322
- const n = X.get(o);
1405
+ if (!o || o.parentElement !== r || Nt(e, o)) return;
1406
+ const n = Q.get(o);
1323
1407
  if (!n) return;
1324
1408
  const l = Number(o.getAttribute("data-index"));
1325
1409
  this.selecaoController.interagirComLinha(n, l), this.dispatchEvent(
@@ -1331,7 +1415,7 @@ class Qt extends qe {
1331
1415
  );
1332
1416
  });
1333
1417
  /** Mantém um único tabindex=0 (foco móvel): Tab entra na tabela pela última linha ativa. */
1334
- _(this, "handleFocoLinha", (e) => {
1418
+ v(this, "handleFocoLinha", (e) => {
1335
1419
  const r = e.target;
1336
1420
  r.parentElement !== this._tbodyElement || !r.hasAttribute("data-index") || this.definirLinhaAtiva(Number(r.getAttribute("data-index")));
1337
1421
  });
@@ -1339,13 +1423,14 @@ class Qt extends qe {
1339
1423
  * Teclado nas linhas: setas, Home/End e PageUp/PageDown movem o foco;
1340
1424
  * Enter/Espaço selecionam a linha (mesmo caminho do clique, emite `ui-linha-clique`).
1341
1425
  */
1342
- _(this, "handleTecladoCorpo", (e) => {
1426
+ v(this, "handleTecladoCorpo", (e) => {
1427
+ if (this.ehModoDocumento()) return;
1343
1428
  const r = e.target;
1344
1429
  if (r.parentElement !== this._tbodyElement || !r.hasAttribute("data-index")) return;
1345
- const a = this.dadosController.getDadosExibicao().length - 1, o = Wt(e.key, Number(r.getAttribute("data-index")), a, this.rolagem.linhasPorPagina());
1430
+ const a = this.dadosController.getDadosExibicao().length - 1, o = ti(e.key, Number(r.getAttribute("data-index")), a, this.rolagem.linhasPorPagina());
1346
1431
  o && (e.preventDefault(), o.tipo === "ativar" ? r.click() : o.tipo === "limpar-selecao" ? this.itemSelecionado !== null && this.limparSelecao() : this.rolagem.focar(o.indice));
1347
1432
  });
1348
- this.shadow = this.attachShadow({ mode: "open" }), this.remotaController = new ot({
1433
+ this.shadow = this.attachShadow({ mode: "open" }), this.remotaController = new ft({
1349
1434
  host: this,
1350
1435
  onCarregandoAlterado: (e) => {
1351
1436
  this.carregando = e;
@@ -1355,7 +1440,7 @@ class Qt extends qe {
1355
1440
  },
1356
1441
  getOpcoes: () => this._fetchOpcoes,
1357
1442
  getFetcher: () => this._fetcher
1358
- }), this.selecaoController = new dt({
1443
+ }), this.selecaoController = new vt({
1359
1444
  host: this,
1360
1445
  getTbody: () => this._tbodyElement,
1361
1446
  getDadosExibicao: () => this.dadosController.getDadosExibicao(),
@@ -1373,24 +1458,43 @@ class Qt extends qe {
1373
1458
  });
1374
1459
  }
1375
1460
  static get observedAttributes() {
1376
- return ["texto-vazio", "empty-text", "max-height", "densidade", "density", "altura-linha", "row-height", "virtualizar", "virtualize", "src", "carregando", "loading", "chave-id", "id-key", "aria-label", "ordenacao-remota", "selecao", "texto-erro", "texto-sem-resultados", "texto-carregando", ...Ve];
1461
+ return ["texto-vazio", "empty-text", "max-height", "densidade", "density", "altura-linha", "row-height", "virtualizar", "virtualize", "src", "carregando", "loading", "chave-id", "id-key", "aria-label", "ordenacao-remota", "selecao", "texto-erro", "texto-sem-resultados", "texto-carregando", "modo", "sem-cabecalho", "colunas", "dados", "rodape", ...Je];
1377
1462
  }
1378
1463
  connectedCallback() {
1379
- this.syncAttributes(), this.selecaoController.setModo(this.selecao), this.alturaLinha && this.style.setProperty("--ui-tabela-altura-linha", `${this.alturaLinha}px`), !this.hasAttribute("densidade") && !this.hasAttribute("density") && this.setAttribute("densidade", "normal"), this.renderTotal(), this._src && this.remotaController.carregar(this._src);
1464
+ this.syncAttributes(), this.selecaoController.setModo(this.selecao), this.alturaLinha && this.style.setProperty("--ui-tabela-altura-linha", `${this.alturaLinha}px`), !this.hasAttribute("densidade") && !this.hasAttribute("density") && this.setAttribute("densidade", "normal"), this.aplicarEntradaDeclarativa(), this.renderTotal(), this.registrarEventosImpressao(), this._src && this.remotaController.carregar(this._src);
1380
1465
  }
1381
1466
  disconnectedCallback() {
1382
1467
  this.cleanupEventListeners();
1383
1468
  }
1384
1469
  attributeChangedCallback(e, r, a) {
1385
- if ($e(e)) {
1386
- Z(this, this._containerElement);
1470
+ if (Qe(e)) {
1471
+ re(this, this._containerElement);
1472
+ return;
1473
+ }
1474
+ if (e === "colunas") {
1475
+ const o = j(a);
1476
+ Array.isArray(o) && (this.colunas = o);
1477
+ return;
1478
+ }
1479
+ if (e === "dados") {
1480
+ const o = j(a);
1481
+ Array.isArray(o) && (this.dados = o);
1387
1482
  return;
1388
1483
  }
1389
- e === "selecao" && this.selecaoController.setModo(a === "multipla" ? "multipla" : "unica"), e === "ordenacao-remota" && (this.dadosController.setOrdenacaoRemota(a !== null), this.atualizarContextoSelecao()), (e === "densidade" || e === "density" || e === "altura-linha" || e === "row-height") && (this._alturaLinhaMedida = null), (e === "altura-linha" || e === "row-height") && this.aplicarAlturaLinha(), (e === "chave-id" || e === "id-key") && this.atualizarContextoSelecao(), Ht(e, a, this.obterContextoAtributos()), this.sincronizarAria();
1484
+ if (e === "rodape") {
1485
+ const o = j(a);
1486
+ Array.isArray(o) && (this.rodape = o);
1487
+ return;
1488
+ }
1489
+ if (e === "sem-cabecalho") {
1490
+ this.sincronizarCabecalhoVisivel();
1491
+ return;
1492
+ }
1493
+ e === "selecao" && this.selecaoController.setModo(a === "multipla" ? "multipla" : "unica"), e === "ordenacao-remota" && (this.dadosController.setOrdenacaoRemota(a !== null), this.atualizarContextoSelecao()), (e === "densidade" || e === "density" || e === "altura-linha" || e === "row-height") && (this._alturaLinhaMedida = null), (e === "altura-linha" || e === "row-height") && this.aplicarAlturaLinha(), (e === "chave-id" || e === "id-key") && this.atualizarContextoSelecao(), ei(e, a, this.obterContextoAtributos()), this.sincronizarAria();
1390
1494
  }
1391
1495
  /** Nome acessível vem do host (`aria-label`); `aria-busy` acompanha o carregamento remoto. */
1392
1496
  sincronizarAria() {
1393
- this._tableElement && (Yt(
1497
+ this._tableElement && (ni(
1394
1498
  { tabela: this._tableElement, container: this._containerElement },
1395
1499
  this.getAttribute("aria-label"),
1396
1500
  this._carregando,
@@ -1408,11 +1512,11 @@ class Qt extends qe {
1408
1512
  this._erro = e, this.renderizarErro();
1409
1513
  }
1410
1514
  renderizarErro() {
1411
- Kt(this._erroElement, this._erro, this.getAttribute("texto-erro"), !!this._src);
1515
+ ai(this._erroElement, this._erro, this.getAttribute("texto-erro"), !!this._src);
1412
1516
  }
1413
1517
  /** Anuncia ao leitor de tela o resultado do filtro (a região é limpa sem filtro ativo). */
1414
1518
  anunciarResultado() {
1415
- Gt(
1519
+ oi(
1416
1520
  this._anuncioElement,
1417
1521
  this.dadosController.getDadosExibicao().length,
1418
1522
  this.dadosController.temFiltro(),
@@ -1420,10 +1524,10 @@ class Qt extends qe {
1420
1524
  );
1421
1525
  }
1422
1526
  _textoSemResultados() {
1423
- return this.getAttribute("texto-sem-resultados") || Xt;
1527
+ return this.getAttribute("texto-sem-resultados") || ri;
1424
1528
  }
1425
1529
  syncAttributes() {
1426
- Ye(this.obterContextoAtributos());
1530
+ ot(this.obterContextoAtributos());
1427
1531
  }
1428
1532
  obterContextoAtributos() {
1429
1533
  return {
@@ -1497,7 +1601,54 @@ class Qt extends qe {
1497
1601
  var e;
1498
1602
  this._resizeObserver && (this._resizeObserver.disconnect(), this._resizeObserver = null), this._activeResizeCleanup && (this._activeResizeCleanup(), this._activeResizeCleanup = null, this._isResizing = !1), (e = this.shadow) == null || e.querySelectorAll("dialog.ui-tabela__prompt-dialog").forEach((r) => {
1499
1603
  r.open && typeof r.close == "function" && r.close(), r.remove();
1500
- }), this.rolagem.cancelar(), this.remotaController.abortar(), this._containerListeners.cleanup(), this._headerListeners.cleanup(), this._corpoListeners.cleanup(), this._erroListeners.cleanup();
1604
+ }), this.rolagem.cancelar(), this.remotaController.abortar(), this._containerListeners.cleanup(), this._headerListeners.cleanup(), this._corpoListeners.cleanup(), this._erroListeners.cleanup(), this._windowListeners.cleanup();
1605
+ }
1606
+ ehModoDocumento() {
1607
+ return this.getAttribute("modo") === "documento";
1608
+ }
1609
+ deveVirtualizar() {
1610
+ return this._virtualizar && !this.ehModoDocumento() && !this._imprimindo;
1611
+ }
1612
+ sincronizarCabecalhoVisivel() {
1613
+ if (!this._theadElement) return;
1614
+ const e = this.semCabecalho;
1615
+ this._theadElement.hidden = e, e ? this._theadElement.setAttribute("aria-hidden", "true") : this._theadElement.removeAttribute("aria-hidden");
1616
+ }
1617
+ registrarEventosImpressao() {
1618
+ typeof window > "u" || this._windowListeners.size > 0 || (this._windowListeners.add(window, "beforeprint", () => {
1619
+ !this._virtualizar || this.ehModoDocumento() || (this._imprimindo = !0, this.renderBody("completo"));
1620
+ }), this._windowListeners.add(window, "afterprint", () => {
1621
+ this._imprimindo && (this._imprimindo = !1, this.renderBody("completo"));
1622
+ }));
1623
+ }
1624
+ /** Carrega colunas, dados e rodapé declarativos de `<script type="application/json">` filhos ou atributos. */
1625
+ aplicarEntradaDeclarativa() {
1626
+ const e = ht(this);
1627
+ e.colunas && this._colunas.length === 0 && (this._colunas = e.colunas.filter((r) => r != null).map((r) => ({ ...r })), this.dadosController.setColunas(this._colunas), this.dadosController.setColunasFiltro(this._colunas.filter((r) => !r.oculta).map((r) => r.id))), e.dados && this.dadosController.getDadosOriginais().length === 0 && (this.dadosController.setDadosOriginais(e.dados), this.atualizarContextoSelecao()), e.rodape && this._dadosRodape.length === 0 && (this._dadosRodape = e.rodape.filter((r) => r != null));
1628
+ }
1629
+ get modo() {
1630
+ return this.ehModoDocumento() ? "documento" : "app";
1631
+ }
1632
+ set modo(e) {
1633
+ e === "documento" ? this.setAttribute("modo", "documento") : this.removeAttribute("modo");
1634
+ }
1635
+ get semCabecalho() {
1636
+ return this.hasAttribute("sem-cabecalho");
1637
+ }
1638
+ set semCabecalho(e) {
1639
+ this.toggleAttribute("sem-cabecalho", !!e);
1640
+ }
1641
+ get rodape() {
1642
+ return this._dadosRodape;
1643
+ }
1644
+ set rodape(e) {
1645
+ this._dadosRodape = Array.isArray(e) ? e.filter((r) => r != null) : [], this.renderFooter();
1646
+ }
1647
+ get dadosRodape() {
1648
+ return this.rodape;
1649
+ }
1650
+ set dadosRodape(e) {
1651
+ this.rodape = e;
1501
1652
  }
1502
1653
  get colunas() {
1503
1654
  return this._colunas;
@@ -1623,7 +1774,7 @@ class Qt extends qe {
1623
1774
  }
1624
1775
  /** Altura usada na virtualização: a fixa (`altura-linha`), a medida no DOM ou a estimativa da densidade. */
1625
1776
  getRowHeight() {
1626
- return this.alturaLinha ?? this._alturaLinhaMedida ?? ke(this.densidade);
1777
+ return this.alturaLinha ?? this._alturaLinhaMedida ?? Ve(this.densidade);
1627
1778
  }
1628
1779
  /**
1629
1780
  * Mede a altura real das linhas uma vez por configuração (densidade/colunas): padding, fonte e
@@ -1639,7 +1790,7 @@ class Qt extends qe {
1639
1790
  r += o.getBoundingClientRect().height;
1640
1791
  });
1641
1792
  const a = r / e.length;
1642
- a <= 0 || (this._alturaLinhaMedida = a, Math.abs(a - ke(this.densidade)) > 0.5 && this.renderBody());
1793
+ a <= 0 || (this._alturaLinhaMedida = a, Math.abs(a - Ve(this.densidade)) > 0.5 && this.renderBody());
1643
1794
  }
1644
1795
  /** Ordenar, filtrar, trocar os dados ou a chave mantém a linha selecionada (se ainda existir). */
1645
1796
  atualizarContextoSelecao() {
@@ -1654,17 +1805,17 @@ class Qt extends qe {
1654
1805
  }
1655
1806
  } else {
1656
1807
  this.cleanupEventListeners();
1657
- const e = $t(this.shadow, this._textoVazio, this.getAttribute("max-height"), this._carregando);
1658
- this._containerElement = e.containerElement, this._tableElement = e.tableElement, this._colgroupElement = e.colgroupElement, this._theadElement = e.theadElement, this._tbodyElement = e.tbodyElement, this._emptyElement = e.emptyElement, this._loadingElement = e.loadingElement, this._erroElement = e.erroElement, this._anuncioElement = e.anuncioElement;
1808
+ const e = Jt(this.shadow, this._textoVazio, this.getAttribute("max-height"), this._carregando);
1809
+ this._containerElement = e.containerElement, this._tableElement = e.tableElement, this._colgroupElement = e.colgroupElement, this._theadElement = e.theadElement, this._tbodyElement = e.tbodyElement, this._tfootElement = e.tfootElement, this._emptyElement = e.emptyElement, this._loadingElement = e.loadingElement, this._erroElement = e.erroElement, this._anuncioElement = e.anuncioElement;
1659
1810
  const r = e.erroElement.querySelector(".ui-tabela__erro-acao");
1660
1811
  r && this._erroListeners.add(r, "click", () => {
1661
1812
  this.recarregar();
1662
1813
  });
1663
1814
  }
1664
- if (Z(this, this._containerElement), this.renderHeader(), this.renderBody(), this._containerElement && this._containerListeners.size === 0) {
1815
+ if (re(this, this._containerElement), this.sincronizarCabecalhoVisivel(), this.renderHeader(), this.renderBody(), this.renderFooter(), this._containerElement && this._containerListeners.size === 0) {
1665
1816
  let e = !1;
1666
1817
  this._containerListeners.add(this._containerElement, "scroll", () => {
1667
- j(this, this._containerElement), this._virtualizar && !e && (e = !0, window.requestAnimationFrame(() => {
1818
+ X(this, this._containerElement), this.deveVirtualizar() && !e && (e = !0, window.requestAnimationFrame(() => {
1668
1819
  try {
1669
1820
  this.renderBody("rolagem");
1670
1821
  } finally {
@@ -1672,12 +1823,12 @@ class Qt extends qe {
1672
1823
  }
1673
1824
  }));
1674
1825
  }), this._containerListeners.add(this, "ui-column-resize", () => {
1675
- Ne(this._theadElement, this._tbodyElement, this._colunas), j(this, this._containerElement);
1826
+ $e(this._theadElement, this._tbodyElement, this._colunas), X(this, this._containerElement);
1676
1827
  });
1677
1828
  }
1678
1829
  !this._resizeObserver && typeof ResizeObserver < "u" && this._containerElement && (this._resizeObserver = new ResizeObserver(() => {
1679
- j(this, this._containerElement), Ne(this._theadElement, this._tbodyElement, this._colunas);
1680
- }), this._resizeObserver.observe(this._containerElement), this._tableElement && this._resizeObserver.observe(this._tableElement)), this._tbodyElement && this._corpoListeners.size === 0 && (this._corpoListeners.add(this._tbodyElement, "click", this.handleCliqueCorpo), this._corpoListeners.add(this._tbodyElement, "keydown", this.handleTecladoCorpo), this._corpoListeners.add(this._tbodyElement, "focusin", this.handleFocoLinha)), this.sincronizarAria(), j(this, this._containerElement);
1830
+ X(this, this._containerElement), $e(this._theadElement, this._tbodyElement, this._colunas);
1831
+ }), this._resizeObserver.observe(this._containerElement), this._tableElement && this._resizeObserver.observe(this._tableElement)), this._tbodyElement && this._corpoListeners.size === 0 && (this._corpoListeners.add(this._tbodyElement, "click", this.handleCliqueCorpo), this._corpoListeners.add(this._tbodyElement, "keydown", this.handleTecladoCorpo), this._corpoListeners.add(this._tbodyElement, "focusin", this.handleFocoLinha)), this.sincronizarAria(), X(this, this._containerElement);
1681
1832
  }
1682
1833
  }
1683
1834
  definirLinhaAtiva(e) {
@@ -1695,14 +1846,17 @@ class Qt extends qe {
1695
1846
  theadElement: this._theadElement,
1696
1847
  colgroupElement: this._colgroupElement,
1697
1848
  tbodyElement: this._tbodyElement,
1849
+ tfootElement: this._tfootElement,
1698
1850
  tableElement: this._tableElement,
1699
1851
  emptyElement: this._emptyElement,
1700
1852
  containerElement: this._containerElement,
1701
1853
  colunas: this._colunas,
1854
+ dadosRodape: this._dadosRodape,
1855
+ modoDocumento: this.ehModoDocumento(),
1702
1856
  dadosController: this.dadosController,
1703
1857
  selecaoController: this.selecaoController,
1704
1858
  chaveId: this.chaveId,
1705
- virtualizar: this._virtualizar,
1859
+ virtualizar: this.deveVirtualizar(),
1706
1860
  rowHeight: this.getRowHeight(),
1707
1861
  indiceAtivo: this._indiceAtivo,
1708
1862
  textoVazio: this._textoVazio,
@@ -1718,14 +1872,17 @@ class Qt extends qe {
1718
1872
  };
1719
1873
  }
1720
1874
  renderHeader() {
1721
- qt(this.obterContextoRenderizador()), j(this, this._containerElement);
1875
+ Gt(this.obterContextoRenderizador()), X(this, this._containerElement);
1722
1876
  }
1723
1877
  /**
1724
1878
  * Renderiza o corpo. `completo` (padrão) recria as linhas e roda o `render` das colunas de novo;
1725
1879
  * `rolagem` só ajusta a janela virtual e mantém as linhas que continuam visíveis (foco e texto digitado intactos).
1726
1880
  */
1727
1881
  renderBody(e = "completo") {
1728
- Vt(this.obterContextoRenderizador(e)), this.anunciarResultado(), this.medirAlturaLinha(), j(this, this._containerElement);
1882
+ Yt(this.obterContextoRenderizador(e)), this.anunciarResultado(), this.medirAlturaLinha(), X(this, this._containerElement);
1883
+ }
1884
+ renderFooter() {
1885
+ Zt(this.obterContextoRenderizador());
1729
1886
  }
1730
1887
  /**
1731
1888
  * Rola até um item e opcionalmente o seleciona. Aceita ID (pela `chave-id`, depois `id`, `_id`,
@@ -1740,7 +1897,7 @@ class Qt extends qe {
1740
1897
  return this.selecaoController.rolarPara(e, { ...r, porIndice: !0 });
1741
1898
  }
1742
1899
  }
1743
- re("ui-tabela", Qt);
1900
+ le("ui-tabela", di);
1744
1901
  const M = Object.freeze({
1745
1902
  vazio: "Nenhuma propriedade disponível.",
1746
1903
  vazioBusca: 'Nenhuma propriedade encontrada para "{termo}".',
@@ -1756,7 +1913,7 @@ const M = Object.freeze({
1756
1913
  desfazer: "Desfazer",
1757
1914
  ajuda: "Ajuda de propriedades"
1758
1915
  });
1759
- function G(i, t) {
1916
+ function te(i, t) {
1760
1917
  const e = i == null ? void 0 : i.obterTexto;
1761
1918
  if (typeof e == "function")
1762
1919
  try {
@@ -1766,11 +1923,11 @@ function G(i, t) {
1766
1923
  }
1767
1924
  return M[t];
1768
1925
  }
1769
- const O = Math.PI / 180, De = 64;
1770
- function R(i) {
1926
+ const R = Math.PI / 180, We = 64, ci = 1024, be = /([a-zA-Z_]\w*)\s*\(/y, ge = /(pi|π|e)\b/iy, ve = /(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+|,[0-9]+)(?:[eE][+-]?[0-9]+)?/y;
1927
+ function D(i) {
1771
1928
  return Math.abs(i) < 1e-12 ? 0 : Number(i.toPrecision(15));
1772
1929
  }
1773
- const ei = {
1930
+ const ui = {
1774
1931
  sqrt: Math.sqrt,
1775
1932
  abs: Math.abs,
1776
1933
  round: Math.round,
@@ -1780,26 +1937,26 @@ const ei = {
1780
1937
  sign: Math.sign,
1781
1938
  log: Math.log10,
1782
1939
  ln: Math.log,
1783
- deg: (i) => R(i / O),
1784
- rad: (i) => R(i * O),
1785
- sin: (i) => R(Math.sin(i * O)),
1786
- cos: (i) => R(Math.cos(i * O)),
1787
- tan: (i) => R(Math.tan(i * O)),
1788
- asin: (i) => R(Math.asin(i) / O),
1789
- acos: (i) => R(Math.acos(i) / O),
1790
- atan: (i) => R(Math.atan(i) / O)
1791
- }, ti = {
1940
+ deg: (i) => D(i / R),
1941
+ rad: (i) => D(i * R),
1942
+ sin: (i) => D(Math.sin(i * R)),
1943
+ cos: (i) => D(Math.cos(i * R)),
1944
+ tan: (i) => D(Math.tan(i * R)),
1945
+ asin: (i) => D(Math.asin(i) / R),
1946
+ acos: (i) => D(Math.acos(i) / R),
1947
+ atan: (i) => D(Math.atan(i) / R)
1948
+ }, pi = {
1792
1949
  min: (i) => i.length > 0 ? Math.min(...i) : NaN,
1793
1950
  max: (i) => i.length > 0 ? Math.max(...i) : NaN,
1794
1951
  pow: (i) => i.length === 2 ? Math.pow(i[0], i[1]) : NaN,
1795
1952
  hypot: (i) => i.length >= 2 ? Math.hypot(...i) : NaN,
1796
- atan2: (i) => i.length === 2 ? R(Math.atan2(i[0], i[1]) / O) : NaN,
1953
+ atan2: (i) => i.length === 2 ? D(Math.atan2(i[0], i[1]) / R) : NaN,
1797
1954
  mod: (i) => i.length === 2 && i[1] !== 0 ? i[0] % i[1] : NaN
1798
1955
  };
1799
- function ii(i) {
1956
+ function hi(i) {
1800
1957
  if (!i || typeof i != "string") return null;
1801
1958
  let t = i.trim();
1802
- if (t.startsWith("=") && (t = t.slice(1).trim()), !t) return null;
1959
+ if (t.startsWith("=") && (t = t.slice(1).trim()), !t || t.length > ci) return null;
1803
1960
  t = t.replace(/(\d),(\d)/g, "$1.$2");
1804
1961
  let e = 0, r = 0, a = !1;
1805
1962
  function o() {
@@ -1817,61 +1974,61 @@ function ii(i) {
1817
1974
  throw new Error("Parêntese sem fechamento");
1818
1975
  }
1819
1976
  function s() {
1820
- if (++r > De)
1977
+ if (++r > We)
1821
1978
  throw new Error("Profundidade máxima excedida");
1822
1979
  try {
1823
1980
  l();
1824
- let p = h();
1981
+ let c = h();
1825
1982
  for (l(); e < t.length; ) {
1826
1983
  const f = o();
1827
1984
  if (f === "+" || f === "-") {
1828
1985
  n(), l();
1829
1986
  const m = h(), g = a;
1830
- l(), g ? p = f === "+" ? p + p * m : p - p * m : p = f === "+" ? p + m : p - m, a = !1;
1987
+ l(), g ? c = f === "+" ? c + c * m : c - c * m : c = f === "+" ? c + m : c - m, a = !1;
1831
1988
  } else
1832
1989
  break;
1833
1990
  }
1834
- return p;
1991
+ return c;
1835
1992
  } finally {
1836
1993
  r--;
1837
1994
  }
1838
1995
  }
1839
1996
  function h() {
1840
1997
  l();
1841
- let p = c(), f = a;
1998
+ let c = u(), f = a;
1842
1999
  for (l(); e < t.length; ) {
1843
2000
  const m = o();
1844
2001
  if (m === "*" || m === "/" || m === "x" || m === "X") {
1845
2002
  n(), l();
1846
- const g = c();
2003
+ const g = u();
1847
2004
  if (f = !1, m === "/" && g === 0)
1848
2005
  throw new Error("Divisão por zero");
1849
- p = m === "/" ? p / g : p * g, l();
2006
+ c = m === "/" ? c / g : c * g, l();
1850
2007
  } else
1851
2008
  break;
1852
2009
  }
1853
- return a = f, p;
2010
+ return a = f, c;
1854
2011
  }
1855
- function c() {
1856
- if (++r > De)
2012
+ function u() {
2013
+ if (++r > We)
1857
2014
  throw new Error("Profundidade máxima excedida");
1858
2015
  try {
1859
2016
  l();
1860
- const p = o();
1861
- if (p === "+" || p === "-") {
2017
+ const c = o();
2018
+ if (c === "+" || c === "-") {
1862
2019
  n();
1863
- const g = c();
1864
- return p === "-" ? -g : g;
2020
+ const g = u();
2021
+ return c === "-" ? -g : g;
1865
2022
  }
1866
- let f = u();
2023
+ let f = p();
1867
2024
  const m = a;
1868
2025
  if (l(), o() === "^") {
1869
2026
  n();
1870
- const g = c();
2027
+ const g = u();
1871
2028
  f = Math.pow(f, g), a = !1;
1872
2029
  } else if (t.slice(e, e + 2) === "**") {
1873
2030
  e += 2;
1874
- const g = c();
2031
+ const g = u();
1875
2032
  f = Math.pow(f, g), a = !1;
1876
2033
  } else
1877
2034
  a = m;
@@ -1880,63 +2037,66 @@ function ii(i) {
1880
2037
  r--;
1881
2038
  }
1882
2039
  }
1883
- function u() {
2040
+ function p() {
1884
2041
  l(), a = !1;
1885
- const p = o();
1886
- if (p === "+" || p === "-") {
2042
+ const c = o();
2043
+ if (c === "+" || c === "-") {
1887
2044
  n();
1888
- const b = u();
1889
- return p === "-" ? -b : b;
2045
+ const b = p();
2046
+ return c === "-" ? -b : b;
1890
2047
  }
1891
- if (p === "(") {
2048
+ if (c === "(") {
1892
2049
  n();
1893
2050
  const b = s();
1894
2051
  return d(), l(), o() === "%" ? (n(), a = !0, b / 100) : (a = !1, b);
1895
2052
  }
1896
- const f = t.slice(e).match(/^([a-zA-Z_]\w*)\s*\(/);
2053
+ be.lastIndex = e;
2054
+ const f = be.exec(t);
1897
2055
  if (f) {
1898
- const b = f[1].toLowerCase(), x = ei[b], v = ti[b];
1899
- if (!x && !v)
2056
+ const b = f[1].toLowerCase(), _ = ui[b], x = pi[b];
2057
+ if (!_ && !x)
1900
2058
  throw new Error("Função desconhecida: " + f[1]);
1901
- e += f[0].length;
2059
+ e = be.lastIndex;
1902
2060
  const E = [s()];
1903
2061
  for (; ; ) {
1904
2062
  l();
1905
- const S = o();
1906
- if (S === ";" || S === ",")
2063
+ const z = o();
2064
+ if (z === ";" || z === ",")
1907
2065
  n(), l(), E.push(s());
1908
- else if (S !== "" && /[0-9.(a-zA-Zπ]/.test(S))
2066
+ else if (z !== "" && /[0-9.(a-zA-Zπ]/.test(z))
1909
2067
  E.push(s());
1910
2068
  else
1911
2069
  break;
1912
2070
  }
1913
2071
  d();
1914
- const k = v ? v(E) : E.length === 1 && x ? x(E[0]) : NaN;
1915
- if (isNaN(k)) throw new Error("Resultado inválido de função");
1916
- return l(), o() === "%" ? (n(), a = !0, k / 100) : (a = !1, k);
2072
+ const y = x ? x(E) : E.length === 1 && _ ? _(E[0]) : NaN;
2073
+ if (isNaN(y)) throw new Error("Resultado inválido de função");
2074
+ return l(), o() === "%" ? (n(), a = !0, y / 100) : (a = !1, y);
1917
2075
  }
1918
- const m = t.slice(e).match(/^(pi|π|e)\b/i);
2076
+ ge.lastIndex = e;
2077
+ const m = ge.exec(t);
1919
2078
  if (m) {
1920
- e += m[0].length;
1921
- let x = m[1].toLowerCase() === "e" ? Math.E : Math.PI;
1922
- return l(), o() === "%" && (n(), a = !0, x = x / 100), x;
2079
+ e = ge.lastIndex;
2080
+ let _ = m[1].toLowerCase() === "e" ? Math.E : Math.PI;
2081
+ return l(), o() === "%" && (n(), a = !0, _ = _ / 100), _;
1923
2082
  }
1924
- const g = t.slice(e).match(/^(?:[0-9]+(?:\.[0-9]+)?|\.[0-9]+|,[0-9]+)(?:[eE][+-]?[0-9]+)?/);
2083
+ ve.lastIndex = e;
2084
+ const g = ve.exec(t);
1925
2085
  if (g) {
1926
- e += g[0].length;
2086
+ e = ve.lastIndex;
1927
2087
  let b = parseFloat(g[0].replace(",", "."));
1928
2088
  return l(), o() === "%" && (n(), a = !0, b = b / 100), b;
1929
2089
  }
1930
- throw new Error("Caractere inválido: " + p);
2090
+ throw new Error("Caractere inválido: " + c);
1931
2091
  }
1932
2092
  try {
1933
- const p = s();
1934
- return l(), e < t.length ? null : typeof p == "number" && isFinite(p) ? p : null;
2093
+ const c = s();
2094
+ return l(), e < t.length ? null : typeof c == "number" && isFinite(c) ? c : null;
1935
2095
  } catch {
1936
2096
  return null;
1937
2097
  }
1938
2098
  }
1939
- const ri = Object.freeze([
2099
+ const fi = Object.freeze([
1940
2100
  { nome: "abs", tipo: "funcao", assinatura: "(x)", descricao: "Valor absoluto (sem sinal). Ex.: abs(-5) = 5" },
1941
2101
  { nome: "acos", tipo: "funcao", assinatura: "(x)", descricao: "Arco-cosseno; o resultado é em graus. Ex.: acos(0.5) = 60" },
1942
2102
  { nome: "asin", tipo: "funcao", assinatura: "(x)", descricao: "Arco-seno; o resultado é em graus. Ex.: asin(0.5) = 30" },
@@ -1963,7 +2123,7 @@ const ri = Object.freeze([
1963
2123
  { nome: "tan", tipo: "funcao", assinatura: "(x)", descricao: "Tangente, com x em graus. Ex.: tan(45) = 1" },
1964
2124
  { nome: "trunc", tipo: "funcao", assinatura: "(x)", descricao: "Remove a parte decimal. Ex.: trunc(-2.9) = -2" }
1965
2125
  ]);
1966
- function ai(i, t) {
2126
+ function mi(i, t) {
1967
2127
  if (typeof i != "string" || !Number.isFinite(t)) return null;
1968
2128
  const e = Math.max(0, Math.min(i.length, Math.floor(t))), r = i.slice(0, e), a = /[a-zA-Z_]+$/.exec(r);
1969
2129
  if (!a) return null;
@@ -1971,97 +2131,145 @@ function ai(i, t) {
1971
2131
  if (o > 0 && /[0-9.,]/.test(i[o - 1])) return null;
1972
2132
  const n = i.slice(e);
1973
2133
  if (/^[a-zA-Z0-9_]/.test(n)) return null;
1974
- const l = a[0].toLowerCase(), d = ri.filter((s) => !(!s.nome.startsWith(l) || s.nome === l && (s.tipo === "constante" || n.startsWith("("))));
2134
+ const l = a[0].toLowerCase(), d = fi.filter((s) => !(!s.nome.startsWith(l) || s.nome === l && (s.tipo === "constante" || n.startsWith("("))));
1975
2135
  return d.length > 0 ? { entradas: d, inicio: o, fim: e } : null;
1976
2136
  }
1977
- function oi(i, t, e) {
2137
+ function bi(i, t, e) {
1978
2138
  const r = e.nome + (e.tipo === "funcao" ? "(" : "");
1979
2139
  return {
1980
2140
  texto: i.slice(0, t.inicio) + r + i.slice(t.fim),
1981
2141
  cursor: t.inicio + r.length
1982
2142
  };
1983
2143
  }
1984
- let ni = 0;
1985
- function Ie(i) {
2144
+ let gi = 0;
2145
+ function Ue(i) {
1986
2146
  var e;
1987
2147
  const t = i.getRootNode();
1988
2148
  return ((e = t.getElementById) == null ? void 0 : e.call(t, "container")) ?? null;
1989
2149
  }
1990
- function si(i) {
1991
- const t = `ui-prop-ac-${++ni}`;
2150
+ function vi(i) {
2151
+ const t = `ui-prop-ac-${++gi}`;
1992
2152
  let e = null, r = null, a = [], o = null, n = 0;
1993
2153
  i.setAttribute("role", "combobox"), i.setAttribute("aria-autocomplete", "list"), i.setAttribute("aria-expanded", "false");
1994
- const l = (p) => {
2154
+ const l = (c) => {
1995
2155
  var f, m;
1996
- !o || a.length === 0 || (n = (p + a.length) % a.length, a.forEach((g, b) => {
1997
- const x = b === n;
1998
- g.classList.toggle("ui-prop__ac-item--ativo", x), g.setAttribute("aria-selected", String(x));
2156
+ !o || a.length === 0 || (n = (c + a.length) % a.length, a.forEach((g, b) => {
2157
+ const _ = b === n;
2158
+ g.classList.toggle("ui-prop__ac-item--ativo", _), g.setAttribute("aria-selected", String(_));
1999
2159
  }), i.setAttribute("aria-activedescendant", a[n].id), r && (r.textContent = o.entradas[n].descricao), (m = (f = a[n]).scrollIntoView) == null || m.call(f, { block: "nearest" }));
2000
2160
  }, d = () => {
2001
- const p = Ie(i);
2002
- if (!e || !p) return;
2003
- const f = p.getBoundingClientRect(), m = i.getBoundingClientRect(), g = Math.max(m.width, 190), b = Math.max(0, Math.min(m.right - f.left - g, f.width - g));
2161
+ const c = Ue(i);
2162
+ if (!e || !c) return;
2163
+ const f = c.getBoundingClientRect(), m = i.getBoundingClientRect(), g = Math.max(m.width, 190), b = Math.max(0, Math.min(m.right - f.left - g, f.width - g));
2004
2164
  e.style.minWidth = `${g}px`, e.style.left = `${b}px`;
2005
- const x = e.offsetHeight || 0, v = m.bottom - f.top;
2006
- x && v + x > f.height && m.top - f.top - x > 0 ? e.style.top = `${m.top - f.top - x}px` : e.style.top = `${v}px`;
2165
+ const _ = e.offsetHeight || 0, x = m.bottom - f.top;
2166
+ _ && x + _ > f.height && m.top - f.top - _ > 0 ? e.style.top = `${m.top - f.top - _}px` : e.style.top = `${x}px`;
2007
2167
  }, s = () => {
2008
2168
  e && e.remove(), e = null, r = null, a = [], o = null, n = 0, i.setAttribute("aria-expanded", "false"), i.removeAttribute("aria-controls"), i.removeAttribute("aria-activedescendant");
2009
- }, h = (p) => {
2169
+ }, h = (c) => {
2010
2170
  if (!o) return;
2011
- const f = o.entradas[p];
2171
+ const f = o.entradas[c];
2012
2172
  if (!f) return;
2013
- const m = oi(i.value, o, f);
2173
+ const m = bi(i.value, o, f);
2014
2174
  s(), i.value = m.texto;
2015
2175
  try {
2016
2176
  i.setSelectionRange(m.cursor, m.cursor);
2017
2177
  } catch {
2018
2178
  }
2019
2179
  i.dispatchEvent(new Event("input", { bubbles: !0 }));
2020
- }, c = (p) => {
2021
- const f = Ie(i);
2180
+ }, u = (c) => {
2181
+ const f = Ue(i);
2022
2182
  if (!f) return;
2023
2183
  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()), f.appendChild(e));
2024
2184
  const m = e;
2025
- m.textContent = "", a = p.entradas.map((g, b) => {
2026
- const x = document.createElement("div");
2027
- x.id = `${t}-${b}`, x.className = "ui-prop__ac-item", x.setAttribute("part", "autocomplete-item"), x.setAttribute("role", "option");
2028
- const v = document.createElement("span");
2029
- v.className = "ui-prop__ac-nome", v.textContent = g.nome;
2185
+ m.textContent = "", a = c.entradas.map((g, b) => {
2186
+ const _ = document.createElement("div");
2187
+ _.id = `${t}-${b}`, _.className = "ui-prop__ac-item", _.setAttribute("part", "autocomplete-item"), _.setAttribute("role", "option");
2188
+ const x = document.createElement("span");
2189
+ x.className = "ui-prop__ac-nome", x.textContent = g.nome;
2030
2190
  const E = document.createElement("span");
2031
- return E.className = "ui-prop__ac-assinatura", E.textContent = g.assinatura, x.append(v, E), x.addEventListener("mouseenter", () => l(b)), x.addEventListener("click", () => h(b)), m.appendChild(x), x;
2032
- }), r = document.createElement("div"), r.className = "ui-prop__ac-dica", r.setAttribute("part", "autocomplete-dica"), r.setAttribute("aria-live", "polite"), m.appendChild(r), o = p, i.setAttribute("aria-expanded", "true"), i.setAttribute("aria-controls", t), l(0), d();
2033
- }, u = () => {
2034
- const p = ai(i.value, i.selectionStart ?? i.value.length);
2035
- p ? c(p) : s();
2191
+ return E.className = "ui-prop__ac-assinatura", E.textContent = g.assinatura, _.append(x, E), _.addEventListener("mouseenter", () => l(b)), _.addEventListener("click", () => h(b)), m.appendChild(_), _;
2192
+ }), r = document.createElement("div"), r.className = "ui-prop__ac-dica", r.setAttribute("part", "autocomplete-dica"), r.setAttribute("aria-live", "polite"), m.appendChild(r), o = c, i.setAttribute("aria-expanded", "true"), i.setAttribute("aria-controls", t), l(0), d();
2193
+ }, p = () => {
2194
+ const c = mi(i.value, i.selectionStart ?? i.value.length);
2195
+ c ? u(c) : s();
2036
2196
  };
2037
- return i.addEventListener("input", u), i.addEventListener("click", u), i.addEventListener("keyup", (p) => {
2038
- (p.key === "ArrowLeft" || p.key === "ArrowRight" || p.key === "Home" || p.key === "End") && u();
2197
+ return i.addEventListener("input", p), i.addEventListener("click", p), i.addEventListener("keyup", (c) => {
2198
+ (c.key === "ArrowLeft" || c.key === "ArrowRight" || c.key === "Home" || c.key === "End") && p();
2039
2199
  }), i.addEventListener("blur", s), {
2040
2200
  aberto: () => e !== null,
2041
2201
  fechar: s,
2042
- tratarTecla: (p) => {
2202
+ tratarTecla: (c) => {
2043
2203
  if (!e) return !1;
2044
- switch (p.key) {
2204
+ switch (c.key) {
2045
2205
  case "ArrowDown":
2046
- return p.preventDefault(), l(n + 1), !0;
2206
+ return c.preventDefault(), l(n + 1), !0;
2047
2207
  case "ArrowUp":
2048
- return p.preventDefault(), l(n - 1), !0;
2208
+ return c.preventDefault(), l(n - 1), !0;
2049
2209
  case "Enter":
2210
+ return c.ctrlKey || c.metaKey ? (s(), !1) : (c.preventDefault(), h(n), !0);
2050
2211
  case "Tab":
2051
- return p.preventDefault(), h(n), !0;
2212
+ return c.shiftKey ? (s(), !1) : (c.preventDefault(), h(n), !0);
2052
2213
  case "Escape":
2053
- return p.preventDefault(), p.stopPropagation(), s(), !0;
2214
+ return c.preventDefault(), c.stopPropagation(), s(), !0;
2054
2215
  default:
2055
2216
  return !1;
2056
2217
  }
2057
2218
  }
2058
2219
  };
2059
2220
  }
2060
- const li = "ui_tabela_propriedades_estado_", te = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
2061
- function Te(i) {
2221
+ const H = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
2222
+ function Y(i) {
2223
+ if (i == null) return !1;
2224
+ const t = String(i);
2225
+ return t.length > 0 && !H.has(t);
2226
+ }
2227
+ const Le = Symbol.for("ui-tabela-propriedades:misto"), Me = "Varia";
2228
+ function k(i) {
2229
+ return i === Le;
2230
+ }
2231
+ function P(i) {
2232
+ var e;
2233
+ let t;
2234
+ try {
2235
+ t = (e = i.obterTextoMisto) == null ? void 0 : e.call(i);
2236
+ } catch {
2237
+ }
2238
+ return typeof t == "string" && t.trim() ? t : Me;
2239
+ }
2240
+ function F(i, t) {
2241
+ return i == null && t == null ? !0 : i === t || Object.is(i, t);
2242
+ }
2243
+ function xe(i) {
2244
+ return i.misto ? Le : i.valor;
2245
+ }
2246
+ function _i(i) {
2247
+ if (!Array.isArray(i) || i.length === 0) return;
2248
+ const t = i[0];
2249
+ for (let e = 1; e < i.length; e++)
2250
+ if (!F(t, i[e])) return Le;
2251
+ return t;
2252
+ }
2253
+ function pr(i) {
2254
+ if (!Array.isArray(i)) return {};
2255
+ const t = i.filter(
2256
+ (a) => a !== null && typeof a == "object" && !Array.isArray(a)
2257
+ ), e = /* @__PURE__ */ new Set();
2258
+ t.forEach((a) => Object.keys(a).forEach((o) => {
2259
+ H.has(o) || e.add(o);
2260
+ }));
2261
+ const r = {};
2262
+ return e.forEach((a) => {
2263
+ r[a] = _i(
2264
+ t.map((o) => Object.prototype.hasOwnProperty.call(o, a) ? o[a] : void 0)
2265
+ );
2266
+ }), r;
2267
+ }
2268
+ const xi = "ui_tabela_propriedades_estado_";
2269
+ function Xe(i) {
2062
2270
  return !!i && typeof i == "object" && !Array.isArray(i);
2063
2271
  }
2064
- function ve() {
2272
+ function Oe() {
2065
2273
  if (typeof window > "u") return null;
2066
2274
  try {
2067
2275
  return typeof localStorage < "u" ? localStorage : null;
@@ -2069,25 +2277,25 @@ function ve() {
2069
2277
  return null;
2070
2278
  }
2071
2279
  }
2072
- function Y(i, t) {
2280
+ function ie(i, t) {
2073
2281
  const e = typeof i == "string" ? i.trim() : "", r = typeof t == "string" ? t.trim() : "";
2074
- return `${li}${e || r || "default"}`;
2282
+ return `${xi}${e || r || "default"}`;
2075
2283
  }
2076
- function di(i) {
2077
- if (!Te(i)) return null;
2284
+ function yi(i) {
2285
+ if (!Xe(i)) return null;
2078
2286
  const t = {};
2079
- if (Te(i.categorias))
2287
+ if (Xe(i.categorias))
2080
2288
  for (const [a, o] of Object.entries(i.categorias))
2081
- !a || te.has(a) || typeof o == "boolean" && (t[a] = o);
2289
+ !a || H.has(a) || typeof o == "boolean" && (t[a] = o);
2082
2290
  const e = typeof i.versao == "number" && Number.isFinite(i.versao) ? i.versao : 1, r = typeof i.ultimaAtualizacao == "number" && Number.isFinite(i.ultimaAtualizacao) ? i.ultimaAtualizacao : void 0;
2083
2291
  return r !== void 0 ? { versao: e, categorias: t, ultimaAtualizacao: r } : { versao: e, categorias: t };
2084
2292
  }
2085
- function ci(i) {
2086
- const t = ve();
2293
+ function Ei(i) {
2294
+ const t = Oe();
2087
2295
  if (!t) return null;
2088
2296
  try {
2089
2297
  const e = t.getItem(i);
2090
- return e ? di(JSON.parse(e)) : null;
2298
+ return e ? yi(JSON.parse(e)) : null;
2091
2299
  } catch (e) {
2092
2300
  return console.warn(
2093
2301
  `[ui-tabela-propriedades] Não foi possível carregar o estado persistido (${i}):`,
@@ -2095,8 +2303,8 @@ function ci(i) {
2095
2303
  ), null;
2096
2304
  }
2097
2305
  }
2098
- function ui(i, t) {
2099
- const e = ve();
2306
+ function Ai(i, t) {
2307
+ const e = Oe();
2100
2308
  if (e)
2101
2309
  try {
2102
2310
  e.setItem(i, JSON.stringify(t));
@@ -2107,49 +2315,49 @@ function ui(i, t) {
2107
2315
  );
2108
2316
  }
2109
2317
  }
2110
- function pi(i) {
2111
- const t = ve();
2318
+ function wi(i) {
2319
+ const t = Oe();
2112
2320
  if (t)
2113
2321
  try {
2114
2322
  t.removeItem(i);
2115
2323
  } catch {
2116
2324
  }
2117
2325
  }
2118
- function D(i) {
2326
+ function T(i) {
2119
2327
  if (!i || typeof i != "object") return null;
2120
2328
  const t = i.id;
2121
2329
  if (t == null) return null;
2122
2330
  const e = String(t);
2123
- return !e || te.has(e) ? null : e;
2331
+ return !e || H.has(e) ? null : e;
2124
2332
  }
2125
- function ue(i) {
2333
+ function ye(i) {
2126
2334
  return i.aberto !== void 0 ? i.aberto !== !1 : i.aberta !== !1;
2127
2335
  }
2128
- function W(i, t) {
2336
+ function Z(i, t) {
2129
2337
  if (!(!i || typeof i != "object" || Object.isFrozen(i)))
2130
2338
  try {
2131
2339
  i.aberto = t, "aberta" in i && (i.aberta = t);
2132
2340
  } catch {
2133
2341
  }
2134
2342
  }
2135
- class hi {
2343
+ class Ci {
2136
2344
  constructor(t) {
2137
- _(this, "preferencias", /* @__PURE__ */ new Map());
2138
- _(this, "origensAberto", /* @__PURE__ */ new Map());
2345
+ v(this, "preferencias", /* @__PURE__ */ new Map());
2346
+ v(this, "origensAberto", /* @__PURE__ */ new Map());
2139
2347
  /** Padrão original por objeto: reatribuir o mesmo objeto não grava como padrão o estado já alterado. */
2140
- _(this, "origemPorObjeto", /* @__PURE__ */ new WeakMap());
2141
- _(this, "ultimaChaveCarregada", null);
2348
+ v(this, "origemPorObjeto", /* @__PURE__ */ new WeakMap());
2349
+ v(this, "ultimaChaveCarregada", null);
2142
2350
  this.getContexto = t;
2143
2351
  }
2144
2352
  chaveAtual() {
2145
2353
  const t = this.getContexto();
2146
- return Y(t.storageKey, t.id);
2354
+ return ie(t.storageKey, t.id);
2147
2355
  }
2148
2356
  /** Carrega preferências do storage. Quando `substituirExistentes` é falso, preserva alterações feitas antes da conexão. */
2149
2357
  carregarDoStorage(t = !1) {
2150
- const e = this.getContexto(), r = Y(e.storageKey, e.id);
2358
+ const e = this.getContexto(), r = ie(e.storageKey, e.id);
2151
2359
  if (t && this.preferencias.clear(), this.ultimaChaveCarregada = r, !e.persistir) return !1;
2152
- const a = ci(r);
2360
+ const a = Ei(r);
2153
2361
  if (!a) return !1;
2154
2362
  for (const [o, n] of Object.entries(a.categorias))
2155
2363
  (t || !this.preferencias.has(o)) && this.preferencias.set(o, n);
@@ -2159,17 +2367,17 @@ class hi {
2159
2367
  sincronizarSeChaveMudou() {
2160
2368
  const t = this.getContexto();
2161
2369
  if (!t.conectado || !t.persistir) return !1;
2162
- const e = Y(t.storageKey, t.id);
2370
+ const e = ie(t.storageKey, t.id);
2163
2371
  return this.ultimaChaveCarregada === null ? this.carregarDoStorage(!1) : e !== this.ultimaChaveCarregada ? this.carregarDoStorage(!0) : !1;
2164
2372
  }
2165
2373
  /** Registra os padrões originais enviados pela aplicação para permitir restauração via `limpar()`. */
2166
2374
  registrarOrigens(t) {
2167
2375
  if (this.origensAberto.clear(), !!Array.isArray(t))
2168
2376
  for (const e of t) {
2169
- const r = D(e);
2377
+ const r = T(e);
2170
2378
  if (r !== null) {
2171
2379
  let a = this.origemPorObjeto.get(e);
2172
- a === void 0 && (a = ue(e), this.origemPorObjeto.set(e, a)), this.origensAberto.set(r, a);
2380
+ a === void 0 && (a = ye(e), this.origemPorObjeto.set(e, a)), this.origensAberto.set(r, a);
2173
2381
  }
2174
2382
  }
2175
2383
  }
@@ -2177,49 +2385,49 @@ class hi {
2177
2385
  aplicarEmCategorias(t) {
2178
2386
  if (Array.isArray(t))
2179
2387
  for (const e of t) {
2180
- const r = D(e);
2181
- r !== null && this.preferencias.has(r) && W(e, this.preferencias.get(r));
2388
+ const r = T(e);
2389
+ r !== null && this.preferencias.has(r) && Z(e, this.preferencias.get(r));
2182
2390
  }
2183
2391
  }
2184
2392
  /** Restaura nos objetos mutáveis os valores iniciais enviados pela aplicação. */
2185
2393
  restaurarOrigensEmCategorias(t) {
2186
2394
  if (Array.isArray(t))
2187
2395
  for (const e of t) {
2188
- const r = D(e);
2189
- r !== null && this.origensAberto.has(r) && W(e, this.origensAberto.get(r));
2396
+ const r = T(e);
2397
+ r !== null && this.origensAberto.has(r) && Z(e, this.origensAberto.get(r));
2190
2398
  }
2191
2399
  }
2192
2400
  /** Estado efetivo da categoria considerando preferência lembrada e padrão da própria categoria. */
2193
2401
  estaAberta(t) {
2194
2402
  if (!t || typeof t != "object") return !0;
2195
- const e = D(t);
2196
- return e !== null && this.preferencias.has(e) ? this.preferencias.get(e) : ue(t);
2403
+ const e = T(t);
2404
+ return e !== null && this.preferencias.has(e) ? this.preferencias.get(e) : ye(t);
2197
2405
  }
2198
2406
  registrar(t, e, r = !0) {
2199
- !t || te.has(t) || (this.preferencias.set(t, !!e), r && this.salvar());
2407
+ !t || H.has(t) || (this.preferencias.set(t, !!e), r && this.salvar());
2200
2408
  }
2201
2409
  registrarVarias(t, e = !0) {
2202
2410
  let r = !1;
2203
2411
  for (const [a, o] of t)
2204
- !a || te.has(a) || (this.preferencias.set(a, !!o), r = !0);
2412
+ !a || H.has(a) || (this.preferencias.set(a, !!o), r = !0);
2205
2413
  r && e && this.salvar();
2206
2414
  }
2207
2415
  salvar() {
2208
2416
  const t = this.getContexto();
2209
2417
  if (!t.persistir || !t.conectado) return;
2210
- const e = Y(t.storageKey, t.id);
2418
+ const e = ie(t.storageKey, t.id);
2211
2419
  if (this.ultimaChaveCarregada = e, this.preferencias.size === 0) return;
2212
2420
  const r = {};
2213
2421
  for (const [a, o] of this.preferencias.entries())
2214
2422
  r[a] = o;
2215
- ui(e, {
2423
+ Ai(e, {
2216
2424
  versao: 1,
2217
2425
  categorias: r,
2218
2426
  ultimaAtualizacao: Date.now()
2219
2427
  });
2220
2428
  }
2221
2429
  limpar(t) {
2222
- this.preferencias.clear(), t && this.restaurarOrigensEmCategorias(t), pi(this.chaveAtual());
2430
+ this.preferencias.clear(), t && this.restaurarOrigensEmCategorias(t), wi(this.chaveAtual());
2223
2431
  }
2224
2432
  obterEstado(t) {
2225
2433
  const e = {};
@@ -2227,7 +2435,7 @@ class hi {
2227
2435
  e[r] = a;
2228
2436
  if (Array.isArray(t))
2229
2437
  for (const r of t) {
2230
- const a = D(r);
2438
+ const a = T(r);
2231
2439
  a !== null && !(a in e) && (e[a] = this.estaAberta(r));
2232
2440
  }
2233
2441
  return e;
@@ -2239,22 +2447,29 @@ class hi {
2239
2447
  return { estado: e, abertas: r, fechadas: a };
2240
2448
  }
2241
2449
  }
2242
- const xe = '.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';
2243
- function Ze(i, t) {
2450
+ const Re = '.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';
2451
+ function Ee(i, t) {
2244
2452
  if (!i) return null;
2245
2453
  const e = String(t);
2246
2454
  return Array.from(i.querySelectorAll("[data-prop-id]")).find((r) => r.getAttribute("data-prop-id") === e) ?? null;
2247
2455
  }
2248
- const Je = /* @__PURE__ */ new WeakMap();
2249
- function T(i, t) {
2250
- Je.set(i, t);
2456
+ function Si(i) {
2457
+ const t = /* @__PURE__ */ new Map();
2458
+ return i && i.querySelectorAll("[data-prop-id]").forEach((e) => {
2459
+ const r = e.getAttribute("data-prop-id");
2460
+ r !== null && t.set(r, e);
2461
+ }), t;
2462
+ }
2463
+ const nt = /* @__PURE__ */ new WeakMap();
2464
+ function B(i, t) {
2465
+ nt.set(i, t);
2251
2466
  }
2252
- function Be(i, t, e) {
2253
- var o, n;
2254
- const r = Ze(i, t), a = (o = r == null ? void 0 : r.querySelector(".ui-prop__col-valor")) == null ? void 0 : o.firstElementChild;
2255
- a && ((n = Je.get(a)) == null || n(e));
2467
+ function Ge(i, t, e, r) {
2468
+ var n, l;
2469
+ const a = r !== void 0 ? r : Ee(i, t), o = (n = a == null ? void 0 : a.querySelector(".ui-prop__col-valor")) == null ? void 0 : n.firstElementChild;
2470
+ o && ((l = nt.get(o)) == null || l(e));
2256
2471
  }
2257
- function ae(i, t, e = (a, o) => a === String(o), r = (a) => a == null || a === "" ? "—" : String(a)) {
2472
+ function ue(i, t, e = (a, o) => a === String(o), r = (a) => a == null || a === "" ? "—" : String(a)) {
2258
2473
  var n;
2259
2474
  (n = i.querySelector("option[data-externa]")) == null || n.remove();
2260
2475
  const a = Array.from(i.options).find((l) => !l.hasAttribute("data-acao") && e(l.value, t));
@@ -2265,63 +2480,63 @@ function ae(i, t, e = (a, o) => a === String(o), r = (a) => a == null || a === "
2265
2480
  const o = document.createElement("option");
2266
2481
  o.value = t == null ? "" : String(t), o.textContent = r(t), o.setAttribute("data-externa", ""), o.hidden = !0, i.insertBefore(o, i.firstChild), o.selected = !0;
2267
2482
  }
2268
- function oe(i, t) {
2483
+ function pe(i, t) {
2269
2484
  var r;
2270
2485
  (r = i.querySelector("option[data-externa]")) == null || r.remove();
2271
2486
  const e = document.createElement("option");
2272
2487
  e.value = "", e.textContent = t, e.setAttribute("data-externa", ""), e.setAttribute("data-misto", ""), e.hidden = !0, e.disabled = !0, i.insertBefore(e, i.firstChild), e.selected = !0;
2273
2488
  }
2274
- function fi(i, t) {
2275
- const e = Array.from(i.querySelectorAll(xe)), r = e.indexOf(t);
2489
+ function zi(i, t) {
2490
+ const e = Array.from(i.querySelectorAll(Re)), r = e.indexOf(t);
2276
2491
  if (r !== -1 && r + 1 < e.length) {
2277
2492
  const a = e[r + 1];
2278
2493
  a.focus(), a instanceof HTMLInputElement && a.select();
2279
2494
  }
2280
2495
  }
2281
- function mi(i, t) {
2282
- const e = Array.from(i.querySelectorAll(xe)), r = e.indexOf(t);
2496
+ function ki(i, t) {
2497
+ const e = Array.from(i.querySelectorAll(Re)), r = e.indexOf(t);
2283
2498
  if (r > 0) {
2284
2499
  const a = e[r - 1];
2285
2500
  a.focus(), a instanceof HTMLInputElement && a.select();
2286
2501
  }
2287
2502
  }
2288
- function bi(i) {
2289
- const t = i.querySelector(xe);
2503
+ function Li(i) {
2504
+ const t = i.querySelector(Re);
2290
2505
  t && (t.focus(), t instanceof HTMLInputElement && t.select());
2291
2506
  }
2292
- function ne(i, t) {
2507
+ function he(i, t) {
2293
2508
  var e;
2294
2509
  i.classList.toggle("ui-prop__categoria--aberta", t), I(i, "categoria-aberta", t), (e = i.querySelector(".ui-prop__categoria-header")) == null || e.setAttribute("aria-expanded", String(t));
2295
2510
  }
2296
- function gi(i, t, e) {
2511
+ function Mi(i, t, e) {
2297
2512
  const r = /* @__PURE__ */ new Map();
2298
2513
  i.querySelectorAll(".ui-prop__categoria[data-cat-id]").forEach((a) => {
2299
2514
  const o = a.getAttribute("data-cat-id");
2300
2515
  o !== null && r.set(o, a);
2301
2516
  }), (Array.isArray(t) ? t : []).forEach((a) => {
2302
- const o = D(a);
2517
+ const o = T(a);
2303
2518
  if (o === null) return;
2304
2519
  const n = e(a), l = r.get(o);
2305
- l && ne(l, n);
2520
+ l && he(l, n);
2306
2521
  });
2307
2522
  }
2308
- function vi(i, t) {
2523
+ function Oi(i, t) {
2309
2524
  (Array.isArray(t) ? t : []).forEach((e) => {
2310
- W(e, !0);
2311
- }), i.querySelectorAll(".ui-prop__categoria").forEach((e) => ne(e, !0));
2525
+ Z(e, !0);
2526
+ }), i.querySelectorAll(".ui-prop__categoria").forEach((e) => he(e, !0));
2312
2527
  }
2313
- function xi(i, t) {
2528
+ function Ri(i, t) {
2314
2529
  (Array.isArray(t) ? t : []).forEach((e) => {
2315
- W(e, !1);
2316
- }), i.querySelectorAll(".ui-prop__categoria").forEach((e) => ne(e, !1));
2530
+ Z(e, !1);
2531
+ }), i.querySelectorAll(".ui-prop__categoria").forEach((e) => he(e, !1));
2317
2532
  }
2318
- function _i(i, t, e, r, a) {
2533
+ function Di(i, t, e, r, a) {
2319
2534
  const o = (Array.isArray(e) ? e : []).find(
2320
2535
  (s) => s && typeof s == "object" && String(s.id) === String(r)
2321
2536
  );
2322
2537
  if (!o) return;
2323
- const n = Array.from(i.querySelectorAll("[data-cat-id]")).find((s) => s.getAttribute("data-cat-id") === String(r)), d = !(a !== void 0 ? a : n ? n.classList.contains("ui-prop__categoria--aberta") : ue(o));
2324
- return W(o, d), n && ne(n, d), t.dispatchEvent(
2538
+ const n = Array.from(i.querySelectorAll("[data-cat-id]")).find((s) => s.getAttribute("data-cat-id") === String(r)), d = !(a !== void 0 ? a : n ? n.classList.contains("ui-prop__categoria--aberta") : ye(o));
2539
+ return Z(o, d), n && he(n, d), t.dispatchEvent(
2325
2540
  new CustomEvent("ui-categoria-toggle", {
2326
2541
  bubbles: !0,
2327
2542
  composed: !0,
@@ -2329,71 +2544,34 @@ function _i(i, t, e, r, a) {
2329
2544
  })
2330
2545
  ), d;
2331
2546
  }
2332
- const _e = Symbol.for("ui-tabela-propriedades:misto"), Ee = "Varia";
2333
- function z(i) {
2334
- return i === _e;
2335
- }
2336
- function B(i) {
2337
- var e;
2338
- let t;
2339
- try {
2340
- t = (e = i.obterTextoMisto) == null ? void 0 : e.call(i);
2341
- } catch {
2342
- }
2343
- return typeof t == "string" && t.trim() ? t : Ee;
2344
- }
2345
- function F(i, t) {
2346
- return i == null && t == null ? !0 : i === t || Object.is(i, t);
2347
- }
2348
- function pe(i) {
2349
- return i.misto ? _e : i.valor;
2350
- }
2351
- function Ei(i) {
2352
- if (!Array.isArray(i) || i.length === 0) return;
2353
- const t = i[0];
2354
- for (let e = 1; e < i.length; e++)
2355
- if (!F(t, i[e])) return _e;
2356
- return t;
2357
- }
2358
- function er(i) {
2359
- if (!Array.isArray(i)) return {};
2360
- const t = i.filter(
2361
- (a) => a !== null && typeof a == "object" && !Array.isArray(a)
2362
- ), e = /* @__PURE__ */ new Set();
2363
- t.forEach((a) => Object.keys(a).forEach((o) => e.add(o)));
2364
- const r = {};
2365
- return e.forEach((a) => {
2366
- r[a] = Ei(t.map((o) => a in o ? o[a] : void 0));
2367
- }), r;
2368
- }
2369
- function se(i) {
2547
+ function fe(i) {
2370
2548
  if (typeof i.casasDecimais == "number" && i.casasDecimais >= 0) return i.casasDecimais;
2371
2549
  if (typeof i.precisao == "number" && i.precisao >= 0) return i.precisao;
2372
2550
  }
2373
- function yi(i, t) {
2551
+ function Ni(i, t) {
2374
2552
  return typeof i.passo == "number" && i.passo > 0 ? i.passo : typeof i.step == "number" && i.step > 0 ? i.step : t !== void 0 ? Math.pow(10, -t) : 1;
2375
2553
  }
2376
- function ye(i, t) {
2554
+ function De(i, t) {
2377
2555
  let e = i;
2378
2556
  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;
2379
2557
  }
2380
- function ce(i, t) {
2558
+ function _e(i, t) {
2381
2559
  if (typeof i != "string") return null;
2382
2560
  let e = i.trim();
2383
2561
  const r = typeof t.unidade == "string" ? t.unidade.trim() : "";
2384
2562
  if (r && e.length > r.length && e.toLowerCase().endsWith(r.toLowerCase()) && (e = e.slice(0, e.length - r.length).trim()), !e) return null;
2385
- const a = ii(e);
2563
+ const a = hi(e);
2386
2564
  if (a === null || !Number.isFinite(a)) return null;
2387
- const o = se(t), n = ye(a, t);
2565
+ const o = fe(t), n = De(a, t);
2388
2566
  return Number(o !== void 0 ? n.toFixed(o) : n.toPrecision(15));
2389
2567
  }
2390
- function Qe(i, t, e, r) {
2568
+ function st(i, t, e, r) {
2391
2569
  i.classList.toggle("ui-prop__editor--misto", e), e ? i.placeholder = r : t.placeholder ? i.placeholder = t.placeholder : i.removeAttribute("placeholder");
2392
2570
  }
2393
- function Ai(i, t, e, r) {
2394
- const a = document.createElement("span"), o = e ? se(e) : void 0, n = (l) => {
2395
- if (z(l)) {
2396
- a.className = "ui-prop__valor-readonly ui-prop__editor--misto", a.textContent = t ? B({ obterTextoMisto: t }) : Ee;
2571
+ function Ti(i, t, e, r) {
2572
+ const a = document.createElement("span"), o = e ? fe(e) : void 0, n = (l) => {
2573
+ if (k(l)) {
2574
+ a.className = "ui-prop__valor-readonly ui-prop__editor--misto", a.textContent = t ? P({ obterTextoMisto: t }) : Me;
2397
2575
  return;
2398
2576
  }
2399
2577
  if (l == null) {
@@ -2418,9 +2596,9 @@ function Ai(i, t, e, r) {
2418
2596
  } else
2419
2597
  a.textContent = String(l);
2420
2598
  };
2421
- return n(i), T(a, n), a;
2599
+ return n(i), B(a, n), a;
2422
2600
  }
2423
- function wi(i, t, e, r) {
2601
+ function Ii(i, t, e, r) {
2424
2602
  const a = document.createElement("label");
2425
2603
  a.className = "ui-prop__editor-booleano", a.setAttribute("role", "checkbox"), a.tabIndex = 0, a.setAttribute("aria-label", String(t.rotulo ?? t.id));
2426
2604
  const o = document.createElement("div");
@@ -2428,22 +2606,22 @@ function wi(i, t, e, r) {
2428
2606
  const n = document.createElement("span");
2429
2607
  n.className = "ui-prop__booleano-rotulo";
2430
2608
  const l = (s) => {
2431
- var u, p;
2432
- const h = z(s), c = !h && !!s;
2433
- a.classList.toggle("ui-prop__editor--misto", h), o.classList.toggle("ui-prop__checkbox-custom--marcado", c), o.classList.toggle("ui-prop__checkbox-custom--misto", h), o.textContent = h ? "–" : c ? "✓" : "", n.textContent = h ? B(r) : c ? ((u = r.obterTexto) == null ? void 0 : u.call(r, "sim")) || M.sim : ((p = r.obterTexto) == null ? void 0 : p.call(r, "nao")) || M.nao, a.setAttribute("aria-checked", h ? "mixed" : String(c));
2609
+ var p, c;
2610
+ const h = k(s), u = !h && !!s;
2611
+ a.classList.toggle("ui-prop__editor--misto", h), o.classList.toggle("ui-prop__checkbox-custom--marcado", u), o.classList.toggle("ui-prop__checkbox-custom--misto", h), o.textContent = h ? "–" : u ? "✓" : "", n.textContent = h ? P(r) : u ? ((p = r.obterTexto) == null ? void 0 : p.call(r, "sim")) || M.sim : ((c = r.obterTexto) == null ? void 0 : c.call(r, "nao")) || M.nao, a.setAttribute("aria-checked", h ? "mixed" : String(u));
2434
2612
  };
2435
- l(e), T(a, l), a.appendChild(o), a.appendChild(n);
2613
+ l(e), B(a, l), a.appendChild(o), a.appendChild(n);
2436
2614
  const d = () => {
2437
- const s = r.obterValorAtual(t.id), h = z(s) ? !0 : !s;
2615
+ const s = r.obterValorAtual(t.id), h = k(s) ? !0 : !s;
2438
2616
  r.registrarAlteracao(i, t.id, h), l(h);
2439
2617
  };
2440
2618
  return a.addEventListener("click", (s) => {
2441
2619
  s.preventDefault(), d();
2442
2620
  }), a.addEventListener("keydown", (s) => {
2443
- s.key === " " ? (s.preventDefault(), d()) : s.key === "Enter" && (s.preventDefault(), s.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(a) : r.focarProximoEditor(a));
2621
+ s.key === " " ? (s.preventDefault(), d()) : s.key === "Enter" && !s.ctrlKey && !s.metaKey && (s.preventDefault(), s.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(a) : r.focarProximoEditor(a));
2444
2622
  }), a;
2445
2623
  }
2446
- function Ci(i, t, e, r) {
2624
+ function Pi(i, t, e, r) {
2447
2625
  const a = document.createElement("select");
2448
2626
  a.className = "ui-prop__editor-select", a.setAttribute("aria-label", String(t.rotulo ?? t.id)), (Array.isArray(t.opcoes) ? t.opcoes : []).forEach((n) => {
2449
2627
  if (!n || typeof n != "object") return;
@@ -2451,120 +2629,125 @@ function Ci(i, t, e, r) {
2451
2629
  l.value = String(n.id), l.textContent = String(n.rotulo ?? n.id), a.appendChild(l);
2452
2630
  });
2453
2631
  const o = (n) => {
2454
- a.classList.toggle("ui-prop__editor--misto", z(n)), z(n) ? oe(a, B(r)) : ae(a, n);
2632
+ a.classList.toggle("ui-prop__editor--misto", k(n)), k(n) ? pe(a, P(r)) : ue(a, n);
2455
2633
  };
2456
- return o(e), T(a, o), a.addEventListener("change", () => {
2634
+ return o(e), B(a, o), a.addEventListener("change", () => {
2457
2635
  const n = (t.opcoes || []).find((l) => l && String(l.id) === a.value);
2458
2636
  r.registrarAlteracao(i, t.id, n ? n.id : a.value), o(r.obterValorAtual(t.id));
2459
2637
  }), a.addEventListener("keydown", (n) => {
2460
- n.key === "Enter" && (n.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(a) : r.focarProximoEditor(a));
2638
+ n.key === "Enter" && !n.ctrlKey && !n.metaKey && (n.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(a) : r.focarProximoEditor(a));
2461
2639
  }), a;
2462
2640
  }
2463
- function Si(i, t, e) {
2641
+ function Bi(i, t, e) {
2464
2642
  var a;
2465
2643
  const r = document.createElement("button");
2466
2644
  return r.type = "button", r.className = "ui-prop__btn-acao-inline", r.textContent = t.rotuloAcao || ((a = e.obterTexto) == null ? void 0 : a.call(e, "editarAcao")) || M.editarAcao, r.addEventListener("click", () => {
2467
2645
  typeof t.onClickAcao == "function" && t.onClickAcao(t), e.despacharEventoAcao(t, i);
2468
2646
  }), r;
2469
2647
  }
2470
- function zi(i, t, e, r) {
2648
+ function qi(i, t, e, r) {
2471
2649
  const a = document.createElement("input");
2472
2650
  a.type = "text", a.inputMode = "decimal", a.autocomplete = "off", a.spellcheck = !1, a.className = "ui-prop__editor-input ui-prop__editor-input--numero", a.setAttribute("aria-label", String(t.rotulo ?? t.id)), t.placeholder && (a.placeholder = t.placeholder);
2473
- const o = se(t), n = (p) => {
2474
- if (p == null || p === "" || z(p)) return "";
2475
- const f = Number(p);
2476
- return isNaN(f) ? String(p) : o !== void 0 ? f.toFixed(o) : String(f);
2477
- }, l = (p) => {
2478
- a.value = n(p), Qe(a, t, z(p), B(r));
2651
+ const o = fe(t), n = (c) => {
2652
+ if (c == null || c === "" || k(c)) return "";
2653
+ const f = Number(c);
2654
+ return isNaN(f) ? String(c) : o !== void 0 ? f.toFixed(o) : String(f);
2655
+ }, l = (c) => {
2656
+ a.value = n(c), st(a, t, k(c), P(r));
2479
2657
  };
2480
- l(e), T(a, l);
2658
+ l(e), B(a, l);
2481
2659
  let d = null;
2482
2660
  const s = () => {
2483
2661
  a.classList.remove("ui-prop__editor-input--calculando"), a.title = "", d && (d.hidden = !0);
2484
- }, h = (p) => {
2662
+ }, h = (c) => {
2485
2663
  if (!d) {
2486
2664
  if (!a.parentElement) return;
2487
2665
  d = document.createElement("span"), d.className = "ui-prop__previa-calculo", d.setAttribute("aria-hidden", "true"), a.parentElement.appendChild(d);
2488
2666
  }
2489
- d.textContent = p, d.hidden = !1;
2490
- }, c = si(a);
2667
+ d.textContent = c, d.hidden = !1;
2668
+ }, u = vi(a);
2491
2669
  a.addEventListener("focus", () => {
2492
2670
  a.classList.remove("ui-prop__editor-input--invalido"), a.select();
2493
2671
  }), a.addEventListener("animationend", () => a.classList.remove("ui-prop__editor-input--invalido")), a.addEventListener("input", () => {
2494
2672
  a.classList.remove("ui-prop__editor-input--invalido");
2495
- const p = a.value.trim(), m = !/^[+-]?[0-9]*[.,]?[0-9]*$/.test(p) && (p.startsWith("=") || /[\+\-\*\/\^\%\(\);]|^[a-zA-Z_π]/.test(p));
2673
+ const c = a.value.trim(), m = !/^[+-]?[0-9]*[.,]?[0-9]*$/.test(c) && (c.startsWith("=") || /[\+\-\*\/\^\%\(\);]|^[a-zA-Z_π]/.test(c));
2496
2674
  if (a.classList.toggle("ui-prop__editor-input--calculando", m), m) {
2497
- const g = ce(p, t), b = g !== null ? `= ${n(g)}` : "= ?";
2675
+ const g = _e(c, t), b = g !== null ? `= ${n(g)}` : "= ?";
2498
2676
  a.title = g !== null ? b : "", h(b);
2499
2677
  } else
2500
2678
  s();
2501
2679
  });
2502
- const u = () => {
2680
+ const p = () => {
2503
2681
  s();
2504
- const p = a.value.trim(), f = r.obterValorAtual(t.id);
2505
- if (p === n(f)) return;
2506
- if (p === "") {
2507
- if (z(f)) return;
2682
+ const c = a.value.trim(), f = r.obterValorAtual(t.id);
2683
+ if (c === n(f)) return;
2684
+ if (c === "") {
2685
+ if (k(f)) return;
2508
2686
  r.registrarAlteracao(i, t.id, null);
2509
2687
  return;
2510
2688
  }
2511
- const m = ce(p, t);
2689
+ const m = _e(c, t);
2512
2690
  m !== null ? (r.registrarAlteracao(i, t.id, m), l(r.obterValorAtual(t.id))) : (l(f), a.classList.add("ui-prop__editor-input--invalido"));
2513
2691
  };
2514
- return a.addEventListener("change", u), a.addEventListener("blur", u), a.addEventListener("keydown", (p) => {
2515
- if (!c.tratarTecla(p)) {
2516
- if (p.key === "Enter")
2517
- u(), p.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(a) : r.focarProximoEditor(a);
2518
- else if (p.key === "Escape")
2519
- p.preventDefault(), p.stopPropagation(), s(), l(r.obterValorAtual(t.id)), a.blur();
2520
- else if (p.key === "ArrowUp" || p.key === "ArrowDown") {
2521
- p.preventDefault(), s();
2522
- const f = ce(a.value, t), m = r.obterValorAtual(t.id);
2523
- if (f === null && z(m)) return;
2692
+ return a.addEventListener("change", p), a.addEventListener("blur", p), a.addEventListener("keydown", (c) => {
2693
+ if (!u.tratarTecla(c)) {
2694
+ if (c.key === "Enter") {
2695
+ if (p(), c.ctrlKey || c.metaKey) return;
2696
+ c.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(a) : r.focarProximoEditor(a);
2697
+ } else if (c.key === "Escape")
2698
+ c.preventDefault(), c.stopPropagation(), s(), l(r.obterValorAtual(t.id)), a.blur();
2699
+ else if (c.key === "ArrowUp" || c.key === "ArrowDown") {
2700
+ c.preventDefault(), s();
2701
+ const f = _e(a.value, t), m = r.obterValorAtual(t.id);
2702
+ if (f === null && k(m)) return;
2524
2703
  const g = f ?? (Number(m) || 0);
2525
- let b = yi(t, o);
2526
- p.shiftKey ? b *= 10 : p.altKey && o === void 0 && (b *= 0.1);
2527
- let x = p.key === "ArrowUp" ? g + b : g - b;
2528
- x = ye(x, t), o !== void 0 ? x = Number(x.toFixed(o)) : x = Math.round(x * 1e4) / 1e4, r.registrarAlteracao(i, t.id, x), l(x);
2704
+ let b = Ni(t, o);
2705
+ c.shiftKey ? b *= 10 : c.altKey && o === void 0 && (b *= 0.1);
2706
+ let _ = c.key === "ArrowUp" ? g + b : g - b;
2707
+ _ = De(_, t), o !== void 0 ? _ = Number(_.toFixed(o)) : _ = Number(_.toPrecision(15)), r.registrarAlteracao(i, t.id, _), l(_);
2529
2708
  }
2530
2709
  }
2531
2710
  }), a;
2532
2711
  }
2533
- function Li(i, t, e, r) {
2712
+ function Fi(i, t, e, r) {
2534
2713
  const a = document.createElement("input");
2535
2714
  a.type = "text", a.className = "ui-prop__editor-input", a.setAttribute("aria-label", String(t.rotulo ?? t.id)), t.placeholder && (a.placeholder = t.placeholder);
2536
2715
  const o = (l) => {
2537
- const d = z(l);
2538
- a.value = d || l == null ? "" : String(l), Qe(a, t, d, B(r));
2716
+ const d = k(l);
2717
+ a.value = d || l == null ? "" : String(l), st(a, t, d, P(r));
2539
2718
  };
2540
- o(e), T(a, o), a.addEventListener("focus", () => {
2719
+ o(e), B(a, o), a.addEventListener("focus", () => {
2541
2720
  a.select();
2542
2721
  });
2543
2722
  const n = () => {
2544
- a.value === "" && z(r.obterValorAtual(t.id)) || (r.registrarAlteracao(i, t.id, a.value), o(r.obterValorAtual(t.id)));
2723
+ const l = r.obterValorAtual(t.id);
2724
+ a.value === "" && (l == null || k(l)) || (r.registrarAlteracao(i, t.id, a.value), o(r.obterValorAtual(t.id)));
2545
2725
  };
2546
2726
  return a.addEventListener("change", n), a.addEventListener("blur", n), a.addEventListener("keydown", (l) => {
2547
- l.key === "Enter" ? (n(), l.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(a) : r.focarProximoEditor(a)) : l.key === "Escape" && (l.preventDefault(), l.stopPropagation(), o(r.obterValorAtual(t.id)), a.blur());
2727
+ if (l.key === "Enter") {
2728
+ if (n(), l.ctrlKey || l.metaKey) return;
2729
+ l.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(a) : r.focarProximoEditor(a);
2730
+ } else l.key === "Escape" && (l.preventDefault(), l.stopPropagation(), o(r.obterValorAtual(t.id)), a.blur());
2548
2731
  }), a;
2549
2732
  }
2550
- const et = (i, t) => i.toLowerCase() === String(t ?? "").toLowerCase();
2551
- function Ae(i, t) {
2733
+ const lt = (i, t) => i.toLowerCase() === String(t ?? "").toLowerCase();
2734
+ function Ne(i, t) {
2552
2735
  (Array.isArray(t) ? t : []).forEach((e) => {
2553
2736
  if (!e || typeof e != "object") return;
2554
2737
  const r = document.createElement("option");
2555
2738
  r.value = String(e.id), r.textContent = String(e.rotulo ?? e.id), i.appendChild(r);
2556
2739
  });
2557
2740
  }
2558
- function ki(i, t, e, r) {
2741
+ function Vi(i, t, e, r) {
2559
2742
  const a = document.createElement("div");
2560
2743
  a.className = "ui-prop__editor-linha-container";
2561
2744
  const o = document.createElementNS("http://www.w3.org/2000/svg", "svg");
2562
2745
  o.setAttribute("class", "ui-prop__linha-amostra-svg"), o.setAttribute("viewBox", "0 0 44 12"), o.setAttribute("aria-hidden", "true");
2563
2746
  const n = document.createElementNS("http://www.w3.org/2000/svg", "line");
2564
2747
  n.setAttribute("x1", "0"), n.setAttribute("y1", "6"), n.setAttribute("x2", "44"), n.setAttribute("y2", "6");
2565
- const l = (c) => {
2566
- const u = String(c || "").toLowerCase();
2567
- u.includes("center") || u.includes("eixo") || u.includes("dashdot") || u.includes("traço-ponto") ? n.setAttribute("stroke-dasharray", "8,3,2,3") : u.includes("dash") || u.includes("tracej") || u.includes("hidden") ? n.setAttribute("stroke-dasharray", "6,3") : u.includes("dot") || u.includes("ponto") || u.includes("pontilh") ? n.setAttribute("stroke-dasharray", "2,3") : n.setAttribute("stroke-dasharray", "none");
2748
+ const l = (u) => {
2749
+ const p = String(u || "").toLowerCase();
2750
+ 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");
2568
2751
  };
2569
2752
  o.appendChild(n);
2570
2753
  const d = document.createElement("select");
@@ -2578,32 +2761,32 @@ function ki(i, t, e, r) {
2578
2761
  { id: "Center", rotulo: "Center" },
2579
2762
  { id: "Dotted", rotulo: "Dotted" }
2580
2763
  ];
2581
- Ae(d, s);
2582
- const h = (c) => {
2583
- const u = z(c);
2584
- if (a.classList.toggle("ui-prop__editor--misto", u), u) {
2585
- l(""), oe(d, B(r));
2764
+ Ne(d, s);
2765
+ const h = (u) => {
2766
+ const p = k(u);
2767
+ if (a.classList.toggle("ui-prop__editor--misto", p), p) {
2768
+ l(""), pe(d, P(r));
2586
2769
  return;
2587
2770
  }
2588
- l(c), ae(d, c, et);
2771
+ l(String(u ?? "")), ue(d, u, lt);
2589
2772
  };
2590
- return h(e), T(a, h), d.addEventListener("change", () => {
2591
- const c = s.find((u) => u && String(u.id) === d.value);
2592
- r.registrarAlteracao(i, t.id, c ? c.id : d.value), h(r.obterValorAtual(t.id));
2593
- }), d.addEventListener("keydown", (c) => {
2594
- c.key === "Enter" && (c.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(d) : r.focarProximoEditor(d));
2773
+ return h(e), B(a, h), d.addEventListener("change", () => {
2774
+ const u = s.find((p) => p && String(p.id) === d.value);
2775
+ r.registrarAlteracao(i, t.id, u ? u.id : d.value), h(r.obterValorAtual(t.id));
2776
+ }), d.addEventListener("keydown", (u) => {
2777
+ u.key === "Enter" && !u.ctrlKey && !u.metaKey && (u.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(d) : r.focarProximoEditor(d));
2595
2778
  }), a.appendChild(o), a.appendChild(d), a;
2596
2779
  }
2597
- function Mi(i, t, e, r) {
2780
+ function ji(i, t, e, r) {
2598
2781
  const a = document.createElement("div");
2599
2782
  a.className = "ui-prop__editor-espessura-container";
2600
2783
  const o = document.createElementNS("http://www.w3.org/2000/svg", "svg");
2601
2784
  o.setAttribute("class", "ui-prop__espessura-amostra-svg"), o.setAttribute("viewBox", "0 0 38 12"), o.setAttribute("aria-hidden", "true");
2602
2785
  const n = document.createElementNS("http://www.w3.org/2000/svg", "line");
2603
2786
  n.setAttribute("x1", "0"), n.setAttribute("y1", "6"), n.setAttribute("x2", "38"), n.setAttribute("y2", "6");
2604
- const l = (c) => {
2605
- const u = parseFloat(String(c).replace(/[^0-9.]/g, ""));
2606
- return isNaN(u) || u <= 0 ? 1.5 : Math.min(8, Math.max(1, u * 8));
2787
+ const l = (u) => {
2788
+ const p = parseFloat(String(u).replace(/[^0-9.]/g, ""));
2789
+ return isNaN(p) || p <= 0 ? 1.5 : Math.min(8, Math.max(1, p * 8));
2607
2790
  };
2608
2791
  o.appendChild(n);
2609
2792
  const d = document.createElement("select");
@@ -2629,19 +2812,19 @@ function Mi(i, t, e, r) {
2629
2812
  { id: "1.40 mm", rotulo: "1.40 mm" },
2630
2813
  { id: "2.00 mm", rotulo: "2.00 mm" }
2631
2814
  ];
2632
- Ae(d, s);
2633
- const h = (c) => {
2634
- const u = z(c);
2635
- a.classList.toggle("ui-prop__editor--misto", u), n.setAttribute("stroke-width", String(l(u ? "" : c))), u ? oe(d, B(r)) : ae(d, c, et);
2815
+ Ne(d, s);
2816
+ const h = (u) => {
2817
+ const p = k(u);
2818
+ a.classList.toggle("ui-prop__editor--misto", p), n.setAttribute("stroke-width", String(l(p ? "" : String(u ?? "")))), p ? pe(d, P(r)) : ue(d, u, lt);
2636
2819
  };
2637
- return h(e), T(a, h), d.addEventListener("change", () => {
2638
- const c = s.find((u) => u && String(u.id) === d.value);
2639
- r.registrarAlteracao(i, t.id, c ? c.id : d.value), h(r.obterValorAtual(t.id));
2640
- }), d.addEventListener("keydown", (c) => {
2641
- c.key === "Enter" && (c.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(d) : r.focarProximoEditor(d));
2820
+ return h(e), B(a, h), d.addEventListener("change", () => {
2821
+ const u = s.find((p) => p && String(p.id) === d.value);
2822
+ r.registrarAlteracao(i, t.id, u ? u.id : d.value), h(r.obterValorAtual(t.id));
2823
+ }), d.addEventListener("keydown", (u) => {
2824
+ u.key === "Enter" && !u.ctrlKey && !u.metaKey && (u.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(d) : r.focarProximoEditor(d));
2642
2825
  }), a.appendChild(o), a.appendChild(d), a;
2643
2826
  }
2644
- const we = [
2827
+ const Te = [
2645
2828
  { nome: "Red", indice: 1, hex: "#ff0000" },
2646
2829
  { nome: "Yellow", indice: 2, hex: "#ffff00" },
2647
2830
  { nome: "Green", indice: 3, hex: "#00ff00" },
@@ -2649,49 +2832,49 @@ const we = [
2649
2832
  { nome: "Blue", indice: 5, hex: "#0000ff" },
2650
2833
  { nome: "Magenta", indice: 6, hex: "#ff00ff" },
2651
2834
  { nome: "White", indice: 7, hex: "#ffffff" }
2652
- ], Ce = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i;
2653
- function he(i) {
2654
- const t = String(i ?? "").trim().toLowerCase(), e = we.find((r) => String(r.indice) === t || r.nome.toLowerCase() === t);
2835
+ ], Ie = /^#([0-9a-f]{3}|[0-9a-f]{6})$/i;
2836
+ function Ae(i) {
2837
+ const t = String(i ?? "").trim().toLowerCase(), e = Te.find((r) => String(r.indice) === t || r.nome.toLowerCase() === t);
2655
2838
  return e ? e.nome.toLowerCase() : t;
2656
2839
  }
2657
- function Ni(i) {
2658
- const t = he(i), e = we.find((r) => r.nome.toLowerCase() === t);
2659
- return e ? e.hex : Ce.test(t) ? t : "#ffffff";
2840
+ function $i(i) {
2841
+ const t = Ae(i), e = Te.find((r) => r.nome.toLowerCase() === t);
2842
+ return e ? e.hex : Ie.test(t) ? t : "#ffffff";
2660
2843
  }
2661
- function Se(i) {
2844
+ function Pe(i) {
2662
2845
  return i.length === 4 ? "#" + i.slice(1).split("").map((t) => t + t).join("") : i;
2663
2846
  }
2664
- function Oi(i, t, e, r) {
2847
+ function Hi(i, t, e, r) {
2665
2848
  var h;
2666
2849
  const a = document.createElement("div");
2667
2850
  a.className = "ui-prop__editor-cor-cad-container";
2668
2851
  const o = document.createElement("div");
2669
2852
  o.className = "ui-prop__cor-amostra";
2670
2853
  const n = document.createElement("select");
2671
- n.className = "ui-prop__cor-cad-select", n.setAttribute("aria-label", String(t.rotulo ?? t.id)), Ae(n, [
2854
+ n.className = "ui-prop__cor-cad-select", n.setAttribute("aria-label", String(t.rotulo ?? t.id)), Ne(n, [
2672
2855
  { id: "ByLayer", rotulo: "ByLayer" },
2673
2856
  { id: "ByBlock", rotulo: "ByBlock" },
2674
- ...we.map((c) => ({ id: c.nome, rotulo: `${c.nome} (${c.indice})` }))
2857
+ ...Te.map((u) => ({ id: u.nome, rotulo: `${u.nome} (${u.indice})` }))
2675
2858
  ]);
2676
2859
  const l = document.createElement("option");
2677
2860
  l.value = "__escolher", l.textContent = ((h = r.obterTexto) == null ? void 0 : h.call(r, "selecionarCor")) || M.selecionarCor, l.setAttribute("data-acao", ""), n.appendChild(l);
2678
2861
  const d = document.createElement("input");
2679
2862
  d.type = "color", d.className = "ui-prop__cor-picker-oculto", d.tabIndex = -1, d.setAttribute("aria-hidden", "true");
2680
- const s = (c) => {
2681
- const u = z(c);
2682
- if (a.classList.toggle("ui-prop__editor--misto", u), o.classList.toggle("ui-prop__cor-amostra--misto", u), u) {
2683
- o.style.backgroundColor = "", d.value = "#ffffff", oe(n, B(r));
2863
+ const s = (u) => {
2864
+ const p = k(u);
2865
+ if (a.classList.toggle("ui-prop__editor--misto", p), o.classList.toggle("ui-prop__cor-amostra--misto", p), p) {
2866
+ o.style.backgroundColor = "", d.value = "#ffffff", pe(n, P(r));
2684
2867
  return;
2685
2868
  }
2686
- const p = Ni(c);
2687
- o.style.backgroundColor = p, d.value = Se(p), ae(
2869
+ const c = $i(u);
2870
+ o.style.backgroundColor = c, d.value = Pe(c), ue(
2688
2871
  n,
2689
- c,
2690
- (f, m) => he(f) === he(m),
2872
+ u,
2873
+ (f, m) => Ae(f) === Ae(m),
2691
2874
  (f) => f == null || f === "" ? "—" : String(f)
2692
2875
  );
2693
2876
  };
2694
- return s(e), T(a, s), d.addEventListener("input", () => {
2877
+ return s(e), B(a, s), d.addEventListener("input", () => {
2695
2878
  o.style.backgroundColor = d.value;
2696
2879
  }), d.addEventListener("change", () => {
2697
2880
  r.registrarAlteracao(i, t.id, d.value), s(r.obterValorAtual(t.id));
@@ -2701,22 +2884,22 @@ function Oi(i, t, e, r) {
2701
2884
  return;
2702
2885
  }
2703
2886
  r.registrarAlteracao(i, t.id, n.value), s(r.obterValorAtual(t.id));
2704
- }), n.addEventListener("keydown", (c) => {
2705
- c.key === "Enter" && (c.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(n) : r.focarProximoEditor(n));
2887
+ }), n.addEventListener("keydown", (u) => {
2888
+ u.key === "Enter" && !u.ctrlKey && !u.metaKey && (u.shiftKey && r.focarEditorAnterior ? r.focarEditorAnterior(n) : r.focarProximoEditor(n));
2706
2889
  }), a.appendChild(o), a.appendChild(n), a.appendChild(d), a;
2707
2890
  }
2708
- function Ri(i) {
2891
+ function Ki(i) {
2709
2892
  try {
2710
2893
  const t = document.createElement("canvas").getContext("2d");
2711
2894
  if (!t) return null;
2712
2895
  t.fillStyle = "#000001", t.fillStyle = i;
2713
2896
  const e = String(t.fillStyle);
2714
- return e === "#000001" && i.toLowerCase() !== "#000001" ? null : Ce.test(e) ? Se(e) : null;
2897
+ return e === "#000001" && i.toLowerCase() !== "#000001" ? null : Ie.test(e) ? Pe(e) : null;
2715
2898
  } catch {
2716
2899
  return null;
2717
2900
  }
2718
2901
  }
2719
- function Di(i, t, e, r) {
2902
+ function Wi(i, t, e, r) {
2720
2903
  const a = document.createElement("div");
2721
2904
  a.className = "ui-prop__editor-cor-container", a.setAttribute("role", "button"), a.tabIndex = 0;
2722
2905
  const o = document.createElement("div");
@@ -2726,16 +2909,16 @@ function Di(i, t, e, r) {
2726
2909
  const l = document.createElement("input");
2727
2910
  l.type = "color", l.className = "ui-prop__cor-picker-oculto", l.tabIndex = -1, l.setAttribute("aria-hidden", "true");
2728
2911
  const d = (s) => {
2729
- const h = z(s);
2912
+ const h = k(s);
2730
2913
  if (a.classList.toggle("ui-prop__editor--misto", h), o.classList.toggle("ui-prop__cor-amostra--misto", h), h) {
2731
- const u = B(r);
2732
- o.style.backgroundColor = "", n.textContent = u, l.value = "#ffffff", a.setAttribute("aria-label", `${t.rotulo ?? t.id}: ${u}`);
2914
+ const c = P(r);
2915
+ o.style.backgroundColor = "", n.textContent = c, l.value = "#ffffff", a.setAttribute("aria-label", `${t.rotulo ?? t.id}: ${c}`);
2733
2916
  return;
2734
2917
  }
2735
- const c = typeof s == "string" ? Ce.test(s) ? Se(s) : s.trim() ? Ri(s.trim()) : null : null;
2736
- o.style.backgroundColor = s || "#ffffff", n.textContent = t.textoAmostra || String(s || "ByLayer"), l.value = c ?? "#ffffff", a.setAttribute("aria-label", `${t.rotulo ?? t.id}: ${s || "ByLayer"}`);
2918
+ const u = typeof s == "string" ? s.trim() : "", p = u ? Ie.test(u) ? Pe(u) : Ki(u) : null;
2919
+ o.style.backgroundColor = "", o.style.backgroundColor = u || "#ffffff", n.textContent = t.textoAmostra || String(s || "ByLayer"), l.value = p ?? "#ffffff", a.setAttribute("aria-label", `${t.rotulo ?? t.id}: ${s || "ByLayer"}`);
2737
2920
  };
2738
- return d(e), T(a, d), l.addEventListener("input", () => {
2921
+ return d(e), B(a, d), l.addEventListener("input", () => {
2739
2922
  o.style.backgroundColor = l.value, n.textContent = t.textoAmostra || l.value;
2740
2923
  }), l.addEventListener("change", () => {
2741
2924
  r.registrarAlteracao(i, t.id, l.value), d(r.obterValorAtual(t.id));
@@ -2745,11 +2928,11 @@ function Di(i, t, e, r) {
2745
2928
  (s.key === " " || s.key === "Enter") && (s.preventDefault(), l.click());
2746
2929
  }), a.appendChild(o), a.appendChild(n), a.appendChild(l), a;
2747
2930
  }
2748
- function Ii(i, t, e, r) {
2931
+ function Ui(i, t, e, r) {
2749
2932
  let a;
2750
- return t.somenteLeitura || t.tipo === "readonly" ? a = Ai(e, r.obterTextoMisto, t, r.obterTexto) : t.tipo === "booleano" ? a = wi(i, t, e, r) : t.tipo === "linha" || t.tipo === "linetype" ? a = ki(i, t, e, r) : t.tipo === "espessura" || t.tipo === "lineweight" ? a = Mi(i, t, e, r) : t.tipo === "cor-cad" ? a = Oi(i, t, e, r) : t.tipo === "selecao" ? a = Ci(i, t, e, r) : t.tipo === "cor" ? a = Di(i, t, e, r) : t.tipo === "acao" ? a = Si(i, t, r) : t.tipo === "numero" ? a = zi(i, t, e, r) : a = Li(i, t, e, r), a.setAttribute("part", "editor"), t.dica && a.setAttribute("aria-description", t.dica), a;
2933
+ return t.somenteLeitura || t.tipo === "readonly" ? a = Ti(e, r.obterTextoMisto, t, r.obterTexto) : t.tipo === "booleano" ? a = Ii(i, t, e, r) : t.tipo === "linha" || t.tipo === "linetype" ? a = Vi(i, t, e, r) : t.tipo === "espessura" || t.tipo === "lineweight" ? a = ji(i, t, e, r) : t.tipo === "cor-cad" ? a = Hi(i, t, e, r) : t.tipo === "selecao" ? a = Pi(i, t, e, r) : t.tipo === "cor" ? a = Wi(i, t, e, r) : t.tipo === "acao" ? a = Bi(i, t, r) : t.tipo === "numero" ? a = qi(i, t, e, r) : a = Fi(i, t, e, r), a.setAttribute("part", "editor"), t.dica && a.setAttribute("aria-description", t.dica), a;
2751
2934
  }
2752
- function Ti(i) {
2935
+ function Xi(i) {
2753
2936
  if (!i.tipoContainerElement) return;
2754
2937
  const t = (Array.isArray(i.tipos) ? i.tipos : []).filter(
2755
2938
  (a) => !!(a && typeof a == "object" && a.id !== void 0 && a.id !== null)
@@ -2765,10 +2948,12 @@ function Ti(i) {
2765
2948
  }, r = t.find((a) => String(a.id) === String(i.tipoSelecionadoId)) || t[0];
2766
2949
  if (i.estiloVisual === "revit") {
2767
2950
  const a = document.createElement("div");
2768
- a.className = "ui-prop__tipo-revit-card", a.title = "Editar tipo de família", a.addEventListener("click", () => i.onEditarTipo(r));
2951
+ a.className = "ui-prop__tipo-revit-card", a.title = "Editar tipo de família", a.setAttribute("role", "button"), a.tabIndex = 0, a.setAttribute("aria-label", `${e("editarTipo")}: ${r.rotulo ?? r.id}`), a.addEventListener("click", () => i.onEditarTipo(r)), a.addEventListener("keydown", (f) => {
2952
+ (f.key === "Enter" || f.key === " ") && (f.preventDefault(), i.onEditarTipo(r));
2953
+ });
2769
2954
  const o = document.createElement("div");
2770
2955
  o.className = "ui-prop__tipo-miniatura";
2771
- const n = r.iconeSvg ? at(r.iconeSvg) : null;
2956
+ const n = r.iconeSvg ? pt(r.iconeSvg) : null;
2772
2957
  n ? o.appendChild(n) : o.innerHTML = `
2773
2958
  <svg width="18" height="18" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" aria-hidden="true">
2774
2959
  <rect x="3" y="3" width="18" height="18" rx="2"></rect>
@@ -2783,32 +2968,32 @@ function Ti(i) {
2783
2968
  s.className = "ui-prop__tipo-subtexto", s.textContent = r.subtipo || e("tipoFamilia"), l.appendChild(d), l.appendChild(s), a.appendChild(o), a.appendChild(l);
2784
2969
  const h = document.createElement("div");
2785
2970
  h.className = "ui-prop__tipo-revit-subbarra";
2786
- const c = document.createElement("select");
2787
- c.className = "ui-prop__tipo-select", c.setAttribute("aria-label", "Selecionar tipo de família"), t.forEach((f) => {
2971
+ const u = document.createElement("select");
2972
+ u.className = "ui-prop__tipo-select", u.setAttribute("aria-label", "Selecionar tipo de família"), t.forEach((f) => {
2788
2973
  const m = document.createElement("option");
2789
- m.value = String(f.id), m.textContent = `${f.rotulo ?? f.id}${f.subtipo ? ` : ${f.subtipo}` : ""}`, String(f.id) === String(r.id) && (m.selected = !0), c.appendChild(m);
2790
- }), c.addEventListener("change", () => {
2791
- i.onSelecionarTipo(c.value);
2974
+ m.value = String(f.id), m.textContent = `${f.rotulo ?? f.id}${f.subtipo ? ` : ${f.subtipo}` : ""}`, String(f.id) === String(r.id) && (m.selected = !0), u.appendChild(m);
2975
+ }), u.addEventListener("change", () => {
2976
+ i.onSelecionarTipo(u.value);
2792
2977
  });
2793
- const u = document.createElement("button");
2794
- u.type = "button", u.className = "ui-prop__btn-editar-tipo", u.innerHTML = `
2978
+ const p = document.createElement("button");
2979
+ p.type = "button", p.className = "ui-prop__btn-editar-tipo", p.innerHTML = `
2795
2980
  <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">
2796
2981
  <rect x="3" y="3" width="12" height="12" rx="1"></rect>
2797
2982
  <rect x="9" y="9" width="12" height="12" rx="1"></rect>
2798
2983
  </svg>
2799
2984
  <span></span>
2800
2985
  `;
2801
- const p = u.querySelector("span");
2802
- p && (p.textContent = e("editarTipo")), u.addEventListener("click", () => {
2986
+ const c = p.querySelector("span");
2987
+ c && (c.textContent = e("editarTipo")), p.addEventListener("click", () => {
2803
2988
  i.onEditarTipo(r);
2804
- }), h.appendChild(c), h.appendChild(u), i.tipoContainerElement.appendChild(a), i.tipoContainerElement.appendChild(h);
2989
+ }), h.appendChild(u), h.appendChild(p), i.tipoContainerElement.appendChild(a), i.tipoContainerElement.appendChild(h);
2805
2990
  } else {
2806
2991
  const a = document.createElement("div");
2807
2992
  a.className = "ui-prop__tipo-autocad-bar";
2808
2993
  const o = document.createElement("select");
2809
2994
  o.className = "ui-prop__tipo-select", o.setAttribute("aria-label", "Selecionar tipo de objeto"), t.forEach((h) => {
2810
- const c = document.createElement("option");
2811
- c.value = String(h.id), c.textContent = String(h.rotulo ?? h.id), String(h.id) === String(r.id) && (c.selected = !0), o.appendChild(c);
2995
+ const u = document.createElement("option");
2996
+ u.value = String(h.id), u.textContent = String(h.rotulo ?? h.id), String(h.id) === String(r.id) && (u.selected = !0), o.appendChild(u);
2812
2997
  }), o.addEventListener("change", () => {
2813
2998
  i.onSelecionarTipo(o.value);
2814
2999
  });
@@ -2853,74 +3038,85 @@ function Ti(i) {
2853
3038
  }), n.appendChild(l), n.appendChild(d), n.appendChild(s), a.appendChild(o), a.appendChild(n), i.tipoContainerElement.appendChild(a);
2854
3039
  }
2855
3040
  }
2856
- function Bi(i) {
3041
+ function Gi(i) {
2857
3042
  let t = 45;
2858
- function e(o) {
2859
- if (!Number.isFinite(o)) return t;
2860
- const n = Math.max(20, Math.min(65, o));
2861
- return t = n, i.hostElement.style.setProperty("--ui-prop-rotulo-largura", `${n}%`), i.splitterElement && (i.splitterElement.style.left = `calc(${n}% - 4px)`, i.splitterElement.setAttribute("aria-valuenow", String(Math.round(n)))), n;
3043
+ const e = new N();
3044
+ let r = () => {
3045
+ };
3046
+ function a(d) {
3047
+ if (!Number.isFinite(d)) return t;
3048
+ const s = Math.max(20, Math.min(65, d));
3049
+ return t = s, i.hostElement.style.setProperty("--ui-prop-rotulo-largura", `${s}%`), i.splitterElement && (i.splitterElement.style.left = `calc(${s}% - 4px)`, i.splitterElement.setAttribute("aria-valuenow", String(Math.round(s)))), s;
2862
3050
  }
2863
- function r(o) {
2864
- i.onLarguraAlterada(o), i.hostElement.dispatchEvent(
3051
+ function o(d) {
3052
+ i.onLarguraAlterada(d), i.hostElement.dispatchEvent(
2865
3053
  new CustomEvent("ui-splitter-resize", {
2866
3054
  bubbles: !0,
2867
3055
  composed: !0,
2868
- detail: { larguraPorcentagem: o }
3056
+ detail: { larguraPorcentagem: d }
2869
3057
  })
2870
3058
  );
2871
3059
  }
2872
- function a() {
3060
+ function n() {
3061
+ var d;
3062
+ e.cleanup(), r(), i.splitterListeners.cleanup(), (d = i.splitterElement) == null || d.classList.remove("ui-prop__splitter--ativo");
3063
+ }
3064
+ function l() {
2873
3065
  if (!i.splitterElement || !i.corpoElement) return;
2874
- i.splitterListeners.cleanup();
2875
- let o = !1;
2876
- const n = (l) => {
2877
- if (l.button !== 0) return;
2878
- l.preventDefault(), l.stopPropagation(), o = !0, i.splitterElement.classList.add("ui-prop__splitter--ativo");
3066
+ n();
3067
+ let d = !1;
3068
+ r = () => {
3069
+ d = !1;
3070
+ };
3071
+ const s = (h) => {
3072
+ if (h.button !== 0) return;
3073
+ h.preventDefault(), h.stopPropagation(), d = !0, i.splitterElement.classList.add("ui-prop__splitter--ativo");
2879
3074
  try {
2880
- i.splitterElement.setPointerCapture(l.pointerId);
3075
+ i.splitterElement.setPointerCapture(h.pointerId);
2881
3076
  } catch {
2882
3077
  }
2883
- const d = i.corpoElement.getBoundingClientRect(), s = (c) => {
2884
- if (!o) return;
2885
- const u = d.width;
2886
- if (u <= 0) return;
2887
- const p = c.clientX - d.left;
2888
- let b = Math.max(80, Math.min(u - 130, p)) / u * 100;
2889
- b = Math.max(20, Math.min(65, b)), e(b);
2890
- }, h = (c) => {
2891
- if (o) {
2892
- o = !1, i.splitterElement.classList.remove("ui-prop__splitter--ativo");
3078
+ const u = i.corpoElement.getBoundingClientRect(), p = (f) => {
3079
+ if (!d) return;
3080
+ const m = u.width;
3081
+ if (m <= 0) return;
3082
+ const g = f.clientX - u.left, b = m < 210 ? m * 0.2 : 80, _ = m < 210 ? m * 0.35 : 130;
3083
+ let E = Math.max(b, Math.min(m - _, g)) / m * 100;
3084
+ E = Math.max(20, Math.min(65, E)), a(E);
3085
+ }, c = (f) => {
3086
+ if (d) {
3087
+ d = !1, i.splitterElement.classList.remove("ui-prop__splitter--ativo");
2893
3088
  try {
2894
- i.splitterElement.hasPointerCapture(c.pointerId) && i.splitterElement.releasePointerCapture(c.pointerId);
3089
+ i.splitterElement.hasPointerCapture(f.pointerId) && i.splitterElement.releasePointerCapture(f.pointerId);
2895
3090
  } catch {
2896
3091
  }
2897
- i.splitterElement.removeEventListener("pointermove", s), i.splitterElement.removeEventListener("pointerup", h), i.splitterElement.removeEventListener("pointercancel", h), r(t);
3092
+ e.cleanup(), o(t);
2898
3093
  }
2899
3094
  };
2900
- i.splitterElement.addEventListener("pointermove", s), i.splitterElement.addEventListener("pointerup", h), i.splitterElement.addEventListener("pointercancel", h);
3095
+ e.add(i.splitterElement, "pointermove", p), e.add(i.splitterElement, "pointerup", c), e.add(i.splitterElement, "pointercancel", c);
2901
3096
  };
2902
- i.splitterListeners.add(i.splitterElement, "pointerdown", n), i.splitterListeners.add(i.splitterElement, "dblclick", () => {
2903
- const l = e(45);
2904
- r(l);
2905
- }), i.splitterListeners.add(i.splitterElement, "keydown", (l) => {
2906
- const d = l.shiftKey ? 5 : 2;
2907
- let s = null;
2908
- if (l.key === "ArrowLeft" ? s = t - d : l.key === "ArrowRight" ? s = t + d : l.key === "Home" ? s = 20 : l.key === "End" ? s = 65 : l.key === "Enter" && (s = 45), s !== null) {
2909
- l.preventDefault(), l.stopPropagation();
2910
- const h = e(s);
2911
- r(h);
3097
+ i.splitterListeners.add(i.splitterElement, "pointerdown", s), i.splitterListeners.add(i.splitterElement, "dblclick", () => {
3098
+ const h = a(45);
3099
+ o(h);
3100
+ }), i.splitterListeners.add(i.splitterElement, "keydown", (h) => {
3101
+ const u = h.shiftKey ? 5 : 2;
3102
+ let p = null;
3103
+ if (h.key === "ArrowLeft" ? p = t - u : h.key === "ArrowRight" ? p = t + u : h.key === "Home" ? p = 20 : h.key === "End" ? p = 65 : h.key === "Enter" && (p = 45), p !== null) {
3104
+ h.preventDefault(), h.stopPropagation();
3105
+ const c = a(p);
3106
+ o(c);
2912
3107
  }
2913
3108
  });
2914
3109
  }
2915
3110
  return {
2916
- init: a,
2917
- definirLarguraRotulo: e
3111
+ init: l,
3112
+ definirLarguraRotulo: a,
3113
+ cleanup: n
2918
3114
  };
2919
3115
  }
2920
- const Pi = `: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}`;
2921
- function Fi() {
3116
+ const Yi = `: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%;--_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")}: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;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);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;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%;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%;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%;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}`;
3117
+ function Zi() {
2922
3118
  return `
2923
- <style>${Pi}</style>
3119
+ <style>${Yi}</style>
2924
3120
  <div class="ui-prop__container" id="container" part="base">
2925
3121
  <!-- 0. Faixa Vertical da Coluna Estreita (visível quando colapsado) -->
2926
3122
  <div class="ui-prop__faixa-estreita" id="faixa-estreita" part="faixa-estreita" title="Clique para expandir painel">
@@ -3020,81 +3216,81 @@ function Fi() {
3020
3216
  </div>
3021
3217
  `;
3022
3218
  }
3023
- function qi(i) {
3024
- const { listaContainer: t, categorias: e, termoBusca: r, onToggleCategoria: a, linhaCtx: o } = i, n = (c) => {
3025
- var u;
3026
- return ((u = i.obterTexto) == null ? void 0 : u.call(i, c)) || M[c];
3219
+ function Ji(i) {
3220
+ const { listaContainer: t, categorias: e, termoBusca: r, onToggleCategoria: a, linhaCtx: o } = i, n = (u) => {
3221
+ var p;
3222
+ return ((p = i.obterTexto) == null ? void 0 : p.call(i, u)) || M[u];
3027
3223
  };
3028
3224
  t.innerHTML = "";
3029
3225
  const l = (Array.isArray(e) ? e : []).filter(
3030
- (c) => !!(c && typeof c == "object")
3226
+ (u) => !!(u && typeof u == "object" && Y(u.id))
3031
3227
  );
3032
3228
  if (l.length === 0) {
3033
- const c = document.createElement("div");
3034
- c.className = "ui-prop__vazio", c.setAttribute("part", "vazio"), c.textContent = n("vazio"), t.appendChild(c);
3229
+ const u = document.createElement("div");
3230
+ u.className = "ui-prop__vazio", u.setAttribute("part", "vazio"), u.textContent = n("vazio"), t.appendChild(u);
3035
3231
  return;
3036
3232
  }
3037
3233
  const d = document.createDocumentFragment(), s = (r || "").trim().toLowerCase();
3038
3234
  let h = 0;
3039
- if (l.forEach((c) => {
3040
- const u = String(c.titulo ?? c.id ?? "").toLowerCase(), p = !!s && u.includes(s), f = (Array.isArray(c.propriedades) ? c.propriedades : []).filter((A) => {
3041
- if (!A || typeof A != "object" || A.id === void 0 || A.id === null) return !1;
3042
- if (!s || p) return !0;
3043
- const y = String(A.rotulo ?? "").toLowerCase(), C = String(A.id).toLowerCase(), w = o.valoresAtuais[A.id], P = z(w) ? "" : String(w ?? "").toLowerCase();
3044
- return y.includes(s) || C.includes(s) || P.includes(s);
3235
+ if (l.forEach((u) => {
3236
+ const p = String(u.titulo ?? u.id ?? "").toLowerCase(), c = !!s && p.includes(s), f = (Array.isArray(u.propriedades) ? u.propriedades : []).filter((C) => {
3237
+ if (!C || typeof C != "object" || !Y(C.id)) return !1;
3238
+ if (!s || c) return !0;
3239
+ const A = String(C.rotulo ?? "").toLowerCase(), S = String(C.id).toLowerCase(), w = Object.prototype.hasOwnProperty.call(o.valoresAtuais, C.id) ? o.valoresAtuais[C.id] : void 0, q = k(w) ? "" : String(w ?? "").toLowerCase();
3240
+ return A.includes(s) || S.includes(s) || q.includes(s);
3045
3241
  });
3046
3242
  if (s && f.length === 0)
3047
3243
  return;
3048
3244
  h += f.length;
3049
- const m = i.obterCategoriaAberta ? i.obterCategoriaAberta(c) : c.aberto !== void 0 ? c.aberto !== !1 : c.aberta !== !1, g = !!s || m, b = document.createElement("div");
3050
- b.className = `ui-prop__categoria ${g ? "ui-prop__categoria--aberta" : ""}`, b.setAttribute("data-cat-id", String(c.id)), b.setAttribute("part", "categoria"), I(b, "categoria-aberta", g);
3245
+ const m = i.obterCategoriaAberta ? i.obterCategoriaAberta(u) : u.aberto !== void 0 ? u.aberto !== !1 : u.aberta !== !1, g = !!s || m, b = document.createElement("div");
3246
+ b.className = `ui-prop__categoria ${g ? "ui-prop__categoria--aberta" : ""}`, b.setAttribute("data-cat-id", String(u.id)), b.setAttribute("part", "categoria"), I(b, "categoria-aberta", g);
3247
+ const _ = document.createElement("div");
3248
+ _.className = "ui-prop__categoria-header", _.setAttribute("part", "categoria-cabecalho"), _.setAttribute("role", "button"), _.tabIndex = 0, _.setAttribute("aria-expanded", String(g));
3051
3249
  const x = document.createElement("div");
3052
- x.className = "ui-prop__categoria-header", x.setAttribute("part", "categoria-cabecalho"), x.setAttribute("role", "button"), x.tabIndex = 0, x.setAttribute("aria-expanded", String(g));
3053
- const v = document.createElement("div");
3054
- v.className = "ui-prop__categoria-titulo-bloco";
3250
+ x.className = "ui-prop__categoria-titulo-bloco";
3055
3251
  const E = document.createElement("span");
3056
3252
  E.className = "ui-prop__categoria-seta", E.setAttribute("aria-hidden", "true"), E.textContent = "▶";
3057
- const k = document.createElement("span");
3058
- k.textContent = String(c.titulo ?? c.id), v.appendChild(E), v.appendChild(k);
3059
- const S = document.createElement("span");
3060
- S.className = "ui-prop__categoria-contador", S.textContent = String(f.length), x.appendChild(v), x.appendChild(S), x.addEventListener("click", () => a(String(c.id))), x.addEventListener("keydown", (A) => {
3061
- if (A.key === "Enter" || A.key === " ")
3062
- A.preventDefault(), a(String(c.id));
3063
- else if (A.key === "ArrowRight")
3064
- b.classList.contains("ui-prop__categoria--aberta") || (A.preventDefault(), a(String(c.id)));
3065
- else if (A.key === "ArrowLeft")
3066
- b.classList.contains("ui-prop__categoria--aberta") && (A.preventDefault(), a(String(c.id)));
3067
- else if (A.key === "ArrowDown" || A.key === "ArrowUp") {
3068
- const y = Array.from(t.querySelectorAll(".ui-prop__categoria-header")), C = y.indexOf(x);
3069
- if (C !== -1) {
3070
- const w = A.key === "ArrowDown" ? C + 1 : C - 1;
3071
- w >= 0 && w < y.length && (A.preventDefault(), y[w].focus());
3253
+ const y = document.createElement("span");
3254
+ y.textContent = String(u.titulo ?? u.id), x.appendChild(E), x.appendChild(y);
3255
+ const z = document.createElement("span");
3256
+ z.className = "ui-prop__categoria-contador", z.textContent = String(f.length), _.appendChild(x), _.appendChild(z), _.addEventListener("click", () => a(String(u.id))), _.addEventListener("keydown", (C) => {
3257
+ if (C.key === "Enter" || C.key === " ")
3258
+ C.preventDefault(), a(String(u.id));
3259
+ else if (C.key === "ArrowRight")
3260
+ b.classList.contains("ui-prop__categoria--aberta") || (C.preventDefault(), a(String(u.id)));
3261
+ else if (C.key === "ArrowLeft")
3262
+ b.classList.contains("ui-prop__categoria--aberta") && (C.preventDefault(), a(String(u.id)));
3263
+ else if (C.key === "ArrowDown" || C.key === "ArrowUp") {
3264
+ const A = Array.from(t.querySelectorAll(".ui-prop__categoria-header")), S = A.indexOf(_);
3265
+ if (S !== -1) {
3266
+ const w = C.key === "ArrowDown" ? S + 1 : S - 1;
3267
+ w >= 0 && w < A.length && (C.preventDefault(), A[w].focus());
3072
3268
  }
3073
- } else if (A.key === "Home") {
3074
- const y = t.querySelector(".ui-prop__categoria-header");
3075
- y && (A.preventDefault(), y.focus());
3076
- } else if (A.key === "End") {
3077
- const y = t.querySelectorAll(".ui-prop__categoria-header");
3078
- y.length > 0 && (A.preventDefault(), y[y.length - 1].focus());
3269
+ } else if (C.key === "Home") {
3270
+ const A = t.querySelector(".ui-prop__categoria-header");
3271
+ A && (C.preventDefault(), A.focus());
3272
+ } else if (C.key === "End") {
3273
+ const A = t.querySelectorAll(".ui-prop__categoria-header");
3274
+ A.length > 0 && (C.preventDefault(), A[A.length - 1].focus());
3079
3275
  }
3080
3276
  });
3081
3277
  const L = document.createElement("div");
3082
- L.className = "ui-prop__categoria-conteudo", L.setAttribute("part", "categoria-conteudo"), f.forEach((A) => {
3083
- const y = Vi(String(c.id), A, o);
3084
- L.appendChild(y);
3085
- }), b.appendChild(x), b.appendChild(L), d.appendChild(b);
3278
+ L.className = "ui-prop__categoria-conteudo", L.setAttribute("part", "categoria-conteudo"), f.forEach((C) => {
3279
+ const A = Qi(String(u.id), C, o);
3280
+ L.appendChild(A);
3281
+ }), b.appendChild(_), b.appendChild(L), d.appendChild(b);
3086
3282
  }), s && h === 0) {
3087
- const c = document.createElement("div");
3088
- c.className = "ui-prop__vazio", c.setAttribute("part", "vazio"), c.textContent = n("vazioBusca").split("{termo}").join(r), t.appendChild(c);
3283
+ const u = document.createElement("div");
3284
+ u.className = "ui-prop__vazio", u.setAttribute("part", "vazio"), u.textContent = n("vazioBusca").split("{termo}").join(r), t.appendChild(u);
3089
3285
  return;
3090
3286
  }
3091
3287
  t.appendChild(d);
3092
3288
  }
3093
- function Vi(i, t, e) {
3289
+ function Qi(i, t, e) {
3094
3290
  var f, m;
3095
3291
  const r = document.createElement("div");
3096
3292
  r.className = "ui-prop__linha", r.setAttribute("data-prop-id", String(t.id)), r.setAttribute("part", "linha");
3097
- const a = e.valoresAtuais[t.id] !== void 0 ? e.valoresAtuais[t.id] : pe(t), o = t.id in e.valoresOriginais ? e.valoresOriginais[t.id] : pe(t), n = !F(a, o), l = z(a);
3293
+ const a = Object.prototype.hasOwnProperty.call(e.valoresAtuais, t.id) ? e.valoresAtuais[t.id] : xe(t), o = Object.prototype.hasOwnProperty.call(e.valoresOriginais, t.id) ? e.valoresOriginais[t.id] : xe(t), n = !F(a, o), l = k(a);
3098
3294
  n && (r.classList.add("ui-prop__linha--modificada"), I(r, "linha-modificada", !0)), l && (r.classList.add("ui-prop__linha--misto"), I(r, "linha-mista", !0)), r.addEventListener("dblclick", () => {
3099
3295
  const g = r.querySelector(
3100
3296
  'input:not([type="color"]):not(.ui-prop__cor-picker-oculto), select, .ui-prop__btn-acao-inline'
@@ -3109,29 +3305,29 @@ function Vi(i, t, e) {
3109
3305
  if (h.textContent = s, d.appendChild(h), !t.somenteLeitura && t.tipo !== "readonly" && t.tipo !== "acao" && e.onRedefinir) {
3110
3306
  const g = e.onRedefinir, b = document.createElement("button");
3111
3307
  b.type = "button", b.className = "ui-prop__btn-reverter";
3112
- const x = ((m = (f = e.editorCtx).obterTexto) == null ? void 0 : m.call(f, "restaurarValor")) || M.restaurarValor;
3113
- b.title = x, b.setAttribute("aria-label", `${x}: ${s}`), b.setAttribute("part", "restaurar"), b.textContent = "↺", b.addEventListener("click", (v) => {
3114
- v.stopPropagation(), g(String(t.id));
3115
- }), b.addEventListener("dblclick", (v) => v.stopPropagation()), d.appendChild(b);
3116
- }
3117
- t.tipo === "numero" && !t.somenteLeitura && $i(d, i, t, e);
3118
- const u = document.createElement("div");
3119
- u.className = "ui-prop__col-valor", u.setAttribute("part", "valor");
3120
- const p = Ii(i, t, a, e.editorCtx);
3121
- if (u.appendChild(p), t.unidade) {
3308
+ const _ = ((m = (f = e.editorCtx).obterTexto) == null ? void 0 : m.call(f, "restaurarValor")) || M.restaurarValor;
3309
+ b.title = _, b.setAttribute("aria-label", `${_}: ${s}`), b.setAttribute("part", "restaurar"), b.textContent = "↺", b.addEventListener("click", (x) => {
3310
+ x.stopPropagation(), g(String(t.id));
3311
+ }), b.addEventListener("dblclick", (x) => x.stopPropagation()), d.appendChild(b);
3312
+ }
3313
+ t.tipo === "numero" && !t.somenteLeitura && er(d, i, t, e);
3314
+ const p = document.createElement("div");
3315
+ p.className = "ui-prop__col-valor", p.setAttribute("part", "valor");
3316
+ const c = Ui(i, t, a, e.editorCtx);
3317
+ if (p.appendChild(c), t.unidade) {
3122
3318
  const g = document.createElement("span");
3123
- g.className = "ui-prop__unidade-sufixo", g.setAttribute("part", "unidade"), g.textContent = t.unidade, u.appendChild(g);
3319
+ g.className = "ui-prop__unidade-sufixo", g.setAttribute("part", "unidade"), g.textContent = t.unidade, p.appendChild(g);
3124
3320
  }
3125
- return r.appendChild(d), r.appendChild(u), r;
3321
+ return r.appendChild(d), r.appendChild(p), r;
3126
3322
  }
3127
- function $i(i, t, e, r) {
3323
+ function er(i, t, e, r) {
3128
3324
  i.classList.add("ui-prop__col-rotulo--scrub");
3129
3325
  const a = String(e.rotulo ?? e.id), o = e.dica ? `${a} — ${e.dica}` : a;
3130
3326
  i.title = `${o} (Arraste para ajustar, duplo-clique para editar)`;
3131
3327
  let n = 0, l = 0, d = !1;
3132
3328
  i.addEventListener("pointerdown", (s) => {
3133
- var p, f;
3134
- if (s.button !== 0 || (f = (p = s.target) == null ? void 0 : p.closest) != null && f.call(p, ".ui-prop__btn-reverter") || z(r.editorCtx.obterValorAtual(e.id))) return;
3329
+ var c, f;
3330
+ if (s.button !== 0 || (f = (c = s.target) == null ? void 0 : c.closest) != null && f.call(c, ".ui-prop__btn-reverter") || k(r.editorCtx.obterValorAtual(e.id))) return;
3135
3331
  n = s.clientX;
3136
3332
  const h = r.editorCtx.obterValorAtual(e.id);
3137
3333
  l = typeof h == "number" ? h : parseFloat(String(h || 0)) || 0, d = !1;
@@ -3140,159 +3336,163 @@ function $i(i, t, e, r) {
3140
3336
  } catch {
3141
3337
  }
3142
3338
  i.classList.add("ui-prop__col-rotulo--arrastando");
3143
- const c = (m) => {
3339
+ const u = (m) => {
3144
3340
  const g = m.clientX - n;
3145
3341
  if (Math.abs(g) > 2 && (d = !0), d) {
3146
3342
  let b = 1;
3147
3343
  m.shiftKey ? b = 0.1 : (m.ctrlKey || m.metaKey) && (b = 10);
3148
- const x = se(e), v = typeof e.passo == "number" && e.passo > 0 ? e.passo * 0.01 : typeof e.step == "number" && e.step > 0 ? e.step * 0.01 : Math.pow(10, -Math.min(x !== void 0 ? x : 2, 2));
3149
- let E = l + g * v * b;
3150
- E = ye(E, e), x !== void 0 ? E = Number(E.toFixed(x)) : E = Math.round(E * 100) / 100, r.editorCtx.registrarAlteracao(t, e.id, E), r.onAtualizarCampoVisual(e.id, E);
3344
+ const _ = fe(e), x = typeof e.passo == "number" && e.passo > 0 ? e.passo : typeof e.step == "number" && e.step > 0 ? e.step : null, E = x !== null ? x * 0.01 : Math.pow(10, -Math.min(_ !== void 0 ? _ : 2, 2));
3345
+ let y = l + g * E * b;
3346
+ y = De(y, e), _ !== void 0 ? y = Number(y.toFixed(_)) : x !== null ? y = Number(y.toPrecision(12)) : y = Math.round(y * 100) / 100, r.editorCtx.registrarAlteracao(t, e.id, y), r.onAtualizarCampoVisual(e.id, y);
3151
3347
  }
3152
- }, u = (m) => {
3348
+ }, p = (m) => {
3153
3349
  i.classList.remove("ui-prop__col-rotulo--arrastando");
3154
3350
  try {
3155
3351
  i.hasPointerCapture(m.pointerId) && i.releasePointerCapture(m.pointerId);
3156
3352
  } catch {
3157
3353
  }
3158
- i.removeEventListener("pointermove", c), i.removeEventListener("pointerup", u), i.removeEventListener("pointercancel", u);
3354
+ i.removeEventListener("pointermove", u), i.removeEventListener("pointerup", p), i.removeEventListener("pointercancel", p);
3159
3355
  };
3160
- i.addEventListener("pointermove", c), i.addEventListener("pointerup", u), i.addEventListener("pointercancel", u);
3356
+ i.addEventListener("pointermove", u), i.addEventListener("pointerup", p), i.addEventListener("pointercancel", p);
3161
3357
  });
3162
3358
  }
3163
- const ie = 300, tt = 480, V = /* @__PURE__ */ new WeakMap();
3164
- function ji(i) {
3359
+ const se = 300, dt = 480, $ = /* @__PURE__ */ new WeakMap();
3360
+ function tr(i) {
3165
3361
  var r, a, o;
3166
3362
  const t = i.hasAttribute("flutuante"), e = i.style;
3167
3363
  if (t) {
3168
- const n = V.get(i) ?? { acoplado: { width: "", height: "" } };
3169
- n.flutuante = { left: e.left, top: e.top, width: e.width, height: e.height }, V.set(i, n), i.removeAttribute("flutuante"), e.left = "", e.top = "", e.right = "", e.bottom = "", e.position = "", e.zIndex = "", e.width = n.acoplado.width, e.height = n.acoplado.height;
3364
+ const n = $.get(i) ?? { acoplado: { width: "", height: "" } };
3365
+ n.flutuante = { left: e.left, top: e.top, width: e.width, height: e.height }, $.set(i, n), i.removeAttribute("flutuante"), e.left = "", e.top = "", e.right = "", e.bottom = "", e.position = "", e.zIndex = "", e.width = n.acoplado.width, e.height = n.acoplado.height;
3170
3366
  } else {
3171
3367
  const n = {
3172
3368
  acoplado: { width: e.width, height: e.height },
3173
- flutuante: (r = V.get(i)) == null ? void 0 : r.flutuante
3369
+ flutuante: (r = $.get(i)) == null ? void 0 : r.flutuante
3174
3370
  };
3175
- if (V.set(i, n), i.setAttribute("flutuante", ""), e.position = "fixed", (a = n.flutuante) != null && a.left || (o = n.flutuante) != null && o.top)
3371
+ if ($.set(i, n), i.setAttribute("flutuante", ""), e.position = "fixed", (a = n.flutuante) != null && a.left || (o = n.flutuante) != null && o.top)
3176
3372
  e.left = n.flutuante.left, e.top = n.flutuante.top, e.width = n.flutuante.width, e.height = n.flutuante.height;
3177
3373
  else if (!e.left && !e.top) {
3178
3374
  const l = Math.max(
3179
3375
  20,
3180
- (typeof window < "u" ? window.innerWidth : 1024) - ie - 30
3376
+ (typeof window < "u" ? window.innerWidth : 1024) - se - 30
3181
3377
  );
3182
- e.left = `${l}px`, e.top = "70px", e.width = `${ie}px`, e.height = `${tt}px`;
3378
+ e.left = `${l}px`, e.top = "70px", e.width = `${se}px`, e.height = `${dt}px`;
3183
3379
  }
3184
3380
  }
3185
3381
  return !t;
3186
3382
  }
3187
- function Pe(i) {
3383
+ function Ye(i) {
3188
3384
  var e;
3189
3385
  const t = i.style;
3190
3386
  if (!i.hasAttribute("flutuante")) {
3191
3387
  if (t.position === "fixed") {
3192
- const r = V.get(i);
3388
+ const r = $.get(i);
3193
3389
  t.left = "", t.top = "", t.right = "", t.bottom = "", t.position = "", t.zIndex = "", t.width = (r == null ? void 0 : r.acoplado.width) ?? "", t.height = (r == null ? void 0 : r.acoplado.height) ?? "";
3194
3390
  }
3195
3391
  return;
3196
3392
  }
3197
- if (t.position !== "fixed" && (V.set(i, {
3393
+ if (t.position !== "fixed" && ($.set(i, {
3198
3394
  acoplado: { width: t.width, height: t.height },
3199
- flutuante: (e = V.get(i)) == null ? void 0 : e.flutuante
3395
+ flutuante: (e = $.get(i)) == null ? void 0 : e.flutuante
3200
3396
  }), t.position = "fixed"), !t.left && !t.top) {
3201
3397
  const r = Math.max(
3202
3398
  20,
3203
- (typeof window < "u" ? window.innerWidth : 1024) - ie - 30
3399
+ (typeof window < "u" ? window.innerWidth : 1024) - se - 30
3204
3400
  );
3205
- t.left = `${r}px`, t.top = "70px", t.width || (t.width = `${ie}px`), t.height || (t.height = `${tt}px`);
3206
- }
3207
- }
3208
- function Hi(i, t, e) {
3209
- const r = t.getElementById("header");
3210
- if (r) {
3211
- let o = null, n = 0, l = 0, d = 0, s = 0;
3212
- const h = (u) => {
3213
- if (o === null) return;
3214
- const p = u.clientX - n, f = u.clientY - l;
3215
- let m = d + p, g = s + f;
3216
- const b = Math.max(0, (typeof window < "u" ? window.innerWidth : 1024) - i.offsetWidth), x = Math.max(0, (typeof window < "u" ? window.innerHeight : 768) - 30);
3217
- m = Math.max(0, Math.min(b, m)), g = Math.max(0, Math.min(x, g)), i.style.left = `${m}px`, i.style.top = `${g}px`, i.style.right = "auto", i.style.bottom = "auto";
3218
- }, c = (u) => {
3219
- if (o !== null) {
3401
+ t.left = `${r}px`, t.top = "70px", t.width || (t.width = `${se}px`), t.height || (t.height = `${dt}px`);
3402
+ }
3403
+ }
3404
+ function ir(i, t, e) {
3405
+ const r = new N(), a = t.getElementById("header");
3406
+ if (a) {
3407
+ let n = null, l = 0, d = 0, s = 0, h = 0;
3408
+ const u = (c) => {
3409
+ if (n === null) return;
3410
+ const f = c.clientX - l, m = c.clientY - d;
3411
+ let g = s + f, b = h + m;
3412
+ const _ = Math.max(0, (typeof window < "u" ? window.innerWidth : 1024) - i.offsetWidth), x = Math.max(0, (typeof window < "u" ? window.innerHeight : 768) - 30);
3413
+ g = Math.max(0, Math.min(_, g)), b = Math.max(0, Math.min(x, b)), i.style.left = `${g}px`, i.style.top = `${b}px`, i.style.right = "auto", i.style.bottom = "auto";
3414
+ }, p = (c) => {
3415
+ if (n !== null) {
3220
3416
  try {
3221
- r.releasePointerCapture(u.pointerId);
3417
+ a.releasePointerCapture(c.pointerId);
3222
3418
  } catch {
3223
3419
  }
3224
- r.removeEventListener("pointermove", h), r.removeEventListener("pointerup", c), r.removeEventListener("pointercancel", c), o = null, i.classList.remove("arrastando"), i.dispatchEvent(new CustomEvent("ui-mover", {
3420
+ r.cleanup(), n = null, i.classList.remove("arrastando"), i.dispatchEvent(new CustomEvent("ui-mover", {
3225
3421
  bubbles: !0,
3226
3422
  composed: !0,
3227
3423
  detail: { left: i.style.left, top: i.style.top }
3228
3424
  }));
3229
3425
  }
3230
3426
  };
3231
- e.add(r, "pointerdown", (u) => {
3232
- if (!i.hasAttribute("flutuante") || u.target.closest("button, input, select, a") || u.button !== 0) return;
3233
- u.preventDefault(), o = u.pointerId, n = u.clientX, l = u.clientY;
3234
- const f = i.getBoundingClientRect();
3235
- d = f.left, s = f.top, i.classList.add("arrastando");
3427
+ e.add(a, "pointerdown", (c) => {
3428
+ if (!i.hasAttribute("flutuante") || c.target.closest("button, input, select, a") || c.button !== 0) return;
3429
+ c.preventDefault(), n = c.pointerId, l = c.clientX, d = c.clientY;
3430
+ const m = i.getBoundingClientRect();
3431
+ s = m.left, h = m.top, i.classList.add("arrastando");
3236
3432
  try {
3237
- r.setPointerCapture(u.pointerId);
3433
+ a.setPointerCapture(c.pointerId);
3238
3434
  } catch {
3239
3435
  }
3240
- r.addEventListener("pointermove", h), r.addEventListener("pointerup", c), r.addEventListener("pointercancel", c);
3436
+ r.add(a, "pointermove", u), r.add(a, "pointerup", p), r.add(a, "pointercancel", p);
3241
3437
  });
3242
3438
  }
3243
- const a = t.getElementById("resizer-canto");
3244
- if (a) {
3245
- let o = null, n = 0, l = 0, d = 0, s = 0;
3246
- const h = (u) => {
3247
- if (o === null) return;
3248
- const p = Math.max(200, n + (u.clientX - d)), f = Math.max(180, l + (u.clientY - s));
3249
- i.style.width = `${p}px`, i.style.height = `${f}px`;
3250
- }, c = (u) => {
3251
- if (o !== null) {
3439
+ const o = t.getElementById("resizer-canto");
3440
+ if (o) {
3441
+ let n = null, l = 0, d = 0, s = 0, h = 0;
3442
+ const u = (c) => {
3443
+ if (n === null) return;
3444
+ const f = Math.max(200, l + (c.clientX - s)), m = Math.max(180, d + (c.clientY - h));
3445
+ i.style.width = `${f}px`, i.style.height = `${m}px`;
3446
+ }, p = (c) => {
3447
+ if (n !== null) {
3252
3448
  try {
3253
- a.releasePointerCapture(u.pointerId);
3449
+ o.releasePointerCapture(c.pointerId);
3254
3450
  } catch {
3255
3451
  }
3256
- a.removeEventListener("pointermove", h), a.removeEventListener("pointerup", c), a.removeEventListener("pointercancel", c), o = null, i.dispatchEvent(new CustomEvent("ui-redimensionar", {
3452
+ r.cleanup(), n = null, i.dispatchEvent(new CustomEvent("ui-redimensionar", {
3257
3453
  bubbles: !0,
3258
3454
  composed: !0,
3259
3455
  detail: { width: i.style.width, height: i.style.height }
3260
3456
  }));
3261
3457
  }
3262
3458
  };
3263
- e.add(a, "pointerdown", (u) => {
3264
- if (!i.hasAttribute("flutuante") || u.button !== 0) return;
3265
- u.preventDefault(), u.stopPropagation(), o = u.pointerId, d = u.clientX, s = u.clientY;
3266
- const p = i.getBoundingClientRect();
3267
- n = p.width, l = p.height;
3459
+ e.add(o, "pointerdown", (c) => {
3460
+ if (!i.hasAttribute("flutuante") || c.button !== 0) return;
3461
+ c.preventDefault(), c.stopPropagation(), n = c.pointerId, s = c.clientX, h = c.clientY;
3462
+ const f = i.getBoundingClientRect();
3463
+ l = f.width, d = f.height;
3268
3464
  try {
3269
- a.setPointerCapture(u.pointerId);
3465
+ o.setPointerCapture(c.pointerId);
3270
3466
  } catch {
3271
3467
  }
3272
- a.addEventListener("pointermove", h), a.addEventListener("pointerup", c), a.addEventListener("pointercancel", c);
3468
+ r.add(o, "pointermove", u), r.add(o, "pointerup", p), r.add(o, "pointercancel", p);
3273
3469
  });
3274
3470
  }
3471
+ return () => {
3472
+ r.cleanup(), i.classList.remove("arrastando");
3473
+ };
3275
3474
  }
3276
- function Wi(i) {
3475
+ function rr(i) {
3277
3476
  return i === "compacta" ? "ultracompacta" : i === "ultracompacta" ? "padrao" : "compacta";
3278
3477
  }
3279
- const Fe = /* @__PURE__ */ new Set(["__proto__", "constructor", "prototype"]);
3280
- class Ui {
3478
+ function G() {
3479
+ return /* @__PURE__ */ Object.create(null);
3480
+ }
3481
+ class ar {
3281
3482
  constructor(t) {
3282
- _(this, "valoresOriginais", {});
3283
- _(this, "valoresAtuais", {});
3483
+ v(this, "valoresOriginais", G());
3484
+ v(this, "valoresAtuais", G());
3284
3485
  this.ctx = t;
3285
3486
  }
3286
3487
  inicializarCategorias(t) {
3287
- this.valoresOriginais = {}, this.valoresAtuais = {};
3488
+ this.valoresOriginais = G(), this.valoresAtuais = G();
3288
3489
  const e = /* @__PURE__ */ new Set();
3289
3490
  (Array.isArray(t) ? t : []).forEach((r) => {
3290
3491
  !r || typeof r != "object" || (Array.isArray(r.propriedades) ? r.propriedades : []).forEach((a) => {
3291
- if (!a || typeof a != "object" || a.id === void 0 || a.id === null) return;
3492
+ if (!a || typeof a != "object" || !Y(a.id)) return;
3292
3493
  const o = String(a.id);
3293
- if (Fe.has(o)) return;
3294
3494
  e.has(o) && typeof console < "u" && console.warn(`[ui-tabela-propriedades] id de propriedade repetido: "${o}". Os valores são indexados por id e serão compartilhados.`), e.add(o);
3295
- const n = pe(a);
3495
+ const n = xe(a);
3296
3496
  this.valoresOriginais[o] = n, this.valoresAtuais[o] = n;
3297
3497
  });
3298
3498
  }), this.ctx.onAtualizarBotoesFooter(!1);
@@ -3317,50 +3517,67 @@ class Ui {
3317
3517
  setValores(t) {
3318
3518
  if (!t || typeof t != "object") return [];
3319
3519
  const e = [];
3320
- return Object.keys(t).forEach((r) => {
3321
- if (Fe.has(r)) return;
3322
- const a = t[r], o = !F(this.valoresAtuais[r], a) || !F(this.valoresOriginais[r], a);
3323
- this.valoresAtuais[r] = a, this.valoresOriginais[r] = a, o && e.push(r);
3324
- }), e.forEach((r) => {
3325
- this.aposAlterar(r), this.ctx.onAtualizarCampoVisual(r, this.valoresAtuais[r]);
3326
- }), this.ctx.onAtualizarBotoesFooter(this.isDirty), e;
3520
+ if (Object.keys(t).forEach((r) => {
3521
+ if (!r || H.has(r)) return;
3522
+ const a = t[r], o = Object.prototype.hasOwnProperty.call(this.valoresAtuais, r), n = Object.prototype.hasOwnProperty.call(this.valoresOriginais, r), l = !o || !n || !F(this.valoresAtuais[r], a) || !F(this.valoresOriginais[r], a);
3523
+ this.valoresAtuais[r] = a, this.valoresOriginais[r] = a, l && e.push(r);
3524
+ }), e.length > 0) {
3525
+ const r = Si(this.ctx.hostElement.shadowRoot);
3526
+ e.forEach((a) => {
3527
+ const o = r.get(a) ?? null;
3528
+ this.atualizarEstadoVisualLinha(a, o), this.ctx.onAtualizarCampoVisual(a, this.valoresAtuais[a], o);
3529
+ });
3530
+ }
3531
+ return this.ctx.onAtualizarBotoesFooter(this.isDirty), e;
3327
3532
  }
3328
3533
  obterValor(t) {
3329
- return this.valoresAtuais[t];
3534
+ if (Object.prototype.hasOwnProperty.call(this.valoresAtuais, t))
3535
+ return this.valoresAtuais[t];
3330
3536
  }
3331
3537
  obterValorOriginal(t) {
3332
- return this.valoresOriginais[t];
3538
+ if (Object.prototype.hasOwnProperty.call(this.valoresOriginais, t))
3539
+ return this.valoresOriginais[t];
3333
3540
  }
3334
3541
  /** Alteração programática: atualiza o editor na tela; não emite se o valor não mudou. */
3335
3542
  definirValor(t, e, r = !0) {
3336
- if (!Object.prototype.hasOwnProperty.call(this.valoresOriginais, t)) return;
3543
+ if (!Y(t) || !Object.prototype.hasOwnProperty.call(this.valoresOriginais, t)) return;
3337
3544
  const a = this.valoresAtuais[t];
3338
- F(a, e) || (this.valoresAtuais[t] = e, this.aposAlterar(t), this.ctx.onAtualizarCampoVisual(t, e), r && this.emitirAlteracao(t, e, a, this.categoriaDe(t)));
3545
+ if (F(a, e)) return;
3546
+ this.valoresAtuais[t] = e;
3547
+ const o = Ee(this.ctx.hostElement.shadowRoot, t);
3548
+ this.atualizarEstadoVisualLinha(t, o), this.ctx.onAtualizarBotoesFooter(this.isDirty), this.ctx.onAtualizarCampoVisual(t, e, o), r && this.emitirAlteracao(t, e, a, this.categoriaDe(t));
3339
3549
  }
3340
3550
  /**
3341
3551
  * Restaura uma propriedade individual ao seu valor original (antes da edição).
3342
3552
  * Devolve `false` se não havia o que restaurar.
3343
3553
  */
3344
3554
  redefinirValor(t, e = !0) {
3345
- if (!(t in this.valoresOriginais) || !this.isModificada(t)) return !1;
3555
+ if (!Y(t) || !Object.prototype.hasOwnProperty.call(this.valoresOriginais, t) || !this.isModificada(t))
3556
+ return !1;
3346
3557
  const r = this.valoresOriginais[t];
3347
3558
  return this.definirValor(t, r, e && !this.ctx.isModoManual()), !0;
3348
3559
  }
3349
3560
  /** Alteração feita pelo usuário num editor. Em modo manual só emite no Aplicar. */
3350
3561
  registrarAlteracao(t, e, r) {
3562
+ if (!Y(e)) return;
3351
3563
  const a = this.valoresAtuais[e];
3352
- F(a, r) || (this.valoresAtuais[e] = r, this.aposAlterar(e), this.ctx.isModoManual() || this.emitirAlteracao(e, r, a, t));
3564
+ if (F(a, r)) return;
3565
+ this.valoresAtuais[e] = r;
3566
+ const o = Ee(this.ctx.hostElement.shadowRoot, e);
3567
+ this.atualizarEstadoVisualLinha(e, o), this.ctx.onAtualizarBotoesFooter(this.isDirty), this.ctx.isModoManual() || this.emitirAlteracao(e, r, a, t);
3353
3568
  }
3354
3569
  aplicar() {
3355
- var r;
3570
+ var a;
3356
3571
  if (!this.isDirty) return;
3357
3572
  const t = {};
3358
- Object.keys(this.valoresAtuais).forEach((a) => {
3359
- this.isModificada(a) && (t[a] = this.valoresAtuais[a]);
3360
- }), this.valoresOriginais = { ...this.valoresAtuais }, this.ctx.onAtualizarBotoesFooter(!1);
3361
- const e = (r = this.ctx.hostElement.shadowRoot) == null ? void 0 : r.querySelectorAll(".ui-prop__linha--modificada");
3362
- e == null || e.forEach((a) => {
3363
- a.classList.remove("ui-prop__linha--modificada"), I(a, "linha-modificada", !1);
3573
+ Object.keys(this.valoresAtuais).forEach((o) => {
3574
+ this.isModificada(o) && (t[o] = this.valoresAtuais[o]);
3575
+ });
3576
+ const e = G();
3577
+ Object.assign(e, this.valoresAtuais), this.valoresOriginais = e, this.ctx.onAtualizarBotoesFooter(!1);
3578
+ const r = (a = this.ctx.hostElement.shadowRoot) == null ? void 0 : a.querySelectorAll(".ui-prop__linha--modificada");
3579
+ r == null || r.forEach((o) => {
3580
+ o.classList.remove("ui-prop__linha--modificada"), I(o, "linha-modificada", !1);
3364
3581
  }), this.ctx.hostElement.dispatchEvent(
3365
3582
  new CustomEvent("ui-aplicar", {
3366
3583
  bubbles: !0,
@@ -3370,22 +3587,21 @@ class Ui {
3370
3587
  );
3371
3588
  }
3372
3589
  desfazer() {
3373
- this.isDirty && (this.valoresAtuais = { ...this.valoresOriginais }, this.ctx.onAtualizarBotoesFooter(!1), this.ctx.onRenderCategorias(), this.ctx.hostElement.dispatchEvent(
3590
+ if (!this.isDirty) return;
3591
+ const t = G();
3592
+ Object.assign(t, this.valoresOriginais), this.valoresAtuais = t, this.ctx.onAtualizarBotoesFooter(!1), this.ctx.onRenderCategorias(), this.ctx.hostElement.dispatchEvent(
3374
3593
  new CustomEvent("ui-desfazer", {
3375
3594
  bubbles: !0,
3376
3595
  composed: !0,
3377
3596
  detail: { valores: { ...this.valoresAtuais } }
3378
3597
  })
3379
- ));
3598
+ );
3380
3599
  }
3381
- /** Marca/desmarca a linha (modificada e mista) e recalcula os botões do rodapé (voltar ao original limpa o estado). */
3382
- aposAlterar(t) {
3383
- const e = Ze(this.ctx.hostElement.shadowRoot, t);
3384
- if (e) {
3385
- const r = this.isModificada(t), a = z(this.valoresAtuais[t]);
3386
- e.classList.toggle("ui-prop__linha--modificada", r), e.classList.toggle("ui-prop__linha--misto", a), I(e, "linha-modificada", r), I(e, "linha-mista", a);
3387
- }
3388
- this.ctx.onAtualizarBotoesFooter(this.isDirty);
3600
+ /** Marca/desmarca a linha (modificada e mista) sem refazer busca DOM quando já resolvida. */
3601
+ atualizarEstadoVisualLinha(t, e) {
3602
+ if (!e) return;
3603
+ const r = this.isModificada(t), a = k(this.valoresAtuais[t]);
3604
+ e.classList.toggle("ui-prop__linha--modificada", r), e.classList.toggle("ui-prop__linha--misto", a), I(e, "linha-modificada", r), I(e, "linha-mista", a);
3389
3605
  }
3390
3606
  categoriaDe(t) {
3391
3607
  for (const e of this.ctx.getCategorias())
@@ -3409,7 +3625,7 @@ class Ui {
3409
3625
  );
3410
3626
  }
3411
3627
  }
3412
- function Xi(i) {
3628
+ function or(i) {
3413
3629
  const {
3414
3630
  shadow: t,
3415
3631
  listeners: e,
@@ -3421,56 +3637,56 @@ function Xi(i) {
3421
3637
  onAlternarDensidade: d,
3422
3638
  onAlternarFlutuante: s,
3423
3639
  onAlternarColapsoHorizontal: h,
3424
- onFocarPrimeiroEditor: c
3425
- } = i, u = t.getElementById("btn-flutuante");
3426
- u && s && e.add(u, "click", s);
3427
- const p = t.getElementById("btn-colapsar-horizontal");
3428
- p && h && e.add(p, "click", h);
3640
+ onFocarPrimeiroEditor: u
3641
+ } = i, p = t.getElementById("btn-flutuante");
3642
+ p && s && e.add(p, "click", s);
3643
+ const c = t.getElementById("btn-colapsar-horizontal");
3644
+ c && h && e.add(c, "click", h);
3429
3645
  const f = t.getElementById("faixa-estreita");
3430
3646
  f && h && e.add(f, "click", h);
3431
3647
  const m = t.getElementById("btn-expandir-faixa");
3432
- m && h && e.add(m, "click", (y) => {
3433
- y.stopPropagation(), h();
3648
+ m && h && e.add(m, "click", (A) => {
3649
+ A.stopPropagation(), h();
3434
3650
  });
3435
3651
  const g = t.getElementById("btn-densidade");
3436
3652
  g && d && e.add(g, "click", d);
3437
3653
  const b = t.getElementById("btn-expandir-tudo");
3438
3654
  b && e.add(b, "click", a);
3439
- const x = t.getElementById("btn-fechar");
3440
- x && e.add(x, "click", () => {
3655
+ const _ = t.getElementById("btn-fechar");
3656
+ _ && e.add(_, "click", () => {
3441
3657
  r.dispatchEvent(new CustomEvent("ui-fechar", { bubbles: !0, composed: !0 }));
3442
3658
  });
3443
- const v = t.getElementById("filtro-input"), E = t.getElementById("btn-limpar-filtro"), k = () => {
3444
- E && v && (E.style.display = v.value ? "inline-flex" : "none");
3659
+ const x = t.getElementById("filtro-input"), E = t.getElementById("btn-limpar-filtro"), y = () => {
3660
+ E && x && (E.style.display = x.value ? "inline-flex" : "none");
3445
3661
  };
3446
- v && (e.add(v, "input", () => {
3447
- k();
3448
- const y = (v.value || "").trim().toLowerCase();
3449
- o(y);
3450
- }), e.add(v, "keydown", (y) => {
3451
- y.key === "Escape" ? v.value ? (y.preventDefault(), y.stopPropagation(), v.value = "", k(), o("")) : v.blur() : (y.key === "Enter" || y.key === "ArrowDown") && c && (y.preventDefault(), c());
3452
- })), E && v && e.add(E, "click", () => {
3453
- v.value = "", k(), o(""), v.focus();
3662
+ x && (e.add(x, "input", () => {
3663
+ y();
3664
+ const A = (x.value || "").trim().toLowerCase();
3665
+ o(A);
3666
+ }), e.add(x, "keydown", (A) => {
3667
+ A.key === "Escape" ? x.value ? (A.preventDefault(), A.stopPropagation(), x.value = "", y(), o("")) : x.blur() : (A.key === "Enter" || A.key === "ArrowDown") && u && (A.preventDefault(), u());
3668
+ })), E && x && e.add(E, "click", () => {
3669
+ x.value = "", y(), o(""), x.focus();
3454
3670
  });
3455
- const S = t.getElementById("btn-aplicar");
3456
- S && e.add(S, "click", n);
3671
+ const z = t.getElementById("btn-aplicar");
3672
+ z && e.add(z, "click", n);
3457
3673
  const L = t.getElementById("btn-desfazer");
3458
3674
  L && e.add(L, "click", l);
3459
- const A = t.getElementById("link-ajuda");
3460
- if (A) {
3461
- const y = (C) => {
3462
- C.preventDefault(), r.dispatchEvent(new CustomEvent("ui-ajuda", { bubbles: !0, composed: !0 }));
3675
+ const C = t.getElementById("link-ajuda");
3676
+ if (C) {
3677
+ const A = (S) => {
3678
+ S.preventDefault(), r.dispatchEvent(new CustomEvent("ui-ajuda", { bubbles: !0, composed: !0 }));
3463
3679
  };
3464
- e.add(A, "click", y), e.add(A, "keydown", (C) => {
3465
- C.key === " " && y(C);
3680
+ e.add(C, "click", A), e.add(C, "keydown", (S) => {
3681
+ S.key === " " && A(S);
3466
3682
  });
3467
3683
  }
3468
- e.add(t, "keydown", (y) => {
3469
- const C = y;
3470
- (C.ctrlKey || C.metaKey) && C.key === "Enter" && r.getAttribute("modo-aplicar") === "manual" && (C.preventDefault(), n());
3684
+ e.add(t, "keydown", (A) => {
3685
+ const S = A;
3686
+ (S.ctrlKey || S.metaKey) && S.key === "Enter" && r.getAttribute("modo-aplicar") === "manual" && (S.preventDefault(), n());
3471
3687
  });
3472
3688
  }
3473
- function N(i, t) {
3689
+ function O(i, t) {
3474
3690
  const e = i.getElementById("header-titulo-texto");
3475
3691
  e && (e.textContent = t.getAttribute("titulo") || "Propriedades");
3476
3692
  const r = i.getElementById("btn-fechar");
@@ -3495,53 +3711,54 @@ function N(i, t) {
3495
3711
  const d = i.getElementById("filtro-input"), s = i.getElementById("btn-limpar-filtro");
3496
3712
  s && d && (s.style.display = d.value ? "inline-flex" : "none");
3497
3713
  const h = i.getElementById("filtro-input");
3498
- h && (h.placeholder = G(t, "filtroPlaceholder"));
3499
- const c = i.getElementById("btn-aplicar");
3500
- c && (c.textContent = G(t, "aplicar"));
3501
- const u = i.getElementById("btn-desfazer");
3502
- u && (u.textContent = G(t, "desfazer"));
3503
- const p = i.getElementById("link-ajuda");
3504
- p && (p.textContent = G(t, "ajuda"));
3714
+ h && (h.placeholder = te(t, "filtroPlaceholder"));
3715
+ const u = i.getElementById("btn-aplicar");
3716
+ u && (u.textContent = te(t, "aplicar"));
3717
+ const p = i.getElementById("btn-desfazer");
3718
+ p && (p.textContent = te(t, "desfazer"));
3719
+ const c = i.getElementById("link-ajuda");
3720
+ c && (c.textContent = te(t, "ajuda"));
3505
3721
  const f = i.getElementById("footer");
3506
3722
  f && (f.style.display = t.getAttribute("modo-aplicar") === "manual" ? "flex" : "none");
3507
3723
  }
3508
- const q = class q extends qe {
3724
+ const V = class V extends Ze {
3509
3725
  constructor() {
3510
3726
  super();
3511
- _(this, "shadow");
3512
- _(this, "listeners", new H());
3513
- _(this, "splitterListeners", new H());
3514
- _(this, "controladorSplitter");
3515
- _(this, "gerenciadorValores");
3516
- _(this, "_conectado", !1);
3517
- _(this, "lembranca", new hi(() => ({
3727
+ v(this, "shadow");
3728
+ v(this, "listeners", new N());
3729
+ v(this, "splitterListeners", new N());
3730
+ v(this, "limparArrastoFlutuante");
3731
+ v(this, "controladorSplitter");
3732
+ v(this, "gerenciadorValores");
3733
+ v(this, "_conectado", !1);
3734
+ v(this, "lembranca", new Ci(() => ({
3518
3735
  persistir: this.persistir,
3519
3736
  conectado: this._conectado,
3520
3737
  storageKey: this.storageKey,
3521
3738
  id: this.id
3522
3739
  })));
3523
- _(this, "_categorias", []);
3524
- _(this, "_tipos", []);
3525
- _(this, "_tipoSelecionadoId", "");
3526
- _(this, "_termoBusca", "");
3527
- _(this, "_larguraRotuloPorcentagem", 45);
3528
- _(this, "_sincronizandoFlutuante", !1);
3529
- _(this, "_textos", {});
3530
- _(this, "tipoContainerElement");
3531
- _(this, "corpoElement");
3532
- _(this, "btnAplicarElement");
3533
- _(this, "btnDesfazerElement");
3534
- _(this, "splitterElement");
3535
- this.shadow = this.attachShadow({ mode: "open" }), this.shadow.innerHTML = Fi(), 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 Ui({
3740
+ v(this, "_categorias", []);
3741
+ v(this, "_tipos", []);
3742
+ v(this, "_tipoSelecionadoId", "");
3743
+ v(this, "_termoBusca", "");
3744
+ v(this, "_larguraRotuloPorcentagem", 45);
3745
+ v(this, "_sincronizandoFlutuante", !1);
3746
+ v(this, "_textos", {});
3747
+ v(this, "tipoContainerElement");
3748
+ v(this, "corpoElement");
3749
+ v(this, "btnAplicarElement");
3750
+ v(this, "btnDesfazerElement");
3751
+ v(this, "splitterElement");
3752
+ this.shadow = this.attachShadow({ mode: "open" }), this.shadow.innerHTML = Zi(), 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 ar({
3536
3753
  hostElement: this,
3537
3754
  getCategorias: () => this._categorias,
3538
3755
  onAtualizarBotoesFooter: (e) => {
3539
3756
  this.btnAplicarElement.disabled = !e, this.btnDesfazerElement.disabled = !e;
3540
3757
  },
3541
- onAtualizarCampoVisual: (e, r) => Be(this.shadow, e, r),
3758
+ onAtualizarCampoVisual: (e, r, a) => Ge(this.shadow, e, r, a),
3542
3759
  onRenderCategorias: () => this.renderCategorias(),
3543
3760
  isModoManual: () => this.getAttribute("modo-aplicar") === "manual"
3544
- }), this.controladorSplitter = Bi({
3761
+ }), this.controladorSplitter = Gi({
3545
3762
  hostElement: this,
3546
3763
  corpoElement: this.corpoElement,
3547
3764
  splitterElement: this.splitterElement,
@@ -3565,31 +3782,34 @@ const q = class q extends qe {
3565
3782
  "texto-misto",
3566
3783
  "persistir",
3567
3784
  "storage-key",
3568
- ...Ve
3785
+ "id",
3786
+ ...Je
3569
3787
  ];
3570
3788
  }
3571
3789
  get larguraRotuloPorcentagem() {
3572
3790
  return this._larguraRotuloPorcentagem;
3573
3791
  }
3574
3792
  connectedCallback() {
3575
- this.listeners.cleanup(), this._conectado = !0, this.atualizarRegistroChavePadrao(), this.persistir && (this.lembranca.sincronizarSeChaveMudou(), this.lembranca.restaurarOrigensEmCategorias(this._categorias), this.lembranca.aplicarEmCategorias(this._categorias)), Xi({
3793
+ var e;
3794
+ this.listeners.cleanup(), (e = this.limparArrastoFlutuante) == null || e.call(this), this._conectado = !0, this.atualizarRegistroChavePadrao(), this.persistir && (this.lembranca.sincronizarSeChaveMudou(), this.lembranca.restaurarOrigensEmCategorias(this._categorias), this.lembranca.aplicarEmCategorias(this._categorias)), or({
3576
3795
  shadow: this.shadow,
3577
3796
  listeners: this.listeners,
3578
3797
  host: this,
3579
3798
  onToggleExpandirTodas: () => this.toggleExpandirTodas(),
3580
- onFiltrar: (e) => {
3581
- this._termoBusca = e, this.renderCategorias();
3799
+ onFiltrar: (r) => {
3800
+ this._termoBusca = r, this.renderCategorias();
3582
3801
  },
3583
3802
  onAplicar: () => this.aplicar(),
3584
3803
  onDesfazer: () => this.desfazer(),
3585
3804
  onAlternarDensidade: () => this.alternarDensidade(),
3586
3805
  onAlternarFlutuante: () => this.alternarFlutuante(),
3587
3806
  onAlternarColapsoHorizontal: () => this.alternarColapsoHorizontal(),
3588
- onFocarPrimeiroEditor: () => bi(this.shadow)
3589
- }), this.hasAttribute("flutuante") && Pe(this), Hi(this, this.shadow, this.listeners), this.controladorSplitter.init(), Z(this, this.shadow.getElementById("container")), this.syncState();
3807
+ onFocarPrimeiroEditor: () => Li(this.shadow)
3808
+ }), this.hasAttribute("flutuante") && Ye(this), this.limparArrastoFlutuante = ir(this, this.shadow, this.listeners), this.controladorSplitter.init(), re(this, this.shadow.getElementById("container")), this.syncState();
3590
3809
  }
3591
3810
  disconnectedCallback() {
3592
- this._conectado = !1, this.atualizarRegistroChavePadrao(), this.listeners.cleanup(), this.splitterListeners.cleanup(), this.shadow.querySelectorAll(".ui-prop__ac").forEach((e) => e.remove());
3811
+ var e;
3812
+ this._conectado = !1, this.atualizarRegistroChavePadrao(), this.listeners.cleanup(), (e = this.limparArrastoFlutuante) == null || e.call(this), this.limparArrastoFlutuante = void 0, this.controladorSplitter.cleanup(), this.shadow.querySelectorAll(".ui-prop__ac").forEach((r) => r.remove());
3593
3813
  }
3594
3814
  /**
3595
3815
  * Cada atributo atualiza só o que depende dele: redesenhar todas as linhas (ex.: ao trocar o
@@ -3597,8 +3817,8 @@ const q = class q extends qe {
3597
3817
  */
3598
3818
  attributeChangedCallback(e, r, a) {
3599
3819
  if (r !== a) {
3600
- if ($e(e)) {
3601
- Z(this, this.shadow.getElementById("container"));
3820
+ if (Qe(e)) {
3821
+ re(this, this.shadow.getElementById("container"));
3602
3822
  return;
3603
3823
  }
3604
3824
  switch (e) {
@@ -3614,17 +3834,17 @@ const q = class q extends qe {
3614
3834
  this.renderCategorias();
3615
3835
  return;
3616
3836
  case "filtro":
3617
- if (N(this.shadow, this), a === null && this._termoBusca) {
3837
+ if (O(this.shadow, this), a === null && this._termoBusca) {
3618
3838
  this._termoBusca = "";
3619
3839
  const o = this.shadow.getElementById("filtro-input");
3620
3840
  o && (o.value = ""), this.renderCategorias();
3621
3841
  }
3622
3842
  return;
3623
3843
  case "flutuante":
3624
- this._sincronizandoFlutuante || (this._conectado && Pe(this), N(this.shadow, this));
3844
+ this._sincronizandoFlutuante || (this._conectado && Ye(this), O(this.shadow, this));
3625
3845
  return;
3626
3846
  case "modo-aplicar":
3627
- a !== "manual" && this.gerenciadorValores.isDirty && this.aplicar(), N(this.shadow, this);
3847
+ a !== "manual" && this.gerenciadorValores.isDirty && this.aplicar(), O(this.shadow, this);
3628
3848
  return;
3629
3849
  case "persistir":
3630
3850
  this.atualizarRegistroChavePadrao(), this._conectado && this.persistir && (this.lembranca.sincronizarSeChaveMudou(), this.lembranca.restaurarOrigensEmCategorias(this._categorias), this.lembranca.aplicarEmCategorias(this._categorias), this.atualizarVisaoCategorias());
@@ -3632,8 +3852,11 @@ const q = class q extends qe {
3632
3852
  case "storage-key":
3633
3853
  this.atualizarRegistroChavePadrao(), this._conectado && this.persistir && (this.lembranca.carregarDoStorage(!0), this.lembranca.restaurarOrigensEmCategorias(this._categorias), this.lembranca.aplicarEmCategorias(this._categorias), this.atualizarVisaoCategorias());
3634
3854
  return;
3855
+ case "id":
3856
+ this.atualizarRegistroChavePadrao(), this._conectado && this.persistir && this.lembranca.sincronizarSeChaveMudou() && (this.lembranca.restaurarOrigensEmCategorias(this._categorias), this.lembranca.aplicarEmCategorias(this._categorias), this.atualizarVisaoCategorias());
3857
+ return;
3635
3858
  default:
3636
- N(this.shadow, this);
3859
+ O(this.shadow, this);
3637
3860
  }
3638
3861
  }
3639
3862
  }
@@ -3668,7 +3891,7 @@ const q = class q extends qe {
3668
3891
  set termoBusca(e) {
3669
3892
  this._termoBusca = (e || "").trim().toLowerCase();
3670
3893
  const r = this.shadow.getElementById("filtro-input");
3671
- r && (r.value = e || ""), this.renderCategorias();
3894
+ r && (r.value = e || ""), O(this.shadow, this), this.renderCategorias();
3672
3895
  }
3673
3896
  get larguraRotulo() {
3674
3897
  return this._larguraRotuloPorcentagem;
@@ -3715,7 +3938,7 @@ const q = class q extends qe {
3715
3938
  */
3716
3939
  get textoMisto() {
3717
3940
  const e = this.getAttribute("texto-misto");
3718
- return e && e.trim() ? e : Ee;
3941
+ return e && e.trim() ? e : Me;
3719
3942
  }
3720
3943
  set textoMisto(e) {
3721
3944
  typeof e == "string" && e.trim() ? this.setAttribute("texto-misto", e) : this.removeAttribute("texto-misto");
@@ -3729,7 +3952,7 @@ const q = class q extends qe {
3729
3952
  e && typeof e == "object" && Object.keys(M).forEach((a) => {
3730
3953
  const o = e[a];
3731
3954
  typeof o == "string" && o.trim() && (r[a] = o);
3732
- }), this._textos = r, N(this.shadow, this), this.renderSeletorTipos(), this.renderCategorias();
3955
+ }), this._textos = r, O(this.shadow, this), this.renderSeletorTipos(), this.renderCategorias();
3733
3956
  }
3734
3957
  /** Texto personalizado de uma chave (ou o padrão). */
3735
3958
  obterTexto(e) {
@@ -3783,23 +4006,23 @@ const q = class q extends qe {
3783
4006
  expandirTudo() {
3784
4007
  const e = [];
3785
4008
  for (const r of this._categorias) {
3786
- const a = D(r);
4009
+ const a = T(r);
3787
4010
  a !== null && e.push([a, !0]);
3788
4011
  }
3789
- this.lembranca.registrarVarias(e), vi(this.shadow, this._categorias), e.length > 0 && this.emitirEstadoCategorias();
4012
+ this.lembranca.registrarVarias(e), Oi(this.shadow, this._categorias), e.length > 0 && this.emitirEstadoCategorias();
3790
4013
  }
3791
4014
  colapsarTudo() {
3792
4015
  const e = [];
3793
4016
  for (const r of this._categorias) {
3794
- const a = D(r);
4017
+ const a = T(r);
3795
4018
  a !== null && e.push([a, !1]);
3796
4019
  }
3797
- this.lembranca.registrarVarias(e), xi(this.shadow, this._categorias), e.length > 0 && this.emitirEstadoCategorias();
4020
+ this.lembranca.registrarVarias(e), Ri(this.shadow, this._categorias), e.length > 0 && this.emitirEstadoCategorias();
3798
4021
  }
3799
4022
  toggleCategoria(e) {
3800
- const r = this._categorias.find((n) => D(n) === e);
4023
+ const r = this._categorias.find((n) => T(n) === e);
3801
4024
  if (!r) return;
3802
- const a = this._termoBusca ? void 0 : this.lembranca.estaAberta(r), o = _i(this.shadow, this, this._categorias, e, a);
4025
+ const a = this._termoBusca ? void 0 : this.lembranca.estaAberta(r), o = Di(this.shadow, this, this._categorias, e, a);
3803
4026
  typeof o == "boolean" && (this.lembranca.registrar(e, o), this.emitirEstadoCategorias());
3804
4027
  }
3805
4028
  /**
@@ -3837,20 +4060,21 @@ const q = class q extends qe {
3837
4060
  this.limparEstadoCategorias();
3838
4061
  }
3839
4062
  get densidade() {
3840
- return this.getAttribute("densidade") || "padrao";
4063
+ const e = this.getAttribute("densidade");
4064
+ return e === "compacta" || e === "ultracompacta" || e === "relaxada" ? e : "padrao";
3841
4065
  }
3842
4066
  set densidade(e) {
3843
4067
  !e || e === "padrao" ? this.removeAttribute("densidade") : this.setAttribute("densidade", e);
3844
4068
  }
3845
4069
  alternarDensidade() {
3846
- const e = Wi(this.getAttribute("densidade") || "padrao");
4070
+ const e = rr(this.getAttribute("densidade") || "padrao");
3847
4071
  return e === "padrao" ? this.removeAttribute("densidade") : this.setAttribute("densidade", e), this.dispatchEvent(
3848
4072
  new CustomEvent("ui-densidade-alterada", {
3849
4073
  bubbles: !0,
3850
4074
  composed: !0,
3851
4075
  detail: { densidade: e }
3852
4076
  })
3853
- ), N(this.shadow, this), e;
4077
+ ), O(this.shadow, this), e;
3854
4078
  }
3855
4079
  get flutuante() {
3856
4080
  return this.hasAttribute("flutuante");
@@ -3867,8 +4091,8 @@ const q = class q extends qe {
3867
4091
  alternarFlutuante() {
3868
4092
  this._sincronizandoFlutuante = !0;
3869
4093
  try {
3870
- const e = ji(this);
3871
- return N(this.shadow, this), this.dispatchEvent(new CustomEvent("ui-flutuante-alterado", {
4094
+ const e = tr(this);
4095
+ return O(this.shadow, this), this.dispatchEvent(new CustomEvent("ui-flutuante-alterado", {
3872
4096
  bubbles: !0,
3873
4097
  composed: !0,
3874
4098
  detail: {
@@ -3887,14 +4111,14 @@ const q = class q extends qe {
3887
4111
  const e = this.hasAttribute("colapsado");
3888
4112
  e ? this.removeAttribute("colapsado") : this.setAttribute("colapsado", "");
3889
4113
  const r = !e;
3890
- return N(this.shadow, this), this.dispatchEvent(new CustomEvent("ui-colapso-horizontal", {
4114
+ return O(this.shadow, this), this.dispatchEvent(new CustomEvent("ui-colapso-horizontal", {
3891
4115
  bubbles: !0,
3892
4116
  composed: !0,
3893
4117
  detail: { colapsado: r }
3894
4118
  })), r;
3895
4119
  }
3896
4120
  syncState() {
3897
- N(this.shadow, this);
4121
+ O(this.shadow, this);
3898
4122
  const e = this.getAttribute("largura-rotulo");
3899
4123
  if (e) {
3900
4124
  const r = parseFloat(e);
@@ -3910,17 +4134,17 @@ const q = class q extends qe {
3910
4134
  atualizarRegistroChavePadrao() {
3911
4135
  var r, a;
3912
4136
  if (this._conectado && this.persistir && !((r = this.getAttribute("storage-key")) != null && r.trim()) && !((a = this.id) != null && a.trim())) {
3913
- const o = q.instanciasChavePadrao.has(this);
3914
- q.instanciasChavePadrao.add(this), !o && q.instanciasChavePadrao.size > 1 && console.warn(
4137
+ const o = V.instanciasChavePadrao.has(this);
4138
+ V.instanciasChavePadrao.add(this), !o && V.instanciasChavePadrao.size > 1 && console.warn(
3915
4139
  '[ui-tabela-propriedades] Múltiplos painéis persistentes conectados sem "id" ou "storage-key". Todos compartilharão a mesma chave de armazenamento.'
3916
4140
  );
3917
4141
  } else
3918
- q.instanciasChavePadrao.delete(this);
4142
+ V.instanciasChavePadrao.delete(this);
3919
4143
  }
3920
4144
  atualizarVisaoCategorias() {
3921
4145
  const e = this.shadow.querySelectorAll(".ui-prop__categoria").length > 0;
3922
4146
  if (!this._termoBusca && e) {
3923
- gi(this.shadow, this._categorias, (r) => this.lembranca.estaAberta(r));
4147
+ Mi(this.shadow, this._categorias, (r) => this.lembranca.estaAberta(r));
3924
4148
  return;
3925
4149
  }
3926
4150
  this.renderCategorias();
@@ -3936,7 +4160,7 @@ const q = class q extends qe {
3936
4160
  );
3937
4161
  }
3938
4162
  renderSeletorTipos() {
3939
- Ti({
4163
+ Xi({
3940
4164
  tipoContainerElement: this.tipoContainerElement,
3941
4165
  tipos: this._tipos,
3942
4166
  tipoSelecionadoId: this._tipoSelecionadoId,
@@ -3955,7 +4179,7 @@ const q = class q extends qe {
3955
4179
  }
3956
4180
  renderCategorias() {
3957
4181
  const e = this.shadow.getElementById("lista-categorias");
3958
- e && (this.shadow.querySelectorAll(".ui-prop__ac").forEach((r) => r.remove()), qi({
4182
+ e && (this.shadow.querySelectorAll(".ui-prop__ac").forEach((r) => r.remove()), Ji({
3959
4183
  listaContainer: e,
3960
4184
  categorias: this._categorias,
3961
4185
  termoBusca: this._termoBusca,
@@ -3965,15 +4189,15 @@ const q = class q extends qe {
3965
4189
  linhaCtx: {
3966
4190
  valoresAtuais: this.gerenciadorValores.getValores(),
3967
4191
  valoresOriginais: this.gerenciadorValores.getValoresOriginais(),
3968
- onAtualizarCampoVisual: (r, a) => Be(this.shadow, r, a),
4192
+ onAtualizarCampoVisual: (r, a) => Ge(this.shadow, r, a),
3969
4193
  onRedefinir: (r) => this.redefinirValor(r),
3970
4194
  editorCtx: {
3971
4195
  obterValorAtual: (r) => this.gerenciadorValores.obterValor(r),
3972
4196
  registrarAlteracao: (r, a, o) => {
3973
4197
  this.gerenciadorValores.registrarAlteracao(r, a, o);
3974
4198
  },
3975
- focarProximoEditor: (r) => fi(this.shadow, r),
3976
- focarEditorAnterior: (r) => mi(this.shadow, r),
4199
+ focarProximoEditor: (r) => zi(this.shadow, r),
4200
+ focarEditorAnterior: (r) => ki(this.shadow, r),
3977
4201
  obterTextoMisto: () => this.textoMisto,
3978
4202
  obterTexto: (r) => this.obterTexto(r),
3979
4203
  despacharEventoAcao: (r, a) => {
@@ -3990,112 +4214,119 @@ const q = class q extends qe {
3990
4214
  }));
3991
4215
  }
3992
4216
  };
3993
- _(q, "instanciasChavePadrao", /* @__PURE__ */ new Set());
3994
- let U = q;
3995
- class Ki extends U {
4217
+ v(V, "instanciasChavePadrao", /* @__PURE__ */ new Set());
4218
+ let J = V;
4219
+ class nr extends J {
3996
4220
  }
3997
- class Gi extends U {
4221
+ class sr extends J {
3998
4222
  }
3999
- re("ui-tabela-propriedades", U);
4000
- re("ui-painel-propriedades", Ki);
4001
- re("ui-propriedades", Gi);
4223
+ le("ui-tabela-propriedades", J);
4224
+ le("ui-painel-propriedades", nr);
4225
+ le("ui-propriedades", sr);
4002
4226
  export {
4003
- Ui as GerenciadorValoresPropriedades,
4004
- hi as LembrancaCategoriasPropriedades,
4227
+ H as CHAVES_PROIBIDAS,
4228
+ ar as GerenciadorValoresPropriedades,
4229
+ Ci as LembrancaCategoriasPropriedades,
4005
4230
  M as TEXTOS_PADRAO,
4006
- Ee as TEXTO_MISTO_PADRAO,
4007
- jt as TEXTO_VAZIO_PADRAO,
4008
- mt as TabelaOrquestradorDados,
4009
- ot as TabelaRemotaController,
4010
- dt as TabelaSelecaoController,
4011
- Ki as UIPainelPropriedades,
4012
- Gi as UIPropriedades,
4013
- Qt as UITabela,
4014
- U as UITabelaPropriedades,
4015
- _e as VALOR_MISTO,
4016
- ue as abertoPadraoDaCategoria,
4017
- Pt as abrirPopoverRedimensionamento,
4018
- _i as alternarCategoria,
4019
- ct as alternarDirecaoOrdenacao,
4020
- ji as alternarPosicionamentoFlutuante,
4021
- He as aplicarClasseColuna,
4022
- J as aplicarEstiloColunaFixa,
4023
- ye as aplicarLimitesNumericos,
4024
- ht as aplicarOrdenacaoTabela,
4025
- Be as atualizarCampoVisual,
4026
- j as atualizarIndicadoresRolagem,
4027
- ii as avaliarExpressaoMatematica,
4028
- Ze as buscarLinhaPropriedade,
4029
- me as calcularOffsetsColunasFixas,
4030
- ci as carregarEstadoPropriedades,
4031
- Ct as cliqueEmControle,
4032
- xi as colapsarTodasCategorias,
4033
- er as combinarValores,
4034
- Hi as conectarArrastoFlutuante,
4035
- Xi as conectarPainelControles,
4036
- Bi as criarControladorSplitter,
4037
- Si as criarEditorAcao,
4038
- wi as criarEditorBooleano,
4039
- Oi as criarEditorCorCad,
4040
- Di as criarEditorCorSwatch,
4041
- ki as criarEditorLinetype,
4042
- Mi as criarEditorLineweight,
4043
- zi as criarEditorNumero,
4044
- Ai as criarEditorReadonly,
4045
- Ci as criarEditorSelecao,
4046
- Li as criarEditorTexto,
4047
- Ii as criarEditorValor,
4048
- Vi as criarLinhaPropriedade,
4049
- Vt as executarOrquestracaoCorpo,
4050
- qt as executarOrquestracaoHeader,
4051
- Bt as executarRedimensionamentoColuna,
4052
- Ft as executarRedimensionamentoTeclado,
4053
- Tt as exibirPromptPopoverRedimensionamento,
4054
- vi as expandirTodasCategorias,
4055
- mi as focarEditorAnterior,
4056
- bi as focarPrimeiroEditor,
4057
- fi as focarProximoEditor,
4058
- je as formatWidth,
4059
- Y as gerarChaveStoragePropriedades,
4060
- We as getAlignmentClass,
4061
- ke as getRowHeight,
4062
- Ue as getTextAlign,
4063
- D as idDaCategoria,
4064
- Qi as inicializarScrollVirtualizacao,
4065
- Dt as iniciarRedimensionamentoColuna,
4066
- ce as interpretarEntradaNumerica,
4067
- ze as interpretarIndice,
4068
- z as isValorMisto,
4069
- ge as limitarLarguraColuna,
4070
- pi as limparEstadoPropriedades,
4071
- lt as localizarIndiceItem,
4072
- oe as marcarSelectMisto,
4073
- vt as montarEstruturaDOM,
4074
- di as normalizarEstadoPersistidoPropriedades,
4075
- de as normalizarTexto,
4076
- se as obterCasasDecimais,
4077
- fe as obterColunasVisiveis,
4078
- yi as obterPassoNumerico,
4079
- $t as orquestrarEstruturaInicial,
4080
- Wi as proximaDensidade,
4081
- Ne as recalcularOffsetsFixosDOM,
4082
- Rt as redimensionarColunaPorDelta,
4083
- T as registrarAtualizadorEditor,
4084
- qi as renderizarCategoriasETree,
4085
- Nt as renderizarCorpoTabela,
4086
- Ot as renderizarHeaderTabela,
4087
- Ti as renderizarSeletorTipos,
4088
- ui as salvarEstadoPropriedades,
4089
- Ye as sincronizarAtributosTabela,
4090
- W as sincronizarCampoAberto,
4091
- gi as sincronizarDomCategorias,
4092
- Pe as sincronizarFlutuanteExterno,
4093
- N as sincronizarPainelControles,
4094
- ae as sincronizarSelect,
4095
- G as textoDoHost,
4096
- B as textoMistoDe,
4097
- Ht as tratarMudancaAtributoTabela,
4098
- Ei as valorComum,
4099
- pe as valorInicialDaPropriedade,
4231
+ Me as TEXTO_MISTO_PADRAO,
4232
+ Qt as TEXTO_VAZIO_PADRAO,
4233
+ wt as TabelaOrquestradorDados,
4234
+ ft as TabelaRemotaController,
4235
+ vt as TabelaSelecaoController,
4236
+ nr as UIPainelPropriedades,
4237
+ sr as UIPropriedades,
4238
+ di as UITabela,
4239
+ J as UITabelaPropriedades,
4240
+ Le as VALOR_MISTO,
4241
+ ye as abertoPadraoDaCategoria,
4242
+ Ut as abrirPopoverRedimensionamento,
4243
+ Di as alternarCategoria,
4244
+ _t as alternarDirecaoOrdenacao,
4245
+ tr as alternarPosicionamentoFlutuante,
4246
+ et as aplicarClasseColuna,
4247
+ ae as aplicarEstiloColunaFixa,
4248
+ De as aplicarLimitesNumericos,
4249
+ Et as aplicarOrdenacaoTabela,
4250
+ Ge as atualizarCampoVisual,
4251
+ X as atualizarIndicadoresRolagem,
4252
+ hi as avaliarExpressaoMatematica,
4253
+ Ee as buscarLinhaPropriedade,
4254
+ ce as calcularOffsetsColunasFixas,
4255
+ Ei as carregarEstadoPropriedades,
4256
+ Nt as cliqueEmControle,
4257
+ Ri as colapsarTodasCategorias,
4258
+ pr as combinarValores,
4259
+ ir as conectarArrastoFlutuante,
4260
+ or as conectarPainelControles,
4261
+ Gi as criarControladorSplitter,
4262
+ Bi as criarEditorAcao,
4263
+ Ii as criarEditorBooleano,
4264
+ Hi as criarEditorCorCad,
4265
+ Wi as criarEditorCorSwatch,
4266
+ Vi as criarEditorLinetype,
4267
+ ji as criarEditorLineweight,
4268
+ qi as criarEditorNumero,
4269
+ Ti as criarEditorReadonly,
4270
+ Pi as criarEditorSelecao,
4271
+ Fi as criarEditorTexto,
4272
+ Ui as criarEditorValor,
4273
+ Qi as criarLinhaPropriedade,
4274
+ Y as ehChavePropriedadeSegura,
4275
+ Yt as executarOrquestracaoCorpo,
4276
+ Gt as executarOrquestracaoHeader,
4277
+ Zt as executarOrquestracaoRodape,
4278
+ Wt as executarRedimensionamentoColuna,
4279
+ Xt as executarRedimensionamentoTeclado,
4280
+ Kt as exibirPromptPopoverRedimensionamento,
4281
+ Oi as expandirTodasCategorias,
4282
+ ki as focarEditorAnterior,
4283
+ Li as focarPrimeiroEditor,
4284
+ zi as focarProximoEditor,
4285
+ we as formatWidth,
4286
+ ie as gerarChaveStoragePropriedades,
4287
+ Ce as getAlignmentClass,
4288
+ Ve as getRowHeight,
4289
+ Se as getTextAlign,
4290
+ T as idDaCategoria,
4291
+ Si as indexarLinhasPropriedades,
4292
+ ur as inicializarScrollVirtualizacao,
4293
+ $t as iniciarRedimensionamentoColuna,
4294
+ _e as interpretarEntradaNumerica,
4295
+ qe as interpretarIndice,
4296
+ k as isValorMisto,
4297
+ ht as lerEntradaDeclarativa,
4298
+ ke as limitarLarguraColuna,
4299
+ wi as limparEstadoPropriedades,
4300
+ gt as localizarIndiceItem,
4301
+ pe as marcarSelectMisto,
4302
+ zt as montarEstruturaDOM,
4303
+ yi as normalizarEstadoPersistidoPropriedades,
4304
+ me as normalizarTexto,
4305
+ fe as obterCasasDecimais,
4306
+ de as obterColunasVisiveis,
4307
+ Ni as obterPassoNumerico,
4308
+ Jt as orquestrarEstruturaInicial,
4309
+ j as parseJsonSeguro,
4310
+ rr as proximaDensidade,
4311
+ $e as recalcularOffsetsFixosDOM,
4312
+ jt as redimensionarColunaPorDelta,
4313
+ B as registrarAtualizadorEditor,
4314
+ Ji as renderizarCategoriasETree,
4315
+ qt as renderizarCorpoTabela,
4316
+ Vt as renderizarHeaderTabela,
4317
+ Ft as renderizarRodapeTabela,
4318
+ Xi as renderizarSeletorTipos,
4319
+ Ai as salvarEstadoPropriedades,
4320
+ ot as sincronizarAtributosTabela,
4321
+ Z as sincronizarCampoAberto,
4322
+ Mi as sincronizarDomCategorias,
4323
+ Ye as sincronizarFlutuanteExterno,
4324
+ O as sincronizarPainelControles,
4325
+ ue as sincronizarSelect,
4326
+ te as textoDoHost,
4327
+ P as textoMistoDe,
4328
+ ei as tratarMudancaAtributoTabela,
4329
+ _i as valorComum,
4330
+ xe as valorInicialDaPropriedade,
4100
4331
  F as valoresIguais
4101
4332
  };