@progress/kendo-vue-grid 7.1.0-develop.7 → 8.0.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.
package/Grid.mjs CHANGED
@@ -5,46 +5,46 @@
5
5
  * Licensed under commercial license. See LICENSE.md in the package root for more information
6
6
  *-------------------------------------------------------------------------------------------
7
7
  */
8
- import { defineComponent as at, createVNode as n, h as De, createTextVNode as ot, ref as x, inject as nt, markRaw as _ } from "vue";
9
- import { isObject as A, cloneArray as dt, canUseDOM as Q, WatermarkOverlay as ht, getter as X, getTemplate as Te, setRef as G, hasListener as L, getRef as $, RowHeightService as pt, setScrollbarWidth as ut, kendoThemeMaps as Ge, uGrid as ct, isRtl as Fe, validatePackage as gt, shouldShowValidationUI as ft, getLicenseMessage as mt, guid as Le, getNestedValue as Pe } from "@progress/kendo-vue-common";
10
- import { tableKeyboardNavigationTools as E, combineFilters as Ct, Pager as bt, normalize as $t, TableKeyboardNavigationProvider as Me, updateLeft as Rt, updateRight as xt, groupExpandReducer as vt, detailExpandReducer as wt, getDetailExpandableOptions as It, getGroupExpandableOptions as St } from "@progress/kendo-vue-data-tools";
11
- import { Loader as yt } from "@progress/kendo-vue-indicators";
12
- import { GridNav as Ae } from "./GridNav.mjs";
13
- import { GridSelectionCell as Ve } from "./cells/GridSelectionCell.mjs";
8
+ import { defineComponent as ot, createVNode as n, h as De, createTextVNode as nt, ref as x, inject as dt, markRaw as E } from "vue";
9
+ import { isObject as V, cloneArray as ht, canUseDOM as Q, WatermarkOverlay as pt, getter as X, getTemplate as Ge, setRef as G, hasListener as P, getRef as $, RowHeightService as ut, setScrollbarWidth as ct, kendoThemeMaps as Fe, uGrid as gt, isRtl as Le, validatePackage as ft, shouldShowValidationUI as mt, getLicenseMessage as Ct, guid as Pe, getNestedValue as Me } from "@progress/kendo-vue-common";
10
+ import { tableKeyboardNavigationTools as z, combineFilters as bt, Pager as $t, normalize as Rt, TableKeyboardNavigationProvider as Ae, updateLeft as xt, updateRight as vt, groupExpandReducer as It, detailExpandReducer as wt, getDetailExpandableOptions as St, getGroupExpandableOptions as yt } from "@progress/kendo-vue-data-tools";
11
+ import { Loader as Ht } from "@progress/kendo-vue-indicators";
12
+ import { GridNav as Ve } from "./GridNav.mjs";
13
+ import { GridSelectionCell as Ne } from "./cells/GridSelectionCell.mjs";
14
14
  import { GridHierarchyCell as Y } from "./cells/GridHierarchyCell.mjs";
15
- import { GridDetailHierarchyCell as Ht } from "./cells/GridDetailHierarchyCell.mjs";
16
- import { GridDetailCell as kt } from "./cells/GridDetailCell.mjs";
17
- import { GridEditCell as _t } from "./cells/GridEditCell.mjs";
18
- import { Header as Et } from "./header/Header.mjs";
19
- import { HeaderRow as zt } from "./header/HeaderRow.mjs";
15
+ import { GridDetailHierarchyCell as kt } from "./cells/GridDetailHierarchyCell.mjs";
16
+ import { GridDetailCell as _t } from "./cells/GridDetailCell.mjs";
17
+ import { GridEditCell as Et } from "./cells/GridEditCell.mjs";
18
+ import { Header as zt } from "./header/Header.mjs";
19
+ import { HeaderRow as Tt } from "./header/HeaderRow.mjs";
20
20
  import { FilterRow as Dt } from "./header/FilterRow.mjs";
21
- import { GroupPanel as Tt } from "./header/GroupPanel.mjs";
22
- import { Footer as Gt } from "./footer/Footer.mjs";
23
- import { FooterRow as Ft } from "./footer/FooterRow.mjs";
24
- import { operators as Ne } from "./filterCommon.mjs";
25
- import { VirtualScroll as Lt } from "./VirtualScroll.mjs";
26
- import { ColumnResize as Pt } from "./drag/ColumnResize.mjs";
27
- import { CommonDragLogic as Mt } from "./drag/CommonDragLogic.mjs";
28
- import { DragClue as At } from "./drag/DragClue.mjs";
29
- import { DropClue as Vt } from "./drag/DropClue.mjs";
30
- import { applyExpandedState as Nt, getColSpan as Ot, autoGenerateColumns as Wt, mapColumns as Kt, getFlatColumnsState as Oe, getRowSpanOptions as We, groupedFirstItemValue as Ke, calcRowHeight as Ut, flatData as Bt, readColumns as jt } from "./utils/main.mjs";
31
- import { GridCell as qt } from "./cells/GridCell.mjs";
21
+ import { GroupPanel as Gt } from "./header/GroupPanel.mjs";
22
+ import { Footer as Ft } from "./footer/Footer.mjs";
23
+ import { FooterRow as Lt } from "./footer/FooterRow.mjs";
24
+ import { operators as Oe } from "./filterCommon.mjs";
25
+ import { VirtualScroll as Pt } from "./VirtualScroll.mjs";
26
+ import { ColumnResize as Mt } from "./drag/ColumnResize.mjs";
27
+ import { CommonDragLogic as At } from "./drag/CommonDragLogic.mjs";
28
+ import { DragClue as Vt } from "./drag/DragClue.mjs";
29
+ import { DropClue as Nt } from "./drag/DropClue.mjs";
30
+ import { applyExpandedState as Ot, getColSpan as Wt, autoGenerateColumns as Kt, mapColumns as Ut, getFlatColumnsState as We, getRowSpanOptions as Ke, groupedFirstItemValue as Ue, calcRowHeight as Bt, flatData as jt, readColumns as qt } from "./utils/main.mjs";
31
+ import { GridCell as Jt } from "./cells/GridCell.mjs";
32
32
  import { GridGroupCell as Z } from "./cells/GridGroupCell.mjs";
33
- import { GridRow as Jt } from "./rows/GridRow.mjs";
34
- import { gridProps as Qt } from "./common.mjs";
35
- import { GridHeaderSelectionCell as Ue } from "./header/GridHeaderSelectionCell.mjs";
36
- import { GridNoRecords as Be } from "./components/noRecords/GridNoRecords.mjs";
37
- import { GridNoRecordsContainer as je } from "./components/noRecords/GridNoRecordsContainer.mjs";
33
+ import { GridRow as Qt } from "./rows/GridRow.mjs";
34
+ import { gridProps as Xt } from "./common.mjs";
35
+ import { GridHeaderSelectionCell as Be } from "./header/GridHeaderSelectionCell.mjs";
36
+ import { GridNoRecords as je } from "./components/noRecords/GridNoRecords.mjs";
37
+ import { GridNoRecordsContainer as qe } from "./components/noRecords/GridNoRecordsContainer.mjs";
38
38
  import { packageMetadata as ee } from "./package-metadata.mjs";
