@thibezer/ui-components-kit 2.24.1 → 2.25.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.
Files changed (154) hide show
  1. package/CHANGELOG.md +83 -1
  2. package/dist/botao.cjs +12 -1
  3. package/dist/botao.js +162 -3
  4. package/dist/camadas.cjs +311 -1
  5. package/dist/camadas.js +3244 -148
  6. package/dist/campo-texto.cjs +16 -1
  7. package/dist/campo-texto.js +308 -7
  8. package/dist/canvas.cjs +22 -22
  9. package/dist/canvas.js +230 -233
  10. package/dist/card.cjs +20 -1
  11. package/dist/card.js +145 -2
  12. package/dist/components/ui-canvas-prancha/index.d.ts +1 -1
  13. package/dist/components/ui-canvas-prancha/prancha-teclado.d.ts +26 -0
  14. package/dist/components/ui-canvas-prancha/ui-canvas-prancha-base.d.ts +9 -0
  15. package/dist/components/ui-canvas-prancha/ui-canvas-prancha.d.ts +2 -2
  16. package/dist/components/ui-editor-prancha/editor-barra.d.ts +19 -0
  17. package/dist/components/ui-editor-prancha/editor-modos.d.ts +35 -0
  18. package/dist/components/ui-editor-prancha/editor-tipos.d.ts +4 -0
  19. package/dist/components/ui-editor-prancha/index.d.ts +1 -0
  20. package/dist/components/ui-editor-prancha/ui-editor-prancha.d.ts +63 -7
  21. package/dist/core/alvo-digitavel.d.ts +3 -0
  22. package/dist/core.cjs +1 -1
  23. package/dist/core.js +43 -54
  24. package/dist/{cores-utils-BrdynxRd.js → cores-utils-DMyqWvZh.js} +2 -2
  25. package/dist/cores.cjs +32 -1
  26. package/dist/cores.js +300 -13
  27. package/dist/custom-elements.json +11945 -11071
  28. package/dist/data.cjs +28 -1
  29. package/dist/data.js +286 -99
  30. package/dist/{feature_caixa-2Sxv3tGa.js → feature_caixa-BVc5LenS.js} +42 -42
  31. package/dist/{feature_desenho-BVHivWIB.js → feature_desenho-CC8Mp5Gp.js} +2 -2
  32. package/dist/feedback.cjs +52 -1
  33. package/dist/feedback.js +655 -25
  34. package/dist/forms.cjs +66 -1
  35. package/dist/forms.js +1216 -39
  36. package/dist/{geometria-px-DUs5FgLE.js → geometria-px-DHMPUsxC.js} +47 -47
  37. package/dist/index.cjs +67 -1
  38. package/dist/index.js +1476 -274
  39. package/dist/kit-base-BmkPi5Rz.cjs +2 -0
  40. package/dist/kit-base-CBXA66aM.js +1084 -0
  41. package/dist/mapa.cjs +5 -5
  42. package/dist/mapa.js +16 -17
  43. package/dist/modal.cjs +18 -1
  44. package/dist/modal.js +235 -29
  45. package/dist/motor.js +49 -49
  46. package/dist/prancha-nucleo.cjs +3 -1
  47. package/dist/prancha-nucleo.js +3120 -277
  48. package/dist/prancha.cjs +38 -1
  49. package/dist/prancha.js +3470 -228
  50. package/dist/register.cjs +1 -1
  51. package/dist/register.js +3 -20
  52. package/dist/seletor-mapa-base.cjs +13 -13
  53. package/dist/seletor-mapa-base.js +3 -5
  54. package/dist/tabela.cjs +142 -1
  55. package/dist/tabela.js +3773 -92
  56. package/dist/tipos-elementos.d.ts +7 -3
  57. package/dist/tipos-vue.d.ts +6 -3
  58. package/dist/tools.cjs +16 -1
  59. package/dist/tools.js +1564 -26
  60. package/dist/{ui-seletor-cor-Cd8jkzXG.js → ui-seletor-cor-CPjA9vhZ.js} +8 -9
  61. package/dist/ui-seletor-cor-D_ifitEN.cjs +83 -0
  62. package/dist/utils-ClVgqVyJ.cjs +1 -0
  63. package/dist/utils-DrHoxxmf.js +83 -0
  64. package/package.json +43 -2
  65. package/dist/acessibilidade-CSzX-DkG.cjs +0 -1
  66. package/dist/acessibilidade-CUlSXc2X.js +0 -38
  67. package/dist/altura-controle-ukMRPckR.cjs +0 -1
  68. package/dist/altura-controle-vxQiXG4q.js +0 -62
  69. package/dist/alvo-digitavel-CzCvNVQ3.js +0 -23
  70. package/dist/alvo-digitavel-DbH0hYFf.cjs +0 -1
  71. package/dist/degrade-CIxvOTUv.cjs +0 -1
  72. package/dist/degrade-gDa5sW__.js +0 -119
  73. package/dist/feature_caixa-CnYPKVFS.cjs +0 -1
  74. package/dist/feature_caixa-DCs9ZeSk.js +0 -1038
  75. package/dist/feature_historico-BAIYk1Me.cjs +0 -3
  76. package/dist/feature_historico-C4h9y5fu.js +0 -3039
  77. package/dist/form-atalhos-7JTYvumA.cjs +0 -1
  78. package/dist/form-atalhos-DDTlpgaB.js +0 -203
  79. package/dist/form-erros-CwPz7Jr4.cjs +0 -1
  80. package/dist/form-erros-DT5HklfD.js +0 -184
  81. package/dist/form-submissao-C-SPRKgT.js +0 -61
  82. package/dist/form-submissao-DxKO5MHI.cjs +0 -1
  83. package/dist/form-validacao-BlQFxUVj.js +0 -104
  84. package/dist/form-validacao-DIeyQVH5.cjs +0 -1
  85. package/dist/geometria-px-DKrWq_XY.js +0 -639
  86. package/dist/leaflet-CEPcxGWV.cjs +0 -1
  87. package/dist/leaflet-DOq10gfg.js +0 -84
  88. package/dist/leaflet-loader-94z5VsdY.cjs +0 -2
  89. package/dist/leaflet-loader-Cjcdgj5R.js +0 -21
  90. package/dist/listener-bag-D5omxZ9h.cjs +0 -1
  91. package/dist/listener-bag-DQgv7OON.js +0 -34
  92. package/dist/motor-By2te6PZ.js +0 -1400
  93. package/dist/motor-CkMxd378.cjs +0 -1
  94. package/dist/opcoes-CupvWVIm.js +0 -24
  95. package/dist/opcoes-vdAUY5OI.cjs +0 -1
  96. package/dist/parts-CaoQiCfI.js +0 -7
  97. package/dist/parts-vQa2873h.cjs +0 -1
  98. package/dist/prancha-paleta-BZ-9QDgh.js +0 -5276
  99. package/dist/prancha-paleta-Bb24vP71.cjs +0 -17
  100. package/dist/ssr-safe-5cWfJP-s.js +0 -10
  101. package/dist/ssr-safe-CiHD1adl.cjs +0 -1
  102. package/dist/svg-seguro-ChVJ2L2z.js +0 -74
  103. package/dist/svg-seguro-J2RM1Ssf.cjs +0 -1
  104. package/dist/ui-badge-DE58YSBY.cjs +0 -28
  105. package/dist/ui-badge-KgmI3jOD.js +0 -201
  106. package/dist/ui-botao-Dz8YvmiA.cjs +0 -12
  107. package/dist/ui-botao-zLkcMMyP.js +0 -168
  108. package/dist/ui-bus-CUd99VJi.js +0 -177
  109. package/dist/ui-bus-XqBLlTYQ.cjs +0 -1
  110. package/dist/ui-camadas-DoHPnbQm.js +0 -3133
  111. package/dist/ui-camadas-Vx7wYD4D.cjs +0 -311
  112. package/dist/ui-campo-texto-Dliyt9qr.cjs +0 -16
  113. package/dist/ui-campo-texto-btevggO3.js +0 -379
  114. package/dist/ui-card-7IEYbCN0.js +0 -150
  115. package/dist/ui-card-Bx8EyzYY.cjs +0 -20
  116. package/dist/ui-card-C-EJoKnm.js +0 -150
  117. package/dist/ui-card-DFnRp9bl.js +0 -146
  118. package/dist/ui-card-DrWVJQKw.cjs +0 -20
  119. package/dist/ui-card-DsIjHMmG.cjs +0 -20
  120. package/dist/ui-controle-cores-B1w_Yl69.cjs +0 -32
  121. package/dist/ui-controle-cores-BRjMvmMn.js +0 -291
  122. package/dist/ui-controle-cores-BcH9k2Fa.js +0 -292
  123. package/dist/ui-controle-cores-CvSTP6gJ.cjs +0 -32
  124. package/dist/ui-editor-prancha-CIngI6yI.js +0 -2886
  125. package/dist/ui-editor-prancha-DorSe6sC.cjs +0 -31
  126. package/dist/ui-linha-2kY7TNUJ.cjs +0 -38
  127. package/dist/ui-linha-B4mBRm1x.cjs +0 -61
  128. package/dist/ui-linha-DTEIIww4.js +0 -1167
  129. package/dist/ui-linha-KFF86FW5.js +0 -752
  130. package/dist/ui-modal-BrXzVZ65.js +0 -216
  131. package/dist/ui-modal-lARKzEVZ.cjs +0 -18
  132. package/dist/ui-paleta-ferramentas-Bu6JaT0s.js +0 -1245
  133. package/dist/ui-paleta-ferramentas-D3Jhwt26.cjs +0 -21
  134. package/dist/ui-paleta-ferramentas-DebHYiwd.js +0 -1615
  135. package/dist/ui-paleta-ferramentas-Dgejtluh.js +0 -1423
  136. package/dist/ui-paleta-ferramentas-hzyo8wBt.cjs +0 -22
  137. package/dist/ui-paleta-ferramentas-jWuICjW8.cjs +0 -22
  138. package/dist/ui-seletor-cor-0RLjcME6.cjs +0 -83
  139. package/dist/ui-seletor-cor-CMuuW-Ym.cjs +0 -83
  140. package/dist/ui-seletor-cor-DFIQ1sin.js +0 -405
  141. package/dist/ui-skeleton-BLEV6h3k.js +0 -653
  142. package/dist/ui-skeleton-B_XTaGrX.cjs +0 -52
  143. package/dist/ui-switch-BXIDwC-Y.cjs +0 -66
  144. package/dist/ui-switch-Ctxk-jKS.js +0 -1212
  145. package/dist/ui-tabela-CXxqbwXv.cjs +0 -7
  146. package/dist/ui-tabela-Cd0vOwnT.js +0 -1459
  147. package/dist/ui-tabela-propriedades-C5cIF5ES.js +0 -3779
  148. package/dist/ui-tabela-propriedades-CJyo568n.js +0 -3517
  149. package/dist/ui-tabela-propriedades-D96Djx-q.cjs +0 -136
  150. package/dist/ui-tabela-propriedades-Wa34hfIr.cjs +0 -142
  151. package/dist/ui-tabela-propriedades-ahQhQauu.js +0 -2329
  152. package/dist/ui-tabela-propriedades-w9JWhjHy.cjs +0 -142
  153. package/dist/zero-js-triggers-CJT988bR.js +0 -83
  154. package/dist/zero-js-triggers-CgM9IIQB.cjs +0 -1
