lkt-table 1.2.2 → 1.2.4
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/build.js
CHANGED
|
@@ -222,16 +222,16 @@ const gl = (l, e, r = !0) => _(new U(l, e).setIsSortable(r)), Cl = (l, e, r, n =
|
|
|
222
222
|
}, { deep: !0 }), n.column.hasToLoadResource() && n.column.loadResource();
|
|
223
223
|
const v = c(() => ({ ...n.column.slotData, item: i.value }));
|
|
224
224
|
return (a, u) => {
|
|
225
|
-
const P = M("
|
|
225
|
+
const P = M("lkt-anchor"), J = M("lkt-field-text"), d = M("lkt-field-switch"), $ = M("lkt-field-file"), H = M("lkt-loader"), y = M("lkt-field-select");
|
|
226
226
|
return a.column.type === "link" ? (s(), b(P, {
|
|
227
227
|
key: 0,
|
|
228
|
-
|
|
228
|
+
href: a.column.getHref(i.value)
|
|
229
229
|
}, {
|
|
230
230
|
default: O(() => [
|
|
231
231
|
G(F(B(Z)(a.column, i.value, a.i)), 1)
|
|
232
232
|
]),
|
|
233
233
|
_: 1
|
|
234
|
-
}, 8, ["
|
|
234
|
+
}, 8, ["href"])) : a.column.type === "action" ? (s(), f("a", {
|
|
235
235
|
key: 1,
|
|
236
236
|
href: "#",
|
|
237
237
|
onClick: u[0] || (u[0] = (p) => a.column.doAction(i.value))
|
|
@@ -652,7 +652,7 @@ const gl = (l, e, r = !0) => _(new U(l, e).setIsSortable(r)), Cl = (l, e, r, n =
|
|
|
652
652
|
setup(l, { expose: e, emit: r }) {
|
|
653
653
|
const n = r, i = ot(), o = l, h = {}, C = S(typeof o.sorter == "function" ? o.sorter : Ee), v = S(gt(o.columns)), a = S("asc"), u = S(o.modelValue), P = S(h), J = S(null), d = S(o.columns);
|
|
654
654
|
let $ = [];
|
|
655
|
-
const H = S(o.page), y = S(!
|
|
655
|
+
const H = S(o.page), y = S(!1), p = S(!1), ee = S($), ce = S(null), Me = S({}), X = S(new it({ items: u.value }, o.dataStateConfig)), L = S(o.editMode), $e = (t) => {
|
|
656
656
|
Array.isArray(t) && (u.value = t), y.value = !1, p.value = !0, X.value.store({ items: u.value }).turnStoredIntoOriginal();
|
|
657
657
|
}, Ae = (t) => {
|
|
658
658
|
ee.value = t;
|
package/package.json
CHANGED
|
@@ -53,7 +53,9 @@ const slotData = computed(() => {
|
|
|
53
53
|
|
|
54
54
|
<template>
|
|
55
55
|
<template v-if="column.type === 'link'">
|
|
56
|
-
<
|
|
56
|
+
<lkt-anchor
|
|
57
|
+
:href="column.getHref(item)"
|
|
58
|
+
>{{ getColumnDisplayContent(column, item, i) }}</lkt-anchor>
|
|
57
59
|
</template>
|
|
58
60
|
<template v-else-if="column.type === 'action'">
|
|
59
61
|
<a href="#" v-on:click="column.doAction(item)">{{ getColumnDisplayContent(column, item, i) }}</a>
|
|
@@ -113,7 +113,7 @@ const Sorter = ref(typeof props.sorter === 'function' ? props.sorter : defaultTa
|
|
|
113
113
|
|
|
114
114
|
let basePerms: string[] = [];
|
|
115
115
|
const Page = ref(props.page),
|
|
116
|
-
loading = ref(
|
|
116
|
+
loading = ref(false),
|
|
117
117
|
firstLoadReady = ref(false),
|
|
118
118
|
perms = ref(basePerms),
|
|
119
119
|
paginator = ref(null),
|