39
- import { pagerMessagesMap as qe } from "./messages/messagesMap.mjs";
40
- import { process as Xt } from "@progress/kendo-data-query";
41
- import { KendoKey as Yt } from "./key.mjs";
42
- import { getVirtualCellsToRender as Zt } from "./utils/virtualColumns.mjs";
43
- const Pi = /* @__PURE__ */ at({
39
+ import { pagerMessagesMap as Je } from "./messages/messagesMap.mjs";
40
+ import { process as Yt } from "@progress/kendo-data-query";
41
+ import { KendoKey as Zt } from "./key.mjs";
42
+ import { getVirtualCellsToRender as ei } from "./utils/virtualColumns.mjs";
43
+ const Mi = /* @__PURE__ */ ot({
44
44
  name: "KendoGrid",
45
45
  inheritAttrs: !1,
46
46
  props: {
47
- ...Qt,
47
+ ...Xt,
48
48
  toolbar: {
49
49
  type: Object
50
50
  },
@@ -89,18 +89,18 @@ const Pi = /* @__PURE__ */ at({
89
89
  }
90
90
  },
91
91
  created() {
92
- gt(ee), this.showLicenseWatermark = ft(ee), this.licenseMessage = mt(ee), this.initialHeight = null, this._columns = [], this.vsRef = new Lt(), this.dragLogic = new Mt(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new Pt(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 = Le(), this._gridRoleElementId = Le(), this.slicedCurrentData = void 0, this._prevTotal = void 0, this._containerHeightRef = 0, this._minRowHeightRef = 0, this._virtualSkipRef = 0, this.wrapperScrollTopRef = 0, this.scrollLeftRef = 0;
92
+ ft(ee), this.showLicenseWatermark = mt(ee), this.licenseMessage = Ct(ee), this.initialHeight = null, this._columns = [], this.vsRef = new Pt(), this.dragLogic = new At(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new Mt(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 = Pe(), this._gridRoleElementId = Pe(), this.slicedCurrentData = void 0, this._prevTotal = void 0, this._containerHeightRef = 0, this._minRowHeightRef = 0, this._virtualSkipRef = 0, this.wrapperScrollTopRef = 0, this.scrollLeftRef = 0;
93
93
  },
94
94
  mounted() {
95
95
  var t, i;
96
96
  this.setRefs();
97
- const e = Fe(this._element);
97
+ const e = Le(this._element);
98
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 = Q && (window == null ? void 0 : window.ResizeObserver) && new ResizeObserver(this.calculateMedia), document != null && document.body && this.resizeObserver && this.resizeObserver.observe(document.body);
99
99
  },
100
100
  updated() {
101
101
  var t;
102
102
  this.setRefs();
103
- const e = Fe(this._element);
103
+ const e = Le(this._element);
104
104
  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
105
  },
106
106
  unmounted() {
@@ -114,16 +114,16 @@ const Pi = /* @__PURE__ */ at({
114
114
  return this.$props.navigatable ? this.gridId : "";
115
115
  },
116
116
  groupExpandable() {
117
- return St(typeof this.$props.groupable == "object" && this.$props.groupable.enabled !== !1 ? this.$props.groupable.expandable : this.$props.groupable);
117
+ return yt(typeof this.$props.groupable == "object" && this.$props.groupable.enabled !== !1 ? this.$props.groupable.expandable : this.$props.groupable);
118
118
  },
119
119
  hierarchClass() {
120
- return ct.hierarchyCell({});
120
+ return gt.hierarchyCell({});
121
121
  },
122
122
  computedRowSpannable() {
123
- return We(this.$props.rowSpannable);
123
+ return Ke(this.$props.rowSpannable);
124
124
  },
125
125
  detailExpandable() {
126
- return It(!!this.$props.detail);
126
+ return St(!!this.$props.detail);
127
127
  },
128
128
  nonscrollableWrapperClass() {
129
129
  const {
@@ -132,7 +132,7 @@ const Pi = /* @__PURE__ */ at({
132
132
  return {
133
133
  "k-grid": !0,
134
134
  "k-grid-md": !e,
135
- [`k-grid-${Ge.sizeMap[e] || e}`]: e,
135
+ [`k-grid-${Fe.sizeMap[e] || e}`]: e,
136
136
  [t]: !!t
137
137
  };
138
138
  },
@@ -153,7 +153,7 @@ const Pi = /* @__PURE__ */ at({
153
153
  "k-table": !0,
154
154
  "k-grid-table": !0,
155
155
  "k-grid-md": !e,
156
- [`k-table-${Ge.sizeMap[e] || e}`]: e
156
+ [`k-table-${Fe.sizeMap[e] || e}`]: e
157
157
  };
158
158
  },
159
159
  getCorrectHeight() {
@@ -162,7 +162,7 @@ const Pi = /* @__PURE__ */ at({
162
162
  currentGroupable() {
163
163
  var t;
164
164
  const e = (t = this.gridContext.group) == null ? void 0 : t.value;
165
- return this.$props.groupable === !0 && (e == null ? void 0 : e.length) || A(this.$props.groupable) && this.$props.groupable.enabled !== !1;
165
+ return this.$props.groupable === !0 && (e == null ? void 0 : e.length) || V(this.$props.groupable) && this.$props.groupable.enabled !== !1;
166
166
  },
167
167
  computedCollapsed() {
168
168
  let e = [];
@@ -189,7 +189,7 @@ const Pi = /* @__PURE__ */ at({
189
189
  },
190
190
  methods: {
191
191
  readColumnElements() {
192
- return jt(this.$props.columns, this.currentColumnsState, {
192
+ return qt(this.$props.columns, this.currentColumnsState, {
193
193
  prevId: 0,
194
194
  idPrefix: this.idPrefix
195
195
  });
@@ -215,7 +215,7 @@ const Pi = /* @__PURE__ */ at({
215
215
  })];
216
216
  },
217
217
  getFlatData(e, t, i, s, r, l, d) {
218
- const h = [], c = Bt(h, e, t, {
218
+ const h = [], c = jt(h, e, t, {
219
219
  index: i
220
220
  }, s !== void 0, r, l, this.groupExpandable.defaultExpand, d, this.$props.expandField);
221
221
  return {
@@ -259,13 +259,13 @@ const Pi = /* @__PURE__ */ at({
259
259
  depth: d,
260
260
  colSpan: h,
261
261
  rowSpan: c,
262
- index: m,
262
+ index: f,
263
263
  kFirst: u,
264
- children: C,
264
+ children: m,
265
265
  ...R
266
266
  } = s;
267
- return C.length ? {
268
- children: t(C),
267
+ return m.length ? {
268
+ children: t(m),
269
269
  ...R
270
270
  } : R;
271
271
  }));
@@ -281,7 +281,7 @@ const Pi = /* @__PURE__ */ at({
281
281
  this.dragLogic.refGroupPanelDiv(l);
282
282
  }
283
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(), ut();
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();
285
285
  },
286
286
  gridUnmounted() {
287
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();
@@ -302,7 +302,7 @@ const Pi = /* @__PURE__ */ at({
302
302
  },
303
303
  initializeVirtualization() {
304
304
  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 pt(this._virtualTotal, t)));
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 ut(this._virtualTotal, t)));
306
306
  },
307
307
  setContainerHeight() {
308
308
  const e = $(this, "scrollContainer");
@@ -310,7 +310,7 @@ const Pi = /* @__PURE__ */ at({
310
310
  },
311
311
  setMinRowHeight() {
312
312
  if (!this._minRowHeightRef && !this.$props.rowHeight) {
313
- const t = Ut($(this, "tableBody"));
313
+ const t = Bt($(this, "tableBody"));
314
314
  t && (this._minRowHeightRef = t, this.$forceUpdate());
315
315
  }
316
316
  },
@@ -345,7 +345,7 @@ const Pi = /* @__PURE__ */ at({
345
345
  let t = this.computedCollapsed, i = t[e.level];
346
346
  const s = this.$props.uniqueField, r = function(h, c) {
347
347
  return h.value === e.dataItem.value && c === e.level;
348
- }, l = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, r, 0, null) : e.dataItem, d = Ke(l || e.dataItem, s);
348
+ }, l = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, r, 0, null) : e.dataItem, d = Ue(l || e.dataItem, s);
349
349
  if (e.value) {
350
350
  if (i && i.length) {
351
351
  const h = i.indexOf(d);
@@ -357,9 +357,9 @@ const Pi = /* @__PURE__ */ at({
357
357
  },
358
358
  itemChange(e) {
359
359
  var s;
360
- const t = L.call(this, "itemchange"), i = (s = this.gridContext.group) == null ? void 0 : s.value;
360
+ const t = P.call(this, "itemchange"), i = (s = this.gridContext.group) == null ? void 0 : s.value;
361
361
  if (e.field === this.$props.expandField || (i || this.$props.detail) && e.field === void 0) {
362
- L.call(this, "expandchange") && e.dataItem && this.$emit("expandchange", {
362
+ P.call(this, "expandchange") && e.dataItem && this.$emit("expandchange", {
363
363
  ...this.getArguments(e.event),
364
364
  collapsedGroups: this.updateGroupCollapsed(e),
365
365
  dataItem: e.dataItem,
@@ -479,7 +479,7 @@ const Pi = /* @__PURE__ */ at({
479
479
  handleGroupExpandAction(e, t) {
480
480
  var i;
481
481
  if (this.groupExpandable.enabled) {
482
- const s = (i = this.gridContext.groupExpand) == null ? void 0 : i.value, r = vt(s != null ? s : [], e, this.groupExpandable);
482
+ const s = (i = this.gridContext.groupExpand) == null ? void 0 : i.value, r = It(s != null ? s : [], e, this.groupExpandable);
483
483
  this.$props.expandField || this.$emit("groupexpandchange", {
484
484
  ...this.getArguments(t),
485
485
  groupExpand: r
@@ -492,12 +492,12 @@ const Pi = /* @__PURE__ */ at({
492
492
  ...this.getArguments(s),
493
493
  ...t
494
494
  });
495
- else if (L.call(this, e))
495
+ else if (P.call(this, e))
496
496
  this.$emit(e, {
497
497
  ...this.getArguments(s),
498
498
  ...t
499
499
  });
500
- else if (L.call(this, "datastatechange")) {
500
+ else if (P.call(this, "datastatechange")) {
501
501
  const r = {
502
502
  ...this.getDataState(),
503
503
  ...i
@@ -510,23 +510,23 @@ const Pi = /* @__PURE__ */ at({
510
510
  }
511
511
  },
512
512
  columnReorder(e, t, i) {
513
- const s = this._columns[e], r = Oe(this.currentColumnsState), l = s.depth, d = (u) => {
513
+ const s = this._columns[e], r = We(this.currentColumnsState), l = s.depth, d = (u) => {
514
514
  do
515
515
  u++;
516
516
  while (u < this._columns.length && this._columns[u].depth > l);
517
517
  return u;
518
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, C) => {
520
- u.orderIndex = C;
521
- const R = r.find((I) => I.id === u.id);
522
- R && (R.orderIndex = C);
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((w) => w.id === u.id);
522
+ R && (R.orderIndex = m);
523
523
  });
524
524
  const c = this._columns[e].locked && this._columns[t].locked;
525
- Rt(this._columnsMap, this._columns, c || this.shouldUpdateLeftRightRef), xt(this._columnsMap, this._columns, c || this.shouldUpdateLeftRightRef), this.resizedRef && (this.shouldUpdateLeftRightRef = !1, this.resizedRef = !1);
526
- const m = this.getColumns();
525
+ xt(this._columnsMap, this._columns, c || this.shouldUpdateLeftRightRef), vt(this._columnsMap, this._columns, c || this.shouldUpdateLeftRightRef), this.resizedRef && (this.shouldUpdateLeftRightRef = !1, this.resizedRef = !1);
526
+ const f = this.getColumns();
527
527
  this.$emit("columnreorder", {
528
528
  target: this,
529
- columns: m,
529
+ columns: f,
530
530
  event: i,
531
531
  prev: e,
532
532
  next: t
@@ -595,11 +595,11 @@ const Pi = /* @__PURE__ */ at({
595
595
  },
596
596
  configureColumns(e, t) {
597
597
  e.filter((l) => l.columnType === "checkbox").forEach((l) => {
598
- l.width = l.width || "50px", l.defaultCell = _(Ve), l.defaultHeaderCell = _(Ue), l._type = "edit";
598
+ l.width = l.width || "50px", l.defaultCell = E(Ne), l.defaultHeaderCell = E(Be), l._type = "edit";
599
599
  }), this.$props.selectedField && this._columns.filter((l) => l.field === this.$props.selectedField).forEach((l) => {
600
- l.width = l.width || "50px", l.internalCell = _(Ve), l.internalHeaderCell = _(Ue);
600
+ l.width = l.width || "50px", l.internalCell = E(Ne), l.internalHeaderCell = E(Be);
601
601
  });
602
- const i = Oe(this.currentColumnsState);
602
+ const i = We(this.currentColumnsState);
603
603
  this.initColumnsState(e, i);
604
604
  const s = {
605
605
  id: "",
@@ -626,50 +626,50 @@ const Pi = /* @__PURE__ */ at({
626
626
  const l = {
627
627
  ...s,
628
628
  _type: "expand",
629
- id: E.generateNavigatableId(`${r++}`, "expand", "column"),
630
- defaultCell: _(Y),
631
- internalCell: _(Y),
629
+ id: z.generateNavigatableId(`${r++}`, "expand", "column"),
630
+ defaultCell: E(Y),
631
+ internalCell: E(Y),
632
632
  field: this.detailExpandable.column,
633
633
  headerClassName: this.hierarchClass
634
634
  };
635
635
  e.unshift(l), this.currentColumnsState.unshift(i.find((d) => d.id === l.id) || l);
636
636
  }
637
- this.$props.expandField && L.call(this, "expandchange") && this.$props.detail && (e.unshift({
637
+ this.$props.expandField && P.call(this, "expandchange") && this.$props.detail && (e.unshift({
638
638
  ...s,
639
- internalCell: _(Y),
639
+ internalCell: E(Y),
640
640
  field: this.$props.expandField,
641
641
  headerClassName: "k-hierarchy-cell k-header",
642
- id: E.generateNavigatableId(`${e.length}`, this.idPrefix, "column"),
642
+ id: z.generateNavigatableId(`${e.length}`, this.idPrefix, "column"),
643
643
  ...this.expandColumn
644
644
  }), r++);
645
645
  for (let l = 0; l < t; l++) {
646
646
  const d = {
647
647
  ...s,
648
648
  isAccessible: !1,
649
- defaultCell: _(Z),
650
- internalCell: _(Z),
651
- id: E.generateNavigatableId(`${r++}`, "group", "column"),
649
+ defaultCell: E(Z),
650
+ internalCell: E(Z),
651
+ id: z.generateNavigatableId(`${r++}`, "group", "column"),
652
652
  field: "value",
653
653
  locked: this.$props.lockGroups
654
654
  };
655
655
  e.unshift(d), this.currentColumnsState.unshift(i.find((h) => h.id === d.id) || d);
656
656
  }
657
657
  e.slice(r).forEach((l) => {
658
- l.parentIndex >= 0 && (l.parentIndex += r), l.rowSpannable = l.rowSpannable !== void 0 ? We(l.rowSpannable) : this.computedRowSpannable;
658
+ l.parentIndex >= 0 && (l.parentIndex += r), l.rowSpannable = l.rowSpannable !== void 0 ? Ke(l.rowSpannable) : this.computedRowSpannable;
659
659
  });
660
660
  },
661
661
  initColumns(e, t) {
662
662
  var l;
663
663
  this._columns = this.readColumnElements();
664
664
  const i = (l = this.gridContext.group) == null ? void 0 : l.value;
665
- this._columns.filter((d) => !d.hidden).length === 0 && (this._columns = Wt(e, i, {
665
+ this._columns.filter((d) => !d.hidden).length === 0 && (this._columns = Kt(e, i, {
666
666
  column: this.$props.expandField ? this.$props.expandField : this.groupExpandable.column
667
667
  }, {
668
668
  prevId: 0,
669
669
  idPrefix: this.idPrefix
670
670
  })), this.configureColumns(this._columns, t);
671
671
  const [s, r] = this.filterColumns(this._columns);
672
- this._columns = s, this.hiddenColumnsRef = r, this._columnsMap = Kt(this._columns, !0);
672
+ this._columns = s, this.hiddenColumnsRef = r, this._columnsMap = Ut(this._columns, !0);
673
673
  },
674
674
  resolveTitle(e) {
675
675
  const t = this.findColumnByField(e), i = t && (t.title || t.field);
@@ -694,8 +694,8 @@ const Pi = /* @__PURE__ */ at({
694
694
  return null;
695
695
  },
696
696
  getDataState() {
697
- var l, d, h, c, m;
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 = (m = this.gridContext.group) == null ? void 0 : m.value;
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;
699
699
  return {
700
700
  filter: t,
701
701
  sort: e,
@@ -755,15 +755,15 @@ const Pi = /* @__PURE__ */ at({
755
755
  r--, s && (s.width += c);
756
756
  return;
757
757
  }
758
- const m = Math.min(Ot(d, e), t.length - h);
759
- r = m - 1, s = {
758
+ const f = Math.min(Wt(d, e), t.length - h);
759
+ r = f - 1, s = {
760
760
  width: c,
761
- colSpan: m,
761
+ colSpan: f,
762
762
  columnIndex: h
763
763
  }, i.push(s);
764
764
  }), this.$props.columnVirtualization) {
765
765
  const d = this.scrollLeftRef || 0, h = this.tableWidth || parseFloat((((l = this.$attrs.style) == null ? void 0 : l.width) || "").toString());
766
- return Zt({
766
+ return ei({
767
767
  cellModels: i,
768
768
  columns: t,
769
769
  tableViewPortWidth: h,
@@ -801,7 +801,7 @@ const Pi = /* @__PURE__ */ at({
801
801
  };
802
802
  },
803
803
  setup(e) {
804
- const t = x(null), i = x(null), s = x(null), r = x(null), l = x(null), d = x(null), h = x(null), c = x(null), m = x(null), u = x(null), C = x(!0), R = x(!1), I = nt(Yt, {});
804
+ const t = x(null), i = x(null), s = x(null), r = x(null), l = x(null), d = x(null), h = x(null), c = x(null), f = x(null), u = x(null), m = x(!0), R = x(!1), w = dt(Zt, {});
805
805
  return {
806
806
  groupPanelDivRef: t,
807
807
  dropElementClueRef: i,
@@ -811,19 +811,19 @@ const Pi = /* @__PURE__ */ at({
811
811
  gridNavRef: d,
812
812
  colGroupRef: h,
813
813
  scrollContainerRef: c,
814
- scrollTableRef: m,
814
+ scrollTableRef: f,
815
815
  scrollTableBodyRef: u,
816
- gridContext: I,
817
- shouldUpdateLeftRightRef: C,
816
+ gridContext: w,
817
+ shouldUpdateLeftRightRef: m,
818
818
  resizedRef: R,
819
819
  currentColumnsState: e.columnsState
820
820
  };
821
821
  },
822
822
  render() {
823
- var ge, fe, me, Ce, be, $e, Re, xe, ve, we, Ie;
824
- const e = (ge = this.gridContext.sort) == null ? void 0 : ge.value, t = (fe = this.gridContext.filter) == null ? void 0 : fe.value, i = (me = this.gridContext.search) == null ? void 0 : me.value, s = (Ce = this.gridContext.skip) == null ? void 0 : Ce.value, r = (be = this.gridContext.take) == null ? void 0 : be.value, l = ($e = this.gridContext.group) == null ? void 0 : $e.value, d = (Re = this.gridContext.groupExpand) == null ? void 0 : Re.value, h = (xe = this.gridContext.detailExpand) == null ? void 0 : xe.value, c = !!(l != null && l.length);
825
- let m;
826
- this.currentColumnsState = (ve = this.gridContext.columnsState) == null ? void 0 : ve.value;
823
+ var fe, me, Ce, be, $e, Re, xe, ve, Ie, we, Se;
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
827
  const u = this.$props.autoProcessData === !0 ? {
828
828
  group: !0,
829
829
  sort: !0,
@@ -831,45 +831,45 @@ const Pi = /* @__PURE__ */ at({
831
831
  search: !0,
832
832
  page: !0
833
833
  } : this.$props.autoProcessData;
834
- let C = this.$props.total || 0;
835
- const R = E.getIdPrefix(this.navigation);
836
- let I = [];
837
- Array.isArray(this.$props.dataItems) ? I = this.$props.dataItems : this.$props.dataItems && (I = Nt(this.$props.dataItems, this.$props.collapsedGroups.length ? this.computedCollapsed : [], this.$props.uniqueField).data, C = C || this.$props.dataItems.total);
838
- const te = this.$props.groupable === !0 || A(this.$props.groupable) && this.$props.groupable.enabled !== !1;
834
+ let m = this.$props.total || 0;
835
+ const R = z.getIdPrefix(this.navigation);
836
+ let w = [];
837
+ Array.isArray(this.$props.dataItems) ? w = this.$props.dataItems : this.$props.dataItems && (w = Ot(this.$props.dataItems, this.$props.collapsedGroups.length ? this.computedCollapsed : [], this.$props.uniqueField).data, m = m || this.$props.dataItems.total);
838
+ const te = this.$props.groupable === !0 || V(this.$props.groupable) && this.$props.groupable.enabled !== !1;
839
839
  this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable = te, this._virtualPageSize = this.calcVirtualPageSize();
840
- const V = I.length === C, Je = A(this.$props.groupable) && this.$props.groupable.footer || "none";
840
+ const N = w.length === m, Qe = V(this.$props.groupable) && this.$props.groupable.footer || "none";
841
841
  if (this.currentData = [], u) {
842
842
  const a = u.page && !(this.isVirtualScroll && !this.$props.pageable), {
843
- data: f,
843
+ data: C,
844
844
  total: S
845
- } = Xt(I, {
845
+ } = Yt(w, {
846
846
  group: u.group ? l : void 0,
847
847
  sort: u.sort ? e : void 0,
848
- filter: Ct(u.filter ? t : void 0, u.search ? i : void 0),
848
+ filter: bt(u.filter ? t : void 0, u.search ? i : void 0),
849
849
  ...a ? {
850
850
  take: this.$props.pageable ? r || 10 : r,
851
851
  skip: s || 0
852
852
  } : {}
853
853
  });
854
- I = f, C = (we = this.$props.total) != null ? we : S;
854
+ w = C, m = (we = this.$props.total) != null ? we : S;
855
855
  }
856
856
  const {
857
- resolvedGroupsCount: Qe,
858
- flattedData: Xe
859
- } = this.getFlatData(I, Je, V ? 0 : this.$props.skip || 0, l, h, d, this.$props.dataItemKey);
860
- this.currentData = Xe;
861
- const N = this._virtualSkipRef || 0;
862
- if (this._virtualTotal = C, this.isVirtualScroll) {
857
+ resolvedGroupsCount: Xe,
858
+ flattedData: Ye
859
+ } = this.getFlatData(w, Qe, N ? 0 : this.$props.skip || 0, l, h, d, this.$props.dataItemKey);
860
+ this.currentData = Ye;
861
+ const O = this._virtualSkipRef || 0;
862
+ if (this._virtualTotal = m, this.isVirtualScroll) {
863
863
  let a = s || 0;
864
- if ((c || this.$props.pageable) && (a = N, this._virtualTotal = this.currentData.length), V || c || this.$props.pageable)
864
+ if ((c || this.$props.pageable) && (a = O, this._virtualTotal = this.currentData.length), N || c || this.$props.pageable)
865
865
  if (this._virtualPageSize === 0) {
866
- const f = Math.min(r || this.$props.pageSize || 20, this.currentData.length);
867
- m = this.currentData.slice(a, a + f);
866
+ const C = Math.min(r || this.$props.pageSize || 20, this.currentData.length);
867
+ f = this.currentData.slice(a, a + C);
868
868
  } else
869
- m = this.currentData.slice(a, a + this._virtualPageSize);
869
+ f = this.currentData.slice(a, a + this._virtualPageSize);
870
870
  }
871
- this.initializeVirtualization(), this.initColumns(this.$props.dataItems, Qe), this.columnResize.resizable = this.$props.resizable || !1, this.columnResize.columns = this._columns, this.columnResize.columnsState = dt(this.currentColumnsState || []), this.dragLogic.columns = this._columns;
872
- const ie = this.$props.toolbar, P = this.$props.noRecords, z = this._columns.filter((a) => a.children.length === 0), se = te && n(Tt, {
871
+ this.initializeVirtualization(), this.initColumns(this.$props.dataItems, Xe), this.columnResize.resizable = this.$props.resizable || !1, this.columnResize.columns = this._columns, this.columnResize.columnsState = ht(this.currentColumnsState || []), this.dragLogic.columns = this._columns;
872
+ const ie = this.$props.toolbar, M = this.$props.noRecords, k = this._columns.filter((a) => a.children.length === 0), se = te && n(Gt, {
873
873
  ref: (a) => {
874
874
  this.groupPanelDivRef = a;
875
875
  },
@@ -880,22 +880,36 @@ const Pi = /* @__PURE__ */ at({
880
880
  onDragHandler: this.dragLogic.dragHandler,
881
881
  onReleaseHandler: this.dragLogic.releaseHandler,
882
882
  resolveTitle: this.resolveTitle
883
- }, null), re = (this.dragLogic.reorderable || this.dragLogic.groupable) && Q && document && document.body, le = [re && n(Vt, {
883
+ }, null), re = (this.dragLogic.reorderable || this.dragLogic.groupable) && Q && document && document.body, le = [re && n(Nt, {
884
884
  ref: (a) => {
885
885
  this.dropElementClueRef = a;
886
886
  }
887
- }, null), re && n(At, {
887
+ }, null), re && n(Vt, {
888
888
  ref: (a) => {
889
889
  this.dragElementClueRef = a;
890
890
  }
891
- }, null)], ae = n(Et, {
891
+ }, null)], Ze = this.showLicenseWatermark ? n(pt, {
892
+ message: this.licenseMessage
893
+ }, null) : null, W = this.$attrs.style, et = W && V(W) && W["width"] || "";
894
+ this.tableWidth = parseFloat(et.toString());
895
+ const ae = k.findIndex((a) => typeof a.colSpan == "function") > -1;
896
+ let F;
897
+ ae || (F = this.getCellsToRender(null, k));
898
+ const oe = (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
904
+ }, null);
905
+ }, this), ne = n(zt, {
892
906
  size: this.$props.size,
893
907
  columnResize: this.columnResize,
894
908
  staticHeaders: this.$props.scrollable !== "none",
895
909
  ref: (a) => {
896
910
  this.headerRef = a;
897
911
  },
898
- headerRow: n(zt, {
912
+ headerRow: n(Tt, {
899
913
  grid: this,
900
914
  sort: e,
901
915
  groupable: this.$props.groupable,
@@ -904,13 +918,15 @@ const Pi = /* @__PURE__ */ at({
904
918
  onSortChange: this.sortChangeHandler,
905
919
  filter: t,
906
920
  filterable: this.$props.filterable,
907
- filterOperators: this.$props.filterOperators || Ne,
921
+ filterOperators: this.$props.filterOperators || Oe,
908
922
  onFilterChange: this.filterChangeHandler,
909
923
  columnMenu: this.$props.columnMenu,
910
924
  columnMenuIcon: this.$props.columnMenuIcon,
911
925
  columnMenuAnimate: this.$props.columnMenuAnimate,
912
926
  onSelectionchange: this.onHeaderSelectionChangeHandler,
913
927
  columns: this._columns,
928
+ cellsToRender: F,
929
+ columnVirtualization: this.$props.columnVirtualization,
914
930
  columnsInitial: this.$props.columns,
915
931
  columnResize: this.columnResize,
916
932
  onPressHandler: this.dragLogic.pressHandler,
@@ -924,8 +940,10 @@ const Pi = /* @__PURE__ */ at({
924
940
  grid: this,
925
941
  size: this.$props.size,
926
942
  columns: this._columns,
943
+ cellsToRender: F,
944
+ columnVirtualization: this.$props.columnVirtualization,
927
945
  filter: t,
928
- filterOperators: this.$props.filterOperators || Ne,
946
+ filterOperators: this.$props.filterOperators || Oe,
929
947
  onFilterchange: this.filterChangeHandler,
930
948
  sort: this.$props.sort,
931
949
  cellRender: this.$props.filterCellRender,
@@ -933,82 +951,65 @@ const Pi = /* @__PURE__ */ at({
933
951
  ariaRowIndex: this._columnsMap.length + 1
934
952
  }, null) || void 0
935
953
  }, null),
936
- cols: z.map(function(a, f) {
937
- return n("col", {
938
- key: f.toString(),
939
- width: a.width !== void 0 ? Math.floor(parseFloat(a.width.toString())) : void 0
940
- }, null);
941
- }, this)
942
- }, null), oe = this._columns.some((a) => !!a.footerCell) ? n(Gt, {
954
+ cols: oe
955
+ }, null), de = this._columns.some((a) => !!a.footerCell) ? n(Ft, {
943
956
  size: this.$props.size,
944
957
  columnResize: this.columnResize,
945
958
  staticHeaders: this.$props.scrollable !== "none",
946
959
  ref: (a) => {
947
960
  this.footerRef = a;
948
961
  },
949
- row: n(Ft, {
962
+ row: n(Lt, {
950
963
  isRtl: this.isRtl,
951
964
  rowIndex: this.getAriaRowCount + 1,
952
965
  columns: this._columns
953
966
  }, null),
954
- cols: z.map(function(a, f) {
955
- return n("col", {
956
- key: f.toString(),
957
- width: a.width !== void 0 ? Math.floor(parseFloat(a.width.toString())) : void 0
958
- }, null);
959
- }, this)
960
- }, null) : n("span", null, null), Ye = this.showLicenseWatermark ? n(ht, {
961
- message: this.licenseMessage
962
- }, null) : null, O = this.$attrs.style, Ze = O && A(O) && O["width"] || "";
963
- this.tableWidth = parseFloat(Ze.toString());
964
- const ne = z.findIndex((a) => typeof a.colSpan == "function") > -1;
965
- let W;
966
- ne || (W = this.getCellsToRender(null, z));
967
- const et = function(a, f, S, Se, k) {
967
+ cols: oe
968
+ }, null) : n("span", null, null), tt = function(a, C, S, ye, _) {
968
969
  let p = !1;
969
- const D = this.$props.selectedField, y = D ? Pe(D, a.dataItem) : void 0, v = this.$props.highlight && this.$props.dataItemKey && X(this.$props.dataItemKey)(a.dataItem) !== void 0 ? this.$props.highlight[X(this.$props.dataItemKey)(a.dataItem)] : void 0;
970
- return ne && (W = this.getCellsToRender(a.dataItem, z)), {
971
- row: W.map(function({
970
+ const T = this.$props.selectedField, y = T ? Me(T, a.dataItem) : void 0, v = this.$props.highlight && this.$props.dataItemKey && X(this.$props.dataItemKey)(a.dataItem) !== void 0 ? this.$props.highlight[X(this.$props.dataItemKey)(a.dataItem)] : void 0;
971
+ return ae && (F = this.getCellsToRender(a.dataItem, k)), {
972
+ row: F.map(function({
972
973
  columnIndex: b,
973
- colSpan: T
974
+ colSpan: D
974
975
  }) {
975
- var ke, _e, Ee, ze;
976
- const o = z[b];
977
- let w;
978
- if ((ke = o.rowSpannable) != null && ke.enabled && a.rowType === "data" && o.field && k) {
979
- const g = o.field ? (Ee = (_e = o.rowSpannable).valueGetter) == null ? void 0 : Ee.call(_e, a.dataItem, o.field) : null;
980
- w = {
976
+ var _e, Ee, ze, Te;
977
+ const o = k[b];
978
+ let I;
979
+ if ((_e = o.rowSpannable) != null && _e.enabled && a.rowType === "data" && o.field && _) {
980
+ const g = o.field ? (ze = (Ee = o.rowSpannable).valueGetter) == null ? void 0 : ze.call(Ee, a.dataItem, o.field) : null;
981
+ I = {
981
982
  value: g,
982
983
  count: 1
983
- }, k[o.field] && ((ze = k[o.field]) == null ? void 0 : ze.value) === g && k[o.field] !== null ? (k[o.field].count++, w.count = null) : k[o.field] = w;
984
+ }, _[o.field] && ((Te = _[o.field]) == null ? void 0 : Te.value) === g && _[o.field] !== null ? (_[o.field].count++, I.count = null) : _[o.field] = I;
984
985
  }
985
- const F = `${o.className ? o.className + " " : ""}${o.locked ? "k-grid-content-sticky" : ""}`, H = o.left !== void 0 ? this.isRtl ? {
986
+ const L = `${o.className ? o.className + " " : ""}${o.locked ? "k-grid-content-sticky" : ""}`, H = o.locked && o.left !== void 0 ? this.isRtl ? {
986
987
  left: o.right + "px",
987
988
  right: o.left + "px"
988
989
  } : {
989
990
  left: o.left + "px",
990
991
  right: o.right + "px"
991
- } : {};
992
- let ye = !1;
992
+ } : void 0;
993
+ let He = !1;
993
994
  if (o.editable && this.$props.editField) {
994
- const g = Pe(this.$props.editField, a.dataItem);
995
- (g === !0 || g === o.field) && (p = !0, ye = !0);
995
+ const g = Me(this.$props.editField, a.dataItem);
996
+ (g === !0 || g === o.field) && (p = !0, He = !0);
996
997
  }
997
- let M;
998
- o.cell && (M = o.cell);
999
- const He = this.computedCollapsed && this.computedCollapsed[a.level] && this.computedCollapsed[a.level].some((g) => g === Ke(a.dataItem, this.$props.uniqueField)), j = o.id ? o.id : b, q = He ? !He : a.expanded || a.dataItem.expanded, lt = o._type === "expand", J = E.generateNavigatableId(`${f}-${String(b)}`, R, lt || a.rowType === "groupHeader" || a.rowType === "groupFooter" || o.field === "value" ? "nodata" : "cell");
998
+ let A;
999
+ o.cell && (A = o.cell);
1000
+ const ke = this.computedCollapsed && this.computedCollapsed[a.level] && this.computedCollapsed[a.level].some((g) => g === Ue(a.dataItem, this.$props.uniqueField)), j = o.id ? o.id : b, q = ke ? !ke : a.expanded || a.dataItem.expanded, at = o._type === "expand", J = z.generateNavigatableId(`${C}-${String(b)}`, R, at || a.rowType === "groupHeader" || a.rowType === "groupFooter" || o.field === "value" ? "nodata" : "cell");
1000
1001
  return o.internalCell ? n(o.internalCell, {
1001
1002
  key: j,
1002
1003
  id: J,
1003
- colSpan: T,
1004
+ colSpan: D,
1004
1005
  dataItem: a.dataItem,
1005
1006
  field: o.field || "",
1006
1007
  editor: o.editor,
1007
1008
  format: o.format,
1008
1009
  readFormat: o.readFormat,
1009
1010
  type: o.type,
1010
- className: F,
1011
- render: M || this.$props.cellRender,
1011
+ className: L,
1012
+ render: A || this.$props.cellRender,
1012
1013
  onChange: this.itemChange,
1013
1014
  onSelectionchange: (g) => this.selectionChangeHandler({
1014
1015
  event: g,
@@ -1028,19 +1029,19 @@ const Pi = /* @__PURE__ */ at({
1028
1029
  isSelected: Array.isArray(y) && y.indexOf(b) > -1,
1029
1030
  isHighlighted: !!(typeof v != "boolean" && v && o.field && v[o.field] === !0),
1030
1031
  group: a.group,
1031
- rowSpan: w
1032
- }, null) : ye ? n(_t, {
1032
+ rowSpan: I
1033
+ }, null) : He ? n(Et, {
1033
1034
  id: J,
1034
1035
  key: j,
1035
- colSpan: T,
1036
+ colSpan: D,
1036
1037
  dataItem: a.dataItem,
1037
1038
  field: o.field || "",
1038
1039
  editor: o.editor,
1039
1040
  format: o.format,
1040
1041
  readFormat: o.readFormat,
1041
1042
  type: o.type,
1042
- className: F,
1043
- render: M || this.$props.cellRender,
1043
+ className: L,
1044
+ render: A || this.$props.cellRender,
1044
1045
  onEdit: this.editHandler,
1045
1046
  onRemove: this.removeHandler,
1046
1047
  onSave: this.saveHandler,
@@ -1053,18 +1054,18 @@ const Pi = /* @__PURE__ */ at({
1053
1054
  expanded: q,
1054
1055
  dataIndex: a.dataIndex,
1055
1056
  style: H
1056
- }, null) : n(qt, {
1057
+ }, null) : n(Jt, {
1057
1058
  key: j,
1058
1059
  id: J,
1059
- colSpan: T,
1060
+ colSpan: D,
1060
1061
  dataItem: a.dataItem,
1061
1062
  field: o.field || "",
1062
1063
  editor: o.editor,
1063
1064
  format: o.format,
1064
1065
  readFormat: o.readFormat,
1065
1066
  type: o.type,
1066
- className: F,
1067
- render: M || this.$props.cellRender,
1067
+ className: L,
1068
+ render: A || this.$props.cellRender,
1068
1069
  onCellclick: this.cellClickHandler,
1069
1070
  onCellkeydown: this.cellKeydownHandler,
1070
1071
  onEdit: this.editHandler,
@@ -1085,7 +1086,7 @@ const Pi = /* @__PURE__ */ at({
1085
1086
  expanded: q,
1086
1087
  dataIndex: a.dataIndex,
1087
1088
  style: H,
1088
- rowSpan: w,
1089
+ rowSpan: I,
1089
1090
  isSelected: Array.isArray(y) && y.indexOf(b) > -1,
1090
1091
  isHighlighted: !!(typeof v != "boolean" && v && o.field && v[o.field] === !0)
1091
1092
  }, null);
@@ -1095,47 +1096,47 @@ const Pi = /* @__PURE__ */ at({
1095
1096
  isHighlighted: typeof v == "boolean" && v
1096
1097
  };
1097
1098
  };
1098
- let tt = 0, K = [];
1099
- const U = !this.currentData.length, de = (a) => a >= this.currentData.length - tt;
1099
+ let it = 0, K = [];
1100
+ const U = !this.currentData.length, he = (a) => a >= this.currentData.length - it;
1100
1101
  let B = 0;
1101
1102
  if (this.currentData.length) {
1102
1103
  const a = this._columnsMap.length + (this.$props.filterable ? 1 : 0) + 1;
1103
- let f = this.$props.skip || 0, S = -1, Se = 0;
1104
- const k = this.computedRowSpannable.enabled ? {} : void 0;
1104
+ let C = this.$props.skip || 0, S = -1, ye = 0;
1105
+ const _ = this.computedRowSpannable.enabled ? {} : void 0;
1105
1106
  if (this.isVirtualScroll) {
1106
- if (N > 0) {
1107
- const p = this.currentData.slice(0, N).filter((D) => D.rowType === "data").length;
1108
- S += p, f += p;
1107
+ if (O > 0) {
1108
+ const p = this.currentData.slice(0, O).filter((T) => T.rowType === "data").length;
1109
+ S += p, C += p;
1109
1110
  }
1110
- !this.$props.pageable && V && (S += this.$props.skip || 0);
1111
+ !this.$props.pageable && N && (S += this.$props.skip || 0);
1111
1112
  }
1112
- K = (m || this.currentData).map(function(p, D) {
1113
+ K = (f || this.currentData).map(function(p, T) {
1113
1114
  p.rowType === "data" && S++;
1114
- const y = p.dataIndex % 2 !== 0, v = this.$props.dataItemKey && X(this.$props.dataItemKey)(p.dataItem), b = D + f, T = v || "ai" + b, o = T + "_1", w = et.call(this, p, T, S, y, k), F = z.length - (this.detailExpandable.enabled ? 1 : 0) - ((l == null ? void 0 : l.length) || 0) || 1;
1115
- return B = b + a + Se, [n(Jt, {
1116
- key: T,
1115
+ const y = p.dataIndex % 2 !== 0, v = this.$props.dataItemKey && X(this.$props.dataItemKey)(p.dataItem), b = T + C, D = v || "ai" + b, o = D + "_1", I = tt.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 + ye, [n(Qt, {
1117
+ key: D,
1117
1118
  item: p,
1118
1119
  dataIndex: S,
1119
1120
  ariaRowIndex: B,
1120
1121
  absoluteRowIndex: b,
1121
1122
  isAltRow: y,
1122
- isHidden: de(D),
1123
+ isHidden: he(T),
1123
1124
  rowHeight: this.$props.rowHeight,
1124
- isSelected: w.isSelected,
1125
- isHighlighted: w.isHighlighted,
1126
- isInEdit: w.isInEdit,
1125
+ isSelected: I.isSelected,
1126
+ isHighlighted: I.isHighlighted,
1127
+ isInEdit: I.isInEdit,
1127
1128
  rowType: p.rowType,
1128
1129
  onRowclick: (H) => this.rowClick(H, p),
1129
1130
  onRowdblclick: (H) => this.rowDoubleClick(H, p),
1130
1131
  render: this.$props.rowRender,
1131
1132
  class: this.$props.rowClass ? this.$props.rowClass(p) : ""
1132
1133
  }, {
1133
- default: () => [w.row]
1134
+ default: () => [I.row]
1134
1135
  }), this.$props.detail && p.rowType === "data" && (p.expanded || p.dataItem.expanded) && n("tr", {
1135
1136
  key: o,
1136
1137
  class: y ? "k-table-row k-table-alt-row k-detail-row" : "k-table-row k-detail-row",
1137
1138
  style: {
1138
- visibility: de(D) ? "hidden" : "",
1139
+ visibility: he(T) ? "hidden" : "",
1139
1140
  height: this.$props.detailRowHeight + "px"
1140
1141
  },
1141
1142
  role: "row",
@@ -1149,78 +1150,78 @@ const Pi = /* @__PURE__ */ at({
1149
1150
  key: `group-${H.field}-${p.dataIndex}`,
1150
1151
  group: p.group
1151
1152
  }, null);
1152
- }, this), (this.$props.expandField || this.detailExpandable.enabled) && n(Ht, {
1153
- id: E.generateNavigatableId(`${o}-dhcell`, R)
1154
- }, null), n(kt, {
1153
+ }, this), (this.$props.expandField || this.detailExpandable.enabled) && n(kt, {
1154
+ id: z.generateNavigatableId(`${o}-dhcell`, R)
1155
+ }, null), n(_t, {
1155
1156
  dataItem: p.dataItem,
1156
1157
  dataIndex: p.dataIndex,
1157
- colSpan: F,
1158
+ colSpan: L,
1158
1159
  ariaColIndex: 2 + (l ? l.length : 0),
1159
1160
  detail: this.$props.detail ? this.$props.detail : void 0,
1160
- id: E.generateNavigatableId(`${o}-dcell`, R)
1161
+ id: z.generateNavigatableId(`${o}-dcell`, R)
1161
1162
  }, null)])];
1162
1163
  }, this);
1163
1164
  }
1164
- const it = this.$props.pageable && n(bt, {
1165
+ const st = this.$props.pageable && n($t, {
1165
1166
  class: "k-grid-pager",
1166
1167
  onPagesizechange: this.pageChangeHandler,
1167
1168
  onPagechange: this.pageChangeHandler,
1168
1169
  size: this.$props.size,
1169
- total: C,
1170
+ total: m,
1170
1171
  skip: s || 0,
1171
1172
  pageSize: (r !== void 0 ? r : this.$props.pageSize) || 10,
1172
- messagesMap: qe,
1173
- settings: $t(this.$props.pageable || {})
1174
- }, null), he = Te.call(this, {
1173
+ messagesMap: Je,
1174
+ settings: Rt(this.$props.pageable || {})
1175
+ }, null), pe = Ge.call(this, {
1175
1176
  h: De,
1176
1177
  template: this.$props.pager,
1177
- defaultRendering: it,
1178
+ defaultRendering: st,
1178
1179
  additionalProps: {
1179
1180
  ...this.$props,
1180
1181
  skip: this.$props.skip || 0,
1181
- messagesMap: qe
1182
+ messagesMap: Je
1182
1183
  },
1183
1184
  additionalListeners: {
1184
1185
  pagesizechange: this.pageChangeHandler,
1185
1186
  pagechange: this.pageChangeHandler
1186
1187
  }
1187
- }), st = (a) => e && e.filter((f) => f.field === a).length > 0, pe = n("colgroup", {
1188
+ }), rt = (a) => e && e.filter((C) => C.field === a).length > 0, ue = n("colgroup", {
1188
1189
  ref: G(this, "colGroup")
1189
- }, [z.map(function(a, f) {
1190
+ }, [k.map(function(a, C) {
1190
1191
  return n("col", {
1191
- key: f.toString(),
1192
- class: st(a.field) ? "k-sorted" : void 0,
1192
+ key: a.id || `col-${C}`,
1193
+ class: rt(a.field) ? "k-sorted" : void 0,
1193
1194
  width: a.width !== void 0 ? a.width.toString().indexOf("%") !== -1 ? a.width : Math.floor(parseFloat(a.width.toString())) + "px" : void 0
1194
1195
  }, null);
1195
- }, this)]), ue = {
1196
+ }, this)]), ce = {
1196
1197
  height: this.getCorrectHeight,
1197
1198
  ...this.$attrs.style
1198
- }, rt = this.$props.loader && n("div", {
1199
+ }, lt = this.$props.loader && n("div", {
1199
1200
  class: "k-loader-container k-loader-container-md k-loader-top"
1200
1201
  }, [n("div", {
1201
1202
  class: "k-loader-container-overlay k-overlay-light"
1202
1203
  }, null), n("div", {
1203
1204
  class: "k-loader-container-inner"
1204
- }, [n(yt, {
1205
+ }, [n(Ht, {
1205
1206
  size: "large",
1206
1207
  type: "infinite-spinner"
1207
- }, null)])]), ce = ((Ie = this.$props.showLoader) != null ? Ie : !!this.$props.loader) && Te.call(this, {
1208
+ }, null)])]), ge = ((Se = this.$props.showLoader) != null ? Se : !!this.$props.loader) && Ge.call(this, {
1208
1209
  h: De,
1209
1210
  template: this.$props.loader,
1210
- defaultRendering: rt
1211
+ defaultRendering: lt
1211
1212
  });
1212
- return this.$props.scrollable === "none" ? n(Me, {
1213
+ return this.$props.scrollable === "none" ? n(Ae, {
1213
1214
  ref: "navRef",
1214
1215
  id: this._gridId,
1215
1216
  navigatable: this.$props.navigatable
1216
1217
  }, {
1217
- default: () => [n(Ae, {
1218
+ default: () => [n(Ve, {
1218
1219
  ref: (a) => {
1219
1220
  this.gridNavRef = a;
1220
1221
  },
1221
1222
  currentData: this.currentData,
1222
1223
  id: this.$props.id,
1223
- style: ue,
1224
+ style: ce,
1224
1225
  class: this.nonscrollableWrapperClass
1225
1226
  }, {
1226
1227
  default: () => [ie, se, n("div", {
@@ -1236,27 +1237,27 @@ const Pi = /* @__PURE__ */ at({
1236
1237
  },
1237
1238
  ref: G(this, "table"),
1238
1239
  role: "none"
1239
- }, [ot(" "), pe, ae, n("tbody", {
1240
+ }, [nt(" "), ue, ne, n("tbody", {
1240
1241
  class: "k-table-tbody",
1241
1242
  "data-keyboardnavbody": !0
1242
- }, [K, ce]), oe]), U && n(je, {
1243
- id: E.generateNavigatableId("no-records", R)
1243
+ }, [K, ge]), de]), U && n(qe, {
1244
+ id: z.generateNavigatableId("no-records", R)
1244
1245
  }, {
1245
- default: () => [P.length ? P : n(Be, null, null)]
1246
- })]), he, le]
1246
+ default: () => [M.length ? M : n(je, null, null)]
1247
+ })]), pe, le]
1247
1248
  })]
1248
- }) : n(Me, {
1249
+ }) : n(Ae, {
1249
1250
  ref: "navRef",
1250
1251
  id: this._gridId,
1251
1252
  navigatable: this.$props.navigatable
1252
1253
  }, {
1253
- default: () => [n(Ae, {
1254
+ default: () => [n(Ve, {
1254
1255
  ref: (a) => {
1255
1256
  this.gridNavRef = a;
1256
1257
  },
1257
1258
  currentData: this.currentData,
1258
1259
  id: this.$props.id,
1259
- style: ue,
1260
+ style: ce,
1260
1261
  class: this.scrollableWrapperClass
1261
1262
  }, {
1262
1263
  default: () => [ie, se, n("div", {
@@ -1265,7 +1266,7 @@ const Pi = /* @__PURE__ */ at({
1265
1266
  id: this._gridRoleElementId,
1266
1267
  "aria-colcount": this.getAriaColCount,
1267
1268
  "aria-rowcount": this.getAriaRowCount
1268
- }, [ae, n("div", {
1269
+ }, [ne, n("div", {
1269
1270
  class: "k-grid-container",
1270
1271
  role: "presentation"
1271
1272
  }, [n("div", {
@@ -1280,15 +1281,15 @@ const Pi = /* @__PURE__ */ at({
1280
1281
  role: "none",
1281
1282
  class: this.gridTableClass,
1282
1283
  ref: G(this, "table")
1283
- }, [pe, n("tbody", {
1284
+ }, [ue, n("tbody", {
1284
1285
  class: "k-table-tbody",
1285
1286
  role: "rowgroup",
1286
1287
  "data-keyboardnavbody": !0,
1287
1288
  ref: G(this, "tableBody")
1288
- }, [K])]), U && n(je, {
1289
- id: E.generateNavigatableId("no-records", R)
1289
+ }, [K])]), U && n(qe, {
1290
+ id: z.generateNavigatableId("no-records", R)
1290
1291
  }, {
1291
- default: () => [P.length ? P : n(Be, null, null)]
1292
+ default: () => [M.length ? M : n(je, null, null)]
1292
1293
  })]), !U && n("div", {
1293
1294
  class: "k-height-container",
1294
1295
  role: "presentation"
@@ -1297,11 +1298,11 @@ const Pi = /* @__PURE__ */ at({
1297
1298
  style: this.$props.scrollable === "virtual" ? {
1298
1299
  height: this._containerHeightRef + "px"
1299
1300
  } : {}
1300
- }, null)])]), ce]), oe, Ye]), he, le]
1301
+ }, null)])]), ge]), de, Ze]), pe, le]
1301
1302
  })]
1302
1303
  });
1303
1304
  }
1304
1305
  });
1305
1306
  export {
1306
- Pi as Grid
1307
+ Mi as Grid
1307
1308
  };