@@ -1,83 +0,0 @@
1
- import { U as i } from "./ui-bus-CUd99VJi.js";
2
- let h = !1;
3
- function p(o) {
4
- if (o.hasAttribute("disabled") || o.hasAttribute("carregando") || o.getAttribute("aria-disabled") === "true" || o.localName.startsWith("ui-") && o.hasAttribute("loading")) return !0;
5
- try {
6
- return o.matches(":disabled");
7
- } catch {
8
- return !1;
9
- }
10
- }
11
- function v() {
12
- h || typeof document > "u" || (h = !0, document.addEventListener("click", (o) => {
13
- const n = o.composedPath ? o.composedPath() : [o.target], A = "[target-modal], [modal-alvo], [dismiss-modal], [fechar-modal], [target-drawer], [drawer-alvo], [dismiss-drawer], [fechar-drawer], [toast-sucesso], [toast-erro], [toast-alerta], [toast-info], [copiar-texto], [alternar-tema], [definir-densidade], [limpar-form]";
14
- let t = null;
15
- for (const r of n)
16
- if (r instanceof HTMLElement && r.matches(A)) {
17
- t = r;
18
- break;
19
- }
20
- if (!t || p(t)) return;
21
- const c = t.getAttribute("target-modal") || t.getAttribute("modal-alvo");
22
- if (c && i.abrirModal(c), t.hasAttribute("dismiss-modal") || t.hasAttribute("fechar-modal")) {
23
- const r = t.getAttribute("dismiss-modal") || t.getAttribute("fechar-modal");
24
- if (r && r !== "")
25
- i.fecharModal(r);
26
- else {
27
- let a = null;
28
- for (const e of n)
29
- if (e instanceof HTMLElement && (e.matches("ui-modal, ui-dialog") || e.tagName === "UI-MODAL" || e.tagName === "UI-DIALOG")) {
30
- a = e;
31
- break;
32
- }
33
- a && (typeof a.fechar == "function" ? a.fechar() : (a.removeAttribute("aberto"), a.removeAttribute("open")));
34
- }
35
- }
36
- const f = t.getAttribute("target-drawer") || t.getAttribute("drawer-alvo");
37
- if (f && i.abrirDrawer(f), t.hasAttribute("dismiss-drawer") || t.hasAttribute("fechar-drawer")) {
38
- const r = t.getAttribute("dismiss-drawer") || t.getAttribute("fechar-drawer");
39
- if (r && r !== "")
40
- i.fecharDrawer(r);
41
- else {
42
- let a = null;
43
- for (const e of n)
44
- if (e instanceof HTMLElement && (e.matches("ui-drawer, ui-sheet, ui-painel-lateral, ui-gaveta") || e.tagName.startsWith("UI-DRAWER") || e.tagName.startsWith("UI-SHEET"))) {
45
- a = e;
46
- break;
47
- }
48
- a && (typeof a.fechar == "function" ? a.fechar() : (a.removeAttribute("aberto"), a.removeAttribute("open")));
49
- }
50
- }
51
- const d = t.getAttribute("toast-sucesso");
52
- d && i.notificar({ tipo: "sucesso", mensagem: d });
53
- const l = t.getAttribute("toast-erro");
54
- l && i.notificar({ tipo: "erro", mensagem: l });
55
- const m = t.getAttribute("toast-alerta");
56
- m && i.notificar({ tipo: "alerta", mensagem: m });
57
- const u = t.getAttribute("toast-info");
58
- u && i.notificar({ tipo: "info", mensagem: u });
59
- const s = t.getAttribute("copiar-texto");
60
- if (s !== null) {
61
- let r = s;
62
- if (s.startsWith("#") || s.startsWith(".") || s.match(/^[a-zA-Z0-9_-]+$/))
63
- try {
64
- let e = null;
65
- s.startsWith("#") || s.startsWith(".") ? e = document.querySelector(s) : e = document.getElementById(s) || document.querySelector(`#${s}`), e && (r = e.value !== void 0 && e.value !== null ? e.value : e.textContent || "");
66
- } catch {
67
- }
68
- const a = t.getAttribute("copiar-mensagem") || "Copiado com sucesso!";
69
- i.copiar(r, a);
70
- }
71
- t.hasAttribute("alternar-tema") && i.definirTema();
72
- const g = t.getAttribute("definir-densidade");
73
- g && i.definirDensidade(g);
74
- const b = t.getAttribute("limpar-form");
75
- if (b) {
76
- const r = document.getElementById(b);
77
- r && typeof r.reset == "function" && (r.reset(), i.notificar({ tipo: "info", mensagem: "Formulário limpo." }));
78
- }
79
- }));
80
- }
81
- export {
82
- v as i
83
- };
@@ -1 +0,0 @@
1
- "use strict";const i=require("./ui-bus-XqBLlTYQ.cjs");let h=!1;function p(o){if(o.hasAttribute("disabled")||o.hasAttribute("carregando")||o.getAttribute("aria-disabled")==="true"||o.localName.startsWith("ui-")&&o.hasAttribute("loading"))return!0;try{return o.matches(":disabled")}catch{return!1}}function I(){h||typeof document>"u"||(h=!0,document.addEventListener("click",o=>{const n=o.composedPath?o.composedPath():[o.target],A="[target-modal], [modal-alvo], [dismiss-modal], [fechar-modal], [target-drawer], [drawer-alvo], [dismiss-drawer], [fechar-drawer], [toast-sucesso], [toast-erro], [toast-alerta], [toast-info], [copiar-texto], [alternar-tema], [definir-densidade], [limpar-form]";let t=null;for(const r of n)if(r instanceof HTMLElement&&r.matches(A)){t=r;break}if(!t||p(t))return;const u=t.getAttribute("target-modal")||t.getAttribute("modal-alvo");if(u&&i.UIBus.abrirModal(u),t.hasAttribute("dismiss-modal")||t.hasAttribute("fechar-modal")){const r=t.getAttribute("dismiss-modal")||t.getAttribute("fechar-modal");if(r&&r!=="")i.UIBus.fecharModal(r);else{let a=null;for(const e of n)if(e instanceof HTMLElement&&(e.matches("ui-modal, ui-dialog")||e.tagName==="UI-MODAL"||e.tagName==="UI-DIALOG")){a=e;break}a&&(typeof a.fechar=="function"?a.fechar():(a.removeAttribute("aberto"),a.removeAttribute("open")))}}const c=t.getAttribute("target-drawer")||t.getAttribute("drawer-alvo");if(c&&i.UIBus.abrirDrawer(c),t.hasAttribute("dismiss-drawer")||t.hasAttribute("fechar-drawer")){const r=t.getAttribute("dismiss-drawer")||t.getAttribute("fechar-drawer");if(r&&r!=="")i.UIBus.fecharDrawer(r);else{let a=null;for(const e of n)if(e instanceof HTMLElement&&(e.matches("ui-drawer, ui-sheet, ui-painel-lateral, ui-gaveta")||e.tagName.startsWith("UI-DRAWER")||e.tagName.startsWith("UI-SHEET"))){a=e;break}a&&(typeof a.fechar=="function"?a.fechar():(a.removeAttribute("aberto"),a.removeAttribute("open")))}}const f=t.getAttribute("toast-sucesso");f&&i.UIBus.notificar({tipo:"sucesso",mensagem:f});const d=t.getAttribute("toast-erro");d&&i.UIBus.notificar({tipo:"erro",mensagem:d});const l=t.getAttribute("toast-alerta");l&&i.UIBus.notificar({tipo:"alerta",mensagem:l});const m=t.getAttribute("toast-info");m&&i.UIBus.notificar({tipo:"info",mensagem:m});const s=t.getAttribute("copiar-texto");if(s!==null){let r=s;if(s.startsWith("#")||s.startsWith(".")||s.match(/^[a-zA-Z0-9_-]+$/))try{let e=null;s.startsWith("#")||s.startsWith(".")?e=document.querySelector(s):e=document.getElementById(s)||document.querySelector(`#${s}`),e&&(r=e.value!==void 0&&e.value!==null?e.value:e.textContent||"")}catch{}const a=t.getAttribute("copiar-mensagem")||"Copiado com sucesso!";i.UIBus.copiar(r,a)}t.hasAttribute("alternar-tema")&&i.UIBus.definirTema();const g=t.getAttribute("definir-densidade");g&&i.UIBus.definirDensidade(g);const b=t.getAttribute("limpar-form");if(b){const r=document.getElementById(b);r&&typeof r.reset=="function"&&(r.reset(),i.UIBus.notificar({tipo:"info",mensagem:"Formulário limpo."}))}}))}exports.initZeroJSTriggers=I;