vuetable-next 1.1.0 → 1.1.1

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