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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/Grid.mjs CHANGED
@@ -5,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 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
- import { GridHierarchyCell as Y } from "./cells/GridHierarchyCell.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
- import { FilterRow as Dt } from "./header/FilterRow.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
- import { GridGroupCell as Z } from "./cells/GridGroupCell.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
- import { packageMetadata as ee } from "./package-metadata.mjs";
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({
8
+ import { defineComponent as pt, createVNode as n, h as Le, createTextVNode as Pe, ref as v, inject as ut, markRaw as E } from "vue";
9
+ import { isObject as V, cloneArray as ct, canUseDOM as X, WatermarkOverlay as gt, getter as Y, getTemplate as Me, setRef as G, hasListener as P, getRef as $, RowHeightService as ft, setScrollbarWidth as mt, kendoThemeMaps as Ae, uGrid as Ct, isRtl as Ve, validatePackage as bt, shouldShowValidationUI as $t, getLicenseMessage as Rt, guid as Ne, getNestedValue as Oe } from "@progress/kendo-vue-common";
10
+ import { tableKeyboardNavigationTools as z, combineFilters as xt, Pager as vt, normalize as It, TableKeyboardNavigationProvider as We, updateLeft as wt, updateRight as St, groupExpandReducer as yt, detailExpandReducer as Ht, getDetailExpandableOptions as kt, getGroupExpandableOptions as _t } from "@progress/kendo-vue-data-tools";
11
+ import { Loader as Et } from "@progress/kendo-vue-indicators";
12
+ import { GridNav as Ke } from "./GridNav.mjs";
13
+ import { GridSelectionCell as Ue } from "./cells/GridSelectionCell.mjs";
14
+ import { GridHierarchyCell as Z } from "./cells/GridHierarchyCell.mjs";
15
+ import { GridDetailHierarchyCell as zt } from "./cells/GridDetailHierarchyCell.mjs";
16
+ import { GridDetailCell as Tt } from "./cells/GridDetailCell.mjs";
17
+ import { GridEditCell as Dt } from "./cells/GridEditCell.mjs";
18
+ import { Header as Gt } from "./header/Header.mjs";
19
+ import { HeaderRow as Ft } from "./header/HeaderRow.mjs";
20
+ import { FilterRow as Lt } from "./header/FilterRow.mjs";
21
+ import { GroupPanel as Pt } from "./header/GroupPanel.mjs";
22
+ import { Footer as Mt } from "./footer/Footer.mjs";
23
+ import { FooterRow as At } from "./footer/FooterRow.mjs";
24
+ import { operators as Be } from "./filterCommon.mjs";
25
+ import { VirtualScroll as Vt } from "./VirtualScroll.mjs";
26
+ import { ColumnResize as Nt } from "./drag/ColumnResize.mjs";
27
+ import { CommonDragLogic as Ot } from "./drag/CommonDragLogic.mjs";
28
+ import { DragClue as Wt } from "./drag/DragClue.mjs";
29
+ import { DropClue as Kt } from "./drag/DropClue.mjs";
30
+ import { applyExpandedState as Ut, getColSpan as Bt, autoGenerateColumns as jt, mapColumns as qt, getFlatColumnsState as je, getRowSpanOptions as qe, groupedFirstItemValue as Je, calcRowHeight as Jt, flatData as Qt, readColumns as Xt } from "./utils/main.mjs";
31
+ import { GridCell as Yt } from "./cells/GridCell.mjs";
32
+ import { GridGroupCell as ee } from "./cells/GridGroupCell.mjs";
33
+ import { GridRow as Zt } from "./rows/GridRow.mjs";
34
+ import { gridProps as ei } from "./common.mjs";
35
+ import { GridHeaderSelectionCell as Qe } from "./header/GridHeaderSelectionCell.mjs";
36
+ import { GridNoRecords as Xe } from "./components/noRecords/GridNoRecords.mjs";
37
+ import { GridNoRecordsContainer as Ye } from "./components/noRecords/GridNoRecordsContainer.mjs";
38
+ import { packageMetadata as te } from "./package-metadata.mjs";
39
+ import { pagerMessagesMap as Ze } from "./messages/messagesMap.mjs";
40
+ import { process as ti } from "@progress/kendo-data-query";
41
+ import { KendoKey as ii } from "./key.mjs";
42
+ import { getVirtualCellsToRender as si } from "./utils/virtualColumns.mjs";
43
+ const Ni = /* @__PURE__ */ pt({
44
44
  name: "KendoGrid",
45
45
  inheritAttrs: !1,
46
46
  props: {
47
- ...Xt,
47
+ ...ei,
48
48
  toolbar: {
49
49
  type: Object
50
50
  },
@@ -89,18 +89,18 @@ const Mi = /* @__PURE__ */ ot({
89
89
  }
90
90
  },
91
91
  created() {
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;
92
+ bt(te), this.showLicenseWatermark = $t(te), this.licenseMessage = Rt(te), this.initialHeight = null, this._columns = [], this.vsRef = new Vt(), this.dragLogic = new Ot(this.columnReorder.bind(this), this.groupReorder.bind(this), this.columnToGroup.bind(this)), this.columnResize = new Nt(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 = Ne(), this._gridRoleElementId = Ne(), 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 = Le(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 = Q && (window == null ? void 0 : window.ResizeObserver) && new ResizeObserver(this.calculateMedia), document != null && document.body && this.resizeObserver && this.resizeObserver.observe(document.body);
97
+ const e = Ve(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
99
  },
100
100
  updated() {
101
101
  var t;
102
102
  this.setRefs();
103
- const e = Le(this._element);
103
+ const e = Ve(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 Mi = /* @__PURE__ */ ot({
114
114
  return this.$props.navigatable ? this.gridId : "";
115
115
  },
116
116
  groupExpandable() {
117
- return yt(typeof this.$props.groupable == "object" && this.$props.groupable.enabled !== !1 ? this.$props.groupable.expandable : this.$props.groupable);
117
+ return _t(typeof this.$props.groupable == "object" && this.$props.groupable.enabled !== !1 ? this.$props.groupable.expandable : this.$props.groupable);
118
118
  },
119
119
  hierarchClass() {
120
- return gt.hierarchyCell({});
120
+ return Ct.hierarchyCell({});
121
121
  },
122
122
  computedRowSpannable() {
123
- return Ke(this.$props.rowSpannable);
123
+ return qe(this.$props.rowSpannable);
124
124
  },
125
125
  detailExpandable() {
126
- return St(!!this.$props.detail);
126
+ return kt(!!this.$props.detail);
127
127
  },
128
128
  nonscrollableWrapperClass() {
129
129
  const {
@@ -132,7 +132,7 @@ const Mi = /* @__PURE__ */ ot({
132
132
  return {
133
133
  "k-grid": !0,
134
134
  "k-grid-md": !e,
135
- [`k-grid-${Fe.sizeMap[e] || e}`]: e,
135
+ [`k-grid-${Ae.sizeMap[e] || e}`]: e,
136
136
  [t]: !!t
137
137
  };
138
138
  },
@@ -153,7 +153,7 @@ const Mi = /* @__PURE__ */ ot({
153
153
  "k-table": !0,
154
154
  "k-grid-table": !0,
155
155
  "k-grid-md": !e,
156
- [`k-table-${Fe.sizeMap[e] || e}`]: e
156
+ [`k-table-${Ae.sizeMap[e] || e}`]: e
157
157
  };
158
158
  },
159
159
  getCorrectHeight() {
@@ -189,7 +189,7 @@ const Mi = /* @__PURE__ */ ot({
189
189
  },
190
190
  methods: {
191
191
  readColumnElements() {
192
- return qt(this.$props.columns, this.currentColumnsState, {
192
+ return Xt(this.$props.columns, this.currentColumnsState, {
193
193
  prevId: 0,
194
194
  idPrefix: this.idPrefix
195
195
  });
@@ -215,7 +215,7 @@ const Mi = /* @__PURE__ */ ot({
215
215
  })];
216
216
  },
217
217
  getFlatData(e, t, i, s, r, l, d) {
218
- const h = [], c = jt(h, e, t, {
218
+ const h = [], c = Qt(h, e, t, {
219
219
  index: i
220
220
  }, s !== void 0, r, l, this.groupExpandable.defaultExpand, d, this.$props.expandField);
221
221
  return {
@@ -242,7 +242,7 @@ const Mi = /* @__PURE__ */ ot({
242
242
  ...i,
243
243
  children: i.children && i.children.length > 0 ? this.filterHiddenColumns(i.children) : i.children
244
244
  });
245
- return [...e].filter((i) => !i.hidden).filter((i) => Q && i && i.media ? window.matchMedia(i.media).matches : i).map((i) => t(i));
245
+ return [...e].filter((i) => !i.hidden).filter((i) => X && i && i.media ? window.matchMedia(i.media).matches : i).map((i) => t(i));
246
246
  },
247
247
  /**
248
248
  * A getter of the current columns. Gets the current column width or current columns,
@@ -281,7 +281,7 @@ const Mi = /* @__PURE__ */ ot({
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(), ct();
284
+ this.dragLogic.refDropElementClue(s), this.dragLogic.refDragElementClue(r), this.columnResize.colGroupMain = $(this, "colGroup"), this._header = $(this, "header"), this._footer = $(this, "footer"), this.resetTableWidth(), mt();
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 Mi = /* @__PURE__ */ ot({
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 ut(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 ft(this._virtualTotal, t)));
306
306
  },
307
307
  setContainerHeight() {
308
308
  const e = $(this, "scrollContainer");
@@ -310,7 +310,7 @@ const Mi = /* @__PURE__ */ ot({
310
310
  },
311
311
  setMinRowHeight() {
312
312
  if (!this._minRowHeightRef && !this.$props.rowHeight) {
313
- const t = Bt($(this, "tableBody"));
313
+ const t = Jt($(this, "tableBody"));
314
314
  t && (this._minRowHeightRef = t, this.$forceUpdate());
315
315
  }
316
316
  },
@@ -345,7 +345,7 @@ const Mi = /* @__PURE__ */ ot({
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 = Ue(l || e.dataItem, s);
348
+ }, l = this.allGroupedItems ? this.loopGroupedItems(this.allGroupedItems.data, r, 0, null) : e.dataItem, d = Je(l || e.dataItem, s);
349
349
  if (e.value) {
350
350
  if (i && i.length) {
351
351
  const h = i.indexOf(d);
@@ -469,7 +469,7 @@ const Mi = /* @__PURE__ */ ot({
469
469
  handleDetailExpandAction(e, t) {
470
470
  var i;
471
471
  if (this.detailExpandable.enabled) {
472
- const s = (i = this.gridContext.detailExpand) == null ? void 0 : i.value, r = wt(s != null ? s : {}, e);
472
+ const s = (i = this.gridContext.detailExpand) == null ? void 0 : i.value, r = Ht(s != null ? s : {}, e);
473
473
  this.$emit("detailexpandchange", {
474
474
  ...this.getArguments(t),
475
475
  detailExpand: r
@@ -479,7 +479,7 @@ const Mi = /* @__PURE__ */ ot({
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 = It(s != null ? s : [], e, this.groupExpandable);
482
+ const s = (i = this.gridContext.groupExpand) == null ? void 0 : i.value, r = yt(s != null ? s : [], e, this.groupExpandable);
483
483
  this.$props.expandField || this.$emit("groupexpandchange", {
484
484
  ...this.getArguments(t),
485
485
  groupExpand: r
@@ -510,7 +510,7 @@ const Mi = /* @__PURE__ */ ot({
510
510
  }
511
511
  },
512
512
  columnReorder(e, t, i) {
513
- const s = this._columns[e], r = We(this.currentColumnsState), l = s.depth, d = (u) => {
513
+ const s = this._columns[e], r = je(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);
@@ -518,11 +518,11 @@ const Mi = /* @__PURE__ */ ot({
518
518
  }, h = this._columns.splice(e, d(e) - e);
519
519
  this._columns.splice(e < t ? d(t - h.length) : t, 0, ...h), this._columns.filter((u) => u.declarationIndex >= 0).forEach((u, m) => {
520
520
  u.orderIndex = m;
521
- const R = r.find((w) => w.id === u.id);
521
+ const R = r.find((x) => x.id === u.id);
522
522
  R && (R.orderIndex = m);
523
523
  });
524
524
  const c = this._columns[e].locked && this._columns[t].locked;
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);
525
+ wt(this._columnsMap, this._columns, c || this.shouldUpdateLeftRightRef), St(this._columnsMap, this._columns, c || this.shouldUpdateLeftRightRef), this.resizedRef && (this.shouldUpdateLeftRightRef = !1, this.resizedRef = !1);
526
526
  const f = this.getColumns();
527
527
  this.$emit("columnreorder", {
528
528
  target: this,
@@ -595,11 +595,11 @@ const Mi = /* @__PURE__ */ ot({
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 = E(Ne), l.defaultHeaderCell = E(Be), l._type = "edit";
598
+ l.width = l.width || "50px", l.defaultCell = E(Ue), l.defaultHeaderCell = E(Qe), 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 = E(Ne), l.internalHeaderCell = E(Be);
600
+ l.width = l.width || "50px", l.internalCell = E(Ue), l.internalHeaderCell = E(Qe);
601
601
  });
602
- const i = We(this.currentColumnsState);
602
+ const i = je(this.currentColumnsState);
603
603
  this.initColumnsState(e, i);
604
604
  const s = {
605
605
  id: "",
@@ -627,8 +627,8 @@ const Mi = /* @__PURE__ */ ot({
627
627
  ...s,
628
628
  _type: "expand",
629
629
  id: z.generateNavigatableId(`${r++}`, "expand", "column"),
630
- defaultCell: E(Y),
631
- internalCell: E(Y),
630
+ defaultCell: E(Z),
631
+ internalCell: E(Z),
632
632
  field: this.detailExpandable.column,
633
633
  headerClassName: this.hierarchClass
634
634
  };
@@ -636,7 +636,7 @@ const Mi = /* @__PURE__ */ ot({
636
636
  }
637
637
  this.$props.expandField && P.call(this, "expandchange") && this.$props.detail && (e.unshift({
638
638
  ...s,
639
- internalCell: E(Y),
639
+ internalCell: E(Z),
640
640
  field: this.$props.expandField,
641
641
  headerClassName: "k-hierarchy-cell k-header",
642
642
  id: z.generateNavigatableId(`${e.length}`, this.idPrefix, "column"),
@@ -646,8 +646,8 @@ const Mi = /* @__PURE__ */ ot({
646
646
  const d = {
647
647
  ...s,
648
648
  isAccessible: !1,
649
- defaultCell: E(Z),
650
- internalCell: E(Z),
649
+ defaultCell: E(ee),
650
+ internalCell: E(ee),
651
651
  id: z.generateNavigatableId(`${r++}`, "group", "column"),
652
652
  field: "value",
653
653
  locked: this.$props.lockGroups
@@ -655,21 +655,21 @@ const Mi = /* @__PURE__ */ ot({
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 ? Ke(l.rowSpannable) : this.computedRowSpannable;
658
+ l.parentIndex >= 0 && (l.parentIndex += r), l.rowSpannable = l.rowSpannable !== void 0 ? qe(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 = Kt(e, i, {
665
+ this._columns.filter((d) => !d.hidden).length === 0 && (this._columns = jt(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 = Ut(this._columns, !0);
672
+ this._columns = s, this.hiddenColumnsRef = r, this._columnsMap = qt(this._columns, !0);
673
673
  },
674
674
  resolveTitle(e) {
675
675
  const t = this.findColumnByField(e), i = t && (t.title || t.field);
@@ -755,7 +755,7 @@ const Mi = /* @__PURE__ */ ot({
755
755
  r--, s && (s.width += c);
756
756
  return;
757
757
  }
758
- const f = Math.min(Wt(d, e), t.length - h);
758
+ const f = Math.min(Bt(d, e), t.length - h);
759
759
  r = f - 1, s = {
760
760
  width: c,
761
761
  colSpan: f,
@@ -763,7 +763,7 @@ const Mi = /* @__PURE__ */ ot({
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 ei({
766
+ return si({
767
767
  cellModels: i,
768
768
  columns: t,
769
769
  tableViewPortWidth: h,
@@ -801,7 +801,7 @@ const Mi = /* @__PURE__ */ ot({
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), f = x(null), u = x(null), m = x(!0), R = x(!1), w = dt(Zt, {});
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 = ut(ii, {});
805
805
  return {
806
806
  groupPanelDivRef: t,
807
807
  dropElementClueRef: i,
@@ -813,14 +813,14 @@ const Mi = /* @__PURE__ */ ot({
813
813
  scrollContainerRef: c,
814
814
  scrollTableRef: f,
815
815
  scrollTableBodyRef: u,
816
- gridContext: w,
816
+ gridContext: x,
817
817
  shouldUpdateLeftRightRef: m,
818
818
  resizedRef: R,
819
819
  currentColumnsState: e.columnsState
820
820
  };
821
821
  },
822
822
  render() {
823
- var fe, me, Ce, be, $e, Re, xe, ve, Ie, we, Se;
823
+ var fe, me, Ce, be, $e, Re, xe, ve, Ie, we, Se, ye, He, ke;
824
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
825
  let f;
826
826
  this.currentColumnsState = (Ie = this.gridContext.columnsState) == null ? void 0 : Ie.value;
@@ -831,33 +831,33 @@ const Mi = /* @__PURE__ */ ot({
831
831
  search: !0,
832
832
  page: !0
833
833
  } : this.$props.autoProcessData;
834
- let m = this.$props.total || 0;
834
+ let m;
835
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
- this.dragLogic.reorderable = this.$props.reorderable || !1, this.dragLogic.groupable = te, this._virtualPageSize = this.calcVirtualPageSize();
840
- const N = w.length === m, Qe = V(this.$props.groupable) && this.$props.groupable.footer || "none";
836
+ let x = [];
837
+ Array.isArray(this.$props.dataItems) ? (x = this.$props.dataItems, m = (we = this.$props.total) != null ? we : x.length) : (x = ((Se = Ut(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, et = 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
843
  data: C,
844
844
  total: S
845
- } = Yt(w, {
845
+ } = ti(x, {
846
846
  group: u.group ? l : void 0,
847
847
  sort: u.sort ? e : void 0,
848
- filter: bt(u.filter ? t : void 0, u.search ? i : void 0),
848
+ filter: xt(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
- w = C, m = (we = this.$props.total) != null ? we : S;
854
+ x = C, m = S;
855
855
  }
856
856
  const {
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;
857
+ resolvedGroupsCount: tt,
858
+ flattedData: it
859
+ } = this.getFlatData(x, et, N ? 0 : this.$props.skip || 0, l, h, d, this.$props.dataItemKey);
860
+ this.currentData = it;
861
861
  const O = this._virtualSkipRef || 0;
862
862
  if (this._virtualTotal = m, this.isVirtualScroll) {
863
863
  let a = s || 0;
@@ -868,8 +868,8 @@ const Mi = /* @__PURE__ */ ot({
868
868
  } else
869
869
  f = this.currentData.slice(a, a + this._virtualPageSize);
870
870
  }
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, {
871
+ this.initializeVirtualization(), this.initColumns(this.$props.dataItems, tt), this.columnResize.resizable = this.$props.resizable || !1, this.columnResize.columns = this._columns, this.columnResize.columnsState = ct(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(Pt, {
873
873
  ref: (a) => {
874
874
  this.groupPanelDivRef = a;
875
875
  },
@@ -880,36 +880,36 @@ const Mi = /* @__PURE__ */ ot({
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(Nt, {
883
+ }, null), le = (this.dragLogic.reorderable || this.dragLogic.groupable) && X && document && document.body, ae = [le && n(Kt, {
884
884
  ref: (a) => {
885
885
  this.dropElementClueRef = a;
886
886
  }
887
- }, null), re && n(Vt, {
887
+ }, null), le && n(Wt, {
888
888
  ref: (a) => {
889
889
  this.dragElementClueRef = a;
890
890
  }
891
- }, null)], Ze = this.showLicenseWatermark ? n(pt, {
891
+ }, null)], st = this.showLicenseWatermark ? n(gt, {
892
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;
893
+ }, null) : null, W = this.$attrs.style, rt = W && V(W) && W["width"] || "";
894
+ this.tableWidth = parseFloat(rt.toString());
895
+ const oe = k.findIndex((a) => typeof a.colSpan == "function") > -1;
896
896
  let F;
897
- ae || (F = this.getCellsToRender(null, k));
898
- const oe = (this.$props.columnVirtualization ? this.getCellsToRender(null, k).map(({
897
+ oe || (F = this.getCellsToRender(null, k));
898
+ const ne = (this.$props.columnVirtualization ? this.getCellsToRender(null, k).map(({
899
899
  columnIndex: a
900
900
  }) => k[a]) : k).map(function(a, C) {
901
901
  return n("col", {
902
902
  key: a.id || `col-${C}`,
903
903
  width: a.width !== void 0 ? Math.floor(parseFloat(a.width.toString())) : void 0
904
904
  }, null);
905
- }, this), ne = n(zt, {
905
+ }, this), de = n(Gt, {
906
906
  size: this.$props.size,
907
907
  columnResize: this.columnResize,
908
908
  staticHeaders: this.$props.scrollable !== "none",
909
909
  ref: (a) => {
910
910
  this.headerRef = a;
911
911
  },
912
- headerRow: n(Tt, {
912
+ headerRow: n(Ft, {
913
913
  grid: this,
914
914
  sort: e,
915
915
  groupable: this.$props.groupable,
@@ -918,7 +918,7 @@ const Mi = /* @__PURE__ */ ot({
918
918
  onSortChange: this.sortChangeHandler,
919
919
  filter: t,
920
920
  filterable: this.$props.filterable,
921
- filterOperators: this.$props.filterOperators || Oe,
921
+ filterOperators: this.$props.filterOperators || Be,
922
922
  onFilterChange: this.filterChangeHandler,
923
923
  columnMenu: this.$props.columnMenu,
924
924
  columnMenuIcon: this.$props.columnMenuIcon,
@@ -936,14 +936,14 @@ const Mi = /* @__PURE__ */ ot({
936
936
  cellRender: this.$props.headerCellRender,
937
937
  isRtl: this.isRtl,
938
938
  isColCountDefined: this.getAriaColCount !== void 0,
939
- filterRow: this.$props.filterable && n(Dt, {
939
+ filterRow: this.$props.filterable && n(Lt, {
940
940
  grid: this,
941
941
  size: this.$props.size,
942
942
  columns: this._columns,
943
943
  cellsToRender: F,
944
944
  columnVirtualization: this.$props.columnVirtualization,
945
945
  filter: t,
946
- filterOperators: this.$props.filterOperators || Oe,
946
+ filterOperators: this.$props.filterOperators || Be,
947
947
  onFilterchange: this.filterChangeHandler,
948
948
  sort: this.$props.sort,
949
949
  cellRender: this.$props.filterCellRender,
@@ -951,37 +951,37 @@ const Mi = /* @__PURE__ */ ot({
951
951
  ariaRowIndex: this._columnsMap.length + 1
952
952
  }, null) || void 0
953
953
  }, null),
954
- cols: oe
955
- }, null), de = this._columns.some((a) => !!a.footerCell) ? n(Ft, {
954
+ cols: ne
955
+ }, null), he = this._columns.some((a) => !!a.footerCell) ? n(Mt, {
956
956
  size: this.$props.size,
957
957
  columnResize: this.columnResize,
958
958
  staticHeaders: this.$props.scrollable !== "none",
959
959
  ref: (a) => {
960
960
  this.footerRef = a;
961
961
  },
962
- row: n(Lt, {
962
+ row: n(At, {
963
963
  isRtl: this.isRtl,
964
964
  rowIndex: this.getAriaRowCount + 1,
965
965
  columns: this._columns
966
966
  }, null),
967
- cols: oe
968
- }, null) : n("span", null, null), tt = function(a, C, S, ye, _) {
967
+ cols: ne
968
+ }, null) : n("span", null, null), lt = function(a, C, S, _e, _) {
969
969
  let p = !1;
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)), {
970
+ const T = this.$props.selectedField, y = T ? Oe(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
972
  row: F.map(function({
973
973
  columnIndex: b,
974
974
  colSpan: D
975
975
  }) {
976
- var _e, Ee, ze, Te;
976
+ var Te, De, Ge, Fe;
977
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 = {
978
+ let w;
979
+ if ((Te = o.rowSpannable) != null && Te.enabled && a.rowType === "data" && o.field && _) {
980
+ const g = o.field ? (Ge = (De = o.rowSpannable).valueGetter) == null ? void 0 : Ge.call(De, a.dataItem, o.field) : null;
981
+ w = {
982
982
  value: g,
983
983
  count: 1
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
+ }, _[o.field] && ((Fe = _[o.field]) == null ? void 0 : Fe.value) === g && _[o.field] !== null ? (_[o.field].count++, w.count = null) : _[o.field] = w;
985
985
  }
986
986
  const L = `${o.className ? o.className + " " : ""}${o.locked ? "k-grid-content-sticky" : ""}`, H = o.locked && o.left !== void 0 ? this.isRtl ? {
987
987
  left: o.right + "px",
@@ -990,17 +990,17 @@ const Mi = /* @__PURE__ */ ot({
990
990
  left: o.left + "px",
991
991
  right: o.right + "px"
992
992
  } : void 0;
993
- let He = !1;
993
+ let Ee = !1;
994
994
  if (o.editable && this.$props.editField) {
995
- const g = Me(this.$props.editField, a.dataItem);
996
- (g === !0 || g === o.field) && (p = !0, He = !0);
995
+ const g = Oe(this.$props.editField, a.dataItem);
996
+ (g === !0 || g === o.field) && (p = !0, Ee = !0);
997
997
  }
998
998
  let A;
999
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
+ const ze = this.computedCollapsed && this.computedCollapsed[a.level] && this.computedCollapsed[a.level].some((g) => g === Je(a.dataItem, this.$props.uniqueField)), q = o.id ? o.id : b, J = ze ? !ze : a.expanded || a.dataItem.expanded, ht = o._type === "expand", Q = z.generateNavigatableId(`${C}-${String(b)}`, R, ht || a.rowType === "groupHeader" || a.rowType === "groupFooter" || o.field === "value" ? "nodata" : "cell");
1001
1001
  return o.internalCell ? n(o.internalCell, {
1002
- key: j,
1003
- id: J,
1002
+ key: q,
1003
+ id: Q,
1004
1004
  colSpan: D,
1005
1005
  dataItem: a.dataItem,
1006
1006
  field: o.field || "",
@@ -1021,18 +1021,18 @@ const Mi = /* @__PURE__ */ ot({
1021
1021
  columnsCount: this._columns.filter((g) => !g.children.length).length,
1022
1022
  rowType: a.rowType,
1023
1023
  level: a.level,
1024
- expanded: q,
1024
+ expanded: J,
1025
1025
  dataIndex: a.dataIndex,
1026
1026
  style: H,
1027
1027
  ariaColumnIndex: o.ariaColumnIndex,
1028
1028
  isRtl: this.isRtl,
1029
1029
  isSelected: Array.isArray(y) && y.indexOf(b) > -1,
1030
- isHighlighted: !!(typeof v != "boolean" && v && o.field && v[o.field] === !0),
1030
+ isHighlighted: !!(typeof I != "boolean" && I && o.field && I[o.field] === !0),
1031
1031
  group: a.group,
1032
- rowSpan: I
1033
- }, null) : He ? n(Et, {
1034
- id: J,
1035
- key: j,
1032
+ rowSpan: w
1033
+ }, null) : Ee ? n(Dt, {
1034
+ id: Q,
1035
+ key: q,
1036
1036
  colSpan: D,
1037
1037
  dataItem: a.dataItem,
1038
1038
  field: o.field || "",
@@ -1051,12 +1051,12 @@ const Mi = /* @__PURE__ */ ot({
1051
1051
  columnsCount: this._columns.filter((g) => !g.children.length).length,
1052
1052
  rowType: a.rowType,
1053
1053
  level: a.level,
1054
- expanded: q,
1054
+ expanded: J,
1055
1055
  dataIndex: a.dataIndex,
1056
1056
  style: H
1057
- }, null) : n(Jt, {
1058
- key: j,
1059
- id: J,
1057
+ }, null) : n(Yt, {
1058
+ key: q,
1059
+ id: Q,
1060
1060
  colSpan: D,
1061
1061
  dataItem: a.dataItem,
1062
1062
  field: o.field || "",
@@ -1083,25 +1083,25 @@ const Mi = /* @__PURE__ */ ot({
1083
1083
  columnsCount: this._columns.filter((g) => !g.children.length).length,
1084
1084
  rowType: a.rowType,
1085
1085
  level: a.level,
1086
- expanded: q,
1086
+ expanded: J,
1087
1087
  dataIndex: a.dataIndex,
1088
1088
  style: H,
1089
- rowSpan: I,
1089
+ rowSpan: w,
1090
1090
  isSelected: Array.isArray(y) && y.indexOf(b) > -1,
1091
- isHighlighted: !!(typeof v != "boolean" && v && o.field && v[o.field] === !0)
1091
+ isHighlighted: !!(typeof I != "boolean" && I && o.field && I[o.field] === !0)
1092
1092
  }, null);
1093
1093
  }, this),
1094
1094
  isInEdit: p,
1095
1095
  isSelected: typeof y == "boolean" && y,
1096
- isHighlighted: typeof v == "boolean" && v
1096
+ isHighlighted: typeof I == "boolean" && I
1097
1097
  };
1098
1098
  };
1099
- let it = 0, K = [];
1100
- const U = !this.currentData.length, he = (a) => a >= this.currentData.length - it;
1099
+ let at = 0, K = [];
1100
+ const U = !this.currentData.length, pe = (a) => a >= this.currentData.length - at;
1101
1101
  let B = 0;
1102
1102
  if (this.currentData.length) {
1103
1103
  const a = this._columnsMap.length + (this.$props.filterable ? 1 : 0) + 1;
1104
- let C = this.$props.skip || 0, S = -1, ye = 0;
1104
+ let C = this.$props.skip || 0, S = -1, _e = 0;
1105
1105
  const _ = this.computedRowSpannable.enabled ? {} : void 0;
1106
1106
  if (this.isVirtualScroll) {
1107
1107
  if (O > 0) {
@@ -1112,37 +1112,37 @@ const Mi = /* @__PURE__ */ ot({
1112
1112
  }
1113
1113
  K = (f || this.currentData).map(function(p, T) {
1114
1114
  p.rowType === "data" && S++;
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, {
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 = lt.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 + _e, [n(Zt, {
1117
1117
  key: D,
1118
1118
  item: p,
1119
1119
  dataIndex: S,
1120
1120
  ariaRowIndex: B,
1121
1121
  absoluteRowIndex: b,
1122
1122
  isAltRow: y,
1123
- isHidden: he(T),
1123
+ isHidden: pe(T),
1124
1124
  rowHeight: this.$props.rowHeight,
1125
- isSelected: I.isSelected,
1126
- isHighlighted: I.isHighlighted,
1127
- isInEdit: I.isInEdit,
1125
+ isSelected: w.isSelected,
1126
+ isHighlighted: w.isHighlighted,
1127
+ isInEdit: w.isInEdit,
1128
1128
  rowType: p.rowType,
1129
1129
  onRowclick: (H) => this.rowClick(H, p),
1130
1130
  onRowdblclick: (H) => this.rowDoubleClick(H, p),
1131
1131
  render: this.$props.rowRender,
1132
1132
  class: this.$props.rowClass ? this.$props.rowClass(p) : ""
1133
1133
  }, {
1134
- default: () => [I.row]
1134
+ default: () => [w.row]
1135
1135
  }), this.$props.detail && p.rowType === "data" && (p.expanded || p.dataItem.expanded) && n("tr", {
1136
1136
  key: o,
1137
1137
  class: y ? "k-table-row k-table-alt-row k-detail-row" : "k-table-row k-detail-row",
1138
1138
  style: {
1139
- visibility: he(T) ? "hidden" : "",
1139
+ visibility: pe(T) ? "hidden" : "",
1140
1140
  height: this.$props.detailRowHeight + "px"
1141
1141
  },
1142
1142
  role: "row",
1143
1143
  "aria-rowindex": B
1144
1144
  }, [l == null ? void 0 : l.map(function(H) {
1145
- return n(Z, {
1145
+ return n(ee, {
1146
1146
  id: "",
1147
1147
  dataIndex: p.dataIndex,
1148
1148
  field: H.field,
@@ -1150,9 +1150,9 @@ const Mi = /* @__PURE__ */ ot({
1150
1150
  key: `group-${H.field}-${p.dataIndex}`,
1151
1151
  group: p.group
1152
1152
  }, null);
1153
- }, this), (this.$props.expandField || this.detailExpandable.enabled) && n(kt, {
1153
+ }, this), (this.$props.expandField || this.detailExpandable.enabled) && n(zt, {
1154
1154
  id: z.generateNavigatableId(`${o}-dhcell`, R)
1155
- }, null), n(_t, {
1155
+ }, null), n(Tt, {
1156
1156
  dataItem: p.dataItem,
1157
1157
  dataIndex: p.dataIndex,
1158
1158
  colSpan: L,
@@ -1162,7 +1162,7 @@ const Mi = /* @__PURE__ */ ot({
1162
1162
  }, null)])];
1163
1163
  }, this);
1164
1164
  }
1165
- const st = this.$props.pageable && n($t, {
1165
+ const ot = this.$props.pageable && n(vt, {
1166
1166
  class: "k-grid-pager",
1167
1167
  onPagesizechange: this.pageChangeHandler,
1168
1168
  onPagechange: this.pageChangeHandler,
@@ -1170,61 +1170,66 @@ const Mi = /* @__PURE__ */ ot({
1170
1170
  total: m,
1171
1171
  skip: s || 0,
1172
1172
  pageSize: (r !== void 0 ? r : this.$props.pageSize) || 10,
1173
- messagesMap: Je,
1174
- settings: Rt(this.$props.pageable || {})
1175
- }, null), pe = Ge.call(this, {
1176
- h: De,
1173
+ messagesMap: Ze,
1174
+ settings: It(this.$props.pageable || {})
1175
+ }, null), ue = Me.call(this, {
1176
+ h: Le,
1177
1177
  template: this.$props.pager,
1178
- defaultRendering: st,
1178
+ defaultRendering: ot,
1179
1179
  additionalProps: {
1180
1180
  ...this.$props,
1181
1181
  skip: this.$props.skip || 0,
1182
- messagesMap: Je
1182
+ messagesMap: Ze
1183
1183
  },
1184
1184
  additionalListeners: {
1185
1185
  pagesizechange: this.pageChangeHandler,
1186
1186
  pagechange: this.pageChangeHandler
1187
1187
  }
1188
- }), rt = (a) => e && e.filter((C) => C.field === a).length > 0, ue = n("colgroup", {
1188
+ }), nt = (a) => e && e.filter((C) => C.field === a).length > 0, ce = n("colgroup", {
1189
1189
  ref: G(this, "colGroup")
1190
1190
  }, [k.map(function(a, C) {
1191
1191
  return n("col", {
1192
1192
  key: a.id || `col-${C}`,
1193
- class: rt(a.field) ? "k-sorted" : void 0,
1193
+ class: nt(a.field) ? "k-sorted" : void 0,
1194
1194
  width: a.width !== void 0 ? a.width.toString().indexOf("%") !== -1 ? a.width : Math.floor(parseFloat(a.width.toString())) + "px" : void 0
1195
1195
  }, null);
1196
- }, this)]), ce = {
1196
+ }, this)]), ge = {
1197
1197
  height: this.getCorrectHeight,
1198
1198
  ...this.$attrs.style
1199
- }, lt = this.$props.loader && n("div", {
1200
- class: "k-loader-container k-loader-container-md k-loader-top"
1199
+ }, dt = n("div", {
1200
+ class: "k-loading-mask"
1201
1201
  }, [n("div", {
1202
- class: "k-loader-container-overlay k-overlay-light"
1202
+ class: "k-loading-color"
1203
1203
  }, null), n("div", {
1204
- class: "k-loader-container-inner"
1205
- }, [n(Ht, {
1204
+ style: {
1205
+ height: "100%",
1206
+ display: "flex",
1207
+ justifyContent: "center",
1208
+ alignItems: "center"
1209
+ }
1210
+ }, [n(Et, {
1206
1211
  size: "large",
1207
- type: "infinite-spinner"
1208
- }, null)])]), ge = ((Se = this.$props.showLoader) != null ? Se : !!this.$props.loader) && Ge.call(this, {
1209
- h: De,
1212
+ type: "converging-spinner"
1213
+ }, null)])]), j = this.$props.showLoader && Me.call(this, {
1214
+ h: Le,
1210
1215
  template: this.$props.loader,
1211
- defaultRendering: lt
1216
+ defaultRendering: dt
1212
1217
  });
1213
- return this.$props.scrollable === "none" ? n(Ae, {
1218
+ return this.$props.scrollable === "none" ? n(We, {
1214
1219
  ref: "navRef",
1215
1220
  id: this._gridId,
1216
1221
  navigatable: this.$props.navigatable
1217
1222
  }, {
1218
- default: () => [n(Ve, {
1223
+ default: () => [n(Ke, {
1219
1224
  ref: (a) => {
1220
1225
  this.gridNavRef = a;
1221
1226
  },
1222
1227
  currentData: this.currentData,
1223
1228
  id: this.$props.id,
1224
- style: ce,
1229
+ style: ge,
1225
1230
  class: this.nonscrollableWrapperClass
1226
1231
  }, {
1227
- default: () => [ie, se, n("div", {
1232
+ default: () => [se, re, n("div", {
1228
1233
  role: "grid",
1229
1234
  class: "k-grid-aria-root",
1230
1235
  id: this._gridRoleElementId,
@@ -1237,36 +1242,36 @@ const Mi = /* @__PURE__ */ ot({
1237
1242
  },
1238
1243
  ref: G(this, "table"),
1239
1244
  role: "none"
1240
- }, [nt(" "), ue, ne, n("tbody", {
1245
+ }, [Pe(" "), ce, de, n("tbody", {
1241
1246
  class: "k-table-tbody",
1242
1247
  "data-keyboardnavbody": !0
1243
- }, [K, ge]), de]), U && n(qe, {
1248
+ }, [K, Pe(" "), j]), he]), U && n(Ye, {
1244
1249
  id: z.generateNavigatableId("no-records", R)
1245
1250
  }, {
1246
- default: () => [M.length ? M : n(je, null, null)]
1247
- })]), pe, le]
1251
+ default: () => [M.length ? M : n(Xe, null, null)]
1252
+ })]), ue, j, ae]
1248
1253
  })]
1249
- }) : n(Ae, {
1254
+ }) : n(We, {
1250
1255
  ref: "navRef",
1251
1256
  id: this._gridId,
1252
1257
  navigatable: this.$props.navigatable
1253
1258
  }, {
1254
- default: () => [n(Ve, {
1259
+ default: () => [n(Ke, {
1255
1260
  ref: (a) => {
1256
1261
  this.gridNavRef = a;
1257
1262
  },
1258
1263
  currentData: this.currentData,
1259
1264
  id: this.$props.id,
1260
- style: ce,
1265
+ style: ge,
1261
1266
  class: this.scrollableWrapperClass
1262
1267
  }, {
1263
- default: () => [ie, se, n("div", {
1268
+ default: () => [se, re, n("div", {
1264
1269
  role: "grid",
1265
1270
  class: "k-grid-aria-root",
1266
1271
  id: this._gridRoleElementId,
1267
1272
  "aria-colcount": this.getAriaColCount,
1268
1273
  "aria-rowcount": this.getAriaRowCount
1269
- }, [ne, n("div", {
1274
+ }, [de, n("div", {
1270
1275
  class: "k-grid-container",
1271
1276
  role: "presentation"
1272
1277
  }, [n("div", {
@@ -1281,15 +1286,15 @@ const Mi = /* @__PURE__ */ ot({
1281
1286
  role: "none",
1282
1287
  class: this.gridTableClass,
1283
1288
  ref: G(this, "table")
1284
- }, [ue, n("tbody", {
1289
+ }, [ce, n("tbody", {
1285
1290
  class: "k-table-tbody",
1286
1291
  role: "rowgroup",
1287
1292
  "data-keyboardnavbody": !0,
1288
1293
  ref: G(this, "tableBody")
1289
- }, [K])]), U && n(qe, {
1294
+ }, [K])]), U && n(Ye, {
1290
1295
  id: z.generateNavigatableId("no-records", R)
1291
1296
  }, {
1292
- default: () => [M.length ? M : n(je, null, null)]
1297
+ default: () => [M.length ? M : n(Xe, null, null)]
1293
1298
  })]), !U && n("div", {
1294
1299
  class: "k-height-container",
1295
1300
  role: "presentation"
@@ -1298,11 +1303,11 @@ const Mi = /* @__PURE__ */ ot({
1298
1303
  style: this.$props.scrollable === "virtual" ? {
1299
1304
  height: this._containerHeightRef + "px"
1300
1305
  } : {}
1301
- }, null)])]), ge]), de, Ze]), pe, le]
1306
+ }, null)])])]), he, st]), ue, j, ae]
1302
1307
  })]
1303
1308
  });
1304
1309
  }
1305
1310
  });
1306
1311
  export {
1307
- Mi as Grid
1312
+ Ni as Grid
1308
1313
  };