@progress/kendo-vue-grid 8.3.0-develop.2 → 8.3.0-develop.3

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/Grid.mjs CHANGED
@@ -5,53 +5,53 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as Rt, createVNode as d, h as Fe, Fragment as Le, createTextVNode as Ct, ref as g, inject as bt, computed as Ke, markRaw as k } from "vue";
9
- import { isObject as j, cloneArray as St, canUseDOM as q, WatermarkOverlay as xt, getter as M, getTemplate as _e, setRef as y, hasListener as _, getComponentElementRef as Ae, getRef as x, RowHeightService as It, setScrollbarWidth as $t, kendoThemeMaps as Be, uGrid as wt, isRtl as Ve, validatePackage as yt, shouldShowValidationUI as vt, getLicenseMessage as kt, guid as Oe } from "@progress/kendo-vue-common";
10
- import { tableKeyboardNavigationTools as P, combineFilters as Ht, Pager as Tt, normalize as Mt, TableKeyboardNavigationProvider as Ne, HeaderCell as Pt, updateLeft as zt, updateRight as Et, groupExpandReducer as Dt, detailExpandReducer as Gt, getSelectedState as We, getSelectedStateFromKeyDown as Ft, closestTagName as Ue, getColumnIndex as Lt, getRowIndex as Kt, getDetailExpandableOptions as _t, getSelectionOptions as At, getGroupExpandableOptions as Bt } from "@progress/kendo-vue-data-tools";
11
- import { Loader as Vt } from "@progress/kendo-vue-indicators";
12
- import { GridNav as je } from "./GridNav.mjs";
13
- import { GridSelectionCell as qe } from "./cells/GridSelectionCell.mjs";
14
- import { GridHierarchyCell as Je } from "./cells/GridHierarchyCell.mjs";
15
- import { GridDetailHierarchyCell as Ot } from "./cells/GridDetailHierarchyCell.mjs";
16
- import { GridDetailCell as Nt } from "./cells/GridDetailCell.mjs";
17
- import { Header as Wt } from "./header/Header.mjs";
18
- import { HeaderRow as Ut } from "./header/HeaderRow.mjs";
19
- import { FilterRow as jt } from "./header/FilterRow.mjs";
20
- import { GroupPanel as qt } from "./header/GroupPanel.mjs";
21
- import { Footer as Jt } from "./footer/Footer.mjs";
22
- import { FooterRow as Xt } from "./footer/FooterRow.mjs";
23
- import { GridTable as Yt } from "./components/table/GridTable.mjs";
24
- import { GridTableScrollable as Qt } from "./components/table/GridTableScrollable.mjs";
25
- import { operators as Xe } from "./filterCommon.mjs";
26
- import { VirtualScroll as Zt } from "./VirtualScroll.mjs";
27
- import { ColumnResize as es } from "./drag/ColumnResize.mjs";
28
- import { CommonDragLogic as ts } from "./drag/CommonDragLogic.mjs";
29
- import { DragClue as ss } from "./drag/DragClue.mjs";
30
- import { DropClue as is } from "./drag/DropClue.mjs";
31
- import { applyExpandedState as os, getColSpan as ns, autoGenerateColumns as rs, mapColumns as ls, getFlatColumnsState as Ye, getRowSpanOptions as Qe, getDataAsArray as as, groupedFirstItemValue as ds, calcRowHeight as hs, flatData as cs, readColumns as ps } from "./utils/main.mjs";
32
- import { GridGroupCell as Ze } from "./cells/GridGroupCell.mjs";
33
- import { GridRow as us } from "./rows/GridRow.mjs";
34
- import { gridProps as fs } from "./common.mjs";
35
- import { GridHeaderSelectionCell as et } from "./header/GridHeaderSelectionCell.mjs";
36
- import { GridNoRecords as tt } from "./components/noRecords/GridNoRecords.mjs";
37
- import { GridNoRecordsContainer as st } from "./components/noRecords/GridNoRecordsContainer.mjs";
38
- import { packageMetadata as he } from "./package-metadata.mjs";
39
- import { pagerMessagesMap as it } from "./messages/messagesMap.mjs";
40
- import { process as ms, orderBy as ot } from "@progress/kendo-data-query";
41
- import { KendoKey as gs } from "./key.mjs";
42
- import { getVirtualCellsToRender as Rs } from "./utils/virtualColumns.mjs";
43
- import { StickyGroupTable as nt } from "./components/StickyGroupTable.mjs";
44
- import { getRowContents as Cs } from "./getRowContents.mjs";
45
- import { useStickyGroups as bs } from "./hooks/useStickyGroups.mjs";
46
- import { PinnedRowsTable as rt } from "./components/PinnedRowsTable.mjs";
47
- import { GridPinCell as Ss } from "./cells/pincell/GridPinCell.mjs";
48
- import { contextMenuItemsMap as xs, GridContextMenu as Is, getDefaultBodyContextMenuItems as $s, getDefaultHeadContextMenuItems as ws } from "./contextMenu/GridContextMenu.mjs";
49
- import { GridContextMenuItemNames as J, GridContextMenuAnchorPart as lt } from "./contextMenu/enums.mjs";
50
- const fi = /* @__PURE__ */ Rt({
8
+ import { defineComponent as bt, createVNode as d, h as Le, Fragment as Ke, createTextVNode as St, ref as R, inject as It, computed as _e, markRaw as H } from "vue";
9
+ import { isObject as q, cloneArray as xt, canUseDOM as B, WatermarkOverlay as $t, getter as M, getTemplate as Ae, setRef as y, hasListener as L, getComponentElementRef as Be, getRef as S, RowHeightService as wt, setScrollbarWidth as vt, kendoThemeMaps as Ve, uGrid as yt, isRtl as Oe, validatePackage as kt, shouldShowValidationUI as Ht, getLicenseMessage as Tt, guid as Ne } from "@progress/kendo-vue-common";
10
+ import { tableKeyboardNavigationTools as E, combineFilters as Mt, Pager as Et, normalize as Pt, TableKeyboardNavigationProvider as We, HeaderCell as zt, updateLeft as Dt, updateRight as Gt, groupExpandReducer as Ft, detailExpandReducer as Lt, getSelectedState as Ue, getSelectedStateFromKeyDown as Kt, closestTagName as je, getColumnIndex as _t, getRowIndex as At, ClipboardActionType as he, populateClipboardData as Bt, getDetailExpandableOptions as Vt, getSelectionOptions as Ot, getGroupExpandableOptions as Nt, ClipboardService as qe } from "@progress/kendo-vue-data-tools";
11
+ import { Loader as Wt } from "@progress/kendo-vue-indicators";
12
+ import { GridNav as Je } from "./GridNav.mjs";
13
+ import { GridSelectionCell as Xe } from "./cells/GridSelectionCell.mjs";
14
+ import { GridHierarchyCell as Ye } from "./cells/GridHierarchyCell.mjs";
15
+ import { GridDetailHierarchyCell as Ut } from "./cells/GridDetailHierarchyCell.mjs";
16
+ import { GridDetailCell as jt } from "./cells/GridDetailCell.mjs";
17
+ import { Header as qt } from "./header/Header.mjs";
18
+ import { HeaderRow as Jt } from "./header/HeaderRow.mjs";
19
+ import { FilterRow as Xt } from "./header/FilterRow.mjs";
20
+ import { GroupPanel as Yt } from "./header/GroupPanel.mjs";
21
+ import { Footer as Qt } from "./footer/Footer.mjs";
22
+ import { FooterRow as Zt } from "./footer/FooterRow.mjs";
23
+ import { GridTable as es } from "./components/table/GridTable.mjs";
24
+ import { GridTableScrollable as ts } from "./components/table/GridTableScrollable.mjs";
25
+ import { operators as Qe } from "./filterCommon.mjs";
26
+ import { VirtualScroll as ss } from "./VirtualScroll.mjs";
27
+ import { ColumnResize as is } from "./drag/ColumnResize.mjs";
28
+ import { CommonDragLogic as os } from "./drag/CommonDragLogic.mjs";
29
+ import { DragClue as ns } from "./drag/DragClue.mjs";
30
+ import { DropClue as rs } from "./drag/DropClue.mjs";
31
+ import { applyExpandedState as ls, getColSpan as as, autoGenerateColumns as ds, mapColumns as hs, getFlatColumnsState as Ze, getRowSpanOptions as et, getDataAsArray as cs, groupedFirstItemValue as ps, calcRowHeight as us, flatData as fs, readColumns as ms } from "./utils/main.mjs";
32
+ import { GridGroupCell as tt } from "./cells/GridGroupCell.mjs";
33
+ import { GridRow as gs } from "./rows/GridRow.mjs";
34
+ import { gridProps as Rs } from "./common.mjs";
35
+ import { GridHeaderSelectionCell as st } from "./header/GridHeaderSelectionCell.mjs";
36
+ import { GridNoRecords as it } from "./components/noRecords/GridNoRecords.mjs";
37
+ import { GridNoRecordsContainer as ot } from "./components/noRecords/GridNoRecordsContainer.mjs";
38
+ import { packageMetadata as ce } from "./package-metadata.mjs";
39
+ import { pagerMessagesMap as nt } from "./messages/messagesMap.mjs";
40
+ import { process as Cs, orderBy as rt } from "@progress/kendo-data-query";
41
+ import { KendoKey as bs } from "./key.mjs";
42
+ import { getVirtualCellsToRender as Ss } from "./utils/virtualColumns.mjs";
43
+ import { StickyGroupTable as lt } from "./components/StickyGroupTable.mjs";
44
+ import { getRowContents as Is } from "./getRowContents.mjs";
45
+ import { useStickyGroups as xs } from "./hooks/useStickyGroups.mjs";
46
+ import { PinnedRowsTable as at } from "./components/PinnedRowsTable.mjs";
47
+ import { GridPinCell as $s } from "./cells/pincell/GridPinCell.mjs";
48
+ import { contextMenuItemsMap as ws, GridContextMenu as vs, getDefaultBodyContextMenuItems as ys, getDefaultHeadContextMenuItems as ks } from "./contextMenu/GridContextMenu.mjs";
49
+ import { GridContextMenuItemNames as J, GridContextMenuAnchorPart as dt } from "./contextMenu/enums.mjs";
50
+ const Ri = /* @__PURE__ */ bt({
51
51
  name: "KendoGrid",
52
52
  inheritAttrs: !1,
53
53
  props: {
54
- ...fs,
54
+ ...Rs,
55
55
  toolbar: {
56
56
  type: Object
57
57
  },
@@ -79,6 +79,9 @@ const fi = /* @__PURE__ */ Rt({
79
79
  };
80
80
  },
81
81
  watch: {
82
+ clipboard: function(e) {
83
+ e ? this.clipboardServiceRef || (this.clipboardServiceRef = new qe(this.handleClipboardEvent), this.clipboardServiceRef.addEventListeners(document)) : this.clipboardServiceRef && (this.clipboardServiceRef.removeEventListeners(document), this.clipboardServiceRef = null);
84
+ },
82
85
  rowHeight: function(e, t) {
83
86
  var s;
84
87
  this.onRowHeightChanged(e, t), (s = this.vsRef) == null || s.reset();
@@ -105,24 +108,25 @@ const fi = /* @__PURE__ */ Rt({
105
108
  }
106
109
  },
107
110
  created() {
108
- yt(he), this.showLicenseWatermark = vt(he), this.licenseMessage = kt(he), this.initialHeight = null, this.columnsRef = [], this.dragLogic = new ts(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new es(this.onResize.bind(this)), this._columnsMap = [[]], this._header = null, this._footer = null, this.tableRef = null, this.scrollHeightContainerRef = null, this.forceUpdateTimeout = void 0, this._gridId = Oe(), this._gridRoleElementId = Oe(), this.slicedCurrentData = void 0, this._prevTotal = void 0, this._containerHeightRef = 0, this._minRowHeightRef = 0, this.wrapperScrollTopRef = 0, this.scrollLeftRef = 0;
111
+ kt(ce), this.showLicenseWatermark = Ht(ce), this.licenseMessage = Tt(ce), this.initialHeight = null, this.columnsRef = [], this.dragLogic = new os(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new is(this.onResize.bind(this)), this._columnsMap = [[]], this._header = null, this._footer = null, this.tableRef = null, this.scrollHeightContainerRef = null, this.forceUpdateTimeout = void 0, this._gridId = Ne(), this._gridRoleElementId = Ne(), this.slicedCurrentData = void 0, this._prevTotal = void 0, this._containerHeightRef = 0, this._minRowHeightRef = 0, this.wrapperScrollTopRef = 0, this.scrollLeftRef = 0, this.previousCopiedItems = [], this.clipboardServiceRef = null;
109
112
  },
110
113
  mounted() {
111
114
  var t, s;
112
115
  this.setRefs();
113
- const e = Ve(this._element);
114
- if (this._prevTotal = this.$props.total, this.isRtl = e, this.initialHeight = ((s = (t = this._element) == null ? void 0 : t.style) == null ? void 0 : s.height) || null, this.resizeObserver = q && (window == null ? void 0 : window.ResizeObserver) && new ResizeObserver(this.calculateMedia), document != null && document.body && this.resizeObserver && this.resizeObserver.observe(document.body), q) {
116
+ const e = Oe(this._element);
117
+ if (this._prevTotal = this.$props.total, this.isRtl = e, this.initialHeight = ((s = (t = this._element) == null ? void 0 : t.style) == null ? void 0 : s.height) || null, this.resizeObserver = B && (window == null ? void 0 : window.ResizeObserver) && new ResizeObserver(this.calculateMedia), document != null && document.body && this.resizeObserver && this.resizeObserver.observe(document.body), B) {
115
118
  const i = {
116
119
  rootMargin: "0px",
117
120
  threshold: 0.9
118
121
  };
119
122
  this.observerRef = window.IntersectionObserver && new window.IntersectionObserver(this.handleIntersection, i) || null;
120
123
  }
124
+ this.$props.clipboard && (this.clipboardServiceRef = new qe(this.handleClipboardEvent), this.clipboardServiceRef.addEventListeners(document));
121
125
  },
122
126
  updated() {
123
127
  var s;
124
128
  this.setRefs();
125
- const e = Ve(this._element);
129
+ const e = Oe(this._element);
126
130
  this.isRtl = e, this._prevTotal = this.$props.total, this.vsRef.tableTransform && this.vsRef.table && (this.vsRef.table.style.transform = this.vsRef.tableTransform, this.vsRef.tableTransform = "");
127
131
  const t = this.updateStickyGroups();
128
132
  this.sticky.headerItems = t == null ? void 0 : t.stickyHeaderItems, this.sticky.footerItems = t == null ? void 0 : t.stickyFooterItems, this.isVirtualScroll && (this.setContainerHeight(), this.setMinRowHeight(), (s = this.vsRef) == null || s.update());
@@ -138,19 +142,19 @@ const fi = /* @__PURE__ */ Rt({
138
142
  return this.$props.navigatable ? this.gridId : "";
139
143
  },
140
144
  groupExpandable() {
141
- return Bt(typeof this.$props.groupable == "object" && this.$props.groupable.enabled !== !1 ? this.$props.groupable.expandable : this.$props.groupable);
145
+ return Nt(typeof this.$props.groupable == "object" && this.$props.groupable.enabled !== !1 ? this.$props.groupable.expandable : this.$props.groupable);
142
146
  },
143
147
  hierarchClass() {
144
- return wt.hierarchyCell({});
148
+ return yt.hierarchyCell({});
145
149
  },
146
150
  computedRowSpannable() {
147
- return Qe(this.$props.rowSpannable);
151
+ return et(this.$props.rowSpannable);
148
152
  },
149
153
  computedSelectable() {
150
- return At(this.$props.selectable);
154
+ return Ot(this.$props.selectable);
151
155
  },
152
156
  detailExpandable() {
153
- return _t(!!this.$props.detail);
157
+ return Vt(!!this.$props.detail);
154
158
  },
155
159
  nonscrollableWrapperClass() {
156
160
  const {
@@ -159,7 +163,7 @@ const fi = /* @__PURE__ */ Rt({
159
163
  return {
160
164
  "k-grid": !0,
161
165
  "k-grid-md": !e,
162
- [`k-grid-${Be.sizeMap[e] || e}`]: e,
166
+ [`k-grid-${Ve.sizeMap[e] || e}`]: e,
163
167
  [t]: !!t
164
168
  };
165
169
  },
@@ -180,7 +184,7 @@ const fi = /* @__PURE__ */ Rt({
180
184
  "k-table": !0,
181
185
  "k-grid-table": !0,
182
186
  "k-grid-md": !e,
183
- [`k-table-${Be.sizeMap[e] || e}`]: e
187
+ [`k-table-${Ve.sizeMap[e] || e}`]: e
184
188
  };
185
189
  },
186
190
  getCorrectHeight() {
@@ -189,7 +193,7 @@ const fi = /* @__PURE__ */ Rt({
189
193
  currentGroupable() {
190
194
  var t;
191
195
  const e = (t = this.gridStateContext.group) == null ? void 0 : t.value;
192
- return this.$props.groupable === !0 && (e == null ? void 0 : e.length) || j(this.$props.groupable) && this.$props.groupable.enabled !== !1;
196
+ return this.$props.groupable === !0 && (e == null ? void 0 : e.length) || q(this.$props.groupable) && this.$props.groupable.enabled !== !1;
193
197
  },
194
198
  computedCollapsed() {
195
199
  let e = [];
@@ -202,12 +206,12 @@ const fi = /* @__PURE__ */ Rt({
202
206
  getAriaRowCount() {
203
207
  var s, i;
204
208
  const e = this.$props.dataItems, t = this.$props.total || (e == null ? void 0 : e.total) || (e == null ? void 0 : e.length) || 0;
205
- return this.$props.detail ? this._columnsMap.length + (this.$props.filterable ? 1 : 0) + t * 2 + (this.columnsRef.some((n) => {
206
- var o;
207
- return !!(n.footerCell || (o = n.cells) != null && o.footerCell);
208
- }) || (s = this.$props.cells) != null && s.footerCell ? 1 : 0) : !this.$props.pageable && this.$props.scrollable === "scrollable" ? void 0 : this.$props.groupable ? -1 : this._columnsMap.length + (this.$props.filterable ? 1 : 0) + t + (this.columnsRef.some((n) => {
209
- var o;
210
- return !!(n.footerCell || (o = n.cells) != null && o.footerCell);
209
+ return this.$props.detail ? this._columnsMap.length + (this.$props.filterable ? 1 : 0) + t * 2 + (this.columnsRef.some((o) => {
210
+ var n;
211
+ return !!(o.footerCell || (n = o.cells) != null && n.footerCell);
212
+ }) || (s = this.$props.cells) != null && s.footerCell ? 1 : 0) : !this.$props.pageable && this.$props.scrollable === "scrollable" ? void 0 : this.$props.groupable ? -1 : this._columnsMap.length + (this.$props.filterable ? 1 : 0) + t + (this.columnsRef.some((o) => {
213
+ var n;
214
+ return !!(o.footerCell || (n = o.cells) != null && n.footerCell);
211
215
  }) || (i = this.$props.cells) != null && i.footerCell ? 1 : 0);
212
216
  },
213
217
  // Calculates the value of the ariaColcount attribute.
@@ -228,12 +232,12 @@ const fi = /* @__PURE__ */ Rt({
228
232
  sortedPinnedTopRows() {
229
233
  var s, i;
230
234
  const e = ((s = this.gridStateContext.pinnedTopRows) == null ? void 0 : s.value) || [], t = (i = this.gridStateContext.sort) == null ? void 0 : i.value;
231
- return this.autoProcessData && (t != null && t.length) ? ot([...e], t) : e;
235
+ return this.autoProcessData && (t != null && t.length) ? rt([...e], t) : e;
232
236
  },
233
237
  sortedPinnedBottomRows() {
234
238
  var s, i;
235
239
  const e = ((s = this.gridStateContext.pinnedBottomRows) == null ? void 0 : s.value) || [], t = (i = this.gridStateContext.sort) == null ? void 0 : i.value;
236
- return this.autoProcessData && (t != null && t.length) ? ot([...e], t) : e;
240
+ return this.autoProcessData && (t != null && t.length) ? rt([...e], t) : e;
237
241
  },
238
242
  hasPinnedTopRows() {
239
243
  return this.$props.pinnable && this.sortedPinnedTopRows.length > 0;
@@ -247,25 +251,26 @@ const fi = /* @__PURE__ */ Rt({
247
251
  headMenuItems() {
248
252
  var t;
249
253
  const e = this.$props.sortable && ((t = this.contextMenuColumn) == null ? void 0 : t.sortable);
250
- return ws({
254
+ return ks({
251
255
  sortable: !!e,
252
256
  selectable: this.computedSelectable.enabled
253
257
  });
254
258
  },
255
259
  bodyMenuItems() {
256
260
  var e;
257
- return this.$props.sortable && ((e = this.contextMenuColumn) == null || e.sortable), $s({
261
+ return this.$props.sortable && ((e = this.contextMenuColumn) == null || e.sortable), ys({
258
262
  selectable: this.computedSelectable.enabled,
259
- pinnable: !!this.$props.pinnable
263
+ pinnable: !!this.$props.pinnable,
264
+ clipboard: !!this.$props.clipboard
260
265
  });
261
266
  },
262
267
  contextMenuItems() {
263
268
  var s;
264
269
  const e = ((s = this.contextMenuColumn) == null ? void 0 : s.contextMenu) || this.$props.contextMenu, t = typeof e == "function" ? e(this.contextMenuState) : e;
265
270
  if (t && this.contextMenuState.offset) {
266
- const i = this.contextMenuState.dataItem ? lt.body : lt.head, n = t[i], o = this.contextMenuState.dataItem ? this.bodyMenuItems : this.headMenuItems;
271
+ const i = this.contextMenuState.dataItem ? dt.body : dt.head, o = t[i], n = this.contextMenuState.dataItem ? this.bodyMenuItems : this.headMenuItems;
267
272
  let r;
268
- return n === !0 || n === void 0 ? r = o : n !== !1 && (r = n), this.$props.pinnable && r && this.contextMenuState.dataItem ? this.filterPinContextMenuItems(r) : r;
273
+ return o === !0 || o === void 0 ? r = n : o !== !1 && (r = o), this.$props.pinnable && r && this.contextMenuState.dataItem ? this.filterPinContextMenuItems(r) : r;
269
274
  }
270
275
  }
271
276
  },
@@ -301,6 +306,40 @@ const fi = /* @__PURE__ */ Rt({
301
306
  field: void 0
302
307
  };
303
308
  },
309
+ inActiveElement() {
310
+ var o;
311
+ if (!B)
312
+ return !1;
313
+ const e = document == null ? void 0 : document.activeElement;
314
+ let t = document == null ? void 0 : document.body;
315
+ e != null && e.matches(".k-table-td") && (t = e);
316
+ const s = t == null ? void 0 : t.closest(".k-grid-container"), i = t && ((o = this._element) == null ? void 0 : o.contains(t));
317
+ return !!(t && i && s);
318
+ },
319
+ handleClipboardEvent(e, t, s, i, o) {
320
+ var h, u, p;
321
+ if (!this.inActiveElement() && !s || !e)
322
+ return;
323
+ const n = {
324
+ type: e,
325
+ nativeEvent: t,
326
+ columns: this.columnsRef,
327
+ dataItemKey: this.$props.dataItemKey || "",
328
+ dataItem: i,
329
+ field: o,
330
+ ...typeof this.$props.clipboard != "boolean" ? this.$props.clipboard : {},
331
+ ...s
332
+ }, r = this.getLeafDataItems(), l = Bt({
333
+ event: n,
334
+ data: r,
335
+ selectedState: (p = (u = this.$props.select) != null ? u : (h = this.gridStateContext.select) == null ? void 0 : h.value) != null ? p : {},
336
+ previousCopiedItems: this.previousCopiedItems
337
+ });
338
+ e !== he.paste && (this.previousCopiedItems = l.copiedItems), L.call(this, "clipboard") && this.$emit("clipboard", {
339
+ ...n,
340
+ ...l
341
+ });
342
+ },
304
343
  handleContextMenuSelect(e) {
305
344
  this.handleContextMenuItemClick({
306
345
  event: e,
@@ -310,7 +349,7 @@ const fi = /* @__PURE__ */ Rt({
310
349
  },
311
350
  renderContextMenu() {
312
351
  var e;
313
- return d(Is, {
352
+ return d(vs, {
314
353
  show: !!(this.contextMenuState.show && ((e = this.contextMenuItems) != null && e.length)),
315
354
  dataItem: this.contextMenuState.dataItem,
316
355
  field: this.contextMenuState.field,
@@ -321,18 +360,18 @@ const fi = /* @__PURE__ */ Rt({
321
360
  }, null);
322
361
  },
323
362
  filterPinContextMenuItems(e) {
324
- var c, f;
325
- const t = this.$props.dataItemKey || "", s = this.contextMenuState.dataItem, i = ((c = this.gridStateContext.pinnedTopRows) == null ? void 0 : c.value) || [], n = ((f = this.gridStateContext.pinnedBottomRows) == null ? void 0 : f.value) || [], o = t ? s[t] : void 0, r = o !== void 0 && i.some((h) => h[t] === o), a = o !== void 0 && n.some((h) => h[t] === o);
326
- return e.map((h) => {
327
- const u = typeof h == "string" ? xs[h] : h;
328
- return (u == null ? void 0 : u.name) === J.pinRow && u.items ? {
329
- ...u,
330
- items: u.items.filter((p) => p.name === J.pinTop ? !r : p.name === J.pinBottom ? !a : p.name === J.unpin ? r || a : !0)
331
- } : h;
363
+ var h, u;
364
+ const t = this.$props.dataItemKey || "", s = this.contextMenuState.dataItem, i = ((h = this.gridStateContext.pinnedTopRows) == null ? void 0 : h.value) || [], o = ((u = this.gridStateContext.pinnedBottomRows) == null ? void 0 : u.value) || [], n = t ? s[t] : void 0, r = n !== void 0 && i.some((p) => p[t] === n), l = n !== void 0 && o.some((p) => p[t] === n);
365
+ return e.map((p) => {
366
+ const c = typeof p == "string" ? ws[p] : p;
367
+ return (c == null ? void 0 : c.name) === J.pinRow && c.items ? {
368
+ ...c,
369
+ items: c.items.filter((f) => f.name === J.pinTop ? !r : f.name === J.pinBottom ? !l : f.name === J.unpin ? r || l : !0)
370
+ } : p;
332
371
  });
333
372
  },
334
373
  handleContextMenuItemClick(e) {
335
- var i, n, o, r, a, c, f;
374
+ var i, o, n, r, l, h, u, p;
336
375
  const t = e.event.event.item, s = {
337
376
  event: e.event,
338
377
  menuItem: t,
@@ -342,31 +381,31 @@ const fi = /* @__PURE__ */ Rt({
342
381
  switch (this.$emit("contextmenuitemclick", s), (i = t.data) == null ? void 0 : i.action) {
343
382
  case "SortCommand":
344
383
  if (this.contextMenuColumn) {
345
- const h = (n = t.name) == null ? void 0 : n.toLowerCase().includes("asc"), p = ((o = t.name) == null ? void 0 : o.toLowerCase().includes("desc")) ? "desc" : void 0, R = h ? "asc" : p, C = t.name ? R : void 0, w = (((r = this.gridStateContext.sort) == null ? void 0 : r.value) || []).filter(($) => {
346
- var b;
347
- return $.field !== ((b = this.contextMenuColumn) == null ? void 0 : b.field);
384
+ const c = (o = t.name) == null ? void 0 : o.toLowerCase().includes("asc"), m = ((n = t.name) == null ? void 0 : n.toLowerCase().includes("desc")) ? "desc" : void 0, x = c ? "asc" : m, C = t.name ? x : void 0, $ = (((r = this.gridStateContext.sort) == null ? void 0 : r.value) || []).filter((v) => {
385
+ var I;
386
+ return v.field !== ((I = this.contextMenuColumn) == null ? void 0 : I.field);
348
387
  });
349
- C && ((a = this.contextMenuColumn) != null && a.field) && w.push({
388
+ C && ((l = this.contextMenuColumn) != null && l.field) && $.push({
350
389
  field: this.contextMenuColumn.field,
351
390
  dir: C
352
- }), this.sortChangeHandler(w, {
391
+ }), this.sortChangeHandler($, {
353
392
  event: e.event
354
393
  });
355
394
  }
356
395
  break;
357
396
  case "SelectRowCommand": {
358
- const h = e.dataItem;
359
- if (this.computedSelectable.enabled && h && this.$props.dataItemKey) {
360
- const p = M(this.$props.dataItemKey)(h), R = this.getLeafDataItems(), C = R.findIndex((H) => H[this.$props.dataItemKey] === h[this.$props.dataItemKey]), I = 0, w = this.columnsRef.length - 1, $ = {
397
+ const c = e.dataItem;
398
+ if (this.computedSelectable.enabled && c && this.$props.dataItemKey) {
399
+ const m = M(this.$props.dataItemKey)(c), x = this.getLeafDataItems(), C = x.findIndex((z) => z[this.$props.dataItemKey] === c[this.$props.dataItemKey]), w = 0, $ = this.columnsRef.length - 1, v = {
361
400
  ...this.getArguments(e.event),
362
- dataItem: h,
401
+ dataItem: c,
363
402
  startDataItem: C,
364
403
  endDataItem: C,
365
404
  startRowIndex: C,
366
405
  endRowIndex: C,
367
- startColIndex: I,
368
- endColIndex: w,
369
- dataItems: R,
406
+ startColIndex: w,
407
+ endColIndex: $,
408
+ dataItems: x,
370
409
  ctrlKey: !1,
371
410
  altKey: !1,
372
411
  metaKey: !1,
@@ -376,27 +415,27 @@ const fi = /* @__PURE__ */ Rt({
376
415
  cell: this.computedSelectable.cell,
377
416
  componentId: this.$props.id || this._gridId,
378
417
  selectedField: this.$props.selectedField || ""
379
- }, b = this.computedSelectable.mode === "multiple" ? {
380
- ...(f = (c = this.gridStateContext.select) == null ? void 0 : c.value) != null ? f : {}
418
+ }, I = this.computedSelectable.mode === "multiple" ? {
419
+ ...(u = (h = this.gridStateContext.select) == null ? void 0 : h.value) != null ? u : {}
381
420
  } : {};
382
- b[p] === !0 || Array.isArray(b[p]) && b[p].length === this.columnsRef.length ? delete b[p] : b[p] = this.computedSelectable.cell ? [...Array(this.columnsRef.length).keys()] : !0, this.raiseSelectionEvent($, b);
421
+ I[m] === !0 || Array.isArray(I[m]) && I[m].length === this.columnsRef.length ? delete I[m] : I[m] = this.computedSelectable.cell ? [...Array(this.columnsRef.length).keys()] : !0, this.raiseSelectionEvent(v, I);
383
422
  }
384
423
  break;
385
424
  }
386
425
  case "SelectAllRowsCommand": {
387
426
  if (this.computedSelectable.enabled && this.$props.dataItemKey) {
388
- const h = this.getLeafDataItems(), u = {}, p = h[0], R = h[h.length - 1];
389
- h.forEach((C) => {
390
- const I = M(this.$props.dataItemKey)(C);
391
- u[I] = this.computedSelectable.cell ? [...Array(this.columnsRef.length).keys()] : !0;
427
+ const c = this.getLeafDataItems(), f = {}, m = c[0], x = c[c.length - 1];
428
+ c.forEach((C) => {
429
+ const w = M(this.$props.dataItemKey)(C);
430
+ f[w] = this.computedSelectable.cell ? [...Array(this.columnsRef.length).keys()] : !0;
392
431
  }), this.raiseSelectionEvent({
393
432
  ...this.getArguments(e.event),
394
- dataItems: h,
395
- dataItem: p,
396
- startDataItem: p,
397
- endDataItem: R,
433
+ dataItems: c,
434
+ dataItem: m,
435
+ startDataItem: m,
436
+ endDataItem: x,
398
437
  startRowIndex: 0,
399
- endRowIndex: h.length - 1,
438
+ endRowIndex: c.length - 1,
400
439
  startColIndex: 0,
401
440
  endColIndex: this.columnsRef.length - 1,
402
441
  ctrlKey: !1,
@@ -408,7 +447,7 @@ const fi = /* @__PURE__ */ Rt({
408
447
  cell: this.computedSelectable.cell,
409
448
  componentId: this.$props.id || this._gridId,
410
449
  selectedField: this.$props.selectedField || ""
411
- }, u);
450
+ }, f);
412
451
  }
413
452
  break;
414
453
  }
@@ -440,6 +479,14 @@ const fi = /* @__PURE__ */ Rt({
440
479
  case "UnpinCommand":
441
480
  this.handleRowPin("unpin", e.dataItem);
442
481
  break;
482
+ case "CopySelectionCommand":
483
+ this.handleClipboardEvent(he.copy, e.event.nativeEvent, {
484
+ copyHeaders: !((p = t.name) != null && p.toLowerCase().includes("noheaders"))
485
+ }, e.dataItem, e.field);
486
+ break;
487
+ case "PasteCommand":
488
+ this.handleClipboardEvent(he.paste, e.event.nativeEvent, {}, e.dataItem, e.field);
489
+ break;
443
490
  }
444
491
  this.handleContextMenuClose();
445
492
  },
@@ -469,12 +516,12 @@ const fi = /* @__PURE__ */ Rt({
469
516
  const s = this._element;
470
517
  if (this.observerRef && s) {
471
518
  this.observerRef.disconnect();
472
- const n = s.querySelector(`[absolute-row-index="${this.rowIndexRef.value}"]`);
473
- n ? this.observerRef.observe(n) : this.setCurrentOnTop(e);
519
+ const o = s.querySelector(`[absolute-row-index="${this.rowIndexRef.value}"]`);
520
+ o ? this.observerRef.observe(o) : this.setCurrentOnTop(e);
474
521
  }
475
522
  },
476
523
  setCurrentOnTop(e) {
477
- var i, n;
524
+ var i, o;
478
525
  if (!((i = this.vsRef) != null && i.container) || this.$props.scrollable === "none")
479
526
  return;
480
527
  this.observerRef && this.observerRef.disconnect();
@@ -482,11 +529,11 @@ const fi = /* @__PURE__ */ Rt({
482
529
  rowIndex: t
483
530
  } = e, s = this._element;
484
531
  if (this.isVirtualScroll) {
485
- const o = ((n = this.vsRef.rowHeightService) == null ? void 0 : n.offset(t)) || 0;
486
- this.vsRef.container.scroll(0, o);
532
+ const n = ((o = this.vsRef.rowHeightService) == null ? void 0 : o.offset(t)) || 0;
533
+ this.vsRef.container.scroll(0, n);
487
534
  } else if (s) {
488
- const o = t < 1 ? s.querySelector("tbody > tr:nth-child(1)") : s.querySelector(`tbody > tr:nth-child(${t + 1})`);
489
- o && this.containerElementRef && (this.containerElementRef.scrollTop = o.offsetTop);
535
+ const n = t < 1 ? s.querySelector("tbody > tr:nth-child(1)") : s.querySelector(`tbody > tr:nth-child(${t + 1})`);
536
+ n && this.containerElementRef && (this.containerElementRef.scrollTop = n.offsetTop);
490
537
  }
491
538
  },
492
539
  getTotal() {
@@ -494,18 +541,18 @@ const fi = /* @__PURE__ */ Rt({
494
541
  return Array.isArray(this.$props.dataItems) ? e = e || this.$props.dataItems.length : this.$props.dataItems && (e = e || this.$props.dataItems.total), e;
495
542
  },
496
543
  readColumnElements() {
497
- return ps(this.$props.columns, this.currentColumnsState, {
544
+ return ms(this.$props.columns, this.currentColumnsState, {
498
545
  prevId: 0,
499
546
  idPrefix: this.idPrefix
500
547
  });
501
548
  },
502
549
  getResolvedFlatColumnsState() {
503
- const e = [], t = (s, i) => s == null ? void 0 : s.forEach((n) => {
504
- const o = n.hidden || i;
550
+ const e = [], t = (s, i) => s == null ? void 0 : s.forEach((o) => {
551
+ const n = o.hidden || i;
505
552
  e.push({
506
- ...n,
507
- hidden: o
508
- }), t(n.children, o);
553
+ ...o,
554
+ hidden: n
555
+ }), t(o.children, n);
509
556
  });
510
557
  return t(this.currentColumnsState, !1), e;
511
558
  },
@@ -513,19 +560,19 @@ const fi = /* @__PURE__ */ Rt({
513
560
  const t = this.getResolvedFlatColumnsState();
514
561
  return [e.filter((s) => {
515
562
  var i;
516
- return !s.hidden && !((i = t.find((n) => n.id === s.id)) != null && i.hidden);
563
+ return !s.hidden && !((i = t.find((o) => o.id === s.id)) != null && i.hidden);
517
564
  }), e.filter((s) => {
518
565
  var i;
519
- return s.hidden || ((i = t.find((n) => n.id === s.id)) == null ? void 0 : i.hidden);
566
+ return s.hidden || ((i = t.find((o) => o.id === s.id)) == null ? void 0 : i.hidden);
520
567
  })];
521
568
  },
522
- getFlatData(e, t, s, i, n, o, r) {
523
- const a = [], c = cs(a, e, t, {
569
+ getFlatData(e, t, s, i, o, n, r) {
570
+ const l = [], h = fs(l, e, t, {
524
571
  index: s
525
- }, i !== void 0, n, o, this.groupExpandable.defaultExpand, r, this.$props.expandField);
572
+ }, i !== void 0, o, n, this.groupExpandable.defaultExpand, r, this.$props.expandField);
526
573
  return {
527
- flattedData: a,
528
- resolvedGroupsCount: c
574
+ flattedData: l,
575
+ resolvedGroupsCount: h
529
576
  };
530
577
  },
531
578
  getColumnsEssentialProps(e) {
@@ -547,7 +594,7 @@ const fi = /* @__PURE__ */ Rt({
547
594
  ...s,
548
595
  children: s.children && s.children.length > 0 ? this.filterHiddenColumns(s.children) : s.children
549
596
  });
550
- return [...e].filter((s) => !s.hidden).filter((s) => q && s && s.media ? window.matchMedia(s.media).matches : s).map((s) => t(s));
597
+ return [...e].filter((s) => !s.hidden).filter((s) => B && s && s.media ? window.matchMedia(s.media).matches : s).map((s) => t(s));
551
598
  },
552
599
  /**
553
600
  * A getter of the current columns. Gets the current column width or current columns,
@@ -557,41 +604,41 @@ const fi = /* @__PURE__ */ Rt({
557
604
  * and check the properties afterwards. You can check the result in the browser console.
558
605
  */
559
606
  getColumns() {
560
- const e = this.columnsRef.filter((s) => s.declarationIndex >= 0 && s.parentIndex === -1), t = (s) => (s.sort((i, n) => i.declarationIndex - n.declarationIndex), s.map((i) => {
607
+ const e = this.columnsRef.filter((s) => s.declarationIndex >= 0 && s.parentIndex === -1), t = (s) => (s.sort((i, o) => i.declarationIndex - o.declarationIndex), s.map((i) => {
561
608
  const {
562
- declarationIndex: n,
563
- parentIndex: o,
609
+ declarationIndex: o,
610
+ parentIndex: n,
564
611
  depth: r,
565
- colSpan: a,
566
- rowSpan: c,
567
- index: f,
568
- kFirst: h,
569
- children: u,
570
- ...p
612
+ colSpan: l,
613
+ rowSpan: h,
614
+ index: u,
615
+ kFirst: p,
616
+ children: c,
617
+ ...f
571
618
  } = i;
572
- return u.length ? {
573
- children: t(u),
574
- ...p
575
- } : p;
619
+ return c.length ? {
620
+ children: t(c),
621
+ ...f
622
+ } : f;
576
623
  }));
577
624
  return t(e);
578
625
  },
579
626
  setRefs() {
580
- var o, r, a, c;
627
+ var n, r, l, h;
581
628
  let e = "$el";
582
- const t = x(this, "gridNav");
629
+ const t = S(this, "gridNav");
583
630
  t && (this._element = t[e]);
584
- const s = x(this, "groupPanelDiv");
631
+ const s = S(this, "groupPanelDiv");
585
632
  if (s) {
586
- let f = s[e] || null;
587
- this.dragLogic.refGroupPanelDiv(f);
633
+ let u = s[e] || null;
634
+ this.dragLogic.refGroupPanelDiv(u);
588
635
  }
589
- this.stickyHeaderRef = x(this, "stickyHeader"), this.stickyFooterRef = x(this, "stickyFooter"), this.pinnedTopRef = x(this, "pinnedTop"), this.pinnedBottomRef = x(this, "pinnedBottom");
590
- const i = x(this, "dropElementClue"), n = x(this, "dragElementClue");
591
- this.dragLogic.refDropElementClue(i), this.dragLogic.refDragElementClue(n), this.columnResize.colGroupMain = x(this, "colGroup"), this.columnResize.colGroupStickyHeader = (o = this.stickyHeaderRef) == null ? void 0 : o.colGroupRef, this.columnResize.colGroupStickyFooter = (r = this.stickyFooterRef) == null ? void 0 : r.colGroupRef, this.columnResize.colGroupPinnedTop = (a = this.pinnedTopRef) == null ? void 0 : a.colGroupRef, this.columnResize.colGroupPinnedBottom = (c = this.pinnedBottomRef) == null ? void 0 : c.colGroupRef, this._header = x(this, "header"), this._footer = x(this, "footer"), this.resetTableWidth(), $t();
636
+ this.stickyHeaderRef = S(this, "stickyHeader"), this.stickyFooterRef = S(this, "stickyFooter"), this.pinnedTopRef = S(this, "pinnedTop"), this.pinnedBottomRef = S(this, "pinnedBottom");
637
+ const i = S(this, "dropElementClue"), o = S(this, "dragElementClue");
638
+ this.dragLogic.refDropElementClue(i), this.dragLogic.refDragElementClue(o), this.columnResize.colGroupMain = S(this, "colGroup"), this.columnResize.colGroupStickyHeader = (n = this.stickyHeaderRef) == null ? void 0 : n.colGroupRef, this.columnResize.colGroupStickyFooter = (r = this.stickyFooterRef) == null ? void 0 : r.colGroupRef, this.columnResize.colGroupPinnedTop = (l = this.pinnedTopRef) == null ? void 0 : l.colGroupRef, this.columnResize.colGroupPinnedBottom = (h = this.pinnedBottomRef) == null ? void 0 : h.colGroupRef, this._header = S(this, "header"), this._footer = S(this, "footer"), this.resetTableWidth(), vt();
592
639
  },
593
640
  gridUnmounted() {
594
- clearTimeout(this.forceUpdateTimeout), this.columnResize.columns = [], this.dragLogic.columns = [], this.dragLogic && this.dragLogic.dragElementClue && (this.dragLogic.dragElementClue.$el.remove(), this.dragLogic.dropElementClue.$el.remove()), this.dataRef = [], this.columnsRef = [], document != null && document.body && this.resizeObserver && this.resizeObserver.disconnect(), this.observerRef && (this.observerRef.disconnect(), this.observerRef = null);
641
+ clearTimeout(this.forceUpdateTimeout), this.columnResize.columns = [], this.dragLogic.columns = [], this.dragLogic && this.dragLogic.dragElementClue && (this.dragLogic.dragElementClue.$el.remove(), this.dragLogic.dropElementClue.$el.remove()), this.dataRef = [], this.columnsRef = [], document != null && document.body && this.resizeObserver && this.resizeObserver.disconnect(), this.observerRef && (this.observerRef.disconnect(), this.observerRef = null), this.clipboardServiceRef && (this.clipboardServiceRef.removeEventListeners(document), this.clipboardServiceRef = null);
595
642
  },
596
643
  isAllData() {
597
644
  const {
@@ -610,15 +657,15 @@ const fi = /* @__PURE__ */ Rt({
610
657
  },
611
658
  initializeVirtualization() {
612
659
  const e = this.vsRef, t = this.$props.rowHeight || this._minRowHeightRef || 0;
613
- this.tableBodyRef = x(this, "tableBody"), this.scrollTableRef = Ae(this, "table"), e && (e.fixedScroll = this.$props.fixedScroll || !1, e.PageChange = this.virtualPageChange, e.pageSize = this._virtualPageSize, e.scrollableVirtual = this.isVirtualScroll, this.scrollContainerRef = e.container = x(this, "scrollContainer"), e.tableBody = this.tableBodyRef, e.scrollHeightContainer = x(this, "scrollHeightContainer"), e.table = this.scrollTableRef, (!e.rowHeightService || e.total !== this._virtualTotal) && t && (e.total = this._virtualTotal, e.rowHeightService = new It(this._virtualTotal, t)));
660
+ this.tableBodyRef = S(this, "tableBody"), this.scrollTableRef = Be(this, "table"), e && (e.fixedScroll = this.$props.fixedScroll || !1, e.PageChange = this.virtualPageChange, e.pageSize = this._virtualPageSize, e.scrollableVirtual = this.isVirtualScroll, this.scrollContainerRef = e.container = S(this, "scrollContainer"), e.tableBody = this.tableBodyRef, e.scrollHeightContainer = S(this, "scrollHeightContainer"), e.table = this.scrollTableRef, (!e.rowHeightService || e.total !== this._virtualTotal) && t && (e.total = this._virtualTotal, e.rowHeightService = new wt(this._virtualTotal, t)));
614
661
  },
615
662
  setContainerHeight() {
616
- const e = x(this, "scrollContainer");
663
+ const e = S(this, "scrollContainer");
617
664
  this._containerHeightRef = (e == null ? void 0 : e.offsetHeight) || 0;
618
665
  },
619
666
  setMinRowHeight() {
620
667
  if (!this._minRowHeightRef && !this.$props.rowHeight) {
621
- const t = hs(x(this, "tableBody"));
668
+ const t = us(S(this, "tableBody"));
622
669
  t && (this._minRowHeightRef = t, this.$forceUpdate());
623
670
  }
624
671
  },
@@ -626,7 +673,7 @@ const fi = /* @__PURE__ */ Rt({
626
673
  this.setRefs();
627
674
  },
628
675
  onHeaderScroll(e) {
629
- const s = e.target.scrollLeft, i = x(this, "scrollContainer");
676
+ const s = e.target.scrollLeft, i = S(this, "scrollContainer");
630
677
  i && (i.scrollLeft = s), this.scrollLeftRef = s;
631
678
  },
632
679
  scrollHandler(e) {
@@ -637,10 +684,10 @@ const fi = /* @__PURE__ */ Rt({
637
684
  }, 0)), this.scrollLeftRef = t, this._header && this._header.setScrollLeft(e.currentTarget.scrollLeft), this._footer && this._footer.setScrollLeft(e.currentTarget.scrollLeft), this.stickyHeaderRef && this.stickyHeaderRef.setScrollLeft(e.currentTarget.scrollLeft), this.stickyFooterRef && this.stickyFooterRef.setScrollLeft(e.currentTarget.scrollLeft), this.pinnedTopRef && this.pinnedTopRef.setScrollLeft(t), this.pinnedBottomRef && this.pinnedBottomRef.setScrollLeft(t), this.vsRef && s !== this.wrapperScrollTopRef && this.vsRef.scrollHandler(e);
638
685
  const i = this.virtualSkipRef;
639
686
  this.vsRef && s !== this.wrapperScrollTopRef && this.vsRef.scrollHandler(e);
640
- const n = this.isVirtualScroll && this.virtualSkipRef !== i;
641
- if (this.$emit("scroll", e), this.wrapperScrollTopRef = s, !n) {
642
- const o = this.updateStickyGroups();
643
- this.sticky.headerItems = o == null ? void 0 : o.stickyHeaderItems, this.sticky.footerItems = o == null ? void 0 : o.stickyFooterItems;
687
+ const o = this.isVirtualScroll && this.virtualSkipRef !== i;
688
+ if (this.$emit("scroll", e), this.wrapperScrollTopRef = s, !o) {
689
+ const n = this.updateStickyGroups();
690
+ this.sticky.headerItems = n == null ? void 0 : n.stickyHeaderItems, this.sticky.footerItems = n == null ? void 0 : n.stickyFooterItems;
644
691
  }
645
692
  },
646
693
  rowClick(e, t) {
@@ -656,19 +703,19 @@ const fi = /* @__PURE__ */ Rt({
656
703
  });
657
704
  },
658
705
  loopGroupedItems(e, t, s = 0, i = null) {
659
- return e.forEach((n) => {
660
- !i && t(n, s) && (i = n), n.items && n.items.length && !i && (i = this.loopGroupedItems(n.items, t, s + 1, i));
706
+ return e.forEach((o) => {
707
+ !i && t(o, s) && (i = o), o.items && o.items.length && !i && (i = this.loopGroupedItems(o.items, t, s + 1, i));
661
708
  }), i;
662
709
  },
663
710
  updateGroupCollapsed(e) {
664
711
  let t = this.computedCollapsed, s = t[e.level];
665
- const i = this.$props.uniqueField, n = function(a, c) {
666
- return a.value === e.dataItem.value && c === e.level;
667
- }, o = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, n, 0, null) : e.dataItem, r = ds(o || e.dataItem, i);
712
+ const i = this.$props.uniqueField, o = function(l, h) {
713
+ return l.value === e.dataItem.value && h === e.level;
714
+ }, n = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, o, 0, null) : e.dataItem, r = ps(n || e.dataItem, i);
668
715
  if (e.value) {
669
716
  if (s && s.length) {
670
- const a = s.indexOf(r);
671
- a > -1 && s.splice(a, 1);
717
+ const l = s.indexOf(r);
718
+ l > -1 && s.splice(l, 1);
672
719
  }
673
720
  } else
674
721
  s ? s.includes(r) || s.push(r) : s = [r];
@@ -676,9 +723,9 @@ const fi = /* @__PURE__ */ Rt({
676
723
  },
677
724
  itemChange(e) {
678
725
  var i;
679
- const t = _.call(this, "itemchange"), s = (i = this.gridStateContext.group) == null ? void 0 : i.value;
726
+ const t = L.call(this, "itemchange"), s = (i = this.gridStateContext.group) == null ? void 0 : i.value;
680
727
  if (e.field === this.$props.expandField || (s || this.$props.detail) && e.field === void 0) {
681
- _.call(this, "expandchange") && e.dataItem && this.$emit("expandchange", {
728
+ L.call(this, "expandchange") && e.dataItem && this.$emit("expandchange", {
682
729
  ...this.getArguments(e.event),
683
730
  collapsedGroups: this.updateGroupCollapsed(e),
684
731
  dataItem: e.dataItem,
@@ -723,20 +770,20 @@ const fi = /* @__PURE__ */ Rt({
723
770
  });
724
771
  },
725
772
  selectionChangeHandler(e) {
726
- var t;
773
+ var t, s, i;
727
774
  if (this.computedSelectable.enabled) {
728
775
  const {
729
- event: s,
730
- dataItem: i,
731
- dataIndex: n,
732
- columnIndex: o
733
- } = e, r = {
734
- ...this.getArguments(s),
735
- dataItem: i,
736
- startColIndex: o,
737
- endColIndex: o,
738
- startRowIndex: n,
739
- endRowIndex: n,
776
+ event: o,
777
+ dataItem: n,
778
+ dataIndex: r,
779
+ columnIndex: l
780
+ } = e, h = {
781
+ ...this.getArguments(o),
782
+ dataItem: n,
783
+ startColIndex: l,
784
+ endColIndex: l,
785
+ startRowIndex: r,
786
+ endRowIndex: r,
740
787
  dataItems: this.getLeafDataItems(),
741
788
  altKey: !1,
742
789
  ctrlKey: !1,
@@ -749,46 +796,46 @@ const fi = /* @__PURE__ */ Rt({
749
796
  selectedField: this.$props.selectedField || ""
750
797
  };
751
798
  this.gridStateContext.selectionchange({
752
- ...r,
753
- select: this.$props.dataItemKey ? We({
754
- event: r,
755
- selectedState: (t = this.$props.select) != null ? t : {},
799
+ ...h,
800
+ select: this.$props.dataItemKey ? Ue({
801
+ event: h,
802
+ selectedState: (i = (s = this.$props.select) != null ? s : (t = this.gridStateContext.select) == null ? void 0 : t.value) != null ? i : {},
756
803
  dataItemKey: this.$props.dataItemKey
757
804
  }) : {}
758
805
  });
759
806
  }
760
807
  },
761
808
  onKeyboardSelectionChangeHandler(e) {
762
- var f, h;
809
+ var u, p;
763
810
  if (!this.computedSelectable.enabled || !this.$props.dataItemKey)
764
811
  return;
765
- const t = (f = this.gridStateContext.select) == null ? void 0 : f.value, s = {
812
+ const t = (u = this.gridStateContext.select) == null ? void 0 : u.value, s = {
766
813
  dataItems: this.getLeafDataItems(),
767
814
  mode: this.computedSelectable.mode,
768
815
  cell: this.computedSelectable.cell,
769
816
  componentId: this.$props.id,
770
817
  selectedField: "",
771
818
  ...this.getArguments(e)
772
- }, i = Ft({
819
+ }, i = Kt({
773
820
  event: s,
774
821
  selectedState: t != null ? t : {},
775
822
  dataItemKey: this.$props.dataItemKey
776
823
  });
777
824
  if (i === t)
778
825
  return;
779
- const n = e.target, o = Ue(n, "TD"), r = Ue(n, "TR"), a = Lt(o), c = Kt(r);
780
- if (a !== void 0 && c !== void 0) {
781
- const u = (h = as(this.$props.dataItems)) == null ? void 0 : h[c];
826
+ const o = e.target, n = je(o, "TD"), r = je(o, "TR"), l = _t(n), h = At(r);
827
+ if (l !== void 0 && h !== void 0) {
828
+ const c = (p = cs(this.$props.dataItems)) == null ? void 0 : p[h];
782
829
  this.gridStateContext.selectionchange({
783
830
  ...s,
784
831
  select: i,
785
- dataItem: u,
786
- startRowIndex: c,
787
- startColIndex: a,
788
- startDataItem: u,
789
- endDataItem: u,
790
- endRowIndex: c,
791
- endColIndex: a,
832
+ dataItem: c,
833
+ startRowIndex: h,
834
+ startColIndex: l,
835
+ startDataItem: c,
836
+ endDataItem: c,
837
+ endRowIndex: h,
838
+ endColIndex: l,
792
839
  ctrlKey: e.ctrlKey,
793
840
  altKey: e.altKey,
794
841
  metaKey: e.metaKey,
@@ -810,26 +857,26 @@ const fi = /* @__PURE__ */ Rt({
810
857
  }
811
858
  },
812
859
  selectionRelease(e) {
813
- var t;
860
+ var t, s, i;
814
861
  if (this.computedSelectable.enabled) {
815
- const s = this.getLeafDataItems(), i = s[e.startRowIndex], n = s[e.endRowIndex], o = {
862
+ const o = this.getLeafDataItems(), n = o[e.startRowIndex], r = o[e.endRowIndex], l = {
816
863
  event: void 0,
817
864
  target: this,
818
865
  selectedField: "",
819
866
  componentId: this.$props.id || this._gridId,
820
- dataItems: s,
867
+ dataItems: o,
821
868
  dataItem: null,
822
- startDataItem: i,
823
- endDataItem: n,
869
+ startDataItem: n,
870
+ endDataItem: r,
824
871
  ...e
825
- }, r = We({
826
- event: o,
827
- selectedState: (t = this.$props.select) != null ? t : {},
872
+ }, h = Ue({
873
+ event: l,
874
+ selectedState: (i = (s = this.$props.select) != null ? s : (t = this.gridStateContext.select) == null ? void 0 : t.value) != null ? i : {},
828
875
  // Thats kinda strange, even through the `dataItemKey` is required by the `getSelectedState`
829
876
  // it does work correctly even without it
830
877
  dataItemKey: this.$props.dataItemKey
831
878
  });
832
- this.raiseSelectionEvent(o, r);
879
+ this.raiseSelectionEvent(l, h);
833
880
  }
834
881
  },
835
882
  clearSelection(e) {
@@ -842,16 +889,16 @@ const fi = /* @__PURE__ */ Rt({
842
889
  });
843
890
  },
844
891
  moveToNextPage(e) {
845
- var n, o, r, a;
846
- const t = (r = (o = (n = this.gridStateContext.take) == null ? void 0 : n.value) != null ? o : this.$props.pageSize) != null ? r : 0, s = (((a = this.gridStateContext.skip) == null ? void 0 : a.value) || 0) + t, i = this.getTotal();
892
+ var o, n, r, l;
893
+ const t = (r = (n = (o = this.gridStateContext.take) == null ? void 0 : o.value) != null ? n : this.$props.pageSize) != null ? r : 0, s = (((l = this.gridStateContext.skip) == null ? void 0 : l.value) || 0) + t, i = this.getTotal();
847
894
  s < i && this.pageChangeHandler({
848
895
  skip: s,
849
896
  take: t
850
897
  }, e);
851
898
  },
852
899
  moveToPrevPage(e) {
853
- var i, n, o, r;
854
- const t = (o = (n = (i = this.gridStateContext.take) == null ? void 0 : i.value) != null ? n : this.$props.pageSize) != null ? o : 0, s = (((r = this.gridStateContext.skip) == null ? void 0 : r.value) || 0) - t;
900
+ var i, o, n, r;
901
+ const t = (n = (o = (i = this.gridStateContext.take) == null ? void 0 : i.value) != null ? o : this.$props.pageSize) != null ? n : 0, s = (((r = this.gridStateContext.skip) == null ? void 0 : r.value) || 0) - t;
855
902
  s >= 0 && this.pageChangeHandler({
856
903
  skip: s,
857
904
  take: t
@@ -892,20 +939,20 @@ const fi = /* @__PURE__ */ Rt({
892
939
  handleDetailExpandAction(e, t) {
893
940
  var s;
894
941
  if (this.detailExpandable.enabled) {
895
- const i = (s = this.gridStateContext.detailExpand) == null ? void 0 : s.value, n = Gt(i != null ? i : {}, e);
942
+ const i = (s = this.gridStateContext.detailExpand) == null ? void 0 : s.value, o = Lt(i != null ? i : {}, e);
896
943
  this.gridStateContext.detailexpandchange({
897
944
  ...this.getArguments(t),
898
- detailExpand: n
945
+ detailExpand: o
899
946
  });
900
947
  }
901
948
  },
902
949
  handleGroupExpandAction(e, t) {
903
950
  var s;
904
951
  if (this.groupExpandable.enabled) {
905
- const i = (s = this.gridStateContext.groupExpand) == null ? void 0 : s.value, n = Dt(i != null ? i : [], e, this.groupExpandable);
952
+ const i = (s = this.gridStateContext.groupExpand) == null ? void 0 : s.value, o = Ft(i != null ? i : [], e, this.groupExpandable);
906
953
  this.$props.expandField || this.gridStateContext.groupexpandchange({
907
954
  ...this.getArguments(t),
908
- groupExpand: n
955
+ groupExpand: o
909
956
  });
910
957
  }
911
958
  this.scrollToStickyGroup(e.group);
@@ -916,41 +963,41 @@ const fi = /* @__PURE__ */ Rt({
916
963
  ...this.getArguments(i),
917
964
  ...t
918
965
  });
919
- else if (_.call(this, e))
966
+ else if (L.call(this, e))
920
967
  this.$emit(e, {
921
968
  ...this.getArguments(i),
922
969
  ...t
923
970
  });
924
- else if (_.call(this, "datastatechange")) {
925
- const n = {
971
+ else if (L.call(this, "datastatechange")) {
972
+ const o = {
926
973
  ...this.getDataState(),
927
974
  ...s
928
975
  };
929
976
  this.gridStateContext.datastatechange({
930
977
  ...this.getArguments(i),
931
- data: n,
932
- dataState: n
978
+ data: o,
979
+ dataState: o
933
980
  });
934
981
  }
935
982
  },
936
983
  columnReorder(e, t, s) {
937
- const i = this.columnsRef[e], n = Ye(this.currentColumnsState), o = i.depth, r = (h) => {
984
+ const i = this.columnsRef[e], o = Ze(this.currentColumnsState), n = i.depth, r = (p) => {
938
985
  do
939
- h++;
940
- while (h < this.columnsRef.length && this.columnsRef[h].depth > o);
941
- return h;
942
- }, a = this.columnsRef.splice(e, r(e) - e);
943
- this.columnsRef.splice(e < t ? r(t - a.length) : t, 0, ...a), this.columnsRef.filter((h) => h.declarationIndex >= 0).forEach((h, u) => {
944
- h.orderIndex = u;
945
- const p = n.find((R) => R.id === h.id);
946
- p && (p.orderIndex = u);
986
+ p++;
987
+ while (p < this.columnsRef.length && this.columnsRef[p].depth > n);
988
+ return p;
989
+ }, l = this.columnsRef.splice(e, r(e) - e);
990
+ this.columnsRef.splice(e < t ? r(t - l.length) : t, 0, ...l), this.columnsRef.filter((p) => p.declarationIndex >= 0).forEach((p, c) => {
991
+ p.orderIndex = c;
992
+ const f = o.find((m) => m.id === p.id);
993
+ f && (f.orderIndex = c);
947
994
  });
948
- const c = this.columnsRef[e].locked && this.columnsRef[t].locked;
949
- zt(this._columnsMap, this.columnsRef, c || this.shouldUpdateLeftRightRef), Et(this._columnsMap, this.columnsRef, c || this.shouldUpdateLeftRightRef), this.resizedRef && (this.shouldUpdateLeftRightRef = !1, this.resizedRef = !1);
950
- const f = this.getColumns();
995
+ const h = this.columnsRef[e].locked && this.columnsRef[t].locked;
996
+ Dt(this._columnsMap, this.columnsRef, h || this.shouldUpdateLeftRightRef), Gt(this._columnsMap, this.columnsRef, h || this.shouldUpdateLeftRightRef), this.resizedRef && (this.shouldUpdateLeftRightRef = !1, this.resizedRef = !1);
997
+ const u = this.getColumns();
951
998
  this.$emit("columnreorder", {
952
999
  target: this,
953
- columns: f,
1000
+ columns: u,
954
1001
  event: s,
955
1002
  prev: e,
956
1003
  next: t
@@ -959,19 +1006,19 @@ const fi = /* @__PURE__ */ Rt({
959
1006
  });
960
1007
  },
961
1008
  groupReorder(e, t, s) {
962
- var n;
963
- const i = (n = this.gridStateContext.group) == null ? void 0 : n.value;
1009
+ var o;
1010
+ const i = (o = this.gridStateContext.group) == null ? void 0 : o.value;
964
1011
  i !== void 0 && (i.splice(t, 0, ...i.splice(e, 1)), this.groupChangeHandler(i, s));
965
1012
  },
966
1013
  columnToGroup(e, t, s) {
967
- var o;
1014
+ var n;
968
1015
  const i = this.columnsRef[e].field;
969
1016
  if (!i)
970
1017
  return;
971
- const n = (((o = this.gridStateContext.group) == null ? void 0 : o.value) || []).slice();
972
- n.splice(t, 0, {
1018
+ const o = (((n = this.gridStateContext.group) == null ? void 0 : n.value) || []).slice();
1019
+ o.splice(t, 0, {
973
1020
  field: i
974
- }), this.groupChangeHandler(n, s);
1021
+ }), this.groupChangeHandler(o, s);
975
1022
  },
976
1023
  resetTableWidth() {
977
1024
  var i;
@@ -979,21 +1026,21 @@ const fi = /* @__PURE__ */ Rt({
979
1026
  if (!this.columnResize.colGroupMain)
980
1027
  return;
981
1028
  const t = (i = this.columnResize.colGroupMain) == null ? void 0 : i.children;
982
- for (let n = 0; n < t.length; n++) {
983
- const o = t[n].width;
984
- if (!o)
1029
+ for (let o = 0; o < t.length; o++) {
1030
+ const n = t[o].width;
1031
+ if (!n)
985
1032
  return;
986
- e += parseFloat(o.toString());
1033
+ e += parseFloat(n.toString());
987
1034
  }
988
1035
  e = Math.round(e), this._header && this._header.setWidth(e), this._footer && this._footer.setWidth(e), this.stickyHeaderRef && this.stickyHeaderRef.setWidth(e), this.stickyFooterRef && this.stickyFooterRef.setWidth(e), this.pinnedTopRef && this.pinnedTopRef.setWidth(e), this.pinnedBottomRef && this.pinnedBottomRef.setWidth(e);
989
- const s = Ae(this, "table");
1036
+ const s = Be(this, "table");
990
1037
  s && e && (s.style.width = e + "px"), this.stickyFooterRef && this.setStickyFooterOffset();
991
1038
  },
992
1039
  setStickyFooterOffset() {
993
1040
  const e = this.containerElementRef, t = e ? e.scrollWidth > e.clientWidth : !1;
994
1041
  this.stickyFooterRef && (this.stickyFooterRef.$el.style.marginBlockEnd = t ? "var(--kendo-scrollbar-width, 0px)" : "");
995
1042
  },
996
- onResize(e, t, s, i, n, o, r) {
1043
+ onResize(e, t, s, i, o, n, r) {
997
1044
  this.resetTableWidth(), this.shouldUpdateLeftRightRef = !0, this.resizedRef = !0, this.$emit("columnresize", {
998
1045
  columns: this.getColumns(),
999
1046
  index: e,
@@ -1001,35 +1048,35 @@ const fi = /* @__PURE__ */ Rt({
1001
1048
  event: i,
1002
1049
  newWidth: t,
1003
1050
  oldWidth: s,
1004
- end: n,
1051
+ end: o,
1005
1052
  target: this
1006
- }), n && this.gridStateContext.columnsstatechange({
1007
- columnsState: o
1053
+ }), o && this.gridStateContext.columnsstatechange({
1054
+ columnsState: n
1008
1055
  });
1009
1056
  },
1010
1057
  initColumnsState(e, t) {
1011
1058
  const s = (i) => {
1012
- var o;
1013
- const n = t.find((r) => r.id === i.id);
1014
- if (n) {
1059
+ var n;
1060
+ const o = t.find((r) => r.id === i.id);
1061
+ if (o) {
1015
1062
  const r = {
1016
- ...n
1063
+ ...o
1017
1064
  };
1018
- return r.children = (o = i.children) == null ? void 0 : o.map(s), r;
1065
+ return r.children = (n = i.children) == null ? void 0 : n.map(s), r;
1019
1066
  }
1020
1067
  return i;
1021
1068
  };
1022
1069
  this.currentColumnsState = e.filter((i) => i.parentIndex === -1).map(s);
1023
1070
  },
1024
1071
  configureColumns(e, t) {
1025
- e.filter((o) => o.columnType === "checkbox").forEach((o) => {
1026
- o.width = o.width || "50px", o.defaultCell = k(qe), o.defaultHeaderCell = k(et), o._type = "edit", o.columnMenu = !1;
1027
- }), this.$props.selectedField && this.columnsRef.filter((o) => o.field === this.$props.selectedField).forEach((o) => {
1028
- o.width = o.width || "50px", o.defaultCell = k(qe), o.defaultHeaderCell = k(et), o.columnMenu = !1;
1029
- }), this.$props.pinnable && e.filter((o) => o.columnType === "pin").forEach((o) => {
1030
- o.width = o.width || "48px", o.defaultCell = k(Ss), o.defaultHeaderCell = k(Pt), o.sortable = !1, o.filterable = !1, o.editable = !1;
1072
+ e.filter((n) => n.columnType === "checkbox").forEach((n) => {
1073
+ n.width = n.width || "50px", n.defaultCell = H(Xe), n.defaultHeaderCell = H(st), n._type = "edit", n.columnMenu = !1;
1074
+ }), this.$props.selectedField && this.columnsRef.filter((n) => n.field === this.$props.selectedField).forEach((n) => {
1075
+ n.width = n.width || "50px", n.defaultCell = H(Xe), n.defaultHeaderCell = H(st), n.columnMenu = !1;
1076
+ }), this.$props.pinnable && e.filter((n) => n.columnType === "pin").forEach((n) => {
1077
+ n.width = n.width || "48px", n.defaultCell = H($s), n.defaultHeaderCell = H(zt), n.sortable = !1, n.filterable = !1, n.editable = !1;
1031
1078
  });
1032
- const s = Ye(this.currentColumnsState);
1079
+ const s = Ze(this.currentColumnsState);
1033
1080
  this.initColumnsState(e, s);
1034
1081
  const i = {
1035
1082
  id: "",
@@ -1051,54 +1098,54 @@ const fi = /* @__PURE__ */ Rt({
1051
1098
  ariaColumnIndex: 0,
1052
1099
  isAccessible: !0
1053
1100
  };
1054
- let n = 0;
1101
+ let o = 0;
1055
1102
  if (this.detailExpandable.enabled && this.$props.detail && !this.$props.expandField) {
1056
- const o = {
1103
+ const n = {
1057
1104
  ...i,
1058
1105
  _type: "expand",
1059
- id: P.generateNavigatableId(`${n++}`, "expand", "column"),
1060
- defaultCell: k(Je),
1106
+ id: E.generateNavigatableId(`${o++}`, "expand", "column"),
1107
+ defaultCell: H(Ye),
1061
1108
  field: this.detailExpandable.column,
1062
1109
  headerClassName: this.hierarchClass
1063
1110
  };
1064
- e.unshift(o), this.currentColumnsState.unshift(s.find((r) => r.id === o.id) || o);
1111
+ e.unshift(n), this.currentColumnsState.unshift(s.find((r) => r.id === n.id) || n);
1065
1112
  }
1066
- this.$props.expandField && _.call(this, "expandchange") && this.$props.detail && (e.unshift({
1113
+ this.$props.expandField && L.call(this, "expandchange") && this.$props.detail && (e.unshift({
1067
1114
  ...i,
1068
- defaultCell: k(Je),
1115
+ defaultCell: H(Ye),
1069
1116
  field: this.$props.expandField,
1070
1117
  headerClassName: "k-hierarchy-cell k-header",
1071
- id: P.generateNavigatableId(`${e.length}`, this.idPrefix, "column"),
1118
+ id: E.generateNavigatableId(`${e.length}`, this.idPrefix, "column"),
1072
1119
  ...this.expandColumn
1073
- }), n++);
1074
- for (let o = 0; o < t; o++) {
1120
+ }), o++);
1121
+ for (let n = 0; n < t; n++) {
1075
1122
  const r = {
1076
1123
  ...i,
1077
1124
  isAccessible: !1,
1078
- defaultCell: k(Ze),
1079
- id: P.generateNavigatableId(`${n++}`, "group", "column"),
1125
+ defaultCell: H(tt),
1126
+ id: E.generateNavigatableId(`${o++}`, "group", "column"),
1080
1127
  field: "value",
1081
1128
  locked: this.$props.lockGroups,
1082
1129
  columnMenu: !1
1083
1130
  };
1084
- e.unshift(r), this.currentColumnsState.unshift(s.find((a) => a.id === r.id) || r);
1131
+ e.unshift(r), this.currentColumnsState.unshift(s.find((l) => l.id === r.id) || r);
1085
1132
  }
1086
- e.slice(n).forEach((o) => {
1087
- o.parentIndex >= 0 && (o.parentIndex += n), o.rowSpannable = o.rowSpannable !== void 0 ? Qe(o.rowSpannable) : this.computedRowSpannable;
1133
+ e.slice(o).forEach((n) => {
1134
+ n.parentIndex >= 0 && (n.parentIndex += o), n.rowSpannable = n.rowSpannable !== void 0 ? et(n.rowSpannable) : this.computedRowSpannable;
1088
1135
  });
1089
1136
  },
1090
1137
  initColumns(e, t) {
1091
- var o;
1138
+ var n;
1092
1139
  this.columnsRef = this.readColumnElements();
1093
- const s = (o = this.gridStateContext.group) == null ? void 0 : o.value;
1094
- this.columnsRef.filter((r) => !r.hidden).length === 0 && (this.columnsRef = rs(e, s, {
1140
+ const s = (n = this.gridStateContext.group) == null ? void 0 : n.value;
1141
+ this.columnsRef.filter((r) => !r.hidden).length === 0 && (this.columnsRef = ds(e, s, {
1095
1142
  column: this.$props.expandField ? this.$props.expandField : this.groupExpandable.column
1096
1143
  }, {
1097
1144
  prevId: 0,
1098
1145
  idPrefix: this.idPrefix
1099
1146
  })), this.configureColumns(this.columnsRef, t);
1100
- const [i, n] = this.filterColumns(this.columnsRef);
1101
- this.columnsRef = i, this.hiddenColumnsRef = n, this._columnsMap = ls(this.columnsRef, !0);
1147
+ const [i, o] = this.filterColumns(this.columnsRef);
1148
+ this.columnsRef = i, this.hiddenColumnsRef = o, this._columnsMap = hs(this.columnsRef, !0);
1102
1149
  },
1103
1150
  resolveTitle(e) {
1104
1151
  const t = this.findColumnByField(e), s = t && (t.title || t.field);
@@ -1123,14 +1170,14 @@ const fi = /* @__PURE__ */ Rt({
1123
1170
  return null;
1124
1171
  },
1125
1172
  getDataState() {
1126
- var o, r, a, c, f;
1127
- const e = (o = this.gridStateContext.sort) == null ? void 0 : o.value, t = (r = this.gridStateContext.filter) == null ? void 0 : r.value, s = (a = this.gridStateContext.skip) == null ? void 0 : a.value, i = (c = this.gridStateContext.take) == null ? void 0 : c.value, n = (f = this.gridStateContext.group) == null ? void 0 : f.value;
1173
+ var n, r, l, h, u;
1174
+ const e = (n = this.gridStateContext.sort) == null ? void 0 : n.value, t = (r = this.gridStateContext.filter) == null ? void 0 : r.value, s = (l = this.gridStateContext.skip) == null ? void 0 : l.value, i = (h = this.gridStateContext.take) == null ? void 0 : h.value, o = (u = this.gridStateContext.group) == null ? void 0 : u.value;
1128
1175
  return {
1129
1176
  filter: t,
1130
1177
  sort: e,
1131
1178
  skip: s,
1132
1179
  take: i !== void 0 ? i : this.$props.pageSize,
1133
- group: n
1180
+ group: o
1134
1181
  };
1135
1182
  },
1136
1183
  getArguments(e) {
@@ -1152,19 +1199,19 @@ const fi = /* @__PURE__ */ Rt({
1152
1199
  }), t;
1153
1200
  },
1154
1201
  searchChange(e) {
1155
- const t = this.$props.searchFields || this.columnsRef.map((n) => n.field) || [], s = e.event.target.value, i = {
1202
+ const t = this.$props.searchFields || this.columnsRef.map((o) => o.field) || [], s = e.event.target.value, i = {
1156
1203
  logic: "or",
1157
- filters: t.filter((n) => n !== void 0).map((n) => {
1158
- var o;
1159
- return typeof n == "string" ? {
1160
- field: n,
1204
+ filters: t.filter((o) => o !== void 0).map((o) => {
1205
+ var n;
1206
+ return typeof o == "string" ? {
1207
+ field: o,
1161
1208
  value: s,
1162
1209
  operator: "contains"
1163
1210
  } : {
1164
1211
  value: s,
1165
- operator: (o = n.operator) != null ? o : "contains",
1166
- field: n.field,
1167
- ignoreCase: n.ignoreCase
1212
+ operator: (n = o.operator) != null ? n : "contains",
1213
+ field: o.field,
1214
+ ignoreCase: o.ignoreCase
1168
1215
  };
1169
1216
  })
1170
1217
  };
@@ -1175,27 +1222,27 @@ const fi = /* @__PURE__ */ Rt({
1175
1222
  }, e);
1176
1223
  },
1177
1224
  getCellsToRender(e, t) {
1178
- var o;
1225
+ var n;
1179
1226
  const s = [];
1180
- let i = null, n = 0;
1181
- if (t.forEach((r, a) => {
1182
- const c = parseFloat((r.width || "").toString()) || 10;
1183
- if (n) {
1184
- n--, i && (i.width += c);
1227
+ let i = null, o = 0;
1228
+ if (t.forEach((r, l) => {
1229
+ const h = parseFloat((r.width || "").toString()) || 10;
1230
+ if (o) {
1231
+ o--, i && (i.width += h);
1185
1232
  return;
1186
1233
  }
1187
- const f = Math.min(ns(r, e), t.length - a);
1188
- n = f - 1, i = {
1189
- width: c,
1190
- colSpan: f,
1191
- columnIndex: a
1234
+ const u = Math.min(as(r, e), t.length - l);
1235
+ o = u - 1, i = {
1236
+ width: h,
1237
+ colSpan: u,
1238
+ columnIndex: l
1192
1239
  }, s.push(i);
1193
1240
  }), this.$props.columnVirtualization) {
1194
- const r = this.scrollLeftRef || 0, a = this.tableWidth || parseFloat((((o = this.$attrs.style) == null ? void 0 : o.width) || "").toString());
1195
- return Rs({
1241
+ const r = this.scrollLeftRef || 0, l = this.tableWidth || parseFloat((((n = this.$attrs.style) == null ? void 0 : n.width) || "").toString());
1242
+ return Ss({
1196
1243
  cellModels: s,
1197
1244
  columns: t,
1198
- tableViewPortWidth: a,
1245
+ tableViewPortWidth: l,
1199
1246
  scrollLeft: r
1200
1247
  });
1201
1248
  }
@@ -1215,63 +1262,63 @@ const fi = /* @__PURE__ */ Rt({
1215
1262
  if (s)
1216
1263
  return s;
1217
1264
  }
1218
- const i = this.$props.rowHeight || this._minRowHeightRef, n = this._containerHeightRef;
1219
- return n && i ? Math.ceil(n / i * 1.5) : 0;
1265
+ const i = this.$props.rowHeight || this._minRowHeightRef, o = this._containerHeightRef;
1266
+ return o && i ? Math.ceil(o / i * 1.5) : 0;
1220
1267
  },
1221
1268
  getRowPinPosition(e) {
1222
- var o, r;
1269
+ var n, r;
1223
1270
  const {
1224
1271
  dataItemKey: t = ""
1225
- } = this.$props, s = ((o = this.gridStateContext.pinnedTopRows) == null ? void 0 : o.value) || [], i = ((r = this.gridStateContext.pinnedBottomRows) == null ? void 0 : r.value) || [];
1272
+ } = this.$props, s = ((n = this.gridStateContext.pinnedTopRows) == null ? void 0 : n.value) || [], i = ((r = this.gridStateContext.pinnedBottomRows) == null ? void 0 : r.value) || [];
1226
1273
  if (!t || !e)
1227
1274
  return "none";
1228
- const n = e[t];
1229
- return s != null && s.some((a) => a[t] === n) ? "top" : i != null && i.some((a) => a[t] === n) ? "bottom" : "none";
1275
+ const o = e[t];
1276
+ return s != null && s.some((l) => l[t] === o) ? "top" : i != null && i.some((l) => l[t] === o) ? "bottom" : "none";
1230
1277
  },
1231
1278
  handleRowPin(e, t) {
1232
- var f, h, u, p;
1279
+ var u, p, c, f;
1233
1280
  if (!this.$props.pinnable)
1234
1281
  return;
1235
1282
  const {
1236
1283
  dataItemKey: s = ""
1237
- } = this.$props, i = ((f = this.gridStateContext.pinnedTopRows) == null ? void 0 : f.value) || [], n = ((h = this.gridStateContext.pinnedBottomRows) == null ? void 0 : h.value) || [], o = t[s], r = i.filter((R) => R[s] !== o), a = n.filter((R) => R[s] !== o);
1238
- let c;
1284
+ } = this.$props, i = ((u = this.gridStateContext.pinnedTopRows) == null ? void 0 : u.value) || [], o = ((p = this.gridStateContext.pinnedBottomRows) == null ? void 0 : p.value) || [], n = t[s], r = i.filter((m) => m[s] !== n), l = o.filter((m) => m[s] !== n);
1285
+ let h;
1239
1286
  switch (e) {
1240
1287
  case "pinTop":
1241
- c = {
1288
+ h = {
1242
1289
  pinnedTopRows: [...r, t],
1243
- pinnedBottomRows: a,
1290
+ pinnedBottomRows: l,
1244
1291
  dataItem: t
1245
1292
  };
1246
1293
  break;
1247
1294
  case "pinBottom":
1248
- c = {
1295
+ h = {
1249
1296
  pinnedTopRows: r,
1250
- pinnedBottomRows: [...a, t],
1297
+ pinnedBottomRows: [...l, t],
1251
1298
  dataItem: t
1252
1299
  };
1253
1300
  break;
1254
1301
  case "unpin":
1255
- c = {
1302
+ h = {
1256
1303
  pinnedTopRows: r,
1257
- pinnedBottomRows: a,
1304
+ pinnedBottomRows: l,
1258
1305
  dataItem: t
1259
1306
  };
1260
1307
  break;
1261
1308
  default:
1262
1309
  return;
1263
1310
  }
1264
- (p = (u = this.gridStateContext).rowpinchange) == null || p.call(u, c);
1311
+ (f = (c = this.gridStateContext).rowpinchange) == null || f.call(c, h);
1265
1312
  },
1266
1313
  pinnedSelectionRelease(e, t) {
1267
1314
  const s = this.$props.dataItemKey;
1268
1315
  if (!s || !t)
1269
1316
  return;
1270
- const i = M(s), n = this.getLeafDataItems().findIndex((o) => i(o) === i(t));
1271
- n !== -1 && this.selectionRelease({
1317
+ const i = M(s), o = this.getLeafDataItems().findIndex((n) => i(n) === i(t));
1318
+ o !== -1 && this.selectionRelease({
1272
1319
  ...e,
1273
- startRowIndex: n,
1274
- endRowIndex: n
1320
+ startRowIndex: o,
1321
+ endRowIndex: o
1275
1322
  });
1276
1323
  }
1277
1324
  },
@@ -1294,113 +1341,113 @@ const fi = /* @__PURE__ */ Rt({
1294
1341
  };
1295
1342
  },
1296
1343
  setup(e) {
1297
- const t = g(null), s = g(null), i = g(null), n = g(null), o = g(null), r = g(null), a = g(null), c = g([]), f = g([]), h = g(null), u = g(null), p = g(null), R = g(null), C = g(null), I = g(null), w = g(!0), $ = g(!1), b = new Zt(), H = g(0), A = bt(gs, {}), X = typeof e.groupable == "object" && !!e.groupable.stickyHeaders, Y = typeof e.groupable == "object" && !!e.groupable.stickyFooters, z = g([]), Q = Ke(() => {
1298
- var F, N;
1299
- return !!((N = (F = A.group) == null ? void 0 : F.value) != null && N.length);
1300
- }), B = null, E = g(void 0), T = g({
1344
+ const t = R(null), s = R(null), i = R(null), o = R(null), n = R(null), r = R(null), l = R(null), h = R([]), u = R([]), p = R(null), c = R(null), f = R(null), m = R(null), x = R(null), C = R(null), w = R(!0), $ = R(!1), v = new ss(), I = R(0), z = It(bs, {}), X = typeof e.groupable == "object" && !!e.groupable.stickyHeaders, Y = typeof e.groupable == "object" && !!e.groupable.stickyFooters, P = R([]), Q = _e(() => {
1345
+ var K, W;
1346
+ return !!((W = (K = z.group) == null ? void 0 : K.value) != null && W.length);
1347
+ }), V = null, D = R(void 0), T = R({
1301
1348
  headerItems: [],
1302
1349
  footerItems: []
1303
1350
  }), {
1304
- scrollToStickyGroup: V,
1305
- update: O
1306
- } = bs({
1351
+ scrollToStickyGroup: O,
1352
+ update: N
1353
+ } = xs({
1307
1354
  enabled: X,
1308
1355
  enabledFooters: Y,
1309
- flatData: z,
1310
- containerRef: h,
1311
- stickyHeaderRef: u,
1312
- stickyFooterRef: p,
1313
- tableBodyRef: I,
1356
+ flatData: P,
1357
+ containerRef: p,
1358
+ stickyHeaderRef: c,
1359
+ stickyFooterRef: f,
1360
+ tableBodyRef: C,
1314
1361
  rowHeight: e.rowHeight,
1315
1362
  isGrouped: Q,
1316
- virtualSkipRef: H,
1317
- rowHeightServiceRef: Ke(() => b == null ? void 0 : b.rowHeightService)
1363
+ virtualSkipRef: I,
1364
+ rowHeightServiceRef: _e(() => v == null ? void 0 : v.rowHeightService)
1318
1365
  });
1319
1366
  return {
1320
- rowIndexRef: E,
1321
- observerRef: B,
1322
- dataRef: z,
1367
+ rowIndexRef: D,
1368
+ observerRef: V,
1369
+ dataRef: P,
1323
1370
  groupPanelDivRef: t,
1324
1371
  dropElementClueRef: s,
1325
1372
  dragElementClueRef: i,
1326
- headerRef: n,
1327
- footerRef: o,
1373
+ headerRef: o,
1374
+ footerRef: n,
1328
1375
  gridNavRef: r,
1329
- colGroupRef: a,
1330
- scrollContainerRef: h,
1331
- tableBodyRef: I,
1332
- gridStateContext: A,
1376
+ colGroupRef: l,
1377
+ scrollContainerRef: p,
1378
+ tableBodyRef: C,
1379
+ gridStateContext: z,
1333
1380
  shouldUpdateLeftRightRef: w,
1334
1381
  resizedRef: $,
1335
1382
  currentColumnsState: e.columnsState,
1336
- vsRef: b,
1337
- virtualSkipRef: H,
1338
- stickyHeaderItems: c,
1339
- stickyHeaderRef: u,
1340
- stickyFooterItems: f,
1341
- stickyFooterRef: p,
1342
- pinnedTopRef: R,
1343
- pinnedBottomRef: C,
1383
+ vsRef: v,
1384
+ virtualSkipRef: I,
1385
+ stickyHeaderItems: h,
1386
+ stickyHeaderRef: c,
1387
+ stickyFooterItems: u,
1388
+ stickyFooterRef: f,
1389
+ pinnedTopRef: m,
1390
+ pinnedBottomRef: x,
1344
1391
  sticky: T,
1345
- scrollToStickyGroup: V,
1346
- updateStickyGroups: O
1392
+ scrollToStickyGroup: O,
1393
+ updateStickyGroups: N
1347
1394
  };
1348
1395
  },
1349
1396
  render() {
1350
- var Re, Ce, be, Se, xe, Ie, $e, we, ye, ve, ke, He, Te, Me, Pe, ze, Ee, De;
1351
- const e = (Re = this.gridStateContext.sort) == null ? void 0 : Re.value, t = (Ce = this.gridStateContext.filter) == null ? void 0 : Ce.value, s = (be = this.gridStateContext.search) == null ? void 0 : be.value, i = (Se = this.gridStateContext.select) == null ? void 0 : Se.value, n = (xe = this.gridStateContext.skip) == null ? void 0 : xe.value, o = (Ie = this.gridStateContext.take) == null ? void 0 : Ie.value, r = ($e = this.gridStateContext.group) == null ? void 0 : $e.value, a = (we = this.gridStateContext.groupExpand) == null ? void 0 : we.value, c = (ye = this.gridStateContext.detailExpand) == null ? void 0 : ye.value, f = (r == null ? void 0 : r.length) || 0, h = typeof this.$props.groupable == "object" && !!this.$props.groupable.stickyHeaders, u = typeof this.$props.groupable == "object" && !!this.$props.groupable.stickyFooters, p = !!(r != null && r.length);
1352
- let R;
1353
- this.currentColumnsState = (ve = this.gridStateContext.columnsState) == null ? void 0 : ve.value;
1354
- const C = this.$props.autoProcessData === !0 ? {
1397
+ var Ce, be, Se, Ie, xe, $e, we, ve, ye, ke, He, Te, Me, Ee, Pe, ze, De, Ge;
1398
+ const e = (Ce = this.gridStateContext.sort) == null ? void 0 : Ce.value, t = (be = this.gridStateContext.filter) == null ? void 0 : be.value, s = (Se = this.gridStateContext.search) == null ? void 0 : Se.value, i = (Ie = this.gridStateContext.select) == null ? void 0 : Ie.value, o = (xe = this.gridStateContext.skip) == null ? void 0 : xe.value, n = ($e = this.gridStateContext.take) == null ? void 0 : $e.value, r = (we = this.gridStateContext.group) == null ? void 0 : we.value, l = (ve = this.gridStateContext.groupExpand) == null ? void 0 : ve.value, h = (ye = this.gridStateContext.detailExpand) == null ? void 0 : ye.value, u = (r == null ? void 0 : r.length) || 0, p = typeof this.$props.groupable == "object" && !!this.$props.groupable.stickyHeaders, c = typeof this.$props.groupable == "object" && !!this.$props.groupable.stickyFooters, f = !!(r != null && r.length);
1399
+ let m;
1400
+ this.currentColumnsState = (ke = this.gridStateContext.columnsState) == null ? void 0 : ke.value;
1401
+ const x = this.$props.autoProcessData === !0 ? {
1355
1402
  group: !0,
1356
1403
  sort: !0,
1357
1404
  filter: !0,
1358
1405
  search: !0,
1359
1406
  page: !0
1360
1407
  } : this.$props.autoProcessData;
1361
- let I;
1362
- const w = P.getIdPrefix(this.navigation);
1408
+ let C;
1409
+ const w = E.getIdPrefix(this.navigation);
1363
1410
  let $ = [];
1364
- Array.isArray(this.$props.dataItems) ? ($ = this.$props.dataItems, I = (ke = this.$props.total) != null ? ke : $.length) : ($ = ((He = os(this.$props.dataItems, this.$props.collapsedGroups.length ? this.computedCollapsed : [], this.$props.uniqueField)) == null ? void 0 : He.data) || [], I = (Pe = (Me = this.$props.total) != null ? Me : (Te = this.$props.dataItems) == null ? void 0 : Te.total) != null ? Pe : $.length);
1365
- const b = this.$props.groupable === !0 || j(this.$props.groupable) && this.$props.groupable.enabled !== !1;
1366
- this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable = b, this._virtualPageSize = this.calcVirtualPageSize();
1367
- const H = $.length === I, A = j(this.$props.groupable) && this.$props.groupable.footer || "none";
1368
- if (C) {
1369
- const l = C.page && !(this.isVirtualScroll && !this.$props.pageable), {
1370
- data: S,
1371
- total: v
1372
- } = ms($, {
1373
- group: C.group ? r : void 0,
1374
- sort: C.sort ? e : void 0,
1375
- filter: Ht(C.filter ? t : void 0, C.search ? s : void 0),
1376
- ...l ? {
1377
- take: this.$props.pageable ? o || 10 : o,
1378
- skip: n || 0
1411
+ Array.isArray(this.$props.dataItems) ? ($ = this.$props.dataItems, C = (He = this.$props.total) != null ? He : $.length) : ($ = ((Te = ls(this.$props.dataItems, this.$props.collapsedGroups.length ? this.computedCollapsed : [], this.$props.uniqueField)) == null ? void 0 : Te.data) || [], C = (Pe = (Ee = this.$props.total) != null ? Ee : (Me = this.$props.dataItems) == null ? void 0 : Me.total) != null ? Pe : $.length);
1412
+ const v = this.$props.groupable === !0 || q(this.$props.groupable) && this.$props.groupable.enabled !== !1;
1413
+ this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable = v, this._virtualPageSize = this.calcVirtualPageSize();
1414
+ const I = $.length === C, z = q(this.$props.groupable) && this.$props.groupable.footer || "none";
1415
+ if (x) {
1416
+ const a = x.page && !(this.isVirtualScroll && !this.$props.pageable), {
1417
+ data: b,
1418
+ total: k
1419
+ } = Cs($, {
1420
+ group: x.group ? r : void 0,
1421
+ sort: x.sort ? e : void 0,
1422
+ filter: Mt(x.filter ? t : void 0, x.search ? s : void 0),
1423
+ ...a ? {
1424
+ take: this.$props.pageable ? n || 10 : n,
1425
+ skip: o || 0
1379
1426
  } : {}
1380
1427
  });
1381
- $ = S, I = (ze = this.$props.total) != null ? ze : v;
1428
+ $ = b, C = (ze = this.$props.total) != null ? ze : k;
1382
1429
  }
1383
1430
  const {
1384
1431
  resolvedGroupsCount: X,
1385
1432
  flattedData: Y
1386
- } = this.getFlatData($, A, H ? 0 : this.$props.skip || 0, r, c, a, this.$props.dataItemKey);
1433
+ } = this.getFlatData($, z, I ? 0 : this.$props.skip || 0, r, h, l, this.$props.dataItemKey);
1387
1434
  this.dataRef = Y;
1388
- const z = this.virtualSkipRef || 0;
1389
- if (this._virtualTotal = I, this.isVirtualScroll) {
1390
- let l = n || 0;
1391
- if ((p || this.$props.pageable) && (l = z, this._virtualTotal = this.dataRef.length), H || p || this.$props.pageable)
1435
+ const P = this.virtualSkipRef || 0;
1436
+ if (this._virtualTotal = C, this.isVirtualScroll) {
1437
+ let a = o || 0;
1438
+ if ((f || this.$props.pageable) && (a = P, this._virtualTotal = this.dataRef.length), I || f || this.$props.pageable)
1392
1439
  if (this._virtualPageSize === 0) {
1393
- const S = Math.min(o || this.$props.pageSize || 20, this.dataRef.length);
1394
- R = this.dataRef.slice(l, l + S);
1440
+ const b = Math.min(n || this.$props.pageSize || 20, this.dataRef.length);
1441
+ m = this.dataRef.slice(a, a + b);
1395
1442
  } else
1396
- R = this.dataRef.slice(l, l + this._virtualPageSize);
1443
+ m = this.dataRef.slice(a, a + this._virtualPageSize);
1397
1444
  }
1398
1445
  this.initializeVirtualization();
1399
- const Q = (Ee = this.selectable) != null && Ee.drag ? "none" : void 0;
1400
- this.initColumns(this.$props.dataItems, X), this.columnResize.resizable = this.$props.resizable || !1, this.columnResize.columns = this.columnsRef, this.columnResize.columnsState = St(this.currentColumnsState || []), this.dragLogic.columns = this.columnsRef;
1401
- const B = this.$props.toolbar, E = this.$props.noRecords, T = this.columnsRef.filter((l) => l.children.length === 0), V = b && d(qt, {
1402
- ref: (l) => {
1403
- this.groupPanelDivRef = l;
1446
+ const Q = (De = this.selectable) != null && De.drag ? "none" : void 0;
1447
+ this.initColumns(this.$props.dataItems, X), this.columnResize.resizable = this.$props.resizable || !1, this.columnResize.columns = this.columnsRef, this.columnResize.columnsState = xt(this.currentColumnsState || []), this.dragLogic.columns = this.columnsRef;
1448
+ const V = this.$props.toolbar, D = this.$props.noRecords, T = this.columnsRef.filter((a) => a.children.length === 0), O = v && d(Yt, {
1449
+ ref: (a) => {
1450
+ this.groupPanelDivRef = a;
1404
1451
  },
1405
1452
  group: r || [],
1406
1453
  ariaControls: this._gridRoleElementId,
@@ -1409,35 +1456,35 @@ const fi = /* @__PURE__ */ Rt({
1409
1456
  onDragHandler: this.dragLogic.dragHandler,
1410
1457
  onReleaseHandler: this.dragLogic.releaseHandler,
1411
1458
  resolveTitle: this.resolveTitle
1412
- }, null), O = (this.dragLogic.reorderable || this.dragLogic.groupable) && q && document && document.body, F = [O && d(is, {
1413
- ref: (l) => {
1414
- this.dropElementClueRef = l;
1459
+ }, null), N = (this.dragLogic.reorderable || this.dragLogic.groupable) && B && document && document.body, K = [N && d(rs, {
1460
+ ref: (a) => {
1461
+ this.dropElementClueRef = a;
1415
1462
  }
1416
- }, null), O && d(ss, {
1417
- ref: (l) => {
1418
- this.dragElementClueRef = l;
1463
+ }, null), N && d(ns, {
1464
+ ref: (a) => {
1465
+ this.dragElementClueRef = a;
1419
1466
  }
1420
- }, null)], N = this.showLicenseWatermark ? d(xt, {
1467
+ }, null)], W = this.showLicenseWatermark ? d($t, {
1421
1468
  message: this.licenseMessage
1422
- }, null) : null, Z = this.$attrs.style, at = Z && j(Z) && Z["width"] || "";
1423
- this.tableWidth = parseFloat(at.toString());
1424
- const dt = T.findIndex((l) => typeof l.colSpan == "function") > -1;
1425
- let W;
1426
- W = this.getCellsToRender({}, T);
1427
- const D = T.map(function(l, S) {
1469
+ }, null) : null, Z = this.$attrs.style, ht = Z && q(Z) && Z["width"] || "";
1470
+ this.tableWidth = parseFloat(ht.toString());
1471
+ const ct = T.findIndex((a) => typeof a.colSpan == "function") > -1;
1472
+ let U;
1473
+ U = this.getCellsToRender({}, T);
1474
+ const G = T.map(function(a, b) {
1428
1475
  return d("col", {
1429
- key: l.id || `col-${S}`,
1430
- width: l.width !== void 0 ? Math.floor(parseFloat(l.width.toString())) : void 0
1476
+ key: a.id || `col-${b}`,
1477
+ width: a.width !== void 0 ? Math.floor(parseFloat(a.width.toString())) : void 0
1431
1478
  }, null);
1432
- }, this), ce = d(Wt, {
1479
+ }, this), pe = d(qt, {
1433
1480
  size: this.$props.size,
1434
1481
  columnResize: this.columnResize,
1435
1482
  staticHeaders: this.$props.scrollable !== "none",
1436
- ref: (l) => {
1437
- this.headerRef = l;
1483
+ ref: (a) => {
1484
+ this.headerRef = a;
1438
1485
  },
1439
1486
  onHeaderscroll: this.onHeaderScroll,
1440
- headerRow: d(Ut, {
1487
+ headerRow: d(Jt, {
1441
1488
  grid: this,
1442
1489
  sort: e,
1443
1490
  groupable: this.$props.groupable,
@@ -1446,14 +1493,14 @@ const fi = /* @__PURE__ */ Rt({
1446
1493
  onSortChange: this.sortChangeHandler,
1447
1494
  filter: t,
1448
1495
  filterable: this.$props.filterable,
1449
- filterOperators: this.$props.filterOperators || Xe,
1496
+ filterOperators: this.$props.filterOperators || Qe,
1450
1497
  onFilterChange: this.filterChangeHandler,
1451
1498
  columnMenu: this.$props.columnMenu,
1452
1499
  columnMenuIcon: this.$props.columnMenuIcon,
1453
1500
  columnMenuAnimate: this.$props.columnMenuAnimate,
1454
1501
  onSelectionchange: this.onHeaderSelectionChangeHandler,
1455
1502
  columns: this.columnsRef,
1456
- cellsToRender: W,
1503
+ cellsToRender: U,
1457
1504
  columnVirtualization: this.$props.columnVirtualization,
1458
1505
  columnsInitial: this.$props.columns,
1459
1506
  columnResize: this.columnResize,
@@ -1465,16 +1512,16 @@ const fi = /* @__PURE__ */ Rt({
1465
1512
  cells: this.$props.cells,
1466
1513
  isRtl: this.isRtl,
1467
1514
  isColCountDefined: this.getAriaColCount !== void 0,
1468
- headerSelectionValue: !!(i && this.dataRef.filter((l) => l.rowType === "data").every((l) => i && this.$props.dataItemKey && M(this.$props.dataItemKey)(l.dataItem) !== void 0 ? i[M(this.$props.dataItemKey)(l.dataItem)] : void 0)),
1469
- filterRow: this.$props.filterable && d(jt, {
1515
+ headerSelectionValue: !!(i && this.dataRef.filter((a) => a.rowType === "data").every((a) => i && this.$props.dataItemKey && M(this.$props.dataItemKey)(a.dataItem) !== void 0 ? i[M(this.$props.dataItemKey)(a.dataItem)] : void 0)),
1516
+ filterRow: this.$props.filterable && d(Xt, {
1470
1517
  grid: this,
1471
1518
  size: this.$props.size,
1472
1519
  columns: this.columnsRef,
1473
1520
  columnsMap: this._columnsMap,
1474
- cellsToRender: W,
1521
+ cellsToRender: U,
1475
1522
  columnVirtualization: this.$props.columnVirtualization,
1476
1523
  filter: t,
1477
- filterOperators: this.$props.filterOperators || Xe,
1524
+ filterOperators: this.$props.filterOperators || Qe,
1478
1525
  onFilterchange: this.filterChangeHandler,
1479
1526
  sort: this.$props.sort,
1480
1527
  cellRender: this.$props.filterCellRender,
@@ -1483,27 +1530,27 @@ const fi = /* @__PURE__ */ Rt({
1483
1530
  ariaRowIndex: this._columnsMap.length + 1
1484
1531
  }, null) || void 0
1485
1532
  }, null),
1486
- cols: D
1487
- }, null), pe = this.columnsRef.some((l) => {
1488
- var S;
1489
- return !!(l.footerCell || (S = l.cells) != null && S.footerCell);
1490
- }) || (De = this.$props.cells) != null && De.footerCell ? d(Jt, {
1533
+ cols: G
1534
+ }, null), ue = this.columnsRef.some((a) => {
1535
+ var b;
1536
+ return !!(a.footerCell || (b = a.cells) != null && b.footerCell);
1537
+ }) || (Ge = this.$props.cells) != null && Ge.footerCell ? d(Qt, {
1491
1538
  size: this.$props.size,
1492
1539
  columnResize: this.columnResize,
1493
1540
  staticHeaders: this.$props.scrollable !== "none",
1494
- ref: (l) => {
1495
- this.footerRef = l;
1541
+ ref: (a) => {
1542
+ this.footerRef = a;
1496
1543
  },
1497
- row: d(Xt, {
1544
+ row: d(Zt, {
1498
1545
  isRtl: this.isRtl,
1499
1546
  rowIndex: this.getAriaRowCount + 1,
1500
1547
  columns: this.columnsRef,
1501
1548
  cells: this.$props.cells
1502
1549
  }, null),
1503
- cols: D
1504
- }, null) : d("span", null, null), L = {
1550
+ cols: G
1551
+ }, null) : d("span", null, null), _ = {
1505
1552
  leafColumns: T,
1506
- cellsToRender: W,
1553
+ cellsToRender: U,
1507
1554
  selectedField: this.$props.selectedField,
1508
1555
  dataItemKey: this.$props.dataItemKey,
1509
1556
  select: i,
@@ -1512,7 +1559,7 @@ const fi = /* @__PURE__ */ Rt({
1512
1559
  cellRender: this.$props.cellRender,
1513
1560
  cells: this.$props.cells,
1514
1561
  getCellsToRender: this.getCellsToRender,
1515
- hasDynamicColSpan: dt,
1562
+ hasDynamicColSpan: ct,
1516
1563
  itemChange: this.itemChange,
1517
1564
  selectionChangeHandler: this.selectionChangeHandler,
1518
1565
  editHandler: this.editHandler,
@@ -1526,113 +1573,113 @@ const fi = /* @__PURE__ */ Rt({
1526
1573
  columnsRef: this.columnsRef,
1527
1574
  isRtl: this.isRtl,
1528
1575
  idPrefix: w
1529
- }, ht = function(l, S, v, oe, ne) {
1530
- return Cs(L, l, S, v, oe, ne);
1576
+ }, pt = function(a, b, k, oe, ne) {
1577
+ return Is(_, a, b, k, oe, ne);
1531
1578
  };
1532
- let ct = 0, ee = [];
1533
- const te = !this.dataRef.length, ue = (l) => l >= this.dataRef.length - ct;
1579
+ let ut = 0, ee = [];
1580
+ const te = !this.dataRef.length, fe = (a) => a >= this.dataRef.length - ut;
1534
1581
  let se = 0;
1535
1582
  if (this.dataRef.length) {
1536
- const l = this._columnsMap.length + (this.$props.filterable ? 1 : 0) + 1;
1537
- let S = this.$props.skip || 0, v = -1, oe = 0;
1583
+ const a = this._columnsMap.length + (this.$props.filterable ? 1 : 0) + 1;
1584
+ let b = this.$props.skip || 0, k = -1, oe = 0;
1538
1585
  const ne = this.computedRowSpannable.enabled ? {} : void 0;
1539
1586
  if (this.isVirtualScroll) {
1540
- if (z > 0) {
1541
- const m = this.dataRef.slice(0, z).filter((K) => K.rowType === "data").length;
1542
- v += m, S += z;
1587
+ if (P > 0) {
1588
+ const g = this.dataRef.slice(0, P).filter((A) => A.rowType === "data").length;
1589
+ k += g, b += P;
1543
1590
  }
1544
- !this.$props.pageable && H && (v += this.$props.skip || 0);
1591
+ !this.$props.pageable && I && (k += this.$props.skip || 0);
1545
1592
  }
1546
- ee = (R || this.dataRef).map(function(m, K) {
1547
- m.rowType === "data" && v++;
1548
- const re = m.dataIndex % 2 !== 0, Ge = this.$props.dataItemKey && M(this.$props.dataItemKey)(m.dataItem), le = K + S, ae = Ge || "ai" + le, de = ae + "_1", U = ht.call(this, m, ae, v, re, ne), mt = m.rowType === "data" ? this.pinnedSourceSet.has(m.dataItem) : !1, gt = T.length - (this.detailExpandable.enabled ? 1 : 0) - ((r == null ? void 0 : r.length) || 0) || 1;
1549
- return se = le + l + oe, [d(us, {
1593
+ ee = (m || this.dataRef).map(function(g, A) {
1594
+ g.rowType === "data" && k++;
1595
+ const re = g.dataIndex % 2 !== 0, Fe = this.$props.dataItemKey && M(this.$props.dataItemKey)(g.dataItem), le = A + b, ae = Fe || "ai" + le, de = ae + "_1", j = pt.call(this, g, ae, k, re, ne), Rt = g.rowType === "data" ? this.pinnedSourceSet.has(g.dataItem) : !1, Ct = T.length - (this.detailExpandable.enabled ? 1 : 0) - ((r == null ? void 0 : r.length) || 0) || 1;
1596
+ return se = le + a + oe, [d(gs, {
1550
1597
  key: ae,
1551
- item: m,
1552
- dataIndex: v,
1598
+ item: g,
1599
+ dataIndex: k,
1553
1600
  ariaRowIndex: se,
1554
1601
  absoluteRowIndex: le,
1555
1602
  isAltRow: re,
1556
- isHidden: ue(K),
1603
+ isHidden: fe(A),
1557
1604
  rowHeight: this.$props.rowHeight,
1558
- isSelected: U.isSelected,
1559
- isHighlighted: U.isHighlighted,
1560
- isInEdit: U.isInEdit,
1561
- rowType: m.rowType,
1562
- onRowclick: (G) => this.rowClick(G, m),
1563
- onRowdblclick: (G) => this.rowDoubleClick(G, m),
1605
+ isSelected: j.isSelected,
1606
+ isHighlighted: j.isHighlighted,
1607
+ isInEdit: j.isInEdit,
1608
+ rowType: g.rowType,
1609
+ onRowclick: (F) => this.rowClick(F, g),
1610
+ onRowdblclick: (F) => this.rowDoubleClick(F, g),
1564
1611
  render: this.$props.rowRender,
1565
- class: this.$props.rowClass ? this.$props.rowClass(m) : "",
1566
- isPinned: mt,
1612
+ class: this.$props.rowClass ? this.$props.rowClass(g) : "",
1613
+ isPinned: Rt,
1567
1614
  rows: this.$props.rows
1568
1615
  }, {
1569
- default: () => [U.row]
1570
- }), this.$props.detail && m.rowType === "data" && (m.expanded || m.dataItem.expanded) && d("tr", {
1616
+ default: () => [j.row]
1617
+ }), this.$props.detail && g.rowType === "data" && (g.expanded || g.dataItem.expanded) && d("tr", {
1571
1618
  key: de,
1572
1619
  class: re ? "k-table-row k-table-alt-row k-detail-row" : "k-table-row k-detail-row",
1573
1620
  style: {
1574
- visibility: ue(K) ? "hidden" : "",
1621
+ visibility: fe(A) ? "hidden" : "",
1575
1622
  height: this.$props.detailRowHeight + "px"
1576
1623
  },
1577
1624
  role: "row",
1578
1625
  "aria-rowindex": se
1579
- }, [r == null ? void 0 : r.map(function(G) {
1580
- return d(Ze, {
1626
+ }, [r == null ? void 0 : r.map(function(F) {
1627
+ return d(tt, {
1581
1628
  id: "",
1582
- dataIndex: m.dataIndex,
1583
- field: G.field,
1584
- dataItem: m.dataItem,
1585
- key: `group-${G.field}-${m.dataIndex}`,
1629
+ dataIndex: g.dataIndex,
1630
+ field: F.field,
1631
+ dataItem: g.dataItem,
1632
+ key: `group-${F.field}-${g.dataIndex}`,
1586
1633
  locked: this.$props.lockGroups,
1587
- group: m.group
1634
+ group: g.group
1588
1635
  }, null);
1589
- }, this), (this.$props.expandField || this.detailExpandable.enabled) && d(Ot, {
1590
- id: P.generateNavigatableId(`${de}-dhcell`, w)
1591
- }, null), d(Nt, {
1592
- dataItem: m.dataItem,
1593
- dataIndex: m.dataIndex,
1594
- colSpan: gt,
1636
+ }, this), (this.$props.expandField || this.detailExpandable.enabled) && d(Ut, {
1637
+ id: E.generateNavigatableId(`${de}-dhcell`, w)
1638
+ }, null), d(jt, {
1639
+ dataItem: g.dataItem,
1640
+ dataIndex: g.dataIndex,
1641
+ colSpan: Ct,
1595
1642
  ariaColIndex: 2 + (r ? r.length : 0),
1596
1643
  detail: this.$props.detail ? this.$props.detail : void 0,
1597
- id: P.generateNavigatableId(`${de}-dcell`, w)
1644
+ id: E.generateNavigatableId(`${de}-dcell`, w)
1598
1645
  }, null)])];
1599
1646
  }, this);
1600
1647
  }
1601
- const pt = this.$props.pageable && d(Tt, {
1648
+ const ft = this.$props.pageable && d(Et, {
1602
1649
  class: "k-grid-pager",
1603
1650
  onPagesizechange: this.pageChangeHandler,
1604
1651
  onPagechange: this.pageChangeHandler,
1605
1652
  size: this.$props.size,
1606
- total: I,
1607
- skip: n || 0,
1608
- pageSize: (o !== void 0 ? o : this.$props.pageSize) || 10,
1609
- messagesMap: it,
1610
- settings: Mt(this.$props.pageable || {})
1611
- }, null), fe = _e.call(this, {
1612
- h: Fe,
1653
+ total: C,
1654
+ skip: o || 0,
1655
+ pageSize: (n !== void 0 ? n : this.$props.pageSize) || 10,
1656
+ messagesMap: nt,
1657
+ settings: Pt(this.$props.pageable || {})
1658
+ }, null), me = Ae.call(this, {
1659
+ h: Le,
1613
1660
  template: this.$props.pager,
1614
- defaultRendering: pt,
1661
+ defaultRendering: ft,
1615
1662
  additionalProps: {
1616
1663
  ...this.$props,
1617
1664
  skip: this.$props.skip || 0,
1618
- messagesMap: it
1665
+ messagesMap: nt
1619
1666
  },
1620
1667
  additionalListeners: {
1621
1668
  pagesizechange: this.pageChangeHandler,
1622
1669
  pagechange: this.pageChangeHandler
1623
1670
  }
1624
- }), ut = (l) => e && e.filter((S) => S.field === l).length > 0, me = d("colgroup", {
1671
+ }), mt = (a) => e && e.filter((b) => b.field === a).length > 0, ge = d("colgroup", {
1625
1672
  ref: y(this, "colGroup")
1626
- }, [T.map(function(l, S) {
1673
+ }, [T.map(function(a, b) {
1627
1674
  return d("col", {
1628
- key: l.id || `col-${S}`,
1629
- class: ut(l.field) ? "k-sorted" : void 0,
1630
- width: l.width !== void 0 ? l.width.toString().indexOf("%") !== -1 ? l.width : Math.floor(parseFloat(l.width.toString())) + "px" : void 0
1675
+ key: a.id || `col-${b}`,
1676
+ class: mt(a.field) ? "k-sorted" : void 0,
1677
+ width: a.width !== void 0 ? a.width.toString().indexOf("%") !== -1 ? a.width : Math.floor(parseFloat(a.width.toString())) + "px" : void 0
1631
1678
  }, null);
1632
- }, this)]), ge = {
1679
+ }, this)]), Re = {
1633
1680
  height: this.getCorrectHeight,
1634
1681
  ...this.$attrs.style
1635
- }, ft = d("div", {
1682
+ }, gt = d("div", {
1636
1683
  class: "k-loading-mask"
1637
1684
  }, [d("div", {
1638
1685
  class: "k-loading-color"
@@ -1643,71 +1690,73 @@ const fi = /* @__PURE__ */ Rt({
1643
1690
  justifyContent: "center",
1644
1691
  alignItems: "center"
1645
1692
  }
1646
- }, [d(Vt, {
1693
+ }, [d(Wt, {
1647
1694
  size: "large",
1648
1695
  type: "converging-spinner"
1649
- }, null)])]), ie = this.$props.showLoader && _e.call(this, {
1650
- h: Fe,
1696
+ }, null)])]), ie = this.$props.showLoader && Ae.call(this, {
1697
+ h: Le,
1651
1698
  template: this.$props.loader,
1652
- defaultRendering: ft
1699
+ defaultRendering: gt
1653
1700
  });
1654
- return this.$props.scrollable === "none" ? d(Le, null, [d(Ne, {
1701
+ return this.$props.scrollable === "none" ? d(Ke, null, [d(We, {
1655
1702
  ref: "navRef",
1656
1703
  id: this._gridId,
1657
1704
  navigatable: this.$props.navigatable,
1658
1705
  scrollable: this.$props.scrollable,
1659
1706
  columnVirtualization: this.$props.columnVirtualization
1660
1707
  }, {
1661
- default: () => [d(je, {
1662
- ref: (l) => {
1663
- this.gridNavRef = l;
1708
+ default: () => [d(Je, {
1709
+ ref: (a) => {
1710
+ this.gridNavRef = a;
1664
1711
  },
1665
1712
  columnsRef: this.columnsRef,
1666
1713
  dataRef: this.dataRef,
1667
1714
  id: this.$props.id,
1668
- style: ge,
1715
+ dir: this.$props.dir,
1716
+ style: Re,
1669
1717
  class: this.nonscrollableWrapperClass,
1670
1718
  onMovetonextpage: this.moveToNextPage,
1671
1719
  onMovetoprevpage: this.moveToPrevPage,
1672
1720
  onColumnreorder: this.columnReorder,
1673
1721
  onKeyboardselectionchange: this.onKeyboardSelectionChangeHandler
1674
1722
  }, {
1675
- default: () => [B, V, d("div", {
1723
+ default: () => [V, O, d("div", {
1676
1724
  role: "grid",
1677
1725
  class: "k-grid-aria-root",
1678
1726
  id: this._gridRoleElementId,
1679
1727
  "aria-colcount": this.getAriaColCount,
1680
1728
  "aria-rowcount": this.getAriaRowCount
1681
- }, [d(Yt, {
1729
+ }, [d(es, {
1682
1730
  selectable: this.computedSelectable,
1683
1731
  class: "k-table",
1684
1732
  ref: y(this, "table")
1685
1733
  }, {
1686
- default: () => [me, ce, d("tbody", {
1734
+ default: () => [ge, pe, d("tbody", {
1687
1735
  class: "k-table-tbody",
1688
1736
  "data-keyboardnavbody": !0,
1689
1737
  ref: y(this, "tableBody")
1690
- }, [ee, Ct(" "), ie]), pe]
1691
- }), te && d(st, {
1692
- id: P.generateNavigatableId("no-records", w)
1738
+ }, [ee, St(" "), ie]), ue]
1739
+ }), te && d(ot, {
1740
+ id: E.generateNavigatableId("no-records", w)
1693
1741
  }, {
1694
- default: () => [E.length ? E : d(tt, null, null)]
1695
- })]), fe, ie, F]
1742
+ default: () => [D.length ? D : d(it, null, null)]
1743
+ })]), me, ie, K]
1696
1744
  })]
1697
- }), this.renderContextMenu()]) : d(Le, null, [d(Ne, {
1745
+ }), this.renderContextMenu()]) : d(Ke, null, [d(We, {
1698
1746
  ref: "navRef",
1699
1747
  id: this._gridId,
1700
1748
  navigatable: this.$props.navigatable,
1701
1749
  scrollable: this.$props.scrollable,
1702
1750
  columnVirtualization: this.$props.columnVirtualization
1703
1751
  }, {
1704
- default: () => [d(je, {
1705
- ref: (l) => {
1706
- this.gridNavRef = l;
1752
+ default: () => [d(Je, {
1753
+ ref: (a) => {
1754
+ this.gridNavRef = a;
1707
1755
  },
1708
1756
  dataRef: this.dataRef,
1709
1757
  id: this.$props.id,
1710
- style: ge,
1758
+ dir: this.$props.dir,
1759
+ style: Re,
1711
1760
  class: this.scrollableWrapperClass,
1712
1761
  onMovetonextpage: this.moveToNextPage,
1713
1762
  onMovetoprevpage: this.moveToPrevPage,
@@ -1715,17 +1764,17 @@ const fi = /* @__PURE__ */ Rt({
1715
1764
  onKeyboardselectionchange: this.onKeyboardSelectionChangeHandler,
1716
1765
  onSetcurrentontop: this.setCurrentOnTop
1717
1766
  }, {
1718
- default: () => [B, V, d("div", {
1767
+ default: () => [V, O, d("div", {
1719
1768
  role: "grid",
1720
1769
  class: "k-grid-aria-root",
1721
1770
  id: this._gridRoleElementId,
1722
1771
  "aria-colcount": this.getAriaColCount,
1723
1772
  "aria-rowcount": this.getAriaRowCount
1724
- }, [ce, this.hasPinnedTopRows && d(rt, {
1773
+ }, [pe, this.hasPinnedTopRows && d(at, {
1725
1774
  ref: y(this, "pinnedTop"),
1726
1775
  size: this.$props.size,
1727
- cols: D,
1728
- dataRowContext: L,
1776
+ cols: G,
1777
+ dataRowContext: _,
1729
1778
  position: "top",
1730
1779
  pinnedItems: this.sortedPinnedTopRows,
1731
1780
  rowHeight: this.$props.rowHeight,
@@ -1734,13 +1783,13 @@ const fi = /* @__PURE__ */ Rt({
1734
1783
  }, null), d("div", {
1735
1784
  class: "k-grid-container",
1736
1785
  role: "presentation"
1737
- }, [p && h && d(nt, {
1786
+ }, [f && p && d(lt, {
1738
1787
  ref: y(this, "stickyHeader"),
1739
1788
  size: this.$props.size,
1740
- cols: D,
1741
- dataRowContext: L,
1789
+ cols: G,
1790
+ dataRowContext: _,
1742
1791
  position: "top",
1743
- groupLevelCount: f,
1792
+ groupLevelCount: u,
1744
1793
  rowHeight: this.$props.rowHeight
1745
1794
  }, null), d("div", {
1746
1795
  role: "presentation",
@@ -1750,7 +1799,7 @@ const fi = /* @__PURE__ */ Rt({
1750
1799
  }, [d("div", {
1751
1800
  class: "k-grid-table-wrap",
1752
1801
  role: "presentation"
1753
- }, [d(Qt, {
1802
+ }, [d(ts, {
1754
1803
  selectable: this.computedSelectable,
1755
1804
  tableClassName: this.gridTableClass,
1756
1805
  tableStyle: {
@@ -1758,16 +1807,16 @@ const fi = /* @__PURE__ */ Rt({
1758
1807
  },
1759
1808
  ref: y(this, "table")
1760
1809
  }, {
1761
- default: () => [me, d("tbody", {
1810
+ default: () => [ge, d("tbody", {
1762
1811
  class: "k-table-tbody",
1763
1812
  role: "rowgroup",
1764
1813
  "data-keyboardnavbody": !0,
1765
1814
  ref: y(this, "tableBody")
1766
1815
  }, [ee])]
1767
- }), te && d(st, {
1768
- id: P.generateNavigatableId("no-records", w)
1816
+ }), te && d(ot, {
1817
+ id: E.generateNavigatableId("no-records", w)
1769
1818
  }, {
1770
- default: () => [E.length ? E : d(tt, null, null)]
1819
+ default: () => [D.length ? D : d(it, null, null)]
1771
1820
  })]), !te && d("div", {
1772
1821
  class: "k-height-container",
1773
1822
  role: "presentation"
@@ -1776,29 +1825,29 @@ const fi = /* @__PURE__ */ Rt({
1776
1825
  style: this.$props.scrollable === "virtual" ? {
1777
1826
  height: this._containerHeightRef + "px"
1778
1827
  } : {}
1779
- }, null)])]), p && u && d(nt, {
1828
+ }, null)])]), f && c && d(lt, {
1780
1829
  ref: y(this, "stickyFooter"),
1781
1830
  size: this.$props.size,
1782
- cols: D,
1783
- dataRowContext: L,
1831
+ cols: G,
1832
+ dataRowContext: _,
1784
1833
  position: "bottom",
1785
- groupLevelCount: f,
1834
+ groupLevelCount: u,
1786
1835
  rowHeight: this.$props.rowHeight
1787
- }, null)]), this.hasPinnedBottomRows && d(rt, {
1836
+ }, null)]), this.hasPinnedBottomRows && d(at, {
1788
1837
  ref: y(this, "pinnedBottom"),
1789
1838
  size: this.$props.size,
1790
- cols: D,
1791
- dataRowContext: L,
1839
+ cols: G,
1840
+ dataRowContext: _,
1792
1841
  position: "bottom",
1793
1842
  pinnedItems: this.sortedPinnedBottomRows,
1794
1843
  rowHeight: this.$props.rowHeight,
1795
1844
  rows: this.$props.rows,
1796
1845
  selectable: this.computedSelectable
1797
- }, null), pe, N]), fe, ie, F]
1846
+ }, null), ue, W]), me, ie, K]
1798
1847
  })]
1799
1848
  }), this.renderContextMenu()]);
1800
1849
  }
1801
1850
  });
1802
1851
  export {
1803
- fi as Grid
1852
+ Ri as Grid
1804
1853
  };