@progress/kendo-react-grid 7.4.0-develop.9 → 7.4.0

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
@@ -8,40 +8,40 @@
8
8
  "use client";
9
9
  import * as r from "react";
10
10
  import s from "prop-types";
11
- import { dispatchEvent as Ae, canUseDOM as U, getActiveElement as Ge, memoizeOne as S, validatePackage as Ke, shouldShowValidationUI as Oe, setScrollbarWidth as re, getter as Pe, classNames as L, kendoThemeMaps as G, WatermarkOverlay as Ue } from "@progress/kendo-react-common";
12
- import { tableKeyboardNavigation as x, getSelectionOptions as ae, mapColumns as Ve, ClipboardService as We, TableKeyboardNavigationContext as V, isRtl as Be, tableKeyboardNavigationTools as F, tableColumnsVirtualization as $e, Pager as je, tableKeyboardNavigationScopeAttributes as le, TableSelection as ne, tableKeyboardNavigationBodyAttributes as he, DropClue as pe, DragClue as de, updateLeft as qe, updateRight as Je } from "@progress/kendo-react-data-tools";
13
- import { GridSelectionCell as Qe } from "./cells/GridSelectionCell.mjs";
14
- import { GridHierarchyCell as Xe } from "./cells/GridHierarchyCell.mjs";
15
- import { GridEditCell as Ye } from "./cells/GridEditCell.mjs";
16
- import { Header as Ze } from "./header/Header.mjs";
17
- import { HeaderRow as et } from "./header/HeaderRow.mjs";
18
- import { FilterRow as tt } from "./header/FilterRow.mjs";
19
- import { GroupPanel as st } from "./header/GroupPanel.mjs";
20
- import { Footer as it } from "./footer/Footer.mjs";
21
- import { provideLocalizationService as ot, registerForLocalization as rt } from "@progress/kendo-react-intl";
22
- import { pagerMessagesMap as at, gridAriaLabel as ce, messages as lt } from "./messages/index.mjs";
23
- import { VirtualScroll as nt } from "./VirtualScroll.mjs";
11
+ import { dispatchEvent as Ge, canUseDOM as V, getActiveElement as Ke, memoizeOne as S, validatePackage as Oe, shouldShowValidationUI as Pe, setScrollbarWidth as re, getter as Ve, classNames as L, kendoThemeMaps as G, WatermarkOverlay as Ue } from "@progress/kendo-react-common";
12
+ import { tableKeyboardNavigation as x, getSelectionOptions as ae, mapColumns as We, ClipboardService as Be, TableKeyboardNavigationContext as U, isRtl as $e, tableKeyboardNavigationTools as F, tableColumnsVirtualization as je, Pager as qe, tableKeyboardNavigationScopeAttributes as le, TableSelection as ne, tableKeyboardNavigationBodyAttributes as he, DropClue as pe, DragClue as de, updateLeft as Je, updateRight as Qe } from "@progress/kendo-react-data-tools";
13
+ import { GridSelectionCell as Xe } from "./cells/GridSelectionCell.mjs";
14
+ import { GridHierarchyCell as Ye } from "./cells/GridHierarchyCell.mjs";
15
+ import { GridEditCell as Ze } from "./cells/GridEditCell.mjs";
16
+ import { Header as et } from "./header/Header.mjs";
17
+ import { HeaderRow as tt } from "./header/HeaderRow.mjs";
18
+ import { FilterRow as st } from "./header/FilterRow.mjs";
19
+ import { GroupPanel as it } from "./header/GroupPanel.mjs";
20
+ import { Footer as ot } from "./footer/Footer.mjs";
21
+ import { provideLocalizationService as rt, registerForLocalization as at } from "@progress/kendo-react-intl";
22
+ import { pagerMessagesMap as lt, gridAriaLabel as ce, messages as nt } from "./messages/index.mjs";
23
+ import { VirtualScroll as ht } from "./VirtualScroll.mjs";
24
24
  import { VirtualScrollFixed as ue, RowHeightService as ge } from "./VirtualScrollFixed.mjs";
25
- import { ColumnResize as ht } from "./drag/ColumnResize.mjs";
26
- import { CommonDragLogic as pt } from "./drag/CommonDragLogic.mjs";
27
- import { firefox as me, firefoxMaxHeight as fe, flatData as dt, readColumns as ct, sanitizeColumns as ut, getColumnWidth as W, autoGenerateColumns as gt, getNestedValue as ve, resolveCells as mt } from "./utils/index.mjs";
28
- import { GridCell as ft } from "./cells/GridCell.mjs";
29
- import { GridGroupCell as be } from "./cells/GridGroupCell.mjs";
25
+ import { ColumnResize as pt } from "./drag/ColumnResize.mjs";
26
+ import { CommonDragLogic as dt } from "./drag/CommonDragLogic.mjs";
27
+ import { firefox as me, firefoxMaxHeight as fe, flatData as ct, readColumns as ut, sanitizeColumns as gt, getColumnWidth as W, autoGenerateColumns as mt, getNestedValue as be, resolveCells as ft } from "./utils/index.mjs";
28
+ import { GridCell as bt } from "./cells/GridCell.mjs";
29
+ import { GridGroupCell as ve } from "./cells/GridGroupCell.mjs";
30
30
  import { GridRow as vt } from "./rows/GridRow.mjs";
31
- import { GridHeaderSelectionCell as bt } from "./header/GridHeaderSelectionCell.mjs";
32
- import { GridNoRecords as Ct } from "./GridNoRecords.mjs";
31
+ import { GridHeaderSelectionCell as Ct } from "./header/GridHeaderSelectionCell.mjs";
32
+ import { GridNoRecords as Rt } from "./GridNoRecords.mjs";
33
33
  import { operators as Ce } from "./filterCommon.mjs";
34
- import { FooterRow as Rt } from "./footer/FooterRow.mjs";
35
- import { normalize as yt } from "./paging/GridPagerSettings.mjs";
34
+ import { FooterRow as yt } from "./footer/FooterRow.mjs";
35
+ import { normalize as wt } from "./paging/GridPagerSettings.mjs";
36
36
  import { packageMetadata as Re } from "./package-metadata.mjs";
