vuetable-next 1.1.1 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +296 -605
- package/dist/chunks/vue2/createVuetable-GewoatYE.cjs +11 -0
- package/dist/chunks/vue2/createVuetable-zwzXUm5x.js +1511 -0
- package/dist/chunks/vue3/createVuetable-CE_PTu-W.cjs +5 -0
- package/dist/chunks/vue3/createVuetable-wZayTXed.js +1733 -0
- package/dist/portable/components/useVuetablePagination.d.ts +1 -0
- package/dist/portable/components/useVuetablePaginationInfo.d.ts +1 -0
- package/dist/public.d.ts +14 -1
- package/dist/structure.css +30 -0
- package/dist/style.css +77 -2
- package/dist/table.d.ts +13 -0
- package/dist/themes/semantic.css +47 -0
- package/dist/themes/tailwind.cjs +55 -0
- package/dist/themes/tailwind.js +35 -0
- package/dist/types/components/Vuetable.vue.d.ts +19 -53
- package/dist/types/components/VuetableContext.d.ts +1 -0
- package/dist/types/components/VuetableDetailHost.vue.d.ts +1 -1
- package/dist/types/components/VuetablePagination.vue.d.ts +13 -16
- package/dist/types/components/VuetablePaginationDropdown.vue.d.ts +13 -16
- package/dist/types/components/VuetablePaginationInfo.vue.d.ts +13 -1
- package/dist/types/components/VuetablePaginationInfoMixin.vue.d.ts +10 -0
- package/dist/types/components/VuetablePaginationMixin.vue.d.ts +10 -0
- package/dist/types/components/fetchAxios.d.ts +2 -0
- package/dist/types/components/resolveVuetableCss.d.ts +2 -0
- package/dist/types/components/useVuetableConfig.d.ts +15 -0
- package/dist/types/components/useVuetableFixedColumns.d.ts +1 -0
- package/dist/types/components/useVuetablePagination.d.ts +1 -0
- package/dist/types/components/useVuetablePaginationInfo.d.ts +1 -0
- package/dist/types/index.d.ts +3 -2
- package/dist/types/table.d.ts +10 -0
- package/dist/types/themes/tailwind.d.ts +35 -0
- package/dist/vue2-table.cjs +1 -0
- package/dist/vue2-table.js +21 -0
- package/dist/vue2.cjs +14 -21
- package/dist/vue2.js +384 -1805
- package/dist/vue3-table.cjs +1 -0
- package/dist/vue3-table.js +21 -0
- package/dist/vue3.cjs +1 -6
- package/dist/vue3.js +442 -2051
- package/package.json +23 -4
- package/style.css +77 -2
- package/dist/vue2.cjs.map +0 -1
- package/dist/vue2.js.map +0 -1
- package/dist/vue3.cjs.map +0 -1
- package/dist/vue3.js.map +0 -1
package/dist/vue3.js
CHANGED
|
@@ -1,1866 +1,277 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var Z = Object.defineProperty, x = Object.defineProperties;
|
|
2
|
+
var ee = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var R = Object.getOwnPropertySymbols;
|
|
4
|
+
var te = Object.prototype.hasOwnProperty, ne = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var M = (e, t, n) => t in e ? Z(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, V = (e, t) => {
|
|
6
|
+
for (var n in t || (t = {}))
|
|
7
|
+
te.call(t, n) && M(e, n, t[n]);
|
|
8
|
+
if (R)
|
|
9
|
+
for (var n of R(t))
|
|
10
|
+
ne.call(t, n) && M(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
var d;
|
|
56
|
-
return i.value > 0 && i.value < (((d = n.tableData) == null ? void 0 : d.length) || 0);
|
|
57
|
-
});
|
|
58
|
-
function g(d, h) {
|
|
59
|
-
var r;
|
|
60
|
-
d && n.onCheckboxToggled(h.target.checked, (r = e.rowField) == null ? void 0 : r.name, d);
|
|
61
|
-
}
|
|
62
|
-
function c(d) {
|
|
63
|
-
n.onCheckboxToggledAll(d.target.checked);
|
|
64
|
-
}
|
|
65
|
-
function u(d) {
|
|
66
|
-
return !!d && n.isSelectedRow(d[n.trackBy]);
|
|
67
|
-
}
|
|
68
|
-
function o() {
|
|
69
|
-
return i.value > 0;
|
|
70
|
-
}
|
|
71
|
-
return { vuetable: n, checkbox: a, isIndeterminate: s, toggleCheckbox: g, toggleAllCheckbox: c, isSelected: u, isAllItemsInCurrentPageSelected: o };
|
|
72
|
-
}
|
|
73
|
-
}), be = (e, n) => {
|
|
74
|
-
const a = e.__vccOpts || e;
|
|
75
|
-
for (const [i, s] of n)
|
|
76
|
-
a[i] = s;
|
|
77
|
-
return a;
|
|
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", {
|
|
82
|
-
ref: "checkbox",
|
|
83
|
-
".indeterminate": e.isIndeterminate,
|
|
84
|
-
checked: e.isAllItemsInCurrentPageSelected(),
|
|
85
|
-
type: "checkbox",
|
|
86
|
-
onChange: n[0] || (n[0] = (c) => e.toggleAllCheckbox(c))
|
|
87
|
-
}, null, 40, Ma)
|
|
88
|
-
], 16)) : (y(), P("td", $e({ key: 1 }, e.$attrs, { class: "vuetable-td-component-checkbox" }), [
|
|
89
|
-
z("input", {
|
|
90
|
-
ref: "checkbox",
|
|
91
|
-
checked: e.isSelected(e.rowData),
|
|
92
|
-
type: "checkbox",
|
|
93
|
-
onChange: n[1] || (n[1] = (c) => e.toggleCheckbox(e.rowData, c))
|
|
94
|
-
}, null, 40, Ea)
|
|
95
|
-
], 16));
|
|
96
|
-
}
|
|
97
|
-
const At = /* @__PURE__ */ be(Ha, [["render", ja]]), Ia = Q({
|
|
98
|
-
name: "vuetable-field-handle",
|
|
99
|
-
inheritAttrs: !1,
|
|
100
|
-
props: {
|
|
101
|
-
isHeader: { type: Boolean, required: !1, default: !1 },
|
|
102
|
-
title: { type: String, required: !1, default: "" }
|
|
103
|
-
},
|
|
104
|
-
setup() {
|
|
105
|
-
const e = pe("vuetable");
|
|
106
|
-
function n(a, i = "") {
|
|
107
|
-
return typeof e.css.renderIcon == "undefined" ? `<i class="${a.join(" ")}" ${i}></i>` : e.css.renderIcon(a, i);
|
|
108
|
-
}
|
|
109
|
-
return { vuetable: e, renderIconTag: n };
|
|
110
|
-
}
|
|
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, {
|
|
114
|
-
class: "vuetable-th-component-handle",
|
|
115
|
-
innerHTML: e.title
|
|
116
|
-
}), null, 16, La)) : (y(), P("td", $e({ key: 1 }, e.$attrs, {
|
|
117
|
-
class: "vuetable-td-component-handle",
|
|
118
|
-
innerHTML: e.renderIconTag(["handle-icon", e.vuetable.css.handleIcon])
|
|
119
|
-
}), null, 16, Aa));
|
|
120
|
-
}
|
|
121
|
-
const Bt = /* @__PURE__ */ be(Ia, [["render", Ba]]), Va = Q({
|
|
122
|
-
name: "vuetable-field-sequence",
|
|
123
|
-
inheritAttrs: !1,
|
|
124
|
-
props: {
|
|
125
|
-
rowIndex: { type: Number, required: !1, default: 0 },
|
|
126
|
-
isHeader: { type: Boolean, required: !1, default: !1 },
|
|
127
|
-
title: { type: String, required: !1, default: "" }
|
|
128
|
-
},
|
|
129
|
-
setup(e) {
|
|
130
|
-
const n = pe("vuetable");
|
|
131
|
-
function a() {
|
|
132
|
-
return n.tablePagination ? n.tablePagination.from + e.rowIndex : 1 + e.rowIndex;
|
|
133
|
-
}
|
|
134
|
-
return { vuetable: n, renderSequence: a };
|
|
135
|
-
}
|
|
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, {
|
|
139
|
-
class: "vuetable-th-component-sequence",
|
|
140
|
-
innerHTML: e.title
|
|
141
|
-
}), null, 16, Na)) : (y(), P("td", $e({ key: 1 }, e.$attrs, {
|
|
142
|
-
class: "vuetable-td-component-sequence",
|
|
143
|
-
innerHTML: e.renderSequence()
|
|
144
|
-
}), null, 16, Ga));
|
|
145
|
-
}
|
|
146
|
-
const Vt = /* @__PURE__ */ be(Va, [["render", Wa]]), za = Q({
|
|
147
|
-
name: "vuetable-th-gutter",
|
|
148
|
-
setup() {
|
|
149
|
-
const e = pe("vuetable"), n = k(() => e.hasFixedRightColumn && e.tableLayout.isFixedHeader);
|
|
150
|
-
return { vuetable: e, pinned: n };
|
|
151
|
-
}
|
|
152
|
-
});
|
|
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"])
|
|
157
|
-
}, null, 6);
|
|
158
|
-
}
|
|
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];
|
|
162
|
-
return (s = e.onRendered) == null || s.call(e), a;
|
|
163
|
-
};
|
|
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 ? {
|
|
170
|
-
functional: !0,
|
|
171
|
-
props: ["revision", "onRendered"],
|
|
172
|
-
render: (e, n) => {
|
|
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;
|
|
176
|
-
}
|
|
177
|
-
} : Nt, Nn = jt.isVue2 ? {
|
|
178
|
-
functional: !0,
|
|
179
|
-
props: ["content", "scope"],
|
|
180
|
-
render: (e, n) => {
|
|
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);
|
|
183
|
-
}
|
|
184
|
-
} : Gt, xa = Q({
|
|
185
|
-
name: "vuetable-row-header",
|
|
186
|
-
components: {
|
|
187
|
-
SlotOutlet: Nn,
|
|
188
|
-
"vuetable-field-checkbox": At,
|
|
189
|
-
"vuetable-field-handle": Bt,
|
|
190
|
-
"vuetable-field-sequence": Vt,
|
|
191
|
-
VuetableColGutter: nt
|
|
192
|
-
},
|
|
193
|
-
props: {
|
|
194
|
-
vuetable: { type: Object, default: null }
|
|
195
|
-
},
|
|
196
|
-
setup() {
|
|
197
|
-
const e = pe("vuetable");
|
|
198
|
-
function n(p) {
|
|
199
|
-
return e.columnRevision, e.getColumnSlot(p.name, !0);
|
|
200
|
-
}
|
|
201
|
-
function a(p) {
|
|
202
|
-
return p.replace(e.fieldPrefix, "");
|
|
203
|
-
}
|
|
204
|
-
function i(p, C) {
|
|
205
|
-
return [
|
|
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) }
|
|
212
|
-
];
|
|
213
|
-
}
|
|
214
|
-
function s(p) {
|
|
215
|
-
return typeof p == "string" && p.replace(/([A-Z])/g, (C) => "_" + C.toLowerCase()).replace(" ", "_").replace(".", "_");
|
|
216
|
-
}
|
|
217
|
-
function g(p) {
|
|
218
|
-
const C = d(p);
|
|
219
|
-
return C !== !1 ? e.sortOrder[C].direction == "asc" ? e.css.ascendingClass : e.css.descendingClass : "";
|
|
220
|
-
}
|
|
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;
|
|
224
|
-
}
|
|
225
|
-
function u(p) {
|
|
226
|
-
return d(p) !== !1;
|
|
227
|
-
}
|
|
228
|
-
function o(p) {
|
|
229
|
-
return e.isSortable(p) && e.css.sortableIcon != "";
|
|
230
|
-
}
|
|
231
|
-
function d(p) {
|
|
232
|
-
if (!e.isSortable(p))
|
|
233
|
-
return !1;
|
|
234
|
-
for (let C = 0; C < e.sortOrder.length; C++)
|
|
235
|
-
if (h(p, C))
|
|
236
|
-
return C;
|
|
237
|
-
return !1;
|
|
238
|
-
}
|
|
239
|
-
function h(p, C) {
|
|
240
|
-
return e.sortOrder[C].field === p.name && e.sortOrder[C].sortField === p.sortField;
|
|
241
|
-
}
|
|
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;
|
|
247
|
-
}
|
|
248
|
-
return O;
|
|
249
|
-
}
|
|
250
|
-
function b(p) {
|
|
251
|
-
return typeof p.title == "function" ? p.title() : typeof p.title == "undefined" ? p.name.toString().replace(".", " ") : p.title;
|
|
252
|
-
}
|
|
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;
|
|
257
|
-
}
|
|
258
|
-
function F(p, C = "") {
|
|
259
|
-
return typeof e.css.renderIcon == "undefined" ? `<i class="${p.join(" ")}" ${C}></i>` : e.css.renderIcon(p, C);
|
|
260
|
-
}
|
|
261
|
-
function $(p, C) {
|
|
262
|
-
e.orderBy(p, C);
|
|
263
|
-
}
|
|
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 };
|
|
265
|
-
}
|
|
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)
|
|
272
|
-
}, [
|
|
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),
|
|
276
|
-
"is-header": "",
|
|
277
|
-
vuetable: e.headerTable,
|
|
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]),
|
|
283
|
-
"onVuetable:headerEvent": e.headerTable.onHeaderEvent,
|
|
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)
|
|
299
|
-
}, [
|
|
300
|
-
Y(c, {
|
|
301
|
-
content: e.getHeaderSlot(o),
|
|
302
|
-
scope: { column: o, index: d }
|
|
303
|
-
}, null, 8, ["content", "scope"]),
|
|
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)
|
|
317
|
-
], 64))), 128)),
|
|
318
|
-
e.headerTable.scrollVisible ? (y(), fe(u, { key: 0 })) : ee("", !0)
|
|
319
|
-
]);
|
|
320
|
-
}
|
|
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);
|
|
327
|
-
return e("col", {
|
|
328
|
-
key: n.getColumnKey(d),
|
|
329
|
-
style: { width: a && n.getHeaderWidth(d) || d.width },
|
|
330
|
-
class: [`vuetable-col-${r}`, d.titleClass, `${r}-${b}`, n.groupClass(d)]
|
|
331
|
-
});
|
|
332
|
-
}),
|
|
333
|
-
...!s && a && n.scrollVisible ? [c()] : []
|
|
334
|
-
]));
|
|
335
|
-
return s && a && n.scrollVisible && u.push(e("colgroup", { key: "gutter" }, [c()])), u;
|
|
336
|
-
}
|
|
337
|
-
const zn = { isHeader: { type: Boolean, default: !1 } }, _a = {
|
|
338
|
-
name: "vuetable-col-group",
|
|
339
|
-
functional: !0,
|
|
340
|
-
inject: ["vuetable"],
|
|
341
|
-
props: zn,
|
|
342
|
-
render: (e, n) => Wn(e, n.injections.vuetable, n.props.isHeader)
|
|
343
|
-
}, el = Q({
|
|
344
|
-
name: "vuetable-col-group",
|
|
345
|
-
inheritAttrs: !1,
|
|
346
|
-
props: zn,
|
|
347
|
-
setup(e) {
|
|
348
|
-
const n = pe("vuetable");
|
|
349
|
-
return () => Wn(ha, n, e.isHeader);
|
|
350
|
-
}
|
|
351
|
-
}), Hn = K ? _a : el, tl = Q({
|
|
352
|
-
name: "VuetableDetailHost",
|
|
353
|
-
props: {
|
|
354
|
-
detailComponent: { type: [String, Object], default: "" },
|
|
355
|
-
rowData: { type: Object, required: !0 },
|
|
356
|
-
rowIndex: { type: Number, required: !0 },
|
|
357
|
-
options: { type: Object, default: () => ({}) }
|
|
358
|
-
},
|
|
359
|
-
setup(e) {
|
|
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 };
|
|
362
|
-
}
|
|
363
|
-
});
|
|
364
|
-
function nl(e, n, a, i, s, g) {
|
|
365
|
-
return y(), fe(Ge(e.resolvedDetailComponent), {
|
|
366
|
-
"row-data": e.rowData,
|
|
367
|
-
"row-index": e.rowIndex,
|
|
368
|
-
vuetable: e.tableContext,
|
|
369
|
-
options: e.options
|
|
370
|
-
}, null, 8, ["row-data", "row-index", "vuetable", "options"]);
|
|
371
|
-
}
|
|
372
|
-
const al = /* @__PURE__ */ be(tl, [["render", nl]]);
|
|
373
|
-
function Mn(e, n, a) {
|
|
374
|
-
return e === void 0 ? a : e === "" || e === n || !!e;
|
|
375
|
-
}
|
|
376
|
-
function En(e) {
|
|
377
|
-
if (typeof e == "function")
|
|
378
|
-
return (n) => {
|
|
379
|
-
const a = e(n);
|
|
380
|
-
return Array.isArray(a) ? a : a == null ? [] : [a];
|
|
381
|
-
};
|
|
382
|
-
}
|
|
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;
|
|
389
|
-
if (Array.isArray(r)) {
|
|
390
|
-
r.forEach(h);
|
|
391
|
-
return;
|
|
392
|
-
}
|
|
393
|
-
if (!r || typeof r != "object") return;
|
|
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) {
|
|
398
|
-
d.add("VuetableColumn requires a non-empty field.");
|
|
399
|
-
return;
|
|
400
|
-
}
|
|
401
|
-
if (o.has(S)) {
|
|
402
|
-
d.add(`Duplicate VuetableColumn field: ${S}. The first declaration wins.`);
|
|
403
|
-
return;
|
|
404
|
-
}
|
|
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, {
|
|
410
|
-
field: {
|
|
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
|
|
422
|
-
},
|
|
423
|
-
cell: En(I.default) || (L != null && L.length ? () => L : void 0),
|
|
424
|
-
header: En(I.header)
|
|
425
|
-
});
|
|
426
|
-
return;
|
|
427
|
-
}
|
|
428
|
-
typeof r.type == "symbol" && Array.isArray(r.children) && h(r.children);
|
|
429
|
-
}
|
|
430
|
-
h(u), d.forEach((r) => {
|
|
431
|
-
i.has(r) || e.warn(r);
|
|
432
|
-
}), i = d, n = o, s = o.size > 0;
|
|
433
|
-
}
|
|
434
|
-
function c() {
|
|
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;
|
|
443
|
-
});
|
|
444
|
-
(o.length !== e.fields.value.length || o.some((d, h) => d !== e.fields.value[h])) && (e.fields.value = o), a = u;
|
|
445
|
-
}
|
|
446
|
-
return {
|
|
447
|
-
discover: g,
|
|
448
|
-
reconcile: c,
|
|
449
|
-
hasDeclarations: () => s,
|
|
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;
|
|
453
|
-
}
|
|
454
|
-
};
|
|
455
|
-
}
|
|
456
|
-
function ie(e) {
|
|
457
|
-
return e.fixed === "left" || e.fixed === "right" ? e.fixed : void 0;
|
|
458
|
-
}
|
|
459
|
-
function jn(e, n) {
|
|
460
|
-
const a = Object.keys(n);
|
|
461
|
-
return a.length === Object.keys(e).length && a.every((i) => e[i] === n[i]);
|
|
462
|
-
}
|
|
463
|
-
function In(e, n) {
|
|
464
|
-
return e.$_columnKey || (typeof e.name == "string" ? e.name : e.name || n);
|
|
465
|
-
}
|
|
466
|
-
function ol(e) {
|
|
467
|
-
const n = /* @__PURE__ */ new Map();
|
|
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);
|
|
479
|
-
}
|
|
480
|
-
a = d;
|
|
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++;
|
|
499
|
-
}
|
|
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;
|
|
502
|
-
};
|
|
503
|
-
for (const r of e.fields.value) {
|
|
504
|
-
const b = ie(r);
|
|
505
|
-
b === "left" ? u.push(r) : b === "right" ? d.push(r) : o.push(r);
|
|
506
|
-
}
|
|
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;
|
|
511
|
-
} };
|
|
512
|
-
}
|
|
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;
|
|
523
|
-
});
|
|
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;
|
|
531
|
-
return {
|
|
532
|
-
class: ["vuetable-fixed-column", `vuetable-fixed-${j}`, `vuetable-fixed-${w}`],
|
|
533
|
-
style: { position: "sticky", [j]: `${(r.value.get(S) || 0) + I}px` }
|
|
534
|
-
};
|
|
535
|
-
}
|
|
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;
|
|
542
|
-
}
|
|
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);
|
|
547
|
-
}
|
|
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`;
|
|
552
|
-
}
|
|
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));
|
|
566
|
-
}
|
|
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}`
|
|
576
|
-
];
|
|
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);
|
|
581
|
-
break;
|
|
582
|
-
}
|
|
583
|
-
}
|
|
584
|
-
}
|
|
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();
|
|
592
|
-
}
|
|
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));
|
|
595
|
-
}
|
|
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 };
|
|
601
|
-
}
|
|
602
|
-
function sl(e) {
|
|
603
|
-
return typeof e == "string" && e.trim() !== "" || typeof e == "number" && Number.isFinite(e) ? e : null;
|
|
604
|
-
}
|
|
605
|
-
function il(e) {
|
|
606
|
-
const n = k(() => e.fields.value.filter((c) => c.visible)), a = k(() => {
|
|
607
|
-
const c = e.groupBy();
|
|
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;
|
|
611
|
-
}, []);
|
|
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;
|
|
618
|
-
else {
|
|
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 }));
|
|
621
|
-
}
|
|
622
|
-
}), u;
|
|
623
|
-
})), s = k(() => {
|
|
624
|
-
const c = /* @__PURE__ */ new Map();
|
|
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"]);
|
|
629
|
-
}
|
|
630
|
-
return c;
|
|
631
|
-
});
|
|
632
|
-
return { scope: k(() => ({
|
|
633
|
-
fields: e.fields.value,
|
|
634
|
-
visibleFields: n.value,
|
|
635
|
-
groups: a.value,
|
|
636
|
-
headerGroups: i.value,
|
|
637
|
-
getCellProps: e.getCellProps,
|
|
638
|
-
getSpanProps: e.getSpanProps,
|
|
639
|
-
columnCount: n.value.length,
|
|
640
|
-
isFixedHeader: e.isFixedHeader.value,
|
|
641
|
-
scrollVisible: e.scrollVisible.value,
|
|
642
|
-
scrollBarWidth: e.scrollBarWidth.value
|
|
643
|
-
})), groupClass: (c) => s.value.get(c) || [] };
|
|
644
|
-
}
|
|
645
|
-
const ye = {
|
|
646
|
-
table: {
|
|
647
|
-
tableWrapper: "",
|
|
648
|
-
tableHeaderClass: "fixed",
|
|
649
|
-
tableBodyClass: "fixed",
|
|
650
|
-
tableClass: "ui blue selectable unstackable celled table",
|
|
651
|
-
loadingClass: "loading",
|
|
652
|
-
ascendingIcon: "blue chevron up icon",
|
|
653
|
-
descendingIcon: "blue chevron down icon",
|
|
654
|
-
ascendingClass: "sorted-asc",
|
|
655
|
-
descendingClass: "sorted-desc",
|
|
656
|
-
sortableIcon: "grey sort icon",
|
|
657
|
-
handleIcon: "grey sidebar icon"
|
|
658
|
-
},
|
|
659
|
-
pagination: {
|
|
660
|
-
wrapperClass: "ui right floated pagination menu",
|
|
661
|
-
activeClass: "active large",
|
|
662
|
-
disabledClass: "disabled",
|
|
663
|
-
pageClass: "item",
|
|
664
|
-
linkClass: "icon item",
|
|
665
|
-
paginationClass: "ui bottom attached segment grid",
|
|
666
|
-
paginationInfoClass: "left floated left aligned six wide column",
|
|
667
|
-
dropdownClass: "ui search dropdown",
|
|
668
|
-
icons: {
|
|
669
|
-
first: "angle double left icon",
|
|
670
|
-
prev: "left chevron icon",
|
|
671
|
-
next: "right chevron icon",
|
|
672
|
-
last: "angle double right icon"
|
|
673
|
-
}
|
|
674
|
-
},
|
|
675
|
-
paginationInfo: {
|
|
676
|
-
infoClass: "left floated left aligned six wide column"
|
|
677
|
-
}
|
|
678
|
-
}, Ln = /* @__PURE__ */ new WeakMap(), ul = Q({
|
|
679
|
-
name: "Vuetable",
|
|
680
|
-
inheritAttrs: K,
|
|
681
|
-
components: {
|
|
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
|
|
691
|
-
},
|
|
692
|
-
props: {
|
|
693
|
-
fields: { type: Array, default: void 0 },
|
|
694
|
-
groupBy: { type: String, default: null },
|
|
695
|
-
fixedMode: { type: String, default: "edges", validator: (e) => e === "edges" || e === "in-place" },
|
|
696
|
-
loadOnStart: { type: Boolean, required: !1, default: !0 },
|
|
697
|
-
apiUrl: { type: String, required: !1, default: "" },
|
|
698
|
-
httpMethod: { type: String, required: !1, default: "get" },
|
|
699
|
-
reactiveApiUrl: { type: Boolean, required: !1, default: !0 },
|
|
700
|
-
apiMode: { type: Boolean, required: !1, default: !0 },
|
|
701
|
-
data: { type: null, required: !1, default: null },
|
|
702
|
-
dataManager: { type: Function, required: !1, default: null },
|
|
703
|
-
dataPath: { type: String, required: !1, default: "data" },
|
|
704
|
-
paginationPath: { type: String, required: !1, default: "links.pagination" },
|
|
705
|
-
queryParams: { type: [Object, Function], required: !1, default: () => ({
|
|
706
|
-
sort: "sort",
|
|
707
|
-
page: "page",
|
|
708
|
-
perPage: "per_page"
|
|
709
|
-
}) },
|
|
710
|
-
appendParams: { type: Object, required: !1, default: () => ({}) },
|
|
711
|
-
httpOptions: { type: Object, required: !1, default: () => ({}) },
|
|
712
|
-
httpFetch: { type: Function, required: !1, default: null },
|
|
713
|
-
perPage: { type: Number, required: !1, default: 10 },
|
|
714
|
-
initialPage: { type: Number, required: !1, default: 1 },
|
|
715
|
-
firstPage: { type: Number, required: !1, default: 1 },
|
|
716
|
-
sortOrder: { type: Array, required: !1, default: () => A([]).value },
|
|
717
|
-
multiSort: { type: Boolean, required: !1, default: !1 },
|
|
718
|
-
tableHeight: { type: String, required: !1, default: null },
|
|
719
|
-
multiSortKey: { type: String, required: !1, default: "alt" },
|
|
720
|
-
rowClass: { type: [String, Function], required: !1, default: "" },
|
|
721
|
-
detailRowComponent: { type: [String, Object], required: !1, default: "" },
|
|
722
|
-
detailRowTransition: { type: String, required: !1, default: "" },
|
|
723
|
-
detailRowClass: { type: [String, Function], required: !1, default: "vuetable-detail-row" },
|
|
724
|
-
detailRowOptions: { type: Object, required: !1, default: () => ({}) },
|
|
725
|
-
trackBy: { type: String, required: !1, default: "id" },
|
|
726
|
-
css: { type: Object, required: !1, default: () => ({}) },
|
|
727
|
-
minRows: { type: Number, required: !1, default: 0 },
|
|
728
|
-
silent: { type: Boolean, required: !1, default: !1 },
|
|
729
|
-
noDataTemplate: { type: String, required: !1, default: "No Data Available" },
|
|
730
|
-
showSortIcons: { type: Boolean, required: !1, default: !0 },
|
|
731
|
-
headerRows: { type: Array, required: !1, default: () => ["VuetableRowHeader"] },
|
|
732
|
-
transform: { type: Function, required: !1, default: null },
|
|
733
|
-
sortParams: { type: Function, required: !1, default: null },
|
|
734
|
-
fieldPrefix: { type: String, required: !1, default: "vuetable-field-" },
|
|
735
|
-
eventPrefix: { type: String, required: !1, default: "vuetable:" }
|
|
736
|
-
},
|
|
737
|
-
computed: {
|
|
738
|
-
$_css() {
|
|
739
|
-
return this.tableCss;
|
|
740
|
-
}
|
|
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++;
|
|
751
|
-
return;
|
|
752
|
-
}
|
|
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;
|
|
755
|
-
});
|
|
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({
|
|
757
|
-
get: () => r.orderedFields.value,
|
|
758
|
-
set: (t) => {
|
|
759
|
-
h.value = t;
|
|
760
|
-
}
|
|
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,
|
|
773
|
-
set: (t) => {
|
|
774
|
-
j = !0, w.value = Xe(t), Be();
|
|
775
|
-
}
|
|
776
|
-
});
|
|
777
|
-
K && s && ya(() => Object.defineProperty(s.proxy, "sortOrder", {
|
|
778
|
-
configurable: !0,
|
|
779
|
-
enumerable: !0,
|
|
780
|
-
get: () => I.value,
|
|
781
|
-
set: (t) => {
|
|
782
|
-
I.value = t;
|
|
783
|
-
}
|
|
784
|
-
}));
|
|
785
|
-
const L = (Sn = s == null ? void 0 : s.proxy) == null ? void 0 : Sn.$parent;
|
|
786
|
-
if (L) {
|
|
787
|
-
let t = Ln.get(L);
|
|
788
|
-
if (!t) {
|
|
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.$);
|
|
792
|
-
}
|
|
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(() => {
|
|
808
|
-
var t;
|
|
809
|
-
return ((t = $.value) == null ? void 0 : t.length) || 0;
|
|
810
|
-
}), je = k(() => Pe.value === 0 && e.noDataTemplate.length > 0), Te = k(() => {
|
|
811
|
-
var t;
|
|
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: () => {
|
|
814
|
-
var t;
|
|
815
|
-
return (t = s == null ? void 0 : s.proxy) == null ? void 0 : t.$el;
|
|
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);
|
|
819
|
-
});
|
|
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();
|
|
831
|
-
});
|
|
832
|
-
const zt = Lt(he(q({}, ma(e)), {
|
|
833
|
-
vuetable: d,
|
|
834
|
-
$el: k(() => {
|
|
835
|
-
var t;
|
|
836
|
-
return (t = s == null ? void 0 : s.proxy) == null ? void 0 : t.$el;
|
|
837
|
-
}),
|
|
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,
|
|
847
|
-
getColumnKey: r.getColumnKey,
|
|
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,
|
|
867
|
-
columnRevision: c,
|
|
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,
|
|
877
|
-
isVisibleDetailRow: Ae,
|
|
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,
|
|
894
|
-
makeTitle: xe,
|
|
895
|
-
getAllQueryParams: bt,
|
|
896
|
-
isSortable: Ye,
|
|
897
|
-
getDefaultSortParam: gt,
|
|
898
|
-
getObjectValue: Me,
|
|
899
|
-
isSelectedRow: St
|
|
900
|
-
}));
|
|
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;
|
|
906
|
-
t.style.overflow = "scroll";
|
|
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;
|
|
918
|
-
}
|
|
919
|
-
}
|
|
920
|
-
function De(t) {
|
|
921
|
-
e.silent || console.error(t);
|
|
922
|
-
}
|
|
923
|
-
function Yn(t, l) {
|
|
924
|
-
return [t, l.dataClass, ...at.groupClass(l), ...ae(l).class];
|
|
925
|
-
}
|
|
926
|
-
function lt() {
|
|
927
|
-
if (typeof e.fields == "undefined") {
|
|
928
|
-
v.reconcile();
|
|
929
|
-
return;
|
|
930
|
-
}
|
|
931
|
-
h.value = e.fields.map(ot);
|
|
932
|
-
}
|
|
933
|
-
function ot(t, l) {
|
|
934
|
-
const f = {
|
|
935
|
-
name: "",
|
|
936
|
-
// title:
|
|
937
|
-
// this allow the code to detect undefined title
|
|
938
|
-
// and replace it with capitalized name instead
|
|
939
|
-
titleClass: "",
|
|
940
|
-
dataClass: "",
|
|
941
|
-
sortField: null,
|
|
942
|
-
formatter: null,
|
|
943
|
-
visible: !0,
|
|
944
|
-
width: null,
|
|
945
|
-
$_index: l
|
|
946
|
-
};
|
|
947
|
-
if (typeof t == "string")
|
|
948
|
-
return he(q({}, f), {
|
|
949
|
-
name: rt(t),
|
|
950
|
-
title: xe(t)
|
|
951
|
-
});
|
|
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;
|
|
954
|
-
}
|
|
955
|
-
function rt(t) {
|
|
956
|
-
return t instanceof Object ? An(Dt(t)) : t.replace("__", e.fieldPrefix);
|
|
957
|
-
}
|
|
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");
|
|
969
|
-
return;
|
|
970
|
-
}
|
|
971
|
-
Ut(t, l);
|
|
972
|
-
}
|
|
973
|
-
}
|
|
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);
|
|
989
|
-
}
|
|
990
|
-
function xe(t) {
|
|
991
|
-
return ut(t) ? "" : ct(t.replace(".", " "));
|
|
992
|
-
}
|
|
993
|
-
function xt(t) {
|
|
994
|
-
return typeof t.title == "function" ? t.title() : t.title;
|
|
995
|
-
}
|
|
996
|
-
function Xn(t, l) {
|
|
997
|
-
return wt(t) ? ln(t, l) : Me(l, t.name, "");
|
|
998
|
-
}
|
|
999
|
-
function ut(t) {
|
|
1000
|
-
return t instanceof Object ? !0 : t.slice(0, e.fieldPrefix.length) === e.fieldPrefix || t.slice(0, 2) === "__";
|
|
1001
|
-
}
|
|
1002
|
-
function Jt(t) {
|
|
1003
|
-
return typeof Je(t) != "undefined";
|
|
1004
|
-
}
|
|
1005
|
-
function Je(t) {
|
|
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];
|
|
1008
|
-
}
|
|
1009
|
-
function ct(t) {
|
|
1010
|
-
return t.replace(/\w+/g, (l) => l.charAt(0).toUpperCase() + l.substring(1).toLowerCase());
|
|
1011
|
-
}
|
|
1012
|
-
function Zt(t, l = "_") {
|
|
1013
|
-
return t.split(l).map((f) => ct(f)).join("");
|
|
1014
|
-
}
|
|
1015
|
-
function ve(t = dt, l = Qe) {
|
|
1016
|
-
const f = ++x;
|
|
1017
|
-
if (ce.value) {
|
|
1018
|
-
vn(f);
|
|
1019
|
-
return;
|
|
1020
|
-
}
|
|
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
|
-
});
|
|
1038
|
-
}
|
|
1039
|
-
function Qt(t, l) {
|
|
1040
|
-
return qn(this, null, function* () {
|
|
1041
|
-
if (e.httpFetch)
|
|
1042
|
-
return e.httpFetch(t, l);
|
|
1043
|
-
if (e.httpMethod === "get")
|
|
1044
|
-
return Dn.get(t, l);
|
|
1045
|
-
{
|
|
1046
|
-
const f = l, { params: m } = f, E = Tn(f, ["params"]);
|
|
1047
|
-
return Dn.post(t, yield m, E);
|
|
1048
|
-
}
|
|
1049
|
-
});
|
|
1050
|
-
}
|
|
1051
|
-
function dt(t) {
|
|
1052
|
-
Yt(t, x);
|
|
1053
|
-
}
|
|
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();
|
|
1062
|
-
}, 80));
|
|
1063
|
-
}
|
|
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));
|
|
1069
|
-
});
|
|
1070
|
-
}
|
|
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")));
|
|
1076
|
-
}
|
|
1077
|
-
function bt() {
|
|
1078
|
-
let t = {};
|
|
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);
|
|
1080
|
-
}
|
|
1081
|
-
function Xt() {
|
|
1082
|
-
var t;
|
|
1083
|
-
return !w.value || ((t = w.value[0]) == null ? void 0 : t.field) == "" ? "" : typeof e.sortParams == "function" ? e.sortParams(w.value) : gt();
|
|
1084
|
-
}
|
|
1085
|
-
function gt() {
|
|
1086
|
-
return w.value.map((t) => `${t.sortField}|${t.direction}`).join(",");
|
|
1087
|
-
}
|
|
1088
|
-
function _t(t) {
|
|
1089
|
-
for (let l in e.appendParams)
|
|
1090
|
-
t[l] = e.appendParams[l];
|
|
1091
|
-
return t;
|
|
1092
|
-
}
|
|
1093
|
-
function Ye(t) {
|
|
1094
|
-
return t.sortField !== null;
|
|
1095
|
-
}
|
|
1096
|
-
function en(t) {
|
|
1097
|
-
if (!Ye(t))
|
|
1098
|
-
return !1;
|
|
1099
|
-
for (let l = 0; l < w.value.length; l++)
|
|
1100
|
-
if (vt(t, l))
|
|
1101
|
-
return l;
|
|
1102
|
-
return !1;
|
|
1103
|
-
}
|
|
1104
|
-
function vt(t, l) {
|
|
1105
|
-
return w.value[l].field === t.name && w.value[l].sortField === t.sortField;
|
|
1106
|
-
}
|
|
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();
|
|
1111
|
-
}
|
|
1112
|
-
function He() {
|
|
1113
|
-
K || Pa(w);
|
|
1114
|
-
}
|
|
1115
|
-
function ht(t, l) {
|
|
1116
|
-
w.value.push({
|
|
1117
|
-
field: t.name,
|
|
1118
|
-
sortField: t.sortField,
|
|
1119
|
-
direction: l || "asc"
|
|
1120
|
-
}), He();
|
|
1121
|
-
}
|
|
1122
|
-
function pt(t) {
|
|
1123
|
-
w.value.splice(t, 1), He();
|
|
1124
|
-
}
|
|
1125
|
-
function yt(t, l) {
|
|
1126
|
-
w.value[t].direction = l, He();
|
|
1127
|
-
}
|
|
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);
|
|
1131
|
-
}
|
|
1132
|
-
function mt(t) {
|
|
1133
|
-
if (w.value.length === 0) {
|
|
1134
|
-
ht(t, "asc");
|
|
1135
|
-
return;
|
|
1136
|
-
}
|
|
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();
|
|
1138
|
-
}
|
|
1139
|
-
function an() {
|
|
1140
|
-
I.value = A([]).value;
|
|
1141
|
-
}
|
|
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());
|
|
1147
|
-
}
|
|
1148
|
-
function wt(t) {
|
|
1149
|
-
return typeof t.formatter == "function";
|
|
1150
|
-
}
|
|
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);
|
|
1154
|
-
}
|
|
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];
|
|
1161
|
-
else {
|
|
1162
|
-
m = f;
|
|
1163
|
-
return;
|
|
1164
|
-
}
|
|
1165
|
-
}), m;
|
|
1166
|
-
}
|
|
1167
|
-
function Pt(t) {
|
|
1168
|
-
St(t) || H.value.push(t);
|
|
1169
|
-
}
|
|
1170
|
-
function kt(t) {
|
|
1171
|
-
H.value = H.value.filter((l) => l !== t);
|
|
1172
|
-
}
|
|
1173
|
-
function St(t) {
|
|
1174
|
-
return H.value.indexOf(t) >= 0;
|
|
1175
|
-
}
|
|
1176
|
-
function on() {
|
|
1177
|
-
H.value = [];
|
|
1178
|
-
}
|
|
1179
|
-
function rn() {
|
|
1180
|
-
O.value > e.firstPage && (O.value -= 1, ve());
|
|
1181
|
-
}
|
|
1182
|
-
function sn() {
|
|
1183
|
-
O.value < C.value.last_page && (O.value += 1, ve());
|
|
1184
|
-
}
|
|
1185
|
-
function un(t) {
|
|
1186
|
-
t != O.value && t >= e.firstPage && t <= C.value.last_page && (O.value = t, ve());
|
|
1187
|
-
}
|
|
1188
|
-
function Ae(t) {
|
|
1189
|
-
return R.value.indexOf(t) >= 0;
|
|
1190
|
-
}
|
|
1191
|
-
function $t(t) {
|
|
1192
|
-
Ae(t) || R.value.push(t), Le();
|
|
1193
|
-
}
|
|
1194
|
-
function Ft(t) {
|
|
1195
|
-
Ae(t) && (R.value.splice(
|
|
1196
|
-
R.value.indexOf(t),
|
|
1197
|
-
1
|
|
1198
|
-
), Ze());
|
|
1199
|
-
}
|
|
1200
|
-
function cn(t) {
|
|
1201
|
-
Ae(t) ? Ft(t) : $t(t);
|
|
1202
|
-
}
|
|
1203
|
-
function dn(t) {
|
|
1204
|
-
t < 0 || t >= h.value.length || (h.value[t].visible = !0);
|
|
1205
|
-
}
|
|
1206
|
-
function fn(t) {
|
|
1207
|
-
t < 0 || t >= h.value.length || (h.value[t].visible = !1);
|
|
1208
|
-
}
|
|
1209
|
-
function bn(t) {
|
|
1210
|
-
t < 0 || t >= h.value.length || (h.value[t].visible = !h.value[t].visible);
|
|
1211
|
-
}
|
|
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, {
|
|
1214
|
-
total: t,
|
|
1215
|
-
per_page: l,
|
|
1216
|
-
current_page: f,
|
|
1217
|
-
last_page: Math.ceil(t / l) || 0,
|
|
1218
|
-
next_page_url: "",
|
|
1219
|
-
prev_page_url: "",
|
|
1220
|
-
from: (f - 1) * l + 1,
|
|
1221
|
-
to: Math.min(f * l, t)
|
|
1222
|
-
};
|
|
1223
|
-
}
|
|
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;
|
|
1227
|
-
}
|
|
1228
|
-
function Be() {
|
|
1229
|
-
let t = !1;
|
|
1230
|
-
w.value.forEach((l) => {
|
|
1231
|
-
const f = l.sortField || l.field;
|
|
1232
|
-
l.sortField !== f && (wa(l, "sortField", f), t = !0);
|
|
1233
|
-
}), t && He();
|
|
1234
|
-
}
|
|
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);
|
|
1245
|
-
}
|
|
1246
|
-
}
|
|
1247
|
-
function ea() {
|
|
1248
|
-
hn(++x);
|
|
1249
|
-
}
|
|
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) {
|
|
1256
|
-
return typeof t == "object" && t !== null;
|
|
1257
|
-
}
|
|
1258
|
-
function yn(t) {
|
|
1259
|
-
return pn(t) && typeof t.then == "function";
|
|
1260
|
-
}
|
|
1261
|
-
function ta(t, l) {
|
|
1262
|
-
return typeof e.rowClass == "function" ? e.rowClass(t, l) : e.rowClass;
|
|
1263
|
-
}
|
|
1264
|
-
function na(t, l) {
|
|
1265
|
-
return typeof e.detailRowClass == "function" ? e.detailRowClass(t, l) : e.detailRowClass;
|
|
1266
|
-
}
|
|
1267
|
-
function aa(t, l, f) {
|
|
1268
|
-
return B("row-clicked", { data: t, index: l, event: f }), !0;
|
|
1269
|
-
}
|
|
1270
|
-
function la(t, l, f) {
|
|
1271
|
-
B("row-dblclicked", { data: t, index: l, event: f });
|
|
1272
|
-
}
|
|
1273
|
-
function oa(t, l, f) {
|
|
1274
|
-
B("detail-row-clicked", { data: t, index: l, event: f });
|
|
1275
|
-
}
|
|
1276
|
-
function ra(t, l, f, m) {
|
|
1277
|
-
B("cell-clicked", { data: t, index: l, field: f, event: m });
|
|
1278
|
-
}
|
|
1279
|
-
function sa(t, l, f, m) {
|
|
1280
|
-
B("cell-dblclicked", { data: t, index: l, field: f, event: m });
|
|
1281
|
-
}
|
|
1282
|
-
function ia(t, l, f, m) {
|
|
1283
|
-
B("cell-rightclicked", { data: t, index: l, field: f, event: m });
|
|
1284
|
-
}
|
|
1285
|
-
function ua(t, l, f) {
|
|
1286
|
-
B("row-mouseover", { data: t, index: l, event: f });
|
|
1287
|
-
}
|
|
1288
|
-
function ca(t, l) {
|
|
1289
|
-
B("field-event", t, l, s == null ? void 0 : s.proxy);
|
|
1290
|
-
}
|
|
1291
|
-
function mn(t, l) {
|
|
1292
|
-
B("header-event", t, l, s == null ? void 0 : s.proxy);
|
|
1293
|
-
}
|
|
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.`);
|
|
1297
|
-
return;
|
|
1298
|
-
}
|
|
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;
|
|
1328
|
-
}
|
|
1329
|
-
f[le] = i[le];
|
|
1330
|
-
}
|
|
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(() => {
|
|
1347
|
-
var t;
|
|
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);
|
|
1354
|
-
})) {
|
|
1355
|
-
lt();
|
|
1356
|
-
return;
|
|
1357
|
-
}
|
|
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);
|
|
1361
|
-
});
|
|
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 });
|
|
1367
|
-
}
|
|
1368
|
-
}), cl = {
|
|
1369
|
-
key: 0,
|
|
1370
|
-
class: "vuetable-head-wrapper"
|
|
1371
|
-
}, dl = {
|
|
1372
|
-
key: 1,
|
|
1373
|
-
class: "vuetable-header-groups"
|
|
1374
|
-
}, fl = ["colspan"], bl = { key: 0 }, gl = {
|
|
1375
|
-
key: 1,
|
|
1376
|
-
class: "vuetable-header-groups"
|
|
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(), {
|
|
1381
|
-
class: [e.tableCss.tableWrapper, { "vuetable-fixed-columns": e.tableContext.fixedColumnsEnabled }]
|
|
1382
|
-
}), [
|
|
1383
|
-
e.isFixedHeader ? (y(), P("div", cl, [
|
|
1384
|
-
z("table", {
|
|
1385
|
-
class: T(["vuetable", "fixed-header", e.tableCss.tableClass, e.tableCss.tableHeaderClass])
|
|
1386
|
-
}, [
|
|
1387
|
-
Y(c, { "is-header": "" }),
|
|
1388
|
-
z("thead", null, [
|
|
1389
|
-
Y(u, {
|
|
1390
|
-
content: e.getSlot("beforeHeader"),
|
|
1391
|
-
scope: e.tableContext.tableLayout
|
|
1392
|
-
}, null, 8, ["content", "scope"]),
|
|
1393
|
-
$a(e.$slots, "tableHeader", Fa(Oa(e.tableContext.tableLayout)), () => [
|
|
1394
|
-
e.tableContext.tableLayout.groups.length && e.getSlot("tableHeaderGroups") ? (y(), fe(u, {
|
|
1395
|
-
key: 0,
|
|
1396
|
-
content: e.getSlot("tableHeaderGroups"),
|
|
1397
|
-
scope: e.tableContext.tableLayout
|
|
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", {
|
|
1400
|
-
key: r.key,
|
|
1401
|
-
style: oe(e.tableContext.tableLayout.getSpanProps(r.fields).style),
|
|
1402
|
-
colspan: r.colspan,
|
|
1403
|
-
class: T([e.tableContext.tableLayout.getSpanProps(r.fields).class, { "vuetable-group-start": r.isGroupStart, "vuetable-group-end": r.isGroupEnd }]),
|
|
1404
|
-
scope: "colgroup"
|
|
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,
|
|
1411
|
-
vuetable: e.tableContext,
|
|
1412
|
-
"onVuetable:headerEvent": e.onHeaderEvent
|
|
1413
|
-
}, null, 40, ["index", "vuetable", "onVuetable:headerEvent"]))), 128))
|
|
1414
|
-
]),
|
|
1415
|
-
Y(u, {
|
|
1416
|
-
content: e.getSlot("afterHeader"),
|
|
1417
|
-
scope: e.tableContext.tableLayout
|
|
1418
|
-
}, null, 8, ["content", "scope"])
|
|
1419
|
-
])
|
|
1420
|
-
], 2)
|
|
1421
|
-
])) : ee("", !0),
|
|
1422
|
-
Y(h, {
|
|
1423
|
-
revision: e.bodyRevision,
|
|
1424
|
-
"on-rendered": e.tableContext.fixedColumnsEnabled ? e.tableContext.scheduleFixedColumns : void 0
|
|
1425
|
-
}, {
|
|
1426
|
-
default: qt(() => [
|
|
1427
|
-
z("div", {
|
|
1428
|
-
ref: "bodyWrapper",
|
|
1429
|
-
class: T([{ "fixed-header": e.isFixedHeader }, "vuetable-body-wrapper"]),
|
|
1430
|
-
style: oe({ height: e.tableHeight })
|
|
1431
|
-
}, [
|
|
1432
|
-
z("table", {
|
|
1433
|
-
class: T(["vuetable", e.isFixedHeader ? "fixed-header" : "", e.tableCss.tableClass, e.tableCss.tableBodyClass])
|
|
1434
|
-
}, [
|
|
1435
|
-
Y(c),
|
|
1436
|
-
e.isFixedHeader ? ee("", !0) : (y(), P("thead", bl, [
|
|
1437
|
-
Y(u, {
|
|
1438
|
-
content: e.getSlot("beforeHeader"),
|
|
1439
|
-
scope: e.tableContext.tableLayout
|
|
1440
|
-
}, null, 8, ["content", "scope"]),
|
|
1441
|
-
Y(u, {
|
|
1442
|
-
content: e.getSlot("tableHeader"),
|
|
1443
|
-
scope: e.tableContext.tableLayout
|
|
1444
|
-
}, {
|
|
1445
|
-
default: qt(() => [
|
|
1446
|
-
e.tableContext.tableLayout.groups.length && e.getSlot("tableHeaderGroups") ? (y(), fe(u, {
|
|
1447
|
-
key: 0,
|
|
1448
|
-
content: e.getSlot("tableHeaderGroups"),
|
|
1449
|
-
scope: e.tableContext.tableLayout
|
|
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", {
|
|
1452
|
-
key: r.key,
|
|
1453
|
-
style: oe(e.tableContext.tableLayout.getSpanProps(r.fields).style),
|
|
1454
|
-
colspan: r.colspan,
|
|
1455
|
-
class: T([e.tableContext.tableLayout.getSpanProps(r.fields).class, { "vuetable-group-start": r.isGroupStart, "vuetable-group-end": r.isGroupEnd }]),
|
|
1456
|
-
scope: "colgroup"
|
|
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,
|
|
1463
|
-
vuetable: e.tableContext,
|
|
1464
|
-
"onVuetable:headerEvent": e.onHeaderEvent
|
|
1465
|
-
}, null, 40, ["index", "vuetable", "onVuetable:headerEvent"]))), 128))
|
|
1466
|
-
]),
|
|
1467
|
-
_: 1
|
|
1468
|
-
}, 8, ["content", "scope"]),
|
|
1469
|
-
Y(u, {
|
|
1470
|
-
content: e.getSlot("afterHeader"),
|
|
1471
|
-
scope: e.tableContext.tableLayout
|
|
1472
|
-
}, null, 8, ["content", "scope"])
|
|
1473
|
-
])),
|
|
1474
|
-
z("tfoot", null, [
|
|
1475
|
-
Y(u, {
|
|
1476
|
-
content: e.getSlot("beforeFooter"),
|
|
1477
|
-
scope: e.tableContext.tableLayout
|
|
1478
|
-
}, null, 8, ["content", "scope"]),
|
|
1479
|
-
Y(u, {
|
|
1480
|
-
content: e.getSlot("tableFooter"),
|
|
1481
|
-
scope: e.tableContext.tableLayout
|
|
1482
|
-
}, null, 8, ["content", "scope"]),
|
|
1483
|
-
Y(u, {
|
|
1484
|
-
content: e.getSlot("afterFooter"),
|
|
1485
|
-
scope: e.tableContext.tableLayout
|
|
1486
|
-
}, null, 8, ["content", "scope"])
|
|
1487
|
-
]),
|
|
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)
|
|
1498
|
-
}, [
|
|
1499
|
-
(y(!0), P(U, null, se(e.tableFields, (v) => (y(), P(U, {
|
|
1500
|
-
key: e.tableContext.getColumnKey(v)
|
|
1501
|
-
}, [
|
|
1502
|
-
v.visible ? (y(), P(U, { key: 0 }, [
|
|
1503
|
-
e.isFieldComponent(v.name) ? (y(), fe(Ge(v.name), {
|
|
1504
|
-
key: e.tableContext.getColumnKey(v),
|
|
1505
|
-
"row-data": r,
|
|
1506
|
-
"row-index": b,
|
|
1507
|
-
"row-field": v,
|
|
1508
|
-
vuetable: e.tableContext,
|
|
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]),
|
|
1512
|
-
"onVuetable:fieldEvent": e.onFieldEvent
|
|
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])
|
|
1518
|
-
}, [
|
|
1519
|
-
Y(u, {
|
|
1520
|
-
content: e.getSlot(v.name),
|
|
1521
|
-
scope: { rowData: r, rowIndex: b, rowField: v }
|
|
1522
|
-
}, null, 8, ["content", "scope"])
|
|
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)
|
|
1531
|
-
}, [
|
|
1532
|
-
Y(u, {
|
|
1533
|
-
content: e.tableContext.getColumnSlot(v.name),
|
|
1534
|
-
scope: { row: r, index: b, column: v }
|
|
1535
|
-
}, null, 8, ["content", "scope"])
|
|
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)
|
|
1547
|
-
], 64))), 128))
|
|
1548
|
-
], 42, pl),
|
|
1549
|
-
e.useDetailRow ? (y(), fe(Ta, {
|
|
1550
|
-
key: "detail:" + e.rowKeys[b],
|
|
1551
|
-
name: e.detailRowTransition
|
|
1552
|
-
}, {
|
|
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)
|
|
1558
|
-
}, [
|
|
1559
|
-
z("td", { colspan: e.countVisibleFields }, [
|
|
1560
|
-
Y(d, {
|
|
1561
|
-
"detail-component": e.detailRowComponent,
|
|
1562
|
-
"row-data": r,
|
|
1563
|
-
"row-index": b,
|
|
1564
|
-
options: e.detailRowOptions
|
|
1565
|
-
}, null, 8, ["detail-component", "row-data", "row-index", "options"])
|
|
1566
|
-
], 8, Pl)
|
|
1567
|
-
], 10, wl)) : ee("", !0)
|
|
1568
|
-
]),
|
|
1569
|
-
_: 2
|
|
1570
|
-
}, 1032, ["name"])) : ee("", !0)
|
|
1571
|
-
], 64))), 128)),
|
|
1572
|
-
e.displayEmptyDataRow ? (y(), P("tr", kl, [
|
|
1573
|
-
z("td", {
|
|
1574
|
-
colspan: e.countVisibleFields,
|
|
1575
|
-
class: "vuetable-empty-result",
|
|
1576
|
-
innerHTML: e.noDataTemplate
|
|
1577
|
-
}, null, 8, Sl)
|
|
1578
|
-
])) : ee("", !0),
|
|
1579
|
-
e.lessThanMinRows ? (y(!0), P(U, { key: 1 }, se(e.blankRows, (r) => (y(), P("tr", {
|
|
1580
|
-
key: r,
|
|
1581
|
-
class: "blank-row"
|
|
1582
|
-
}, [
|
|
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)
|
|
1590
|
-
], 64))), 256))
|
|
1591
|
-
]))), 128)) : ee("", !0)
|
|
1592
|
-
])
|
|
1593
|
-
], 2)
|
|
1594
|
-
], 6)
|
|
1595
|
-
]),
|
|
1596
|
-
_: 1
|
|
1597
|
-
}, 8, ["revision", "on-rendered"])
|
|
1598
|
-
], 16);
|
|
1599
|
-
}
|
|
1600
|
-
const et = /* @__PURE__ */ be(ul, [["render", Fl]]), Ol = Object.assign(Q({
|
|
1601
|
-
name: "VuetableColumn",
|
|
1602
|
-
inheritAttrs: !1,
|
|
1603
|
-
props: {
|
|
1604
|
-
field: { type: String, required: !0 },
|
|
1605
|
-
label: String,
|
|
1606
|
-
sortable: Boolean,
|
|
1607
|
-
sortField: String,
|
|
1608
|
-
width: String,
|
|
1609
|
-
fixed: { type: String, validator: (e) => e === "left" || e === "right" },
|
|
1610
|
-
fixedOrder: Number,
|
|
1611
|
-
visible: { type: Boolean, default: !0 },
|
|
1612
|
-
headerClass: String,
|
|
1613
|
-
cellClass: String,
|
|
1614
|
-
group: { type: [String, Number], default: null }
|
|
1615
|
-
},
|
|
1616
|
-
render: () => null
|
|
1617
|
-
}), { __vuetableColumn: !0 });
|
|
1618
|
-
function Z(e) {
|
|
1619
|
-
return typeof e == "function" ? e() : Sa(e);
|
|
1620
|
-
}
|
|
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(() => {
|
|
1623
|
-
var R, N;
|
|
1624
|
-
return (N = (R = g.value) == null ? void 0 : R.last_page) != null ? N : 0;
|
|
1625
|
-
}), d = k(() => {
|
|
1626
|
-
var R;
|
|
1627
|
-
return ((R = g.value) == null ? void 0 : R.current_page) === Z(s);
|
|
1628
|
-
}), h = k(() => {
|
|
1629
|
-
var R;
|
|
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));
|
|
1634
|
-
}
|
|
1635
|
-
function p(R) {
|
|
1636
|
-
var N;
|
|
1637
|
-
(N = a.emit) == null || N.call(a, "vuetable-pagination:change-page", R);
|
|
1638
|
-
}
|
|
1639
|
-
function C(R) {
|
|
1640
|
-
g.value = R;
|
|
1641
|
-
}
|
|
1642
|
-
function O() {
|
|
1643
|
-
g.value = null;
|
|
1644
|
-
}
|
|
1645
|
-
function H(R) {
|
|
1646
|
-
var N;
|
|
1647
|
-
return R === ((N = g.value) == null ? void 0 : N.current_page);
|
|
1648
|
-
}
|
|
1649
|
-
return $(), {
|
|
1650
|
-
tablePagination: g,
|
|
1651
|
-
customCss: c,
|
|
1652
|
-
eventPrefix: u,
|
|
1653
|
-
lastPage: o,
|
|
1654
|
-
isOnFirstPage: d,
|
|
12
|
+
}, z = (e, t) => x(e, ee(t));
|
|
13
|
+
import { r as $, u as B, _ as H, a as O, V as ae, i as se, b as ie, c as oe, d as le, e as re, f as ue, g as de } from "./chunks/vue3/createVuetable-wZayTXed.js";
|
|
14
|
+
import { h as lt } from "./chunks/vue3/createVuetable-wZayTXed.js";
|
|
15
|
+
import { unref as ce, isRef as _, ref as E, computed as p, defineComponent as T, inject as fe, onMounted as ge, onUpdated as pe, watch as be } from "vue-demi";
|
|
16
|
+
import { withDirectives as he, openBlock as c, createElementBlock as f, normalizeClass as b, createElementVNode as S, Fragment as q, renderList as L, vShow as ve, toDisplayString as G } from "vue";
|
|
17
|
+
import ye from "mitt";
|
|
18
|
+
function v(e) {
|
|
19
|
+
return typeof e == "function" ? e() : ce(e);
|
|
20
|
+
}
|
|
21
|
+
function J(e, t) {
|
|
22
|
+
const n = e === void 0 || _(e) || typeof e == "function" || typeof e == "number" ? { onEachSide: e, firstPage: t } : e, a = () => v(n.onEachSide === void 0 ? 2 : n.onEachSide), i = () => v(n.firstPage === void 0 ? 1 : n.firstPage), s = E(null), o = E({}), l = E("vuetable-pagination:"), u = p(() => {
|
|
23
|
+
var P, w;
|
|
24
|
+
return (w = (P = s.value) == null ? void 0 : P.last_page) != null ? w : 0;
|
|
25
|
+
}), g = p(() => {
|
|
26
|
+
var P;
|
|
27
|
+
return ((P = s.value) == null ? void 0 : P.current_page) === v(i);
|
|
28
|
+
}), h = p(() => {
|
|
29
|
+
var P;
|
|
30
|
+
return ((P = s.value) == null ? void 0 : P.current_page) === u.value;
|
|
31
|
+
}), r = p(() => v(a) * 2 + 1), y = p(() => s.value ? s.value.last_page - v(i) + 1 : 0), C = p(() => y.value < v(a) * 2 + 4), m = p(() => !s.value || s.value.current_page <= v(a) ? 1 : s.value.current_page >= y.value - v(a) ? y.value - v(a) * 2 : s.value.current_page - v(a));
|
|
32
|
+
function D() {
|
|
33
|
+
o.value = $("pagination", v(n.css === void 0 ? {} : n.css), v(n.unstyled === void 0 ? !1 : n.unstyled));
|
|
34
|
+
}
|
|
35
|
+
function F(P) {
|
|
36
|
+
var w;
|
|
37
|
+
(w = n.emit) == null || w.call(n, "vuetable-pagination:change-page", P);
|
|
38
|
+
}
|
|
39
|
+
function j(P) {
|
|
40
|
+
s.value = P;
|
|
41
|
+
}
|
|
42
|
+
function k() {
|
|
43
|
+
s.value = null;
|
|
44
|
+
}
|
|
45
|
+
function Y(P) {
|
|
46
|
+
var w;
|
|
47
|
+
return P === ((w = s.value) == null ? void 0 : w.current_page);
|
|
48
|
+
}
|
|
49
|
+
return D(), {
|
|
50
|
+
tablePagination: s,
|
|
51
|
+
customCss: o,
|
|
52
|
+
eventPrefix: l,
|
|
53
|
+
lastPage: u,
|
|
54
|
+
isOnFirstPage: g,
|
|
1655
55
|
isOnLastPage: h,
|
|
1656
|
-
notEnoughPages:
|
|
56
|
+
notEnoughPages: C,
|
|
1657
57
|
windowSize: r,
|
|
1658
|
-
windowStart:
|
|
1659
|
-
totalPage:
|
|
1660
|
-
setPaginationData:
|
|
1661
|
-
resetData:
|
|
1662
|
-
isCurrentPage:
|
|
1663
|
-
mergeCss:
|
|
1664
|
-
loadPage:
|
|
58
|
+
windowStart: m,
|
|
59
|
+
totalPage: y,
|
|
60
|
+
setPaginationData: j,
|
|
61
|
+
resetData: k,
|
|
62
|
+
isCurrentPage: Y,
|
|
63
|
+
mergeCss: D,
|
|
64
|
+
loadPage: F
|
|
1665
65
|
};
|
|
1666
66
|
}
|
|
1667
|
-
const
|
|
67
|
+
const Pe = T({
|
|
1668
68
|
props: {
|
|
1669
69
|
css: { type: Object, required: !1, default: () => ({}) },
|
|
70
|
+
unstyled: { type: Boolean, required: !1, default: void 0 },
|
|
1670
71
|
onEachSide: { type: Number, required: !1, default: 2 },
|
|
1671
72
|
firstPage: { type: Number, required: !1, default: 1 }
|
|
1672
73
|
},
|
|
1673
74
|
emits: ["vuetable-pagination:change-page"],
|
|
1674
|
-
setup(e, { emit:
|
|
1675
|
-
const a =
|
|
75
|
+
setup(e, { emit: t }) {
|
|
76
|
+
const n = B(e), a = p(() => $("pagination", e.css, n.value)), {
|
|
1676
77
|
tablePagination: i,
|
|
1677
78
|
totalPage: s,
|
|
1678
|
-
lastPage:
|
|
1679
|
-
isOnFirstPage:
|
|
79
|
+
lastPage: o,
|
|
80
|
+
isOnFirstPage: l,
|
|
1680
81
|
isOnLastPage: u,
|
|
1681
|
-
notEnoughPages:
|
|
1682
|
-
windowSize:
|
|
1683
|
-
windowStart:
|
|
1684
|
-
isCurrentPage:
|
|
1685
|
-
setPaginationData:
|
|
1686
|
-
resetData:
|
|
1687
|
-
} =
|
|
1688
|
-
function F
|
|
1689
|
-
|
|
1690
|
-
}
|
|
1691
|
-
return { tableCss: a, tablePagination: i, totalPage: s, lastPage:
|
|
1692
|
-
}
|
|
1693
|
-
}),
|
|
1694
|
-
function
|
|
1695
|
-
return
|
|
1696
|
-
class:
|
|
82
|
+
notEnoughPages: g,
|
|
83
|
+
windowSize: h,
|
|
84
|
+
windowStart: r,
|
|
85
|
+
isCurrentPage: y,
|
|
86
|
+
setPaginationData: C,
|
|
87
|
+
resetData: m
|
|
88
|
+
} = J(() => e.onEachSide, () => e.firstPage);
|
|
89
|
+
function D(F) {
|
|
90
|
+
t("vuetable-pagination:change-page", F);
|
|
91
|
+
}
|
|
92
|
+
return { resolvedUnstyled: n, tableCss: a, tablePagination: i, totalPage: s, lastPage: o, isOnFirstPage: l, isOnLastPage: u, notEnoughPages: g, windowSize: h, windowStart: r, isCurrentPage: y, setPaginationData: C, resetData: m, loadPage: D };
|
|
93
|
+
}
|
|
94
|
+
}), me = { key: 1 }, Ce = { key: 1 }, we = ["innerHTML", "onClick"], ke = ["innerHTML", "onClick"], Se = { key: 1 }, $e = { key: 1 };
|
|
95
|
+
function Te(e, t, n, a, i, s) {
|
|
96
|
+
return he((c(), f("div", {
|
|
97
|
+
class: b([e.tableCss.wrapperClass, { "vuetable-unstyled": e.resolvedUnstyled, "vuetable-styled": !e.resolvedUnstyled }])
|
|
1697
98
|
}, [
|
|
1698
|
-
|
|
1699
|
-
class:
|
|
1700
|
-
|
|
99
|
+
S("a", {
|
|
100
|
+
class: b(["btn-nav", e.tableCss.linkClass, e.isOnFirstPage ? e.tableCss.disabledClass : ""]),
|
|
101
|
+
"aria-label": "First page",
|
|
102
|
+
onClick: t[0] || (t[0] = (o) => e.loadPage(e.firstPage))
|
|
1701
103
|
}, [
|
|
1702
|
-
e.tableCss.icons.first
|
|
104
|
+
e.tableCss.icons && e.tableCss.icons.first ? (c(), f("i", {
|
|
1703
105
|
key: 0,
|
|
1704
|
-
class:
|
|
1705
|
-
}, null, 2)) : (
|
|
106
|
+
class: b([e.tableCss.icons.first])
|
|
107
|
+
}, null, 2)) : (c(), f("span", me, " First "))
|
|
1706
108
|
], 2),
|
|
1707
|
-
|
|
1708
|
-
class:
|
|
1709
|
-
|
|
109
|
+
S("a", {
|
|
110
|
+
class: b(["btn-nav", e.tableCss.linkClass, e.isOnFirstPage ? e.tableCss.disabledClass : ""]),
|
|
111
|
+
"aria-label": "Previous page",
|
|
112
|
+
onClick: t[1] || (t[1] = (o) => e.loadPage("prev"))
|
|
1710
113
|
}, [
|
|
1711
|
-
e.tableCss.icons
|
|
114
|
+
e.tableCss.icons && e.tableCss.icons.prev ? (c(), f("i", {
|
|
1712
115
|
key: 0,
|
|
1713
|
-
class:
|
|
1714
|
-
}, null, 2)) : (
|
|
116
|
+
class: b([e.tableCss.icons.prev])
|
|
117
|
+
}, null, 2)) : (c(), f("span", Ce, " Previous "))
|
|
1715
118
|
], 2),
|
|
1716
|
-
e.notEnoughPages ? (
|
|
1717
|
-
key:
|
|
1718
|
-
class:
|
|
1719
|
-
innerHTML:
|
|
1720
|
-
onClick: (
|
|
1721
|
-
}, null, 10,
|
|
1722
|
-
key:
|
|
1723
|
-
class:
|
|
1724
|
-
innerHTML: e.windowStart +
|
|
1725
|
-
onClick: (
|
|
1726
|
-
}, null, 10,
|
|
1727
|
-
|
|
1728
|
-
class:
|
|
1729
|
-
|
|
119
|
+
e.notEnoughPages ? (c(!0), f(q, { key: 0 }, L(e.totalPage, (o, l) => (c(), f("a", {
|
|
120
|
+
key: l,
|
|
121
|
+
class: b([e.tableCss.pageClass, e.isCurrentPage(l + e.firstPage) ? e.tableCss.activeClass : ""]),
|
|
122
|
+
innerHTML: o,
|
|
123
|
+
onClick: (u) => e.loadPage(l + e.firstPage)
|
|
124
|
+
}, null, 10, we))), 128)) : (c(!0), f(q, { key: 1 }, L(e.windowSize, (o, l) => (c(), f("a", {
|
|
125
|
+
key: l,
|
|
126
|
+
class: b([e.tableCss.pageClass, e.isCurrentPage(e.windowStart + l + e.firstPage - 1) ? e.tableCss.activeClass : ""]),
|
|
127
|
+
innerHTML: e.windowStart + o - 1,
|
|
128
|
+
onClick: (u) => e.loadPage(e.windowStart + l + e.firstPage - 1)
|
|
129
|
+
}, null, 10, ke))), 128)),
|
|
130
|
+
S("a", {
|
|
131
|
+
class: b(["btn-nav", e.tableCss.linkClass, e.isOnLastPage ? e.tableCss.disabledClass : ""]),
|
|
132
|
+
"aria-label": "Next page",
|
|
133
|
+
onClick: t[2] || (t[2] = (o) => e.loadPage("next"))
|
|
1730
134
|
}, [
|
|
1731
|
-
e.tableCss.icons.next
|
|
135
|
+
e.tableCss.icons && e.tableCss.icons.next ? (c(), f("i", {
|
|
1732
136
|
key: 0,
|
|
1733
|
-
class:
|
|
1734
|
-
}, null, 2)) : (
|
|
137
|
+
class: b([e.tableCss.icons.next])
|
|
138
|
+
}, null, 2)) : (c(), f("span", Se, " Next "))
|
|
1735
139
|
], 2),
|
|
1736
|
-
|
|
1737
|
-
class:
|
|
1738
|
-
|
|
140
|
+
S("a", {
|
|
141
|
+
class: b(["btn-nav", e.tableCss.linkClass, e.isOnLastPage ? e.tableCss.disabledClass : ""]),
|
|
142
|
+
"aria-label": "Last page",
|
|
143
|
+
onClick: t[3] || (t[3] = (o) => e.loadPage(e.lastPage))
|
|
1739
144
|
}, [
|
|
1740
|
-
e.tableCss.icons.last
|
|
145
|
+
e.tableCss.icons && e.tableCss.icons.last ? (c(), f("i", {
|
|
1741
146
|
key: 0,
|
|
1742
|
-
class:
|
|
1743
|
-
}, null, 2)) : (
|
|
147
|
+
class: b([e.tableCss.icons.last])
|
|
148
|
+
}, null, 2)) : (c(), f("span", $e, " Last "))
|
|
1744
149
|
], 2)
|
|
1745
150
|
], 2)), [
|
|
1746
|
-
[
|
|
151
|
+
[ve, e.tablePagination && e.lastPage > e.firstPage]
|
|
1747
152
|
]);
|
|
1748
153
|
}
|
|
1749
|
-
const
|
|
154
|
+
const De = /* @__PURE__ */ H(Pe, [["render", Te]]), Fe = T({
|
|
1750
155
|
props: {
|
|
1751
156
|
css: { type: Object, required: !1, default: () => ({}) },
|
|
157
|
+
unstyled: { type: Boolean, required: !1, default: void 0 },
|
|
1752
158
|
pageText: { type: String, required: !1, default: "Page" },
|
|
1753
159
|
onEachSide: { type: Number, required: !1, default: 2 },
|
|
1754
160
|
firstPage: { type: Number, required: !1, default: 1 }
|
|
1755
161
|
},
|
|
1756
162
|
emits: ["vuetable-pagination:change-page"],
|
|
1757
|
-
setup(e, { emit:
|
|
1758
|
-
const a =
|
|
163
|
+
setup(e, { emit: t }) {
|
|
164
|
+
const n = ye(), a = B(e), i = p(() => $("pagination", e.css, a.value)), {
|
|
1759
165
|
tablePagination: s,
|
|
1760
|
-
totalPage:
|
|
1761
|
-
lastPage:
|
|
166
|
+
totalPage: o,
|
|
167
|
+
lastPage: l,
|
|
1762
168
|
isOnFirstPage: u,
|
|
1763
|
-
isOnLastPage:
|
|
1764
|
-
notEnoughPages:
|
|
1765
|
-
windowSize:
|
|
1766
|
-
windowStart:
|
|
1767
|
-
isCurrentPage:
|
|
1768
|
-
setPaginationData:
|
|
1769
|
-
resetData:
|
|
1770
|
-
} =
|
|
1771
|
-
function
|
|
1772
|
-
|
|
1773
|
-
}
|
|
1774
|
-
function
|
|
1775
|
-
|
|
1776
|
-
}
|
|
1777
|
-
return
|
|
1778
|
-
|
|
1779
|
-
}), {
|
|
1780
|
-
}
|
|
1781
|
-
}),
|
|
1782
|
-
function
|
|
1783
|
-
return
|
|
1784
|
-
class:
|
|
169
|
+
isOnLastPage: g,
|
|
170
|
+
notEnoughPages: h,
|
|
171
|
+
windowSize: r,
|
|
172
|
+
windowStart: y,
|
|
173
|
+
isCurrentPage: C,
|
|
174
|
+
setPaginationData: m,
|
|
175
|
+
resetData: D
|
|
176
|
+
} = J(() => e.onEachSide, () => e.firstPage);
|
|
177
|
+
function F(k) {
|
|
178
|
+
t("vuetable-pagination:change-page", k);
|
|
179
|
+
}
|
|
180
|
+
function j(k) {
|
|
181
|
+
F(k.target.selectedIndex + e.firstPage);
|
|
182
|
+
}
|
|
183
|
+
return n.on("vuetable:pagination-data", (k) => {
|
|
184
|
+
m(k);
|
|
185
|
+
}), { resolvedUnstyled: a, emitter: n, tableCss: i, tablePagination: s, totalPage: o, lastPage: l, isOnFirstPage: u, isOnLastPage: g, notEnoughPages: h, windowSize: r, windowStart: y, isCurrentPage: C, setPaginationData: m, resetData: D, loadPage: F, onPageSelected: j };
|
|
186
|
+
}
|
|
187
|
+
}), Ee = { key: 1 }, Ie = ["value", "selected"], je = { key: 1 };
|
|
188
|
+
function Ue(e, t, n, a, i, s) {
|
|
189
|
+
return c(), f("div", {
|
|
190
|
+
class: b([e.tableCss.wrapperClass, { "vuetable-unstyled": e.resolvedUnstyled, "vuetable-styled": !e.resolvedUnstyled }])
|
|
1785
191
|
}, [
|
|
1786
|
-
|
|
1787
|
-
class:
|
|
1788
|
-
|
|
192
|
+
S("a", {
|
|
193
|
+
class: b([e.tableCss.linkClass, { [e.tableCss.disabledClass]: e.isOnFirstPage }]),
|
|
194
|
+
"aria-label": "Previous page",
|
|
195
|
+
onClick: t[0] || (t[0] = (o) => e.loadPage("prev"))
|
|
1789
196
|
}, [
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
197
|
+
e.tableCss.icons && e.tableCss.icons.prev ? (c(), f("i", {
|
|
198
|
+
key: 0,
|
|
199
|
+
class: b(e.tableCss.icons.prev)
|
|
200
|
+
}, null, 2)) : (c(), f("span", Ee, " Previous "))
|
|
1793
201
|
], 2),
|
|
1794
|
-
|
|
1795
|
-
class:
|
|
1796
|
-
onChange:
|
|
202
|
+
S("select", {
|
|
203
|
+
class: b(["vuetable-pagination-dropdown", e.tableCss.dropdownClass]),
|
|
204
|
+
onChange: t[1] || (t[1] = (o) => e.onPageSelected(o))
|
|
1797
205
|
}, [
|
|
1798
|
-
(
|
|
1799
|
-
key:
|
|
1800
|
-
class:
|
|
1801
|
-
value:
|
|
1802
|
-
selected: e.isCurrentPage(
|
|
1803
|
-
},
|
|
206
|
+
(c(!0), f(q, null, L(e.totalPage, (o, l) => (c(), f("option", {
|
|
207
|
+
key: o,
|
|
208
|
+
class: b([e.tableCss.pageClass]),
|
|
209
|
+
value: l + e.firstPage,
|
|
210
|
+
selected: e.isCurrentPage(l + e.firstPage)
|
|
211
|
+
}, G(e.pageText) + " " + G(o), 11, Ie))), 128))
|
|
1804
212
|
], 34),
|
|
1805
|
-
|
|
1806
|
-
class:
|
|
1807
|
-
|
|
213
|
+
S("a", {
|
|
214
|
+
class: b([e.tableCss.linkClass, { [e.tableCss.disabledClass]: e.isOnLastPage }]),
|
|
215
|
+
"aria-label": "Next page",
|
|
216
|
+
onClick: t[2] || (t[2] = (o) => e.loadPage("next"))
|
|
1808
217
|
}, [
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
|
|
218
|
+
e.tableCss.icons && e.tableCss.icons.next ? (c(), f("i", {
|
|
219
|
+
key: 0,
|
|
220
|
+
class: b(e.tableCss.icons.next)
|
|
221
|
+
}, null, 2)) : (c(), f("span", je, " Next "))
|
|
1812
222
|
], 2)
|
|
1813
223
|
], 2);
|
|
1814
224
|
}
|
|
1815
|
-
const
|
|
1816
|
-
function
|
|
1817
|
-
const
|
|
1818
|
-
function
|
|
1819
|
-
|
|
225
|
+
const qe = /* @__PURE__ */ H(Fe, [["render", Ue]]);
|
|
226
|
+
function Le(e, t) {
|
|
227
|
+
const n = e === void 0 || _(e) || typeof e == "function" || typeof e == "string" ? { noDataTemplate: e, infoTemplate: t } : e, a = () => v(n.noDataTemplate === void 0 ? "No relevant data" : n.noDataTemplate), i = () => v(n.infoTemplate === void 0 ? "Displaying {from} to {to} of {total} items" : n.infoTemplate), s = E(null), o = E({}), l = p(() => s.value == null || s.value.total == 0), u = p(() => l.value ? v(a) : v(i).replace("{from}", `${s.value.from || 0}`).replace("{to}", `${s.value.to || 0}`).replace("{total}", `${s.value.total || 0}`));
|
|
228
|
+
function g() {
|
|
229
|
+
o.value = $("paginationInfo", v(n.css === void 0 ? {} : n.css), v(n.unstyled === void 0 ? !1 : n.unstyled));
|
|
1820
230
|
}
|
|
1821
|
-
function h(
|
|
1822
|
-
|
|
231
|
+
function h(C) {
|
|
232
|
+
s.value = C;
|
|
1823
233
|
}
|
|
1824
234
|
function r() {
|
|
1825
|
-
|
|
235
|
+
s.value = null;
|
|
1826
236
|
}
|
|
1827
|
-
function
|
|
1828
|
-
var
|
|
1829
|
-
return
|
|
237
|
+
function y(C) {
|
|
238
|
+
var m;
|
|
239
|
+
return C === ((m = s.value) == null ? void 0 : m.current_page);
|
|
1830
240
|
}
|
|
1831
|
-
return
|
|
1832
|
-
tablePagination:
|
|
1833
|
-
customCss:
|
|
1834
|
-
paginationInfo:
|
|
241
|
+
return g(), {
|
|
242
|
+
tablePagination: s,
|
|
243
|
+
customCss: o,
|
|
244
|
+
paginationInfo: u,
|
|
1835
245
|
setPaginationData: h,
|
|
1836
246
|
resetData: r,
|
|
1837
|
-
isCurrentPage:
|
|
1838
|
-
mergeCss:
|
|
247
|
+
isCurrentPage: y,
|
|
248
|
+
mergeCss: g
|
|
1839
249
|
};
|
|
1840
250
|
}
|
|
1841
|
-
const
|
|
251
|
+
const Ne = T({
|
|
1842
252
|
props: {
|
|
1843
253
|
css: { type: null, required: !1, default: () => ({}) },
|
|
254
|
+
unstyled: { type: Boolean, required: !1, default: void 0 },
|
|
1844
255
|
infoTemplate: { type: String, required: !1, default: "Displaying {from} to {to} of {total} items" },
|
|
1845
256
|
noDataTemplate: { type: String, required: !1, default: "No relevant data" }
|
|
1846
257
|
},
|
|
1847
258
|
setup(e) {
|
|
1848
259
|
const {
|
|
1849
|
-
tablePagination:
|
|
1850
|
-
paginationInfo:
|
|
1851
|
-
setPaginationData:
|
|
1852
|
-
resetData:
|
|
1853
|
-
} =
|
|
1854
|
-
return { tablePagination:
|
|
1855
|
-
}
|
|
1856
|
-
}),
|
|
1857
|
-
function
|
|
1858
|
-
return
|
|
1859
|
-
class:
|
|
260
|
+
tablePagination: t,
|
|
261
|
+
paginationInfo: n,
|
|
262
|
+
setPaginationData: a,
|
|
263
|
+
resetData: i
|
|
264
|
+
} = Le(() => e.noDataTemplate, () => e.infoTemplate), s = B(e), o = p(() => $("paginationInfo", e.css, s.value));
|
|
265
|
+
return { resolvedUnstyled: s, tablePagination: t, paginationInfo: n, setPaginationData: a, resetData: i, tableCss: o };
|
|
266
|
+
}
|
|
267
|
+
}), Ae = ["innerHTML"];
|
|
268
|
+
function Be(e, t, n, a, i, s) {
|
|
269
|
+
return c(), f("div", {
|
|
270
|
+
class: b(["vuetable-pagination-info", e.tableCss.infoClass, { "vuetable-unstyled": e.resolvedUnstyled, "vuetable-styled": !e.resolvedUnstyled }]),
|
|
1860
271
|
innerHTML: e.paginationInfo
|
|
1861
|
-
}, null, 10,
|
|
272
|
+
}, null, 10, Ae);
|
|
1862
273
|
}
|
|
1863
|
-
const
|
|
274
|
+
const He = /* @__PURE__ */ H(Ne, [["render", Be]]), Re = T({
|
|
1864
275
|
props: {
|
|
1865
276
|
rowData: {
|
|
1866
277
|
type: Object,
|
|
@@ -1885,11 +296,11 @@ const Kl = /* @__PURE__ */ be(Gl, [["render", zl]]), Ul = Q({
|
|
|
1885
296
|
default: null
|
|
1886
297
|
}
|
|
1887
298
|
}
|
|
1888
|
-
}),
|
|
1889
|
-
mixins: [
|
|
299
|
+
}), tt = T({
|
|
300
|
+
mixins: [Re],
|
|
1890
301
|
methods: {
|
|
1891
|
-
toggleCheckbox(e,
|
|
1892
|
-
this.vuetable.onCheckboxToggled(
|
|
302
|
+
toggleCheckbox(e, t) {
|
|
303
|
+
this.vuetable.onCheckboxToggled(t.target.checked, this.rowField.name, e);
|
|
1893
304
|
},
|
|
1894
305
|
toggleAllCheckbox(e) {
|
|
1895
306
|
this.vuetable.onCheckboxToggledAll(e.target.checked);
|
|
@@ -1898,14 +309,15 @@ const Kl = /* @__PURE__ */ be(Gl, [["render", zl]]), Ul = Q({
|
|
|
1898
309
|
return this.vuetable.isSelectedRow(e[this.vuetable.trackBy]);
|
|
1899
310
|
},
|
|
1900
311
|
isAllItemsInCurrentPageSelected() {
|
|
1901
|
-
var
|
|
312
|
+
var a;
|
|
1902
313
|
if (!this.vuetable.tableData) return;
|
|
1903
|
-
let e = this.vuetable.trackBy,
|
|
1904
|
-
return
|
|
314
|
+
let e = this.vuetable.trackBy, t = (a = this.$el) == null ? void 0 : a.querySelector("input[type=checkbox]"), n = this.vuetable.tableData.filter((i) => this.vuetable.isSelectedRow(i[e]));
|
|
315
|
+
return n.length <= 0 ? (t && (t.indeterminate = !1), !1) : n.length < this.vuetable.tableData.length ? (t && (t.indeterminate = !0), !0) : (t && (t.indeterminate = !1), !0);
|
|
1905
316
|
}
|
|
1906
317
|
}
|
|
1907
|
-
}),
|
|
318
|
+
}), nt = T({
|
|
1908
319
|
props: {
|
|
320
|
+
unstyled: { type: Boolean, default: void 0 },
|
|
1909
321
|
css: {
|
|
1910
322
|
type: Object,
|
|
1911
323
|
default: () => ({})
|
|
@@ -1926,6 +338,10 @@ const Kl = /* @__PURE__ */ be(Gl, [["render", zl]]), Ul = Q({
|
|
|
1926
338
|
};
|
|
1927
339
|
},
|
|
1928
340
|
computed: {
|
|
341
|
+
resolvedUnstyled() {
|
|
342
|
+
var e, t;
|
|
343
|
+
return O(this.unstyled, this, (t = (e = this.$) == null ? void 0 : e.appContext) == null ? void 0 : t.provides);
|
|
344
|
+
},
|
|
1929
345
|
paginationInfo() {
|
|
1930
346
|
return this.tablePagination == null || this.tablePagination.total === 0 ? this.noDataTemplate : this.infoTemplate.replace("{from}", `${this.tablePagination.from || 0}`).replace("{to}", `${this.tablePagination.to || 0}`).replace("{total}", `${this.tablePagination.total || 0}`);
|
|
1931
347
|
}
|
|
@@ -1933,9 +349,14 @@ const Kl = /* @__PURE__ */ be(Gl, [["render", zl]]), Ul = Q({
|
|
|
1933
349
|
created() {
|
|
1934
350
|
this.mergeCss();
|
|
1935
351
|
},
|
|
352
|
+
watch: {
|
|
353
|
+
resolvedUnstyled() {
|
|
354
|
+
this.mergeCss();
|
|
355
|
+
}
|
|
356
|
+
},
|
|
1936
357
|
methods: {
|
|
1937
358
|
mergeCss() {
|
|
1938
|
-
this.customCss =
|
|
359
|
+
this.customCss = $("paginationInfo", this.css, this.resolvedUnstyled);
|
|
1939
360
|
},
|
|
1940
361
|
setPaginationData(e) {
|
|
1941
362
|
this.tablePagination = e;
|
|
@@ -1944,11 +365,12 @@ const Kl = /* @__PURE__ */ be(Gl, [["render", zl]]), Ul = Q({
|
|
|
1944
365
|
this.tablePagination = null;
|
|
1945
366
|
}
|
|
1946
367
|
}
|
|
1947
|
-
}),
|
|
368
|
+
}), at = T({
|
|
1948
369
|
emits: [
|
|
1949
370
|
"vuetable-pagination:change-page"
|
|
1950
371
|
],
|
|
1951
372
|
props: {
|
|
373
|
+
unstyled: { type: Boolean, default: void 0 },
|
|
1952
374
|
css: {
|
|
1953
375
|
type: Object,
|
|
1954
376
|
default() {
|
|
@@ -1977,6 +399,10 @@ const Kl = /* @__PURE__ */ be(Gl, [["render", zl]]), Ul = Q({
|
|
|
1977
399
|
this.mergeCss();
|
|
1978
400
|
},
|
|
1979
401
|
computed: {
|
|
402
|
+
resolvedUnstyled() {
|
|
403
|
+
var e, t;
|
|
404
|
+
return O(this.unstyled, this, (t = (e = this.$) == null ? void 0 : e.appContext) == null ? void 0 : t.provides);
|
|
405
|
+
},
|
|
1980
406
|
totalPage() {
|
|
1981
407
|
return this.tablePagination === null ? 0 : this.tablePagination.last_page - this.firstPage + 1;
|
|
1982
408
|
},
|
|
@@ -1999,9 +425,14 @@ const Kl = /* @__PURE__ */ be(Gl, [["render", zl]]), Ul = Q({
|
|
|
1999
425
|
return !this.tablePagination || this.tablePagination.current_page <= this.onEachSide ? 1 : this.tablePagination.current_page >= this.totalPage - this.onEachSide ? this.totalPage - this.onEachSide * 2 : this.tablePagination.current_page - this.onEachSide;
|
|
2000
426
|
}
|
|
2001
427
|
},
|
|
428
|
+
watch: {
|
|
429
|
+
resolvedUnstyled() {
|
|
430
|
+
this.mergeCss();
|
|
431
|
+
}
|
|
432
|
+
},
|
|
2002
433
|
methods: {
|
|
2003
434
|
mergeCss() {
|
|
2004
|
-
this.customCss =
|
|
435
|
+
this.customCss = $("pagination", this.css, this.resolvedUnstyled);
|
|
2005
436
|
},
|
|
2006
437
|
loadPage(e) {
|
|
2007
438
|
this.$emit("vuetable-pagination:change-page", e);
|
|
@@ -2017,373 +448,333 @@ const Kl = /* @__PURE__ */ be(Gl, [["render", zl]]), Ul = Q({
|
|
|
2017
448
|
}
|
|
2018
449
|
}
|
|
2019
450
|
});
|
|
2020
|
-
function
|
|
2021
|
-
const
|
|
451
|
+
function Me(e) {
|
|
452
|
+
const t = fe("vuetable", null);
|
|
2022
453
|
return {
|
|
2023
|
-
rowData:
|
|
2024
|
-
var
|
|
2025
|
-
return (
|
|
454
|
+
rowData: p(() => {
|
|
455
|
+
var n;
|
|
456
|
+
return (n = e.rowData) != null ? n : null;
|
|
2026
457
|
}),
|
|
2027
|
-
rowIndex:
|
|
2028
|
-
rowField:
|
|
2029
|
-
isHeader:
|
|
2030
|
-
var
|
|
2031
|
-
return (
|
|
458
|
+
rowIndex: p(() => e.rowIndex),
|
|
459
|
+
rowField: p(() => e.rowField),
|
|
460
|
+
isHeader: p(() => {
|
|
461
|
+
var n;
|
|
462
|
+
return (n = e.isHeader) != null ? n : !1;
|
|
2032
463
|
}),
|
|
2033
|
-
title:
|
|
2034
|
-
var
|
|
2035
|
-
return (
|
|
464
|
+
title: p(() => {
|
|
465
|
+
var n;
|
|
466
|
+
return (n = e.title) != null ? n : "";
|
|
2036
467
|
}),
|
|
2037
|
-
vuetable:
|
|
2038
|
-
var
|
|
2039
|
-
return (
|
|
468
|
+
vuetable: p(() => {
|
|
469
|
+
var n;
|
|
470
|
+
return (n = e.vuetable) != null ? n : t;
|
|
2040
471
|
})
|
|
2041
472
|
};
|
|
2042
473
|
}
|
|
2043
|
-
function
|
|
2044
|
-
const
|
|
2045
|
-
function
|
|
2046
|
-
const r =
|
|
474
|
+
function st(e) {
|
|
475
|
+
const t = Me(e);
|
|
476
|
+
function n() {
|
|
477
|
+
const r = t.vuetable.value;
|
|
2047
478
|
if (!r)
|
|
2048
479
|
throw new TypeError('useVuetableFieldCheckbox requires a vuetable prop or a "vuetable" provider.');
|
|
2049
480
|
return r;
|
|
2050
481
|
}
|
|
2051
|
-
|
|
2052
|
-
const
|
|
2053
|
-
const r =
|
|
2054
|
-
return (r.tableData || []).filter((
|
|
2055
|
-
}),
|
|
482
|
+
n();
|
|
483
|
+
const a = E(null), i = p(() => {
|
|
484
|
+
const r = n();
|
|
485
|
+
return (r.tableData || []).filter((y) => r.isSelectedRow(y[r.trackBy])).length;
|
|
486
|
+
}), s = p(() => {
|
|
2056
487
|
var r;
|
|
2057
|
-
return
|
|
488
|
+
return i.value > 0 && i.value < (((r = n().tableData) == null ? void 0 : r.length) || 0);
|
|
2058
489
|
});
|
|
2059
|
-
function
|
|
2060
|
-
var
|
|
490
|
+
function o(r, y) {
|
|
491
|
+
var m;
|
|
2061
492
|
if (!r) return;
|
|
2062
|
-
|
|
493
|
+
n().onCheckboxToggled(y.target.checked, (m = t.rowField.value) == null ? void 0 : m.name, r);
|
|
2063
494
|
}
|
|
2064
|
-
function
|
|
2065
|
-
|
|
495
|
+
function l(r) {
|
|
496
|
+
n().onCheckboxToggledAll(r.target.checked);
|
|
2066
497
|
}
|
|
2067
|
-
function
|
|
498
|
+
function u(r) {
|
|
2068
499
|
if (!r) return !1;
|
|
2069
|
-
const
|
|
2070
|
-
return
|
|
500
|
+
const y = n();
|
|
501
|
+
return y.isSelectedRow(r[y.trackBy]);
|
|
2071
502
|
}
|
|
2072
|
-
function
|
|
2073
|
-
if (
|
|
2074
|
-
return
|
|
503
|
+
function g() {
|
|
504
|
+
if (n().tableData)
|
|
505
|
+
return i.value > 0;
|
|
2075
506
|
}
|
|
2076
507
|
function h() {
|
|
2077
|
-
|
|
2078
|
-
}
|
|
2079
|
-
return
|
|
2080
|
-
checkbox:
|
|
2081
|
-
selectedCount:
|
|
2082
|
-
isIndeterminate:
|
|
2083
|
-
toggleCheckbox:
|
|
2084
|
-
toggleAllCheckbox:
|
|
2085
|
-
isSelected:
|
|
2086
|
-
isAllItemsInCurrentPageSelected:
|
|
508
|
+
a.value && (a.value.indeterminate = t.isHeader.value && s.value);
|
|
509
|
+
}
|
|
510
|
+
return ge(h), pe(h), be([a, t.isHeader, s], h, { flush: "post" }), z(V({}, t), {
|
|
511
|
+
checkbox: a,
|
|
512
|
+
selectedCount: i,
|
|
513
|
+
isIndeterminate: s,
|
|
514
|
+
toggleCheckbox: o,
|
|
515
|
+
toggleAllCheckbox: l,
|
|
516
|
+
isSelected: u,
|
|
517
|
+
isAllItemsInCurrentPageSelected: g
|
|
2087
518
|
});
|
|
2088
519
|
}
|
|
2089
|
-
function
|
|
2090
|
-
var
|
|
520
|
+
function Ve(e) {
|
|
521
|
+
var t = this.constructor;
|
|
2091
522
|
return this.then(
|
|
2092
|
-
function(
|
|
2093
|
-
return
|
|
2094
|
-
return
|
|
523
|
+
function(n) {
|
|
524
|
+
return t.resolve(e()).then(function() {
|
|
525
|
+
return n;
|
|
2095
526
|
});
|
|
2096
527
|
},
|
|
2097
|
-
function(
|
|
2098
|
-
return
|
|
2099
|
-
return
|
|
528
|
+
function(n) {
|
|
529
|
+
return t.resolve(e()).then(function() {
|
|
530
|
+
return t.reject(n);
|
|
2100
531
|
});
|
|
2101
532
|
}
|
|
2102
533
|
);
|
|
2103
534
|
}
|
|
2104
|
-
function
|
|
2105
|
-
var
|
|
2106
|
-
return new
|
|
535
|
+
function ze(e) {
|
|
536
|
+
var t = this;
|
|
537
|
+
return new t(function(n, a) {
|
|
2107
538
|
if (!(e && typeof e.length != "undefined"))
|
|
2108
|
-
return
|
|
539
|
+
return a(
|
|
2109
540
|
new TypeError(
|
|
2110
541
|
typeof e + " " + e + " is not iterable(cannot read property Symbol(Symbol.iterator))"
|
|
2111
542
|
)
|
|
2112
543
|
);
|
|
2113
|
-
var
|
|
2114
|
-
if (
|
|
2115
|
-
var
|
|
2116
|
-
function
|
|
2117
|
-
if (
|
|
2118
|
-
var h =
|
|
544
|
+
var i = Array.prototype.slice.call(e);
|
|
545
|
+
if (i.length === 0) return n([]);
|
|
546
|
+
var s = i.length;
|
|
547
|
+
function o(u, g) {
|
|
548
|
+
if (g && (typeof g == "object" || typeof g == "function")) {
|
|
549
|
+
var h = g.then;
|
|
2119
550
|
if (typeof h == "function") {
|
|
2120
551
|
h.call(
|
|
2121
|
-
|
|
552
|
+
g,
|
|
2122
553
|
function(r) {
|
|
2123
|
-
|
|
554
|
+
o(u, r);
|
|
2124
555
|
},
|
|
2125
556
|
function(r) {
|
|
2126
|
-
|
|
557
|
+
i[u] = { status: "rejected", reason: r }, --s === 0 && n(i);
|
|
2127
558
|
}
|
|
2128
559
|
);
|
|
2129
560
|
return;
|
|
2130
561
|
}
|
|
2131
562
|
}
|
|
2132
|
-
|
|
563
|
+
i[u] = { status: "fulfilled", value: g }, --s === 0 && n(i);
|
|
2133
564
|
}
|
|
2134
|
-
for (var
|
|
2135
|
-
|
|
565
|
+
for (var l = 0; l < i.length; l++)
|
|
566
|
+
o(l, i[l]);
|
|
2136
567
|
});
|
|
2137
568
|
}
|
|
2138
|
-
function
|
|
2139
|
-
this.name = "AggregateError", this.errors = e, this.message =
|
|
569
|
+
function K(e, t) {
|
|
570
|
+
this.name = "AggregateError", this.errors = e, this.message = t || "";
|
|
2140
571
|
}
|
|
2141
|
-
|
|
2142
|
-
function
|
|
2143
|
-
var
|
|
2144
|
-
return new
|
|
572
|
+
K.prototype = Error.prototype;
|
|
573
|
+
function Ge(e) {
|
|
574
|
+
var t = this;
|
|
575
|
+
return new t(function(n, a) {
|
|
2145
576
|
if (!(e && typeof e.length != "undefined"))
|
|
2146
|
-
return
|
|
2147
|
-
var
|
|
2148
|
-
if (
|
|
2149
|
-
for (var
|
|
577
|
+
return a(new TypeError("Promise.any accepts an array"));
|
|
578
|
+
var i = Array.prototype.slice.call(e);
|
|
579
|
+
if (i.length === 0) return a();
|
|
580
|
+
for (var s = [], o = 0; o < i.length; o++)
|
|
2150
581
|
try {
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
new
|
|
2154
|
-
|
|
582
|
+
t.resolve(i[o]).then(n).catch(function(l) {
|
|
583
|
+
s.push(l), s.length === i.length && a(
|
|
584
|
+
new K(
|
|
585
|
+
s,
|
|
2155
586
|
"All promises were rejected"
|
|
2156
587
|
)
|
|
2157
588
|
);
|
|
2158
589
|
});
|
|
2159
|
-
} catch (
|
|
2160
|
-
|
|
590
|
+
} catch (l) {
|
|
591
|
+
a(l);
|
|
2161
592
|
}
|
|
2162
593
|
});
|
|
2163
594
|
}
|
|
2164
|
-
var
|
|
2165
|
-
function
|
|
595
|
+
var Oe = setTimeout;
|
|
596
|
+
function Q(e) {
|
|
2166
597
|
return !!(e && typeof e.length != "undefined");
|
|
2167
598
|
}
|
|
2168
|
-
function
|
|
599
|
+
function _e() {
|
|
2169
600
|
}
|
|
2170
|
-
function
|
|
601
|
+
function Je(e, t) {
|
|
2171
602
|
return function() {
|
|
2172
|
-
e.apply(
|
|
603
|
+
e.apply(t, arguments);
|
|
2173
604
|
};
|
|
2174
605
|
}
|
|
2175
|
-
function
|
|
2176
|
-
if (!(this instanceof
|
|
606
|
+
function d(e) {
|
|
607
|
+
if (!(this instanceof d))
|
|
2177
608
|
throw new TypeError("Promises must be constructed via new");
|
|
2178
609
|
if (typeof e != "function") throw new TypeError("not a function");
|
|
2179
|
-
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [],
|
|
610
|
+
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], X(e, this);
|
|
2180
611
|
}
|
|
2181
|
-
function
|
|
612
|
+
function W(e, t) {
|
|
2182
613
|
for (; e._state === 3; )
|
|
2183
614
|
e = e._value;
|
|
2184
615
|
if (e._state === 0) {
|
|
2185
|
-
e._deferreds.push(
|
|
616
|
+
e._deferreds.push(t);
|
|
2186
617
|
return;
|
|
2187
618
|
}
|
|
2188
|
-
e._handled = !0,
|
|
2189
|
-
var
|
|
2190
|
-
if (
|
|
2191
|
-
(e._state === 1 ?
|
|
619
|
+
e._handled = !0, d._immediateFn(function() {
|
|
620
|
+
var n = e._state === 1 ? t.onFulfilled : t.onRejected;
|
|
621
|
+
if (n === null) {
|
|
622
|
+
(e._state === 1 ? N : I)(t.promise, e._value);
|
|
2192
623
|
return;
|
|
2193
624
|
}
|
|
2194
|
-
var
|
|
625
|
+
var a;
|
|
2195
626
|
try {
|
|
2196
|
-
|
|
2197
|
-
} catch (
|
|
2198
|
-
|
|
627
|
+
a = n(e._value);
|
|
628
|
+
} catch (i) {
|
|
629
|
+
I(t.promise, i);
|
|
2199
630
|
return;
|
|
2200
631
|
}
|
|
2201
|
-
|
|
632
|
+
N(t.promise, a);
|
|
2202
633
|
});
|
|
2203
634
|
}
|
|
2204
|
-
function
|
|
635
|
+
function N(e, t) {
|
|
2205
636
|
try {
|
|
2206
|
-
if (
|
|
637
|
+
if (t === e)
|
|
2207
638
|
throw new TypeError("A promise cannot be resolved with itself.");
|
|
2208
|
-
if (
|
|
2209
|
-
var
|
|
2210
|
-
if (
|
|
2211
|
-
e._state = 3, e._value =
|
|
639
|
+
if (t && (typeof t == "object" || typeof t == "function")) {
|
|
640
|
+
var n = t.then;
|
|
641
|
+
if (t instanceof d) {
|
|
642
|
+
e._state = 3, e._value = t, A(e);
|
|
2212
643
|
return;
|
|
2213
|
-
} else if (typeof
|
|
2214
|
-
|
|
644
|
+
} else if (typeof n == "function") {
|
|
645
|
+
X(Je(n, t), e);
|
|
2215
646
|
return;
|
|
2216
647
|
}
|
|
2217
648
|
}
|
|
2218
|
-
e._state = 1, e._value =
|
|
2219
|
-
} catch (
|
|
2220
|
-
|
|
649
|
+
e._state = 1, e._value = t, A(e);
|
|
650
|
+
} catch (a) {
|
|
651
|
+
I(e, a);
|
|
2221
652
|
}
|
|
2222
653
|
}
|
|
2223
|
-
function
|
|
2224
|
-
e._state = 2, e._value =
|
|
654
|
+
function I(e, t) {
|
|
655
|
+
e._state = 2, e._value = t, A(e);
|
|
2225
656
|
}
|
|
2226
|
-
function
|
|
2227
|
-
e._state === 2 && e._deferreds.length === 0 &&
|
|
2228
|
-
e._handled ||
|
|
657
|
+
function A(e) {
|
|
658
|
+
e._state === 2 && e._deferreds.length === 0 && d._immediateFn(function() {
|
|
659
|
+
e._handled || d._unhandledRejectionFn(e._value);
|
|
2229
660
|
});
|
|
2230
|
-
for (var
|
|
2231
|
-
|
|
661
|
+
for (var t = 0, n = e._deferreds.length; t < n; t++)
|
|
662
|
+
W(e, e._deferreds[t]);
|
|
2232
663
|
e._deferreds = null;
|
|
2233
664
|
}
|
|
2234
|
-
function
|
|
2235
|
-
this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof
|
|
665
|
+
function Ke(e, t, n) {
|
|
666
|
+
this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof t == "function" ? t : null, this.promise = n;
|
|
2236
667
|
}
|
|
2237
|
-
function
|
|
2238
|
-
var
|
|
668
|
+
function X(e, t) {
|
|
669
|
+
var n = !1;
|
|
2239
670
|
try {
|
|
2240
671
|
e(
|
|
2241
|
-
function(
|
|
2242
|
-
|
|
672
|
+
function(a) {
|
|
673
|
+
n || (n = !0, N(t, a));
|
|
2243
674
|
},
|
|
2244
|
-
function(
|
|
2245
|
-
|
|
675
|
+
function(a) {
|
|
676
|
+
n || (n = !0, I(t, a));
|
|
2246
677
|
}
|
|
2247
678
|
);
|
|
2248
|
-
} catch (
|
|
2249
|
-
if (
|
|
2250
|
-
|
|
679
|
+
} catch (a) {
|
|
680
|
+
if (n) return;
|
|
681
|
+
n = !0, I(t, a);
|
|
2251
682
|
}
|
|
2252
683
|
}
|
|
2253
|
-
|
|
684
|
+
d.prototype.catch = function(e) {
|
|
2254
685
|
return this.then(null, e);
|
|
2255
686
|
};
|
|
2256
|
-
|
|
2257
|
-
var
|
|
2258
|
-
return
|
|
687
|
+
d.prototype.then = function(e, t) {
|
|
688
|
+
var n = new this.constructor(_e);
|
|
689
|
+
return W(this, new Ke(e, t, n)), n;
|
|
2259
690
|
};
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
return new
|
|
2263
|
-
if (!
|
|
2264
|
-
return
|
|
2265
|
-
var
|
|
2266
|
-
if (
|
|
2267
|
-
var
|
|
2268
|
-
function
|
|
691
|
+
d.prototype.finally = Ve;
|
|
692
|
+
d.all = function(e) {
|
|
693
|
+
return new d(function(t, n) {
|
|
694
|
+
if (!Q(e))
|
|
695
|
+
return n(new TypeError("Promise.all accepts an array"));
|
|
696
|
+
var a = Array.prototype.slice.call(e);
|
|
697
|
+
if (a.length === 0) return t([]);
|
|
698
|
+
var i = a.length;
|
|
699
|
+
function s(l, u) {
|
|
2269
700
|
try {
|
|
2270
|
-
if (
|
|
2271
|
-
var
|
|
2272
|
-
if (typeof
|
|
2273
|
-
|
|
2274
|
-
|
|
701
|
+
if (u && (typeof u == "object" || typeof u == "function")) {
|
|
702
|
+
var g = u.then;
|
|
703
|
+
if (typeof g == "function") {
|
|
704
|
+
g.call(
|
|
705
|
+
u,
|
|
2275
706
|
function(h) {
|
|
2276
|
-
|
|
707
|
+
s(l, h);
|
|
2277
708
|
},
|
|
2278
|
-
|
|
709
|
+
n
|
|
2279
710
|
);
|
|
2280
711
|
return;
|
|
2281
712
|
}
|
|
2282
713
|
}
|
|
2283
|
-
|
|
714
|
+
a[l] = u, --i === 0 && t(a);
|
|
2284
715
|
} catch (h) {
|
|
2285
|
-
|
|
716
|
+
n(h);
|
|
2286
717
|
}
|
|
2287
718
|
}
|
|
2288
|
-
for (var
|
|
2289
|
-
|
|
719
|
+
for (var o = 0; o < a.length; o++)
|
|
720
|
+
s(o, a[o]);
|
|
2290
721
|
});
|
|
2291
722
|
};
|
|
2292
|
-
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
return e && typeof e == "object" && e.constructor ===
|
|
2296
|
-
|
|
723
|
+
d.any = Ge;
|
|
724
|
+
d.allSettled = ze;
|
|
725
|
+
d.resolve = function(e) {
|
|
726
|
+
return e && typeof e == "object" && e.constructor === d ? e : new d(function(t) {
|
|
727
|
+
t(e);
|
|
2297
728
|
});
|
|
2298
729
|
};
|
|
2299
|
-
|
|
2300
|
-
return new
|
|
2301
|
-
|
|
730
|
+
d.reject = function(e) {
|
|
731
|
+
return new d(function(t, n) {
|
|
732
|
+
n(e);
|
|
2302
733
|
});
|
|
2303
734
|
};
|
|
2304
|
-
|
|
2305
|
-
return new
|
|
2306
|
-
if (!
|
|
2307
|
-
return
|
|
2308
|
-
for (var
|
|
2309
|
-
|
|
735
|
+
d.race = function(e) {
|
|
736
|
+
return new d(function(t, n) {
|
|
737
|
+
if (!Q(e))
|
|
738
|
+
return n(new TypeError("Promise.race accepts an array"));
|
|
739
|
+
for (var a = 0, i = e.length; a < i; a++)
|
|
740
|
+
d.resolve(e[a]).then(t, n);
|
|
2310
741
|
});
|
|
2311
742
|
};
|
|
2312
|
-
|
|
743
|
+
d._immediateFn = // @ts-ignore
|
|
2313
744
|
typeof setImmediate == "function" && function(e) {
|
|
2314
745
|
setImmediate(e);
|
|
2315
746
|
} || function(e) {
|
|
2316
|
-
|
|
747
|
+
Oe(e, 0);
|
|
2317
748
|
};
|
|
2318
|
-
|
|
2319
|
-
typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:",
|
|
749
|
+
d._unhandledRejectionFn = function(t) {
|
|
750
|
+
typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:", t);
|
|
2320
751
|
};
|
|
2321
|
-
const
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
"
|
|
2325
|
-
"pagination-data",
|
|
2326
|
-
"load-success",
|
|
2327
|
-
"scrollbar-visible",
|
|
2328
|
-
"load-error",
|
|
2329
|
-
"row-clicked",
|
|
2330
|
-
"row-dblclicked",
|
|
2331
|
-
"detail-row-clicked",
|
|
2332
|
-
"cell-clicked",
|
|
2333
|
-
"cell-dblclicked",
|
|
2334
|
-
"cell-rightclicked",
|
|
2335
|
-
"row-mouseover",
|
|
2336
|
-
"field-event",
|
|
2337
|
-
"header-event",
|
|
2338
|
-
"checkbox-toggled",
|
|
2339
|
-
"checkbox-toggled-all",
|
|
2340
|
-
"data-reset",
|
|
2341
|
-
"checkbox-toggled-custom"
|
|
2342
|
-
];
|
|
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), {
|
|
2349
|
-
default: n,
|
|
2350
|
-
validator: (g) => g === n
|
|
2351
|
-
})
|
|
2352
|
-
}),
|
|
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;
|
|
2356
|
-
}, []))]
|
|
2357
|
-
});
|
|
2358
|
-
return delete a.install, a;
|
|
2359
|
-
}
|
|
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);
|
|
752
|
+
const U = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : void 0;
|
|
753
|
+
U && !U.Promise && (U.Promise = d);
|
|
754
|
+
function Qe(e, t) {
|
|
755
|
+
se(e, t), e.component("vuetable", We), e.component("vuetable-column", ie), e.component("vuetable-col-gutter", oe), e.component("vuetable-field-checkbox", le), e.component("vuetable-field-handle", re), e.component("vuetable-field-sequence", ue), e.component("vuetable-pagination", De), e.component("vuetable-pagination-dropdown", qe), e.component("vuetable-pagination-info", He), e.component("vuetable-row-header", de);
|
|
2364
756
|
}
|
|
2365
|
-
const
|
|
757
|
+
const We = Object.assign(ae, { install: Qe });
|
|
2366
758
|
export {
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
759
|
+
We as Vuetable,
|
|
760
|
+
oe as VuetableColGutter,
|
|
761
|
+
ie as VuetableColumn,
|
|
762
|
+
le as VuetableFieldCheckbox,
|
|
763
|
+
tt as VuetableFieldCheckboxMixin,
|
|
764
|
+
re as VuetableFieldHandle,
|
|
765
|
+
Re as VuetableFieldMixin,
|
|
766
|
+
ue as VuetableFieldSequence,
|
|
767
|
+
De as VuetablePagination,
|
|
768
|
+
qe as VuetablePaginationDropdown,
|
|
769
|
+
He as VuetablePaginationInfo,
|
|
770
|
+
nt as VuetablePaginationInfoMixin,
|
|
771
|
+
at as VuetablePaginationMixin,
|
|
772
|
+
de as VuetableRowHeader,
|
|
773
|
+
lt as createVuetable,
|
|
774
|
+
We as default,
|
|
775
|
+
Qe as install,
|
|
776
|
+
Me as useVuetableField,
|
|
777
|
+
st as useVuetableFieldCheckbox,
|
|
778
|
+
J as useVuetablePagination,
|
|
779
|
+
Le as useVuetablePaginationInfo
|
|
2388
780
|
};
|
|
2389
|
-
//# sourceMappingURL=vue3.js.map
|