@comercti/web-components-hmg 0.23.15 → 0.23.17
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/comerc-style-guide.cjs.js +1 -1
- package/comerc-style-guide.es.js +7 -5
- package/comerc-style-guide.umd.js +1 -1
- package/index.d.ts +11 -11
- package/package.json +1 -1
package/comerc-style-guide.es.js
CHANGED
|
@@ -6069,8 +6069,8 @@ const gd = { class: "p-4 flex-1" }, md = /* @__PURE__ */ J({
|
|
|
6069
6069
|
Nt(() => {
|
|
6070
6070
|
e.allOpen ? r.value = e.items.map(() => !0) : e.openTheFirst ? r.value = e.items.map((m, f) => f === 0) : r.value = e.items.map(() => !1), e.closeCollapse && (r.value[e.closeCollapse] = !1);
|
|
6071
6071
|
});
|
|
6072
|
-
const n = (m) => {
|
|
6073
|
-
r.value[m] = !r.value[m], a.value.some((
|
|
6072
|
+
const n = (m, f) => {
|
|
6073
|
+
r.value[m] = !r.value[m], a.value.some((h) => h.index === m) ? a.value = a.value.filter((h) => h.index !== m) : a.value.push({ index: m, value: r.value[m], item: f }), t("toggle-collapse", a.value);
|
|
6074
6074
|
}, i = (m) => r.value[m], c = V(() => {
|
|
6075
6075
|
if (e.variant === "accordion" && e.direction === "column")
|
|
6076
6076
|
return "flex flex-col";
|
|
@@ -6102,7 +6102,7 @@ const gd = { class: "p-4 flex-1" }, md = /* @__PURE__ */ J({
|
|
|
6102
6102
|
},
|
|
6103
6103
|
containerClasses: c
|
|
6104
6104
|
};
|
|
6105
|
-
}, $d = { class: "flex gap-2 items-center p-4 text-left focus:outline-none justify-between" }, _d = ["onClick"], ec = {
|
|
6105
|
+
}, $d = { class: "flex gap-2 items-center p-4 text-left focus:outline-none justify-between" }, _d = ["onClick", "disabled"], ec = {
|
|
6106
6106
|
key: 0,
|
|
6107
6107
|
class: "py-1"
|
|
6108
6108
|
}, tc = /* @__PURE__ */ J({
|
|
@@ -6113,7 +6113,8 @@ const gd = { class: "p-4 flex-1" }, md = /* @__PURE__ */ J({
|
|
|
6113
6113
|
allOpen: { type: Boolean, default: !1 },
|
|
6114
6114
|
variant: { default: "accordion" },
|
|
6115
6115
|
direction: { default: "row" },
|
|
6116
|
-
closeCollapse: { default: null }
|
|
6116
|
+
closeCollapse: { default: null },
|
|
6117
|
+
disabled: { default: () => ({ field: "", value: "" }) }
|
|
6117
6118
|
},
|
|
6118
6119
|
emits: ["toggle-collapse"],
|
|
6119
6120
|
setup(e, { emit: t }) {
|
|
@@ -6134,7 +6135,8 @@ const gd = { class: "p-4 flex-1" }, md = /* @__PURE__ */ J({
|
|
|
6134
6135
|
s("div", $d, [
|
|
6135
6136
|
T(f.$slots, "header", { item: w }),
|
|
6136
6137
|
s("button", {
|
|
6137
|
-
onClick: (x) => o(i)(p),
|
|
6138
|
+
onClick: (x) => o(i)(p, w),
|
|
6139
|
+
disabled: w[e.disabled.field] === e.disabled.value,
|
|
6138
6140
|
class: "text-left focus:outline-none",
|
|
6139
6141
|
type: "button"
|
|
6140
6142
|
}, [
|