37
- import { GridDetailCell as wt } from "./cells/GridDetailCell.mjs";
38
- import { GridDetailHierarchyCell as St } from "./cells/GridDetailHierarchyCell.mjs";
37
+ import { GridDetailCell as St } from "./cells/GridDetailCell.mjs";
38
+ import { GridDetailHierarchyCell as kt } from "./cells/GridDetailHierarchyCell.mjs";
39
39
  const _ = class _ extends r.Component {
40
40
  constructor(a) {
41
41
  super(a), this._columns = [], this._columnsMap = [[]], this._columnsMutations = 0, this._resized = !1, this._shouldUpdateLeftRight = !0, this.contextStateRef = { current: void 0 }, this.navigationStateRef = { current: void 0 }, this._data = [], this._slicedData = void 0, this.wrapperScrollTop = 0, this.showLicenseWatermark = !1, this.headerRef = r.createRef(), this.headerElementRef = r.createRef(), this._element = null, this.tableElement = null, this.containerRef = r.createRef(), this.tableBodyRef = r.createRef(), this._footer = null, this.forceUpdateTimeout = void 0, this.isRtl = !1, this.observer = null, this.handleIntersection = (e) => {
42
42
  const t = { rowIndex: this.rowIndex };
43
- e.forEach((i) => {
44
- i.isIntersecting || this.setCurrentOnTop(t);
43
+ e.forEach((o) => {
44
+ o.isIntersecting || this.setCurrentOnTop(t);
45
45
  });
46
46
  }, this.setCurrentOnTop = (e) => {
47
47
  if (!this.vs.container || this.props.scrollable === "none")
@@ -51,35 +51,35 @@ const _ = class _ extends r.Component {
51
51
  if (this.props.scrollable === "virtual")
52
52
  this.vs.askedSkip = t, this.vs.container.scroll(0, Math.round(this.vs.askedSkip / this.vs.total * this.vs.container.scrollHeight));
53
53
  else if (this.element) {
54
- const i = t < 1 ? this.element.querySelector("tbody > tr:nth-child(1)") : this.element.querySelector(`tbody > tr:nth-child(${t + 1})`);
55
- i && this.containerRef.current && (this.containerRef.current.scrollTop = i.offsetTop);
54
+ const o = t < 1 ? this.element.querySelector("tbody > tr:nth-child(1)") : this.element.querySelector(`tbody > tr:nth-child(${t + 1})`);
55
+ o && this.containerRef.current && (this.containerRef.current.scrollTop = o.offsetTop);
56
56
  }
57
57
  }, this.scrollIntoView = (e) => {
58
58
  if (!this.vs.container || this.props.scrollable === "none")
59
59
  return;
60
60
  this.rowIndex = e.rowIndex;
61
- const { rowIndex: t } = e, i = this.element;
62
- if (this.observer && i) {
61
+ const { rowIndex: t } = e, o = this.element;
62
+ if (this.observer && o) {
63
63
  this.observer.disconnect();
64
- const n = i.querySelector(`[absolute-row-index="${t}"]`);
64
+ const n = o.querySelector(`[absolute-row-index="${t}"]`);
65
65
  n ? this.observer.observe(n) : this.setCurrentOnTop(e);
66
66
  }
67
67
  }, this.fitColumns = (e) => {
68
68
  this.columnResize.dblClickHandler(null, e);
69
- }, this.onContextMenu = (e, t, i) => {
69
+ }, this.onContextMenu = (e, t, o) => {
70
70
  if (this.props.onContextMenu) {
71
71
  const n = {
72
72
  target: this,
73
73
  syntheticEvent: e,
74
74
  nativeEvent: e.nativeEvent,
75
75
  dataItem: t,
76
- field: i
76
+ field: o
77
77
  };
78
78
  this.props.onContextMenu.call(void 0, n);
79
79
  }
80
80
  }, this.getVirtualScroll = (e) => {
81
- const { rowHeight: t, detailRowHeight: i, detail: n, expandField: h, groupable: l } = e, d = this.isAllData(), v = t !== void 0 && t > 0, R = i !== void 0 && i > 0, E = l === !0 || typeof l == "object" && l.enabled !== !1;
82
- return !v || E && !d || !!(n && h) && (!R || !d) ? nt : ue;
81
+ const { rowHeight: t, detailRowHeight: o, detail: n, expandField: h, groupable: l } = e, d = this.isAllData(), b = t !== void 0 && t > 0, R = o !== void 0 && o > 0, I = l === !0 || typeof l == "object" && l.enabled !== !1;
82
+ return !b || I && !d || !!(n && h) && (!R || !d) ? ht : ue;
83
83
  }, this.isAllData = () => {
84
84
  const { data: e, total: t } = this.props;
85
85
  return Array.isArray(e) ? e.length === t : e ? t === e.total : !1;
@@ -92,14 +92,14 @@ const _ = class _ extends r.Component {
92
92
  this.props.sort,
93
93
  t || this.props.rowHeight === void 0 || this.props.rowHeight === 0
94
94
  ), this.vs.fixedScroll = this.props.fixedScroll || !1, this.vs.PageChange = this.pageChange, this.vs.realSkip = this.props.skip || 0, this.vs.pageSize = (this.props.take !== void 0 ? this.props.take : this.props.pageSize) || 0, this.vs.scrollableVirtual = this.props.scrollable === "virtual", this.vs.total = e, this.vs.propsSkip = (this.props.skip || 0) + (this.props.scrollable === "virtual" ? this.vs.topCacheCount + (this.vs.attendedSkip - (this.props.skip || 0)) : 0), this.props.rowHeight !== void 0 && this.props.rowHeight > 0 && !t) {
95
- const i = this.props.rowHeight * e;
96
- this.vs.containerHeight = me ? Math.min(fe, i) : i;
95
+ const o = this.props.rowHeight * e;
96
+ this.vs.containerHeight = me ? Math.min(fe, o) : o;
97
97
  } else
98
98
  this.vs.containerHeight = 1533915;
99
99
  if (this.vs.containerRef = this.containerRef, this.vs.tableBodyRef = this.tableBodyRef, this.vs.table = this.tableElement, this._slicedData = void 0, this.vs instanceof ue) {
100
- const { rowHeight: i = 0, detail: n, expandField: h } = this.props;
100
+ const { rowHeight: o = 0, detail: n, expandField: h } = this.props;
101
101
  let { detailRowHeight: l = 0 } = this.props;
102
- l = n && h ? l : i, this.isAllData() ? (this.vs.total = this._data.length, this._slicedData = this._data.slice(this.vs.realSkip, this.vs.realSkip + this.vs.pageSize), this.vs.rowHeightService = this.rowHeightService(this.vs, this._data.length, i, l, this._data)) : this.vs.rowHeightService = new ge(e, i, l);
102
+ l = n && h ? l : o, this.isAllData() ? (this.vs.total = this._data.length, this._slicedData = this._data.slice(this.vs.realSkip, this.vs.realSkip + this.vs.pageSize), this.vs.rowHeightService = this.rowHeightService(this.vs, this._data.length, o, l, this._data)) : this.vs.rowHeightService = new ge(e, o, l);
103
103
  const d = this.vs.rowHeightService.totalHeight();
104
104
  this.vs.containerHeight = me ? Math.min(fe, d) : d;
105
105
  }
@@ -107,20 +107,20 @@ const _ = class _ extends r.Component {
107
107
  if (e.target !== e.currentTarget)
108
108
  return;
109
109
  clearTimeout(this.forceUpdateTimeout), this.vs.table = this.tableElement;
110
- const t = e.currentTarget.scrollLeft, i = e.currentTarget.scrollTop;
111
- this.props.columnVirtualization && (!this.vs.scrollableVirtual || i === this.wrapperScrollTop) && (this.forceUpdateTimeout = window.setTimeout(() => {
110
+ const t = e.currentTarget.scrollLeft, o = e.currentTarget.scrollTop;
111
+ this.props.columnVirtualization && (!this.vs.scrollableVirtual || o === this.wrapperScrollTop) && (this.forceUpdateTimeout = window.setTimeout(() => {
112
112
  this.forceUpdate();
113
- }, 0)), this._header && this._header.setScrollLeft(t), this._footer && this._footer.setScrollLeft(t), this.vs && i !== this.wrapperScrollTop && this.vs.scrollHandler(e), Ae(this.props.onScroll, e, this, void 0), this.wrapperScrollTop = i;
113
+ }, 0)), this._header && this._header.setScrollLeft(t), this._footer && this._footer.setScrollLeft(t), this.vs && o !== this.wrapperScrollTop && this.vs.scrollHandler(e), Ge(this.props.onScroll, e, this, void 0), this.wrapperScrollTop = o;
114
114
  }, this.onKeyDown = (e) => {
115
115
  if (x.onKeyDown(e, {
116
116
  contextStateRef: this.contextStateRef,
117
117
  navigationStateRef: this.navigationStateRef,
118
118
  onNavigationAction: this.onNavigationAction
119
119
  }), this.props.onKeyDown) {
120
- const { mode: t, cell: i } = ae(this.props.selectable), n = {
120
+ const { mode: t, cell: o } = ae(this.props.selectable), n = {
121
121
  dataItems: this.getLeafDataItems(),
122
122
  mode: t,
123
- cell: i,
123
+ cell: o,
124
124
  componentId: this._gridId,
125
125
  selectedField: this.props.selectedField,
126
126
  ...this.getArguments(e)
@@ -158,8 +158,8 @@ const _ = class _ extends r.Component {
158
158
  }, this.itemChange = (e) => {
159
159
  const t = this.props.onItemChange;
160
160
  if (e.field === this.props.expandField || this.props.group && e.field === void 0) {
161
- const i = this.props.onExpandChange;
162
- i && i.call(
161
+ const o = this.props.onExpandChange;
162
+ o && o.call(
163
163
  void 0,
164
164
  {
165
165
  ...this.getArguments(e.syntheticEvent),
@@ -204,13 +204,13 @@ const _ = class _ extends r.Component {
204
204
  };
205
205
  this.props.onSelectionChange.call(void 0, t);
206
206
  }
207
- }, this.pageChange = (e, t, i) => {
207
+ }, this.pageChange = (e, t, o) => {
208
208
  this.raiseDataEvent(
209
209
  this.props.onPageChange,
210
210
  { page: e },
211
211
  { skip: e.skip, take: e.take },
212
212
  t,
213
- i
213
+ o
214
214
  );
215
215
  }, this.pagerPageChange = (e) => {
216
216
  this.pageChange({ skip: e.skip, take: e.take }, e.syntheticEvent, e.targetEvent);
@@ -229,12 +229,12 @@ const _ = class _ extends r.Component {
229
229
  t
230
230
  );
231
231
  }, this.groupChange = (e, t) => {
232
- const i = t.nativeEvent ? t : { nativeEvent: t.nativeEvent || t.originalEvent };
232
+ const o = t.nativeEvent ? t : { nativeEvent: t.nativeEvent || t.originalEvent };
233
233
  this.raiseDataEvent(
234
234
  this.props.onGroupChange,
235
235
  { group: e },
236
236
  { group: e, skip: 0 },
237
- i
237
+ o
238
238
  );
239
239
  }, this.onClipboard = (e, t) => {
240
240
  if (this.props.onClipboard) {
@@ -253,11 +253,11 @@ const _ = class _ extends r.Component {
253
253
  }
254
254
  }, this.inActiveElement = () => {
255
255
  var h, l, d;
256
- if (!U)
256
+ if (!V)
257
257
  return !1;
258
- const e = Ge(this.document), t = e ? e.matches(".k-table-td") ? e : (h = this.document) == null ? void 0 : h.body : (l = this.document) == null ? void 0 : l.body, i = t.closest(".k-grid-container"), n = t && ((d = this._element) == null ? void 0 : d.contains(t));
259
- return !!(t && n && i);
260
- }, this.onResize = (e, t, i, n, h, l) => {
258
+ const e = Ke(this.document), t = e ? e.matches(".k-table-td") ? e : (h = this.document) == null ? void 0 : h.body : (l = this.document) == null ? void 0 : l.body, o = t.closest(".k-grid-container"), n = t && ((d = this._element) == null ? void 0 : d.contains(t));
259
+ return !!(t && n && o);
260
+ }, this.onResize = (e, t, o, n, h, l) => {
261
261
  this.resetTableWidth(), this._shouldUpdateLeftRight = !0, this._resized = !0, this._columnsMutations++, this.props.onColumnResize && this.props.onColumnResize.call(
262
262
  void 0,
263
263
  {
@@ -266,35 +266,35 @@ const _ = class _ extends r.Component {
266
266
  targetColumnId: l,
267
267
  index: e,
268
268
  newWidth: t,
269
- oldWidth: i,
269
+ oldWidth: o,
270
270
  end: h,
271
271
  target: this
272
272
  }
273
273
  );
274
- }, this.reInitVirtualization = S((e, t, i, n, h, l) => {
274
+ }, this.reInitVirtualization = S((e, t, o, n, h, l) => {
275
275
  this.vs.reset();
276
276
  const d = this.getVirtualScroll(this.props);
277
277
  this.vs = new d(l);
278
- }), this.flatData = S((e, t, i, n, h, l, d) => {
279
- const v = [], R = dt(
280
- v,
278
+ }), this.flatData = S((e, t, o, n, h, l, d) => {
279
+ const b = [], R = ct(
280
+ b,
281
281
  e,
282
282
  t,
283
- { index: i },
283
+ { index: o },
284
284
  n !== void 0,
285
285
  h
286
286
  );
287
- return { flattedData: v, resolvedGroupsCount: R };
288
- }), this.rowHeightService = S((e, t, i, n, h) => new ge(t, i, n, h)), this.childrenToArray = S((e) => r.Children.toArray(e)), this.readColumns = S(
289
- (e, t, i) => {
287
+ return { flattedData: b, resolvedGroupsCount: R };
288
+ }), this.rowHeightService = S((e, t, o, n, h) => new ge(t, o, n, h)), this.childrenToArray = S((e) => r.Children.toArray(e)), this.readColumns = S(
289
+ (e, t, o) => {
290
290
  const n = e.filter((h) => h && h.type && h.type.displayName === "KendoReactGridColumn");
291
- return ct(n, this.columns, { prevId: 0, idPrefix: t });
291
+ return ut(n, this.columns, { prevId: 0, idPrefix: t });
292
292
  }
293
293
  ), this.mapColumns = S(
294
- (e) => Ve(e)
295
- ), this.configureColumns = S((e, t, i) => {
294
+ (e, t) => We(e, t)
295
+ ), this.configureColumns = S((e, t, o) => {
296
296
  this.props.selectedField && e.filter((l) => l.field === this.props.selectedField).forEach((l) => {
297
- l.width = l.width || "50px", l.cell = l.cell || Qe, l.headerCell = l.headerCell || bt;
297
+ l.width = l.width || "50px", l.cell = l.cell || Xe, l.headerCell = l.headerCell || Ct;
298
298
  });
299
299
  const n = {
300
300
  id: "",
@@ -318,7 +318,7 @@ const _ = class _ extends r.Component {
318
318
  let h = 0;
319
319
  this.props.expandField && this.props.onExpandChange && this.props.detail && (e.unshift({
320
320
  ...n,
321
- cell: Xe,
321
+ cell: Ye,
322
322
  field: this.props.expandField,
323
323
  headerClassName: "k-hierarchy-cell k-header"
324
324
  }), h++);
@@ -326,19 +326,19 @@ const _ = class _ extends r.Component {
326
326
  e.unshift({
327
327
  ...n,
328
328
  isAccessible: !1,
329
- cell: be,
329
+ cell: ve,
330
330
  field: "value",
331
331
  locked: this.props.lockGroups
332
332
  }), h++;
333
333
  e.slice(h).forEach((l) => l.parentIndex >= 0 && (l.parentIndex += h));
334
- }), this.getHeaderRow = S((e, t, i, n, h, l, d, v, R, E, b, N) => /* @__PURE__ */ r.createElement(
335
- et,
334
+ }), this.getHeaderRow = S((e, t, o, n, h, l, d, b, R, I, v, N) => /* @__PURE__ */ r.createElement(
335
+ tt,
336
336
  {
337
337
  cells: this.props.cells,
338
338
  sort: e,
339
339
  sortable: t,
340
340
  sortChange: this.sortChange,
341
- group: i || [],
341
+ group: o || [],
342
342
  groupable: n,
343
343
  groupChange: this.groupChange,
344
344
  filter: h,
@@ -347,29 +347,30 @@ const _ = class _ extends r.Component {
347
347
  filterChange: this.filterChange,
348
348
  columnMenu: R,
349
349
  selectionChange: this.onHeaderSelectionChange,
350
- columns: E,
350
+ columns: I,
351
351
  columnResize: this.columnResize,
352
352
  pressHandler: this.dragLogic.pressHandler,
353
353
  dragHandler: this.dragLogic.dragHandler,
354
354
  releaseHandler: this.dragLogic.releaseHandler,
355
- columnsMap: b,
356
- cellRender: v,
355
+ columnsMap: v,
356
+ cellRender: b,
357
357
  isRtl: N,
358
358
  dragClue: this.dragLogic.dragClueRef,
359
359
  headerRef: this.headerElementRef,
360
360
  containerRef: this.containerRef,
361
+ navigatable: this.props.navigatable,
361
362
  columnGroupChange: this.columnGroupChange
362
363
  }
363
364
  )), this.resolveTitle = (e) => {
364
- const t = this._columns.find((n) => n.field === e), i = t && (t.title || t.field);
365
- return i === void 0 ? e : i;
366
- }, this.getLeafDataItems = () => this._data.filter((e) => e.rowType === "data").map((e) => e.dataItem), Ke(Re), this.showLicenseWatermark = Oe(Re);
365
+ const t = this._columns.find((n) => n.field === e), o = t && (t.title || t.field);
366
+ return o === void 0 ? e : o;
367
+ }, this.getLeafDataItems = () => this._data.filter((e) => e.rowType === "data").map((e) => e.dataItem), Oe(Re), this.showLicenseWatermark = Pe(Re);
367
368
  const p = this.props.groupable === !0 || typeof this.props.groupable == "object" && this.props.groupable.enabled !== !1, c = this.getVirtualScroll(a);
368
- this.vs = new c(p || a.rowHeight === void 0 || a.rowHeight === 0), this.dragLogic = new pt(
369
+ this.vs = new c(p || a.rowHeight === void 0 || a.rowHeight === 0), this.dragLogic = new dt(
369
370
  this.columnReorder.bind(this),
370
371
  this.groupReorder.bind(this),
371
372
  this.columnToGroup.bind(this)
372
- ), this.columnGroupChange = this.columnGroupChange.bind(this), this.columnResize = new ht(this.onResize), this.props.clipboard && (this.clipboardService = new We(this.onClipboard)), x.onConstructor({
373
+ ), this.columnGroupChange = this.columnGroupChange.bind(this), this.columnResize = new pt(this.onResize), this.props.clipboard && (this.clipboardService = new Be(this.onClipboard)), x.onConstructor({
373
374
  navigatable: !!a.navigatable,
374
375
  contextStateRef: this.contextStateRef,
375
376
  navigationStateRef: this.navigationStateRef,
@@ -418,7 +419,7 @@ const _ = class _ extends r.Component {
418
419
  // tslint:enable:max-line-length
419
420
  get columns() {
420
421
  const a = this._columns.filter((p) => p.declarationIndex >= 0 && p.parentIndex === -1);
421
- return ut(a);
422
+ return gt(a);
422
423
  }
423
424
  /**
424
425
  * Returns the HTML element of the Grid component.
@@ -427,7 +428,7 @@ const _ = class _ extends r.Component {
427
428
  return this._element;
428
429
  }
429
430
  get document() {
430
- if (U)
431
+ if (V)
431
432
  return this.element && this.element.ownerDocument || document;
432
433
  }
433
434
  get _header() {
@@ -441,7 +442,7 @@ const _ = class _ extends r.Component {
441
442
  */
442
443
  componentDidMount() {
443
444
  this.resetTableWidth(), re();
444
- const a = Be(this.element);
445
+ const a = $e(this.element);
445
446
  this.isRtl = a, x.onComponentDidMount({
446
447
  scope: this.element || void 0,
447
448
  contextStateRef: this.contextStateRef,
@@ -451,7 +452,7 @@ const _ = class _ extends r.Component {
451
452
  rootMargin: "0px",
452
453
  threshold: 0.9
453
454
  };
454
- this.clipboardService && this.clipboardService.addEventListeners(this.document), this.observer = U && window.IntersectionObserver && new window.IntersectionObserver(this.handleIntersection, p) || null;
455
+ this.clipboardService && this.clipboardService.addEventListeners(this.document), this.observer = V && window.IntersectionObserver && new window.IntersectionObserver(this.handleIntersection, p) || null;
455
456
  }
456
457
  /**
457
458
  * @hidden
@@ -485,10 +486,10 @@ const _ = class _ extends r.Component {
485
486
  render() {
486
487
  var ie;
487
488
  let a = this.props.total || 0;
488
- const p = F.getIdPrefix(this.navigationStateRef), c = ot(this);
489
+ const p = F.getIdPrefix(this.navigationStateRef), c = rt(this);
489
490
  let e = [];
490
491
  Array.isArray(this.props.data) ? (e = this.props.data, a = a || this.props.data.length) : this.props.data && (e = this.props.data.data, a = a || this.props.data.total);
491
- const t = typeof this.props.groupable == "object" && this.props.groupable.footer || "none", { resolvedGroupsCount: i, flattedData: n } = this.flatData(
492
+ const t = typeof this.props.groupable == "object" && this.props.groupable.footer || "none", { resolvedGroupsCount: o, flattedData: n } = this.flatData(
492
493
  e,
493
494
  t,
494
495
  this.props.skip || 0,
@@ -503,9 +504,9 @@ const _ = class _ extends r.Component {
503
504
  const l = this.props.selectable && this.props.selectable.drag ? "none" : void 0;
504
505
  this.initializeVirtualization(a, h);
505
506
  const d = this.childrenToArray(this.props.children);
506
- this.initColumns(d, i);
507
- const v = d.map((o) => o && o.type && o.type.displayName === "KendoReactGridToolbar" ? r.cloneElement(o, { ...o.props, ariaControls: this._gridId }) : null), R = d.filter((o) => o && o.type && o.type.displayName === "KendoReactGridNoRecords"), E = d.filter((o) => o && o.type && o.type.displayName === "KendoReactGridStatusBar"), b = this._columns.filter((o) => o.children.length === 0), N = h && /* @__PURE__ */ r.createElement(
508
- st,
507
+ this.initColumns(d, o);
508
+ const b = d.map((i) => i && i.type && i.type.displayName === "KendoReactGridToolbar" ? r.cloneElement(i, { ...i.props, ariaControls: this._gridId }) : null), R = d.filter((i) => i && i.type && i.type.displayName === "KendoReactGridNoRecords"), I = d.filter((i) => i && i.type && i.type.displayName === "KendoReactGridStatusBar"), v = this._columns.filter((i) => i.children.length === 0), N = h && /* @__PURE__ */ r.createElement(
509
+ it,
509
510
  {
510
511
  group: this.props.group || [],
511
512
  groupChange: this.groupChange,
@@ -517,8 +518,8 @@ const _ = class _ extends r.Component {
517
518
  ariaControls: this._gridId,
518
519
  onContextMenu: this.onContextMenu
519
520
  }
520
- ), { sort: ye, sortable: we, group: Se, filter: ke, filterable: Ee, filterOperators: Ie = Ce, headerCellRender: xe, columnMenu: _e } = this.props, $ = /* @__PURE__ */ r.createElement(
521
- Ze,
521
+ ), { sort: ye, sortable: we, group: Se, filter: ke, filterable: Ie, filterOperators: Ee = Ce, headerCellRender: xe, columnMenu: _e } = this.props, $ = /* @__PURE__ */ r.createElement(
522
+ et,
522
523
  {
523
524
  size: this.props.size,
524
525
  columnResize: this.columnResize,
@@ -533,8 +534,8 @@ const _ = class _ extends r.Component {
533
534
  Se,
534
535
  h,
535
536
  ke,
536
- Ee,
537
537
  Ie,
538
+ Ee,
538
539
  xe,
539
540
  _e,
540
541
  this._columns,
@@ -542,7 +543,7 @@ const _ = class _ extends r.Component {
542
543
  this.isRtl
543
544
  ),
544
545
  filterRow: this.props.filterable && /* @__PURE__ */ r.createElement(
545
- tt,
546
+ st,
546
547
  {
547
548
  cells: this.props.cells,
548
549
  size: this.props.size,
@@ -556,33 +557,33 @@ const _ = class _ extends r.Component {
556
557
  ariaRowIndex: this._columnsMap.length + 1
557
558
  }
558
559
  ) || void 0,
559
- cols: b.map((o, g) => /* @__PURE__ */ r.createElement(
560
+ cols: v.map((i, g) => /* @__PURE__ */ r.createElement(
560
561
  "col",
561
562
  {
562
563
  key: g.toString(),
563
- width: W(o)
564
+ width: W(i)
564
565
  }
565
566
  ))
566
567
  }
567
- ), ze = this.vs && this.vs.container && this.vs.container.scrollLeft || 0, De = parseFloat(((this.props.style || {}).width || "").toString()), { colSpans: He, hiddenColumns: Te } = $e({
568
+ ), ze = this.vs && this.vs.container && this.vs.container.scrollLeft || 0, De = parseFloat(((this.props.style || {}).width || "").toString()), { colSpans: He, hiddenColumns: Te } = je({
568
569
  enabled: this.props.columnVirtualization,
569
- columns: b,
570
+ columns: v,
570
571
  tableViewPortWidth: De,
571
572
  scrollLeft: ze
572
- }), Le = (o, g, m) => {
573
- let I = !1;
574
- const k = this.props.selectedField ? ve(this.props.selectedField, o.dataItem) : void 0;
573
+ }), Le = (i, g, m) => {
574
+ let E = !1;
575
+ const k = this.props.selectedField ? be(this.props.selectedField, i.dataItem) : void 0;
575
576
  return {
576
- row: b.map((u, f) => {
577
+ row: v.map((u, f) => {
577
578
  if (Te[f])
578
579
  return null;
579
580
  const D = u.id ? u.id : f, H = `${u.className ? u.className + " " : ""}${u.locked ? "k-grid-content-sticky" : ""}`, y = u.left !== void 0 ? this.isRtl ? { left: u.right, right: u.left } : { left: u.left, right: u.right } : {};
580
581
  let w = !1;
581
582
  if (u.editable && this.props.editField) {
582
- const C = ve(this.props.editField, o.dataItem);
583
- C && (C === !0 || C === u.field) && (I = !0, w = !0);
583
+ const C = be(this.props.editField, i.dataItem);
584
+ C && (C === !0 || C === u.field) && (E = !0, w = !0);
584
585
  }
585
- const P = u.cell || w && Ye || ft, T = this.props.expandField && this.props.detail && u.field === this.props.expandField;
586
+ const P = u.cell || w && Ze || bt, T = this.props.expandField && this.props.detail && u.field === this.props.expandField;
586
587
  return /* @__PURE__ */ r.createElement(
587
588
  P,
588
589
  {
@@ -595,54 +596,54 @@ const _ = class _ extends r.Component {
595
596
  T ? "nodata" : "cell"
596
597
  ),
597
598
  colSpan: He[f],
598
- dataItem: o.dataItem,
599
+ dataItem: i.dataItem,
599
600
  field: u.field,
600
601
  editor: u.editor,
601
602
  format: u.format,
602
603
  className: H,
603
604
  render: this.props.cellRender,
604
- cells: mt(this.props.cells, u.cells),
605
+ cells: ft(this.props.cells, u.cells),
605
606
  onChange: this.itemChange,
606
607
  selectionChange: this.props.onSelectionChange ? (C) => {
607
- this.selectionChange({ event: C, dataItem: o.dataItem, dataIndex: m, columnIndex: f });
608
+ this.selectionChange({ event: C, dataItem: i.dataItem, dataIndex: m, columnIndex: f });
608
609
  } : void 0,
609
610
  columnIndex: f,
610
- columnsCount: b.length,
611
- rowType: o.rowType,
612
- level: o.level,
613
- expanded: o.expanded,
614
- dataIndex: o.dataIndex,
611
+ columnsCount: v.length,
612
+ rowType: i.rowType,
613
+ level: i.level,
614
+ expanded: i.expanded,
615
+ dataIndex: i.dataIndex,
615
616
  style: y,
616
617
  ariaColumnIndex: u.ariaColumnIndex,
617
618
  isSelected: Array.isArray(k) && k.indexOf(f) > -1
618
619
  }
619
620
  );
620
621
  }),
621
- isInEdit: I,
622
+ isInEdit: E,
622
623
  isSelected: typeof k == "boolean" && k
623
624
  };
624
625
  };
625
626
  let j = 0;
626
627
  if (this.props.scrollable === "virtual")
627
- for (let o = 0; o < this.vs.topCacheCount + this.vs.attendedSkip - (this.props.skip || 0); o++) {
628
+ for (let i = 0; i < this.vs.topCacheCount + this.vs.attendedSkip - (this.props.skip || 0); i++) {
628
629
  const g = this._data.shift();
629
630
  if (g)
630
- this._data.push(g), j++, g.rowType === "groupHeader" && o--;
631
+ this._data.push(g), j++, g.rowType === "groupHeader" && i--;
631
632
  else
632
633
  break;
633
634
  }
634
- const q = (o) => o >= this._data.length - j;
635
+ const q = (i) => i >= this._data.length - j;
635
636
  let J = this.vs.realSkip || 0;
636
- const M = [];
637
+ const A = [];
637
638
  let K = !1;
638
- const O = this._columnsMap.length + (this.props.filterable ? 1 : 0) + 1, Q = /* @__PURE__ */ r.createElement("div", { key: "no-records", className: "k-grid-norecords", "aria-rowindex": O }, /* @__PURE__ */ r.createElement("div", { className: "k-grid-norecords-template" }, R.length ? R : /* @__PURE__ */ r.createElement(Ct, null)));
639
+ const O = this._columnsMap.length + (this.props.filterable ? 1 : 0) + 1;
639
640
  let z = 0;
640
641
  if (this._data.length) {
641
- let o = -1, g = 0;
642
- (this._slicedData || this._data).forEach((m, I) => {
643
- m.rowType === "data" && (J++, o++);
644
- const k = J % 2 === 0, u = this.props.dataItemKey && Pe(this.props.dataItemKey)(m.dataItem), f = I + (this.vs.realSkip || 0), D = u || "ai" + f, H = D + "_1", y = Le(m, D, o);
645
- if (z = f + O + g, M.push(/* @__PURE__ */ r.createElement(
642
+ let i = -1, g = 0;
643
+ (this._slicedData || this._data).forEach((m, E) => {
644
+ m.rowType === "data" && (J++, i++);
645
+ const k = J % 2 === 0, u = this.props.dataItemKey && Ve(this.props.dataItemKey)(m.dataItem), f = E + (this.vs.realSkip || 0), D = u || "ai" + f, H = D + "_1", y = Le(m, D, i);
646
+ if (z = f + O + g, A.push(/* @__PURE__ */ r.createElement(
646
647
  vt,
647
648
  {
648
649
  key: D,
@@ -650,7 +651,7 @@ const _ = class _ extends r.Component {
650
651
  isAltRow: k,
651
652
  isInEdit: y.isInEdit,
652
653
  rowType: m.rowType,
653
- isHidden: q(I),
654
+ isHidden: q(E),
654
655
  onClick: (w) => this.rowClick(w, m),
655
656
  onDoubleClick: (w) => this.rowDblClick(w, m),
656
657
  selectedField: this.props.selectedField,
@@ -658,13 +659,13 @@ const _ = class _ extends r.Component {
658
659
  render: this.props.rowRender,
659
660
  ariaRowIndex: z,
660
661
  absoluteRowIndex: f,
661
- dataIndex: o,
662
+ dataIndex: this.vs.scrollableVirtual ? f : i,
662
663
  isSelected: y.isSelected
663
664
  },
664
665
  y.row
665
666
  )), this.props.detail && m.rowType === "data" && m.expanded) {
666
- const w = b.length - (this.props.expandField ? 1 : 0) - (this.props.group ? this.props.group.length : 0) || 1;
667
- g++, z = f + O + g, M.push(/* @__PURE__ */ r.createElement(
667
+ const w = v.length - (this.props.expandField ? 1 : 0) - (this.props.group ? this.props.group.length : 0) || 1;
668
+ g++, z = f + O + g, A.push(/* @__PURE__ */ r.createElement(
668
669
  "tr",
669
670
  {
670
671
  key: H,
@@ -672,7 +673,7 @@ const _ = class _ extends r.Component {
672
673
  "k-table-row",
673
674
  k ? "k-detail-row k-table-alt-row k-alt" : "k-detail-row"
674
675
  ),
675
- style: { visibility: q(I) ? "hidden" : "", height: this.props.detailRowHeight },
676
+ style: { visibility: q(E) ? "hidden" : "", height: this.props.detailRowHeight },
676
677
  role: "row",
677
678
  "aria-rowindex": z
678
679
  },
@@ -680,7 +681,7 @@ const _ = class _ extends r.Component {
680
681
  var oe;
681
682
  const C = (oe = y == null ? void 0 : y.row[T]) == null ? void 0 : oe.props.style, Me = C ? this.isRtl ? { left: C.right, right: C.left } : { left: C.left, right: C.right } : {};
682
683
  return /* @__PURE__ */ r.createElement(
683
- be,
684
+ ve,
684
685
  {
685
686
  id: "",
686
687
  dataIndex: m.dataIndex,
@@ -697,13 +698,13 @@ const _ = class _ extends r.Component {
697
698
  );
698
699
  }),
699
700
  this.props.expandField && /* @__PURE__ */ r.createElement(
700
- St,
701
+ kt,
701
702
  {
702
703
  id: F.generateNavigatableId(`${H}-dhcell`, p)
703
704
  }
704
705
  ),
705
706
  /* @__PURE__ */ r.createElement(
706
- wt,
707
+ St,
707
708
  {
708
709
  onContextMenu: this.onContextMenu,
709
710
  dataItem: m.dataItem,
@@ -719,35 +720,38 @@ const _ = class _ extends r.Component {
719
720
  });
720
721
  } else
721
722
  K = !0;
722
- const X = {
723
+ const Fe = () => {
724
+ const i = this._header;
725
+ return i && i.table.clientWidth;
726
+ }, Q = () => /* @__PURE__ */ r.createElement("div", { key: "no-records", className: "k-grid-norecords", "aria-rowindex": O, style: { width: Fe() } }, /* @__PURE__ */ r.createElement("div", { className: "k-grid-norecords-template" }, R.length ? R : /* @__PURE__ */ r.createElement(Rt, null))), X = {
723
727
  size: this.props.size,
724
728
  onPageChange: this.pagerPageChange,
725
729
  total: a,
726
730
  dir: this.isRtl ? "rtl" : void 0,
727
731
  skip: this.vs.propsSkip || 0,
728
732
  take: (this.props.take !== void 0 ? this.props.take : this.props.pageSize) || 10,
729
- messagesMap: at,
730
- ...yt(this.props.pageable || {})
731
- }, Y = this.props.pager ? /* @__PURE__ */ r.createElement(this.props.pager, { ...X }) : /* @__PURE__ */ r.createElement(je, { className: "k-grid-pager", ...X }), Fe = (o) => this.props.sort && this.props.sort.filter((g) => g.field === o).length > 0, Ne = (o, g) => /* @__PURE__ */ r.createElement(
733
+ messagesMap: lt,
734
+ ...wt(this.props.pageable || {})
735
+ }, Y = this.props.pager ? /* @__PURE__ */ r.createElement(this.props.pager, { ...X }) : /* @__PURE__ */ r.createElement(qe, { className: "k-grid-pager", ...X }), Ne = (i) => this.props.sort && this.props.sort.filter((g) => g.field === i).length > 0, Ae = (i, g) => /* @__PURE__ */ r.createElement(
732
736
  "col",
733
737
  {
734
738
  key: g.toString(),
735
- width: W(o)
739
+ width: W(i)
736
740
  }
737
741
  ), Z = (ie = this.props.cells) != null && ie.footerCell || this._columns.some(
738
- (o) => {
742
+ (i) => {
739
743
  var g;
740
- return !!(o.footerCell || (g = o.cells) != null && g.footerCell);
744
+ return !!(i.footerCell || (g = i.cells) != null && g.footerCell);
741
745
  }
742
746
  ) ? /* @__PURE__ */ r.createElement(
743
- it,
747
+ ot,
744
748
  {
745
749
  size: this.props.size,
746
750
  columnResize: this.columnResize,
747
751
  staticHeaders: this.props.scrollable !== "none",
748
- ref: (o) => this._footer = o,
752
+ ref: (i) => this._footer = i,
749
753
  row: /* @__PURE__ */ r.createElement(
750
- Rt,
754
+ yt,
751
755
  {
752
756
  cells: this.props.cells,
753
757
  columns: this._columns,
@@ -755,28 +759,28 @@ const _ = class _ extends r.Component {
755
759
  ariaRowIndex: z + 1
756
760
  }
757
761
  ),
758
- cols: b.map(Ne)
762
+ cols: v.map(Ae)
759
763
  }
760
764
  ) : null, ee = /* @__PURE__ */ r.createElement(
761
765
  "colgroup",
762
766
  {
763
- ref: (o) => {
764
- this.columnResize.colGroupMain = o;
767
+ ref: (i) => {
768
+ this.columnResize.colGroupMain = i;
765
769
  }
766
770
  },
767
- b.map(
768
- (o, g) => /* @__PURE__ */ r.createElement(
771
+ v.map(
772
+ (i, g) => /* @__PURE__ */ r.createElement(
769
773
  "col",
770
774
  {
771
775
  key: g.toString(),
772
- className: Fe(o.field) ? "k-sorted" : void 0,
773
- width: W(o)
776
+ className: Ne(i.field) ? "k-sorted" : void 0,
777
+ width: W(i)
774
778
  }
775
779
  )
776
780
  )
777
781
  ), te = this.dragLogic.reorderable || this.dragLogic.groupable, se = this.props.columnVirtualization ? "block" : "table";
778
782
  if (this.props.scrollable === "none")
779
- return /* @__PURE__ */ r.createElement(V.Provider, { value: this.contextStateRef.current }, /* @__PURE__ */ r.createElement(
783
+ return /* @__PURE__ */ r.createElement(U.Provider, { value: this.contextStateRef.current }, /* @__PURE__ */ r.createElement(
780
784
  "div",
781
785
  {
782
786
  id: this.props.id,
@@ -789,23 +793,23 @@ const _ = class _ extends r.Component {
789
793
  },
790
794
  this.props.className
791
795
  ),
792
- ref: (o) => {
793
- this._element = o;
796
+ ref: (i) => {
797
+ this._element = i;
794
798
  },
795
799
  "aria-label": this.props.ariaLabel,
796
800
  onKeyDown: this.onKeyDown,
797
801
  onFocus: this.onFocus,
798
802
  ...le
799
803
  },
800
- v,
804
+ b,
801
805
  N,
802
806
  /* @__PURE__ */ r.createElement(
803
807
  ne,
804
808
  {
805
809
  selectable: this.props.selectable,
806
810
  onRelease: this.selectionRelease,
807
- childRef: (o) => {
808
- this.tableElement = o;
811
+ childRef: (i) => {
812
+ this.tableElement = i;
809
813
  }
810
814
  },
811
815
  /* @__PURE__ */ r.createElement(
@@ -819,19 +823,19 @@ const _ = class _ extends r.Component {
819
823
  },
820
824
  ee,
821
825
  $,
822
- /* @__PURE__ */ r.createElement("tbody", { role: "rowgroup", className: "k-table-tbody", ...he }, M),
826
+ /* @__PURE__ */ r.createElement("tbody", { role: "rowgroup", className: "k-table-tbody", ...he }, A),
823
827
  Z
824
828
  )
825
829
  ),
826
- K && Q,
830
+ K && Q(),
827
831
  te && /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(pe, { ref: this.dragLogic.refDropElementClue }), /* @__PURE__ */ r.createElement(de, { ref: this.dragLogic.refDragElementClue }))
828
- ), E, this.props.pageable && Y);
829
- let A = this.props.style || {};
830
- return this.props.scrollable === "virtual" && (A.height || (A = Object.assign({}, A, { height: "450px" }))), /* @__PURE__ */ r.createElement(V.Provider, { value: this.contextStateRef.current }, /* @__PURE__ */ r.createElement(
832
+ ), I, this.props.pageable && Y);
833
+ let M = this.props.style || {};
834
+ return this.props.scrollable === "virtual" && (M.height || (M = Object.assign({}, M, { height: "450px" }))), /* @__PURE__ */ r.createElement(U.Provider, { value: this.contextStateRef.current }, /* @__PURE__ */ r.createElement(
831
835
  "div",
832
836
  {
833
837
  id: this.props.id,
834
- style: A,
838
+ style: M,
835
839
  className: L(
836
840
  "k-grid",
837
841
  {
@@ -841,25 +845,25 @@ const _ = class _ extends r.Component {
841
845
  },
842
846
  this.props.className
843
847
  ),
844
- ref: (o) => {
845
- this._element = o;
848
+ ref: (i) => {
849
+ this._element = i;
846
850
  },
847
851
  "aria-label": this.props.ariaLabel,
848
852
  onKeyDown: this.onKeyDown,
849
853
  onFocus: this.onFocus,
850
854
  ...le
851
855
  },
852
- v,
856
+ b,
853
857
  N,
854
858
  /* @__PURE__ */ r.createElement(
855
859
  "div",
856
860
  {
857
861
  className: "k-grid-aria-root",
858
862
  role: "grid",
859
- "aria-colcount": b.length,
863
+ "aria-colcount": v.length,
860
864
  "aria-rowcount": a,
861
865
  id: this._gridId,
862
- "aria-label": c.toLanguageString(ce, lt[ce])
866
+ "aria-label": c.toLanguageString(ce, nt[ce])
863
867
  },
864
868
  $,
865
869
  /* @__PURE__ */ r.createElement("div", { className: "k-grid-container", role: "presentation" }, /* @__PURE__ */ r.createElement(
@@ -875,8 +879,8 @@ const _ = class _ extends r.Component {
875
879
  {
876
880
  selectable: this.props.selectable,
877
881
  onRelease: this.selectionRelease,
878
- childRef: (o) => {
879
- this.tableElement = o;
882
+ childRef: (i) => {
883
+ this.tableElement = i;
880
884
  }
881
885
  },
882
886
  /* @__PURE__ */ r.createElement(
@@ -901,10 +905,10 @@ const _ = class _ extends r.Component {
901
905
  role: "rowgroup",
902
906
  ...he
903
907
  },
904
- M
908
+ A
905
909
  )
906
910
  )
907
- ), K && Q),
911
+ ), K && Q()),
908
912
  /* @__PURE__ */ r.createElement("div", { className: "k-height-container", role: "presentation" }, /* @__PURE__ */ r.createElement(
909
913
  "div",
910
914
  {
@@ -916,13 +920,13 @@ const _ = class _ extends r.Component {
916
920
  te && /* @__PURE__ */ r.createElement(r.Fragment, null, /* @__PURE__ */ r.createElement(pe, { ref: this.dragLogic.refDropElementClue }), /* @__PURE__ */ r.createElement(de, { ref: this.dragLogic.refDragElementClue })),
917
921
  this.showLicenseWatermark && /* @__PURE__ */ r.createElement(Ue, null)
918
922
  ),
919
- E,
923
+ I,
920
924
  this.props.pageable && Y
921
925
  ));
922
926
  }
923
927
  selectionChange(a) {
924
928
  if (this.props.onSelectionChange) {
925
- const { event: p, dataItem: c, dataIndex: e, columnIndex: t } = a, { mode: i, cell: n } = ae(this.props.selectable), h = {
929
+ const { event: p, dataItem: c, dataIndex: e, columnIndex: t } = a, { mode: o, cell: n } = ae(this.props.selectable), h = {
926
930
  ...this.getArguments(p.syntheticEvent),
927
931
  dataItem: c,
928
932
  startColIndex: t,
@@ -934,7 +938,7 @@ const _ = class _ extends r.Component {
934
938
  ctrlKey: !1,
935
939
  shiftKey: !1,
936
940
  metaKey: !1,
937
- mode: i,
941
+ mode: o,
938
942
  cell: n,
939
943
  isDrag: !1,
940
944
  componentId: this._gridId,
@@ -944,12 +948,12 @@ const _ = class _ extends r.Component {
944
948
  }
945
949
  }
946
950
  raiseDataEvent(a, p, c, e, t) {
947
- const i = this.props.onDataStateChange;
951
+ const o = this.props.onDataStateChange;
948
952
  if (a) {
949
953
  const n = { ...this.getArguments(e), ...p, targetEvent: t };
950
954
  a.call(void 0, n);
951
955
  } else
952
- i && i.call(
956
+ o && o.call(
953
957
  void 0,
954
958
  {
955
959
  ...this.getArguments(e),
@@ -962,15 +966,15 @@ const _ = class _ extends r.Component {
962
966
  );
963
967
  }
964
968
  columnReorder(a, p, c) {
965
- const e = this._columns[a], t = e.depth, i = (d) => {
969
+ const e = this._columns[a], t = e.depth, o = (d) => {
966
970
  do
967
971
  d++;
968
972
  while (d < this._columns.length && this._columns[d].depth > t);
969
973
  return d;
970
- }, n = this._columns.splice(a, i(a) - a);
971
- this._columns.splice(a < p ? i(p - n.length) : p, 0, ...n), this._columns.filter((d) => d.declarationIndex >= 0).forEach((d, v) => d.orderIndex = v), this._columnsMutations++;
974
+ }, n = this._columns.splice(a, o(a) - a);
975
+ this._columns.splice(a < p ? o(p - n.length) : p, 0, ...n), this._columns.filter((d) => d.declarationIndex >= 0).forEach((d, b) => d.orderIndex = b), this._columnsMutations++;
972
976
  const h = this._columns[a].locked && this._columns[p].locked;
973
- qe(this._columnsMap, this._columns, h || this._shouldUpdateLeftRight), Je(this._columnsMap, this._columns, h || this._shouldUpdateLeftRight), this._resized && (this._shouldUpdateLeftRight = !1, this._resized = !1);
977
+ Je(this._columnsMap, this._columns, h || this._shouldUpdateLeftRight), Qe(this._columnsMap, this._columns, h || this._shouldUpdateLeftRight), this._resized && (this._shouldUpdateLeftRight = !1, this._resized = !1);
974
978
  const l = this.columns;
975
979
  if (this.forceUpdate(), this.props.onColumnReorder) {
976
980
  const d = {
@@ -1013,8 +1017,8 @@ const _ = class _ extends r.Component {
1013
1017
  a = Math.round(a), this._header && this._header.setWidth(a), this._footer && this._footer.setWidth(a), this.tableElement && (this.tableElement.style.width = a + "px");
1014
1018
  }
1015
1019
  initColumns(a, p) {
1016
- const c = F.getIdPrefix(this.navigationStateRef);
1017
- this._columns = this.readColumns(a, c, this._columnsMutations), this._columns.length === 0 && (this._columns = gt(this.props.data, this.props.group, this.props.expandField, { prevId: 0, idPrefix: c })), this.configureColumns(this._columns, p, c), this._columnsMap = this.mapColumns(this._columns), this.columnResize.columns = this._columns, this.dragLogic.columns = this._columns;
1020
+ const c = F.getIdPrefix(this.navigationStateRef), e = this.readColumns(a, c, this._columnsMutations), t = e.length !== this._columns.length;
1021
+ this._columns = e, this._columns.length === 0 && (this._columns = mt(this.props.data, this.props.group, this.props.expandField, { prevId: 0, idPrefix: c })), this.configureColumns(this._columns, p, c), this._columnsMap = this.mapColumns(this._columns, t), this.columnResize.columns = this._columns, this.dragLogic.columns = this._columns;
1018
1022
  }
1019
1023
  getDataState() {
1020
1024
  return {
@@ -1111,9 +1115,9 @@ _.displayName = "KendoReactGrid", _.defaultProps = {
1111
1115
  dataItemKey: s.string,
1112
1116
  navigatable: s.bool,
1113
1117
  size: s.oneOf(["small", "medium"])
1114
- }, _.contextType = V;
1118
+ }, _.contextType = U;
1115
1119
  let B = _;
1116
- rt(B);
1120
+ at(B);
1117
1121
  export {
1118
1122
  B as Grid
1119
1123
  };