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

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 vt, setScrollbarWidth as wt, 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 as, getColSpan as ls, 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 at } 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 lt } from "./components/PinnedRowsTable.mjs";
47
+ import { GridPinCell as $s } from "./cells/pincell/GridPinCell.mjs";
48
+ import { contextMenuItemsMap as vs, GridContextMenu as ws, 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(), a = 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 = a.copiedItems), L.call(this, "clipboard") && this.$emit("clipboard", {
339
+ ...n,
340
+ ...a
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(ws, {
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), a = n !== void 0 && o.some((p) => p[t] === n);
365
+ return e.map((p) => {
366
+ const c = typeof p == "string" ? vs[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 ? !a : f.name === J.unpin ? r || a : !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, a, 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((w) => {
385
+ var I;
386
+ return w.field !== ((I = this.contextMenuColumn) == null ? void 0 : I.field);
348
387
  });
349
- C && ((a = this.contextMenuColumn) != null && a.field) && w.push({
388
+ C && ((a = this.contextMenuColumn) != null && a.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]), v = 0, $ = this.columnsRef.length - 1, w = {
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: v,
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(w, 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 v = M(this.$props.dataItemKey)(C);
430
+ f[v] = 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 a = [], h = fs(a, 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
574
  flattedData: a,
528
- resolvedGroupsCount: c
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
612
  colSpan: a,
566
- rowSpan: c,
567
- index: f,
568
- kFirst: h,
569
- children: u,
570
- ...p
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, a, 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 = (a = this.pinnedTopRef) == null ? void 0 : a.colGroupRef, this.columnResize.colGroupPinnedBottom = (h = this.pinnedBottomRef) == null ? void 0 : h.colGroupRef, this._header = S(this, "header"), this._footer = S(this, "footer"), this.resetTableWidth(), wt();
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 vt(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,15 +703,15 @@ 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(a, h) {
713
+ return a.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
717
  const a = s.indexOf(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,
@@ -702,6 +749,9 @@ const fi = /* @__PURE__ */ Rt({
702
749
  cellKeydownHandler(e) {
703
750
  this.$emit("cellkeydown", e);
704
751
  },
752
+ navigationActionHandler(e) {
753
+ this.$emit("navigationaction", e);
754
+ },
705
755
  editHandler(e) {
706
756
  this.$emit("edit", {
707
757
  dataItem: e
@@ -723,20 +773,20 @@ const fi = /* @__PURE__ */ Rt({
723
773
  });
724
774
  },
725
775
  selectionChangeHandler(e) {
726
- var t;
776
+ var t, s, i;
727
777
  if (this.computedSelectable.enabled) {
728
778
  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,
779
+ event: o,
780
+ dataItem: n,
781
+ dataIndex: r,
782
+ columnIndex: a
783
+ } = e, h = {
784
+ ...this.getArguments(o),
785
+ dataItem: n,
786
+ startColIndex: a,
787
+ endColIndex: a,
788
+ startRowIndex: r,
789
+ endRowIndex: r,
740
790
  dataItems: this.getLeafDataItems(),
741
791
  altKey: !1,
742
792
  ctrlKey: !1,
@@ -749,45 +799,45 @@ const fi = /* @__PURE__ */ Rt({
749
799
  selectedField: this.$props.selectedField || ""
750
800
  };
751
801
  this.gridStateContext.selectionchange({
752
- ...r,
753
- select: this.$props.dataItemKey ? We({
754
- event: r,
755
- selectedState: (t = this.$props.select) != null ? t : {},
802
+ ...h,
803
+ select: this.$props.dataItemKey ? Ue({
804
+ event: h,
805
+ selectedState: (i = (s = this.$props.select) != null ? s : (t = this.gridStateContext.select) == null ? void 0 : t.value) != null ? i : {},
756
806
  dataItemKey: this.$props.dataItemKey
757
807
  }) : {}
758
808
  });
759
809
  }
760
810
  },
761
811
  onKeyboardSelectionChangeHandler(e) {
762
- var f, h;
812
+ var u, p;
763
813
  if (!this.computedSelectable.enabled || !this.$props.dataItemKey)
764
814
  return;
765
- const t = (f = this.gridStateContext.select) == null ? void 0 : f.value, s = {
815
+ const t = (u = this.gridStateContext.select) == null ? void 0 : u.value, s = {
766
816
  dataItems: this.getLeafDataItems(),
767
817
  mode: this.computedSelectable.mode,
768
818
  cell: this.computedSelectable.cell,
769
819
  componentId: this.$props.id,
770
820
  selectedField: "",
771
821
  ...this.getArguments(e)
772
- }, i = Ft({
822
+ }, i = Kt({
773
823
  event: s,
774
824
  selectedState: t != null ? t : {},
775
825
  dataItemKey: this.$props.dataItemKey
776
826
  });
777
827
  if (i === t)
778
828
  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];
829
+ const o = e.target, n = je(o, "TD"), r = je(o, "TR"), a = _t(n), h = At(r);
830
+ if (a !== void 0 && h !== void 0) {
831
+ const c = (p = cs(this.$props.dataItems)) == null ? void 0 : p[h];
782
832
  this.gridStateContext.selectionchange({
783
833
  ...s,
784
834
  select: i,
785
- dataItem: u,
786
- startRowIndex: c,
835
+ dataItem: c,
836
+ startRowIndex: h,
787
837
  startColIndex: a,
788
- startDataItem: u,
789
- endDataItem: u,
790
- endRowIndex: c,
838
+ startDataItem: c,
839
+ endDataItem: c,
840
+ endRowIndex: h,
791
841
  endColIndex: a,
792
842
  ctrlKey: e.ctrlKey,
793
843
  altKey: e.altKey,
@@ -810,26 +860,26 @@ const fi = /* @__PURE__ */ Rt({
810
860
  }
811
861
  },
812
862
  selectionRelease(e) {
813
- var t;
863
+ var t, s, i;
814
864
  if (this.computedSelectable.enabled) {
815
- const s = this.getLeafDataItems(), i = s[e.startRowIndex], n = s[e.endRowIndex], o = {
865
+ const o = this.getLeafDataItems(), n = o[e.startRowIndex], r = o[e.endRowIndex], a = {
816
866
  event: void 0,
817
867
  target: this,
818
868
  selectedField: "",
819
869
  componentId: this.$props.id || this._gridId,
820
- dataItems: s,
870
+ dataItems: o,
821
871
  dataItem: null,
822
- startDataItem: i,
823
- endDataItem: n,
872
+ startDataItem: n,
873
+ endDataItem: r,
824
874
  ...e
825
- }, r = We({
826
- event: o,
827
- selectedState: (t = this.$props.select) != null ? t : {},
875
+ }, h = Ue({
876
+ event: a,
877
+ selectedState: (i = (s = this.$props.select) != null ? s : (t = this.gridStateContext.select) == null ? void 0 : t.value) != null ? i : {},
828
878
  // Thats kinda strange, even through the `dataItemKey` is required by the `getSelectedState`
829
879
  // it does work correctly even without it
830
880
  dataItemKey: this.$props.dataItemKey
831
881
  });
832
- this.raiseSelectionEvent(o, r);
882
+ this.raiseSelectionEvent(a, h);
833
883
  }
834
884
  },
835
885
  clearSelection(e) {
@@ -842,16 +892,16 @@ const fi = /* @__PURE__ */ Rt({
842
892
  });
843
893
  },
844
894
  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();
895
+ var o, n, r, a;
896
+ const t = (r = (n = (o = this.gridStateContext.take) == null ? void 0 : o.value) != null ? n : this.$props.pageSize) != null ? r : 0, s = (((a = this.gridStateContext.skip) == null ? void 0 : a.value) || 0) + t, i = this.getTotal();
847
897
  s < i && this.pageChangeHandler({
848
898
  skip: s,
849
899
  take: t
850
900
  }, e);
851
901
  },
852
902
  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;
903
+ var i, o, n, r;
904
+ 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
905
  s >= 0 && this.pageChangeHandler({
856
906
  skip: s,
857
907
  take: t
@@ -892,20 +942,20 @@ const fi = /* @__PURE__ */ Rt({
892
942
  handleDetailExpandAction(e, t) {
893
943
  var s;
894
944
  if (this.detailExpandable.enabled) {
895
- const i = (s = this.gridStateContext.detailExpand) == null ? void 0 : s.value, n = Gt(i != null ? i : {}, e);
945
+ const i = (s = this.gridStateContext.detailExpand) == null ? void 0 : s.value, o = Lt(i != null ? i : {}, e);
896
946
  this.gridStateContext.detailexpandchange({
897
947
  ...this.getArguments(t),
898
- detailExpand: n
948
+ detailExpand: o
899
949
  });
900
950
  }
901
951
  },
902
952
  handleGroupExpandAction(e, t) {
903
953
  var s;
904
954
  if (this.groupExpandable.enabled) {
905
- const i = (s = this.gridStateContext.groupExpand) == null ? void 0 : s.value, n = Dt(i != null ? i : [], e, this.groupExpandable);
955
+ const i = (s = this.gridStateContext.groupExpand) == null ? void 0 : s.value, o = Ft(i != null ? i : [], e, this.groupExpandable);
906
956
  this.$props.expandField || this.gridStateContext.groupexpandchange({
907
957
  ...this.getArguments(t),
908
- groupExpand: n
958
+ groupExpand: o
909
959
  });
910
960
  }
911
961
  this.scrollToStickyGroup(e.group);
@@ -916,41 +966,41 @@ const fi = /* @__PURE__ */ Rt({
916
966
  ...this.getArguments(i),
917
967
  ...t
918
968
  });
919
- else if (_.call(this, e))
969
+ else if (L.call(this, e))
920
970
  this.$emit(e, {
921
971
  ...this.getArguments(i),
922
972
  ...t
923
973
  });
924
- else if (_.call(this, "datastatechange")) {
925
- const n = {
974
+ else if (L.call(this, "datastatechange")) {
975
+ const o = {
926
976
  ...this.getDataState(),
927
977
  ...s
928
978
  };
929
979
  this.gridStateContext.datastatechange({
930
980
  ...this.getArguments(i),
931
- data: n,
932
- dataState: n
981
+ data: o,
982
+ dataState: o
933
983
  });
934
984
  }
935
985
  },
936
986
  columnReorder(e, t, s) {
937
- const i = this.columnsRef[e], n = Ye(this.currentColumnsState), o = i.depth, r = (h) => {
987
+ const i = this.columnsRef[e], o = Ze(this.currentColumnsState), n = i.depth, r = (p) => {
938
988
  do
939
- h++;
940
- while (h < this.columnsRef.length && this.columnsRef[h].depth > o);
941
- return h;
989
+ p++;
990
+ while (p < this.columnsRef.length && this.columnsRef[p].depth > n);
991
+ return p;
942
992
  }, 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);
993
+ this.columnsRef.splice(e < t ? r(t - a.length) : t, 0, ...a), this.columnsRef.filter((p) => p.declarationIndex >= 0).forEach((p, c) => {
994
+ p.orderIndex = c;
995
+ const f = o.find((m) => m.id === p.id);
996
+ f && (f.orderIndex = c);
947
997
  });
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();
998
+ const h = this.columnsRef[e].locked && this.columnsRef[t].locked;
999
+ Dt(this._columnsMap, this.columnsRef, h || this.shouldUpdateLeftRightRef), Gt(this._columnsMap, this.columnsRef, h || this.shouldUpdateLeftRightRef), this.resizedRef && (this.shouldUpdateLeftRightRef = !1, this.resizedRef = !1);
1000
+ const u = this.getColumns();
951
1001
  this.$emit("columnreorder", {
952
1002
  target: this,
953
- columns: f,
1003
+ columns: u,
954
1004
  event: s,
955
1005
  prev: e,
956
1006
  next: t
@@ -959,19 +1009,19 @@ const fi = /* @__PURE__ */ Rt({
959
1009
  });
960
1010
  },
961
1011
  groupReorder(e, t, s) {
962
- var n;
963
- const i = (n = this.gridStateContext.group) == null ? void 0 : n.value;
1012
+ var o;
1013
+ const i = (o = this.gridStateContext.group) == null ? void 0 : o.value;
964
1014
  i !== void 0 && (i.splice(t, 0, ...i.splice(e, 1)), this.groupChangeHandler(i, s));
965
1015
  },
966
1016
  columnToGroup(e, t, s) {
967
- var o;
1017
+ var n;
968
1018
  const i = this.columnsRef[e].field;
969
1019
  if (!i)
970
1020
  return;
971
- const n = (((o = this.gridStateContext.group) == null ? void 0 : o.value) || []).slice();
972
- n.splice(t, 0, {
1021
+ const o = (((n = this.gridStateContext.group) == null ? void 0 : n.value) || []).slice();
1022
+ o.splice(t, 0, {
973
1023
  field: i
974
- }), this.groupChangeHandler(n, s);
1024
+ }), this.groupChangeHandler(o, s);
975
1025
  },
976
1026
  resetTableWidth() {
977
1027
  var i;
@@ -979,21 +1029,21 @@ const fi = /* @__PURE__ */ Rt({
979
1029
  if (!this.columnResize.colGroupMain)
980
1030
  return;
981
1031
  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)
1032
+ for (let o = 0; o < t.length; o++) {
1033
+ const n = t[o].width;
1034
+ if (!n)
985
1035
  return;
986
- e += parseFloat(o.toString());
1036
+ e += parseFloat(n.toString());
987
1037
  }
988
1038
  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");
1039
+ const s = Be(this, "table");
990
1040
  s && e && (s.style.width = e + "px"), this.stickyFooterRef && this.setStickyFooterOffset();
991
1041
  },
992
1042
  setStickyFooterOffset() {
993
1043
  const e = this.containerElementRef, t = e ? e.scrollWidth > e.clientWidth : !1;
994
1044
  this.stickyFooterRef && (this.stickyFooterRef.$el.style.marginBlockEnd = t ? "var(--kendo-scrollbar-width, 0px)" : "");
995
1045
  },
996
- onResize(e, t, s, i, n, o, r) {
1046
+ onResize(e, t, s, i, o, n, r) {
997
1047
  this.resetTableWidth(), this.shouldUpdateLeftRightRef = !0, this.resizedRef = !0, this.$emit("columnresize", {
998
1048
  columns: this.getColumns(),
999
1049
  index: e,
@@ -1001,35 +1051,35 @@ const fi = /* @__PURE__ */ Rt({
1001
1051
  event: i,
1002
1052
  newWidth: t,
1003
1053
  oldWidth: s,
1004
- end: n,
1054
+ end: o,
1005
1055
  target: this
1006
- }), n && this.gridStateContext.columnsstatechange({
1007
- columnsState: o
1056
+ }), o && this.gridStateContext.columnsstatechange({
1057
+ columnsState: n
1008
1058
  });
1009
1059
  },
1010
1060
  initColumnsState(e, t) {
1011
1061
  const s = (i) => {
1012
- var o;
1013
- const n = t.find((r) => r.id === i.id);
1014
- if (n) {
1062
+ var n;
1063
+ const o = t.find((r) => r.id === i.id);
1064
+ if (o) {
1015
1065
  const r = {
1016
- ...n
1066
+ ...o
1017
1067
  };
1018
- return r.children = (o = i.children) == null ? void 0 : o.map(s), r;
1068
+ return r.children = (n = i.children) == null ? void 0 : n.map(s), r;
1019
1069
  }
1020
1070
  return i;
1021
1071
  };
1022
1072
  this.currentColumnsState = e.filter((i) => i.parentIndex === -1).map(s);
1023
1073
  },
1024
1074
  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;
1075
+ e.filter((n) => n.columnType === "checkbox").forEach((n) => {
1076
+ n.width = n.width || "50px", n.defaultCell = H(Xe), n.defaultHeaderCell = H(st), n._type = "edit", n.columnMenu = !1;
1077
+ }), this.$props.selectedField && this.columnsRef.filter((n) => n.field === this.$props.selectedField).forEach((n) => {
1078
+ n.width = n.width || "50px", n.defaultCell = H(Xe), n.defaultHeaderCell = H(st), n.columnMenu = !1;
1079
+ }), this.$props.pinnable && e.filter((n) => n.columnType === "pin").forEach((n) => {
1080
+ n.width = n.width || "48px", n.defaultCell = H($s), n.defaultHeaderCell = H(zt), n.sortable = !1, n.filterable = !1, n.editable = !1;
1031
1081
  });
1032
- const s = Ye(this.currentColumnsState);
1082
+ const s = Ze(this.currentColumnsState);
1033
1083
  this.initColumnsState(e, s);
1034
1084
  const i = {
1035
1085
  id: "",
@@ -1051,54 +1101,54 @@ const fi = /* @__PURE__ */ Rt({
1051
1101
  ariaColumnIndex: 0,
1052
1102
  isAccessible: !0
1053
1103
  };
1054
- let n = 0;
1104
+ let o = 0;
1055
1105
  if (this.detailExpandable.enabled && this.$props.detail && !this.$props.expandField) {
1056
- const o = {
1106
+ const n = {
1057
1107
  ...i,
1058
1108
  _type: "expand",
1059
- id: P.generateNavigatableId(`${n++}`, "expand", "column"),
1060
- defaultCell: k(Je),
1109
+ id: E.generateNavigatableId(`${o++}`, "expand", "column"),
1110
+ defaultCell: H(Ye),
1061
1111
  field: this.detailExpandable.column,
1062
1112
  headerClassName: this.hierarchClass
1063
1113
  };
1064
- e.unshift(o), this.currentColumnsState.unshift(s.find((r) => r.id === o.id) || o);
1114
+ e.unshift(n), this.currentColumnsState.unshift(s.find((r) => r.id === n.id) || n);
1065
1115
  }
1066
- this.$props.expandField && _.call(this, "expandchange") && this.$props.detail && (e.unshift({
1116
+ this.$props.expandField && L.call(this, "expandchange") && this.$props.detail && (e.unshift({
1067
1117
  ...i,
1068
- defaultCell: k(Je),
1118
+ defaultCell: H(Ye),
1069
1119
  field: this.$props.expandField,
1070
1120
  headerClassName: "k-hierarchy-cell k-header",
1071
- id: P.generateNavigatableId(`${e.length}`, this.idPrefix, "column"),
1121
+ id: E.generateNavigatableId(`${e.length}`, this.idPrefix, "column"),
1072
1122
  ...this.expandColumn
1073
- }), n++);
1074
- for (let o = 0; o < t; o++) {
1123
+ }), o++);
1124
+ for (let n = 0; n < t; n++) {
1075
1125
  const r = {
1076
1126
  ...i,
1077
1127
  isAccessible: !1,
1078
- defaultCell: k(Ze),
1079
- id: P.generateNavigatableId(`${n++}`, "group", "column"),
1128
+ defaultCell: H(tt),
1129
+ id: E.generateNavigatableId(`${o++}`, "group", "column"),
1080
1130
  field: "value",
1081
1131
  locked: this.$props.lockGroups,
1082
1132
  columnMenu: !1
1083
1133
  };
1084
1134
  e.unshift(r), this.currentColumnsState.unshift(s.find((a) => a.id === r.id) || r);
1085
1135
  }
1086
- e.slice(n).forEach((o) => {
1087
- o.parentIndex >= 0 && (o.parentIndex += n), o.rowSpannable = o.rowSpannable !== void 0 ? Qe(o.rowSpannable) : this.computedRowSpannable;
1136
+ e.slice(o).forEach((n) => {
1137
+ n.parentIndex >= 0 && (n.parentIndex += o), n.rowSpannable = n.rowSpannable !== void 0 ? et(n.rowSpannable) : this.computedRowSpannable;
1088
1138
  });
1089
1139
  },
1090
1140
  initColumns(e, t) {
1091
- var o;
1141
+ var n;
1092
1142
  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, {
1143
+ const s = (n = this.gridStateContext.group) == null ? void 0 : n.value;
1144
+ this.columnsRef.filter((r) => !r.hidden).length === 0 && (this.columnsRef = ds(e, s, {
1095
1145
  column: this.$props.expandField ? this.$props.expandField : this.groupExpandable.column
1096
1146
  }, {
1097
1147
  prevId: 0,
1098
1148
  idPrefix: this.idPrefix
1099
1149
  })), 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);
1150
+ const [i, o] = this.filterColumns(this.columnsRef);
1151
+ this.columnsRef = i, this.hiddenColumnsRef = o, this._columnsMap = hs(this.columnsRef, !0);
1102
1152
  },
1103
1153
  resolveTitle(e) {
1104
1154
  const t = this.findColumnByField(e), s = t && (t.title || t.field);
@@ -1123,14 +1173,14 @@ const fi = /* @__PURE__ */ Rt({
1123
1173
  return null;
1124
1174
  },
1125
1175
  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;
1176
+ var n, r, a, h, u;
1177
+ const e = (n = this.gridStateContext.sort) == null ? void 0 : n.value, t = (r = this.gridStateContext.filter) == null ? void 0 : r.value, s = (a = this.gridStateContext.skip) == null ? void 0 : a.value, i = (h = this.gridStateContext.take) == null ? void 0 : h.value, o = (u = this.gridStateContext.group) == null ? void 0 : u.value;
1128
1178
  return {
1129
1179
  filter: t,
1130
1180
  sort: e,
1131
1181
  skip: s,
1132
1182
  take: i !== void 0 ? i : this.$props.pageSize,
1133
- group: n
1183
+ group: o
1134
1184
  };
1135
1185
  },
1136
1186
  getArguments(e) {
@@ -1152,19 +1202,19 @@ const fi = /* @__PURE__ */ Rt({
1152
1202
  }), t;
1153
1203
  },
1154
1204
  searchChange(e) {
1155
- const t = this.$props.searchFields || this.columnsRef.map((n) => n.field) || [], s = e.event.target.value, i = {
1205
+ const t = this.$props.searchFields || this.columnsRef.map((o) => o.field) || [], s = e.event.target.value, i = {
1156
1206
  logic: "or",
1157
- filters: t.filter((n) => n !== void 0).map((n) => {
1158
- var o;
1159
- return typeof n == "string" ? {
1160
- field: n,
1207
+ filters: t.filter((o) => o !== void 0).map((o) => {
1208
+ var n;
1209
+ return typeof o == "string" ? {
1210
+ field: o,
1161
1211
  value: s,
1162
1212
  operator: "contains"
1163
1213
  } : {
1164
1214
  value: s,
1165
- operator: (o = n.operator) != null ? o : "contains",
1166
- field: n.field,
1167
- ignoreCase: n.ignoreCase
1215
+ operator: (n = o.operator) != null ? n : "contains",
1216
+ field: o.field,
1217
+ ignoreCase: o.ignoreCase
1168
1218
  };
1169
1219
  })
1170
1220
  };
@@ -1175,24 +1225,24 @@ const fi = /* @__PURE__ */ Rt({
1175
1225
  }, e);
1176
1226
  },
1177
1227
  getCellsToRender(e, t) {
1178
- var o;
1228
+ var n;
1179
1229
  const s = [];
1180
- let i = null, n = 0;
1230
+ let i = null, o = 0;
1181
1231
  if (t.forEach((r, a) => {
1182
- const c = parseFloat((r.width || "").toString()) || 10;
1183
- if (n) {
1184
- n--, i && (i.width += c);
1232
+ const h = parseFloat((r.width || "").toString()) || 10;
1233
+ if (o) {
1234
+ o--, i && (i.width += h);
1185
1235
  return;
1186
1236
  }
1187
- const f = Math.min(ns(r, e), t.length - a);
1188
- n = f - 1, i = {
1189
- width: c,
1190
- colSpan: f,
1237
+ const u = Math.min(ls(r, e), t.length - a);
1238
+ o = u - 1, i = {
1239
+ width: h,
1240
+ colSpan: u,
1191
1241
  columnIndex: a
1192
1242
  }, s.push(i);
1193
1243
  }), 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({
1244
+ const r = this.scrollLeftRef || 0, a = this.tableWidth || parseFloat((((n = this.$attrs.style) == null ? void 0 : n.width) || "").toString());
1245
+ return Ss({
1196
1246
  cellModels: s,
1197
1247
  columns: t,
1198
1248
  tableViewPortWidth: a,
@@ -1215,44 +1265,44 @@ const fi = /* @__PURE__ */ Rt({
1215
1265
  if (s)
1216
1266
  return s;
1217
1267
  }
1218
- const i = this.$props.rowHeight || this._minRowHeightRef, n = this._containerHeightRef;
1219
- return n && i ? Math.ceil(n / i * 1.5) : 0;
1268
+ const i = this.$props.rowHeight || this._minRowHeightRef, o = this._containerHeightRef;
1269
+ return o && i ? Math.ceil(o / i * 1.5) : 0;
1220
1270
  },
1221
1271
  getRowPinPosition(e) {
1222
- var o, r;
1272
+ var n, r;
1223
1273
  const {
1224
1274
  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) || [];
1275
+ } = this.$props, s = ((n = this.gridStateContext.pinnedTopRows) == null ? void 0 : n.value) || [], i = ((r = this.gridStateContext.pinnedBottomRows) == null ? void 0 : r.value) || [];
1226
1276
  if (!t || !e)
1227
1277
  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";
1278
+ const o = e[t];
1279
+ return s != null && s.some((a) => a[t] === o) ? "top" : i != null && i.some((a) => a[t] === o) ? "bottom" : "none";
1230
1280
  },
1231
1281
  handleRowPin(e, t) {
1232
- var f, h, u, p;
1282
+ var u, p, c, f;
1233
1283
  if (!this.$props.pinnable)
1234
1284
  return;
1235
1285
  const {
1236
1286
  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;
1287
+ } = 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), a = o.filter((m) => m[s] !== n);
1288
+ let h;
1239
1289
  switch (e) {
1240
1290
  case "pinTop":
1241
- c = {
1291
+ h = {
1242
1292
  pinnedTopRows: [...r, t],
1243
1293
  pinnedBottomRows: a,
1244
1294
  dataItem: t
1245
1295
  };
1246
1296
  break;
1247
1297
  case "pinBottom":
1248
- c = {
1298
+ h = {
1249
1299
  pinnedTopRows: r,
1250
1300
  pinnedBottomRows: [...a, t],
1251
1301
  dataItem: t
1252
1302
  };
1253
1303
  break;
1254
1304
  case "unpin":
1255
- c = {
1305
+ h = {
1256
1306
  pinnedTopRows: r,
1257
1307
  pinnedBottomRows: a,
1258
1308
  dataItem: t
@@ -1261,17 +1311,17 @@ const fi = /* @__PURE__ */ Rt({
1261
1311
  default:
1262
1312
  return;
1263
1313
  }
1264
- (p = (u = this.gridStateContext).rowpinchange) == null || p.call(u, c);
1314
+ (f = (c = this.gridStateContext).rowpinchange) == null || f.call(c, h);
1265
1315
  },
1266
1316
  pinnedSelectionRelease(e, t) {
1267
1317
  const s = this.$props.dataItemKey;
1268
1318
  if (!s || !t)
1269
1319
  return;
1270
- const i = M(s), n = this.getLeafDataItems().findIndex((o) => i(o) === i(t));
1271
- n !== -1 && this.selectionRelease({
1320
+ const i = M(s), o = this.getLeafDataItems().findIndex((n) => i(n) === i(t));
1321
+ o !== -1 && this.selectionRelease({
1272
1322
  ...e,
1273
- startRowIndex: n,
1274
- endRowIndex: n
1323
+ startRowIndex: o,
1324
+ endRowIndex: o
1275
1325
  });
1276
1326
  }
1277
1327
  },
@@ -1294,111 +1344,111 @@ const fi = /* @__PURE__ */ Rt({
1294
1344
  };
1295
1345
  },
1296
1346
  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({
1347
+ const t = R(null), s = R(null), i = R(null), o = R(null), n = R(null), r = R(null), a = R(null), h = R([]), u = R([]), p = R(null), c = R(null), f = R(null), m = R(null), x = R(null), C = R(null), v = R(!0), $ = R(!1), w = 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(() => {
1348
+ var K, W;
1349
+ return !!((W = (K = z.group) == null ? void 0 : K.value) != null && W.length);
1350
+ }), V = null, D = R(void 0), T = R({
1301
1351
  headerItems: [],
1302
1352
  footerItems: []
1303
1353
  }), {
1304
- scrollToStickyGroup: V,
1305
- update: O
1306
- } = bs({
1354
+ scrollToStickyGroup: O,
1355
+ update: N
1356
+ } = xs({
1307
1357
  enabled: X,
1308
1358
  enabledFooters: Y,
1309
- flatData: z,
1310
- containerRef: h,
1311
- stickyHeaderRef: u,
1312
- stickyFooterRef: p,
1313
- tableBodyRef: I,
1359
+ flatData: P,
1360
+ containerRef: p,
1361
+ stickyHeaderRef: c,
1362
+ stickyFooterRef: f,
1363
+ tableBodyRef: C,
1314
1364
  rowHeight: e.rowHeight,
1315
1365
  isGrouped: Q,
1316
- virtualSkipRef: H,
1317
- rowHeightServiceRef: Ke(() => b == null ? void 0 : b.rowHeightService)
1366
+ virtualSkipRef: I,
1367
+ rowHeightServiceRef: _e(() => w == null ? void 0 : w.rowHeightService)
1318
1368
  });
1319
1369
  return {
1320
- rowIndexRef: E,
1321
- observerRef: B,
1322
- dataRef: z,
1370
+ rowIndexRef: D,
1371
+ observerRef: V,
1372
+ dataRef: P,
1323
1373
  groupPanelDivRef: t,
1324
1374
  dropElementClueRef: s,
1325
1375
  dragElementClueRef: i,
1326
- headerRef: n,
1327
- footerRef: o,
1376
+ headerRef: o,
1377
+ footerRef: n,
1328
1378
  gridNavRef: r,
1329
1379
  colGroupRef: a,
1330
- scrollContainerRef: h,
1331
- tableBodyRef: I,
1332
- gridStateContext: A,
1333
- shouldUpdateLeftRightRef: w,
1380
+ scrollContainerRef: p,
1381
+ tableBodyRef: C,
1382
+ gridStateContext: z,
1383
+ shouldUpdateLeftRightRef: v,
1334
1384
  resizedRef: $,
1335
1385
  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,
1386
+ vsRef: w,
1387
+ virtualSkipRef: I,
1388
+ stickyHeaderItems: h,
1389
+ stickyHeaderRef: c,
1390
+ stickyFooterItems: u,
1391
+ stickyFooterRef: f,
1392
+ pinnedTopRef: m,
1393
+ pinnedBottomRef: x,
1344
1394
  sticky: T,
1345
- scrollToStickyGroup: V,
1346
- updateStickyGroups: O
1395
+ scrollToStickyGroup: O,
1396
+ updateStickyGroups: N
1347
1397
  };
1348
1398
  },
1349
1399
  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 ? {
1400
+ var Ce, be, Se, Ie, xe, $e, ve, we, ye, ke, He, Te, Me, Ee, Pe, ze, De, Ge;
1401
+ 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 = (ve = this.gridStateContext.group) == null ? void 0 : ve.value, a = (we = this.gridStateContext.groupExpand) == null ? void 0 : we.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);
1402
+ let m;
1403
+ this.currentColumnsState = (ke = this.gridStateContext.columnsState) == null ? void 0 : ke.value;
1404
+ const x = this.$props.autoProcessData === !0 ? {
1355
1405
  group: !0,
1356
1406
  sort: !0,
1357
1407
  filter: !0,
1358
1408
  search: !0,
1359
1409
  page: !0
1360
1410
  } : this.$props.autoProcessData;
1361
- let I;
1362
- const w = P.getIdPrefix(this.navigation);
1411
+ let C;
1412
+ const v = E.getIdPrefix(this.navigation);
1363
1413
  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),
1414
+ Array.isArray(this.$props.dataItems) ? ($ = this.$props.dataItems, C = (He = this.$props.total) != null ? He : $.length) : ($ = ((Te = as(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);
1415
+ const w = this.$props.groupable === !0 || q(this.$props.groupable) && this.$props.groupable.enabled !== !1;
1416
+ this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable = w, this._virtualPageSize = this.calcVirtualPageSize();
1417
+ const I = $.length === C, z = q(this.$props.groupable) && this.$props.groupable.footer || "none";
1418
+ if (x) {
1419
+ const l = x.page && !(this.isVirtualScroll && !this.$props.pageable), {
1420
+ data: b,
1421
+ total: k
1422
+ } = Cs($, {
1423
+ group: x.group ? r : void 0,
1424
+ sort: x.sort ? e : void 0,
1425
+ filter: Mt(x.filter ? t : void 0, x.search ? s : void 0),
1376
1426
  ...l ? {
1377
- take: this.$props.pageable ? o || 10 : o,
1378
- skip: n || 0
1427
+ take: this.$props.pageable ? n || 10 : n,
1428
+ skip: o || 0
1379
1429
  } : {}
1380
1430
  });
1381
- $ = S, I = (ze = this.$props.total) != null ? ze : v;
1431
+ $ = b, C = (ze = this.$props.total) != null ? ze : k;
1382
1432
  }
1383
1433
  const {
1384
1434
  resolvedGroupsCount: X,
1385
1435
  flattedData: Y
1386
- } = this.getFlatData($, A, H ? 0 : this.$props.skip || 0, r, c, a, this.$props.dataItemKey);
1436
+ } = this.getFlatData($, z, I ? 0 : this.$props.skip || 0, r, h, a, this.$props.dataItemKey);
1387
1437
  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)
1438
+ const P = this.virtualSkipRef || 0;
1439
+ if (this._virtualTotal = C, this.isVirtualScroll) {
1440
+ let l = o || 0;
1441
+ if ((f || this.$props.pageable) && (l = P, this._virtualTotal = this.dataRef.length), I || f || this.$props.pageable)
1392
1442
  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);
1443
+ const b = Math.min(n || this.$props.pageSize || 20, this.dataRef.length);
1444
+ m = this.dataRef.slice(l, l + b);
1395
1445
  } else
1396
- R = this.dataRef.slice(l, l + this._virtualPageSize);
1446
+ m = this.dataRef.slice(l, l + this._virtualPageSize);
1397
1447
  }
1398
1448
  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, {
1449
+ const Q = (De = this.selectable) != null && De.drag ? "none" : void 0;
1450
+ 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;
1451
+ const V = this.$props.toolbar, D = this.$props.noRecords, T = this.columnsRef.filter((l) => l.children.length === 0), O = w && d(Yt, {
1402
1452
  ref: (l) => {
1403
1453
  this.groupPanelDivRef = l;
1404
1454
  },
@@ -1409,27 +1459,27 @@ const fi = /* @__PURE__ */ Rt({
1409
1459
  onDragHandler: this.dragLogic.dragHandler,
1410
1460
  onReleaseHandler: this.dragLogic.releaseHandler,
1411
1461
  resolveTitle: this.resolveTitle
1412
- }, null), O = (this.dragLogic.reorderable || this.dragLogic.groupable) && q && document && document.body, F = [O && d(is, {
1462
+ }, null), N = (this.dragLogic.reorderable || this.dragLogic.groupable) && B && document && document.body, K = [N && d(rs, {
1413
1463
  ref: (l) => {
1414
1464
  this.dropElementClueRef = l;
1415
1465
  }
1416
- }, null), O && d(ss, {
1466
+ }, null), N && d(ns, {
1417
1467
  ref: (l) => {
1418
1468
  this.dragElementClueRef = l;
1419
1469
  }
1420
- }, null)], N = this.showLicenseWatermark ? d(xt, {
1470
+ }, null)], W = this.showLicenseWatermark ? d($t, {
1421
1471
  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) {
1472
+ }, null) : null, Z = this.$attrs.style, ht = Z && q(Z) && Z["width"] || "";
1473
+ this.tableWidth = parseFloat(ht.toString());
1474
+ const ct = T.findIndex((l) => typeof l.colSpan == "function") > -1;
1475
+ let U;
1476
+ U = this.getCellsToRender({}, T);
1477
+ const G = T.map(function(l, b) {
1428
1478
  return d("col", {
1429
- key: l.id || `col-${S}`,
1479
+ key: l.id || `col-${b}`,
1430
1480
  width: l.width !== void 0 ? Math.floor(parseFloat(l.width.toString())) : void 0
1431
1481
  }, null);
1432
- }, this), ce = d(Wt, {
1482
+ }, this), pe = d(qt, {
1433
1483
  size: this.$props.size,
1434
1484
  columnResize: this.columnResize,
1435
1485
  staticHeaders: this.$props.scrollable !== "none",
@@ -1437,7 +1487,7 @@ const fi = /* @__PURE__ */ Rt({
1437
1487
  this.headerRef = l;
1438
1488
  },
1439
1489
  onHeaderscroll: this.onHeaderScroll,
1440
- headerRow: d(Ut, {
1490
+ headerRow: d(Jt, {
1441
1491
  grid: this,
1442
1492
  sort: e,
1443
1493
  groupable: this.$props.groupable,
@@ -1446,14 +1496,14 @@ const fi = /* @__PURE__ */ Rt({
1446
1496
  onSortChange: this.sortChangeHandler,
1447
1497
  filter: t,
1448
1498
  filterable: this.$props.filterable,
1449
- filterOperators: this.$props.filterOperators || Xe,
1499
+ filterOperators: this.$props.filterOperators || Qe,
1450
1500
  onFilterChange: this.filterChangeHandler,
1451
1501
  columnMenu: this.$props.columnMenu,
1452
1502
  columnMenuIcon: this.$props.columnMenuIcon,
1453
1503
  columnMenuAnimate: this.$props.columnMenuAnimate,
1454
1504
  onSelectionchange: this.onHeaderSelectionChangeHandler,
1455
1505
  columns: this.columnsRef,
1456
- cellsToRender: W,
1506
+ cellsToRender: U,
1457
1507
  columnVirtualization: this.$props.columnVirtualization,
1458
1508
  columnsInitial: this.$props.columns,
1459
1509
  columnResize: this.columnResize,
@@ -1466,15 +1516,15 @@ const fi = /* @__PURE__ */ Rt({
1466
1516
  isRtl: this.isRtl,
1467
1517
  isColCountDefined: this.getAriaColCount !== void 0,
1468
1518
  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, {
1519
+ filterRow: this.$props.filterable && d(Xt, {
1470
1520
  grid: this,
1471
1521
  size: this.$props.size,
1472
1522
  columns: this.columnsRef,
1473
1523
  columnsMap: this._columnsMap,
1474
- cellsToRender: W,
1524
+ cellsToRender: U,
1475
1525
  columnVirtualization: this.$props.columnVirtualization,
1476
1526
  filter: t,
1477
- filterOperators: this.$props.filterOperators || Xe,
1527
+ filterOperators: this.$props.filterOperators || Qe,
1478
1528
  onFilterchange: this.filterChangeHandler,
1479
1529
  sort: this.$props.sort,
1480
1530
  cellRender: this.$props.filterCellRender,
@@ -1483,27 +1533,27 @@ const fi = /* @__PURE__ */ Rt({
1483
1533
  ariaRowIndex: this._columnsMap.length + 1
1484
1534
  }, null) || void 0
1485
1535
  }, 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, {
1536
+ cols: G
1537
+ }, null), ue = this.columnsRef.some((l) => {
1538
+ var b;
1539
+ return !!(l.footerCell || (b = l.cells) != null && b.footerCell);
1540
+ }) || (Ge = this.$props.cells) != null && Ge.footerCell ? d(Qt, {
1491
1541
  size: this.$props.size,
1492
1542
  columnResize: this.columnResize,
1493
1543
  staticHeaders: this.$props.scrollable !== "none",
1494
1544
  ref: (l) => {
1495
1545
  this.footerRef = l;
1496
1546
  },
1497
- row: d(Xt, {
1547
+ row: d(Zt, {
1498
1548
  isRtl: this.isRtl,
1499
1549
  rowIndex: this.getAriaRowCount + 1,
1500
1550
  columns: this.columnsRef,
1501
1551
  cells: this.$props.cells
1502
1552
  }, null),
1503
- cols: D
1504
- }, null) : d("span", null, null), L = {
1553
+ cols: G
1554
+ }, null) : d("span", null, null), _ = {
1505
1555
  leafColumns: T,
1506
- cellsToRender: W,
1556
+ cellsToRender: U,
1507
1557
  selectedField: this.$props.selectedField,
1508
1558
  dataItemKey: this.$props.dataItemKey,
1509
1559
  select: i,
@@ -1512,7 +1562,7 @@ const fi = /* @__PURE__ */ Rt({
1512
1562
  cellRender: this.$props.cellRender,
1513
1563
  cells: this.$props.cells,
1514
1564
  getCellsToRender: this.getCellsToRender,
1515
- hasDynamicColSpan: dt,
1565
+ hasDynamicColSpan: ct,
1516
1566
  itemChange: this.itemChange,
1517
1567
  selectionChangeHandler: this.selectionChangeHandler,
1518
1568
  editHandler: this.editHandler,
@@ -1525,114 +1575,114 @@ const fi = /* @__PURE__ */ Rt({
1525
1575
  uniqueField: this.$props.uniqueField,
1526
1576
  columnsRef: this.columnsRef,
1527
1577
  isRtl: this.isRtl,
1528
- idPrefix: w
1529
- }, ht = function(l, S, v, oe, ne) {
1530
- return Cs(L, l, S, v, oe, ne);
1578
+ idPrefix: v
1579
+ }, pt = function(l, b, k, oe, ne) {
1580
+ return Is(_, l, b, k, oe, ne);
1531
1581
  };
1532
- let ct = 0, ee = [];
1533
- const te = !this.dataRef.length, ue = (l) => l >= this.dataRef.length - ct;
1582
+ let ut = 0, ee = [];
1583
+ const te = !this.dataRef.length, fe = (l) => l >= this.dataRef.length - ut;
1534
1584
  let se = 0;
1535
1585
  if (this.dataRef.length) {
1536
1586
  const l = this._columnsMap.length + (this.$props.filterable ? 1 : 0) + 1;
1537
- let S = this.$props.skip || 0, v = -1, oe = 0;
1587
+ let b = this.$props.skip || 0, k = -1, oe = 0;
1538
1588
  const ne = this.computedRowSpannable.enabled ? {} : void 0;
1539
1589
  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;
1590
+ if (P > 0) {
1591
+ const g = this.dataRef.slice(0, P).filter((A) => A.rowType === "data").length;
1592
+ k += g, b += P;
1543
1593
  }
1544
- !this.$props.pageable && H && (v += this.$props.skip || 0);
1594
+ !this.$props.pageable && I && (k += this.$props.skip || 0);
1545
1595
  }
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, {
1550
- key: ae,
1551
- item: m,
1552
- dataIndex: v,
1596
+ ee = (m || this.dataRef).map(function(g, A) {
1597
+ g.rowType === "data" && k++;
1598
+ const re = g.dataIndex % 2 !== 0, Fe = this.$props.dataItemKey && M(this.$props.dataItemKey)(g.dataItem), ae = A + b, le = Fe || "ai" + ae, de = le + "_1", j = pt.call(this, g, le, 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;
1599
+ return se = ae + l + oe, [d(gs, {
1600
+ key: le,
1601
+ item: g,
1602
+ dataIndex: k,
1553
1603
  ariaRowIndex: se,
1554
- absoluteRowIndex: le,
1604
+ absoluteRowIndex: ae,
1555
1605
  isAltRow: re,
1556
- isHidden: ue(K),
1606
+ isHidden: fe(A),
1557
1607
  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),
1608
+ isSelected: j.isSelected,
1609
+ isHighlighted: j.isHighlighted,
1610
+ isInEdit: j.isInEdit,
1611
+ rowType: g.rowType,
1612
+ onRowclick: (F) => this.rowClick(F, g),
1613
+ onRowdblclick: (F) => this.rowDoubleClick(F, g),
1564
1614
  render: this.$props.rowRender,
1565
- class: this.$props.rowClass ? this.$props.rowClass(m) : "",
1566
- isPinned: mt,
1615
+ class: this.$props.rowClass ? this.$props.rowClass(g) : "",
1616
+ isPinned: Rt,
1567
1617
  rows: this.$props.rows
1568
1618
  }, {
1569
- default: () => [U.row]
1570
- }), this.$props.detail && m.rowType === "data" && (m.expanded || m.dataItem.expanded) && d("tr", {
1619
+ default: () => [j.row]
1620
+ }), this.$props.detail && g.rowType === "data" && (g.expanded || g.dataItem.expanded) && d("tr", {
1571
1621
  key: de,
1572
1622
  class: re ? "k-table-row k-table-alt-row k-detail-row" : "k-table-row k-detail-row",
1573
1623
  style: {
1574
- visibility: ue(K) ? "hidden" : "",
1624
+ visibility: fe(A) ? "hidden" : "",
1575
1625
  height: this.$props.detailRowHeight + "px"
1576
1626
  },
1577
1627
  role: "row",
1578
1628
  "aria-rowindex": se
1579
- }, [r == null ? void 0 : r.map(function(G) {
1580
- return d(Ze, {
1629
+ }, [r == null ? void 0 : r.map(function(F) {
1630
+ return d(tt, {
1581
1631
  id: "",
1582
- dataIndex: m.dataIndex,
1583
- field: G.field,
1584
- dataItem: m.dataItem,
1585
- key: `group-${G.field}-${m.dataIndex}`,
1632
+ dataIndex: g.dataIndex,
1633
+ field: F.field,
1634
+ dataItem: g.dataItem,
1635
+ key: `group-${F.field}-${g.dataIndex}`,
1586
1636
  locked: this.$props.lockGroups,
1587
- group: m.group
1637
+ group: g.group
1588
1638
  }, 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,
1639
+ }, this), (this.$props.expandField || this.detailExpandable.enabled) && d(Ut, {
1640
+ id: E.generateNavigatableId(`${de}-dhcell`, v)
1641
+ }, null), d(jt, {
1642
+ dataItem: g.dataItem,
1643
+ dataIndex: g.dataIndex,
1644
+ colSpan: Ct,
1595
1645
  ariaColIndex: 2 + (r ? r.length : 0),
1596
1646
  detail: this.$props.detail ? this.$props.detail : void 0,
1597
- id: P.generateNavigatableId(`${de}-dcell`, w)
1647
+ id: E.generateNavigatableId(`${de}-dcell`, v)
1598
1648
  }, null)])];
1599
1649
  }, this);
1600
1650
  }
1601
- const pt = this.$props.pageable && d(Tt, {
1651
+ const ft = this.$props.pageable && d(Et, {
1602
1652
  class: "k-grid-pager",
1603
1653
  onPagesizechange: this.pageChangeHandler,
1604
1654
  onPagechange: this.pageChangeHandler,
1605
1655
  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,
1656
+ total: C,
1657
+ skip: o || 0,
1658
+ pageSize: (n !== void 0 ? n : this.$props.pageSize) || 10,
1659
+ messagesMap: nt,
1660
+ settings: Pt(this.$props.pageable || {})
1661
+ }, null), me = Ae.call(this, {
1662
+ h: Le,
1613
1663
  template: this.$props.pager,
1614
- defaultRendering: pt,
1664
+ defaultRendering: ft,
1615
1665
  additionalProps: {
1616
1666
  ...this.$props,
1617
1667
  skip: this.$props.skip || 0,
1618
- messagesMap: it
1668
+ messagesMap: nt
1619
1669
  },
1620
1670
  additionalListeners: {
1621
1671
  pagesizechange: this.pageChangeHandler,
1622
1672
  pagechange: this.pageChangeHandler
1623
1673
  }
1624
- }), ut = (l) => e && e.filter((S) => S.field === l).length > 0, me = d("colgroup", {
1674
+ }), mt = (l) => e && e.filter((b) => b.field === l).length > 0, ge = d("colgroup", {
1625
1675
  ref: y(this, "colGroup")
1626
- }, [T.map(function(l, S) {
1676
+ }, [T.map(function(l, b) {
1627
1677
  return d("col", {
1628
- key: l.id || `col-${S}`,
1629
- class: ut(l.field) ? "k-sorted" : void 0,
1678
+ key: l.id || `col-${b}`,
1679
+ class: mt(l.field) ? "k-sorted" : void 0,
1630
1680
  width: l.width !== void 0 ? l.width.toString().indexOf("%") !== -1 ? l.width : Math.floor(parseFloat(l.width.toString())) + "px" : void 0
1631
1681
  }, null);
1632
- }, this)]), ge = {
1682
+ }, this)]), Re = {
1633
1683
  height: this.getCorrectHeight,
1634
1684
  ...this.$attrs.style
1635
- }, ft = d("div", {
1685
+ }, gt = d("div", {
1636
1686
  class: "k-loading-mask"
1637
1687
  }, [d("div", {
1638
1688
  class: "k-loading-color"
@@ -1643,89 +1693,93 @@ const fi = /* @__PURE__ */ Rt({
1643
1693
  justifyContent: "center",
1644
1694
  alignItems: "center"
1645
1695
  }
1646
- }, [d(Vt, {
1696
+ }, [d(Wt, {
1647
1697
  size: "large",
1648
1698
  type: "converging-spinner"
1649
- }, null)])]), ie = this.$props.showLoader && _e.call(this, {
1650
- h: Fe,
1699
+ }, null)])]), ie = this.$props.showLoader && Ae.call(this, {
1700
+ h: Le,
1651
1701
  template: this.$props.loader,
1652
- defaultRendering: ft
1702
+ defaultRendering: gt
1653
1703
  });
1654
- return this.$props.scrollable === "none" ? d(Le, null, [d(Ne, {
1704
+ return this.$props.scrollable === "none" ? d(Ke, null, [d(We, {
1655
1705
  ref: "navRef",
1656
1706
  id: this._gridId,
1657
1707
  navigatable: this.$props.navigatable,
1658
1708
  scrollable: this.$props.scrollable,
1659
1709
  columnVirtualization: this.$props.columnVirtualization
1660
1710
  }, {
1661
- default: () => [d(je, {
1711
+ default: () => [d(Je, {
1662
1712
  ref: (l) => {
1663
1713
  this.gridNavRef = l;
1664
1714
  },
1665
1715
  columnsRef: this.columnsRef,
1666
1716
  dataRef: this.dataRef,
1667
1717
  id: this.$props.id,
1668
- style: ge,
1718
+ dir: this.$props.dir,
1719
+ style: Re,
1669
1720
  class: this.nonscrollableWrapperClass,
1670
1721
  onMovetonextpage: this.moveToNextPage,
1671
1722
  onMovetoprevpage: this.moveToPrevPage,
1672
1723
  onColumnreorder: this.columnReorder,
1673
- onKeyboardselectionchange: this.onKeyboardSelectionChangeHandler
1724
+ onKeyboardselectionchange: this.onKeyboardSelectionChangeHandler,
1725
+ onNavigationaction: this.navigationActionHandler
1674
1726
  }, {
1675
- default: () => [B, V, d("div", {
1727
+ default: () => [V, O, d("div", {
1676
1728
  role: "grid",
1677
1729
  class: "k-grid-aria-root",
1678
1730
  id: this._gridRoleElementId,
1679
1731
  "aria-colcount": this.getAriaColCount,
1680
1732
  "aria-rowcount": this.getAriaRowCount
1681
- }, [d(Yt, {
1733
+ }, [d(es, {
1682
1734
  selectable: this.computedSelectable,
1683
1735
  class: "k-table",
1684
1736
  ref: y(this, "table")
1685
1737
  }, {
1686
- default: () => [me, ce, d("tbody", {
1738
+ default: () => [ge, pe, d("tbody", {
1687
1739
  class: "k-table-tbody",
1688
1740
  "data-keyboardnavbody": !0,
1689
1741
  ref: y(this, "tableBody")
1690
- }, [ee, Ct(" "), ie]), pe]
1691
- }), te && d(st, {
1692
- id: P.generateNavigatableId("no-records", w)
1742
+ }, [ee, St(" "), ie]), ue]
1743
+ }), te && d(ot, {
1744
+ id: E.generateNavigatableId("no-records", v)
1693
1745
  }, {
1694
- default: () => [E.length ? E : d(tt, null, null)]
1695
- })]), fe, ie, F]
1746
+ default: () => [D.length ? D : d(it, null, null)]
1747
+ })]), me, ie, K]
1696
1748
  })]
1697
- }), this.renderContextMenu()]) : d(Le, null, [d(Ne, {
1749
+ }), this.renderContextMenu()]) : d(Ke, null, [d(We, {
1698
1750
  ref: "navRef",
1699
1751
  id: this._gridId,
1700
1752
  navigatable: this.$props.navigatable,
1701
1753
  scrollable: this.$props.scrollable,
1702
1754
  columnVirtualization: this.$props.columnVirtualization
1703
1755
  }, {
1704
- default: () => [d(je, {
1756
+ default: () => [d(Je, {
1705
1757
  ref: (l) => {
1706
1758
  this.gridNavRef = l;
1707
1759
  },
1708
1760
  dataRef: this.dataRef,
1709
1761
  id: this.$props.id,
1710
- style: ge,
1762
+ dir: this.$props.dir,
1763
+ style: Re,
1711
1764
  class: this.scrollableWrapperClass,
1712
1765
  onMovetonextpage: this.moveToNextPage,
1713
1766
  onMovetoprevpage: this.moveToPrevPage,
1714
1767
  onColumnreorder: this.columnReorder,
1715
1768
  onKeyboardselectionchange: this.onKeyboardSelectionChangeHandler,
1716
- onSetcurrentontop: this.setCurrentOnTop
1769
+ onSetcurrentontop: this.setCurrentOnTop,
1770
+ onNavigationaction: this.navigationActionHandler
1717
1771
  }, {
1718
- default: () => [B, V, d("div", {
1772
+ default: () => [V, O, d("div", {
1719
1773
  role: "grid",
1720
1774
  class: "k-grid-aria-root",
1721
1775
  id: this._gridRoleElementId,
1722
1776
  "aria-colcount": this.getAriaColCount,
1723
1777
  "aria-rowcount": this.getAriaRowCount
1724
- }, [ce, this.hasPinnedTopRows && d(rt, {
1778
+ }, [pe, this.hasPinnedTopRows && d(lt, {
1725
1779
  ref: y(this, "pinnedTop"),
1726
1780
  size: this.$props.size,
1727
- cols: D,
1728
- dataRowContext: L,
1781
+ cols: G,
1782
+ dataRowContext: _,
1729
1783
  position: "top",
1730
1784
  pinnedItems: this.sortedPinnedTopRows,
1731
1785
  rowHeight: this.$props.rowHeight,
@@ -1734,13 +1788,13 @@ const fi = /* @__PURE__ */ Rt({
1734
1788
  }, null), d("div", {
1735
1789
  class: "k-grid-container",
1736
1790
  role: "presentation"
1737
- }, [p && h && d(nt, {
1791
+ }, [f && p && d(at, {
1738
1792
  ref: y(this, "stickyHeader"),
1739
1793
  size: this.$props.size,
1740
- cols: D,
1741
- dataRowContext: L,
1794
+ cols: G,
1795
+ dataRowContext: _,
1742
1796
  position: "top",
1743
- groupLevelCount: f,
1797
+ groupLevelCount: u,
1744
1798
  rowHeight: this.$props.rowHeight
1745
1799
  }, null), d("div", {
1746
1800
  role: "presentation",
@@ -1750,7 +1804,7 @@ const fi = /* @__PURE__ */ Rt({
1750
1804
  }, [d("div", {
1751
1805
  class: "k-grid-table-wrap",
1752
1806
  role: "presentation"
1753
- }, [d(Qt, {
1807
+ }, [d(ts, {
1754
1808
  selectable: this.computedSelectable,
1755
1809
  tableClassName: this.gridTableClass,
1756
1810
  tableStyle: {
@@ -1758,16 +1812,16 @@ const fi = /* @__PURE__ */ Rt({
1758
1812
  },
1759
1813
  ref: y(this, "table")
1760
1814
  }, {
1761
- default: () => [me, d("tbody", {
1815
+ default: () => [ge, d("tbody", {
1762
1816
  class: "k-table-tbody",
1763
1817
  role: "rowgroup",
1764
1818
  "data-keyboardnavbody": !0,
1765
1819
  ref: y(this, "tableBody")
1766
1820
  }, [ee])]
1767
- }), te && d(st, {
1768
- id: P.generateNavigatableId("no-records", w)
1821
+ }), te && d(ot, {
1822
+ id: E.generateNavigatableId("no-records", v)
1769
1823
  }, {
1770
- default: () => [E.length ? E : d(tt, null, null)]
1824
+ default: () => [D.length ? D : d(it, null, null)]
1771
1825
  })]), !te && d("div", {
1772
1826
  class: "k-height-container",
1773
1827
  role: "presentation"
@@ -1776,29 +1830,29 @@ const fi = /* @__PURE__ */ Rt({
1776
1830
  style: this.$props.scrollable === "virtual" ? {
1777
1831
  height: this._containerHeightRef + "px"
1778
1832
  } : {}
1779
- }, null)])]), p && u && d(nt, {
1833
+ }, null)])]), f && c && d(at, {
1780
1834
  ref: y(this, "stickyFooter"),
1781
1835
  size: this.$props.size,
1782
- cols: D,
1783
- dataRowContext: L,
1836
+ cols: G,
1837
+ dataRowContext: _,
1784
1838
  position: "bottom",
1785
- groupLevelCount: f,
1839
+ groupLevelCount: u,
1786
1840
  rowHeight: this.$props.rowHeight
1787
- }, null)]), this.hasPinnedBottomRows && d(rt, {
1841
+ }, null)]), this.hasPinnedBottomRows && d(lt, {
1788
1842
  ref: y(this, "pinnedBottom"),
1789
1843
  size: this.$props.size,
1790
- cols: D,
1791
- dataRowContext: L,
1844
+ cols: G,
1845
+ dataRowContext: _,
1792
1846
  position: "bottom",
1793
1847
  pinnedItems: this.sortedPinnedBottomRows,
1794
1848
  rowHeight: this.$props.rowHeight,
1795
1849
  rows: this.$props.rows,
1796
1850
  selectable: this.computedSelectable
1797
- }, null), pe, N]), fe, ie, F]
1851
+ }, null), ue, W]), me, ie, K]
1798
1852
  })]
1799
1853
  }), this.renderContextMenu()]);
1800
1854
  }
1801
1855
  });
1802
1856
  export {
1803
- fi as Grid
1857
+ Ri as Grid
1804
1858
  };