@amsom-habitat/amsom-table 1.1.6 → 1.1.8

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.
@@ -8675,11 +8675,12 @@ const Qq = {
8675
8675
  },
8676
8676
  filterBy(M, z) {
8677
8677
  for (const b of this.columns) {
8678
- const p = b.filter ? new Function(`return (${b.filter})`)() : null;
8679
- if (M[b.id] && p !== null && t2(p(M[b.id])).includes(t2(z)))
8680
- return !0;
8681
- if (M[b.id] && t2(M[b.id]).includes(t2(z)))
8682
- return !0;
8678
+ const p = b.filter ? new Function(`return (${b.filter})`).bind(this)() : null, O = M[b.id];
8679
+ if (O) {
8680
+ const c = t2(O), o = p ? t2(p(O)) : null;
8681
+ if (o && o.includes(t2(z)) || c && c.includes(t2(z)))
8682
+ return !0;
8683
+ }
8683
8684
  }
8684
8685
  return !z;
8685
8686
  },
@@ -8948,7 +8949,7 @@ function Lt(M, z, b, p, O, c) {
8948
8949
  ])
8949
8950
  ], 64);
8950
8951
  }
8951
- const ht = /* @__PURE__ */ Kq(Qq, [["render", Lt], ["__scopeId", "data-v-fce9b577"]]);
8952
+ const ht = /* @__PURE__ */ Kq(Qq, [["render", Lt], ["__scopeId", "data-v-9a4cbf27"]]);
8952
8953
  export {
8953
8954
  ht as AmsomTableDraggable,
8954
8955
  ht as default