vs-datatable 0.5.0 → 0.6.0
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/README.md +0 -8
- package/dist/components/VsDataTable.vue.d.ts +1 -1
- package/dist/composables/useDataTable.d.ts +3 -1
- package/dist/composables/useDataTablePagination.d.ts +1 -1
- package/dist/composables/useDataTableSearch.d.ts +3 -2
- package/dist/composables/useDataTableSort.d.ts +1 -1
- package/dist/index.css +1 -1
- package/dist/types/datatable.d.ts +2 -2
- package/dist/utils/datatable.d.ts +7 -0
- package/dist/vs-datatable.es.js +337 -322
- package/dist/vs-datatable.umd.js +2 -2
- package/package.json +1 -1
- package/src/styles/base.scss +1 -1
package/dist/vs-datatable.es.js
CHANGED
|
@@ -1,49 +1,56 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import './index.css';function E(e,
|
|
3
|
-
return
|
|
1
|
+
import { defineComponent as K, computed as C, createElementBlock as f, openBlock as b, createElementVNode as n, createCommentVNode as x, Fragment as M, renderList as B, normalizeClass as V, toDisplayString as P, unref as d, ref as L, watch as F, useAttrs as W, onMounted as X, onUnmounted as Y, onBeforeMount as q, createVNode as z, renderSlot as A, isRef as N, normalizeStyle as ee, withModifiers as te, createTextVNode as se } from "vue";
|
|
2
|
+
import './index.css';function E(e, s) {
|
|
3
|
+
return s.split(".").reduce((l, t) => l?.[t], e) ?? "";
|
|
4
4
|
}
|
|
5
|
-
function k(e,
|
|
6
|
-
return typeof
|
|
5
|
+
function k(e, s, l = "id") {
|
|
6
|
+
return typeof l == "function" ? l(e, s) : e[l] || s;
|
|
7
7
|
}
|
|
8
|
-
function Z(e,
|
|
9
|
-
return
|
|
10
|
-
(t) => k(t, -1,
|
|
8
|
+
function Z(e, s, l = "id") {
|
|
9
|
+
return s.some(
|
|
10
|
+
(t) => k(t, -1, l) === k(e, -1, l)
|
|
11
11
|
);
|
|
12
12
|
}
|
|
13
|
-
function le(e,
|
|
14
|
-
return e.length + (
|
|
13
|
+
function le(e, s) {
|
|
14
|
+
return e.length + (s ? 1 : 0);
|
|
15
15
|
}
|
|
16
|
-
function ae(e,
|
|
17
|
-
if (!
|
|
18
|
-
const
|
|
19
|
-
return [...e].sort((t,
|
|
20
|
-
for (const { field:
|
|
21
|
-
const
|
|
22
|
-
if (
|
|
23
|
-
return
|
|
16
|
+
function ae(e, s) {
|
|
17
|
+
if (!s.length) return e;
|
|
18
|
+
const l = (t, r) => r.split(".").reduce((a, c) => a?.[c], t) ?? "";
|
|
19
|
+
return [...e].sort((t, r) => {
|
|
20
|
+
for (const { field: a, order: c } of s) {
|
|
21
|
+
const i = l(t, a), g = l(r, a);
|
|
22
|
+
if (i !== g)
|
|
23
|
+
return c === "asc" ? i > g ? 1 : -1 : i < g ? 1 : -1;
|
|
24
24
|
}
|
|
25
25
|
return 0;
|
|
26
26
|
});
|
|
27
27
|
}
|
|
28
|
-
function oe(e,
|
|
29
|
-
if (!
|
|
30
|
-
const t = (
|
|
31
|
-
return e.slice(t,
|
|
28
|
+
function oe(e, s, l) {
|
|
29
|
+
if (!l) return e;
|
|
30
|
+
const t = (s - 1) * l, r = t + l;
|
|
31
|
+
return e.slice(t, r);
|
|
32
32
|
}
|
|
33
|
-
function ne(e,
|
|
34
|
-
const t = (e - 1) *
|
|
35
|
-
return { start: t, end:
|
|
33
|
+
function ne(e, s, l) {
|
|
34
|
+
const t = (e - 1) * s + 1, r = Math.min(e * s, l);
|
|
35
|
+
return { start: t, end: r };
|
|
36
36
|
}
|
|
37
|
-
function
|
|
38
|
-
return Math.ceil(e /
|
|
37
|
+
function Q(e, s) {
|
|
38
|
+
return Math.ceil(e / s);
|
|
39
39
|
}
|
|
40
|
-
|
|
40
|
+
function re(e, s, l) {
|
|
41
|
+
if (!s || s.trim() === "") return e;
|
|
42
|
+
const t = s.toLowerCase();
|
|
43
|
+
return e.filter((r) => Object.values(r).some(
|
|
44
|
+
(a) => String(a ?? "").toLowerCase().includes(t)
|
|
45
|
+
));
|
|
46
|
+
}
|
|
47
|
+
const de = ["id"], ce = ["disabled"], ie = {
|
|
41
48
|
key: 1,
|
|
42
49
|
class: "vs-pagination-ellipsis"
|
|
43
|
-
},
|
|
50
|
+
}, ue = ["id", "onClick"], ve = {
|
|
44
51
|
key: 2,
|
|
45
52
|
class: "vs-pagination-ellipsis"
|
|
46
|
-
},
|
|
53
|
+
}, he = ["disabled"], ge = /* @__PURE__ */ K({
|
|
47
54
|
__name: "VsPagination",
|
|
48
55
|
props: {
|
|
49
56
|
modelValue: {},
|
|
@@ -54,85 +61,85 @@ const re = ["id"], ce = ["disabled"], de = {
|
|
|
54
61
|
paginationClass: {}
|
|
55
62
|
},
|
|
56
63
|
emits: ["update:modelValue", "page-changed"],
|
|
57
|
-
setup(e, { emit:
|
|
58
|
-
const
|
|
59
|
-
get: () =>
|
|
60
|
-
set: (
|
|
61
|
-
t("update:modelValue",
|
|
64
|
+
setup(e, { emit: s }) {
|
|
65
|
+
const l = e, t = s, r = l.maxVisible ?? 3, a = C({
|
|
66
|
+
get: () => l.modelValue,
|
|
67
|
+
set: (m) => {
|
|
68
|
+
t("update:modelValue", m), t("page-changed", m);
|
|
62
69
|
}
|
|
63
|
-
}),
|
|
64
|
-
const
|
|
65
|
-
for (let
|
|
66
|
-
|
|
67
|
-
return
|
|
68
|
-
}),
|
|
69
|
-
|
|
70
|
-
},
|
|
71
|
-
|
|
70
|
+
}), c = C(() => a.value <= Math.floor(r / 2) ? 1 : a.value >= g.value - Math.floor(r / 2) ? Math.max(g.value - r + 1, 1) : a.value - Math.floor(r / 2)), i = C(() => Math.min(c.value + r - 1, g.value)), g = C(() => Q(l.totalRecords, l.rowsPerPage)), S = C(() => {
|
|
71
|
+
const m = [];
|
|
72
|
+
for (let u = c.value; u <= i.value; u++)
|
|
73
|
+
m.push(u);
|
|
74
|
+
return m;
|
|
75
|
+
}), y = (m) => {
|
|
76
|
+
m >= 1 && m <= g.value && (a.value = m);
|
|
77
|
+
}, O = () => {
|
|
78
|
+
a.value > 1 && a.value--;
|
|
72
79
|
}, D = () => {
|
|
73
|
-
|
|
80
|
+
a.value < g.value && a.value++;
|
|
74
81
|
};
|
|
75
|
-
return (
|
|
82
|
+
return (m, u) => (b(), f("div", {
|
|
76
83
|
class: "vs-pagination",
|
|
77
84
|
id: e.tablename + "-pagination"
|
|
78
85
|
}, [
|
|
79
86
|
n("button", {
|
|
80
|
-
onClick:
|
|
87
|
+
onClick: O,
|
|
81
88
|
type: "button",
|
|
82
89
|
class: "vs-pagination-button vs-pagination-nav",
|
|
83
|
-
disabled:
|
|
90
|
+
disabled: a.value === 1
|
|
84
91
|
}, " ‹‹ ", 8, ce),
|
|
85
|
-
|
|
92
|
+
c.value > 1 ? (b(), f("button", {
|
|
86
93
|
key: 0,
|
|
87
94
|
type: "button",
|
|
88
95
|
class: "vs-pagination-button",
|
|
89
|
-
onClick:
|
|
90
|
-
}, " 1 ")) :
|
|
91
|
-
|
|
92
|
-
(
|
|
93
|
-
key:
|
|
96
|
+
onClick: u[0] || (u[0] = (o) => y(1))
|
|
97
|
+
}, " 1 ")) : x("", !0),
|
|
98
|
+
c.value > 2 ? (b(), f("span", ie, "...")) : x("", !0),
|
|
99
|
+
(b(!0), f(M, null, B(S.value, (o) => (b(), f("button", {
|
|
100
|
+
key: o,
|
|
94
101
|
type: "button",
|
|
95
|
-
class:
|
|
102
|
+
class: V([
|
|
96
103
|
"vs-pagination-button",
|
|
97
|
-
{ "vs-active":
|
|
104
|
+
{ "vs-active": a.value === o }
|
|
98
105
|
]),
|
|
99
|
-
id: e.tablename + "-page-" +
|
|
100
|
-
onClick: (
|
|
101
|
-
},
|
|
102
|
-
|
|
103
|
-
|
|
106
|
+
id: e.tablename + "-page-" + o,
|
|
107
|
+
onClick: (v) => y(o)
|
|
108
|
+
}, P(o), 11, ue))), 128)),
|
|
109
|
+
i.value < g.value - 1 ? (b(), f("span", ve, "...")) : x("", !0),
|
|
110
|
+
i.value < g.value ? (b(), f("button", {
|
|
104
111
|
key: 3,
|
|
105
112
|
type: "button",
|
|
106
113
|
class: "vs-pagination-button",
|
|
107
|
-
onClick:
|
|
108
|
-
},
|
|
114
|
+
onClick: u[1] || (u[1] = (o) => y(g.value))
|
|
115
|
+
}, P(g.value), 1)) : x("", !0),
|
|
109
116
|
n("button", {
|
|
110
117
|
onClick: D,
|
|
111
118
|
type: "button",
|
|
112
119
|
class: "vs-pagination-button vs-pagination-nav",
|
|
113
|
-
disabled:
|
|
114
|
-
}, " ›› ", 8,
|
|
115
|
-
], 8,
|
|
120
|
+
disabled: a.value === g.value
|
|
121
|
+
}, " ›› ", 8, he)
|
|
122
|
+
], 8, de));
|
|
116
123
|
}
|
|
117
|
-
}),
|
|
118
|
-
const
|
|
119
|
-
for (const [t,
|
|
120
|
-
|
|
121
|
-
return
|
|
122
|
-
},
|
|
124
|
+
}), U = (e, s) => {
|
|
125
|
+
const l = e.__vccOpts || e;
|
|
126
|
+
for (const [t, r] of s)
|
|
127
|
+
l[t] = r;
|
|
128
|
+
return l;
|
|
129
|
+
}, fe = /* @__PURE__ */ U(ge, [["__scopeId", "data-v-dd26d1ca"]]), be = { class: "vs-search" }, me = ["placeholder", "value"], we = /* @__PURE__ */ K({
|
|
123
130
|
__name: "VsSearch",
|
|
124
131
|
props: {
|
|
125
132
|
modelValue: {},
|
|
126
133
|
placeholder: {}
|
|
127
134
|
},
|
|
128
135
|
emits: ["update:modelValue", "input-typed"],
|
|
129
|
-
setup(e, { emit:
|
|
130
|
-
const
|
|
131
|
-
const
|
|
132
|
-
|
|
136
|
+
setup(e, { emit: s }) {
|
|
137
|
+
const l = s, t = (r) => {
|
|
138
|
+
const a = r.target;
|
|
139
|
+
l("update:modelValue", a.value), l("input-typed", a.value);
|
|
133
140
|
};
|
|
134
|
-
return (
|
|
135
|
-
|
|
141
|
+
return (r, a) => (b(), f("div", be, [
|
|
142
|
+
a[0] || (a[0] = n("div", { class: "vs-search-icon" }, [
|
|
136
143
|
n("svg", {
|
|
137
144
|
viewBox: "0 0 24 24",
|
|
138
145
|
fill: "currentColor"
|
|
@@ -146,233 +153,239 @@ const re = ["id"], ce = ["disabled"], de = {
|
|
|
146
153
|
placeholder: e.placeholder,
|
|
147
154
|
value: e.modelValue,
|
|
148
155
|
onInput: t
|
|
149
|
-
}, null, 40,
|
|
156
|
+
}, null, 40, me)
|
|
150
157
|
]));
|
|
151
158
|
}
|
|
152
|
-
}),
|
|
159
|
+
}), ye = { class: "vs-rows-per-page" }, pe = ["value"], Ce = ["value"], ke = /* @__PURE__ */ K({
|
|
153
160
|
__name: "VsRowsPerPage",
|
|
154
161
|
props: {
|
|
155
162
|
modelValue: {},
|
|
156
163
|
options: {}
|
|
157
164
|
},
|
|
158
165
|
emits: ["update:modelValue", "rows-per-page-changed"],
|
|
159
|
-
setup(e, { emit:
|
|
160
|
-
const
|
|
161
|
-
const
|
|
162
|
-
t("update:modelValue",
|
|
166
|
+
setup(e, { emit: s }) {
|
|
167
|
+
const l = e, t = s, r = l.options ?? [10, 25, 50, 100], a = (c) => {
|
|
168
|
+
const i = Number(c.target.value);
|
|
169
|
+
t("update:modelValue", i), t("rows-per-page-changed", i);
|
|
163
170
|
};
|
|
164
|
-
return (
|
|
165
|
-
|
|
171
|
+
return (c, i) => (b(), f("div", ye, [
|
|
172
|
+
i[0] || (i[0] = n("span", { class: "vs-rows-label" }, "Items Per Page", -1)),
|
|
166
173
|
n("select", {
|
|
167
174
|
class: "vs-items-dropdown",
|
|
168
175
|
value: e.modelValue,
|
|
169
|
-
onChange:
|
|
176
|
+
onChange: a
|
|
170
177
|
}, [
|
|
171
|
-
(
|
|
172
|
-
key:
|
|
173
|
-
value:
|
|
174
|
-
},
|
|
175
|
-
], 40,
|
|
178
|
+
(b(!0), f(M, null, B(d(r), (g) => (b(), f("option", {
|
|
179
|
+
key: g,
|
|
180
|
+
value: g
|
|
181
|
+
}, P(g), 9, Ce))), 128))
|
|
182
|
+
], 40, pe)
|
|
176
183
|
]));
|
|
177
184
|
}
|
|
178
|
-
}),
|
|
179
|
-
function
|
|
180
|
-
const
|
|
185
|
+
}), Pe = /* @__PURE__ */ U(ke, [["__scopeId", "data-v-dd11bb0e"]]);
|
|
186
|
+
function Se(e, s, l, t, r) {
|
|
187
|
+
const a = L(1), c = L(e.sort ?? []);
|
|
181
188
|
F(
|
|
182
189
|
() => e.sort,
|
|
183
|
-
(
|
|
184
|
-
|
|
190
|
+
(u) => {
|
|
191
|
+
u && (c.value = [...u]);
|
|
185
192
|
},
|
|
186
193
|
{ deep: !0 }
|
|
187
194
|
);
|
|
188
|
-
const
|
|
189
|
-
() => e.serverOptions?.sort ??
|
|
195
|
+
const i = C(
|
|
196
|
+
() => e.serverOptions?.sort ?? c.value ?? []
|
|
190
197
|
);
|
|
191
198
|
return {
|
|
192
199
|
sortedRows: C(() => {
|
|
193
|
-
let
|
|
194
|
-
return
|
|
200
|
+
let u = e.rows;
|
|
201
|
+
return r.value && (u = re(u, r.value)), i.value.length && (u = ae(u, i.value)), e.rowsPerPage && (u = oe(u, l.value, t.value)), u;
|
|
195
202
|
}),
|
|
196
|
-
activeSort:
|
|
203
|
+
activeSort: i,
|
|
197
204
|
sortHelpers: {
|
|
198
|
-
isColumnSorted: (
|
|
199
|
-
getSortPriority: (
|
|
200
|
-
const
|
|
201
|
-
return
|
|
205
|
+
isColumnSorted: (u) => i.value.some((o) => o.field === u),
|
|
206
|
+
getSortPriority: (u) => {
|
|
207
|
+
const o = i.value.find((v) => v.field === u);
|
|
208
|
+
return o ? o.priority ?? null : null;
|
|
202
209
|
},
|
|
203
|
-
getSortOrder: (
|
|
204
|
-
handleSort: (
|
|
205
|
-
let
|
|
206
|
-
e.serverOptions ?
|
|
207
|
-
const
|
|
208
|
-
|
|
210
|
+
getSortOrder: (u) => i.value.find((o) => o.field === u)?.order ?? null,
|
|
211
|
+
handleSort: (u, o) => {
|
|
212
|
+
let v = [];
|
|
213
|
+
e.serverOptions ? v = [...e.serverOptions.sort ?? []] : e.sort && (v = [...e.sort]);
|
|
214
|
+
const p = v.findIndex((R) => R.field === u);
|
|
215
|
+
o.shiftKey ? p === -1 ? v.push({ field: u, order: "asc" }) : v[p]?.order === "asc" ? v[p].order = "desc" : v.splice(p, 1) : p === -1 ? v = [{ field: u, order: "asc" }] : v[p]?.order === "asc" ? v = [{ field: u, order: "desc" }] : v = [], v = v.map((R, T) => ({ ...R, priority: T + 1 })), e.serverOptions ? s("update:serverOptions", { ...e.serverOptions, sort: v }) : s("update:sort", v), l.value = a.value, s("sort-changed", { sort: v });
|
|
209
216
|
}
|
|
210
217
|
}
|
|
211
218
|
};
|
|
212
219
|
}
|
|
213
|
-
function
|
|
214
|
-
const
|
|
215
|
-
get: () => e.serverItemsLength !== void 0 ? e.serverItemsLength :
|
|
220
|
+
function Re(e, s, l, t, r) {
|
|
221
|
+
const a = C({
|
|
222
|
+
get: () => e.serverItemsLength !== void 0 ? e.serverItemsLength : r.value.length,
|
|
216
223
|
set: (y) => {
|
|
217
|
-
e.serverItemsLength !== void 0 &&
|
|
224
|
+
e.serverItemsLength !== void 0 && s("update:serverItemsLength", y);
|
|
218
225
|
}
|
|
219
|
-
}),
|
|
220
|
-
get: () => e.serverOptions?.page ??
|
|
226
|
+
}), c = C({
|
|
227
|
+
get: () => e.serverOptions?.page ?? l.value,
|
|
221
228
|
set: (y) => {
|
|
222
|
-
e.serverOptions ?
|
|
229
|
+
e.serverOptions ? s("update:serverOptions", { ...e.serverOptions, page: y }) : l.value = y;
|
|
223
230
|
}
|
|
224
|
-
}),
|
|
231
|
+
}), i = C(() => {
|
|
225
232
|
const y = t.value;
|
|
226
|
-
return ne(
|
|
227
|
-
}),
|
|
228
|
-
e.serverOptions &&
|
|
233
|
+
return ne(l.value, y, a.value);
|
|
234
|
+
}), g = (y) => {
|
|
235
|
+
e.serverOptions && s("update:serverOptions", { ...e.serverOptions, page: y }), s("page-updated", y);
|
|
229
236
|
};
|
|
230
237
|
return {
|
|
231
|
-
currentPage:
|
|
232
|
-
totalRecords:
|
|
233
|
-
recordRange:
|
|
234
|
-
handlePageChange:
|
|
238
|
+
currentPage: c,
|
|
239
|
+
totalRecords: a,
|
|
240
|
+
recordRange: i,
|
|
241
|
+
handlePageChange: g,
|
|
235
242
|
paginationHelpers: {
|
|
236
|
-
page:
|
|
237
|
-
totalRecords:
|
|
238
|
-
recordRange:
|
|
239
|
-
handlePageChange:
|
|
243
|
+
page: l,
|
|
244
|
+
totalRecords: a,
|
|
245
|
+
recordRange: i,
|
|
246
|
+
handlePageChange: g
|
|
240
247
|
}
|
|
241
248
|
};
|
|
242
249
|
}
|
|
243
|
-
function
|
|
244
|
-
const
|
|
250
|
+
function Ve(e, s, l, t) {
|
|
251
|
+
const r = C({
|
|
245
252
|
get: () => t.value,
|
|
246
|
-
set: (
|
|
253
|
+
set: (c) => t.value = c
|
|
247
254
|
});
|
|
248
|
-
return F(t, (
|
|
249
|
-
const
|
|
250
|
-
|
|
255
|
+
return F(t, (c) => {
|
|
256
|
+
const i = e.serverItemsLength ?? e.rows.length, g = Q(i, c);
|
|
257
|
+
l.value > g ? l.value = g || 1 : l.value < 1 && (l.value = 1);
|
|
251
258
|
}), {
|
|
252
|
-
vsRowsPerPage:
|
|
253
|
-
handleRowsPerPage: (
|
|
254
|
-
t.value =
|
|
259
|
+
vsRowsPerPage: r,
|
|
260
|
+
handleRowsPerPage: (c) => {
|
|
261
|
+
t.value = c, s("rows-per-page-changed", c);
|
|
255
262
|
}
|
|
256
263
|
};
|
|
257
264
|
}
|
|
258
|
-
function
|
|
259
|
-
const
|
|
265
|
+
function xe(e, s) {
|
|
266
|
+
const l = (c) => {
|
|
267
|
+
s.value = c, e("input-typed", c);
|
|
268
|
+
};
|
|
260
269
|
return {
|
|
261
|
-
|
|
262
|
-
|
|
270
|
+
searchQuery: s,
|
|
271
|
+
onInputTyped: l,
|
|
272
|
+
clearSearch: () => {
|
|
273
|
+
s.value = "", e("input-typed", "");
|
|
274
|
+
},
|
|
275
|
+
setSearchQuery: (c) => {
|
|
276
|
+
s.value = c, e("input-typed", c);
|
|
277
|
+
},
|
|
278
|
+
searchHelpers: {
|
|
279
|
+
searchQuery: s,
|
|
280
|
+
onInputTyped: l
|
|
281
|
+
}
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
function Te(e, s) {
|
|
285
|
+
const l = L(1), t = L(e.serverOptions?.rowsPerPage ?? e.rowsPerPage), r = L(""), { sortedRows: a, sortHelpers: c } = Se(e, s, l, t, r), { totalRecords: i, recordRange: g, handlePageChange: S } = Re(e, s, l, t, a), { handleRowsPerPage: y } = Ve(e, s, l, t), { onInputTyped: O } = xe(s, r);
|
|
286
|
+
return {
|
|
287
|
+
//Pagination
|
|
288
|
+
page: l,
|
|
263
289
|
totalRecords: i,
|
|
264
|
-
recordRange:
|
|
265
|
-
handlePageChange:
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
290
|
+
recordRange: g,
|
|
291
|
+
handlePageChange: S,
|
|
292
|
+
//Row Per Page
|
|
293
|
+
rowsPerPage: t,
|
|
294
|
+
handleRowsPerPage: y,
|
|
295
|
+
//Sort
|
|
296
|
+
sortedRows: a,
|
|
297
|
+
sortHelpers: c,
|
|
298
|
+
//Search
|
|
299
|
+
searchQuery: r,
|
|
300
|
+
onInputTyped: O
|
|
269
301
|
};
|
|
270
302
|
}
|
|
271
|
-
function
|
|
272
|
-
const
|
|
303
|
+
function $e(e, s) {
|
|
304
|
+
const l = L(e.itemSelected || []);
|
|
273
305
|
F(
|
|
274
306
|
() => e.itemSelected,
|
|
275
|
-
(
|
|
276
|
-
|
|
307
|
+
(o) => {
|
|
308
|
+
o ? l.value = [...o] : l.value = [];
|
|
277
309
|
},
|
|
278
310
|
{ immediate: !0, deep: !0 }
|
|
279
311
|
);
|
|
280
312
|
const t = C({
|
|
281
|
-
get: () =>
|
|
282
|
-
set: (
|
|
283
|
-
|
|
313
|
+
get: () => l.value,
|
|
314
|
+
set: (o) => {
|
|
315
|
+
l.value = o, s("update:itemSelected", o);
|
|
284
316
|
}
|
|
285
|
-
}),
|
|
317
|
+
}), r = C(() => e.itemSelected !== null), a = C(
|
|
286
318
|
() => e.rows.length > 0 && t.value.length === e.rows.length
|
|
287
|
-
),
|
|
288
|
-
(
|
|
289
|
-
(
|
|
319
|
+
), c = C(() => !e.rows.length || !t.value.length ? !1 : !a.value && e.rows.some(
|
|
320
|
+
(o, v) => t.value.some(
|
|
321
|
+
(p, R) => k(p, R, e.rowKey) === k(o, v, e.rowKey)
|
|
290
322
|
)
|
|
291
|
-
)),
|
|
292
|
-
const
|
|
323
|
+
)), i = (o, v) => {
|
|
324
|
+
const p = k(o, v, e.rowKey);
|
|
293
325
|
t.value.some(
|
|
294
|
-
(
|
|
326
|
+
(T, H) => k(T, H, e.rowKey) === p
|
|
295
327
|
) ? (t.value = t.value.filter(
|
|
296
|
-
(
|
|
297
|
-
),
|
|
298
|
-
},
|
|
299
|
-
const
|
|
300
|
-
t.value =
|
|
328
|
+
(T, H) => k(T, H, e.rowKey) !== p
|
|
329
|
+
), s("row-deselected", o, v)) : (t.value = [...t.value, o], s("row-selected", o, v));
|
|
330
|
+
}, g = (o) => {
|
|
331
|
+
const v = o.target;
|
|
332
|
+
t.value = v.checked ? [...e.rows] : [], s("all-rows-selected", t.value);
|
|
301
333
|
};
|
|
302
334
|
return {
|
|
303
335
|
selectedItems: t,
|
|
304
|
-
isItemSelectedControlled:
|
|
305
|
-
isAllChecked:
|
|
306
|
-
isSomeChecked:
|
|
307
|
-
toggleRow:
|
|
308
|
-
toggleAll:
|
|
309
|
-
selectRow: (
|
|
310
|
-
Z(
|
|
336
|
+
isItemSelectedControlled: r,
|
|
337
|
+
isAllChecked: a,
|
|
338
|
+
isSomeChecked: c,
|
|
339
|
+
toggleRow: i,
|
|
340
|
+
toggleAll: g,
|
|
341
|
+
selectRow: (o, v) => {
|
|
342
|
+
Z(o, t.value, e.rowKey) || (t.value = [...t.value, o], s("row-selected", o, v));
|
|
311
343
|
},
|
|
312
|
-
deselectRow: (
|
|
313
|
-
const
|
|
344
|
+
deselectRow: (o, v) => {
|
|
345
|
+
const p = k(o, v, e.rowKey);
|
|
314
346
|
t.value = t.value.filter(
|
|
315
|
-
(
|
|
316
|
-
),
|
|
347
|
+
(R, T) => k(R, T, e.rowKey) !== p
|
|
348
|
+
), s("row-deselected", o, v);
|
|
317
349
|
},
|
|
318
350
|
selectAll: () => {
|
|
319
|
-
t.value = [...e.rows],
|
|
351
|
+
t.value = [...e.rows], s("all-rows-selected", t.value);
|
|
320
352
|
},
|
|
321
353
|
deselectAll: () => {
|
|
322
|
-
t.value = [],
|
|
354
|
+
t.value = [], s("all-rows-selected", []);
|
|
323
355
|
},
|
|
324
356
|
clearSelection: () => {
|
|
325
357
|
t.value = [];
|
|
326
358
|
},
|
|
327
359
|
selectionHelpers: {
|
|
328
360
|
selectedItems: t,
|
|
329
|
-
isItemSelectedControlled:
|
|
330
|
-
isAllChecked:
|
|
331
|
-
isSomeChecked:
|
|
332
|
-
toggleRow:
|
|
333
|
-
toggleAll:
|
|
334
|
-
}
|
|
335
|
-
};
|
|
336
|
-
}
|
|
337
|
-
function $e(e) {
|
|
338
|
-
const l = H(""), s = (o) => {
|
|
339
|
-
l.value = o, e("input-typed", o);
|
|
340
|
-
};
|
|
341
|
-
return {
|
|
342
|
-
searchQuery: l,
|
|
343
|
-
onInputTyped: s,
|
|
344
|
-
clearSearch: () => {
|
|
345
|
-
l.value = "", e("input-typed", "");
|
|
346
|
-
},
|
|
347
|
-
setSearchQuery: (o) => {
|
|
348
|
-
l.value = o, e("input-typed", o);
|
|
349
|
-
},
|
|
350
|
-
searchHelpers: {
|
|
351
|
-
searchQuery: l,
|
|
352
|
-
onInputTyped: s
|
|
361
|
+
isItemSelectedControlled: r,
|
|
362
|
+
isAllChecked: a,
|
|
363
|
+
isSomeChecked: c,
|
|
364
|
+
toggleRow: i,
|
|
365
|
+
toggleAll: g
|
|
353
366
|
}
|
|
354
367
|
};
|
|
355
368
|
}
|
|
356
|
-
const
|
|
369
|
+
const Ie = { class: "vs-datatable" }, Oe = {
|
|
357
370
|
key: 0,
|
|
358
371
|
class: "vs-search-container"
|
|
359
|
-
},
|
|
372
|
+
}, _e = {
|
|
360
373
|
ref: "tableResponsiveRef",
|
|
361
374
|
class: "vs-table-wrapper"
|
|
362
|
-
},
|
|
375
|
+
}, De = {
|
|
363
376
|
key: 0,
|
|
364
377
|
class: "vs-checkbox-column",
|
|
365
378
|
style: { width: "5%" }
|
|
366
|
-
},
|
|
379
|
+
}, He = { class: "vs-checkbox" }, Le = ["id", "checked", "indeterminate"], Me = ["for"], Be = ["onClick"], Ae = { class: "vs-header-content" }, Ke = { class: "vs-header-label" }, ze = {
|
|
367
380
|
key: 0,
|
|
368
381
|
class: "vs-sort-icons"
|
|
369
|
-
},
|
|
382
|
+
}, Ne = {
|
|
370
383
|
key: 1,
|
|
371
384
|
class: "vs-sort-priority"
|
|
372
|
-
},
|
|
385
|
+
}, Fe = { key: 0 }, Ue = ["colspan"], je = { key: 1 }, Ee = ["colspan"], Ze = { class: "vs-no-data-message" }, Qe = { class: "vs-no-data-description" }, Ge = ["onClick"], Je = { class: "vs-checkbox" }, We = ["id", "value", "checked", "onChange"], Xe = ["for"], Ye = {
|
|
373
386
|
key: 1,
|
|
374
387
|
class: "vs-table-footer"
|
|
375
|
-
},
|
|
388
|
+
}, qe = { class: "vs-footer-left" }, et = { class: "vs-table-info" }, tt = /* @__PURE__ */ K({
|
|
376
389
|
__name: "VsDataTable",
|
|
377
390
|
props: {
|
|
378
391
|
rows: { default: () => [] },
|
|
@@ -385,16 +398,16 @@ const Te = { class: "vs-datatable" }, Ie = {
|
|
|
385
398
|
headerText: { default: "" },
|
|
386
399
|
loading: { type: Boolean, default: !1 },
|
|
387
400
|
columns: {},
|
|
388
|
-
showSearch: { type: Boolean, default: !0 },
|
|
389
401
|
tableClass: {},
|
|
390
402
|
rowClass: {},
|
|
391
403
|
showFooter: { type: Boolean, default: !0 },
|
|
392
404
|
containerClass: {},
|
|
393
405
|
headerClass: {},
|
|
394
406
|
cellClass: {},
|
|
407
|
+
showSearch: { type: Boolean, default: !0 },
|
|
395
408
|
searchClass: {},
|
|
396
|
-
paginationClass: {},
|
|
397
409
|
searchPlaceholder: { default: "Search..." },
|
|
410
|
+
paginationClass: {},
|
|
398
411
|
loadingText: { default: "Loading..." },
|
|
399
412
|
noDataText: { default: "No data available" },
|
|
400
413
|
noDataDescription: { default: "Try adjusting your search criteria" },
|
|
@@ -404,30 +417,32 @@ const Te = { class: "vs-datatable" }, Ie = {
|
|
|
404
417
|
rowKey: { type: [String, Function], default: "id" }
|
|
405
418
|
},
|
|
406
419
|
emits: ["update:itemSelected", "update:serverItemsLength", "update:serverOptions", "update:sort", "input-typed", "page-updated", "sort-changed", "row-click", "row-selected", "row-deselected", "all-rows-selected", "table:mounted", "table:unmounted", "table:before-mount", "data-loaded", "data-error"],
|
|
407
|
-
setup(e, { emit:
|
|
408
|
-
const
|
|
409
|
-
page:
|
|
410
|
-
rowsPerPage:
|
|
411
|
-
totalRecords:
|
|
412
|
-
recordRange:
|
|
413
|
-
handlePageChange:
|
|
414
|
-
handleRowsPerPage:
|
|
420
|
+
setup(e, { emit: s }) {
|
|
421
|
+
const l = e, t = s, r = W(), a = C(() => !!r.onRowClick), {
|
|
422
|
+
page: c,
|
|
423
|
+
rowsPerPage: i,
|
|
424
|
+
totalRecords: g,
|
|
425
|
+
recordRange: S,
|
|
426
|
+
handlePageChange: y,
|
|
427
|
+
handleRowsPerPage: O,
|
|
415
428
|
sortedRows: D,
|
|
416
|
-
sortHelpers:
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
429
|
+
sortHelpers: m,
|
|
430
|
+
searchQuery: u,
|
|
431
|
+
onInputTyped: o
|
|
432
|
+
} = Te(l, t), {
|
|
433
|
+
selectedItems: v,
|
|
434
|
+
isItemSelectedControlled: p,
|
|
435
|
+
isAllChecked: R,
|
|
436
|
+
isSomeChecked: T,
|
|
437
|
+
toggleAll: H,
|
|
438
|
+
toggleRow: G
|
|
439
|
+
} = $e(l, t), j = C(
|
|
440
|
+
() => le(l.columns, p.value)
|
|
426
441
|
);
|
|
427
442
|
return X(() => {
|
|
428
443
|
t("table:mounted");
|
|
429
444
|
try {
|
|
430
|
-
t("data-loaded",
|
|
445
|
+
t("data-loaded", l.rows);
|
|
431
446
|
} catch (_) {
|
|
432
447
|
t("data-error", _);
|
|
433
448
|
}
|
|
@@ -435,54 +450,54 @@ const Te = { class: "vs-datatable" }, Ie = {
|
|
|
435
450
|
t("table:unmounted");
|
|
436
451
|
}), q(() => {
|
|
437
452
|
t("table:before-mount");
|
|
438
|
-
}), (_, w) => (
|
|
439
|
-
e.showSearch ? (
|
|
440
|
-
z(
|
|
441
|
-
modelValue:
|
|
442
|
-
"onUpdate:modelValue": w[0] || (w[0] = (
|
|
443
|
-
onInputTyped:
|
|
453
|
+
}), (_, w) => (b(), f("div", Ie, [
|
|
454
|
+
e.showSearch ? (b(), f("div", Oe, [
|
|
455
|
+
z(we, {
|
|
456
|
+
modelValue: d(u),
|
|
457
|
+
"onUpdate:modelValue": w[0] || (w[0] = (h) => N(u) ? u.value = h : null),
|
|
458
|
+
onInputTyped: d(o),
|
|
444
459
|
placeholder: e.searchPlaceholder,
|
|
445
|
-
class:
|
|
460
|
+
class: V(e.searchClass)
|
|
446
461
|
}, null, 8, ["modelValue", "onInputTyped", "placeholder", "class"]),
|
|
447
|
-
|
|
448
|
-
])) :
|
|
462
|
+
A(_.$slots, "filterArea", {}, void 0, !0)
|
|
463
|
+
])) : x("", !0),
|
|
449
464
|
n("div", {
|
|
450
|
-
class:
|
|
465
|
+
class: V(["vs-table-container", e.containerClass])
|
|
451
466
|
}, [
|
|
452
|
-
n("div",
|
|
467
|
+
n("div", _e, [
|
|
453
468
|
n("table", {
|
|
454
|
-
class:
|
|
469
|
+
class: V(["vs-table", e.tableClass])
|
|
455
470
|
}, [
|
|
456
471
|
n("thead", null, [
|
|
457
472
|
n("tr", null, [
|
|
458
|
-
|
|
459
|
-
n("div",
|
|
473
|
+
d(p) ? (b(), f("th", De, [
|
|
474
|
+
n("div", He, [
|
|
460
475
|
n("input", {
|
|
461
476
|
type: "checkbox",
|
|
462
477
|
id: e.tablename + "-main-checkbox",
|
|
463
|
-
checked:
|
|
464
|
-
indeterminate:
|
|
478
|
+
checked: d(R),
|
|
479
|
+
indeterminate: d(T),
|
|
465
480
|
onChange: w[1] || (w[1] = //@ts-ignore
|
|
466
|
-
(...
|
|
467
|
-
}, null, 40,
|
|
481
|
+
(...h) => d(H) && d(H)(...h))
|
|
482
|
+
}, null, 40, Le),
|
|
468
483
|
n("label", {
|
|
469
484
|
for: e.tablename + "-main-checkbox"
|
|
470
485
|
}, null, 8, Me)
|
|
471
486
|
])
|
|
472
|
-
])) :
|
|
473
|
-
(
|
|
474
|
-
key:
|
|
475
|
-
onClick: (
|
|
476
|
-
style: ee({ width:
|
|
477
|
-
class:
|
|
487
|
+
])) : x("", !0),
|
|
488
|
+
(b(!0), f(M, null, B(e.columns, (h) => (b(), f("th", {
|
|
489
|
+
key: h.field,
|
|
490
|
+
onClick: ($) => h.sortable ? d(m).handleSort(h.field, $) : null,
|
|
491
|
+
style: ee({ width: h.width + "%" }),
|
|
492
|
+
class: V([h.sortable ? "vs-sortable" : "", e.headerClass])
|
|
478
493
|
}, [
|
|
479
|
-
|
|
480
|
-
n("div",
|
|
481
|
-
n("span", Ke,
|
|
482
|
-
|
|
494
|
+
A(_.$slots, `header-${h.field}`, { column: h }, () => [
|
|
495
|
+
n("div", Ae, [
|
|
496
|
+
n("span", Ke, P(h.label), 1),
|
|
497
|
+
h.sortable ? (b(), f("div", ze, [
|
|
483
498
|
n("span", {
|
|
484
|
-
class:
|
|
485
|
-
"vs-active":
|
|
499
|
+
class: V(["vs-sort-icon vs-sort-asc", {
|
|
500
|
+
"vs-active": d(m).isColumnSorted(h.field) && d(m).getSortOrder(h.field) === "asc"
|
|
486
501
|
}])
|
|
487
502
|
}, [...w[5] || (w[5] = [
|
|
488
503
|
n("svg", {
|
|
@@ -495,8 +510,8 @@ const Te = { class: "vs-datatable" }, Ie = {
|
|
|
495
510
|
], -1)
|
|
496
511
|
])], 2),
|
|
497
512
|
n("span", {
|
|
498
|
-
class:
|
|
499
|
-
"vs-active":
|
|
513
|
+
class: V(["vs-sort-icon vs-sort-desc", {
|
|
514
|
+
"vs-active": d(m).isColumnSorted(h.field) && d(m).getSortOrder(h.field) === "desc"
|
|
500
515
|
}])
|
|
501
516
|
}, [...w[6] || (w[6] = [
|
|
502
517
|
n("svg", {
|
|
@@ -508,69 +523,69 @@ const Te = { class: "vs-datatable" }, Ie = {
|
|
|
508
523
|
n("path", { d: "M480-360 280-560h400L480-360Z" })
|
|
509
524
|
], -1)
|
|
510
525
|
])], 2)
|
|
511
|
-
])) :
|
|
512
|
-
|
|
526
|
+
])) : x("", !0),
|
|
527
|
+
d(m).getSortPriority(h.field) !== null ? (b(), f("span", Ne, P(d(m).getSortPriority(h.field)), 1)) : x("", !0)
|
|
513
528
|
])
|
|
514
529
|
], !0)
|
|
515
|
-
], 14,
|
|
530
|
+
], 14, Be))), 128))
|
|
516
531
|
])
|
|
517
532
|
]),
|
|
518
533
|
n("tbody", null, [
|
|
519
|
-
e.loading ? (
|
|
534
|
+
e.loading ? (b(), f("tr", Fe, [
|
|
520
535
|
n("td", {
|
|
521
|
-
colspan:
|
|
536
|
+
colspan: j.value,
|
|
522
537
|
class: "vs-loading"
|
|
523
538
|
}, [
|
|
524
539
|
w[7] || (w[7] = n("div", { class: "vs-spinner" }, null, -1)),
|
|
525
|
-
n("span", null,
|
|
526
|
-
], 8,
|
|
527
|
-
])) :
|
|
528
|
-
key:
|
|
529
|
-
class:
|
|
540
|
+
n("span", null, P(e.loadingText), 1)
|
|
541
|
+
], 8, Ue)
|
|
542
|
+
])) : d(D).length ? (b(!0), f(M, { key: 2 }, B(d(D), (h, $) => (b(), f("tr", {
|
|
543
|
+
key: d(k)(h, $),
|
|
544
|
+
class: V([
|
|
530
545
|
e.rowClass,
|
|
531
|
-
{ "vs-row-clickable":
|
|
532
|
-
{ "vs-row-selected":
|
|
546
|
+
{ "vs-row-clickable": a.value },
|
|
547
|
+
{ "vs-row-selected": d(Z)(h, d(v), e.rowKey) }
|
|
533
548
|
]),
|
|
534
|
-
onClick: (
|
|
549
|
+
onClick: (I) => _.$emit("row-click", h, $)
|
|
535
550
|
}, [
|
|
536
|
-
|
|
551
|
+
d(p) ? (b(), f("td", {
|
|
537
552
|
key: 0,
|
|
538
553
|
onClick: w[2] || (w[2] = te(() => {
|
|
539
554
|
}, ["stop"])),
|
|
540
555
|
class: "vs-checkbox-column"
|
|
541
556
|
}, [
|
|
542
|
-
n("div",
|
|
557
|
+
n("div", Je, [
|
|
543
558
|
n("input", {
|
|
544
559
|
type: "checkbox",
|
|
545
|
-
id: e.tablename + "-checkbox-" +
|
|
546
|
-
value:
|
|
547
|
-
checked:
|
|
548
|
-
onChange: (
|
|
549
|
-
}, null, 40,
|
|
560
|
+
id: e.tablename + "-checkbox-" + d(k)(h, $),
|
|
561
|
+
value: h,
|
|
562
|
+
checked: d(v).some((I, J) => d(k)(I, J) === d(k)(h, $)),
|
|
563
|
+
onChange: (I) => d(G)(h, $)
|
|
564
|
+
}, null, 40, We),
|
|
550
565
|
n("label", {
|
|
551
|
-
for: e.tablename + "-checkbox-" +
|
|
552
|
-
}, null, 8,
|
|
566
|
+
for: e.tablename + "-checkbox-" + d(k)(h, $)
|
|
567
|
+
}, null, 8, Xe)
|
|
553
568
|
])
|
|
554
|
-
])) :
|
|
555
|
-
(
|
|
556
|
-
key:
|
|
557
|
-
class:
|
|
569
|
+
])) : x("", !0),
|
|
570
|
+
(b(!0), f(M, null, B(e.columns, (I) => (b(), f("td", {
|
|
571
|
+
key: I.field,
|
|
572
|
+
class: V(e.cellClass)
|
|
558
573
|
}, [
|
|
559
|
-
|
|
560
|
-
item:
|
|
561
|
-
value:
|
|
562
|
-
column:
|
|
563
|
-
index:
|
|
574
|
+
A(_.$slots, `cell-${I.field}`, {
|
|
575
|
+
item: h,
|
|
576
|
+
value: d(E)(h, I.field),
|
|
577
|
+
column: I,
|
|
578
|
+
index: $
|
|
564
579
|
}, () => [
|
|
565
|
-
se(
|
|
580
|
+
se(P(d(E)(h, I.field)), 1)
|
|
566
581
|
], !0)
|
|
567
582
|
], 2))), 128))
|
|
568
|
-
], 10,
|
|
583
|
+
], 10, Ge))), 128)) : (b(), f("tr", je, [
|
|
569
584
|
n("td", {
|
|
570
|
-
colspan:
|
|
585
|
+
colspan: j.value,
|
|
571
586
|
class: "vs-no-data"
|
|
572
587
|
}, [
|
|
573
|
-
|
|
588
|
+
A(_.$slots, "no-data", {}, () => [
|
|
574
589
|
w[8] || (w[8] = n("div", { class: "vs-no-data-icon" }, [
|
|
575
590
|
n("svg", {
|
|
576
591
|
viewBox: "0 0 24 24",
|
|
@@ -579,44 +594,44 @@ const Te = { class: "vs-datatable" }, Ie = {
|
|
|
579
594
|
n("path", { d: "M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-5 14H7v-2h7v2zm3-4H7v-2h10v2zm0-4H7V7h10v2z" })
|
|
580
595
|
])
|
|
581
596
|
], -1)),
|
|
582
|
-
n("div",
|
|
583
|
-
n("div",
|
|
597
|
+
n("div", Ze, P(e.noDataText), 1),
|
|
598
|
+
n("div", Qe, P(e.noDataDescription), 1)
|
|
584
599
|
], !0)
|
|
585
|
-
], 8,
|
|
600
|
+
], 8, Ee)
|
|
586
601
|
]))
|
|
587
602
|
])
|
|
588
603
|
], 2)
|
|
589
604
|
], 512)
|
|
590
605
|
], 2),
|
|
591
|
-
e.showFooter ? (
|
|
592
|
-
n("div",
|
|
593
|
-
z(
|
|
594
|
-
modelValue:
|
|
595
|
-
"onUpdate:modelValue": w[3] || (w[3] = (
|
|
596
|
-
onRowsPerPageChanged:
|
|
606
|
+
e.showFooter ? (b(), f("div", Ye, [
|
|
607
|
+
n("div", qe, [
|
|
608
|
+
z(Pe, {
|
|
609
|
+
modelValue: d(i),
|
|
610
|
+
"onUpdate:modelValue": w[3] || (w[3] = (h) => N(i) ? i.value = h : null),
|
|
611
|
+
onRowsPerPageChanged: d(O)
|
|
597
612
|
}, null, 8, ["modelValue", "onRowsPerPageChanged"]),
|
|
598
613
|
w[9] || (w[9] = n("div", { class: "vs-divider" }, null, -1)),
|
|
599
|
-
n("div",
|
|
614
|
+
n("div", et, P(d(S).start < 1 ? 0 : d(S).start) + " - " + P(d(S).end) + " of " + P(d(g)) + " " + P(e.entriesText), 1)
|
|
600
615
|
]),
|
|
601
|
-
z(
|
|
602
|
-
modelValue: c
|
|
603
|
-
"onUpdate:modelValue": w[4] || (w[4] = (
|
|
604
|
-
totalRecords:
|
|
605
|
-
rowsPerPage:
|
|
616
|
+
z(fe, {
|
|
617
|
+
modelValue: d(c),
|
|
618
|
+
"onUpdate:modelValue": w[4] || (w[4] = (h) => N(c) ? c.value = h : null),
|
|
619
|
+
totalRecords: d(g),
|
|
620
|
+
rowsPerPage: d(i),
|
|
606
621
|
maxVisible: e.maxVisiblePages,
|
|
607
622
|
tablename: e.tablename,
|
|
608
|
-
class:
|
|
609
|
-
onPageChanged:
|
|
623
|
+
class: V(e.paginationClass),
|
|
624
|
+
onPageChanged: d(y)
|
|
610
625
|
}, null, 8, ["modelValue", "totalRecords", "rowsPerPage", "maxVisible", "tablename", "class", "onPageChanged"])
|
|
611
|
-
])) :
|
|
626
|
+
])) : x("", !0)
|
|
612
627
|
]));
|
|
613
628
|
}
|
|
614
|
-
}),
|
|
629
|
+
}), st = /* @__PURE__ */ U(tt, [["__scopeId", "data-v-84a43921"]]), at = {
|
|
615
630
|
install(e) {
|
|
616
|
-
e.component("VsDataTable",
|
|
631
|
+
e.component("VsDataTable", st);
|
|
617
632
|
}
|
|
618
633
|
};
|
|
619
634
|
export {
|
|
620
|
-
|
|
621
|
-
|
|
635
|
+
st as VsDataTable,
|
|
636
|
+
at as default
|
|
622
637
|
};
|