vuetable-next 1.0.12 → 1.1.1

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