@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.
- package/CHANGELOG.md +83 -1
- package/dist/botao.cjs +12 -1
- package/dist/botao.js +162 -3
- package/dist/camadas.cjs +311 -1
- package/dist/camadas.js +3244 -148
- package/dist/campo-texto.cjs +16 -1
- package/dist/campo-texto.js +308 -7
- package/dist/canvas.cjs +22 -22
- package/dist/canvas.js +230 -233
- package/dist/card.cjs +20 -1
- package/dist/card.js +145 -2
- package/dist/components/ui-canvas-prancha/index.d.ts +1 -1
- package/dist/components/ui-canvas-prancha/prancha-teclado.d.ts +26 -0
- package/dist/components/ui-canvas-prancha/ui-canvas-prancha-base.d.ts +9 -0
- package/dist/components/ui-canvas-prancha/ui-canvas-prancha.d.ts +2 -2
- package/dist/components/ui-editor-prancha/editor-barra.d.ts +19 -0
- package/dist/components/ui-editor-prancha/editor-modos.d.ts +35 -0
- package/dist/components/ui-editor-prancha/editor-tipos.d.ts +4 -0
- package/dist/components/ui-editor-prancha/index.d.ts +1 -0
- package/dist/components/ui-editor-prancha/ui-editor-prancha.d.ts +63 -7
- package/dist/core/alvo-digitavel.d.ts +3 -0
- package/dist/core.cjs +1 -1
- package/dist/core.js +43 -54
- package/dist/{cores-utils-BrdynxRd.js → cores-utils-DMyqWvZh.js} +2 -2
- package/dist/cores.cjs +32 -1
- package/dist/cores.js +300 -13
- package/dist/custom-elements.json +11945 -11071
- package/dist/data.cjs +28 -1
- package/dist/data.js +286 -99
- package/dist/{feature_caixa-2Sxv3tGa.js → feature_caixa-BVc5LenS.js} +42 -42
- package/dist/{feature_desenho-BVHivWIB.js → feature_desenho-CC8Mp5Gp.js} +2 -2
- package/dist/feedback.cjs +52 -1
- package/dist/feedback.js +655 -25
- package/dist/forms.cjs +66 -1
- package/dist/forms.js +1216 -39
- package/dist/{geometria-px-DUs5FgLE.js → geometria-px-DHMPUsxC.js} +47 -47
- package/dist/index.cjs +67 -1
- package/dist/index.js +1476 -274
- package/dist/kit-base-BmkPi5Rz.cjs +2 -0
- package/dist/kit-base-CBXA66aM.js +1084 -0
- package/dist/mapa.cjs +5 -5
- package/dist/mapa.js +16 -17
- package/dist/modal.cjs +18 -1
- package/dist/modal.js +235 -29
- package/dist/motor.js +49 -49
- package/dist/prancha-nucleo.cjs +3 -1
- package/dist/prancha-nucleo.js +3120 -277
- package/dist/prancha.cjs +38 -1
- package/dist/prancha.js +3470 -228
- package/dist/register.cjs +1 -1
- package/dist/register.js +3 -20
- package/dist/seletor-mapa-base.cjs +13 -13
- package/dist/seletor-mapa-base.js +3 -5
- package/dist/tabela.cjs +142 -1
- package/dist/tabela.js +3773 -92
- package/dist/tipos-elementos.d.ts +7 -3
- package/dist/tipos-vue.d.ts +6 -3
- package/dist/tools.cjs +16 -1
- package/dist/tools.js +1564 -26
- package/dist/{ui-seletor-cor-Cd8jkzXG.js → ui-seletor-cor-CPjA9vhZ.js} +8 -9
- package/dist/ui-seletor-cor-D_ifitEN.cjs +83 -0
- package/dist/utils-ClVgqVyJ.cjs +1 -0
- package/dist/utils-DrHoxxmf.js +83 -0
- package/package.json +43 -2
- package/dist/acessibilidade-CSzX-DkG.cjs +0 -1
- package/dist/acessibilidade-CUlSXc2X.js +0 -38
- package/dist/altura-controle-ukMRPckR.cjs +0 -1
- package/dist/altura-controle-vxQiXG4q.js +0 -62
- package/dist/alvo-digitavel-CzCvNVQ3.js +0 -23
- package/dist/alvo-digitavel-DbH0hYFf.cjs +0 -1
- package/dist/degrade-CIxvOTUv.cjs +0 -1
- package/dist/degrade-gDa5sW__.js +0 -119
- package/dist/feature_caixa-CnYPKVFS.cjs +0 -1
- package/dist/feature_caixa-DCs9ZeSk.js +0 -1038
- package/dist/feature_historico-BAIYk1Me.cjs +0 -3
- package/dist/feature_historico-C4h9y5fu.js +0 -3039
- package/dist/form-atalhos-7JTYvumA.cjs +0 -1
- package/dist/form-atalhos-DDTlpgaB.js +0 -203
- package/dist/form-erros-CwPz7Jr4.cjs +0 -1
- package/dist/form-erros-DT5HklfD.js +0 -184
- package/dist/form-submissao-C-SPRKgT.js +0 -61
- package/dist/form-submissao-DxKO5MHI.cjs +0 -1
- package/dist/form-validacao-BlQFxUVj.js +0 -104
- package/dist/form-validacao-DIeyQVH5.cjs +0 -1
- package/dist/geometria-px-DKrWq_XY.js +0 -639
- package/dist/leaflet-CEPcxGWV.cjs +0 -1
- package/dist/leaflet-DOq10gfg.js +0 -84
- package/dist/leaflet-loader-94z5VsdY.cjs +0 -2
- package/dist/leaflet-loader-Cjcdgj5R.js +0 -21
- package/dist/listener-bag-D5omxZ9h.cjs +0 -1
- package/dist/listener-bag-DQgv7OON.js +0 -34
- package/dist/motor-By2te6PZ.js +0 -1400
- package/dist/motor-CkMxd378.cjs +0 -1
- package/dist/opcoes-CupvWVIm.js +0 -24
- package/dist/opcoes-vdAUY5OI.cjs +0 -1
- package/dist/parts-CaoQiCfI.js +0 -7
- package/dist/parts-vQa2873h.cjs +0 -1
- package/dist/prancha-paleta-BZ-9QDgh.js +0 -5276
- package/dist/prancha-paleta-Bb24vP71.cjs +0 -17
- package/dist/ssr-safe-5cWfJP-s.js +0 -10
- package/dist/ssr-safe-CiHD1adl.cjs +0 -1
- package/dist/svg-seguro-ChVJ2L2z.js +0 -74
- package/dist/svg-seguro-J2RM1Ssf.cjs +0 -1
- package/dist/ui-badge-DE58YSBY.cjs +0 -28
- package/dist/ui-badge-KgmI3jOD.js +0 -201
- package/dist/ui-botao-Dz8YvmiA.cjs +0 -12
- package/dist/ui-botao-zLkcMMyP.js +0 -168
- package/dist/ui-bus-CUd99VJi.js +0 -177
- package/dist/ui-bus-XqBLlTYQ.cjs +0 -1
- package/dist/ui-camadas-DoHPnbQm.js +0 -3133
- package/dist/ui-camadas-Vx7wYD4D.cjs +0 -311
- package/dist/ui-campo-texto-Dliyt9qr.cjs +0 -16
- package/dist/ui-campo-texto-btevggO3.js +0 -379
- package/dist/ui-card-7IEYbCN0.js +0 -150
- package/dist/ui-card-Bx8EyzYY.cjs +0 -20
- package/dist/ui-card-C-EJoKnm.js +0 -150
- package/dist/ui-card-DFnRp9bl.js +0 -146
- package/dist/ui-card-DrWVJQKw.cjs +0 -20
- package/dist/ui-card-DsIjHMmG.cjs +0 -20
- package/dist/ui-controle-cores-B1w_Yl69.cjs +0 -32
- package/dist/ui-controle-cores-BRjMvmMn.js +0 -291
- package/dist/ui-controle-cores-BcH9k2Fa.js +0 -292
- package/dist/ui-controle-cores-CvSTP6gJ.cjs +0 -32
- package/dist/ui-editor-prancha-CIngI6yI.js +0 -2886
- package/dist/ui-editor-prancha-DorSe6sC.cjs +0 -31
- package/dist/ui-linha-2kY7TNUJ.cjs +0 -38
- package/dist/ui-linha-B4mBRm1x.cjs +0 -61
- package/dist/ui-linha-DTEIIww4.js +0 -1167
- package/dist/ui-linha-KFF86FW5.js +0 -752
- package/dist/ui-modal-BrXzVZ65.js +0 -216
- package/dist/ui-modal-lARKzEVZ.cjs +0 -18
- package/dist/ui-paleta-ferramentas-Bu6JaT0s.js +0 -1245
- package/dist/ui-paleta-ferramentas-D3Jhwt26.cjs +0 -21
- package/dist/ui-paleta-ferramentas-DebHYiwd.js +0 -1615
- package/dist/ui-paleta-ferramentas-Dgejtluh.js +0 -1423
- package/dist/ui-paleta-ferramentas-hzyo8wBt.cjs +0 -22
- package/dist/ui-paleta-ferramentas-jWuICjW8.cjs +0 -22
- package/dist/ui-seletor-cor-0RLjcME6.cjs +0 -83
- package/dist/ui-seletor-cor-CMuuW-Ym.cjs +0 -83
- package/dist/ui-seletor-cor-DFIQ1sin.js +0 -405
- package/dist/ui-skeleton-BLEV6h3k.js +0 -653
- package/dist/ui-skeleton-B_XTaGrX.cjs +0 -52
- package/dist/ui-switch-BXIDwC-Y.cjs +0 -66
- package/dist/ui-switch-Ctxk-jKS.js +0 -1212
- package/dist/ui-tabela-CXxqbwXv.cjs +0 -7
- package/dist/ui-tabela-Cd0vOwnT.js +0 -1459
- package/dist/ui-tabela-propriedades-C5cIF5ES.js +0 -3779
- package/dist/ui-tabela-propriedades-CJyo568n.js +0 -3517
- package/dist/ui-tabela-propriedades-D96Djx-q.cjs +0 -136
- package/dist/ui-tabela-propriedades-Wa34hfIr.cjs +0 -142
- package/dist/ui-tabela-propriedades-ahQhQauu.js +0 -2329
- package/dist/ui-tabela-propriedades-w9JWhjHy.cjs +0 -142
- package/dist/zero-js-triggers-CJT988bR.js +0 -83
- 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;
|