@comercti/vue-components-hmg 0.31.1 → 0.31.2

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.
@@ -2201,9 +2201,12 @@ const el = /* @__PURE__ */ G({
2201
2201
  F("update:modelValue", J);
2202
2202
  }
2203
2203
  function H(F) {
2204
- if (!h.value || h.value.length === 0)
2204
+ if (!Array.isArray(h.value) || h.value.length === 0)
2205
2205
  return;
2206
- const J = h.value.reduce((te, oe) => (te[oe.id] = !0, te), {});
2206
+ const J = h.value.reduce(
2207
+ (te, oe) => (te[String(oe.id)] = !0, te),
2208
+ {}
2209
+ );
2207
2210
  a.value = J;
2208
2211
  const K = p.value.filter((te) => a.value[te.id]);
2209
2212
  if (le("ce-data-table")) {
@@ -3643,6 +3646,7 @@ const el = /* @__PURE__ */ G({
3643
3646
  return (t, a) => (d(), f("button", {
3644
3647
  id: String(e.id),
3645
3648
  disabled: e.disabled,
3649
+ type: "button",
3646
3650
  class: y(["px-4 py-2 text-gray-700 dark:text-ce_light_gray border-r last:border-r-0 hover:bg-gray-50 dark:bg-ce_black flex items-center justify-between space-x-2", { "bg-ce_white ": e.selected == e.id }])
3647
3651
  }, [
3648
3652
  e.variant === "radio" ? (d(), f("div", {