@thibezer/ui-components-kit 2.8.2 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +233 -0
- package/README.md +37 -10
- package/dist/acessibilidade-CSzX-DkG.cjs +1 -0
- package/dist/acessibilidade-CUlSXc2X.js +38 -0
- package/dist/altura-controle-ukMRPckR.cjs +1 -0
- package/dist/altura-controle-vxQiXG4q.js +62 -0
- package/dist/botao.cjs +1 -1
- package/dist/botao.js +1 -1
- package/dist/camadas.cjs +111 -109
- package/dist/camadas.js +1360 -1182
- package/dist/campo-texto.cjs +1 -1
- package/dist/campo-texto.js +1 -1
- package/dist/canvas.cjs +88 -86
- package/dist/canvas.js +4695 -3395
- package/dist/card.cjs +1 -1
- package/dist/card.js +1 -1
- package/dist/components/ui-area-texto/area-texto-altura.d.ts +16 -0
- package/dist/components/ui-area-texto/area-texto-contador.d.ts +6 -0
- package/dist/components/ui-area-texto/area-texto-template.d.ts +2 -0
- package/dist/components/ui-area-texto/index.d.ts +3 -0
- package/dist/components/ui-area-texto/tipos.d.ts +19 -0
- package/dist/components/ui-area-texto/ui-area-texto.d.ts +100 -0
- package/dist/components/ui-avatar/ui-avatar.d.ts +11 -0
- package/dist/components/ui-badge/ui-badge.d.ts +2 -0
- package/dist/components/ui-barra-ferramentas/ferramentas-comum.d.ts +3 -1
- package/dist/components/ui-barra-ferramentas/paleta-atalhos.d.ts +23 -0
- package/dist/components/ui-barra-ferramentas/paleta-pressao-longa.d.ts +24 -0
- package/dist/components/ui-barra-ferramentas/ribbon-render.d.ts +22 -0
- package/dist/components/ui-barra-ferramentas/ribbon-teclado.d.ts +24 -0
- package/dist/components/ui-barra-ferramentas/ui-paleta-ferramentas.d.ts +3 -7
- package/dist/components/ui-barra-ferramentas/ui-ribbon.d.ts +0 -1
- package/dist/components/ui-camadas/camadas-arraste-controles.d.ts +2 -0
- package/dist/components/ui-camadas/camadas-arvore-renderer.d.ts +4 -11
- package/dist/components/ui-camadas/camadas-colecao.d.ts +27 -0
- package/dist/components/ui-camadas/camadas-drag-drop.d.ts +13 -1
- package/dist/components/ui-camadas/camadas-drop-ops.d.ts +31 -0
- package/dist/components/ui-camadas/camadas-hierarquia.d.ts +10 -0
- package/dist/components/ui-camadas/camadas-host.d.ts +1 -0
- package/dist/components/ui-camadas/camadas-lembranca.d.ts +34 -0
- package/dist/components/ui-camadas/camadas-mapas-base.d.ts +3 -1
- package/dist/components/ui-camadas/camadas-render.d.ts +15 -0
- package/dist/components/ui-camadas/camadas-renomear.d.ts +12 -0
- package/dist/components/ui-camadas/camadas-selecao-api.d.ts +17 -0
- package/dist/components/ui-camadas/camadas-selecao.d.ts +12 -0
- package/dist/components/ui-camadas/camadas-thumb.d.ts +1 -0
- package/dist/components/ui-camadas/ui-camadas.d.ts +8 -5
- package/dist/components/ui-campo-texto/campo-texto-estados.d.ts +5 -1
- package/dist/components/ui-campo-texto/ui-campo-texto.d.ts +1 -0
- package/dist/components/ui-canvas-cad/cad-acessibilidade.d.ts +21 -0
- package/dist/components/ui-canvas-cad/cad-atributos-sync.d.ts +2 -1
- package/dist/components/ui-canvas-cad/cad-broadcast.d.ts +1 -1
- package/dist/components/ui-canvas-cad/cad-evento-coordenadas.d.ts +22 -0
- package/dist/components/ui-canvas-cad/cad-eventos-canvas.d.ts +3 -8
- package/dist/components/ui-canvas-cad/cad-feicoes-camera.d.ts +26 -0
- package/dist/components/ui-canvas-cad/cad-feicoes-consulta.d.ts +21 -0
- package/dist/components/ui-canvas-cad/cad-feicoes-dados.d.ts +39 -0
- package/dist/components/ui-canvas-cad/cad-feicoes-desenho.d.ts +68 -0
- package/dist/components/ui-canvas-cad/cad-feicoes-edicao.d.ts +37 -0
- package/dist/components/ui-canvas-cad/cad-feicoes-operacoes.d.ts +48 -0
- package/dist/components/ui-canvas-cad/cad-feicoes-ponteiro.d.ts +28 -0
- package/dist/components/ui-canvas-cad/cad-feicoes-selecao-regiao.d.ts +22 -0
- package/dist/components/ui-canvas-cad/cad-feicoes-tipos.d.ts +53 -0
- package/dist/components/ui-canvas-cad/cad-feicoes-versoes.d.ts +33 -0
- package/dist/components/ui-canvas-cad/cad-feicoes.d.ts +39 -106
- package/dist/components/ui-canvas-cad/cad-inicializador.d.ts +3 -1
- package/dist/components/ui-canvas-cad/cad-leaflet-adaptador.d.ts +5 -0
- package/dist/components/ui-canvas-cad/cad-recusas.d.ts +6 -0
- package/dist/components/ui-canvas-cad/cad-selecao-pontos.d.ts +5 -0
- package/dist/components/ui-canvas-cad/tipos.d.ts +37 -0
- package/dist/components/ui-canvas-cad/ui-canvas-cad.d.ts +30 -1
- package/dist/components/ui-card/card-interacao.d.ts +17 -0
- package/dist/components/ui-card/card-secoes.d.ts +10 -0
- package/dist/components/ui-card/ui-card.d.ts +23 -0
- package/dist/components/ui-checkbox/ui-checkbox.d.ts +4 -1
- package/dist/components/ui-cores/tipos.d.ts +2 -0
- package/dist/components/ui-cores/ui-controle-cores.d.ts +8 -3
- package/dist/components/ui-cores/ui-seletor-cor.d.ts +3 -1
- package/dist/components/ui-linha/index.d.ts +1 -0
- package/dist/components/ui-linha/ui-linha.d.ts +48 -0
- package/dist/components/ui-mapa/mapa-atributos.d.ts +14 -0
- package/dist/components/ui-mapa/mapa-basemaps.d.ts +7 -0
- package/dist/components/ui-mapa/mapa-icones.d.ts +4 -0
- package/dist/components/ui-mapa/mapa-leaflet.d.ts +5 -0
- package/dist/components/ui-mapa/mapa-vinculo-pai.d.ts +22 -0
- package/dist/components/ui-mapa/tipos.d.ts +13 -0
- package/dist/components/ui-mapa/ui-mapa-linha.d.ts +12 -5
- package/dist/components/ui-mapa/ui-mapa-marcador.d.ts +15 -6
- package/dist/components/ui-mapa/ui-mapa.d.ts +14 -1
- package/dist/components/ui-modal/modal-acessibilidade.d.ts +5 -5
- package/dist/components/ui-modal/modal-foco.d.ts +28 -0
- package/dist/components/ui-modal/ui-modal.d.ts +1 -11
- package/dist/components/ui-radio/radio-grupo-registry.d.ts +10 -0
- package/dist/components/ui-radio/ui-radio.d.ts +9 -2
- package/dist/components/ui-skeleton/ui-skeleton.d.ts +9 -0
- package/dist/components/ui-switch/ui-switch.d.ts +3 -1
- package/dist/components/ui-tabela/tabela-estados.d.ts +16 -0
- package/dist/components/ui-tabela/tabela-rolagem.d.ts +44 -0
- package/dist/components/ui-tabela/tabela-teclado.d.ts +16 -0
- package/dist/components/ui-tabela/ui-tabela.d.ts +1 -19
- package/dist/components/ui-texto/ui-texto.d.ts +16 -0
- package/dist/components/ui-tooltip/tooltip-popover.d.ts +7 -0
- package/dist/components/ui-tooltip/tooltip-posicionamento.d.ts +29 -0
- package/dist/components/ui-tooltip/ui-tooltip.d.ts +24 -1
- package/dist/core/altura-controle.d.ts +34 -0
- package/dist/core/alvo-digitavel.d.ts +5 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core/opcoes.d.ts +16 -0
- package/dist/core/rotulo-controle.d.ts +13 -0
- package/dist/core.cjs +1 -1
- package/dist/core.js +28 -18
- package/dist/cores.cjs +1 -1
- package/dist/cores.js +9 -8
- package/dist/custom-elements.json +28294 -20127
- package/dist/data.cjs +1 -1
- package/dist/data.js +2 -2
- package/dist/feedback.cjs +1 -1
- package/dist/feedback.js +2 -2
- package/dist/form-validacao-BlQFxUVj.js +104 -0
- package/dist/form-validacao-DIeyQVH5.cjs +1 -0
- package/dist/forms.cjs +1 -1
- package/dist/forms.d.ts +4 -0
- package/dist/forms.js +15 -12
- package/dist/gerencigeo-canvas/canvas_interacao.d.ts +2 -1
- package/dist/gerencigeo-canvas/curva_leaflet.d.ts +2 -2
- package/dist/gerencigeo-canvas/feature_curvas.d.ts +3 -1
- package/dist/gerencigeo-canvas/feature_desenho.d.ts +13 -1
- package/dist/gerencigeo-canvas/feature_desenho_controle.d.ts +3 -0
- package/dist/gerencigeo-canvas/feature_edicao_ops.d.ts +9 -0
- package/dist/gerencigeo-canvas/feature_editor_vertices.d.ts +13 -2
- package/dist/gerencigeo-canvas/feature_lod.d.ts +38 -0
- package/dist/gerencigeo-canvas/feature_popup.d.ts +2 -0
- package/dist/gerencigeo-canvas/feature_simplificacao.d.ts +16 -8
- package/dist/gerencigeo-canvas/index.d.ts +7 -0
- package/dist/gerencigeo-canvas/layer_hit_test.d.ts +22 -0
- package/dist/gerencigeo-canvas/layer_manager.d.ts +5 -0
- package/dist/gerencigeo-canvas/mapa_core.d.ts +10 -0
- package/dist/gerencigeo-canvas/motor/dados-camada.d.ts +39 -0
- package/dist/gerencigeo-canvas/motor/estilo.d.ts +28 -0
- package/dist/gerencigeo-canvas/motor/geometria-px.d.ts +27 -0
- package/dist/gerencigeo-canvas/motor/index.d.ts +5 -0
- package/dist/gerencigeo-canvas/motor/motor-formas.d.ts +107 -0
- package/dist/gerencigeo-canvas/motor/tipos.d.ts +100 -0
- package/dist/gerencigeo-canvas/popup_gate.d.ts +30 -0
- package/dist/gerencigeo-canvas/popup_residual.d.ts +5 -0
- package/dist/gerencigeo-canvas/renderers/canvas_formas_leaflet.d.ts +87 -0
- package/dist/gerencigeo-canvas/renderers/feicoes_canvas_renderer.d.ts +58 -0
- package/dist/gerencigeo-canvas/renderers/feicoes_despachante.d.ts +31 -0
- package/dist/gerencigeo-canvas/renderers/feicoes_renderer.d.ts +48 -9
- package/dist/gerencigeo-canvas/renderers/marcadores_feicoes.d.ts +11 -0
- package/dist/gerencigeo-canvas/renderers/marcas_lod_layer.d.ts +19 -0
- package/dist/gerencigeo-canvas/renderers/renderizador_feicoes_tipos.d.ts +44 -0
- package/dist/gerencigeo-canvas/renderers/renderizador_formas.d.ts +95 -0
- package/dist/gerencigeo-canvas/renderers/selecao_visual.d.ts +6 -0
- package/dist/gerencigeo-canvas/types.d.ts +2 -0
- package/dist/gerencigeo-canvas/zoom_opcoes.d.ts +10 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +7 -0
- package/dist/index.js +196 -189
- package/dist/mapa.cjs +11 -16
- package/dist/mapa.js +242 -170
- package/dist/modal.cjs +1 -1
- package/dist/modal.js +1 -1
- package/dist/motor-BB6tB6U-.cjs +1 -0
- package/dist/motor-CFI84lM2.js +1301 -0
- package/dist/motor.cjs +1 -0
- package/dist/motor.d.ts +7 -0
- package/dist/motor.js +52 -0
- package/dist/opcoes-CupvWVIm.js +24 -0
- package/dist/opcoes-vdAUY5OI.cjs +1 -0
- package/dist/register.cjs +1 -1
- package/dist/register.js +14 -13
- package/dist/tabela.cjs +1 -1
- package/dist/tabela.js +1 -1
- package/dist/tipos-elementos.d.ts +123 -8
- package/dist/tipos-react.d.ts +6 -0
- package/dist/tipos-vue.d.ts +119 -8
- package/dist/tools.cjs +1 -1
- package/dist/tools.js +1 -1
- package/dist/ui-badge-B5J_c5P5.js +197 -0
- package/dist/ui-badge-DC4y6Dik.cjs +28 -0
- package/dist/ui-botao-D24oXySA.cjs +12 -0
- package/dist/ui-botao-Dsj08jjw.js +165 -0
- package/dist/ui-campo-texto-19tIrmBK.js +377 -0
- package/dist/ui-campo-texto-CH8mzX61.cjs +16 -0
- package/dist/ui-card-0wu4rjEX.cjs +20 -0
- package/dist/ui-card-DRtpOo3l.js +143 -0
- package/dist/ui-controle-cores-BEUKOq4n.js +275 -0
- package/dist/ui-controle-cores-BLhrZHMh.cjs +32 -0
- package/dist/ui-kit.css +1 -1
- package/dist/ui-linha-C306zxWG.cjs +19 -0
- package/dist/ui-linha-C_azWkcG.js +517 -0
- package/dist/{ui-modal-DBOtSTbR.js → ui-modal-BkYvNP0G.js} +116 -140
- package/dist/ui-modal-CUNbpbZ1.cjs +18 -0
- package/dist/{ui-paleta-ferramentas-DbwdWVtT.js → ui-paleta-ferramentas-BXXrI1Y7.js} +491 -431
- package/dist/ui-paleta-ferramentas-CsPMTY0G.cjs +21 -0
- package/dist/ui-seletor-cor-2yGryC_Z.cjs +86 -0
- package/dist/ui-seletor-cor-BuyhoDZz.js +345 -0
- package/dist/{ui-skeleton-W9uwIceA.js → ui-skeleton-B2Rgrv8o.js} +254 -191
- package/dist/{ui-skeleton-SPYqku8P.cjs → ui-skeleton-DiOxTBZK.cjs} +10 -10
- package/dist/ui-switch-BL-x_-SM.js +1202 -0
- package/dist/ui-switch-C0i_3QXu.cjs +66 -0
- package/dist/{ui-tabela-propriedades-C-PeuW1i.cjs → ui-tabela-propriedades-CjK2gG14.cjs} +10 -10
- package/dist/{ui-tabela-propriedades-BokvDD3b.js → ui-tabela-propriedades-DoL4SE0r.js} +845 -826
- package/package.json +8 -3
- package/dist/form-validacao-BIOXxt-1.js +0 -140
- package/dist/form-validacao-ytRYSF3E.cjs +0 -1
- package/dist/svg-seguro-BsbNQqpd.js +0 -50
- package/dist/svg-seguro-C76iLlAZ.cjs +0 -1
- package/dist/ui-badge-BxT-sDmV.cjs +0 -28
- package/dist/ui-badge-C0eKBI8E.js +0 -183
- package/dist/ui-botao-BOOnP8ds.cjs +0 -12
- package/dist/ui-botao-DfqSivHl.js +0 -165
- package/dist/ui-botao-OGJV6Vfk.js +0 -165
- package/dist/ui-botao-psS1juof.cjs +0 -12
- package/dist/ui-campo-texto-Cnn2UAkS.cjs +0 -16
- package/dist/ui-campo-texto-Uu2dJE_0.js +0 -379
- package/dist/ui-card-B86lJXTP.cjs +0 -20
- package/dist/ui-card-C_o5_0cB.js +0 -111
- package/dist/ui-controle-cores-BS0WYPdi.js +0 -572
- package/dist/ui-controle-cores-Er6ZcQ7U.cjs +0 -111
- package/dist/ui-modal-CvGFGh1h.cjs +0 -18
- package/dist/ui-paleta-ferramentas-CEZYcN4J.js +0 -624
- package/dist/ui-paleta-ferramentas-CU4icLl0.js +0 -1171
- package/dist/ui-paleta-ferramentas-Ccmo-rB5.cjs +0 -21
- package/dist/ui-paleta-ferramentas-DLwZHIDv.cjs +0 -21
- package/dist/ui-paleta-ferramentas-DNN5i6nL.js +0 -860
- package/dist/ui-paleta-ferramentas-Dbj1kBS9.cjs +0 -18
- package/dist/ui-paleta-ferramentas-bvqxj1Yd.cjs +0 -21
- package/dist/ui-segmented-D6b6zxVs.cjs +0 -19
- package/dist/ui-segmented-DyF5YLsV.js +0 -418
- package/dist/ui-segmented-rn9RxRGM.cjs +0 -19
- package/dist/ui-segmented-wUraId2e.js +0 -412
- package/dist/ui-skeleton-DI4_9WOX.js +0 -428
- package/dist/ui-skeleton-elhKIh2B.cjs +0 -33
- package/dist/ui-switch-BcOqOkiV.js +0 -856
- package/dist/ui-switch-D7iPKDj-.cjs +0 -53
- package/dist/ui-tabela-propriedades-BBr5sqki.cjs +0 -145
- package/dist/ui-tabela-propriedades-BecPqC-e.cjs +0 -141
- package/dist/ui-tabela-propriedades-Boy7I5yW.js +0 -2412
- package/dist/ui-tabela-propriedades-Df9ajC6M.js +0 -2648
- package/dist/ui-toast-Bp_NlM5G.js +0 -156
- package/dist/ui-toast-DGTZKne5.cjs +0 -20
- package/dist/zero-js-triggers-C_KrvFOQ.js +0 -244
- package/dist/zero-js-triggers-C_gtaojZ.cjs +0 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
var J = Object.defineProperty;
|
|
2
|
-
var Q = (
|
|
3
|
-
var
|
|
2
|
+
var Q = (o, s, t) => s in o ? J(o, s, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[s] = t;
|
|
3
|
+
var d = (o, s, t) => Q(o, typeof s != "symbol" ? s + "" : s, t);
|
|
4
4
|
import { L as M } from "./listener-bag-DQgv7OON.js";
|
|
5
|
-
import { d as
|
|
5
|
+
import { d as N, S as $ } from "./ssr-safe-5cWfJP-s.js";
|
|
6
6
|
import { h as Z } from "./svg-seguro-ChVJ2L2z.js";
|
|
7
7
|
const tt = ':host{display:inline-flex;align-items:center;justify-content:center;vertical-align:middle;line-height:1;color:inherit;flex-shrink:0;width:var(--ui-tamanho-icone, 20px);height:var(--ui-tamanho-icone, 20px);box-sizing:border-box}.ui-icone{display:inline-flex;align-items:center;justify-content:center;width:100%;height:100%;color:inherit;font-size:var(--ui-tamanho-icone, 20px)}::slotted(svg),.ui-icone svg{width:100%!important;height:100%!important;display:block;shape-rendering:geometricPrecision}:host([cor="primaria"]),:host([color="primaria"]){color:var(--ui-cor-primaria, #00E08A)}:host([cor="secundaria"]),:host([color="secundaria"]){color:var(--ui-cor-texto-secundario, #888899)}:host([cor="erro"]),:host([color="erro"]){color:var(--ui-cor-texto-erro, #ff5555)}:host([cor="sucesso"]),:host([color="sucesso"]){color:var(--ui-cor-texto-sucesso, #00E08A)}:host([cor="alerta"]),:host([color="alerta"]){color:var(--ui-cor-texto-alerta, #ffb86c)}', G = {
|
|
8
8
|
search: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"></circle><line x1="21" y1="21" x2="16.65" y2="16.65"></line></svg>',
|
|
@@ -16,13 +16,13 @@ const tt = ':host{display:inline-flex;align-items:center;justify-content:center;
|
|
|
16
16
|
alert: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle><line x1="12" y1="8" x2="12" y2="12"></line><line x1="12" y1="16" x2="12.01" y2="16"></line></svg>',
|
|
17
17
|
close: '<svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><line x1="18" y1="6" x2="6" y2="18"></line><line x1="6" y1="6" x2="18" y2="18"></line></svg>'
|
|
18
18
|
};
|
|
19
|
-
class et extends
|
|
19
|
+
class et extends $ {
|
|
20
20
|
constructor() {
|
|
21
21
|
super();
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
d(this, "iconContainer");
|
|
23
|
+
d(this, "svgContainer");
|
|
24
|
+
d(this, "slotElement");
|
|
25
|
+
d(this, "handleSlotChange", () => {
|
|
26
26
|
this.syncState();
|
|
27
27
|
});
|
|
28
28
|
const t = this.attachShadow({ mode: "open" });
|
|
@@ -70,54 +70,54 @@ class et extends q {
|
|
|
70
70
|
r && G[r] && !a ? (this.svgContainer.innerHTML = G[r], this.svgContainer.style.display = "inline-flex") : (this.svgContainer.innerHTML = "", this.svgContainer.style.display = "none");
|
|
71
71
|
}
|
|
72
72
|
}
|
|
73
|
-
|
|
74
|
-
const it = ':host{display:block;position:relative;box-sizing:border-box;min-height:122px;font-family:var(--ui-fonte-base, "Inter", sans-serif);color:var(--ui-cor-texto, #e1e1e6)}:host([recolhido]){min-height:31px}.ui-ribbon{display:flex;flex-direction:column;background:var(--ui-cor-superficie, #141417);border-bottom:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));-webkit-user-select:none;user-select:none}.ui-ribbon__cabecalho{display:flex;align-items:stretch;height:30px;box-sizing:border-box;box-shadow:inset 0 -1px 0 var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-ribbon__abas{display:flex;flex:1;min-width:0;align-items:flex-end;gap:2px;padding:0 8px;box-sizing:border-box;overflow-x:auto;scrollbar-width:none;background:linear-gradient(to right,var(--ui-cor-superficie, #141417) 20px,transparent) left top / 28px calc(100% - 1px) no-repeat local,linear-gradient(to left,var(--ui-cor-superficie, #141417) 20px,transparent) right top / 28px calc(100% - 1px) no-repeat local,linear-gradient(to right,rgba(0,0,0,.35),transparent) left top / 14px calc(100% - 1px) no-repeat scroll,linear-gradient(to left,rgba(0,0,0,.35),transparent) right top / 14px calc(100% - 1px) no-repeat scroll}.ui-ribbon__abas::-webkit-scrollbar{display:none}.ui-ribbon__aba{position:relative;flex-shrink:0;height:28px;margin-bottom:1px;padding:0 14px;border:0;border-radius:6px 6px 0 0;background:transparent;color:var(--ui-cor-texto-secundario, #888899);font:inherit;font-size:.75rem;font-weight:600;white-space:nowrap;cursor:pointer;transition:background-color .12s ease,color .12s ease}.ui-ribbon__aba:hover{color:var(--ui-cor-texto, #e1e1e6);background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-ribbon__aba:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:-2px}.ui-ribbon__aba--ativa,.ui-ribbon__aba--ativa:hover{height:30px;margin-bottom:0;color:var(--ui-cor-texto, #e1e1e6);background:var(--ui-cor-fundo-elevado, #1a1a1e);box-shadow:inset 1px 0 0 var(--ui-cor-borda, rgba(255, 255, 255, .12)),inset -1px 0 0 var(--ui-cor-borda, rgba(255, 255, 255, .12)),inset 0 1px 0 var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-ribbon__aba--ativa:after{content:"";position:absolute;inset-inline:8px;bottom:1px;height:2px;border-radius:2px 2px 0 0;background:var(--ui-cor-primaria, #00E08A)}.ui-ribbon__aba--contextual{color:var(--ui-cor-primaria, #00E08A)}.ui-ribbon__aba--contextual:before{content:"";position:absolute;inset-inline:0;top:0;height:2px;border-radius:6px 6px 0 0;background:var(--ui-cor-primaria, #00E08A)}.ui-ribbon__fixar{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;align-self:center;width:28px;height:24px;margin-inline:2px 6px;padding:0;border:0;border-radius:var(--ui-raio-sm, 4px);background:transparent;color:var(--ui-cor-texto-secundario, #888899);cursor:pointer}.ui-ribbon__fixar:hover{color:var(--ui-cor-texto, #e1e1e6);background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-ribbon__fixar:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:-2px}.ui-ribbon__fixar:before{content:"";width:6px;height:6px;border:solid currentColor;border-width:2px 0 0 2px;transform:translateY(2px) rotate(45deg)}:host([recolhido]) .ui-ribbon__fixar:before{transform:translateY(-2px) rotate(225deg)}.ui-ribbon__painel{background:var(--ui-cor-fundo-elevado, #1a1a1e);overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--ui-cor-borda, rgba(255, 255, 255, .2)) transparent}.ui-ribbon__grupos{display:flex;align-items:stretch;width:max-content;min-width:100%;min-height:92px;padding:4px 8px;box-sizing:border-box}.ui-ribbon__grupo{display:flex;flex-direction:column;justify-content:center;flex-shrink:0;padding:0 var(--ui-espaco-sm, 8px);border-inline-end:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-ribbon__grupo:last-child{border-inline-end:0}.ui-ribbon__grupo-itens{display:flex;flex:1;align-items:center;gap:var(--ui-espaco-xs, 4px)}.ui-ribbon__grupo-rotulo{position:relative;display:flex;align-items:center;justify-content:center;padding:3px 0 1px;color:var(--ui-cor-texto-secundario, #888899);font-size:.6875rem;line-height:1.2;text-align:center;white-space:nowrap}.ui-ribbon__grupo-rotulo:empty{display:none;padding:0}.ui-ribbon__lancador{position:absolute;right:0;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;padding:0;border:0;background:transparent;color:var(--ui-cor-texto-secundario, #888899);cursor:pointer;border-radius:2px;opacity:.7}[dir=rtl] .ui-ribbon__lancador{right:auto;left:0}.ui-ribbon__lancador:hover{opacity:1;color:var(--ui-cor-texto, #e1e1e6);background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-ribbon__lancador:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:-1px}.ui-ribbon__grupo--colapsado{padding:0 4px;justify-content:center}.ui-ribbon__btn-colapsado{height:calc(100% - 6px);margin:3px 0}.ui-ribbon__keytip{position:absolute;z-index:100;padding:1px 4px;font-size:.625rem;font-weight:700;line-height:1;color:#111;background:#fef08a;border:1px solid #ca8a04;border-radius:2px;box-shadow:0 1px 3px #0006;pointer-events:none}.ui-ribbon__coluna{display:flex;flex-direction:column;justify-content:center;gap:2px}.ui-ribbon__separador{width:1px;height:68px;align-self:center;margin:0 var(--ui-espaco-xs, 4px);background:var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-ferr-btn--grande{flex-direction:column;min-width:52px;height:76px;padding:6px 8px;gap:3px;box-sizing:border-box;border-radius:var(--ui-raio-borda, 6px);justify-content:center;align-items:center}.ui-ferr-btn--grande .ui-ferr-btn__rotulo{max-width:72px;white-space:normal;text-align:center;line-height:1.15;overflow-wrap:anywhere}.ui-ferr-btn--pequeno{height:24px;padding:0 8px;border-radius:var(--ui-raio-sm, 4px);justify-content:flex-start;box-sizing:border-box}.ui-ferr-btn--pequeno.ui-ferr-btn--so-icone{width:24px;padding:0;justify-content:center}.ui-ferr-split--pequeno{border-radius:var(--ui-raio-sm, 4px)}.ui-ferr-split--pequeno .ui-ferr-split__acao{border-radius:var(--ui-raio-sm, 4px) 0 0 var(--ui-raio-sm, 4px);padding:0 6px 0 8px}.ui-ferr-split--pequeno .ui-ferr-split__gatilho{border-radius:0 var(--ui-raio-sm, 4px) var(--ui-raio-sm, 4px) 0}.ui-ribbon__grupos .ui-ferr-btn:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:-2px;box-shadow:none}:host([recolhido]) .ui-ribbon__painel{display:none;position:absolute;top:100%;inset-inline:0;z-index:var(--ui-z-docked-bar, 600);border-bottom:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));box-shadow:var(--ui-sombra-lg, 0 8px 24px rgba(0, 0, 0, .35))}:host([recolhido]) .ui-ribbon--aberto .ui-ribbon__painel{display:block}:host([recolhido]) .ui-ribbon__aba--ativa:after{display:none}:host([compacto]) .ui-ribbon__grupos{min-height:0;padding-block:2px}:host([compacto]) .ui-ribbon__grupo-rotulo{display:none}:host([compacto]) .ui-ferr-btn--grande{min-width:44px}@media (max-width: 720px){.ui-ferr-btn--pequeno:has(.ui-ferr-btn__icone) .ui-ferr-btn__rotulo{display:none}.ui-ferr-btn--pequeno:has(.ui-ferr-btn__icone){min-width:28px;justify-content:center;padding:0 4px}}@media (pointer: coarse){.ui-ribbon__cabecalho{height:38px}.ui-ribbon__aba{height:36px}.ui-ribbon__aba--ativa,.ui-ribbon__aba--ativa:hover{height:38px}.ui-ferr-btn--pequeno{height:32px}.ui-ferr-btn--pequeno.ui-ferr-btn--so-icone{width:32px}.ui-ribbon__fixar{width:36px;height:32px}}@media (prefers-reduced-motion: reduce){.ui-ribbon__aba{transition:none}}@media (forced-colors: active){.ui-ribbon__aba--ativa:after,.ui-ribbon__aba--contextual:before{background:Highlight;forced-color-adjust:none}.ui-ribbon__aba--ativa,.ui-ribbon__aba--ativa:hover{box-shadow:none;border:1px solid CanvasText;border-bottom-color:Canvas}.ui-ribbon__aba:focus-visible,.ui-ribbon__fixar:focus-visible,.ui-ribbon__grupos .ui-ferr-btn:focus-visible{outline-color:Highlight}}', K = '.ui-ferr-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;padding:0;border:1px solid transparent;border-radius:var(--ui-raio-borda, 6px);background:transparent;color:var(--ui-cor-texto, #e1e1e6);font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:.75rem;line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color .12s ease,border-color .12s ease,color .12s ease}.ui-ferr-btn:hover:not(:disabled){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-ferr-btn:active:not(:disabled){background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 14%,transparent)}.ui-ferr-btn:focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px var(--ui-cor-fundo, #0b0b0d),0 0 0 4px var(--ui-cor-primaria, #00E08A)}.ui-ferr-btn:disabled{opacity:.4;cursor:not-allowed}.ui-ferr-btn--ativo{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 18%,transparent);border-color:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 55%,transparent)}.ui-ferr-btn.ui-ferr-btn--ativo:hover:not(:disabled){background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 28%,transparent)}.ui-ferr-btn.ui-ferr-btn--ativo:active:not(:disabled){background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 36%,transparent)}.ui-ferr-btn.ui-ferr-btn--ativo:disabled{background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08));border-color:var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-ferr-btn__icone{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.ui-ferr-btn__rotulo{white-space:nowrap}.ui-ferr-btn__caret{width:0;height:0;flex-shrink:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid currentColor;opacity:.7}.ui-ferr-menu{position:fixed;z-index:var(--ui-z-popover, 1050);display:flex;flex-direction:column;gap:1px;min-width:180px;max-height:calc(100vh - 8px);overflow-y:auto;padding:4px;box-sizing:border-box;background:var(--ui-cor-fundo-menu, #18181c);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:var(--ui-raio-borda, 6px);box-shadow:var(--ui-sombra-lg, 0 8px 24px rgba(0, 0, 0, .35));font-family:var(--ui-fonte-base, "Inter", sans-serif);color:var(--ui-cor-texto, #e1e1e6)}.ui-ferr-menu__item{position:relative;display:flex;align-items:center;gap:8px;width:100%;height:28px;padding:0 8px;box-sizing:border-box;border:0;border-radius:var(--ui-raio-sm, 4px);background:transparent;color:inherit;font:inherit;font-size:.75rem;text-align:start;cursor:pointer}.ui-ferr-menu__item:hover:not(:disabled){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-ferr-menu__item:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:-2px;background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-ferr-menu__item:disabled{opacity:.4;cursor:not-allowed}.ui-ferr-menu__item--ativo,.ui-ferr-menu__item[aria-checked=true]{color:var(--ui-cor-primaria, #00E08A);font-weight:600}.ui-ferr-menu__item--ativo:after,.ui-ferr-menu__item[aria-checked=true]:after{content:"";flex-shrink:0;width:4px;height:8px;margin-inline-start:4px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-1px)}.ui-ferr-menu__icone{display:inline-flex;width:16px;justify-content:center}.ui-ferr-menu__rotulo{flex:1}.ui-ferr-menu__atalho{margin-inline-start:16px;color:var(--ui-cor-texto-secundario, #888899);font-size:.6875rem;font-variant-numeric:tabular-nums}.ui-ferr-menu__sep{height:1px;margin:3px 2px;background:var(--ui-cor-borda, rgba(255, 255, 255, .12))}@media (pointer: coarse){.ui-ferr-menu__item{height:36px}}@media (prefers-reduced-motion: reduce){.ui-ferr-btn{transition:none}}.ui-ferr-tooltip{position:fixed;z-index:var(--ui-z-tooltip, 1200);pointer-events:none;display:none;align-items:center;gap:6px;padding:4px 8px;border-radius:var(--ui-raio-sm, 4px);background:var(--ui-cor-fundo-tooltip, #18181c);color:var(--ui-cor-texto, #e1e1e6);font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:.6875rem;line-height:1.2;white-space:nowrap;border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16));box-shadow:var(--ui-sombra-md, 0 4px 12px rgba(0, 0, 0, .35));opacity:0;transform:translateY(-2px);transition:opacity .12s ease,transform .12s ease}.ui-ferr-tooltip--visivel{display:inline-flex;opacity:1;transform:translateY(0)}.ui-ferr-tooltip__atalho{display:inline-flex;align-items:center;padding:1px 4px;border-radius:3px;background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08));color:var(--ui-cor-texto-secundario, #888899);font-family:inherit;font-size:.625rem;font-weight:600;border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08))}.ui-ferr-split{display:inline-flex;align-items:stretch;border-radius:var(--ui-raio-borda, 6px);position:relative}.ui-ferr-split--grande{flex-direction:column}.ui-ferr-split--grande .ui-ferr-split__acao{border-bottom-left-radius:0;border-bottom-right-radius:0}.ui-ferr-split--grande .ui-ferr-split__gatilho{height:16px;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-top:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));padding:0;justify-content:center}.ui-ferr-split--pequeno{flex-direction:row}.ui-ferr-split--pequeno .ui-ferr-split__acao{border-top-right-radius:0;border-bottom-right-radius:0}.ui-ferr-split--pequeno .ui-ferr-split__gatilho{width:16px;height:24px;padding:0;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));justify-content:center}.ui-ferr-split:hover:not(:has(:disabled)){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .04))}.ui-ferr-menu__caret-sub{width:0;height:0;margin-inline-start:auto;border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:4px solid currentColor;opacity:.7}[dir=rtl] .ui-ferr-menu__caret-sub{border-left:0;border-right:4px solid currentColor}@media (forced-colors: active){.ui-ferr-btn:focus-visible,.ui-ferr-menu__item:focus-visible{outline:2px solid Highlight}.ui-ferr-btn--ativo{background:Highlight;color:HighlightText;border-color:ButtonText;forced-color-adjust:none}.ui-ferr-btn:disabled,.ui-ferr-menu__item:disabled{opacity:1;color:GrayText}.ui-ferr-menu{border-color:CanvasText}.ui-ferr-menu__item:hover:not(:disabled){background:Highlight;color:HighlightText}}';
|
|
75
|
-
function
|
|
76
|
-
if (!
|
|
73
|
+
N("ui-icone", et);
|
|
74
|
+
const it = ':host{display:block;position:relative;box-sizing:border-box;min-height:122px;font-family:var(--ui-fonte-base, "Inter", sans-serif);color:var(--ui-cor-texto, #e1e1e6)}:host([recolhido]){min-height:31px}.ui-ribbon{display:flex;flex-direction:column;background:var(--ui-cor-superficie, #141417);border-bottom:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));-webkit-user-select:none;user-select:none}.ui-ribbon__cabecalho{display:flex;align-items:stretch;height:30px;box-sizing:border-box;box-shadow:inset 0 -1px 0 var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-ribbon__abas{display:flex;flex:1;min-width:0;align-items:flex-end;gap:2px;padding:0 8px;box-sizing:border-box;overflow-x:auto;scrollbar-width:none;background:linear-gradient(to right,var(--ui-cor-superficie, #141417) 20px,transparent) left top / 28px calc(100% - 1px) no-repeat local,linear-gradient(to left,var(--ui-cor-superficie, #141417) 20px,transparent) right top / 28px calc(100% - 1px) no-repeat local,linear-gradient(to right,rgba(0,0,0,.35),transparent) left top / 14px calc(100% - 1px) no-repeat scroll,linear-gradient(to left,rgba(0,0,0,.35),transparent) right top / 14px calc(100% - 1px) no-repeat scroll}.ui-ribbon__abas::-webkit-scrollbar{display:none}.ui-ribbon__aba{position:relative;flex-shrink:0;height:28px;margin-bottom:1px;padding:0 14px;border:0;border-radius:6px 6px 0 0;background:transparent;color:var(--ui-cor-texto-secundario, #888899);font:inherit;font-size:.75rem;font-weight:600;white-space:nowrap;cursor:pointer;transition:background-color .12s ease,color .12s ease}.ui-ribbon__aba:hover{color:var(--ui-cor-texto, #e1e1e6);background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-ribbon__aba:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:-2px}.ui-ribbon__aba--ativa,.ui-ribbon__aba--ativa:hover{height:30px;margin-bottom:0;color:var(--ui-cor-texto, #e1e1e6);background:var(--ui-cor-fundo-elevado, #1a1a1e);box-shadow:inset 1px 0 0 var(--ui-cor-borda, rgba(255, 255, 255, .12)),inset -1px 0 0 var(--ui-cor-borda, rgba(255, 255, 255, .12)),inset 0 1px 0 var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-ribbon__aba--ativa:after{content:"";position:absolute;inset-inline:8px;bottom:1px;height:2px;border-radius:2px 2px 0 0;background:var(--ui-cor-primaria, #00E08A)}.ui-ribbon__aba--contextual{color:var(--ui-cor-primaria, #00E08A)}.ui-ribbon__aba--contextual:before{content:"";position:absolute;inset-inline:0;top:0;height:2px;border-radius:6px 6px 0 0;background:var(--ui-cor-primaria, #00E08A)}.ui-ribbon__fixar{display:inline-flex;flex-shrink:0;align-items:center;justify-content:center;align-self:center;width:28px;height:24px;margin-inline:2px 6px;padding:0;border:0;border-radius:var(--ui-raio-sm, 4px);background:transparent;color:var(--ui-cor-texto-secundario, #888899);cursor:pointer}.ui-ribbon__fixar:hover{color:var(--ui-cor-texto, #e1e1e6);background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-ribbon__fixar:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:-2px}.ui-ribbon__fixar:before{content:"";width:6px;height:6px;border:solid currentColor;border-width:2px 0 0 2px;transform:translateY(2px) rotate(45deg)}:host([recolhido]) .ui-ribbon__fixar:before{transform:translateY(-2px) rotate(225deg)}.ui-ribbon__painel{background:var(--ui-cor-fundo-elevado, #1a1a1e);overflow-x:auto;scrollbar-width:thin;scrollbar-color:var(--ui-cor-borda, rgba(255, 255, 255, .2)) transparent}.ui-ribbon__grupos{display:flex;align-items:stretch;width:max-content;min-width:100%;min-height:92px;padding:4px 8px;box-sizing:border-box}.ui-ribbon__grupo{display:flex;flex-direction:column;justify-content:center;flex-shrink:0;padding:0 var(--ui-espaco-sm, 8px);border-inline-end:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-ribbon__grupo:last-child{border-inline-end:0}.ui-ribbon__grupo-itens{display:flex;flex:1;align-items:center;gap:var(--ui-espaco-xs, 4px)}.ui-ribbon__grupo-rotulo{position:relative;display:flex;align-items:center;justify-content:center;padding:3px 0 1px;color:var(--ui-cor-texto-secundario, #888899);font-size:.6875rem;line-height:1.2;text-align:center;white-space:nowrap}.ui-ribbon__grupo-rotulo:empty{display:none;padding:0}.ui-ribbon__lancador{position:absolute;right:0;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:14px;height:14px;padding:0;border:0;background:transparent;color:var(--ui-cor-texto-secundario, #888899);cursor:pointer;border-radius:2px;opacity:.7}[dir=rtl] .ui-ribbon__lancador{right:auto;left:0}.ui-ribbon__lancador:hover{opacity:1;color:var(--ui-cor-texto, #e1e1e6);background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-ribbon__lancador:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:-1px}.ui-ribbon__grupo--colapsado{padding:0 4px;justify-content:center}.ui-ribbon__btn-colapsado{height:calc(100% - 6px);margin:3px 0}.ui-ribbon__keytip{position:absolute;z-index:100;padding:1px 4px;font-size:.625rem;font-weight:700;line-height:1;color:#111;background:#fef08a;border:1px solid #ca8a04;border-radius:2px;box-shadow:0 1px 3px #0006;pointer-events:none}.ui-ribbon__coluna{display:flex;flex-direction:column;justify-content:center;gap:2px}.ui-ribbon__separador{width:1px;height:68px;align-self:center;margin:0 var(--ui-espaco-xs, 4px);background:var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-ferr-btn--grande{flex-direction:column;min-width:52px;height:76px;padding:6px 8px;gap:3px;box-sizing:border-box;border-radius:var(--ui-raio-borda, 6px);justify-content:center;align-items:center}.ui-ferr-btn--grande .ui-ferr-btn__rotulo{max-width:72px;white-space:normal;text-align:center;line-height:1.15;overflow-wrap:anywhere}.ui-ferr-btn--pequeno{height:24px;padding:0 8px;border-radius:var(--ui-raio-sm, 4px);justify-content:flex-start;box-sizing:border-box}.ui-ferr-btn--pequeno.ui-ferr-btn--so-icone{width:24px;padding:0;justify-content:center}.ui-ferr-split--pequeno{border-radius:var(--ui-raio-sm, 4px)}.ui-ferr-split--pequeno .ui-ferr-split__acao{border-radius:var(--ui-raio-sm, 4px) 0 0 var(--ui-raio-sm, 4px);padding:0 6px 0 8px}.ui-ferr-split--pequeno .ui-ferr-split__gatilho{border-radius:0 var(--ui-raio-sm, 4px) var(--ui-raio-sm, 4px) 0}.ui-ribbon__grupos .ui-ferr-btn:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:-2px;box-shadow:none}:host([recolhido]) .ui-ribbon__painel{display:none;position:absolute;top:100%;inset-inline:0;z-index:var(--ui-z-docked-bar, 600);border-bottom:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));box-shadow:var(--ui-sombra-lg, 0 8px 24px rgba(0, 0, 0, .35))}:host([recolhido]) .ui-ribbon--aberto .ui-ribbon__painel{display:block}:host([recolhido]) .ui-ribbon__aba--ativa:after{display:none}:host([compacto]) .ui-ribbon__grupos{min-height:0;padding-block:2px}:host([compacto]) .ui-ribbon__grupo-rotulo{display:none}:host([compacto]) .ui-ferr-btn--grande{min-width:44px}@media (max-width: 720px){.ui-ferr-btn--pequeno:has(.ui-ferr-btn__icone) .ui-ferr-btn__rotulo{display:none}.ui-ferr-btn--pequeno:has(.ui-ferr-btn__icone){min-width:28px;justify-content:center;padding:0 4px}}@media (pointer: coarse){.ui-ribbon__cabecalho{height:38px}.ui-ribbon__aba{height:36px}.ui-ribbon__aba--ativa,.ui-ribbon__aba--ativa:hover{height:38px}.ui-ferr-btn--pequeno{height:32px}.ui-ferr-btn--pequeno.ui-ferr-btn--so-icone{width:32px}.ui-ribbon__fixar{width:36px;height:32px}}@media (prefers-reduced-motion: reduce){.ui-ribbon__aba{transition:none}}@media (forced-colors: active){.ui-ribbon__aba--ativa:after,.ui-ribbon__aba--contextual:before{background:Highlight;forced-color-adjust:none}.ui-ribbon__aba--ativa,.ui-ribbon__aba--ativa:hover{box-shadow:none;border:1px solid CanvasText;border-bottom-color:Canvas}.ui-ribbon__aba:focus-visible,.ui-ribbon__fixar:focus-visible,.ui-ribbon__grupos .ui-ferr-btn:focus-visible{outline-color:Highlight}}', V = '.ui-ferr-btn{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:4px;box-sizing:border-box;padding:0;border:1px solid transparent;border-radius:var(--ui-raio-borda, 6px);background:transparent;color:var(--ui-cor-texto, #e1e1e6);font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:.75rem;line-height:1;cursor:pointer;-webkit-user-select:none;user-select:none;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:background-color .12s ease,border-color .12s ease,color .12s ease}.ui-ferr-btn:hover:not(:disabled){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-ferr-btn:active:not(:disabled){background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 14%,transparent)}.ui-ferr-btn:focus-visible{outline:2px solid transparent;outline-offset:2px;box-shadow:0 0 0 2px var(--ui-cor-fundo, #0b0b0d),0 0 0 4px var(--ui-cor-primaria, #00E08A)}.ui-ferr-btn:disabled{opacity:.4;cursor:not-allowed}.ui-ferr-btn--ativo{background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 18%,transparent);border-color:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 55%,transparent)}.ui-ferr-btn.ui-ferr-btn--ativo:hover:not(:disabled){background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 28%,transparent)}.ui-ferr-btn.ui-ferr-btn--ativo:active:not(:disabled){background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 36%,transparent)}.ui-ferr-btn.ui-ferr-btn--ativo:disabled{background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08));border-color:var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-ferr-btn__icone{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.ui-ferr-btn__rotulo{white-space:nowrap}.ui-ferr-btn__caret{width:0;height:0;flex-shrink:0;border-left:3px solid transparent;border-right:3px solid transparent;border-top:4px solid currentColor;opacity:.7}.ui-ferr-menu{position:fixed;z-index:var(--ui-z-popover, 1050);display:flex;flex-direction:column;gap:1px;min-width:180px;max-height:calc(100vh - 8px);overflow-y:auto;padding:4px;box-sizing:border-box;background:var(--ui-cor-fundo-menu, #18181c);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:var(--ui-raio-borda, 6px);box-shadow:var(--ui-sombra-lg, 0 8px 24px rgba(0, 0, 0, .35));font-family:var(--ui-fonte-base, "Inter", sans-serif);color:var(--ui-cor-texto, #e1e1e6)}.ui-ferr-menu__item{position:relative;display:flex;align-items:center;gap:8px;width:100%;height:28px;padding:0 8px;box-sizing:border-box;border:0;border-radius:var(--ui-raio-sm, 4px);background:transparent;color:inherit;font:inherit;font-size:.75rem;text-align:start;cursor:pointer}.ui-ferr-menu__item:hover:not(:disabled){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-ferr-menu__item:focus-visible{outline:2px solid var(--ui-cor-primaria, #00E08A);outline-offset:-2px;background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08))}.ui-ferr-menu__item:disabled{opacity:.4;cursor:not-allowed}.ui-ferr-menu__item--ativo,.ui-ferr-menu__item[aria-checked=true]{color:var(--ui-cor-primaria, #00E08A);font-weight:600}.ui-ferr-menu__item--ativo:after,.ui-ferr-menu__item[aria-checked=true]:after{content:"";flex-shrink:0;width:4px;height:8px;margin-inline-start:4px;border:solid currentColor;border-width:0 2px 2px 0;transform:rotate(45deg) translateY(-1px)}.ui-ferr-menu__icone{display:inline-flex;width:16px;justify-content:center}.ui-ferr-menu__rotulo{flex:1}.ui-ferr-menu__atalho{margin-inline-start:16px;color:var(--ui-cor-texto-secundario, #888899);font-size:.6875rem;font-variant-numeric:tabular-nums}.ui-ferr-menu__sep{height:1px;margin:3px 2px;background:var(--ui-cor-borda, rgba(255, 255, 255, .12))}@media (pointer: coarse){.ui-ferr-menu__item{height:36px}}@media (prefers-reduced-motion: reduce){.ui-ferr-btn{transition:none}}.ui-ferr-tooltip{position:fixed;z-index:var(--ui-z-tooltip, 1200);pointer-events:none;display:none;align-items:center;gap:6px;padding:4px 8px;border-radius:var(--ui-raio-sm, 4px);background:var(--ui-cor-fundo-tooltip, #18181c);color:var(--ui-cor-texto, #e1e1e6);font-family:var(--ui-fonte-base, "Inter", sans-serif);font-size:.6875rem;line-height:1.2;white-space:nowrap;border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .16));box-shadow:var(--ui-sombra-md, 0 4px 12px rgba(0, 0, 0, .35));opacity:0;transform:translateY(-2px);transition:opacity .12s ease,transform .12s ease}.ui-ferr-tooltip--visivel{display:inline-flex;opacity:1;transform:translateY(0)}.ui-ferr-tooltip__atalho{display:inline-flex;align-items:center;padding:1px 4px;border-radius:3px;background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08));color:var(--ui-cor-texto-secundario, #888899);font-family:inherit;font-size:.625rem;font-weight:600;border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08))}.ui-ferr-split{display:inline-flex;align-items:stretch;border-radius:var(--ui-raio-borda, 6px);position:relative}.ui-ferr-split--grande{flex-direction:column}.ui-ferr-split--grande .ui-ferr-split__acao{border-bottom-left-radius:0;border-bottom-right-radius:0}.ui-ferr-split--grande .ui-ferr-split__gatilho{height:16px;width:100%;border-top-left-radius:0;border-top-right-radius:0;border-top:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));padding:0;justify-content:center}.ui-ferr-split--pequeno{flex-direction:row}.ui-ferr-split--pequeno .ui-ferr-split__acao{border-top-right-radius:0;border-bottom-right-radius:0}.ui-ferr-split--pequeno .ui-ferr-split__gatilho{width:16px;height:24px;padding:0;border-top-left-radius:0;border-bottom-left-radius:0;border-left:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .08));justify-content:center}.ui-ferr-split:hover:not(:has(:disabled)){background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .04))}.ui-ferr-menu__caret-sub{width:0;height:0;margin-inline-start:auto;border-top:4px solid transparent;border-bottom:4px solid transparent;border-left:4px solid currentColor;opacity:.7}[dir=rtl] .ui-ferr-menu__caret-sub{border-left:0;border-right:4px solid currentColor}@media (forced-colors: active){.ui-ferr-btn:focus-visible,.ui-ferr-menu__item:focus-visible{outline:2px solid Highlight}.ui-ferr-btn--ativo{background:Highlight;color:HighlightText;border-color:ButtonText;forced-color-adjust:none}.ui-ferr-btn:disabled,.ui-ferr-menu__item:disabled{opacity:1;color:GrayText}.ui-ferr-menu{border-color:CanvasText}.ui-ferr-menu__item:hover:not(:disabled){background:Highlight;color:HighlightText}}';
|
|
75
|
+
function k(o, s) {
|
|
76
|
+
if (!o) return null;
|
|
77
77
|
const t = document.createElement("ui-icone");
|
|
78
|
-
if (t.setAttribute("tamanho", String(
|
|
79
|
-
const e = Z(
|
|
78
|
+
if (t.setAttribute("tamanho", String(s)), o.trimStart().startsWith("<")) {
|
|
79
|
+
const e = Z(o);
|
|
80
80
|
if (!e) return null;
|
|
81
81
|
t.appendChild(e);
|
|
82
82
|
} else
|
|
83
|
-
t.setAttribute("nome",
|
|
83
|
+
t.setAttribute("nome", o);
|
|
84
84
|
return t;
|
|
85
85
|
}
|
|
86
|
-
const
|
|
87
|
-
function
|
|
88
|
-
return
|
|
86
|
+
const K = /* @__PURE__ */ new Set();
|
|
87
|
+
function S(o) {
|
|
88
|
+
return o.rotuloAcessivel ? o.rotuloAcessivel : o.rotulo ? o.rotulo : o.icone && !o.icone.trimStart().startsWith("<") ? o.icone : (K.has(o.id) || (K.add(o.id), console.warn(`[ui-barra-ferramentas] O item "${o.id}" não tem "rotulo" nem "rotuloAcessivel": o id será usado como nome acessível.`)), o.id);
|
|
89
89
|
}
|
|
90
|
-
function
|
|
90
|
+
function T(o, s) {
|
|
91
91
|
const t = /* @__PURE__ */ new Set(), e = /* @__PURE__ */ new Set();
|
|
92
|
-
|
|
92
|
+
o.forEach((i) => t.has(i) ? e.add(i) : t.add(i)), e.size && console.warn(`[ui-barra-ferramentas] ${s}: ids duplicados (${[...e].join(", ")}). Use ids únicos, senão atualizarItem() e os eventos podem atingir o item errado.`);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
for (const t of
|
|
96
|
-
t.tipo !== "separador" && (
|
|
97
|
-
return
|
|
94
|
+
function q(o, s = []) {
|
|
95
|
+
for (const t of o)
|
|
96
|
+
t.tipo !== "separador" && (s.push(t.id), t.filhos && q(t.filhos, s));
|
|
97
|
+
return s;
|
|
98
98
|
}
|
|
99
|
-
function A(
|
|
100
|
-
|
|
101
|
-
const t =
|
|
102
|
-
e ?
|
|
99
|
+
function A(o, s) {
|
|
100
|
+
o.disabled = !!s.disabled;
|
|
101
|
+
const t = s.tipo, e = t === "toggle" || t === "ferramenta";
|
|
102
|
+
e ? o.setAttribute("aria-pressed", String(!!s.ativo)) : o.removeAttribute("aria-pressed"), o.classList.toggle("ui-ferr-btn--ativo", e && !!s.ativo);
|
|
103
103
|
}
|
|
104
|
-
function j(
|
|
105
|
-
var
|
|
104
|
+
function j(o, s, t) {
|
|
105
|
+
var n;
|
|
106
106
|
const e = document.createElement("button");
|
|
107
|
-
e.type = "button", e.className = `ui-ferr-btn ui-ferr-btn--${
|
|
108
|
-
const i = !!((
|
|
109
|
-
|
|
110
|
-
const a =
|
|
107
|
+
e.type = "button", e.className = `ui-ferr-btn ui-ferr-btn--${s}`, e.dataset.id = o.id, e.tabIndex = -1;
|
|
108
|
+
const i = !!((n = o.filhos) != null && n.length), r = s !== "paleta" && !o.somenteIcone && !!o.rotulo;
|
|
109
|
+
o.rotuloAcessivel ? e.setAttribute("aria-label", o.rotuloAcessivel) : r ? e.removeAttribute("aria-label") : e.setAttribute("aria-label", S(o)), o.atalho && e.setAttribute("aria-keyshortcuts", o.atalho), e.dataset.tooltip = S(o), o.atalho && (e.dataset.atalho = o.atalho);
|
|
110
|
+
const a = k(o.icone, t);
|
|
111
111
|
if (a) {
|
|
112
112
|
const l = document.createElement("span");
|
|
113
113
|
l.className = "ui-ferr-btn__icone", l.appendChild(a), e.appendChild(l);
|
|
114
114
|
}
|
|
115
|
-
if (
|
|
115
|
+
if (s !== "paleta" && o.somenteIcone && e.classList.add("ui-ferr-btn--so-icone"), r) {
|
|
116
116
|
const l = document.createElement("span");
|
|
117
|
-
l.className = "ui-ferr-btn__rotulo", l.textContent =
|
|
117
|
+
l.className = "ui-ferr-btn__rotulo", l.textContent = o.rotulo, e.appendChild(l);
|
|
118
118
|
}
|
|
119
|
-
if (i && !
|
|
120
|
-
if (
|
|
119
|
+
if (i && !o.dividido) {
|
|
120
|
+
if (s === "paleta")
|
|
121
121
|
e.classList.add("ui-ferr-btn--grupo");
|
|
122
122
|
else {
|
|
123
123
|
const l = document.createElement("span");
|
|
@@ -125,91 +125,91 @@ function j(n, u, t) {
|
|
|
125
125
|
}
|
|
126
126
|
e.setAttribute("aria-haspopup", "menu"), e.setAttribute("aria-expanded", "false");
|
|
127
127
|
}
|
|
128
|
-
return A(e,
|
|
128
|
+
return A(e, o), e;
|
|
129
129
|
}
|
|
130
|
-
function rt(
|
|
130
|
+
function rt(o, s, t) {
|
|
131
131
|
const e = document.createElement("div");
|
|
132
|
-
e.className = `ui-ferr-split ui-ferr-split--${
|
|
133
|
-
const i = j({ ...
|
|
132
|
+
e.className = `ui-ferr-split ui-ferr-split--${s}`, e.dataset.id = o.id;
|
|
133
|
+
const i = j({ ...o, filhos: void 0, dividido: !1 }, s, t);
|
|
134
134
|
i.classList.add("ui-ferr-split__acao"), i.dataset.split = "acao";
|
|
135
135
|
const r = document.createElement("button");
|
|
136
|
-
r.type = "button", r.className = `ui-ferr-btn ui-ferr-split__gatilho ui-ferr-btn--${
|
|
136
|
+
r.type = "button", r.className = `ui-ferr-btn ui-ferr-split__gatilho ui-ferr-btn--${s}`, r.dataset.id = o.id, r.dataset.split = "gatilho", r.tabIndex = -1, r.disabled = !!o.disabled, r.setAttribute("aria-haspopup", "menu"), r.setAttribute("aria-expanded", "false"), r.setAttribute("aria-label", `Opções de ${S(o)}`), r.dataset.tooltip = `Opções de ${S(o)}`;
|
|
137
137
|
const a = document.createElement("span");
|
|
138
138
|
return a.className = "ui-ferr-btn__caret", r.appendChild(a), e.appendChild(i), e.appendChild(r), e;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
for (const t of
|
|
142
|
-
if (t.id ===
|
|
140
|
+
function m(o, s) {
|
|
141
|
+
for (const t of o) {
|
|
142
|
+
if (t.id === s) return t;
|
|
143
143
|
if (t.filhos) {
|
|
144
|
-
const e =
|
|
144
|
+
const e = m(t.filhos, s);
|
|
145
145
|
if (e) return e;
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
function U(
|
|
150
|
-
if (!
|
|
151
|
-
const t =
|
|
152
|
-
if (i !==
|
|
153
|
-
const
|
|
154
|
-
return
|
|
149
|
+
function U(o, s) {
|
|
150
|
+
if (!s || !s.trim()) return !1;
|
|
151
|
+
const t = s.split("+").map((f) => f.trim()), e = t[t.length - 1], i = t.some((f) => /^(ctrl|control|cmd|meta)$/i.test(f)), r = t.some((f) => /^alt$/i.test(f)), a = t.some((f) => /^shift$/i.test(f)), n = o.ctrlKey || o.metaKey, l = o.altKey, c = o.shiftKey;
|
|
152
|
+
if (i !== n || r !== l || a !== c) return !1;
|
|
153
|
+
const u = e.toLowerCase(), p = (o.key || "").toLowerCase();
|
|
154
|
+
return u === "esc" || u === "escape" ? p === "escape" : u === "del" || u === "delete" ? p === "delete" : u === "enter" ? p === "enter" : u === "space" || u === "espaço" ? p === " " || p === "space" : p === u;
|
|
155
155
|
}
|
|
156
|
-
function F(
|
|
157
|
-
const
|
|
158
|
-
|
|
156
|
+
function F(o) {
|
|
157
|
+
const s = o.filter((t) => !t.disabled);
|
|
158
|
+
o.forEach((t) => t.tabIndex = -1), s.length && (s[0].tabIndex = 0);
|
|
159
159
|
}
|
|
160
|
-
function W(
|
|
161
|
-
const
|
|
162
|
-
|
|
163
|
-
t !==
|
|
164
|
-
}) : F(
|
|
160
|
+
function W(o) {
|
|
161
|
+
const s = o.find((t) => t.tabIndex === 0 && !t.disabled);
|
|
162
|
+
s ? o.forEach((t) => {
|
|
163
|
+
t !== s && (t.tabIndex = -1);
|
|
164
|
+
}) : F(o);
|
|
165
165
|
}
|
|
166
|
-
function Y(
|
|
167
|
-
const t =
|
|
168
|
-
!t || t.disabled ||
|
|
166
|
+
function Y(o, s) {
|
|
167
|
+
const t = o.find((e) => e === s || e.contains(s));
|
|
168
|
+
!t || t.disabled || o.forEach((e) => e.tabIndex = e === t ? 0 : -1);
|
|
169
169
|
}
|
|
170
|
-
function R(
|
|
171
|
-
const i =
|
|
170
|
+
function R(o, s, t, e) {
|
|
171
|
+
const i = s.filter((l) => !l.disabled), r = i.length, a = i.findIndex((l) => l === o.target);
|
|
172
172
|
if (r === 0 || a < 0) return !1;
|
|
173
|
-
let
|
|
174
|
-
if (t.includes(
|
|
175
|
-
else if (e.includes(
|
|
176
|
-
else if (
|
|
177
|
-
else if (
|
|
173
|
+
let n = a;
|
|
174
|
+
if (t.includes(o.key)) n = (a - 1 + r) % r;
|
|
175
|
+
else if (e.includes(o.key)) n = (a + 1) % r;
|
|
176
|
+
else if (o.key === "Home") n = 0;
|
|
177
|
+
else if (o.key === "End") n = r - 1;
|
|
178
178
|
else return !1;
|
|
179
|
-
return
|
|
179
|
+
return o.preventDefault(), s.forEach((l) => l.tabIndex = -1), i[n].tabIndex = 0, i[n].focus(), !0;
|
|
180
180
|
}
|
|
181
|
-
function at(
|
|
182
|
-
const e =
|
|
181
|
+
function at(o, s, t = !1) {
|
|
182
|
+
const e = s.filter((l) => !l.disabled), i = e.length, r = e.findIndex((l) => l === o.target);
|
|
183
183
|
if (i === 0 || r < 0) return !1;
|
|
184
184
|
let a = r;
|
|
185
|
-
const
|
|
186
|
-
if (
|
|
187
|
-
t ?
|
|
188
|
-
else if (
|
|
189
|
-
t ?
|
|
190
|
-
else if (
|
|
191
|
-
r + 2 < i ? a = r + 2 : r + 1 < i &&
|
|
192
|
-
else if (
|
|
193
|
-
r - 2 >= 0 ? a = r - 2 : r - 1 >= 0 &&
|
|
194
|
-
else if (
|
|
185
|
+
const n = r % 2;
|
|
186
|
+
if (o.key === "ArrowRight")
|
|
187
|
+
t ? n === 1 && (a = r - 1) : n === 0 && r + 1 < i && (a = r + 1);
|
|
188
|
+
else if (o.key === "ArrowLeft")
|
|
189
|
+
t ? n === 0 && r + 1 < i && (a = r + 1) : n === 1 && (a = r - 1);
|
|
190
|
+
else if (o.key === "ArrowDown")
|
|
191
|
+
r + 2 < i ? a = r + 2 : r + 1 < i && n === 0 && (a = r + 1);
|
|
192
|
+
else if (o.key === "ArrowUp")
|
|
193
|
+
r - 2 >= 0 ? a = r - 2 : r - 1 >= 0 && n === 1 && (a = r - 1);
|
|
194
|
+
else if (o.key === "Home")
|
|
195
195
|
a = 0;
|
|
196
|
-
else if (
|
|
196
|
+
else if (o.key === "End")
|
|
197
197
|
a = i - 1;
|
|
198
198
|
else
|
|
199
199
|
return !1;
|
|
200
|
-
return
|
|
200
|
+
return o.preventDefault(), s.forEach((l) => l.tabIndex = -1), e[a].tabIndex = 0, e[a].focus(), !0;
|
|
201
201
|
}
|
|
202
202
|
let ot = 0;
|
|
203
203
|
class X {
|
|
204
|
-
constructor(
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
this.raiz =
|
|
204
|
+
constructor(s, t) {
|
|
205
|
+
d(this, "el");
|
|
206
|
+
d(this, "textoEl");
|
|
207
|
+
d(this, "atalhoEl");
|
|
208
|
+
d(this, "timer");
|
|
209
|
+
d(this, "alvoAtual", null);
|
|
210
|
+
d(this, "id", `ui-ferr-tooltip-${++ot}`);
|
|
211
|
+
d(this, "listeners", new M());
|
|
212
|
+
this.raiz = s, this.el = document.createElement("div"), this.el.className = "ui-ferr-tooltip", this.el.id = this.id, this.el.setAttribute("role", "tooltip"), this.el.setAttribute("aria-hidden", "true"), this.textoEl = document.createElement("span"), this.textoEl.className = "ui-ferr-tooltip__texto", this.atalhoEl = document.createElement("kbd"), this.atalhoEl.className = "ui-ferr-tooltip__atalho", this.el.appendChild(this.textoEl), this.el.appendChild(this.atalhoEl), this.raiz.appendChild(this.el), this.listeners.add(t, "pointerover", (e) => {
|
|
213
213
|
const i = e.target.closest(".ui-ferr-btn, .ui-ribbon__fixar, .ui-ribbon__lancador");
|
|
214
214
|
if (i && i !== this.alvoAtual) {
|
|
215
215
|
const r = i.dataset.tooltip || i.getAttribute("aria-label") || "", a = i.dataset.atalho || i.getAttribute("aria-keyshortcuts") || "";
|
|
@@ -226,15 +226,15 @@ class X {
|
|
|
226
226
|
}
|
|
227
227
|
}), this.listeners.add(t, "focusout", () => this.esconder()), this.listeners.add(t, "pointerdown", () => this.esconder()), this.listeners.add(t, "click", () => this.esconder()), this.listeners.add(window, "scroll", () => this.esconder(), !0), this.listeners.add(window, "resize", () => this.esconder());
|
|
228
228
|
}
|
|
229
|
-
agendar(
|
|
230
|
-
this.limparTimer(), this.timer = window.setTimeout(() => this.mostrar(
|
|
229
|
+
agendar(s, t, e) {
|
|
230
|
+
this.limparTimer(), this.timer = window.setTimeout(() => this.mostrar(s, t, e), 140);
|
|
231
231
|
}
|
|
232
|
-
mostrar(
|
|
233
|
-
if (this.limparTimer(), !
|
|
234
|
-
this.alvoAtual =
|
|
235
|
-
const i =
|
|
236
|
-
let a = i.bottom + 6,
|
|
237
|
-
a + (r.height || 24) > window.innerHeight - 6 && (a = Math.max(6, i.top - (r.height || 24) - 6)),
|
|
232
|
+
mostrar(s, t, e) {
|
|
233
|
+
if (this.limparTimer(), !s.isConnected || !t) return;
|
|
234
|
+
this.alvoAtual = s, this.textoEl.textContent = t, e ? (this.atalhoEl.textContent = `(${e})`, this.atalhoEl.style.display = "") : (this.atalhoEl.textContent = "", this.atalhoEl.style.display = "none"), this.el.classList.add("ui-ferr-tooltip--visivel"), this.el.setAttribute("aria-hidden", "false"), s.setAttribute("aria-describedby", this.id);
|
|
235
|
+
const i = s.getBoundingClientRect(), r = this.el.getBoundingClientRect();
|
|
236
|
+
let a = i.bottom + 6, n = i.left + (i.width - (r.width || 80)) / 2;
|
|
237
|
+
a + (r.height || 24) > window.innerHeight - 6 && (a = Math.max(6, i.top - (r.height || 24) - 6)), n < 6 ? n = 6 : n + (r.width || 80) > window.innerWidth - 6 && (n = Math.max(6, window.innerWidth - (r.width || 80) - 6)), this.el.style.top = `${a}px`, this.el.style.left = `${n}px`;
|
|
238
238
|
}
|
|
239
239
|
esconder() {
|
|
240
240
|
this.limparTimer(), this.alvoAtual && (this.alvoAtual.removeAttribute("aria-describedby"), this.alvoAtual = null), this.el.classList.remove("ui-ferr-tooltip--visivel"), this.el.setAttribute("aria-hidden", "true");
|
|
@@ -247,194 +247,264 @@ class X {
|
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
let st = 0;
|
|
250
|
-
function
|
|
251
|
-
var
|
|
252
|
-
const r = i.lado ?? "baixo", a = new M(),
|
|
253
|
-
|
|
250
|
+
function P(o, s, t, e, i = {}) {
|
|
251
|
+
var B;
|
|
252
|
+
const r = i.lado ?? "baixo", a = new M(), n = document.createElement("div");
|
|
253
|
+
n.className = "ui-ferr-menu", n.setAttribute("role", "menu"), n.id = `ui-ferr-menu-${++st}`, n.setAttribute("aria-label", s.getAttribute("aria-label") || "Menu"), s.setAttribute("aria-controls", n.id);
|
|
254
254
|
const l = [];
|
|
255
|
-
let
|
|
256
|
-
const
|
|
257
|
-
|
|
258
|
-
},
|
|
259
|
-
var
|
|
260
|
-
|
|
261
|
-
},
|
|
262
|
-
t.forEach((
|
|
263
|
-
var
|
|
264
|
-
if (
|
|
255
|
+
let c = !1, u = null;
|
|
256
|
+
const p = () => {
|
|
257
|
+
u && (u.fechar(), u = null);
|
|
258
|
+
}, f = () => {
|
|
259
|
+
var h;
|
|
260
|
+
c || (c = !0, p(), s.removeAttribute("aria-controls"), a.cleanup(), n.remove(), (h = i.onFechar) == null || h.call(i));
|
|
261
|
+
}, g = getComputedStyle(s).direction === "rtl";
|
|
262
|
+
t.forEach((h) => {
|
|
263
|
+
var H;
|
|
264
|
+
if (h.tipo === "separador") {
|
|
265
265
|
const x = document.createElement("div");
|
|
266
|
-
x.className = "ui-ferr-menu__sep", x.setAttribute("role", "separator"),
|
|
266
|
+
x.className = "ui-ferr-menu__sep", x.setAttribute("role", "separator"), n.appendChild(x);
|
|
267
267
|
return;
|
|
268
268
|
}
|
|
269
|
-
const
|
|
270
|
-
|
|
271
|
-
const E =
|
|
272
|
-
E === "toggle" ? (
|
|
273
|
-
const
|
|
274
|
-
|
|
275
|
-
const
|
|
276
|
-
|
|
269
|
+
const b = document.createElement("button");
|
|
270
|
+
b.type = "button", b.className = "ui-ferr-menu__item";
|
|
271
|
+
const E = h.tipo ?? i.tipoPadrao ?? "botao";
|
|
272
|
+
E === "toggle" ? (b.setAttribute("role", "menuitemcheckbox"), b.setAttribute("aria-checked", String(!!h.ativo))) : E === "ferramenta" ? (b.setAttribute("role", "menuitemradio"), b.setAttribute("aria-checked", String(!!h.ativo))) : b.setAttribute("role", "menuitem"), b.dataset.id = h.id, b.disabled = !!h.disabled, h.atalho && b.setAttribute("aria-keyshortcuts", h.atalho), h.ativo && b.classList.add("ui-ferr-menu__item--ativo");
|
|
273
|
+
const C = document.createElement("span");
|
|
274
|
+
C.className = "ui-ferr-menu__icone";
|
|
275
|
+
const z = k(h.icone, 14);
|
|
276
|
+
z && C.appendChild(z), b.appendChild(C);
|
|
277
277
|
const v = document.createElement("span");
|
|
278
|
-
if (v.className = "ui-ferr-menu__rotulo", v.textContent =
|
|
278
|
+
if (v.className = "ui-ferr-menu__rotulo", v.textContent = S(h), b.appendChild(v), h.atalho) {
|
|
279
279
|
const x = document.createElement("span");
|
|
280
|
-
x.className = "ui-ferr-menu__atalho", x.textContent =
|
|
280
|
+
x.className = "ui-ferr-menu__atalho", x.textContent = h.atalho, b.appendChild(x);
|
|
281
281
|
}
|
|
282
|
-
if (!!((
|
|
283
|
-
|
|
282
|
+
if (!!((H = h.filhos) != null && H.length)) {
|
|
283
|
+
b.classList.add("ui-ferr-menu__item--has-sub"), b.setAttribute("aria-haspopup", "menu"), b.setAttribute("aria-expanded", "false");
|
|
284
284
|
const x = document.createElement("span");
|
|
285
|
-
x.className = "ui-ferr-menu__caret-sub",
|
|
286
|
-
const O = (
|
|
287
|
-
(
|
|
288
|
-
lado:
|
|
289
|
-
focar:
|
|
285
|
+
x.className = "ui-ferr-menu__caret-sub", b.appendChild(x);
|
|
286
|
+
const O = (D) => {
|
|
287
|
+
(u == null ? void 0 : u.ancora) !== b && (p(), b.setAttribute("aria-expanded", "true"), u = P(o, b, h.filhos, e, {
|
|
288
|
+
lado: g ? "esquerda" : "direita",
|
|
289
|
+
focar: D,
|
|
290
290
|
tipoPadrao: i.tipoPadrao,
|
|
291
291
|
onFechar: () => {
|
|
292
|
-
|
|
292
|
+
b.setAttribute("aria-expanded", "false"), u = null;
|
|
293
293
|
}
|
|
294
294
|
}));
|
|
295
295
|
};
|
|
296
|
-
|
|
297
|
-
|
|
296
|
+
b.addEventListener("pointerenter", () => O(!1)), b.addEventListener("click", (D) => {
|
|
297
|
+
D.stopPropagation(), O(!0);
|
|
298
298
|
});
|
|
299
299
|
} else
|
|
300
|
-
|
|
301
|
-
x.stopPropagation(),
|
|
300
|
+
b.addEventListener("pointerenter", p), b.addEventListener("click", (x) => {
|
|
301
|
+
x.stopPropagation(), f(), s.focus(), e(h);
|
|
302
302
|
});
|
|
303
|
-
l.push(
|
|
304
|
-
}),
|
|
305
|
-
const _ =
|
|
306
|
-
let L = r === "baixo" ? _.bottom + 2 : _.top,
|
|
307
|
-
|
|
308
|
-
const I = () => l.filter((
|
|
309
|
-
return a.add(
|
|
310
|
-
const
|
|
311
|
-
if (
|
|
312
|
-
|
|
313
|
-
else if (
|
|
314
|
-
|
|
315
|
-
else if (
|
|
316
|
-
|
|
317
|
-
const v =
|
|
318
|
-
|
|
319
|
-
} else if (
|
|
320
|
-
const v =
|
|
321
|
-
v != null && v.classList.contains("ui-ferr-menu__item--has-sub") && (
|
|
322
|
-
} else
|
|
323
|
-
}), a.add(document, "pointerdown", (
|
|
324
|
-
const
|
|
325
|
-
!
|
|
326
|
-
}, !0), a.add(window, "resize",
|
|
327
|
-
|
|
328
|
-
}, !0), i.focar && ((
|
|
329
|
-
var
|
|
330
|
-
return (
|
|
303
|
+
l.push(b), n.appendChild(b);
|
|
304
|
+
}), o.appendChild(n);
|
|
305
|
+
const _ = s.getBoundingClientRect(), w = n.getBoundingClientRect();
|
|
306
|
+
let L = r === "baixo" ? _.bottom + 2 : _.top, y = r === "direita" ? _.right + 4 : r === "esquerda" ? _.left - w.width - 4 : g ? _.right - w.width : _.left;
|
|
307
|
+
w.width && y + w.width > window.innerWidth - 4 && (y = Math.max(4, window.innerWidth - w.width - 4)), y < 4 && (y = 4), w.height && L + w.height > window.innerHeight - 4 && (L = Math.max(4, window.innerHeight - w.height - 4)), n.style.top = `${L}px`, n.style.left = `${y}px`;
|
|
308
|
+
const I = () => l.filter((h) => !h.disabled);
|
|
309
|
+
return a.add(n, "keydown", (h) => {
|
|
310
|
+
const b = I(), E = b.findIndex((v) => v === h.target), C = g ? "ArrowLeft" : "ArrowRight", z = g ? "ArrowRight" : "ArrowLeft";
|
|
311
|
+
if (h.key === "Escape")
|
|
312
|
+
h.preventDefault(), h.stopPropagation(), f(), s.focus();
|
|
313
|
+
else if (h.key === "Tab")
|
|
314
|
+
f();
|
|
315
|
+
else if (b.length && (h.key === "ArrowDown" || h.key === "ArrowUp")) {
|
|
316
|
+
h.preventDefault(), p();
|
|
317
|
+
const v = h.key === "ArrowDown" ? 1 : -1;
|
|
318
|
+
b[(E + v + b.length) % b.length].focus();
|
|
319
|
+
} else if (b.length && h.key === C) {
|
|
320
|
+
const v = b[E];
|
|
321
|
+
v != null && v.classList.contains("ui-ferr-menu__item--has-sub") && (h.preventDefault(), v.click());
|
|
322
|
+
} else h.key === z && (r === "direita" || r === "esquerda") ? (h.preventDefault(), h.stopPropagation(), f(), s.focus()) : b.length && h.key === "Home" ? (h.preventDefault(), b[0].focus()) : b.length && h.key === "End" && (h.preventDefault(), b[b.length - 1].focus());
|
|
323
|
+
}), a.add(document, "pointerdown", (h) => {
|
|
324
|
+
const b = h.composedPath();
|
|
325
|
+
!b.includes(n) && !b.includes(s) && !(u != null && u.elemento.contains(h.target)) && f();
|
|
326
|
+
}, !0), a.add(window, "resize", f), a.add(window, "scroll", (h) => {
|
|
327
|
+
h.target instanceof Node && n.contains(h.target) || f();
|
|
328
|
+
}, !0), i.focar && ((B = I()[0]) == null || B.focus()), { elemento: n, ancora: s, fechar: f, focarPrimeiro: () => {
|
|
329
|
+
var h;
|
|
330
|
+
return (h = I()[0]) == null ? void 0 : h.focus();
|
|
331
331
|
} };
|
|
332
332
|
}
|
|
333
|
-
|
|
334
|
-
|
|
333
|
+
const nt = 3;
|
|
334
|
+
function lt({ aba: o, ativa: s, idBotao: t, idPainel: e }) {
|
|
335
|
+
const i = document.createElement("button");
|
|
336
|
+
return i.type = "button", i.className = "ui-ribbon__aba", i.setAttribute("role", "tab"), i.dataset.id = o.id, i.id = t, s && i.setAttribute("aria-controls", e), i.textContent = o.rotulo, i.tabIndex = s ? 0 : -1, i.setAttribute("aria-selected", String(s)), i.classList.toggle("ui-ribbon__aba--ativa", s), i.classList.toggle("ui-ribbon__aba--contextual", !!o.contextual), i;
|
|
337
|
+
}
|
|
338
|
+
const ut = '<svg viewBox="0 0 24 24"><path d="M4 6h16M4 12h16M4 18h16" stroke="currentColor" stroke-width="2" fill="none"/></svg>', dt = '<svg viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 12h8V4M12 12l-7-7"/></svg>', ct = (o) => o.rotuloLancador || `Mais opções de ${o.rotulo || "ferramentas"}`;
|
|
339
|
+
function ht(o, s) {
|
|
340
|
+
s.classList.add("ui-ribbon__grupo--colapsado");
|
|
341
|
+
const t = document.createElement("button");
|
|
342
|
+
t.type = "button", t.className = "ui-ferr-btn ui-ferr-btn--grande ui-ribbon__btn-colapsado", t.dataset.grupoColapsado = o.id, t.dataset.tooltip = o.rotulo, t.setAttribute("aria-haspopup", "menu"), t.setAttribute("aria-expanded", "false");
|
|
343
|
+
const e = k(o.icone, 24) || k(ut, 24);
|
|
344
|
+
if (e) {
|
|
345
|
+
const a = document.createElement("span");
|
|
346
|
+
a.className = "ui-ferr-btn__icone", a.appendChild(e), t.appendChild(a);
|
|
347
|
+
}
|
|
348
|
+
const i = document.createElement("span");
|
|
349
|
+
i.className = "ui-ferr-btn__rotulo", i.textContent = o.rotulo, t.appendChild(i);
|
|
350
|
+
const r = document.createElement("span");
|
|
351
|
+
return r.className = "ui-ferr-btn__caret", t.appendChild(r), s.appendChild(t), s;
|
|
352
|
+
}
|
|
353
|
+
function pt(o, s, t = {}) {
|
|
354
|
+
const e = document.createElement("div");
|
|
355
|
+
if (e.className = "ui-ribbon__grupo", e.setAttribute("role", "group"), e.setAttribute("aria-label", o.rotulo), e.dataset.id = o.id, t.colapsado) return ht(o, e);
|
|
356
|
+
const i = (c, u, p) => {
|
|
357
|
+
var f;
|
|
358
|
+
return c.dividido && ((f = c.filhos) != null && f.length) && t.criarDividido ? t.criarDividido(c, u, p) : s(c, u, p);
|
|
359
|
+
}, r = document.createElement("div");
|
|
360
|
+
r.className = "ui-ribbon__grupo-itens";
|
|
361
|
+
let a = null, n = 0;
|
|
362
|
+
const l = () => {
|
|
363
|
+
a && r.appendChild(a), a = null, n = 0;
|
|
364
|
+
};
|
|
365
|
+
if (o.itens.forEach((c) => {
|
|
366
|
+
if (c.tipo === "separador") {
|
|
367
|
+
l();
|
|
368
|
+
const u = document.createElement("div");
|
|
369
|
+
u.className = "ui-ribbon__separador", u.setAttribute("role", "separator"), r.appendChild(u);
|
|
370
|
+
} else c.tamanho === "grande" ? (l(), r.appendChild(i(c, "grande", 24))) : (a || (a = document.createElement("div"), a.className = "ui-ribbon__coluna"), a.appendChild(i(c, "pequeno", 16)), ++n === nt && l());
|
|
371
|
+
}), l(), o.rotulo || o.lancadorDialogo) {
|
|
372
|
+
const c = document.createElement("div");
|
|
373
|
+
if (c.className = "ui-ribbon__grupo-rotulo", o.rotulo && (c.textContent = o.rotulo), o.lancadorDialogo) {
|
|
374
|
+
const u = document.createElement("button");
|
|
375
|
+
u.type = "button", u.className = "ui-ribbon__lancador", u.dataset.lancador = o.id;
|
|
376
|
+
const p = ct(o);
|
|
377
|
+
u.setAttribute("aria-label", p), u.dataset.tooltip = p;
|
|
378
|
+
const f = k(dt, 10);
|
|
379
|
+
f && u.appendChild(f), c.appendChild(u);
|
|
380
|
+
}
|
|
381
|
+
return e.appendChild(r), e.appendChild(c), e;
|
|
382
|
+
}
|
|
383
|
+
return e.appendChild(r), e;
|
|
384
|
+
}
|
|
385
|
+
function bt(o, s, t, e, i = !1) {
|
|
386
|
+
if (s < 0 || t <= 0) return null;
|
|
387
|
+
if (i && (o === "Enter" || o === " ")) return { tipo: "ativar", indice: s };
|
|
388
|
+
const [r, a] = e ? ["ArrowLeft", "ArrowRight"] : ["ArrowRight", "ArrowLeft"];
|
|
389
|
+
return o === r ? { tipo: "ir-para", indice: (s + 1) % t } : o === a ? { tipo: "ir-para", indice: (s - 1 + t) % t } : o === "Home" ? { tipo: "ir-para", indice: 0 } : o === "End" ? { tipo: "ir-para", indice: t - 1 } : o === "ArrowDown" ? { tipo: "descer" } : null;
|
|
390
|
+
}
|
|
391
|
+
let ft = 0;
|
|
392
|
+
class mt extends $ {
|
|
335
393
|
constructor() {
|
|
336
394
|
super();
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
395
|
+
d(this, "rootElement");
|
|
396
|
+
d(this, "abasElement");
|
|
397
|
+
d(this, "gruposElement");
|
|
398
|
+
d(this, "painelElement");
|
|
399
|
+
d(this, "fixarElement");
|
|
400
|
+
d(this, "uid", `ui-ribbon-${++ft}`);
|
|
401
|
+
d(this, "_abaPendente", "");
|
|
402
|
+
d(this, "_pronto", !1);
|
|
403
|
+
d(this, "_modoControlado", !1);
|
|
404
|
+
d(this, "_abas", []);
|
|
405
|
+
d(this, "_abaAtiva", "");
|
|
406
|
+
d(this, "menu", null);
|
|
407
|
+
d(this, "listeners", new M());
|
|
408
|
+
d(this, "tooltip", null);
|
|
409
|
+
d(this, "observerResize", null);
|
|
410
|
+
d(this, "gruposColapsados", /* @__PURE__ */ new Set());
|
|
411
|
+
d(this, "keytipsAtivas", !1);
|
|
412
|
+
d(this, "handleFocusInGrupos", (t) => Y(this.botoesPainel(), t.target));
|
|
355
413
|
/* ---------- Interação ---------- */
|
|
356
|
-
|
|
414
|
+
d(this, "handleClickAbas", (t) => {
|
|
357
415
|
const e = t.target.closest(".ui-ribbon__aba");
|
|
358
416
|
e != null && e.dataset.id && (this.selecionarAba(e.dataset.id), this.recolhido && this.rootElement.classList.toggle("ui-ribbon--aberto"));
|
|
359
417
|
});
|
|
360
|
-
|
|
418
|
+
d(this, "handleClickFixar", () => {
|
|
361
419
|
this.recolhido = !this.recolhido;
|
|
362
420
|
});
|
|
363
|
-
|
|
421
|
+
d(this, "handleDblClickAbas", (t) => {
|
|
364
422
|
t.target.closest(".ui-ribbon__aba") && (this.recolhido = !this.recolhido);
|
|
365
423
|
});
|
|
366
|
-
|
|
367
|
-
var
|
|
368
|
-
const e = Array.from(this.abasElement.querySelectorAll(".ui-ribbon__aba")), i = e.findIndex((
|
|
369
|
-
if (i
|
|
370
|
-
if (
|
|
371
|
-
|
|
372
|
-
const c = e[i].dataset.id;
|
|
373
|
-
c && this.selecionarAba(c);
|
|
424
|
+
d(this, "handleKeyDownAbas", (t) => {
|
|
425
|
+
var a, n;
|
|
426
|
+
const e = Array.from(this.abasElement.querySelectorAll(".ui-ribbon__aba")), i = bt(t.key, e.findIndex((l) => l === t.target), e.length, this.rtl, this.ativacaoManual);
|
|
427
|
+
if (!i) return;
|
|
428
|
+
if (t.preventDefault(), i.tipo === "descer") {
|
|
429
|
+
this.recolhido && this.rootElement.classList.add("ui-ribbon--aberto"), (a = this.botoesPainel().find((l) => !l.disabled)) == null || a.focus();
|
|
374
430
|
return;
|
|
375
431
|
}
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
else if (t.key === o) r = (i - 1 + e.length) % e.length;
|
|
380
|
-
else if (t.key === "Home") r = 0;
|
|
381
|
-
else if (t.key === "End") r = e.length - 1;
|
|
382
|
-
else if (t.key === "ArrowDown") {
|
|
383
|
-
t.preventDefault(), this.recolhido && this.rootElement.classList.add("ui-ribbon--aberto"), (d = this.botoesPainel().find((c) => !c.disabled)) == null || d.focus();
|
|
432
|
+
if (i.tipo === "ativar") {
|
|
433
|
+
const l = e[i.indice].dataset.id;
|
|
434
|
+
l && this.selecionarAba(l);
|
|
384
435
|
return;
|
|
385
|
-
}
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
436
|
+
}
|
|
437
|
+
const r = e[i.indice].dataset.id;
|
|
438
|
+
if (this.ativacaoManual) {
|
|
439
|
+
e.forEach((l) => l.tabIndex = -1), e[i.indice].tabIndex = 0, e[i.indice].focus();
|
|
440
|
+
return;
|
|
441
|
+
}
|
|
442
|
+
r && this.selecionarAba(r), (n = this.abasElement.querySelector(`.ui-ribbon__aba[data-id="${CSS.escape(r ?? "")}"]`)) == null || n.focus();
|
|
389
443
|
});
|
|
390
|
-
|
|
391
|
-
var
|
|
392
|
-
const e = t.target, i = e.closest(".ui-
|
|
393
|
-
if (
|
|
394
|
-
const
|
|
395
|
-
|
|
444
|
+
d(this, "handleClickGrupos", (t) => {
|
|
445
|
+
var c;
|
|
446
|
+
const e = t.target, i = this._abas.find((u) => u.id === this._abaAtiva), r = e.closest(".ui-ribbon__btn-colapsado");
|
|
447
|
+
if (r) {
|
|
448
|
+
const u = i == null ? void 0 : i.grupos.find((p) => p.id === r.dataset.grupoColapsado);
|
|
449
|
+
u && this.alternarMenuGrupoColapsado(r, u);
|
|
396
450
|
return;
|
|
397
451
|
}
|
|
398
|
-
const
|
|
399
|
-
|
|
452
|
+
const a = e.closest(".ui-ribbon__lancador");
|
|
453
|
+
if (a) {
|
|
454
|
+
const u = i == null ? void 0 : i.grupos.find((p) => p.id === a.dataset.lancador);
|
|
455
|
+
u && this.dispatchEvent(new CustomEvent("ui-grupo-dialogo", {
|
|
456
|
+
detail: { id: typeof u.lancadorDialogo == "string" ? u.lancadorDialogo : u.id, grupo: u },
|
|
457
|
+
bubbles: !0,
|
|
458
|
+
composed: !0
|
|
459
|
+
}));
|
|
460
|
+
return;
|
|
461
|
+
}
|
|
462
|
+
const n = e.closest(".ui-ferr-split__gatilho");
|
|
463
|
+
if (n) {
|
|
464
|
+
const u = n.closest(".ui-ferr-split"), p = u == null ? void 0 : u.dataset.id, f = i && m(i.grupos.flatMap((g) => g.itens), p ?? "");
|
|
465
|
+
f && ((c = f.filhos) != null && c.length) && this.alternarMenu(n, f, !1);
|
|
466
|
+
return;
|
|
467
|
+
}
|
|
468
|
+
const l = e.closest(".ui-ferr-btn");
|
|
469
|
+
l != null && l.dataset.id && this.acionar(l, t.detail === 0);
|
|
400
470
|
});
|
|
401
|
-
|
|
471
|
+
d(this, "handleKeyDownGrupos", (t) => {
|
|
402
472
|
var r;
|
|
403
473
|
const e = this.botoesPainel();
|
|
404
474
|
if (this.rtl ? R(t, e, ["ArrowRight"], ["ArrowLeft"]) : R(t, e, ["ArrowLeft"], ["ArrowRight"])) return;
|
|
405
475
|
const i = t.target instanceof HTMLButtonElement ? t.target : null;
|
|
406
476
|
(i == null ? void 0 : i.getAttribute("aria-haspopup")) === "menu" && t.key === "ArrowDown" && (t.preventDefault(), ((r = this.menu) == null ? void 0 : r.ancora) === i ? this.menu.focarPrimeiro() : this.acionar(i, !0));
|
|
407
477
|
});
|
|
408
|
-
|
|
478
|
+
d(this, "handleEscape", (t) => {
|
|
409
479
|
t.key === "Escape" && !this.menu && this.rootElement.classList.remove("ui-ribbon--aberto");
|
|
410
480
|
});
|
|
411
|
-
|
|
481
|
+
d(this, "handlePointerDownFora", (t) => {
|
|
412
482
|
!this.recolhido || !this.rootElement.classList.contains("ui-ribbon--aberto") || t.composedPath().includes(this) || this.rootElement.classList.remove("ui-ribbon--aberto");
|
|
413
483
|
});
|
|
414
|
-
|
|
484
|
+
d(this, "handleAtalho", (t) => {
|
|
415
485
|
if (!this.hasAttribute("atalhos") && !this.hasAttribute("keytips") || t.defaultPrevented) return;
|
|
416
486
|
const e = t.composedPath(), i = e[0];
|
|
417
|
-
if (i && (/^(INPUT|TEXTAREA|SELECT)$/.test(i.tagName) || i.isContentEditable) || e.some((
|
|
418
|
-
var
|
|
419
|
-
const
|
|
420
|
-
return ((
|
|
487
|
+
if (i && (/^(INPUT|TEXTAREA|SELECT)$/.test(i.tagName) || i.isContentEditable) || e.some((u) => {
|
|
488
|
+
var f, g;
|
|
489
|
+
const p = (f = u.getAttribute) == null ? void 0 : f.call(u, "role");
|
|
490
|
+
return ((g = u.getAttribute) == null ? void 0 : g.call(u, "aria-modal")) === "true" || p === "textbox" || p === "searchbox" || p === "combobox" || p === "spinbutton";
|
|
421
491
|
})) return;
|
|
422
492
|
if (this.hasAttribute("keytips") && (t.key === "Alt" || t.key === "F10") && !t.ctrlKey && !t.shiftKey && !t.metaKey) {
|
|
423
493
|
t.preventDefault(), this.alternarKeyTips();
|
|
424
494
|
return;
|
|
425
495
|
}
|
|
426
496
|
if (!this.hasAttribute("atalhos")) return;
|
|
427
|
-
const a = this._abas.find((
|
|
497
|
+
const a = this._abas.find((u) => u.id === this._abaAtiva);
|
|
428
498
|
if (!a) return;
|
|
429
|
-
const l = a.grupos.flatMap((
|
|
499
|
+
const l = a.grupos.flatMap((u) => u.itens).find((u) => !u.disabled && U(t, u.atalho));
|
|
430
500
|
if (!l) return;
|
|
431
501
|
t.preventDefault();
|
|
432
|
-
const
|
|
433
|
-
|
|
502
|
+
const c = this.gruposElement.querySelector(`.ui-ferr-btn[data-id="${CSS.escape(l.id)}"]`);
|
|
503
|
+
c ? this.acionar(c, !1) : this.emitir(l);
|
|
434
504
|
});
|
|
435
505
|
const t = this.attachShadow({ mode: "open" });
|
|
436
506
|
t.innerHTML = `
|
|
437
|
-
<style>${
|
|
507
|
+
<style>${V}${it}</style>
|
|
438
508
|
<div class="ui-ribbon">
|
|
439
509
|
<div class="ui-ribbon__cabecalho">
|
|
440
510
|
<div class="ui-ribbon__abas" role="tablist"></div>
|
|
@@ -519,15 +589,15 @@ class lt extends q {
|
|
|
519
589
|
grupos: i.grupos.map((r) => ({
|
|
520
590
|
...r,
|
|
521
591
|
itens: r.itens.map((a) => {
|
|
522
|
-
var
|
|
592
|
+
var n;
|
|
523
593
|
return {
|
|
524
594
|
...a,
|
|
525
|
-
filhos: (
|
|
595
|
+
filhos: (n = a.filhos) == null ? void 0 : n.map((l) => ({ ...l }))
|
|
526
596
|
};
|
|
527
597
|
})
|
|
528
598
|
}))
|
|
529
|
-
})) : e,
|
|
530
|
-
this._abas.flatMap((i) => i.grupos.flatMap((r) =>
|
|
599
|
+
})) : e, T(this._abas.map((i) => i.id), "<ui-ribbon> abas"), T(
|
|
600
|
+
this._abas.flatMap((i) => i.grupos.flatMap((r) => q(r.itens))),
|
|
531
601
|
"<ui-ribbon> itens"
|
|
532
602
|
), this.gruposColapsados.clear(), this.renderizar();
|
|
533
603
|
}
|
|
@@ -564,27 +634,27 @@ class lt extends q {
|
|
|
564
634
|
));
|
|
565
635
|
}
|
|
566
636
|
definirAbaVisivel(t, e) {
|
|
567
|
-
const i = this._abas.find((
|
|
637
|
+
const i = this._abas.find((n) => n.id === t);
|
|
568
638
|
if (!i) return;
|
|
569
639
|
const r = this._abaAtiva;
|
|
570
640
|
i.oculta = !e, !e && r === t && (this._abaAtiva = ""), this.renderizar();
|
|
571
|
-
const a = this._abas.find((
|
|
641
|
+
const a = this._abas.find((n) => n.id === this._abaAtiva);
|
|
572
642
|
!e && r === t && a && this.dispatchEvent(
|
|
573
643
|
new CustomEvent("ui-aba-change", { detail: { id: a.id, aba: a }, bubbles: !0, composed: !0 })
|
|
574
644
|
);
|
|
575
645
|
}
|
|
576
646
|
/** Atualiza um item (estado ou aparência) sem precisar recriar as abas. */
|
|
577
647
|
atualizarItem(t, e) {
|
|
578
|
-
const i = this._abas.flatMap((
|
|
648
|
+
const i = this._abas.flatMap((c) => c.grupos.flatMap((u) => u.itens)), r = m(i, t);
|
|
579
649
|
if (!r) {
|
|
580
650
|
console.warn(`[ui-ribbon] atualizarItem("${t}"): item não encontrado.`);
|
|
581
651
|
return;
|
|
582
652
|
}
|
|
583
653
|
Object.assign(r, e);
|
|
584
|
-
const a = this._abas.find((
|
|
585
|
-
if (!a || !
|
|
586
|
-
const
|
|
587
|
-
|
|
654
|
+
const a = this._abas.find((c) => c.id === this._abaAtiva);
|
|
655
|
+
if (!a || !m(a.grupos.flatMap((c) => c.itens), t)) return;
|
|
656
|
+
const n = Object.keys(e).every((c) => c === "ativo" || c === "disabled"), l = this.gruposElement.querySelector(`.ui-ferr-btn[data-id="${CSS.escape(t)}"]`);
|
|
657
|
+
n ? l && (A(l, this.efetivo(r)), W(this.botoesPainel())) : this.comFoco(() => this.renderizarPainel());
|
|
588
658
|
}
|
|
589
659
|
efetivo(t) {
|
|
590
660
|
var e;
|
|
@@ -615,8 +685,12 @@ class lt extends q {
|
|
|
615
685
|
}
|
|
616
686
|
renderizarAbas() {
|
|
617
687
|
this.abasElement.innerHTML = "", this.abasVisiveis().forEach((t) => {
|
|
618
|
-
|
|
619
|
-
|
|
688
|
+
this.abasElement.appendChild(lt({
|
|
689
|
+
aba: t,
|
|
690
|
+
ativa: t.id === this._abaAtiva,
|
|
691
|
+
idBotao: this.idAba(t.id),
|
|
692
|
+
idPainel: this.painelElement.id
|
|
693
|
+
}));
|
|
620
694
|
});
|
|
621
695
|
}
|
|
622
696
|
idAba(t) {
|
|
@@ -629,7 +703,14 @@ class lt extends q {
|
|
|
629
703
|
this.painelElement.removeAttribute("aria-labelledby");
|
|
630
704
|
return;
|
|
631
705
|
}
|
|
632
|
-
this.painelElement.setAttribute("aria-labelledby", this.idAba(t.id)), t.grupos.forEach((e) => this.gruposElement.appendChild(
|
|
706
|
+
this.painelElement.setAttribute("aria-labelledby", this.idAba(t.id)), t.grupos.forEach((e) => this.gruposElement.appendChild(pt(
|
|
707
|
+
e,
|
|
708
|
+
(i, r, a) => this.criarBotao(i, r, a),
|
|
709
|
+
{
|
|
710
|
+
colapsado: this.gruposColapsados.has(e.id),
|
|
711
|
+
criarDividido: (i, r, a) => rt(this.efetivo(i), r, a)
|
|
712
|
+
}
|
|
713
|
+
))), F(this.botoesPainel());
|
|
633
714
|
}
|
|
634
715
|
iniciarResizeObserver() {
|
|
635
716
|
typeof ResizeObserver > "u" || (this.observerResize = new ResizeObserver(() => {
|
|
@@ -651,13 +732,13 @@ class lt extends q {
|
|
|
651
732
|
alternarMenuGrupoColapsado(t, e) {
|
|
652
733
|
var r;
|
|
653
734
|
const i = ((r = this.menu) == null ? void 0 : r.ancora) === t;
|
|
654
|
-
this.fecharMenu(), !i && (t.setAttribute("aria-expanded", "true"), this.menu =
|
|
735
|
+
this.fecharMenu(), !i && (t.setAttribute("aria-expanded", "true"), this.menu = P(
|
|
655
736
|
this.shadowRoot,
|
|
656
737
|
t,
|
|
657
738
|
e.itens,
|
|
658
739
|
(a) => {
|
|
659
|
-
const
|
|
660
|
-
if (
|
|
740
|
+
const n = this.gruposElement.querySelector(`.ui-ferr-btn[data-id="${CSS.escape(a.id)}"]`);
|
|
741
|
+
if (n) this.acionar(n, !1);
|
|
661
742
|
else {
|
|
662
743
|
const l = a.ativo;
|
|
663
744
|
a.tipo === "toggle" ? a.ativo = !l : a.tipo === "ferramenta" && (a.ativo = !0), this.emitir(a) || (a.ativo = l);
|
|
@@ -672,57 +753,6 @@ class lt extends q {
|
|
|
672
753
|
}
|
|
673
754
|
));
|
|
674
755
|
}
|
|
675
|
-
criarGrupo(t) {
|
|
676
|
-
const e = document.createElement("div");
|
|
677
|
-
if (e.className = "ui-ribbon__grupo", e.setAttribute("role", "group"), e.setAttribute("aria-label", t.rotulo), e.dataset.id = t.id, this.gruposColapsados.has(t.id)) {
|
|
678
|
-
e.classList.add("ui-ribbon__grupo--colapsado");
|
|
679
|
-
const d = document.createElement("button");
|
|
680
|
-
d.type = "button", d.className = "ui-ferr-btn ui-ferr-btn--grande ui-ribbon__btn-colapsado", d.dataset.id = t.id, d.dataset.tooltip = t.rotulo, d.setAttribute("aria-haspopup", "menu"), d.setAttribute("aria-expanded", "false");
|
|
681
|
-
const s = S(t.icone, 24) || S('<svg viewBox="0 0 24 24"><path d="M4 6h16M4 12h16M4 18h16" stroke="currentColor" stroke-width="2" fill="none"/></svg>', 24);
|
|
682
|
-
if (s) {
|
|
683
|
-
const m = document.createElement("span");
|
|
684
|
-
m.className = "ui-ferr-btn__icone", m.appendChild(s), d.appendChild(m);
|
|
685
|
-
}
|
|
686
|
-
const c = document.createElement("span");
|
|
687
|
-
c.className = "ui-ferr-btn__rotulo", c.textContent = t.rotulo, d.appendChild(c);
|
|
688
|
-
const p = document.createElement("span");
|
|
689
|
-
return p.className = "ui-ferr-btn__caret", d.appendChild(p), d.addEventListener("click", (m) => {
|
|
690
|
-
m.stopPropagation(), this.alternarMenuGrupoColapsado(d, t);
|
|
691
|
-
}), e.appendChild(d), e;
|
|
692
|
-
}
|
|
693
|
-
const i = document.createElement("div");
|
|
694
|
-
i.className = "ui-ribbon__grupo-itens";
|
|
695
|
-
let r = null, a = 0;
|
|
696
|
-
const o = () => {
|
|
697
|
-
r && i.appendChild(r), r = null, a = 0;
|
|
698
|
-
}, l = (d, s, c) => {
|
|
699
|
-
var p;
|
|
700
|
-
return d.dividido && ((p = d.filhos) != null && p.length) ? rt(this.efetivo(d), s, c) : this.criarBotao(d, s, c);
|
|
701
|
-
};
|
|
702
|
-
if (t.itens.forEach((d) => {
|
|
703
|
-
if (d.tipo === "separador") {
|
|
704
|
-
o();
|
|
705
|
-
const s = document.createElement("div");
|
|
706
|
-
s.className = "ui-ribbon__separador", s.setAttribute("role", "separator"), i.appendChild(s);
|
|
707
|
-
} else d.tamanho === "grande" ? (o(), i.appendChild(l(d, "grande", 24))) : (r || (r = document.createElement("div"), r.className = "ui-ribbon__coluna"), r.appendChild(l(d, "pequeno", 16)), ++a === 3 && o());
|
|
708
|
-
}), o(), t.rotulo || t.lancadorDialogo) {
|
|
709
|
-
const d = document.createElement("div");
|
|
710
|
-
if (d.className = "ui-ribbon__grupo-rotulo", t.rotulo && (d.textContent = t.rotulo), t.lancadorDialogo) {
|
|
711
|
-
const s = document.createElement("button");
|
|
712
|
-
s.type = "button", s.className = "ui-ribbon__lancador";
|
|
713
|
-
const c = t.rotuloLancador || `Mais opções de ${t.rotulo || "ferramentas"}`;
|
|
714
|
-
s.setAttribute("aria-label", c), s.dataset.tooltip = c, s.innerHTML = '<svg viewBox="0 0 16 16" width="10" height="10" fill="none" stroke="currentColor" stroke-width="1.5"><path d="M4 12h8V4M12 12l-7-7"/></svg>', s.addEventListener("click", (p) => {
|
|
715
|
-
p.stopPropagation(), this.dispatchEvent(new CustomEvent("ui-grupo-dialogo", {
|
|
716
|
-
detail: { id: typeof t.lancadorDialogo == "string" ? t.lancadorDialogo : t.id, grupo: t },
|
|
717
|
-
bubbles: !0,
|
|
718
|
-
composed: !0
|
|
719
|
-
}));
|
|
720
|
-
}), d.appendChild(s);
|
|
721
|
-
}
|
|
722
|
-
e.appendChild(d);
|
|
723
|
-
}
|
|
724
|
-
return e.appendChild(i), e;
|
|
725
|
-
}
|
|
726
756
|
criarBotao(t, e, i) {
|
|
727
757
|
return j(this.efetivo(t), e, i);
|
|
728
758
|
}
|
|
@@ -740,10 +770,10 @@ class lt extends q {
|
|
|
740
770
|
});
|
|
741
771
|
}
|
|
742
772
|
acionar(t, e) {
|
|
743
|
-
var
|
|
744
|
-
const i = this._abas.find((l) => l.id === this._abaAtiva), r = i == null ? void 0 : i.grupos.find((l) =>
|
|
773
|
+
var n;
|
|
774
|
+
const i = this._abas.find((l) => l.id === this._abaAtiva), r = i == null ? void 0 : i.grupos.find((l) => m(l.itens, t.dataset.id)), a = r && m(r.itens, t.dataset.id);
|
|
745
775
|
if (!(!a || a.disabled)) {
|
|
746
|
-
if ((
|
|
776
|
+
if ((n = a.filhos) != null && n.length && !a.dividido) {
|
|
747
777
|
this.alternarMenu(t, a, e);
|
|
748
778
|
return;
|
|
749
779
|
}
|
|
@@ -751,15 +781,15 @@ class lt extends q {
|
|
|
751
781
|
const l = a.ativo;
|
|
752
782
|
a.ativo = !l, A(t, a), this.emitir(a) || (a.ativo = l, A(t, a));
|
|
753
783
|
} else if (a.tipo === "ferramenta") {
|
|
754
|
-
const l = a.ativo,
|
|
755
|
-
a.ativo = !0, A(t, a),
|
|
756
|
-
|
|
757
|
-
const
|
|
758
|
-
|
|
759
|
-
}), this.emitir(a) || (a.ativo = l, A(t, a),
|
|
760
|
-
|
|
761
|
-
const
|
|
762
|
-
|
|
784
|
+
const l = a.ativo, c = r ? r.exclusivo !== !1 : !0, u = c && r ? r.itens.filter((p) => p.tipo === "ferramenta" && p.id !== a.id && p.ativo) : [];
|
|
785
|
+
a.ativo = !0, A(t, a), c && u.forEach((p) => {
|
|
786
|
+
p.ativo = !1;
|
|
787
|
+
const f = this.gruposElement.querySelector(`.ui-ferr-btn[data-id="${CSS.escape(p.id)}"]`);
|
|
788
|
+
f && A(f, p);
|
|
789
|
+
}), this.emitir(a) || (a.ativo = l, A(t, a), c && u.forEach((p) => {
|
|
790
|
+
p.ativo = !0;
|
|
791
|
+
const f = this.gruposElement.querySelector(`.ui-ferr-btn[data-id="${CSS.escape(p.id)}"]`);
|
|
792
|
+
f && A(f, p);
|
|
763
793
|
}));
|
|
764
794
|
} else
|
|
765
795
|
this.emitir(a);
|
|
@@ -769,16 +799,16 @@ class lt extends q {
|
|
|
769
799
|
alternarMenu(t, e, i) {
|
|
770
800
|
var a;
|
|
771
801
|
const r = ((a = this.menu) == null ? void 0 : a.ancora) === t;
|
|
772
|
-
this.fecharMenu(), !r && (t.setAttribute("aria-expanded", "true"), this.menu =
|
|
802
|
+
this.fecharMenu(), !r && (t.setAttribute("aria-expanded", "true"), this.menu = P(
|
|
773
803
|
this.shadowRoot,
|
|
774
804
|
t,
|
|
775
805
|
e.filhos,
|
|
776
|
-
(
|
|
777
|
-
if (
|
|
778
|
-
const l =
|
|
779
|
-
|
|
806
|
+
(n) => {
|
|
807
|
+
if (n.tipo === "toggle") {
|
|
808
|
+
const l = n.ativo;
|
|
809
|
+
n.ativo = !l, this.emitir(n, e) || (n.ativo = l);
|
|
780
810
|
} else
|
|
781
|
-
this.emitir(
|
|
811
|
+
this.emitir(n, e);
|
|
782
812
|
this.rootElement.classList.remove("ui-ribbon--aberto");
|
|
783
813
|
},
|
|
784
814
|
{
|
|
@@ -806,106 +836,128 @@ class lt extends q {
|
|
|
806
836
|
);
|
|
807
837
|
}
|
|
808
838
|
}
|
|
809
|
-
|
|
810
|
-
const
|
|
811
|
-
class
|
|
839
|
+
N("ui-ribbon", mt);
|
|
840
|
+
const gt = ':host{display:inline-flex;flex-direction:column;max-width:100%;max-height:100%;vertical-align:top;box-sizing:border-box;font-family:var(--ui-fonte-base, "Inter", sans-serif);color:var(--ui-cor-texto, #e1e1e6)}.ui-paleta{--ui-paleta-btn: 34px;--ui-paleta-padding: 4px;--ui-paleta-raio: var(--ui-paleta-raio-borda, 10px);--ui-paleta-btn-raio: var(--ui-paleta-raio-botao, max(2px, calc(var(--ui-paleta-raio) - var(--ui-paleta-padding))));display:flex;flex-direction:column;align-items:center;gap:2px;padding:var(--ui-paleta-padding);box-sizing:border-box;background:var(--ui-cor-superficie, #141417);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:var(--ui-paleta-raio);-webkit-user-select:none;user-select:none;min-width:0;min-height:0;max-width:100%;overflow:auto;scrollbar-width:thin}.ui-paleta--horizontal{flex-direction:row}.ui-paleta--sm{--ui-paleta-btn: 28px;--ui-paleta-raio: var(--ui-paleta-raio-borda, 8px)}.ui-paleta--lg{--ui-paleta-btn: 42px;--ui-paleta-raio: var(--ui-paleta-raio-borda, 12px)}.ui-paleta--cols-2{display:grid;grid-template-columns:repeat(2,var(--ui-paleta-btn));justify-content:center}.ui-paleta--cols-2 .ui-paleta__sep{grid-column:1 / -1}.ui-ferr-btn--grupo:after{content:"";position:absolute;inset-inline-end:3px;bottom:3px;width:0;height:0;border-inline-start:6px solid transparent;border-bottom:6px solid currentColor;opacity:.8;pointer-events:none;transition:opacity .12s ease,transform .12s ease}.ui-ferr-btn--grupo:hover:after,.ui-ferr-btn--grupo:focus-visible:after,.ui-ferr-btn--grupo[aria-expanded=true]:after{opacity:1;transform:scale(1.2);transform-origin:bottom right}.ui-paleta__sep{grid-column:1 / -1}.ui-paleta .ui-ferr-btn{width:var(--ui-paleta-btn);height:var(--ui-paleta-btn);border-radius:var(--ui-paleta-btn-raio)}.ui-paleta .ui-ferr-btn.ui-ferr-btn--ativo,.ui-paleta .ui-ferr-btn.ui-ferr-btn--ativo:hover:not(:disabled),.ui-paleta .ui-ferr-btn.ui-ferr-btn--ativo:active:not(:disabled){background:var(--ui-cor-primaria, #00E08A);border-color:transparent;color:var(--ui-cor-texto-sobre-primaria, #000000)}.ui-paleta .ui-ferr-btn.ui-ferr-btn--ativo:hover:not(:disabled){background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 86%,#fff)}.ui-paleta .ui-ferr-btn.ui-ferr-btn--ativo:active:not(:disabled){background:color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 80%,#000)}.ui-paleta .ui-ferr-btn.ui-ferr-btn--ativo:disabled{background:var(--ui-cor-hover-menu, rgba(255, 255, 255, .08));color:inherit}.ui-ferr-btn--grupo:after{content:"";position:absolute;right:3px;bottom:3px;width:0;height:0;border-left:5px solid transparent;border-bottom:5px solid currentColor;opacity:.7;pointer-events:none}.ui-paleta__sep{width:70%;height:1px;margin:3px 0;background:var(--ui-cor-borda, rgba(255, 255, 255, .12))}.ui-paleta--horizontal .ui-paleta__sep{width:1px;height:70%;margin:0 3px}@media (pointer: coarse){.ui-paleta{--ui-paleta-btn: 40px}.ui-paleta--sm{--ui-paleta-btn: 36px}.ui-paleta--lg{--ui-paleta-btn: 48px}}@media (prefers-reduced-motion: reduce){.ui-ferr-btn--grupo:after{transition:none}}@media (forced-colors: active){.ui-paleta{border-color:CanvasText}.ui-paleta .ui-ferr-btn.ui-ferr-btn--ativo,.ui-paleta .ui-ferr-btn.ui-ferr-btn--ativo:hover:not(:disabled),.ui-paleta .ui-ferr-btn.ui-ferr-btn--ativo:active:not(:disabled){background:Highlight;color:HighlightText;border-color:ButtonText;forced-color-adjust:none}.ui-paleta__sep{background:CanvasText}}', vt = 380, xt = 8, _t = 50;
|
|
841
|
+
class At {
|
|
842
|
+
constructor() {
|
|
843
|
+
d(this, "timer");
|
|
844
|
+
d(this, "timerSupressao");
|
|
845
|
+
d(this, "inicio", null);
|
|
846
|
+
d(this, "suprimir", !1);
|
|
847
|
+
}
|
|
848
|
+
/** Começa a contar; `aoDisparar` roda se o ponteiro ficar parado até `TEMPO_PRESSAO_LONGA_MS`. */
|
|
849
|
+
iniciar(s, t, e) {
|
|
850
|
+
this.cancelar(), window.clearTimeout(this.timerSupressao), this.inicio = { x: s, y: t }, this.timer = window.setTimeout(() => {
|
|
851
|
+
this.suprimir = !0, e();
|
|
852
|
+
}, vt);
|
|
853
|
+
}
|
|
854
|
+
/** Arrastar/rolar com o dedo cancela o clique longo. */
|
|
855
|
+
mover(s, t) {
|
|
856
|
+
this.timer === void 0 || !this.inicio || Math.hypot(s - this.inicio.x, t - this.inicio.y) > xt && this.cancelar();
|
|
857
|
+
}
|
|
858
|
+
/** Fim do gesto: cancela a contagem e, se o flyout abriu, descarta a supressão logo após o `click` residual. */
|
|
859
|
+
fim() {
|
|
860
|
+
this.cancelar(), this.suprimir && (window.clearTimeout(this.timerSupressao), this.timerSupressao = window.setTimeout(() => {
|
|
861
|
+
this.suprimir = !1;
|
|
862
|
+
}, _t));
|
|
863
|
+
}
|
|
864
|
+
cancelar() {
|
|
865
|
+
this.timer !== void 0 && (window.clearTimeout(this.timer), this.timer = void 0), this.inicio = null;
|
|
866
|
+
}
|
|
867
|
+
/** `true` (uma única vez) se o próximo `click` deve ser ignorado por ser o resíduo de uma pressão longa. */
|
|
868
|
+
consumirSupressao() {
|
|
869
|
+
return this.suprimir ? (this.suprimir = !1, window.clearTimeout(this.timerSupressao), !0) : !1;
|
|
870
|
+
}
|
|
871
|
+
destruir() {
|
|
872
|
+
this.cancelar(), window.clearTimeout(this.timerSupressao), this.suprimir = !1;
|
|
873
|
+
}
|
|
874
|
+
}
|
|
875
|
+
function wt(o, s) {
|
|
876
|
+
return o.find(s) ?? o[0];
|
|
877
|
+
}
|
|
878
|
+
const yt = /* @__PURE__ */ new Set(["textbox", "searchbox", "combobox", "spinbutton"]);
|
|
879
|
+
function Et(o) {
|
|
880
|
+
const s = o[0];
|
|
881
|
+
return s && (/^(INPUT|TEXTAREA|SELECT)$/.test(s.tagName) || s.isContentEditable) ? !0 : o.some((t) => {
|
|
882
|
+
var r, a;
|
|
883
|
+
const e = t, i = (r = e.getAttribute) == null ? void 0 : r.call(e, "role");
|
|
884
|
+
return ((a = e.getAttribute) == null ? void 0 : a.call(e, "aria-modal")) === "true" || !!i && yt.has(i);
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
function Ct(o, s, t, e) {
|
|
888
|
+
const i = typeof o == "string" ? { key: o, ctrlKey: !1, metaKey: !1, altKey: !1, shiftKey: !1 } : o;
|
|
889
|
+
if (!i || !i.key) return null;
|
|
890
|
+
const r = s.filter((l) => !l.disabled && U(i, l.atalho));
|
|
891
|
+
if (r.length === 0) return null;
|
|
892
|
+
let a = r[0];
|
|
893
|
+
if (r.length > 1) {
|
|
894
|
+
const l = r.findIndex((c) => c.id === e);
|
|
895
|
+
a = r[(l + 1) % r.length];
|
|
896
|
+
}
|
|
897
|
+
const n = t.find((l) => {
|
|
898
|
+
var c;
|
|
899
|
+
return (c = l.filhos) == null ? void 0 : c.some((u) => u.id === a.id);
|
|
900
|
+
});
|
|
901
|
+
return { alvo: a, pai: n };
|
|
902
|
+
}
|
|
903
|
+
const kt = { sm: 16, md: 18, lg: 22 };
|
|
904
|
+
class St extends $ {
|
|
812
905
|
constructor() {
|
|
813
906
|
super();
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
907
|
+
d(this, "rootElement");
|
|
908
|
+
d(this, "_ferramentas", []);
|
|
909
|
+
d(this, "_ativo", "");
|
|
910
|
+
d(this, "_pendente", "");
|
|
911
|
+
d(this, "visiveis", /* @__PURE__ */ new Map());
|
|
819
912
|
// id do grupo → id do filho exibido
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
h(this, "handleClick", (t) => {
|
|
829
|
-
if (this.suprimirClique) {
|
|
830
|
-
this.suprimirClique = !1, window.clearTimeout(this.timerSupressao);
|
|
831
|
-
return;
|
|
832
|
-
}
|
|
833
|
-
const e = t.target.closest(".ui-ferr-btn"), i = e != null && e.dataset.id ? g(this._ferramentas, e.dataset.id) : void 0;
|
|
913
|
+
d(this, "menu", null);
|
|
914
|
+
d(this, "pressao", new At());
|
|
915
|
+
d(this, "listeners", new M());
|
|
916
|
+
d(this, "tooltip", null);
|
|
917
|
+
d(this, "_modoControlado", !1);
|
|
918
|
+
d(this, "handleClick", (t) => {
|
|
919
|
+
if (this.pressao.consumirSupressao()) return;
|
|
920
|
+
const e = t.target.closest(".ui-ferr-btn"), i = e != null && e.dataset.id ? m(this._ferramentas, e.dataset.id) : void 0;
|
|
834
921
|
if (!e || !i) return;
|
|
835
|
-
const r = e.dataset.grupo ?
|
|
922
|
+
const r = e.dataset.grupo ? m(this._ferramentas, e.dataset.grupo) : void 0;
|
|
836
923
|
this.acionar(i, r);
|
|
837
924
|
});
|
|
838
|
-
|
|
839
|
-
|
|
925
|
+
d(this, "handleFocusIn", (t) => Y(this.botoes(), t.target));
|
|
926
|
+
d(this, "handlePointerDown", (t) => {
|
|
840
927
|
const e = t;
|
|
841
928
|
if (e.pointerType === "mouse" && e.button !== 0) return;
|
|
842
929
|
const i = t.target.closest(".ui-ferr-btn--grupo");
|
|
843
|
-
!i || i.disabled ||
|
|
844
|
-
this.suprimirClique = !0, this.abrirFlyout(i, !1);
|
|
845
|
-
}, dt));
|
|
930
|
+
!i || i.disabled || this.pressao.iniciar(e.clientX ?? 0, e.clientY ?? 0, () => this.abrirFlyout(i, !1));
|
|
846
931
|
});
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
const e = t, i = (e.clientX ?? 0) - this.inicioPressao.x, r = (e.clientY ?? 0) - this.inicioPressao.y;
|
|
851
|
-
Math.hypot(i, r) > ct && this.cancelarPressao();
|
|
852
|
-
});
|
|
853
|
-
/** Fim do gesto: cancela o timer e, se o flyout abriu, descarta a supressão logo após o `click` residual. */
|
|
854
|
-
h(this, "handlePointerFim", () => {
|
|
855
|
-
this.cancelarPressao(), this.suprimirClique && (window.clearTimeout(this.timerSupressao), this.timerSupressao = window.setTimeout(() => {
|
|
856
|
-
this.suprimirClique = !1;
|
|
857
|
-
}, ht));
|
|
858
|
-
});
|
|
859
|
-
h(this, "cancelarPressao", () => {
|
|
860
|
-
this.timerPressao !== void 0 && (window.clearTimeout(this.timerPressao), this.timerPressao = void 0), this.inicioPressao = null;
|
|
932
|
+
d(this, "handlePointerMove", (t) => {
|
|
933
|
+
const e = t;
|
|
934
|
+
this.pressao.mover(e.clientX ?? 0, e.clientY ?? 0);
|
|
861
935
|
});
|
|
862
|
-
|
|
936
|
+
d(this, "handlePointerFim", () => this.pressao.fim());
|
|
937
|
+
d(this, "handleContextMenu", (t) => {
|
|
863
938
|
const e = t.target.closest(".ui-ferr-btn--grupo");
|
|
864
|
-
e && (t.preventDefault(), this.
|
|
939
|
+
e && (t.preventDefault(), this.pressao.cancelar(), this.abrirFlyout(e, !1));
|
|
865
940
|
});
|
|
866
|
-
|
|
941
|
+
d(this, "handleKeyDown", (t) => {
|
|
867
942
|
var l;
|
|
868
943
|
const e = this.getAttribute("orientacao") === "horizontal", i = getComputedStyle(this).direction === "rtl", r = this.colunas;
|
|
869
944
|
if (!e && r === 2) {
|
|
870
945
|
if (at(t, this.botoes(), i)) return;
|
|
871
946
|
} else {
|
|
872
|
-
const
|
|
873
|
-
if (R(t, this.botoes(),
|
|
947
|
+
const c = e ? [i ? "ArrowRight" : "ArrowLeft"] : ["ArrowUp"], u = e ? [i ? "ArrowLeft" : "ArrowRight"] : ["ArrowDown"];
|
|
948
|
+
if (R(t, this.botoes(), c, u)) return;
|
|
874
949
|
}
|
|
875
|
-
const a = e ? "ArrowDown" : i ? "ArrowLeft" : "ArrowRight",
|
|
876
|
-
|
|
950
|
+
const a = e ? "ArrowDown" : i ? "ArrowLeft" : "ArrowRight", n = t.target instanceof HTMLButtonElement ? t.target : null;
|
|
951
|
+
n != null && n.dataset.grupo && t.key === a && (t.preventDefault(), ((l = this.menu) == null ? void 0 : l.ancora) === n ? this.menu.focarPrimeiro() : this.abrirFlyout(n, !0));
|
|
877
952
|
});
|
|
878
|
-
|
|
879
|
-
if (!this.hasAttribute("atalhos") || t.defaultPrevented) return;
|
|
880
|
-
const e = t.
|
|
881
|
-
|
|
882
|
-
var p, m;
|
|
883
|
-
const c = (p = s.getAttribute) == null ? void 0 : p.call(s, "role");
|
|
884
|
-
return ((m = s.getAttribute) == null ? void 0 : m.call(s, "aria-modal")) === "true" || c === "textbox" || c === "searchbox" || c === "combobox" || c === "spinbutton";
|
|
885
|
-
})) return;
|
|
886
|
-
const a = Array.from(document.querySelectorAll("ui-paleta-ferramentas[atalhos]"));
|
|
887
|
-
if (a.length > 1 && (a.find((c) => {
|
|
888
|
-
var p;
|
|
889
|
-
return c.matches(":focus-within") || ((p = c.shadowRoot) == null ? void 0 : p.activeElement);
|
|
890
|
-
}) || a[0]) !== this)
|
|
891
|
-
return;
|
|
892
|
-
const o = this.todasFerramentas().filter((s) => !s.disabled && U(t, s.atalho));
|
|
893
|
-
if (!o.length) return;
|
|
894
|
-
t.preventDefault();
|
|
895
|
-
let l = o[0];
|
|
896
|
-
if (o.length > 1) {
|
|
897
|
-
const s = o.findIndex((c) => c.id === this._ativo);
|
|
898
|
-
l = o[(s + 1) % o.length];
|
|
899
|
-
}
|
|
900
|
-
const d = this._ferramentas.find((s) => {
|
|
901
|
-
var c;
|
|
902
|
-
return (c = s.filhos) == null ? void 0 : c.some((p) => p.id === l.id);
|
|
903
|
-
});
|
|
904
|
-
this.acionar(l, d);
|
|
953
|
+
d(this, "handleAtalho", (t) => {
|
|
954
|
+
if (!this.hasAttribute("atalhos") || t.defaultPrevented || Et(t.composedPath()) || !this.donaDosAtalhos()) return;
|
|
955
|
+
const e = Ct(t, this.todasFerramentas(), this._ferramentas, this._ativo);
|
|
956
|
+
e && (t.preventDefault(), this.acionar(e.alvo, e.pai));
|
|
905
957
|
});
|
|
906
958
|
const t = this.attachShadow({ mode: "open" });
|
|
907
959
|
t.innerHTML = `
|
|
908
|
-
<style>${
|
|
960
|
+
<style>${V}${gt}</style>
|
|
909
961
|
<div class="ui-paleta ui-paleta--vertical" role="toolbar" aria-orientation="vertical" aria-label="Ferramentas"></div>
|
|
910
962
|
`, this.rootElement = t.querySelector(".ui-paleta");
|
|
911
963
|
}
|
|
@@ -920,7 +972,7 @@ class pt extends q {
|
|
|
920
972
|
}
|
|
921
973
|
disconnectedCallback() {
|
|
922
974
|
var t;
|
|
923
|
-
this.
|
|
975
|
+
this.pressao.destruir(), this.fecharMenu(), (t = this.tooltip) == null || t.destruir(), this.tooltip = null, this.listeners.cleanup();
|
|
924
976
|
}
|
|
925
977
|
attributeChangedCallback(t, e, i) {
|
|
926
978
|
if (e !== i)
|
|
@@ -955,7 +1007,7 @@ class pt extends q {
|
|
|
955
1007
|
this._ferramentas = this.modoControlado ? e.map((i) => {
|
|
956
1008
|
var r;
|
|
957
1009
|
return { ...i, filhos: (r = i.filhos) == null ? void 0 : r.map((a) => ({ ...a })) };
|
|
958
|
-
}) : e,
|
|
1010
|
+
}) : e, T(q(this._ferramentas), "<ui-paleta-ferramentas> ferramentas"), this.visiveis.clear(), this._pendente ? this.aplicarPendente() : this._ativo && this.definirAtivoInterno(this._ativo), this.renderizar();
|
|
959
1011
|
}
|
|
960
1012
|
get valor() {
|
|
961
1013
|
return this._ativo;
|
|
@@ -997,7 +1049,7 @@ class pt extends q {
|
|
|
997
1049
|
this.limpar(e);
|
|
998
1050
|
return;
|
|
999
1051
|
}
|
|
1000
|
-
const i =
|
|
1052
|
+
const i = m(this._ferramentas, t);
|
|
1001
1053
|
if (!i) {
|
|
1002
1054
|
this._ferramentas.length ? console.warn(`[ui-paleta-ferramentas] ativar("${t}"): ferramenta não encontrada.`) : this._pendente = t;
|
|
1003
1055
|
return;
|
|
@@ -1016,24 +1068,24 @@ class pt extends q {
|
|
|
1016
1068
|
!e && !this._pendente || (this._ativo = "", this._pendente = "", this.removeAttribute("valor"), this.removeAttribute("value"), this.renderizar(), t && e && this.emitirMudanca("", null, e));
|
|
1017
1069
|
}
|
|
1018
1070
|
atualizarItem(t, e) {
|
|
1019
|
-
var
|
|
1020
|
-
const i =
|
|
1071
|
+
var n;
|
|
1072
|
+
const i = m(this._ferramentas, t);
|
|
1021
1073
|
if (!i) {
|
|
1022
1074
|
console.warn(`[ui-paleta-ferramentas] atualizarItem("${t}"): item não encontrado.`);
|
|
1023
1075
|
return;
|
|
1024
1076
|
}
|
|
1025
1077
|
Object.assign(i, e);
|
|
1026
1078
|
const r = Object.keys(e).every((l) => l === "ativo" || l === "disabled"), a = this._ferramentas.find((l) => {
|
|
1027
|
-
var
|
|
1028
|
-
return (
|
|
1079
|
+
var c;
|
|
1080
|
+
return (c = l.filhos) == null ? void 0 : c.some((u) => u.id === t);
|
|
1029
1081
|
});
|
|
1030
1082
|
if (r && !(a && "disabled" in e)) {
|
|
1031
|
-
const l = this.botoes().find((
|
|
1083
|
+
const l = this.botoes().find((c) => c.dataset.id === t || c.dataset.grupo === t);
|
|
1032
1084
|
if (l) {
|
|
1033
1085
|
A(l, this.itemParaBotao(a ?? i)), W(this.botoes());
|
|
1034
1086
|
return;
|
|
1035
1087
|
}
|
|
1036
|
-
if (a || (
|
|
1088
|
+
if (a || (n = i.filhos) != null && n.length) return;
|
|
1037
1089
|
}
|
|
1038
1090
|
this.renderizar();
|
|
1039
1091
|
}
|
|
@@ -1044,7 +1096,7 @@ class pt extends q {
|
|
|
1044
1096
|
}
|
|
1045
1097
|
aplicarPendente() {
|
|
1046
1098
|
if (!this._pendente) return;
|
|
1047
|
-
const t =
|
|
1099
|
+
const t = m(this._ferramentas, this._pendente);
|
|
1048
1100
|
t && !t.disabled && (t.tipo ?? "ferramenta") === "ferramenta" ? (this.definirAtivoInterno(this._pendente), this._pendente = "") : this._ferramentas.length && (console.warn(`[ui-paleta-ferramentas] valor="${this._pendente}" não é uma ferramenta ativável em "ferramentas".`), this._pendente = "");
|
|
1049
1101
|
}
|
|
1050
1102
|
definirAtivoInterno(t) {
|
|
@@ -1063,8 +1115,8 @@ class pt extends q {
|
|
|
1063
1115
|
itemExibido(t) {
|
|
1064
1116
|
var a;
|
|
1065
1117
|
if (!((a = t.filhos) != null && a.length)) return t;
|
|
1066
|
-
const e = (
|
|
1067
|
-
return (r && e(r) ? r : void 0) ?? t.filhos.find(e) ?? t.filhos.find((
|
|
1118
|
+
const e = (n) => n.tipo !== "separador" && !n.disabled, i = this.visiveis.get(t.id), r = t.filhos.find((n) => n.id === i);
|
|
1119
|
+
return (r && e(r) ? r : void 0) ?? t.filhos.find(e) ?? t.filhos.find((n) => n.tipo !== "separador") ?? t.filhos[0];
|
|
1068
1120
|
}
|
|
1069
1121
|
itemParaBotao(t) {
|
|
1070
1122
|
const e = this.itemExibido(t), i = e.tipo ?? "ferramenta";
|
|
@@ -1083,26 +1135,26 @@ class pt extends q {
|
|
|
1083
1135
|
}
|
|
1084
1136
|
/* ---------- Renderização ---------- */
|
|
1085
1137
|
renderizar() {
|
|
1086
|
-
var
|
|
1087
|
-
const t = (
|
|
1138
|
+
var c;
|
|
1139
|
+
const t = (c = this.shadowRoot) == null ? void 0 : c.activeElement, e = t && t.classList.contains("ui-ferr-btn") ? { id: t.dataset.id ?? "", grupo: t.dataset.grupo ?? "" } : null;
|
|
1088
1140
|
this.fecharMenu();
|
|
1089
1141
|
const i = this.orientacao, r = this.tamanho, a = this.colunas;
|
|
1090
1142
|
this.rootElement.className = `ui-paleta ui-paleta--${i} ui-paleta--${r}`, a === 2 && i === "vertical" && this.rootElement.classList.add("ui-paleta--cols-2"), this.rootElement.setAttribute("aria-orientation", i), this.rootElement.setAttribute("aria-label", this.getAttribute("aria-label") || "Ferramentas"), this.rootElement.innerHTML = "";
|
|
1091
|
-
const
|
|
1092
|
-
this._ferramentas.forEach((
|
|
1093
|
-
var
|
|
1094
|
-
if (
|
|
1143
|
+
const n = kt[r] ?? 18;
|
|
1144
|
+
this._ferramentas.forEach((u) => {
|
|
1145
|
+
var g;
|
|
1146
|
+
if (u.tipo === "separador") {
|
|
1095
1147
|
const _ = document.createElement("div");
|
|
1096
1148
|
_.className = "ui-paleta__sep", _.setAttribute("role", "separator"), this.rootElement.appendChild(_);
|
|
1097
1149
|
return;
|
|
1098
1150
|
}
|
|
1099
|
-
const
|
|
1100
|
-
|
|
1151
|
+
const p = this.itemExibido(u), f = j(this.itemParaBotao(u), "paleta", n);
|
|
1152
|
+
f.dataset.id = p.id, (g = u.filhos) != null && g.length && (f.dataset.grupo = u.id), this.rootElement.appendChild(f);
|
|
1101
1153
|
}), F(this.botoes());
|
|
1102
|
-
const l = this.botoes().find((
|
|
1103
|
-
if (l && (this.botoes().forEach((
|
|
1104
|
-
const
|
|
1105
|
-
|
|
1154
|
+
const l = this.botoes().find((u) => u.dataset.id === this._ativo && !u.disabled);
|
|
1155
|
+
if (l && (this.botoes().forEach((u) => u.tabIndex = -1), l.tabIndex = 0), e) {
|
|
1156
|
+
const u = this.botoes().find((p) => e.grupo ? p.dataset.grupo === e.grupo : p.dataset.id === e.id);
|
|
1157
|
+
u && !u.disabled && u.focus();
|
|
1106
1158
|
}
|
|
1107
1159
|
}
|
|
1108
1160
|
botoes() {
|
|
@@ -1132,23 +1184,31 @@ class pt extends q {
|
|
|
1132
1184
|
})
|
|
1133
1185
|
) || (i === "ferramenta" && r !== t.id ? r ? this.ativar(r) : this.limpar() : i === "toggle" && (t.ativo = a, this.atualizarBotaoDe(t, e)));
|
|
1134
1186
|
}
|
|
1187
|
+
/** Várias paletas com `atalhos` na página: só a que contém o foco (ou a primeira no DOM) responde. */
|
|
1188
|
+
donaDosAtalhos() {
|
|
1189
|
+
const t = Array.from(document.querySelectorAll("ui-paleta-ferramentas[atalhos]"));
|
|
1190
|
+
return t.length <= 1 ? !0 : wt(t, (e) => {
|
|
1191
|
+
var i;
|
|
1192
|
+
return e.matches(":focus-within") || !!((i = e.shadowRoot) != null && i.activeElement);
|
|
1193
|
+
}) === this;
|
|
1194
|
+
}
|
|
1135
1195
|
abrirFlyout(t, e) {
|
|
1136
1196
|
var a;
|
|
1137
|
-
const i = t.dataset.grupo ?
|
|
1197
|
+
const i = t.dataset.grupo ? m(this._ferramentas, t.dataset.grupo) : void 0;
|
|
1138
1198
|
if (!((a = i == null ? void 0 : i.filhos) != null && a.length)) return;
|
|
1139
1199
|
this.fecharMenu();
|
|
1140
|
-
const r = i.filhos.map((
|
|
1141
|
-
...
|
|
1142
|
-
ativo: (
|
|
1200
|
+
const r = i.filhos.map((n) => ({
|
|
1201
|
+
...n,
|
|
1202
|
+
ativo: (n.tipo ?? "ferramenta") === "ferramenta" ? n.id === this._ativo : n.ativo
|
|
1143
1203
|
}));
|
|
1144
|
-
t.setAttribute("aria-expanded", "true"), this.menu =
|
|
1204
|
+
t.setAttribute("aria-expanded", "true"), this.menu = P(
|
|
1145
1205
|
this.shadowRoot,
|
|
1146
1206
|
t,
|
|
1147
1207
|
r,
|
|
1148
|
-
(
|
|
1149
|
-
var
|
|
1150
|
-
const l =
|
|
1151
|
-
l && (this.acionar(l, i), (
|
|
1208
|
+
(n) => {
|
|
1209
|
+
var c;
|
|
1210
|
+
const l = m(i.filhos, n.id);
|
|
1211
|
+
l && (this.acionar(l, i), (c = this.botoes().find((u) => u.dataset.grupo === i.id)) == null || c.focus());
|
|
1152
1212
|
},
|
|
1153
1213
|
{
|
|
1154
1214
|
lado: this.getAttribute("orientacao") === "horizontal" ? "baixo" : "direita",
|
|
@@ -1165,9 +1225,9 @@ class pt extends q {
|
|
|
1165
1225
|
(t = this.menu) == null || t.fechar(), this.menu = null;
|
|
1166
1226
|
}
|
|
1167
1227
|
}
|
|
1168
|
-
|
|
1228
|
+
N("ui-paleta-ferramentas", St);
|
|
1169
1229
|
export {
|
|
1170
1230
|
et as U,
|
|
1171
|
-
|
|
1172
|
-
|
|
1231
|
+
St as a,
|
|
1232
|
+
mt as b
|
|
1173
1233
|
};
|