vuetable-next 1.0.12 → 1.1.0

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