vuetable-next 1.1.0 → 1.1.1
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 +351 -1
- package/dist/style.css +2 -2
- package/dist/types/components/Vuetable.vue.d.ts +1 -0
- package/dist/vue2.cjs +8 -8
- package/dist/vue2.cjs.map +1 -1
- package/dist/vue2.js +1020 -955
- package/dist/vue2.js.map +1 -1
- package/dist/vue3.cjs +2 -2
- package/dist/vue3.cjs.map +1 -1
- package/dist/vue3.js +1291 -1223
- package/dist/vue3.js.map +1 -1
- package/package.json +1 -1
- package/style.css +2 -2
package/dist/vue3.js
CHANGED
|
@@ -1,37 +1,46 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
1
|
+
var ba = Object.defineProperty, ga = Object.defineProperties;
|
|
2
|
+
var va = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var _e = Object.getOwnPropertySymbols;
|
|
4
|
+
var Fn = Object.prototype.hasOwnProperty, On = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var $n = (e, n, a) => n in e ? ba(e, n, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[n] = a, q = (e, n) => {
|
|
6
6
|
for (var a in n || (n = {}))
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var a of
|
|
10
|
-
|
|
7
|
+
Fn.call(n, a) && $n(e, a, n[a]);
|
|
8
|
+
if (_e)
|
|
9
|
+
for (var a of _e(n))
|
|
10
|
+
On.call(n, a) && $n(e, a, n[a]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, he = (e, n) => ga(e, va(n));
|
|
13
|
+
var Tn = (e, n) => {
|
|
14
|
+
var a = {};
|
|
15
|
+
for (var i in e)
|
|
16
|
+
Fn.call(e, i) && n.indexOf(i) < 0 && (a[i] = e[i]);
|
|
17
|
+
if (e != null && _e)
|
|
18
|
+
for (var i of _e(e))
|
|
19
|
+
n.indexOf(i) < 0 && On.call(e, i) && (a[i] = e[i]);
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
var qn = (e, n, a) => new Promise((i, s) => {
|
|
23
|
+
var g = (o) => {
|
|
15
24
|
try {
|
|
16
|
-
|
|
25
|
+
u(a.next(o));
|
|
17
26
|
} catch (d) {
|
|
18
27
|
s(d);
|
|
19
28
|
}
|
|
20
|
-
}, c = (
|
|
29
|
+
}, c = (o) => {
|
|
21
30
|
try {
|
|
22
|
-
|
|
31
|
+
u(a.throw(o));
|
|
23
32
|
} catch (d) {
|
|
24
33
|
s(d);
|
|
25
34
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
35
|
+
}, u = (o) => o.done ? i(o.value) : Promise.resolve(o.value).then(g, c);
|
|
36
|
+
u((a = a.apply(e, n)).next());
|
|
28
37
|
});
|
|
29
|
-
import * as
|
|
30
|
-
import { defineComponent as
|
|
31
|
-
import
|
|
32
|
-
import { openBlock as
|
|
33
|
-
import
|
|
34
|
-
const
|
|
38
|
+
import * as jt from "vue-demi";
|
|
39
|
+
import { defineComponent as Q, inject as pe, ref as A, computed as k, isVue2 as K, h as ha, markRaw as An, toRaw as Dt, watch as te, shallowRef as Ne, onMounted as It, onUpdated as Bn, onBeforeUnmount as Ht, getCurrentInstance as pa, onBeforeUpdate as Rn, onBeforeMount as ya, nextTick as Ve, reactive as Lt, toRefs as ma, provide as Ca, set as wa, triggerRef as Pa, isReadonly as ka, unref as Sa, isRef as Vn } from "vue-demi";
|
|
40
|
+
import Dn from "axios";
|
|
41
|
+
import { openBlock as y, createElementBlock as P, mergeProps as $e, createElementVNode as z, normalizeClass as T, normalizeStyle as oe, resolveComponent as Se, Fragment as U, renderList as se, createBlock as fe, resolveDynamicComponent as Ge, createVNode as Y, createCommentVNode as ee, renderSlot as $a, normalizeProps as Fa, guardReactiveProps as Oa, toDisplayString as tt, withCtx as qt, Transition as Ta, withDirectives as qa, vShow as Ra } from "vue";
|
|
42
|
+
import Da from "mitt";
|
|
43
|
+
const Ha = Q({
|
|
35
44
|
name: "vuetable-field-checkbox",
|
|
36
45
|
inheritAttrs: !1,
|
|
37
46
|
props: {
|
|
@@ -42,50 +51,50 @@ const Pa = J({
|
|
|
42
51
|
title: { type: String, required: !1 }
|
|
43
52
|
},
|
|
44
53
|
setup(e) {
|
|
45
|
-
const n = pe("vuetable"), a =
|
|
54
|
+
const n = pe("vuetable"), a = A(null), i = k(() => (n.tableData || []).filter((d) => n.isSelectedRow(d[n.trackBy])).length), s = k(() => {
|
|
46
55
|
var d;
|
|
47
|
-
return
|
|
56
|
+
return i.value > 0 && i.value < (((d = n.tableData) == null ? void 0 : d.length) || 0);
|
|
48
57
|
});
|
|
49
|
-
function
|
|
58
|
+
function g(d, h) {
|
|
50
59
|
var r;
|
|
51
|
-
d && n.onCheckboxToggled(
|
|
60
|
+
d && n.onCheckboxToggled(h.target.checked, (r = e.rowField) == null ? void 0 : r.name, d);
|
|
52
61
|
}
|
|
53
62
|
function c(d) {
|
|
54
63
|
n.onCheckboxToggledAll(d.target.checked);
|
|
55
64
|
}
|
|
56
|
-
function
|
|
65
|
+
function u(d) {
|
|
57
66
|
return !!d && n.isSelectedRow(d[n.trackBy]);
|
|
58
67
|
}
|
|
59
|
-
function
|
|
60
|
-
return
|
|
68
|
+
function o() {
|
|
69
|
+
return i.value > 0;
|
|
61
70
|
}
|
|
62
|
-
return { vuetable: n, checkbox: a, isIndeterminate: s, toggleCheckbox:
|
|
71
|
+
return { vuetable: n, checkbox: a, isIndeterminate: s, toggleCheckbox: g, toggleAllCheckbox: c, isSelected: u, isAllItemsInCurrentPageSelected: o };
|
|
63
72
|
}
|
|
64
|
-
}),
|
|
73
|
+
}), be = (e, n) => {
|
|
65
74
|
const a = e.__vccOpts || e;
|
|
66
|
-
for (const [
|
|
67
|
-
a[
|
|
75
|
+
for (const [i, s] of n)
|
|
76
|
+
a[i] = s;
|
|
68
77
|
return a;
|
|
69
|
-
},
|
|
70
|
-
function
|
|
71
|
-
return e.isHeader ? (
|
|
72
|
-
|
|
78
|
+
}, Ma = [".indeterminate", "checked"], Ea = ["checked"];
|
|
79
|
+
function ja(e, n, a, i, s, g) {
|
|
80
|
+
return e.isHeader ? (y(), P("th", $e({ key: 0 }, e.$attrs, { class: "vuetable-th-component-checkbox" }), [
|
|
81
|
+
z("input", {
|
|
73
82
|
ref: "checkbox",
|
|
74
83
|
".indeterminate": e.isIndeterminate,
|
|
75
84
|
checked: e.isAllItemsInCurrentPageSelected(),
|
|
76
85
|
type: "checkbox",
|
|
77
86
|
onChange: n[0] || (n[0] = (c) => e.toggleAllCheckbox(c))
|
|
78
|
-
}, null, 40,
|
|
79
|
-
], 16)) : (
|
|
80
|
-
|
|
87
|
+
}, null, 40, Ma)
|
|
88
|
+
], 16)) : (y(), P("td", $e({ key: 1 }, e.$attrs, { class: "vuetable-td-component-checkbox" }), [
|
|
89
|
+
z("input", {
|
|
81
90
|
ref: "checkbox",
|
|
82
91
|
checked: e.isSelected(e.rowData),
|
|
83
92
|
type: "checkbox",
|
|
84
93
|
onChange: n[1] || (n[1] = (c) => e.toggleCheckbox(e.rowData, c))
|
|
85
|
-
}, null, 40,
|
|
94
|
+
}, null, 40, Ea)
|
|
86
95
|
], 16));
|
|
87
96
|
}
|
|
88
|
-
const
|
|
97
|
+
const At = /* @__PURE__ */ be(Ha, [["render", ja]]), Ia = Q({
|
|
89
98
|
name: "vuetable-field-handle",
|
|
90
99
|
inheritAttrs: !1,
|
|
91
100
|
props: {
|
|
@@ -94,22 +103,22 @@ const Ht = /* @__PURE__ */ de(Pa, [["render", $a]]), Fa = J({
|
|
|
94
103
|
},
|
|
95
104
|
setup() {
|
|
96
105
|
const e = pe("vuetable");
|
|
97
|
-
function n(a,
|
|
98
|
-
return typeof e.css.renderIcon == "undefined" ? `<i class="${a.join(" ")}" ${
|
|
106
|
+
function n(a, i = "") {
|
|
107
|
+
return typeof e.css.renderIcon == "undefined" ? `<i class="${a.join(" ")}" ${i}></i>` : e.css.renderIcon(a, i);
|
|
99
108
|
}
|
|
100
109
|
return { vuetable: e, renderIconTag: n };
|
|
101
110
|
}
|
|
102
|
-
}),
|
|
103
|
-
function
|
|
104
|
-
return e.isHeader ? (
|
|
111
|
+
}), La = ["innerHTML"], Aa = ["innerHTML"];
|
|
112
|
+
function Ba(e, n, a, i, s, g) {
|
|
113
|
+
return e.isHeader ? (y(), P("th", $e({ key: 0 }, e.$attrs, {
|
|
105
114
|
class: "vuetable-th-component-handle",
|
|
106
115
|
innerHTML: e.title
|
|
107
|
-
}), null, 16,
|
|
116
|
+
}), null, 16, La)) : (y(), P("td", $e({ key: 1 }, e.$attrs, {
|
|
108
117
|
class: "vuetable-td-component-handle",
|
|
109
118
|
innerHTML: e.renderIconTag(["handle-icon", e.vuetable.css.handleIcon])
|
|
110
|
-
}), null, 16,
|
|
119
|
+
}), null, 16, Aa));
|
|
111
120
|
}
|
|
112
|
-
const
|
|
121
|
+
const Bt = /* @__PURE__ */ be(Ia, [["render", Ba]]), Va = Q({
|
|
113
122
|
name: "vuetable-field-sequence",
|
|
114
123
|
inheritAttrs: !1,
|
|
115
124
|
props: {
|
|
@@ -124,222 +133,222 @@ const Dt = /* @__PURE__ */ de(Fa, [["render", qa]]), Ra = J({
|
|
|
124
133
|
}
|
|
125
134
|
return { vuetable: n, renderSequence: a };
|
|
126
135
|
}
|
|
127
|
-
}),
|
|
128
|
-
function
|
|
129
|
-
return e.isHeader ? (
|
|
136
|
+
}), Na = ["innerHTML"], Ga = ["innerHTML"];
|
|
137
|
+
function Wa(e, n, a, i, s, g) {
|
|
138
|
+
return e.isHeader ? (y(), P("th", $e({ key: 0 }, e.$attrs, {
|
|
130
139
|
class: "vuetable-th-component-sequence",
|
|
131
140
|
innerHTML: e.title
|
|
132
|
-
}), null, 16,
|
|
141
|
+
}), null, 16, Na)) : (y(), P("td", $e({ key: 1 }, e.$attrs, {
|
|
133
142
|
class: "vuetable-td-component-sequence",
|
|
134
143
|
innerHTML: e.renderSequence()
|
|
135
|
-
}), null, 16,
|
|
144
|
+
}), null, 16, Ga));
|
|
136
145
|
}
|
|
137
|
-
const
|
|
146
|
+
const Vt = /* @__PURE__ */ be(Va, [["render", Wa]]), za = Q({
|
|
138
147
|
name: "vuetable-th-gutter",
|
|
139
148
|
setup() {
|
|
140
|
-
const e = pe("vuetable"), n =
|
|
149
|
+
const e = pe("vuetable"), n = k(() => e.hasFixedRightColumn && e.tableLayout.isFixedHeader);
|
|
141
150
|
return { vuetable: e, pinned: n };
|
|
142
151
|
}
|
|
143
152
|
});
|
|
144
|
-
function
|
|
145
|
-
return
|
|
146
|
-
style:
|
|
147
|
-
class:
|
|
153
|
+
function Ka(e, n, a, i, s, g) {
|
|
154
|
+
return y(), P("th", {
|
|
155
|
+
style: oe({ width: e.vuetable.scrollBarWidth, position: e.pinned ? "sticky" : void 0, right: e.pinned ? "0px" : void 0 }),
|
|
156
|
+
class: T([{ "vuetable-fixed-column": e.pinned, "vuetable-fixed-header": e.pinned }, "vuetable-th-gutter"])
|
|
148
157
|
}, null, 6);
|
|
149
158
|
}
|
|
150
|
-
const
|
|
151
|
-
var
|
|
152
|
-
const a = (
|
|
159
|
+
const nt = /* @__PURE__ */ be(za, [["render", Ka], ["__scopeId", "data-v-c45e8fef"]]), Nt = (e, { slots: n }) => {
|
|
160
|
+
var i, s;
|
|
161
|
+
const a = (i = n.default) == null ? void 0 : i.call(n)[0];
|
|
153
162
|
return (s = e.onRendered) == null || s.call(e), a;
|
|
154
163
|
};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
const
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
const
|
|
164
|
+
Nt.props = ["revision", "onRendered"];
|
|
165
|
+
Nt.inheritAttrs = !1;
|
|
166
|
+
const Gt = (e, { slots: n }) => jt.renderSlot({ default: e.content }, "default", e.scope, n.default);
|
|
167
|
+
Gt.props = ["content", "scope"];
|
|
168
|
+
Gt.inheritAttrs = !1;
|
|
169
|
+
const Ua = jt.isVue2 ? {
|
|
161
170
|
functional: !0,
|
|
162
171
|
props: ["revision", "onRendered"],
|
|
163
172
|
render: (e, n) => {
|
|
164
|
-
var
|
|
165
|
-
const a = (
|
|
166
|
-
return (
|
|
173
|
+
var i, s, g, c, u;
|
|
174
|
+
const a = (g = (s = (i = n.scopedSlots).default) == null ? void 0 : s.call(i)[0]) != null ? g : n.children[0];
|
|
175
|
+
return (u = (c = n.props).onRendered) == null || u.call(c), a;
|
|
167
176
|
}
|
|
168
|
-
} :
|
|
177
|
+
} : Nt, Nn = jt.isVue2 ? {
|
|
169
178
|
functional: !0,
|
|
170
179
|
props: ["content", "scope"],
|
|
171
180
|
render: (e, n) => {
|
|
172
|
-
var a,
|
|
173
|
-
return (c = (
|
|
181
|
+
var a, i, s, g, c;
|
|
182
|
+
return (c = (i = (a = n.props).content) == null ? void 0 : i.call(a, n.props.scope)) != null ? c : (g = (s = n.scopedSlots).default) == null ? void 0 : g.call(s);
|
|
174
183
|
}
|
|
175
|
-
} :
|
|
184
|
+
} : Gt, xa = Q({
|
|
176
185
|
name: "vuetable-row-header",
|
|
177
186
|
components: {
|
|
178
|
-
SlotOutlet:
|
|
179
|
-
"vuetable-field-checkbox":
|
|
180
|
-
"vuetable-field-handle":
|
|
181
|
-
"vuetable-field-sequence":
|
|
182
|
-
VuetableColGutter:
|
|
187
|
+
SlotOutlet: Nn,
|
|
188
|
+
"vuetable-field-checkbox": At,
|
|
189
|
+
"vuetable-field-handle": Bt,
|
|
190
|
+
"vuetable-field-sequence": Vt,
|
|
191
|
+
VuetableColGutter: nt
|
|
183
192
|
},
|
|
184
193
|
props: {
|
|
185
194
|
vuetable: { type: Object, default: null }
|
|
186
195
|
},
|
|
187
196
|
setup() {
|
|
188
197
|
const e = pe("vuetable");
|
|
189
|
-
function n(
|
|
190
|
-
return e.columnRevision, e.getColumnSlot(
|
|
198
|
+
function n(p) {
|
|
199
|
+
return e.columnRevision, e.getColumnSlot(p.name, !0);
|
|
191
200
|
}
|
|
192
|
-
function a(
|
|
193
|
-
return
|
|
201
|
+
function a(p) {
|
|
202
|
+
return p.replace(e.fieldPrefix, "");
|
|
194
203
|
}
|
|
195
|
-
function
|
|
204
|
+
function i(p, C) {
|
|
196
205
|
return [
|
|
197
|
-
`${
|
|
198
|
-
|
|
199
|
-
e.groupClass(
|
|
200
|
-
e.getCellProps(
|
|
201
|
-
|
|
202
|
-
{ sortable: e.isSortable(
|
|
206
|
+
`${p}-${s(C.name)}`,
|
|
207
|
+
C.titleClass || "",
|
|
208
|
+
e.groupClass(C),
|
|
209
|
+
e.getCellProps(C, "header").class,
|
|
210
|
+
g(C),
|
|
211
|
+
{ sortable: e.isSortable(C) }
|
|
203
212
|
];
|
|
204
213
|
}
|
|
205
|
-
function s(
|
|
206
|
-
return typeof
|
|
214
|
+
function s(p) {
|
|
215
|
+
return typeof p == "string" && p.replace(/([A-Z])/g, (C) => "_" + C.toLowerCase()).replace(" ", "_").replace(".", "_");
|
|
207
216
|
}
|
|
208
|
-
function
|
|
209
|
-
const
|
|
210
|
-
return
|
|
217
|
+
function g(p) {
|
|
218
|
+
const C = d(p);
|
|
219
|
+
return C !== !1 ? e.sortOrder[C].direction == "asc" ? e.css.ascendingClass : e.css.descendingClass : "";
|
|
211
220
|
}
|
|
212
|
-
function c(
|
|
213
|
-
const
|
|
214
|
-
return
|
|
221
|
+
function c(p) {
|
|
222
|
+
const C = d(p);
|
|
223
|
+
return C === !1 ? e.css.sortableIcon : e.sortOrder[C].direction == "asc" ? e.css.ascendingIcon : e.css.descendingIcon;
|
|
215
224
|
}
|
|
216
|
-
function
|
|
217
|
-
return d(
|
|
225
|
+
function u(p) {
|
|
226
|
+
return d(p) !== !1;
|
|
218
227
|
}
|
|
219
|
-
function
|
|
220
|
-
return e.isSortable(
|
|
228
|
+
function o(p) {
|
|
229
|
+
return e.isSortable(p) && e.css.sortableIcon != "";
|
|
221
230
|
}
|
|
222
|
-
function d(
|
|
223
|
-
if (!e.isSortable(
|
|
231
|
+
function d(p) {
|
|
232
|
+
if (!e.isSortable(p))
|
|
224
233
|
return !1;
|
|
225
|
-
for (let
|
|
226
|
-
if (
|
|
227
|
-
return
|
|
234
|
+
for (let C = 0; C < e.sortOrder.length; C++)
|
|
235
|
+
if (h(p, C))
|
|
236
|
+
return C;
|
|
228
237
|
return !1;
|
|
229
238
|
}
|
|
230
|
-
function
|
|
231
|
-
return e.sortOrder[
|
|
239
|
+
function h(p, C) {
|
|
240
|
+
return e.sortOrder[C].field === p.name && e.sortOrder[C].sortField === p.sortField;
|
|
232
241
|
}
|
|
233
|
-
function r(
|
|
234
|
-
const
|
|
235
|
-
if ((
|
|
236
|
-
const
|
|
237
|
-
return
|
|
242
|
+
function r(p, C = !1) {
|
|
243
|
+
const O = C ? "" : b(p);
|
|
244
|
+
if ((C || O.length > 0) && u(p) || o(p)) {
|
|
245
|
+
const H = `opacity:${v(p)};position:relative;float:right`, R = e.showSortIcons ? F(["sort-icon", c(p)], `style="${H}"`) : "";
|
|
246
|
+
return O + " " + R;
|
|
238
247
|
}
|
|
239
|
-
return
|
|
248
|
+
return O;
|
|
240
249
|
}
|
|
241
|
-
function
|
|
242
|
-
return typeof
|
|
250
|
+
function b(p) {
|
|
251
|
+
return typeof p.title == "function" ? p.title() : typeof p.title == "undefined" ? p.name.toString().replace(".", " ") : p.title;
|
|
243
252
|
}
|
|
244
|
-
function
|
|
245
|
-
let
|
|
246
|
-
const R = e.sortOrder.length, N = d(
|
|
247
|
-
return 1 - R *
|
|
253
|
+
function v(p) {
|
|
254
|
+
let H = 0.3;
|
|
255
|
+
const R = e.sortOrder.length, N = d(p);
|
|
256
|
+
return 1 - R * H < 0.3 && (H = (1 - 0.3) / (R - 1)), 1 - (N === !1 ? 0 : N) * H;
|
|
248
257
|
}
|
|
249
|
-
function
|
|
250
|
-
return typeof e.css.renderIcon == "undefined" ? `<i class="${
|
|
258
|
+
function F(p, C = "") {
|
|
259
|
+
return typeof e.css.renderIcon == "undefined" ? `<i class="${p.join(" ")}" ${C}></i>` : e.css.renderIcon(p, C);
|
|
251
260
|
}
|
|
252
|
-
function
|
|
253
|
-
e.orderBy(
|
|
261
|
+
function $(p, C) {
|
|
262
|
+
e.orderBy(p, C);
|
|
254
263
|
}
|
|
255
|
-
return { headerTable: e, getHeaderSlot: n, stripPrefix: a, headerClass:
|
|
264
|
+
return { headerTable: e, getHeaderSlot: n, stripPrefix: a, headerClass: i, toSnakeCase: s, sortClass: g, sortIcon: c, isInCurrentSortGroup: u, hasSortableIcon: o, currentSortOrderPosition: d, fieldIsInSortOrderPosition: h, renderTitle: r, getTitle: b, sortIconOpacity: v, renderIconTag: F, onColumnHeaderClicked: $, VuetableColGutter: nt };
|
|
256
265
|
}
|
|
257
|
-
}),
|
|
258
|
-
function
|
|
259
|
-
const c =
|
|
260
|
-
return
|
|
261
|
-
(
|
|
262
|
-
key: e.headerTable.getColumnKey(
|
|
266
|
+
}), Ja = ["data-vuetable-column", "innerHTML", "onClick"], Za = ["id", "data-vuetable-column", "onClick"], Qa = ["innerHTML"], Ya = ["id", "data-vuetable-column", "innerHTML", "onClick"];
|
|
267
|
+
function Xa(e, n, a, i, s, g) {
|
|
268
|
+
const c = Se("slot-outlet"), u = Se("VuetableColGutter");
|
|
269
|
+
return y(), P("tr", null, [
|
|
270
|
+
(y(!0), P(U, null, se(e.headerTable.tableFields, (o, d) => (y(), P(U, {
|
|
271
|
+
key: e.headerTable.getColumnKey(o)
|
|
263
272
|
}, [
|
|
264
|
-
|
|
265
|
-
e.headerTable.isFieldComponent(
|
|
266
|
-
key: e.headerTable.getColumnKey(
|
|
273
|
+
o.visible ? (y(), P(U, { key: 0 }, [
|
|
274
|
+
e.headerTable.isFieldComponent(o.name) ? (y(), fe(Ge(o.name), {
|
|
275
|
+
key: e.headerTable.getColumnKey(o),
|
|
267
276
|
"is-header": "",
|
|
268
277
|
vuetable: e.headerTable,
|
|
269
|
-
"row-field":
|
|
270
|
-
title: e.renderTitle(
|
|
271
|
-
"data-vuetable-column": e.headerTable.getCellProps(
|
|
272
|
-
class:
|
|
273
|
-
style:
|
|
278
|
+
"row-field": o,
|
|
279
|
+
title: e.renderTitle(o),
|
|
280
|
+
"data-vuetable-column": e.headerTable.getCellProps(o, "header")["data-vuetable-column"],
|
|
281
|
+
class: T(e.headerClass("vuetable-th-component", o)),
|
|
282
|
+
style: oe([{ width: o.width }, e.headerTable.getCellProps(o, "header").style]),
|
|
274
283
|
"onVuetable:headerEvent": e.headerTable.onHeaderEvent,
|
|
275
|
-
onClick: (
|
|
276
|
-
}, null, 40, ["vuetable", "row-field", "title", "data-vuetable-column", "class", "style", "onVuetable:headerEvent", "onClick"])) : e.headerTable.isFieldSlot(
|
|
277
|
-
key: e.headerTable.getColumnKey(
|
|
278
|
-
"data-vuetable-column": e.headerTable.getCellProps(
|
|
279
|
-
class:
|
|
280
|
-
style:
|
|
281
|
-
innerHTML: e.renderTitle(
|
|
282
|
-
onClick: (
|
|
283
|
-
}, null, 14,
|
|
284
|
-
key: e.headerTable.getColumnKey(
|
|
285
|
-
id: "_" +
|
|
286
|
-
"data-vuetable-column": e.headerTable.getCellProps(
|
|
287
|
-
class:
|
|
288
|
-
style:
|
|
289
|
-
onClick: (
|
|
284
|
+
onClick: (h) => e.onColumnHeaderClicked(o, h)
|
|
285
|
+
}, null, 40, ["vuetable", "row-field", "title", "data-vuetable-column", "class", "style", "onVuetable:headerEvent", "onClick"])) : e.headerTable.isFieldSlot(o.name) ? (y(), P("th", {
|
|
286
|
+
key: e.headerTable.getColumnKey(o),
|
|
287
|
+
"data-vuetable-column": e.headerTable.getCellProps(o, "header")["data-vuetable-column"],
|
|
288
|
+
class: T(e.headerClass("vuetable-th-slot", o)),
|
|
289
|
+
style: oe([{ width: o.width }, e.headerTable.getCellProps(o, "header").style]),
|
|
290
|
+
innerHTML: e.renderTitle(o),
|
|
291
|
+
onClick: (h) => e.onColumnHeaderClicked(o, h)
|
|
292
|
+
}, null, 14, Ja)) : e.getHeaderSlot(o) ? (y(), P("th", {
|
|
293
|
+
key: e.headerTable.getColumnKey(o),
|
|
294
|
+
id: "_" + o.name,
|
|
295
|
+
"data-vuetable-column": e.headerTable.getCellProps(o, "header")["data-vuetable-column"],
|
|
296
|
+
class: T(e.headerClass("vuetable-th", o)),
|
|
297
|
+
style: oe([{ width: o.width }, e.headerTable.getCellProps(o, "header").style]),
|
|
298
|
+
onClick: (h) => e.onColumnHeaderClicked(o, h)
|
|
290
299
|
}, [
|
|
291
|
-
|
|
292
|
-
content: e.getHeaderSlot(
|
|
293
|
-
scope: { column:
|
|
300
|
+
Y(c, {
|
|
301
|
+
content: e.getHeaderSlot(o),
|
|
302
|
+
scope: { column: o, index: d }
|
|
294
303
|
}, null, 8, ["content", "scope"]),
|
|
295
|
-
|
|
296
|
-
innerHTML: e.renderTitle(
|
|
297
|
-
}, null, 8,
|
|
298
|
-
], 14,
|
|
299
|
-
key: e.headerTable.getColumnKey(
|
|
300
|
-
id: "_" +
|
|
301
|
-
"data-vuetable-column": e.headerTable.getCellProps(
|
|
302
|
-
class:
|
|
303
|
-
style:
|
|
304
|
-
innerHTML: e.renderTitle(
|
|
305
|
-
onClick: (
|
|
306
|
-
}, null, 14,
|
|
307
|
-
], 64)) :
|
|
304
|
+
z("span", {
|
|
305
|
+
innerHTML: e.renderTitle(o, !0)
|
|
306
|
+
}, null, 8, Qa)
|
|
307
|
+
], 14, Za)) : (y(), P("th", {
|
|
308
|
+
key: e.headerTable.getColumnKey(o),
|
|
309
|
+
id: "_" + o.name,
|
|
310
|
+
"data-vuetable-column": e.headerTable.getCellProps(o, "header")["data-vuetable-column"],
|
|
311
|
+
class: T(e.headerClass("vuetable-th", o)),
|
|
312
|
+
style: oe([{ width: o.width }, e.headerTable.getCellProps(o, "header").style]),
|
|
313
|
+
innerHTML: e.renderTitle(o),
|
|
314
|
+
onClick: (h) => e.onColumnHeaderClicked(o, h)
|
|
315
|
+
}, null, 14, Ya))
|
|
316
|
+
], 64)) : ee("", !0)
|
|
308
317
|
], 64))), 128)),
|
|
309
|
-
e.headerTable.scrollVisible ? (
|
|
318
|
+
e.headerTable.scrollVisible ? (y(), fe(u, { key: 0 })) : ee("", !0)
|
|
310
319
|
]);
|
|
311
320
|
}
|
|
312
|
-
const
|
|
313
|
-
function
|
|
314
|
-
const
|
|
315
|
-
...
|
|
316
|
-
var
|
|
317
|
-
const r = (typeof d.name == "object" && d.name !== null ? d.name.name || "component" : d.name).replace(n.fieldPrefix, ""),
|
|
321
|
+
const Gn = /* @__PURE__ */ be(xa, [["render", Xa]]);
|
|
322
|
+
function Wn(e, n, a) {
|
|
323
|
+
const i = new Map(n.tableFields.map((o, d) => [o, d])), s = n.groupBy != null, g = s ? n.tableLayout.headerGroups : [{ key: "fields", fields: n.tableFields.filter((o) => o.visible) }], c = () => e("col", { style: { width: n.scrollBarWidth }, class: "vuetable-col-gutter" }), u = g.map((o) => e("colgroup", { key: o.key }, [
|
|
324
|
+
...o.fields.map((d) => {
|
|
325
|
+
var v;
|
|
326
|
+
const r = (typeof d.name == "object" && d.name !== null ? d.name.name || "component" : d.name).replace(n.fieldPrefix, ""), b = (v = d.$_index) != null ? v : i.get(d);
|
|
318
327
|
return e("col", {
|
|
319
328
|
key: n.getColumnKey(d),
|
|
320
329
|
style: { width: a && n.getHeaderWidth(d) || d.width },
|
|
321
|
-
class: [`vuetable-col-${r}`, d.titleClass, `${r}-${
|
|
330
|
+
class: [`vuetable-col-${r}`, d.titleClass, `${r}-${b}`, n.groupClass(d)]
|
|
322
331
|
});
|
|
323
332
|
}),
|
|
324
333
|
...!s && a && n.scrollVisible ? [c()] : []
|
|
325
334
|
]));
|
|
326
|
-
return s && a && n.scrollVisible &&
|
|
335
|
+
return s && a && n.scrollVisible && u.push(e("colgroup", { key: "gutter" }, [c()])), u;
|
|
327
336
|
}
|
|
328
|
-
const
|
|
337
|
+
const zn = { isHeader: { type: Boolean, default: !1 } }, _a = {
|
|
329
338
|
name: "vuetable-col-group",
|
|
330
339
|
functional: !0,
|
|
331
340
|
inject: ["vuetable"],
|
|
332
|
-
props:
|
|
333
|
-
render: (e, n) =>
|
|
334
|
-
},
|
|
341
|
+
props: zn,
|
|
342
|
+
render: (e, n) => Wn(e, n.injections.vuetable, n.props.isHeader)
|
|
343
|
+
}, el = Q({
|
|
335
344
|
name: "vuetable-col-group",
|
|
336
345
|
inheritAttrs: !1,
|
|
337
|
-
props:
|
|
346
|
+
props: zn,
|
|
338
347
|
setup(e) {
|
|
339
348
|
const n = pe("vuetable");
|
|
340
|
-
return () =>
|
|
349
|
+
return () => Wn(ha, n, e.isHeader);
|
|
341
350
|
}
|
|
342
|
-
}),
|
|
351
|
+
}), Hn = K ? _a : el, tl = Q({
|
|
343
352
|
name: "VuetableDetailHost",
|
|
344
353
|
props: {
|
|
345
354
|
detailComponent: { type: [String, Object], default: "" },
|
|
@@ -348,283 +357,283 @@ const jn = { isHeader: { type: Boolean, default: !1 } }, Ga = {
|
|
|
348
357
|
options: { type: Object, default: () => ({}) }
|
|
349
358
|
},
|
|
350
359
|
setup(e) {
|
|
351
|
-
const n = pe("vuetable"), a =
|
|
352
|
-
return { tableContext: n, vuetable: a, resolvedDetailComponent:
|
|
360
|
+
const n = pe("vuetable"), a = k(() => n.vuetable), i = k(() => typeof e.detailComponent == "object" ? An(Dt(e.detailComponent)) : e.detailComponent);
|
|
361
|
+
return { tableContext: n, vuetable: a, resolvedDetailComponent: i };
|
|
353
362
|
}
|
|
354
363
|
});
|
|
355
|
-
function
|
|
356
|
-
return
|
|
364
|
+
function nl(e, n, a, i, s, g) {
|
|
365
|
+
return y(), fe(Ge(e.resolvedDetailComponent), {
|
|
357
366
|
"row-data": e.rowData,
|
|
358
367
|
"row-index": e.rowIndex,
|
|
359
368
|
vuetable: e.tableContext,
|
|
360
369
|
options: e.options
|
|
361
370
|
}, null, 8, ["row-data", "row-index", "vuetable", "options"]);
|
|
362
371
|
}
|
|
363
|
-
const
|
|
364
|
-
function
|
|
372
|
+
const al = /* @__PURE__ */ be(tl, [["render", nl]]);
|
|
373
|
+
function Mn(e, n, a) {
|
|
365
374
|
return e === void 0 ? a : e === "" || e === n || !!e;
|
|
366
375
|
}
|
|
367
|
-
function
|
|
376
|
+
function En(e) {
|
|
368
377
|
if (typeof e == "function")
|
|
369
378
|
return (n) => {
|
|
370
379
|
const a = e(n);
|
|
371
380
|
return Array.isArray(a) ? a : a == null ? [] : [a];
|
|
372
381
|
};
|
|
373
382
|
}
|
|
374
|
-
function
|
|
375
|
-
let n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(),
|
|
376
|
-
function
|
|
377
|
-
const
|
|
378
|
-
function
|
|
379
|
-
var
|
|
383
|
+
function ll(e) {
|
|
384
|
+
let n = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Set(), s = !1;
|
|
385
|
+
function g(u) {
|
|
386
|
+
const o = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Set();
|
|
387
|
+
function h(r) {
|
|
388
|
+
var v, F, $, p, C, O, H, R, N, ge;
|
|
380
389
|
if (Array.isArray(r)) {
|
|
381
|
-
r.forEach(
|
|
390
|
+
r.forEach(h);
|
|
382
391
|
return;
|
|
383
392
|
}
|
|
384
393
|
if (!r || typeof r != "object") return;
|
|
385
|
-
const
|
|
386
|
-
if ((
|
|
387
|
-
const
|
|
388
|
-
if (typeof
|
|
394
|
+
const b = K ? (F = (v = r.componentOptions) == null ? void 0 : v.Ctor) == null ? void 0 : F.options : r.type;
|
|
395
|
+
if ((b == null ? void 0 : b.__vuetableColumn) === !0) {
|
|
396
|
+
const M = K ? q(q({}, ($ = r.data) == null ? void 0 : $.attrs), (p = r.componentOptions) == null ? void 0 : p.propsData) : r.props || {}, S = M.field;
|
|
397
|
+
if (typeof S != "string" || !S) {
|
|
389
398
|
d.add("VuetableColumn requires a non-empty field.");
|
|
390
399
|
return;
|
|
391
400
|
}
|
|
392
|
-
if (
|
|
393
|
-
d.add(`Duplicate VuetableColumn field: ${
|
|
401
|
+
if (o.has(S)) {
|
|
402
|
+
d.add(`Duplicate VuetableColumn field: ${S}. The first declaration wins.`);
|
|
394
403
|
return;
|
|
395
404
|
}
|
|
396
|
-
const
|
|
397
|
-
var
|
|
398
|
-
return (
|
|
399
|
-
},
|
|
400
|
-
|
|
405
|
+
const w = (ne, me) => {
|
|
406
|
+
var x;
|
|
407
|
+
return (x = M[ne]) != null ? x : M[me];
|
|
408
|
+
}, j = K ? [(C = r.data) == null ? void 0 : C.staticClass, (O = r.data) == null ? void 0 : O.class] : M.class, I = K ? ((H = r.data) == null ? void 0 : H.scopedSlots) || {} : r.children || {}, L = K ? (R = r.componentOptions) == null ? void 0 : R.children : Array.isArray(I) ? I : void 0;
|
|
409
|
+
o.set(S, {
|
|
401
410
|
field: {
|
|
402
|
-
name:
|
|
403
|
-
title:
|
|
404
|
-
sortField:
|
|
405
|
-
width: (N =
|
|
406
|
-
fixed:
|
|
407
|
-
fixedOrder: Object.prototype.hasOwnProperty.call(
|
|
408
|
-
group: (
|
|
409
|
-
visible:
|
|
410
|
-
titleClass: [
|
|
411
|
-
dataClass: [
|
|
412
|
-
$_columnKey:
|
|
411
|
+
name: S,
|
|
412
|
+
title: M.label,
|
|
413
|
+
sortField: Mn(M.sortable, "sortable", !1) ? w("sortField", "sort-field") || S : null,
|
|
414
|
+
width: (N = M.width) != null ? N : null,
|
|
415
|
+
fixed: M.fixed,
|
|
416
|
+
fixedOrder: Object.prototype.hasOwnProperty.call(M, "fixedOrder") ? M.fixedOrder : M["fixed-order"],
|
|
417
|
+
group: (ge = M.group) != null ? ge : null,
|
|
418
|
+
visible: Mn(M.visible, "visible", !0),
|
|
419
|
+
titleClass: [j, w("headerClass", "header-class")],
|
|
420
|
+
dataClass: [j, w("cellClass", "cell-class")],
|
|
421
|
+
$_columnKey: S
|
|
413
422
|
},
|
|
414
|
-
cell:
|
|
415
|
-
header:
|
|
423
|
+
cell: En(I.default) || (L != null && L.length ? () => L : void 0),
|
|
424
|
+
header: En(I.header)
|
|
416
425
|
});
|
|
417
426
|
return;
|
|
418
427
|
}
|
|
419
|
-
typeof r.type == "symbol" && Array.isArray(r.children) &&
|
|
428
|
+
typeof r.type == "symbol" && Array.isArray(r.children) && h(r.children);
|
|
420
429
|
}
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
}),
|
|
430
|
+
h(u), d.forEach((r) => {
|
|
431
|
+
i.has(r) || e.warn(r);
|
|
432
|
+
}), i = d, n = o, s = o.size > 0;
|
|
424
433
|
}
|
|
425
434
|
function c() {
|
|
426
|
-
const
|
|
427
|
-
const
|
|
428
|
-
|
|
429
|
-
const
|
|
430
|
-
if (!
|
|
431
|
-
for (const
|
|
432
|
-
JSON.stringify(
|
|
433
|
-
return
|
|
435
|
+
const u = /* @__PURE__ */ new Map(), o = [...n].map(([d, h], r) => {
|
|
436
|
+
const b = e.normalize(h.field, r);
|
|
437
|
+
u.set(d, b);
|
|
438
|
+
const v = a.get(d), F = e.fields.value.find(($) => $.$_columnKey === d);
|
|
439
|
+
if (!v || !F) return q({}, b);
|
|
440
|
+
for (const $ of Object.keys(b))
|
|
441
|
+
JSON.stringify(b[$]) !== JSON.stringify(v[$]) && (F[$] = b[$]);
|
|
442
|
+
return F;
|
|
434
443
|
});
|
|
435
|
-
(
|
|
444
|
+
(o.length !== e.fields.value.length || o.some((d, h) => d !== e.fields.value[h])) && (e.fields.value = o), a = u;
|
|
436
445
|
}
|
|
437
446
|
return {
|
|
438
|
-
discover:
|
|
447
|
+
discover: g,
|
|
439
448
|
reconcile: c,
|
|
440
449
|
hasDeclarations: () => s,
|
|
441
|
-
getColumnSlot: (
|
|
442
|
-
var d,
|
|
443
|
-
return
|
|
450
|
+
getColumnSlot: (u, o = !1) => {
|
|
451
|
+
var d, h;
|
|
452
|
+
return o ? (d = n.get(u)) == null ? void 0 : d.header : (h = n.get(u)) == null ? void 0 : h.cell;
|
|
444
453
|
}
|
|
445
454
|
};
|
|
446
455
|
}
|
|
447
|
-
function
|
|
456
|
+
function ie(e) {
|
|
448
457
|
return e.fixed === "left" || e.fixed === "right" ? e.fixed : void 0;
|
|
449
458
|
}
|
|
450
|
-
function
|
|
459
|
+
function jn(e, n) {
|
|
451
460
|
const a = Object.keys(n);
|
|
452
|
-
return a.length === Object.keys(e).length && a.every((
|
|
461
|
+
return a.length === Object.keys(e).length && a.every((i) => e[i] === n[i]);
|
|
453
462
|
}
|
|
454
|
-
function
|
|
463
|
+
function In(e, n) {
|
|
455
464
|
return e.$_columnKey || (typeof e.name == "string" ? e.name : e.name || n);
|
|
456
465
|
}
|
|
457
|
-
function
|
|
466
|
+
function ol(e) {
|
|
458
467
|
const n = /* @__PURE__ */ new Map();
|
|
459
|
-
let a = /* @__PURE__ */ new Map(),
|
|
460
|
-
const
|
|
461
|
-
return
|
|
462
|
-
const
|
|
463
|
-
for (const { field:
|
|
464
|
-
const
|
|
465
|
-
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
const
|
|
469
|
-
|
|
468
|
+
let a = /* @__PURE__ */ new Map(), i = 0, s = 0;
|
|
469
|
+
const g = (u) => typeof u == "number" && Number.isInteger(u) && u >= 1;
|
|
470
|
+
return te(() => e.fields.value.map((u, o) => ({ field: u, identity: In(u, o), side: ie(u), order: u.fixedOrder })), (u) => {
|
|
471
|
+
const o = /* @__PURE__ */ new Map(), d = /* @__PURE__ */ new Map();
|
|
472
|
+
for (const { field: h, identity: r, side: b, order: v } of u) {
|
|
473
|
+
const F = o.get(r) || 0;
|
|
474
|
+
o.set(r, F + 1);
|
|
475
|
+
const $ = n.get(r) || [], p = $[F] || { key: i++, sequence: 0, invalidOrder: !1 };
|
|
476
|
+
$[F] = p, n.set(r, $), p.side !== b && (p.side = b, p.sequence = b ? s++ : 0);
|
|
477
|
+
const C = v !== void 0 && !g(v);
|
|
478
|
+
C && !p.invalidOrder && e.warn(`fixedOrder for ${String(h.name)} must be a positive integer; treating it as automatic.`), p.invalidOrder = C, d.set(h, p);
|
|
470
479
|
}
|
|
471
480
|
a = d;
|
|
472
|
-
}, { immediate: !0, flush: "sync" }),
|
|
473
|
-
const
|
|
474
|
-
for (const d of
|
|
475
|
-
for (const [d,
|
|
476
|
-
const r =
|
|
477
|
-
r === void 0 ? n.delete(d) :
|
|
478
|
-
}
|
|
479
|
-
}), { orderedFields:
|
|
480
|
-
if (e.mode.value === "in-place" || !e.fields.value.some((r) =>
|
|
481
|
-
const
|
|
482
|
-
const
|
|
483
|
-
var
|
|
484
|
-
return { field:
|
|
485
|
-
}),
|
|
486
|
-
let
|
|
487
|
-
for (const
|
|
488
|
-
for (;
|
|
489
|
-
|
|
481
|
+
}, { immediate: !0, flush: "sync" }), te(() => e.fields.value.map(In), (u) => {
|
|
482
|
+
const o = /* @__PURE__ */ new Map();
|
|
483
|
+
for (const d of u) o.set(d, (o.get(d) || 0) + 1);
|
|
484
|
+
for (const [d, h] of n) {
|
|
485
|
+
const r = o.get(d);
|
|
486
|
+
r === void 0 ? n.delete(d) : h.length = r;
|
|
487
|
+
}
|
|
488
|
+
}), { orderedFields: k(() => {
|
|
489
|
+
if (e.mode.value === "in-place" || !e.fields.value.some((r) => ie(r))) return e.fields.value;
|
|
490
|
+
const u = [], o = [], d = [], h = (r, b) => {
|
|
491
|
+
const v = r.map((O) => {
|
|
492
|
+
var H;
|
|
493
|
+
return { field: O, order: g(O.fixedOrder) ? O.fixedOrder : void 0, sequence: ((H = a.get(O)) == null ? void 0 : H.sequence) || 0 };
|
|
494
|
+
}), F = new Set(v.filter((O) => O.order !== void 0).map((O) => O.order)), $ = v.filter((O) => O.order === void 0).sort((O, H) => O.sequence - H.sequence);
|
|
495
|
+
let p = 1;
|
|
496
|
+
for (const O of $) {
|
|
497
|
+
for (; F.has(p); ) p++;
|
|
498
|
+
O.order = p++;
|
|
490
499
|
}
|
|
491
|
-
const
|
|
492
|
-
return
|
|
500
|
+
const C = v.sort((O, H) => O.order - H.order || O.sequence - H.sequence).map((O) => O.field);
|
|
501
|
+
return b === "right" ? C.reverse() : C;
|
|
493
502
|
};
|
|
494
503
|
for (const r of e.fields.value) {
|
|
495
|
-
const
|
|
496
|
-
|
|
504
|
+
const b = ie(r);
|
|
505
|
+
b === "left" ? u.push(r) : b === "right" ? d.push(r) : o.push(r);
|
|
497
506
|
}
|
|
498
|
-
return [...
|
|
499
|
-
}), getColumnKey: (
|
|
500
|
-
var
|
|
501
|
-
return (r = (
|
|
507
|
+
return [...h(u, "left"), ...o, ...h(d, "right")];
|
|
508
|
+
}), getColumnKey: (u) => {
|
|
509
|
+
var o, d, h, r;
|
|
510
|
+
return (r = (h = (d = u.$_columnKey) != null ? d : (o = a.get(u)) == null ? void 0 : o.key) != null ? h : u.$_index) != null ? r : 0;
|
|
502
511
|
} };
|
|
503
512
|
}
|
|
504
|
-
function
|
|
505
|
-
const n =
|
|
506
|
-
const
|
|
507
|
-
for (const
|
|
508
|
-
let
|
|
509
|
-
const
|
|
510
|
-
for (const
|
|
511
|
-
|
|
512
|
-
}
|
|
513
|
-
return
|
|
513
|
+
function rl(e) {
|
|
514
|
+
const n = Ne({}), a = Ne({}), i = Ne(), s = Ne(), g = k(() => new Map(e.fields.value.map((S, w) => [S, w]))), c = k(() => e.fields.value.filter((S) => S.visible)), u = k(() => new Map(c.value.map((S, w) => [S, w]))), o = k(() => c.value.some((S) => ie(S))), d = k(() => c.value.some((S) => ie(S) === "right")), h = k(() => o.value && e.isFixedHeader.value && i.value !== void 0 ? `${i.value}px` : e.scrollBarWidth.value), r = k(() => {
|
|
515
|
+
const S = /* @__PURE__ */ new Map();
|
|
516
|
+
for (const w of ["left", "right"]) {
|
|
517
|
+
let j = 0;
|
|
518
|
+
const I = w === "left" ? c.value : [...c.value].reverse();
|
|
519
|
+
for (const L of I)
|
|
520
|
+
ie(L) === w && (S.set(L, j), j += n.value[String(g.value.get(L))] || 0);
|
|
521
|
+
}
|
|
522
|
+
return S;
|
|
514
523
|
});
|
|
515
|
-
let
|
|
516
|
-
const
|
|
517
|
-
function
|
|
518
|
-
var
|
|
519
|
-
const
|
|
520
|
-
if (!
|
|
521
|
-
const
|
|
524
|
+
let b = !1, v = !1, F, $ = !1, p;
|
|
525
|
+
const C = /* @__PURE__ */ new Set();
|
|
526
|
+
function O(S, w) {
|
|
527
|
+
var L;
|
|
528
|
+
const j = ie(S);
|
|
529
|
+
if (!S.visible || !j) return { class: [], style: {} };
|
|
530
|
+
const I = j === "right" && w === "header" && e.isFixedHeader.value && e.scrollVisible.value ? (L = s.value) != null ? L : Number.parseFloat(h.value) || 0 : 0;
|
|
522
531
|
return {
|
|
523
|
-
class: ["vuetable-fixed-column", `vuetable-fixed-${
|
|
524
|
-
style: { position: "sticky", [
|
|
532
|
+
class: ["vuetable-fixed-column", `vuetable-fixed-${j}`, `vuetable-fixed-${w}`],
|
|
533
|
+
style: { position: "sticky", [j]: `${(r.value.get(S) || 0) + I}px` }
|
|
525
534
|
};
|
|
526
535
|
}
|
|
527
|
-
function
|
|
528
|
-
if (!
|
|
529
|
-
const
|
|
530
|
-
if (
|
|
531
|
-
const
|
|
532
|
-
return
|
|
536
|
+
function H(S, w = "body") {
|
|
537
|
+
if (!o.value || !S.visible || !ie(S)) return { class: [], style: {} };
|
|
538
|
+
const j = g.value.get(S);
|
|
539
|
+
if (j === void 0) return { class: [], style: {} };
|
|
540
|
+
const I = O(S, w);
|
|
541
|
+
return I["data-vuetable-column"] = String(j), I;
|
|
533
542
|
}
|
|
534
|
-
function R(
|
|
535
|
-
if (!
|
|
536
|
-
const
|
|
537
|
-
return !
|
|
543
|
+
function R(S, w = "header") {
|
|
544
|
+
if (!o.value) return { class: [], style: {} };
|
|
545
|
+
const j = u.value.get(S[0]), I = S.length ? ie(S[0]) : void 0;
|
|
546
|
+
return !I || j === void 0 || !S.every((L, ne) => c.value[j + ne] === L && ie(L) === I) ? { class: [], style: {} } : O(I === "left" ? S[0] : S[S.length - 1], w);
|
|
538
547
|
}
|
|
539
|
-
function N(
|
|
540
|
-
if (!
|
|
541
|
-
const
|
|
542
|
-
return
|
|
548
|
+
function N(S) {
|
|
549
|
+
if (!o.value || !e.isFixedHeader.value) return;
|
|
550
|
+
const w = a.value[String(g.value.get(S))];
|
|
551
|
+
return w === void 0 ? void 0 : `${w}px`;
|
|
543
552
|
}
|
|
544
|
-
function
|
|
545
|
-
var
|
|
546
|
-
if (
|
|
547
|
-
const
|
|
548
|
-
let
|
|
549
|
-
if (
|
|
550
|
-
const
|
|
551
|
-
if ((
|
|
552
|
-
const
|
|
553
|
-
|
|
554
|
-
}), e.scrollVisible.value &&
|
|
555
|
-
const
|
|
556
|
-
|
|
553
|
+
function ge() {
|
|
554
|
+
var Pe, je, Te;
|
|
555
|
+
if (F = void 0, v || !b) return;
|
|
556
|
+
const S = e.root(), w = S && o.value ? S.querySelector(":scope > .vuetable-body-wrapper") : null, j = S && o.value ? S.querySelector(":scope > .vuetable-head-wrapper") : null, I = w == null ? void 0 : w.querySelector(":scope > table.vuetable"), L = j == null ? void 0 : j.querySelector(":scope > table.vuetable"), ne = new Set(o.value ? [S, w, j, I, L].filter((G) => !!G) : []), me = /* @__PURE__ */ new Map(), x = {};
|
|
557
|
+
let Ce, we;
|
|
558
|
+
if (o.value && e.isFixedHeader.value) {
|
|
559
|
+
const G = (je = (Pe = I == null ? void 0 : I.tBodies[0]) == null ? void 0 : Pe.rows[0]) == null ? void 0 : je.cells;
|
|
560
|
+
if ((G == null ? void 0 : G.length) === c.value.length && Array.from(G).every((ce) => ce.colSpan === 1) && c.value.forEach((ce, de) => {
|
|
561
|
+
const J = G[de], ae = J.getBoundingClientRect().width;
|
|
562
|
+
me.set(J, ae), Number.isFinite(ae) && ae > 0 && (x[String(g.value.get(ce))] = ae, ne.add(J));
|
|
563
|
+
}), e.scrollVisible.value && w && w.offsetWidth > 0) {
|
|
564
|
+
const ce = window.getComputedStyle(w);
|
|
565
|
+
Ce = Math.max(0, w.offsetWidth - w.clientWidth - (Number.parseFloat(ce.borderLeftWidth) || 0) - (Number.parseFloat(ce.borderRightWidth) || 0));
|
|
557
566
|
}
|
|
558
|
-
const
|
|
559
|
-
|
|
560
|
-
}
|
|
561
|
-
const
|
|
562
|
-
for (const
|
|
563
|
-
if (!
|
|
564
|
-
const
|
|
565
|
-
`:scope > .vuetable-body-wrapper > table.vuetable > tbody > tr > ${
|
|
566
|
-
`:scope > .vuetable-head-wrapper > table.vuetable > thead > tr > ${
|
|
567
|
+
const ue = L == null ? void 0 : L.querySelector(":scope > thead > tr > .vuetable-th-gutter"), re = ue == null ? void 0 : ue.getBoundingClientRect().width;
|
|
568
|
+
ue && re !== void 0 && Number.isFinite(re) && re > 0 && (we = re, ne.add(ue));
|
|
569
|
+
}
|
|
570
|
+
const Fe = {};
|
|
571
|
+
for (const G of c.value) {
|
|
572
|
+
if (!ie(G)) continue;
|
|
573
|
+
const ue = String(g.value.get(G)), re = `[data-vuetable-column="${ue}"]`, ce = [
|
|
574
|
+
`:scope > .vuetable-body-wrapper > table.vuetable > tbody > tr > ${re}`,
|
|
575
|
+
`:scope > .vuetable-head-wrapper > table.vuetable > thead > tr > ${re}, :scope > .vuetable-body-wrapper > table.vuetable > thead > tr > ${re}`
|
|
567
576
|
];
|
|
568
|
-
for (const
|
|
569
|
-
const
|
|
570
|
-
if (
|
|
571
|
-
|
|
577
|
+
for (const de of ce) {
|
|
578
|
+
const J = S && o.value ? S.querySelector(de) : null, ae = J ? (Te = me.get(J)) != null ? Te : J.getBoundingClientRect().width : void 0;
|
|
579
|
+
if (J && ae !== void 0 && Number.isFinite(ae) && ae > 0) {
|
|
580
|
+
Fe[ue] = ae, ne.add(J);
|
|
572
581
|
break;
|
|
573
582
|
}
|
|
574
583
|
}
|
|
575
584
|
}
|
|
576
|
-
for (const
|
|
577
|
-
|
|
578
|
-
for (const
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
const
|
|
582
|
-
|
|
585
|
+
for (const G of C)
|
|
586
|
+
ne.has(G) || (p == null || p.unobserve(G), C.delete(G));
|
|
587
|
+
for (const G of ne)
|
|
588
|
+
C.has(G) || (p == null || p.observe(G), C.add(G));
|
|
589
|
+
jn(n.value, Fe) || (n.value = Fe);
|
|
590
|
+
const Oe = !jn(a.value, x), Ee = i.value !== Ce;
|
|
591
|
+
Oe && (a.value = x), Ee && (i.value = Ce), s.value = we, (Oe || Ee) && M();
|
|
583
592
|
}
|
|
584
|
-
function
|
|
585
|
-
!
|
|
593
|
+
function M() {
|
|
594
|
+
!b || v || F !== void 0 || !o.value && C.size === 0 && Object.keys(n.value).length === 0 || ($ = typeof requestAnimationFrame == "function", F = $ ? requestAnimationFrame(ge) : setTimeout(ge, 0));
|
|
586
595
|
}
|
|
587
|
-
return
|
|
588
|
-
|
|
589
|
-
}),
|
|
590
|
-
|
|
591
|
-
}), { enabled:
|
|
596
|
+
return It(() => {
|
|
597
|
+
b = !0, typeof ResizeObserver != "undefined" && (p = new ResizeObserver(M)), window.addEventListener("resize", M), M();
|
|
598
|
+
}), Bn(M), Ht(() => {
|
|
599
|
+
v = !0, b = !1, p == null || p.disconnect(), C.clear(), window.removeEventListener("resize", M), F !== void 0 && ($ ? cancelAnimationFrame(F) : clearTimeout(F));
|
|
600
|
+
}), { enabled: o, hasFixedRightColumn: d, headerGutterWidth: h, getHeaderWidth: N, getCellProps: H, getSpanProps: R, schedule: M };
|
|
592
601
|
}
|
|
593
|
-
function
|
|
602
|
+
function sl(e) {
|
|
594
603
|
return typeof e == "string" && e.trim() !== "" || typeof e == "number" && Number.isFinite(e) ? e : null;
|
|
595
604
|
}
|
|
596
|
-
function
|
|
597
|
-
const n =
|
|
605
|
+
function il(e) {
|
|
606
|
+
const n = k(() => e.fields.value.filter((c) => c.visible)), a = k(() => {
|
|
598
607
|
const c = e.groupBy();
|
|
599
|
-
return c == null ? [] : n.value.reduce((
|
|
600
|
-
const
|
|
601
|
-
return r && r.value ===
|
|
608
|
+
return c == null ? [] : n.value.reduce((u, o, d) => {
|
|
609
|
+
const h = sl(c in o && Object.prototype.hasOwnProperty.call(o, c) ? o[c] : null), r = u[u.length - 1];
|
|
610
|
+
return r && r.value === h ? (r.fields.push(o), r.colspan++, r.endIndex = d) : u.push({ key: `${typeof h}:${String(h)}:${d}`, value: h, fields: [o], colspan: 1, startIndex: d, endIndex: d }), u;
|
|
602
611
|
}, []);
|
|
603
|
-
}),
|
|
604
|
-
const
|
|
605
|
-
return c.fields.forEach((
|
|
606
|
-
const
|
|
607
|
-
if (r && r.fixed ===
|
|
608
|
-
r.fields.push(
|
|
612
|
+
}), i = k(() => a.value.flatMap((c) => {
|
|
613
|
+
const u = [];
|
|
614
|
+
return c.fields.forEach((o, d) => {
|
|
615
|
+
const h = ie(o), r = u[u.length - 1];
|
|
616
|
+
if (r && r.fixed === h)
|
|
617
|
+
r.fields.push(o), r.colspan++, r.endIndex++, r.isGroupEnd = r.endIndex === c.endIndex;
|
|
609
618
|
else {
|
|
610
|
-
const
|
|
611
|
-
|
|
619
|
+
const b = c.startIndex + d;
|
|
620
|
+
u.push(he(q({}, c), { key: `${c.key}:${h || "none"}:${b}`, groupKey: c.key, fields: [o], colspan: 1, startIndex: b, endIndex: b, fixed: h, isGroupStart: b === c.startIndex, isGroupEnd: b === c.endIndex }));
|
|
612
621
|
}
|
|
613
|
-
}),
|
|
614
|
-
})), s =
|
|
622
|
+
}), u;
|
|
623
|
+
})), s = k(() => {
|
|
615
624
|
const c = /* @__PURE__ */ new Map();
|
|
616
|
-
for (const
|
|
617
|
-
c.set(
|
|
618
|
-
const
|
|
619
|
-
c.set(
|
|
625
|
+
for (const u of a.value) {
|
|
626
|
+
c.set(u.fields[0], ["vuetable-group-start"]);
|
|
627
|
+
const o = u.fields[u.fields.length - 1];
|
|
628
|
+
c.set(o, [...c.get(o) || [], "vuetable-group-end"]);
|
|
620
629
|
}
|
|
621
630
|
return c;
|
|
622
631
|
});
|
|
623
|
-
return { scope:
|
|
632
|
+
return { scope: k(() => ({
|
|
624
633
|
fields: e.fields.value,
|
|
625
634
|
visibleFields: n.value,
|
|
626
635
|
groups: a.value,
|
|
627
|
-
headerGroups:
|
|
636
|
+
headerGroups: i.value,
|
|
628
637
|
getCellProps: e.getCellProps,
|
|
629
638
|
getSpanProps: e.getSpanProps,
|
|
630
639
|
columnCount: n.value.length,
|
|
@@ -666,19 +675,19 @@ const ye = {
|
|
|
666
675
|
paginationInfo: {
|
|
667
676
|
infoClass: "left floated left aligned six wide column"
|
|
668
677
|
}
|
|
669
|
-
},
|
|
678
|
+
}, Ln = /* @__PURE__ */ new WeakMap(), ul = Q({
|
|
670
679
|
name: "Vuetable",
|
|
671
|
-
inheritAttrs:
|
|
680
|
+
inheritAttrs: K,
|
|
672
681
|
components: {
|
|
673
|
-
RenderBoundary:
|
|
674
|
-
SlotOutlet:
|
|
675
|
-
VuetableRowHeader:
|
|
676
|
-
VuetableColGroup:
|
|
677
|
-
VuetableColGutter:
|
|
678
|
-
VuetableDetailHost:
|
|
679
|
-
"vuetable-field-checkbox":
|
|
680
|
-
"vuetable-field-handle":
|
|
681
|
-
"vuetable-field-sequence":
|
|
682
|
+
RenderBoundary: Ua,
|
|
683
|
+
SlotOutlet: Nn,
|
|
684
|
+
VuetableRowHeader: Gn,
|
|
685
|
+
VuetableColGroup: Hn,
|
|
686
|
+
VuetableColGutter: nt,
|
|
687
|
+
VuetableDetailHost: al,
|
|
688
|
+
"vuetable-field-checkbox": At,
|
|
689
|
+
"vuetable-field-handle": Bt,
|
|
690
|
+
"vuetable-field-sequence": Vt
|
|
682
691
|
},
|
|
683
692
|
props: {
|
|
684
693
|
fields: { type: Array, default: void 0 },
|
|
@@ -704,7 +713,7 @@ const ye = {
|
|
|
704
713
|
perPage: { type: Number, required: !1, default: 10 },
|
|
705
714
|
initialPage: { type: Number, required: !1, default: 1 },
|
|
706
715
|
firstPage: { type: Number, required: !1, default: 1 },
|
|
707
|
-
sortOrder: { type: Array, required: !1, default: () =>
|
|
716
|
+
sortOrder: { type: Array, required: !1, default: () => A([]).value },
|
|
708
717
|
multiSort: { type: Boolean, required: !1, default: !1 },
|
|
709
718
|
tableHeight: { type: String, required: !1, default: null },
|
|
710
719
|
multiSortKey: { type: String, required: !1, default: "alt" },
|
|
@@ -730,184 +739,199 @@ const ye = {
|
|
|
730
739
|
return this.tableCss;
|
|
731
740
|
}
|
|
732
741
|
},
|
|
733
|
-
setup(e, { emit: n, slots: a, attrs:
|
|
734
|
-
var
|
|
735
|
-
const s =
|
|
736
|
-
let
|
|
737
|
-
|
|
738
|
-
var
|
|
739
|
-
if (
|
|
740
|
-
const
|
|
741
|
-
(
|
|
742
|
+
setup(e, { emit: n, slots: a, attrs: i }) {
|
|
743
|
+
var Sn;
|
|
744
|
+
const s = pa(), g = A(), c = A(0);
|
|
745
|
+
let u = q(q({}, e), i), o = Object.keys(a).length > 0;
|
|
746
|
+
Rn(() => {
|
|
747
|
+
var E, W, X, le;
|
|
748
|
+
if (K) {
|
|
749
|
+
const _ = s == null ? void 0 : s.proxy;
|
|
750
|
+
(v.hasDeclarations() || Je("default") || (E = _ == null ? void 0 : _.$slots) != null && E.default || (le = (X = (W = _ == null ? void 0 : _.$vnode) == null ? void 0 : W.data) == null ? void 0 : X.scopedSlots) != null && le.default) && c.value++;
|
|
742
751
|
return;
|
|
743
752
|
}
|
|
744
|
-
const t = q(q({}, e),
|
|
745
|
-
(
|
|
753
|
+
const t = q(q({}, e), i), l = Object.keys(t), f = l.length === Object.keys(u).length && l.every((_) => t[_] === u[_]), m = Object.keys(a).length > 0;
|
|
754
|
+
(f || o || m) && c.value++, o = m, u = t;
|
|
746
755
|
});
|
|
747
|
-
const d =
|
|
756
|
+
const d = k(() => s == null ? void 0 : s.proxy), h = A([]), r = ol({ fields: h, mode: k(() => e.fixedMode || "edges"), warn: De }), b = k({
|
|
748
757
|
get: () => r.orderedFields.value,
|
|
749
758
|
set: (t) => {
|
|
750
|
-
|
|
759
|
+
h.value = t;
|
|
751
760
|
}
|
|
752
|
-
}),
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
761
|
+
}), v = ll({ fields: h, normalize: ot, warn: De }), F = v.getColumnSlot, $ = A(null), p = k(() => {
|
|
762
|
+
const t = /* @__PURE__ */ new Map();
|
|
763
|
+
return ($.value || []).map((f) => {
|
|
764
|
+
const m = f[e.trackBy];
|
|
765
|
+
if (typeof m != "string" && (typeof m != "number" || !Number.isFinite(m))) return null;
|
|
766
|
+
const E = JSON.stringify(["id", m]);
|
|
767
|
+
return t.set(E, (t.get(E) || 0) + 1), E;
|
|
768
|
+
}).map((f, m) => f !== null && t.get(f) === 1 ? f : JSON.stringify(["index", m]));
|
|
769
|
+
}), C = A(null), O = A(e.initialPage), H = A([]), R = A([]), N = A(0), ge = A("17px"), M = A(!1), S = Xe(e.sortOrder), w = K ? A(S) : Ne(S);
|
|
770
|
+
let j = !1;
|
|
771
|
+
const I = k({
|
|
772
|
+
get: () => w.value,
|
|
756
773
|
set: (t) => {
|
|
757
|
-
|
|
774
|
+
j = !0, w.value = Xe(t), Be();
|
|
758
775
|
}
|
|
759
776
|
});
|
|
760
|
-
|
|
777
|
+
K && s && ya(() => Object.defineProperty(s.proxy, "sortOrder", {
|
|
761
778
|
configurable: !0,
|
|
762
779
|
enumerable: !0,
|
|
763
|
-
get: () =>
|
|
780
|
+
get: () => I.value,
|
|
764
781
|
set: (t) => {
|
|
765
|
-
|
|
782
|
+
I.value = t;
|
|
766
783
|
}
|
|
767
784
|
}));
|
|
768
|
-
const
|
|
769
|
-
if (
|
|
770
|
-
let t =
|
|
785
|
+
const L = (Sn = s == null ? void 0 : s.proxy) == null ? void 0 : Sn.$parent;
|
|
786
|
+
if (L) {
|
|
787
|
+
let t = Ln.get(L);
|
|
771
788
|
if (!t) {
|
|
772
|
-
t = /* @__PURE__ */ new Set(),
|
|
773
|
-
const
|
|
774
|
-
|
|
789
|
+
t = /* @__PURE__ */ new Set(), Ln.set(L, t);
|
|
790
|
+
const f = t, m = () => f.forEach((E) => E());
|
|
791
|
+
K ? L.$on("hook:beforeUpdate", m) : Rn(m, L.$);
|
|
775
792
|
}
|
|
776
|
-
t.add(
|
|
777
|
-
const
|
|
778
|
-
|
|
779
|
-
}
|
|
780
|
-
const
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
793
|
+
t.add(Ct);
|
|
794
|
+
const l = t;
|
|
795
|
+
Ht(() => l.delete(Ct));
|
|
796
|
+
}
|
|
797
|
+
const ne = A(e.httpOptions), me = A();
|
|
798
|
+
let x = 0;
|
|
799
|
+
const Ce = k(() => {
|
|
800
|
+
const t = q(q({}, ye.table), e.css);
|
|
801
|
+
for (const l of ["tableClass", "ascendingIcon", "descendingIcon", "sortableIcon", "handleIcon"])
|
|
802
|
+
Object.prototype.hasOwnProperty.call(e.css || {}, l) || (t[l] += l === "tableClass" ? " vuetable-semantic-table" : " vuetable-semantic-icon");
|
|
803
|
+
return t;
|
|
804
|
+
}), we = k(() => {
|
|
805
|
+
var t, l;
|
|
806
|
+
return (t = $.value) != null && t.length ? ((l = $.value) == null ? void 0 : l.length) > 0 : !1;
|
|
807
|
+
}), Fe = k(() => we.value && e.detailRowComponent !== ""), Oe = k(() => $.value && typeof $.value[0][e.trackBy] != "undefined"), Ee = k(() => b.value.filter((t) => t.visible).length), Pe = k(() => {
|
|
784
808
|
var t;
|
|
785
|
-
return ((t =
|
|
786
|
-
}),
|
|
809
|
+
return ((t = $.value) == null ? void 0 : t.length) || 0;
|
|
810
|
+
}), je = k(() => Pe.value === 0 && e.noDataTemplate.length > 0), Te = k(() => {
|
|
787
811
|
var t;
|
|
788
|
-
return
|
|
789
|
-
}),
|
|
812
|
+
return $.value === null || ((t = $.value) == null ? void 0 : t.length) === 0;
|
|
813
|
+
}), G = k(() => Te.value ? !0 : $.value.length < e.minRows), ue = k(() => Te.value ? e.minRows : $.value.length >= e.minRows ? 0 : e.minRows - $.value.length), re = k(() => e.apiMode), ce = k(() => !e.apiMode), de = k(() => e.tableHeight != null), J = rl({ fields: b, root: () => {
|
|
790
814
|
var t;
|
|
791
815
|
return (t = s == null ? void 0 : s.proxy) == null ? void 0 : t.$el;
|
|
792
|
-
}, isFixedHeader:
|
|
793
|
-
|
|
794
|
-
|
|
816
|
+
}, isFixedHeader: de, scrollVisible: M, scrollBarWidth: ge }), { getCellProps: ae, getSpanProps: Wt, enabled: Qn } = J, at = il({ fields: b, groupBy: () => e.groupBy, isFixedHeader: de, scrollVisible: M, scrollBarWidth: J.headerGutterWidth, getCellProps: ae, getSpanProps: Wt });
|
|
817
|
+
lt(), Be(), Ve(() => {
|
|
818
|
+
qe || B("initialized", b.value);
|
|
795
819
|
});
|
|
796
|
-
let
|
|
797
|
-
function
|
|
798
|
-
const t =
|
|
799
|
-
|
|
800
|
-
}
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
}, { flush: "post" }),
|
|
804
|
-
|
|
805
|
-
}),
|
|
806
|
-
|
|
820
|
+
let ze = !1, qe = !1, Re = null, ke = null;
|
|
821
|
+
function Ke() {
|
|
822
|
+
const t = g.value;
|
|
823
|
+
Re && (!ze || !de.value || Re !== t) && (Re.removeEventListener("scroll", Ue), Re = null), !(!ze || !de.value || !t) && (ge.value = Kt() + "px", Re !== t && (t.addEventListener("scroll", Ue), Re = t), N.value = -1, Ue({ currentTarget: t }), Le());
|
|
824
|
+
}
|
|
825
|
+
te(de, () => {
|
|
826
|
+
K ? Ve(Ke) : Ke();
|
|
827
|
+
}, { flush: "post" }), It(() => {
|
|
828
|
+
ze = !0, e.loadOnStart && ve(), Ke();
|
|
829
|
+
}), Ht(() => {
|
|
830
|
+
ze = !1, qe = !0, x++, ke !== null && (clearTimeout(ke), ke = null), Ke();
|
|
807
831
|
});
|
|
808
|
-
const
|
|
832
|
+
const zt = Lt(he(q({}, ma(e)), {
|
|
809
833
|
vuetable: d,
|
|
810
|
-
$el:
|
|
834
|
+
$el: k(() => {
|
|
811
835
|
var t;
|
|
812
836
|
return (t = s == null ? void 0 : s.proxy) == null ? void 0 : t.$el;
|
|
813
837
|
}),
|
|
814
|
-
isApiMode:
|
|
815
|
-
tableLayout:
|
|
816
|
-
groupClass:
|
|
817
|
-
getCellProps:
|
|
818
|
-
getSpanProps:
|
|
819
|
-
fixedColumnsEnabled:
|
|
820
|
-
hasFixedRightColumn:
|
|
821
|
-
scheduleFixedColumns:
|
|
822
|
-
getHeaderWidth:
|
|
838
|
+
isApiMode: re,
|
|
839
|
+
tableLayout: at.scope,
|
|
840
|
+
groupClass: at.groupClass,
|
|
841
|
+
getCellProps: ae,
|
|
842
|
+
getSpanProps: Wt,
|
|
843
|
+
fixedColumnsEnabled: Qn,
|
|
844
|
+
hasFixedRightColumn: J.hasFixedRightColumn,
|
|
845
|
+
scheduleFixedColumns: J.schedule,
|
|
846
|
+
getHeaderWidth: J.getHeaderWidth,
|
|
823
847
|
getColumnKey: r.getColumnKey,
|
|
824
|
-
tableFields:
|
|
825
|
-
tableData:
|
|
826
|
-
tablePagination:
|
|
827
|
-
selectedTo:
|
|
828
|
-
countVisibleFields:
|
|
829
|
-
dataIsAvailable:
|
|
830
|
-
countTableData:
|
|
831
|
-
displayEmptyDataRow:
|
|
832
|
-
useDetailRow:
|
|
833
|
-
hasRowIdentifier:
|
|
834
|
-
lessThanMinRows:
|
|
835
|
-
blankRows:
|
|
836
|
-
scrollVisible:
|
|
837
|
-
scrollBarWidth:
|
|
838
|
-
sortOrder:
|
|
839
|
-
css:
|
|
840
|
-
$_css:
|
|
841
|
-
isFieldSlot:
|
|
842
|
-
getColumnSlot:
|
|
848
|
+
tableFields: b,
|
|
849
|
+
tableData: $,
|
|
850
|
+
tablePagination: C,
|
|
851
|
+
selectedTo: H,
|
|
852
|
+
countVisibleFields: Ee,
|
|
853
|
+
dataIsAvailable: we,
|
|
854
|
+
countTableData: Pe,
|
|
855
|
+
displayEmptyDataRow: je,
|
|
856
|
+
useDetailRow: Fe,
|
|
857
|
+
hasRowIdentifier: Oe,
|
|
858
|
+
lessThanMinRows: G,
|
|
859
|
+
blankRows: ue,
|
|
860
|
+
scrollVisible: M,
|
|
861
|
+
scrollBarWidth: J.headerGutterWidth,
|
|
862
|
+
sortOrder: w,
|
|
863
|
+
css: Ce,
|
|
864
|
+
$_css: Ce,
|
|
865
|
+
isFieldSlot: Jt,
|
|
866
|
+
getColumnSlot: F,
|
|
843
867
|
columnRevision: c,
|
|
844
|
-
onHeaderEvent:
|
|
845
|
-
setData:
|
|
846
|
-
getFieldTitle:
|
|
847
|
-
orderBy:
|
|
848
|
-
camelCase:
|
|
849
|
-
clearSortOrder:
|
|
850
|
-
toggleDetailRow:
|
|
851
|
-
showDetailRow:
|
|
852
|
-
hideDetailRow:
|
|
868
|
+
onHeaderEvent: mn,
|
|
869
|
+
setData: st,
|
|
870
|
+
getFieldTitle: xt,
|
|
871
|
+
orderBy: tn,
|
|
872
|
+
camelCase: Zt,
|
|
873
|
+
clearSortOrder: an,
|
|
874
|
+
toggleDetailRow: cn,
|
|
875
|
+
showDetailRow: $t,
|
|
876
|
+
hideDetailRow: Ft,
|
|
853
877
|
isVisibleDetailRow: Ae,
|
|
854
|
-
reload:
|
|
855
|
-
fireEvent:
|
|
856
|
-
singleColumnSort:
|
|
857
|
-
removeSortColumn:
|
|
858
|
-
setSortColumnDirection:
|
|
859
|
-
clearSelectedValues:
|
|
860
|
-
showField:
|
|
861
|
-
hideField:
|
|
862
|
-
toggleField:
|
|
863
|
-
onCheckboxToggled:
|
|
864
|
-
onCheckboxToggledAll:
|
|
865
|
-
checkIfRowIdentifierExists:
|
|
866
|
-
changePage:
|
|
867
|
-
resetData:
|
|
868
|
-
refresh:
|
|
869
|
-
isFieldComponent:
|
|
878
|
+
reload: Ot,
|
|
879
|
+
fireEvent: B,
|
|
880
|
+
singleColumnSort: mt,
|
|
881
|
+
removeSortColumn: pt,
|
|
882
|
+
setSortColumnDirection: yt,
|
|
883
|
+
clearSelectedValues: on,
|
|
884
|
+
showField: dn,
|
|
885
|
+
hideField: fn,
|
|
886
|
+
toggleField: bn,
|
|
887
|
+
onCheckboxToggled: Cn,
|
|
888
|
+
onCheckboxToggledAll: wn,
|
|
889
|
+
checkIfRowIdentifierExists: it,
|
|
890
|
+
changePage: Pn,
|
|
891
|
+
resetData: kn,
|
|
892
|
+
refresh: Tt,
|
|
893
|
+
isFieldComponent: ut,
|
|
870
894
|
makeTitle: xe,
|
|
871
|
-
getAllQueryParams:
|
|
872
|
-
isSortable:
|
|
873
|
-
getDefaultSortParam:
|
|
874
|
-
getObjectValue:
|
|
875
|
-
isSelectedRow:
|
|
895
|
+
getAllQueryParams: bt,
|
|
896
|
+
isSortable: Ye,
|
|
897
|
+
getDefaultSortParam: gt,
|
|
898
|
+
getObjectValue: Me,
|
|
899
|
+
isSelectedRow: St
|
|
876
900
|
}));
|
|
877
|
-
|
|
878
|
-
function
|
|
879
|
-
const t = document.createElement("div"),
|
|
880
|
-
t.style.visibility = "hidden", t.style.width = "100px",
|
|
881
|
-
const
|
|
901
|
+
Ca("vuetable", zt);
|
|
902
|
+
function Kt() {
|
|
903
|
+
const t = document.createElement("div"), l = document.createElement("div");
|
|
904
|
+
t.style.visibility = "hidden", t.style.width = "100px", l.style.width = "100%", t.appendChild(l), document.body.appendChild(t);
|
|
905
|
+
const f = t.offsetWidth;
|
|
882
906
|
t.style.overflow = "scroll";
|
|
883
|
-
const
|
|
884
|
-
return document.body.removeChild(t),
|
|
885
|
-
}
|
|
886
|
-
function
|
|
887
|
-
var
|
|
888
|
-
const
|
|
889
|
-
if (!
|
|
890
|
-
const
|
|
891
|
-
if (
|
|
892
|
-
const
|
|
893
|
-
|
|
907
|
+
const m = l.offsetWidth;
|
|
908
|
+
return document.body.removeChild(t), f - m;
|
|
909
|
+
}
|
|
910
|
+
function Ue(t) {
|
|
911
|
+
var m, E;
|
|
912
|
+
const l = t.currentTarget;
|
|
913
|
+
if (!l) return;
|
|
914
|
+
const f = l.scrollLeft;
|
|
915
|
+
if (f != N.value) {
|
|
916
|
+
const W = (E = (m = g.value) == null ? void 0 : m.parentElement) == null ? void 0 : E.querySelector(".vuetable-head-wrapper");
|
|
917
|
+
W != null && (W.scrollLeft = f), N.value = f;
|
|
894
918
|
}
|
|
895
919
|
}
|
|
896
|
-
function
|
|
920
|
+
function De(t) {
|
|
897
921
|
e.silent || console.error(t);
|
|
898
922
|
}
|
|
899
|
-
function
|
|
900
|
-
return [t,
|
|
923
|
+
function Yn(t, l) {
|
|
924
|
+
return [t, l.dataClass, ...at.groupClass(l), ...ae(l).class];
|
|
901
925
|
}
|
|
902
|
-
function
|
|
926
|
+
function lt() {
|
|
903
927
|
if (typeof e.fields == "undefined") {
|
|
904
|
-
|
|
928
|
+
v.reconcile();
|
|
905
929
|
return;
|
|
906
930
|
}
|
|
907
|
-
|
|
931
|
+
h.value = e.fields.map(ot);
|
|
908
932
|
}
|
|
909
|
-
function
|
|
910
|
-
const
|
|
933
|
+
function ot(t, l) {
|
|
934
|
+
const f = {
|
|
911
935
|
name: "",
|
|
912
936
|
// title:
|
|
913
937
|
// this allow the code to detect undefined title
|
|
@@ -918,609 +942,653 @@ const ye = {
|
|
|
918
942
|
formatter: null,
|
|
919
943
|
visible: !0,
|
|
920
944
|
width: null,
|
|
921
|
-
$_index:
|
|
945
|
+
$_index: l
|
|
922
946
|
};
|
|
923
947
|
if (typeof t == "string")
|
|
924
|
-
return
|
|
925
|
-
name:
|
|
948
|
+
return he(q({}, f), {
|
|
949
|
+
name: rt(t),
|
|
926
950
|
title: xe(t)
|
|
927
951
|
});
|
|
928
|
-
const
|
|
929
|
-
return
|
|
952
|
+
const m = Object.assign({}, f, t);
|
|
953
|
+
return m.name = rt(m.name), m.title === void 0 && (m.title = xe(m.name)), m.formatter !== null && typeof m.formatter != "function" && (console.error(m.name + " field formatter must be a function"), m.formatter = null), m;
|
|
930
954
|
}
|
|
931
|
-
function
|
|
932
|
-
return t instanceof Object ?
|
|
955
|
+
function rt(t) {
|
|
956
|
+
return t instanceof Object ? An(Dt(t)) : t.replace("__", e.fieldPrefix);
|
|
933
957
|
}
|
|
934
|
-
function
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
958
|
+
function st(t) {
|
|
959
|
+
t === null || typeof t == "undefined" || Ie(t, ++x);
|
|
960
|
+
}
|
|
961
|
+
function D(t) {
|
|
962
|
+
return !qe && t === x;
|
|
963
|
+
}
|
|
964
|
+
function Ie(t, l) {
|
|
965
|
+
if (!(!D(l) || t === null || typeof t == "undefined") && (B("loading"), !!D(l))) {
|
|
966
|
+
if (Array.isArray(t)) {
|
|
967
|
+
if ($.value = t, !D(l)) return;
|
|
968
|
+
B("loaded");
|
|
938
969
|
return;
|
|
939
970
|
}
|
|
940
|
-
|
|
941
|
-
Ue(), Le(), j("pagination-data", h.value), j("loaded");
|
|
942
|
-
});
|
|
971
|
+
Ut(t, l);
|
|
943
972
|
}
|
|
944
973
|
}
|
|
945
|
-
function
|
|
946
|
-
|
|
947
|
-
|
|
974
|
+
function Ut(t, l, f = !1) {
|
|
975
|
+
const m = Me(t, e.dataPath, null);
|
|
976
|
+
if (!D(l) || ($.value = m, !D(l))) return;
|
|
977
|
+
const E = Me(t, e.paginationPath, null);
|
|
978
|
+
D(l) && (C.value = E, D(l) && (f && C.value === null && De(`vuetable: pagination-path ${e.paginationPath} not found.
|
|
979
|
+
It looks like the data returned from the server does not have pagination information
|
|
980
|
+
or you may have set it incorrectly.
|
|
981
|
+
|
|
982
|
+
You can explicitly suppress this warning by setting pagination-path="".`), Ve(() => {
|
|
983
|
+
D(l) && (it(), D(l) && (Ze(), D(l) && (B("pagination-data", C.value), D(l) && B("loaded"))));
|
|
984
|
+
})));
|
|
985
|
+
}
|
|
986
|
+
function it() {
|
|
987
|
+
if (we.value)
|
|
988
|
+
return Oe.value ? !0 : (De('Invalid your data! Use "track-by" prop to specify.'), !1);
|
|
948
989
|
}
|
|
949
990
|
function xe(t) {
|
|
950
|
-
return
|
|
991
|
+
return ut(t) ? "" : ct(t.replace(".", " "));
|
|
951
992
|
}
|
|
952
|
-
function
|
|
993
|
+
function xt(t) {
|
|
953
994
|
return typeof t.title == "function" ? t.title() : t.title;
|
|
954
995
|
}
|
|
955
|
-
function
|
|
956
|
-
return
|
|
996
|
+
function Xn(t, l) {
|
|
997
|
+
return wt(t) ? ln(t, l) : Me(l, t.name, "");
|
|
957
998
|
}
|
|
958
|
-
function
|
|
999
|
+
function ut(t) {
|
|
959
1000
|
return t instanceof Object ? !0 : t.slice(0, e.fieldPrefix.length) === e.fieldPrefix || t.slice(0, 2) === "__";
|
|
960
1001
|
}
|
|
961
|
-
function
|
|
1002
|
+
function Jt(t) {
|
|
962
1003
|
return typeof Je(t) != "undefined";
|
|
963
1004
|
}
|
|
964
1005
|
function Je(t) {
|
|
965
|
-
var
|
|
966
|
-
return
|
|
1006
|
+
var l, f;
|
|
1007
|
+
return K ? (f = (l = s == null ? void 0 : s.proxy) == null ? void 0 : l.$scopedSlots) == null ? void 0 : f[t] : a[t];
|
|
967
1008
|
}
|
|
968
|
-
function
|
|
969
|
-
return t.replace(/\w+/g, (
|
|
1009
|
+
function ct(t) {
|
|
1010
|
+
return t.replace(/\w+/g, (l) => l.charAt(0).toUpperCase() + l.substring(1).toLowerCase());
|
|
970
1011
|
}
|
|
971
|
-
function
|
|
972
|
-
return t.split(
|
|
1012
|
+
function Zt(t, l = "_") {
|
|
1013
|
+
return t.split(l).map((f) => ct(f)).join("");
|
|
973
1014
|
}
|
|
974
|
-
function
|
|
975
|
-
|
|
976
|
-
|
|
1015
|
+
function ve(t = dt, l = Qe) {
|
|
1016
|
+
const f = ++x;
|
|
1017
|
+
if (ce.value) {
|
|
1018
|
+
vn(f);
|
|
977
1019
|
return;
|
|
978
1020
|
}
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1021
|
+
if (!D(f) || (B("loading"), !D(f))) return Promise.resolve();
|
|
1022
|
+
const m = q({}, ne.value), E = bt();
|
|
1023
|
+
if (!D(f) || (m.params = _t(q({}, E)), !D(f))) return Promise.resolve();
|
|
1024
|
+
const W = Qt(e.apiUrl, m);
|
|
1025
|
+
return D(f) && (me.value = W), W.then(
|
|
1026
|
+
(X) => {
|
|
1027
|
+
if (D(f))
|
|
1028
|
+
return t === dt ? Yt(X, f) : t(X);
|
|
1029
|
+
},
|
|
1030
|
+
(X) => {
|
|
1031
|
+
if (D(f))
|
|
1032
|
+
return l === Qe ? ft(X, f) : l(X);
|
|
1033
|
+
}
|
|
1034
|
+
).catch(() => {
|
|
1035
|
+
if (D(f))
|
|
1036
|
+
return l === Qe ? ft(void 0, f) : l();
|
|
1037
|
+
});
|
|
983
1038
|
}
|
|
984
|
-
function
|
|
985
|
-
return
|
|
1039
|
+
function Qt(t, l) {
|
|
1040
|
+
return qn(this, null, function* () {
|
|
986
1041
|
if (e.httpFetch)
|
|
987
|
-
return e.httpFetch(t,
|
|
1042
|
+
return e.httpFetch(t, l);
|
|
988
1043
|
if (e.httpMethod === "get")
|
|
989
|
-
return
|
|
1044
|
+
return Dn.get(t, l);
|
|
990
1045
|
{
|
|
991
|
-
const
|
|
992
|
-
return
|
|
1046
|
+
const f = l, { params: m } = f, E = Tn(f, ["params"]);
|
|
1047
|
+
return Dn.post(t, yield m, E);
|
|
993
1048
|
}
|
|
994
1049
|
});
|
|
995
1050
|
}
|
|
996
|
-
function
|
|
997
|
-
|
|
998
|
-
const o = e.transform ? e.transform(t.data) : t.data;
|
|
999
|
-
S.value = ve(o, e.dataPath, null), h.value = ve(o, e.paginationPath, null), h.value === null && Re(`vuetable: pagination-path ${e.paginationPath} not found.
|
|
1000
|
-
It looks like the data returned from the server does not have pagination information
|
|
1001
|
-
or you may have set it incorrectly.
|
|
1002
|
-
|
|
1003
|
-
You can explicitly suppress this warning by setting pagination-path="".`), De(() => {
|
|
1004
|
-
Ue(), Le(), j("pagination-data", h.value), j("loaded");
|
|
1005
|
-
});
|
|
1051
|
+
function dt(t) {
|
|
1052
|
+
Yt(t, x);
|
|
1006
1053
|
}
|
|
1007
|
-
function
|
|
1008
|
-
|
|
1009
|
-
|
|
1054
|
+
function Yt(t, l) {
|
|
1055
|
+
if (!D(l) || (B("load-success", t), !D(l))) return;
|
|
1056
|
+
const f = e.transform ? e.transform(t.data) : t.data;
|
|
1057
|
+
D(l) && Ut(f, l, !0);
|
|
1058
|
+
}
|
|
1059
|
+
function Ze() {
|
|
1060
|
+
qe || (ke !== null && clearTimeout(ke), ke = setTimeout(() => {
|
|
1061
|
+
ke = null, Le();
|
|
1010
1062
|
}, 80));
|
|
1011
1063
|
}
|
|
1012
|
-
function
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
t
|
|
1064
|
+
function Le() {
|
|
1065
|
+
qe || Ve(() => {
|
|
1066
|
+
if (qe) return;
|
|
1067
|
+
const t = g.value;
|
|
1068
|
+
t != null && (M.value = t.scrollHeight > t.clientHeight, B("scrollbar-visible", M.value));
|
|
1016
1069
|
});
|
|
1017
1070
|
}
|
|
1018
|
-
function
|
|
1019
|
-
|
|
1071
|
+
function Qe(t) {
|
|
1072
|
+
ft(t, x);
|
|
1073
|
+
}
|
|
1074
|
+
function ft(t, l) {
|
|
1075
|
+
D(l) && (console.error("load-error", t), D(l) && (B("load-error", t), D(l) && B("loaded")));
|
|
1020
1076
|
}
|
|
1021
|
-
function
|
|
1077
|
+
function bt() {
|
|
1022
1078
|
let t = {};
|
|
1023
|
-
return typeof e.queryParams == "function" ? (t = e.queryParams(
|
|
1079
|
+
return typeof e.queryParams == "function" ? (t = e.queryParams(w.value, O.value, e.perPage), typeof t == "object" ? t : {}) : (t[e.queryParams.sort] = Xt(), t[e.queryParams.page] = O.value, t[e.queryParams.perPage] = e.perPage, t);
|
|
1024
1080
|
}
|
|
1025
|
-
function
|
|
1081
|
+
function Xt() {
|
|
1026
1082
|
var t;
|
|
1027
|
-
return !
|
|
1083
|
+
return !w.value || ((t = w.value[0]) == null ? void 0 : t.field) == "" ? "" : typeof e.sortParams == "function" ? e.sortParams(w.value) : gt();
|
|
1028
1084
|
}
|
|
1029
|
-
function
|
|
1030
|
-
return
|
|
1085
|
+
function gt() {
|
|
1086
|
+
return w.value.map((t) => `${t.sortField}|${t.direction}`).join(",");
|
|
1031
1087
|
}
|
|
1032
|
-
function
|
|
1033
|
-
for (let
|
|
1034
|
-
t[
|
|
1088
|
+
function _t(t) {
|
|
1089
|
+
for (let l in e.appendParams)
|
|
1090
|
+
t[l] = e.appendParams[l];
|
|
1035
1091
|
return t;
|
|
1036
1092
|
}
|
|
1037
|
-
function
|
|
1093
|
+
function Ye(t) {
|
|
1038
1094
|
return t.sortField !== null;
|
|
1039
1095
|
}
|
|
1040
|
-
function
|
|
1041
|
-
if (!
|
|
1096
|
+
function en(t) {
|
|
1097
|
+
if (!Ye(t))
|
|
1042
1098
|
return !1;
|
|
1043
|
-
for (let
|
|
1044
|
-
if (
|
|
1045
|
-
return
|
|
1099
|
+
for (let l = 0; l < w.value.length; l++)
|
|
1100
|
+
if (vt(t, l))
|
|
1101
|
+
return l;
|
|
1046
1102
|
return !1;
|
|
1047
1103
|
}
|
|
1048
|
-
function
|
|
1049
|
-
return
|
|
1104
|
+
function vt(t, l) {
|
|
1105
|
+
return w.value[l].field === t.name && w.value[l].sortField === t.sortField;
|
|
1050
1106
|
}
|
|
1051
|
-
function
|
|
1052
|
-
if (!
|
|
1053
|
-
const
|
|
1054
|
-
e.multiSort &&
|
|
1107
|
+
function tn(t, l) {
|
|
1108
|
+
if (!Ye(t)) return;
|
|
1109
|
+
const f = e.multiSortKey.toLowerCase() + "Key";
|
|
1110
|
+
e.multiSort && l[f] ? nn(t) : mt(t), O.value = e.firstPage, (re.value || e.dataManager) && ve();
|
|
1055
1111
|
}
|
|
1056
1112
|
function He() {
|
|
1057
|
-
|
|
1113
|
+
K || Pa(w);
|
|
1058
1114
|
}
|
|
1059
|
-
function
|
|
1060
|
-
|
|
1115
|
+
function ht(t, l) {
|
|
1116
|
+
w.value.push({
|
|
1061
1117
|
field: t.name,
|
|
1062
1118
|
sortField: t.sortField,
|
|
1063
|
-
direction:
|
|
1119
|
+
direction: l || "asc"
|
|
1064
1120
|
}), He();
|
|
1065
1121
|
}
|
|
1066
|
-
function
|
|
1067
|
-
|
|
1122
|
+
function pt(t) {
|
|
1123
|
+
w.value.splice(t, 1), He();
|
|
1068
1124
|
}
|
|
1069
|
-
function
|
|
1070
|
-
|
|
1125
|
+
function yt(t, l) {
|
|
1126
|
+
w.value[t].direction = l, He();
|
|
1071
1127
|
}
|
|
1072
|
-
function
|
|
1073
|
-
let
|
|
1074
|
-
|
|
1128
|
+
function nn(t) {
|
|
1129
|
+
let l = en(t);
|
|
1130
|
+
l === !1 ? ht(t, "asc") : w.value[l].direction === "asc" ? yt(l, "desc") : pt(l);
|
|
1075
1131
|
}
|
|
1076
|
-
function
|
|
1077
|
-
if (
|
|
1078
|
-
|
|
1132
|
+
function mt(t) {
|
|
1133
|
+
if (w.value.length === 0) {
|
|
1134
|
+
ht(t, "asc");
|
|
1079
1135
|
return;
|
|
1080
1136
|
}
|
|
1081
|
-
|
|
1137
|
+
w.value.splice(1), vt(t, 0) ? w.value[0].direction = w.value[0].direction === "asc" ? "desc" : "asc" : w.value[0].direction = "asc", w.value[0].field = t.name, w.value[0].sortField = t.sortField, He();
|
|
1082
1138
|
}
|
|
1083
|
-
function
|
|
1084
|
-
|
|
1139
|
+
function an() {
|
|
1140
|
+
I.value = A([]).value;
|
|
1085
1141
|
}
|
|
1086
|
-
function
|
|
1087
|
-
var
|
|
1088
|
-
if (!
|
|
1089
|
-
const t =
|
|
1090
|
-
(t == null ? void 0 : t.sortOrder) === void 0 && (t == null ? void 0 : t["sort-order"]) === void 0 || (
|
|
1142
|
+
function Ct() {
|
|
1143
|
+
var l;
|
|
1144
|
+
if (!j) return;
|
|
1145
|
+
const t = K ? (l = s == null ? void 0 : s.proxy) == null ? void 0 : l.$options.propsData : s == null ? void 0 : s.vnode.props;
|
|
1146
|
+
(t == null ? void 0 : t.sortOrder) === void 0 && (t == null ? void 0 : t["sort-order"]) === void 0 || (j = !1, w.value = Xe(e.sortOrder), Be());
|
|
1091
1147
|
}
|
|
1092
|
-
function
|
|
1148
|
+
function wt(t) {
|
|
1093
1149
|
return typeof t.formatter == "function";
|
|
1094
1150
|
}
|
|
1095
|
-
function
|
|
1096
|
-
if (
|
|
1097
|
-
return t.formatter(
|
|
1151
|
+
function ln(t, l) {
|
|
1152
|
+
if (wt(t) && typeof t.formatter == "function")
|
|
1153
|
+
return t.formatter(Me(l, t.name), s == null ? void 0 : s.proxy);
|
|
1098
1154
|
}
|
|
1099
|
-
function
|
|
1100
|
-
|
|
1101
|
-
let
|
|
1102
|
-
return
|
|
1103
|
-
if (
|
|
1104
|
-
|
|
1155
|
+
function Me(t, l, f) {
|
|
1156
|
+
f = typeof f == "undefined" ? null : f;
|
|
1157
|
+
let m = t;
|
|
1158
|
+
return l.trim() != "" && l.split(".").forEach((W) => {
|
|
1159
|
+
if (m !== null && typeof m[W] != "undefined" && m[W] !== null)
|
|
1160
|
+
m = m[W];
|
|
1105
1161
|
else {
|
|
1106
|
-
|
|
1162
|
+
m = f;
|
|
1107
1163
|
return;
|
|
1108
1164
|
}
|
|
1109
|
-
}),
|
|
1165
|
+
}), m;
|
|
1110
1166
|
}
|
|
1111
|
-
function
|
|
1112
|
-
|
|
1167
|
+
function Pt(t) {
|
|
1168
|
+
St(t) || H.value.push(t);
|
|
1113
1169
|
}
|
|
1114
|
-
function
|
|
1115
|
-
|
|
1170
|
+
function kt(t) {
|
|
1171
|
+
H.value = H.value.filter((l) => l !== t);
|
|
1116
1172
|
}
|
|
1117
|
-
function
|
|
1118
|
-
return
|
|
1173
|
+
function St(t) {
|
|
1174
|
+
return H.value.indexOf(t) >= 0;
|
|
1119
1175
|
}
|
|
1120
|
-
function
|
|
1121
|
-
|
|
1176
|
+
function on() {
|
|
1177
|
+
H.value = [];
|
|
1122
1178
|
}
|
|
1123
|
-
function
|
|
1124
|
-
|
|
1179
|
+
function rn() {
|
|
1180
|
+
O.value > e.firstPage && (O.value -= 1, ve());
|
|
1125
1181
|
}
|
|
1126
|
-
function
|
|
1127
|
-
|
|
1182
|
+
function sn() {
|
|
1183
|
+
O.value < C.value.last_page && (O.value += 1, ve());
|
|
1128
1184
|
}
|
|
1129
|
-
function
|
|
1130
|
-
t !=
|
|
1185
|
+
function un(t) {
|
|
1186
|
+
t != O.value && t >= e.firstPage && t <= C.value.last_page && (O.value = t, ve());
|
|
1131
1187
|
}
|
|
1132
1188
|
function Ae(t) {
|
|
1133
|
-
return
|
|
1189
|
+
return R.value.indexOf(t) >= 0;
|
|
1134
1190
|
}
|
|
1135
|
-
function
|
|
1136
|
-
Ae(t) ||
|
|
1191
|
+
function $t(t) {
|
|
1192
|
+
Ae(t) || R.value.push(t), Le();
|
|
1137
1193
|
}
|
|
1138
|
-
function
|
|
1139
|
-
Ae(t) && (
|
|
1140
|
-
|
|
1194
|
+
function Ft(t) {
|
|
1195
|
+
Ae(t) && (R.value.splice(
|
|
1196
|
+
R.value.indexOf(t),
|
|
1141
1197
|
1
|
|
1142
|
-
),
|
|
1198
|
+
), Ze());
|
|
1143
1199
|
}
|
|
1144
|
-
function
|
|
1145
|
-
Ae(t) ?
|
|
1200
|
+
function cn(t) {
|
|
1201
|
+
Ae(t) ? Ft(t) : $t(t);
|
|
1146
1202
|
}
|
|
1147
|
-
function
|
|
1148
|
-
t < 0 || t >=
|
|
1203
|
+
function dn(t) {
|
|
1204
|
+
t < 0 || t >= h.value.length || (h.value[t].visible = !0);
|
|
1149
1205
|
}
|
|
1150
|
-
function
|
|
1151
|
-
t < 0 || t >=
|
|
1206
|
+
function fn(t) {
|
|
1207
|
+
t < 0 || t >= h.value.length || (h.value[t].visible = !1);
|
|
1152
1208
|
}
|
|
1153
|
-
function
|
|
1154
|
-
t < 0 || t >=
|
|
1209
|
+
function bn(t) {
|
|
1210
|
+
t < 0 || t >= h.value.length || (h.value[t].visible = !h.value[t].visible);
|
|
1155
1211
|
}
|
|
1156
|
-
function
|
|
1157
|
-
return t = t === null ? 0 : t,
|
|
1212
|
+
function gn(t = null, l = null, f = null) {
|
|
1213
|
+
return t = t === null ? 0 : t, l = l === null ? e.perPage : l, f = f === null ? O.value : f, {
|
|
1158
1214
|
total: t,
|
|
1159
|
-
per_page:
|
|
1160
|
-
current_page:
|
|
1161
|
-
last_page: Math.ceil(t /
|
|
1215
|
+
per_page: l,
|
|
1216
|
+
current_page: f,
|
|
1217
|
+
last_page: Math.ceil(t / l) || 0,
|
|
1162
1218
|
next_page_url: "",
|
|
1163
1219
|
prev_page_url: "",
|
|
1164
|
-
from: (
|
|
1165
|
-
to: Math.min(
|
|
1220
|
+
from: (f - 1) * l + 1,
|
|
1221
|
+
to: Math.min(f * l, t)
|
|
1166
1222
|
};
|
|
1167
1223
|
}
|
|
1168
|
-
function
|
|
1169
|
-
const
|
|
1170
|
-
return
|
|
1224
|
+
function Xe(t) {
|
|
1225
|
+
const l = (f) => ka(f) || Object.isFrozen(Dt(f));
|
|
1226
|
+
return l(t) || t.some(l) ? A(t.map((f) => q({}, f))).value : t;
|
|
1171
1227
|
}
|
|
1172
1228
|
function Be() {
|
|
1173
1229
|
let t = !1;
|
|
1174
|
-
|
|
1175
|
-
const
|
|
1176
|
-
|
|
1230
|
+
w.value.forEach((l) => {
|
|
1231
|
+
const f = l.sortField || l.field;
|
|
1232
|
+
l.sortField !== f && (wa(l, "sortField", f), t = !0);
|
|
1177
1233
|
}), t && He();
|
|
1178
1234
|
}
|
|
1179
|
-
function
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1235
|
+
function _n() {
|
|
1236
|
+
vn(++x);
|
|
1237
|
+
}
|
|
1238
|
+
function vn(t) {
|
|
1239
|
+
if (D(t)) {
|
|
1240
|
+
if (e.data !== null && Array.isArray(e.data)) {
|
|
1241
|
+
Ie(e.data, t);
|
|
1242
|
+
return;
|
|
1243
|
+
}
|
|
1244
|
+
e.dataManager ? hn(t) : Ie(e.data, t);
|
|
1183
1245
|
}
|
|
1184
|
-
e.dataManager ? un() : Pe(e.data);
|
|
1185
1246
|
}
|
|
1186
|
-
function
|
|
1187
|
-
|
|
1188
|
-
dn(t) ? t.then((o) => Pe(o)) : Pe(t);
|
|
1247
|
+
function ea() {
|
|
1248
|
+
hn(++x);
|
|
1189
1249
|
}
|
|
1190
|
-
function
|
|
1250
|
+
function hn(t) {
|
|
1251
|
+
if (!D(t)) return;
|
|
1252
|
+
const l = e.dataManager(w.value, gn());
|
|
1253
|
+
yn(l) ? l.then((f) => Ie(f, t)) : Ie(l, t);
|
|
1254
|
+
}
|
|
1255
|
+
function pn(t) {
|
|
1191
1256
|
return typeof t == "object" && t !== null;
|
|
1192
1257
|
}
|
|
1193
|
-
function
|
|
1194
|
-
return
|
|
1258
|
+
function yn(t) {
|
|
1259
|
+
return pn(t) && typeof t.then == "function";
|
|
1195
1260
|
}
|
|
1196
|
-
function
|
|
1197
|
-
return typeof e.rowClass == "function" ? e.rowClass(t,
|
|
1261
|
+
function ta(t, l) {
|
|
1262
|
+
return typeof e.rowClass == "function" ? e.rowClass(t, l) : e.rowClass;
|
|
1198
1263
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return typeof e.detailRowClass == "function" ? e.detailRowClass(t,
|
|
1264
|
+
function na(t, l) {
|
|
1265
|
+
return typeof e.detailRowClass == "function" ? e.detailRowClass(t, l) : e.detailRowClass;
|
|
1201
1266
|
}
|
|
1202
|
-
function
|
|
1203
|
-
return
|
|
1267
|
+
function aa(t, l, f) {
|
|
1268
|
+
return B("row-clicked", { data: t, index: l, event: f }), !0;
|
|
1204
1269
|
}
|
|
1205
|
-
function
|
|
1206
|
-
|
|
1270
|
+
function la(t, l, f) {
|
|
1271
|
+
B("row-dblclicked", { data: t, index: l, event: f });
|
|
1207
1272
|
}
|
|
1208
|
-
function
|
|
1209
|
-
|
|
1273
|
+
function oa(t, l, f) {
|
|
1274
|
+
B("detail-row-clicked", { data: t, index: l, event: f });
|
|
1210
1275
|
}
|
|
1211
|
-
function
|
|
1212
|
-
|
|
1276
|
+
function ra(t, l, f, m) {
|
|
1277
|
+
B("cell-clicked", { data: t, index: l, field: f, event: m });
|
|
1213
1278
|
}
|
|
1214
|
-
function
|
|
1215
|
-
|
|
1279
|
+
function sa(t, l, f, m) {
|
|
1280
|
+
B("cell-dblclicked", { data: t, index: l, field: f, event: m });
|
|
1216
1281
|
}
|
|
1217
|
-
function
|
|
1218
|
-
|
|
1282
|
+
function ia(t, l, f, m) {
|
|
1283
|
+
B("cell-rightclicked", { data: t, index: l, field: f, event: m });
|
|
1219
1284
|
}
|
|
1220
|
-
function
|
|
1221
|
-
|
|
1285
|
+
function ua(t, l, f) {
|
|
1286
|
+
B("row-mouseover", { data: t, index: l, event: f });
|
|
1222
1287
|
}
|
|
1223
|
-
function
|
|
1224
|
-
|
|
1288
|
+
function ca(t, l) {
|
|
1289
|
+
B("field-event", t, l, s == null ? void 0 : s.proxy);
|
|
1225
1290
|
}
|
|
1226
|
-
function
|
|
1227
|
-
|
|
1291
|
+
function mn(t, l) {
|
|
1292
|
+
B("header-event", t, l, s == null ? void 0 : s.proxy);
|
|
1228
1293
|
}
|
|
1229
|
-
function
|
|
1230
|
-
if (
|
|
1231
|
-
|
|
1294
|
+
function Cn(t, l, f) {
|
|
1295
|
+
if (f[e.trackBy] === void 0) {
|
|
1296
|
+
De(`checkbox field: The "${e.trackBy}" field does not exist! Make sure the field you specify in "track-by" prop does exist.`);
|
|
1232
1297
|
return;
|
|
1233
1298
|
}
|
|
1234
|
-
const
|
|
1235
|
-
t ?
|
|
1236
|
-
}
|
|
1237
|
-
function
|
|
1238
|
-
var
|
|
1239
|
-
t ? (
|
|
1240
|
-
|
|
1241
|
-
}) : (
|
|
1242
|
-
|
|
1243
|
-
}),
|
|
1244
|
-
}
|
|
1245
|
-
function
|
|
1246
|
-
t === "prev" ?
|
|
1247
|
-
}
|
|
1248
|
-
function
|
|
1249
|
-
return
|
|
1250
|
-
}
|
|
1251
|
-
function
|
|
1252
|
-
return n(`${e.eventPrefix}${t}`, ...
|
|
1253
|
-
}
|
|
1254
|
-
function
|
|
1255
|
-
var
|
|
1256
|
-
if (
|
|
1257
|
-
const t = String(e.eventPrefix),
|
|
1258
|
-
for (const
|
|
1259
|
-
if (Object.prototype.hasOwnProperty.call(
|
|
1260
|
-
if (/^on[^a-z]/.test(
|
|
1261
|
-
const
|
|
1262
|
-
if (!
|
|
1299
|
+
const m = f[e.trackBy];
|
|
1300
|
+
t ? Pt(m) : kt(m), B("checkbox-toggled", t, l, f);
|
|
1301
|
+
}
|
|
1302
|
+
function wn(t) {
|
|
1303
|
+
var l, f;
|
|
1304
|
+
t ? (l = $.value) == null || l.forEach((m) => {
|
|
1305
|
+
Pt(m[e.trackBy]);
|
|
1306
|
+
}) : (f = $.value) == null || f.forEach((m) => {
|
|
1307
|
+
kt(m[e.trackBy]);
|
|
1308
|
+
}), B("checkbox-toggled-all", t);
|
|
1309
|
+
}
|
|
1310
|
+
function Pn(t) {
|
|
1311
|
+
t === "prev" ? rn() : t === "next" ? sn() : un(t);
|
|
1312
|
+
}
|
|
1313
|
+
function Ot() {
|
|
1314
|
+
return ve();
|
|
1315
|
+
}
|
|
1316
|
+
function B(t, ...l) {
|
|
1317
|
+
return n(`${e.eventPrefix}${t}`, ...l);
|
|
1318
|
+
}
|
|
1319
|
+
function da() {
|
|
1320
|
+
var m, E, W, X;
|
|
1321
|
+
if (v.discover((X = (m = Je("default")) == null ? void 0 : m()) != null ? X : K ? (W = (E = s == null ? void 0 : s.proxy) == null ? void 0 : E.$slots) == null ? void 0 : W.default : void 0), e.fields === void 0 && v.reconcile(), K) return {};
|
|
1322
|
+
const t = String(e.eventPrefix), l = [t, `${t}x`.replace(/-(\w)/g, (le, _) => _.toUpperCase()).slice(0, -1)].map((le) => `on${le.charAt(0).toUpperCase()}${le.slice(1)}`), f = {};
|
|
1323
|
+
for (const le in i)
|
|
1324
|
+
if (Object.prototype.hasOwnProperty.call(i, le)) {
|
|
1325
|
+
if (/^on[^a-z]/.test(le)) {
|
|
1326
|
+
const _ = le.replace(/(?:Once|Passive|Capture)+$/, "");
|
|
1327
|
+
if (!le.startsWith("on:") && !/^on[A-Z][a-z0-9]*$/.test(_) && (t === "" || l.some((fa) => _.startsWith(fa)))) continue;
|
|
1263
1328
|
}
|
|
1264
|
-
|
|
1329
|
+
f[le] = i[le];
|
|
1265
1330
|
}
|
|
1266
|
-
return
|
|
1267
|
-
}
|
|
1268
|
-
function
|
|
1269
|
-
return
|
|
1270
|
-
}
|
|
1271
|
-
function
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1331
|
+
return f;
|
|
1332
|
+
}
|
|
1333
|
+
function Tt() {
|
|
1334
|
+
return O.value = e.firstPage, ve();
|
|
1335
|
+
}
|
|
1336
|
+
function kn() {
|
|
1337
|
+
const t = ++x;
|
|
1338
|
+
D(t) && ($.value = null, D(t) && (C.value = null, D(t) && B("data-reset")));
|
|
1339
|
+
}
|
|
1340
|
+
return te(() => e.multiSort, (t) => {
|
|
1341
|
+
!t && w.value.length > 1 && (w.value.splice(1), He(), ve());
|
|
1342
|
+
}), te(() => e.apiUrl, (t, l) => e.reactiveApiUrl && t !== l && Tt()), te(() => e.data, st, { immediate: !0 }), te([$, Pe], () => {
|
|
1343
|
+
de.value && Ve(Ze);
|
|
1344
|
+
}), te(() => e.tableHeight, (t, l) => {
|
|
1345
|
+
(t == null || l != null) && Le();
|
|
1346
|
+
}), te(() => {
|
|
1281
1347
|
var t;
|
|
1282
|
-
return { source: e.fields, fields: (t = e.fields) == null ? void 0 : t.map((
|
|
1283
|
-
}, (t,
|
|
1284
|
-
var
|
|
1285
|
-
if (!
|
|
1286
|
-
var
|
|
1287
|
-
return
|
|
1348
|
+
return { source: e.fields, fields: (t = e.fields) == null ? void 0 : t.map((l) => ({ source: l, fixed: typeof l == "object" && l !== null ? l.fixed : void 0, fixedOrder: typeof l == "object" && l !== null ? l.fixedOrder : void 0 })) };
|
|
1349
|
+
}, (t, l) => {
|
|
1350
|
+
var f;
|
|
1351
|
+
if (!l || t.source !== l.source || !t.fields || t.fields.length !== ((f = l.fields) == null ? void 0 : f.length) || t.fields.some((m, E) => {
|
|
1352
|
+
var W;
|
|
1353
|
+
return m.source !== ((W = l.fields) == null ? void 0 : W[E].source);
|
|
1288
1354
|
})) {
|
|
1289
|
-
|
|
1355
|
+
lt();
|
|
1290
1356
|
return;
|
|
1291
1357
|
}
|
|
1292
|
-
t.fields.forEach((
|
|
1293
|
-
var
|
|
1294
|
-
|
|
1358
|
+
t.fields.forEach((m, E) => {
|
|
1359
|
+
var W, X;
|
|
1360
|
+
m.fixed !== ((W = l.fields) == null ? void 0 : W[E].fixed) && (h.value[E].fixed = m.fixed), m.fixedOrder !== ((X = l.fields) == null ? void 0 : X[E].fixedOrder) && (h.value[E].fixedOrder = m.fixedOrder);
|
|
1295
1361
|
});
|
|
1296
|
-
}, { immediate: !0 }),
|
|
1297
|
-
(t !==
|
|
1298
|
-
}, { flush: "sync" }),
|
|
1299
|
-
|
|
1300
|
-
}, { immediate: !0 }),
|
|
1362
|
+
}, { immediate: !0 }), te(() => e.perPage, Ot), te(() => e.sortOrder, (t, l) => {
|
|
1363
|
+
(t !== l || w.value === t || j) && (j = !1, w.value = Xe(t)), Be();
|
|
1364
|
+
}, { flush: "sync" }), te(() => e.sortOrder.slice(), Ct), te(() => e.httpOptions, (t) => {
|
|
1365
|
+
ne.value = t;
|
|
1366
|
+
}, { immediate: !0 }), he(q({}, K ? {} : { sortOrder: I }), { bodyRevision: c, getSlot: Je, getRootAttrs: da, tableContext: zt, fireEvent: B, bodyWrapper: g, vuetable: d, tableFields: b, tableData: $, rowKeys: p, tablePagination: C, currentPage: O, selectedTo: H, visibleDetailRows: R, lastScrollPosition: N, scrollBarWidth: ge, scrollVisible: M, order: w, optionsHttp: ne, instanceFetch: me, tableCss: Ce, dataIsAvailable: we, useDetailRow: Fe, hasRowIdentifier: Oe, countVisibleFields: Ee, countTableData: Pe, displayEmptyDataRow: je, emptyDataTable: Te, lessThanMinRows: G, blankRows: ue, isApiMode: re, isDataMode: ce, isFixedHeader: de, getScrollBarWidth: Kt, handleScroll: Ue, warn: De, bodyClass: Yn, normalizeFields: lt, newField: ot, normalizeFieldName: rt, setData: st, checkIfRowIdentifierExists: it, makeTitle: xe, getFieldTitle: xt, renderNormalField: Xn, isFieldComponent: ut, isFieldSlot: Jt, titleCase: ct, camelCase: Zt, loadData: ve, fetch: Qt, loadSuccess: dt, updateHeader: Ze, checkScrollbarVisibility: Le, loadFailed: Qe, getAllQueryParams: bt, getSortParam: Xt, getDefaultSortParam: gt, getAppendParams: _t, isSortable: Ye, currentSortOrderPosition: en, fieldIsInSortOrderPosition: vt, orderBy: tn, addSortColumn: ht, removeSortColumn: pt, setSortColumnDirection: yt, multiColumnSort: nn, singleColumnSort: mt, clearSortOrder: an, hasFormatter: wt, callFormatter: ln, getObjectValue: Me, selectId: Pt, unselectId: kt, isSelectedRow: St, clearSelectedValues: on, gotoPreviousPage: rn, gotoNextPage: sn, gotoPage: un, isVisibleDetailRow: Ae, showDetailRow: $t, hideDetailRow: Ft, toggleDetailRow: cn, showField: dn, hideField: fn, toggleField: bn, makePagination: gn, normalizeSortOrder: Be, handleDataMode: _n, callDataManager: ea, isObject: pn, isPromiseObject: yn, onRowClass: ta, onDetailRowClass: na, onRowClicked: aa, onRowDoubleClicked: la, onDetailRowClick: oa, onCellClicked: ra, onCellDoubleClicked: sa, onCellRightClicked: ia, onMouseOver: ua, onFieldEvent: ca, onHeaderEvent: mn, onCheckboxToggled: Cn, onCheckboxToggledAll: wn, changePage: Pn, reload: Ot, refresh: Tt, resetData: kn, VuetableColGroup: Hn });
|
|
1301
1367
|
}
|
|
1302
|
-
}),
|
|
1368
|
+
}), cl = {
|
|
1303
1369
|
key: 0,
|
|
1304
1370
|
class: "vuetable-head-wrapper"
|
|
1305
|
-
},
|
|
1371
|
+
}, dl = {
|
|
1306
1372
|
key: 1,
|
|
1307
1373
|
class: "vuetable-header-groups"
|
|
1308
|
-
},
|
|
1374
|
+
}, fl = ["colspan"], bl = { key: 0 }, gl = {
|
|
1309
1375
|
key: 1,
|
|
1310
1376
|
class: "vuetable-header-groups"
|
|
1311
|
-
},
|
|
1312
|
-
function
|
|
1313
|
-
const c =
|
|
1314
|
-
return
|
|
1377
|
+
}, vl = ["colspan"], hl = { class: "vuetable-body" }, pl = ["item-index", "onClick", "onDblclick", "onMouseover"], yl = ["data-vuetable-column"], ml = ["data-vuetable-column", "onClick", "onDblclick", "onContextmenu"], Cl = ["data-vuetable-column", "innerHTML", "onClick", "onDblclick", "onContextmenu"], wl = ["onClick"], Pl = ["colspan"], kl = { key: 0 }, Sl = ["colspan", "innerHTML"], $l = ["data-vuetable-column"];
|
|
1378
|
+
function Fl(e, n, a, i, s, g) {
|
|
1379
|
+
const c = Se("vuetable-col-group"), u = Se("slot-outlet"), o = Se("vuetable-col-gutter"), d = Se("vuetable-detail-host"), h = Se("render-boundary");
|
|
1380
|
+
return y(), P("div", $e(e.getRootAttrs(), {
|
|
1315
1381
|
class: [e.tableCss.tableWrapper, { "vuetable-fixed-columns": e.tableContext.fixedColumnsEnabled }]
|
|
1316
1382
|
}), [
|
|
1317
|
-
e.isFixedHeader ? (
|
|
1318
|
-
|
|
1319
|
-
class:
|
|
1383
|
+
e.isFixedHeader ? (y(), P("div", cl, [
|
|
1384
|
+
z("table", {
|
|
1385
|
+
class: T(["vuetable", "fixed-header", e.tableCss.tableClass, e.tableCss.tableHeaderClass])
|
|
1320
1386
|
}, [
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1387
|
+
Y(c, { "is-header": "" }),
|
|
1388
|
+
z("thead", null, [
|
|
1389
|
+
Y(u, {
|
|
1324
1390
|
content: e.getSlot("beforeHeader"),
|
|
1325
1391
|
scope: e.tableContext.tableLayout
|
|
1326
1392
|
}, null, 8, ["content", "scope"]),
|
|
1327
|
-
|
|
1328
|
-
e.tableContext.tableLayout.groups.length && e.getSlot("tableHeaderGroups") ? (
|
|
1393
|
+
$a(e.$slots, "tableHeader", Fa(Oa(e.tableContext.tableLayout)), () => [
|
|
1394
|
+
e.tableContext.tableLayout.groups.length && e.getSlot("tableHeaderGroups") ? (y(), fe(u, {
|
|
1329
1395
|
key: 0,
|
|
1330
1396
|
content: e.getSlot("tableHeaderGroups"),
|
|
1331
1397
|
scope: e.tableContext.tableLayout
|
|
1332
|
-
}, null, 8, ["content", "scope"])) : e.tableContext.tableLayout.groups.length ? (
|
|
1333
|
-
(
|
|
1398
|
+
}, null, 8, ["content", "scope"])) : e.tableContext.tableLayout.groups.length ? (y(), P("tr", dl, [
|
|
1399
|
+
(y(!0), P(U, null, se(e.tableContext.tableLayout.headerGroups, (r) => (y(), P("th", {
|
|
1334
1400
|
key: r.key,
|
|
1335
|
-
style:
|
|
1401
|
+
style: oe(e.tableContext.tableLayout.getSpanProps(r.fields).style),
|
|
1336
1402
|
colspan: r.colspan,
|
|
1337
|
-
class:
|
|
1403
|
+
class: T([e.tableContext.tableLayout.getSpanProps(r.fields).class, { "vuetable-group-start": r.isGroupStart, "vuetable-group-end": r.isGroupEnd }]),
|
|
1338
1404
|
scope: "colgroup"
|
|
1339
|
-
},
|
|
1340
|
-
e.scrollVisible ? (
|
|
1341
|
-
])) :
|
|
1342
|
-
(
|
|
1343
|
-
key:
|
|
1344
|
-
index:
|
|
1405
|
+
}, tt(r.value), 15, fl))), 128)),
|
|
1406
|
+
e.scrollVisible ? (y(), fe(o, { key: 0 })) : ee("", !0)
|
|
1407
|
+
])) : ee("", !0),
|
|
1408
|
+
(y(!0), P(U, null, se(e.headerRows, (r, b) => (y(), fe(Ge(r), {
|
|
1409
|
+
key: b,
|
|
1410
|
+
index: b,
|
|
1345
1411
|
vuetable: e.tableContext,
|
|
1346
1412
|
"onVuetable:headerEvent": e.onHeaderEvent
|
|
1347
1413
|
}, null, 40, ["index", "vuetable", "onVuetable:headerEvent"]))), 128))
|
|
1348
1414
|
]),
|
|
1349
|
-
|
|
1415
|
+
Y(u, {
|
|
1350
1416
|
content: e.getSlot("afterHeader"),
|
|
1351
1417
|
scope: e.tableContext.tableLayout
|
|
1352
1418
|
}, null, 8, ["content", "scope"])
|
|
1353
1419
|
])
|
|
1354
1420
|
], 2)
|
|
1355
|
-
])) :
|
|
1356
|
-
|
|
1421
|
+
])) : ee("", !0),
|
|
1422
|
+
Y(h, {
|
|
1357
1423
|
revision: e.bodyRevision,
|
|
1358
1424
|
"on-rendered": e.tableContext.fixedColumnsEnabled ? e.tableContext.scheduleFixedColumns : void 0
|
|
1359
1425
|
}, {
|
|
1360
|
-
default:
|
|
1361
|
-
|
|
1426
|
+
default: qt(() => [
|
|
1427
|
+
z("div", {
|
|
1362
1428
|
ref: "bodyWrapper",
|
|
1363
|
-
class:
|
|
1364
|
-
style:
|
|
1429
|
+
class: T([{ "fixed-header": e.isFixedHeader }, "vuetable-body-wrapper"]),
|
|
1430
|
+
style: oe({ height: e.tableHeight })
|
|
1365
1431
|
}, [
|
|
1366
|
-
|
|
1367
|
-
class:
|
|
1432
|
+
z("table", {
|
|
1433
|
+
class: T(["vuetable", e.isFixedHeader ? "fixed-header" : "", e.tableCss.tableClass, e.tableCss.tableBodyClass])
|
|
1368
1434
|
}, [
|
|
1369
|
-
|
|
1370
|
-
e.isFixedHeader ?
|
|
1371
|
-
|
|
1435
|
+
Y(c),
|
|
1436
|
+
e.isFixedHeader ? ee("", !0) : (y(), P("thead", bl, [
|
|
1437
|
+
Y(u, {
|
|
1372
1438
|
content: e.getSlot("beforeHeader"),
|
|
1373
1439
|
scope: e.tableContext.tableLayout
|
|
1374
1440
|
}, null, 8, ["content", "scope"]),
|
|
1375
|
-
|
|
1441
|
+
Y(u, {
|
|
1376
1442
|
content: e.getSlot("tableHeader"),
|
|
1377
1443
|
scope: e.tableContext.tableLayout
|
|
1378
1444
|
}, {
|
|
1379
|
-
default:
|
|
1380
|
-
e.tableContext.tableLayout.groups.length && e.getSlot("tableHeaderGroups") ? (
|
|
1445
|
+
default: qt(() => [
|
|
1446
|
+
e.tableContext.tableLayout.groups.length && e.getSlot("tableHeaderGroups") ? (y(), fe(u, {
|
|
1381
1447
|
key: 0,
|
|
1382
1448
|
content: e.getSlot("tableHeaderGroups"),
|
|
1383
1449
|
scope: e.tableContext.tableLayout
|
|
1384
|
-
}, null, 8, ["content", "scope"])) : e.tableContext.tableLayout.groups.length ? (
|
|
1385
|
-
(
|
|
1450
|
+
}, null, 8, ["content", "scope"])) : e.tableContext.tableLayout.groups.length ? (y(), P("tr", gl, [
|
|
1451
|
+
(y(!0), P(U, null, se(e.tableContext.tableLayout.headerGroups, (r) => (y(), P("th", {
|
|
1386
1452
|
key: r.key,
|
|
1387
|
-
style:
|
|
1453
|
+
style: oe(e.tableContext.tableLayout.getSpanProps(r.fields).style),
|
|
1388
1454
|
colspan: r.colspan,
|
|
1389
|
-
class:
|
|
1455
|
+
class: T([e.tableContext.tableLayout.getSpanProps(r.fields).class, { "vuetable-group-start": r.isGroupStart, "vuetable-group-end": r.isGroupEnd }]),
|
|
1390
1456
|
scope: "colgroup"
|
|
1391
|
-
},
|
|
1392
|
-
e.scrollVisible ? (
|
|
1393
|
-
])) :
|
|
1394
|
-
(
|
|
1395
|
-
key:
|
|
1396
|
-
index:
|
|
1457
|
+
}, tt(r.value), 15, vl))), 128)),
|
|
1458
|
+
e.scrollVisible ? (y(), fe(o, { key: 0 })) : ee("", !0)
|
|
1459
|
+
])) : ee("", !0),
|
|
1460
|
+
(y(!0), P(U, null, se(e.headerRows, (r, b) => (y(), fe(Ge(r), {
|
|
1461
|
+
key: b,
|
|
1462
|
+
index: b,
|
|
1397
1463
|
vuetable: e.tableContext,
|
|
1398
1464
|
"onVuetable:headerEvent": e.onHeaderEvent
|
|
1399
1465
|
}, null, 40, ["index", "vuetable", "onVuetable:headerEvent"]))), 128))
|
|
1400
1466
|
]),
|
|
1401
1467
|
_: 1
|
|
1402
1468
|
}, 8, ["content", "scope"]),
|
|
1403
|
-
|
|
1469
|
+
Y(u, {
|
|
1404
1470
|
content: e.getSlot("afterHeader"),
|
|
1405
1471
|
scope: e.tableContext.tableLayout
|
|
1406
1472
|
}, null, 8, ["content", "scope"])
|
|
1407
1473
|
])),
|
|
1408
|
-
|
|
1409
|
-
|
|
1474
|
+
z("tfoot", null, [
|
|
1475
|
+
Y(u, {
|
|
1410
1476
|
content: e.getSlot("beforeFooter"),
|
|
1411
1477
|
scope: e.tableContext.tableLayout
|
|
1412
1478
|
}, null, 8, ["content", "scope"]),
|
|
1413
|
-
|
|
1479
|
+
Y(u, {
|
|
1414
1480
|
content: e.getSlot("tableFooter"),
|
|
1415
1481
|
scope: e.tableContext.tableLayout
|
|
1416
1482
|
}, null, 8, ["content", "scope"]),
|
|
1417
|
-
|
|
1483
|
+
Y(u, {
|
|
1418
1484
|
content: e.getSlot("afterFooter"),
|
|
1419
1485
|
scope: e.tableContext.tableLayout
|
|
1420
1486
|
}, null, 8, ["content", "scope"])
|
|
1421
1487
|
]),
|
|
1422
|
-
|
|
1423
|
-
(
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1488
|
+
z("tbody", hl, [
|
|
1489
|
+
(y(!0), P(U, null, se(e.tableData, (r, b) => (y(), P(U, {
|
|
1490
|
+
key: e.rowKeys[b]
|
|
1491
|
+
}, [
|
|
1492
|
+
z("tr", {
|
|
1493
|
+
"item-index": b,
|
|
1494
|
+
class: T(e.onRowClass(r, b)),
|
|
1495
|
+
onClick: (v) => e.onRowClicked(r, b, v),
|
|
1496
|
+
onDblclick: (v) => e.onRowDoubleClicked(r, b, v),
|
|
1497
|
+
onMouseover: (v) => e.onMouseOver(r, b, v)
|
|
1430
1498
|
}, [
|
|
1431
|
-
(
|
|
1432
|
-
key: e.tableContext.getColumnKey(
|
|
1499
|
+
(y(!0), P(U, null, se(e.tableFields, (v) => (y(), P(U, {
|
|
1500
|
+
key: e.tableContext.getColumnKey(v)
|
|
1433
1501
|
}, [
|
|
1434
|
-
|
|
1435
|
-
e.isFieldComponent(
|
|
1436
|
-
key: e.tableContext.getColumnKey(
|
|
1502
|
+
v.visible ? (y(), P(U, { key: 0 }, [
|
|
1503
|
+
e.isFieldComponent(v.name) ? (y(), fe(Ge(v.name), {
|
|
1504
|
+
key: e.tableContext.getColumnKey(v),
|
|
1437
1505
|
"row-data": r,
|
|
1438
|
-
"row-index":
|
|
1439
|
-
"row-field":
|
|
1506
|
+
"row-index": b,
|
|
1507
|
+
"row-field": v,
|
|
1440
1508
|
vuetable: e.tableContext,
|
|
1441
|
-
"data-vuetable-column": e.tableContext.getCellProps(
|
|
1442
|
-
class:
|
|
1443
|
-
style:
|
|
1509
|
+
"data-vuetable-column": e.tableContext.getCellProps(v)["data-vuetable-column"],
|
|
1510
|
+
class: T(e.bodyClass("vuetable-component", v)),
|
|
1511
|
+
style: oe([{ width: v.width || void 0 }, e.tableContext.getCellProps(v).style]),
|
|
1444
1512
|
"onVuetable:fieldEvent": e.onFieldEvent
|
|
1445
|
-
}, null, 40, ["row-data", "row-index", "row-field", "vuetable", "data-vuetable-column", "class", "style", "onVuetable:fieldEvent"])) : e.isFieldSlot(
|
|
1446
|
-
key: e.tableContext.getColumnKey(
|
|
1447
|
-
"data-vuetable-column": e.tableContext.getCellProps(
|
|
1448
|
-
class:
|
|
1449
|
-
style:
|
|
1513
|
+
}, null, 40, ["row-data", "row-index", "row-field", "vuetable", "data-vuetable-column", "class", "style", "onVuetable:fieldEvent"])) : e.isFieldSlot(v.name) ? (y(), P("td", {
|
|
1514
|
+
key: e.tableContext.getColumnKey(v),
|
|
1515
|
+
"data-vuetable-column": e.tableContext.getCellProps(v)["data-vuetable-column"],
|
|
1516
|
+
class: T(e.bodyClass("vuetable-slot", v)),
|
|
1517
|
+
style: oe([{ width: v.width || void 0 }, e.tableContext.getCellProps(v).style])
|
|
1450
1518
|
}, [
|
|
1451
|
-
|
|
1452
|
-
content: e.getSlot(
|
|
1453
|
-
scope: { rowData: r, rowIndex:
|
|
1519
|
+
Y(u, {
|
|
1520
|
+
content: e.getSlot(v.name),
|
|
1521
|
+
scope: { rowData: r, rowIndex: b, rowField: v }
|
|
1454
1522
|
}, null, 8, ["content", "scope"])
|
|
1455
|
-
], 14,
|
|
1456
|
-
key: e.tableContext.getColumnKey(
|
|
1457
|
-
"data-vuetable-column": e.tableContext.getCellProps(
|
|
1458
|
-
class:
|
|
1459
|
-
style:
|
|
1460
|
-
onClick: (
|
|
1461
|
-
onDblclick: (
|
|
1462
|
-
onContextmenu: (
|
|
1523
|
+
], 14, yl)) : e.tableContext.getColumnSlot(v.name) ? (y(), P("td", {
|
|
1524
|
+
key: e.tableContext.getColumnKey(v),
|
|
1525
|
+
"data-vuetable-column": e.tableContext.getCellProps(v)["data-vuetable-column"],
|
|
1526
|
+
class: T(e.bodyClass("vuetable-td-" + v.name, v)),
|
|
1527
|
+
style: oe([{ width: v.width || void 0 }, e.tableContext.getCellProps(v).style]),
|
|
1528
|
+
onClick: (F) => e.onCellClicked(r, b, v, F),
|
|
1529
|
+
onDblclick: (F) => e.onCellDoubleClicked(r, b, v, F),
|
|
1530
|
+
onContextmenu: (F) => e.onCellRightClicked(r, b, v, F)
|
|
1463
1531
|
}, [
|
|
1464
|
-
|
|
1465
|
-
content: e.tableContext.getColumnSlot(
|
|
1466
|
-
scope: { row: r, index:
|
|
1532
|
+
Y(u, {
|
|
1533
|
+
content: e.tableContext.getColumnSlot(v.name),
|
|
1534
|
+
scope: { row: r, index: b, column: v }
|
|
1467
1535
|
}, null, 8, ["content", "scope"])
|
|
1468
|
-
], 46,
|
|
1469
|
-
key: e.tableContext.getColumnKey(
|
|
1470
|
-
"data-vuetable-column": e.tableContext.getCellProps(
|
|
1471
|
-
class:
|
|
1472
|
-
style:
|
|
1473
|
-
innerHTML: e.renderNormalField(
|
|
1474
|
-
onClick: (
|
|
1475
|
-
onDblclick: (
|
|
1476
|
-
onContextmenu: (
|
|
1477
|
-
}, null, 46,
|
|
1478
|
-
], 64)) :
|
|
1536
|
+
], 46, ml)) : (y(), P("td", {
|
|
1537
|
+
key: e.tableContext.getColumnKey(v),
|
|
1538
|
+
"data-vuetable-column": e.tableContext.getCellProps(v)["data-vuetable-column"],
|
|
1539
|
+
class: T(e.bodyClass("vuetable-td-" + v.name, v)),
|
|
1540
|
+
style: oe([{ width: v.width || void 0 }, e.tableContext.getCellProps(v).style]),
|
|
1541
|
+
innerHTML: e.renderNormalField(v, r),
|
|
1542
|
+
onClick: (F) => e.onCellClicked(r, b, v, F),
|
|
1543
|
+
onDblclick: (F) => e.onCellDoubleClicked(r, b, v, F),
|
|
1544
|
+
onContextmenu: (F) => e.onCellRightClicked(r, b, v, F)
|
|
1545
|
+
}, null, 46, Cl))
|
|
1546
|
+
], 64)) : ee("", !0)
|
|
1479
1547
|
], 64))), 128))
|
|
1480
|
-
], 42,
|
|
1481
|
-
e.useDetailRow ? (
|
|
1482
|
-
key:
|
|
1548
|
+
], 42, pl),
|
|
1549
|
+
e.useDetailRow ? (y(), fe(Ta, {
|
|
1550
|
+
key: "detail:" + e.rowKeys[b],
|
|
1483
1551
|
name: e.detailRowTransition
|
|
1484
1552
|
}, {
|
|
1485
|
-
default:
|
|
1486
|
-
e.isVisibleDetailRow(r[e.trackBy]) ? (
|
|
1487
|
-
key:
|
|
1488
|
-
class:
|
|
1489
|
-
onClick: (
|
|
1553
|
+
default: qt(() => [
|
|
1554
|
+
e.isVisibleDetailRow(r[e.trackBy]) ? (y(), P("tr", {
|
|
1555
|
+
key: "detail:" + e.rowKeys[b],
|
|
1556
|
+
class: T(e.onDetailRowClass(r, b)),
|
|
1557
|
+
onClick: (v) => e.onDetailRowClick(r, b, v)
|
|
1490
1558
|
}, [
|
|
1491
|
-
|
|
1492
|
-
|
|
1559
|
+
z("td", { colspan: e.countVisibleFields }, [
|
|
1560
|
+
Y(d, {
|
|
1493
1561
|
"detail-component": e.detailRowComponent,
|
|
1494
1562
|
"row-data": r,
|
|
1495
|
-
"row-index":
|
|
1563
|
+
"row-index": b,
|
|
1496
1564
|
options: e.detailRowOptions
|
|
1497
1565
|
}, null, 8, ["detail-component", "row-data", "row-index", "options"])
|
|
1498
|
-
], 8,
|
|
1499
|
-
], 10,
|
|
1566
|
+
], 8, Pl)
|
|
1567
|
+
], 10, wl)) : ee("", !0)
|
|
1500
1568
|
]),
|
|
1501
1569
|
_: 2
|
|
1502
|
-
}, 1032, ["name"])) :
|
|
1570
|
+
}, 1032, ["name"])) : ee("", !0)
|
|
1503
1571
|
], 64))), 128)),
|
|
1504
|
-
e.displayEmptyDataRow ? (
|
|
1505
|
-
|
|
1572
|
+
e.displayEmptyDataRow ? (y(), P("tr", kl, [
|
|
1573
|
+
z("td", {
|
|
1506
1574
|
colspan: e.countVisibleFields,
|
|
1507
1575
|
class: "vuetable-empty-result",
|
|
1508
1576
|
innerHTML: e.noDataTemplate
|
|
1509
|
-
}, null, 8,
|
|
1510
|
-
])) :
|
|
1511
|
-
e.lessThanMinRows ? (
|
|
1577
|
+
}, null, 8, Sl)
|
|
1578
|
+
])) : ee("", !0),
|
|
1579
|
+
e.lessThanMinRows ? (y(!0), P(U, { key: 1 }, se(e.blankRows, (r) => (y(), P("tr", {
|
|
1512
1580
|
key: r,
|
|
1513
1581
|
class: "blank-row"
|
|
1514
1582
|
}, [
|
|
1515
|
-
(
|
|
1516
|
-
|
|
1517
|
-
key: e.tableContext.getColumnKey(
|
|
1518
|
-
"data-vuetable-column": e.tableContext.getCellProps(
|
|
1519
|
-
class:
|
|
1520
|
-
style:
|
|
1521
|
-
}, " ", 14,
|
|
1583
|
+
(y(!0), P(U, null, se(e.tableFields, (b) => (y(), P(U, null, [
|
|
1584
|
+
b.visible ? (y(), P("td", {
|
|
1585
|
+
key: e.tableContext.getColumnKey(b),
|
|
1586
|
+
"data-vuetable-column": e.tableContext.getCellProps(b)["data-vuetable-column"],
|
|
1587
|
+
class: T([e.tableContext.groupClass(b), e.tableContext.getCellProps(b).class]),
|
|
1588
|
+
style: oe(e.tableContext.getCellProps(b).style)
|
|
1589
|
+
}, " ", 14, $l)) : ee("", !0)
|
|
1522
1590
|
], 64))), 256))
|
|
1523
|
-
]))), 128)) :
|
|
1591
|
+
]))), 128)) : ee("", !0)
|
|
1524
1592
|
])
|
|
1525
1593
|
], 2)
|
|
1526
1594
|
], 6)
|
|
@@ -1529,7 +1597,7 @@ function hl(e, n, a, u, s, b) {
|
|
|
1529
1597
|
}, 8, ["revision", "on-rendered"])
|
|
1530
1598
|
], 16);
|
|
1531
1599
|
}
|
|
1532
|
-
const
|
|
1600
|
+
const et = /* @__PURE__ */ be(ul, [["render", Fl]]), Ol = Object.assign(Q({
|
|
1533
1601
|
name: "VuetableColumn",
|
|
1534
1602
|
inheritAttrs: !1,
|
|
1535
1603
|
props: {
|
|
@@ -1547,56 +1615,56 @@ const Ye = /* @__PURE__ */ de(_a, [["render", hl]]), pl = Object.assign(J({
|
|
|
1547
1615
|
},
|
|
1548
1616
|
render: () => null
|
|
1549
1617
|
}), { __vuetableColumn: !0 });
|
|
1550
|
-
function
|
|
1551
|
-
return typeof e == "function" ? e() :
|
|
1618
|
+
function Z(e) {
|
|
1619
|
+
return typeof e == "function" ? e() : Sa(e);
|
|
1552
1620
|
}
|
|
1553
|
-
function
|
|
1554
|
-
const a = e === void 0 ||
|
|
1621
|
+
function Kn(e, n) {
|
|
1622
|
+
const a = e === void 0 || Vn(e) || typeof e == "function" || typeof e == "number" ? { onEachSide: e, firstPage: n } : e, i = () => Z(a.onEachSide === void 0 ? 2 : a.onEachSide), s = () => Z(a.firstPage === void 0 ? 1 : a.firstPage), g = A(null), c = A({}), u = A("vuetable-pagination:"), o = k(() => {
|
|
1555
1623
|
var R, N;
|
|
1556
|
-
return (N = (R =
|
|
1557
|
-
}), d =
|
|
1624
|
+
return (N = (R = g.value) == null ? void 0 : R.last_page) != null ? N : 0;
|
|
1625
|
+
}), d = k(() => {
|
|
1558
1626
|
var R;
|
|
1559
|
-
return ((R =
|
|
1560
|
-
}),
|
|
1627
|
+
return ((R = g.value) == null ? void 0 : R.current_page) === Z(s);
|
|
1628
|
+
}), h = k(() => {
|
|
1561
1629
|
var R;
|
|
1562
|
-
return ((R =
|
|
1563
|
-
}), r =
|
|
1564
|
-
function
|
|
1565
|
-
c.value = q(q({}, ye.pagination),
|
|
1630
|
+
return ((R = g.value) == null ? void 0 : R.current_page) === o.value;
|
|
1631
|
+
}), r = k(() => Z(i) * 2 + 1), b = k(() => g.value ? g.value.last_page - Z(s) + 1 : 0), v = k(() => b.value < Z(i) * 2 + 4), F = k(() => !g.value || g.value.current_page <= Z(i) ? 1 : g.value.current_page >= b.value - Z(i) ? b.value - Z(i) * 2 : g.value.current_page - Z(i));
|
|
1632
|
+
function $() {
|
|
1633
|
+
c.value = q(q({}, ye.pagination), Z(a.css === void 0 ? {} : a.css));
|
|
1566
1634
|
}
|
|
1567
|
-
function
|
|
1635
|
+
function p(R) {
|
|
1568
1636
|
var N;
|
|
1569
1637
|
(N = a.emit) == null || N.call(a, "vuetable-pagination:change-page", R);
|
|
1570
1638
|
}
|
|
1571
|
-
function
|
|
1572
|
-
|
|
1639
|
+
function C(R) {
|
|
1640
|
+
g.value = R;
|
|
1573
1641
|
}
|
|
1574
|
-
function
|
|
1575
|
-
|
|
1642
|
+
function O() {
|
|
1643
|
+
g.value = null;
|
|
1576
1644
|
}
|
|
1577
|
-
function
|
|
1645
|
+
function H(R) {
|
|
1578
1646
|
var N;
|
|
1579
|
-
return R === ((N =
|
|
1647
|
+
return R === ((N = g.value) == null ? void 0 : N.current_page);
|
|
1580
1648
|
}
|
|
1581
|
-
return
|
|
1582
|
-
tablePagination:
|
|
1649
|
+
return $(), {
|
|
1650
|
+
tablePagination: g,
|
|
1583
1651
|
customCss: c,
|
|
1584
|
-
eventPrefix:
|
|
1585
|
-
lastPage:
|
|
1652
|
+
eventPrefix: u,
|
|
1653
|
+
lastPage: o,
|
|
1586
1654
|
isOnFirstPage: d,
|
|
1587
|
-
isOnLastPage:
|
|
1588
|
-
notEnoughPages:
|
|
1655
|
+
isOnLastPage: h,
|
|
1656
|
+
notEnoughPages: v,
|
|
1589
1657
|
windowSize: r,
|
|
1590
|
-
windowStart:
|
|
1591
|
-
totalPage:
|
|
1592
|
-
setPaginationData:
|
|
1593
|
-
resetData:
|
|
1594
|
-
isCurrentPage:
|
|
1595
|
-
mergeCss:
|
|
1596
|
-
loadPage:
|
|
1658
|
+
windowStart: F,
|
|
1659
|
+
totalPage: b,
|
|
1660
|
+
setPaginationData: C,
|
|
1661
|
+
resetData: O,
|
|
1662
|
+
isCurrentPage: H,
|
|
1663
|
+
mergeCss: $,
|
|
1664
|
+
loadPage: p
|
|
1597
1665
|
};
|
|
1598
1666
|
}
|
|
1599
|
-
const
|
|
1667
|
+
const Tl = Q({
|
|
1600
1668
|
props: {
|
|
1601
1669
|
css: { type: Object, required: !1, default: () => ({}) },
|
|
1602
1670
|
onEachSide: { type: Number, required: !1, default: 2 },
|
|
@@ -1604,81 +1672,81 @@ const yl = J({
|
|
|
1604
1672
|
},
|
|
1605
1673
|
emits: ["vuetable-pagination:change-page"],
|
|
1606
1674
|
setup(e, { emit: n }) {
|
|
1607
|
-
const a =
|
|
1608
|
-
tablePagination:
|
|
1675
|
+
const a = Lt(q(q({}, ye.pagination), e.css)), {
|
|
1676
|
+
tablePagination: i,
|
|
1609
1677
|
totalPage: s,
|
|
1610
|
-
lastPage:
|
|
1678
|
+
lastPage: g,
|
|
1611
1679
|
isOnFirstPage: c,
|
|
1612
|
-
isOnLastPage:
|
|
1613
|
-
notEnoughPages:
|
|
1680
|
+
isOnLastPage: u,
|
|
1681
|
+
notEnoughPages: o,
|
|
1614
1682
|
windowSize: d,
|
|
1615
|
-
windowStart:
|
|
1683
|
+
windowStart: h,
|
|
1616
1684
|
isCurrentPage: r,
|
|
1617
|
-
setPaginationData:
|
|
1618
|
-
resetData:
|
|
1619
|
-
} =
|
|
1620
|
-
function $
|
|
1621
|
-
n("vuetable-pagination:change-page",
|
|
1685
|
+
setPaginationData: b,
|
|
1686
|
+
resetData: v
|
|
1687
|
+
} = Kn(() => e.onEachSide, () => e.firstPage);
|
|
1688
|
+
function F($) {
|
|
1689
|
+
n("vuetable-pagination:change-page", $);
|
|
1622
1690
|
}
|
|
1623
|
-
return { tableCss: a, tablePagination:
|
|
1691
|
+
return { tableCss: a, tablePagination: i, totalPage: s, lastPage: g, isOnFirstPage: c, isOnLastPage: u, notEnoughPages: o, windowSize: d, windowStart: h, isCurrentPage: r, setPaginationData: b, resetData: v, loadPage: F };
|
|
1624
1692
|
}
|
|
1625
|
-
}),
|
|
1626
|
-
function
|
|
1627
|
-
return
|
|
1628
|
-
class:
|
|
1693
|
+
}), ql = { key: 1 }, Rl = { key: 1 }, Dl = ["innerHTML", "onClick"], Hl = ["innerHTML", "onClick"], Ml = { key: 1 }, El = { key: 1 };
|
|
1694
|
+
function jl(e, n, a, i, s, g) {
|
|
1695
|
+
return qa((y(), P("div", {
|
|
1696
|
+
class: T(e.tableCss.wrapperClass)
|
|
1629
1697
|
}, [
|
|
1630
|
-
|
|
1631
|
-
class:
|
|
1698
|
+
z("a", {
|
|
1699
|
+
class: T(["btn-nav", e.tableCss.linkClass, e.isOnFirstPage ? e.tableCss.disabledClass : ""]),
|
|
1632
1700
|
onClick: n[0] || (n[0] = (c) => e.loadPage(e.firstPage))
|
|
1633
1701
|
}, [
|
|
1634
|
-
e.tableCss.icons.first != "" ? (
|
|
1702
|
+
e.tableCss.icons.first != "" ? (y(), P("i", {
|
|
1635
1703
|
key: 0,
|
|
1636
|
-
class:
|
|
1637
|
-
}, null, 2)) : (
|
|
1704
|
+
class: T([e.tableCss.icons.first])
|
|
1705
|
+
}, null, 2)) : (y(), P("span", ql, " « "))
|
|
1638
1706
|
], 2),
|
|
1639
|
-
|
|
1640
|
-
class:
|
|
1707
|
+
z("a", {
|
|
1708
|
+
class: T(["btn-nav", e.tableCss.linkClass, e.isOnFirstPage ? e.tableCss.disabledClass : ""]),
|
|
1641
1709
|
onClick: n[1] || (n[1] = (c) => e.loadPage("prev"))
|
|
1642
1710
|
}, [
|
|
1643
|
-
e.tableCss.icons.next != "" ? (
|
|
1711
|
+
e.tableCss.icons.next != "" ? (y(), P("i", {
|
|
1644
1712
|
key: 0,
|
|
1645
|
-
class:
|
|
1646
|
-
}, null, 2)) : (
|
|
1713
|
+
class: T([e.tableCss.icons.prev])
|
|
1714
|
+
}, null, 2)) : (y(), P("span", Rl, " ‹ "))
|
|
1647
1715
|
], 2),
|
|
1648
|
-
e.notEnoughPages ? (
|
|
1649
|
-
key:
|
|
1650
|
-
class:
|
|
1716
|
+
e.notEnoughPages ? (y(!0), P(U, { key: 0 }, se(e.totalPage, (c, u) => (y(), P("a", {
|
|
1717
|
+
key: u,
|
|
1718
|
+
class: T([e.tableCss.pageClass, e.isCurrentPage(u + e.firstPage) ? e.tableCss.activeClass : ""]),
|
|
1651
1719
|
innerHTML: c,
|
|
1652
|
-
onClick: (
|
|
1653
|
-
}, null, 10,
|
|
1654
|
-
key:
|
|
1655
|
-
class:
|
|
1720
|
+
onClick: (o) => e.loadPage(u + e.firstPage)
|
|
1721
|
+
}, null, 10, Dl))), 128)) : (y(!0), P(U, { key: 1 }, se(e.windowSize, (c, u) => (y(), P("a", {
|
|
1722
|
+
key: u,
|
|
1723
|
+
class: T([e.tableCss.pageClass, e.isCurrentPage(e.windowStart + u + e.firstPage - 1) ? e.tableCss.activeClass : ""]),
|
|
1656
1724
|
innerHTML: e.windowStart + c - 1,
|
|
1657
|
-
onClick: (
|
|
1658
|
-
}, null, 10,
|
|
1659
|
-
|
|
1660
|
-
class:
|
|
1725
|
+
onClick: (o) => e.loadPage(e.windowStart + u + e.firstPage - 1)
|
|
1726
|
+
}, null, 10, Hl))), 128)),
|
|
1727
|
+
z("a", {
|
|
1728
|
+
class: T(["btn-nav", e.tableCss.linkClass, e.isOnLastPage ? e.tableCss.disabledClass : ""]),
|
|
1661
1729
|
onClick: n[2] || (n[2] = (c) => e.loadPage("next"))
|
|
1662
1730
|
}, [
|
|
1663
|
-
e.tableCss.icons.next != "" ? (
|
|
1731
|
+
e.tableCss.icons.next != "" ? (y(), P("i", {
|
|
1664
1732
|
key: 0,
|
|
1665
|
-
class:
|
|
1666
|
-
}, null, 2)) : (
|
|
1733
|
+
class: T([e.tableCss.icons.next])
|
|
1734
|
+
}, null, 2)) : (y(), P("span", Ml, " › "))
|
|
1667
1735
|
], 2),
|
|
1668
|
-
|
|
1669
|
-
class:
|
|
1736
|
+
z("a", {
|
|
1737
|
+
class: T(["btn-nav", e.tableCss.linkClass, e.isOnLastPage ? e.tableCss.disabledClass : ""]),
|
|
1670
1738
|
onClick: n[3] || (n[3] = (c) => e.loadPage(e.lastPage))
|
|
1671
1739
|
}, [
|
|
1672
|
-
e.tableCss.icons.last != "" ? (
|
|
1740
|
+
e.tableCss.icons.last != "" ? (y(), P("i", {
|
|
1673
1741
|
key: 0,
|
|
1674
|
-
class:
|
|
1675
|
-
}, null, 2)) : (
|
|
1742
|
+
class: T([e.tableCss.icons.last])
|
|
1743
|
+
}, null, 2)) : (y(), P("span", El, " » "))
|
|
1676
1744
|
], 2)
|
|
1677
1745
|
], 2)), [
|
|
1678
|
-
[
|
|
1746
|
+
[Ra, e.tablePagination && e.lastPage > e.firstPage]
|
|
1679
1747
|
]);
|
|
1680
1748
|
}
|
|
1681
|
-
const
|
|
1749
|
+
const Il = /* @__PURE__ */ be(Tl, [["render", jl]]), Ll = Q({
|
|
1682
1750
|
props: {
|
|
1683
1751
|
css: { type: Object, required: !1, default: () => ({}) },
|
|
1684
1752
|
pageText: { type: String, required: !1, default: "Page" },
|
|
@@ -1687,90 +1755,90 @@ const Fl = /* @__PURE__ */ de(yl, [["render", $l]]), Tl = J({
|
|
|
1687
1755
|
},
|
|
1688
1756
|
emits: ["vuetable-pagination:change-page"],
|
|
1689
1757
|
setup(e, { emit: n }) {
|
|
1690
|
-
const a =
|
|
1758
|
+
const a = Da(), i = Lt(q(q({}, ye.pagination), e.css)), {
|
|
1691
1759
|
tablePagination: s,
|
|
1692
|
-
totalPage:
|
|
1760
|
+
totalPage: g,
|
|
1693
1761
|
lastPage: c,
|
|
1694
|
-
isOnFirstPage:
|
|
1695
|
-
isOnLastPage:
|
|
1762
|
+
isOnFirstPage: u,
|
|
1763
|
+
isOnLastPage: o,
|
|
1696
1764
|
notEnoughPages: d,
|
|
1697
|
-
windowSize:
|
|
1765
|
+
windowSize: h,
|
|
1698
1766
|
windowStart: r,
|
|
1699
|
-
isCurrentPage:
|
|
1700
|
-
setPaginationData:
|
|
1701
|
-
resetData:
|
|
1702
|
-
} =
|
|
1703
|
-
function
|
|
1704
|
-
n("vuetable-pagination:change-page",
|
|
1705
|
-
}
|
|
1706
|
-
function
|
|
1707
|
-
|
|
1708
|
-
}
|
|
1709
|
-
return a.on("vuetable:pagination-data", (
|
|
1710
|
-
|
|
1711
|
-
}), { emitter: a, tableCss:
|
|
1767
|
+
isCurrentPage: b,
|
|
1768
|
+
setPaginationData: v,
|
|
1769
|
+
resetData: F
|
|
1770
|
+
} = Kn(() => e.onEachSide, () => e.firstPage);
|
|
1771
|
+
function $(C) {
|
|
1772
|
+
n("vuetable-pagination:change-page", C);
|
|
1773
|
+
}
|
|
1774
|
+
function p(C) {
|
|
1775
|
+
$(C.target.selectedIndex + e.firstPage);
|
|
1776
|
+
}
|
|
1777
|
+
return a.on("vuetable:pagination-data", (C) => {
|
|
1778
|
+
v(C);
|
|
1779
|
+
}), { emitter: a, tableCss: i, tablePagination: s, totalPage: g, lastPage: c, isOnFirstPage: u, isOnLastPage: o, notEnoughPages: d, windowSize: h, windowStart: r, isCurrentPage: b, setPaginationData: v, resetData: F, loadPage: $, onPageSelected: p };
|
|
1712
1780
|
}
|
|
1713
|
-
}),
|
|
1714
|
-
function
|
|
1715
|
-
return
|
|
1716
|
-
class:
|
|
1781
|
+
}), Al = ["value", "selected"];
|
|
1782
|
+
function Bl(e, n, a, i, s, g) {
|
|
1783
|
+
return y(), P("div", {
|
|
1784
|
+
class: T([e.tableCss.wrapperClass])
|
|
1717
1785
|
}, [
|
|
1718
|
-
|
|
1719
|
-
class:
|
|
1786
|
+
z("a", {
|
|
1787
|
+
class: T([e.tableCss.linkClass, { [e.tableCss.disabledClass]: e.isOnFirstPage }]),
|
|
1720
1788
|
onClick: n[0] || (n[0] = (c) => e.loadPage("prev"))
|
|
1721
1789
|
}, [
|
|
1722
|
-
|
|
1723
|
-
class:
|
|
1790
|
+
z("i", {
|
|
1791
|
+
class: T(e.tableCss.icons.prev)
|
|
1724
1792
|
}, null, 2)
|
|
1725
1793
|
], 2),
|
|
1726
|
-
|
|
1727
|
-
class:
|
|
1794
|
+
z("select", {
|
|
1795
|
+
class: T(["vuetable-pagination-dropdown", e.tableCss.dropdownClass]),
|
|
1728
1796
|
onChange: n[1] || (n[1] = (c) => e.onPageSelected(c))
|
|
1729
1797
|
}, [
|
|
1730
|
-
(
|
|
1798
|
+
(y(!0), P(U, null, se(e.totalPage, (c, u) => (y(), P("option", {
|
|
1731
1799
|
key: c,
|
|
1732
|
-
class:
|
|
1733
|
-
value:
|
|
1734
|
-
selected: e.isCurrentPage(
|
|
1735
|
-
},
|
|
1800
|
+
class: T([e.tableCss.pageClass]),
|
|
1801
|
+
value: u + e.firstPage,
|
|
1802
|
+
selected: e.isCurrentPage(u + e.firstPage)
|
|
1803
|
+
}, tt(e.pageText) + " " + tt(c), 11, Al))), 128))
|
|
1736
1804
|
], 34),
|
|
1737
|
-
|
|
1738
|
-
class:
|
|
1805
|
+
z("a", {
|
|
1806
|
+
class: T([e.tableCss.linkClass, { [e.tableCss.disabledClass]: e.isOnLastPage }]),
|
|
1739
1807
|
onClick: n[2] || (n[2] = (c) => e.loadPage("next"))
|
|
1740
1808
|
}, [
|
|
1741
|
-
|
|
1742
|
-
class:
|
|
1809
|
+
z("i", {
|
|
1810
|
+
class: T(e.tableCss.icons.next)
|
|
1743
1811
|
}, null, 2)
|
|
1744
1812
|
], 2)
|
|
1745
1813
|
], 2);
|
|
1746
1814
|
}
|
|
1747
|
-
const
|
|
1748
|
-
function
|
|
1749
|
-
const a = e === void 0 ||
|
|
1815
|
+
const Vl = /* @__PURE__ */ be(Ll, [["render", Bl]]);
|
|
1816
|
+
function Nl(e, n) {
|
|
1817
|
+
const a = e === void 0 || Vn(e) || typeof e == "function" || typeof e == "string" ? { noDataTemplate: e, infoTemplate: n } : e, i = () => Z(a.noDataTemplate === void 0 ? "No relevant data" : a.noDataTemplate), s = () => Z(a.infoTemplate === void 0 ? "Displaying {from} to {to} of {total} items" : a.infoTemplate), g = A(null), c = A({}), u = k(() => g.value == null || g.value.total == 0), o = k(() => u.value ? Z(i) : Z(s).replace("{from}", `${g.value.from || 0}`).replace("{to}", `${g.value.to || 0}`).replace("{total}", `${g.value.total || 0}`));
|
|
1750
1818
|
function d() {
|
|
1751
|
-
c.value = q(q({}, ye.paginationInfo),
|
|
1819
|
+
c.value = q(q({}, ye.paginationInfo), Z(a.css === void 0 ? {} : a.css));
|
|
1752
1820
|
}
|
|
1753
|
-
function v
|
|
1754
|
-
|
|
1821
|
+
function h(v) {
|
|
1822
|
+
g.value = v;
|
|
1755
1823
|
}
|
|
1756
1824
|
function r() {
|
|
1757
|
-
|
|
1825
|
+
g.value = null;
|
|
1758
1826
|
}
|
|
1759
|
-
function
|
|
1760
|
-
var
|
|
1761
|
-
return
|
|
1827
|
+
function b(v) {
|
|
1828
|
+
var F;
|
|
1829
|
+
return v === ((F = g.value) == null ? void 0 : F.current_page);
|
|
1762
1830
|
}
|
|
1763
1831
|
return d(), {
|
|
1764
|
-
tablePagination:
|
|
1832
|
+
tablePagination: g,
|
|
1765
1833
|
customCss: c,
|
|
1766
|
-
paginationInfo:
|
|
1767
|
-
setPaginationData:
|
|
1834
|
+
paginationInfo: o,
|
|
1835
|
+
setPaginationData: h,
|
|
1768
1836
|
resetData: r,
|
|
1769
|
-
isCurrentPage:
|
|
1837
|
+
isCurrentPage: b,
|
|
1770
1838
|
mergeCss: d
|
|
1771
1839
|
};
|
|
1772
1840
|
}
|
|
1773
|
-
const
|
|
1841
|
+
const Gl = Q({
|
|
1774
1842
|
props: {
|
|
1775
1843
|
css: { type: null, required: !1, default: () => ({}) },
|
|
1776
1844
|
infoTemplate: { type: String, required: !1, default: "Displaying {from} to {to} of {total} items" },
|
|
@@ -1780,19 +1848,19 @@ const Dl = J({
|
|
|
1780
1848
|
const {
|
|
1781
1849
|
tablePagination: n,
|
|
1782
1850
|
paginationInfo: a,
|
|
1783
|
-
setPaginationData:
|
|
1851
|
+
setPaginationData: i,
|
|
1784
1852
|
resetData: s
|
|
1785
|
-
} =
|
|
1786
|
-
return { tablePagination: n, paginationInfo: a, setPaginationData:
|
|
1853
|
+
} = Nl(() => e.noDataTemplate, () => e.infoTemplate), g = A(q(q({}, ye.paginationInfo), e.css));
|
|
1854
|
+
return { tablePagination: n, paginationInfo: a, setPaginationData: i, resetData: s, tableCss: g };
|
|
1787
1855
|
}
|
|
1788
|
-
}),
|
|
1789
|
-
function
|
|
1790
|
-
return
|
|
1791
|
-
class:
|
|
1856
|
+
}), Wl = ["innerHTML"];
|
|
1857
|
+
function zl(e, n, a, i, s, g) {
|
|
1858
|
+
return y(), P("div", {
|
|
1859
|
+
class: T(["vuetable-pagination-info", e.tableCss.infoClass]),
|
|
1792
1860
|
innerHTML: e.paginationInfo
|
|
1793
|
-
}, null, 10,
|
|
1861
|
+
}, null, 10, Wl);
|
|
1794
1862
|
}
|
|
1795
|
-
const
|
|
1863
|
+
const Kl = /* @__PURE__ */ be(Gl, [["render", zl]]), Ul = Q({
|
|
1796
1864
|
props: {
|
|
1797
1865
|
rowData: {
|
|
1798
1866
|
type: Object,
|
|
@@ -1817,8 +1885,8 @@ const jl = /* @__PURE__ */ de(Dl, [["render", Ml]]), Ll = J({
|
|
|
1817
1885
|
default: null
|
|
1818
1886
|
}
|
|
1819
1887
|
}
|
|
1820
|
-
}),
|
|
1821
|
-
mixins: [
|
|
1888
|
+
}), uo = Q({
|
|
1889
|
+
mixins: [Ul],
|
|
1822
1890
|
methods: {
|
|
1823
1891
|
toggleCheckbox(e, n) {
|
|
1824
1892
|
this.vuetable.onCheckboxToggled(n.target.checked, this.rowField.name, e);
|
|
@@ -1830,13 +1898,13 @@ const jl = /* @__PURE__ */ de(Dl, [["render", Ml]]), Ll = J({
|
|
|
1830
1898
|
return this.vuetable.isSelectedRow(e[this.vuetable.trackBy]);
|
|
1831
1899
|
},
|
|
1832
1900
|
isAllItemsInCurrentPageSelected() {
|
|
1833
|
-
var
|
|
1901
|
+
var i;
|
|
1834
1902
|
if (!this.vuetable.tableData) return;
|
|
1835
|
-
let e = this.vuetable.trackBy, n = (
|
|
1903
|
+
let e = this.vuetable.trackBy, n = (i = this.$el) == null ? void 0 : i.querySelector("input[type=checkbox]"), a = this.vuetable.tableData.filter((s) => this.vuetable.isSelectedRow(s[e]));
|
|
1836
1904
|
return a.length <= 0 ? (n && (n.indeterminate = !1), !1) : a.length < this.vuetable.tableData.length ? (n && (n.indeterminate = !0), !0) : (n && (n.indeterminate = !1), !0);
|
|
1837
1905
|
}
|
|
1838
1906
|
}
|
|
1839
|
-
}),
|
|
1907
|
+
}), co = Q({
|
|
1840
1908
|
props: {
|
|
1841
1909
|
css: {
|
|
1842
1910
|
type: Object,
|
|
@@ -1876,7 +1944,7 @@ const jl = /* @__PURE__ */ de(Dl, [["render", Ml]]), Ll = J({
|
|
|
1876
1944
|
this.tablePagination = null;
|
|
1877
1945
|
}
|
|
1878
1946
|
}
|
|
1879
|
-
}),
|
|
1947
|
+
}), fo = Q({
|
|
1880
1948
|
emits: [
|
|
1881
1949
|
"vuetable-pagination:change-page"
|
|
1882
1950
|
],
|
|
@@ -1949,31 +2017,31 @@ const jl = /* @__PURE__ */ de(Dl, [["render", Ml]]), Ll = J({
|
|
|
1949
2017
|
}
|
|
1950
2018
|
}
|
|
1951
2019
|
});
|
|
1952
|
-
function
|
|
2020
|
+
function xl(e) {
|
|
1953
2021
|
const n = pe("vuetable", null);
|
|
1954
2022
|
return {
|
|
1955
|
-
rowData:
|
|
2023
|
+
rowData: k(() => {
|
|
1956
2024
|
var a;
|
|
1957
2025
|
return (a = e.rowData) != null ? a : null;
|
|
1958
2026
|
}),
|
|
1959
|
-
rowIndex:
|
|
1960
|
-
rowField:
|
|
1961
|
-
isHeader:
|
|
2027
|
+
rowIndex: k(() => e.rowIndex),
|
|
2028
|
+
rowField: k(() => e.rowField),
|
|
2029
|
+
isHeader: k(() => {
|
|
1962
2030
|
var a;
|
|
1963
2031
|
return (a = e.isHeader) != null ? a : !1;
|
|
1964
2032
|
}),
|
|
1965
|
-
title:
|
|
2033
|
+
title: k(() => {
|
|
1966
2034
|
var a;
|
|
1967
2035
|
return (a = e.title) != null ? a : "";
|
|
1968
2036
|
}),
|
|
1969
|
-
vuetable:
|
|
2037
|
+
vuetable: k(() => {
|
|
1970
2038
|
var a;
|
|
1971
2039
|
return (a = e.vuetable) != null ? a : n;
|
|
1972
2040
|
})
|
|
1973
2041
|
};
|
|
1974
2042
|
}
|
|
1975
|
-
function
|
|
1976
|
-
const n =
|
|
2043
|
+
function bo(e) {
|
|
2044
|
+
const n = xl(e);
|
|
1977
2045
|
function a() {
|
|
1978
2046
|
const r = n.vuetable.value;
|
|
1979
2047
|
if (!r)
|
|
@@ -1981,44 +2049,44 @@ function no(e) {
|
|
|
1981
2049
|
return r;
|
|
1982
2050
|
}
|
|
1983
2051
|
a();
|
|
1984
|
-
const
|
|
2052
|
+
const i = A(null), s = k(() => {
|
|
1985
2053
|
const r = a();
|
|
1986
|
-
return (r.tableData || []).filter((
|
|
1987
|
-
}),
|
|
2054
|
+
return (r.tableData || []).filter((b) => r.isSelectedRow(b[r.trackBy])).length;
|
|
2055
|
+
}), g = k(() => {
|
|
1988
2056
|
var r;
|
|
1989
2057
|
return s.value > 0 && s.value < (((r = a().tableData) == null ? void 0 : r.length) || 0);
|
|
1990
2058
|
});
|
|
1991
|
-
function c(r,
|
|
1992
|
-
var
|
|
2059
|
+
function c(r, b) {
|
|
2060
|
+
var F;
|
|
1993
2061
|
if (!r) return;
|
|
1994
|
-
a().onCheckboxToggled(
|
|
2062
|
+
a().onCheckboxToggled(b.target.checked, (F = n.rowField.value) == null ? void 0 : F.name, r);
|
|
1995
2063
|
}
|
|
1996
|
-
function
|
|
2064
|
+
function u(r) {
|
|
1997
2065
|
a().onCheckboxToggledAll(r.target.checked);
|
|
1998
2066
|
}
|
|
1999
|
-
function
|
|
2067
|
+
function o(r) {
|
|
2000
2068
|
if (!r) return !1;
|
|
2001
|
-
const
|
|
2002
|
-
return
|
|
2069
|
+
const b = a();
|
|
2070
|
+
return b.isSelectedRow(r[b.trackBy]);
|
|
2003
2071
|
}
|
|
2004
2072
|
function d() {
|
|
2005
2073
|
if (a().tableData)
|
|
2006
2074
|
return s.value > 0;
|
|
2007
2075
|
}
|
|
2008
|
-
function
|
|
2009
|
-
|
|
2076
|
+
function h() {
|
|
2077
|
+
i.value && (i.value.indeterminate = n.isHeader.value && g.value);
|
|
2010
2078
|
}
|
|
2011
|
-
return
|
|
2012
|
-
checkbox:
|
|
2079
|
+
return It(h), Bn(h), te([i, n.isHeader, g], h, { flush: "post" }), he(q({}, n), {
|
|
2080
|
+
checkbox: i,
|
|
2013
2081
|
selectedCount: s,
|
|
2014
|
-
isIndeterminate:
|
|
2082
|
+
isIndeterminate: g,
|
|
2015
2083
|
toggleCheckbox: c,
|
|
2016
|
-
toggleAllCheckbox:
|
|
2017
|
-
isSelected:
|
|
2084
|
+
toggleAllCheckbox: u,
|
|
2085
|
+
isSelected: o,
|
|
2018
2086
|
isAllItemsInCurrentPageSelected: d
|
|
2019
2087
|
});
|
|
2020
2088
|
}
|
|
2021
|
-
function
|
|
2089
|
+
function Jl(e) {
|
|
2022
2090
|
var n = this.constructor;
|
|
2023
2091
|
return this.then(
|
|
2024
2092
|
function(a) {
|
|
@@ -2033,224 +2101,224 @@ function Al(e) {
|
|
|
2033
2101
|
}
|
|
2034
2102
|
);
|
|
2035
2103
|
}
|
|
2036
|
-
function
|
|
2104
|
+
function Zl(e) {
|
|
2037
2105
|
var n = this;
|
|
2038
|
-
return new n(function(a,
|
|
2106
|
+
return new n(function(a, i) {
|
|
2039
2107
|
if (!(e && typeof e.length != "undefined"))
|
|
2040
|
-
return
|
|
2108
|
+
return i(
|
|
2041
2109
|
new TypeError(
|
|
2042
2110
|
typeof e + " " + e + " is not iterable(cannot read property Symbol(Symbol.iterator))"
|
|
2043
2111
|
)
|
|
2044
2112
|
);
|
|
2045
2113
|
var s = Array.prototype.slice.call(e);
|
|
2046
2114
|
if (s.length === 0) return a([]);
|
|
2047
|
-
var
|
|
2048
|
-
function c(
|
|
2115
|
+
var g = s.length;
|
|
2116
|
+
function c(o, d) {
|
|
2049
2117
|
if (d && (typeof d == "object" || typeof d == "function")) {
|
|
2050
|
-
var
|
|
2051
|
-
if (typeof
|
|
2052
|
-
|
|
2118
|
+
var h = d.then;
|
|
2119
|
+
if (typeof h == "function") {
|
|
2120
|
+
h.call(
|
|
2053
2121
|
d,
|
|
2054
2122
|
function(r) {
|
|
2055
|
-
c(
|
|
2123
|
+
c(o, r);
|
|
2056
2124
|
},
|
|
2057
2125
|
function(r) {
|
|
2058
|
-
s[
|
|
2126
|
+
s[o] = { status: "rejected", reason: r }, --g === 0 && a(s);
|
|
2059
2127
|
}
|
|
2060
2128
|
);
|
|
2061
2129
|
return;
|
|
2062
2130
|
}
|
|
2063
2131
|
}
|
|
2064
|
-
s[
|
|
2132
|
+
s[o] = { status: "fulfilled", value: d }, --g === 0 && a(s);
|
|
2065
2133
|
}
|
|
2066
|
-
for (var
|
|
2067
|
-
c(
|
|
2134
|
+
for (var u = 0; u < s.length; u++)
|
|
2135
|
+
c(u, s[u]);
|
|
2068
2136
|
});
|
|
2069
2137
|
}
|
|
2070
|
-
function
|
|
2138
|
+
function Un(e, n) {
|
|
2071
2139
|
this.name = "AggregateError", this.errors = e, this.message = n || "";
|
|
2072
2140
|
}
|
|
2073
|
-
|
|
2074
|
-
function
|
|
2141
|
+
Un.prototype = Error.prototype;
|
|
2142
|
+
function Ql(e) {
|
|
2075
2143
|
var n = this;
|
|
2076
|
-
return new n(function(a,
|
|
2144
|
+
return new n(function(a, i) {
|
|
2077
2145
|
if (!(e && typeof e.length != "undefined"))
|
|
2078
|
-
return
|
|
2146
|
+
return i(new TypeError("Promise.any accepts an array"));
|
|
2079
2147
|
var s = Array.prototype.slice.call(e);
|
|
2080
|
-
if (s.length === 0) return
|
|
2081
|
-
for (var
|
|
2148
|
+
if (s.length === 0) return i();
|
|
2149
|
+
for (var g = [], c = 0; c < s.length; c++)
|
|
2082
2150
|
try {
|
|
2083
|
-
n.resolve(s[c]).then(a).catch(function(
|
|
2084
|
-
|
|
2085
|
-
new
|
|
2086
|
-
|
|
2151
|
+
n.resolve(s[c]).then(a).catch(function(u) {
|
|
2152
|
+
g.push(u), g.length === s.length && i(
|
|
2153
|
+
new Un(
|
|
2154
|
+
g,
|
|
2087
2155
|
"All promises were rejected"
|
|
2088
2156
|
)
|
|
2089
2157
|
);
|
|
2090
2158
|
});
|
|
2091
|
-
} catch (
|
|
2092
|
-
u
|
|
2159
|
+
} catch (u) {
|
|
2160
|
+
i(u);
|
|
2093
2161
|
}
|
|
2094
2162
|
});
|
|
2095
2163
|
}
|
|
2096
|
-
var
|
|
2097
|
-
function
|
|
2164
|
+
var Yl = setTimeout;
|
|
2165
|
+
function xn(e) {
|
|
2098
2166
|
return !!(e && typeof e.length != "undefined");
|
|
2099
2167
|
}
|
|
2100
|
-
function
|
|
2168
|
+
function Xl() {
|
|
2101
2169
|
}
|
|
2102
|
-
function
|
|
2170
|
+
function _l(e, n) {
|
|
2103
2171
|
return function() {
|
|
2104
2172
|
e.apply(n, arguments);
|
|
2105
2173
|
};
|
|
2106
2174
|
}
|
|
2107
|
-
function
|
|
2108
|
-
if (!(this instanceof
|
|
2175
|
+
function V(e) {
|
|
2176
|
+
if (!(this instanceof V))
|
|
2109
2177
|
throw new TypeError("Promises must be constructed via new");
|
|
2110
2178
|
if (typeof e != "function") throw new TypeError("not a function");
|
|
2111
|
-
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [],
|
|
2179
|
+
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], Zn(e, this);
|
|
2112
2180
|
}
|
|
2113
|
-
function
|
|
2181
|
+
function Jn(e, n) {
|
|
2114
2182
|
for (; e._state === 3; )
|
|
2115
2183
|
e = e._value;
|
|
2116
2184
|
if (e._state === 0) {
|
|
2117
2185
|
e._deferreds.push(n);
|
|
2118
2186
|
return;
|
|
2119
2187
|
}
|
|
2120
|
-
e._handled = !0,
|
|
2188
|
+
e._handled = !0, V._immediateFn(function() {
|
|
2121
2189
|
var a = e._state === 1 ? n.onFulfilled : n.onRejected;
|
|
2122
2190
|
if (a === null) {
|
|
2123
|
-
(e._state === 1 ?
|
|
2191
|
+
(e._state === 1 ? Mt : We)(n.promise, e._value);
|
|
2124
2192
|
return;
|
|
2125
2193
|
}
|
|
2126
|
-
var
|
|
2194
|
+
var i;
|
|
2127
2195
|
try {
|
|
2128
|
-
|
|
2196
|
+
i = a(e._value);
|
|
2129
2197
|
} catch (s) {
|
|
2130
2198
|
We(n.promise, s);
|
|
2131
2199
|
return;
|
|
2132
2200
|
}
|
|
2133
|
-
|
|
2201
|
+
Mt(n.promise, i);
|
|
2134
2202
|
});
|
|
2135
2203
|
}
|
|
2136
|
-
function
|
|
2204
|
+
function Mt(e, n) {
|
|
2137
2205
|
try {
|
|
2138
2206
|
if (n === e)
|
|
2139
2207
|
throw new TypeError("A promise cannot be resolved with itself.");
|
|
2140
2208
|
if (n && (typeof n == "object" || typeof n == "function")) {
|
|
2141
2209
|
var a = n.then;
|
|
2142
|
-
if (n instanceof
|
|
2143
|
-
e._state = 3, e._value = n,
|
|
2210
|
+
if (n instanceof V) {
|
|
2211
|
+
e._state = 3, e._value = n, Et(e);
|
|
2144
2212
|
return;
|
|
2145
2213
|
} else if (typeof a == "function") {
|
|
2146
|
-
|
|
2214
|
+
Zn(_l(a, n), e);
|
|
2147
2215
|
return;
|
|
2148
2216
|
}
|
|
2149
2217
|
}
|
|
2150
|
-
e._state = 1, e._value = n,
|
|
2151
|
-
} catch (
|
|
2152
|
-
We(e,
|
|
2218
|
+
e._state = 1, e._value = n, Et(e);
|
|
2219
|
+
} catch (i) {
|
|
2220
|
+
We(e, i);
|
|
2153
2221
|
}
|
|
2154
2222
|
}
|
|
2155
2223
|
function We(e, n) {
|
|
2156
|
-
e._state = 2, e._value = n,
|
|
2224
|
+
e._state = 2, e._value = n, Et(e);
|
|
2157
2225
|
}
|
|
2158
|
-
function
|
|
2159
|
-
e._state === 2 && e._deferreds.length === 0 &&
|
|
2160
|
-
e._handled ||
|
|
2226
|
+
function Et(e) {
|
|
2227
|
+
e._state === 2 && e._deferreds.length === 0 && V._immediateFn(function() {
|
|
2228
|
+
e._handled || V._unhandledRejectionFn(e._value);
|
|
2161
2229
|
});
|
|
2162
2230
|
for (var n = 0, a = e._deferreds.length; n < a; n++)
|
|
2163
|
-
|
|
2231
|
+
Jn(e, e._deferreds[n]);
|
|
2164
2232
|
e._deferreds = null;
|
|
2165
2233
|
}
|
|
2166
|
-
function
|
|
2234
|
+
function eo(e, n, a) {
|
|
2167
2235
|
this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof n == "function" ? n : null, this.promise = a;
|
|
2168
2236
|
}
|
|
2169
|
-
function
|
|
2237
|
+
function Zn(e, n) {
|
|
2170
2238
|
var a = !1;
|
|
2171
2239
|
try {
|
|
2172
2240
|
e(
|
|
2173
|
-
function(
|
|
2174
|
-
a || (a = !0,
|
|
2241
|
+
function(i) {
|
|
2242
|
+
a || (a = !0, Mt(n, i));
|
|
2175
2243
|
},
|
|
2176
|
-
function(
|
|
2177
|
-
a || (a = !0, We(n,
|
|
2244
|
+
function(i) {
|
|
2245
|
+
a || (a = !0, We(n, i));
|
|
2178
2246
|
}
|
|
2179
2247
|
);
|
|
2180
|
-
} catch (
|
|
2248
|
+
} catch (i) {
|
|
2181
2249
|
if (a) return;
|
|
2182
|
-
a = !0, We(n,
|
|
2250
|
+
a = !0, We(n, i);
|
|
2183
2251
|
}
|
|
2184
2252
|
}
|
|
2185
|
-
|
|
2253
|
+
V.prototype.catch = function(e) {
|
|
2186
2254
|
return this.then(null, e);
|
|
2187
2255
|
};
|
|
2188
|
-
|
|
2189
|
-
var a = new this.constructor(
|
|
2190
|
-
return
|
|
2256
|
+
V.prototype.then = function(e, n) {
|
|
2257
|
+
var a = new this.constructor(Xl);
|
|
2258
|
+
return Jn(this, new eo(e, n, a)), a;
|
|
2191
2259
|
};
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
return new
|
|
2195
|
-
if (!
|
|
2260
|
+
V.prototype.finally = Jl;
|
|
2261
|
+
V.all = function(e) {
|
|
2262
|
+
return new V(function(n, a) {
|
|
2263
|
+
if (!xn(e))
|
|
2196
2264
|
return a(new TypeError("Promise.all accepts an array"));
|
|
2197
|
-
var
|
|
2198
|
-
if (
|
|
2199
|
-
var s =
|
|
2200
|
-
function
|
|
2265
|
+
var i = Array.prototype.slice.call(e);
|
|
2266
|
+
if (i.length === 0) return n([]);
|
|
2267
|
+
var s = i.length;
|
|
2268
|
+
function g(u, o) {
|
|
2201
2269
|
try {
|
|
2202
|
-
if (
|
|
2203
|
-
var d =
|
|
2270
|
+
if (o && (typeof o == "object" || typeof o == "function")) {
|
|
2271
|
+
var d = o.then;
|
|
2204
2272
|
if (typeof d == "function") {
|
|
2205
2273
|
d.call(
|
|
2206
|
-
|
|
2207
|
-
function(
|
|
2208
|
-
|
|
2274
|
+
o,
|
|
2275
|
+
function(h) {
|
|
2276
|
+
g(u, h);
|
|
2209
2277
|
},
|
|
2210
2278
|
a
|
|
2211
2279
|
);
|
|
2212
2280
|
return;
|
|
2213
2281
|
}
|
|
2214
2282
|
}
|
|
2215
|
-
u
|
|
2216
|
-
} catch (
|
|
2217
|
-
a(
|
|
2283
|
+
i[u] = o, --s === 0 && n(i);
|
|
2284
|
+
} catch (h) {
|
|
2285
|
+
a(h);
|
|
2218
2286
|
}
|
|
2219
2287
|
}
|
|
2220
|
-
for (var c = 0; c <
|
|
2221
|
-
|
|
2288
|
+
for (var c = 0; c < i.length; c++)
|
|
2289
|
+
g(c, i[c]);
|
|
2222
2290
|
});
|
|
2223
2291
|
};
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
return e && typeof e == "object" && e.constructor ===
|
|
2292
|
+
V.any = Ql;
|
|
2293
|
+
V.allSettled = Zl;
|
|
2294
|
+
V.resolve = function(e) {
|
|
2295
|
+
return e && typeof e == "object" && e.constructor === V ? e : new V(function(n) {
|
|
2228
2296
|
n(e);
|
|
2229
2297
|
});
|
|
2230
2298
|
};
|
|
2231
|
-
|
|
2232
|
-
return new
|
|
2299
|
+
V.reject = function(e) {
|
|
2300
|
+
return new V(function(n, a) {
|
|
2233
2301
|
a(e);
|
|
2234
2302
|
});
|
|
2235
2303
|
};
|
|
2236
|
-
|
|
2237
|
-
return new
|
|
2238
|
-
if (!
|
|
2304
|
+
V.race = function(e) {
|
|
2305
|
+
return new V(function(n, a) {
|
|
2306
|
+
if (!xn(e))
|
|
2239
2307
|
return a(new TypeError("Promise.race accepts an array"));
|
|
2240
|
-
for (var
|
|
2241
|
-
|
|
2308
|
+
for (var i = 0, s = e.length; i < s; i++)
|
|
2309
|
+
V.resolve(e[i]).then(n, a);
|
|
2242
2310
|
});
|
|
2243
2311
|
};
|
|
2244
|
-
|
|
2312
|
+
V._immediateFn = // @ts-ignore
|
|
2245
2313
|
typeof setImmediate == "function" && function(e) {
|
|
2246
2314
|
setImmediate(e);
|
|
2247
2315
|
} || function(e) {
|
|
2248
|
-
|
|
2316
|
+
Yl(e, 0);
|
|
2249
2317
|
};
|
|
2250
|
-
|
|
2318
|
+
V._unhandledRejectionFn = function(n) {
|
|
2251
2319
|
typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:", n);
|
|
2252
2320
|
};
|
|
2253
|
-
const
|
|
2321
|
+
const to = [
|
|
2254
2322
|
"initialized",
|
|
2255
2323
|
"loading",
|
|
2256
2324
|
"loaded",
|
|
@@ -2272,50 +2340,50 @@ const Kl = [
|
|
|
2272
2340
|
"data-reset",
|
|
2273
2341
|
"checkbox-toggled-custom"
|
|
2274
2342
|
];
|
|
2275
|
-
function
|
|
2276
|
-
var
|
|
2277
|
-
if (
|
|
2278
|
-
const n = (
|
|
2279
|
-
props:
|
|
2280
|
-
eventPrefix:
|
|
2343
|
+
function go(e = {}) {
|
|
2344
|
+
var i, s;
|
|
2345
|
+
if (K) throw new Error("createVuetable requires Vue 3. Use the generic Vuetable component on Vue 2.");
|
|
2346
|
+
const n = (i = e.eventPrefix) != null ? i : "vuetable:", a = he(q({}, et), {
|
|
2347
|
+
props: he(q({}, et.props), {
|
|
2348
|
+
eventPrefix: he(q({}, et.props.eventPrefix), {
|
|
2281
2349
|
default: n,
|
|
2282
|
-
validator: (
|
|
2350
|
+
validator: (g) => g === n
|
|
2283
2351
|
})
|
|
2284
2352
|
}),
|
|
2285
|
-
emits: [...new Set([...
|
|
2286
|
-
const
|
|
2287
|
-
return
|
|
2353
|
+
emits: [...new Set([...to, ...(s = e.events) != null ? s : []].reduce((g, c) => {
|
|
2354
|
+
const u = `${n}${c}`, o = u.replace(/-(\w)/g, (d, h) => h.toUpperCase());
|
|
2355
|
+
return g.push(u, o.charAt(0).toLowerCase() + o.slice(1)), g;
|
|
2288
2356
|
}, []))]
|
|
2289
2357
|
});
|
|
2290
2358
|
return delete a.install, a;
|
|
2291
2359
|
}
|
|
2292
|
-
const
|
|
2293
|
-
|
|
2294
|
-
function
|
|
2295
|
-
e.component("vuetable",
|
|
2360
|
+
const Rt = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : void 0;
|
|
2361
|
+
Rt && !Rt.Promise && (Rt.Promise = V);
|
|
2362
|
+
function no(e) {
|
|
2363
|
+
e.component("vuetable", ao), e.component("vuetable-column", Ol), e.component("vuetable-col-gutter", nt), e.component("vuetable-field-checkbox", At), e.component("vuetable-field-handle", Bt), e.component("vuetable-field-sequence", Vt), e.component("vuetable-pagination", Il), e.component("vuetable-pagination-dropdown", Vl), e.component("vuetable-pagination-info", Kl), e.component("vuetable-row-header", Gn);
|
|
2296
2364
|
}
|
|
2297
|
-
const
|
|
2365
|
+
const ao = Object.assign(et, { install: no });
|
|
2298
2366
|
export {
|
|
2299
|
-
|
|
2300
|
-
|
|
2301
|
-
|
|
2302
|
-
|
|
2303
|
-
|
|
2304
|
-
|
|
2305
|
-
|
|
2306
|
-
|
|
2307
|
-
|
|
2308
|
-
|
|
2309
|
-
|
|
2310
|
-
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2367
|
+
ao as Vuetable,
|
|
2368
|
+
nt as VuetableColGutter,
|
|
2369
|
+
Ol as VuetableColumn,
|
|
2370
|
+
At as VuetableFieldCheckbox,
|
|
2371
|
+
uo as VuetableFieldCheckboxMixin,
|
|
2372
|
+
Bt as VuetableFieldHandle,
|
|
2373
|
+
Ul as VuetableFieldMixin,
|
|
2374
|
+
Vt as VuetableFieldSequence,
|
|
2375
|
+
Il as VuetablePagination,
|
|
2376
|
+
Vl as VuetablePaginationDropdown,
|
|
2377
|
+
Kl as VuetablePaginationInfo,
|
|
2378
|
+
co as VuetablePaginationInfoMixin,
|
|
2379
|
+
fo as VuetablePaginationMixin,
|
|
2380
|
+
Gn as VuetableRowHeader,
|
|
2381
|
+
go as createVuetable,
|
|
2382
|
+
ao as default,
|
|
2383
|
+
no as install,
|
|
2384
|
+
xl as useVuetableField,
|
|
2385
|
+
bo as useVuetableFieldCheckbox,
|
|
2386
|
+
Kn as useVuetablePagination,
|
|
2387
|
+
Nl as useVuetablePaginationInfo
|
|
2320
2388
|
};
|
|
2321
2389
|
//# sourceMappingURL=vue3.js.map
|