@progress/kendo-vue-grid 7.1.0-develop.5 → 7.1.0-develop.7

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