@progress/kendo-vue-grid 8.0.3-develop.3 → 8.1.0-develop.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (60) hide show
  1. package/Grid.d.ts +18 -2
  2. package/Grid.js +1 -1
  3. package/Grid.mjs +655 -511
  4. package/GridNav.d.ts +12 -2
  5. package/GridNav.js +1 -1
  6. package/GridNav.mjs +52 -24
  7. package/GridState.d.ts +12 -5
  8. package/GridState.js +1 -1
  9. package/GridState.mjs +84 -77
  10. package/RootGrid.d.ts +6 -0
  11. package/RootGrid.js +1 -1
  12. package/RootGrid.mjs +25 -25
  13. package/StatusBar.d.ts +55 -5
  14. package/StatusBar.js +8 -0
  15. package/StatusBar.mjs +81 -0
  16. package/cells/GridCell.d.ts +3 -0
  17. package/cells/GridCell.js +1 -1
  18. package/cells/GridCell.mjs +32 -29
  19. package/cells/GridEditCell.d.ts +2 -0
  20. package/cells/GridEditCell.js +1 -1
  21. package/cells/GridEditCell.mjs +1 -0
  22. package/cells/GridSelectionCell.js +1 -1
  23. package/cells/GridSelectionCell.mjs +16 -16
  24. package/common.d.ts +3 -0
  25. package/common.js +1 -1
  26. package/common.mjs +3 -0
  27. package/components/table/GridTable.d.ts +18 -0
  28. package/components/table/GridTable.js +8 -0
  29. package/components/table/GridTable.mjs +41 -0
  30. package/components/table/GridTableScrollable.d.ts +20 -0
  31. package/components/table/GridTableScrollable.js +8 -0
  32. package/components/table/GridTableScrollable.mjs +45 -0
  33. package/dist/cdn/js/kendo-vue-grid.js +1 -1
  34. package/drag/ColumnDraggable.js +1 -1
  35. package/drag/ColumnDraggable.mjs +5 -4
  36. package/header/FilterRow.d.ts +3 -0
  37. package/header/FilterRow.js +1 -1
  38. package/header/FilterRow.mjs +46 -44
  39. package/header/Header.d.ts +5 -2
  40. package/header/Header.js +1 -1
  41. package/header/Header.mjs +10 -5
  42. package/header/HeaderRow.d.ts +3 -0
  43. package/header/HeaderRow.js +1 -1
  44. package/header/HeaderRow.mjs +148 -139
  45. package/index.d.mts +1 -0
  46. package/index.d.ts +1 -0
  47. package/index.js +1 -1
  48. package/index.mjs +20 -16
  49. package/interfaces/GridCellProps.d.ts +11 -0
  50. package/interfaces/GridColumnProps.d.ts +10 -6
  51. package/interfaces/GridProps.d.ts +31 -3
  52. package/interfaces/events.d.ts +26 -3
  53. package/package-metadata.js +1 -1
  54. package/package-metadata.mjs +2 -2
  55. package/package.json +12 -12
  56. package/utils/main.js +1 -1
  57. package/utils/main.mjs +68 -67
  58. package/utils/virtualColumns.d.ts +17 -0
  59. package/utils/virtualColumns.js +1 -1
  60. package/utils/virtualColumns.mjs +132 -39
