vuetable-next 1.0.11 → 1.0.12
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 +54 -0
- package/dist/index.js +1 -0
- package/dist/public.d.ts +6 -0
- package/dist/types/components/Vuetable.vue.d.ts +37 -45
- package/dist/types/components/VuetableRenderBoundary.d.ts +14 -0
- package/dist/types/components/createVuetable.d.ts +6 -0
- package/dist/types/index.d.ts +2 -0
- package/dist/vue2.cjs +6 -6
- package/dist/vue2.cjs.map +1 -1
- package/dist/vue2.js +915 -818
- package/dist/vue2.js.map +1 -1
- package/dist/vue3.cjs +2 -2
- package/dist/vue3.cjs.map +1 -1
- package/dist/vue3.js +1019 -907
- package/dist/vue3.js.map +1 -1
- package/package.json +1 -1
package/dist/vue2.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var t in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var t of
|
|
10
|
-
|
|
1
|
+
var kn = Object.defineProperty, $n = Object.defineProperties;
|
|
2
|
+
var Fn = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var It = Object.getOwnPropertySymbols;
|
|
4
|
+
var On = Object.prototype.hasOwnProperty, xn = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Ht = (e, a, t) => a in e ? kn(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, T = (e, a) => {
|
|
6
|
+
for (var t in a || (a = {}))
|
|
7
|
+
On.call(a, t) && Ht(e, t, a[t]);
|
|
8
|
+
if (It)
|
|
9
|
+
for (var t of It(a))
|
|
10
|
+
xn.call(a, t) && Ht(e, t, a[t]);
|
|
11
11
|
return e;
|
|
12
|
-
},
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
|
|
12
|
+
}, K = (e, a) => $n(e, Fn(a));
|
|
13
|
+
import * as Be from "vue-demi";
|
|
14
|
+
import { defineComponent as O, inject as H, ref as w, computed as y, markRaw as an, toRaw as Ie, isVue2 as V, getCurrentInstance as Rn, onBeforeUpdate as qn, shallowRef as Dn, nextTick as le, onMounted as rn, onBeforeUnmount as Tn, reactive as Me, toRefs as En, provide as jn, set as In, watch as j, isReadonly as Hn, triggerRef as An, unref as Bn, isRef as ln, onUpdated as Mn } from "vue-demi";
|
|
15
|
+
import At from "axios";
|
|
16
|
+
import Vn from "mitt";
|
|
17
|
+
const Z = O({
|
|
17
18
|
name: "vuetable-field-checkbox",
|
|
18
19
|
props: {
|
|
19
20
|
rowData: { type: Object, required: !1 },
|
|
@@ -23,57 +24,57 @@ const W = F({
|
|
|
23
24
|
title: { type: String, required: !1 }
|
|
24
25
|
},
|
|
25
26
|
setup(e) {
|
|
26
|
-
const
|
|
27
|
-
var
|
|
28
|
-
return r.value > 0 && r.value < (((
|
|
27
|
+
const a = H("vuetable"), t = w(null), r = y(() => (a.tableData || []).filter((v) => a.isSelectedRow(v[a.trackBy])).length), o = y(() => {
|
|
28
|
+
var v;
|
|
29
|
+
return r.value > 0 && r.value < (((v = a.tableData) == null ? void 0 : v.length) || 0);
|
|
29
30
|
});
|
|
30
|
-
function i(
|
|
31
|
-
var
|
|
32
|
-
|
|
31
|
+
function i(v, h) {
|
|
32
|
+
var u;
|
|
33
|
+
v && a.onCheckboxToggled(h.target.checked, (u = e.rowField) == null ? void 0 : u.name, v);
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
|
|
35
|
+
function f(v) {
|
|
36
|
+
a.onCheckboxToggledAll(v.target.checked);
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
return !!
|
|
38
|
+
function g(v) {
|
|
39
|
+
return !!v && a.isSelectedRow(v[a.trackBy]);
|
|
39
40
|
}
|
|
40
|
-
function
|
|
41
|
+
function p() {
|
|
41
42
|
return r.value > 0;
|
|
42
43
|
}
|
|
43
|
-
return { vuetable:
|
|
44
|
+
return { vuetable: a, checkbox: t, isIndeterminate: o, toggleCheckbox: i, toggleAllCheckbox: f, isSelected: g, isAllItemsInCurrentPageSelected: p };
|
|
44
45
|
}
|
|
45
46
|
});
|
|
46
|
-
var
|
|
47
|
-
var e = this,
|
|
47
|
+
var Nn = function() {
|
|
48
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
48
49
|
return e.isHeader ? t("th", { staticClass: "vuetable-th-component-checkbox" }, [t("input", { ref: "checkbox", attrs: { type: "checkbox" }, domProps: { indeterminate: e.isIndeterminate, checked: e.isAllItemsInCurrentPageSelected() }, on: { change: function(r) {
|
|
49
50
|
return e.toggleAllCheckbox(r);
|
|
50
51
|
} } })]) : t("td", { staticClass: "vuetable-td-component-checkbox" }, [t("input", { ref: "checkbox", attrs: { type: "checkbox" }, domProps: { checked: e.isSelected(e.rowData) }, on: { change: function(r) {
|
|
51
52
|
return e.toggleCheckbox(e.rowData, r);
|
|
52
53
|
} } })]);
|
|
53
|
-
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
const
|
|
54
|
+
}, Ln = [];
|
|
55
|
+
Z.render = Nn;
|
|
56
|
+
Z.staticRenderFns = Ln;
|
|
57
|
+
const Q = O({
|
|
57
58
|
name: "vuetable-field-handle",
|
|
58
59
|
props: {
|
|
59
60
|
isHeader: { type: Boolean, required: !1, default: !1 },
|
|
60
61
|
title: { type: String, required: !1, default: "" }
|
|
61
62
|
},
|
|
62
63
|
setup() {
|
|
63
|
-
const e =
|
|
64
|
-
function
|
|
64
|
+
const e = H("vuetable");
|
|
65
|
+
function a(t, r = "") {
|
|
65
66
|
return typeof e.css.renderIcon == "undefined" ? `<i class="${t.join(" ")}" ${r}></i>` : e.css.renderIcon(t, r);
|
|
66
67
|
}
|
|
67
|
-
return { vuetable: e, renderIconTag:
|
|
68
|
+
return { vuetable: e, renderIconTag: a };
|
|
68
69
|
}
|
|
69
70
|
});
|
|
70
|
-
var
|
|
71
|
-
var e = this,
|
|
71
|
+
var zn = function() {
|
|
72
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
72
73
|
return e.isHeader ? t("th", { staticClass: "vuetable-th-component-handle", domProps: { innerHTML: e._s(e.title) } }) : t("td", { staticClass: "vuetable-td-component-handle", domProps: { innerHTML: e._s(e.renderIconTag(["handle-icon", e.vuetable.css.handleIcon])) } });
|
|
73
|
-
},
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
const
|
|
74
|
+
}, Un = [];
|
|
75
|
+
Q.render = zn;
|
|
76
|
+
Q.staticRenderFns = Un;
|
|
77
|
+
const J = O({
|
|
77
78
|
name: "vuetable-field-sequence",
|
|
78
79
|
props: {
|
|
79
80
|
rowIndex: { type: Number, required: !1, default: 0 },
|
|
@@ -81,111 +82,111 @@ const U = F({
|
|
|
81
82
|
title: { type: String, required: !1, default: "" }
|
|
82
83
|
},
|
|
83
84
|
setup(e) {
|
|
84
|
-
const
|
|
85
|
+
const a = H("vuetable");
|
|
85
86
|
function t() {
|
|
86
|
-
return
|
|
87
|
+
return a.tablePagination ? a.tablePagination.from + e.rowIndex : 1 + e.rowIndex;
|
|
87
88
|
}
|
|
88
|
-
return { vuetable:
|
|
89
|
+
return { vuetable: a, renderSequence: t };
|
|
89
90
|
}
|
|
90
91
|
});
|
|
91
|
-
var
|
|
92
|
-
var e = this,
|
|
92
|
+
var Wn = function() {
|
|
93
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
93
94
|
return e.isHeader ? t("th", { staticClass: "vuetable-th-component-sequence", domProps: { innerHTML: e._s(e.title) } }) : t("td", { staticClass: "vuetable-td-component-sequence", domProps: { innerHTML: e._s(e.renderSequence()) } });
|
|
94
|
-
},
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
const
|
|
95
|
+
}, Gn = [];
|
|
96
|
+
J.render = Wn;
|
|
97
|
+
J.staticRenderFns = Gn;
|
|
98
|
+
const U = O({
|
|
98
99
|
name: "vuetable-th-gutter",
|
|
99
100
|
setup() {
|
|
100
|
-
return { vuetable:
|
|
101
|
+
return { vuetable: H("vuetable") };
|
|
101
102
|
}
|
|
102
103
|
});
|
|
103
|
-
var
|
|
104
|
-
var e = this,
|
|
104
|
+
var Kn = function() {
|
|
105
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
105
106
|
return t("th", { staticClass: "vuetable-th-gutter", style: { width: e.vuetable.scrollBarWidth } });
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
const
|
|
107
|
+
}, Yn = [];
|
|
108
|
+
U.render = Kn;
|
|
109
|
+
U.staticRenderFns = Yn;
|
|
110
|
+
U._scopeId = "data-v-05d64983";
|
|
111
|
+
const ie = O({
|
|
111
112
|
name: "vuetable-row-header",
|
|
112
113
|
components: {
|
|
113
|
-
"vuetable-field-checkbox":
|
|
114
|
-
"vuetable-field-handle":
|
|
115
|
-
"vuetable-field-sequence":
|
|
116
|
-
VuetableColGutter:
|
|
114
|
+
"vuetable-field-checkbox": Z,
|
|
115
|
+
"vuetable-field-handle": Q,
|
|
116
|
+
"vuetable-field-sequence": J,
|
|
117
|
+
VuetableColGutter: U
|
|
117
118
|
},
|
|
118
119
|
props: {
|
|
119
120
|
vuetable: { type: Object, default: null }
|
|
120
121
|
},
|
|
121
122
|
setup() {
|
|
122
|
-
const e =
|
|
123
|
-
function
|
|
124
|
-
return
|
|
123
|
+
const e = H("vuetable");
|
|
124
|
+
function a(c) {
|
|
125
|
+
return c.replace(e.fieldPrefix, "");
|
|
125
126
|
}
|
|
126
|
-
function t(
|
|
127
|
+
function t(c, m) {
|
|
127
128
|
return [
|
|
128
|
-
`${
|
|
129
|
-
|
|
130
|
-
o(
|
|
131
|
-
{ sortable: e.isSortable(
|
|
129
|
+
`${c}-${r(m.name)}`,
|
|
130
|
+
m.titleClass || "",
|
|
131
|
+
o(m),
|
|
132
|
+
{ sortable: e.isSortable(m) }
|
|
132
133
|
];
|
|
133
134
|
}
|
|
134
|
-
function r(
|
|
135
|
-
return typeof
|
|
135
|
+
function r(c) {
|
|
136
|
+
return typeof c == "string" && c.replace(/([A-Z])/g, (m) => "_" + m.toLowerCase()).replace(" ", "_").replace(".", "_");
|
|
136
137
|
}
|
|
137
|
-
function o(
|
|
138
|
-
const
|
|
139
|
-
return
|
|
138
|
+
function o(c) {
|
|
139
|
+
const m = p(c);
|
|
140
|
+
return m !== !1 ? e.sortOrder[m].direction == "asc" ? e.css.ascendingClass : e.css.descendingClass : "";
|
|
140
141
|
}
|
|
141
|
-
function i(
|
|
142
|
-
const
|
|
143
|
-
return
|
|
142
|
+
function i(c) {
|
|
143
|
+
const m = p(c);
|
|
144
|
+
return m === !1 ? e.css.sortableIcon : e.sortOrder[m].direction == "asc" ? e.css.ascendingIcon : e.css.descendingIcon;
|
|
144
145
|
}
|
|
145
|
-
function
|
|
146
|
-
return
|
|
146
|
+
function f(c) {
|
|
147
|
+
return p(c) !== !1;
|
|
147
148
|
}
|
|
148
|
-
function
|
|
149
|
-
return e.isSortable(
|
|
149
|
+
function g(c) {
|
|
150
|
+
return e.isSortable(c) && e.css.sortableIcon != "";
|
|
150
151
|
}
|
|
151
|
-
function
|
|
152
|
-
if (!e.isSortable(
|
|
152
|
+
function p(c) {
|
|
153
|
+
if (!e.isSortable(c))
|
|
153
154
|
return !1;
|
|
154
|
-
for (let
|
|
155
|
-
if (c
|
|
156
|
-
return
|
|
155
|
+
for (let m = 0; m < e.sortOrder.length; m++)
|
|
156
|
+
if (v(c, m))
|
|
157
|
+
return m;
|
|
157
158
|
return !1;
|
|
158
159
|
}
|
|
159
|
-
function c
|
|
160
|
-
return e.sortOrder[
|
|
160
|
+
function v(c, m) {
|
|
161
|
+
return e.sortOrder[m].field === c.name && e.sortOrder[m].sortField === c.sortField;
|
|
161
162
|
}
|
|
162
|
-
function
|
|
163
|
-
const
|
|
164
|
-
if (
|
|
165
|
-
const
|
|
166
|
-
return
|
|
163
|
+
function h(c) {
|
|
164
|
+
const m = u(c);
|
|
165
|
+
if (m.length > 0 && f(c) || g(c)) {
|
|
166
|
+
const x = `opacity:${_(c)};position:relative;float:right`, R = e.showSortIcons ? P(["sort-icon", i(c)], `style="${x}"`) : "";
|
|
167
|
+
return m + " " + R;
|
|
167
168
|
}
|
|
168
|
-
return
|
|
169
|
+
return m;
|
|
169
170
|
}
|
|
170
|
-
function
|
|
171
|
-
return typeof
|
|
171
|
+
function u(c) {
|
|
172
|
+
return typeof c.title == "function" ? c.title() : typeof c.title == "undefined" ? c.name.toString().replace(".", " ") : c.title;
|
|
172
173
|
}
|
|
173
|
-
function
|
|
174
|
-
let
|
|
175
|
-
const
|
|
176
|
-
return 1 -
|
|
174
|
+
function _(c) {
|
|
175
|
+
let R = 0.3;
|
|
176
|
+
const B = e.sortOrder.length, d = p(c);
|
|
177
|
+
return 1 - B * R < 0.3 && (R = (1 - 0.3) / (B - 1)), 1 - (d === !1 ? 0 : d) * R;
|
|
177
178
|
}
|
|
178
|
-
function
|
|
179
|
-
return typeof e.css.renderIcon == "undefined" ? `<i class="${
|
|
179
|
+
function P(c, m = "") {
|
|
180
|
+
return typeof e.css.renderIcon == "undefined" ? `<i class="${c.join(" ")}" ${m}></i>` : e.css.renderIcon(c, m);
|
|
180
181
|
}
|
|
181
|
-
function k(
|
|
182
|
-
e.orderBy(
|
|
182
|
+
function k(c, m) {
|
|
183
|
+
e.orderBy(c, m);
|
|
183
184
|
}
|
|
184
|
-
return { headerTable: e, stripPrefix:
|
|
185
|
+
return { headerTable: e, stripPrefix: a, headerClass: t, toSnakeCase: r, sortClass: o, sortIcon: i, isInCurrentSortGroup: f, hasSortableIcon: g, currentSortOrderPosition: p, fieldIsInSortOrderPosition: v, renderTitle: h, getTitle: u, sortIconOpacity: _, renderIconTag: P, onColumnHeaderClicked: k, VuetableColGutter: U };
|
|
185
186
|
}
|
|
186
187
|
});
|
|
187
|
-
var
|
|
188
|
-
var e = this,
|
|
188
|
+
var Zn = function() {
|
|
189
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
189
190
|
return t("tr", [e._l(e.headerTable.tableFields, function(r, o) {
|
|
190
191
|
return [r.visible ? [e.headerTable.isFieldComponent(r.name) ? [t(r.name, { key: o, tag: "component", class: e.headerClass("vuetable-th-component", r), style: { width: r.width }, attrs: { "is-header": "", vuetable: e.headerTable, "row-field": r, title: e.renderTitle(r) }, on: { "vuetable:header-event": e.headerTable.onHeaderEvent, click: function(i) {
|
|
191
192
|
return e.onColumnHeaderClicked(r, i);
|
|
@@ -195,32 +196,32 @@ var Da = function() {
|
|
|
195
196
|
return e.onColumnHeaderClicked(r, i);
|
|
196
197
|
} } })]] : e._e()];
|
|
197
198
|
}), e._v(" "), e.headerTable.scrollVisible ? t("VuetableColGutter") : e._e()], 2);
|
|
198
|
-
},
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
const
|
|
199
|
+
}, Qn = [];
|
|
200
|
+
ie.render = Zn;
|
|
201
|
+
ie.staticRenderFns = Qn;
|
|
202
|
+
const oe = O({
|
|
202
203
|
name: "vuetable-col-group",
|
|
203
204
|
props: {
|
|
204
205
|
isHeader: { type: Boolean, required: !1, default: !1 }
|
|
205
206
|
},
|
|
206
207
|
setup() {
|
|
207
|
-
const e =
|
|
208
|
-
function
|
|
208
|
+
const e = H("vuetable");
|
|
209
|
+
function a(t, r) {
|
|
209
210
|
let o = typeof t.name == "object" && t.name !== null ? t.name.name || "component" : t.name;
|
|
210
211
|
return o = o.replace(e.fieldPrefix, ""), [`vuetable-col-${o}`, t.titleClass, `${o}-${r}`];
|
|
211
212
|
}
|
|
212
|
-
return { vuetable: e, columnClass:
|
|
213
|
+
return { vuetable: e, columnClass: a };
|
|
213
214
|
}
|
|
214
215
|
});
|
|
215
|
-
var
|
|
216
|
-
var e = this,
|
|
216
|
+
var Jn = function() {
|
|
217
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
217
218
|
return t("colgroup", [e._l(e.vuetable.tableFields, function(r, o) {
|
|
218
219
|
return [r.visible ? [t("col", { key: o, class: e.columnClass(r, o), style: { width: r.width } })] : e._e()];
|
|
219
220
|
}), e._v(" "), e.isHeader && e.vuetable.scrollVisible ? t("col", { staticClass: "vuetable-col-gutter", style: { width: e.vuetable.scrollBarWidth } }) : e._e()], 2);
|
|
220
|
-
},
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
const
|
|
221
|
+
}, Xn = [];
|
|
222
|
+
oe.render = Jn;
|
|
223
|
+
oe.staticRenderFns = Xn;
|
|
224
|
+
const Ve = O({
|
|
224
225
|
name: "VuetableDetailHost",
|
|
225
226
|
props: {
|
|
226
227
|
detailComponent: { type: [String, Object], default: "" },
|
|
@@ -229,17 +230,39 @@ const Re = F({
|
|
|
229
230
|
options: { type: Object, default: () => ({}) }
|
|
230
231
|
},
|
|
231
232
|
setup(e) {
|
|
232
|
-
const
|
|
233
|
-
return { tableContext:
|
|
233
|
+
const a = H("vuetable"), t = y(() => a.vuetable), r = y(() => typeof e.detailComponent == "object" ? an(Ie(e.detailComponent)) : e.detailComponent);
|
|
234
|
+
return { tableContext: a, vuetable: t, resolvedDetailComponent: r };
|
|
234
235
|
}
|
|
235
236
|
});
|
|
236
|
-
var
|
|
237
|
-
var e = this,
|
|
237
|
+
var ea = function() {
|
|
238
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
238
239
|
return t(e.resolvedDetailComponent, { tag: "component", attrs: { "row-data": e.rowData, "row-index": e.rowIndex, vuetable: e.tableContext, options: e.options } });
|
|
239
|
-
},
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
const
|
|
240
|
+
}, ta = [];
|
|
241
|
+
Ve.render = ea;
|
|
242
|
+
Ve.staticRenderFns = ta;
|
|
243
|
+
const Ne = (e, { slots: a }) => {
|
|
244
|
+
var t;
|
|
245
|
+
return (t = a.default) == null ? void 0 : t.call(a)[0];
|
|
246
|
+
};
|
|
247
|
+
Ne.props = ["revision"];
|
|
248
|
+
Ne.inheritAttrs = !1;
|
|
249
|
+
const Le = (e, { slots: a }) => Be.renderSlot({ default: e.content }, "default", e.scope, a.default);
|
|
250
|
+
Le.props = ["content", "scope"];
|
|
251
|
+
Le.inheritAttrs = !1;
|
|
252
|
+
const na = Be.isVue2 ? {
|
|
253
|
+
functional: !0,
|
|
254
|
+
render: (e, a) => {
|
|
255
|
+
var t, r, o;
|
|
256
|
+
return (o = (r = (t = a.scopedSlots).default) == null ? void 0 : r.call(t)[0]) != null ? o : a.children[0];
|
|
257
|
+
}
|
|
258
|
+
} : Ne, aa = Be.isVue2 ? {
|
|
259
|
+
functional: !0,
|
|
260
|
+
props: ["content", "scope"],
|
|
261
|
+
render: (e, a) => {
|
|
262
|
+
var t, r, o, i, f;
|
|
263
|
+
return (f = (r = (t = a.props).content) == null ? void 0 : r.call(t, a.props.scope)) != null ? f : (i = (o = a.scopedSlots).default) == null ? void 0 : i.call(o);
|
|
264
|
+
}
|
|
265
|
+
} : Le, A = {
|
|
243
266
|
table: {
|
|
244
267
|
tableWrapper: "",
|
|
245
268
|
tableHeaderClass: "fixed",
|
|
@@ -273,38 +296,41 @@ const j = {
|
|
|
273
296
|
infoClass: "left floated left aligned six wide column"
|
|
274
297
|
}
|
|
275
298
|
};
|
|
276
|
-
var
|
|
277
|
-
for (var t in
|
|
278
|
-
|
|
279
|
-
if (
|
|
280
|
-
for (var t of
|
|
281
|
-
|
|
299
|
+
var ra = Object.defineProperty, la = Object.defineProperties, oa = Object.getOwnPropertyDescriptors, Bt = Object.getOwnPropertySymbols, ia = Object.prototype.hasOwnProperty, sa = Object.prototype.propertyIsEnumerable, Mt = (e, a, t) => a in e ? ra(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, E = (e, a) => {
|
|
300
|
+
for (var t in a || (a = {}))
|
|
301
|
+
ia.call(a, t) && Mt(e, t, a[t]);
|
|
302
|
+
if (Bt)
|
|
303
|
+
for (var t of Bt(a))
|
|
304
|
+
sa.call(a, t) && Mt(e, t, a[t]);
|
|
282
305
|
return e;
|
|
283
|
-
},
|
|
284
|
-
var i = (
|
|
306
|
+
}, Vt = (e, a) => la(e, oa(a)), ua = (e, a, t) => new Promise((r, o) => {
|
|
307
|
+
var i = (p) => {
|
|
285
308
|
try {
|
|
286
|
-
|
|
287
|
-
} catch (
|
|
288
|
-
o(
|
|
309
|
+
g(t.next(p));
|
|
310
|
+
} catch (v) {
|
|
311
|
+
o(v);
|
|
289
312
|
}
|
|
290
|
-
},
|
|
313
|
+
}, f = (p) => {
|
|
291
314
|
try {
|
|
292
|
-
|
|
293
|
-
} catch (
|
|
294
|
-
o(
|
|
315
|
+
g(t.throw(p));
|
|
316
|
+
} catch (v) {
|
|
317
|
+
o(v);
|
|
295
318
|
}
|
|
296
|
-
},
|
|
297
|
-
|
|
319
|
+
}, g = (p) => p.done ? r(p.value) : Promise.resolve(p.value).then(i, f);
|
|
320
|
+
g((t = t.apply(e, a)).next());
|
|
298
321
|
});
|
|
299
|
-
const
|
|
322
|
+
const z = O({
|
|
300
323
|
name: "Vuetable",
|
|
324
|
+
inheritAttrs: V,
|
|
301
325
|
components: {
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
"vuetable-field-
|
|
326
|
+
RenderBoundary: na,
|
|
327
|
+
SlotOutlet: aa,
|
|
328
|
+
VuetableRowHeader: ie,
|
|
329
|
+
VuetableColGroup: oe,
|
|
330
|
+
VuetableDetailHost: Ve,
|
|
331
|
+
"vuetable-field-checkbox": Z,
|
|
332
|
+
"vuetable-field-handle": Q,
|
|
333
|
+
"vuetable-field-sequence": J
|
|
308
334
|
},
|
|
309
335
|
props: {
|
|
310
336
|
fields: { type: Array, required: !0 },
|
|
@@ -328,7 +354,7 @@ const De = F({
|
|
|
328
354
|
perPage: { type: Number, required: !1, default: 10 },
|
|
329
355
|
initialPage: { type: Number, required: !1, default: 1 },
|
|
330
356
|
firstPage: { type: Number, required: !1, default: 1 },
|
|
331
|
-
sortOrder: { type: Array, required: !1, default: () => [] },
|
|
357
|
+
sortOrder: { type: Array, required: !1, default: () => w([]).value },
|
|
332
358
|
multiSort: { type: Boolean, required: !1, default: !1 },
|
|
333
359
|
tableHeight: { type: String, required: !1, default: null },
|
|
334
360
|
multiSortKey: { type: String, required: !1, default: "alt" },
|
|
@@ -346,129 +372,136 @@ const De = F({
|
|
|
346
372
|
headerRows: { type: Array, required: !1, default: () => ["VuetableRowHeader"] },
|
|
347
373
|
transform: { type: Function, required: !1, default: null },
|
|
348
374
|
sortParams: { type: Function, required: !1, default: null },
|
|
349
|
-
fieldPrefix: { type: String, required: !1, default: "vuetable-field-" }
|
|
375
|
+
fieldPrefix: { type: String, required: !1, default: "vuetable-field-" },
|
|
376
|
+
eventPrefix: { type: String, required: !1, default: "vuetable:" }
|
|
350
377
|
},
|
|
351
|
-
emits: ["vuetable:load-error", "vuetable:load-success", "vuetable:loaded", "vuetable:loading", "vuetable:scrollbar-visible", "vuetable:pagination-data", "vuetable:row-clicked", "vuetable:row-dblclicked", "vuetable:detail-row-clicked", "vuetable:cell-clicked", "vuetable:cell-dblclicked", "vuetable:cell-rightclicked", "vuetable:row-mouseover", "vuetable:field-event", "vuetable:header-event", "vuetable:checkbox-toggled", "vuetable:checkbox-toggled-all", "vuetable:checkbox-toggled-custom", "vuetable:data-reset", "vuetable:initialized"],
|
|
352
378
|
computed: {
|
|
353
379
|
$_css() {
|
|
354
380
|
return this.tableCss;
|
|
355
381
|
}
|
|
356
382
|
},
|
|
357
|
-
setup(e, { emit:
|
|
358
|
-
const
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
})
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
n
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
383
|
+
setup(e, { emit: a, slots: t, attrs: r }) {
|
|
384
|
+
const o = Rn(), i = w(), f = w(0);
|
|
385
|
+
let g = E(E({}, e), r), p = Object.keys(t).length > 0;
|
|
386
|
+
qn(() => {
|
|
387
|
+
if (V) return;
|
|
388
|
+
const n = E(E({}, e), r), l = Object.keys(n), s = l.length === Object.keys(g).length && l.every((D) => n[D] === g[D]), b = Object.keys(t).length > 0;
|
|
389
|
+
(s || p || b) && f.value++, p = b, g = n;
|
|
390
|
+
});
|
|
391
|
+
const v = y(() => o == null ? void 0 : o.proxy), h = w([]), u = w(null), _ = w(null), P = w(e.initialPage), k = w([]), c = w([]), m = w(0), x = w("17px"), R = w(!1), B = $t(e.sortOrder), d = V ? w(B) : Dn(B), $ = w(e.httpOptions), se = w(), ue = y(() => E(E({}, A.table), e.css)), X = y(() => {
|
|
392
|
+
var n, l;
|
|
393
|
+
return (n = u.value) != null && n.length ? ((l = u.value) == null ? void 0 : l.length) > 0 : !1;
|
|
394
|
+
}), Ge = y(() => X.value && e.detailRowComponent !== ""), ce = y(() => u.value && typeof u.value[0][e.trackBy] != "undefined"), Ke = y(() => h.value.filter((n) => n.visible).length), de = y(() => {
|
|
395
|
+
var n;
|
|
396
|
+
return ((n = u.value) == null ? void 0 : n.length) || 0;
|
|
397
|
+
}), Ye = y(() => de.value === 0 && e.noDataTemplate.length > 0), fe = y(() => {
|
|
398
|
+
var n;
|
|
399
|
+
return u.value === null || ((n = u.value) == null ? void 0 : n.length) === 0;
|
|
400
|
+
}), Ze = y(() => fe.value ? !0 : u.value.length < e.minRows), Qe = y(() => fe.value ? e.minRows : u.value.length >= e.minRows ? 0 : e.minRows - u.value.length), ve = y(() => e.apiMode), Je = y(() => !e.apiMode), Xe = y(() => e.tableHeight != null);
|
|
401
|
+
ge(), De(), le(() => {
|
|
402
|
+
C("initialized", h.value);
|
|
403
|
+
}), rn(() => {
|
|
404
|
+
if (e.loadOnStart && q(), Xe.value) {
|
|
405
|
+
x.value = tt() + "px";
|
|
406
|
+
const n = i.value;
|
|
407
|
+
n != null && n.addEventListener("scroll", be);
|
|
375
408
|
}
|
|
376
|
-
}),
|
|
377
|
-
const
|
|
378
|
-
|
|
409
|
+
}), Tn(() => {
|
|
410
|
+
const n = i.value;
|
|
411
|
+
n != null && n.removeEventListener("scroll", be);
|
|
379
412
|
});
|
|
380
|
-
const
|
|
381
|
-
vuetable:
|
|
382
|
-
$el:
|
|
383
|
-
var
|
|
384
|
-
return (
|
|
413
|
+
const et = Me(Vt(E({}, En(e)), {
|
|
414
|
+
vuetable: v,
|
|
415
|
+
$el: y(() => {
|
|
416
|
+
var n;
|
|
417
|
+
return (n = o == null ? void 0 : o.proxy) == null ? void 0 : n.$el;
|
|
385
418
|
}),
|
|
386
|
-
isApiMode:
|
|
387
|
-
tableFields:
|
|
419
|
+
isApiMode: ve,
|
|
420
|
+
tableFields: h,
|
|
388
421
|
tableData: u,
|
|
389
|
-
tablePagination:
|
|
390
|
-
selectedTo:
|
|
391
|
-
countVisibleFields:
|
|
392
|
-
dataIsAvailable:
|
|
393
|
-
countTableData:
|
|
394
|
-
displayEmptyDataRow:
|
|
395
|
-
useDetailRow:
|
|
396
|
-
hasRowIdentifier:
|
|
397
|
-
lessThanMinRows:
|
|
398
|
-
blankRows:
|
|
399
|
-
scrollVisible:
|
|
400
|
-
scrollBarWidth:
|
|
401
|
-
sortOrder:
|
|
402
|
-
css:
|
|
403
|
-
$_css:
|
|
404
|
-
isFieldSlot:
|
|
405
|
-
onHeaderEvent:
|
|
406
|
-
setData:
|
|
407
|
-
getFieldTitle:
|
|
408
|
-
orderBy:
|
|
409
|
-
camelCase:
|
|
410
|
-
clearSortOrder:
|
|
411
|
-
toggleDetailRow:
|
|
412
|
-
showDetailRow:
|
|
413
|
-
hideDetailRow:
|
|
414
|
-
isVisibleDetailRow:
|
|
415
|
-
reload:
|
|
416
|
-
fireEvent:
|
|
417
|
-
singleColumnSort:
|
|
418
|
-
removeSortColumn:
|
|
419
|
-
setSortColumnDirection:
|
|
420
|
-
clearSelectedValues:
|
|
421
|
-
showField:
|
|
422
|
-
hideField:
|
|
423
|
-
toggleField:
|
|
424
|
-
onCheckboxToggled:
|
|
425
|
-
onCheckboxToggledAll:
|
|
426
|
-
checkIfRowIdentifierExists:
|
|
427
|
-
changePage:
|
|
428
|
-
resetData:
|
|
429
|
-
refresh:
|
|
430
|
-
isFieldComponent:
|
|
431
|
-
makeTitle:
|
|
432
|
-
getAllQueryParams:
|
|
433
|
-
isSortable:
|
|
434
|
-
getDefaultSortParam:
|
|
435
|
-
getObjectValue:
|
|
436
|
-
isSelectedRow:
|
|
422
|
+
tablePagination: _,
|
|
423
|
+
selectedTo: k,
|
|
424
|
+
countVisibleFields: Ke,
|
|
425
|
+
dataIsAvailable: X,
|
|
426
|
+
countTableData: de,
|
|
427
|
+
displayEmptyDataRow: Ye,
|
|
428
|
+
useDetailRow: Ge,
|
|
429
|
+
hasRowIdentifier: ce,
|
|
430
|
+
lessThanMinRows: Ze,
|
|
431
|
+
blankRows: Qe,
|
|
432
|
+
scrollVisible: R,
|
|
433
|
+
scrollBarWidth: x,
|
|
434
|
+
sortOrder: d,
|
|
435
|
+
css: ue,
|
|
436
|
+
$_css: ue,
|
|
437
|
+
isFieldSlot: rt,
|
|
438
|
+
onHeaderEvent: qt,
|
|
439
|
+
setData: M,
|
|
440
|
+
getFieldTitle: at,
|
|
441
|
+
orderBy: vt,
|
|
442
|
+
camelCase: ot,
|
|
443
|
+
clearSortOrder: gt,
|
|
444
|
+
toggleDetailRow: Pt,
|
|
445
|
+
showDetailRow: Re,
|
|
446
|
+
hideDetailRow: qe,
|
|
447
|
+
isVisibleDetailRow: G,
|
|
448
|
+
reload: Te,
|
|
449
|
+
fireEvent: C,
|
|
450
|
+
singleColumnSort: ke,
|
|
451
|
+
removeSortColumn: we,
|
|
452
|
+
setSortColumnDirection: Se,
|
|
453
|
+
clearSelectedValues: ht,
|
|
454
|
+
showField: Ct,
|
|
455
|
+
hideField: wt,
|
|
456
|
+
toggleField: St,
|
|
457
|
+
onCheckboxToggled: Dt,
|
|
458
|
+
onCheckboxToggledAll: Tt,
|
|
459
|
+
checkIfRowIdentifierExists: ee,
|
|
460
|
+
changePage: Et,
|
|
461
|
+
resetData: jt,
|
|
462
|
+
refresh: Ee,
|
|
463
|
+
isFieldComponent: he,
|
|
464
|
+
makeTitle: te,
|
|
465
|
+
getAllQueryParams: ye,
|
|
466
|
+
isSortable: re,
|
|
467
|
+
getDefaultSortParam: _e,
|
|
468
|
+
getObjectValue: I,
|
|
469
|
+
isSelectedRow: xe
|
|
437
470
|
}));
|
|
438
|
-
|
|
439
|
-
function
|
|
440
|
-
const
|
|
441
|
-
|
|
442
|
-
const
|
|
443
|
-
|
|
444
|
-
const
|
|
445
|
-
return document.body.removeChild(
|
|
446
|
-
}
|
|
447
|
-
function
|
|
448
|
-
var l,
|
|
449
|
-
const
|
|
450
|
-
if (
|
|
451
|
-
const
|
|
452
|
-
|
|
471
|
+
jn("vuetable", et);
|
|
472
|
+
function tt() {
|
|
473
|
+
const n = document.createElement("div"), l = document.createElement("div");
|
|
474
|
+
n.style.visibility = "hidden", n.style.width = "100px", l.style.width = "100%", n.appendChild(l), document.body.appendChild(n);
|
|
475
|
+
const s = n.offsetWidth;
|
|
476
|
+
n.style.overflow = "scroll";
|
|
477
|
+
const b = l.offsetWidth;
|
|
478
|
+
return document.body.removeChild(n), s - b;
|
|
479
|
+
}
|
|
480
|
+
function be(n) {
|
|
481
|
+
var l, s, b;
|
|
482
|
+
const D = (l = n.currentTarget) == null ? void 0 : l.scrollLeft;
|
|
483
|
+
if (D != m.value) {
|
|
484
|
+
const L = (b = (s = i.value) == null ? void 0 : s.parentElement) == null ? void 0 : b.querySelector(".vuetable-head-wrapper");
|
|
485
|
+
L != null && (L.scrollLeft = D), m.value = D;
|
|
453
486
|
}
|
|
454
487
|
}
|
|
455
|
-
function
|
|
456
|
-
e.silent || console.error(
|
|
488
|
+
function W(n) {
|
|
489
|
+
e.silent || console.error(n);
|
|
457
490
|
}
|
|
458
|
-
function
|
|
459
|
-
return [
|
|
491
|
+
function fn(n, l) {
|
|
492
|
+
return [n, l.dataClass];
|
|
460
493
|
}
|
|
461
|
-
function
|
|
494
|
+
function ge() {
|
|
462
495
|
if (typeof e.fields == "undefined") {
|
|
463
|
-
|
|
496
|
+
W('You need to provide "fields" prop.');
|
|
464
497
|
return;
|
|
465
498
|
}
|
|
466
|
-
|
|
467
|
-
|
|
499
|
+
h.value = [], e.fields.forEach((n, l) => {
|
|
500
|
+
h.value.push(nt(n, l));
|
|
468
501
|
});
|
|
469
502
|
}
|
|
470
|
-
function
|
|
471
|
-
const
|
|
503
|
+
function nt(n, l) {
|
|
504
|
+
const s = {
|
|
472
505
|
name: "",
|
|
473
506
|
// title:
|
|
474
507
|
// this allow the code to detect undefined title
|
|
@@ -481,355 +514,379 @@ const De = F({
|
|
|
481
514
|
width: null,
|
|
482
515
|
$_index: l
|
|
483
516
|
};
|
|
484
|
-
if (typeof
|
|
485
|
-
return
|
|
486
|
-
name:
|
|
487
|
-
title:
|
|
517
|
+
if (typeof n == "string")
|
|
518
|
+
return Vt(E({}, s), {
|
|
519
|
+
name: pe(n),
|
|
520
|
+
title: te(n)
|
|
488
521
|
});
|
|
489
|
-
const
|
|
490
|
-
return
|
|
522
|
+
const b = Object.assign({}, s, n);
|
|
523
|
+
return b.name = pe(b.name), b.title === void 0 && (b.title = te(b.name)), b.formatter !== null && typeof b.formatter != "function" && (console.error(b.name + " field formatter must be a function"), b.formatter = null), b;
|
|
491
524
|
}
|
|
492
|
-
function
|
|
493
|
-
return
|
|
525
|
+
function pe(n) {
|
|
526
|
+
return n instanceof Object ? an(Ie(n)) : n.replace("__", e.fieldPrefix);
|
|
494
527
|
}
|
|
495
|
-
function
|
|
496
|
-
if (!(
|
|
497
|
-
if (
|
|
498
|
-
u.value =
|
|
528
|
+
function M(n) {
|
|
529
|
+
if (!(n === null || typeof n == "undefined")) {
|
|
530
|
+
if (C("loading"), Array.isArray(n)) {
|
|
531
|
+
u.value = n, C("loaded");
|
|
499
532
|
return;
|
|
500
533
|
}
|
|
501
|
-
u.value =
|
|
502
|
-
|
|
534
|
+
u.value = I(n, e.dataPath, null), _.value = I(n, e.paginationPath, null), le(() => {
|
|
535
|
+
ee(), ne(), C("pagination-data", _.value), C("loaded");
|
|
503
536
|
});
|
|
504
537
|
}
|
|
505
538
|
}
|
|
506
|
-
function
|
|
507
|
-
if (
|
|
508
|
-
return
|
|
539
|
+
function ee() {
|
|
540
|
+
if (X.value)
|
|
541
|
+
return ce.value ? !0 : (W('Invalid your data! Use "track-by" prop to specify.'), !1);
|
|
542
|
+
}
|
|
543
|
+
function te(n) {
|
|
544
|
+
return he(n) ? "" : me(n.replace(".", " "));
|
|
509
545
|
}
|
|
510
|
-
function
|
|
511
|
-
return
|
|
546
|
+
function at(n) {
|
|
547
|
+
return typeof n.title == "function" ? n.title() : n.title;
|
|
512
548
|
}
|
|
513
|
-
function
|
|
514
|
-
return
|
|
549
|
+
function vn(n, l) {
|
|
550
|
+
return $e(n) ? pt(n, l) : I(l, n.name, "");
|
|
515
551
|
}
|
|
516
|
-
function
|
|
517
|
-
return
|
|
552
|
+
function he(n) {
|
|
553
|
+
return n instanceof Object ? !0 : n.slice(0, e.fieldPrefix.length) === e.fieldPrefix || n.slice(0, 2) === "__";
|
|
518
554
|
}
|
|
519
|
-
function
|
|
520
|
-
return
|
|
555
|
+
function rt(n) {
|
|
556
|
+
return typeof lt(n) != "undefined";
|
|
521
557
|
}
|
|
522
|
-
function
|
|
523
|
-
|
|
558
|
+
function lt(n) {
|
|
559
|
+
var l, s;
|
|
560
|
+
return V ? (s = (l = o == null ? void 0 : o.proxy) == null ? void 0 : l.$scopedSlots) == null ? void 0 : s[n] : t[n];
|
|
524
561
|
}
|
|
525
|
-
function
|
|
526
|
-
return
|
|
562
|
+
function me(n) {
|
|
563
|
+
return n.replace(/\w+/g, (l) => l.charAt(0).toUpperCase() + l.substring(1).toLowerCase());
|
|
527
564
|
}
|
|
528
|
-
function
|
|
529
|
-
return
|
|
565
|
+
function ot(n, l = "_") {
|
|
566
|
+
return n.split(l).map((s) => me(s)).join("");
|
|
530
567
|
}
|
|
531
|
-
function
|
|
532
|
-
if (
|
|
533
|
-
|
|
568
|
+
function q(n = st, l = ut) {
|
|
569
|
+
if (Je.value) {
|
|
570
|
+
Ft();
|
|
534
571
|
return;
|
|
535
572
|
}
|
|
536
|
-
return
|
|
537
|
-
|
|
573
|
+
return C("loading"), $.value.params = dt(ye()), se.value = it(e.apiUrl, $.value), se.value.then(
|
|
574
|
+
n,
|
|
538
575
|
l
|
|
539
576
|
).catch(() => l());
|
|
540
577
|
}
|
|
541
|
-
function
|
|
542
|
-
return
|
|
578
|
+
function it(n, l) {
|
|
579
|
+
return ua(this, null, function* () {
|
|
543
580
|
if (e.httpFetch)
|
|
544
|
-
return e.httpFetch(
|
|
581
|
+
return e.httpFetch(n, l);
|
|
545
582
|
if (e.httpMethod === "get")
|
|
546
|
-
return
|
|
583
|
+
return At.get(n, l);
|
|
547
584
|
{
|
|
548
|
-
const
|
|
549
|
-
return delete l.params, delete
|
|
585
|
+
const s = yield $.value.params;
|
|
586
|
+
return delete l.params, delete $.value.params, At.post(n, s, $.value);
|
|
550
587
|
}
|
|
551
588
|
});
|
|
552
589
|
}
|
|
553
|
-
function
|
|
554
|
-
|
|
555
|
-
const l = e.transform ? e.transform(
|
|
556
|
-
u.value =
|
|
590
|
+
function st(n) {
|
|
591
|
+
C("load-success", n);
|
|
592
|
+
const l = e.transform ? e.transform(n.data) : n.data;
|
|
593
|
+
u.value = I(l, e.dataPath, null), _.value = I(l, e.paginationPath, null), _.value === null && W(`vuetable: pagination-path ${e.paginationPath} not found.
|
|
557
594
|
It looks like the data returned from the server does not have pagination information
|
|
558
595
|
or you may have set it incorrectly.
|
|
559
596
|
|
|
560
|
-
You can explicitly suppress this warning by setting pagination-path="".`),
|
|
561
|
-
|
|
597
|
+
You can explicitly suppress this warning by setting pagination-path="".`), le(() => {
|
|
598
|
+
ee(), ne(), C("pagination-data", _.value), C("loaded");
|
|
562
599
|
});
|
|
563
600
|
}
|
|
564
|
-
function
|
|
565
|
-
setTimeout(
|
|
601
|
+
function ne() {
|
|
602
|
+
setTimeout(ae, 80);
|
|
566
603
|
}
|
|
567
|
-
function
|
|
568
|
-
|
|
569
|
-
const
|
|
570
|
-
|
|
604
|
+
function ae() {
|
|
605
|
+
le(() => {
|
|
606
|
+
const n = i.value;
|
|
607
|
+
n != null && (R.value = n.scrollHeight > n.clientHeight, C("scrollbar-visible", R.value));
|
|
571
608
|
});
|
|
572
609
|
}
|
|
573
|
-
function
|
|
574
|
-
console.error("load-error",
|
|
610
|
+
function ut(n) {
|
|
611
|
+
console.error("load-error", n), C("load-error", n), C("loaded");
|
|
575
612
|
}
|
|
576
|
-
function
|
|
577
|
-
let
|
|
578
|
-
return typeof e.queryParams == "function" ? (
|
|
613
|
+
function ye() {
|
|
614
|
+
let n = {};
|
|
615
|
+
return typeof e.queryParams == "function" ? (n = e.queryParams(d.value, P.value, e.perPage), typeof n == "object" ? n : {}) : (n[e.queryParams.sort] = ct(), n[e.queryParams.page] = P.value, n[e.queryParams.perPage] = e.perPage, n);
|
|
579
616
|
}
|
|
580
|
-
function
|
|
581
|
-
var
|
|
582
|
-
return !
|
|
617
|
+
function ct() {
|
|
618
|
+
var n;
|
|
619
|
+
return !d.value || ((n = d.value[0]) == null ? void 0 : n.field) == "" ? "" : typeof e.sortParams == "function" ? e.sortParams(d.value) : _e();
|
|
583
620
|
}
|
|
584
|
-
function
|
|
585
|
-
return
|
|
621
|
+
function _e() {
|
|
622
|
+
return d.value.map((n) => `${n.sortField}|${n.direction}`).join(",");
|
|
586
623
|
}
|
|
587
|
-
function
|
|
624
|
+
function dt(n) {
|
|
588
625
|
for (let l in e.appendParams)
|
|
589
|
-
|
|
590
|
-
return
|
|
626
|
+
n[l] = e.appendParams[l];
|
|
627
|
+
return n;
|
|
591
628
|
}
|
|
592
|
-
function
|
|
593
|
-
return
|
|
629
|
+
function re(n) {
|
|
630
|
+
return n.sortField !== null;
|
|
594
631
|
}
|
|
595
|
-
function
|
|
596
|
-
if (!
|
|
632
|
+
function ft(n) {
|
|
633
|
+
if (!re(n))
|
|
597
634
|
return !1;
|
|
598
|
-
for (let l = 0; l <
|
|
599
|
-
if (
|
|
635
|
+
for (let l = 0; l < d.value.length; l++)
|
|
636
|
+
if (Pe(n, l))
|
|
600
637
|
return l;
|
|
601
638
|
return !1;
|
|
602
639
|
}
|
|
603
|
-
function
|
|
604
|
-
return
|
|
640
|
+
function Pe(n, l) {
|
|
641
|
+
return d.value[l].field === n.name && d.value[l].sortField === n.sortField;
|
|
605
642
|
}
|
|
606
|
-
function
|
|
607
|
-
if (!
|
|
608
|
-
const
|
|
609
|
-
e.multiSort && l[
|
|
643
|
+
function vt(n, l) {
|
|
644
|
+
if (!re(n)) return;
|
|
645
|
+
const s = e.multiSortKey.toLowerCase() + "Key";
|
|
646
|
+
e.multiSort && l[s] ? bt(n) : ke(n), P.value = e.firstPage, (ve.value || e.dataManager) && q();
|
|
610
647
|
}
|
|
611
|
-
function
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
648
|
+
function N() {
|
|
649
|
+
V || An(d);
|
|
650
|
+
}
|
|
651
|
+
function Ce(n, l) {
|
|
652
|
+
d.value.push({
|
|
653
|
+
field: n.name,
|
|
654
|
+
sortField: n.sortField,
|
|
615
655
|
direction: l || "asc"
|
|
616
|
-
});
|
|
656
|
+
}), N();
|
|
617
657
|
}
|
|
618
|
-
function
|
|
619
|
-
|
|
658
|
+
function we(n) {
|
|
659
|
+
d.value.splice(n, 1), N();
|
|
620
660
|
}
|
|
621
|
-
function
|
|
622
|
-
|
|
661
|
+
function Se(n, l) {
|
|
662
|
+
d.value[n].direction = l, N();
|
|
623
663
|
}
|
|
624
|
-
function
|
|
625
|
-
let l =
|
|
626
|
-
l === !1 ?
|
|
664
|
+
function bt(n) {
|
|
665
|
+
let l = ft(n);
|
|
666
|
+
l === !1 ? Ce(n, "asc") : d.value[l].direction === "asc" ? Se(l, "desc") : we(l);
|
|
627
667
|
}
|
|
628
|
-
function
|
|
629
|
-
if (
|
|
630
|
-
|
|
668
|
+
function ke(n) {
|
|
669
|
+
if (d.value.length === 0) {
|
|
670
|
+
Ce(n, "asc");
|
|
631
671
|
return;
|
|
632
672
|
}
|
|
633
|
-
|
|
673
|
+
d.value.splice(1), Pe(n, 0) ? d.value[0].direction = d.value[0].direction === "asc" ? "desc" : "asc" : d.value[0].direction = "asc", d.value[0].field = n.name, d.value[0].sortField = n.sortField, N();
|
|
634
674
|
}
|
|
635
|
-
function
|
|
636
|
-
|
|
675
|
+
function gt() {
|
|
676
|
+
d.value = w([]).value;
|
|
637
677
|
}
|
|
638
|
-
function
|
|
639
|
-
return typeof
|
|
678
|
+
function $e(n) {
|
|
679
|
+
return typeof n.formatter == "function";
|
|
640
680
|
}
|
|
641
|
-
function
|
|
642
|
-
if (
|
|
643
|
-
return
|
|
681
|
+
function pt(n, l) {
|
|
682
|
+
if ($e(n) && typeof n.formatter == "function")
|
|
683
|
+
return n.formatter(I(l, n.name), o == null ? void 0 : o.proxy);
|
|
644
684
|
}
|
|
645
|
-
function
|
|
646
|
-
|
|
647
|
-
let
|
|
648
|
-
return l.trim() != "" && l.split(".").forEach((
|
|
649
|
-
if (
|
|
650
|
-
|
|
685
|
+
function I(n, l, s) {
|
|
686
|
+
s = typeof s == "undefined" ? null : s;
|
|
687
|
+
let b = n;
|
|
688
|
+
return l.trim() != "" && l.split(".").forEach((L) => {
|
|
689
|
+
if (b !== null && typeof b[L] != "undefined" && b[L] !== null)
|
|
690
|
+
b = b[L];
|
|
651
691
|
else {
|
|
652
|
-
|
|
692
|
+
b = s;
|
|
653
693
|
return;
|
|
654
694
|
}
|
|
655
|
-
}),
|
|
695
|
+
}), b;
|
|
656
696
|
}
|
|
657
|
-
function
|
|
658
|
-
|
|
697
|
+
function Fe(n) {
|
|
698
|
+
xe(n) || k.value.push(n);
|
|
659
699
|
}
|
|
660
|
-
function
|
|
661
|
-
|
|
700
|
+
function Oe(n) {
|
|
701
|
+
k.value = k.value.filter((l) => l !== n);
|
|
662
702
|
}
|
|
663
|
-
function
|
|
664
|
-
return
|
|
703
|
+
function xe(n) {
|
|
704
|
+
return k.value.indexOf(n) >= 0;
|
|
665
705
|
}
|
|
666
|
-
function
|
|
667
|
-
|
|
706
|
+
function ht() {
|
|
707
|
+
k.value = [];
|
|
668
708
|
}
|
|
669
|
-
function
|
|
670
|
-
|
|
709
|
+
function mt() {
|
|
710
|
+
P.value > e.firstPage && (P.value -= 1, q());
|
|
671
711
|
}
|
|
672
|
-
function
|
|
673
|
-
|
|
712
|
+
function yt() {
|
|
713
|
+
P.value < _.value.last_page && (P.value += 1, q());
|
|
674
714
|
}
|
|
675
|
-
function
|
|
676
|
-
|
|
715
|
+
function _t(n) {
|
|
716
|
+
n != P.value && n >= e.firstPage && n <= _.value.last_page && (P.value = n, q());
|
|
677
717
|
}
|
|
678
|
-
function
|
|
679
|
-
return
|
|
718
|
+
function G(n) {
|
|
719
|
+
return c.value.indexOf(n) >= 0;
|
|
680
720
|
}
|
|
681
|
-
function
|
|
682
|
-
|
|
721
|
+
function Re(n) {
|
|
722
|
+
G(n) || c.value.push(n), ae();
|
|
683
723
|
}
|
|
684
|
-
function
|
|
685
|
-
|
|
686
|
-
|
|
724
|
+
function qe(n) {
|
|
725
|
+
G(n) && (c.value.splice(
|
|
726
|
+
c.value.indexOf(n),
|
|
687
727
|
1
|
|
688
|
-
),
|
|
728
|
+
), ne());
|
|
689
729
|
}
|
|
690
|
-
function
|
|
691
|
-
|
|
730
|
+
function Pt(n) {
|
|
731
|
+
G(n) ? qe(n) : Re(n);
|
|
692
732
|
}
|
|
693
|
-
function
|
|
694
|
-
|
|
733
|
+
function Ct(n) {
|
|
734
|
+
n < 0 || n > h.value.length || (h.value[n].visible = !0);
|
|
695
735
|
}
|
|
696
|
-
function
|
|
697
|
-
|
|
736
|
+
function wt(n) {
|
|
737
|
+
n < 0 || n > h.value.length || (h.value[n].visible = !1);
|
|
698
738
|
}
|
|
699
|
-
function
|
|
700
|
-
|
|
739
|
+
function St(n) {
|
|
740
|
+
n < 0 || n > h.value.length || (h.value[n].visible = !h.value[n].visible);
|
|
701
741
|
}
|
|
702
|
-
function
|
|
703
|
-
return
|
|
704
|
-
total:
|
|
705
|
-
per_page:
|
|
706
|
-
current_page:
|
|
707
|
-
last_page: Math.ceil(
|
|
742
|
+
function kt(n = null, l = null, s = null) {
|
|
743
|
+
return n = n === null ? 0 : n, l = l === null ? e.perPage : l, s = s === null ? P.value : s, {
|
|
744
|
+
total: n,
|
|
745
|
+
per_page: l,
|
|
746
|
+
current_page: s,
|
|
747
|
+
last_page: Math.ceil(n / l) || 0,
|
|
708
748
|
next_page_url: "",
|
|
709
749
|
prev_page_url: "",
|
|
710
|
-
from: (
|
|
711
|
-
to: Math.min(
|
|
750
|
+
from: (s - 1) * l + 1,
|
|
751
|
+
to: Math.min(s * l, n)
|
|
712
752
|
};
|
|
713
753
|
}
|
|
714
|
-
function
|
|
715
|
-
s.
|
|
716
|
-
|
|
717
|
-
|
|
754
|
+
function $t(n) {
|
|
755
|
+
const l = (s) => Hn(s) || Object.isFrozen(Ie(s));
|
|
756
|
+
return l(n) || n.some(l) ? w(n.map((s) => E({}, s))).value : n;
|
|
757
|
+
}
|
|
758
|
+
function De() {
|
|
759
|
+
let n = !1;
|
|
760
|
+
d.value.forEach((l) => {
|
|
761
|
+
const s = l.sortField || l.field;
|
|
762
|
+
l.sortField !== s && (In(l, "sortField", s), n = !0);
|
|
763
|
+
}), n && N();
|
|
718
764
|
}
|
|
719
|
-
function
|
|
765
|
+
function Ft() {
|
|
720
766
|
if (e.data !== null && Array.isArray(e.data)) {
|
|
721
|
-
|
|
767
|
+
M(e.data);
|
|
722
768
|
return;
|
|
723
769
|
}
|
|
724
|
-
e.dataManager ?
|
|
770
|
+
e.dataManager ? Ot() : M(e.data);
|
|
725
771
|
}
|
|
726
|
-
function
|
|
727
|
-
const
|
|
728
|
-
|
|
772
|
+
function Ot() {
|
|
773
|
+
const n = e.dataManager(d.value, kt());
|
|
774
|
+
Rt(n) ? n.then((l) => M(l)) : M(n);
|
|
729
775
|
}
|
|
730
|
-
function
|
|
731
|
-
return typeof
|
|
776
|
+
function xt(n) {
|
|
777
|
+
return typeof n == "object" && n !== null;
|
|
732
778
|
}
|
|
733
|
-
function
|
|
734
|
-
return
|
|
779
|
+
function Rt(n) {
|
|
780
|
+
return xt(n) && typeof n.then == "function";
|
|
735
781
|
}
|
|
736
|
-
function
|
|
737
|
-
return typeof e.rowClass == "function" ? e.rowClass(
|
|
782
|
+
function bn(n, l) {
|
|
783
|
+
return typeof e.rowClass == "function" ? e.rowClass(n, l) : e.rowClass;
|
|
738
784
|
}
|
|
739
|
-
function
|
|
740
|
-
return typeof e.detailRowClass == "function" ? e.detailRowClass(
|
|
785
|
+
function gn(n, l) {
|
|
786
|
+
return typeof e.detailRowClass == "function" ? e.detailRowClass(n, l) : e.detailRowClass;
|
|
741
787
|
}
|
|
742
|
-
function
|
|
743
|
-
return
|
|
788
|
+
function pn(n, l, s) {
|
|
789
|
+
return C("row-clicked", { data: n, index: l, event: s }), !0;
|
|
744
790
|
}
|
|
745
|
-
function
|
|
746
|
-
|
|
791
|
+
function hn(n, l, s) {
|
|
792
|
+
C("row-dblclicked", { data: n, index: l, event: s });
|
|
747
793
|
}
|
|
748
|
-
function
|
|
749
|
-
|
|
794
|
+
function mn(n, l, s) {
|
|
795
|
+
C("detail-row-clicked", { data: n, index: l, event: s });
|
|
750
796
|
}
|
|
751
|
-
function
|
|
752
|
-
|
|
797
|
+
function yn(n, l, s, b) {
|
|
798
|
+
C("cell-clicked", { data: n, index: l, field: s, event: b });
|
|
753
799
|
}
|
|
754
|
-
function
|
|
755
|
-
|
|
800
|
+
function _n(n, l, s, b) {
|
|
801
|
+
C("cell-dblclicked", { data: n, index: l, field: s, event: b });
|
|
756
802
|
}
|
|
757
|
-
function
|
|
758
|
-
|
|
803
|
+
function Pn(n, l, s, b) {
|
|
804
|
+
C("cell-rightclicked", { data: n, index: l, field: s, event: b });
|
|
759
805
|
}
|
|
760
|
-
function
|
|
761
|
-
|
|
806
|
+
function Cn(n, l, s) {
|
|
807
|
+
C("row-mouseover", { data: n, index: l, event: s });
|
|
762
808
|
}
|
|
763
|
-
function
|
|
764
|
-
|
|
809
|
+
function wn(n, l) {
|
|
810
|
+
C("field-event", n, l, o == null ? void 0 : o.proxy);
|
|
765
811
|
}
|
|
766
|
-
function
|
|
767
|
-
|
|
812
|
+
function qt(n, l) {
|
|
813
|
+
C("header-event", n, l, o == null ? void 0 : o.proxy);
|
|
768
814
|
}
|
|
769
|
-
function
|
|
770
|
-
if (
|
|
771
|
-
|
|
815
|
+
function Dt(n, l, s) {
|
|
816
|
+
if (s[e.trackBy] === void 0) {
|
|
817
|
+
W(`checkbox field: The "${e.trackBy}" field does not exist! Make sure the field you specify in "track-by" prop does exist.`);
|
|
772
818
|
return;
|
|
773
819
|
}
|
|
774
|
-
const
|
|
775
|
-
|
|
776
|
-
}
|
|
777
|
-
function
|
|
778
|
-
var l,
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
}) : (
|
|
782
|
-
|
|
783
|
-
}),
|
|
784
|
-
}
|
|
785
|
-
function
|
|
786
|
-
|
|
787
|
-
}
|
|
788
|
-
function
|
|
789
|
-
return
|
|
790
|
-
}
|
|
791
|
-
function
|
|
792
|
-
return
|
|
793
|
-
}
|
|
794
|
-
function
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
}
|
|
820
|
+
const b = s[e.trackBy];
|
|
821
|
+
n ? Fe(b) : Oe(b), C("checkbox-toggled", n, l);
|
|
822
|
+
}
|
|
823
|
+
function Tt(n) {
|
|
824
|
+
var l, s;
|
|
825
|
+
n ? (l = u.value) == null || l.forEach((b) => {
|
|
826
|
+
Fe(b[e.trackBy]);
|
|
827
|
+
}) : (s = u.value) == null || s.forEach((b) => {
|
|
828
|
+
Oe(b[e.trackBy]);
|
|
829
|
+
}), C("checkbox-toggled-all", n);
|
|
830
|
+
}
|
|
831
|
+
function Et(n) {
|
|
832
|
+
n === "prev" ? mt() : n === "next" ? yt() : _t(n);
|
|
833
|
+
}
|
|
834
|
+
function Te() {
|
|
835
|
+
return q();
|
|
836
|
+
}
|
|
837
|
+
function C(n, ...l) {
|
|
838
|
+
return a(`${e.eventPrefix}${n}`, ...l);
|
|
839
|
+
}
|
|
840
|
+
function Sn() {
|
|
841
|
+
if (V) return {};
|
|
842
|
+
const n = [e.eventPrefix, `${e.eventPrefix}x`.replace(/-(\w)/g, (s, b) => b.toUpperCase()).slice(0, -1)].map((s) => `on${s.charAt(0).toUpperCase()}${s.slice(1)}`), l = {};
|
|
843
|
+
for (const s in r)
|
|
844
|
+
if (Object.prototype.hasOwnProperty.call(r, s)) {
|
|
845
|
+
if (/^on[^a-z]/.test(s)) {
|
|
846
|
+
const b = s.replace(/(?:Once|Passive|Capture)+$/, "");
|
|
847
|
+
if (!s.startsWith("on:") && !/^on[A-Z][a-z0-9]*$/.test(b) && (e.eventPrefix === "" || n.some((D) => b.startsWith(D)))) continue;
|
|
848
|
+
}
|
|
849
|
+
l[s] = r[s];
|
|
850
|
+
}
|
|
851
|
+
return l;
|
|
852
|
+
}
|
|
853
|
+
function Ee() {
|
|
854
|
+
return P.value = e.firstPage, q();
|
|
855
|
+
}
|
|
856
|
+
function jt() {
|
|
857
|
+
u.value = null, _.value = null, C("data-reset");
|
|
858
|
+
}
|
|
859
|
+
return j(() => e.multiSort, (n) => {
|
|
860
|
+
!n && d.value.length > 1 && (d.value.splice(1), N(), q());
|
|
861
|
+
}), j(() => e.apiUrl, (n, l) => e.reactiveApiUrl && n !== l && Ee()), j(() => e.data, M, { immediate: !0 }), j(() => e.tableHeight, ae), j(() => e.fields, ge, { immediate: !0 }), j(() => e.perPage, Te), j(() => e.sortOrder, (n, l) => {
|
|
862
|
+
(n !== l || d.value === n) && (d.value = $t(n)), De();
|
|
863
|
+
}, { flush: "sync" }), j(() => e.httpOptions, (n) => {
|
|
864
|
+
$.value = n;
|
|
865
|
+
}, { immediate: !0 }), { bodyRevision: f, getSlot: lt, getRootAttrs: Sn, tableContext: et, fireEvent: C, bodyWrapper: i, vuetable: v, tableFields: h, tableData: u, tablePagination: _, currentPage: P, selectedTo: k, visibleDetailRows: c, lastScrollPosition: m, scrollBarWidth: x, scrollVisible: R, order: d, optionsHttp: $, instanceFetch: se, tableCss: ue, dataIsAvailable: X, useDetailRow: Ge, hasRowIdentifier: ce, countVisibleFields: Ke, countTableData: de, displayEmptyDataRow: Ye, emptyDataTable: fe, lessThanMinRows: Ze, blankRows: Qe, isApiMode: ve, isDataMode: Je, isFixedHeader: Xe, getScrollBarWidth: tt, handleScroll: be, warn: W, bodyClass: fn, normalizeFields: ge, newField: nt, normalizeFieldName: pe, setData: M, checkIfRowIdentifierExists: ee, makeTitle: te, getFieldTitle: at, renderNormalField: vn, isFieldComponent: he, isFieldSlot: rt, titleCase: me, camelCase: ot, loadData: q, fetch: it, loadSuccess: st, updateHeader: ne, checkScrollbarVisibility: ae, loadFailed: ut, getAllQueryParams: ye, getSortParam: ct, getDefaultSortParam: _e, getAppendParams: dt, isSortable: re, currentSortOrderPosition: ft, fieldIsInSortOrderPosition: Pe, orderBy: vt, addSortColumn: Ce, removeSortColumn: we, setSortColumnDirection: Se, multiColumnSort: bt, singleColumnSort: ke, clearSortOrder: gt, hasFormatter: $e, callFormatter: pt, getObjectValue: I, selectId: Fe, unselectId: Oe, isSelectedRow: xe, clearSelectedValues: ht, gotoPreviousPage: mt, gotoNextPage: yt, gotoPage: _t, isVisibleDetailRow: G, showDetailRow: Re, hideDetailRow: qe, toggleDetailRow: Pt, showField: Ct, hideField: wt, toggleField: St, makePagination: kt, normalizeSortOrder: De, handleDataMode: Ft, callDataManager: Ot, isObject: xt, isPromiseObject: Rt, onRowClass: bn, onDetailRowClass: gn, onRowClicked: pn, onRowDoubleClicked: hn, onDetailRowClick: mn, onCellClicked: yn, onCellDoubleClicked: _n, onCellRightClicked: Pn, onMouseOver: Cn, onFieldEvent: wn, onHeaderEvent: qt, onCheckboxToggled: Dt, onCheckboxToggledAll: Tt, changePage: Et, reload: Te, refresh: Ee, resetData: jt, VuetableColGroup: oe };
|
|
807
866
|
}
|
|
808
867
|
});
|
|
809
|
-
var
|
|
810
|
-
var e = this,
|
|
811
|
-
return t("div", { class: e.tableCss.tableWrapper }, [e.isFixedHeader ? t("div", { staticClass: "vuetable-head-wrapper" }, [t("table", { class: ["vuetable", e.tableCss.tableClass, e.tableCss.tableHeaderClass] }, [t("vuetable-col-group", { attrs: { "is-header": "" } }), e._v(" "), t("thead", [e._t("tableHeader", function() {
|
|
868
|
+
var ca = function() {
|
|
869
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
870
|
+
return t("div", e._b({ class: e.tableCss.tableWrapper }, "div", e.getRootAttrs(), !1), [e.isFixedHeader ? t("div", { staticClass: "vuetable-head-wrapper" }, [t("table", { class: ["vuetable", e.tableCss.tableClass, e.tableCss.tableHeaderClass] }, [t("vuetable-col-group", { attrs: { "is-header": "" } }), e._v(" "), t("thead", [e._t("tableHeader", function() {
|
|
812
871
|
return e._l(e.headerRows, function(r, o) {
|
|
813
872
|
return t(r, { key: o, tag: "component", attrs: { index: o, vuetable: e.tableContext }, on: { "vuetable:header-event": e.onHeaderEvent } });
|
|
814
873
|
});
|
|
815
|
-
}, { fields: e.tableFields })], 2)], 1)]) : e._e(), e._v(" "), t("div", { ref: "bodyWrapper", staticClass: "vuetable-body-wrapper", class: { "fixed-header": e.isFixedHeader }, style: { height: e.tableHeight } }, [t("table", { class: ["vuetable", e.isFixedHeader ? "fixed-header" : "", e.tableCss.tableClass, e.tableCss.tableBodyClass] }, [t("vuetable-col-group"), e._v(" "), e.isFixedHeader ? e._e() : t("thead", [e.
|
|
816
|
-
return
|
|
817
|
-
|
|
818
|
-
});
|
|
819
|
-
}, { fields: e.tableFields })], 2), e._v(" "), t("tfoot", [e._t("tableFooter", null, { fields: e.tableFields })], 2), e._v(" "), t("tbody", { staticClass: "vuetable-body" }, [e._l(e.tableData, function(r, o) {
|
|
874
|
+
}, { fields: e.tableFields })], 2)], 1)]) : e._e(), e._v(" "), t("render-boundary", { attrs: { revision: e.bodyRevision } }, [t("div", { ref: "bodyWrapper", staticClass: "vuetable-body-wrapper", class: { "fixed-header": e.isFixedHeader }, style: { height: e.tableHeight } }, [t("table", { class: ["vuetable", e.isFixedHeader ? "fixed-header" : "", e.tableCss.tableClass, e.tableCss.tableBodyClass] }, [t("vuetable-col-group"), e._v(" "), e.isFixedHeader ? e._e() : t("thead", [t("slot-outlet", { attrs: { content: e.getSlot("tableHeader"), scope: { fields: e.tableFields } } }, e._l(e.headerRows, function(r, o) {
|
|
875
|
+
return t(r, { key: o, tag: "component", attrs: { index: o, vuetable: e.tableContext }, on: { "vuetable:header-event": e.onHeaderEvent } });
|
|
876
|
+
}), 1)], 1), e._v(" "), t("tfoot", [t("slot-outlet", { attrs: { content: e.getSlot("tableFooter"), scope: { fields: e.tableFields } } })], 1), e._v(" "), t("tbody", { staticClass: "vuetable-body" }, [e._l(e.tableData, function(r, o) {
|
|
820
877
|
return [t("tr", { key: o + ":0", class: e.onRowClass(r, o), attrs: { "item-index": o }, on: { click: function(i) {
|
|
821
878
|
return e.onRowClicked(r, o, i);
|
|
822
879
|
}, dblclick: function(i) {
|
|
823
880
|
return e.onRowDoubleClicked(r, o, i);
|
|
824
881
|
}, mouseover: function(i) {
|
|
825
882
|
return e.onMouseOver(r, o, i);
|
|
826
|
-
} } }, [e._l(e.tableFields, function(i,
|
|
827
|
-
return [i.visible ? [e.isFieldComponent(i.name) ? [t(i.name, { key:
|
|
828
|
-
return e.onCellClicked(r, o, i,
|
|
829
|
-
}, dblclick: function(
|
|
830
|
-
return e.onCellDoubleClicked(r, o, i,
|
|
831
|
-
}, contextmenu: function(
|
|
832
|
-
return e.onCellRightClicked(r, o, i,
|
|
883
|
+
} } }, [e._l(e.tableFields, function(i, f) {
|
|
884
|
+
return [i.visible ? [e.isFieldComponent(i.name) ? [t(i.name, { key: f, tag: "component", class: e.bodyClass("vuetable-component", i), style: { width: i.width || void 0 }, attrs: { "row-data": r, "row-index": o, "row-field": i, vuetable: e.tableContext }, on: { "vuetable:field-event": e.onFieldEvent } })] : e.isFieldSlot(i.name) ? [t("td", { key: f, class: e.bodyClass("vuetable-slot", i), style: { width: i.width || void 0 } }, [t("slot-outlet", { attrs: { content: e.getSlot(i.name), scope: { rowData: r, rowIndex: o, rowField: i } } })], 1)] : [t("td", { key: f, class: e.bodyClass("vuetable-td-" + i.name, i), style: { width: i.width || void 0 }, domProps: { innerHTML: e._s(e.renderNormalField(i, r)) }, on: { click: function(g) {
|
|
885
|
+
return e.onCellClicked(r, o, i, g);
|
|
886
|
+
}, dblclick: function(g) {
|
|
887
|
+
return e.onCellDoubleClicked(r, o, i, g);
|
|
888
|
+
}, contextmenu: function(g) {
|
|
889
|
+
return e.onCellRightClicked(r, o, i, g);
|
|
833
890
|
} } })]] : e._e()];
|
|
834
891
|
})], 2), e._v(" "), e.useDetailRow ? [t("transition", { key: o + ":1.0:" + o, attrs: { name: e.detailRowTransition } }, [e.isVisibleDetailRow(r[e.trackBy]) ? t("tr", { class: e.onDetailRowClass(r, o), on: { click: function(i) {
|
|
835
892
|
return e.onDetailRowClick(r, o, i);
|
|
@@ -837,99 +894,99 @@ var La = function() {
|
|
|
837
894
|
}), e._v(" "), e.displayEmptyDataRow ? [t("tr", [t("td", { staticClass: "vuetable-empty-result", attrs: { colspan: e.countVisibleFields }, domProps: { innerHTML: e._s(e.noDataTemplate) } })])] : e._e(), e._v(" "), e.lessThanMinRows ? e._l(e.blankRows, function(r) {
|
|
838
895
|
return t("tr", { key: r, staticClass: "blank-row" }, [e._l(e.tableFields, function(o, i) {
|
|
839
896
|
return [o.visible ? t("td", { key: i }, [e._v(`
|
|
840
|
-
|
|
841
|
-
|
|
897
|
+
|
|
898
|
+
`)]) : e._e()];
|
|
842
899
|
})], 2);
|
|
843
|
-
}) : e._e()], 2)], 1)])]);
|
|
844
|
-
},
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
function
|
|
848
|
-
return typeof e == "function" ? e() :
|
|
900
|
+
}) : e._e()], 2)], 1)])])], 1);
|
|
901
|
+
}, da = [];
|
|
902
|
+
z.render = ca;
|
|
903
|
+
z.staticRenderFns = da;
|
|
904
|
+
function F(e) {
|
|
905
|
+
return typeof e == "function" ? e() : Bn(e);
|
|
849
906
|
}
|
|
850
|
-
function
|
|
851
|
-
const t = e === void 0 ||
|
|
852
|
-
var
|
|
853
|
-
return (
|
|
854
|
-
}),
|
|
855
|
-
var
|
|
856
|
-
return ((
|
|
857
|
-
}),
|
|
858
|
-
var
|
|
859
|
-
return ((
|
|
860
|
-
}),
|
|
861
|
-
function
|
|
862
|
-
|
|
907
|
+
function on(e, a) {
|
|
908
|
+
const t = e === void 0 || ln(e) || typeof e == "function" || typeof e == "number" ? { onEachSide: e, firstPage: a } : e, r = () => F(t.onEachSide === void 0 ? 2 : t.onEachSide), o = () => F(t.firstPage === void 0 ? 1 : t.firstPage), i = w(null), f = w({}), g = w("vuetable-pagination:"), p = y(() => {
|
|
909
|
+
var d, $;
|
|
910
|
+
return ($ = (d = i.value) == null ? void 0 : d.last_page) != null ? $ : 0;
|
|
911
|
+
}), v = y(() => {
|
|
912
|
+
var d;
|
|
913
|
+
return ((d = i.value) == null ? void 0 : d.current_page) === F(o);
|
|
914
|
+
}), h = y(() => {
|
|
915
|
+
var d;
|
|
916
|
+
return ((d = i.value) == null ? void 0 : d.current_page) === p.value;
|
|
917
|
+
}), u = y(() => F(r) * 2 + 1), _ = y(() => i.value ? i.value.last_page - F(o) + 1 : 0), P = y(() => _.value < F(r) * 2 + 4), k = y(() => !i.value || i.value.current_page <= F(r) ? 1 : i.value.current_page >= _.value - F(r) ? _.value - F(r) * 2 : i.value.current_page - F(r));
|
|
918
|
+
function c() {
|
|
919
|
+
f.value = T(T({}, A.pagination), F(t.css === void 0 ? {} : t.css));
|
|
863
920
|
}
|
|
864
|
-
function
|
|
865
|
-
var
|
|
866
|
-
(
|
|
921
|
+
function m(d) {
|
|
922
|
+
var $;
|
|
923
|
+
($ = t.emit) == null || $.call(t, "vuetable-pagination:change-page", d);
|
|
867
924
|
}
|
|
868
|
-
function
|
|
869
|
-
i.value =
|
|
925
|
+
function x(d) {
|
|
926
|
+
i.value = d;
|
|
870
927
|
}
|
|
871
|
-
function
|
|
928
|
+
function R() {
|
|
872
929
|
i.value = null;
|
|
873
930
|
}
|
|
874
|
-
function
|
|
875
|
-
var
|
|
876
|
-
return
|
|
931
|
+
function B(d) {
|
|
932
|
+
var $;
|
|
933
|
+
return d === (($ = i.value) == null ? void 0 : $.current_page);
|
|
877
934
|
}
|
|
878
|
-
return
|
|
935
|
+
return c(), {
|
|
879
936
|
tablePagination: i,
|
|
880
|
-
customCss:
|
|
881
|
-
eventPrefix:
|
|
882
|
-
lastPage:
|
|
883
|
-
isOnFirstPage:
|
|
884
|
-
isOnLastPage:
|
|
885
|
-
notEnoughPages:
|
|
886
|
-
windowSize:
|
|
937
|
+
customCss: f,
|
|
938
|
+
eventPrefix: g,
|
|
939
|
+
lastPage: p,
|
|
940
|
+
isOnFirstPage: v,
|
|
941
|
+
isOnLastPage: h,
|
|
942
|
+
notEnoughPages: P,
|
|
943
|
+
windowSize: u,
|
|
887
944
|
windowStart: k,
|
|
888
|
-
totalPage:
|
|
889
|
-
setPaginationData:
|
|
890
|
-
resetData:
|
|
891
|
-
isCurrentPage:
|
|
892
|
-
mergeCss:
|
|
893
|
-
loadPage:
|
|
945
|
+
totalPage: _,
|
|
946
|
+
setPaginationData: x,
|
|
947
|
+
resetData: R,
|
|
948
|
+
isCurrentPage: B,
|
|
949
|
+
mergeCss: c,
|
|
950
|
+
loadPage: m
|
|
894
951
|
};
|
|
895
952
|
}
|
|
896
|
-
var
|
|
897
|
-
for (var t in
|
|
898
|
-
|
|
899
|
-
if (
|
|
900
|
-
for (var t of
|
|
901
|
-
|
|
953
|
+
var fa = Object.defineProperty, Nt = Object.getOwnPropertySymbols, va = Object.prototype.hasOwnProperty, ba = Object.prototype.propertyIsEnumerable, Lt = (e, a, t) => a in e ? fa(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, zt = (e, a) => {
|
|
954
|
+
for (var t in a || (a = {}))
|
|
955
|
+
va.call(a, t) && Lt(e, t, a[t]);
|
|
956
|
+
if (Nt)
|
|
957
|
+
for (var t of Nt(a))
|
|
958
|
+
ba.call(a, t) && Lt(e, t, a[t]);
|
|
902
959
|
return e;
|
|
903
960
|
};
|
|
904
|
-
const
|
|
961
|
+
const ze = O({
|
|
905
962
|
props: {
|
|
906
963
|
css: { type: Object, required: !1, default: () => ({}) },
|
|
907
964
|
onEachSide: { type: Number, required: !1, default: 2 },
|
|
908
965
|
firstPage: { type: Number, required: !1, default: 1 }
|
|
909
966
|
},
|
|
910
967
|
emits: ["vuetable-pagination:change-page"],
|
|
911
|
-
setup(e, { emit:
|
|
912
|
-
const t =
|
|
968
|
+
setup(e, { emit: a }) {
|
|
969
|
+
const t = Me(zt(zt({}, A.pagination), e.css)), {
|
|
913
970
|
tablePagination: r,
|
|
914
971
|
totalPage: o,
|
|
915
972
|
lastPage: i,
|
|
916
|
-
isOnFirstPage:
|
|
917
|
-
isOnLastPage:
|
|
918
|
-
notEnoughPages:
|
|
919
|
-
windowSize:
|
|
920
|
-
windowStart:
|
|
921
|
-
isCurrentPage:
|
|
922
|
-
setPaginationData:
|
|
923
|
-
resetData:
|
|
924
|
-
} =
|
|
925
|
-
function k(
|
|
926
|
-
|
|
927
|
-
}
|
|
928
|
-
return { tableCss: t, tablePagination: r, totalPage: o, lastPage: i, isOnFirstPage:
|
|
973
|
+
isOnFirstPage: f,
|
|
974
|
+
isOnLastPage: g,
|
|
975
|
+
notEnoughPages: p,
|
|
976
|
+
windowSize: v,
|
|
977
|
+
windowStart: h,
|
|
978
|
+
isCurrentPage: u,
|
|
979
|
+
setPaginationData: _,
|
|
980
|
+
resetData: P
|
|
981
|
+
} = on(() => e.onEachSide, () => e.firstPage);
|
|
982
|
+
function k(c) {
|
|
983
|
+
a("vuetable-pagination:change-page", c);
|
|
984
|
+
}
|
|
985
|
+
return { tableCss: t, tablePagination: r, totalPage: o, lastPage: i, isOnFirstPage: f, isOnLastPage: g, notEnoughPages: p, windowSize: v, windowStart: h, isCurrentPage: u, setPaginationData: _, resetData: P, loadPage: k };
|
|
929
986
|
}
|
|
930
987
|
});
|
|
931
|
-
var
|
|
932
|
-
var e = this,
|
|
988
|
+
var ga = function() {
|
|
989
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
933
990
|
return t("div", { directives: [{ name: "show", rawName: "v-show", value: e.tablePagination && e.lastPage > e.firstPage, expression: "tablePagination && lastPage > firstPage" }], class: e.tableCss.wrapperClass }, [t("a", { class: ["btn-nav", e.tableCss.linkClass, e.isOnFirstPage ? e.tableCss.disabledClass : ""], on: { click: function(r) {
|
|
934
991
|
return e.loadPage(e.firstPage);
|
|
935
992
|
} } }, [e.tableCss.icons.first != "" ? t("i", { class: [e.tableCss.icons.first] }) : t("span", [e._v(`
|
|
@@ -955,18 +1012,18 @@ var Ka = function() {
|
|
|
955
1012
|
} } }, [e.tableCss.icons.last != "" ? t("i", { class: [e.tableCss.icons.last] }) : t("span", [e._v(`
|
|
956
1013
|
»
|
|
957
1014
|
`)])])], 2);
|
|
958
|
-
},
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
var
|
|
962
|
-
for (var t in
|
|
963
|
-
|
|
964
|
-
if (
|
|
965
|
-
for (var t of
|
|
966
|
-
|
|
1015
|
+
}, pa = [];
|
|
1016
|
+
ze.render = ga;
|
|
1017
|
+
ze.staticRenderFns = pa;
|
|
1018
|
+
var ha = Object.defineProperty, Ut = Object.getOwnPropertySymbols, ma = Object.prototype.hasOwnProperty, ya = Object.prototype.propertyIsEnumerable, Wt = (e, a, t) => a in e ? ha(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, Gt = (e, a) => {
|
|
1019
|
+
for (var t in a || (a = {}))
|
|
1020
|
+
ma.call(a, t) && Wt(e, t, a[t]);
|
|
1021
|
+
if (Ut)
|
|
1022
|
+
for (var t of Ut(a))
|
|
1023
|
+
ya.call(a, t) && Wt(e, t, a[t]);
|
|
967
1024
|
return e;
|
|
968
1025
|
};
|
|
969
|
-
const
|
|
1026
|
+
const Ue = O({
|
|
970
1027
|
props: {
|
|
971
1028
|
css: { type: Object, required: !1, default: () => ({}) },
|
|
972
1029
|
pageText: { type: String, required: !1, default: "Page" },
|
|
@@ -974,81 +1031,81 @@ const qe = F({
|
|
|
974
1031
|
firstPage: { type: Number, required: !1, default: 1 }
|
|
975
1032
|
},
|
|
976
1033
|
emits: ["vuetable-pagination:change-page"],
|
|
977
|
-
setup(e, { emit:
|
|
978
|
-
const t =
|
|
1034
|
+
setup(e, { emit: a }) {
|
|
1035
|
+
const t = Vn(), r = Me(Gt(Gt({}, A.pagination), e.css)), {
|
|
979
1036
|
tablePagination: o,
|
|
980
1037
|
totalPage: i,
|
|
981
|
-
lastPage:
|
|
982
|
-
isOnFirstPage:
|
|
983
|
-
isOnLastPage:
|
|
984
|
-
notEnoughPages:
|
|
985
|
-
windowSize:
|
|
986
|
-
windowStart:
|
|
987
|
-
isCurrentPage:
|
|
988
|
-
setPaginationData:
|
|
1038
|
+
lastPage: f,
|
|
1039
|
+
isOnFirstPage: g,
|
|
1040
|
+
isOnLastPage: p,
|
|
1041
|
+
notEnoughPages: v,
|
|
1042
|
+
windowSize: h,
|
|
1043
|
+
windowStart: u,
|
|
1044
|
+
isCurrentPage: _,
|
|
1045
|
+
setPaginationData: P,
|
|
989
1046
|
resetData: k
|
|
990
|
-
} =
|
|
991
|
-
function
|
|
992
|
-
|
|
1047
|
+
} = on(() => e.onEachSide, () => e.firstPage);
|
|
1048
|
+
function c(x) {
|
|
1049
|
+
a("vuetable-pagination:change-page", x);
|
|
993
1050
|
}
|
|
994
|
-
function
|
|
995
|
-
|
|
1051
|
+
function m(x) {
|
|
1052
|
+
c(x.target.selectedIndex + e.firstPage);
|
|
996
1053
|
}
|
|
997
|
-
return t.on("vuetable:pagination-data", (
|
|
998
|
-
|
|
999
|
-
}), { emitter: t, tableCss: r, tablePagination: o, totalPage: i, lastPage:
|
|
1054
|
+
return t.on("vuetable:pagination-data", (x) => {
|
|
1055
|
+
P(x);
|
|
1056
|
+
}), { emitter: t, tableCss: r, tablePagination: o, totalPage: i, lastPage: f, isOnFirstPage: g, isOnLastPage: p, notEnoughPages: v, windowSize: h, windowStart: u, isCurrentPage: _, setPaginationData: P, resetData: k, loadPage: c, onPageSelected: m };
|
|
1000
1057
|
}
|
|
1001
1058
|
});
|
|
1002
|
-
var
|
|
1003
|
-
var e,
|
|
1059
|
+
var _a = function() {
|
|
1060
|
+
var e, a, t = this, r = t.$createElement, o = t._self._c || r;
|
|
1004
1061
|
return o("div", { class: [t.tableCss.wrapperClass] }, [o("a", { class: [t.tableCss.linkClass, (e = {}, e[t.tableCss.disabledClass] = t.isOnFirstPage, e)], on: { click: function(i) {
|
|
1005
1062
|
return t.loadPage("prev");
|
|
1006
1063
|
} } }, [o("i", { class: t.tableCss.icons.prev })]), t._v(" "), o("select", { class: ["vuetable-pagination-dropdown", t.tableCss.dropdownClass], on: { change: function(i) {
|
|
1007
1064
|
return t.onPageSelected(i);
|
|
1008
|
-
} } }, t._l(t.totalPage, function(i,
|
|
1009
|
-
return o("option", { key: i, class: [t.tableCss.pageClass], domProps: { value:
|
|
1065
|
+
} } }, t._l(t.totalPage, function(i, f) {
|
|
1066
|
+
return o("option", { key: i, class: [t.tableCss.pageClass], domProps: { value: f + t.firstPage, selected: t.isCurrentPage(f + t.firstPage) } }, [t._v(`
|
|
1010
1067
|
` + t._s(t.pageText) + " " + t._s(i) + `
|
|
1011
1068
|
`)]);
|
|
1012
|
-
}), 0), t._v(" "), o("a", { class: [t.tableCss.linkClass, (
|
|
1069
|
+
}), 0), t._v(" "), o("a", { class: [t.tableCss.linkClass, (a = {}, a[t.tableCss.disabledClass] = t.isOnLastPage, a)], on: { click: function(i) {
|
|
1013
1070
|
return t.loadPage("next");
|
|
1014
1071
|
} } }, [o("i", { class: t.tableCss.icons.next })])]);
|
|
1015
|
-
},
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
function
|
|
1019
|
-
const t = e === void 0 ||
|
|
1020
|
-
function
|
|
1021
|
-
|
|
1072
|
+
}, Pa = [];
|
|
1073
|
+
Ue.render = _a;
|
|
1074
|
+
Ue.staticRenderFns = Pa;
|
|
1075
|
+
function Ca(e, a) {
|
|
1076
|
+
const t = e === void 0 || ln(e) || typeof e == "function" || typeof e == "string" ? { noDataTemplate: e, infoTemplate: a } : e, r = () => F(t.noDataTemplate === void 0 ? "No relevant data" : t.noDataTemplate), o = () => F(t.infoTemplate === void 0 ? "Displaying {from} to {to} of {total} items" : t.infoTemplate), i = w(null), f = w({}), g = y(() => i.value == null || i.value.total == 0), p = y(() => g.value ? F(r) : F(o).replace("{from}", `${i.value.from || 0}`).replace("{to}", `${i.value.to || 0}`).replace("{total}", `${i.value.total || 0}`));
|
|
1077
|
+
function v() {
|
|
1078
|
+
f.value = T(T({}, A.paginationInfo), F(t.css === void 0 ? {} : t.css));
|
|
1022
1079
|
}
|
|
1023
|
-
function
|
|
1024
|
-
i.value =
|
|
1080
|
+
function h(P) {
|
|
1081
|
+
i.value = P;
|
|
1025
1082
|
}
|
|
1026
|
-
function
|
|
1083
|
+
function u() {
|
|
1027
1084
|
i.value = null;
|
|
1028
1085
|
}
|
|
1029
|
-
function
|
|
1086
|
+
function _(P) {
|
|
1030
1087
|
var k;
|
|
1031
|
-
return
|
|
1088
|
+
return P === ((k = i.value) == null ? void 0 : k.current_page);
|
|
1032
1089
|
}
|
|
1033
|
-
return
|
|
1090
|
+
return v(), {
|
|
1034
1091
|
tablePagination: i,
|
|
1035
|
-
customCss:
|
|
1036
|
-
paginationInfo:
|
|
1037
|
-
setPaginationData:
|
|
1038
|
-
resetData:
|
|
1039
|
-
isCurrentPage:
|
|
1040
|
-
mergeCss:
|
|
1092
|
+
customCss: f,
|
|
1093
|
+
paginationInfo: p,
|
|
1094
|
+
setPaginationData: h,
|
|
1095
|
+
resetData: u,
|
|
1096
|
+
isCurrentPage: _,
|
|
1097
|
+
mergeCss: v
|
|
1041
1098
|
};
|
|
1042
1099
|
}
|
|
1043
|
-
var
|
|
1044
|
-
for (var t in
|
|
1045
|
-
|
|
1046
|
-
if (
|
|
1047
|
-
for (var t of
|
|
1048
|
-
|
|
1100
|
+
var wa = Object.defineProperty, Kt = Object.getOwnPropertySymbols, Sa = Object.prototype.hasOwnProperty, ka = Object.prototype.propertyIsEnumerable, Yt = (e, a, t) => a in e ? wa(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, Zt = (e, a) => {
|
|
1101
|
+
for (var t in a || (a = {}))
|
|
1102
|
+
Sa.call(a, t) && Yt(e, t, a[t]);
|
|
1103
|
+
if (Kt)
|
|
1104
|
+
for (var t of Kt(a))
|
|
1105
|
+
ka.call(a, t) && Yt(e, t, a[t]);
|
|
1049
1106
|
return e;
|
|
1050
1107
|
};
|
|
1051
|
-
const
|
|
1108
|
+
const We = O({
|
|
1052
1109
|
props: {
|
|
1053
1110
|
css: { type: null, required: !1, default: () => ({}) },
|
|
1054
1111
|
infoTemplate: { type: String, required: !1, default: "Displaying {from} to {to} of {total} items" },
|
|
@@ -1056,21 +1113,21 @@ const Ee = F({
|
|
|
1056
1113
|
},
|
|
1057
1114
|
setup(e) {
|
|
1058
1115
|
const {
|
|
1059
|
-
tablePagination:
|
|
1116
|
+
tablePagination: a,
|
|
1060
1117
|
paginationInfo: t,
|
|
1061
1118
|
setPaginationData: r,
|
|
1062
1119
|
resetData: o
|
|
1063
|
-
} =
|
|
1064
|
-
return { tablePagination:
|
|
1120
|
+
} = Ca(() => e.noDataTemplate, () => e.infoTemplate), i = w(Zt(Zt({}, A.paginationInfo), e.css));
|
|
1121
|
+
return { tablePagination: a, paginationInfo: t, setPaginationData: r, resetData: o, tableCss: i };
|
|
1065
1122
|
}
|
|
1066
1123
|
});
|
|
1067
|
-
var
|
|
1068
|
-
var e = this,
|
|
1124
|
+
var $a = function() {
|
|
1125
|
+
var e = this, a = e.$createElement, t = e._self._c || a;
|
|
1069
1126
|
return t("div", { class: ["vuetable-pagination-info", e.tableCss.infoClass], domProps: { innerHTML: e._s(e.paginationInfo) } });
|
|
1070
|
-
},
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
const
|
|
1127
|
+
}, Fa = [];
|
|
1128
|
+
We.render = $a;
|
|
1129
|
+
We.staticRenderFns = Fa;
|
|
1130
|
+
const Oa = O({
|
|
1074
1131
|
props: {
|
|
1075
1132
|
rowData: {
|
|
1076
1133
|
type: Object,
|
|
@@ -1095,11 +1152,11 @@ const sn = F({
|
|
|
1095
1152
|
default: null
|
|
1096
1153
|
}
|
|
1097
1154
|
}
|
|
1098
|
-
}),
|
|
1099
|
-
mixins: [
|
|
1155
|
+
}), Za = O({
|
|
1156
|
+
mixins: [Oa],
|
|
1100
1157
|
methods: {
|
|
1101
|
-
toggleCheckbox(e,
|
|
1102
|
-
this.vuetable.onCheckboxToggled(
|
|
1158
|
+
toggleCheckbox(e, a) {
|
|
1159
|
+
this.vuetable.onCheckboxToggled(a.target.checked, this.rowField.name, e);
|
|
1103
1160
|
},
|
|
1104
1161
|
toggleAllCheckbox(e) {
|
|
1105
1162
|
this.vuetable.onCheckboxToggledAll(e.target.checked);
|
|
@@ -1110,20 +1167,20 @@ const sn = F({
|
|
|
1110
1167
|
isAllItemsInCurrentPageSelected() {
|
|
1111
1168
|
var e;
|
|
1112
1169
|
if (!this.vuetable.tableData) return;
|
|
1113
|
-
let
|
|
1170
|
+
let a = this.vuetable.trackBy, t = (e = this.$el) == null ? void 0 : e.querySelector("input[type=checkbox]"), r = this.vuetable.tableData.filter((o) => this.vuetable.isSelectedRow(o[a]));
|
|
1114
1171
|
return r.length <= 0 ? (t && (t.indeterminate = !1), !1) : r.length < this.vuetable.tableData.length ? (t && (t.indeterminate = !0), !0) : (t && (t.indeterminate = !1), !0);
|
|
1115
1172
|
}
|
|
1116
1173
|
}
|
|
1117
1174
|
});
|
|
1118
|
-
var
|
|
1119
|
-
for (var t in
|
|
1120
|
-
|
|
1121
|
-
if (
|
|
1122
|
-
for (var t of
|
|
1123
|
-
|
|
1175
|
+
var xa = Object.defineProperty, Qt = Object.getOwnPropertySymbols, Ra = Object.prototype.hasOwnProperty, qa = Object.prototype.propertyIsEnumerable, Jt = (e, a, t) => a in e ? xa(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, Xt = (e, a) => {
|
|
1176
|
+
for (var t in a || (a = {}))
|
|
1177
|
+
Ra.call(a, t) && Jt(e, t, a[t]);
|
|
1178
|
+
if (Qt)
|
|
1179
|
+
for (var t of Qt(a))
|
|
1180
|
+
qa.call(a, t) && Jt(e, t, a[t]);
|
|
1124
1181
|
return e;
|
|
1125
1182
|
};
|
|
1126
|
-
const
|
|
1183
|
+
const Qa = O({
|
|
1127
1184
|
props: {
|
|
1128
1185
|
css: {
|
|
1129
1186
|
type: Object,
|
|
@@ -1154,7 +1211,7 @@ const Rn = F({
|
|
|
1154
1211
|
},
|
|
1155
1212
|
methods: {
|
|
1156
1213
|
mergeCss() {
|
|
1157
|
-
this.customCss =
|
|
1214
|
+
this.customCss = Xt(Xt({}, A.paginationInfo), this.css);
|
|
1158
1215
|
},
|
|
1159
1216
|
setPaginationData(e) {
|
|
1160
1217
|
this.tablePagination = e;
|
|
@@ -1164,15 +1221,15 @@ const Rn = F({
|
|
|
1164
1221
|
}
|
|
1165
1222
|
}
|
|
1166
1223
|
});
|
|
1167
|
-
var
|
|
1168
|
-
for (var t in
|
|
1169
|
-
|
|
1170
|
-
if (
|
|
1171
|
-
for (var t of
|
|
1172
|
-
|
|
1224
|
+
var Da = Object.defineProperty, en = Object.getOwnPropertySymbols, Ta = Object.prototype.hasOwnProperty, Ea = Object.prototype.propertyIsEnumerable, tn = (e, a, t) => a in e ? Da(e, a, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[a] = t, nn = (e, a) => {
|
|
1225
|
+
for (var t in a || (a = {}))
|
|
1226
|
+
Ta.call(a, t) && tn(e, t, a[t]);
|
|
1227
|
+
if (en)
|
|
1228
|
+
for (var t of en(a))
|
|
1229
|
+
Ea.call(a, t) && tn(e, t, a[t]);
|
|
1173
1230
|
return e;
|
|
1174
1231
|
};
|
|
1175
|
-
const
|
|
1232
|
+
const Ja = O({
|
|
1176
1233
|
emits: [
|
|
1177
1234
|
"vuetable-pagination:change-page"
|
|
1178
1235
|
],
|
|
@@ -1229,7 +1286,7 @@ const Dn = F({
|
|
|
1229
1286
|
},
|
|
1230
1287
|
methods: {
|
|
1231
1288
|
mergeCss() {
|
|
1232
|
-
this.customCss =
|
|
1289
|
+
this.customCss = nn(nn({}, A.pagination), this.css);
|
|
1233
1290
|
},
|
|
1234
1291
|
loadPage(e) {
|
|
1235
1292
|
this.$emit("vuetable-pagination:change-page", e);
|
|
@@ -1245,93 +1302,93 @@ const Dn = F({
|
|
|
1245
1302
|
}
|
|
1246
1303
|
}
|
|
1247
1304
|
});
|
|
1248
|
-
function
|
|
1249
|
-
const
|
|
1305
|
+
function ja(e) {
|
|
1306
|
+
const a = H("vuetable", null);
|
|
1250
1307
|
return {
|
|
1251
|
-
rowData:
|
|
1308
|
+
rowData: y(() => {
|
|
1252
1309
|
var t;
|
|
1253
1310
|
return (t = e.rowData) != null ? t : null;
|
|
1254
1311
|
}),
|
|
1255
|
-
rowIndex:
|
|
1256
|
-
rowField:
|
|
1257
|
-
isHeader:
|
|
1312
|
+
rowIndex: y(() => e.rowIndex),
|
|
1313
|
+
rowField: y(() => e.rowField),
|
|
1314
|
+
isHeader: y(() => {
|
|
1258
1315
|
var t;
|
|
1259
1316
|
return (t = e.isHeader) != null ? t : !1;
|
|
1260
1317
|
}),
|
|
1261
|
-
title:
|
|
1318
|
+
title: y(() => {
|
|
1262
1319
|
var t;
|
|
1263
1320
|
return (t = e.title) != null ? t : "";
|
|
1264
1321
|
}),
|
|
1265
|
-
vuetable:
|
|
1322
|
+
vuetable: y(() => {
|
|
1266
1323
|
var t;
|
|
1267
|
-
return (t = e.vuetable) != null ? t :
|
|
1324
|
+
return (t = e.vuetable) != null ? t : a;
|
|
1268
1325
|
})
|
|
1269
1326
|
};
|
|
1270
1327
|
}
|
|
1271
|
-
function
|
|
1272
|
-
const
|
|
1328
|
+
function Xa(e) {
|
|
1329
|
+
const a = ja(e);
|
|
1273
1330
|
function t() {
|
|
1274
|
-
const
|
|
1275
|
-
if (!
|
|
1331
|
+
const u = a.vuetable.value;
|
|
1332
|
+
if (!u)
|
|
1276
1333
|
throw new TypeError('useVuetableFieldCheckbox requires a vuetable prop or a "vuetable" provider.');
|
|
1277
|
-
return
|
|
1334
|
+
return u;
|
|
1278
1335
|
}
|
|
1279
1336
|
t();
|
|
1280
|
-
const r =
|
|
1281
|
-
const
|
|
1282
|
-
return (
|
|
1283
|
-
}), i =
|
|
1284
|
-
var
|
|
1285
|
-
return o.value > 0 && o.value < (((
|
|
1337
|
+
const r = w(null), o = y(() => {
|
|
1338
|
+
const u = t();
|
|
1339
|
+
return (u.tableData || []).filter((_) => u.isSelectedRow(_[u.trackBy])).length;
|
|
1340
|
+
}), i = y(() => {
|
|
1341
|
+
var u;
|
|
1342
|
+
return o.value > 0 && o.value < (((u = t().tableData) == null ? void 0 : u.length) || 0);
|
|
1286
1343
|
});
|
|
1287
|
-
function
|
|
1344
|
+
function f(u, _) {
|
|
1288
1345
|
var k;
|
|
1289
|
-
if (!
|
|
1290
|
-
t().onCheckboxToggled(
|
|
1346
|
+
if (!u) return;
|
|
1347
|
+
t().onCheckboxToggled(_.target.checked, (k = a.rowField.value) == null ? void 0 : k.name, u);
|
|
1291
1348
|
}
|
|
1292
|
-
function u
|
|
1293
|
-
t().onCheckboxToggledAll(
|
|
1349
|
+
function g(u) {
|
|
1350
|
+
t().onCheckboxToggledAll(u.target.checked);
|
|
1294
1351
|
}
|
|
1295
|
-
function
|
|
1296
|
-
if (!
|
|
1297
|
-
const
|
|
1298
|
-
return
|
|
1352
|
+
function p(u) {
|
|
1353
|
+
if (!u) return !1;
|
|
1354
|
+
const _ = t();
|
|
1355
|
+
return _.isSelectedRow(u[_.trackBy]);
|
|
1299
1356
|
}
|
|
1300
|
-
function
|
|
1357
|
+
function v() {
|
|
1301
1358
|
if (t().tableData)
|
|
1302
1359
|
return o.value > 0;
|
|
1303
1360
|
}
|
|
1304
|
-
function
|
|
1305
|
-
r.value && (r.value.indeterminate =
|
|
1361
|
+
function h() {
|
|
1362
|
+
r.value && (r.value.indeterminate = a.isHeader.value && i.value);
|
|
1306
1363
|
}
|
|
1307
|
-
return
|
|
1364
|
+
return rn(h), Mn(h), j([r, a.isHeader, i], h, { flush: "post" }), K(T({}, a), {
|
|
1308
1365
|
checkbox: r,
|
|
1309
1366
|
selectedCount: o,
|
|
1310
1367
|
isIndeterminate: i,
|
|
1311
|
-
toggleCheckbox:
|
|
1312
|
-
toggleAllCheckbox:
|
|
1313
|
-
isSelected:
|
|
1314
|
-
isAllItemsInCurrentPageSelected:
|
|
1368
|
+
toggleCheckbox: f,
|
|
1369
|
+
toggleAllCheckbox: g,
|
|
1370
|
+
isSelected: p,
|
|
1371
|
+
isAllItemsInCurrentPageSelected: v
|
|
1315
1372
|
});
|
|
1316
1373
|
}
|
|
1317
|
-
function
|
|
1318
|
-
var
|
|
1374
|
+
function Ia(e) {
|
|
1375
|
+
var a = this.constructor;
|
|
1319
1376
|
return this.then(
|
|
1320
1377
|
function(t) {
|
|
1321
|
-
return
|
|
1378
|
+
return a.resolve(e()).then(function() {
|
|
1322
1379
|
return t;
|
|
1323
1380
|
});
|
|
1324
1381
|
},
|
|
1325
1382
|
function(t) {
|
|
1326
|
-
return
|
|
1327
|
-
return
|
|
1383
|
+
return a.resolve(e()).then(function() {
|
|
1384
|
+
return a.reject(t);
|
|
1328
1385
|
});
|
|
1329
1386
|
}
|
|
1330
1387
|
);
|
|
1331
1388
|
}
|
|
1332
|
-
function
|
|
1333
|
-
var
|
|
1334
|
-
return new
|
|
1389
|
+
function Ha(e) {
|
|
1390
|
+
var a = this;
|
|
1391
|
+
return new a(function(t, r) {
|
|
1335
1392
|
if (!(e && typeof e.length != "undefined"))
|
|
1336
1393
|
return r(
|
|
1337
1394
|
new TypeError(
|
|
@@ -1341,236 +1398,276 @@ function pn(e) {
|
|
|
1341
1398
|
var o = Array.prototype.slice.call(e);
|
|
1342
1399
|
if (o.length === 0) return t([]);
|
|
1343
1400
|
var i = o.length;
|
|
1344
|
-
function
|
|
1345
|
-
if (
|
|
1346
|
-
var
|
|
1347
|
-
if (typeof
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
function(
|
|
1351
|
-
|
|
1401
|
+
function f(p, v) {
|
|
1402
|
+
if (v && (typeof v == "object" || typeof v == "function")) {
|
|
1403
|
+
var h = v.then;
|
|
1404
|
+
if (typeof h == "function") {
|
|
1405
|
+
h.call(
|
|
1406
|
+
v,
|
|
1407
|
+
function(u) {
|
|
1408
|
+
f(p, u);
|
|
1352
1409
|
},
|
|
1353
|
-
function(
|
|
1354
|
-
o[
|
|
1410
|
+
function(u) {
|
|
1411
|
+
o[p] = { status: "rejected", reason: u }, --i === 0 && t(o);
|
|
1355
1412
|
}
|
|
1356
1413
|
);
|
|
1357
1414
|
return;
|
|
1358
1415
|
}
|
|
1359
1416
|
}
|
|
1360
|
-
o[
|
|
1417
|
+
o[p] = { status: "fulfilled", value: v }, --i === 0 && t(o);
|
|
1361
1418
|
}
|
|
1362
|
-
for (var
|
|
1363
|
-
|
|
1419
|
+
for (var g = 0; g < o.length; g++)
|
|
1420
|
+
f(g, o[g]);
|
|
1364
1421
|
});
|
|
1365
1422
|
}
|
|
1366
|
-
function
|
|
1367
|
-
this.name = "AggregateError", this.errors = e, this.message =
|
|
1423
|
+
function sn(e, a) {
|
|
1424
|
+
this.name = "AggregateError", this.errors = e, this.message = a || "";
|
|
1368
1425
|
}
|
|
1369
|
-
|
|
1370
|
-
function
|
|
1371
|
-
var
|
|
1372
|
-
return new
|
|
1426
|
+
sn.prototype = Error.prototype;
|
|
1427
|
+
function Aa(e) {
|
|
1428
|
+
var a = this;
|
|
1429
|
+
return new a(function(t, r) {
|
|
1373
1430
|
if (!(e && typeof e.length != "undefined"))
|
|
1374
1431
|
return r(new TypeError("Promise.any accepts an array"));
|
|
1375
1432
|
var o = Array.prototype.slice.call(e);
|
|
1376
1433
|
if (o.length === 0) return r();
|
|
1377
|
-
for (var i = [],
|
|
1434
|
+
for (var i = [], f = 0; f < o.length; f++)
|
|
1378
1435
|
try {
|
|
1379
|
-
|
|
1380
|
-
i.push(
|
|
1381
|
-
new
|
|
1436
|
+
a.resolve(o[f]).then(t).catch(function(g) {
|
|
1437
|
+
i.push(g), i.length === o.length && r(
|
|
1438
|
+
new sn(
|
|
1382
1439
|
i,
|
|
1383
1440
|
"All promises were rejected"
|
|
1384
1441
|
)
|
|
1385
1442
|
);
|
|
1386
1443
|
});
|
|
1387
|
-
} catch (
|
|
1388
|
-
r(
|
|
1444
|
+
} catch (g) {
|
|
1445
|
+
r(g);
|
|
1389
1446
|
}
|
|
1390
1447
|
});
|
|
1391
1448
|
}
|
|
1392
|
-
var
|
|
1393
|
-
function
|
|
1449
|
+
var Ba = setTimeout;
|
|
1450
|
+
function un(e) {
|
|
1394
1451
|
return !!(e && typeof e.length != "undefined");
|
|
1395
1452
|
}
|
|
1396
|
-
function
|
|
1453
|
+
function Ma() {
|
|
1397
1454
|
}
|
|
1398
|
-
function
|
|
1455
|
+
function Va(e, a) {
|
|
1399
1456
|
return function() {
|
|
1400
|
-
e.apply(
|
|
1457
|
+
e.apply(a, arguments);
|
|
1401
1458
|
};
|
|
1402
1459
|
}
|
|
1403
|
-
function
|
|
1404
|
-
if (!(this instanceof
|
|
1460
|
+
function S(e) {
|
|
1461
|
+
if (!(this instanceof S))
|
|
1405
1462
|
throw new TypeError("Promises must be constructed via new");
|
|
1406
1463
|
if (typeof e != "function") throw new TypeError("not a function");
|
|
1407
|
-
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [],
|
|
1464
|
+
this._state = 0, this._handled = !1, this._value = void 0, this._deferreds = [], dn(e, this);
|
|
1408
1465
|
}
|
|
1409
|
-
function
|
|
1466
|
+
function cn(e, a) {
|
|
1410
1467
|
for (; e._state === 3; )
|
|
1411
1468
|
e = e._value;
|
|
1412
1469
|
if (e._state === 0) {
|
|
1413
|
-
e._deferreds.push(
|
|
1470
|
+
e._deferreds.push(a);
|
|
1414
1471
|
return;
|
|
1415
1472
|
}
|
|
1416
|
-
e._handled = !0,
|
|
1417
|
-
var t = e._state === 1 ?
|
|
1473
|
+
e._handled = !0, S._immediateFn(function() {
|
|
1474
|
+
var t = e._state === 1 ? a.onFulfilled : a.onRejected;
|
|
1418
1475
|
if (t === null) {
|
|
1419
|
-
(e._state === 1 ?
|
|
1476
|
+
(e._state === 1 ? He : Y)(a.promise, e._value);
|
|
1420
1477
|
return;
|
|
1421
1478
|
}
|
|
1422
1479
|
var r;
|
|
1423
1480
|
try {
|
|
1424
1481
|
r = t(e._value);
|
|
1425
1482
|
} catch (o) {
|
|
1426
|
-
|
|
1483
|
+
Y(a.promise, o);
|
|
1427
1484
|
return;
|
|
1428
1485
|
}
|
|
1429
|
-
|
|
1486
|
+
He(a.promise, r);
|
|
1430
1487
|
});
|
|
1431
1488
|
}
|
|
1432
|
-
function
|
|
1489
|
+
function He(e, a) {
|
|
1433
1490
|
try {
|
|
1434
|
-
if (
|
|
1491
|
+
if (a === e)
|
|
1435
1492
|
throw new TypeError("A promise cannot be resolved with itself.");
|
|
1436
|
-
if (
|
|
1437
|
-
var t =
|
|
1438
|
-
if (
|
|
1439
|
-
e._state = 3, e._value =
|
|
1493
|
+
if (a && (typeof a == "object" || typeof a == "function")) {
|
|
1494
|
+
var t = a.then;
|
|
1495
|
+
if (a instanceof S) {
|
|
1496
|
+
e._state = 3, e._value = a, Ae(e);
|
|
1440
1497
|
return;
|
|
1441
1498
|
} else if (typeof t == "function") {
|
|
1442
|
-
|
|
1499
|
+
dn(Va(t, a), e);
|
|
1443
1500
|
return;
|
|
1444
1501
|
}
|
|
1445
1502
|
}
|
|
1446
|
-
e._state = 1, e._value =
|
|
1503
|
+
e._state = 1, e._value = a, Ae(e);
|
|
1447
1504
|
} catch (r) {
|
|
1448
|
-
|
|
1505
|
+
Y(e, r);
|
|
1449
1506
|
}
|
|
1450
1507
|
}
|
|
1451
|
-
function
|
|
1452
|
-
e._state = 2, e._value =
|
|
1508
|
+
function Y(e, a) {
|
|
1509
|
+
e._state = 2, e._value = a, Ae(e);
|
|
1453
1510
|
}
|
|
1454
|
-
function
|
|
1455
|
-
e._state === 2 && e._deferreds.length === 0 &&
|
|
1456
|
-
e._handled ||
|
|
1511
|
+
function Ae(e) {
|
|
1512
|
+
e._state === 2 && e._deferreds.length === 0 && S._immediateFn(function() {
|
|
1513
|
+
e._handled || S._unhandledRejectionFn(e._value);
|
|
1457
1514
|
});
|
|
1458
|
-
for (var
|
|
1459
|
-
|
|
1515
|
+
for (var a = 0, t = e._deferreds.length; a < t; a++)
|
|
1516
|
+
cn(e, e._deferreds[a]);
|
|
1460
1517
|
e._deferreds = null;
|
|
1461
1518
|
}
|
|
1462
|
-
function
|
|
1463
|
-
this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof
|
|
1519
|
+
function Na(e, a, t) {
|
|
1520
|
+
this.onFulfilled = typeof e == "function" ? e : null, this.onRejected = typeof a == "function" ? a : null, this.promise = t;
|
|
1464
1521
|
}
|
|
1465
|
-
function
|
|
1522
|
+
function dn(e, a) {
|
|
1466
1523
|
var t = !1;
|
|
1467
1524
|
try {
|
|
1468
1525
|
e(
|
|
1469
1526
|
function(r) {
|
|
1470
|
-
t || (t = !0,
|
|
1527
|
+
t || (t = !0, He(a, r));
|
|
1471
1528
|
},
|
|
1472
1529
|
function(r) {
|
|
1473
|
-
t || (t = !0,
|
|
1530
|
+
t || (t = !0, Y(a, r));
|
|
1474
1531
|
}
|
|
1475
1532
|
);
|
|
1476
1533
|
} catch (r) {
|
|
1477
1534
|
if (t) return;
|
|
1478
|
-
t = !0,
|
|
1535
|
+
t = !0, Y(a, r);
|
|
1479
1536
|
}
|
|
1480
1537
|
}
|
|
1481
|
-
|
|
1538
|
+
S.prototype.catch = function(e) {
|
|
1482
1539
|
return this.then(null, e);
|
|
1483
1540
|
};
|
|
1484
|
-
|
|
1485
|
-
var t = new this.constructor(
|
|
1486
|
-
return
|
|
1541
|
+
S.prototype.then = function(e, a) {
|
|
1542
|
+
var t = new this.constructor(Ma);
|
|
1543
|
+
return cn(this, new Na(e, a, t)), t;
|
|
1487
1544
|
};
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
return new
|
|
1491
|
-
if (!
|
|
1545
|
+
S.prototype.finally = Ia;
|
|
1546
|
+
S.all = function(e) {
|
|
1547
|
+
return new S(function(a, t) {
|
|
1548
|
+
if (!un(e))
|
|
1492
1549
|
return t(new TypeError("Promise.all accepts an array"));
|
|
1493
1550
|
var r = Array.prototype.slice.call(e);
|
|
1494
|
-
if (r.length === 0) return
|
|
1551
|
+
if (r.length === 0) return a([]);
|
|
1495
1552
|
var o = r.length;
|
|
1496
|
-
function i(
|
|
1553
|
+
function i(g, p) {
|
|
1497
1554
|
try {
|
|
1498
|
-
if (
|
|
1499
|
-
var
|
|
1500
|
-
if (typeof
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
function(
|
|
1504
|
-
i(
|
|
1555
|
+
if (p && (typeof p == "object" || typeof p == "function")) {
|
|
1556
|
+
var v = p.then;
|
|
1557
|
+
if (typeof v == "function") {
|
|
1558
|
+
v.call(
|
|
1559
|
+
p,
|
|
1560
|
+
function(h) {
|
|
1561
|
+
i(g, h);
|
|
1505
1562
|
},
|
|
1506
1563
|
t
|
|
1507
1564
|
);
|
|
1508
1565
|
return;
|
|
1509
1566
|
}
|
|
1510
1567
|
}
|
|
1511
|
-
r[
|
|
1512
|
-
} catch (
|
|
1513
|
-
t(
|
|
1568
|
+
r[g] = p, --o === 0 && a(r);
|
|
1569
|
+
} catch (h) {
|
|
1570
|
+
t(h);
|
|
1514
1571
|
}
|
|
1515
1572
|
}
|
|
1516
|
-
for (var
|
|
1517
|
-
i(
|
|
1573
|
+
for (var f = 0; f < r.length; f++)
|
|
1574
|
+
i(f, r[f]);
|
|
1518
1575
|
});
|
|
1519
1576
|
};
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
return e && typeof e == "object" && e.constructor ===
|
|
1524
|
-
|
|
1577
|
+
S.any = Aa;
|
|
1578
|
+
S.allSettled = Ha;
|
|
1579
|
+
S.resolve = function(e) {
|
|
1580
|
+
return e && typeof e == "object" && e.constructor === S ? e : new S(function(a) {
|
|
1581
|
+
a(e);
|
|
1525
1582
|
});
|
|
1526
1583
|
};
|
|
1527
|
-
|
|
1528
|
-
return new
|
|
1584
|
+
S.reject = function(e) {
|
|
1585
|
+
return new S(function(a, t) {
|
|
1529
1586
|
t(e);
|
|
1530
1587
|
});
|
|
1531
1588
|
};
|
|
1532
|
-
|
|
1533
|
-
return new
|
|
1534
|
-
if (!
|
|
1589
|
+
S.race = function(e) {
|
|
1590
|
+
return new S(function(a, t) {
|
|
1591
|
+
if (!un(e))
|
|
1535
1592
|
return t(new TypeError("Promise.race accepts an array"));
|
|
1536
1593
|
for (var r = 0, o = e.length; r < o; r++)
|
|
1537
|
-
|
|
1594
|
+
S.resolve(e[r]).then(a, t);
|
|
1538
1595
|
});
|
|
1539
1596
|
};
|
|
1540
|
-
|
|
1597
|
+
S._immediateFn = // @ts-ignore
|
|
1541
1598
|
typeof setImmediate == "function" && function(e) {
|
|
1542
1599
|
setImmediate(e);
|
|
1543
1600
|
} || function(e) {
|
|
1544
|
-
|
|
1601
|
+
Ba(e, 0);
|
|
1545
1602
|
};
|
|
1546
|
-
|
|
1547
|
-
typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:",
|
|
1603
|
+
S._unhandledRejectionFn = function(a) {
|
|
1604
|
+
typeof console != "undefined" && console && console.warn("Possible Unhandled Promise Rejection:", a);
|
|
1548
1605
|
};
|
|
1549
|
-
const
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1606
|
+
const La = [
|
|
1607
|
+
"initialized",
|
|
1608
|
+
"loading",
|
|
1609
|
+
"loaded",
|
|
1610
|
+
"pagination-data",
|
|
1611
|
+
"load-success",
|
|
1612
|
+
"scrollbar-visible",
|
|
1613
|
+
"load-error",
|
|
1614
|
+
"row-clicked",
|
|
1615
|
+
"row-dblclicked",
|
|
1616
|
+
"detail-row-clicked",
|
|
1617
|
+
"cell-clicked",
|
|
1618
|
+
"cell-dblclicked",
|
|
1619
|
+
"cell-rightclicked",
|
|
1620
|
+
"row-mouseover",
|
|
1621
|
+
"field-event",
|
|
1622
|
+
"header-event",
|
|
1623
|
+
"checkbox-toggled",
|
|
1624
|
+
"checkbox-toggled-all",
|
|
1625
|
+
"data-reset",
|
|
1626
|
+
"checkbox-toggled-custom"
|
|
1627
|
+
];
|
|
1628
|
+
function er(e = {}) {
|
|
1629
|
+
var r, o;
|
|
1630
|
+
if (V) throw new Error("createVuetable requires Vue 3. Use the generic Vuetable component on Vue 2.");
|
|
1631
|
+
const a = (r = e.eventPrefix) != null ? r : "vuetable:", t = K(T({}, z), {
|
|
1632
|
+
props: K(T({}, z.props), {
|
|
1633
|
+
eventPrefix: K(T({}, z.props.eventPrefix), {
|
|
1634
|
+
default: a,
|
|
1635
|
+
validator: (i) => i === a
|
|
1636
|
+
})
|
|
1637
|
+
}),
|
|
1638
|
+
emits: [...new Set([...La, ...(o = e.events) != null ? o : []].reduce((i, f) => {
|
|
1639
|
+
const g = `${a}${f}`, p = g.replace(/-(\w)/g, (v, h) => h.toUpperCase());
|
|
1640
|
+
return i.push(g, p.charAt(0).toLowerCase() + p.slice(1)), i;
|
|
1641
|
+
}, []))]
|
|
1642
|
+
});
|
|
1643
|
+
return delete t.install, t;
|
|
1644
|
+
}
|
|
1645
|
+
const je = typeof globalThis == "object" ? globalThis : typeof self == "object" ? self : void 0;
|
|
1646
|
+
je && !je.Promise && (je.Promise = S);
|
|
1647
|
+
function za(e) {
|
|
1648
|
+
e.component("vuetable", Ua), e.component("vuetable-col-gutter", U), e.component("vuetable-field-checkbox", Z), e.component("vuetable-field-handle", Q), e.component("vuetable-field-sequence", J), e.component("vuetable-pagination", ze), e.component("vuetable-pagination-dropdown", Ue), e.component("vuetable-pagination-info", We), e.component("vuetable-row-header", ie);
|
|
1553
1649
|
}
|
|
1554
|
-
const
|
|
1650
|
+
const Ua = Object.assign(z, { install: za });
|
|
1555
1651
|
export {
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1559
|
-
|
|
1560
|
-
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1568
|
-
|
|
1569
|
-
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1652
|
+
Ua as Vuetable,
|
|
1653
|
+
U as VuetableColGutter,
|
|
1654
|
+
Z as VuetableFieldCheckbox,
|
|
1655
|
+
Za as VuetableFieldCheckboxMixin,
|
|
1656
|
+
Q as VuetableFieldHandle,
|
|
1657
|
+
Oa as VuetableFieldMixin,
|
|
1658
|
+
J as VuetableFieldSequence,
|
|
1659
|
+
ze as VuetablePagination,
|
|
1660
|
+
Ue as VuetablePaginationDropdown,
|
|
1661
|
+
We as VuetablePaginationInfo,
|
|
1662
|
+
Qa as VuetablePaginationInfoMixin,
|
|
1663
|
+
Ja as VuetablePaginationMixin,
|
|
1664
|
+
ie as VuetableRowHeader,
|
|
1665
|
+
er as createVuetable,
|
|
1666
|
+
Ua as default,
|
|
1667
|
+
za as install,
|
|
1668
|
+
ja as useVuetableField,
|
|
1669
|
+
Xa as useVuetableFieldCheckbox,
|
|
1670
|
+
on as useVuetablePagination,
|
|
1671
|
+
Ca as useVuetablePaginationInfo
|
|
1575
1672
|
};
|
|
1576
1673
|
//# sourceMappingURL=vue2.js.map
|