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