package/Grid.mjs CHANGED
@@ -5,46 +5,48 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as ut, createVNode as n, h as Pe, createTextVNode as Me, ref as v, inject as ct, markRaw as E } from "vue";
9
- import { isObject as V, cloneArray as gt, canUseDOM as X, WatermarkOverlay as ft, getter as Y, getTemplate as Ae, setRef as G, hasListener as P, getRef as $, RowHeightService as mt, setScrollbarWidth as Ct, kendoThemeMaps as Ve, uGrid as bt, isRtl as Ne, validatePackage as $t, shouldShowValidationUI as Rt, getLicenseMessage as xt, guid as Oe, getNestedValue as We } from "@progress/kendo-vue-common";
10
- import { tableKeyboardNavigationTools as z, combineFilters as vt, Pager as It, normalize as wt, TableKeyboardNavigationProvider as Ke, updateLeft as St, updateRight as yt, groupExpandReducer as Ht, detailExpandReducer as kt, getDetailExpandableOptions as _t, getGroupExpandableOptions as Et } from "@progress/kendo-vue-data-tools";
11
- import { Loader as zt } from "@progress/kendo-vue-indicators";
12
- import { GridNav as Ue } from "./GridNav.mjs";
13
- import { GridSelectionCell as Be } from "./cells/GridSelectionCell.mjs";
14
- import { GridHierarchyCell as Z } from "./cells/GridHierarchyCell.mjs";
15
- import { GridDetailHierarchyCell as Tt } from "./cells/GridDetailHierarchyCell.mjs";
16
- import { GridDetailCell as Dt } from "./cells/GridDetailCell.mjs";
17
- import { GridEditCell as Gt } from "./cells/GridEditCell.mjs";
18
- import { Header as Ft } from "./header/Header.mjs";
19
- import { HeaderRow as Lt } from "./header/HeaderRow.mjs";
20
- import { FilterRow as Pt } from "./header/FilterRow.mjs";
21
- import { GroupPanel as Mt } from "./header/GroupPanel.mjs";
22
- import { Footer as At } from "./footer/Footer.mjs";
23
- import { FooterRow as Vt } from "./footer/FooterRow.mjs";
24
- import { operators as je } from "./filterCommon.mjs";
25
- import { VirtualScroll as Nt } from "./VirtualScroll.mjs";
26
- import { ColumnResize as Ot } from "./drag/ColumnResize.mjs";
27
- import { CommonDragLogic as Wt } from "./drag/CommonDragLogic.mjs";
28
- import { DragClue as Kt } from "./drag/DragClue.mjs";
29
- import { DropClue as Ut } from "./drag/DropClue.mjs";
30
- import { applyExpandedState as Bt, getColSpan as jt, autoGenerateColumns as qt, mapColumns as Jt, getFlatColumnsState as qe, getRowSpanOptions as Je, groupedFirstItemValue as Qe, calcRowHeight as Qt, flatData as Xt, readColumns as Yt } from "./utils/main.mjs";
31
- import { GridCell as Zt } from "./cells/GridCell.mjs";
32
- import { GridGroupCell as ee } from "./cells/GridGroupCell.mjs";
33
- import { GridRow as ei } from "./rows/GridRow.mjs";
34
- import { gridProps as ti } from "./common.mjs";
35
- import { GridHeaderSelectionCell as Xe } from "./header/GridHeaderSelectionCell.mjs";
36
- import { GridNoRecords as Ye } from "./components/noRecords/GridNoRecords.mjs";
37
- import { GridNoRecordsContainer as Ze } from "./components/noRecords/GridNoRecordsContainer.mjs";
38
- import { packageMetadata as te } from "./package-metadata.mjs";
39
- import { pagerMessagesMap as et } from "./messages/messagesMap.mjs";
40
- import { process as ii } from "@progress/kendo-data-query";
41
- import { KendoKey as si } from "./key.mjs";
42
- import { getVirtualCellsToRender as ri } from "./utils/virtualColumns.mjs";
43
- const Oi = /* @__PURE__ */ ut({
8
+ import { defineComponent as $t, createVNode as d, h as Ve, createTextVNode as It, ref as S, inject as xt, markRaw as T } from "vue";
9
+ import { isObject as N, cloneArray as vt, canUseDOM as te, WatermarkOverlay as St, getter as E, getTemplate as Ne, setRef as F, hasListener as M, getComponentElementRef as Oe, getRef as I, RowHeightService as yt, setScrollbarWidth as wt, kendoThemeMaps as We, uGrid as Ht, isRtl as Be, validatePackage as kt, shouldShowValidationUI as Tt, getLicenseMessage as Et, guid as Ue, getNestedValue as je } from "@progress/kendo-vue-common";
10
+ import { tableKeyboardNavigationTools as D, combineFilters as Dt, Pager as zt, normalize as _t, TableKeyboardNavigationProvider as qe, updateLeft as Pt, updateRight as Lt, groupExpandReducer as Ft, detailExpandReducer as Gt, getSelectedState as Je, getSelectedStateFromKeyDown as Mt, closestTagName as Qe, getColumnIndex as Kt, getRowIndex as At, getDetailExpandableOptions as Vt, getSelectionOptions as Nt, getGroupExpandableOptions as Ot } from "@progress/kendo-vue-data-tools";
11
+ import { Loader as Wt } from "@progress/kendo-vue-indicators";
12
+ import { GridNav as Xe } from "./GridNav.mjs";
13
+ import { GridSelectionCell as Ye } from "./cells/GridSelectionCell.mjs";
14
+ import { GridHierarchyCell as ie } from "./cells/GridHierarchyCell.mjs";
15
+ import { GridDetailHierarchyCell as Bt } from "./cells/GridDetailHierarchyCell.mjs";
16
+ import { GridDetailCell as Ut } from "./cells/GridDetailCell.mjs";
17
+ import { GridEditCell as jt } from "./cells/GridEditCell.mjs";
18
+ import { Header as qt } from "./header/Header.mjs";
19
+ import { HeaderRow as Jt } from "./header/HeaderRow.mjs";
20
+ import { FilterRow as Qt } from "./header/FilterRow.mjs";
21
+ import { GroupPanel as Xt } from "./header/GroupPanel.mjs";
22
+ import { Footer as Yt } from "./footer/Footer.mjs";
23
+ import { FooterRow as Zt } from "./footer/FooterRow.mjs";
24
+ import { GridTable as ei } from "./components/table/GridTable.mjs";
25
+ import { GridTableScrollable as ti } from "./components/table/GridTableScrollable.mjs";
26
+ import { operators as Ze } from "./filterCommon.mjs";
27
+ import { VirtualScroll as ii } from "./VirtualScroll.mjs";
28
+ import { ColumnResize as si } from "./drag/ColumnResize.mjs";
29
+ import { CommonDragLogic as li } from "./drag/CommonDragLogic.mjs";
30
+ import { DragClue as ai } from "./drag/DragClue.mjs";
31
+ import { DropClue as ri } from "./drag/DropClue.mjs";
32
+ import { applyExpandedState as oi, getColSpan as ni, autoGenerateColumns as di, mapColumns as hi, getFlatColumnsState as et, getRowSpanOptions as tt, getDataAsArray as pi, groupedFirstItemValue as it, calcRowHeight as ci, flatData as ui, readColumns as fi } from "./utils/main.mjs";
33
+ import { GridCell as gi } from "./cells/GridCell.mjs";
34
+ import { GridGroupCell as se } from "./cells/GridGroupCell.mjs";
35
+ import { GridRow as mi } from "./rows/GridRow.mjs";
36
+ import { gridProps as Ci } from "./common.mjs";
37
+ import { GridHeaderSelectionCell as st } from "./header/GridHeaderSelectionCell.mjs";
38
+ import { GridNoRecords as lt } from "./components/noRecords/GridNoRecords.mjs";
39
+ import { GridNoRecordsContainer as at } from "./components/noRecords/GridNoRecordsContainer.mjs";
40
+ import { packageMetadata as le } from "./package-metadata.mjs";
41
+ import { pagerMessagesMap as rt } from "./messages/messagesMap.mjs";
42
+ import { process as bi } from "@progress/kendo-data-query";
43
+ import { KendoKey as Ri } from "./key.mjs";
44
+ import { getVirtualCellsToRender as $i } from "./utils/virtualColumns.mjs";
45
+ const rs = /* @__PURE__ */ $t({
44
46
  name: "KendoGrid",
45
47
  inheritAttrs: !1,
46
48
  props: {
47
- ...ti,
49
+ ...Ci,
48
50
  toolbar: {
49
51
  type: Object
50
52
  },
@@ -89,18 +91,18 @@ const Oi = /* @__PURE__ */ ut({
89
91
  }
90
92
  },
91
93
  created() {
92
- $t(te), this.showLicenseWatermark = Rt(te), this.licenseMessage = xt(te), this.initialHeight = null, this._columns = [], this.vsRef = new Nt(), this.dragLogic = new Wt(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new Ot(this.onResize.bind(this)), this._columnsMap = [[]], this._header = null, this._footer = null, this.tableBodyRef = 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._virtualSkipRef = 0, this.wrapperScrollTopRef = 0, this.scrollLeftRef = 0;
94
+ kt(le), this.showLicenseWatermark = Tt(le), this.licenseMessage = Et(le), this.initialHeight = null, this.columnsRef = [], this.vsRef = new ii(), this.dragLogic = new li(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new si(this.onResize.bind(this)), this._columnsMap = [[]], this._header = null, this._footer = null, this.tableBodyRef = null, this.tableRef = null, this.scrollHeightContainerRef = null, this.forceUpdateTimeout = void 0, this._gridId = Ue(), this._gridRoleElementId = Ue(), this.slicedCurrentData = void 0, this._prevTotal = void 0, this._containerHeightRef = 0, this._minRowHeightRef = 0, this._virtualSkipRef = 0, this.wrapperScrollTopRef = 0, this.scrollLeftRef = 0;
93
95
  },
94
96
  mounted() {
95
97
  var t, i;
96
98
  this.setRefs();
97
- const e = Ne(this._element);
98
- this._prevTotal = this.$props.total, this.isRtl = e, this.initialHeight = ((i = (t = this._element) == null ? void 0 : t.style) == null ? void 0 : i.height) || null, this.resizeObserver = X && (window == null ? void 0 : window.ResizeObserver) && new ResizeObserver(this.calculateMedia), document != null && document.body && this.resizeObserver && this.resizeObserver.observe(document.body);
99
+ const e = Be(this._element);
100
+ this._prevTotal = this.$props.total, this.isRtl = e, this.initialHeight = ((i = (t = this._element) == null ? void 0 : t.style) == null ? void 0 : i.height) || null, this.resizeObserver = te && (window == null ? void 0 : window.ResizeObserver) && new ResizeObserver(this.calculateMedia), document != null && document.body && this.resizeObserver && this.resizeObserver.observe(document.body);
99
101
  },
100
102
  updated() {
101
103
  var t;
102
104
  this.setRefs();
103
- const e = Ne(this._element);
105
+ const e = Be(this._element);
104
106
  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 = ""), this.isVirtualScroll && (this.setContainerHeight(), this.setMinRowHeight(), (t = this.vsRef) == null || t.update());
105
107
  },
106
108
  unmounted() {
@@ -114,16 +116,19 @@ const Oi = /* @__PURE__ */ ut({
114
116
  return this.$props.navigatable ? this.gridId : "";
115
117
  },
116
118
  groupExpandable() {
117
- return Et(typeof this.$props.groupable == "object" && this.$props.groupable.enabled !== !1 ? this.$props.groupable.expandable : this.$props.groupable);
119
+ return Ot(typeof this.$props.groupable == "object" && this.$props.groupable.enabled !== !1 ? this.$props.groupable.expandable : this.$props.groupable);
118
120
  },
119
121
  hierarchClass() {
120
- return bt.hierarchyCell({});
122
+ return Ht.hierarchyCell({});
121
123
  },
122
124
  computedRowSpannable() {
123
- return Je(this.$props.rowSpannable);
125
+ return tt(this.$props.rowSpannable);
126
+ },
127
+ computedSelectable() {
128
+ return Nt(this.$props.selectable);
124
129
  },
125
130
  detailExpandable() {
126
- return _t(!!this.$props.detail);
131
+ return Vt(!!this.$props.detail);
127
132
  },
128
133
  nonscrollableWrapperClass() {
129
134
  const {
@@ -132,7 +137,7 @@ const Oi = /* @__PURE__ */ ut({
132
137
  return {
133
138
  "k-grid": !0,
134
139
  "k-grid-md": !e,
135
- [`k-grid-${Ve.sizeMap[e] || e}`]: e,
140
+ [`k-grid-${We.sizeMap[e] || e}`]: e,
136
141
  [t]: !!t
137
142
  };
138
143
  },
@@ -153,7 +158,7 @@ const Oi = /* @__PURE__ */ ut({
153
158
  "k-table": !0,
154
159
  "k-grid-table": !0,
155
160
  "k-grid-md": !e,
156
- [`k-table-${Ve.sizeMap[e] || e}`]: e
161
+ [`k-table-${We.sizeMap[e] || e}`]: e
157
162
  };
158
163
  },
159
164
  getCorrectHeight() {
@@ -162,7 +167,7 @@ const Oi = /* @__PURE__ */ ut({
162
167
  currentGroupable() {
163
168
  var t;
164
169
  const e = (t = this.gridContext.group) == null ? void 0 : t.value;
165
- return this.$props.groupable === !0 && (e == null ? void 0 : e.length) || V(this.$props.groupable) && this.$props.groupable.enabled !== !1;
170
+ return this.$props.groupable === !0 && (e == null ? void 0 : e.length) || N(this.$props.groupable) && this.$props.groupable.enabled !== !1;
166
171
  },
167
172
  computedCollapsed() {
168
173
  let e = [];
@@ -174,7 +179,7 @@ const Oi = /* @__PURE__ */ ut({
174
179
  // Calculates the value of the ariaRowcount attribute.
175
180
  getAriaRowCount() {
176
181
  const e = this.$props.dataItems, t = this.$props.total || (e == null ? void 0 : e.total) || (e == null ? void 0 : e.length) || 0;
177
- return this.$props.detail ? this._columnsMap.length + (this.$props.filterable ? 1 : 0) + t * 2 + (this._columns.some((i) => !!i.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._columns.some((i) => !!i.footerCell) ? 1 : 0);
182
+ return this.$props.detail ? this._columnsMap.length + (this.$props.filterable ? 1 : 0) + t * 2 + (this.columnsRef.some((i) => !!i.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((i) => !!i.footerCell) ? 1 : 0);
178
183
  },
179
184
  // Calculates the value of the ariaColcount attribute.
180
185
  // Based on the result of this method the ariaColIndex is rendered or not in the HeaderRow TH elements
@@ -188,19 +193,23 @@ const Oi = /* @__PURE__ */ ut({
188
193
  }
189
194
  },
190
195
  methods: {
196
+ getTotal() {
197
+ let e = this.$props.total || 0;
198
+ return Array.isArray(this.$props.dataItems) ? e = e || this.$props.dataItems.length : this.$props.dataItems && (e = e || this.$props.dataItems.total), e;
199
+ },
191
200
  readColumnElements() {
192
- return Yt(this.$props.columns, this.currentColumnsState, {
201
+ return fi(this.$props.columns, this.currentColumnsState, {
193
202
  prevId: 0,
194
203
  idPrefix: this.idPrefix
195
204
  });
196
205
  },
197
206
  getResolvedFlatColumnsState() {
198
- const e = [], t = (i, s) => i == null ? void 0 : i.forEach((r) => {
199
- const l = r.hidden || s;
207
+ const e = [], t = (i, s) => i == null ? void 0 : i.forEach((l) => {
208
+ const a = l.hidden || s;
200
209
  e.push({
201
- ...r,
202
- hidden: l
203
- }), t(r.children, l);
210
+ ...l,
211
+ hidden: a
212
+ }), t(l.children, a);
204
213
  });
205
214
  return t(this.currentColumnsState, !1), e;
206
215
  },
@@ -208,16 +217,16 @@ const Oi = /* @__PURE__ */ ut({
208
217
  const t = this.getResolvedFlatColumnsState();
209
218
  return [e.filter((i) => {
210
219
  var s;
211
- return !i.hidden && !((s = t.find((r) => r.id === i.id)) != null && s.hidden);
220
+ return !i.hidden && !((s = t.find((l) => l.id === i.id)) != null && s.hidden);
212
221
  }), e.filter((i) => {
213
222
  var s;
214
- return i.hidden || ((s = t.find((r) => r.id === i.id)) == null ? void 0 : s.hidden);
223
+ return i.hidden || ((s = t.find((l) => l.id === i.id)) == null ? void 0 : s.hidden);
215
224
  })];
216
225
  },
217
- getFlatData(e, t, i, s, r, l, d) {
218
- const h = [], c = Xt(h, e, t, {
226
+ getFlatData(e, t, i, s, l, a, o) {
227
+ const h = [], c = ui(h, e, t, {
219
228
  index: i
220
- }, s !== void 0, r, l, this.groupExpandable.defaultExpand, d, this.$props.expandField);
229
+ }, s !== void 0, l, a, this.groupExpandable.defaultExpand, o, this.$props.expandField);
221
230
  return {
222
231
  flattedData: h,
223
232
  resolvedGroupsCount: c
@@ -242,7 +251,7 @@ const Oi = /* @__PURE__ */ ut({
242
251
  ...i,
243
252
  children: i.children && i.children.length > 0 ? this.filterHiddenColumns(i.children) : i.children
244
253
  });
245
- return [...e].filter((i) => !i.hidden).filter((i) => X && i && i.media ? window.matchMedia(i.media).matches : i).map((i) => t(i));
254
+ return [...e].filter((i) => !i.hidden).filter((i) => te && i && i.media ? window.matchMedia(i.media).matches : i).map((i) => t(i));
246
255
  },
247
256
  /**
248
257
  * A getter of the current columns. Gets the current column width or current columns,
@@ -252,39 +261,39 @@ const Oi = /* @__PURE__ */ ut({
252
261
  * and check the properties afterwards. You can check the result in the browser console.
253
262
  */
254
263
  getColumns() {
255
- const e = this._columns.filter((i) => i.declarationIndex >= 0 && i.parentIndex === -1), t = (i) => (i.sort((s, r) => s.declarationIndex - r.declarationIndex), i.map((s) => {
264
+ const e = this.columnsRef.filter((i) => i.declarationIndex >= 0 && i.parentIndex === -1), t = (i) => (i.sort((s, l) => s.declarationIndex - l.declarationIndex), i.map((s) => {
256
265
  const {
257
- declarationIndex: r,
258
- parentIndex: l,
259
- depth: d,
266
+ declarationIndex: l,
267
+ parentIndex: a,
268
+ depth: o,
260
269
  colSpan: h,
261
270
  rowSpan: c,
262
- index: f,
271
+ index: m,
263
272
  kFirst: u,
264
- children: m,
265
- ...R
273
+ children: f,
274
+ ...C
266
275
  } = s;
267
- return m.length ? {
268
- children: t(m),
269
- ...R
270
- } : R;
276
+ return f.length ? {
277
+ children: t(f),
278
+ ...C
279
+ } : C;
271
280
  }));
272
281
  return t(e);
273
282
  },
274
283
  setRefs() {
275
284
  let e = "$el";
276
- const t = $(this, "gridNav");
285
+ const t = I(this, "gridNav");
277
286
  t && (this._element = t[e]);
278
- const i = $(this, "groupPanelDiv");
287
+ const i = I(this, "groupPanelDiv");
279
288
  if (i) {
280
- let l = i[e] || null;
281
- this.dragLogic.refGroupPanelDiv(l);
289
+ let a = i[e] || null;
290
+ this.dragLogic.refGroupPanelDiv(a);
282
291
  }
283
- const s = $(this, "dropElementClue"), r = $(this, "dragElementClue");
284
- this.dragLogic.refDropElementClue(s), this.dragLogic.refDragElementClue(r), this.columnResize.colGroupMain = $(this, "colGroup"), this._header = $(this, "header"), this._footer = $(this, "footer"), this.resetTableWidth(), Ct();
292
+ const s = I(this, "dropElementClue"), l = I(this, "dragElementClue");
293
+ this.dragLogic.refDropElementClue(s), this.dragLogic.refDragElementClue(l), this.columnResize.colGroupMain = I(this, "colGroup"), this._header = I(this, "header"), this._footer = I(this, "footer"), this.resetTableWidth(), wt();
285
294
  },
286
295
  gridUnmounted() {
287
- 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.currentData = [], this._columns = [], document != null && document.body && this.resizeObserver && this.resizeObserver.disconnect();
296
+ 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.currentData = [], this.columnsRef = [], document != null && document.body && this.resizeObserver && this.resizeObserver.disconnect();
288
297
  },
289
298
  isAllData() {
290
299
  const {
@@ -302,21 +311,25 @@ const Oi = /* @__PURE__ */ ut({
302
311
  },
303
312
  initializeVirtualization() {
304
313
  const e = this.vsRef, t = this.$props.rowHeight || this._minRowHeightRef || 0;
305
- e && (e.fixedScroll = this.$props.fixedScroll || !1, e.PageChange = this.virtualPageChange, e.pageSize = this._virtualPageSize, e.scrollableVirtual = this.isVirtualScroll, e.container = $(this, "scrollContainer"), e.tableBody = $(this, "tableBody"), e.scrollHeightContainer = $(this, "scrollHeightContainer"), e.table = $(this, "table"), (!e.rowHeightService || e.total !== this._virtualTotal) && t && (e.total = this._virtualTotal, e.rowHeightService = new mt(this._virtualTotal, t)));
314
+ e && (e.fixedScroll = this.$props.fixedScroll || !1, e.PageChange = this.virtualPageChange, e.pageSize = this._virtualPageSize, e.scrollableVirtual = this.isVirtualScroll, e.container = I(this, "scrollContainer"), e.tableBody = I(this, "tableBody"), e.scrollHeightContainer = I(this, "scrollHeightContainer"), e.table = Oe(this, "table"), (!e.rowHeightService || e.total !== this._virtualTotal) && t && (e.total = this._virtualTotal, e.rowHeightService = new yt(this._virtualTotal, t)));
306
315
  },
307
316
  setContainerHeight() {
308
- const e = $(this, "scrollContainer");
317
+ const e = I(this, "scrollContainer");
309
318
  this._containerHeightRef = (e == null ? void 0 : e.offsetHeight) || 0;
310
319
  },
311
320
  setMinRowHeight() {
312
321
  if (!this._minRowHeightRef && !this.$props.rowHeight) {
313
- const t = Qt($(this, "tableBody"));
322
+ const t = ci(I(this, "tableBody"));
314
323
  t && (this._minRowHeightRef = t, this.$forceUpdate());
315
324
  }
316
325
  },
317
326
  onRowHeightChanged(e, t) {
318
327
  this.setRefs();
319
328
  },
329
+ onHeaderScroll(e) {
330
+ const i = e.target.scrollLeft, s = I(this, "scrollContainer");
331
+ s && (s.scrollLeft = i), this.scrollLeftRef = i;
332
+ },
320
333
  scrollHandler(e) {
321
334
  clearTimeout(this.forceUpdateTimeout);
322
335
  const t = e.currentTarget.scrollLeft, i = e.currentTarget.scrollTop;
@@ -337,29 +350,29 @@ const Oi = /* @__PURE__ */ ut({
337
350
  });
338
351
  },
339
352
  loopGroupedItems(e, t, i = 0, s = null) {
340
- return e.forEach((r) => {
341
- !s && t(r, i) && (s = r), r.items && r.items.length && !s && (s = this.loopGroupedItems(r.items, t, i + 1, s));
353
+ return e.forEach((l) => {
354
+ !s && t(l, i) && (s = l), l.items && l.items.length && !s && (s = this.loopGroupedItems(l.items, t, i + 1, s));
342
355
  }), s;
343
356
  },
344
357
  updateGroupCollapsed(e) {
345
358
  let t = this.computedCollapsed, i = t[e.level];
346
- const s = this.$props.uniqueField, r = function(h, c) {
359
+ const s = this.$props.uniqueField, l = function(h, c) {
347
360
  return h.value === e.dataItem.value && c === e.level;
348
- }, l = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, r, 0, null) : e.dataItem, d = Qe(l || e.dataItem, s);
361
+ }, a = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, l, 0, null) : e.dataItem, o = it(a || e.dataItem, s);
349
362
  if (e.value) {
350
363
  if (i && i.length) {
351
- const h = i.indexOf(d);
364
+ const h = i.indexOf(o);
352
365
  h > -1 && i.splice(h, 1);
353
366
  }
354
367
  } else
355
- i ? i.includes(d) || i.push(d) : i = [d];
368
+ i ? i.includes(o) || i.push(o) : i = [o];
356
369
  return t;
357
370
  },
358
371
  itemChange(e) {
359
372
  var s;
360
- const t = P.call(this, "itemchange"), i = (s = this.gridContext.group) == null ? void 0 : s.value;
373
+ const t = M.call(this, "itemchange"), i = (s = this.gridContext.group) == null ? void 0 : s.value;
361
374
  if (e.field === this.$props.expandField || (i || this.$props.detail) && e.field === void 0) {
362
- P.call(this, "expandchange") && e.dataItem && this.$emit("expandchange", {
375
+ M.call(this, "expandchange") && e.dataItem && this.$emit("expandchange", {
363
376
  ...this.getArguments(e.event),
364
377
  collapsedGroups: this.updateGroupCollapsed(e),
365
378
  dataItem: e.dataItem,
@@ -404,36 +417,140 @@ const Oi = /* @__PURE__ */ ut({
404
417
  });
405
418
  },
406
419
  selectionChangeHandler(e) {
407
- const {
408
- event: t,
409
- dataItem: i,
410
- dataIndex: s,
411
- columnIndex: r
412
- } = e;
413
- this.$emit("selectionchange", {
414
- ...this.getArguments(t.event),
415
- dataItem: i,
416
- startColIndex: r,
417
- endColIndex: r,
418
- startRowIndex: s,
419
- endRowIndex: s,
420
+ var t;
421
+ if (this.computedSelectable.enabled) {
422
+ const {
423
+ event: i,
424
+ dataItem: s,
425
+ dataIndex: l,
426
+ columnIndex: a
427
+ } = e, o = {
428
+ ...this.getArguments(i),
429
+ dataItem: s,
430
+ startColIndex: a,
431
+ endColIndex: a,
432
+ startRowIndex: l,
433
+ endRowIndex: l,
434
+ dataItems: this.getLeafDataItems(),
435
+ altKey: !1,
436
+ ctrlKey: !1,
437
+ shiftKey: !1,
438
+ metaKey: !1,
439
+ mode: this.computedSelectable.mode,
440
+ cell: this.computedSelectable.cell,
441
+ isDrag: !1,
442
+ componentId: this.$props.id || this._gridId,
443
+ selectedField: this.$props.selectedField || ""
444
+ };
445
+ this.gridContext.selectionchange({
446
+ ...o,
447
+ select: this.$props.dataItemKey ? Je({
448
+ event: o,
449
+ selectedState: (t = this.$props.select) != null ? t : {},
450
+ dataItemKey: this.$props.dataItemKey
451
+ }) : {}
452
+ });
453
+ }
454
+ },
455
+ onKeyboardSelectionChangeHandler(e) {
456
+ var m, u;
457
+ if (!this.computedSelectable.enabled || !this.$props.dataItemKey)
458
+ return;
459
+ const t = (m = this.gridContext.select) == null ? void 0 : m.value, i = {
420
460
  dataItems: this.getLeafDataItems(),
421
- altKey: !1,
422
- ctrlKey: !1,
423
- shiftKey: !1,
424
- metaKey: !1,
425
- isDrag: !1,
426
- componentId: this._gridId,
427
- selectedField: this.$props.selectedField || ""
461
+ mode: this.computedSelectable.mode,
462
+ cell: this.computedSelectable.cell,
463
+ componentId: this.$props.id,
464
+ selectedField: "",
465
+ ...this.getArguments(e)
466
+ }, s = Mt({
467
+ event: i,
468
+ selectedState: t != null ? t : {},
469
+ dataItemKey: this.$props.dataItemKey
428
470
  });
471
+ if (s === t)
472
+ return;
473
+ const l = e.target, a = Qe(l, "TD"), o = Qe(l, "TR"), h = Kt(a), c = At(o);
474
+ if (h !== void 0 && c !== void 0) {
475
+ const f = (u = pi(this.$props.dataItems)) == null ? void 0 : u[c];
476
+ this.gridContext.selectionchange({
477
+ ...i,
478
+ select: s,
479
+ dataItem: f,
480
+ startRowIndex: c,
481
+ startColIndex: h,
482
+ startDataItem: f,
483
+ endDataItem: f,
484
+ endRowIndex: c,
485
+ endColIndex: h,
486
+ ctrlKey: e.ctrlKey,
487
+ altKey: e.altKey,
488
+ metaKey: e.metaKey,
489
+ shiftKey: e.shiftKey,
490
+ isDrag: !1
491
+ });
492
+ }
429
493
  },
430
494
  onHeaderSelectionChangeHandler(e) {
431
- this.$emit("headerselectionchange", {
432
- field: e.field,
433
- event: e.event,
434
- target: this
495
+ if (this.computedSelectable.enabled) {
496
+ const t = this.getLeafDataItems();
497
+ this.gridContext.headerselectionchange({
498
+ select: e.event.target.checked ? t.reduce((i, s) => (this.$props.dataItemKey && E(this.$props.dataItemKey)(s) !== void 0 && (i[E(this.$props.dataItemKey)(s)] = !0), i), {}) : {},
499
+ field: e.field,
500
+ event: e.event,
501
+ target: this,
502
+ dataItems: t
503
+ });
504
+ }
505
+ },
506
+ selectionRelease(e) {
507
+ var t;
508
+ if (this.computedSelectable.enabled) {
509
+ const i = this.getLeafDataItems(), s = i[e.startRowIndex], l = i[e.endRowIndex], a = {
510
+ event: void 0,
511
+ target: this,
512
+ selectedField: "",
513
+ componentId: this.$props.id || this._gridId,
514
+ dataItems: i,
515
+ dataItem: null,
516
+ startDataItem: s,
517
+ endDataItem: l,
518
+ ...e
519
+ }, o = Je({
520
+ event: a,
521
+ selectedState: (t = this.$props.select) != null ? t : {},
522
+ // Thats kinda strange, even through the `dataItemKey` is required by the `getSelectedState`
523
+ // it does work correctly even without it
524
+ dataItemKey: this.$props.dataItemKey
525
+ });
526
+ this.raiseSelectionEvent(a, o);
527
+ }
528
+ },
529
+ clearSelection(e) {
530
+ this.computedSelectable.enabled && this.raiseSelectionEvent(e, {});
531
+ },
532
+ raiseSelectionEvent(e, t) {
533
+ this.computedSelectable.enabled && this.gridContext.selectionchange({
534
+ ...e,
535
+ select: t
435
536
  });
436
537
  },
538
+ moveToNextPage(e) {
539
+ var l, a, o, h;
540
+ const t = (o = (a = (l = this.gridContext.take) == null ? void 0 : l.value) != null ? a : this.$props.pageSize) != null ? o : 0, i = (((h = this.gridContext.skip) == null ? void 0 : h.value) || 0) + t, s = this.getTotal();
541
+ i < s && this.pageChangeHandler({
542
+ skip: i,
543
+ take: t
544
+ }, e);
545
+ },
546
+ moveToPrevPage(e) {
547
+ var s, l, a, o;
548
+ const t = (a = (l = (s = this.gridContext.take) == null ? void 0 : s.value) != null ? l : this.$props.pageSize) != null ? a : 0, i = (((o = this.gridContext.skip) == null ? void 0 : o.value) || 0) - t;
549
+ i >= 0 && this.pageChangeHandler({
550
+ skip: i,
551
+ take: t
552
+ }, e);
553
+ },
437
554
  pageChangeHandler(e, t) {
438
555
  this.raiseDataEvent("pagechange", {
439
556
  page: e,
@@ -469,20 +586,20 @@ const Oi = /* @__PURE__ */ ut({
469
586
  handleDetailExpandAction(e, t) {
470
587
  var i;
471
588
  if (this.detailExpandable.enabled) {
472
- const s = (i = this.gridContext.detailExpand) == null ? void 0 : i.value, r = kt(s != null ? s : {}, e);
589
+ const s = (i = this.gridContext.detailExpand) == null ? void 0 : i.value, l = Gt(s != null ? s : {}, e);
473
590
  this.gridContext.detailexpandchange({
474
591
  ...this.getArguments(t),
475
- detailExpand: r
592
+ detailExpand: l
476
593
  });
477
594
  }
478
595
  },
479
596
  handleGroupExpandAction(e, t) {
480
597
  var i;
481
598
  if (this.groupExpandable.enabled) {
482
- const s = (i = this.gridContext.groupExpand) == null ? void 0 : i.value, r = Ht(s != null ? s : [], e, this.groupExpandable);
599
+ const s = (i = this.gridContext.groupExpand) == null ? void 0 : i.value, l = Ft(s != null ? s : [], e, this.groupExpandable);
483
600
  this.$props.expandField || this.gridContext.groupexpandchange({
484
601
  ...this.getArguments(t),
485
- groupExpand: r
602
+ groupExpand: l
486
603
  });
487
604
  }
488
605
  },
@@ -492,41 +609,41 @@ const Oi = /* @__PURE__ */ ut({
492
609
  ...this.getArguments(s),
493
610
  ...t
494
611
  });
495
- else if (P.call(this, e))
612
+ else if (M.call(this, e))
496
613
  this.$emit(e, {
497
614
  ...this.getArguments(s),
498
615
  ...t
499
616
  });
500
- else if (P.call(this, "datastatechange")) {
501
- const r = {
617
+ else if (M.call(this, "datastatechange")) {
618
+ const l = {
502
619
  ...this.getDataState(),
503
620
  ...i
504
621
  };
505
622
  this.gridContext.datastatechange({
506
623
  ...this.getArguments(s),
507
- data: r,
508
- dataState: r
624
+ data: l,
625
+ dataState: l
509
626
  });
510
627
  }
511
628
  },
512
629
  columnReorder(e, t, i) {
513
- const s = this._columns[e], r = qe(this.currentColumnsState), l = s.depth, d = (u) => {
630
+ const s = this.columnsRef[e], l = et(this.currentColumnsState), a = s.depth, o = (u) => {
514
631
  do
515
632
  u++;
516
- while (u < this._columns.length && this._columns[u].depth > l);
633
+ while (u < this.columnsRef.length && this.columnsRef[u].depth > a);
517
634
  return u;
518
- }, h = this._columns.splice(e, d(e) - e);
519
- this._columns.splice(e < t ? d(t - h.length) : t, 0, ...h), this._columns.filter((u) => u.declarationIndex >= 0).forEach((u, m) => {
520
- u.orderIndex = m;
521
- const R = r.find((x) => x.id === u.id);
522
- R && (R.orderIndex = m);
635
+ }, h = this.columnsRef.splice(e, o(e) - e);
636
+ this.columnsRef.splice(e < t ? o(t - h.length) : t, 0, ...h), this.columnsRef.filter((u) => u.declarationIndex >= 0).forEach((u, f) => {
637
+ u.orderIndex = f;
638
+ const C = l.find((w) => w.id === u.id);
639
+ C && (C.orderIndex = f);
523
640
  });
524
- const c = this._columns[e].locked && this._columns[t].locked;
525
- St(this._columnsMap, this._columns, c || this.shouldUpdateLeftRightRef), yt(this._columnsMap, this._columns, c || this.shouldUpdateLeftRightRef), this.resizedRef && (this.shouldUpdateLeftRightRef = !1, this.resizedRef = !1);
526
- const f = this.getColumns();
641
+ const c = this.columnsRef[e].locked && this.columnsRef[t].locked;
642
+ Pt(this._columnsMap, this.columnsRef, c || this.shouldUpdateLeftRightRef), Lt(this._columnsMap, this.columnsRef, c || this.shouldUpdateLeftRightRef), this.resizedRef && (this.shouldUpdateLeftRightRef = !1, this.resizedRef = !1);
643
+ const m = this.getColumns();
527
644
  this.$emit("columnreorder", {
528
645
  target: this,
529
- columns: f,
646
+ columns: m,
530
647
  event: i,
531
648
  prev: e,
532
649
  next: t
@@ -535,19 +652,19 @@ const Oi = /* @__PURE__ */ ut({
535
652
  });
536
653
  },
537
654
  groupReorder(e, t, i) {
538
- var r;
539
- const s = (r = this.gridContext.group) == null ? void 0 : r.value;
655
+ var l;
656
+ const s = (l = this.gridContext.group) == null ? void 0 : l.value;
540
657
  s !== void 0 && (s.splice(t, 0, ...s.splice(e, 1)), this.groupChangeHandler(s, i));
541
658
  },
542
659
  columnToGroup(e, t, i) {
543
- var l;
544
- const s = this._columns[e].field;
660
+ var a;
661
+ const s = this.columnsRef[e].field;
545
662
  if (!s)
546
663
  return;
547
- const r = (((l = this.gridContext.group) == null ? void 0 : l.value) || []).slice();
548
- r.splice(t, 0, {
664
+ const l = (((a = this.gridContext.group) == null ? void 0 : a.value) || []).slice();
665
+ l.splice(t, 0, {
549
666
  field: s
550
- }), this.groupChangeHandler(r, i);
667
+ }), this.groupChangeHandler(l, i);
551
668
  },
552
669
  resetTableWidth() {
553
670
  var s;
@@ -555,51 +672,51 @@ const Oi = /* @__PURE__ */ ut({
555
672
  if (!this.columnResize.colGroupMain)
556
673
  return;
557
674
  const t = (s = this.columnResize.colGroupMain) == null ? void 0 : s.children;
558
- for (let r = 0; r < t.length; r++) {
559
- const l = t[r].width;
560
- if (!l)
675
+ for (let l = 0; l < t.length; l++) {
676
+ const a = t[l].width;
677
+ if (!a)
561
678
  return;
562
- e += parseFloat(l.toString());
679
+ e += parseFloat(a.toString());
563
680
  }
564
681
  e = Math.round(e), this._header && this._header.setWidth(e), this._footer && this._footer.setWidth(e);
565
- const i = $(this, "table");
682
+ const i = Oe(this, "table");
566
683
  i && e && (i.style.width = e + "px");
567
684
  },
568
- onResize(e, t, i, s, r, l, d) {
685
+ onResize(e, t, i, s, l, a, o) {
569
686
  this.resetTableWidth(), this.shouldUpdateLeftRightRef = !0, this.resizedRef = !0, this.$emit("columnresize", {
570
687
  columns: this.getColumns(),
571
688
  index: e,
572
- targetColumnId: d,
689
+ targetColumnId: o,
573
690
  event: s,
574
691
  newWidth: t,
575
692
  oldWidth: i,
576
- end: r,
693
+ end: l,
577
694
  target: this
578
- }), r && this.gridContext.columnsstatechange({
579
- columnsState: l
695
+ }), l && this.gridContext.columnsstatechange({
696
+ columnsState: a
580
697
  });
581
698
  },
582
699
  initColumnsState(e, t) {
583
700
  const i = (s) => {
584
- var l;
585
- const r = t.find((d) => d.id === s.id);
586
- if (r) {
587
- const d = {
588
- ...r
701
+ var a;
702
+ const l = t.find((o) => o.id === s.id);
703
+ if (l) {
704
+ const o = {
705
+ ...l
589
706
  };
590
- return d.children = (l = s.children) == null ? void 0 : l.map(i), d;
707
+ return o.children = (a = s.children) == null ? void 0 : a.map(i), o;
591
708
  }
592
709
  return s;
593
710
  };
594
711
  this.currentColumnsState = e.filter((s) => s.parentIndex === -1).map(i);
595
712
  },
596
713
  configureColumns(e, t) {
597
- e.filter((l) => l.columnType === "checkbox").forEach((l) => {
598
- l.width = l.width || "50px", l.defaultCell = E(Be), l.defaultHeaderCell = E(Xe), l._type = "edit";
599
- }), this.$props.selectedField && this._columns.filter((l) => l.field === this.$props.selectedField).forEach((l) => {
600
- l.width = l.width || "50px", l.internalCell = E(Be), l.internalHeaderCell = E(Xe);
714
+ e.filter((a) => a.columnType === "checkbox").forEach((a) => {
715
+ a.width = a.width || "50px", a.internalCell = T(Ye), a.internalHeaderCell = T(st), a._type = "edit", a.columnMenu = !1;
716
+ }), this.$props.selectedField && this.columnsRef.filter((a) => a.field === this.$props.selectedField).forEach((a) => {
717
+ a.width = a.width || "50px", a.internalCell = T(Ye), a.internalHeaderCell = T(st), a.columnMenu = !1;
601
718
  });
602
- const i = qe(this.currentColumnsState);
719
+ const i = et(this.currentColumnsState);
603
720
  this.initColumnsState(e, i);
604
721
  const s = {
605
722
  id: "",
@@ -621,55 +738,56 @@ const Oi = /* @__PURE__ */ ut({
621
738
  ariaColumnIndex: 0,
622
739
  isAccessible: !0
623
740
  };
624
- let r = 0;
741
+ let l = 0;
625
742
  if (this.detailExpandable.enabled && this.$props.detail && !this.$props.expandField) {
626
- const l = {
743
+ const a = {
627
744
  ...s,
628
745
  _type: "expand",
629
- id: z.generateNavigatableId(`${r++}`, "expand", "column"),
630
- defaultCell: E(Z),
631
- internalCell: E(Z),
746
+ id: D.generateNavigatableId(`${l++}`, "expand", "column"),
747
+ defaultCell: T(ie),
748
+ internalCell: T(ie),
632
749
  field: this.detailExpandable.column,
633
750
  headerClassName: this.hierarchClass
634
751
  };
635
- e.unshift(l), this.currentColumnsState.unshift(i.find((d) => d.id === l.id) || l);
752
+ e.unshift(a), this.currentColumnsState.unshift(i.find((o) => o.id === a.id) || a);
636
753
  }
637
- this.$props.expandField && P.call(this, "expandchange") && this.$props.detail && (e.unshift({
754
+ this.$props.expandField && M.call(this, "expandchange") && this.$props.detail && (e.unshift({
638
755
  ...s,
639
- internalCell: E(Z),
756
+ internalCell: T(ie),
640
757
  field: this.$props.expandField,
641
758
  headerClassName: "k-hierarchy-cell k-header",
642
- id: z.generateNavigatableId(`${e.length}`, this.idPrefix, "column"),
759
+ id: D.generateNavigatableId(`${e.length}`, this.idPrefix, "column"),
643
760
  ...this.expandColumn
644
- }), r++);
645
- for (let l = 0; l < t; l++) {
646
- const d = {
761
+ }), l++);
762
+ for (let a = 0; a < t; a++) {
763
+ const o = {
647
764
  ...s,
648
765
  isAccessible: !1,
649
- defaultCell: E(ee),
650
- internalCell: E(ee),
651
- id: z.generateNavigatableId(`${r++}`, "group", "column"),
766
+ defaultCell: T(se),
767
+ internalCell: T(se),
768
+ id: D.generateNavigatableId(`${l++}`, "group", "column"),
652
769
  field: "value",
653
- locked: this.$props.lockGroups
770
+ locked: this.$props.lockGroups,
771
+ columnMenu: !1
654
772
  };
655
- e.unshift(d), this.currentColumnsState.unshift(i.find((h) => h.id === d.id) || d);
773
+ e.unshift(o), this.currentColumnsState.unshift(i.find((h) => h.id === o.id) || o);
656
774
  }
657
- e.slice(r).forEach((l) => {
658
- l.parentIndex >= 0 && (l.parentIndex += r), l.rowSpannable = l.rowSpannable !== void 0 ? Je(l.rowSpannable) : this.computedRowSpannable;
775
+ e.slice(l).forEach((a) => {
776
+ a.parentIndex >= 0 && (a.parentIndex += l), a.rowSpannable = a.rowSpannable !== void 0 ? tt(a.rowSpannable) : this.computedRowSpannable;
659
777
  });
660
778
  },
661
779
  initColumns(e, t) {
662
- var l;
663
- this._columns = this.readColumnElements();
664
- const i = (l = this.gridContext.group) == null ? void 0 : l.value;
665
- this._columns.filter((d) => !d.hidden).length === 0 && (this._columns = qt(e, i, {
780
+ var a;
781
+ this.columnsRef = this.readColumnElements();
782
+ const i = (a = this.gridContext.group) == null ? void 0 : a.value;
783
+ this.columnsRef.filter((o) => !o.hidden).length === 0 && (this.columnsRef = di(e, i, {
666
784
  column: this.$props.expandField ? this.$props.expandField : this.groupExpandable.column
667
785
  }, {
668
786
  prevId: 0,
669
787
  idPrefix: this.idPrefix
670
- })), this.configureColumns(this._columns, t);
671
- const [s, r] = this.filterColumns(this._columns);
672
- this._columns = s, this.hiddenColumnsRef = r, this._columnsMap = Jt(this._columns, !0);
788
+ })), this.configureColumns(this.columnsRef, t);
789
+ const [s, l] = this.filterColumns(this.columnsRef);
790
+ this.columnsRef = s, this.hiddenColumnsRef = l, this._columnsMap = hi(this.columnsRef, !0);
673
791
  },
674
792
  resolveTitle(e) {
675
793
  const t = this.findColumnByField(e), i = t && (t.title || t.field);
@@ -694,14 +812,14 @@ const Oi = /* @__PURE__ */ ut({
694
812
  return null;
695
813
  },
696
814
  getDataState() {
697
- var l, d, h, c, f;
698
- const e = (l = this.gridContext.sort) == null ? void 0 : l.value, t = (d = this.gridContext.filter) == null ? void 0 : d.value, i = (h = this.gridContext.skip) == null ? void 0 : h.value, s = (c = this.gridContext.take) == null ? void 0 : c.value, r = (f = this.gridContext.group) == null ? void 0 : f.value;
815
+ var a, o, h, c, m;
816
+ const e = (a = this.gridContext.sort) == null ? void 0 : a.value, t = (o = this.gridContext.filter) == null ? void 0 : o.value, i = (h = this.gridContext.skip) == null ? void 0 : h.value, s = (c = this.gridContext.take) == null ? void 0 : c.value, l = (m = this.gridContext.group) == null ? void 0 : m.value;
699
817
  return {
700
818
  filter: t,
701
819
  sort: e,
702
820
  skip: i,
703
821
  take: s !== void 0 ? s : this.$props.pageSize,
704
- group: r
822
+ group: l
705
823
  };
706
824
  },
707
825
  getArguments(e) {
@@ -723,19 +841,19 @@ const Oi = /* @__PURE__ */ ut({
723
841
  }), t;
724
842
  },
725
843
  searchChange(e) {
726
- const t = this.$props.searchFields || this._columns.map((r) => r.field) || [], i = e.event.target.value, s = {
844
+ const t = this.$props.searchFields || this.columnsRef.map((l) => l.field) || [], i = e.event.target.value, s = {
727
845
  logic: "or",
728
- filters: t.filter((r) => r !== void 0).map((r) => {
729
- var l;
730
- return typeof r == "string" ? {
731
- field: r,
846
+ filters: t.filter((l) => l !== void 0).map((l) => {
847
+ var a;
848
+ return typeof l == "string" ? {
849
+ field: l,
732
850
  value: i,
733
851
  operator: "contains"
734
852
  } : {
735
853
  value: i,
736
- operator: (l = r.operator) != null ? l : "contains",
737
- field: r.field,
738
- ignoreCase: r.ignoreCase
854
+ operator: (a = l.operator) != null ? a : "contains",
855
+ field: l.field,
856
+ ignoreCase: l.ignoreCase
739
857
  };
740
858
  })
741
859
  };
@@ -746,28 +864,28 @@ const Oi = /* @__PURE__ */ ut({
746
864
  }, e);
747
865
  },
748
866
  getCellsToRender(e, t) {
749
- var l;
867
+ var a;
750
868
  const i = [];
751
- let s = null, r = 0;
752
- if (t.forEach((d, h) => {
753
- const c = parseFloat((d.width || "").toString()) || 10;
754
- if (r) {
755
- r--, s && (s.width += c);
869
+ let s = null, l = 0;
870
+ if (t.forEach((o, h) => {
871
+ const c = parseFloat((o.width || "").toString()) || 10;
872
+ if (l) {
873
+ l--, s && (s.width += c);
756
874
  return;
757
875
  }
758
- const f = Math.min(jt(d, e), t.length - h);
759
- r = f - 1, s = {
876
+ const m = Math.min(ni(o, e), t.length - h);
877
+ l = m - 1, s = {
760
878
  width: c,
761
- colSpan: f,
879
+ colSpan: m,
762
880
  columnIndex: h
763
881
  }, i.push(s);
764
882
  }), this.$props.columnVirtualization) {
765
- const d = this.scrollLeftRef || 0, h = this.tableWidth || parseFloat((((l = this.$attrs.style) == null ? void 0 : l.width) || "").toString());
766
- return ri({
883
+ const o = this.scrollLeftRef || 0, h = this.tableWidth || parseFloat((((a = this.$attrs.style) == null ? void 0 : a.width) || "").toString());
884
+ return $i({
767
885
  cellModels: i,
768
886
  columns: t,
769
887
  tableViewPortWidth: h,
770
- scrollLeft: d
888
+ scrollLeft: o
771
889
  });
772
890
  }
773
891
  return i;
@@ -786,8 +904,8 @@ const Oi = /* @__PURE__ */ ut({
786
904
  if (i)
787
905
  return i;
788
906
  }
789
- const s = this.$props.rowHeight || this._minRowHeightRef, r = this._containerHeightRef;
790
- return r && s ? Math.ceil(r / s * 1.5) : 0;
907
+ const s = this.$props.rowHeight || this._minRowHeightRef, l = this._containerHeightRef;
908
+ return l && s ? Math.ceil(l / s * 1.5) : 0;
791
909
  }
792
910
  },
793
911
  provide() {
@@ -795,121 +913,125 @@ const Oi = /* @__PURE__ */ ut({
795
913
  kendo: {
796
914
  dataItemKey: this.$props.dataItemKey,
797
915
  searchChange: this.searchChange,
916
+ selectionRelease: this.selectionRelease,
798
917
  dispatchGroupExpand: this.handleGroupExpandAction,
799
918
  dispatchDetailExpand: this.handleDetailExpandAction
800
919
  }
801
920
  };
802
921
  },
803
922
  setup(e) {
804
- const t = v(null), i = v(null), s = v(null), r = v(null), l = v(null), d = v(null), h = v(null), c = v(null), f = v(null), u = v(null), m = v(!0), R = v(!1), x = ct(si, {});
923
+ const t = S(null), i = S(null), s = S(null), l = S(null), a = S(null), o = S(null), h = S(null), c = S(null), m = S(null), u = S(null), f = S(!0), C = S(!1), w = xt(Ri, {});
805
924
  return {
806
925
  groupPanelDivRef: t,
807
926
  dropElementClueRef: i,
808
927
  dragElementClueRef: s,
809
- headerRef: r,
810
- footerRef: l,
811
- gridNavRef: d,
928
+ headerRef: l,
929
+ footerRef: a,
930
+ gridNavRef: o,
812
931
  colGroupRef: h,
813
932
  scrollContainerRef: c,
814
- scrollTableRef: f,
933
+ scrollTableRef: m,
815
934
  scrollTableBodyRef: u,
816
- gridContext: x,
817
- shouldUpdateLeftRightRef: m,
818
- resizedRef: R,
935
+ gridContext: w,
936
+ shouldUpdateLeftRightRef: f,
937
+ resizedRef: C,
819
938
  currentColumnsState: e.columnsState
820
939
  };
821
940
  },
822
941
  render() {
823
- var fe, me, Ce, be, $e, Re, xe, ve, Ie, we, Se, ye, He, ke, _e;
824
- const e = (fe = this.gridContext.sort) == null ? void 0 : fe.value, t = (me = this.gridContext.filter) == null ? void 0 : me.value, i = (Ce = this.gridContext.search) == null ? void 0 : Ce.value, s = (be = this.gridContext.skip) == null ? void 0 : be.value, r = ($e = this.gridContext.take) == null ? void 0 : $e.value, l = (Re = this.gridContext.group) == null ? void 0 : Re.value, d = (xe = this.gridContext.groupExpand) == null ? void 0 : xe.value, h = (ve = this.gridContext.detailExpand) == null ? void 0 : ve.value, c = !!(l != null && l.length);
825
- let f;
826
- this.currentColumnsState = (Ie = this.gridContext.columnsState) == null ? void 0 : Ie.value;
827
- const u = this.$props.autoProcessData === !0 ? {
942
+ var Ce, be, Re, $e, Ie, xe, ve, Se, ye, we, He, ke, Te, Ee, De, ze, _e;
943
+ const e = (Ce = this.gridContext.sort) == null ? void 0 : Ce.value, t = (be = this.gridContext.filter) == null ? void 0 : be.value, i = (Re = this.gridContext.search) == null ? void 0 : Re.value, s = ($e = this.gridContext.select) == null ? void 0 : $e.value, l = (Ie = this.gridContext.skip) == null ? void 0 : Ie.value, a = (xe = this.gridContext.take) == null ? void 0 : xe.value, o = (ve = this.gridContext.group) == null ? void 0 : ve.value, h = (Se = this.gridContext.groupExpand) == null ? void 0 : Se.value, c = (ye = this.gridContext.detailExpand) == null ? void 0 : ye.value, m = !!(o != null && o.length);
944
+ let u;
945
+ this.currentColumnsState = (we = this.gridContext.columnsState) == null ? void 0 : we.value;
946
+ const f = this.$props.autoProcessData === !0 ? {
828
947
  group: !0,
829
948
  sort: !0,
830
949
  filter: !0,
831
950
  search: !0,
832
951
  page: !0
833
952
  } : this.$props.autoProcessData;
834
- let m;
835
- const R = z.getIdPrefix(this.navigation);
836
- let x = [];
837
- Array.isArray(this.$props.dataItems) ? (x = this.$props.dataItems, m = (we = this.$props.total) != null ? we : x.length) : (x = ((Se = Bt(this.$props.dataItems, this.$props.collapsedGroups.length ? this.computedCollapsed : [], this.$props.uniqueField)) == null ? void 0 : Se.data) || [], m = (ke = (He = this.$props.total) != null ? He : (ye = this.$props.dataItems) == null ? void 0 : ye.total) != null ? ke : x.length);
838
- const ie = this.$props.groupable === !0 || V(this.$props.groupable) && this.$props.groupable.enabled !== !1;
839
- this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable = ie, this._virtualPageSize = this.calcVirtualPageSize();
840
- const N = x.length === m, tt = V(this.$props.groupable) && this.$props.groupable.footer || "none";
841
- if (this.currentData = [], u) {
842
- const a = u.page && !(this.isVirtualScroll && !this.$props.pageable), {
843
- data: C,
844
- total: S
845
- } = ii(x, {
846
- group: u.group ? l : void 0,
847
- sort: u.sort ? e : void 0,
848
- filter: vt(u.filter ? t : void 0, u.search ? i : void 0),
849
- ...a ? {
850
- take: this.$props.pageable ? r || 10 : r,
851
- skip: s || 0
953
+ let C;
954
+ const w = D.getIdPrefix(this.navigation);
955
+ let z = [];
956
+ Array.isArray(this.$props.dataItems) ? (z = this.$props.dataItems, C = (He = this.$props.total) != null ? He : z.length) : (z = ((ke = oi(this.$props.dataItems, this.$props.collapsedGroups.length ? this.computedCollapsed : [], this.$props.uniqueField)) == null ? void 0 : ke.data) || [], C = (De = (Ee = this.$props.total) != null ? Ee : (Te = this.$props.dataItems) == null ? void 0 : Te.total) != null ? De : z.length);
957
+ const ae = this.$props.groupable === !0 || N(this.$props.groupable) && this.$props.groupable.enabled !== !1;
958
+ this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable = ae, this._virtualPageSize = this.calcVirtualPageSize();
959
+ const O = z.length === C, ot = N(this.$props.groupable) && this.$props.groupable.footer || "none";
960
+ if (this.currentData = [], f) {
961
+ const r = f.page && !(this.isVirtualScroll && !this.$props.pageable), {
962
+ data: b,
963
+ total: y
964
+ } = bi(z, {
965
+ group: f.group ? o : void 0,
966
+ sort: f.sort ? e : void 0,
967
+ filter: Dt(f.filter ? t : void 0, f.search ? i : void 0),
968
+ ...r ? {
969
+ take: this.$props.pageable ? a || 10 : a,
970
+ skip: l || 0
852
971
  } : {}
853
972
  });
854
- x = C, m = (_e = this.$props.total) != null ? _e : S;
973
+ z = b, C = (ze = this.$props.total) != null ? ze : y;
855
974
  }
856
975
  const {
857
- resolvedGroupsCount: it,
858
- flattedData: st
859
- } = this.getFlatData(x, tt, N ? 0 : this.$props.skip || 0, l, h, d, this.$props.dataItemKey);
860
- this.currentData = st;
861
- const O = this._virtualSkipRef || 0;
862
- if (this._virtualTotal = m, this.isVirtualScroll) {
863
- let a = s || 0;
864
- if ((c || this.$props.pageable) && (a = O, this._virtualTotal = this.currentData.length), N || c || this.$props.pageable)
976
+ resolvedGroupsCount: nt,
977
+ flattedData: dt
978
+ } = this.getFlatData(z, ot, O ? 0 : this.$props.skip || 0, o, c, h, this.$props.dataItemKey);
979
+ this.currentData = dt;
980
+ const W = this._virtualSkipRef || 0;
981
+ if (this._virtualTotal = C, this.isVirtualScroll) {
982
+ let r = l || 0;
983
+ if ((m || this.$props.pageable) && (r = W, this._virtualTotal = this.currentData.length), O || m || this.$props.pageable)
865
984
  if (this._virtualPageSize === 0) {
866
- const C = Math.min(r || this.$props.pageSize || 20, this.currentData.length);
867
- f = this.currentData.slice(a, a + C);
985
+ const b = Math.min(a || this.$props.pageSize || 20, this.currentData.length);
986
+ u = this.currentData.slice(r, r + b);
868
987
  } else
869
- f = this.currentData.slice(a, a + this._virtualPageSize);
988
+ u = this.currentData.slice(r, r + this._virtualPageSize);
870
989
  }
871
- this.initializeVirtualization(), this.initColumns(this.$props.dataItems, it), this.columnResize.resizable = this.$props.resizable || !1, this.columnResize.columns = this._columns, this.columnResize.columnsState = gt(this.currentColumnsState || []), this.dragLogic.columns = this._columns;
872
- const se = this.$props.toolbar, M = this.$props.noRecords, k = this._columns.filter((a) => a.children.length === 0), re = ie && n(Mt, {
873
- ref: (a) => {
874
- this.groupPanelDivRef = a;
990
+ this.initializeVirtualization();
991
+ const ht = (_e = this.selectable) != null && _e.drag ? "none" : void 0;
992
+ this.initColumns(this.$props.dataItems, nt), this.columnResize.resizable = this.$props.resizable || !1, this.columnResize.columns = this.columnsRef, this.columnResize.columnsState = vt(this.currentColumnsState || []), this.dragLogic.columns = this.columnsRef;
993
+ const re = this.$props.toolbar, K = this.$props.noRecords, H = this.columnsRef.filter((r) => r.children.length === 0), oe = ae && d(Xt, {
994
+ ref: (r) => {
995
+ this.groupPanelDivRef = r;
875
996
  },
876
- group: l || [],
997
+ group: o || [],
877
998
  ariaControls: this._gridRoleElementId,
878
999
  onGroupChange: this.groupChangeHandler,
879
1000
  onPressHandler: this.dragLogic.pressHandler,
880
1001
  onDragHandler: this.dragLogic.dragHandler,
881
1002
  onReleaseHandler: this.dragLogic.releaseHandler,
882
1003
  resolveTitle: this.resolveTitle
883
- }, null), le = (this.dragLogic.reorderable || this.dragLogic.groupable) && X && document && document.body, ae = [le && n(Ut, {
884
- ref: (a) => {
885
- this.dropElementClueRef = a;
1004
+ }, null), ne = (this.dragLogic.reorderable || this.dragLogic.groupable) && te && document && document.body, de = [ne && d(ri, {
1005
+ ref: (r) => {
1006
+ this.dropElementClueRef = r;
886
1007
  }
887
- }, null), le && n(Kt, {
888
- ref: (a) => {
889
- this.dragElementClueRef = a;
1008
+ }, null), ne && d(ai, {
1009
+ ref: (r) => {
1010
+ this.dragElementClueRef = r;
890
1011
  }
891
- }, null)], rt = this.showLicenseWatermark ? n(ft, {
1012
+ }, null)], pt = this.showLicenseWatermark ? d(St, {
892
1013
  message: this.licenseMessage
893
- }, null) : null, W = this.$attrs.style, lt = W && V(W) && W["width"] || "";
894
- this.tableWidth = parseFloat(lt.toString());
895
- const oe = k.findIndex((a) => typeof a.colSpan == "function") > -1;
896
- let F;
897
- oe || (F = this.getCellsToRender(null, k));
898
- const ne = (this.$props.columnVirtualization ? this.getCellsToRender(null, k).map(({
899
- columnIndex: a
900
- }) => k[a]) : k).map(function(a, C) {
901
- return n("col", {
902
- key: a.id || `col-${C}`,
903
- width: a.width !== void 0 ? Math.floor(parseFloat(a.width.toString())) : void 0
1014
+ }, null) : null, B = this.$attrs.style, ct = B && N(B) && B["width"] || "";
1015
+ this.tableWidth = parseFloat(ct.toString());
1016
+ const ut = H.findIndex((r) => typeof r.colSpan == "function") > -1;
1017
+ let G;
1018
+ G = this.getCellsToRender({}, H);
1019
+ const he = (this.$props.columnVirtualization ? this.getCellsToRender({}, H).map(({
1020
+ columnIndex: r
1021
+ }) => H[r]) : H).map(function(r, b) {
1022
+ return d("col", {
1023
+ key: r.id || `col-${b}`,
1024
+ width: r.width !== void 0 ? Math.floor(parseFloat(r.width.toString())) : void 0
904
1025
  }, null);
905
- }, this), de = n(Ft, {
1026
+ }, this), pe = d(qt, {
906
1027
  size: this.$props.size,
907
1028
  columnResize: this.columnResize,
908
1029
  staticHeaders: this.$props.scrollable !== "none",
909
- ref: (a) => {
910
- this.headerRef = a;
1030
+ ref: (r) => {
1031
+ this.headerRef = r;
911
1032
  },
912
- headerRow: n(Lt, {
1033
+ onHeaderscroll: this.onHeaderScroll,
1034
+ headerRow: d(Jt, {
913
1035
  grid: this,
914
1036
  sort: e,
915
1037
  groupable: this.$props.groupable,
@@ -918,14 +1040,14 @@ const Oi = /* @__PURE__ */ ut({
918
1040
  onSortChange: this.sortChangeHandler,
919
1041
  filter: t,
920
1042
  filterable: this.$props.filterable,
921
- filterOperators: this.$props.filterOperators || je,
1043
+ filterOperators: this.$props.filterOperators || Ze,
922
1044
  onFilterChange: this.filterChangeHandler,
923
1045
  columnMenu: this.$props.columnMenu,
924
1046
  columnMenuIcon: this.$props.columnMenuIcon,
925
1047
  columnMenuAnimate: this.$props.columnMenuAnimate,
926
1048
  onSelectionchange: this.onHeaderSelectionChangeHandler,
927
- columns: this._columns,
928
- cellsToRender: F,
1049
+ columns: this.columnsRef,
1050
+ cellsToRender: G,
929
1051
  columnVirtualization: this.$props.columnVirtualization,
930
1052
  columnsInitial: this.$props.columns,
931
1053
  columnResize: this.columnResize,
@@ -936,14 +1058,16 @@ const Oi = /* @__PURE__ */ ut({
936
1058
  cellRender: this.$props.headerCellRender,
937
1059
  isRtl: this.isRtl,
938
1060
  isColCountDefined: this.getAriaColCount !== void 0,
939
- filterRow: this.$props.filterable && n(Pt, {
1061
+ headerSelectionValue: !!(s && this.currentData.filter((r) => r.rowType === "data").every((r) => s && this.$props.dataItemKey && E(this.$props.dataItemKey)(r.dataItem) !== void 0 ? s[E(this.$props.dataItemKey)(r.dataItem)] : void 0)),
1062
+ filterRow: this.$props.filterable && d(Qt, {
940
1063
  grid: this,
941
1064
  size: this.$props.size,
942
- columns: this._columns,
943
- cellsToRender: F,
1065
+ columns: this.columnsRef,
1066
+ columnsMap: this._columnsMap,
1067
+ cellsToRender: G,
944
1068
  columnVirtualization: this.$props.columnVirtualization,
945
1069
  filter: t,
946
- filterOperators: this.$props.filterOperators || je,
1070
+ filterOperators: this.$props.filterOperators || Ze,
947
1071
  onFilterchange: this.filterChangeHandler,
948
1072
  sort: this.$props.sort,
949
1073
  cellRender: this.$props.filterCellRender,
@@ -951,121 +1075,124 @@ const Oi = /* @__PURE__ */ ut({
951
1075
  ariaRowIndex: this._columnsMap.length + 1
952
1076
  }, null) || void 0
953
1077
  }, null),
954
- cols: ne
955
- }, null), he = this._columns.some((a) => !!a.footerCell) ? n(At, {
1078
+ cols: he
1079
+ }, null), ce = this.columnsRef.some((r) => !!r.footerCell) ? d(Yt, {
956
1080
  size: this.$props.size,
957
1081
  columnResize: this.columnResize,
958
1082
  staticHeaders: this.$props.scrollable !== "none",
959
- ref: (a) => {
960
- this.footerRef = a;
1083
+ ref: (r) => {
1084
+ this.footerRef = r;
961
1085
  },
962
- row: n(Vt, {
1086
+ row: d(Zt, {
963
1087
  isRtl: this.isRtl,
964
1088
  rowIndex: this.getAriaRowCount + 1,
965
- columns: this._columns
1089
+ columns: this.columnsRef
966
1090
  }, null),
967
- cols: ne
968
- }, null) : n("span", null, null), at = function(a, C, S, Ee, _) {
1091
+ cols: he
1092
+ }, null) : d("span", null, null), ft = function(r, b, y, Pe, k) {
969
1093
  let p = !1;
970
- const T = this.$props.selectedField, y = T ? We(T, a.dataItem) : void 0, I = this.$props.highlight && this.$props.dataItemKey && Y(this.$props.dataItemKey)(a.dataItem) !== void 0 ? this.$props.highlight[Y(this.$props.dataItemKey)(a.dataItem)] : void 0;
971
- return oe && (F = this.getCellsToRender(a.dataItem, k)), {
972
- row: F.map(function({
973
- columnIndex: b,
974
- colSpan: D
1094
+ const _ = this.$props.selectedField, L = this.$props.dataItemKey, A = s && L && E(L)(r.dataItem) !== void 0 ? s[E(L)(r.dataItem)] : void 0, x = _ ? je(_, r.dataItem) : A, v = this.$props.highlight && this.$props.dataItemKey && E(this.$props.dataItemKey)(r.dataItem) !== void 0 ? this.$props.highlight[E(this.$props.dataItemKey)(r.dataItem)] : void 0;
1095
+ return ut && (G = this.getCellsToRender(r.dataItem, H)), {
1096
+ row: G.map(function({
1097
+ columnIndex: R,
1098
+ colSpan: P
975
1099
  }) {
976
- var De, Ge, Fe, Le;
977
- const o = k[b];
978
- let w;
979
- if ((De = o.rowSpannable) != null && De.enabled && a.rowType === "data" && o.field && _) {
980
- const g = o.field ? (Fe = (Ge = o.rowSpannable).valueGetter) == null ? void 0 : Fe.call(Ge, a.dataItem, o.field) : null;
981
- w = {
1100
+ var Ge, Me, Ke, Ae;
1101
+ const n = H[R];
1102
+ let $;
1103
+ if ((Ge = n.rowSpannable) != null && Ge.enabled && r.rowType === "data" && n.field && k) {
1104
+ const g = n.field ? (Ke = (Me = n.rowSpannable).valueGetter) == null ? void 0 : Ke.call(Me, r.dataItem, n.field) : null;
1105
+ $ = {
982
1106
  value: g,
983
1107
  count: 1
984
- }, _[o.field] && ((Le = _[o.field]) == null ? void 0 : Le.value) === g && _[o.field] !== null ? (_[o.field].count++, w.count = null) : _[o.field] = w;
1108
+ }, k[n.field] && ((Ae = k[n.field]) == null ? void 0 : Ae.value) === g && k[n.field] !== null ? (k[n.field].count++, $.count = null) : k[n.field] = $;
985
1109
  }
986
- const L = `${o.className ? o.className + " " : ""}${o.locked ? "k-grid-content-sticky" : ""}`, H = o.locked && o.left !== void 0 ? this.isRtl ? {
987
- left: o.right + "px",
988
- right: o.left + "px"
1110
+ const Q = `${n.className ? n.className + " " : ""}${n.locked ? "k-grid-content-sticky" : ""}`, X = n.locked && n.left !== void 0 ? this.isRtl ? {
1111
+ left: n.right + "px",
1112
+ right: n.left + "px"
989
1113
  } : {
990
- left: o.left + "px",
991
- right: o.right + "px"
1114
+ left: n.left + "px",
1115
+ right: n.right + "px"
992
1116
  } : void 0;
993
- let ze = !1;
994
- if (o.editable && this.$props.editField) {
995
- const g = We(this.$props.editField, a.dataItem);
996
- (g === !0 || g === o.field) && (p = !0, ze = !0);
1117
+ let Le = !1;
1118
+ if (n.editable && this.$props.editField) {
1119
+ const g = je(this.$props.editField, r.dataItem);
1120
+ (g === !0 || g === n.field) && (p = !0, Le = !0);
997
1121
  }
998
- let A;
999
- o.cell && (A = o.cell);
1000
- const Te = this.computedCollapsed && this.computedCollapsed[a.level] && this.computedCollapsed[a.level].some((g) => g === Qe(a.dataItem, this.$props.uniqueField)), q = o.id ? o.id : b, J = Te ? !Te : a.expanded || a.dataItem.expanded, pt = o._type === "expand", Q = z.generateNavigatableId(`${C}-${String(b)}`, R, pt || a.rowType === "groupHeader" || a.rowType === "groupFooter" || o.field === "value" ? "nodata" : "cell");
1001
- return o.internalCell ? n(o.internalCell, {
1002
- key: q,
1003
- id: Q,
1004
- colSpan: D,
1005
- dataItem: a.dataItem,
1006
- field: o.field || "",
1007
- editor: o.editor,
1008
- format: o.format,
1009
- readFormat: o.readFormat,
1010
- type: o.type,
1011
- className: L,
1012
- render: A || this.$props.cellRender,
1122
+ let V;
1123
+ n.cell && (V = n.cell);
1124
+ const Fe = this.computedCollapsed && this.computedCollapsed[r.level] && this.computedCollapsed[r.level].some((g) => g === it(r.dataItem, this.$props.uniqueField)), Y = n.id ? n.id : R, Z = Fe ? !Fe : r.expanded || r.dataItem.expanded, Rt = n._type === "expand", ee = D.generateNavigatableId(`${b}-${String(R)}`, w, Rt || r.rowType === "groupHeader" || r.rowType === "groupFooter" || n.field === "value" ? "nodata" : "cell");
1125
+ return n.internalCell ? d(n.internalCell, {
1126
+ key: Y,
1127
+ id: ee,
1128
+ colSpan: P,
1129
+ dataItem: r.dataItem,
1130
+ field: n.field || "",
1131
+ editor: n.editor,
1132
+ format: n.format,
1133
+ readFormat: n.readFormat,
1134
+ type: n.type,
1135
+ columnType: n.columnType,
1136
+ className: Q,
1137
+ render: V || this.$props.cellRender,
1013
1138
  onChange: this.itemChange,
1014
1139
  onSelectionchange: (g) => this.selectionChangeHandler({
1015
1140
  event: g,
1016
- dataItem: a.dataItem,
1017
- dataIndex: S,
1018
- columnIndex: b
1141
+ dataItem: r.dataItem,
1142
+ dataIndex: y,
1143
+ columnIndex: R
1019
1144
  }),
1020
- columnIndex: b,
1021
- columnsCount: this._columns.filter((g) => !g.children.length).length,
1022
- rowType: a.rowType,
1023
- level: a.level,
1024
- expanded: J,
1025
- dataIndex: a.dataIndex,
1026
- style: H,
1027
- ariaColumnIndex: o.ariaColumnIndex,
1145
+ columnIndex: R,
1146
+ columnsCount: this.columnsRef.filter((g) => !g.children.length).length,
1147
+ rowType: r.rowType,
1148
+ level: r.level,
1149
+ expanded: Z,
1150
+ dataIndex: r.dataIndex,
1151
+ style: X,
1152
+ ariaColumnIndex: n.ariaColumnIndex,
1028
1153
  isRtl: this.isRtl,
1029
- isSelected: Array.isArray(y) && y.indexOf(b) > -1,
1030
- isHighlighted: !!(typeof I != "boolean" && I && o.field && I[o.field] === !0),
1031
- group: a.group,
1032
- rowSpan: w
1033
- }, null) : ze ? n(Gt, {
1034
- id: Q,
1035
- key: q,
1036
- colSpan: D,
1037
- dataItem: a.dataItem,
1038
- field: o.field || "",
1039
- editor: o.editor,
1040
- format: o.format,
1041
- readFormat: o.readFormat,
1042
- type: o.type,
1043
- className: L,
1044
- render: A || this.$props.cellRender,
1154
+ isSelected: !!((n == null ? void 0 : n._type) === "edit" ? x : Array.isArray(x) && x.indexOf(R) > -1),
1155
+ isHighlighted: !!(typeof v != "boolean" && v && n.field && v[n.field] === !0),
1156
+ group: r.group,
1157
+ rowSpan: $
1158
+ }, null) : Le ? d(jt, {
1159
+ id: ee,
1160
+ key: Y,
1161
+ colSpan: P,
1162
+ dataItem: r.dataItem,
1163
+ field: n.field || "",
1164
+ editor: n.editor,
1165
+ format: n.format,
1166
+ readFormat: n.readFormat,
1167
+ type: n.type,
1168
+ columnType: n.columnType,
1169
+ className: Q,
1170
+ render: V || this.$props.cellRender,
1045
1171
  onEdit: this.editHandler,
1046
1172
  onRemove: this.removeHandler,
1047
1173
  onSave: this.saveHandler,
1048
1174
  onCancel: this.cancelHandler,
1049
1175
  onChange: this.itemChange,
1050
- columnIndex: b,
1051
- columnsCount: this._columns.filter((g) => !g.children.length).length,
1052
- rowType: a.rowType,
1053
- level: a.level,
1054
- expanded: J,
1055
- dataIndex: a.dataIndex,
1056
- style: H
1057
- }, null) : n(Zt, {
1058
- key: q,
1059
- id: Q,
1060
- colSpan: D,
1061
- dataItem: a.dataItem,
1062
- field: o.field || "",
1063
- editor: o.editor,
1064
- format: o.format,
1065
- readFormat: o.readFormat,
1066
- type: o.type,
1067
- className: L,
1068
- render: A || this.$props.cellRender,
1176
+ columnIndex: R,
1177
+ columnsCount: this.columnsRef.filter((g) => !g.children.length).length,
1178
+ rowType: r.rowType,
1179
+ level: r.level,
1180
+ expanded: Z,
1181
+ dataIndex: r.dataIndex,
1182
+ style: X
1183
+ }, null) : d(gi, {
1184
+ key: Y,
1185
+ id: ee,
1186
+ colSpan: P,
1187
+ dataItem: r.dataItem,
1188
+ field: n.field || "",
1189
+ editor: n.editor,
1190
+ format: n.format,
1191
+ readFormat: n.readFormat,
1192
+ type: n.type,
1193
+ columnType: n.columnType,
1194
+ className: Q,
1195
+ render: V || this.$props.cellRender,
1069
1196
  onCellclick: this.cellClickHandler,
1070
1197
  onCellkeydown: this.cellKeydownHandler,
1071
1198
  onEdit: this.editHandler,
@@ -1075,239 +1202,256 @@ const Oi = /* @__PURE__ */ ut({
1075
1202
  onChange: this.itemChange,
1076
1203
  onSelectionchange: (g) => this.selectionChangeHandler({
1077
1204
  event: g,
1078
- dataItem: a.dataItem,
1079
- dataIndex: S,
1080
- columnIndex: b
1205
+ dataItem: r.dataItem,
1206
+ dataIndex: y,
1207
+ columnIndex: R
1081
1208
  }),
1082
- columnIndex: b,
1083
- columnsCount: this._columns.filter((g) => !g.children.length).length,
1084
- rowType: a.rowType,
1085
- level: a.level,
1086
- expanded: J,
1087
- dataIndex: a.dataIndex,
1088
- style: H,
1089
- rowSpan: w,
1090
- isSelected: Array.isArray(y) && y.indexOf(b) > -1,
1091
- isHighlighted: !!(typeof I != "boolean" && I && o.field && I[o.field] === !0)
1209
+ columnIndex: R,
1210
+ columnsCount: this.columnsRef.filter((g) => !g.children.length).length,
1211
+ rowType: r.rowType,
1212
+ level: r.level,
1213
+ expanded: Z,
1214
+ dataIndex: r.dataIndex,
1215
+ style: X,
1216
+ rowSpan: $,
1217
+ isSelected: !!((n == null ? void 0 : n._type) === "edit" ? x : Array.isArray(x) && x.indexOf(R) > -1),
1218
+ isHighlighted: !!(typeof v != "boolean" && v && n.field && v[n.field] === !0)
1092
1219
  }, null);
1093
1220
  }, this),
1094
1221
  isInEdit: p,
1095
- isSelected: typeof y == "boolean" && y,
1096
- isHighlighted: typeof I == "boolean" && I
1222
+ isSelected: typeof x == "boolean" && x,
1223
+ isHighlighted: typeof v == "boolean" && v
1097
1224
  };
1098
1225
  };
1099
- let ot = 0, K = [];
1100
- const U = !this.currentData.length, pe = (a) => a >= this.currentData.length - ot;
1101
- let B = 0;
1226
+ let gt = 0, U = [];
1227
+ const j = !this.currentData.length, ue = (r) => r >= this.currentData.length - gt;
1228
+ let q = 0;
1102
1229
  if (this.currentData.length) {
1103
- const a = this._columnsMap.length + (this.$props.filterable ? 1 : 0) + 1;
1104
- let C = this.$props.skip || 0, S = -1, Ee = 0;
1105
- const _ = this.computedRowSpannable.enabled ? {} : void 0;
1230
+ const r = this._columnsMap.length + (this.$props.filterable ? 1 : 0) + 1;
1231
+ let b = this.$props.skip || 0, y = -1, Pe = 0;
1232
+ const k = this.computedRowSpannable.enabled ? {} : void 0;
1106
1233
  if (this.isVirtualScroll) {
1107
- if (O > 0) {
1108
- const p = this.currentData.slice(0, O).filter((T) => T.rowType === "data").length;
1109
- S += p, C += p;
1234
+ if (W > 0) {
1235
+ const p = this.currentData.slice(0, W).filter((_) => _.rowType === "data").length;
1236
+ y += p, b += p;
1110
1237
  }
1111
- !this.$props.pageable && N && (S += this.$props.skip || 0);
1238
+ !this.$props.pageable && O && (y += this.$props.skip || 0);
1112
1239
  }
1113
- K = (f || this.currentData).map(function(p, T) {
1114
- p.rowType === "data" && S++;
1115
- const y = p.dataIndex % 2 !== 0, I = this.$props.dataItemKey && Y(this.$props.dataItemKey)(p.dataItem), b = T + C, D = I || "ai" + b, o = D + "_1", w = at.call(this, p, D, S, y, _), L = k.length - (this.detailExpandable.enabled ? 1 : 0) - ((l == null ? void 0 : l.length) || 0) || 1;
1116
- return B = b + a + Ee, [n(ei, {
1117
- key: D,
1240
+ U = (u || this.currentData).map(function(p, _) {
1241
+ p.rowType === "data" && y++;
1242
+ const L = p.dataIndex % 2 !== 0, A = this.$props.dataItemKey && E(this.$props.dataItemKey)(p.dataItem), x = _ + b, v = A || "ai" + x, R = v + "_1", P = ft.call(this, p, v, y, L, k), n = H.length - (this.detailExpandable.enabled ? 1 : 0) - ((o == null ? void 0 : o.length) || 0) || 1;
1243
+ return q = x + r + Pe, [d(mi, {
1244
+ key: v,
1118
1245
  item: p,
1119
- dataIndex: S,
1120
- ariaRowIndex: B,
1121
- absoluteRowIndex: b,
1122
- isAltRow: y,
1123
- isHidden: pe(T),
1246
+ dataIndex: y,
1247
+ ariaRowIndex: q,
1248
+ absoluteRowIndex: x,
1249
+ isAltRow: L,
1250
+ isHidden: ue(_),
1124
1251
  rowHeight: this.$props.rowHeight,
1125
- isSelected: w.isSelected,
1126
- isHighlighted: w.isHighlighted,
1127
- isInEdit: w.isInEdit,
1252
+ isSelected: P.isSelected,
1253
+ isHighlighted: P.isHighlighted,
1254
+ isInEdit: P.isInEdit,
1128
1255
  rowType: p.rowType,
1129
- onRowclick: (H) => this.rowClick(H, p),
1130
- onRowdblclick: (H) => this.rowDoubleClick(H, p),
1256
+ onRowclick: ($) => this.rowClick($, p),
1257
+ onRowdblclick: ($) => this.rowDoubleClick($, p),
1131
1258
  render: this.$props.rowRender,
1132
1259
  class: this.$props.rowClass ? this.$props.rowClass(p) : ""
1133
1260
  }, {
1134
- default: () => [w.row]
1135
- }), this.$props.detail && p.rowType === "data" && (p.expanded || p.dataItem.expanded) && n("tr", {
1136
- key: o,
1137
- class: y ? "k-table-row k-table-alt-row k-detail-row" : "k-table-row k-detail-row",
1261
+ default: () => [P.row]
1262
+ }), this.$props.detail && p.rowType === "data" && (p.expanded || p.dataItem.expanded) && d("tr", {
1263
+ key: R,
1264
+ class: L ? "k-table-row k-table-alt-row k-detail-row" : "k-table-row k-detail-row",
1138
1265
  style: {
1139
- visibility: pe(T) ? "hidden" : "",
1266
+ visibility: ue(_) ? "hidden" : "",
1140
1267
  height: this.$props.detailRowHeight + "px"
1141
1268
  },
1142
1269
  role: "row",
1143
- "aria-rowindex": B
1144
- }, [l == null ? void 0 : l.map(function(H) {
1145
- return n(ee, {
1270
+ "aria-rowindex": q
1271
+ }, [o == null ? void 0 : o.map(function($) {
1272
+ return d(se, {
1146
1273
  id: "",
1147
1274
  dataIndex: p.dataIndex,
1148
- field: H.field,
1275
+ field: $.field,
1149
1276
  dataItem: p.dataItem,
1150
- key: `group-${H.field}-${p.dataIndex}`,
1277
+ key: `group-${$.field}-${p.dataIndex}`,
1151
1278
  group: p.group
1152
1279
  }, null);
1153
- }, this), (this.$props.expandField || this.detailExpandable.enabled) && n(Tt, {
1154
- id: z.generateNavigatableId(`${o}-dhcell`, R)
1155
- }, null), n(Dt, {
1280
+ }, this), (this.$props.expandField || this.detailExpandable.enabled) && d(Bt, {
1281
+ id: D.generateNavigatableId(`${R}-dhcell`, w)
1282
+ }, null), d(Ut, {
1156
1283
  dataItem: p.dataItem,
1157
1284
  dataIndex: p.dataIndex,
1158
- colSpan: L,
1159
- ariaColIndex: 2 + (l ? l.length : 0),
1285
+ colSpan: n,
1286
+ ariaColIndex: 2 + (o ? o.length : 0),
1160
1287
  detail: this.$props.detail ? this.$props.detail : void 0,
1161
- id: z.generateNavigatableId(`${o}-dcell`, R)
1288
+ id: D.generateNavigatableId(`${R}-dcell`, w)
1162
1289
  }, null)])];
1163
1290
  }, this);
1164
1291
  }
1165
- const nt = this.$props.pageable && n(It, {
1292
+ const mt = this.$props.pageable && d(zt, {
1166
1293
  class: "k-grid-pager",
1167
1294
  onPagesizechange: this.pageChangeHandler,
1168
1295
  onPagechange: this.pageChangeHandler,
1169
1296
  size: this.$props.size,
1170
- total: m,
1171
- skip: s || 0,
1172
- pageSize: (r !== void 0 ? r : this.$props.pageSize) || 10,
1173
- messagesMap: et,
1174
- settings: wt(this.$props.pageable || {})
1175
- }, null), ue = Ae.call(this, {
1176
- h: Pe,
1297
+ total: C,
1298
+ skip: l || 0,
1299
+ pageSize: (a !== void 0 ? a : this.$props.pageSize) || 10,
1300
+ messagesMap: rt,
1301
+ settings: _t(this.$props.pageable || {})
1302
+ }, null), fe = Ne.call(this, {
1303
+ h: Ve,
1177
1304
  template: this.$props.pager,
1178
- defaultRendering: nt,
1305
+ defaultRendering: mt,
1179
1306
  additionalProps: {
1180
1307
  ...this.$props,
1181
1308
  skip: this.$props.skip || 0,
1182
- messagesMap: et
1309
+ messagesMap: rt
1183
1310
  },
1184
1311
  additionalListeners: {
1185
1312
  pagesizechange: this.pageChangeHandler,
1186
1313
  pagechange: this.pageChangeHandler
1187
1314
  }
1188
- }), dt = (a) => e && e.filter((C) => C.field === a).length > 0, ce = n("colgroup", {
1189
- ref: G(this, "colGroup")
1190
- }, [k.map(function(a, C) {
1191
- return n("col", {
1192
- key: a.id || `col-${C}`,
1193
- class: dt(a.field) ? "k-sorted" : void 0,
1194
- width: a.width !== void 0 ? a.width.toString().indexOf("%") !== -1 ? a.width : Math.floor(parseFloat(a.width.toString())) + "px" : void 0
1315
+ }), Ct = (r) => e && e.filter((b) => b.field === r).length > 0, ge = d("colgroup", {
1316
+ ref: F(this, "colGroup")
1317
+ }, [H.map(function(r, b) {
1318
+ return d("col", {
1319
+ key: r.id || `col-${b}`,
1320
+ class: Ct(r.field) ? "k-sorted" : void 0,
1321
+ width: r.width !== void 0 ? r.width.toString().indexOf("%") !== -1 ? r.width : Math.floor(parseFloat(r.width.toString())) + "px" : void 0
1195
1322
  }, null);
1196
- }, this)]), ge = {
1323
+ }, this)]), me = {
1197
1324
  height: this.getCorrectHeight,
1198
1325
  ...this.$attrs.style
1199
- }, ht = n("div", {
1326
+ }, bt = d("div", {
1200
1327
  class: "k-loading-mask"
1201
- }, [n("div", {
1328
+ }, [d("div", {
1202
1329
  class: "k-loading-color"
1203
- }, null), n("div", {
1330
+ }, null), d("div", {
1204
1331
  style: {
1205
1332
  height: "100%",
1206
1333
  display: "flex",
1207
1334
  justifyContent: "center",
1208
1335
  alignItems: "center"
1209
1336
  }
1210
- }, [n(zt, {
1337
+ }, [d(Wt, {
1211
1338
  size: "large",
1212
1339
  type: "converging-spinner"
1213
- }, null)])]), j = this.$props.showLoader && Ae.call(this, {
1214
- h: Pe,
1340
+ }, null)])]), J = this.$props.showLoader && Ne.call(this, {
1341
+ h: Ve,
1215
1342
  template: this.$props.loader,
1216
- defaultRendering: ht
1343
+ defaultRendering: bt
1217
1344
  });
1218
- return this.$props.scrollable === "none" ? n(Ke, {
1345
+ return this.$props.scrollable === "none" ? d(qe, {
1219
1346
  ref: "navRef",
1220
1347
  id: this._gridId,
1221
- navigatable: this.$props.navigatable
1348
+ navigatable: this.$props.navigatable,
1349
+ scrollable: this.$props.scrollable,
1350
+ columnVirtualization: this.$props.columnVirtualization
1222
1351
  }, {
1223
- default: () => [n(Ue, {
1224
- ref: (a) => {
1225
- this.gridNavRef = a;
1352
+ default: () => [d(Xe, {
1353
+ ref: (r) => {
1354
+ this.gridNavRef = r;
1226
1355
  },
1356
+ columnsRef: this.columnsRef,
1227
1357
  currentData: this.currentData,
1228
1358
  id: this.$props.id,
1229
- style: ge,
1230
- class: this.nonscrollableWrapperClass
1359
+ style: me,
1360
+ class: this.nonscrollableWrapperClass,
1361
+ onMovetonextpage: this.moveToNextPage,
1362
+ onMovetoprevpage: this.moveToPrevPage,
1363
+ onColumnreorder: this.columnReorder,
1364
+ onKeyboardselectionchange: this.onKeyboardSelectionChangeHandler
1231
1365
  }, {
1232
- default: () => [se, re, n("div", {
1366
+ default: () => [re, oe, d("div", {
1233
1367
  role: "grid",
1234
1368
  class: "k-grid-aria-root",
1235
1369
  id: this._gridRoleElementId,
1236
1370
  "aria-colcount": this.getAriaColCount,
1237
1371
  "aria-rowcount": this.getAriaRowCount
1238
- }, [n("table", {
1372
+ }, [d(ei, {
1373
+ selectable: this.computedSelectable,
1239
1374
  class: "k-table",
1240
- style: {
1241
- tableLayout: "fixed"
1242
- },
1243
- ref: G(this, "table"),
1244
- role: "none"
1245
- }, [Me(" "), ce, de, n("tbody", {
1246
- class: "k-table-tbody",
1247
- "data-keyboardnavbody": !0
1248
- }, [K, Me(" "), j]), he]), U && n(Ze, {
1249
- id: z.generateNavigatableId("no-records", R)
1375
+ ref: F(this, "table")
1376
+ }, {
1377
+ default: () => [ge, pe, d("tbody", {
1378
+ class: "k-table-tbody",
1379
+ "data-keyboardnavbody": !0
1380
+ }, [U, It(" "), J]), ce]
1381
+ }), j && d(at, {
1382
+ id: D.generateNavigatableId("no-records", w)
1250
1383
  }, {
1251
- default: () => [M.length ? M : n(Ye, null, null)]
1252
- })]), ue, j, ae]
1384
+ default: () => [K.length ? K : d(lt, null, null)]
1385
+ })]), fe, J, de]
1253
1386
  })]
1254
- }) : n(Ke, {
1387
+ }) : d(qe, {
1255
1388
  ref: "navRef",
1256
1389
  id: this._gridId,
1257
- navigatable: this.$props.navigatable
1390
+ navigatable: this.$props.navigatable,
1391
+ scrollable: this.$props.scrollable,
1392
+ columnVirtualization: this.$props.columnVirtualization
1258
1393
  }, {
1259
- default: () => [n(Ue, {
1260
- ref: (a) => {
1261
- this.gridNavRef = a;
1394
+ default: () => [d(Xe, {
1395
+ ref: (r) => {
1396
+ this.gridNavRef = r;
1262
1397
  },
1263
1398
  currentData: this.currentData,
1264
1399
  id: this.$props.id,
1265
- style: ge,
1266
- class: this.scrollableWrapperClass
1400
+ style: me,
1401
+ class: this.scrollableWrapperClass,
1402
+ onMovetonextpage: this.moveToNextPage,
1403
+ onMovetoprevpage: this.moveToPrevPage,
1404
+ onColumnreorder: this.columnReorder,
1405
+ onKeyboardselectionchange: this.onKeyboardSelectionChangeHandler
1267
1406
  }, {
1268
- default: () => [se, re, n("div", {
1407
+ default: () => [re, oe, d("div", {
1269
1408
  role: "grid",
1270
1409
  class: "k-grid-aria-root",
1271
1410
  id: this._gridRoleElementId,
1272
1411
  "aria-colcount": this.getAriaColCount,
1273
1412
  "aria-rowcount": this.getAriaRowCount
1274
- }, [de, n("div", {
1413
+ }, [pe, d("div", {
1275
1414
  class: "k-grid-container",
1276
1415
  role: "presentation"
1277
- }, [n("div", {
1416
+ }, [d("div", {
1278
1417
  role: "presentation",
1279
- ref: G(this, "scrollContainer"),
1418
+ ref: F(this, "scrollContainer"),
1280
1419
  class: "k-grid-content k-virtual-content",
1281
1420
  onScroll: this.scrollHandler
1282
- }, [n("div", {
1421
+ }, [d("div", {
1283
1422
  class: "k-grid-table-wrap",
1284
1423
  role: "presentation"
1285
- }, [n("table", {
1286
- role: "none",
1287
- class: this.gridTableClass,
1288
- ref: G(this, "table")
1289
- }, [ce, n("tbody", {
1290
- class: "k-table-tbody",
1291
- role: "rowgroup",
1292
- "data-keyboardnavbody": !0,
1293
- ref: G(this, "tableBody")
1294
- }, [K])]), U && n(Ze, {
1295
- id: z.generateNavigatableId("no-records", R)
1424
+ }, [d(ti, {
1425
+ selectable: this.computedSelectable,
1426
+ tableClassName: this.gridTableClass,
1427
+ tableStyle: {
1428
+ userSelect: ht
1429
+ },
1430
+ ref: F(this, "table")
1431
+ }, {
1432
+ default: () => [ge, d("tbody", {
1433
+ class: "k-table-tbody",
1434
+ role: "rowgroup",
1435
+ "data-keyboardnavbody": !0,
1436
+ ref: F(this, "tableBody")
1437
+ }, [U])]
1438
+ }), j && d(at, {
1439
+ id: D.generateNavigatableId("no-records", w)
1296
1440
  }, {
1297
- default: () => [M.length ? M : n(Ye, null, null)]
1298
- })]), !U && n("div", {
1441
+ default: () => [K.length ? K : d(lt, null, null)]
1442
+ })]), !j && d("div", {
1299
1443
  class: "k-height-container",
1300
1444
  role: "presentation"
1301
- }, [n("div", {
1302
- ref: G(this, "scrollHeightContainer"),
1445
+ }, [d("div", {
1446
+ ref: F(this, "scrollHeightContainer"),
1303
1447
  style: this.$props.scrollable === "virtual" ? {
1304
1448
  height: this._containerHeightRef + "px"
1305
1449
  } : {}
1306
- }, null)])])]), he, rt]), ue, j, ae]
1450
+ }, null)])])]), ce, pt]), fe, J, de]
1307
1451
  })]
1308
1452
  });
1309
1453
  }
1310
1454
  });
1311
1455
  export {
1312
- Oi as Grid
1456
+ rs as Grid
1313
1457
  };