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

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