@amsom-habitat/amsom-table 1.1.7 → 1.1.9
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/dist/amsom-table.js +5 -2
- package/dist/amsom-table.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/amsom-table.js
CHANGED
|
@@ -8675,7 +8675,7 @@ 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, O = M[b.id];
|
|
8678
|
+
const p = b.filter ? new Function(`return (${b.filter})`).bind(this)() : null, O = M[b.id];
|
|
8679
8679
|
if (O) {
|
|
8680
8680
|
const c = t2(O), o = p ? t2(p(O)) : null;
|
|
8681
8681
|
if (o && o.includes(t2(z)) || c && c.includes(t2(z)))
|
|
@@ -8690,6 +8690,9 @@ const Qq = {
|
|
|
8690
8690
|
copyDefaultColumns() {
|
|
8691
8691
|
return JSON.parse(JSON.stringify(this.defaultColumns));
|
|
8692
8692
|
},
|
|
8693
|
+
getTableContent() {
|
|
8694
|
+
return this.items;
|
|
8695
|
+
},
|
|
8693
8696
|
updateSortitems(M) {
|
|
8694
8697
|
if (!this.items) return this.items;
|
|
8695
8698
|
this.sortKey === M ? this.sortAsc = !this.sortAsc : this.sortAsc = !0, this.sortKey = M, this.$forceUpdate();
|
|
@@ -8949,7 +8952,7 @@ function Lt(M, z, b, p, O, c) {
|
|
|
8949
8952
|
])
|
|
8950
8953
|
], 64);
|
|
8951
8954
|
}
|
|
8952
|
-
const ht = /* @__PURE__ */ Kq(Qq, [["render", Lt], ["__scopeId", "data-v-
|
|
8955
|
+
const ht = /* @__PURE__ */ Kq(Qq, [["render", Lt], ["__scopeId", "data-v-dab12feb"]]);
|
|
8953
8956
|
export {
|
|
8954
8957
|
ht as AmsomTableDraggable,
|
|
8955
8958
|
ht as default
|