@comercti/web-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.
@@ -1672,6 +1672,7 @@ const Mt = /* @__PURE__ */ new WeakMap(), Mo = (e, t) => {
1672
1672
  return (t, r) => (d(), g("button", {
1673
1673
  id: String(e.id),
1674
1674
  disabled: e.disabled,
1675
+ type: "button",
1675
1676
  class: x(["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 }])
1676
1677
  }, [
1677
1678
  e.variant === "radio" ? (d(), g("div", {
@@ -7977,9 +7978,12 @@ const K0 = (e) => {
7977
7978
  S("update:modelValue", _);
7978
7979
  }
7979
7980
  function N(S) {
7980
- if (!b.value || b.value.length === 0)
7981
+ if (!Array.isArray(b.value) || b.value.length === 0)
7981
7982
  return;
7982
- const _ = b.value.reduce((ae, se) => (ae[se.id] = !0, ae), {});
7983
+ const _ = b.value.reduce(
7984
+ (ae, se) => (ae[String(se.id)] = !0, ae),
7985
+ {}
7986
+ );
7983
7987
  r.value = _;
7984
7988
  const ee = h.value.filter((ae) => r.value[ae.id]);
7985
7989
  if (le("ce-data-table")) {