vuetable-next 1.0.11 → 1.0.12

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