@thibezer/ui-components-kit 2.7.0 → 2.8.1
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 +31 -0
- package/README.md +28 -4
- 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 +98 -94
- package/dist/camadas.js +646 -574
- package/dist/campo-texto.cjs +1 -1
- package/dist/campo-texto.js +1 -1
- package/dist/canvas.cjs +28 -28
- package/dist/canvas.js +1110 -980
- package/dist/components/ui-camadas/camadas-host.d.ts +1 -0
- package/dist/components/ui-camadas/camadas-mapas-base.d.ts +3 -1
- package/dist/components/ui-camadas/camadas-render.d.ts +1 -0
- package/dist/components/ui-camadas/camadas-selecao.d.ts +12 -0
- package/dist/components/ui-camadas/ui-camadas.d.ts +5 -0
- package/dist/components/ui-canvas-cad/cad-feicoes-ponteiro.d.ts +4 -0
- package/dist/components/ui-canvas-cad/cad-feicoes.d.ts +13 -0
- package/dist/components/ui-canvas-cad/ui-canvas-cad.d.ts +11 -0
- package/dist/components/ui-linha/index.d.ts +1 -0
- package/dist/components/ui-linha/ui-linha.d.ts +48 -0
- package/dist/core/altura-controle.d.ts +34 -0
- package/dist/core/index.d.ts +1 -0
- package/dist/core.cjs +1 -1
- package/dist/core.js +29 -20
- package/dist/custom-elements.json +22245 -21471
- package/dist/data.cjs +1 -1
- package/dist/data.js +1 -1
- package/dist/forms.cjs +1 -1
- package/dist/forms.js +2 -2
- package/dist/gerencigeo-canvas/canvas_interacao.d.ts +0 -1
- package/dist/gerencigeo-canvas/feature_popup.d.ts +2 -0
- package/dist/gerencigeo-canvas/mapa_core.d.ts +6 -0
- package/dist/gerencigeo-canvas/popup_gate.d.ts +30 -0
- package/dist/gerencigeo-canvas/zoom_opcoes.d.ts +10 -0
- package/dist/index.cjs +1 -1
- package/dist/index.d.ts +3 -0
- package/dist/index.js +179 -176
- package/dist/register.cjs +1 -1
- package/dist/register.js +5 -5
- package/dist/tipos-elementos.d.ts +38 -3
- package/dist/tipos-react.d.ts +2 -0
- package/dist/tipos-vue.d.ts +34 -3
- package/dist/{ui-badge-ChiiiO1r.js → ui-badge-BWhoGgo9.js} +4 -4
- package/dist/{ui-badge-DUCxyAG6.cjs → ui-badge-SIR81R9l.cjs} +3 -3
- package/dist/ui-botao-D24oXySA.cjs +12 -0
- package/dist/ui-botao-Dsj08jjw.js +165 -0
- package/dist/{ui-campo-texto-Uu2dJE_0.js → ui-campo-texto-B_OHVGiN.js} +51 -51
- package/dist/ui-campo-texto-DauJCde3.cjs +16 -0
- package/dist/ui-kit.css +1 -1
- package/dist/ui-linha-C6HBnsaw.cjs +19 -0
- package/dist/{ui-segmented-kbO1BLVs.js → ui-linha-nCDh2wPm.js} +162 -94
- package/dist/{ui-switch-BX6U5Ykm.cjs → ui-switch-D9a8XlVX.cjs} +9 -9
- package/dist/{ui-switch-DO5jR0hy.js → ui-switch-DO1R0Ce7.js} +55 -55
- package/package.json +2 -2
- package/dist/form-validacao-BIOXxt-1.js +0 -140
- package/dist/form-validacao-ytRYSF3E.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-campo-texto-CHTfMO-H.cjs +0 -16
- package/dist/ui-campo-texto-Cnn2UAkS.cjs +0 -16
- package/dist/ui-campo-texto-gum_jDdI.js +0 -380
- 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-modal-DBOtSTbR.js +0 -238
- package/dist/ui-paleta-ferramentas-Ccmo-rB5.cjs +0 -21
- package/dist/ui-paleta-ferramentas-DNN5i6nL.js +0 -860
- package/dist/ui-segmented-BOaGRQw4.cjs +0 -19
- package/dist/ui-segmented-D6b6zxVs.cjs +0 -19
- package/dist/ui-segmented-wUraId2e.js +0 -412
- package/dist/ui-skeleton-BilwGdOm.js +0 -634
- package/dist/ui-skeleton-SPYqku8P.cjs +0 -52
- package/dist/ui-skeleton-W9uwIceA.js +0 -585
- package/dist/ui-skeleton-gZrJipCC.cjs +0 -52
- package/dist/ui-switch-BcOqOkiV.js +0 -856
- package/dist/ui-switch-D7iPKDj-.cjs +0 -53
- package/dist/ui-tabela-propriedades-BecPqC-e.cjs +0 -141
- package/dist/ui-tabela-propriedades-BokvDD3b.js +0 -2648
package/dist/ui-card-C_o5_0cB.js
DELETED
|
@@ -1,111 +0,0 @@
|
|
|
1
|
-
var y = Object.defineProperty;
|
|
2
|
-
var _ = (i, t, e) => t in i ? y(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
-
var o = (i, t, e) => _(i, typeof t != "symbol" ? t + "" : t, e);
|
|
4
|
-
import { L as w } from "./listener-bag-DQgv7OON.js";
|
|
5
|
-
import { d as E, S as k } from "./ssr-safe-5cWfJP-s.js";
|
|
6
|
-
const A = ':host{display:block;width:100%;box-sizing:border-box}:host(.h-full),:host([style*="height: 100%"]){height:100%}.ui-card{display:flex;flex-direction:column;width:100%;height:100%;box-sizing:border-box;background-color:var(--ui-cor-fundo-card, #18181c);border:1px solid var(--ui-cor-borda, rgba(255, 255, 255, .12));border-radius:var(--ui-raio-borda, 8px);overflow:hidden;transition:transform .2s cubic-bezier(.4,0,.2,1),box-shadow .2s cubic-bezier(.4,0,.2,1),border-color .2s ease;color:var(--ui-cor-texto, #e1e1e6);font-family:var(--ui-fonte-base, "Inter", sans-serif)}.ui-card--plano{background-color:var(--ui-cor-fundo-card, #18181c);box-shadow:none}.ui-card--elevado{background-color:var(--ui-cor-fundo-elevado, #1e1e24);box-shadow:var(--ui-sombra-lg, 0 8px 24px rgba(0, 0, 0, .4));border-color:color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 8%,transparent)}.ui-card--destaque{border-color:var(--ui-cor-primaria, #00E08A);background-color:var(--ui-cor-fundo-card, #18181c);box-shadow:0 0 0 1px color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 25%,transparent)}.ui-card--clicavel{cursor:pointer;-webkit-user-select:none;user-select:none}.ui-card--clicavel:hover{transform:translateY(-3px);border-color:var(--ui-cor-primaria, #00E08A);box-shadow:var(--ui-sombra-lg, 0 10px 30px rgba(0, 0, 0, .5)),0 0 15px color-mix(in srgb,var(--ui-cor-primaria, #00E08A) 15%,transparent)}.ui-card--clicavel:active{transform:translateY(-1px)}.ui-card--disabled{opacity:.5;cursor:not-allowed!important;pointer-events:none}.ui-card__media{width:100%;overflow:hidden;display:block;line-height:0}::slotted([slot="midia"]),::slotted([slot="media"]){width:100%;height:auto;display:block;object-fit:cover}.ui-card__header{padding:14px 16px 8px;display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box}.ui-card__body{padding:12px 16px;flex:1;box-sizing:border-box}.ui-card__footer{padding:10px 16px 14px;border-top:1px solid color-mix(in srgb,var(--ui-cor-texto, #e1e1e6) 6%,transparent);display:flex;align-items:center;justify-content:space-between;gap:12px;box-sizing:border-box}.ui-card--compacto .ui-card__header{padding:10px 12px 6px}.ui-card--compacto .ui-card__body{padding:8px 12px}.ui-card--compacto .ui-card__footer{padding:8px 12px 10px}';
|
|
7
|
-
class S extends k {
|
|
8
|
-
constructor() {
|
|
9
|
-
super();
|
|
10
|
-
o(this, "cardElement");
|
|
11
|
-
o(this, "listeners", new w());
|
|
12
|
-
o(this, "handleSlotChange", () => {
|
|
13
|
-
this.syncState();
|
|
14
|
-
});
|
|
15
|
-
o(this, "handleClick", (e) => {
|
|
16
|
-
this.disabled || e && e.target && e.target instanceof HTMLElement && e.target.closest('button, a, input, select, textarea, ui-botao, ui-switch, ui-checkbox, ui-radio, [role="button"]') || this.clicavel && (this.dispatchEvent(
|
|
17
|
-
new CustomEvent("ui-click", {
|
|
18
|
-
detail: {
|
|
19
|
-
id: this.id || "sem-id"
|
|
20
|
-
},
|
|
21
|
-
bubbles: !0,
|
|
22
|
-
composed: !0
|
|
23
|
-
})
|
|
24
|
-
), this.dispatchEvent(
|
|
25
|
-
new CustomEvent("ui-clique", {
|
|
26
|
-
detail: {
|
|
27
|
-
id: this.id || "sem-id"
|
|
28
|
-
},
|
|
29
|
-
bubbles: !0,
|
|
30
|
-
composed: !0
|
|
31
|
-
})
|
|
32
|
-
));
|
|
33
|
-
});
|
|
34
|
-
o(this, "handleKeyDown", (e) => {
|
|
35
|
-
!this.clicavel || this.disabled || (e.key === "Enter" || e.key === " ") && (e.preventDefault(), this.handleClick());
|
|
36
|
-
});
|
|
37
|
-
const e = this.attachShadow({ mode: "open" });
|
|
38
|
-
e.innerHTML = `
|
|
39
|
-
<style>${A}</style>
|
|
40
|
-
<div class="ui-card" part="base">
|
|
41
|
-
<div class="ui-card__media" part="midia">
|
|
42
|
-
<slot name="midia"></slot>
|
|
43
|
-
<slot name="media"></slot>
|
|
44
|
-
</div>
|
|
45
|
-
<div class="ui-card__header" part="cabecalho">
|
|
46
|
-
<slot name="cabecalho"></slot>
|
|
47
|
-
<slot name="header"></slot>
|
|
48
|
-
</div>
|
|
49
|
-
<div class="ui-card__body" part="corpo">
|
|
50
|
-
<slot></slot>
|
|
51
|
-
</div>
|
|
52
|
-
<div class="ui-card__footer" part="rodape">
|
|
53
|
-
<slot name="rodape"></slot>
|
|
54
|
-
<slot name="footer"></slot>
|
|
55
|
-
</div>
|
|
56
|
-
</div>
|
|
57
|
-
`, this.cardElement = e.querySelector(".ui-card");
|
|
58
|
-
}
|
|
59
|
-
static get observedAttributes() {
|
|
60
|
-
return [
|
|
61
|
-
"elevacao",
|
|
62
|
-
"elevation",
|
|
63
|
-
"variante",
|
|
64
|
-
"variant",
|
|
65
|
-
"clicavel",
|
|
66
|
-
"clickable",
|
|
67
|
-
"compacto",
|
|
68
|
-
"compact",
|
|
69
|
-
"disabled"
|
|
70
|
-
];
|
|
71
|
-
}
|
|
72
|
-
connectedCallback() {
|
|
73
|
-
var a;
|
|
74
|
-
this.listeners.cleanup(), this.listeners.add(this.cardElement, "click", this.handleClick), this.listeners.add(this.cardElement, "keydown", this.handleKeyDown);
|
|
75
|
-
const e = (a = this.shadowRoot) == null ? void 0 : a.querySelectorAll("slot");
|
|
76
|
-
e == null || e.forEach((s) => this.listeners.add(s, "slotchange", this.handleSlotChange)), this.syncState();
|
|
77
|
-
}
|
|
78
|
-
disconnectedCallback() {
|
|
79
|
-
this.listeners.cleanup();
|
|
80
|
-
}
|
|
81
|
-
attributeChangedCallback(e, a, s) {
|
|
82
|
-
this.syncState();
|
|
83
|
-
}
|
|
84
|
-
get clicavel() {
|
|
85
|
-
return this.hasAttribute("clicavel") || this.hasAttribute("clickable");
|
|
86
|
-
}
|
|
87
|
-
set clicavel(e) {
|
|
88
|
-
e ? this.setAttribute("clicavel", "") : (this.removeAttribute("clicavel"), this.removeAttribute("clickable")), this.syncState();
|
|
89
|
-
}
|
|
90
|
-
get disabled() {
|
|
91
|
-
return this.hasAttribute("disabled");
|
|
92
|
-
}
|
|
93
|
-
set disabled(e) {
|
|
94
|
-
e ? this.setAttribute("disabled", "") : this.removeAttribute("disabled"), this.syncState();
|
|
95
|
-
}
|
|
96
|
-
syncState() {
|
|
97
|
-
var h, b, p;
|
|
98
|
-
const e = this.getAttribute("elevacao") || this.getAttribute("elevation") || "plano", a = this.getAttribute("variante") || this.getAttribute("variant"), s = this.clicavel, x = this.hasAttribute("compacto") || this.hasAttribute("compact"), f = this.disabled;
|
|
99
|
-
this.cardElement.className = "ui-card", this.cardElement.classList.add(`ui-card--${e}`), a && this.cardElement.classList.add(`ui-card--${a}`), s ? (this.cardElement.classList.add("ui-card--clicavel"), this.cardElement.setAttribute("tabindex", "0")) : this.cardElement.removeAttribute("tabindex"), x && this.cardElement.classList.add("ui-card--compacto"), f && this.cardElement.classList.add("ui-card--disabled");
|
|
100
|
-
const l = (h = this.shadowRoot) == null ? void 0 : h.querySelector(".ui-card__header"), n = (b = this.shadowRoot) == null ? void 0 : b.querySelector(".ui-card__footer"), u = (p = this.shadowRoot) == null ? void 0 : p.querySelector(".ui-card__media"), c = (m) => {
|
|
101
|
-
var v;
|
|
102
|
-
const g = m.map((r) => `slot[name="${r}"]`).join(", ");
|
|
103
|
-
return Array.from(((v = this.shadowRoot) == null ? void 0 : v.querySelectorAll(g)) || []).some((r) => r.assignedNodes({ flatten: !0 }).some((d) => d.nodeType === Node.ELEMENT_NODE || d.textContent && d.textContent.trim() !== "")) || m.some((r) => this.querySelector(`[slot="${r}"]`) !== null);
|
|
104
|
-
};
|
|
105
|
-
u && (u.style.display = c(["midia", "media"]) ? "block" : "none"), l && (l.style.display = c(["cabecalho", "header"]) ? "flex" : "none"), n && (n.style.display = c(["rodape", "footer"]) ? "flex" : "none");
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
E("ui-card", S);
|
|
109
|
-
export {
|
|
110
|
-
S as U
|
|
111
|
-
};
|